@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,888 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/web-components';
|
|
3
|
+
import './index.js';
|
|
4
|
+
import '../icon/index.js';
|
|
5
|
+
import '../input/index.js';
|
|
6
|
+
|
|
7
|
+
const meta: Meta = {
|
|
8
|
+
title: 'Data Entry/ColorPicker',
|
|
9
|
+
component: 'nr-color-picker',
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: 'centered',
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component: `
|
|
15
|
+
A comprehensive color picker component with dropdown functionality including:
|
|
16
|
+
- Hex color picker with visual gradient selector
|
|
17
|
+
- Preset color swatches for quick selection
|
|
18
|
+
- Text input with validation and copy functionality
|
|
19
|
+
- Smart dropdown positioning with viewport detection
|
|
20
|
+
- Accessibility support with ARIA attributes
|
|
21
|
+
- Multiple size variants and customization options
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
- **Visual Color Picker**: Interactive gradient-based color selection
|
|
25
|
+
- **Preset Colors**: Quick selection from predefined color swatches
|
|
26
|
+
- **Color Input**: Manual color entry with validation and copy button
|
|
27
|
+
- **Smart Positioning**: Automatic dropdown placement based on viewport
|
|
28
|
+
- **Validation**: Real-time color format validation
|
|
29
|
+
- **Accessibility**: Full ARIA support and keyboard navigation
|
|
30
|
+
- **Size Variants**: Small, default, and large sizes
|
|
31
|
+
- **Customizable**: Support for labels, helper text, and various formats
|
|
32
|
+
|
|
33
|
+
## CSS Custom Properties
|
|
34
|
+
- \`--colorpicker-trigger-size\`: Size of the color trigger box
|
|
35
|
+
- \`--colorpicker-dropdown-width\`: Width of the dropdown panel
|
|
36
|
+
- \`--colorpicker-dropdown-background\`: Background color of dropdown
|
|
37
|
+
- \`--colorpicker-dropdown-shadow\`: Shadow of dropdown panel
|
|
38
|
+
- \`--colorpicker-dropdown-border-radius\`: Border radius of dropdown
|
|
39
|
+
- \`--color-holder-size\`: Size of individual color swatches
|
|
40
|
+
- \`--color-holder-border\`: Border style for color boxes
|
|
41
|
+
- \`--default-color-sets-gap\`: Gap between preset color swatches
|
|
42
|
+
|
|
43
|
+
## Events
|
|
44
|
+
- \`nr-color-change\`: Fired when color value changes (with validation info)
|
|
45
|
+
- \`nr-colorpicker-open\`: Fired when dropdown opens
|
|
46
|
+
- \`nr-colorpicker-close\`: Fired when dropdown closes
|
|
47
|
+
- \`color-changed\`: Legacy event for backwards compatibility
|
|
48
|
+
`
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
tags: ['autodocs'],
|
|
53
|
+
argTypes: {
|
|
54
|
+
color: {
|
|
55
|
+
control: 'color',
|
|
56
|
+
description: 'Current color value (hex, rgb, rgba, hsl, hsla)',
|
|
57
|
+
},
|
|
58
|
+
disabled: {
|
|
59
|
+
control: 'boolean',
|
|
60
|
+
description: 'Disable the color picker',
|
|
61
|
+
},
|
|
62
|
+
size: {
|
|
63
|
+
control: 'select',
|
|
64
|
+
options: ['small', 'default', 'large'],
|
|
65
|
+
description: 'Size variant of the color picker',
|
|
66
|
+
},
|
|
67
|
+
label: {
|
|
68
|
+
control: 'text',
|
|
69
|
+
description: 'Label text displayed above the color picker',
|
|
70
|
+
},
|
|
71
|
+
helperText: {
|
|
72
|
+
control: 'text',
|
|
73
|
+
description: 'Helper text displayed below the color picker',
|
|
74
|
+
},
|
|
75
|
+
showInput: {
|
|
76
|
+
control: 'boolean',
|
|
77
|
+
description: 'Show/hide the color input field',
|
|
78
|
+
},
|
|
79
|
+
showCopyButton: {
|
|
80
|
+
control: 'boolean',
|
|
81
|
+
description: 'Show/hide the copy button on input',
|
|
82
|
+
},
|
|
83
|
+
closeOnSelect: {
|
|
84
|
+
control: 'boolean',
|
|
85
|
+
description: 'Close dropdown when a color is selected',
|
|
86
|
+
},
|
|
87
|
+
closeOnOutsideClick: {
|
|
88
|
+
control: 'boolean',
|
|
89
|
+
description: 'Close dropdown when clicking outside',
|
|
90
|
+
},
|
|
91
|
+
closeOnEscape: {
|
|
92
|
+
control: 'boolean',
|
|
93
|
+
description: 'Close dropdown when pressing Escape key',
|
|
94
|
+
},
|
|
95
|
+
inputPlaceholder: {
|
|
96
|
+
control: 'text',
|
|
97
|
+
description: 'Placeholder text for color input field',
|
|
98
|
+
},
|
|
99
|
+
placement: {
|
|
100
|
+
control: 'select',
|
|
101
|
+
options: ['top', 'bottom', 'auto'],
|
|
102
|
+
description: 'Dropdown placement relative to trigger',
|
|
103
|
+
},
|
|
104
|
+
trigger: {
|
|
105
|
+
control: 'select',
|
|
106
|
+
options: ['click', 'hover', 'manual'],
|
|
107
|
+
description: 'How the dropdown is triggered',
|
|
108
|
+
},
|
|
109
|
+
format: {
|
|
110
|
+
control: 'select',
|
|
111
|
+
options: ['hex', 'rgb', 'rgba', 'hsl', 'hsla'],
|
|
112
|
+
description: 'Color format for display and output',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export default meta;
|
|
118
|
+
type Story = StoryObj;
|
|
119
|
+
|
|
120
|
+
// Default preset colors
|
|
121
|
+
const defaultColors = [
|
|
122
|
+
'#3498db', '#e74c3c', '#2ecc71', '#f39c12',
|
|
123
|
+
'#9b59b6', '#1abc9c', '#34495e', '#95a5a6',
|
|
124
|
+
'#e67e22', '#16a085', '#2980b9', '#8e44ad',
|
|
125
|
+
'#27ae60', '#c0392b', '#d35400', '#7f8c8d'
|
|
126
|
+
];
|
|
127
|
+
|
|
128
|
+
// Material Design colors
|
|
129
|
+
const materialColors = [
|
|
130
|
+
'#f44336', '#e91e63', '#9c27b0', '#673ab7',
|
|
131
|
+
'#3f51b5', '#2196f3', '#03a9f4', '#00bcd4',
|
|
132
|
+
'#009688', '#4caf50', '#8bc34a', '#cddc39',
|
|
133
|
+
'#ffeb3b', '#ffc107', '#ff9800', '#ff5722'
|
|
134
|
+
];
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Default color picker with basic functionality
|
|
138
|
+
*/
|
|
139
|
+
export const Default: Story = {
|
|
140
|
+
args: {
|
|
141
|
+
color: '#3498db',
|
|
142
|
+
},
|
|
143
|
+
render: (args) => html`
|
|
144
|
+
<nr-color-picker
|
|
145
|
+
color="${args.color}"
|
|
146
|
+
?disabled="${args.disabled}"
|
|
147
|
+
size="${args.size || 'default'}"
|
|
148
|
+
></nr-color-picker>
|
|
149
|
+
`,
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Color picker with preset color swatches for quick selection
|
|
154
|
+
*/
|
|
155
|
+
export const WithPresetColors: Story = {
|
|
156
|
+
args: {
|
|
157
|
+
color: '#e74c3c',
|
|
158
|
+
},
|
|
159
|
+
render: (args) => html`
|
|
160
|
+
<nr-color-picker
|
|
161
|
+
color="${args.color}"
|
|
162
|
+
.defaultColorSets="${defaultColors}"
|
|
163
|
+
></nr-color-picker>
|
|
164
|
+
`,
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Color picker with Material Design color palette
|
|
169
|
+
*/
|
|
170
|
+
export const MaterialDesignPalette: Story = {
|
|
171
|
+
args: {
|
|
172
|
+
color: '#2196f3',
|
|
173
|
+
},
|
|
174
|
+
render: (args) => html`
|
|
175
|
+
<nr-color-picker
|
|
176
|
+
color="${args.color}"
|
|
177
|
+
.defaultColorSets="${materialColors}"
|
|
178
|
+
></nr-color-picker>
|
|
179
|
+
`,
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Color picker with label and helper text
|
|
184
|
+
*/
|
|
185
|
+
export const WithLabelAndHelper: Story = {
|
|
186
|
+
args: {
|
|
187
|
+
color: '#9b59b6',
|
|
188
|
+
label: 'Brand Color',
|
|
189
|
+
helperText: 'Choose your primary brand color',
|
|
190
|
+
},
|
|
191
|
+
render: (args) => html`
|
|
192
|
+
<nr-color-picker
|
|
193
|
+
color="${args.color}"
|
|
194
|
+
label="${args.label}"
|
|
195
|
+
helper-text="${args.helperText}"
|
|
196
|
+
.defaultColorSets="${defaultColors}"
|
|
197
|
+
></nr-color-picker>
|
|
198
|
+
`,
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Small size variant
|
|
203
|
+
*/
|
|
204
|
+
export const SmallSize: Story = {
|
|
205
|
+
args: {
|
|
206
|
+
color: '#2ecc71',
|
|
207
|
+
},
|
|
208
|
+
render: (args) => html`
|
|
209
|
+
<div style="display: flex; gap: 16px; align-items: center;">
|
|
210
|
+
<nr-color-picker
|
|
211
|
+
color="${args.color}"
|
|
212
|
+
size="small"
|
|
213
|
+
.defaultColorSets="${defaultColors}"
|
|
214
|
+
></nr-color-picker>
|
|
215
|
+
<span>Small size variant</span>
|
|
216
|
+
</div>
|
|
217
|
+
`,
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Large size variant
|
|
222
|
+
*/
|
|
223
|
+
export const LargeSize: Story = {
|
|
224
|
+
args: {
|
|
225
|
+
color: '#f39c12',
|
|
226
|
+
},
|
|
227
|
+
render: (args) => html`
|
|
228
|
+
<div style="display: flex; gap: 16px; align-items: center;">
|
|
229
|
+
<nr-color-picker
|
|
230
|
+
color="${args.color}"
|
|
231
|
+
size="large"
|
|
232
|
+
.defaultColorSets="${defaultColors}"
|
|
233
|
+
></nr-color-picker>
|
|
234
|
+
<span>Large size variant</span>
|
|
235
|
+
</div>
|
|
236
|
+
`,
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* All size variants comparison
|
|
241
|
+
*/
|
|
242
|
+
export const SizeComparison: Story = {
|
|
243
|
+
render: () => html`
|
|
244
|
+
<div style="display: flex; gap: 24px; align-items: center;">
|
|
245
|
+
<div style="text-align: center;">
|
|
246
|
+
<nr-color-picker
|
|
247
|
+
color="#3498db"
|
|
248
|
+
size="small"
|
|
249
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
250
|
+
></nr-color-picker>
|
|
251
|
+
<div style="margin-top: 8px; font-size: 12px;">Small</div>
|
|
252
|
+
</div>
|
|
253
|
+
<div style="text-align: center;">
|
|
254
|
+
<nr-color-picker
|
|
255
|
+
color="#e74c3c"
|
|
256
|
+
size="default"
|
|
257
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
258
|
+
></nr-color-picker>
|
|
259
|
+
<div style="margin-top: 8px; font-size: 12px;">Default</div>
|
|
260
|
+
</div>
|
|
261
|
+
<div style="text-align: center;">
|
|
262
|
+
<nr-color-picker
|
|
263
|
+
color="#2ecc71"
|
|
264
|
+
size="large"
|
|
265
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
266
|
+
></nr-color-picker>
|
|
267
|
+
<div style="margin-top: 8px; font-size: 12px;">Large</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
`,
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Disabled state
|
|
275
|
+
*/
|
|
276
|
+
export const Disabled: Story = {
|
|
277
|
+
args: {
|
|
278
|
+
color: '#95a5a6',
|
|
279
|
+
disabled: true,
|
|
280
|
+
},
|
|
281
|
+
render: (args) => html`
|
|
282
|
+
<nr-color-picker
|
|
283
|
+
color="${args.color}"
|
|
284
|
+
?disabled="${args.disabled}"
|
|
285
|
+
label="Disabled Color Picker"
|
|
286
|
+
helper-text="This color picker is disabled"
|
|
287
|
+
.defaultColorSets="${defaultColors}"
|
|
288
|
+
></nr-color-picker>
|
|
289
|
+
`,
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Without color input field
|
|
294
|
+
*/
|
|
295
|
+
export const WithoutInput: Story = {
|
|
296
|
+
args: {
|
|
297
|
+
color: '#1abc9c',
|
|
298
|
+
},
|
|
299
|
+
render: (args) => html`
|
|
300
|
+
<nr-color-picker
|
|
301
|
+
color="${args.color}"
|
|
302
|
+
?show-input="${false}"
|
|
303
|
+
.defaultColorSets="${defaultColors}"
|
|
304
|
+
></nr-color-picker>
|
|
305
|
+
`,
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Without copy button on input
|
|
310
|
+
*/
|
|
311
|
+
export const WithoutCopyButton: Story = {
|
|
312
|
+
args: {
|
|
313
|
+
color: '#e67e22',
|
|
314
|
+
},
|
|
315
|
+
render: (args) => html`
|
|
316
|
+
<nr-color-picker
|
|
317
|
+
color="${args.color}"
|
|
318
|
+
?show-copy-button="${false}"
|
|
319
|
+
.defaultColorSets="${defaultColors}"
|
|
320
|
+
></nr-color-picker>
|
|
321
|
+
`,
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Close dropdown on color selection
|
|
326
|
+
*/
|
|
327
|
+
export const CloseOnSelect: Story = {
|
|
328
|
+
args: {
|
|
329
|
+
color: '#8e44ad',
|
|
330
|
+
},
|
|
331
|
+
render: (args) => html`
|
|
332
|
+
<nr-color-picker
|
|
333
|
+
color="${args.color}"
|
|
334
|
+
close-on-select
|
|
335
|
+
label="Select a Color"
|
|
336
|
+
helper-text="Dropdown closes automatically after selection"
|
|
337
|
+
.defaultColorSets="${defaultColors}"
|
|
338
|
+
></nr-color-picker>
|
|
339
|
+
`,
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* With custom input placeholder
|
|
344
|
+
*/
|
|
345
|
+
export const CustomPlaceholder: Story = {
|
|
346
|
+
args: {
|
|
347
|
+
color: '#27ae60',
|
|
348
|
+
},
|
|
349
|
+
render: (args) => html`
|
|
350
|
+
<nr-color-picker
|
|
351
|
+
color="${args.color}"
|
|
352
|
+
input-placeholder="Enter hex color code..."
|
|
353
|
+
.defaultColorSets="${defaultColors}"
|
|
354
|
+
></nr-color-picker>
|
|
355
|
+
`,
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Multiple color pickers in a form
|
|
360
|
+
*/
|
|
361
|
+
export const FormExample: Story = {
|
|
362
|
+
render: () => html`
|
|
363
|
+
<div style="display: flex; flex-direction: column; gap: 24px; min-width: 300px;">
|
|
364
|
+
<div>
|
|
365
|
+
<nr-color-picker
|
|
366
|
+
color="#3498db"
|
|
367
|
+
label="Primary Color"
|
|
368
|
+
helper-text="Main brand color for buttons and links"
|
|
369
|
+
.defaultColorSets="${defaultColors}"
|
|
370
|
+
></nr-color-picker>
|
|
371
|
+
</div>
|
|
372
|
+
<div>
|
|
373
|
+
<nr-color-picker
|
|
374
|
+
color="#2ecc71"
|
|
375
|
+
label="Success Color"
|
|
376
|
+
helper-text="Color for success messages and confirmations"
|
|
377
|
+
.defaultColorSets="${defaultColors}"
|
|
378
|
+
></nr-color-picker>
|
|
379
|
+
</div>
|
|
380
|
+
<div>
|
|
381
|
+
<nr-color-picker
|
|
382
|
+
color="#e74c3c"
|
|
383
|
+
label="Error Color"
|
|
384
|
+
helper-text="Color for error states and warnings"
|
|
385
|
+
.defaultColorSets="${defaultColors}"
|
|
386
|
+
></nr-color-picker>
|
|
387
|
+
</div>
|
|
388
|
+
<div>
|
|
389
|
+
<nr-color-picker
|
|
390
|
+
color="#f39c12"
|
|
391
|
+
label="Warning Color"
|
|
392
|
+
helper-text="Color for warning messages"
|
|
393
|
+
.defaultColorSets="${defaultColors}"
|
|
394
|
+
></nr-color-picker>
|
|
395
|
+
</div>
|
|
396
|
+
</div>
|
|
397
|
+
`,
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Theme customization example
|
|
402
|
+
*/
|
|
403
|
+
export const ThemeCustomization: Story = {
|
|
404
|
+
render: () => html`
|
|
405
|
+
<div style="display: flex; flex-direction: column; gap: 32px; min-width: 400px;">
|
|
406
|
+
<div style="background: #f8f9fa; padding: 24px; border-radius: 8px;">
|
|
407
|
+
<h3 style="margin: 0 0 16px 0;">Light Theme Colors</h3>
|
|
408
|
+
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;">
|
|
409
|
+
<nr-color-picker
|
|
410
|
+
color="#ffffff"
|
|
411
|
+
label="Background"
|
|
412
|
+
.defaultColorSets="${['#ffffff', '#f8f9fa', '#e9ecef', '#dee2e6']}"
|
|
413
|
+
></nr-color-picker>
|
|
414
|
+
<nr-color-picker
|
|
415
|
+
color="#212529"
|
|
416
|
+
label="Text"
|
|
417
|
+
.defaultColorSets="${['#212529', '#495057', '#6c757d', '#adb5bd']}"
|
|
418
|
+
></nr-color-picker>
|
|
419
|
+
</div>
|
|
420
|
+
</div>
|
|
421
|
+
|
|
422
|
+
<div style="background: #2c3e50; padding: 24px; border-radius: 8px;">
|
|
423
|
+
<h3 style="margin: 0 0 16px 0; color: white;">Dark Theme Colors</h3>
|
|
424
|
+
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;">
|
|
425
|
+
<nr-color-picker
|
|
426
|
+
color="#1a1a1a"
|
|
427
|
+
label="Background"
|
|
428
|
+
.defaultColorSets="${['#1a1a1a', '#2c2c2c', '#3c3c3c', '#4a4a4a']}"
|
|
429
|
+
></nr-color-picker>
|
|
430
|
+
<nr-color-picker
|
|
431
|
+
color="#f8f9fa"
|
|
432
|
+
label="Text"
|
|
433
|
+
.defaultColorSets="${['#f8f9fa', '#e9ecef', '#dee2e6', '#ced4da']}"
|
|
434
|
+
></nr-color-picker>
|
|
435
|
+
</div>
|
|
436
|
+
</div>
|
|
437
|
+
</div>
|
|
438
|
+
`,
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Gradient color palette
|
|
443
|
+
*/
|
|
444
|
+
export const GradientPalette: Story = {
|
|
445
|
+
render: () => {
|
|
446
|
+
const blueGradient = [
|
|
447
|
+
'#e3f2fd', '#bbdefb', '#90caf9', '#64b5f6',
|
|
448
|
+
'#42a5f5', '#2196f3', '#1e88e5', '#1976d2'
|
|
449
|
+
];
|
|
450
|
+
const greenGradient = [
|
|
451
|
+
'#e8f5e9', '#c8e6c9', '#a5d6a7', '#81c784',
|
|
452
|
+
'#66bb6a', '#4caf50', '#43a047', '#388e3c'
|
|
453
|
+
];
|
|
454
|
+
const redGradient = [
|
|
455
|
+
'#ffebee', '#ffcdd2', '#ef9a9a', '#e57373',
|
|
456
|
+
'#ef5350', '#f44336', '#e53935', '#d32f2f'
|
|
457
|
+
];
|
|
458
|
+
|
|
459
|
+
return html`
|
|
460
|
+
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
461
|
+
<div>
|
|
462
|
+
<h4 style="margin: 0 0 12px 0;">Blue Gradient</h4>
|
|
463
|
+
<nr-color-picker
|
|
464
|
+
color="#2196f3"
|
|
465
|
+
.defaultColorSets="${blueGradient}"
|
|
466
|
+
></nr-color-picker>
|
|
467
|
+
</div>
|
|
468
|
+
<div>
|
|
469
|
+
<h4 style="margin: 0 0 12px 0;">Green Gradient</h4>
|
|
470
|
+
<nr-color-picker
|
|
471
|
+
color="#4caf50"
|
|
472
|
+
.defaultColorSets="${greenGradient}"
|
|
473
|
+
></nr-color-picker>
|
|
474
|
+
</div>
|
|
475
|
+
<div>
|
|
476
|
+
<h4 style="margin: 0 0 12px 0;">Red Gradient</h4>
|
|
477
|
+
<nr-color-picker
|
|
478
|
+
color="#f44336"
|
|
479
|
+
.defaultColorSets="${redGradient}"
|
|
480
|
+
></nr-color-picker>
|
|
481
|
+
</div>
|
|
482
|
+
</div>
|
|
483
|
+
`;
|
|
484
|
+
},
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Event handling example
|
|
489
|
+
*/
|
|
490
|
+
export const EventHandling: Story = {
|
|
491
|
+
render: () => html`
|
|
492
|
+
<div style="display: flex; flex-direction: column; gap: 16px; min-width: 400px;">
|
|
493
|
+
<nr-color-picker
|
|
494
|
+
color="#3498db"
|
|
495
|
+
label="Select a Color"
|
|
496
|
+
helper-text="Color change events are logged to console"
|
|
497
|
+
.defaultColorSets="${defaultColors}"
|
|
498
|
+
@nr-color-change="${(e: CustomEvent) => {
|
|
499
|
+
console.log('Color changed:', e.detail);
|
|
500
|
+
const infoBox = document.getElementById('color-info');
|
|
501
|
+
if (infoBox) {
|
|
502
|
+
infoBox.innerHTML = `
|
|
503
|
+
<div><strong>Color:</strong> ${e.detail.value}</div>
|
|
504
|
+
<div><strong>Previous:</strong> ${e.detail.previousValue}</div>
|
|
505
|
+
<div><strong>Valid:</strong> ${e.detail.isValid ? '✓' : '✗'}</div>
|
|
506
|
+
`;
|
|
507
|
+
}
|
|
508
|
+
}}"
|
|
509
|
+
@nr-colorpicker-open="${() => console.log('Dropdown opened')}"
|
|
510
|
+
@nr-colorpicker-close="${() => console.log('Dropdown closed')}"
|
|
511
|
+
></nr-color-picker>
|
|
512
|
+
|
|
513
|
+
<div
|
|
514
|
+
id="color-info"
|
|
515
|
+
style="
|
|
516
|
+
padding: 16px;
|
|
517
|
+
background: #f8f9fa;
|
|
518
|
+
border-radius: 8px;
|
|
519
|
+
border: 1px solid #dee2e6;
|
|
520
|
+
font-family: monospace;
|
|
521
|
+
font-size: 12px;
|
|
522
|
+
"
|
|
523
|
+
>
|
|
524
|
+
<div><strong>Color:</strong> #3498db</div>
|
|
525
|
+
<div><strong>Previous:</strong> -</div>
|
|
526
|
+
<div><strong>Valid:</strong> ✓</div>
|
|
527
|
+
</div>
|
|
528
|
+
</div>
|
|
529
|
+
`,
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Transparent and RGBA colors
|
|
534
|
+
*/
|
|
535
|
+
export const TransparentColors: Story = {
|
|
536
|
+
render: () => {
|
|
537
|
+
const transparentColors = [
|
|
538
|
+
'transparent',
|
|
539
|
+
'rgba(52, 152, 219, 0.1)',
|
|
540
|
+
'rgba(52, 152, 219, 0.3)',
|
|
541
|
+
'rgba(52, 152, 219, 0.5)',
|
|
542
|
+
'rgba(52, 152, 219, 0.7)',
|
|
543
|
+
'rgba(52, 152, 219, 0.9)',
|
|
544
|
+
'rgba(231, 76, 60, 0.5)',
|
|
545
|
+
'rgba(46, 204, 113, 0.5)',
|
|
546
|
+
];
|
|
547
|
+
|
|
548
|
+
return html`
|
|
549
|
+
<div style="
|
|
550
|
+
display: inline-block;
|
|
551
|
+
padding: 24px;
|
|
552
|
+
background: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
|
|
553
|
+
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
|
|
554
|
+
background-size: 20px 20px;
|
|
555
|
+
background-position: 0 0, 10px 10px;
|
|
556
|
+
">
|
|
557
|
+
<nr-color-picker
|
|
558
|
+
color="rgba(52, 152, 219, 0.5)"
|
|
559
|
+
label="Transparent Color"
|
|
560
|
+
helper-text="Supports transparent and RGBA values"
|
|
561
|
+
.defaultColorSets="${transparentColors}"
|
|
562
|
+
></nr-color-picker>
|
|
563
|
+
</div>
|
|
564
|
+
`;
|
|
565
|
+
},
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* All four corners viewport test
|
|
570
|
+
*/
|
|
571
|
+
export const ViewportAllCorners: Story = {
|
|
572
|
+
parameters: {
|
|
573
|
+
layout: 'fullscreen',
|
|
574
|
+
docs: {
|
|
575
|
+
description: {
|
|
576
|
+
story: 'Tests all four corners simultaneously to verify dropdown positioning works correctly in all edge cases. Each dropdown should position itself to remain fully visible within the viewport.',
|
|
577
|
+
},
|
|
578
|
+
},
|
|
579
|
+
},
|
|
580
|
+
render: () => html`
|
|
581
|
+
<div style="position: relative; min-height: 100vh; padding: 8px;">
|
|
582
|
+
<!-- Top Left -->
|
|
583
|
+
<div style="position: absolute; top: 8px; left: 8px;">
|
|
584
|
+
<nr-color-picker
|
|
585
|
+
color="#3498db"
|
|
586
|
+
label="Top Left"
|
|
587
|
+
size="small"
|
|
588
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
589
|
+
></nr-color-picker>
|
|
590
|
+
</div>
|
|
591
|
+
|
|
592
|
+
<!-- Top Right -->
|
|
593
|
+
<div style="position: absolute; top: 8px; right: 8px;">
|
|
594
|
+
<nr-color-picker
|
|
595
|
+
color="#e74c3c"
|
|
596
|
+
label="Top Right"
|
|
597
|
+
size="small"
|
|
598
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
599
|
+
></nr-color-picker>
|
|
600
|
+
</div>
|
|
601
|
+
|
|
602
|
+
<!-- Bottom Left -->
|
|
603
|
+
<div style="position: absolute; bottom: 8px; left: 8px;">
|
|
604
|
+
<nr-color-picker
|
|
605
|
+
color="#2ecc71"
|
|
606
|
+
label="Bottom Left"
|
|
607
|
+
size="small"
|
|
608
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
609
|
+
></nr-color-picker>
|
|
610
|
+
</div>
|
|
611
|
+
|
|
612
|
+
<!-- Bottom Right -->
|
|
613
|
+
<div style="position: absolute; bottom: 8px; right: 8px;">
|
|
614
|
+
<nr-color-picker
|
|
615
|
+
color="#f39c12"
|
|
616
|
+
label="Bottom Right"
|
|
617
|
+
size="small"
|
|
618
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
619
|
+
></nr-color-picker>
|
|
620
|
+
</div>
|
|
621
|
+
|
|
622
|
+
<!-- Center for reference -->
|
|
623
|
+
<div style="display: flex; align-items: center; justify-content: center; min-height: 100vh;">
|
|
624
|
+
<nr-color-picker
|
|
625
|
+
color="#9b59b6"
|
|
626
|
+
label="Center Reference"
|
|
627
|
+
helper-text="This should open normally"
|
|
628
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
629
|
+
></nr-color-picker>
|
|
630
|
+
</div>
|
|
631
|
+
</div>
|
|
632
|
+
`,
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Viewport edge scrolling test
|
|
637
|
+
*/
|
|
638
|
+
export const ViewportScrolling: Story = {
|
|
639
|
+
parameters: {
|
|
640
|
+
layout: 'fullscreen',
|
|
641
|
+
docs: {
|
|
642
|
+
description: {
|
|
643
|
+
story: 'Tests dropdown positioning during page scrolling. Dropdowns should reposition themselves as the page scrolls to maintain visibility.',
|
|
644
|
+
},
|
|
645
|
+
},
|
|
646
|
+
},
|
|
647
|
+
render: () => html`
|
|
648
|
+
<div style="min-height: 200vh; padding: 20px;">
|
|
649
|
+
<div style="position: sticky; top: 0; background: white; padding: 16px; border: 2px solid #3498db; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);">
|
|
650
|
+
<h3 style="margin: 0 0 8px 0;">Sticky Header</h3>
|
|
651
|
+
<nr-color-picker
|
|
652
|
+
color="#3498db"
|
|
653
|
+
label="Sticky Position"
|
|
654
|
+
helper-text="Scroll to test repositioning"
|
|
655
|
+
.defaultColorSets="${defaultColors}"
|
|
656
|
+
></nr-color-picker>
|
|
657
|
+
</div>
|
|
658
|
+
|
|
659
|
+
<div style="margin: 40px 0;">
|
|
660
|
+
<h3>Top Section</h3>
|
|
661
|
+
<nr-color-picker
|
|
662
|
+
color="#e74c3c"
|
|
663
|
+
label="Top Section"
|
|
664
|
+
.defaultColorSets="${defaultColors}"
|
|
665
|
+
></nr-color-picker>
|
|
666
|
+
</div>
|
|
667
|
+
|
|
668
|
+
<div style="margin: 800px 0 40px 0;">
|
|
669
|
+
<h3>Middle Section (scroll down)</h3>
|
|
670
|
+
<nr-color-picker
|
|
671
|
+
color="#2ecc71"
|
|
672
|
+
label="Middle Section"
|
|
673
|
+
.defaultColorSets="${defaultColors}"
|
|
674
|
+
></nr-color-picker>
|
|
675
|
+
</div>
|
|
676
|
+
|
|
677
|
+
<div style="margin: 40px 0;">
|
|
678
|
+
<h3>Bottom Section</h3>
|
|
679
|
+
<nr-color-picker
|
|
680
|
+
color="#f39c12"
|
|
681
|
+
label="Bottom Section"
|
|
682
|
+
helper-text="Near the bottom of the page"
|
|
683
|
+
.defaultColorSets="${defaultColors}"
|
|
684
|
+
></nr-color-picker>
|
|
685
|
+
</div>
|
|
686
|
+
</div>
|
|
687
|
+
`,
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Viewport narrow width test
|
|
692
|
+
*/
|
|
693
|
+
export const ViewportNarrowWidth: Story = {
|
|
694
|
+
parameters: {
|
|
695
|
+
layout: 'fullscreen',
|
|
696
|
+
docs: {
|
|
697
|
+
description: {
|
|
698
|
+
story: 'Tests dropdown behavior in narrow viewports (mobile-like). Dropdown should adjust to fit available space.',
|
|
699
|
+
},
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
render: () => html`
|
|
703
|
+
<div style="max-width: 320px; margin: 0 auto; padding: 16px; border: 2px dashed #ccc; min-height: 100vh;">
|
|
704
|
+
<h3 style="text-align: center; margin-bottom: 24px;">Mobile Width (320px)</h3>
|
|
705
|
+
|
|
706
|
+
<div style="margin-bottom: 24px;">
|
|
707
|
+
<nr-color-picker
|
|
708
|
+
color="#3498db"
|
|
709
|
+
label="Left Edge"
|
|
710
|
+
helper-text="Near left edge"
|
|
711
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
712
|
+
></nr-color-picker>
|
|
713
|
+
</div>
|
|
714
|
+
|
|
715
|
+
<div style="margin-bottom: 24px; display: flex; justify-content: flex-end;">
|
|
716
|
+
<nr-color-picker
|
|
717
|
+
color="#e74c3c"
|
|
718
|
+
label="Right Edge"
|
|
719
|
+
helper-text="Near right edge"
|
|
720
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
721
|
+
></nr-color-picker>
|
|
722
|
+
</div>
|
|
723
|
+
|
|
724
|
+
<div style="margin-bottom: 24px; display: flex; justify-content: center;">
|
|
725
|
+
<nr-color-picker
|
|
726
|
+
color="#2ecc71"
|
|
727
|
+
label="Centered"
|
|
728
|
+
helper-text="In the center"
|
|
729
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
730
|
+
></nr-color-picker>
|
|
731
|
+
</div>
|
|
732
|
+
</div>
|
|
733
|
+
`,
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Viewport resize test
|
|
738
|
+
*/
|
|
739
|
+
export const ViewportResize: Story = {
|
|
740
|
+
parameters: {
|
|
741
|
+
layout: 'fullscreen',
|
|
742
|
+
docs: {
|
|
743
|
+
description: {
|
|
744
|
+
story: 'Tests dropdown repositioning on window resize. Try resizing your browser window while the dropdown is open - it should reposition automatically.',
|
|
745
|
+
},
|
|
746
|
+
},
|
|
747
|
+
},
|
|
748
|
+
render: () => html`
|
|
749
|
+
<div style="padding: 40px; min-height: 100vh;">
|
|
750
|
+
<div style="max-width: 600px; margin: 0 auto;">
|
|
751
|
+
<div style="background: #f8f9fa; padding: 24px; border-radius: 8px; margin-bottom: 24px;">
|
|
752
|
+
<h3 style="margin: 0 0 16px 0;">Window Resize Test</h3>
|
|
753
|
+
<p style="margin: 0 0 16px 0; color: #666;">
|
|
754
|
+
1. Open the dropdown below<br>
|
|
755
|
+
2. Resize your browser window<br>
|
|
756
|
+
3. The dropdown should reposition automatically
|
|
757
|
+
</p>
|
|
758
|
+
<nr-color-picker
|
|
759
|
+
color="#3498db"
|
|
760
|
+
label="Resize Test"
|
|
761
|
+
helper-text="Open dropdown and resize window"
|
|
762
|
+
.defaultColorSets="${defaultColors}"
|
|
763
|
+
></nr-color-picker>
|
|
764
|
+
</div>
|
|
765
|
+
|
|
766
|
+
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 16px;">
|
|
767
|
+
<nr-color-picker
|
|
768
|
+
color="#e74c3c"
|
|
769
|
+
label="Left Side"
|
|
770
|
+
size="small"
|
|
771
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
772
|
+
></nr-color-picker>
|
|
773
|
+
|
|
774
|
+
<nr-color-picker
|
|
775
|
+
color="#2ecc71"
|
|
776
|
+
label="Right Side"
|
|
777
|
+
size="small"
|
|
778
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
779
|
+
></nr-color-picker>
|
|
780
|
+
</div>
|
|
781
|
+
</div>
|
|
782
|
+
</div>
|
|
783
|
+
`,
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Viewport with forced placement
|
|
788
|
+
*/
|
|
789
|
+
export const ViewportForcedPlacement: Story = {
|
|
790
|
+
parameters: {
|
|
791
|
+
layout: 'fullscreen',
|
|
792
|
+
docs: {
|
|
793
|
+
description: {
|
|
794
|
+
story: 'Compares auto placement vs forced placement. Shows how placement="top" and placement="bottom" behave compared to placement="auto".',
|
|
795
|
+
},
|
|
796
|
+
},
|
|
797
|
+
},
|
|
798
|
+
render: () => html`
|
|
799
|
+
<div style="padding: 40px; min-height: 100vh;">
|
|
800
|
+
<h3 style="text-align: center; margin-bottom: 32px;">Placement Comparison</h3>
|
|
801
|
+
|
|
802
|
+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; max-width: 800px; margin: 0 auto;">
|
|
803
|
+
<div style="text-align: center;">
|
|
804
|
+
<h4 style="margin-bottom: 16px;">Auto (Smart)</h4>
|
|
805
|
+
<nr-color-picker
|
|
806
|
+
color="#3498db"
|
|
807
|
+
label="Auto Placement"
|
|
808
|
+
placement="auto"
|
|
809
|
+
helper-text="Chooses best position"
|
|
810
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
811
|
+
></nr-color-picker>
|
|
812
|
+
</div>
|
|
813
|
+
|
|
814
|
+
<div style="text-align: center;">
|
|
815
|
+
<h4 style="margin-bottom: 16px;">Bottom (Forced)</h4>
|
|
816
|
+
<nr-color-picker
|
|
817
|
+
color="#e74c3c"
|
|
818
|
+
label="Bottom Placement"
|
|
819
|
+
placement="bottom"
|
|
820
|
+
helper-text="Always opens below"
|
|
821
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
822
|
+
></nr-color-picker>
|
|
823
|
+
</div>
|
|
824
|
+
|
|
825
|
+
<div style="text-align: center;">
|
|
826
|
+
<h4 style="margin-bottom: 16px;">Top (Forced)</h4>
|
|
827
|
+
<nr-color-picker
|
|
828
|
+
color="#2ecc71"
|
|
829
|
+
label="Top Placement"
|
|
830
|
+
placement="top"
|
|
831
|
+
helper-text="Always opens above"
|
|
832
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
833
|
+
></nr-color-picker>
|
|
834
|
+
</div>
|
|
835
|
+
</div>
|
|
836
|
+
|
|
837
|
+
<!-- Bottom edge test -->
|
|
838
|
+
<div style="position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);">
|
|
839
|
+
<nr-color-picker
|
|
840
|
+
color="#f39c12"
|
|
841
|
+
label="Bottom Edge Auto"
|
|
842
|
+
placement="auto"
|
|
843
|
+
helper-text="Should open upward"
|
|
844
|
+
.defaultColorSets="${defaultColors.slice(0, 8)}"
|
|
845
|
+
></nr-color-picker>
|
|
846
|
+
</div>
|
|
847
|
+
</div>
|
|
848
|
+
`,
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Playground for interactive testing
|
|
853
|
+
*/
|
|
854
|
+
export const Playground: Story = {
|
|
855
|
+
args: {
|
|
856
|
+
color: '#3498db',
|
|
857
|
+
disabled: false,
|
|
858
|
+
size: 'default',
|
|
859
|
+
label: 'Color Picker',
|
|
860
|
+
helperText: 'Choose your favorite color',
|
|
861
|
+
showInput: true,
|
|
862
|
+
showCopyButton: true,
|
|
863
|
+
closeOnSelect: false,
|
|
864
|
+
closeOnOutsideClick: true,
|
|
865
|
+
closeOnEscape: true,
|
|
866
|
+
inputPlaceholder: 'Enter color',
|
|
867
|
+
placement: 'auto',
|
|
868
|
+
trigger: 'click',
|
|
869
|
+
},
|
|
870
|
+
render: (args) => html`
|
|
871
|
+
<nr-color-picker
|
|
872
|
+
color="${args.color}"
|
|
873
|
+
?disabled="${args.disabled}"
|
|
874
|
+
size="${args.size}"
|
|
875
|
+
label="${args.label}"
|
|
876
|
+
helper-text="${args.helperText}"
|
|
877
|
+
?show-input="${args.showInput}"
|
|
878
|
+
?show-copy-button="${args.showCopyButton}"
|
|
879
|
+
?close-on-select="${args.closeOnSelect}"
|
|
880
|
+
?close-on-outside-click="${args.closeOnOutsideClick}"
|
|
881
|
+
?close-on-escape="${args.closeOnEscape}"
|
|
882
|
+
input-placeholder="${args.inputPlaceholder}"
|
|
883
|
+
placement="${args.placement}"
|
|
884
|
+
trigger="${args.trigger}"
|
|
885
|
+
.defaultColorSets="${defaultColors}"
|
|
886
|
+
></nr-color-picker>
|
|
887
|
+
`,
|
|
888
|
+
};
|