@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.
Files changed (263) hide show
  1. package/dist/assets/svg/discussion.svg +1 -0
  2. package/dist/assets/svg/form.svg +1 -0
  3. package/dist/assets/svg/list.svg +1 -0
  4. package/dist/assets/svg/pencil.svg +1 -1
  5. package/dist/assets/svg/pie-chart.svg +1 -0
  6. package/dist/assets/svg/table.svg +1 -0
  7. package/dist/components/checkbox-group/checkbox-group-types.d.ts +28 -0
  8. package/dist/components/checkbox-group/checkbox-group-types.d.ts.map +1 -0
  9. package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
  10. package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -0
  11. package/dist/components/menu/menu.d.ts.map +1 -1
  12. package/dist/components/progress-bar/progress-bar-types.d.ts +20 -0
  13. package/dist/components/progress-bar/progress-bar-types.d.ts.map +1 -0
  14. package/dist/components/progress-bar/progress-bar.d.ts +7 -0
  15. package/dist/components/progress-bar/progress-bar.d.ts.map +1 -0
  16. package/dist/components/radio/radio-types.d.ts +14 -0
  17. package/dist/components/radio/radio-types.d.ts.map +1 -0
  18. package/dist/components/radio/radio.d.ts +8 -0
  19. package/dist/components/radio/radio.d.ts.map +1 -0
  20. package/dist/components/radio-group/radio-group-types.d.ts +30 -0
  21. package/dist/components/radio-group/radio-group-types.d.ts.map +1 -0
  22. package/dist/components/radio-group/radio-group.d.ts +8 -0
  23. package/dist/components/radio-group/radio-group.d.ts.map +1 -0
  24. package/dist/components/typography/typography-types.d.ts +26 -2
  25. package/dist/components/typography/typography-types.d.ts.map +1 -1
  26. package/dist/components/typography/typography.d.ts +1 -1
  27. package/dist/components/typography/typography.d.ts.map +1 -1
  28. package/dist/custom-components/chat/chat.d.ts.map +1 -1
  29. package/dist/custom-components/layout/layout-renderers.d.ts +9 -0
  30. package/dist/custom-components/layout/layout-renderers.d.ts.map +1 -0
  31. package/dist/custom-components/layout/layout-types.d.ts +24 -10
  32. package/dist/custom-components/layout/layout-types.d.ts.map +1 -1
  33. package/dist/custom-components/layout/layout.d.ts +9 -0
  34. package/dist/custom-components/layout/layout.d.ts.map +1 -1
  35. package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +5 -0
  36. package/dist/custom-components/markdown/components/img/zoomable-image.d.ts.map +1 -0
  37. package/dist/custom-components/markdown/markdown-types.d.ts +3 -2
  38. package/dist/custom-components/markdown/markdown-types.d.ts.map +1 -1
  39. package/dist/custom-components/markdown/markdown.d.ts.map +1 -1
  40. package/dist/data-components/assets/cell-types-asset.d.ts +39 -0
  41. package/dist/data-components/assets/cell-types-asset.d.ts.map +1 -0
  42. package/dist/data-components/assets/data-components-asset.d.ts +11 -0
  43. package/dist/data-components/assets/data-components-asset.d.ts.map +1 -1
  44. package/dist/data-components/calendar/calendar-types.d.ts +2 -1
  45. package/dist/data-components/calendar/calendar-types.d.ts.map +1 -1
  46. package/dist/data-components/calendar/calendar.d.ts +1 -1
  47. package/dist/data-components/calendar/calendar.d.ts.map +1 -1
  48. package/dist/data-components/card/card-types.d.ts +21 -0
  49. package/dist/data-components/card/card-types.d.ts.map +1 -0
  50. package/dist/data-components/card/card.d.ts +10 -0
  51. package/dist/data-components/card/card.d.ts.map +1 -0
  52. package/dist/data-components/card-list/card-list-types.d.ts +22 -0
  53. package/dist/data-components/card-list/card-list-types.d.ts.map +1 -0
  54. package/dist/data-components/card-list/card-list.d.ts +13 -0
  55. package/dist/data-components/card-list/card-list.d.ts.map +1 -0
  56. package/dist/data-components/card-list/models/ecommerce.d.ts +13 -0
  57. package/dist/data-components/card-list/models/ecommerce.d.ts.map +1 -0
  58. package/dist/data-components/cell/cell-registry.d.ts +29 -0
  59. package/dist/data-components/cell/cell-registry.d.ts.map +1 -0
  60. package/dist/data-components/cell/cell-types.d.ts +5 -0
  61. package/dist/data-components/cell/cell-types.d.ts.map +1 -1
  62. package/dist/data-components/cell/cell-utils.d.ts +0 -6
  63. package/dist/data-components/cell/cell-utils.d.ts.map +1 -1
  64. package/dist/data-components/cell/cell.d.ts +1 -1
  65. package/dist/data-components/cell/cell.d.ts.map +1 -1
  66. package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts +14 -0
  67. package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts.map +1 -0
  68. package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts +7 -0
  69. package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts.map +1 -0
  70. package/dist/data-components/chart/chart-types.d.ts +29 -2
  71. package/dist/data-components/chart/chart-types.d.ts.map +1 -1
  72. package/dist/data-components/chart/chart-utils.d.ts +28 -0
  73. package/dist/data-components/chart/chart-utils.d.ts.map +1 -0
  74. package/dist/data-components/chart/chart.d.ts +1 -1
  75. package/dist/data-components/chart/chart.d.ts.map +1 -1
  76. package/dist/data-components/chart/geo/geoChart.d.ts +10 -0
  77. package/dist/data-components/chart/geo/geoChart.d.ts.map +1 -0
  78. package/dist/data-components/chart/sankey/sankeyChart.d.ts +2 -0
  79. package/dist/data-components/chart/sankey/sankeyChart.d.ts.map +1 -1
  80. package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts +36 -0
  81. package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts.map +1 -0
  82. package/dist/data-components/data-component-configurator/data-component-configurator.d.ts +17 -0
  83. package/dist/data-components/data-component-configurator/data-component-configurator.d.ts.map +1 -0
  84. package/dist/data-components/data-component-utils.d.ts +4 -0
  85. package/dist/data-components/data-component-utils.d.ts.map +1 -0
  86. package/dist/data-components/data-structure/data-structure-utils.d.ts.map +1 -1
  87. package/dist/data-components/data-structure/data-structure.d.ts +10 -0
  88. package/dist/data-components/data-structure/data-structure.d.ts.map +1 -1
  89. package/dist/data-components/filter/filter-types.d.ts +1 -1
  90. package/dist/data-components/filter/filter-types.d.ts.map +1 -1
  91. package/dist/data-components/form/form-types.d.ts +44 -1
  92. package/dist/data-components/form/form-types.d.ts.map +1 -1
  93. package/dist/data-components/form/form.d.ts +1 -1
  94. package/dist/data-components/form/form.d.ts.map +1 -1
  95. package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +9 -0
  96. package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts.map +1 -0
  97. package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +12 -0
  98. package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts.map +1 -0
  99. package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +7 -0
  100. package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts.map +1 -0
  101. package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +3 -0
  102. package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts.map +1 -0
  103. package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +21 -0
  104. package/dist/data-components/gantt/arrows/gantt-arrows.d.ts.map +1 -0
  105. package/dist/data-components/gantt/gantt-context.d.ts +13 -0
  106. package/dist/data-components/gantt/gantt-context.d.ts.map +1 -0
  107. package/dist/data-components/gantt/gantt-types.d.ts +102 -0
  108. package/dist/data-components/gantt/gantt-types.d.ts.map +1 -0
  109. package/dist/data-components/gantt/gantt-utils.d.ts +61 -0
  110. package/dist/data-components/gantt/gantt-utils.d.ts.map +1 -0
  111. package/dist/data-components/gantt/gantt.d.ts +4 -0
  112. package/dist/data-components/gantt/gantt.d.ts.map +1 -0
  113. package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +15 -0
  114. package/dist/data-components/gantt/hooks/useGanttDrag.d.ts.map +1 -0
  115. package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +18 -0
  116. package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts.map +1 -0
  117. package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +10 -0
  118. package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts.map +1 -0
  119. package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +3 -0
  120. package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts.map +1 -0
  121. package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +13 -0
  122. package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts.map +1 -0
  123. package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts +8 -0
  124. package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts.map +1 -0
  125. package/dist/data-components/switcher/prop-form/prop-form-types.d.ts +17 -0
  126. package/dist/data-components/switcher/prop-form/prop-form-types.d.ts.map +1 -0
  127. package/dist/data-components/switcher/prop-form/prop-form.d.ts +6 -0
  128. package/dist/data-components/switcher/prop-form/prop-form.d.ts.map +1 -0
  129. package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts +53 -0
  130. package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts.map +1 -0
  131. package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts +15 -0
  132. package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts.map +1 -0
  133. package/dist/data-components/switcher/prop-schema/prop-schema.d.ts +38 -0
  134. package/dist/data-components/switcher/prop-schema/prop-schema.d.ts.map +1 -0
  135. package/dist/data-components/switcher/switcher-types.d.ts +58 -0
  136. package/dist/data-components/switcher/switcher-types.d.ts.map +1 -0
  137. package/dist/data-components/switcher/switcher.d.ts +12 -0
  138. package/dist/data-components/switcher/switcher.d.ts.map +1 -0
  139. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +5 -1
  140. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts.map +1 -1
  141. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +5 -0
  142. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts.map +1 -1
  143. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
  144. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts.map +1 -1
  145. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +2 -0
  146. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts.map +1 -1
  147. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +36 -0
  148. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts.map +1 -1
  149. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts.map +1 -1
  150. package/dist/data-components/table-grid/formula/formula-builder.d.ts.map +1 -1
  151. package/dist/data-components/table-grid/grouping/grouping.d.ts +15 -0
  152. package/dist/data-components/table-grid/grouping/grouping.d.ts.map +1 -0
  153. package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts.map +1 -1
  154. package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts.map +1 -1
  155. package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
  156. package/dist/data-components/table-grid/selection/selection-utils.d.ts +5 -5
  157. package/dist/data-components/table-grid/selection/selection-utils.d.ts.map +1 -1
  158. package/dist/data-components/table-grid/sorting/sorting.d.ts +3 -5
  159. package/dist/data-components/table-grid/sorting/sorting.d.ts.map +1 -1
  160. package/dist/data-components/table-grid/table-context/table-context-types.d.ts +3 -0
  161. package/dist/data-components/table-grid/table-context/table-context-types.d.ts.map +1 -1
  162. package/dist/data-components/table-grid/table-grid-context.d.ts +1 -1
  163. package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
  164. package/dist/data-components/table-grid/table-grid-panels.d.ts +22 -0
  165. package/dist/data-components/table-grid/table-grid-panels.d.ts.map +1 -0
  166. package/dist/data-components/table-grid/table-grid-types.d.ts +28 -1
  167. package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
  168. package/dist/data-components/table-grid/table-grid.d.ts +9 -2
  169. package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
  170. package/dist/data-components/table-grid/table-utils.d.ts +14 -2
  171. package/dist/data-components/table-grid/table-utils.d.ts.map +1 -1
  172. package/dist/data-components/ui-layer/ui-layer-types.d.ts +82 -0
  173. package/dist/data-components/ui-layer/ui-layer-types.d.ts.map +1 -0
  174. package/dist/data-components/ui-layer/ui-layer-utils.d.ts +13 -0
  175. package/dist/data-components/ui-layer/ui-layer-utils.d.ts.map +1 -0
  176. package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts +33 -0
  177. package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts.map +1 -0
  178. package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts +22 -0
  179. package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts.map +1 -0
  180. package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts +129 -0
  181. package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts.map +1 -0
  182. package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts +28 -0
  183. package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts.map +1 -0
  184. package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts +14 -0
  185. package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts.map +1 -0
  186. package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts +24 -0
  187. package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts.map +1 -0
  188. package/dist/experimental-components/dashboard-builder/widget-palette.d.ts +29 -0
  189. package/dist/experimental-components/dashboard-builder/widget-palette.d.ts.map +1 -0
  190. package/dist/framework-components/dashboard/dashboard-context.d.ts +12 -0
  191. package/dist/framework-components/dashboard/dashboard-context.d.ts.map +1 -0
  192. package/dist/framework-components/dashboard/dashboard-types.d.ts +35 -0
  193. package/dist/framework-components/dashboard/dashboard-types.d.ts.map +1 -0
  194. package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts +1 -0
  195. package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts.map +1 -0
  196. package/dist/framework-components/dashboard/dashboard-widget-types.d.ts +67 -0
  197. package/dist/framework-components/dashboard/dashboard-widget-types.d.ts.map +1 -0
  198. package/dist/framework-components/dashboard/dashboard-widget.d.ts +17 -0
  199. package/dist/framework-components/dashboard/dashboard-widget.d.ts.map +1 -0
  200. package/dist/framework-components/dashboard/dashboard.d.ts +11 -0
  201. package/dist/framework-components/dashboard/dashboard.d.ts.map +1 -0
  202. package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts +11 -0
  203. package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts.map +1 -0
  204. package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts +47 -0
  205. package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts.map +1 -0
  206. package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts +119 -0
  207. package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts.map +1 -0
  208. package/dist/framework-components/dashboard/data-engine/data-engine.d.ts +87 -0
  209. package/dist/framework-components/dashboard/data-engine/data-engine.d.ts.map +1 -0
  210. package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts +2 -0
  211. package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts.map +1 -0
  212. package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts +2 -0
  213. package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts.map +1 -0
  214. package/dist/framework-components/dashboard/data-engine/field-inference.d.ts +10 -0
  215. package/dist/framework-components/dashboard/data-engine/field-inference.d.ts.map +1 -0
  216. package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts +12 -0
  217. package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts.map +1 -0
  218. package/dist/framework-components/dashboard/data-engine/index.d.ts +8 -0
  219. package/dist/framework-components/dashboard/data-engine/index.d.ts.map +1 -0
  220. package/dist/framework-components/dashboard/data-engine/join-engine.d.ts +17 -0
  221. package/dist/framework-components/dashboard/data-engine/join-engine.d.ts.map +1 -0
  222. package/dist/framework-components/section/section-types.d.ts +14 -0
  223. package/dist/framework-components/section/section-types.d.ts.map +1 -0
  224. package/dist/framework-components/section/section.d.ts +9 -0
  225. package/dist/framework-components/section/section.d.ts.map +1 -0
  226. package/dist/index.d.ts +36 -12
  227. package/dist/index.d.ts.map +1 -1
  228. package/dist/providers/ai-assistant/ai-assistant-types.d.ts +2 -0
  229. package/dist/providers/ai-assistant/ai-assistant-types.d.ts.map +1 -1
  230. package/dist/providers/ai-assistant/ai-chat-panel.d.ts.map +1 -1
  231. package/dist/restio-ui.cjs.js +58 -30
  232. package/dist/restio-ui.es.js +33944 -32056
  233. package/dist/types/global-types.d.ts +11 -0
  234. package/dist/types/global-types.d.ts.map +1 -1
  235. package/dist/ui.css +1 -1
  236. package/dist/utility-components/icon/icon-assets.d.ts.map +1 -1
  237. package/package.json +1 -4
  238. package/dist/components/graph/graph-types.d.ts +0 -23
  239. package/dist/components/graph/graph-types.d.ts.map +0 -1
  240. package/dist/components/graph/graph.d.ts +0 -5
  241. package/dist/components/graph/graph.d.ts.map +0 -1
  242. package/dist/custom-components/layout-builder/layout-builder-constants.d.ts +0 -22
  243. package/dist/custom-components/layout-builder/layout-builder-constants.d.ts.map +0 -1
  244. package/dist/custom-components/layout-builder/layout-builder-schema.d.ts +0 -967
  245. package/dist/custom-components/layout-builder/layout-builder-schema.d.ts.map +0 -1
  246. package/dist/custom-components/layout-builder/layout-builder-templates.d.ts +0 -13
  247. package/dist/custom-components/layout-builder/layout-builder-templates.d.ts.map +0 -1
  248. package/dist/custom-components/layout-builder/layout-builder-types.d.ts +0 -73
  249. package/dist/custom-components/layout-builder/layout-builder-types.d.ts.map +0 -1
  250. package/dist/custom-components/layout-builder/layout-builder-utils.d.ts +0 -70
  251. package/dist/custom-components/layout-builder/layout-builder-utils.d.ts.map +0 -1
  252. package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +0 -29
  253. package/dist/custom-components/layout-builder/layout-builder-validation.d.ts.map +0 -1
  254. package/dist/custom-components/layout-builder/layout-builder.d.ts +0 -4
  255. package/dist/custom-components/layout-builder/layout-builder.d.ts.map +0 -1
  256. package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +0 -60
  257. package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts.map +0 -1
  258. package/dist/custom-components/layout-builder/layout-json-editor.d.ts +0 -13
  259. package/dist/custom-components/layout-builder/layout-json-editor.d.ts.map +0 -1
  260. package/dist/custom-components/layout-builder/stories/hooks/useHistory.d.ts +0 -49
  261. package/dist/custom-components/layout-builder/stories/hooks/useHistory.d.ts.map +0 -1
  262. package/dist/data-components/cell/cell-switch.d.ts +0 -17
  263. package/dist/data-components/cell/cell-switch.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-builder-schema.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCtB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCzB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BzB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQxB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,eAAe,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAwB7C"}
