@restio/ui 0.2.0 → 0.2.1-20260901123418
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
|
@@ -0,0 +1,788 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ReactNode, Ref } from 'react';
|
|
3
|
+
|
|
4
|
+
interface AppBarProps {
|
|
5
|
+
children: React__default.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
interface AppBarTitleProps {
|
|
9
|
+
children: React__default.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
interface AppBarActionsProps {
|
|
13
|
+
children: React__default.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
interface AppBarMenuButtonProps {
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
className?: string;
|
|
19
|
+
'aria-label'?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const AppBar: React__default.FC<AppBarProps> & {
|
|
23
|
+
Title: React__default.FC<AppBarTitleProps>;
|
|
24
|
+
Actions: React__default.FC<AppBarActionsProps>;
|
|
25
|
+
MenuButton: React__default.FC<AppBarMenuButtonProps>;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
interface BreadcrumbItem {
|
|
29
|
+
label: string;
|
|
30
|
+
value?: string;
|
|
31
|
+
onClick?: () => void;
|
|
32
|
+
}
|
|
33
|
+
interface BreadcrumbsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
34
|
+
items: BreadcrumbItem[];
|
|
35
|
+
/**
|
|
36
|
+
* Number of items before collapsing into menu
|
|
37
|
+
* Default is 3. If items count exceeds this, middle items collapse
|
|
38
|
+
*/
|
|
39
|
+
collapsThreshold?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare const Breadcrumbs: React__default.FC<BreadcrumbsProps>;
|
|
43
|
+
|
|
44
|
+
type SidebarLogoProps = {
|
|
45
|
+
logo: string;
|
|
46
|
+
/** Called when the logo button is clicked (e.g. to navigate home). */
|
|
47
|
+
onClick?: () => void;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** Interface for an option in a component */
|
|
51
|
+
interface Option {
|
|
52
|
+
value: string;
|
|
53
|
+
/** Human-readable label shown in the UI; falls back to `value` when omitted. */
|
|
54
|
+
label?: string;
|
|
55
|
+
id?: string;
|
|
56
|
+
leadingVisual?: string;
|
|
57
|
+
imageSrc?: string;
|
|
58
|
+
imageAlt?: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
children?: Option[];
|
|
62
|
+
onClick?: (option: Option) => void;
|
|
63
|
+
}
|
|
64
|
+
/** Sizing values */
|
|
65
|
+
type Size = "extraSmall" | "small" | "default" | "large" | "extraLarge";
|
|
66
|
+
/** State for component */
|
|
67
|
+
type State = "base" | "success" | "warning" | "danger" | "info" | "idle";
|
|
68
|
+
declare const CellType: {
|
|
69
|
+
readonly SELECT: "SELECT";
|
|
70
|
+
readonly MULTI_SELECT: "MULTI_SELECT";
|
|
71
|
+
readonly BUTTON_GROUP: "BUTTON_GROUP";
|
|
72
|
+
readonly TEXT: "TEXT";
|
|
73
|
+
readonly TEXTAREA: "TEXTAREA";
|
|
74
|
+
readonly NUMBER: "NUMBER";
|
|
75
|
+
readonly DATE: "DATE";
|
|
76
|
+
readonly DATE_RANGE: "DATE_RANGE";
|
|
77
|
+
readonly IMAGE: "IMAGE";
|
|
78
|
+
readonly TABLE_GRID: "TABLE_GRID";
|
|
79
|
+
readonly CHART: "CHART";
|
|
80
|
+
readonly CHART_SERIES: "CHART_SERIES";
|
|
81
|
+
readonly PROGRESS: "PROGRESS";
|
|
82
|
+
readonly CHECKBOX_GROUP: "CHECKBOX_GROUP";
|
|
83
|
+
readonly CHECKBOX: "CHECKBOX";
|
|
84
|
+
readonly RADIO_GROUP: "RADIO_GROUP";
|
|
85
|
+
readonly COLORS: "COLORS";
|
|
86
|
+
readonly SPARKLINE: "SPARKLINE";
|
|
87
|
+
readonly BUTTON_DROPDOWN: "BUTTON_DROPDOWN";
|
|
88
|
+
readonly BUTTON: "BUTTON";
|
|
89
|
+
readonly TAG: "TAG";
|
|
90
|
+
};
|
|
91
|
+
type CellType = typeof CellType[keyof typeof CellType];
|
|
92
|
+
/** Responsive layout breakpoint */
|
|
93
|
+
type Breakpoint = 'mobile' | 'tablet' | 'desktop';
|
|
94
|
+
|
|
95
|
+
interface MenuItem {
|
|
96
|
+
id?: string;
|
|
97
|
+
label?: string;
|
|
98
|
+
leadingVisual?: string;
|
|
99
|
+
disabled?: boolean;
|
|
100
|
+
children?: MenuItem[];
|
|
101
|
+
onClick?: (item: MenuItem) => void;
|
|
102
|
+
type?: "item" | "separator";
|
|
103
|
+
shortcut?: string[];
|
|
104
|
+
content?: React__default.ReactNode;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
type SidebarProps = {
|
|
108
|
+
children: ReactNode;
|
|
109
|
+
};
|
|
110
|
+
type SectionProps$1 = {
|
|
111
|
+
title?: string;
|
|
112
|
+
children: ReactNode;
|
|
113
|
+
};
|
|
114
|
+
type UserProps = {
|
|
115
|
+
avatar: ReactNode;
|
|
116
|
+
name: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
declare const Sidebar: {
|
|
120
|
+
({ children }: SidebarProps): React$1.JSX.Element;
|
|
121
|
+
displayName: string;
|
|
122
|
+
Logo: ({ logo, onClick }: SidebarLogoProps) => React$1.JSX.Element;
|
|
123
|
+
Item: ({ leadingVisual, label, shortcut, disabled, onClick }: MenuItem) => React$1.JSX.Element | null;
|
|
124
|
+
Section: ({ title, children }: SectionProps$1) => React$1.JSX.Element;
|
|
125
|
+
User: ({ avatar, name }: UserProps) => React$1.JSX.Element;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
type StepperStepState = "idle" | "active" | "done";
|
|
129
|
+
interface StepperItem {
|
|
130
|
+
/** Unique identifier for the step. */
|
|
131
|
+
value: string;
|
|
132
|
+
/** Display label shown next to the marker. */
|
|
133
|
+
label: string;
|
|
134
|
+
}
|
|
135
|
+
interface StepperProps extends React.HTMLAttributes<HTMLElement> {
|
|
136
|
+
/** Ordered list of steps to render. */
|
|
137
|
+
items: StepperItem[];
|
|
138
|
+
/** The value of the current step. Steps before this are marked as done. */
|
|
139
|
+
current: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Horizontal stepper that renders ordered steps with idle/active/done states.
|
|
144
|
+
* Steps before `current` are automatically marked as done. Each step renders
|
|
145
|
+
* as a `Tag` whose state changes with the step status.
|
|
146
|
+
*/
|
|
147
|
+
declare const Stepper: React__default.FC<StepperProps>;
|
|
148
|
+
|
|
149
|
+
interface ScaffoldProps {
|
|
150
|
+
children: React__default.ReactNode;
|
|
151
|
+
defaultSidebarOpen?: boolean;
|
|
152
|
+
className?: string;
|
|
153
|
+
}
|
|
154
|
+
interface ScaffoldContentProps {
|
|
155
|
+
children: React__default.ReactNode;
|
|
156
|
+
className?: string;
|
|
157
|
+
}
|
|
158
|
+
interface ScaffoldContextValue {
|
|
159
|
+
isSidebarOpen: boolean;
|
|
160
|
+
toggleSidebar: () => void;
|
|
161
|
+
setSidebarOpen: (open: boolean) => void;
|
|
162
|
+
isMobile: boolean;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare const Scaffold: React__default.FC<ScaffoldProps> & {
|
|
166
|
+
Content: React__default.FC<ScaffoldContentProps>;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
declare const useScaffold: () => ScaffoldContextValue;
|
|
170
|
+
|
|
171
|
+
interface SectionProps {
|
|
172
|
+
/** The title displayed at the top of the section */
|
|
173
|
+
title: string;
|
|
174
|
+
/** Optional subtitle displayed below the title */
|
|
175
|
+
subtitle?: string;
|
|
176
|
+
/** Optional icon name (bundled SVG) shown before the title in the header */
|
|
177
|
+
icon?: string;
|
|
178
|
+
/** Optional actions rendered on the right side of the header */
|
|
179
|
+
headerActions?: React__default.ReactNode;
|
|
180
|
+
/** The content rendered inside the section body */
|
|
181
|
+
children: React__default.ReactNode;
|
|
182
|
+
/** Additional CSS class names */
|
|
183
|
+
className?: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Section is a layout container that groups content with a title and optional subtitle.
|
|
188
|
+
* It features a box-shadow to visually separate zones within a page.
|
|
189
|
+
*/
|
|
190
|
+
declare const Section: React__default.FC<SectionProps>;
|
|
191
|
+
|
|
192
|
+
interface BlankSlateProps {
|
|
193
|
+
children: React__default.ReactNode;
|
|
194
|
+
className?: string;
|
|
195
|
+
}
|
|
196
|
+
interface BlankSlateGraphicProps {
|
|
197
|
+
src: string;
|
|
198
|
+
alt?: string;
|
|
199
|
+
}
|
|
200
|
+
interface BlankSlateHeadingProps {
|
|
201
|
+
children: React__default.ReactNode;
|
|
202
|
+
}
|
|
203
|
+
interface BlankSlateDescriptionProps {
|
|
204
|
+
children: React__default.ReactNode;
|
|
205
|
+
}
|
|
206
|
+
interface BlankSlateActionsProps {
|
|
207
|
+
children: React__default.ReactNode;
|
|
208
|
+
}
|
|
209
|
+
interface BlankSlateAction {
|
|
210
|
+
label: string;
|
|
211
|
+
variant?: "primary" | "base";
|
|
212
|
+
onClick: () => void;
|
|
213
|
+
leadingVisual?: string;
|
|
214
|
+
}
|
|
215
|
+
interface BlankSlatePreset {
|
|
216
|
+
graphic: string;
|
|
217
|
+
heading: string;
|
|
218
|
+
description: string;
|
|
219
|
+
primaryAction: BlankSlateAction;
|
|
220
|
+
secondaryAction?: BlankSlateAction;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
declare const BlankSlate: React__default.FC<BlankSlateProps> & {
|
|
224
|
+
Graphic: React__default.FC<BlankSlateGraphicProps>;
|
|
225
|
+
Heading: React__default.FC<BlankSlateHeadingProps>;
|
|
226
|
+
Description: React__default.FC<BlankSlateDescriptionProps>;
|
|
227
|
+
Actions: React__default.FC<BlankSlateActionsProps>;
|
|
228
|
+
Preset: React__default.FC<BlankSlatePreset>;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
interface DateRange {
|
|
232
|
+
from: Date | undefined;
|
|
233
|
+
to: Date | undefined;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
type FilterColumnType = "string" | "number" | "date" | "boolean";
|
|
237
|
+
type StringOperator = "equals" | "not_equals" | "contains" | "starts_with" | "ends_with" | "in" | "not_in" | "is_null" | "is_not_null";
|
|
238
|
+
type NumberOperator = "equals" | "not_equals" | "greater" | "greater_equals" | "less" | "less_equals" | "in" | "not_in" | "is_null" | "is_not_null";
|
|
239
|
+
type DateOperator = "equals" | "not_equals" | "after" | "after_or_on" | "before" | "before_or_on" | "between" | "is_null" | "is_not_null";
|
|
240
|
+
type BooleanOperator = "is_true" | "is_false" | "is_null" | "is_not_null";
|
|
241
|
+
type FilterOperator = StringOperator | NumberOperator | DateOperator | BooleanOperator;
|
|
242
|
+
type FilterValue = string | string[] | number | number[] | Date | boolean | DateRange | null;
|
|
243
|
+
interface FilterFieldProp {
|
|
244
|
+
/** Matches ColumnDef id or accessorKey (stringified) */
|
|
245
|
+
id: string;
|
|
246
|
+
/** Human-readable label (from ColumnDef.header) */
|
|
247
|
+
label: string;
|
|
248
|
+
/** Column data type used to pick operators and value input */
|
|
249
|
+
type: FilterColumnType;
|
|
250
|
+
/** Available values for `in` / `not_in` operators (from CellType.SELECT / MULTI_SELECT columns) */
|
|
251
|
+
availableOptions?: Option[];
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Per-field read-only flags for a condition. Each flag locks a single
|
|
255
|
+
*/
|
|
256
|
+
interface ConditionReadOnly {
|
|
257
|
+
/** Locks the field selector (first dropdown). */
|
|
258
|
+
field?: boolean;
|
|
259
|
+
/** Locks the operator selector (second dropdown). */
|
|
260
|
+
operator?: boolean;
|
|
261
|
+
/** Locks the value input. */
|
|
262
|
+
value?: boolean;
|
|
263
|
+
/** Hides the delete button. */
|
|
264
|
+
delete?: boolean;
|
|
265
|
+
}
|
|
266
|
+
interface FilterCondition {
|
|
267
|
+
type: "condition";
|
|
268
|
+
field: FilterFieldProp;
|
|
269
|
+
operator: FilterOperator;
|
|
270
|
+
value: FilterValue;
|
|
271
|
+
/** Optional per-field read-only flags (stored on the condition, not global). */
|
|
272
|
+
readOnly?: ConditionReadOnly;
|
|
273
|
+
}
|
|
274
|
+
interface FilterGroup {
|
|
275
|
+
type: "group";
|
|
276
|
+
logic: "and" | "or";
|
|
277
|
+
filters: FilterNode[];
|
|
278
|
+
}
|
|
279
|
+
/** Recursive union — use `node.type` to discriminate */
|
|
280
|
+
type FilterNode = FilterCondition | FilterGroup;
|
|
281
|
+
interface OperatorOption {
|
|
282
|
+
value: FilterOperator;
|
|
283
|
+
label: string;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
interface BaseTypographyProps {
|
|
287
|
+
/**
|
|
288
|
+
* Prefer children when rendering rich/nested content
|
|
289
|
+
*/
|
|
290
|
+
children?: React__default.ReactNode;
|
|
291
|
+
variant: TypographyVariant;
|
|
292
|
+
/**
|
|
293
|
+
* Flag to indicate if the component is disabled.
|
|
294
|
+
* @optional
|
|
295
|
+
*/
|
|
296
|
+
disabled?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Optional color string i can pass to the text
|
|
299
|
+
* @optional
|
|
300
|
+
*/
|
|
301
|
+
color?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Font weight applied to the text.
|
|
304
|
+
* @optional
|
|
305
|
+
*/
|
|
306
|
+
fontWeight?: string | number;
|
|
307
|
+
/**
|
|
308
|
+
* Font style applied to the text.
|
|
309
|
+
* @optional
|
|
310
|
+
*/
|
|
311
|
+
fontStyle?: string;
|
|
312
|
+
/**
|
|
313
|
+
* Text decoration applied to the text.
|
|
314
|
+
* @optional
|
|
315
|
+
*/
|
|
316
|
+
textDecoration?: string;
|
|
317
|
+
}
|
|
318
|
+
type TypographyVariant = "display" | "heading" | "body" | "label" | "code" | "subtitle" | "title" | "caption" | "article-h1" | "article-h2" | "article-h3" | "article-h4" | "article-body" | "article-code" | "article-quote" | "article-caption" | "article-list";
|
|
319
|
+
|
|
320
|
+
interface IconProps {
|
|
321
|
+
/**
|
|
322
|
+
* Icon name for SVG file or URL for image
|
|
323
|
+
*/
|
|
324
|
+
src: string;
|
|
325
|
+
/**
|
|
326
|
+
* Manage disabled state
|
|
327
|
+
*/
|
|
328
|
+
disabled?: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* Manage disabled state
|
|
331
|
+
*/
|
|
332
|
+
state?: State;
|
|
333
|
+
/**
|
|
334
|
+
* Width of the icon
|
|
335
|
+
*/
|
|
336
|
+
width?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Height of the icon
|
|
339
|
+
*/
|
|
340
|
+
height?: string;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
interface ProgressBarProps {
|
|
344
|
+
/** Current progress value */
|
|
345
|
+
value: number;
|
|
346
|
+
/** Minimum value of the range. Defaults to 0. */
|
|
347
|
+
min?: number;
|
|
348
|
+
/** Maximum value of the range. Defaults to 100. */
|
|
349
|
+
max?: number;
|
|
350
|
+
/** Visual variant for color theming */
|
|
351
|
+
variant?: State;
|
|
352
|
+
/** Whether the progress bar is in an indeterminate loading state */
|
|
353
|
+
indeterminate?: boolean;
|
|
354
|
+
/** Whether to show the header with percentage (left) and value (right) above the bar */
|
|
355
|
+
showLabel?: boolean;
|
|
356
|
+
/** Custom label text (overrides the percentage on the left) */
|
|
357
|
+
label?: string;
|
|
358
|
+
/** Custom formatter for the value shown on the right */
|
|
359
|
+
formatValue?: (value: number) => string;
|
|
360
|
+
/** Height of the progress bar */
|
|
361
|
+
height?: number;
|
|
362
|
+
/** Whether the component is disabled */
|
|
363
|
+
disabled?: boolean;
|
|
364
|
+
/** Additional CSS class name */
|
|
365
|
+
className?: string;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Maps each CellType to the component-specific props that can be passed
|
|
370
|
+
* via `uiVariant` in a rule. TypeScript enforces that you only pass props
|
|
371
|
+
* the underlying component actually understands.
|
|
372
|
+
*/
|
|
373
|
+
type CellUIVariantMap = {
|
|
374
|
+
[K in CellType]: K extends "IMAGE" ? Partial<Omit<IconProps, "src">> : K extends "TAG" ? Partial<{
|
|
375
|
+
state: State;
|
|
376
|
+
size: Size;
|
|
377
|
+
}> : K extends "PROGRESS" ? Partial<Pick<ProgressBarProps, "variant" | "showLabel" | "height">> : Partial<Omit<BaseTypographyProps, "children" | "variant">>;
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Given a tuple of `DataStructureColumn`, produces a union of
|
|
381
|
+
* `{ columnId: string; cellType: CellType }` entries.
|
|
382
|
+
*/
|
|
383
|
+
type ColumnTypeMap<TData, TColumns extends readonly DataStructureColumn<TData>[]> = {
|
|
384
|
+
[K in keyof TColumns]: TColumns[K] extends DataStructureColumn<TData> ? {
|
|
385
|
+
columnId: TColumns[K]["id"] extends string ? TColumns[K]["id"] : string;
|
|
386
|
+
cellType: TColumns[K]["cellType"] extends CellType ? TColumns[K]["cellType"] : CellType;
|
|
387
|
+
} : never;
|
|
388
|
+
}[number];
|
|
389
|
+
/**
|
|
390
|
+
* Looks up the `cellType` for a given `columnId` from a columns array.
|
|
391
|
+
* Falls back to `CellType` if not found.
|
|
392
|
+
*/
|
|
393
|
+
type LookupCellType<TData, TColumns extends readonly DataStructureColumn<TData>[], TId extends string> = Extract<ColumnTypeMap<TData, TColumns>, {
|
|
394
|
+
columnId: TId;
|
|
395
|
+
}> extends {
|
|
396
|
+
cellType: infer R;
|
|
397
|
+
} ? R extends CellType ? R : CellType : CellType;
|
|
398
|
+
/** Comparison operators for AST-like UI rules */
|
|
399
|
+
type UIRuleOperator = "==" | "!=" | ">" | ">=" | "<" | "<=" | "includes" | "startsWith" | "endsWith" | "isEmpty" | "isNotEmpty";
|
|
400
|
+
/**
|
|
401
|
+
* A single declarative styling rule evaluated against a row.
|
|
402
|
+
* Rules are compiled once into fast evaluators — no runtime functions.
|
|
403
|
+
*
|
|
404
|
+
* When `field` and `op` are omitted, the rule always matches (static styling).
|
|
405
|
+
*
|
|
406
|
+
* @example conditional
|
|
407
|
+
* { field: "price", op: ">", value: 100, uiVariant: { color: "var(--rst-color-success)", fontWeight: "bold" } }
|
|
408
|
+
*
|
|
409
|
+
* @example static (always applies)
|
|
410
|
+
* { uiVariant: { color: "red" } }
|
|
411
|
+
*/
|
|
412
|
+
interface DataStructureUIRule<TData, K extends CellType = CellType> {
|
|
413
|
+
/** Which field to evaluate — omit for a static rule that always matches */
|
|
414
|
+
field?: keyof TData;
|
|
415
|
+
/** Comparison operator — omit for a static rule that always matches */
|
|
416
|
+
op?: UIRuleOperator;
|
|
417
|
+
/** Comparison value (not needed for isEmpty / isNotEmpty) */
|
|
418
|
+
value?: unknown;
|
|
419
|
+
/**
|
|
420
|
+
* Component-specific props forwarded to the underlying renderer.
|
|
421
|
+
* TypeScript enforces the correct props based on the column's `cellType`.
|
|
422
|
+
*/
|
|
423
|
+
uiVariant?: CellUIVariantMap[K];
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Per-column UI configuration.
|
|
427
|
+
* Matches a schema column via `columnId` (same as `DataStructureColumn.id` or `accessorKey`).
|
|
428
|
+
*/
|
|
429
|
+
interface DataStructureUIColumn<TData, TColumns extends readonly DataStructureColumn<TData>[] = DataStructureColumn<TData>[], TId extends string = string> {
|
|
430
|
+
/** Matches `DataStructureColumn.id` or `accessorKey` */
|
|
431
|
+
columnId: TId;
|
|
432
|
+
/** Ordered rules — first match wins. Rules without `field`/`op` always match. */
|
|
433
|
+
rules?: DataStructureUIRule<TData, LookupCellType<TData, TColumns, TId>>[];
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Top-level UI configuration passed to any data-component.
|
|
437
|
+
* `TColumns` is inferred from the `columns` prop — `cellType` is looked up automatically.
|
|
438
|
+
*/
|
|
439
|
+
interface DataStructureUIConfig<TData, TColumns extends readonly DataStructureColumn<TData>[] = DataStructureColumn<TData>[]> {
|
|
440
|
+
columns?: DataStructureUIColumn<TData, TColumns, string>[];
|
|
441
|
+
/** Container-level styling applied to the component root (e.g. Card state). */
|
|
442
|
+
container?: DataStructureUIContainer;
|
|
443
|
+
}
|
|
444
|
+
/** Container-level UI configuration.*/
|
|
445
|
+
interface DataStructureUIContainer {
|
|
446
|
+
/** Component-specific props forwarded to the container root renderer. */
|
|
447
|
+
uiVariant?: Record<string, unknown>;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
interface DataStructureColumn<TData, TValue = TData[keyof TData]> {
|
|
451
|
+
/** Unique identifier for the column */
|
|
452
|
+
id?: string;
|
|
453
|
+
/** Display header text */
|
|
454
|
+
header?: string;
|
|
455
|
+
/** Simple accessor key for primitive values */
|
|
456
|
+
accessorKey?: keyof TData;
|
|
457
|
+
/** Optional: options for select inputs */
|
|
458
|
+
options?: Option[];
|
|
459
|
+
/** Formula string using column IDs as references */
|
|
460
|
+
formula?: string;
|
|
461
|
+
/** Enable editing for this column */
|
|
462
|
+
enableEditing?: boolean;
|
|
463
|
+
/** Optional: mark field as required */
|
|
464
|
+
required?: boolean;
|
|
465
|
+
/** Disable editing for this column */
|
|
466
|
+
disabled?: boolean;
|
|
467
|
+
/** Function accessor for complex values */
|
|
468
|
+
accessorFn?: (row: TData) => TValue;
|
|
469
|
+
/** Visual representation type for cells with options or specific data types */
|
|
470
|
+
cellType?: CellType;
|
|
471
|
+
/** Helper text shown below the field (e.g. "Opzionale", "Usa +/− per il segno"). */
|
|
472
|
+
helperText?: string;
|
|
473
|
+
/**
|
|
474
|
+
* Generic column-level configuration for the target component.
|
|
475
|
+
* Mirrors the uiConfig pattern: carries the props of the component
|
|
476
|
+
* referenced by `cellType` (e.g. ChartProps for CHART, TableGridProps for TABLE_GRID).
|
|
477
|
+
* `data` and `columns` are excluded — they come from the cell value and schema.
|
|
478
|
+
*/
|
|
479
|
+
columnConfig?: Record<string, unknown>;
|
|
480
|
+
/**
|
|
481
|
+
* Called when an interactive cell (e.g. BUTTON, IMAGE click) fires an action.
|
|
482
|
+
* The cell handler decides when to invoke it; the first argument is the
|
|
483
|
+
* action id (for BUTTON = `option.value`). Works in any data-component
|
|
484
|
+
* that renders Cell in display mode (CardList, TableGrid, …).
|
|
485
|
+
*/
|
|
486
|
+
onCellClick?: (actionId: string, rowData: TData, column: DataStructureColumn<TData, TValue>) => void;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Derives `FilterFieldProp[]` from column definitions.
|
|
491
|
+
*
|
|
492
|
+
* Columns without a resolvable ID or header are skipped.
|
|
493
|
+
* SELECT / BUTTON_GROUP columns populate `availableOptions` from `col.options`.
|
|
494
|
+
*/
|
|
495
|
+
declare function fieldOptionsFromColumns<TData>(columns: DataStructureColumn<TData>[]): FilterFieldProp[];
|
|
496
|
+
/** Returns the available operator options for a given column type. */
|
|
497
|
+
declare function getOperatorsForType(type: FilterColumnType): OperatorOption[];
|
|
498
|
+
/** Returns the default (first) operator for a given column type. */
|
|
499
|
+
declare function getDefaultOperator(type: FilterColumnType): OperatorOption;
|
|
500
|
+
/** Creates an empty root `FilterGroup` with AND logic and no conditions. */
|
|
501
|
+
declare function emptyFilterGroup(): FilterGroup;
|
|
502
|
+
/** Creates a blank `FilterCondition` for the given field. */
|
|
503
|
+
declare function emptyCondition(field: FilterFieldProp): FilterCondition;
|
|
504
|
+
/** Returns `true` when the filter tree contains at least one non-empty condition. */
|
|
505
|
+
declare function isFilterActive(filter: FilterGroup | null): boolean;
|
|
506
|
+
/** Replaces the node at `path` indices within a `FilterGroup` tree. */
|
|
507
|
+
declare function updateNodeAtPath(root: FilterGroup, path: number[], updater: (node: FilterNode) => FilterNode): FilterGroup;
|
|
508
|
+
/** Removes the node at `path` from a `FilterGroup` tree. */
|
|
509
|
+
declare function removeNodeAtPath(root: FilterGroup, path: number[]): FilterGroup;
|
|
510
|
+
/** Appends a node at the end of the group identified by `path`. */
|
|
511
|
+
declare function addNodeAtPath(root: FilterGroup, path: number[], node: FilterNode): FilterGroup;
|
|
512
|
+
/**
|
|
513
|
+
* Strips conditions whose `field.id` is not present in `columns`.
|
|
514
|
+
* Groups with no surviving children are pruned.
|
|
515
|
+
*/
|
|
516
|
+
declare function stripByFields<TData>(filter: FilterGroup | null, columns: DataStructureColumn<TData>[]): FilterGroup | null;
|
|
517
|
+
/**
|
|
518
|
+
* Merges a global filter tree with a per-section filter tree.
|
|
519
|
+
*/
|
|
520
|
+
declare function mergeFilters<TData>(global: FilterGroup | null, section: FilterGroup | null, columns: DataStructureColumn<TData>[]): FilterGroup | null;
|
|
521
|
+
/**
|
|
522
|
+
* Counts top-level filter nodes inside a `FilterGroup`.
|
|
523
|
+
* Empty groups do not count.
|
|
524
|
+
*/
|
|
525
|
+
declare function countTopLevelFilters(filter: FilterGroup | null): number;
|
|
526
|
+
/**
|
|
527
|
+
* Counts active top-level filters across a map of per-data-source filter groups.
|
|
528
|
+
*/
|
|
529
|
+
declare function countTopLevelFiltersMap(filters: Record<string, FilterGroup | null> | null): number;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Filters `data` rows using the provided `FilterGroup` AST.
|
|
533
|
+
*
|
|
534
|
+
* - Returns the original `data` array reference unchanged when `filter` is
|
|
535
|
+
* `null` or contains no active conditions (avoids unnecessary re-renders).
|
|
536
|
+
* - Works with any `DataStructureComponent`-compatible column definition,
|
|
537
|
+
* resolving values via `accessorFn` or `accessorKey`.
|
|
538
|
+
*
|
|
539
|
+
* @example
|
|
540
|
+
* const visible = applyFilter(data, filterGroup, columns);
|
|
541
|
+
*/
|
|
542
|
+
declare function applyFilter<TData>(data: TData[], filter: FilterGroup | null, columns: DataStructureColumn<TData>[]): TData[];
|
|
543
|
+
|
|
544
|
+
interface FilterBuilderProps {
|
|
545
|
+
readonly filters: FilterGroup;
|
|
546
|
+
readonly onChange: (filters: FilterGroup) => void;
|
|
547
|
+
readonly fieldOptions: FilterFieldProp[];
|
|
548
|
+
readonly ref?: Ref<HTMLDivElement>;
|
|
549
|
+
readonly onClose?: () => void;
|
|
550
|
+
readonly isReadOnly?: boolean;
|
|
551
|
+
}
|
|
552
|
+
declare const FilterBuilder: React.FC<FilterBuilderProps>;
|
|
553
|
+
|
|
554
|
+
interface FilterConditionEditorProps {
|
|
555
|
+
readonly condition: FilterCondition;
|
|
556
|
+
readonly onChange: (condition: FilterCondition) => void;
|
|
557
|
+
readonly fieldOptions: FilterFieldProp[];
|
|
558
|
+
readonly onDelete?: () => void;
|
|
559
|
+
/** Enables the guided step-by-step flow (field → operator → value). */
|
|
560
|
+
readonly guided?: boolean;
|
|
561
|
+
/** Called when the guided flow completes (value chosen / valueless operator). */
|
|
562
|
+
readonly onGuidedComplete?: () => void;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Shared row-level filter condition editor: field → operator → value.
|
|
566
|
+
*
|
|
567
|
+
* Reused by both `FilterBuilder` (panel rows inside groups) and `FilterField`
|
|
568
|
+
* (inline chips in edit-in-place mode). This is the single place where field /
|
|
569
|
+
* operator / value input switching logic lives.
|
|
570
|
+
*
|
|
571
|
+
* Each piece (field, operator, value, delete) can be individually locked via
|
|
572
|
+
* `condition.readOnly` or the `readOnly` prop.
|
|
573
|
+
*
|
|
574
|
+
* When `guided` is `true`, the editor walks the user through the three steps,
|
|
575
|
+
* auto-opening the dropdown / focusing the input of the current step.
|
|
576
|
+
*/
|
|
577
|
+
declare const FilterConditionEditor: React.FC<FilterConditionEditorProps>;
|
|
578
|
+
|
|
579
|
+
interface FilterFieldProps {
|
|
580
|
+
/** Current filter group (AND at top level; single conditions only). */
|
|
581
|
+
readonly filters: FilterGroup;
|
|
582
|
+
/** Called whenever a condition is added, edited, or removed. */
|
|
583
|
+
readonly onChange: (filters: FilterGroup) => void;
|
|
584
|
+
/** Available fields derived from columns (via `fieldOptionsFromColumns`). */
|
|
585
|
+
readonly fields: FilterFieldProp[];
|
|
586
|
+
/** Disables all editing controls when `true`. */
|
|
587
|
+
readonly readOnly?: boolean;
|
|
588
|
+
/** Maximum number of conditions rendered inline.*/
|
|
589
|
+
readonly maxVisible?: number;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
declare const FilterField: React.FC<FilterFieldProps>;
|
|
593
|
+
|
|
594
|
+
type alignX = 'start' | 'center' | 'end' | 'space-between' | 'space-around';
|
|
595
|
+
type alignY = 'start' | 'center' | 'end' | 'stretch';
|
|
596
|
+
/** Layout block node */
|
|
597
|
+
type BlockNode = {
|
|
598
|
+
type: 'block';
|
|
599
|
+
/** The field/column identifier that the consumer maps to a Cell */
|
|
600
|
+
fieldId: string;
|
|
601
|
+
};
|
|
602
|
+
/** Grid child node */
|
|
603
|
+
type GridChild = {
|
|
604
|
+
node: LayoutNode;
|
|
605
|
+
col: number;
|
|
606
|
+
row: number;
|
|
607
|
+
w: number;
|
|
608
|
+
h: number;
|
|
609
|
+
/** Horizontal alignment of content within the grid cell */
|
|
610
|
+
alignX?: alignX;
|
|
611
|
+
/** Vertical alignment of content within the grid cell */
|
|
612
|
+
alignY?: alignY;
|
|
613
|
+
};
|
|
614
|
+
/** Grid container node */
|
|
615
|
+
type GridContainer = {
|
|
616
|
+
type: 'grid';
|
|
617
|
+
columns: number;
|
|
618
|
+
rows?: number;
|
|
619
|
+
gap?: number;
|
|
620
|
+
children: GridChild[];
|
|
621
|
+
};
|
|
622
|
+
/** Flex container node */
|
|
623
|
+
type FlexContainer = {
|
|
624
|
+
type: 'flex';
|
|
625
|
+
direction?: 'row' | 'column';
|
|
626
|
+
gap?: number;
|
|
627
|
+
alignX?: alignX;
|
|
628
|
+
alignY?: alignY;
|
|
629
|
+
children: LayoutNode[];
|
|
630
|
+
};
|
|
631
|
+
/** Union of all node types */
|
|
632
|
+
type LayoutNode = BlockNode | GridContainer | FlexContainer;
|
|
633
|
+
/** Responsive layout mapping breakpoints to layout trees */
|
|
634
|
+
type ResponsiveLayout = {
|
|
635
|
+
[K in Breakpoint]: LayoutNode;
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Props for the Dashboard orchestrator component.
|
|
640
|
+
*
|
|
641
|
+
* Dashboard provides global filters to all child DashboardWidget instances
|
|
642
|
+
* and arranges them using the responsive Layout system.
|
|
643
|
+
*
|
|
644
|
+
* Global filters are organised per data source: each entry in `filters` is
|
|
645
|
+
* keyed by the data source id (e.g. "transactions", "budgets") and contains
|
|
646
|
+
* the filter tree specific to that source. Widgets pick the entry matching
|
|
647
|
+
* their own data source via context.
|
|
648
|
+
*/
|
|
649
|
+
interface DashboardProps {
|
|
650
|
+
/**
|
|
651
|
+
* Global filter trees keyed by data source id.
|
|
652
|
+
* Each widget receives the entry whose key matches its data source,
|
|
653
|
+
* then merges it with its own per-section filters.
|
|
654
|
+
*/
|
|
655
|
+
filters: Record<string, FilterGroup | null> | null;
|
|
656
|
+
/** Called when a data-source filter tree changes (key + new tree) */
|
|
657
|
+
onFilterChange: (dataSourceId: string, filters: FilterGroup | null) => void;
|
|
658
|
+
/** Responsive layout configuration (mobile / tablet / desktop breakpoints) */
|
|
659
|
+
layout: ResponsiveLayout;
|
|
660
|
+
/**
|
|
661
|
+
* Field definitions for the FilterBuilder, keyed by data source id.
|
|
662
|
+
* Each entry is shown as a separate tab/section inside the global filter
|
|
663
|
+
* overlay. Required when `enableFilter` is true.
|
|
664
|
+
*/
|
|
665
|
+
fieldOptions?: Record<string, FilterFieldProp[]>;
|
|
666
|
+
/** Show a filter button that opens the FilterBuilder overlay */
|
|
667
|
+
enableFilter?: boolean;
|
|
668
|
+
/** DashboardWidget children */
|
|
669
|
+
children: ReactNode;
|
|
670
|
+
/** Additional CSS class name */
|
|
671
|
+
className?: string;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Value provided by DashboardContext to all child DashboardWidgets.
|
|
675
|
+
*/
|
|
676
|
+
interface DashboardContextValue {
|
|
677
|
+
/** The global filter trees keyed by data source id */
|
|
678
|
+
filters: Record<string, FilterGroup | null> | null;
|
|
679
|
+
/** Update a single data-source filter tree */
|
|
680
|
+
onFilterChange: (dataSourceId: string, filters: FilterGroup | null) => void;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Dashboard is the top-level orchestrator for a page of data widgets.
|
|
685
|
+
*
|
|
686
|
+
* It provides global filters to all child DashboardWidget instances via
|
|
687
|
+
* context, keyed by data source id, and arranges widgets using the
|
|
688
|
+
* responsive Layout system.
|
|
689
|
+
*
|
|
690
|
+
* When `enableFilter` is set, a filter button opens the FilterBuilder
|
|
691
|
+
* overlay where the user picks a data source and edits its filter tree.
|
|
692
|
+
* The button shows the total number of active top-level filters across
|
|
693
|
+
* all data sources.
|
|
694
|
+
*/
|
|
695
|
+
declare const Dashboard: React__default.FC<DashboardProps>;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Hook to consume the DashboardContext.
|
|
699
|
+
* Returns the current filters and onFilterChange callback.
|
|
700
|
+
* Returns null when used outside a Dashboard.
|
|
701
|
+
*/
|
|
702
|
+
declare function useDashboard(): DashboardContextValue | null;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Filtered data payload passed to the DashboardWidget render prop.
|
|
706
|
+
*/
|
|
707
|
+
interface DashboardWidgetRenderPayload<TData> {
|
|
708
|
+
/** Data filtered by the global dashboard filters */
|
|
709
|
+
data: TData[];
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Props for the DashboardWidget component.
|
|
713
|
+
*
|
|
714
|
+
* Three modes are supported, depending on which props you provide:
|
|
715
|
+
*
|
|
716
|
+
* - **Passthrough mode**: provide only `data`. The data is used as-is —
|
|
717
|
+
* the server already prepared it. Zero frontend processing.
|
|
718
|
+
* - **Legacy mode**: provide `data` + `columns`. Global dashboard filters
|
|
719
|
+
* are applied client-side via `applyFilter()`.
|
|
720
|
+
*/
|
|
721
|
+
interface DashboardWidgetProps<TData> {
|
|
722
|
+
/** Unique identifier for this widget (used as Layout block key) */
|
|
723
|
+
id: string;
|
|
724
|
+
/** Widget title displayed in the Section header */
|
|
725
|
+
title: string;
|
|
726
|
+
/**
|
|
727
|
+
* Data source identifier used to pick this widget's entry from the
|
|
728
|
+
* dashboard's per-source global filter map. Required to receive
|
|
729
|
+
* global filters (otherwise only the per-section filter applies).
|
|
730
|
+
*/
|
|
731
|
+
dataSourceId?: string;
|
|
732
|
+
/** Optional subtitle displayed below the title */
|
|
733
|
+
subtitle?: string;
|
|
734
|
+
/** Optional icon name (bundled SVG) shown before the title in the Section header */
|
|
735
|
+
icon?: string;
|
|
736
|
+
/**
|
|
737
|
+
* Data for this widget.
|
|
738
|
+
*
|
|
739
|
+
* - **Passthrough**: provide `data` alone → used as-is (server-ready).
|
|
740
|
+
* - **Legacy**: provide `data` + `columns` → global filters applied.
|
|
741
|
+
*/
|
|
742
|
+
data?: TData[];
|
|
743
|
+
/**
|
|
744
|
+
* Column definitions. When provided, global dashboard filters are
|
|
745
|
+
* applied client-side via `applyFilter()`. Omit for passthrough mode.
|
|
746
|
+
*/
|
|
747
|
+
columns?: DataStructureColumn<TData>[];
|
|
748
|
+
/** Optional UI config for conditional styling */
|
|
749
|
+
uiConfig?: DataStructureUIConfig<TData>;
|
|
750
|
+
/** Render prop receiving filtered data */
|
|
751
|
+
children: (payload: DashboardWidgetRenderPayload<TData>) => ReactNode;
|
|
752
|
+
/** Show the export data action button */
|
|
753
|
+
enableExport?: boolean;
|
|
754
|
+
/** Show the screenshot action button */
|
|
755
|
+
enableScreenshot?: boolean;
|
|
756
|
+
/** Show the visual expand (fullscreen) action button */
|
|
757
|
+
enableExpand?: boolean;
|
|
758
|
+
/** Show a per-section filter button in the widget header. */
|
|
759
|
+
enableFilter?: boolean;
|
|
760
|
+
/** Filter fields available for this widget's data source (required when `enableFilter` is true) */
|
|
761
|
+
fieldOptions?: FilterFieldProp[];
|
|
762
|
+
/** Per-section filter tree. Overriding the global filter applies on top of it. */
|
|
763
|
+
filters?: FilterGroup | null;
|
|
764
|
+
/** Called when the per-section filter tree changes */
|
|
765
|
+
onFilterChange?: (filters: FilterGroup | null) => void;
|
|
766
|
+
/** Drop the global dashboard filters for this widget entirely (e.g. snapshot data) */
|
|
767
|
+
ignoreGlobalFilters?: boolean;
|
|
768
|
+
/** Additional CSS class name */
|
|
769
|
+
className?: string;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* DashboardWidget is a self-contained widget that:
|
|
774
|
+
* 1. Receives its own data (raw, pre-filtered, or engine-backed)
|
|
775
|
+
* 2. Renders a Section with a toolbar of actions (export, screenshot, expand)
|
|
776
|
+
* 3. Passes data to the render prop
|
|
777
|
+
*
|
|
778
|
+
* Three modes:
|
|
779
|
+
* - **Passthrough**: provide only `data` → used as-is (server-ready, zero processing)
|
|
780
|
+
* - **Legacy**: provide `data` + `columns` → global filters applied via `applyFilter()`
|
|
781
|
+
*/
|
|
782
|
+
declare const DashboardWidget: {
|
|
783
|
+
<TData extends object>({ title, subtitle, icon, data, columns, children, enableExport, enableScreenshot, enableExpand, enableFilter, fieldOptions, filters, onFilterChange, ignoreGlobalFilters, dataSourceId, className, }: DashboardWidgetProps<TData>): React__default.JSX.Element;
|
|
784
|
+
displayName: string;
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
export { AppBar, BlankSlate, Breadcrumbs, Dashboard, DashboardWidget, FilterBuilder, FilterConditionEditor, FilterField, Scaffold, Section, Sidebar, Stepper, addNodeAtPath, applyFilter, countTopLevelFilters, countTopLevelFiltersMap, emptyCondition, emptyFilterGroup, fieldOptionsFromColumns, getDefaultOperator, getOperatorsForType, isFilterActive, mergeFilters, removeNodeAtPath, stripByFields, updateNodeAtPath, useDashboard, useScaffold };
|
|
788
|
+
export type { AppBarActionsProps, AppBarMenuButtonProps, AppBarProps, AppBarTitleProps, BlankSlateAction, BlankSlateActionsProps, BlankSlateDescriptionProps, BlankSlateGraphicProps, BlankSlateHeadingProps, BlankSlatePreset, BlankSlateProps, BooleanOperator, BreadcrumbItem, BreadcrumbsProps, ConditionReadOnly, DashboardProps, DashboardWidgetProps, DashboardWidgetRenderPayload, DateOperator, FilterBuilderProps, FilterColumnType, FilterCondition, FilterConditionEditorProps, FilterFieldProp, FilterFieldProps, FilterGroup, FilterNode, FilterOperator, FilterValue, NumberOperator, OperatorOption, ScaffoldContextValue, ScaffoldProps, SectionProps, SidebarProps, SectionProps$1 as SidebarSectionProps, StepperItem, StepperProps, StepperStepState, StringOperator, UserProps };
|