@restio/ui 0.0.9-SNAPSHOT → 0.0.10-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/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 +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/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/markdown-types.d.ts +3 -3
- package/dist/custom-components/markdown/markdown.d.ts +2 -2
- 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/table-grid/ai-assistant/ai-assistant-executor.d.ts +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 +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +2 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +2 -2
- 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/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-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-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/selection/selection-utils.d.ts +2 -2
- 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 +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-types.d.ts +18 -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 +2 -2
- package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-utils.d.ts +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 +0 -1
- package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +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/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 +109 -0
- package/dist/restio-ui.es.js +35079 -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-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,157 +0,0 @@
|
|
|
1
|
-
import { toolDefinitions } from "./ai-assistant-tools";
|
|
2
|
-
import { validateToolCalls as validateToolCallsGeneric, resolveColumnId, normalizeOperator, } from "../../../providers/ai-assistant/ai-assistant-validator";
|
|
3
|
-
function resolveConditionColumns(conditions, schema) {
|
|
4
|
-
const resolved = [];
|
|
5
|
-
const errors = [];
|
|
6
|
-
for (const cond of conditions) {
|
|
7
|
-
if (typeof cond !== "object" || cond === null) {
|
|
8
|
-
errors.push("Invalid condition: expected an object");
|
|
9
|
-
continue;
|
|
10
|
-
}
|
|
11
|
-
const c = cond;
|
|
12
|
-
const colRef = String(c.column ?? "");
|
|
13
|
-
const colId = resolveColumnId(colRef, schema);
|
|
14
|
-
if (!colId) {
|
|
15
|
-
errors.push(`Unknown column "${colRef}"`);
|
|
16
|
-
continue;
|
|
17
|
-
}
|
|
18
|
-
resolved.push({
|
|
19
|
-
column: colId,
|
|
20
|
-
operator: normalizeOperator(String(c.operator ?? "equals")),
|
|
21
|
-
value: c.value,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return { resolved, errors };
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Table-grid-specific resolver that handles column reference resolution
|
|
28
|
-
* for each known table tool.
|
|
29
|
-
*/
|
|
30
|
-
function resolveTableGridCall(call, schema) {
|
|
31
|
-
const resolved = { ...call, arguments: { ...call.arguments } };
|
|
32
|
-
const errors = [];
|
|
33
|
-
switch (call.tool) {
|
|
34
|
-
case "select_rows": {
|
|
35
|
-
const conditions = call.arguments.conditions;
|
|
36
|
-
if (!Array.isArray(conditions)) {
|
|
37
|
-
return { resolved: null, errors: ['Tool "select_rows" requires "conditions" to be an array'] };
|
|
38
|
-
}
|
|
39
|
-
const r = resolveConditionColumns(conditions, schema);
|
|
40
|
-
if (r.errors.length > 0)
|
|
41
|
-
return { resolved: null, errors: r.errors };
|
|
42
|
-
resolved.arguments = { conditions: r.resolved };
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
case "sort": {
|
|
46
|
-
const colRef = String(call.arguments.column ?? "");
|
|
47
|
-
const colId = resolveColumnId(colRef, schema);
|
|
48
|
-
if (!colId)
|
|
49
|
-
return { resolved: null, errors: [`Sort: unknown column "${colRef}"`] };
|
|
50
|
-
resolved.arguments = { ...call.arguments, column: colId };
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
case "column_visibility": {
|
|
54
|
-
const colRef = String(call.arguments.column ?? "");
|
|
55
|
-
const colId = resolveColumnId(colRef, schema);
|
|
56
|
-
if (!colId)
|
|
57
|
-
return { resolved: null, errors: [`Column visibility: unknown column "${colRef}"`] };
|
|
58
|
-
resolved.arguments = { ...call.arguments, column: colId };
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
case "column_order": {
|
|
62
|
-
const order = call.arguments.order;
|
|
63
|
-
if (!Array.isArray(order))
|
|
64
|
-
return { resolved: null, errors: ['Tool "column_order" requires "order" to be an array'] };
|
|
65
|
-
resolved.arguments = { order: order.map((ref) => resolveColumnId(String(ref), schema) ?? String(ref)) };
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
case "edit_cells": {
|
|
69
|
-
const edits = call.arguments.edits;
|
|
70
|
-
if (!Array.isArray(edits))
|
|
71
|
-
return { resolved: null, errors: ['Tool "edit_cells" requires "edits" to be an array'] };
|
|
72
|
-
const resolvedEdits = [];
|
|
73
|
-
for (const edit of edits) {
|
|
74
|
-
const e = edit;
|
|
75
|
-
const colRef = String(e.column ?? "");
|
|
76
|
-
const colId = resolveColumnId(colRef, schema);
|
|
77
|
-
if (!colId)
|
|
78
|
-
return { resolved: null, errors: [`Edit: unknown column "${colRef}"`] };
|
|
79
|
-
resolvedEdits.push({ ...e, column: colId });
|
|
80
|
-
}
|
|
81
|
-
resolved.arguments = { edits: resolvedEdits };
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
case "group_by": {
|
|
85
|
-
const cols = call.arguments.columns;
|
|
86
|
-
if (!Array.isArray(cols))
|
|
87
|
-
return { resolved: null, errors: ['Tool "group_by" requires "columns" to be an array'] };
|
|
88
|
-
const resolvedCols = [];
|
|
89
|
-
for (const ref of cols) {
|
|
90
|
-
const colId = resolveColumnId(String(ref), schema);
|
|
91
|
-
if (!colId)
|
|
92
|
-
return { resolved: null, errors: [`Group by: unknown column "${ref}"`] };
|
|
93
|
-
resolvedCols.push(colId);
|
|
94
|
-
}
|
|
95
|
-
resolved.arguments = { columns: resolvedCols };
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
case "pin_column": {
|
|
99
|
-
const colRef = String(call.arguments.column ?? "");
|
|
100
|
-
const colId = resolveColumnId(colRef, schema);
|
|
101
|
-
if (!colId)
|
|
102
|
-
return { resolved: null, errors: [`Pin column: unknown column "${colRef}"`] };
|
|
103
|
-
resolved.arguments = { ...call.arguments, column: colId };
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
case "multi_sort": {
|
|
107
|
-
const sorts = call.arguments.sorts;
|
|
108
|
-
if (!Array.isArray(sorts))
|
|
109
|
-
return { resolved: null, errors: ['Tool "multi_sort" requires "sorts" to be an array'] };
|
|
110
|
-
const resolvedSorts = [];
|
|
111
|
-
for (const s of sorts) {
|
|
112
|
-
const entry = s;
|
|
113
|
-
const colRef = String(entry.column ?? "");
|
|
114
|
-
const colId = resolveColumnId(colRef, schema);
|
|
115
|
-
if (!colId)
|
|
116
|
-
return { resolved: null, errors: [`Multi sort: unknown column "${colRef}"`] };
|
|
117
|
-
resolvedSorts.push({ ...entry, column: colId });
|
|
118
|
-
}
|
|
119
|
-
resolved.arguments = { sorts: resolvedSorts };
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
case "clear_state": {
|
|
123
|
-
// No arguments to resolve
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
case "create_formula": {
|
|
127
|
-
// formula is a raw expression using accessorKeys — no column ID resolution needed
|
|
128
|
-
if (typeof call.arguments.header !== "string" || !call.arguments.header) {
|
|
129
|
-
return { resolved: null, errors: ['Tool "create_formula" requires a non-empty "header" string'] };
|
|
130
|
-
}
|
|
131
|
-
if (typeof call.arguments.formula !== "string" || !call.arguments.formula) {
|
|
132
|
-
return { resolved: null, errors: ['Tool "create_formula" requires a non-empty "formula" string'] };
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
case "fill_column_from_column": {
|
|
137
|
-
const targetRef = String(call.arguments.targetColumn ?? "");
|
|
138
|
-
const sourceRef = String(call.arguments.sourceColumn ?? "");
|
|
139
|
-
const targetId = resolveColumnId(targetRef, schema);
|
|
140
|
-
if (!targetId)
|
|
141
|
-
return { resolved: null, errors: [`Fill column: unknown target column "${targetRef}"`] };
|
|
142
|
-
const sourceId = resolveColumnId(sourceRef, schema);
|
|
143
|
-
if (!sourceId)
|
|
144
|
-
return { resolved: null, errors: [`Fill column: unknown source column "${sourceRef}"`] };
|
|
145
|
-
const edits = call.arguments.edits;
|
|
146
|
-
if (!Array.isArray(edits))
|
|
147
|
-
return { resolved: null, errors: ['Tool "fill_column_from_column" requires "edits" to be an array'] };
|
|
148
|
-
resolved.arguments = { ...call.arguments, targetColumn: targetId, sourceColumn: sourceId };
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
return { resolved, errors };
|
|
153
|
-
}
|
|
154
|
-
export function validateToolCalls(calls, schema) {
|
|
155
|
-
return validateToolCallsGeneric(calls, toolDefinitions, schema, resolveTableGridCall);
|
|
156
|
-
}
|
|
157
|
-
//# sourceMappingURL=ai-assistant-validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-assistant-validator.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-validator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACL,iBAAiB,IAAI,wBAAwB,EAE7C,eAAe,EACf,iBAAiB,GAClB,MAAM,wDAAwD,CAAC;AAIhE,SAAS,uBAAuB,CAAC,UAAqB,EAAE,MAAsB;IAC5E,MAAM,QAAQ,GAA0B,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAa,EAAE,CAAC;IAE5B,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;QAC9B,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YAC9C,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;YACrD,SAAS;QACX,CAAC;QACD,MAAM,CAAC,GAAG,IAA+B,CAAC;QAC1C,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;QACtC,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,CAAC,IAAI,CAAC,mBAAmB,MAAM,GAAG,CAAC,CAAC;YAC1C,SAAS;QACX,CAAC;QACD,QAAQ,CAAC,IAAI,CAAC;YACZ,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAoC;YAC9F,KAAK,EAAE,CAAC,CAAC,KAAK;SACf,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,QA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AAuC,SAAS,GAAG,CAAC,EAAE,CAAC;YACxG,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;YACnC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;gBAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,gEAAgE,CAAC,EAAE,CAAC;YACjI,QAAQ,CAAC,SAAS,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC;YAC3F,MAAM;QACR,CAAC;IACH,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAiB,EAAE,MAAsB;IACzE,OAAO,wBAAwB,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACxF,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Automatically infer value types from strings.
|
|
3
|
-
* Converts to number, boolean, null, date, or fallback string.
|
|
4
|
-
* Accepts `unknown` to handle ragged CSV rows where a column value may be undefined.
|
|
5
|
-
*/
|
|
6
|
-
export function autoDetect(value) {
|
|
7
|
-
const trimmed = String(value ?? "").trim();
|
|
8
|
-
if (trimmed === "")
|
|
9
|
-
return null;
|
|
10
|
-
// boolean
|
|
11
|
-
if (trimmed === "true")
|
|
12
|
-
return true;
|
|
13
|
-
if (trimmed === "false")
|
|
14
|
-
return false;
|
|
15
|
-
// number
|
|
16
|
-
const num = Number(trimmed);
|
|
17
|
-
if (!isNaN(num) && trimmed !== "")
|
|
18
|
-
return num;
|
|
19
|
-
// ISO date?
|
|
20
|
-
if (trimmed.includes("-")) {
|
|
21
|
-
const date = new Date(trimmed);
|
|
22
|
-
if (!isNaN(date.getTime()))
|
|
23
|
-
return date;
|
|
24
|
-
}
|
|
25
|
-
return trimmed;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=autoDetect.js.map
|
package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoDetect.js","sourceRoot":"","sources":["../../../../../../src/data-components/table-grid/external-functionalities/import/csv/autoDetect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAE3C,IAAI,OAAO,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IAEhC,UAAU;IACV,IAAI,OAAO,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IACpC,IAAI,OAAO,KAAK,OAAO;QAAE,OAAO,KAAK,CAAC;IAEtC,SAAS;IACT,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAC5B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,OAAO,KAAK,EAAE;QAAE,OAAO,GAAG,CAAC;IAE9C,YAAY;IACZ,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAAE,OAAO,IAAI,CAAC;IAC1C,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { csvToObjects } from "./csvToObj";
|
|
2
|
-
import { detectDelimiter } from "./detectDelimeter";
|
|
3
|
-
import { inferColumns } from "./inferColumns";
|
|
4
|
-
/**
|
|
5
|
-
* Read a CSV/TSV/custom-delimited file and convert it into
|
|
6
|
-
* { data, columns } matching DataStructureComponent<TData> props.
|
|
7
|
-
*/
|
|
8
|
-
export async function createDataStructureFromFile(file) {
|
|
9
|
-
try {
|
|
10
|
-
const text = await file.text();
|
|
11
|
-
const delimiter = detectDelimiter(text);
|
|
12
|
-
const data = csvToObjects(text, delimiter);
|
|
13
|
-
const columns = inferColumns(data);
|
|
14
|
-
return { data, columns };
|
|
15
|
-
}
|
|
16
|
-
catch (err) {
|
|
17
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
18
|
-
throw new Error(`Failed to parse file "${file.name}": ${message}`);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=createDataStructureFromFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createDataStructureFromFile.js","sourceRoot":"","sources":["../../../../../../src/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAE/C,IAAU;IACV,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAC/B,MAAM,SAAS,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;QACxC,MAAM,IAAI,GAAG,YAAY,CAAQ,IAAI,EAAE,SAAS,CAAC,CAAC;QAClD,MAAM,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;QACnC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC3B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjE,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,CAAC,IAAI,MAAM,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;AACH,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { autoDetect } from "./autoDetect";
|
|
2
|
-
import { parseDelimited } from "./parseDelimeted";
|
|
3
|
-
/**
|
|
4
|
-
* Convert delimited text into structured objects.
|
|
5
|
-
* First row is treated as the header.
|
|
6
|
-
*/
|
|
7
|
-
export function csvToObjects(text, delimiter) {
|
|
8
|
-
const rows = parseDelimited(text, delimiter);
|
|
9
|
-
if (rows.length === 0)
|
|
10
|
-
return [];
|
|
11
|
-
const headers = rows[0];
|
|
12
|
-
const dataRows = rows.slice(1);
|
|
13
|
-
return dataRows.map((cols, rowIndex) => {
|
|
14
|
-
const obj = { id: `csv-row-${rowIndex + 1}` };
|
|
15
|
-
headers.forEach((h, i) => {
|
|
16
|
-
obj[h] = autoDetect(cols[i]);
|
|
17
|
-
});
|
|
18
|
-
return obj;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=csvToObj.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"csvToObj.js","sourceRoot":"","sources":["../../../../../../src/data-components/table-grid/external-functionalities/import/csv/csvToObj.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;GAGG;AACH,MAAM,UAAU,YAAY,CAC1B,IAAY,EACZ,SAAiB;IAEjB,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC7C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACxB,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE/B,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QACrC,MAAM,GAAG,GAA4B,EAAE,EAAE,EAAE,WAAW,QAAQ,GAAG,CAAC,EAAE,EAAE,CAAC;QACvE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACvB,GAAG,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;QACH,OAAO,GAAuB,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detects the delimiter used in the file.
|
|
3
|
-
* Priority: tab → semicolon → comma.
|
|
4
|
-
*/
|
|
5
|
-
export function detectDelimiter(text) {
|
|
6
|
-
if (text.includes("\t"))
|
|
7
|
-
return "\t";
|
|
8
|
-
if (text.includes(";"))
|
|
9
|
-
return ";";
|
|
10
|
-
return ","; // default CSV
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=detectDelimeter.js.map
|
package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"detectDelimeter.js","sourceRoot":"","sources":["../../../../../../src/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACrC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,GAAG,CAAC;IACnC,OAAO,GAAG,CAAC,CAAC,cAAc;AAC5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/data-components/table-grid/external-functionalities/import/csv/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Infer ColumnDef<TData> from the first object row for TableGrid.
|
|
3
|
-
*/
|
|
4
|
-
export function inferColumns(data) {
|
|
5
|
-
if (data.length === 0)
|
|
6
|
-
return [];
|
|
7
|
-
return Object.keys(data[0]).map((key) => ({
|
|
8
|
-
id: key,
|
|
9
|
-
header: key.charAt(0).toUpperCase() + key.slice(1), // Capitalize header
|
|
10
|
-
accessorKey: key,
|
|
11
|
-
enableEditing: key !== 'id', // Don't allow editing the ID column
|
|
12
|
-
size: key === 'id' ? 80 : 150, // Smaller width for ID column
|
|
13
|
-
}));
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=inferColumns.js.map
|
package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inferColumns.js","sourceRoot":"","sources":["../../../../../../src/data-components/table-grid/external-functionalities/import/csv/inferColumns.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,UAAU,YAAY,CAC1B,IAAa;IAEb,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEjC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACxC,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,oBAAoB;QACxE,WAAW,EAAE,GAAkB;QAC/B,aAAa,EAAE,GAAG,KAAK,IAAI,EAAE,oCAAoC;QACjE,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,8BAA8B;KAC9D,CAAC,CAAC,CAAC;AACN,CAAC"}
|
package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic delimited parser.
|
|
3
|
-
* Supports CSV, TSV, semicolon-separated, pipe-separated, etc.
|
|
4
|
-
* Handles quoted values, escaped quotes, and newlines.
|
|
5
|
-
*/
|
|
6
|
-
export const parseDelimited = (text, delimiter) => {
|
|
7
|
-
const rows = [];
|
|
8
|
-
let row = [];
|
|
9
|
-
let current = "";
|
|
10
|
-
let insideQuotes = false;
|
|
11
|
-
for (let i = 0; i < text.length; i++) {
|
|
12
|
-
const char = text[i];
|
|
13
|
-
const next = text[i + 1];
|
|
14
|
-
// escaped quote ("")
|
|
15
|
-
if (char === '"' && insideQuotes && next === '"') {
|
|
16
|
-
current += '"';
|
|
17
|
-
i++;
|
|
18
|
-
continue;
|
|
19
|
-
}
|
|
20
|
-
// toggle quotes
|
|
21
|
-
if (char === '"') {
|
|
22
|
-
insideQuotes = !insideQuotes;
|
|
23
|
-
continue;
|
|
24
|
-
}
|
|
25
|
-
// delimiter reached
|
|
26
|
-
if (char === delimiter && !insideQuotes) {
|
|
27
|
-
row.push(current);
|
|
28
|
-
current = "";
|
|
29
|
-
continue;
|
|
30
|
-
}
|
|
31
|
-
// newline outside quotes
|
|
32
|
-
if ((char === "\n" || char === "\r") && !insideQuotes) {
|
|
33
|
-
if (current.length || row.length) {
|
|
34
|
-
row.push(current);
|
|
35
|
-
rows.push(row);
|
|
36
|
-
row = [];
|
|
37
|
-
current = "";
|
|
38
|
-
}
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
current += char;
|
|
42
|
-
}
|
|
43
|
-
// push last row
|
|
44
|
-
if (current.length || row.length) {
|
|
45
|
-
row.push(current);
|
|
46
|
-
rows.push(row);
|
|
47
|
-
}
|
|
48
|
-
return rows;
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=parseDelimeted.js.map
|
package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseDelimeted.js","sourceRoot":"","sources":["../../../../../../src/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,SAAiB,EAAc,EAAE;IAC5E,MAAM,IAAI,GAAe,EAAE,CAAC;IAC5B,IAAI,GAAG,GAAa,EAAE,CAAC;IACvB,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,YAAY,GAAG,KAAK,CAAC;IAEzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAEzB,qBAAqB;QACrB,IAAI,IAAI,KAAK,GAAG,IAAI,YAAY,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;YACjD,OAAO,IAAI,GAAG,CAAC;YACf,CAAC,EAAE,CAAC;YACJ,SAAS;QACX,CAAC;QAED,gBAAgB;QAChB,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;YACjB,YAAY,GAAG,CAAC,YAAY,CAAC;YAC7B,SAAS;QACX,CAAC;QAED,oBAAoB;QACpB,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,YAAY,EAAE,CAAC;YACxC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClB,OAAO,GAAG,EAAE,CAAC;YACb,SAAS;QACX,CAAC;QAED,yBAAyB;QACzB,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YACtD,IAAI,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;gBACjC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACf,GAAG,GAAG,EAAE,CAAC;gBACT,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,SAAS;QACX,CAAC;QAED,OAAO,IAAI,IAAI,CAAC;IAClB,CAAC;IAED,gBAAgB;IAChB,IAAI,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;QACjC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-grid-footer-types.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/footer/table-grid-footer-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useTable } from "../hooks/use-table";
|
|
3
|
-
import { getColId } from "../table-utils";
|
|
4
|
-
import styles from "../table-grid.module.css";
|
|
5
|
-
import { aggregate, formatAggregated } from "../aggregation/aggregation-utils";
|
|
6
|
-
import { hasLeftPinnedColumns } from "../pinning/pinning-utils";
|
|
7
|
-
export function TableGridFooter({ columnOffsets }) {
|
|
8
|
-
const { visibleColumns, data, options } = useTable();
|
|
9
|
-
const { stickyFooter, enableSelection } = options;
|
|
10
|
-
if (!stickyFooter)
|
|
11
|
-
return null;
|
|
12
|
-
const selectionCellPinned = enableSelection && hasLeftPinnedColumns(columnOffsets);
|
|
13
|
-
const getFooterContent = (column) => {
|
|
14
|
-
if (typeof column.footer === "function")
|
|
15
|
-
return column.footer({ column });
|
|
16
|
-
if (typeof column.footer === "object" && column.footer !== null) {
|
|
17
|
-
const { aggregation } = column.footer;
|
|
18
|
-
const key = column.accessorKey;
|
|
19
|
-
if (!key)
|
|
20
|
-
return column.footer.label ?? null;
|
|
21
|
-
const values = aggregation === "count" ? data.map(() => 1) : data.map((row) => Number(row[key])).filter((n) => !isNaN(n));
|
|
22
|
-
return formatAggregated(aggregate(values, aggregation));
|
|
23
|
-
}
|
|
24
|
-
return column.footer ?? null;
|
|
25
|
-
};
|
|
26
|
-
return (_jsx("tfoot", { className: `${styles["rst-table-footer"]} ${stickyFooter ? styles["rst-table-footer-sticky"] : ""}`, children: _jsxs("tr", { children: [enableSelection && (_jsx("td", { className: [styles["rst-table-selection-cell"], selectionCellPinned ? styles["rst-table-cell-pinned"] : ""].filter(Boolean).join(" "), style: selectionCellPinned ? { left: 0 } : undefined })), visibleColumns.map((column, index) => {
|
|
27
|
-
const columnId = getColId(column, index);
|
|
28
|
-
const offset = columnOffsets[columnId];
|
|
29
|
-
const isLeftPinned = !!offset && offset.left !== undefined;
|
|
30
|
-
const isRightPinned = !!offset && offset.right !== undefined;
|
|
31
|
-
const isPinned = isLeftPinned || isRightPinned;
|
|
32
|
-
const pinnedStyle = isPinned
|
|
33
|
-
? {
|
|
34
|
-
left: offset.left,
|
|
35
|
-
right: offset.right,
|
|
36
|
-
}
|
|
37
|
-
: {};
|
|
38
|
-
return (_jsx("td", { className: [
|
|
39
|
-
isPinned ? styles["rst-table-cell-pinned"] : "",
|
|
40
|
-
isLeftPinned ? styles["rst-table-cell-pinned-left"] : "",
|
|
41
|
-
isRightPinned ? styles["rst-table-cell-pinned-right"] : "",
|
|
42
|
-
]
|
|
43
|
-
.filter(Boolean)
|
|
44
|
-
.join(" "), style: pinnedStyle, children: getFooterContent(column) }, columnId));
|
|
45
|
-
})] }) }));
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=table-grid-footer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-grid-footer.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/footer/table-grid-footer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,UAAU,eAAe,CAAQ,EAAE,aAAa,EAAwB;IAC5E,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAS,CAAC;IAC5D,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC;IAElD,IAAI,CAAC,YAAY;QAAE,OAAO,IAAI,CAAC;IAE/B,MAAM,mBAAmB,GAAG,eAAe,IAAI,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAEnF,MAAM,gBAAgB,GAAG,CAAC,MAAuC,EAAE,EAAE;QACnE,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,UAAU;YAAE,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QAC1E,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YAChE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC;YACtC,MAAM,GAAG,GAAG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M,MAAM,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;oBACvC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC;oBAC3D,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC;oBAC7D,MAAM,QAAQ,GAAG,YAAY,IAAI,aAAa,CAAC;oBAC/C,MAAM,WAAW,GAAkB,QAAQ;wBACzC,CAAC,CAAC;4BACE,IAAI,EAAE,MAAM,CAAC,IAAI;4BACjB,KAAK,EAAE,MAAM,CAAC,KAAK;yBACpB;wBACH,CAAC,CAAC,EAAE,CAAC;oBAEP,OAAO,CACL,aAEE,SAAS,EAAE;4BACT,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,EAAE;4BAC/C,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,EAAE;4BACxD,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC,CAAC,CAAC,EAAE;yBAC3D;6BACE,MAAM,CAAC,OAAO,CAAC;6BACf,IAAI,CAAC,GAAG,CAAC,EACZ,KAAK,EAAE,WAAW,YAEjB,gBAAgB,CAAC,MAAM,CAAC,IAVpB,QAAQ,CAWV,CACN,CAAC;gBACJ,CAAC,CAAC,IACC,GACC,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export class Evaluator {
|
|
2
|
-
context;
|
|
3
|
-
constructor(context) {
|
|
4
|
-
this.context = context;
|
|
5
|
-
}
|
|
6
|
-
evaluate(node) {
|
|
7
|
-
switch (node.type) {
|
|
8
|
-
case 'Literal':
|
|
9
|
-
return node.value;
|
|
10
|
-
case 'Identifier':
|
|
11
|
-
return this.evaluateIdentifier(node);
|
|
12
|
-
case 'BinaryExpression':
|
|
13
|
-
return this.evaluateBinary(node);
|
|
14
|
-
case 'UnaryExpression':
|
|
15
|
-
return this.evaluateUnary(node);
|
|
16
|
-
default:
|
|
17
|
-
throw new Error(`Unknown node type: ${node.type}`);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
evaluateIdentifier(node) {
|
|
21
|
-
const value = this.context[node.name];
|
|
22
|
-
if (value === undefined) {
|
|
23
|
-
// Depending on requirements, we might return null, 0, or throw.
|
|
24
|
-
// For now, let's return null or 0 if it's missing to be safe, or maybe undefined.
|
|
25
|
-
// If it's a column reference, it should exist.
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return value;
|
|
29
|
-
}
|
|
30
|
-
evaluateBinary(node) {
|
|
31
|
-
const left = this.evaluate(node.left);
|
|
32
|
-
const right = this.evaluate(node.right);
|
|
33
|
-
switch (node.operator) {
|
|
34
|
-
case '+':
|
|
35
|
-
return this.toNumber(left) + this.toNumber(right);
|
|
36
|
-
case '-':
|
|
37
|
-
return this.toNumber(left) - this.toNumber(right);
|
|
38
|
-
case '*':
|
|
39
|
-
return this.toNumber(left) * this.toNumber(right);
|
|
40
|
-
case '/':
|
|
41
|
-
{
|
|
42
|
-
const denominator = this.toNumber(right);
|
|
43
|
-
if (denominator === 0)
|
|
44
|
-
return Infinity; // Or throw error?
|
|
45
|
-
return this.toNumber(left) / denominator;
|
|
46
|
-
}
|
|
47
|
-
case '%':
|
|
48
|
-
return this.toNumber(left) % this.toNumber(right);
|
|
49
|
-
case '>':
|
|
50
|
-
return left > right;
|
|
51
|
-
case '<':
|
|
52
|
-
return left < right;
|
|
53
|
-
case '>=':
|
|
54
|
-
return left >= right;
|
|
55
|
-
case '<=':
|
|
56
|
-
return left <= right;
|
|
57
|
-
case '==':
|
|
58
|
-
return left == right;
|
|
59
|
-
case '!=':
|
|
60
|
-
return left != right;
|
|
61
|
-
case '&&':
|
|
62
|
-
return Boolean(left) && Boolean(right);
|
|
63
|
-
case '||':
|
|
64
|
-
return Boolean(left) || Boolean(right);
|
|
65
|
-
default:
|
|
66
|
-
throw new Error(`Unknown operator: ${node.operator}`);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
evaluateUnary(node) {
|
|
70
|
-
const arg = this.evaluate(node.argument);
|
|
71
|
-
switch (node.operator) {
|
|
72
|
-
case '-':
|
|
73
|
-
return -this.toNumber(arg);
|
|
74
|
-
case '!':
|
|
75
|
-
return !arg;
|
|
76
|
-
default:
|
|
77
|
-
throw new Error(`Unknown unary operator: ${node.operator}`);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
toNumber(value) {
|
|
81
|
-
if (typeof value === 'number')
|
|
82
|
-
return value;
|
|
83
|
-
if (value === null || value === undefined)
|
|
84
|
-
return 0;
|
|
85
|
-
const parsed = parseFloat(String(value));
|
|
86
|
-
if (isNaN(parsed))
|
|
87
|
-
return 0; // Or throw?
|
|
88
|
-
return parsed;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=evaluator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evaluator.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/formula/evaluator.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,SAAS;IACZ,OAAO,CAAiB;IAEhC,YAAY,OAAuB;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,QAAQ,CAAC,IAAa;QACpB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,SAAS;gBACZ,OAAQ,IAAoB,CAAC,KAAK,CAAC;YACrC,KAAK,YAAY;gBACf,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAsB,CAAC,CAAC;YACzD,KAAK,kBAAkB;gBACrB,OAAO,IAAI,CAAC,cAAc,CAAC,IAA4B,CAAC,CAAC;YAC3D,KAAK,iBAAiB;gBACpB,OAAO,IAAI,CAAC,aAAa,CAAC,IAA2B,CAAC,CAAC;YACzD;gBACE,MA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AE,OAAO,CAAC,CAAC;QACpD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,IAAI,KAAK,CAAC,MAAM,CAAC;YAAE,OAAO,CAAC,CAAC,CAAC,YAAY;QACzC,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formula-builder-types.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/formula/formula-builder-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect } from "react";
|
|
3
|
-
import { Button } from "../../../components/button/button";
|
|
4
|
-
import { Stack } from "../../../utility-components/stack/stack";
|
|
5
|
-
import { TextInput } from "../../../components/input/text/input-text";
|
|
6
|
-
import Typography from "../../../components/typography/typography";
|
|
7
|
-
import { FormulaEngine } from "./index";
|
|
8
|
-
export function FormulaBuilder({ onSave, onCancel, existingColumns, sampleRow }) {
|
|
9
|
-
const [header, setHeader] = useState("");
|
|
10
|
-
const [formula, setFormula] = useState("");
|
|
11
|
-
const [preview, setPreview] = useState(null);
|
|
12
|
-
const [error, setError] = useState(null);
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
if (!formula || !sampleRow) {
|
|
15
|
-
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
16
|
-
setPreview(null);
|
|
17
|
-
setError(null);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
// Validate parse first so errors are surfaced reliably
|
|
21
|
-
const validation = FormulaEngine.validate(formula);
|
|
22
|
-
if (!validation.valid) {
|
|
23
|
-
setError(validation.error ?? "Invalid formula");
|
|
24
|
-
setPreview(null);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const result = FormulaEngine.evaluate(formula, sampleRow);
|
|
28
|
-
setPreview(result !== null ? String(result) : null);
|
|
29
|
-
setError(null);
|
|
30
|
-
}, [formula, sampleRow]);
|
|
31
|
-
const handleSave = () => {
|
|
32
|
-
if (!header || !formula)
|
|
33
|
-
return;
|
|
34
|
-
const newColumn = {
|
|
35
|
-
id: header.toLowerCase().replace(/\s+/g, "_"),
|
|
36
|
-
header,
|
|
37
|
-
formula,
|
|
38
|
-
accessorKey: undefined, // It's a formula column
|
|
39
|
-
};
|
|
40
|
-
onSave(newColumn);
|
|
41
|
-
};
|
|
42
|
-
return (_jsxs(Stack, { direction: "column", gap: 1, children: [_jsxs(Stack, { direction: "column", gap: 1, children: [_jsx(Typography, { variant: "label", children: "Column Header" }), _jsx(TextInput, { value: header, onChange: (v) => setHeader(v ?? ""), placeholder: "e.g. Profit Margin" })] }), _jsxs(Stack, { direction: "column", gap: 1, children: [_jsx(Typography, { variant: "label", children: "Formula" }), _jsx(TextInput, { value: formula, onChange: (v) => setFormula(v ?? ""), placeholder: "e.g. (revenue - cost) / revenue" }), _jsxs(Typography, { variant: "caption", children: ["Available columns:", " ", existingColumns
|
|
43
|
-
.map((c) => c.id || c.accessorKey)
|
|
44
|
-
.filter(Boolean)
|
|
45
|
-
.join(", ")] })] }), preview !== null && (_jsxs("div", { style: { padding: "8px", background: "var(--rst-color-bg-subtle)", borderRadius: "4px" }, children: [_jsx("strong", { children: "Preview:" }), " ", preview] })), error && _jsxs("div", { style: { color: "var(--rst-color-fg-danger)" }, children: ["Error: ", error] }), _jsxs(Stack, { direction: "row", gap: 2, justify: "end", children: [_jsx(Button, { variant: "invisible", onClick: onCancel, value: "cancel" }), _jsx(Button, { variant: "primary", onClick: handleSave, disabled: !header || !formula || !!error, value: "Add Column" })] })] }));
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=formula-builder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formula-builder.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/formula/formula-builder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,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