@restio/ui 0.2.1 → 0.2.2-20261120112131
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/README.md +51 -7
- package/dist/core.cjs +1 -0
- package/dist/core.d.ts +992 -0
- package/dist/core.js +36 -0
- package/dist/data.cjs +1 -0
- package/dist/data.d.ts +1465 -0
- package/dist/data.js +24 -0
- package/dist/experimental.cjs +2 -0
- package/dist/experimental.d.ts +660 -0
- package/dist/experimental.js +1365 -0
- package/dist/framework.cjs +1 -0
- package/dist/framework.d.ts +761 -0
- package/dist/framework.js +34 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +3282 -151
- package/dist/index.js +99 -0
- package/dist/src-C-0-H5TG.cjs +159 -0
- package/dist/{restio-ui.es.js → src-DzNRRdGD.js} +37175 -36673
- package/dist/ui.css +1 -1
- package/package.json +65 -43
- package/dist/assets/svg/alert.svg +0 -1
- package/dist/assets/svg/arrow-down-up.svg +0 -1
- package/dist/assets/svg/arrow-down.svg +0 -1
- package/dist/assets/svg/arrow-left.svg +0 -1
- package/dist/assets/svg/arrow-right.svg +0 -1
- package/dist/assets/svg/arrow-up.svg +0 -1
- package/dist/assets/svg/arrow_drop_down.svg +0 -1
- package/dist/assets/svg/calendar.svg +0 -1
- package/dist/assets/svg/chart-area.svg +0 -1
- package/dist/assets/svg/chart-bar-stacked.svg +0 -1
- package/dist/assets/svg/chart-bar.svg +0 -1
- package/dist/assets/svg/chart-candlestick.svg +0 -1
- package/dist/assets/svg/chart-gantt.svg +0 -1
- package/dist/assets/svg/chart-line.svg +0 -1
- package/dist/assets/svg/chart-pie.svg +0 -1
- package/dist/assets/svg/chart-sankey.svg +0 -1
- package/dist/assets/svg/check.svg +0 -1
- package/dist/assets/svg/chevron-down.svg +0 -1
- package/dist/assets/svg/chevron-right.svg +0 -1
- package/dist/assets/svg/clipboard.svg +0 -1
- package/dist/assets/svg/close.svg +0 -1
- package/dist/assets/svg/copy.svg +0 -1
- package/dist/assets/svg/cursor.svg +0 -1
- package/dist/assets/svg/cut.svg +0 -1
- package/dist/assets/svg/delete.svg +0 -1
- package/dist/assets/svg/discussion.svg +0 -1
- package/dist/assets/svg/dock-left-arrow.svg +0 -1
- package/dist/assets/svg/dock-right-arrow.svg +0 -1
- package/dist/assets/svg/document-outline.svg +0 -1
- package/dist/assets/svg/download.svg +0 -1
- package/dist/assets/svg/drag.svg +0 -1
- package/dist/assets/svg/error.svg +0 -1
- package/dist/assets/svg/expand-right.svg +0 -1
- package/dist/assets/svg/expand.svg +0 -1
- package/dist/assets/svg/eye.svg +0 -1
- package/dist/assets/svg/file-plus.svg +0 -1
- package/dist/assets/svg/filter.svg +0 -1
- package/dist/assets/svg/form.svg +0 -1
- package/dist/assets/svg/fullscreen.svg +0 -1
- package/dist/assets/svg/gear.svg +0 -1
- package/dist/assets/svg/groups.svg +0 -1
- package/dist/assets/svg/help.svg +0 -1
- package/dist/assets/svg/info.svg +0 -1
- package/dist/assets/svg/list.svg +0 -1
- package/dist/assets/svg/logo.svg +0 -9
- package/dist/assets/svg/menu.svg +0 -1
- package/dist/assets/svg/message-bubble-question-mark.svg +0 -1
- package/dist/assets/svg/open-center.svg +0 -1
- package/dist/assets/svg/open-dialog.svg +0 -29
- package/dist/assets/svg/pencil.svg +0 -1
- package/dist/assets/svg/pie-chart.svg +0 -1
- package/dist/assets/svg/plus.svg +0 -1
- package/dist/assets/svg/restio.svg +0 -5
- package/dist/assets/svg/search.svg +0 -1
- package/dist/assets/svg/send.svg +0 -1
- package/dist/assets/svg/shrink-right.svg +0 -1
- package/dist/assets/svg/sidebar.svg +0 -1
- package/dist/assets/svg/square-half.svg +0 -1
- package/dist/assets/svg/table.svg +0 -1
- package/dist/assets/svg/terminal.svg +0 -1
- package/dist/assets/svg/timer.svg +0 -1
- package/dist/assets/svg/transaction.svg +0 -1
- package/dist/assets/svg/vertical-expand.svg +0 -1
- package/dist/assets/svg/wallet.svg +0 -1
- package/dist/assets/svg/warning.svg +0 -1
- package/dist/assets/svg/zoom-minus.svg +0 -1
- package/dist/assets/svg/zoom-plus.svg +0 -1
- package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +0 -22
- package/dist/components/anchored-overlay/anchored-overlay.d.ts +0 -4
- package/dist/components/anchored-overlay/anchored-overlay.test.d.ts +0 -0
- package/dist/components/anchored-overlay/stories/anchored-overlay-example.stories.d.ts +0 -6
- package/dist/components/banner/banner-types.d.ts +0 -12
- package/dist/components/banner/banner.d.ts +0 -4
- package/dist/components/banner/banner.stories.d.ts +0 -11
- package/dist/components/button/button-types.d.ts +0 -12
- package/dist/components/button/button.d.ts +0 -3
- package/dist/components/button/stories/button-example.stories.d.ts +0 -8
- package/dist/components/button/stories/button.stories.d.ts +0 -8
- package/dist/components/button-dropdown/button-dropdown-types.d.ts +0 -19
- package/dist/components/button-dropdown/button-dropdown.d.ts +0 -7
- package/dist/components/button-dropdown/button-dropdown.test.d.ts +0 -0
- package/dist/components/button-dropdown/stories/button-dropdown.stories.d.ts +0 -10
- package/dist/components/button-group/button-group-types.d.ts +0 -15
- package/dist/components/button-group/button-group.d.ts +0 -3
- package/dist/components/button-group/button-group.stories.d.ts +0 -7
- package/dist/components/button-group/button-group.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox-types.d.ts +0 -15
- package/dist/components/checkbox/checkbox.d.ts +0 -3
- package/dist/components/checkbox/checkbox.test.d.ts +0 -0
- package/dist/components/checkbox/stories/checkbox-example.stories.d.ts +0 -7
- package/dist/components/checkbox/stories/checkbox.stories.d.ts +0 -6
- package/dist/components/checkbox-group/checkbox-group-types.d.ts +0 -27
- package/dist/components/checkbox-group/checkbox-group.d.ts +0 -7
- package/dist/components/checkbox-group/checkbox-group.test.d.ts +0 -0
- package/dist/components/checkbox-group/stories/checkbox-group-example.stories.d.ts +0 -6
- package/dist/components/checkbox-group/stories/checkbox-group.stories.d.ts +0 -10
- package/dist/components/code-block/code-block.d.ts +0 -7
- package/dist/components/file-upload/file-upload-types.d.ts +0 -36
- package/dist/components/file-upload/file-upload-utils.d.ts +0 -1
- package/dist/components/file-upload/file-upload.d.ts +0 -3
- package/dist/components/file-upload/file-upload.test.d.ts +0 -1
- package/dist/components/file-upload/stories/file-upload.stories.d.ts +0 -8
- package/dist/components/input/date/date-calendar.d.ts +0 -3
- package/dist/components/input/date/date-input-field.d.ts +0 -8
- package/dist/components/input/date/date-picker.d.ts +0 -7
- package/dist/components/input/date/date-range-input-field.d.ts +0 -8
- package/dist/components/input/date/date-range-picker.d.ts +0 -8
- package/dist/components/input/date/date-shortcuts.d.ts +0 -3
- package/dist/components/input/date/date-types.d.ts +0 -52
- package/dist/components/input/date/date-utils.d.ts +0 -34
- package/dist/components/input/date/stories/date.stories.d.ts +0 -5
- package/dist/components/input/date/use-digit-input.d.ts +0 -18
- package/dist/components/input/input-types.d.ts +0 -27
- package/dist/components/input/input.d.ts +0 -3
- package/dist/components/input/number/input-number-types.d.ts +0 -7
- package/dist/components/input/number/input-number.d.ts +0 -3
- package/dist/components/input/number/input-number.stories.d.ts +0 -6
- package/dist/components/input/text/input-text-types.d.ts +0 -6
- package/dist/components/input/text/input-text.d.ts +0 -3
- package/dist/components/input/text/stories/input-text.stories.d.ts +0 -9
- package/dist/components/kbd/kbd-types.d.ts +0 -6
- package/dist/components/kbd/kbd.d.ts +0 -4
- package/dist/components/kbd/kbd.stories.d.ts +0 -9
- package/dist/components/kbd-group/kbd-group-types.d.ts +0 -14
- package/dist/components/kbd-group/kbd-group.d.ts +0 -4
- package/dist/components/kbd-group/kbd-group.stories.d.ts +0 -10
- package/dist/components/list/list-types.d.ts +0 -37
- package/dist/components/list/list-utils.d.ts +0 -46
- package/dist/components/list/list.d.ts +0 -2
- package/dist/components/list/list.stories.d.ts +0 -12
- package/dist/components/list/list.test.d.ts +0 -0
- package/dist/components/menu/anchored-navigation-menu.d.ts +0 -18
- package/dist/components/menu/menu-assets.d.ts +0 -2
- package/dist/components/menu/menu-types.d.ts +0 -21
- package/dist/components/menu/menu.d.ts +0 -8
- package/dist/components/menu/stories/anchored-navigation-menu.stories.d.ts +0 -7
- package/dist/components/otp/otp-types.d.ts +0 -29
- package/dist/components/otp/otp-utils.d.ts +0 -14
- package/dist/components/otp/otp.d.ts +0 -3
- package/dist/components/otp/otp.stories.d.ts +0 -145
- package/dist/components/progress-bar/progress-bar-types.d.ts +0 -25
- package/dist/components/progress-bar/progress-bar.d.ts +0 -6
- package/dist/components/progress-bar/progress-bar.test.d.ts +0 -1
- package/dist/components/progress-bar/stories/progress-bar-example.stories.d.ts +0 -8
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts +0 -10
- package/dist/components/radio/radio-types.d.ts +0 -13
- package/dist/components/radio/radio.d.ts +0 -7
- package/dist/components/radio/radio.test.d.ts +0 -0
- package/dist/components/radio/stories/radio-example.stories.d.ts +0 -7
- package/dist/components/radio/stories/radio.stories.d.ts +0 -6
- package/dist/components/radio-group/radio-group-types.d.ts +0 -29
- package/dist/components/radio-group/radio-group.d.ts +0 -7
- package/dist/components/radio-group/radio-group.test.d.ts +0 -0
- package/dist/components/radio-group/stories/radio-group-example.stories.d.ts +0 -6
- package/dist/components/radio-group/stories/radio-group.stories.d.ts +0 -10
- package/dist/components/select/select-switch.d.ts +0 -26
- package/dist/components/select/select-types.d.ts +0 -35
- package/dist/components/select/select.d.ts +0 -4
- package/dist/components/select/select.stories.d.ts +0 -20
- package/dist/components/select/select.test.d.ts +0 -0
- package/dist/components/select/templates/grid-template.d.ts +0 -7
- package/dist/components/select/templates/list-template.d.ts +0 -7
- package/dist/components/select/templates/preview-dialog-template.d.ts +0 -9
- package/dist/components/select/templates/select-template-types.d.ts +0 -12
- package/dist/components/selection-grid/selection-grid-types.d.ts +0 -19
- package/dist/components/selection-grid/selection-grid.d.ts +0 -7
- package/dist/components/selection-grid/stories/selection-grid-example.stories.d.ts +0 -7
- package/dist/components/selection-grid/stories/selection-grid.stories.d.ts +0 -10
- package/dist/components/tag/tag-types.d.ts +0 -9
- package/dist/components/tag/tag.d.ts +0 -3
- package/dist/components/tag/tag.stories.d.ts +0 -12
- package/dist/components/textarea/textarea-types.d.ts +0 -54
- package/dist/components/textarea/textarea.d.ts +0 -3
- package/dist/components/textarea/textarea.stories.d.ts +0 -25
- package/dist/components/toast-group/toast-group-types.d.ts +0 -5
- package/dist/components/toast-group/toast-group.d.ts +0 -4
- package/dist/components/toast-group/toast-group.stories.d.ts +0 -6
- package/dist/components/typography/typography-types.d.ts +0 -58
- package/dist/components/typography/typography.d.ts +0 -3
- package/dist/components/typography/typography.stories.d.ts +0 -10
- package/dist/custom-components/chat/chat-types.d.ts +0 -18
- package/dist/custom-components/chat/chat.d.ts +0 -2
- package/dist/custom-components/chat/chat.stories.d.ts +0 -7
- package/dist/custom-components/layout/layout-renderers.d.ts +0 -8
- package/dist/custom-components/layout/layout-types.d.ts +0 -53
- package/dist/custom-components/layout/layout-utils.d.ts +0 -3
- package/dist/custom-components/layout/layout-utils.test.d.ts +0 -1
- package/dist/custom-components/layout/layout.d.ts +0 -7
- package/dist/custom-components/layout/layout.stories.d.ts +0 -7
- package/dist/custom-components/layout/layout.test.d.ts +0 -1
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +0 -4
- package/dist/custom-components/markdown/markdown-types.d.ts +0 -28
- package/dist/custom-components/markdown/markdown-utils.d.ts +0 -1
- package/dist/custom-components/markdown/markdown.d.ts +0 -3
- package/dist/custom-components/markdown/markdown.stories.d.ts +0 -6
- package/dist/custom-components/mindmap/index.d.ts +0 -2
- package/dist/custom-components/mindmap/mind-tree-types.d.ts +0 -93
- package/dist/custom-components/mindmap/mind-tree.d.ts +0 -3
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +0 -64
- package/dist/custom-components/mindmap/stories/mind-tree.stories.d.ts +0 -11
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.d.ts +0 -59
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +0 -17
- package/dist/custom-components/shortcut-tooltip/stories/shortcut-tooltip.stories.d.ts +0 -10
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +0 -6
- package/dist/custom-components/timeline/timeline-types.d.ts +0 -45
- package/dist/custom-components/timeline/timeline.d.ts +0 -19
- package/dist/custom-components/timeline/timeline.stories.d.ts +0 -8
- package/dist/custom-components/workflow/layout/workflow-edge.d.ts +0 -3
- package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +0 -73
- package/dist/custom-components/workflow/layout/workflow-layout.d.ts +0 -37
- package/dist/custom-components/workflow/node/workflow-node.d.ts +0 -3
- package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +0 -17
- package/dist/custom-components/workflow/panel/workflow-panel.d.ts +0 -3
- package/dist/custom-components/workflow/stories/workflow-overlay.stories.d.ts +0 -7
- package/dist/custom-components/workflow/stories/workflow-toolbar.stories.d.ts +0 -6
- package/dist/custom-components/workflow/stories/workflow.stories.d.ts +0 -7
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.d.ts +0 -23
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +0 -3
- package/dist/custom-components/workflow/utils/workflow-validation.d.ts +0 -47
- package/dist/custom-components/workflow/workflow-types.d.ts +0 -203
- package/dist/custom-components/workflow/workflow.d.ts +0 -6
- package/dist/data-components/assets/cell-types-asset.d.ts +0 -38
- package/dist/data-components/assets/data-components-asset.d.ts +0 -13
- package/dist/data-components/assets/finance-asset.d.ts +0 -15
- package/dist/data-components/calendar/calendar-types.d.ts +0 -30
- package/dist/data-components/calendar/calendar-utils.d.ts +0 -5
- package/dist/data-components/calendar/calendar.d.ts +0 -4
- package/dist/data-components/calendar/stories/calendar.stories.d.ts +0 -22
- package/dist/data-components/card/card-types.d.ts +0 -20
- package/dist/data-components/card/card.d.ts +0 -10
- package/dist/data-components/card/stories/card.stories.d.ts +0 -13
- package/dist/data-components/card-list/card-list-types.d.ts +0 -21
- package/dist/data-components/card-list/card-list.d.ts +0 -9
- package/dist/data-components/card-list/models/ecommerce.d.ts +0 -12
- package/dist/data-components/card-list/stories/card-list.stories.d.ts +0 -29
- package/dist/data-components/cell/cell-registry.d.ts +0 -28
- package/dist/data-components/cell/cell-types.d.ts +0 -39
- package/dist/data-components/cell/cell-utils.d.ts +0 -21
- package/dist/data-components/cell/cell.d.ts +0 -2
- package/dist/data-components/cell/colors-editor/colors-editor-types.d.ts +0 -15
- package/dist/data-components/cell/colors-editor/colors-editor.d.ts +0 -7
- package/dist/data-components/cell/stories/cell-all-examples.stories.d.ts +0 -13
- package/dist/data-components/cell/test/cell-utils.test.d.ts +0 -1
- package/dist/data-components/cell/test/cell.test.d.ts +0 -0
- package/dist/data-components/chart/chart-series-edit/chart-series-edit-types.d.ts +0 -22
- package/dist/data-components/chart/chart-series-edit/chart-series-edit.d.ts +0 -9
- package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts +0 -13
- package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts +0 -6
- package/dist/data-components/chart/chart-types.d.ts +0 -106
- package/dist/data-components/chart/chart-utils.d.ts +0 -27
- package/dist/data-components/chart/chart.d.ts +0 -4
- package/dist/data-components/chart/chart.stories.d.ts +0 -15
- package/dist/data-components/chart/geo/geoChart.d.ts +0 -10
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +0 -37
- package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts +0 -35
- package/dist/data-components/data-component-configurator/data-component-configurator.d.ts +0 -17
- package/dist/data-components/data-component-types.d.ts +0 -10
- package/dist/data-components/data-component-utils.d.ts +0 -27
- package/dist/data-components/data-structure/data-structure.d.ts +0 -50
- package/dist/data-components/data-structure/stories-assets.d.ts +0 -86
- package/dist/data-components/filter/filter-engine.d.ts +0 -14
- package/dist/data-components/filter/filter-types.d.ts +0 -40
- package/dist/data-components/filter/filter-utils.d.ts +0 -43
- package/dist/data-components/form/form-types.d.ts +0 -67
- package/dist/data-components/form/form.d.ts +0 -3
- package/dist/data-components/form/form.test.d.ts +0 -0
- package/dist/data-components/form/stories/form-advanced-cells.stories.d.ts +0 -15
- package/dist/data-components/form/stories/form-complex.stories.d.ts +0 -7
- package/dist/data-components/form/stories/form-dynamic.stories.d.ts +0 -20
- package/dist/data-components/form/stories/form-validation-examples.stories.d.ts +0 -7
- package/dist/data-components/form/stories/form.stories.d.ts +0 -17
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +0 -8
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +0 -11
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +0 -6
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +0 -2
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +0 -20
- package/dist/data-components/gantt/gantt-context.d.ts +0 -12
- package/dist/data-components/gantt/gantt-types.d.ts +0 -101
- package/dist/data-components/gantt/gantt-utils.d.ts +0 -60
- package/dist/data-components/gantt/gantt.d.ts +0 -3
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +0 -14
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +0 -17
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +0 -9
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +0 -2
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +0 -12
- package/dist/data-components/gantt/stories/gantt.stories.d.ts +0 -20
- package/dist/data-components/kpi/kpi-types.d.ts +0 -17
- package/dist/data-components/kpi/kpi.d.ts +0 -5
- package/dist/data-components/layout/card-layout-presets.d.ts +0 -12
- package/dist/data-components/layout/finance/finance-layouts.d.ts +0 -18
- package/dist/data-components/layout/finance/kpi-layout-presets.d.ts +0 -35
- package/dist/data-components/layout/finance/stories/finance-card-list.stories.d.ts +0 -16
- package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts +0 -9
- package/dist/data-components/switcher/prop-form/prop-form-types.d.ts +0 -16
- package/dist/data-components/switcher/prop-form/prop-form.d.ts +0 -6
- package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts +0 -58
- package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts +0 -14
- package/dist/data-components/switcher/prop-schema/prop-schema.d.ts +0 -43
- package/dist/data-components/switcher/switcher-types.d.ts +0 -59
- package/dist/data-components/switcher/switcher.d.ts +0 -12
- package/dist/data-components/switcher/switcher.stories.d.ts +0 -7
- package/dist/data-components/table-grid/aggregation/aggregation-utils.d.ts +0 -8
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +0 -8
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +0 -12
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +0 -13
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +0 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +0 -3
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +0 -5
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +0 -93
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +0 -4
- package/dist/data-components/table-grid/ai-assistant/table-grid-ai.stories.d.ts +0 -9
- package/dist/data-components/table-grid/editability/table-grid-editability.stories.d.ts +0 -7
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.d.ts +0 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +0 -8
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.d.ts +0 -5
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.d.ts +0 -5
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +0 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +0 -5
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.d.ts +0 -6
- package/dist/data-components/table-grid/external-functionalities/import/table-grid-import.stories.d.ts +0 -6
- package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +0 -4
- package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +0 -2
- package/dist/data-components/table-grid/formula/evaluator.d.ts +0 -10
- package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +0 -7
- package/dist/data-components/table-grid/formula/formula-builder.d.ts +0 -2
- package/dist/data-components/table-grid/formula/formula.test.d.ts +0 -1
- package/dist/data-components/table-grid/formula/index.d.ts +0 -11
- package/dist/data-components/table-grid/formula/parser.d.ts +0 -23
- package/dist/data-components/table-grid/formula/table-grid-formula.stories.d.ts +0 -9
- package/dist/data-components/table-grid/formula/tokenizer.d.ts +0 -15
- package/dist/data-components/table-grid/formula/types.d.ts +0 -38
- package/dist/data-components/table-grid/grouping/grouping.d.ts +0 -14
- package/dist/data-components/table-grid/grouping/table-grid-grouping.stories.d.ts +0 -7
- package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +0 -6
- package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +0 -3
- package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +0 -9
- package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +0 -5
- package/dist/data-components/table-grid/header/table-grid-header.d.ts +0 -3
- package/dist/data-components/table-grid/hooks/use-table.d.ts +0 -2
- package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +0 -20
- package/dist/data-components/table-grid/pinning/table-grid-pinning.stories.d.ts +0 -17
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +0 -16
- package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +0 -3
- package/dist/data-components/table-grid/pivot/pivot-table.d.ts +0 -7
- package/dist/data-components/table-grid/pivot/pivot-types.d.ts +0 -52
- package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +0 -13
- package/dist/data-components/table-grid/pivot/table-grid-pivot.stories.d.ts +0 -15
- package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +0 -10
- package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +0 -13
- package/dist/data-components/table-grid/row/table-grid-row.d.ts +0 -2
- package/dist/data-components/table-grid/selection/selection-types.d.ts +0 -2
- package/dist/data-components/table-grid/selection/selection-utils.d.ts +0 -48
- package/dist/data-components/table-grid/selection/table-grid-selection.stories.d.ts +0 -9
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts +0 -27
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +0 -2
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.stories.d.ts +0 -10
- package/dist/data-components/table-grid/sorting/sorting.d.ts +0 -7
- package/dist/data-components/table-grid/sorting/table-grid-sorting-groups.stories.d.ts +0 -5
- package/dist/data-components/table-grid/sorting/table-grid-sorting.stories.d.ts +0 -6
- package/dist/data-components/table-grid/stories/table-grid-columns.stories.d.ts +0 -8
- package/dist/data-components/table-grid/stories/table-grid-states.stories.d.ts +0 -8
- package/dist/data-components/table-grid/table-context/table-context-types.d.ts +0 -16
- package/dist/data-components/table-grid/table-context/table-context.d.ts +0 -2
- package/dist/data-components/table-grid/table-grid-context.d.ts +0 -3
- package/dist/data-components/table-grid/table-grid-features.stories.d.ts +0 -11
- package/dist/data-components/table-grid/table-grid-panels.d.ts +0 -21
- package/dist/data-components/table-grid/table-grid-types.d.ts +0 -246
- package/dist/data-components/table-grid/table-grid.d.ts +0 -10
- package/dist/data-components/table-grid/table-grid.stories.d.ts +0 -14
- package/dist/data-components/table-grid/table-utils.d.ts +0 -17
- package/dist/data-components/ui-layer/ui-layer-types.d.ts +0 -81
- package/dist/data-components/ui-layer/ui-layer-utils.d.ts +0 -12
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.d.ts +0 -14
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +0 -11
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +0 -3
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.stories.d.ts +0 -9
- package/dist/experimental-components/dashboard-builder/builder-canvas-hooks.d.ts +0 -46
- package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts +0 -33
- package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts +0 -23
- package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts +0 -173
- package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts +0 -37
- package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts +0 -13
- package/dist/experimental-components/dashboard-builder/dashboard-builder.stories.d.ts +0 -8
- package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts +0 -25
- package/dist/experimental-components/dashboard-builder/widget-palette.d.ts +0 -19
- package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +0 -11
- package/dist/experimental-components/filter-builder/filter-builder.d.ts +0 -11
- package/dist/experimental-components/filter-builder/filter-builder.stories.d.ts +0 -15
- package/dist/framework-components/appbar/appbar-assets.d.ts +0 -1
- package/dist/framework-components/appbar/appbar-types.d.ts +0 -18
- package/dist/framework-components/appbar/appbar.d.ts +0 -8
- package/dist/framework-components/appbar/appbar.stories.d.ts +0 -6
- package/dist/framework-components/blank-slate/blank-slate-types.d.ts +0 -31
- package/dist/framework-components/blank-slate/blank-slate.d.ts +0 -10
- package/dist/framework-components/blank-slate/blank-slate.stories.d.ts +0 -9
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.d.ts +0 -13
- package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +0 -3
- package/dist/framework-components/breadcrumbs/breadcrumbs.stories.d.ts +0 -7
- package/dist/framework-components/dashboard/dashboard-context.d.ts +0 -11
- package/dist/framework-components/dashboard/dashboard-real-world.stories.d.ts +0 -6
- package/dist/framework-components/dashboard/dashboard-types.d.ts +0 -47
- package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts +0 -0
- package/dist/framework-components/dashboard/dashboard-widget-types.d.ts +0 -85
- package/dist/framework-components/dashboard/dashboard-widget.d.ts +0 -17
- package/dist/framework-components/dashboard/dashboard.d.ts +0 -15
- package/dist/framework-components/dashboard/dashboard.stories.d.ts +0 -7
- package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts +0 -10
- package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts +0 -46
- package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts +0 -118
- package/dist/framework-components/dashboard/data-engine/data-engine.d.ts +0 -86
- package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts +0 -1
- package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts +0 -1
- package/dist/framework-components/dashboard/data-engine/field-inference.d.ts +0 -9
- package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts +0 -11
- package/dist/framework-components/dashboard/data-engine/index.d.ts +0 -7
- package/dist/framework-components/dashboard/data-engine/join-engine.d.ts +0 -16
- package/dist/framework-components/drawer/drawer-types.d.ts +0 -6
- package/dist/framework-components/drawer/drawer.d.ts +0 -4
- package/dist/framework-components/scaffold/scaffold-context.d.ts +0 -3
- package/dist/framework-components/scaffold/scaffold-types.d.ts +0 -17
- package/dist/framework-components/scaffold/scaffold.d.ts +0 -6
- package/dist/framework-components/scaffold/scaffold.stories.d.ts +0 -7
- package/dist/framework-components/scaffold/scaffold.test.d.ts +0 -0
- package/dist/framework-components/section/section-types.d.ts +0 -15
- package/dist/framework-components/section/section.d.ts +0 -8
- package/dist/framework-components/section/section.stories.d.ts +0 -6
- package/dist/framework-components/sidebar/sidebar-assets.d.ts +0 -1
- package/dist/framework-components/sidebar/sidebar-context.d.ts +0 -3
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.d.ts +0 -5
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +0 -2
- package/dist/framework-components/sidebar/sidebar-types.d.ts +0 -12
- package/dist/framework-components/sidebar/sidebar.d.ts +0 -16
- package/dist/framework-components/sidebar/sidebar.stories.d.ts +0 -6
- package/dist/framework-components/stepper/stepper-types.d.ts +0 -13
- package/dist/framework-components/stepper/stepper.d.ts +0 -8
- package/dist/framework-components/stepper/stepper.stories.d.ts +0 -7
- package/dist/hooks/useDynamicVirtualList.d.ts +0 -75
- package/dist/hooks/useEscapeClose.d.ts +0 -2
- package/dist/hooks/useFixedVirtualList.d.ts +0 -34
- package/dist/hooks/useOverlayAnimation.d.ts +0 -17
- package/dist/hooks/useShortcut.d.ts +0 -19
- package/dist/hooks/useTour/stories/useTour.stories.d.ts +0 -24
- package/dist/hooks/useTour/useTour-context-internal.d.ts +0 -6
- package/dist/hooks/useTour/useTour-context.d.ts +0 -9
- package/dist/hooks/useTour/useTour-types.d.ts +0 -191
- package/dist/hooks/useTour/useTour.d.ts +0 -2
- package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +0 -7
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts +0 -77
- package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +0 -22
- package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +0 -24
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts +0 -2
- package/dist/providers/shortcut/shortcut-context.d.ts +0 -6
- package/dist/providers/shortcut/shortcut-provider.d.ts +0 -34
- package/dist/providers/stories/theme-provider.stories.d.ts +0 -6
- package/dist/providers/theme/index.d.ts +0 -3
- package/dist/providers/theme/theme-provider-types.d.ts +0 -5
- package/dist/providers/theme/themeProvider.d.ts +0 -9
- package/dist/restio-ui.cjs.js +0 -201
- package/dist/types/global-types.d.ts +0 -51
- package/dist/types/storybook-types.d.ts +0 -1
- package/dist/utility-components/avatar/avatar-types.d.ts +0 -15
- package/dist/utility-components/avatar/avatar.d.ts +0 -4
- package/dist/utility-components/avatar/avatar.stories.d.ts +0 -8
- package/dist/utility-components/chip/chip-types.d.ts +0 -16
- package/dist/utility-components/chip/chip.d.ts +0 -3
- package/dist/utility-components/chip/chip.stories.d.ts +0 -10
- package/dist/utility-components/helper-text/helper-text-types.d.ts +0 -19
- package/dist/utility-components/helper-text/helper-text.d.ts +0 -2
- package/dist/utility-components/helper-text/helper-text.stories.d.ts +0 -10
- package/dist/utility-components/helper-text/helper-text.test.d.ts +0 -1
- package/dist/utility-components/icon/icon-assets.d.ts +0 -1
- package/dist/utility-components/icon/icon-types.d.ts +0 -23
- package/dist/utility-components/icon/icon.d.ts +0 -3
- package/dist/utility-components/icon/stories/icon.stories.d.ts +0 -10
- package/dist/utility-components/label/label-types.d.ts +0 -18
- package/dist/utility-components/label/label.d.ts +0 -2
- package/dist/utility-components/label/label.test.d.ts +0 -1
- package/dist/utility-components/overlay-panel/overlay-panel-footer/overlay-panel-footer-types.d.ts +0 -6
- package/dist/utility-components/overlay-panel/overlay-panel-footer/overlay-panel-footer.d.ts +0 -4
- package/dist/utility-components/overlay-panel/overlay-panel-header/overlay-panel-header-types.d.ts +0 -12
- package/dist/utility-components/overlay-panel/overlay-panel-header/overlay-panel-header.d.ts +0 -4
- package/dist/utility-components/overlay-panel/overlay-panel-types.d.ts +0 -65
- package/dist/utility-components/overlay-panel/overlay-panel.d.ts +0 -3
- package/dist/utility-components/overlay-panel/overlay-panel.stories.d.ts +0 -13
- package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +0 -7
- package/dist/utility-components/skeleton/skeleton-types.d.ts +0 -6
- package/dist/utility-components/skeleton/skeleton.d.ts +0 -3
- package/dist/utility-components/skeleton/stories/skeleton.stories.d.ts +0 -9
- package/dist/utility-components/stack/stack-types.d.ts +0 -10
- package/dist/utility-components/stack/stack.d.ts +0 -7
- package/dist/utility-components/stack/stack.stories.d.ts +0 -4
- package/dist/utility-components/toast/toast-types.d.ts +0 -8
- package/dist/utility-components/toast/toast.d.ts +0 -4
- package/dist/utility-components/toast/toast.stories.d.ts +0 -8
- package/dist/utils/general.d.ts +0 -8
- package/dist/utils/shortcut-utils.d.ts +0 -43
- package/dist/vitest.setup.d.ts +0 -0
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
export type { ToolCall, ToolParameterSchema, ToolDefinition, ColumnSchema, AIResponse, AIProvider, ExecutionResult, ChatMessage, } from '../../../providers/ai-assistant/ai-assistant-types';
|
|
2
|
-
export type SelectRowsOperator = "equals" | "not_equals" | "contains" | "greater_than" | "less_than";
|
|
3
|
-
export interface SelectRowsCondition {
|
|
4
|
-
column: string;
|
|
5
|
-
operator: SelectRowsOperator;
|
|
6
|
-
value: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface SelectRowsArguments {
|
|
9
|
-
conditions: SelectRowsCondition[];
|
|
10
|
-
}
|
|
11
|
-
export interface SortArguments {
|
|
12
|
-
column: string;
|
|
13
|
-
direction: "asc" | "desc";
|
|
14
|
-
}
|
|
15
|
-
export interface ColumnVisibilityArguments {
|
|
16
|
-
column: string;
|
|
17
|
-
visible: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface ColumnOrderArguments {
|
|
20
|
-
order: string[];
|
|
21
|
-
}
|
|
22
|
-
export interface EditCellsEdit {
|
|
23
|
-
rowIndex: number;
|
|
24
|
-
column: string;
|
|
25
|
-
value: unknown;
|
|
26
|
-
}
|
|
27
|
-
export interface EditCellsArguments {
|
|
28
|
-
edits: EditCellsEdit[];
|
|
29
|
-
}
|
|
30
|
-
export interface GroupByArguments {
|
|
31
|
-
columns: string[];
|
|
32
|
-
}
|
|
33
|
-
export interface PinColumnArguments {
|
|
34
|
-
column: string;
|
|
35
|
-
side: "left" | "right" | "none";
|
|
36
|
-
}
|
|
37
|
-
export interface MultiSortEntry {
|
|
38
|
-
column: string;
|
|
39
|
-
direction: "asc" | "desc";
|
|
40
|
-
}
|
|
41
|
-
export interface MultiSortArguments {
|
|
42
|
-
sorts: MultiSortEntry[];
|
|
43
|
-
}
|
|
44
|
-
export type ClearStateArguments = Record<string, never>;
|
|
45
|
-
export interface CreateFormulaArguments {
|
|
46
|
-
header: string;
|
|
47
|
-
formula: string;
|
|
48
|
-
}
|
|
49
|
-
export interface FillColumnFromColumnEdit {
|
|
50
|
-
rowIndex: number;
|
|
51
|
-
value: unknown;
|
|
52
|
-
}
|
|
53
|
-
export interface FillColumnFromColumnArguments {
|
|
54
|
-
targetColumn: string;
|
|
55
|
-
sourceColumn: string;
|
|
56
|
-
edits: FillColumnFromColumnEdit[];
|
|
57
|
-
}
|
|
58
|
-
export type ExpandLevelArguments = {
|
|
59
|
-
level: number;
|
|
60
|
-
};
|
|
61
|
-
export type CollapseLevelArguments = {
|
|
62
|
-
level: number;
|
|
63
|
-
};
|
|
64
|
-
export type TogglePivotArguments = {
|
|
65
|
-
active: boolean;
|
|
66
|
-
};
|
|
67
|
-
export interface PivotValueFieldInput {
|
|
68
|
-
field: string;
|
|
69
|
-
aggregation: "sum" | "count" | "avg" | "min" | "max";
|
|
70
|
-
label?: string;
|
|
71
|
-
}
|
|
72
|
-
export interface ConfigurePivotArguments {
|
|
73
|
-
rowFields: string[];
|
|
74
|
-
columnFields: string[];
|
|
75
|
-
valueFields: PivotValueFieldInput[];
|
|
76
|
-
}
|
|
77
|
-
/** Raw condition node as produced by the LLM (column may be a label, resolved later). */
|
|
78
|
-
export interface RawFilterConditionNode {
|
|
79
|
-
type: "condition";
|
|
80
|
-
column: string;
|
|
81
|
-
operator: string;
|
|
82
|
-
value: unknown;
|
|
83
|
-
}
|
|
84
|
-
/** Raw group node as produced by the LLM (recursive). */
|
|
85
|
-
export interface RawFilterGroupNode {
|
|
86
|
-
type: "group";
|
|
87
|
-
logic: "and" | "or";
|
|
88
|
-
filters: RawFilterNode[];
|
|
89
|
-
}
|
|
90
|
-
export type RawFilterNode = RawFilterConditionNode | RawFilterGroupNode;
|
|
91
|
-
export interface FilterArguments {
|
|
92
|
-
filterGroup: RawFilterGroupNode;
|
|
93
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ToolCall, ColumnSchema } from './ai-assistant-types';
|
|
2
|
-
import { ValidationResult } from '../../../providers/ai-assistant/ai-assistant-validator';
|
|
3
|
-
export type { ValidationResult };
|
|
4
|
-
export declare function validateToolCalls(calls: ToolCall[], schema: ColumnSchema[]): ValidationResult;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { TableGrid } from '../table-grid';
|
|
3
|
-
import { User } from '../../data-structure/stories-assets';
|
|
4
|
-
declare const meta: Meta<typeof TableGrid<User>>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof TableGrid<User>>;
|
|
7
|
-
export declare const AIAssistant: Story;
|
|
8
|
-
export declare const MultiAction: Story;
|
|
9
|
-
export declare const QuickActionsAndFillColumn: Story;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { default as TableGrid } from '../table-grid';
|
|
3
|
-
declare const meta: Meta<typeof TableGrid>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const WithEditing: Story;
|
|
7
|
-
export declare const WithSelectColumns: Story;
|
|
@@ -1,6 +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 declare function autoDetect(value: unknown): string | number | boolean | Date | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read a CSV/TSV/custom-delimited file and convert it into
|
|
3
|
-
* { data, columns } matching DataStructureComponent<TData> props.
|
|
4
|
-
*/
|
|
5
|
-
export declare function createDataStructureFromFile<TData extends Record<string, unknown> = Record<string, unknown>>(file: File): Promise<{
|
|
6
|
-
data: TData[];
|
|
7
|
-
columns: import('../../../table-grid-types').ColumnDef<TData, TData[keyof TData]>[];
|
|
8
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ASTNode, FormulaValue, FormulaContext } from './types';
|
|
2
|
-
export declare class Evaluator {
|
|
3
|
-
private context;
|
|
4
|
-
constructor(context: FormulaContext);
|
|
5
|
-
evaluate(node: ASTNode): FormulaValue;
|
|
6
|
-
private evaluateIdentifier;
|
|
7
|
-
private evaluateBinary;
|
|
8
|
-
private evaluateUnary;
|
|
9
|
-
private toNumber;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ASTNode, FormulaValue, FormulaContext } from './types';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export declare class FormulaEngine {
|
|
4
|
-
private static cache;
|
|
5
|
-
static parse(formula: string): ASTNode;
|
|
6
|
-
static evaluate(formula: string, context: FormulaContext): FormulaValue;
|
|
7
|
-
static validate(formula: string): {
|
|
8
|
-
valid: boolean;
|
|
9
|
-
error?: string;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Token, ASTNode } from './types';
|
|
2
|
-
export declare class Parser {
|
|
3
|
-
private tokens;
|
|
4
|
-
private current;
|
|
5
|
-
constructor(tokens: Token[]);
|
|
6
|
-
parse(): ASTNode;
|
|
7
|
-
private expression;
|
|
8
|
-
private logicalOr;
|
|
9
|
-
private logicalAnd;
|
|
10
|
-
private equality;
|
|
11
|
-
private relational;
|
|
12
|
-
private additive;
|
|
13
|
-
private multiplicative;
|
|
14
|
-
private unary;
|
|
15
|
-
private primary;
|
|
16
|
-
private match;
|
|
17
|
-
private check;
|
|
18
|
-
private advance;
|
|
19
|
-
private isAtEnd;
|
|
20
|
-
private peek;
|
|
21
|
-
private previous;
|
|
22
|
-
private consume;
|
|
23
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { TableGrid } from '../table-grid';
|
|
3
|
-
import { ProjectManager } from '../../data-structure/stories-assets';
|
|
4
|
-
declare const meta: Meta<typeof TableGrid>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof TableGrid<ProjectManager>>;
|
|
7
|
-
export declare const BasicFormula: Story;
|
|
8
|
-
export declare const ComplexFormula: Story;
|
|
9
|
-
export declare const InteractiveBuilder: Story;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Token } from './types';
|
|
2
|
-
export declare class Tokenizer {
|
|
3
|
-
private input;
|
|
4
|
-
private position;
|
|
5
|
-
private length;
|
|
6
|
-
constructor(input: string);
|
|
7
|
-
tokenize(): Token[];
|
|
8
|
-
private isDigit;
|
|
9
|
-
private isAlpha;
|
|
10
|
-
private isOperatorStart;
|
|
11
|
-
private readNumber;
|
|
12
|
-
private readIdentifierOrKeyword;
|
|
13
|
-
private readString;
|
|
14
|
-
private readOperator;
|
|
15
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export type TokenType = 'NUMBER' | 'STRING' | 'IDENTIFIER' | 'OPERATOR' | 'LPAREN' | 'RPAREN' | 'COMMA' | 'EOF';
|
|
2
|
-
export type FormulaValue = string | number | boolean | null | undefined;
|
|
3
|
-
export type FormulaContext = Record<string, unknown>;
|
|
4
|
-
export interface Token {
|
|
5
|
-
type: TokenType;
|
|
6
|
-
value: string;
|
|
7
|
-
position: number;
|
|
8
|
-
}
|
|
9
|
-
export type Operator = '+' | '-' | '*' | '/' | '%' | '>' | '<' | '>=' | '<=' | '==' | '!=' | '&&' | '||' | '!';
|
|
10
|
-
export type ASTNodeType = 'Literal' | 'Identifier' | 'BinaryExpression' | 'UnaryExpression' | 'CallExpression';
|
|
11
|
-
export interface ASTNode {
|
|
12
|
-
type: ASTNodeType;
|
|
13
|
-
}
|
|
14
|
-
export interface LiteralNode extends ASTNode {
|
|
15
|
-
type: 'Literal';
|
|
16
|
-
value: number | string | boolean | null;
|
|
17
|
-
raw: string;
|
|
18
|
-
}
|
|
19
|
-
export interface IdentifierNode extends ASTNode {
|
|
20
|
-
type: 'Identifier';
|
|
21
|
-
name: string;
|
|
22
|
-
}
|
|
23
|
-
export interface BinaryExpressionNode extends ASTNode {
|
|
24
|
-
type: 'BinaryExpression';
|
|
25
|
-
operator: Operator;
|
|
26
|
-
left: ASTNode;
|
|
27
|
-
right: ASTNode;
|
|
28
|
-
}
|
|
29
|
-
export interface UnaryExpressionNode extends ASTNode {
|
|
30
|
-
type: 'UnaryExpression';
|
|
31
|
-
operator: Operator;
|
|
32
|
-
argument: ASTNode;
|
|
33
|
-
}
|
|
34
|
-
export interface CallExpressionNode extends ASTNode {
|
|
35
|
-
type: 'CallExpression';
|
|
36
|
-
callee: string;
|
|
37
|
-
arguments: ASTNode[];
|
|
38
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ColumnDef, SortingState, TableRow } from '../table-grid-types';
|
|
2
|
-
/**
|
|
3
|
-
* Recursively groups data and sorts both group blocks and leaf records.
|
|
4
|
-
*
|
|
5
|
-
* For each depth level the same `sorting` state is applied:
|
|
6
|
-
* - **Group blocks** are ordered by the AGGREGATE value of the sort column
|
|
7
|
-
* (SUM for numeric columns, first item's value for strings).
|
|
8
|
-
* This makes groups with the largest/smallest total appear first/last.
|
|
9
|
-
* - **Leaf records** within each group are sorted individually via `applySorting`.
|
|
10
|
-
*
|
|
11
|
-
* Because the sort is applied recursively, every sub-group level is also
|
|
12
|
-
* independently sorted among its siblings.
|
|
13
|
-
*/
|
|
14
|
-
export declare function groupData<TData>(data: TData[], grouping: string[], columns: ColumnDef<TData>[], expandedRows: Set<string>, sorting?: SortingState, getRowId?: (row: TData, index: number) => string, depth?: number, parentId?: string): TableRow<TData>[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { TableGrid } from '../table-grid';
|
|
3
|
-
import { Employee } from '../../data-structure/stories-assets';
|
|
4
|
-
declare const meta: Meta<typeof TableGrid>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof TableGrid<Employee>>;
|
|
7
|
-
export declare const GroupingEnabled: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface ColumnHeaderMenuProps {
|
|
3
|
-
readonly columnId: string;
|
|
4
|
-
readonly isOpen: boolean;
|
|
5
|
-
readonly onClose: () => void;
|
|
6
|
-
readonly anchor: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare function ColumnHeaderMenu<TData>({ columnId, isOpen, onClose, anchor }: ColumnHeaderMenuProps): React.JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ColumnDef, ColumnOffsets } from '../table-grid-types';
|
|
2
|
-
/** Width reserved for the selection checkbox column — must match the CSS value. */
|
|
3
|
-
export declare const SELECTION_COLUMN_WIDTH = 40;
|
|
4
|
-
/**
|
|
5
|
-
* Sorts columns into [left-pinned…, center…, right-pinned…] order.
|
|
6
|
-
* This is required so that:
|
|
7
|
-
* - `position: sticky; left` works on elements physically at the left of the table.
|
|
8
|
-
* - `position: sticky; right` works on elements physically at the right of the table.
|
|
9
|
-
*/
|
|
10
|
-
export declare function sortColumnsByPin<TData>(columns: ColumnDef<TData>[], columnPinning: Record<string, "left" | "right" | false>): ColumnDef<TData>[];
|
|
11
|
-
/**
|
|
12
|
-
* Computes left/right sticky pixel offsets for all pinned columns.
|
|
13
|
-
* Must receive columns already sorted by `sortColumnsByPin`.
|
|
14
|
-
* Accounts for the optional selection checkbox column that precedes all data columns.
|
|
15
|
-
*/
|
|
16
|
-
export declare function computeColumnOffsets<TData>(columns: ColumnDef<TData>[], columnPinning: Record<string, "left" | "right" | false>, enableSelection: boolean): ColumnOffsets;
|
|
17
|
-
/** Returns true if any column in the offsets map is left-pinned. */
|
|
18
|
-
export declare function hasLeftPinnedColumns(offsets: ColumnOffsets): boolean;
|
|
19
|
-
/** Returns true if any column in the offsets map is right-pinned. */
|
|
20
|
-
export declare function hasRightPinnedColumns(offsets: ColumnOffsets): boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { TableGrid } from '../table-grid';
|
|
3
|
-
import { User } from '../../data-structure/stories-assets';
|
|
4
|
-
declare const meta: Meta<typeof TableGrid<User>>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof meta>;
|
|
7
|
-
/**
|
|
8
|
-
* Two columns pinned left + selection checkbox always visible.
|
|
9
|
-
* Scroll right: ID and First Name stay fixed while the rest scroll under them.
|
|
10
|
-
* columnSizing="fixed" is required for pinning to work correctly.
|
|
11
|
-
*/
|
|
12
|
-
export declare const PinLeft: Story;
|
|
13
|
-
/**
|
|
14
|
-
* Mixed pinning: two columns pinned left, one pinned right, three in the middle scroll.
|
|
15
|
-
* Scroll horizontally: ID + First Name stay at the left, Status stays at the right.
|
|
16
|
-
*/
|
|
17
|
-
export declare const PinRight: Story;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ColumnDef } from '../table-grid-types';
|
|
2
|
-
import { PivotConfig, PivotAggregation } from './pivot-types';
|
|
3
|
-
export interface PivotConfigPanelProps<TData> {
|
|
4
|
-
/** All available columns from the original table */
|
|
5
|
-
columns: ColumnDef<TData>[];
|
|
6
|
-
/** Current pivot configuration */
|
|
7
|
-
config: PivotConfig;
|
|
8
|
-
/** Called whenever the configuration changes */
|
|
9
|
-
onConfigChange: (config: PivotConfig) => void;
|
|
10
|
-
}
|
|
11
|
-
export type PivotZone = "rows" | "columns" | "values" | "available";
|
|
12
|
-
export interface DragPayload {
|
|
13
|
-
fieldId: string;
|
|
14
|
-
fromZone: PivotZone;
|
|
15
|
-
valueAggregation?: PivotAggregation;
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ComputedPivotData } from './pivot-types';
|
|
2
|
-
interface PivotTableProps {
|
|
3
|
-
readonly pivotData: ComputedPivotData;
|
|
4
|
-
readonly className?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function PivotTable({ pivotData, className }: PivotTableProps): import("react").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AggregationFn } from '../aggregation/aggregation-utils';
|
|
2
|
-
export type { AggregationFn };
|
|
3
|
-
/** Backward-compatible alias — prefer AggregationFn for new code. */
|
|
4
|
-
export type PivotAggregation = AggregationFn;
|
|
5
|
-
export interface PivotValueField {
|
|
6
|
-
/** The field ID (column accessorKey or id) to aggregate */
|
|
7
|
-
field: string;
|
|
8
|
-
/** Aggregation function to apply */
|
|
9
|
-
aggregation: PivotAggregation;
|
|
10
|
-
/** Optional display label */
|
|
11
|
-
label?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Configuration for pivot mode.
|
|
15
|
-
* rowFields: column IDs whose values form the row groups.
|
|
16
|
-
* columnFields: column IDs whose unique values become dynamic columns.
|
|
17
|
-
* valueFields: numeric fields to aggregate at each row × column intersection.
|
|
18
|
-
*/
|
|
19
|
-
export interface PivotConfig {
|
|
20
|
-
rowFields: string[];
|
|
21
|
-
columnFields: string[];
|
|
22
|
-
valueFields: PivotValueField[];
|
|
23
|
-
}
|
|
24
|
-
/** A resolved column in the computed pivot result */
|
|
25
|
-
export interface PivotColumnDef {
|
|
26
|
-
id: string;
|
|
27
|
-
/** Primary label: row-field name OR column-field value (e.g. "New York") */
|
|
28
|
-
label: string;
|
|
29
|
-
/** Secondary label shown in the second header row: aggregation + field (e.g. "Salary (sum)"). Only present for value columns when columnFields are in use. */
|
|
30
|
-
subLabel?: string;
|
|
31
|
-
/** true when this column represents a row grouping field (left side) */
|
|
32
|
-
isRowField: boolean;
|
|
33
|
-
/** The value from the pivot column field (e.g. "New York") */
|
|
34
|
-
columnFieldValue?: string;
|
|
35
|
-
/** The column field ID (e.g. "location") */
|
|
36
|
-
columnFieldId?: string;
|
|
37
|
-
/** The value field aggregation spec */
|
|
38
|
-
valueField?: PivotValueField;
|
|
39
|
-
}
|
|
40
|
-
/** A single row in the computed pivot result */
|
|
41
|
-
export interface PivotRow {
|
|
42
|
-
id: string;
|
|
43
|
-
/** Values for each row field */
|
|
44
|
-
rowValues: Record<string, string>;
|
|
45
|
-
/** Aggregated cell values keyed by PivotColumnDef.id */
|
|
46
|
-
cells: Record<string, number | string | null>;
|
|
47
|
-
}
|
|
48
|
-
/** Full computed pivot output */
|
|
49
|
-
export interface ComputedPivotData {
|
|
50
|
-
columns: PivotColumnDef[];
|
|
51
|
-
rows: PivotRow[];
|
|
52
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ColumnDef } from '../table-grid-types';
|
|
2
|
-
import { PivotConfig, PivotColumnDef, ComputedPivotData } from './pivot-types';
|
|
3
|
-
/** Builds the column-group structure for the top header row when columnFields are in use. */
|
|
4
|
-
export declare function buildColumnGroups(columns: PivotColumnDef[]): {
|
|
5
|
-
key: string;
|
|
6
|
-
label: string;
|
|
7
|
-
cols: PivotColumnDef[];
|
|
8
|
-
}[];
|
|
9
|
-
export declare function getColumnLabel<TData>(fieldId: string, columnDefs: ColumnDef<TData>[]): string;
|
|
10
|
-
/**
|
|
11
|
-
* Computes the full pivot table from raw data + pivot config.
|
|
12
|
-
*/
|
|
13
|
-
export declare function computePivot<TData>(data: TData[], config: PivotConfig, columnDefs: ColumnDef<TData>[]): ComputedPivotData;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { TableGrid } from '../table-grid';
|
|
3
|
-
import { Employee } from '../../data-structure/stories-assets';
|
|
4
|
-
declare const meta: Meta<typeof TableGrid<Employee>>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof TableGrid<Employee>>;
|
|
7
|
-
/**
|
|
8
|
-
* Empty pivot builder — drag fields from the top panel into the
|
|
9
|
-
* Rows, Columns, or Values zones to construct the pivot table.
|
|
10
|
-
*/
|
|
11
|
-
export declare const PivotBuilder: Story;
|
|
12
|
-
/**
|
|
13
|
-
* Pre-configured pivot: salary by department (rows) × location (columns).
|
|
14
|
-
*/
|
|
15
|
-
export declare const PivotPreConfigured: Story;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TableRow, ColumnOffsets } from '../table-grid-types';
|
|
2
|
-
export interface TableGridRowProps<TData> {
|
|
3
|
-
row: TableRow<TData>;
|
|
4
|
-
onRowClick?: (row: TData, index: number) => void;
|
|
5
|
-
isEnableEditing?: boolean;
|
|
6
|
-
"aria-rowindex"?: number;
|
|
7
|
-
columnOffsets?: ColumnOffsets;
|
|
8
|
-
/** Ref callback used by the dynamic virtualizer to measure this row's height */
|
|
9
|
-
measureRef?: (el: Element | null) => void;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ColumnDef } from '../table-grid-types';
|
|
2
|
-
/**
|
|
3
|
-
* Get the cell value based on column definition and row data.
|
|
4
|
-
* If the column has a formula, it evaluates the formula using the row data.
|
|
5
|
-
* Otherwise, it retrieves the value via the shared accessorFn/accessorKey resolver.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getCellValue<TData>(column: ColumnDef<TData>, rowData: TData): unknown;
|
|
8
|
-
/**
|
|
9
|
-
* Compute the subtotal value for a group row.
|
|
10
|
-
* For numeric columns (including formula columns), returns the sum of all values in the group.
|
|
11
|
-
* For non-numeric columns, returns undefined (nothing is displayed in the collapsed group cell).
|
|
12
|
-
*/
|
|
13
|
-
export declare function getGroupAggregatedValue<TData>(column: ColumnDef<TData>, items: TData[]): TData[keyof TData] | undefined;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ColumnDef, TableRow } from '../table-grid-types';
|
|
2
|
-
import { CheckboxSelectionState } from './selection-types';
|
|
3
|
-
/**
|
|
4
|
-
* Recursively collect all descendant IDs for a **tree row** using `getSubRows`.
|
|
5
|
-
* Works even when sub-trees are collapsed (traverses original data, not rendered rows).
|
|
6
|
-
* Row IDs follow the same convention as `buildTableRows`: `"${parentId}.${index}"`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function collectTreeDescendantIds<TData>(rowId: string, rowData: TData, getSubRows: (row: TData, index: number) => TData[] | undefined): string[];
|
|
9
|
-
/**
|
|
10
|
-
* Collect descendant IDs for a **group row** from the flat rendered-rows list.
|
|
11
|
-
* Only non-group (data) rows are included.
|
|
12
|
-
*/
|
|
13
|
-
export declare function collectGroupDescendantIds<TData>(groupRowId: string, allRows: TableRow<TData>[]): string[];
|
|
14
|
-
/**
|
|
15
|
-
* Return all descendant IDs for a row, handling both tree and group cases.
|
|
16
|
-
* For group rows the rendered row list is used; for tree rows `getSubRows` is used.
|
|
17
|
-
*/
|
|
18
|
-
export declare function getDescendantIds<TData>(row: TableRow<TData>, allRenderedRows: TableRow<TData>[], getSubRows?: (row: TData, index: number) => TData[] | undefined, getRowId?: (row: TData, index: number, parentId?: string) => string): string[];
|
|
19
|
-
/**
|
|
20
|
-
* Compute the checkbox display state (checked / unchecked / indeterminate) for a row.
|
|
21
|
-
*
|
|
22
|
-
* - Leaf row → checked if its ID is in `selectedIds`.
|
|
23
|
-
* - Parent row → checked/indeterminate/unchecked based on how many descendants are selected.
|
|
24
|
-
* The parent's own ID in `selectedIds` is intentionally ignored for display purposes;
|
|
25
|
-
* only descendants drive the visual state.
|
|
26
|
-
*/
|
|
27
|
-
export declare function computeRowSelectionState<TData>(row: TableRow<TData>, selectedIds: Set<string>, allRenderedRows: TableRow<TData>[], getSubRows?: (row: TData, index: number) => TData[] | undefined, getRowId?: (row: TData, index: number, parentId?: string) => string): CheckboxSelectionState;
|
|
28
|
-
/**
|
|
29
|
-
* Compute the "select all" header checkbox state from all known selectable IDs.
|
|
30
|
-
*/
|
|
31
|
-
export declare function computeAllSelectionState(allIds: string[], selectedIds: Set<string>): CheckboxSelectionState;
|
|
32
|
-
/**
|
|
33
|
-
* Toggle a row's selection with cascading.
|
|
34
|
-
* - "unchecked" → select self + all descendants.
|
|
35
|
-
* - "checked" / "indeterminate" → deselect self + all descendants.
|
|
36
|
-
*
|
|
37
|
-
* Group rows are virtual (not real data), so their own ID is **never** added;
|
|
38
|
-
* only their descendant data-row IDs are toggled.
|
|
39
|
-
*/
|
|
40
|
-
export declare function toggleRowSelection<TData>(row: TableRow<TData>, currentSelected: Set<string>, allRenderedRows: TableRow<TData>[], getSubRows?: (row: TData, index: number) => TData[] | undefined, getRowId?: (row: TData, index: number, parentId?: string) => string): Set<string>;
|
|
41
|
-
/**
|
|
42
|
-
* Collect **all** selectable row IDs from the original data (all levels).
|
|
43
|
-
* This is used for the "select all" operation and its state computation.
|
|
44
|
-
*
|
|
45
|
-
* In group mode, only the rendered non-group rows are used (group rows are virtual).
|
|
46
|
-
* In tree/flat mode, all rows are collected recursively from `data`.
|
|
47
|
-
*/
|
|
48
|
-
export declare function collectAllSelectableIds<TData>(data: TData[], allRenderedRows: TableRow<TData>[], getSubRows?: (row: TData, index: number) => TData[] | undefined, hasGrouping?: boolean, grouping?: string[], columns?: ColumnDef<TData>[], getRowId?: (row: TData, index: number, parentId?: string) => string): string[];
|