@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,372 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var NrPopconfirmManagerElement_1;
|
|
22
|
+
import { html, LitElement, nothing } from 'lit';
|
|
23
|
+
import { customElement, state } from 'lit/decorators.js';
|
|
24
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
25
|
+
import { popconfirmManagerStyles } from './popconfirm-manager.style.js';
|
|
26
|
+
import { NuralyUIBaseMixin } from '@nuralyui/common/mixins';
|
|
27
|
+
/**
|
|
28
|
+
* # PopconfirmManager Component
|
|
29
|
+
*
|
|
30
|
+
* A container component that manages popconfirm instances displayed at cursor position.
|
|
31
|
+
* Similar to toast notifications but for confirmation dialogs.
|
|
32
|
+
*
|
|
33
|
+
* ## Features
|
|
34
|
+
* - Show popconfirm at cursor/mouse position
|
|
35
|
+
* - Programmatic API for creating confirmations
|
|
36
|
+
* - Async confirmation support with loading state
|
|
37
|
+
* - Auto-dismiss on outside click or escape
|
|
38
|
+
* - Customizable appearance and callbacks
|
|
39
|
+
*
|
|
40
|
+
* ## Usage
|
|
41
|
+
* ```html
|
|
42
|
+
* <!-- Add once to your app -->
|
|
43
|
+
* <nr-popconfirm-manager></nr-popconfirm-manager>
|
|
44
|
+
*
|
|
45
|
+
* <!-- Programmatic usage -->
|
|
46
|
+
* <script>
|
|
47
|
+
* const manager = document.querySelector('nr-popconfirm-manager');
|
|
48
|
+
*
|
|
49
|
+
* // Show at cursor position (from click event)
|
|
50
|
+
* element.addEventListener('click', (e) => {
|
|
51
|
+
* manager.show({
|
|
52
|
+
* title: 'Delete item?',
|
|
53
|
+
* description: 'This action cannot be undone.',
|
|
54
|
+
* okType: 'danger',
|
|
55
|
+
* onConfirm: () => {
|
|
56
|
+
* console.log('Deleted!');
|
|
57
|
+
* }
|
|
58
|
+
* }, { x: e.clientX, y: e.clientY });
|
|
59
|
+
* });
|
|
60
|
+
*
|
|
61
|
+
* // Or use the static confirm helper
|
|
62
|
+
* const confirmed = await NrPopconfirmManager.confirm({
|
|
63
|
+
* title: 'Are you sure?',
|
|
64
|
+
* }, { x: event.clientX, y: event.clientY });
|
|
65
|
+
* </script>
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @element nr-popconfirm-manager
|
|
69
|
+
* @fires nr-popconfirm-confirm - Fired when user confirms
|
|
70
|
+
* @fires nr-popconfirm-cancel - Fired when user cancels
|
|
71
|
+
*/
|
|
72
|
+
let NrPopconfirmManagerElement = NrPopconfirmManagerElement_1 = class NrPopconfirmManagerElement extends NuralyUIBaseMixin(LitElement) {
|
|
73
|
+
constructor() {
|
|
74
|
+
super(...arguments);
|
|
75
|
+
this.requiredComponents = ['nr-icon', 'nr-button', 'nr-label'];
|
|
76
|
+
/** Active popconfirm items */
|
|
77
|
+
this.items = [];
|
|
78
|
+
/** Bound event handlers */
|
|
79
|
+
this._boundHandleOutsideClick = null;
|
|
80
|
+
this._boundHandleKeydown = null;
|
|
81
|
+
/** Timestamp when popconfirm was shown (to prevent immediate close from same click) */
|
|
82
|
+
this._showTimestamp = 0;
|
|
83
|
+
}
|
|
84
|
+
connectedCallback() {
|
|
85
|
+
super.connectedCallback();
|
|
86
|
+
NrPopconfirmManagerElement_1._instance = this;
|
|
87
|
+
this._boundHandleOutsideClick = this.handleOutsideClick.bind(this);
|
|
88
|
+
this._boundHandleKeydown = this.handleKeydown.bind(this);
|
|
89
|
+
document.addEventListener('click', this._boundHandleOutsideClick, true);
|
|
90
|
+
document.addEventListener('keydown', this._boundHandleKeydown);
|
|
91
|
+
}
|
|
92
|
+
disconnectedCallback() {
|
|
93
|
+
super.disconnectedCallback();
|
|
94
|
+
NrPopconfirmManagerElement_1._instance = null;
|
|
95
|
+
if (this._boundHandleOutsideClick) {
|
|
96
|
+
document.removeEventListener('click', this._boundHandleOutsideClick, true);
|
|
97
|
+
}
|
|
98
|
+
if (this._boundHandleKeydown) {
|
|
99
|
+
document.removeEventListener('keydown', this._boundHandleKeydown);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Get the global instance
|
|
104
|
+
*/
|
|
105
|
+
static getInstance() {
|
|
106
|
+
return NrPopconfirmManagerElement_1._instance;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Static helper to show a confirmation dialog
|
|
110
|
+
* Returns a promise that resolves to true if confirmed, false if cancelled
|
|
111
|
+
*/
|
|
112
|
+
static confirm(config, position) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
const instance = NrPopconfirmManagerElement_1.getInstance();
|
|
115
|
+
if (!instance) {
|
|
116
|
+
console.warn('NrPopconfirmManager: No instance found. Add <nr-popconfirm-manager> to your app.');
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
return new Promise((resolve) => {
|
|
120
|
+
instance.show(Object.assign(Object.assign({}, config), { onConfirm: () => __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
var _a;
|
|
122
|
+
yield ((_a = config.onConfirm) === null || _a === void 0 ? void 0 : _a.call(config));
|
|
123
|
+
resolve(true);
|
|
124
|
+
}), onCancel: () => {
|
|
125
|
+
var _a;
|
|
126
|
+
(_a = config.onCancel) === null || _a === void 0 ? void 0 : _a.call(config);
|
|
127
|
+
resolve(false);
|
|
128
|
+
} }), position);
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Show a popconfirm at the specified position
|
|
134
|
+
*/
|
|
135
|
+
show(config, position) {
|
|
136
|
+
const id = this.generateId();
|
|
137
|
+
// Adjust position to keep popconfirm within viewport
|
|
138
|
+
const adjustedPosition = this.adjustPosition(position);
|
|
139
|
+
const item = {
|
|
140
|
+
id,
|
|
141
|
+
config,
|
|
142
|
+
position: adjustedPosition,
|
|
143
|
+
loading: false,
|
|
144
|
+
};
|
|
145
|
+
// Record timestamp to prevent immediate close from same click event
|
|
146
|
+
this._showTimestamp = Date.now();
|
|
147
|
+
// Only allow one popconfirm at a time
|
|
148
|
+
this.items = [item];
|
|
149
|
+
console.log('[nr-popconfirm-manager] show() called, items:', this.items);
|
|
150
|
+
this.requestUpdate();
|
|
151
|
+
return id;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Close a specific popconfirm
|
|
155
|
+
*/
|
|
156
|
+
close(id) {
|
|
157
|
+
this.items = this.items.filter(item => item.id !== id);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Close all popconfirms
|
|
161
|
+
*/
|
|
162
|
+
closeAll() {
|
|
163
|
+
this.items = [];
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Handle confirm button click
|
|
167
|
+
*/
|
|
168
|
+
handleConfirm(item, e) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
e.stopPropagation();
|
|
171
|
+
const confirmEvent = new CustomEvent('nr-popconfirm-confirm', {
|
|
172
|
+
bubbles: true,
|
|
173
|
+
composed: true,
|
|
174
|
+
detail: { id: item.id, config: item.config },
|
|
175
|
+
});
|
|
176
|
+
this.dispatchEvent(confirmEvent);
|
|
177
|
+
// Handle async onConfirm
|
|
178
|
+
if (item.config.onConfirm) {
|
|
179
|
+
const result = item.config.onConfirm();
|
|
180
|
+
if (result && typeof result.then === 'function') {
|
|
181
|
+
// Show loading state
|
|
182
|
+
item.loading = true;
|
|
183
|
+
this.requestUpdate();
|
|
184
|
+
try {
|
|
185
|
+
yield result;
|
|
186
|
+
}
|
|
187
|
+
catch (error) {
|
|
188
|
+
console.error('Popconfirm confirmation failed:', error);
|
|
189
|
+
}
|
|
190
|
+
finally {
|
|
191
|
+
item.loading = false;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
this.close(item.id);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Handle cancel button click
|
|
200
|
+
*/
|
|
201
|
+
handleCancel(item, e) {
|
|
202
|
+
var _a, _b;
|
|
203
|
+
e.stopPropagation();
|
|
204
|
+
const cancelEvent = new CustomEvent('nr-popconfirm-cancel', {
|
|
205
|
+
bubbles: true,
|
|
206
|
+
composed: true,
|
|
207
|
+
detail: { id: item.id, config: item.config },
|
|
208
|
+
});
|
|
209
|
+
this.dispatchEvent(cancelEvent);
|
|
210
|
+
(_b = (_a = item.config).onCancel) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
211
|
+
this.close(item.id);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Handle clicks outside the popconfirm
|
|
215
|
+
*/
|
|
216
|
+
handleOutsideClick(e) {
|
|
217
|
+
var _a;
|
|
218
|
+
if (this.items.length === 0)
|
|
219
|
+
return;
|
|
220
|
+
// Prevent immediate close from the same click event that opened the popconfirm
|
|
221
|
+
// Allow at least 100ms before responding to outside clicks
|
|
222
|
+
if (Date.now() - this._showTimestamp < 100) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
const path = e.composedPath();
|
|
226
|
+
const popconfirmContainer = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.popconfirm-manager__item');
|
|
227
|
+
if (popconfirmContainer && !path.includes(popconfirmContainer)) {
|
|
228
|
+
// Cancel all open popconfirms
|
|
229
|
+
this.items.forEach(item => {
|
|
230
|
+
var _a, _b;
|
|
231
|
+
(_b = (_a = item.config).onCancel) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
232
|
+
});
|
|
233
|
+
this.closeAll();
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Handle escape key
|
|
238
|
+
*/
|
|
239
|
+
handleKeydown(e) {
|
|
240
|
+
if (e.key === 'Escape' && this.items.length > 0) {
|
|
241
|
+
this.items.forEach(item => {
|
|
242
|
+
var _a, _b;
|
|
243
|
+
(_b = (_a = item.config).onCancel) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
244
|
+
});
|
|
245
|
+
this.closeAll();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Adjust position to keep popconfirm within viewport
|
|
250
|
+
*/
|
|
251
|
+
adjustPosition(position) {
|
|
252
|
+
const padding = 16;
|
|
253
|
+
const estimatedWidth = 280;
|
|
254
|
+
const estimatedHeight = 120;
|
|
255
|
+
const viewportWidth = window.innerWidth;
|
|
256
|
+
const viewportHeight = window.innerHeight;
|
|
257
|
+
let x = position.x;
|
|
258
|
+
let y = position.y;
|
|
259
|
+
// Adjust horizontal position
|
|
260
|
+
if (x + estimatedWidth > viewportWidth - padding) {
|
|
261
|
+
x = viewportWidth - estimatedWidth - padding;
|
|
262
|
+
}
|
|
263
|
+
if (x < padding) {
|
|
264
|
+
x = padding;
|
|
265
|
+
}
|
|
266
|
+
// Adjust vertical position
|
|
267
|
+
if (y + estimatedHeight > viewportHeight - padding) {
|
|
268
|
+
y = position.y - estimatedHeight - 8; // Show above cursor
|
|
269
|
+
}
|
|
270
|
+
if (y < padding) {
|
|
271
|
+
y = padding;
|
|
272
|
+
}
|
|
273
|
+
return { x, y };
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Generate unique ID
|
|
277
|
+
*/
|
|
278
|
+
generateId() {
|
|
279
|
+
return `popconfirm-${crypto.randomUUID()}`;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Get icon color based on icon type
|
|
283
|
+
*/
|
|
284
|
+
getIconClass(icon) {
|
|
285
|
+
const iconColorMap = {
|
|
286
|
+
["exclamation-circle" /* PopconfirmIcon.Warning */]: 'warning',
|
|
287
|
+
["question-circle" /* PopconfirmIcon.Question */]: 'question',
|
|
288
|
+
["info-circle" /* PopconfirmIcon.Info */]: 'info',
|
|
289
|
+
["close-circle" /* PopconfirmIcon.Error */]: 'error',
|
|
290
|
+
["check-circle" /* PopconfirmIcon.Success */]: 'success',
|
|
291
|
+
};
|
|
292
|
+
return iconColorMap[icon || ''] || 'warning';
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Render a single popconfirm item
|
|
296
|
+
*/
|
|
297
|
+
renderItem(item) {
|
|
298
|
+
const { config, position } = item;
|
|
299
|
+
const icon = config.icon || "exclamation-circle" /* PopconfirmIcon.Warning */;
|
|
300
|
+
const iconClass = config.iconColor ? 'custom' : this.getIconClass(icon);
|
|
301
|
+
const showCancel = config.showCancel !== false;
|
|
302
|
+
const positionStyles = {
|
|
303
|
+
left: `${position.x}px`,
|
|
304
|
+
top: `${position.y}px`,
|
|
305
|
+
};
|
|
306
|
+
const iconStyles = config.iconColor ? { color: config.iconColor } : {};
|
|
307
|
+
return html `
|
|
308
|
+
<div
|
|
309
|
+
class="popconfirm-manager__item"
|
|
310
|
+
style=${styleMap(positionStyles)}
|
|
311
|
+
@click=${(e) => e.stopPropagation()}
|
|
312
|
+
>
|
|
313
|
+
<div class="popconfirm-manager__content">
|
|
314
|
+
<div class="popconfirm-manager__message">
|
|
315
|
+
<div
|
|
316
|
+
class="popconfirm-manager__icon popconfirm-manager__icon--${iconClass}"
|
|
317
|
+
style=${styleMap(iconStyles)}
|
|
318
|
+
>
|
|
319
|
+
<nr-icon name=${icon}></nr-icon>
|
|
320
|
+
</div>
|
|
321
|
+
<div class="popconfirm-manager__text">
|
|
322
|
+
${config.title ? html `<nr-label class="popconfirm-manager__title" size="medium">${config.title}</nr-label>` : nothing}
|
|
323
|
+
${config.description ? html `<nr-label class="popconfirm-manager__description" size="small" variant="secondary">${config.description}</nr-label>` : nothing}
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
<div class="popconfirm-manager__buttons">
|
|
327
|
+
${showCancel
|
|
328
|
+
? html `
|
|
329
|
+
<nr-button
|
|
330
|
+
size="small"
|
|
331
|
+
@click=${(e) => this.handleCancel(item, e)}
|
|
332
|
+
>
|
|
333
|
+
${config.cancelText || 'Cancel'}
|
|
334
|
+
</nr-button>
|
|
335
|
+
`
|
|
336
|
+
: nothing}
|
|
337
|
+
<nr-button
|
|
338
|
+
size="small"
|
|
339
|
+
type=${config.okType === 'danger' ? 'danger' : config.okType === 'primary' ? 'primary' : 'default'}
|
|
340
|
+
?loading=${item.loading}
|
|
341
|
+
?disabled=${item.loading}
|
|
342
|
+
@click=${(e) => this.handleConfirm(item, e)}
|
|
343
|
+
>
|
|
344
|
+
${config.okText || 'OK'}
|
|
345
|
+
</nr-button>
|
|
346
|
+
</div>
|
|
347
|
+
</div>
|
|
348
|
+
</div>
|
|
349
|
+
`;
|
|
350
|
+
}
|
|
351
|
+
render() {
|
|
352
|
+
if (this.items.length === 0) {
|
|
353
|
+
return nothing;
|
|
354
|
+
}
|
|
355
|
+
return html `
|
|
356
|
+
<div class="popconfirm-manager">
|
|
357
|
+
${this.items.map(item => this.renderItem(item))}
|
|
358
|
+
</div>
|
|
359
|
+
`;
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
NrPopconfirmManagerElement.styles = popconfirmManagerStyles;
|
|
363
|
+
/** Static instance for global access */
|
|
364
|
+
NrPopconfirmManagerElement._instance = null;
|
|
365
|
+
__decorate([
|
|
366
|
+
state()
|
|
367
|
+
], NrPopconfirmManagerElement.prototype, "items", void 0);
|
|
368
|
+
NrPopconfirmManagerElement = NrPopconfirmManagerElement_1 = __decorate([
|
|
369
|
+
customElement('nr-popconfirm-manager')
|
|
370
|
+
], NrPopconfirmManagerElement);
|
|
371
|
+
export { NrPopconfirmManagerElement };
|
|
372
|
+
//# sourceMappingURL=popconfirm-manager.component.js.map
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const popconfirmManagerStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.popconfirm-manager {
|
|
8
|
+
position: fixed;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
z-index: var(--nuraly-z-index-popconfirm, 10000);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.popconfirm-manager__item {
|
|
18
|
+
position: fixed;
|
|
19
|
+
pointer-events: auto;
|
|
20
|
+
background: var(--nuraly-color-dropdown-background, #ffffff);
|
|
21
|
+
border: 1px solid var(--nuraly-color-dropdown-border, #e0e0e0);
|
|
22
|
+
border-radius: var(--nuraly-border-radius-lg, 8px);
|
|
23
|
+
box-shadow: var(--nuraly-shadow-lg, 0 4px 16px rgba(0, 0, 0, 0.15));
|
|
24
|
+
min-width: 240px;
|
|
25
|
+
max-width: 320px;
|
|
26
|
+
animation: popconfirm-manager-fade-in 0.15s ease-out;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@keyframes popconfirm-manager-fade-in {
|
|
30
|
+
from {
|
|
31
|
+
opacity: 0;
|
|
32
|
+
transform: scale(0.95) translateY(-4px);
|
|
33
|
+
}
|
|
34
|
+
to {
|
|
35
|
+
opacity: 1;
|
|
36
|
+
transform: scale(1) translateY(0);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.popconfirm-manager__content {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: 12px;
|
|
44
|
+
padding: 12px 16px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.popconfirm-manager__message {
|
|
48
|
+
display: flex;
|
|
49
|
+
gap: 8px;
|
|
50
|
+
align-items: flex-start;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.popconfirm-manager__icon {
|
|
54
|
+
flex-shrink: 0;
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
line-height: 1.5;
|
|
57
|
+
margin-top: 2px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.popconfirm-manager__icon--warning {
|
|
61
|
+
color: var(--nuraly-color-warning, #faad14);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.popconfirm-manager__icon--question {
|
|
65
|
+
color: var(--nuraly-color-info, #1890ff);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.popconfirm-manager__icon--info {
|
|
69
|
+
color: var(--nuraly-color-info, #1890ff);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.popconfirm-manager__icon--error {
|
|
73
|
+
color: var(--nuraly-color-error, #ff4d4f);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.popconfirm-manager__icon--success {
|
|
77
|
+
color: var(--nuraly-color-success, #52c41a);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.popconfirm-manager__icon--custom {
|
|
81
|
+
color: inherit;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.popconfirm-manager__text {
|
|
85
|
+
flex: 1;
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
gap: 4px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.popconfirm-manager__title {
|
|
92
|
+
color: var(--nuraly-color-text, #262626);
|
|
93
|
+
font-size: var(--nuraly-font-size-base, 14px);
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
line-height: 1.5;
|
|
96
|
+
margin: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.popconfirm-manager__description {
|
|
100
|
+
color: var(--nuraly-color-text-secondary, #666666);
|
|
101
|
+
font-size: var(--nuraly-font-size-sm, 12px);
|
|
102
|
+
line-height: 1.5;
|
|
103
|
+
margin: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.popconfirm-manager__buttons {
|
|
107
|
+
display: flex;
|
|
108
|
+
gap: 8px;
|
|
109
|
+
justify-content: flex-end;
|
|
110
|
+
align-items: center;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Arrow pointer towards cursor */
|
|
114
|
+
.popconfirm-manager__item::before {
|
|
115
|
+
content: '';
|
|
116
|
+
position: absolute;
|
|
117
|
+
left: 16px;
|
|
118
|
+
top: -6px;
|
|
119
|
+
width: 12px;
|
|
120
|
+
height: 12px;
|
|
121
|
+
background: var(--nuraly-color-dropdown-background, #ffffff);
|
|
122
|
+
border: 1px solid var(--nuraly-color-dropdown-border, #e0e0e0);
|
|
123
|
+
border-right: none;
|
|
124
|
+
border-bottom: none;
|
|
125
|
+
transform: rotate(45deg);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* RTL Support */
|
|
129
|
+
:host([dir='rtl']) .popconfirm-manager__message {
|
|
130
|
+
direction: rtl;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host([dir='rtl']) .popconfirm-manager__buttons {
|
|
134
|
+
flex-direction: row-reverse;
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
//# sourceMappingURL=popconfirm-manager.style.js.map
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
import { PopconfirmPlacement, PopconfirmTrigger, PopconfirmButtonType, PopconfirmIcon } from './popconfirm.types.js';
|
|
8
|
+
declare const NrPopconfirmElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & typeof LitElement;
|
|
9
|
+
/**
|
|
10
|
+
* # Popconfirm Component
|
|
11
|
+
*
|
|
12
|
+
* A pop-up confirmation dialog triggered by user interaction. It provides a simple and
|
|
13
|
+
* compact way to ask for user confirmation before performing an action.
|
|
14
|
+
*
|
|
15
|
+
* ## Features
|
|
16
|
+
* - Customizable title and description
|
|
17
|
+
* - Configurable OK and Cancel buttons
|
|
18
|
+
* - Multiple placement options (12 positions)
|
|
19
|
+
* - Custom icons with predefined options
|
|
20
|
+
* - Async confirmation support
|
|
21
|
+
* - Multiple trigger modes (click, hover, focus)
|
|
22
|
+
* - Theme-aware styling
|
|
23
|
+
* - Keyboard accessibility
|
|
24
|
+
*
|
|
25
|
+
* ## Usage
|
|
26
|
+
* ```html
|
|
27
|
+
* <!-- Basic popconfirm -->
|
|
28
|
+
* <nr-popconfirm
|
|
29
|
+
* title="Are you sure delete this task?"
|
|
30
|
+
* ok-text="Yes"
|
|
31
|
+
* cancel-text="No">
|
|
32
|
+
* <button slot="trigger">Delete</button>
|
|
33
|
+
* </nr-popconfirm>
|
|
34
|
+
*
|
|
35
|
+
* <!-- With description -->
|
|
36
|
+
* <nr-popconfirm
|
|
37
|
+
* title="Delete the task"
|
|
38
|
+
* description="Are you sure you want to delete this task? This action cannot be undone."
|
|
39
|
+
* ok-type="danger">
|
|
40
|
+
* <button slot="trigger">Delete</button>
|
|
41
|
+
* </nr-popconfirm>
|
|
42
|
+
*
|
|
43
|
+
* <!-- Custom icon -->
|
|
44
|
+
* <nr-popconfirm
|
|
45
|
+
* title="Change status?"
|
|
46
|
+
* icon="question-circle"
|
|
47
|
+
* icon-color="#1890ff">
|
|
48
|
+
* <button slot="trigger">Change Status</button>
|
|
49
|
+
* </nr-popconfirm>
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @element nr-popconfirm
|
|
53
|
+
* @fires nr-confirm - Fired when user confirms the action
|
|
54
|
+
* @fires nr-cancel - Fired when user cancels the action
|
|
55
|
+
* @fires nr-open-change - Fired when popconfirm visibility changes
|
|
56
|
+
*
|
|
57
|
+
* @slot trigger - Element that triggers the popconfirm
|
|
58
|
+
*
|
|
59
|
+
* @cssproperty --nuraly-popconfirm-icon-color - Custom icon color
|
|
60
|
+
*/
|
|
61
|
+
export declare class NrPopconfirmElement extends NrPopconfirmElement_base {
|
|
62
|
+
static styles: import("lit").CSSResult;
|
|
63
|
+
requiredComponents: string[];
|
|
64
|
+
/**
|
|
65
|
+
* Title of the confirmation box
|
|
66
|
+
*/
|
|
67
|
+
title: string;
|
|
68
|
+
/**
|
|
69
|
+
* Description of the confirmation box (optional)
|
|
70
|
+
*/
|
|
71
|
+
description: string;
|
|
72
|
+
/**
|
|
73
|
+
* Text of the OK button
|
|
74
|
+
*/
|
|
75
|
+
okText: string;
|
|
76
|
+
/**
|
|
77
|
+
* Text of the Cancel button
|
|
78
|
+
*/
|
|
79
|
+
cancelText: string;
|
|
80
|
+
/**
|
|
81
|
+
* Button type of the OK button
|
|
82
|
+
*/
|
|
83
|
+
okType: PopconfirmButtonType;
|
|
84
|
+
/**
|
|
85
|
+
* Show cancel button
|
|
86
|
+
*/
|
|
87
|
+
showCancel: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Icon name for the confirmation box
|
|
90
|
+
*/
|
|
91
|
+
icon: PopconfirmIcon;
|
|
92
|
+
/**
|
|
93
|
+
* Custom icon color
|
|
94
|
+
*/
|
|
95
|
+
iconColor: string;
|
|
96
|
+
/**
|
|
97
|
+
* Placement of the popconfirm
|
|
98
|
+
*/
|
|
99
|
+
placement: PopconfirmPlacement;
|
|
100
|
+
/**
|
|
101
|
+
* Trigger mode
|
|
102
|
+
*/
|
|
103
|
+
trigger: PopconfirmTrigger;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the popconfirm is disabled
|
|
106
|
+
*/
|
|
107
|
+
disabled: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Whether to show arrow
|
|
110
|
+
*/
|
|
111
|
+
arrow: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Whether the popconfirm is open
|
|
114
|
+
*/
|
|
115
|
+
open: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Loading state for OK button (for async operations)
|
|
118
|
+
*/
|
|
119
|
+
private okLoading;
|
|
120
|
+
/**
|
|
121
|
+
* Bound event handlers for cleanup
|
|
122
|
+
*/
|
|
123
|
+
private _boundHandleOutsideClick;
|
|
124
|
+
private _boundHandleKeydown;
|
|
125
|
+
/**
|
|
126
|
+
* Reference to the dropdown element
|
|
127
|
+
*/
|
|
128
|
+
private get dropdownElement();
|
|
129
|
+
connectedCallback(): void;
|
|
130
|
+
disconnectedCallback(): void;
|
|
131
|
+
/**
|
|
132
|
+
* Handle trigger click to toggle popconfirm
|
|
133
|
+
*/
|
|
134
|
+
private handleTriggerClick;
|
|
135
|
+
/**
|
|
136
|
+
* Open the popconfirm
|
|
137
|
+
*/
|
|
138
|
+
private openPopconfirm;
|
|
139
|
+
/**
|
|
140
|
+
* Handle clicks outside the popconfirm to close it
|
|
141
|
+
*/
|
|
142
|
+
private handleOutsideClick;
|
|
143
|
+
/**
|
|
144
|
+
* Handle escape key to close popconfirm
|
|
145
|
+
*/
|
|
146
|
+
private handleKeydown;
|
|
147
|
+
/**
|
|
148
|
+
* Handle confirm button click
|
|
149
|
+
*/
|
|
150
|
+
private handleConfirm;
|
|
151
|
+
/**
|
|
152
|
+
* Handle cancel button click
|
|
153
|
+
*/
|
|
154
|
+
private handleCancel;
|
|
155
|
+
/**
|
|
156
|
+
* Close the popconfirm
|
|
157
|
+
*/
|
|
158
|
+
private closePopconfirm;
|
|
159
|
+
/**
|
|
160
|
+
* Get icon color based on icon type
|
|
161
|
+
*/
|
|
162
|
+
private getIconColor;
|
|
163
|
+
/**
|
|
164
|
+
* Get icon class based on icon type
|
|
165
|
+
*/
|
|
166
|
+
private getIconClass;
|
|
167
|
+
/**
|
|
168
|
+
* Render the popconfirm content
|
|
169
|
+
*/
|
|
170
|
+
private renderContent;
|
|
171
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
172
|
+
}
|
|
173
|
+
declare global {
|
|
174
|
+
interface HTMLElementTagNameMap {
|
|
175
|
+
'nr-popconfirm': NrPopconfirmElement;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
export {};
|
|
179
|
+
//# sourceMappingURL=popconfirm.component.d.ts.map
|