@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
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9
|
+
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;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
import { html, LitElement, nothing } from 'lit';
|
|
13
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
14
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
15
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
16
|
+
import { PanelMode, PanelSize, PanelPosition, MaximizePosition, EMPTY_STRING } from './panel.types.js';
|
|
17
|
+
import { styles } from './panel.style.js';
|
|
18
|
+
import { NuralyUIBaseMixin } from '@nuralyui/common/mixins';
|
|
19
|
+
// Import icon and label components
|
|
20
|
+
import '../icon/index.js';
|
|
21
|
+
import '../label/index.js';
|
|
22
|
+
// Import controllers
|
|
23
|
+
import { PanelDragController, PanelResizeController } from './controllers/index.js';
|
|
24
|
+
/**
|
|
25
|
+
* Versatile panel component that can transform between panel and window modes.
|
|
26
|
+
*
|
|
27
|
+
* Features:
|
|
28
|
+
* - Transform between panel (docked) and window (floating) modes
|
|
29
|
+
* - Draggable in window mode
|
|
30
|
+
* - Resizable panels
|
|
31
|
+
* - Collapsible content
|
|
32
|
+
* - Minimizable to compact view
|
|
33
|
+
* - Theme-aware styling with light/dark mode support
|
|
34
|
+
* - Multiple size presets
|
|
35
|
+
* - Positioned docking (left, right, top, bottom)
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```html
|
|
39
|
+
* <!-- Panel docked to right side -->
|
|
40
|
+
* <nr-panel
|
|
41
|
+
* title="Settings Panel"
|
|
42
|
+
* mode="panel"
|
|
43
|
+
* position="right"
|
|
44
|
+
* size="medium">
|
|
45
|
+
* <p>Panel content here</p>
|
|
46
|
+
* </nr-panel>
|
|
47
|
+
*
|
|
48
|
+
* <!-- Floating draggable window -->
|
|
49
|
+
* <nr-panel
|
|
50
|
+
* title="Tool Window"
|
|
51
|
+
* mode="window"
|
|
52
|
+
* draggable
|
|
53
|
+
* resizable
|
|
54
|
+
* size="medium">
|
|
55
|
+
* <p>Window content here</p>
|
|
56
|
+
* </nr-panel>
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @fires panel-mode-change - Panel mode changed
|
|
60
|
+
* @fires panel-close - Panel closed
|
|
61
|
+
* @fires panel-minimize - Panel minimized
|
|
62
|
+
* @fires panel-maximize - Panel maximized/restored
|
|
63
|
+
* @fires panel-drag-start - Panel drag started
|
|
64
|
+
* @fires panel-drag-end - Panel drag ended
|
|
65
|
+
* @fires panel-resize - Panel resized
|
|
66
|
+
*
|
|
67
|
+
* @slot default - Panel body content
|
|
68
|
+
* @slot header - Custom header content
|
|
69
|
+
* @slot footer - Custom footer content
|
|
70
|
+
*/
|
|
71
|
+
let NrPanelElement = class NrPanelElement extends NuralyUIBaseMixin(LitElement) {
|
|
72
|
+
constructor() {
|
|
73
|
+
super(...arguments);
|
|
74
|
+
this.requiredComponents = ['nr-icon', 'nr-label'];
|
|
75
|
+
/** Panel mode (panel, window, minimized) */
|
|
76
|
+
this.mode = PanelMode.Panel;
|
|
77
|
+
/** Panel size */
|
|
78
|
+
this.size = PanelSize.Medium;
|
|
79
|
+
/** Panel position (for panel mode) */
|
|
80
|
+
this.position = PanelPosition.Right;
|
|
81
|
+
/** Position where the window appears when maximizing from embedded mode */
|
|
82
|
+
this.maximizePosition = MaximizePosition.Center;
|
|
83
|
+
/** Whether the panel can be dragged (window mode only) */
|
|
84
|
+
this.draggable = true;
|
|
85
|
+
/** Whether the panel is resizable */
|
|
86
|
+
this.resizable = false;
|
|
87
|
+
/** Whether the panel content can be collapsed */
|
|
88
|
+
this.collapsible = false;
|
|
89
|
+
/** Whether the panel can be minimized */
|
|
90
|
+
this.minimizable = true;
|
|
91
|
+
/** Whether the panel can be closed */
|
|
92
|
+
this.closable = false;
|
|
93
|
+
/** Whether to enable smooth animations for position/mode changes */
|
|
94
|
+
this.animated = false;
|
|
95
|
+
/** Panel title */
|
|
96
|
+
this.title = EMPTY_STRING;
|
|
97
|
+
/** Header icon */
|
|
98
|
+
this.icon = EMPTY_STRING;
|
|
99
|
+
/** Custom width */
|
|
100
|
+
this.width = EMPTY_STRING;
|
|
101
|
+
/** Custom height */
|
|
102
|
+
this.height = EMPTY_STRING;
|
|
103
|
+
/** Whether the panel is open/visible */
|
|
104
|
+
this.open = true;
|
|
105
|
+
/** Collapsed state */
|
|
106
|
+
this.collapsed = false;
|
|
107
|
+
/** Dragging state */
|
|
108
|
+
this.isDragging = false;
|
|
109
|
+
/** Animation state */
|
|
110
|
+
this.animating = false;
|
|
111
|
+
/** Current X offset for dragging */
|
|
112
|
+
this.offsetX = 0;
|
|
113
|
+
/** Current Y offset for dragging */
|
|
114
|
+
this.offsetY = 0;
|
|
115
|
+
/** Current panel width */
|
|
116
|
+
this.panelWidth = 0;
|
|
117
|
+
/** Current panel height */
|
|
118
|
+
this.panelHeight = 0;
|
|
119
|
+
/** Original mode before any transformations (for restoration from minimized) */
|
|
120
|
+
this.originalMode = null;
|
|
121
|
+
/** Track if panel is maximized from embedded mode */
|
|
122
|
+
this.isMaximizedFromEmbedded = false;
|
|
123
|
+
/** Track if this panel was created from a tab pop-out */
|
|
124
|
+
this.isTabPopOut = false;
|
|
125
|
+
/** Track if this is the first update to capture initial mode */
|
|
126
|
+
this.isFirstUpdate = true;
|
|
127
|
+
/** Original dimensions before maximizing from embedded mode */
|
|
128
|
+
this.originalEmbeddedWidth = 0;
|
|
129
|
+
/** Original dimensions before maximizing from embedded mode */
|
|
130
|
+
this.originalEmbeddedHeight = 0;
|
|
131
|
+
// Controllers
|
|
132
|
+
this.dragController = new PanelDragController(this);
|
|
133
|
+
// @ts-ignore - Controller handles events through listeners, doesn't need direct reference
|
|
134
|
+
this._resizeController = new PanelResizeController(this);
|
|
135
|
+
}
|
|
136
|
+
connectedCallback() {
|
|
137
|
+
super.connectedCallback();
|
|
138
|
+
this.validateDependencies();
|
|
139
|
+
this.animating = true;
|
|
140
|
+
setTimeout(() => {
|
|
141
|
+
this.animating = false;
|
|
142
|
+
}, 300);
|
|
143
|
+
}
|
|
144
|
+
willUpdate(changedProperties) {
|
|
145
|
+
super.willUpdate(changedProperties);
|
|
146
|
+
// Capture the original mode on first update
|
|
147
|
+
if (this.isFirstUpdate && this.mode) {
|
|
148
|
+
this.originalMode = this.mode;
|
|
149
|
+
this.isFirstUpdate = false;
|
|
150
|
+
}
|
|
151
|
+
// Track mode changes
|
|
152
|
+
if (changedProperties.has('mode')) {
|
|
153
|
+
const oldMode = changedProperties.get('mode');
|
|
154
|
+
if (oldMode && oldMode !== this.mode) {
|
|
155
|
+
this.handleModeChange(oldMode);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
updated(changedProperties) {
|
|
160
|
+
super.updated(changedProperties);
|
|
161
|
+
// If mode changed, give the DOM time to update with new classes for drag handlers
|
|
162
|
+
if (changedProperties.has('mode')) {
|
|
163
|
+
requestAnimationFrame(() => {
|
|
164
|
+
this.requestUpdate();
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Handle mode change
|
|
170
|
+
*/
|
|
171
|
+
handleModeChange(oldMode) {
|
|
172
|
+
this.animating = true;
|
|
173
|
+
// Reset position when:
|
|
174
|
+
// 1. Switching to window mode from panel mode
|
|
175
|
+
// 2. Restoring from minimized mode back to window mode
|
|
176
|
+
if (this.mode === PanelMode.Window &&
|
|
177
|
+
(oldMode === PanelMode.Panel || oldMode === PanelMode.Minimized)) {
|
|
178
|
+
this.dragController.resetPosition();
|
|
179
|
+
}
|
|
180
|
+
// Dispatch mode change event
|
|
181
|
+
this.dispatchEvent(new CustomEvent('panel-mode-change', {
|
|
182
|
+
bubbles: true,
|
|
183
|
+
detail: { mode: this.mode, previousMode: oldMode }
|
|
184
|
+
}));
|
|
185
|
+
setTimeout(() => {
|
|
186
|
+
this.animating = false;
|
|
187
|
+
}, 300);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Transform to window mode
|
|
191
|
+
*/
|
|
192
|
+
transformToWindow() {
|
|
193
|
+
if (this.mode !== PanelMode.Window) {
|
|
194
|
+
this.mode = PanelMode.Window;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Transform to panel mode
|
|
199
|
+
*/
|
|
200
|
+
transformToPanel() {
|
|
201
|
+
if (this.mode !== PanelMode.Panel) {
|
|
202
|
+
this.mode = PanelMode.Panel;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Restore panel to its original state
|
|
207
|
+
*/
|
|
208
|
+
restore() {
|
|
209
|
+
// Special handling for tab pop-out panels
|
|
210
|
+
if (this.isTabPopOut) {
|
|
211
|
+
console.log('[Panel] Restore called for tab pop-out panel');
|
|
212
|
+
// For tab pop-outs, "restore" means pop back in
|
|
213
|
+
// Dispatch event first to trigger the pop-in logic
|
|
214
|
+
this.dispatchEvent(new CustomEvent('panel-restore', { bubbles: true }));
|
|
215
|
+
// Then close the panel (the pop-in logic should handle tab restoration)
|
|
216
|
+
// Use setTimeout to ensure the event is processed first
|
|
217
|
+
setTimeout(() => {
|
|
218
|
+
this.open = false;
|
|
219
|
+
this.dispatchEvent(new CustomEvent('panel-close', { bubbles: true }));
|
|
220
|
+
}, 0);
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
// Special handling for panels maximized from embedded mode
|
|
224
|
+
if (this.isMaximizedFromEmbedded) {
|
|
225
|
+
// Restore back to embedded mode
|
|
226
|
+
this.restoreEmbedded();
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
// Default restore behavior (same as maximize for minimized panels)
|
|
230
|
+
this.maximize();
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Minimize panel
|
|
234
|
+
*/
|
|
235
|
+
minimize() {
|
|
236
|
+
if (!this.minimizable)
|
|
237
|
+
return;
|
|
238
|
+
this.mode = PanelMode.Minimized;
|
|
239
|
+
this.dispatchEvent(new CustomEvent('panel-minimize', { bubbles: true }));
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Maximize embedded panel to floating window
|
|
243
|
+
*/
|
|
244
|
+
maximizeEmbedded() {
|
|
245
|
+
var _a;
|
|
246
|
+
console.log('[Panel] === MAXIMIZE EMBEDDED START ===');
|
|
247
|
+
console.log('[Panel] Current mode:', this.mode);
|
|
248
|
+
console.log('[Panel] this.panelWidth:', this.panelWidth);
|
|
249
|
+
console.log('[Panel] this.panelHeight:', this.panelHeight);
|
|
250
|
+
if (this.mode !== PanelMode.Embedded) {
|
|
251
|
+
console.log('[Panel] ✗ Not in embedded mode, aborting');
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
// Store original dimensions before maximizing
|
|
255
|
+
const panel = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.panel');
|
|
256
|
+
if (panel) {
|
|
257
|
+
console.log('[Panel] Panel DOM element found');
|
|
258
|
+
console.log('[Panel] panel.offsetWidth:', panel.offsetWidth);
|
|
259
|
+
console.log('[Panel] panel.offsetHeight:', panel.offsetHeight);
|
|
260
|
+
// Use current tracked dimensions or fall back to DOM dimensions
|
|
261
|
+
this.originalEmbeddedWidth = this.panelWidth > 0 ? this.panelWidth : panel.offsetWidth;
|
|
262
|
+
this.originalEmbeddedHeight = this.panelHeight > 0 ? this.panelHeight : panel.offsetHeight;
|
|
263
|
+
console.log('[Panel] ✓ Set originalEmbeddedWidth:', this.originalEmbeddedWidth);
|
|
264
|
+
console.log('[Panel] ✓ Set originalEmbeddedHeight:', this.originalEmbeddedHeight);
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
console.warn('[Panel] ✗ Panel DOM element not found');
|
|
268
|
+
}
|
|
269
|
+
// Set the original mode to embedded so we can restore properly
|
|
270
|
+
if (!this.originalMode || this.originalMode !== PanelMode.Embedded) {
|
|
271
|
+
this.originalMode = PanelMode.Embedded;
|
|
272
|
+
}
|
|
273
|
+
this.isMaximizedFromEmbedded = true;
|
|
274
|
+
// Keep the original dimensions when maximizing to window mode
|
|
275
|
+
this.panelWidth = this.originalEmbeddedWidth;
|
|
276
|
+
this.panelHeight = this.originalEmbeddedHeight;
|
|
277
|
+
console.log('[Panel] Final panelWidth:', this.panelWidth);
|
|
278
|
+
console.log('[Panel] Final panelHeight:', this.panelHeight);
|
|
279
|
+
this.mode = PanelMode.Window;
|
|
280
|
+
console.log('[Panel] Mode changed to Window');
|
|
281
|
+
// Wait for the mode change to render, then set position
|
|
282
|
+
this.updateComplete.then(() => {
|
|
283
|
+
this.setMaximizePosition();
|
|
284
|
+
});
|
|
285
|
+
this.dispatchEvent(new CustomEvent('panel-maximize-embedded', {
|
|
286
|
+
bubbles: true,
|
|
287
|
+
detail: { mode: this.mode, position: this.maximizePosition }
|
|
288
|
+
}));
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Set the window position based on maximizePosition with slight randomization
|
|
292
|
+
*/
|
|
293
|
+
setMaximizePosition() {
|
|
294
|
+
var _a;
|
|
295
|
+
const panel = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.panel');
|
|
296
|
+
if (!panel)
|
|
297
|
+
return;
|
|
298
|
+
const rect = panel.getBoundingClientRect();
|
|
299
|
+
const viewportWidth = window.innerWidth;
|
|
300
|
+
const viewportHeight = window.innerHeight;
|
|
301
|
+
// Add random offset for cascading effect (±80px for X, ±60px for Y)
|
|
302
|
+
const randomX = Math.floor(Math.random() * 160) - 80;
|
|
303
|
+
const randomY = Math.floor(Math.random() * 120) - 60;
|
|
304
|
+
console.log('[Panel] setMaximizePosition - randomX:', randomX, 'randomY:', randomY);
|
|
305
|
+
console.log('[Panel] maximizePosition:', this.maximizePosition);
|
|
306
|
+
switch (this.maximizePosition) {
|
|
307
|
+
case MaximizePosition.Center:
|
|
308
|
+
// Center with randomization for cascading effect
|
|
309
|
+
this.offsetX = randomX;
|
|
310
|
+
this.offsetY = randomY;
|
|
311
|
+
console.log('[Panel] Set offsetX:', this.offsetX, 'offsetY:', this.offsetY);
|
|
312
|
+
break;
|
|
313
|
+
case MaximizePosition.Left:
|
|
314
|
+
this.offsetX = -(viewportWidth / 2 - rect.width / 2 - 40) + randomX;
|
|
315
|
+
this.offsetY = randomY;
|
|
316
|
+
break;
|
|
317
|
+
case MaximizePosition.Right:
|
|
318
|
+
this.offsetX = (viewportWidth / 2 - rect.width / 2 - 40) + randomX;
|
|
319
|
+
this.offsetY = randomY;
|
|
320
|
+
break;
|
|
321
|
+
case MaximizePosition.TopLeft:
|
|
322
|
+
this.offsetX = -(viewportWidth / 2 - rect.width / 2 - 40) + randomX;
|
|
323
|
+
this.offsetY = -(viewportHeight / 2 - rect.height / 2 - 40) + randomY;
|
|
324
|
+
break;
|
|
325
|
+
case MaximizePosition.TopRight:
|
|
326
|
+
this.offsetX = (viewportWidth / 2 - rect.width / 2 - 40) + randomX;
|
|
327
|
+
this.offsetY = -(viewportHeight / 2 - rect.height / 2 - 40) + randomY;
|
|
328
|
+
break;
|
|
329
|
+
case MaximizePosition.BottomLeft:
|
|
330
|
+
this.offsetX = -(viewportWidth / 2 - rect.width / 2 - 40) + randomX;
|
|
331
|
+
this.offsetY = (viewportHeight / 2 - rect.height / 2 - 40) + randomY;
|
|
332
|
+
break;
|
|
333
|
+
case MaximizePosition.BottomRight:
|
|
334
|
+
this.offsetX = (viewportWidth / 2 - rect.width / 2 - 40) + randomX;
|
|
335
|
+
this.offsetY = (viewportHeight / 2 - rect.height / 2 - 40) + randomY;
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
338
|
+
this.requestUpdate();
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Restore maximized embedded panel back to embedded mode
|
|
342
|
+
*/
|
|
343
|
+
restoreEmbedded() {
|
|
344
|
+
if (!this.isMaximizedFromEmbedded)
|
|
345
|
+
return;
|
|
346
|
+
this.isMaximizedFromEmbedded = false;
|
|
347
|
+
this.mode = PanelMode.Embedded;
|
|
348
|
+
this.offsetX = 0;
|
|
349
|
+
this.offsetY = 0;
|
|
350
|
+
// Restore original dimensions
|
|
351
|
+
this.panelWidth = this.originalEmbeddedWidth;
|
|
352
|
+
this.panelHeight = this.originalEmbeddedHeight;
|
|
353
|
+
// Remove transform and apply restored dimensions
|
|
354
|
+
requestAnimationFrame(() => {
|
|
355
|
+
var _a;
|
|
356
|
+
const panel = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.panel');
|
|
357
|
+
if (panel) {
|
|
358
|
+
panel.style.transform = '';
|
|
359
|
+
// Apply the original dimensions
|
|
360
|
+
if (this.originalEmbeddedWidth > 0) {
|
|
361
|
+
panel.style.width = `${this.originalEmbeddedWidth}px`;
|
|
362
|
+
}
|
|
363
|
+
if (this.originalEmbeddedHeight > 0) {
|
|
364
|
+
panel.style.height = `${this.originalEmbeddedHeight}px`;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
this.dispatchEvent(new CustomEvent('panel-restore-embedded', {
|
|
369
|
+
bubbles: true,
|
|
370
|
+
detail: { mode: this.mode }
|
|
371
|
+
}));
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Maximize/restore panel
|
|
375
|
+
*/
|
|
376
|
+
maximize() {
|
|
377
|
+
if (this.mode === PanelMode.Minimized) {
|
|
378
|
+
// When restoring from minimized, check if we were maximized from embedded
|
|
379
|
+
if (this.isMaximizedFromEmbedded) {
|
|
380
|
+
// Restore back to embedded mode instead of going to original mode
|
|
381
|
+
this.restoreEmbedded();
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
// Normal restoration: go back to the original mode
|
|
385
|
+
// (the mode before any transformations)
|
|
386
|
+
this.mode = this.originalMode || PanelMode.Panel;
|
|
387
|
+
// Reset offset values
|
|
388
|
+
this.offsetX = 0;
|
|
389
|
+
this.offsetY = 0;
|
|
390
|
+
// Remove any transform - let CSS handle positioning based on mode
|
|
391
|
+
requestAnimationFrame(() => {
|
|
392
|
+
var _a;
|
|
393
|
+
const panel = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.panel');
|
|
394
|
+
if (panel) {
|
|
395
|
+
panel.style.transform = '';
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
this.requestUpdate();
|
|
399
|
+
}
|
|
400
|
+
this.dispatchEvent(new CustomEvent('panel-maximize', { bubbles: true }));
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Close panel
|
|
404
|
+
*/
|
|
405
|
+
close() {
|
|
406
|
+
if (!this.closable)
|
|
407
|
+
return;
|
|
408
|
+
this.open = false;
|
|
409
|
+
this.dispatchEvent(new CustomEvent('panel-close', { bubbles: true }));
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Toggle collapsed state
|
|
413
|
+
*/
|
|
414
|
+
toggleCollapse() {
|
|
415
|
+
if (!this.collapsible)
|
|
416
|
+
return;
|
|
417
|
+
this.collapsed = !this.collapsed;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Get label size based on panel size
|
|
421
|
+
*/
|
|
422
|
+
getLabelSize() {
|
|
423
|
+
switch (this.size) {
|
|
424
|
+
case PanelSize.Small:
|
|
425
|
+
return 'small';
|
|
426
|
+
case PanelSize.Large:
|
|
427
|
+
return 'large';
|
|
428
|
+
case PanelSize.Medium:
|
|
429
|
+
case PanelSize.Custom:
|
|
430
|
+
default:
|
|
431
|
+
return 'medium';
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Get panel classes
|
|
436
|
+
*/
|
|
437
|
+
getPanelClasses() {
|
|
438
|
+
return {
|
|
439
|
+
'panel': true,
|
|
440
|
+
[`panel--mode-${this.mode}`]: true,
|
|
441
|
+
[`panel--position-${this.position}`]: this.mode === PanelMode.Panel,
|
|
442
|
+
[`panel--size-${this.size}`]: this.size !== PanelSize.Custom,
|
|
443
|
+
'panel--collapsed': this.collapsed,
|
|
444
|
+
'panel--dragging': this.isDragging,
|
|
445
|
+
'panel--animating': this.animating,
|
|
446
|
+
'panel--animated': this.animated
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Get panel styles
|
|
451
|
+
*/
|
|
452
|
+
getPanelStyles() {
|
|
453
|
+
const styles = {};
|
|
454
|
+
if (this.width) {
|
|
455
|
+
styles.width = this.width;
|
|
456
|
+
}
|
|
457
|
+
if (this.height) {
|
|
458
|
+
styles.height = this.height;
|
|
459
|
+
}
|
|
460
|
+
// Apply custom dimensions if set
|
|
461
|
+
if (this.panelWidth > 0) {
|
|
462
|
+
styles.width = `${this.panelWidth}px`;
|
|
463
|
+
}
|
|
464
|
+
if (this.panelHeight > 0) {
|
|
465
|
+
styles.height = `${this.panelHeight}px`;
|
|
466
|
+
}
|
|
467
|
+
// Apply transform for window mode with offsets
|
|
468
|
+
if (this.mode === PanelMode.Window && (this.offsetX !== 0 || this.offsetY !== 0)) {
|
|
469
|
+
styles.transform = `translate(calc(-50% + ${this.offsetX}px), calc(-50% + ${this.offsetY}px))`;
|
|
470
|
+
}
|
|
471
|
+
return styles;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Render header
|
|
475
|
+
*/
|
|
476
|
+
renderHeader() {
|
|
477
|
+
const hasCustomHeader = this.querySelector('[slot="header"]');
|
|
478
|
+
// Header should be draggable in window mode only
|
|
479
|
+
const isDraggable = this.draggable && this.mode === PanelMode.Window;
|
|
480
|
+
return html `
|
|
481
|
+
<div class="${classMap({
|
|
482
|
+
'panel-header': true,
|
|
483
|
+
'panel-header--draggable': isDraggable
|
|
484
|
+
})}"
|
|
485
|
+
@click="${this.mode === PanelMode.Minimized ? this.maximize : nothing}">
|
|
486
|
+
${hasCustomHeader ? html `
|
|
487
|
+
<div class="panel-header-content">
|
|
488
|
+
<slot name="header"></slot>
|
|
489
|
+
</div>
|
|
490
|
+
` : html `
|
|
491
|
+
<div class="panel-header-content">
|
|
492
|
+
${this.icon ? html `
|
|
493
|
+
<nr-icon class="panel-header-icon" name="${this.icon}"></nr-icon>
|
|
494
|
+
` : nothing}
|
|
495
|
+
${this.title ? html `
|
|
496
|
+
<nr-label
|
|
497
|
+
class="panel-title"
|
|
498
|
+
size="${this.getLabelSize()}"
|
|
499
|
+
>${this.title}</nr-label>
|
|
500
|
+
` : nothing}
|
|
501
|
+
</div>
|
|
502
|
+
`}
|
|
503
|
+
|
|
504
|
+
<div class="panel-actions">
|
|
505
|
+
${this.collapsible ? html `
|
|
506
|
+
<button
|
|
507
|
+
class="panel-action-button"
|
|
508
|
+
@click="${this.toggleCollapse}"
|
|
509
|
+
title="${this.collapsed ? 'Expand' : 'Collapse'}">
|
|
510
|
+
<nr-icon name="${this.collapsed ? 'chevron-down' : 'chevron-up'}"></nr-icon>
|
|
511
|
+
</button>
|
|
512
|
+
` : nothing}
|
|
513
|
+
|
|
514
|
+
${this.mode === PanelMode.Window && this.minimizable && !this.isMaximizedFromEmbedded && !this.isTabPopOut ? html `
|
|
515
|
+
<button
|
|
516
|
+
class="panel-action-button"
|
|
517
|
+
@click="${this.minimize}"
|
|
518
|
+
title="Minimize">
|
|
519
|
+
<nr-icon name="minus"></nr-icon>
|
|
520
|
+
</button>
|
|
521
|
+
` : nothing}
|
|
522
|
+
|
|
523
|
+
${this.isTabPopOut && this.mode === PanelMode.Window ? html `
|
|
524
|
+
<button
|
|
525
|
+
class="panel-action-button"
|
|
526
|
+
@click="${this.restore}"
|
|
527
|
+
title="Restore to tabs">
|
|
528
|
+
<nr-icon name="minimize"></nr-icon>
|
|
529
|
+
</button>
|
|
530
|
+
` : nothing}
|
|
531
|
+
|
|
532
|
+
${this.mode === PanelMode.Embedded ? html `
|
|
533
|
+
<button
|
|
534
|
+
class="panel-action-button"
|
|
535
|
+
@click="${this.maximizeEmbedded}"
|
|
536
|
+
title="Maximize to window">
|
|
537
|
+
<nr-icon name="maximize"></nr-icon>
|
|
538
|
+
</button>
|
|
539
|
+
` : nothing}
|
|
540
|
+
|
|
541
|
+
${this.isMaximizedFromEmbedded ? html `
|
|
542
|
+
<button
|
|
543
|
+
class="panel-action-button"
|
|
544
|
+
@click="${this.restoreEmbedded}"
|
|
545
|
+
title="Restore to embedded">
|
|
546
|
+
<nr-icon name="minimize"></nr-icon>
|
|
547
|
+
</button>
|
|
548
|
+
` : nothing}
|
|
549
|
+
|
|
550
|
+
${this.mode === PanelMode.Panel ? html `
|
|
551
|
+
<button
|
|
552
|
+
class="panel-action-button"
|
|
553
|
+
@click="${this.transformToWindow}"
|
|
554
|
+
title="Pop out to window">
|
|
555
|
+
<nr-icon name="external-link"></nr-icon>
|
|
556
|
+
</button>
|
|
557
|
+
` : nothing}
|
|
558
|
+
|
|
559
|
+
${this.mode === PanelMode.Window && !this.isMaximizedFromEmbedded ? html `
|
|
560
|
+
<button
|
|
561
|
+
class="panel-action-button"
|
|
562
|
+
@click="${this.transformToPanel}"
|
|
563
|
+
title="Dock to panel">
|
|
564
|
+
<nr-icon name="layout-sidebar"></nr-icon>
|
|
565
|
+
</button>
|
|
566
|
+
` : nothing}
|
|
567
|
+
|
|
568
|
+
${this.closable ? html `
|
|
569
|
+
<button
|
|
570
|
+
class="panel-action-button"
|
|
571
|
+
@click="${this.close}"
|
|
572
|
+
title="Close">
|
|
573
|
+
<nr-icon name="x"></nr-icon>
|
|
574
|
+
</button>
|
|
575
|
+
` : nothing}
|
|
576
|
+
</div>
|
|
577
|
+
</div>
|
|
578
|
+
`;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Render footer
|
|
582
|
+
*/
|
|
583
|
+
renderFooter() {
|
|
584
|
+
const hasFooter = this.querySelector('[slot="footer"]');
|
|
585
|
+
if (!hasFooter)
|
|
586
|
+
return nothing;
|
|
587
|
+
return html `
|
|
588
|
+
<div class="panel-footer">
|
|
589
|
+
<slot name="footer"></slot>
|
|
590
|
+
</div>
|
|
591
|
+
`;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Render resize handles
|
|
595
|
+
*/
|
|
596
|
+
renderResizeHandles() {
|
|
597
|
+
if (!this.resizable || (this.mode !== PanelMode.Window && this.mode !== PanelMode.Embedded))
|
|
598
|
+
return nothing;
|
|
599
|
+
return html `
|
|
600
|
+
<div class="resize-handle resize-handle-n"></div>
|
|
601
|
+
<div class="resize-handle resize-handle-s"></div>
|
|
602
|
+
<div class="resize-handle resize-handle-e"></div>
|
|
603
|
+
<div class="resize-handle resize-handle-w"></div>
|
|
604
|
+
<div class="resize-handle resize-handle-ne"></div>
|
|
605
|
+
<div class="resize-handle resize-handle-nw"></div>
|
|
606
|
+
<div class="resize-handle resize-handle-se"></div>
|
|
607
|
+
<div class="resize-handle resize-handle-sw"></div>
|
|
608
|
+
`;
|
|
609
|
+
}
|
|
610
|
+
render() {
|
|
611
|
+
if (!this.open)
|
|
612
|
+
return nothing;
|
|
613
|
+
return html `
|
|
614
|
+
<div
|
|
615
|
+
class=${classMap(this.getPanelClasses())}
|
|
616
|
+
style=${styleMap(this.getPanelStyles())}
|
|
617
|
+
data-theme="${this.currentTheme}">
|
|
618
|
+
|
|
619
|
+
${this.renderHeader()}
|
|
620
|
+
|
|
621
|
+
<div class="panel-body" part="body">
|
|
622
|
+
<slot></slot>
|
|
623
|
+
</div>
|
|
624
|
+
|
|
625
|
+
${this.renderFooter()}
|
|
626
|
+
${this.renderResizeHandles()}
|
|
627
|
+
</div>
|
|
628
|
+
`;
|
|
629
|
+
}
|
|
630
|
+
};
|
|
631
|
+
NrPanelElement.styles = styles;
|
|
632
|
+
__decorate([
|
|
633
|
+
property({ type: String })
|
|
634
|
+
], NrPanelElement.prototype, "mode", void 0);
|
|
635
|
+
__decorate([
|
|
636
|
+
property({ type: String })
|
|
637
|
+
], NrPanelElement.prototype, "size", void 0);
|
|
638
|
+
__decorate([
|
|
639
|
+
property({ type: String })
|
|
640
|
+
], NrPanelElement.prototype, "position", void 0);
|
|
641
|
+
__decorate([
|
|
642
|
+
property({ type: String })
|
|
643
|
+
], NrPanelElement.prototype, "maximizePosition", void 0);
|
|
644
|
+
__decorate([
|
|
645
|
+
property({ type: Boolean })
|
|
646
|
+
], NrPanelElement.prototype, "draggable", void 0);
|
|
647
|
+
__decorate([
|
|
648
|
+
property({ type: Boolean })
|
|
649
|
+
], NrPanelElement.prototype, "resizable", void 0);
|
|
650
|
+
__decorate([
|
|
651
|
+
property({ type: Boolean })
|
|
652
|
+
], NrPanelElement.prototype, "collapsible", void 0);
|
|
653
|
+
__decorate([
|
|
654
|
+
property({ type: Boolean })
|
|
655
|
+
], NrPanelElement.prototype, "minimizable", void 0);
|
|
656
|
+
__decorate([
|
|
657
|
+
property({ type: Boolean })
|
|
658
|
+
], NrPanelElement.prototype, "closable", void 0);
|
|
659
|
+
__decorate([
|
|
660
|
+
property({ type: Boolean })
|
|
661
|
+
], NrPanelElement.prototype, "animated", void 0);
|
|
662
|
+
__decorate([
|
|
663
|
+
property({ type: String })
|
|
664
|
+
], NrPanelElement.prototype, "title", void 0);
|
|
665
|
+
__decorate([
|
|
666
|
+
property({ type: String })
|
|
667
|
+
], NrPanelElement.prototype, "icon", void 0);
|
|
668
|
+
__decorate([
|
|
669
|
+
property({ type: String })
|
|
670
|
+
], NrPanelElement.prototype, "width", void 0);
|
|
671
|
+
__decorate([
|
|
672
|
+
property({ type: String })
|
|
673
|
+
], NrPanelElement.prototype, "height", void 0);
|
|
674
|
+
__decorate([
|
|
675
|
+
property({ type: Boolean, reflect: true })
|
|
676
|
+
], NrPanelElement.prototype, "open", void 0);
|
|
677
|
+
__decorate([
|
|
678
|
+
state()
|
|
679
|
+
], NrPanelElement.prototype, "collapsed", void 0);
|
|
680
|
+
__decorate([
|
|
681
|
+
state()
|
|
682
|
+
], NrPanelElement.prototype, "isDragging", void 0);
|
|
683
|
+
__decorate([
|
|
684
|
+
state()
|
|
685
|
+
], NrPanelElement.prototype, "animating", void 0);
|
|
686
|
+
__decorate([
|
|
687
|
+
property({ type: Number })
|
|
688
|
+
], NrPanelElement.prototype, "offsetX", void 0);
|
|
689
|
+
__decorate([
|
|
690
|
+
property({ type: Number })
|
|
691
|
+
], NrPanelElement.prototype, "offsetY", void 0);
|
|
692
|
+
__decorate([
|
|
693
|
+
property({ type: Number })
|
|
694
|
+
], NrPanelElement.prototype, "panelWidth", void 0);
|
|
695
|
+
__decorate([
|
|
696
|
+
property({ type: Number })
|
|
697
|
+
], NrPanelElement.prototype, "panelHeight", void 0);
|
|
698
|
+
__decorate([
|
|
699
|
+
state()
|
|
700
|
+
], NrPanelElement.prototype, "originalMode", void 0);
|
|
701
|
+
__decorate([
|
|
702
|
+
state()
|
|
703
|
+
], NrPanelElement.prototype, "isMaximizedFromEmbedded", void 0);
|
|
704
|
+
__decorate([
|
|
705
|
+
property({ type: Boolean })
|
|
706
|
+
], NrPanelElement.prototype, "isTabPopOut", void 0);
|
|
707
|
+
__decorate([
|
|
708
|
+
state()
|
|
709
|
+
], NrPanelElement.prototype, "isFirstUpdate", void 0);
|
|
710
|
+
__decorate([
|
|
711
|
+
state()
|
|
712
|
+
], NrPanelElement.prototype, "originalEmbeddedWidth", void 0);
|
|
713
|
+
__decorate([
|
|
714
|
+
state()
|
|
715
|
+
], NrPanelElement.prototype, "originalEmbeddedHeight", void 0);
|
|
716
|
+
NrPanelElement = __decorate([
|
|
717
|
+
customElement('nr-panel')
|
|
718
|
+
], NrPanelElement);
|
|
719
|
+
export { NrPanelElement };
|
|
720
|
+
//# sourceMappingURL=panel.component.js.map
|