@restio/ui 0.0.7-SNAPSHOT → 0.0.9-SNAPSHOT
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/dist/components/anchored-overlay/anchored-overlay-types.d.ts +1 -1
- package/dist/components/anchored-overlay/anchored-overlay-types.js +2 -0
- package/dist/components/anchored-overlay/anchored-overlay-types.js.map +1 -0
- package/dist/components/anchored-overlay/anchored-overlay.d.ts +2 -2
- package/dist/components/anchored-overlay/anchored-overlay.js +67 -0
- package/dist/components/anchored-overlay/anchored-overlay.js.map +1 -0
- package/dist/components/banner/banner-types.d.ts +1 -1
- package/dist/components/banner/banner-types.js +2 -0
- package/dist/components/banner/banner-types.js.map +1 -0
- package/dist/components/banner/banner.d.ts +2 -2
- package/dist/components/banner/banner.js +29 -0
- package/dist/components/banner/banner.js.map +1 -0
- package/dist/components/button/button-types.d.ts +1 -1
- package/dist/components/button/button-types.js +2 -0
- package/dist/components/button/button-types.js.map +1 -0
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +20 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button-group/button-group-types.js +2 -0
- package/dist/components/button-group/button-group-types.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +2 -2
- package/dist/components/button-group/button-group.js +16 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/checkbox/checkbox-types.d.ts +1 -1
- package/dist/components/checkbox/checkbox-types.js +2 -0
- package/dist/components/checkbox/checkbox-types.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/checkbox/checkbox.js +19 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +1 -1
- package/dist/components/code-block/code-block.js +9 -0
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/file-upload/file-upload-types.d.ts +1 -1
- package/dist/components/file-upload/file-upload-types.js +2 -0
- package/dist/components/file-upload/file-upload-types.js.map +1 -0
- package/dist/components/file-upload/file-upload-utils.js +10 -0
- package/dist/components/file-upload/file-upload-utils.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +2 -2
- package/dist/components/file-upload/file-upload.js +106 -0
- package/dist/components/file-upload/file-upload.js.map +1 -0
- package/dist/components/graph/graph-types.js +2 -0
- package/dist/components/graph/graph-types.js.map +1 -0
- package/dist/components/graph/graph.d.ts +1 -1
- package/dist/components/graph/graph.js +21 -0
- package/dist/components/graph/graph.js.map +1 -0
- package/dist/components/input/date/date-calendar.d.ts +2 -2
- package/dist/components/input/date/date-calendar.js +114 -0
- package/dist/components/input/date/date-calendar.js.map +1 -0
- package/dist/components/input/date/date-input-field.d.ts +2 -2
- package/dist/components/input/date/date-input-field.js +61 -0
- package/dist/components/input/date/date-input-field.js.map +1 -0
- package/dist/components/input/date/date-picker.d.ts +2 -2
- package/dist/components/input/date/date-picker.js +35 -0
- package/dist/components/input/date/date-picker.js.map +1 -0
- package/dist/components/input/date/date-range-input-field.d.ts +2 -2
- package/dist/components/input/date/date-range-input-field.js +90 -0
- package/dist/components/input/date/date-range-input-field.js.map +1 -0
- package/dist/components/input/date/date-range-picker.d.ts +2 -2
- package/dist/components/input/date/date-range-picker.js +74 -0
- package/dist/components/input/date/date-range-picker.js.map +1 -0
- package/dist/components/input/date/date-shortcuts.d.ts +2 -2
- package/dist/components/input/date/date-shortcuts.js +47 -0
- package/dist/components/input/date/date-shortcuts.js.map +1 -0
- package/dist/components/input/date/date-types.d.ts +1 -1
- package/dist/components/input/date/date-types.js +2 -0
- package/dist/components/input/date/date-types.js.map +1 -0
- package/dist/components/input/date/date-utils.d.ts +1 -1
- package/dist/components/input/date/date-utils.js +203 -0
- package/dist/components/input/date/date-utils.js.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/input/input.d.ts +2 -2
- package/dist/components/input/input.js +14 -0
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/input/number/input-number-types.d.ts +1 -1
- package/dist/components/input/number/input-number-types.js +2 -0
- package/dist/components/input/number/input-number-types.js.map +1 -0
- package/dist/components/input/number/input-number.d.ts +2 -2
- package/dist/components/input/number/input-number.js +11 -0
- package/dist/components/input/number/input-number.js.map +1 -0
- package/dist/components/input/text/input-text-types.d.ts +1 -1
- package/dist/components/input/text/input-text-types.js +2 -0
- package/dist/components/input/text/input-text-types.js.map +1 -0
- package/dist/components/input/text/input-text.d.ts +2 -2
- package/dist/components/input/text/input-text.js +8 -0
- package/dist/components/input/text/input-text.js.map +1 -0
- package/dist/components/kbd/kbd-types.js +2 -0
- package/dist/components/kbd/kbd-types.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +2 -2
- package/dist/components/kbd/kbd.js +12 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/kbd-group/kbd-group-types.js +2 -0
- package/dist/components/kbd-group/kbd-group-types.js.map +1 -0
- package/dist/components/kbd-group/kbd-group.d.ts +2 -2
- package/dist/components/kbd-group/kbd-group.js +15 -0
- package/dist/components/kbd-group/kbd-group.js.map +1 -0
- package/dist/components/list/list-types.d.ts +1 -1
- package/dist/components/list/list-types.js +2 -0
- package/dist/components/list/list-types.js.map +1 -0
- package/dist/components/list/list-utils.d.ts +4 -4
- package/dist/components/list/list-utils.js +73 -0
- package/dist/components/list/list-utils.js.map +1 -0
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/list/list.js +68 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/menu/anchored-navigation-menu.d.ts +3 -3
- package/dist/components/menu/anchored-navigation-menu.js +48 -0
- package/dist/components/menu/anchored-navigation-menu.js.map +1 -0
- package/dist/components/menu/menu-assets.d.ts +1 -1
- package/dist/components/menu/menu-assets.js +35 -0
- package/dist/components/menu/menu-assets.js.map +1 -0
- package/dist/components/menu/menu-types.d.ts +2 -2
- package/dist/components/menu/menu-types.js +2 -0
- package/dist/components/menu/menu-types.js.map +1 -0
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/menu/menu.js +86 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/otp/otp-types.js +2 -0
- package/dist/components/otp/otp-types.js.map +1 -0
- package/dist/components/otp/otp-utils.js +22 -0
- package/dist/components/otp/otp-utils.js.map +1 -0
- package/dist/components/otp/otp.d.ts +3 -2
- package/dist/components/otp/otp.js +85 -0
- package/dist/components/otp/otp.js.map +1 -0
- package/dist/components/select/select-types.d.ts +1 -1
- package/dist/components/select/select-types.js +2 -0
- package/dist/components/select/select-types.js.map +1 -0
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/select.js +52 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/tag/tag-types.d.ts +1 -1
- package/dist/components/tag/tag-types.js +2 -0
- package/dist/components/tag/tag-types.js.map +1 -0
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.js +16 -0
- package/dist/components/tag/tag.js.map +1 -0
- package/dist/components/textarea/textarea-types.d.ts +2 -2
- package/dist/components/textarea/textarea-types.js +2 -0
- package/dist/components/textarea/textarea-types.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +2 -2
- package/dist/components/textarea/textarea.js +19 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/toast-group/toast-group-types.d.ts +1 -1
- package/dist/components/toast-group/toast-group-types.js +2 -0
- package/dist/components/toast-group/toast-group-types.js.map +1 -0
- package/dist/components/toast-group/toast-group.d.ts +2 -2
- package/dist/components/toast-group/toast-group.js +25 -0
- package/dist/components/toast-group/toast-group.js.map +1 -0
- package/dist/components/typography/typography-types.d.ts +1 -1
- package/dist/components/typography/typography-types.js +11 -0
- package/dist/components/typography/typography-types.js.map +1 -0
- package/dist/components/typography/typography.d.ts +2 -2
- package/dist/components/typography/typography.js +17 -0
- package/dist/components/typography/typography.js.map +1 -0
- package/dist/custom-components/chat/chat-types.d.ts +1 -1
- package/dist/custom-components/chat/chat-types.js +2 -0
- package/dist/custom-components/chat/chat-types.js.map +1 -0
- package/dist/custom-components/chat/chat.d.ts +1 -1
- package/dist/custom-components/chat/chat.js +14 -0
- package/dist/custom-components/chat/chat.js.map +1 -0
- package/dist/custom-components/layout/layout-types.js +2 -0
- package/dist/custom-components/layout/layout-types.js.map +1 -0
- package/dist/custom-components/layout/layout.d.ts +2 -2
- package/dist/custom-components/layout/layout.js +46 -0
- package/dist/custom-components/layout/layout.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-constants.js +25 -0
- package/dist/custom-components/layout-builder/layout-builder-constants.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-schema.js +169 -0
- package/dist/custom-components/layout-builder/layout-builder-schema.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-templates.js +206 -0
- package/dist/custom-components/layout-builder/layout-builder-templates.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-types.js +2 -0
- package/dist/custom-components/layout-builder/layout-builder-types.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-utils.js +251 -0
- package/dist/custom-components/layout-builder/layout-builder-utils.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +8 -2
- package/dist/custom-components/layout-builder/layout-builder-validation.js +445 -0
- package/dist/custom-components/layout-builder/layout-builder-validation.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder.d.ts +2 -2
- package/dist/custom-components/layout-builder/layout-builder.js +908 -0
- package/dist/custom-components/layout-builder/layout-builder.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +1 -1
- package/dist/custom-components/layout-builder/layout-json-editor-types.js +2 -0
- package/dist/custom-components/layout-builder/layout-json-editor-types.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-json-editor.d.ts +2 -2
- package/dist/custom-components/layout-builder/layout-json-editor.js +103 -0
- package/dist/custom-components/layout-builder/layout-json-editor.js.map +1 -0
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.js +100 -0
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.js.map +1 -0
- package/dist/custom-components/markdown/markdown-types.d.ts +3 -3
- package/dist/custom-components/markdown/markdown-types.js +2 -0
- package/dist/custom-components/markdown/markdown-types.js.map +1 -0
- package/dist/custom-components/markdown/markdown-utils.js +10 -0
- package/dist/custom-components/markdown/markdown-utils.js.map +1 -0
- package/dist/custom-components/markdown/markdown.d.ts +2 -2
- package/dist/custom-components/markdown/markdown.js +39 -0
- package/dist/custom-components/markdown/markdown.js.map +1 -0
- package/dist/custom-components/mindmap/index.d.ts +2 -2
- package/dist/custom-components/mindmap/index.js +2 -0
- package/dist/custom-components/mindmap/index.js.map +1 -0
- package/dist/custom-components/mindmap/mind-tree-types.d.ts +1 -1
- package/dist/custom-components/mindmap/mind-tree-types.js +2 -0
- package/dist/custom-components/mindmap/mind-tree-types.js.map +1 -0
- package/dist/custom-components/mindmap/mind-tree.d.ts +1 -1
- package/dist/custom-components/mindmap/mind-tree.js +201 -0
- package/dist/custom-components/mindmap/mind-tree.js.map +1 -0
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +1 -1
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.js +277 -0
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.js.map +1 -0
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js +2 -0
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js.map +1 -0
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +2 -2
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js +32 -0
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js.map +1 -0
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +1 -1
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.js +19 -0
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.js.map +1 -0
- package/dist/custom-components/timeline/timeline-types.js +2 -0
- package/dist/custom-components/timeline/timeline-types.js.map +1 -0
- package/dist/custom-components/timeline/timeline.d.ts +2 -2
- package/dist/custom-components/timeline/timeline.js +64 -0
- package/dist/custom-components/timeline/timeline.js.map +1 -0
- package/dist/custom-components/workflow/layout/workflow-edge.d.ts +1 -1
- package/dist/custom-components/workflow/layout/workflow-edge.js +31 -0
- package/dist/custom-components/workflow/layout/workflow-edge.js.map +1 -0
- package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +1 -1
- package/dist/custom-components/workflow/layout/workflow-layout-types.js +2 -0
- package/dist/custom-components/workflow/layout/workflow-layout-types.js.map +1 -0
- package/dist/custom-components/workflow/layout/workflow-layout.d.ts +2 -2
- package/dist/custom-components/workflow/layout/workflow-layout.js +284 -0
- package/dist/custom-components/workflow/layout/workflow-layout.js.map +1 -0
- package/dist/custom-components/workflow/node/workflow-node.d.ts +1 -1
- package/dist/custom-components/workflow/node/workflow-node.js +22 -0
- package/dist/custom-components/workflow/node/workflow-node.js.map +1 -0
- package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +1 -1
- package/dist/custom-components/workflow/panel/workflow-panel-types.js +2 -0
- package/dist/custom-components/workflow/panel/workflow-panel-types.js.map +1 -0
- package/dist/custom-components/workflow/panel/workflow-panel.d.ts +1 -1
- package/dist/custom-components/workflow/panel/workflow-panel.js +53 -0
- package/dist/custom-components/workflow/panel/workflow-panel.js.map +1 -0
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js +2 -0
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js.map +1 -0
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +1 -1
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.js +19 -0
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.js.map +1 -0
- package/dist/custom-components/workflow/utils/workflow-validation.d.ts +2 -2
- package/dist/custom-components/workflow/utils/workflow-validation.js +257 -0
- package/dist/custom-components/workflow/utils/workflow-validation.js.map +1 -0
- package/dist/custom-components/workflow/workflow-types.d.ts +3 -3
- package/dist/custom-components/workflow/workflow-types.js +2 -0
- package/dist/custom-components/workflow/workflow-types.js.map +1 -0
- package/dist/custom-components/workflow/workflow.d.ts +1 -1
- package/dist/custom-components/workflow/workflow.js +125 -0
- package/dist/custom-components/workflow/workflow.js.map +1 -0
- package/dist/data-components/assets/data-components-asset.js +2 -0
- package/dist/data-components/assets/data-components-asset.js.map +1 -0
- package/dist/data-components/calendar/calendar-types.d.ts +1 -1
- package/dist/data-components/calendar/calendar-types.js +2 -0
- package/dist/data-components/calendar/calendar-types.js.map +1 -0
- package/dist/data-components/calendar/calendar-utils.js +2 -0
- package/dist/data-components/calendar/calendar-utils.js.map +1 -0
- package/dist/data-components/calendar/calendar.d.ts +1 -1
- package/dist/data-components/calendar/calendar.js +78 -0
- package/dist/data-components/calendar/calendar.js.map +1 -0
- package/dist/data-components/cell/cell-switch.d.ts +1 -1
- package/dist/data-components/cell/cell-switch.js +68 -0
- package/dist/data-components/cell/cell-switch.js.map +1 -0
- package/dist/data-components/cell/cell-types.d.ts +2 -2
- package/dist/data-components/cell/cell-types.js +2 -0
- package/dist/data-components/cell/cell-types.js.map +1 -0
- package/dist/data-components/cell/cell-utils.js +60 -0
- package/dist/data-components/cell/cell-utils.js.map +1 -0
- package/dist/data-components/cell/cell.d.ts +1 -1
- package/dist/data-components/cell/cell.js +63 -0
- package/dist/data-components/cell/cell.js.map +1 -0
- package/dist/data-components/chart/chart-types.d.ts +1 -1
- package/dist/data-components/chart/chart-types.js +2 -0
- package/dist/data-components/chart/chart-types.js.map +1 -0
- package/dist/data-components/chart/chart.d.ts +1 -1
- package/dist/data-components/chart/chart.js +121 -0
- package/dist/data-components/chart/chart.js.map +1 -0
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +1 -1
- package/dist/data-components/chart/sankey/sankeyChart.js +111 -0
- package/dist/data-components/chart/sankey/sankeyChart.js.map +1 -0
- package/dist/data-components/data-structure/data-structure-utils.d.ts +1 -1
- package/dist/data-components/data-structure/data-structure-utils.js +28 -0
- package/dist/data-components/data-structure/data-structure-utils.js.map +1 -0
- package/dist/data-components/data-structure/data-structure.d.ts +1 -1
- package/dist/data-components/data-structure/data-structure.js +2 -0
- package/dist/data-components/data-structure/data-structure.js.map +1 -0
- package/dist/data-components/data-structure/stories-assets.d.ts +5 -1
- package/dist/data-components/data-structure/stories-assets.js +199 -0
- package/dist/data-components/data-structure/stories-assets.js.map +1 -0
- package/dist/data-components/form/form-types.d.ts +2 -2
- package/dist/data-components/form/form-types.js +2 -0
- package/dist/data-components/form/form-types.js.map +1 -0
- package/dist/data-components/form/form.d.ts +1 -1
- package/dist/data-components/form/form.js +124 -0
- package/dist/data-components/form/form.js.map +1 -0
- package/dist/data-components/table-grid/aggregation/aggregation-utils.js +31 -0
- package/dist/data-components/table-grid/aggregation/aggregation-utils.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js +264 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js +306 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js +2 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js +33 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +2 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js +59 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js +167 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js +2 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +2 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js +157 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js +27 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +1 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js +21 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js +21 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js +12 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +6 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.js +7 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +1 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js +15 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js +50 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js.map +1 -0
- package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +1 -1
- package/dist/data-components/table-grid/footer/table-grid-footer-types.js +2 -0
- package/dist/data-components/table-grid/footer/table-grid-footer-types.js.map +1 -0
- package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +1 -1
- package/dist/data-components/table-grid/footer/table-grid-footer.js +47 -0
- package/dist/data-components/table-grid/footer/table-grid-footer.js.map +1 -0
- package/dist/data-components/table-grid/formula/evaluator.js +91 -0
- package/dist/data-components/table-grid/formula/evaluator.js.map +1 -0
- package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +1 -1
- package/dist/data-components/table-grid/formula/formula-builder-types.js +2 -0
- package/dist/data-components/table-grid/formula/formula-builder-types.js.map +1 -0
- package/dist/data-components/table-grid/formula/formula-builder.d.ts +1 -1
- package/dist/data-components/table-grid/formula/formula-builder.js +47 -0
- package/dist/data-components/table-grid/formula/formula-builder.js.map +1 -0
- package/dist/data-components/table-grid/formula/formula.test.js +50 -0
- package/dist/data-components/table-grid/formula/formula.test.js.map +1 -0
- package/dist/data-components/table-grid/formula/index.js +40 -0
- package/dist/data-components/table-grid/formula/index.js.map +1 -0
- package/dist/data-components/table-grid/formula/parser.js +179 -0
- package/dist/data-components/table-grid/formula/parser.js.map +1 -0
- package/dist/data-components/table-grid/formula/tokenizer.js +140 -0
- package/dist/data-components/table-grid/formula/tokenizer.js.map +1 -0
- package/dist/data-components/table-grid/formula/types.js +2 -0
- package/dist/data-components/table-grid/formula/types.js.map +1 -0
- package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +1 -1
- package/dist/data-components/table-grid/header/grouping/group-panel-types.js +2 -0
- package/dist/data-components/table-grid/header/grouping/group-panel-types.js.map +1 -0
- package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +1 -1
- package/dist/data-components/table-grid/header/grouping/group-panel.js +91 -0
- package/dist/data-components/table-grid/header/grouping/group-panel.js.map +1 -0
- package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +1 -1
- package/dist/data-components/table-grid/header/table-grid-column-menu.js +84 -0
- package/dist/data-components/table-grid/header/table-grid-column-menu.js.map +1 -0
- package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +1 -1
- package/dist/data-components/table-grid/header/table-grid-header-types.js +2 -0
- package/dist/data-components/table-grid/header/table-grid-header-types.js.map +1 -0
- package/dist/data-components/table-grid/header/table-grid-header.d.ts +1 -1
- package/dist/data-components/table-grid/header/table-grid-header.js +148 -0
- package/dist/data-components/table-grid/header/table-grid-header.js.map +1 -0
- package/dist/data-components/table-grid/hooks/use-table.d.ts +1 -1
- package/dist/data-components/table-grid/hooks/use-table.js +18 -0
- package/dist/data-components/table-grid/hooks/use-table.js.map +1 -0
- package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +1 -1
- package/dist/data-components/table-grid/pinning/pinning-utils.js +70 -0
- package/dist/data-components/table-grid/pinning/pinning-utils.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +2 -2
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js +2 -0
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel.js +89 -0
- package/dist/data-components/table-grid/pivot/pivot-config-panel.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-table.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-table.js +26 -0
- package/dist/data-components/table-grid/pivot/pivot-table.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-types.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-types.js +2 -0
- package/dist/data-components/table-grid/pivot/pivot-types.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +2 -2
- package/dist/data-components/table-grid/pivot/pivot-utils.js +150 -0
- package/dist/data-components/table-grid/pivot/pivot-utils.js.map +1 -0
- package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +3 -1
- package/dist/data-components/table-grid/row/table-grid-row-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/row/table-grid-row-types.js +2 -0
- package/dist/data-components/table-grid/row/table-grid-row-types.js.map +1 -0
- package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +2 -2
- package/dist/data-components/table-grid/row/table-grid-row-utils.js +35 -0
- package/dist/data-components/table-grid/row/table-grid-row-utils.js.map +1 -0
- package/dist/data-components/table-grid/row/table-grid-row.d.ts +2 -2
- package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
- package/dist/data-components/table-grid/row/table-grid-row.js +68 -0
- package/dist/data-components/table-grid/row/table-grid-row.js.map +1 -0
- package/dist/data-components/table-grid/selection/selection-types.js +2 -0
- package/dist/data-components/table-grid/selection/selection-types.js.map +1 -0
- package/dist/data-components/table-grid/selection/selection-utils.d.ts +2 -2
- package/dist/data-components/table-grid/selection/selection-utils.js +136 -0
- package/dist/data-components/table-grid/selection/selection-utils.js.map +1 -0
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js +2 -0
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js.map +1 -0
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +1 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js +7 -0
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js.map +1 -0
- package/dist/data-components/table-grid/sorting/sorting.d.ts +1 -1
- package/dist/data-components/table-grid/sorting/sorting.js +45 -0
- package/dist/data-components/table-grid/sorting/sorting.js.map +1 -0
- package/dist/data-components/table-grid/table-context/table-context-types.d.ts +2 -2
- package/dist/data-components/table-grid/table-context/table-context-types.js +2 -0
- package/dist/data-components/table-grid/table-context/table-context-types.js.map +1 -0
- package/dist/data-components/table-grid/table-context/table-context.d.ts +2 -2
- package/dist/data-components/table-grid/table-context/table-context.js +4 -0
- package/dist/data-components/table-grid/table-context/table-context.js.map +1 -0
- package/dist/data-components/table-grid/table-grid-context.d.ts +2 -2
- package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid-context.js +258 -0
- package/dist/data-components/table-grid/table-grid-context.js.map +1 -0
- package/dist/data-components/table-grid/table-grid-types.d.ts +9 -7
- package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid-types.js +2 -0
- package/dist/data-components/table-grid/table-grid-types.js.map +1 -0
- package/dist/data-components/table-grid/table-grid.d.ts +1 -1
- package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid.js +144 -0
- package/dist/data-components/table-grid/table-grid.js.map +1 -0
- package/dist/data-components/table-grid/table-utils.d.ts +1 -1
- package/dist/data-components/table-grid/table-utils.js +116 -0
- package/dist/data-components/table-grid/table-utils.js.map +1 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js +2 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js.map +1 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +1 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js +61 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js.map +1 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +2 -2
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js +23 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js.map +1 -0
- package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +1 -1
- package/dist/experimental-components/filter-builder/filter-builder-types.js +2 -0
- package/dist/experimental-components/filter-builder/filter-builder-types.js.map +1 -0
- package/dist/experimental-components/filter-builder/filter-builder.d.ts +3 -2
- package/dist/experimental-components/filter-builder/filter-builder.js +139 -0
- package/dist/experimental-components/filter-builder/filter-builder.js.map +1 -0
- package/dist/framework-components/appbar/appbar-assets.js +5 -0
- package/dist/framework-components/appbar/appbar-assets.js.map +1 -0
- package/dist/framework-components/appbar/appbar-types.d.ts +1 -1
- package/dist/framework-components/appbar/appbar-types.js +2 -0
- package/dist/framework-components/appbar/appbar-types.js.map +1 -0
- package/dist/framework-components/appbar/appbar.d.ts +2 -2
- package/dist/framework-components/appbar/appbar.js +36 -0
- package/dist/framework-components/appbar/appbar.js.map +1 -0
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.js +2 -0
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.js.map +1 -0
- package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/framework-components/breadcrumbs/breadcrumbs.js +31 -0
- package/dist/framework-components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/framework-components/drawer/drawer-types.d.ts +2 -2
- package/dist/framework-components/drawer/drawer-types.js +2 -0
- package/dist/framework-components/drawer/drawer-types.js.map +1 -0
- package/dist/framework-components/drawer/drawer.d.ts +2 -2
- package/dist/framework-components/drawer/drawer.js +10 -0
- package/dist/framework-components/drawer/drawer.js.map +1 -0
- package/dist/framework-components/scaffold/scaffold-context.d.ts +2 -2
- package/dist/framework-components/scaffold/scaffold-context.js +10 -0
- package/dist/framework-components/scaffold/scaffold-context.js.map +1 -0
- package/dist/framework-components/scaffold/scaffold-types.d.ts +1 -1
- package/dist/framework-components/scaffold/scaffold-types.js +2 -0
- package/dist/framework-components/scaffold/scaffold-types.js.map +1 -0
- package/dist/framework-components/scaffold/scaffold.d.ts +2 -2
- package/dist/framework-components/scaffold/scaffold.js +76 -0
- package/dist/framework-components/scaffold/scaffold.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-assets.js +4 -0
- package/dist/framework-components/sidebar/sidebar-assets.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-context.d.ts +2 -2
- package/dist/framework-components/sidebar/sidebar-context.js +9 -0
- package/dist/framework-components/sidebar/sidebar-context.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js +2 -0
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +1 -1
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js +12 -0
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-types.d.ts +1 -1
- package/dist/framework-components/sidebar/sidebar-types.js +2 -0
- package/dist/framework-components/sidebar/sidebar-types.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar.d.ts +3 -3
- package/dist/framework-components/sidebar/sidebar.js +42 -0
- package/dist/framework-components/sidebar/sidebar.js.map +1 -0
- package/dist/hooks/useDynamicVirtualList.d.ts +76 -0
- package/dist/hooks/useDynamicVirtualList.d.ts.map +1 -0
- package/dist/hooks/useDynamicVirtualList.js +208 -0
- package/dist/hooks/useDynamicVirtualList.js.map +1 -0
- package/dist/hooks/useFixedVirtualList.d.ts +35 -0
- package/dist/hooks/useFixedVirtualList.d.ts.map +1 -0
- package/dist/hooks/useFixedVirtualList.js +64 -0
- package/dist/hooks/useFixedVirtualList.js.map +1 -0
- package/dist/hooks/useShortcut.d.ts +1 -1
- package/dist/hooks/useShortcut.js +86 -0
- package/dist/hooks/useShortcut.js.map +1 -0
- package/dist/hooks/useTour/useTour-context-internal.d.ts +2 -2
- package/dist/hooks/useTour/useTour-context-internal.js +7 -0
- package/dist/hooks/useTour/useTour-context-internal.js.map +1 -0
- package/dist/hooks/useTour/useTour-context.d.ts +3 -3
- package/dist/hooks/useTour/useTour-context.js +54 -0
- package/dist/hooks/useTour/useTour-context.js.map +1 -0
- package/dist/hooks/useTour/useTour-types.d.ts +1 -1
- package/dist/hooks/useTour/useTour-types.js +2 -0
- package/dist/hooks/useTour/useTour-types.js.map +1 -0
- package/dist/hooks/useTour/useTour.d.ts +1 -1
- package/dist/hooks/useTour/useTour.js +408 -0
- package/dist/hooks/useTour/useTour.js.map +1 -0
- package/dist/hooks/useVirtualListScroll.d.ts +1 -1
- package/dist/hooks/useVirtualListScroll.js +79 -0
- package/dist/hooks/useVirtualListScroll.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-assistant-prompts.js +98 -0
- package/dist/providers/ai-assistant/ai-assistant-prompts.js.map +1 -0
- package/dist/providers/ai-assistant/ai-assistant-types.js +5 -0
- package/dist/providers/ai-assistant/ai-assistant-types.js.map +1 -0
- package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-assistant-validator.js +74 -0
- package/dist/providers/ai-assistant/ai-assistant-validator.js.map +1 -0
- package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel-types.js +2 -0
- package/dist/providers/ai-assistant/ai-chat-panel-types.js.map +1 -0
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel.js +111 -0
- package/dist/providers/ai-assistant/ai-chat-panel.js.map +1 -0
- package/dist/providers/shortcut/shortcut-context.d.ts +2 -2
- package/dist/providers/shortcut/shortcut-context.js +7 -0
- package/dist/providers/shortcut/shortcut-context.js.map +1 -0
- package/dist/providers/shortcut/shortcut-provider.d.ts +1 -1
- package/dist/providers/shortcut/shortcut-provider.js +267 -0
- package/dist/providers/shortcut/shortcut-provider.js.map +1 -0
- package/dist/providers/theme/index.js +2 -0
- package/dist/providers/theme/index.js.map +1 -0
- package/dist/providers/theme/theme-provider-types.js +2 -0
- package/dist/providers/theme/theme-provider-types.js.map +1 -0
- package/dist/providers/theme/themeProvider.d.ts +2 -2
- package/dist/providers/theme/themeProvider.js +17 -0
- package/dist/providers/theme/themeProvider.js.map +1 -0
- package/dist/test/vitest.utils.js +2 -0
- package/dist/test/vitest.utils.js.map +1 -0
- package/dist/types/global-types.js +10 -0
- package/dist/types/global-types.js.map +1 -0
- package/dist/types/storybook-types.js +2 -0
- package/dist/types/storybook-types.js.map +1 -0
- package/dist/utility-components/avatar/avatar-types.d.ts +1 -1
- package/dist/utility-components/avatar/avatar-types.js +2 -0
- package/dist/utility-components/avatar/avatar-types.js.map +1 -0
- package/dist/utility-components/avatar/avatar.d.ts +2 -2
- package/dist/utility-components/avatar/avatar.js +10 -0
- package/dist/utility-components/avatar/avatar.js.map +1 -0
- package/dist/utility-components/chip/chip-types.d.ts +2 -2
- package/dist/utility-components/chip/chip-types.js +2 -0
- package/dist/utility-components/chip/chip-types.js.map +1 -0
- package/dist/utility-components/chip/chip.d.ts +2 -2
- package/dist/utility-components/chip/chip.js +11 -0
- package/dist/utility-components/chip/chip.js.map +1 -0
- package/dist/utility-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/utility-components/helper-text/helper-text-types.js +2 -0
- package/dist/utility-components/helper-text/helper-text-types.js.map +1 -0
- package/dist/utility-components/helper-text/helper-text.d.ts +1 -1
- package/dist/utility-components/helper-text/helper-text.js +12 -0
- package/dist/utility-components/helper-text/helper-text.js.map +1 -0
- package/dist/utility-components/icon/icon-assets.js +95 -0
- package/dist/utility-components/icon/icon-assets.js.map +1 -0
- package/dist/utility-components/icon/icon-types.d.ts +1 -1
- package/dist/utility-components/icon/icon-types.js +2 -0
- package/dist/utility-components/icon/icon-types.js.map +1 -0
- package/dist/utility-components/icon/icon.d.ts +2 -2
- package/dist/utility-components/icon/icon.js +28 -0
- package/dist/utility-components/icon/icon.js.map +1 -0
- package/dist/utility-components/label/label-types.js +2 -0
- package/dist/utility-components/label/label-types.js.map +1 -0
- package/dist/utility-components/label/label.d.ts +1 -1
- package/dist/utility-components/label/label.js +10 -0
- package/dist/utility-components/label/label.js.map +1 -0
- package/dist/utility-components/overlay-panel/overlay-panel-types.js +2 -0
- package/dist/utility-components/overlay-panel/overlay-panel-types.js.map +1 -0
- package/dist/utility-components/overlay-panel/overlay-panel.d.ts +2 -2
- package/dist/utility-components/overlay-panel/overlay-panel.js +98 -0
- package/dist/utility-components/overlay-panel/overlay-panel.js.map +1 -0
- package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +1 -1
- package/dist/utility-components/overlay-panel/use-focus-trap.js +61 -0
- package/dist/utility-components/overlay-panel/use-focus-trap.js.map +1 -0
- package/dist/utility-components/skeleton/skeleton-types.js +2 -0
- package/dist/utility-components/skeleton/skeleton-types.js.map +1 -0
- package/dist/utility-components/skeleton/skeleton.d.ts +2 -2
- package/dist/utility-components/skeleton/skeleton.js +14 -0
- package/dist/utility-components/skeleton/skeleton.js.map +1 -0
- package/dist/utility-components/stack/stack-types.js +2 -0
- package/dist/utility-components/stack/stack-types.js.map +1 -0
- package/dist/utility-components/stack/stack.d.ts +2 -2
- package/dist/utility-components/stack/stack.js +12 -0
- package/dist/utility-components/stack/stack.js.map +1 -0
- package/dist/utility-components/toast/toast-types.d.ts +1 -1
- package/dist/utility-components/toast/toast-types.js +2 -0
- package/dist/utility-components/toast/toast-types.js.map +1 -0
- package/dist/utility-components/toast/toast.d.ts +2 -2
- package/dist/utility-components/toast/toast.js +21 -0
- package/dist/utility-components/toast/toast.js.map +1 -0
- package/dist/utils/general.d.ts +1 -1
- package/dist/utils/general.js +27 -0
- package/dist/utils/general.js.map +1 -0
- package/dist/utils/shortcut-utils.js +164 -0
- package/dist/utils/shortcut-utils.js.map +1 -0
- package/package.json +1 -1
- package/dist/assets/svg/alert.svg +0 -1
- package/dist/assets/svg/arrow-down-up.svg +0 -1
- package/dist/assets/svg/arrow-down.svg +0 -1
- package/dist/assets/svg/arrow-left.svg +0 -1
- package/dist/assets/svg/arrow-right.svg +0 -1
- package/dist/assets/svg/arrow-up.svg +0 -1
- package/dist/assets/svg/arrow_drop_down.svg +0 -1
- package/dist/assets/svg/calendar.svg +0 -1
- package/dist/assets/svg/check.svg +0 -1
- package/dist/assets/svg/chevron-down.svg +0 -1
- package/dist/assets/svg/chevron-right.svg +0 -1
- package/dist/assets/svg/clipboard.svg +0 -1
- package/dist/assets/svg/close.svg +0 -1
- package/dist/assets/svg/copy.svg +0 -1
- package/dist/assets/svg/cursor.svg +0 -1
- package/dist/assets/svg/cut.svg +0 -1
- package/dist/assets/svg/delete.svg +0 -1
- package/dist/assets/svg/dock-left-arrow.svg +0 -1
- package/dist/assets/svg/dock-right-arrow.svg +0 -1
- package/dist/assets/svg/document-outline.svg +0 -1
- package/dist/assets/svg/download.svg +0 -1
- package/dist/assets/svg/drag.svg +0 -1
- package/dist/assets/svg/error.svg +0 -1
- package/dist/assets/svg/expand-right.svg +0 -1
- package/dist/assets/svg/expand.svg +0 -1
- package/dist/assets/svg/eye.svg +0 -1
- package/dist/assets/svg/fullscreen.svg +0 -1
- package/dist/assets/svg/gear.svg +0 -1
- package/dist/assets/svg/groups.svg +0 -1
- package/dist/assets/svg/help.svg +0 -1
- package/dist/assets/svg/info.svg +0 -1
- package/dist/assets/svg/logo.svg +0 -9
- package/dist/assets/svg/menu.svg +0 -1
- package/dist/assets/svg/message-bubble-question-mark.svg +0 -1
- package/dist/assets/svg/pencil.svg +0 -1
- package/dist/assets/svg/plus.svg +0 -1
- package/dist/assets/svg/restio.svg +0 -5
- package/dist/assets/svg/search.svg +0 -1
- package/dist/assets/svg/send.svg +0 -1
- package/dist/assets/svg/shrink-right.svg +0 -1
- package/dist/assets/svg/sidebar.svg +0 -1
- package/dist/assets/svg/terminal.svg +0 -1
- package/dist/assets/svg/timer.svg +0 -1
- package/dist/assets/svg/warning.svg +0 -1
- package/dist/assets/svg/zoom-minus.svg +0 -1
- package/dist/assets/svg/zoom-plus.svg +0 -1
- package/dist/restio-ui.cjs.js +0 -109
- package/dist/restio-ui.es.js +0 -34377
- package/dist/ui.css +0 -2
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/** Build a 6-week (42-day) grid starting from the Monday before the 1st of the month */
|
|
2
|
+
export function buildDayGrid(year, month) {
|
|
3
|
+
const firstDay = new Date(year, month, 1);
|
|
4
|
+
// Monday-based: 0=Mon,...,6=Sun
|
|
5
|
+
const dayOfWeek = (firstDay.getDay() + 6) % 7;
|
|
6
|
+
const gridStart = new Date(year, month, 1 - dayOfWeek);
|
|
7
|
+
const days = [];
|
|
8
|
+
for (let i = 0; i < 42; i++) {
|
|
9
|
+
days.push(new Date(gridStart.getFullYear(), gridStart.getMonth(), gridStart.getDate() + i));
|
|
10
|
+
}
|
|
11
|
+
return days;
|
|
12
|
+
}
|
|
13
|
+
export const WEEK_DAYS = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"];
|
|
14
|
+
export const MONTH_NAMES = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
15
|
+
export const QUARTER_NAMES = ["Q1", "Q2", "Q3", "Q4"];
|
|
16
|
+
/** Returns the index of the quarter (0-3) for a given month (0-11) */
|
|
17
|
+
export function getQuarter(date) {
|
|
18
|
+
return Math.floor(date.getMonth() / 3);
|
|
19
|
+
}
|
|
20
|
+
/** Returns the first day of a quarter */
|
|
21
|
+
export function startOfQuarter(year, quarter) {
|
|
22
|
+
return new Date(year, quarter * 3, 1);
|
|
23
|
+
}
|
|
24
|
+
/** Returns the last day of a quarter */
|
|
25
|
+
export function endOfQuarter(year, quarter) {
|
|
26
|
+
return new Date(year, quarter * 3 + 3, 0);
|
|
27
|
+
}
|
|
28
|
+
/** Format a Date to "DD/MM/YYYY" */
|
|
29
|
+
export function formatDateInput(date) {
|
|
30
|
+
if (!date)
|
|
31
|
+
return "";
|
|
32
|
+
const d = date.getDate().toString().padStart(2, "0");
|
|
33
|
+
const m = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
34
|
+
const y = date.getFullYear().toString().padStart(4, "0");
|
|
35
|
+
return `${d}/${m}/${y}`;
|
|
36
|
+
}
|
|
37
|
+
/** Return the 8-digit string (DDMMYYYY) from a Date, used to seed masked inputs */
|
|
38
|
+
export function extractDateDigits(date) {
|
|
39
|
+
if (!date)
|
|
40
|
+
return "";
|
|
41
|
+
const d = date.getDate().toString().padStart(2, "0");
|
|
42
|
+
const m = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
43
|
+
const y = date.getFullYear().toString().padStart(4, "0");
|
|
44
|
+
return `${d}${m}${y}`;
|
|
45
|
+
}
|
|
46
|
+
/** Format a raw digit string (DDMMYYYY) into the DD/MM/YYYY display form */
|
|
47
|
+
export function formatDigitsToDisplay(digits) {
|
|
48
|
+
const d = digits.slice(0, 8);
|
|
49
|
+
if (d.length === 0)
|
|
50
|
+
return "";
|
|
51
|
+
if (d.length <= 2)
|
|
52
|
+
return d;
|
|
53
|
+
if (d.length <= 4)
|
|
54
|
+
return `${d.slice(0, 2)}/${d.slice(2)}`;
|
|
55
|
+
return `${d.slice(0, 2)}/${d.slice(2, 4)}/${d.slice(4)}`;
|
|
56
|
+
}
|
|
57
|
+
/** Parse a raw digit string (DDMMYYYY, 8 chars) into a Date */
|
|
58
|
+
export function parseDigitsToDate(digits) {
|
|
59
|
+
if (digits.length !== 8)
|
|
60
|
+
return undefined;
|
|
61
|
+
const day = parseInt(digits.slice(0, 2), 10);
|
|
62
|
+
const month = parseInt(digits.slice(2, 4), 10) - 1;
|
|
63
|
+
const year = parseInt(digits.slice(4, 8), 10);
|
|
64
|
+
if (month < 0 || month > 11 || day < 1 || day > 31)
|
|
65
|
+
return undefined;
|
|
66
|
+
const date = new Date(year, month, day);
|
|
67
|
+
if (date.getMonth() !== month || date.getDate() !== day)
|
|
68
|
+
return undefined;
|
|
69
|
+
return date;
|
|
70
|
+
}
|
|
71
|
+
/** Format a Date for month mode: "MMM YYYY" */
|
|
72
|
+
export function formatMonthInput(date) {
|
|
73
|
+
if (!date)
|
|
74
|
+
return "";
|
|
75
|
+
return `${MONTH_NAMES[date.getMonth()]} ${date.getFullYear()}`;
|
|
76
|
+
}
|
|
77
|
+
/** Format a Date for quarter mode: "Qn YYYY" */
|
|
78
|
+
export function formatQuarterInput(date) {
|
|
79
|
+
if (!date)
|
|
80
|
+
return "";
|
|
81
|
+
return `Q${getQuarter(date) + 1} ${date.getFullYear()}`;
|
|
82
|
+
}
|
|
83
|
+
/** Format a Date for year mode */
|
|
84
|
+
export function formatYearInput(date) {
|
|
85
|
+
if (!date)
|
|
86
|
+
return "";
|
|
87
|
+
return date.getFullYear().toString();
|
|
88
|
+
}
|
|
89
|
+
export function formatByMode(date, mode) {
|
|
90
|
+
if (!date)
|
|
91
|
+
return "";
|
|
92
|
+
switch (mode) {
|
|
93
|
+
case "day":
|
|
94
|
+
return formatDateInput(date);
|
|
95
|
+
case "month":
|
|
96
|
+
return formatMonthInput(date);
|
|
97
|
+
case "quarter":
|
|
98
|
+
return formatQuarterInput(date);
|
|
99
|
+
case "year":
|
|
100
|
+
return formatYearInput(date);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/** Parse "DD/MM/YYYY" text to Date or undefined */
|
|
104
|
+
export function parseDateInput(text) {
|
|
105
|
+
const match = text.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);
|
|
106
|
+
if (!match)
|
|
107
|
+
return undefined;
|
|
108
|
+
const d = parseInt(match[1], 10);
|
|
109
|
+
const m = parseInt(match[2], 10) - 1;
|
|
110
|
+
const y = parseInt(match[3], 10);
|
|
111
|
+
if (m < 0 || m > 11 || d < 1 || d > 31)
|
|
112
|
+
return undefined;
|
|
113
|
+
const date = new Date(y, m, d);
|
|
114
|
+
if (date.getMonth() !== m || date.getDate() !== d)
|
|
115
|
+
return undefined;
|
|
116
|
+
return date;
|
|
117
|
+
}
|
|
118
|
+
/** Returns true if two dates represent the same calendar day */
|
|
119
|
+
export function isSameDay(a, b) {
|
|
120
|
+
if (!a || !b)
|
|
121
|
+
return false;
|
|
122
|
+
return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
|
|
123
|
+
}
|
|
124
|
+
export function isSameMonth(a, b) {
|
|
125
|
+
if (!a || !b)
|
|
126
|
+
return false;
|
|
127
|
+
return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth();
|
|
128
|
+
}
|
|
129
|
+
export function isSameQuarter(a, b) {
|
|
130
|
+
if (!a || !b)
|
|
131
|
+
return false;
|
|
132
|
+
return a.getFullYear() === b.getFullYear() && getQuarter(a) === getQuarter(b);
|
|
133
|
+
}
|
|
134
|
+
export function isSameYear(a, b) {
|
|
135
|
+
if (!a || !b)
|
|
136
|
+
return false;
|
|
137
|
+
return a.getFullYear() === b.getFullYear();
|
|
138
|
+
}
|
|
139
|
+
/** Returns true if date is between start and end (exclusive) */
|
|
140
|
+
export function isBetween(date, start, end) {
|
|
141
|
+
if (!start || !end)
|
|
142
|
+
return false;
|
|
143
|
+
const t = date.getTime();
|
|
144
|
+
return t > start.getTime() && t < end.getTime();
|
|
145
|
+
}
|
|
146
|
+
export function isMonthBetween(date, start, end) {
|
|
147
|
+
if (!start || !end)
|
|
148
|
+
return false;
|
|
149
|
+
const t = new Date(date.getFullYear(), date.getMonth(), 1).getTime();
|
|
150
|
+
const s = new Date(start.getFullYear(), start.getMonth(), 1).getTime();
|
|
151
|
+
const e = new Date(end.getFullYear(), end.getMonth(), 1).getTime();
|
|
152
|
+
return t > s && t < e;
|
|
153
|
+
}
|
|
154
|
+
export function isQuarterBetween(year, q, start, end) {
|
|
155
|
+
if (!start || !end)
|
|
156
|
+
return false;
|
|
157
|
+
const t = startOfQuarter(year, q).getTime();
|
|
158
|
+
const s = startOfQuarter(start.getFullYear(), getQuarter(start)).getTime();
|
|
159
|
+
const e = startOfQuarter(end.getFullYear(), getQuarter(end)).getTime();
|
|
160
|
+
return t > s && t < e;
|
|
161
|
+
}
|
|
162
|
+
export function isYearBetween(year, start, end) {
|
|
163
|
+
if (!start || !end)
|
|
164
|
+
return false;
|
|
165
|
+
return year > start.getFullYear() && year < end.getFullYear();
|
|
166
|
+
}
|
|
167
|
+
// ─── Shortcut helpers ────────────────────────────────────────────────────────
|
|
168
|
+
export function startOfDay(d) {
|
|
169
|
+
return new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
170
|
+
}
|
|
171
|
+
export function startOfWeek(d) {
|
|
172
|
+
const day = (d.getDay() + 6) % 7; // Monday=0
|
|
173
|
+
return new Date(d.getFullYear(), d.getMonth(), d.getDate() - day);
|
|
174
|
+
}
|
|
175
|
+
export function endOfWeek(d) {
|
|
176
|
+
const start = startOfWeek(d);
|
|
177
|
+
return new Date(start.getFullYear(), start.getMonth(), start.getDate() + 6);
|
|
178
|
+
}
|
|
179
|
+
export function startOfMonth(d) {
|
|
180
|
+
return new Date(d.getFullYear(), d.getMonth(), 1);
|
|
181
|
+
}
|
|
182
|
+
export function endOfMonth(d) {
|
|
183
|
+
return new Date(d.getFullYear(), d.getMonth() + 1, 0);
|
|
184
|
+
}
|
|
185
|
+
export function startOfYear(d) {
|
|
186
|
+
return new Date(d.getFullYear(), 0, 1);
|
|
187
|
+
}
|
|
188
|
+
export function endOfYear(d) {
|
|
189
|
+
return new Date(d.getFullYear(), 11, 31);
|
|
190
|
+
}
|
|
191
|
+
export function addDays(d, n) {
|
|
192
|
+
return new Date(d.getFullYear(), d.getMonth(), d.getDate() + n);
|
|
193
|
+
}
|
|
194
|
+
export function addMonths(d, n) {
|
|
195
|
+
return new Date(d.getFullYear(), d.getMonth() + n, 1);
|
|
196
|
+
}
|
|
197
|
+
export function addYears(d, n) {
|
|
198
|
+
return new Date(d.getFullYear() + n, d.getMonth(), d.getDate());
|
|
199
|
+
}
|
|
200
|
+
export function rangeEquals(a, b) {
|
|
201
|
+
return isSameDay(a.from, b.from) && isSameDay(a.to, b.to);
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=date-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-utils.js","sourceRoot":"","sources":["../../../../src/components/input/date/date-utils.ts"],"names":[],"mappings":"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C,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,CAAO;IAC/B,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,CAAO,EAAE,CAAS;IACxC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,CAAO,EAAE,CAAS;IAC1C,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,CAAO,EAAE,CAAS;IACzC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,CAAY,EAAE,CAAY;IACpD,OAAO,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-types.js","sourceRoot":"","sources":["../../../src/components/input/input-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Input.tsx
|
|
3
|
+
import { useId } from "react";
|
|
4
|
+
import { Icon } from "../../utility-components/icon/icon";
|
|
5
|
+
import styles from "./input.module.css";
|
|
6
|
+
export const Input = ({ error, disabled, size = "default", leadingIcon, trailingIcon, className, children }) => {
|
|
7
|
+
const id = useId();
|
|
8
|
+
const inputClass = {
|
|
9
|
+
fieldWrapper: `${styles["rst-inputField-wrapper"]} ${className || ""}`,
|
|
10
|
+
inputWrapper: `${styles["rst-input-wrapper"]} ${size ? styles[`rst-input-${size}`] : ""} ${error ? styles["rst-input-error"] : ""}`,
|
|
11
|
+
};
|
|
12
|
+
return (_jsx("div", { className: inputClass.fieldWrapper, children: _jsxs("span", { className: inputClass.inputWrapper, children: [leadingIcon && _jsx(Icon, { src: leadingIcon, disabled: disabled }), children({ id, disabled }), trailingIcon && _jsx(Icon, { src: trailingIcon, disabled: disabled })] }) }));
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":";AAAA,YAAY;AACZ,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAGxC,MAAM,CAAC,MAAM,KAAK,GAAyB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IACnI,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IAEnB,MAAM,UAAU,GAAG;QACjB,YAAY,EAAE,GAAG,MAAM,CAAC,wBAAwB,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE;QACtE,YAAY,EAAE,GAAG,MAAM,CAAC,mBAAmB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;KACpI,CAAC;IAEF,OAAO,CACL,cAAK,SAAS,EAAE,UAAU,CAAC,YAAY,YACrC,gBAAM,SAAS,EAAE,UAAU,CAAC,YAAY,aACrC,WAAW,IAAI,KAAC,IAAI,IAAC,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,GAAI,EAC7D,QAAQ,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,EAC1B,YAAY,IAAI,KAAC,IAAI,IAAC,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,GAAI,IAC3D,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-number-types.js","sourceRoot":"","sources":["../../../../src/components/input/number/input-number-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NumberInputProps } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NumberInputProps } from "./input-number-types";
|
|
3
3
|
export declare const NumberInput: React.FC<NumberInputProps>;
|
|
4
4
|
//# sourceMappingURL=input-number.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from "../input.module.css";
|
|
3
|
+
import { Input } from "../input";
|
|
4
|
+
export const NumberInput = (props) => {
|
|
5
|
+
const { value, placeholder, autoFocus, min, max, onBlur, onKeyDown, onChange, error } = props;
|
|
6
|
+
return (_jsx(Input, { ...props, error: error, children: ({ id, disabled }) => (_jsx("input", { id: id, type: "number", value: value ?? "", disabled: disabled, placeholder: placeholder, autoFocus: autoFocus, min: min, max: max, className: styles["rst-input"], onChange: (e) => {
|
|
7
|
+
const parsed = e.target.valueAsNumber;
|
|
8
|
+
onChange(Number.isNaN(parsed) ? undefined : parsed);
|
|
9
|
+
}, onBlur: onBlur, onKeyDown: onKeyDown })) }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=input-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-number.js","sourceRoot":"","sources":["../../../../src/components/input/number/input-number.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAE9F,OAAO,CACL,KAAC,KAAK,OAAK,KAAK,EAAE,KAAK,EAAE,KAAK,YAC3B,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACrB,gBACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,IAAI,EAAE,EAClB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,EAC9B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;gBACtC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YACtD,CAAC,EACD,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,GACpB,CACH,GACK,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-text-types.js","sourceRoot":"","sources":["../../../../src/components/input/text/input-text-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TextInputProps } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TextInputProps } from "./input-text-types";
|
|
3
3
|
export declare const TextInput: React.FC<TextInputProps>;
|
|
4
4
|
//# sourceMappingURL=input-text.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Input } from "../input";
|
|
3
|
+
import styles from "../input.module.css";
|
|
4
|
+
export const TextInput = (props) => {
|
|
5
|
+
const { value, autoFocus, placeholder, error, leadingIcon, trailingIcon, size, onBlur, onKeyDown, onChange, readOnly } = props;
|
|
6
|
+
return (_jsx(Input, { ...props, error: error, leadingIcon: leadingIcon, trailingIcon: trailingIcon, size: size, children: ({ id, disabled }) => (_jsx("input", { id: id, type: "text", value: value, disabled: disabled, autoFocus: autoFocus, placeholder: placeholder, className: styles["rst-input"], onChange: (e) => onChange(e.target.value), onBlur: onBlur, onKeyDown: onKeyDown, readOnly: readOnly })) }));
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=input-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-text.js","sourceRoot":"","sources":["../../../../src/components/input/text/input-text.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE/H,OAAO,CACL,KAAC,KAAK,OAAK,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,YAC7F,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACrB,gBACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,EAC9B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,GAClB,CACH,GACK,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd-types.js","sourceRoot":"","sources":["../../../src/components/kbd/kbd-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./kbd.module.css";
|
|
3
|
+
import Typography from "../typography/typography";
|
|
4
|
+
import { getKeySymbol } from "../../utils/shortcut-utils";
|
|
5
|
+
export const Kbd = ({ children, className, ...props }) => {
|
|
6
|
+
const kbdClasses = [styles["rst-kbd"], className].filter(Boolean).join(" ");
|
|
7
|
+
// Convert the key to platform-specific symbol representation
|
|
8
|
+
const displayKey = typeof children === "string" ? getKeySymbol(children) : children;
|
|
9
|
+
return (_jsx("kbd", { className: kbdClasses, ...props, children: _jsx(Typography, { variant: "caption", children: displayKey }) }));
|
|
10
|
+
};
|
|
11
|
+
export default Kbd;
|
|
12
|
+
//# sourceMappingURL=kbd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.js","sourceRoot":"","sources":["../../../src/components/kbd/kbd.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,CAAC,MAAM,GAAG,GAAuB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3E,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE5E,6DAA6D;IAC7D,MAAM,UAAU,GAAG,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IAEpF,OAAO,CACL,cAAK,SAAS,EAAE,UAAU,KAAM,KAAK,YACnC,KAAC,UAAU,IAAC,OAAO,EAAE,SAAS,YAAG,UAAU,GAAc,GACrD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd-group-types.js","sourceRoot":"","sources":["../../../src/components/kbd-group/kbd-group-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { KbdGroupProps } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { KbdGroupProps } from "./kbd-group-types";
|
|
3
3
|
export declare const KbdGroup: React.FC<KbdGroupProps>;
|
|
4
4
|
export default KbdGroup;
|
|
5
5
|
//# sourceMappingURL=kbd-group.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Kbd } from "../kbd/kbd";
|
|
4
|
+
import styles from "./kbd-group.module.css";
|
|
5
|
+
export const KbdGroup = ({ keys, separator = "+", showSeparator = false, className, ...props }) => {
|
|
6
|
+
const groupClasses = [styles["rst-kbd-group"], showSeparator && styles["rst-kbd-group-combination"], className].filter(Boolean).join(" ");
|
|
7
|
+
const renderSeparator = (index) => {
|
|
8
|
+
if (index === keys.length - 1)
|
|
9
|
+
return null;
|
|
10
|
+
return (_jsx("span", { className: styles["rst-kbd-group-separator"], children: separator }, `sep-${index}`));
|
|
11
|
+
};
|
|
12
|
+
return (_jsx("div", { className: groupClasses, ...props, children: keys.map((key, index) => (_jsxs(React.Fragment, { children: [_jsx(Kbd, { children: key }), showSeparator && renderSeparator(index)] }, index))) }));
|
|
13
|
+
};
|
|
14
|
+
export default KbdGroup;
|
|
15
|
+
//# sourceMappingURL=kbd-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd-group.js","sourceRoot":"","sources":["../../../src/components/kbd-group/kbd-group.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAAE,IAAI,EAAE,SAAS,GAAG,GAAG,EAAE,aAAa,GAAG,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACzH,MAAM,YAAY,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,aAAa,IAAI,MAAM,CAAC,2BAA2B,CAAC,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE1I,MAAM,eAAe,GAAG,CAAC,KAAa,EAAE,EAAE;QACxC,IAAI,KAAK,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAE3C,OAAO,CACL,eAA2B,SAAS,EAAE,MAAM,CAAC,yBAAyB,CAAC,YACpE,SAAS,IADD,OAAO,KAAK,EAAE,CAElB,CACR,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,cAAK,SAAS,EAAE,YAAY,KAAM,KAAK,YACpC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,MAAC,KAAK,CAAC,QAAQ,eACb,KAAC,GAAG,cAAE,GAAG,GAAO,EACf,aAAa,IAAI,eAAe,CAAC,KAAK,CAAC,KAFrB,KAAK,CAGT,CAClB,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-types.js","sourceRoot":"","sources":["../../../src/components/list/list-types.tsx"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ListProps } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ListProps } from "./list-types";
|
|
3
3
|
/**
|
|
4
4
|
* Highlights the part of the `text` that matches the `query` using a <strong> tag.
|
|
5
5
|
*
|
|
@@ -18,8 +18,8 @@ export declare function highlightMatch(text: string, query: string): React.React
|
|
|
18
18
|
* and a flag indicating whether the create item is shown.
|
|
19
19
|
*/
|
|
20
20
|
export declare const getFullOptions: (options: ListProps["options"], filterValue: string) => {
|
|
21
|
-
filteredOptions: import(
|
|
22
|
-
fullOptions: import(
|
|
21
|
+
filteredOptions: import("../..").Option[];
|
|
22
|
+
fullOptions: import("../..").Option[];
|
|
23
23
|
showCreateItem: boolean;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Highlights the part of the `text` that matches the `query` using a <strong> tag.
|
|
4
|
+
*
|
|
5
|
+
* @param text - The original string to search in.
|
|
6
|
+
* @param query - The substring to highlight if found in the text.
|
|
7
|
+
* @returns A React node with the matched part wrapped in <strong>, or the plain text if no match.
|
|
8
|
+
*/
|
|
9
|
+
export function highlightMatch(text, query) {
|
|
10
|
+
if (!query)
|
|
11
|
+
return text;
|
|
12
|
+
const lowerText = text.toLowerCase();
|
|
13
|
+
const lowerQuery = query.toLowerCase();
|
|
14
|
+
const matchIndex = lowerText.indexOf(lowerQuery);
|
|
15
|
+
if (matchIndex === -1)
|
|
16
|
+
return text;
|
|
17
|
+
const before = text.slice(0, matchIndex);
|
|
18
|
+
const match = text.slice(matchIndex, matchIndex + query.length);
|
|
19
|
+
const after = text.slice(matchIndex + query.length);
|
|
20
|
+
return (_jsxs("span", { children: [before, _jsx("strong", { children: match }), after] }));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Filters the provided options based on the filter string, and appends a "create new item" option
|
|
24
|
+
* if the filter does not exactly match any existing option and `onCreate` is provided.
|
|
25
|
+
*
|
|
26
|
+
* @param options - The list of selectable options.
|
|
27
|
+
* @param filterValue - The string used to filter the options.
|
|
28
|
+
* @returns An object containing the filtered options, the final options (possibly including a create item),
|
|
29
|
+
* and a flag indicating whether the create item is shown.
|
|
30
|
+
*/
|
|
31
|
+
export const getFullOptions = (options, filterValue) => {
|
|
32
|
+
const filtered = options.filter((opt) => opt.value.toLowerCase().includes(filterValue.toLowerCase()));
|
|
33
|
+
const hasExactMatch = filtered.some((opt) => opt.value.toLowerCase() === filterValue.toLowerCase());
|
|
34
|
+
const showCreateItem = Boolean(filterValue && !hasExactMatch);
|
|
35
|
+
const full = filtered;
|
|
36
|
+
return {
|
|
37
|
+
filteredOptions: filtered,
|
|
38
|
+
fullOptions: full,
|
|
39
|
+
showCreateItem,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Handles keyboard navigation within a list component, including arrow navigation, selection (Enter),
|
|
44
|
+
* and escape behavior. Also triggers `onClick`, or `onKeyDown` as needed.
|
|
45
|
+
*
|
|
46
|
+
* @param params - An object containing the keyboard event and relevant list control functions and data.
|
|
47
|
+
* @param params.e - The keyboard event.
|
|
48
|
+
* @param params.localSelectedIndex - The current selected index in the list.
|
|
49
|
+
* @param params.setLocalSelectedIndex - Setter to update the selected index.
|
|
50
|
+
* @param params.filteredOptions - The options shown after filtering.
|
|
51
|
+
* @param params.fullOptions - The full list of options (may include "create new" entry).
|
|
52
|
+
* @param params.onClick - Callback when an item is selected.
|
|
53
|
+
* @param params.onKeyDown - Optional additional key down handler.
|
|
54
|
+
*/
|
|
55
|
+
export const handleKeyNavigation = ({ e, localSelectedIndex, setLocalSelectedIndex, filteredOptions, fullOptions, onClick, onKeyDown, }) => {
|
|
56
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
let newIndex = localSelectedIndex;
|
|
59
|
+
if (e.key === "ArrowDown") {
|
|
60
|
+
newIndex = localSelectedIndex < filteredOptions.length - 1 ? localSelectedIndex + 1 : 0;
|
|
61
|
+
}
|
|
62
|
+
else if (e.key === "ArrowUp") {
|
|
63
|
+
newIndex = localSelectedIndex > 0 ? localSelectedIndex - 1 : filteredOptions.length - 1;
|
|
64
|
+
}
|
|
65
|
+
setLocalSelectedIndex(newIndex);
|
|
66
|
+
}
|
|
67
|
+
else if (e.key === "Enter") {
|
|
68
|
+
const item = fullOptions[localSelectedIndex];
|
|
69
|
+
onClick?.(item);
|
|
70
|
+
}
|
|
71
|
+
onKeyDown?.(e);
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=list-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-utils.js","sourceRoot":"","sources":["../../../src/components/list/list-utils.tsx"],"names":[],"mappings":";AAGA;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,IAA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CAAC;AAOzC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAOzC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAyHpC,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState, useMemo } from "react";
|
|
3
|
+
import { Icon } from "../../utility-components/icon/icon";
|
|
4
|
+
import style from "./list.module.css";
|
|
5
|
+
import { getFullOptions, handleKeyNavigation, highlightMatch } from "./list-utils";
|
|
6
|
+
import { TextInput } from "../input/text/input-text";
|
|
7
|
+
import { useFixedVirtualList } from "../../hooks/useFixedVirtualList";
|
|
8
|
+
export const List = ({ id, options, ref: listRef, width, onClick, onKeyDown, multiple = false, selectedIndex = -1, activeIndex = [] }) => {
|
|
9
|
+
const [filterValue, setFilterValue] = useState("");
|
|
10
|
+
const [localSelectedIndex, setLocalSelectedIndex] = useState(selectedIndex);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
setLocalSelectedIndex(selectedIndex);
|
|
13
|
+
}, [selectedIndex]);
|
|
14
|
+
const { filteredOptions, fullOptions } = useMemo(() => getFullOptions(options, filterValue), [options, filterValue]);
|
|
15
|
+
const { virtualItems, containerProps, innerProps, scrollToIndex } = useFixedVirtualList({
|
|
16
|
+
items: filteredOptions,
|
|
17
|
+
itemHeight: 24,
|
|
18
|
+
containerHeight: 200,
|
|
19
|
+
overscan: 5,
|
|
20
|
+
});
|
|
21
|
+
// keep active item visible when external selection changes
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
if (!activeIndex?.length)
|
|
24
|
+
return;
|
|
25
|
+
const firstActiveIndex = filteredOptions.findIndex((o) => o.value === activeIndex[0]);
|
|
26
|
+
if (firstActiveIndex !== -1) {
|
|
27
|
+
scrollToIndex(firstActiveIndex);
|
|
28
|
+
}
|
|
29
|
+
}, [activeIndex, filteredOptions, scrollToIndex]);
|
|
30
|
+
const listClass = {
|
|
31
|
+
wrapper: style["rst-list"],
|
|
32
|
+
input: style["rst-list-input"],
|
|
33
|
+
container: style["rst-list-container"],
|
|
34
|
+
virtualScroll: style["rst-list-virtualScroll"],
|
|
35
|
+
listItem: style["rst-list-listItem"],
|
|
36
|
+
listItemCreate: style["rst-list-listItem-create"],
|
|
37
|
+
noElements: style["rst-list-noElements"],
|
|
38
|
+
};
|
|
39
|
+
return (_jsxs("div", { id: id, ref: listRef, className: listClass.wrapper, "data-component": "list", style: { width }, children: [_jsx("div", { className: listClass.input, children: _jsx(TextInput, { autoFocus: true, value: filterValue, placeholder: "Search...", onChange: (v) => setFilterValue(v ?? ""), onKeyDown: (e) => handleKeyNavigation({
|
|
40
|
+
e,
|
|
41
|
+
localSelectedIndex,
|
|
42
|
+
setLocalSelectedIndex,
|
|
43
|
+
filteredOptions,
|
|
44
|
+
fullOptions,
|
|
45
|
+
onClick,
|
|
46
|
+
onKeyDown,
|
|
47
|
+
}) }) }), _jsx("div", { ...containerProps, className: listClass.container, tabIndex: 0, role: "listbox", "aria-label": "List", "aria-multiselectable": multiple, "aria-activedescendant": filteredOptions[localSelectedIndex]?.value, onKeyDown: (e) => handleKeyNavigation({
|
|
48
|
+
e,
|
|
49
|
+
localSelectedIndex,
|
|
50
|
+
setLocalSelectedIndex,
|
|
51
|
+
filteredOptions,
|
|
52
|
+
fullOptions,
|
|
53
|
+
onClick,
|
|
54
|
+
onKeyDown,
|
|
55
|
+
}), children: _jsx("div", { ...innerProps, className: listClass.virtualScroll, children: filteredOptions.length === 0 ? (_jsx("div", { className: listClass.noElements, children: "No elements" })) : (virtualItems.map(({ item, index, offsetTop }) => {
|
|
56
|
+
const isActive = activeIndex.includes(item.value);
|
|
57
|
+
const isSelected = localSelectedIndex === index;
|
|
58
|
+
return (_jsxs("li", { role: "option", id: item.value, "aria-selected": isSelected, tabIndex: -1, className: `${listClass.listItem} ${isActive ? "selected-item" : ""}`, "aria-label": item.value, style: {
|
|
59
|
+
height: 24,
|
|
60
|
+
lineHeight: "20px",
|
|
61
|
+
transform: `translateY(${offsetTop}px)`,
|
|
62
|
+
}, onClick: () => {
|
|
63
|
+
onClick?.(item);
|
|
64
|
+
setLocalSelectedIndex(index);
|
|
65
|
+
}, children: [_jsxs("span", { className: listClass.listItemCreate, children: [item.leadingVisual && _jsx(Icon, { src: item.leadingVisual }), highlightMatch(item.value, filterValue)] }), isActive && _jsx(Icon, { src: "check" })] }, item.value));
|
|
66
|
+
})) }) })] }));
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,GAAG,KAAK,EAAE,aAAa,GAAG,CAAC,CAAC,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,EAAE;IAC5J,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,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