@@ -1,13 +0,0 @@
1
- import { LayoutTemplate } from './layout-builder-types';
2
- /**
3
- * Predefined layout templates that provide common starting configurations.
4
- * Users can select these as a foundation and customize as needed.
5
- */
6
- export declare const LAYOUT_TEMPLATES: LayoutTemplate[];
7
- /**
8
- * Find a layout template by its ID.
9
- * @param templateId - The unique identifier of the template to find
10
- * @returns The matching template, or undefined if not found
11
- */
12
- export declare function findTemplateById(templateId: string): LayoutTemplate | undefined;
13
- //# sourceMappingURL=layout-builder-templates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-builder-templates.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAgM5C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAE/E"}
@@ -1,73 +0,0 @@
1
- import { ResponsiveLayout } from '../layout/layout-types';
2
- /**
3
- * Data model that defines the available fields for the layout builder.
4
- * Each key becomes a draggable block that can be placed on the grid.
5
- */
6
- export type DataModel = Record<string, unknown>;
7
- /**
8
- * View mode for the layout builder
9
- * - "visual": Only show the visual grid editor
10
- * - "json": Only show the JSON editor
11
- * - "split": Show both side by side
12
- */
13
- export type LayoutBuilderViewMode = "visual" | "json" | "split";
14
- /**
15
- * Props for the LayoutBuilder component.
16
- */
17
- export interface LayoutBuilderProps {
18
- /**
19
- * Initial layout configuration for the builder.
20
- * If not provided, uses the default empty layout.
21
- */
22
- initialLayout?: ResponsiveLayout;
23
- /**
24
- * Callback fired whenever the layout changes.
25
- * Use this to sync layout state with parent components or persist changes.
26
- */
27
- onChange?: (layout: ResponsiveLayout) => void;
28
- /**
29
- * Data model object defining available fields for placement.
30
- * Each key becomes a draggable field that can be placed on the grid.
31
- * The key name will be used as the block ID.
32
- * @example
33
- * dataModel={{ name: "Leo", surname: "Sig", age: 3 }}
34
- */
35
- dataModel?: DataModel;
36
- /**
37
- * Default view mode for the builder.
38
- * @default "visual"
39
- */
40
- defaultViewMode?: LayoutBuilderViewMode;
41
- /**
42
- * Whether to show the view mode toggle in the toolbar.
43
- * @default true
44
- */
45
- showViewToggle?: boolean;
46
- /**
47
- * Whether to show the JSON schema info button.
48
- * @default false
49
- */
50
- showSchemaInfo?: boolean;
51
- }
52
- /**
53
- * Represents a predefined layout template that users can select
54
- * as a starting point for their layout configuration.
55
- */
56
- export interface LayoutTemplate {
57
- /** Unique identifier for the template */
58
- id: string;
59
- /** Human-readable name displayed in the template selector */
60
- name: string;
61
- /** Brief description of the template's structure */
62
- description: string;
63
- /** The actual responsive layout configuration */
64
- layout: ResponsiveLayout;
65
- }
66
- /**
67
- * Position coordinates on the grid, used during drag operations.
68
- */
69
- export interface GridPosition {
70
- col: number;
71
- row: number;
72
- }
73
- //# sourceMappingURL=layout-builder-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-builder-types.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE9C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC;IAExC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IAEX,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IAEb,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IAEpB,iDAAiD;IACjD,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -1,70 +0,0 @@
1
- import { Breakpoint, GridPlacement, ResponsiveLayout, BlocksLayout } from '../layout/layout-types';
2
- /**
3
- * Checks if a block ID represents a slot (empty placeholder awaiting field assignment).
4
- * Slots are identified by the "slot_" prefix.
5
- */
6
- export declare function isSlotBlock(blockId: string): boolean;
7
- /**
8
- * Returns a human-readable type name for any JavaScript value.
9
- * Used for displaying field types in the field palette.
10
- */
11
- export declare function getValueTypeName(value: unknown): string;
12
- /**
13
- * Checks if a new block placement would overlap with any existing blocks.
14
- * @param newBlock - The proposed block placement to check
15
- * @param existingBlocks - Current blocks in the layout
16
- * @param ignoreBlockId - Optional block ID to exclude from collision check (useful when moving/resizing)
17
- * @returns true if there's a collision, false if placement is valid
18
- */
19
- export declare function hasCollision(newBlock: GridPlacement, existingBlocks: BlocksLayout, ignoreBlockId?: string | number): boolean;
20
- /**
21
- * Finds which block (if any) occupies a given grid position.
22
- * @returns The block ID at the position, or null if empty
23
- */
24
- export declare function findBlockAtPosition(col: number, row: number, blocks: BlocksLayout): string | null;
25
- /**
26
- * Generates the next available numeric block ID across all breakpoints.
27
- * Ensures uniqueness by finding the maximum existing numeric ID and incrementing.
28
- */
29
- export declare function generateNextBlockId(layout: ResponsiveLayout): number;
30
- /**
31
- * Checks if a block ID already exists in any breakpoint.
32
- */
33
- export declare function blockIdExistsInAnyBreakpoint(blockId: string | number, layout: ResponsiveLayout): boolean;
34
- /**
35
- * Scales a block placement from one breakpoint's grid to another.
36
- * Adjusts position and size proportionally based on grid dimensions.
37
- */
38
- export declare function scaleBlockToBreakpoint(sourcePlacement: GridPlacement, sourceBreakpoint: Breakpoint, targetBreakpoint: Breakpoint, layout: ResponsiveLayout): GridPlacement;
39
- /**
40
- * Synchronizes a block placement to all unlocked breakpoints.
41
- * Creates a new layout object with the block added/updated in each target breakpoint.
42
- */
43
- export declare function syncBlockToAllBreakpoints(blockId: string | number, placement: GridPlacement, sourceBreakpoint: Breakpoint, layout: ResponsiveLayout, lockedBreakpoints: Set<Breakpoint>): ResponsiveLayout;
44
- /**
45
- * Removes a block from all unlocked breakpoints.
46
- */
47
- export declare function removeBlockFromAllBreakpoints(blockId: string | number, layout: ResponsiveLayout, lockedBreakpoints: Set<Breakpoint>): ResponsiveLayout;
48
- /**
49
- * Removes multiple blocks from all unlocked breakpoints.
50
- */
51
- export declare function removeMultipleBlocksFromAllBreakpoints(blockIds: Set<string>, layout: ResponsiveLayout, lockedBreakpoints: Set<Breakpoint>): ResponsiveLayout;
52
- /**
53
- * Renames a block ID across all unlocked breakpoints.
54
- */
55
- export declare function renameBlockInAllBreakpoints(oldId: string | number, newId: string | number, layout: ResponsiveLayout, lockedBreakpoints: Set<Breakpoint>): ResponsiveLayout;
56
- /**
57
- * Clamps a block placement to stay within grid boundaries.
58
- * Adjusts position and size to ensure the block fits entirely within the grid.
59
- */
60
- export declare function clampBlockToGrid(block: GridPlacement, gridColumns: number, gridRows: number): GridPlacement;
61
- /**
62
- * Checks if a block position is valid within grid boundaries.
63
- */
64
- export declare function isBlockWithinBounds(block: GridPlacement, gridColumns: number, gridRows: number): boolean;
65
- /**
66
- * Creates a deep copy of a responsive layout.
67
- * Ensures modifications don't affect the original template.
68
- */
69
- export declare function cloneLayout(layout: ResponsiveLayout): ResponsiveLayout;
70
- //# sourceMappingURL=layout-builder-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-builder-utils.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAOnG;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAIvD;AAMD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,aAAa,EACvB,cAAc,EAAE,YAAY,EAC5B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAC9B,OAAO,CAmBT;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,YAAY,GACnB,MAAM,GAAG,IAAI,CAUf;AAMD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAQpE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAET;AAMD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,aAAa,EAC9B,gBAAgB,EAAE,UAAU,EAC5B,gBAAgB,EAAE,UAAU,EAC5B,MAAM,EAAE,gBAAgB,GACvB,aAAa,CA+Bf;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,SAAS,EAAE,aAAa,EACxB,gBAAgB,EAAE,UAAU,EAC5B,MAAM,EAAE,gBAAgB,EACxB,iBAAiB,EAAE,GAAG,CAAC,UAAU,CAAC,GACjC,gBAAgB,CA0BlB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,MAAM,EAAE,gBAAgB,EACxB,iBAAiB,EAAE,GAAG,CAAC,UAAU,CAAC,GACjC,gBAAgB,CAkBlB;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EACrB,MAAM,EAAE,gBAAgB,EACxB,iBAAiB,EAAE,GAAG,CAAC,UAAU,CAAC,GACjC,gBAAgB,CAoBlB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,EAAE,gBAAgB,EACxB,iBAAiB,EAAE,GAAG,CAAC,UAAU,CAAC,GACjC,gBAAgB,CAwBlB;AAMD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,aAAa,EACpB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GACf,aAAa,CAgBf;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,aAAa,EACpB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GACf,OAAO,CAUT;AAMD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAetE"}
@@ -1,29 +0,0 @@
1
- import { ResponsiveLayout } from '../layout/layout-types';
2
- import { ValidationError, ValidationResult } from './layout-builder-schema';
3
- /**
4
- * Validates a complete ResponsiveLayout object against the schema
5
- *
6
- * @param layout - The layout object to validate
7
- * @returns ValidationResult with valid flag and array of errors
8
- */
9
- export declare function validateLayout(layout: unknown): ValidationResult;
10
- /**
11
- * Validates and returns a typed layout or throws an error
12
- */
13
- export declare function parseLayout(json: string): {
14
- layout: ResponsiveLayout;
15
- errors: ValidationError[];
16
- };
17
- /**
18
- * Serializes a layout to JSON with optional formatting
19
- */
20
- export declare function serializeLayout(layout: ResponsiveLayout, pretty?: boolean): string;
21
- /**
22
- * Generates a human-readable description of the layout
23
- */
24
- export declare function describeLayout(layout: ResponsiveLayout): string;
25
- /**
26
- * Formats validation errors for display
27
- */
28
- export declare function formatValidationErrors(errors: ValidationError[]): string;
29
- //# sourceMappingURL=layout-builder-validation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-builder-validation.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder-validation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAiB,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAyB,MAAM,yBAAyB,CAAC;AAsVnG;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,gBAAgB,CAgEhE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAAE,CA8BjG;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAO,GAAG,MAAM,CAO/E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CA+B/D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAmBxE"}
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { LayoutBuilderProps } from './layout-builder-types';
3
- export declare const LayoutBuilder: React.FC<LayoutBuilderProps>;
4
- //# sourceMappingURL=layout-builder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-builder.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-builder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAuC,MAAM,wBAAwB,CAAC;AA6CjG,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyxCtD,CAAC"}
@@ -1,60 +0,0 @@
1
- import { ValidationError } from './layout-builder-schema';
2
- /**
3
- * View mode for the layout builder
4
- */
5
- export type LayoutBuilderViewMode = "visual" | "json" | "split";
6
- /**
7
- * Props for the JSON Editor component
8
- */
9
- export interface LayoutJsonEditorProps {
10
- /**
11
- * The JSON string to display and edit
12
- */
13
- value: string;
14
- /**
15
- * Callback when the JSON content changes
16
- */
17
- onChange: (value: string) => void;
18
- /**
19
- * Validation errors to display
20
- */
21
- errors: ValidationError[];
22
- /**
23
- * Whether the editor is read-only
24
- */
25
- readOnly?: boolean;
26
- /**
27
- * Height of the editor
28
- */
29
- height?: string | number;
30
- /**
31
- * Callback to activate JSON editor shortcuts (call when editor gains focus)
32
- */
33
- onActivate?: () => void;
34
- /**
35
- * Callback to deactivate JSON editor shortcuts (call when editor loses focus)
36
- */
37
- onDeactivate?: () => void;
38
- }
39
- /**
40
- * Props for the Layout Builder Header with view toggle
41
- */
42
- export interface LayoutBuilderHeaderProps {
43
- /**
44
- * Current view mode
45
- */
46
- viewMode: LayoutBuilderViewMode;
47
- /**
48
- * Callback when view mode changes
49
- */
50
- onViewModeChange: (mode: LayoutBuilderViewMode) => void;
51
- /**
52
- * Whether the JSON is valid
53
- */
54
- isValid: boolean;
55
- /**
56
- * Number of validation errors
57
- */
58
- errorCount: number;
59
- }
60
- //# sourceMappingURL=layout-json-editor-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-json-editor-types.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-json-editor-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC;;OAEG;IACH,MAAM,EAAE,eAAe,EAAE,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,qBAAqB,CAAC;IAEhC;;OAEG;IACH,gBAAgB,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAExD;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- import { LayoutJsonEditorProps } from './layout-json-editor-types';
3
- /**
4
- * JSON Editor component for editing layout configurations
5
- *
6
- * Features:
7
- * - Syntax highlighting (basic)
8
- * - Line numbers
9
- * - Error display with line indicators
10
- * - Auto-formatting
11
- */
12
- export declare const LayoutJsonEditor: React.FC<LayoutJsonEditorProps>;
13
- //# sourceMappingURL=layout-json-editor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-json-editor.d.ts","sourceRoot":"","sources":["../../../src/custom-components/layout-builder/layout-json-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOnE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6K5D,CAAC"}
@@ -1,49 +0,0 @@
1
- export interface UseHistoryOptions<T> {
2
- /** Maximum number of history entries to keep */
3
- maxHistory?: number;
4
- /** Function to compare if two states are equal (to avoid duplicate entries) */
5
- isEqual?: (a: T, b: T) => boolean;
6
- }
7
- export interface UseHistoryReturn<T> {
8
- /** Current state value */
9
- state: T;
10
- /** Update state and add to history */
11
- setState: (newState: T) => void;
12
- /** Undo to previous state */
13
- undo: () => void;
14
- /** Redo to next state */
15
- redo: () => void;
16
- /** Whether undo is available */
17
- canUndo: boolean;
18
- /** Whether redo is available */
19
- canRedo: boolean;
20
- /** Clear all history */
21
- clearHistory: () => void;
22
- /** Number of undo steps available */
23
- undoCount: number;
24
- /** Number of redo steps available */
25
- redoCount: number;
26
- /** Reset to a new initial state, clearing history */
27
- reset: (newInitialState: T) => void;
28
- }
29
- /**
30
- * Hook for managing state with undo/redo history.
31
- *
32
- * @param initialState - The initial state value
33
- * @param options - Configuration options
34
- * @returns History management object with state and control methods
35
- *
36
- * @example
37
- * ```tsx
38
- * const { state, setState, undo, redo, canUndo, canRedo } = useHistory(initialLayout);
39
- *
40
- * // Update state (automatically tracked in history)
41
- * setState(newLayout);
42
- *
43
- * // Undo/redo
44
- * if (canUndo) undo();
45
- * if (canRedo) redo();
46
- * ```
47
- */
48
- export declare function useHistory<T>(initialState: T, options?: UseHistoryOptions<T>): UseHistoryReturn<T>;
49
- //# sourceMappingURL=useHistory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useHistory.d.ts","sourceRoot":"","sources":["../../../../../src/custom-components/layout-builder/stories/hooks/useHistory.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,0BAA0B;IAC1B,KAAK,EAAE,CAAC,CAAC;IACT,sCAAsC;IACtC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC,6BAA6B;IAC7B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,yBAAyB;IACzB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,gCAAgC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,wBAAwB;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,KAAK,EAAE,CAAC,eAAe,EAAE,CAAC,KAAK,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAC1B,YAAY,EAAE,CAAC,EACf,OAAO,GAAE,iBAAiB,CAAC,CAAC,CAAM,GACjC,gBAAgB,CAAC,CAAC,CAAC,CAiGrB"}
@@ -1,17 +0,0 @@
1
- import { DataStructureColumn } from '../data-structure/data-structure';
2
- /**
3
- * Renders the appropriate editor component based on value type and column configuration
4
- * @param value - Current draft value
5
- * @param column - Column definition
6
- * @param onDraftChange - Callback when draft value changes
7
- * @param onCommit - Callback to commit the value
8
- * @param onImmediateCommit - Callback for immediate commit (select, checkbox)
9
- * @param onKeyDown - Keyboard event handler
10
- * @param autoFocus - Whether to autofocus the editor
11
- * @param error - Error message
12
- * @param disabled - Whether the cell is disabled
13
- * @param className - CSS class name
14
- * @returns Editor component
15
- */
16
- export declare function renderCell<TData, TValue>(value: TValue, column: DataStructureColumn<TData, TValue>, onDraftChange: (value: TValue) => void, onCommit: () => void, onImmediateCommit: (value: TValue) => void, onKeyDown: (e: React.KeyboardEvent) => void, autoFocus: boolean, error?: string, disabled?: boolean, className?: string): import("react/jsx-runtime").JSX.Element;
17
- //# sourceMappingURL=cell-switch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cell-switch.d.ts","sourceRoot":"","sources":["../../../src/data-components/cell/cell-switch.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAIvE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EACtC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,EAC1C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACtC,QAAQ,EAAE,MAAM,IAAI,EACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAC1C,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,EAC3C,SAAS,EAAE,OAAO,EAClB,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,MAAM,2CAqJnB"}