@restio/ui 0.0.10-SNAPSHOT → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/svg/discussion.svg +1 -0
- package/dist/assets/svg/form.svg +1 -0
- package/dist/assets/svg/list.svg +1 -0
- package/dist/assets/svg/pencil.svg +1 -1
- package/dist/assets/svg/pie-chart.svg +1 -0
- package/dist/assets/svg/table.svg +1 -0
- package/dist/components/checkbox-group/checkbox-group-types.d.ts +28 -0
- package/dist/components/checkbox-group/checkbox-group-types.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/progress-bar/progress-bar-types.d.ts +20 -0
- package/dist/components/progress-bar/progress-bar-types.d.ts.map +1 -0
- package/dist/components/progress-bar/progress-bar.d.ts +7 -0
- package/dist/components/progress-bar/progress-bar.d.ts.map +1 -0
- package/dist/components/radio/radio-types.d.ts +14 -0
- package/dist/components/radio/radio-types.d.ts.map +1 -0
- package/dist/components/radio/radio.d.ts +8 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group-types.d.ts +30 -0
- package/dist/components/radio-group/radio-group-types.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +8 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/typography/typography-types.d.ts +26 -2
- package/dist/components/typography/typography-types.d.ts.map +1 -1
- package/dist/components/typography/typography.d.ts +1 -1
- package/dist/components/typography/typography.d.ts.map +1 -1
- package/dist/custom-components/chat/chat.d.ts.map +1 -1
- package/dist/custom-components/layout/layout-renderers.d.ts +9 -0
- package/dist/custom-components/layout/layout-renderers.d.ts.map +1 -0
- package/dist/custom-components/layout/layout-types.d.ts +24 -10
- package/dist/custom-components/layout/layout-types.d.ts.map +1 -1
- package/dist/custom-components/layout/layout.d.ts +9 -0
- package/dist/custom-components/layout/layout.d.ts.map +1 -1
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +5 -0
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts.map +1 -0
- package/dist/custom-components/markdown/markdown-types.d.ts +3 -2
- package/dist/custom-components/markdown/markdown-types.d.ts.map +1 -1
- package/dist/custom-components/markdown/markdown.d.ts.map +1 -1
- package/dist/data-components/assets/cell-types-asset.d.ts +39 -0
- package/dist/data-components/assets/cell-types-asset.d.ts.map +1 -0
- package/dist/data-components/assets/data-components-asset.d.ts +11 -0
- package/dist/data-components/assets/data-components-asset.d.ts.map +1 -1
- package/dist/data-components/calendar/calendar-types.d.ts +2 -1
- package/dist/data-components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/data-components/calendar/calendar.d.ts +1 -1
- package/dist/data-components/calendar/calendar.d.ts.map +1 -1
- package/dist/data-components/card/card-types.d.ts +21 -0
- package/dist/data-components/card/card-types.d.ts.map +1 -0
- package/dist/data-components/card/card.d.ts +10 -0
- package/dist/data-components/card/card.d.ts.map +1 -0
- package/dist/data-components/card-list/card-list-types.d.ts +22 -0
- package/dist/data-components/card-list/card-list-types.d.ts.map +1 -0
- package/dist/data-components/card-list/card-list.d.ts +13 -0
- package/dist/data-components/card-list/card-list.d.ts.map +1 -0
- package/dist/data-components/card-list/models/ecommerce.d.ts +13 -0
- package/dist/data-components/card-list/models/ecommerce.d.ts.map +1 -0
- package/dist/data-components/cell/cell-registry.d.ts +29 -0
- package/dist/data-components/cell/cell-registry.d.ts.map +1 -0
- package/dist/data-components/cell/cell-types.d.ts +5 -0
- package/dist/data-components/cell/cell-types.d.ts.map +1 -1
- package/dist/data-components/cell/cell-utils.d.ts +0 -6
- package/dist/data-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/data-components/cell/cell.d.ts +1 -1
- package/dist/data-components/cell/cell.d.ts.map +1 -1
- package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts +14 -0
- package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts.map +1 -0
- package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts +7 -0
- package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts.map +1 -0
- package/dist/data-components/chart/chart-types.d.ts +29 -2
- package/dist/data-components/chart/chart-types.d.ts.map +1 -1
- package/dist/data-components/chart/chart-utils.d.ts +28 -0
- package/dist/data-components/chart/chart-utils.d.ts.map +1 -0
- package/dist/data-components/chart/chart.d.ts +1 -1
- package/dist/data-components/chart/chart.d.ts.map +1 -1
- package/dist/data-components/chart/geo/geoChart.d.ts +10 -0
- package/dist/data-components/chart/geo/geoChart.d.ts.map +1 -0
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +2 -0
- package/dist/data-components/chart/sankey/sankeyChart.d.ts.map +1 -1
- package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts +36 -0
- package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts.map +1 -0
- package/dist/data-components/data-component-configurator/data-component-configurator.d.ts +17 -0
- package/dist/data-components/data-component-configurator/data-component-configurator.d.ts.map +1 -0
- package/dist/data-components/data-component-utils.d.ts +4 -0
- package/dist/data-components/data-component-utils.d.ts.map +1 -0
- package/dist/data-components/data-structure/data-structure-utils.d.ts.map +1 -1
- package/dist/data-components/data-structure/data-structure.d.ts +10 -0
- package/dist/data-components/data-structure/data-structure.d.ts.map +1 -1
- package/dist/data-components/filter/filter-types.d.ts +1 -1
- package/dist/data-components/filter/filter-types.d.ts.map +1 -1
- package/dist/data-components/form/form-types.d.ts +44 -1
- package/dist/data-components/form/form-types.d.ts.map +1 -1
- package/dist/data-components/form/form.d.ts +1 -1
- package/dist/data-components/form/form.d.ts.map +1 -1
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +9 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +12 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +7 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +3 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts.map +1 -0
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +21 -0
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-context.d.ts +13 -0
- package/dist/data-components/gantt/gantt-context.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-types.d.ts +102 -0
- package/dist/data-components/gantt/gantt-types.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-utils.d.ts +61 -0
- package/dist/data-components/gantt/gantt-utils.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt.d.ts +4 -0
- package/dist/data-components/gantt/gantt.d.ts.map +1 -0
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +15 -0
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts.map +1 -0
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +18 -0
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts.map +1 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +10 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts.map +1 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +3 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts.map +1 -0
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +13 -0
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts +8 -0
- package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-form/prop-form-types.d.ts +17 -0
- package/dist/data-components/switcher/prop-form/prop-form-types.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-form/prop-form.d.ts +6 -0
- package/dist/data-components/switcher/prop-form/prop-form.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts +53 -0
- package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts +15 -0
- package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts.map +1 -0
- package/dist/data-components/switcher/prop-schema/prop-schema.d.ts +38 -0
- package/dist/data-components/switcher/prop-schema/prop-schema.d.ts.map +1 -0
- package/dist/data-components/switcher/switcher-types.d.ts +58 -0
- package/dist/data-components/switcher/switcher-types.d.ts.map +1 -0
- package/dist/data-components/switcher/switcher.d.ts +12 -0
- package/dist/data-components/switcher/switcher.d.ts.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +5 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +5 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +2 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +36 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts.map +1 -1
- package/dist/data-components/table-grid/formula/formula-builder.d.ts.map +1 -1
- package/dist/data-components/table-grid/grouping/grouping.d.ts +15 -0
- package/dist/data-components/table-grid/grouping/grouping.d.ts.map +1 -0
- package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts.map +1 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts.map +1 -1
- package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
- package/dist/data-components/table-grid/selection/selection-utils.d.ts +5 -5
- package/dist/data-components/table-grid/selection/selection-utils.d.ts.map +1 -1
- package/dist/data-components/table-grid/sorting/sorting.d.ts +3 -5
- package/dist/data-components/table-grid/sorting/sorting.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-context/table-context-types.d.ts +3 -0
- package/dist/data-components/table-grid/table-context/table-context-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid-context.d.ts +1 -1
- package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid-panels.d.ts +22 -0
- package/dist/data-components/table-grid/table-grid-panels.d.ts.map +1 -0
- package/dist/data-components/table-grid/table-grid-types.d.ts +28 -1
- package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid.d.ts +9 -2
- package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-utils.d.ts +14 -2
- package/dist/data-components/table-grid/table-utils.d.ts.map +1 -1
- package/dist/data-components/ui-layer/ui-layer-types.d.ts +82 -0
- package/dist/data-components/ui-layer/ui-layer-types.d.ts.map +1 -0
- package/dist/data-components/ui-layer/ui-layer-utils.d.ts +13 -0
- package/dist/data-components/ui-layer/ui-layer-utils.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts +33 -0
- package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts +22 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts +129 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts +28 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts +14 -0
- package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts +24 -0
- package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts.map +1 -0
- package/dist/experimental-components/dashboard-builder/widget-palette.d.ts +29 -0
- package/dist/experimental-components/dashboard-builder/widget-palette.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-context.d.ts +12 -0
- package/dist/framework-components/dashboard/dashboard-context.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-types.d.ts +35 -0
- package/dist/framework-components/dashboard/dashboard-types.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts +1 -0
- package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-widget-types.d.ts +67 -0
- package/dist/framework-components/dashboard/dashboard-widget-types.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard-widget.d.ts +17 -0
- package/dist/framework-components/dashboard/dashboard-widget.d.ts.map +1 -0
- package/dist/framework-components/dashboard/dashboard.d.ts +11 -0
- package/dist/framework-components/dashboard/dashboard.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts +11 -0
- package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts +47 -0
- package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts +119 -0
- package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.d.ts +87 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts +2 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts +2 -0
- package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/field-inference.d.ts +10 -0
- package/dist/framework-components/dashboard/data-engine/field-inference.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts +12 -0
- package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/index.d.ts +8 -0
- package/dist/framework-components/dashboard/data-engine/index.d.ts.map +1 -0
- package/dist/framework-components/dashboard/data-engine/join-engine.d.ts +17 -0
- package/dist/framework-components/dashboard/data-engine/join-engine.d.ts.map +1 -0
- package/dist/framework-components/section/section-types.d.ts +14 -0
- package/dist/framework-components/section/section-types.d.ts.map +1 -0
- package/dist/framework-components/section/section.d.ts +9 -0
- package/dist/framework-components/section/section.d.ts.map +1 -0
- package/dist/index.d.ts +36 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts +2 -0
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts.map +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts.map +1 -1
- package/dist/restio-ui.cjs.js +58 -30
- package/dist/restio-ui.es.js +33944 -32056
- package/dist/types/global-types.d.ts +11 -0
- package/dist/types/global-types.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/utility-components/icon/icon-assets.d.ts.map +1 -1
- package/package.json +1 -4
- package/dist/components/graph/graph-types.d.ts +0 -23
- package/dist/components/graph/graph-types.d.ts.map +0 -1
- package/dist/components/graph/graph.d.ts +0 -5
- package/dist/components/graph/graph.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-constants.d.ts +0 -22
- package/dist/custom-components/layout-builder/layout-builder-constants.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-schema.d.ts +0 -967
- package/dist/custom-components/layout-builder/layout-builder-schema.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-templates.d.ts +0 -13
- package/dist/custom-components/layout-builder/layout-builder-templates.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-types.d.ts +0 -73
- package/dist/custom-components/layout-builder/layout-builder-types.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-utils.d.ts +0 -70
- package/dist/custom-components/layout-builder/layout-builder-utils.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +0 -29
- package/dist/custom-components/layout-builder/layout-builder-validation.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder.d.ts +0 -4
- package/dist/custom-components/layout-builder/layout-builder.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +0 -60
- package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/layout-json-editor.d.ts +0 -13
- package/dist/custom-components/layout-builder/layout-json-editor.d.ts.map +0 -1
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.d.ts +0 -49
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.d.ts.map +0 -1
- package/dist/data-components/cell/cell-switch.d.ts +0 -17
- package/dist/data-components/cell/cell-switch.d.ts.map +0 -1
|
@@ -1,967 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Layout Builder JSON Schema Definition
|
|
3
|
-
*
|
|
4
|
-
* This module defines the JSON Schema for the layout system following
|
|
5
|
-
* JSON Schema Draft 2020-12 specification.
|
|
6
|
-
*
|
|
7
|
-
* The schema is the single source of truth for:
|
|
8
|
-
* - Visual layout builder
|
|
9
|
-
* - JSON editor
|
|
10
|
-
* - Validation
|
|
11
|
-
* - Serialization/Deserialization
|
|
12
|
-
*/
|
|
13
|
-
export declare const LAYOUT_SCHEMA_VERSION = "1.0.0";
|
|
14
|
-
/**
|
|
15
|
-
* JSON Schema for GridPlacement
|
|
16
|
-
* Defines the position and size of a block in the grid
|
|
17
|
-
*/
|
|
18
|
-
export declare const GridPlacementSchema: {
|
|
19
|
-
readonly type: "object";
|
|
20
|
-
readonly properties: {
|
|
21
|
-
readonly col: {
|
|
22
|
-
readonly type: "integer";
|
|
23
|
-
readonly minimum: 1;
|
|
24
|
-
readonly description: "Starting column (1-based index)";
|
|
25
|
-
};
|
|
26
|
-
readonly row: {
|
|
27
|
-
readonly type: "integer";
|
|
28
|
-
readonly minimum: 1;
|
|
29
|
-
readonly description: "Starting row (1-based index)";
|
|
30
|
-
};
|
|
31
|
-
readonly w: {
|
|
32
|
-
readonly type: "integer";
|
|
33
|
-
readonly minimum: 1;
|
|
34
|
-
readonly description: "Width in grid columns";
|
|
35
|
-
};
|
|
36
|
-
readonly h: {
|
|
37
|
-
readonly type: "integer";
|
|
38
|
-
readonly minimum: 1;
|
|
39
|
-
readonly description: "Height in grid rows";
|
|
40
|
-
};
|
|
41
|
-
readonly alignX: {
|
|
42
|
-
readonly type: "string";
|
|
43
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
44
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
45
|
-
};
|
|
46
|
-
readonly alignY: {
|
|
47
|
-
readonly type: "string";
|
|
48
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
49
|
-
readonly description: "Vertical alignment of content within the block";
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
53
|
-
readonly additionalProperties: false;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* JSON Schema for BreakpointLayout
|
|
57
|
-
* Defines the layout configuration for a single breakpoint
|
|
58
|
-
*/
|
|
59
|
-
export declare const BreakpointLayoutSchema: {
|
|
60
|
-
readonly type: "object";
|
|
61
|
-
readonly properties: {
|
|
62
|
-
readonly columns: {
|
|
63
|
-
readonly type: "integer";
|
|
64
|
-
readonly minimum: 1;
|
|
65
|
-
readonly maximum: 24;
|
|
66
|
-
readonly description: "Number of columns in the grid";
|
|
67
|
-
};
|
|
68
|
-
readonly rows: {
|
|
69
|
-
readonly type: "integer";
|
|
70
|
-
readonly minimum: 1;
|
|
71
|
-
readonly maximum: 24;
|
|
72
|
-
readonly description: "Number of rows in the grid";
|
|
73
|
-
};
|
|
74
|
-
readonly gap: {
|
|
75
|
-
readonly type: "number";
|
|
76
|
-
readonly minimum: 0;
|
|
77
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
78
|
-
};
|
|
79
|
-
readonly blocks: {
|
|
80
|
-
readonly type: "object";
|
|
81
|
-
readonly additionalProperties: {
|
|
82
|
-
readonly type: "object";
|
|
83
|
-
readonly properties: {
|
|
84
|
-
readonly col: {
|
|
85
|
-
readonly type: "integer";
|
|
86
|
-
readonly minimum: 1;
|
|
87
|
-
readonly description: "Starting column (1-based index)";
|
|
88
|
-
};
|
|
89
|
-
readonly row: {
|
|
90
|
-
readonly type: "integer";
|
|
91
|
-
readonly minimum: 1;
|
|
92
|
-
readonly description: "Starting row (1-based index)";
|
|
93
|
-
};
|
|
94
|
-
readonly w: {
|
|
95
|
-
readonly type: "integer";
|
|
96
|
-
readonly minimum: 1;
|
|
97
|
-
readonly description: "Width in grid columns";
|
|
98
|
-
};
|
|
99
|
-
readonly h: {
|
|
100
|
-
readonly type: "integer";
|
|
101
|
-
readonly minimum: 1;
|
|
102
|
-
readonly description: "Height in grid rows";
|
|
103
|
-
};
|
|
104
|
-
readonly alignX: {
|
|
105
|
-
readonly type: "string";
|
|
106
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
107
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
108
|
-
};
|
|
109
|
-
readonly alignY: {
|
|
110
|
-
readonly type: "string";
|
|
111
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
112
|
-
readonly description: "Vertical alignment of content within the block";
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
116
|
-
readonly additionalProperties: false;
|
|
117
|
-
};
|
|
118
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
119
|
-
};
|
|
120
|
-
readonly extends: {
|
|
121
|
-
readonly type: "string";
|
|
122
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
123
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
readonly required: readonly ["columns", "blocks"];
|
|
127
|
-
readonly additionalProperties: false;
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* JSON Schema for ResponsiveLayout (root schema)
|
|
131
|
-
* Defines the complete responsive layout with all breakpoints
|
|
132
|
-
*/
|
|
133
|
-
export declare const ResponsiveLayoutSchema: {
|
|
134
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
135
|
-
readonly $id: "https://restio.dev/schemas/layout/v1.0.0";
|
|
136
|
-
readonly title: "ResponsiveLayout";
|
|
137
|
-
readonly description: "A responsive grid-based layout configuration for multiple breakpoints";
|
|
138
|
-
readonly type: "object";
|
|
139
|
-
readonly properties: {
|
|
140
|
-
readonly $schema: {
|
|
141
|
-
readonly type: "string";
|
|
142
|
-
readonly description: "JSON Schema reference (optional)";
|
|
143
|
-
};
|
|
144
|
-
readonly version: {
|
|
145
|
-
readonly type: "string";
|
|
146
|
-
readonly pattern: "^\\d+\\.\\d+\\.\\d+$";
|
|
147
|
-
readonly description: "Schema version for backward compatibility";
|
|
148
|
-
};
|
|
149
|
-
readonly mobile: {
|
|
150
|
-
readonly description: "Layout configuration for mobile devices (< 768px)";
|
|
151
|
-
readonly type: "object";
|
|
152
|
-
readonly properties: {
|
|
153
|
-
readonly columns: {
|
|
154
|
-
readonly type: "integer";
|
|
155
|
-
readonly minimum: 1;
|
|
156
|
-
readonly maximum: 24;
|
|
157
|
-
readonly description: "Number of columns in the grid";
|
|
158
|
-
};
|
|
159
|
-
readonly rows: {
|
|
160
|
-
readonly type: "integer";
|
|
161
|
-
readonly minimum: 1;
|
|
162
|
-
readonly maximum: 24;
|
|
163
|
-
readonly description: "Number of rows in the grid";
|
|
164
|
-
};
|
|
165
|
-
readonly gap: {
|
|
166
|
-
readonly type: "number";
|
|
167
|
-
readonly minimum: 0;
|
|
168
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
169
|
-
};
|
|
170
|
-
readonly blocks: {
|
|
171
|
-
readonly type: "object";
|
|
172
|
-
readonly additionalProperties: {
|
|
173
|
-
readonly type: "object";
|
|
174
|
-
readonly properties: {
|
|
175
|
-
readonly col: {
|
|
176
|
-
readonly type: "integer";
|
|
177
|
-
readonly minimum: 1;
|
|
178
|
-
readonly description: "Starting column (1-based index)";
|
|
179
|
-
};
|
|
180
|
-
readonly row: {
|
|
181
|
-
readonly type: "integer";
|
|
182
|
-
readonly minimum: 1;
|
|
183
|
-
readonly description: "Starting row (1-based index)";
|
|
184
|
-
};
|
|
185
|
-
readonly w: {
|
|
186
|
-
readonly type: "integer";
|
|
187
|
-
readonly minimum: 1;
|
|
188
|
-
readonly description: "Width in grid columns";
|
|
189
|
-
};
|
|
190
|
-
readonly h: {
|
|
191
|
-
readonly type: "integer";
|
|
192
|
-
readonly minimum: 1;
|
|
193
|
-
readonly description: "Height in grid rows";
|
|
194
|
-
};
|
|
195
|
-
readonly alignX: {
|
|
196
|
-
readonly type: "string";
|
|
197
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
198
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
199
|
-
};
|
|
200
|
-
readonly alignY: {
|
|
201
|
-
readonly type: "string";
|
|
202
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
203
|
-
readonly description: "Vertical alignment of content within the block";
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
207
|
-
readonly additionalProperties: false;
|
|
208
|
-
};
|
|
209
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
210
|
-
};
|
|
211
|
-
readonly extends: {
|
|
212
|
-
readonly type: "string";
|
|
213
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
214
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
readonly required: readonly ["columns", "blocks"];
|
|
218
|
-
readonly additionalProperties: false;
|
|
219
|
-
};
|
|
220
|
-
readonly tablet: {
|
|
221
|
-
readonly description: "Layout configuration for tablet devices (768px - 1023px)";
|
|
222
|
-
readonly type: "object";
|
|
223
|
-
readonly properties: {
|
|
224
|
-
readonly columns: {
|
|
225
|
-
readonly type: "integer";
|
|
226
|
-
readonly minimum: 1;
|
|
227
|
-
readonly maximum: 24;
|
|
228
|
-
readonly description: "Number of columns in the grid";
|
|
229
|
-
};
|
|
230
|
-
readonly rows: {
|
|
231
|
-
readonly type: "integer";
|
|
232
|
-
readonly minimum: 1;
|
|
233
|
-
readonly maximum: 24;
|
|
234
|
-
readonly description: "Number of rows in the grid";
|
|
235
|
-
};
|
|
236
|
-
readonly gap: {
|
|
237
|
-
readonly type: "number";
|
|
238
|
-
readonly minimum: 0;
|
|
239
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
240
|
-
};
|
|
241
|
-
readonly blocks: {
|
|
242
|
-
readonly type: "object";
|
|
243
|
-
readonly additionalProperties: {
|
|
244
|
-
readonly type: "object";
|
|
245
|
-
readonly properties: {
|
|
246
|
-
readonly col: {
|
|
247
|
-
readonly type: "integer";
|
|
248
|
-
readonly minimum: 1;
|
|
249
|
-
readonly description: "Starting column (1-based index)";
|
|
250
|
-
};
|
|
251
|
-
readonly row: {
|
|
252
|
-
readonly type: "integer";
|
|
253
|
-
readonly minimum: 1;
|
|
254
|
-
readonly description: "Starting row (1-based index)";
|
|
255
|
-
};
|
|
256
|
-
readonly w: {
|
|
257
|
-
readonly type: "integer";
|
|
258
|
-
readonly minimum: 1;
|
|
259
|
-
readonly description: "Width in grid columns";
|
|
260
|
-
};
|
|
261
|
-
readonly h: {
|
|
262
|
-
readonly type: "integer";
|
|
263
|
-
readonly minimum: 1;
|
|
264
|
-
readonly description: "Height in grid rows";
|
|
265
|
-
};
|
|
266
|
-
readonly alignX: {
|
|
267
|
-
readonly type: "string";
|
|
268
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
269
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
270
|
-
};
|
|
271
|
-
readonly alignY: {
|
|
272
|
-
readonly type: "string";
|
|
273
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
274
|
-
readonly description: "Vertical alignment of content within the block";
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
278
|
-
readonly additionalProperties: false;
|
|
279
|
-
};
|
|
280
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
281
|
-
};
|
|
282
|
-
readonly extends: {
|
|
283
|
-
readonly type: "string";
|
|
284
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
285
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
286
|
-
};
|
|
287
|
-
};
|
|
288
|
-
readonly required: readonly ["columns", "blocks"];
|
|
289
|
-
readonly additionalProperties: false;
|
|
290
|
-
};
|
|
291
|
-
readonly desktop: {
|
|
292
|
-
readonly description: "Layout configuration for desktop devices (>= 1024px)";
|
|
293
|
-
readonly type: "object";
|
|
294
|
-
readonly properties: {
|
|
295
|
-
readonly columns: {
|
|
296
|
-
readonly type: "integer";
|
|
297
|
-
readonly minimum: 1;
|
|
298
|
-
readonly maximum: 24;
|
|
299
|
-
readonly description: "Number of columns in the grid";
|
|
300
|
-
};
|
|
301
|
-
readonly rows: {
|
|
302
|
-
readonly type: "integer";
|
|
303
|
-
readonly minimum: 1;
|
|
304
|
-
readonly maximum: 24;
|
|
305
|
-
readonly description: "Number of rows in the grid";
|
|
306
|
-
};
|
|
307
|
-
readonly gap: {
|
|
308
|
-
readonly type: "number";
|
|
309
|
-
readonly minimum: 0;
|
|
310
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
311
|
-
};
|
|
312
|
-
readonly blocks: {
|
|
313
|
-
readonly type: "object";
|
|
314
|
-
readonly additionalProperties: {
|
|
315
|
-
readonly type: "object";
|
|
316
|
-
readonly properties: {
|
|
317
|
-
readonly col: {
|
|
318
|
-
readonly type: "integer";
|
|
319
|
-
readonly minimum: 1;
|
|
320
|
-
readonly description: "Starting column (1-based index)";
|
|
321
|
-
};
|
|
322
|
-
readonly row: {
|
|
323
|
-
readonly type: "integer";
|
|
324
|
-
readonly minimum: 1;
|
|
325
|
-
readonly description: "Starting row (1-based index)";
|
|
326
|
-
};
|
|
327
|
-
readonly w: {
|
|
328
|
-
readonly type: "integer";
|
|
329
|
-
readonly minimum: 1;
|
|
330
|
-
readonly description: "Width in grid columns";
|
|
331
|
-
};
|
|
332
|
-
readonly h: {
|
|
333
|
-
readonly type: "integer";
|
|
334
|
-
readonly minimum: 1;
|
|
335
|
-
readonly description: "Height in grid rows";
|
|
336
|
-
};
|
|
337
|
-
readonly alignX: {
|
|
338
|
-
readonly type: "string";
|
|
339
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
340
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
341
|
-
};
|
|
342
|
-
readonly alignY: {
|
|
343
|
-
readonly type: "string";
|
|
344
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
345
|
-
readonly description: "Vertical alignment of content within the block";
|
|
346
|
-
};
|
|
347
|
-
};
|
|
348
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
349
|
-
readonly additionalProperties: false;
|
|
350
|
-
};
|
|
351
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
352
|
-
};
|
|
353
|
-
readonly extends: {
|
|
354
|
-
readonly type: "string";
|
|
355
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
356
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
357
|
-
};
|
|
358
|
-
};
|
|
359
|
-
readonly required: readonly ["columns", "blocks"];
|
|
360
|
-
readonly additionalProperties: false;
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
readonly required: readonly ["mobile", "tablet", "desktop"];
|
|
364
|
-
readonly additionalProperties: false;
|
|
365
|
-
};
|
|
366
|
-
/**
|
|
367
|
-
* Export the complete schema as a single object
|
|
368
|
-
*/
|
|
369
|
-
export declare const LayoutSchema: {
|
|
370
|
-
version: string;
|
|
371
|
-
schema: {
|
|
372
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
373
|
-
readonly $id: "https://restio.dev/schemas/layout/v1.0.0";
|
|
374
|
-
readonly title: "ResponsiveLayout";
|
|
375
|
-
readonly description: "A responsive grid-based layout configuration for multiple breakpoints";
|
|
376
|
-
readonly type: "object";
|
|
377
|
-
readonly properties: {
|
|
378
|
-
readonly $schema: {
|
|
379
|
-
readonly type: "string";
|
|
380
|
-
readonly description: "JSON Schema reference (optional)";
|
|
381
|
-
};
|
|
382
|
-
readonly version: {
|
|
383
|
-
readonly type: "string";
|
|
384
|
-
readonly pattern: "^\\d+\\.\\d+\\.\\d+$";
|
|
385
|
-
readonly description: "Schema version for backward compatibility";
|
|
386
|
-
};
|
|
387
|
-
readonly mobile: {
|
|
388
|
-
readonly description: "Layout configuration for mobile devices (< 768px)";
|
|
389
|
-
readonly type: "object";
|
|
390
|
-
readonly properties: {
|
|
391
|
-
readonly columns: {
|
|
392
|
-
readonly type: "integer";
|
|
393
|
-
readonly minimum: 1;
|
|
394
|
-
readonly maximum: 24;
|
|
395
|
-
readonly description: "Number of columns in the grid";
|
|
396
|
-
};
|
|
397
|
-
readonly rows: {
|
|
398
|
-
readonly type: "integer";
|
|
399
|
-
readonly minimum: 1;
|
|
400
|
-
readonly maximum: 24;
|
|
401
|
-
readonly description: "Number of rows in the grid";
|
|
402
|
-
};
|
|
403
|
-
readonly gap: {
|
|
404
|
-
readonly type: "number";
|
|
405
|
-
readonly minimum: 0;
|
|
406
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
407
|
-
};
|
|
408
|
-
readonly blocks: {
|
|
409
|
-
readonly type: "object";
|
|
410
|
-
readonly additionalProperties: {
|
|
411
|
-
readonly type: "object";
|
|
412
|
-
readonly properties: {
|
|
413
|
-
readonly col: {
|
|
414
|
-
readonly type: "integer";
|
|
415
|
-
readonly minimum: 1;
|
|
416
|
-
readonly description: "Starting column (1-based index)";
|
|
417
|
-
};
|
|
418
|
-
readonly row: {
|
|
419
|
-
readonly type: "integer";
|
|
420
|
-
readonly minimum: 1;
|
|
421
|
-
readonly description: "Starting row (1-based index)";
|
|
422
|
-
};
|
|
423
|
-
readonly w: {
|
|
424
|
-
readonly type: "integer";
|
|
425
|
-
readonly minimum: 1;
|
|
426
|
-
readonly description: "Width in grid columns";
|
|
427
|
-
};
|
|
428
|
-
readonly h: {
|
|
429
|
-
readonly type: "integer";
|
|
430
|
-
readonly minimum: 1;
|
|
431
|
-
readonly description: "Height in grid rows";
|
|
432
|
-
};
|
|
433
|
-
readonly alignX: {
|
|
434
|
-
readonly type: "string";
|
|
435
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
436
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
437
|
-
};
|
|
438
|
-
readonly alignY: {
|
|
439
|
-
readonly type: "string";
|
|
440
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
441
|
-
readonly description: "Vertical alignment of content within the block";
|
|
442
|
-
};
|
|
443
|
-
};
|
|
444
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
445
|
-
readonly additionalProperties: false;
|
|
446
|
-
};
|
|
447
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
448
|
-
};
|
|
449
|
-
readonly extends: {
|
|
450
|
-
readonly type: "string";
|
|
451
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
452
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
readonly required: readonly ["columns", "blocks"];
|
|
456
|
-
readonly additionalProperties: false;
|
|
457
|
-
};
|
|
458
|
-
readonly tablet: {
|
|
459
|
-
readonly description: "Layout configuration for tablet devices (768px - 1023px)";
|
|
460
|
-
readonly type: "object";
|
|
461
|
-
readonly properties: {
|
|
462
|
-
readonly columns: {
|
|
463
|
-
readonly type: "integer";
|
|
464
|
-
readonly minimum: 1;
|
|
465
|
-
readonly maximum: 24;
|
|
466
|
-
readonly description: "Number of columns in the grid";
|
|
467
|
-
};
|
|
468
|
-
readonly rows: {
|
|
469
|
-
readonly type: "integer";
|
|
470
|
-
readonly minimum: 1;
|
|
471
|
-
readonly maximum: 24;
|
|
472
|
-
readonly description: "Number of rows in the grid";
|
|
473
|
-
};
|
|
474
|
-
readonly gap: {
|
|
475
|
-
readonly type: "number";
|
|
476
|
-
readonly minimum: 0;
|
|
477
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
478
|
-
};
|
|
479
|
-
readonly blocks: {
|
|
480
|
-
readonly type: "object";
|
|
481
|
-
readonly additionalProperties: {
|
|
482
|
-
readonly type: "object";
|
|
483
|
-
readonly properties: {
|
|
484
|
-
readonly col: {
|
|
485
|
-
readonly type: "integer";
|
|
486
|
-
readonly minimum: 1;
|
|
487
|
-
readonly description: "Starting column (1-based index)";
|
|
488
|
-
};
|
|
489
|
-
readonly row: {
|
|
490
|
-
readonly type: "integer";
|
|
491
|
-
readonly minimum: 1;
|
|
492
|
-
readonly description: "Starting row (1-based index)";
|
|
493
|
-
};
|
|
494
|
-
readonly w: {
|
|
495
|
-
readonly type: "integer";
|
|
496
|
-
readonly minimum: 1;
|
|
497
|
-
readonly description: "Width in grid columns";
|
|
498
|
-
};
|
|
499
|
-
readonly h: {
|
|
500
|
-
readonly type: "integer";
|
|
501
|
-
readonly minimum: 1;
|
|
502
|
-
readonly description: "Height in grid rows";
|
|
503
|
-
};
|
|
504
|
-
readonly alignX: {
|
|
505
|
-
readonly type: "string";
|
|
506
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
507
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
508
|
-
};
|
|
509
|
-
readonly alignY: {
|
|
510
|
-
readonly type: "string";
|
|
511
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
512
|
-
readonly description: "Vertical alignment of content within the block";
|
|
513
|
-
};
|
|
514
|
-
};
|
|
515
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
516
|
-
readonly additionalProperties: false;
|
|
517
|
-
};
|
|
518
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
519
|
-
};
|
|
520
|
-
readonly extends: {
|
|
521
|
-
readonly type: "string";
|
|
522
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
523
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
524
|
-
};
|
|
525
|
-
};
|
|
526
|
-
readonly required: readonly ["columns", "blocks"];
|
|
527
|
-
readonly additionalProperties: false;
|
|
528
|
-
};
|
|
529
|
-
readonly desktop: {
|
|
530
|
-
readonly description: "Layout configuration for desktop devices (>= 1024px)";
|
|
531
|
-
readonly type: "object";
|
|
532
|
-
readonly properties: {
|
|
533
|
-
readonly columns: {
|
|
534
|
-
readonly type: "integer";
|
|
535
|
-
readonly minimum: 1;
|
|
536
|
-
readonly maximum: 24;
|
|
537
|
-
readonly description: "Number of columns in the grid";
|
|
538
|
-
};
|
|
539
|
-
readonly rows: {
|
|
540
|
-
readonly type: "integer";
|
|
541
|
-
readonly minimum: 1;
|
|
542
|
-
readonly maximum: 24;
|
|
543
|
-
readonly description: "Number of rows in the grid";
|
|
544
|
-
};
|
|
545
|
-
readonly gap: {
|
|
546
|
-
readonly type: "number";
|
|
547
|
-
readonly minimum: 0;
|
|
548
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
549
|
-
};
|
|
550
|
-
readonly blocks: {
|
|
551
|
-
readonly type: "object";
|
|
552
|
-
readonly additionalProperties: {
|
|
553
|
-
readonly type: "object";
|
|
554
|
-
readonly properties: {
|
|
555
|
-
readonly col: {
|
|
556
|
-
readonly type: "integer";
|
|
557
|
-
readonly minimum: 1;
|
|
558
|
-
readonly description: "Starting column (1-based index)";
|
|
559
|
-
};
|
|
560
|
-
readonly row: {
|
|
561
|
-
readonly type: "integer";
|
|
562
|
-
readonly minimum: 1;
|
|
563
|
-
readonly description: "Starting row (1-based index)";
|
|
564
|
-
};
|
|
565
|
-
readonly w: {
|
|
566
|
-
readonly type: "integer";
|
|
567
|
-
readonly minimum: 1;
|
|
568
|
-
readonly description: "Width in grid columns";
|
|
569
|
-
};
|
|
570
|
-
readonly h: {
|
|
571
|
-
readonly type: "integer";
|
|
572
|
-
readonly minimum: 1;
|
|
573
|
-
readonly description: "Height in grid rows";
|
|
574
|
-
};
|
|
575
|
-
readonly alignX: {
|
|
576
|
-
readonly type: "string";
|
|
577
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
578
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
579
|
-
};
|
|
580
|
-
readonly alignY: {
|
|
581
|
-
readonly type: "string";
|
|
582
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
583
|
-
readonly description: "Vertical alignment of content within the block";
|
|
584
|
-
};
|
|
585
|
-
};
|
|
586
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
587
|
-
readonly additionalProperties: false;
|
|
588
|
-
};
|
|
589
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
590
|
-
};
|
|
591
|
-
readonly extends: {
|
|
592
|
-
readonly type: "string";
|
|
593
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
594
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
595
|
-
};
|
|
596
|
-
};
|
|
597
|
-
readonly required: readonly ["columns", "blocks"];
|
|
598
|
-
readonly additionalProperties: false;
|
|
599
|
-
};
|
|
600
|
-
};
|
|
601
|
-
readonly required: readonly ["mobile", "tablet", "desktop"];
|
|
602
|
-
readonly additionalProperties: false;
|
|
603
|
-
};
|
|
604
|
-
definitions: {
|
|
605
|
-
GridPlacement: {
|
|
606
|
-
readonly type: "object";
|
|
607
|
-
readonly properties: {
|
|
608
|
-
readonly col: {
|
|
609
|
-
readonly type: "integer";
|
|
610
|
-
readonly minimum: 1;
|
|
611
|
-
readonly description: "Starting column (1-based index)";
|
|
612
|
-
};
|
|
613
|
-
readonly row: {
|
|
614
|
-
readonly type: "integer";
|
|
615
|
-
readonly minimum: 1;
|
|
616
|
-
readonly description: "Starting row (1-based index)";
|
|
617
|
-
};
|
|
618
|
-
readonly w: {
|
|
619
|
-
readonly type: "integer";
|
|
620
|
-
readonly minimum: 1;
|
|
621
|
-
readonly description: "Width in grid columns";
|
|
622
|
-
};
|
|
623
|
-
readonly h: {
|
|
624
|
-
readonly type: "integer";
|
|
625
|
-
readonly minimum: 1;
|
|
626
|
-
readonly description: "Height in grid rows";
|
|
627
|
-
};
|
|
628
|
-
readonly alignX: {
|
|
629
|
-
readonly type: "string";
|
|
630
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
631
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
632
|
-
};
|
|
633
|
-
readonly alignY: {
|
|
634
|
-
readonly type: "string";
|
|
635
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
636
|
-
readonly description: "Vertical alignment of content within the block";
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
640
|
-
readonly additionalProperties: false;
|
|
641
|
-
};
|
|
642
|
-
BreakpointLayout: {
|
|
643
|
-
readonly type: "object";
|
|
644
|
-
readonly properties: {
|
|
645
|
-
readonly columns: {
|
|
646
|
-
readonly type: "integer";
|
|
647
|
-
readonly minimum: 1;
|
|
648
|
-
readonly maximum: 24;
|
|
649
|
-
readonly description: "Number of columns in the grid";
|
|
650
|
-
};
|
|
651
|
-
readonly rows: {
|
|
652
|
-
readonly type: "integer";
|
|
653
|
-
readonly minimum: 1;
|
|
654
|
-
readonly maximum: 24;
|
|
655
|
-
readonly description: "Number of rows in the grid";
|
|
656
|
-
};
|
|
657
|
-
readonly gap: {
|
|
658
|
-
readonly type: "number";
|
|
659
|
-
readonly minimum: 0;
|
|
660
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
661
|
-
};
|
|
662
|
-
readonly blocks: {
|
|
663
|
-
readonly type: "object";
|
|
664
|
-
readonly additionalProperties: {
|
|
665
|
-
readonly type: "object";
|
|
666
|
-
readonly properties: {
|
|
667
|
-
readonly col: {
|
|
668
|
-
readonly type: "integer";
|
|
669
|
-
readonly minimum: 1;
|
|
670
|
-
readonly description: "Starting column (1-based index)";
|
|
671
|
-
};
|
|
672
|
-
readonly row: {
|
|
673
|
-
readonly type: "integer";
|
|
674
|
-
readonly minimum: 1;
|
|
675
|
-
readonly description: "Starting row (1-based index)";
|
|
676
|
-
};
|
|
677
|
-
readonly w: {
|
|
678
|
-
readonly type: "integer";
|
|
679
|
-
readonly minimum: 1;
|
|
680
|
-
readonly description: "Width in grid columns";
|
|
681
|
-
};
|
|
682
|
-
readonly h: {
|
|
683
|
-
readonly type: "integer";
|
|
684
|
-
readonly minimum: 1;
|
|
685
|
-
readonly description: "Height in grid rows";
|
|
686
|
-
};
|
|
687
|
-
readonly alignX: {
|
|
688
|
-
readonly type: "string";
|
|
689
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
690
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
691
|
-
};
|
|
692
|
-
readonly alignY: {
|
|
693
|
-
readonly type: "string";
|
|
694
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
695
|
-
readonly description: "Vertical alignment of content within the block";
|
|
696
|
-
};
|
|
697
|
-
};
|
|
698
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
699
|
-
readonly additionalProperties: false;
|
|
700
|
-
};
|
|
701
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
702
|
-
};
|
|
703
|
-
readonly extends: {
|
|
704
|
-
readonly type: "string";
|
|
705
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
706
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
707
|
-
};
|
|
708
|
-
};
|
|
709
|
-
readonly required: readonly ["columns", "blocks"];
|
|
710
|
-
readonly additionalProperties: false;
|
|
711
|
-
};
|
|
712
|
-
ResponsiveLayout: {
|
|
713
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
714
|
-
readonly $id: "https://restio.dev/schemas/layout/v1.0.0";
|
|
715
|
-
readonly title: "ResponsiveLayout";
|
|
716
|
-
readonly description: "A responsive grid-based layout configuration for multiple breakpoints";
|
|
717
|
-
readonly type: "object";
|
|
718
|
-
readonly properties: {
|
|
719
|
-
readonly $schema: {
|
|
720
|
-
readonly type: "string";
|
|
721
|
-
readonly description: "JSON Schema reference (optional)";
|
|
722
|
-
};
|
|
723
|
-
readonly version: {
|
|
724
|
-
readonly type: "string";
|
|
725
|
-
readonly pattern: "^\\d+\\.\\d+\\.\\d+$";
|
|
726
|
-
readonly description: "Schema version for backward compatibility";
|
|
727
|
-
};
|
|
728
|
-
readonly mobile: {
|
|
729
|
-
readonly description: "Layout configuration for mobile devices (< 768px)";
|
|
730
|
-
readonly type: "object";
|
|
731
|
-
readonly properties: {
|
|
732
|
-
readonly columns: {
|
|
733
|
-
readonly type: "integer";
|
|
734
|
-
readonly minimum: 1;
|
|
735
|
-
readonly maximum: 24;
|
|
736
|
-
readonly description: "Number of columns in the grid";
|
|
737
|
-
};
|
|
738
|
-
readonly rows: {
|
|
739
|
-
readonly type: "integer";
|
|
740
|
-
readonly minimum: 1;
|
|
741
|
-
readonly maximum: 24;
|
|
742
|
-
readonly description: "Number of rows in the grid";
|
|
743
|
-
};
|
|
744
|
-
readonly gap: {
|
|
745
|
-
readonly type: "number";
|
|
746
|
-
readonly minimum: 0;
|
|
747
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
748
|
-
};
|
|
749
|
-
readonly blocks: {
|
|
750
|
-
readonly type: "object";
|
|
751
|
-
readonly additionalProperties: {
|
|
752
|
-
readonly type: "object";
|
|
753
|
-
readonly properties: {
|
|
754
|
-
readonly col: {
|
|
755
|
-
readonly type: "integer";
|
|
756
|
-
readonly minimum: 1;
|
|
757
|
-
readonly description: "Starting column (1-based index)";
|
|
758
|
-
};
|
|
759
|
-
readonly row: {
|
|
760
|
-
readonly type: "integer";
|
|
761
|
-
readonly minimum: 1;
|
|
762
|
-
readonly description: "Starting row (1-based index)";
|
|
763
|
-
};
|
|
764
|
-
readonly w: {
|
|
765
|
-
readonly type: "integer";
|
|
766
|
-
readonly minimum: 1;
|
|
767
|
-
readonly description: "Width in grid columns";
|
|
768
|
-
};
|
|
769
|
-
readonly h: {
|
|
770
|
-
readonly type: "integer";
|
|
771
|
-
readonly minimum: 1;
|
|
772
|
-
readonly description: "Height in grid rows";
|
|
773
|
-
};
|
|
774
|
-
readonly alignX: {
|
|
775
|
-
readonly type: "string";
|
|
776
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
777
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
778
|
-
};
|
|
779
|
-
readonly alignY: {
|
|
780
|
-
readonly type: "string";
|
|
781
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
782
|
-
readonly description: "Vertical alignment of content within the block";
|
|
783
|
-
};
|
|
784
|
-
};
|
|
785
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
786
|
-
readonly additionalProperties: false;
|
|
787
|
-
};
|
|
788
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
789
|
-
};
|
|
790
|
-
readonly extends: {
|
|
791
|
-
readonly type: "string";
|
|
792
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
793
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
794
|
-
};
|
|
795
|
-
};
|
|
796
|
-
readonly required: readonly ["columns", "blocks"];
|
|
797
|
-
readonly additionalProperties: false;
|
|
798
|
-
};
|
|
799
|
-
readonly tablet: {
|
|
800
|
-
readonly description: "Layout configuration for tablet devices (768px - 1023px)";
|
|
801
|
-
readonly type: "object";
|
|
802
|
-
readonly properties: {
|
|
803
|
-
readonly columns: {
|
|
804
|
-
readonly type: "integer";
|
|
805
|
-
readonly minimum: 1;
|
|
806
|
-
readonly maximum: 24;
|
|
807
|
-
readonly description: "Number of columns in the grid";
|
|
808
|
-
};
|
|
809
|
-
readonly rows: {
|
|
810
|
-
readonly type: "integer";
|
|
811
|
-
readonly minimum: 1;
|
|
812
|
-
readonly maximum: 24;
|
|
813
|
-
readonly description: "Number of rows in the grid";
|
|
814
|
-
};
|
|
815
|
-
readonly gap: {
|
|
816
|
-
readonly type: "number";
|
|
817
|
-
readonly minimum: 0;
|
|
818
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
819
|
-
};
|
|
820
|
-
readonly blocks: {
|
|
821
|
-
readonly type: "object";
|
|
822
|
-
readonly additionalProperties: {
|
|
823
|
-
readonly type: "object";
|
|
824
|
-
readonly properties: {
|
|
825
|
-
readonly col: {
|
|
826
|
-
readonly type: "integer";
|
|
827
|
-
readonly minimum: 1;
|
|
828
|
-
readonly description: "Starting column (1-based index)";
|
|
829
|
-
};
|
|
830
|
-
readonly row: {
|
|
831
|
-
readonly type: "integer";
|
|
832
|
-
readonly minimum: 1;
|
|
833
|
-
readonly description: "Starting row (1-based index)";
|
|
834
|
-
};
|
|
835
|
-
readonly w: {
|
|
836
|
-
readonly type: "integer";
|
|
837
|
-
readonly minimum: 1;
|
|
838
|
-
readonly description: "Width in grid columns";
|
|
839
|
-
};
|
|
840
|
-
readonly h: {
|
|
841
|
-
readonly type: "integer";
|
|
842
|
-
readonly minimum: 1;
|
|
843
|
-
readonly description: "Height in grid rows";
|
|
844
|
-
};
|
|
845
|
-
readonly alignX: {
|
|
846
|
-
readonly type: "string";
|
|
847
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
848
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
849
|
-
};
|
|
850
|
-
readonly alignY: {
|
|
851
|
-
readonly type: "string";
|
|
852
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
853
|
-
readonly description: "Vertical alignment of content within the block";
|
|
854
|
-
};
|
|
855
|
-
};
|
|
856
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
857
|
-
readonly additionalProperties: false;
|
|
858
|
-
};
|
|
859
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
860
|
-
};
|
|
861
|
-
readonly extends: {
|
|
862
|
-
readonly type: "string";
|
|
863
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
864
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
865
|
-
};
|
|
866
|
-
};
|
|
867
|
-
readonly required: readonly ["columns", "blocks"];
|
|
868
|
-
readonly additionalProperties: false;
|
|
869
|
-
};
|
|
870
|
-
readonly desktop: {
|
|
871
|
-
readonly description: "Layout configuration for desktop devices (>= 1024px)";
|
|
872
|
-
readonly type: "object";
|
|
873
|
-
readonly properties: {
|
|
874
|
-
readonly columns: {
|
|
875
|
-
readonly type: "integer";
|
|
876
|
-
readonly minimum: 1;
|
|
877
|
-
readonly maximum: 24;
|
|
878
|
-
readonly description: "Number of columns in the grid";
|
|
879
|
-
};
|
|
880
|
-
readonly rows: {
|
|
881
|
-
readonly type: "integer";
|
|
882
|
-
readonly minimum: 1;
|
|
883
|
-
readonly maximum: 24;
|
|
884
|
-
readonly description: "Number of rows in the grid";
|
|
885
|
-
};
|
|
886
|
-
readonly gap: {
|
|
887
|
-
readonly type: "number";
|
|
888
|
-
readonly minimum: 0;
|
|
889
|
-
readonly description: "Gap between grid cells (in spacing units)";
|
|
890
|
-
};
|
|
891
|
-
readonly blocks: {
|
|
892
|
-
readonly type: "object";
|
|
893
|
-
readonly additionalProperties: {
|
|
894
|
-
readonly type: "object";
|
|
895
|
-
readonly properties: {
|
|
896
|
-
readonly col: {
|
|
897
|
-
readonly type: "integer";
|
|
898
|
-
readonly minimum: 1;
|
|
899
|
-
readonly description: "Starting column (1-based index)";
|
|
900
|
-
};
|
|
901
|
-
readonly row: {
|
|
902
|
-
readonly type: "integer";
|
|
903
|
-
readonly minimum: 1;
|
|
904
|
-
readonly description: "Starting row (1-based index)";
|
|
905
|
-
};
|
|
906
|
-
readonly w: {
|
|
907
|
-
readonly type: "integer";
|
|
908
|
-
readonly minimum: 1;
|
|
909
|
-
readonly description: "Width in grid columns";
|
|
910
|
-
};
|
|
911
|
-
readonly h: {
|
|
912
|
-
readonly type: "integer";
|
|
913
|
-
readonly minimum: 1;
|
|
914
|
-
readonly description: "Height in grid rows";
|
|
915
|
-
};
|
|
916
|
-
readonly alignX: {
|
|
917
|
-
readonly type: "string";
|
|
918
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
919
|
-
readonly description: "Horizontal alignment of content within the block";
|
|
920
|
-
};
|
|
921
|
-
readonly alignY: {
|
|
922
|
-
readonly type: "string";
|
|
923
|
-
readonly enum: readonly ["start", "center", "end"];
|
|
924
|
-
readonly description: "Vertical alignment of content within the block";
|
|
925
|
-
};
|
|
926
|
-
};
|
|
927
|
-
readonly required: readonly ["col", "row", "w", "h"];
|
|
928
|
-
readonly additionalProperties: false;
|
|
929
|
-
};
|
|
930
|
-
readonly description: "Map of block IDs to their grid placements";
|
|
931
|
-
};
|
|
932
|
-
readonly extends: {
|
|
933
|
-
readonly type: "string";
|
|
934
|
-
readonly enum: readonly ["mobile", "tablet", "desktop"];
|
|
935
|
-
readonly description: "Optional: inherit from another breakpoint configuration";
|
|
936
|
-
};
|
|
937
|
-
};
|
|
938
|
-
readonly required: readonly ["columns", "blocks"];
|
|
939
|
-
readonly additionalProperties: false;
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
readonly required: readonly ["mobile", "tablet", "desktop"];
|
|
943
|
-
readonly additionalProperties: false;
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
};
|
|
947
|
-
/**
|
|
948
|
-
* Type for validation error details
|
|
949
|
-
*/
|
|
950
|
-
export interface ValidationError {
|
|
951
|
-
path: string;
|
|
952
|
-
message: string;
|
|
953
|
-
value?: unknown;
|
|
954
|
-
expected?: string;
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* Type for validation result
|
|
958
|
-
*/
|
|
959
|
-
export interface ValidationResult {
|
|
960
|
-
valid: boolean;
|
|
961
|
-
errors: ValidationError[];
|
|
962
|
-
}
|
|
963
|
-
/**
|
|
964
|
-
* Gets a human-readable description of the schema
|
|
965
|
-
*/
|
|
966
|
-
export declare function getSchemaDescription(): string;
|
|
967
|
-
//# sourceMappingURL=layout-builder-schema.d.ts.map
|