@restio/ui 0.2.0 → 0.2.1-20260901160735
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 +78 -8
- package/dist/core.cjs +1 -0
- package/dist/core.d.ts +803 -0
- package/dist/core.js +30 -0
- package/dist/data.cjs +1 -0
- package/dist/data.d.ts +1423 -0
- package/dist/data.js +24 -0
- package/dist/experimental.cjs +1 -0
- package/dist/experimental.d.ts +486 -0
- package/dist/experimental.js +1027 -0
- package/dist/framework.cjs +1 -0
- package/dist/framework.d.ts +788 -0
- package/dist/framework.js +31 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +3124 -143
- package/dist/index.js +90 -0
- package/dist/{restio-ui.es.js → src-DaTjVaGd.js} +24815 -25017
- package/dist/src-gB-fpYMb.cjs +156 -0
- package/dist/ui.css +1 -1
- package/package.json +46 -25
- 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/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 -11
- 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 -50
- package/dist/components/input/date/stories/date.stories.d.ts +0 -5
- 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 -19
- 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 -9
- 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 -43
- package/dist/custom-components/layout/layout.d.ts +0 -12
- package/dist/custom-components/layout/layout.stories.d.ts +0 -7
- 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/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 -12
- 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 -7
- 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 -3
- package/dist/data-components/data-structure/data-structure-utils.d.ts +0 -15
- package/dist/data-components/data-structure/data-structure.d.ts +0 -43
- 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 -70
- 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/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 -52
- 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 -37
- package/dist/data-components/switcher/switcher-types.d.ts +0 -57
- 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 -16
- 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 -173
- package/dist/types/global-types.d.ts +0 -46
- 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,246 +0,0 @@
|
|
|
1
|
-
import { UIEventHandler, Ref } from 'react';
|
|
2
|
-
import { DataStructureColumn, DataStructureComponent } from '../data-structure/data-structure';
|
|
3
|
-
import { DataStructureUIConfig, ResolvedCellUI } from '../ui-layer/ui-layer-types';
|
|
4
|
-
import { PivotConfig } from './pivot/pivot-types';
|
|
5
|
-
import { AggregationFn } from './aggregation/aggregation-utils';
|
|
6
|
-
import { AIProvider, AIQuickAction } from '../../providers/ai-assistant/ai-assistant-types';
|
|
7
|
-
import { FilterGroup } from '../filter/filter-types';
|
|
8
|
-
export type TableGridDisplayMode = "tree" | "table" | "table-tree";
|
|
9
|
-
/** Keyed map of column sticky-pin offsets (left/right pixel values). */
|
|
10
|
-
export type ColumnOffsets = Record<string, {
|
|
11
|
-
left?: number;
|
|
12
|
-
right?: number;
|
|
13
|
-
}>;
|
|
14
|
-
export interface TableGridSpecificProps<TData> {
|
|
15
|
-
/** Enable sorting functionality */
|
|
16
|
-
enableSorting?: boolean;
|
|
17
|
-
/** Enable row selection */
|
|
18
|
-
enableSelection?: boolean;
|
|
19
|
-
/** Enable editing functionality */
|
|
20
|
-
enableEditing?: boolean;
|
|
21
|
-
/** Callback when a row is clicked */
|
|
22
|
-
onRowClick?: (row: TData, index: number) => void;
|
|
23
|
-
/** Callback when data changes */
|
|
24
|
-
onDataChange?: (data: TData[]) => void;
|
|
25
|
-
/** Callback fired when the selection changes */
|
|
26
|
-
onSelectionChange?: (selectedIds: string[], selectedData: TData[]) => void;
|
|
27
|
-
/** Enable grouping functionality */
|
|
28
|
-
enableGrouping?: boolean;
|
|
29
|
-
/** Callback when grouping changes */
|
|
30
|
-
onGroupingChange?: (grouping: string[]) => void;
|
|
31
|
-
/** Custom className for styling */
|
|
32
|
-
className?: string;
|
|
33
|
-
/** Enable virtualization */
|
|
34
|
-
enableVirtualization?: boolean;
|
|
35
|
-
/** Height of each row in pixels (required for virtualization) */
|
|
36
|
-
virtualizedRowHeight?: number;
|
|
37
|
-
/** Height of the scrollable container in pixels (required for virtualization) */
|
|
38
|
-
virtualizedContainerHeight?: number;
|
|
39
|
-
/** Enable sticky header */
|
|
40
|
-
stickyHeader?: boolean;
|
|
41
|
-
/** Enable sticky footer */
|
|
42
|
-
stickyFooter?: boolean;
|
|
43
|
-
/** Enable pivot table mode — shows the pivot icon in the right toolbar */
|
|
44
|
-
enablePivot?: boolean;
|
|
45
|
-
/** Initial or controlled pivot configuration */
|
|
46
|
-
pivotConfig?: PivotConfig;
|
|
47
|
-
/** Callback when the pivot configuration changes */
|
|
48
|
-
onPivotConfigChange?: (config: PivotConfig) => void;
|
|
49
|
-
/** Enable the formula builder — shows the formula icon in the right toolbar */
|
|
50
|
-
enableFormulaBuilder?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Controls how column widths are calculated.
|
|
53
|
-
* - `"auto"` (default): columns share the available width; `size` is ignored.
|
|
54
|
-
* - `"fixed"`: each column uses its `size` value; the table scrolls horizontally when the total exceeds the container.
|
|
55
|
-
*/
|
|
56
|
-
columnSizing?: "auto" | "fixed";
|
|
57
|
-
/** Show loading skeleton state while data is being fetched */
|
|
58
|
-
loading?: boolean;
|
|
59
|
-
/** Allow columns to be reordered via drag & drop on the header */
|
|
60
|
-
enableColumnReorder?: boolean;
|
|
61
|
-
/** Show a column visibility toggle panel in the right sidebar */
|
|
62
|
-
enableColumnVisibility?: boolean;
|
|
63
|
-
/** Show a filter panel in the right sidebar */
|
|
64
|
-
enableFiltering?: boolean;
|
|
65
|
-
/** Enable the AI assistant chat panel in the right sidebar */
|
|
66
|
-
enableAIAssistant?: boolean;
|
|
67
|
-
/** AI provider instance for processing natural-language commands */
|
|
68
|
-
aiProvider?: AIProvider;
|
|
69
|
-
/** When true, AI-suggested actions are held for explicit user confirmation before being applied */
|
|
70
|
-
requiresConfirmation?: boolean;
|
|
71
|
-
/** Pre-configured action buttons shown in the AI chat panel for one-click commands */
|
|
72
|
-
aiQuickActions?: AIQuickAction[];
|
|
73
|
-
/**
|
|
74
|
-
* Called whenever a new formula column is created (via the builder or AI).
|
|
75
|
-
* Use this to persist the column definition on your server so it can be
|
|
76
|
-
* re-supplied via the `columns` prop on the next load.
|
|
77
|
-
*/
|
|
78
|
-
onFormulaColumnAdd?: (col: ColumnDef<TData>) => void;
|
|
79
|
-
/**
|
|
80
|
-
* Forwarded to the inner scroll container (`rst-table-container`).
|
|
81
|
-
* Allows an external component to react to scroll events from the table body.
|
|
82
|
-
* Works for both virtualized and non-virtualized modes.
|
|
83
|
-
*/
|
|
84
|
-
onScroll?: UIEventHandler<HTMLDivElement>;
|
|
85
|
-
/**
|
|
86
|
-
* Ref forwarded to the inner scroll container (`rst-table-container`).
|
|
87
|
-
* Allows an external component to programmatically read or set `scrollTop`.
|
|
88
|
-
* Works for both virtualized and non-virtualized modes.
|
|
89
|
-
*/
|
|
90
|
-
scrollContainerRef?: Ref<HTMLDivElement>;
|
|
91
|
-
}
|
|
92
|
-
export type TableGridProps<TData> = DataStructureComponent<TData> & TableGridSpecificProps<TData>;
|
|
93
|
-
type TableGridProviderKeys = "data" | "columns" | "getSubRows" | "onDataChange" | "enableSorting" | "enableSelection" | "enableEditing" | "enableGrouping" | "enableVirtualization" | "stickyHeader" | "stickyFooter" | "columnSizing" | "enableColumnReorder" | "enableColumnVisibility" | "enableFiltering" | "onSelectionChange" | "onFormulaColumnAdd";
|
|
94
|
-
/** Props forwarded from TableGrid to the internal tools+table layer. */
|
|
95
|
-
export type TableGridWithToolsProps<TData> = Omit<TableGridProps<TData>, TableGridProviderKeys> & {
|
|
96
|
-
onFormulaColumnAdd?: (col: ColumnDef<TData>) => void;
|
|
97
|
-
aiProvider?: AIProvider;
|
|
98
|
-
enableFiltering?: boolean;
|
|
99
|
-
};
|
|
100
|
-
export interface ColumnDef<TData, TValue = TData[keyof TData]> extends DataStructureColumn<TData, TValue> {
|
|
101
|
-
/** Column width */
|
|
102
|
-
size?: number;
|
|
103
|
-
minSize?: number;
|
|
104
|
-
maxSize?: number;
|
|
105
|
-
/** Enable sorting for this column */
|
|
106
|
-
enableSorting?: boolean;
|
|
107
|
-
/** Sort function for custom sorting */
|
|
108
|
-
sortingFn?: (a: TData, b: TData, columnId: string) => number;
|
|
109
|
-
/** Pin column to left or right */
|
|
110
|
-
pinned?: "left" | "right" | false;
|
|
111
|
-
/** Footer content. Pass a string for a static label, a function for dynamic JSX,
|
|
112
|
-
* or { aggregation } to auto-compute a total from the column data. */
|
|
113
|
-
footer?: string | {
|
|
114
|
-
aggregation: AggregationFn;
|
|
115
|
-
label?: string;
|
|
116
|
-
} | ((props: {
|
|
117
|
-
column: ColumnDef<TData>;
|
|
118
|
-
}) => React.ReactNode);
|
|
119
|
-
}
|
|
120
|
-
export interface TableRow<TData> {
|
|
121
|
-
/** Row unique ID */
|
|
122
|
-
id: string;
|
|
123
|
-
/** Original data object for the row */
|
|
124
|
-
data: TData;
|
|
125
|
-
/** Index in the original data array */
|
|
126
|
-
index: number;
|
|
127
|
-
/** Parent row ID if this is a subrow */
|
|
128
|
-
parentId?: string;
|
|
129
|
-
/** Depth level in the hierarchy (0 = top level) */
|
|
130
|
-
depth: number;
|
|
131
|
-
/** Whether this row is expanded (has visible subrows) */
|
|
132
|
-
isExpanded: boolean;
|
|
133
|
-
/** Subrows if any */
|
|
134
|
-
subRows?: TableRow<TData>[];
|
|
135
|
-
/** Whether this is a group row */
|
|
136
|
-
isGroup?: boolean;
|
|
137
|
-
/** The value being grouped on */
|
|
138
|
-
groupingValue?: string;
|
|
139
|
-
/** The column ID being grouped on */
|
|
140
|
-
groupingColumnId?: string;
|
|
141
|
-
/** All original data items in this group (set only when isGroup=true) */
|
|
142
|
-
groupItems?: TData[];
|
|
143
|
-
}
|
|
144
|
-
export interface TableState<TData> {
|
|
145
|
-
/** Current data in the table */
|
|
146
|
-
dataState: TData[];
|
|
147
|
-
/** Current sorting state */
|
|
148
|
-
sorting: SortingState;
|
|
149
|
-
/** Current grouping state (column IDs) */
|
|
150
|
-
grouping: string[];
|
|
151
|
-
/** Expanded rows */
|
|
152
|
-
expandedRows: Set<string>;
|
|
153
|
-
/** Display mode based on data structure */
|
|
154
|
-
displayMode: TableGridDisplayMode;
|
|
155
|
-
/** Set of selected row IDs */
|
|
156
|
-
selectedRows: Set<string>;
|
|
157
|
-
/** Ordered list of column IDs (empty = natural order) */
|
|
158
|
-
columnOrder: string[];
|
|
159
|
-
/** Set of hidden column IDs */
|
|
160
|
-
hiddenColumns: Set<string>;
|
|
161
|
-
/** Dynamic pinning overrides — takes precedence over ColumnDef.pinned */
|
|
162
|
-
columnPinning: Record<string, "left" | "right" | false>;
|
|
163
|
-
/** Active filter tree — null means no filter applied */
|
|
164
|
-
filterGroup: FilterGroup | null;
|
|
165
|
-
/** Whether filtering is enabled */
|
|
166
|
-
enableFiltering?: boolean;
|
|
167
|
-
}
|
|
168
|
-
export type SortingState = {
|
|
169
|
-
id: string;
|
|
170
|
-
desc: boolean;
|
|
171
|
-
}[];
|
|
172
|
-
export interface TableContextValue<TData> {
|
|
173
|
-
/** Table data */
|
|
174
|
-
data: TData[];
|
|
175
|
-
/** All column definitions (including grouped ones) */
|
|
176
|
-
columns: ColumnDef<TData>[];
|
|
177
|
-
/** Visible columns: grouped columns are removed and a synthetic "Group" column is prepended when grouping is active */
|
|
178
|
-
visibleColumns: ColumnDef<TData>[];
|
|
179
|
-
/** Get subrows function */
|
|
180
|
-
getSubRows?: (originalRow: TData, index: number) => TData[] | undefined;
|
|
181
|
-
/** Table state */
|
|
182
|
-
state: TableState<TData>;
|
|
183
|
-
/** Current display mode */
|
|
184
|
-
displayMode: TableGridDisplayMode;
|
|
185
|
-
/** Set sorting */
|
|
186
|
-
setSorting: (sorting: SortingState) => void;
|
|
187
|
-
/** Set grouping */
|
|
188
|
-
setGrouping: (grouping: string[]) => void;
|
|
189
|
-
/** Toggle row expansion */
|
|
190
|
-
toggleRowExpansion: (rowId: string) => void;
|
|
191
|
-
/** Expand every group row at every depth level */
|
|
192
|
-
expandAll: () => void;
|
|
193
|
-
/** Collapse all group rows */
|
|
194
|
-
collapseAll: () => void;
|
|
195
|
-
/** Expand all groups at a specific depth (also expands ancestor levels so they become visible) */
|
|
196
|
-
expandLevel: (level: number) => void;
|
|
197
|
-
/** Collapse all groups at a specific depth */
|
|
198
|
-
collapseLevel: (level: number) => void;
|
|
199
|
-
/** Update a cell value — pass the original row data reference (stable across sort/group) */
|
|
200
|
-
updateCellValue: (rowData: TData, columnId: string, newValue: TData[keyof TData]) => void;
|
|
201
|
-
/** Pre-computed rows (sorted, grouped, flattened) — O(1) to read, computed once per render cycle */
|
|
202
|
-
rows: TableRow<TData>[];
|
|
203
|
-
/** Get processed rows — returns the same pre-computed rows array as `rows` */
|
|
204
|
-
getRows: () => TableRow<TData>[];
|
|
205
|
-
/** Table configuration options */
|
|
206
|
-
options: TableOptions;
|
|
207
|
-
/** Toggle selection for a single row (with cascading for tree/group rows) */
|
|
208
|
-
toggleRowSelection: (row: TableRow<TData>) => void;
|
|
209
|
-
/** Toggle the "select all" state */
|
|
210
|
-
toggleAllSelection: () => void;
|
|
211
|
-
/** Get the checkbox display state for a row */
|
|
212
|
-
getRowSelectionState: (row: TableRow<TData>) => import('./selection/selection-types').CheckboxSelectionState;
|
|
213
|
-
/** Get the "select all" header checkbox state */
|
|
214
|
-
getAllSelectionState: () => import('./selection/selection-types').CheckboxSelectionState;
|
|
215
|
-
/** Set the column order (array of column IDs) */
|
|
216
|
-
setColumnOrder: (order: string[]) => void;
|
|
217
|
-
/** Toggle visibility for a single column by its ID */
|
|
218
|
-
toggleColumnVisibility: (columnId: string) => void;
|
|
219
|
-
/** Dynamically pin a column to "left", "right", or remove pinning with false */
|
|
220
|
-
setPinColumn: (columnId: string, pinning: "left" | "right" | false) => void;
|
|
221
|
-
/** Programmatically set the selected row IDs (replaces current selection) */
|
|
222
|
-
setSelectedRows: (ids: Set<string>) => void;
|
|
223
|
-
/** Set or clear the active filter group */
|
|
224
|
-
setFilterGroup: (filter: FilterGroup | null) => void;
|
|
225
|
-
/** Dynamically add a formula column (created by the formula builder or AI) */
|
|
226
|
-
addFormulaColumn?: (col: ColumnDef<TData>) => void;
|
|
227
|
-
/** UI configuration for conditional styling */
|
|
228
|
-
uiConfig?: DataStructureUIConfig<TData>;
|
|
229
|
-
/** Precomputed UI map: columnId → ResolvedCellUI[] (index = row index) */
|
|
230
|
-
uiMap: Map<string, ResolvedCellUI[]>;
|
|
231
|
-
}
|
|
232
|
-
export interface TableOptions {
|
|
233
|
-
enableSorting?: boolean;
|
|
234
|
-
enableSelection?: boolean;
|
|
235
|
-
enableEditing?: boolean;
|
|
236
|
-
enableGrouping?: boolean;
|
|
237
|
-
enableVirtualization?: boolean;
|
|
238
|
-
stickyHeader?: boolean;
|
|
239
|
-
stickyFooter?: boolean;
|
|
240
|
-
columnSizing?: "auto" | "fixed";
|
|
241
|
-
enableColumnReorder?: boolean;
|
|
242
|
-
enableColumnVisibility?: boolean;
|
|
243
|
-
enableFiltering?: boolean;
|
|
244
|
-
enableAIAssistant?: boolean;
|
|
245
|
-
}
|
|
246
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TableGridProps, TableGridWithToolsProps } from './table-grid-types';
|
|
2
|
-
export declare function TableGrid<TData>({ data, columns, getSubRows, onDataChange, onSelectionChange, enableSorting, enableSelection, enableEditing, enableGrouping, enableVirtualization, stickyHeader, stickyFooter, columnSizing, enableColumnReorder, enableColumnVisibility, enableFiltering, enableAIAssistant, aiProvider, onFormulaColumnAdd: externalOnFormulaColumnAdd, loading, uiConfig, ...toolPassThrough }: TableGridProps<TData>): import("react").JSX.Element;
|
|
3
|
-
/**
|
|
4
|
-
* Renders the TableGrid table content assuming a TableProvider is already present
|
|
5
|
-
* in the component tree. Designed for use inside components (e.g. Gantt) that
|
|
6
|
-
* manage their own shared TableProvider so the row order / sort state is visible
|
|
7
|
-
* to sibling components without prop drilling.
|
|
8
|
-
*/
|
|
9
|
-
export declare function TableGridContent<TData>(props: TableGridWithToolsProps<TData>): import("react").JSX.Element;
|
|
10
|
-
export { TableGrid as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { 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 SimplifiedExample: Story;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const WithAccessorFunctions: Story;
|
|
9
|
-
export declare const WithHierarchicalData: Story;
|
|
10
|
-
/**
|
|
11
|
-
* Shows every CellType rendered in a TableGrid — one column per cell type.
|
|
12
|
-
* Uses the shared asset so the same data can be reused across macro-components.
|
|
13
|
-
*/
|
|
14
|
-
export declare const AllCellTypes: Story;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TableRow, TableGridDisplayMode, ColumnDef } from './table-grid-types';
|
|
2
|
-
/** Returns a stable column ID, falling back to `col-{index}` when neither `id` nor `accessorKey` is set. */
|
|
3
|
-
export declare function getColId<TData>(col: ColumnDef<TData>, index: number): string;
|
|
4
|
-
export declare function getRowValue<TData>(row: TData, columnId: string, columns: ColumnDef<TData>[]): TData[keyof TData] | null;
|
|
5
|
-
/**
|
|
6
|
-
* Computes the aggregate sort key for a group of items on a given column.
|
|
7
|
-
*/
|
|
8
|
-
export declare function computeGroupAggregate<TData>(items: TData[], column: ColumnDef<TData>): unknown;
|
|
9
|
-
/**
|
|
10
|
-
* Collects all group row IDs by traversing the full data tree (independent of
|
|
11
|
-
* `expandedRows`). Used by the expand/collapse helpers.
|
|
12
|
-
*
|
|
13
|
-
* @param targetDepth — when supplied, only IDs at that depth are returned;
|
|
14
|
-
* when omitted, IDs from every depth are returned.
|
|
15
|
-
*/
|
|
16
|
-
export declare function collectGroupIds<TData>(data: TData[], grouping: string[], columns: ColumnDef<TData>[], targetDepth?: number, depth?: number, parentId?: string): string[];
|
|
17
|
-
export declare function buildTableRows<TData>(data: TData[], getSubRows?: (row: TData, index: number) => TData[] | undefined, expandedRows?: Set<string>, displayMode?: TableGridDisplayMode, parentId?: string, depth?: number, getRowId?: (row: TData, index: number, parentId?: string) => string): TableRow<TData>[];
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { BaseTypographyProps } from '../../components/typography/typography-types';
|
|
2
|
-
import { IconProps } from '../../utility-components/icon/icon-types';
|
|
3
|
-
import { CellType } from '../../types/global-types';
|
|
4
|
-
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
5
|
-
/**
|
|
6
|
-
* Maps each CellType to the component-specific props that can be passed
|
|
7
|
-
* via `uiVariant` in a rule. TypeScript enforces that you only pass props
|
|
8
|
-
* the underlying component actually understands.
|
|
9
|
-
*/
|
|
10
|
-
export type CellUIVariantMap = {
|
|
11
|
-
[K in CellType]: K extends "IMAGE" ? Partial<Omit<IconProps, "src">> : Partial<Omit<BaseTypographyProps, "children" | "variant">>;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Given a tuple of `DataStructureColumn`, produces a union of
|
|
15
|
-
* `{ columnId: string; cellType: CellType }` entries.
|
|
16
|
-
*/
|
|
17
|
-
type ColumnTypeMap<TData, TColumns extends readonly DataStructureColumn<TData>[]> = {
|
|
18
|
-
[K in keyof TColumns]: TColumns[K] extends DataStructureColumn<TData> ? {
|
|
19
|
-
columnId: TColumns[K]["id"] extends string ? TColumns[K]["id"] : string;
|
|
20
|
-
cellType: TColumns[K]["cellType"] extends CellType ? TColumns[K]["cellType"] : CellType;
|
|
21
|
-
} : never;
|
|
22
|
-
}[number];
|
|
23
|
-
/**
|
|
24
|
-
* Looks up the `cellType` for a given `columnId` from a columns array.
|
|
25
|
-
* Falls back to `CellType` if not found.
|
|
26
|
-
*/
|
|
27
|
-
type LookupCellType<TData, TColumns extends readonly DataStructureColumn<TData>[], TId extends string> = Extract<ColumnTypeMap<TData, TColumns>, {
|
|
28
|
-
columnId: TId;
|
|
29
|
-
}> extends {
|
|
30
|
-
cellType: infer R;
|
|
31
|
-
} ? R extends CellType ? R : CellType : CellType;
|
|
32
|
-
/** Comparison operators for AST-like UI rules */
|
|
33
|
-
export type UIRuleOperator = "==" | "!=" | ">" | ">=" | "<" | "<=" | "includes" | "startsWith" | "endsWith" | "isEmpty" | "isNotEmpty";
|
|
34
|
-
/**
|
|
35
|
-
* A single declarative styling rule evaluated against a row.
|
|
36
|
-
* Rules are compiled once into fast evaluators — no runtime functions.
|
|
37
|
-
*
|
|
38
|
-
* When `field` and `op` are omitted, the rule always matches (static styling).
|
|
39
|
-
*
|
|
40
|
-
* @example conditional
|
|
41
|
-
* { field: "price", op: ">", value: 100, uiVariant: { color: "var(--rst-color-success)", fontWeight: "bold" } }
|
|
42
|
-
*
|
|
43
|
-
* @example static (always applies)
|
|
44
|
-
* { uiVariant: { color: "red" } }
|
|
45
|
-
*/
|
|
46
|
-
export interface DataStructureUIRule<TData, K extends CellType = CellType> {
|
|
47
|
-
/** Which field to evaluate — omit for a static rule that always matches */
|
|
48
|
-
field?: keyof TData;
|
|
49
|
-
/** Comparison operator — omit for a static rule that always matches */
|
|
50
|
-
op?: UIRuleOperator;
|
|
51
|
-
/** Comparison value (not needed for isEmpty / isNotEmpty) */
|
|
52
|
-
value?: unknown;
|
|
53
|
-
/**
|
|
54
|
-
* Component-specific props forwarded to the underlying renderer.
|
|
55
|
-
* TypeScript enforces the correct props based on the column's `cellType`.
|
|
56
|
-
*/
|
|
57
|
-
uiVariant?: CellUIVariantMap[K];
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Per-column UI configuration.
|
|
61
|
-
* Matches a schema column via `columnId` (same as `DataStructureColumn.id` or `accessorKey`).
|
|
62
|
-
*/
|
|
63
|
-
export interface DataStructureUIColumn<TData, TColumns extends readonly DataStructureColumn<TData>[] = DataStructureColumn<TData>[], TId extends string = string> {
|
|
64
|
-
/** Matches `DataStructureColumn.id` or `accessorKey` */
|
|
65
|
-
columnId: TId;
|
|
66
|
-
/** Ordered rules — first match wins. Rules without `field`/`op` always match. */
|
|
67
|
-
rules?: DataStructureUIRule<TData, LookupCellType<TData, TColumns, TId>>[];
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Top-level UI configuration passed to any data-component.
|
|
71
|
-
* `TColumns` is inferred from the `columns` prop — `cellType` is looked up automatically.
|
|
72
|
-
*/
|
|
73
|
-
export interface DataStructureUIConfig<TData, TColumns extends readonly DataStructureColumn<TData>[] = DataStructureColumn<TData>[]> {
|
|
74
|
-
columns?: DataStructureUIColumn<TData, TColumns, string>[];
|
|
75
|
-
}
|
|
76
|
-
/** Pre-resolved cell styling — Cell never resolves UI, only consumes this */
|
|
77
|
-
export interface ResolvedCellUI {
|
|
78
|
-
/** Component-specific props resolved from uiVariant rules */
|
|
79
|
-
uiVariant?: Record<string, unknown>;
|
|
80
|
-
}
|
|
81
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
2
|
-
import { DataStructureUIConfig, ResolvedCellUI } from './ui-layer-types';
|
|
3
|
-
/**
|
|
4
|
-
* Build a precomputed UI map: columnId → ResolvedCellUI[] (index = row index).
|
|
5
|
-
* Called once per [data, columns, uiConfig] change via useMemo.
|
|
6
|
-
*/
|
|
7
|
-
export declare function buildUIMap<TData>(data: TData[], columns: DataStructureColumn<TData>[], uiConfig: DataStructureUIConfig<TData> | undefined): Map<string, ResolvedCellUI[]>;
|
|
8
|
-
/**
|
|
9
|
-
* React hook: returns a memoized UI map for cell styling.
|
|
10
|
-
* Recomputes only when data, columns, or uiConfig change.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useUIMap<TData>(data: TData[], columns: DataStructureColumn<TData>[], uiConfig: DataStructureUIConfig<TData> | undefined): Map<string, ResolvedCellUI[]>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type ContributionCell = {
|
|
2
|
-
day: string;
|
|
3
|
-
count: number;
|
|
4
|
-
};
|
|
5
|
-
export type ContributionMatrix = ContributionCell[][];
|
|
6
|
-
export type Period = 'month' | 'quarter' | 'year';
|
|
7
|
-
export type ContributionData = ContributionCell[][];
|
|
8
|
-
export interface ContributionHeatmapProps {
|
|
9
|
-
data: ContributionData;
|
|
10
|
-
bands: number;
|
|
11
|
-
color: string;
|
|
12
|
-
period?: Period;
|
|
13
|
-
startDate?: string;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ContributionData, Period } from './contribution-heatmap-types';
|
|
2
|
-
/**
|
|
3
|
-
* Calcola shade basata su count rispetto a maxCount e numero di bande.
|
|
4
|
-
*/
|
|
5
|
-
export declare function getShade(count: number, maxCount: number, bands: number, baseColor: string): string;
|
|
6
|
-
export declare function generateHeatmapData(period?: Period, startDateStr?: string): ContributionData;
|
|
7
|
-
export declare function startOfMonth(date: Date): Date;
|
|
8
|
-
export declare function startOfQuarter(date: Date): Date;
|
|
9
|
-
export declare function startOfYear(date: Date): Date;
|
|
10
|
-
export declare function addDays(date: Date, amount: number): Date;
|
|
11
|
-
export declare function format(date: Date): string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { ContributionHeatmapProps } from './contribution-heatmap-types';
|
|
3
|
-
declare const meta: Meta<ContributionHeatmapProps>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<ContributionHeatmapProps>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const MoreBands: Story;
|
|
8
|
-
export declare const DifferentColor: Story;
|
|
9
|
-
export declare const Periods: Story;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { DashboardWidgetConfig, WidgetComponentType, WidgetPosition } from './dashboard-builder-types';
|
|
2
|
-
type ResizeHandle = "n" | "s" | "e" | "w" | "ne" | "nw" | "se" | "sw";
|
|
3
|
-
interface UseCanvasDragDropOptions {
|
|
4
|
-
readonly widgets: DashboardWidgetConfig[];
|
|
5
|
-
readonly onMoveWidget: (widgetId: string, position: WidgetPosition) => void;
|
|
6
|
-
readonly onAddWidget: (componentType: WidgetComponentType, dataSourceId: string, position: WidgetPosition) => void;
|
|
7
|
-
readonly onChange: () => void;
|
|
8
|
-
}
|
|
9
|
-
interface UseCanvasDragDropReturn {
|
|
10
|
-
/** Ref to attach to the grid container */
|
|
11
|
-
gridRef: React.RefObject<HTMLDivElement | null>;
|
|
12
|
-
/** ID of the widget currently being dragged or resized */
|
|
13
|
-
draggingWidgetId: string | null;
|
|
14
|
-
/** Preview position during drag/resize */
|
|
15
|
-
dragPreviewPos: WidgetPosition | null;
|
|
16
|
-
/** Whether the current drag/resize has a collision */
|
|
17
|
-
hasCollision: boolean;
|
|
18
|
-
/** Whether the current resize has a collision */
|
|
19
|
-
resizeCollision: boolean;
|
|
20
|
-
/** Grid-level dragOver handler */
|
|
21
|
-
handleDragOver: (e: React.DragEvent) => void;
|
|
22
|
-
/** Grid-level drop handler */
|
|
23
|
-
handleDrop: (e: React.DragEvent) => void;
|
|
24
|
-
/** Attach to each widget's onDragStart */
|
|
25
|
-
handleWidgetDragStart: (e: React.DragEvent, widget: DashboardWidgetConfig) => void;
|
|
26
|
-
/** Attach to each widget's onDragEnd */
|
|
27
|
-
handleWidgetDragEnd: () => void;
|
|
28
|
-
/** Attach to resize handle's onMouseDown */
|
|
29
|
-
handleResizeStart: (e: React.MouseEvent, widget: DashboardWidgetConfig, handle: ResizeHandle) => void;
|
|
30
|
-
/** Convert pixel coordinates to grid (col, row) */
|
|
31
|
-
pixelToGrid: (clientX: number, clientY: number) => {
|
|
32
|
-
col: number;
|
|
33
|
-
row: number;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Encapsulates all drag-and-drop and resize logic for the dashboard canvas.
|
|
38
|
-
*
|
|
39
|
-
* Manages:
|
|
40
|
-
* - Palette → canvas drop (adding new widgets)
|
|
41
|
-
* - Widget repositioning via drag
|
|
42
|
-
* - Widget resizing via 8-directional handles
|
|
43
|
-
* - Collision detection during drag/resize
|
|
44
|
-
*/
|
|
45
|
-
export declare function useCanvasDragDrop({ widgets, onMoveWidget, onAddWidget, onChange, }: UseCanvasDragDropOptions): UseCanvasDragDropReturn;
|
|
46
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DashboardWidgetConfig, WidgetComponentType, WidgetPosition, DataSourceRegistry } from './dashboard-builder-types';
|
|
3
|
-
interface BuilderCanvasProps {
|
|
4
|
-
readonly widgets: DashboardWidgetConfig[];
|
|
5
|
-
readonly selectedWidgetId: string | null;
|
|
6
|
-
readonly dataSources: DataSourceRegistry;
|
|
7
|
-
readonly onSelectWidget: (widgetId: string | null) => void;
|
|
8
|
-
readonly onMoveWidget: (widgetId: string, position: WidgetPosition) => void;
|
|
9
|
-
readonly onRemoveWidget: (widgetId: string) => void;
|
|
10
|
-
readonly onAddWidget: (componentType: WidgetComponentType, dataSourceId: string, position: WidgetPosition) => void;
|
|
11
|
-
readonly onChange: () => void;
|
|
12
|
-
/** Resolves effective action flags for a widget */
|
|
13
|
-
readonly getWidgetActions?: (widget: DashboardWidgetConfig) => {
|
|
14
|
-
enableExport: boolean;
|
|
15
|
-
enableScreenshot: boolean;
|
|
16
|
-
enableExpand: boolean;
|
|
17
|
-
enableFilter: boolean;
|
|
18
|
-
};
|
|
19
|
-
/** Canvas mode: "edit" enables drag/resize/selection, "view" is read-only */
|
|
20
|
-
readonly mode?: "edit" | "view";
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The canvas where widgets are placed on a 12×30 visible grid.
|
|
24
|
-
*
|
|
25
|
-
* Supports:
|
|
26
|
-
* - Visible grid cells with borders
|
|
27
|
-
* - Drag & drop from the palette to add new widgets
|
|
28
|
-
* - Drag to reposition existing widgets
|
|
29
|
-
* - Collision detection: overlapping cells turn red, drop is blocked
|
|
30
|
-
* - Click to select a widget
|
|
31
|
-
*/
|
|
32
|
-
export declare const BuilderCanvas: React.FC<BuilderCanvasProps>;
|
|
33
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DashboardConfig, DashboardWidgetConfig, WidgetComponentType, WidgetPosition, DashboardBuilderState, PrebuiltSection } from './dashboard-builder-types';
|
|
2
|
-
/**
|
|
3
|
-
* Hook that manages the dashboard builder state.
|
|
4
|
-
*
|
|
5
|
-
* Provides actions to add, remove, update, and reorder widgets,
|
|
6
|
-
* as well as manage global filters and the dashboard name.
|
|
7
|
-
*/
|
|
8
|
-
export declare function useDashboardBuilderState(initialConfig?: DashboardConfig): {
|
|
9
|
-
state: DashboardBuilderState;
|
|
10
|
-
mode: "view" | "edit";
|
|
11
|
-
setMode: import('react').Dispatch<import('react').SetStateAction<"view" | "edit">>;
|
|
12
|
-
addWidget: (componentType: WidgetComponentType, dataSourceId: string, position: WidgetPosition) => void;
|
|
13
|
-
addPrebuiltWidget: (section: PrebuiltSection) => void;
|
|
14
|
-
removeWidget: (widgetId: string) => void;
|
|
15
|
-
updateWidget: (widgetId: string, patch: Partial<DashboardWidgetConfig>) => void;
|
|
16
|
-
moveWidget: (widgetId: string, position: WidgetPosition) => void;
|
|
17
|
-
selectWidget: (widgetId: string | null) => void;
|
|
18
|
-
selectedWidget: DashboardWidgetConfig | null;
|
|
19
|
-
setName: (name: string) => void;
|
|
20
|
-
setFilters: (filters: DashboardConfig["filters"] | ((prev: DashboardConfig["filters"]) => DashboardConfig["filters"])) => void;
|
|
21
|
-
resetConfig: (newConfig?: DashboardConfig) => void;
|
|
22
|
-
loadConfig: (newConfig: DashboardConfig) => void;
|
|
23
|
-
};
|