@restio/ui 0.0.11-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/form.svg +1 -0
- package/dist/assets/svg/list.svg +1 -0
- 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 +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-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.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 +34 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/restio-ui.cjs.js +30 -30
- package/dist/restio-ui.es.js +28713 -28072
- 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/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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-builder-schema.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCtB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCzB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BzB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQxB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,eAAe,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAwB7C"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LayoutTemplate } from './layout-builder-types';
|
|
2
|
-
/**
|
|
3
|
-
* Predefined layout templates that provide common starting configurations.
|
|
4
|
-
* Users can select these as a foundation and customize as needed.
|
|
5
|
-
*/
|
|
6
|
-
export declare const LAYOUT_TEMPLATES: LayoutTemplate[];
|
|
7
|
-
/**
|
|
8
|
-
* Find a layout template by its ID.
|
|
9
|
-
* @param templateId - The unique identifier of the template to find
|
|
10
|
-
* @returns The matching template, or undefined if not found
|
|
11
|
-
*/
|
|
12
|
-
export declare function findTemplateById(templateId: string): LayoutTemplate | undefined;
|
|
13
|
-
//# sourceMappingURL=layout-builder-templates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-builder-templates.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAgM5C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAE/E"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ResponsiveLayout } from '../layout/layout-types';
|
|
2
|
-
/**
|
|
3
|
-
* Data model that defines the available fields for the layout builder.
|
|
4
|
-
* Each key becomes a draggable block that can be placed on the grid.
|
|
5
|
-
*/
|
|
6
|
-
export type DataModel = Record<string, unknown>;
|
|
7
|
-
/**
|
|
8
|
-
* View mode for the layout builder
|
|
9
|
-
* - "visual": Only show the visual grid editor
|
|
10
|
-
* - "json": Only show the JSON editor
|
|
11
|
-
* - "split": Show both side by side
|
|
12
|
-
*/
|
|
13
|
-
export type LayoutBuilderViewMode = "visual" | "json" | "split";
|
|
14
|
-
/**
|
|
15
|
-
* Props for the LayoutBuilder component.
|
|
16
|
-
*/
|
|
17
|
-
export interface LayoutBuilderProps {
|
|
18
|
-
/**
|
|
19
|
-
* Initial layout configuration for the builder.
|
|
20
|
-
* If not provided, uses the default empty layout.
|
|
21
|
-
*/
|
|
22
|
-
initialLayout?: ResponsiveLayout;
|
|
23
|
-
/**
|
|
24
|
-
* Callback fired whenever the layout changes.
|
|
25
|
-
* Use this to sync layout state with parent components or persist changes.
|
|
26
|
-
*/
|
|
27
|
-
onChange?: (layout: ResponsiveLayout) => void;
|
|
28
|
-
/**
|
|
29
|
-
* Data model object defining available fields for placement.
|
|
30
|
-
* Each key becomes a draggable field that can be placed on the grid.
|
|
31
|
-
* The key name will be used as the block ID.
|
|
32
|
-
* @example
|
|
33
|
-
* dataModel={{ name: "Leo", surname: "Sig", age: 3 }}
|
|
34
|
-
*/
|
|
35
|
-
dataModel?: DataModel;
|
|
36
|
-
/**
|
|
37
|
-
* Default view mode for the builder.
|
|
38
|
-
* @default "visual"
|
|
39
|
-
*/
|
|
40
|
-
defaultViewMode?: LayoutBuilderViewMode;
|
|
41
|
-
/**
|
|
42
|
-
* Whether to show the view mode toggle in the toolbar.
|
|
43
|
-
* @default true
|
|
44
|
-
*/
|
|
45
|
-
showViewToggle?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Whether to show the JSON schema info button.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
showSchemaInfo?: boolean;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Represents a predefined layout template that users can select
|
|
54
|
-
* as a starting point for their layout configuration.
|
|
55
|
-
*/
|
|
56
|
-
export interface LayoutTemplate {
|
|
57
|
-
/** Unique identifier for the template */
|
|
58
|
-
id: string;
|
|
59
|
-
/** Human-readable name displayed in the template selector */
|
|
60
|
-
name: string;
|
|
61
|
-
/** Brief description of the template's structure */
|
|
62
|
-
description: string;
|
|
63
|
-
/** The actual responsive layout configuration */
|
|
64
|
-
layout: ResponsiveLayout;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Position coordinates on the grid, used during drag operations.
|
|
68
|
-
*/
|
|
69
|
-
export interface GridPosition {
|
|
70
|
-
col: number;
|
|
71
|
-
row: number;
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=layout-builder-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-builder-types.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE9C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC;IAExC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IAEX,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IAEb,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IAEpB,iDAAiD;IACjD,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Breakpoint, GridPlacement, ResponsiveLayout, BlocksLayout } from '../layout/layout-types';
|
|
2
|
-
/**
|
|
3
|
-
* Checks if a block ID represents a slot (empty placeholder awaiting field assignment).
|
|
4
|
-
* Slots are identified by the "slot_" prefix.
|
|
5
|
-
*/
|
|
6
|
-
export declare function isSlotBlock(blockId: string): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Returns a human-readable type name for any JavaScript value.
|
|
9
|
-
* Used for displaying field types in the field palette.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getValueTypeName(value: unknown): string;
|
|
12
|
-
/**
|
|
13
|
-
* Checks if a new block placement would overlap with any existing blocks.
|
|
14
|
-
* @param newBlock - The proposed block placement to check
|
|
15
|
-
* @param existingBlocks - Current blocks in the layout
|
|
16
|
-
* @param ignoreBlockId - Optional block ID to exclude from collision check (useful when moving/resizing)
|
|
17
|
-
* @returns true if there's a collision, false if placement is valid
|
|
18
|
-
*/
|
|
19
|
-
export declare function hasCollision(newBlock: GridPlacement, existingBlocks: BlocksLayout, ignoreBlockId?: string | number): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Finds which block (if any) occupies a given grid position.
|
|
22
|
-
* @returns The block ID at the position, or null if empty
|
|
23
|
-
*/
|
|
24
|
-
export declare function findBlockAtPosition(col: number, row: number, blocks: BlocksLayout): string | null;
|
|
25
|
-
/**
|
|
26
|
-
* Generates the next available numeric block ID across all breakpoints.
|
|
27
|
-
* Ensures uniqueness by finding the maximum existing numeric ID and incrementing.
|
|
28
|
-
*/
|
|
29
|
-
export declare function generateNextBlockId(layout: ResponsiveLayout): number;
|
|
30
|
-
/**
|
|
31
|
-
* Checks if a block ID already exists in any breakpoint.
|
|
32
|
-
*/
|
|
33
|
-
export declare function blockIdExistsInAnyBreakpoint(blockId: string | number, layout: ResponsiveLayout): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Scales a block placement from one breakpoint's grid to another.
|
|
36
|
-
* Adjusts position and size proportionally based on grid dimensions.
|
|
37
|
-
*/
|
|
38
|
-
export declare function scaleBlockToBreakpoint(sourcePlacement: GridPlacement, sourceBreakpoint: Breakpoint, targetBreakpoint: Breakpoint, layout: ResponsiveLayout): GridPlacement;
|
|
39
|
-
/**
|
|
40
|
-
* Synchronizes a block placement to all unlocked breakpoints.
|
|
41
|
-
* Creates a new layout object with the block added/updated in each target breakpoint.
|
|
42
|
-
*/
|
|
43
|
-
export declare function syncBlockToAllBreakpoints(blockId: string | number, placement: GridPlacement, sourceBreakpoint: Breakpoint, layout: ResponsiveLayout, lockedBreakpoints: Set<Breakpoint>): ResponsiveLayout;
|
|
44
|
-
/**
|
|
45
|
-
* Removes a block from all unlocked breakpoints.
|
|
46
|
-
*/
|
|
47
|
-
export declare function removeBlockFromAllBreakpoints(blockId: string | number, layout: ResponsiveLayout, lockedBreakpoints: Set<Breakpoint>): ResponsiveLayout;
|
|
48
|
-
/**
|
|
49
|
-
* Removes multiple blocks from all unlocked breakpoints.
|
|
50
|
-
*/
|
|
51
|
-
export declare function removeMultipleBlocksFromAllBreakpoints(blockIds: Set<string>, layout: ResponsiveLayout, lockedBreakpoints: Set<Breakpoint>): ResponsiveLayout;
|
|
52
|
-
/**
|
|
53
|
-
* Renames a block ID across all unlocked breakpoints.
|
|
54
|
-
*/
|
|
55
|
-
export declare function renameBlockInAllBreakpoints(oldId: string | number, newId: string | number, layout: ResponsiveLayout, lockedBreakpoints: Set<Breakpoint>): ResponsiveLayout;
|
|
56
|
-
/**
|
|
57
|
-
* Clamps a block placement to stay within grid boundaries.
|
|
58
|
-
* Adjusts position and size to ensure the block fits entirely within the grid.
|
|
59
|
-
*/
|
|
60
|
-
export declare function clampBlockToGrid(block: GridPlacement, gridColumns: number, gridRows: number): GridPlacement;
|
|
61
|
-
/**
|
|
62
|
-
* Checks if a block position is valid within grid boundaries.
|
|
63
|
-
*/
|
|
64
|
-
export declare function isBlockWithinBounds(block: GridPlacement, gridColumns: number, gridRows: number): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Creates a deep copy of a responsive layout.
|
|
67
|
-
* Ensures modifications don't affect the original template.
|
|
68
|
-
*/
|
|
69
|
-
export declare function cloneLayout(layout: ResponsiveLayout): ResponsiveLayout;
|
|
70
|
-
//# sourceMappingURL=layout-builder-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-builder-utils.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAOnG;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAIvD;AAMD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,aAAa,EACvB,cAAc,EAAE,YAAY,EAC5B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAC9B,OAAO,CAmBT;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,YAAY,GACnB,MAAM,GAAG,IAAI,CAUf;AAMD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAQpE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAET;AAMD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,aAAa,EAC9B,gBAAgB,EAAE,UAAU,EAC5B,gBAAgB,EAAE,UAAU,EAC5B,MAAM,EAAE,gBAAgB,GACvB,aAAa,CA+Bf;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,SAAS,EAAE,aAAa,EACxB,gBAAgB,EAAE,UAAU,EAC5B,MAAM,EAAE,gBAAgB,EACxB,iBAAiB,EAAE,GAAG,CAAC,UAAU,CAAC,GACjC,gBAAgB,CA0BlB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,MAAM,EAAE,gBAAgB,EACxB,iBAAiB,EAAE,GAAG,CAAC,UAAU,CAAC,GACjC,gBAAgB,CAkBlB;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EACrB,MAAM,EAAE,gBAAgB,EACxB,iBAAiB,EAAE,GAAG,CAAC,UAAU,CAAC,GACjC,gBAAgB,CAoBlB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,EAAE,gBAAgB,EACxB,iBAAiB,EAAE,GAAG,CAAC,UAAU,CAAC,GACjC,gBAAgB,CAwBlB;AAMD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,aAAa,EACpB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GACf,aAAa,CAgBf;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,aAAa,EACpB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GACf,OAAO,CAUT;AAMD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAetE"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ResponsiveLayout } from '../layout/layout-types';
|
|
2
|
-
import { ValidationError, ValidationResult } from './layout-builder-schema';
|
|
3
|
-
/**
|
|
4
|
-
* Validates a complete ResponsiveLayout object against the schema
|
|
5
|
-
*
|
|
6
|
-
* @param layout - The layout object to validate
|
|
7
|
-
* @returns ValidationResult with valid flag and array of errors
|
|
8
|
-
*/
|
|
9
|
-
export declare function validateLayout(layout: unknown): ValidationResult;
|
|
10
|
-
/**
|
|
11
|
-
* Validates and returns a typed layout or throws an error
|
|
12
|
-
*/
|
|
13
|
-
export declare function parseLayout(json: string): {
|
|
14
|
-
layout: ResponsiveLayout;
|
|
15
|
-
errors: ValidationError[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Serializes a layout to JSON with optional formatting
|
|
19
|
-
*/
|
|
20
|
-
export declare function serializeLayout(layout: ResponsiveLayout, pretty?: boolean): string;
|
|
21
|
-
/**
|
|
22
|
-
* Generates a human-readable description of the layout
|
|
23
|
-
*/
|
|
24
|
-
export declare function describeLayout(layout: ResponsiveLayout): string;
|
|
25
|
-
/**
|
|
26
|
-
* Formats validation errors for display
|
|
27
|
-
*/
|
|
28
|
-
export declare function formatValidationErrors(errors: ValidationError[]): string;
|
|
29
|
-
//# sourceMappingURL=layout-builder-validation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-builder-validation.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-validation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAiB,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAyB,MAAM,yBAAyB,CAAC;AAsVnG;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,gBAAgB,CAgEhE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAAE,CA8BjG;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAO,GAAG,MAAM,CAO/E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CA+B/D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAmBxE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-builder.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAuC,MAAM,wBAAwB,CAAC;AA6CjG,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyxCtD,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ValidationError } from './layout-builder-schema';
|
|
2
|
-
/**
|
|
3
|
-
* View mode for the layout builder
|
|
4
|
-
*/
|
|
5
|
-
export type LayoutBuilderViewMode = "visual" | "json" | "split";
|
|
6
|
-
/**
|
|
7
|
-
* Props for the JSON Editor component
|
|
8
|
-
*/
|
|
9
|
-
export interface LayoutJsonEditorProps {
|
|
10
|
-
/**
|
|
11
|
-
* The JSON string to display and edit
|
|
12
|
-
*/
|
|
13
|
-
value: string;
|
|
14
|
-
/**
|
|
15
|
-
* Callback when the JSON content changes
|
|
16
|
-
*/
|
|
17
|
-
onChange: (value: string) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Validation errors to display
|
|
20
|
-
*/
|
|
21
|
-
errors: ValidationError[];
|
|
22
|
-
/**
|
|
23
|
-
* Whether the editor is read-only
|
|
24
|
-
*/
|
|
25
|
-
readOnly?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Height of the editor
|
|
28
|
-
*/
|
|
29
|
-
height?: string | number;
|
|
30
|
-
/**
|
|
31
|
-
* Callback to activate JSON editor shortcuts (call when editor gains focus)
|
|
32
|
-
*/
|
|
33
|
-
onActivate?: () => void;
|
|
34
|
-
/**
|
|
35
|
-
* Callback to deactivate JSON editor shortcuts (call when editor loses focus)
|
|
36
|
-
*/
|
|
37
|
-
onDeactivate?: () => void;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Props for the Layout Builder Header with view toggle
|
|
41
|
-
*/
|
|
42
|
-
export interface LayoutBuilderHeaderProps {
|
|
43
|
-
/**
|
|
44
|
-
* Current view mode
|
|
45
|
-
*/
|
|
46
|
-
viewMode: LayoutBuilderViewMode;
|
|
47
|
-
/**
|
|
48
|
-
* Callback when view mode changes
|
|
49
|
-
*/
|
|
50
|
-
onViewModeChange: (mode: LayoutBuilderViewMode) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Whether the JSON is valid
|
|
53
|
-
*/
|
|
54
|
-
isValid: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Number of validation errors
|
|
57
|
-
*/
|
|
58
|
-
errorCount: number;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=layout-json-editor-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-json-editor-types.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-json-editor-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC;;OAEG;IACH,MAAM,EAAE,eAAe,EAAE,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,qBAAqB,CAAC;IAEhC;;OAEG;IACH,gBAAgB,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAExD;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { LayoutJsonEditorProps } from './layout-json-editor-types';
|
|
3
|
-
/**
|
|
4
|
-
* JSON Editor component for editing layout configurations
|
|
5
|
-
*
|
|
6
|
-
* Features:
|
|
7
|
-
* - Syntax highlighting (basic)
|
|
8
|
-
* - Line numbers
|
|
9
|
-
* - Error display with line indicators
|
|
10
|
-
* - Auto-formatting
|
|
11
|
-
*/
|
|
12
|
-
export declare const LayoutJsonEditor: React.FC<LayoutJsonEditorProps>;
|
|
13
|
-
//# sourceMappingURL=layout-json-editor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-json-editor.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-json-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOnE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6K5D,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export interface UseHistoryOptions<T> {
|
|
2
|
-
/** Maximum number of history entries to keep */
|
|
3
|
-
maxHistory?: number;
|
|
4
|
-
/** Function to compare if two states are equal (to avoid duplicate entries) */
|
|
5
|
-
isEqual?: (a: T, b: T) => boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface UseHistoryReturn<T> {
|
|
8
|
-
/** Current state value */
|
|
9
|
-
state: T;
|
|
10
|
-
/** Update state and add to history */
|
|
11
|
-
setState: (newState: T) => void;
|
|
12
|
-
/** Undo to previous state */
|
|
13
|
-
undo: () => void;
|
|
14
|
-
/** Redo to next state */
|
|
15
|
-
redo: () => void;
|
|
16
|
-
/** Whether undo is available */
|
|
17
|
-
canUndo: boolean;
|
|
18
|
-
/** Whether redo is available */
|
|
19
|
-
canRedo: boolean;
|
|
20
|
-
/** Clear all history */
|
|
21
|
-
clearHistory: () => void;
|
|
22
|
-
/** Number of undo steps available */
|
|
23
|
-
undoCount: number;
|
|
24
|
-
/** Number of redo steps available */
|
|
25
|
-
redoCount: number;
|
|
26
|
-
/** Reset to a new initial state, clearing history */
|
|
27
|
-
reset: (newInitialState: T) => void;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Hook for managing state with undo/redo history.
|
|
31
|
-
*
|
|
32
|
-
* @param initialState - The initial state value
|
|
33
|
-
* @param options - Configuration options
|
|
34
|
-
* @returns History management object with state and control methods
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```tsx
|
|
38
|
-
* const { state, setState, undo, redo, canUndo, canRedo } = useHistory(initialLayout);
|
|
39
|
-
*
|
|
40
|
-
* // Update state (automatically tracked in history)
|
|
41
|
-
* setState(newLayout);
|
|
42
|
-
*
|
|
43
|
-
* // Undo/redo
|
|
44
|
-
* if (canUndo) undo();
|
|
45
|
-
* if (canRedo) redo();
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
export declare function useHistory<T>(initialState: T, options?: UseHistoryOptions<T>): UseHistoryReturn<T>;
|
|
49
|
-
//# sourceMappingURL=useHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useHistory.d.ts","sourceRoot":"","sources":["../../../../../src/custom-components/layout-builder/stories/hooks/useHistory.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,0BAA0B;IAC1B,KAAK,EAAE,CAAC,CAAC;IACT,sCAAsC;IACtC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC,6BAA6B;IAC7B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,yBAAyB;IACzB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,gCAAgC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,wBAAwB;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,KAAK,EAAE,CAAC,eAAe,EAAE,CAAC,KAAK,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAC1B,YAAY,EAAE,CAAC,EACf,OAAO,GAAE,iBAAiB,CAAC,CAAC,CAAM,GACjC,gBAAgB,CAAC,CAAC,CAAC,CAiGrB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DataStructureColumn } from '../data-structure/data-structure';
|
|
2
|
-
/**
|
|
3
|
-
* Renders the appropriate editor component based on value type and column configuration
|
|
4
|
-
* @param value - Current draft value
|
|
5
|
-
* @param column - Column definition
|
|
6
|
-
* @param onDraftChange - Callback when draft value changes
|
|
7
|
-
* @param onCommit - Callback to commit the value
|
|
8
|
-
* @param onImmediateCommit - Callback for immediate commit (select, checkbox)
|
|
9
|
-
* @param onKeyDown - Keyboard event handler
|
|
10
|
-
* @param autoFocus - Whether to autofocus the editor
|
|
11
|
-
* @param error - Error message
|
|
12
|
-
* @param disabled - Whether the cell is disabled
|
|
13
|
-
* @param className - CSS class name
|
|
14
|
-
* @returns Editor component
|
|
15
|
-
*/
|
|
16
|
-
export declare function renderCell<TData, TValue>(value: TValue, column: DataStructureColumn<TData, TValue>, onDraftChange: (value: TValue) => void, onCommit: () => void, onImmediateCommit: (value: TValue) => void, onKeyDown: (e: React.KeyboardEvent) => void, autoFocus: boolean, error?: string, disabled?: boolean, className?: string): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
//# sourceMappingURL=cell-switch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell-switch.d.ts","sourceRoot":"","sources":["../../../src/data-components/cell/cell-switch.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAIvE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EACtC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,EAC1C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACtC,QAAQ,EAAE,MAAM,IAAI,EACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAC1C,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,EAC3C,SAAS,EAAE,OAAO,EAClB,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,MAAM,2CAqJnB"}
|