@nuraly/runtime 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/README.md +83 -765
  2. package/components/ui/components/Event/EventValue/EventValue.ts +13 -8
  3. package/components/ui/components/ToastContainer/ToastContainer.ts +1 -1
  4. package/components/ui/components/advanced/AIChat/AIChat.ts +1 -2
  5. package/components/ui/components/advanced/Collapse/Collapse.ts +5 -2
  6. package/components/ui/components/advanced/Collections/Collections.ts +2 -2
  7. package/components/ui/components/advanced/MicroApp/MicroApp.ts +3 -11
  8. package/components/ui/components/advanced/RefComponent/RefComponent.ts +2 -2
  9. package/components/ui/components/advanced/RichText/RichText.ts +5 -4
  10. package/components/ui/components/advanced/RichText/RichTextEditor.ts +0 -167
  11. package/components/ui/components/base/BaseElement/base-change-detection.ts +1 -5
  12. package/components/ui/components/base/BaseElement.ts +229 -610
  13. package/components/ui/components/base/FormRegisterable.ts +83 -0
  14. package/components/ui/components/base/controllers/DragDropController.ts +175 -0
  15. package/components/ui/components/base/controllers/ErrorController.ts +180 -0
  16. package/components/ui/components/base/controllers/EventController.ts +112 -0
  17. package/components/ui/components/base/controllers/InputHandlerController.ts +298 -0
  18. package/components/ui/components/base/controllers/SelectionController.ts +323 -0
  19. package/components/ui/components/base/controllers/StyleHandlerController.ts +286 -0
  20. package/components/ui/components/base/controllers/index.ts +11 -0
  21. package/components/ui/components/base/mixins/EditorModeMixin.ts +185 -0
  22. package/components/ui/components/base/mixins/index.ts +6 -0
  23. package/components/ui/components/base/types/base-element.types.ts +138 -0
  24. package/components/ui/components/base/types/index.ts +21 -0
  25. package/components/ui/components/base/utils/event-debouncer.ts +209 -0
  26. package/components/ui/components/base/utils/index.ts +11 -0
  27. package/components/ui/components/base/utils/style-cache.ts +94 -0
  28. package/components/ui/components/display/BoxModel/BoxModel.ts +177 -116
  29. package/components/ui/components/display/Code/Code.ts +40 -26
  30. package/components/ui/components/display/Divider/Divider.ts +2 -2
  31. package/components/ui/components/display/Icon/Icon.ts +2 -3
  32. package/components/ui/components/display/Image/Image.ts +72 -46
  33. package/components/ui/components/display/Tag/Tag.ts +2 -3
  34. package/components/ui/components/display/Video/Video.ts +91 -31
  35. package/components/ui/components/inputs/Button/Button.ts +2 -2
  36. package/components/ui/components/inputs/Checkbox/Checkbox.ts +14 -40
  37. package/components/ui/components/inputs/ColorPicker/colorpicker.ts +9 -4
  38. package/components/ui/components/inputs/DatePicker/DatePicker.ts +47 -25
  39. package/components/ui/components/inputs/Dropdown/Dropdown.ts +2 -2
  40. package/components/ui/components/inputs/Form/Form.style.ts +26 -0
  41. package/components/ui/components/inputs/Form/Form.ts +360 -0
  42. package/components/ui/components/inputs/IconPicker/IconPicker.ts +22 -18
  43. package/components/ui/components/inputs/InsertDropdown/InsertDropdown.ts +0 -20
  44. package/components/ui/components/inputs/NumberInput/NumberInput.ts +0 -4
  45. package/components/ui/components/inputs/RadioButton/Radio-button.ts +17 -13
  46. package/components/ui/components/inputs/Select/Select.ts +44 -24
  47. package/components/ui/components/inputs/TextInput/TextInput.ts +15 -9
  48. package/components/ui/components/inputs/Textarea/Textarea.ts +30 -30
  49. package/components/ui/components/inputs/UsersDropdown/UsersDropdown.ts +1 -1
  50. package/components/ui/components/layout/Card/Card.ts +112 -10
  51. package/components/ui/components/layout/Containers/Container.style.ts +18 -0
  52. package/components/ui/components/layout/Containers/Container.ts +11 -5
  53. package/components/ui/components/layout/Grid/Col.style.ts +27 -0
  54. package/components/ui/components/layout/Grid/Col.ts +213 -0
  55. package/components/ui/components/layout/Grid/Row.style.ts +73 -0
  56. package/components/ui/components/layout/Grid/Row.ts +170 -0
  57. package/components/ui/components/layout/Grid/index.ts +7 -0
  58. package/components/ui/components/layout/Panel/Panel.ts +2 -2
  59. package/components/ui/components/layout/Tabs/Tabs.ts +0 -1
  60. package/components/ui/components/navigation/EmbedURL/EmbedURL.ts +62 -26
  61. package/components/ui/components/navigation/Link/Link.ts +27 -16
  62. package/components/ui/components/navigation/Menu/Menu.ts +26 -48
  63. package/components/ui/components/runtime/MicroApp/MicroApp.ts +7 -147
  64. package/components/ui/components/runtime/MicroApp/MicroAppDataLoader.ts +6 -2
  65. package/components/ui/components/studio/FunctionsPanel/FunctionsPanel.ts +484 -0
  66. package/components/ui/components/studio/FunctionsPanel/index.ts +1 -0
  67. package/components/ui/components/utility/AccessRoles/AccessRoles.style.ts +242 -0
  68. package/components/ui/components/utility/AccessRoles/AccessRoles.ts +476 -0
  69. package/components/ui/components/utility/Border/Border.ts +0 -14
  70. package/components/ui/components/utility/BorderManager/BorderManager.style.ts +237 -0
  71. package/components/ui/components/utility/BorderManager/BorderManager.ts +503 -0
  72. package/components/ui/components/utility/BoxShadow/BoxShadow.ts +0 -16
  73. package/components/ui/components/utility/Document/Document.ts +54 -25
  74. package/components/ui/components/utility/Export-Import/Export-Import.ts +8 -7
  75. package/components/ui/components/utility/Handlers/Handlers.ts +14 -17
  76. package/components/ui/components/utility/ValidationRules/ValidationRules.ts +440 -0
  77. package/components/ui/components/wrappers/GenerikWrapper/DragWrapper/DragWrapper.ts +1 -0
  78. package/components/ui/components/wrappers/GenerikWrapper/GenerikWrapper.ts +1 -24
  79. package/components/ui/nuraly-ui/src/components/badge/badge.style.ts +4 -3
  80. package/components/ui/nuraly-ui/src/components/datepicker/datepicker.component.ts +2 -0
  81. package/components/ui/nuraly-ui/src/components/radio-group/radio-group.component.ts +12 -6
  82. package/components/ui/nuraly-ui/src/components/radio-group/radio-group.style.ts +23 -0
  83. package/dist/{index-B4yIOSMd.js → BaseElement-BNBn_IJk.js} +2920 -267
  84. package/dist/{CodeEditor-YsOapSut.js → CodeEditor-B1gNuvPb.js} +84127 -76319
  85. package/dist/{CodeEditor-BiNku87K.js → CodeEditor-Cpph-xRc.js} +7 -7
  86. package/dist/{abap-B2diVmjb.js → abap-D0Neqhq6.js} +91 -1
  87. package/dist/{apex-3NuJ-nsI.js → apex-B5LhxkeG.js} +18 -1
  88. package/dist/assets/editor.worker-DcwbJ0PV.js +12 -0
  89. package/dist/assets/html.worker-BTMxskjR.js +461 -0
  90. package/dist/assets/json.worker-D3vTGdf_.js +49 -0
  91. package/dist/assets/ts.worker-BsM1BXac.js +51334 -0
  92. package/dist/{azcli-XGXuUsMB.js → azcli-BrBH0QTU.js} +1 -1
  93. package/dist/{bat-B8Vhm634.js → bat-BfzAov64.js} +12 -1
  94. package/dist/{bicep-Cc8X5S_k.js → bicep-C3bCSWel.js} +1 -1
  95. package/dist/{cameligo-Bo3wBh9T.js → cameligo-sFL5plcd.js} +13 -1
  96. package/dist/{clojure-CPoQlpIK.js → clojure-CfeExRz0.js} +14 -1
  97. package/dist/{coffee-BxvTGz39.js → coffee-Xws5K0WL.js} +11 -1
  98. package/dist/{cpp-5RpEV7vC.js → cpp-CqOUEpxN.js} +28 -23
  99. package/dist/{csharp-slXXP3fo.js → csharp-DVLiBOZb.js} +13 -1
  100. package/dist/{csp-B98p6-gH.js → csp-DVFp9bw5.js} +3 -1
  101. package/dist/{css-BDsDSAin.js → css-DwARn2R6.js} +8 -1
  102. package/dist/cssMode-D82-gS78.js +1577 -0
  103. package/dist/{cypher-Dc4IMouD.js → cypher-uY0Mffat.js} +8 -1
  104. package/dist/{dart-LhvE3yD2.js → dart-D27H-mX_.js} +18 -1
  105. package/dist/{dockerfile-CwzplJeZ.js → dockerfile-CmV85WZK.js} +5 -1
  106. package/dist/{ecl-DxW3FiJi.js → ecl--fKn7yzB.js} +9 -1
  107. package/dist/{elixir-BI40g7TU.js → elixir-DUhH17ON.js} +87 -1
  108. package/dist/{flow9-tR2v0bGz.js → flow9-B3Dx2LLe.js} +8 -1
  109. package/dist/{freemarker2-Bfqhwyij.js → freemarker2-CYRLpyjt.js} +359 -7
  110. package/dist/{fsharp-BLAma0OT.js → fsharp-SyqBfUAR.js} +14 -1
  111. package/dist/{go-nYcD3y4Z.js → go-BbMR2tdT.js} +17 -1
  112. package/dist/{graphql-Dp1cHWmP.js → graphql-DDJE6tIl.js} +17 -1
  113. package/dist/{handlebars-DCgKNBmn.js → handlebars-R8Efxi60.js} +38 -4
  114. package/dist/{hcl-6NT8Kbna.js → hcl-YBvpaUqf.js} +13 -1
  115. package/dist/{html-C6wR7sMB.js → html-czhjovcp.js} +37 -4
  116. package/dist/htmlMode-DpyKDYYs.js +1587 -0
  117. package/dist/{ini-BZCOLrEc.js → ini-Ct73dBtM.js} +10 -1
  118. package/dist/{java-DAMcfJbX.js → java-C_jlkwoG.js} +18 -1
  119. package/dist/{javascript-D1L5MTmg.js → javascript-DwqkMEdb.js} +3 -2
  120. package/dist/jsonMode-Cmxxe0W9.js +2002 -0
  121. package/dist/{julia-CQ46G71H.js → julia-D8WE5U1e.js} +22 -1
  122. package/dist/{kotlin-CEjVo_6E.js → kotlin-Zy9aq5yB.js} +15 -1
  123. package/dist/{less-DreV99nP.js → less-sZ0iHtE8.js} +1 -1
  124. package/dist/{lexon-DBVJhqLb.js → lexon-CsdNL29A.js} +13 -1
  125. package/dist/{liquid-D_pDYIs1.js → liquid-2spuEcBh.js} +12 -4
  126. package/dist/{lua-Dcc_j6L-.js → lua-C2YJo0zw.js} +12 -1
  127. package/dist/{m3-B9SlZL4n.js → m3-CPLP40SG.js} +7 -1
  128. package/dist/{markdown-CuGw9_MP.js → markdown-B1mf5e0R.js} +34 -1
  129. package/dist/{mdx-CKsJ3cF4.js → mdx-BjBXyEeR.js} +2 -2
  130. package/dist/{micro-app-entry-xdTX5-ut.js → micro-app-entry-DYAnCRDo.js} +8132 -9649
  131. package/dist/micro-app.bundle.js +3 -3
  132. package/dist/micro-app.js +3565 -6710
  133. package/dist/{mips-BUWqP-OH.js → mips-DA33BZX1.js} +11 -1
  134. package/dist/{msdax-DtkouYCg.js → msdax-CCYFIQsP.js} +5 -1
  135. package/dist/{mysql-IkAsWSmF.js → mysql-hjmIjL-D.js} +11 -3
  136. package/dist/{objective-c-B2-ronfg.js → objective-c-RRCpEmqC.js} +2 -1
  137. package/dist/{pascal-Bsnz2eJA.js → pascal-CeV8XfxB.js} +13 -1
  138. package/dist/{pascaligo-D_sMUn0Q.js → pascaligo-IEEGVJAJ.js} +13 -1
  139. package/dist/{perl-BPzHt9SS.js → perl-B5-QbHq_.js} +34 -1
  140. package/dist/{pgsql-DlTJB0PD.js → pgsql-s6kqEJmi.js} +14 -4
  141. package/dist/{php-Dmq5OjwK.js → php-CWWqzOo8.js} +36 -1
  142. package/dist/{pla-HJcccrBy.js → pla-FSvb_YP_.js} +13 -1
  143. package/dist/{postiats-OQn6DKv-.js → postiats-DQdscQXO.js} +370 -1
  144. package/dist/{powerquery-DKaMYC8w.js → powerquery-CtA5JA1I.js} +7 -1
  145. package/dist/{powershell-DWeJHik1.js → powershell-DglEq96N.js} +13 -1
  146. package/dist/{protobuf-CBn_IseU.js → protobuf-BSepub3e.js} +5 -1
  147. package/dist/{pug-BoRpCINl.js → pug-B1847F4G.js} +16 -1
  148. package/dist/{python-zPpZYwLF.js → python-DLI1ji08.js} +59 -11
  149. package/dist/{qsharp-4rGyVZOw.js → qsharp-D4i0Nqg9.js} +28 -3
  150. package/dist/{r-DsgLhBOb.js → r-cdRigKxa.js} +5 -1
  151. package/dist/{razor-B_fCUeGX.js → razor-oAnIJsrL.js} +48 -4
  152. package/dist/{redis-B2fdL4Bg.js → redis-D9MFxvE8.js} +16 -6
  153. package/dist/{redshift-DoaeyCkH.js → redshift-CmCnsvL-.js} +13 -4
  154. package/dist/{restructuredtext-D-6OFBY9.js → restructuredtext-CWy8J51t.js} +19 -1
  155. package/dist/{ruby-D1DD6baV.js → ruby-WP-c36m5.js} +76 -3
  156. package/dist/runtime.js +34 -45
  157. package/dist/{rust-DssUV39M.js → rust-Q9FLdYpu.js} +13 -1
  158. package/dist/{sb-Dmb6tAdv.js → sb-C54-JBGT.js} +12 -1
  159. package/dist/{scala-Co3ETaym.js → scala-CzbFImc5.js} +24 -1
  160. package/dist/{scheme-CMrqXTty.js → scheme-BhfDmYN3.js} +1 -1
  161. package/dist/{scss-DkGudv8Q.js → scss-CEmiBXpS.js} +25 -1
  162. package/dist/{shell-BHN2BI4L.js → shell-Bmc1VhG0.js} +4 -1
  163. package/dist/{solidity-b-R-raGB.js → solidity-C9Q2I8Hh.js} +23 -1
  164. package/dist/{sophia-Y4GjyxNB.js → sophia-jWa1UyKz.js} +16 -1
  165. package/dist/{sparql-CDAPZb88.js → sparql-CM7jctbc.js} +15 -1
  166. package/dist/{sql-DkkpPiUq.js → sql-WzihTkbg.js} +42 -1
  167. package/dist/{st-CSPV91Ej.js → st-6y7_3aup.js} +8 -1
  168. package/dist/style.css +1 -1
  169. package/dist/{swift-DdSC5O48.js → swift-k-0zxG_D.js} +4 -1
  170. package/dist/{systemverilog-CI03XpAv.js → systemverilog-Pnr5_rIP.js} +29 -3
  171. package/dist/{tcl-B8DayMSI.js → tcl-fNPXval8.js} +7 -1
  172. package/dist/tsMode-D_PMsbjK.js +976 -0
  173. package/dist/{twig-B1AUPVB_.js → twig-L2MkztkV.js} +76 -1
  174. package/dist/{typescript-DrlYcCUn.js → typescript-Bu3ZbtQI.js} +23 -2
  175. package/dist/typespec-Cqqo-3Pt.js +123 -0
  176. package/dist/{vb-BIC7ccdG.js → vb-B5YC2xN9.js} +15 -1
  177. package/dist/{wgsl-C9yjop46.js → wgsl-D9BRtftY.js} +26 -1
  178. package/dist/{xml-BzP9D0eZ.js → xml-CNSSkPqy.js} +8 -2
  179. package/dist/{yaml-CT7GOvXu.js → yaml-5RF_PGNe.js} +30 -2
  180. package/handlers/compiler.ts +196 -16
  181. package/handlers/context-setup.ts +10 -5
  182. package/handlers/handler-api-factory.ts +358 -0
  183. package/handlers/handler-api.ts +379 -0
  184. package/handlers/handler-executor.ts +25 -5
  185. package/handlers/handler-scope.ts +398 -0
  186. package/handlers/index.ts +34 -2
  187. package/handlers/runtime-api/component-properties.ts +0 -8
  188. package/handlers/runtime-api/index.ts +1 -1
  189. package/handlers/runtime-api/toast.ts +1 -1
  190. package/index.ts +14 -115
  191. package/micro-app/README.md +10 -10
  192. package/micro-app/state/MicroAppRuntimeContext.ts +1 -28
  193. package/micro-app-entry.ts +0 -5
  194. package/package.json +22 -1
  195. package/redux/actions/application/index.ts +0 -1
  196. package/redux/actions/component/addComponentAction.ts +15 -4
  197. package/redux/actions/component/moveDraggedComponent.ts +1 -2
  198. package/redux/actions/component/update-component-name.ts +1 -1
  199. package/redux/actions/component/updateComponentAttributes.ts +7 -2
  200. package/redux/handlers/functions/build-function-handler.ts +11 -3
  201. package/redux/handlers/functions/deploy-function-handler.ts +11 -3
  202. package/redux/handlers/functions/invoke-function-handler.ts +11 -3
  203. package/redux/handlers/functions/load-functions-handler.ts +2 -1
  204. package/redux/handlers/functions/update-function-handler.ts +2 -1
  205. package/redux/store/component/component.interface.ts +8 -2
  206. package/redux/store/component/store.ts +1 -4
  207. package/state/runtime-context.ts +1 -23
  208. package/utils/RuntimeContextHelpers.ts +221 -90
  209. package/utils/change-detection.ts +125 -1
  210. package/utils/clipboard-utils.ts +18 -8
  211. package/utils/component-registry.ts +118 -0
  212. package/utils/index.ts +14 -1
  213. package/utils/naming-generator.ts +3 -1
  214. package/utils/randomness.ts +3 -1
  215. package/utils/register-components.ts +21 -29
  216. package/utils/render-util.ts +27 -48
  217. package/utils/toast.ts +97 -0
  218. package/vite.config.ts +29 -12
  219. package/components/ui/components/Event/EventAttribute/EventAttribute.style.ts +0 -11
  220. package/components/ui/components/Event/EventAttribute/EventAttribute.ts +0 -28
  221. package/components/ui/components/base/BaseElement/calculateStyles.ts +0 -31
  222. package/components/ui/components/base/BaseElement/drag-events.helpers.ts +0 -71
  223. package/components/ui/components/base/BaseElement/execute-event.helpers.ts +0 -45
  224. package/components/ui/components/base/BaseElement/interactions.helpers.ts +0 -14
  225. package/components/ui/components/wrappers/ComponentTitle/ComponentTitle.ts +0 -95
  226. package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.style.ts +0 -102
  227. package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.ts +0 -258
  228. package/components/ui/components/wrappers/PreviewWrapper.ts +0 -28
  229. package/components/ui/components/wrappers/RectangleSelection/RectangleSelection.ts +0 -154
  230. package/components/ui/nuraly-ui/packages/common/dist/constants/index.d.ts +0 -2
  231. package/components/ui/nuraly-ui/packages/common/dist/constants/index.js +0 -2
  232. package/components/ui/nuraly-ui/packages/common/dist/constants.d.ts +0 -17
  233. package/components/ui/nuraly-ui/packages/common/dist/constants.js +0 -7
  234. package/components/ui/nuraly-ui/packages/common/dist/controllers/index.d.ts +0 -2
  235. package/components/ui/nuraly-ui/packages/common/dist/controllers/index.js +0 -2
  236. package/components/ui/nuraly-ui/packages/common/dist/controllers.d.ts +0 -21
  237. package/components/ui/nuraly-ui/packages/common/dist/controllers.js +0 -22
  238. package/components/ui/nuraly-ui/packages/common/dist/index.d.ts +0 -25
  239. package/components/ui/nuraly-ui/packages/common/dist/index.js +0 -27
  240. package/components/ui/nuraly-ui/packages/common/dist/mixins/index.d.ts +0 -2
  241. package/components/ui/nuraly-ui/packages/common/dist/mixins/index.js +0 -3
  242. package/components/ui/nuraly-ui/packages/common/dist/mixins.d.ts +0 -26
  243. package/components/ui/nuraly-ui/packages/common/dist/mixins.js +0 -29
  244. package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.d.ts +0 -42
  245. package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.js +0 -38
  246. package/components/ui/nuraly-ui/packages/common/dist/shared/constants.d.ts +0 -1
  247. package/components/ui/nuraly-ui/packages/common/dist/shared/constants.js +0 -2
  248. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.d.ts +0 -77
  249. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.js +0 -341
  250. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.d.ts +0 -37
  251. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.js +0 -2
  252. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.d.ts +0 -4
  253. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.js +0 -4
  254. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.d.ts +0 -48
  255. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.js +0 -133
  256. package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.d.ts +0 -37
  257. package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.js +0 -141
  258. package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.d.ts +0 -64
  259. package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.js +0 -95
  260. package/components/ui/nuraly-ui/packages/common/dist/shared/index.d.ts +0 -13
  261. package/components/ui/nuraly-ui/packages/common/dist/shared/index.js +0 -17
  262. package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.d.ts +0 -78
  263. package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.js +0 -194
  264. package/components/ui/nuraly-ui/packages/common/dist/shared/themes.d.ts +0 -44
  265. package/components/ui/nuraly-ui/packages/common/dist/shared/themes.js +0 -85
  266. package/components/ui/nuraly-ui/packages/common/dist/shared/utils.d.ts +0 -60
  267. package/components/ui/nuraly-ui/packages/common/dist/shared/utils.js +0 -85
  268. package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.d.ts +0 -108
  269. package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.js +0 -17
  270. package/components/ui/nuraly-ui/packages/common/dist/themes/index.d.ts +0 -2
  271. package/components/ui/nuraly-ui/packages/common/dist/themes/index.js +0 -2
  272. package/components/ui/nuraly-ui/packages/common/dist/themes.d.ts +0 -22
  273. package/components/ui/nuraly-ui/packages/common/dist/themes.js +0 -23
  274. package/components/ui/nuraly-ui/packages/common/dist/utils/index.d.ts +0 -2
  275. package/components/ui/nuraly-ui/packages/common/dist/utils/index.js +0 -2
  276. package/components/ui/nuraly-ui/packages/common/dist/utils.d.ts +0 -21
  277. package/components/ui/nuraly-ui/packages/common/dist/utils.js +0 -22
  278. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/LICENSE +0 -15
  279. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/README.md +0 -294
  280. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
  281. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy.js +0 -175
  282. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/index.js +0 -7
  283. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/empty/index.js +0 -39
  284. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/file.js +0 -66
  285. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/index.js +0 -23
  286. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/link.js +0 -64
  287. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
  288. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
  289. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
  290. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/fs/index.js +0 -146
  291. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/index.js +0 -16
  292. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/index.js +0 -16
  293. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
  294. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
  295. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json.js +0 -12
  296. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  297. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
  298. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
  299. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/index.js +0 -7
  300. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move-sync.js +0 -55
  301. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move.js +0 -59
  302. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/output-file/index.js +0 -31
  303. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  304. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/remove/index.js +0 -17
  305. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/async.js +0 -29
  306. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/stat.js +0 -159
  307. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/utimes.js +0 -36
  308. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/LICENSE +0 -15
  309. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/README.md +0 -294
  310. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
  311. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy.js +0 -175
  312. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/index.js +0 -7
  313. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/empty/index.js +0 -39
  314. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/file.js +0 -66
  315. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/index.js +0 -23
  316. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/link.js +0 -64
  317. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
  318. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
  319. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
  320. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/fs/index.js +0 -146
  321. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/index.js +0 -16
  322. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/index.js +0 -16
  323. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
  324. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
  325. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json.js +0 -12
  326. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  327. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
  328. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
  329. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/index.js +0 -7
  330. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move-sync.js +0 -55
  331. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move.js +0 -59
  332. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/output-file/index.js +0 -31
  333. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  334. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/remove/index.js +0 -17
  335. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/async.js +0 -29
  336. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/stat.js +0 -159
  337. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/utimes.js +0 -36
  338. package/dist/SmartAttributeHandler-C4EliaG0.js +0 -153
  339. package/dist/SmartAttributeHandler-u-ZHGueR.js +0 -193
  340. package/dist/assets/editor.worker-C_S4Avdt.js +0 -11
  341. package/dist/assets/html.worker-DfuQASUV.js +0 -458
  342. package/dist/assets/json.worker-Cucz4wxY.js +0 -42
  343. package/dist/assets/ts.worker-Dme6S0YK.js +0 -37021
  344. package/dist/cssMode-CqMQ6Xsa.js +0 -1443
  345. package/dist/htmlMode-KglxyZXm.js +0 -1453
  346. package/dist/jsonMode-B3rqxD-b.js +0 -1863
  347. package/dist/tsMode-DEiq8fQ0.js +0 -800
  348. package/redux/actions/application/loadApplicationPermissionAction.ts +0 -10
  349. package/utils/styleUtil.ts +0 -7
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------------------------*/
@@ -15,6 +15,7 @@ var t = {
15
15
  ["{{", "}}"],
16
16
  ["(", ")"],
17
17
  ["[", "]"],
18
+ // HTML
18
19
  ["<!--", "-->"],
19
20
  ["<", ">"]
20
21
  ],
