@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.
Files changed (209) hide show
  1. package/dist/assets/svg/form.svg +1 -0
  2. package/dist/assets/svg/list.svg +1 -0
  3. package/dist/assets/svg/pie-chart.svg +1 -0
  4. package/dist/assets/svg/table.svg +1 -0
  5. package/dist/components/checkbox-group/checkbox-group-types.d.ts +28 -0
  6. package/dist/components/checkbox-group/checkbox-group-types.d.ts.map +1 -0
  7. package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
  8. package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -0
  9. package/dist/components/menu/menu.d.ts.map +1 -1
  10. package/dist/components/progress-bar/progress-bar-types.d.ts +20 -0
  11. package/dist/components/progress-bar/progress-bar-types.d.ts.map +1 -0
  12. package/dist/components/progress-bar/progress-bar.d.ts +7 -0
  13. package/dist/components/progress-bar/progress-bar.d.ts.map +1 -0
  14. package/dist/components/radio/radio-types.d.ts +14 -0
  15. package/dist/components/radio/radio-types.d.ts.map +1 -0
  16. package/dist/components/radio/radio.d.ts +8 -0
  17. package/dist/components/radio/radio.d.ts.map +1 -0
  18. package/dist/components/radio-group/radio-group-types.d.ts +30 -0
  19. package/dist/components/radio-group/radio-group-types.d.ts.map +1 -0
  20. package/dist/components/radio-group/radio-group.d.ts +8 -0
  21. package/dist/components/radio-group/radio-group.d.ts.map +1 -0
  22. package/dist/components/typography/typography-types.d.ts +15 -0
  23. package/dist/components/typography/typography-types.d.ts.map +1 -1
  24. package/dist/components/typography/typography.d.ts +1 -1
  25. package/dist/components/typography/typography.d.ts.map +1 -1
  26. package/dist/custom-components/chat/chat.d.ts.map +1 -1
  27. package/dist/custom-components/layout/layout-renderers.d.ts +9 -0
  28. package/dist/custom-components/layout/layout-renderers.d.ts.map +1 -0
  29. package/dist/custom-components/layout/layout-types.d.ts +24 -10
  30. package/dist/custom-components/layout/layout-types.d.ts.map +1 -1
  31. package/dist/custom-components/layout/layout.d.ts +9 -0
  32. package/dist/custom-components/layout/layout.d.ts.map +1 -1
  33. package/dist/custom-components/markdown/markdown-types.d.ts +0 -2
  34. package/dist/custom-components/markdown/markdown-types.d.ts.map +1 -1
  35. package/dist/custom-components/markdown/markdown.d.ts.map +1 -1
  36. package/dist/data-components/assets/cell-types-asset.d.ts +39 -0
  37. package/dist/data-components/assets/cell-types-asset.d.ts.map +1 -0
  38. package/dist/data-components/assets/data-components-asset.d.ts +11 -0
  39. package/dist/data-components/assets/data-components-asset.d.ts.map +1 -1
  40. package/dist/data-components/calendar/calendar-types.d.ts +2 -1
  41. package/dist/data-components/calendar/calendar-types.d.ts.map +1 -1
  42. package/dist/data-components/calendar/calendar.d.ts +1 -1
  43. package/dist/data-components/calendar/calendar.d.ts.map +1 -1
  44. package/dist/data-components/card/card-types.d.ts +21 -0
  45. package/dist/data-components/card/card-types.d.ts.map +1 -0
  46. package/dist/data-components/card/card.d.ts +10 -0
  47. package/dist/data-components/card/card.d.ts.map +1 -0
  48. package/dist/data-components/card-list/card-list-types.d.ts +22 -0
  49. package/dist/data-components/card-list/card-list-types.d.ts.map +1 -0
  50. package/dist/data-components/card-list/card-list.d.ts +13 -0
  51. package/dist/data-components/card-list/card-list.d.ts.map +1 -0
  52. package/dist/data-components/card-list/models/ecommerce.d.ts +13 -0
  53. package/dist/data-components/card-list/models/ecommerce.d.ts.map +1 -0
  54. package/dist/data-components/cell/cell-registry.d.ts +29 -0
  55. package/dist/data-components/cell/cell-registry.d.ts.map +1 -0
  56. package/dist/data-components/cell/cell-types.d.ts +5 -0
  57. package/dist/data-components/cell/cell-types.d.ts.map +1 -1
  58. package/dist/data-components/cell/cell-utils.d.ts +0 -6
  59. package/dist/data-components/cell/cell-utils.d.ts.map +1 -1
  60. package/dist/data-components/cell/cell.d.ts +1 -1
  61. package/dist/data-components/cell/cell.d.ts.map +1 -1
  62. package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts +14 -0
  63. package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts.map +1 -0
  64. package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts +7 -0
  65. package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts.map +1 -0
  66. package/dist/data-components/chart/chart-types.d.ts +29 -2
  67. package/dist/data-components/chart/chart-types.d.ts.map +1 -1
  68. package/dist/data-components/chart/chart-utils.d.ts +28 -0
  69. package/dist/data-components/chart/chart-utils.d.ts.map +1 -0
  70. package/dist/data-components/chart/chart.d.ts +1 -1
  71. package/dist/data-components/chart/chart.d.ts.map +1 -1
  72. package/dist/data-components/chart/geo/geoChart.d.ts +10 -0
  73. package/dist/data-components/chart/geo/geoChart.d.ts.map +1 -0
  74. package/dist/data-components/chart/sankey/sankeyChart.d.ts +2 -0
  75. package/dist/data-components/chart/sankey/sankeyChart.d.ts.map +1 -1
  76. package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts +36 -0
  77. package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts.map +1 -0
  78. package/dist/data-components/data-component-configurator/data-component-configurator.d.ts +17 -0
  79. package/dist/data-components/data-component-configurator/data-component-configurator.d.ts.map +1 -0
  80. package/dist/data-components/data-component-utils.d.ts +4 -0
  81. package/dist/data-components/data-component-utils.d.ts.map +1 -0
  82. package/dist/data-components/data-structure/data-structure-utils.d.ts.map +1 -1
  83. package/dist/data-components/data-structure/data-structure.d.ts +10 -0
  84. package/dist/data-components/data-structure/data-structure.d.ts.map +1 -1
  85. package/dist/data-components/filter/filter-types.d.ts +1 -1
  86. package/dist/data-components/filter/filter-types.d.ts.map +1 -1
  87. package/dist/data-components/form/form-types.d.ts +44 -1
  88. package/dist/data-components/form/form-types.d.ts.map +1 -1
  89. package/dist/data-components/form/form.d.ts +1 -1
  90. package/dist/data-components/form/form.d.ts.map +1 -1
  91. package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +3 -3
  92. package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts.map +1 -1
  93. package/dist/data-components/gantt/gantt-types.d.ts +2 -1
  94. package/dist/data-components/gantt/gantt-types.d.ts.map +1 -1
  95. package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts +8 -0
  96. package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts.map +1 -0
  97. package/dist/data-components/switcher/prop-form/prop-form-types.d.ts +17 -0
  98. package/dist/data-components/switcher/prop-form/prop-form-types.d.ts.map +1 -0
  99. package/dist/data-components/switcher/prop-form/prop-form.d.ts +6 -0
  100. package/dist/data-components/switcher/prop-form/prop-form.d.ts.map +1 -0
  101. package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts +53 -0
  102. package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts.map +1 -0
  103. package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts +15 -0
  104. package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts.map +1 -0
  105. package/dist/data-components/switcher/prop-schema/prop-schema.d.ts +38 -0
  106. package/dist/data-components/switcher/prop-schema/prop-schema.d.ts.map +1 -0
  107. package/dist/data-components/switcher/switcher-types.d.ts +58 -0
  108. package/dist/data-components/switcher/switcher-types.d.ts.map +1 -0
  109. package/dist/data-components/switcher/switcher.d.ts +12 -0
  110. package/dist/data-components/switcher/switcher.d.ts.map +1 -0
  111. package/dist/data-components/table-grid/formula/formula-builder.d.ts.map +1 -1
  112. package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
  113. package/dist/data-components/table-grid/table-context/table-context-types.d.ts +3 -0
  114. package/dist/data-components/table-grid/table-context/table-context-types.d.ts.map +1 -1
  115. package/dist/data-components/table-grid/table-grid-context.d.ts +1 -1
  116. package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
  117. package/dist/data-components/table-grid/table-grid-panels.d.ts.map +1 -1
  118. package/dist/data-components/table-grid/table-grid-types.d.ts +7 -1
  119. package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
  120. package/dist/data-components/table-grid/table-grid.d.ts +1 -1
  121. package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
  122. package/dist/data-components/ui-layer/ui-layer-types.d.ts +82 -0
  123. package/dist/data-components/ui-layer/ui-layer-types.d.ts.map +1 -0
  124. package/dist/data-components/ui-layer/ui-layer-utils.d.ts +13 -0
  125. package/dist/data-components/ui-layer/ui-layer-utils.d.ts.map +1 -0
  126. package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts +33 -0
  127. package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts.map +1 -0
  128. package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts +22 -0
  129. package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts.map +1 -0
  130. package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts +129 -0
  131. package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts.map +1 -0
  132. package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts +28 -0
  133. package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts.map +1 -0
  134. package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts +14 -0
  135. package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts.map +1 -0
  136. package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts +24 -0
  137. package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts.map +1 -0
  138. package/dist/experimental-components/dashboard-builder/widget-palette.d.ts +29 -0
  139. package/dist/experimental-components/dashboard-builder/widget-palette.d.ts.map +1 -0
  140. package/dist/framework-components/dashboard/dashboard-context.d.ts +12 -0
  141. package/dist/framework-components/dashboard/dashboard-context.d.ts.map +1 -0
  142. package/dist/framework-components/dashboard/dashboard-types.d.ts +35 -0
  143. package/dist/framework-components/dashboard/dashboard-types.d.ts.map +1 -0
  144. package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts +1 -0
  145. package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts.map +1 -0
  146. package/dist/framework-components/dashboard/dashboard-widget-types.d.ts +67 -0
  147. package/dist/framework-components/dashboard/dashboard-widget-types.d.ts.map +1 -0
  148. package/dist/framework-components/dashboard/dashboard-widget.d.ts +17 -0
  149. package/dist/framework-components/dashboard/dashboard-widget.d.ts.map +1 -0
  150. package/dist/framework-components/dashboard/dashboard.d.ts +11 -0
  151. package/dist/framework-components/dashboard/dashboard.d.ts.map +1 -0
  152. package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts +11 -0
  153. package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts.map +1 -0
  154. package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts +47 -0
  155. package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts.map +1 -0
  156. package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts +119 -0
  157. package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts.map +1 -0
  158. package/dist/framework-components/dashboard/data-engine/data-engine.d.ts +87 -0
  159. package/dist/framework-components/dashboard/data-engine/data-engine.d.ts.map +1 -0
  160. package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts +2 -0
  161. package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts.map +1 -0
  162. package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts +2 -0
  163. package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts.map +1 -0
  164. package/dist/framework-components/dashboard/data-engine/field-inference.d.ts +10 -0
  165. package/dist/framework-components/dashboard/data-engine/field-inference.d.ts.map +1 -0
  166. package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts +12 -0
  167. package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts.map +1 -0
  168. package/dist/framework-components/dashboard/data-engine/index.d.ts +8 -0
  169. package/dist/framework-components/dashboard/data-engine/index.d.ts.map +1 -0
  170. package/dist/framework-components/dashboard/data-engine/join-engine.d.ts +17 -0
  171. package/dist/framework-components/dashboard/data-engine/join-engine.d.ts.map +1 -0
  172. package/dist/framework-components/section/section-types.d.ts +14 -0
  173. package/dist/framework-components/section/section-types.d.ts.map +1 -0
  174. package/dist/framework-components/section/section.d.ts +9 -0
  175. package/dist/framework-components/section/section.d.ts.map +1 -0
  176. package/dist/index.d.ts +34 -12
  177. package/dist/index.d.ts.map +1 -1
  178. package/dist/restio-ui.cjs.js +30 -30
  179. package/dist/restio-ui.es.js +28713 -28072
  180. package/dist/types/global-types.d.ts +11 -0
  181. package/dist/types/global-types.d.ts.map +1 -1
  182. package/dist/ui.css +1 -1
  183. package/package.json +1 -4
  184. package/dist/components/graph/graph-types.d.ts +0 -23
  185. package/dist/components/graph/graph-types.d.ts.map +0 -1
  186. package/dist/components/graph/graph.d.ts +0 -5
  187. package/dist/components/graph/graph.d.ts.map +0 -1
  188. package/dist/custom-components/layout-builder/layout-builder-constants.d.ts +0 -22
  189. package/dist/custom-components/layout-builder/layout-builder-constants.d.ts.map +0 -1
  190. package/dist/custom-components/layout-builder/layout-builder-schema.d.ts +0 -967
  191. package/dist/custom-components/layout-builder/layout-builder-schema.d.ts.map +0 -1
  192. package/dist/custom-components/layout-builder/layout-builder-templates.d.ts +0 -13
  193. package/dist/custom-components/layout-builder/layout-builder-templates.d.ts.map +0 -1
  194. package/dist/custom-components/layout-builder/layout-builder-types.d.ts +0 -73
  195. package/dist/custom-components/layout-builder/layout-builder-types.d.ts.map +0 -1
  196. package/dist/custom-components/layout-builder/layout-builder-utils.d.ts +0 -70
  197. package/dist/custom-components/layout-builder/layout-builder-utils.d.ts.map +0 -1
  198. package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +0 -29
  199. package/dist/custom-components/layout-builder/layout-builder-validation.d.ts.map +0 -1
  200. package/dist/custom-components/layout-builder/layout-builder.d.ts +0 -4
  201. package/dist/custom-components/layout-builder/layout-builder.d.ts.map +0 -1
  202. package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +0 -60
  203. package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts.map +0 -1
  204. package/dist/custom-components/layout-builder/layout-json-editor.d.ts +0 -13
  205. package/dist/custom-components/layout-builder/layout-json-editor.d.ts.map +0 -1
  206. package/dist/custom-components/layout-builder/stories/hooks/useHistory.d.ts +0 -49
  207. package/dist/custom-components/layout-builder/stories/hooks/useHistory.d.ts.map +0 -1
  208. package/dist/data-components/cell/cell-switch.d.ts +0 -17
  209. package/dist/data-components/cell/cell-switch.d.ts.map +0 -1
