@restio/ui 0.2.0 → 0.2.1-20260901160735

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 (506) hide show
  1. package/README.md +78 -8
  2. package/dist/core.cjs +1 -0
  3. package/dist/core.d.ts +803 -0
  4. package/dist/core.js +30 -0
  5. package/dist/data.cjs +1 -0
  6. package/dist/data.d.ts +1423 -0
  7. package/dist/data.js +24 -0
  8. package/dist/experimental.cjs +1 -0
  9. package/dist/experimental.d.ts +486 -0
  10. package/dist/experimental.js +1027 -0
  11. package/dist/framework.cjs +1 -0
  12. package/dist/framework.d.ts +788 -0
  13. package/dist/framework.js +31 -0
  14. package/dist/index.cjs +1 -0
  15. package/dist/index.d.ts +3124 -143
  16. package/dist/index.js +90 -0
  17. package/dist/{restio-ui.es.js → src-DaTjVaGd.js} +24815 -25017
  18. package/dist/src-gB-fpYMb.cjs +156 -0
  19. package/dist/ui.css +1 -1
  20. package/package.json +46 -25
  21. package/dist/assets/svg/alert.svg +0 -1
  22. package/dist/assets/svg/arrow-down-up.svg +0 -1
  23. package/dist/assets/svg/arrow-down.svg +0 -1
  24. package/dist/assets/svg/arrow-left.svg +0 -1
  25. package/dist/assets/svg/arrow-right.svg +0 -1
  26. package/dist/assets/svg/arrow-up.svg +0 -1
  27. package/dist/assets/svg/arrow_drop_down.svg +0 -1
  28. package/dist/assets/svg/calendar.svg +0 -1
  29. package/dist/assets/svg/chart-area.svg +0 -1
  30. package/dist/assets/svg/chart-bar-stacked.svg +0 -1
  31. package/dist/assets/svg/chart-bar.svg +0 -1
  32. package/dist/assets/svg/chart-candlestick.svg +0 -1
  33. package/dist/assets/svg/chart-gantt.svg +0 -1
  34. package/dist/assets/svg/chart-line.svg +0 -1
  35. package/dist/assets/svg/chart-pie.svg +0 -1
  36. package/dist/assets/svg/chart-sankey.svg +0 -1
  37. package/dist/assets/svg/check.svg +0 -1
  38. package/dist/assets/svg/chevron-down.svg +0 -1
  39. package/dist/assets/svg/chevron-right.svg +0 -1
  40. package/dist/assets/svg/clipboard.svg +0 -1
  41. package/dist/assets/svg/close.svg +0 -1
  42. package/dist/assets/svg/copy.svg +0 -1
  43. package/dist/assets/svg/cursor.svg +0 -1
  44. package/dist/assets/svg/cut.svg +0 -1
  45. package/dist/assets/svg/delete.svg +0 -1
  46. package/dist/assets/svg/discussion.svg +0 -1
  47. package/dist/assets/svg/dock-left-arrow.svg +0 -1
  48. package/dist/assets/svg/dock-right-arrow.svg +0 -1
  49. package/dist/assets/svg/document-outline.svg +0 -1
  50. package/dist/assets/svg/download.svg +0 -1
  51. package/dist/assets/svg/drag.svg +0 -1
  52. package/dist/assets/svg/error.svg +0 -1
  53. package/dist/assets/svg/expand-right.svg +0 -1
  54. package/dist/assets/svg/expand.svg +0 -1
  55. package/dist/assets/svg/eye.svg +0 -1
  56. package/dist/assets/svg/file-plus.svg +0 -1
  57. package/dist/assets/svg/filter.svg +0 -1
  58. package/dist/assets/svg/form.svg +0 -1
  59. package/dist/assets/svg/fullscreen.svg +0 -1
  60. package/dist/assets/svg/gear.svg +0 -1
  61. package/dist/assets/svg/groups.svg +0 -1
  62. package/dist/assets/svg/help.svg +0 -1
  63. package/dist/assets/svg/info.svg +0 -1
  64. package/dist/assets/svg/list.svg +0 -1
  65. package/dist/assets/svg/logo.svg +0 -9
  66. package/dist/assets/svg/menu.svg +0 -1
  67. package/dist/assets/svg/message-bubble-question-mark.svg +0 -1
  68. package/dist/assets/svg/open-center.svg +0 -1
  69. package/dist/assets/svg/pencil.svg +0 -1
  70. package/dist/assets/svg/pie-chart.svg +0 -1
  71. package/dist/assets/svg/plus.svg +0 -1
  72. package/dist/assets/svg/restio.svg +0 -5
  73. package/dist/assets/svg/search.svg +0 -1
  74. package/dist/assets/svg/send.svg +0 -1
  75. package/dist/assets/svg/shrink-right.svg +0 -1
  76. package/dist/assets/svg/sidebar.svg +0 -1
  77. package/dist/assets/svg/square-half.svg +0 -1
  78. package/dist/assets/svg/table.svg +0 -1
  79. package/dist/assets/svg/terminal.svg +0 -1
  80. package/dist/assets/svg/timer.svg +0 -1
  81. package/dist/assets/svg/transaction.svg +0 -1
  82. package/dist/assets/svg/vertical-expand.svg +0 -1
  83. package/dist/assets/svg/wallet.svg +0 -1
  84. package/dist/assets/svg/warning.svg +0 -1
  85. package/dist/assets/svg/zoom-minus.svg +0 -1
  86. package/dist/assets/svg/zoom-plus.svg +0 -1
  87. package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +0 -22
  88. package/dist/components/anchored-overlay/anchored-overlay.d.ts +0 -4
  89. package/dist/components/anchored-overlay/anchored-overlay.test.d.ts +0 -0
  90. package/dist/components/anchored-overlay/stories/anchored-overlay-example.stories.d.ts +0 -6
  91. package/dist/components/banner/banner-types.d.ts +0 -12
  92. package/dist/components/banner/banner.d.ts +0 -4
  93. package/dist/components/banner/banner.stories.d.ts +0 -11
  94. package/dist/components/button/button-types.d.ts +0 -11
  95. package/dist/components/button/button.d.ts +0 -3
  96. package/dist/components/button/stories/button-example.stories.d.ts +0 -8
  97. package/dist/components/button/stories/button.stories.d.ts +0 -8
  98. package/dist/components/button-dropdown/button-dropdown-types.d.ts +0 -19
  99. package/dist/components/button-dropdown/button-dropdown.d.ts +0 -7
  100. package/dist/components/button-dropdown/button-dropdown.test.d.ts +0 -0
  101. package/dist/components/button-dropdown/stories/button-dropdown.stories.d.ts +0 -10
  102. package/dist/components/button-group/button-group-types.d.ts +0 -15
  103. package/dist/components/button-group/button-group.d.ts +0 -3
  104. package/dist/components/button-group/button-group.stories.d.ts +0 -7
  105. package/dist/components/button-group/button-group.test.d.ts +0 -1
  106. package/dist/components/checkbox/checkbox-types.d.ts +0 -15
  107. package/dist/components/checkbox/checkbox.d.ts +0 -3
  108. package/dist/components/checkbox/checkbox.test.d.ts +0 -0
  109. package/dist/components/checkbox/stories/checkbox-example.stories.d.ts +0 -7
  110. package/dist/components/checkbox/stories/checkbox.stories.d.ts +0 -6
  111. package/dist/components/checkbox-group/checkbox-group-types.d.ts +0 -27
  112. package/dist/components/checkbox-group/checkbox-group.d.ts +0 -7
  113. package/dist/components/checkbox-group/checkbox-group.test.d.ts +0 -0
  114. package/dist/components/checkbox-group/stories/checkbox-group-example.stories.d.ts +0 -6
  115. package/dist/components/checkbox-group/stories/checkbox-group.stories.d.ts +0 -10
  116. package/dist/components/code-block/code-block.d.ts +0 -7
  117. package/dist/components/file-upload/file-upload-types.d.ts +0 -36
  118. package/dist/components/file-upload/file-upload-utils.d.ts +0 -1
  119. package/dist/components/file-upload/file-upload.d.ts +0 -3
  120. package/dist/components/file-upload/file-upload.test.d.ts +0 -1
  121. package/dist/components/file-upload/stories/file-upload.stories.d.ts +0 -8
  122. package/dist/components/input/date/date-calendar.d.ts +0 -3
  123. package/dist/components/input/date/date-input-field.d.ts +0 -8
  124. package/dist/components/input/date/date-picker.d.ts +0 -7
  125. package/dist/components/input/date/date-range-input-field.d.ts +0 -8
  126. package/dist/components/input/date/date-range-picker.d.ts +0 -8
  127. package/dist/components/input/date/date-shortcuts.d.ts +0 -3
  128. package/dist/components/input/date/date-types.d.ts +0 -52
  129. package/dist/components/input/date/date-utils.d.ts +0 -50
  130. package/dist/components/input/date/stories/date.stories.d.ts +0 -5
  131. package/dist/components/input/input-types.d.ts +0 -27
  132. package/dist/components/input/input.d.ts +0 -3
  133. package/dist/components/input/number/input-number-types.d.ts +0 -7
  134. package/dist/components/input/number/input-number.d.ts +0 -3
  135. package/dist/components/input/number/input-number.stories.d.ts +0 -6
  136. package/dist/components/input/text/input-text-types.d.ts +0 -6
  137. package/dist/components/input/text/input-text.d.ts +0 -3
  138. package/dist/components/input/text/stories/input-text.stories.d.ts +0 -9
  139. package/dist/components/kbd/kbd-types.d.ts +0 -6
  140. package/dist/components/kbd/kbd.d.ts +0 -4
  141. package/dist/components/kbd/kbd.stories.d.ts +0 -9
  142. package/dist/components/kbd-group/kbd-group-types.d.ts +0 -14
  143. package/dist/components/kbd-group/kbd-group.d.ts +0 -4
  144. package/dist/components/kbd-group/kbd-group.stories.d.ts +0 -10
  145. package/dist/components/list/list-types.d.ts +0 -37
  146. package/dist/components/list/list-utils.d.ts +0 -46
  147. package/dist/components/list/list.d.ts +0 -2
  148. package/dist/components/list/list.stories.d.ts +0 -12
  149. package/dist/components/list/list.test.d.ts +0 -0
  150. package/dist/components/menu/anchored-navigation-menu.d.ts +0 -18
  151. package/dist/components/menu/menu-assets.d.ts +0 -2
  152. package/dist/components/menu/menu-types.d.ts +0 -21
  153. package/dist/components/menu/menu.d.ts +0 -8
  154. package/dist/components/menu/stories/anchored-navigation-menu.stories.d.ts +0 -7
  155. package/dist/components/otp/otp-types.d.ts +0 -29
  156. package/dist/components/otp/otp-utils.d.ts +0 -14
  157. package/dist/components/otp/otp.d.ts +0 -3
  158. package/dist/components/otp/otp.stories.d.ts +0 -145
  159. package/dist/components/progress-bar/progress-bar-types.d.ts +0 -19
  160. package/dist/components/progress-bar/progress-bar.d.ts +0 -6
  161. package/dist/components/progress-bar/progress-bar.test.d.ts +0 -1
  162. package/dist/components/progress-bar/stories/progress-bar-example.stories.d.ts +0 -8
  163. package/dist/components/progress-bar/stories/progress-bar.stories.d.ts +0 -9
  164. package/dist/components/radio/radio-types.d.ts +0 -13
  165. package/dist/components/radio/radio.d.ts +0 -7
  166. package/dist/components/radio/radio.test.d.ts +0 -0
  167. package/dist/components/radio/stories/radio-example.stories.d.ts +0 -7
  168. package/dist/components/radio/stories/radio.stories.d.ts +0 -6
  169. package/dist/components/radio-group/radio-group-types.d.ts +0 -29
  170. package/dist/components/radio-group/radio-group.d.ts +0 -7
  171. package/dist/components/radio-group/radio-group.test.d.ts +0 -0
  172. package/dist/components/radio-group/stories/radio-group-example.stories.d.ts +0 -6
  173. package/dist/components/radio-group/stories/radio-group.stories.d.ts +0 -10
  174. package/dist/components/select/select-switch.d.ts +0 -26
  175. package/dist/components/select/select-types.d.ts +0 -35
  176. package/dist/components/select/select.d.ts +0 -4
  177. package/dist/components/select/select.stories.d.ts +0 -20
  178. package/dist/components/select/select.test.d.ts +0 -0
  179. package/dist/components/select/templates/grid-template.d.ts +0 -7
  180. package/dist/components/select/templates/list-template.d.ts +0 -7
  181. package/dist/components/select/templates/preview-dialog-template.d.ts +0 -9
  182. package/dist/components/select/templates/select-template-types.d.ts +0 -12
  183. package/dist/components/selection-grid/selection-grid-types.d.ts +0 -19
  184. package/dist/components/selection-grid/selection-grid.d.ts +0 -7
  185. package/dist/components/selection-grid/stories/selection-grid-example.stories.d.ts +0 -7
  186. package/dist/components/selection-grid/stories/selection-grid.stories.d.ts +0 -10
  187. package/dist/components/tag/tag-types.d.ts +0 -9
  188. package/dist/components/tag/tag.d.ts +0 -3
  189. package/dist/components/tag/tag.stories.d.ts +0 -12
  190. package/dist/components/textarea/textarea-types.d.ts +0 -54
  191. package/dist/components/textarea/textarea.d.ts +0 -3
  192. package/dist/components/textarea/textarea.stories.d.ts +0 -25
  193. package/dist/components/toast-group/toast-group-types.d.ts +0 -5
  194. package/dist/components/toast-group/toast-group.d.ts +0 -4
  195. package/dist/components/toast-group/toast-group.stories.d.ts +0 -6
  196. package/dist/components/typography/typography-types.d.ts +0 -58
  197. package/dist/components/typography/typography.d.ts +0 -3
  198. package/dist/components/typography/typography.stories.d.ts +0 -10
  199. package/dist/custom-components/chat/chat-types.d.ts +0 -18
  200. package/dist/custom-components/chat/chat.d.ts +0 -2
  201. package/dist/custom-components/chat/chat.stories.d.ts +0 -7
  202. package/dist/custom-components/layout/layout-renderers.d.ts +0 -8
  203. package/dist/custom-components/layout/layout-types.d.ts +0 -43
  204. package/dist/custom-components/layout/layout.d.ts +0 -12
  205. package/dist/custom-components/layout/layout.stories.d.ts +0 -7
  206. package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +0 -4
  207. package/dist/custom-components/markdown/markdown-types.d.ts +0 -28
  208. package/dist/custom-components/markdown/markdown-utils.d.ts +0 -1
  209. package/dist/custom-components/markdown/markdown.d.ts +0 -3
  210. package/dist/custom-components/markdown/markdown.stories.d.ts +0 -6
  211. package/dist/custom-components/mindmap/index.d.ts +0 -2
  212. package/dist/custom-components/mindmap/mind-tree-types.d.ts +0 -93
  213. package/dist/custom-components/mindmap/mind-tree.d.ts +0 -3
  214. package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +0 -64
  215. package/dist/custom-components/mindmap/stories/mind-tree.stories.d.ts +0 -11
  216. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.d.ts +0 -59
  217. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +0 -17
  218. package/dist/custom-components/shortcut-tooltip/stories/shortcut-tooltip.stories.d.ts +0 -10
  219. package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +0 -6
  220. package/dist/custom-components/timeline/timeline-types.d.ts +0 -45
  221. package/dist/custom-components/timeline/timeline.d.ts +0 -19
  222. package/dist/custom-components/timeline/timeline.stories.d.ts +0 -8
  223. package/dist/custom-components/workflow/layout/workflow-edge.d.ts +0 -3
  224. package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +0 -73
  225. package/dist/custom-components/workflow/layout/workflow-layout.d.ts +0 -37
  226. package/dist/custom-components/workflow/node/workflow-node.d.ts +0 -3
  227. package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +0 -17
  228. package/dist/custom-components/workflow/panel/workflow-panel.d.ts +0 -3
  229. package/dist/custom-components/workflow/stories/workflow-overlay.stories.d.ts +0 -7
  230. package/dist/custom-components/workflow/stories/workflow-toolbar.stories.d.ts +0 -6
  231. package/dist/custom-components/workflow/stories/workflow.stories.d.ts +0 -7
  232. package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.d.ts +0 -23
  233. package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +0 -3
  234. package/dist/custom-components/workflow/utils/workflow-validation.d.ts +0 -47
  235. package/dist/custom-components/workflow/workflow-types.d.ts +0 -203
  236. package/dist/custom-components/workflow/workflow.d.ts +0 -6
  237. package/dist/data-components/assets/cell-types-asset.d.ts +0 -38
  238. package/dist/data-components/assets/data-components-asset.d.ts +0 -13
  239. package/dist/data-components/calendar/calendar-types.d.ts +0 -30
  240. package/dist/data-components/calendar/calendar-utils.d.ts +0 -5
  241. package/dist/data-components/calendar/calendar.d.ts +0 -4
  242. package/dist/data-components/calendar/stories/calendar.stories.d.ts +0 -22
  243. package/dist/data-components/card/card-types.d.ts +0 -20
  244. package/dist/data-components/card/card.d.ts +0 -10
  245. package/dist/data-components/card/stories/card.stories.d.ts +0 -13
  246. package/dist/data-components/card-list/card-list-types.d.ts +0 -21
  247. package/dist/data-components/card-list/card-list.d.ts +0 -12
  248. package/dist/data-components/card-list/models/ecommerce.d.ts +0 -12
  249. package/dist/data-components/card-list/stories/card-list.stories.d.ts +0 -29
  250. package/dist/data-components/cell/cell-registry.d.ts +0 -28
  251. package/dist/data-components/cell/cell-types.d.ts +0 -39
  252. package/dist/data-components/cell/cell-utils.d.ts +0 -21
  253. package/dist/data-components/cell/cell.d.ts +0 -2
  254. package/dist/data-components/cell/colors-editor/colors-editor-types.d.ts +0 -15
  255. package/dist/data-components/cell/colors-editor/colors-editor.d.ts +0 -7
  256. package/dist/data-components/cell/stories/cell-all-examples.stories.d.ts +0 -13
  257. package/dist/data-components/cell/test/cell-utils.test.d.ts +0 -1
  258. package/dist/data-components/cell/test/cell.test.d.ts +0 -0
  259. package/dist/data-components/chart/chart-series-edit/chart-series-edit-types.d.ts +0 -22
  260. package/dist/data-components/chart/chart-series-edit/chart-series-edit.d.ts +0 -9
  261. package/dist/data-components/chart/chart-tooltip/chart-tooltip-types.d.ts +0 -13
  262. package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts +0 -7
  263. package/dist/data-components/chart/chart-types.d.ts +0 -106
  264. package/dist/data-components/chart/chart-utils.d.ts +0 -27
  265. package/dist/data-components/chart/chart.d.ts +0 -4
  266. package/dist/data-components/chart/chart.stories.d.ts +0 -15
  267. package/dist/data-components/chart/geo/geoChart.d.ts +0 -10
  268. package/dist/data-components/chart/sankey/sankeyChart.d.ts +0 -37
  269. package/dist/data-components/data-component-configurator/data-component-configurator-types.d.ts +0 -35
  270. package/dist/data-components/data-component-configurator/data-component-configurator.d.ts +0 -17
  271. package/dist/data-components/data-component-types.d.ts +0 -10
  272. package/dist/data-components/data-component-utils.d.ts +0 -3
  273. package/dist/data-components/data-structure/data-structure-utils.d.ts +0 -15
  274. package/dist/data-components/data-structure/data-structure.d.ts +0 -43
  275. package/dist/data-components/data-structure/stories-assets.d.ts +0 -86
  276. package/dist/data-components/filter/filter-engine.d.ts +0 -14
  277. package/dist/data-components/filter/filter-types.d.ts +0 -40
  278. package/dist/data-components/filter/filter-utils.d.ts +0 -43
  279. package/dist/data-components/form/form-types.d.ts +0 -70
  280. package/dist/data-components/form/form.d.ts +0 -3
  281. package/dist/data-components/form/form.test.d.ts +0 -0
  282. package/dist/data-components/form/stories/form-advanced-cells.stories.d.ts +0 -15
  283. package/dist/data-components/form/stories/form-complex.stories.d.ts +0 -7
  284. package/dist/data-components/form/stories/form-dynamic.stories.d.ts +0 -20
  285. package/dist/data-components/form/stories/form-validation-examples.stories.d.ts +0 -7
  286. package/dist/data-components/form/stories/form.stories.d.ts +0 -17
  287. package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +0 -8
  288. package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +0 -11
  289. package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +0 -6
  290. package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +0 -2
  291. package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +0 -20
  292. package/dist/data-components/gantt/gantt-context.d.ts +0 -12
  293. package/dist/data-components/gantt/gantt-types.d.ts +0 -101
  294. package/dist/data-components/gantt/gantt-utils.d.ts +0 -60
  295. package/dist/data-components/gantt/gantt.d.ts +0 -3
  296. package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +0 -14
  297. package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +0 -17
  298. package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +0 -9
  299. package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +0 -2
  300. package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +0 -12
  301. package/dist/data-components/gantt/stories/gantt.stories.d.ts +0 -20
  302. package/dist/data-components/switcher/prop-form/prop-form-adapter.d.ts +0 -9
  303. package/dist/data-components/switcher/prop-form/prop-form-types.d.ts +0 -16
  304. package/dist/data-components/switcher/prop-form/prop-form.d.ts +0 -6
  305. package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts +0 -52
  306. package/dist/data-components/switcher/prop-schema/prop-schema-utils.d.ts +0 -14
  307. package/dist/data-components/switcher/prop-schema/prop-schema.d.ts +0 -37
  308. package/dist/data-components/switcher/switcher-types.d.ts +0 -57
  309. package/dist/data-components/switcher/switcher.d.ts +0 -12
  310. package/dist/data-components/switcher/switcher.stories.d.ts +0 -7
  311. package/dist/data-components/table-grid/aggregation/aggregation-utils.d.ts +0 -8
  312. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +0 -8
  313. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +0 -12
  314. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +0 -13
  315. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +0 -2
  316. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +0 -3
  317. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +0 -5
  318. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +0 -93
  319. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +0 -4
  320. package/dist/data-components/table-grid/ai-assistant/table-grid-ai.stories.d.ts +0 -9
  321. package/dist/data-components/table-grid/editability/table-grid-editability.stories.d.ts +0 -7
  322. package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.d.ts +0 -6
  323. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +0 -8
  324. package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.d.ts +0 -5
  325. package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.d.ts +0 -5
  326. package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +0 -6
  327. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +0 -5
  328. package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.d.ts +0 -6
  329. package/dist/data-components/table-grid/external-functionalities/import/table-grid-import.stories.d.ts +0 -6
  330. package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +0 -4
  331. package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +0 -2
  332. package/dist/data-components/table-grid/formula/evaluator.d.ts +0 -10
  333. package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +0 -7
  334. package/dist/data-components/table-grid/formula/formula-builder.d.ts +0 -2
  335. package/dist/data-components/table-grid/formula/formula.test.d.ts +0 -1
  336. package/dist/data-components/table-grid/formula/index.d.ts +0 -11
  337. package/dist/data-components/table-grid/formula/parser.d.ts +0 -23
  338. package/dist/data-components/table-grid/formula/table-grid-formula.stories.d.ts +0 -9
  339. package/dist/data-components/table-grid/formula/tokenizer.d.ts +0 -15
  340. package/dist/data-components/table-grid/formula/types.d.ts +0 -38
  341. package/dist/data-components/table-grid/grouping/grouping.d.ts +0 -14
  342. package/dist/data-components/table-grid/grouping/table-grid-grouping.stories.d.ts +0 -7
  343. package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +0 -6
  344. package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +0 -3
  345. package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +0 -9
  346. package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +0 -5
  347. package/dist/data-components/table-grid/header/table-grid-header.d.ts +0 -3
  348. package/dist/data-components/table-grid/hooks/use-table.d.ts +0 -2
  349. package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +0 -20
  350. package/dist/data-components/table-grid/pinning/table-grid-pinning.stories.d.ts +0 -17
  351. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +0 -16
  352. package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +0 -3
  353. package/dist/data-components/table-grid/pivot/pivot-table.d.ts +0 -7
  354. package/dist/data-components/table-grid/pivot/pivot-types.d.ts +0 -52
  355. package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +0 -13
  356. package/dist/data-components/table-grid/pivot/table-grid-pivot.stories.d.ts +0 -15
  357. package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +0 -10
  358. package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +0 -16
  359. package/dist/data-components/table-grid/row/table-grid-row.d.ts +0 -2
  360. package/dist/data-components/table-grid/selection/selection-types.d.ts +0 -2
  361. package/dist/data-components/table-grid/selection/selection-utils.d.ts +0 -48
  362. package/dist/data-components/table-grid/selection/table-grid-selection.stories.d.ts +0 -9
  363. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts +0 -27
  364. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +0 -2
  365. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.stories.d.ts +0 -10
  366. package/dist/data-components/table-grid/sorting/sorting.d.ts +0 -7
  367. package/dist/data-components/table-grid/sorting/table-grid-sorting-groups.stories.d.ts +0 -5
  368. package/dist/data-components/table-grid/sorting/table-grid-sorting.stories.d.ts +0 -6
  369. package/dist/data-components/table-grid/stories/table-grid-columns.stories.d.ts +0 -8
  370. package/dist/data-components/table-grid/stories/table-grid-states.stories.d.ts +0 -8
  371. package/dist/data-components/table-grid/table-context/table-context-types.d.ts +0 -16
  372. package/dist/data-components/table-grid/table-context/table-context.d.ts +0 -2
  373. package/dist/data-components/table-grid/table-grid-context.d.ts +0 -3
  374. package/dist/data-components/table-grid/table-grid-features.stories.d.ts +0 -11
  375. package/dist/data-components/table-grid/table-grid-panels.d.ts +0 -21
  376. package/dist/data-components/table-grid/table-grid-types.d.ts +0 -246
  377. package/dist/data-components/table-grid/table-grid.d.ts +0 -10
  378. package/dist/data-components/table-grid/table-grid.stories.d.ts +0 -14
  379. package/dist/data-components/table-grid/table-utils.d.ts +0 -17
  380. package/dist/data-components/ui-layer/ui-layer-types.d.ts +0 -81
  381. package/dist/data-components/ui-layer/ui-layer-utils.d.ts +0 -12
  382. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.d.ts +0 -14
  383. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +0 -11
  384. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +0 -3
  385. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.stories.d.ts +0 -9
  386. package/dist/experimental-components/dashboard-builder/builder-canvas-hooks.d.ts +0 -46
  387. package/dist/experimental-components/dashboard-builder/builder-canvas.d.ts +0 -33
  388. package/dist/experimental-components/dashboard-builder/dashboard-builder-hooks.d.ts +0 -23
  389. package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts +0 -173
  390. package/dist/experimental-components/dashboard-builder/dashboard-builder-utils.d.ts +0 -37
  391. package/dist/experimental-components/dashboard-builder/dashboard-builder.d.ts +0 -13
  392. package/dist/experimental-components/dashboard-builder/dashboard-builder.stories.d.ts +0 -8
  393. package/dist/experimental-components/dashboard-builder/widget-configurator.d.ts +0 -25
  394. package/dist/experimental-components/dashboard-builder/widget-palette.d.ts +0 -19
  395. package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +0 -11
  396. package/dist/experimental-components/filter-builder/filter-builder.d.ts +0 -11
  397. package/dist/experimental-components/filter-builder/filter-builder.stories.d.ts +0 -15
  398. package/dist/framework-components/appbar/appbar-assets.d.ts +0 -1
  399. package/dist/framework-components/appbar/appbar-types.d.ts +0 -18
  400. package/dist/framework-components/appbar/appbar.d.ts +0 -8
  401. package/dist/framework-components/appbar/appbar.stories.d.ts +0 -6
  402. package/dist/framework-components/blank-slate/blank-slate-types.d.ts +0 -31
  403. package/dist/framework-components/blank-slate/blank-slate.d.ts +0 -10
  404. package/dist/framework-components/blank-slate/blank-slate.stories.d.ts +0 -9
  405. package/dist/framework-components/breadcrumbs/breadcrumbs-types.d.ts +0 -13
  406. package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +0 -3
  407. package/dist/framework-components/breadcrumbs/breadcrumbs.stories.d.ts +0 -7
  408. package/dist/framework-components/dashboard/dashboard-context.d.ts +0 -11
  409. package/dist/framework-components/dashboard/dashboard-real-world.stories.d.ts +0 -6
  410. package/dist/framework-components/dashboard/dashboard-types.d.ts +0 -47
  411. package/dist/framework-components/dashboard/dashboard-widget-actions.d.ts +0 -0
  412. package/dist/framework-components/dashboard/dashboard-widget-types.d.ts +0 -85
  413. package/dist/framework-components/dashboard/dashboard-widget.d.ts +0 -17
  414. package/dist/framework-components/dashboard/dashboard.d.ts +0 -15
  415. package/dist/framework-components/dashboard/dashboard.stories.d.ts +0 -7
  416. package/dist/framework-components/dashboard/data-engine/aggregation-engine.d.ts +0 -10
  417. package/dist/framework-components/dashboard/data-engine/data-engine-client.d.ts +0 -46
  418. package/dist/framework-components/dashboard/data-engine/data-engine-types.d.ts +0 -118
  419. package/dist/framework-components/dashboard/data-engine/data-engine.d.ts +0 -86
  420. package/dist/framework-components/dashboard/data-engine/data-engine.test.d.ts +0 -1
  421. package/dist/framework-components/dashboard/data-engine/data-engine.worker.d.ts +0 -1
  422. package/dist/framework-components/dashboard/data-engine/field-inference.d.ts +0 -9
  423. package/dist/framework-components/dashboard/data-engine/filter-adapter.d.ts +0 -11
  424. package/dist/framework-components/dashboard/data-engine/index.d.ts +0 -7
  425. package/dist/framework-components/dashboard/data-engine/join-engine.d.ts +0 -16
  426. package/dist/framework-components/drawer/drawer-types.d.ts +0 -6
  427. package/dist/framework-components/drawer/drawer.d.ts +0 -4
  428. package/dist/framework-components/scaffold/scaffold-context.d.ts +0 -3
  429. package/dist/framework-components/scaffold/scaffold-types.d.ts +0 -17
  430. package/dist/framework-components/scaffold/scaffold.d.ts +0 -6
  431. package/dist/framework-components/scaffold/scaffold.stories.d.ts +0 -7
  432. package/dist/framework-components/scaffold/scaffold.test.d.ts +0 -0
  433. package/dist/framework-components/section/section-types.d.ts +0 -15
  434. package/dist/framework-components/section/section.d.ts +0 -8
  435. package/dist/framework-components/section/section.stories.d.ts +0 -6
  436. package/dist/framework-components/sidebar/sidebar-assets.d.ts +0 -1
  437. package/dist/framework-components/sidebar/sidebar-context.d.ts +0 -3
  438. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.d.ts +0 -5
  439. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +0 -2
  440. package/dist/framework-components/sidebar/sidebar-types.d.ts +0 -12
  441. package/dist/framework-components/sidebar/sidebar.d.ts +0 -16
  442. package/dist/framework-components/sidebar/sidebar.stories.d.ts +0 -6
  443. package/dist/framework-components/stepper/stepper-types.d.ts +0 -13
  444. package/dist/framework-components/stepper/stepper.d.ts +0 -8
  445. package/dist/framework-components/stepper/stepper.stories.d.ts +0 -7
  446. package/dist/hooks/useDynamicVirtualList.d.ts +0 -75
  447. package/dist/hooks/useEscapeClose.d.ts +0 -2
  448. package/dist/hooks/useFixedVirtualList.d.ts +0 -34
  449. package/dist/hooks/useOverlayAnimation.d.ts +0 -17
  450. package/dist/hooks/useShortcut.d.ts +0 -19
  451. package/dist/hooks/useTour/stories/useTour.stories.d.ts +0 -24
  452. package/dist/hooks/useTour/useTour-context-internal.d.ts +0 -6
  453. package/dist/hooks/useTour/useTour-context.d.ts +0 -9
  454. package/dist/hooks/useTour/useTour-types.d.ts +0 -191
  455. package/dist/hooks/useTour/useTour.d.ts +0 -2
  456. package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +0 -7
  457. package/dist/providers/ai-assistant/ai-assistant-types.d.ts +0 -77
  458. package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +0 -22
  459. package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +0 -24
  460. package/dist/providers/ai-assistant/ai-chat-panel.d.ts +0 -2
  461. package/dist/providers/shortcut/shortcut-context.d.ts +0 -6
  462. package/dist/providers/shortcut/shortcut-provider.d.ts +0 -34
  463. package/dist/providers/stories/theme-provider.stories.d.ts +0 -6
  464. package/dist/providers/theme/index.d.ts +0 -3
  465. package/dist/providers/theme/theme-provider-types.d.ts +0 -5
  466. package/dist/providers/theme/themeProvider.d.ts +0 -9
  467. package/dist/restio-ui.cjs.js +0 -173
  468. package/dist/types/global-types.d.ts +0 -46
  469. package/dist/types/storybook-types.d.ts +0 -1
  470. package/dist/utility-components/avatar/avatar-types.d.ts +0 -15
  471. package/dist/utility-components/avatar/avatar.d.ts +0 -4
  472. package/dist/utility-components/avatar/avatar.stories.d.ts +0 -8
  473. package/dist/utility-components/chip/chip-types.d.ts +0 -16
  474. package/dist/utility-components/chip/chip.d.ts +0 -3
  475. package/dist/utility-components/chip/chip.stories.d.ts +0 -10
  476. package/dist/utility-components/helper-text/helper-text-types.d.ts +0 -19
  477. package/dist/utility-components/helper-text/helper-text.d.ts +0 -2
  478. package/dist/utility-components/helper-text/helper-text.stories.d.ts +0 -10
  479. package/dist/utility-components/helper-text/helper-text.test.d.ts +0 -1
  480. package/dist/utility-components/icon/icon-assets.d.ts +0 -1
  481. package/dist/utility-components/icon/icon-types.d.ts +0 -23
  482. package/dist/utility-components/icon/icon.d.ts +0 -3
  483. package/dist/utility-components/icon/stories/icon.stories.d.ts +0 -10
  484. package/dist/utility-components/label/label-types.d.ts +0 -18
  485. package/dist/utility-components/label/label.d.ts +0 -2
  486. package/dist/utility-components/label/label.test.d.ts +0 -1
  487. package/dist/utility-components/overlay-panel/overlay-panel-footer/overlay-panel-footer-types.d.ts +0 -6
  488. package/dist/utility-components/overlay-panel/overlay-panel-footer/overlay-panel-footer.d.ts +0 -4
  489. package/dist/utility-components/overlay-panel/overlay-panel-header/overlay-panel-header-types.d.ts +0 -12
  490. package/dist/utility-components/overlay-panel/overlay-panel-header/overlay-panel-header.d.ts +0 -4
  491. package/dist/utility-components/overlay-panel/overlay-panel-types.d.ts +0 -65
  492. package/dist/utility-components/overlay-panel/overlay-panel.d.ts +0 -3
  493. package/dist/utility-components/overlay-panel/overlay-panel.stories.d.ts +0 -13
  494. package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +0 -7
  495. package/dist/utility-components/skeleton/skeleton-types.d.ts +0 -6
  496. package/dist/utility-components/skeleton/skeleton.d.ts +0 -3
  497. package/dist/utility-components/skeleton/stories/skeleton.stories.d.ts +0 -9
  498. package/dist/utility-components/stack/stack-types.d.ts +0 -10
  499. package/dist/utility-components/stack/stack.d.ts +0 -7
  500. package/dist/utility-components/stack/stack.stories.d.ts +0 -4
  501. package/dist/utility-components/toast/toast-types.d.ts +0 -8
  502. package/dist/utility-components/toast/toast.d.ts +0 -4
  503. package/dist/utility-components/toast/toast.stories.d.ts +0 -8
  504. package/dist/utils/general.d.ts +0 -8
  505. package/dist/utils/shortcut-utils.d.ts +0 -43
  506. package/dist/vitest.setup.d.ts +0 -0