@@ -30,6 +31,7 @@ var t = {
30
31
  surroundingPairs: [
31
32
  { open: '"', close: '"' },
32
33
  { open: "'", close: "'" },
34
+ // HTML
33
35
  { open: "<", close: ">" }
34
36
  ]
35
37
  }, e = {
@@ -37,6 +39,7 @@ var t = {
37
39
  tokenPostfix: "",
38
40
  ignoreCase: !0,
39
41
  keywords: [
42
+ // (opening) tags
40
43
  "apply",
41
44
  "autoescape",
42
45
  "block",
@@ -56,6 +59,7 @@ var t = {
56
59
  "use",
57
60
  "verbatim",
58
61
  "with",
62
+ // closing tags
59
63
  "endapply",
60
64
  "endautoescape",
61
65
  "endblock",
@@ -66,15 +70,19 @@ var t = {
66
70
  "endsandbox",
67
71
  "endset",
68
72
  "endwith",
73
+ // literals
69
74
  "true",
70
75
  "false"
71
76
  ],
72
77
  tokenizer: {
73
78
  root: [
79
+ // whitespace
74
80
  [/\s+/],
81
+ // Twig Tag Delimiters
75
82
  [/{#/, "comment.twig", "@commentState"],
76
83
  [/{%[-~]?/, "delimiter.twig", "@blockState"],
77
84
  [/{{[-~]?/, "delimiter.twig", "@variableState"],
85
+ // HTML
78
86
  [/<!DOCTYPE/, "metatag.html", "@doctype"],
79
87
  [/<!--/, "comment.html", "@comment"],
80
88
  [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter.html", "tag.html", "", "delimiter.html"]],
@@ -84,14 +92,25 @@ var t = {
84
92
  [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
85
93
  [/</, "delimiter.html"],
86
94
  [/[^<{]+/]
95
+ // text
87
96
  ],
97
+ /**
98
+ * Comment Tag Handling
99
+ */
88
100
  commentState: [
89
101
  [/#}/, "comment.twig", "@pop"],
90
102
  [/./, "comment.twig"]
91
103
  ],
104
+ /**
105
+ * Block Tag Handling
106
+ */
92
107
  blockState: [
93
108
  [/[-~]?%}/, "delimiter.twig", "@pop"],
109
+ // whitespace
94
110
  [/\s+/],
111
+ // verbatim
112
+ // Unlike other blocks, verbatim ehas its own state
113
+ // transition to ensure we mark its contents as strings.
95
114
  [
96
115
  /(verbatim)(\s*)([-~]?%})/,
97
116
  ["keyword.twig", "", { token: "delimiter.twig", next: "@rawDataState" }]
@@ -99,31 +118,51 @@ var t = {
99
118
  { include: "expression" }
100
119
  ],
101
120
  rawDataState: [
121
+ // endverbatim
102
122
  [
103
123
  /({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,
104
124
  ["delimiter.twig", "", "keyword.twig", "", { token: "delimiter.twig", next: "@popall" }]
105
125
  ],
106
126
  [/./, "string.twig"]
107
127
  ],
128
+ /**
129
+ * Variable Tag Handling
130
+ */
108
131
  variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], { include: "expression" }],
109
132
  stringState: [
133
+ // closing double quoted string
110
134
  [/"/, "string.twig", "@pop"],
135
+ // interpolation start
111
136
  [/#{\s*/, "string.twig", "@interpolationState"],
137
+ // string part
112
138
  [/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]
113
139
  ],
114
140
  interpolationState: [
141
+ // interpolation end
115
142
  [/}/, "string.twig", "@pop"],
116
143
  { include: "expression" }
117
144
  ],
145
+ /**
146
+ * Expression Handling
147
+ */
118
148
  expression: [
149
+ // whitespace
119
150
  [/\s+/],
151
+ // operators - math
120
152
  [/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"],
153
+ // operators - logic
121
154
  [/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]],
155
+ // operators - comparison (symbols)
122
156
  [/==|!=|<|>|>=|<=/, "operators.twig"],
157
+ // operators - comparison (words)
123
158
  [/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]],
159
+ // operators - containment
124
160
  [/(in)(\s+)/, ["operators.twig", ""]],
161
+ // operators - test
125
162
  [/(is)(\s+)/, ["operators.twig", ""]],
163
+ // operators - misc
126
164
  [/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"],
165
+ // names
127
166
  [
128
167
  /[^\W\d][\w]*/,
129
168
  {
@@ -133,13 +172,25 @@ var t = {
133
172
  }
134
173
  }
135
174
  ],
175
+ // numbers
136
176
  [/\d+(\.\d+)?/, "number.twig"],
177
+ // punctuation
137
178
  [/\(|\)|\[|\]|{|}|,/, "delimiter.twig"],
179
+ // strings
138
180
  [/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"],
181
+ // opening double quoted string
139
182
  [/"/, "string.twig", "@stringState"],
183
+ // misc syntactic constructs
184
+ // These are not operators per se, but for the purposes of lexical analysis we
185
+ // can treat them as such.
186
+ // arrow functions
140
187
  [/=>/, "operators.twig"],
188
+ // assignment
141
189
  [/=/, "operators.twig"]
142
190
  ],
191
+ /**
192
+ * HTML
193
+ */
143
194
  doctype: [
144
195
  [/[^>]+/, "metatag.content.html"],
145
196
  [/>/, "metatag.html", "@pop"]
@@ -156,7 +207,10 @@ var t = {
156
207
  [/[\w\-]+/, "attribute.name.html"],
157
208
  [/=/, "delimiter.html"],
158
209
  [/[ \t\r\n]+/]
210
+ // whitespace
159
211
  ],
212
+ // -- BEGIN <script> tags handling
213
+ // After <script
160
214
  script: [
161
215
  [/type/, "attribute.name.html", "@scriptAfterType"],
162
216
  [/"([^"]*)"/, "attribute.value.html"],
@@ -172,11 +226,13 @@ var t = {
172
226
  }
173
227
  ],
174
228
  [/[ \t\r\n]+/],
229
+ // whitespace
175
230
  [
176
231
  /(<\/)(script\s*)(>)/,
177
232
  ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
178
233
  ]
179
234
  ],
235
+ // After <script ... type
180
236
  scriptAfterType: [
181
237
  [/=/, "delimiter.html", "@scriptAfterTypeEquals"],
182
238
  [
@@ -187,9 +243,12 @@ var t = {
187
243
  nextEmbedded: "text/javascript"
188
244
  }
189
245
  ],
246
+ // cover invalid e.g. <script type>
190
247
  [/[ \t\r\n]+/],
248
+ // whitespace
191
249
  [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
192
250
  ],
251
+ // After <script ... type =
193
252
  scriptAfterTypeEquals: [
194
253
  [
195
254
  /"([^"]*)"/,
@@ -213,9 +272,12 @@ var t = {
213
272
  nextEmbedded: "text/javascript"
214
273
  }
215
274
  ],
275
+ // cover invalid e.g. <script type=>
216
276
  [/[ \t\r\n]+/],
277
+ // whitespace
217
278
  [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
218
279
  ],
280
+ // After <script ... type = $S2
219
281
  scriptWithCustomType: [
220
282
  [
221
283
  />/,
@@ -230,12 +292,16 @@ var t = {
230
292
  [/[\w\-]+/, "attribute.name.html"],
231
293
  [/=/, "delimiter.html"],
232
294
  [/[ \t\r\n]+/],
295
+ // whitespace
233
296
  [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
234
297
  ],
235
298
  scriptEmbedded: [
236
299
  [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
237
300
  [/[^<]+/, ""]
238
301
  ],
302
+ // -- END <script> tags handling
303
+ // -- BEGIN <style> tags handling
304
+ // After <style
239
305
  style: [
240
306
  [/type/, "attribute.name.html", "@styleAfterType"],
241
307
  [/"([^"]*)"/, "attribute.value.html"],
@@ -251,11 +317,13 @@ var t = {
251
317
  }
252
318
  ],
253
319
  [/[ \t\r\n]+/],
320
+ // whitespace
254
321
  [
255
322
  /(<\/)(style\s*)(>)/,
256
323
  ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
257
324
  ]
258
325
  ],
326
+ // After <style ... type
259
327
  styleAfterType: [
260
328
  [/=/, "delimiter.html", "@styleAfterTypeEquals"],
261
329
  [
@@ -266,9 +334,12 @@ var t = {
266
334
  nextEmbedded: "text/css"
267
335
  }
268
336
  ],
337
+ // cover invalid e.g. <style type>
269
338
  [/[ \t\r\n]+/],
339
+ // whitespace
270
340
  [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
271
341
  ],
342
+ // After <style ... type =
272
343
  styleAfterTypeEquals: [
273
344
  [
274
345
  /"([^"]*)"/,
@@ -292,9 +363,12 @@ var t = {
292
363
  nextEmbedded: "text/css"
293
364
  }
294
365
  ],
366
+ // cover invalid e.g. <style type=>
295
367
  [/[ \t\r\n]+/],
368
+ // whitespace
296
369
  [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
297
370
  ],
371
+ // After <style ... type = $S2
298
372
  styleWithCustomType: [
299
373
  [
300
374
  />/,
@@ -309,6 +383,7 @@ var t = {
309
383
  [/[\w\-]+/, "attribute.name.html"],
310
384
  [/=/, "delimiter.html"],
311
385
  [/[ \t\r\n]+/],
386
+ // whitespace
312
387
  [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
313
388
  ],
314
389
  styleEmbedded: [
@@ -1,7 +1,7 @@
1
- import { m as s } from "./CodeEditor-YsOapSut.js";
1
+ import { m as s } from "./CodeEditor-B1gNuvPb.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
4
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
5
5
  * Released under the MIT license
6
6
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
7
7
  *-----------------------------------------------------------------------------*/
@@ -25,6 +25,7 @@ var x = {
25
25
  ],
26
26
  onEnterRules: [
27
27
  {
28
+ // e.g. /** | */
28
29
  beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
29
30
  afterText: /^\s*\*\/$/,
30
31
  action: {
@@ -33,6 +34,7 @@ var x = {
33
34
  }
34
35
  },
35
36
  {
37
+ // e.g. /** ...|
36
38
  beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
37
39
  action: {
38
40
  indentAction: r.languages.IndentAction.None,
@@ -40,6 +42,7 @@ var x = {
40
42
  }
41
43
  },
42
44
  {
45
+ // e.g. * ...|
43
46
  beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
44
47
  action: {
45
48
  indentAction: r.languages.IndentAction.None,
@@ -47,6 +50,7 @@ var x = {
47
50
  }
48
51
  },
49
52
  {
53
+ // e.g. */|
50
54
  beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
51
55
  action: {
52
56
  indentAction: r.languages.IndentAction.None,
@@ -70,9 +74,12 @@ var x = {
70
74
  }
71
75
  }
72
76
  }, b = {
77
+ // Set defaultToken to invalid to see what you do not tokenize yet
73
78
  defaultToken: "invalid",
74
79
  tokenPostfix: ".ts",
75
80
  keywords: [
81
+ // Should match the keys of textToKeywordObj in
82
+ // https://github.com/microsoft/TypeScript/blob/master/src/compiler/scanner.ts
76
83
  "abstract",
77
84
  "any",
78
85
  "as",
@@ -198,6 +205,7 @@ var x = {
198
205
  "^=",
199
206
  "@"
200
207
  ],
208
+ // we include these common regular expressions
201
209
  symbols: /[=><!~?:&|+\-*\/\^%]+/,
202
210
  escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
203
211
  digits: /\d+(_+\d+)*/,
@@ -206,9 +214,11 @@ var x = {
206
214
  hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
207
215
  regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
208
216
  regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
217
+ // The main tokenizer for our languages
209
218
  tokenizer: {
210
219
  root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
211
220
  common: [
221
+ // identifiers and keywords
212
222
  [
213
223
  /#?[a-z_$][\w$]*/,
214
224
  {
@@ -219,11 +229,16 @@ var x = {
219
229
  }
220
230
  ],
221
231
  [/[A-Z][\w\$]*/, "type.identifier"],
232
+ // to show class names nicely
233
+ // [/[A-Z][\w\$]*/, 'identifier'],
234
+ // whitespace
222
235
  { include: "@whitespace" },
236
+ // regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
223
237
  [
224
238
  /\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
225
239
  { token: "regexp", bracket: "@open", next: "@regexp" }
226
240
  ],
241
+ // delimiters and operators
227
242
  [/[()\[\]]/, "@brackets"],
228
243
  [/[<>](?!@symbols)/, "@brackets"],
229
244
  [/!(?=([^=]|$))/, "delimiter"],
@@ -236,15 +251,20 @@ var x = {
236
251
  }
237
252
  }
238
253
  ],
254
+ // numbers
239
255
  [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
240
256
  [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
241
257
  [/0[xX](@hexdigits)n?/, "number.hex"],
242
258
  [/0[oO]?(@octaldigits)n?/, "number.octal"],
243
259
  [/0[bB](@binarydigits)n?/, "number.binary"],
244
260
  [/(@digits)n?/, "number"],
261
+ // delimiter: after number because of .\d floats
245
262
  [/[;,.]/, "delimiter"],
263
+ // strings
246
264
  [/"([^"\\]|\\.)*$/, "string.invalid"],
265
+ // non-teminated string
247
266
  [/'([^'\\]|\\.)*$/, "string.invalid"],
267
+ // non-teminated string
248
268
  [/"/, "string", "@string_double"],
249
269
  [/'/, "string", "@string_single"],
250
270
  [/`/, "string", "@string_backtick"]
@@ -265,6 +285,7 @@ var x = {
265
285
  [/\*\//, "comment.doc", "@pop"],
266
286
  [/[\/*]/, "comment.doc"]
267
287
  ],
288
+ // We match regular expression quite precisely
268
289
  regexp: [
269
290
  [
270
291
  /(\{)(\d+(?:,\d*)?)(\})/,
@@ -0,0 +1,123 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+ var o = (e) => `\\b${e}\\b`, n = (e) => `(?!${e})`, r = "[_a-zA-Z]", i = "[_a-zA-Z0-9]", t = o(`${r}${i}*`), a = o("[_a-zA-Z-0-9]+"), s = [
8
+ "import",
9
+ "model",
10
+ "scalar",
11
+ "namespace",
12
+ "op",
13
+ "interface",
14
+ "union",
15
+ "using",
16
+ "is",
17
+ "extends",
18
+ "enum",
19
+ "alias",
20
+ "return",
21
+ "void",
22
+ "if",
23
+ "else",
24
+ "projection",
25
+ "dec",
26
+ "extern",
27
+ "fn"
28
+ ], c = ["true", "false", "null", "unknown", "never"], g = "[ \\t\\r\\n]", l = "[0-9]+", k = {
29
+ comments: {
30
+ lineComment: "//",
31
+ blockComment: ["/*", "*/"]
32
+ },
33
+ brackets: [
34
+ ["{", "}"],
35
+ ["[", "]"],
36
+ ["(", ")"]
37
+ ],
38
+ autoClosingPairs: [
39
+ { open: "{", close: "}" },
40
+ { open: "[", close: "]" },
41
+ { open: "(", close: ")" },
42
+ { open: '"', close: '"' },
43
+ { open: "/**", close: " */", notIn: ["string"] }
44
+ ],
45
+ surroundingPairs: [
46
+ { open: "{", close: "}" },
47
+ { open: "[", close: "]" },
48
+ { open: "(", close: ")" },
49
+ { open: '"', close: '"' }
50
+ ],
51
+ indentationRules: {
52
+ decreaseIndentPattern: new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),
53
+ increaseIndentPattern: new RegExp(
54
+ "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
55
+ ),
56
+ // e.g. * ...| or */| or *-----*/|
57
+ unIndentedLinePattern: new RegExp(
58
+ "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
59
+ )
60
+ }
61
+ }, x = {
62
+ defaultToken: "",
63
+ tokenPostfix: ".tsp",
64
+ brackets: [
65
+ { open: "{", close: "}", token: "delimiter.curly" },
66
+ { open: "[", close: "]", token: "delimiter.square" },
67
+ { open: "(", close: ")", token: "delimiter.parenthesis" }
68
+ ],
69
+ symbols: /[=:;<>]+/,
70
+ keywords: s,
71
+ namedLiterals: c,
72
+ escapes: '\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',
73
+ tokenizer: {
74
+ root: [{ include: "@expression" }, { include: "@whitespace" }],
75
+ stringVerbatim: [
76
+ { regex: '(|"|"")[^"]', action: { token: "string" } },
77
+ { regex: `"""${n('"')}`, action: { token: "string", next: "@pop" } }
78
+ ],
79
+ stringLiteral: [
80
+ { regex: "\\${", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
81
+ { regex: '[^\\\\"$]+', action: { token: "string" } },
82
+ { regex: "@escapes", action: { token: "string.escape" } },
83
+ { regex: "\\\\.", action: { token: "string.escape.invalid" } },
84
+ { regex: '"', action: { token: "string", next: "@pop" } }
85
+ ],
86
+ bracketCounting: [
87
+ { regex: "{", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
88
+ { regex: "}", action: { token: "delimiter.bracket", next: "@pop" } },
89
+ { include: "@expression" }
90
+ ],
91
+ comment: [
92
+ { regex: "[^\\*]+", action: { token: "comment" } },
93
+ { regex: "\\*\\/", action: { token: "comment", next: "@pop" } },
94
+ { regex: "[\\/*]", action: { token: "comment" } }
95
+ ],
96
+ whitespace: [
97
+ { regex: g },
98
+ { regex: "\\/\\*", action: { token: "comment", next: "@comment" } },
99
+ { regex: "\\/\\/.*$", action: { token: "comment" } }
100
+ ],
101
+ expression: [
102
+ { regex: '"""', action: { token: "string", next: "@stringVerbatim" } },
103
+ { regex: `"${n('""')}`, action: { token: "string", next: "@stringLiteral" } },
104
+ { regex: l, action: { token: "number" } },
105
+ {
106
+ regex: t,
107
+ action: {
108
+ cases: {
109
+ "@keywords": { token: "keyword" },
110
+ "@namedLiterals": { token: "keyword" },
111
+ "@default": { token: "identifier" }
112
+ }
113
+ }
114
+ },
115
+ { regex: `@${t}`, action: { token: "tag" } },
116
+ { regex: `#${a}`, action: { token: "directive" } }
117
+ ]
118
+ }
119
+ };
120
+ export {
121
+ k as conf,
122
+ x as language
123
+ };
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------------------------*/
@@ -62,6 +62,8 @@ var e = {
62
62
  { token: "delimiter.array", open: "[", close: "]" },
63
63
  { token: "delimiter.parenthesis", open: "(", close: ")" },
64
64
  { token: "delimiter.angle", open: "<", close: ">" },
65
+ // Special bracket statement pairs
66
+ // according to https://msdn.microsoft.com/en-us/library/tsw2a11z.aspx
65
67
  {
66
68
  token: "keyword.tag-addhandler",
67
69
  open: "addhandler",
@@ -124,6 +126,7 @@ var e = {
124
126
  { token: "keyword.tag-try", open: "try", close: "end try" },
125
127
  { token: "keyword.tag-while", open: "while", close: "end while" },
126
128
  { token: "keyword.tag-with", open: "with", close: "end with" },
129
+ // Other pairs
127
130
  { token: "keyword.tag-using", open: "using", close: "end using" },
128
131
  { token: "keyword.tag-do", open: "do", close: "loop" },
129
132
  { token: "keyword.tag-for", open: "for", close: "next" }
@@ -314,18 +317,24 @@ var e = {
314
317
  "RaiseEvent",
315
318
  "SyncLock"
316
319
  ],
320
+ // we include these common regular expressions
317
321
  symbols: /[=><!~?;\.,:&|+\-*\/\^%]+/,
318
322
  integersuffix: /U?[DI%L&S@]?/,
319
323
  floatsuffix: /[R#F!]?/,
324
+ // The main tokenizer for our languages
320
325
  tokenizer: {
321
326
  root: [
327
+ // whitespace
322
328
  { include: "@whitespace" },
329
+ // special ending tag-words
323
330
  [/next(?!\w)/, { token: "keyword.tag-for" }],
324
331
  [/loop(?!\w)/, { token: "keyword.tag-do" }],
332
+ // usual ending tags
325
333
  [
326
334
  /end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,
327
335
  { token: "keyword.tag-$1" }
328
336
  ],
337
+ // identifiers, tagwords, and keywords
329
338
  [
330
339
  /[a-zA-Z_]\w*/,
331
340
  {
@@ -336,15 +345,20 @@ var e = {
336
345
  }
337
346
  }
338
347
  ],
348
+ // Preprocessor directive
339
349
  [/^\s*#\w+/, "keyword"],
350
+ // numbers
340
351
  [/\d*\d+e([\-+]?\d+)?(@floatsuffix)/, "number.float"],
341
352
  [/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/, "number.float"],
342
353
  [/&H[0-9a-f]+(@integersuffix)/, "number.hex"],
343
354
  [/&0[0-7]+(@integersuffix)/, "number.octal"],
344
355
  [/\d+(@integersuffix)/, "number"],
356
+ // date literal
345
357
  [/#.*#/, "number"],
358
+ // delimiters and operators
346
359
  [/[{}()\[\]]/, "@brackets"],
347
360
  [/@symbols/, "delimiter"],
361
+ // strings
348
362
  [/["\u201c\u201d]/, { token: "string.quote", next: "@string" }]
349
363
  ],
350
364
  whitespace: [
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------------------------*/
@@ -347,6 +347,7 @@ var s = e("true false"), c = e(`
347
347
  root: [
348
348
  [_, "keyword", "@directive"],
349
349
  [
350
+ // Identifier-like things, but also include '_'
350
351
  n,
351
352
  {
352
353
  cases: {
@@ -383,16 +384,25 @@ var s = e("true false"), c = e(`
383
384
  [/\/\/.*$/, "comment"]
384
385
  ],
385
386
  blockComment: [
387
+ // Soak up uninteresting text: anything except * or /
386
388
  [/[^\/*]+/, "comment"],
389
+ // Recognize the start of a nested block comment.
387
390
  [/\/\*/, "comment", "@push"],
391
+ // Recognize the end of a nested block comment.
388
392
  [/\*\//, "comment", "@pop"],
393
+ // Recognize insignificant * and /
389
394
  [/[\/*]/, "comment"]
390
395
  ],
391
396
  attribute: [
397
+ // For things like '@fragment' both '@' and 'fragment'
398
+ // are marked as annotations. This should work even if
399
+ // there are spaces or comments between the two tokens.
392
400
  { include: "@commentOrSpace" },
393
401
  [/\w+/, "annotation", "@pop"]
394
402
  ],
395
403
  directive: [
404
+ // For things like 'enable f16;', 'enable' maps to 'meta'
405
+ // and 'f16' maps to 'meta.tag'.
396
406
  { include: "@commentOrSpace" },
397
407
  [/[()]/, "@brackets"],
398
408
  [/,/, "delimiter"],
@@ -400,17 +410,32 @@ var s = e("true false"), c = e(`
400
410
  [/;/, "delimiter", "@pop"]
401
411
  ],
402
412
  numbers: [
413
+ // Decimal float literals
414
+ // https://www.w3.org/TR/WGSL/#syntax-decimal_float_literal
415
+ // 0, with type-specifying suffix.
403
416
  [/0[fh]/, "number.float"],
417
+ // Other decimal integer, with type-specifying suffix.
404
418
  [/[1-9][0-9]*[fh]/, "number.float"],
419
+ // Has decimal point, at least one digit after decimal.
405
420
  [/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
421
+ // Has decimal point, at least one digit before decimal.
406
422
  [/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
423
+ // Has at least one digit, and has an exponent.
407
424
  [/[0-9]+[eE][+-]?[0-9]+[fh]?/, "number.float"],
425
+ // Hex float literals
426
+ // https://www.w3.org/TR/WGSL/#syntax-hex_float_literal
408
427
  [/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
409
428
  [/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
410
429
  [/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/, "number.hex"],
430
+ // Hexadecimal integer literals
431
+ // https://www.w3.org/TR/WGSL/#syntax-hex_int_literal
411
432
  [/0[xX][0-9a-fA-F]+[iu]?/, "number.hex"],
433
+ // Decimal integer literals
434
+ // https://www.w3.org/TR/WGSL/#syntax-decimal_int_literal
435
+ // We need two rules here because 01 is not valid.
412
436
  [/[1-9][0-9]*[iu]?/, "number"],
413
437
  [/0[iu]?/, "number"]
438
+ // Must match last
414
439
  ]
415
440
  }
416
441
  };