@@ -0,0 +1,29 @@
1
+ import { CellType } from '../../types/global-types';
2
+ import { DataStructureColumn } from '../data-structure/data-structure';
3
+ import { ResolvedCellUI } from '../ui-layer/ui-layer-types';
4
+ import { ReactNode } from 'react';
5
+ export interface CellEditorProps<TData, TValue> {
6
+ value: TValue;
7
+ column: DataStructureColumn<TData, TValue>;
8
+ onDraftChange: (value: TValue) => void;
9
+ onCommit: () => void;
10
+ onImmediateCommit: (value: TValue) => void;
11
+ onKeyDown: (e: React.KeyboardEvent) => void;
12
+ autoFocus: boolean;
13
+ error?: string;
14
+ disabled?: boolean;
15
+ className?: string;
16
+ }
17
+ export interface CellHandler<TData, TValue> {
18
+ /** Renders the display (read-only) view */
19
+ display: (value: TValue, column?: DataStructureColumn<TData, TValue>, ui?: ResolvedCellUI) => ReactNode;
20
+ /** Renders the editor (editable) view. Undefined = display-only type. */
21
+ edit?: (props: CellEditorProps<TData, TValue>) => ReactNode;
22
+ /** When true, always renders the editor even when non-editable (e.g. TABLE_GRID) */
23
+ alwaysInteractive?: boolean;
24
+ /** When true, the cell is display-only and never switches to edit mode (e.g. CHART, PROGRESS) */
25
+ displayOnly?: boolean;
26
+ }
27
+ export declare function registerCellType<TData, TValue>(cellType: CellType, handler: CellHandler<TData, TValue>): void;
28
+ export declare function getCellHandler<TData, TValue>(cellType?: CellType): CellHandler<TData, TValue> | undefined;
29
+ //# sourceMappingURL=cell-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell-registry.d.ts","sourceRoot":"","sources":["../../../src/data-components/cell/cell-registry.tsx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AK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,IAAI,CAE7G;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,SAAS,CAGzG"}
@@ -1,5 +1,6 @@
1
1
  import { EditMode } from '../../types/global-types';
