@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
|
@@ -0,0 +1,1360 @@
|
|
|
1
|
+
import { A as Ie, B as fe, Bt as Ee, D as Pe, E as xe, Et as ge, Ft as ue, Ht as Z, I as Fe, It as Oe, Jt as Be, Lt as Te, N as Ae, O as pe, Pt as $e, Rt as _e, T as Le, Wt as te, Y as Ge, Yt as He, f as Ve, jt as me, mt as ke, nt as Ye, pt as qe, q as Ke, qt as ve, rt as Ne, u as Xe, w as Je, wt as Qe, z as Ze } from "./src-Bzrq1hWW.js";
|
|
2
|
+
import { useCallback as y, useEffect as se, useMemo as X, useRef as ie, useState as D } from "react";
|
|
3
|
+
import { createPortal as Ue } from "react-dom";
|
|
4
|
+
var er = { "rst-pip-container": "_rst-pip-container_63eby_1" }, e = Be(), kr = ({ pipWindow: r, className: a, children: i, ...s }) => r ? Ue(/* @__PURE__ */ (0, e.jsx)("div", {
|
|
5
|
+
className: [er["rst-pip-container"], a].filter(Boolean).join(" "),
|
|
6
|
+
...s,
|
|
7
|
+
children: i
|
|
8
|
+
}), r.document.body) : null;
|
|
9
|
+
function Se() {
|
|
10
|
+
return globalThis.documentPictureInPicture;
|
|
11
|
+
}
|
|
12
|
+
function rr() {
|
|
13
|
+
return Se() !== void 0;
|
|
14
|
+
}
|
|
15
|
+
function ar(r, a = document) {
|
|
16
|
+
for (const i of Array.from(a.querySelectorAll('style, link[rel="stylesheet"]'))) r.head.appendChild(i.cloneNode(!0));
|
|
17
|
+
for (const { name: i, value: s } of Array.from(a.documentElement.attributes)) r.documentElement.setAttribute(i, s);
|
|
18
|
+
for (const { name: i, value: s } of Array.from(a.body.attributes)) r.body.setAttribute(i, s);
|
|
19
|
+
}
|
|
20
|
+
function tr(r) {
|
|
21
|
+
const a = r.createElement("style");
|
|
22
|
+
a.textContent = [
|
|
23
|
+
"html, body { height: 100%; margin: 0; }",
|
|
24
|
+
"body {",
|
|
25
|
+
" background-color: var(--rst-backgroundColor-default);",
|
|
26
|
+
" color: var(--rst-fontColor-main);",
|
|
27
|
+
" font: var(--rst-font-body);",
|
|
28
|
+
"}"
|
|
29
|
+
].join(`
|
|
30
|
+
`), r.head.appendChild(a);
|
|
31
|
+
}
|
|
32
|
+
function Nr({ width: r, height: a, copyStyles: i = !0 } = {}) {
|
|
33
|
+
const [s, b] = D(null), [h, p] = D(null), j = ie(null), k = y(async () => {
|
|
34
|
+
const f = Se();
|
|
35
|
+
if (!(!f || j.current)) {
|
|
36
|
+
p(null);
|
|
37
|
+
try {
|
|
38
|
+
const g = await f.requestWindow({
|
|
39
|
+
width: r,
|
|
40
|
+
height: a
|
|
41
|
+
});
|
|
42
|
+
j.current = g, i && ar(g.document), tr(g.document), g.addEventListener("pagehide", () => {
|
|
43
|
+
j.current = null, b(null);
|
|
44
|
+
}), b(g);
|
|
45
|
+
} catch (g) {
|
|
46
|
+
p(g instanceof Error ? `${g.name}: ${g.message}` : String(g));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, [
|
|
50
|
+
r,
|
|
51
|
+
a,
|
|
52
|
+
i
|
|
53
|
+
]), c = y(() => {
|
|
54
|
+
j.current?.close();
|
|
55
|
+
}, []);
|
|
56
|
+
return se(() => () => j.current?.close(), []), {
|
|
57
|
+
pipWindow: s,
|
|
58
|
+
error: h,
|
|
59
|
+
isOpen: s !== null,
|
|
60
|
+
isSupported: rr(),
|
|
61
|
+
open: k,
|
|
62
|
+
close: c
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
var Sr = 1;
|
|
66
|
+
function sr(r, a) {
|
|
67
|
+
const i = r.col + r.w, s = r.row + r.h, b = a.col + a.w, h = a.row + a.h;
|
|
68
|
+
return r.col < b && i > a.col && r.row < h && s > a.row;
|
|
69
|
+
}
|
|
70
|
+
function ye(r) {
|
|
71
|
+
return r.col >= 1 && r.col + r.w - 1 <= 12 && r.row >= 1 && r.row + r.h - 1 <= 30;
|
|
72
|
+
}
|
|
73
|
+
function be(r, a, i) {
|
|
74
|
+
for (const s of a)
|
|
75
|
+
if (s.id !== i && sr(r, s.position))
|
|
76
|
+
return s.id;
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
function Me(r, a, i) {
|
|
80
|
+
for (let h = 1; h <= 30 - a + 1; h++) for (let p = 1; p <= 12 - r + 1; p++) {
|
|
81
|
+
const j = {
|
|
82
|
+
col: p,
|
|
83
|
+
row: h,
|
|
84
|
+
w: r,
|
|
85
|
+
h: a
|
|
86
|
+
};
|
|
87
|
+
if (!be(j, i)) return j;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
col: 1,
|
|
91
|
+
row: i.reduce((h, p) => Math.max(h, p.position.row + p.position.h), 1),
|
|
92
|
+
w: r,
|
|
93
|
+
h: a
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function dr(r, a) {
|
|
97
|
+
const i = {};
|
|
98
|
+
for (const s of r) {
|
|
99
|
+
const b = a[s.dataSourceId];
|
|
100
|
+
if (!b) continue;
|
|
101
|
+
const h = b.data ?? [], p = ke(h.length > 0 ? Object.keys(h[0]) : []), j = Ne(s.columns ?? p), k = /* @__PURE__ */ new Set(), c = [];
|
|
102
|
+
for (const f of j) k.has(f.id) || (k.add(f.id), c.push(f));
|
|
103
|
+
i[s.dataSourceId] = c;
|
|
104
|
+
}
|
|
105
|
+
return i;
|
|
106
|
+
}
|
|
107
|
+
var je = 0;
|
|
108
|
+
function we() {
|
|
109
|
+
return je += 1, `widget-${Date.now()}-${je}`;
|
|
110
|
+
}
|
|
111
|
+
function Ce() {
|
|
112
|
+
return {
|
|
113
|
+
version: 1,
|
|
114
|
+
name: "Untitled Dashboard",
|
|
115
|
+
filters: null,
|
|
116
|
+
widgets: []
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function ir(r, a) {
|
|
120
|
+
const [i, s] = D(r ?? Ce), [b, h] = D(null), [p, j] = D(a ? "view" : "edit"), k = ie(!1), c = y(() => {
|
|
121
|
+
k.current = !0;
|
|
122
|
+
}, []), f = y((u, x, W) => {
|
|
123
|
+
s((d) => {
|
|
124
|
+
const C = {
|
|
125
|
+
id: we(),
|
|
126
|
+
title: `New ${u}`,
|
|
127
|
+
componentType: u,
|
|
128
|
+
dataSourceId: x,
|
|
129
|
+
position: W
|
|
130
|
+
};
|
|
131
|
+
return {
|
|
132
|
+
...d,
|
|
133
|
+
widgets: [...d.widgets, C]
|
|
134
|
+
};
|
|
135
|
+
}), c();
|
|
136
|
+
}, [c]), g = y((u) => {
|
|
137
|
+
s((x) => {
|
|
138
|
+
const W = Me(6, 3, x.widgets), d = {
|
|
139
|
+
id: we(),
|
|
140
|
+
position: W,
|
|
141
|
+
...u.widget
|
|
142
|
+
};
|
|
143
|
+
return {
|
|
144
|
+
...x,
|
|
145
|
+
widgets: [...x.widgets, d]
|
|
146
|
+
};
|
|
147
|
+
}), c();
|
|
148
|
+
}, [c]), w = y((u) => {
|
|
149
|
+
s((x) => ({
|
|
150
|
+
...x,
|
|
151
|
+
widgets: x.widgets.filter((W) => W.id !== u)
|
|
152
|
+
})), h((x) => x === u ? null : x), c();
|
|
153
|
+
}, [c]), R = y((u, x) => {
|
|
154
|
+
s((W) => ({
|
|
155
|
+
...W,
|
|
156
|
+
widgets: W.widgets.map((d) => {
|
|
157
|
+
if (d.id !== u) return d;
|
|
158
|
+
const C = {
|
|
159
|
+
...d,
|
|
160
|
+
...x
|
|
161
|
+
};
|
|
162
|
+
if (x.dataSourceId && x.dataSourceId !== d.dataSourceId) {
|
|
163
|
+
const P = pe[d.componentType] ?? [];
|
|
164
|
+
C.columns = void 0, C.componentProps = xe(P), C.filters = void 0, C.uiConfig = void 0;
|
|
165
|
+
}
|
|
166
|
+
return C;
|
|
167
|
+
})
|
|
168
|
+
})), c();
|
|
169
|
+
}, [c]), o = y((u, x) => {
|
|
170
|
+
R(u, { position: x });
|
|
171
|
+
}, [R]), E = y((u) => {
|
|
172
|
+
h(u);
|
|
173
|
+
}, []), L = i.widgets.find((u) => u.id === b) ?? null, O = y((u) => {
|
|
174
|
+
s((x) => ({
|
|
175
|
+
...x,
|
|
176
|
+
name: u
|
|
177
|
+
})), c();
|
|
178
|
+
}, [c]), t = y((u) => {
|
|
179
|
+
s((x) => ({
|
|
180
|
+
...x,
|
|
181
|
+
filters: typeof u == "function" ? u(x.filters) : u
|
|
182
|
+
})), c();
|
|
183
|
+
}, [c]), l = y((u) => {
|
|
184
|
+
s(u ?? Ce()), h(null), k.current = !1;
|
|
185
|
+
}, []), B = y((u) => {
|
|
186
|
+
s(u), h(null), k.current = !1;
|
|
187
|
+
}, []);
|
|
188
|
+
return {
|
|
189
|
+
state: {
|
|
190
|
+
config: i,
|
|
191
|
+
selectedWidgetId: b,
|
|
192
|
+
isDirty: k.current
|
|
193
|
+
},
|
|
194
|
+
mode: p,
|
|
195
|
+
setMode: j,
|
|
196
|
+
addWidget: f,
|
|
197
|
+
addPrebuiltWidget: g,
|
|
198
|
+
removeWidget: w,
|
|
199
|
+
updateWidget: R,
|
|
200
|
+
moveWidget: o,
|
|
201
|
+
selectWidget: E,
|
|
202
|
+
selectedWidget: L,
|
|
203
|
+
setName: O,
|
|
204
|
+
setFilters: t,
|
|
205
|
+
resetConfig: l,
|
|
206
|
+
loadConfig: B
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
var n = {
|
|
210
|
+
"rst-dashboard-builder": "_rst-dashboard-builder_ukxxh_2",
|
|
211
|
+
"rst-dashboard-builder-sidebar": "_rst-dashboard-builder-sidebar_ukxxh_18",
|
|
212
|
+
"rst-dashboard-builder-sidebar-header": "_rst-dashboard-builder-sidebar-header_ukxxh_28",
|
|
213
|
+
"rst-dashboard-builder-sidebar-list": "_rst-dashboard-builder-sidebar-list_ukxxh_33",
|
|
214
|
+
"rst-dashboard-builder-widget-type-item": "_rst-dashboard-builder-widget-type-item_ukxxh_40",
|
|
215
|
+
"rst-dashboard-builder-widget-type-label": "_rst-dashboard-builder-widget-type-label_ukxxh_59",
|
|
216
|
+
"rst-dashboard-builder-widget-type-desc": "_rst-dashboard-builder-widget-type-desc_ukxxh_63",
|
|
217
|
+
"rst-dashboard-builder-main": "_rst-dashboard-builder-main_ukxxh_69",
|
|
218
|
+
"rst-dashboard-builder-toolbar": "_rst-dashboard-builder-toolbar_ukxxh_77",
|
|
219
|
+
"rst-dashboard-builder-toolbar-left": "_rst-dashboard-builder-toolbar-left_ukxxh_87",
|
|
220
|
+
"rst-dashboard-builder-toolbar-right": "_rst-dashboard-builder-toolbar-right_ukxxh_93",
|
|
221
|
+
"rst-dashboard-builder-name-input": "_rst-dashboard-builder-name-input_ukxxh_99",
|
|
222
|
+
"rst-dashboard-builder-name-display": "_rst-dashboard-builder-name-display_ukxxh_115",
|
|
223
|
+
"rst-dashboard-builder-view": "_rst-dashboard-builder-view_ukxxh_122",
|
|
224
|
+
"rst-dashboard-widget": "_rst-dashboard-widget_ukxxh_146",
|
|
225
|
+
"rst-switcher": "_rst-switcher_ukxxh_170",
|
|
226
|
+
"rst-dashboard-builder-canvas": "_rst-dashboard-builder-canvas_ukxxh_183",
|
|
227
|
+
"rst-dashboard-builder-grid": "_rst-dashboard-builder-grid_ukxxh_191",
|
|
228
|
+
"rst-dashboard-builder-grid-cell": "_rst-dashboard-builder-grid-cell_ukxxh_201",
|
|
229
|
+
"rst-dashboard-builder-grid-cell-view": "_rst-dashboard-builder-grid-cell-view_ukxxh_213",
|
|
230
|
+
"rst-dashboard-builder-grid-empty": "_rst-dashboard-builder-grid-empty_ukxxh_219",
|
|
231
|
+
"rst-dashboard-builder-widget": "_rst-dashboard-builder-widget_ukxxh_40",
|
|
232
|
+
"rst-dashboard-builder-widget-view": "_rst-dashboard-builder-widget-view_ukxxh_290",
|
|
233
|
+
"rst-dashboard-builder-widget-selected": "_rst-dashboard-builder-widget-selected_ukxxh_298",
|
|
234
|
+
"rst-dashboard-builder-widget-dragging": "_rst-dashboard-builder-widget-dragging_ukxxh_304",
|
|
235
|
+
"rst-dashboard-builder-widget-collision": "_rst-dashboard-builder-widget-collision_ukxxh_310",
|
|
236
|
+
"rst-dashboard-builder-resize-handle-n": "_rst-dashboard-builder-resize-handle-n_ukxxh_317",
|
|
237
|
+
"rst-dashboard-builder-resize-handle-s": "_rst-dashboard-builder-resize-handle-s_ukxxh_318",
|
|
238
|
+
"rst-dashboard-builder-resize-handle-e": "_rst-dashboard-builder-resize-handle-e_ukxxh_319",
|
|
239
|
+
"rst-dashboard-builder-resize-handle-w": "_rst-dashboard-builder-resize-handle-w_ukxxh_320",
|
|
240
|
+
"rst-dashboard-builder-resize-handle-ne": "_rst-dashboard-builder-resize-handle-ne_ukxxh_321",
|
|
241
|
+
"rst-dashboard-builder-resize-handle-nw": "_rst-dashboard-builder-resize-handle-nw_ukxxh_322",
|
|
242
|
+
"rst-dashboard-builder-resize-handle-se": "_rst-dashboard-builder-resize-handle-se_ukxxh_323",
|
|
243
|
+
"rst-dashboard-builder-resize-handle-sw": "_rst-dashboard-builder-resize-handle-sw_ukxxh_324",
|
|
244
|
+
"rst-dashboard-builder-filter-body": "_rst-dashboard-builder-filter-body_ukxxh_540",
|
|
245
|
+
"rst-dashboard-builder-filter-tabs": "_rst-dashboard-builder-filter-tabs_ukxxh_548",
|
|
246
|
+
"rst-dashboard-builder-configurator": "_rst-dashboard-builder-configurator_ukxxh_557",
|
|
247
|
+
"rst-dashboard-builder-configurator-header": "_rst-dashboard-builder-configurator-header_ukxxh_567",
|
|
248
|
+
"rst-dashboard-builder-configurator-body": "_rst-dashboard-builder-configurator-body_ukxxh_575",
|
|
249
|
+
"rst-dashboard-builder-configurator-empty": "_rst-dashboard-builder-configurator-empty_ukxxh_582",
|
|
250
|
+
"rst-dashboard-builder-configurator-divider": "_rst-dashboard-builder-configurator-divider_ukxxh_593",
|
|
251
|
+
"rst-dashboard-builder-field": "_rst-dashboard-builder-field_ukxxh_599",
|
|
252
|
+
"rst-dashboard-builder-field-label": "_rst-dashboard-builder-field-label_ukxxh_605",
|
|
253
|
+
"rst-dashboard-builder-checkbox-row": "_rst-dashboard-builder-checkbox-row_ukxxh_611",
|
|
254
|
+
"rst-dashboard-builder-checkbox-label": "_rst-dashboard-builder-checkbox-label_ukxxh_618",
|
|
255
|
+
"rst-dashboard-builder-drag-ghost": "_rst-dashboard-builder-drag-ghost_ukxxh_624",
|
|
256
|
+
"rst-dashboard-builder-drop-zone": "_rst-dashboard-builder-drop-zone_ukxxh_638",
|
|
257
|
+
"rst-dashboard-builder-add-widget-item": "_rst-dashboard-builder-add-widget-item_ukxxh_646",
|
|
258
|
+
"rst-dashboard-builder-add-widget-item-label": "_rst-dashboard-builder-add-widget-item-label_ukxxh_667",
|
|
259
|
+
"rst-dashboard-builder-add-widget-item-desc": "_rst-dashboard-builder-add-widget-item-desc_ukxxh_673",
|
|
260
|
+
"rst-dashboard-builder-template-wrapper": "_rst-dashboard-builder-template-wrapper_ukxxh_679",
|
|
261
|
+
"rst-dashboard-builder-template-picker": "_rst-dashboard-builder-template-picker_ukxxh_683",
|
|
262
|
+
"rst-dashboard-builder-template-picker-header": "_rst-dashboard-builder-template-picker-header_ukxxh_697",
|
|
263
|
+
"rst-dashboard-builder-template-item": "_rst-dashboard-builder-template-item_ukxxh_705",
|
|
264
|
+
"rst-dashboard-builder-template-item-name": "_rst-dashboard-builder-template-item-name_ukxxh_727",
|
|
265
|
+
"rst-dashboard-builder-template-item-desc": "_rst-dashboard-builder-template-item-desc_ukxxh_733"
|
|
266
|
+
}, Q = 12, de = 30, oe = 12;
|
|
267
|
+
function nr({ widgets: r, onMoveWidget: a, onAddWidget: i, onChange: s }) {
|
|
268
|
+
const b = ie(null), [h, p] = D(null), [j, k] = D(null), [c, f] = D(null), [g, w] = D(null), [R, o] = D(!1), [E, L] = D(null), [O, t] = D(null), [l, B] = D(null), [u, x] = D(null), [W, d] = D(!1), C = y(() => b.current ? {
|
|
269
|
+
colWidth: (b.current.getBoundingClientRect().width - oe * (Q - 1)) / Q,
|
|
270
|
+
rowHeight: 92
|
|
271
|
+
} : null, []), P = y((v, N) => {
|
|
272
|
+
if (!b.current) return {
|
|
273
|
+
col: 1,
|
|
274
|
+
row: 1
|
|
275
|
+
};
|
|
276
|
+
const z = b.current.getBoundingClientRect(), M = (z.width - oe * (Q - 1)) / Q;
|
|
277
|
+
return {
|
|
278
|
+
col: Math.max(1, Math.min(Q, Math.round((v - z.left) / (M + oe)) + 1)),
|
|
279
|
+
row: Math.max(1, Math.min(de, Math.round((N - z.top) / 92) + 1))
|
|
280
|
+
};
|
|
281
|
+
}, []), U = y((v) => {
|
|
282
|
+
if (v.preventDefault(), v.dataTransfer.types.includes("application/widget-type")) {
|
|
283
|
+
v.dataTransfer.dropEffect = "copy";
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
if (v.dataTransfer.types.includes("application/move-widget") && h && j && c) {
|
|
287
|
+
v.dataTransfer.dropEffect = "move";
|
|
288
|
+
const N = r.find((I) => I.id === h);
|
|
289
|
+
if (!N) return;
|
|
290
|
+
const z = C();
|
|
291
|
+
if (!z) return;
|
|
292
|
+
const M = v.clientX - j.x, G = v.clientY - j.y, ne = Math.round(M / (z.colWidth + oe)), Y = Math.round(G / z.rowHeight), H = {
|
|
293
|
+
col: Math.max(1, Math.min(Q - N.position.w + 1, c.col + ne)),
|
|
294
|
+
row: Math.max(1, Math.min(de - N.position.h + 1, c.row + Y)),
|
|
295
|
+
w: N.position.w,
|
|
296
|
+
h: N.position.h
|
|
297
|
+
};
|
|
298
|
+
w(H);
|
|
299
|
+
const T = be(H, r, h);
|
|
300
|
+
o(T !== null);
|
|
301
|
+
}
|
|
302
|
+
}, [
|
|
303
|
+
h,
|
|
304
|
+
j,
|
|
305
|
+
c,
|
|
306
|
+
C,
|
|
307
|
+
r
|
|
308
|
+
]), ee = y((v) => {
|
|
309
|
+
v.preventDefault();
|
|
310
|
+
const N = v.dataTransfer.getData("application/widget-type");
|
|
311
|
+
if (N) {
|
|
312
|
+
const { col: z, row: M } = P(v.clientX, v.clientY), G = {
|
|
313
|
+
col: z,
|
|
314
|
+
row: M,
|
|
315
|
+
w: 4,
|
|
316
|
+
h: 3
|
|
317
|
+
};
|
|
318
|
+
if (z + 4 - 1 > Q && (G.col = 9), M + 3 - 1 > de && (G.row = 28), be(G, r)) return;
|
|
319
|
+
i(N, "", G), s();
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
h && g && (!R && ye(g) && (a(h, g), s()), p(null), k(null), f(null), w(null), o(!1));
|
|
323
|
+
}, [
|
|
324
|
+
P,
|
|
325
|
+
r,
|
|
326
|
+
i,
|
|
327
|
+
s,
|
|
328
|
+
h,
|
|
329
|
+
g,
|
|
330
|
+
R,
|
|
331
|
+
a
|
|
332
|
+
]), re = y((v, N) => {
|
|
333
|
+
v.stopPropagation(), v.dataTransfer.setData("application/move-widget", N.id), v.dataTransfer.effectAllowed = "move", p(N.id), k({
|
|
334
|
+
x: v.clientX,
|
|
335
|
+
y: v.clientY
|
|
336
|
+
}), f({ ...N.position }), w({ ...N.position }), o(!1);
|
|
337
|
+
}, []), _ = y(() => {
|
|
338
|
+
p(null), k(null), f(null), w(null), o(!1);
|
|
339
|
+
}, []), le = y((v, N, z) => {
|
|
340
|
+
v.stopPropagation(), v.preventDefault(), L(N.id), t(z), B({ ...N.position }), x({
|
|
341
|
+
x: v.clientX,
|
|
342
|
+
y: v.clientY
|
|
343
|
+
}), d(!1);
|
|
344
|
+
}, []);
|
|
345
|
+
return se(() => {
|
|
346
|
+
if (!E || !O || !l || !u) return;
|
|
347
|
+
const v = (z) => {
|
|
348
|
+
if (!r.find((S) => S.id === E)) return;
|
|
349
|
+
const M = C();
|
|
350
|
+
if (!M) return;
|
|
351
|
+
const G = z.clientX - u.x, ne = z.clientY - u.y, Y = Math.round(G / (M.colWidth + oe)), H = Math.round(ne / M.rowHeight), T = l.col, I = l.row, q = l.w, K = l.h;
|
|
352
|
+
let F = { ...l };
|
|
353
|
+
switch (O) {
|
|
354
|
+
case "e": {
|
|
355
|
+
const S = Math.max(1, Math.min(Q - T + 1, q + Y));
|
|
356
|
+
F = {
|
|
357
|
+
...F,
|
|
358
|
+
w: S
|
|
359
|
+
};
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
case "w": {
|
|
363
|
+
const S = Math.max(1, Math.min(T + q - 1, T + Y)), A = T + q - S;
|
|
364
|
+
F = {
|
|
365
|
+
...l,
|
|
366
|
+
col: S,
|
|
367
|
+
w: Math.max(1, A)
|
|
368
|
+
};
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
case "s": {
|
|
372
|
+
const S = Math.max(1, Math.min(de - I + 1, K + H));
|
|
373
|
+
F = {
|
|
374
|
+
...l,
|
|
375
|
+
h: S
|
|
376
|
+
};
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
case "n": {
|
|
380
|
+
const S = Math.max(1, Math.min(I + K - 1, I + H)), A = I + K - S;
|
|
381
|
+
F = {
|
|
382
|
+
...l,
|
|
383
|
+
row: S,
|
|
384
|
+
h: Math.max(1, A)
|
|
385
|
+
};
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
case "se": {
|
|
389
|
+
const S = Math.max(1, Math.min(Q - T + 1, q + Y)), A = Math.max(1, Math.min(de - I + 1, K + H));
|
|
390
|
+
F = {
|
|
391
|
+
...l,
|
|
392
|
+
w: S,
|
|
393
|
+
h: A
|
|
394
|
+
};
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
397
|
+
case "sw": {
|
|
398
|
+
const S = Math.max(1, Math.min(T + q - 1, T + Y)), A = T + q - S, m = Math.max(1, Math.min(de - I + 1, K + H));
|
|
399
|
+
F = {
|
|
400
|
+
...l,
|
|
401
|
+
col: S,
|
|
402
|
+
w: Math.max(1, A),
|
|
403
|
+
h: m
|
|
404
|
+
};
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
case "ne": {
|
|
408
|
+
const S = Math.max(1, Math.min(I + K - 1, I + H)), A = I + K - S, m = Math.max(1, Math.min(Q - T + 1, q + Y));
|
|
409
|
+
F = {
|
|
410
|
+
...l,
|
|
411
|
+
row: S,
|
|
412
|
+
h: Math.max(1, A),
|
|
413
|
+
w: m
|
|
414
|
+
};
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
case "nw": {
|
|
418
|
+
const S = Math.max(1, Math.min(T + q - 1, T + Y)), A = Math.max(1, Math.min(I + K - 1, I + H)), m = T + q - S, $ = I + K - A;
|
|
419
|
+
F = {
|
|
420
|
+
col: S,
|
|
421
|
+
row: A,
|
|
422
|
+
w: Math.max(1, m),
|
|
423
|
+
h: Math.max(1, $)
|
|
424
|
+
};
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
w(F), p(E);
|
|
429
|
+
const ce = be(F, r, E);
|
|
430
|
+
d(ce !== null), o(ce !== null);
|
|
431
|
+
}, N = () => {
|
|
432
|
+
r.find((z) => z.id === E) && g && !W && ye(g) && (a(E, g), s()), L(null), t(null), B(null), x(null), d(!1), p(null), k(null), f(null), w(null), o(!1);
|
|
433
|
+
};
|
|
434
|
+
return document.addEventListener("mousemove", v), document.addEventListener("mouseup", N), () => {
|
|
435
|
+
document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", N);
|
|
436
|
+
};
|
|
437
|
+
}, [
|
|
438
|
+
E,
|
|
439
|
+
O,
|
|
440
|
+
l,
|
|
441
|
+
u,
|
|
442
|
+
r,
|
|
443
|
+
g,
|
|
444
|
+
W,
|
|
445
|
+
C,
|
|
446
|
+
a,
|
|
447
|
+
s
|
|
448
|
+
]), {
|
|
449
|
+
gridRef: b,
|
|
450
|
+
draggingWidgetId: h,
|
|
451
|
+
dragPreviewPos: g,
|
|
452
|
+
hasCollision: R,
|
|
453
|
+
resizeCollision: W,
|
|
454
|
+
handleDragOver: U,
|
|
455
|
+
handleDrop: ee,
|
|
456
|
+
handleWidgetDragStart: re,
|
|
457
|
+
handleWidgetDragEnd: _,
|
|
458
|
+
handleResizeStart: le,
|
|
459
|
+
pixelToGrid: P
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
var or = 12, lr = 20, De = ({ widgets: r, selectedWidgetId: a, dataSources: i, onSelectWidget: s, onMoveWidget: b, onRemoveWidget: h, onAddWidget: p, onChange: j, getWidgetActions: k, mode: c = "edit" }) => {
|
|
463
|
+
const f = c === "view", { gridRef: g, draggingWidgetId: w, dragPreviewPos: R, hasCollision: o, handleDragOver: E, handleDrop: L, handleWidgetDragStart: O, handleWidgetDragEnd: t, handleResizeStart: l } = nr({
|
|
464
|
+
widgets: r,
|
|
465
|
+
onMoveWidget: b,
|
|
466
|
+
onAddWidget: p,
|
|
467
|
+
onChange: j
|
|
468
|
+
}), B = y((d, C) => {
|
|
469
|
+
d.stopPropagation(), s(C);
|
|
470
|
+
}, [s]), u = y(() => {
|
|
471
|
+
s(null);
|
|
472
|
+
}, [s]), x = y((d) => {
|
|
473
|
+
const C = i[d.dataSourceId]?.data ?? [], P = C.length > 0 ? Object.keys(C[0]) : [];
|
|
474
|
+
return {
|
|
475
|
+
data: C,
|
|
476
|
+
columns: d.columns ?? ke(P)
|
|
477
|
+
};
|
|
478
|
+
}, [i]), W = [];
|
|
479
|
+
for (let d = 1; d <= lr; d++) for (let C = 1; C <= or; C++) {
|
|
480
|
+
const P = f ? n["rst-dashboard-builder-grid-cell-view"] : n["rst-dashboard-builder-grid-cell"];
|
|
481
|
+
W.push(/* @__PURE__ */ (0, e.jsx)("div", {
|
|
482
|
+
className: P,
|
|
483
|
+
style: {
|
|
484
|
+
gridColumn: C,
|
|
485
|
+
gridRow: d
|
|
486
|
+
}
|
|
487
|
+
}, `cell-${d}-${C}`));
|
|
488
|
+
}
|
|
489
|
+
return /* @__PURE__ */ (0, e.jsx)("div", {
|
|
490
|
+
className: n["rst-dashboard-builder-canvas"],
|
|
491
|
+
onClick: u,
|
|
492
|
+
children: /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
493
|
+
ref: g,
|
|
494
|
+
className: n["rst-dashboard-builder-grid"],
|
|
495
|
+
onDragOver: E,
|
|
496
|
+
onDrop: L,
|
|
497
|
+
children: [
|
|
498
|
+
W,
|
|
499
|
+
r.length === 0 && /* @__PURE__ */ (0, e.jsx)("div", {
|
|
500
|
+
className: n["rst-dashboard-builder-grid-empty"],
|
|
501
|
+
children: "Drag a widget from the palette to get started"
|
|
502
|
+
}),
|
|
503
|
+
r.map((d) => {
|
|
504
|
+
const C = !f && d.id === a, P = !f && d.id === w, U = x(d), ee = P && R ? R : d.position, re = P && o;
|
|
505
|
+
return /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
506
|
+
className: [
|
|
507
|
+
n["rst-dashboard-builder-widget"],
|
|
508
|
+
f ? n["rst-dashboard-builder-widget-view"] : "",
|
|
509
|
+
C ? n["rst-dashboard-builder-widget-selected"] : "",
|
|
510
|
+
P ? n["rst-dashboard-builder-widget-dragging"] : "",
|
|
511
|
+
re ? n["rst-dashboard-builder-widget-collision"] : ""
|
|
512
|
+
].filter(Boolean).join(" "),
|
|
513
|
+
style: {
|
|
514
|
+
gridColumn: `${ee.col} / span ${ee.w}`,
|
|
515
|
+
gridRow: `${ee.row} / span ${ee.h}`
|
|
516
|
+
},
|
|
517
|
+
draggable: !f,
|
|
518
|
+
...f ? {} : {
|
|
519
|
+
onDragStart: (_) => O(_, d),
|
|
520
|
+
onDragEnd: t,
|
|
521
|
+
onClick: (_) => B(_, d.id),
|
|
522
|
+
role: "button",
|
|
523
|
+
tabIndex: 0,
|
|
524
|
+
"aria-label": `Widget: ${d.title}`,
|
|
525
|
+
onKeyDown: (_) => {
|
|
526
|
+
(_.key === "Enter" || _.key === " ") && (_.preventDefault(), s(d.id)), (_.key === "Delete" || _.key === "Backspace") && (_.preventDefault(), h(d.id), j());
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
children: [/* @__PURE__ */ (0, e.jsx)(Xe, {
|
|
530
|
+
id: d.id,
|
|
531
|
+
dataSourceId: d.dataSourceId,
|
|
532
|
+
title: d.title,
|
|
533
|
+
subtitle: d.subtitle,
|
|
534
|
+
icon: d.icon,
|
|
535
|
+
data: U.data,
|
|
536
|
+
columns: U.columns,
|
|
537
|
+
enableExport: k?.(d).enableExport ?? !0,
|
|
538
|
+
enableScreenshot: k?.(d).enableScreenshot ?? !1,
|
|
539
|
+
enableExpand: k?.(d).enableExpand ?? !0,
|
|
540
|
+
enableFilter: k?.(d).enableFilter ?? !1,
|
|
541
|
+
fieldOptions: Ne(U.columns),
|
|
542
|
+
children: ({ data: _ }) => /* @__PURE__ */ (0, e.jsx)(Je, {
|
|
543
|
+
data: _,
|
|
544
|
+
columns: U.columns,
|
|
545
|
+
activeComponent: d.componentType,
|
|
546
|
+
componentProps: d.componentProps,
|
|
547
|
+
showConfigurator: !1
|
|
548
|
+
})
|
|
549
|
+
}), !f && C && /* @__PURE__ */ (0, e.jsxs)(e.Fragment, { children: [
|
|
550
|
+
/* @__PURE__ */ (0, e.jsx)("div", {
|
|
551
|
+
className: n["rst-dashboard-builder-resize-handle-n"],
|
|
552
|
+
onMouseDown: (_) => l(_, d, "n")
|
|
553
|
+
}),
|
|
554
|
+
/* @__PURE__ */ (0, e.jsx)("div", {
|
|
555
|
+
className: n["rst-dashboard-builder-resize-handle-s"],
|
|
556
|
+
onMouseDown: (_) => l(_, d, "s")
|
|
557
|
+
}),
|
|
558
|
+
/* @__PURE__ */ (0, e.jsx)("div", {
|
|
559
|
+
className: n["rst-dashboard-builder-resize-handle-e"],
|
|
560
|
+
onMouseDown: (_) => l(_, d, "e")
|
|
561
|
+
}),
|
|
562
|
+
/* @__PURE__ */ (0, e.jsx)("div", {
|
|
563
|
+
className: n["rst-dashboard-builder-resize-handle-w"],
|
|
564
|
+
onMouseDown: (_) => l(_, d, "w")
|
|
565
|
+
}),
|
|
566
|
+
/* @__PURE__ */ (0, e.jsx)("div", {
|
|
567
|
+
className: n["rst-dashboard-builder-resize-handle-ne"],
|
|
568
|
+
onMouseDown: (_) => l(_, d, "ne")
|
|
569
|
+
}),
|
|
570
|
+
/* @__PURE__ */ (0, e.jsx)("div", {
|
|
571
|
+
className: n["rst-dashboard-builder-resize-handle-nw"],
|
|
572
|
+
onMouseDown: (_) => l(_, d, "nw")
|
|
573
|
+
}),
|
|
574
|
+
/* @__PURE__ */ (0, e.jsx)("div", {
|
|
575
|
+
className: n["rst-dashboard-builder-resize-handle-se"],
|
|
576
|
+
onMouseDown: (_) => l(_, d, "se")
|
|
577
|
+
}),
|
|
578
|
+
/* @__PURE__ */ (0, e.jsx)("div", {
|
|
579
|
+
className: n["rst-dashboard-builder-resize-handle-sw"],
|
|
580
|
+
onMouseDown: (_) => l(_, d, "sw")
|
|
581
|
+
})
|
|
582
|
+
] })]
|
|
583
|
+
}, `${d.id}::${d.dataSourceId}`);
|
|
584
|
+
})
|
|
585
|
+
]
|
|
586
|
+
})
|
|
587
|
+
});
|
|
588
|
+
};
|
|
589
|
+
De.displayName = "BuilderCanvas";
|
|
590
|
+
var cr = [
|
|
591
|
+
{
|
|
592
|
+
type: "table-grid",
|
|
593
|
+
label: "Table",
|
|
594
|
+
icon: "table",
|
|
595
|
+
description: "Sortable, filterable data table"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
type: "chart",
|
|
599
|
+
label: "Chart",
|
|
600
|
+
icon: "chart",
|
|
601
|
+
description: "Bar, line, pie charts"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
type: "calendar",
|
|
605
|
+
label: "Calendar",
|
|
606
|
+
icon: "calendar",
|
|
607
|
+
description: "Calendar view of events"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
type: "card-list",
|
|
611
|
+
label: "Card List",
|
|
612
|
+
icon: "list",
|
|
613
|
+
description: "Visual card layout"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
type: "form",
|
|
617
|
+
label: "Form",
|
|
618
|
+
icon: "form",
|
|
619
|
+
description: "Editable form from schema"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
type: "gantt",
|
|
623
|
+
label: "Gantt",
|
|
624
|
+
icon: "chart-gantt",
|
|
625
|
+
description: "Project timeline view"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
type: "kpi",
|
|
629
|
+
label: "KPI",
|
|
630
|
+
icon: "chart",
|
|
631
|
+
description: "Single-metric KPI card"
|
|
632
|
+
}
|
|
633
|
+
], ze = ({ widget: r, dataSources: a, onUpdate: i, onRemove: s, onClose: b, onAddWidget: h, prebuiltSections: p, onAddPrebuiltSection: j }) => {
|
|
634
|
+
const k = Object.values(a).map((t) => ({
|
|
635
|
+
value: t.id,
|
|
636
|
+
label: t.name
|
|
637
|
+
})), c = X(() => [{
|
|
638
|
+
value: "",
|
|
639
|
+
id: "none"
|
|
640
|
+
}, ...Object.keys(He).map((t) => ({
|
|
641
|
+
value: t,
|
|
642
|
+
leadingVisual: t
|
|
643
|
+
}))], []), f = r?.dataSourceId, g = X(() => {
|
|
644
|
+
if (!f) return [];
|
|
645
|
+
const t = a[f];
|
|
646
|
+
return t ? t.fields.map((l) => ({
|
|
647
|
+
id: l.id,
|
|
648
|
+
header: l.name,
|
|
649
|
+
accessorKey: l.id
|
|
650
|
+
})) : [];
|
|
651
|
+
}, [f, a]), w = X(() => pe[r?.componentType ?? "table-grid"] ?? [], [r?.componentType]), R = X(() => r?.componentProps ?? xe(w), [r?.componentProps, w]), o = y((t, l) => {
|
|
652
|
+
i({ [t]: l });
|
|
653
|
+
}, [i]), E = y((t) => {
|
|
654
|
+
i({
|
|
655
|
+
componentType: t,
|
|
656
|
+
componentProps: xe(pe[t] ?? [])
|
|
657
|
+
});
|
|
658
|
+
}, [i]), L = y((t, l) => {
|
|
659
|
+
i({ componentProps: {
|
|
660
|
+
...R,
|
|
661
|
+
[t]: l
|
|
662
|
+
} });
|
|
663
|
+
}, [R, i]), O = X(() => !p || p.length === 0 ? [] : p.filter((t) => t.version === 1), [p]);
|
|
664
|
+
return r ? /* @__PURE__ */ (0, e.jsxs)("aside", {
|
|
665
|
+
className: n["rst-dashboard-builder-configurator"],
|
|
666
|
+
"aria-label": "Widget configurator",
|
|
667
|
+
children: [/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
668
|
+
className: n["rst-dashboard-builder-configurator-header"],
|
|
669
|
+
children: [/* @__PURE__ */ (0, e.jsx)(te, {
|
|
670
|
+
variant: "heading",
|
|
671
|
+
children: "Configure"
|
|
672
|
+
}), /* @__PURE__ */ (0, e.jsx)(Z, {
|
|
673
|
+
variant: "invisible",
|
|
674
|
+
size: "small",
|
|
675
|
+
leadingVisual: "close",
|
|
676
|
+
onClick: b,
|
|
677
|
+
"aria-label": "Close configurator"
|
|
678
|
+
})]
|
|
679
|
+
}), /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
680
|
+
className: n["rst-dashboard-builder-configurator-body"],
|
|
681
|
+
children: [
|
|
682
|
+
/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
683
|
+
className: n["rst-dashboard-builder-field"],
|
|
684
|
+
children: [/* @__PURE__ */ (0, e.jsx)("label", {
|
|
685
|
+
className: n["rst-dashboard-builder-field-label"],
|
|
686
|
+
children: "Title"
|
|
687
|
+
}), /* @__PURE__ */ (0, e.jsx)(_e, {
|
|
688
|
+
value: r.title,
|
|
689
|
+
onChange: (t) => o("title", t ?? ""),
|
|
690
|
+
placeholder: "Widget title"
|
|
691
|
+
})]
|
|
692
|
+
}),
|
|
693
|
+
/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
694
|
+
className: n["rst-dashboard-builder-field"],
|
|
695
|
+
children: [/* @__PURE__ */ (0, e.jsx)("label", {
|
|
696
|
+
className: n["rst-dashboard-builder-field-label"],
|
|
697
|
+
children: "Subtitle"
|
|
698
|
+
}), /* @__PURE__ */ (0, e.jsx)(_e, {
|
|
699
|
+
value: r.subtitle ?? "",
|
|
700
|
+
onChange: (t) => o("subtitle", t || void 0),
|
|
701
|
+
placeholder: "Optional subtitle"
|
|
702
|
+
})]
|
|
703
|
+
}),
|
|
704
|
+
/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
705
|
+
className: n["rst-dashboard-builder-field"],
|
|
706
|
+
children: [/* @__PURE__ */ (0, e.jsx)("label", {
|
|
707
|
+
className: n["rst-dashboard-builder-field-label"],
|
|
708
|
+
children: "Icon"
|
|
709
|
+
}), /* @__PURE__ */ (0, e.jsx)(ge, {
|
|
710
|
+
value: r.icon ?? "",
|
|
711
|
+
onChange: (t) => o("icon", t || void 0),
|
|
712
|
+
options: c,
|
|
713
|
+
renderList: ({ options: t, value: l, onChange: B, onClose: u }) => /* @__PURE__ */ (0, e.jsx)(Te, {
|
|
714
|
+
options: t,
|
|
715
|
+
activeIndex: [typeof l == "string" ? l : ""],
|
|
716
|
+
onClick: (x) => {
|
|
717
|
+
B(x.value), u();
|
|
718
|
+
},
|
|
719
|
+
showFilter: !0
|
|
720
|
+
})
|
|
721
|
+
})]
|
|
722
|
+
}),
|
|
723
|
+
/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
724
|
+
className: n["rst-dashboard-builder-field"],
|
|
725
|
+
children: [/* @__PURE__ */ (0, e.jsx)("label", {
|
|
726
|
+
className: n["rst-dashboard-builder-field-label"],
|
|
727
|
+
children: "Data Source"
|
|
728
|
+
}), /* @__PURE__ */ (0, e.jsx)(ge, {
|
|
729
|
+
value: r.dataSourceId,
|
|
730
|
+
onChange: (t) => o("dataSourceId", t),
|
|
731
|
+
options: k
|
|
732
|
+
})]
|
|
733
|
+
}),
|
|
734
|
+
r.dataSourceId && a[r.dataSourceId] && /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
735
|
+
className: n["rst-dashboard-builder-field"],
|
|
736
|
+
children: [/* @__PURE__ */ (0, e.jsx)("label", {
|
|
737
|
+
className: n["rst-dashboard-builder-field-label"],
|
|
738
|
+
children: "Columns"
|
|
739
|
+
}), /* @__PURE__ */ (0, e.jsx)($e, {
|
|
740
|
+
options: a[r.dataSourceId].fields.map((t) => ({
|
|
741
|
+
value: t.id,
|
|
742
|
+
label: t.name
|
|
743
|
+
})),
|
|
744
|
+
value: r.columns?.map((t) => t.id).filter(Boolean) ?? a[r.dataSourceId].fields.map((t) => t.id),
|
|
745
|
+
onChange: (t) => {
|
|
746
|
+
const l = a[r.dataSourceId], B = t.map((u) => l.fields.find((x) => x.id === u)).filter(Boolean).map((u) => ({
|
|
747
|
+
id: u.id,
|
|
748
|
+
header: u.name,
|
|
749
|
+
accessorKey: u.id
|
|
750
|
+
}));
|
|
751
|
+
i({ columns: B.length === l.fields.length ? void 0 : B });
|
|
752
|
+
}
|
|
753
|
+
})]
|
|
754
|
+
}),
|
|
755
|
+
/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
756
|
+
className: n["rst-dashboard-builder-field"],
|
|
757
|
+
children: [
|
|
758
|
+
/* @__PURE__ */ (0, e.jsx)("label", {
|
|
759
|
+
className: n["rst-dashboard-builder-field-label"],
|
|
760
|
+
children: "Actions"
|
|
761
|
+
}),
|
|
762
|
+
/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
763
|
+
className: n["rst-dashboard-builder-checkbox-row"],
|
|
764
|
+
children: [/* @__PURE__ */ (0, e.jsx)(ue, {
|
|
765
|
+
checked: r.enableExport ?? !0,
|
|
766
|
+
onChange: (t) => o("enableExport", t)
|
|
767
|
+
}), /* @__PURE__ */ (0, e.jsx)("span", {
|
|
768
|
+
className: n["rst-dashboard-builder-checkbox-label"],
|
|
769
|
+
children: "Export CSV"
|
|
770
|
+
})]
|
|
771
|
+
}),
|
|
772
|
+
/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
773
|
+
className: n["rst-dashboard-builder-checkbox-row"],
|
|
774
|
+
children: [/* @__PURE__ */ (0, e.jsx)(ue, {
|
|
775
|
+
checked: r.enableScreenshot ?? !1,
|
|
776
|
+
onChange: (t) => o("enableScreenshot", t)
|
|
777
|
+
}), /* @__PURE__ */ (0, e.jsx)("span", {
|
|
778
|
+
className: n["rst-dashboard-builder-checkbox-label"],
|
|
779
|
+
children: "Screenshot"
|
|
780
|
+
})]
|
|
781
|
+
}),
|
|
782
|
+
/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
783
|
+
className: n["rst-dashboard-builder-checkbox-row"],
|
|
784
|
+
children: [/* @__PURE__ */ (0, e.jsx)(ue, {
|
|
785
|
+
checked: r.enableExpand ?? !0,
|
|
786
|
+
onChange: (t) => o("enableExpand", t)
|
|
787
|
+
}), /* @__PURE__ */ (0, e.jsx)("span", {
|
|
788
|
+
className: n["rst-dashboard-builder-checkbox-label"],
|
|
789
|
+
children: "Expand"
|
|
790
|
+
})]
|
|
791
|
+
}),
|
|
792
|
+
/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
793
|
+
className: n["rst-dashboard-builder-checkbox-row"],
|
|
794
|
+
children: [/* @__PURE__ */ (0, e.jsx)(ue, {
|
|
795
|
+
checked: r.enableFilter ?? !0,
|
|
796
|
+
onChange: (t) => o("enableFilter", t)
|
|
797
|
+
}), /* @__PURE__ */ (0, e.jsx)("span", {
|
|
798
|
+
className: n["rst-dashboard-builder-checkbox-label"],
|
|
799
|
+
children: "Filter"
|
|
800
|
+
})]
|
|
801
|
+
})
|
|
802
|
+
]
|
|
803
|
+
}),
|
|
804
|
+
/* @__PURE__ */ (0, e.jsx)("div", { className: n["rst-dashboard-builder-configurator-divider"] }),
|
|
805
|
+
/* @__PURE__ */ (0, e.jsx)(Le, {
|
|
806
|
+
schema: w,
|
|
807
|
+
values: R,
|
|
808
|
+
onChange: L,
|
|
809
|
+
columns: g,
|
|
810
|
+
scope: "all",
|
|
811
|
+
componentId: r.componentType,
|
|
812
|
+
onComponentChange: E,
|
|
813
|
+
componentMetaList: Pe
|
|
814
|
+
}, r.dataSourceId ?? "no-ds"),
|
|
815
|
+
/* @__PURE__ */ (0, e.jsx)("div", { className: n["rst-dashboard-builder-configurator-divider"] }),
|
|
816
|
+
/* @__PURE__ */ (0, e.jsx)(Z, {
|
|
817
|
+
variant: "danger",
|
|
818
|
+
size: "small",
|
|
819
|
+
value: "Remove widget",
|
|
820
|
+
leadingVisual: "trash",
|
|
821
|
+
onClick: s
|
|
822
|
+
})
|
|
823
|
+
]
|
|
824
|
+
})]
|
|
825
|
+
}) : /* @__PURE__ */ (0, e.jsxs)("aside", {
|
|
826
|
+
className: n["rst-dashboard-builder-configurator"],
|
|
827
|
+
"aria-label": "Add widget",
|
|
828
|
+
children: [/* @__PURE__ */ (0, e.jsx)("div", {
|
|
829
|
+
className: n["rst-dashboard-builder-configurator-header"],
|
|
830
|
+
children: /* @__PURE__ */ (0, e.jsx)(te, {
|
|
831
|
+
variant: "heading",
|
|
832
|
+
children: "Add Widget"
|
|
833
|
+
})
|
|
834
|
+
}), /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
835
|
+
className: n["rst-dashboard-builder-configurator-body"],
|
|
836
|
+
children: [cr.map((t) => /* @__PURE__ */ (0, e.jsxs)("button", {
|
|
837
|
+
className: n["rst-dashboard-builder-add-widget-item"],
|
|
838
|
+
onClick: () => h(t.type),
|
|
839
|
+
children: [/* @__PURE__ */ (0, e.jsx)(ve, { src: t.icon }), /* @__PURE__ */ (0, e.jsxs)("div", { children: [/* @__PURE__ */ (0, e.jsx)("div", {
|
|
840
|
+
className: n["rst-dashboard-builder-add-widget-item-label"],
|
|
841
|
+
children: t.label
|
|
842
|
+
}), /* @__PURE__ */ (0, e.jsx)("div", {
|
|
843
|
+
className: n["rst-dashboard-builder-add-widget-item-desc"],
|
|
844
|
+
children: t.description
|
|
845
|
+
})] })]
|
|
846
|
+
}, t.type)), O.length > 0 && /* @__PURE__ */ (0, e.jsxs)(e.Fragment, { children: [
|
|
847
|
+
/* @__PURE__ */ (0, e.jsx)("div", { className: n["rst-dashboard-builder-configurator-divider"] }),
|
|
848
|
+
/* @__PURE__ */ (0, e.jsx)(te, {
|
|
849
|
+
variant: "heading",
|
|
850
|
+
children: "Pre-built Sections"
|
|
851
|
+
}),
|
|
852
|
+
O.map((t) => /* @__PURE__ */ (0, e.jsxs)("button", {
|
|
853
|
+
className: n["rst-dashboard-builder-add-widget-item"],
|
|
854
|
+
onClick: () => j?.(t),
|
|
855
|
+
children: [/* @__PURE__ */ (0, e.jsx)(ve, { src: "layout" }), /* @__PURE__ */ (0, e.jsxs)("div", { children: [/* @__PURE__ */ (0, e.jsx)("div", {
|
|
856
|
+
className: n["rst-dashboard-builder-add-widget-item-label"],
|
|
857
|
+
children: t.name
|
|
858
|
+
}), /* @__PURE__ */ (0, e.jsx)("div", {
|
|
859
|
+
className: n["rst-dashboard-builder-add-widget-item-desc"],
|
|
860
|
+
children: t.description
|
|
861
|
+
})] })]
|
|
862
|
+
}, t.name))
|
|
863
|
+
] })]
|
|
864
|
+
})]
|
|
865
|
+
});
|
|
866
|
+
};
|
|
867
|
+
ze.displayName = "WidgetConfigurator";
|
|
868
|
+
var ur = ({ dataSources: r, initialConfig: a, templates: i, prebuiltSections: s, onSave: b, onChange: h, widgetActionDefaults: p, readOnly: j, className: k }) => {
|
|
869
|
+
const { state: c, mode: f, setMode: g, addWidget: w, addPrebuiltWidget: R, removeWidget: o, updateWidget: E, moveWidget: L, selectWidget: O, selectedWidget: t, setName: l, setFilters: B, loadConfig: u } = ir(a, j), [x, W] = D(!1), [d, C] = D("dialog"), [P, U] = D(null), [ee, re] = D(null), [_, le] = D(!1), [v, N] = D(null), z = X(() => dr(c.config.widgets, r), [c.config.widgets, r]), M = f === "view", G = M ? ee : c.config.filters;
|
|
870
|
+
se(() => {
|
|
871
|
+
x && N(G);
|
|
872
|
+
}, [x]);
|
|
873
|
+
const ne = y(() => {
|
|
874
|
+
M ? re(v) : B(v), W(!1);
|
|
875
|
+
}, [
|
|
876
|
+
v,
|
|
877
|
+
M,
|
|
878
|
+
B
|
|
879
|
+
]);
|
|
880
|
+
se(() => {
|
|
881
|
+
M && !_ && (re(c.config.filters), le(!0)), M || le(!1);
|
|
882
|
+
}, [
|
|
883
|
+
M,
|
|
884
|
+
_,
|
|
885
|
+
c.config.filters
|
|
886
|
+
]);
|
|
887
|
+
const Y = ie(h);
|
|
888
|
+
Y.current = h;
|
|
889
|
+
const H = y((m, $) => {
|
|
890
|
+
(M ? re : B)((ae) => ({
|
|
891
|
+
...ae ?? {},
|
|
892
|
+
[m]: $
|
|
893
|
+
}));
|
|
894
|
+
}, [M, B]), T = X(() => ({
|
|
895
|
+
filters: G,
|
|
896
|
+
onFilterChange: H
|
|
897
|
+
}), [G, H]), I = X(() => !i || i.length === 0 ? [] : i.filter((m) => m.version === 1), [i]), q = X(() => I.map((m) => ({
|
|
898
|
+
value: m.name,
|
|
899
|
+
id: m.name,
|
|
900
|
+
description: m.description
|
|
901
|
+
})), [I]), K = y((m) => {
|
|
902
|
+
const $ = I.find((J) => J.name === m);
|
|
903
|
+
if (!$) return;
|
|
904
|
+
const ae = {
|
|
905
|
+
version: 1,
|
|
906
|
+
...$.config
|
|
907
|
+
};
|
|
908
|
+
u(ae);
|
|
909
|
+
}, [I, u]), F = X(() => ({
|
|
910
|
+
enableExport: p?.enableExport ?? !0,
|
|
911
|
+
enableScreenshot: p?.enableScreenshot ?? !1,
|
|
912
|
+
enableExpand: p?.enableExpand ?? !0,
|
|
913
|
+
enableFilter: p?.enableFilter ?? !0
|
|
914
|
+
}), [p]), ce = y((m) => ({
|
|
915
|
+
enableExport: m.enableExport ?? F.enableExport,
|
|
916
|
+
enableScreenshot: m.enableScreenshot ?? F.enableScreenshot,
|
|
917
|
+
enableExpand: m.enableExpand ?? F.enableExpand,
|
|
918
|
+
enableFilter: m.enableFilter ?? F.enableFilter
|
|
919
|
+
}), [F]);
|
|
920
|
+
se(() => {
|
|
921
|
+
Y.current?.(c.config);
|
|
922
|
+
}, [c.config]);
|
|
923
|
+
const S = [n["rst-dashboard-builder"], k].filter(Boolean).join(" "), A = y(() => {
|
|
924
|
+
b(c.config);
|
|
925
|
+
}, [c.config, b]);
|
|
926
|
+
return /* @__PURE__ */ (0, e.jsx)("div", {
|
|
927
|
+
className: S,
|
|
928
|
+
children: /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
929
|
+
className: n["rst-dashboard-builder-main"],
|
|
930
|
+
children: [/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
931
|
+
className: n["rst-dashboard-builder-toolbar"],
|
|
932
|
+
children: [/* @__PURE__ */ (0, e.jsxs)("div", {
|
|
933
|
+
className: n["rst-dashboard-builder-toolbar-left"],
|
|
934
|
+
children: [M ? /* @__PURE__ */ (0, e.jsx)("span", {
|
|
935
|
+
className: n["rst-dashboard-builder-name-display"],
|
|
936
|
+
children: c.config.name
|
|
937
|
+
}) : /* @__PURE__ */ (0, e.jsx)("input", {
|
|
938
|
+
className: n["rst-dashboard-builder-name-input"],
|
|
939
|
+
type: "text",
|
|
940
|
+
value: c.config.name,
|
|
941
|
+
onChange: (m) => l(m.target.value),
|
|
942
|
+
placeholder: "Dashboard name",
|
|
943
|
+
"aria-label": "Dashboard name"
|
|
944
|
+
}), Object.keys(z).length > 0 && /* @__PURE__ */ (0, e.jsx)(Z, {
|
|
945
|
+
variant: "invisible",
|
|
946
|
+
size: "small",
|
|
947
|
+
leadingVisual: "filter",
|
|
948
|
+
onClick: () => W((m) => !m),
|
|
949
|
+
"aria-label": "Toggle filter panel",
|
|
950
|
+
"aria-pressed": x
|
|
951
|
+
})]
|
|
952
|
+
}), /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
953
|
+
className: n["rst-dashboard-builder-toolbar-right"],
|
|
954
|
+
children: [
|
|
955
|
+
I.length > 0 && !M && /* @__PURE__ */ (0, e.jsx)(Oe, {
|
|
956
|
+
options: q,
|
|
957
|
+
onChange: K,
|
|
958
|
+
placeholder: "Load Template",
|
|
959
|
+
size: "small"
|
|
960
|
+
}),
|
|
961
|
+
!j && /* @__PURE__ */ (0, e.jsx)(Ee, {
|
|
962
|
+
value: f,
|
|
963
|
+
options: [{ value: "edit" }, { value: "view" }],
|
|
964
|
+
onChange: (m) => g(m)
|
|
965
|
+
}),
|
|
966
|
+
!M && /* @__PURE__ */ (0, e.jsx)(Z, {
|
|
967
|
+
variant: "primary",
|
|
968
|
+
size: "small",
|
|
969
|
+
value: "Save",
|
|
970
|
+
onClick: A
|
|
971
|
+
})
|
|
972
|
+
]
|
|
973
|
+
})]
|
|
974
|
+
}), /* @__PURE__ */ (0, e.jsx)(Ve, {
|
|
975
|
+
value: T,
|
|
976
|
+
children: /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
977
|
+
style: {
|
|
978
|
+
display: "flex",
|
|
979
|
+
flex: 1,
|
|
980
|
+
overflow: "hidden"
|
|
981
|
+
},
|
|
982
|
+
children: [
|
|
983
|
+
/* @__PURE__ */ (0, e.jsx)(De, {
|
|
984
|
+
mode: f,
|
|
985
|
+
widgets: c.config.widgets,
|
|
986
|
+
selectedWidgetId: c.selectedWidgetId,
|
|
987
|
+
dataSources: r,
|
|
988
|
+
onSelectWidget: O,
|
|
989
|
+
onMoveWidget: L,
|
|
990
|
+
onRemoveWidget: o,
|
|
991
|
+
onAddWidget: w,
|
|
992
|
+
onChange: () => {
|
|
993
|
+
},
|
|
994
|
+
getWidgetActions: ce
|
|
995
|
+
}),
|
|
996
|
+
x && Object.keys(z).length > 0 && /* @__PURE__ */ (0, e.jsxs)(me, {
|
|
997
|
+
open: x,
|
|
998
|
+
variant: d,
|
|
999
|
+
position: d === "dialog" ? "center" : "right",
|
|
1000
|
+
onClose: () => W(!1),
|
|
1001
|
+
closeOnEscape: !0,
|
|
1002
|
+
closeOnClickOutside: d === "dialog",
|
|
1003
|
+
width: d === "sidepanel" ? 360 : void 0,
|
|
1004
|
+
maxWidth: d === "dialog" ? 640 : void 0,
|
|
1005
|
+
maxHeight: d === "dialog" ? "80vh" : void 0,
|
|
1006
|
+
"aria-label": "Dashboard filters",
|
|
1007
|
+
children: [
|
|
1008
|
+
/* @__PURE__ */ (0, e.jsx)(me.Header, {
|
|
1009
|
+
title: "Filters",
|
|
1010
|
+
onClose: () => W(!1),
|
|
1011
|
+
actions: /* @__PURE__ */ (0, e.jsx)(Z, {
|
|
1012
|
+
variant: "invisible",
|
|
1013
|
+
size: "small",
|
|
1014
|
+
leadingVisual: d === "dialog" ? "square-half" : "open-center",
|
|
1015
|
+
onClick: () => C((m) => m === "dialog" ? "sidepanel" : "dialog"),
|
|
1016
|
+
"aria-label": d === "dialog" ? "Switch to side panel" : "Switch to dialog"
|
|
1017
|
+
})
|
|
1018
|
+
}),
|
|
1019
|
+
/* @__PURE__ */ (0, e.jsx)("div", {
|
|
1020
|
+
className: n["rst-dashboard-builder-filter-body"],
|
|
1021
|
+
children: (() => {
|
|
1022
|
+
const m = Object.keys(z);
|
|
1023
|
+
if (m.length === 0) return /* @__PURE__ */ (0, e.jsx)("div", {
|
|
1024
|
+
style: { padding: "var(--rst-space-default)" },
|
|
1025
|
+
children: "No data sources to filter."
|
|
1026
|
+
});
|
|
1027
|
+
const $ = P && m.includes(P) ? P : m[0], ae = v?.[$] ?? Ye();
|
|
1028
|
+
return /* @__PURE__ */ (0, e.jsxs)(e.Fragment, { children: [/* @__PURE__ */ (0, e.jsx)("div", {
|
|
1029
|
+
className: n["rst-dashboard-builder-filter-tabs"],
|
|
1030
|
+
children: m.map((J) => /* @__PURE__ */ (0, e.jsx)(Z, {
|
|
1031
|
+
value: J,
|
|
1032
|
+
variant: J === $ ? "base" : "invisible",
|
|
1033
|
+
size: "small",
|
|
1034
|
+
onClick: () => U(J),
|
|
1035
|
+
children: J
|
|
1036
|
+
}, J))
|
|
1037
|
+
}), /* @__PURE__ */ (0, e.jsx)(Ge, {
|
|
1038
|
+
filters: ae,
|
|
1039
|
+
onChange: (J) => N((We) => ({
|
|
1040
|
+
...We ?? {},
|
|
1041
|
+
[$]: J.filters.length === 0 ? null : J
|
|
1042
|
+
})),
|
|
1043
|
+
fieldOptions: z[$]
|
|
1044
|
+
})] });
|
|
1045
|
+
})()
|
|
1046
|
+
}),
|
|
1047
|
+
/* @__PURE__ */ (0, e.jsxs)(me.Footer, { children: [/* @__PURE__ */ (0, e.jsx)(Z, {
|
|
1048
|
+
variant: "invisible",
|
|
1049
|
+
size: "small",
|
|
1050
|
+
value: "Clear",
|
|
1051
|
+
onClick: () => N({})
|
|
1052
|
+
}), /* @__PURE__ */ (0, e.jsx)(Z, {
|
|
1053
|
+
variant: "primary",
|
|
1054
|
+
size: "small",
|
|
1055
|
+
value: "Apply",
|
|
1056
|
+
onClick: ne
|
|
1057
|
+
})] })
|
|
1058
|
+
]
|
|
1059
|
+
}),
|
|
1060
|
+
!M && /* @__PURE__ */ (0, e.jsx)(ze, {
|
|
1061
|
+
widget: t,
|
|
1062
|
+
dataSources: r,
|
|
1063
|
+
onUpdate: (m) => {
|
|
1064
|
+
t && E(t.id, m);
|
|
1065
|
+
},
|
|
1066
|
+
onRemove: () => {
|
|
1067
|
+
t && o(t.id);
|
|
1068
|
+
},
|
|
1069
|
+
onClose: () => O(null),
|
|
1070
|
+
onAddWidget: (m) => {
|
|
1071
|
+
const $ = Object.values(r)[0], ae = Me(6, 3, c.config.widgets);
|
|
1072
|
+
w(m, $?.id ?? "", ae);
|
|
1073
|
+
},
|
|
1074
|
+
prebuiltSections: s,
|
|
1075
|
+
onAddPrebuiltSection: (m) => {
|
|
1076
|
+
R(m);
|
|
1077
|
+
}
|
|
1078
|
+
})
|
|
1079
|
+
]
|
|
1080
|
+
})
|
|
1081
|
+
})]
|
|
1082
|
+
})
|
|
1083
|
+
});
|
|
1084
|
+
};
|
|
1085
|
+
ur.displayName = "DashboardBuilder";
|
|
1086
|
+
var he = {
|
|
1087
|
+
"rst-border-beam": "_rst-border-beam_4g5sg_1",
|
|
1088
|
+
"rst-border-beam-effect": "_rst-border-beam-effect_4g5sg_7",
|
|
1089
|
+
"rst-border-beam-ring": "_rst-border-beam-ring_4g5sg_15",
|
|
1090
|
+
"rst-border-beam-spin": "_rst-border-beam-spin_4g5sg_27",
|
|
1091
|
+
"rst-border-beam-travel": "_rst-border-beam-travel_4g5sg_1"
|
|
1092
|
+
};
|
|
1093
|
+
function hr(r) {
|
|
1094
|
+
return [...r].filter((a) => a.color).map((a) => ({
|
|
1095
|
+
...a,
|
|
1096
|
+
percent: Math.min(100, Math.max(0, a.percent))
|
|
1097
|
+
})).sort((a, i) => a.percent - i.percent);
|
|
1098
|
+
}
|
|
1099
|
+
function br(r, a, i, s) {
|
|
1100
|
+
const b = 360 / Math.max(1, s), h = 2 * (a + i);
|
|
1101
|
+
return h <= 0 || r <= 0 ? Math.min(90, b) : Math.min(r / h * 360, b);
|
|
1102
|
+
}
|
|
1103
|
+
function mr(r, a) {
|
|
1104
|
+
const i = Math.max(0, Math.min(a, 360)), s = hr(r);
|
|
1105
|
+
return `conic-gradient(from 0deg, ${s.length ? s.map((b) => `${b.color} ${b.percent / 100 * i}deg`).join(", ") : "var(--rst-borderColor-focus) 0deg"}, transparent ${i}deg, transparent 360deg)`;
|
|
1106
|
+
}
|
|
1107
|
+
var xr = [
|
|
1108
|
+
{
|
|
1109
|
+
color: "transparent",
|
|
1110
|
+
percent: 0
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
color: "var(--rst-borderColor-primary-default)",
|
|
1114
|
+
percent: 70
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
color: "var(--rst-borderColor-focus)",
|
|
1118
|
+
percent: 100
|
|
1119
|
+
}
|
|
1120
|
+
], pr = ({ children: r, color: a = xr, count: i = 1, duration: s = 6, lineWidth: b = 1, outset: h = 0, inset: p = 0, size: j = 120, className: k, style: c, ...f }) => {
|
|
1121
|
+
const g = ie(null), [w, R] = D({
|
|
1122
|
+
radius: "",
|
|
1123
|
+
width: 0,
|
|
1124
|
+
height: 0
|
|
1125
|
+
});
|
|
1126
|
+
se(() => {
|
|
1127
|
+
const t = g.current?.firstElementChild;
|
|
1128
|
+
if (!t || typeof ResizeObserver > "u") return;
|
|
1129
|
+
const l = new ResizeObserver(() => {
|
|
1130
|
+
R({
|
|
1131
|
+
radius: getComputedStyle(t).borderTopLeftRadius,
|
|
1132
|
+
width: t.clientWidth,
|
|
1133
|
+
height: t.clientHeight
|
|
1134
|
+
});
|
|
1135
|
+
});
|
|
1136
|
+
return l.observe(t), () => l.disconnect();
|
|
1137
|
+
}, []);
|
|
1138
|
+
const o = Math.max(1, Math.floor(i)), E = X(() => mr(a, br(j, w.width, w.height, o)), [
|
|
1139
|
+
a,
|
|
1140
|
+
j,
|
|
1141
|
+
w.width,
|
|
1142
|
+
w.height,
|
|
1143
|
+
o
|
|
1144
|
+
]), L = 360 / o, O = Math.hypot(w.width + 2 * h, w.height + 2 * h);
|
|
1145
|
+
return /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
1146
|
+
ref: g,
|
|
1147
|
+
className: [he["rst-border-beam"], k].filter(Boolean).join(" "),
|
|
1148
|
+
style: {
|
|
1149
|
+
"--rst-border-beam-gradient": E,
|
|
1150
|
+
"--rst-border-beam-duration": `${s}s`,
|
|
1151
|
+
"--rst-border-beam-line-width": `${b}px`,
|
|
1152
|
+
"--rst-border-beam-outset": `${h}px`,
|
|
1153
|
+
"--rst-border-beam-inset": `${p}px`,
|
|
1154
|
+
...O > 0 ? { "--rst-border-beam-diagonal": `${O}px` } : {},
|
|
1155
|
+
...w.radius ? { "--rst-border-beam-radius": w.radius } : {},
|
|
1156
|
+
...c
|
|
1157
|
+
},
|
|
1158
|
+
...f,
|
|
1159
|
+
children: [r, /* @__PURE__ */ (0, e.jsx)("span", {
|
|
1160
|
+
className: he["rst-border-beam-effect"],
|
|
1161
|
+
"aria-hidden": "true",
|
|
1162
|
+
children: /* @__PURE__ */ (0, e.jsx)("span", {
|
|
1163
|
+
className: he["rst-border-beam-ring"],
|
|
1164
|
+
children: Array.from({ length: o }, (t, l) => /* @__PURE__ */ (0, e.jsx)("span", {
|
|
1165
|
+
className: he["rst-border-beam-spin"],
|
|
1166
|
+
style: { "--rst-border-beam-offset": `${l * L}deg` }
|
|
1167
|
+
}, l))
|
|
1168
|
+
})
|
|
1169
|
+
})]
|
|
1170
|
+
});
|
|
1171
|
+
};
|
|
1172
|
+
pr.displayName = "BorderBeam";
|
|
1173
|
+
function fr(r) {
|
|
1174
|
+
return r.filter((a) => a.type === "text").map((a) => a.text).join(" ").trim();
|
|
1175
|
+
}
|
|
1176
|
+
function gr(r) {
|
|
1177
|
+
return r.data ?? [];
|
|
1178
|
+
}
|
|
1179
|
+
function Re(r, a) {
|
|
1180
|
+
return r.events?.includes(a) ?? !1;
|
|
1181
|
+
}
|
|
1182
|
+
function _r({ block: r, onBlockEvent: a }) {
|
|
1183
|
+
const i = gr(r), s = r.props ?? {};
|
|
1184
|
+
if (r.component === "form") return /* @__PURE__ */ (0, e.jsx)(vr, {
|
|
1185
|
+
block: r,
|
|
1186
|
+
onBlockEvent: a
|
|
1187
|
+
});
|
|
1188
|
+
if (r.component === "chart") {
|
|
1189
|
+
const b = s.height ?? 16;
|
|
1190
|
+
return /* @__PURE__ */ (0, e.jsx)(qe, {
|
|
1191
|
+
data: i,
|
|
1192
|
+
columns: r.columns,
|
|
1193
|
+
type: s.type ?? "bar",
|
|
1194
|
+
xAxisColumn: s.xAxisColumn,
|
|
1195
|
+
yAxisColumns: s.yAxisColumns,
|
|
1196
|
+
series: s.series,
|
|
1197
|
+
title: s.title,
|
|
1198
|
+
subtitle: s.subtitle,
|
|
1199
|
+
showLegend: s.showLegend,
|
|
1200
|
+
showGrid: s.showGrid,
|
|
1201
|
+
height: b
|
|
1202
|
+
});
|
|
1203
|
+
}
|
|
1204
|
+
return r.component === "kpi" ? /* @__PURE__ */ (0, e.jsx)(Fe, {
|
|
1205
|
+
data: i[0] ?? {},
|
|
1206
|
+
columns: r.columns,
|
|
1207
|
+
layout: Ie(s.layout)
|
|
1208
|
+
}) : r.component === "card-list" ? /* @__PURE__ */ (0, e.jsx)(Ze, {
|
|
1209
|
+
data: i,
|
|
1210
|
+
columns: r.columns,
|
|
1211
|
+
layout: Ae(s.layout),
|
|
1212
|
+
onCardClick: Re(r, "action") ? (b) => a?.({
|
|
1213
|
+
blockId: r.id,
|
|
1214
|
+
component: "card-list",
|
|
1215
|
+
event: "action",
|
|
1216
|
+
handler: r.handler,
|
|
1217
|
+
values: b
|
|
1218
|
+
}) : void 0
|
|
1219
|
+
}) : /* @__PURE__ */ (0, e.jsx)(Ke, {
|
|
1220
|
+
data: i,
|
|
1221
|
+
columns: r.columns,
|
|
1222
|
+
enableSorting: s.enableSorting !== !1,
|
|
1223
|
+
enableSelection: s.enableSelection === !0,
|
|
1224
|
+
showGrid: s.showGrid ?? "horizontal",
|
|
1225
|
+
columnSizing: "fixed",
|
|
1226
|
+
enableVirtualization: s.enableVirtualization !== !1
|
|
1227
|
+
});
|
|
1228
|
+
}
|
|
1229
|
+
function vr({ block: r, onBlockEvent: a }) {
|
|
1230
|
+
const [i, s] = D(!1);
|
|
1231
|
+
return Re(r, "submit") ? /* @__PURE__ */ (0, e.jsx)(fe, {
|
|
1232
|
+
data: r.data ?? [{}],
|
|
1233
|
+
columns: r.columns,
|
|
1234
|
+
labelAlign: "top",
|
|
1235
|
+
onSubmit: async (b) => {
|
|
1236
|
+
s(!0);
|
|
1237
|
+
try {
|
|
1238
|
+
await a?.({
|
|
1239
|
+
blockId: r.id,
|
|
1240
|
+
component: "form",
|
|
1241
|
+
event: "submit",
|
|
1242
|
+
handler: r.handler,
|
|
1243
|
+
values: b
|
|
1244
|
+
});
|
|
1245
|
+
} finally {
|
|
1246
|
+
s(!1);
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
actions: [{
|
|
1250
|
+
type: "submit",
|
|
1251
|
+
variant: "primary",
|
|
1252
|
+
value: "Submit",
|
|
1253
|
+
loading: i,
|
|
1254
|
+
disabled: i
|
|
1255
|
+
}, {
|
|
1256
|
+
type: "reset",
|
|
1257
|
+
variant: "invisible",
|
|
1258
|
+
value: "Reset",
|
|
1259
|
+
disabled: i
|
|
1260
|
+
}]
|
|
1261
|
+
}) : /* @__PURE__ */ (0, e.jsx)(fe, {
|
|
1262
|
+
data: r.data ?? [{}],
|
|
1263
|
+
columns: r.columns
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
var V = {
|
|
1267
|
+
"rst-chat": "_rst-chat_12syz_1",
|
|
1268
|
+
"rst-chat-empty": "_rst-chat-empty_12syz_9",
|
|
1269
|
+
"rst-chat-messages": "_rst-chat-messages_12syz_19",
|
|
1270
|
+
"rst-chat-message": "_rst-chat-message_12syz_19",
|
|
1271
|
+
"rst-chat-message-user": "_rst-chat-message-user_12syz_33",
|
|
1272
|
+
"rst-chat-message-assistant": "_rst-chat-message-assistant_12syz_37",
|
|
1273
|
+
"rst-chat-bubble": "_rst-chat-bubble_12syz_41",
|
|
1274
|
+
"rst-chat-bubble-user": "_rst-chat-bubble-user_12syz_51",
|
|
1275
|
+
"rst-chat-bubble-assistant": "_rst-chat-bubble-assistant_12syz_56",
|
|
1276
|
+
"rst-chat-text": "_rst-chat-text_12syz_63",
|
|
1277
|
+
"rst-chat-block": "_rst-chat-block_12syz_68",
|
|
1278
|
+
"rst-chat-block-title": "_rst-chat-block-title_12syz_76",
|
|
1279
|
+
"rst-chat-processing": "_rst-chat-processing_12syz_80",
|
|
1280
|
+
"rst-chat-composer": "_rst-chat-composer_12syz_84"
|
|
1281
|
+
};
|
|
1282
|
+
function Mr({ messages: r, isProcessing: a = !1, inputValue: i, onInputChange: s, onSubmit: b, onKeyDown: h, onBlockEvent: p, emptyStateText: j = "Ask a question to get started.", inputPlaceholder: k = "Ask something...", className: c, renderBlock: f }) {
|
|
1283
|
+
const g = ie(null);
|
|
1284
|
+
se(() => {
|
|
1285
|
+
const o = g.current;
|
|
1286
|
+
o && (o.scrollTop = o.scrollHeight);
|
|
1287
|
+
}, [r, a]);
|
|
1288
|
+
const w = a || i.trim().length === 0, R = (o, E) => o.type === "text" ? /* @__PURE__ */ (0, e.jsx)(te, {
|
|
1289
|
+
variant: "body",
|
|
1290
|
+
className: V["rst-chat-text"],
|
|
1291
|
+
children: o.text
|
|
1292
|
+
}, E) : /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
1293
|
+
className: V["rst-chat-block"],
|
|
1294
|
+
children: [o.block.meta?.title && /* @__PURE__ */ (0, e.jsx)(te, {
|
|
1295
|
+
variant: "label",
|
|
1296
|
+
className: V["rst-chat-block-title"],
|
|
1297
|
+
children: o.block.meta.title
|
|
1298
|
+
}), f ? f(o.block) : /* @__PURE__ */ (0, e.jsx)(_r, {
|
|
1299
|
+
block: o.block,
|
|
1300
|
+
onBlockEvent: p
|
|
1301
|
+
})]
|
|
1302
|
+
}, o.block.id);
|
|
1303
|
+
return /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
1304
|
+
className: [V["rst-chat"], c].filter(Boolean).join(" "),
|
|
1305
|
+
children: [r.length === 0 ? /* @__PURE__ */ (0, e.jsx)("div", {
|
|
1306
|
+
className: V["rst-chat-empty"],
|
|
1307
|
+
children: /* @__PURE__ */ (0, e.jsx)(te, {
|
|
1308
|
+
variant: "body",
|
|
1309
|
+
children: j
|
|
1310
|
+
})
|
|
1311
|
+
}) : /* @__PURE__ */ (0, e.jsxs)("div", {
|
|
1312
|
+
ref: g,
|
|
1313
|
+
className: V["rst-chat-messages"],
|
|
1314
|
+
role: "log",
|
|
1315
|
+
"aria-live": "polite",
|
|
1316
|
+
children: [r.map((o) => /* @__PURE__ */ (0, e.jsx)("article", {
|
|
1317
|
+
className: [V["rst-chat-message"], V[`rst-chat-message-${o.role}`]].join(" "),
|
|
1318
|
+
"aria-label": `${o.role === "user" ? "You" : "Assistant"}: ${fr(o.parts)}`,
|
|
1319
|
+
children: /* @__PURE__ */ (0, e.jsx)("div", {
|
|
1320
|
+
className: [V["rst-chat-bubble"], V[`rst-chat-bubble-${o.role}`]].join(" "),
|
|
1321
|
+
children: o.parts.map(R)
|
|
1322
|
+
})
|
|
1323
|
+
}, o.id)), a && /* @__PURE__ */ (0, e.jsx)("div", {
|
|
1324
|
+
className: V["rst-chat-processing"],
|
|
1325
|
+
children: /* @__PURE__ */ (0, e.jsx)(te, {
|
|
1326
|
+
variant: "caption",
|
|
1327
|
+
children: "Working..."
|
|
1328
|
+
})
|
|
1329
|
+
})]
|
|
1330
|
+
}), /* @__PURE__ */ (0, e.jsxs)("form", {
|
|
1331
|
+
className: V["rst-chat-composer"],
|
|
1332
|
+
onSubmit: (o) => {
|
|
1333
|
+
o.preventDefault(), w || b();
|
|
1334
|
+
},
|
|
1335
|
+
children: [/* @__PURE__ */ (0, e.jsx)(Qe, {
|
|
1336
|
+
value: i,
|
|
1337
|
+
onChange: s,
|
|
1338
|
+
onKeyDown: h,
|
|
1339
|
+
placeholder: k,
|
|
1340
|
+
ariaLabel: "Message",
|
|
1341
|
+
rows: 1,
|
|
1342
|
+
disabled: a
|
|
1343
|
+
}), /* @__PURE__ */ (0, e.jsx)(Z, {
|
|
1344
|
+
type: "submit",
|
|
1345
|
+
variant: "primary",
|
|
1346
|
+
value: "Send",
|
|
1347
|
+
leadingVisual: "send",
|
|
1348
|
+
disabled: w
|
|
1349
|
+
})]
|
|
1350
|
+
})]
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
export {
|
|
1354
|
+
pr as BorderBeam,
|
|
1355
|
+
Mr as ChatSurface,
|
|
1356
|
+
Sr as DASHBOARD_CONFIG_VERSION,
|
|
1357
|
+
ur as DashboardBuilder,
|
|
1358
|
+
kr as PipContainer,
|
|
1359
|
+
Nr as usePip
|
|
1360
|
+
};
|