@restio/ui 0.0.9-SNAPSHOT → 0.0.11-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/assets/svg/alert.svg +1 -0
- package/dist/assets/svg/arrow-down-up.svg +1 -0
- package/dist/assets/svg/arrow-down.svg +1 -0
- package/dist/assets/svg/arrow-left.svg +1 -0
- package/dist/assets/svg/arrow-right.svg +1 -0
- package/dist/assets/svg/arrow-up.svg +1 -0
- package/dist/assets/svg/arrow_drop_down.svg +1 -0
- package/dist/assets/svg/calendar.svg +1 -0
- package/dist/assets/svg/check.svg +1 -0
- package/dist/assets/svg/chevron-down.svg +1 -0
- package/dist/assets/svg/chevron-right.svg +1 -0
- package/dist/assets/svg/clipboard.svg +1 -0
- package/dist/assets/svg/close.svg +1 -0
- package/dist/assets/svg/copy.svg +1 -0
- package/dist/assets/svg/cursor.svg +1 -0
- package/dist/assets/svg/cut.svg +1 -0
- package/dist/assets/svg/delete.svg +1 -0
- package/dist/assets/svg/discussion.svg +1 -0
- package/dist/assets/svg/dock-left-arrow.svg +1 -0
- package/dist/assets/svg/dock-right-arrow.svg +1 -0
- package/dist/assets/svg/document-outline.svg +1 -0
- package/dist/assets/svg/download.svg +1 -0
- package/dist/assets/svg/drag.svg +1 -0
- package/dist/assets/svg/error.svg +1 -0
- package/dist/assets/svg/expand-right.svg +1 -0
- package/dist/assets/svg/expand.svg +1 -0
- package/dist/assets/svg/eye.svg +1 -0
- package/dist/assets/svg/fullscreen.svg +1 -0
- package/dist/assets/svg/gear.svg +1 -0
- package/dist/assets/svg/groups.svg +1 -0
- package/dist/assets/svg/help.svg +1 -0
- package/dist/assets/svg/info.svg +1 -0
- package/dist/assets/svg/logo.svg +9 -0
- package/dist/assets/svg/menu.svg +1 -0
- package/dist/assets/svg/message-bubble-question-mark.svg +1 -0
- package/dist/assets/svg/pencil.svg +1 -0
- package/dist/assets/svg/plus.svg +1 -0
- package/dist/assets/svg/restio.svg +5 -0
- package/dist/assets/svg/search.svg +1 -0
- package/dist/assets/svg/send.svg +1 -0
- package/dist/assets/svg/shrink-right.svg +1 -0
- package/dist/assets/svg/sidebar.svg +1 -0
- package/dist/assets/svg/terminal.svg +1 -0
- package/dist/assets/svg/timer.svg +1 -0
- package/dist/assets/svg/warning.svg +1 -0
- package/dist/assets/svg/zoom-minus.svg +1 -0
- package/dist/assets/svg/zoom-plus.svg +1 -0
- package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +1 -1
- package/dist/components/anchored-overlay/anchored-overlay.d.ts +2 -2
- package/dist/components/banner/banner-types.d.ts +1 -1
- package/dist/components/banner/banner.d.ts +2 -2
- package/dist/components/button/button-types.d.ts +1 -1
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button-group/button-group.d.ts +2 -2
- package/dist/components/checkbox/checkbox-types.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/code-block/code-block.d.ts +1 -1
- package/dist/components/file-upload/file-upload-types.d.ts +1 -1
- package/dist/components/file-upload/file-upload.d.ts +2 -2
- package/dist/components/graph/graph.d.ts +1 -1
- package/dist/components/input/date/date-calendar.d.ts +2 -2
- package/dist/components/input/date/date-input-field.d.ts +2 -2
- package/dist/components/input/date/date-picker.d.ts +2 -2
- package/dist/components/input/date/date-range-input-field.d.ts +2 -2
- package/dist/components/input/date/date-range-picker.d.ts +2 -2
- package/dist/components/input/date/date-shortcuts.d.ts +2 -2
- package/dist/components/input/date/date-types.d.ts +1 -1
- package/dist/components/input/date/date-utils.d.ts +1 -1
- package/dist/components/input/input.d.ts +2 -2
- package/dist/components/input/number/input-number-types.d.ts +1 -1
- package/dist/components/input/number/input-number.d.ts +2 -2
- package/dist/components/input/text/input-text-types.d.ts +1 -1
- package/dist/components/input/text/input-text.d.ts +2 -2
- package/dist/components/kbd/kbd.d.ts +2 -2
- package/dist/components/kbd-group/kbd-group.d.ts +2 -2
- package/dist/components/list/list-types.d.ts +1 -1
- package/dist/components/list/list-utils.d.ts +4 -4
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/menu/anchored-navigation-menu.d.ts +3 -3
- package/dist/components/menu/menu-assets.d.ts +1 -1
- package/dist/components/menu/menu-types.d.ts +2 -2
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/otp/otp.d.ts +2 -3
- package/dist/components/select/select-types.d.ts +1 -1
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/tag/tag-types.d.ts +1 -1
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/textarea/textarea-types.d.ts +2 -2
- package/dist/components/textarea/textarea.d.ts +2 -2
- package/dist/components/toast-group/toast-group-types.d.ts +1 -1
- package/dist/components/toast-group/toast-group.d.ts +2 -2
- package/dist/components/typography/typography-types.d.ts +12 -3
- package/dist/components/typography/typography-types.d.ts.map +1 -1
- package/dist/components/typography/typography.d.ts +2 -2
- package/dist/custom-components/chat/chat-types.d.ts +1 -1
- package/dist/custom-components/chat/chat.d.ts +1 -1
- package/dist/custom-components/chat/chat.d.ts.map +1 -1
- package/dist/custom-components/layout/layout.d.ts +2 -2
- package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +2 -8
- package/dist/custom-components/layout-builder/layout-builder.d.ts +2 -2
- package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +1 -1
- package/dist/custom-components/layout-builder/layout-json-editor.d.ts +2 -2
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +5 -0
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts.map +1 -0
- package/dist/custom-components/markdown/markdown-types.d.ts +6 -3
- package/dist/custom-components/markdown/markdown-types.d.ts.map +1 -1
- package/dist/custom-components/markdown/markdown.d.ts +2 -2
- package/dist/custom-components/markdown/markdown.d.ts.map +1 -1
- package/dist/custom-components/mindmap/index.d.ts +2 -2
- package/dist/custom-components/mindmap/mind-tree-types.d.ts +1 -1
- package/dist/custom-components/mindmap/mind-tree.d.ts +1 -1
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +1 -1
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +2 -2
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +1 -1
- package/dist/custom-components/timeline/timeline.d.ts +2 -2
- package/dist/custom-components/workflow/layout/workflow-edge.d.ts +1 -1
- package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +1 -1
- package/dist/custom-components/workflow/layout/workflow-layout.d.ts +2 -2
- package/dist/custom-components/workflow/node/workflow-node.d.ts +1 -1
- package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +1 -1
- package/dist/custom-components/workflow/panel/workflow-panel.d.ts +1 -1
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +1 -1
- package/dist/custom-components/workflow/utils/workflow-validation.d.ts +2 -2
- package/dist/custom-components/workflow/workflow-types.d.ts +3 -3
- package/dist/custom-components/workflow/workflow.d.ts +1 -1
- package/dist/data-components/calendar/calendar-types.d.ts +20 -1
- package/dist/data-components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/data-components/calendar/calendar-utils.d.ts +5 -0
- package/dist/data-components/calendar/calendar-utils.d.ts.map +1 -1
- package/dist/data-components/calendar/calendar.d.ts +2 -2
- package/dist/data-components/calendar/calendar.d.ts.map +1 -1
- package/dist/data-components/cell/cell-switch.d.ts +1 -1
- package/dist/data-components/cell/cell-types.d.ts +2 -2
- package/dist/data-components/cell/cell.d.ts +1 -1
- package/dist/data-components/chart/chart-types.d.ts +1 -1
- package/dist/data-components/chart/chart.d.ts +1 -1
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +1 -1
- package/dist/data-components/data-structure/data-structure-utils.d.ts +1 -1
- package/dist/data-components/data-structure/data-structure.d.ts +1 -1
- package/dist/data-components/data-structure/stories-assets.d.ts +1 -5
- package/dist/data-components/filter/filter-engine.d.ts +15 -0
- package/dist/data-components/filter/filter-engine.d.ts.map +1 -0
- package/dist/data-components/filter/filter-types.d.ts +41 -0
- package/dist/data-components/filter/filter-types.d.ts.map +1 -0
- package/dist/data-components/filter/filter-utils.d.ts +26 -0
- package/dist/data-components/filter/filter-utils.d.ts.map +1 -0
- package/dist/data-components/form/form-types.d.ts +2 -2
- package/dist/data-components/form/form.d.ts +1 -1
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +9 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +12 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +7 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +3 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts.map +1 -0
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +21 -0
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-context.d.ts +13 -0
- package/dist/data-components/gantt/gantt-context.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-types.d.ts +101 -0
- package/dist/data-components/gantt/gantt-types.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-utils.d.ts +61 -0
- package/dist/data-components/gantt/gantt-utils.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt.d.ts +4 -0
- package/dist/data-components/gantt/gantt.d.ts.map +1 -0
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +15 -0
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts.map +1 -0
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +18 -0
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts.map +1 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +10 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts.map +1 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +3 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts.map +1 -0
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +13 -0
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +6 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts.map +1 -1
- 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-panel-types.d.ts +6 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +2 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts.map +1 -1
- 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-tools.d.ts +3 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +37 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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/index.d.ts +6 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +1 -1
- package/dist/data-components/table-grid/formula/formula-builder.d.ts +1 -1
- package/dist/data-components/table-grid/grouping/grouping.d.ts +15 -0
- package/dist/data-components/table-grid/grouping/grouping.d.ts.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.d.ts +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/data-components/table-grid/hooks/use-table.d.ts +1 -1
- package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts.map +1 -1
- package/dist/data-components/table-grid/pivot/pivot-table.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-types.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +2 -2
- package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
- package/dist/data-components/table-grid/selection/selection-utils.d.ts +6 -6
- package/dist/data-components/table-grid/selection/selection-utils.d.ts.map +1 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts +5 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +2 -2
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts.map +1 -1
- package/dist/data-components/table-grid/sorting/sorting.d.ts +4 -6
- package/dist/data-components/table-grid/sorting/sorting.d.ts.map +1 -1
- 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.d.ts +2 -2
- 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-panels.d.ts +22 -0
- package/dist/data-components/table-grid/table-grid-panels.d.ts.map +1 -0
- package/dist/data-components/table-grid/table-grid-types.d.ts +39 -9
- package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid.d.ts +9 -2
- package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-utils.d.ts +15 -3
- package/dist/data-components/table-grid/table-utils.d.ts.map +1 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +1 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +2 -2
- package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +11 -23
- package/dist/experimental-components/filter-builder/filter-builder-types.d.ts.map +1 -1
- package/dist/experimental-components/filter-builder/filter-builder.d.ts +5 -7
- package/dist/experimental-components/filter-builder/filter-builder.d.ts.map +1 -1
- package/dist/framework-components/appbar/appbar-types.d.ts +1 -1
- package/dist/framework-components/appbar/appbar.d.ts +2 -2
- package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/framework-components/drawer/drawer-types.d.ts +2 -2
- package/dist/framework-components/drawer/drawer.d.ts +2 -2
- package/dist/framework-components/scaffold/scaffold-context.d.ts +2 -2
- package/dist/framework-components/scaffold/scaffold-types.d.ts +1 -1
- package/dist/framework-components/scaffold/scaffold.d.ts +2 -2
- package/dist/framework-components/sidebar/sidebar-context.d.ts +2 -2
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +1 -1
- package/dist/framework-components/sidebar/sidebar-types.d.ts +1 -1
- package/dist/framework-components/sidebar/sidebar.d.ts +3 -3
- package/dist/hooks/useDynamicVirtualList.d.ts.map +1 -1
- package/dist/hooks/useFixedVirtualList.d.ts +1 -1
- package/dist/hooks/useShortcut.d.ts +1 -1
- package/dist/hooks/useTour/useTour-context-internal.d.ts +2 -2
- package/dist/hooks/useTour/useTour-context.d.ts +3 -3
- package/dist/hooks/useTour/useTour-types.d.ts +1 -1
- package/dist/hooks/useTour/useTour.d.ts +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts +2 -0
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts.map +1 -1
- package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts.map +1 -1
- package/dist/providers/shortcut/shortcut-context.d.ts +2 -2
- package/dist/providers/shortcut/shortcut-provider.d.ts +1 -1
- package/dist/providers/theme/themeProvider.d.ts +2 -2
- package/dist/restio-ui.cjs.js +137 -0
- package/dist/restio-ui.es.js +36326 -0
- package/dist/ui.css +2 -0
- package/dist/utility-components/avatar/avatar-types.d.ts +1 -1
- package/dist/utility-components/avatar/avatar.d.ts +2 -2
- package/dist/utility-components/chip/chip-types.d.ts +2 -2
- package/dist/utility-components/chip/chip.d.ts +2 -2
- package/dist/utility-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/utility-components/helper-text/helper-text.d.ts +1 -1
- package/dist/utility-components/icon/icon-assets.d.ts.map +1 -1
- package/dist/utility-components/icon/icon-types.d.ts +1 -1
- package/dist/utility-components/icon/icon.d.ts +2 -2
- package/dist/utility-components/label/label.d.ts +1 -1
- package/dist/utility-components/overlay-panel/overlay-panel.d.ts +2 -2
- package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +1 -1
- package/dist/utility-components/skeleton/skeleton.d.ts +2 -2
- package/dist/utility-components/stack/stack.d.ts +2 -2
- package/dist/utility-components/toast/toast-types.d.ts +1 -1
- package/dist/utility-components/toast/toast.d.ts +2 -2
- package/dist/utils/general.d.ts +1 -1
- package/package.json +3 -3
- package/dist/components/anchored-overlay/anchored-overlay-types.js +0 -2
- package/dist/components/anchored-overlay/anchored-overlay-types.js.map +0 -1
- package/dist/components/anchored-overlay/anchored-overlay.js +0 -67
- package/dist/components/anchored-overlay/anchored-overlay.js.map +0 -1
- package/dist/components/banner/banner-types.js +0 -2
- package/dist/components/banner/banner-types.js.map +0 -1
- package/dist/components/banner/banner.js +0 -29
- package/dist/components/banner/banner.js.map +0 -1
- package/dist/components/button/button-types.js +0 -2
- package/dist/components/button/button-types.js.map +0 -1
- package/dist/components/button/button.js +0 -20
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button-group/button-group-types.js +0 -2
- package/dist/components/button-group/button-group-types.js.map +0 -1
- package/dist/components/button-group/button-group.js +0 -16
- package/dist/components/button-group/button-group.js.map +0 -1
- package/dist/components/checkbox/checkbox-types.js +0 -2
- package/dist/components/checkbox/checkbox-types.js.map +0 -1
- package/dist/components/checkbox/checkbox.js +0 -19
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/code-block/code-block.js +0 -9
- package/dist/components/code-block/code-block.js.map +0 -1
- package/dist/components/file-upload/file-upload-types.js +0 -2
- package/dist/components/file-upload/file-upload-types.js.map +0 -1
- package/dist/components/file-upload/file-upload-utils.js +0 -10
- package/dist/components/file-upload/file-upload-utils.js.map +0 -1
- package/dist/components/file-upload/file-upload.js +0 -106
- package/dist/components/file-upload/file-upload.js.map +0 -1
- package/dist/components/graph/graph-types.js +0 -2
- package/dist/components/graph/graph-types.js.map +0 -1
- package/dist/components/graph/graph.js +0 -21
- package/dist/components/graph/graph.js.map +0 -1
- package/dist/components/input/date/date-calendar.js +0 -114
- package/dist/components/input/date/date-calendar.js.map +0 -1
- package/dist/components/input/date/date-input-field.js +0 -61
- package/dist/components/input/date/date-input-field.js.map +0 -1
- package/dist/components/input/date/date-picker.js +0 -35
- package/dist/components/input/date/date-picker.js.map +0 -1
- package/dist/components/input/date/date-range-input-field.js +0 -90
- package/dist/components/input/date/date-range-input-field.js.map +0 -1
- package/dist/components/input/date/date-range-picker.js +0 -74
- package/dist/components/input/date/date-range-picker.js.map +0 -1
- package/dist/components/input/date/date-shortcuts.js +0 -47
- package/dist/components/input/date/date-shortcuts.js.map +0 -1
- package/dist/components/input/date/date-types.js +0 -2
- package/dist/components/input/date/date-types.js.map +0 -1
- package/dist/components/input/date/date-utils.js +0 -203
- package/dist/components/input/date/date-utils.js.map +0 -1
- package/dist/components/input/input-types.js +0 -2
- package/dist/components/input/input-types.js.map +0 -1
- package/dist/components/input/input.js +0 -14
- package/dist/components/input/input.js.map +0 -1
- package/dist/components/input/number/input-number-types.js +0 -2
- package/dist/components/input/number/input-number-types.js.map +0 -1
- package/dist/components/input/number/input-number.js +0 -11
- package/dist/components/input/number/input-number.js.map +0 -1
- package/dist/components/input/text/input-text-types.js +0 -2
- package/dist/components/input/text/input-text-types.js.map +0 -1
- package/dist/components/input/text/input-text.js +0 -8
- package/dist/components/input/text/input-text.js.map +0 -1
- package/dist/components/kbd/kbd-types.js +0 -2
- package/dist/components/kbd/kbd-types.js.map +0 -1
- package/dist/components/kbd/kbd.js +0 -12
- package/dist/components/kbd/kbd.js.map +0 -1
- package/dist/components/kbd-group/kbd-group-types.js +0 -2
- package/dist/components/kbd-group/kbd-group-types.js.map +0 -1
- package/dist/components/kbd-group/kbd-group.js +0 -15
- package/dist/components/kbd-group/kbd-group.js.map +0 -1
- package/dist/components/list/list-types.js +0 -2
- package/dist/components/list/list-types.js.map +0 -1
- package/dist/components/list/list-utils.js +0 -73
- package/dist/components/list/list-utils.js.map +0 -1
- package/dist/components/list/list.js +0 -68
- package/dist/components/list/list.js.map +0 -1
- package/dist/components/menu/anchored-navigation-menu.js +0 -48
- package/dist/components/menu/anchored-navigation-menu.js.map +0 -1
- package/dist/components/menu/menu-assets.js +0 -35
- package/dist/components/menu/menu-assets.js.map +0 -1
- package/dist/components/menu/menu-types.js +0 -2
- package/dist/components/menu/menu-types.js.map +0 -1
- package/dist/components/menu/menu.js +0 -86
- package/dist/components/menu/menu.js.map +0 -1
- package/dist/components/otp/otp-types.js +0 -2
- package/dist/components/otp/otp-types.js.map +0 -1
- package/dist/components/otp/otp-utils.js +0 -22
- package/dist/components/otp/otp-utils.js.map +0 -1
- package/dist/components/otp/otp.js +0 -85
- package/dist/components/otp/otp.js.map +0 -1
- package/dist/components/select/select-types.js +0 -2
- package/dist/components/select/select-types.js.map +0 -1
- package/dist/components/select/select.js +0 -52
- package/dist/components/select/select.js.map +0 -1
- package/dist/components/tag/tag-types.js +0 -2
- package/dist/components/tag/tag-types.js.map +0 -1
- package/dist/components/tag/tag.js +0 -16
- package/dist/components/tag/tag.js.map +0 -1
- package/dist/components/textarea/textarea-types.js +0 -2
- package/dist/components/textarea/textarea-types.js.map +0 -1
- package/dist/components/textarea/textarea.js +0 -19
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/toast-group/toast-group-types.js +0 -2
- package/dist/components/toast-group/toast-group-types.js.map +0 -1
- package/dist/components/toast-group/toast-group.js +0 -25
- package/dist/components/toast-group/toast-group.js.map +0 -1
- package/dist/components/typography/typography-types.js +0 -11
- package/dist/components/typography/typography-types.js.map +0 -1
- package/dist/components/typography/typography.js +0 -17
- package/dist/components/typography/typography.js.map +0 -1
- package/dist/custom-components/chat/chat-types.js +0 -2
- package/dist/custom-components/chat/chat-types.js.map +0 -1
- package/dist/custom-components/chat/chat.js +0 -14
- package/dist/custom-components/chat/chat.js.map +0 -1
- package/dist/custom-components/layout/layout-types.js +0 -2
- package/dist/custom-components/layout/layout-types.js.map +0 -1
- package/dist/custom-components/layout/layout.js +0 -46
- package/dist/custom-components/layout/layout.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-constants.js +0 -25
- package/dist/custom-components/layout-builder/layout-builder-constants.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-schema.js +0 -169
- package/dist/custom-components/layout-builder/layout-builder-schema.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-templates.js +0 -206
- package/dist/custom-components/layout-builder/layout-builder-templates.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-types.js +0 -2
- package/dist/custom-components/layout-builder/layout-builder-types.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-utils.js +0 -251
- package/dist/custom-components/layout-builder/layout-builder-utils.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-validation.js +0 -445
- package/dist/custom-components/layout-builder/layout-builder-validation.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder.js +0 -908
- package/dist/custom-components/layout-builder/layout-builder.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-json-editor-types.js +0 -2
- package/dist/custom-components/layout-builder/layout-json-editor-types.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-json-editor.js +0 -103
- package/dist/custom-components/layout-builder/layout-json-editor.js.map +0 -1
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.js +0 -100
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.js.map +0 -1
- package/dist/custom-components/markdown/markdown-types.js +0 -2
- package/dist/custom-components/markdown/markdown-types.js.map +0 -1
- package/dist/custom-components/markdown/markdown-utils.js +0 -10
- package/dist/custom-components/markdown/markdown-utils.js.map +0 -1
- package/dist/custom-components/markdown/markdown.js +0 -39
- package/dist/custom-components/markdown/markdown.js.map +0 -1
- package/dist/custom-components/mindmap/index.js +0 -2
- package/dist/custom-components/mindmap/index.js.map +0 -1
- package/dist/custom-components/mindmap/mind-tree-types.js +0 -2
- package/dist/custom-components/mindmap/mind-tree-types.js.map +0 -1
- package/dist/custom-components/mindmap/mind-tree.js +0 -201
- package/dist/custom-components/mindmap/mind-tree.js.map +0 -1
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.js +0 -277
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.js.map +0 -1
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js +0 -2
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js.map +0 -1
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js +0 -32
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js.map +0 -1
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.js +0 -19
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.js.map +0 -1
- package/dist/custom-components/timeline/timeline-types.js +0 -2
- package/dist/custom-components/timeline/timeline-types.js.map +0 -1
- package/dist/custom-components/timeline/timeline.js +0 -64
- package/dist/custom-components/timeline/timeline.js.map +0 -1
- package/dist/custom-components/workflow/layout/workflow-edge.js +0 -31
- package/dist/custom-components/workflow/layout/workflow-edge.js.map +0 -1
- package/dist/custom-components/workflow/layout/workflow-layout-types.js +0 -2
- package/dist/custom-components/workflow/layout/workflow-layout-types.js.map +0 -1
- package/dist/custom-components/workflow/layout/workflow-layout.js +0 -284
- package/dist/custom-components/workflow/layout/workflow-layout.js.map +0 -1
- package/dist/custom-components/workflow/node/workflow-node.js +0 -22
- package/dist/custom-components/workflow/node/workflow-node.js.map +0 -1
- package/dist/custom-components/workflow/panel/workflow-panel-types.js +0 -2
- package/dist/custom-components/workflow/panel/workflow-panel-types.js.map +0 -1
- package/dist/custom-components/workflow/panel/workflow-panel.js +0 -53
- package/dist/custom-components/workflow/panel/workflow-panel.js.map +0 -1
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js +0 -2
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js.map +0 -1
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.js +0 -19
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.js.map +0 -1
- package/dist/custom-components/workflow/utils/workflow-validation.js +0 -257
- package/dist/custom-components/workflow/utils/workflow-validation.js.map +0 -1
- package/dist/custom-components/workflow/workflow-types.js +0 -2
- package/dist/custom-components/workflow/workflow-types.js.map +0 -1
- package/dist/custom-components/workflow/workflow.js +0 -125
- package/dist/custom-components/workflow/workflow.js.map +0 -1
- package/dist/data-components/assets/data-components-asset.js +0 -2
- package/dist/data-components/assets/data-components-asset.js.map +0 -1
- package/dist/data-components/calendar/calendar-types.js +0 -2
- package/dist/data-components/calendar/calendar-types.js.map +0 -1
- package/dist/data-components/calendar/calendar-utils.js +0 -2
- package/dist/data-components/calendar/calendar-utils.js.map +0 -1
- package/dist/data-components/calendar/calendar.js +0 -78
- package/dist/data-components/calendar/calendar.js.map +0 -1
- package/dist/data-components/cell/cell-switch.js +0 -68
- package/dist/data-components/cell/cell-switch.js.map +0 -1
- package/dist/data-components/cell/cell-types.js +0 -2
- package/dist/data-components/cell/cell-types.js.map +0 -1
- package/dist/data-components/cell/cell-utils.js +0 -60
- package/dist/data-components/cell/cell-utils.js.map +0 -1
- package/dist/data-components/cell/cell.js +0 -63
- package/dist/data-components/cell/cell.js.map +0 -1
- package/dist/data-components/chart/chart-types.js +0 -2
- package/dist/data-components/chart/chart-types.js.map +0 -1
- package/dist/data-components/chart/chart.js +0 -121
- package/dist/data-components/chart/chart.js.map +0 -1
- package/dist/data-components/chart/sankey/sankeyChart.js +0 -111
- package/dist/data-components/chart/sankey/sankeyChart.js.map +0 -1
- package/dist/data-components/data-structure/data-structure-utils.js +0 -28
- package/dist/data-components/data-structure/data-structure-utils.js.map +0 -1
- package/dist/data-components/data-structure/data-structure.js +0 -2
- package/dist/data-components/data-structure/data-structure.js.map +0 -1
- package/dist/data-components/data-structure/stories-assets.js +0 -199
- package/dist/data-components/data-structure/stories-assets.js.map +0 -1
- package/dist/data-components/form/form-types.js +0 -2
- package/dist/data-components/form/form-types.js.map +0 -1
- package/dist/data-components/form/form.js +0 -124
- package/dist/data-components/form/form.js.map +0 -1
- package/dist/data-components/table-grid/aggregation/aggregation-utils.js +0 -31
- package/dist/data-components/table-grid/aggregation/aggregation-utils.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js +0 -264
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js +0 -306
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js +0 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js +0 -33
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js +0 -59
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js +0 -167
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js +0 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js +0 -157
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js +0 -27
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js +0 -21
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js +0 -21
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js +0 -12
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.js +0 -7
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js +0 -15
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js +0 -50
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js.map +0 -1
- package/dist/data-components/table-grid/footer/table-grid-footer-types.js +0 -2
- package/dist/data-components/table-grid/footer/table-grid-footer-types.js.map +0 -1
- package/dist/data-components/table-grid/footer/table-grid-footer.js +0 -47
- package/dist/data-components/table-grid/footer/table-grid-footer.js.map +0 -1
- package/dist/data-components/table-grid/formula/evaluator.js +0 -91
- package/dist/data-components/table-grid/formula/evaluator.js.map +0 -1
- package/dist/data-components/table-grid/formula/formula-builder-types.js +0 -2
- package/dist/data-components/table-grid/formula/formula-builder-types.js.map +0 -1
- package/dist/data-components/table-grid/formula/formula-builder.js +0 -47
- package/dist/data-components/table-grid/formula/formula-builder.js.map +0 -1
- package/dist/data-components/table-grid/formula/formula.test.js +0 -50
- package/dist/data-components/table-grid/formula/formula.test.js.map +0 -1
- package/dist/data-components/table-grid/formula/index.js +0 -40
- package/dist/data-components/table-grid/formula/index.js.map +0 -1
- package/dist/data-components/table-grid/formula/parser.js +0 -179
- package/dist/data-components/table-grid/formula/parser.js.map +0 -1
- package/dist/data-components/table-grid/formula/tokenizer.js +0 -140
- package/dist/data-components/table-grid/formula/tokenizer.js.map +0 -1
- package/dist/data-components/table-grid/formula/types.js +0 -2
- package/dist/data-components/table-grid/formula/types.js.map +0 -1
- package/dist/data-components/table-grid/header/grouping/group-panel-types.js +0 -2
- package/dist/data-components/table-grid/header/grouping/group-panel-types.js.map +0 -1
- package/dist/data-components/table-grid/header/grouping/group-panel.js +0 -91
- package/dist/data-components/table-grid/header/grouping/group-panel.js.map +0 -1
- package/dist/data-components/table-grid/header/table-grid-column-menu.js +0 -84
- package/dist/data-components/table-grid/header/table-grid-column-menu.js.map +0 -1
- package/dist/data-components/table-grid/header/table-grid-header-types.js +0 -2
- package/dist/data-components/table-grid/header/table-grid-header-types.js.map +0 -1
- package/dist/data-components/table-grid/header/table-grid-header.js +0 -148
- package/dist/data-components/table-grid/header/table-grid-header.js.map +0 -1
- package/dist/data-components/table-grid/hooks/use-table.js +0 -18
- package/dist/data-components/table-grid/hooks/use-table.js.map +0 -1
- package/dist/data-components/table-grid/pinning/pinning-utils.js +0 -70
- package/dist/data-components/table-grid/pinning/pinning-utils.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js +0 -2
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel.js +0 -89
- package/dist/data-components/table-grid/pivot/pivot-config-panel.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-table.js +0 -26
- package/dist/data-components/table-grid/pivot/pivot-table.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-types.js +0 -2
- package/dist/data-components/table-grid/pivot/pivot-types.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-utils.js +0 -150
- package/dist/data-components/table-grid/pivot/pivot-utils.js.map +0 -1
- package/dist/data-components/table-grid/row/table-grid-row-types.js +0 -2
- package/dist/data-components/table-grid/row/table-grid-row-types.js.map +0 -1
- package/dist/data-components/table-grid/row/table-grid-row-utils.js +0 -35
- package/dist/data-components/table-grid/row/table-grid-row-utils.js.map +0 -1
- package/dist/data-components/table-grid/row/table-grid-row.js +0 -68
- package/dist/data-components/table-grid/row/table-grid-row.js.map +0 -1
- package/dist/data-components/table-grid/selection/selection-types.js +0 -2
- package/dist/data-components/table-grid/selection/selection-types.js.map +0 -1
- package/dist/data-components/table-grid/selection/selection-utils.js +0 -136
- package/dist/data-components/table-grid/selection/selection-utils.js.map +0 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js +0 -2
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js.map +0 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js +0 -7
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js.map +0 -1
- package/dist/data-components/table-grid/sorting/sorting.js +0 -45
- package/dist/data-components/table-grid/sorting/sorting.js.map +0 -1
- package/dist/data-components/table-grid/table-context/table-context-types.js +0 -2
- package/dist/data-components/table-grid/table-context/table-context-types.js.map +0 -1
- package/dist/data-components/table-grid/table-context/table-context.js +0 -4
- package/dist/data-components/table-grid/table-context/table-context.js.map +0 -1
- package/dist/data-components/table-grid/table-grid-context.js +0 -258
- package/dist/data-components/table-grid/table-grid-context.js.map +0 -1
- package/dist/data-components/table-grid/table-grid-types.js +0 -2
- package/dist/data-components/table-grid/table-grid-types.js.map +0 -1
- package/dist/data-components/table-grid/table-grid.js +0 -144
- package/dist/data-components/table-grid/table-grid.js.map +0 -1
- package/dist/data-components/table-grid/table-utils.js +0 -116
- package/dist/data-components/table-grid/table-utils.js.map +0 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js +0 -2
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js.map +0 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js +0 -61
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js.map +0 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js +0 -23
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js.map +0 -1
- package/dist/experimental-components/filter-builder/filter-builder-types.js +0 -2
- package/dist/experimental-components/filter-builder/filter-builder-types.js.map +0 -1
- package/dist/experimental-components/filter-builder/filter-builder.js +0 -139
- package/dist/experimental-components/filter-builder/filter-builder.js.map +0 -1
- package/dist/framework-components/appbar/appbar-assets.js +0 -5
- package/dist/framework-components/appbar/appbar-assets.js.map +0 -1
- package/dist/framework-components/appbar/appbar-types.js +0 -2
- package/dist/framework-components/appbar/appbar-types.js.map +0 -1
- package/dist/framework-components/appbar/appbar.js +0 -36
- package/dist/framework-components/appbar/appbar.js.map +0 -1
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.js +0 -2
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.js.map +0 -1
- package/dist/framework-components/breadcrumbs/breadcrumbs.js +0 -31
- package/dist/framework-components/breadcrumbs/breadcrumbs.js.map +0 -1
- package/dist/framework-components/drawer/drawer-types.js +0 -2
- package/dist/framework-components/drawer/drawer-types.js.map +0 -1
- package/dist/framework-components/drawer/drawer.js +0 -10
- package/dist/framework-components/drawer/drawer.js.map +0 -1
- package/dist/framework-components/scaffold/scaffold-context.js +0 -10
- package/dist/framework-components/scaffold/scaffold-context.js.map +0 -1
- package/dist/framework-components/scaffold/scaffold-types.js +0 -2
- package/dist/framework-components/scaffold/scaffold-types.js.map +0 -1
- package/dist/framework-components/scaffold/scaffold.js +0 -76
- package/dist/framework-components/scaffold/scaffold.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-assets.js +0 -4
- package/dist/framework-components/sidebar/sidebar-assets.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-context.js +0 -9
- package/dist/framework-components/sidebar/sidebar-context.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js +0 -2
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js +0 -12
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-types.js +0 -2
- package/dist/framework-components/sidebar/sidebar-types.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar.js +0 -42
- package/dist/framework-components/sidebar/sidebar.js.map +0 -1
- package/dist/hooks/useDynamicVirtualList.js +0 -208
- package/dist/hooks/useDynamicVirtualList.js.map +0 -1
- package/dist/hooks/useFixedVirtualList.js +0 -64
- package/dist/hooks/useFixedVirtualList.js.map +0 -1
- package/dist/hooks/useShortcut.js +0 -86
- package/dist/hooks/useShortcut.js.map +0 -1
- package/dist/hooks/useTour/useTour-context-internal.js +0 -7
- package/dist/hooks/useTour/useTour-context-internal.js.map +0 -1
- package/dist/hooks/useTour/useTour-context.js +0 -54
- package/dist/hooks/useTour/useTour-context.js.map +0 -1
- package/dist/hooks/useTour/useTour-types.js +0 -2
- package/dist/hooks/useTour/useTour-types.js.map +0 -1
- package/dist/hooks/useTour/useTour.js +0 -408
- package/dist/hooks/useTour/useTour.js.map +0 -1
- package/dist/hooks/useVirtualListScroll.js +0 -79
- package/dist/hooks/useVirtualListScroll.js.map +0 -1
- package/dist/index.js +0 -63
- package/dist/index.js.map +0 -1
- package/dist/providers/ai-assistant/ai-assistant-prompts.js +0 -98
- package/dist/providers/ai-assistant/ai-assistant-prompts.js.map +0 -1
- package/dist/providers/ai-assistant/ai-assistant-types.js +0 -5
- package/dist/providers/ai-assistant/ai-assistant-types.js.map +0 -1
- package/dist/providers/ai-assistant/ai-assistant-validator.js +0 -74
- package/dist/providers/ai-assistant/ai-assistant-validator.js.map +0 -1
- package/dist/providers/ai-assistant/ai-chat-panel-types.js +0 -2
- package/dist/providers/ai-assistant/ai-chat-panel-types.js.map +0 -1
- package/dist/providers/ai-assistant/ai-chat-panel.js +0 -111
- package/dist/providers/ai-assistant/ai-chat-panel.js.map +0 -1
- package/dist/providers/shortcut/shortcut-context.js +0 -7
- package/dist/providers/shortcut/shortcut-context.js.map +0 -1
- package/dist/providers/shortcut/shortcut-provider.js +0 -267
- package/dist/providers/shortcut/shortcut-provider.js.map +0 -1
- package/dist/providers/theme/index.js +0 -2
- package/dist/providers/theme/index.js.map +0 -1
- package/dist/providers/theme/theme-provider-types.js +0 -2
- package/dist/providers/theme/theme-provider-types.js.map +0 -1
- package/dist/providers/theme/themeProvider.js +0 -17
- package/dist/providers/theme/themeProvider.js.map +0 -1
- package/dist/test/vitest.utils.js +0 -2
- package/dist/test/vitest.utils.js.map +0 -1
- package/dist/types/global-types.js +0 -10
- package/dist/types/global-types.js.map +0 -1
- package/dist/types/storybook-types.js +0 -2
- package/dist/types/storybook-types.js.map +0 -1
- package/dist/utility-components/avatar/avatar-types.js +0 -2
- package/dist/utility-components/avatar/avatar-types.js.map +0 -1
- package/dist/utility-components/avatar/avatar.js +0 -10
- package/dist/utility-components/avatar/avatar.js.map +0 -1
- package/dist/utility-components/chip/chip-types.js +0 -2
- package/dist/utility-components/chip/chip-types.js.map +0 -1
- package/dist/utility-components/chip/chip.js +0 -11
- package/dist/utility-components/chip/chip.js.map +0 -1
- package/dist/utility-components/helper-text/helper-text-types.js +0 -2
- package/dist/utility-components/helper-text/helper-text-types.js.map +0 -1
- package/dist/utility-components/helper-text/helper-text.js +0 -12
- package/dist/utility-components/helper-text/helper-text.js.map +0 -1
- package/dist/utility-components/icon/icon-assets.js +0 -95
- package/dist/utility-components/icon/icon-assets.js.map +0 -1
- package/dist/utility-components/icon/icon-types.js +0 -2
- package/dist/utility-components/icon/icon-types.js.map +0 -1
- package/dist/utility-components/icon/icon.js +0 -28
- package/dist/utility-components/icon/icon.js.map +0 -1
- package/dist/utility-components/label/label-types.js +0 -2
- package/dist/utility-components/label/label-types.js.map +0 -1
- package/dist/utility-components/label/label.js +0 -10
- package/dist/utility-components/label/label.js.map +0 -1
- package/dist/utility-components/overlay-panel/overlay-panel-types.js +0 -2
- package/dist/utility-components/overlay-panel/overlay-panel-types.js.map +0 -1
- package/dist/utility-components/overlay-panel/overlay-panel.js +0 -98
- package/dist/utility-components/overlay-panel/overlay-panel.js.map +0 -1
- package/dist/utility-components/overlay-panel/use-focus-trap.js +0 -61
- package/dist/utility-components/overlay-panel/use-focus-trap.js.map +0 -1
- package/dist/utility-components/skeleton/skeleton-types.js +0 -2
- package/dist/utility-components/skeleton/skeleton-types.js.map +0 -1
- package/dist/utility-components/skeleton/skeleton.js +0 -14
- package/dist/utility-components/skeleton/skeleton.js.map +0 -1
- package/dist/utility-components/stack/stack-types.js +0 -2
- package/dist/utility-components/stack/stack-types.js.map +0 -1
- package/dist/utility-components/stack/stack.js +0 -12
- package/dist/utility-components/stack/stack.js.map +0 -1
- package/dist/utility-components/toast/toast-types.js +0 -2
- package/dist/utility-components/toast/toast-types.js.map +0 -1
- package/dist/utility-components/toast/toast.js +0 -21
- package/dist/utility-components/toast/toast.js.map +0 -1
- package/dist/utils/general.js +0 -27
- package/dist/utils/general.js.map +0 -1
- package/dist/utils/shortcut-utils.js +0 -164
- package/dist/utils/shortcut-utils.js.map +0 -1
|
@@ -1,257 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CA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AC;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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-types.js","sourceRoot":"","sources":["../../../src/custom-components/workflow/workflow-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,125 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/custom-components/workflow/workflow.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,YAAY,IAAI,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACtG,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,EACvB,KAAK,EACL,KAAK,EACL,MAAM,EAAE,YAAY,EACpB,WAAW,GAAG,IAAI,EAClB,SAAS,GAAG,IAAI,EAChB,WAAW,GAAG,CAAC,EACf,OAAO,GAAG,GAAG,EACb,OAAO,GAAG,CAAC,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EACb,SAAS,EACT,GAAG,KAAK,EACM;IACd,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAe,SAAS,CAAC,CAAC;IAC1D,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC9C,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/C,MAAM,CAAC,UAAU,EAAE,a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,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,EAAE,YAChG,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC7B,KAAC,qBAAqB,IAAe,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,IAA7C,IAAI,CAAC,EAAE,CAA0C,CAC9E,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"}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-types.js","sourceRoot":"","sources":["../../../src/data-components/calendar/calendar-types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-utils.js","sourceRoot":"","sources":["../../../src/data-components/calendar/calendar-utils.ts"],"names":[],"mappings":""}
|
|
@@ -1,78 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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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MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;oBAC3C,MAAM,UAAU,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,UAAU,CAAC,QAAQ,EAAE,CAAC;oBAC1D,OAAO,CACL,eAAe,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,GAAG,MAAM,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,aACvH,cAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,YAAG,CAAC,CAAC,OAAO,EAAE,GAAO,EAChE,wBACG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;oCACrB,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;oCAClD,MAAM,KAAK,GAAG,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;oCACzH,OAAO,CACL,cAAa,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,EAAE,KAAK,EAAE,KAAK,YAC/D,KAAK,IADE,CAAC,CAEL,CACP,CAAC;gCACJ,CAAC,CAAC,GACE,KAZE,GAAG,CAaP,CACP,CAAC;gBACJ,CAAC,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { NumberInput } from "../../components/input/number/input-number";
|
|
3
|
-
import { TextInput } from "../../components/input/text/input-text";
|
|
4
|
-
import { Select } from "../../components/select/select";
|
|
5
|
-
import { ButtonGroup } from "../../components/button-group/button-group";
|
|
6
|
-
import { DateRangePicker } from "../../components/input/date/date-range-picker";
|
|
7
|
-
import { Checkbox } from "../../components/checkbox/checkbox";
|
|
8
|
-
import { CellType } from "../../types/global-types";
|
|
9
|
-
import { DatePicker } from "../../components/input/date/date-picker";
|
|
10
|
-
/**
|
|
11
|
-
* Renders the appropriate editor component based on value type and column configuration
|
|
12
|
-
* @param value - Current draft value
|
|
13
|
-
* @param column - Column definition
|
|
14
|
-
* @param onDraftChange - Callback when draft value changes
|
|
15
|
-
* @param onCommit - Callback to commit the value
|
|
16
|
-
* @param onImmediateCommit - Callback for immediate commit (select, checkbox)
|
|
17
|
-
* @param onKeyDown - Keyboard event handler
|
|
18
|
-
* @param autoFocus - Whether to autofocus the editor
|
|
19
|
-
* @param error - Error message
|
|
20
|
-
* @param disabled - Whether the cell is disabled
|
|
21
|
-
* @param className - CSS class name
|
|
22
|
-
* @returns Editor component
|
|
23
|
-
*/
|
|
24
|
-
export function renderCell(value, column, onDraftChange, onCommit, onImmediateCommit, onKeyDown, autoFocus, error, disabled, className) {
|
|
25
|
-
// Select component for columns with options
|
|
26
|
-
if ("options" in column && column.options) {
|
|
27
|
-
const cellType = column.cellType; // default to select
|
|
28
|
-
switch (cellType) {
|
|
29
|
-
case CellType.SELECT:
|
|
30
|
-
return (_jsx(Select, { value: String(value ?? ""), options: column.options, onChange: (newValue) => onImmediateCommit(newValue), disabled: disabled }));
|
|
31
|
-
case CellType.BUTTON_GROUP:
|
|
32
|
-
return (_jsx(ButtonGroup, { value: String(value ?? ""), options: column.options, onChange: (newValue) => onImmediateCommit(newValue), size: "small", disabled: disabled }));
|
|
33
|
-
default:
|
|
34
|
-
return (_jsx(Select, { value: String(value ?? ""), options: column.options, onChange: (newValue) => onImmediateCommit(newValue), disabled: disabled }));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
// When value is nullish, use cellType to determine the correct editor
|
|
38
|
-
if (value === undefined || value === null) {
|
|
39
|
-
if (column.cellType === CellType.NUMBER) {
|
|
40
|
-
return (_jsx(NumberInput, { value: undefined, onChange: (newValue) => onDraftChange(newValue), onBlur: onCommit, onKeyDown: onKeyDown, autoFocus: autoFocus, className: className, error: error, disabled: disabled }));
|
|
41
|
-
}
|
|
42
|
-
return (_jsx(TextInput, { value: "", onChange: (newValue) => onDraftChange(newValue), onBlur: onCommit, onKeyDown: onKeyDown, autoFocus: autoFocus, className: className, error: error, disabled: disabled }));
|
|
43
|
-
}
|
|
44
|
-
// String input
|
|
45
|
-
if (typeof value === "string") {
|
|
46
|
-
return (_jsx(TextInput, { value: value, onChange: (newValue) => onDraftChange(newValue), onBlur: onCommit, onKeyDown: onKeyDown, autoFocus: autoFocus, error: error, disabled: disabled }));
|
|
47
|
-
}
|
|
48
|
-
// Number input
|
|
49
|
-
if (typeof value === "number") {
|
|
50
|
-
return (_jsx(NumberInput, { value: value, onChange: (newValue) => onDraftChange(newValue), onBlur: onCommit, onKeyDown: onKeyDown, autoFocus: autoFocus, className: className, error: error, disabled: disabled }));
|
|
51
|
-
}
|
|
52
|
-
// Boolean checkbox
|
|
53
|
-
if (typeof value === "boolean") {
|
|
54
|
-
return _jsx(Checkbox, { checked: value, onChange: (checked) => onImmediateCommit(checked), className: className, disabled: disabled });
|
|
55
|
-
}
|
|
56
|
-
// Date range input (cellType: DATE_RANGE)
|
|
57
|
-
if (column.cellType === CellType.DATE_RANGE) {
|
|
58
|
-
const rangeValue = value ?? { from: null, to: null };
|
|
59
|
-
return (_jsx(DateRangePicker, { value: rangeValue, onChange: (newValue) => onImmediateCommit(newValue), className: className, error: error, disabled: disabled, shortcuts: true }));
|
|
60
|
-
}
|
|
61
|
-
// Date input
|
|
62
|
-
if (value instanceof Date) {
|
|
63
|
-
return (_jsx(DatePicker, { value: value, onChange: (newValue) => onDraftChange(newValue), onBlur: onCommit, onKeyDown: onKeyDown, autoFocus: autoFocus, className: className, error: error, disabled: disabled }));
|
|
64
|
-
}
|
|
65
|
-
// Fallback to text input
|
|
66
|
-
return (_jsx(TextInput, { value: value, onChange: (newValue) => onDraftChange(newValue), onBlur: onCommit, onKeyDown: onKeyDown, autoFocus: autoFocus, className: className, disabled: disabled }));
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=cell-switch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell-switch.js","sourceRoot":"","sources":["../../../src/data-components/cell/cell-switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAU,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAGrE;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,UAAU,CACxB,KAAa,EACb,MAA0C,EAC1C,aAAsC,EACtC,QAAoB,EACpB,iBAA0C,EAC1C,SAA2C,EAC3C,SAAkB,EAClB,KAAc,EACd,QAAkB,EAClB,SAAkB;IAElB,4CAA4C;IAC5C,IAAI,SAAS,IAAI,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QAC1C,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,oBAAoB;QAEtD,QAAQ,QAAQ,EAAE,CAAC;YACjB,KAAK,QAAQ,CAAC,MAAM;gBAClB,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,EAC1B,OAAO,EAAE,MAAM,CAAC,OAAmB,EACnC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,iBAAi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