2
2
  import { DataStructureColumn } from '../data-structure/data-structure';
3
+ import { ResolvedCellUI } from '../ui-layer/ui-layer-types';
3
4
  export interface CellProps<TData, TValue> {
4
5
  /** The actual value to display/edit */
5
6
  value: TValue;
@@ -17,10 +18,14 @@ export interface CellProps<TData, TValue> {
17
18
  error?: string;
18
19
  /** Whether the cell is disabled */
19
20
  disabled?: boolean;
21
+ /** Whether the cell is in a loading state — renders a skeleton placeholder */
22
+ loading?: boolean;
20
23
  /** Whether to show the label above the cell (default: true) */
21
24
  showLabel?: boolean;
22
25
  /** Whether to show the helper/error text below the cell (default: true) */
23
26
  showHelperText?: boolean;
27
+ /** Pre-resolved UI styling — Cell never resolves UI, only consumes it */
28
+ ui?: ResolvedCellUI;
24
29
  /** Callback when value changes */
25
30
  onValueChange?: (newValue: TValue, rowData: TData, column: DataStructureColumn<TData, TValue>) => void;
26
31
  /** Callback when editing starts */
@@ -1 +1 @@
1
- {"version":3,"file":"cell-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/cell/cell-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAEtE,MAAM,WAAW,SAAS,CAAC,KAAK,EAAE,MAAM;IACtC,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IAEd,0CAA0C;IAC1C,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC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CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAE3C,wBAAwB;IACxB,OAAO,EAAE,KAAK,CAAC;IAEf,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IAEjB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,yEAAyE;IACzE,EAAE,CAAC,EAAE,cAAc,CAAC;IAEpB,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAEvG,mCAAmC;IACnC,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAEnF,iCAAiC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;CAClF"}
@@ -12,12 +12,6 @@ export declare function canEditCell(isEditable: boolean | undefined, columnEdita
12
12
  * @returns Whether the cell should always be in edit mode
13
13
  */
14
14
  export declare function shouldAlwaysEdit(editMode: "click" | "doubleClick" | "always" | "never", canEdit: boolean): boolean;
15
- /**
16
- * Renders the display view of a cell value
17
- * @param value - Value to display
18
- * @returns Rendered display element
19
- */
20
- export declare function renderDisplay<TValue>(value: TValue): import("react/jsx-runtime").JSX.Element;
21
15
  /**
22
16
  * Creates a keyboard event handler for cell editing
23
17
  * @param onCommit - Callback to commit changes
@@ -1 +1 @@
1
- {"version":3,"file":"cell-utils.d.ts","sourceRoot":"","sources":["../../../src/data-components/cell/cell-utils.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,EAAE,cAAc,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAEzG;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAElH;AAKD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,2CAkBlD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,QAAQ,EAAE,MAAM,IAAI,IACrE,GAAG,KAAK,CAAC,aAAa,UAS/B"}
1
+ {"version":3,"file":"cell-utils.d.ts","sourceRoot":"","sources":["../../../src/data-components/cell/cell-utils.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,EAAE,cAAc,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAEzG;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAElH;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,QAAQ,EAAE,MAAM,IAAI,IACrE,GAAG,KAAK,CAAC,aAAa,UAS/B"}
@@ -1,3 +1,3 @@
1
1
  import { CellProps } from './cell-types';
2
- export declare const Cell: <TData, TValue>({ value, column, rowData, editMode, isEditable, error, disabled, showLabel, showHelperText, onValueChange, onEditStart, onEditEnd, }: CellProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Cell: <TData, TValue>({ value, column, rowData, editMode, isEditable, error, disabled, loading, showLabel, showHelperText, ui, onValueChange, onEditStart, onEditEnd, }: CellProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=cell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/data-components/cell/cell.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,eAAO,MAAM,IAAI,GAAI,KAAK,EAAE,MAAM,EAAE,sIAajC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,4CAwF1B,CAAC"}
1
+ {"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/data-components/cell/cell.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,eAAO,MAAM,IAAI,GAAI,KAAK,EAAE,MAAM,EAAE,mJAejC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,4CA0L1B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Data entry passed to the tooltip for rendering.
3
+ */
4
+ export interface ChartTooltipEntry {
5
+ name: string;
6
+ value: number;
7
+ color: string;
8
+ }
9
+ export interface ChartTooltipProps {
10
+ active?: boolean;
11
+ payload?: ChartTooltipEntry[];
12
+ label?: string;
13
+ }
14
+ //# sourceMappingURL=chart-tooltip-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-tooltip-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/chart/chart-tooltip/chart-tooltip-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,7 @@
1
+ import { ChartTooltipProps } from './chart-tooltip-types';
2
+ /**
3
+ * Custom Recharts tooltip content that uses Restio design tokens.
4
+ * Renders a label and a list of series values with their respective colors.
5
+ */
6
+ export declare const ChartTooltip: ({ active, payload, label }: ChartTooltipProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ //# sourceMappingURL=chart-tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-tooltip.d.ts","sourceRoot":"","sources":["../../../../src/data-components/chart/chart-tooltip/chart-tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,4BAA4B,iBAAiB,mDAazE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { DataStructureComponent } from '../data-structure/data-structure';
2
- export type ChartType = "line" | "bar" | "pie" | "area" | "scatter" | "sankey";
2
+ import { ChartType } from '../../types/global-types';
3
+ export type { ChartType };
3
4
  /**
4
5
  * Configuration for Sankey charts.
5
6
  * stageColumns: ordered list of columns that define the flow stages (min 2).
@@ -17,7 +18,30 @@ export interface SankeyConfig<TData> {
17
18
  stageColumns: (keyof TData)[];
18
19
  valueColumn: keyof TData;
19
20
  }
20
- export interface ChartProps<TData> extends DataStructureComponent<TData> {
21
+ /**
22
+ * Configuration for Geo charts.
23
+ * geoJson: GeoJSON FeatureCollection with MultiPolygon geometry.
24
+ * regionColumn: column in TData that maps to the "name" property in geoJson features.
25
+ * valueColumn: numeric column used for the choropleth color scale.
26
+ * colorRange: [minColor, maxColor] — two CSS color strings for the gradient.
27
+ */
28
+ export interface GeoConfig<TData> {
29
+ geoJson: {
30
+ type: "FeatureCollection";
31
+ features: Array<{
32
+ type: "Feature";
33
+ properties: Record<string, unknown>;
34
+ geometry: {
35
+ type: "MultiPolygon" | "Polygon";
36
+ coordinates: number[][][][] | number[][][];
37
+ };
38
+ }>;
39
+ };
40
+ regionColumn: keyof TData;
41
+ valueColumn: keyof TData;
42
+ colorRange?: [string, string];
43
+ }
44
+ export interface ChartSpecificProps<TData> {
21
45
  /** Type of chart to render */
22
46
  type: ChartType;
23
47
  /** Column to use for X-axis (category/labels). Not required for type="sankey". */
@@ -46,7 +70,10 @@ export interface ChartProps<TData> extends DataStructureComponent<TData> {
46
70
  layout?: "horizontal" | "vertical";
47
71
  /** Configuration required when type="sankey" */
48
72
  sankeyConfig?: SankeyConfig<TData>;
73
+ /** Configuration required when type="geo" */
74
+ geoConfig?: GeoConfig<TData>;
49
75
  }
76
+ export type ChartProps<TData> = DataStructureComponent<TData> & ChartSpecificProps<TData>;
50
77
  export interface ChartDataPoint<TData> {
51
78
  id: string | number;
52
79
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"chart-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/chart/chart-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/E;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,YAAY,CAAC,KAAK;IACjC,YAAY,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;IAC9B,WAAW,EAAE,MAAM,KAAK,CAAC;CAC1B;AAED,MAAM,WAAW,UAAU,CAAC,KAAK,CAAE,SAAQ,sBAAsB,CAAC,KAAK,CAAC;IACtE,8BAA8B;IAC9B,IAAI,EAAE,SAAS,CAAC;IAEhB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a CSS custom property to its computed pixel value.
3
+ * Strips the "px" suffix and returns a number.
4
+ * Falls back to `fallbackPx` if the property is not defined or cannot be parsed.
5
+ */
6
+ export declare function resolveCSSVarToPx(varName: string, fallbackPx: number): number;
7
+ /**
8
+ * Resolves a CSS custom property to its raw string value (e.g. a color hex).
9
+ * Falls back to `fallback` if the property is not defined.
10
+ */
11
+ export declare function resolveCSSVar(varName: string, fallback: string): string;
12
+ /**
13
+ * Hook that returns the numeric pixel value of a CSS custom property.
14
+ * Re-evaluates whenever the document theme changes (e.g. MutationObserver on <html>).
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const borderRadius = useCSSVarPx("--rst-borderRadius-small", 4);
19
+ * // borderRadius is a number like 4, updated at runtime if the token changes
20
+ * ```
21
+ */
22
+ export declare function useCSSVarPx(varName: string, fallbackPx: number): number;
23
+ /**
24
+ * Hook that resolves an array of CSS custom property color values to actual strings.
25
+ * Re-evaluates on theme changes.
26
+ */
27
+ export declare function useResolvedColors(cssVars: string[]): string[];
28
+ //# sourceMappingURL=chart-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-utils.d.ts","sourceRoot":"","sources":["../../../src/data-components/chart/chart-utils.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAK7E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAoBvE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAkB7D"}
@@ -1,4 +1,4 @@
1
1
  import { ChartProps } from './chart-types';
2
- export declare const Chart: <TData extends object>({ data, columns, type, xAxisColumn, yAxisColumns, title, subtitle, width, height, colors, showGrid, showTooltip, showLegend, showXAxis, showYAxis, layout, sankeyConfig, }: ChartProps<TData>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Chart: <TData extends object>({ data, columns, type, xAxisColumn, yAxisColumns, title, subtitle, width, height, colors, showGrid, showTooltip, showLegend, showXAxis, showYAxis, layout, sankeyConfig, geoConfig, uiConfig, }: ChartProps<TData>) => import("react/jsx-runtime").JSX.Element;
3
3
  export { Chart as default };
4
4
  //# sourceMappingURL=chart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/data-components/chart/chart.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,eAAO,MAAM,KAAK,GAAI,KAAK,SAAS,MAAM,EAAE,4KAkBzC,UAAU,CAAC,KAAK,CAAC,4CAuPnB,CAAC;AAEF,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/data-components/chart/chart.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,eAAO,MAAM,KAAK,GAAI,KAAK,SAAS,MAAM,EAAE,iMA0BzC,UAAU,CAAC,KAAK,CAAC,4CA4XnB,CAAC;AAEF,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { GeoConfig } from '../chart-types';
2
+ interface GeoChartProps<TData> {
3
+ readonly data: TData[];
4
+ readonly config: GeoConfig<TData>;
5
+ readonly width: number;
6
+ readonly height: number;
7
+ }
8
+ export declare function GeoChart<TData extends object>({ data, config, width, height }: GeoChartProps<TData>): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=geoChart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geoChart.d.ts","sourceRoot":"","sources":["../../../../src/data-components/chart/geo/geoChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAiG3C,UAAU,aAAa,CAAC,KAAK;IAC3B,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,QAAQ,CAAC,KAAK,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,2CAqNnG"}
@@ -4,6 +4,8 @@ import { SankeyLinkProps, SankeyNodeProps } from 'recharts';
4
4
  * depth=0 → label on LEFT (first stage)
5
5
  * depth=maxDepth → label on RIGHT (last stage)
6
6
  * 0 < depth < maxDepth → label ABOVE node, centered (intermediate stages)
7
+ *
8
+ * Uses CSS classes for text styling so design tokens apply automatically.
7
9
  */
8
10
  export declare function makeSankeyNode(nodeColors: string[], maxDepth: number): (props: SankeyNodeProps) => import("react/jsx-runtime").JSX.Element;
9
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sankeyChart.d.ts","sourceRoot":"","sources":["../../../../src/data-components/chart/sankey/sankeyChart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAoB,eAAe,EAAE,MAAM,UAAU,CAAC;AAG9E;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,IACxC,OAAO,eAAe,6CAuDlD;AAGD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IACtB,OAAO,eAAe,6CAsBlD;AAGD;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,YAAY,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE;;cAClG,MAAM;;;gBA0Be,MAAM;gBAAU,MAAM;eAAS,MAAM;;;EA8BhF"}
1
+ {"version":3,"file":"sankeyChart.d.ts","sourceRoot":"","sources":["../../../../src/data-components/chart/sankey/sankeyChart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAoB,eAAe,EAAE,MAAM,UAAU,CAAC;AAG9E;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,IACxC,OAAO,eAAe,6CAuDlD;AAGD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IACtB,OAAO,eAAe,6CAsBlD;AAGD;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,YAAY,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE;;cAClG,MAAM;;;gBA0Be,MAAM;gBAAU,MAAM;eAAS,MAAM;;;EA8BhF"}
@@ -0,0 +1,36 @@
1
+ import { PropFieldDescriptor, PropFieldScope } from '../switcher/prop-schema/prop-schema-types';
2
+ import { DataComponentId } from '../switcher/switcher-types';
3
+ import { DataStructureColumn } from '../data-structure/data-structure';
4
+ /**
5
+ * Props for the shared DataComponentConfigurator.
6
+ *
7
+ * This component is used in two contexts:
8
+ * 1. **Switcher** — shows the component selector + prop form (scope: "switcher")
9
+ * 2. **Dashboard widget configurator** — shows only the prop form (scope: "dashboard")
10
+ */
11
+ export interface DataComponentConfiguratorProps {
12
+ /** Schema for the active component's configurable fields. */
13
+ schema: PropFieldDescriptor[];
14
+ /** Current values for all fields. */
15
+ values: Record<string, unknown>;
16
+ /** Called when a field value changes. */
17
+ onChange: (name: string, value: unknown) => void;
18
+ /** Available columns (for "column" / "columns" type fields). */
19
+ columns?: DataStructureColumn<Record<string, unknown>>[];
20
+ /**
21
+ * Scope filter — only fields matching this scope are rendered.
22
+ * @default "all"
23
+ */
24
+ scope?: PropFieldScope;
25
+ /** When provided, shows the component selector panel. */
26
+ componentId?: DataComponentId;
27
+ /** Called when the active component changes. */
28
+ onComponentChange?: (componentId: DataComponentId) => void;
29
+ /** Metadata list for the component selector. */
30
+ componentMetaList?: {
31
+ id: DataComponentId;
32
+ label: string;
33
+ icon: string;
34
+ }[];
35
+ }
36
+ //# sourceMappingURL=data-component-configurator-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-component-configurator-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/data-component-configurator/data-component-configurator-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AACrG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E;;;;;;GAMG;AACH,MAAM,WAAW,8BAA8B;IAC7C,6DAA6D;IAC7D,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,yCAAyC;IACzC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,gEAAgE;IAChE,OAAO,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;IACzD;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IAGvB,yDAAyD;IACzD,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3D,gDAAgD;IAChD,iBAAiB,CAAC,EAAE;QAAE,EAAE,EAAE,eAAe,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC5E"}
@@ -0,0 +1,17 @@
1
+ import { DataComponentConfiguratorProps } from './data-component-configurator-types';
2
+ /**
3
+ * Shared configurator for data-components.
4
+ *
5
+ * Renders:
6
+ * - An optional **component selector** (when `componentMetaList` is provided)
7
+ * - A **dynamic prop form** filtered by the given scope
8
+ *
9
+ * Used by:
10
+ * - **Switcher** — full configurator with component selector + all props
11
+ * - **Dashboard widget configurator** — prop form only (scope: "dashboard")
12
+ */
13
+ export declare const DataComponentConfigurator: {
14
+ ({ schema, values, onChange, columns, scope, componentId, onComponentChange, componentMetaList, }: DataComponentConfiguratorProps): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ //# sourceMappingURL=data-component-configurator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-component-configurator.d.ts","sourceRoot":"","sources":["../../../src/data-components/data-component-configurator/data-component-configurator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAS1F;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB;uGASnC,8BAA8B;;CA2GhC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { DataStructureColumn } from './data-structure/data-structure';
2
+ /** Resolve the stable ID for a schema column (same logic as getColId in table-utils) */
3
+ export declare function resolveColumnId<TData>(col: DataStructureColumn<TData>, index: number): string;
4
+ //# sourceMappingURL=data-component-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-component-utils.d.ts","sourceRoot":"","sources":["../../src/data-components/data-component-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,wFAAwF;AACxF,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7F"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-structure-utils.d.ts","sourceRoot":"","sources":["../../../src/data-components/data-structure/data-structure-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAC7C,MAAM,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,EACvB,OAAO,CAAC,EAAE;IACR,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C,GACA,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAU9B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAChC,MAAM,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,EACvB,WAAW,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,EAC1C,OAAO,CAAC,EAAE;IACR,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C,GACA,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAgB9B"}
1
+ {"version":3,"file":"data-structure-utils.d.ts","sourceRoot":"","sources":["../../../src/data-components/data-structure/data-structure-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAC7C,MAAM,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,EACvB,OAAO,CAAC,EAAE;IACR,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C,GACA,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAU9B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAChC,MAAM,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,EACvB,WAAW,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,EAC1C,OAAO,CAAC,EAAE;IACR,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C,GACA,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAgB9B"}
@@ -1,4 +1,5 @@
1
1
  import { Option, CellType } from '../../types/global-types';
2
+ import { DataStructureUIConfig } from '../ui-layer/ui-layer-types';
2
3
  export interface DataStructureComponent<TData> {
3
4
  /** Array of data to display in the chart */
4
5
  data: TData[];
@@ -6,6 +7,8 @@ export interface DataStructureComponent<TData> {
6
7
  columns?: DataStructureColumn<TData>[];
7
8
  /** Function to get subrows for a given row */
8
9
  getSubRows?: (originalRow: TData, index: number) => TData[] | undefined;
10
+ /** UI configuration for conditional styling and presentation */
11
+ uiConfig?: DataStructureUIConfig<TData>;
9
12
  }
10
13
  export interface DataStructureColumn<TData, TValue = TData[keyof TData]> {
11
14
  /** Unique identifier for the column */
@@ -28,5 +31,12 @@ export interface DataStructureColumn<TData, TValue = TData[keyof TData]> {
28
31
  accessorFn?: (row: TData) => TValue;
29
32
  /** Visual representation type for cells with options or specific data types */
30
33
  cellType?: CellType;
34
+ /**
35
+ * Generic column-level configuration for the target component.
36
+ * Mirrors the uiConfig pattern: carries the props of the component
37
+ * referenced by `cellType` (e.g. ChartProps for CHART, TableGridProps for TABLE_GRID).
38
+ * `data` and `columns` are excluded — they come from the cell value and schema.
39
+ */
40
+ columnConfig?: Record<string, unknown>;
31
41
  }
32
42
  //# sourceMappingURL=data-structure.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-structure.d.ts","sourceRoot":"","sources":["../../../src/data-components/data-structure/data-structure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAG5D,MAAM,WAAW,sBAAsB,CAAC,KAAK;IAC3C,4CAA4C;IAC5C,IAAI,EAAE,KAAK,EAAE,CAAC;IAEd,iDAAiD;IACjD,OAAO,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;IAEvC,8CAA8C;IAC9C,UAAU,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,EAAE,GAAG,SAAS,CAAC;CACzE;AAED,MAAM,WAAW,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,KAAK,CAAC;IACrE,uCAAuC;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,KAAK,CAAC;IAE1B,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,qCAAqC;IACrC,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,MAAM,CAAC;IAEpC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
1
+ {"version":3,"file":"data-structure.d.ts","sourceRoot":"","sources":["../../../src/data-components/data-structure/data-structure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,sBAAsB,CAAC,KAAK;IAC3C,4CAA4C;IAC5C,IAAI,EAAE,KAAK,EAAE,CAAC;IAEd,iDAAiD;IACjD,OAAO,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;IAEvC,8CAA8C;IAC9C,UAAU,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,EAAE,GAAG,SAAS,CAAC;IAExE,gEAAgE;IAChE,QAAQ,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,KAAK,CAAC;IACrE,uCAAuC;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,KAAK,CAAC;IAE1B,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,qCAAqC;IACrC,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,MAAM,CAAC;IAEpC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC"}
@@ -13,7 +13,7 @@ export interface FilterField {
13
13
  label: string;
14
14
  /** Column data type used to pick operators and value input */
15
15
  type: FilterColumnType;
16
- /** Available values for `in` / `not_in` operators (from CellType.SELECT columns) */
16
+ /** Available values for `in` / `not_in` operators (from CellType.SELECT / MULTI_SELECT columns) */
17
17
  availableOptions?: Option[];
18
18
  }
19
19
  export interface FilterCondition {
@@ -1 +1 @@
1
- {"version":3,"file":"filter-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/filter/filter-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAMlD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAMxE,MAAM,MAAM,cAAc,GACtB,QAAQ,GACR,YAAY,GACZ,UAAU,GACV,aAAa,GACb,WAAW,GACX,IAAI,GACJ,QAAQ,GACR,SAAS,GACT,aAAa,CAAC;AAElB,MAAM,MAAM,cAAc,GACtB,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,gBAAgB,GAChB,MAAM,GACN,aAAa,GACb,IAAI,GACJ,QAAQ,GACR,SAAS,GACT,aAAa,CAAC;AAElB,MAAM,MAAM,YAAY,GACpB,QAAQ,GACR,YAAY,GACZ,OAAO,GACP,aAAa,GACb,QAAQ,GACR,cAAc,GACd,SAAS,GACT,aAAa,CAAC;AAElB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;AAEjF,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,cAAc,GAAG,YAAY,GAAG,eAAe,CAAC;AAM9F,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAAC;AAMxF,MAAM,WAAW,WAAW;IAC1B,wDAAwD;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,IAAI,EAAE,gBAAgB,CAAC;IACvB,oFAA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c,EAW5C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAAc,EAS1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAK7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,gBAAgB,EAAE,cAAc,EAAE,CAKxE,CAAC"}
@@ -1,6 +1,32 @@
1
1
  import { DataStructureComponent, DataStructureColumn } from '../data-structure/data-structure';
2
2
  import { ResponsiveLayout } from '../../custom-components/layout/layout-types';
3
- export interface FormProps<TData> extends DataStructureComponent<TData> {
3
+ /**
4
+ * Delta operation for a single column when the form state changes.
5
+ * The server returns only the columns that need to be added, updated, or removed.
6
+ */
7
+ export interface FormColumnDelta<TData> {
8
+ /** What to do with this column */
9
+ action: "add" | "update" | "remove";
10
+ /** The column definition */
11
+ column: FormColumn<TData>;
12
+ }
13
+ /**
14
+ * Server response to a field change.
15
+ * Only the changed pieces are returned — the form merges them with existing state.
16
+ *
17
+ * - `data`: partial data to merge (e.g. reset dependent fields to null)
18
+ * - `columns`: delta operations on columns (add new dependent fields, update options, remove fields)
19
+ * - `layout`: optional new layout. If omitted, the form recalculates from current columns.
20
+ */
21
+ export interface FormChangeResponse<TData> {
22
+ /** Partial data delta — merged with current formData */
23
+ data?: Partial<TData>;
24
+ /** Column delta operations — applied to current columns */
25
+ columns?: FormColumnDelta<TData>[];
26
+ /** Optional new layout. If omitted, layout is recalculated from updated columns. */
27
+ layout?: ResponsiveLayout;
28
+ }
29
+ export interface FormSpecificProps<TData> {
4
30
  /** Override columns with form-specific options */
5
31
  columns?: FormColumn<TData>[];
6
32
  /** label alignment */
@@ -11,7 +37,24 @@ export interface FormProps<TData> extends DataStructureComponent<TData> {
11
37
  onSubmit?: (data: TData) => void;
12
38
  /** Callback when cancel is clicked */
13
39
  onCancel?: () => void;
40
+ /**
41
+ * Server-driven callback invoked on every field change.
42
+ *
43
+ * The server receives the current form state and the changed field,
44
+ * and returns a **partial delta** — only the pieces that changed.
45
+ * The form merges the delta into its state and re-renders only
46
+ * the affected fields.
47
+ *
48
+ * Fields not yet resolved (loading) show a skeleton placeholder.
49
+ *
50
+ * @param formData - Current complete form data
51
+ * @param changedField - The accessorKey of the field that changed
52
+ * @param newValue - The new value of the changed field
53
+ * @returns A partial delta with data, column operations, and optional layout
54
+ */
55
+ onFormChange?: (formData: TData, changedField: keyof TData, newValue: TData[keyof TData]) => Promise<FormChangeResponse<TData>>;
14
56
  }
57
+ export type FormProps<TData> = DataStructureComponent<TData> & FormSpecificProps<TData>;
15
58
  export interface FormColumn<TData> extends DataStructureColumn<TData> {
16
59
  /** Optional: custom message when required validation fails */
17
60
  requiredMessage?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"form-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/form/form-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAE/E,MAAM,WAAW,SAAS,CAAC,KAAK,CAAE,SAAQ,sBAAsB,CAAC,KAAK,CAAC;IACrE,kDAAkD;IAClD,OAAO,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;IAC9B,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B,oCAAoC;IACpC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,UAAU,CAAC,KAAK,CAAE,SAAQ,mBAAmB,CAAC,KAAK,CAAC;IACnE,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,K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;;;;;;;;;;;;;OAcG;IACH,YAAY,CAAC,EAAE,CACb,QAAQ,EAAE,KAAK,EACf,YAAY,EAAE,MAAM,KAAK,EACzB,QAAQ,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,KACzB,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;CACzC;AAED,MAAM,MAAM,SAAS,CAAC,KAAK,IAAI,sBAAsB,CAAC,KAAK,CAAC,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAExF,MAAM,WAAW,UAAU,CAAC,KAAK,CAAE,SAAQ,mBAAmB,CAAC,KAAK,CAAC;IACnE,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM,GAAG,SAAS,CAAC;CAC9E;AAED,MAAM,MAAM,UAAU,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { FormProps } from './form-types';
2
- export declare function Form<TData>({ data, columns, layout, onSubmit, onCancel }: FormProps<TData>): import("react/jsx-runtime").JSX.Element;
2
+ export declare function Form<TData>({ data, columns, layout, onSubmit, onCancel, onFormChange, uiConfig }: FormProps<TData>): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/data-components/form/form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA0B,MAAM,cAAc,CAAC;AAQjE,wBAAgB,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,KAAK,CAAC,2CA+J1F"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/data-components/form/form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA+D,MAAM,cAAc,CAAC;AAqDtG,wBAAgB,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,KAAK,CAAC,2CA2MlH"}
@@ -1,8 +1,8 @@
1
1
  import { AIProvider, AIQuickAction } from '../../../providers/ai-assistant/ai-assistant-types';
2
2
  export interface GanttAIPanelProps {
3
- aiProvider: AIProvider;
4
- requiresConfirmation?: boolean;
5
- quickActions?: AIQuickAction[];
3
+ readonly aiProvider: AIProvider;
4
+ readonly requiresConfirmation?: boolean;
5
+ readonly quickActions?: AIQuickAction[];
6
6
  }
7
7
  /**
8
8
  * AI chat panel for the Gantt component. Exposes tools to change the timeline
@@ -1 +1 @@
1
- {"version":3,"file":"gantt-ai-panel.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/ai-assistant/gantt-ai-panel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAkB,MAAM,oDAAoD,CAAC;AAQ/G,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,YAAY,EAAE,EAAE,iBAAiB,2CA4BxG"}
1
+ {"version":3,"file":"gantt-ai-panel.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/ai-assistant/gantt-ai-panel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAkB,MAAM,oDAAoD,CAAC;AAQ/G,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAEhC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IACxC,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;CACzC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,YAAY,EAAE,EAAE,iBAAiB,2CA4BxG"}
@@ -21,7 +21,7 @@ export interface GanttDependency {
21
21
  id: string;
22
22
  type?: GanttRelationType;
23
23
  }
24
- export interface GanttProps<TData> extends DataStructureComponent<TData> {
24
+ export interface GanttSpecificProps<TData> {
25
25
  /** Column id or accessorKey for the start date (must resolve to Date, ISO string, or timestamp) */
26
26
  startColumnId: string | keyof TData;
27
27
  /** Column id or accessorKey for the end date (must resolve to Date, ISO string, or timestamp) */
@@ -62,6 +62,7 @@ export interface GanttProps<TData> extends DataStructureComponent<TData> {
62
62
  */
63
63
  onEventChange?: (row: TData, newStart: Date, newEnd: Date) => void;
64
64
  }
65
+ export type GanttProps<TData> = DataStructureComponent<TData> & GanttSpecificProps<TData>;
65
66
  export interface GanttLayoutProps<TData> {
66
67
  startColumnId: string | keyof TData;
67
68
  endColumnId: string | keyof TData;
@@ -1 +1 @@
1
- {"version":3,"file":"gantt-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/gantt/gantt-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAE5F,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1D;;;;;;;GAOG;A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,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,KAAK,IAAI,CAAC;CACpE;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,cAAc,GAAG,YAAY,CAAC;AAEnE,MAAM,WAAW,cAAc,CAAC,KAAK;IACnC,GAAG,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB;AAID,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,WAAW,MAAM,CAAC;AAC/B,eAAO,MAAM,iBAAiB,QAA2B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { PropFieldDescriptor } from '../prop-schema/prop-schema-types';
2
+ import { DataStructureColumn } from '../../data-structure/data-structure';
3
+ /**
4
+ * Converts a PropFieldDescriptor[] into a DataStructureColumn[] for the Cell
5
+ * component. All prop-schema types are supported — no special cases remain.
6
+ */
7
+ export declare function propSchemaToFormColumns(schema: PropFieldDescriptor[], availableColumns?: DataStructureColumn<Record<string, unknown>>[]): DataStructureColumn<Record<string, unknown>>[];
8
+ //# sourceMappingURL=prop-form-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-form-adapter.d.ts","sourceRoot":"","sources":["../../../../src/data-components/switcher/prop-form/prop-form-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAuD1E;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,mBAAmB,EAAE,EAC7B,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,GAChE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAEhD"}
@@ -0,0 +1,17 @@
1
+ import { PropFieldDescriptor } from '../prop-schema/prop-schema-types';
2
+ import { DataStructureColumn } from '../../data-structure/data-structure';
3
+ /**
4
+ * Props for the PropForm component.
5
+ * Renders a dynamic form based on a schema of PropFieldDescriptors.
6
+ */
7
+ export interface PropFormProps {
8
+ /** Schema describing which fields to render and how. */
9
+ schema: PropFieldDescriptor[];
10
+ /** Current values for all fields. */
11
+ values: Record<string, unknown>;
12
+ /** Called when a field value changes. */
13
+ onChange: (name: string, value: unknown) => void;
14
+ /** Available columns (for "column" / "columns" type fields). */
15
+ columns?: DataStructureColumn<Record<string, unknown>>[];
16
+ }
17
+ //# sourceMappingURL=prop-form-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-form-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/switcher/prop-form/prop-form-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,wDAAwD;IACxD,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,yCAAyC;IACzC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,gEAAgE;IAChE,OAAO,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC1D"}
@@ -0,0 +1,6 @@
1
+ import { PropFormProps } from './prop-form-types';
2
+ /**
3
+ * Dynamic form that renders controls based on a PropFieldDescriptor schema.
4
+ */
5
+ export declare const PropForm: ({ schema, values, onChange, columns }: PropFormProps) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=prop-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-form.d.ts","sourceRoot":"","sources":["../../../../src/data-components/switcher/prop-form/prop-form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKlD;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,uCAAuC,aAAa,4CAkD5E,CAAC"}