@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-builder.js","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGxE,OAAO,MAAM,MAAM,6BAA6B,CAAC;AACjD,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,UAAU,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,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,yBAAyB,CAAC;AAEtD,6BAA6B;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG3E,YAAY;AACZ,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAExH,YAAY;AACZ,OAAO,EAAE,gBAAgB,EAAE,gBAA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AAC,oBAAoB,CAAC,EAAE,CAAC,IACzG,EACb,KAAC,MAAM,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,oBAAoB,CAAC,GAAI,IAC1E,CACJ,CAAC,CAAC,CAAC,CACF,8BACE,MAAC,UAAU,IAAC,OAAO,EAAC,MAAM,aAAE,gBAAgB,CAAC,IAAI,wBAA8B,EAC/E,KAAC,MAAM,IAAC,KAAK,EAAE,UAAU,gBAAgB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAC,QAAQ,EAAC,OAAO,EAAE,oBAAoB,GAAI,IACnG,CACJ,GACG,CACP,IACG,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-json-editor-types.js","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-json-editor-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useRef, useEffect, useState, useCallback } from "react";
|
|
3
|
-
import { Button } from "../../components/button/button";
|
|
4
|
-
import { Stack } from "../../utility-components/stack/stack";
|
|
5
|
-
// formatValidationErrors can be used for console logging or external display
|
|
6
|
-
// import { formatValidationErrors } from "./layout-builder-validation";
|
|
7
|
-
import styles from "./layout-json-editor.module.css";
|
|
8
|
-
/**
|
|
9
|
-
* JSON Editor component for editing layout configurations
|
|
10
|
-
*
|
|
11
|
-
* Features:
|
|
12
|
-
* - Syntax highlighting (basic)
|
|
13
|
-
* - Line numbers
|
|
14
|
-
* - Error display with line indicators
|
|
15
|
-
* - Auto-formatting
|
|
16
|
-
*/
|
|
17
|
-
export const LayoutJsonEditor = ({ value, onChange, errors, readOnly = false, height, onActivate, onDeactivate }) => {
|
|
18
|
-
const textareaRef = useRef(null);
|
|
19
|
-
const lineNumbersRef = useRef(null);
|
|
20
|
-
const [localValue, setLocalValue] = useState(value);
|
|
21
|
-
const [cursorPosition, setCursorPosition] = useState(null);
|
|
22
|
-
// Sync local value with prop when it changes externally
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
setLocalValue(value);
|
|
25
|
-
}, [value]);
|
|
26
|
-
// Calculate line numbers
|
|
27
|
-
const lineCount = localValue.split("\n").length;
|
|
28
|
-
const lineNumbers = Array.from({ length: lineCount }, (_, i) => i + 1);
|
|
29
|
-
// Get error lines for highlighting
|
|
30
|
-
const errorLines = new Set();
|
|
31
|
-
for (const error of errors) {
|
|
32
|
-
// Try to find the line number from the path
|
|
33
|
-
const pathMatch = error.path.match(/\.(\d+)/);
|
|
34
|
-
if (pathMatch) {
|
|
35
|
-
errorLines.add(parseInt(pathMatch[1], 10));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
// Handle text change
|
|
39
|
-
const handleChange = (e) => {
|
|
40
|
-
const newValue = e.target.value;
|
|
41
|
-
setLocalValue(newValue);
|
|
42
|
-
onChange(newValue);
|
|
43
|
-
};
|
|
44
|
-
// Handle scroll sync
|
|
45
|
-
const handleScroll = () => {
|
|
46
|
-
if (textareaRef.current && lineNumbersRef.current) {
|
|
47
|
-
lineNumbersRef.current.scrollTop = textareaRef.current.scrollTop;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
// Handle cursor position update
|
|
51
|
-
const updateCursorPosition = useCallback(() => {
|
|
52
|
-
if (!textareaRef.current)
|
|
53
|
-
return;
|
|
54
|
-
const textarea = textareaRef.current;
|
|
55
|
-
const text = textarea.value;
|
|
56
|
-
const selectionStart = textarea.selectionStart;
|
|
57
|
-
// Count lines and columns
|
|
58
|
-
const textBeforeCursor = text.substring(0, selectionStart);
|
|
59
|
-
const lines = textBeforeCursor.split("\n");
|
|
60
|
-
const line = lines.length;
|
|
61
|
-
const column = lines[lines.length - 1].length + 1;
|
|
62
|
-
setCursorPosition({ line, column });
|
|
63
|
-
}, []);
|
|
64
|
-
// Format JSON
|
|
65
|
-
const handleFormat = () => {
|
|
66
|
-
try {
|
|
67
|
-
const parsed = JSON.parse(localValue);
|
|
68
|
-
const formatted = JSON.stringify(parsed, null, 2);
|
|
69
|
-
setLocalValue(formatted);
|
|
70
|
-
onChange(formatted);
|
|
71
|
-
}
|
|
72
|
-
catch {
|
|
73
|
-
// Can't format invalid JSON
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
// Minify JSON
|
|
77
|
-
const handleMinify = () => {
|
|
78
|
-
try {
|
|
79
|
-
const parsed = JSON.parse(localValue);
|
|
80
|
-
const minified = JSON.stringify(parsed);
|
|
81
|
-
setLocalValue(minified);
|
|
82
|
-
onChange(minified);
|
|
83
|
-
}
|
|
84
|
-
catch {
|
|
85
|
-
// Can't minify invalid JSON
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
// Copy to clipboard
|
|
89
|
-
const handleCopy = async () => {
|
|
90
|
-
try {
|
|
91
|
-
await navigator.clipboard.writeText(localValue);
|
|
92
|
-
}
|
|
93
|
-
catch {
|
|
94
|
-
// Fallback for older browsers
|
|
95
|
-
textareaRef.current?.select();
|
|
96
|
-
document.execCommand("copy");
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
const isValid = errors.length === 0;
|
|
100
|
-
return (_jsxs("div", { className: styles["rst-json-editor"], style: { height }, onFocus: onActivate, onBlur: onDeactivate, onMouseEnter: onActivate, onMouseLeave: onDeactivate, tabIndex: 0, children: [_jsxs("div", { className: styles["rst-json-editor-toolbar"], children: [_jsxs(Stack, { direction: "row", gap: 0.75, align: "center", children: [_jsx("span", { className: styles["rst-json-editor-label"], children: "JSON Editor" }), isValid ? (_jsx("span", { className: styles["rst-json-editor-status-valid"], children: "\u2713 Valid" })) : (_jsxs("span", { className: styles["rst-json-editor-status-invalid"], children: ["\u2717 ", errors.length, " error", errors.length !== 1 ? "s" : ""] }))] }), _jsxs(Stack, { direction: "row", gap: 0.5, align: "center", children: [cursorPosition && (_jsxs("span", { className: styles["rst-json-editor-cursor"], children: ["Ln ", cursorPosition.line, ", Col ", cursorPosition.column] })), _jsx(Button, { size: "small", variant: "base", value: "Format", onClick: handleFormat, title: "Format JSON (Ctrl+Shift+F)" }), _jsx(Button, { size: "small", variant: "base", value: "Minify", onClick: handleMinify, title: "Minify JSON" }), _jsx(Button, { size: "small", variant: "base", value: "Copy", onClick: handleCopy, title: "Copy to clipboard" })] })] }), _jsxs("div", { className: styles["rst-json-editor-container"], children: [_jsx("div", { ref: lineNumbersRef, className: styles["rst-json-editor-line-numbers"], children: lineNumbers.map((num) => (_jsx("div", { className: `${styles["rst-json-editor-line-number"]} ${errorLines.has(num) ? styles["rst-json-editor-line-error"] : ""}`, children: num }, num))) }), _jsx("textarea", { ref: textareaRef, className: `${styles["rst-json-editor-textarea"]} ${!isValid ? styles["rst-json-editor-textarea-invalid"] : ""}`, value: localValue, onChange: handleChange, onScroll: handleScroll, onClick: updateCursorPosition, onKeyUp: updateCursorPosition, readOnly: readOnly, spellCheck: false, autoCapitalize: "off", autoCorrect: "off", autoComplete: "off", "data-gramm": "false" })] }), errors.length > 0 && (_jsxs("div", { className: styles["rst-json-editor-errors"], children: [_jsxs("div", { className: styles["rst-json-editor-errors-header"], children: ["Validation Errors (", errors.length, ")"] }), _jsx("div", { className: styles["rst-json-editor-errors-list"], children: errors.map((error, index) => (_jsxs("div", { className: styles["rst-json-editor-error-item"], children: [_jsx("span", { className: styles["rst-json-editor-error-path"], children: error.path || "(root)" }), _jsx("span", { className: styles["rst-json-editor-error-message"], children: error.message }), error.expected && _jsxs("span", { className: styles["rst-json-editor-error-expected"], children: ["Expected: ", error.expected] })] }, index))) })] }))] }));
|
|
101
|
-
};
|
|
102
|
-
LayoutJsonEditor.displayName = "LayoutJsonEditor";
|
|
103
|
-
//# sourceMappingURL=layout-json-editor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-json-editor.js","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-json-editor.tsx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M,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,eAAiB,SAAS,EAAE,MAAM,CAAC,4BAA4B,CAAC,aAC9D,eAAM,SAAS,EAAE,MAAM,CAAC,4BAA4B,CAAC,YAAG,KAAK,CAAC,IAAI,IAAI,QAAQ,GAAQ,EACtF,eAAM,SAAS,EAAE,MAAM,CAAC,+BAA+B,CAAC,YAAG,KAAK,CAAC,OAAO,GAAQ,EAC/E,KAAK,CAAC,QAAQ,IAAI,gBAAM,SAAS,EAAE,MAAM,CAAC,gCAAgC,CAAC,2BAAa,KAAK,CAAC,QAAQ,IAAQ,KAHvG,KAAK,CAIT,CACP,CAAC,GACE,IACF,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { useState, useCallback, useRef } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Hook for managing state with undo/redo history.
|
|
4
|
-
*
|
|
5
|
-
* @param initialState - The initial state value
|
|
6
|
-
* @param options - Configuration options
|
|
7
|
-
* @returns History management object with state and control methods
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* const { state, setState, undo, redo, canUndo, canRedo } = useHistory(initialLayout);
|
|
12
|
-
*
|
|
13
|
-
* // Update state (automatically tracked in history)
|
|
14
|
-
* setState(newLayout);
|
|
15
|
-
*
|
|
16
|
-
* // Undo/redo
|
|
17
|
-
* if (canUndo) undo();
|
|
18
|
-
* if (canRedo) redo();
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export function useHistory(initialState, options = {}) {
|
|
22
|
-
const { maxHistory = 50, isEqual } = options;
|
|
23
|
-
// Past states (for undo)
|
|
24
|
-
const [past, setPast] = useState([]);
|
|
25
|
-
// Current state
|
|
26
|
-
const [present, setPresent] = useState(initialState);
|
|
27
|
-
// Future states (for redo)
|
|
28
|
-
const [future, setFuture] = useState([]);
|
|
29
|
-
// Ref to track if we're in the middle of undo/redo operation
|
|
30
|
-
const isUndoRedoRef = useRef(false);
|
|
31
|
-
const setState = useCallback((newState) => {
|
|
32
|
-
// Skip if states are equal
|
|
33
|
-
if (isEqual && isEqual(present, newState)) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
// If this is a regular state update (not undo/redo), clear future
|
|
37
|
-
if (!isUndoRedoRef.current) {
|
|
38
|
-
setPast((prev) => {
|
|
39
|
-
const newPast = [...prev, present];
|
|
40
|
-
// Trim history to maxHistory
|
|
41
|
-
if (newPast.length > maxHistory) {
|
|
42
|
-
return newPast.slice(newPast.length - maxHistory);
|
|
43
|
-
}
|
|
44
|
-
return newPast;
|
|
45
|
-
});
|
|
46
|
-
setFuture([]);
|
|
47
|
-
}
|
|
48
|
-
setPresent(newState);
|
|
49
|
-
}, [present, maxHistory, isEqual]);
|
|
50
|
-
const undo = useCallback(() => {
|
|
51
|
-
if (past.length === 0)
|
|
52
|
-
return;
|
|
53
|
-
isUndoRedoRef.current = true;
|
|
54
|
-
const previous = past[past.length - 1];
|
|
55
|
-
const newPast = past.slice(0, past.length - 1);
|
|
56
|
-
setPast(newPast);
|
|
57
|
-
setPresent(previous);
|
|
58
|
-
setFuture((prev) => [present, ...prev]);
|
|
59
|
-
// Reset flag after state updates
|
|
60
|
-
requestAnimationFrame(() => {
|
|
61
|
-
isUndoRedoRef.current = false;
|
|
62
|
-
});
|
|
63
|
-
}, [past, present]);
|
|
64
|
-
const redo = useCallback(() => {
|
|
65
|
-
if (future.length === 0)
|
|
66
|
-
return;
|
|
67
|
-
isUndoRedoRef.current = true;
|
|
68
|
-
const next = future[0];
|
|
69
|
-
const newFuture = future.slice(1);
|
|
70
|
-
setPast((prev) => [...prev, present]);
|
|
71
|
-
setPresent(next);
|
|
72
|
-
setFuture(newFuture);
|
|
73
|
-
// Reset flag after state updates
|
|
74
|
-
requestAnimationFrame(() => {
|
|
75
|
-
isUndoRedoRef.current = false;
|
|
76
|
-
});
|
|
77
|
-
}, [future, present]);
|
|
78
|
-
const clearHistory = useCallback(() => {
|
|
79
|
-
setPast([]);
|
|
80
|
-
setFuture([]);
|
|
81
|
-
}, []);
|
|
82
|
-
const reset = useCallback((newInitialState) => {
|
|
83
|
-
setPast([]);
|
|
84
|
-
setPresent(newInitialState);
|
|
85
|
-
setFuture([]);
|
|
86
|
-
}, []);
|
|
87
|
-
return {
|
|
88
|
-
state: present,
|
|
89
|
-
setState,
|
|
90
|
-
undo,
|
|
91
|
-
redo,
|
|
92
|
-
canUndo: past.length > 0,
|
|
93
|
-
canRedo: future.length > 0,
|
|
94
|
-
clearHistory,
|
|
95
|
-
undoCount: past.length,
|
|
96
|
-
redoCount: future.length,
|
|
97
|
-
reset,
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=useHistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useHistory.js","sourceRoot":"","sources":["../../../../../src/custom-components/layout-builder/stories/hooks/useHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAgCtD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,UAAU,CACxB,YAAe,EACf,UAAgC,EAAE;IAElC,MAAM,EAAE,UAAU,GAAG,EAAE,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAE7C,yBAAyB;IACzB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAM,EAAE,CAAC,CAAC;IAC1C,gBAAgB;IAChB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAI,YAAY,CAAC,CAAC;IACxD,2BAA2B;IAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAM,EAAE,CAAC,CAAC;IAE9C,6DAA6D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;QACR,IAAI;QACJ,IAAI;QACJ,OAAO,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC;QAC1B,YAAY;QACZ,SAAS,EAAE,IAAI,CAAC,MAAM;QACtB,SAAS,EAAE,MAAM,CAAC,MAAM;QACxB,KAAK;KACN,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-types.js","sourceRoot":"","sources":["../../../src/custom-components/markdown/markdown-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function slugify(text) {
|
|
2
|
-
return text
|
|
3
|
-
.toLowerCase()
|
|
4
|
-
.trim()
|
|
5
|
-
.replace(/\s+/g, "-") // spaces → dashes
|
|
6
|
-
.replace(/[^\w-]+/g, "") // remove non-word chars
|
|
7
|
-
.replace(/--+/g, "-") // collapse multiple dashes
|
|
8
|
-
.replace(/^-+|-+$/g, ""); // trim leading/trailing dashes
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=markdown-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-utils.js","sourceRoot":"","sources":["../../../src/custom-components/markdown/markdown-utils.tsx"],"names":[],"mappings":"AAAA,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,OAAO,IAAI;SACR,WAAW,EAAE;SACb,IAAI,EAAE;SACN,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,kBAAkB;SACvC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,wBAAwB;SAChD,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,2BAA2B;SAChD,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,+BAA+B;AAC7D,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { MDXProvider } from "@mdx-js/react";
|
|
3
|
-
import { slugify } from "./markdown-utils";
|
|
4
|
-
import Banner from "../../components/banner/banner";
|
|
5
|
-
import { CodeBlock } from "../../components/code-block/code-block";
|
|
6
|
-
import { Graph } from "../../components/graph/graph";
|
|
7
|
-
import { Tag } from "../../components/tag/tag";
|
|
8
|
-
import Typography from "../../components/typography/typography";
|
|
9
|
-
// Components object
|
|
10
|
-
const components = {
|
|
11
|
-
h1: ({ children }) => (_jsxs(_Fragment, { children: [_jsx(Typography, { variant: "display", children: children }), _jsx("hr", {})] })),
|
|
12
|
-
h2: ({ children }) => {
|
|
13
|
-
const text = String(children);
|
|
14
|
-
const id = slugify(text);
|
|
15
|
-
return (_jsx(Typography, { id: id, variant: "heading", children: children }));
|
|
16
|
-
},
|
|
17
|
-
h3: ({ children }) => _jsx(Typography, { variant: "title", children: children }),
|
|
18
|
-
h4: ({ children }) => _jsx(Typography, { variant: "subtitle", children: children }),
|
|
19
|
-
p: ({ children }) => _jsx(Typography, { variant: "body", children: children }),
|
|
20
|
-
pre: ({ children }) => {
|
|
21
|
-
const child = children;
|
|
22
|
-
return _jsx(CodeBlock, { className: child.props.className, children: String(child.props.children) });
|
|
23
|
-
},
|
|
24
|
-
code: ({ children }) => _jsx(Typography, { variant: "code", children: children }),
|
|
25
|
-
ol: ({ children }) => _jsx("ol", { children: children }),
|
|
26
|
-
// Add custom syntax for list items
|
|
27
|
-
li: ({ children }) => (_jsx("li", { children: _jsx(Typography, { variant: "body", children: children }) })),
|
|
28
|
-
img: ({ src, alt }) => (_jsxs("figure", { children: [_jsx("img", { src: src ?? "", alt: alt ?? "", style: { maxWidth: "100%" } }), alt && (_jsx("figcaption", { children: _jsx(Typography, { variant: "label", children: alt }) }))] })),
|
|
29
|
-
Graph,
|
|
30
|
-
Tag,
|
|
31
|
-
Banner,
|
|
32
|
-
};
|
|
33
|
-
// Markdown component
|
|
34
|
-
export const Markdown = ({ content: Content }) => {
|
|
35
|
-
if (!Content)
|
|
36
|
-
return null;
|
|
37
|
-
return (_jsx(MDXProvider, { components: components, children: _jsx(Content, { components: components }) }));
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=markdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../../src/custom-components/markdown/markdown.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,MAAM,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,UAAU,MAAM,wCAAwC,CAAC;AAEhE,oBAAoB;AACpB,MAAM,UAAU,GAAkB;IAChC,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACpB,8BACE,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,YAAE,QAAQ,GAAc,EACrD,cAAM,IACL,CACJ;IACD,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QACnB,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC9B,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAEzB,OAAO,CACL,KAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAC,SAAS,YAClC,QAAQ,GACE,CACd,CAAC;IACJ,CAAC;IACD,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,YAAE,QAAQ,GAAc;IACzE,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EA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E,EAAE;IACxE,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,OAAO,CACL,KAAC,WAAW,IAAC,UAAU,EAAE,UAAU,YACjC,KAAC,OAAO,IAAC,UAAU,EAAE,UAAU,GAAI,GACvB,CACf,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/custom-components/mindmap/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mind-tree-types.js","sourceRoot":"","sources":["../../../src/custom-components/mindmap/mind-tree-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React, { useState, useRef, useCallback, useMemo } from "react";
|
|
3
|
-
import { ReingoldTilfordLayout } from "./reingold-tilford-algorithm";
|
|
4
|
-
import styles from "./mind-tree.module.css";
|
|
5
|
-
import { Button } from "../../components/button/button";
|
|
6
|
-
import Typography from "../../components/typography/typography";
|
|
7
|
-
export function MindTree({ data, width = 800, height = 600, nodeSpacing = 80, levelSpacing = 100, nodeWidth = 120, nodeHeight = 40, interactive = true, renderNode, renderLink, onNodeClick, onNodeToggle, layoutType = "hierarchical", className, }) {
|
|
8
|
-
const [collapsedNodes, setCollapsedNodes] = useState(new Set());
|
|
9
|
-
const [transform, setTransform] = useState({ x: 0, y: 0, scale: 1 });
|
|
10
|
-
const [isDragging, setIsDragging] = useState(false);
|
|
11
|
-
const [dragStart, setDragStart] = useState({ x: 0, y: 0 });
|
|
12
|
-
const svgRef = useRef(null);
|
|
13
|
-
// Predefined zoom levels for better UX
|
|
14
|
-
const zoomLevels = useMemo(() => [0.25, 0.5, 0.75, 1, 1.25, 1.5, 2, 3], []);
|
|
15
|
-
const currentZoomIndex = zoomLevels.findIndex((level) => Math.abs(level - transform.scale) < 0.01) ??
|
|
16
|
-
zoomLevels.reduce((closest, level, index) => (Math.abs(level - transform.scale) < Math.abs(zoomLevels[closest] - transform.scale) ? index : closest), 0);
|
|
17
|
-
// Calculate layout using Reingold-Tilford algorithm (always process all nodes)
|
|
18
|
-
const layout = useMemo(() => {
|
|
19
|
-
const algorithm = new ReingoldTilfordLayout({
|
|
20
|
-
siblingSpacing: nodeSpacing,
|
|
21
|
-
levelSpacing: levelSpacing,
|
|
22
|
-
nodeWidth: nodeWidth,
|
|
23
|
-
nodeHeight: nodeHeight,
|
|
24
|
-
layoutType: layoutType,
|
|
25
|
-
});
|
|
26
|
-
return algorithm.layout(data);
|
|
27
|
-
}, [data, nodeSpacing, levelSpacing, nodeWidth, nodeHeight, layoutType]);
|
|
28
|
-
// Calculate which nodes should be visible based on collapsed ancestors
|
|
29
|
-
const visibleNodes = useMemo(() => {
|
|
30
|
-
if (!layout)
|
|
31
|
-
return new Set();
|
|
32
|
-
const visible = new Set();
|
|
33
|
-
function checkVisibility(node) {
|
|
34
|
-
// Root is always visible
|
|
35
|
-
if (!node.parent) {
|
|
36
|
-
visible.add(node.id);
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
// Node is visible if parent is visible and not collapsed
|
|
40
|
-
const parentVisible = visible.has(node.parent.id);
|
|
41
|
-
const parentCollapsed = collapsedNodes.has(node.parent.id);
|
|
42
|
-
if (parentVisible && !parentCollapsed) {
|
|
43
|
-
visible.add(node.id);
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
// Traverse nodes in depth-first order to ensure parents are processed first
|
|
49
|
-
function traverse(node) {
|
|
50
|
-
checkVisibility(node);
|
|
51
|
-
if (node.children) {
|
|
52
|
-
node.children.forEach(traverse);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
traverse(layout.root);
|
|
56
|
-
return visible;
|
|
57
|
-
}, [layout, collapsedNodes]);
|
|
58
|
-
// Handle node toggle (collapse/expand)
|
|
59
|
-
const handleNodeToggle = useCallback((node) => {
|
|
60
|
-
if (!node.children || node.children.length === 0)
|
|
61
|
-
return;
|
|
62
|
-
setCollapsedNodes((prev) => {
|
|
63
|
-
const newSet = new Set(prev);
|
|
64
|
-
if (newSet.has(node.id)) {
|
|
65
|
-
newSet.delete(node.id);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
newSet.add(node.id);
|
|
69
|
-
}
|
|
70
|
-
return newSet;
|
|
71
|
-
});
|
|
72
|
-
onNodeToggle?.(node);
|
|
73
|
-
}, [onNodeToggle]);
|
|
74
|
-
// Handle node click
|
|
75
|
-
const handleNodeClick = useCallback((node) => {
|
|
76
|
-
onNodeClick?.(node);
|
|
77
|
-
}, [onNodeClick]);
|
|
78
|
-
// Pan and zoom handlers
|
|
79
|
-
const handleMouseDown = useCallback((e) => {
|
|
80
|
-
if (!interactive)
|
|
81
|
-
return;
|
|
82
|
-
setIsDragging(true);
|
|
83
|
-
setDragStart({ x: e.clientX - transform.x, y: e.clientY - transform.y });
|
|
84
|
-
}, [interactive, transform]);
|
|
85
|
-
const handleMouseMove = useCallback((e) => {
|
|
86
|
-
if (!isDragging || !interactive)
|
|
87
|
-
return;
|
|
88
|
-
setTransform((prev) => ({
|
|
89
|
-
...prev,
|
|
90
|
-
x: e.clientX - dragStart.x,
|
|
91
|
-
y: e.clientY - dragStart.y,
|
|
92
|
-
}));
|
|
93
|
-
}, [isDragging, interactive, dragStart]);
|
|
94
|
-
const handleMouseUp = useCallback(() => {
|
|
95
|
-
setIsDragging(false);
|
|
96
|
-
}, []);
|
|
97
|
-
const handleWheel = useCallback((e) => {
|
|
98
|
-
if (!interactive)
|
|
99
|
-
return;
|
|
100
|
-
e.preventDefault();
|
|
101
|
-
const delta = e.deltaY > 0 ? 0.9 : 1.1;
|
|
102
|
-
const newScale = Math.max(0.1, Math.min(3, transform.scale * delta));
|
|
103
|
-
setTransform((prev) => ({
|
|
104
|
-
...prev,
|
|
105
|
-
scale: newScale,
|
|
106
|
-
}));
|
|
107
|
-
}, [interactive, transform.scale]);
|
|
108
|
-
// Add wheel event listener with { passive: false } to allow preventDefault
|
|
109
|
-
React.useEffect(() => {
|
|
110
|
-
const svgElement = svgRef.current;
|
|
111
|
-
if (!svgElement)
|
|
112
|
-
return;
|
|
113
|
-
const wheelHandler = (e) => handleWheel(e);
|
|
114
|
-
svgElement.addEventListener("wheel", wheelHandler, { passive: false });
|
|
115
|
-
return () => {
|
|
116
|
-
svgElement.removeEventListener("wheel", wheelHandler);
|
|
117
|
-
};
|
|
118
|
-
}, [handleWheel]);
|
|
119
|
-
// Control functions with discrete zoom levels
|
|
120
|
-
const zoomIn = useCallback(() => {
|
|
121
|
-
const nextIndex = Math.min(zoomLevels.length - 1, currentZoomIndex + 1);
|
|
122
|
-
setTransform((prev) => ({
|
|
123
|
-
...prev,
|
|
124
|
-
scale: zoomLevels[nextIndex],
|
|
125
|
-
}));
|
|
126
|
-
}, [currentZoomIndex, zoomLevels]);
|
|
127
|
-
const zoomOut = useCallback(() => {
|
|
128
|
-
const prevIndex = Math.max(0, currentZoomIndex - 1);
|
|
129
|
-
setTransform((prev) => ({
|
|
130
|
-
...prev,
|
|
131
|
-
scale: zoomLevels[prevIndex],
|
|
132
|
-
}));
|
|
133
|
-
}, [currentZoomIndex, zoomLevels]);
|
|
134
|
-
const resetView = useCallback(() => {
|
|
135
|
-
setTransform({ x: 0, y: 0, scale: 1 });
|
|
136
|
-
}, []);
|
|
137
|
-
const fitToView = useCallback(() => {
|
|
138
|
-
if (!layout || !svgRef.current)
|
|
139
|
-
return;
|
|
140
|
-
const padding = 50;
|
|
141
|
-
const scaleX = (width - padding * 2) / layout.width;
|
|
142
|
-
const scaleY = (height - padding * 2) / layout.height;
|
|
143
|
-
const scale = Math.min(scaleX, scaleY, 1);
|
|
144
|
-
const x = (width - layout.width * scale) / 2;
|
|
145
|
-
const y = (height - layout.height * scale) / 2;
|
|
146
|
-
setTransform({ x, y, scale });
|
|
147
|
-
}, [layout, width, height]);
|
|
148
|
-
// Auto-fit on initial render
|
|
149
|
-
// useEffect(() => {
|
|
150
|
-
// if (layout) {
|
|
151
|
-
// fitToView();
|
|
152
|
-
// }
|
|
153
|
-
// }, [layout, fitToView]);
|
|
154
|
-
// Helper function to find original node data
|
|
155
|
-
const findOriginalNode = useCallback((rootNode, id) => {
|
|
156
|
-
function findNode(node, targetId) {
|
|
157
|
-
if (node.id === targetId)
|
|
158
|
-
return node;
|
|
159
|
-
if (node.children) {
|
|
160
|
-
for (const child of node.children) {
|
|
161
|
-
const found = findNode(child, targetId);
|
|
162
|
-
if (found)
|
|
163
|
-
return found;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
return null;
|
|
167
|
-
}
|
|
168
|
-
return findNode(rootNode, id);
|
|
169
|
-
}, []);
|
|
170
|
-
// Default node renderer
|
|
171
|
-
const defaultNodeRenderer = useCallback((node, isRoot) => {
|
|
172
|
-
// Check original data for children (not layout children which might be filtered)
|
|
173
|
-
const originalNode = findOriginalNode(data, node.id);
|
|
174
|
-
const hasChildren = originalNode?.children && originalNode.children.length > 0;
|
|
175
|
-
const isCollapsed = collapsedNodes.has(node.id);
|
|
176
|
-
return (_jsxs("g", { className: styles["rst-mind-tree-node"], children: [_jsx("rect", { className: `${styles["rst-mind-tree-node-rect"]} ${isRoot ? styles.root : ""}`, x: -nodeWidth / 2, y: -nodeHeight / 2, width: nodeWidth, height: nodeHeight, onClick: () => handleNodeClick(node) }), _jsx("text", { className: `${styles["rst-mind-tree-node-text"]} ${isRoot ? styles.root : ""}`, onClick: () => handleNodeClick(node), children: node.id }), hasChildren && (_jsxs("g", { className: styles["rst-mind-tree-expand-button"], transform: `translate(${nodeWidth / 2 - 10}, 0)`, onClick: (e) => {
|
|
177
|
-
e.stopPropagation();
|
|
178
|
-
handleNodeToggle(node);
|
|
179
|
-
}, children: [_jsx("circle", { className: styles["rst-mind-tree-expand-button-circle"], r: "8" }), _jsx("text", { className: styles["rst-mind-tree-expand-button-text"], children: isCollapsed ? "+" : "−" })] }))] }));
|
|
180
|
-
}, [findOriginalNode, data, collapsedNodes, nodeWidth, nodeHeight, handleNodeClick, handleNodeToggle]);
|
|
181
|
-
// Default link renderer
|
|
182
|
-
const defaultLinkRenderer = useCallback((source, target) => {
|
|
183
|
-
const sourceX = source.x;
|
|
184
|
-
const sourceY = source.y + nodeHeight / 2;
|
|
185
|
-
const targetX = target.x;
|
|
186
|
-
const targetY = target.y - nodeHeight / 2;
|
|
187
|
-
// Curved link path
|
|
188
|
-
const midY = sourceY + (targetY - sourceY) / 2;
|
|
189
|
-
const path = `M ${sourceX},${sourceY}
|
|
190
|
-
C ${sourceX},${midY} ${targetX},${midY} ${targetX},${targetY}`;
|
|
191
|
-
return _jsx("path", { className: styles["rst-mind-tree-link"], d: path }, `${source.id}-${target.id}`);
|
|
192
|
-
}, [nodeHeight]);
|
|
193
|
-
if (!layout)
|
|
194
|
-
return null;
|
|
195
|
-
return (_jsxs("div", { className: `${styles["rst-mind-tree"]} ${className || ""}`, children: [_jsx("svg", { ref: svgRef, className: styles["rst-mind-tree-svg"], width: width, height: height, onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, style: { cursor: isDragging ? "grabbing" : "grab" }, children: _jsxs("g", { className: styles["rst-mind-tree-container"], transform: `translate(${transform.x}, ${transform.y}) scale(${transform.scale})`, children: [_jsx("g", { children: layout.nodes.map((node) => node.children
|
|
196
|
-
?.filter((child) => visibleNodes.has(node.id) && visibleNodes.has(child.id))
|
|
197
|
-
.map((child) => (renderLink ? renderLink(node, child) : defaultLinkRenderer(node, child))) || []) }), _jsx("g", { children: layout.nodes
|
|
198
|
-
.filter((node) => visibleNodes.has(node.id))
|
|
199
|
-
.map((node) => (_jsx("g", { transform: `translate(${node.x}, ${node.y})`, children: renderNode ? renderNode(node, node === layout.root) : defaultNodeRenderer(node, node === layout.root) }, node.id))) })] }) }), interactive && (_jsxs("div", { className: styles["rst-mind-tree-controls"], children: [_jsxs("div", { className: styles["rst-mind-tree-zoom-group"], children: [_jsx(Button, { onClick: zoomOut, value: "-", disabled: currentZoomIndex === 0, title: "Zoom Out" }), _jsx("div", { className: styles["rst-mind-tree-zoom-slider-container"], children: _jsxs(Typography, { variant: "body", children: [Math.round(transform.scale * 100), "%"] }) }), _jsx(Button, { onClick: zoomIn, value: "+", title: "Zoom In", disabled: currentZoomIndex === zoomLevels.length - 1 })] }), _jsx(Button, { onClick: fitToView, value: "⌂", title: "Fit to View" }), _jsx(Button, { onClick: resetView, value: "⟲", title: "Reset View" })] }))] }));
|
|
200
|
-
}
|
|
201
|
-
//# sourceMappingURL=mind-tree.js.map
|