@restio/ui 0.0.10-SNAPSHOT → 0.0.12
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/dist/assets/svg/discussion.svg +1 -0
- package/dist/assets/svg/form.svg +1 -0
- package/dist/assets/svg/list.svg +1 -0
- package/dist/assets/svg/pencil.svg +1 -1
- package/dist/assets/svg/pie-chart.svg +1 -0
- package/dist/assets/svg/table.svg +1 -0
- package/dist/components/checkbox-group/checkbox-group-types.d.ts +28 -0
- package/dist/components/checkbox-group/checkbox-group-types.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/progress-bar/progress-bar-types.d.ts +20 -0
- package/dist/components/progress-bar/progress-bar-types.d.ts.map +1 -0
- package/dist/components/progress-bar/progress-bar.d.ts +7 -0
- package/dist/components/progress-bar/progress-bar.d.ts.map +1 -0
- package/dist/components/radio/radio-types.d.ts +14 -0
- package/dist/components/radio/radio-types.d.ts.map +1 -0
- package/dist/components/radio/radio.d.ts +8 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group-types.d.ts +30 -0
- package/dist/components/radio-group/radio-group-types.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +8 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/typography/typography-types.d.ts +26 -2
- package/dist/components/typography/typography-types.d.ts.map +1 -1
- package/dist/components/typography/typography.d.ts +1 -1
- package/dist/components/typography/typography.d.ts.map +1 -1
- package/dist/custom-components/chat/chat.d.ts.map +1 -1
- package/dist/custom-components/layout/layout-renderers.d.ts +9 -0
- package/dist/custom-components/layout/layout-renderers.d.ts.map +1 -0
- package/dist/custom-components/layout/layout-types.d.ts +24 -10
- package/dist/custom-components/layout/layout-types.d.ts.map +1 -1
- package/dist/custom-components/layout/layout.d.ts +9 -0
- package/dist/custom-components/layout/layout.d.ts.map +1 -1
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +5 -0
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts.map +1 -0
- package/dist/custom-components/markdown/markdown-types.d.ts +3 -2
- package/dist/custom-components/markdown/markdown-types.d.ts.map +1 -1
- package/dist/custom-components/markdown/markdown.d.ts.map +1 -1
- package/dist/data-components/assets/cell-types-asset.d.ts +39 -0
- package/dist/data-components/assets/cell-types-asset.d.ts.map +1 -0
- package/dist/data-components/assets/data-components-asset.d.ts +11 -0
- package/dist/data-components/assets/data-components-asset.d.ts.map +1 -1
- package/dist/data-components/calendar/calendar-types.d.ts +2 -1
- package/dist/data-components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/data-components/calendar/calendar.d.ts +1 -1
- package/dist/data-components/calendar/calendar.d.ts.map +1 -1
- package/dist/data-components/card/card-types.d.ts +21 -0
- package/dist/data-components/card/card-types.d.ts.map +1 -0
- package/dist/data-components/card/card.d.ts +10 -0
- package/dist/data-components/card/card.d.ts.map +1 -0
- package/dist/data-components/card-list/card-list-types.d.ts +22 -0
- package/dist/data-components/card-list/card-list-types.d.ts.map +1 -0
- package/dist/data-components/card-list/card-list.d.ts +13 -0
- package/dist/data-components/card-list/card-list.d.ts.map +1 -0
- package/dist/data-components/card-list/models/ecommerce.d.ts +13 -0
- package/dist/data-components/card-list/models/ecommerce.d.ts.map +1 -0
- package/dist/data-components/cell/cell-registry.d.ts +29 -0
- package/dist/data-components/cell/cell-registry.d.ts.map +1 -0
- package/dist/data-components/cell/cell-types.d.ts +5 -0
- package/dist/data-components/cell/cell-types.d.ts.map +1 -1
- package/dist/data-components/cell/cell-utils.d.ts +0 -6
- package/dist/data-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/data-components/cell/cell.d.ts +1 -1
- package/dist/data-components/cell/cell.d.ts.map +1 -1
- package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts +14 -0
- package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts.map +1 -0
- package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts +7 -0
- package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts.map +1 -0
- package/dist/data-components/chart/chart-types.d.ts +29 -2
- package/dist/data-components/chart/chart-types.d.ts.map +1 -1
- package/dist/data-components/chart/chart-utils.d.ts +28 -0
- package/dist/data-components/chart/chart-utils.d.ts.map +1 -0
- package/dist/data-components/chart/chart.d.ts +1 -1
- package/dist/data-components/chart/chart.d.ts.map +1 -1
- package/dist/data-components/chart/geo/geoChart.d.ts +10 -0
- package/dist/data-components/chart/geo/geoChart.d.ts.map +1 -0
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +2 -0
- package/dist/data-components/chart/sankey/sankeyChart.d.ts.map +1 -1
- package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts +36 -0
- package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts.map +1 -0
- package/dist/data-components/data-component-configurator/data-component-configurator.d.ts +17 -0
- package/dist/data-components/data-component-configurator/data-component-configurator.d.ts.map +1 -0
- package/dist/data-components/data-component-utils.d.ts +4 -0
- package/dist/data-components/data-component-utils.d.ts.map +1 -0
- package/dist/data-components/data-structure/data-structure-utils.d.ts.map +1 -1
- package/dist/data-components/data-structure/data-structure.d.ts +10 -0
- package/dist/data-components/data-structure/data-structure.d.ts.map +1 -1
- package/dist/data-components/filter/filter-types.d.ts +1 -1
- package/dist/data-components/filter/filter-types.d.ts.map +1 -1
- package/dist/data-components/form/form-types.d.ts +44 -1
- package/dist/data-components/form/form-types.d.ts.map +1 -1
- package/dist/data-components/form/form.d.ts +1 -1
- package/dist/data-components/form/form.d.ts.map +1 -1
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +9 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +12 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +7 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +3 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts.map +1 -0
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +21 -0
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-context.d.ts +13 -0
- package/dist/data-components/gantt/gantt-context.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-types.d.ts +102 -0
- package/dist/data-components/gantt/gantt-types.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-utils.d.ts +61 -0
- package/dist/data-components/gantt/gantt-utils.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt.d.ts +4 -0
- package/dist/data-components/gantt/gantt.d.ts.map +1 -0
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +15 -0
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts.map +1 -0
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +18 -0
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts.map +1 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +10 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts.map +1 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +3 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts.map +1 -0
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +13 -0
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts +8 -0
- package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-form/prop-form-types.d.ts +17 -0
- package/dist/data-components/switcher/prop-form/prop-form-types.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-form/prop-form.d.ts +6 -0
- package/dist/data-components/switcher/prop-form/prop-form.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts +53 -0
- package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts +15 -0
- package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-schema/prop-schema.d.ts +38 -0
- package/dist/data-components/switcher/prop-schema/prop-schema.d.ts.map +1 -0
- package/dist/data-components/switcher/switcher-types.d.ts +58 -0
- package/dist/data-components/switcher/switcher-types.d.ts.map +1 -0
- package/dist/data-components/switcher/switcher.d.ts +12 -0
- package/dist/data-components/switcher/switcher.d.ts.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +5 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +5 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +2 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +36 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts.map +1 -1
- package/dist/data-components/table-grid/formula/formula-builder.d.ts.map +1 -1
- package/dist/data-components/table-grid/grouping/grouping.d.ts +15 -0
- package/dist/data-components/table-grid/grouping/grouping.d.ts.map +1 -0
- package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts.map +1 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts.map +1 -1
- package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
- package/dist/data-components/table-grid/selection/selection-utils.d.ts +5 -5
- package/dist/data-components/table-grid/selection/selection-utils.d.ts.map +1 -1
- package/dist/data-components/table-grid/sorting/sorting.d.ts +3 -5
- package/dist/data-components/table-grid/sorting/sorting.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-context/table-context-types.d.ts +3 -0
- package/dist/data-components/table-grid/table-context/table-context-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid-context.d.ts +1 -1
- package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid-panels.d.ts +22 -0
- package/dist/data-components/table-grid/table-grid-panels.d.ts.map +1 -0
- package/dist/data-components/table-grid/table-grid-types.d.ts +28 -1
- package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid.d.ts +9 -2
- package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-utils.d.ts +14 -2
- package/dist/data-components/table-grid/table-utils.d.ts.map +1 -1
- package/dist/data-components/ui-layer/ui-layer-types.d.ts +82 -0
- package/dist/data-components/ui-layer/ui-layer-types.d.ts.map +1 -0
- package/dist/data-components/ui-layer/ui-layer-utils.d.ts +13 -0
- package/dist/data-components/ui-layer/ui-layer-utils.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts +33 -0
- package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts +22 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts +129 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts +28 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts +14 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts +24 -0
- package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/widget-palette.d.ts +29 -0
- package/dist/experimental-components/dashboard-builder/widget-palette.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-context.d.ts +12 -0
- package/dist/framework-components/dashboard/dashboard-context.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-types.d.ts +35 -0
- package/dist/framework-components/dashboard/dashboard-types.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts +1 -0
- package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-widget-types.d.ts +67 -0
- package/dist/framework-components/dashboard/dashboard-widget-types.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-widget.d.ts +17 -0
- package/dist/framework-components/dashboard/dashboard-widget.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard.d.ts +11 -0
- package/dist/framework-components/dashboard/dashboard.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts +11 -0
- package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts +47 -0
- package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts +119 -0
- package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.d.ts +87 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts +2 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts +2 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/field-inference.d.ts +10 -0
- package/dist/framework-components/dashboard/data-engine/field-inference.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts +12 -0
- package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/index.d.ts +8 -0
- package/dist/framework-components/dashboard/data-engine/index.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/join-engine.d.ts +17 -0
- package/dist/framework-components/dashboard/data-engine/join-engine.d.ts.map +1 -0
- package/dist/framework-components/section/section-types.d.ts +14 -0
- package/dist/framework-components/section/section-types.d.ts.map +1 -0
- package/dist/framework-components/section/section.d.ts +9 -0
- package/dist/framework-components/section/section.d.ts.map +1 -0
- package/dist/index.d.ts +36 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts +2 -0
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts.map +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts.map +1 -1
- package/dist/restio-ui.cjs.js +58 -30
- package/dist/restio-ui.es.js +33944 -32056
- package/dist/types/global-types.d.ts +11 -0
- package/dist/types/global-types.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/utility-components/icon/icon-assets.d.ts.map +1 -1
- package/package.json +1 -4
- package/dist/components/graph/graph-types.d.ts +0 -23
- package/dist/components/graph/graph-types.d.ts.map +0 -1
- package/dist/components/graph/graph.d.ts +0 -5
- package/dist/components/graph/graph.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-constants.d.ts +0 -22
- package/dist/custom-components/layout-builder/layout-builder-constants.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-schema.d.ts +0 -967
- package/dist/custom-components/layout-builder/layout-builder-schema.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-templates.d.ts +0 -13
- package/dist/custom-components/layout-builder/layout-builder-templates.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-types.d.ts +0 -73
- package/dist/custom-components/layout-builder/layout-builder-types.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-utils.d.ts +0 -70
- package/dist/custom-components/layout-builder/layout-builder-utils.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +0 -29
- package/dist/custom-components/layout-builder/layout-builder-validation.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder.d.ts +0 -4
- package/dist/custom-components/layout-builder/layout-builder.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +0 -60
- package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-json-editor.d.ts +0 -13
- package/dist/custom-components/layout-builder/layout-json-editor.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.d.ts +0 -49
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.d.ts.map +0 -1
- package/dist/data-components/cell/cell-switch.d.ts +0 -17
- package/dist/data-components/cell/cell-switch.d.ts.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
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-runtime").JSX.Element | null;
|
|
21
|
+
//# sourceMappingURL=gantt-arrows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt-arrows.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/arrows/gantt-arrows.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAgC,SAAS,EAAc,MAAM,gBAAgB,CAAC;AAIrF,MAAM,WAAW,qBAAqB,CAAC,KAAK;IAC1C,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;IACjC,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5E,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;IAClD,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAC7C,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IACnD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAC3C,QAAQ,CAAC,cAAc,EAAE,IAAI,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAcD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,EACtC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,IAAI,EACJ,UAAU,EACV,WAAW,GACZ,EAAE,qBAAqB,CAAC,KAAK,CAAC,kDA0D9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
13
|
+
//# sourceMappingURL=gantt-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt-context.d.ts","sourceRoot":"","sources":["../../../src/data-components/gantt/gantt-context.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,IAAI,CAAC;IAClB,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACtC;AAID,eAAO,MAAM,aAAa,mDAAe,CAAC;AAE1C;;GAEG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,CAInD"}
|
|
@@ -0,0 +1,102 @@
|
|
|
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;
|
|
102
|
+
//# sourceMappingURL=gantt-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/gantt/gantt-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,s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E,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB;AAID,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,WAAW,MAAM,CAAC;AAC/B,eAAO,MAAM,iBAAiB,QAA2B,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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;
|
|
61
|
+
//# sourceMappingURL=gantt-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|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,EAAE,CAsDtF;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,CAGzE;AAGD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EACzC,OAAO,EAAE,KAAK,EACd,UAAU,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,EAAE,GAAG,SAAS,EAC9D,UAAU,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,EACxC,aAAa,EAAE,MAAM,GAAG,MAAM,KAAK,EACnC,WAAW,EAAE,MAAM,GAAG,MAAM,KAAK,GAChC;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,GAAG,EAAE,IAAI,CAAA;CAAE,GAAG,IAAI,CAsBnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt.d.ts","sourceRoot":"","sources":["../../../src/data-components/gantt/gantt.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkD,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AA6NhG,iBAAS,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,2CA+F7C;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
};
|
|
15
|
+
//# sourceMappingURL=useGanttDrag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGanttDrag.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/hooks/useGanttDrag.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,KAAK,IAAI;;;eAE1C,MAAM;eAAS,IAAI;aAAO,IAAI;;EA2CzF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
18
|
+
//# sourceMappingURL=useGanttTimeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGanttTimeline.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/hooks/useGanttTimeline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA8B,MAAM,gBAAgB,CAAC;AAGvE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,IAAI;;;;;;;;;yBA+CtC,MAAM,GAAG,UAAU;8BASd,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC;EAiC/D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type GanttActiveTool = "ai" | null;
|
|
2
|
+
export interface GanttSidebarProps {
|
|
3
|
+
/** Show the AI assistant button */
|
|
4
|
+
enableAI?: boolean;
|
|
5
|
+
/** Currently open tool panel */
|
|
6
|
+
activeTool: GanttActiveTool;
|
|
7
|
+
/** Called when the AI assistant button is clicked */
|
|
8
|
+
onAIClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=gantt-sidebar-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt-sidebar-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/sidebar/gantt-sidebar-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gCAAgC;IAChC,UAAU,EAAE,eAAe,CAAC;IAC5B,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/sidebar/gantt-sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CAMtE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GanttDependency } from '../gantt-types';
|
|
2
|
+
type Status = "active" | "done" | "pending";
|
|
3
|
+
interface Task {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
start: Date;
|
|
7
|
+
end: Date;
|
|
8
|
+
status: Status;
|
|
9
|
+
deps?: (string | GanttDependency)[] | null;
|
|
10
|
+
}
|
|
11
|
+
export declare function generateRandomTasks(count?: number): Task[];
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=gantt-stories-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt-stories-utils.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/stories/gantt-stories-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,KAAK,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5C,UAAU,IAAI;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,eAAe,CAAC,EAAE,GAAG,IAAI,CAAC;CAC5C;AAUD,wBAAgB,mBAAmB,CAAC,KAAK,SAAK,GAAG,IAAI,EAAE,CAoDtD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropFieldDescriptor } from '../prop-schema/prop-schema-types';
|
|
2
|
+
import { DataStructureColumn } from '../../data-structure/data-structure';
|
|
3
|
+
/**
|
|
4
|
+
* Converts a PropFieldDescriptor[] into a DataStructureColumn[] for the Cell
|
|
5
|
+
* component. All prop-schema types are supported — no special cases remain.
|
|
6
|
+
*/
|
|
7
|
+
export declare function propSchemaToFormColumns(schema: PropFieldDescriptor[], availableColumns?: DataStructureColumn<Record<string, unknown>>[]): DataStructureColumn<Record<string, unknown>>[];
|
|
8
|
+
//# sourceMappingURL=prop-form-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-form-adapter.d.ts","sourceRoot":"","sources":["../../../../src/data-components/switcher/prop-form/prop-form-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAuD1E;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,mBAAmB,EAAE,EAC7B,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,GAChE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAEhD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropFieldDescriptor } from '../prop-schema/prop-schema-types';
|
|
2
|
+
import { DataStructureColumn } from '../../data-structure/data-structure';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the PropForm component.
|
|
5
|
+
* Renders a dynamic form based on a schema of PropFieldDescriptors.
|
|
6
|
+
*/
|
|
7
|
+
export interface PropFormProps {
|
|
8
|
+
/** Schema describing which fields to render and how. */
|
|
9
|
+
schema: PropFieldDescriptor[];
|
|
10
|
+
/** Current values for all fields. */
|
|
11
|
+
values: Record<string, unknown>;
|
|
12
|
+
/** Called when a field value changes. */
|
|
13
|
+
onChange: (name: string, value: unknown) => void;
|
|
14
|
+
/** Available columns (for "column" / "columns" type fields). */
|
|
15
|
+
columns?: DataStructureColumn<Record<string, unknown>>[];
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=prop-form-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-form-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/switcher/prop-form/prop-form-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,wDAAwD;IACxD,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,yCAAyC;IACzC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,gEAAgE;IAChE,OAAO,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC1D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropFormProps } from './prop-form-types';
|
|
2
|
+
/**
|
|
3
|
+
* Dynamic form that renders controls based on a PropFieldDescriptor schema.
|
|
4
|
+
*/
|
|
5
|
+
export declare const PropForm: ({ schema, values, onChange, columns }: PropFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=prop-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-form.d.ts","sourceRoot":"","sources":["../../../../src/data-components/switcher/prop-form/prop-form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKlD;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,uCAAuC,aAAa,4CAkD5E,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a prop field is configurable.
|
|
3
|
+
* - `"all"`: visible in both Switcher and Dashboard configurator
|
|
4
|
+
* - `"switcher"`: visible only in the Switcher panel
|
|
5
|
+
* - `"dashboard"`: visible only in the Dashboard configurator
|
|
6
|
+
* - `"none"`: not configurable via UI (callbacks, complex objects, etc.)
|
|
7
|
+
*/
|
|
8
|
+
export type PropFieldScope = "all" | "switcher" | "dashboard" | "none";
|
|
9
|
+
/**
|
|
10
|
+
* Describes a single configurable prop field for the dynamic PropForm.
|
|
11
|
+
*/
|
|
12
|
+
export interface PropFieldDescriptor {
|
|
13
|
+
/** Prop name (matches the key in the SpecificProps interface). */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Control type to render. */
|
|
16
|
+
type: "boolean" | "string" | "number" | "select" | "column" | "columns" | "color[]";
|
|
17
|
+
/** Human-readable label. */
|
|
18
|
+
label: string;
|
|
19
|
+
/** Default value when the prop is not set. */
|
|
20
|
+
defaultValue: unknown;
|
|
21
|
+
/**
|
|
22
|
+
* Where this field is configurable.
|
|
23
|
+
* @default "all"
|
|
24
|
+
*/
|
|
25
|
+
scope?: PropFieldScope;
|
|
26
|
+
/** Options for "select" type controls. */
|
|
27
|
+
options?: {
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
}[];
|
|
31
|
+
/**
|
|
32
|
+
* Optional condition: if provided, the field is only visible when this
|
|
33
|
+
* function returns true given the current form values.
|
|
34
|
+
*/
|
|
35
|
+
condition?: (formValues: Record<string, unknown>) => boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Registry mapping each DataComponentId to its array of PropFieldDescriptors.
|
|
39
|
+
*/
|
|
40
|
+
export type PropSchemaRegistry = Record<string, PropFieldDescriptor[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Helper to create a type-safe prop schema for a component.
|
|
43
|
+
* Ensures the field names match the component's specific props interface.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const tableGridSchema = definePropSchema<TableGridSpecificProps>([
|
|
48
|
+
* { name: "enableSorting", type: "boolean", label: "Enable Sorting", defaultValue: false },
|
|
49
|
+
* ]);
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function definePropSchema<_TProps>(fields: PropFieldDescriptor[]): PropFieldDescriptor[];
|
|
53
|
+
//# sourceMappingURL=prop-schema-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-schema-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/switcher/prop-schema/prop-schema-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,8BAA8B;IAC9B,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IACpF,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,YAAY,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,0CAA0C;IAC1C,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7C;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC;CAC9D;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAC;AAEvE;;;;;;;;;;GAUG;AAEH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,mBAAmB,EAAE,CAE9F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropFieldDescriptor, PropFieldScope } from './prop-schema-types';
|
|
2
|
+
/**
|
|
3
|
+
* Filters a schema array to only include fields visible in the given scope.
|
|
4
|
+
*/
|
|
5
|
+
export declare function filterSchemaByScope(schema: PropFieldDescriptor[], scope: PropFieldScope): PropFieldDescriptor[];
|
|
6
|
+
/**
|
|
7
|
+
* Builds a default values record from a schema array.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildDefaultPropsFromSchema(schema: PropFieldDescriptor[]): Record<string, unknown>;
|
|
10
|
+
/**
|
|
11
|
+
* Merges partial prop values with schema defaults.
|
|
12
|
+
* Useful when restoring a saved configuration that may be incomplete.
|
|
13
|
+
*/
|
|
14
|
+
export declare function mergeWithSchemaDefaults(schema: PropFieldDescriptor[], values: Record<string, unknown>): Record<string, unknown>;
|
|
15
|
+
//# sourceMappingURL=prop-schema-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-schema-utils.d.ts","sourceRoot":"","sources":["../../../../src/data-components/switcher/prop-schema/prop-schema-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1E;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,mBAAmB,EAAE,EAC7B,KAAK,EAAE,cAAc,GACpB,mBAAmB,EAAE,CAOvB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,mBAAmB,EAAE,GAC5B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMzB;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,mBAAmB,EAAE,EAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAGzB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PropSchemaRegistry } from './prop-schema-types';
|
|
2
|
+
/**
|
|
3
|
+
* Registry of prop field descriptors for each data-component.
|
|
4
|
+
* Each entry describes the configurable props that appear in the PropForm panel.
|
|
5
|
+
*
|
|
6
|
+
* Fields of type "column" / "columns" are populated dynamically at render time
|
|
7
|
+
* from the `columns` prop passed to the configurator.
|
|
8
|
+
*/
|
|
9
|
+
export declare const propSchemaRegistry: PropSchemaRegistry;
|
|
10
|
+
/**
|
|
11
|
+
* Human-readable metadata for the component selector.
|
|
12
|
+
*/
|
|
13
|
+
export declare const dataComponentMetaList: ({
|
|
14
|
+
id: "table-grid";
|
|
15
|
+
label: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
} | {
|
|
18
|
+
id: "chart";
|
|
19
|
+
label: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
} | {
|
|
22
|
+
id: "calendar";
|
|
23
|
+
label: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
} | {
|
|
26
|
+
id: "gantt";
|
|
27
|
+
label: string;
|
|
28
|
+
icon: string;
|
|
29
|
+
} | {
|
|
30
|
+
id: "form";
|
|
31
|
+
label: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
} | {
|
|
34
|
+
id: "card-list";
|
|
35
|
+
label: string;
|
|
36
|
+
icon: string;
|
|
37
|
+
})[];
|
|
38
|
+
//# sourceMappingURL=prop-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-schema.d.ts","sourceRoot":"","sources":["../../../../src/data-components/switcher/prop-schema/prop-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAoB,MAAM,qBAAqB,CAAC;AAqH3E;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAOhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;IAOjC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DataStructureComponent } from '../data-structure/data-structure';
|
|
2
|
+
import { TableGridSpecificProps } from '../table-grid/table-grid-types';
|
|
3
|
+
import { ChartSpecificProps } from '../chart/chart-types';
|
|
4
|
+
import { CalendarSpecificProps } from '../calendar/calendar-types';
|
|
5
|
+
import { GanttSpecificProps } from '../gantt/gantt-types';
|
|
6
|
+
import { FormSpecificProps } from '../form/form-types';
|
|
7
|
+
import { CardListSpecificProps } from '../card-list/card-list-types';
|
|
8
|
+
/**
|
|
9
|
+
* Identifiers for all data-components that the switcher can render.
|
|
10
|
+
*/
|
|
11
|
+
export type DataComponentId = "table-grid" | "chart" | "calendar" | "gantt" | "form" | "card-list";
|
|
12
|
+
/**
|
|
13
|
+
* Maps each component id to its specific props interface (without DataStructureComponent).
|
|
14
|
+
* Used by the switcher to type the dynamic `componentProps` state.
|
|
15
|
+
*/
|
|
16
|
+
export type ComponentSpecificPropsMap<TData> = {
|
|
17
|
+
"table-grid": TableGridSpecificProps<TData>;
|
|
18
|
+
"chart": ChartSpecificProps<TData>;
|
|
19
|
+
"calendar": CalendarSpecificProps<TData>;
|
|
20
|
+
"gantt": GanttSpecificProps<TData>;
|
|
21
|
+
"form": FormSpecificProps<TData>;
|
|
22
|
+
"card-list": CardListSpecificProps<TData>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Human-readable metadata for each data-component shown in the selector.
|
|
26
|
+
*/
|
|
27
|
+
export interface DataComponentMeta {
|
|
28
|
+
id: DataComponentId;
|
|
29
|
+
label: string;
|
|
30
|
+
description: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Props for the Switcher component.
|
|
34
|
+
* Accepts the shared DataStructureComponent props plus an optional initial component.
|
|
35
|
+
*
|
|
36
|
+
* Two modes:
|
|
37
|
+
* - **Uncontrolled**: provide `initialComponent` / `initialComponentProps`. Switcher manages its own state.
|
|
38
|
+
* - **Controlled**: provide `activeComponent` / `componentProps`. The parent manages state,
|
|
39
|
+
* and the Switcher reflects changes immediately. Use this when an external configurator
|
|
40
|
+
* (e.g. DashboardBuilder) drives the configuration.
|
|
41
|
+
*/
|
|
42
|
+
export interface SwitcherProps<TData> extends DataStructureComponent<TData> {
|
|
43
|
+
/** Initial active component. Defaults to "table-grid". (Uncontrolled mode) */
|
|
44
|
+
initialComponent?: DataComponentId;
|
|
45
|
+
/** Initial specific props for the active component. (Uncontrolled mode) */
|
|
46
|
+
initialComponentProps?: Partial<ComponentSpecificPropsMap<TData>[DataComponentId]>;
|
|
47
|
+
/** Active component. When provided, Switcher runs in controlled mode. */
|
|
48
|
+
activeComponent?: DataComponentId;
|
|
49
|
+
/** Current component props. When provided, Switcher runs in controlled mode. */
|
|
50
|
+
componentProps?: Record<string, unknown>;
|
|
51
|
+
/** Whether to show the "Configure" button and overlay. Default: true. */
|
|
52
|
+
showConfigurator?: boolean;
|
|
53
|
+
/** Called when the active component changes. */
|
|
54
|
+
onComponentChange?: (componentId: DataComponentId) => void;
|
|
55
|
+
/** Called when the specific props change. */
|
|
56
|
+
onComponentPropsChange?: (props: Partial<ComponentSpecificPropsMap<TData>[DataComponentId]>) => void;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=switcher-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switcher-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/switcher/switcher-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,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
|
|
|
1
|
+
import { SwitcherProps } from './switcher-types';
|
|
2
|
+
/**
|
|
3
|
+
* Switcher — wraps a data-component
|
|
4
|
+
* Shared props (data, columns, uiConfig, getSubRows) are passed to every component.
|
|
5
|
+
* Specific props are managed per-component via the config overlay.
|
|
6
|
+
*
|
|
7
|
+
* Two modes:
|
|
8
|
+
* - **Uncontrolled**: provide `initialComponent` / `initialComponentProps`
|
|
9
|
+
* - **Controlled**: provide `activeComponent` / `componentProps` (external configurator drives state)
|
|
10
|
+
*/
|
|
11
|
+
export declare const Switcher: <TData extends object>({ data, columns, getSubRows, uiConfig, initialComponent, initialComponentProps, activeComponent: controlledComponent, componentProps: controlledProps, showConfigurator, onComponentChange, onComponentPropsChange, }: SwitcherProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=switcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switcher.d.ts","sourceRoot":"","sources":["../../../src/data-components/switcher/switcher.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAA8C,MAAM,kBAAkB,CAAC;AA2B7F;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,SAAS,MAAM,EAAE,uNAY5C,aAAa,CAAC,KAAK,CAAC,4CAuFtB,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ToolCall, ExecutionResult } from './ai-assistant-types';
|
|
2
|
-
|
|
2
|
+
import { PivotConfig } from '../pivot/pivot-types';
|
|
3
|
+
export declare function useToolExecutor<TData>(options?: {
|
|
4
|
+
onPivotConfigChange?: (config: PivotConfig) => void;
|
|
5
|
+
onPivotToggle?: (active: boolean) => void;
|
|
6
|
+
}): {
|
|
3
7
|
execute: (toolCalls: ToolCall[]) => ExecutionResult[];
|
|
4
8
|
};
|
|
5
9
|
//# sourceMappingURL=ai-assistant-executor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-assistant-executor.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-executor.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,eAAe,
|
|
1
|
+
{"version":3,"file":"ai-assistant-executor.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-executor.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,eAAe,EAoBhB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AA4EnD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE;IAC/C,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3C;yBAwBe,QAAQ,EAAE,KAAG,eAAe,EAAE;EAsS7C"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { AIProvider, AIQuickAction } from '../../../providers/ai-assistant/ai-assistant-types';
|
|
2
|
+
import { PivotConfig } from '../pivot/pivot-types';
|
|
2
3
|
export interface AIAssistantPanelProps {
|
|
3
4
|
aiProvider: AIProvider;
|
|
4
5
|
/** When true, tool calls require user confirmation before being executed */
|
|
5
6
|
requiresConfirmation?: boolean;
|
|
6
7
|
/** Pre-configured action buttons shown in the chat for one-click AI commands */
|
|
7
8
|
quickActions?: AIQuickAction[];
|
|
9
|
+
/** Called when the AI assistant configures or updates the pivot configuration */
|
|
10
|
+
onPivotConfigChange?: (config: PivotConfig) => void;
|
|
11
|
+
/** Called when the AI assistant toggles pivot mode on or off */
|
|
12
|
+
onPivotToggle?: (active: boolean) => void;
|
|
8
13
|
}
|
|
9
14
|
//# sourceMappingURL=ai-assistant-panel-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-assistant-panel-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-panel-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"ai-assistant-panel-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-panel-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,4EAA4E;IAC5E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gFAAgF;IAChF,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAC/B,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,gEAAgE;IAChE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AIAssistantPanelProps } from './ai-assistant-panel-types';
|
|
2
|
-
export declare function AIAssistantPanel<TData>({ aiProvider, requiresConfirmation, quickActions }: AIAssistantPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function AIAssistantPanel<TData>({ aiProvider, requiresConfirmation, quickActions, onPivotConfigChange, onPivotToggle }: AIAssistantPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ai-assistant-panel.d.ts.map
|