@@ -1,173 +0,0 @@
1
- import { FilterGroup } from '../../data-components/filter/filter-types';
2
- import { DataStructureColumn } from '../../data-components/data-structure/data-structure';
3
- import { DataStructureUIConfig } from '../../data-components/ui-layer/ui-layer-types';
4
- /**
5
- * Current version of the dashboard config schema.
6
- * Templates with a different version are rejected to avoid incompatibilities.
7
- */
8
- export declare const DASHBOARD_CONFIG_VERSION = 1;
9
- /**
10
- * A widget type that can be placed on the dashboard canvas.
11
- */
12
- export type WidgetComponentType = "table-grid" | "chart" | "calendar" | "form" | "card-list" | "gantt";
13
- /**
14
- * Metadata for a widget type shown in the palette.
15
- */
16
- export interface WidgetTypeDescriptor {
17
- type: WidgetComponentType;
18
- label: string;
19
- icon: string;
20
- description: string;
21
- }
22
- /**
23
- * Grid position for a widget on the canvas (desktop-only for now).
24
- */
25
- export interface WidgetPosition {
26
- col: number;
27
- row: number;
28
- w: number;
29
- h: number;
30
- }
31
- /**
32
- * Configuration for a single widget on the dashboard.
33
- */
34
- export interface DashboardWidgetConfig {
35
- /** Unique widget id */
36
- id: string;
37
- /** Display title */
38
- title: string;
39
- /** Optional subtitle */
40
- subtitle?: string;
41
- /** Optional icon name (bundled SVG name) shown before the title in the section header */
42
- icon?: string;
43
- /** Which data-component to render */
44
- componentType: WidgetComponentType;
45
- /** References a data source exposed by the host application */
46
- dataSourceId: string;
47
- /** Column definitions (optional — auto-inferred if omitted) */
48
- columns?: DataStructureColumn<object>[];
49
- /** Widget-level filters (combined with global filters) */
50
- filters?: FilterGroup | null;
51
- /** Conditional styling rules */
52
- uiConfig?: DataStructureUIConfig<object> | null;
53
- /** Component-specific props (e.g. enableSorting, chart type, calendar view) */
54
- componentProps?: Record<string, unknown>;
55
- /** Grid position on the canvas */
56
- position: WidgetPosition;
57
- /** Per-widget action toggles. Falls back to global defaults if undefined. */
58
- enableExport?: boolean;
59
- enableScreenshot?: boolean;
60
- enableExpand?: boolean;
61
- enableFilter?: boolean;
62
- }
63
- /**
64
- * Global defaults for widget actions. Applied to all widgets unless
65
- * overridden per-widget.
66
- */
67
- export interface WidgetActionDefaults {
68
- /** Show the export CSV button. Default: true. */
69
- enableExport?: boolean;
70
- /** Show the screenshot button. Default: false. */
71
- enableScreenshot?: boolean;
72
- /** Show the expand/fullscreen button. Default: true. */
73
- enableExpand?: boolean;
74
- /** Show the per-widget filter button. Default: false. */
75
- enableFilter?: boolean;
76
- }
77
- /**
78
- * The full dashboard configuration — what gets saved to DB as JSONB.
79
- */
80
- export interface DashboardConfig {
81
- version: typeof DASHBOARD_CONFIG_VERSION;
82
- name: string;
83
- /** Global filters keyed by data source id */
84
- filters: Record<string, FilterGroup | null> | null;
85
- /** Widgets placed on the dashboard */
86
- widgets: DashboardWidgetConfig[];
87
- }
88
- /**
89
- * A pre-built dashboard template that users can load.
90
- * Templates are JSON files with a version check to avoid incompatibilities.
91
- */
92
- export interface DashboardTemplate {
93
- /** Must match DASHBOARD_CONFIG_VERSION to be loadable */
94
- version: number;
95
- /** Human-readable template name */
96
- name: string;
97
- /** Short description shown in the template picker */
98
- description: string;
99
- /** The dashboard config to load (without the version field, which is at template level) */
100
- config: Omit<DashboardConfig, "version">;
101
- }
102
- /**
103
- * A pre-built section: a single widget fully pre-configured
104
- * (data source, columns, title, component type, etc.) that users
105
- * can click to add to the canvas without manual configuration.
106
- *
107
- * Appears in the "Add Widget" panel below the generic widget types.
108
- */
109
- export interface PrebuiltSection {
110
- /** Must match DASHBOARD_CONFIG_VERSION to be loadable */
111
- version: number;
112
- /** Human-readable name */
113
- name: string;
114
- /** Short description shown in the add-widget panel */
115
- description: string;
116
- /** Pre-configured widget (id and position are assigned at creation time) */
117
- widget: Omit<DashboardWidgetConfig, "id" | "position">;
118
- }
119
- /**
120
- * Field format for display and aggregation.
121
- */
122
- export type FieldFormat = "text" | "number" | "currency" | "percentage" | "date" | "datetime" | "boolean";
123
- /**
124
- * Describes a single field in a data source.
125
- */
126
- export interface DataSourceField {
127
- id: string;
128
- name: string;
129
- format: FieldFormat;
130
- }
131
- /**
132
- * A data source exposed by the host application.
133
- * `data` is sample/preview data used in the builder.
134
- */
135
- export interface DataSourceDefinition {
136
- id: string;
137
- name: string;
138
- fields: DataSourceField[];
139
- data: object[];
140
- }
141
- /**
142
- * Registry of all available data sources, keyed by id.
143
- */
144
- export type DataSourceRegistry = Record<string, DataSourceDefinition>;
145
- /**
146
- * Props for the DashboardBuilder component.
147
- */
148
- export interface DashboardBuilderProps {
149
- /** Available data sources (provided by the host application) */
150
- dataSources: DataSourceRegistry;
151
- /** Initial config to edit (undefined = start from scratch) */
152
- initialConfig?: DashboardConfig;
153
- /** Pre-built templates users can load. Only templates with version === DASHBOARD_CONFIG_VERSION are shown. */
154
- templates?: DashboardTemplate[];
155
- /** Pre-built single-widget sections users can add to the canvas. Shown in the Add Widget panel. */
156
- prebuiltSections?: PrebuiltSection[];
157
- /** Called when the user saves the dashboard */
158
- onSave: (config: DashboardConfig) => void;
159
- /** Called on every config change (for live preview) */
160
- onChange?: (config: DashboardConfig) => void;
161
- /** Global defaults for widget action buttons (export, screenshot, expand) */
162
- widgetActionDefaults?: WidgetActionDefaults;
163
- /** Additional CSS class name */
164
- className?: string;
165
- }
166
- /**
167
- * Internal builder state managed by the useDashboardBuilder hook.
168
- */
169
- export interface DashboardBuilderState {
170
- config: DashboardConfig;
171
- selectedWidgetId: string | null;
172
- isDirty: boolean;
173
- }
@@ -1,37 +0,0 @@
1
- import { WidgetPosition, DashboardWidgetConfig, DataSourceRegistry } from './dashboard-builder-types';
2
- import { FilterField } from '../../data-components/filter/filter-types';
3
- /**
4
- * Checks whether two grid rectangles overlap.
5
- * Rectangles are defined by (col, row) top-left and (w, h) dimensions.
6
- */
7
- export declare function positionsOverlap(a: WidgetPosition, b: WidgetPosition): boolean;
8
- /**
9
- * Checks whether a position is within the grid bounds (12 cols × 30 rows).
10
- */
11
- export declare function isWithinBounds(pos: WidgetPosition): boolean;
12
- /**
13
- * Finds the first widget (by id) that overlaps with the given position.
14
- * Returns the widget id or null.
15
- */
16
- export declare function findCollision(position: WidgetPosition, widgets: {
17
- id: string;
18
- position: WidgetPosition;
19
- }[], excludeId?: string): string | null;
20
- /**
21
- * Finds the first free position on the grid for a widget of the given size.
22
- * Scans left-to-right, top-to-bottom and returns the first spot with no collision.
23
- * Falls back to appending after the last widget if the grid is full.
24
- */
25
- export declare function findFreePosition(w: number, h: number, widgets: {
26
- id: string;
27
- position: WidgetPosition;
28
- }[]): WidgetPosition;
29
- /**
30
- * Builds a per-data-source map of filterable fields, aggregated from all
31
- * widgets that share the same `dataSourceId`.
32
- *
33
- * For each widget, resolves columns (widget-defined or auto-generated from
34
- * the data source schema), maps them to FilterField via `fieldOptionsFromColumns`,
35
- * and deduplicates by `field.id` within the same data source.
36
- */
37
- export declare function buildDashboardFieldOptions(widgets: DashboardWidgetConfig[], dataSources: DataSourceRegistry): Record<string, FilterField[]>;
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DashboardBuilderProps } from './dashboard-builder-types';
3
- /**
4
- * DashboardBuilder is a visual, Notion-style dashboard configurator.
5
- *
6
- * Two modes:
7
- * - **Edit**: palette, canvas with drag/resize, configurator panel
8
- * - **View**: renders the actual Dashboard with real data components
9
- *
10
- * The builder produces a `DashboardConfig` object that can be serialized
11
- * to JSON and saved to a database.
12
- */
13
- export declare const DashboardBuilder: React.FC<DashboardBuilderProps>;
@@ -1,8 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { DashboardBuilder } from './dashboard-builder';
3
- declare const meta: Meta<typeof DashboardBuilder>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
7
- export declare const WithPrebuiltSections: Story;
8
- export declare const WithInitialConfig: Story;
@@ -1,25 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DashboardWidgetConfig, DataSourceRegistry, WidgetComponentType, PrebuiltSection } from './dashboard-builder-types';
3
- interface WidgetConfiguratorProps {
4
- readonly widget: DashboardWidgetConfig | null;
5
- readonly dataSources: DataSourceRegistry;
6
- readonly onUpdate: (patch: Partial<DashboardWidgetConfig>) => void;
7
- readonly onRemove: () => void;
8
- readonly onClose: () => void;
9
- readonly onAddWidget: (componentType: WidgetComponentType) => void;
10
- readonly prebuiltSections?: PrebuiltSection[];
11
- readonly onAddPrebuiltSection?: (section: PrebuiltSection) => void;
12
- }
13
- /**
14
- * Right-side panel to configure the selected widget.
15
- *
16
- * Uses the existing DataComponentConfigurator + PropForm system to show
17
- * component-specific props (enableSorting, chart type, calendar view, etc.)
18
- * based on the propSchemaRegistry.
19
- *
20
- * Custom fields (title, subtitle, data source) are rendered above the
21
- * dynamic configurator. The component type selector is handled by the
22
- * DataComponentConfigurator's built-in CardList.
23
- */
24
- export declare const WidgetConfigurator: React.FC<WidgetConfiguratorProps>;
25
- export {};
@@ -1,19 +0,0 @@
1
- import { default as React } from 'react';
2
- import { WidgetComponentType } from './dashboard-builder-types';
3
- interface WidgetPaletteProps {
4
- readonly onAddWidget: (componentType: WidgetComponentType, dataSourceId: string, position: {
5
- col: number;
6
- row: number;
7
- w: number;
8
- h: number;
9
- }) => void;
10
- }
11
- /**
12
- * Sidebar palette listing available widget types.
13
- *
14
- * Users drag a widget type from the palette onto the canvas to add it.
15
- * For simplicity, the first available data source is auto-selected;
16
- * the user can change it later in the configurator.
17
- */
18
- export declare const WidgetPalette: React.FC<WidgetPaletteProps>;
19
- export {};
@@ -1,11 +0,0 @@
1
- import { FilterField, FilterCondition, FilterNode, FilterGroup as FG } from '../../data-components/filter/filter-types';
2
- export type { FilterColumnType, FilterOperator, StringOperator, NumberOperator, DateOperator, BooleanOperator, FilterValue, FilterField, FilterCondition, FilterGroup, FilterNode, OperatorOption, } from '../../data-components/filter/filter-types';
3
- export { OPERATORS_BY_TYPE, STRING_OPERATORS, NUMBER_OPERATORS, DATE_OPERATORS, BOOLEAN_OPERATORS } from '../../data-components/filter/filter-types';
4
- /** @deprecated Use FilterField from data-components/filter/filter-types */
5
- export type FieldOption = FilterField;
6
- /** @deprecated Use FilterCondition from data-components/filter/filter-types */
7
- export type SingleFilter = FilterCondition;
8
- /** @deprecated Use FilterNode from data-components/filter/filter-types */
9
- export type Filter = FilterNode;
10
- /** @deprecated Use FilterGroup from data-components/filter/filter-types */
11
- export type LogicType = FG["logic"];
@@ -1,11 +0,0 @@
1
- import { default as React, Ref } from 'react';
2
- import { FilterField, FilterGroup } from '../../data-components/filter/filter-types';
3
- export interface FilterBuilderProps {
4
- readonly filters: FilterGroup;
5
- readonly onChange: (filters: FilterGroup) => void;
6
- readonly fieldOptions: FilterField[];
7
- readonly ref?: Ref<HTMLDivElement>;
8
- readonly onClose?: () => void;
9
- readonly isReadOnly?: boolean;
10
- }
11
- export declare const FilterBuilder: React.FC<FilterBuilderProps>;
@@ -1,15 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { FilterGroup, FieldOption } from './filter-builder-types';
3
- declare const FilterBuilderWrapper: ({ initialFilters, fieldOptions, onChange, }: {
4
- readonly initialFilters: FilterGroup;
5
- readonly fieldOptions: FieldOption[];
6
- readonly onChange?: (filters: FilterGroup) => void;
7
- }) => import("react").JSX.Element;
8
- declare const meta: Meta<typeof FilterBuilderWrapper>;
9
- export default meta;
10
- type Story = StoryObj<typeof meta>;
11
- export declare const WithSingleFilter: Story;
12
- export declare const WithSelectionValues: Story;
13
- export declare const WithOrLogic: Story;
14
- export declare const WithNestedGroups: Story;
15
- export declare const AllFieldTypes: Story;
@@ -1 +0,0 @@
1
- export declare const appbarAssets: import("react").JSX.Element;
@@ -1,18 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface AppBarProps {
3
- children: React.ReactNode;
4
- className?: string;
5
- }
6
- export interface AppBarTitleProps {
7
- children: React.ReactNode;
8
- className?: string;
9
- }
10
- export interface AppBarActionsProps {
11
- children: React.ReactNode;
12
- className?: string;
13
- }
14
- export interface AppBarMenuButtonProps {
15
- onClick?: () => void;
16
- className?: string;
17
- 'aria-label'?: string;
18
- }
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { AppBarProps, AppBarTitleProps, AppBarActionsProps, AppBarMenuButtonProps } from './appbar-types';
3
- export declare const AppBar: React.FC<AppBarProps> & {
4
- Title: React.FC<AppBarTitleProps>;
5
- Actions: React.FC<AppBarActionsProps>;
6
- MenuButton: React.FC<AppBarMenuButtonProps>;
7
- };
8
- export default AppBar;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { AppBar } from './appbar';
3
- declare const meta: Meta<typeof AppBar>;
4
- export default meta;
5
- type Story = StoryObj<typeof AppBar>;
6
- export declare const Default: Story;
@@ -1,31 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface BlankSlateProps {
3
- children: React.ReactNode;
4
- className?: string;
5
- }
6
- export interface BlankSlateGraphicProps {
7
- src: string;
8
- alt?: string;
9
- }
10
- export interface BlankSlateHeadingProps {
11
- children: React.ReactNode;
12
- }
13
- export interface BlankSlateDescriptionProps {
14
- children: React.ReactNode;
15
- }
16
- export interface BlankSlateActionsProps {
17
- children: React.ReactNode;
18
- }
19
- export interface BlankSlateAction {
20
- label: string;
21
- variant?: "primary" | "base";
22
- onClick: () => void;
23
- leadingVisual?: string;
24
- }
25
- export interface BlankSlatePreset {
26
- graphic: string;
27
- heading: string;
28
- description: string;
29
- primaryAction: BlankSlateAction;
30
- secondaryAction?: BlankSlateAction;
31
- }
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- import { BlankSlateProps, BlankSlateGraphicProps, BlankSlateHeadingProps, BlankSlateDescriptionProps, BlankSlateActionsProps, BlankSlatePreset } from './blank-slate-types';
3
- export declare const BlankSlate: React.FC<BlankSlateProps> & {
4
- Graphic: React.FC<BlankSlateGraphicProps>;
5
- Heading: React.FC<BlankSlateHeadingProps>;
6
- Description: React.FC<BlankSlateDescriptionProps>;
7
- Actions: React.FC<BlankSlateActionsProps>;
8
- Preset: React.FC<BlankSlatePreset>;
9
- };
10
- export default BlankSlate;
@@ -1,9 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { BlankSlate } from './blank-slate';
3
- declare const meta: Meta<typeof BlankSlate>;
4
- export default meta;
5
- type Story = StoryObj<typeof BlankSlate>;
6
- export declare const NoAccounts: Story;
7
- export declare const NoTransactions: Story;
8
- export declare const NoSearchResults: Story;
9
- export declare const PresetExample: Story;
@@ -1,13 +0,0 @@
1
- export interface BreadcrumbItem {
2
- label: string;
3
- value?: string;
4
- onClick?: () => void;
5
- }
6
- export interface BreadcrumbsProps extends React.HTMLAttributes<HTMLDivElement> {
7
- items: BreadcrumbItem[];
8
- /**
9
- * Number of items before collapsing into menu
10
- * Default is 3. If items count exceeds this, middle items collapse
11
- */
12
- collapsThreshold?: number;
13
- }
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- import { BreadcrumbsProps } from './breadcrumbs-types';
3
- export declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
@@ -1,7 +0,0 @@
1
- import { BreadcrumbsProps } from './breadcrumbs-types';
2
- import { Meta, StoryObj } from '@storybook/react-vite';
3
- declare const meta: Meta<BreadcrumbsProps>;
4
- export default meta;
5
- type Story = StoryObj<BreadcrumbsProps>;
6
- export declare const Default: Story;
7
- export declare const WithCollapse: Story;
@@ -1,11 +0,0 @@
1
- import { DashboardContextValue } from './dashboard-types';
2
- /**
3
- * Context that shares global filters from Dashboard down to every DashboardWidget.
4
- */
5
- export declare const DashboardContext: import('react').Context<DashboardContextValue | null>;
6
- /**
7
- * Hook to consume the DashboardContext.
8
- * Returns the current filters and onFilterChange callback.
9
- * Returns null when used outside a Dashboard.
10
- */
11
- export declare function useDashboard(): DashboardContextValue | null;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Dashboard } from './dashboard';
3
- declare const meta: Meta<typeof Dashboard>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const RealWorld: Story;
@@ -1,47 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ResponsiveLayout } from '../../custom-components/layout/layout-types';
3
- import { FilterField, FilterGroup } from '../../data-components/filter/filter-types';
4
- /**
5
- * Props for the Dashboard orchestrator component.
6
- *
7
- * Dashboard provides global filters to all child DashboardWidget instances
8
- * and arranges them using the responsive Layout system.
9
- *
10
- * Global filters are organised per data source: each entry in `filters` is
11
- * keyed by the data source id (e.g. "transactions", "budgets") and contains
12
- * the filter tree specific to that source. Widgets pick the entry matching
13
- * their own data source via context.
14
- */
15
- export interface DashboardProps {
16
- /**
17
- * Global filter trees keyed by data source id.
18
- * Each widget receives the entry whose key matches its data source,
19
- * then merges it with its own per-section filters.
20
- */
21
- filters: Record<string, FilterGroup | null> | null;
22
- /** Called when a data-source filter tree changes (key + new tree) */
23
- onFilterChange: (dataSourceId: string, filters: FilterGroup | null) => void;
24
- /** Responsive layout configuration (mobile / tablet / desktop breakpoints) */
25
- layout: ResponsiveLayout;
26
- /**
27
- * Field definitions for the FilterBuilder, keyed by data source id.
28
- * Each entry is shown as a separate tab/section inside the global filter
29
- * overlay. Required when `enableFilter` is true.
30
- */
31
- fieldOptions?: Record<string, FilterField[]>;
32
- /** Show a filter button that opens the FilterBuilder overlay */
33
- enableFilter?: boolean;
34
- /** DashboardWidget children */
35
- children: ReactNode;
36
- /** Additional CSS class name */
37
- className?: string;
38
- }
39
- /**
40
- * Value provided by DashboardContext to all child DashboardWidgets.
41
- */
42
- export interface DashboardContextValue {
43
- /** The global filter trees keyed by data source id */
44
- filters: Record<string, FilterGroup | null> | null;
45
- /** Update a single data-source filter tree */
46
- onFilterChange: (dataSourceId: string, filters: FilterGroup | null) => void;
47
- }
@@ -1,85 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { DataStructureColumn } from '../../data-components/data-structure/data-structure';
3
- import { DataStructureUIConfig } from '../../data-components/ui-layer/ui-layer-types';
4
- import { FilterField, FilterGroup } from '../../data-components/filter/filter-types';
5
- import { DataEngine } from './data-engine/data-engine';
6
- import { Query } from './data-engine/data-engine-types';
7
- /**
8
- * Filtered data payload passed to the DashboardWidget render prop.
9
- */
10
- export interface DashboardWidgetRenderPayload<TData> {
11
- /** Data filtered by the global dashboard filters (or by the DataEngine) */
12
- data: TData[];
13
- }
14
- /**
15
- * Props for the DashboardWidget component.
16
- *
17
- * Three modes are supported, depending on which props you provide:
18
- *
19
- * - **Passthrough mode**: provide only `data`. The data is used as-is —
20
- * the server already prepared it. Zero frontend processing.
21
- * - **Legacy mode**: provide `data` + `columns`. Global dashboard filters
22
- * are applied client-side via `applyFilter()`.
23
- * - **Engine mode**: provide `dataEngine` + `query`. The DataEngine handles
24
- * joins, aggregations, filtering, sorting, and limiting.
25
- */
26
- export interface DashboardWidgetProps<TData> {
27
- /** Unique identifier for this widget (used as Layout block key) */
28
- id: string;
29
- /** Widget title displayed in the Section header */
30
- title: string;
31
- /**
32
- * Data source identifier used to pick this widget's entry from the
33
- * dashboard's per-source global filter map. Required to receive
34
- * global filters (otherwise only the per-section filter applies).
35
- */
36
- dataSourceId?: string;
37
- /** Optional subtitle displayed below the title */
38
- subtitle?: string;
39
- /** Optional icon name (bundled SVG) shown before the title in the Section header */
40
- icon?: string;
41
- /**
42
- * Data for this widget.
43
- *
44
- * - **Passthrough**: provide `data` alone → used as-is (server-ready).
45
- * - **Legacy**: provide `data` + `columns` → global filters applied.
46
- */
47
- data?: TData[];
48
- /**
49
- * Column definitions. When provided, global dashboard filters are
50
- * applied client-side via `applyFilter()`. Omit for passthrough mode.
51
- */
52
- columns?: DataStructureColumn<TData>[];
53
- /**
54
- * DataEngine instance. When provided, the widget uses the engine
55
- * to execute the query instead of using raw data + applyFilter().
56
- */
57
- dataEngine?: DataEngine;
58
- /**
59
- * Query to execute against the DataEngine.
60
- * Only used when `dataEngine` is provided.
61
- */
62
- query?: Query;
63
- /** Optional UI config for conditional styling */
64
- uiConfig?: DataStructureUIConfig<TData>;
65
- /** Render prop receiving filtered data */
66
- children: (payload: DashboardWidgetRenderPayload<TData>) => ReactNode;
67
- /** Show the export data action button */
68
- enableExport?: boolean;
69
- /** Show the screenshot action button */
70
- enableScreenshot?: boolean;
71
- /** Show the visual expand (fullscreen) action button */
72
- enableExpand?: boolean;
73
- /** Show a per-section filter button in the widget header. */
74
- enableFilter?: boolean;
75
- /** Filter fields available for this widget's data source (required when `enableFilter` is true) */
76
- fieldOptions?: FilterField[];
77
- /** Per-section filter tree. Overriding the global filter applies on top of it. */
78
- filters?: FilterGroup | null;
79
- /** Called when the per-section filter tree changes */
80
- onFilterChange?: (filters: FilterGroup | null) => void;
81
- /** Drop the global dashboard filters for this widget entirely (e.g. snapshot data) */
82
- ignoreGlobalFilters?: boolean;
83
- /** Additional CSS class name */
84
- className?: string;
85
- }
@@ -1,17 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DashboardWidgetProps } from './dashboard-widget-types';
3
- /**
4
- * DashboardWidget is a self-contained widget that:
5
- * 1. Receives its own data (raw, pre-filtered, or engine-backed)
6
- * 2. Renders a Section with a toolbar of actions (export, screenshot, expand)
7
- * 3. Passes data to the render prop
8
- *
9
- * Three modes:
10
- * - **Passthrough**: provide only `data` → used as-is (server-ready, zero processing)
11
- * - **Legacy**: provide `data` + `columns` → global filters applied via `applyFilter()`
12
- * - **Engine**: provide `dataEngine` + `query` → DataEngine handles everything
13
- */
14
- export declare const DashboardWidget: {
15
- <TData extends object>({ title, subtitle, icon, data, columns, dataEngine, query, children, enableExport, enableScreenshot, enableExpand, enableFilter, fieldOptions, filters, onFilterChange, ignoreGlobalFilters, dataSourceId, className, }: DashboardWidgetProps<TData>): React.JSX.Element;
16
- displayName: string;
17
- };
@@ -1,15 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DashboardProps } from './dashboard-types';
3
- /**
4
- * Dashboard is the top-level orchestrator for a page of data widgets.
5
- *
6
- * It provides global filters to all child DashboardWidget instances via
7
- * context, keyed by data source id, and arranges widgets using the
8
- * responsive Layout system.
9
- *
10
- * When `enableFilter` is set, a filter button opens the FilterBuilder
11
- * overlay where the user picks a data source and edits its filter tree.
12
- * The button shows the total number of active top-level filters across
13
- * all data sources.
14
- */
15
- export declare const Dashboard: React.FC<DashboardProps>;
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Dashboard } from './dashboard';
3
- declare const meta: Meta<typeof Dashboard>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
7
- export declare const WithFilterBuilder: Story;
@@ -1,10 +0,0 @@
1
- import { Aggregation, DataEngineRow, FieldRef } from './data-engine-types';
2
- /**
3
- * Applies group-by and aggregation functions to a set of rows.
4
- *
5
- * @param rows - The input rows (already joined and filtered)
6
- * @param groupBy - Fields to group by
7
- * @param aggregations - Aggregation definitions
8
- * @returns New rows with group-by keys + aggregation results
9
- */
10
- export declare function aggregate(rows: DataEngineRow[], groupBy: FieldRef[], aggregations: Aggregation[]): DataEngineRow[];