@nuraly/lumenui 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/LICENSE +28 -0
- package/README.md +248 -0
- package/dist/nuralyui.bundle.js +29209 -0
- package/dist/nuralyui.bundle.js.gz +0 -0
- package/dist/src/components/alert/alert.component.d.ts +103 -0
- package/dist/src/components/alert/alert.component.js +225 -0
- package/dist/src/components/alert/alert.style.d.ts +14 -0
- package/dist/src/components/alert/alert.style.js +191 -0
- package/dist/src/components/alert/alert.types.d.ts +46 -0
- package/dist/src/components/alert/alert.types.js +7 -0
- package/dist/src/components/alert/bundle.js +231 -0
- package/dist/src/components/alert/bundle.js.gz +0 -0
- package/dist/src/components/alert/index.d.ts +8 -0
- package/dist/src/components/alert/index.js +8 -0
- package/dist/src/components/alert/react.d.ts +5 -0
- package/dist/src/components/alert/react.js +17 -0
- package/dist/src/components/badge/badge.component.d.ts +148 -0
- package/dist/src/components/badge/badge.component.js +270 -0
- package/dist/src/components/badge/badge.style.d.ts +14 -0
- package/dist/src/components/badge/badge.style.js +250 -0
- package/dist/src/components/badge/badge.types.d.ts +84 -0
- package/dist/src/components/badge/badge.types.js +7 -0
- package/dist/src/components/badge/bundle.js +277 -0
- package/dist/src/components/badge/bundle.js.gz +0 -0
- package/dist/src/components/badge/index.d.ts +2 -0
- package/dist/src/components/badge/index.js +2 -0
- package/dist/src/components/badge/react.d.ts +3 -0
- package/dist/src/components/badge/react.js +10 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +121 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.js +257 -0
- package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +14 -0
- package/dist/src/components/breadcrumb/breadcrumb.style.js +153 -0
- package/dist/src/components/breadcrumb/breadcrumb.types.d.ts +63 -0
- package/dist/src/components/breadcrumb/breadcrumb.types.js +7 -0
- package/dist/src/components/breadcrumb/bundle.js +213 -0
- package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
- package/dist/src/components/breadcrumb/index.d.ts +2 -0
- package/dist/src/components/breadcrumb/index.js +2 -0
- package/dist/src/components/breadcrumb/react.d.ts +5 -0
- package/dist/src/components/breadcrumb/react.js +12 -0
- package/dist/src/components/button/bundle.js +606 -0
- package/dist/src/components/button/bundle.js.gz +0 -0
- package/dist/src/components/button/button.component.d.ts +96 -0
- package/dist/src/components/button/button.component.js +312 -0
- package/dist/src/components/button/button.style.d.ts +10 -0
- package/dist/src/components/button/button.style.js +535 -0
- package/dist/src/components/button/button.types.d.ts +57 -0
- package/dist/src/components/button/button.types.js +2 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/button/index.js +2 -0
- package/dist/src/components/button/react.d.ts +5 -0
- package/dist/src/components/button/react.js +12 -0
- package/dist/src/components/canvas/base-canvas.component.d.ts +177 -0
- package/dist/src/components/canvas/base-canvas.component.js +865 -0
- package/dist/src/components/canvas/bundle.js +16664 -0
- package/dist/src/components/canvas/bundle.js.gz +0 -0
- package/dist/src/components/canvas/canvas.component.d.ts +2 -0
- package/dist/src/components/canvas/canvas.component.js +295 -0
- package/dist/src/components/canvas/canvas.constants.d.ts +66 -0
- package/dist/src/components/canvas/canvas.constants.js +61 -0
- package/dist/src/components/canvas/chatbot-panel.style.d.ts +11 -0
- package/dist/src/components/canvas/chatbot-panel.style.js +189 -0
- package/dist/src/components/canvas/index.d.ts +13 -0
- package/dist/src/components/canvas/index.js +21 -0
- package/dist/src/components/canvas/react.d.ts +354 -0
- package/dist/src/components/canvas/react.js +41 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +63 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.js +356 -0
- package/dist/src/components/canvas/whiteboard-canvas.style.d.ts +7 -0
- package/dist/src/components/canvas/whiteboard-canvas.style.js +1011 -0
- package/dist/src/components/canvas/whiteboard-node.component.d.ts +87 -0
- package/dist/src/components/canvas/whiteboard-node.component.js +809 -0
- package/dist/src/components/canvas/whiteboard-node.style.d.ts +7 -0
- package/dist/src/components/canvas/whiteboard-node.style.js +775 -0
- package/dist/src/components/canvas/workflow-canvas.component.d.ts +150 -0
- package/dist/src/components/canvas/workflow-canvas.component.js +1468 -0
- package/dist/src/components/canvas/workflow-canvas.style.d.ts +8 -0
- package/dist/src/components/canvas/workflow-canvas.style.js +2903 -0
- package/dist/src/components/canvas/workflow-canvas.types.d.ts +710 -0
- package/dist/src/components/canvas/workflow-canvas.types.js +2305 -0
- package/dist/src/components/canvas/workflow-node.component.d.ts +96 -0
- package/dist/src/components/canvas/workflow-node.component.js +752 -0
- package/dist/src/components/canvas/workflow-node.style.d.ts +8 -0
- package/dist/src/components/canvas/workflow-node.style.js +1053 -0
- package/dist/src/components/card/bundle.js +69 -0
- package/dist/src/components/card/bundle.js.gz +0 -0
- package/dist/src/components/card/card.component.d.ts +30 -0
- package/dist/src/components/card/card.component.js +64 -0
- package/dist/src/components/card/card.style.d.ts +2 -0
- package/dist/src/components/card/card.style.js +62 -0
- package/dist/src/components/card/card.types.d.ts +17 -0
- package/dist/src/components/card/card.types.js +2 -0
- package/dist/src/components/card/index.d.ts +3 -0
- package/dist/src/components/card/index.js +3 -0
- package/dist/src/components/card/react.d.ts +5 -0
- package/dist/src/components/card/react.js +12 -0
- package/dist/src/components/carousel/bundle.js +96 -0
- package/dist/src/components/carousel/bundle.js.gz +0 -0
- package/dist/src/components/carousel/carousel.component.d.ts +19 -0
- package/dist/src/components/carousel/carousel.component.js +128 -0
- package/dist/src/components/carousel/carousel.style.d.ts +2 -0
- package/dist/src/components/carousel/carousel.style.js +68 -0
- package/dist/src/components/carousel/index.d.ts +2 -0
- package/dist/src/components/carousel/index.js +2 -0
- package/dist/src/components/carousel/react.d.ts +5 -0
- package/dist/src/components/carousel/react.js +12 -0
- package/dist/src/components/chatbot/bundle.js +2527 -0
- package/dist/src/components/chatbot/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/chatbot.component.d.ts +215 -0
- package/dist/src/components/chatbot/chatbot.component.js +1097 -0
- package/dist/src/components/chatbot/chatbot.style.d.ts +3 -0
- package/dist/src/components/chatbot/chatbot.style.js +1638 -0
- package/dist/src/components/chatbot/chatbot.types.d.ts +246 -0
- package/dist/src/components/chatbot/chatbot.types.js +124 -0
- package/dist/src/components/chatbot/index.d.ts +13 -0
- package/dist/src/components/chatbot/index.js +20 -0
- package/dist/src/components/chatbot/react.d.ts +54 -0
- package/dist/src/components/chatbot/react.js +55 -0
- package/dist/src/components/checkbox/bundle.js +352 -0
- package/dist/src/components/checkbox/bundle.js.gz +0 -0
- package/dist/src/components/checkbox/checkbox.component.d.ts +62 -0
- package/dist/src/components/checkbox/checkbox.component.js +178 -0
- package/dist/src/components/checkbox/checkbox.style.d.ts +2 -0
- package/dist/src/components/checkbox/checkbox.style.js +323 -0
- package/dist/src/components/checkbox/checkbox.types.d.ts +6 -0
- package/dist/src/components/checkbox/checkbox.types.js +2 -0
- package/dist/src/components/checkbox/index.d.ts +2 -0
- package/dist/src/components/checkbox/index.js +2 -0
- package/dist/src/components/checkbox/react.d.ts +5 -0
- package/dist/src/components/checkbox/react.js +12 -0
- package/dist/src/components/code-editor/bundle.js +55 -0
- package/dist/src/components/code-editor/bundle.js.gz +0 -0
- package/dist/src/components/code-editor/code-editor.component.d.ts +119 -0
- package/dist/src/components/code-editor/code-editor.component.js +532 -0
- package/dist/src/components/code-editor/code-editor.style.d.ts +7 -0
- package/dist/src/components/code-editor/code-editor.style.js +39 -0
- package/dist/src/components/code-editor/code-editor.types.d.ts +39 -0
- package/dist/src/components/code-editor/code-editor.types.js +22 -0
- package/dist/src/components/code-editor/index.d.ts +9 -0
- package/dist/src/components/code-editor/index.js +9 -0
- package/dist/src/components/collapse/bundle.js +308 -0
- package/dist/src/components/collapse/bundle.js.gz +0 -0
- package/dist/src/components/collapse/collapse.component.d.ts +93 -0
- package/dist/src/components/collapse/collapse.component.js +322 -0
- package/dist/src/components/collapse/collapse.style.d.ts +11 -0
- package/dist/src/components/collapse/collapse.style.js +234 -0
- package/dist/src/components/collapse/collapse.type.d.ts +79 -0
- package/dist/src/components/collapse/collapse.type.js +11 -0
- package/dist/src/components/collapse/index.d.ts +2 -0
- package/dist/src/components/collapse/index.js +2 -0
- package/dist/src/components/collapse/react.d.ts +6 -0
- package/dist/src/components/collapse/react.js +13 -0
- package/dist/src/components/colorpicker/bundle.js +242 -0
- package/dist/src/components/colorpicker/bundle.js.gz +0 -0
- package/dist/src/components/colorpicker/color-holder.component.d.ts +50 -0
- package/dist/src/components/colorpicker/color-holder.component.js +116 -0
- package/dist/src/components/colorpicker/color-holder.style.d.ts +2 -0
- package/dist/src/components/colorpicker/color-holder.style.js +45 -0
- package/dist/src/components/colorpicker/color-picker.component.d.ts +178 -0
- package/dist/src/components/colorpicker/color-picker.component.js +374 -0
- package/dist/src/components/colorpicker/color-picker.style.d.ts +10 -0
- package/dist/src/components/colorpicker/color-picker.style.js +86 -0
- package/dist/src/components/colorpicker/color-picker.types.d.ts +60 -0
- package/dist/src/components/colorpicker/color-picker.types.js +2 -0
- package/dist/src/components/colorpicker/default-color-sets.component.d.ts +45 -0
- package/dist/src/components/colorpicker/default-color-sets.component.js +121 -0
- package/dist/src/components/colorpicker/default-color-sets.style.d.ts +2 -0
- package/dist/src/components/colorpicker/default-color-sets.style.js +34 -0
- package/dist/src/components/colorpicker/index.d.ts +3 -0
- package/dist/src/components/colorpicker/index.js +3 -0
- package/dist/src/components/colorpicker/react.d.ts +6 -0
- package/dist/src/components/colorpicker/react.js +13 -0
- package/dist/src/components/console/react.d.ts +340 -0
- package/dist/src/components/console/react.js +13 -0
- package/dist/src/components/container/bundle.js +161 -0
- package/dist/src/components/container/bundle.js.gz +0 -0
- package/dist/src/components/container/container.component.d.ts +85 -0
- package/dist/src/components/container/container.component.js +223 -0
- package/dist/src/components/container/container.style.d.ts +6 -0
- package/dist/src/components/container/container.style.js +146 -0
- package/dist/src/components/container/container.types.d.ts +67 -0
- package/dist/src/components/container/container.types.js +5 -0
- package/dist/src/components/container/index.d.ts +3 -0
- package/dist/src/components/container/index.js +3 -0
- package/dist/src/components/container/react.d.ts +3 -0
- package/dist/src/components/container/react.js +10 -0
- package/dist/src/components/datepicker/bundle.js +706 -0
- package/dist/src/components/datepicker/bundle.js.gz +0 -0
- package/dist/src/components/datepicker/datepicker.component.d.ts +190 -0
- package/dist/src/components/datepicker/datepicker.component.js +673 -0
- package/dist/src/components/datepicker/datepicker.constant.d.ts +60 -0
- package/dist/src/components/datepicker/datepicker.constant.js +60 -0
- package/dist/src/components/datepicker/datepicker.style.d.ts +17 -0
- package/dist/src/components/datepicker/datepicker.style.js +453 -0
- package/dist/src/components/datepicker/datepicker.style.variables.d.ts +2 -0
- package/dist/src/components/datepicker/datepicker.style.variables.js +119 -0
- package/dist/src/components/datepicker/datepicker.types.d.ts +142 -0
- package/dist/src/components/datepicker/datepicker.types.js +75 -0
- package/dist/src/components/datepicker/index.d.ts +4 -0
- package/dist/src/components/datepicker/index.js +4 -0
- package/dist/src/components/datepicker/react.d.ts +16 -0
- package/dist/src/components/datepicker/react.js +23 -0
- package/dist/src/components/db-connection-select/bundle.js +308 -0
- package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +105 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.js +573 -0
- package/dist/src/components/db-connection-select/index.d.ts +7 -0
- package/dist/src/components/db-connection-select/index.js +7 -0
- package/dist/src/components/divider/bundle.js +143 -0
- package/dist/src/components/divider/bundle.js.gz +0 -0
- package/dist/src/components/divider/divider.component.d.ts +90 -0
- package/dist/src/components/divider/divider.component.js +168 -0
- package/dist/src/components/divider/divider.style.d.ts +3 -0
- package/dist/src/components/divider/divider.style.js +139 -0
- package/dist/src/components/divider/divider.types.d.ts +55 -0
- package/dist/src/components/divider/divider.types.js +6 -0
- package/dist/src/components/divider/index.d.ts +3 -0
- package/dist/src/components/divider/index.js +3 -0
- package/dist/src/components/divider/react.d.ts +3 -0
- package/dist/src/components/divider/react.js +10 -0
- package/dist/src/components/document/bundle.js +242 -0
- package/dist/src/components/document/bundle.js.gz +0 -0
- package/dist/src/components/document/document.component.d.ts +27 -0
- package/dist/src/components/document/document.component.js +136 -0
- package/dist/src/components/document/document.style.d.ts +3 -0
- package/dist/src/components/document/document.style.js +210 -0
- package/dist/src/components/document/document.types.d.ts +68 -0
- package/dist/src/components/document/document.types.js +7 -0
- package/dist/src/components/document/index.d.ts +3 -0
- package/dist/src/components/document/index.js +3 -0
- package/dist/src/components/document/react.d.ts +8 -0
- package/dist/src/components/document/react.js +15 -0
- package/dist/src/components/dropdown/bundle.js +528 -0
- package/dist/src/components/dropdown/bundle.js.gz +0 -0
- package/dist/src/components/dropdown/dropdown.component.d.ts +120 -0
- package/dist/src/components/dropdown/dropdown.component.js +390 -0
- package/dist/src/components/dropdown/dropdown.style.d.ts +2 -0
- package/dist/src/components/dropdown/dropdown.style.js +460 -0
- package/dist/src/components/dropdown/dropdown.types.d.ts +99 -0
- package/dist/src/components/dropdown/dropdown.types.js +2 -0
- package/dist/src/components/dropdown/index.d.ts +3 -0
- package/dist/src/components/dropdown/index.js +3 -0
- package/dist/src/components/dropdown/react.d.ts +7 -0
- package/dist/src/components/dropdown/react.js +14 -0
- package/dist/src/components/file-upload/bundle.js +472 -0
- package/dist/src/components/file-upload/bundle.js.gz +0 -0
- package/dist/src/components/file-upload/file-upload.component.d.ts +43 -0
- package/dist/src/components/file-upload/file-upload.component.js +398 -0
- package/dist/src/components/file-upload/index.d.ts +2 -0
- package/dist/src/components/file-upload/index.js +2 -0
- package/dist/src/components/file-upload/react.d.ts +7 -0
- package/dist/src/components/file-upload/react.js +14 -0
- package/dist/src/components/file-upload/styles.d.ts +2 -0
- package/dist/src/components/file-upload/styles.js +373 -0
- package/dist/src/components/file-upload/types.d.ts +11 -0
- package/dist/src/components/file-upload/types.js +2 -0
- package/dist/src/components/file-upload/utils.d.ts +6 -0
- package/dist/src/components/file-upload/utils.js +24 -0
- package/dist/src/components/flex/bundle.js +114 -0
- package/dist/src/components/flex/bundle.js.gz +0 -0
- package/dist/src/components/flex/flex.component.d.ts +89 -0
- package/dist/src/components/flex/flex.component.js +178 -0
- package/dist/src/components/flex/flex.style.d.ts +6 -0
- package/dist/src/components/flex/flex.style.js +101 -0
- package/dist/src/components/flex/flex.types.d.ts +63 -0
- package/dist/src/components/flex/flex.types.js +5 -0
- package/dist/src/components/flex/index.d.ts +3 -0
- package/dist/src/components/flex/index.js +3 -0
- package/dist/src/components/flex/react.d.ts +3 -0
- package/dist/src/components/flex/react.js +10 -0
- package/dist/src/components/form/bundle.js +98 -0
- package/dist/src/components/form/bundle.js.gz +0 -0
- package/dist/src/components/form/form.component.d.ts +279 -0
- package/dist/src/components/form/form.component.js +644 -0
- package/dist/src/components/form/form.style.d.ts +7 -0
- package/dist/src/components/form/form.style.js +68 -0
- package/dist/src/components/form/form.types.d.ts +92 -0
- package/dist/src/components/form/form.types.js +38 -0
- package/dist/src/components/form/index.d.ts +10 -0
- package/dist/src/components/form/index.js +13 -0
- package/dist/src/components/grid/bundle.js +202 -0
- package/dist/src/components/grid/bundle.js.gz +0 -0
- package/dist/src/components/grid/col.component.d.ts +103 -0
- package/dist/src/components/grid/col.component.js +253 -0
- package/dist/src/components/grid/col.style.d.ts +6 -0
- package/dist/src/components/grid/col.style.js +117 -0
- package/dist/src/components/grid/grid.types.d.ts +80 -0
- package/dist/src/components/grid/grid.types.js +16 -0
- package/dist/src/components/grid/index.d.ts +4 -0
- package/dist/src/components/grid/index.js +4 -0
- package/dist/src/components/grid/react.d.ts +5 -0
- package/dist/src/components/grid/react.js +17 -0
- package/dist/src/components/grid/row.component.d.ts +83 -0
- package/dist/src/components/grid/row.component.js +197 -0
- package/dist/src/components/grid/row.style.d.ts +6 -0
- package/dist/src/components/grid/row.style.js +68 -0
- package/dist/src/components/icon/bundle.js +340 -0
- package/dist/src/components/icon/bundle.js.gz +0 -0
- package/dist/src/components/icon/icon.component.d.ts +64 -0
- package/dist/src/components/icon/icon.component.js +207 -0
- package/dist/src/components/icon/icon.style.d.ts +2 -0
- package/dist/src/components/icon/icon.style.js +211 -0
- package/dist/src/components/icon/icon.types.d.ts +5 -0
- package/dist/src/components/icon/icon.types.js +2 -0
- package/dist/src/components/icon/icon.variables.d.ts +17 -0
- package/dist/src/components/icon/icon.variables.js +132 -0
- package/dist/src/components/icon/index.d.ts +2 -0
- package/dist/src/components/icon/index.js +2 -0
- package/dist/src/components/icon/react.d.ts +3 -0
- package/dist/src/components/icon/react.js +9 -0
- package/dist/src/components/iconpicker/bundle.js +2811 -0
- package/dist/src/components/iconpicker/bundle.js.gz +0 -0
- package/dist/src/components/iconpicker/icon-picker.component.d.ts +119 -0
- package/dist/src/components/iconpicker/icon-picker.component.js +337 -0
- package/dist/src/components/iconpicker/icon-picker.constant.d.ts +15 -0
- package/dist/src/components/iconpicker/icon-picker.constant.js +31 -0
- package/dist/src/components/iconpicker/icon-picker.style.d.ts +8 -0
- package/dist/src/components/iconpicker/icon-picker.style.js +216 -0
- package/dist/src/components/iconpicker/icon-picker.types.d.ts +49 -0
- package/dist/src/components/iconpicker/icon-picker.types.js +7 -0
- package/dist/src/components/iconpicker/index.d.ts +9 -0
- package/dist/src/components/iconpicker/index.js +9 -0
- package/dist/src/components/iconpicker/react.d.ts +14 -0
- package/dist/src/components/iconpicker/react.js +21 -0
- package/dist/src/components/image/bundle.js +98 -0
- package/dist/src/components/image/bundle.js.gz +0 -0
- package/dist/src/components/image/image.component.d.ts +31 -0
- package/dist/src/components/image/image.component.js +143 -0
- package/dist/src/components/image/image.style.d.ts +3 -0
- package/dist/src/components/image/image.style.js +83 -0
- package/dist/src/components/image/image.types.d.ts +68 -0
- package/dist/src/components/image/image.types.js +7 -0
- package/dist/src/components/image/index.d.ts +3 -0
- package/dist/src/components/image/index.js +3 -0
- package/dist/src/components/image/react.d.ts +8 -0
- package/dist/src/components/image/react.js +15 -0
- package/dist/src/components/input/bundle.js +930 -0
- package/dist/src/components/input/bundle.js.gz +0 -0
- package/dist/src/components/input/index.d.ts +3 -0
- package/dist/src/components/input/index.js +3 -0
- package/dist/src/components/input/input.component.d.ts +174 -0
- package/dist/src/components/input/input.component.js +490 -0
- package/dist/src/components/input/input.style.d.ts +2 -0
- package/dist/src/components/input/input.style.js +810 -0
- package/dist/src/components/input/input.types.d.ts +127 -0
- package/dist/src/components/input/input.types.js +75 -0
- package/dist/src/components/input/react.d.ts +9 -0
- package/dist/src/components/input/react.js +16 -0
- package/dist/src/components/input/validation.d.ts +3 -0
- package/dist/src/components/input/validation.js +3 -0
- package/dist/src/components/kv-secret-select/bundle.js +183 -0
- package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
- package/dist/src/components/kv-secret-select/index.d.ts +2 -0
- package/dist/src/components/kv-secret-select/index.js +2 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +83 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.js +360 -0
- package/dist/src/components/label/bundle.js +104 -0
- package/dist/src/components/label/bundle.js.gz +0 -0
- package/dist/src/components/label/index.d.ts +2 -0
- package/dist/src/components/label/index.js +2 -0
- package/dist/src/components/label/label.component.d.ts +18 -0
- package/dist/src/components/label/label.component.js +64 -0
- package/dist/src/components/label/label.style.d.ts +3 -0
- package/dist/src/components/label/label.style.js +70 -0
- package/dist/src/components/label/label.style.variables.d.ts +2 -0
- package/dist/src/components/label/label.style.variables.js +35 -0
- package/dist/src/components/label/label.types.d.ts +42 -0
- package/dist/src/components/label/label.types.js +2 -0
- package/dist/src/components/label/react.d.ts +339 -0
- package/dist/src/components/label/react.js +12 -0
- package/dist/src/components/layout/bundle.js +220 -0
- package/dist/src/components/layout/bundle.js.gz +0 -0
- package/dist/src/components/layout/content.component.d.ts +35 -0
- package/dist/src/components/layout/content.component.js +47 -0
- package/dist/src/components/layout/content.style.d.ts +2 -0
- package/dist/src/components/layout/content.style.js +17 -0
- package/dist/src/components/layout/footer.component.d.ts +38 -0
- package/dist/src/components/layout/footer.component.js +60 -0
- package/dist/src/components/layout/footer.style.d.ts +2 -0
- package/dist/src/components/layout/footer.style.js +17 -0
- package/dist/src/components/layout/header.component.d.ts +39 -0
- package/dist/src/components/layout/header.component.js +61 -0
- package/dist/src/components/layout/header.style.d.ts +2 -0
- package/dist/src/components/layout/header.style.js +19 -0
- package/dist/src/components/layout/index.d.ts +8 -0
- package/dist/src/components/layout/index.js +7 -0
- package/dist/src/components/layout/layout.component.d.ts +50 -0
- package/dist/src/components/layout/layout.component.js +89 -0
- package/dist/src/components/layout/layout.style.d.ts +2 -0
- package/dist/src/components/layout/layout.style.js +23 -0
- package/dist/src/components/layout/layout.types.d.ts +75 -0
- package/dist/src/components/layout/layout.types.js +12 -0
- package/dist/src/components/layout/react.d.ts +14 -0
- package/dist/src/components/layout/react.js +37 -0
- package/dist/src/components/layout/sider.component.d.ts +116 -0
- package/dist/src/components/layout/sider.component.js +273 -0
- package/dist/src/components/layout/sider.style.d.ts +2 -0
- package/dist/src/components/layout/sider.style.js +104 -0
- package/dist/src/components/menu/bundle.js +520 -0
- package/dist/src/components/menu/bundle.js.gz +0 -0
- package/dist/src/components/menu/index.d.ts +4 -0
- package/dist/src/components/menu/index.js +2 -0
- package/dist/src/components/menu/menu.component.d.ts +87 -0
- package/dist/src/components/menu/menu.component.js +596 -0
- package/dist/src/components/menu/menu.constants.d.ts +12 -0
- package/dist/src/components/menu/menu.constants.js +14 -0
- package/dist/src/components/menu/menu.style.d.ts +2 -0
- package/dist/src/components/menu/menu.style.js +372 -0
- package/dist/src/components/menu/menu.types.d.ts +66 -0
- package/dist/src/components/menu/menu.types.js +7 -0
- package/dist/src/components/menu/react.d.ts +5 -0
- package/dist/src/components/menu/react.js +12 -0
- package/dist/src/components/modal/bundle.js +442 -0
- package/dist/src/components/modal/bundle.js.gz +0 -0
- package/dist/src/components/modal/index.d.ts +10 -0
- package/dist/src/components/modal/index.js +10 -0
- package/dist/src/components/modal/modal-manager.d.ts +72 -0
- package/dist/src/components/modal/modal-manager.js +170 -0
- package/dist/src/components/modal/modal.component.d.ts +121 -0
- package/dist/src/components/modal/modal.component.js +461 -0
- package/dist/src/components/modal/modal.style.d.ts +9 -0
- package/dist/src/components/modal/modal.style.js +369 -0
- package/dist/src/components/modal/modal.types.d.ts +105 -0
- package/dist/src/components/modal/modal.types.js +93 -0
- package/dist/src/components/modal/react.d.ts +9 -0
- package/dist/src/components/modal/react.js +16 -0
- package/dist/src/components/panel/bundle.js +1075 -0
- package/dist/src/components/panel/bundle.js.gz +0 -0
- package/dist/src/components/panel/index.d.ts +9 -0
- package/dist/src/components/panel/index.js +9 -0
- package/dist/src/components/panel/panel.component.d.ts +199 -0
- package/dist/src/components/panel/panel.component.js +720 -0
- package/dist/src/components/panel/panel.style.d.ts +7 -0
- package/dist/src/components/panel/panel.style.js +497 -0
- package/dist/src/components/panel/panel.types.d.ts +94 -0
- package/dist/src/components/panel/panel.types.js +50 -0
- package/dist/src/components/panel/react.d.ts +11 -0
- package/dist/src/components/panel/react.js +18 -0
- package/dist/src/components/popconfirm/bundle.js +438 -0
- package/dist/src/components/popconfirm/bundle.js.gz +0 -0
- package/dist/src/components/popconfirm/index.d.ts +4 -0
- package/dist/src/components/popconfirm/index.js +4 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +129 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.js +372 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.d.ts +2 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.js +137 -0
- package/dist/src/components/popconfirm/popconfirm.component.d.ts +179 -0
- package/dist/src/components/popconfirm/popconfirm.component.js +409 -0
- package/dist/src/components/popconfirm/popconfirm.style.d.ts +2 -0
- package/dist/src/components/popconfirm/popconfirm.style.js +207 -0
- package/dist/src/components/popconfirm/popconfirm.types.d.ts +104 -0
- package/dist/src/components/popconfirm/popconfirm.types.js +2 -0
- package/dist/src/components/popconfirm/react.d.ts +7 -0
- package/dist/src/components/popconfirm/react.js +14 -0
- package/dist/src/components/radio/bundle.js +180 -0
- package/dist/src/components/radio/bundle.js.gz +0 -0
- package/dist/src/components/radio/index.d.ts +3 -0
- package/dist/src/components/radio/index.js +3 -0
- package/dist/src/components/radio/radio.component.d.ts +70 -0
- package/dist/src/components/radio/radio.component.js +187 -0
- package/dist/src/components/radio/radio.style.d.ts +7 -0
- package/dist/src/components/radio/radio.style.js +149 -0
- package/dist/src/components/radio/radio.types.d.ts +14 -0
- package/dist/src/components/radio/radio.types.js +15 -0
- package/dist/src/components/radio/react.d.ts +12 -0
- package/dist/src/components/radio/react.js +19 -0
- package/dist/src/components/radio-group/bundle.js +430 -0
- package/dist/src/components/radio-group/bundle.js.gz +0 -0
- package/dist/src/components/radio-group/index.d.ts +3 -0
- package/dist/src/components/radio-group/index.js +3 -0
- package/dist/src/components/radio-group/radio-group.component.d.ts +165 -0
- package/dist/src/components/radio-group/radio-group.component.js +437 -0
- package/dist/src/components/radio-group/radio-group.style.d.ts +7 -0
- package/dist/src/components/radio-group/radio-group.style.js +270 -0
- package/dist/src/components/radio-group/radio-group.types.d.ts +39 -0
- package/dist/src/components/radio-group/radio-group.types.js +29 -0
- package/dist/src/components/radio-group/radio.constant.d.ts +2 -0
- package/dist/src/components/radio-group/radio.constant.js +2 -0
- package/dist/src/components/radio-group/react.d.ts +10 -0
- package/dist/src/components/radio-group/react.js +17 -0
- package/dist/src/components/select/bundle.js +721 -0
- package/dist/src/components/select/bundle.js.gz +0 -0
- package/dist/src/components/select/index.d.ts +17 -0
- package/dist/src/components/select/index.js +20 -0
- package/dist/src/components/select/react.d.ts +19 -0
- package/dist/src/components/select/react.js +26 -0
- package/dist/src/components/select/select.component.d.ts +359 -0
- package/dist/src/components/select/select.component.js +775 -0
- package/dist/src/components/select/select.constant.d.ts +133 -0
- package/dist/src/components/select/select.constant.js +136 -0
- package/dist/src/components/select/select.style.d.ts +2 -0
- package/dist/src/components/select/select.style.js +533 -0
- package/dist/src/components/select/select.types.d.ts +100 -0
- package/dist/src/components/select/select.types.js +73 -0
- package/dist/src/components/skeleton/bundle.js +293 -0
- package/dist/src/components/skeleton/bundle.js.gz +0 -0
- package/dist/src/components/skeleton/index.d.ts +3 -0
- package/dist/src/components/skeleton/index.js +3 -0
- package/dist/src/components/skeleton/react.d.ts +3 -0
- package/dist/src/components/skeleton/react.js +10 -0
- package/dist/src/components/skeleton/skeleton.component.d.ts +165 -0
- package/dist/src/components/skeleton/skeleton.component.js +387 -0
- package/dist/src/components/skeleton/skeleton.style.d.ts +2 -0
- package/dist/src/components/skeleton/skeleton.style.js +224 -0
- package/dist/src/components/skeleton/skeleton.types.d.ts +82 -0
- package/dist/src/components/skeleton/skeleton.types.js +2 -0
- package/dist/src/components/slider-input/bundle.js +241 -0
- package/dist/src/components/slider-input/bundle.js.gz +0 -0
- package/dist/src/components/slider-input/index.d.ts +3 -0
- package/dist/src/components/slider-input/index.js +3 -0
- package/dist/src/components/slider-input/react.d.ts +340 -0
- package/dist/src/components/slider-input/react.js +13 -0
- package/dist/src/components/slider-input/slider-input.component.d.ts +38 -0
- package/dist/src/components/slider-input/slider-input.component.js +191 -0
- package/dist/src/components/slider-input/slider-input.style.d.ts +3 -0
- package/dist/src/components/slider-input/slider-input.style.js +171 -0
- package/dist/src/components/slider-input/slider-input.style.variables.d.ts +2 -0
- package/dist/src/components/slider-input/slider-input.style.variables.js +59 -0
- package/dist/src/components/slider-input/slider-input.types.d.ts +21 -0
- package/dist/src/components/slider-input/slider-input.types.js +6 -0
- package/dist/src/components/table/bundle.js +987 -0
- package/dist/src/components/table/bundle.js.gz +0 -0
- package/dist/src/components/table/index.d.ts +2 -0
- package/dist/src/components/table/index.js +2 -0
- package/dist/src/components/table/react.d.ts +7 -0
- package/dist/src/components/table/react.js +14 -0
- package/dist/src/components/table/table.component.d.ts +140 -0
- package/dist/src/components/table/table.component.js +433 -0
- package/dist/src/components/table/table.style.d.ts +3 -0
- package/dist/src/components/table/table.style.js +702 -0
- package/dist/src/components/table/table.types.d.ts +103 -0
- package/dist/src/components/table/table.types.js +2 -0
- package/dist/src/components/tabs/bundle.js +1782 -0
- package/dist/src/components/tabs/bundle.js.gz +0 -0
- package/dist/src/components/tabs/index.d.ts +9 -0
- package/dist/src/components/tabs/index.js +10 -0
- package/dist/src/components/tabs/react.d.ts +50 -0
- package/dist/src/components/tabs/react.js +50 -0
- package/dist/src/components/tabs/tabs.component.d.ts +100 -0
- package/dist/src/components/tabs/tabs.component.js +461 -0
- package/dist/src/components/tabs/tabs.constant.d.ts +20 -0
- package/dist/src/components/tabs/tabs.constant.js +21 -0
- package/dist/src/components/tabs/tabs.style.d.ts +9 -0
- package/dist/src/components/tabs/tabs.style.js +577 -0
- package/dist/src/components/tabs/tabs.types.d.ts +241 -0
- package/dist/src/components/tabs/tabs.types.js +13 -0
- package/dist/src/components/tag/bundle.js +108 -0
- package/dist/src/components/tag/bundle.js.gz +0 -0
- package/dist/src/components/tag/index.d.ts +2 -0
- package/dist/src/components/tag/index.js +2 -0
- package/dist/src/components/tag/react.d.ts +6 -0
- package/dist/src/components/tag/react.js +13 -0
- package/dist/src/components/tag/tag.component.d.ts +57 -0
- package/dist/src/components/tag/tag.component.js +157 -0
- package/dist/src/components/tag/tag.style.d.ts +7 -0
- package/dist/src/components/tag/tag.style.js +88 -0
- package/dist/src/components/tag/tag.types.d.ts +28 -0
- package/dist/src/components/tag/tag.types.js +7 -0
- package/dist/src/components/textarea/bundle.js +404 -0
- package/dist/src/components/textarea/bundle.js.gz +0 -0
- package/dist/src/components/textarea/index.d.ts +8 -0
- package/dist/src/components/textarea/index.js +7 -0
- package/dist/src/components/textarea/react.d.ts +9 -0
- package/dist/src/components/textarea/react.js +16 -0
- package/dist/src/components/textarea/textarea.component.d.ts +203 -0
- package/dist/src/components/textarea/textarea.component.js +657 -0
- package/dist/src/components/textarea/textarea.style.d.ts +59 -0
- package/dist/src/components/textarea/textarea.style.js +386 -0
- package/dist/src/components/textarea/textarea.types.d.ts +102 -0
- package/dist/src/components/textarea/textarea.types.js +14 -0
- package/dist/src/components/timeline/bundle.js +261 -0
- package/dist/src/components/timeline/bundle.js.gz +0 -0
- package/dist/src/components/timeline/index.d.ts +2 -0
- package/dist/src/components/timeline/index.js +2 -0
- package/dist/src/components/timeline/react.d.ts +3 -0
- package/dist/src/components/timeline/react.js +10 -0
- package/dist/src/components/timeline/timeline.component.d.ts +109 -0
- package/dist/src/components/timeline/timeline.component.js +214 -0
- package/dist/src/components/timeline/timeline.style.d.ts +14 -0
- package/dist/src/components/timeline/timeline.style.js +234 -0
- package/dist/src/components/timeline/timeline.types.d.ts +62 -0
- package/dist/src/components/timeline/timeline.types.js +7 -0
- package/dist/src/components/timepicker/bundle.js +810 -0
- package/dist/src/components/timepicker/bundle.js.gz +0 -0
- package/dist/src/components/timepicker/index.d.ts +12 -0
- package/dist/src/components/timepicker/index.js +12 -0
- package/dist/src/components/timepicker/timepicker.component.d.ts +115 -0
- package/dist/src/components/timepicker/timepicker.component.js +743 -0
- package/dist/src/components/timepicker/timepicker.constants.d.ts +85 -0
- package/dist/src/components/timepicker/timepicker.constants.js +85 -0
- package/dist/src/components/timepicker/timepicker.style.d.ts +7 -0
- package/dist/src/components/timepicker/timepicker.style.js +568 -0
- package/dist/src/components/timepicker/timepicker.style.variables.d.ts +2 -0
- package/dist/src/components/timepicker/timepicker.style.variables.js +122 -0
- package/dist/src/components/timepicker/timepicker.types.d.ts +161 -0
- package/dist/src/components/timepicker/timepicker.types.js +125 -0
- package/dist/src/components/toast/bundle.js +393 -0
- package/dist/src/components/toast/bundle.js.gz +0 -0
- package/dist/src/components/toast/index.d.ts +9 -0
- package/dist/src/components/toast/index.js +9 -0
- package/dist/src/components/toast/react.d.ts +7 -0
- package/dist/src/components/toast/react.js +19 -0
- package/dist/src/components/toast/toast.component.d.ts +152 -0
- package/dist/src/components/toast/toast.component.js +368 -0
- package/dist/src/components/toast/toast.style.d.ts +14 -0
- package/dist/src/components/toast/toast.style.js +338 -0
- package/dist/src/components/toast/toast.types.d.ts +124 -0
- package/dist/src/components/toast/toast.types.js +9 -0
- package/dist/src/components/tooltips/bundle.js +123 -0
- package/dist/src/components/tooltips/bundle.js.gz +0 -0
- package/dist/src/components/tooltips/index.d.ts +2 -0
- package/dist/src/components/tooltips/index.js +2 -0
- package/dist/src/components/tooltips/react.d.ts +1 -0
- package/dist/src/components/tooltips/react.js +2 -0
- package/dist/src/components/tooltips/tooltips.component.d.ts +33 -0
- package/dist/src/components/tooltips/tooltips.component.js +313 -0
- package/dist/src/components/tooltips/tooltips.constant.d.ts +13 -0
- package/dist/src/components/tooltips/tooltips.constant.js +15 -0
- package/dist/src/components/tooltips/tooltips.style.d.ts +2 -0
- package/dist/src/components/tooltips/tooltips.style.js +103 -0
- package/dist/src/components/tooltips/tooltips.variables.d.ts +2 -0
- package/dist/src/components/tooltips/tooltips.variables.js +14 -0
- package/dist/src/components/video/bundle.js +171 -0
- package/dist/src/components/video/bundle.js.gz +0 -0
- package/dist/src/components/video/index.d.ts +3 -0
- package/dist/src/components/video/index.js +3 -0
- package/dist/src/components/video/react.d.ts +10 -0
- package/dist/src/components/video/react.js +17 -0
- package/dist/src/components/video/video.component.d.ts +34 -0
- package/dist/src/components/video/video.component.js +184 -0
- package/dist/src/components/video/video.style.d.ts +3 -0
- package/dist/src/components/video/video.style.js +124 -0
- package/dist/src/components/video/video.types.d.ts +80 -0
- package/dist/src/components/video/video.types.js +7 -0
- package/package.json +215 -0
- package/packages/common/README.md +137 -0
- package/packages/common/dist/LICENSE +28 -0
- package/packages/common/dist/README.md +137 -0
- package/packages/common/dist/VERSIONS.md +4 -0
- package/packages/common/dist/constants/index.d.ts +2 -0
- package/packages/common/dist/constants/index.d.ts.map +1 -0
- package/packages/common/dist/constants/index.js +2 -0
- package/packages/common/dist/constants/index.js.map +1 -0
- package/packages/common/dist/constants.d.ts +17 -0
- package/packages/common/dist/constants.d.ts.map +1 -0
- package/packages/common/dist/constants.js +7 -0
- package/packages/common/dist/constants.js.map +1 -0
- package/packages/common/dist/controllers/index.d.ts +2 -0
- package/packages/common/dist/controllers/index.d.ts.map +1 -0
- package/packages/common/dist/controllers/index.js +2 -0
- package/packages/common/dist/controllers/index.js.map +1 -0
- package/packages/common/dist/controllers.d.ts +21 -0
- package/packages/common/dist/controllers.d.ts.map +1 -0
- package/packages/common/dist/controllers.js +22 -0
- package/packages/common/dist/controllers.js.map +1 -0
- package/packages/common/dist/index.d.ts +25 -0
- package/packages/common/dist/index.d.ts.map +1 -0
- package/packages/common/dist/index.js +27 -0
- package/packages/common/dist/index.js.map +1 -0
- package/packages/common/dist/mixins/index.d.ts +2 -0
- package/packages/common/dist/mixins/index.d.ts.map +1 -0
- package/packages/common/dist/mixins/index.js +3 -0
- package/packages/common/dist/mixins/index.js.map +1 -0
- package/packages/common/dist/mixins.d.ts +26 -0
- package/packages/common/dist/mixins.d.ts.map +1 -0
- package/packages/common/dist/mixins.js +29 -0
- package/packages/common/dist/mixins.js.map +1 -0
- package/packages/common/dist/shared/base-mixin.d.ts +42 -0
- package/packages/common/dist/shared/base-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/base-mixin.js +38 -0
- package/packages/common/dist/shared/base-mixin.js.map +1 -0
- package/packages/common/dist/shared/constants.d.ts +1 -0
- package/packages/common/dist/shared/constants.d.ts.map +1 -0
- package/packages/common/dist/shared/constants.js +2 -0
- package/packages/common/dist/shared/constants.js.map +1 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.d.ts +81 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.js +104 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.js.map +1 -0
- package/packages/common/dist/shared/controllers/base.controller.d.ts +76 -0
- package/packages/common/dist/shared/controllers/base.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/base.controller.js +129 -0
- package/packages/common/dist/shared/controllers/base.controller.js.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.d.ts +77 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.js +341 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.js.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.d.ts +37 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.js +2 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.js.map +1 -0
- package/packages/common/dist/shared/controllers/index.d.ts +6 -0
- package/packages/common/dist/shared/controllers/index.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/index.js +6 -0
- package/packages/common/dist/shared/controllers/index.js.map +1 -0
- package/packages/common/dist/shared/controllers/theme.controller.d.ts +48 -0
- package/packages/common/dist/shared/controllers/theme.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/theme.controller.js +133 -0
- package/packages/common/dist/shared/controllers/theme.controller.js.map +1 -0
- package/packages/common/dist/shared/dependency-mixin.d.ts +37 -0
- package/packages/common/dist/shared/dependency-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/dependency-mixin.js +141 -0
- package/packages/common/dist/shared/dependency-mixin.js.map +1 -0
- package/packages/common/dist/shared/event-handler-mixin.d.ts +64 -0
- package/packages/common/dist/shared/event-handler-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/event-handler-mixin.js +95 -0
- package/packages/common/dist/shared/event-handler-mixin.js.map +1 -0
- package/packages/common/dist/shared/index.d.ts +13 -0
- package/packages/common/dist/shared/index.d.ts.map +1 -0
- package/packages/common/dist/shared/index.js +17 -0
- package/packages/common/dist/shared/index.js.map +1 -0
- package/packages/common/dist/shared/render-utils.d.ts +103 -0
- package/packages/common/dist/shared/render-utils.d.ts.map +1 -0
- package/packages/common/dist/shared/render-utils.js +132 -0
- package/packages/common/dist/shared/render-utils.js.map +1 -0
- package/packages/common/dist/shared/theme-mixin.d.ts +78 -0
- package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/theme-mixin.js +194 -0
- package/packages/common/dist/shared/theme-mixin.js.map +1 -0
- package/packages/common/dist/shared/themes.d.ts +44 -0
- package/packages/common/dist/shared/themes.d.ts.map +1 -0
- package/packages/common/dist/shared/themes.js +85 -0
- package/packages/common/dist/shared/themes.js.map +1 -0
- package/packages/common/dist/shared/utils.d.ts +60 -0
- package/packages/common/dist/shared/utils.d.ts.map +1 -0
- package/packages/common/dist/shared/utils.js +85 -0
- package/packages/common/dist/shared/utils.js.map +1 -0
- package/packages/common/dist/shared/validation.types.d.ts +108 -0
- package/packages/common/dist/shared/validation.types.d.ts.map +1 -0
- package/packages/common/dist/shared/validation.types.js +17 -0
- package/packages/common/dist/shared/validation.types.js.map +1 -0
- package/packages/common/dist/themes/index.d.ts +2 -0
- package/packages/common/dist/themes/index.d.ts.map +1 -0
- package/packages/common/dist/themes/index.js +2 -0
- package/packages/common/dist/themes/index.js.map +1 -0
- package/packages/common/dist/themes.d.ts +22 -0
- package/packages/common/dist/themes.d.ts.map +1 -0
- package/packages/common/dist/themes.js +23 -0
- package/packages/common/dist/themes.js.map +1 -0
- package/packages/common/dist/utils/index.d.ts +2 -0
- package/packages/common/dist/utils/index.d.ts.map +1 -0
- package/packages/common/dist/utils/index.js +2 -0
- package/packages/common/dist/utils/index.js.map +1 -0
- package/packages/common/dist/utils.d.ts +22 -0
- package/packages/common/dist/utils.d.ts.map +1 -0
- package/packages/common/dist/utils.js +24 -0
- package/packages/common/dist/utils.js.map +1 -0
- package/packages/themes/README.md +146 -0
- package/packages/themes/dist/README.md +146 -0
- package/packages/themes/dist/carbon.css +2987 -0
- package/packages/themes/dist/default.css +2757 -0
- package/packages/themes/dist/editor.css +1063 -0
- package/packages/themes/dist/index.cjs +46 -0
- package/packages/themes/dist/index.js +46 -0
- package/packages/themes/dist/package.json +59 -0
|
Binary file
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
8
|
+
// @ts-nocheck
|
|
9
|
+
import { LitElement, html, css } from 'lit';
|
|
10
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
11
|
+
let NodeRedCanvas = class NodeRedCanvas extends LitElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.nodes = [
|
|
15
|
+
{ id: 1, x: 100, y: 100, label: 'Node 1' },
|
|
16
|
+
{ id: 2, x: 300, y: 150, label: 'Node 2' },
|
|
17
|
+
{ id: 4, x: 600, y: 250, label: 'Node 3' },
|
|
18
|
+
];
|
|
19
|
+
this.connections = [{ from: 1, to: 2 }];
|
|
20
|
+
this.activeNode = null;
|
|
21
|
+
this.connectionStart = null;
|
|
22
|
+
this.offsetX = 0;
|
|
23
|
+
this.offsetY = 0;
|
|
24
|
+
this.startPos = null;
|
|
25
|
+
this.canvas = null;
|
|
26
|
+
this.ctx = null;
|
|
27
|
+
this.dragNode = (e) => {
|
|
28
|
+
if (this.activeNode) {
|
|
29
|
+
this.activeNode.x = e.clientX - this.offsetX;
|
|
30
|
+
this.activeNode.y = e.clientY - this.offsetY;
|
|
31
|
+
this.requestUpdate();
|
|
32
|
+
this.drawConnections();
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
this.stopDragging = () => {
|
|
36
|
+
this.activeNode = null;
|
|
37
|
+
window.removeEventListener('mousemove', this.dragNode); // Remove mousemove listener
|
|
38
|
+
window.removeEventListener('mouseup', this.stopDragging); // Remove mouseup listener
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return html `
|
|
43
|
+
<div class="container">
|
|
44
|
+
<div class="canvas-container">
|
|
45
|
+
<!--button class="add-button" @click="${this.addNode}">+</button-->
|
|
46
|
+
<canvas
|
|
47
|
+
id="canvas"
|
|
48
|
+
width="1100"
|
|
49
|
+
height="760"
|
|
50
|
+
@mousedown="${this.startConnecting}"
|
|
51
|
+
@mousemove="${this.drawTemporaryLine}"
|
|
52
|
+
@mouseup="${this.stopConnecting}"
|
|
53
|
+
@dblclick="${this.createNodeOnDoubleClick}"
|
|
54
|
+
></canvas>
|
|
55
|
+
${this.nodes.map((node) => html `
|
|
56
|
+
<div
|
|
57
|
+
class="node"
|
|
58
|
+
style="top: ${node.y}px; left: ${node.x}px;"
|
|
59
|
+
@mousedown="${(e) => this.startDragging(e, node)}"
|
|
60
|
+
>
|
|
61
|
+
${node.label}
|
|
62
|
+
<div class="port out-port" @mousedown="${(e) => this.startConnecting(e, node, 'out')}"></div>
|
|
63
|
+
<div class="port in-port" @mouseup="${(e) => this.stopConnecting(e, node, 'in')}"></div>
|
|
64
|
+
</div>
|
|
65
|
+
`)}
|
|
66
|
+
</div>
|
|
67
|
+
<!--div class="json-container">
|
|
68
|
+
<h3>Canvas JSON</h3>
|
|
69
|
+
<pre>${this.renderJSON()}</pre>
|
|
70
|
+
</div-->
|
|
71
|
+
</div>
|
|
72
|
+
`;
|
|
73
|
+
}
|
|
74
|
+
renderJSON() {
|
|
75
|
+
const jsonData = {
|
|
76
|
+
nodes: this.nodes,
|
|
77
|
+
connections: this.connections,
|
|
78
|
+
};
|
|
79
|
+
return JSON.stringify(jsonData, null, 2);
|
|
80
|
+
}
|
|
81
|
+
firstUpdated() {
|
|
82
|
+
this.canvas = this.renderRoot.querySelector('#canvas');
|
|
83
|
+
this.ctx = this.canvas.getContext('2d');
|
|
84
|
+
this.drawConnections();
|
|
85
|
+
}
|
|
86
|
+
startDragging(e, node) {
|
|
87
|
+
if (this.connectionStart)
|
|
88
|
+
return; // Prevent dragging if connection is in progress
|
|
89
|
+
this.activeNode = node;
|
|
90
|
+
this.offsetX = e.clientX - node.x;
|
|
91
|
+
this.offsetY = e.clientY - node.y;
|
|
92
|
+
window.addEventListener('mousemove', this.dragNode);
|
|
93
|
+
window.addEventListener('mouseup', this.stopDragging); // Listen for mouseup to stop dragging
|
|
94
|
+
}
|
|
95
|
+
startConnecting(e, node, portType) {
|
|
96
|
+
e.stopPropagation(); // Prevent the mousedown event from triggering dragging
|
|
97
|
+
if (portType === 'out') {
|
|
98
|
+
// Only set the connection start if it's an 'out' port
|
|
99
|
+
this.connectionStart = { node, portType };
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
isConnectionExists(fromId, toId) {
|
|
103
|
+
return this.connections.some((connection) => connection.from === fromId && connection.to === toId);
|
|
104
|
+
}
|
|
105
|
+
stopConnecting(e, node, portType) {
|
|
106
|
+
if (!this.connectionStart)
|
|
107
|
+
return; // No connection in progress
|
|
108
|
+
const { node: startNode, portType: startPort } = this.connectionStart;
|
|
109
|
+
if (startPort === 'out' &&
|
|
110
|
+
portType === 'in' &&
|
|
111
|
+
startNode.id !== node.id) {
|
|
112
|
+
if (!this.isConnectionExists(startNode.id, node.id)) {
|
|
113
|
+
this.connections = [
|
|
114
|
+
...this.connections,
|
|
115
|
+
{ from: startNode.id, to: node.id },
|
|
116
|
+
];
|
|
117
|
+
this.drawConnections();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// Reset connection state
|
|
121
|
+
this.connectionStart = null;
|
|
122
|
+
}
|
|
123
|
+
drawTemporaryLine(e) {
|
|
124
|
+
if (!this.connectionStart)
|
|
125
|
+
return; // No connection in progress
|
|
126
|
+
const { node: startNode, portType: startPort } = this.connectionStart;
|
|
127
|
+
const rect = this.canvas.getBoundingClientRect();
|
|
128
|
+
const endPos = { x: e.clientX - rect.left, y: e.clientY - rect.top };
|
|
129
|
+
// Draw the temporary line from the port to the mouse position
|
|
130
|
+
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
131
|
+
this.drawConnections(); // Redraw the existing connections
|
|
132
|
+
if (startPort === 'out') {
|
|
133
|
+
const startX = startNode.x + 95; // position of the 'out' port
|
|
134
|
+
const startY = startNode.y + 15; // vertical center of the 'out' port
|
|
135
|
+
this.ctx.beginPath();
|
|
136
|
+
this.ctx.moveTo(startX, startY);
|
|
137
|
+
this.ctx.lineTo(endPos.x, endPos.y); // Temporary line to mouse position
|
|
138
|
+
this.ctx.strokeStyle = '#3498db';
|
|
139
|
+
this.ctx.lineWidth = 2;
|
|
140
|
+
this.ctx.stroke();
|
|
141
|
+
// Draw the arrowhead on the temporary line
|
|
142
|
+
const angle = Math.atan2(endPos.y - startY, endPos.x - startX);
|
|
143
|
+
const arrowSize = 10;
|
|
144
|
+
this.ctx.beginPath();
|
|
145
|
+
this.ctx.moveTo(endPos.x, endPos.y);
|
|
146
|
+
this.ctx.lineTo(endPos.x - arrowSize * Math.cos(angle - Math.PI / 6), endPos.y - arrowSize * Math.sin(angle - Math.PI / 6));
|
|
147
|
+
this.ctx.lineTo(endPos.x - arrowSize * Math.cos(angle + Math.PI / 6), endPos.y - arrowSize * Math.sin(angle + Math.PI / 6));
|
|
148
|
+
this.ctx.closePath();
|
|
149
|
+
this.ctx.fillStyle = '#3498db';
|
|
150
|
+
this.ctx.fill();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
drawConnections() {
|
|
154
|
+
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
155
|
+
this.connections.forEach((connection) => {
|
|
156
|
+
const fromNode = this.nodes.find((node) => node.id === connection.from);
|
|
157
|
+
const toNode = this.nodes.find((node) => node.id === connection.to);
|
|
158
|
+
if (fromNode && toNode) {
|
|
159
|
+
const fromX = fromNode.x + 95; // 'out' port x position
|
|
160
|
+
const fromY = fromNode.y + 15; // 'out' port y position (center)
|
|
161
|
+
const toX = toNode.x - 5; // 'in' port x position
|
|
162
|
+
const toY = toNode.y + 15; // 'in' port y position (center)
|
|
163
|
+
// Draw the line
|
|
164
|
+
this.ctx.beginPath();
|
|
165
|
+
this.ctx.moveTo(fromX, fromY);
|
|
166
|
+
this.ctx.lineTo(toX, toY);
|
|
167
|
+
this.ctx.strokeStyle = '#3498db';
|
|
168
|
+
this.ctx.lineWidth = 2;
|
|
169
|
+
this.ctx.stroke();
|
|
170
|
+
// Draw the arrowhead
|
|
171
|
+
const angle = Math.atan2(toY - fromY, toX - fromX);
|
|
172
|
+
const arrowSize = 10;
|
|
173
|
+
this.ctx.beginPath();
|
|
174
|
+
this.ctx.moveTo(toX, toY);
|
|
175
|
+
this.ctx.lineTo(toX - arrowSize * Math.cos(angle - Math.PI / 6), toY - arrowSize * Math.sin(angle - Math.PI / 6));
|
|
176
|
+
this.ctx.lineTo(toX - arrowSize * Math.cos(angle + Math.PI / 6), toY - arrowSize * Math.sin(angle + Math.PI / 6));
|
|
177
|
+
this.ctx.closePath();
|
|
178
|
+
this.ctx.fillStyle = '#3498db';
|
|
179
|
+
this.ctx.fill();
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
createNodeOnDoubleClick(e) {
|
|
184
|
+
const rect = this.canvas.getBoundingClientRect();
|
|
185
|
+
const mouseX = e.clientX - rect.left;
|
|
186
|
+
const mouseY = e.clientY - rect.top;
|
|
187
|
+
// Check if the position is not too close to an existing node
|
|
188
|
+
const overlappingNode = this.nodes.find((node) => Math.abs(mouseX - node.x) < 100 && Math.abs(mouseY - node.y) < 50);
|
|
189
|
+
if (!overlappingNode) {
|
|
190
|
+
const newNode = {
|
|
191
|
+
id: this.nodes.length + 1,
|
|
192
|
+
x: mouseX - 50, // Center the node at the clicked position
|
|
193
|
+
y: mouseY - 25,
|
|
194
|
+
label: `Node ${this.nodes.length + 1}`,
|
|
195
|
+
};
|
|
196
|
+
this.nodes = [...this.nodes, newNode];
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
addNode() {
|
|
200
|
+
const newNode = {
|
|
201
|
+
id: this.nodes.length + 1,
|
|
202
|
+
x: 50,
|
|
203
|
+
y: 50,
|
|
204
|
+
label: `Node ${this.nodes.length + 1}`,
|
|
205
|
+
};
|
|
206
|
+
this.nodes = [...this.nodes, newNode];
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
NodeRedCanvas.styles = css `
|
|
210
|
+
.container {
|
|
211
|
+
display: flex;
|
|
212
|
+
justify-content: space-between;
|
|
213
|
+
}
|
|
214
|
+
.canvas-container {
|
|
215
|
+
position: relative;
|
|
216
|
+
}
|
|
217
|
+
canvas {
|
|
218
|
+
border: none; /* Removed the border */
|
|
219
|
+
cursor: crosshair;
|
|
220
|
+
background: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(200, 200, 200, 0.1) 20px, rgba(200, 200, 200, 0.1) 21px),
|
|
221
|
+
repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(200, 200, 200, 0.1) 20px, rgba(200, 200, 200, 0.1) 21px);
|
|
222
|
+
}
|
|
223
|
+
.node {
|
|
224
|
+
position: absolute;
|
|
225
|
+
width: 100px;
|
|
226
|
+
height: 30px;
|
|
227
|
+
background: #434343;
|
|
228
|
+
color: white;
|
|
229
|
+
text-align: center;
|
|
230
|
+
line-height: 30px;
|
|
231
|
+
border-radius: 5px;
|
|
232
|
+
user-select: none;
|
|
233
|
+
cursor: move;
|
|
234
|
+
}
|
|
235
|
+
.port {
|
|
236
|
+
position: absolute;
|
|
237
|
+
width: 10px;
|
|
238
|
+
height: 10px;
|
|
239
|
+
border-radius: 50%;
|
|
240
|
+
cursor: pointer;
|
|
241
|
+
}
|
|
242
|
+
.out-port {
|
|
243
|
+
top: 10px;
|
|
244
|
+
right: -5px;
|
|
245
|
+
background: #3498db; /* Blue color for the output port */
|
|
246
|
+
}
|
|
247
|
+
.in-port {
|
|
248
|
+
top: 10px;
|
|
249
|
+
left: -5px;
|
|
250
|
+
background: #2ecc71; /* Green color for the input port */
|
|
251
|
+
}
|
|
252
|
+
.add-button {
|
|
253
|
+
position: absolute;
|
|
254
|
+
top: 10px;
|
|
255
|
+
left: 10px;
|
|
256
|
+
padding: 10px;
|
|
257
|
+
background-color: #2ecc71;
|
|
258
|
+
color: white;
|
|
259
|
+
border: none;
|
|
260
|
+
border-radius: 5px;
|
|
261
|
+
cursor: pointer;
|
|
262
|
+
}
|
|
263
|
+
.json-container {
|
|
264
|
+
width: 400px;
|
|
265
|
+
margin-left: 20px;
|
|
266
|
+
padding: 10px;
|
|
267
|
+
border-radius: 5px;
|
|
268
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
269
|
+
font-family: monospace;
|
|
270
|
+
white-space: pre-wrap;
|
|
271
|
+
word-wrap: break-word;
|
|
272
|
+
}
|
|
273
|
+
`;
|
|
274
|
+
__decorate([
|
|
275
|
+
property({ type: Array })
|
|
276
|
+
], NodeRedCanvas.prototype, "nodes", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
property({ type: Array })
|
|
279
|
+
], NodeRedCanvas.prototype, "connections", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
state()
|
|
282
|
+
], NodeRedCanvas.prototype, "activeNode", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
state()
|
|
285
|
+
], NodeRedCanvas.prototype, "connectionStart", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
state()
|
|
288
|
+
], NodeRedCanvas.prototype, "canvas", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
state()
|
|
291
|
+
], NodeRedCanvas.prototype, "ctx", void 0);
|
|
292
|
+
NodeRedCanvas = __decorate([
|
|
293
|
+
customElement('nodes-canvas')
|
|
294
|
+
], NodeRedCanvas);
|
|
295
|
+
//# sourceMappingURL=canvas.component.js.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
export declare const FRAME_DEFAULT_WIDTH = 400;
|
|
7
|
+
export declare const FRAME_DEFAULT_HEIGHT = 300;
|
|
8
|
+
export declare const FRAME_DEFAULT_BG_COLOR = "rgba(99, 102, 241, 0.05)";
|
|
9
|
+
export declare const FRAME_DEFAULT_BORDER_COLOR = "rgba(99, 102, 241, 0.3)";
|
|
10
|
+
export declare const FRAME_DEFAULT_LABEL = "Group";
|
|
11
|
+
export declare const FRAME_DEFAULT_LABEL_POSITION = "top-left";
|
|
12
|
+
export declare const FRAME_DEFAULT_LABEL_PLACEMENT = "outside";
|
|
13
|
+
export declare const WORKFLOW_NODE_WIDTH = 180;
|
|
14
|
+
export declare const WORKFLOW_NODE_HEIGHT = 80;
|
|
15
|
+
export declare const WORKFLOW_NOTE_DEFAULT_WIDTH = 200;
|
|
16
|
+
export declare const WORKFLOW_NOTE_DEFAULT_HEIGHT = 100;
|
|
17
|
+
export declare const WHITEBOARD_NODE_DEFAULT_SIZE = 200;
|
|
18
|
+
export declare const NOTE_MIN_WIDTH = 100;
|
|
19
|
+
export declare const NOTE_MIN_HEIGHT = 50;
|
|
20
|
+
export declare const TABLE_DEFAULT_WIDTH = 320;
|
|
21
|
+
export declare const TABLE_DEFAULT_HEIGHT = 200;
|
|
22
|
+
export declare const TABLE_MIN_WIDTH = 200;
|
|
23
|
+
export declare const TABLE_MIN_HEIGHT = 120;
|
|
24
|
+
export declare const VIEWPORT_ADD_NODE_OFFSET_X = 400;
|
|
25
|
+
export declare const VIEWPORT_ADD_NODE_OFFSET_Y = 200;
|
|
26
|
+
export declare const TRIGGER_POLL_INTERVAL_MS = 10000;
|
|
27
|
+
export declare const PERSISTENT_TRIGGER_TYPE_NAMES: readonly ["TELEGRAM_BOT", "SLACK_SOCKET", "DISCORD_BOT", "WHATSAPP_WEBHOOK", "CUSTOM_WEBSOCKET"];
|
|
28
|
+
export declare const FILL_COLOR_PRESETS: readonly ["#fef08a", "#bbf7d0", "#bfdbfe", "#fecaca", "#e9d5ff", "#fed7aa", "#ffffff", "#f3f4f6"];
|
|
29
|
+
export declare const BORDER_COLOR_PRESETS: readonly ["#8b5cf6", "#3b82f6", "#ef4444", "#22c55e", "#f59e0b", "#6b7280", "#1a1a1a", "#e5e7eb"];
|
|
30
|
+
export declare const TEXT_COLOR_PRESETS: readonly ["#1a1a1a", "#374151", "#713f12", "#1e3a5f", "#7f1d1d", "#4c1d95", "#ffffff"];
|
|
31
|
+
export declare const FONT_FAMILY_OPTIONS: readonly [{
|
|
32
|
+
readonly value: "Inter, sans-serif";
|
|
33
|
+
readonly label: "Inter";
|
|
34
|
+
}, {
|
|
35
|
+
readonly value: "Arial, sans-serif";
|
|
36
|
+
readonly label: "Arial";
|
|
37
|
+
}, {
|
|
38
|
+
readonly value: "Georgia, serif";
|
|
39
|
+
readonly label: "Georgia";
|
|
40
|
+
}, {
|
|
41
|
+
readonly value: "Courier New, monospace";
|
|
42
|
+
readonly label: "Courier New";
|
|
43
|
+
}, {
|
|
44
|
+
readonly value: "Comic Sans MS, cursive";
|
|
45
|
+
readonly label: "Comic Sans";
|
|
46
|
+
}, {
|
|
47
|
+
readonly value: "Verdana, sans-serif";
|
|
48
|
+
readonly label: "Verdana";
|
|
49
|
+
}];
|
|
50
|
+
export declare const MERMAID_THEME_OPTIONS: readonly [{
|
|
51
|
+
readonly value: "default";
|
|
52
|
+
readonly label: "Default";
|
|
53
|
+
}, {
|
|
54
|
+
readonly value: "dark";
|
|
55
|
+
readonly label: "Dark";
|
|
56
|
+
}, {
|
|
57
|
+
readonly value: "forest";
|
|
58
|
+
readonly label: "Forest";
|
|
59
|
+
}, {
|
|
60
|
+
readonly value: "neutral";
|
|
61
|
+
readonly label: "Neutral";
|
|
62
|
+
}, {
|
|
63
|
+
readonly value: "base";
|
|
64
|
+
readonly label: "Base";
|
|
65
|
+
}];
|
|
66
|
+
//# sourceMappingURL=canvas.constants.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
// ==================== Frame Defaults ====================
|
|
7
|
+
export const FRAME_DEFAULT_WIDTH = 400;
|
|
8
|
+
export const FRAME_DEFAULT_HEIGHT = 300;
|
|
9
|
+
export const FRAME_DEFAULT_BG_COLOR = 'rgba(99, 102, 241, 0.05)';
|
|
10
|
+
export const FRAME_DEFAULT_BORDER_COLOR = 'rgba(99, 102, 241, 0.3)';
|
|
11
|
+
export const FRAME_DEFAULT_LABEL = 'Group';
|
|
12
|
+
export const FRAME_DEFAULT_LABEL_POSITION = 'top-left';
|
|
13
|
+
export const FRAME_DEFAULT_LABEL_PLACEMENT = 'outside';
|
|
14
|
+
// ==================== Node Dimensions ====================
|
|
15
|
+
export const WORKFLOW_NODE_WIDTH = 180;
|
|
16
|
+
export const WORKFLOW_NODE_HEIGHT = 80;
|
|
17
|
+
export const WORKFLOW_NOTE_DEFAULT_WIDTH = 200;
|
|
18
|
+
export const WORKFLOW_NOTE_DEFAULT_HEIGHT = 100;
|
|
19
|
+
export const WHITEBOARD_NODE_DEFAULT_SIZE = 200;
|
|
20
|
+
// ==================== Note / Table Resize Limits ====================
|
|
21
|
+
export const NOTE_MIN_WIDTH = 100;
|
|
22
|
+
export const NOTE_MIN_HEIGHT = 50;
|
|
23
|
+
export const TABLE_DEFAULT_WIDTH = 320;
|
|
24
|
+
export const TABLE_DEFAULT_HEIGHT = 200;
|
|
25
|
+
export const TABLE_MIN_WIDTH = 200;
|
|
26
|
+
export const TABLE_MIN_HEIGHT = 120;
|
|
27
|
+
// ==================== Viewport ====================
|
|
28
|
+
export const VIEWPORT_ADD_NODE_OFFSET_X = 400;
|
|
29
|
+
export const VIEWPORT_ADD_NODE_OFFSET_Y = 200;
|
|
30
|
+
// ==================== Trigger Polling ====================
|
|
31
|
+
export const TRIGGER_POLL_INTERVAL_MS = 10000;
|
|
32
|
+
export const PERSISTENT_TRIGGER_TYPE_NAMES = [
|
|
33
|
+
'TELEGRAM_BOT', 'SLACK_SOCKET', 'DISCORD_BOT', 'WHATSAPP_WEBHOOK', 'CUSTOM_WEBSOCKET',
|
|
34
|
+
];
|
|
35
|
+
// ==================== Color Presets ====================
|
|
36
|
+
export const FILL_COLOR_PRESETS = [
|
|
37
|
+
'#fef08a', '#bbf7d0', '#bfdbfe', '#fecaca', '#e9d5ff', '#fed7aa', '#ffffff', '#f3f4f6',
|
|
38
|
+
];
|
|
39
|
+
export const BORDER_COLOR_PRESETS = [
|
|
40
|
+
'#8b5cf6', '#3b82f6', '#ef4444', '#22c55e', '#f59e0b', '#6b7280', '#1a1a1a', '#e5e7eb',
|
|
41
|
+
];
|
|
42
|
+
export const TEXT_COLOR_PRESETS = [
|
|
43
|
+
'#1a1a1a', '#374151', '#713f12', '#1e3a5f', '#7f1d1d', '#4c1d95', '#ffffff',
|
|
44
|
+
];
|
|
45
|
+
// ==================== Font & Theme Options ====================
|
|
46
|
+
export const FONT_FAMILY_OPTIONS = [
|
|
47
|
+
{ value: 'Inter, sans-serif', label: 'Inter' },
|
|
48
|
+
{ value: 'Arial, sans-serif', label: 'Arial' },
|
|
49
|
+
{ value: 'Georgia, serif', label: 'Georgia' },
|
|
50
|
+
{ value: 'Courier New, monospace', label: 'Courier New' },
|
|
51
|
+
{ value: 'Comic Sans MS, cursive', label: 'Comic Sans' },
|
|
52
|
+
{ value: 'Verdana, sans-serif', label: 'Verdana' },
|
|
53
|
+
];
|
|
54
|
+
export const MERMAID_THEME_OPTIONS = [
|
|
55
|
+
{ value: 'default', label: 'Default' },
|
|
56
|
+
{ value: 'dark', label: 'Dark' },
|
|
57
|
+
{ value: 'forest', label: 'Forest' },
|
|
58
|
+
{ value: 'neutral', label: 'Neutral' },
|
|
59
|
+
{ value: 'base', label: 'Base' },
|
|
60
|
+
];
|
|
61
|
+
//# sourceMappingURL=canvas.constants.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Shared chatbot panel styles used by both workflow-canvas and whiteboard-canvas.
|
|
8
|
+
* Extracted to avoid duplication across shadow DOM boundaries.
|
|
9
|
+
*/
|
|
10
|
+
export declare const chatbotPanelStyles: import("lit").CSSResult;
|
|
11
|
+
//# sourceMappingURL=chatbot-panel.style.d.ts.map
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
/**
|
|
8
|
+
* Shared chatbot panel styles used by both workflow-canvas and whiteboard-canvas.
|
|
9
|
+
* Extracted to avoid duplication across shadow DOM boundaries.
|
|
10
|
+
*/
|
|
11
|
+
export const chatbotPanelStyles = css `
|
|
12
|
+
/* ========================================
|
|
13
|
+
* CHATBOT PANEL (AI Assistant side panel)
|
|
14
|
+
* ======================================== */
|
|
15
|
+
|
|
16
|
+
.chatbot-panel {
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
right: 0;
|
|
20
|
+
width: 380px;
|
|
21
|
+
height: 100%;
|
|
22
|
+
z-index: 999;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
background: var(--nuraly-color-layer-01, #ffffff);
|
|
26
|
+
border-left: 1px solid var(--nuraly-color-border-subtle, #e0e0e0);
|
|
27
|
+
box-shadow: var(--nuraly-shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.15));
|
|
28
|
+
animation: chatbot-panel-slide-in 0.2s ease-out;
|
|
29
|
+
/* Override canvas touch-action:none so inputs/scrolling work on mobile */
|
|
30
|
+
touch-action: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes chatbot-panel-slide-in {
|
|
34
|
+
from { transform: translateX(100%); }
|
|
35
|
+
to { transform: translateX(0); }
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.chatbot-panel-header {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
padding: var(--nuraly-spacing-2, 8px) var(--nuraly-spacing-3, 12px);
|
|
43
|
+
border-bottom: 1px solid var(--nuraly-color-border-subtle, #e0e0e0);
|
|
44
|
+
background: var(--nuraly-color-layer-02, #f8f8f8);
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.chatbot-panel-title {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: var(--nuraly-spacing-2, 8px);
|
|
52
|
+
font-family: var(--nuraly-font-family);
|
|
53
|
+
font-size: var(--nuraly-font-size-sm, 13px);
|
|
54
|
+
font-weight: var(--nuraly-font-weight-semibold, 600);
|
|
55
|
+
color: var(--nuraly-color-text-primary, #161616);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.chatbot-panel-title nr-icon {
|
|
59
|
+
color: var(--nuraly-color-interactive, #3b82f6);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.chatbot-panel-close {
|
|
63
|
+
background: none;
|
|
64
|
+
border: none;
|
|
65
|
+
color: var(--nuraly-color-text-secondary, #888);
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
padding: var(--nuraly-spacing-1, 4px);
|
|
68
|
+
min-width: 44px;
|
|
69
|
+
min-height: 44px;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
border-radius: var(--nuraly-border-radius-small, 4px);
|
|
74
|
+
transition: all var(--nuraly-transition-fast, 0.15s) ease;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.chatbot-panel-close:hover {
|
|
78
|
+
color: var(--nuraly-color-text-primary, #161616);
|
|
79
|
+
background: var(--nuraly-color-layer-hover-01, rgba(0, 0, 0, 0.05));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.chatbot-panel-content {
|
|
83
|
+
flex: 1;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
min-height: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.chatbot-panel-content nr-chatbot {
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
flex: 1;
|
|
94
|
+
min-height: 0;
|
|
95
|
+
--chatbot-border-radius: 0;
|
|
96
|
+
--chatbot-height: 100%;
|
|
97
|
+
--chatbot-min-height: 100%;
|
|
98
|
+
--nuraly-size-chatbot-min-width: 0;
|
|
99
|
+
--nuraly-size-chatbot-container-min-width: 0;
|
|
100
|
+
--nuraly-size-chatbot-input-min-width: 0;
|
|
101
|
+
--nuraly-size-chatbot-actions-min-width: 0;
|
|
102
|
+
--nuraly-spacing-05: 6px;
|
|
103
|
+
--nuraly-spacing-06: 8px;
|
|
104
|
+
--nuraly-border-radius-md: 8px;
|
|
105
|
+
--nuraly-border-width-chatbot-input: 1px;
|
|
106
|
+
--nuraly-color-chatbot-border: transparent;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.toolbar-btn {
|
|
110
|
+
position: relative;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.toolbar-badge {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: -4px;
|
|
116
|
+
right: -4px;
|
|
117
|
+
width: 16px;
|
|
118
|
+
height: 16px;
|
|
119
|
+
border-radius: 50%;
|
|
120
|
+
background: var(--nuraly-color-support-error, #da1e28);
|
|
121
|
+
color: #fff;
|
|
122
|
+
font-size: 10px;
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
line-height: 1;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Light theme for chatbot panel */
|
|
131
|
+
.chatbot-panel[data-theme="light"],
|
|
132
|
+
.chatbot-panel[data-theme="carbon-light"],
|
|
133
|
+
.chatbot-panel[data-theme="default-light"],
|
|
134
|
+
.chatbot-panel[data-theme="default"] {
|
|
135
|
+
background: var(--nuraly-color-layer-01, #ffffff);
|
|
136
|
+
border-color: var(--nuraly-color-border-subtle, #e0e0e0);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.chatbot-panel[data-theme="light"] .chatbot-panel-header,
|
|
140
|
+
.chatbot-panel[data-theme="carbon-light"] .chatbot-panel-header,
|
|
141
|
+
.chatbot-panel[data-theme="default-light"] .chatbot-panel-header,
|
|
142
|
+
.chatbot-panel[data-theme="default"] .chatbot-panel-header {
|
|
143
|
+
background: var(--nuraly-color-layer-02, #f4f4f4);
|
|
144
|
+
border-color: var(--nuraly-color-border-subtle, #e0e0e0);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.chatbot-panel[data-theme="light"] .chatbot-panel-title,
|
|
148
|
+
.chatbot-panel[data-theme="carbon-light"] .chatbot-panel-title,
|
|
149
|
+
.chatbot-panel[data-theme="default-light"] .chatbot-panel-title,
|
|
150
|
+
.chatbot-panel[data-theme="default"] .chatbot-panel-title {
|
|
151
|
+
color: var(--nuraly-color-text-primary, #161616);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Dark theme for chatbot panel */
|
|
155
|
+
.chatbot-panel[data-theme="dark"],
|
|
156
|
+
.chatbot-panel[data-theme="carbon-dark"],
|
|
157
|
+
.chatbot-panel[data-theme="default-dark"] {
|
|
158
|
+
background: var(--nuraly-color-layer-01, #262626);
|
|
159
|
+
border-color: var(--nuraly-color-border-subtle, #393939);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.chatbot-panel[data-theme="dark"] .chatbot-panel-header,
|
|
163
|
+
.chatbot-panel[data-theme="carbon-dark"] .chatbot-panel-header,
|
|
164
|
+
.chatbot-panel[data-theme="default-dark"] .chatbot-panel-header {
|
|
165
|
+
background: var(--nuraly-color-layer-02, #333333);
|
|
166
|
+
border-color: var(--nuraly-color-border-subtle, #393939);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.chatbot-panel[data-theme="dark"] .chatbot-panel-title,
|
|
170
|
+
.chatbot-panel[data-theme="carbon-dark"] .chatbot-panel-title,
|
|
171
|
+
.chatbot-panel[data-theme="default-dark"] .chatbot-panel-title {
|
|
172
|
+
color: var(--nuraly-color-text-primary, #e5e5e5);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.chatbot-panel[data-theme="dark"] .chatbot-panel-close:hover,
|
|
176
|
+
.chatbot-panel[data-theme="carbon-dark"] .chatbot-panel-close:hover,
|
|
177
|
+
.chatbot-panel[data-theme="default-dark"] .chatbot-panel-close:hover {
|
|
178
|
+
color: var(--nuraly-color-text-primary, #e5e5e5);
|
|
179
|
+
background: var(--nuraly-color-layer-hover-01, rgba(255, 255, 255, 0.1));
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Mobile: chatbot panel full-screen */
|
|
183
|
+
@media (max-width: 768px) {
|
|
184
|
+
.chatbot-panel {
|
|
185
|
+
width: 100%;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
`;
|
|
189
|
+
//# sourceMappingURL=chatbot-panel.style.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './canvas.component.js';
|
|
2
|
+
export * from './base-canvas.component.js';
|
|
3
|
+
export * from './canvas.constants.js';
|
|
4
|
+
export * from './workflow-canvas.types.js';
|
|
5
|
+
export * from './workflow-node.component.js';
|
|
6
|
+
export * from './workflow-canvas.component.js';
|
|
7
|
+
export { DataOperation, DATA_OPERATIONS, FilterOperator, FILTER_OPERATORS, DEFAULT_DATA_NODE_CONFIG, DATA_NODE_SECTIONS, DATA_OPERATIONS as DataOperations, validateDataNodeConfig, shouldShowSection, } from './data-node/data-node.types.js';
|
|
8
|
+
export { dataNodeFieldStyles } from './data-node/data-node-fields.style.js';
|
|
9
|
+
export * from './data-node/data-node-fields.component.js';
|
|
10
|
+
export { ChatbotTriggerEvent, CHATBOT_TRIGGER_EVENTS, DEFAULT_CHATBOT_TRIGGER_CONFIG, validateChatbotTriggerConfig, } from './chatbot-trigger/chatbot-trigger.types.js';
|
|
11
|
+
export { chatbotTriggerFieldStyles } from './chatbot-trigger/chatbot-trigger-fields.style.js';
|
|
12
|
+
export * from './chatbot-trigger/chatbot-trigger-fields.component.js';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Legacy canvas component
|
|
2
|
+
export * from './canvas.component.js';
|
|
3
|
+
// Base canvas class
|
|
4
|
+
export * from './base-canvas.component.js';
|
|
5
|
+
// Canvas constants
|
|
6
|
+
export * from './canvas.constants.js';
|
|
7
|
+
// Workflow canvas components
|
|
8
|
+
export * from './workflow-canvas.types.js';
|
|
9
|
+
export * from './workflow-node.component.js';
|
|
10
|
+
export * from './workflow-canvas.component.js';
|
|
11
|
+
// Data node components and types - re-export runtime values only
|
|
12
|
+
// Types should be imported directly from './data-node/data-node.types.js' when needed
|
|
13
|
+
export { DataOperation, DATA_OPERATIONS, FilterOperator, FILTER_OPERATORS, DEFAULT_DATA_NODE_CONFIG, DATA_NODE_SECTIONS, DATA_OPERATIONS as DataOperations, validateDataNodeConfig, shouldShowSection, } from './data-node/data-node.types.js';
|
|
14
|
+
export { dataNodeFieldStyles } from './data-node/data-node-fields.style.js';
|
|
15
|
+
export * from './data-node/data-node-fields.component.js';
|
|
16
|
+
// Chatbot trigger components and types - re-export runtime values only
|
|
17
|
+
// Types should be imported directly from './chatbot-trigger/chatbot-trigger.types.js' when needed
|
|
18
|
+
export { ChatbotTriggerEvent, CHATBOT_TRIGGER_EVENTS, DEFAULT_CHATBOT_TRIGGER_CONFIG, validateChatbotTriggerConfig, } from './chatbot-trigger/chatbot-trigger.types.js';
|
|
19
|
+
export { chatbotTriggerFieldStyles } from './chatbot-trigger/chatbot-trigger-fields.style.js';
|
|
20
|
+
export * from './chatbot-trigger/chatbot-trigger-fields.component.js';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|