@codeenvision/ui-webcomponents 1.0.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 +21 -0
- package/README.md +244 -0
- package/dist/components/AccessControlMatrix/AccessControlMatrix.d.ts +20 -0
- package/dist/components/AccessControlMatrix/AccessControlMatrix.d.ts.map +1 -0
- package/dist/components/AccessControlMatrix/AccessControlMatrix.js +239 -0
- package/dist/components/AccessControlMatrix/AccessControlMatrix.js.map +1 -0
- package/dist/components/AccessControlMatrix/AccessControlMatrix.types.d.ts +23 -0
- package/dist/components/AccessControlMatrix/AccessControlMatrix.types.d.ts.map +1 -0
- package/dist/components/AccessControlMatrix/AccessControlMatrix.types.js +2 -0
- package/dist/components/AccessControlMatrix/AccessControlMatrix.types.js.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +17 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.js +89 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/Accordion.types.d.ts +8 -0
- package/dist/components/Accordion/Accordion.types.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.types.js +2 -0
- package/dist/components/Accordion/Accordion.types.js.map +1 -0
- package/dist/components/AtmCard/AtmCard.d.ts +13 -0
- package/dist/components/AtmCard/AtmCard.d.ts.map +1 -0
- package/dist/components/AtmCard/AtmCard.js +72 -0
- package/dist/components/AtmCard/AtmCard.js.map +1 -0
- package/dist/components/AtmCard/AtmCard.types.d.ts +11 -0
- package/dist/components/AtmCard/AtmCard.types.d.ts.map +1 -0
- package/dist/components/AtmCard/AtmCard.types.js +2 -0
- package/dist/components/AtmCard/AtmCard.types.js.map +1 -0
- package/dist/components/AuditLogViewer/AuditLogViewer.d.ts +28 -0
- package/dist/components/AuditLogViewer/AuditLogViewer.d.ts.map +1 -0
- package/dist/components/AuditLogViewer/AuditLogViewer.js +276 -0
- package/dist/components/AuditLogViewer/AuditLogViewer.js.map +1 -0
- package/dist/components/AuditLogViewer/AuditLogViewer.types.d.ts +34 -0
- package/dist/components/AuditLogViewer/AuditLogViewer.types.d.ts.map +1 -0
- package/dist/components/AuditLogViewer/AuditLogViewer.types.js +2 -0
- package/dist/components/AuditLogViewer/AuditLogViewer.types.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +10 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.js +63 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/Avatar.types.d.ts +10 -0
- package/dist/components/Avatar/Avatar.types.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.types.js +2 -0
- package/dist/components/Avatar/Avatar.types.js.map +1 -0
- package/dist/components/BacklogBoard/BacklogBoard.d.ts +31 -0
- package/dist/components/BacklogBoard/BacklogBoard.d.ts.map +1 -0
- package/dist/components/BacklogBoard/BacklogBoard.js +524 -0
- package/dist/components/BacklogBoard/BacklogBoard.js.map +1 -0
- package/dist/components/BacklogBoard/BacklogBoard.types.d.ts +34 -0
- package/dist/components/BacklogBoard/BacklogBoard.types.d.ts.map +1 -0
- package/dist/components/BacklogBoard/BacklogBoard.types.js +2 -0
- package/dist/components/BacklogBoard/BacklogBoard.types.js.map +1 -0
- package/dist/components/Badge/Badge.d.ts +11 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.js +64 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/Badge.types.d.ts +11 -0
- package/dist/components/Badge/Badge.types.d.ts.map +1 -0
- package/dist/components/Badge/Badge.types.js +2 -0
- package/dist/components/Badge/Badge.types.js.map +1 -0
- package/dist/components/Barcode/Barcode.d.ts +16 -0
- package/dist/components/Barcode/Barcode.d.ts.map +1 -0
- package/dist/components/Barcode/Barcode.js +142 -0
- package/dist/components/Barcode/Barcode.js.map +1 -0
- package/dist/components/Barcode/Barcode.types.d.ts +10 -0
- package/dist/components/Barcode/Barcode.types.d.ts.map +1 -0
- package/dist/components/Barcode/Barcode.types.js +2 -0
- package/dist/components/Barcode/Barcode.types.js.map +1 -0
- package/dist/components/BottomNav/BottomNav.d.ts +17 -0
- package/dist/components/BottomNav/BottomNav.d.ts.map +1 -0
- package/dist/components/BottomNav/BottomNav.js +140 -0
- package/dist/components/BottomNav/BottomNav.js.map +1 -0
- package/dist/components/BottomNav/BottomNav.types.d.ts +20 -0
- package/dist/components/BottomNav/BottomNav.types.d.ts.map +1 -0
- package/dist/components/BottomNav/BottomNav.types.js +2 -0
- package/dist/components/BottomNav/BottomNav.types.js.map +1 -0
- package/dist/components/Button/Button.d.ts +16 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +168 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/Button.types.d.ts +19 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -0
- package/dist/components/Button/Button.types.js +2 -0
- package/dist/components/Button/Button.types.js.map +1 -0
- package/dist/components/Calendar/Calendar.d.ts +17 -0
- package/dist/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.js +244 -0
- package/dist/components/Calendar/Calendar.js.map +1 -0
- package/dist/components/Calendar/Calendar.types.d.ts +13 -0
- package/dist/components/Calendar/Calendar.types.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.types.js +2 -0
- package/dist/components/Calendar/Calendar.types.js.map +1 -0
- package/dist/components/Card/Card.d.ts +10 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.js +66 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/Card.types.d.ts +10 -0
- package/dist/components/Card/Card.types.d.ts.map +1 -0
- package/dist/components/Card/Card.types.js +2 -0
- package/dist/components/Card/Card.types.js.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +25 -0
- package/dist/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.js +269 -0
- package/dist/components/Carousel/Carousel.js.map +1 -0
- package/dist/components/Carousel/Carousel.types.d.ts +21 -0
- package/dist/components/Carousel/Carousel.types.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.types.js +2 -0
- package/dist/components/Carousel/Carousel.types.js.map +1 -0
- package/dist/components/Cart/Cart.d.ts +22 -0
- package/dist/components/Cart/Cart.d.ts.map +1 -0
- package/dist/components/Cart/Cart.js +185 -0
- package/dist/components/Cart/Cart.js.map +1 -0
- package/dist/components/Cart/Cart.types.d.ts +17 -0
- package/dist/components/Cart/Cart.types.d.ts.map +1 -0
- package/dist/components/Cart/Cart.types.js +2 -0
- package/dist/components/Cart/Cart.types.js.map +1 -0
- package/dist/components/Chart/Chart.d.ts +30 -0
- package/dist/components/Chart/Chart.d.ts.map +1 -0
- package/dist/components/Chart/Chart.js +575 -0
- package/dist/components/Chart/Chart.js.map +1 -0
- package/dist/components/Chart/Chart.types.d.ts +46 -0
- package/dist/components/Chart/Chart.types.d.ts.map +1 -0
- package/dist/components/Chart/Chart.types.js +2 -0
- package/dist/components/Chart/Chart.types.js.map +1 -0
- package/dist/components/Chat/Chat.d.ts +23 -0
- package/dist/components/Chat/Chat.d.ts.map +1 -0
- package/dist/components/Chat/Chat.js +243 -0
- package/dist/components/Chat/Chat.js.map +1 -0
- package/dist/components/Chat/Chat.types.d.ts +26 -0
- package/dist/components/Chat/Chat.types.d.ts.map +1 -0
- package/dist/components/Chat/Chat.types.js +2 -0
- package/dist/components/Chat/Chat.types.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +13 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +27 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +5 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.js +2 -0
- package/dist/components/Checkbox/Checkbox.types.js.map +1 -0
- package/dist/components/Chip/Chip.d.ts +14 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -0
- package/dist/components/Chip/Chip.js +129 -0
- package/dist/components/Chip/Chip.js.map +1 -0
- package/dist/components/Chip/Chip.types.d.ts +14 -0
- package/dist/components/Chip/Chip.types.d.ts.map +1 -0
- package/dist/components/Chip/Chip.types.js +2 -0
- package/dist/components/Chip/Chip.types.js.map +1 -0
- package/dist/components/ColorGradient/ColorGradient.d.ts +26 -0
- package/dist/components/ColorGradient/ColorGradient.d.ts.map +1 -0
- package/dist/components/ColorGradient/ColorGradient.js +251 -0
- package/dist/components/ColorGradient/ColorGradient.js.map +1 -0
- package/dist/components/ColorGradient/ColorGradient.types.d.ts +29 -0
- package/dist/components/ColorGradient/ColorGradient.types.d.ts.map +1 -0
- package/dist/components/ColorGradient/ColorGradient.types.js +2 -0
- package/dist/components/ColorGradient/ColorGradient.types.js.map +1 -0
- package/dist/components/ColorPalette/ColorPalette.d.ts +19 -0
- package/dist/components/ColorPalette/ColorPalette.d.ts.map +1 -0
- package/dist/components/ColorPalette/ColorPalette.js +174 -0
- package/dist/components/ColorPalette/ColorPalette.js.map +1 -0
- package/dist/components/ColorPalette/ColorPalette.types.d.ts +24 -0
- package/dist/components/ColorPalette/ColorPalette.types.d.ts.map +1 -0
- package/dist/components/ColorPalette/ColorPalette.types.js +2 -0
- package/dist/components/ColorPalette/ColorPalette.types.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +19 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.js +176 -0
- package/dist/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.types.d.ts +12 -0
- package/dist/components/ColorPicker/ColorPicker.types.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.types.js +2 -0
- package/dist/components/ColorPicker/ColorPicker.types.js.map +1 -0
- package/dist/components/ComboBox/ComboBox.d.ts +17 -0
- package/dist/components/ComboBox/ComboBox.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBox.js +136 -0
- package/dist/components/ComboBox/ComboBox.js.map +1 -0
- package/dist/components/ComboBox/ComboBox.types.d.ts +13 -0
- package/dist/components/ComboBox/ComboBox.types.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBox.types.js +2 -0
- package/dist/components/ComboBox/ComboBox.types.js.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +47 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.js +464 -0
- package/dist/components/ContextMenu/ContextMenu.js.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.types.d.ts +57 -0
- package/dist/components/ContextMenu/ContextMenu.types.d.ts.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.types.js +2 -0
- package/dist/components/ContextMenu/ContextMenu.types.js.map +1 -0
- package/dist/components/DataTablePro/DataTablePro.d.ts +30 -0
- package/dist/components/DataTablePro/DataTablePro.d.ts.map +1 -0
- package/dist/components/DataTablePro/DataTablePro.js +330 -0
- package/dist/components/DataTablePro/DataTablePro.js.map +1 -0
- package/dist/components/DataTablePro/DataTablePro.types.d.ts +25 -0
- package/dist/components/DataTablePro/DataTablePro.types.d.ts.map +1 -0
- package/dist/components/DataTablePro/DataTablePro.types.js +2 -0
- package/dist/components/DataTablePro/DataTablePro.types.js.map +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +40 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/components/DatePicker/DatePicker.js +461 -0
- package/dist/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts +21 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts.map +1 -0
- package/dist/components/DatePicker/DatePicker.types.js +2 -0
- package/dist/components/DatePicker/DatePicker.types.js.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +44 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +517 -0
- package/dist/components/DateRangePicker/DateRangePicker.js.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +25 -0
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.types.js +2 -0
- package/dist/components/DateRangePicker/DateRangePicker.types.js.map +1 -0
- package/dist/components/Diagram/Diagram.d.ts +137 -0
- package/dist/components/Diagram/Diagram.d.ts.map +1 -0
- package/dist/components/Diagram/Diagram.js +2471 -0
- package/dist/components/Diagram/Diagram.js.map +1 -0
- package/dist/components/Diagram/Diagram.types.d.ts +47 -0
- package/dist/components/Diagram/Diagram.types.d.ts.map +1 -0
- package/dist/components/Diagram/Diagram.types.js +2 -0
- package/dist/components/Diagram/Diagram.types.js.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +12 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.js +41 -0
- package/dist/components/Dialog/Dialog.js.map +1 -0
- package/dist/components/Dialog/Dialog.types.d.ts +8 -0
- package/dist/components/Dialog/Dialog.types.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.types.js +2 -0
- package/dist/components/Dialog/Dialog.types.js.map +1 -0
- package/dist/components/DialogWindow/DialogWindow.d.ts +33 -0
- package/dist/components/DialogWindow/DialogWindow.d.ts.map +1 -0
- package/dist/components/DialogWindow/DialogWindow.js +307 -0
- package/dist/components/DialogWindow/DialogWindow.js.map +1 -0
- package/dist/components/DialogWindow/DialogWindow.types.d.ts +23 -0
- package/dist/components/DialogWindow/DialogWindow.types.d.ts.map +1 -0
- package/dist/components/DialogWindow/DialogWindow.types.js +2 -0
- package/dist/components/DialogWindow/DialogWindow.types.js.map +1 -0
- package/dist/components/Drawer/Drawer.d.ts +34 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.js +480 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/Drawer/Drawer.types.d.ts +33 -0
- package/dist/components/Drawer/Drawer.types.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.types.js +2 -0
- package/dist/components/Drawer/Drawer.types.js.map +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +40 -0
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.js +428 -0
- package/dist/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts +24 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.types.js +2 -0
- package/dist/components/Dropdown/Dropdown.types.js.map +1 -0
- package/dist/components/Editor/Editor.d.ts +36 -0
- package/dist/components/Editor/Editor.d.ts.map +1 -0
- package/dist/components/Editor/Editor.js +685 -0
- package/dist/components/Editor/Editor.js.map +1 -0
- package/dist/components/Editor/Editor.types.d.ts +30 -0
- package/dist/components/Editor/Editor.types.d.ts.map +1 -0
- package/dist/components/Editor/Editor.types.js +2 -0
- package/dist/components/Editor/Editor.types.js.map +1 -0
- package/dist/components/FeatureFlagsManager/FeatureFlagsManager.d.ts +18 -0
- package/dist/components/FeatureFlagsManager/FeatureFlagsManager.d.ts.map +1 -0
- package/dist/components/FeatureFlagsManager/FeatureFlagsManager.js +221 -0
- package/dist/components/FeatureFlagsManager/FeatureFlagsManager.js.map +1 -0
- package/dist/components/FeatureFlagsManager/FeatureFlagsManager.types.d.ts +22 -0
- package/dist/components/FeatureFlagsManager/FeatureFlagsManager.types.d.ts.map +1 -0
- package/dist/components/FeatureFlagsManager/FeatureFlagsManager.types.js +2 -0
- package/dist/components/FeatureFlagsManager/FeatureFlagsManager.types.js.map +1 -0
- package/dist/components/FileManager/FileManager.d.ts +66 -0
- package/dist/components/FileManager/FileManager.d.ts.map +1 -0
- package/dist/components/FileManager/FileManager.js +740 -0
- package/dist/components/FileManager/FileManager.js.map +1 -0
- package/dist/components/FileManager/FileManager.types.d.ts +56 -0
- package/dist/components/FileManager/FileManager.types.d.ts.map +1 -0
- package/dist/components/FileManager/FileManager.types.js +2 -0
- package/dist/components/FileManager/FileManager.types.js.map +1 -0
- package/dist/components/Form/Form.d.ts +20 -0
- package/dist/components/Form/Form.d.ts.map +1 -0
- package/dist/components/Form/Form.js +352 -0
- package/dist/components/Form/Form.js.map +1 -0
- package/dist/components/Form/Form.types.d.ts +41 -0
- package/dist/components/Form/Form.types.d.ts.map +1 -0
- package/dist/components/Form/Form.types.js +2 -0
- package/dist/components/Form/Form.types.js.map +1 -0
- package/dist/components/FormBuilder/FormBuilder.d.ts +23 -0
- package/dist/components/FormBuilder/FormBuilder.d.ts.map +1 -0
- package/dist/components/FormBuilder/FormBuilder.js +352 -0
- package/dist/components/FormBuilder/FormBuilder.js.map +1 -0
- package/dist/components/FormBuilder/FormBuilder.types.d.ts +37 -0
- package/dist/components/FormBuilder/FormBuilder.types.d.ts.map +1 -0
- package/dist/components/FormBuilder/FormBuilder.types.js +2 -0
- package/dist/components/FormBuilder/FormBuilder.types.js.map +1 -0
- package/dist/components/Gantt/Gantt.d.ts +11 -0
- package/dist/components/Gantt/Gantt.d.ts.map +1 -0
- package/dist/components/Gantt/Gantt.js +50 -0
- package/dist/components/Gantt/Gantt.js.map +1 -0
- package/dist/components/Gantt/Gantt.types.d.ts +10 -0
- package/dist/components/Gantt/Gantt.types.d.ts.map +1 -0
- package/dist/components/Gantt/Gantt.types.js +2 -0
- package/dist/components/Gantt/Gantt.types.js.map +1 -0
- package/dist/components/Grid/Grid.d.ts +9 -0
- package/dist/components/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Grid/Grid.js +48 -0
- package/dist/components/Grid/Grid.js.map +1 -0
- package/dist/components/Grid/Grid.types.d.ts +12 -0
- package/dist/components/Grid/Grid.types.d.ts.map +1 -0
- package/dist/components/Grid/Grid.types.js +2 -0
- package/dist/components/Grid/Grid.types.js.map +1 -0
- package/dist/components/Guage/Gauge.types.d.ts +14 -0
- package/dist/components/Guage/Gauge.types.d.ts.map +1 -0
- package/dist/components/Guage/Gauge.types.js +2 -0
- package/dist/components/Guage/Gauge.types.js.map +1 -0
- package/dist/components/Guage/Guage.d.ts +17 -0
- package/dist/components/Guage/Guage.d.ts.map +1 -0
- package/dist/components/Guage/Guage.js +146 -0
- package/dist/components/Guage/Guage.js.map +1 -0
- package/dist/components/Icon/CeIcon.d.ts +10 -0
- package/dist/components/Icon/CeIcon.d.ts.map +1 -0
- package/dist/components/Icon/CeIcon.js +141 -0
- package/dist/components/Icon/CeIcon.js.map +1 -0
- package/dist/components/IdentitySsoSettings/IdentitySsoSettings.d.ts +20 -0
- package/dist/components/IdentitySsoSettings/IdentitySsoSettings.d.ts.map +1 -0
- package/dist/components/IdentitySsoSettings/IdentitySsoSettings.js +218 -0
- package/dist/components/IdentitySsoSettings/IdentitySsoSettings.js.map +1 -0
- package/dist/components/IdentitySsoSettings/IdentitySsoSettings.types.d.ts +30 -0
- package/dist/components/IdentitySsoSettings/IdentitySsoSettings.types.d.ts.map +1 -0
- package/dist/components/IdentitySsoSettings/IdentitySsoSettings.types.js +2 -0
- package/dist/components/IdentitySsoSettings/IdentitySsoSettings.types.js.map +1 -0
- package/dist/components/Input/Input.d.ts +10 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/Input.js +27 -0
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Input/Input.types.d.ts +8 -0
- package/dist/components/Input/Input.types.d.ts.map +1 -0
- package/dist/components/Input/Input.types.js +2 -0
- package/dist/components/Input/Input.types.js.map +1 -0
- package/dist/components/InputMask/InputMask.d.ts +10 -0
- package/dist/components/InputMask/InputMask.d.ts.map +1 -0
- package/dist/components/InputMask/InputMask.js +39 -0
- package/dist/components/InputMask/InputMask.js.map +1 -0
- package/dist/components/InputMask/InputMask.types.d.ts +6 -0
- package/dist/components/InputMask/InputMask.types.d.ts.map +1 -0
- package/dist/components/InputMask/InputMask.types.js +2 -0
- package/dist/components/InputMask/InputMask.types.js.map +1 -0
- package/dist/components/Kanban/Kanban.d.ts +30 -0
- package/dist/components/Kanban/Kanban.d.ts.map +1 -0
- package/dist/components/Kanban/Kanban.js +348 -0
- package/dist/components/Kanban/Kanban.js.map +1 -0
- package/dist/components/Kanban/Kanban.types.d.ts +27 -0
- package/dist/components/Kanban/Kanban.types.d.ts.map +1 -0
- package/dist/components/Kanban/Kanban.types.js +2 -0
- package/dist/components/Kanban/Kanban.types.js.map +1 -0
- package/dist/components/ListBox/ListBox.d.ts +28 -0
- package/dist/components/ListBox/ListBox.d.ts.map +1 -0
- package/dist/components/ListBox/ListBox.js +290 -0
- package/dist/components/ListBox/ListBox.js.map +1 -0
- package/dist/components/ListBox/ListBox.types.d.ts +24 -0
- package/dist/components/ListBox/ListBox.types.d.ts.map +1 -0
- package/dist/components/ListBox/ListBox.types.js +2 -0
- package/dist/components/ListBox/ListBox.types.js.map +1 -0
- package/dist/components/ListView/ListView.d.ts +26 -0
- package/dist/components/ListView/ListView.d.ts.map +1 -0
- package/dist/components/ListView/ListView.js +284 -0
- package/dist/components/ListView/ListView.js.map +1 -0
- package/dist/components/ListView/ListView.types.d.ts +30 -0
- package/dist/components/ListView/ListView.types.d.ts.map +1 -0
- package/dist/components/ListView/ListView.types.js +2 -0
- package/dist/components/ListView/ListView.types.js.map +1 -0
- package/dist/components/Loader/Loader.d.ts +10 -0
- package/dist/components/Loader/Loader.d.ts.map +1 -0
- package/dist/components/Loader/Loader.js +60 -0
- package/dist/components/Loader/Loader.js.map +1 -0
- package/dist/components/Loader/Loader.types.d.ts +7 -0
- package/dist/components/Loader/Loader.types.d.ts.map +1 -0
- package/dist/components/Loader/Loader.types.js +2 -0
- package/dist/components/Loader/Loader.types.js.map +1 -0
- package/dist/components/Map/Map.d.ts +10 -0
- package/dist/components/Map/Map.d.ts.map +1 -0
- package/dist/components/Map/Map.js +85 -0
- package/dist/components/Map/Map.js.map +1 -0
- package/dist/components/Map/Map.types.d.ts +13 -0
- package/dist/components/Map/Map.types.d.ts.map +1 -0
- package/dist/components/Map/Map.types.js +2 -0
- package/dist/components/Map/Map.types.js.map +1 -0
- package/dist/components/Memo/Memo.d.ts +12 -0
- package/dist/components/Memo/Memo.d.ts.map +1 -0
- package/dist/components/Memo/Memo.js +105 -0
- package/dist/components/Memo/Memo.js.map +1 -0
- package/dist/components/Memo/Memo.types.d.ts +9 -0
- package/dist/components/Memo/Memo.types.d.ts.map +1 -0
- package/dist/components/Memo/Memo.types.js +2 -0
- package/dist/components/Memo/Memo.types.js.map +1 -0
- package/dist/components/Menu/Menu.d.ts +42 -0
- package/dist/components/Menu/Menu.d.ts.map +1 -0
- package/dist/components/Menu/Menu.js +582 -0
- package/dist/components/Menu/Menu.js.map +1 -0
- package/dist/components/Menu/Menu.types.d.ts +47 -0
- package/dist/components/Menu/Menu.types.d.ts.map +1 -0
- package/dist/components/Menu/Menu.types.js +2 -0
- package/dist/components/Menu/Menu.types.js.map +1 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +39 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/dist/components/MultiSelect/MultiSelect.js +483 -0
- package/dist/components/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/components/MultiSelect/MultiSelect.types.d.ts +21 -0
- package/dist/components/MultiSelect/MultiSelect.types.d.ts.map +1 -0
- package/dist/components/MultiSelect/MultiSelect.types.js +2 -0
- package/dist/components/MultiSelect/MultiSelect.types.js.map +1 -0
- package/dist/components/Navbar/Navbar.d.ts +31 -0
- package/dist/components/Navbar/Navbar.d.ts.map +1 -0
- package/dist/components/Navbar/Navbar.js +482 -0
- package/dist/components/Navbar/Navbar.js.map +1 -0
- package/dist/components/Navbar/Navbar.types.d.ts +39 -0
- package/dist/components/Navbar/Navbar.types.d.ts.map +1 -0
- package/dist/components/Navbar/Navbar.types.js +2 -0
- package/dist/components/Navbar/Navbar.types.js.map +1 -0
- package/dist/components/Notification/Notification.d.ts +14 -0
- package/dist/components/Notification/Notification.d.ts.map +1 -0
- package/dist/components/Notification/Notification.js +198 -0
- package/dist/components/Notification/Notification.js.map +1 -0
- package/dist/components/Notification/Notification.types.d.ts +18 -0
- package/dist/components/Notification/Notification.types.d.ts.map +1 -0
- package/dist/components/Notification/Notification.types.js +2 -0
- package/dist/components/Notification/Notification.types.js.map +1 -0
- package/dist/components/NumericText/NumericText.d.ts +36 -0
- package/dist/components/NumericText/NumericText.d.ts.map +1 -0
- package/dist/components/NumericText/NumericText.js +316 -0
- package/dist/components/NumericText/NumericText.js.map +1 -0
- package/dist/components/NumericText/NumericText.types.d.ts +25 -0
- package/dist/components/NumericText/NumericText.types.d.ts.map +1 -0
- package/dist/components/NumericText/NumericText.types.js +2 -0
- package/dist/components/NumericText/NumericText.types.js.map +1 -0
- package/dist/components/OpsConsole/OpsConsole.d.ts +17 -0
- package/dist/components/OpsConsole/OpsConsole.d.ts.map +1 -0
- package/dist/components/OpsConsole/OpsConsole.js +251 -0
- package/dist/components/OpsConsole/OpsConsole.js.map +1 -0
- package/dist/components/OpsConsole/OpsConsole.types.d.ts +36 -0
- package/dist/components/OpsConsole/OpsConsole.types.d.ts.map +1 -0
- package/dist/components/OpsConsole/OpsConsole.types.js +2 -0
- package/dist/components/OpsConsole/OpsConsole.types.js.map +1 -0
- package/dist/components/OtpInput/OtpInput.d.ts +20 -0
- package/dist/components/OtpInput/OtpInput.d.ts.map +1 -0
- package/dist/components/OtpInput/OtpInput.js +231 -0
- package/dist/components/OtpInput/OtpInput.js.map +1 -0
- package/dist/components/OtpInput/OtpInput.types.d.ts +18 -0
- package/dist/components/OtpInput/OtpInput.types.d.ts.map +1 -0
- package/dist/components/OtpInput/OtpInput.types.js +2 -0
- package/dist/components/OtpInput/OtpInput.types.js.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +26 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.js +202 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/Pagination.types.d.ts +12 -0
- package/dist/components/Pagination/Pagination.types.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.types.js +2 -0
- package/dist/components/Pagination/Pagination.types.js.map +1 -0
- package/dist/components/PdfViewer/PdfViewer.d.ts +24 -0
- package/dist/components/PdfViewer/PdfViewer.d.ts.map +1 -0
- package/dist/components/PdfViewer/PdfViewer.js +179 -0
- package/dist/components/PdfViewer/PdfViewer.js.map +1 -0
- package/dist/components/PdfViewer/PdfViewer.types.d.ts +12 -0
- package/dist/components/PdfViewer/PdfViewer.types.d.ts.map +1 -0
- package/dist/components/PdfViewer/PdfViewer.types.js +2 -0
- package/dist/components/PdfViewer/PdfViewer.types.js.map +1 -0
- package/dist/components/PivotGrid/PivotGrid.d.ts +10 -0
- package/dist/components/PivotGrid/PivotGrid.d.ts.map +1 -0
- package/dist/components/PivotGrid/PivotGrid.js +42 -0
- package/dist/components/PivotGrid/PivotGrid.js.map +1 -0
- package/dist/components/PivotGrid/PivotGrid.types.d.ts +8 -0
- package/dist/components/PivotGrid/PivotGrid.types.d.ts.map +1 -0
- package/dist/components/PivotGrid/PivotGrid.types.js +2 -0
- package/dist/components/PivotGrid/PivotGrid.types.js.map +1 -0
- package/dist/components/PolicyEditor/PolicyEditor.d.ts +25 -0
- package/dist/components/PolicyEditor/PolicyEditor.d.ts.map +1 -0
- package/dist/components/PolicyEditor/PolicyEditor.js +226 -0
- package/dist/components/PolicyEditor/PolicyEditor.js.map +1 -0
- package/dist/components/PolicyEditor/PolicyEditor.types.d.ts +24 -0
- package/dist/components/PolicyEditor/PolicyEditor.types.d.ts.map +1 -0
- package/dist/components/PolicyEditor/PolicyEditor.types.js +2 -0
- package/dist/components/PolicyEditor/PolicyEditor.types.js.map +1 -0
- package/dist/components/Popup/Popup.d.ts +32 -0
- package/dist/components/Popup/Popup.d.ts.map +1 -0
- package/dist/components/Popup/Popup.js +570 -0
- package/dist/components/Popup/Popup.js.map +1 -0
- package/dist/components/Popup/Popup.types.d.ts +43 -0
- package/dist/components/Popup/Popup.types.d.ts.map +1 -0
- package/dist/components/Popup/Popup.types.js +2 -0
- package/dist/components/Popup/Popup.types.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +12 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.js +74 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +6 -0
- package/dist/components/ProgressBar/ProgressBar.types.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.types.js +2 -0
- package/dist/components/ProgressBar/ProgressBar.types.js.map +1 -0
- package/dist/components/QrCode/QrCode.d.ts +14 -0
- package/dist/components/QrCode/QrCode.d.ts.map +1 -0
- package/dist/components/QrCode/QrCode.js +114 -0
- package/dist/components/QrCode/QrCode.js.map +1 -0
- package/dist/components/QrCode/QrCode.types.d.ts +9 -0
- package/dist/components/QrCode/QrCode.types.d.ts.map +1 -0
- package/dist/components/QrCode/QrCode.types.js +2 -0
- package/dist/components/QrCode/QrCode.types.js.map +1 -0
- package/dist/components/Radio/Radio.d.ts +10 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/Radio.js +85 -0
- package/dist/components/Radio/Radio.js.map +1 -0
- package/dist/components/Radio/Radio.types.d.ts +15 -0
- package/dist/components/Radio/Radio.types.d.ts.map +1 -0
- package/dist/components/Radio/Radio.types.js +2 -0
- package/dist/components/Radio/Radio.types.js.map +1 -0
- package/dist/components/RadioRange/RadioRange.d.ts +11 -0
- package/dist/components/RadioRange/RadioRange.d.ts.map +1 -0
- package/dist/components/RadioRange/RadioRange.js +94 -0
- package/dist/components/RadioRange/RadioRange.js.map +1 -0
- package/dist/components/RadioRange/RadioRange.types.d.ts +11 -0
- package/dist/components/RadioRange/RadioRange.types.d.ts.map +1 -0
- package/dist/components/RadioRange/RadioRange.types.js +2 -0
- package/dist/components/RadioRange/RadioRange.types.js.map +1 -0
- package/dist/components/RangeSlider/RangeSlider.d.ts +11 -0
- package/dist/components/RangeSlider/RangeSlider.d.ts.map +1 -0
- package/dist/components/RangeSlider/RangeSlider.js +31 -0
- package/dist/components/RangeSlider/RangeSlider.js.map +1 -0
- package/dist/components/RangeSlider/RangeSlider.types.d.ts +8 -0
- package/dist/components/RangeSlider/RangeSlider.types.d.ts.map +1 -0
- package/dist/components/RangeSlider/RangeSlider.types.js +2 -0
- package/dist/components/RangeSlider/RangeSlider.types.js.map +1 -0
- package/dist/components/Rating/Rating.d.ts +14 -0
- package/dist/components/Rating/Rating.d.ts.map +1 -0
- package/dist/components/Rating/Rating.js +40 -0
- package/dist/components/Rating/Rating.js.map +1 -0
- package/dist/components/Rating/Rating.types.d.ts +7 -0
- package/dist/components/Rating/Rating.types.d.ts.map +1 -0
- package/dist/components/Rating/Rating.types.js +2 -0
- package/dist/components/Rating/Rating.types.js.map +1 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +11 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +1 -0
- package/dist/components/RichTextEditor/RichTextEditor.js +38 -0
- package/dist/components/RichTextEditor/RichTextEditor.js.map +1 -0
- package/dist/components/RichTextEditor/RichTextEditor.types.d.ts +6 -0
- package/dist/components/RichTextEditor/RichTextEditor.types.d.ts.map +1 -0
- package/dist/components/RichTextEditor/RichTextEditor.types.js +2 -0
- package/dist/components/RichTextEditor/RichTextEditor.types.js.map +1 -0
- package/dist/components/SLADashboard/SLADashboard.d.ts +18 -0
- package/dist/components/SLADashboard/SLADashboard.d.ts.map +1 -0
- package/dist/components/SLADashboard/SLADashboard.js +237 -0
- package/dist/components/SLADashboard/SLADashboard.js.map +1 -0
- package/dist/components/SLADashboard/SLADashboard.types.d.ts +32 -0
- package/dist/components/SLADashboard/SLADashboard.types.d.ts.map +1 -0
- package/dist/components/SLADashboard/SLADashboard.types.js +2 -0
- package/dist/components/SLADashboard/SLADashboard.types.js.map +1 -0
- package/dist/components/Scheduler/Scheduler.d.ts +43 -0
- package/dist/components/Scheduler/Scheduler.d.ts.map +1 -0
- package/dist/components/Scheduler/Scheduler.js +548 -0
- package/dist/components/Scheduler/Scheduler.js.map +1 -0
- package/dist/components/Scheduler/Scheduler.types.d.ts +23 -0
- package/dist/components/Scheduler/Scheduler.types.d.ts.map +1 -0
- package/dist/components/Scheduler/Scheduler.types.js +2 -0
- package/dist/components/Scheduler/Scheduler.types.js.map +1 -0
- package/dist/components/ScrollView/ScrollView.d.ts +14 -0
- package/dist/components/ScrollView/ScrollView.d.ts.map +1 -0
- package/dist/components/ScrollView/ScrollView.js +80 -0
- package/dist/components/ScrollView/ScrollView.js.map +1 -0
- package/dist/components/ScrollView/ScrollView.types.d.ts +10 -0
- package/dist/components/ScrollView/ScrollView.types.d.ts.map +1 -0
- package/dist/components/ScrollView/ScrollView.types.js +2 -0
- package/dist/components/ScrollView/ScrollView.types.js.map +1 -0
- package/dist/components/SignaturePad/SignaturePad.d.ts +27 -0
- package/dist/components/SignaturePad/SignaturePad.d.ts.map +1 -0
- package/dist/components/SignaturePad/SignaturePad.js +187 -0
- package/dist/components/SignaturePad/SignaturePad.js.map +1 -0
- package/dist/components/SignaturePad/SignaturePad.types.d.ts +12 -0
- package/dist/components/SignaturePad/SignaturePad.types.d.ts.map +1 -0
- package/dist/components/SignaturePad/SignaturePad.types.js +2 -0
- package/dist/components/SignaturePad/SignaturePad.types.js.map +1 -0
- package/dist/components/Slider/Slider.d.ts +16 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/Slider.js +112 -0
- package/dist/components/Slider/Slider.js.map +1 -0
- package/dist/components/Slider/Slider.types.d.ts +12 -0
- package/dist/components/Slider/Slider.types.d.ts.map +1 -0
- package/dist/components/Slider/Slider.types.js +2 -0
- package/dist/components/Slider/Slider.types.js.map +1 -0
- package/dist/components/SmartEditor/SmartEditor.d.ts +32 -0
- package/dist/components/SmartEditor/SmartEditor.d.ts.map +1 -0
- package/dist/components/SmartEditor/SmartEditor.js +478 -0
- package/dist/components/SmartEditor/SmartEditor.js.map +1 -0
- package/dist/components/SmartEditor/SmartEditor.types.d.ts +17 -0
- package/dist/components/SmartEditor/SmartEditor.types.d.ts.map +1 -0
- package/dist/components/SmartEditor/SmartEditor.types.js +2 -0
- package/dist/components/SmartEditor/SmartEditor.types.js.map +1 -0
- package/dist/components/SpeechToText/SpeechToText.d.ts +27 -0
- package/dist/components/SpeechToText/SpeechToText.d.ts.map +1 -0
- package/dist/components/SpeechToText/SpeechToText.js +161 -0
- package/dist/components/SpeechToText/SpeechToText.js.map +1 -0
- package/dist/components/SpeechToText/SpeechToText.types.d.ts +17 -0
- package/dist/components/SpeechToText/SpeechToText.types.d.ts.map +1 -0
- package/dist/components/SpeechToText/SpeechToText.types.js +2 -0
- package/dist/components/SpeechToText/SpeechToText.types.js.map +1 -0
- package/dist/components/Splitter/Splitter.d.ts +34 -0
- package/dist/components/Splitter/Splitter.d.ts.map +1 -0
- package/dist/components/Splitter/Splitter.js +237 -0
- package/dist/components/Splitter/Splitter.js.map +1 -0
- package/dist/components/Splitter/Splitter.types.d.ts +19 -0
- package/dist/components/Splitter/Splitter.types.d.ts.map +1 -0
- package/dist/components/Splitter/Splitter.types.js +2 -0
- package/dist/components/Splitter/Splitter.types.js.map +1 -0
- package/dist/components/Spreadsheet/Spreadsheet.d.ts +47 -0
- package/dist/components/Spreadsheet/Spreadsheet.d.ts.map +1 -0
- package/dist/components/Spreadsheet/Spreadsheet.js +597 -0
- package/dist/components/Spreadsheet/Spreadsheet.js.map +1 -0
- package/dist/components/Spreadsheet/Spreadsheet.types.d.ts +16 -0
- package/dist/components/Spreadsheet/Spreadsheet.types.d.ts.map +1 -0
- package/dist/components/Spreadsheet/Spreadsheet.types.js +2 -0
- package/dist/components/Spreadsheet/Spreadsheet.types.js.map +1 -0
- package/dist/components/Stepper/Stepper.d.ts +30 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.js +258 -0
- package/dist/components/Stepper/Stepper.js.map +1 -0
- package/dist/components/Stepper/Stepper.types.d.ts +32 -0
- package/dist/components/Stepper/Stepper.types.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.types.js +2 -0
- package/dist/components/Stepper/Stepper.types.js.map +1 -0
- package/dist/components/Switch/Switch.d.ts +11 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/Switch.js +21 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/Switch.types.d.ts +5 -0
- package/dist/components/Switch/Switch.types.d.ts.map +1 -0
- package/dist/components/Switch/Switch.types.js +2 -0
- package/dist/components/Switch/Switch.types.js.map +1 -0
- package/dist/components/TabLayout/TabLayout.d.ts +27 -0
- package/dist/components/TabLayout/TabLayout.d.ts.map +1 -0
- package/dist/components/TabLayout/TabLayout.js +269 -0
- package/dist/components/TabLayout/TabLayout.js.map +1 -0
- package/dist/components/TabLayout/TabLayout.types.d.ts +26 -0
- package/dist/components/TabLayout/TabLayout.types.d.ts.map +1 -0
- package/dist/components/TabLayout/TabLayout.types.js +2 -0
- package/dist/components/TabLayout/TabLayout.types.js.map +1 -0
- package/dist/components/Table/Table.d.ts +10 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.js +120 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Table/Table.types.d.ts +19 -0
- package/dist/components/Table/Table.types.d.ts.map +1 -0
- package/dist/components/Table/Table.types.js +2 -0
- package/dist/components/Table/Table.types.js.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +33 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +403 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/Tabs.types.d.ts +39 -0
- package/dist/components/Tabs/Tabs.types.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.types.js +2 -0
- package/dist/components/Tabs/Tabs.types.js.map +1 -0
- package/dist/components/TextArea/TextArea.d.ts +12 -0
- package/dist/components/TextArea/TextArea.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.js +53 -0
- package/dist/components/TextArea/TextArea.js.map +1 -0
- package/dist/components/TextArea/TextArea.types.d.ts +13 -0
- package/dist/components/TextArea/TextArea.types.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.types.js +2 -0
- package/dist/components/TextArea/TextArea.types.js.map +1 -0
- package/dist/components/Timeline/Timeline.d.ts +10 -0
- package/dist/components/Timeline/Timeline.d.ts.map +1 -0
- package/dist/components/Timeline/Timeline.js +118 -0
- package/dist/components/Timeline/Timeline.js.map +1 -0
- package/dist/components/Timeline/Timeline.types.d.ts +21 -0
- package/dist/components/Timeline/Timeline.types.d.ts.map +1 -0
- package/dist/components/Timeline/Timeline.types.js +2 -0
- package/dist/components/Timeline/Timeline.types.js.map +1 -0
- package/dist/components/Toast/Toast.d.ts +16 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toast/Toast.js +85 -0
- package/dist/components/Toast/Toast.js.map +1 -0
- package/dist/components/Toast/Toast.types.d.ts +15 -0
- package/dist/components/Toast/Toast.types.d.ts.map +1 -0
- package/dist/components/Toast/Toast.types.js +2 -0
- package/dist/components/Toast/Toast.types.js.map +1 -0
- package/dist/components/TokenVault/TokenVault.d.ts +19 -0
- package/dist/components/TokenVault/TokenVault.d.ts.map +1 -0
- package/dist/components/TokenVault/TokenVault.js +206 -0
- package/dist/components/TokenVault/TokenVault.js.map +1 -0
- package/dist/components/TokenVault/TokenVault.types.d.ts +23 -0
- package/dist/components/TokenVault/TokenVault.types.d.ts.map +1 -0
- package/dist/components/TokenVault/TokenVault.types.js +2 -0
- package/dist/components/TokenVault/TokenVault.types.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +15 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +64 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.types.js +2 -0
- package/dist/components/Tooltip/Tooltip.types.js.map +1 -0
- package/dist/components/TooltipManager/TooltipManager.d.ts +10 -0
- package/dist/components/TooltipManager/TooltipManager.d.ts.map +1 -0
- package/dist/components/TooltipManager/TooltipManager.js +116 -0
- package/dist/components/TooltipManager/TooltipManager.js.map +1 -0
- package/dist/components/TooltipManager/TooltipManager.types.d.ts +11 -0
- package/dist/components/TooltipManager/TooltipManager.types.d.ts.map +1 -0
- package/dist/components/TooltipManager/TooltipManager.types.js +2 -0
- package/dist/components/TooltipManager/TooltipManager.types.js.map +1 -0
- package/dist/components/TreeList/TreeList.d.ts +30 -0
- package/dist/components/TreeList/TreeList.d.ts.map +1 -0
- package/dist/components/TreeList/TreeList.js +375 -0
- package/dist/components/TreeList/TreeList.js.map +1 -0
- package/dist/components/TreeList/TreeList.types.d.ts +22 -0
- package/dist/components/TreeList/TreeList.types.d.ts.map +1 -0
- package/dist/components/TreeList/TreeList.types.js +2 -0
- package/dist/components/TreeList/TreeList.types.js.map +1 -0
- package/dist/components/TreeView/TreeView.d.ts +33 -0
- package/dist/components/TreeView/TreeView.d.ts.map +1 -0
- package/dist/components/TreeView/TreeView.js +405 -0
- package/dist/components/TreeView/TreeView.js.map +1 -0
- package/dist/components/TreeView/TreeView.types.d.ts +20 -0
- package/dist/components/TreeView/TreeView.types.d.ts.map +1 -0
- package/dist/components/TreeView/TreeView.types.js +2 -0
- package/dist/components/TreeView/TreeView.types.js.map +1 -0
- package/dist/components/Upload/Upload.d.ts +10 -0
- package/dist/components/Upload/Upload.d.ts.map +1 -0
- package/dist/components/Upload/Upload.js +19 -0
- package/dist/components/Upload/Upload.js.map +1 -0
- package/dist/components/Upload/Upload.types.d.ts +5 -0
- package/dist/components/Upload/Upload.types.d.ts.map +1 -0
- package/dist/components/Upload/Upload.types.js +2 -0
- package/dist/components/Upload/Upload.types.js.map +1 -0
- package/dist/components/Video/Video.d.ts +31 -0
- package/dist/components/Video/Video.d.ts.map +1 -0
- package/dist/components/Video/Video.js +337 -0
- package/dist/components/Video/Video.js.map +1 -0
- package/dist/components/Video/Video.types.d.ts +49 -0
- package/dist/components/Video/Video.types.d.ts.map +1 -0
- package/dist/components/Video/Video.types.js +2 -0
- package/dist/components/Video/Video.types.js.map +1 -0
- package/dist/components/VisitingCard/VisitingCard.d.ts +16 -0
- package/dist/components/VisitingCard/VisitingCard.d.ts.map +1 -0
- package/dist/components/VisitingCard/VisitingCard.js +105 -0
- package/dist/components/VisitingCard/VisitingCard.js.map +1 -0
- package/dist/components/VisitingCard/VisitingCard.types.d.ts +12 -0
- package/dist/components/VisitingCard/VisitingCard.types.d.ts.map +1 -0
- package/dist/components/VisitingCard/VisitingCard.types.js +2 -0
- package/dist/components/VisitingCard/VisitingCard.types.js.map +1 -0
- package/dist/components/Window/Window.d.ts +39 -0
- package/dist/components/Window/Window.d.ts.map +1 -0
- package/dist/components/Window/Window.js +264 -0
- package/dist/components/Window/Window.js.map +1 -0
- package/dist/components/Window/Window.types.d.ts +28 -0
- package/dist/components/Window/Window.types.d.ts.map +1 -0
- package/dist/components/Window/Window.types.js +2 -0
- package/dist/components/Window/Window.types.js.map +1 -0
- package/dist/components/Wizard/Wizard.d.ts +38 -0
- package/dist/components/Wizard/Wizard.d.ts.map +1 -0
- package/dist/components/Wizard/Wizard.js +547 -0
- package/dist/components/Wizard/Wizard.js.map +1 -0
- package/dist/components/Wizard/Wizard.types.d.ts +46 -0
- package/dist/components/Wizard/Wizard.types.d.ts.map +1 -0
- package/dist/components/Wizard/Wizard.types.js +2 -0
- package/dist/components/Wizard/Wizard.types.js.map +1 -0
- package/dist/components/WorkflowBuilder/WorkflowBuilder.d.ts +21 -0
- package/dist/components/WorkflowBuilder/WorkflowBuilder.d.ts.map +1 -0
- package/dist/components/WorkflowBuilder/WorkflowBuilder.js +256 -0
- package/dist/components/WorkflowBuilder/WorkflowBuilder.js.map +1 -0
- package/dist/components/WorkflowBuilder/WorkflowBuilder.types.d.ts +28 -0
- package/dist/components/WorkflowBuilder/WorkflowBuilder.types.d.ts.map +1 -0
- package/dist/components/WorkflowBuilder/WorkflowBuilder.types.js +2 -0
- package/dist/components/WorkflowBuilder/WorkflowBuilder.types.js.map +1 -0
- package/dist/components/web-components/access-control-matrix.d.ts +11 -0
- package/dist/components/web-components/access-control-matrix.d.ts.map +1 -0
- package/dist/components/web-components/access-control-matrix.js +262 -0
- package/dist/components/web-components/access-control-matrix.js.map +1 -0
- package/dist/components/web-components/accordion.d.ts +5 -0
- package/dist/components/web-components/accordion.d.ts.map +1 -0
- package/dist/components/web-components/accordion.js +110 -0
- package/dist/components/web-components/accordion.js.map +1 -0
- package/dist/components/web-components/atm-card.d.ts +4 -0
- package/dist/components/web-components/atm-card.d.ts.map +1 -0
- package/dist/components/web-components/atm-card.js +142 -0
- package/dist/components/web-components/atm-card.js.map +1 -0
- package/dist/components/web-components/audit-log-viewer.d.ts +11 -0
- package/dist/components/web-components/audit-log-viewer.d.ts.map +1 -0
- package/dist/components/web-components/audit-log-viewer.js +275 -0
- package/dist/components/web-components/audit-log-viewer.js.map +1 -0
- package/dist/components/web-components/avatar.d.ts +5 -0
- package/dist/components/web-components/avatar.d.ts.map +1 -0
- package/dist/components/web-components/avatar.js +140 -0
- package/dist/components/web-components/avatar.js.map +1 -0
- package/dist/components/web-components/backlog-board.d.ts +16 -0
- package/dist/components/web-components/backlog-board.d.ts.map +1 -0
- package/dist/components/web-components/backlog-board.js +188 -0
- package/dist/components/web-components/backlog-board.js.map +1 -0
- package/dist/components/web-components/badge.d.ts +5 -0
- package/dist/components/web-components/badge.d.ts.map +1 -0
- package/dist/components/web-components/badge.js +134 -0
- package/dist/components/web-components/badge.js.map +1 -0
- package/dist/components/web-components/barcode.d.ts +4 -0
- package/dist/components/web-components/barcode.d.ts.map +1 -0
- package/dist/components/web-components/barcode.js +152 -0
- package/dist/components/web-components/barcode.js.map +1 -0
- package/dist/components/web-components/bottom-nav.d.ts +8 -0
- package/dist/components/web-components/bottom-nav.d.ts.map +1 -0
- package/dist/components/web-components/bottom-nav.js +153 -0
- package/dist/components/web-components/bottom-nav.js.map +1 -0
- package/dist/components/web-components/button.d.ts +22 -0
- package/dist/components/web-components/button.d.ts.map +1 -0
- package/dist/components/web-components/button.js +194 -0
- package/dist/components/web-components/button.js.map +1 -0
- package/dist/components/web-components/calendar.d.ts +10 -0
- package/dist/components/web-components/calendar.d.ts.map +1 -0
- package/dist/components/web-components/calendar.js +112 -0
- package/dist/components/web-components/calendar.js.map +1 -0
- package/dist/components/web-components/card.d.ts +5 -0
- package/dist/components/web-components/card.d.ts.map +1 -0
- package/dist/components/web-components/card.js +145 -0
- package/dist/components/web-components/card.js.map +1 -0
- package/dist/components/web-components/carousel.d.ts +10 -0
- package/dist/components/web-components/carousel.d.ts.map +1 -0
- package/dist/components/web-components/carousel.js +119 -0
- package/dist/components/web-components/carousel.js.map +1 -0
- package/dist/components/web-components/cart.d.ts +15 -0
- package/dist/components/web-components/cart.d.ts.map +1 -0
- package/dist/components/web-components/cart.js +149 -0
- package/dist/components/web-components/cart.js.map +1 -0
- package/dist/components/web-components/chart.d.ts +6 -0
- package/dist/components/web-components/chart.d.ts.map +1 -0
- package/dist/components/web-components/chart.js +108 -0
- package/dist/components/web-components/chart.js.map +1 -0
- package/dist/components/web-components/chat.d.ts +7 -0
- package/dist/components/web-components/chat.d.ts.map +1 -0
- package/dist/components/web-components/chat.js +162 -0
- package/dist/components/web-components/chat.js.map +1 -0
- package/dist/components/web-components/checkbox.d.ts +9 -0
- package/dist/components/web-components/checkbox.d.ts.map +1 -0
- package/dist/components/web-components/checkbox.js +83 -0
- package/dist/components/web-components/checkbox.js.map +1 -0
- package/dist/components/web-components/chip.d.ts +8 -0
- package/dist/components/web-components/chip.d.ts.map +1 -0
- package/dist/components/web-components/chip.js +160 -0
- package/dist/components/web-components/chip.js.map +1 -0
- package/dist/components/web-components/color-gradient.d.ts +19 -0
- package/dist/components/web-components/color-gradient.d.ts.map +1 -0
- package/dist/components/web-components/color-gradient.js +168 -0
- package/dist/components/web-components/color-gradient.js.map +1 -0
- package/dist/components/web-components/color-palette.d.ts +13 -0
- package/dist/components/web-components/color-palette.d.ts.map +1 -0
- package/dist/components/web-components/color-palette.js +150 -0
- package/dist/components/web-components/color-palette.js.map +1 -0
- package/dist/components/web-components/color-picker.d.ts +8 -0
- package/dist/components/web-components/color-picker.d.ts.map +1 -0
- package/dist/components/web-components/color-picker.js +130 -0
- package/dist/components/web-components/color-picker.js.map +1 -0
- package/dist/components/web-components/combobox.d.ts +9 -0
- package/dist/components/web-components/combobox.d.ts.map +1 -0
- package/dist/components/web-components/combobox.js +123 -0
- package/dist/components/web-components/combobox.js.map +1 -0
- package/dist/components/web-components/context-menu.d.ts +9 -0
- package/dist/components/web-components/context-menu.d.ts.map +1 -0
- package/dist/components/web-components/context-menu.js +172 -0
- package/dist/components/web-components/context-menu.js.map +1 -0
- package/dist/components/web-components/datatable-pro.d.ts +13 -0
- package/dist/components/web-components/datatable-pro.d.ts.map +1 -0
- package/dist/components/web-components/datatable-pro.js +308 -0
- package/dist/components/web-components/datatable-pro.js.map +1 -0
- package/dist/components/web-components/date-picker.d.ts +10 -0
- package/dist/components/web-components/date-picker.d.ts.map +1 -0
- package/dist/components/web-components/date-picker.js +153 -0
- package/dist/components/web-components/date-picker.js.map +1 -0
- package/dist/components/web-components/date-range-picker.d.ts +11 -0
- package/dist/components/web-components/date-range-picker.d.ts.map +1 -0
- package/dist/components/web-components/date-range-picker.js +163 -0
- package/dist/components/web-components/date-range-picker.js.map +1 -0
- package/dist/components/web-components/diagram.d.ts +10 -0
- package/dist/components/web-components/diagram.d.ts.map +1 -0
- package/dist/components/web-components/diagram.js +380 -0
- package/dist/components/web-components/diagram.js.map +1 -0
- package/dist/components/web-components/dialog-window.d.ts +5 -0
- package/dist/components/web-components/dialog-window.d.ts.map +1 -0
- package/dist/components/web-components/dialog-window.js +167 -0
- package/dist/components/web-components/dialog-window.js.map +1 -0
- package/dist/components/web-components/dialog.d.ts +5 -0
- package/dist/components/web-components/dialog.d.ts.map +1 -0
- package/dist/components/web-components/dialog.js +77 -0
- package/dist/components/web-components/dialog.js.map +1 -0
- package/dist/components/web-components/drawer.d.ts +5 -0
- package/dist/components/web-components/drawer.d.ts.map +1 -0
- package/dist/components/web-components/drawer.js +231 -0
- package/dist/components/web-components/drawer.js.map +1 -0
- package/dist/components/web-components/dropdown.d.ts +10 -0
- package/dist/components/web-components/dropdown.d.ts.map +1 -0
- package/dist/components/web-components/dropdown.js +188 -0
- package/dist/components/web-components/dropdown.js.map +1 -0
- package/dist/components/web-components/editor.d.ts +8 -0
- package/dist/components/web-components/editor.d.ts.map +1 -0
- package/dist/components/web-components/editor.js +265 -0
- package/dist/components/web-components/editor.js.map +1 -0
- package/dist/components/web-components/feature-flags-manager.d.ts +13 -0
- package/dist/components/web-components/feature-flags-manager.d.ts.map +1 -0
- package/dist/components/web-components/feature-flags-manager.js +190 -0
- package/dist/components/web-components/feature-flags-manager.js.map +1 -0
- package/dist/components/web-components/file-manager.d.ts +29 -0
- package/dist/components/web-components/file-manager.d.ts.map +1 -0
- package/dist/components/web-components/file-manager.js +466 -0
- package/dist/components/web-components/file-manager.js.map +1 -0
- package/dist/components/web-components/form-builder.d.ts +15 -0
- package/dist/components/web-components/form-builder.d.ts.map +1 -0
- package/dist/components/web-components/form-builder.js +263 -0
- package/dist/components/web-components/form-builder.js.map +1 -0
- package/dist/components/web-components/form.d.ts +10 -0
- package/dist/components/web-components/form.d.ts.map +1 -0
- package/dist/components/web-components/form.js +187 -0
- package/dist/components/web-components/form.js.map +1 -0
- package/dist/components/web-components/gantt.d.ts +5 -0
- package/dist/components/web-components/gantt.d.ts.map +1 -0
- package/dist/components/web-components/gantt.js +105 -0
- package/dist/components/web-components/gantt.js.map +1 -0
- package/dist/components/web-components/gauge.d.ts +4 -0
- package/dist/components/web-components/gauge.d.ts.map +1 -0
- package/dist/components/web-components/gauge.js +156 -0
- package/dist/components/web-components/gauge.js.map +1 -0
- package/dist/components/web-components/grid.d.ts +63 -0
- package/dist/components/web-components/grid.d.ts.map +1 -0
- package/dist/components/web-components/grid.js +1332 -0
- package/dist/components/web-components/grid.js.map +1 -0
- package/dist/components/web-components/icon.d.ts +2 -0
- package/dist/components/web-components/icon.d.ts.map +1 -0
- package/dist/components/web-components/icon.js +3 -0
- package/dist/components/web-components/icon.js.map +1 -0
- package/dist/components/web-components/identity-sso-settings.d.ts +20 -0
- package/dist/components/web-components/identity-sso-settings.d.ts.map +1 -0
- package/dist/components/web-components/identity-sso-settings.js +247 -0
- package/dist/components/web-components/identity-sso-settings.js.map +1 -0
- package/dist/components/web-components/index.d.ts +95 -0
- package/dist/components/web-components/index.d.ts.map +1 -0
- package/dist/components/web-components/index.js +95 -0
- package/dist/components/web-components/index.js.map +1 -0
- package/dist/components/web-components/input-mask.d.ts +9 -0
- package/dist/components/web-components/input-mask.d.ts.map +1 -0
- package/dist/components/web-components/input-mask.js +146 -0
- package/dist/components/web-components/input-mask.js.map +1 -0
- package/dist/components/web-components/input.d.ts +11 -0
- package/dist/components/web-components/input.d.ts.map +1 -0
- package/dist/components/web-components/input.js +119 -0
- package/dist/components/web-components/input.js.map +1 -0
- package/dist/components/web-components/kanban.d.ts +17 -0
- package/dist/components/web-components/kanban.d.ts.map +1 -0
- package/dist/components/web-components/kanban.js +182 -0
- package/dist/components/web-components/kanban.js.map +1 -0
- package/dist/components/web-components/listbox.d.ts +7 -0
- package/dist/components/web-components/listbox.d.ts.map +1 -0
- package/dist/components/web-components/listbox.js +194 -0
- package/dist/components/web-components/listbox.js.map +1 -0
- package/dist/components/web-components/listview.d.ts +8 -0
- package/dist/components/web-components/listview.d.ts.map +1 -0
- package/dist/components/web-components/listview.js +220 -0
- package/dist/components/web-components/listview.js.map +1 -0
- package/dist/components/web-components/loader.d.ts +5 -0
- package/dist/components/web-components/loader.d.ts.map +1 -0
- package/dist/components/web-components/loader.js +99 -0
- package/dist/components/web-components/loader.js.map +1 -0
- package/dist/components/web-components/map.d.ts +4 -0
- package/dist/components/web-components/map.d.ts.map +1 -0
- package/dist/components/web-components/map.js +135 -0
- package/dist/components/web-components/map.js.map +1 -0
- package/dist/components/web-components/memo.d.ts +7 -0
- package/dist/components/web-components/memo.d.ts.map +1 -0
- package/dist/components/web-components/memo.js +95 -0
- package/dist/components/web-components/memo.js.map +1 -0
- package/dist/components/web-components/menu.d.ts +7 -0
- package/dist/components/web-components/menu.d.ts.map +1 -0
- package/dist/components/web-components/menu.js +209 -0
- package/dist/components/web-components/menu.js.map +1 -0
- package/dist/components/web-components/multiselect.d.ts +12 -0
- package/dist/components/web-components/multiselect.d.ts.map +1 -0
- package/dist/components/web-components/multiselect.js +289 -0
- package/dist/components/web-components/multiselect.js.map +1 -0
- package/dist/components/web-components/navbar.d.ts +8 -0
- package/dist/components/web-components/navbar.d.ts.map +1 -0
- package/dist/components/web-components/navbar.js +404 -0
- package/dist/components/web-components/navbar.js.map +1 -0
- package/dist/components/web-components/notification.d.ts +7 -0
- package/dist/components/web-components/notification.d.ts.map +1 -0
- package/dist/components/web-components/notification.js +234 -0
- package/dist/components/web-components/notification.js.map +1 -0
- package/dist/components/web-components/numeric-text.d.ts +11 -0
- package/dist/components/web-components/numeric-text.d.ts.map +1 -0
- package/dist/components/web-components/numeric-text.js +167 -0
- package/dist/components/web-components/numeric-text.js.map +1 -0
- package/dist/components/web-components/ops-console.d.ts +11 -0
- package/dist/components/web-components/ops-console.d.ts.map +1 -0
- package/dist/components/web-components/ops-console.js +318 -0
- package/dist/components/web-components/ops-console.js.map +1 -0
- package/dist/components/web-components/otp-input.d.ts +11 -0
- package/dist/components/web-components/otp-input.d.ts.map +1 -0
- package/dist/components/web-components/otp-input.js +227 -0
- package/dist/components/web-components/otp-input.js.map +1 -0
- package/dist/components/web-components/pagination.d.ts +11 -0
- package/dist/components/web-components/pagination.d.ts.map +1 -0
- package/dist/components/web-components/pagination.js +229 -0
- package/dist/components/web-components/pagination.js.map +1 -0
- package/dist/components/web-components/pdf-viewer.d.ts +4 -0
- package/dist/components/web-components/pdf-viewer.d.ts.map +1 -0
- package/dist/components/web-components/pdf-viewer.js +158 -0
- package/dist/components/web-components/pdf-viewer.js.map +1 -0
- package/dist/components/web-components/pivot-grid.d.ts +68 -0
- package/dist/components/web-components/pivot-grid.d.ts.map +1 -0
- package/dist/components/web-components/pivot-grid.js +1233 -0
- package/dist/components/web-components/pivot-grid.js.map +1 -0
- package/dist/components/web-components/policy-editor.d.ts +15 -0
- package/dist/components/web-components/policy-editor.d.ts.map +1 -0
- package/dist/components/web-components/policy-editor.js +266 -0
- package/dist/components/web-components/policy-editor.js.map +1 -0
- package/dist/components/web-components/popup.d.ts +11 -0
- package/dist/components/web-components/popup.d.ts.map +1 -0
- package/dist/components/web-components/popup.js +338 -0
- package/dist/components/web-components/popup.js.map +1 -0
- package/dist/components/web-components/progress-bar.d.ts +5 -0
- package/dist/components/web-components/progress-bar.d.ts.map +1 -0
- package/dist/components/web-components/progress-bar.js +97 -0
- package/dist/components/web-components/progress-bar.js.map +1 -0
- package/dist/components/web-components/qrcode.d.ts +4 -0
- package/dist/components/web-components/qrcode.d.ts.map +1 -0
- package/dist/components/web-components/qrcode.js +124 -0
- package/dist/components/web-components/qrcode.js.map +1 -0
- package/dist/components/web-components/radio-range.d.ts +8 -0
- package/dist/components/web-components/radio-range.d.ts.map +1 -0
- package/dist/components/web-components/radio-range.js +134 -0
- package/dist/components/web-components/radio-range.js.map +1 -0
- package/dist/components/web-components/radio.d.ts +10 -0
- package/dist/components/web-components/radio.d.ts.map +1 -0
- package/dist/components/web-components/radio.js +126 -0
- package/dist/components/web-components/radio.js.map +1 -0
- package/dist/components/web-components/range-slider.d.ts +9 -0
- package/dist/components/web-components/range-slider.d.ts.map +1 -0
- package/dist/components/web-components/range-slider.js +112 -0
- package/dist/components/web-components/range-slider.js.map +1 -0
- package/dist/components/web-components/rating.d.ts +22 -0
- package/dist/components/web-components/rating.d.ts.map +1 -0
- package/dist/components/web-components/rating.js +451 -0
- package/dist/components/web-components/rating.js.map +1 -0
- package/dist/components/web-components/rich-text-editor.d.ts +4 -0
- package/dist/components/web-components/rich-text-editor.d.ts.map +1 -0
- package/dist/components/web-components/rich-text-editor.js +82 -0
- package/dist/components/web-components/rich-text-editor.js.map +1 -0
- package/dist/components/web-components/scheduler.d.ts +20 -0
- package/dist/components/web-components/scheduler.d.ts.map +1 -0
- package/dist/components/web-components/scheduler.js +386 -0
- package/dist/components/web-components/scheduler.js.map +1 -0
- package/dist/components/web-components/scrollview.d.ts +5 -0
- package/dist/components/web-components/scrollview.d.ts.map +1 -0
- package/dist/components/web-components/scrollview.js +125 -0
- package/dist/components/web-components/scrollview.js.map +1 -0
- package/dist/components/web-components/signature-pad.d.ts +7 -0
- package/dist/components/web-components/signature-pad.d.ts.map +1 -0
- package/dist/components/web-components/signature-pad.js +123 -0
- package/dist/components/web-components/signature-pad.js.map +1 -0
- package/dist/components/web-components/sla-dashboard.d.ts +8 -0
- package/dist/components/web-components/sla-dashboard.d.ts.map +1 -0
- package/dist/components/web-components/sla-dashboard.js +320 -0
- package/dist/components/web-components/sla-dashboard.js.map +1 -0
- package/dist/components/web-components/slider.d.ts +9 -0
- package/dist/components/web-components/slider.d.ts.map +1 -0
- package/dist/components/web-components/slider.js +164 -0
- package/dist/components/web-components/slider.js.map +1 -0
- package/dist/components/web-components/smart-editor.d.ts +10 -0
- package/dist/components/web-components/smart-editor.d.ts.map +1 -0
- package/dist/components/web-components/smart-editor.js +207 -0
- package/dist/components/web-components/smart-editor.js.map +1 -0
- package/dist/components/web-components/speech-to-text.d.ts +10 -0
- package/dist/components/web-components/speech-to-text.d.ts.map +1 -0
- package/dist/components/web-components/speech-to-text.js +166 -0
- package/dist/components/web-components/speech-to-text.js.map +1 -0
- package/dist/components/web-components/splitter.d.ts +7 -0
- package/dist/components/web-components/splitter.d.ts.map +1 -0
- package/dist/components/web-components/splitter.js +148 -0
- package/dist/components/web-components/splitter.js.map +1 -0
- package/dist/components/web-components/spreadsheet.d.ts +5 -0
- package/dist/components/web-components/spreadsheet.d.ts.map +1 -0
- package/dist/components/web-components/spreadsheet.js +178 -0
- package/dist/components/web-components/spreadsheet.js.map +1 -0
- package/dist/components/web-components/stepper.d.ts +12 -0
- package/dist/components/web-components/stepper.d.ts.map +1 -0
- package/dist/components/web-components/stepper.js +177 -0
- package/dist/components/web-components/stepper.js.map +1 -0
- package/dist/components/web-components/switch.d.ts +39 -0
- package/dist/components/web-components/switch.d.ts.map +1 -0
- package/dist/components/web-components/switch.js +321 -0
- package/dist/components/web-components/switch.js.map +1 -0
- package/dist/components/web-components/tab-layout.d.ts +11 -0
- package/dist/components/web-components/tab-layout.d.ts.map +1 -0
- package/dist/components/web-components/tab-layout.js +157 -0
- package/dist/components/web-components/tab-layout.js.map +1 -0
- package/dist/components/web-components/table.d.ts +8 -0
- package/dist/components/web-components/table.d.ts.map +1 -0
- package/dist/components/web-components/table.js +181 -0
- package/dist/components/web-components/table.js.map +1 -0
- package/dist/components/web-components/tabs.d.ts +13 -0
- package/dist/components/web-components/tabs.d.ts.map +1 -0
- package/dist/components/web-components/tabs.js +197 -0
- package/dist/components/web-components/tabs.js.map +1 -0
- package/dist/components/web-components/textarea.d.ts +8 -0
- package/dist/components/web-components/textarea.d.ts.map +1 -0
- package/dist/components/web-components/textarea.js +174 -0
- package/dist/components/web-components/textarea.js.map +1 -0
- package/dist/components/web-components/timeline.d.ts +4 -0
- package/dist/components/web-components/timeline.d.ts.map +1 -0
- package/dist/components/web-components/timeline.js +167 -0
- package/dist/components/web-components/timeline.js.map +1 -0
- package/dist/components/web-components/toast.d.ts +6 -0
- package/dist/components/web-components/toast.d.ts.map +1 -0
- package/dist/components/web-components/toast.js +129 -0
- package/dist/components/web-components/toast.js.map +1 -0
- package/dist/components/web-components/token-vault.d.ts +11 -0
- package/dist/components/web-components/token-vault.d.ts.map +1 -0
- package/dist/components/web-components/token-vault.js +217 -0
- package/dist/components/web-components/token-vault.js.map +1 -0
- package/dist/components/web-components/tooltip-manager.d.ts +5 -0
- package/dist/components/web-components/tooltip-manager.d.ts.map +1 -0
- package/dist/components/web-components/tooltip-manager.js +114 -0
- package/dist/components/web-components/tooltip-manager.js.map +1 -0
- package/dist/components/web-components/tooltip.d.ts +5 -0
- package/dist/components/web-components/tooltip.d.ts.map +1 -0
- package/dist/components/web-components/tooltip.js +115 -0
- package/dist/components/web-components/tooltip.js.map +1 -0
- package/dist/components/web-components/treelist.d.ts +21 -0
- package/dist/components/web-components/treelist.d.ts.map +1 -0
- package/dist/components/web-components/treelist.js +242 -0
- package/dist/components/web-components/treelist.js.map +1 -0
- package/dist/components/web-components/treeview.d.ts +21 -0
- package/dist/components/web-components/treeview.d.ts.map +1 -0
- package/dist/components/web-components/treeview.js +212 -0
- package/dist/components/web-components/treeview.js.map +1 -0
- package/dist/components/web-components/upload.d.ts +53 -0
- package/dist/components/web-components/upload.d.ts.map +1 -0
- package/dist/components/web-components/upload.js +702 -0
- package/dist/components/web-components/upload.js.map +1 -0
- package/dist/components/web-components/utils/hydration.d.ts +5 -0
- package/dist/components/web-components/utils/hydration.d.ts.map +1 -0
- package/dist/components/web-components/utils/hydration.js +19 -0
- package/dist/components/web-components/utils/hydration.js.map +1 -0
- package/dist/components/web-components/video.d.ts +8 -0
- package/dist/components/web-components/video.d.ts.map +1 -0
- package/dist/components/web-components/video.js +279 -0
- package/dist/components/web-components/video.js.map +1 -0
- package/dist/components/web-components/visiting-card.d.ts +4 -0
- package/dist/components/web-components/visiting-card.d.ts.map +1 -0
- package/dist/components/web-components/visiting-card.js +163 -0
- package/dist/components/web-components/visiting-card.js.map +1 -0
- package/dist/components/web-components/workflow-builder.d.ts +13 -0
- package/dist/components/web-components/workflow-builder.d.ts.map +1 -0
- package/dist/components/web-components/workflow-builder.js +255 -0
- package/dist/components/web-components/workflow-builder.js.map +1 -0
- package/dist/core/BaseComponent.d.ts +9 -0
- package/dist/core/BaseComponent.d.ts.map +1 -0
- package/dist/core/BaseComponent.js +15 -0
- package/dist/core/BaseComponent.js.map +1 -0
- package/dist/core/interfaces/IComponent.d.ts +6 -0
- package/dist/core/interfaces/IComponent.d.ts.map +1 -0
- package/dist/core/interfaces/IComponent.js +2 -0
- package/dist/core/interfaces/IComponent.js.map +1 -0
- package/dist/core/motion.d.ts +3 -0
- package/dist/core/motion.d.ts.map +1 -0
- package/dist/core/motion.js +34 -0
- package/dist/core/motion.js.map +1 -0
- package/dist/core/utils/DomHelper.d.ts +8 -0
- package/dist/core/utils/DomHelper.d.ts.map +1 -0
- package/dist/core/utils/DomHelper.js +22 -0
- package/dist/core/utils/DomHelper.js.map +1 -0
- package/dist/core/utils/virtualization.d.ts +15 -0
- package/dist/core/utils/virtualization.d.ts.map +1 -0
- package/dist/core/utils/virtualization.js +24 -0
- package/dist/core/utils/virtualization.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/src/contracts/types.d.ts +20 -0
- package/dist/src/contracts/types.d.ts.map +1 -0
- package/dist/src/contracts/types.js +2 -0
- package/dist/src/contracts/types.js.map +1 -0
- package/dist/src/generated/registrations.d.ts +289 -0
- package/dist/src/generated/registrations.d.ts.map +1 -0
- package/dist/src/generated/registrations.js +292 -0
- package/dist/src/generated/registrations.js.map +1 -0
- package/dist/src/i18n/index.d.ts +20 -0
- package/dist/src/i18n/index.d.ts.map +1 -0
- package/dist/src/i18n/index.js +86 -0
- package/dist/src/i18n/index.js.map +1 -0
- package/dist/src/i18n/packs.d.ts +4 -0
- package/dist/src/i18n/packs.d.ts.map +1 -0
- package/dist/src/i18n/packs.js +53 -0
- package/dist/src/i18n/packs.js.map +1 -0
- package/dist/src/icons/cache.d.ts +4 -0
- package/dist/src/icons/cache.d.ts.map +1 -0
- package/dist/src/icons/cache.js +43 -0
- package/dist/src/icons/cache.js.map +1 -0
- package/dist/src/icons/config.d.ts +12 -0
- package/dist/src/icons/config.d.ts.map +1 -0
- package/dist/src/icons/config.js +22 -0
- package/dist/src/icons/config.js.map +1 -0
- package/dist/src/icons/registry.d.ts +27 -0
- package/dist/src/icons/registry.d.ts.map +1 -0
- package/dist/src/icons/registry.data.d.ts +6 -0
- package/dist/src/icons/registry.data.d.ts.map +1 -0
- package/dist/src/icons/registry.data.js +9174 -0
- package/dist/src/icons/registry.data.js.map +1 -0
- package/dist/src/icons/registry.js +58 -0
- package/dist/src/icons/registry.js.map +1 -0
- package/dist/src/index.d.ts +288 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +164 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/runtime/analytics.d.ts +12 -0
- package/dist/src/runtime/analytics.d.ts.map +1 -0
- package/dist/src/runtime/analytics.js +21 -0
- package/dist/src/runtime/analytics.js.map +1 -0
- package/dist/src/runtime/component-element.d.ts +20 -0
- package/dist/src/runtime/component-element.d.ts.map +1 -0
- package/dist/src/runtime/component-element.js +439 -0
- package/dist/src/runtime/component-element.js.map +1 -0
- package/dist/src/styles/ensureGlobalStyles.d.ts +7 -0
- package/dist/src/styles/ensureGlobalStyles.d.ts.map +1 -0
- package/dist/src/styles/ensureGlobalStyles.js +77 -0
- package/dist/src/styles/ensureGlobalStyles.js.map +1 -0
- package/dist/src/styles/ensureShadowStyles.d.ts +5 -0
- package/dist/src/styles/ensureShadowStyles.d.ts.map +1 -0
- package/dist/src/styles/ensureShadowStyles.js +73 -0
- package/dist/src/styles/ensureShadowStyles.js.map +1 -0
- package/dist/src/styles/ensureThemeTokens.d.ts +2 -0
- package/dist/src/styles/ensureThemeTokens.d.ts.map +1 -0
- package/dist/src/styles/ensureThemeTokens.js +55 -0
- package/dist/src/styles/ensureThemeTokens.js.map +1 -0
- package/package.json +119 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { FormBuilder } from "../FormBuilder/FormBuilder.js";
|
|
2
|
+
import { defineComponentElement } from "../../src/runtime/component-element.js";
|
|
3
|
+
import { readDataAttr, shouldUseDomValue } from "./utils/hydration.js";
|
|
4
|
+
const DEFAULT_FORM_BUILDER_PROPS = {
|
|
5
|
+
title: "Form builder",
|
|
6
|
+
steps: [],
|
|
7
|
+
currentStep: 0,
|
|
8
|
+
errors: [],
|
|
9
|
+
};
|
|
10
|
+
const FORM_BUILDER_PROP_DEFINITIONS = [
|
|
11
|
+
{ attribute: "title", prop: "title" },
|
|
12
|
+
{ attribute: "steps", prop: "steps", type: "json" },
|
|
13
|
+
{ attribute: "current-step", prop: "currentStep", type: "number" },
|
|
14
|
+
{ attribute: "errors", prop: "errors", type: "json" },
|
|
15
|
+
];
|
|
16
|
+
let formBuilderId = 0;
|
|
17
|
+
const applyFormBuilderParts = (wrapper) => {
|
|
18
|
+
const root = wrapper.matches?.(".ce-form-builder") ? wrapper : wrapper.querySelector(".ce-form-builder");
|
|
19
|
+
if (!root) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
root.setAttribute("data-ce-component", "form-builder");
|
|
23
|
+
root.setAttribute("part", "base");
|
|
24
|
+
root.querySelectorAll(".ce-form-builder__header").forEach((node) => { node.setAttribute("part", "header"); node.setAttribute("data-ce-slot", "header"); });
|
|
25
|
+
root.querySelectorAll(".ce-form-builder__title").forEach((node) => node.setAttribute("part", "title"));
|
|
26
|
+
root.querySelectorAll(".ce-form-builder__meta").forEach((node) => node.setAttribute("part", "meta"));
|
|
27
|
+
root.querySelectorAll(".ce-form-builder__steps").forEach((node) => node.setAttribute("part", "steps"));
|
|
28
|
+
root.querySelectorAll(".ce-form-builder__step").forEach((node) => node.setAttribute("part", "step"));
|
|
29
|
+
root.querySelectorAll(".ce-form-builder__form").forEach((node) => node.setAttribute("part", "form"));
|
|
30
|
+
root
|
|
31
|
+
.querySelectorAll(".ce-form-builder__step-heading")
|
|
32
|
+
.forEach((node) => node.setAttribute("part", "step-heading"));
|
|
33
|
+
root
|
|
34
|
+
.querySelectorAll(".ce-form-builder__step-label")
|
|
35
|
+
.forEach((node) => node.setAttribute("part", "step-label"));
|
|
36
|
+
root
|
|
37
|
+
.querySelectorAll(".ce-form-builder__step-desc")
|
|
38
|
+
.forEach((node) => node.setAttribute("part", "step-desc"));
|
|
39
|
+
root.querySelectorAll(".ce-form-builder__fields").forEach((node) => node.setAttribute("part", "fields"));
|
|
40
|
+
root.querySelectorAll(".ce-form-builder__field").forEach((node) => node.setAttribute("part", "field"));
|
|
41
|
+
root
|
|
42
|
+
.querySelectorAll(".ce-form-builder__field-label")
|
|
43
|
+
.forEach((node) => node.setAttribute("part", "field-label"));
|
|
44
|
+
root
|
|
45
|
+
.querySelectorAll(".ce-form-builder__control")
|
|
46
|
+
.forEach((node) => node.setAttribute("part", "control"));
|
|
47
|
+
root
|
|
48
|
+
.querySelectorAll(".ce-form-builder__checkbox")
|
|
49
|
+
.forEach((node) => node.setAttribute("part", "checkbox"));
|
|
50
|
+
root
|
|
51
|
+
.querySelectorAll(".ce-form-builder__field-help")
|
|
52
|
+
.forEach((node) => node.setAttribute("part", "field-help"));
|
|
53
|
+
root
|
|
54
|
+
.querySelectorAll(".ce-form-builder__field-error")
|
|
55
|
+
.forEach((node) => node.setAttribute("part", "field-error"));
|
|
56
|
+
root.querySelectorAll(".ce-form-builder__footer").forEach((node) => { node.setAttribute("part", "footer"); node.setAttribute("data-ce-slot", "footer"); });
|
|
57
|
+
root.querySelectorAll(".ce-form-builder__nav").forEach((node) => node.setAttribute("part", "nav"));
|
|
58
|
+
root.querySelectorAll(".ce-form-builder__primary").forEach((node) => node.setAttribute("part", "primary"));
|
|
59
|
+
};
|
|
60
|
+
const formBuilderComponent = {
|
|
61
|
+
mount({ target, props, on }) {
|
|
62
|
+
const host = target;
|
|
63
|
+
const existingWrapper = host.querySelector(".ce-form-builder");
|
|
64
|
+
const elementId = existingWrapper?.id || `ce-form-builder-${++formBuilderId}`;
|
|
65
|
+
let wrapper = existingWrapper ?? undefined;
|
|
66
|
+
let currentProps = { ...DEFAULT_FORM_BUILDER_PROPS, ...props };
|
|
67
|
+
if (existingWrapper) {
|
|
68
|
+
const dataTitle = readDataAttr(existingWrapper, "title");
|
|
69
|
+
const domTitle = existingWrapper.querySelector(".ce-form-builder__title")?.textContent?.trim();
|
|
70
|
+
if (shouldUseDomValue(host, "title", dataTitle ?? domTitle)) {
|
|
71
|
+
currentProps.title = dataTitle ?? domTitle ?? DEFAULT_FORM_BUILDER_PROPS.title;
|
|
72
|
+
}
|
|
73
|
+
const dataSteps = readDataAttr(existingWrapper, "steps");
|
|
74
|
+
if (shouldUseDomValue(host, "steps", dataSteps)) {
|
|
75
|
+
try {
|
|
76
|
+
currentProps.steps = JSON.parse(dataSteps ?? "[]");
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
currentProps.steps = DEFAULT_FORM_BUILDER_PROPS.steps;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
const domSteps = readStepsFromDom(existingWrapper);
|
|
84
|
+
if (shouldUseDomValue(host, "steps", domSteps) && domSteps.length) {
|
|
85
|
+
currentProps.steps = domSteps;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const dataCurrent = readDataAttr(existingWrapper, "current-step");
|
|
89
|
+
const domIndex = existingWrapper.querySelector(".ce-form-builder__step.is-active")?.dataset.index;
|
|
90
|
+
if (shouldUseDomValue(host, "current-step", dataCurrent ?? domIndex)) {
|
|
91
|
+
const parsed = Number(dataCurrent ?? domIndex);
|
|
92
|
+
currentProps.currentStep = Number.isFinite(parsed) ? parsed : DEFAULT_FORM_BUILDER_PROPS.currentStep;
|
|
93
|
+
}
|
|
94
|
+
const dataErrors = readDataAttr(existingWrapper, "errors");
|
|
95
|
+
if (shouldUseDomValue(host, "errors", dataErrors)) {
|
|
96
|
+
try {
|
|
97
|
+
currentProps.errors = JSON.parse(dataErrors ?? "[]");
|
|
98
|
+
}
|
|
99
|
+
catch {
|
|
100
|
+
currentProps.errors = DEFAULT_FORM_BUILDER_PROPS.errors;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
const domErrors = readErrorsFromDom(existingWrapper);
|
|
105
|
+
if (shouldUseDomValue(host, "errors", domErrors) && domErrors.length) {
|
|
106
|
+
currentProps.errors = domErrors;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
let instance;
|
|
111
|
+
const render = () => {
|
|
112
|
+
if (!wrapper) {
|
|
113
|
+
host.innerHTML = "";
|
|
114
|
+
wrapper = document.createElement("div");
|
|
115
|
+
wrapper.id = elementId;
|
|
116
|
+
host.appendChild(wrapper);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
if (!wrapper.id) {
|
|
120
|
+
wrapper.id = elementId;
|
|
121
|
+
}
|
|
122
|
+
if (!wrapper.classList.contains("ce-form-builder")) {
|
|
123
|
+
wrapper.classList.add("ce-form-builder");
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
instance?.destroy?.();
|
|
127
|
+
instance = new FormBuilder({
|
|
128
|
+
...currentProps,
|
|
129
|
+
selector: `#${elementId}`,
|
|
130
|
+
hydrate: Boolean(wrapper && wrapper === existingWrapper),
|
|
131
|
+
onStepChange: (index) => on?.stepChange?.({ index }),
|
|
132
|
+
onSubmit: (values) => on?.submit?.({ values }),
|
|
133
|
+
onFieldChange: (fieldId, value) => on?.fieldChange?.({ fieldId, value }),
|
|
134
|
+
});
|
|
135
|
+
instance.init();
|
|
136
|
+
if (wrapper) {
|
|
137
|
+
applyFormBuilderParts(wrapper);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
render();
|
|
141
|
+
return {
|
|
142
|
+
destroy() {
|
|
143
|
+
instance?.destroy?.();
|
|
144
|
+
if (!existingWrapper) {
|
|
145
|
+
host.innerHTML = "";
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
updateProps(partial) {
|
|
149
|
+
currentProps = { ...currentProps, ...(partial ?? {}) };
|
|
150
|
+
render();
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
renderToString(props) {
|
|
155
|
+
const merged = { ...DEFAULT_FORM_BUILDER_PROPS, ...(props ?? {}) };
|
|
156
|
+
const steps = merged.steps ?? [];
|
|
157
|
+
const current = merged.currentStep ?? 0;
|
|
158
|
+
const errors = merged.errors ?? [];
|
|
159
|
+
const title = escapeHtml(merged.title ?? "Form builder");
|
|
160
|
+
const dataSteps = escapeHtml(JSON.stringify(steps));
|
|
161
|
+
const dataErrors = escapeHtml(JSON.stringify(errors));
|
|
162
|
+
const stepTabs = steps
|
|
163
|
+
.map((step, index) => {
|
|
164
|
+
const active = index === current;
|
|
165
|
+
return `<button type="button" class="ce-form-builder__step${active ? " is-active" : ""}" part="step" data-step="${escapeHtml(step.id)}" data-index="${index}">${escapeHtml(step.label)}</button>`;
|
|
166
|
+
})
|
|
167
|
+
.join("");
|
|
168
|
+
const activeStep = steps[current];
|
|
169
|
+
const fieldsMarkup = activeStep
|
|
170
|
+
? activeStep.fields.map((field) => renderField(field, errors)).join("")
|
|
171
|
+
: "";
|
|
172
|
+
const descMarkup = activeStep?.description
|
|
173
|
+
? `<div class="ce-form-builder__step-desc" part="step-desc">${escapeHtml(activeStep.description)}</div>`
|
|
174
|
+
: "";
|
|
175
|
+
const meta = `Step ${current + 1} of ${steps.length}`;
|
|
176
|
+
return `<section class="ce-form-builder" data-ce-component="form-builder" part="base" data-title="${title}" data-steps="${dataSteps}" data-current-step="${current}" data-errors="${dataErrors}">
|
|
177
|
+
<div class="ce-form-builder__header" part="header" data-ce-slot="header">
|
|
178
|
+
<div class="ce-form-builder__title" part="title">${title}</div>
|
|
179
|
+
<div class="ce-form-builder__meta" part="meta">${escapeHtml(meta)}</div>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="ce-form-builder__steps" part="steps">
|
|
182
|
+
${stepTabs}
|
|
183
|
+
</div>
|
|
184
|
+
<form class="ce-form-builder__form" part="form">
|
|
185
|
+
<div class="ce-form-builder__step-heading" part="step-heading">
|
|
186
|
+
<div class="ce-form-builder__step-label" part="step-label">${escapeHtml(activeStep?.label ?? "")}</div>
|
|
187
|
+
${descMarkup}
|
|
188
|
+
</div>
|
|
189
|
+
<div class="ce-form-builder__fields" part="fields">
|
|
190
|
+
${fieldsMarkup}
|
|
191
|
+
</div>
|
|
192
|
+
<div class="ce-form-builder__footer" part="footer" data-ce-slot="footer">
|
|
193
|
+
${current > 0 ? `<button type="button" class="ce-form-builder__nav" part="nav">Back</button>` : ""}
|
|
194
|
+
<button type="${current === steps.length - 1 ? "submit" : "button"}" class="ce-form-builder__primary" part="primary">${current === steps.length - 1 ? "Submit" : "Next"}</button>
|
|
195
|
+
</div>
|
|
196
|
+
</form>
|
|
197
|
+
</section>`;
|
|
198
|
+
},
|
|
199
|
+
};
|
|
200
|
+
export function registerFormBuilderElement() {
|
|
201
|
+
return defineComponentElement({
|
|
202
|
+
tag: "ce-form-builder",
|
|
203
|
+
component: formBuilderComponent,
|
|
204
|
+
props: FORM_BUILDER_PROP_DEFINITIONS,
|
|
205
|
+
defaultProps: DEFAULT_FORM_BUILDER_PROPS,
|
|
206
|
+
shadow: false,
|
|
207
|
+
events: ["stepChange", "submit", "fieldChange"],
|
|
208
|
+
preserveLightDom: true,
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
const escapeHtml = (value) => value
|
|
212
|
+
.replace(/&/g, "&")
|
|
213
|
+
.replace(/</g, "<")
|
|
214
|
+
.replace(/>/g, ">")
|
|
215
|
+
.replace(/"/g, """)
|
|
216
|
+
.replace(/'/g, "'");
|
|
217
|
+
const renderField = (field, errors) => {
|
|
218
|
+
const error = errors.find((entry) => entry.fieldId === field.id);
|
|
219
|
+
const errorMarkup = error
|
|
220
|
+
? `<div class="ce-form-builder__field-error" part="field-error">${escapeHtml(error.message)}</div>`
|
|
221
|
+
: "";
|
|
222
|
+
const helpMarkup = field.helpText
|
|
223
|
+
? `<div class="ce-form-builder__field-help" part="field-help">${escapeHtml(field.helpText)}</div>`
|
|
224
|
+
: "";
|
|
225
|
+
const errorClass = error ? " has-error" : "";
|
|
226
|
+
let controlMarkup = "";
|
|
227
|
+
if (field.type === "select") {
|
|
228
|
+
const options = field.options
|
|
229
|
+
?.map((option) => `<option value="${escapeHtml(option.value)}"${option.value === field.value ? " selected" : ""}>${escapeHtml(option.label)}</option>`)
|
|
230
|
+
.join("") ?? "";
|
|
231
|
+
controlMarkup = `<select class="ce-form-builder__control" part="control" data-field="${escapeHtml(field.id)}">${options}</select>`;
|
|
232
|
+
}
|
|
233
|
+
else if (field.type === "textarea") {
|
|
234
|
+
controlMarkup = `<textarea class="ce-form-builder__control" part="control" data-field="${escapeHtml(field.id)}" placeholder="${escapeHtml(field.placeholder ?? "")}">${escapeHtml(field.value ?? "")}</textarea>`;
|
|
235
|
+
}
|
|
236
|
+
else if (field.type === "checkbox") {
|
|
237
|
+
controlMarkup = `<input class="ce-form-builder__checkbox" part="checkbox" data-field="${escapeHtml(field.id)}" type="checkbox"${field.value ? " checked" : ""} />`;
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
const type = field.type === "email" ? "email" : field.type === "number" ? "number" : "text";
|
|
241
|
+
controlMarkup = `<input class="ce-form-builder__control" part="control" data-field="${escapeHtml(field.id)}" type="${type}" placeholder="${escapeHtml(field.placeholder ?? "")}" value="${escapeHtml(field.value ?? "")}" />`;
|
|
242
|
+
}
|
|
243
|
+
return `<label class="ce-form-builder__field${errorClass}" part="field">
|
|
244
|
+
<span class="ce-form-builder__field-label" part="field-label">${escapeHtml(field.label)}</span>
|
|
245
|
+
${controlMarkup}
|
|
246
|
+
${helpMarkup}
|
|
247
|
+
${errorMarkup}
|
|
248
|
+
</label>`;
|
|
249
|
+
};
|
|
250
|
+
const readStepsFromDom = (root) => Array.from(root.querySelectorAll(".ce-form-builder__step")).map((stepEl, index) => ({
|
|
251
|
+
id: stepEl.dataset.step ?? `step-${index + 1}`,
|
|
252
|
+
label: stepEl.textContent?.trim() ?? "",
|
|
253
|
+
fields: [],
|
|
254
|
+
}));
|
|
255
|
+
const readErrorsFromDom = (root) => Array.from(root.querySelectorAll(".ce-form-builder__field-error")).map((errorEl) => {
|
|
256
|
+
const fieldId = errorEl.closest(".ce-form-builder__field")?.querySelector("[data-field]")
|
|
257
|
+
?.dataset.field;
|
|
258
|
+
return {
|
|
259
|
+
fieldId: fieldId ?? "field",
|
|
260
|
+
message: errorEl.textContent?.trim() ?? "",
|
|
261
|
+
};
|
|
262
|
+
});
|
|
263
|
+
//# sourceMappingURL=form-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-builder.js","sourceRoot":"","sources":["../../../components/web-components/form-builder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAO5D,OAAO,EAAE,sBAAsB,EAAuB,MAAM,wCAAwC,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAmBvE,MAAM,0BAA0B,GAAqB;IACnD,KAAK,EAAE,cAAc;IACrB,KAAK,EAAE,EAAE;IACT,WAAW,EAAE,CAAC;IACd,MAAM,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,6BAA6B,GAA4C;IAC7E,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IACrC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;IACnD,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClE,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM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AAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAiB,EAAc,EAAE,CACzD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAc,wBAAwB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IAC/F,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,QAAQ,KAAK,GAAG,CAAC,EAAE;IAC9C,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE;IACvC,MAAM,EAAE,EAAE;CACX,CAAC,CAAC,CAAC;AAEN,MAAM,iBAAiB,GAAG,CAAC,IAAiB,EAAyB,EAAE,CACrE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAc,+BAA+B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;IAC9F,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAc,yBAAyB,CAAC,EAAE,aAAa,CAAc,cAAc,CAAC;QACjH,EAAE,OAAO,CAAC,KAAK,CAAC;IAClB,OAAO;QACL,OAAO,EAAE,OAAO,IAAI,OAAO;QAC3B,OAAO,EAAE,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE;KAC3C,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FormChangeDetail, FormOptions } from "../Form/Form.types.js";
|
|
2
|
+
export interface FormProps extends Omit<FormOptions, "selector" | "onSubmit" | "onChange">, Record<string, unknown> {
|
|
3
|
+
}
|
|
4
|
+
export interface FormSubmitDetail {
|
|
5
|
+
data: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export interface FormChangeEventDetail extends FormChangeDetail {
|
|
8
|
+
}
|
|
9
|
+
export declare function registerFormElement(): CustomElementConstructor | undefined;
|
|
10
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../components/web-components/form.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAI3E,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG;AAEtH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;CAAG;AAmJlE,wBAAgB,mBAAmB,IAAI,wBAAwB,GAAG,SAAS,CAU1E"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { Form } from "../Form/Form.js";
|
|
2
|
+
import { defineComponentElement } from "../../src/runtime/component-element.js";
|
|
3
|
+
import { shouldUseDomValue } from "./utils/hydration.js";
|
|
4
|
+
const DEFAULT_FORM_PROPS = {
|
|
5
|
+
fields: [],
|
|
6
|
+
submitLabel: "Submit",
|
|
7
|
+
resetLabel: "Reset",
|
|
8
|
+
showReset: true,
|
|
9
|
+
disabled: false,
|
|
10
|
+
columns: 1,
|
|
11
|
+
theme: "light",
|
|
12
|
+
};
|
|
13
|
+
const FORM_PROP_DEFINITIONS = [
|
|
14
|
+
{ attribute: "fields", prop: "fields", type: "json" },
|
|
15
|
+
{ attribute: "submit-label", prop: "submitLabel" },
|
|
16
|
+
{ attribute: "reset-label", prop: "resetLabel" },
|
|
17
|
+
{ attribute: "show-reset", prop: "showReset", type: "boolean" },
|
|
18
|
+
{ attribute: "disabled", prop: "disabled", type: "boolean" },
|
|
19
|
+
{ attribute: "columns", prop: "columns", type: "number" },
|
|
20
|
+
{ attribute: "theme", prop: "theme" },
|
|
21
|
+
];
|
|
22
|
+
let formId = 0;
|
|
23
|
+
const applyFormParts = (wrapper) => {
|
|
24
|
+
const root = wrapper.matches?.(".ce-form") ? wrapper : wrapper.querySelector("form.ce-form");
|
|
25
|
+
if (!root) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
root.setAttribute("data-ce-component", "form");
|
|
29
|
+
root.setAttribute("part", "base");
|
|
30
|
+
root.querySelectorAll(".ce-form__group").forEach((node) => node.setAttribute("part", "group"));
|
|
31
|
+
root.querySelectorAll(".ce-form__label").forEach((node) => node.setAttribute("part", "label"));
|
|
32
|
+
root.querySelectorAll(".ce-form__control").forEach((node) => node.setAttribute("part", "control"));
|
|
33
|
+
root.querySelectorAll(".ce-form__checkbox").forEach((node) => node.setAttribute("part", "checkbox"));
|
|
34
|
+
root
|
|
35
|
+
.querySelectorAll(".ce-form__checkbox-box")
|
|
36
|
+
.forEach((node) => node.setAttribute("part", "checkbox-box"));
|
|
37
|
+
root.querySelectorAll(".ce-form__help").forEach((node) => node.setAttribute("part", "help"));
|
|
38
|
+
root.querySelectorAll(".ce-form__error").forEach((node) => node.setAttribute("part", "error"));
|
|
39
|
+
root.querySelectorAll(".ce-form__actions").forEach((node) => { node.setAttribute("part", "actions"); node.setAttribute("data-ce-slot", "actions"); });
|
|
40
|
+
root.querySelectorAll(".ce-form__submit").forEach((node) => node.setAttribute("part", "submit"));
|
|
41
|
+
root.querySelectorAll(".ce-form__reset").forEach((node) => node.setAttribute("part", "reset"));
|
|
42
|
+
};
|
|
43
|
+
const formComponent = {
|
|
44
|
+
mount({ target, props, on }) {
|
|
45
|
+
const host = target;
|
|
46
|
+
const existingForm = host.querySelector("form.ce-form");
|
|
47
|
+
const elementId = existingForm?.id || `ce-form-${++formId}`;
|
|
48
|
+
let wrapper = existingForm ?? undefined;
|
|
49
|
+
let currentProps = { ...DEFAULT_FORM_PROPS, ...props };
|
|
50
|
+
if (existingForm) {
|
|
51
|
+
const theme = existingForm.classList.contains("ce-form--dark") ? "dark" : "light";
|
|
52
|
+
if (shouldUseDomValue(host, "theme", theme)) {
|
|
53
|
+
currentProps.theme = theme;
|
|
54
|
+
}
|
|
55
|
+
const columns = existingForm.dataset.columns ? Number(existingForm.dataset.columns) : undefined;
|
|
56
|
+
if (shouldUseDomValue(host, "columns", columns)) {
|
|
57
|
+
if (Number.isFinite(columns)) {
|
|
58
|
+
currentProps.columns = columns;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const submit = existingForm.querySelector(".ce-form__submit");
|
|
62
|
+
if (shouldUseDomValue(host, "submit-label", submit?.textContent?.trim())) {
|
|
63
|
+
currentProps.submitLabel = submit?.textContent?.trim() ?? "Submit";
|
|
64
|
+
}
|
|
65
|
+
const reset = existingForm.querySelector(".ce-form__reset");
|
|
66
|
+
if (shouldUseDomValue(host, "reset-label", reset?.textContent?.trim())) {
|
|
67
|
+
currentProps.resetLabel = reset?.textContent?.trim() ?? "Reset";
|
|
68
|
+
}
|
|
69
|
+
const showReset = Boolean(reset);
|
|
70
|
+
if (shouldUseDomValue(host, "show-reset", showReset)) {
|
|
71
|
+
currentProps.showReset = showReset;
|
|
72
|
+
}
|
|
73
|
+
const disabled = existingForm.classList.contains("ce-form--disabled");
|
|
74
|
+
if (shouldUseDomValue(host, "disabled", disabled)) {
|
|
75
|
+
currentProps.disabled = disabled;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
let instance;
|
|
79
|
+
const render = () => {
|
|
80
|
+
if (!wrapper) {
|
|
81
|
+
host.innerHTML = "";
|
|
82
|
+
wrapper = document.createElement("div");
|
|
83
|
+
wrapper.id = elementId;
|
|
84
|
+
host.appendChild(wrapper);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
if (!wrapper.id) {
|
|
88
|
+
wrapper.id = elementId;
|
|
89
|
+
}
|
|
90
|
+
if (!wrapper.classList.contains("ce-form")) {
|
|
91
|
+
wrapper.classList.add("ce-form");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
instance?.destroy?.();
|
|
95
|
+
instance = new Form({
|
|
96
|
+
...currentProps,
|
|
97
|
+
selector: `#${elementId}`,
|
|
98
|
+
hydrate: Boolean(existingForm),
|
|
99
|
+
onSubmit: (data) => on?.submit?.({ data }),
|
|
100
|
+
onChange: (detail) => on?.change?.(detail),
|
|
101
|
+
});
|
|
102
|
+
instance.init();
|
|
103
|
+
if (wrapper) {
|
|
104
|
+
applyFormParts(wrapper);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
render();
|
|
108
|
+
return {
|
|
109
|
+
destroy() {
|
|
110
|
+
instance?.destroy?.();
|
|
111
|
+
if (!existingForm) {
|
|
112
|
+
host.innerHTML = "";
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
updateProps(partial) {
|
|
116
|
+
currentProps = { ...currentProps, ...(partial ?? {}) };
|
|
117
|
+
render();
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
renderToString(props) {
|
|
122
|
+
const merged = { ...DEFAULT_FORM_PROPS, ...(props ?? {}) };
|
|
123
|
+
const fields = (merged.fields ?? []).map((field) => renderField(field));
|
|
124
|
+
const themeClass = merged.theme === "dark" ? " ce-form--dark" : "";
|
|
125
|
+
const disabledClass = merged.disabled ? " ce-form--disabled" : "";
|
|
126
|
+
const submitLabel = escapeHtml(merged.submitLabel ?? "Submit");
|
|
127
|
+
const resetLabel = escapeHtml(merged.resetLabel ?? "Reset");
|
|
128
|
+
const columns = merged.columns ?? 1;
|
|
129
|
+
const columnsAttr = columns !== undefined ? ` data-columns="${columns}"` : "";
|
|
130
|
+
return `<form class="ce-form${themeClass}${disabledClass}" data-ce-component="form" part="base"${columnsAttr} novalidate>${fields.join("")}<div class="ce-form__actions" part="actions" data-ce-slot="actions"><button type="submit" class="ce-form__submit" part="submit"${merged.disabled ? " disabled" : ""}>${submitLabel}</button>${merged.showReset
|
|
131
|
+
? `<button type="reset" class="ce-form__reset" part="reset"${merged.disabled ? " disabled" : ""}>${resetLabel}</button>`
|
|
132
|
+
: ""}</div></form>`;
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
export function registerFormElement() {
|
|
136
|
+
return defineComponentElement({
|
|
137
|
+
tag: "ce-form",
|
|
138
|
+
component: formComponent,
|
|
139
|
+
props: FORM_PROP_DEFINITIONS,
|
|
140
|
+
defaultProps: DEFAULT_FORM_PROPS,
|
|
141
|
+
shadow: false,
|
|
142
|
+
events: ["submit", "change"],
|
|
143
|
+
preserveLightDom: true,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
const renderField = (field) => {
|
|
147
|
+
const label = escapeHtml(field.label ?? "");
|
|
148
|
+
const name = escapeHtml(field.name ?? "");
|
|
149
|
+
const placeholder = escapeHtml(field.placeholder ?? "");
|
|
150
|
+
const required = field.required ? " required" : "";
|
|
151
|
+
const disabled = field.disabled ? " disabled" : "";
|
|
152
|
+
const help = field.helper ? `<div class="ce-form__help" part="help">${escapeHtml(field.helper)}</div>` : "";
|
|
153
|
+
const error = `<div class="ce-form__error" part="error" id="${name}-error" hidden></div>`;
|
|
154
|
+
const colSpan = field.colSpan ? ` style="grid-column: span ${field.colSpan}"` : "";
|
|
155
|
+
if (field.type === "textarea") {
|
|
156
|
+
const rows = field.rows ?? 3;
|
|
157
|
+
const value = field.value != null ? escapeHtml(String(field.value)) : "";
|
|
158
|
+
return `<div class="ce-form__group" part="group"${colSpan}><label class="ce-form__label" part="label" for="${name}">${label}</label><textarea class="ce-form__control" part="control" name="${name}" id="${name}" rows="${rows}" placeholder="${placeholder}"${required}${disabled}>${value}</textarea>${help}${error}</div>`;
|
|
159
|
+
}
|
|
160
|
+
if (field.type === "select" && field.options) {
|
|
161
|
+
const options = field.options
|
|
162
|
+
.map((opt) => {
|
|
163
|
+
const selected = opt.value === field.value ? " selected" : "";
|
|
164
|
+
return `<option value="${escapeHtml(opt.value)}"${selected}>${escapeHtml(opt.label)}</option>`;
|
|
165
|
+
})
|
|
166
|
+
.join("");
|
|
167
|
+
return `<div class="ce-form__group" part="group"${colSpan}><label class="ce-form__label" part="label" for="${name}">${label}</label><select class="ce-form__control" part="control" name="${name}" id="${name}"${required}${disabled}>${options}</select>${help}${error}</div>`;
|
|
168
|
+
}
|
|
169
|
+
if (field.type === "checkbox") {
|
|
170
|
+
const checked = field.value === true || field.value === "true" ? " checked" : "";
|
|
171
|
+
const text = escapeHtml(field.placeholder ?? field.label ?? "");
|
|
172
|
+
return `<div class="ce-form__group" part="group"${colSpan}><label class="ce-form__checkbox" part="checkbox"><input class="ce-form__control" part="control" type="checkbox" name="${name}" id="${name}"${checked}${required}${disabled} /><span class="ce-form__checkbox-box" part="checkbox-box"></span><span>${text}</span></label>${help}${error}</div>`;
|
|
173
|
+
}
|
|
174
|
+
const type = escapeHtml(field.type ?? "text");
|
|
175
|
+
const value = field.value != null ? ` value="${escapeHtml(String(field.value))}"` : "";
|
|
176
|
+
const pattern = field.pattern ? ` pattern="${escapeHtml(field.pattern)}"` : "";
|
|
177
|
+
const min = field.min != null ? ` min="${field.min}"` : "";
|
|
178
|
+
const max = field.max != null ? ` max="${field.max}"` : "";
|
|
179
|
+
return `<div class="ce-form__group" part="group"${colSpan}><label class="ce-form__label" part="label" for="${name}">${label}</label><input class="ce-form__control" part="control" type="${type}" name="${name}" id="${name}" placeholder="${placeholder}"${value}${pattern}${min}${max}${required}${disabled} />${help}${error}</div>`;
|
|
180
|
+
};
|
|
181
|
+
const escapeHtml = (value) => value
|
|
182
|
+
.replace(/&/g, "&")
|
|
183
|
+
.replace(/</g, "<")
|
|
184
|
+
.replace(/>/g, ">")
|
|
185
|
+
.replace(/"/g, """)
|
|
186
|
+
.replace(/'/g, "'");
|
|
187
|
+
//# sourceMappingURL=form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../../components/web-components/form.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAE,sBAAsB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AI,GAAG,KAAK,QAAQ,CAAC;AAC1U,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,KAAa,EAAU,EAAE,CAC3C,KAAK;KACF,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;KACtB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;KACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;KACrB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC;KACvB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GanttOptions } from "../Gantt/Gantt.types.js";
|
|
2
|
+
export interface GanttProps extends Omit<GanttOptions, "selector">, Record<string, unknown> {
|
|
3
|
+
}
|
|
4
|
+
export declare function registerGanttElement(): CustomElementConstructor | undefined;
|
|
5
|
+
//# sourceMappingURL=gantt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt.d.ts","sourceRoot":"","sources":["../../../components/web-components/gantt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAI5D,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG;AAmG9F,wBAAgB,oBAAoB,IAAI,wBAAwB,GAAG,SAAS,CAS3E"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Gantt } from "../Gantt/Gantt.js";
|
|
2
|
+
import { defineComponentElement } from "../../src/runtime/component-element.js";
|
|
3
|
+
import { shouldUseDomValue } from "./utils/hydration.js";
|
|
4
|
+
const DEFAULT_GANTT_PROPS = {
|
|
5
|
+
data: [],
|
|
6
|
+
};
|
|
7
|
+
const GANTT_PROP_DEFINITIONS = [
|
|
8
|
+
{ attribute: "data", prop: "data", type: "json" },
|
|
9
|
+
];
|
|
10
|
+
let ganttId = 0;
|
|
11
|
+
const applyGanttParts = (wrapper) => {
|
|
12
|
+
const root = wrapper.matches?.(".gantt-chart") ? wrapper : wrapper.querySelector(".gantt-chart");
|
|
13
|
+
if (!root) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
root.setAttribute("data-ce-component", "gantt");
|
|
17
|
+
root.setAttribute("part", "base");
|
|
18
|
+
root.querySelectorAll(".gantt-row").forEach((node) => node.setAttribute("part", "row"));
|
|
19
|
+
root.querySelectorAll(".gantt-row > span").forEach((node) => node.setAttribute("part", "row-label"));
|
|
20
|
+
};
|
|
21
|
+
const ganttComponent = {
|
|
22
|
+
mount({ target, props }) {
|
|
23
|
+
const host = target;
|
|
24
|
+
const existingWrapper = host.querySelector(".gantt-chart");
|
|
25
|
+
const elementId = existingWrapper?.id || `ce-gantt-${++ganttId}`;
|
|
26
|
+
let wrapper = existingWrapper ?? undefined;
|
|
27
|
+
let currentProps = { ...DEFAULT_GANTT_PROPS, ...props };
|
|
28
|
+
if (existingWrapper) {
|
|
29
|
+
const dataAttr = existingWrapper.getAttribute("data-gantt");
|
|
30
|
+
if (shouldUseDomValue(host, "data", dataAttr)) {
|
|
31
|
+
try {
|
|
32
|
+
currentProps.data = JSON.parse(dataAttr ?? "[]");
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
currentProps.data = [];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
let instance;
|
|
40
|
+
const render = () => {
|
|
41
|
+
if (!wrapper) {
|
|
42
|
+
host.innerHTML = "";
|
|
43
|
+
wrapper = document.createElement("div");
|
|
44
|
+
wrapper.id = elementId;
|
|
45
|
+
host.appendChild(wrapper);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
if (!wrapper.id) {
|
|
49
|
+
wrapper.id = elementId;
|
|
50
|
+
}
|
|
51
|
+
if (!wrapper.classList.contains("gantt-chart")) {
|
|
52
|
+
wrapper.classList.add("gantt-chart");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
instance?.destroy?.();
|
|
56
|
+
instance = new Gantt({
|
|
57
|
+
...currentProps,
|
|
58
|
+
selector: `#${elementId}`,
|
|
59
|
+
hydrate: Boolean(wrapper),
|
|
60
|
+
});
|
|
61
|
+
instance.init();
|
|
62
|
+
if (wrapper) {
|
|
63
|
+
applyGanttParts(wrapper);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
render();
|
|
67
|
+
return {
|
|
68
|
+
destroy() {
|
|
69
|
+
instance?.destroy?.();
|
|
70
|
+
if (!existingWrapper) {
|
|
71
|
+
host.innerHTML = "";
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
updateProps(partial) {
|
|
75
|
+
currentProps = { ...currentProps, ...(partial ?? {}) };
|
|
76
|
+
render();
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
renderToString(props) {
|
|
81
|
+
const merged = { ...DEFAULT_GANTT_PROPS, ...(props ?? {}) };
|
|
82
|
+
const rows = (merged.data ?? [])
|
|
83
|
+
.map((task) => `<div class="gantt-row" part="row"><span part="row-label">${escapeHtml(task.task ?? "")}</span></div>`)
|
|
84
|
+
.join("");
|
|
85
|
+
const payload = escapeHtml(JSON.stringify(merged.data ?? []));
|
|
86
|
+
return `<div class="gantt-chart" data-ce-component="gantt" part="base" data-gantt="${payload}">${rows || "Gantt chart"}</div>`;
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
export function registerGanttElement() {
|
|
90
|
+
return defineComponentElement({
|
|
91
|
+
tag: "ce-gantt",
|
|
92
|
+
component: ganttComponent,
|
|
93
|
+
props: GANTT_PROP_DEFINITIONS,
|
|
94
|
+
defaultProps: DEFAULT_GANTT_PROPS,
|
|
95
|
+
shadow: false,
|
|
96
|
+
preserveLightDom: true,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
const escapeHtml = (value) => value
|
|
100
|
+
.replace(/&/g, "&")
|
|
101
|
+
.replace(/</g, "<")
|
|
102
|
+
.replace(/>/g, ">")
|
|
103
|
+
.replace(/"/g, """)
|
|
104
|
+
.replace(/'/g, "'");
|
|
105
|
+
//# sourceMappingURL=gantt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt.js","sourceRoot":"","sources":["../../../components/web-components/gantt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,sBAAsB,EAAuB,MAAM,wCAAwC,CAAC;AACrG,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAIzD,MAAM,mBAAmB,GAAe;IACtC,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,sBAAsB,GAAsC;IAChE,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;CAClD,CAAC;AAEF,IAAI,OAAO,GAAG,CAAC,CAAC;AAEhB,MAAM,eAAe,GAAG,CAAC,OAAoB,EAAQ,EAAE;IACrD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAc,cAAc,CAAC,CAAC;IAC9G,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO;IACT,CAAC;IACD,IAAI,CAAC,YAAY,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChD,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,CAAC,gBAAgB,CAAc,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACrG,IAAI,CAAC,gBAAgB,CAAc,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EA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