@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 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-toolbar.js","source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,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,gBAC3B,cAAc,EACzB,KAAK,EAAC,+CAA+C,wBAG9C,EACT,KAAC,MAAM,IACL,OAAO,EAAE,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAC7C,IAAI,EAAC,OAAO,EACZ,aAAa,EAAC,MAAM,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,gBACxB,WAAW,EACtB,KAAK,EAAC,4BAA4B,qBAG3B,EAGT,cAAK,SAAS,EAAE,MAAM,CAAC,8BAA8B,CAAC,GAAI,EAE1D,KAAC,MAAM,IACL,OAAO,EAAC,MAAM,EACd,IAAI,EAAC,OAAO,EACZ,aAAa,EAAC,YAAY,EAC1B,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,IAAI,IAAI,OAAO,gBACd,UAAU,EACrB,KAAK,EAAC,UAAU,GAChB,EACF,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,eAAe,gBAAa,YAAY,EAAC,KAAK,EAAC,oBAAoB,EAAC,KAAK,EAAE,GAAG,cAAc,GAAG,GAAI,EAChJ,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,aAAa,EAAC,WAAW,EAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,IAAI,OAAO,gBAAa,SAAS,EAAC,KAAK,EAAC,SAAS,GAAG,IACnJ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validates the structure of a workflow
|
|
3
|
+
*/
|
|
4
|
+
export function validateWorkflow(nodes, edges) {
|
|
5
|
+
const errors = [];
|
|
6
|
+
const warnings = [];
|
|
7
|
+
// Create node map for quick lookup
|
|
8
|
+
const nodeMap = new Map(nodes.map(node => [node.id, node]));
|
|
9
|
+
// Validate nodes exist
|
|
10
|
+
validateNodesExist(nodes, edges, nodeMap, errors);
|
|
11
|
+
// Validate start and end nodes
|
|
12
|
+
validateStartEndNodes(nodes, edges, errors, warnings);
|
|
13
|
+
// Validate orphaned nodes
|
|
14
|
+
validateOrphanedNodes(nodes, edges, warnings);
|
|
15
|
+
// Validate circular dependencies
|
|
16
|
+
validateCircularDependencies(nodes, edges, errors);
|
|
17
|
+
// Validate conditional edges
|
|
18
|
+
validateConditionalEdges(edges, warnings);
|
|
19
|
+
// Validate duplicate edges
|
|
20
|
+
validateDuplicateEdges(edges, warnings);
|
|
21
|
+
return {
|
|
22
|
+
valid: errors.length === 0,
|
|
23
|
+
errors,
|
|
24
|
+
warnings,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Validates that all edges reference existing nodes
|
|
29
|
+
*/
|
|
30
|
+
function validateNodesExist(nodes, edges, nodeMap, errors) {
|
|
31
|
+
for (const edge of edges) {
|
|
32
|
+
if (!nodeMap.has(edge.source)) {
|
|
33
|
+
errors.push({
|
|
34
|
+
type: 'invalid-edge',
|
|
35
|
+
message: `Edge ${edge.id} references non-existent source node: ${edge.source}`,
|
|
36
|
+
relatedIds: [edge.id, edge.source],
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
if (!nodeMap.has(edge.target)) {
|
|
40
|
+
errors.push({
|
|
41
|
+
type: 'invalid-edge',
|
|
42
|
+
message: `Edge ${edge.id} references non-existent target node: ${edge.target}`,
|
|
43
|
+
relatedIds: [edge.id, edge.target],
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Validates start and end nodes
|
|
50
|
+
*/
|
|
51
|
+
function validateStartEndNodes(nodes, edges, errors, warnings) {
|
|
52
|
+
const startNodes = nodes.filter(node => node.nodeType === 'start');
|
|
53
|
+
const endNodes = nodes.filter(node => node.nodeType === 'end');
|
|
54
|
+
// Check for start nodes
|
|
55
|
+
if (startNodes.length === 0) {
|
|
56
|
+
// Check if there are nodes with no incoming edges (implicit start)
|
|
57
|
+
const nodesWithIncoming = new Set(edges.map(e => e.target));
|
|
58
|
+
const implicitStarts = nodes.filter(node => !nodesWithIncoming.has(node.id));
|
|
59
|
+
if (implicitStarts.length === 0) {
|
|
60
|
+
errors.push({
|
|
61
|
+
type: 'missing-start',
|
|
62
|
+
message: 'Workflow must have at least one start node or a node with no incoming edges',
|
|
63
|
+
relatedIds: [],
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else if (startNodes.length > 1) {
|
|
68
|
+
warnings.push({
|
|
69
|
+
type: 'unreachable-node',
|
|
70
|
+
message: `Workflow has multiple start nodes (${startNodes.length}). This may be intentional for parallel execution.`,
|
|
71
|
+
relatedIds: startNodes.map(n => n.id),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
// Check for end nodes
|
|
75
|
+
if (endNodes.length === 0) {
|
|
76
|
+
// Check if there are nodes with no outgoing edges (implicit end)
|
|
77
|
+
const nodesWithOutgoing = new Set(edges.map(e => e.source));
|
|
78
|
+
const implicitEnds = nodes.filter(node => !nodesWithOutgoing.has(node.id));
|
|
79
|
+
if (implicitEnds.length === 0) {
|
|
80
|
+
warnings.push({
|
|
81
|
+
type: 'dead-end',
|
|
82
|
+
message: 'Workflow should have at least one end node or a node with no outgoing edges',
|
|
83
|
+
relatedIds: [],
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Validates orphaned nodes (nodes with no connections)
|
|
90
|
+
*/
|
|
91
|
+
function validateOrphanedNodes(nodes, edges, warnings) {
|
|
92
|
+
const connectedNodes = new Set();
|
|
93
|
+
for (const edge of edges) {
|
|
94
|
+
connectedNodes.add(edge.source);
|
|
95
|
+
connectedNodes.add(edge.target);
|
|
96
|
+
}
|
|
97
|
+
const orphanedNodes = nodes.filter(node => !connectedNodes.has(node.id));
|
|
98
|
+
if (orphanedNodes.length > 0) {
|
|
99
|
+
warnings.push({
|
|
100
|
+
type: 'orphaned-node',
|
|
101
|
+
message: `Found ${orphanedNodes.length} orphaned node(s) with no connections`,
|
|
102
|
+
relatedIds: orphanedNodes.map(node => node.id),
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Validates circular dependencies using DFS
|
|
108
|
+
*/
|
|
109
|
+
function validateCircularDependencies(nodes, edges, errors) {
|
|
110
|
+
// Build adjacency list
|
|
111
|
+
const adjacencyList = new Map();
|
|
112
|
+
for (const node of nodes) {
|
|
113
|
+
adjacencyList.set(node.id, []);
|
|
114
|
+
}
|
|
115
|
+
for (const edge of edges) {
|
|
116
|
+
const neighbors = adjacencyList.get(edge.source) || [];
|
|
117
|
+
neighbors.push(edge.target);
|
|
118
|
+
adjacencyList.set(edge.source, neighbors);
|
|
119
|
+
}
|
|
120
|
+
// DFS to detect cycles
|
|
121
|
+
const visited = new Set();
|
|
122
|
+
const recursionStack = new Set();
|
|
123
|
+
const cycles = [];
|
|
124
|
+
function dfs(nodeId, path) {
|
|
125
|
+
visited.add(nodeId);
|
|
126
|
+
recursionStack.add(nodeId);
|
|
127
|
+
path.push(nodeId);
|
|
128
|
+
const neighbors = adjacencyList.get(nodeId) || [];
|
|
129
|
+
for (const neighbor of neighbors) {
|
|
130
|
+
if (!visited.has(neighbor)) {
|
|
131
|
+
dfs(neighbor, [...path]);
|
|
132
|
+
}
|
|
133
|
+
else if (recursionStack.has(neighbor)) {
|
|
134
|
+
// Found a cycle
|
|
135
|
+
const cycleStart = path.indexOf(neighbor);
|
|
136
|
+
const cycle = path.slice(cycleStart);
|
|
137
|
+
cycle.push(neighbor);
|
|
138
|
+
cycles.push(cycle);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
recursionStack.delete(nodeId);
|
|
142
|
+
}
|
|
143
|
+
for (const node of nodes) {
|
|
144
|
+
if (!visited.has(node.id)) {
|
|
145
|
+
dfs(node.id, []);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
// Report cycles
|
|
149
|
+
for (const cycle of cycles) {
|
|
150
|
+
errors.push({
|
|
151
|
+
type: 'circular-dependency',
|
|
152
|
+
message: `Circular dependency detected: ${cycle.join(' → ')}`,
|
|
153
|
+
relatedIds: cycle,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Validates conditional edges have conditions
|
|
159
|
+
*/
|
|
160
|
+
function validateConditionalEdges(edges, warnings) {
|
|
161
|
+
const conditionalWithoutCondition = edges.filter(edge => edge.type === 'conditional' && !edge.condition);
|
|
162
|
+
if (conditionalWithoutCondition.length > 0) {
|
|
163
|
+
warnings.push({
|
|
164
|
+
type: 'missing-condition',
|
|
165
|
+
message: `${conditionalWithoutCondition.length} conditional edge(s) are missing condition logic`,
|
|
166
|
+
relatedIds: conditionalWithoutCondition.map(edge => edge.id),
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Validates duplicate edges between same nodes
|
|
172
|
+
*/
|
|
173
|
+
function validateDuplicateEdges(edges, warnings) {
|
|
174
|
+
const edgeMap = new Map();
|
|
175
|
+
for (const edge of edges) {
|
|
176
|
+
const key = `${edge.source}->${edge.target}`;
|
|
177
|
+
const existing = edgeMap.get(key) || [];
|
|
178
|
+
existing.push(edge.id);
|
|
179
|
+
edgeMap.set(key, existing);
|
|
180
|
+
}
|
|
181
|
+
for (const [key, edgeIds] of edgeMap.entries()) {
|
|
182
|
+
if (edgeIds.length > 1) {
|
|
183
|
+
warnings.push({
|
|
184
|
+
type: 'duplicate-edge',
|
|
185
|
+
message: `Multiple edges between same nodes: ${key}`,
|
|
186
|
+
relatedIds: edgeIds,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Gets all reachable nodes from a start node
|
|
193
|
+
*/
|
|
194
|
+
export function getReachableNodes(startNodeId, edges) {
|
|
195
|
+
const reachable = new Set();
|
|
196
|
+
const queue = [startNodeId];
|
|
197
|
+
while (queue.length > 0) {
|
|
198
|
+
const current = queue.shift();
|
|
199
|
+
if (reachable.has(current)) {
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
reachable.add(current);
|
|
203
|
+
// Add all targets of edges from current node
|
|
204
|
+
const outgoingEdges = edges.filter(edge => edge.source === current);
|
|
205
|
+
for (const edge of outgoingEdges) {
|
|
206
|
+
if (!reachable.has(edge.target)) {
|
|
207
|
+
queue.push(edge.target);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return reachable;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Gets topological order of nodes (for execution planning)
|
|
215
|
+
*/
|
|
216
|
+
export function getTopologicalOrder(nodes, edges) {
|
|
217
|
+
// Build adjacency list and in-degree map
|
|
218
|
+
const adjacencyList = new Map();
|
|
219
|
+
const inDegree = new Map();
|
|
220
|
+
for (const node of nodes) {
|
|
221
|
+
adjacencyList.set(node.id, []);
|
|
222
|
+
inDegree.set(node.id, 0);
|
|
223
|
+
}
|
|
224
|
+
for (const edge of edges) {
|
|
225
|
+
const neighbors = adjacencyList.get(edge.source) || [];
|
|
226
|
+
neighbors.push(edge.target);
|
|
227
|
+
adjacencyList.set(edge.source, neighbors);
|
|
228
|
+
inDegree.set(edge.target, (inDegree.get(edge.target) || 0) + 1);
|
|
229
|
+
}
|
|
230
|
+
// Kahn's algorithm
|
|
231
|
+
const queue = [];
|
|
232
|
+
const result = [];
|
|
233
|
+
// Start with nodes that have no incoming edges
|
|
234
|
+
for (const [nodeId, degree] of inDegree.entries()) {
|
|
235
|
+
if (degree === 0) {
|
|
236
|
+
queue.push(nodeId);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
while (queue.length > 0) {
|
|
240
|
+
const current = queue.shift();
|
|
241
|
+
result.push(current);
|
|
242
|
+
const neighbors = adjacencyList.get(current) || [];
|
|
243
|
+
for (const neighbor of neighbors) {
|
|
244
|
+
const newDegree = (inDegree.get(neighbor) || 0) - 1;
|
|
245
|
+
inDegree.set(neighbor, newDegree);
|
|
246
|
+
if (newDegree === 0) {
|
|
247
|
+
queue.push(neighbor);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
// If result doesn't include all nodes, there's a cycle
|
|
252
|
+
if (result.length !== nodes.length) {
|
|
253
|
+
return null; // Cycle detected
|
|
254
|
+
}
|
|
255
|
+
return result;
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=workflow-validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-validation.js","sourceRoot":"","sources":["../../../../src/custom-components/workflow/utils/workflow-validation.ts"],"names":[],"mappings":"AA6CA;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAC9B,KAA4B,EAC5B,KAAqB;IAErB,MAAM,MAAM,GAAsB,EAAE,CAAC;IACrC,MAAM,QAAQ,GAAwB,EAAE,CAAC;IAEzC,mCAAmC;IACnC,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAE5D,uBAAuB;IACvB,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAElD,+BAA+B;IAC/B,qBAAqB,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IAEtD,0BAA0B;IAC1B,qBAAqB,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAE9C,iCAAiC;IACjC,4BAA4B,CAAC,KAAK,EAAE,KAAK,EAAE,M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,EAAE,CAAC;QAClD,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;YACjB,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,EAAG,CAAC;QAC/B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAErB,MAAM,SAAS,GAAG,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACnD,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YACjC,MAAM,SAAS,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;YACpD,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;YAElC,IAAI,SAAS,KAAK,CAAC,EAAE,CAAC;gBACpB,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC;IAED,uDAAuD;IACvD,IAAI,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC,CAAC,iBAAiB;IAChC,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataStructureColumn } from
|
|
2
|
-
import { FormColumn } from
|
|
3
|
-
import { WorkflowEdge, WorkflowLayout } from
|
|
1
|
+
import { DataStructureColumn } from "../../data-components/data-structure/data-structure";
|
|
2
|
+
import { FormColumn } from "../../data-components/form/form-types";
|
|
3
|
+
import { WorkflowEdge, WorkflowLayout } from "./layout/workflow-layout-types";
|
|
4
4
|
/**
|
|
5
5
|
* Type of workflow node
|
|
6
6
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-types.js","sourceRoot":"","sources":["../../../src/custom-components/workflow/workflow-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useState, useRef } from "react";
|
|
3
|
+
import { WorkflowNode as WorkflowNodeComponent } from "./node/workflow-node";
|
|
4
|
+
import { WorkflowEdge } from "./layout/workflow-edge";
|
|
5
|
+
import { WorkflowToolbar } from "./toolbar/workflow-toolbar";
|
|
6
|
+
import { WorkflowPanel } from "./panel/workflow-panel";
|
|
7
|
+
import { positionNodes, calculateWorkflowDimensions, DEFAULT_LAYOUT } from "./layout/workflow-layout";
|
|
8
|
+
import styles from "./workflow.module.css";
|
|
9
|
+
/**
|
|
10
|
+
* Workflow component for rendering Directed Acyclic Graphs (DAGs)
|
|
11
|
+
*/
|
|
12
|
+
export function Workflow({ nodes, edges, layout: layoutConfig, showToolbar = true, showPanel = true, defaultZoom = 1, minZoom = 0.1, maxZoom = 2, onNodeClick, onEdgeClick, onNodeCreate, onNodeConnect, className, ...props }) {
|
|
13
|
+
const [mode, setMode] = useState("pointer");
|
|
14
|
+
const [zoom, setZoom] = useState(defaultZoom);
|
|
15
|
+
const [pan, setPan] = useState({ x: 0, y: 0 });
|
|
16
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
17
|
+
const [dragStart, setDragStart] = useState({ x: 0, y: 0 });
|
|
18
|
+
const [selectedNode, setSelectedNode] = useState(null);
|
|
19
|
+
const containerRef = useRef(null);
|
|
20
|
+
// Merge layout configuration with defaults
|
|
21
|
+
const layout = useMemo(() => ({ ...DEFAULT_LAYOUT, ...layoutConfig }), [layoutConfig]);
|
|
22
|
+
// Calculate node positions
|
|
23
|
+
const positionedNodes = useMemo(() => positionNodes(nodes, edges, layout), [nodes, edges, layout]);
|
|
24
|
+
// Calculate workflow dimensions
|
|
25
|
+
const { width, height } = useMemo(() => calculateWorkflowDimensions(positionedNodes, layout), [positionedNodes, layout]);
|
|
26
|
+
// Create a map for quick node lookup
|
|
27
|
+
const nodeMap = useMemo(() => {
|
|
28
|
+
const map = new Map();
|
|
29
|
+
positionedNodes.forEach((node) => {
|
|
30
|
+
map.set(node.id, node);
|
|
31
|
+
});
|
|
32
|
+
return map;
|
|
33
|
+
}, [positionedNodes]);
|
|
34
|
+
// Check if selected node has output connections
|
|
35
|
+
const selectedNodeHasOutputs = useMemo(() => {
|
|
36
|
+
if (!selectedNode)
|
|
37
|
+
return false;
|
|
38
|
+
return edges.some((edge) => edge.source === selectedNode.id);
|
|
39
|
+
}, [selectedNode, edges]);
|
|
40
|
+
// Handle node click
|
|
41
|
+
const handleNodeClick = (node) => {
|
|
42
|
+
setSelectedNode(node);
|
|
43
|
+
if (onNodeClick) {
|
|
44
|
+
onNodeClick(node);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
// Handle panel close
|
|
48
|
+
const handlePanelClose = () => {
|
|
49
|
+
setSelectedNode(null);
|
|
50
|
+
};
|
|
51
|
+
// Handle create node
|
|
52
|
+
const handleCreateNode = (sourceNodeId) => {
|
|
53
|
+
if (onNodeCreate) {
|
|
54
|
+
onNodeCreate(sourceNodeId);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
// Handle connect node
|
|
58
|
+
const handleConnectNode = (sourceNodeId, targetNodeId) => {
|
|
59
|
+
if (onNodeConnect) {
|
|
60
|
+
onNodeConnect(sourceNodeId, targetNodeId);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
// Handle mouse down for dragging
|
|
64
|
+
const handleMouseDown = (e) => {
|
|
65
|
+
if (mode === "drag") {
|
|
66
|
+
setIsDragging(true);
|
|
67
|
+
setDragStart({ x: e.clientX - pan.x, y: e.clientY - pan.y });
|
|
68
|
+
if (containerRef.current) {
|
|
69
|
+
containerRef.current.style.cursor = "grabbing";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
// Handle mouse move for dragging
|
|
74
|
+
const handleMouseMove = (e) => {
|
|
75
|
+
if (isDragging && mode === "drag") {
|
|
76
|
+
setPan({
|
|
77
|
+
x: e.clientX - dragStart.x,
|
|
78
|
+
y: e.clientY - dragStart.y,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
// Handle mouse up for dragging
|
|
83
|
+
const handleMouseUp = () => {
|
|
84
|
+
if (isDragging) {
|
|
85
|
+
setIsDragging(false);
|
|
86
|
+
if (containerRef.current) {
|
|
87
|
+
containerRef.current.style.cursor = mode === "drag" ? "grab" : "default";
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
// Handle mouse leave
|
|
92
|
+
const handleMouseLeave = () => {
|
|
93
|
+
if (isDragging) {
|
|
94
|
+
setIsDragging(false);
|
|
95
|
+
if (containerRef.current) {
|
|
96
|
+
containerRef.current.style.cursor = mode === "drag" ? "grab" : "default";
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
// Handle wheel for zooming
|
|
101
|
+
//FIXME: Unable to preventDefault inside passive event listener invocation.
|
|
102
|
+
const handleWheel = (e) => {
|
|
103
|
+
if (e.ctrlKey || e.metaKey) {
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
const delta = e.deltaY > 0 ? -0.1 : 0.1;
|
|
106
|
+
const newZoom = Math.max(minZoom, Math.min(maxZoom, zoom + delta));
|
|
107
|
+
setZoom(Number(newZoom.toFixed(1)));
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
// Update cursor based on mode
|
|
111
|
+
const cursor = mode === "drag" ? (isDragging ? "grabbing" : "grab") : "default";
|
|
112
|
+
return (_jsxs("div", { ref: containerRef, className: [styles["rst-workflow"], className].filter(Boolean).join(" "), onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onMouseLeave: handleMouseLeave, onWheel: handleWheel, style: { cursor }, ...props, children: [showToolbar && _jsx(WorkflowToolbar, { mode: mode, onModeChange: setMode, zoom: zoom, onZoomChange: setZoom, minZoom: minZoom, maxZoom: maxZoom }), _jsxs("div", { className: styles["rst-workflow-viewport"], style: {
|
|
113
|
+
transform: `translate(${pan.x}px, ${pan.y}px) scale(${zoom})`,
|
|
114
|
+
transformOrigin: "0 0",
|
|
115
|
+
}, children: [_jsxs("svg", { className: styles["rst-workflow-svg"], width: width, height: height, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("defs", { children: _jsx("marker", { id: "arrowhead", markerWidth: "10", markerHeight: "10", refX: "9", refY: "3", orient: "auto", markerUnits: "strokeWidth", children: _jsx("path", { d: "M0,0 L0,6 L9,3 z", className: styles["rst-workflow-arrow"] }) }) }), _jsx("g", { className: styles["rst-workflow-edges"], children: edges.map((edge) => {
|
|
116
|
+
const sourceNode = nodeMap.get(edge.source);
|
|
117
|
+
const targetNode = nodeMap.get(edge.target);
|
|
118
|
+
if (!sourceNode || !targetNode) {
|
|
119
|
+
console.warn(`Edge ${edge.id} references non-existent node(s): source=${edge.source}, target=${edge.target}`);
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
return _jsx(WorkflowEdge, { edge: edge, sourceNode: sourceNode, targetNode: targetNode, layout: layout, onClick: onEdgeClick }, edge.id);
|
|
123
|
+
}) })] }), _jsx("div", { className: styles["rst-workflow-nodes"], style: { width: `${width}px`, height: `${height}px` }, children: positionedNodes.map((node) => (_jsx(WorkflowNodeComponent, { node: node, onClick: handleNodeClick }, node.id))) })] }), showPanel && selectedNode && (_jsx(WorkflowPanel, { selectedNode: selectedNode, allNodes: nodes, hasOutputs: selectedNodeHasOutputs, onCreateNode: handleCreateNode, onConnectNode: handleConnectNode, onClose: handlePanelClose }))] }));
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/custom-components/workflow/workflow.tsx"],"names":[],"mappings":";A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,CAAC,GACE,IACF,EAGL,SAAS,IAAI,YAAY,IAAI,CAC5B,KAAC,aAAa,IACZ,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,KAAK,EACf,UAAU,EAAE,sBAAsB,EAClC,YAAY,EAAE,gBAAgB,EAC9B,aAAa,EAAE,iBAAiB,EAChC,OAAO,EAAE,gBAAgB,GACzB,CACH,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-components-asset.js","sourceRoot":"","sources":["../../../src/data-components/assets/data-components-asset.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataStructureComponent, DataStructureColumn } from
|
|
1
|
+
import { DataStructureComponent, DataStructureColumn } from "../data-structure/data-structure";
|
|
2
2
|
export interface CalendarProps<TData> extends DataStructureComponent<TData> {
|
|
3
3
|
/** Column id or accessorKey for the date column (must resolve to a Date or ISO string) */
|
|
4
4
|
dateColumnId: string | keyof TData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-types.js","sourceRoot":"","sources":["../../../src/data-components/calendar/calendar-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-utils.js","sourceRoot":"","sources":["../../../src/data-components/calendar/calendar-utils.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarProps } from
|
|
1
|
+
import { CalendarProps } from "./calendar-types";
|
|
2
2
|
export declare function Calendar<TData>({ data, columns, dateColumnId, eventColumnId, initialMonth }: CalendarProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Calendar;
|
|
4
4
|
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useMemo } from "react";
|
|
3
|
+
import styles from "./calendar.module.css";
|
|
4
|
+
import { generateColumnsFromSchema } from "../data-structure/data-structure-utils";
|
|
5
|
+
function toDate(value) {
|
|
6
|
+
if (!value)
|
|
7
|
+
return null;
|
|
8
|
+
if (value instanceof Date)
|
|
9
|
+
return value;
|
|
10
|
+
if (typeof value === "string" || typeof value === "number") {
|
|
11
|
+
const d = new Date(value);
|
|
12
|
+
return isNaN(d.getTime()) ? null : d;
|
|
13
|
+
}
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
function startOfMonth(d) {
|
|
17
|
+
return new Date(d.getFullYear(), d.getMonth(), 1);
|
|
18
|
+
}
|
|
19
|
+
function addDays(d, days) {
|
|
20
|
+
const r = new Date(d);
|
|
21
|
+
r.setDate(r.getDate() + days);
|
|
22
|
+
return r;
|
|
23
|
+
}
|
|
24
|
+
export function Calendar({ data, columns, dateColumnId, eventColumnId, initialMonth }) {
|
|
25
|
+
// Generate columns from schema if not provided
|
|
26
|
+
const schema = data[0] ? Object.keys(data[0]) : [];
|
|
27
|
+
const formColumns = columns || generateColumnsFromSchema(schema);
|
|
28
|
+
const monthStart = useMemo(() => startOfMonth(initialMonth || new Date()), [initialMonth]);
|
|
29
|
+
// helpers to resolve column value by column definition
|
|
30
|
+
const resolveValue = useCallback((row, colId) => {
|
|
31
|
+
// try to find a column with id === colId
|
|
32
|
+
const col = formColumns.find((c) => c.id === String(colId) || c.accessorKey === colId);
|
|
33
|
+
if (!col)
|
|
34
|
+
return row[colId];
|
|
35
|
+
if (col.accessorFn)
|
|
36
|
+
return col.accessorFn(row);
|
|
37
|
+
if (col.accessorKey)
|
|
38
|
+
return row[col.accessorKey];
|
|
39
|
+
return row[col.id] ?? row[colId];
|
|
40
|
+
}, [formColumns]);
|
|
41
|
+
// group events by date
|
|
42
|
+
const eventsByDate = useMemo(() => {
|
|
43
|
+
const map = new Map();
|
|
44
|
+
data.forEach((row) => {
|
|
45
|
+
const raw = resolveValue(row, dateColumnId);
|
|
46
|
+
const d = toDate(raw);
|
|
47
|
+
if (!d)
|
|
48
|
+
return;
|
|
49
|
+
const key = d.toISOString().slice(0, 10);
|
|
50
|
+
if (!map.has(key))
|
|
51
|
+
map.set(key, []);
|
|
52
|
+
map.get(key).push(row);
|
|
53
|
+
});
|
|
54
|
+
return map;
|
|
55
|
+
}, [data, resolveValue, dateColumnId]);
|
|
56
|
+
// build calendar grid days (start from sunday)
|
|
57
|
+
const start = useMemo(() => {
|
|
58
|
+
const s = startOfMonth(monthStart);
|
|
59
|
+
const day = s.getDay();
|
|
60
|
+
return addDays(s, -day);
|
|
61
|
+
}, [monthStart]);
|
|
62
|
+
const cells = [];
|
|
63
|
+
for (let i = 0; i < 42; i++) {
|
|
64
|
+
cells.push(addDays(start, i));
|
|
65
|
+
}
|
|
66
|
+
return (_jsxs("div", { className: styles["rst-calendar"], children: [_jsx("div", { style: { marginBottom: 8, fontWeight: 700 }, children: monthStart.toLocaleString(undefined, { month: "long", year: "numeric" }) }), _jsx("div", { className: styles["rst-calendar-grid"], children: cells.map((d) => {
|
|
67
|
+
const key = d.toISOString().slice(0, 10);
|
|
68
|
+
const events = eventsByDate.get(key) ?? [];
|
|
69
|
+
const otherMonth = d.getMonth() !== monthStart.getMonth();
|
|
70
|
+
return (_jsxs("div", { className: styles["rst-calendar-cell"] + (otherMonth ? " " + styles["rst-calendar-cell--otherMonth"] : ""), children: [_jsx("div", { className: styles["rst-calendar-date"], children: d.getDate() }), _jsx("div", { children: events.map((row, i) => {
|
|
71
|
+
const titleRaw = resolveValue(row, eventColumnId);
|
|
72
|
+
const title = typeof titleRaw === "string" || typeof titleRaw === "number" ? String(titleRaw) : JSON.stringify(titleRaw);
|
|
73
|
+
return (_jsx("div", { className: styles["rst-calendar-event"], title: title, children: title }, i));
|
|
74
|
+
}) })] }, key));
|
|
75
|
+
}) })] }));
|
|
76
|
+
}
|
|
77
|
+
export default Calendar;
|
|
78
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../src/data-components/calendar/calendar.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAGnF,SAAS,MAAM,CAAC,KAAc;IAC5B,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,IAAI,KAAK,YAAY,IAAI;QAAE,OAAO,KAAK,CAAC;IACxC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC3D,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,OAAO,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,YAAY,CAAC,CAAO;IAC3B,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,OAAO,CAAC,CAAO,EAAE,IAAY;IACpC,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IAC9B,OAAO,CAAC,CAAC;AACX,CAAC;AAED,MAAM,UAAU,QAAQ,CAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE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;AACJ,CAAC;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataStructureColumn } from
|
|
1
|
+
import { DataStructureColumn } from "../data-structure/data-structure";
|
|
2
2
|
/**
|
|
3
3
|
* Renders the appropriate editor component based on value type and column configuration
|
|
4
4
|
* @param value - Current draft value
|