@restio/ui 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -7
- package/dist/core.cjs +1 -0
- package/dist/core.d.ts +961 -0
- package/dist/core.js +35 -0
- package/dist/data.cjs +1 -0
- package/dist/data.d.ts +1464 -0
- package/dist/data.js +24 -0
- package/dist/experimental.cjs +2 -0
- package/dist/experimental.d.ts +659 -0
- package/dist/experimental.js +1360 -0
- package/dist/framework.cjs +1 -0
- package/dist/framework.d.ts +760 -0
- package/dist/framework.js +34 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +3251 -151
- package/dist/index.js +98 -0
- package/dist/{restio-ui.es.js → src-Bzrq1hWW.js} +36640 -36783
- package/dist/src-kY7g6XFo.cjs +158 -0
- package/dist/ui.css +1 -1
- package/package.json +48 -26
- package/dist/assets/svg/alert.svg +0 -1
- package/dist/assets/svg/arrow-down-up.svg +0 -1
- package/dist/assets/svg/arrow-down.svg +0 -1
- package/dist/assets/svg/arrow-left.svg +0 -1
- package/dist/assets/svg/arrow-right.svg +0 -1
- package/dist/assets/svg/arrow-up.svg +0 -1
- package/dist/assets/svg/arrow_drop_down.svg +0 -1
- package/dist/assets/svg/calendar.svg +0 -1
- package/dist/assets/svg/chart-area.svg +0 -1
- package/dist/assets/svg/chart-bar-stacked.svg +0 -1
- package/dist/assets/svg/chart-bar.svg +0 -1
- package/dist/assets/svg/chart-candlestick.svg +0 -1
- package/dist/assets/svg/chart-gantt.svg +0 -1
- package/dist/assets/svg/chart-line.svg +0 -1
- package/dist/assets/svg/chart-pie.svg +0 -1
- package/dist/assets/svg/chart-sankey.svg +0 -1
- package/dist/assets/svg/check.svg +0 -1
- package/dist/assets/svg/chevron-down.svg +0 -1
- package/dist/assets/svg/chevron-right.svg +0 -1
- package/dist/assets/svg/clipboard.svg +0 -1
- package/dist/assets/svg/close.svg +0 -1
- package/dist/assets/svg/copy.svg +0 -1
- package/dist/assets/svg/cursor.svg +0 -1
- package/dist/assets/svg/cut.svg +0 -1
- package/dist/assets/svg/delete.svg +0 -1
- package/dist/assets/svg/discussion.svg +0 -1
- package/dist/assets/svg/dock-left-arrow.svg +0 -1
- package/dist/assets/svg/dock-right-arrow.svg +0 -1
- package/dist/assets/svg/document-outline.svg +0 -1
- package/dist/assets/svg/download.svg +0 -1
- package/dist/assets/svg/drag.svg +0 -1
- package/dist/assets/svg/error.svg +0 -1
- package/dist/assets/svg/expand-right.svg +0 -1
- package/dist/assets/svg/expand.svg +0 -1
- package/dist/assets/svg/eye.svg +0 -1
- package/dist/assets/svg/file-plus.svg +0 -1
- package/dist/assets/svg/filter.svg +0 -1
- package/dist/assets/svg/form.svg +0 -1
- package/dist/assets/svg/fullscreen.svg +0 -1
- package/dist/assets/svg/gear.svg +0 -1
- package/dist/assets/svg/groups.svg +0 -1
- package/dist/assets/svg/help.svg +0 -1
- package/dist/assets/svg/info.svg +0 -1
- package/dist/assets/svg/list.svg +0 -1
- package/dist/assets/svg/logo.svg +0 -9
- package/dist/assets/svg/menu.svg +0 -1
- package/dist/assets/svg/message-bubble-question-mark.svg +0 -1
- package/dist/assets/svg/open-center.svg +0 -1
- package/dist/assets/svg/open-dialog.svg +0 -29
- package/dist/assets/svg/pencil.svg +0 -1
- package/dist/assets/svg/pie-chart.svg +0 -1
- package/dist/assets/svg/plus.svg +0 -1
- package/dist/assets/svg/restio.svg +0 -5
- package/dist/assets/svg/search.svg +0 -1
- package/dist/assets/svg/send.svg +0 -1
- package/dist/assets/svg/shrink-right.svg +0 -1
- package/dist/assets/svg/sidebar.svg +0 -1
- package/dist/assets/svg/square-half.svg +0 -1
- package/dist/assets/svg/table.svg +0 -1
- package/dist/assets/svg/terminal.svg +0 -1
- package/dist/assets/svg/timer.svg +0 -1
- package/dist/assets/svg/transaction.svg +0 -1
- package/dist/assets/svg/vertical-expand.svg +0 -1
- package/dist/assets/svg/wallet.svg +0 -1
- package/dist/assets/svg/warning.svg +0 -1
- package/dist/assets/svg/zoom-minus.svg +0 -1
- package/dist/assets/svg/zoom-plus.svg +0 -1
- package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +0 -22
- package/dist/components/anchored-overlay/anchored-overlay.d.ts +0 -4
- package/dist/components/anchored-overlay/anchored-overlay.test.d.ts +0 -0
- package/dist/components/anchored-overlay/stories/anchored-overlay-example.stories.d.ts +0 -6
- package/dist/components/banner/banner-types.d.ts +0 -12
- package/dist/components/banner/banner.d.ts +0 -4
- package/dist/components/banner/banner.stories.d.ts +0 -11
- package/dist/components/button/button-types.d.ts +0 -12
- package/dist/components/button/button.d.ts +0 -3
- package/dist/components/button/stories/button-example.stories.d.ts +0 -8
- package/dist/components/button/stories/button.stories.d.ts +0 -8
- package/dist/components/button-dropdown/button-dropdown-types.d.ts +0 -19
- package/dist/components/button-dropdown/button-dropdown.d.ts +0 -7
- package/dist/components/button-dropdown/button-dropdown.test.d.ts +0 -0
- package/dist/components/button-dropdown/stories/button-dropdown.stories.d.ts +0 -10
- package/dist/components/button-group/button-group-types.d.ts +0 -15
- package/dist/components/button-group/button-group.d.ts +0 -3
- package/dist/components/button-group/button-group.stories.d.ts +0 -7
- package/dist/components/button-group/button-group.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox-types.d.ts +0 -15
- package/dist/components/checkbox/checkbox.d.ts +0 -3
- package/dist/components/checkbox/checkbox.test.d.ts +0 -0
- package/dist/components/checkbox/stories/checkbox-example.stories.d.ts +0 -7
- package/dist/components/checkbox/stories/checkbox.stories.d.ts +0 -6
- package/dist/components/checkbox-group/checkbox-group-types.d.ts +0 -27
- package/dist/components/checkbox-group/checkbox-group.d.ts +0 -7
- package/dist/components/checkbox-group/checkbox-group.test.d.ts +0 -0
- package/dist/components/checkbox-group/stories/checkbox-group-example.stories.d.ts +0 -6
- package/dist/components/checkbox-group/stories/checkbox-group.stories.d.ts +0 -10
- package/dist/components/code-block/code-block.d.ts +0 -7
- package/dist/components/file-upload/file-upload-types.d.ts +0 -36
- package/dist/components/file-upload/file-upload-utils.d.ts +0 -1
- package/dist/components/file-upload/file-upload.d.ts +0 -3
- package/dist/components/file-upload/file-upload.test.d.ts +0 -1
- package/dist/components/file-upload/stories/file-upload.stories.d.ts +0 -8
- package/dist/components/input/date/date-calendar.d.ts +0 -3
- package/dist/components/input/date/date-input-field.d.ts +0 -8
- package/dist/components/input/date/date-picker.d.ts +0 -7
- package/dist/components/input/date/date-range-input-field.d.ts +0 -8
- package/dist/components/input/date/date-range-picker.d.ts +0 -8
- package/dist/components/input/date/date-shortcuts.d.ts +0 -3
- package/dist/components/input/date/date-types.d.ts +0 -52
- package/dist/components/input/date/date-utils.d.ts +0 -34
- package/dist/components/input/date/stories/date.stories.d.ts +0 -5
- package/dist/components/input/date/use-digit-input.d.ts +0 -18
- package/dist/components/input/input-types.d.ts +0 -27
- package/dist/components/input/input.d.ts +0 -3
- package/dist/components/input/number/input-number-types.d.ts +0 -7
- package/dist/components/input/number/input-number.d.ts +0 -3
- package/dist/components/input/number/input-number.stories.d.ts +0 -6
- package/dist/components/input/text/input-text-types.d.ts +0 -6
- package/dist/components/input/text/input-text.d.ts +0 -3
- package/dist/components/input/text/stories/input-text.stories.d.ts +0 -9
- package/dist/components/kbd/kbd-types.d.ts +0 -6
- package/dist/components/kbd/kbd.d.ts +0 -4
- package/dist/components/kbd/kbd.stories.d.ts +0 -9
- package/dist/components/kbd-group/kbd-group-types.d.ts +0 -14
- package/dist/components/kbd-group/kbd-group.d.ts +0 -4
- package/dist/components/kbd-group/kbd-group.stories.d.ts +0 -10
- package/dist/components/list/list-types.d.ts +0 -37
- package/dist/components/list/list-utils.d.ts +0 -46
- package/dist/components/list/list.d.ts +0 -2
- package/dist/components/list/list.stories.d.ts +0 -12
- package/dist/components/list/list.test.d.ts +0 -0
- package/dist/components/menu/anchored-navigation-menu.d.ts +0 -18
- package/dist/components/menu/menu-assets.d.ts +0 -2
- package/dist/components/menu/menu-types.d.ts +0 -21
- package/dist/components/menu/menu.d.ts +0 -8
- package/dist/components/menu/stories/anchored-navigation-menu.stories.d.ts +0 -7
- package/dist/components/otp/otp-types.d.ts +0 -29
- package/dist/components/otp/otp-utils.d.ts +0 -14
- package/dist/components/otp/otp.d.ts +0 -3
- package/dist/components/otp/otp.stories.d.ts +0 -145
- package/dist/components/progress-bar/progress-bar-types.d.ts +0 -25
- package/dist/components/progress-bar/progress-bar.d.ts +0 -6
- package/dist/components/progress-bar/progress-bar.test.d.ts +0 -1
- package/dist/components/progress-bar/stories/progress-bar-example.stories.d.ts +0 -8
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts +0 -10
- package/dist/components/radio/radio-types.d.ts +0 -13
- package/dist/components/radio/radio.d.ts +0 -7
- package/dist/components/radio/radio.test.d.ts +0 -0
- package/dist/components/radio/stories/radio-example.stories.d.ts +0 -7
- package/dist/components/radio/stories/radio.stories.d.ts +0 -6
- package/dist/components/radio-group/radio-group-types.d.ts +0 -29
- package/dist/components/radio-group/radio-group.d.ts +0 -7
- package/dist/components/radio-group/radio-group.test.d.ts +0 -0
- package/dist/components/radio-group/stories/radio-group-example.stories.d.ts +0 -6
- package/dist/components/radio-group/stories/radio-group.stories.d.ts +0 -10
- package/dist/components/select/select-switch.d.ts +0 -26
- package/dist/components/select/select-types.d.ts +0 -35
- package/dist/components/select/select.d.ts +0 -4
- package/dist/components/select/select.stories.d.ts +0 -20
- package/dist/components/select/select.test.d.ts +0 -0
- package/dist/components/select/templates/grid-template.d.ts +0 -7
- package/dist/components/select/templates/list-template.d.ts +0 -7
- package/dist/components/select/templates/preview-dialog-template.d.ts +0 -9
- package/dist/components/select/templates/select-template-types.d.ts +0 -12
- package/dist/components/selection-grid/selection-grid-types.d.ts +0 -19
- package/dist/components/selection-grid/selection-grid.d.ts +0 -7
- package/dist/components/selection-grid/stories/selection-grid-example.stories.d.ts +0 -7
- package/dist/components/selection-grid/stories/selection-grid.stories.d.ts +0 -10
- package/dist/components/tag/tag-types.d.ts +0 -9
- package/dist/components/tag/tag.d.ts +0 -3
- package/dist/components/tag/tag.stories.d.ts +0 -12
- package/dist/components/textarea/textarea-types.d.ts +0 -54
- package/dist/components/textarea/textarea.d.ts +0 -3
- package/dist/components/textarea/textarea.stories.d.ts +0 -25
- package/dist/components/toast-group/toast-group-types.d.ts +0 -5
- package/dist/components/toast-group/toast-group.d.ts +0 -4
- package/dist/components/toast-group/toast-group.stories.d.ts +0 -6
- package/dist/components/typography/typography-types.d.ts +0 -58
- package/dist/components/typography/typography.d.ts +0 -3
- package/dist/components/typography/typography.stories.d.ts +0 -10
- package/dist/custom-components/chat/chat-types.d.ts +0 -18
- package/dist/custom-components/chat/chat.d.ts +0 -2
- package/dist/custom-components/chat/chat.stories.d.ts +0 -7
- package/dist/custom-components/layout/layout-renderers.d.ts +0 -8
- package/dist/custom-components/layout/layout-types.d.ts +0 -53
- package/dist/custom-components/layout/layout-utils.d.ts +0 -3
- package/dist/custom-components/layout/layout-utils.test.d.ts +0 -1
- package/dist/custom-components/layout/layout.d.ts +0 -7
- package/dist/custom-components/layout/layout.stories.d.ts +0 -7
- package/dist/custom-components/layout/layout.test.d.ts +0 -1
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +0 -4
- package/dist/custom-components/markdown/markdown-types.d.ts +0 -28
- package/dist/custom-components/markdown/markdown-utils.d.ts +0 -1
- package/dist/custom-components/markdown/markdown.d.ts +0 -3
- package/dist/custom-components/markdown/markdown.stories.d.ts +0 -6
- package/dist/custom-components/mindmap/index.d.ts +0 -2
- package/dist/custom-components/mindmap/mind-tree-types.d.ts +0 -93
- package/dist/custom-components/mindmap/mind-tree.d.ts +0 -3
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +0 -64
- package/dist/custom-components/mindmap/stories/mind-tree.stories.d.ts +0 -11
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.d.ts +0 -59
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +0 -17
- package/dist/custom-components/shortcut-tooltip/stories/shortcut-tooltip.stories.d.ts +0 -10
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +0 -6
- package/dist/custom-components/timeline/timeline-types.d.ts +0 -45
- package/dist/custom-components/timeline/timeline.d.ts +0 -19
- package/dist/custom-components/timeline/timeline.stories.d.ts +0 -8
- package/dist/custom-components/workflow/layout/workflow-edge.d.ts +0 -3
- package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +0 -73
- package/dist/custom-components/workflow/layout/workflow-layout.d.ts +0 -37
- package/dist/custom-components/workflow/node/workflow-node.d.ts +0 -3
- package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +0 -17
- package/dist/custom-components/workflow/panel/workflow-panel.d.ts +0 -3
- package/dist/custom-components/workflow/stories/workflow-overlay.stories.d.ts +0 -7
- package/dist/custom-components/workflow/stories/workflow-toolbar.stories.d.ts +0 -6
- package/dist/custom-components/workflow/stories/workflow.stories.d.ts +0 -7
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.d.ts +0 -23
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +0 -3
- package/dist/custom-components/workflow/utils/workflow-validation.d.ts +0 -47
- package/dist/custom-components/workflow/workflow-types.d.ts +0 -203
- package/dist/custom-components/workflow/workflow.d.ts +0 -6
- package/dist/data-components/assets/cell-types-asset.d.ts +0 -38
- package/dist/data-components/assets/data-components-asset.d.ts +0 -13
- package/dist/data-components/assets/finance-asset.d.ts +0 -15
- package/dist/data-components/calendar/calendar-types.d.ts +0 -30
- package/dist/data-components/calendar/calendar-utils.d.ts +0 -5
- package/dist/data-components/calendar/calendar.d.ts +0 -4
- package/dist/data-components/calendar/stories/calendar.stories.d.ts +0 -22
- package/dist/data-components/card/card-types.d.ts +0 -20
- package/dist/data-components/card/card.d.ts +0 -10
- package/dist/data-components/card/stories/card.stories.d.ts +0 -13
- package/dist/data-components/card-list/card-list-types.d.ts +0 -21
- package/dist/data-components/card-list/card-list.d.ts +0 -9
- package/dist/data-components/card-list/models/ecommerce.d.ts +0 -12
- package/dist/data-components/card-list/stories/card-list.stories.d.ts +0 -29
- package/dist/data-components/cell/cell-registry.d.ts +0 -28
- package/dist/data-components/cell/cell-types.d.ts +0 -39
- package/dist/data-components/cell/cell-utils.d.ts +0 -21
- package/dist/data-components/cell/cell.d.ts +0 -2
- package/dist/data-components/cell/colors-editor/colors-editor-types.d.ts +0 -15
- package/dist/data-components/cell/colors-editor/colors-editor.d.ts +0 -7
- package/dist/data-components/cell/stories/cell-all-examples.stories.d.ts +0 -13
- package/dist/data-components/cell/test/cell-utils.test.d.ts +0 -1
- package/dist/data-components/cell/test/cell.test.d.ts +0 -0
- package/dist/data-components/chart/chart-series-edit/chart-series-edit-types.d.ts +0 -22
- package/dist/data-components/chart/chart-series-edit/chart-series-edit.d.ts +0 -9
- package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts +0 -13
- package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts +0 -6
- package/dist/data-components/chart/chart-types.d.ts +0 -106
- package/dist/data-components/chart/chart-utils.d.ts +0 -27
- package/dist/data-components/chart/chart.d.ts +0 -4
- package/dist/data-components/chart/chart.stories.d.ts +0 -15
- package/dist/data-components/chart/geo/geoChart.d.ts +0 -10
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +0 -37
- package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts +0 -35
- package/dist/data-components/data-component-configurator/data-component-configurator.d.ts +0 -17
- package/dist/data-components/data-component-types.d.ts +0 -10
- package/dist/data-components/data-component-utils.d.ts +0 -27
- package/dist/data-components/data-structure/data-structure.d.ts +0 -50
- package/dist/data-components/data-structure/stories-assets.d.ts +0 -86
- package/dist/data-components/filter/filter-engine.d.ts +0 -14
- package/dist/data-components/filter/filter-types.d.ts +0 -40
- package/dist/data-components/filter/filter-utils.d.ts +0 -43
- package/dist/data-components/form/form-types.d.ts +0 -67
- package/dist/data-components/form/form.d.ts +0 -3
- package/dist/data-components/form/form.test.d.ts +0 -0
- package/dist/data-components/form/stories/form-advanced-cells.stories.d.ts +0 -15
- package/dist/data-components/form/stories/form-complex.stories.d.ts +0 -7
- package/dist/data-components/form/stories/form-dynamic.stories.d.ts +0 -20
- package/dist/data-components/form/stories/form-validation-examples.stories.d.ts +0 -7
- package/dist/data-components/form/stories/form.stories.d.ts +0 -17
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +0 -8
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +0 -11
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +0 -6
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +0 -2
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +0 -20
- package/dist/data-components/gantt/gantt-context.d.ts +0 -12
- package/dist/data-components/gantt/gantt-types.d.ts +0 -101
- package/dist/data-components/gantt/gantt-utils.d.ts +0 -60
- package/dist/data-components/gantt/gantt.d.ts +0 -3
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +0 -14
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +0 -17
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +0 -9
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +0 -2
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +0 -12
- package/dist/data-components/gantt/stories/gantt.stories.d.ts +0 -20
- package/dist/data-components/kpi/kpi-types.d.ts +0 -17
- package/dist/data-components/kpi/kpi.d.ts +0 -5
- package/dist/data-components/layout/card-layout-presets.d.ts +0 -12
- package/dist/data-components/layout/finance/finance-layouts.d.ts +0 -18
- package/dist/data-components/layout/finance/kpi-layout-presets.d.ts +0 -35
- package/dist/data-components/layout/finance/stories/finance-card-list.stories.d.ts +0 -16
- package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts +0 -9
- package/dist/data-components/switcher/prop-form/prop-form-types.d.ts +0 -16
- package/dist/data-components/switcher/prop-form/prop-form.d.ts +0 -6
- package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts +0 -58
- package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts +0 -14
- package/dist/data-components/switcher/prop-schema/prop-schema.d.ts +0 -43
- package/dist/data-components/switcher/switcher-types.d.ts +0 -59
- package/dist/data-components/switcher/switcher.d.ts +0 -12
- package/dist/data-components/switcher/switcher.stories.d.ts +0 -7
- package/dist/data-components/table-grid/aggregation/aggregation-utils.d.ts +0 -8
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +0 -8
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +0 -12
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +0 -13
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +0 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +0 -3
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +0 -5
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +0 -93
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +0 -4
- package/dist/data-components/table-grid/ai-assistant/table-grid-ai.stories.d.ts +0 -9
- package/dist/data-components/table-grid/editability/table-grid-editability.stories.d.ts +0 -7
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.d.ts +0 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +0 -8
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.d.ts +0 -5
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.d.ts +0 -5
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +0 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +0 -5
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.d.ts +0 -6
- package/dist/data-components/table-grid/external-functionalities/import/table-grid-import.stories.d.ts +0 -6
- package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +0 -4
- package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +0 -2
- package/dist/data-components/table-grid/formula/evaluator.d.ts +0 -10
- package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +0 -7
- package/dist/data-components/table-grid/formula/formula-builder.d.ts +0 -2
- package/dist/data-components/table-grid/formula/formula.test.d.ts +0 -1
- package/dist/data-components/table-grid/formula/index.d.ts +0 -11
- package/dist/data-components/table-grid/formula/parser.d.ts +0 -23
- package/dist/data-components/table-grid/formula/table-grid-formula.stories.d.ts +0 -9
- package/dist/data-components/table-grid/formula/tokenizer.d.ts +0 -15
- package/dist/data-components/table-grid/formula/types.d.ts +0 -38
- package/dist/data-components/table-grid/grouping/grouping.d.ts +0 -14
- package/dist/data-components/table-grid/grouping/table-grid-grouping.stories.d.ts +0 -7
- package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +0 -6
- package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +0 -3
- package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +0 -9
- package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +0 -5
- package/dist/data-components/table-grid/header/table-grid-header.d.ts +0 -3
- package/dist/data-components/table-grid/hooks/use-table.d.ts +0 -2
- package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +0 -20
- package/dist/data-components/table-grid/pinning/table-grid-pinning.stories.d.ts +0 -17
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +0 -16
- package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +0 -3
- package/dist/data-components/table-grid/pivot/pivot-table.d.ts +0 -7
- package/dist/data-components/table-grid/pivot/pivot-types.d.ts +0 -52
- package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +0 -13
- package/dist/data-components/table-grid/pivot/table-grid-pivot.stories.d.ts +0 -15
- package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +0 -10
- package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +0 -13
- package/dist/data-components/table-grid/row/table-grid-row.d.ts +0 -2
- package/dist/data-components/table-grid/selection/selection-types.d.ts +0 -2
- package/dist/data-components/table-grid/selection/selection-utils.d.ts +0 -48
- package/dist/data-components/table-grid/selection/table-grid-selection.stories.d.ts +0 -9
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts +0 -27
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +0 -2
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.stories.d.ts +0 -10
- package/dist/data-components/table-grid/sorting/sorting.d.ts +0 -7
- package/dist/data-components/table-grid/sorting/table-grid-sorting-groups.stories.d.ts +0 -5
- package/dist/data-components/table-grid/sorting/table-grid-sorting.stories.d.ts +0 -6
- package/dist/data-components/table-grid/stories/table-grid-columns.stories.d.ts +0 -8
- package/dist/data-components/table-grid/stories/table-grid-states.stories.d.ts +0 -8
- package/dist/data-components/table-grid/table-context/table-context-types.d.ts +0 -16
- package/dist/data-components/table-grid/table-context/table-context.d.ts +0 -2
- package/dist/data-components/table-grid/table-grid-context.d.ts +0 -3
- package/dist/data-components/table-grid/table-grid-features.stories.d.ts +0 -11
- package/dist/data-components/table-grid/table-grid-panels.d.ts +0 -21
- package/dist/data-components/table-grid/table-grid-types.d.ts +0 -246
- package/dist/data-components/table-grid/table-grid.d.ts +0 -10
- package/dist/data-components/table-grid/table-grid.stories.d.ts +0 -14
- package/dist/data-components/table-grid/table-utils.d.ts +0 -17
- package/dist/data-components/ui-layer/ui-layer-types.d.ts +0 -81
- package/dist/data-components/ui-layer/ui-layer-utils.d.ts +0 -12
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.d.ts +0 -14
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +0 -11
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +0 -3
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.stories.d.ts +0 -9
- package/dist/experimental-components/dashboard-builder/builder-canvas-hooks.d.ts +0 -46
- package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts +0 -33
- package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts +0 -23
- package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts +0 -173
- package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts +0 -37
- package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts +0 -13
- package/dist/experimental-components/dashboard-builder/dashboard-builder.stories.d.ts +0 -8
- package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts +0 -25
- package/dist/experimental-components/dashboard-builder/widget-palette.d.ts +0 -19
- package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +0 -11
- package/dist/experimental-components/filter-builder/filter-builder.d.ts +0 -11
- package/dist/experimental-components/filter-builder/filter-builder.stories.d.ts +0 -15
- package/dist/framework-components/appbar/appbar-assets.d.ts +0 -1
- package/dist/framework-components/appbar/appbar-types.d.ts +0 -18
- package/dist/framework-components/appbar/appbar.d.ts +0 -8
- package/dist/framework-components/appbar/appbar.stories.d.ts +0 -6
- package/dist/framework-components/blank-slate/blank-slate-types.d.ts +0 -31
- package/dist/framework-components/blank-slate/blank-slate.d.ts +0 -10
- package/dist/framework-components/blank-slate/blank-slate.stories.d.ts +0 -9
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.d.ts +0 -13
- package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +0 -3
- package/dist/framework-components/breadcrumbs/breadcrumbs.stories.d.ts +0 -7
- package/dist/framework-components/dashboard/dashboard-context.d.ts +0 -11
- package/dist/framework-components/dashboard/dashboard-real-world.stories.d.ts +0 -6
- package/dist/framework-components/dashboard/dashboard-types.d.ts +0 -47
- package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts +0 -0
- package/dist/framework-components/dashboard/dashboard-widget-types.d.ts +0 -85
- package/dist/framework-components/dashboard/dashboard-widget.d.ts +0 -17
- package/dist/framework-components/dashboard/dashboard.d.ts +0 -15
- package/dist/framework-components/dashboard/dashboard.stories.d.ts +0 -7
- package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts +0 -10
- package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts +0 -46
- package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts +0 -118
- package/dist/framework-components/dashboard/data-engine/data-engine.d.ts +0 -86
- package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts +0 -1
- package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts +0 -1
- package/dist/framework-components/dashboard/data-engine/field-inference.d.ts +0 -9
- package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts +0 -11
- package/dist/framework-components/dashboard/data-engine/index.d.ts +0 -7
- package/dist/framework-components/dashboard/data-engine/join-engine.d.ts +0 -16
- package/dist/framework-components/drawer/drawer-types.d.ts +0 -6
- package/dist/framework-components/drawer/drawer.d.ts +0 -4
- package/dist/framework-components/scaffold/scaffold-context.d.ts +0 -3
- package/dist/framework-components/scaffold/scaffold-types.d.ts +0 -17
- package/dist/framework-components/scaffold/scaffold.d.ts +0 -6
- package/dist/framework-components/scaffold/scaffold.stories.d.ts +0 -7
- package/dist/framework-components/scaffold/scaffold.test.d.ts +0 -0
- package/dist/framework-components/section/section-types.d.ts +0 -15
- package/dist/framework-components/section/section.d.ts +0 -8
- package/dist/framework-components/section/section.stories.d.ts +0 -6
- package/dist/framework-components/sidebar/sidebar-assets.d.ts +0 -1
- package/dist/framework-components/sidebar/sidebar-context.d.ts +0 -3
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.d.ts +0 -5
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +0 -2
- package/dist/framework-components/sidebar/sidebar-types.d.ts +0 -12
- package/dist/framework-components/sidebar/sidebar.d.ts +0 -16
- package/dist/framework-components/sidebar/sidebar.stories.d.ts +0 -6
- package/dist/framework-components/stepper/stepper-types.d.ts +0 -13
- package/dist/framework-components/stepper/stepper.d.ts +0 -8
- package/dist/framework-components/stepper/stepper.stories.d.ts +0 -7
- package/dist/hooks/useDynamicVirtualList.d.ts +0 -75
- package/dist/hooks/useEscapeClose.d.ts +0 -2
- package/dist/hooks/useFixedVirtualList.d.ts +0 -34
- package/dist/hooks/useOverlayAnimation.d.ts +0 -17
- package/dist/hooks/useShortcut.d.ts +0 -19
- package/dist/hooks/useTour/stories/useTour.stories.d.ts +0 -24
- package/dist/hooks/useTour/useTour-context-internal.d.ts +0 -6
- package/dist/hooks/useTour/useTour-context.d.ts +0 -9
- package/dist/hooks/useTour/useTour-types.d.ts +0 -191
- package/dist/hooks/useTour/useTour.d.ts +0 -2
- package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +0 -7
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts +0 -77
- package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +0 -22
- package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +0 -24
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts +0 -2
- package/dist/providers/shortcut/shortcut-context.d.ts +0 -6
- package/dist/providers/shortcut/shortcut-provider.d.ts +0 -34
- package/dist/providers/stories/theme-provider.stories.d.ts +0 -6
- package/dist/providers/theme/index.d.ts +0 -3
- package/dist/providers/theme/theme-provider-types.d.ts +0 -5
- package/dist/providers/theme/themeProvider.d.ts +0 -9
- package/dist/restio-ui.cjs.js +0 -201
- package/dist/types/global-types.d.ts +0 -51
- package/dist/types/storybook-types.d.ts +0 -1
- package/dist/utility-components/avatar/avatar-types.d.ts +0 -15
- package/dist/utility-components/avatar/avatar.d.ts +0 -4
- package/dist/utility-components/avatar/avatar.stories.d.ts +0 -8
- package/dist/utility-components/chip/chip-types.d.ts +0 -16
- package/dist/utility-components/chip/chip.d.ts +0 -3
- package/dist/utility-components/chip/chip.stories.d.ts +0 -10
- package/dist/utility-components/helper-text/helper-text-types.d.ts +0 -19
- package/dist/utility-components/helper-text/helper-text.d.ts +0 -2
- package/dist/utility-components/helper-text/helper-text.stories.d.ts +0 -10
- package/dist/utility-components/helper-text/helper-text.test.d.ts +0 -1
- package/dist/utility-components/icon/icon-assets.d.ts +0 -1
- package/dist/utility-components/icon/icon-types.d.ts +0 -23
- package/dist/utility-components/icon/icon.d.ts +0 -3
- package/dist/utility-components/icon/stories/icon.stories.d.ts +0 -10
- package/dist/utility-components/label/label-types.d.ts +0 -18
- package/dist/utility-components/label/label.d.ts +0 -2
- package/dist/utility-components/label/label.test.d.ts +0 -1
- package/dist/utility-components/overlay-panel/overlay-panel-footer/overlay-panel-footer-types.d.ts +0 -6
- package/dist/utility-components/overlay-panel/overlay-panel-footer/overlay-panel-footer.d.ts +0 -4
- package/dist/utility-components/overlay-panel/overlay-panel-header/overlay-panel-header-types.d.ts +0 -12
- package/dist/utility-components/overlay-panel/overlay-panel-header/overlay-panel-header.d.ts +0 -4
- package/dist/utility-components/overlay-panel/overlay-panel-types.d.ts +0 -65
- package/dist/utility-components/overlay-panel/overlay-panel.d.ts +0 -3
- package/dist/utility-components/overlay-panel/overlay-panel.stories.d.ts +0 -13
- package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +0 -7
- package/dist/utility-components/skeleton/skeleton-types.d.ts +0 -6
- package/dist/utility-components/skeleton/skeleton.d.ts +0 -3
- package/dist/utility-components/skeleton/stories/skeleton.stories.d.ts +0 -9
- package/dist/utility-components/stack/stack-types.d.ts +0 -10
- package/dist/utility-components/stack/stack.d.ts +0 -7
- package/dist/utility-components/stack/stack.stories.d.ts +0 -4
- package/dist/utility-components/toast/toast-types.d.ts +0 -8
- package/dist/utility-components/toast/toast.d.ts +0 -4
- package/dist/utility-components/toast/toast.stories.d.ts +0 -8
- package/dist/utils/general.d.ts +0 -8
- package/dist/utils/shortcut-utils.d.ts +0 -43
- package/dist/vitest.setup.d.ts +0 -0
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Option, CellType } from '../../types/global-types';
|
|
2
|
-
import { DataStructureUIConfig } from '../ui-layer/ui-layer-types';
|
|
3
|
-
export interface DataStructureComponent<TData> {
|
|
4
|
-
/** Array of data to display in the chart */
|
|
5
|
-
data: TData[];
|
|
6
|
-
/** Column definitions - reused from TableGrid */
|
|
7
|
-
columns?: DataStructureColumn<TData>[];
|
|
8
|
-
/** Function to get subrows for a given row */
|
|
9
|
-
getSubRows?: (originalRow: TData, index: number) => TData[] | undefined;
|
|
10
|
-
/** UI configuration for conditional styling and presentation */
|
|
11
|
-
uiConfig?: DataStructureUIConfig<TData>;
|
|
12
|
-
}
|
|
13
|
-
export interface DataStructureColumn<TData, TValue = TData[keyof TData]> {
|
|
14
|
-
/** Unique identifier for the column */
|
|
15
|
-
id?: string;
|
|
16
|
-
/** Display header text */
|
|
17
|
-
header?: string;
|
|
18
|
-
/** Simple accessor key for primitive values */
|
|
19
|
-
accessorKey?: keyof TData;
|
|
20
|
-
/** Optional: options for select inputs */
|
|
21
|
-
options?: Option[];
|
|
22
|
-
/** Formula string using column IDs as references */
|
|
23
|
-
formula?: string;
|
|
24
|
-
/** Enable editing for this column */
|
|
25
|
-
enableEditing?: boolean;
|
|
26
|
-
/** Optional: mark field as required */
|
|
27
|
-
required?: boolean;
|
|
28
|
-
/** Disable editing for this column */
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
/** Function accessor for complex values */
|
|
31
|
-
accessorFn?: (row: TData) => TValue;
|
|
32
|
-
/** Visual representation type for cells with options or specific data types */
|
|
33
|
-
cellType?: CellType;
|
|
34
|
-
/** Helper text shown below the field (e.g. "Opzionale", "Usa +/− per il segno"). */
|
|
35
|
-
helperText?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Generic column-level configuration for the target component.
|
|
38
|
-
* Mirrors the uiConfig pattern: carries the props of the component
|
|
39
|
-
* referenced by `cellType` (e.g. ChartProps for CHART, TableGridProps for TABLE_GRID).
|
|
40
|
-
* `data` and `columns` are excluded — they come from the cell value and schema.
|
|
41
|
-
*/
|
|
42
|
-
columnConfig?: Record<string, unknown>;
|
|
43
|
-
/**
|
|
44
|
-
* Called when an interactive cell (e.g. BUTTON, IMAGE click) fires an action.
|
|
45
|
-
* The cell handler decides when to invoke it; the first argument is the
|
|
46
|
-
* action id (for BUTTON = `option.value`). Works in any data-component
|
|
47
|
-
* that renders Cell in display mode (CardList, TableGrid, …).
|
|
48
|
-
*/
|
|
49
|
-
onCellClick?: (actionId: string, rowData: TData, column: DataStructureColumn<TData, TValue>) => void;
|
|
50
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { ColumnDef } from '../..';
|
|
2
|
-
export interface User {
|
|
3
|
-
id: string;
|
|
4
|
-
firstName: string;
|
|
5
|
-
lastName: string;
|
|
6
|
-
age: number;
|
|
7
|
-
visits: number;
|
|
8
|
-
progress: number;
|
|
9
|
-
status: "Married" | "Single" | "Complicated";
|
|
10
|
-
email?: string;
|
|
11
|
-
bio?: string;
|
|
12
|
-
address: {
|
|
13
|
-
city: string;
|
|
14
|
-
country: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare const userData: User[];
|
|
18
|
-
export declare const basicColumns: ColumnDef<User>[];
|
|
19
|
-
export declare const generateUserData: (count: number) => User[];
|
|
20
|
-
export interface Employee {
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
department: string;
|
|
24
|
-
role: string;
|
|
25
|
-
salary: number;
|
|
26
|
-
location: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const employeeData: Employee[];
|
|
29
|
-
export interface ProjectManager {
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
total_projects: number;
|
|
33
|
-
closed_projects: number;
|
|
34
|
-
revenue: number;
|
|
35
|
-
cost: number;
|
|
36
|
-
customer_count: number;
|
|
37
|
-
}
|
|
38
|
-
export declare const projectManagerData: ProjectManager[];
|
|
39
|
-
export interface Department {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
budget: number;
|
|
43
|
-
manager: string;
|
|
44
|
-
employees?: DepartmentEmployee[];
|
|
45
|
-
}
|
|
46
|
-
export interface DepartmentEmployee {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
role: string;
|
|
50
|
-
salary: number;
|
|
51
|
-
startDate: string;
|
|
52
|
-
projects?: Project[];
|
|
53
|
-
}
|
|
54
|
-
export interface Project {
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
status: "Active" | "Completed" | "Pending";
|
|
58
|
-
deadline: string;
|
|
59
|
-
}
|
|
60
|
-
export type HierarchicalRow = Department | DepartmentEmployee | Project;
|
|
61
|
-
export declare const hierarchicalData: Department[];
|
|
62
|
-
export interface CalendarEvent {
|
|
63
|
-
id: string;
|
|
64
|
-
title: string;
|
|
65
|
-
date: Date;
|
|
66
|
-
}
|
|
67
|
-
export declare const calendarEventData: CalendarEvent[];
|
|
68
|
-
/** 2-level cash flow: source → target → amount */
|
|
69
|
-
export interface CashFlow {
|
|
70
|
-
source: string;
|
|
71
|
-
target: string;
|
|
72
|
-
amount: number;
|
|
73
|
-
}
|
|
74
|
-
export declare const cashFlowData: CashFlow[];
|
|
75
|
-
/**
|
|
76
|
-
* 3-level user journey: channel → device → outcome
|
|
77
|
-
* Some rows skip the device stage (null) to create a direct
|
|
78
|
-
* channel → outcome link.
|
|
79
|
-
*/
|
|
80
|
-
export interface UserJourney {
|
|
81
|
-
channel: string;
|
|
82
|
-
device: string | null;
|
|
83
|
-
outcome: string;
|
|
84
|
-
count: number;
|
|
85
|
-
}
|
|
86
|
-
export declare const userJourneyData: UserJourney[];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
2
|
-
import { FilterGroup } from './filter-types';
|
|
3
|
-
/**
|
|
4
|
-
* Filters `data` rows using the provided `FilterGroup` AST.
|
|
5
|
-
*
|
|
6
|
-
* - Returns the original `data` array reference unchanged when `filter` is
|
|
7
|
-
* `null` or contains no active conditions (avoids unnecessary re-renders).
|
|
8
|
-
* - Works with any `DataStructureComponent`-compatible column definition,
|
|
9
|
-
* resolving values via `accessorFn` or `accessorKey`.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* const visible = applyFilter(data, filterGroup, columns);
|
|
13
|
-
*/
|
|
14
|
-
export declare function applyFilter<TData>(data: TData[], filter: FilterGroup | null, columns: DataStructureColumn<TData>[]): TData[];
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Option } from '../../types/global-types';
|
|
2
|
-
export type FilterColumnType = "string" | "number" | "date" | "boolean";
|
|
3
|
-
export type StringOperator = "equals" | "not_equals" | "contains" | "starts_with" | "ends_with" | "in" | "not_in" | "is_null" | "is_not_null";
|
|
4
|
-
export type NumberOperator = "equals" | "not_equals" | "greater" | "greater_equals" | "less" | "less_equals" | "in" | "not_in" | "is_null" | "is_not_null";
|
|
5
|
-
export type DateOperator = "equals" | "not_equals" | "after" | "after_or_on" | "before" | "before_or_on" | "is_null" | "is_not_null";
|
|
6
|
-
export type BooleanOperator = "is_true" | "is_false" | "is_null" | "is_not_null";
|
|
7
|
-
export type FilterOperator = StringOperator | NumberOperator | DateOperator | BooleanOperator;
|
|
8
|
-
export type FilterValue = string | string[] | number | number[] | Date | boolean | null;
|
|
9
|
-
export interface FilterField {
|
|
10
|
-
/** Matches ColumnDef id or accessorKey (stringified) */
|
|
11
|
-
id: string;
|
|
12
|
-
/** Human-readable label (from ColumnDef.header) */
|
|
13
|
-
label: string;
|
|
14
|
-
/** Column data type used to pick operators and value input */
|
|
15
|
-
type: FilterColumnType;
|
|
16
|
-
/** Available values for `in` / `not_in` operators (from CellType.SELECT / MULTI_SELECT columns) */
|
|
17
|
-
availableOptions?: Option[];
|
|
18
|
-
}
|
|
19
|
-
export interface FilterCondition {
|
|
20
|
-
type: "condition";
|
|
21
|
-
field: FilterField;
|
|
22
|
-
operator: FilterOperator;
|
|
23
|
-
value: FilterValue;
|
|
24
|
-
}
|
|
25
|
-
export interface FilterGroup {
|
|
26
|
-
type: "group";
|
|
27
|
-
logic: "and" | "or";
|
|
28
|
-
filters: FilterNode[];
|
|
29
|
-
}
|
|
30
|
-
/** Recursive union — use `node.type` to discriminate */
|
|
31
|
-
export type FilterNode = FilterCondition | FilterGroup;
|
|
32
|
-
export interface OperatorOption {
|
|
33
|
-
value: FilterOperator;
|
|
34
|
-
label: string;
|
|
35
|
-
}
|
|
36
|
-
export declare const STRING_OPERATORS: OperatorOption[];
|
|
37
|
-
export declare const NUMBER_OPERATORS: OperatorOption[];
|
|
38
|
-
export declare const DATE_OPERATORS: OperatorOption[];
|
|
39
|
-
export declare const BOOLEAN_OPERATORS: OperatorOption[];
|
|
40
|
-
export declare const OPERATORS_BY_TYPE: Record<FilterColumnType, OperatorOption[]>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
2
|
-
import { FilterColumnType, FilterCondition, FilterField, FilterGroup, FilterNode, OperatorOption } from './filter-types';
|
|
3
|
-
/**
|
|
4
|
-
* Derives `FilterField[]` from column definitions.
|
|
5
|
-
*
|
|
6
|
-
* Columns without a resolvable ID or header are skipped.
|
|
7
|
-
* SELECT / BUTTON_GROUP columns populate `availableOptions` from `col.options`.
|
|
8
|
-
*/
|
|
9
|
-
export declare function fieldOptionsFromColumns<TData>(columns: DataStructureColumn<TData>[]): FilterField[];
|
|
10
|
-
/** Returns the available operator options for a given column type. */
|
|
11
|
-
export declare function getOperatorsForType(type: FilterColumnType): OperatorOption[];
|
|
12
|
-
/** Returns the default (first) operator for a given column type. */
|
|
13
|
-
export declare function getDefaultOperator(type: FilterColumnType): OperatorOption;
|
|
14
|
-
/** Creates an empty root `FilterGroup` with AND logic and no conditions. */
|
|
15
|
-
export declare function emptyFilterGroup(): FilterGroup;
|
|
16
|
-
/** Creates a blank `FilterCondition` for the given field. */
|
|
17
|
-
export declare function emptyCondition(field: FilterField): FilterCondition;
|
|
18
|
-
/** Returns `true` when the filter tree contains at least one non-empty condition. */
|
|
19
|
-
export declare function isFilterActive(filter: FilterGroup | null): boolean;
|
|
20
|
-
/** Replaces the node at `path` indices within a `FilterGroup` tree. */
|
|
21
|
-
export declare function updateNodeAtPath(root: FilterGroup, path: number[], updater: (node: FilterNode) => FilterNode): FilterGroup;
|
|
22
|
-
/** Removes the node at `path` from a `FilterGroup` tree. */
|
|
23
|
-
export declare function removeNodeAtPath(root: FilterGroup, path: number[]): FilterGroup;
|
|
24
|
-
/** Appends a node at the end of the group identified by `path`. */
|
|
25
|
-
export declare function addNodeAtPath(root: FilterGroup, path: number[], node: FilterNode): FilterGroup;
|
|
26
|
-
/**
|
|
27
|
-
* Strips conditions whose `field.id` is not present in `columns`.
|
|
28
|
-
* Groups with no surviving children are pruned.
|
|
29
|
-
*/
|
|
30
|
-
export declare function stripByFields<TData>(filter: FilterGroup | null, columns: DataStructureColumn<TData>[]): FilterGroup | null;
|
|
31
|
-
/**
|
|
32
|
-
* Merges a global filter tree with a per-section filter tree.
|
|
33
|
-
*/
|
|
34
|
-
export declare function mergeFilters<TData>(global: FilterGroup | null, section: FilterGroup | null, columns: DataStructureColumn<TData>[]): FilterGroup | null;
|
|
35
|
-
/**
|
|
36
|
-
* Counts top-level filter nodes inside a `FilterGroup`.
|
|
37
|
-
* Empty groups do not count.
|
|
38
|
-
*/
|
|
39
|
-
export declare function countTopLevelFilters(filter: FilterGroup | null): number;
|
|
40
|
-
/**
|
|
41
|
-
* Counts active top-level filters across a map of per-data-source filter groups.
|
|
42
|
-
*/
|
|
43
|
-
export declare function countTopLevelFiltersMap(filters: Record<string, FilterGroup | null> | null): number;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { DataStructureComponent, DataStructureColumn } from '../data-structure/data-structure';
|
|
2
|
-
import { ResponsiveLayout } from '../../custom-components/layout/layout-types';
|
|
3
|
-
import { ButtonProps } from '../../components/button/button-types';
|
|
4
|
-
/**
|
|
5
|
-
* Delta operation for a single column when the form state changes.
|
|
6
|
-
* The server returns only the columns that need to be added, updated, or removed.
|
|
7
|
-
*/
|
|
8
|
-
export interface FormColumnDelta<TData> {
|
|
9
|
-
/** What to do with this column */
|
|
10
|
-
action: "add" | "update" | "remove";
|
|
11
|
-
/** The column definition */
|
|
12
|
-
column: FormColumn<TData>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Server response to a field change.
|
|
16
|
-
* Only the changed pieces are returned — the form merges them with existing state.
|
|
17
|
-
*
|
|
18
|
-
* - `data`: partial data to merge (e.g. reset dependent fields to null)
|
|
19
|
-
* - `columns`: delta operations on columns (add new dependent fields, update options, remove fields)
|
|
20
|
-
* - `layout`: optional new layout. If omitted, the form recalculates from current columns.
|
|
21
|
-
*/
|
|
22
|
-
export interface FormChangeResponse<TData> {
|
|
23
|
-
/** Partial data delta — merged with current formData */
|
|
24
|
-
data?: Partial<TData>;
|
|
25
|
-
/** Column delta operations — applied to current columns */
|
|
26
|
-
columns?: FormColumnDelta<TData>[];
|
|
27
|
-
/** Optional new layout. If omitted, layout is recalculated from updated columns. */
|
|
28
|
-
layout?: ResponsiveLayout;
|
|
29
|
-
}
|
|
30
|
-
export interface FormSpecificProps<TData> {
|
|
31
|
-
/** Override columns with form-specific options */
|
|
32
|
-
columns?: FormColumn<TData>[];
|
|
33
|
-
/** label alignment */
|
|
34
|
-
labelAlign?: "left" | "top";
|
|
35
|
-
/** Optional layout configuration */
|
|
36
|
-
layout?: ResponsiveLayout;
|
|
37
|
-
/** Callback when form is submitted */
|
|
38
|
-
onSubmit?: (data: TData) => void;
|
|
39
|
-
/** Callback when cancel is clicked */
|
|
40
|
-
onCancel?: () => void;
|
|
41
|
-
/** Custom action buttons rendered in the form footer.*/
|
|
42
|
-
actions?: ButtonProps[];
|
|
43
|
-
/**
|
|
44
|
-
* Server-driven callback invoked on every field change.
|
|
45
|
-
*
|
|
46
|
-
* The server receives the current form state and the changed field,
|
|
47
|
-
* and returns a **partial delta** — only the pieces that changed.
|
|
48
|
-
* The form merges the delta into its state and re-renders only
|
|
49
|
-
* the affected fields.
|
|
50
|
-
*
|
|
51
|
-
* Fields not yet resolved (loading) show a skeleton placeholder.
|
|
52
|
-
*
|
|
53
|
-
* @param formData - Current complete form data
|
|
54
|
-
* @param changedField - The accessorKey of the field that changed
|
|
55
|
-
* @param newValue - The new value of the changed field
|
|
56
|
-
* @returns A partial delta with data, column operations, and optional layout
|
|
57
|
-
*/
|
|
58
|
-
onFormChange?: (formData: TData, changedField: keyof TData, newValue: TData[keyof TData]) => Promise<FormChangeResponse<TData>>;
|
|
59
|
-
}
|
|
60
|
-
export type FormProps<TData> = DataStructureComponent<TData> & FormSpecificProps<TData>;
|
|
61
|
-
export interface FormColumn<TData> extends DataStructureColumn<TData> {
|
|
62
|
-
/** Optional: custom message when required validation fails */
|
|
63
|
-
requiredMessage?: string;
|
|
64
|
-
/** Optional: custom validation function */
|
|
65
|
-
validate?: (value: TData[keyof TData], rowData: TData) => string | undefined;
|
|
66
|
-
}
|
|
67
|
-
export type FormErrors<TData> = Partial<Record<keyof TData, string>>;
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Form } from '../form';
|
|
3
|
-
declare const meta: Meta<typeof Form>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Form>;
|
|
6
|
-
/**
|
|
7
|
-
* Form with TABLE_GRID and CHART cells, fully populated with data.
|
|
8
|
-
* The team table is editable inline; the chart visualizes monthly sales.
|
|
9
|
-
*/
|
|
10
|
-
export declare const WithData: Story;
|
|
11
|
-
/**
|
|
12
|
-
* Same form starting from empty data.
|
|
13
|
-
* TABLE_GRID shows an empty table ready for input; CHART renders an empty chart.
|
|
14
|
-
*/
|
|
15
|
-
export declare const Empty: Story;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Form } from '../form';
|
|
3
|
-
declare const meta: Meta<typeof Form>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Form>;
|
|
6
|
-
export declare const ComplexForm: Story;
|
|
7
|
-
export declare const ComplexFormWithValidation: Story;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Form } from '../form';
|
|
3
|
-
declare const meta: Meta<typeof Form>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Form>;
|
|
6
|
-
/**
|
|
7
|
-
* Dynamic cascading form: Regione → Provincia → Comune.
|
|
8
|
-
*
|
|
9
|
-
* - Start with Nome, Email, Regione (3 fields)
|
|
10
|
-
* - Select "Lombardia" → Provincia appears (skeleton → Select with Lombardia options)
|
|
11
|
-
* - Select "Milano" → Comune appears (skeleton → Select with Milano options)
|
|
12
|
-
* - Clear Regione → Provincia and Comune are removed from the DOM
|
|
13
|
-
* - Change Regione to "Lazio" → Provincia options update, Comune removed
|
|
14
|
-
*/
|
|
15
|
-
export declare const CascadingRegioneProvinciaComune: Story;
|
|
16
|
-
/**
|
|
17
|
-
* Same cascading form but without layout — fields stack vertically.
|
|
18
|
-
* Useful for testing the column delta logic in isolation.
|
|
19
|
-
*/
|
|
20
|
-
export declare const CascadingNoLayout: Story;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Form } from '../form';
|
|
3
|
-
declare const meta: Meta<typeof Form>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Form>;
|
|
6
|
-
export declare const UserRegistrationForm: Story;
|
|
7
|
-
export declare const ContactForm: Story;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Form } from '../form';
|
|
3
|
-
declare const meta: Meta<typeof Form>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Form>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Simple: Story;
|
|
8
|
-
export declare const WithLayout: Story;
|
|
9
|
-
export declare const WithNamedLayout: Story;
|
|
10
|
-
export declare const WithValidation: Story;
|
|
11
|
-
export declare const WithOptions: Story;
|
|
12
|
-
export declare const LabelLeftLayout: Story;
|
|
13
|
-
/**
|
|
14
|
-
* Shows every CellType rendered in a Form — one column per cell type.
|
|
15
|
-
* Uses the shared asset so the same data can be reused across macro-components.
|
|
16
|
-
*/
|
|
17
|
-
export declare const AllCellTypes: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ToolCall, ExecutionResult } from '../../../providers/ai-assistant/ai-assistant-types';
|
|
2
|
-
/**
|
|
3
|
-
* Returns an `execute` function that runs Gantt AI tool calls
|
|
4
|
-
* against the GanttContext and TableProvider state.
|
|
5
|
-
*/
|
|
6
|
-
export declare function useGanttExecutor<TData>(): {
|
|
7
|
-
execute: (toolCalls: ToolCall[]) => ExecutionResult[];
|
|
8
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AIProvider, AIQuickAction } from '../../../providers/ai-assistant/ai-assistant-types';
|
|
2
|
-
export interface GanttAIPanelProps {
|
|
3
|
-
readonly aiProvider: AIProvider;
|
|
4
|
-
readonly requiresConfirmation?: boolean;
|
|
5
|
-
readonly quickActions?: AIQuickAction[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* AI chat panel for the Gantt component. Exposes tools to change the timeline
|
|
9
|
-
* view, navigate to a date, and sort the left data-grid.
|
|
10
|
-
*/
|
|
11
|
-
export declare function GanttAIPanel<TData>({ aiProvider, requiresConfirmation, quickActions }: GanttAIPanelProps): import("react").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DataStructureColumn } from '../../data-structure/data-structure';
|
|
2
|
-
import { ColumnSchema } from '../../../providers/ai-assistant/ai-assistant-types';
|
|
3
|
-
/**
|
|
4
|
-
* Builds the AI column schema from the Gantt's left-grid columns and data.
|
|
5
|
-
*/
|
|
6
|
-
export declare function buildGanttSchema<TData>(columns: DataStructureColumn<TData>[], data: TData[]): ColumnSchema[];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DataStructureColumn } from '../../data-structure/data-structure';
|
|
2
|
-
import { TableRow } from '../../table-grid/table-grid-types';
|
|
3
|
-
import { GanttView } from '../gantt-types';
|
|
4
|
-
export interface DependencyArrowsProps<TData> {
|
|
5
|
-
readonly rows: TableRow<TData>[];
|
|
6
|
-
readonly rowByGanttId: Map<string, {
|
|
7
|
-
row: TableRow<TData>;
|
|
8
|
-
index: number;
|
|
9
|
-
}>;
|
|
10
|
-
readonly allColumns: DataStructureColumn<TData>[];
|
|
11
|
-
readonly startColumnId: string | keyof TData;
|
|
12
|
-
readonly endColumnId: string | keyof TData;
|
|
13
|
-
readonly dependencyColumnId?: string | keyof TData;
|
|
14
|
-
readonly idColumnId?: string | keyof TData;
|
|
15
|
-
readonly timelineOrigin: Date;
|
|
16
|
-
readonly view: GanttView;
|
|
17
|
-
readonly totalWidth: number;
|
|
18
|
-
readonly totalHeight: number;
|
|
19
|
-
}
|
|
20
|
-
export declare function DependencyArrows<TData>({ rows, rowByGanttId, allColumns, startColumnId, endColumnId, dependencyColumnId, timelineOrigin, view, totalWidth, totalHeight, }: DependencyArrowsProps<TData>): import("react").JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GanttView } from './gantt-types';
|
|
2
|
-
export interface GanttContextValue {
|
|
3
|
-
view: GanttView;
|
|
4
|
-
setView: (view: GanttView) => void;
|
|
5
|
-
currentDate: Date;
|
|
6
|
-
setCurrentDate: (date: Date) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const GanttContext_: import('react').Context<GanttContextValue | null>;
|
|
9
|
-
/**
|
|
10
|
-
* Consumes the GanttContext. Must be used inside a GanttContextProvider.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useGanttContext(): GanttContextValue;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { DataStructureColumn, DataStructureComponent } from '../data-structure/data-structure';
|
|
2
|
-
import { AIProvider, AIQuickAction } from '../../providers/ai-assistant/ai-assistant-types';
|
|
3
|
-
export type GanttView = "year" | "month" | "week" | "day";
|
|
4
|
-
/**
|
|
5
|
-
* Relation types:
|
|
6
|
-
* - FS (Finish-to-Start): arrow from end of predecessor to start of successor
|
|
7
|
-
* - SS (Start-to-Start): arrow from start of predecessor to start of successor
|
|
8
|
-
* - FF (Finish-to-Finish): arrow from end of predecessor to end of successor
|
|
9
|
-
* - SF (Start-to-Finish): arrow from start of predecessor to end of successor
|
|
10
|
-
*/
|
|
11
|
-
export type GanttRelationType = "FS" | "SS" | "FF" | "SF";
|
|
12
|
-
/**
|
|
13
|
-
* A single dependency descriptor.
|
|
14
|
-
* The `dependencyColumnId` field on each row can resolve to:
|
|
15
|
-
* - `string` — single dependency ID (defaults to "FS")
|
|
16
|
-
* - `string[]` — multiple dependency IDs (all default to "FS")
|
|
17
|
-
* - `GanttDependency` — single dependency with explicit type
|
|
18
|
-
* - `GanttDependency[]` — multiple dependencies with explicit types
|
|
19
|
-
*/
|
|
20
|
-
export interface GanttDependency {
|
|
21
|
-
id: string;
|
|
22
|
-
type?: GanttRelationType;
|
|
23
|
-
}
|
|
24
|
-
export interface GanttSpecificProps<TData> {
|
|
25
|
-
/** Column id or accessorKey for the start date (must resolve to Date, ISO string, or timestamp) */
|
|
26
|
-
startColumnId: string | keyof TData;
|
|
27
|
-
/** Column id or accessorKey for the end date (must resolve to Date, ISO string, or timestamp) */
|
|
28
|
-
endColumnId: string | keyof TData;
|
|
29
|
-
/** Column id or accessorKey for the event label */
|
|
30
|
-
eventColumnId: string | keyof TData;
|
|
31
|
-
/** Column id or accessorKey that uniquely identifies each row */
|
|
32
|
-
idColumnId?: string | keyof TData;
|
|
33
|
-
/**
|
|
34
|
-
* Column id or accessorKey for the dependency field.
|
|
35
|
-
* Resolves to string | string[] | GanttDependency | GanttDependency[]
|
|
36
|
-
*/
|
|
37
|
-
dependencyColumnId?: string | keyof TData;
|
|
38
|
-
/**
|
|
39
|
-
* IDs of columns to display in the left data-grid panel.
|
|
40
|
-
* If not provided, all columns (excluding dependencyColumnId) are shown.
|
|
41
|
-
*/
|
|
42
|
-
gridColumnIds?: string[];
|
|
43
|
-
/** Time granularity for the timeline header */
|
|
44
|
-
view?: GanttView;
|
|
45
|
-
/** Reference date used to determine the visible range. Defaults to `new Date()` */
|
|
46
|
-
initialDate?: Date;
|
|
47
|
-
/** Optional function to override the background color of an event bar */
|
|
48
|
-
eventColorFn?: (row: TData) => string | undefined;
|
|
49
|
-
/** Enable sorting on the left grid panel columns */
|
|
50
|
-
enableSorting?: boolean;
|
|
51
|
-
/** Enable the AI assistant sidebar panel */
|
|
52
|
-
enableAIAssistant?: boolean;
|
|
53
|
-
/** AI provider instance used by the AI assistant panel */
|
|
54
|
-
aiProvider?: AIProvider;
|
|
55
|
-
/** Pre-configured quick-action buttons shown in the AI chat */
|
|
56
|
-
aiQuickActions?: AIQuickAction[];
|
|
57
|
-
/** When true, AI tool calls require explicit user confirmation before being applied */
|
|
58
|
-
requiresConfirmation?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Called when the user manually drags or resizes an event bar.
|
|
61
|
-
* Receives the original row data and the new start/end Dates.
|
|
62
|
-
*/
|
|
63
|
-
onEventChange?: (row: TData, newStart: Date, newEnd: Date) => void;
|
|
64
|
-
}
|
|
65
|
-
export type GanttProps<TData> = DataStructureComponent<TData> & GanttSpecificProps<TData>;
|
|
66
|
-
export interface GanttLayoutProps<TData> {
|
|
67
|
-
startColumnId: string | keyof TData;
|
|
68
|
-
endColumnId: string | keyof TData;
|
|
69
|
-
eventColumnId: string | keyof TData;
|
|
70
|
-
idColumnId?: string | keyof TData;
|
|
71
|
-
dependencyColumnId?: string | keyof TData;
|
|
72
|
-
view: GanttView;
|
|
73
|
-
initialDate?: Date;
|
|
74
|
-
eventColorFn?: (row: TData) => string | undefined;
|
|
75
|
-
/** Full column list (includes non-grid columns) for date/label extraction */
|
|
76
|
-
allColumns: DataStructureColumn<TData>[];
|
|
77
|
-
/** Tree accessor — when provided, parent bars are rolled up from all descendants */
|
|
78
|
-
getSubRows?: (row: TData, index: number) => TData[] | undefined;
|
|
79
|
-
/** Called when the user manually drags or resizes an event bar */
|
|
80
|
-
onEventChange?: (row: TData, newStart: Date, newEnd: Date) => void;
|
|
81
|
-
}
|
|
82
|
-
export type GanttDragMode = "move" | "resize-start" | "resize-end";
|
|
83
|
-
export interface GanttDragState<TData> {
|
|
84
|
-
row: {
|
|
85
|
-
id: string;
|
|
86
|
-
data: TData;
|
|
87
|
-
index: number;
|
|
88
|
-
};
|
|
89
|
-
mode: GanttDragMode;
|
|
90
|
-
startX: number;
|
|
91
|
-
origStart: Date;
|
|
92
|
-
origEnd: Date;
|
|
93
|
-
view: GanttView;
|
|
94
|
-
}
|
|
95
|
-
export declare const ROW_HEIGHT = 40;
|
|
96
|
-
export declare const GRID_PANEL_WIDTH = "40vw";
|
|
97
|
-
export declare const LOAD_THRESHOLD = 8;
|
|
98
|
-
export declare const LOAD_BATCH = 20;
|
|
99
|
-
export declare const ARROW_GAP = 10;
|
|
100
|
-
export declare const GRID_HEIGHT = 400;
|
|
101
|
-
export declare const GRID_TABLE_HEIGHT: number;
|
|
@@ -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
|
-
};
|