@restio/ui 0.2.1 → 0.2.2
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 +961 -0
- package/dist/core.js +35 -0
- package/dist/data.cjs +1 -0
- package/dist/data.d.ts +1464 -0
- package/dist/data.js +24 -0
- package/dist/experimental.cjs +2 -0
- package/dist/experimental.d.ts +659 -0
- package/dist/experimental.js +1360 -0
- package/dist/framework.cjs +1 -0
- package/dist/framework.d.ts +760 -0
- package/dist/framework.js +34 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +3251 -151
- package/dist/index.js +98 -0
- package/dist/{restio-ui.es.js → src-Bzrq1hWW.js} +36640 -36783
- package/dist/src-kY7g6XFo.cjs +158 -0
- package/dist/ui.css +1 -1
- package/package.json +48 -26
- 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,46 +0,0 @@
|
|
|
1
|
-
import { DataEngineConfig, DataEngineResult, DataEngineState, Query } from './data-engine-types';
|
|
2
|
-
/**
|
|
3
|
-
* A main-thread client that communicates with the DataEngine Web Worker.
|
|
4
|
-
*
|
|
5
|
-
* Provides the same API as the synchronous `DataEngine` class, but all
|
|
6
|
-
* heavy operations run off the main thread.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const client = new DataEngineClient();
|
|
11
|
-
* await client.init({ sources: [...], relationships: [...] });
|
|
12
|
-
* const result = await client.execute({ select: [...], groupBy: [...] });
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare class DataEngineClient {
|
|
16
|
-
private worker;
|
|
17
|
-
private pending;
|
|
18
|
-
private requestCounter;
|
|
19
|
-
private ready;
|
|
20
|
-
private readyPromise;
|
|
21
|
-
private readyResolve;
|
|
22
|
-
constructor();
|
|
23
|
-
/**
|
|
24
|
-
* Initialises the worker and configures the data engine.
|
|
25
|
-
* Must be called before any other method.
|
|
26
|
-
*/
|
|
27
|
-
init(config: DataEngineConfig): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Executes a query against the data engine.
|
|
30
|
-
*/
|
|
31
|
-
execute(query: Query): Promise<DataEngineResult>;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the full joined dataset.
|
|
34
|
-
*/
|
|
35
|
-
getJoinedData(): Promise<unknown[]>;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the serialisable engine state.
|
|
38
|
-
*/
|
|
39
|
-
getState(): Promise<DataEngineState>;
|
|
40
|
-
/**
|
|
41
|
-
* Terminates the worker. Call when the client is no longer needed.
|
|
42
|
-
*/
|
|
43
|
-
destroy(): void;
|
|
44
|
-
private ensureReady;
|
|
45
|
-
private nextRequestId;
|
|
46
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { FilterGroup } from '../../../data-components/filter/filter-types';
|
|
2
|
-
/**
|
|
3
|
-
* Identifies a field within a data source table.
|
|
4
|
-
*/
|
|
5
|
-
export interface FieldRef {
|
|
6
|
-
tableId: string;
|
|
7
|
-
fieldId: string;
|
|
8
|
-
}
|
|
9
|
-
export type FieldFormat = "text" | "number" | "currency" | "percentage" | "date" | "datetime" | "boolean";
|
|
10
|
-
export interface FieldDefinition {
|
|
11
|
-
/** Must match a property key in the row data */
|
|
12
|
-
id: string;
|
|
13
|
-
/** Human-readable display name */
|
|
14
|
-
name: string;
|
|
15
|
-
/** Data format used for display and aggregation */
|
|
16
|
-
format: FieldFormat;
|
|
17
|
-
}
|
|
18
|
-
export interface DataSourceConfig<T extends object = object> {
|
|
19
|
-
/** Unique identifier for this data source */
|
|
20
|
-
id: string;
|
|
21
|
-
/** Human-readable name */
|
|
22
|
-
name: string;
|
|
23
|
-
/** Raw row data */
|
|
24
|
-
data: T[];
|
|
25
|
-
/**
|
|
26
|
-
* Field definitions. If omitted, fields are auto-inferred from the first row.
|
|
27
|
-
* @see inferFields
|
|
28
|
-
*/
|
|
29
|
-
fields?: FieldDefinition[];
|
|
30
|
-
}
|
|
31
|
-
export type RelationshipType = "many-to-one" | "one-to-many" | "one-to-one";
|
|
32
|
-
export interface Relationship {
|
|
33
|
-
/** Unique identifier for this relationship */
|
|
34
|
-
id: string;
|
|
35
|
-
/** The "from" side of the join (foreign key) */
|
|
36
|
-
source: FieldRef;
|
|
37
|
-
/** The "to" side of the join (primary key) */
|
|
38
|
-
target: FieldRef;
|
|
39
|
-
/** Cardinality */
|
|
40
|
-
type: RelationshipType;
|
|
41
|
-
}
|
|
42
|
-
export type ExpressionOperator = "add" | "subtract" | "multiply" | "divide" | "concat" | "equals" | "notEquals" | "greaterThan" | "lessThan" | "and" | "or" | "not" | "if" | "coalesce";
|
|
43
|
-
export type ExpressionInput = FieldRef | LiteralValue | ExpressionNode;
|
|
44
|
-
export interface LiteralValue {
|
|
45
|
-
type: "literal";
|
|
46
|
-
value: unknown;
|
|
47
|
-
}
|
|
48
|
-
export interface ExpressionNode {
|
|
49
|
-
operator: ExpressionOperator;
|
|
50
|
-
inputs: ExpressionInput[];
|
|
51
|
-
}
|
|
52
|
-
export interface ExpressionDefinition {
|
|
53
|
-
/** Unique identifier, usable as a field reference */
|
|
54
|
-
id: string;
|
|
55
|
-
/** Human-readable name */
|
|
56
|
-
name: string;
|
|
57
|
-
/** Display format */
|
|
58
|
-
format: FieldFormat;
|
|
59
|
-
/** The expression tree */
|
|
60
|
-
expression: ExpressionNode;
|
|
61
|
-
}
|
|
62
|
-
export type AggregationFunction = "sum" | "count" | "avg" | "min" | "max" | "countDistinct";
|
|
63
|
-
export interface Aggregation {
|
|
64
|
-
/** The field to aggregate */
|
|
65
|
-
field: FieldRef;
|
|
66
|
-
/** Aggregation function */
|
|
67
|
-
function: AggregationFunction;
|
|
68
|
-
/** Output column alias (defaults to `function_fieldId`) */
|
|
69
|
-
alias?: string;
|
|
70
|
-
}
|
|
71
|
-
export type SortDirection = "asc" | "desc";
|
|
72
|
-
export interface SortCondition {
|
|
73
|
-
field: FieldRef;
|
|
74
|
-
direction: SortDirection;
|
|
75
|
-
}
|
|
76
|
-
export interface Query {
|
|
77
|
-
/** Fields to include in the result */
|
|
78
|
-
select: FieldRef[];
|
|
79
|
-
/** Group-by fields (required for aggregations) */
|
|
80
|
-
groupBy?: FieldRef[];
|
|
81
|
-
/** Aggregation definitions */
|
|
82
|
-
aggregations?: Aggregation[];
|
|
83
|
-
/** Filter conditions (uses the existing FilterGroup AST) */
|
|
84
|
-
filters?: FilterGroup | null;
|
|
85
|
-
/** Sort conditions */
|
|
86
|
-
sort?: SortCondition[];
|
|
87
|
-
/** Maximum number of rows to return */
|
|
88
|
-
limit?: number;
|
|
89
|
-
}
|
|
90
|
-
export interface DataEngineConfig {
|
|
91
|
-
/** Data sources (tables) */
|
|
92
|
-
sources: DataSourceConfig[];
|
|
93
|
-
/** Relationships between sources */
|
|
94
|
-
relationships?: Relationship[];
|
|
95
|
-
/** Calculated field definitions */
|
|
96
|
-
expressions?: ExpressionDefinition[];
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* A flat row produced by the data engine.
|
|
100
|
-
* Keys are in the format `tableId.fieldId` for source fields,
|
|
101
|
-
* or just `fieldId` for expressions.
|
|
102
|
-
*/
|
|
103
|
-
export type DataEngineRow = Record<string, unknown>;
|
|
104
|
-
export interface DataEngineResult {
|
|
105
|
-
/** The result rows */
|
|
106
|
-
rows: DataEngineRow[];
|
|
107
|
-
/** Total row count before limit was applied */
|
|
108
|
-
total: number;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Full serialisable snapshot of the data engine configuration.
|
|
112
|
-
* Can be persisted and restored.
|
|
113
|
-
*/
|
|
114
|
-
export interface DataEngineState {
|
|
115
|
-
sources: DataSourceConfig[];
|
|
116
|
-
relationships: Relationship[];
|
|
117
|
-
expressions: ExpressionDefinition[];
|
|
118
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { DataEngineConfig, DataEngineResult, DataEngineRow, DataEngineState, FieldDefinition, Query } from './data-engine-types';
|
|
2
|
-
/**
|
|
3
|
-
* The DataEngine is the core query layer for the dashboard.
|
|
4
|
-
*
|
|
5
|
-
* It takes raw data sources, optional relationships, and optional
|
|
6
|
-
* expressions, and provides an `execute(query)` method that runs
|
|
7
|
-
* the full pipeline:
|
|
8
|
-
*
|
|
9
|
-
* JOIN → FILTER → AGGREGATE → SORT → LIMIT
|
|
10
|
-
*
|
|
11
|
-
* The engine is framework-agnostic (pure TypeScript) and can run
|
|
12
|
-
* in the main thread or inside a Web Worker.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const engine = new DataEngine({
|
|
17
|
-
* sources: [
|
|
18
|
-
* { id: 'products', name: 'Products', data: products },
|
|
19
|
-
* { id: 'orders', name: 'Orders', data: orders },
|
|
20
|
-
* ],
|
|
21
|
-
* relationships: [
|
|
22
|
-
* {
|
|
23
|
-
* id: 'order-product',
|
|
24
|
-
* source: { tableId: 'orders', fieldId: 'product_id' },
|
|
25
|
-
* target: { tableId: 'products', fieldId: 'id' },
|
|
26
|
-
* type: 'many-to-one',
|
|
27
|
-
* },
|
|
28
|
-
* ],
|
|
29
|
-
* });
|
|
30
|
-
*
|
|
31
|
-
* const result = engine.execute({
|
|
32
|
-
* select: [
|
|
33
|
-
* { tableId: 'products', fieldId: 'category' },
|
|
34
|
-
* ],
|
|
35
|
-
* groupBy: [{ tableId: 'products', fieldId: 'category' }],
|
|
36
|
-
* aggregations: [
|
|
37
|
-
* { field: { tableId: 'orders', fieldId: 'amount' }, function: 'sum', alias: 'total' },
|
|
38
|
-
* ],
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
export declare class DataEngine {
|
|
43
|
-
private sources;
|
|
44
|
-
private relationships;
|
|
45
|
-
private fieldDefs;
|
|
46
|
-
constructor(config: DataEngineConfig);
|
|
47
|
-
/**
|
|
48
|
-
* Executes a query against the data engine.
|
|
49
|
-
*
|
|
50
|
-
* Pipeline: JOIN → FILTER → AGGREGATE → SELECT → SORT → LIMIT
|
|
51
|
-
*/
|
|
52
|
-
execute(query: Query): DataEngineResult;
|
|
53
|
-
/**
|
|
54
|
-
* Returns the full joined dataset without any query applied.
|
|
55
|
-
* Useful for debugging or when the consumer wants raw access.
|
|
56
|
-
*/
|
|
57
|
-
getJoinedData(): DataEngineRow[];
|
|
58
|
-
/**
|
|
59
|
-
* Returns the field definitions for a given source.
|
|
60
|
-
*/
|
|
61
|
-
getFields(sourceId: string): FieldDefinition[];
|
|
62
|
-
/**
|
|
63
|
-
* Returns all field definitions across all sources.
|
|
64
|
-
*/
|
|
65
|
-
getAllFields(): Array<FieldDefinition & {
|
|
66
|
-
sourceId: string;
|
|
67
|
-
}>;
|
|
68
|
-
/**
|
|
69
|
-
* Serialises the engine configuration to a plain object
|
|
70
|
-
* that can be persisted and restored.
|
|
71
|
-
*/
|
|
72
|
-
getState(): DataEngineState;
|
|
73
|
-
/**
|
|
74
|
-
* Step 1: Hash-join all sources based on relationships.
|
|
75
|
-
*/
|
|
76
|
-
private join;
|
|
77
|
-
/**
|
|
78
|
-
* Step 3: Project only the requested fields.
|
|
79
|
-
* When aggregations are present, their aliases are also kept.
|
|
80
|
-
*/
|
|
81
|
-
private project;
|
|
82
|
-
/**
|
|
83
|
-
* Step 5: Sort rows by the given conditions.
|
|
84
|
-
*/
|
|
85
|
-
private sort;
|
|
86
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FieldDefinition, FieldFormat } from './data-engine-types';
|
|
2
|
-
/**
|
|
3
|
-
* Infers field definitions from the first row of a data array.
|
|
4
|
-
*/
|
|
5
|
-
export declare function inferFields<TData extends object>(data: TData[]): FieldDefinition[];
|
|
6
|
-
/**
|
|
7
|
-
* Infers the format of a single value.
|
|
8
|
-
*/
|
|
9
|
-
export declare function inferFormat(value: unknown): FieldFormat;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DataEngineRow } from './data-engine-types';
|
|
2
|
-
import { FilterGroup } from '../../../data-components/filter/filter-types';
|
|
3
|
-
/**
|
|
4
|
-
* Filters `DataEngineRow[]` using the provided `FilterGroup` AST.
|
|
5
|
-
*
|
|
6
|
-
* - Returns the original array reference unchanged when `filter` is
|
|
7
|
-
* `null` or contains no active conditions.
|
|
8
|
-
* - Works with prefixed keys (`tableId.fieldId`) and falls back to
|
|
9
|
-
* suffix matching for unprefixed field references.
|
|
10
|
-
*/
|
|
11
|
-
export declare function applyFilterToDataEngineRows(rows: DataEngineRow[], filter: FilterGroup | null): DataEngineRow[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { DataEngine } from './data-engine';
|
|
2
|
-
export { DataEngineClient } from './data-engine-client';
|
|
3
|
-
export { inferFields, inferFormat } from './field-inference';
|
|
4
|
-
export { hashJoin } from './join-engine';
|
|
5
|
-
export { aggregate } from './aggregation-engine';
|
|
6
|
-
export { applyFilterToDataEngineRows } from './filter-adapter';
|
|
7
|
-
export type { FieldRef, FieldFormat, FieldDefinition, DataSourceConfig, RelationshipType, Relationship, ExpressionOperator, ExpressionInput, LiteralValue, ExpressionNode, ExpressionDefinition, AggregationFunction, Aggregation, SortDirection, SortCondition, Query, DataEngineConfig, DataEngineRow, DataEngineResult, DataEngineState, } from './data-engine-types';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DataSourceConfig, DataEngineRow, Relationship } from './data-engine-types';
|
|
2
|
-
/**
|
|
3
|
-
* Performs a left join from `source` to `target` using a hash map
|
|
4
|
-
* on the target's join key.
|
|
5
|
-
*
|
|
6
|
-
* Algorithm:
|
|
7
|
-
* 1. Build a Map<targetKey, targetRow> from the target table
|
|
8
|
-
* 2. For each source row, look up the matching target row in O(1)
|
|
9
|
-
* 3. Prefix all columns with `tableId.` to avoid collisions
|
|
10
|
-
*
|
|
11
|
-
* For `many-to-one`: each source row gets at most one target row.
|
|
12
|
-
* For `one-to-many`: each source row may match multiple target rows
|
|
13
|
-
* (produces multiple output rows — cartesian expansion).
|
|
14
|
-
* For `one-to-one`: same as many-to-one.
|
|
15
|
-
*/
|
|
16
|
-
export declare function hashJoin(sources: DataSourceConfig[], relationships: Relationship[]): DataEngineRow[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface ScaffoldProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
defaultSidebarOpen?: boolean;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ScaffoldContentProps {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ScaffoldContextValue {
|
|
12
|
-
isSidebarOpen: boolean;
|
|
13
|
-
toggleSidebar: () => void;
|
|
14
|
-
setSidebarOpen: (open: boolean) => void;
|
|
15
|
-
isHoveringLogo: boolean;
|
|
16
|
-
setHoveringLogo: (hover: boolean) => void;
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Scaffold } from './scaffold';
|
|
3
|
-
declare const meta: Meta<typeof Scaffold>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Scaffold>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const ClosedSidebar: Story;
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface SectionProps {
|
|
3
|
-
/** The title displayed at the top of the section */
|
|
4
|
-
title: string;
|
|
5
|
-
/** Optional subtitle displayed below the title */
|
|
6
|
-
subtitle?: string;
|
|
7
|
-
/** Optional icon name (bundled SVG) shown before the title in the header */
|
|
8
|
-
icon?: string;
|
|
9
|
-
/** Optional actions rendered on the right side of the header */
|
|
10
|
-
headerActions?: React.ReactNode;
|
|
11
|
-
/** The content rendered inside the section body */
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
/** Additional CSS class names */
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { SectionProps } from './section-types';
|
|
3
|
-
/**
|
|
4
|
-
* Section is a layout container that groups content with a title and optional subtitle.
|
|
5
|
-
* It features a box-shadow to visually separate zones within a page.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Section: React.FC<SectionProps>;
|
|
8
|
-
export default Section;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sidebarAsset: import("react").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from '../../components/menu/menu-types';
|
|
2
|
-
import { SectionProps, SidebarProps, UserProps } from './sidebar-types';
|
|
3
|
-
export type SidebarContextType = {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
toggle: () => void;
|
|
6
|
-
setHoveringLogo: (hover: boolean) => void;
|
|
7
|
-
isHoveringLogo: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const Sidebar: {
|
|
10
|
-
({ children }: SidebarProps): import("react").JSX.Element;
|
|
11
|
-
displayName: string;
|
|
12
|
-
Logo: ({ logo, onClick }: import('./sidebar-logo/sidebar-logo-types').SidebarLogoProps) => import("react").JSX.Element;
|
|
13
|
-
Item: ({ leadingVisual, label, shortcut, onClick }: MenuItem) => import("react").JSX.Element;
|
|
14
|
-
Section: ({ title, children }: SectionProps) => import("react").JSX.Element;
|
|
15
|
-
User: ({ avatar, name }: UserProps) => import("react").JSX.Element;
|
|
16
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type StepperStepState = "idle" | "active" | "done";
|
|
2
|
-
export interface StepperItem {
|
|
3
|
-
/** Unique identifier for the step. */
|
|
4
|
-
value: string;
|
|
5
|
-
/** Display label shown next to the marker. */
|
|
6
|
-
label: string;
|
|
7
|
-
}
|
|
8
|
-
export interface StepperProps extends React.HTMLAttributes<HTMLElement> {
|
|
9
|
-
/** Ordered list of steps to render. */
|
|
10
|
-
items: StepperItem[];
|
|
11
|
-
/** The value of the current step. Steps before this are marked as done. */
|
|
12
|
-
current: string;
|
|
13
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { StepperProps } from './stepper-types';
|
|
3
|
-
/**
|
|
4
|
-
* Horizontal stepper that renders ordered steps with idle/active/done states.
|
|
5
|
-
* Steps before `current` are automatically marked as done. Each step renders
|
|
6
|
-
* as a `Tag` whose state changes with the step status.
|
|
7
|
-
*/
|
|
8
|
-
export declare const Stepper: React.FC<StepperProps>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { StepperProps } from './stepper-types';
|
|
3
|
-
declare const meta: Meta<StepperProps>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<StepperProps>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const FirstStep: Story;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export interface DynamicVirtualItem {
|
|
2
|
-
/** Original item index in the full list */
|
|
3
|
-
index: number;
|
|
4
|
-
/** Top offset from the top of the total scrollable area, in pixels */
|
|
5
|
-
start: number;
|
|
6
|
-
/** Measured (or estimated) height in pixels */
|
|
7
|
-
size: number;
|
|
8
|
-
}
|
|
9
|
-
export interface UseDynamicVirtualListOptions {
|
|
10
|
-
/** Total number of items in the list */
|
|
11
|
-
count: number;
|
|
12
|
-
/** Fallback height used for items that have not been measured yet */
|
|
13
|
-
estimatedItemHeight?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Extra items rendered above and below the visible viewport.
|
|
16
|
-
* A larger value makes scrolling smoother at the cost of slightly more DOM nodes.
|
|
17
|
-
* Defaults to 10.
|
|
18
|
-
*/
|
|
19
|
-
overscan?: number;
|
|
20
|
-
}
|
|
21
|
-
export interface UseDynamicVirtualListResult {
|
|
22
|
-
/** Items that should be rendered right now */
|
|
23
|
-
virtualItems: DynamicVirtualItem[];
|
|
24
|
-
/** Total scrollable height in pixels (for the spacer element) */
|
|
25
|
-
totalSize: number;
|
|
26
|
-
/** Attach this ref to the scrollable container div */
|
|
27
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
28
|
-
/** Attach this handler to the scrollable container's onScroll */
|
|
29
|
-
onScroll: (e: React.UIEvent<HTMLDivElement>) => void;
|
|
30
|
-
/**
|
|
31
|
-
* Callback ref to attach to each rendered item element.
|
|
32
|
-
* Call with `(el, index)` — el will be null when the item unmounts.
|
|
33
|
-
*/
|
|
34
|
-
measureElement: (el: Element | null, index: number) => void;
|
|
35
|
-
/** Scroll the container so the given index is in view */
|
|
36
|
-
scrollToIndex: (index: number) => void;
|
|
37
|
-
/** First rendered index (including overscan) */
|
|
38
|
-
startIndex: number;
|
|
39
|
-
/** Last rendered index (including overscan) */
|
|
40
|
-
endIndex: number;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* A dynamic-height virtual list hook inspired by TanStack Virtual.
|
|
44
|
-
*
|
|
45
|
-
* Unlike fixed-height virtualizers, this hook uses a ResizeObserver to measure
|
|
46
|
-
* each rendered item's actual height and falls back to `estimatedItemHeight` for
|
|
47
|
-
* items that have not yet been rendered. This allows rows with variable content
|
|
48
|
-
* (wrapped text, expandable cells, group headers) to scroll correctly.
|
|
49
|
-
*
|
|
50
|
-
* Usage:
|
|
51
|
-
* ```tsx
|
|
52
|
-
* const { virtualItems, totalSize, containerRef, onScroll, measureElement } =
|
|
53
|
-
* useDynamicVirtualList({ count: rows.length, estimatedItemHeight: 40, overscan: 10 });
|
|
54
|
-
*
|
|
55
|
-
* return (
|
|
56
|
-
* <div ref={containerRef} onScroll={onScroll} style={{ height: 400, overflowY: "auto" }}>
|
|
57
|
-
* <div style={{ height: totalSize, position: "relative" }}>
|
|
58
|
-
* {virtualItems.map(({ index, start }) => (
|
|
59
|
-
* <div
|
|
60
|
-
* key={index}
|
|
61
|
-
* ref={(el) => measureElement(el, index)}
|
|
62
|
-
* style={{ position: "absolute", top: start, width: "100%" }}
|
|
63
|
-
* >
|
|
64
|
-
* {rows[index]}
|
|
65
|
-
* </div>
|
|
66
|
-
* ))}
|
|
67
|
-
* </div>
|
|
68
|
-
* </div>
|
|
69
|
-
* );
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* For table usage, pair with padding `<tr>` spacers at the top and bottom of
|
|
73
|
-
* `<tbody>` and attach `measureElement` to each `<tr>` via a ref callback.
|
|
74
|
-
*/
|
|
75
|
-
export declare function useDynamicVirtualList({ count, estimatedItemHeight, overscan, }: UseDynamicVirtualListOptions): UseDynamicVirtualListResult;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
interface UseFixedVirtualListOptions<T> {
|
|
2
|
-
items: T[];
|
|
3
|
-
itemHeight: number;
|
|
4
|
-
containerHeight: number;
|
|
5
|
-
overscan?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function useFixedVirtualList<T>({ items, itemHeight, containerHeight, overscan }: UseFixedVirtualListOptions<T>): {
|
|
8
|
-
containerProps: {
|
|
9
|
-
ref: import('react').RefObject<HTMLDivElement | null>;
|
|
10
|
-
onScroll: (e: React.UIEvent<HTMLDivElement>) => void;
|
|
11
|
-
style: {
|
|
12
|
-
maxHeight: string;
|
|
13
|
-
overflowY: "auto";
|
|
14
|
-
position: "relative";
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
innerProps: {
|
|
18
|
-
style: {
|
|
19
|
-
height: string;
|
|
20
|
-
position: "relative";
|
|
21
|
-
width: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
virtualItems: {
|
|
25
|
-
item: T;
|
|
26
|
-
index: number;
|
|
27
|
-
offsetTop: number;
|
|
28
|
-
}[];
|
|
29
|
-
scrollToIndex: (index: number) => void;
|
|
30
|
-
scrollTop: number;
|
|
31
|
-
startIndex: number;
|
|
32
|
-
endIndex: number;
|
|
33
|
-
};
|
|
34
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AnimationState } from '../types/global-types';
|
|
2
|
-
/** Options for {@link useOverlayAnimation}. */
|
|
3
|
-
export interface UseOverlayAnimationProps {
|
|
4
|
-
/** Whether the overlay is open (visible). */
|
|
5
|
-
open: boolean;
|
|
6
|
-
/** Duration of open/close animation in ms. */
|
|
7
|
-
animationDuration: number;
|
|
8
|
-
/** Called once when the entering animation completes (panel is open). */
|
|
9
|
-
onEntered?: () => void;
|
|
10
|
-
/** Called once when the exiting animation completes (panel is closed). */
|
|
11
|
-
onExited?: () => void;
|
|
12
|
-
}
|
|
13
|
-
/** Drives the shared `entering → open → exiting → closed` animation state machine*/
|
|
14
|
-
export declare function useOverlayAnimation({ open, animationDuration, onEntered, onExited, }: UseOverlayAnimationProps): {
|
|
15
|
-
animationState: AnimationState;
|
|
16
|
-
animationDurationMs: number;
|
|
17
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ShortcutConfig, UseShortcutOptions } from '../custom-components/shortcut-tooltip/shortcut-tooltip-types';
|
|
2
|
-
/**
|
|
3
|
-
* Hook for registering keyboard shortcuts with automatic lifecycle management
|
|
4
|
-
*
|
|
5
|
-
* @param options - Configuration options for shortcut behavior
|
|
6
|
-
* @returns Object with register, unregister, activate, deactivate, and trigger functions
|
|
7
|
-
*/
|
|
8
|
-
export declare const useShortcut: (options?: UseShortcutOptions) => {
|
|
9
|
-
/** Register a new keyboard shortcut */
|
|
10
|
-
register: (keys: string, config: ShortcutConfig) => void;
|
|
11
|
-
/** Unregister an existing keyboard shortcut */
|
|
12
|
-
unregister: (keys: string) => void;
|
|
13
|
-
/** Programmatically trigger a shortcut (for testing or manual execution) */
|
|
14
|
-
trigger: (keys: string) => void;
|
|
15
|
-
/** Activate component-scoped shortcuts (attach to onFocus/onMouseEnter) */
|
|
16
|
-
activate: () => void;
|
|
17
|
-
/** Deactivate component-scoped shortcuts (attach to onBlur/onMouseLeave) */
|
|
18
|
-
deactivate: () => void;
|
|
19
|
-
};
|