@restio/ui 0.2.1 → 0.2.2-20261120112131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -7
- package/dist/core.cjs +1 -0
- package/dist/core.d.ts +992 -0
- package/dist/core.js +36 -0
- package/dist/data.cjs +1 -0
- package/dist/data.d.ts +1465 -0
- package/dist/data.js +24 -0
- package/dist/experimental.cjs +2 -0
- package/dist/experimental.d.ts +660 -0
- package/dist/experimental.js +1365 -0
- package/dist/framework.cjs +1 -0
- package/dist/framework.d.ts +761 -0
- package/dist/framework.js +34 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +3282 -151
- package/dist/index.js +99 -0
- package/dist/src-C-0-H5TG.cjs +159 -0
- package/dist/{restio-ui.es.js → src-DzNRRdGD.js} +37175 -36673
- package/dist/ui.css +1 -1
- package/package.json +65 -43
- package/dist/assets/svg/alert.svg +0 -1
- package/dist/assets/svg/arrow-down-up.svg +0 -1
- package/dist/assets/svg/arrow-down.svg +0 -1
- package/dist/assets/svg/arrow-left.svg +0 -1
- package/dist/assets/svg/arrow-right.svg +0 -1
- package/dist/assets/svg/arrow-up.svg +0 -1
- package/dist/assets/svg/arrow_drop_down.svg +0 -1
- package/dist/assets/svg/calendar.svg +0 -1
- package/dist/assets/svg/chart-area.svg +0 -1
- package/dist/assets/svg/chart-bar-stacked.svg +0 -1
- package/dist/assets/svg/chart-bar.svg +0 -1
- package/dist/assets/svg/chart-candlestick.svg +0 -1
- package/dist/assets/svg/chart-gantt.svg +0 -1
- package/dist/assets/svg/chart-line.svg +0 -1
- package/dist/assets/svg/chart-pie.svg +0 -1
- package/dist/assets/svg/chart-sankey.svg +0 -1
- package/dist/assets/svg/check.svg +0 -1
- package/dist/assets/svg/chevron-down.svg +0 -1
- package/dist/assets/svg/chevron-right.svg +0 -1
- package/dist/assets/svg/clipboard.svg +0 -1
- package/dist/assets/svg/close.svg +0 -1
- package/dist/assets/svg/copy.svg +0 -1
- package/dist/assets/svg/cursor.svg +0 -1
- package/dist/assets/svg/cut.svg +0 -1
- package/dist/assets/svg/delete.svg +0 -1
- package/dist/assets/svg/discussion.svg +0 -1
- package/dist/assets/svg/dock-left-arrow.svg +0 -1
- package/dist/assets/svg/dock-right-arrow.svg +0 -1
- package/dist/assets/svg/document-outline.svg +0 -1
- package/dist/assets/svg/download.svg +0 -1
- package/dist/assets/svg/drag.svg +0 -1
- package/dist/assets/svg/error.svg +0 -1
- package/dist/assets/svg/expand-right.svg +0 -1
- package/dist/assets/svg/expand.svg +0 -1
- package/dist/assets/svg/eye.svg +0 -1
- package/dist/assets/svg/file-plus.svg +0 -1
- package/dist/assets/svg/filter.svg +0 -1
- package/dist/assets/svg/form.svg +0 -1
- package/dist/assets/svg/fullscreen.svg +0 -1
- package/dist/assets/svg/gear.svg +0 -1
- package/dist/assets/svg/groups.svg +0 -1
- package/dist/assets/svg/help.svg +0 -1
- package/dist/assets/svg/info.svg +0 -1
- package/dist/assets/svg/list.svg +0 -1
- package/dist/assets/svg/logo.svg +0 -9
- package/dist/assets/svg/menu.svg +0 -1
- package/dist/assets/svg/message-bubble-question-mark.svg +0 -1
- package/dist/assets/svg/open-center.svg +0 -1
- package/dist/assets/svg/open-dialog.svg +0 -29
- package/dist/assets/svg/pencil.svg +0 -1
- package/dist/assets/svg/pie-chart.svg +0 -1
- package/dist/assets/svg/plus.svg +0 -1
- package/dist/assets/svg/restio.svg +0 -5
- package/dist/assets/svg/search.svg +0 -1
- package/dist/assets/svg/send.svg +0 -1
- package/dist/assets/svg/shrink-right.svg +0 -1
- package/dist/assets/svg/sidebar.svg +0 -1
- package/dist/assets/svg/square-half.svg +0 -1
- package/dist/assets/svg/table.svg +0 -1
- package/dist/assets/svg/terminal.svg +0 -1
- package/dist/assets/svg/timer.svg +0 -1
- package/dist/assets/svg/transaction.svg +0 -1
- package/dist/assets/svg/vertical-expand.svg +0 -1
- package/dist/assets/svg/wallet.svg +0 -1
- package/dist/assets/svg/warning.svg +0 -1
- package/dist/assets/svg/zoom-minus.svg +0 -1
- package/dist/assets/svg/zoom-plus.svg +0 -1
- package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +0 -22
- package/dist/components/anchored-overlay/anchored-overlay.d.ts +0 -4
- package/dist/components/anchored-overlay/anchored-overlay.test.d.ts +0 -0
- package/dist/components/anchored-overlay/stories/anchored-overlay-example.stories.d.ts +0 -6
- package/dist/components/banner/banner-types.d.ts +0 -12
- package/dist/components/banner/banner.d.ts +0 -4
- package/dist/components/banner/banner.stories.d.ts +0 -11
- package/dist/components/button/button-types.d.ts +0 -12
- package/dist/components/button/button.d.ts +0 -3
- package/dist/components/button/stories/button-example.stories.d.ts +0 -8
- package/dist/components/button/stories/button.stories.d.ts +0 -8
- package/dist/components/button-dropdown/button-dropdown-types.d.ts +0 -19
- package/dist/components/button-dropdown/button-dropdown.d.ts +0 -7
- package/dist/components/button-dropdown/button-dropdown.test.d.ts +0 -0
- package/dist/components/button-dropdown/stories/button-dropdown.stories.d.ts +0 -10
- package/dist/components/button-group/button-group-types.d.ts +0 -15
- package/dist/components/button-group/button-group.d.ts +0 -3
- package/dist/components/button-group/button-group.stories.d.ts +0 -7
- package/dist/components/button-group/button-group.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox-types.d.ts +0 -15
- package/dist/components/checkbox/checkbox.d.ts +0 -3
- package/dist/components/checkbox/checkbox.test.d.ts +0 -0
- package/dist/components/checkbox/stories/checkbox-example.stories.d.ts +0 -7
- package/dist/components/checkbox/stories/checkbox.stories.d.ts +0 -6
- package/dist/components/checkbox-group/checkbox-group-types.d.ts +0 -27
- package/dist/components/checkbox-group/checkbox-group.d.ts +0 -7
- package/dist/components/checkbox-group/checkbox-group.test.d.ts +0 -0
- package/dist/components/checkbox-group/stories/checkbox-group-example.stories.d.ts +0 -6
- package/dist/components/checkbox-group/stories/checkbox-group.stories.d.ts +0 -10
- package/dist/components/code-block/code-block.d.ts +0 -7
- package/dist/components/file-upload/file-upload-types.d.ts +0 -36
- package/dist/components/file-upload/file-upload-utils.d.ts +0 -1
- package/dist/components/file-upload/file-upload.d.ts +0 -3
- package/dist/components/file-upload/file-upload.test.d.ts +0 -1
- package/dist/components/file-upload/stories/file-upload.stories.d.ts +0 -8
- package/dist/components/input/date/date-calendar.d.ts +0 -3
- package/dist/components/input/date/date-input-field.d.ts +0 -8
- package/dist/components/input/date/date-picker.d.ts +0 -7
- package/dist/components/input/date/date-range-input-field.d.ts +0 -8
- package/dist/components/input/date/date-range-picker.d.ts +0 -8
- package/dist/components/input/date/date-shortcuts.d.ts +0 -3
- package/dist/components/input/date/date-types.d.ts +0 -52
- package/dist/components/input/date/date-utils.d.ts +0 -34
- package/dist/components/input/date/stories/date.stories.d.ts +0 -5
- package/dist/components/input/date/use-digit-input.d.ts +0 -18
- package/dist/components/input/input-types.d.ts +0 -27
- package/dist/components/input/input.d.ts +0 -3
- package/dist/components/input/number/input-number-types.d.ts +0 -7
- package/dist/components/input/number/input-number.d.ts +0 -3
- package/dist/components/input/number/input-number.stories.d.ts +0 -6
- package/dist/components/input/text/input-text-types.d.ts +0 -6
- package/dist/components/input/text/input-text.d.ts +0 -3
- package/dist/components/input/text/stories/input-text.stories.d.ts +0 -9
- package/dist/components/kbd/kbd-types.d.ts +0 -6
- package/dist/components/kbd/kbd.d.ts +0 -4
- package/dist/components/kbd/kbd.stories.d.ts +0 -9
- package/dist/components/kbd-group/kbd-group-types.d.ts +0 -14
- package/dist/components/kbd-group/kbd-group.d.ts +0 -4
- package/dist/components/kbd-group/kbd-group.stories.d.ts +0 -10
- package/dist/components/list/list-types.d.ts +0 -37
- package/dist/components/list/list-utils.d.ts +0 -46
- package/dist/components/list/list.d.ts +0 -2
- package/dist/components/list/list.stories.d.ts +0 -12
- package/dist/components/list/list.test.d.ts +0 -0
- package/dist/components/menu/anchored-navigation-menu.d.ts +0 -18
- package/dist/components/menu/menu-assets.d.ts +0 -2
- package/dist/components/menu/menu-types.d.ts +0 -21
- package/dist/components/menu/menu.d.ts +0 -8
- package/dist/components/menu/stories/anchored-navigation-menu.stories.d.ts +0 -7
- package/dist/components/otp/otp-types.d.ts +0 -29
- package/dist/components/otp/otp-utils.d.ts +0 -14
- package/dist/components/otp/otp.d.ts +0 -3
- package/dist/components/otp/otp.stories.d.ts +0 -145
- package/dist/components/progress-bar/progress-bar-types.d.ts +0 -25
- package/dist/components/progress-bar/progress-bar.d.ts +0 -6
- package/dist/components/progress-bar/progress-bar.test.d.ts +0 -1
- package/dist/components/progress-bar/stories/progress-bar-example.stories.d.ts +0 -8
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts +0 -10
- package/dist/components/radio/radio-types.d.ts +0 -13
- package/dist/components/radio/radio.d.ts +0 -7
- package/dist/components/radio/radio.test.d.ts +0 -0
- package/dist/components/radio/stories/radio-example.stories.d.ts +0 -7
- package/dist/components/radio/stories/radio.stories.d.ts +0 -6
- package/dist/components/radio-group/radio-group-types.d.ts +0 -29
- package/dist/components/radio-group/radio-group.d.ts +0 -7
- package/dist/components/radio-group/radio-group.test.d.ts +0 -0
- package/dist/components/radio-group/stories/radio-group-example.stories.d.ts +0 -6
- package/dist/components/radio-group/stories/radio-group.stories.d.ts +0 -10
- package/dist/components/select/select-switch.d.ts +0 -26
- package/dist/components/select/select-types.d.ts +0 -35
- package/dist/components/select/select.d.ts +0 -4
- package/dist/components/select/select.stories.d.ts +0 -20
- package/dist/components/select/select.test.d.ts +0 -0
- package/dist/components/select/templates/grid-template.d.ts +0 -7
- package/dist/components/select/templates/list-template.d.ts +0 -7
- package/dist/components/select/templates/preview-dialog-template.d.ts +0 -9
- package/dist/components/select/templates/select-template-types.d.ts +0 -12
- package/dist/components/selection-grid/selection-grid-types.d.ts +0 -19
- package/dist/components/selection-grid/selection-grid.d.ts +0 -7
- package/dist/components/selection-grid/stories/selection-grid-example.stories.d.ts +0 -7
- package/dist/components/selection-grid/stories/selection-grid.stories.d.ts +0 -10
- package/dist/components/tag/tag-types.d.ts +0 -9
- package/dist/components/tag/tag.d.ts +0 -3
- package/dist/components/tag/tag.stories.d.ts +0 -12
- package/dist/components/textarea/textarea-types.d.ts +0 -54
- package/dist/components/textarea/textarea.d.ts +0 -3
- package/dist/components/textarea/textarea.stories.d.ts +0 -25
- package/dist/components/toast-group/toast-group-types.d.ts +0 -5
- package/dist/components/toast-group/toast-group.d.ts +0 -4
- package/dist/components/toast-group/toast-group.stories.d.ts +0 -6
- package/dist/components/typography/typography-types.d.ts +0 -58
- package/dist/components/typography/typography.d.ts +0 -3
- package/dist/components/typography/typography.stories.d.ts +0 -10
- package/dist/custom-components/chat/chat-types.d.ts +0 -18
- package/dist/custom-components/chat/chat.d.ts +0 -2
- package/dist/custom-components/chat/chat.stories.d.ts +0 -7
- package/dist/custom-components/layout/layout-renderers.d.ts +0 -8
- package/dist/custom-components/layout/layout-types.d.ts +0 -53
- package/dist/custom-components/layout/layout-utils.d.ts +0 -3
- package/dist/custom-components/layout/layout-utils.test.d.ts +0 -1
- package/dist/custom-components/layout/layout.d.ts +0 -7
- package/dist/custom-components/layout/layout.stories.d.ts +0 -7
- package/dist/custom-components/layout/layout.test.d.ts +0 -1
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +0 -4
- package/dist/custom-components/markdown/markdown-types.d.ts +0 -28
- package/dist/custom-components/markdown/markdown-utils.d.ts +0 -1
- package/dist/custom-components/markdown/markdown.d.ts +0 -3
- package/dist/custom-components/markdown/markdown.stories.d.ts +0 -6
- package/dist/custom-components/mindmap/index.d.ts +0 -2
- package/dist/custom-components/mindmap/mind-tree-types.d.ts +0 -93
- package/dist/custom-components/mindmap/mind-tree.d.ts +0 -3
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +0 -64
- package/dist/custom-components/mindmap/stories/mind-tree.stories.d.ts +0 -11
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.d.ts +0 -59
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +0 -17
- package/dist/custom-components/shortcut-tooltip/stories/shortcut-tooltip.stories.d.ts +0 -10
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +0 -6
- package/dist/custom-components/timeline/timeline-types.d.ts +0 -45
- package/dist/custom-components/timeline/timeline.d.ts +0 -19
- package/dist/custom-components/timeline/timeline.stories.d.ts +0 -8
- package/dist/custom-components/workflow/layout/workflow-edge.d.ts +0 -3
- package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +0 -73
- package/dist/custom-components/workflow/layout/workflow-layout.d.ts +0 -37
- package/dist/custom-components/workflow/node/workflow-node.d.ts +0 -3
- package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +0 -17
- package/dist/custom-components/workflow/panel/workflow-panel.d.ts +0 -3
- package/dist/custom-components/workflow/stories/workflow-overlay.stories.d.ts +0 -7
- package/dist/custom-components/workflow/stories/workflow-toolbar.stories.d.ts +0 -6
- package/dist/custom-components/workflow/stories/workflow.stories.d.ts +0 -7
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.d.ts +0 -23
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +0 -3
- package/dist/custom-components/workflow/utils/workflow-validation.d.ts +0 -47
- package/dist/custom-components/workflow/workflow-types.d.ts +0 -203
- package/dist/custom-components/workflow/workflow.d.ts +0 -6
- package/dist/data-components/assets/cell-types-asset.d.ts +0 -38
- package/dist/data-components/assets/data-components-asset.d.ts +0 -13
- package/dist/data-components/assets/finance-asset.d.ts +0 -15
- package/dist/data-components/calendar/calendar-types.d.ts +0 -30
- package/dist/data-components/calendar/calendar-utils.d.ts +0 -5
- package/dist/data-components/calendar/calendar.d.ts +0 -4
- package/dist/data-components/calendar/stories/calendar.stories.d.ts +0 -22
- package/dist/data-components/card/card-types.d.ts +0 -20
- package/dist/data-components/card/card.d.ts +0 -10
- package/dist/data-components/card/stories/card.stories.d.ts +0 -13
- package/dist/data-components/card-list/card-list-types.d.ts +0 -21
- package/dist/data-components/card-list/card-list.d.ts +0 -9
- package/dist/data-components/card-list/models/ecommerce.d.ts +0 -12
- package/dist/data-components/card-list/stories/card-list.stories.d.ts +0 -29
- package/dist/data-components/cell/cell-registry.d.ts +0 -28
- package/dist/data-components/cell/cell-types.d.ts +0 -39
- package/dist/data-components/cell/cell-utils.d.ts +0 -21
- package/dist/data-components/cell/cell.d.ts +0 -2
- package/dist/data-components/cell/colors-editor/colors-editor-types.d.ts +0 -15
- package/dist/data-components/cell/colors-editor/colors-editor.d.ts +0 -7
- package/dist/data-components/cell/stories/cell-all-examples.stories.d.ts +0 -13
- package/dist/data-components/cell/test/cell-utils.test.d.ts +0 -1
- package/dist/data-components/cell/test/cell.test.d.ts +0 -0
- package/dist/data-components/chart/chart-series-edit/chart-series-edit-types.d.ts +0 -22
- package/dist/data-components/chart/chart-series-edit/chart-series-edit.d.ts +0 -9
- package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts +0 -13
- package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts +0 -6
- package/dist/data-components/chart/chart-types.d.ts +0 -106
- package/dist/data-components/chart/chart-utils.d.ts +0 -27
- package/dist/data-components/chart/chart.d.ts +0 -4
- package/dist/data-components/chart/chart.stories.d.ts +0 -15
- package/dist/data-components/chart/geo/geoChart.d.ts +0 -10
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +0 -37
- package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts +0 -35
- package/dist/data-components/data-component-configurator/data-component-configurator.d.ts +0 -17
- package/dist/data-components/data-component-types.d.ts +0 -10
- package/dist/data-components/data-component-utils.d.ts +0 -27
- package/dist/data-components/data-structure/data-structure.d.ts +0 -50
- package/dist/data-components/data-structure/stories-assets.d.ts +0 -86
- package/dist/data-components/filter/filter-engine.d.ts +0 -14
- package/dist/data-components/filter/filter-types.d.ts +0 -40
- package/dist/data-components/filter/filter-utils.d.ts +0 -43
- package/dist/data-components/form/form-types.d.ts +0 -67
- package/dist/data-components/form/form.d.ts +0 -3
- package/dist/data-components/form/form.test.d.ts +0 -0
- package/dist/data-components/form/stories/form-advanced-cells.stories.d.ts +0 -15
- package/dist/data-components/form/stories/form-complex.stories.d.ts +0 -7
- package/dist/data-components/form/stories/form-dynamic.stories.d.ts +0 -20
- package/dist/data-components/form/stories/form-validation-examples.stories.d.ts +0 -7
- package/dist/data-components/form/stories/form.stories.d.ts +0 -17
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +0 -8
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +0 -11
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +0 -6
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +0 -2
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +0 -20
- package/dist/data-components/gantt/gantt-context.d.ts +0 -12
- package/dist/data-components/gantt/gantt-types.d.ts +0 -101
- package/dist/data-components/gantt/gantt-utils.d.ts +0 -60
- package/dist/data-components/gantt/gantt.d.ts +0 -3
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +0 -14
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +0 -17
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +0 -9
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +0 -2
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +0 -12
- package/dist/data-components/gantt/stories/gantt.stories.d.ts +0 -20
- package/dist/data-components/kpi/kpi-types.d.ts +0 -17
- package/dist/data-components/kpi/kpi.d.ts +0 -5
- package/dist/data-components/layout/card-layout-presets.d.ts +0 -12
- package/dist/data-components/layout/finance/finance-layouts.d.ts +0 -18
- package/dist/data-components/layout/finance/kpi-layout-presets.d.ts +0 -35
- package/dist/data-components/layout/finance/stories/finance-card-list.stories.d.ts +0 -16
- package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts +0 -9
- package/dist/data-components/switcher/prop-form/prop-form-types.d.ts +0 -16
- package/dist/data-components/switcher/prop-form/prop-form.d.ts +0 -6
- package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts +0 -58
- package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts +0 -14
- package/dist/data-components/switcher/prop-schema/prop-schema.d.ts +0 -43
- package/dist/data-components/switcher/switcher-types.d.ts +0 -59
- package/dist/data-components/switcher/switcher.d.ts +0 -12
- package/dist/data-components/switcher/switcher.stories.d.ts +0 -7
- package/dist/data-components/table-grid/aggregation/aggregation-utils.d.ts +0 -8
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +0 -8
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +0 -12
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +0 -13
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +0 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +0 -3
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +0 -5
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +0 -93
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +0 -4
- package/dist/data-components/table-grid/ai-assistant/table-grid-ai.stories.d.ts +0 -9
- package/dist/data-components/table-grid/editability/table-grid-editability.stories.d.ts +0 -7
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.d.ts +0 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +0 -8
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.d.ts +0 -5
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.d.ts +0 -5
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +0 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +0 -5
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.d.ts +0 -6
- package/dist/data-components/table-grid/external-functionalities/import/table-grid-import.stories.d.ts +0 -6
- package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +0 -4
- package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +0 -2
- package/dist/data-components/table-grid/formula/evaluator.d.ts +0 -10
- package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +0 -7
- package/dist/data-components/table-grid/formula/formula-builder.d.ts +0 -2
- package/dist/data-components/table-grid/formula/formula.test.d.ts +0 -1
- package/dist/data-components/table-grid/formula/index.d.ts +0 -11
- package/dist/data-components/table-grid/formula/parser.d.ts +0 -23
- package/dist/data-components/table-grid/formula/table-grid-formula.stories.d.ts +0 -9
- package/dist/data-components/table-grid/formula/tokenizer.d.ts +0 -15
- package/dist/data-components/table-grid/formula/types.d.ts +0 -38
- package/dist/data-components/table-grid/grouping/grouping.d.ts +0 -14
- package/dist/data-components/table-grid/grouping/table-grid-grouping.stories.d.ts +0 -7
- package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +0 -6
- package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +0 -3
- package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +0 -9
- package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +0 -5
- package/dist/data-components/table-grid/header/table-grid-header.d.ts +0 -3
- package/dist/data-components/table-grid/hooks/use-table.d.ts +0 -2
- package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +0 -20
- package/dist/data-components/table-grid/pinning/table-grid-pinning.stories.d.ts +0 -17
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +0 -16
- package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +0 -3
- package/dist/data-components/table-grid/pivot/pivot-table.d.ts +0 -7
- package/dist/data-components/table-grid/pivot/pivot-types.d.ts +0 -52
- package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +0 -13
- package/dist/data-components/table-grid/pivot/table-grid-pivot.stories.d.ts +0 -15
- package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +0 -10
- package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +0 -13
- package/dist/data-components/table-grid/row/table-grid-row.d.ts +0 -2
- package/dist/data-components/table-grid/selection/selection-types.d.ts +0 -2
- package/dist/data-components/table-grid/selection/selection-utils.d.ts +0 -48
- package/dist/data-components/table-grid/selection/table-grid-selection.stories.d.ts +0 -9
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts +0 -27
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +0 -2
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.stories.d.ts +0 -10
- package/dist/data-components/table-grid/sorting/sorting.d.ts +0 -7
- package/dist/data-components/table-grid/sorting/table-grid-sorting-groups.stories.d.ts +0 -5
- package/dist/data-components/table-grid/sorting/table-grid-sorting.stories.d.ts +0 -6
- package/dist/data-components/table-grid/stories/table-grid-columns.stories.d.ts +0 -8
- package/dist/data-components/table-grid/stories/table-grid-states.stories.d.ts +0 -8
- package/dist/data-components/table-grid/table-context/table-context-types.d.ts +0 -16
- package/dist/data-components/table-grid/table-context/table-context.d.ts +0 -2
- package/dist/data-components/table-grid/table-grid-context.d.ts +0 -3
- package/dist/data-components/table-grid/table-grid-features.stories.d.ts +0 -11
- package/dist/data-components/table-grid/table-grid-panels.d.ts +0 -21
- package/dist/data-components/table-grid/table-grid-types.d.ts +0 -246
- package/dist/data-components/table-grid/table-grid.d.ts +0 -10
- package/dist/data-components/table-grid/table-grid.stories.d.ts +0 -14
- package/dist/data-components/table-grid/table-utils.d.ts +0 -17
- package/dist/data-components/ui-layer/ui-layer-types.d.ts +0 -81
- package/dist/data-components/ui-layer/ui-layer-utils.d.ts +0 -12
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.d.ts +0 -14
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +0 -11
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +0 -3
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.stories.d.ts +0 -9
- package/dist/experimental-components/dashboard-builder/builder-canvas-hooks.d.ts +0 -46
- package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts +0 -33
- package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts +0 -23
- package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts +0 -173
- package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts +0 -37
- package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts +0 -13
- package/dist/experimental-components/dashboard-builder/dashboard-builder.stories.d.ts +0 -8
- package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts +0 -25
- package/dist/experimental-components/dashboard-builder/widget-palette.d.ts +0 -19
- package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +0 -11
- package/dist/experimental-components/filter-builder/filter-builder.d.ts +0 -11
- package/dist/experimental-components/filter-builder/filter-builder.stories.d.ts +0 -15
- package/dist/framework-components/appbar/appbar-assets.d.ts +0 -1
- package/dist/framework-components/appbar/appbar-types.d.ts +0 -18
- package/dist/framework-components/appbar/appbar.d.ts +0 -8
- package/dist/framework-components/appbar/appbar.stories.d.ts +0 -6
- package/dist/framework-components/blank-slate/blank-slate-types.d.ts +0 -31
- package/dist/framework-components/blank-slate/blank-slate.d.ts +0 -10
- package/dist/framework-components/blank-slate/blank-slate.stories.d.ts +0 -9
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.d.ts +0 -13
- package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +0 -3
- package/dist/framework-components/breadcrumbs/breadcrumbs.stories.d.ts +0 -7
- package/dist/framework-components/dashboard/dashboard-context.d.ts +0 -11
- package/dist/framework-components/dashboard/dashboard-real-world.stories.d.ts +0 -6
- package/dist/framework-components/dashboard/dashboard-types.d.ts +0 -47
- package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts +0 -0
- package/dist/framework-components/dashboard/dashboard-widget-types.d.ts +0 -85
- package/dist/framework-components/dashboard/dashboard-widget.d.ts +0 -17
- package/dist/framework-components/dashboard/dashboard.d.ts +0 -15
- package/dist/framework-components/dashboard/dashboard.stories.d.ts +0 -7
- package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts +0 -10
- package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts +0 -46
- package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts +0 -118
- package/dist/framework-components/dashboard/data-engine/data-engine.d.ts +0 -86
- package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts +0 -1
- package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts +0 -1
- package/dist/framework-components/dashboard/data-engine/field-inference.d.ts +0 -9
- package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts +0 -11
- package/dist/framework-components/dashboard/data-engine/index.d.ts +0 -7
- package/dist/framework-components/dashboard/data-engine/join-engine.d.ts +0 -16
- package/dist/framework-components/drawer/drawer-types.d.ts +0 -6
- package/dist/framework-components/drawer/drawer.d.ts +0 -4
- package/dist/framework-components/scaffold/scaffold-context.d.ts +0 -3
- package/dist/framework-components/scaffold/scaffold-types.d.ts +0 -17
- package/dist/framework-components/scaffold/scaffold.d.ts +0 -6
- package/dist/framework-components/scaffold/scaffold.stories.d.ts +0 -7
- package/dist/framework-components/scaffold/scaffold.test.d.ts +0 -0
- package/dist/framework-components/section/section-types.d.ts +0 -15
- package/dist/framework-components/section/section.d.ts +0 -8
- package/dist/framework-components/section/section.stories.d.ts +0 -6
- package/dist/framework-components/sidebar/sidebar-assets.d.ts +0 -1
- package/dist/framework-components/sidebar/sidebar-context.d.ts +0 -3
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.d.ts +0 -5
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +0 -2
- package/dist/framework-components/sidebar/sidebar-types.d.ts +0 -12
- package/dist/framework-components/sidebar/sidebar.d.ts +0 -16
- package/dist/framework-components/sidebar/sidebar.stories.d.ts +0 -6
- package/dist/framework-components/stepper/stepper-types.d.ts +0 -13
- package/dist/framework-components/stepper/stepper.d.ts +0 -8
- package/dist/framework-components/stepper/stepper.stories.d.ts +0 -7
- package/dist/hooks/useDynamicVirtualList.d.ts +0 -75
- package/dist/hooks/useEscapeClose.d.ts +0 -2
- package/dist/hooks/useFixedVirtualList.d.ts +0 -34
- package/dist/hooks/useOverlayAnimation.d.ts +0 -17
- package/dist/hooks/useShortcut.d.ts +0 -19
- package/dist/hooks/useTour/stories/useTour.stories.d.ts +0 -24
- package/dist/hooks/useTour/useTour-context-internal.d.ts +0 -6
- package/dist/hooks/useTour/useTour-context.d.ts +0 -9
- package/dist/hooks/useTour/useTour-types.d.ts +0 -191
- package/dist/hooks/useTour/useTour.d.ts +0 -2
- package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +0 -7
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts +0 -77
- package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +0 -22
- package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +0 -24
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts +0 -2
- package/dist/providers/shortcut/shortcut-context.d.ts +0 -6
- package/dist/providers/shortcut/shortcut-provider.d.ts +0 -34
- package/dist/providers/stories/theme-provider.stories.d.ts +0 -6
- package/dist/providers/theme/index.d.ts +0 -3
- package/dist/providers/theme/theme-provider-types.d.ts +0 -5
- package/dist/providers/theme/themeProvider.d.ts +0 -9
- package/dist/restio-ui.cjs.js +0 -201
- package/dist/types/global-types.d.ts +0 -51
- package/dist/types/storybook-types.d.ts +0 -1
- package/dist/utility-components/avatar/avatar-types.d.ts +0 -15
- package/dist/utility-components/avatar/avatar.d.ts +0 -4
- package/dist/utility-components/avatar/avatar.stories.d.ts +0 -8
- package/dist/utility-components/chip/chip-types.d.ts +0 -16
- package/dist/utility-components/chip/chip.d.ts +0 -3
- package/dist/utility-components/chip/chip.stories.d.ts +0 -10
- package/dist/utility-components/helper-text/helper-text-types.d.ts +0 -19
- package/dist/utility-components/helper-text/helper-text.d.ts +0 -2
- package/dist/utility-components/helper-text/helper-text.stories.d.ts +0 -10
- package/dist/utility-components/helper-text/helper-text.test.d.ts +0 -1
- package/dist/utility-components/icon/icon-assets.d.ts +0 -1
- package/dist/utility-components/icon/icon-types.d.ts +0 -23
- package/dist/utility-components/icon/icon.d.ts +0 -3
- package/dist/utility-components/icon/stories/icon.stories.d.ts +0 -10
- package/dist/utility-components/label/label-types.d.ts +0 -18
- package/dist/utility-components/label/label.d.ts +0 -2
- package/dist/utility-components/label/label.test.d.ts +0 -1
- package/dist/utility-components/overlay-panel/overlay-panel-footer/overlay-panel-footer-types.d.ts +0 -6
- package/dist/utility-components/overlay-panel/overlay-panel-footer/overlay-panel-footer.d.ts +0 -4
- package/dist/utility-components/overlay-panel/overlay-panel-header/overlay-panel-header-types.d.ts +0 -12
- package/dist/utility-components/overlay-panel/overlay-panel-header/overlay-panel-header.d.ts +0 -4
- package/dist/utility-components/overlay-panel/overlay-panel-types.d.ts +0 -65
- package/dist/utility-components/overlay-panel/overlay-panel.d.ts +0 -3
- package/dist/utility-components/overlay-panel/overlay-panel.stories.d.ts +0 -13
- package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +0 -7
- package/dist/utility-components/skeleton/skeleton-types.d.ts +0 -6
- package/dist/utility-components/skeleton/skeleton.d.ts +0 -3
- package/dist/utility-components/skeleton/stories/skeleton.stories.d.ts +0 -9
- package/dist/utility-components/stack/stack-types.d.ts +0 -10
- package/dist/utility-components/stack/stack.d.ts +0 -7
- package/dist/utility-components/stack/stack.stories.d.ts +0 -4
- package/dist/utility-components/toast/toast-types.d.ts +0 -8
- package/dist/utility-components/toast/toast.d.ts +0 -4
- package/dist/utility-components/toast/toast.stories.d.ts +0 -8
- package/dist/utils/general.d.ts +0 -8
- package/dist/utils/shortcut-utils.d.ts +0 -43
- package/dist/vitest.setup.d.ts +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
2
|
-
import { GanttDependency, GanttView } from './gantt-types';
|
|
3
|
-
export declare function getColValue<TData>(row: TData, columnId: string | keyof TData, columns?: DataStructureColumn<TData>[]): unknown;
|
|
4
|
-
export declare function toDate(value: unknown): Date | null;
|
|
5
|
-
export declare function normalizeDeps(raw: unknown): GanttDependency[];
|
|
6
|
-
export interface TimelineCell {
|
|
7
|
-
label: string;
|
|
8
|
-
date: Date;
|
|
9
|
-
isToday?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface MajorCell {
|
|
12
|
-
label: string;
|
|
13
|
-
/** Number of minor units this cell spans. */
|
|
14
|
-
unitCount: number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Pixel width of one minor timeline unit.
|
|
18
|
-
*
|
|
19
|
-
* | view | unit | width |
|
|
20
|
-
* |-------|---------|-------|
|
|
21
|
-
* | day | 4 hours | 40 px |
|
|
22
|
-
* | week | 1 day | 30 px |
|
|
23
|
-
* | month | 1 day | 20 px |
|
|
24
|
-
* | year | 1 month | 60 px |
|
|
25
|
-
*/
|
|
26
|
-
export declare function unitWidth(view: GanttView): number;
|
|
27
|
-
/** Milliseconds in one minor unit. */
|
|
28
|
-
export declare function msPerUnit(view: GanttView): number;
|
|
29
|
-
/** Number of minor units to load on each side of origin at startup. */
|
|
30
|
-
export declare function initialVisibleUnits(view: GanttView): number;
|
|
31
|
-
/**
|
|
32
|
-
* Generate minor header cells (lower row) starting from `origin`.
|
|
33
|
-
*/
|
|
34
|
-
export declare function generateTimelineCells(view: GanttView, origin: Date, count: number): TimelineCell[];
|
|
35
|
-
/**
|
|
36
|
-
* Generate major header cells (upper row) by grouping minor cells.
|
|
37
|
-
*
|
|
38
|
-
* | view | major group | label example |
|
|
39
|
-
* |-------|----------------|------------------------|
|
|
40
|
-
* | day | by day | "Mon 4 May" |
|
|
41
|
-
* | week | by ISO week | "W18 · Apr 28 – May 4" |
|
|
42
|
-
* | month | by month | "May 2026" |
|
|
43
|
-
* | year | by year | "2026" |
|
|
44
|
-
*/
|
|
45
|
-
export declare function generateMajorCells(view: GanttView, cells: TimelineCell[]): MajorCell[];
|
|
46
|
-
/**
|
|
47
|
-
* Convert a date to its horizontal pixel offset relative to the timeline origin.
|
|
48
|
-
*/
|
|
49
|
-
export declare function dateToX(date: Date, origin: Date, view: GanttView): number;
|
|
50
|
-
/**
|
|
51
|
-
* Recursively computes the effective [start, end] date range for a row.
|
|
52
|
-
* - Leaf rows: returns the row's own start/end.
|
|
53
|
-
* - Parent rows: min(all-descendant starts) → max(all-descendant ends).
|
|
54
|
-
* This ensures parent bars always span the full extent of their subtree,
|
|
55
|
-
* regardless of whether children are expanded or collapsed.
|
|
56
|
-
*/
|
|
57
|
-
export declare function computeEffectiveDates<TData>(rowData: TData, getSubRows: (row: TData, index: number) => TData[] | undefined, allColumns: DataStructureColumn<TData>[], startColumnId: string | keyof TData, endColumnId: string | keyof TData): {
|
|
58
|
-
start: Date;
|
|
59
|
-
end: Date;
|
|
60
|
-
} | null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { GanttDragState } from '../gantt-types';
|
|
2
|
-
/**
|
|
3
|
-
* Manages bar drag-to-move and edge resize interactions.
|
|
4
|
-
* Fires `onEventChange` on mouseup with the updated start/end dates.
|
|
5
|
-
* Attaches document-level listeners — safe to mount once per Gantt instance.
|
|
6
|
-
*/
|
|
7
|
-
export declare function useGanttDrag<TData>(onEventChange?: (row: TData, newStart: Date, newEnd: Date) => void): {
|
|
8
|
-
dragRef: import('react').RefObject<GanttDragState<TData> | null>;
|
|
9
|
-
dragOverride: {
|
|
10
|
-
rowId: string;
|
|
11
|
-
start: Date;
|
|
12
|
-
end: Date;
|
|
13
|
-
} | null;
|
|
14
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { GanttView } from '../gantt-types';
|
|
2
|
-
/**
|
|
3
|
-
* Manages timeline range state, scroll synchronization between grid and timeline,
|
|
4
|
-
* and infinite horizontal scroll expansion on both edges.
|
|
5
|
-
*/
|
|
6
|
-
export declare function useGanttTimeline(view: GanttView, initialDate?: Date): {
|
|
7
|
-
gridBodyRef: import('react').RefObject<HTMLDivElement | null>;
|
|
8
|
-
timelineBodyRef: import('react').RefObject<HTMLDivElement | null>;
|
|
9
|
-
headerInnerRef: import('react').RefObject<HTMLDivElement | null>;
|
|
10
|
-
cells: import('../gantt-utils').TimelineCell[];
|
|
11
|
-
majorCells: import('../gantt-utils').MajorCell[];
|
|
12
|
-
totalWidth: number;
|
|
13
|
-
timelineOrigin: Date;
|
|
14
|
-
todayX: number;
|
|
15
|
-
syncScroll: (source: "grid" | "timeline") => void;
|
|
16
|
-
handleTimelineScroll: (e: React.UIEvent<HTMLDivElement>) => void;
|
|
17
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type GanttActiveTool = "ai" | null;
|
|
2
|
-
export interface GanttSidebarProps {
|
|
3
|
-
/** Show the AI assistant button */
|
|
4
|
-
enableAI?: boolean;
|
|
5
|
-
/** Currently open tool panel */
|
|
6
|
-
activeTool: GanttActiveTool;
|
|
7
|
-
/** Called when the AI assistant button is clicked */
|
|
8
|
-
onAIClick?: () => void;
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GanttDependency } from '../gantt-types';
|
|
2
|
-
type Status = "active" | "done" | "pending";
|
|
3
|
-
interface Task {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
start: Date;
|
|
7
|
-
end: Date;
|
|
8
|
-
status: Status;
|
|
9
|
-
deps?: (string | GanttDependency)[] | null;
|
|
10
|
-
}
|
|
11
|
-
export declare function generateRandomTasks(count?: number): Task[];
|
|
12
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { default as Gantt } from '../gantt';
|
|
3
|
-
import { GanttDependency } from '../gantt-types';
|
|
4
|
-
interface Task {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
start: Date;
|
|
8
|
-
end: Date;
|
|
9
|
-
status: "active" | "done" | "pending";
|
|
10
|
-
children?: Task[];
|
|
11
|
-
deps?: (string | GanttDependency)[] | null;
|
|
12
|
-
}
|
|
13
|
-
declare const meta: Meta<typeof Gantt<Task>>;
|
|
14
|
-
export default meta;
|
|
15
|
-
type Story = StoryObj<typeof Gantt<Task>>;
|
|
16
|
-
export declare const Default: Story;
|
|
17
|
-
export declare const WeekView: Story;
|
|
18
|
-
export declare const HierarchyView: Story;
|
|
19
|
-
export declare const WithEventChange: Story;
|
|
20
|
-
export declare const AIAssistant: Story;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ResponsiveLayout } from '../../custom-components/layout/layout-types';
|
|
2
|
-
import { DataStructureComponent } from '../data-structure/data-structure';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the KPI component.
|
|
5
|
-
* A KPI is a single-metric Card;
|
|
6
|
-
*/
|
|
7
|
-
export interface KPISpecificProps<TData> {
|
|
8
|
-
/** Single row of data to display in the KPI */
|
|
9
|
-
data: TData;
|
|
10
|
-
/** Layout for the KPI fields. Reuse a shared layout example or supply a custom one. */
|
|
11
|
-
layout?: ResponsiveLayout;
|
|
12
|
-
/** Additional CSS class for the KPI container */
|
|
13
|
-
className?: string;
|
|
14
|
-
/** Called when the KPI is clicked */
|
|
15
|
-
onClick?: () => void;
|
|
16
|
-
}
|
|
17
|
-
export type KPIProps<TData> = Omit<DataStructureComponent<TData>, "data"> & KPISpecificProps<TData>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ResponsiveLayout } from '../../custom-components/layout/layout-types';
|
|
2
|
-
/**
|
|
3
|
-
* Card layout: icon on the left, name + type next to it, actions right-aligned.
|
|
4
|
-
*
|
|
5
|
-
* Field IDs: `icon`, `name`, `type`, `actions`.
|
|
6
|
-
*
|
|
7
|
-
* ┌──────────────────────────────────────┐
|
|
8
|
-
* │ icon name actions │
|
|
9
|
-
* │ type │
|
|
10
|
-
* └──────────────────────────────────────┘
|
|
11
|
-
*/
|
|
12
|
-
export declare const cardLayoutWithIcon: ResponsiveLayout;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ResponsiveLayout } from '../../../custom-components/layout/layout-types';
|
|
2
|
-
/**
|
|
3
|
-
* Shared finance layouts, usable by any component that accepts a
|
|
4
|
-
* `ResponsiveLayout` (Card, KPI, CardList).
|
|
5
|
-
*
|
|
6
|
-
* Field IDs are intentionally generic so they work with any dataset that
|
|
7
|
-
* follows the KPI shape: `label`, `value`, `delta`, `trend`, `icon`.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Compact KPI layout: label on top, big value in the middle, delta/trend
|
|
11
|
-
* at the bottom. On small breakpoints it collapses to a single column.
|
|
12
|
-
*/
|
|
13
|
-
export declare const financeKpiLayout: ResponsiveLayout;
|
|
14
|
-
/**
|
|
15
|
-
* Finance layout with leading icon on the right side (icon spans the whole
|
|
16
|
-
* height). Useful when the dataset includes a representative icon/illustration.
|
|
17
|
-
*/
|
|
18
|
-
export declare const financeKpiLayoutWithIcon: ResponsiveLayout;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ResponsiveLayout } from '../../../custom-components/layout/layout-types';
|
|
2
|
-
/**
|
|
3
|
-
* A registered KPI layout preset.
|
|
4
|
-
*
|
|
5
|
-
* `id` is the value stored in the widget config (and resolved back to a
|
|
6
|
-
* `ResponsiveLayout` at render time by the Switcher). `label` / `description`
|
|
7
|
-
* drive the selector UI; `layout` is the actual tree rendered in the preview
|
|
8
|
-
* and passed to the `KPI` component.
|
|
9
|
-
*/
|
|
10
|
-
export interface KpiLayoutPreset {
|
|
11
|
-
id: string;
|
|
12
|
-
label: string;
|
|
13
|
-
description: string;
|
|
14
|
-
/** Bundled SVG icon name shown in the selector. */
|
|
15
|
-
leadingVisual?: string;
|
|
16
|
-
layout: ResponsiveLayout;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Registry of available KPI layout presets.
|
|
20
|
-
*
|
|
21
|
-
* This is the single source of truth for the KPI layout selector in the
|
|
22
|
-
* Switcher / Dashboard Builder. Add new presets here (built-in examples or
|
|
23
|
-
* user-created custom layouts) and they automatically appear in the
|
|
24
|
-
* `preview-dialog` selector.
|
|
25
|
-
*/
|
|
26
|
-
export declare const kpiLayoutPresets: KpiLayoutPreset[];
|
|
27
|
-
/** Maps a preset id to its `ResponsiveLayout`. Falls back to `undefined`. */
|
|
28
|
-
export declare function resolveKpiLayoutPreset(id?: string): ResponsiveLayout | undefined;
|
|
29
|
-
/** Option shape consumed by the `preview-dialog` selector. */
|
|
30
|
-
export declare const kpiLayoutPresetOptions: {
|
|
31
|
-
value: string;
|
|
32
|
-
label: string;
|
|
33
|
-
description: string;
|
|
34
|
-
leadingVisual: string | undefined;
|
|
35
|
-
}[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { CardList } from '../../../card-list/card-list';
|
|
3
|
-
declare const meta: Meta<typeof CardList>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CardList>;
|
|
6
|
-
/**
|
|
7
|
-
* CardList rendered with the shared finance layout (no KPI wrapper needed).
|
|
8
|
-
* Demonstrates that the same finance layout works at the card level for a
|
|
9
|
-
* list of KPI-like metrics.
|
|
10
|
-
*/
|
|
11
|
-
export declare const FinanceLayout: Story;
|
|
12
|
-
/**
|
|
13
|
-
* CardList with the icon-aware finance layout variant.
|
|
14
|
-
* Each KPI row carries an emoji icon to fill the icon slot.
|
|
15
|
-
*/
|
|
16
|
-
export declare const FinanceLayoutWithIcon: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PropFieldDescriptor } from '../prop-schema/prop-schema-types';
|
|
2
|
-
import { DataStructureColumn } from '../../data-structure/data-structure';
|
|
3
|
-
/**
|
|
4
|
-
* Converts a PropFieldDescriptor[] into a DataStructureColumn[] for the Cell
|
|
5
|
-
* component. All prop-schema types are supported — no special cases remain.
|
|
6
|
-
* `formValues` is required when the schema contains a `chart-series` field,
|
|
7
|
-
* so the Type column can be locked to the parent chart type.
|
|
8
|
-
*/
|
|
9
|
-
export declare function propSchemaToFormColumns(schema: PropFieldDescriptor[], availableColumns?: DataStructureColumn<Record<string, unknown>>[], formValues?: Record<string, unknown>): DataStructureColumn<Record<string, unknown>>[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PropFieldDescriptor } from '../prop-schema/prop-schema-types';
|
|
2
|
-
import { DataStructureColumn } from '../../data-structure/data-structure';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the PropForm component.
|
|
5
|
-
* Renders a dynamic form based on a schema of PropFieldDescriptors.
|
|
6
|
-
*/
|
|
7
|
-
export interface PropFormProps {
|
|
8
|
-
/** Schema describing which fields to render and how. */
|
|
9
|
-
schema: PropFieldDescriptor[];
|
|
10
|
-
/** Current values for all fields. */
|
|
11
|
-
values: Record<string, unknown>;
|
|
12
|
-
/** Called when a field value changes. */
|
|
13
|
-
onChange: (name: string, value: unknown) => void;
|
|
14
|
-
/** Available columns (for "column" / "columns" type fields). */
|
|
15
|
-
columns?: DataStructureColumn<Record<string, unknown>>[];
|
|
16
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { PropFormProps } from './prop-form-types';
|
|
3
|
-
/**
|
|
4
|
-
* Dynamic form that renders controls based on a PropFieldDescriptor schema.
|
|
5
|
-
*/
|
|
6
|
-
export declare const PropForm: ({ schema, values, onChange, columns }: PropFormProps) => React.JSX.Element;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Where a prop field is configurable.
|
|
3
|
-
* - `"all"`: visible in both Switcher and Dashboard configurator
|
|
4
|
-
* - `"switcher"`: visible only in the Switcher panel
|
|
5
|
-
* - `"dashboard"`: visible only in the Dashboard configurator
|
|
6
|
-
* - `"none"`: not configurable via UI (callbacks, complex objects, etc.)
|
|
7
|
-
*/
|
|
8
|
-
export type PropFieldScope = "all" | "switcher" | "dashboard" | "none";
|
|
9
|
-
/**
|
|
10
|
-
* Describes a single configurable prop field for the dynamic PropForm.
|
|
11
|
-
*/
|
|
12
|
-
export interface PropFieldDescriptor {
|
|
13
|
-
/** Prop name (matches the key in the SpecificProps interface). */
|
|
14
|
-
name: string;
|
|
15
|
-
/** Control type to render. */
|
|
16
|
-
type: "boolean" | "string" | "number" | "select" | "column" | "columns" | "color[]" | "chart-series";
|
|
17
|
-
/** Human-readable label. */
|
|
18
|
-
label: string;
|
|
19
|
-
/** Default value when the prop is not set. */
|
|
20
|
-
defaultValue: unknown;
|
|
21
|
-
/**
|
|
22
|
-
* Where this field is configurable.
|
|
23
|
-
* @default "all"
|
|
24
|
-
*/
|
|
25
|
-
scope?: PropFieldScope;
|
|
26
|
-
/** Options for "select" type controls. */
|
|
27
|
-
options?: {
|
|
28
|
-
label: string;
|
|
29
|
-
value: string;
|
|
30
|
-
description?: string;
|
|
31
|
-
leadingVisual?: string;
|
|
32
|
-
}[];
|
|
33
|
-
/**
|
|
34
|
-
* Generic column-level configuration forwarded as-is to the generated
|
|
35
|
-
*/
|
|
36
|
-
columnConfig?: Record<string, unknown>;
|
|
37
|
-
/**
|
|
38
|
-
* Optional condition: if provided, the field is only visible when this
|
|
39
|
-
* function returns true given the current form values.
|
|
40
|
-
*/
|
|
41
|
-
condition?: (formValues: Record<string, unknown>) => boolean;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Registry mapping each DataComponentId to its array of PropFieldDescriptors.
|
|
45
|
-
*/
|
|
46
|
-
export type PropSchemaRegistry = Record<string, PropFieldDescriptor[]>;
|
|
47
|
-
/**
|
|
48
|
-
* Helper to create a type-safe prop schema for a component.
|
|
49
|
-
* Ensures the field names match the component's specific props interface.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```ts
|
|
53
|
-
* const tableGridSchema = definePropSchema<TableGridSpecificProps>([
|
|
54
|
-
* { name: "enableSorting", type: "boolean", label: "Enable Sorting", defaultValue: false },
|
|
55
|
-
* ]);
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
export declare function definePropSchema<_TProps>(fields: PropFieldDescriptor[]): PropFieldDescriptor[];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PropFieldDescriptor, PropFieldScope } from './prop-schema-types';
|
|
2
|
-
/**
|
|
3
|
-
* Filters a schema array to only include fields visible in the given scope.
|
|
4
|
-
*/
|
|
5
|
-
export declare function filterSchemaByScope(schema: PropFieldDescriptor[], scope: PropFieldScope): PropFieldDescriptor[];
|
|
6
|
-
/**
|
|
7
|
-
* Builds a default values record from a schema array.
|
|
8
|
-
*/
|
|
9
|
-
export declare function buildDefaultPropsFromSchema(schema: PropFieldDescriptor[]): Record<string, unknown>;
|
|
10
|
-
/**
|
|
11
|
-
* Merges partial prop values with schema defaults.
|
|
12
|
-
* Useful when restoring a saved configuration that may be incomplete.
|
|
13
|
-
*/
|
|
14
|
-
export declare function mergeWithSchemaDefaults(schema: PropFieldDescriptor[], values: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { PropSchemaRegistry } from './prop-schema-types';
|
|
2
|
-
/**
|
|
3
|
-
* Registry of prop field descriptors for each data-component.
|
|
4
|
-
* Each entry describes the configurable props that appear in the PropForm panel.
|
|
5
|
-
*
|
|
6
|
-
* Fields of type "column" / "columns" are populated dynamically at render time
|
|
7
|
-
* from the `columns` prop passed to the configurator.
|
|
8
|
-
*/
|
|
9
|
-
export declare const propSchemaRegistry: PropSchemaRegistry;
|
|
10
|
-
/** Maps the KPI "layout" prop value to a shared ResponsiveLayout. */
|
|
11
|
-
export { resolveKpiLayoutPreset as kpiLayoutResolver } from '../../layout/finance/kpi-layout-presets';
|
|
12
|
-
/**
|
|
13
|
-
* Human-readable metadata for the component selector.
|
|
14
|
-
*/
|
|
15
|
-
export declare const dataComponentMetaList: ({
|
|
16
|
-
id: "table-grid";
|
|
17
|
-
label: string;
|
|
18
|
-
icon: string;
|
|
19
|
-
} | {
|
|
20
|
-
id: "chart";
|
|
21
|
-
label: string;
|
|
22
|
-
icon: string;
|
|
23
|
-
} | {
|
|
24
|
-
id: "calendar";
|
|
25
|
-
label: string;
|
|
26
|
-
icon: string;
|
|
27
|
-
} | {
|
|
28
|
-
id: "gantt";
|
|
29
|
-
label: string;
|
|
30
|
-
icon: string;
|
|
31
|
-
} | {
|
|
32
|
-
id: "form";
|
|
33
|
-
label: string;
|
|
34
|
-
icon: string;
|
|
35
|
-
} | {
|
|
36
|
-
id: "card-list";
|
|
37
|
-
label: string;
|
|
38
|
-
icon: string;
|
|
39
|
-
} | {
|
|
40
|
-
id: "kpi";
|
|
41
|
-
label: string;
|
|
42
|
-
icon: string;
|
|
43
|
-
})[];
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { DataStructureComponent } from '../data-structure/data-structure';
|
|
2
|
-
import { TableGridSpecificProps } from '../table-grid/table-grid-types';
|
|
3
|
-
import { ChartSpecificProps } from '../chart/chart-types';
|
|
4
|
-
import { CalendarSpecificProps } from '../calendar/calendar-types';
|
|
5
|
-
import { GanttSpecificProps } from '../gantt/gantt-types';
|
|
6
|
-
import { FormSpecificProps } from '../form/form-types';
|
|
7
|
-
import { CardListSpecificProps } from '../card-list/card-list-types';
|
|
8
|
-
import { KPISpecificProps } from '../kpi/kpi-types';
|
|
9
|
-
/**
|
|
10
|
-
* Identifiers for all data-components that the switcher can render.
|
|
11
|
-
*/
|
|
12
|
-
export type DataComponentId = "table-grid" | "chart" | "calendar" | "gantt" | "form" | "card-list" | "kpi";
|
|
13
|
-
/**
|
|
14
|
-
* Maps each component id to its specific props interface (without DataStructureComponent).
|
|
15
|
-
* Used by the switcher to type the dynamic `componentProps` state.
|
|
16
|
-
*/
|
|
17
|
-
export type ComponentSpecificPropsMap<TData> = {
|
|
18
|
-
"table-grid": TableGridSpecificProps<TData>;
|
|
19
|
-
"chart": ChartSpecificProps<TData>;
|
|
20
|
-
"calendar": CalendarSpecificProps<TData>;
|
|
21
|
-
"gantt": GanttSpecificProps<TData>;
|
|
22
|
-
"form": FormSpecificProps<TData>;
|
|
23
|
-
"card-list": CardListSpecificProps<TData>;
|
|
24
|
-
"kpi": KPISpecificProps<TData>;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Human-readable metadata for each data-component shown in the selector.
|
|
28
|
-
*/
|
|
29
|
-
export interface DataComponentMeta {
|
|
30
|
-
id: DataComponentId;
|
|
31
|
-
label: string;
|
|
32
|
-
description: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Props for the Switcher component.
|
|
36
|
-
* Accepts the shared DataStructureComponent props plus an optional initial component.
|
|
37
|
-
*
|
|
38
|
-
* Two modes:
|
|
39
|
-
* - **Uncontrolled**: provide `initialComponent` / `initialComponentProps`. Switcher manages its own state.
|
|
40
|
-
* - **Controlled**: provide `activeComponent` / `componentProps`. The parent manages state,
|
|
41
|
-
* and the Switcher reflects changes immediately. Use this when an external configurator
|
|
42
|
-
* (e.g. DashboardBuilder) drives the configuration.
|
|
43
|
-
*/
|
|
44
|
-
export interface SwitcherProps<TData> extends DataStructureComponent<TData> {
|
|
45
|
-
/** Initial active component. Defaults to "table-grid". (Uncontrolled mode) */
|
|
46
|
-
initialComponent?: DataComponentId;
|
|
47
|
-
/** Initial specific props for the active component. (Uncontrolled mode) */
|
|
48
|
-
initialComponentProps?: Partial<ComponentSpecificPropsMap<TData>[DataComponentId]>;
|
|
49
|
-
/** Active component. When provided, Switcher runs in controlled mode. */
|
|
50
|
-
activeComponent?: DataComponentId;
|
|
51
|
-
/** Current component props. When provided, Switcher runs in controlled mode. */
|
|
52
|
-
componentProps?: Record<string, unknown>;
|
|
53
|
-
/** Whether to show the "Configure" button and overlay. Default: true. */
|
|
54
|
-
showConfigurator?: boolean;
|
|
55
|
-
/** Called when the active component changes. */
|
|
56
|
-
onComponentChange?: (componentId: DataComponentId) => void;
|
|
57
|
-
/** Called when the specific props change. */
|
|
58
|
-
onComponentPropsChange?: (props: Partial<ComponentSpecificPropsMap<TData>[DataComponentId]>) => void;
|
|
59
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { SwitcherProps } from './switcher-types';
|
|
3
|
-
/**
|
|
4
|
-
* Switcher — wraps a data-component
|
|
5
|
-
* Shared props (data, columns, uiConfig, getSubRows) are passed to every component.
|
|
6
|
-
* Specific props are managed per-component via the config overlay.
|
|
7
|
-
*
|
|
8
|
-
* Two modes:
|
|
9
|
-
* - **Uncontrolled**: provide `initialComponent` / `initialComponentProps`
|
|
10
|
-
* - **Controlled**: provide `activeComponent` / `componentProps` (external configurator drives state)
|
|
11
|
-
*/
|
|
12
|
-
export declare const Switcher: <TData extends object>({ data, columns, getSubRows, uiConfig, initialComponent, initialComponentProps, activeComponent: controlledComponent, componentProps: controlledProps, showConfigurator, onComponentChange, onComponentPropsChange, }: SwitcherProps<TData>) => React.JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Switcher } from './switcher';
|
|
3
|
-
declare const meta: Meta<typeof Switcher>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const StartWithChart: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type AggregationFn = "sum" | "count" | "avg" | "min" | "max";
|
|
2
|
-
/**
|
|
3
|
-
* Aggregates an array of numeric values with the given function.
|
|
4
|
-
* Returns null when the input array is empty.
|
|
5
|
-
*/
|
|
6
|
-
export declare function aggregate(values: number[], fn: AggregationFn): number | null;
|
|
7
|
-
/** Formats an aggregated value for display (numbers: integers stay clean, floats round to 2 dp; null/undefined → em dash; strings pass through). */
|
|
8
|
-
export declare function formatAggregated(value: number | string | null | undefined): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ToolCall, ExecutionResult } from './ai-assistant-types';
|
|
2
|
-
import { PivotConfig } from '../pivot/pivot-types';
|
|
3
|
-
export declare function useToolExecutor<TData>(options?: {
|
|
4
|
-
onPivotConfigChange?: (config: PivotConfig) => void;
|
|
5
|
-
onPivotToggle?: (active: boolean) => void;
|
|
6
|
-
}): {
|
|
7
|
-
execute: (toolCalls: ToolCall[]) => ExecutionResult[];
|
|
8
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AIProvider, AIResponse, ColumnSchema, AITableContext } from '../../../providers/ai-assistant/ai-assistant-types';
|
|
2
|
-
/**
|
|
3
|
-
* Mock AI provider for Storybook demos. Pattern-matches keywords in user input
|
|
4
|
-
* and returns hardcoded tool calls. Supports both Italian and English keywords.
|
|
5
|
-
*/
|
|
6
|
-
export declare class MockAIProvider implements AIProvider {
|
|
7
|
-
private delay;
|
|
8
|
-
constructor(delay?: number);
|
|
9
|
-
processMessage(input: string, schema: ColumnSchema[], _tools?: unknown, tableContext?: AITableContext): Promise<AIResponse>;
|
|
10
|
-
private findColumnRef;
|
|
11
|
-
private extractCondition;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AIProvider, AIQuickAction } from '../../../providers/ai-assistant/ai-assistant-types';
|
|
2
|
-
import { PivotConfig } from '../pivot/pivot-types';
|
|
3
|
-
export interface AIAssistantPanelProps {
|
|
4
|
-
aiProvider: AIProvider;
|
|
5
|
-
/** When true, tool calls require user confirmation before being executed */
|
|
6
|
-
requiresConfirmation?: boolean;
|
|
7
|
-
/** Pre-configured action buttons shown in the chat for one-click AI commands */
|
|
8
|
-
quickActions?: AIQuickAction[];
|
|
9
|
-
/** Called when the AI assistant configures or updates the pivot configuration */
|
|
10
|
-
onPivotConfigChange?: (config: PivotConfig) => void;
|
|
11
|
-
/** Called when the AI assistant toggles pivot mode on or off */
|
|
12
|
-
onPivotToggle?: (active: boolean) => void;
|
|
13
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ToolDefinition } from './ai-assistant-types';
|
|
2
|
-
/** Tool names that require full row data (tableContext) to function correctly. */
|
|
3
|
-
export declare const ROW_DATA_TOOL_NAMES: readonly ["select_rows", "edit_cells", "fill_column_from_column"];
|
|
4
|
-
export declare const toolDefinitions: ToolDefinition[];
|
|
5
|
-
export declare function getToolDefinition(name: string): ToolDefinition | undefined;
|