@nuraly/runtime 0.1.0
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 +778 -0
- package/components/index.ts +13 -0
- package/components/ui/components/Event/EventAttribute/EventAttribute.style.ts +11 -0
- package/components/ui/components/Event/EventAttribute/EventAttribute.ts +28 -0
- package/components/ui/components/Event/EventLabel/EventLabel.ts +19 -0
- package/components/ui/components/Event/EventValue/EventValue.ts +79 -0
- package/components/ui/components/ToastContainer/ToastContainer.ts +126 -0
- package/components/ui/components/advanced/AIChat/AIChat.helper.ts +22 -0
- package/components/ui/components/advanced/AIChat/AIChat.style.ts +52 -0
- package/components/ui/components/advanced/AIChat/AIChat.ts +143 -0
- package/components/ui/components/advanced/CodeEditor/CodeEditor.ts +489 -0
- package/components/ui/components/advanced/Collapse/Collapse.ts +86 -0
- package/components/ui/components/advanced/Collections/Collections.style.ts +21 -0
- package/components/ui/components/advanced/Collections/Collections.ts +125 -0
- package/components/ui/components/advanced/MicroApp/MicroApp.ts +98 -0
- package/components/ui/components/advanced/RefComponent/RefComponent.ts +86 -0
- package/components/ui/components/advanced/RichText/RichText.ts +98 -0
- package/components/ui/components/advanced/RichText/RichTextEditor.ts +536 -0
- package/components/ui/components/base/BaseElement/base-change-detection.ts +18 -0
- package/components/ui/components/base/BaseElement/calculateStyles.ts +31 -0
- package/components/ui/components/base/BaseElement/drag-events.helpers.ts +71 -0
- package/components/ui/components/base/BaseElement/execute-event.helpers.ts +45 -0
- package/components/ui/components/base/BaseElement/handler-component-error.ts +28 -0
- package/components/ui/components/base/BaseElement/input-handler.helpers.ts +358 -0
- package/components/ui/components/base/BaseElement/interactions.helpers.ts +14 -0
- package/components/ui/components/base/BaseElement.ts +711 -0
- package/components/ui/components/display/Badge/Badge.ts +61 -0
- package/components/ui/components/display/BoxModel/BoxModel.ts +372 -0
- package/components/ui/components/display/Code/Code.ts +103 -0
- package/components/ui/components/display/Divider/Divider.ts +98 -0
- package/components/ui/components/display/Icon/Icon.ts +60 -0
- package/components/ui/components/display/Image/Image.ts +75 -0
- package/components/ui/components/display/Table/Table.style.ts +0 -0
- package/components/ui/components/display/Table/Table.ts +178 -0
- package/components/ui/components/display/Tag/Tag.ts +49 -0
- package/components/ui/components/display/TextLabel/TextLabel.style.ts +21 -0
- package/components/ui/components/display/TextLabel/TextLabel.ts +72 -0
- package/components/ui/components/display/Video/Video.ts +46 -0
- package/components/ui/components/inputs/Button/Button.style.ts +0 -0
- package/components/ui/components/inputs/Button/Button.ts +79 -0
- package/components/ui/components/inputs/Checkbox/Checkbox.ts +76 -0
- package/components/ui/components/inputs/ColorPicker/colorpicker.ts +65 -0
- package/components/ui/components/inputs/DatePicker/DatePicker.ts +60 -0
- package/components/ui/components/inputs/Dropdown/Dropdown.ts +128 -0
- package/components/ui/components/inputs/FileUpload/FileUpload.ts +43 -0
- package/components/ui/components/inputs/IconButton/iconbutton.ts +54 -0
- package/components/ui/components/inputs/IconPicker/IconPicker.style.ts +109 -0
- package/components/ui/components/inputs/IconPicker/IconPicker.ts +61 -0
- package/components/ui/components/inputs/InsertDropdown/InsertDropdown.ts +75 -0
- package/components/ui/components/inputs/NumberInput/NumberInput.ts +84 -0
- package/components/ui/components/inputs/RadioButton/Radio-button.ts +69 -0
- package/components/ui/components/inputs/Select/Select.ts +65 -0
- package/components/ui/components/inputs/Slider/Slider.ts +63 -0
- package/components/ui/components/inputs/TextInput/TextInput.style.ts +0 -0
- package/components/ui/components/inputs/TextInput/TextInput.ts +153 -0
- package/components/ui/components/inputs/Textarea/Textarea.ts +110 -0
- package/components/ui/components/inputs/UsersDropdown/UsersDropdown.ts +30 -0
- package/components/ui/components/layout/Card/Card.ts +46 -0
- package/components/ui/components/layout/Containers/Container.style.ts +34 -0
- package/components/ui/components/layout/Containers/Container.ts +127 -0
- package/components/ui/components/layout/Panel/Panel.ts +156 -0
- package/components/ui/components/layout/Panel/index.ts +1 -0
- package/components/ui/components/layout/Tabs/Tabs.style.ts +5 -0
- package/components/ui/components/layout/Tabs/Tabs.ts +120 -0
- package/components/ui/components/navigation/EmbedURL/EmbedURL.ts +108 -0
- package/components/ui/components/navigation/Link/Link.ts +83 -0
- package/components/ui/components/navigation/Menu/Menu.ts +92 -0
- package/components/ui/components/runtime/MicroApp/MicroApp.ts +485 -0
- package/components/ui/components/runtime/MicroApp/MicroAppDataLoader.ts +240 -0
- package/components/ui/components/utility/Border/Border.ts +643 -0
- package/components/ui/components/utility/BoxShadow/BoxShadow.ts +253 -0
- package/components/ui/components/utility/Document/Document.ts +47 -0
- package/components/ui/components/utility/Export-Import/Export-Import.ts +122 -0
- package/components/ui/components/utility/Function/InvokeFunction.ts +63 -0
- package/components/ui/components/utility/Handlers/Handlers.style.ts +0 -0
- package/components/ui/components/utility/Handlers/Handlers.ts +200 -0
- package/components/ui/components/wrappers/ComponentTitle/ComponentTitle.ts +95 -0
- package/components/ui/components/wrappers/GenerikWrapper/DragWrapper/DragWrapper.style.ts +17 -0
- package/components/ui/components/wrappers/GenerikWrapper/DragWrapper/DragWrapper.ts +230 -0
- package/components/ui/components/wrappers/GenerikWrapper/GenerikWrapper.style.ts +135 -0
- package/components/ui/components/wrappers/GenerikWrapper/GenerikWrapper.ts +230 -0
- package/components/ui/components/wrappers/GenerikWrapper/QuickActionWrapper/QuickActionWrapper.style.ts +99 -0
- package/components/ui/components/wrappers/GenerikWrapper/QuickActionWrapper/QuickActionWrapper.ts +94 -0
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.style.ts +102 -0
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.ts +258 -0
- package/components/ui/components/wrappers/PreviewWrapper.ts +28 -0
- package/components/ui/components/wrappers/RectangleSelection/RectangleSelection.ts +154 -0
- package/components/ui/nuraly-ui/.storybook/main.ts +31 -0
- package/components/ui/nuraly-ui/.storybook/manager.ts +17 -0
- package/components/ui/nuraly-ui/.storybook/preview.ts +94 -0
- package/components/ui/nuraly-ui/LICENSE +28 -0
- package/components/ui/nuraly-ui/README.md +248 -0
- package/components/ui/nuraly-ui/examples/README.md +413 -0
- package/components/ui/nuraly-ui/packages/common/README.md +137 -0
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.js +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/constants.js +7 -0
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.js +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/controllers.js +22 -0
- package/components/ui/nuraly-ui/packages/common/dist/index.js +27 -0
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.js +3 -0
- package/components/ui/nuraly-ui/packages/common/dist/mixins.js +29 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.js +38 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.js +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.js +341 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.js +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.js +4 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.js +133 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.js +141 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.js +95 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.js +17 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.js +194 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.js +85 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/utils.js +85 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.js +17 -0
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.js +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/themes.js +23 -0
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.js +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/utils.js +22 -0
- package/components/ui/nuraly-ui/packages/forms/README.md +84 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/LICENSE +15 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/README.md +294 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy-sync.js +171 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy.js +175 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/file.js +66 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/fs/index.js +146 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/index.js +16 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/index.js +16 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/index.js +7 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move-sync.js +55 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move.js +59 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/output-file/index.js +31 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/remove/index.js +17 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/async.js +29 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/stat.js +159 -0
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/utimes.js +36 -0
- package/components/ui/nuraly-ui/packages/layout/README.md +77 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/LICENSE +15 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/README.md +294 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy-sync.js +171 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy.js +175 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/file.js +66 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/fs/index.js +146 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/index.js +16 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/index.js +16 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/index.js +7 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move-sync.js +55 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move.js +59 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/output-file/index.js +31 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/remove/index.js +17 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/async.js +29 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/stat.js +159 -0
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/utimes.js +36 -0
- package/components/ui/nuraly-ui/packages/themes/README.md +146 -0
- package/components/ui/nuraly-ui/packages/themes/scripts/build.js +444 -0
- package/components/ui/nuraly-ui/rollup.config.js +144 -0
- package/components/ui/nuraly-ui/src/components/alert/README.md +236 -0
- package/components/ui/nuraly-ui/src/components/alert/alert.component.ts +225 -0
- package/components/ui/nuraly-ui/src/components/alert/alert.stories.ts +466 -0
- package/components/ui/nuraly-ui/src/components/alert/alert.style.ts +192 -0
- package/components/ui/nuraly-ui/src/components/alert/alert.types.ts +57 -0
- package/components/ui/nuraly-ui/src/components/alert/index.ts +8 -0
- package/components/ui/nuraly-ui/src/components/alert/react.ts +17 -0
- package/components/ui/nuraly-ui/src/components/badge/README.md +319 -0
- package/components/ui/nuraly-ui/src/components/badge/badge.component.ts +314 -0
- package/components/ui/nuraly-ui/src/components/badge/badge.stories.ts +582 -0
- package/components/ui/nuraly-ui/src/components/badge/badge.style.ts +250 -0
- package/components/ui/nuraly-ui/src/components/badge/badge.types.ts +100 -0
- package/components/ui/nuraly-ui/src/components/badge/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/badge/react.ts +9 -0
- package/components/ui/nuraly-ui/src/components/breadcrumb/README.md +243 -0
- package/components/ui/nuraly-ui/src/components/breadcrumb/breadcrumb.component.ts +280 -0
- package/components/ui/nuraly-ui/src/components/breadcrumb/breadcrumb.stories.ts +389 -0
- package/components/ui/nuraly-ui/src/components/breadcrumb/breadcrumb.style.ts +154 -0
- package/components/ui/nuraly-ui/src/components/breadcrumb/breadcrumb.types.ts +66 -0
- package/components/ui/nuraly-ui/src/components/breadcrumb/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/breadcrumb/react.ts +11 -0
- package/components/ui/nuraly-ui/src/components/button/README.md +331 -0
- package/components/ui/nuraly-ui/src/components/button/button.component.ts +317 -0
- package/components/ui/nuraly-ui/src/components/button/button.stories.ts +861 -0
- package/components/ui/nuraly-ui/src/components/button/button.style.ts +520 -0
- package/components/ui/nuraly-ui/src/components/button/button.types.ts +68 -0
- package/components/ui/nuraly-ui/src/components/button/controllers/base.controller.ts +99 -0
- package/components/ui/nuraly-ui/src/components/button/controllers/index.ts +10 -0
- package/components/ui/nuraly-ui/src/components/button/controllers/keyboard.controller.ts +89 -0
- package/components/ui/nuraly-ui/src/components/button/controllers/link.controller.ts +86 -0
- package/components/ui/nuraly-ui/src/components/button/controllers/ripple.controller.ts +79 -0
- package/components/ui/nuraly-ui/src/components/button/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/button/interfaces/base-controller.interface.ts +67 -0
- package/components/ui/nuraly-ui/src/components/button/interfaces/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/button/react.ts +11 -0
- package/components/ui/nuraly-ui/src/components/button/test/nr-button_test.ts +90 -0
- package/components/ui/nuraly-ui/src/components/canvas/canvas.component.ts +306 -0
- package/components/ui/nuraly-ui/src/components/canvas/demo/canvas-demo.ts +18 -0
- package/components/ui/nuraly-ui/src/components/canvas/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/canvas/react.ts +13 -0
- package/components/ui/nuraly-ui/src/components/card/card.component.ts +50 -0
- package/components/ui/nuraly-ui/src/components/card/card.stories.ts +360 -0
- package/components/ui/nuraly-ui/src/components/card/card.style.ts +62 -0
- package/components/ui/nuraly-ui/src/components/card/card.types.ts +17 -0
- package/components/ui/nuraly-ui/src/components/card/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/card/react.ts +12 -0
- package/components/ui/nuraly-ui/src/components/carousel/carousel.component.ts +116 -0
- package/components/ui/nuraly-ui/src/components/carousel/carousel.style.ts +69 -0
- package/components/ui/nuraly-ui/src/components/carousel/demo/carousel-demo.ts +59 -0
- package/components/ui/nuraly-ui/src/components/carousel/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/carousel/react.ts +12 -0
- package/components/ui/nuraly-ui/src/components/chatbot/README.md +527 -0
- package/components/ui/nuraly-ui/src/components/chatbot/chatbot.component.ts +730 -0
- package/components/ui/nuraly-ui/src/components/chatbot/chatbot.stories.ts +2549 -0
- package/components/ui/nuraly-ui/src/components/chatbot/chatbot.style.ts +1272 -0
- package/components/ui/nuraly-ui/src/components/chatbot/chatbot.types.ts +269 -0
- package/components/ui/nuraly-ui/src/components/chatbot/controllers/index.ts +9 -0
- package/components/ui/nuraly-ui/src/components/chatbot/controllers/scroll.controller.ts +59 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/README.md +550 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/chatbot-core.controller.ts +918 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/event-bus.ts +104 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/file-handler.ts +79 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/index.ts +12 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/message-handler.ts +117 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/module-handler.ts +49 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/state-handler.ts +152 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/suggestion-handler.ts +38 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/thread-handler.ts +153 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/index.ts +47 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/services/index.ts +11 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/services/localization.service.ts +20 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/services/plugin.service.ts +103 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/services/provider.service.ts +342 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/services/storage.service.ts +122 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/services/validation.service.ts +107 -0
- package/components/ui/nuraly-ui/src/components/chatbot/core/types.ts +456 -0
- package/components/ui/nuraly-ui/src/components/chatbot/file-upload-validation.stories.ts +278 -0
- package/components/ui/nuraly-ui/src/components/chatbot/index.ts +27 -0
- package/components/ui/nuraly-ui/src/components/chatbot/locales/generated/ar.ts +19 -0
- package/components/ui/nuraly-ui/src/components/chatbot/locales/generated/fr.ts +19 -0
- package/components/ui/nuraly-ui/src/components/chatbot/locales/locale-codes.ts +25 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/analytics-plugin.ts +63 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/chat-plugin.ts +76 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/flight-card-plugin.ts +636 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/flight-card.stories.ts +929 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/index.ts +14 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/markdown-plugin.stories.ts +155 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/markdown-plugin.ts +103 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/persistence-plugin.ts +97 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/print-job-card-plugin.ts +537 -0
- package/components/ui/nuraly-ui/src/components/chatbot/plugins/print-job-card.stories.ts +649 -0
- package/components/ui/nuraly-ui/src/components/chatbot/providers/custom-api-provider.ts +239 -0
- package/components/ui/nuraly-ui/src/components/chatbot/providers/index.ts +11 -0
- package/components/ui/nuraly-ui/src/components/chatbot/providers/mock-provider.ts +433 -0
- package/components/ui/nuraly-ui/src/components/chatbot/providers/openai-provider.ts +239 -0
- package/components/ui/nuraly-ui/src/components/chatbot/react.ts +57 -0
- package/components/ui/nuraly-ui/src/components/chatbot/storage/index.ts +8 -0
- package/components/ui/nuraly-ui/src/components/chatbot/storage/storage-implementations.ts +167 -0
- package/components/ui/nuraly-ui/src/components/chatbot/templates/chatbot-main.template.ts +157 -0
- package/components/ui/nuraly-ui/src/components/chatbot/templates/file-preview-modal.template.ts +90 -0
- package/components/ui/nuraly-ui/src/components/chatbot/templates/file-upload-area.template.ts +43 -0
- package/components/ui/nuraly-ui/src/components/chatbot/templates/index.ts +14 -0
- package/components/ui/nuraly-ui/src/components/chatbot/templates/input-box.template.ts +267 -0
- package/components/ui/nuraly-ui/src/components/chatbot/templates/message.template.ts +240 -0
- package/components/ui/nuraly-ui/src/components/chatbot/templates/suggestion.template.ts +57 -0
- package/components/ui/nuraly-ui/src/components/chatbot/templates/thread-sidebar.template.ts +67 -0
- package/components/ui/nuraly-ui/src/components/chatbot/templates/url-modal.template.ts +121 -0
- package/components/ui/nuraly-ui/src/components/checkbox/checkbox.component.ts +173 -0
- package/components/ui/nuraly-ui/src/components/checkbox/checkbox.stories.ts +521 -0
- package/components/ui/nuraly-ui/src/components/checkbox/checkbox.style.ts +324 -0
- package/components/ui/nuraly-ui/src/components/checkbox/checkbox.types.ts +5 -0
- package/components/ui/nuraly-ui/src/components/checkbox/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/checkbox/mixins/checkbox-event-mixin.ts +180 -0
- package/components/ui/nuraly-ui/src/components/checkbox/mixins/checkbox-focus-mixin.ts +99 -0
- package/components/ui/nuraly-ui/src/components/checkbox/mixins/index.ts +27 -0
- package/components/ui/nuraly-ui/src/components/checkbox/react.ts +12 -0
- package/components/ui/nuraly-ui/src/components/checkbox/test/checkbox_test.ts +97 -0
- package/components/ui/nuraly-ui/src/components/collapse/collapse.component.ts +315 -0
- package/components/ui/nuraly-ui/src/components/collapse/collapse.stories.ts +738 -0
- package/components/ui/nuraly-ui/src/components/collapse/collapse.style.ts +236 -0
- package/components/ui/nuraly-ui/src/components/collapse/collapse.type.ts +95 -0
- package/components/ui/nuraly-ui/src/components/collapse/controllers/accordion.controller.ts +169 -0
- package/components/ui/nuraly-ui/src/components/collapse/controllers/animation.controller.ts +129 -0
- package/components/ui/nuraly-ui/src/components/collapse/controllers/base.controller.ts +114 -0
- package/components/ui/nuraly-ui/src/components/collapse/controllers/index.ts +15 -0
- package/components/ui/nuraly-ui/src/components/collapse/controllers/keyboard.controller.ts +212 -0
- package/components/ui/nuraly-ui/src/components/collapse/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/collapse/react.ts +13 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/color-holder.component.ts +104 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/color-holder.style.ts +46 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/color-picker.component.ts +398 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/color-picker.stories.ts +888 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/color-picker.style.ts +86 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/color-picker.types.ts +64 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/controllers/base.controller.ts +64 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/controllers/dropdown.controller.ts +268 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/controllers/event.controller.ts +147 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/controllers/index.ts +3 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/default-color-sets.component.ts +119 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/default-color-sets.style.ts +35 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/interfaces/index.ts +67 -0
- package/components/ui/nuraly-ui/src/components/colorpicker/react.ts +13 -0
- package/components/ui/nuraly-ui/src/components/console/react.ts +12 -0
- package/components/ui/nuraly-ui/src/components/datepicker/README.md +60 -0
- package/components/ui/nuraly-ui/src/components/datepicker/controllers/calendar.controller.ts +252 -0
- package/components/ui/nuraly-ui/src/components/datepicker/controllers/index.ts +11 -0
- package/components/ui/nuraly-ui/src/components/datepicker/controllers/keyboard.controller.ts +290 -0
- package/components/ui/nuraly-ui/src/components/datepicker/controllers/month-year-dropdown.controller.ts +108 -0
- package/components/ui/nuraly-ui/src/components/datepicker/controllers/positioning.controller.ts +278 -0
- package/components/ui/nuraly-ui/src/components/datepicker/controllers/selection.controller.ts +303 -0
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.component.ts +659 -0
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.constant.ts +81 -0
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.stories.ts +461 -0
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.style.ts +456 -0
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.style.variables.ts +119 -0
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.types.ts +154 -0
- package/components/ui/nuraly-ui/src/components/datepicker/index.ts +3 -0
- package/components/ui/nuraly-ui/src/components/datepicker/interfaces/base-controller.interface.ts +42 -0
- package/components/ui/nuraly-ui/src/components/datepicker/interfaces/datepicker-controllers.interface.ts +128 -0
- package/components/ui/nuraly-ui/src/components/datepicker/interfaces/index.ts +15 -0
- package/components/ui/nuraly-ui/src/components/datepicker/react.ts +24 -0
- package/components/ui/nuraly-ui/src/components/datepicker/templates/days.template.ts +57 -0
- package/components/ui/nuraly-ui/src/components/datepicker/templates/dropdown.template.ts +61 -0
- package/components/ui/nuraly-ui/src/components/datepicker/templates/headers.template.ts +7 -0
- package/components/ui/nuraly-ui/src/components/datepicker/templates/months.template.ts +16 -0
- package/components/ui/nuraly-ui/src/components/datepicker/templates/years.template.ts +18 -0
- package/components/ui/nuraly-ui/src/components/datepicker/test/datepicker_test.ts +124 -0
- package/components/ui/nuraly-ui/src/components/datepicker/utils/day.helper.ts +56 -0
- package/components/ui/nuraly-ui/src/components/datepicker/utils/formatter.ts +8 -0
- package/components/ui/nuraly-ui/src/components/datepicker/utils/index.ts +11 -0
- package/components/ui/nuraly-ui/src/components/datepicker/utils/locale.helper.ts +152 -0
- package/components/ui/nuraly-ui/src/components/datepicker/utils/month.helper.ts +26 -0
- package/components/ui/nuraly-ui/src/components/datepicker/utils/string.helper.ts +3 -0
- package/components/ui/nuraly-ui/src/components/divider/divider.component.ts +172 -0
- package/components/ui/nuraly-ui/src/components/divider/divider.stories.ts +271 -0
- package/components/ui/nuraly-ui/src/components/divider/divider.style.ts +139 -0
- package/components/ui/nuraly-ui/src/components/divider/divider.types.ts +59 -0
- package/components/ui/nuraly-ui/src/components/divider/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/divider/react.ts +9 -0
- package/components/ui/nuraly-ui/src/components/document/demo/document-demo.ts +28 -0
- package/components/ui/nuraly-ui/src/components/document/document.component.ts +133 -0
- package/components/ui/nuraly-ui/src/components/document/document.stories.ts +266 -0
- package/components/ui/nuraly-ui/src/components/document/document.style.ts +210 -0
- package/components/ui/nuraly-ui/src/components/document/document.types.ts +83 -0
- package/components/ui/nuraly-ui/src/components/document/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/document/react.ts +15 -0
- package/components/ui/nuraly-ui/src/components/dropdown/controllers/base.controller.ts +85 -0
- package/components/ui/nuraly-ui/src/components/dropdown/controllers/dropdown.controller.ts +476 -0
- package/components/ui/nuraly-ui/src/components/dropdown/controllers/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/dropdown/dropdown.component.ts +348 -0
- package/components/ui/nuraly-ui/src/components/dropdown/dropdown.stories.ts +1271 -0
- package/components/ui/nuraly-ui/src/components/dropdown/dropdown.style.ts +462 -0
- package/components/ui/nuraly-ui/src/components/dropdown/dropdown.types.ts +109 -0
- package/components/ui/nuraly-ui/src/components/dropdown/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/dropdown/interfaces/controller-interfaces.ts +98 -0
- package/components/ui/nuraly-ui/src/components/dropdown/interfaces/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/dropdown/react.ts +14 -0
- package/components/ui/nuraly-ui/src/components/dropdown/templates/nr-dropdown-item.style.ts +35 -0
- package/components/ui/nuraly-ui/src/components/dropdown/templates/nr-dropdown-item.ts +47 -0
- package/components/ui/nuraly-ui/src/components/dropdown/templates/nr-dropdown-menu.style.ts +50 -0
- package/components/ui/nuraly-ui/src/components/dropdown/templates/nr-dropdown-menu.ts +52 -0
- package/components/ui/nuraly-ui/src/components/file-upload/demo/file-upload-demo.ts +151 -0
- package/components/ui/nuraly-ui/src/components/file-upload/file-upload.component.ts +371 -0
- package/components/ui/nuraly-ui/src/components/file-upload/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/file-upload/react.ts +14 -0
- package/components/ui/nuraly-ui/src/components/file-upload/readme.md +98 -0
- package/components/ui/nuraly-ui/src/components/file-upload/styles.ts +284 -0
- package/components/ui/nuraly-ui/src/components/file-upload/types.ts +10 -0
- package/components/ui/nuraly-ui/src/components/file-upload/utils.ts +23 -0
- package/components/ui/nuraly-ui/src/components/flex/README.md +235 -0
- package/components/ui/nuraly-ui/src/components/flex/flex.component.ts +186 -0
- package/components/ui/nuraly-ui/src/components/flex/flex.stories.ts +486 -0
- package/components/ui/nuraly-ui/src/components/flex/flex.style.ts +101 -0
- package/components/ui/nuraly-ui/src/components/flex/flex.types.ts +70 -0
- package/components/ui/nuraly-ui/src/components/flex/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/flex/react.ts +9 -0
- package/components/ui/nuraly-ui/src/components/form/README.md +152 -0
- package/components/ui/nuraly-ui/src/components/form/controllers/submission.controller.ts +243 -0
- package/components/ui/nuraly-ui/src/components/form/controllers/validation.controller.ts +268 -0
- package/components/ui/nuraly-ui/src/components/form/form.component.ts +699 -0
- package/components/ui/nuraly-ui/src/components/form/form.stories.ts +794 -0
- package/components/ui/nuraly-ui/src/components/form/form.style.ts +69 -0
- package/components/ui/nuraly-ui/src/components/form/form.types.ts +104 -0
- package/components/ui/nuraly-ui/src/components/form/index.ts +15 -0
- package/components/ui/nuraly-ui/src/components/form/interfaces/validation.interface.ts +139 -0
- package/components/ui/nuraly-ui/src/components/grid/README.md +196 -0
- package/components/ui/nuraly-ui/src/components/grid/col.component.ts +262 -0
- package/components/ui/nuraly-ui/src/components/grid/col.style.ts +117 -0
- package/components/ui/nuraly-ui/src/components/grid/grid.stories.ts +442 -0
- package/components/ui/nuraly-ui/src/components/grid/grid.types.ts +89 -0
- package/components/ui/nuraly-ui/src/components/grid/index.ts +3 -0
- package/components/ui/nuraly-ui/src/components/grid/react.ts +16 -0
- package/components/ui/nuraly-ui/src/components/grid/row.component.ts +203 -0
- package/components/ui/nuraly-ui/src/components/grid/row.style.ts +68 -0
- package/components/ui/nuraly-ui/src/components/icon/icon.component.ts +219 -0
- package/components/ui/nuraly-ui/src/components/icon/icon.stories.ts +160 -0
- package/components/ui/nuraly-ui/src/components/icon/icon.style.ts +214 -0
- package/components/ui/nuraly-ui/src/components/icon/icon.types.ts +4 -0
- package/components/ui/nuraly-ui/src/components/icon/icon.variables.ts +132 -0
- package/components/ui/nuraly-ui/src/components/icon/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/icon/mixins/clickable-mixin.ts +154 -0
- package/components/ui/nuraly-ui/src/components/icon/mixins/index.ts +7 -0
- package/components/ui/nuraly-ui/src/components/icon/react.ts +8 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/README.md +106 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/controllers/event.controller.ts +94 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/controllers/index.ts +9 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/controllers/search.controller.ts +76 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/controllers/selection.controller.ts +50 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.component.ts +324 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.constant.ts +33 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.stories.ts +255 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.style.ts +217 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.types.ts +56 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/index.ts +9 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/interfaces/icon-picker.interface.ts +14 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/interfaces/index.ts +7 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/react.ts +22 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/utils/icon-filter.utils.ts +119 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/utils/icon-loader.utils.ts +129 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/utils/index.ts +8 -0
- package/components/ui/nuraly-ui/src/components/iconpicker/utils/lucide-icons.ts +1624 -0
- package/components/ui/nuraly-ui/src/components/image/image.component.ts +136 -0
- package/components/ui/nuraly-ui/src/components/image/image.stories.ts +236 -0
- package/components/ui/nuraly-ui/src/components/image/image.style.ts +83 -0
- package/components/ui/nuraly-ui/src/components/image/image.types.ts +83 -0
- package/components/ui/nuraly-ui/src/components/image/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/image/react.ts +15 -0
- package/components/ui/nuraly-ui/src/components/input/README.md +432 -0
- package/components/ui/nuraly-ui/src/components/input/controllers/base.controller.ts +114 -0
- package/components/ui/nuraly-ui/src/components/input/controllers/event.controller.ts +421 -0
- package/components/ui/nuraly-ui/src/components/input/controllers/index.ts +32 -0
- package/components/ui/nuraly-ui/src/components/input/controllers/state.controller.ts +313 -0
- package/components/ui/nuraly-ui/src/components/input/controllers/validation.controller.ts +806 -0
- package/components/ui/nuraly-ui/src/components/input/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/input/input.component.ts +557 -0
- package/components/ui/nuraly-ui/src/components/input/input.stories.ts +1759 -0
- package/components/ui/nuraly-ui/src/components/input/input.style.ts +812 -0
- package/components/ui/nuraly-ui/src/components/input/input.types.ts +195 -0
- package/components/ui/nuraly-ui/src/components/input/mixins/focus-mixin.ts +112 -0
- package/components/ui/nuraly-ui/src/components/input/mixins/index.ts +14 -0
- package/components/ui/nuraly-ui/src/components/input/mixins/number-mixin.ts +167 -0
- package/components/ui/nuraly-ui/src/components/input/mixins/selection-mixin.ts +125 -0
- package/components/ui/nuraly-ui/src/components/input/react.ts +15 -0
- package/components/ui/nuraly-ui/src/components/input/test/nr-input_test.ts +163 -0
- package/components/ui/nuraly-ui/src/components/input/utils/index.ts +8 -0
- package/components/ui/nuraly-ui/src/components/input/utils/input-renderers.ts +217 -0
- package/components/ui/nuraly-ui/src/components/input/utils/input-validation.utils.ts +133 -0
- package/components/ui/nuraly-ui/src/components/input/validation.ts +3 -0
- package/components/ui/nuraly-ui/src/components/label/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/label/label.component.ts +52 -0
- package/components/ui/nuraly-ui/src/components/label/label.stories.ts +311 -0
- package/components/ui/nuraly-ui/src/components/label/label.style.ts +70 -0
- package/components/ui/nuraly-ui/src/components/label/label.style.variables.ts +35 -0
- package/components/ui/nuraly-ui/src/components/label/label.types.ts +48 -0
- package/components/ui/nuraly-ui/src/components/label/react.ts +11 -0
- package/components/ui/nuraly-ui/src/components/layout/README.md +200 -0
- package/components/ui/nuraly-ui/src/components/layout/content.component.ts +45 -0
- package/components/ui/nuraly-ui/src/components/layout/content.style.ts +17 -0
- package/components/ui/nuraly-ui/src/components/layout/footer.component.ts +54 -0
- package/components/ui/nuraly-ui/src/components/layout/footer.style.ts +17 -0
- package/components/ui/nuraly-ui/src/components/layout/header.component.ts +55 -0
- package/components/ui/nuraly-ui/src/components/layout/header.style.ts +19 -0
- package/components/ui/nuraly-ui/src/components/layout/index.ts +18 -0
- package/components/ui/nuraly-ui/src/components/layout/layout.component.ts +87 -0
- package/components/ui/nuraly-ui/src/components/layout/layout.stories.ts +616 -0
- package/components/ui/nuraly-ui/src/components/layout/layout.style.ts +23 -0
- package/components/ui/nuraly-ui/src/components/layout/layout.types.ts +90 -0
- package/components/ui/nuraly-ui/src/components/layout/react.ts +41 -0
- package/components/ui/nuraly-ui/src/components/layout/sider.component.ts +294 -0
- package/components/ui/nuraly-ui/src/components/layout/sider.style.ts +104 -0
- package/components/ui/nuraly-ui/src/components/menu/README.md +390 -0
- package/components/ui/nuraly-ui/src/components/menu/controllers/accessibility.controller.ts +257 -0
- package/components/ui/nuraly-ui/src/components/menu/controllers/base.controller.ts +123 -0
- package/components/ui/nuraly-ui/src/components/menu/controllers/index.ts +10 -0
- package/components/ui/nuraly-ui/src/components/menu/controllers/keyboard.controller.ts +360 -0
- package/components/ui/nuraly-ui/src/components/menu/controllers/state.controller.ts +268 -0
- package/components/ui/nuraly-ui/src/components/menu/index.ts +3 -0
- package/components/ui/nuraly-ui/src/components/menu/interfaces/controller.interface.ts +56 -0
- package/components/ui/nuraly-ui/src/components/menu/interfaces/index.ts +7 -0
- package/components/ui/nuraly-ui/src/components/menu/menu.component.ts +341 -0
- package/components/ui/nuraly-ui/src/components/menu/menu.constants.ts +12 -0
- package/components/ui/nuraly-ui/src/components/menu/menu.stories.ts +807 -0
- package/components/ui/nuraly-ui/src/components/menu/menu.style.ts +358 -0
- package/components/ui/nuraly-ui/src/components/menu/menu.types.ts +60 -0
- package/components/ui/nuraly-ui/src/components/menu/react.ts +11 -0
- package/components/ui/nuraly-ui/src/components/modal/controllers/index.ts +8 -0
- package/components/ui/nuraly-ui/src/components/modal/controllers/modal-drag-controller.ts +139 -0
- package/components/ui/nuraly-ui/src/components/modal/controllers/modal-keyboard-controller.ts +152 -0
- package/components/ui/nuraly-ui/src/components/modal/index.ts +10 -0
- package/components/ui/nuraly-ui/src/components/modal/modal-manager.ts +209 -0
- package/components/ui/nuraly-ui/src/components/modal/modal.component.ts +475 -0
- package/components/ui/nuraly-ui/src/components/modal/modal.stories.ts +823 -0
- package/components/ui/nuraly-ui/src/components/modal/modal.style.ts +369 -0
- package/components/ui/nuraly-ui/src/components/modal/modal.types.ts +148 -0
- package/components/ui/nuraly-ui/src/components/modal/react.ts +16 -0
- package/components/ui/nuraly-ui/src/components/panel/README.md +218 -0
- package/components/ui/nuraly-ui/src/components/panel/controllers/index.ts +8 -0
- package/components/ui/nuraly-ui/src/components/panel/controllers/panel-drag-controller.ts +151 -0
- package/components/ui/nuraly-ui/src/components/panel/controllers/panel-resize-controller.ts +153 -0
- package/components/ui/nuraly-ui/src/components/panel/index.ts +9 -0
- package/components/ui/nuraly-ui/src/components/panel/panel.component.ts +760 -0
- package/components/ui/nuraly-ui/src/components/panel/panel.stories.ts +978 -0
- package/components/ui/nuraly-ui/src/components/panel/panel.style.ts +499 -0
- package/components/ui/nuraly-ui/src/components/panel/panel.types.ts +89 -0
- package/components/ui/nuraly-ui/src/components/panel/react.ts +18 -0
- package/components/ui/nuraly-ui/src/components/popconfirm/README.md +403 -0
- package/components/ui/nuraly-ui/src/components/popconfirm/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/popconfirm/popconfirm.component.ts +336 -0
- package/components/ui/nuraly-ui/src/components/popconfirm/popconfirm.stories.ts +491 -0
- package/components/ui/nuraly-ui/src/components/popconfirm/popconfirm.style.ts +207 -0
- package/components/ui/nuraly-ui/src/components/popconfirm/popconfirm.types.ts +66 -0
- package/components/ui/nuraly-ui/src/components/popconfirm/react.ts +14 -0
- package/components/ui/nuraly-ui/src/components/radio/README.md +95 -0
- package/components/ui/nuraly-ui/src/components/radio/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/radio/radio.component.ts +186 -0
- package/components/ui/nuraly-ui/src/components/radio/radio.stories.ts +317 -0
- package/components/ui/nuraly-ui/src/components/radio/radio.style.ts +150 -0
- package/components/ui/nuraly-ui/src/components/radio/radio.types.ts +14 -0
- package/components/ui/nuraly-ui/src/components/radio/react.ts +20 -0
- package/components/ui/nuraly-ui/src/components/radio-group/controllers/focus.controller.ts +251 -0
- package/components/ui/nuraly-ui/src/components/radio-group/controllers/group.controller.ts +198 -0
- package/components/ui/nuraly-ui/src/components/radio-group/controllers/index.ts +11 -0
- package/components/ui/nuraly-ui/src/components/radio-group/controllers/keyboard.controller.ts +122 -0
- package/components/ui/nuraly-ui/src/components/radio-group/controllers/ripple.controller.ts +248 -0
- package/components/ui/nuraly-ui/src/components/radio-group/controllers/validation.controller.ts +189 -0
- package/components/ui/nuraly-ui/src/components/radio-group/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/radio-group/interfaces/base-controller.interface.ts +87 -0
- package/components/ui/nuraly-ui/src/components/radio-group/interfaces/focus-controller.interface.ts +45 -0
- package/components/ui/nuraly-ui/src/components/radio-group/interfaces/index.ts +14 -0
- package/components/ui/nuraly-ui/src/components/radio-group/interfaces/ripple-controller.interface.ts +35 -0
- package/components/ui/nuraly-ui/src/components/radio-group/interfaces/selection-controller.interface.ts +51 -0
- package/components/ui/nuraly-ui/src/components/radio-group/interfaces/validation-controller.interface.ts +53 -0
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.component.ts +426 -0
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.stories.ts +1334 -0
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.style.ts +248 -0
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.types.ts +43 -0
- package/components/ui/nuraly-ui/src/components/radio-group/radio.constant.ts +1 -0
- package/components/ui/nuraly-ui/src/components/radio-group/react.ts +18 -0
- package/components/ui/nuraly-ui/src/components/radio-group/test/radio_test.ts +87 -0
- package/components/ui/nuraly-ui/src/components/select/README.md +316 -0
- package/components/ui/nuraly-ui/src/components/select/controllers/base.controller.ts +93 -0
- package/components/ui/nuraly-ui/src/components/select/controllers/dropdown.controller.ts +415 -0
- package/components/ui/nuraly-ui/src/components/select/controllers/event.controller.ts +118 -0
- package/components/ui/nuraly-ui/src/components/select/controllers/focus.controller.ts +255 -0
- package/components/ui/nuraly-ui/src/components/select/controllers/index.ts +8 -0
- package/components/ui/nuraly-ui/src/components/select/controllers/keyboard.controller.ts +407 -0
- package/components/ui/nuraly-ui/src/components/select/controllers/search.controller.ts +187 -0
- package/components/ui/nuraly-ui/src/components/select/controllers/selection.controller.ts +238 -0
- package/components/ui/nuraly-ui/src/components/select/controllers/validation.controller.ts +236 -0
- package/components/ui/nuraly-ui/src/components/select/index.ts +36 -0
- package/components/ui/nuraly-ui/src/components/select/interfaces/base-controller.interface.ts +155 -0
- package/components/ui/nuraly-ui/src/components/select/interfaces/controller-interfaces.ts +105 -0
- package/components/ui/nuraly-ui/src/components/select/interfaces/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/select/react.ts +30 -0
- package/components/ui/nuraly-ui/src/components/select/select.component.ts +804 -0
- package/components/ui/nuraly-ui/src/components/select/select.constant.ts +142 -0
- package/components/ui/nuraly-ui/src/components/select/select.stories.ts +1653 -0
- package/components/ui/nuraly-ui/src/components/select/select.style.ts +593 -0
- package/components/ui/nuraly-ui/src/components/select/select.types.ts +120 -0
- package/components/ui/nuraly-ui/src/components/skeleton/README.md +373 -0
- package/components/ui/nuraly-ui/src/components/skeleton/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/skeleton/react.ts +10 -0
- package/components/ui/nuraly-ui/src/components/skeleton/skeleton.component.ts +385 -0
- package/components/ui/nuraly-ui/src/components/skeleton/skeleton.stories.ts +425 -0
- package/components/ui/nuraly-ui/src/components/skeleton/skeleton.style.ts +224 -0
- package/components/ui/nuraly-ui/src/components/skeleton/skeleton.types.ts +90 -0
- package/components/ui/nuraly-ui/src/components/slider-input/README.md +145 -0
- package/components/ui/nuraly-ui/src/components/slider-input/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/slider-input/react.ts +12 -0
- package/components/ui/nuraly-ui/src/components/slider-input/slider-input.component.ts +184 -0
- package/components/ui/nuraly-ui/src/components/slider-input/slider-input.stories.ts +361 -0
- package/components/ui/nuraly-ui/src/components/slider-input/slider-input.style.ts +171 -0
- package/components/ui/nuraly-ui/src/components/slider-input/slider-input.style.variables.ts +59 -0
- package/components/ui/nuraly-ui/src/components/slider-input/slider-input.types.ts +24 -0
- package/components/ui/nuraly-ui/src/components/slider-input/utils/debounce.ts +7 -0
- package/components/ui/nuraly-ui/src/components/slider-input/utils/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/table/controllers/base.controller.ts +99 -0
- package/components/ui/nuraly-ui/src/components/table/controllers/filter.controller.ts +163 -0
- package/components/ui/nuraly-ui/src/components/table/controllers/index.ts +11 -0
- package/components/ui/nuraly-ui/src/components/table/controllers/pagination.controller.ts +83 -0
- package/components/ui/nuraly-ui/src/components/table/controllers/selection.controller.ts +143 -0
- package/components/ui/nuraly-ui/src/components/table/controllers/sort.controller.ts +115 -0
- package/components/ui/nuraly-ui/src/components/table/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/table/interfaces/index.ts +7 -0
- package/components/ui/nuraly-ui/src/components/table/interfaces/table-host.interface.ts +53 -0
- package/components/ui/nuraly-ui/src/components/table/react.ts +14 -0
- package/components/ui/nuraly-ui/src/components/table/table.component.ts +344 -0
- package/components/ui/nuraly-ui/src/components/table/table.stories.ts +1072 -0
- package/components/ui/nuraly-ui/src/components/table/table.style.ts +689 -0
- package/components/ui/nuraly-ui/src/components/table/table.types.ts +91 -0
- package/components/ui/nuraly-ui/src/components/table/templates/actions.template.ts +22 -0
- package/components/ui/nuraly-ui/src/components/table/templates/column-filter.template.ts +88 -0
- package/components/ui/nuraly-ui/src/components/table/templates/content.template.ts +257 -0
- package/components/ui/nuraly-ui/src/components/table/templates/empty.template.ts +49 -0
- package/components/ui/nuraly-ui/src/components/table/templates/filter.template.ts +35 -0
- package/components/ui/nuraly-ui/src/components/table/templates/index.ts +7 -0
- package/components/ui/nuraly-ui/src/components/table/templates/loading.template.ts +56 -0
- package/components/ui/nuraly-ui/src/components/table/templates/pagination.template.ts +70 -0
- package/components/ui/nuraly-ui/src/components/tabs/controllers/base.controller.ts +136 -0
- package/components/ui/nuraly-ui/src/components/tabs/controllers/dragdrop.controller.ts +251 -0
- package/components/ui/nuraly-ui/src/components/tabs/controllers/editable.controller.ts +292 -0
- package/components/ui/nuraly-ui/src/components/tabs/controllers/event.controller.ts +294 -0
- package/components/ui/nuraly-ui/src/components/tabs/controllers/index.ts +42 -0
- package/components/ui/nuraly-ui/src/components/tabs/controllers/keyboard.controller.ts +276 -0
- package/components/ui/nuraly-ui/src/components/tabs/controllers/popout.controller.ts +516 -0
- package/components/ui/nuraly-ui/src/components/tabs/index.ts +11 -0
- package/components/ui/nuraly-ui/src/components/tabs/react.ts +52 -0
- package/components/ui/nuraly-ui/src/components/tabs/tabs.component.ts +499 -0
- package/components/ui/nuraly-ui/src/components/tabs/tabs.constant.ts +30 -0
- package/components/ui/nuraly-ui/src/components/tabs/tabs.stories.ts +1334 -0
- package/components/ui/nuraly-ui/src/components/tabs/tabs.style.ts +569 -0
- package/components/ui/nuraly-ui/src/components/tabs/tabs.types.ts +261 -0
- package/components/ui/nuraly-ui/src/components/tag/README.md +22 -0
- package/components/ui/nuraly-ui/src/components/tag/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/tag/react.ts +13 -0
- package/components/ui/nuraly-ui/src/components/tag/tag.component.ts +167 -0
- package/components/ui/nuraly-ui/src/components/tag/tag.stories.ts +50 -0
- package/components/ui/nuraly-ui/src/components/tag/tag.style.ts +89 -0
- package/components/ui/nuraly-ui/src/components/tag/tag.types.ts +30 -0
- package/components/ui/nuraly-ui/src/components/textarea/README.md +314 -0
- package/components/ui/nuraly-ui/src/components/textarea/controllers/base.controller.ts +142 -0
- package/components/ui/nuraly-ui/src/components/textarea/controllers/event.controller.ts +484 -0
- package/components/ui/nuraly-ui/src/components/textarea/controllers/index.ts +16 -0
- package/components/ui/nuraly-ui/src/components/textarea/controllers/validation.controller.ts +347 -0
- package/components/ui/nuraly-ui/src/components/textarea/index.ts +19 -0
- package/components/ui/nuraly-ui/src/components/textarea/react.ts +16 -0
- package/components/ui/nuraly-ui/src/components/textarea/textarea.component.ts +716 -0
- package/components/ui/nuraly-ui/src/components/textarea/textarea.stories.ts +453 -0
- package/components/ui/nuraly-ui/src/components/textarea/textarea.style.ts +387 -0
- package/components/ui/nuraly-ui/src/components/textarea/textarea.types.ts +113 -0
- package/components/ui/nuraly-ui/src/components/timeline/README.md +340 -0
- package/components/ui/nuraly-ui/src/components/timeline/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/timeline/react.ts +9 -0
- package/components/ui/nuraly-ui/src/components/timeline/timeline.component.ts +235 -0
- package/components/ui/nuraly-ui/src/components/timeline/timeline.stories.ts +313 -0
- package/components/ui/nuraly-ui/src/components/timeline/timeline.style.ts +235 -0
- package/components/ui/nuraly-ui/src/components/timeline/timeline.types.ts +75 -0
- package/components/ui/nuraly-ui/src/components/timepicker/README.md +238 -0
- package/components/ui/nuraly-ui/src/components/timepicker/controllers/formatting.controller.ts +230 -0
- package/components/ui/nuraly-ui/src/components/timepicker/controllers/index.ts +9 -0
- package/components/ui/nuraly-ui/src/components/timepicker/controllers/selection.controller.ts +213 -0
- package/components/ui/nuraly-ui/src/components/timepicker/controllers/validation.controller.ts +240 -0
- package/components/ui/nuraly-ui/src/components/timepicker/index.ts +12 -0
- package/components/ui/nuraly-ui/src/components/timepicker/interfaces/timepicker.interface.ts +122 -0
- package/components/ui/nuraly-ui/src/components/timepicker/test/timepicker.test.ts +249 -0
- package/components/ui/nuraly-ui/src/components/timepicker/timepicker.component.ts +786 -0
- package/components/ui/nuraly-ui/src/components/timepicker/timepicker.constants.ts +94 -0
- package/components/ui/nuraly-ui/src/components/timepicker/timepicker.stories.ts +643 -0
- package/components/ui/nuraly-ui/src/components/timepicker/timepicker.style.ts +569 -0
- package/components/ui/nuraly-ui/src/components/timepicker/timepicker.style.variables.ts +122 -0
- package/components/ui/nuraly-ui/src/components/timepicker/timepicker.types.ts +183 -0
- package/components/ui/nuraly-ui/src/components/timepicker/utils/time.utils.ts +288 -0
- package/components/ui/nuraly-ui/src/components/toast/README.md +535 -0
- package/components/ui/nuraly-ui/src/components/toast/controllers/base.controller.ts +105 -0
- package/components/ui/nuraly-ui/src/components/toast/controllers/index.ts +8 -0
- package/components/ui/nuraly-ui/src/components/toast/index.ts +10 -0
- package/components/ui/nuraly-ui/src/components/toast/react.ts +19 -0
- package/components/ui/nuraly-ui/src/components/toast/toast.component.ts +394 -0
- package/components/ui/nuraly-ui/src/components/toast/toast.stories.ts +895 -0
- package/components/ui/nuraly-ui/src/components/toast/toast.style.ts +339 -0
- package/components/ui/nuraly-ui/src/components/toast/toast.types.ts +155 -0
- package/components/ui/nuraly-ui/src/components/tooltips/demo/tooltips-demo.ts +128 -0
- package/components/ui/nuraly-ui/src/components/tooltips/index.ts +1 -0
- package/components/ui/nuraly-ui/src/components/tooltips/react.ts +0 -0
- package/components/ui/nuraly-ui/src/components/tooltips/test/tooltips_test.ts +175 -0
- package/components/ui/nuraly-ui/src/components/tooltips/tooltips.component.ts +282 -0
- package/components/ui/nuraly-ui/src/components/tooltips/tooltips.constant.ts +15 -0
- package/components/ui/nuraly-ui/src/components/tooltips/tooltips.style.ts +103 -0
- package/components/ui/nuraly-ui/src/components/tooltips/tooltips.variables.ts +14 -0
- package/components/ui/nuraly-ui/src/components/video/index.ts +2 -0
- package/components/ui/nuraly-ui/src/components/video/react.ts +17 -0
- package/components/ui/nuraly-ui/src/components/video/video.component.ts +179 -0
- package/components/ui/nuraly-ui/src/components/video/video.stories.ts +289 -0
- package/components/ui/nuraly-ui/src/components/video/video.style.ts +124 -0
- package/components/ui/nuraly-ui/src/components/video/video.types.ts +102 -0
- package/components/ui/nuraly-ui/src/helpers/ThemeHandler.ts +68 -0
- package/components/ui/nuraly-ui/src/helpers/test.ts +8 -0
- package/components/ui/nuraly-ui/src/introduction.stories.ts +161 -0
- package/components/ui/nuraly-ui/src/shared/README.md +87 -0
- package/components/ui/nuraly-ui/src/shared/base-mixin.ts +48 -0
- package/components/ui/nuraly-ui/src/shared/constants.ts +0 -0
- package/components/ui/nuraly-ui/src/shared/controllers/dropdown.controller.ts +393 -0
- package/components/ui/nuraly-ui/src/shared/controllers/dropdown.interface.ts +39 -0
- package/components/ui/nuraly-ui/src/shared/controllers/index.ts +3 -0
- package/components/ui/nuraly-ui/src/shared/controllers/theme.controller.ts +158 -0
- package/components/ui/nuraly-ui/src/shared/dependency-mixin.ts +174 -0
- package/components/ui/nuraly-ui/src/shared/event-handler-mixin.ts +190 -0
- package/components/ui/nuraly-ui/src/shared/index.ts +20 -0
- package/components/ui/nuraly-ui/src/shared/theme-mixin.ts +227 -0
- package/components/ui/nuraly-ui/src/shared/themes/README.md +135 -0
- package/components/ui/nuraly-ui/src/shared/themes/editor/README.md +202 -0
- package/components/ui/nuraly-ui/src/shared/themes/editor.stories.ts +366 -0
- package/components/ui/nuraly-ui/src/shared/themes/index.ts +132 -0
- package/components/ui/nuraly-ui/src/shared/utils.ts +94 -0
- package/components/ui/nuraly-ui/src/shared/validation.types.ts +118 -0
- package/components/ui/nuraly-ui/tools/bump-versions.js +83 -0
- package/components/ui/nuraly-ui/web-dev-server.config.js +25 -0
- package/components/ui/nuraly-ui/web-test-runner.config.js +124 -0
- package/dist/CodeEditor-Ch2tv9BE.js +106211 -0
- package/dist/SmartAttributeHandler-hoSLpm1Y.js +153 -0
- package/dist/abap-B2diVmjb.js +1314 -0
- package/dist/apex-3NuJ-nsI.js +315 -0
- package/dist/assets/editor.worker-vBWydyGC.js +11 -0
- package/dist/assets/html.worker-BSmGlhXp.js +458 -0
- package/dist/assets/json.worker-Dqnoedz4.js +42 -0
- package/dist/assets/ts.worker-DyHHPhrh.js +37021 -0
- package/dist/azcli-XGXuUsMB.js +74 -0
- package/dist/bat-B8Vhm634.js +95 -0
- package/dist/bicep-Cc8X5S_k.js +108 -0
- package/dist/cameligo-Bo3wBh9T.js +168 -0
- package/dist/clojure-CPoQlpIK.js +754 -0
- package/dist/coffee-BxvTGz39.js +228 -0
- package/dist/cpp-5RpEV7vC.js +390 -0
- package/dist/csharp-slXXP3fo.js +320 -0
- package/dist/csp-B98p6-gH.js +57 -0
- package/dist/css-BDsDSAin.js +186 -0
- package/dist/cssMode-Bt2uK8XM.js +1446 -0
- package/dist/cypher-Dc4IMouD.js +262 -0
- package/dist/dart-LhvE3yD2.js +270 -0
- package/dist/dockerfile-CwzplJeZ.js +132 -0
- package/dist/ecl-DxW3FiJi.js +454 -0
- package/dist/elixir-BI40g7TU.js +489 -0
- package/dist/flow9-tR2v0bGz.js +141 -0
- package/dist/freemarker2-DNc2IxPf.js +643 -0
- package/dist/fsharp-BLAma0OT.js +210 -0
- package/dist/go-nYcD3y4Z.js +208 -0
- package/dist/graphql-Dp1cHWmP.js +141 -0
- package/dist/handlebars-CIbFckEw.js +391 -0
- package/dist/hcl-6NT8Kbna.js +177 -0
- package/dist/html-nRs_fneU.js +281 -0
- package/dist/htmlMode-BjehA1YF.js +1456 -0
- package/dist/ini-BZCOLrEc.js +68 -0
- package/dist/java-DAMcfJbX.js +221 -0
- package/dist/javascript-Bn0HduZA.js +75 -0
- package/dist/jsonMode-CfGfcJRX.js +1866 -0
- package/dist/julia-CQ46G71H.js +496 -0
- package/dist/kotlin-CEjVo_6E.js +245 -0
- package/dist/less-DreV99nP.js +168 -0
- package/dist/lexon-DBVJhqLb.js +151 -0
- package/dist/liquid-m4D_LCnC.js +238 -0
- package/dist/lua-Dcc_j6L-.js +157 -0
- package/dist/m3-B9SlZL4n.js +210 -0
- package/dist/markdown-CuGw9_MP.js +202 -0
- package/dist/mdx-CakMRbCr.js +171 -0
- package/dist/micro-app-entry-CI1Rupdh.js +17479 -0
- package/dist/micro-app.bundle.js +8 -0
- package/dist/mips-BUWqP-OH.js +194 -0
- package/dist/msdax-DtkouYCg.js +377 -0
- package/dist/mysql-IkAsWSmF.js +876 -0
- package/dist/objective-c-B2-ronfg.js +188 -0
- package/dist/pascal-Bsnz2eJA.js +245 -0
- package/dist/pascaligo-D_sMUn0Q.js +158 -0
- package/dist/perl-BPzHt9SS.js +599 -0
- package/dist/pgsql-DlTJB0PD.js +847 -0
- package/dist/php-Dmq5OjwK.js +471 -0
- package/dist/pla-HJcccrBy.js +131 -0
- package/dist/postiats-OQn6DKv-.js +544 -0
- package/dist/powerquery-DKaMYC8w.js +890 -0
- package/dist/powershell-DWeJHik1.js +233 -0
- package/dist/protobuf-CBn_IseU.js +422 -0
- package/dist/pug-BoRpCINl.js +393 -0
- package/dist/python-oJwaiPUY.js +259 -0
- package/dist/qsharp-4rGyVZOw.js +282 -0
- package/dist/r-DsgLhBOb.js +245 -0
- package/dist/razor-u_dd4rqc.js +512 -0
- package/dist/redis-B2fdL4Bg.js +298 -0
- package/dist/redshift-DoaeyCkH.js +806 -0
- package/dist/restructuredtext-D-6OFBY9.js +162 -0
- package/dist/ruby-D1DD6baV.js +444 -0
- package/dist/rust-DssUV39M.js +337 -0
- package/dist/sb-Dmb6tAdv.js +110 -0
- package/dist/scala-Co3ETaym.js +353 -0
- package/dist/scheme-CMrqXTty.js +114 -0
- package/dist/scss-DkGudv8Q.js +244 -0
- package/dist/shell-BHN2BI4L.js +224 -0
- package/dist/solidity-b-R-raGB.js +1351 -0
- package/dist/sophia-Y4GjyxNB.js +190 -0
- package/dist/sparql-CDAPZb88.js +193 -0
- package/dist/sql-DkkpPiUq.js +818 -0
- package/dist/st-CSPV91Ej.js +415 -0
- package/dist/style.css +1 -0
- package/dist/swift-DdSC5O48.js +315 -0
- package/dist/systemverilog-CI03XpAv.js +556 -0
- package/dist/tcl-B8DayMSI.js +232 -0
- package/dist/tsMode-DlZ38d3D.js +813 -0
- package/dist/twig-B1AUPVB_.js +323 -0
- package/dist/typescript-Bjs2N5Be.js +328 -0
- package/dist/vb-BIC7ccdG.js +364 -0
- package/dist/wgsl-Bv2xeo60.js +420 -0
- package/dist/xml-BCveATLl.js +95 -0
- package/dist/yaml-BfWQPJQi.js +184 -0
- package/handlers/compiler.ts +362 -0
- package/handlers/context-setup.ts +349 -0
- package/handlers/handler-executor.ts +348 -0
- package/handlers/index.ts +184 -0
- package/handlers/runtime-api/applications.ts +18 -0
- package/handlers/runtime-api/component-properties.ts +78 -0
- package/handlers/runtime-api/components.ts +63 -0
- package/handlers/runtime-api/editor.ts +29 -0
- package/handlers/runtime-api/functions.ts +42 -0
- package/handlers/runtime-api/index.ts +221 -0
- package/handlers/runtime-api/navigation.ts +52 -0
- package/handlers/runtime-api/pages.ts +45 -0
- package/handlers/runtime-api/storage.ts +95 -0
- package/handlers/runtime-api/toast.ts +108 -0
- package/handlers/runtime-api/variables.ts +400 -0
- package/index.ts +188 -0
- package/micro-app/README.md +565 -0
- package/micro-app/index.ts +29 -0
- package/micro-app/messaging/MicroAppMessageBus.ts +246 -0
- package/micro-app/state/MicroAppPageManager.ts +275 -0
- package/micro-app/state/MicroAppRuntimeContext.ts +423 -0
- package/micro-app/state/MicroAppStoreContext.ts +441 -0
- package/micro-app/state/SharedVariableRegistry.ts +187 -0
- package/micro-app/state/VariableScopeManager.ts +310 -0
- package/micro-app/utils/ComponentNamespaceManager.ts +88 -0
- package/micro-app-entry.ts +34 -0
- package/package.json +119 -0
- package/redux/actions/aitchat.ts +17 -0
- package/redux/actions/application/addPageToApplicationAction.ts +14 -0
- package/redux/actions/application/addTempApplication.ts +8 -0
- package/redux/actions/application/closeShareApplicationModalAction.ts +5 -0
- package/redux/actions/application/index.ts +20 -0
- package/redux/actions/application/loadApplicationPermissionAction.ts +10 -0
- package/redux/actions/application/resetPermissionMessage.ts +8 -0
- package/redux/actions/application/setApplication.ts +5 -0
- package/redux/actions/application/setApplicationPermissionAction.ts +6 -0
- package/redux/actions/application/setDefaultApplicationPageIfNotSet.ts +12 -0
- package/redux/actions/application/setPermissionMessage.ts +8 -0
- package/redux/actions/application/showCreateApplicationModalAction.ts +5 -0
- package/redux/actions/application/showShareApplicationModalAction.ts +5 -0
- package/redux/actions/application/updateApplication.ts +16 -0
- package/redux/actions/component/addComponentAction.ts +90 -0
- package/redux/actions/component/addComponentAsChildOf.ts +29 -0
- package/redux/actions/component/addComponentToCurrentPageAction.ts +32 -0
- package/redux/actions/component/copyComponentAction.ts +12 -0
- package/redux/actions/component/deleteComponentAction.ts +52 -0
- package/redux/actions/component/index.ts +22 -0
- package/redux/actions/component/moveDraggedComponent.ts +130 -0
- package/redux/actions/component/moveDraggedComponentInside.ts +64 -0
- package/redux/actions/component/moveDraggedComponentIntoCurrentPageRoot.ts +50 -0
- package/redux/actions/component/setCurrentComponentIdAction.ts +6 -0
- package/redux/actions/component/setDraggingComponentInfo.ts +14 -0
- package/redux/actions/component/setHoveredComponentAction.ts +5 -0
- package/redux/actions/component/setHoveredComponentIdAction.ts +5 -0
- package/redux/actions/component/update-component-name.ts +63 -0
- package/redux/actions/component/updateComponentAttributes.ts +192 -0
- package/redux/actions/component.ts +25 -0
- package/redux/actions/debug/index.ts +1 -0
- package/redux/actions/debug/store.ts +72 -0
- package/redux/actions/editor/closeCreateApplicationModalAction.ts +5 -0
- package/redux/actions/editor/closeEditorTab.ts +9 -0
- package/redux/actions/editor/index.ts +12 -0
- package/redux/actions/editor/openEditorTab.ts +12 -0
- package/redux/actions/editor/setCurrentEditorTab.ts +8 -0
- package/redux/actions/editor/setEnvirementMode.ts +8 -0
- package/redux/actions/environment.ts +5 -0
- package/redux/actions/index.ts +28 -0
- package/redux/actions/kernel/index.ts +1 -0
- package/redux/actions/kernel/set-property.ts +0 -0
- package/redux/actions/page/addPageAction.ts +7 -0
- package/redux/actions/page/deletePageAction.ts +13 -0
- package/redux/actions/page/index.ts +12 -0
- package/redux/actions/page/removeComponentToCurrentPageAction.ts +32 -0
- package/redux/actions/page/setContextMenuEvent.ts +5 -0
- package/redux/actions/page/setCurrentPageAction.ts +6 -0
- package/redux/actions/page/setCurrentPageViewPort.ts +5 -0
- package/redux/actions/page/setResizing.ts +5 -0
- package/redux/actions/page/setShowBorder.ts +5 -0
- package/redux/actions/page/updatePageAction.ts +20 -0
- package/redux/actions/page/updatePageInfo.ts +5 -0
- package/redux/actions/page/updatePageStyleAttributes.ts +13 -0
- package/redux/actions/page/updatePageZoom.ts +5 -0
- package/redux/handlers/aichat/create-chat.handler.ts +22 -0
- package/redux/handlers/api-urls.ts +8 -0
- package/redux/handlers/applications/handler.ts +78 -0
- package/redux/handlers/applications/index.ts +1 -0
- package/redux/handlers/components/add-component.handler.ts +30 -0
- package/redux/handlers/components/delete-component.handler.ts +21 -0
- package/redux/handlers/components/index.ts +6 -0
- package/redux/handlers/components/interfaces/add-component.request.ts +4 -0
- package/redux/handlers/components/interfaces/index.ts +2 -0
- package/redux/handlers/components/interfaces/update-component.reques.ts +3 -0
- package/redux/handlers/components/refresh-component.ts +25 -0
- package/redux/handlers/components/update-component.handler.ts +32 -0
- package/redux/handlers/components/validation-handler.ts +45 -0
- package/redux/handlers/functions/build-function-handler.ts +10 -0
- package/redux/handlers/functions/deploy-function-handler.ts +10 -0
- package/redux/handlers/functions/index.ts +13 -0
- package/redux/handlers/functions/invoke-function-handler.ts +13 -0
- package/redux/handlers/functions/load-functions-handler.ts +10 -0
- package/redux/handlers/functions/update-function-handler.ts +13 -0
- package/redux/handlers/index.ts +10 -0
- package/redux/handlers/pages/deletePageHandler.ts +23 -0
- package/redux/handlers/pages/handler.ts +59 -0
- package/redux/handlers/pages/index.ts +4 -0
- package/redux/handlers/pages/page.interface.ts +14 -0
- package/redux/handlers/pages/refresh-pages.ts +26 -0
- package/redux/handlers/providers/interface.ts +7 -0
- package/redux/index.ts +8 -0
- package/redux/store/actions/component.ts +9 -0
- package/redux/store/apps.ts +160 -0
- package/redux/store/component/component.interface.ts +90 -0
- package/redux/store/component/helper.ts +78 -0
- package/redux/store/component/index.ts +51 -0
- package/redux/store/component/runtime-store.ts +0 -0
- package/redux/store/component/store.ts +306 -0
- package/redux/store/context.ts +138 -0
- package/redux/store/debug.ts +28 -0
- package/redux/store/environment.ts +20 -0
- package/redux/store/index.ts +77 -0
- package/redux/store/interfaces/component.interfaces.ts +4 -0
- package/redux/store/page.ts +105 -0
- package/redux/store/provider.ts +24 -0
- package/redux/store/ssr/server-data.ts +4 -0
- package/redux/store/toast.ts +26 -0
- package/state/editor.ts +370 -0
- package/state/index.ts +27 -0
- package/state/runtime-context.ts +784 -0
- package/types/IRuntimeContext.ts +203 -0
- package/types/core.types.ts +28 -0
- package/types/database.types.ts +395 -0
- package/types/index.ts +7 -0
- package/utils/RuntimeContextHelpers.ts +454 -0
- package/utils/api-calls-utils.ts +9 -0
- package/utils/change-detection.ts +58 -0
- package/utils/clipboard-utils.ts +113 -0
- package/utils/constants.ts +2 -0
- package/utils/envirement.ts +2 -0
- package/utils/handler-security-rules.ts +153 -0
- package/utils/handler-validator.ts +447 -0
- package/utils/index.ts +67 -0
- package/utils/local-storage.ts +26 -0
- package/utils/logger.ts +90 -0
- package/utils/memoize.ts +15 -0
- package/utils/naming-generator.ts +6 -0
- package/utils/object.utils.ts +15 -0
- package/utils/performance-utils.ts +589 -0
- package/utils/randomness.ts +3 -0
- package/utils/register-components.ts +49 -0
- package/utils/render-util.ts +173 -0
- package/utils/runtime-helpers.ts +57 -0
- package/utils/styleUtil.ts +7 -0
- package/utils/time.ts +7 -0
- package/utils/validation-error-formatter.ts +11 -0
- package/vite.config.ts +83 -0
|
@@ -0,0 +1,1446 @@
|
|
|
1
|
+
var Fe = Object.defineProperty;
|
|
2
|
+
var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
|
+
var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
+
import { m as je } from "./CodeEditor-Ch2tv9BE.js";
|
|
5
|
+
/*!-----------------------------------------------------------------------------
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
8
|
+
* Released under the MIT license
|
|
9
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
10
|
+
*-----------------------------------------------------------------------------*/
|
|
11
|
+
var Ne = Object.defineProperty, We = Object.getOwnPropertyDescriptor, Ue = Object.getOwnPropertyNames, Oe = Object.prototype.hasOwnProperty, Ve = (e, n, i, r) => {
|
|
12
|
+
if (n && typeof n == "object" || typeof n == "function")
|
|
13
|
+
for (let t of Ue(n))
|
|
14
|
+
!Oe.call(e, t) && t !== i && Ne(e, t, { get: () => n[t], enumerable: !(r = We(n, t)) || r.enumerable });
|
|
15
|
+
return e;
|
|
16
|
+
}, He = (e, n, i) => (Ve(e, n, "default"), i), c = {};
|
|
17
|
+
He(c, je);
|
|
18
|
+
var ze = 2 * 60 * 1e3, Xe = class {
|
|
19
|
+
constructor(e) {
|
|
20
|
+
k(this, "_defaults");
|
|
21
|
+
k(this, "_idleCheckInterval");
|
|
22
|
+
k(this, "_lastUsedTime");
|
|
23
|
+
k(this, "_configChangeListener");
|
|
24
|
+
k(this, "_worker");
|
|
25
|
+
k(this, "_client");
|
|
26
|
+
this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
|
27
|
+
}
|
|
28
|
+
_stopWorker() {
|
|
29
|
+
this._worker && (this._worker.dispose(), this._worker = null), this._client = null;
|
|
30
|
+
}
|
|
31
|
+
dispose() {
|
|
32
|
+
clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
|
|
33
|
+
}
|
|
34
|
+
_checkIfIdle() {
|
|
35
|
+
if (!this._worker)
|
|
36
|
+
return;
|
|
37
|
+
Date.now() - this._lastUsedTime > ze && this._stopWorker();
|
|
38
|
+
}
|
|
39
|
+
_getClient() {
|
|
40
|
+
return this._lastUsedTime = Date.now(), this._client || (this._worker = c.editor.createWebWorker({
|
|
41
|
+
moduleId: "vs/language/css/cssWorker",
|
|
42
|
+
label: this._defaults.languageId,
|
|
43
|
+
createData: {
|
|
44
|
+
options: this._defaults.options,
|
|
45
|
+
languageId: this._defaults.languageId
|
|
46
|
+
}
|
|
47
|
+
}), this._client = this._worker.getProxy()), this._client;
|
|
48
|
+
}
|
|
49
|
+
getLanguageServiceWorker(...e) {
|
|
50
|
+
let n;
|
|
51
|
+
return this._getClient().then((i) => {
|
|
52
|
+
n = i;
|
|
53
|
+
}).then((i) => {
|
|
54
|
+
if (this._worker)
|
|
55
|
+
return this._worker.withSyncedResources(e);
|
|
56
|
+
}).then((i) => n);
|
|
57
|
+
}
|
|
58
|
+
}, Y;
|
|
59
|
+
(function(e) {
|
|
60
|
+
e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647;
|
|
61
|
+
})(Y || (Y = {}));
|
|
62
|
+
var U;
|
|
63
|
+
(function(e) {
|
|
64
|
+
e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647;
|
|
65
|
+
})(U || (U = {}));
|
|
66
|
+
var b;
|
|
67
|
+
(function(e) {
|
|
68
|
+
function n(r, t) {
|
|
69
|
+
return r === Number.MAX_VALUE && (r = U.MAX_VALUE), t === Number.MAX_VALUE && (t = U.MAX_VALUE), { line: r, character: t };
|
|
70
|
+
}
|
|
71
|
+
e.create = n;
|
|
72
|
+
function i(r) {
|
|
73
|
+
var t = r;
|
|
74
|
+
return s.objectLiteral(t) && s.uinteger(t.line) && s.uinteger(t.character);
|
|
75
|
+
}
|
|
76
|
+
e.is = i;
|
|
77
|
+
})(b || (b = {}));
|
|
78
|
+
var p;
|
|
79
|
+
(function(e) {
|
|
80
|
+
function n(r, t, a, o) {
|
|
81
|
+
if (s.uinteger(r) && s.uinteger(t) && s.uinteger(a) && s.uinteger(o))
|
|
82
|
+
return { start: b.create(r, t), end: b.create(a, o) };
|
|
83
|
+
if (b.is(r) && b.is(t))
|
|
84
|
+
return { start: r, end: t };
|
|
85
|
+
throw new Error("Range#create called with invalid arguments[" + r + ", " + t + ", " + a + ", " + o + "]");
|
|
86
|
+
}
|
|
87
|
+
e.create = n;
|
|
88
|
+
function i(r) {
|
|
89
|
+
var t = r;
|
|
90
|
+
return s.objectLiteral(t) && b.is(t.start) && b.is(t.end);
|
|
91
|
+
}
|
|
92
|
+
e.is = i;
|
|
93
|
+
})(p || (p = {}));
|
|
94
|
+
var X;
|
|
95
|
+
(function(e) {
|
|
96
|
+
function n(r, t) {
|
|
97
|
+
return { uri: r, range: t };
|
|
98
|
+
}
|
|
99
|
+
e.create = n;
|
|
100
|
+
function i(r) {
|
|
101
|
+
var t = r;
|
|
102
|
+
return s.defined(t) && p.is(t.range) && (s.string(t.uri) || s.undefined(t.uri));
|
|
103
|
+
}
|
|
104
|
+
e.is = i;
|
|
105
|
+
})(X || (X = {}));
|
|
106
|
+
var Z;
|
|
107
|
+
(function(e) {
|
|
108
|
+
function n(r, t, a, o) {
|
|
109
|
+
return { targetUri: r, targetRange: t, targetSelectionRange: a, originSelectionRange: o };
|
|
110
|
+
}
|
|
111
|
+
e.create = n;
|
|
112
|
+
function i(r) {
|
|
113
|
+
var t = r;
|
|
114
|
+
return s.defined(t) && p.is(t.targetRange) && s.string(t.targetUri) && (p.is(t.targetSelectionRange) || s.undefined(t.targetSelectionRange)) && (p.is(t.originSelectionRange) || s.undefined(t.originSelectionRange));
|
|
115
|
+
}
|
|
116
|
+
e.is = i;
|
|
117
|
+
})(Z || (Z = {}));
|
|
118
|
+
var B;
|
|
119
|
+
(function(e) {
|
|
120
|
+
function n(r, t, a, o) {
|
|
121
|
+
return {
|
|
122
|
+
red: r,
|
|
123
|
+
green: t,
|
|
124
|
+
blue: a,
|
|
125
|
+
alpha: o
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
e.create = n;
|
|
129
|
+
function i(r) {
|
|
130
|
+
var t = r;
|
|
131
|
+
return s.numberRange(t.red, 0, 1) && s.numberRange(t.green, 0, 1) && s.numberRange(t.blue, 0, 1) && s.numberRange(t.alpha, 0, 1);
|
|
132
|
+
}
|
|
133
|
+
e.is = i;
|
|
134
|
+
})(B || (B = {}));
|
|
135
|
+
var K;
|
|
136
|
+
(function(e) {
|
|
137
|
+
function n(r, t) {
|
|
138
|
+
return {
|
|
139
|
+
range: r,
|
|
140
|
+
color: t
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
e.create = n;
|
|
144
|
+
function i(r) {
|
|
145
|
+
var t = r;
|
|
146
|
+
return p.is(t.range) && B.is(t.color);
|
|
147
|
+
}
|
|
148
|
+
e.is = i;
|
|
149
|
+
})(K || (K = {}));
|
|
150
|
+
var ee;
|
|
151
|
+
(function(e) {
|
|
152
|
+
function n(r, t, a) {
|
|
153
|
+
return {
|
|
154
|
+
label: r,
|
|
155
|
+
textEdit: t,
|
|
156
|
+
additionalTextEdits: a
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
e.create = n;
|
|
160
|
+
function i(r) {
|
|
161
|
+
var t = r;
|
|
162
|
+
return s.string(t.label) && (s.undefined(t.textEdit) || C.is(t)) && (s.undefined(t.additionalTextEdits) || s.typedArray(t.additionalTextEdits, C.is));
|
|
163
|
+
}
|
|
164
|
+
e.is = i;
|
|
165
|
+
})(ee || (ee = {}));
|
|
166
|
+
var P;
|
|
167
|
+
(function(e) {
|
|
168
|
+
e.Comment = "comment", e.Imports = "imports", e.Region = "region";
|
|
169
|
+
})(P || (P = {}));
|
|
170
|
+
var te;
|
|
171
|
+
(function(e) {
|
|
172
|
+
function n(r, t, a, o, u) {
|
|
173
|
+
var g = {
|
|
174
|
+
startLine: r,
|
|
175
|
+
endLine: t
|
|
176
|
+
};
|
|
177
|
+
return s.defined(a) && (g.startCharacter = a), s.defined(o) && (g.endCharacter = o), s.defined(u) && (g.kind = u), g;
|
|
178
|
+
}
|
|
179
|
+
e.create = n;
|
|
180
|
+
function i(r) {
|
|
181
|
+
var t = r;
|
|
182
|
+
return s.uinteger(t.startLine) && s.uinteger(t.startLine) && (s.undefined(t.startCharacter) || s.uinteger(t.startCharacter)) && (s.undefined(t.endCharacter) || s.uinteger(t.endCharacter)) && (s.undefined(t.kind) || s.string(t.kind));
|
|
183
|
+
}
|
|
184
|
+
e.is = i;
|
|
185
|
+
})(te || (te = {}));
|
|
186
|
+
var $;
|
|
187
|
+
(function(e) {
|
|
188
|
+
function n(r, t) {
|
|
189
|
+
return {
|
|
190
|
+
location: r,
|
|
191
|
+
message: t
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
e.create = n;
|
|
195
|
+
function i(r) {
|
|
196
|
+
var t = r;
|
|
197
|
+
return s.defined(t) && X.is(t.location) && s.string(t.message);
|
|
198
|
+
}
|
|
199
|
+
e.is = i;
|
|
200
|
+
})($ || ($ = {}));
|
|
201
|
+
var I;
|
|
202
|
+
(function(e) {
|
|
203
|
+
e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4;
|
|
204
|
+
})(I || (I = {}));
|
|
205
|
+
var re;
|
|
206
|
+
(function(e) {
|
|
207
|
+
e.Unnecessary = 1, e.Deprecated = 2;
|
|
208
|
+
})(re || (re = {}));
|
|
209
|
+
var ne;
|
|
210
|
+
(function(e) {
|
|
211
|
+
function n(i) {
|
|
212
|
+
var r = i;
|
|
213
|
+
return r != null && s.string(r.href);
|
|
214
|
+
}
|
|
215
|
+
e.is = n;
|
|
216
|
+
})(ne || (ne = {}));
|
|
217
|
+
var O;
|
|
218
|
+
(function(e) {
|
|
219
|
+
function n(r, t, a, o, u, g) {
|
|
220
|
+
var d = { range: r, message: t };
|
|
221
|
+
return s.defined(a) && (d.severity = a), s.defined(o) && (d.code = o), s.defined(u) && (d.source = u), s.defined(g) && (d.relatedInformation = g), d;
|
|
222
|
+
}
|
|
223
|
+
e.create = n;
|
|
224
|
+
function i(r) {
|
|
225
|
+
var t, a = r;
|
|
226
|
+
return s.defined(a) && p.is(a.range) && s.string(a.message) && (s.number(a.severity) || s.undefined(a.severity)) && (s.integer(a.code) || s.string(a.code) || s.undefined(a.code)) && (s.undefined(a.codeDescription) || s.string((t = a.codeDescription) === null || t === void 0 ? void 0 : t.href)) && (s.string(a.source) || s.undefined(a.source)) && (s.undefined(a.relatedInformation) || s.typedArray(a.relatedInformation, $.is));
|
|
227
|
+
}
|
|
228
|
+
e.is = i;
|
|
229
|
+
})(O || (O = {}));
|
|
230
|
+
var M;
|
|
231
|
+
(function(e) {
|
|
232
|
+
function n(r, t) {
|
|
233
|
+
for (var a = [], o = 2; o < arguments.length; o++)
|
|
234
|
+
a[o - 2] = arguments[o];
|
|
235
|
+
var u = { title: r, command: t };
|
|
236
|
+
return s.defined(a) && a.length > 0 && (u.arguments = a), u;
|
|
237
|
+
}
|
|
238
|
+
e.create = n;
|
|
239
|
+
function i(r) {
|
|
240
|
+
var t = r;
|
|
241
|
+
return s.defined(t) && s.string(t.title) && s.string(t.command);
|
|
242
|
+
}
|
|
243
|
+
e.is = i;
|
|
244
|
+
})(M || (M = {}));
|
|
245
|
+
var C;
|
|
246
|
+
(function(e) {
|
|
247
|
+
function n(a, o) {
|
|
248
|
+
return { range: a, newText: o };
|
|
249
|
+
}
|
|
250
|
+
e.replace = n;
|
|
251
|
+
function i(a, o) {
|
|
252
|
+
return { range: { start: a, end: a }, newText: o };
|
|
253
|
+
}
|
|
254
|
+
e.insert = i;
|
|
255
|
+
function r(a) {
|
|
256
|
+
return { range: a, newText: "" };
|
|
257
|
+
}
|
|
258
|
+
e.del = r;
|
|
259
|
+
function t(a) {
|
|
260
|
+
var o = a;
|
|
261
|
+
return s.objectLiteral(o) && s.string(o.newText) && p.is(o.range);
|
|
262
|
+
}
|
|
263
|
+
e.is = t;
|
|
264
|
+
})(C || (C = {}));
|
|
265
|
+
var R;
|
|
266
|
+
(function(e) {
|
|
267
|
+
function n(r, t, a) {
|
|
268
|
+
var o = { label: r };
|
|
269
|
+
return t !== void 0 && (o.needsConfirmation = t), a !== void 0 && (o.description = a), o;
|
|
270
|
+
}
|
|
271
|
+
e.create = n;
|
|
272
|
+
function i(r) {
|
|
273
|
+
var t = r;
|
|
274
|
+
return t !== void 0 && s.objectLiteral(t) && s.string(t.label) && (s.boolean(t.needsConfirmation) || t.needsConfirmation === void 0) && (s.string(t.description) || t.description === void 0);
|
|
275
|
+
}
|
|
276
|
+
e.is = i;
|
|
277
|
+
})(R || (R = {}));
|
|
278
|
+
var m;
|
|
279
|
+
(function(e) {
|
|
280
|
+
function n(i) {
|
|
281
|
+
var r = i;
|
|
282
|
+
return typeof r == "string";
|
|
283
|
+
}
|
|
284
|
+
e.is = n;
|
|
285
|
+
})(m || (m = {}));
|
|
286
|
+
var x;
|
|
287
|
+
(function(e) {
|
|
288
|
+
function n(a, o, u) {
|
|
289
|
+
return { range: a, newText: o, annotationId: u };
|
|
290
|
+
}
|
|
291
|
+
e.replace = n;
|
|
292
|
+
function i(a, o, u) {
|
|
293
|
+
return { range: { start: a, end: a }, newText: o, annotationId: u };
|
|
294
|
+
}
|
|
295
|
+
e.insert = i;
|
|
296
|
+
function r(a, o) {
|
|
297
|
+
return { range: a, newText: "", annotationId: o };
|
|
298
|
+
}
|
|
299
|
+
e.del = r;
|
|
300
|
+
function t(a) {
|
|
301
|
+
var o = a;
|
|
302
|
+
return C.is(o) && (R.is(o.annotationId) || m.is(o.annotationId));
|
|
303
|
+
}
|
|
304
|
+
e.is = t;
|
|
305
|
+
})(x || (x = {}));
|
|
306
|
+
var V;
|
|
307
|
+
(function(e) {
|
|
308
|
+
function n(r, t) {
|
|
309
|
+
return { textDocument: r, edits: t };
|
|
310
|
+
}
|
|
311
|
+
e.create = n;
|
|
312
|
+
function i(r) {
|
|
313
|
+
var t = r;
|
|
314
|
+
return s.defined(t) && H.is(t.textDocument) && Array.isArray(t.edits);
|
|
315
|
+
}
|
|
316
|
+
e.is = i;
|
|
317
|
+
})(V || (V = {}));
|
|
318
|
+
var T;
|
|
319
|
+
(function(e) {
|
|
320
|
+
function n(r, t, a) {
|
|
321
|
+
var o = {
|
|
322
|
+
kind: "create",
|
|
323
|
+
uri: r
|
|
324
|
+
};
|
|
325
|
+
return t !== void 0 && (t.overwrite !== void 0 || t.ignoreIfExists !== void 0) && (o.options = t), a !== void 0 && (o.annotationId = a), o;
|
|
326
|
+
}
|
|
327
|
+
e.create = n;
|
|
328
|
+
function i(r) {
|
|
329
|
+
var t = r;
|
|
330
|
+
return t && t.kind === "create" && s.string(t.uri) && (t.options === void 0 || (t.options.overwrite === void 0 || s.boolean(t.options.overwrite)) && (t.options.ignoreIfExists === void 0 || s.boolean(t.options.ignoreIfExists))) && (t.annotationId === void 0 || m.is(t.annotationId));
|
|
331
|
+
}
|
|
332
|
+
e.is = i;
|
|
333
|
+
})(T || (T = {}));
|
|
334
|
+
var S;
|
|
335
|
+
(function(e) {
|
|
336
|
+
function n(r, t, a, o) {
|
|
337
|
+
var u = {
|
|
338
|
+
kind: "rename",
|
|
339
|
+
oldUri: r,
|
|
340
|
+
newUri: t
|
|
341
|
+
};
|
|
342
|
+
return a !== void 0 && (a.overwrite !== void 0 || a.ignoreIfExists !== void 0) && (u.options = a), o !== void 0 && (u.annotationId = o), u;
|
|
343
|
+
}
|
|
344
|
+
e.create = n;
|
|
345
|
+
function i(r) {
|
|
346
|
+
var t = r;
|
|
347
|
+
return t && t.kind === "rename" && s.string(t.oldUri) && s.string(t.newUri) && (t.options === void 0 || (t.options.overwrite === void 0 || s.boolean(t.options.overwrite)) && (t.options.ignoreIfExists === void 0 || s.boolean(t.options.ignoreIfExists))) && (t.annotationId === void 0 || m.is(t.annotationId));
|
|
348
|
+
}
|
|
349
|
+
e.is = i;
|
|
350
|
+
})(S || (S = {}));
|
|
351
|
+
var F;
|
|
352
|
+
(function(e) {
|
|
353
|
+
function n(r, t, a) {
|
|
354
|
+
var o = {
|
|
355
|
+
kind: "delete",
|
|
356
|
+
uri: r
|
|
357
|
+
};
|
|
358
|
+
return t !== void 0 && (t.recursive !== void 0 || t.ignoreIfNotExists !== void 0) && (o.options = t), a !== void 0 && (o.annotationId = a), o;
|
|
359
|
+
}
|
|
360
|
+
e.create = n;
|
|
361
|
+
function i(r) {
|
|
362
|
+
var t = r;
|
|
363
|
+
return t && t.kind === "delete" && s.string(t.uri) && (t.options === void 0 || (t.options.recursive === void 0 || s.boolean(t.options.recursive)) && (t.options.ignoreIfNotExists === void 0 || s.boolean(t.options.ignoreIfNotExists))) && (t.annotationId === void 0 || m.is(t.annotationId));
|
|
364
|
+
}
|
|
365
|
+
e.is = i;
|
|
366
|
+
})(F || (F = {}));
|
|
367
|
+
var q;
|
|
368
|
+
(function(e) {
|
|
369
|
+
function n(i) {
|
|
370
|
+
var r = i;
|
|
371
|
+
return r && (r.changes !== void 0 || r.documentChanges !== void 0) && (r.documentChanges === void 0 || r.documentChanges.every(function(t) {
|
|
372
|
+
return s.string(t.kind) ? T.is(t) || S.is(t) || F.is(t) : V.is(t);
|
|
373
|
+
}));
|
|
374
|
+
}
|
|
375
|
+
e.is = n;
|
|
376
|
+
})(q || (q = {}));
|
|
377
|
+
var W = function() {
|
|
378
|
+
function e(n, i) {
|
|
379
|
+
this.edits = n, this.changeAnnotations = i;
|
|
380
|
+
}
|
|
381
|
+
return e.prototype.insert = function(n, i, r) {
|
|
382
|
+
var t, a;
|
|
383
|
+
if (r === void 0 ? t = C.insert(n, i) : m.is(r) ? (a = r, t = x.insert(n, i, r)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(r), t = x.insert(n, i, a)), this.edits.push(t), a !== void 0)
|
|
384
|
+
return a;
|
|
385
|
+
}, e.prototype.replace = function(n, i, r) {
|
|
386
|
+
var t, a;
|
|
387
|
+
if (r === void 0 ? t = C.replace(n, i) : m.is(r) ? (a = r, t = x.replace(n, i, r)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(r), t = x.replace(n, i, a)), this.edits.push(t), a !== void 0)
|
|
388
|
+
return a;
|
|
389
|
+
}, e.prototype.delete = function(n, i) {
|
|
390
|
+
var r, t;
|
|
391
|
+
if (i === void 0 ? r = C.del(n) : m.is(i) ? (t = i, r = x.del(n, i)) : (this.assertChangeAnnotations(this.changeAnnotations), t = this.changeAnnotations.manage(i), r = x.del(n, t)), this.edits.push(r), t !== void 0)
|
|
392
|
+
return t;
|
|
393
|
+
}, e.prototype.add = function(n) {
|
|
394
|
+
this.edits.push(n);
|
|
395
|
+
}, e.prototype.all = function() {
|
|
396
|
+
return this.edits;
|
|
397
|
+
}, e.prototype.clear = function() {
|
|
398
|
+
this.edits.splice(0, this.edits.length);
|
|
399
|
+
}, e.prototype.assertChangeAnnotations = function(n) {
|
|
400
|
+
if (n === void 0)
|
|
401
|
+
throw new Error("Text edit change is not configured to manage change annotations.");
|
|
402
|
+
}, e;
|
|
403
|
+
}(), ie = function() {
|
|
404
|
+
function e(n) {
|
|
405
|
+
this._annotations = n === void 0 ? /* @__PURE__ */ Object.create(null) : n, this._counter = 0, this._size = 0;
|
|
406
|
+
}
|
|
407
|
+
return e.prototype.all = function() {
|
|
408
|
+
return this._annotations;
|
|
409
|
+
}, Object.defineProperty(e.prototype, "size", {
|
|
410
|
+
get: function() {
|
|
411
|
+
return this._size;
|
|
412
|
+
},
|
|
413
|
+
enumerable: !1,
|
|
414
|
+
configurable: !0
|
|
415
|
+
}), e.prototype.manage = function(n, i) {
|
|
416
|
+
var r;
|
|
417
|
+
if (m.is(n) ? r = n : (r = this.nextId(), i = n), this._annotations[r] !== void 0)
|
|
418
|
+
throw new Error("Id " + r + " is already in use.");
|
|
419
|
+
if (i === void 0)
|
|
420
|
+
throw new Error("No annotation provided for id " + r);
|
|
421
|
+
return this._annotations[r] = i, this._size++, r;
|
|
422
|
+
}, e.prototype.nextId = function() {
|
|
423
|
+
return this._counter++, this._counter.toString();
|
|
424
|
+
}, e;
|
|
425
|
+
}();
|
|
426
|
+
(function() {
|
|
427
|
+
function e(n) {
|
|
428
|
+
var i = this;
|
|
429
|
+
this._textEditChanges = /* @__PURE__ */ Object.create(null), n !== void 0 ? (this._workspaceEdit = n, n.documentChanges ? (this._changeAnnotations = new ie(n.changeAnnotations), n.changeAnnotations = this._changeAnnotations.all(), n.documentChanges.forEach(function(r) {
|
|
430
|
+
if (V.is(r)) {
|
|
431
|
+
var t = new W(r.edits, i._changeAnnotations);
|
|
432
|
+
i._textEditChanges[r.textDocument.uri] = t;
|
|
433
|
+
}
|
|
434
|
+
})) : n.changes && Object.keys(n.changes).forEach(function(r) {
|
|
435
|
+
var t = new W(n.changes[r]);
|
|
436
|
+
i._textEditChanges[r] = t;
|
|
437
|
+
})) : this._workspaceEdit = {};
|
|
438
|
+
}
|
|
439
|
+
return Object.defineProperty(e.prototype, "edit", {
|
|
440
|
+
get: function() {
|
|
441
|
+
return this.initDocumentChanges(), this._changeAnnotations !== void 0 && (this._changeAnnotations.size === 0 ? this._workspaceEdit.changeAnnotations = void 0 : this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()), this._workspaceEdit;
|
|
442
|
+
},
|
|
443
|
+
enumerable: !1,
|
|
444
|
+
configurable: !0
|
|
445
|
+
}), e.prototype.getTextEditChange = function(n) {
|
|
446
|
+
if (H.is(n)) {
|
|
447
|
+
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0)
|
|
448
|
+
throw new Error("Workspace edit is not configured for document changes.");
|
|
449
|
+
var i = { uri: n.uri, version: n.version }, r = this._textEditChanges[i.uri];
|
|
450
|
+
if (!r) {
|
|
451
|
+
var t = [], a = {
|
|
452
|
+
textDocument: i,
|
|
453
|
+
edits: t
|
|
454
|
+
};
|
|
455
|
+
this._workspaceEdit.documentChanges.push(a), r = new W(t, this._changeAnnotations), this._textEditChanges[i.uri] = r;
|
|
456
|
+
}
|
|
457
|
+
return r;
|
|
458
|
+
} else {
|
|
459
|
+
if (this.initChanges(), this._workspaceEdit.changes === void 0)
|
|
460
|
+
throw new Error("Workspace edit is not configured for normal text edit changes.");
|
|
461
|
+
var r = this._textEditChanges[n];
|
|
462
|
+
if (!r) {
|
|
463
|
+
var t = [];
|
|
464
|
+
this._workspaceEdit.changes[n] = t, r = new W(t), this._textEditChanges[n] = r;
|
|
465
|
+
}
|
|
466
|
+
return r;
|
|
467
|
+
}
|
|
468
|
+
}, e.prototype.initDocumentChanges = function() {
|
|
469
|
+
this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._changeAnnotations = new ie(), this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all());
|
|
470
|
+
}, e.prototype.initChanges = function() {
|
|
471
|
+
this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._workspaceEdit.changes = /* @__PURE__ */ Object.create(null));
|
|
472
|
+
}, e.prototype.createFile = function(n, i, r) {
|
|
473
|
+
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0)
|
|
474
|
+
throw new Error("Workspace edit is not configured for document changes.");
|
|
475
|
+
var t;
|
|
476
|
+
R.is(i) || m.is(i) ? t = i : r = i;
|
|
477
|
+
var a, o;
|
|
478
|
+
if (t === void 0 ? a = T.create(n, r) : (o = m.is(t) ? t : this._changeAnnotations.manage(t), a = T.create(n, r, o)), this._workspaceEdit.documentChanges.push(a), o !== void 0)
|
|
479
|
+
return o;
|
|
480
|
+
}, e.prototype.renameFile = function(n, i, r, t) {
|
|
481
|
+
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0)
|
|
482
|
+
throw new Error("Workspace edit is not configured for document changes.");
|
|
483
|
+
var a;
|
|
484
|
+
R.is(r) || m.is(r) ? a = r : t = r;
|
|
485
|
+
var o, u;
|
|
486
|
+
if (a === void 0 ? o = S.create(n, i, t) : (u = m.is(a) ? a : this._changeAnnotations.manage(a), o = S.create(n, i, t, u)), this._workspaceEdit.documentChanges.push(o), u !== void 0)
|
|
487
|
+
return u;
|
|
488
|
+
}, e.prototype.deleteFile = function(n, i, r) {
|
|
489
|
+
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0)
|
|
490
|
+
throw new Error("Workspace edit is not configured for document changes.");
|
|
491
|
+
var t;
|
|
492
|
+
R.is(i) || m.is(i) ? t = i : r = i;
|
|
493
|
+
var a, o;
|
|
494
|
+
if (t === void 0 ? a = F.create(n, r) : (o = m.is(t) ? t : this._changeAnnotations.manage(t), a = F.create(n, r, o)), this._workspaceEdit.documentChanges.push(a), o !== void 0)
|
|
495
|
+
return o;
|
|
496
|
+
}, e;
|
|
497
|
+
})();
|
|
498
|
+
var ae;
|
|
499
|
+
(function(e) {
|
|
500
|
+
function n(r) {
|
|
501
|
+
return { uri: r };
|
|
502
|
+
}
|
|
503
|
+
e.create = n;
|
|
504
|
+
function i(r) {
|
|
505
|
+
var t = r;
|
|
506
|
+
return s.defined(t) && s.string(t.uri);
|
|
507
|
+
}
|
|
508
|
+
e.is = i;
|
|
509
|
+
})(ae || (ae = {}));
|
|
510
|
+
var oe;
|
|
511
|
+
(function(e) {
|
|
512
|
+
function n(r, t) {
|
|
513
|
+
return { uri: r, version: t };
|
|
514
|
+
}
|
|
515
|
+
e.create = n;
|
|
516
|
+
function i(r) {
|
|
517
|
+
var t = r;
|
|
518
|
+
return s.defined(t) && s.string(t.uri) && s.integer(t.version);
|
|
519
|
+
}
|
|
520
|
+
e.is = i;
|
|
521
|
+
})(oe || (oe = {}));
|
|
522
|
+
var H;
|
|
523
|
+
(function(e) {
|
|
524
|
+
function n(r, t) {
|
|
525
|
+
return { uri: r, version: t };
|
|
526
|
+
}
|
|
527
|
+
e.create = n;
|
|
528
|
+
function i(r) {
|
|
529
|
+
var t = r;
|
|
530
|
+
return s.defined(t) && s.string(t.uri) && (t.version === null || s.integer(t.version));
|
|
531
|
+
}
|
|
532
|
+
e.is = i;
|
|
533
|
+
})(H || (H = {}));
|
|
534
|
+
var se;
|
|
535
|
+
(function(e) {
|
|
536
|
+
function n(r, t, a, o) {
|
|
537
|
+
return { uri: r, languageId: t, version: a, text: o };
|
|
538
|
+
}
|
|
539
|
+
e.create = n;
|
|
540
|
+
function i(r) {
|
|
541
|
+
var t = r;
|
|
542
|
+
return s.defined(t) && s.string(t.uri) && s.string(t.languageId) && s.integer(t.version) && s.string(t.text);
|
|
543
|
+
}
|
|
544
|
+
e.is = i;
|
|
545
|
+
})(se || (se = {}));
|
|
546
|
+
var L;
|
|
547
|
+
(function(e) {
|
|
548
|
+
e.PlainText = "plaintext", e.Markdown = "markdown";
|
|
549
|
+
})(L || (L = {}));
|
|
550
|
+
(function(e) {
|
|
551
|
+
function n(i) {
|
|
552
|
+
var r = i;
|
|
553
|
+
return r === e.PlainText || r === e.Markdown;
|
|
554
|
+
}
|
|
555
|
+
e.is = n;
|
|
556
|
+
})(L || (L = {}));
|
|
557
|
+
var Q;
|
|
558
|
+
(function(e) {
|
|
559
|
+
function n(i) {
|
|
560
|
+
var r = i;
|
|
561
|
+
return s.objectLiteral(i) && L.is(r.kind) && s.string(r.value);
|
|
562
|
+
}
|
|
563
|
+
e.is = n;
|
|
564
|
+
})(Q || (Q = {}));
|
|
565
|
+
var l;
|
|
566
|
+
(function(e) {
|
|
567
|
+
e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25;
|
|
568
|
+
})(l || (l = {}));
|
|
569
|
+
var G;
|
|
570
|
+
(function(e) {
|
|
571
|
+
e.PlainText = 1, e.Snippet = 2;
|
|
572
|
+
})(G || (G = {}));
|
|
573
|
+
var ue;
|
|
574
|
+
(function(e) {
|
|
575
|
+
e.Deprecated = 1;
|
|
576
|
+
})(ue || (ue = {}));
|
|
577
|
+
var ce;
|
|
578
|
+
(function(e) {
|
|
579
|
+
function n(r, t, a) {
|
|
580
|
+
return { newText: r, insert: t, replace: a };
|
|
581
|
+
}
|
|
582
|
+
e.create = n;
|
|
583
|
+
function i(r) {
|
|
584
|
+
var t = r;
|
|
585
|
+
return t && s.string(t.newText) && p.is(t.insert) && p.is(t.replace);
|
|
586
|
+
}
|
|
587
|
+
e.is = i;
|
|
588
|
+
})(ce || (ce = {}));
|
|
589
|
+
var de;
|
|
590
|
+
(function(e) {
|
|
591
|
+
e.asIs = 1, e.adjustIndentation = 2;
|
|
592
|
+
})(de || (de = {}));
|
|
593
|
+
var fe;
|
|
594
|
+
(function(e) {
|
|
595
|
+
function n(i) {
|
|
596
|
+
return { label: i };
|
|
597
|
+
}
|
|
598
|
+
e.create = n;
|
|
599
|
+
})(fe || (fe = {}));
|
|
600
|
+
var ge;
|
|
601
|
+
(function(e) {
|
|
602
|
+
function n(i, r) {
|
|
603
|
+
return { items: i || [], isIncomplete: !!r };
|
|
604
|
+
}
|
|
605
|
+
e.create = n;
|
|
606
|
+
})(ge || (ge = {}));
|
|
607
|
+
var z;
|
|
608
|
+
(function(e) {
|
|
609
|
+
function n(r) {
|
|
610
|
+
return r.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
|
|
611
|
+
}
|
|
612
|
+
e.fromPlainText = n;
|
|
613
|
+
function i(r) {
|
|
614
|
+
var t = r;
|
|
615
|
+
return s.string(t) || s.objectLiteral(t) && s.string(t.language) && s.string(t.value);
|
|
616
|
+
}
|
|
617
|
+
e.is = i;
|
|
618
|
+
})(z || (z = {}));
|
|
619
|
+
var le;
|
|
620
|
+
(function(e) {
|
|
621
|
+
function n(i) {
|
|
622
|
+
var r = i;
|
|
623
|
+
return !!r && s.objectLiteral(r) && (Q.is(r.contents) || z.is(r.contents) || s.typedArray(r.contents, z.is)) && (i.range === void 0 || p.is(i.range));
|
|
624
|
+
}
|
|
625
|
+
e.is = n;
|
|
626
|
+
})(le || (le = {}));
|
|
627
|
+
var he;
|
|
628
|
+
(function(e) {
|
|
629
|
+
function n(i, r) {
|
|
630
|
+
return r ? { label: i, documentation: r } : { label: i };
|
|
631
|
+
}
|
|
632
|
+
e.create = n;
|
|
633
|
+
})(he || (he = {}));
|
|
634
|
+
var ve;
|
|
635
|
+
(function(e) {
|
|
636
|
+
function n(i, r) {
|
|
637
|
+
for (var t = [], a = 2; a < arguments.length; a++)
|
|
638
|
+
t[a - 2] = arguments[a];
|
|
639
|
+
var o = { label: i };
|
|
640
|
+
return s.defined(r) && (o.documentation = r), s.defined(t) ? o.parameters = t : o.parameters = [], o;
|
|
641
|
+
}
|
|
642
|
+
e.create = n;
|
|
643
|
+
})(ve || (ve = {}));
|
|
644
|
+
var D;
|
|
645
|
+
(function(e) {
|
|
646
|
+
e.Text = 1, e.Read = 2, e.Write = 3;
|
|
647
|
+
})(D || (D = {}));
|
|
648
|
+
var pe;
|
|
649
|
+
(function(e) {
|
|
650
|
+
function n(i, r) {
|
|
651
|
+
var t = { range: i };
|
|
652
|
+
return s.number(r) && (t.kind = r), t;
|
|
653
|
+
}
|
|
654
|
+
e.create = n;
|
|
655
|
+
})(pe || (pe = {}));
|
|
656
|
+
var h;
|
|
657
|
+
(function(e) {
|
|
658
|
+
e.File = 1, e.Module = 2, e.Namespace = 3, e.Package = 4, e.Class = 5, e.Method = 6, e.Property = 7, e.Field = 8, e.Constructor = 9, e.Enum = 10, e.Interface = 11, e.Function = 12, e.Variable = 13, e.Constant = 14, e.String = 15, e.Number = 16, e.Boolean = 17, e.Array = 18, e.Object = 19, e.Key = 20, e.Null = 21, e.EnumMember = 22, e.Struct = 23, e.Event = 24, e.Operator = 25, e.TypeParameter = 26;
|
|
659
|
+
})(h || (h = {}));
|
|
660
|
+
var me;
|
|
661
|
+
(function(e) {
|
|
662
|
+
e.Deprecated = 1;
|
|
663
|
+
})(me || (me = {}));
|
|
664
|
+
var _e;
|
|
665
|
+
(function(e) {
|
|
666
|
+
function n(i, r, t, a, o) {
|
|
667
|
+
var u = {
|
|
668
|
+
name: i,
|
|
669
|
+
kind: r,
|
|
670
|
+
location: { uri: a, range: t }
|
|
671
|
+
};
|
|
672
|
+
return o && (u.containerName = o), u;
|
|
673
|
+
}
|
|
674
|
+
e.create = n;
|
|
675
|
+
})(_e || (_e = {}));
|
|
676
|
+
var we;
|
|
677
|
+
(function(e) {
|
|
678
|
+
function n(r, t, a, o, u, g) {
|
|
679
|
+
var d = {
|
|
680
|
+
name: r,
|
|
681
|
+
detail: t,
|
|
682
|
+
kind: a,
|
|
683
|
+
range: o,
|
|
684
|
+
selectionRange: u
|
|
685
|
+
};
|
|
686
|
+
return g !== void 0 && (d.children = g), d;
|
|
687
|
+
}
|
|
688
|
+
e.create = n;
|
|
689
|
+
function i(r) {
|
|
690
|
+
var t = r;
|
|
691
|
+
return t && s.string(t.name) && s.number(t.kind) && p.is(t.range) && p.is(t.selectionRange) && (t.detail === void 0 || s.string(t.detail)) && (t.deprecated === void 0 || s.boolean(t.deprecated)) && (t.children === void 0 || Array.isArray(t.children)) && (t.tags === void 0 || Array.isArray(t.tags));
|
|
692
|
+
}
|
|
693
|
+
e.is = i;
|
|
694
|
+
})(we || (we = {}));
|
|
695
|
+
var ke;
|
|
696
|
+
(function(e) {
|
|
697
|
+
e.Empty = "", e.QuickFix = "quickfix", e.Refactor = "refactor", e.RefactorExtract = "refactor.extract", e.RefactorInline = "refactor.inline", e.RefactorRewrite = "refactor.rewrite", e.Source = "source", e.SourceOrganizeImports = "source.organizeImports", e.SourceFixAll = "source.fixAll";
|
|
698
|
+
})(ke || (ke = {}));
|
|
699
|
+
var be;
|
|
700
|
+
(function(e) {
|
|
701
|
+
function n(r, t) {
|
|
702
|
+
var a = { diagnostics: r };
|
|
703
|
+
return t != null && (a.only = t), a;
|
|
704
|
+
}
|
|
705
|
+
e.create = n;
|
|
706
|
+
function i(r) {
|
|
707
|
+
var t = r;
|
|
708
|
+
return s.defined(t) && s.typedArray(t.diagnostics, O.is) && (t.only === void 0 || s.typedArray(t.only, s.string));
|
|
709
|
+
}
|
|
710
|
+
e.is = i;
|
|
711
|
+
})(be || (be = {}));
|
|
712
|
+
var Ee;
|
|
713
|
+
(function(e) {
|
|
714
|
+
function n(r, t, a) {
|
|
715
|
+
var o = { title: r }, u = !0;
|
|
716
|
+
return typeof t == "string" ? (u = !1, o.kind = t) : M.is(t) ? o.command = t : o.edit = t, u && a !== void 0 && (o.kind = a), o;
|
|
717
|
+
}
|
|
718
|
+
e.create = n;
|
|
719
|
+
function i(r) {
|
|
720
|
+
var t = r;
|
|
721
|
+
return t && s.string(t.title) && (t.diagnostics === void 0 || s.typedArray(t.diagnostics, O.is)) && (t.kind === void 0 || s.string(t.kind)) && (t.edit !== void 0 || t.command !== void 0) && (t.command === void 0 || M.is(t.command)) && (t.isPreferred === void 0 || s.boolean(t.isPreferred)) && (t.edit === void 0 || q.is(t.edit));
|
|
722
|
+
}
|
|
723
|
+
e.is = i;
|
|
724
|
+
})(Ee || (Ee = {}));
|
|
725
|
+
var xe;
|
|
726
|
+
(function(e) {
|
|
727
|
+
function n(r, t) {
|
|
728
|
+
var a = { range: r };
|
|
729
|
+
return s.defined(t) && (a.data = t), a;
|
|
730
|
+
}
|
|
731
|
+
e.create = n;
|
|
732
|
+
function i(r) {
|
|
733
|
+
var t = r;
|
|
734
|
+
return s.defined(t) && p.is(t.range) && (s.undefined(t.command) || M.is(t.command));
|
|
735
|
+
}
|
|
736
|
+
e.is = i;
|
|
737
|
+
})(xe || (xe = {}));
|
|
738
|
+
var Ce;
|
|
739
|
+
(function(e) {
|
|
740
|
+
function n(r, t) {
|
|
741
|
+
return { tabSize: r, insertSpaces: t };
|
|
742
|
+
}
|
|
743
|
+
e.create = n;
|
|
744
|
+
function i(r) {
|
|
745
|
+
var t = r;
|
|
746
|
+
return s.defined(t) && s.uinteger(t.tabSize) && s.boolean(t.insertSpaces);
|
|
747
|
+
}
|
|
748
|
+
e.is = i;
|
|
749
|
+
})(Ce || (Ce = {}));
|
|
750
|
+
var Ae;
|
|
751
|
+
(function(e) {
|
|
752
|
+
function n(r, t, a) {
|
|
753
|
+
return { range: r, target: t, data: a };
|
|
754
|
+
}
|
|
755
|
+
e.create = n;
|
|
756
|
+
function i(r) {
|
|
757
|
+
var t = r;
|
|
758
|
+
return s.defined(t) && p.is(t.range) && (s.undefined(t.target) || s.string(t.target));
|
|
759
|
+
}
|
|
760
|
+
e.is = i;
|
|
761
|
+
})(Ae || (Ae = {}));
|
|
762
|
+
var ye;
|
|
763
|
+
(function(e) {
|
|
764
|
+
function n(r, t) {
|
|
765
|
+
return { range: r, parent: t };
|
|
766
|
+
}
|
|
767
|
+
e.create = n;
|
|
768
|
+
function i(r) {
|
|
769
|
+
var t = r;
|
|
770
|
+
return t !== void 0 && p.is(t.range) && (t.parent === void 0 || e.is(t.parent));
|
|
771
|
+
}
|
|
772
|
+
e.is = i;
|
|
773
|
+
})(ye || (ye = {}));
|
|
774
|
+
var Ie;
|
|
775
|
+
(function(e) {
|
|
776
|
+
function n(a, o, u, g) {
|
|
777
|
+
return new Be(a, o, u, g);
|
|
778
|
+
}
|
|
779
|
+
e.create = n;
|
|
780
|
+
function i(a) {
|
|
781
|
+
var o = a;
|
|
782
|
+
return !!(s.defined(o) && s.string(o.uri) && (s.undefined(o.languageId) || s.string(o.languageId)) && s.uinteger(o.lineCount) && s.func(o.getText) && s.func(o.positionAt) && s.func(o.offsetAt));
|
|
783
|
+
}
|
|
784
|
+
e.is = i;
|
|
785
|
+
function r(a, o) {
|
|
786
|
+
for (var u = a.getText(), g = t(o, function(y, N) {
|
|
787
|
+
var J = y.range.start.line - N.range.start.line;
|
|
788
|
+
return J === 0 ? y.range.start.character - N.range.start.character : J;
|
|
789
|
+
}), d = u.length, v = g.length - 1; v >= 0; v--) {
|
|
790
|
+
var w = g[v], E = a.offsetAt(w.range.start), f = a.offsetAt(w.range.end);
|
|
791
|
+
if (f <= d)
|
|
792
|
+
u = u.substring(0, E) + w.newText + u.substring(f, u.length);
|
|
793
|
+
else
|
|
794
|
+
throw new Error("Overlapping edit");
|
|
795
|
+
d = E;
|
|
796
|
+
}
|
|
797
|
+
return u;
|
|
798
|
+
}
|
|
799
|
+
e.applyEdits = r;
|
|
800
|
+
function t(a, o) {
|
|
801
|
+
if (a.length <= 1)
|
|
802
|
+
return a;
|
|
803
|
+
var u = a.length / 2 | 0, g = a.slice(0, u), d = a.slice(u);
|
|
804
|
+
t(g, o), t(d, o);
|
|
805
|
+
for (var v = 0, w = 0, E = 0; v < g.length && w < d.length; ) {
|
|
806
|
+
var f = o(g[v], d[w]);
|
|
807
|
+
f <= 0 ? a[E++] = g[v++] : a[E++] = d[w++];
|
|
808
|
+
}
|
|
809
|
+
for (; v < g.length; )
|
|
810
|
+
a[E++] = g[v++];
|
|
811
|
+
for (; w < d.length; )
|
|
812
|
+
a[E++] = d[w++];
|
|
813
|
+
return a;
|
|
814
|
+
}
|
|
815
|
+
})(Ie || (Ie = {}));
|
|
816
|
+
var Be = function() {
|
|
817
|
+
function e(n, i, r, t) {
|
|
818
|
+
this._uri = n, this._languageId = i, this._version = r, this._content = t, this._lineOffsets = void 0;
|
|
819
|
+
}
|
|
820
|
+
return Object.defineProperty(e.prototype, "uri", {
|
|
821
|
+
get: function() {
|
|
822
|
+
return this._uri;
|
|
823
|
+
},
|
|
824
|
+
enumerable: !1,
|
|
825
|
+
configurable: !0
|
|
826
|
+
}), Object.defineProperty(e.prototype, "languageId", {
|
|
827
|
+
get: function() {
|
|
828
|
+
return this._languageId;
|
|
829
|
+
},
|
|
830
|
+
enumerable: !1,
|
|
831
|
+
configurable: !0
|
|
832
|
+
}), Object.defineProperty(e.prototype, "version", {
|
|
833
|
+
get: function() {
|
|
834
|
+
return this._version;
|
|
835
|
+
},
|
|
836
|
+
enumerable: !1,
|
|
837
|
+
configurable: !0
|
|
838
|
+
}), e.prototype.getText = function(n) {
|
|
839
|
+
if (n) {
|
|
840
|
+
var i = this.offsetAt(n.start), r = this.offsetAt(n.end);
|
|
841
|
+
return this._content.substring(i, r);
|
|
842
|
+
}
|
|
843
|
+
return this._content;
|
|
844
|
+
}, e.prototype.update = function(n, i) {
|
|
845
|
+
this._content = n.text, this._version = i, this._lineOffsets = void 0;
|
|
846
|
+
}, e.prototype.getLineOffsets = function() {
|
|
847
|
+
if (this._lineOffsets === void 0) {
|
|
848
|
+
for (var n = [], i = this._content, r = !0, t = 0; t < i.length; t++) {
|
|
849
|
+
r && (n.push(t), r = !1);
|
|
850
|
+
var a = i.charAt(t);
|
|
851
|
+
r = a === "\r" || a === `
|
|
852
|
+
`, a === "\r" && t + 1 < i.length && i.charAt(t + 1) === `
|
|
853
|
+
` && t++;
|
|
854
|
+
}
|
|
855
|
+
r && i.length > 0 && n.push(i.length), this._lineOffsets = n;
|
|
856
|
+
}
|
|
857
|
+
return this._lineOffsets;
|
|
858
|
+
}, e.prototype.positionAt = function(n) {
|
|
859
|
+
n = Math.max(Math.min(n, this._content.length), 0);
|
|
860
|
+
var i = this.getLineOffsets(), r = 0, t = i.length;
|
|
861
|
+
if (t === 0)
|
|
862
|
+
return b.create(0, n);
|
|
863
|
+
for (; r < t; ) {
|
|
864
|
+
var a = Math.floor((r + t) / 2);
|
|
865
|
+
i[a] > n ? t = a : r = a + 1;
|
|
866
|
+
}
|
|
867
|
+
var o = r - 1;
|
|
868
|
+
return b.create(o, n - i[o]);
|
|
869
|
+
}, e.prototype.offsetAt = function(n) {
|
|
870
|
+
var i = this.getLineOffsets();
|
|
871
|
+
if (n.line >= i.length)
|
|
872
|
+
return this._content.length;
|
|
873
|
+
if (n.line < 0)
|
|
874
|
+
return 0;
|
|
875
|
+
var r = i[n.line], t = n.line + 1 < i.length ? i[n.line + 1] : this._content.length;
|
|
876
|
+
return Math.max(Math.min(r + n.character, t), r);
|
|
877
|
+
}, Object.defineProperty(e.prototype, "lineCount", {
|
|
878
|
+
get: function() {
|
|
879
|
+
return this.getLineOffsets().length;
|
|
880
|
+
},
|
|
881
|
+
enumerable: !1,
|
|
882
|
+
configurable: !0
|
|
883
|
+
}), e;
|
|
884
|
+
}(), s;
|
|
885
|
+
(function(e) {
|
|
886
|
+
var n = Object.prototype.toString;
|
|
887
|
+
function i(f) {
|
|
888
|
+
return typeof f < "u";
|
|
889
|
+
}
|
|
890
|
+
e.defined = i;
|
|
891
|
+
function r(f) {
|
|
892
|
+
return typeof f > "u";
|
|
893
|
+
}
|
|
894
|
+
e.undefined = r;
|
|
895
|
+
function t(f) {
|
|
896
|
+
return f === !0 || f === !1;
|
|
897
|
+
}
|
|
898
|
+
e.boolean = t;
|
|
899
|
+
function a(f) {
|
|
900
|
+
return n.call(f) === "[object String]";
|
|
901
|
+
}
|
|
902
|
+
e.string = a;
|
|
903
|
+
function o(f) {
|
|
904
|
+
return n.call(f) === "[object Number]";
|
|
905
|
+
}
|
|
906
|
+
e.number = o;
|
|
907
|
+
function u(f, y, N) {
|
|
908
|
+
return n.call(f) === "[object Number]" && y <= f && f <= N;
|
|
909
|
+
}
|
|
910
|
+
e.numberRange = u;
|
|
911
|
+
function g(f) {
|
|
912
|
+
return n.call(f) === "[object Number]" && -2147483648 <= f && f <= 2147483647;
|
|
913
|
+
}
|
|
914
|
+
e.integer = g;
|
|
915
|
+
function d(f) {
|
|
916
|
+
return n.call(f) === "[object Number]" && 0 <= f && f <= 2147483647;
|
|
917
|
+
}
|
|
918
|
+
e.uinteger = d;
|
|
919
|
+
function v(f) {
|
|
920
|
+
return n.call(f) === "[object Function]";
|
|
921
|
+
}
|
|
922
|
+
e.func = v;
|
|
923
|
+
function w(f) {
|
|
924
|
+
return f !== null && typeof f == "object";
|
|
925
|
+
}
|
|
926
|
+
e.objectLiteral = w;
|
|
927
|
+
function E(f, y) {
|
|
928
|
+
return Array.isArray(f) && f.every(y);
|
|
929
|
+
}
|
|
930
|
+
e.typedArray = E;
|
|
931
|
+
})(s || (s = {}));
|
|
932
|
+
var $e = class {
|
|
933
|
+
constructor(e, n, i) {
|
|
934
|
+
k(this, "_disposables", []);
|
|
935
|
+
k(this, "_listener", /* @__PURE__ */ Object.create(null));
|
|
936
|
+
this._languageId = e, this._worker = n;
|
|
937
|
+
const r = (a) => {
|
|
938
|
+
let o = a.getLanguageId();
|
|
939
|
+
if (o !== this._languageId)
|
|
940
|
+
return;
|
|
941
|
+
let u;
|
|
942
|
+
this._listener[a.uri.toString()] = a.onDidChangeContent(() => {
|
|
943
|
+
window.clearTimeout(u), u = window.setTimeout(() => this._doValidate(a.uri, o), 500);
|
|
944
|
+
}), this._doValidate(a.uri, o);
|
|
945
|
+
}, t = (a) => {
|
|
946
|
+
c.editor.setModelMarkers(a, this._languageId, []);
|
|
947
|
+
let o = a.uri.toString(), u = this._listener[o];
|
|
948
|
+
u && (u.dispose(), delete this._listener[o]);
|
|
949
|
+
};
|
|
950
|
+
this._disposables.push(c.editor.onDidCreateModel(r)), this._disposables.push(c.editor.onWillDisposeModel(t)), this._disposables.push(c.editor.onDidChangeModelLanguage((a) => {
|
|
951
|
+
t(a.model), r(a.model);
|
|
952
|
+
})), this._disposables.push(i((a) => {
|
|
953
|
+
c.editor.getModels().forEach((o) => {
|
|
954
|
+
o.getLanguageId() === this._languageId && (t(o), r(o));
|
|
955
|
+
});
|
|
956
|
+
})), this._disposables.push({
|
|
957
|
+
dispose: () => {
|
|
958
|
+
c.editor.getModels().forEach(t);
|
|
959
|
+
for (let a in this._listener)
|
|
960
|
+
this._listener[a].dispose();
|
|
961
|
+
}
|
|
962
|
+
}), c.editor.getModels().forEach(r);
|
|
963
|
+
}
|
|
964
|
+
dispose() {
|
|
965
|
+
this._disposables.forEach((e) => e && e.dispose()), this._disposables.length = 0;
|
|
966
|
+
}
|
|
967
|
+
_doValidate(e, n) {
|
|
968
|
+
this._worker(e).then((i) => i.doValidation(e.toString())).then((i) => {
|
|
969
|
+
const r = i.map((a) => Qe(e, a));
|
|
970
|
+
let t = c.editor.getModel(e);
|
|
971
|
+
t && t.getLanguageId() === n && c.editor.setModelMarkers(t, n, r);
|
|
972
|
+
}).then(void 0, (i) => {
|
|
973
|
+
console.error(i);
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
};
|
|
977
|
+
function qe(e) {
|
|
978
|
+
switch (e) {
|
|
979
|
+
case I.Error:
|
|
980
|
+
return c.MarkerSeverity.Error;
|
|
981
|
+
case I.Warning:
|
|
982
|
+
return c.MarkerSeverity.Warning;
|
|
983
|
+
case I.Information:
|
|
984
|
+
return c.MarkerSeverity.Info;
|
|
985
|
+
case I.Hint:
|
|
986
|
+
return c.MarkerSeverity.Hint;
|
|
987
|
+
default:
|
|
988
|
+
return c.MarkerSeverity.Info;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
function Qe(e, n) {
|
|
992
|
+
let i = typeof n.code == "number" ? String(n.code) : n.code;
|
|
993
|
+
return {
|
|
994
|
+
severity: qe(n.severity),
|
|
995
|
+
startLineNumber: n.range.start.line + 1,
|
|
996
|
+
startColumn: n.range.start.character + 1,
|
|
997
|
+
endLineNumber: n.range.end.line + 1,
|
|
998
|
+
endColumn: n.range.end.character + 1,
|
|
999
|
+
message: n.message,
|
|
1000
|
+
code: i,
|
|
1001
|
+
source: n.source
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
var Ge = class {
|
|
1005
|
+
constructor(e, n) {
|
|
1006
|
+
this._worker = e, this._triggerCharacters = n;
|
|
1007
|
+
}
|
|
1008
|
+
get triggerCharacters() {
|
|
1009
|
+
return this._triggerCharacters;
|
|
1010
|
+
}
|
|
1011
|
+
provideCompletionItems(e, n, i, r) {
|
|
1012
|
+
const t = e.uri;
|
|
1013
|
+
return this._worker(t).then((a) => a.doComplete(t.toString(), A(n))).then((a) => {
|
|
1014
|
+
if (!a)
|
|
1015
|
+
return;
|
|
1016
|
+
const o = e.getWordUntilPosition(n), u = new c.Range(n.lineNumber, o.startColumn, n.lineNumber, o.endColumn), g = a.items.map((d) => {
|
|
1017
|
+
const v = {
|
|
1018
|
+
label: d.label,
|
|
1019
|
+
insertText: d.insertText || d.label,
|
|
1020
|
+
sortText: d.sortText,
|
|
1021
|
+
filterText: d.filterText,
|
|
1022
|
+
documentation: d.documentation,
|
|
1023
|
+
detail: d.detail,
|
|
1024
|
+
command: Ze(d.command),
|
|
1025
|
+
range: u,
|
|
1026
|
+
kind: Ye(d.kind)
|
|
1027
|
+
};
|
|
1028
|
+
return d.textEdit && (Je(d.textEdit) ? v.range = {
|
|
1029
|
+
insert: _(d.textEdit.insert),
|
|
1030
|
+
replace: _(d.textEdit.replace)
|
|
1031
|
+
} : v.range = _(d.textEdit.range), v.insertText = d.textEdit.newText), d.additionalTextEdits && (v.additionalTextEdits = d.additionalTextEdits.map(j)), d.insertTextFormat === G.Snippet && (v.insertTextRules = c.languages.CompletionItemInsertTextRule.InsertAsSnippet), v;
|
|
1032
|
+
});
|
|
1033
|
+
return {
|
|
1034
|
+
isIncomplete: a.isIncomplete,
|
|
1035
|
+
suggestions: g
|
|
1036
|
+
};
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
function A(e) {
|
|
1041
|
+
if (e)
|
|
1042
|
+
return { character: e.column - 1, line: e.lineNumber - 1 };
|
|
1043
|
+
}
|
|
1044
|
+
function De(e) {
|
|
1045
|
+
if (e)
|
|
1046
|
+
return {
|
|
1047
|
+
start: {
|
|
1048
|
+
line: e.startLineNumber - 1,
|
|
1049
|
+
character: e.startColumn - 1
|
|
1050
|
+
},
|
|
1051
|
+
end: { line: e.endLineNumber - 1, character: e.endColumn - 1 }
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
function _(e) {
|
|
1055
|
+
if (e)
|
|
1056
|
+
return new c.Range(e.start.line + 1, e.start.character + 1, e.end.line + 1, e.end.character + 1);
|
|
1057
|
+
}
|
|
1058
|
+
function Je(e) {
|
|
1059
|
+
return typeof e.insert < "u" && typeof e.replace < "u";
|
|
1060
|
+
}
|
|
1061
|
+
function Ye(e) {
|
|
1062
|
+
const n = c.languages.CompletionItemKind;
|
|
1063
|
+
switch (e) {
|
|
1064
|
+
case l.Text:
|
|
1065
|
+
return n.Text;
|
|
1066
|
+
case l.Method:
|
|
1067
|
+
return n.Method;
|
|
1068
|
+
case l.Function:
|
|
1069
|
+
return n.Function;
|
|
1070
|
+
case l.Constructor:
|
|
1071
|
+
return n.Constructor;
|
|
1072
|
+
case l.Field:
|
|
1073
|
+
return n.Field;
|
|
1074
|
+
case l.Variable:
|
|
1075
|
+
return n.Variable;
|
|
1076
|
+
case l.Class:
|
|
1077
|
+
return n.Class;
|
|
1078
|
+
case l.Interface:
|
|
1079
|
+
return n.Interface;
|
|
1080
|
+
case l.Module:
|
|
1081
|
+
return n.Module;
|
|
1082
|
+
case l.Property:
|
|
1083
|
+
return n.Property;
|
|
1084
|
+
case l.Unit:
|
|
1085
|
+
return n.Unit;
|
|
1086
|
+
case l.Value:
|
|
1087
|
+
return n.Value;
|
|
1088
|
+
case l.Enum:
|
|
1089
|
+
return n.Enum;
|
|
1090
|
+
case l.Keyword:
|
|
1091
|
+
return n.Keyword;
|
|
1092
|
+
case l.Snippet:
|
|
1093
|
+
return n.Snippet;
|
|
1094
|
+
case l.Color:
|
|
1095
|
+
return n.Color;
|
|
1096
|
+
case l.File:
|
|
1097
|
+
return n.File;
|
|
1098
|
+
case l.Reference:
|
|
1099
|
+
return n.Reference;
|
|
1100
|
+
}
|
|
1101
|
+
return n.Property;
|
|
1102
|
+
}
|
|
1103
|
+
function j(e) {
|
|
1104
|
+
if (e)
|
|
1105
|
+
return {
|
|
1106
|
+
range: _(e.range),
|
|
1107
|
+
text: e.newText
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
function Ze(e) {
|
|
1111
|
+
return e && e.command === "editor.action.triggerSuggest" ? { id: e.command, title: e.title, arguments: e.arguments } : void 0;
|
|
1112
|
+
}
|
|
1113
|
+
var Ke = class {
|
|
1114
|
+
constructor(e) {
|
|
1115
|
+
this._worker = e;
|
|
1116
|
+
}
|
|
1117
|
+
provideHover(e, n, i) {
|
|
1118
|
+
let r = e.uri;
|
|
1119
|
+
return this._worker(r).then((t) => t.doHover(r.toString(), A(n))).then((t) => {
|
|
1120
|
+
if (t)
|
|
1121
|
+
return {
|
|
1122
|
+
range: _(t.range),
|
|
1123
|
+
contents: tt(t.contents)
|
|
1124
|
+
};
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
function et(e) {
|
|
1129
|
+
return e && typeof e == "object" && typeof e.kind == "string";
|
|
1130
|
+
}
|
|
1131
|
+
function Re(e) {
|
|
1132
|
+
return typeof e == "string" ? {
|
|
1133
|
+
value: e
|
|
1134
|
+
} : et(e) ? e.kind === "plaintext" ? {
|
|
1135
|
+
value: e.value.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&")
|
|
1136
|
+
} : {
|
|
1137
|
+
value: e.value
|
|
1138
|
+
} : { value: "```" + e.language + `
|
|
1139
|
+
` + e.value + "\n```\n" };
|
|
1140
|
+
}
|
|
1141
|
+
function tt(e) {
|
|
1142
|
+
if (e)
|
|
1143
|
+
return Array.isArray(e) ? e.map(Re) : [Re(e)];
|
|
1144
|
+
}
|
|
1145
|
+
var rt = class {
|
|
1146
|
+
constructor(e) {
|
|
1147
|
+
this._worker = e;
|
|
1148
|
+
}
|
|
1149
|
+
provideDocumentHighlights(e, n, i) {
|
|
1150
|
+
const r = e.uri;
|
|
1151
|
+
return this._worker(r).then((t) => t.findDocumentHighlights(r.toString(), A(n))).then((t) => {
|
|
1152
|
+
if (t)
|
|
1153
|
+
return t.map((a) => ({
|
|
1154
|
+
range: _(a.range),
|
|
1155
|
+
kind: nt(a.kind)
|
|
1156
|
+
}));
|
|
1157
|
+
});
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
1160
|
+
function nt(e) {
|
|
1161
|
+
switch (e) {
|
|
1162
|
+
case D.Read:
|
|
1163
|
+
return c.languages.DocumentHighlightKind.Read;
|
|
1164
|
+
case D.Write:
|
|
1165
|
+
return c.languages.DocumentHighlightKind.Write;
|
|
1166
|
+
case D.Text:
|
|
1167
|
+
return c.languages.DocumentHighlightKind.Text;
|
|
1168
|
+
}
|
|
1169
|
+
return c.languages.DocumentHighlightKind.Text;
|
|
1170
|
+
}
|
|
1171
|
+
var it = class {
|
|
1172
|
+
constructor(e) {
|
|
1173
|
+
this._worker = e;
|
|
1174
|
+
}
|
|
1175
|
+
provideDefinition(e, n, i) {
|
|
1176
|
+
const r = e.uri;
|
|
1177
|
+
return this._worker(r).then((t) => t.findDefinition(r.toString(), A(n))).then((t) => {
|
|
1178
|
+
if (t)
|
|
1179
|
+
return [Me(t)];
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
function Me(e) {
|
|
1184
|
+
return {
|
|
1185
|
+
uri: c.Uri.parse(e.uri),
|
|
1186
|
+
range: _(e.range)
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
var at = class {
|
|
1190
|
+
constructor(e) {
|
|
1191
|
+
this._worker = e;
|
|
1192
|
+
}
|
|
1193
|
+
provideReferences(e, n, i, r) {
|
|
1194
|
+
const t = e.uri;
|
|
1195
|
+
return this._worker(t).then((a) => a.findReferences(t.toString(), A(n))).then((a) => {
|
|
1196
|
+
if (a)
|
|
1197
|
+
return a.map(Me);
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
}, ot = class {
|
|
1201
|
+
constructor(e) {
|
|
1202
|
+
this._worker = e;
|
|
1203
|
+
}
|
|
1204
|
+
provideRenameEdits(e, n, i, r) {
|
|
1205
|
+
const t = e.uri;
|
|
1206
|
+
return this._worker(t).then((a) => a.doRename(t.toString(), A(n), i)).then((a) => st(a));
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
function st(e) {
|
|
1210
|
+
if (!e || !e.changes)
|
|
1211
|
+
return;
|
|
1212
|
+
let n = [];
|
|
1213
|
+
for (let i in e.changes) {
|
|
1214
|
+
const r = c.Uri.parse(i);
|
|
1215
|
+
for (let t of e.changes[i])
|
|
1216
|
+
n.push({
|
|
1217
|
+
resource: r,
|
|
1218
|
+
versionId: void 0,
|
|
1219
|
+
textEdit: {
|
|
1220
|
+
range: _(t.range),
|
|
1221
|
+
text: t.newText
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
return {
|
|
1226
|
+
edits: n
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
var ut = class {
|
|
1230
|
+
constructor(e) {
|
|
1231
|
+
this._worker = e;
|
|
1232
|
+
}
|
|
1233
|
+
provideDocumentSymbols(e, n) {
|
|
1234
|
+
const i = e.uri;
|
|
1235
|
+
return this._worker(i).then((r) => r.findDocumentSymbols(i.toString())).then((r) => {
|
|
1236
|
+
if (r)
|
|
1237
|
+
return r.map((t) => ({
|
|
1238
|
+
name: t.name,
|
|
1239
|
+
detail: "",
|
|
1240
|
+
containerName: t.containerName,
|
|
1241
|
+
kind: ct(t.kind),
|
|
1242
|
+
range: _(t.location.range),
|
|
1243
|
+
selectionRange: _(t.location.range),
|
|
1244
|
+
tags: []
|
|
1245
|
+
}));
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
function ct(e) {
|
|
1250
|
+
let n = c.languages.SymbolKind;
|
|
1251
|
+
switch (e) {
|
|
1252
|
+
case h.File:
|
|
1253
|
+
return n.Array;
|
|
1254
|
+
case h.Module:
|
|
1255
|
+
return n.Module;
|
|
1256
|
+
case h.Namespace:
|
|
1257
|
+
return n.Namespace;
|
|
1258
|
+
case h.Package:
|
|
1259
|
+
return n.Package;
|
|
1260
|
+
case h.Class:
|
|
1261
|
+
return n.Class;
|
|
1262
|
+
case h.Method:
|
|
1263
|
+
return n.Method;
|
|
1264
|
+
case h.Property:
|
|
1265
|
+
return n.Property;
|
|
1266
|
+
case h.Field:
|
|
1267
|
+
return n.Field;
|
|
1268
|
+
case h.Constructor:
|
|
1269
|
+
return n.Constructor;
|
|
1270
|
+
case h.Enum:
|
|
1271
|
+
return n.Enum;
|
|
1272
|
+
case h.Interface:
|
|
1273
|
+
return n.Interface;
|
|
1274
|
+
case h.Function:
|
|
1275
|
+
return n.Function;
|
|
1276
|
+
case h.Variable:
|
|
1277
|
+
return n.Variable;
|
|
1278
|
+
case h.Constant:
|
|
1279
|
+
return n.Constant;
|
|
1280
|
+
case h.String:
|
|
1281
|
+
return n.String;
|
|
1282
|
+
case h.Number:
|
|
1283
|
+
return n.Number;
|
|
1284
|
+
case h.Boolean:
|
|
1285
|
+
return n.Boolean;
|
|
1286
|
+
case h.Array:
|
|
1287
|
+
return n.Array;
|
|
1288
|
+
}
|
|
1289
|
+
return n.Function;
|
|
1290
|
+
}
|
|
1291
|
+
var _t = class {
|
|
1292
|
+
constructor(e) {
|
|
1293
|
+
this._worker = e;
|
|
1294
|
+
}
|
|
1295
|
+
provideLinks(e, n) {
|
|
1296
|
+
const i = e.uri;
|
|
1297
|
+
return this._worker(i).then((r) => r.findDocumentLinks(i.toString())).then((r) => {
|
|
1298
|
+
if (r)
|
|
1299
|
+
return {
|
|
1300
|
+
links: r.map((t) => ({
|
|
1301
|
+
range: _(t.range),
|
|
1302
|
+
url: t.target
|
|
1303
|
+
}))
|
|
1304
|
+
};
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
}, dt = class {
|
|
1308
|
+
constructor(e) {
|
|
1309
|
+
this._worker = e;
|
|
1310
|
+
}
|
|
1311
|
+
provideDocumentFormattingEdits(e, n, i) {
|
|
1312
|
+
const r = e.uri;
|
|
1313
|
+
return this._worker(r).then((t) => t.format(r.toString(), null, Te(n)).then((a) => {
|
|
1314
|
+
if (!(!a || a.length === 0))
|
|
1315
|
+
return a.map(j);
|
|
1316
|
+
}));
|
|
1317
|
+
}
|
|
1318
|
+
}, ft = class {
|
|
1319
|
+
constructor(e) {
|
|
1320
|
+
k(this, "canFormatMultipleRanges", !1);
|
|
1321
|
+
this._worker = e;
|
|
1322
|
+
}
|
|
1323
|
+
provideDocumentRangeFormattingEdits(e, n, i, r) {
|
|
1324
|
+
const t = e.uri;
|
|
1325
|
+
return this._worker(t).then((a) => a.format(t.toString(), De(n), Te(i)).then((o) => {
|
|
1326
|
+
if (!(!o || o.length === 0))
|
|
1327
|
+
return o.map(j);
|
|
1328
|
+
}));
|
|
1329
|
+
}
|
|
1330
|
+
};
|
|
1331
|
+
function Te(e) {
|
|
1332
|
+
return {
|
|
1333
|
+
tabSize: e.tabSize,
|
|
1334
|
+
insertSpaces: e.insertSpaces
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
var gt = class {
|
|
1338
|
+
constructor(e) {
|
|
1339
|
+
this._worker = e;
|
|
1340
|
+
}
|
|
1341
|
+
provideDocumentColors(e, n) {
|
|
1342
|
+
const i = e.uri;
|
|
1343
|
+
return this._worker(i).then((r) => r.findDocumentColors(i.toString())).then((r) => {
|
|
1344
|
+
if (r)
|
|
1345
|
+
return r.map((t) => ({
|
|
1346
|
+
color: t.color,
|
|
1347
|
+
range: _(t.range)
|
|
1348
|
+
}));
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
provideColorPresentations(e, n, i) {
|
|
1352
|
+
const r = e.uri;
|
|
1353
|
+
return this._worker(r).then((t) => t.getColorPresentations(r.toString(), n.color, De(n.range))).then((t) => {
|
|
1354
|
+
if (t)
|
|
1355
|
+
return t.map((a) => {
|
|
1356
|
+
let o = {
|
|
1357
|
+
label: a.label
|
|
1358
|
+
};
|
|
1359
|
+
return a.textEdit && (o.textEdit = j(a.textEdit)), a.additionalTextEdits && (o.additionalTextEdits = a.additionalTextEdits.map(j)), o;
|
|
1360
|
+
});
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
}, lt = class {
|
|
1364
|
+
constructor(e) {
|
|
1365
|
+
this._worker = e;
|
|
1366
|
+
}
|
|
1367
|
+
provideFoldingRanges(e, n, i) {
|
|
1368
|
+
const r = e.uri;
|
|
1369
|
+
return this._worker(r).then((t) => t.getFoldingRanges(r.toString(), n)).then((t) => {
|
|
1370
|
+
if (t)
|
|
1371
|
+
return t.map((a) => {
|
|
1372
|
+
const o = {
|
|
1373
|
+
start: a.startLine + 1,
|
|
1374
|
+
end: a.endLine + 1
|
|
1375
|
+
};
|
|
1376
|
+
return typeof a.kind < "u" && (o.kind = ht(a.kind)), o;
|
|
1377
|
+
});
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
};
|
|
1381
|
+
function ht(e) {
|
|
1382
|
+
switch (e) {
|
|
1383
|
+
case P.Comment:
|
|
1384
|
+
return c.languages.FoldingRangeKind.Comment;
|
|
1385
|
+
case P.Imports:
|
|
1386
|
+
return c.languages.FoldingRangeKind.Imports;
|
|
1387
|
+
case P.Region:
|
|
1388
|
+
return c.languages.FoldingRangeKind.Region;
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
var vt = class {
|
|
1392
|
+
constructor(e) {
|
|
1393
|
+
this._worker = e;
|
|
1394
|
+
}
|
|
1395
|
+
provideSelectionRanges(e, n, i) {
|
|
1396
|
+
const r = e.uri;
|
|
1397
|
+
return this._worker(r).then((t) => t.getSelectionRanges(r.toString(), n.map(A))).then((t) => {
|
|
1398
|
+
if (t)
|
|
1399
|
+
return t.map((a) => {
|
|
1400
|
+
const o = [];
|
|
1401
|
+
for (; a; )
|
|
1402
|
+
o.push({ range: _(a.range) }), a = a.parent;
|
|
1403
|
+
return o;
|
|
1404
|
+
});
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
};
|
|
1408
|
+
function wt(e) {
|
|
1409
|
+
const n = [], i = [], r = new Xe(e);
|
|
1410
|
+
n.push(r);
|
|
1411
|
+
const t = (...o) => r.getLanguageServiceWorker(...o);
|
|
1412
|
+
function a() {
|
|
1413
|
+
const { languageId: o, modeConfiguration: u } = e;
|
|
1414
|
+
Se(i), u.completionItems && i.push(c.languages.registerCompletionItemProvider(o, new Ge(t, ["/", "-", ":"]))), u.hovers && i.push(c.languages.registerHoverProvider(o, new Ke(t))), u.documentHighlights && i.push(c.languages.registerDocumentHighlightProvider(o, new rt(t))), u.definitions && i.push(c.languages.registerDefinitionProvider(o, new it(t))), u.references && i.push(c.languages.registerReferenceProvider(o, new at(t))), u.documentSymbols && i.push(c.languages.registerDocumentSymbolProvider(o, new ut(t))), u.rename && i.push(c.languages.registerRenameProvider(o, new ot(t))), u.colors && i.push(c.languages.registerColorProvider(o, new gt(t))), u.foldingRanges && i.push(c.languages.registerFoldingRangeProvider(o, new lt(t))), u.diagnostics && i.push(new $e(o, t, e.onDidChange)), u.selectionRanges && i.push(c.languages.registerSelectionRangeProvider(o, new vt(t))), u.documentFormattingEdits && i.push(c.languages.registerDocumentFormattingEditProvider(o, new dt(t))), u.documentRangeFormattingEdits && i.push(c.languages.registerDocumentRangeFormattingEditProvider(o, new ft(t)));
|
|
1415
|
+
}
|
|
1416
|
+
return a(), n.push(Pe(i)), Pe(n);
|
|
1417
|
+
}
|
|
1418
|
+
function Pe(e) {
|
|
1419
|
+
return { dispose: () => Se(e) };
|
|
1420
|
+
}
|
|
1421
|
+
function Se(e) {
|
|
1422
|
+
for (; e.length; )
|
|
1423
|
+
e.pop().dispose();
|
|
1424
|
+
}
|
|
1425
|
+
export {
|
|
1426
|
+
Ge as CompletionAdapter,
|
|
1427
|
+
it as DefinitionAdapter,
|
|
1428
|
+
$e as DiagnosticsAdapter,
|
|
1429
|
+
gt as DocumentColorAdapter,
|
|
1430
|
+
dt as DocumentFormattingEditProvider,
|
|
1431
|
+
rt as DocumentHighlightAdapter,
|
|
1432
|
+
_t as DocumentLinkAdapter,
|
|
1433
|
+
ft as DocumentRangeFormattingEditProvider,
|
|
1434
|
+
ut as DocumentSymbolAdapter,
|
|
1435
|
+
lt as FoldingRangeAdapter,
|
|
1436
|
+
Ke as HoverAdapter,
|
|
1437
|
+
at as ReferenceAdapter,
|
|
1438
|
+
ot as RenameAdapter,
|
|
1439
|
+
vt as SelectionRangeAdapter,
|
|
1440
|
+
Xe as WorkerManager,
|
|
1441
|
+
A as fromPosition,
|
|
1442
|
+
De as fromRange,
|
|
1443
|
+
wt as setupMode,
|
|
1444
|
+
_ as toRange,
|
|
1445
|
+
j as toTextEdit
|
|
1446
|
+
};
|