@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,313 @@
|
|
|
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 @typescript-eslint/no-explicit-any */
|
|
8
|
+
import { html, LitElement, nothing } from 'lit';
|
|
9
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
10
|
+
import { styles } from './tooltips.style.js';
|
|
11
|
+
import { EMPTY_STRING, TooltipAlignment, TooltipPosition } from './tooltips.constant.js';
|
|
12
|
+
let TooltipElement = class TooltipElement extends LitElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.position = TooltipPosition.Bottom;
|
|
16
|
+
this.alignement = TooltipAlignment.Center;
|
|
17
|
+
this.show = false;
|
|
18
|
+
this.isPopConfirm = false;
|
|
19
|
+
this.popConfirmTitle = '';
|
|
20
|
+
this.popConfirmDescription = '';
|
|
21
|
+
this.okText = 'Yes';
|
|
22
|
+
this.cancelText = 'No';
|
|
23
|
+
this.horizontalOffset = 10;
|
|
24
|
+
this.verticalOffset = 10;
|
|
25
|
+
this.onMouseOver = () => {
|
|
26
|
+
this.show = true;
|
|
27
|
+
};
|
|
28
|
+
this.onMouseLeave = () => {
|
|
29
|
+
this.show = false;
|
|
30
|
+
this.initStyles();
|
|
31
|
+
};
|
|
32
|
+
this.onClick = () => {
|
|
33
|
+
this.show = !this.show;
|
|
34
|
+
};
|
|
35
|
+
this.calculatePosition = () => {
|
|
36
|
+
this.initStyles();
|
|
37
|
+
this.style.width = `${this.clientWidth}px`;
|
|
38
|
+
if (this.position === TooltipPosition.Bottom || this.position === TooltipPosition.Top) {
|
|
39
|
+
this.calculateYposition();
|
|
40
|
+
this.calculateYalignement();
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
this.calculateXposition();
|
|
44
|
+
this.calculateXalignement();
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
this.calculateYposition = () => {
|
|
48
|
+
const targetRect = this.target.getBoundingClientRect();
|
|
49
|
+
const targetWithTopSpaceHeight = targetRect.bottom;
|
|
50
|
+
const topAvailableSpace = targetRect.top;
|
|
51
|
+
const totalViewPortHeight = window.visualViewport.height;
|
|
52
|
+
const tooltipHeight = this.clientHeight;
|
|
53
|
+
const isAvailableBottomSpace = tooltipHeight + this.verticalOffset < totalViewPortHeight - targetWithTopSpaceHeight;
|
|
54
|
+
const isAvailableTopSpace = tooltipHeight + this.verticalOffset < topAvailableSpace;
|
|
55
|
+
if (this.position === TooltipPosition.Bottom) {
|
|
56
|
+
if (isAvailableBottomSpace || !isAvailableTopSpace) {
|
|
57
|
+
this.classList.add('bottom-position');
|
|
58
|
+
this.style.top = `${targetWithTopSpaceHeight + this.verticalOffset}px`;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
this.classList.add('top-position');
|
|
62
|
+
this.style.top = `${topAvailableSpace - tooltipHeight - this.verticalOffset}px`;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
if (isAvailableTopSpace || !isAvailableBottomSpace) {
|
|
67
|
+
this.classList.add('top-position');
|
|
68
|
+
this.style.top = `${topAvailableSpace - tooltipHeight - this.verticalOffset}px`;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this.classList.add('bottom-position');
|
|
72
|
+
this.style.top = `${targetWithTopSpaceHeight + this.verticalOffset}px`;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
this.calculateYalignement = () => {
|
|
77
|
+
const targetRect = this.target.getBoundingClientRect();
|
|
78
|
+
const leftSpaceAndTargetWidth = targetRect.right;
|
|
79
|
+
const targetWidth = targetRect.width;
|
|
80
|
+
const leftSpace = targetRect.left;
|
|
81
|
+
const tooltipWidth = this.clientWidth;
|
|
82
|
+
const leftSpaceAndHalfOfTargetWidth = leftSpace + targetWidth / 2;
|
|
83
|
+
const totalViewPortWidth = window.visualViewport.width;
|
|
84
|
+
const rightSpaceAndHalfOfTargetWidth = totalViewPortWidth - leftSpaceAndTargetWidth + targetWidth / 2;
|
|
85
|
+
if (this.alignement === TooltipAlignment.Start) {
|
|
86
|
+
const canBeAtStart = tooltipWidth + leftSpace < totalViewPortWidth;
|
|
87
|
+
if (canBeAtStart) {
|
|
88
|
+
this.classList.add('alignement-start');
|
|
89
|
+
this.style.left = `${leftSpace - this.horizontalOffset}px`;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
this.classList.add('alignement-end');
|
|
93
|
+
this.style.left = `${leftSpace - tooltipWidth + this.horizontalOffset}px`;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else if (this.alignement === TooltipAlignment.End) {
|
|
97
|
+
const canBeAtEnd = tooltipWidth < leftSpace;
|
|
98
|
+
if (canBeAtEnd) {
|
|
99
|
+
this.classList.add('alignement-end');
|
|
100
|
+
this.style.left = `${leftSpace - tooltipWidth + this.horizontalOffset}px`;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
this.classList.add('alignement-start');
|
|
104
|
+
this.style.left = `${leftSpace - this.horizontalOffset}px`;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
const canBeCentered = (tooltipWidth / 2 < leftSpaceAndHalfOfTargetWidth && tooltipWidth / 2 < rightSpaceAndHalfOfTargetWidth) ||
|
|
109
|
+
(tooltipWidth > leftSpaceAndHalfOfTargetWidth && tooltipWidth > rightSpaceAndHalfOfTargetWidth);
|
|
110
|
+
const canBeAtEnd = tooltipWidth < leftSpaceAndHalfOfTargetWidth;
|
|
111
|
+
if (canBeCentered) {
|
|
112
|
+
this.classList.add('alignement-center');
|
|
113
|
+
this.style.left = `${leftSpace - tooltipWidth / 2 + targetWidth / 2}px`;
|
|
114
|
+
}
|
|
115
|
+
else if (canBeAtEnd) {
|
|
116
|
+
this.classList.add('alignement-end');
|
|
117
|
+
this.style.left = `${leftSpace - tooltipWidth + this.horizontalOffset}px`;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
this.classList.add('alignement-start');
|
|
121
|
+
this.style.left = `${leftSpace - this.horizontalOffset}px`;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
this.calculateXposition = () => {
|
|
126
|
+
const targetRect = this.target.getBoundingClientRect();
|
|
127
|
+
const leftSpace = targetRect.left;
|
|
128
|
+
const leftSpaceAndTargetWidth = targetRect.right;
|
|
129
|
+
const totalViewPortWidth = window.visualViewport.width;
|
|
130
|
+
const tooltipWidth = this.clientWidth;
|
|
131
|
+
const isAvailableRightSpace = tooltipWidth + this.horizontalOffset < totalViewPortWidth - leftSpaceAndTargetWidth;
|
|
132
|
+
const isAvailableLeftSpace = tooltipWidth + this.horizontalOffset < leftSpace;
|
|
133
|
+
if (this.position === TooltipPosition.Right) {
|
|
134
|
+
if (isAvailableRightSpace || !isAvailableLeftSpace) {
|
|
135
|
+
this.classList.add('right-position');
|
|
136
|
+
this.style.left = `${leftSpaceAndTargetWidth + this.horizontalOffset}px`;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
this.classList.add('left-position');
|
|
140
|
+
this.style.left = `${leftSpace - tooltipWidth - this.horizontalOffset}px`;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
if (isAvailableLeftSpace || !isAvailableRightSpace) {
|
|
145
|
+
this.classList.add('left-position');
|
|
146
|
+
this.style.left = `${leftSpace - tooltipWidth - this.horizontalOffset}px`;
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
this.classList.add('right-position');
|
|
150
|
+
this.style.left = `${leftSpaceAndTargetWidth + this.horizontalOffset}px`;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
this.calculateXalignement = () => {
|
|
155
|
+
const targetRect = this.target.getBoundingClientRect();
|
|
156
|
+
const topSpace = targetRect.top;
|
|
157
|
+
const targetHeight = targetRect.height;
|
|
158
|
+
const targetWithTopSpaceHeight = targetRect.bottom;
|
|
159
|
+
const tooltipHeight = this.clientHeight;
|
|
160
|
+
const totalViewPortHeight = window.visualViewport.height;
|
|
161
|
+
const bottomSpace = totalViewPortHeight - targetWithTopSpaceHeight;
|
|
162
|
+
if (this.alignement === TooltipAlignment.End) {
|
|
163
|
+
const canBeAtEnd = tooltipHeight < topSpace;
|
|
164
|
+
if (canBeAtEnd) {
|
|
165
|
+
this.classList.add('alignement-end');
|
|
166
|
+
this.style.top = `${targetWithTopSpaceHeight - tooltipHeight}px`;
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
this.classList.add('alignement-start');
|
|
170
|
+
this.style.top = `${topSpace - targetHeight / 4}px`;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
else if (this.alignement === TooltipAlignment.Start) {
|
|
174
|
+
const canBeAtStart = tooltipHeight < totalViewPortHeight - targetWithTopSpaceHeight;
|
|
175
|
+
if (canBeAtStart) {
|
|
176
|
+
this.classList.add('alignement-start');
|
|
177
|
+
this.style.top = `${topSpace - targetHeight / 4}px`;
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
this.classList.add('alignement-end');
|
|
181
|
+
this.style.top = `${targetWithTopSpaceHeight - tooltipHeight}px`;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
const canBeCentered = (tooltipHeight / 2 < topSpace && tooltipHeight / 2 < bottomSpace) ||
|
|
186
|
+
(tooltipHeight > topSpace && tooltipHeight > bottomSpace);
|
|
187
|
+
const canBeAtEnd = tooltipHeight < topSpace;
|
|
188
|
+
if (canBeCentered) {
|
|
189
|
+
this.classList.add('alignement-center');
|
|
190
|
+
this.style.top = `${topSpace + targetHeight / 2 - tooltipHeight / 2}px`;
|
|
191
|
+
}
|
|
192
|
+
else if (canBeAtEnd) {
|
|
193
|
+
this.classList.add('alignement-end');
|
|
194
|
+
this.style.top = `${targetWithTopSpaceHeight - tooltipHeight}px`;
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
this.classList.add('alignement-start');
|
|
198
|
+
this.style.top = `${topSpace - targetHeight / 4}px`;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
this.onClickOutside = (onClickEvent) => {
|
|
203
|
+
const eventPath = onClickEvent.composedPath();
|
|
204
|
+
const outsideClick = !eventPath.includes(this.target) && !eventPath.includes(this);
|
|
205
|
+
if (outsideClick)
|
|
206
|
+
this.show = false;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
connectedCallback() {
|
|
210
|
+
super.connectedCallback();
|
|
211
|
+
// Assign the target to a previous sibling or expect it to be set via property.
|
|
212
|
+
this.target = this.target || this.previousElementSibling;
|
|
213
|
+
if (!this.target) {
|
|
214
|
+
console.error('Tooltip target is not defined or found. Ensure target is explicitly set or precedes the tooltip.');
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
if (!this.isPopConfirm) {
|
|
218
|
+
this.target.addEventListener('mouseover', this.onMouseOver);
|
|
219
|
+
this.target.addEventListener('mouseleave', this.onMouseLeave);
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
document.addEventListener('scroll', this.calculatePosition);
|
|
223
|
+
this.target.addEventListener('click', this.onClick);
|
|
224
|
+
document.addEventListener('click', this.onClickOutside);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
initStyles() {
|
|
228
|
+
this.style.top = EMPTY_STRING;
|
|
229
|
+
this.style.left = EMPTY_STRING;
|
|
230
|
+
this.style.width = EMPTY_STRING;
|
|
231
|
+
this.classList.remove(...this.classList.values());
|
|
232
|
+
}
|
|
233
|
+
updated(_changedProperties) {
|
|
234
|
+
if (this.show)
|
|
235
|
+
this.calculatePosition();
|
|
236
|
+
}
|
|
237
|
+
onPopConfirmCancel() {
|
|
238
|
+
this.dispatchEvent(new CustomEvent('onCancel'));
|
|
239
|
+
this.show = false;
|
|
240
|
+
this.initStyles();
|
|
241
|
+
}
|
|
242
|
+
onPopConfirmConfirm() {
|
|
243
|
+
this.dispatchEvent(new CustomEvent('onConfirm'));
|
|
244
|
+
this.show = false;
|
|
245
|
+
this.initStyles();
|
|
246
|
+
}
|
|
247
|
+
disconnectedCallback() {
|
|
248
|
+
super.disconnectedCallback();
|
|
249
|
+
if (!this.isPopConfirm) {
|
|
250
|
+
this.target.removeEventListener('mouseover', this.onMouseOver);
|
|
251
|
+
this.target.removeEventListener('mouseleave', this.onMouseLeave);
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
this.target.removeEventListener('click', this.onClick);
|
|
255
|
+
document.removeEventListener('scroll', this.calculatePosition);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
render() {
|
|
259
|
+
return !this.isPopConfirm
|
|
260
|
+
? this.show
|
|
261
|
+
? html `<slot></slot>`
|
|
262
|
+
: nothing
|
|
263
|
+
: this.show
|
|
264
|
+
? html `
|
|
265
|
+
<div class="popconfirm-container">
|
|
266
|
+
<p class="popconfirm-title">${this.popConfirmTitle}</p>
|
|
267
|
+
<p class="popconfirm-description">${this.popConfirmDescription}</p>
|
|
268
|
+
<div class="btn-block">
|
|
269
|
+
<nr-button .size=${'small'} type=${'primary'} @click=${this.onPopConfirmConfirm}
|
|
270
|
+
>${this.okText}</nr-button
|
|
271
|
+
>
|
|
272
|
+
<nr-button .size=${'small'} type=${'danger'} @click=${this.onPopConfirmCancel}
|
|
273
|
+
>${this.cancelText}</nr-button
|
|
274
|
+
>
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
`
|
|
278
|
+
: nothing;
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
TooltipElement.styles = styles;
|
|
282
|
+
__decorate([
|
|
283
|
+
property({ reflect: true })
|
|
284
|
+
], TooltipElement.prototype, "position", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
property({ reflect: true })
|
|
287
|
+
], TooltipElement.prototype, "alignement", void 0);
|
|
288
|
+
__decorate([
|
|
289
|
+
state()
|
|
290
|
+
], TooltipElement.prototype, "target", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
property({ reflect: true, type: Boolean })
|
|
293
|
+
], TooltipElement.prototype, "show", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
property()
|
|
296
|
+
], TooltipElement.prototype, "isPopConfirm", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
property()
|
|
299
|
+
], TooltipElement.prototype, "popConfirmTitle", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
property()
|
|
302
|
+
], TooltipElement.prototype, "popConfirmDescription", void 0);
|
|
303
|
+
__decorate([
|
|
304
|
+
property()
|
|
305
|
+
], TooltipElement.prototype, "okText", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
property()
|
|
308
|
+
], TooltipElement.prototype, "cancelText", void 0);
|
|
309
|
+
TooltipElement = __decorate([
|
|
310
|
+
customElement('hy-tooltip')
|
|
311
|
+
], TooltipElement);
|
|
312
|
+
export { TooltipElement };
|
|
313
|
+
//# sourceMappingURL=tooltips.component.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum TooltipPosition {
|
|
2
|
+
Top = "top",
|
|
3
|
+
Bottom = "bottom",
|
|
4
|
+
Right = "right",
|
|
5
|
+
Left = "left"
|
|
6
|
+
}
|
|
7
|
+
export declare enum TooltipAlignment {
|
|
8
|
+
Start = "start",
|
|
9
|
+
Center = "center",
|
|
10
|
+
End = "end"
|
|
11
|
+
}
|
|
12
|
+
export declare const EMPTY_STRING = "";
|
|
13
|
+
//# sourceMappingURL=tooltips.constant.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export var TooltipPosition;
|
|
2
|
+
(function (TooltipPosition) {
|
|
3
|
+
TooltipPosition["Top"] = "top";
|
|
4
|
+
TooltipPosition["Bottom"] = "bottom";
|
|
5
|
+
TooltipPosition["Right"] = "right";
|
|
6
|
+
TooltipPosition["Left"] = "left";
|
|
7
|
+
})(TooltipPosition || (TooltipPosition = {}));
|
|
8
|
+
export var TooltipAlignment;
|
|
9
|
+
(function (TooltipAlignment) {
|
|
10
|
+
TooltipAlignment["Start"] = "start";
|
|
11
|
+
TooltipAlignment["Center"] = "center";
|
|
12
|
+
TooltipAlignment["End"] = "end";
|
|
13
|
+
})(TooltipAlignment || (TooltipAlignment = {}));
|
|
14
|
+
export const EMPTY_STRING = '';
|
|
15
|
+
//# sourceMappingURL=tooltips.constant.js.map
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { styleVariables } from './tooltips.variables.js';
|
|
3
|
+
const tooltipStyles = css `
|
|
4
|
+
:host([show]) {
|
|
5
|
+
background-color: var(--nuraly-tooltip-background-color);
|
|
6
|
+
color: var(--nuraly-tooltip-text-color);
|
|
7
|
+
position: fixed;
|
|
8
|
+
padding: 5px;
|
|
9
|
+
text-align: center;
|
|
10
|
+
opacity: 0;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
z-index: 9999;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
animation-name: show-animation;
|
|
15
|
+
animation-duration: 0.4s;
|
|
16
|
+
animation-fill-mode: forwards;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.popconfirm-container {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
}
|
|
23
|
+
.btn-block {
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: end;
|
|
26
|
+
gap: 10px;
|
|
27
|
+
margin: 10px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.popconfirm-description,
|
|
31
|
+
.popconfirm-title {
|
|
32
|
+
margin: 5px;
|
|
33
|
+
text-align: left;
|
|
34
|
+
}
|
|
35
|
+
.popconfirm-title {
|
|
36
|
+
font-weight: bold;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes show-animation {
|
|
40
|
+
from {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host::after {
|
|
49
|
+
content: '';
|
|
50
|
+
height: 0;
|
|
51
|
+
width: 0;
|
|
52
|
+
position: absolute;
|
|
53
|
+
border: 5px solid transparent;
|
|
54
|
+
}
|
|
55
|
+
:host(.top-position)::after {
|
|
56
|
+
border-top-color: var(--nuraly-tooltip-background-color);
|
|
57
|
+
top: 100%;
|
|
58
|
+
}
|
|
59
|
+
:host(.left-position)::after {
|
|
60
|
+
border-left-color: var(--nuraly-tooltip-background-color);
|
|
61
|
+
left: 100%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host(.right-position)::after {
|
|
65
|
+
border-right-color: var(--nuraly-tooltip-background-color);
|
|
66
|
+
right: 100%;
|
|
67
|
+
}
|
|
68
|
+
:host(.bottom-position)::after {
|
|
69
|
+
border-bottom-color: var(--nuraly-tooltip-background-color);
|
|
70
|
+
bottom: 100%;
|
|
71
|
+
}
|
|
72
|
+
:host(.alignement-center.top-position)::after,
|
|
73
|
+
:host(.alignement-center.bottom-position)::after {
|
|
74
|
+
right: 50%;
|
|
75
|
+
transform: translate(50%);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host(.alignement-start.top-position)::after,
|
|
79
|
+
:host(.alignement-start.bottom-position)::after {
|
|
80
|
+
left: 4%;
|
|
81
|
+
}
|
|
82
|
+
:host(.top-position.alignement-end)::after,
|
|
83
|
+
:host(.alignement-end.bottom-position)::after {
|
|
84
|
+
right: 4%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host(.alignement-center.left-position)::after,
|
|
88
|
+
:host(.alignement-center.right-position)::after {
|
|
89
|
+
top: 50%;
|
|
90
|
+
transform: translate(0%, -50%);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host(.alignement-start.left-position)::after,
|
|
94
|
+
:host(.alignement-start.right-position)::after {
|
|
95
|
+
top: 5px;
|
|
96
|
+
}
|
|
97
|
+
:host(.alignement-end.left-position)::after,
|
|
98
|
+
:host(.alignement-end.right-position)::after {
|
|
99
|
+
bottom: 5px;
|
|
100
|
+
}
|
|
101
|
+
`;
|
|
102
|
+
export const styles = [tooltipStyles, styleVariables];
|
|
103
|
+
//# sourceMappingURL=tooltips.style.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const styleVariables = css `
|
|
3
|
+
:host {
|
|
4
|
+
--nuraly-tooltip-background-color: #393939;
|
|
5
|
+
--nuraly-tooltip-text-color: #ffffff;
|
|
6
|
+
}
|
|
7
|
+
@media (prefers-color-scheme: dark) {
|
|
8
|
+
:host {
|
|
9
|
+
--nuraly-tooltip-background-color: #f4f4f4;
|
|
10
|
+
--nuraly-tooltip-text-color: #161616;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
//# sourceMappingURL=tooltips.variables.js.map
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import{css as e,LitElement as i,html as o}from"lit";import{property as r,state as t,customElement as s}from"lit/decorators.js";import{classMap as a}from"lit/directives/class-map.js";import{styleMap as n}from"lit/directives/style-map.js";import{NuralyUIBaseMixin as d}from"@nuralyui/common/mixins";var l=e`
|
|
2
|
+
:host {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host([block]) {
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.video-container {
|
|
12
|
+
position: relative;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
background-color: var(--nuraly-video-bg, #000);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
video {
|
|
19
|
+
display: block;
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
border-radius: var(--nuraly-video-border-radius, 4px);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.video--error {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
min-height: 200px;
|
|
30
|
+
background-color: var(--nuraly-video-error-bg, #f5f5f5);
|
|
31
|
+
color: var(--nuraly-video-error-color, #999);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.error-message {
|
|
35
|
+
text-align: center;
|
|
36
|
+
padding: 20px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.error-icon {
|
|
40
|
+
width: 64px;
|
|
41
|
+
height: 64px;
|
|
42
|
+
margin: 0 auto 16px;
|
|
43
|
+
opacity: 0.5;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Preview/Fullscreen Modal */
|
|
47
|
+
.preview-modal {
|
|
48
|
+
position: fixed;
|
|
49
|
+
top: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
right: 0;
|
|
52
|
+
bottom: 0;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
background-color: var(--nuraly-video-preview-bg, rgba(0, 0, 0, 0.95));
|
|
57
|
+
z-index: var(--nuraly-video-preview-zindex, 1000);
|
|
58
|
+
animation: fadeIn 0.3s ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.preview-modal video {
|
|
62
|
+
max-width: 90%;
|
|
63
|
+
max-height: 90%;
|
|
64
|
+
border-radius: var(--nuraly-video-preview-border-radius, 4px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.preview-close {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 20px;
|
|
70
|
+
right: 20px;
|
|
71
|
+
width: 40px;
|
|
72
|
+
height: 40px;
|
|
73
|
+
background: var(--nuraly-video-preview-close-bg, rgba(255, 255, 255, 0.2));
|
|
74
|
+
border: none;
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
color: var(--nuraly-video-preview-close-color, white);
|
|
77
|
+
font-size: 24px;
|
|
78
|
+
line-height: 1;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
transition: background-color 0.3s ease;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
outline: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.preview-close:hover {
|
|
88
|
+
background: var(--nuraly-video-preview-close-hover-bg, rgba(255, 255, 255, 0.3));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.preview-button {
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 10px;
|
|
94
|
+
right: 10px;
|
|
95
|
+
background-color: var(--nuraly-video-fullscreen-btn-bg, rgba(0, 0, 0, 0.5));
|
|
96
|
+
border: none;
|
|
97
|
+
border-radius: 4px;
|
|
98
|
+
padding: 8px 12px;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
color: var(--nuraly-video-fullscreen-btn-color, white);
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: 4px;
|
|
105
|
+
transition: background-color 0.3s ease;
|
|
106
|
+
z-index: 10;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.preview-button:hover {
|
|
110
|
+
background-color: var(--nuraly-video-fullscreen-btn-hover-bg, rgba(0, 0, 0, 0.7));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Animations */
|
|
114
|
+
@keyframes fadeIn {
|
|
115
|
+
from {
|
|
116
|
+
opacity: 0;
|
|
117
|
+
}
|
|
118
|
+
to {
|
|
119
|
+
opacity: 1;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
`,v=function(e,i,o,r){for(var t,s=arguments.length,a=s<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,o):r,n=e.length-1;n>=0;n--)(t=e[n])&&(a=(s<3?t(a):s>3?t(i,o,a):t(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};let p=class extends(d(i)){constructor(){super(...arguments),this.width="auto",this.height="auto",this.autoplay=!1,this.loop=!1,this.muted=!1,this.controls=!0,this.preload="metadata",this.previewable=!1,this.block=!1,this.showPreview=!1,this.hasError=!1,this.defaultFallback="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQwIiBoZWlnaHQ9IjE4MCIgdmlld0JveD0iMCAwIDI0MCAxODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjI0MCIgaGVpZ2h0PSIxODAiIGZpbGw9IiNGM0Y0RjYiLz48cGF0aCBkPSJNMTg4IDY5TDE2OCA4OU0xNjggNjlMMTg4IDg5IiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+"}handleError(){this.hasError=!0,this.dispatchEvent(new CustomEvent("nr-video-error",{bubbles:!0,composed:!0,detail:{error:`Error loading video: ${this.src}`,src:this.src}}))}handlePlay(){this.dispatchEvent(new CustomEvent("nr-video-play",{bubbles:!0,composed:!0,detail:{src:this.src}}))}handlePause(){this.dispatchEvent(new CustomEvent("nr-video-pause",{bubbles:!0,composed:!0,detail:{src:this.src}}))}handleEnded(){this.dispatchEvent(new CustomEvent("nr-video-ended",{bubbles:!0,composed:!0,detail:{src:this.src}}))}showPreviewModal(){this.previewable&&!this.hasError&&(this.showPreview=!0,this.dispatchEvent(new CustomEvent("nr-video-preview-open",{bubbles:!0,composed:!0,detail:{src:this.src}})))}closePreviewModal(){this.showPreview=!1,this.dispatchEvent(new CustomEvent("nr-video-preview-close",{bubbles:!0,composed:!0,detail:{src:this.src}}))}render(){const e={"video-container":!0,"video--error":this.hasError},i={width:"number"==typeof this.width?`${this.width}px`:this.width,height:"number"==typeof this.height?`${this.height}px`:this.height};return this.hasError?o`
|
|
123
|
+
<div class=${a(e)}>
|
|
124
|
+
<div class="error-message">
|
|
125
|
+
<img class="error-icon" src=${this.defaultFallback} alt="Video error" />
|
|
126
|
+
<p>Unable to load video</p>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
`:o`
|
|
130
|
+
<div class=${a(e)}>
|
|
131
|
+
<video
|
|
132
|
+
style=${n(i)}
|
|
133
|
+
?autoplay=${this.autoplay}
|
|
134
|
+
?loop=${this.loop}
|
|
135
|
+
?muted=${this.muted}
|
|
136
|
+
?controls=${this.controls}
|
|
137
|
+
preload=${this.preload}
|
|
138
|
+
poster=${this.poster||""}
|
|
139
|
+
@error=${this.handleError}
|
|
140
|
+
@play=${this.handlePlay}
|
|
141
|
+
@pause=${this.handlePause}
|
|
142
|
+
@ended=${this.handleEnded}
|
|
143
|
+
>
|
|
144
|
+
<source src=${this.src} />
|
|
145
|
+
Your browser does not support the video tag.
|
|
146
|
+
</video>
|
|
147
|
+
${this.previewable?o`
|
|
148
|
+
<button class="preview-button" @click=${this.showPreviewModal}>
|
|
149
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
|
|
150
|
+
<path d="M5.5 5.5A.5.5 0 0 1 6 6v3a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0V6z"/>
|
|
151
|
+
<path d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/>
|
|
152
|
+
</svg>
|
|
153
|
+
Fullscreen
|
|
154
|
+
</button>
|
|
155
|
+
`:""}
|
|
156
|
+
${this.showPreview?o`
|
|
157
|
+
<div class="preview-modal" @click=${this.closePreviewModal}>
|
|
158
|
+
<button class="preview-close" @click=${this.closePreviewModal} aria-label="Close preview">×</button>
|
|
159
|
+
<video
|
|
160
|
+
?autoplay=${!0}
|
|
161
|
+
?loop=${this.loop}
|
|
162
|
+
?muted=${this.muted}
|
|
163
|
+
controls
|
|
164
|
+
poster=${this.poster||""}
|
|
165
|
+
>
|
|
166
|
+
<source src=${this.src} />
|
|
167
|
+
</video>
|
|
168
|
+
</div>
|
|
169
|
+
`:""}
|
|
170
|
+
</div>
|
|
171
|
+
`}};p.styles=l,v([r({type:String})],p.prototype,"src",void 0),v([r({type:String})],p.prototype,"poster",void 0),v([r({type:String})],p.prototype,"width",void 0),v([r({type:String})],p.prototype,"height",void 0),v([r({type:Boolean})],p.prototype,"autoplay",void 0),v([r({type:Boolean})],p.prototype,"loop",void 0),v([r({type:Boolean})],p.prototype,"muted",void 0),v([r({type:Boolean})],p.prototype,"controls",void 0),v([r({type:String})],p.prototype,"preload",void 0),v([r({type:Boolean})],p.prototype,"previewable",void 0),v([r({type:Boolean,reflect:!0})],p.prototype,"block",void 0),v([t()],p.prototype,"showPreview",void 0),v([t()],p.prototype,"hasError",void 0),p=v([s("nr-video")],p);export{p as NrVideoElement};
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NrVideoElement } from './video.component.js';
|
|
2
|
+
export declare const NrVideo: import("@lit-labs/react").ReactWebComponent<NrVideoElement, {
|
|
3
|
+
onPlay: string;
|
|
4
|
+
onPause: string;
|
|
5
|
+
onEnded: string;
|
|
6
|
+
onError: string;
|
|
7
|
+
onPreviewOpen: string;
|
|
8
|
+
onPreviewClose: string;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createComponent } from '@lit-labs/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { NrVideoElement } from './video.component.js';
|
|
4
|
+
export const NrVideo = createComponent({
|
|
5
|
+
tagName: 'nr-video',
|
|
6
|
+
elementClass: NrVideoElement,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onPlay: 'nr-video-play',
|
|
10
|
+
onPause: 'nr-video-pause',
|
|
11
|
+
onEnded: 'nr-video-ended',
|
|
12
|
+
onError: 'nr-video-error',
|
|
13
|
+
onPreviewOpen: 'nr-video-preview-open',
|
|
14
|
+
onPreviewClose: 'nr-video-preview-close',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=react.js.map
|