@restio/ui 0.0.11-SNAPSHOT → 0.1.0
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/chart-area.svg +9 -0
- package/dist/assets/svg/chart-bar-stacked.svg +9 -0
- package/dist/assets/svg/chart-bar.svg +6 -0
- package/dist/assets/svg/chart-candlestick.svg +17 -0
- package/dist/assets/svg/chart-gantt.svg +9 -0
- package/dist/assets/svg/chart-line.svg +9 -0
- package/dist/assets/svg/chart-pie.svg +9 -0
- package/dist/assets/svg/chart-sankey.svg +18 -0
- package/dist/assets/svg/form.svg +16 -0
- package/dist/assets/svg/list.svg +15 -0
- package/dist/assets/svg/pie-chart.svg +1 -0
- package/dist/assets/svg/table.svg +18 -0
- package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +2 -0
- package/dist/components/anchored-overlay/anchored-overlay-types.d.ts.map +1 -1
- package/dist/components/anchored-overlay/anchored-overlay.d.ts.map +1 -1
- package/dist/components/button-dropdown/button-dropdown-types.d.ts +20 -0
- package/dist/components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
- package/dist/components/button-dropdown/button-dropdown.d.ts +8 -0
- package/dist/components/button-dropdown/button-dropdown.d.ts.map +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/list/list-types.d.ts +22 -1
- package/dist/components/list/list-types.d.ts.map +1 -1
- package/dist/components/list/list.d.ts.map +1 -1
- 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/select/select-types.d.ts +29 -1
- package/dist/components/select/select-types.d.ts.map +1 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/selection-grid/selection-grid-types.d.ts +20 -0
- package/dist/components/selection-grid/selection-grid-types.d.ts.map +1 -0
- package/dist/components/selection-grid/selection-grid.d.ts +8 -0
- package/dist/components/selection-grid/selection-grid.d.ts.map +1 -0
- package/dist/components/typography/typography-types.d.ts +15 -0
- 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/markdown-types.d.ts +0 -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-types.d.ts +11 -0
- package/dist/data-components/data-component-types.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-panel.d.ts +3 -3
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts.map +1 -1
- package/dist/data-components/gantt/gantt-types.d.ts +2 -1
- package/dist/data-components/gantt/gantt-types.d.ts.map +1 -1
- 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/formula/formula-builder.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/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.map +1 -1
- package/dist/data-components/table-grid/table-grid-types.d.ts +7 -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 +1 -1
- package/dist/data-components/table-grid/table-grid.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-hooks.d.ts +47 -0
- package/dist/experimental-components/dashboard-builder/builder-canvas-hooks.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 +23 -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 +150 -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 +20 -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 +40 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/restio-ui.cjs.js +76 -30
- package/dist/restio-ui.es.js +28469 -27492
- package/dist/types/global-types.d.ts +16 -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/dist/utility-components/overlay-panel/overlay-panel.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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UIEventHandler, Ref } from 'react';
|
|
2
2
|
import { DataStructureColumn, DataStructureComponent } from '../data-structure/data-structure';
|
|
3
|
+
import { DataStructureUIConfig, ResolvedCellUI } from '../ui-layer/ui-layer-types';
|
|
3
4
|
import { PivotConfig } from './pivot/pivot-types';
|
|
4
5
|
import { AggregationFn } from './aggregation/aggregation-utils';
|
|
5
6
|
import { AIProvider, AIQuickAction } from '../../providers/ai-assistant/ai-assistant-types';
|
|
@@ -10,7 +11,7 @@ export type ColumnOffsets = Record<string, {
|
|
|
10
11
|
left?: number;
|
|
11
12
|
right?: number;
|
|
12
13
|
}>;
|
|
13
|
-
export interface
|
|
14
|
+
export interface TableGridSpecificProps<TData> {
|
|
14
15
|
/** Enable sorting functionality */
|
|
15
16
|
enableSorting?: boolean;
|
|
16
17
|
/** Enable row selection */
|
|
@@ -88,6 +89,7 @@ export interface TableGridProps<TData> extends DataStructureComponent<TData> {
|
|
|
88
89
|
*/
|
|
89
90
|
scrollContainerRef?: Ref<HTMLDivElement>;
|
|
90
91
|
}
|
|
92
|
+
export type TableGridProps<TData> = DataStructureComponent<TData> & TableGridSpecificProps<TData>;
|
|
91
93
|
type TableGridProviderKeys = "data" | "columns" | "getSubRows" | "onDataChange" | "enableSorting" | "enableSelection" | "enableEditing" | "enableGrouping" | "enableVirtualization" | "stickyHeader" | "stickyFooter" | "columnSizing" | "enableColumnReorder" | "enableColumnVisibility" | "enableFiltering" | "onSelectionChange" | "onFormulaColumnAdd";
|
|
92
94
|
/** Props forwarded from TableGrid to the internal tools+table layer. */
|
|
93
95
|
export type TableGridWithToolsProps<TData> = Omit<TableGridProps<TData>, TableGridProviderKeys> & {
|
|
@@ -222,6 +224,10 @@ export interface TableContextValue<TData> {
|
|
|
222
224
|
setFilterGroup: (filter: FilterGroup | null) => void;
|
|
223
225
|
/** Dynamically add a formula column (created by the formula builder or AI) */
|
|
224
226
|
addFormulaColumn?: (col: ColumnDef<TData>) => void;
|
|
227
|
+
/** UI configuration for conditional styling */
|
|
228
|
+
uiConfig?: DataStructureUIConfig<TData>;
|
|
229
|
+
/** Precomputed UI map: columnId → ResolvedCellUI[] (index = row index) */
|
|
230
|
+
uiMap: Map<string, ResolvedCellUI[]>;
|
|
225
231
|
}
|
|
226
232
|
export interface TableOptions {
|
|
227
233
|
enableSorting?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-grid-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/table-grid/table-grid-types.ts"],"names":[],"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OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableGridProps, TableGridWithToolsProps } from './table-grid-types';
|
|
2
|
-
export declare function TableGrid<TData>({ data, columns, getSubRows, onDataChange, onSelectionChange, enableSorting, enableSelection, enableEditing, enableGrouping, enableVirtualization, stickyHeader, stickyFooter, columnSizing, enableColumnReorder, enableColumnVisibility, enableFiltering, enableAIAssistant, aiProvider, onFormulaColumnAdd: externalOnFormulaColumnAdd, loading, ...toolPassThrough }: TableGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function TableGrid<TData>({ data, columns, getSubRows, onDataChange, onSelectionChange, enableSorting, enableSelection, enableEditing, enableGrouping, enableVirtualization, stickyHeader, stickyFooter, columnSizing, enableColumnReorder, enableColumnVisibility, enableFiltering, enableAIAssistant, aiProvider, onFormulaColumnAdd: externalOnFormulaColumnAdd, loading, uiConfig, ...toolPassThrough }: TableGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
/**
|
|
4
4
|
* Renders the TableGrid table content assuming a TableProvider is already present
|
|
5
5
|
* in the component tree. Designed for use inside components (e.g. Gantt) that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-grid.d.ts","sourceRoot":"","sources":["../../../src/data-components/table-grid/table-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAa,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"table-grid.d.ts","sourceRoot":"","sources":["../../../src/data-components/table-grid/table-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAa,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AA0WxF,wBAAgB,SAAS,CAAC,KAAK,EAAE,EAC/B,IAAI,EACJ,OAAO,EACP,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAAE,0BAA0B,EAC9C,OAAO,EACP,QAAQ,EACR,GAAG,eAAe,EACnB,EAAE,cAAc,CAAC,KAAK,CAAC,2CAmDvB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,2CAE5E;AAED,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { BaseTypographyProps } from '../../components/typography/typography-types';
|
|
2
|
+
import { IconProps } from '../../utility-components/icon/icon-types';
|
|
3
|
+
import { CellType } from '../../types/global-types';
|
|
4
|
+
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
5
|
+
/**
|
|
6
|
+
* Maps each CellType to the component-specific props that can be passed
|
|
7
|
+
* via `uiVariant` in a rule. TypeScript enforces that you only pass props
|
|
8
|
+
* the underlying component actually understands.
|
|
9
|
+
*/
|
|
10
|
+
export type CellUIVariantMap = {
|
|
11
|
+
[K in CellType]: K extends "IMAGE" ? Partial<Omit<IconProps, "src">> : Partial<Omit<BaseTypographyProps, "children" | "variant">>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Given a tuple of `DataStructureColumn`, produces a union of
|
|
15
|
+
* `{ columnId: string; cellType: CellType }` entries.
|
|
16
|
+
*/
|
|
17
|
+
type ColumnTypeMap<TData, TColumns extends readonly DataStructureColumn<TData>[]> = {
|
|
18
|
+
[K in keyof TColumns]: TColumns[K] extends DataStructureColumn<TData> ? {
|
|
19
|
+
columnId: TColumns[K]["id"] extends string ? TColumns[K]["id"] : string;
|
|
20
|
+
cellType: TColumns[K]["cellType"] extends CellType ? TColumns[K]["cellType"] : CellType;
|
|
21
|
+
} : never;
|
|
22
|
+
}[number];
|
|
23
|
+
/**
|
|
24
|
+
* Looks up the `cellType` for a given `columnId` from a columns array.
|
|
25
|
+
* Falls back to `CellType` if not found.
|
|
26
|
+
*/
|
|
27
|
+
type LookupCellType<TData, TColumns extends readonly DataStructureColumn<TData>[], TId extends string> = Extract<ColumnTypeMap<TData, TColumns>, {
|
|
28
|
+
columnId: TId;
|
|
29
|
+
}> extends {
|
|
30
|
+
cellType: infer R;
|
|
31
|
+
} ? R extends CellType ? R : CellType : CellType;
|
|
32
|
+
/** Comparison operators for AST-like UI rules */
|
|
33
|
+
export type UIRuleOperator = "==" | "!=" | ">" | ">=" | "<" | "<=" | "includes" | "startsWith" | "endsWith" | "isEmpty" | "isNotEmpty";
|
|
34
|
+
/**
|
|
35
|
+
* A single declarative styling rule evaluated against a row.
|
|
36
|
+
* Rules are compiled once into fast evaluators — no runtime functions.
|
|
37
|
+
*
|
|
38
|
+
* When `field` and `op` are omitted, the rule always matches (static styling).
|
|
39
|
+
*
|
|
40
|
+
* @example conditional
|
|
41
|
+
* { field: "price", op: ">", value: 100, uiVariant: { color: "var(--rst-color-success)", fontWeight: "bold" } }
|
|
42
|
+
*
|
|
43
|
+
* @example static (always applies)
|
|
44
|
+
* { uiVariant: { color: "red" } }
|
|
45
|
+
*/
|
|
46
|
+
export interface DataStructureUIRule<TData, K extends CellType = CellType> {
|
|
47
|
+
/** Which field to evaluate — omit for a static rule that always matches */
|
|
48
|
+
field?: keyof TData;
|
|
49
|
+
/** Comparison operator — omit for a static rule that always matches */
|
|
50
|
+
op?: UIRuleOperator;
|
|
51
|
+
/** Comparison value (not needed for isEmpty / isNotEmpty) */
|
|
52
|
+
value?: unknown;
|
|
53
|
+
/**
|
|
54
|
+
* Component-specific props forwarded to the underlying renderer.
|
|
55
|
+
* TypeScript enforces the correct props based on the column's `cellType`.
|
|
56
|
+
*/
|
|
57
|
+
uiVariant?: CellUIVariantMap[K];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Per-column UI configuration.
|
|
61
|
+
* Matches a schema column via `columnId` (same as `DataStructureColumn.id` or `accessorKey`).
|
|
62
|
+
*/
|
|
63
|
+
export interface DataStructureUIColumn<TData, TColumns extends readonly DataStructureColumn<TData>[] = DataStructureColumn<TData>[], TId extends string = string> {
|
|
64
|
+
/** Matches `DataStructureColumn.id` or `accessorKey` */
|
|
65
|
+
columnId: TId;
|
|
66
|
+
/** Ordered rules — first match wins. Rules without `field`/`op` always match. */
|
|
67
|
+
rules?: DataStructureUIRule<TData, LookupCellType<TData, TColumns, TId>>[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Top-level UI configuration passed to any data-component.
|
|
71
|
+
* `TColumns` is inferred from the `columns` prop — `cellType` is looked up automatically.
|
|
72
|
+
*/
|
|
73
|
+
export interface DataStructureUIConfig<TData, TColumns extends readonly DataStructureColumn<TData>[] = DataStructureColumn<TData>[]> {
|
|
74
|
+
columns?: DataStructureUIColumn<TData, TColumns, string>[];
|
|
75
|
+
}
|
|
76
|
+
/** Pre-resolved cell styling — Cell never resolves UI, only consumes this */
|
|
77
|
+
export interface ResolvedCellUI {
|
|
78
|
+
/** Component-specific props resolved from uiVariant rules */
|
|
79
|
+
uiVariant?: Record<string, unknown>;
|
|
80
|
+
}
|
|
81
|
+
export {};
|
|
82
|
+
//# sourceMappingURL=ui-layer-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-layer-types.d.ts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,CAAC,EAAE,qBAAqB,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC;CAC5D;AAMD,6EAA6E;AAC7E,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
2
|
+
import { DataStructureUIConfig, ResolvedCellUI } from './ui-layer-types';
|
|
3
|
+
/**
|
|
4
|
+
* Build a precomputed UI map: columnId → ResolvedCellUI[] (index = row index).
|
|
5
|
+
* Called once per [data, columns, uiConfig] change via useMemo.
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildUIMap<TData>(data: TData[], columns: DataStructureColumn<TData>[], uiConfig: DataStructureUIConfig<TData> | undefined): Map<string, ResolvedCellUI[]>;
|
|
8
|
+
/**
|
|
9
|
+
* React hook: returns a memoized UI map for cell styling.
|
|
10
|
+
* Recomputes only when data, columns, or uiConfig change.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useUIMap<TData>(data: TData[], columns: DataStructureColumn<TData>[], uiConfig: DataStructureUIConfig<TData> | undefined): Map<string, ResolvedCellUI[]>;
|
|
13
|
+
//# sourceMappingURL=ui-layer-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-layer-utils.d.ts","sourceRoot":"","sources":["../../../src/data-components/ui-layer/ui-layer-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAEL,qBAAqB,EAErB,cAAc,EACf,MAAM,kBAAkB,CAAC;AAsC1B;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAC9B,IAAI,EAAE,KAAK,EAAE,EACb,OAAO,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,EACrC,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,GACjD,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CA2C/B;AAMD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAC5B,IAAI,EAAE,KAAK,EAAE,EACb,OAAO,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,EACrC,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,GAAG,SAAS,GACjD,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAE/B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DashboardWidgetConfig, WidgetComponentType, WidgetPosition } from './dashboard-builder-types';
|
|
2
|
+
type ResizeHandle = "n" | "s" | "e" | "w" | "ne" | "nw" | "se" | "sw";
|
|
3
|
+
interface UseCanvasDragDropOptions {
|
|
4
|
+
readonly widgets: DashboardWidgetConfig[];
|
|
5
|
+
readonly onMoveWidget: (widgetId: string, position: WidgetPosition) => void;
|
|
6
|
+
readonly onAddWidget: (componentType: WidgetComponentType, dataSourceId: string, position: WidgetPosition) => void;
|
|
7
|
+
readonly onChange: () => void;
|
|
8
|
+
}
|
|
9
|
+
interface UseCanvasDragDropReturn {
|
|
10
|
+
/** Ref to attach to the grid container */
|
|
11
|
+
gridRef: React.RefObject<HTMLDivElement | null>;
|
|
12
|
+
/** ID of the widget currently being dragged or resized */
|
|
13
|
+
draggingWidgetId: string | null;
|
|
14
|
+
/** Preview position during drag/resize */
|
|
15
|
+
dragPreviewPos: WidgetPosition | null;
|
|
16
|
+
/** Whether the current drag/resize has a collision */
|
|
17
|
+
hasCollision: boolean;
|
|
18
|
+
/** Whether the current resize has a collision */
|
|
19
|
+
resizeCollision: boolean;
|
|
20
|
+
/** Grid-level dragOver handler */
|
|
21
|
+
handleDragOver: (e: React.DragEvent) => void;
|
|
22
|
+
/** Grid-level drop handler */
|
|
23
|
+
handleDrop: (e: React.DragEvent) => void;
|
|
24
|
+
/** Attach to each widget's onDragStart */
|
|
25
|
+
handleWidgetDragStart: (e: React.DragEvent, widget: DashboardWidgetConfig) => void;
|
|
26
|
+
/** Attach to each widget's onDragEnd */
|
|
27
|
+
handleWidgetDragEnd: () => void;
|
|
28
|
+
/** Attach to resize handle's onMouseDown */
|
|
29
|
+
handleResizeStart: (e: React.MouseEvent, widget: DashboardWidgetConfig, handle: ResizeHandle) => void;
|
|
30
|
+
/** Convert pixel coordinates to grid (col, row) */
|
|
31
|
+
pixelToGrid: (clientX: number, clientY: number) => {
|
|
32
|
+
col: number;
|
|
33
|
+
row: number;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Encapsulates all drag-and-drop and resize logic for the dashboard canvas.
|
|
38
|
+
*
|
|
39
|
+
* Manages:
|
|
40
|
+
* - Palette → canvas drop (adding new widgets)
|
|
41
|
+
* - Widget repositioning via drag
|
|
42
|
+
* - Widget resizing via 8-directional handles
|
|
43
|
+
* - Collision detection during drag/resize
|
|
44
|
+
*/
|
|
45
|
+
export declare function useCanvasDragDrop({ widgets, onMoveWidget, onAddWidget, onChange, }: UseCanvasDragDropOptions): UseCanvasDragDropReturn;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=builder-canvas-hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder-canvas-hooks.d.ts","sourceRoot":"","sources":["../../../src/experimental-components/dashboard-builder/builder-canvas-hooks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAS5G,KAAK,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtE,UAAU,wBAAwB;IAChC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,EAAE,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,C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AQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,YAAY,EACZ,WAAW,EACX,QAAQ,GACT,EAAE,wBAAwB,GAAG,uBAAuB,CAwRpD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DashboardWidgetConfig, WidgetComponentType, WidgetPosition, DataSourceRegistry } from './dashboard-builder-types';
|
|
3
|
+
interface BuilderCanvasProps {
|
|
4
|
+
readonly widgets: DashboardWidgetConfig[];
|
|
5
|
+
readonly selectedWidgetId: string | null;
|
|
6
|
+
readonly dataSources: DataSourceRegistry;
|
|
7
|
+
readonly onSelectWidget: (widgetId: string | null) => void;
|
|
8
|
+
readonly onMoveWidget: (widgetId: string, position: WidgetPosition) => void;
|
|
9
|
+
readonly onRemoveWidget: (widgetId: string) => void;
|
|
10
|
+
readonly onAddWidget: (componentType: WidgetComponentType, dataSourceId: string, position: WidgetPosition) => void;
|
|
11
|
+
readonly onChange: () => void;
|
|
12
|
+
/** Resolves effective action flags for a widget */
|
|
13
|
+
readonly getWidgetActions?: (widget: DashboardWidgetConfig) => {
|
|
14
|
+
enableExport: boolean;
|
|
15
|
+
enableScreenshot: boolean;
|
|
16
|
+
enableExpand: boolean;
|
|
17
|
+
};
|
|
18
|
+
/** Canvas mode: "edit" enables drag/resize/selection, "view" is read-only */
|
|
19
|
+
readonly mode?: "edit" | "view";
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The canvas where widgets are placed on a 12×30 visible grid.
|
|
23
|
+
*
|
|
24
|
+
* Supports:
|
|
25
|
+
* - Visible grid cells with borders
|
|
26
|
+
* - Drag & drop from the palette to add new widgets
|
|
27
|
+
* - Drag to reposition existing widgets
|
|
28
|
+
* - Collision detection: overlapping cells turn red, drop is blocked
|
|
29
|
+
* - Click to select a widget
|
|
30
|
+
*/
|
|
31
|
+
export declare const BuilderCanvas: React.FC<BuilderCanvasProps>;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=builder-canvas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder-canvas.d.ts","sourceRoot":"","sources":["../../../src/experimental-components/dashboard-builder/builder-canvas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAYhI,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,OAAO,EAAE,qBAAqB,EAAE,CAAC;IAC1C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAC;IACzC,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3D,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IAC5E,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,WAAW,EAAE,CAAC,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IACnH,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,mDAAmD;IACnD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK;QAAE,YAAY,EAAE,OAAO,CAAC;QAAC,gBAAgB,EAAE,OAAO,CAAC;QAAC,YAAY,EAAE,OAAO,CAAA;KAAE,CAAC;IAC3I,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6JtD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DashboardConfig, DashboardWidgetConfig, WidgetComponentType, WidgetPosition, DashboardBuilderState } from './dashboard-builder-types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook that manages the dashboard builder state.
|
|
4
|
+
*
|
|
5
|
+
* Provides actions to add, remove, update, and reorder widgets,
|
|
6
|
+
* as well as manage global filters and the dashboard name.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useDashboardBuilderState(initialConfig?: DashboardConfig): {
|
|
9
|
+
state: DashboardBuilderState;
|
|
10
|
+
mode: "view" | "edit";
|
|
11
|
+
setMode: import('react').Dispatch<import('react').SetStateAction<"view" | "edit">>;
|
|
12
|
+
addWidget: (componentType: WidgetComponentType, dataSourceId: string, position: WidgetPosition) => void;
|
|
13
|
+
removeWidget: (widgetId: string) => void;
|
|
14
|
+
updateWidget: (widgetId: string, patch: Partial<DashboardWidgetConfig>) => void;
|
|
15
|
+
moveWidget: (widgetId: string, position: WidgetPosition) => void;
|
|
16
|
+
selectWidget: (widgetId: string | null) => void;
|
|
17
|
+
selectedWidget: DashboardWidgetConfig | null;
|
|
18
|
+
setName: (name: string) => void;
|
|
19
|
+
setFilters: (filters: DashboardConfig["filters"]) => void;
|
|
20
|
+
resetConfig: (newConfig?: DashboardConfig) => void;
|
|
21
|
+
loadConfig: (newConfig: DashboardConfig) => void;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=dashboard-builder-hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-builder-hooks.d.ts","sourceRoot":"","sources":["../../../src/experimental-components/dashboard-builder/dashboard-builder-hooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAuBnC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,CAAC,EAAE,eAAe;;;;+BAepD,mBAAmB,gBAAgB,MAAM,YAAY,cAAc;6BAiBxE,MAAM;6BAYN,MAAM,SAAS,OAAO,CAAC,qBAAqB,CAAC;2BAa7C,MAAM,YAAY,cAAc;6BAQD,MAAM,GAAG,IAAI;;oBAQtB,MAAM;0BAM7B,eAAe,CAAC,SAAS,CAAC;8BAOO,eAAe;4BAMjB,eAAe;EA8B3D"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { FilterGroup } from '../../data-components/filter/filter-types';
|
|
2
|
+
import { DataStructureColumn } from '../../data-components/data-structure/data-structure';
|
|
3
|
+
import { DataStructureUIConfig } from '../../data-components/ui-layer/ui-layer-types';
|
|
4
|
+
/**
|
|
5
|
+
* Current version of the dashboard config schema.
|
|
6
|
+
* Templates with a different version are rejected to avoid incompatibilities.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DASHBOARD_CONFIG_VERSION = 1;
|
|
9
|
+
/**
|
|
10
|
+
* A widget type that can be placed on the dashboard canvas.
|
|
11
|
+
*/
|
|
12
|
+
export type WidgetComponentType = "table-grid" | "chart" | "calendar" | "form" | "card-list" | "gantt";
|
|
13
|
+
/**
|
|
14
|
+
* Metadata for a widget type shown in the palette.
|
|
15
|
+
*/
|
|
16
|
+
export interface WidgetTypeDescriptor {
|
|
17
|
+
type: WidgetComponentType;
|
|
18
|
+
label: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
description: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Grid position for a widget on the canvas (desktop-only for now).
|
|
24
|
+
*/
|
|
25
|
+
export interface WidgetPosition {
|
|
26
|
+
col: number;
|
|
27
|
+
row: number;
|
|
28
|
+
w: number;
|
|
29
|
+
h: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Configuration for a single widget on the dashboard.
|
|
33
|
+
*/
|
|
34
|
+
export interface DashboardWidgetConfig {
|
|
35
|
+
/** Unique widget id */
|
|
36
|
+
id: string;
|
|
37
|
+
/** Display title */
|
|
38
|
+
title: string;
|
|
39
|
+
/** Optional subtitle */
|
|
40
|
+
subtitle?: string;
|
|
41
|
+
/** Which data-component to render */
|
|
42
|
+
componentType: WidgetComponentType;
|
|
43
|
+
/** References a data source exposed by the host application */
|
|
44
|
+
dataSourceId: string;
|
|
45
|
+
/** Column definitions (optional — auto-inferred if omitted) */
|
|
46
|
+
columns?: DataStructureColumn<object>[];
|
|
47
|
+
/** Widget-level filters (combined with global filters) */
|
|
48
|
+
filters?: FilterGroup | null;
|
|
49
|
+
/** Conditional styling rules */
|
|
50
|
+
uiConfig?: DataStructureUIConfig<object> | null;
|
|
51
|
+
/** Component-specific props (e.g. enableSorting, chart type, calendar view) */
|
|
52
|
+
componentProps?: Record<string, unknown>;
|
|
53
|
+
/** Grid position on the canvas */
|
|
54
|
+
position: WidgetPosition;
|
|
55
|
+
/** Per-widget action toggles. Falls back to global defaults if undefined. */
|
|
56
|
+
enableExport?: boolean;
|
|
57
|
+
enableScreenshot?: boolean;
|
|
58
|
+
enableExpand?: boolean;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Global defaults for widget actions. Applied to all widgets unless
|
|
62
|
+
* overridden per-widget.
|
|
63
|
+
*/
|
|
64
|
+
export interface WidgetActionDefaults {
|
|
65
|
+
/** Show the export CSV button. Default: true. */
|
|
66
|
+
enableExport?: boolean;
|
|
67
|
+
/** Show the screenshot button. Default: false. */
|
|
68
|
+
enableScreenshot?: boolean;
|
|
69
|
+
/** Show the expand/fullscreen button. Default: true. */
|
|
70
|
+
enableExpand?: boolean;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The full dashboard configuration — what gets saved to DB as JSONB.
|
|
74
|
+
*/
|
|
75
|
+
export interface DashboardConfig {
|
|
76
|
+
version: typeof DASHBOARD_CONFIG_VERSION;
|
|
77
|
+
name: string;
|
|
78
|
+
/** Global filters applied to all widgets */
|
|
79
|
+
filters: FilterGroup | null;
|
|
80
|
+
/** Widgets placed on the dashboard */
|
|
81
|
+
widgets: DashboardWidgetConfig[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A pre-built dashboard template that users can load.
|
|
85
|
+
* Templates are JSON files with a version check to avoid incompatibilities.
|
|
86
|
+
*/
|
|
87
|
+
export interface DashboardTemplate {
|
|
88
|
+
/** Must match DASHBOARD_CONFIG_VERSION to be loadable */
|
|
89
|
+
version: number;
|
|
90
|
+
/** Human-readable template name */
|
|
91
|
+
name: string;
|
|
92
|
+
/** Short description shown in the template picker */
|
|
93
|
+
description: string;
|
|
94
|
+
/** The dashboard config to load (without the version field, which is at template level) */
|
|
95
|
+
config: Omit<DashboardConfig, "version">;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Field format for display and aggregation.
|
|
99
|
+
*/
|
|
100
|
+
export type FieldFormat = "text" | "number" | "currency" | "percentage" | "date" | "datetime" | "boolean";
|
|
101
|
+
/**
|
|
102
|
+
* Describes a single field in a data source.
|
|
103
|
+
*/
|
|
104
|
+
export interface DataSourceField {
|
|
105
|
+
id: string;
|
|
106
|
+
name: string;
|
|
107
|
+
format: FieldFormat;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A data source exposed by the host application.
|
|
111
|
+
* `data` is sample/preview data used in the builder.
|
|
112
|
+
*/
|
|
113
|
+
export interface DataSourceDefinition {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
fields: DataSourceField[];
|
|
117
|
+
data: object[];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Registry of all available data sources, keyed by id.
|
|
121
|
+
*/
|
|
122
|
+
export type DataSourceRegistry = Record<string, DataSourceDefinition>;
|
|
123
|
+
/**
|
|
124
|
+
* Props for the DashboardBuilder component.
|
|
125
|
+
*/
|
|
126
|
+
export interface DashboardBuilderProps {
|
|
127
|
+
/** Available data sources (provided by the host application) */
|
|
128
|
+
dataSources: DataSourceRegistry;
|
|
129
|
+
/** Initial config to edit (undefined = start from scratch) */
|
|
130
|
+
initialConfig?: DashboardConfig;
|
|
131
|
+
/** Pre-built templates users can load. Only templates with version === DASHBOARD_CONFIG_VERSION are shown. */
|
|
132
|
+
templates?: DashboardTemplate[];
|
|
133
|
+
/** Called when the user saves the dashboard */
|
|
134
|
+
onSave: (config: DashboardConfig) => void;
|
|
135
|
+
/** Called on every config change (for live preview) */
|
|
136
|
+
onChange?: (config: DashboardConfig) => void;
|
|
137
|
+
/** Global defaults for widget action buttons (export, screenshot, expand) */
|
|
138
|
+
widgetActionDefaults?: WidgetActionDefaults;
|
|
139
|
+
/** Additional CSS class name */
|
|
140
|
+
className?: string;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Internal builder state managed by the useDashboardBuilder hook.
|
|
144
|
+
*/
|
|
145
|
+
export interface DashboardBuilderState {
|
|
146
|
+
config: DashboardConfig;
|
|
147
|
+
selectedWidgetId: string | null;
|
|
148
|
+
isDirty: boolean;
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=dashboard-builder-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-builder-types.d.ts","sourceRoot":"","sources":["../../../src/experimental-components/dashboard-builder/dashboard-builder-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAM3F;;;GAGG;AACH,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC;AAEvG;;GAEG;AACH,MAAM,WAAW,oBAAoB;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MAAM,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC1C,uDAAuD;IACvD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C,6EAA6E;IAC7E,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,eAAe,CAAC;IACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { WidgetPosition } from './dashboard-builder-types';
|
|
2
|
+
/**
|
|
3
|
+
* Checks whether two grid rectangles overlap.
|
|
4
|
+
* Rectangles are defined by (col, row) top-left and (w, h) dimensions.
|
|
5
|
+
*/
|
|
6
|
+
export declare function positionsOverlap(a: WidgetPosition, b: WidgetPosition): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Checks whether a position is within the grid bounds (12 cols × 30 rows).
|
|
9
|
+
*/
|
|
10
|
+
export declare function isWithinBounds(pos: WidgetPosition): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Finds the first widget (by id) that overlaps with the given position.
|
|
13
|
+
* Returns the widget id or null.
|
|
14
|
+
*/
|
|
15
|
+
export declare function findCollision(position: WidgetPosition, widgets: {
|
|
16
|
+
id: string;
|
|
17
|
+
position: WidgetPosition;
|
|
18
|
+
}[], excludeId?: string): string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Finds the first free position on the grid for a widget of the given size.
|
|
21
|
+
* Scans left-to-right, top-to-bottom and returns the first spot with no collision.
|
|
22
|
+
* Falls back to appending after the last widget if the grid is full.
|
|
23
|
+
*/
|
|
24
|
+
export declare function findFreePosition(w: number, h: number, widgets: {
|
|
25
|
+
id: string;
|
|
26
|
+
position: WidgetPosition;
|
|
27
|
+
}[]): WidgetPosition;
|
|
28
|
+
//# sourceMappingURL=dashboard-builder-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-builder-utils.d.ts","sourceRoot":"","sources":["../../../src/experimental-components/dashboard-builder/dashboard-builder-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,cAAc,GAAG,OAAO,CAO9E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAE3D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAE,EAAE,EACnD,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,GAAG,IAAI,CAQf;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAE,EAAE,GAClD,cAAc,CAgBhB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DashboardBuilderProps } from './dashboard-builder-types';
|
|
3
|
+
/**
|
|
4
|
+
* DashboardBuilder is a visual, Notion-style dashboard configurator.
|
|
5
|
+
*
|
|
6
|
+
* Two modes:
|
|
7
|
+
* - **Edit**: palette, canvas with drag/resize, configurator panel
|
|
8
|
+
* - **View**: renders the actual Dashboard with real data components
|
|
9
|
+
*
|
|
10
|
+
* The builder produces a `DashboardConfig` object that can be serialized
|
|
11
|
+
* to JSON and saved to a database.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DashboardBuilder: React.FC<DashboardBuilderProps>;
|
|
14
|
+
//# sourceMappingURL=dashboard-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-builder.d.ts","sourceRoot":"","sources":["../../../src/experimental-components/dashboard-builder/dashboard-builder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAA0C,MAAM,2BAA2B,CAAC;AAW/G;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2J5D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DashboardWidgetConfig, DataSourceRegistry, WidgetComponentType } from './dashboard-builder-types';
|
|
3
|
+
interface WidgetConfiguratorProps {
|
|
4
|
+
readonly widget: DashboardWidgetConfig | null;
|
|
5
|
+
readonly dataSources: DataSourceRegistry;
|
|
6
|
+
readonly onUpdate: (patch: Partial<DashboardWidgetConfig>) => void;
|
|
7
|
+
readonly onRemove: () => void;
|
|
8
|
+
readonly onClose: () => void;
|
|
9
|
+
readonly onAddWidget: (componentType: WidgetComponentType) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Right-side panel to configure the selected widget.
|
|
13
|
+
*
|
|
14
|
+
* Uses the existing DataComponentConfigurator + PropForm system to show
|
|
15
|
+
* component-specific props (enableSorting, chart type, calendar view, etc.)
|
|
16
|
+
* based on the propSchemaRegistry.
|
|
17
|
+
*
|
|
18
|
+
* Custom fields (title, subtitle, data source) are rendered above the
|
|
19
|
+
* dynamic configurator. The component type selector is handled by the
|
|
20
|
+
* DataComponentConfigurator's built-in CardList.
|
|
21
|
+
*/
|
|
22
|
+
export declare const WidgetConfigurator: React.FC<WidgetConfiguratorProps>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=widget-configurator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-configurator.d.ts","sourceRoot":"","sources":["../../../src/experimental-components/dashboard-builder/widget-configurator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAehH,UAAU,uBAAuB;IAC/B,QAAQ,CAAC,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC9C,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAAC;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,CAAC,aAAa,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACpE;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAiJhE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { WidgetComponentType } from './dashboard-builder-types';
|
|
3
|
+
interface WidgetPaletteProps {
|
|
4
|
+
readonly onAddWidget: (componentType: WidgetComponentType, dataSourceId: string, position: {
|
|
5
|
+
col: number;
|
|
6
|
+
row: number;
|
|
7
|
+
w: number;
|
|
8
|
+
h: number;
|
|
9
|
+
}) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Sidebar palette listing available widget types.
|
|
13
|
+
*
|
|
14
|
+
* Users drag a widget type from the palette onto the canvas to add it.
|
|
15
|
+
* For simplicity, the first available data source is auto-selected;
|
|
16
|
+
* the user can change it later in the configurator.
|
|
17
|
+
*/
|
|
18
|
+
export declare const WidgetPalette: React.FC<WidgetPaletteProps>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=widget-palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-palette.d.ts","sourceRoot":"","sources":["../../../src/experimental-components/dashboard-builder/widget-palette.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAMrE,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,WAAW,EAAE,CAAC,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACxJ;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+BtD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DashboardContextValue } from './dashboard-types';
|
|
2
|
+
/**
|
|
3
|
+
* Context that shares global filters from Dashboard down to every DashboardWidget.
|
|
4
|
+
*/
|
|
5
|
+
export declare const DashboardContext: import('react').Context<DashboardContextValue | null>;
|
|
6
|
+
/**
|
|
7
|
+
* Hook to consume the DashboardContext.
|
|
8
|
+
* Returns the current filters and onFilterChange callback.
|
|
9
|
+
* Returns null when used outside a Dashboard.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useDashboard(): DashboardContextValue | null;
|
|
12
|
+
//# sourceMappingURL=dashboard-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-context.d.ts","sourceRoot":"","sources":["../../../src/framework-components/dashboard/dashboard-context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,uDAAoD,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,qBAAqB,GAAG,IAAI,CAE3D"}
|