@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,20 +0,0 @@
|
|
|
1
|
-
import { ResponsiveLayout } from '../../custom-components/layout/layout-types';
|
|
2
|
-
import { DataStructureColumn, DataStructureComponent } from '../data-structure/data-structure';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the Card component.
|
|
5
|
-
* Renders a single data row as a card with optional layout configuration.
|
|
6
|
-
*/
|
|
7
|
-
export interface CardSpecificProps<TData> {
|
|
8
|
-
/** Single row of data to display in the card */
|
|
9
|
-
data: TData;
|
|
10
|
-
/** Responsive layout configuration for card fields */
|
|
11
|
-
layout?: ResponsiveLayout;
|
|
12
|
-
/** Additional CSS class for the card container */
|
|
13
|
-
className?: string;
|
|
14
|
-
/** Called when the card is clicked */
|
|
15
|
-
onClick?: () => void;
|
|
16
|
-
/** Whether the card is in selected state */
|
|
17
|
-
selected?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export type CardProps<TData> = Omit<DataStructureComponent<TData>, "data"> & CardSpecificProps<TData>;
|
|
20
|
-
export type CardColumn<TData> = DataStructureColumn<TData>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CardProps } from './card-types';
|
|
3
|
-
/**
|
|
4
|
-
* Renders a single data row as a card with optional layout configuration.
|
|
5
|
-
* Fields are displayed using Cell components and optionally arranged via Layout.
|
|
6
|
-
*/
|
|
7
|
-
export declare function Card<TData>({ data, columns, layout, className, uiConfig, onClick, selected }: CardProps<TData>): React.JSX.Element;
|
|
8
|
-
export declare namespace Card {
|
|
9
|
-
var displayName: string;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Card } from '../card';
|
|
3
|
-
declare const meta: Meta<typeof Card>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Card>;
|
|
6
|
-
/**
|
|
7
|
-
* Basic Card displaying a single person's information.
|
|
8
|
-
*/
|
|
9
|
-
export declare const Default: Story;
|
|
10
|
-
/**
|
|
11
|
-
* Card with custom layout configuration.
|
|
12
|
-
*/
|
|
13
|
-
export declare const WithLayout: Story;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ResponsiveLayout } from '../../custom-components/layout/layout-types';
|
|
2
|
-
import { DataStructureComponent } from '../data-structure/data-structure';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the CardList component.
|
|
5
|
-
* Renders an array of data as a list of cards.
|
|
6
|
-
*/
|
|
7
|
-
export interface CardListSpecificProps<TData> {
|
|
8
|
-
/** Responsive layout configuration for each card's fields */
|
|
9
|
-
layout?: ResponsiveLayout;
|
|
10
|
-
/** Additional CSS class for the container */
|
|
11
|
-
containerClassName?: string;
|
|
12
|
-
/** Called when a card is clicked, with the item data */
|
|
13
|
-
onCardClick?: (item: TData) => void;
|
|
14
|
-
/** Currently selected item (single selection) */
|
|
15
|
-
selected?: TData;
|
|
16
|
-
/** Array of selected items (multi-selection) */
|
|
17
|
-
multiSelection?: TData[];
|
|
18
|
-
/** Function to determine if an item is selected (used when TData is not comparable by reference) */
|
|
19
|
-
isSelected?: (item: TData, selectedItem: TData) => boolean;
|
|
20
|
-
}
|
|
21
|
-
export type CardListProps<TData> = DataStructureComponent<TData> & CardListSpecificProps<TData>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CardListProps } from './card-list-types';
|
|
2
|
-
/**
|
|
3
|
-
* Renders an array of data as a list of cards.
|
|
4
|
-
* Each card is configured with the same columns and layout.
|
|
5
|
-
*
|
|
6
|
-
* Supports single selection (`selected`) and multi-selection (`multiSelection`).
|
|
7
|
-
* When either is provided, matching cards get the `selected` visual state.
|
|
8
|
-
*/
|
|
9
|
-
export declare function CardList<TData>({ data, columns, layout, containerClassName, uiConfig, onCardClick, selected, multiSelection, isSelected, }: CardListProps<TData>): import("react").JSX.Element;
|
|
10
|
-
export declare namespace CardList {
|
|
11
|
-
var displayName: string;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ResponsiveLayout } from '../../..';
|
|
2
|
-
import { DataStructureColumn } from '../../data-structure/data-structure';
|
|
3
|
-
export interface EcommerceProductCard {
|
|
4
|
-
id: number;
|
|
5
|
-
productName: string;
|
|
6
|
-
price: number;
|
|
7
|
-
description: string;
|
|
8
|
-
imageUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const mockEcommerceProducts: EcommerceProductCard[];
|
|
11
|
-
export declare const ecommerceColumns: DataStructureColumn<EcommerceProductCard>[];
|
|
12
|
-
export declare const ecommerceProductCardLayout: ResponsiveLayout;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { CardList } from '../card-list';
|
|
3
|
-
declare const meta: Meta<typeof CardList>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CardList>;
|
|
6
|
-
/**
|
|
7
|
-
* CardList displaying a grid of people.
|
|
8
|
-
*/
|
|
9
|
-
export declare const Default: Story;
|
|
10
|
-
/**
|
|
11
|
-
* CardList with custom card layout.
|
|
12
|
-
*/
|
|
13
|
-
export declare const WithCardLayout: Story;
|
|
14
|
-
/**
|
|
15
|
-
* CardList displaying a grid of people.
|
|
16
|
-
*/
|
|
17
|
-
export declare const EcommerceProduct: Story;
|
|
18
|
-
/**
|
|
19
|
-
* Ecommerce products with conditional UI styling via uiConfig.
|
|
20
|
-
* - Price > $100 → green, bold
|
|
21
|
-
* - Price < $50 → red
|
|
22
|
-
* - Product name uses "title" variant
|
|
23
|
-
*/
|
|
24
|
-
export declare const EcommerceWithUIStyling: Story;
|
|
25
|
-
/**
|
|
26
|
-
* Static styling without conditions — just declare the style directly.
|
|
27
|
-
* - Description is always red italic, no conditions needed.
|
|
28
|
-
*/
|
|
29
|
-
export declare const StaticStyling: Story;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { CellType } from '../../types/global-types';
|
|
2
|
-
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
3
|
-
import { ResolvedCellUI } from '../ui-layer/ui-layer-types';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
|
-
export interface CellEditorProps<TData, TValue> {
|
|
6
|
-
value: TValue;
|
|
7
|
-
column: DataStructureColumn<TData, TValue>;
|
|
8
|
-
onDraftChange: (value: TValue) => void;
|
|
9
|
-
onCommit: () => void;
|
|
10
|
-
onImmediateCommit: (value: TValue) => void;
|
|
11
|
-
onKeyDown: (e: React.KeyboardEvent) => void;
|
|
12
|
-
autoFocus: boolean;
|
|
13
|
-
error?: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface CellHandler<TData, TValue> {
|
|
18
|
-
/** Renders the display (read-only) view */
|
|
19
|
-
display: (value: TValue, column?: DataStructureColumn<TData, TValue>, ui?: ResolvedCellUI) => ReactNode;
|
|
20
|
-
/** Renders the editor (editable) view. Undefined = display-only type. */
|
|
21
|
-
edit?: (props: CellEditorProps<TData, TValue>) => ReactNode;
|
|
22
|
-
/** When true, always renders the editor even when non-editable (e.g. TABLE_GRID) */
|
|
23
|
-
alwaysInteractive?: boolean;
|
|
24
|
-
/** When true, the cell is display-only and never switches to edit mode (e.g. CHART, PROGRESS) */
|
|
25
|
-
displayOnly?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export declare function registerCellType<TData, TValue>(cellType: CellType, handler: CellHandler<TData, TValue>): void;
|
|
28
|
-
export declare function getCellHandler<TData, TValue>(cellType?: CellType): CellHandler<TData, TValue> | undefined;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { EditMode } from '../../types/global-types';
|
|
2
|
-
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
3
|
-
import { ResolvedCellUI } from '../ui-layer/ui-layer-types';
|
|
4
|
-
export interface CellProps<TData, TValue> {
|
|
5
|
-
/** The actual value to display/edit */
|
|
6
|
-
value: TValue;
|
|
7
|
-
/** Column definition for configuration */
|
|
8
|
-
column: DataStructureColumn<TData, TValue>;
|
|
9
|
-
/** Original row data */
|
|
10
|
-
rowData: TData;
|
|
11
|
-
/** Row index */
|
|
12
|
-
rowIndex: number;
|
|
13
|
-
/** Edit mode behavior */
|
|
14
|
-
editMode?: EditMode;
|
|
15
|
-
/** Whether this cell is editable (overrides column config) */
|
|
16
|
-
isEditable?: boolean;
|
|
17
|
-
/** Error message to display */
|
|
18
|
-
error?: string;
|
|
19
|
-
/** Whether the cell is disabled */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** Whether the cell is in a loading state — renders a skeleton placeholder */
|
|
22
|
-
loading?: boolean;
|
|
23
|
-
/** Whether to show the label above the cell (default: true) */
|
|
24
|
-
showLabel?: boolean;
|
|
25
|
-
/** Whether to show the helper/error text below the cell (default: true) */
|
|
26
|
-
showHelperText?: boolean;
|
|
27
|
-
/** Helper text shown below the cell when no error is present */
|
|
28
|
-
helperText?: string;
|
|
29
|
-
/** Alignment of the label (default: "top") */
|
|
30
|
-
labelAlign?: "top" | "left";
|
|
31
|
-
/** Pre-resolved UI styling — Cell never resolves UI, only consumes it */
|
|
32
|
-
ui?: ResolvedCellUI;
|
|
33
|
-
/** Callback when value changes */
|
|
34
|
-
onValueChange?: (newValue: TValue, rowData: TData, column: DataStructureColumn<TData, TValue>) => void;
|
|
35
|
-
/** Callback when editing starts */
|
|
36
|
-
onEditStart?: (rowData: TData, column: DataStructureColumn<TData, TValue>) => void;
|
|
37
|
-
/** Callback when editing ends */
|
|
38
|
-
onEditEnd?: (rowData: TData, column: DataStructureColumn<TData, TValue>) => void;
|
|
39
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Determines if a cell should be editable based on column and cell-level settings
|
|
3
|
-
* @param isEditable - Cell-level editable override
|
|
4
|
-
* @param columnEditable - Column-level editable setting
|
|
5
|
-
* @returns Whether the cell can be edited
|
|
6
|
-
*/
|
|
7
|
-
export declare function canEditCell(isEditable: boolean | undefined, columnEditable: boolean | undefined): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Determines if a cell should always be in edit mode
|
|
10
|
-
* @param editMode - The edit mode setting
|
|
11
|
-
* @param canEdit - Whether the cell is editable
|
|
12
|
-
* @returns Whether the cell should always be in edit mode
|
|
13
|
-
*/
|
|
14
|
-
export declare function shouldAlwaysEdit(editMode: "click" | "doubleClick" | "always" | "never", canEdit: boolean): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Creates a keyboard event handler for cell editing
|
|
17
|
-
* @param onCommit - Callback to commit changes
|
|
18
|
-
* @param onCancel - Callback to cancel editing
|
|
19
|
-
* @returns Keyboard event handler
|
|
20
|
-
*/
|
|
21
|
-
export declare function createKeyDownHandler(onCommit: () => void, onCancel: () => void): (e: React.KeyboardEvent) => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { CellProps } from './cell-types';
|
|
2
|
-
export declare const Cell: <TData, TValue>({ value, column, rowData, editMode, isEditable, error, disabled, loading, showLabel, showHelperText, labelAlign, helperText, ui, onValueChange, onEditStart, onEditEnd, }: CellProps<TData, TValue>) => import("react").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Props for the ColorsEditor component.
|
|
3
|
-
*/
|
|
4
|
-
export interface ColorsEditorProps {
|
|
5
|
-
/** Current list of color strings (hex, oklch, var(--rst-...), etc.). */
|
|
6
|
-
value: string[];
|
|
7
|
-
/** Called with the full updated array whenever a color changes. */
|
|
8
|
-
onChange: (colors: string[]) => void;
|
|
9
|
-
/** Placeholder shown in each color input. */
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
/** Whether the editor is disabled. */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** Key down handler forwarded from the host cell. */
|
|
14
|
-
onKeyDown?: (e: React.KeyboardEvent) => void;
|
|
15
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ColorsEditorProps } from './colors-editor-types';
|
|
3
|
-
/**
|
|
4
|
-
* Table-style color editor: left column shows the key (Color 1, Color 2, …),
|
|
5
|
-
* right column shows a text input for the color value.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ColorsEditor: ({ value, onChange, placeholder, disabled, onKeyDown }: ColorsEditorProps) => React.JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Cell } from '../cell';
|
|
3
|
-
/**
|
|
4
|
-
* A comprehensive showcase of the Cell component covering all cell types,
|
|
5
|
-
* edit modes, and visual states.
|
|
6
|
-
*/
|
|
7
|
-
declare const meta: Meta<typeof Cell>;
|
|
8
|
-
export default meta;
|
|
9
|
-
type Story = StoryObj<typeof meta>;
|
|
10
|
-
export declare const AllCellTypes: Story;
|
|
11
|
-
export declare const EditModes: Story;
|
|
12
|
-
export declare const VisualStates: Story;
|
|
13
|
-
export declare const InteractiveClickToEdit: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Option } from '../../../types/global-types';
|
|
2
|
-
/** Per-series row of the composed-series matrix. */
|
|
3
|
-
export interface ChartSeriesRow {
|
|
4
|
-
column: string;
|
|
5
|
-
type: string;
|
|
6
|
-
color: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ChartSeriesEditProps {
|
|
9
|
-
/** Current series rows (may include a trailing empty row for auto-append). */
|
|
10
|
-
value: ChartSeriesRow[];
|
|
11
|
-
/** Called with the full updated array whenever any row changes. Optional in display mode. */
|
|
12
|
-
onChange?: (rows: ChartSeriesRow[]) => void;
|
|
13
|
-
/** Options for the Column selector — the available data columns. */
|
|
14
|
-
columnOptions?: Option[];
|
|
15
|
-
/**
|
|
16
|
-
* Options for the Type selector. When only one option is provided, the
|
|
17
|
-
* Type column is disabled and locked to that value (single-type cartesian).
|
|
18
|
-
*/
|
|
19
|
-
seriesTypeOptions?: Option[];
|
|
20
|
-
/** Disable the whole editor. */
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChartSeriesEditProps } from './chart-series-edit-types';
|
|
2
|
-
/**
|
|
3
|
-
* Editable matrix of per-series rows (Column / Type / Color) used by the
|
|
4
|
-
* chart prop form to compose multi-series cartesian charts.
|
|
5
|
-
*
|
|
6
|
-
* When `seriesTypeOptions` contains a single option, the Type column is
|
|
7
|
-
* disabled and locked to that value (single-type cartesian parent chart).
|
|
8
|
-
*/
|
|
9
|
-
export declare const ChartSeriesEdit: ({ value, onChange, columnOptions, seriesTypeOptions, disabled }: ChartSeriesEditProps) => import("react").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data entry passed to the tooltip for rendering.
|
|
3
|
-
*/
|
|
4
|
-
export interface ChartTooltipEntry {
|
|
5
|
-
name: string;
|
|
6
|
-
value: number;
|
|
7
|
-
color: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ChartTooltipProps {
|
|
10
|
-
active?: boolean;
|
|
11
|
-
payload?: ChartTooltipEntry[];
|
|
12
|
-
label?: string;
|
|
13
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ChartTooltipProps } from './chart-tooltip-types';
|
|
3
|
-
/**
|
|
4
|
-
* Custom Recharts tooltip content that uses Restio design tokens.
|
|
5
|
-
* Renders a label and a list of series values with their respective colors.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ChartTooltip: ({ active, payload, label }: ChartTooltipProps) => React.JSX.Element | null;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { DataStructureComponent } from '../data-structure/data-structure';
|
|
2
|
-
import { ChartType, ComposedSeriesType } from '../../types/global-types';
|
|
3
|
-
export type { ChartType, ComposedSeriesType };
|
|
4
|
-
/**
|
|
5
|
-
* Per-series row of the composed-series matrix.
|
|
6
|
-
* `column` references a Y-axis data column by id/accessor;
|
|
7
|
-
* `type` decides which cartesian primitive (line/bar/area/scatter) renders;
|
|
8
|
-
* `color` is optional — falls back to the chart palette when omitted.
|
|
9
|
-
*/
|
|
10
|
-
export interface ChartSeriesConfig<TData = Record<string, unknown>> {
|
|
11
|
-
column: keyof TData | string;
|
|
12
|
-
type: ComposedSeriesType;
|
|
13
|
-
color?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Configuration for Sankey charts.
|
|
17
|
-
* stageColumns: ordered list of columns that define the flow stages (min 2).
|
|
18
|
-
* - Null/undefined/empty values in a row are skipped, creating a direct link
|
|
19
|
-
* between the nearest non-empty columns on both sides.
|
|
20
|
-
* valueColumn: numeric column used as the flow weight.
|
|
21
|
-
*
|
|
22
|
-
* @example 2-level (source → target)
|
|
23
|
-
* { stageColumns: ["from", "to"], valueColumn: "amount" }
|
|
24
|
-
*
|
|
25
|
-
* @example multi-level journey
|
|
26
|
-
* { stageColumns: ["channel", "device", "outcome"], valueColumn: "count" }
|
|
27
|
-
*/
|
|
28
|
-
export interface SankeyConfig<TData> {
|
|
29
|
-
stageColumns: (keyof TData)[];
|
|
30
|
-
valueColumn: keyof TData;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Configuration for Geo charts.
|
|
34
|
-
* geoJson: GeoJSON FeatureCollection with MultiPolygon geometry.
|
|
35
|
-
* regionColumn: column in TData that maps to the "name" property in geoJson features.
|
|
36
|
-
* valueColumn: numeric column used for the choropleth color scale.
|
|
37
|
-
* colorRange: [minColor, maxColor] — two CSS color strings for the gradient.
|
|
38
|
-
*/
|
|
39
|
-
export interface GeoConfig<TData> {
|
|
40
|
-
geoJson: {
|
|
41
|
-
type: "FeatureCollection";
|
|
42
|
-
features: Array<{
|
|
43
|
-
type: "Feature";
|
|
44
|
-
properties: Record<string, unknown>;
|
|
45
|
-
geometry: {
|
|
46
|
-
type: "MultiPolygon" | "Polygon";
|
|
47
|
-
coordinates: number[][][][] | number[][][];
|
|
48
|
-
};
|
|
49
|
-
}>;
|
|
50
|
-
};
|
|
51
|
-
regionColumn: keyof TData;
|
|
52
|
-
valueColumn: keyof TData;
|
|
53
|
-
colorRange?: [string, string];
|
|
54
|
-
}
|
|
55
|
-
export interface ChartSpecificProps<TData> {
|
|
56
|
-
/** Type of chart to render */
|
|
57
|
-
type: ChartType;
|
|
58
|
-
/** Column to use for X-axis (category/labels). Not required for type="sankey". */
|
|
59
|
-
xAxisColumn?: keyof TData;
|
|
60
|
-
/** Column(s) to use for Y-axis (values). Not required for type="sankey". */
|
|
61
|
-
yAxisColumns?: (keyof TData)[];
|
|
62
|
-
/** Chart title */
|
|
63
|
-
title?: string;
|
|
64
|
-
/** Chart subtitle */
|
|
65
|
-
subtitle?: string;
|
|
66
|
-
/** Width of the chart */
|
|
67
|
-
width?: number | `${number}%`;
|
|
68
|
-
/** Height of the chart */
|
|
69
|
-
height?: number | `${number}%`;
|
|
70
|
-
/** Custom colors for chart series */
|
|
71
|
-
colors?: string[];
|
|
72
|
-
/**
|
|
73
|
-
* Per-series matrix used when type === "composed" (Cartesian-only mixes:
|
|
74
|
-
* line + bar + area + scatter). For the single-type cartesian types
|
|
75
|
-
* (line/bar/area/scatter), the matrix is derived from yAxisColumns and
|
|
76
|
-
* every entry adopts `type` — so the prop form only needs to manage one
|
|
77
|
-
* matrix for all cartesian charts. Ignored for pie/sankey/sparkline/geo.
|
|
78
|
-
*/
|
|
79
|
-
series?: ChartSeriesConfig<TData>[];
|
|
80
|
-
/** Show/hide chart elements */
|
|
81
|
-
showGrid?: boolean;
|
|
82
|
-
showTooltip?: boolean;
|
|
83
|
-
showLegend?: boolean;
|
|
84
|
-
showXAxis?: boolean;
|
|
85
|
-
showYAxis?: boolean;
|
|
86
|
-
/** Callback when a data point is clicked */
|
|
87
|
-
onDataPointClick?: (data: TData, index: number) => void;
|
|
88
|
-
/** Chart layout orientation */
|
|
89
|
-
layout?: "horizontal" | "vertical";
|
|
90
|
-
/** Configuration required when type="sankey" */
|
|
91
|
-
sankeyConfig?: SankeyConfig<TData>;
|
|
92
|
-
/** Configuration required when type="geo" */
|
|
93
|
-
geoConfig?: GeoConfig<TData>;
|
|
94
|
-
}
|
|
95
|
-
export type ChartProps<TData> = DataStructureComponent<TData> & ChartSpecificProps<TData>;
|
|
96
|
-
export interface ChartDataPoint<TData> {
|
|
97
|
-
id: string | number;
|
|
98
|
-
label: string;
|
|
99
|
-
value: number;
|
|
100
|
-
originalData: TData;
|
|
101
|
-
}
|
|
102
|
-
export interface ChartSeries<TData> {
|
|
103
|
-
name: string;
|
|
104
|
-
data: ChartDataPoint<TData>[];
|
|
105
|
-
color?: string;
|
|
106
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolves a CSS custom property to its computed pixel value.
|
|
3
|
-
* Strips the "px" suffix and returns a number.
|
|
4
|
-
* Falls back to `fallbackPx` if the property is not defined or cannot be parsed.
|
|
5
|
-
*/
|
|
6
|
-
export declare function resolveCSSVarToPx(varName: string, fallbackPx: number): number;
|
|
7
|
-
/**
|
|
8
|
-
* Resolves a CSS custom property to its raw string value (e.g. a color hex).
|
|
9
|
-
* Falls back to `fallback` if the property is not defined.
|
|
10
|
-
*/
|
|
11
|
-
export declare function resolveCSSVar(varName: string, fallback: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* Hook that returns the numeric pixel value of a CSS custom property.
|
|
14
|
-
* Re-evaluates whenever the document theme changes (e.g. MutationObserver on <html>).
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const borderRadius = useCSSVarPx("--rst-borderRadius-small", 4);
|
|
19
|
-
* // borderRadius is a number like 4, updated at runtime if the token changes
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useCSSVarPx(varName: string, fallbackPx: number): number;
|
|
23
|
-
/**
|
|
24
|
-
* Hook that resolves an array of CSS custom property color values to actual strings.
|
|
25
|
-
* Re-evaluates on theme changes.
|
|
26
|
-
*/
|
|
27
|
-
export declare function useResolvedColors(cssVars: string[]): string[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ChartProps } from './chart-types';
|
|
3
|
-
export declare const Chart: <TData extends object>({ data, columns, type, xAxisColumn, yAxisColumns, title, subtitle, width, height, colors, showGrid, showTooltip, showLegend, showXAxis, showYAxis, layout, series, sankeyConfig, geoConfig, uiConfig, }: ChartProps<TData>) => React.JSX.Element;
|
|
4
|
-
export { Chart as default };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Chart } from './chart';
|
|
3
|
-
declare const meta: Meta<typeof Chart>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const BarChart: Story;
|
|
7
|
-
export declare const LineChart: Story;
|
|
8
|
-
export declare const ScatterChart: Story;
|
|
9
|
-
export declare const SankeyFlowChart: Story;
|
|
10
|
-
export declare const SankeyJourneyChart: Story;
|
|
11
|
-
export declare const PieChart: Story;
|
|
12
|
-
export declare const AreaChart: Story;
|
|
13
|
-
export declare const WithAccessorFunction: Story;
|
|
14
|
-
export declare const Interactive: Story;
|
|
15
|
-
export declare const GeoChart: Story;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { GeoConfig } from '../chart-types';
|
|
3
|
-
interface GeoChartProps<TData> {
|
|
4
|
-
readonly data: TData[];
|
|
5
|
-
readonly config: GeoConfig<TData>;
|
|
6
|
-
readonly width: number;
|
|
7
|
-
readonly height: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function GeoChart<TData extends object>({ data, config, width, height }: GeoChartProps<TData>): React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { SankeyLinkProps, SankeyNodeProps } from 'recharts';
|
|
2
|
-
/**
|
|
3
|
-
* maxDepth = stageColumns.length - 1
|
|
4
|
-
* depth=0 → label on LEFT (first stage)
|
|
5
|
-
* depth=maxDepth → label on RIGHT (last stage)
|
|
6
|
-
* 0 < depth < maxDepth → label ABOVE node, centered (intermediate stages)
|
|
7
|
-
*
|
|
8
|
-
* Uses CSS classes for text styling so design tokens apply automatically.
|
|
9
|
-
*/
|
|
10
|
-
export declare function makeSankeyNode(nodeColors: string[], maxDepth: number): (props: SankeyNodeProps) => import("react").JSX.Element;
|
|
11
|
-
/**
|
|
12
|
-
* Draws each link as a filled bezier ribbon (band) instead of a stroke.
|
|
13
|
-
* sourceY / targetY are the CENTER of the link; linkWidth is the full thickness.
|
|
14
|
-
*/
|
|
15
|
-
export declare function makeSankeyLink(nodeColors: string[]): (props: SankeyLinkProps) => import("react").JSX.Element;
|
|
16
|
-
/**
|
|
17
|
-
* Transforms flat tabular data into Sankey nodes + links.
|
|
18
|
-
*
|
|
19
|
-
* Algorithm:
|
|
20
|
-
* 1. Scan all rows to discover unique node names per stage (ordered).
|
|
21
|
-
* 2. Assign node indices stage by stage so recharts computes correct depth.
|
|
22
|
-
* 3. For each row, build the sequence of non-null stage values and create
|
|
23
|
-
* weighted links between consecutive pairs (skip logic handled via the
|
|
24
|
-
* non-null filter: jumps across empty stages create direct links).
|
|
25
|
-
* 4. Aggregate duplicate links by summing values.
|
|
26
|
-
*/
|
|
27
|
-
export declare function buildSankeyDataFromStages<T>(data: T[], stageColumns: (keyof T)[], valueColumn: keyof T, colors: string[]): {
|
|
28
|
-
nodes: {
|
|
29
|
-
name: string;
|
|
30
|
-
}[];
|
|
31
|
-
links: {
|
|
32
|
-
source: number;
|
|
33
|
-
target: number;
|
|
34
|
-
value: number;
|
|
35
|
-
}[];
|
|
36
|
-
nodeColors: string[];
|
|
37
|
-
};
|
package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PropFieldDescriptor, PropFieldScope } from '../switcher/prop-schema/prop-schema-types';
|
|
2
|
-
import { DataComponentId } from '../switcher/switcher-types';
|
|
3
|
-
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
4
|
-
/**
|
|
5
|
-
* Props for the shared DataComponentConfigurator.
|
|
6
|
-
*
|
|
7
|
-
* This component is used in two contexts:
|
|
8
|
-
* 1. **Switcher** — shows the component selector + prop form (scope: "switcher")
|
|
9
|
-
* 2. **Dashboard widget configurator** — shows only the prop form (scope: "dashboard")
|
|
10
|
-
*/
|
|
11
|
-
export interface DataComponentConfiguratorProps {
|
|
12
|
-
/** Schema for the active component's configurable fields. */
|
|
13
|
-
schema: PropFieldDescriptor[];
|
|
14
|
-
/** Current values for all fields. */
|
|
15
|
-
values: Record<string, unknown>;
|
|
16
|
-
/** Called when a field value changes. */
|
|
17
|
-
onChange: (name: string, value: unknown) => void;
|
|
18
|
-
/** Available columns (for "column" / "columns" type fields). */
|
|
19
|
-
columns?: DataStructureColumn<Record<string, unknown>>[];
|
|
20
|
-
/**
|
|
21
|
-
* Scope filter — only fields matching this scope are rendered.
|
|
22
|
-
* @default "all"
|
|
23
|
-
*/
|
|
24
|
-
scope?: PropFieldScope;
|
|
25
|
-
/** When provided, shows the component selector panel. */
|
|
26
|
-
componentId?: DataComponentId;
|
|
27
|
-
/** Called when the active component changes. */
|
|
28
|
-
onComponentChange?: (componentId: DataComponentId) => void;
|
|
29
|
-
/** Metadata list for the component selector. */
|
|
30
|
-
componentMetaList?: {
|
|
31
|
-
id: DataComponentId;
|
|
32
|
-
label: string;
|
|
33
|
-
icon: string;
|
|
34
|
-
}[];
|
|
35
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DataComponentConfiguratorProps } from './data-component-configurator-types';
|
|
3
|
-
/**
|
|
4
|
-
* Shared configurator for data-components.
|
|
5
|
-
*
|
|
6
|
-
* Renders:
|
|
7
|
-
* - An optional **component selector** (when `componentMetaList` is provided)
|
|
8
|
-
* - A **dynamic prop form** filtered by the given scope
|
|
9
|
-
*
|
|
10
|
-
* Used by:
|
|
11
|
-
* - **Switcher** — full configurator with component selector + all props
|
|
12
|
-
* - **Dashboard widget configurator** — prop form only (scope: "dashboard")
|
|
13
|
-
*/
|
|
14
|
-
export declare const DataComponentConfigurator: {
|
|
15
|
-
({ schema, values, onChange, columns, scope, componentId, onComponentChange, componentMetaList, }: DataComponentConfiguratorProps): React.JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { WidgetComponentType } from '../experimental-components/dashboard-builder/dashboard-builder-types';
|
|
2
|
-
/**
|
|
3
|
-
* Available widget types shown in the palette.
|
|
4
|
-
*/
|
|
5
|
-
export declare const DATA_COMPONENTS: {
|
|
6
|
-
type: WidgetComponentType;
|
|
7
|
-
label: string;
|
|
8
|
-
icon: string;
|
|
9
|
-
description: string;
|
|
10
|
-
}[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DataStructureColumn } from './data-structure';
|
|
2
|
-
/**
|
|
3
|
-
* Generate column definitions using a schema builder
|
|
4
|
-
* Type-safe way to generate columns without Object.keys()
|
|
5
|
-
*/
|
|
6
|
-
export declare function generateColumnsFromSchema<TData>(schema: (keyof TData)[], options?: {
|
|
7
|
-
headerFormatter?: (key: string) => string;
|
|
8
|
-
}): DataStructureColumn<TData>[];
|
|
9
|
-
/**
|
|
10
|
-
* Merge auto-generated columns with user-provided columns
|
|
11
|
-
* User-provided columns take precedence
|
|
12
|
-
*/
|
|
13
|
-
export declare function mergeColumns<TData>(schema: (keyof TData)[], userColumns?: DataStructureColumn<TData>[], options?: {
|
|
14
|
-
headerFormatter?: (key: string) => string;
|
|
15
|
-
}): DataStructureColumn<TData>[];
|