Commit Graph

18509 Commits

Author SHA1 Message Date
Jacob Overgaard
6131cc6491 feat: move all options from the controller into the host element to set directly when the controller is initialized 2024-07-22 15:15:10 +02:00
Jacob Overgaard
74a8fcfba6 feat: convert direct options update to attributes instead 2024-07-22 15:14:46 +02:00
Jacob Overgaard
423b57e80e chore: formatting 2024-07-22 15:11:20 +02:00
Jacob Overgaard
b57214501b feat: add property to disable code folding 2024-07-22 15:10:29 +02:00
Jacob Overgaard
91d88013db feat: add properties for common monaco options 2024-07-22 15:08:56 +02:00
leekelleher
de61fbad07 Code formatting 2024-07-22 12:02:50 +01:00
leekelleher
1f9a197cba Sorting/amends to the code/language options
Defaults to `"javascript"`
2024-07-22 12:02:29 +01:00
leekelleher
f4ed00473a package-lock.json was updated 2024-07-22 12:00:43 +01:00
leekelleher
e516fe25fa Reverted number defaultValue config 2024-07-22 12:00:10 +01:00
Jacob Overgaard
4d6dfaf740 chore: use the local clamp function instead of redefining it 2024-07-22 09:42:45 +02:00
Jacob Overgaard
79b7458ab0 chore: use clamp from uui
the ui library already exports a `clamp` function, so rely on that in the backoffice
2024-07-22 09:42:45 +02:00
Jacob Overgaard
673fe81d0e Merge branch 'main' into pr/bjarnef/1227 2024-07-19 14:58:47 +02:00
Jacob Overgaard
45728620c0 chore: eslint fix 2024-07-19 14:58:28 +02:00
Jacob Overgaard
1fc885e5a1 internal: turn off rules that do not work for eslint 9 yet 2024-07-19 14:54:58 +02:00
Jacob Overgaard
95394c33a1 fix: eslint no named as default 2024-07-19 14:54:06 +02:00
Jacob Overgaard
fa6f62d9e7 fix: do not cache element 2024-07-19 14:53:44 +02:00
Jacob Overgaard
2a1b71c674 feat: move code-editor to its own package 2024-07-19 14:45:19 +02:00
Jacob Overgaard
828e69e461 feat: dispatch event if using defaultValue 2024-07-19 14:26:20 +02:00
Jacob Overgaard
b58b14d917 feat: use Umbraco.Plain.String 2024-07-19 14:26:11 +02:00
Jacob Overgaard
78ab506a6a fix: revert the dispatchEvent just to be safe 2024-07-19 12:04:30 +02:00
Jacob Overgaard
b9ff92899a chore: update workspaces 2024-07-19 12:03:00 +02:00
Jacob Overgaard
26dc492daf feat: add bundling to code-editor 2024-07-19 12:02:03 +02:00
Jacob Overgaard
753614935c feat: add localization 2024-07-19 11:57:34 +02:00
Jacob Overgaard
5dd97bd305 feat: add a height option to the code editor 2024-07-19 11:56:01 +02:00
Jacob Overgaard
9b73d368b1 feat: rearrange languages and select javascript as default 2024-07-19 11:54:56 +02:00
Jacob Overgaard
038c55a69e feat: add defaultValue to the numeric property editors 2024-07-19 11:50:54 +02:00
Jacob Overgaard
a02d4070f1 feat: add localization to the property editor 2024-07-19 11:40:56 +02:00
Jacob Overgaard
bcbacbed0e feat: convert CodeEditorController into a real umb controller 2024-07-19 11:35:42 +02:00
Jacob Overgaard
0331b0f3f5 feat: add bundling to the code-editor package 2024-07-19 11:29:02 +02:00
Jacob Overgaard
5d22d36f10 feat: style as property editor 2024-07-19 11:28:08 +02:00
Jacob Overgaard
f819cb69ec feat: use Umbraco.Plain.Text as schema / input type 2024-07-19 11:27:57 +02:00
Jacob Overgaard
952f953747 feat: add the new "property editor ui code editor" to the code-editor package 2024-07-19 11:10:42 +02:00
Jacob Overgaard
f40b58145c fix: update event handling in markdown editor 2024-07-19 11:10:17 +02:00
Jacob Overgaard
3e23173800 feat: use the built-in code editor rather than a new input element 2024-07-19 11:09:56 +02:00
Jacob Overgaard
497617ae93 feat: move the code-editor to its own package 2024-07-19 11:08:59 +02:00
Jacob Overgaard
87c5048975 Merge branch 'main' into pr/bjarnef/1227 2024-07-19 10:21:09 +02:00
Jacob Overgaard
0a7d7b7cab feat: prevent the new loaded event from bubbling all the way to the top 2024-07-19 10:06:42 +02:00
Jacob Overgaard
d99fb449f6 docs: add notice of loaded event 2024-07-19 10:06:42 +02:00
Jacob Overgaard
5b040c730f chore: improve imports of input-markdown 2024-07-19 10:06:42 +02:00
Jacob Overgaard
90f65cd7be chore: add missing localization keys 2024-07-19 10:06:42 +02:00
Jacob Overgaard
69f4fce3e7 docs: document the default slot of umb-workspace-editor 2024-07-19 10:06:42 +02:00
leekelleher
4a19ea80b6 Markdown input: refactored to remove loadCodeEditor function
Note: makes use of the `@loaded` event, so to load in the Monaco plugins.
2024-07-19 10:06:42 +02:00
leekelleher
302639d01c Code editor modal: refactored to remove loadCodeEditor function 2024-07-19 10:06:42 +02:00
leekelleher
a14dd5b8b6 Scripts workspace: refactored to remove loadCodeEditor function 2024-07-19 10:06:42 +02:00
leekelleher
aca6bcac29 Stylesheets workspace: refactored to remove loadCodeEditor function 2024-07-19 10:06:42 +02:00
leekelleher
7763969604 Partial Views workspace: refactored to remove loadCodeEditor function 2024-07-19 10:06:42 +02:00
leekelleher
099a1eadad Template workspace: refactored to remove loadCodeEditor function 2024-07-19 10:06:42 +02:00
leekelleher
37a539e143 umb-code-editor, async loading of monaco editor 2024-07-19 10:06:42 +02:00
leekelleher
03a2368b49 Deprecated the loadCodeEditor function 2024-07-19 10:06:42 +02:00
Jacob Overgaard
63c4f6be73 remove the user-defined.css as it is not needed 2024-07-18 13:08:01 +01:00