@nuraly/lumenui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +28 -0
- package/README.md +248 -0
- package/dist/nuralyui.bundle.js +29209 -0
- package/dist/nuralyui.bundle.js.gz +0 -0
- package/dist/src/components/alert/alert.component.d.ts +103 -0
- package/dist/src/components/alert/alert.component.js +225 -0
- package/dist/src/components/alert/alert.style.d.ts +14 -0
- package/dist/src/components/alert/alert.style.js +191 -0
- package/dist/src/components/alert/alert.types.d.ts +46 -0
- package/dist/src/components/alert/alert.types.js +7 -0
- package/dist/src/components/alert/bundle.js +231 -0
- package/dist/src/components/alert/bundle.js.gz +0 -0
- package/dist/src/components/alert/index.d.ts +8 -0
- package/dist/src/components/alert/index.js +8 -0
- package/dist/src/components/alert/react.d.ts +5 -0
- package/dist/src/components/alert/react.js +17 -0
- package/dist/src/components/badge/badge.component.d.ts +148 -0
- package/dist/src/components/badge/badge.component.js +270 -0
- package/dist/src/components/badge/badge.style.d.ts +14 -0
- package/dist/src/components/badge/badge.style.js +250 -0
- package/dist/src/components/badge/badge.types.d.ts +84 -0
- package/dist/src/components/badge/badge.types.js +7 -0
- package/dist/src/components/badge/bundle.js +277 -0
- package/dist/src/components/badge/bundle.js.gz +0 -0
- package/dist/src/components/badge/index.d.ts +2 -0
- package/dist/src/components/badge/index.js +2 -0
- package/dist/src/components/badge/react.d.ts +3 -0
- package/dist/src/components/badge/react.js +10 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +121 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.js +257 -0
- package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +14 -0
- package/dist/src/components/breadcrumb/breadcrumb.style.js +153 -0
- package/dist/src/components/breadcrumb/breadcrumb.types.d.ts +63 -0
- package/dist/src/components/breadcrumb/breadcrumb.types.js +7 -0
- package/dist/src/components/breadcrumb/bundle.js +213 -0
- package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
- package/dist/src/components/breadcrumb/index.d.ts +2 -0
- package/dist/src/components/breadcrumb/index.js +2 -0
- package/dist/src/components/breadcrumb/react.d.ts +5 -0
- package/dist/src/components/breadcrumb/react.js +12 -0
- package/dist/src/components/button/bundle.js +606 -0
- package/dist/src/components/button/bundle.js.gz +0 -0
- package/dist/src/components/button/button.component.d.ts +96 -0
- package/dist/src/components/button/button.component.js +312 -0
- package/dist/src/components/button/button.style.d.ts +10 -0
- package/dist/src/components/button/button.style.js +535 -0
- package/dist/src/components/button/button.types.d.ts +57 -0
- package/dist/src/components/button/button.types.js +2 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/button/index.js +2 -0
- package/dist/src/components/button/react.d.ts +5 -0
- package/dist/src/components/button/react.js +12 -0
- package/dist/src/components/canvas/base-canvas.component.d.ts +177 -0
- package/dist/src/components/canvas/base-canvas.component.js +865 -0
- package/dist/src/components/canvas/bundle.js +16664 -0
- package/dist/src/components/canvas/bundle.js.gz +0 -0
- package/dist/src/components/canvas/canvas.component.d.ts +2 -0
- package/dist/src/components/canvas/canvas.component.js +295 -0
- package/dist/src/components/canvas/canvas.constants.d.ts +66 -0
- package/dist/src/components/canvas/canvas.constants.js +61 -0
- package/dist/src/components/canvas/chatbot-panel.style.d.ts +11 -0
- package/dist/src/components/canvas/chatbot-panel.style.js +189 -0
- package/dist/src/components/canvas/index.d.ts +13 -0
- package/dist/src/components/canvas/index.js +21 -0
- package/dist/src/components/canvas/react.d.ts +354 -0
- package/dist/src/components/canvas/react.js +41 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +63 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.js +356 -0
- package/dist/src/components/canvas/whiteboard-canvas.style.d.ts +7 -0
- package/dist/src/components/canvas/whiteboard-canvas.style.js +1011 -0
- package/dist/src/components/canvas/whiteboard-node.component.d.ts +87 -0
- package/dist/src/components/canvas/whiteboard-node.component.js +809 -0
- package/dist/src/components/canvas/whiteboard-node.style.d.ts +7 -0
- package/dist/src/components/canvas/whiteboard-node.style.js +775 -0
- package/dist/src/components/canvas/workflow-canvas.component.d.ts +150 -0
- package/dist/src/components/canvas/workflow-canvas.component.js +1468 -0
- package/dist/src/components/canvas/workflow-canvas.style.d.ts +8 -0
- package/dist/src/components/canvas/workflow-canvas.style.js +2903 -0
- package/dist/src/components/canvas/workflow-canvas.types.d.ts +710 -0
- package/dist/src/components/canvas/workflow-canvas.types.js +2305 -0
- package/dist/src/components/canvas/workflow-node.component.d.ts +96 -0
- package/dist/src/components/canvas/workflow-node.component.js +752 -0
- package/dist/src/components/canvas/workflow-node.style.d.ts +8 -0
- package/dist/src/components/canvas/workflow-node.style.js +1053 -0
- package/dist/src/components/card/bundle.js +69 -0
- package/dist/src/components/card/bundle.js.gz +0 -0
- package/dist/src/components/card/card.component.d.ts +30 -0
- package/dist/src/components/card/card.component.js +64 -0
- package/dist/src/components/card/card.style.d.ts +2 -0
- package/dist/src/components/card/card.style.js +62 -0
- package/dist/src/components/card/card.types.d.ts +17 -0
- package/dist/src/components/card/card.types.js +2 -0
- package/dist/src/components/card/index.d.ts +3 -0
- package/dist/src/components/card/index.js +3 -0
- package/dist/src/components/card/react.d.ts +5 -0
- package/dist/src/components/card/react.js +12 -0
- package/dist/src/components/carousel/bundle.js +96 -0
- package/dist/src/components/carousel/bundle.js.gz +0 -0
- package/dist/src/components/carousel/carousel.component.d.ts +19 -0
- package/dist/src/components/carousel/carousel.component.js +128 -0
- package/dist/src/components/carousel/carousel.style.d.ts +2 -0
- package/dist/src/components/carousel/carousel.style.js +68 -0
- package/dist/src/components/carousel/index.d.ts +2 -0
- package/dist/src/components/carousel/index.js +2 -0
- package/dist/src/components/carousel/react.d.ts +5 -0
- package/dist/src/components/carousel/react.js +12 -0
- package/dist/src/components/chatbot/bundle.js +2527 -0
- package/dist/src/components/chatbot/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/chatbot.component.d.ts +215 -0
- package/dist/src/components/chatbot/chatbot.component.js +1097 -0
- package/dist/src/components/chatbot/chatbot.style.d.ts +3 -0
- package/dist/src/components/chatbot/chatbot.style.js +1638 -0
- package/dist/src/components/chatbot/chatbot.types.d.ts +246 -0
- package/dist/src/components/chatbot/chatbot.types.js +124 -0
- package/dist/src/components/chatbot/index.d.ts +13 -0
- package/dist/src/components/chatbot/index.js +20 -0
- package/dist/src/components/chatbot/react.d.ts +54 -0
- package/dist/src/components/chatbot/react.js +55 -0
- package/dist/src/components/checkbox/bundle.js +352 -0
- package/dist/src/components/checkbox/bundle.js.gz +0 -0
- package/dist/src/components/checkbox/checkbox.component.d.ts +62 -0
- package/dist/src/components/checkbox/checkbox.component.js +178 -0
- package/dist/src/components/checkbox/checkbox.style.d.ts +2 -0
- package/dist/src/components/checkbox/checkbox.style.js +323 -0
- package/dist/src/components/checkbox/checkbox.types.d.ts +6 -0
- package/dist/src/components/checkbox/checkbox.types.js +2 -0
- package/dist/src/components/checkbox/index.d.ts +2 -0
- package/dist/src/components/checkbox/index.js +2 -0
- package/dist/src/components/checkbox/react.d.ts +5 -0
- package/dist/src/components/checkbox/react.js +12 -0
- package/dist/src/components/code-editor/bundle.js +55 -0
- package/dist/src/components/code-editor/bundle.js.gz +0 -0
- package/dist/src/components/code-editor/code-editor.component.d.ts +119 -0
- package/dist/src/components/code-editor/code-editor.component.js +532 -0
- package/dist/src/components/code-editor/code-editor.style.d.ts +7 -0
- package/dist/src/components/code-editor/code-editor.style.js +39 -0
- package/dist/src/components/code-editor/code-editor.types.d.ts +39 -0
- package/dist/src/components/code-editor/code-editor.types.js +22 -0
- package/dist/src/components/code-editor/index.d.ts +9 -0
- package/dist/src/components/code-editor/index.js +9 -0
- package/dist/src/components/collapse/bundle.js +308 -0
- package/dist/src/components/collapse/bundle.js.gz +0 -0
- package/dist/src/components/collapse/collapse.component.d.ts +93 -0
- package/dist/src/components/collapse/collapse.component.js +322 -0
- package/dist/src/components/collapse/collapse.style.d.ts +11 -0
- package/dist/src/components/collapse/collapse.style.js +234 -0
- package/dist/src/components/collapse/collapse.type.d.ts +79 -0
- package/dist/src/components/collapse/collapse.type.js +11 -0
- package/dist/src/components/collapse/index.d.ts +2 -0
- package/dist/src/components/collapse/index.js +2 -0
- package/dist/src/components/collapse/react.d.ts +6 -0
- package/dist/src/components/collapse/react.js +13 -0
- package/dist/src/components/colorpicker/bundle.js +242 -0
- package/dist/src/components/colorpicker/bundle.js.gz +0 -0
- package/dist/src/components/colorpicker/color-holder.component.d.ts +50 -0
- package/dist/src/components/colorpicker/color-holder.component.js +116 -0
- package/dist/src/components/colorpicker/color-holder.style.d.ts +2 -0
- package/dist/src/components/colorpicker/color-holder.style.js +45 -0
- package/dist/src/components/colorpicker/color-picker.component.d.ts +178 -0
- package/dist/src/components/colorpicker/color-picker.component.js +374 -0
- package/dist/src/components/colorpicker/color-picker.style.d.ts +10 -0
- package/dist/src/components/colorpicker/color-picker.style.js +86 -0
- package/dist/src/components/colorpicker/color-picker.types.d.ts +60 -0
- package/dist/src/components/colorpicker/color-picker.types.js +2 -0
- package/dist/src/components/colorpicker/default-color-sets.component.d.ts +45 -0
- package/dist/src/components/colorpicker/default-color-sets.component.js +121 -0
- package/dist/src/components/colorpicker/default-color-sets.style.d.ts +2 -0
- package/dist/src/components/colorpicker/default-color-sets.style.js +34 -0
- package/dist/src/components/colorpicker/index.d.ts +3 -0
- package/dist/src/components/colorpicker/index.js +3 -0
- package/dist/src/components/colorpicker/react.d.ts +6 -0
- package/dist/src/components/colorpicker/react.js +13 -0
- package/dist/src/components/console/react.d.ts +340 -0
- package/dist/src/components/console/react.js +13 -0
- package/dist/src/components/container/bundle.js +161 -0
- package/dist/src/components/container/bundle.js.gz +0 -0
- package/dist/src/components/container/container.component.d.ts +85 -0
- package/dist/src/components/container/container.component.js +223 -0
- package/dist/src/components/container/container.style.d.ts +6 -0
- package/dist/src/components/container/container.style.js +146 -0
- package/dist/src/components/container/container.types.d.ts +67 -0
- package/dist/src/components/container/container.types.js +5 -0
- package/dist/src/components/container/index.d.ts +3 -0
- package/dist/src/components/container/index.js +3 -0
- package/dist/src/components/container/react.d.ts +3 -0
- package/dist/src/components/container/react.js +10 -0
- package/dist/src/components/datepicker/bundle.js +706 -0
- package/dist/src/components/datepicker/bundle.js.gz +0 -0
- package/dist/src/components/datepicker/datepicker.component.d.ts +190 -0
- package/dist/src/components/datepicker/datepicker.component.js +673 -0
- package/dist/src/components/datepicker/datepicker.constant.d.ts +60 -0
- package/dist/src/components/datepicker/datepicker.constant.js +60 -0
- package/dist/src/components/datepicker/datepicker.style.d.ts +17 -0
- package/dist/src/components/datepicker/datepicker.style.js +453 -0
- package/dist/src/components/datepicker/datepicker.style.variables.d.ts +2 -0
- package/dist/src/components/datepicker/datepicker.style.variables.js +119 -0
- package/dist/src/components/datepicker/datepicker.types.d.ts +142 -0
- package/dist/src/components/datepicker/datepicker.types.js +75 -0
- package/dist/src/components/datepicker/index.d.ts +4 -0
- package/dist/src/components/datepicker/index.js +4 -0
- package/dist/src/components/datepicker/react.d.ts +16 -0
- package/dist/src/components/datepicker/react.js +23 -0
- package/dist/src/components/db-connection-select/bundle.js +308 -0
- package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +105 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.js +573 -0
- package/dist/src/components/db-connection-select/index.d.ts +7 -0
- package/dist/src/components/db-connection-select/index.js +7 -0
- package/dist/src/components/divider/bundle.js +143 -0
- package/dist/src/components/divider/bundle.js.gz +0 -0
- package/dist/src/components/divider/divider.component.d.ts +90 -0
- package/dist/src/components/divider/divider.component.js +168 -0
- package/dist/src/components/divider/divider.style.d.ts +3 -0
- package/dist/src/components/divider/divider.style.js +139 -0
- package/dist/src/components/divider/divider.types.d.ts +55 -0
- package/dist/src/components/divider/divider.types.js +6 -0
- package/dist/src/components/divider/index.d.ts +3 -0
- package/dist/src/components/divider/index.js +3 -0
- package/dist/src/components/divider/react.d.ts +3 -0
- package/dist/src/components/divider/react.js +10 -0
- package/dist/src/components/document/bundle.js +242 -0
- package/dist/src/components/document/bundle.js.gz +0 -0
- package/dist/src/components/document/document.component.d.ts +27 -0
- package/dist/src/components/document/document.component.js +136 -0
- package/dist/src/components/document/document.style.d.ts +3 -0
- package/dist/src/components/document/document.style.js +210 -0
- package/dist/src/components/document/document.types.d.ts +68 -0
- package/dist/src/components/document/document.types.js +7 -0
- package/dist/src/components/document/index.d.ts +3 -0
- package/dist/src/components/document/index.js +3 -0
- package/dist/src/components/document/react.d.ts +8 -0
- package/dist/src/components/document/react.js +15 -0
- package/dist/src/components/dropdown/bundle.js +528 -0
- package/dist/src/components/dropdown/bundle.js.gz +0 -0
- package/dist/src/components/dropdown/dropdown.component.d.ts +120 -0
- package/dist/src/components/dropdown/dropdown.component.js +390 -0
- package/dist/src/components/dropdown/dropdown.style.d.ts +2 -0
- package/dist/src/components/dropdown/dropdown.style.js +460 -0
- package/dist/src/components/dropdown/dropdown.types.d.ts +99 -0
- package/dist/src/components/dropdown/dropdown.types.js +2 -0
- package/dist/src/components/dropdown/index.d.ts +3 -0
- package/dist/src/components/dropdown/index.js +3 -0
- package/dist/src/components/dropdown/react.d.ts +7 -0
- package/dist/src/components/dropdown/react.js +14 -0
- package/dist/src/components/file-upload/bundle.js +472 -0
- package/dist/src/components/file-upload/bundle.js.gz +0 -0
- package/dist/src/components/file-upload/file-upload.component.d.ts +43 -0
- package/dist/src/components/file-upload/file-upload.component.js +398 -0
- package/dist/src/components/file-upload/index.d.ts +2 -0
- package/dist/src/components/file-upload/index.js +2 -0
- package/dist/src/components/file-upload/react.d.ts +7 -0
- package/dist/src/components/file-upload/react.js +14 -0
- package/dist/src/components/file-upload/styles.d.ts +2 -0
- package/dist/src/components/file-upload/styles.js +373 -0
- package/dist/src/components/file-upload/types.d.ts +11 -0
- package/dist/src/components/file-upload/types.js +2 -0
- package/dist/src/components/file-upload/utils.d.ts +6 -0
- package/dist/src/components/file-upload/utils.js +24 -0
- package/dist/src/components/flex/bundle.js +114 -0
- package/dist/src/components/flex/bundle.js.gz +0 -0
- package/dist/src/components/flex/flex.component.d.ts +89 -0
- package/dist/src/components/flex/flex.component.js +178 -0
- package/dist/src/components/flex/flex.style.d.ts +6 -0
- package/dist/src/components/flex/flex.style.js +101 -0
- package/dist/src/components/flex/flex.types.d.ts +63 -0
- package/dist/src/components/flex/flex.types.js +5 -0
- package/dist/src/components/flex/index.d.ts +3 -0
- package/dist/src/components/flex/index.js +3 -0
- package/dist/src/components/flex/react.d.ts +3 -0
- package/dist/src/components/flex/react.js +10 -0
- package/dist/src/components/form/bundle.js +98 -0
- package/dist/src/components/form/bundle.js.gz +0 -0
- package/dist/src/components/form/form.component.d.ts +279 -0
- package/dist/src/components/form/form.component.js +644 -0
- package/dist/src/components/form/form.style.d.ts +7 -0
- package/dist/src/components/form/form.style.js +68 -0
- package/dist/src/components/form/form.types.d.ts +92 -0
- package/dist/src/components/form/form.types.js +38 -0
- package/dist/src/components/form/index.d.ts +10 -0
- package/dist/src/components/form/index.js +13 -0
- package/dist/src/components/grid/bundle.js +202 -0
- package/dist/src/components/grid/bundle.js.gz +0 -0
- package/dist/src/components/grid/col.component.d.ts +103 -0
- package/dist/src/components/grid/col.component.js +253 -0
- package/dist/src/components/grid/col.style.d.ts +6 -0
- package/dist/src/components/grid/col.style.js +117 -0
- package/dist/src/components/grid/grid.types.d.ts +80 -0
- package/dist/src/components/grid/grid.types.js +16 -0
- package/dist/src/components/grid/index.d.ts +4 -0
- package/dist/src/components/grid/index.js +4 -0
- package/dist/src/components/grid/react.d.ts +5 -0
- package/dist/src/components/grid/react.js +17 -0
- package/dist/src/components/grid/row.component.d.ts +83 -0
- package/dist/src/components/grid/row.component.js +197 -0
- package/dist/src/components/grid/row.style.d.ts +6 -0
- package/dist/src/components/grid/row.style.js +68 -0
- package/dist/src/components/icon/bundle.js +340 -0
- package/dist/src/components/icon/bundle.js.gz +0 -0
- package/dist/src/components/icon/icon.component.d.ts +64 -0
- package/dist/src/components/icon/icon.component.js +207 -0
- package/dist/src/components/icon/icon.style.d.ts +2 -0
- package/dist/src/components/icon/icon.style.js +211 -0
- package/dist/src/components/icon/icon.types.d.ts +5 -0
- package/dist/src/components/icon/icon.types.js +2 -0
- package/dist/src/components/icon/icon.variables.d.ts +17 -0
- package/dist/src/components/icon/icon.variables.js +132 -0
- package/dist/src/components/icon/index.d.ts +2 -0
- package/dist/src/components/icon/index.js +2 -0
- package/dist/src/components/icon/react.d.ts +3 -0
- package/dist/src/components/icon/react.js +9 -0
- package/dist/src/components/iconpicker/bundle.js +2811 -0
- package/dist/src/components/iconpicker/bundle.js.gz +0 -0
- package/dist/src/components/iconpicker/icon-picker.component.d.ts +119 -0
- package/dist/src/components/iconpicker/icon-picker.component.js +337 -0
- package/dist/src/components/iconpicker/icon-picker.constant.d.ts +15 -0
- package/dist/src/components/iconpicker/icon-picker.constant.js +31 -0
- package/dist/src/components/iconpicker/icon-picker.style.d.ts +8 -0
- package/dist/src/components/iconpicker/icon-picker.style.js +216 -0
- package/dist/src/components/iconpicker/icon-picker.types.d.ts +49 -0
- package/dist/src/components/iconpicker/icon-picker.types.js +7 -0
- package/dist/src/components/iconpicker/index.d.ts +9 -0
- package/dist/src/components/iconpicker/index.js +9 -0
- package/dist/src/components/iconpicker/react.d.ts +14 -0
- package/dist/src/components/iconpicker/react.js +21 -0
- package/dist/src/components/image/bundle.js +98 -0
- package/dist/src/components/image/bundle.js.gz +0 -0
- package/dist/src/components/image/image.component.d.ts +31 -0
- package/dist/src/components/image/image.component.js +143 -0
- package/dist/src/components/image/image.style.d.ts +3 -0
- package/dist/src/components/image/image.style.js +83 -0
- package/dist/src/components/image/image.types.d.ts +68 -0
- package/dist/src/components/image/image.types.js +7 -0
- package/dist/src/components/image/index.d.ts +3 -0
- package/dist/src/components/image/index.js +3 -0
- package/dist/src/components/image/react.d.ts +8 -0
- package/dist/src/components/image/react.js +15 -0
- package/dist/src/components/input/bundle.js +930 -0
- package/dist/src/components/input/bundle.js.gz +0 -0
- package/dist/src/components/input/index.d.ts +3 -0
- package/dist/src/components/input/index.js +3 -0
- package/dist/src/components/input/input.component.d.ts +174 -0
- package/dist/src/components/input/input.component.js +490 -0
- package/dist/src/components/input/input.style.d.ts +2 -0
- package/dist/src/components/input/input.style.js +810 -0
- package/dist/src/components/input/input.types.d.ts +127 -0
- package/dist/src/components/input/input.types.js +75 -0
- package/dist/src/components/input/react.d.ts +9 -0
- package/dist/src/components/input/react.js +16 -0
- package/dist/src/components/input/validation.d.ts +3 -0
- package/dist/src/components/input/validation.js +3 -0
- package/dist/src/components/kv-secret-select/bundle.js +183 -0
- package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
- package/dist/src/components/kv-secret-select/index.d.ts +2 -0
- package/dist/src/components/kv-secret-select/index.js +2 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +83 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.js +360 -0
- package/dist/src/components/label/bundle.js +104 -0
- package/dist/src/components/label/bundle.js.gz +0 -0
- package/dist/src/components/label/index.d.ts +2 -0
- package/dist/src/components/label/index.js +2 -0
- package/dist/src/components/label/label.component.d.ts +18 -0
- package/dist/src/components/label/label.component.js +64 -0
- package/dist/src/components/label/label.style.d.ts +3 -0
- package/dist/src/components/label/label.style.js +70 -0
- package/dist/src/components/label/label.style.variables.d.ts +2 -0
- package/dist/src/components/label/label.style.variables.js +35 -0
- package/dist/src/components/label/label.types.d.ts +42 -0
- package/dist/src/components/label/label.types.js +2 -0
- package/dist/src/components/label/react.d.ts +339 -0
- package/dist/src/components/label/react.js +12 -0
- package/dist/src/components/layout/bundle.js +220 -0
- package/dist/src/components/layout/bundle.js.gz +0 -0
- package/dist/src/components/layout/content.component.d.ts +35 -0
- package/dist/src/components/layout/content.component.js +47 -0
- package/dist/src/components/layout/content.style.d.ts +2 -0
- package/dist/src/components/layout/content.style.js +17 -0
- package/dist/src/components/layout/footer.component.d.ts +38 -0
- package/dist/src/components/layout/footer.component.js +60 -0
- package/dist/src/components/layout/footer.style.d.ts +2 -0
- package/dist/src/components/layout/footer.style.js +17 -0
- package/dist/src/components/layout/header.component.d.ts +39 -0
- package/dist/src/components/layout/header.component.js +61 -0
- package/dist/src/components/layout/header.style.d.ts +2 -0
- package/dist/src/components/layout/header.style.js +19 -0
- package/dist/src/components/layout/index.d.ts +8 -0
- package/dist/src/components/layout/index.js +7 -0
- package/dist/src/components/layout/layout.component.d.ts +50 -0
- package/dist/src/components/layout/layout.component.js +89 -0
- package/dist/src/components/layout/layout.style.d.ts +2 -0
- package/dist/src/components/layout/layout.style.js +23 -0
- package/dist/src/components/layout/layout.types.d.ts +75 -0
- package/dist/src/components/layout/layout.types.js +12 -0
- package/dist/src/components/layout/react.d.ts +14 -0
- package/dist/src/components/layout/react.js +37 -0
- package/dist/src/components/layout/sider.component.d.ts +116 -0
- package/dist/src/components/layout/sider.component.js +273 -0
- package/dist/src/components/layout/sider.style.d.ts +2 -0
- package/dist/src/components/layout/sider.style.js +104 -0
- package/dist/src/components/menu/bundle.js +520 -0
- package/dist/src/components/menu/bundle.js.gz +0 -0
- package/dist/src/components/menu/index.d.ts +4 -0
- package/dist/src/components/menu/index.js +2 -0
- package/dist/src/components/menu/menu.component.d.ts +87 -0
- package/dist/src/components/menu/menu.component.js +596 -0
- package/dist/src/components/menu/menu.constants.d.ts +12 -0
- package/dist/src/components/menu/menu.constants.js +14 -0
- package/dist/src/components/menu/menu.style.d.ts +2 -0
- package/dist/src/components/menu/menu.style.js +372 -0
- package/dist/src/components/menu/menu.types.d.ts +66 -0
- package/dist/src/components/menu/menu.types.js +7 -0
- package/dist/src/components/menu/react.d.ts +5 -0
- package/dist/src/components/menu/react.js +12 -0
- package/dist/src/components/modal/bundle.js +442 -0
- package/dist/src/components/modal/bundle.js.gz +0 -0
- package/dist/src/components/modal/index.d.ts +10 -0
- package/dist/src/components/modal/index.js +10 -0
- package/dist/src/components/modal/modal-manager.d.ts +72 -0
- package/dist/src/components/modal/modal-manager.js +170 -0
- package/dist/src/components/modal/modal.component.d.ts +121 -0
- package/dist/src/components/modal/modal.component.js +461 -0
- package/dist/src/components/modal/modal.style.d.ts +9 -0
- package/dist/src/components/modal/modal.style.js +369 -0
- package/dist/src/components/modal/modal.types.d.ts +105 -0
- package/dist/src/components/modal/modal.types.js +93 -0
- package/dist/src/components/modal/react.d.ts +9 -0
- package/dist/src/components/modal/react.js +16 -0
- package/dist/src/components/panel/bundle.js +1075 -0
- package/dist/src/components/panel/bundle.js.gz +0 -0
- package/dist/src/components/panel/index.d.ts +9 -0
- package/dist/src/components/panel/index.js +9 -0
- package/dist/src/components/panel/panel.component.d.ts +199 -0
- package/dist/src/components/panel/panel.component.js +720 -0
- package/dist/src/components/panel/panel.style.d.ts +7 -0
- package/dist/src/components/panel/panel.style.js +497 -0
- package/dist/src/components/panel/panel.types.d.ts +94 -0
- package/dist/src/components/panel/panel.types.js +50 -0
- package/dist/src/components/panel/react.d.ts +11 -0
- package/dist/src/components/panel/react.js +18 -0
- package/dist/src/components/popconfirm/bundle.js +438 -0
- package/dist/src/components/popconfirm/bundle.js.gz +0 -0
- package/dist/src/components/popconfirm/index.d.ts +4 -0
- package/dist/src/components/popconfirm/index.js +4 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +129 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.js +372 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.d.ts +2 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.js +137 -0
- package/dist/src/components/popconfirm/popconfirm.component.d.ts +179 -0
- package/dist/src/components/popconfirm/popconfirm.component.js +409 -0
- package/dist/src/components/popconfirm/popconfirm.style.d.ts +2 -0
- package/dist/src/components/popconfirm/popconfirm.style.js +207 -0
- package/dist/src/components/popconfirm/popconfirm.types.d.ts +104 -0
- package/dist/src/components/popconfirm/popconfirm.types.js +2 -0
- package/dist/src/components/popconfirm/react.d.ts +7 -0
- package/dist/src/components/popconfirm/react.js +14 -0
- package/dist/src/components/radio/bundle.js +180 -0
- package/dist/src/components/radio/bundle.js.gz +0 -0
- package/dist/src/components/radio/index.d.ts +3 -0
- package/dist/src/components/radio/index.js +3 -0
- package/dist/src/components/radio/radio.component.d.ts +70 -0
- package/dist/src/components/radio/radio.component.js +187 -0
- package/dist/src/components/radio/radio.style.d.ts +7 -0
- package/dist/src/components/radio/radio.style.js +149 -0
- package/dist/src/components/radio/radio.types.d.ts +14 -0
- package/dist/src/components/radio/radio.types.js +15 -0
- package/dist/src/components/radio/react.d.ts +12 -0
- package/dist/src/components/radio/react.js +19 -0
- package/dist/src/components/radio-group/bundle.js +430 -0
- package/dist/src/components/radio-group/bundle.js.gz +0 -0
- package/dist/src/components/radio-group/index.d.ts +3 -0
- package/dist/src/components/radio-group/index.js +3 -0
- package/dist/src/components/radio-group/radio-group.component.d.ts +165 -0
- package/dist/src/components/radio-group/radio-group.component.js +437 -0
- package/dist/src/components/radio-group/radio-group.style.d.ts +7 -0
- package/dist/src/components/radio-group/radio-group.style.js +270 -0
- package/dist/src/components/radio-group/radio-group.types.d.ts +39 -0
- package/dist/src/components/radio-group/radio-group.types.js +29 -0
- package/dist/src/components/radio-group/radio.constant.d.ts +2 -0
- package/dist/src/components/radio-group/radio.constant.js +2 -0
- package/dist/src/components/radio-group/react.d.ts +10 -0
- package/dist/src/components/radio-group/react.js +17 -0
- package/dist/src/components/select/bundle.js +721 -0
- package/dist/src/components/select/bundle.js.gz +0 -0
- package/dist/src/components/select/index.d.ts +17 -0
- package/dist/src/components/select/index.js +20 -0
- package/dist/src/components/select/react.d.ts +19 -0
- package/dist/src/components/select/react.js +26 -0
- package/dist/src/components/select/select.component.d.ts +359 -0
- package/dist/src/components/select/select.component.js +775 -0
- package/dist/src/components/select/select.constant.d.ts +133 -0
- package/dist/src/components/select/select.constant.js +136 -0
- package/dist/src/components/select/select.style.d.ts +2 -0
- package/dist/src/components/select/select.style.js +533 -0
- package/dist/src/components/select/select.types.d.ts +100 -0
- package/dist/src/components/select/select.types.js +73 -0
- package/dist/src/components/skeleton/bundle.js +293 -0
- package/dist/src/components/skeleton/bundle.js.gz +0 -0
- package/dist/src/components/skeleton/index.d.ts +3 -0
- package/dist/src/components/skeleton/index.js +3 -0
- package/dist/src/components/skeleton/react.d.ts +3 -0
- package/dist/src/components/skeleton/react.js +10 -0
- package/dist/src/components/skeleton/skeleton.component.d.ts +165 -0
- package/dist/src/components/skeleton/skeleton.component.js +387 -0
- package/dist/src/components/skeleton/skeleton.style.d.ts +2 -0
- package/dist/src/components/skeleton/skeleton.style.js +224 -0
- package/dist/src/components/skeleton/skeleton.types.d.ts +82 -0
- package/dist/src/components/skeleton/skeleton.types.js +2 -0
- package/dist/src/components/slider-input/bundle.js +241 -0
- package/dist/src/components/slider-input/bundle.js.gz +0 -0
- package/dist/src/components/slider-input/index.d.ts +3 -0
- package/dist/src/components/slider-input/index.js +3 -0
- package/dist/src/components/slider-input/react.d.ts +340 -0
- package/dist/src/components/slider-input/react.js +13 -0
- package/dist/src/components/slider-input/slider-input.component.d.ts +38 -0
- package/dist/src/components/slider-input/slider-input.component.js +191 -0
- package/dist/src/components/slider-input/slider-input.style.d.ts +3 -0
- package/dist/src/components/slider-input/slider-input.style.js +171 -0
- package/dist/src/components/slider-input/slider-input.style.variables.d.ts +2 -0
- package/dist/src/components/slider-input/slider-input.style.variables.js +59 -0
- package/dist/src/components/slider-input/slider-input.types.d.ts +21 -0
- package/dist/src/components/slider-input/slider-input.types.js +6 -0
- package/dist/src/components/table/bundle.js +987 -0
- package/dist/src/components/table/bundle.js.gz +0 -0
- package/dist/src/components/table/index.d.ts +2 -0
- package/dist/src/components/table/index.js +2 -0
- package/dist/src/components/table/react.d.ts +7 -0
- package/dist/src/components/table/react.js +14 -0
- package/dist/src/components/table/table.component.d.ts +140 -0
- package/dist/src/components/table/table.component.js +433 -0
- package/dist/src/components/table/table.style.d.ts +3 -0
- package/dist/src/components/table/table.style.js +702 -0
- package/dist/src/components/table/table.types.d.ts +103 -0
- package/dist/src/components/table/table.types.js +2 -0
- package/dist/src/components/tabs/bundle.js +1782 -0
- package/dist/src/components/tabs/bundle.js.gz +0 -0
- package/dist/src/components/tabs/index.d.ts +9 -0
- package/dist/src/components/tabs/index.js +10 -0
- package/dist/src/components/tabs/react.d.ts +50 -0
- package/dist/src/components/tabs/react.js +50 -0
- package/dist/src/components/tabs/tabs.component.d.ts +100 -0
- package/dist/src/components/tabs/tabs.component.js +461 -0
- package/dist/src/components/tabs/tabs.constant.d.ts +20 -0
- package/dist/src/components/tabs/tabs.constant.js +21 -0
- package/dist/src/components/tabs/tabs.style.d.ts +9 -0
- package/dist/src/components/tabs/tabs.style.js +577 -0
- package/dist/src/components/tabs/tabs.types.d.ts +241 -0
- package/dist/src/components/tabs/tabs.types.js +13 -0
- package/dist/src/components/tag/bundle.js +108 -0
- package/dist/src/components/tag/bundle.js.gz +0 -0
- package/dist/src/components/tag/index.d.ts +2 -0
- package/dist/src/components/tag/index.js +2 -0
- package/dist/src/components/tag/react.d.ts +6 -0
- package/dist/src/components/tag/react.js +13 -0
- package/dist/src/components/tag/tag.component.d.ts +57 -0
- package/dist/src/components/tag/tag.component.js +157 -0
- package/dist/src/components/tag/tag.style.d.ts +7 -0
- package/dist/src/components/tag/tag.style.js +88 -0
- package/dist/src/components/tag/tag.types.d.ts +28 -0
- package/dist/src/components/tag/tag.types.js +7 -0
- package/dist/src/components/textarea/bundle.js +404 -0
- package/dist/src/components/textarea/bundle.js.gz +0 -0
- package/dist/src/components/textarea/index.d.ts +8 -0
- package/dist/src/components/textarea/index.js +7 -0
- package/dist/src/components/textarea/react.d.ts +9 -0
- package/dist/src/components/textarea/react.js +16 -0
- package/dist/src/components/textarea/textarea.component.d.ts +203 -0
- package/dist/src/components/textarea/textarea.component.js +657 -0
- package/dist/src/components/textarea/textarea.style.d.ts +59 -0
- package/dist/src/components/textarea/textarea.style.js +386 -0
- package/dist/src/components/textarea/textarea.types.d.ts +102 -0
- package/dist/src/components/textarea/textarea.types.js +14 -0
- package/dist/src/components/timeline/bundle.js +261 -0
- package/dist/src/components/timeline/bundle.js.gz +0 -0
- package/dist/src/components/timeline/index.d.ts +2 -0
- package/dist/src/components/timeline/index.js +2 -0
- package/dist/src/components/timeline/react.d.ts +3 -0
- package/dist/src/components/timeline/react.js +10 -0
- package/dist/src/components/timeline/timeline.component.d.ts +109 -0
- package/dist/src/components/timeline/timeline.component.js +214 -0
- package/dist/src/components/timeline/timeline.style.d.ts +14 -0
- package/dist/src/components/timeline/timeline.style.js +234 -0
- package/dist/src/components/timeline/timeline.types.d.ts +62 -0
- package/dist/src/components/timeline/timeline.types.js +7 -0
- package/dist/src/components/timepicker/bundle.js +810 -0
- package/dist/src/components/timepicker/bundle.js.gz +0 -0
- package/dist/src/components/timepicker/index.d.ts +12 -0
- package/dist/src/components/timepicker/index.js +12 -0
- package/dist/src/components/timepicker/timepicker.component.d.ts +115 -0
- package/dist/src/components/timepicker/timepicker.component.js +743 -0
- package/dist/src/components/timepicker/timepicker.constants.d.ts +85 -0
- package/dist/src/components/timepicker/timepicker.constants.js +85 -0
- package/dist/src/components/timepicker/timepicker.style.d.ts +7 -0
- package/dist/src/components/timepicker/timepicker.style.js +568 -0
- package/dist/src/components/timepicker/timepicker.style.variables.d.ts +2 -0
- package/dist/src/components/timepicker/timepicker.style.variables.js +122 -0
- package/dist/src/components/timepicker/timepicker.types.d.ts +161 -0
- package/dist/src/components/timepicker/timepicker.types.js +125 -0
- package/dist/src/components/toast/bundle.js +393 -0
- package/dist/src/components/toast/bundle.js.gz +0 -0
- package/dist/src/components/toast/index.d.ts +9 -0
- package/dist/src/components/toast/index.js +9 -0
- package/dist/src/components/toast/react.d.ts +7 -0
- package/dist/src/components/toast/react.js +19 -0
- package/dist/src/components/toast/toast.component.d.ts +152 -0
- package/dist/src/components/toast/toast.component.js +368 -0
- package/dist/src/components/toast/toast.style.d.ts +14 -0
- package/dist/src/components/toast/toast.style.js +338 -0
- package/dist/src/components/toast/toast.types.d.ts +124 -0
- package/dist/src/components/toast/toast.types.js +9 -0
- package/dist/src/components/tooltips/bundle.js +123 -0
- package/dist/src/components/tooltips/bundle.js.gz +0 -0
- package/dist/src/components/tooltips/index.d.ts +2 -0
- package/dist/src/components/tooltips/index.js +2 -0
- package/dist/src/components/tooltips/react.d.ts +1 -0
- package/dist/src/components/tooltips/react.js +2 -0
- package/dist/src/components/tooltips/tooltips.component.d.ts +33 -0
- package/dist/src/components/tooltips/tooltips.component.js +313 -0
- package/dist/src/components/tooltips/tooltips.constant.d.ts +13 -0
- package/dist/src/components/tooltips/tooltips.constant.js +15 -0
- package/dist/src/components/tooltips/tooltips.style.d.ts +2 -0
- package/dist/src/components/tooltips/tooltips.style.js +103 -0
- package/dist/src/components/tooltips/tooltips.variables.d.ts +2 -0
- package/dist/src/components/tooltips/tooltips.variables.js +14 -0
- package/dist/src/components/video/bundle.js +171 -0
- package/dist/src/components/video/bundle.js.gz +0 -0
- package/dist/src/components/video/index.d.ts +3 -0
- package/dist/src/components/video/index.js +3 -0
- package/dist/src/components/video/react.d.ts +10 -0
- package/dist/src/components/video/react.js +17 -0
- package/dist/src/components/video/video.component.d.ts +34 -0
- package/dist/src/components/video/video.component.js +184 -0
- package/dist/src/components/video/video.style.d.ts +3 -0
- package/dist/src/components/video/video.style.js +124 -0
- package/dist/src/components/video/video.types.d.ts +80 -0
- package/dist/src/components/video/video.types.js +7 -0
- package/package.json +215 -0
- package/packages/common/README.md +137 -0
- package/packages/common/dist/LICENSE +28 -0
- package/packages/common/dist/README.md +137 -0
- package/packages/common/dist/VERSIONS.md +4 -0
- package/packages/common/dist/constants/index.d.ts +2 -0
- package/packages/common/dist/constants/index.d.ts.map +1 -0
- package/packages/common/dist/constants/index.js +2 -0
- package/packages/common/dist/constants/index.js.map +1 -0
- package/packages/common/dist/constants.d.ts +17 -0
- package/packages/common/dist/constants.d.ts.map +1 -0
- package/packages/common/dist/constants.js +7 -0
- package/packages/common/dist/constants.js.map +1 -0
- package/packages/common/dist/controllers/index.d.ts +2 -0
- package/packages/common/dist/controllers/index.d.ts.map +1 -0
- package/packages/common/dist/controllers/index.js +2 -0
- package/packages/common/dist/controllers/index.js.map +1 -0
- package/packages/common/dist/controllers.d.ts +21 -0
- package/packages/common/dist/controllers.d.ts.map +1 -0
- package/packages/common/dist/controllers.js +22 -0
- package/packages/common/dist/controllers.js.map +1 -0
- package/packages/common/dist/index.d.ts +25 -0
- package/packages/common/dist/index.d.ts.map +1 -0
- package/packages/common/dist/index.js +27 -0
- package/packages/common/dist/index.js.map +1 -0
- package/packages/common/dist/mixins/index.d.ts +2 -0
- package/packages/common/dist/mixins/index.d.ts.map +1 -0
- package/packages/common/dist/mixins/index.js +3 -0
- package/packages/common/dist/mixins/index.js.map +1 -0
- package/packages/common/dist/mixins.d.ts +26 -0
- package/packages/common/dist/mixins.d.ts.map +1 -0
- package/packages/common/dist/mixins.js +29 -0
- package/packages/common/dist/mixins.js.map +1 -0
- package/packages/common/dist/shared/base-mixin.d.ts +42 -0
- package/packages/common/dist/shared/base-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/base-mixin.js +38 -0
- package/packages/common/dist/shared/base-mixin.js.map +1 -0
- package/packages/common/dist/shared/constants.d.ts +1 -0
- package/packages/common/dist/shared/constants.d.ts.map +1 -0
- package/packages/common/dist/shared/constants.js +2 -0
- package/packages/common/dist/shared/constants.js.map +1 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.d.ts +81 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.js +104 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.js.map +1 -0
- package/packages/common/dist/shared/controllers/base.controller.d.ts +76 -0
- package/packages/common/dist/shared/controllers/base.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/base.controller.js +129 -0
- package/packages/common/dist/shared/controllers/base.controller.js.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.d.ts +77 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.js +341 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.js.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.d.ts +37 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.js +2 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.js.map +1 -0
- package/packages/common/dist/shared/controllers/index.d.ts +6 -0
- package/packages/common/dist/shared/controllers/index.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/index.js +6 -0
- package/packages/common/dist/shared/controllers/index.js.map +1 -0
- package/packages/common/dist/shared/controllers/theme.controller.d.ts +48 -0
- package/packages/common/dist/shared/controllers/theme.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/theme.controller.js +133 -0
- package/packages/common/dist/shared/controllers/theme.controller.js.map +1 -0
- package/packages/common/dist/shared/dependency-mixin.d.ts +37 -0
- package/packages/common/dist/shared/dependency-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/dependency-mixin.js +141 -0
- package/packages/common/dist/shared/dependency-mixin.js.map +1 -0
- package/packages/common/dist/shared/event-handler-mixin.d.ts +64 -0
- package/packages/common/dist/shared/event-handler-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/event-handler-mixin.js +95 -0
- package/packages/common/dist/shared/event-handler-mixin.js.map +1 -0
- package/packages/common/dist/shared/index.d.ts +13 -0
- package/packages/common/dist/shared/index.d.ts.map +1 -0
- package/packages/common/dist/shared/index.js +17 -0
- package/packages/common/dist/shared/index.js.map +1 -0
- package/packages/common/dist/shared/render-utils.d.ts +103 -0
- package/packages/common/dist/shared/render-utils.d.ts.map +1 -0
- package/packages/common/dist/shared/render-utils.js +132 -0
- package/packages/common/dist/shared/render-utils.js.map +1 -0
- package/packages/common/dist/shared/theme-mixin.d.ts +78 -0
- package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/theme-mixin.js +194 -0
- package/packages/common/dist/shared/theme-mixin.js.map +1 -0
- package/packages/common/dist/shared/themes.d.ts +44 -0
- package/packages/common/dist/shared/themes.d.ts.map +1 -0
- package/packages/common/dist/shared/themes.js +85 -0
- package/packages/common/dist/shared/themes.js.map +1 -0
- package/packages/common/dist/shared/utils.d.ts +60 -0
- package/packages/common/dist/shared/utils.d.ts.map +1 -0
- package/packages/common/dist/shared/utils.js +85 -0
- package/packages/common/dist/shared/utils.js.map +1 -0
- package/packages/common/dist/shared/validation.types.d.ts +108 -0
- package/packages/common/dist/shared/validation.types.d.ts.map +1 -0
- package/packages/common/dist/shared/validation.types.js +17 -0
- package/packages/common/dist/shared/validation.types.js.map +1 -0
- package/packages/common/dist/themes/index.d.ts +2 -0
- package/packages/common/dist/themes/index.d.ts.map +1 -0
- package/packages/common/dist/themes/index.js +2 -0
- package/packages/common/dist/themes/index.js.map +1 -0
- package/packages/common/dist/themes.d.ts +22 -0
- package/packages/common/dist/themes.d.ts.map +1 -0
- package/packages/common/dist/themes.js +23 -0
- package/packages/common/dist/themes.js.map +1 -0
- package/packages/common/dist/utils/index.d.ts +2 -0
- package/packages/common/dist/utils/index.d.ts.map +1 -0
- package/packages/common/dist/utils/index.js +2 -0
- package/packages/common/dist/utils/index.js.map +1 -0
- package/packages/common/dist/utils.d.ts +22 -0
- package/packages/common/dist/utils.d.ts.map +1 -0
- package/packages/common/dist/utils.js +24 -0
- package/packages/common/dist/utils.js.map +1 -0
- package/packages/themes/README.md +146 -0
- package/packages/themes/dist/README.md +146 -0
- package/packages/themes/dist/carbon.css +2987 -0
- package/packages/themes/dist/default.css +2757 -0
- package/packages/themes/dist/editor.css +1063 -0
- package/packages/themes/dist/index.cjs +46 -0
- package/packages/themes/dist/index.js +46 -0
- package/packages/themes/dist/package.json +59 -0
|
Binary file
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
7
|
+
import { INPUT_TYPE, INPUT_STATE, INPUT_SIZE, INPUT_VARIANT, ValidationRule, InputValidationResult } from './input.types.js';
|
|
8
|
+
import { InputValidationHost, InputEventHost } from './controllers/index.js';
|
|
9
|
+
declare const NrInputElement_base: (new (...args: any[]) => import("./mixins/number-mixin.js").NumberCapable) & (new (...args: any[]) => import("./mixins/focus-mixin.js").FocusCapable) & (new (...args: any[]) => import("./mixins/selection-mixin.js").SelectionCapable) & (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;
|
|
10
|
+
/**
|
|
11
|
+
* Versatile input component with validation, multiple types, and interactive features.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <nr-input type="text" placeholder="Enter name"></nr-input>
|
|
16
|
+
* <nr-input type="password"></nr-input>
|
|
17
|
+
* <nr-input type="number" min="0" max="100"></nr-input>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @fires nr-input - Value changes
|
|
21
|
+
* @fires nr-focus - Input focused
|
|
22
|
+
* @fires nr-blur - Input blurred
|
|
23
|
+
* @fires nr-enter - Enter key pressed
|
|
24
|
+
* @fires nr-clear - Clear button clicked
|
|
25
|
+
*
|
|
26
|
+
* @slot label - Input label
|
|
27
|
+
* @slot helper-text - Helper text
|
|
28
|
+
* @slot addon-before - Content before input
|
|
29
|
+
* @slot addon-after - Content after input
|
|
30
|
+
*/
|
|
31
|
+
export declare class NrInputElement extends NrInputElement_base implements InputValidationHost, InputEventHost {
|
|
32
|
+
static styles: import("lit").CSSResult[];
|
|
33
|
+
private validationController;
|
|
34
|
+
private eventController;
|
|
35
|
+
/** Disables the input */
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
/** Makes the input read-only */
|
|
38
|
+
readonly: boolean;
|
|
39
|
+
/** Visual state (default, success, warning, error) */
|
|
40
|
+
state: INPUT_STATE;
|
|
41
|
+
/** Current input value */
|
|
42
|
+
value: string;
|
|
43
|
+
/** Input size (small, medium, large) */
|
|
44
|
+
size: INPUT_SIZE;
|
|
45
|
+
/** Visual variant (outlined, underlined, filled) */
|
|
46
|
+
variant: INPUT_VARIANT;
|
|
47
|
+
/** Input type (text, password, number, email, etc.) */
|
|
48
|
+
type: INPUT_TYPE;
|
|
49
|
+
/** Step value for number inputs */
|
|
50
|
+
step?: string;
|
|
51
|
+
/** Minimum value for number inputs */
|
|
52
|
+
min?: string;
|
|
53
|
+
/** Maximum value for number inputs */
|
|
54
|
+
max?: string;
|
|
55
|
+
/** Placeholder text */
|
|
56
|
+
placeholder: string;
|
|
57
|
+
/** HTML autocomplete attribute */
|
|
58
|
+
autocomplete: string;
|
|
59
|
+
/** Field name for form submission */
|
|
60
|
+
name?: string;
|
|
61
|
+
/** Required field indicator */
|
|
62
|
+
required?: boolean;
|
|
63
|
+
/** Shows copy button */
|
|
64
|
+
withCopy: boolean;
|
|
65
|
+
/** Shows clear button */
|
|
66
|
+
allowClear: boolean;
|
|
67
|
+
/** Shows character counter */
|
|
68
|
+
showCount: boolean;
|
|
69
|
+
/** Maximum character limit */
|
|
70
|
+
maxLength?: number;
|
|
71
|
+
/** Array of validation rules */
|
|
72
|
+
rules: ValidationRule[];
|
|
73
|
+
/** Validate on change */
|
|
74
|
+
validateOnChangeInput: boolean;
|
|
75
|
+
/** Validate on blur */
|
|
76
|
+
validateOnBlurInput: boolean;
|
|
77
|
+
/** Show validation status icon */
|
|
78
|
+
hasFeedback: boolean;
|
|
79
|
+
/** Allow validation warnings */
|
|
80
|
+
allowWarnings: boolean;
|
|
81
|
+
/** Custom validation trigger */
|
|
82
|
+
validationTrigger: 'change' | 'blur' | 'submit';
|
|
83
|
+
/** Validation debounce delay in milliseconds */
|
|
84
|
+
validationDebounce?: number;
|
|
85
|
+
/** Input label for better error messages */
|
|
86
|
+
label?: string;
|
|
87
|
+
/** Debounce delay in milliseconds for input events */
|
|
88
|
+
debounce: number;
|
|
89
|
+
/** Validation message */
|
|
90
|
+
validationMessage?: string;
|
|
91
|
+
inputType: string;
|
|
92
|
+
hasAddonBefore: boolean;
|
|
93
|
+
hasAddonAfter: boolean;
|
|
94
|
+
focused: boolean;
|
|
95
|
+
private get _input();
|
|
96
|
+
get characterCountDisplay(): string;
|
|
97
|
+
get isOverCharacterLimit(): boolean;
|
|
98
|
+
protected get input(): HTMLInputElement;
|
|
99
|
+
protected get inputElement(): HTMLInputElement;
|
|
100
|
+
requiredComponents: string[];
|
|
101
|
+
connectedCallback(): void;
|
|
102
|
+
disconnectedCallback(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Handle validation events from the controller
|
|
105
|
+
*/
|
|
106
|
+
private _handleValidationEvent;
|
|
107
|
+
willUpdate(_changedProperties: PropertyValues): void;
|
|
108
|
+
updated(_changedProperties: PropertyValues): void;
|
|
109
|
+
firstUpdated(): void;
|
|
110
|
+
private _checkInitialSlotContent;
|
|
111
|
+
private _handleSlotChange;
|
|
112
|
+
private _handleKeyDown;
|
|
113
|
+
private _valueChange;
|
|
114
|
+
private _focusEvent;
|
|
115
|
+
private _blurEvent;
|
|
116
|
+
private _handleIconKeydown;
|
|
117
|
+
private _onCopy;
|
|
118
|
+
private _onClear;
|
|
119
|
+
private _increment;
|
|
120
|
+
private _decrement;
|
|
121
|
+
private _togglePasswordIcon;
|
|
122
|
+
private _getAriaDescribedBy;
|
|
123
|
+
/**
|
|
124
|
+
* Setup default validation rules based on input properties
|
|
125
|
+
*/
|
|
126
|
+
/**
|
|
127
|
+
* Override the form mixin's validateValue method with controller logic
|
|
128
|
+
*/
|
|
129
|
+
protected validateValue(_value: string): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Add validation rule dynamically
|
|
132
|
+
*/
|
|
133
|
+
addRule(rule: ValidationRule): void;
|
|
134
|
+
/**
|
|
135
|
+
* Remove validation rule
|
|
136
|
+
*/
|
|
137
|
+
removeRule(predicate: (rule: ValidationRule) => boolean): void;
|
|
138
|
+
/**
|
|
139
|
+
* Clear all validation rules
|
|
140
|
+
*/
|
|
141
|
+
clearRules(): void;
|
|
142
|
+
/**
|
|
143
|
+
* Get current validation status
|
|
144
|
+
*/
|
|
145
|
+
getValidationStatus(): {
|
|
146
|
+
isValid: boolean;
|
|
147
|
+
isValidating: boolean;
|
|
148
|
+
errors: string[];
|
|
149
|
+
warnings: string[];
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Trigger validation manually
|
|
153
|
+
*/
|
|
154
|
+
validateInput(): Promise<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* Set validation state externally (for form integration)
|
|
157
|
+
*/
|
|
158
|
+
setValidationStatus(result: InputValidationResult): void;
|
|
159
|
+
/**
|
|
160
|
+
* Get validation classes for CSS styling
|
|
161
|
+
*/
|
|
162
|
+
protected getValidationClasses(): Record<string, boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* Render validation feedback icon
|
|
165
|
+
*/
|
|
166
|
+
private renderValidationIcon;
|
|
167
|
+
/**
|
|
168
|
+
* Render validation message
|
|
169
|
+
*/
|
|
170
|
+
private renderValidationMessage;
|
|
171
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
172
|
+
}
|
|
173
|
+
export {};
|
|
174
|
+
//# sourceMappingURL=input.component.d.ts.map
|
|
@@ -0,0 +1,490 @@
|
|
|
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
|
+
import { LitElement, html } from 'lit';
|
|
22
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
23
|
+
import { styles } from './input.style.js';
|
|
24
|
+
import { EMPTY_STRING } from './input.types.js';
|
|
25
|
+
import { NuralyUIBaseMixin } from '@nuralyui/common/mixins';
|
|
26
|
+
import { InputValidationUtils, InputRenderUtils } from './utils/index.js';
|
|
27
|
+
import { SelectionMixin, FocusMixin, NumberMixin } from './mixins/index.js';
|
|
28
|
+
import { InputValidationController, InputEventController } from './controllers/index.js';
|
|
29
|
+
/**
|
|
30
|
+
* Versatile input component with validation, multiple types, and interactive features.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```html
|
|
34
|
+
* <nr-input type="text" placeholder="Enter name"></nr-input>
|
|
35
|
+
* <nr-input type="password"></nr-input>
|
|
36
|
+
* <nr-input type="number" min="0" max="100"></nr-input>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @fires nr-input - Value changes
|
|
40
|
+
* @fires nr-focus - Input focused
|
|
41
|
+
* @fires nr-blur - Input blurred
|
|
42
|
+
* @fires nr-enter - Enter key pressed
|
|
43
|
+
* @fires nr-clear - Clear button clicked
|
|
44
|
+
*
|
|
45
|
+
* @slot label - Input label
|
|
46
|
+
* @slot helper-text - Helper text
|
|
47
|
+
* @slot addon-before - Content before input
|
|
48
|
+
* @slot addon-after - Content after input
|
|
49
|
+
*/
|
|
50
|
+
let NrInputElement = class NrInputElement extends NumberMixin(FocusMixin(SelectionMixin(NuralyUIBaseMixin(LitElement)))) {
|
|
51
|
+
constructor() {
|
|
52
|
+
super(...arguments);
|
|
53
|
+
this.validationController = new InputValidationController(this);
|
|
54
|
+
this.eventController = new InputEventController(this);
|
|
55
|
+
/** Disables the input */
|
|
56
|
+
this.disabled = false;
|
|
57
|
+
/** Makes the input read-only */
|
|
58
|
+
this.readonly = false;
|
|
59
|
+
/** Visual state (default, success, warning, error) */
|
|
60
|
+
this.state = "default" /* INPUT_STATE.Default */;
|
|
61
|
+
/** Current input value */
|
|
62
|
+
this.value = EMPTY_STRING;
|
|
63
|
+
/** Input size (small, medium, large) */
|
|
64
|
+
this.size = "medium" /* INPUT_SIZE.Medium */;
|
|
65
|
+
/** Visual variant (outlined, underlined, filled) */
|
|
66
|
+
this.variant = "outlined" /* INPUT_VARIANT.Outlined */;
|
|
67
|
+
/** Input type (text, password, number, email, etc.) */
|
|
68
|
+
this.type = "text" /* INPUT_TYPE.TEXT */;
|
|
69
|
+
/** Placeholder text */
|
|
70
|
+
this.placeholder = EMPTY_STRING;
|
|
71
|
+
/** HTML autocomplete attribute */
|
|
72
|
+
this.autocomplete = 'off';
|
|
73
|
+
/** Shows copy button */
|
|
74
|
+
this.withCopy = false;
|
|
75
|
+
/** Shows clear button */
|
|
76
|
+
this.allowClear = false;
|
|
77
|
+
/** Shows character counter */
|
|
78
|
+
this.showCount = false;
|
|
79
|
+
/** Array of validation rules */
|
|
80
|
+
this.rules = [];
|
|
81
|
+
/** Validate on change */
|
|
82
|
+
this.validateOnChangeInput = true;
|
|
83
|
+
/** Validate on blur */
|
|
84
|
+
this.validateOnBlurInput = true;
|
|
85
|
+
/** Show validation status icon */
|
|
86
|
+
this.hasFeedback = false;
|
|
87
|
+
/** Allow validation warnings */
|
|
88
|
+
this.allowWarnings = false;
|
|
89
|
+
/** Custom validation trigger */
|
|
90
|
+
this.validationTrigger = 'change';
|
|
91
|
+
/** Debounce delay in milliseconds for input events */
|
|
92
|
+
this.debounce = 0;
|
|
93
|
+
this.inputType = EMPTY_STRING;
|
|
94
|
+
this.hasAddonBefore = false;
|
|
95
|
+
this.hasAddonAfter = false;
|
|
96
|
+
this.focused = false;
|
|
97
|
+
this.requiredComponents = ['nr-icon'];
|
|
98
|
+
/**
|
|
99
|
+
* Handle validation events from the controller
|
|
100
|
+
*/
|
|
101
|
+
this._handleValidationEvent = (event) => {
|
|
102
|
+
const customEvent = event;
|
|
103
|
+
const detail = customEvent.detail;
|
|
104
|
+
this.validationMessage = detail.validationMessage || '';
|
|
105
|
+
let newState = "default" /* INPUT_STATE.Default */;
|
|
106
|
+
if (detail.validationResult.hasError) {
|
|
107
|
+
newState = "error" /* INPUT_STATE.Error */;
|
|
108
|
+
}
|
|
109
|
+
else if (detail.validationResult.hasWarning && this.allowWarnings) {
|
|
110
|
+
newState = "warning" /* INPUT_STATE.Warning */;
|
|
111
|
+
}
|
|
112
|
+
else if (detail.validationResult.isValid && this.value && this.hasFeedback) {
|
|
113
|
+
newState = "success" /* INPUT_STATE.Success */;
|
|
114
|
+
}
|
|
115
|
+
if (this.state !== newState) {
|
|
116
|
+
this.state = newState;
|
|
117
|
+
}
|
|
118
|
+
this.requestUpdate();
|
|
119
|
+
};
|
|
120
|
+
this._handleKeyDown = (keyDownEvent) => {
|
|
121
|
+
this.eventController.handleKeyDown(keyDownEvent);
|
|
122
|
+
};
|
|
123
|
+
this._valueChange = (e) => {
|
|
124
|
+
this.eventController.handleValueChange(e);
|
|
125
|
+
};
|
|
126
|
+
this._focusEvent = (e) => {
|
|
127
|
+
this.eventController.handleFocus(e);
|
|
128
|
+
};
|
|
129
|
+
this._blurEvent = (e) => {
|
|
130
|
+
this.eventController.handleBlur(e);
|
|
131
|
+
};
|
|
132
|
+
this._handleIconKeydown = (keyDownEvent) => {
|
|
133
|
+
this.eventController.handleIconKeydown(keyDownEvent);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
get _input() {
|
|
137
|
+
return this.shadowRoot.querySelector('#input');
|
|
138
|
+
}
|
|
139
|
+
get characterCountDisplay() {
|
|
140
|
+
const currentLength = this.value.length;
|
|
141
|
+
if (this.maxLength) {
|
|
142
|
+
return `${currentLength}/${this.maxLength}`;
|
|
143
|
+
}
|
|
144
|
+
return `${currentLength}`;
|
|
145
|
+
}
|
|
146
|
+
get isOverCharacterLimit() {
|
|
147
|
+
return this.maxLength ? this.value.length > this.maxLength : false;
|
|
148
|
+
}
|
|
149
|
+
get input() {
|
|
150
|
+
return this._input;
|
|
151
|
+
}
|
|
152
|
+
get inputElement() {
|
|
153
|
+
return this._input;
|
|
154
|
+
}
|
|
155
|
+
connectedCallback() {
|
|
156
|
+
super.connectedCallback();
|
|
157
|
+
this.addEventListener('nr-validation', this._handleValidationEvent);
|
|
158
|
+
}
|
|
159
|
+
disconnectedCallback() {
|
|
160
|
+
var _a, _b, _c, _d;
|
|
161
|
+
super.disconnectedCallback();
|
|
162
|
+
this.removeEventListener('nr-validation', this._handleValidationEvent);
|
|
163
|
+
(_b = (_a = this.validationController).clearDebounceTimer) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
164
|
+
(_d = (_c = this.eventController).clearDebounceTimer) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
165
|
+
}
|
|
166
|
+
willUpdate(_changedProperties) {
|
|
167
|
+
super.willUpdate(_changedProperties);
|
|
168
|
+
if (_changedProperties.has('type') || !this.inputType) {
|
|
169
|
+
this.inputType = this.type;
|
|
170
|
+
}
|
|
171
|
+
if (_changedProperties.has('type') || _changedProperties.has('min')) {
|
|
172
|
+
if (this.type === "number" /* INPUT_TYPE.NUMBER */ && this.min && !this.value) {
|
|
173
|
+
this.value = this.min;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (_changedProperties.has('type') ||
|
|
177
|
+
_changedProperties.has('min') ||
|
|
178
|
+
_changedProperties.has('max') ||
|
|
179
|
+
_changedProperties.has('step')) {
|
|
180
|
+
InputValidationUtils.validateNumericProperties(this.type, this.min, this.max, this.step);
|
|
181
|
+
}
|
|
182
|
+
if (_changedProperties.has('type') ||
|
|
183
|
+
_changedProperties.has('required') ||
|
|
184
|
+
_changedProperties.has('maxLength') ||
|
|
185
|
+
_changedProperties.has('min') ||
|
|
186
|
+
_changedProperties.has('max')) {
|
|
187
|
+
this.validationController.setupValidationRules();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
updated(_changedProperties) {
|
|
191
|
+
if (_changedProperties.has('step') || _changedProperties.has('min') || _changedProperties.has('max') || _changedProperties.has('maxLength')) {
|
|
192
|
+
const input = this.input;
|
|
193
|
+
if (input) {
|
|
194
|
+
this.setStep(this.step);
|
|
195
|
+
if (this.min)
|
|
196
|
+
input.setAttribute('min', this.min);
|
|
197
|
+
else
|
|
198
|
+
input.removeAttribute('min');
|
|
199
|
+
if (this.max)
|
|
200
|
+
input.setAttribute('max', this.max);
|
|
201
|
+
else
|
|
202
|
+
input.removeAttribute('max');
|
|
203
|
+
if (this.maxLength)
|
|
204
|
+
input.setAttribute('maxlength', this.maxLength.toString());
|
|
205
|
+
else
|
|
206
|
+
input.removeAttribute('maxlength');
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
// Sync input element value when property changes externally
|
|
210
|
+
if (_changedProperties.has('value')) {
|
|
211
|
+
const input = this.input;
|
|
212
|
+
if (input && input.value !== this.value) {
|
|
213
|
+
input.value = this.value;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
firstUpdated() {
|
|
218
|
+
this._checkInitialSlotContent();
|
|
219
|
+
}
|
|
220
|
+
_checkInitialSlotContent() {
|
|
221
|
+
const addonBeforeElements = this.querySelectorAll('[slot="addon-before"]');
|
|
222
|
+
this.hasAddonBefore = addonBeforeElements.length > 0;
|
|
223
|
+
const addonAfterElements = this.querySelectorAll('[slot="addon-after"]');
|
|
224
|
+
this.hasAddonAfter = addonAfterElements.length > 0;
|
|
225
|
+
}
|
|
226
|
+
_handleSlotChange(e) {
|
|
227
|
+
const slot = e.target;
|
|
228
|
+
const slotName = slot.name;
|
|
229
|
+
if (slotName === 'addon-before') {
|
|
230
|
+
this.hasAddonBefore = slot.assignedElements().length > 0;
|
|
231
|
+
}
|
|
232
|
+
else if (slotName === 'addon-after') {
|
|
233
|
+
this.hasAddonAfter = slot.assignedElements().length > 0;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
_onCopy() {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
yield this.eventController.handleCopy();
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
_onClear() {
|
|
242
|
+
this.eventController.handleClear();
|
|
243
|
+
}
|
|
244
|
+
_increment() {
|
|
245
|
+
this.eventController.handleIncrement();
|
|
246
|
+
}
|
|
247
|
+
_decrement() {
|
|
248
|
+
this.eventController.handleDecrement();
|
|
249
|
+
}
|
|
250
|
+
_togglePasswordIcon() {
|
|
251
|
+
this.eventController.handleTogglePassword();
|
|
252
|
+
}
|
|
253
|
+
_getAriaDescribedBy() {
|
|
254
|
+
var _a;
|
|
255
|
+
const describedBy = [];
|
|
256
|
+
const helperSlot = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="helper-text"]');
|
|
257
|
+
if (helperSlot && helperSlot.assignedNodes().length > 0) {
|
|
258
|
+
describedBy.push('helper-text');
|
|
259
|
+
}
|
|
260
|
+
return describedBy.join(' ') || '';
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Setup default validation rules based on input properties
|
|
264
|
+
*/
|
|
265
|
+
/**
|
|
266
|
+
* Override the form mixin's validateValue method with controller logic
|
|
267
|
+
*/
|
|
268
|
+
validateValue(_value) {
|
|
269
|
+
return this.validationController.validate();
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Add validation rule dynamically
|
|
273
|
+
*/
|
|
274
|
+
addRule(rule) {
|
|
275
|
+
this.validationController.addInputRule(rule);
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Remove validation rule
|
|
279
|
+
*/
|
|
280
|
+
removeRule(predicate) {
|
|
281
|
+
this.validationController.removeInputRule(predicate);
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Clear all validation rules
|
|
285
|
+
*/
|
|
286
|
+
clearRules() {
|
|
287
|
+
this.validationController.clearInputRules();
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Get current validation status
|
|
291
|
+
*/
|
|
292
|
+
getValidationStatus() {
|
|
293
|
+
return this.validationController.getValidationStatus();
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Trigger validation manually
|
|
297
|
+
*/
|
|
298
|
+
validateInput() {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
const result = this.validationController.validate();
|
|
301
|
+
if (this.validationController.isValidating) {
|
|
302
|
+
return new Promise((resolve) => {
|
|
303
|
+
const checkValidation = () => {
|
|
304
|
+
if (!this.validationController.isValidating) {
|
|
305
|
+
resolve(this.validationController.isValid);
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
setTimeout(checkValidation, 50);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
checkValidation();
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
return result;
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Set validation state externally (for form integration)
|
|
319
|
+
*/
|
|
320
|
+
setValidationStatus(result) {
|
|
321
|
+
this.validationController.setValidationStatus(result);
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Get validation classes for CSS styling
|
|
325
|
+
*/
|
|
326
|
+
getValidationClasses() {
|
|
327
|
+
return this.validationController.getValidationClasses();
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Render validation feedback icon
|
|
331
|
+
*/
|
|
332
|
+
renderValidationIcon() {
|
|
333
|
+
return this.validationController.renderValidationIcon();
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Render validation message
|
|
337
|
+
*/
|
|
338
|
+
renderValidationMessage() {
|
|
339
|
+
return this.validationController.renderValidationMessage();
|
|
340
|
+
}
|
|
341
|
+
render() {
|
|
342
|
+
const validationClasses = this.getValidationClasses();
|
|
343
|
+
const validationRenderState = this.validationController.getValidationRenderState();
|
|
344
|
+
return html `
|
|
345
|
+
<slot name="label"></slot>
|
|
346
|
+
<div class="input-wrapper ${Object.entries(validationClasses).filter(([, value]) => value).map(([key]) => key).join(' ')}"
|
|
347
|
+
part="input-wrapper"
|
|
348
|
+
data-theme="${this.currentTheme}"
|
|
349
|
+
?data-validating="${validationRenderState.isValidating}">
|
|
350
|
+
${InputRenderUtils.renderAddonBefore(this.hasAddonBefore, (e) => this._handleSlotChange(e))}
|
|
351
|
+
<div data-size=${this.size} id="input-container" part="input-container">
|
|
352
|
+
${InputRenderUtils.renderPrefix()}
|
|
353
|
+
<input
|
|
354
|
+
id="input"
|
|
355
|
+
part="input"
|
|
356
|
+
.disabled=${this.disabled}
|
|
357
|
+
.readOnly=${this.readonly}
|
|
358
|
+
.value=${this.value}
|
|
359
|
+
.placeholder=${this.placeholder}
|
|
360
|
+
.type="${this.inputType}"
|
|
361
|
+
.autocomplete=${this.autocomplete}
|
|
362
|
+
aria-invalid=${validationRenderState.validationResult.hasError ? 'true' : 'false'}
|
|
363
|
+
aria-describedby=${this._getAriaDescribedBy()}
|
|
364
|
+
@input=${this._valueChange}
|
|
365
|
+
@focus=${this._focusEvent}
|
|
366
|
+
@blur=${this._blurEvent}
|
|
367
|
+
@keydown=${this._handleKeyDown}
|
|
368
|
+
/>
|
|
369
|
+
${InputRenderUtils.renderSuffix()}
|
|
370
|
+
${InputRenderUtils.renderCopyIcon(this.withCopy, this.disabled, this.readonly, () => this._onCopy(), (e) => this._handleIconKeydown(e))}
|
|
371
|
+
${InputRenderUtils.renderClearIcon(this.allowClear, this.value, this.disabled, this.readonly, () => this._onClear(), (e) => this._handleIconKeydown(e))}
|
|
372
|
+
${validationRenderState.hasValidationFeedback ? this.renderValidationIcon() : InputRenderUtils.renderStateIcon(this.state)}
|
|
373
|
+
${InputRenderUtils.renderCalendarIcon(this.state, this.type)}
|
|
374
|
+
${InputRenderUtils.renderPasswordIcon(this.type, this.inputType, this.disabled, this.readonly, () => this._togglePasswordIcon(), (e) => this._handleIconKeydown(e))}
|
|
375
|
+
${InputRenderUtils.renderNumberIcons(this.type, this.state, this.disabled, this.readonly, () => this._increment(), () => this._decrement(), (e) => this._handleIconKeydown(e))}
|
|
376
|
+
</div>
|
|
377
|
+
${InputRenderUtils.renderAddonAfter(this.hasAddonAfter, (e) => this._handleSlotChange(e))}
|
|
378
|
+
</div>
|
|
379
|
+
<slot name="helper-text"></slot>
|
|
380
|
+
${this.renderValidationMessage()}
|
|
381
|
+
${this.showCount ? html `
|
|
382
|
+
<div class="character-count" part="character-count" ?data-over-limit=${this.isOverCharacterLimit}>
|
|
383
|
+
${this.characterCountDisplay}
|
|
384
|
+
</div>
|
|
385
|
+
` : ''}
|
|
386
|
+
`;
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
NrInputElement.styles = styles;
|
|
390
|
+
__decorate([
|
|
391
|
+
property({ type: Boolean, reflect: true })
|
|
392
|
+
], NrInputElement.prototype, "disabled", void 0);
|
|
393
|
+
__decorate([
|
|
394
|
+
property({ type: Boolean, reflect: true })
|
|
395
|
+
], NrInputElement.prototype, "readonly", void 0);
|
|
396
|
+
__decorate([
|
|
397
|
+
property({ type: String, reflect: true })
|
|
398
|
+
], NrInputElement.prototype, "state", void 0);
|
|
399
|
+
__decorate([
|
|
400
|
+
property({ type: String, reflect: true })
|
|
401
|
+
], NrInputElement.prototype, "value", void 0);
|
|
402
|
+
__decorate([
|
|
403
|
+
property({ type: String })
|
|
404
|
+
], NrInputElement.prototype, "size", void 0);
|
|
405
|
+
__decorate([
|
|
406
|
+
property({ type: String, reflect: true })
|
|
407
|
+
], NrInputElement.prototype, "variant", void 0);
|
|
408
|
+
__decorate([
|
|
409
|
+
property({ reflect: true })
|
|
410
|
+
], NrInputElement.prototype, "type", void 0);
|
|
411
|
+
__decorate([
|
|
412
|
+
property({ type: String })
|
|
413
|
+
], NrInputElement.prototype, "step", void 0);
|
|
414
|
+
__decorate([
|
|
415
|
+
property({ type: String })
|
|
416
|
+
], NrInputElement.prototype, "min", void 0);
|
|
417
|
+
__decorate([
|
|
418
|
+
property({ type: String })
|
|
419
|
+
], NrInputElement.prototype, "max", void 0);
|
|
420
|
+
__decorate([
|
|
421
|
+
property({ type: String })
|
|
422
|
+
], NrInputElement.prototype, "placeholder", void 0);
|
|
423
|
+
__decorate([
|
|
424
|
+
property({ type: String })
|
|
425
|
+
], NrInputElement.prototype, "autocomplete", void 0);
|
|
426
|
+
__decorate([
|
|
427
|
+
property({ type: String })
|
|
428
|
+
], NrInputElement.prototype, "name", void 0);
|
|
429
|
+
__decorate([
|
|
430
|
+
property({ type: Boolean })
|
|
431
|
+
], NrInputElement.prototype, "required", void 0);
|
|
432
|
+
__decorate([
|
|
433
|
+
property({ type: Boolean, reflect: true })
|
|
434
|
+
], NrInputElement.prototype, "withCopy", void 0);
|
|
435
|
+
__decorate([
|
|
436
|
+
property({ type: Boolean, reflect: true })
|
|
437
|
+
], NrInputElement.prototype, "allowClear", void 0);
|
|
438
|
+
__decorate([
|
|
439
|
+
property({ type: Boolean, reflect: true })
|
|
440
|
+
], NrInputElement.prototype, "showCount", void 0);
|
|
441
|
+
__decorate([
|
|
442
|
+
property({ type: Number })
|
|
443
|
+
], NrInputElement.prototype, "maxLength", void 0);
|
|
444
|
+
__decorate([
|
|
445
|
+
property({ type: Array })
|
|
446
|
+
], NrInputElement.prototype, "rules", void 0);
|
|
447
|
+
__decorate([
|
|
448
|
+
property({ type: Boolean, attribute: 'validate-on-change' })
|
|
449
|
+
], NrInputElement.prototype, "validateOnChangeInput", void 0);
|
|
450
|
+
__decorate([
|
|
451
|
+
property({ type: Boolean, attribute: 'validate-on-blur' })
|
|
452
|
+
], NrInputElement.prototype, "validateOnBlurInput", void 0);
|
|
453
|
+
__decorate([
|
|
454
|
+
property({ type: Boolean, attribute: 'has-feedback' })
|
|
455
|
+
], NrInputElement.prototype, "hasFeedback", void 0);
|
|
456
|
+
__decorate([
|
|
457
|
+
property({ type: Boolean, attribute: 'allow-warnings' })
|
|
458
|
+
], NrInputElement.prototype, "allowWarnings", void 0);
|
|
459
|
+
__decorate([
|
|
460
|
+
property({ type: String, attribute: 'validation-trigger' })
|
|
461
|
+
], NrInputElement.prototype, "validationTrigger", void 0);
|
|
462
|
+
__decorate([
|
|
463
|
+
property({ type: Number, attribute: 'validation-debounce' })
|
|
464
|
+
], NrInputElement.prototype, "validationDebounce", void 0);
|
|
465
|
+
__decorate([
|
|
466
|
+
property({ type: String })
|
|
467
|
+
], NrInputElement.prototype, "label", void 0);
|
|
468
|
+
__decorate([
|
|
469
|
+
property({ type: Number })
|
|
470
|
+
], NrInputElement.prototype, "debounce", void 0);
|
|
471
|
+
__decorate([
|
|
472
|
+
state()
|
|
473
|
+
], NrInputElement.prototype, "validationMessage", void 0);
|
|
474
|
+
__decorate([
|
|
475
|
+
state()
|
|
476
|
+
], NrInputElement.prototype, "inputType", void 0);
|
|
477
|
+
__decorate([
|
|
478
|
+
state()
|
|
479
|
+
], NrInputElement.prototype, "hasAddonBefore", void 0);
|
|
480
|
+
__decorate([
|
|
481
|
+
state()
|
|
482
|
+
], NrInputElement.prototype, "hasAddonAfter", void 0);
|
|
483
|
+
__decorate([
|
|
484
|
+
state()
|
|
485
|
+
], NrInputElement.prototype, "focused", void 0);
|
|
486
|
+
NrInputElement = __decorate([
|
|
487
|
+
customElement('nr-input')
|
|
488
|
+
], NrInputElement);
|
|
489
|
+
export { NrInputElement };
|
|
490
|
+
//# sourceMappingURL=input.component.js.map
|