@nuraly/runtime 0.1.6 → 0.1.8
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.
- package/README.md +83 -765
- package/components/ui/components/Event/EventValue/EventValue.ts +13 -8
- package/components/ui/components/ToastContainer/ToastContainer.ts +1 -1
- package/components/ui/components/advanced/AIChat/AIChat.ts +1 -2
- package/components/ui/components/advanced/Collapse/Collapse.ts +5 -2
- package/components/ui/components/advanced/Collections/Collections.ts +2 -2
- package/components/ui/components/advanced/MicroApp/MicroApp.ts +3 -11
- package/components/ui/components/advanced/RefComponent/RefComponent.ts +2 -2
- package/components/ui/components/advanced/RichText/RichText.ts +5 -4
- package/components/ui/components/advanced/RichText/RichTextEditor.ts +0 -167
- package/components/ui/components/base/BaseElement/base-change-detection.ts +1 -5
- package/components/ui/components/base/BaseElement.ts +229 -610
- package/components/ui/components/base/FormRegisterable.ts +83 -0
- package/components/ui/components/base/controllers/DragDropController.ts +175 -0
- package/components/ui/components/base/controllers/ErrorController.ts +180 -0
- package/components/ui/components/base/controllers/EventController.ts +112 -0
- package/components/ui/components/base/controllers/InputHandlerController.ts +298 -0
- package/components/ui/components/base/controllers/SelectionController.ts +323 -0
- package/components/ui/components/base/controllers/StyleHandlerController.ts +286 -0
- package/components/ui/components/base/controllers/index.ts +11 -0
- package/components/ui/components/base/mixins/EditorModeMixin.ts +185 -0
- package/components/ui/components/base/mixins/index.ts +6 -0
- package/components/ui/components/base/types/base-element.types.ts +138 -0
- package/components/ui/components/base/types/index.ts +21 -0
- package/components/ui/components/base/utils/event-debouncer.ts +209 -0
- package/components/ui/components/base/utils/index.ts +11 -0
- package/components/ui/components/base/utils/style-cache.ts +94 -0
- package/components/ui/components/display/BoxModel/BoxModel.ts +177 -116
- package/components/ui/components/display/Code/Code.ts +40 -26
- package/components/ui/components/display/Divider/Divider.ts +2 -2
- package/components/ui/components/display/Icon/Icon.ts +2 -3
- package/components/ui/components/display/Image/Image.ts +72 -46
- package/components/ui/components/display/Tag/Tag.ts +2 -3
- package/components/ui/components/display/Video/Video.ts +91 -31
- package/components/ui/components/inputs/Button/Button.ts +2 -2
- package/components/ui/components/inputs/Checkbox/Checkbox.ts +14 -40
- package/components/ui/components/inputs/ColorPicker/colorpicker.ts +3 -4
- package/components/ui/components/inputs/DatePicker/DatePicker.ts +47 -25
- package/components/ui/components/inputs/Dropdown/Dropdown.ts +2 -2
- package/components/ui/components/inputs/Form/Form.style.ts +26 -0
- package/components/ui/components/inputs/Form/Form.ts +352 -0
- package/components/ui/components/inputs/IconPicker/IconPicker.ts +22 -18
- package/components/ui/components/inputs/InsertDropdown/InsertDropdown.ts +0 -20
- package/components/ui/components/inputs/NumberInput/NumberInput.ts +0 -4
- package/components/ui/components/inputs/RadioButton/Radio-button.ts +11 -13
- package/components/ui/components/inputs/Select/Select.ts +38 -24
- package/components/ui/components/inputs/TextInput/TextInput.ts +15 -9
- package/components/ui/components/inputs/Textarea/Textarea.ts +30 -30
- package/components/ui/components/inputs/UsersDropdown/UsersDropdown.ts +1 -1
- package/components/ui/components/layout/Card/Card.ts +112 -10
- package/components/ui/components/layout/Containers/Container.style.ts +18 -0
- package/components/ui/components/layout/Containers/Container.ts +11 -5
- package/components/ui/components/layout/Grid/Col.style.ts +27 -0
- package/components/ui/components/layout/Grid/Col.ts +209 -0
- package/components/ui/components/layout/Grid/Row.style.ts +73 -0
- package/components/ui/components/layout/Grid/Row.ts +166 -0
- package/components/ui/components/layout/Grid/index.ts +7 -0
- package/components/ui/components/layout/Panel/Panel.ts +2 -2
- package/components/ui/components/layout/Tabs/Tabs.ts +0 -1
- package/components/ui/components/navigation/EmbedURL/EmbedURL.ts +62 -26
- package/components/ui/components/navigation/Link/Link.ts +27 -16
- package/components/ui/components/navigation/Menu/Menu.ts +26 -48
- package/components/ui/components/runtime/MicroApp/MicroApp.ts +2 -4
- package/components/ui/components/runtime/MicroApp/MicroAppDataLoader.ts +6 -2
- package/components/ui/components/studio/FunctionsPanel/FunctionsPanel.ts +472 -0
- package/components/ui/components/studio/FunctionsPanel/index.ts +1 -0
- package/components/ui/components/utility/AccessRoles/AccessRoles.style.ts +242 -0
- package/components/ui/components/utility/AccessRoles/AccessRoles.ts +476 -0
- package/components/ui/components/utility/Border/Border.ts +0 -14
- package/components/ui/components/utility/BorderManager/BorderManager.style.ts +237 -0
- package/components/ui/components/utility/BorderManager/BorderManager.ts +503 -0
- package/components/ui/components/utility/BoxShadow/BoxShadow.ts +0 -16
- package/components/ui/components/utility/Document/Document.ts +54 -25
- package/components/ui/components/utility/Export-Import/Export-Import.ts +8 -7
- package/components/ui/components/utility/Handlers/Handlers.ts +14 -17
- package/components/ui/components/utility/ValidationRules/ValidationRules.ts +440 -0
- package/components/ui/components/wrappers/GenerikWrapper/DragWrapper/DragWrapper.ts +1 -0
- package/components/ui/components/wrappers/GenerikWrapper/GenerikWrapper.ts +1 -24
- package/components/ui/nuraly-ui/src/components/badge/badge.style.ts +4 -3
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.component.ts +2 -0
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.component.ts +12 -6
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.style.ts +23 -0
- package/dist/{index-B4yIOSMd.js → BaseElement-BNBn_IJk.js} +2920 -267
- package/dist/{CodeEditor-0GwD2UDB.js → CodeEditor-Bf4L2rO_.js} +84127 -76319
- package/dist/{CodeEditor-BiNku87K.js → CodeEditor-Cpph-xRc.js} +7 -7
- package/dist/{abap-B2diVmjb.js → abap-D0Neqhq6.js} +91 -1
- package/dist/{apex-3NuJ-nsI.js → apex-B5LhxkeG.js} +18 -1
- package/dist/assets/editor.worker-DcwbJ0PV.js +12 -0
- package/dist/assets/html.worker-BTMxskjR.js +461 -0
- package/dist/assets/json.worker-D3vTGdf_.js +49 -0
- package/dist/assets/ts.worker-BsM1BXac.js +51334 -0
- package/dist/{azcli-XGXuUsMB.js → azcli-BrBH0QTU.js} +1 -1
- package/dist/{bat-B8Vhm634.js → bat-BfzAov64.js} +12 -1
- package/dist/{bicep-Cc8X5S_k.js → bicep-C3bCSWel.js} +1 -1
- package/dist/{cameligo-Bo3wBh9T.js → cameligo-sFL5plcd.js} +13 -1
- package/dist/{clojure-CPoQlpIK.js → clojure-CfeExRz0.js} +14 -1
- package/dist/{coffee-BxvTGz39.js → coffee-Xws5K0WL.js} +11 -1
- package/dist/{cpp-5RpEV7vC.js → cpp-CqOUEpxN.js} +28 -23
- package/dist/{csharp-slXXP3fo.js → csharp-DVLiBOZb.js} +13 -1
- package/dist/{csp-B98p6-gH.js → csp-DVFp9bw5.js} +3 -1
- package/dist/{css-BDsDSAin.js → css-DwARn2R6.js} +8 -1
- package/dist/cssMode-DMsdy1N0.js +1577 -0
- package/dist/{cypher-Dc4IMouD.js → cypher-uY0Mffat.js} +8 -1
- package/dist/{dart-LhvE3yD2.js → dart-D27H-mX_.js} +18 -1
- package/dist/{dockerfile-CwzplJeZ.js → dockerfile-CmV85WZK.js} +5 -1
- package/dist/{ecl-DxW3FiJi.js → ecl--fKn7yzB.js} +9 -1
- package/dist/{elixir-BI40g7TU.js → elixir-DUhH17ON.js} +87 -1
- package/dist/{flow9-tR2v0bGz.js → flow9-B3Dx2LLe.js} +8 -1
- package/dist/{freemarker2-XzXhMwTc.js → freemarker2-D51H9HYi.js} +359 -7
- package/dist/{fsharp-BLAma0OT.js → fsharp-SyqBfUAR.js} +14 -1
- package/dist/{go-nYcD3y4Z.js → go-BbMR2tdT.js} +17 -1
- package/dist/{graphql-Dp1cHWmP.js → graphql-DDJE6tIl.js} +17 -1
- package/dist/{handlebars-CmrcNfkM.js → handlebars-CF6gdAX4.js} +38 -4
- package/dist/{hcl-6NT8Kbna.js → hcl-YBvpaUqf.js} +13 -1
- package/dist/{html-BsvlsNx5.js → html-c2n_zkM3.js} +37 -4
- package/dist/htmlMode-9IJTuZUh.js +1587 -0
- package/dist/{ini-BZCOLrEc.js → ini-Ct73dBtM.js} +10 -1
- package/dist/{java-DAMcfJbX.js → java-C_jlkwoG.js} +18 -1
- package/dist/{javascript-D-M-tA-x.js → javascript-DhEEBMxD.js} +3 -2
- package/dist/jsonMode-CB6k-4rp.js +2002 -0
- package/dist/{julia-CQ46G71H.js → julia-D8WE5U1e.js} +22 -1
- package/dist/{kotlin-CEjVo_6E.js → kotlin-Zy9aq5yB.js} +15 -1
- package/dist/{less-DreV99nP.js → less-sZ0iHtE8.js} +1 -1
- package/dist/{lexon-DBVJhqLb.js → lexon-CsdNL29A.js} +13 -1
- package/dist/{liquid-_8i5JYO-.js → liquid-CwtPiwnW.js} +12 -4
- package/dist/{lua-Dcc_j6L-.js → lua-C2YJo0zw.js} +12 -1
- package/dist/{m3-B9SlZL4n.js → m3-CPLP40SG.js} +7 -1
- package/dist/{markdown-CuGw9_MP.js → markdown-B1mf5e0R.js} +34 -1
- package/dist/{mdx-CiSJOftS.js → mdx-LewPRYF8.js} +2 -2
- package/dist/{micro-app-entry-BT6Pk6bn.js → micro-app-entry-C3RDIukG.js} +7621 -9067
- package/dist/micro-app.bundle.js +3 -3
- package/dist/micro-app.js +3575 -6621
- package/dist/{mips-BUWqP-OH.js → mips-DA33BZX1.js} +11 -1
- package/dist/{msdax-DtkouYCg.js → msdax-CCYFIQsP.js} +5 -1
- package/dist/{mysql-IkAsWSmF.js → mysql-hjmIjL-D.js} +11 -3
- package/dist/{objective-c-B2-ronfg.js → objective-c-RRCpEmqC.js} +2 -1
- package/dist/{pascal-Bsnz2eJA.js → pascal-CeV8XfxB.js} +13 -1
- package/dist/{pascaligo-D_sMUn0Q.js → pascaligo-IEEGVJAJ.js} +13 -1
- package/dist/{perl-BPzHt9SS.js → perl-B5-QbHq_.js} +34 -1
- package/dist/{pgsql-DlTJB0PD.js → pgsql-s6kqEJmi.js} +14 -4
- package/dist/{php-Dmq5OjwK.js → php-CWWqzOo8.js} +36 -1
- package/dist/{pla-HJcccrBy.js → pla-FSvb_YP_.js} +13 -1
- package/dist/{postiats-OQn6DKv-.js → postiats-DQdscQXO.js} +370 -1
- package/dist/{powerquery-DKaMYC8w.js → powerquery-CtA5JA1I.js} +7 -1
- package/dist/{powershell-DWeJHik1.js → powershell-DglEq96N.js} +13 -1
- package/dist/{protobuf-CBn_IseU.js → protobuf-BSepub3e.js} +5 -1
- package/dist/{pug-BoRpCINl.js → pug-B1847F4G.js} +16 -1
- package/dist/{python-DNxbUiJS.js → python-h5Z2g-yl.js} +59 -11
- package/dist/{qsharp-4rGyVZOw.js → qsharp-D4i0Nqg9.js} +28 -3
- package/dist/{r-DsgLhBOb.js → r-cdRigKxa.js} +5 -1
- package/dist/{razor-BFH0wq9s.js → razor-D5ep1Doy.js} +48 -4
- package/dist/{redis-B2fdL4Bg.js → redis-D9MFxvE8.js} +16 -6
- package/dist/{redshift-DoaeyCkH.js → redshift-CmCnsvL-.js} +13 -4
- package/dist/{restructuredtext-D-6OFBY9.js → restructuredtext-CWy8J51t.js} +19 -1
- package/dist/{ruby-D1DD6baV.js → ruby-WP-c36m5.js} +76 -3
- package/dist/runtime.js +34 -45
- package/dist/{rust-DssUV39M.js → rust-Q9FLdYpu.js} +13 -1
- package/dist/{sb-Dmb6tAdv.js → sb-C54-JBGT.js} +12 -1
- package/dist/{scala-Co3ETaym.js → scala-CzbFImc5.js} +24 -1
- package/dist/{scheme-CMrqXTty.js → scheme-BhfDmYN3.js} +1 -1
- package/dist/{scss-DkGudv8Q.js → scss-CEmiBXpS.js} +25 -1
- package/dist/{shell-BHN2BI4L.js → shell-Bmc1VhG0.js} +4 -1
- package/dist/{solidity-b-R-raGB.js → solidity-C9Q2I8Hh.js} +23 -1
- package/dist/{sophia-Y4GjyxNB.js → sophia-jWa1UyKz.js} +16 -1
- package/dist/{sparql-CDAPZb88.js → sparql-CM7jctbc.js} +15 -1
- package/dist/{sql-DkkpPiUq.js → sql-WzihTkbg.js} +42 -1
- package/dist/{st-CSPV91Ej.js → st-6y7_3aup.js} +8 -1
- package/dist/style.css +1 -1
- package/dist/{swift-DdSC5O48.js → swift-k-0zxG_D.js} +4 -1
- package/dist/{systemverilog-CI03XpAv.js → systemverilog-Pnr5_rIP.js} +29 -3
- package/dist/{tcl-B8DayMSI.js → tcl-fNPXval8.js} +7 -1
- package/dist/tsMode-B_6LiBE1.js +976 -0
- package/dist/{twig-B1AUPVB_.js → twig-L2MkztkV.js} +76 -1
- package/dist/{typescript-DFCDgKOy.js → typescript-BBG0jH4p.js} +23 -2
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/{vb-BIC7ccdG.js → vb-B5YC2xN9.js} +15 -1
- package/dist/{wgsl-C9yjop46.js → wgsl-D9BRtftY.js} +26 -1
- package/dist/{xml-axhHDYch.js → xml-DgLB7rE6.js} +8 -2
- package/dist/{yaml-fWSpoHsZ.js → yaml-DiI4HpSv.js} +30 -2
- package/handlers/compiler.ts +196 -16
- package/handlers/context-setup.ts +10 -5
- package/handlers/handler-api-factory.ts +358 -0
- package/handlers/handler-api.ts +379 -0
- package/handlers/handler-executor.ts +25 -5
- package/handlers/handler-scope.ts +398 -0
- package/handlers/index.ts +34 -2
- package/handlers/runtime-api/component-properties.ts +0 -8
- package/handlers/runtime-api/index.ts +1 -1
- package/handlers/runtime-api/toast.ts +1 -1
- package/index.ts +14 -115
- package/micro-app/README.md +10 -10
- package/micro-app/state/MicroAppRuntimeContext.ts +1 -28
- package/micro-app-entry.ts +0 -5
- package/package.json +19 -1
- package/redux/actions/application/index.ts +0 -1
- package/redux/actions/component/addComponentAction.ts +15 -4
- package/redux/actions/component/moveDraggedComponent.ts +1 -2
- package/redux/actions/component/update-component-name.ts +1 -1
- package/redux/actions/component/updateComponentAttributes.ts +7 -2
- package/redux/handlers/functions/build-function-handler.ts +11 -3
- package/redux/handlers/functions/deploy-function-handler.ts +11 -3
- package/redux/handlers/functions/invoke-function-handler.ts +11 -3
- package/redux/handlers/functions/load-functions-handler.ts +2 -1
- package/redux/handlers/functions/update-function-handler.ts +2 -1
- package/redux/store/component/component.interface.ts +8 -2
- package/redux/store/component/store.ts +1 -4
- package/state/runtime-context.ts +1 -23
- package/utils/RuntimeContextHelpers.ts +221 -90
- package/utils/change-detection.ts +125 -1
- package/utils/clipboard-utils.ts +18 -8
- package/utils/component-registry.ts +118 -0
- package/utils/index.ts +14 -1
- package/utils/naming-generator.ts +3 -1
- package/utils/randomness.ts +3 -1
- package/utils/register-components.ts +21 -29
- package/utils/render-util.ts +27 -48
- package/utils/toast.ts +97 -0
- package/vite.config.ts +29 -12
- package/components/ui/components/Event/EventAttribute/EventAttribute.style.ts +0 -11
- package/components/ui/components/Event/EventAttribute/EventAttribute.ts +0 -28
- package/components/ui/components/base/BaseElement/calculateStyles.ts +0 -31
- package/components/ui/components/base/BaseElement/drag-events.helpers.ts +0 -71
- package/components/ui/components/base/BaseElement/execute-event.helpers.ts +0 -45
- package/components/ui/components/base/BaseElement/interactions.helpers.ts +0 -14
- package/components/ui/components/wrappers/ComponentTitle/ComponentTitle.ts +0 -95
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.style.ts +0 -102
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.ts +0 -258
- package/components/ui/components/wrappers/PreviewWrapper.ts +0 -28
- package/components/ui/components/wrappers/RectangleSelection/RectangleSelection.ts +0 -154
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/constants.d.ts +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/constants.js +0 -7
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/controllers.d.ts +0 -21
- package/components/ui/nuraly-ui/packages/common/dist/controllers.js +0 -22
- package/components/ui/nuraly-ui/packages/common/dist/index.d.ts +0 -25
- package/components/ui/nuraly-ui/packages/common/dist/index.js +0 -27
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.js +0 -3
- package/components/ui/nuraly-ui/packages/common/dist/mixins.d.ts +0 -26
- package/components/ui/nuraly-ui/packages/common/dist/mixins.js +0 -29
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.d.ts +0 -42
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.js +0 -38
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.d.ts +0 -1
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.d.ts +0 -77
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.js +0 -341
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.d.ts +0 -37
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.d.ts +0 -4
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.js +0 -4
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.d.ts +0 -48
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.js +0 -133
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.d.ts +0 -37
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.js +0 -141
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.d.ts +0 -64
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.js +0 -95
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.d.ts +0 -13
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.js +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.d.ts +0 -78
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.js +0 -194
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.d.ts +0 -44
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.js +0 -85
- package/components/ui/nuraly-ui/packages/common/dist/shared/utils.d.ts +0 -60
- package/components/ui/nuraly-ui/packages/common/dist/shared/utils.js +0 -85
- package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.d.ts +0 -108
- package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.js +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/themes.d.ts +0 -22
- package/components/ui/nuraly-ui/packages/common/dist/themes.js +0 -23
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/utils.d.ts +0 -21
- package/components/ui/nuraly-ui/packages/common/dist/utils.js +0 -22
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/LICENSE +0 -15
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/README.md +0 -294
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy.js +0 -175
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/index.js +0 -16
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/index.js +0 -16
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/index.js +0 -7
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move.js +0 -59
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/async.js +0 -29
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/LICENSE +0 -15
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/README.md +0 -294
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy.js +0 -175
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/index.js +0 -16
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/index.js +0 -16
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/index.js +0 -7
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move.js +0 -59
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/async.js +0 -29
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/dist/SmartAttributeHandler-B1UJKlqJ.js +0 -153
- package/dist/SmartAttributeHandler-u-ZHGueR.js +0 -193
- package/dist/assets/editor.worker-C_S4Avdt.js +0 -11
- package/dist/assets/html.worker-DfuQASUV.js +0 -458
- package/dist/assets/json.worker-Cucz4wxY.js +0 -42
- package/dist/assets/ts.worker-Dme6S0YK.js +0 -37021
- package/dist/cssMode-BzqArQ52.js +0 -1443
- package/dist/htmlMode-CmNePjzn.js +0 -1453
- package/dist/jsonMode-CKj6yF-8.js +0 -1863
- package/dist/tsMode-DfXg_Y5Y.js +0 -800
- package/redux/actions/application/loadApplicationPermissionAction.ts +0 -10
- package/utils/styleUtil.ts +0 -7
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { css, LitElement, html } from 'lit';
|
|
2
2
|
import { property, customElement } from 'lit/decorators.js';
|
|
3
3
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
4
|
-
import * as monaco from '/
|
|
5
|
-
import { registerCompletion } from '/
|
|
6
|
-
import styles from '/
|
|
7
|
-
import editorWorker from '/
|
|
8
|
-
import tsWorker from '/
|
|
9
|
-
import htmlWorker from '/
|
|
10
|
-
import jsonWorker from '/
|
|
4
|
+
import * as monaco from '/home/runner/work/runtime/runtime/node_modules/monaco-editor/esm/vs/editor/editor.main.js';
|
|
5
|
+
import { registerCompletion } from '/home/runner/work/runtime/runtime/node_modules/monacopilot/build/index.mjs';
|
|
6
|
+
import styles from '/home/runner/work/runtime/runtime/node_modules/monaco-editor/min/vs/editor/editor.main.css?inline';
|
|
7
|
+
import editorWorker from '/home/runner/work/runtime/runtime/node_modules/monaco-editor/esm/vs/editor/editor.worker.js?worker';
|
|
8
|
+
import tsWorker from '/home/runner/work/runtime/runtime/node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js?worker';
|
|
9
|
+
import htmlWorker from '/home/runner/work/runtime/runtime/node_modules/monaco-editor/esm/vs/language/html/html.worker.js?worker';
|
|
10
|
+
import jsonWorker from '/home/runner/work/runtime/runtime/node_modules/monaco-editor/esm/vs/language/json/json.worker.js?worker';
|
|
11
11
|
|
|
12
12
|
const databaseTypeDefinitions = `
|
|
13
13
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
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
|
*-----------------------------------------------------------------------------*/
|
|
@@ -38,6 +38,7 @@ var e = {
|
|
|
38
38
|
"analysis",
|
|
39
39
|
"analyzer",
|
|
40
40
|
"and",
|
|
41
|
+
// also an operator
|
|
41
42
|
"append",
|
|
42
43
|
"appendage",
|
|
43
44
|
"appending",
|
|
@@ -68,6 +69,7 @@ var e = {
|
|
|
68
69
|
"before",
|
|
69
70
|
"begin",
|
|
70
71
|
"between",
|
|
72
|
+
// also an operator
|
|
71
73
|
"big",
|
|
72
74
|
"binary",
|
|
73
75
|
"bintohex",
|
|
@@ -151,6 +153,7 @@ var e = {
|
|
|
151
153
|
"concatenate",
|
|
152
154
|
"cond",
|
|
153
155
|
"condense",
|
|
156
|
+
// also a built-in
|
|
154
157
|
"condition",
|
|
155
158
|
"connect",
|
|
156
159
|
"connection",
|
|
@@ -279,6 +282,7 @@ var e = {
|
|
|
279
282
|
"enum",
|
|
280
283
|
"environment",
|
|
281
284
|
"equiv",
|
|
285
|
+
// also an operator
|
|
282
286
|
"errormessage",
|
|
283
287
|
"errors",
|
|
284
288
|
"escaping",
|
|
@@ -320,6 +324,7 @@ var e = {
|
|
|
320
324
|
"filter-table",
|
|
321
325
|
"final",
|
|
322
326
|
"find",
|
|
327
|
+
// also a built-in
|
|
323
328
|
"first",
|
|
324
329
|
"first-line",
|
|
325
330
|
"fixed-point",
|
|
@@ -356,6 +361,7 @@ var e = {
|
|
|
356
361
|
"handler",
|
|
357
362
|
"harmless",
|
|
358
363
|
"hashed",
|
|
364
|
+
// also a table type
|
|
359
365
|
"having",
|
|
360
366
|
"hdb",
|
|
361
367
|
"header",
|
|
@@ -386,6 +392,7 @@ var e = {
|
|
|
386
392
|
"import",
|
|
387
393
|
"importing",
|
|
388
394
|
"in",
|
|
395
|
+
// also an operator
|
|
389
396
|
"inactive",
|
|
390
397
|
"incl",
|
|
391
398
|
"include",
|
|
@@ -393,6 +400,7 @@ var e = {
|
|
|
393
400
|
"including",
|
|
394
401
|
"increment",
|
|
395
402
|
"index",
|
|
403
|
+
// also a table type
|
|
396
404
|
"index-line",
|
|
397
405
|
"infotypes",
|
|
398
406
|
"inheriting",
|
|
@@ -403,6 +411,7 @@ var e = {
|
|
|
403
411
|
"inout",
|
|
404
412
|
"input",
|
|
405
413
|
"insert",
|
|
414
|
+
// also a built-in
|
|
406
415
|
"instance",
|
|
407
416
|
"instances",
|
|
408
417
|
"instr",
|
|
@@ -444,6 +453,7 @@ var e = {
|
|
|
444
453
|
"like",
|
|
445
454
|
"line",
|
|
446
455
|
"lines",
|
|
456
|
+
// also a built-in
|
|
447
457
|
"line-count",
|
|
448
458
|
"linefeed",
|
|
449
459
|
"line-selection",
|
|
@@ -477,6 +487,7 @@ var e = {
|
|
|
477
487
|
"mark",
|
|
478
488
|
"mask",
|
|
479
489
|
"match",
|
|
490
|
+
// also a built-in
|
|
480
491
|
"matchcode",
|
|
481
492
|
"max",
|
|
482
493
|
"maximum",
|
|
@@ -532,9 +543,11 @@ var e = {
|
|
|
532
543
|
"non-unicode",
|
|
533
544
|
"non-unique",
|
|
534
545
|
"not",
|
|
546
|
+
// also an operator
|
|
535
547
|
"null",
|
|
536
548
|
"number",
|
|
537
549
|
"object",
|
|
550
|
+
// also a data type
|
|
538
551
|
"objects",
|
|
539
552
|
"obligatory",
|
|
540
553
|
"occurrence",
|
|
@@ -551,6 +564,7 @@ var e = {
|
|
|
551
564
|
"optional",
|
|
552
565
|
"options",
|
|
553
566
|
"or",
|
|
567
|
+
// also an operator
|
|
554
568
|
"order",
|
|
555
569
|
"other",
|
|
556
570
|
"others",
|
|
@@ -643,6 +657,7 @@ var e = {
|
|
|
643
657
|
"remote",
|
|
644
658
|
"renaming",
|
|
645
659
|
"replace",
|
|
660
|
+
// also a built-in
|
|
646
661
|
"replacement",
|
|
647
662
|
"replacing",
|
|
648
663
|
"report",
|
|
@@ -717,6 +732,7 @@ var e = {
|
|
|
717
732
|
"sort",
|
|
718
733
|
"sortable",
|
|
719
734
|
"sorted",
|
|
735
|
+
// also a table type
|
|
720
736
|
"source",
|
|
721
737
|
"specified",
|
|
722
738
|
"split",
|
|
@@ -727,6 +743,7 @@ var e = {
|
|
|
727
743
|
"stable",
|
|
728
744
|
"stamp",
|
|
729
745
|
"standard",
|
|
746
|
+
// also a table type
|
|
730
747
|
"starting",
|
|
731
748
|
"start-of-editing",
|
|
732
749
|
"start-of-selection",
|
|
@@ -802,6 +819,7 @@ var e = {
|
|
|
802
819
|
"transfer",
|
|
803
820
|
"transformation",
|
|
804
821
|
"translate",
|
|
822
|
+
// also a built-in
|
|
805
823
|
"transporting",
|
|
806
824
|
"trmac",
|
|
807
825
|
"truncate",
|
|
@@ -868,6 +886,7 @@ var e = {
|
|
|
868
886
|
"yymmdd",
|
|
869
887
|
"zero",
|
|
870
888
|
"zone",
|
|
889
|
+
// since 7.55:
|
|
871
890
|
"abap_system_timezone",
|
|
872
891
|
"abap_user_timezone",
|
|
873
892
|
"access",
|
|
@@ -1003,6 +1022,11 @@ var e = {
|
|
|
1003
1022
|
"var",
|
|
1004
1023
|
"verbatim"
|
|
1005
1024
|
],
|
|
1025
|
+
//
|
|
1026
|
+
// Built-in Functions
|
|
1027
|
+
//
|
|
1028
|
+
// Functions that are also statements have been moved to keywords
|
|
1029
|
+
//
|
|
1006
1030
|
builtinFunctions: [
|
|
1007
1031
|
"abs",
|
|
1008
1032
|
"acos",
|
|
@@ -1017,6 +1041,7 @@ var e = {
|
|
|
1017
1041
|
"cmax",
|
|
1018
1042
|
"cmin",
|
|
1019
1043
|
"concat_lines_of",
|
|
1044
|
+
// 'condense', // moved to keywords
|
|
1020
1045
|
"contains",
|
|
1021
1046
|
"contains_any_not_of",
|
|
1022
1047
|
"contains_any_of",
|
|
@@ -1029,22 +1054,27 @@ var e = {
|
|
|
1029
1054
|
"distance",
|
|
1030
1055
|
"escape",
|
|
1031
1056
|
"exp",
|
|
1057
|
+
// 'find', // moved to keywords
|
|
1032
1058
|
"find_any_not_of",
|
|
1033
1059
|
"find_any_of",
|
|
1034
1060
|
"find_end",
|
|
1035
1061
|
"floor",
|
|
1036
1062
|
"frac",
|
|
1037
1063
|
"from_mixed",
|
|
1064
|
+
// 'insert', // moved to keywords
|
|
1038
1065
|
"ipow",
|
|
1039
1066
|
"line_exists",
|
|
1040
1067
|
"line_index",
|
|
1068
|
+
// 'lines', // moved to keywords
|
|
1041
1069
|
"log",
|
|
1042
1070
|
"log10",
|
|
1071
|
+
// 'match', // moved to keywords
|
|
1043
1072
|
"matches",
|
|
1044
1073
|
"nmax",
|
|
1045
1074
|
"nmin",
|
|
1046
1075
|
"numofchar",
|
|
1047
1076
|
"repeat",
|
|
1077
|
+
// 'replace', // moved to keywords
|
|
1048
1078
|
"rescale",
|
|
1049
1079
|
"reverse",
|
|
1050
1080
|
"round",
|
|
@@ -1066,14 +1096,24 @@ var e = {
|
|
|
1066
1096
|
"to_lower",
|
|
1067
1097
|
"to_mixed",
|
|
1068
1098
|
"to_upper",
|
|
1099
|
+
// 'translate', // moved to keywords
|
|
1069
1100
|
"trunc",
|
|
1070
1101
|
"utclong_add",
|
|
1102
|
+
// since 7.54
|
|
1071
1103
|
"utclong_current",
|
|
1104
|
+
// since 7.54
|
|
1072
1105
|
"utclong_diff",
|
|
1106
|
+
// since 7.54
|
|
1073
1107
|
"xsdbool",
|
|
1074
1108
|
"xstrlen"
|
|
1075
1109
|
],
|
|
1110
|
+
//
|
|
1111
|
+
// Data Types
|
|
1112
|
+
//
|
|
1113
|
+
// Data types that are also part of statements have been moved to keywords
|
|
1114
|
+
//
|
|
1076
1115
|
typeKeywords: [
|
|
1116
|
+
// built-in abap types
|
|
1077
1117
|
"b",
|
|
1078
1118
|
"c",
|
|
1079
1119
|
"d",
|
|
@@ -1082,34 +1122,46 @@ var e = {
|
|
|
1082
1122
|
"f",
|
|
1083
1123
|
"i",
|
|
1084
1124
|
"int8",
|
|
1125
|
+
// since 7.54
|
|
1085
1126
|
"n",
|
|
1086
1127
|
"p",
|
|
1087
1128
|
"s",
|
|
1088
1129
|
"string",
|
|
1089
1130
|
"t",
|
|
1090
1131
|
"utclong",
|
|
1132
|
+
// since 7.54
|
|
1091
1133
|
"x",
|
|
1092
1134
|
"xstring",
|
|
1135
|
+
// generic data types
|
|
1093
1136
|
"any",
|
|
1094
1137
|
"clike",
|
|
1095
1138
|
"csequence",
|
|
1096
1139
|
"decfloat",
|
|
1140
|
+
// 'object', // moved to keywords
|
|
1097
1141
|
"numeric",
|
|
1098
1142
|
"simple",
|
|
1099
1143
|
"xsequence",
|
|
1144
|
+
// ddic/sql data types
|
|
1100
1145
|
"accp",
|
|
1101
1146
|
"char",
|
|
1102
1147
|
"clnt",
|
|
1103
1148
|
"cuky",
|
|
1104
1149
|
"curr",
|
|
1105
1150
|
"datn",
|
|
1151
|
+
// since 7.55
|
|
1106
1152
|
"dats",
|
|
1107
1153
|
"d16d",
|
|
1154
|
+
// since 7.55
|
|
1108
1155
|
"d16n",
|
|
1156
|
+
// since 7.55
|
|
1109
1157
|
"d16r",
|
|
1158
|
+
// since 7.55
|
|
1110
1159
|
"d34d",
|
|
1160
|
+
// since 7.55
|
|
1111
1161
|
"d34n",
|
|
1162
|
+
// since 7.55
|
|
1112
1163
|
"d34r",
|
|
1164
|
+
// since 7.55
|
|
1113
1165
|
"dec",
|
|
1114
1166
|
"df16_dec",
|
|
1115
1167
|
"df16_raw",
|
|
@@ -1117,6 +1169,7 @@ var e = {
|
|
|
1117
1169
|
"df34_raw",
|
|
1118
1170
|
"fltp",
|
|
1119
1171
|
"geom_ewkb",
|
|
1172
|
+
// since 7.55
|
|
1120
1173
|
"int1",
|
|
1121
1174
|
"int2",
|
|
1122
1175
|
"int4",
|
|
@@ -1129,13 +1182,17 @@ var e = {
|
|
|
1129
1182
|
"rawstring",
|
|
1130
1183
|
"sstring",
|
|
1131
1184
|
"timn",
|
|
1185
|
+
// since 7.55
|
|
1132
1186
|
"tims",
|
|
1133
1187
|
"unit",
|
|
1134
1188
|
"utcl",
|
|
1189
|
+
// since 7.55
|
|
1190
|
+
// ddic data types (obsolete)
|
|
1135
1191
|
"df16_scl",
|
|
1136
1192
|
"df34_scl",
|
|
1137
1193
|
"prec",
|
|
1138
1194
|
"varc",
|
|
1195
|
+
// special data types and constants
|
|
1139
1196
|
"abap_bool",
|
|
1140
1197
|
"abap_false",
|
|
1141
1198
|
"abap_true",
|
|
@@ -1147,6 +1204,7 @@ var e = {
|
|
|
1147
1204
|
"sy",
|
|
1148
1205
|
"syst",
|
|
1149
1206
|
"table_line",
|
|
1207
|
+
// obsolete data object
|
|
1150
1208
|
"*sys*"
|
|
1151
1209
|
],
|
|
1152
1210
|
builtinMethods: ["class_constructor", "constructor"],
|
|
@@ -1187,7 +1245,13 @@ var e = {
|
|
|
1187
1245
|
"$SELF"
|
|
1188
1246
|
],
|
|
1189
1247
|
selectors: ["->", "->*", "=>", "~", "~*"],
|
|
1248
|
+
//
|
|
1249
|
+
// Operators
|
|
1250
|
+
//
|
|
1251
|
+
// Operators that can be part of statements have been moved to keywords
|
|
1252
|
+
//
|
|
1190
1253
|
operators: [
|
|
1254
|
+
// arithmetic operators
|
|
1191
1255
|
" +",
|
|
1192
1256
|
" -",
|
|
1193
1257
|
"/",
|
|
@@ -1195,6 +1259,7 @@ var e = {
|
|
|
1195
1259
|
"**",
|
|
1196
1260
|
"div",
|
|
1197
1261
|
"mod",
|
|
1262
|
+
// assignment operators
|
|
1198
1263
|
"=",
|
|
1199
1264
|
"#",
|
|
1200
1265
|
"@",
|
|
@@ -1204,9 +1269,12 @@ var e = {
|
|
|
1204
1269
|
"/=",
|
|
1205
1270
|
"**=",
|
|
1206
1271
|
"&&=",
|
|
1272
|
+
// casting operator
|
|
1207
1273
|
"?=",
|
|
1274
|
+
// concat operators
|
|
1208
1275
|
"&",
|
|
1209
1276
|
"&&",
|
|
1277
|
+
// bit operators
|
|
1210
1278
|
"bit-and",
|
|
1211
1279
|
"bit-not",
|
|
1212
1280
|
"bit-or",
|
|
@@ -1214,14 +1282,25 @@ var e = {
|
|
|
1214
1282
|
"m",
|
|
1215
1283
|
"o",
|
|
1216
1284
|
"z",
|
|
1285
|
+
// boolean operators
|
|
1286
|
+
// 'and', // moved to keywords
|
|
1287
|
+
// 'equiv', // moved to keywords
|
|
1288
|
+
// 'not', // moved to keywords
|
|
1289
|
+
// 'or', // moved to keywords
|
|
1290
|
+
// comparison operators
|
|
1217
1291
|
"<",
|
|
1218
1292
|
" >",
|
|
1293
|
+
// todo: separate from -> and =>
|
|
1219
1294
|
"<=",
|
|
1220
1295
|
">=",
|
|
1221
1296
|
"<>",
|
|
1222
1297
|
"><",
|
|
1298
|
+
// obsolete
|
|
1223
1299
|
"=<",
|
|
1300
|
+
// obsolete
|
|
1224
1301
|
"=>",
|
|
1302
|
+
// obsolete
|
|
1303
|
+
// 'between', // moved to keywords
|
|
1225
1304
|
"bt",
|
|
1226
1305
|
"byte-ca",
|
|
1227
1306
|
"byte-cn",
|
|
@@ -1235,15 +1314,23 @@ var e = {
|
|
|
1235
1314
|
"cp",
|
|
1236
1315
|
"cs",
|
|
1237
1316
|
"eq",
|
|
1317
|
+
// obsolete
|
|
1238
1318
|
"ge",
|
|
1319
|
+
// obsolete
|
|
1239
1320
|
"gt",
|
|
1321
|
+
// obsolete
|
|
1322
|
+
// 'in', // moved to keywords
|
|
1240
1323
|
"le",
|
|
1324
|
+
// obsolete
|
|
1241
1325
|
"lt",
|
|
1326
|
+
// obsolete
|
|
1242
1327
|
"na",
|
|
1243
1328
|
"nb",
|
|
1244
1329
|
"ne",
|
|
1330
|
+
// obsolete
|
|
1245
1331
|
"np",
|
|
1246
1332
|
"ns",
|
|
1333
|
+
// cds
|
|
1247
1334
|
"*/",
|
|
1248
1335
|
"*:",
|
|
1249
1336
|
"--",
|
|
@@ -1255,6 +1342,7 @@ var e = {
|
|
|
1255
1342
|
root: [
|
|
1256
1343
|
[
|
|
1257
1344
|
/[a-z_\/$%@]([\w\/$%]|-(?!>))*/,
|
|
1345
|
+
// exclude '->' selector
|
|
1258
1346
|
{
|
|
1259
1347
|
cases: {
|
|
1260
1348
|
"@typeKeywords": "type",
|
|
@@ -1269,7 +1357,9 @@ var e = {
|
|
|
1269
1357
|
}
|
|
1270
1358
|
],
|
|
1271
1359
|
[/<[\w]+>/, "identifier"],
|
|
1360
|
+
// field symbols
|
|
1272
1361
|
[/##[\w|_]+/, "comment"],
|
|
1362
|
+
// pragmas
|
|
1273
1363
|
{ include: "@whitespace" },
|
|
1274
1364
|
[/[:,.]/, "delimiter"],
|
|
1275
1365
|
[/[{}()\[\]]/, "@brackets"],
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
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
|
*-----------------------------------------------------------------------------*/
|
|
7
7
|
var n = {
|
|
8
|
+
// the default separators except `@$`
|
|
8
9
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
9
10
|
comments: {
|
|
10
11
|
lineComment: "//",
|
|
@@ -225,14 +226,17 @@ var i = {
|
|
|
225
226
|
">>=",
|
|
226
227
|
">>>="
|
|
227
228
|
],
|
|
229
|
+
// we include these common regular expressions
|
|
228
230
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
229
231
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
230
232
|
digits: /\d+(_+\d+)*/,
|
|
231
233
|
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
|
232
234
|
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
|
233
235
|
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
236
|
+
// The main tokenizer for our languages
|
|
234
237
|
tokenizer: {
|
|
235
238
|
root: [
|
|
239
|
+
// identifiers and keywords
|
|
236
240
|
[
|
|
237
241
|
/[a-z_$][\w$]*/,
|
|
238
242
|
{
|
|
@@ -242,6 +246,7 @@ var i = {
|
|
|
242
246
|
}
|
|
243
247
|
}
|
|
244
248
|
],
|
|
249
|
+
// assume that identifiers starting with an uppercase letter are types
|
|
245
250
|
[
|
|
246
251
|
/[A-Z][\w\$]*/,
|
|
247
252
|
{
|
|
@@ -251,7 +256,9 @@ var i = {
|
|
|
251
256
|
}
|
|
252
257
|
}
|
|
253
258
|
],
|
|
259
|
+
// whitespace
|
|
254
260
|
{ include: "@whitespace" },
|
|
261
|
+
// delimiters and operators
|
|
255
262
|
[/[{}()\[\]]/, "@brackets"],
|
|
256
263
|
[/[<>](?!@symbols)/, "@brackets"],
|
|
257
264
|
[
|
|
@@ -263,16 +270,23 @@ var i = {
|
|
|
263
270
|
}
|
|
264
271
|
}
|
|
265
272
|
],
|
|
273
|
+
// @ annotations.
|
|
266
274
|
[/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
|
|
275
|
+
// numbers
|
|
267
276
|
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
|
|
268
277
|
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
|
|
269
278
|
[/(@digits)[fFdD]/, "number.float"],
|
|
270
279
|
[/(@digits)[lL]?/, "number"],
|
|
280
|
+
// delimiter: after number because of .\d floats
|
|
271
281
|
[/[;,.]/, "delimiter"],
|
|
282
|
+
// strings
|
|
272
283
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
284
|
+
// non-teminated string
|
|
273
285
|
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
286
|
+
// non-teminated string
|
|
274
287
|
[/"/, "string", '@string."'],
|
|
275
288
|
[/'/, "string", "@string.'"],
|
|
289
|
+
// characters
|
|
276
290
|
[/'[^\\']'/, "string"],
|
|
277
291
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
278
292
|
[/'/, "string.invalid"]
|
|
@@ -285,9 +299,12 @@ var i = {
|
|
|
285
299
|
],
|
|
286
300
|
comment: [
|
|
287
301
|
[/[^\/*]+/, "comment"],
|
|
302
|
+
// [/\/\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
|
303
|
+
// [/\/\*/, 'comment.invalid' ], // this breaks block comments in the shape of /* //*/
|
|
288
304
|
[/\*\//, "comment", "@pop"],
|
|
289
305
|
[/[\/*]/, "comment"]
|
|
290
306
|
],
|
|
307
|
+
//Identical copy of comment above, except for the addition of .doc
|
|
291
308
|
apexdoc: [
|
|
292
309
|
[/[^\/*]+/, "comment.doc"],
|
|
293
310
|
[/\*\//, "comment.doc", "@pop"],
|