@restio/ui 0.0.9-SNAPSHOT → 0.0.10-SNAPSHOT

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 (688) hide show
  1. package/dist/assets/svg/alert.svg +1 -0
  2. package/dist/assets/svg/arrow-down-up.svg +1 -0
  3. package/dist/assets/svg/arrow-down.svg +1 -0
  4. package/dist/assets/svg/arrow-left.svg +1 -0
  5. package/dist/assets/svg/arrow-right.svg +1 -0
  6. package/dist/assets/svg/arrow-up.svg +1 -0
  7. package/dist/assets/svg/arrow_drop_down.svg +1 -0
  8. package/dist/assets/svg/calendar.svg +1 -0
  9. package/dist/assets/svg/check.svg +1 -0
  10. package/dist/assets/svg/chevron-down.svg +1 -0
  11. package/dist/assets/svg/chevron-right.svg +1 -0
  12. package/dist/assets/svg/clipboard.svg +1 -0
  13. package/dist/assets/svg/close.svg +1 -0
  14. package/dist/assets/svg/copy.svg +1 -0
  15. package/dist/assets/svg/cursor.svg +1 -0
  16. package/dist/assets/svg/cut.svg +1 -0
  17. package/dist/assets/svg/delete.svg +1 -0
  18. package/dist/assets/svg/dock-left-arrow.svg +1 -0
  19. package/dist/assets/svg/dock-right-arrow.svg +1 -0
  20. package/dist/assets/svg/document-outline.svg +1 -0
  21. package/dist/assets/svg/download.svg +1 -0
  22. package/dist/assets/svg/drag.svg +1 -0
  23. package/dist/assets/svg/error.svg +1 -0
  24. package/dist/assets/svg/expand-right.svg +1 -0
  25. package/dist/assets/svg/expand.svg +1 -0
  26. package/dist/assets/svg/eye.svg +1 -0
  27. package/dist/assets/svg/fullscreen.svg +1 -0
  28. package/dist/assets/svg/gear.svg +1 -0
  29. package/dist/assets/svg/groups.svg +1 -0
  30. package/dist/assets/svg/help.svg +1 -0
  31. package/dist/assets/svg/info.svg +1 -0
  32. package/dist/assets/svg/logo.svg +9 -0
  33. package/dist/assets/svg/menu.svg +1 -0
  34. package/dist/assets/svg/message-bubble-question-mark.svg +1 -0
  35. package/dist/assets/svg/pencil.svg +1 -0
  36. package/dist/assets/svg/plus.svg +1 -0
  37. package/dist/assets/svg/restio.svg +5 -0
  38. package/dist/assets/svg/search.svg +1 -0
  39. package/dist/assets/svg/send.svg +1 -0
  40. package/dist/assets/svg/shrink-right.svg +1 -0
  41. package/dist/assets/svg/sidebar.svg +1 -0
  42. package/dist/assets/svg/terminal.svg +1 -0
  43. package/dist/assets/svg/timer.svg +1 -0
  44. package/dist/assets/svg/warning.svg +1 -0
  45. package/dist/assets/svg/zoom-minus.svg +1 -0
  46. package/dist/assets/svg/zoom-plus.svg +1 -0
  47. package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +1 -1
  48. package/dist/components/anchored-overlay/anchored-overlay.d.ts +2 -2
  49. package/dist/components/banner/banner-types.d.ts +1 -1
  50. package/dist/components/banner/banner.d.ts +2 -2
  51. package/dist/components/button/button-types.d.ts +1 -1
  52. package/dist/components/button/button.d.ts +2 -2
  53. package/dist/components/button-group/button-group.d.ts +2 -2
  54. package/dist/components/checkbox/checkbox-types.d.ts +1 -1
  55. package/dist/components/checkbox/checkbox.d.ts +2 -2
  56. package/dist/components/code-block/code-block.d.ts +1 -1
  57. package/dist/components/file-upload/file-upload-types.d.ts +1 -1
  58. package/dist/components/file-upload/file-upload.d.ts +2 -2
  59. package/dist/components/graph/graph.d.ts +1 -1
  60. package/dist/components/input/date/date-calendar.d.ts +2 -2
  61. package/dist/components/input/date/date-input-field.d.ts +2 -2
  62. package/dist/components/input/date/date-picker.d.ts +2 -2
  63. package/dist/components/input/date/date-range-input-field.d.ts +2 -2
  64. package/dist/components/input/date/date-range-picker.d.ts +2 -2
  65. package/dist/components/input/date/date-shortcuts.d.ts +2 -2
  66. package/dist/components/input/date/date-types.d.ts +1 -1
  67. package/dist/components/input/date/date-utils.d.ts +1 -1
  68. package/dist/components/input/input.d.ts +2 -2
  69. package/dist/components/input/number/input-number-types.d.ts +1 -1
  70. package/dist/components/input/number/input-number.d.ts +2 -2
  71. package/dist/components/input/text/input-text-types.d.ts +1 -1
  72. package/dist/components/input/text/input-text.d.ts +2 -2
  73. package/dist/components/kbd/kbd.d.ts +2 -2
  74. package/dist/components/kbd-group/kbd-group.d.ts +2 -2
  75. package/dist/components/list/list-types.d.ts +1 -1
  76. package/dist/components/list/list-utils.d.ts +4 -4
  77. package/dist/components/list/list.d.ts +1 -1
  78. package/dist/components/menu/anchored-navigation-menu.d.ts +3 -3
  79. package/dist/components/menu/menu-assets.d.ts +1 -1
  80. package/dist/components/menu/menu-types.d.ts +2 -2
  81. package/dist/components/menu/menu.d.ts +2 -2
  82. package/dist/components/otp/otp.d.ts +2 -3
  83. package/dist/components/select/select-types.d.ts +1 -1
  84. package/dist/components/select/select.d.ts +2 -2
  85. package/dist/components/tag/tag-types.d.ts +1 -1
  86. package/dist/components/tag/tag.d.ts +2 -2
  87. package/dist/components/textarea/textarea-types.d.ts +2 -2
  88. package/dist/components/textarea/textarea.d.ts +2 -2
  89. package/dist/components/toast-group/toast-group-types.d.ts +1 -1
  90. package/dist/components/toast-group/toast-group.d.ts +2 -2
  91. package/dist/components/typography/typography-types.d.ts +1 -1
  92. package/dist/components/typography/typography.d.ts +2 -2
  93. package/dist/custom-components/chat/chat-types.d.ts +1 -1
  94. package/dist/custom-components/chat/chat.d.ts +1 -1
  95. package/dist/custom-components/layout/layout.d.ts +2 -2
  96. package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +2 -8
  97. package/dist/custom-components/layout-builder/layout-builder.d.ts +2 -2
  98. package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +1 -1
  99. package/dist/custom-components/layout-builder/layout-json-editor.d.ts +2 -2
  100. package/dist/custom-components/markdown/markdown-types.d.ts +3 -3
  101. package/dist/custom-components/markdown/markdown.d.ts +2 -2
  102. package/dist/custom-components/mindmap/index.d.ts +2 -2
  103. package/dist/custom-components/mindmap/mind-tree-types.d.ts +1 -1
  104. package/dist/custom-components/mindmap/mind-tree.d.ts +1 -1
  105. package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +1 -1
  106. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +2 -2
  107. package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +1 -1
  108. package/dist/custom-components/timeline/timeline.d.ts +2 -2
  109. package/dist/custom-components/workflow/layout/workflow-edge.d.ts +1 -1
  110. package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +1 -1
  111. package/dist/custom-components/workflow/layout/workflow-layout.d.ts +2 -2
  112. package/dist/custom-components/workflow/node/workflow-node.d.ts +1 -1
  113. package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +1 -1
  114. package/dist/custom-components/workflow/panel/workflow-panel.d.ts +1 -1
  115. package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +1 -1
  116. package/dist/custom-components/workflow/utils/workflow-validation.d.ts +2 -2
  117. package/dist/custom-components/workflow/workflow-types.d.ts +3 -3
  118. package/dist/custom-components/workflow/workflow.d.ts +1 -1
  119. package/dist/data-components/calendar/calendar-types.d.ts +20 -1
  120. package/dist/data-components/calendar/calendar-types.d.ts.map +1 -1
  121. package/dist/data-components/calendar/calendar-utils.d.ts +5 -0
  122. package/dist/data-components/calendar/calendar-utils.d.ts.map +1 -1
  123. package/dist/data-components/calendar/calendar.d.ts +2 -2
  124. package/dist/data-components/calendar/calendar.d.ts.map +1 -1
  125. package/dist/data-components/cell/cell-switch.d.ts +1 -1
  126. package/dist/data-components/cell/cell-types.d.ts +2 -2
  127. package/dist/data-components/cell/cell.d.ts +1 -1
  128. package/dist/data-components/chart/chart-types.d.ts +1 -1
  129. package/dist/data-components/chart/chart.d.ts +1 -1
  130. package/dist/data-components/chart/sankey/sankeyChart.d.ts +1 -1
  131. package/dist/data-components/data-structure/data-structure-utils.d.ts +1 -1
  132. package/dist/data-components/data-structure/data-structure.d.ts +1 -1
  133. package/dist/data-components/data-structure/stories-assets.d.ts +1 -5
  134. package/dist/data-components/filter/filter-engine.d.ts +15 -0
  135. package/dist/data-components/filter/filter-engine.d.ts.map +1 -0
  136. package/dist/data-components/filter/filter-types.d.ts +41 -0
  137. package/dist/data-components/filter/filter-types.d.ts.map +1 -0
  138. package/dist/data-components/filter/filter-utils.d.ts +26 -0
  139. package/dist/data-components/filter/filter-utils.d.ts.map +1 -0
  140. package/dist/data-components/form/form-types.d.ts +2 -2
  141. package/dist/data-components/form/form.d.ts +1 -1
  142. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +1 -1
  143. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +1 -1
  144. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +1 -1
  145. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
  146. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +2 -2
  147. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +1 -1
  148. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +1 -1
  149. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +2 -2
  150. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +1 -1
  151. package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +6 -6
  152. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +1 -1
  153. package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +1 -1
  154. package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +1 -1
  155. package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +1 -1
  156. package/dist/data-components/table-grid/formula/formula-builder.d.ts +1 -1
  157. package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +1 -1
  158. package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +1 -1
  159. package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +1 -1
  160. package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +1 -1
  161. package/dist/data-components/table-grid/header/table-grid-header.d.ts +1 -1
  162. package/dist/data-components/table-grid/hooks/use-table.d.ts +1 -1
  163. package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +1 -1
  164. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +2 -2
  165. package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +1 -1
  166. package/dist/data-components/table-grid/pivot/pivot-table.d.ts +1 -1
  167. package/dist/data-components/table-grid/pivot/pivot-types.d.ts +1 -1
  168. package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +2 -2
  169. package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +1 -1
  170. package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +2 -2
  171. package/dist/data-components/table-grid/row/table-grid-row.d.ts +1 -1
  172. package/dist/data-components/table-grid/selection/selection-utils.d.ts +2 -2
  173. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts +5 -1
  174. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts.map +1 -1
  175. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +2 -2
  176. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts.map +1 -1
  177. package/dist/data-components/table-grid/sorting/sorting.d.ts +1 -1
  178. package/dist/data-components/table-grid/table-context/table-context-types.d.ts +2 -2
  179. package/dist/data-components/table-grid/table-context/table-context.d.ts +2 -2
  180. package/dist/data-components/table-grid/table-grid-context.d.ts +2 -2
  181. package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
  182. package/dist/data-components/table-grid/table-grid-types.d.ts +18 -9
  183. package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
  184. package/dist/data-components/table-grid/table-grid.d.ts +2 -2
  185. package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
  186. package/dist/data-components/table-grid/table-utils.d.ts +1 -1
  187. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +1 -1
  188. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +2 -2
  189. package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +11 -23
  190. package/dist/experimental-components/filter-builder/filter-builder-types.d.ts.map +1 -1
  191. package/dist/experimental-components/filter-builder/filter-builder.d.ts +5 -7
  192. package/dist/experimental-components/filter-builder/filter-builder.d.ts.map +1 -1
  193. package/dist/framework-components/appbar/appbar-types.d.ts +1 -1
  194. package/dist/framework-components/appbar/appbar.d.ts +2 -2
  195. package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +2 -2
  196. package/dist/framework-components/drawer/drawer-types.d.ts +2 -2
  197. package/dist/framework-components/drawer/drawer.d.ts +2 -2
  198. package/dist/framework-components/scaffold/scaffold-context.d.ts +2 -2
  199. package/dist/framework-components/scaffold/scaffold-types.d.ts +1 -1
  200. package/dist/framework-components/scaffold/scaffold.d.ts +2 -2
  201. package/dist/framework-components/sidebar/sidebar-context.d.ts +2 -2
  202. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +1 -1
  203. package/dist/framework-components/sidebar/sidebar-types.d.ts +1 -1
  204. package/dist/framework-components/sidebar/sidebar.d.ts +3 -3
  205. package/dist/hooks/useDynamicVirtualList.d.ts.map +1 -1
  206. package/dist/hooks/useFixedVirtualList.d.ts +1 -1
  207. package/dist/hooks/useShortcut.d.ts +1 -1
  208. package/dist/hooks/useTour/useTour-context-internal.d.ts +2 -2
  209. package/dist/hooks/useTour/useTour-context.d.ts +3 -3
  210. package/dist/hooks/useTour/useTour-types.d.ts +1 -1
  211. package/dist/hooks/useTour/useTour.d.ts +1 -1
  212. package/dist/hooks/useVirtualListScroll.d.ts +1 -1
  213. package/dist/index.d.ts +0 -1
  214. package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +1 -1
  215. package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +1 -1
  216. package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +1 -1
  217. package/dist/providers/ai-assistant/ai-chat-panel.d.ts +1 -1
  218. package/dist/providers/shortcut/shortcut-context.d.ts +2 -2
  219. package/dist/providers/shortcut/shortcut-provider.d.ts +1 -1
  220. package/dist/providers/theme/themeProvider.d.ts +2 -2
  221. package/dist/restio-ui.cjs.js +109 -0
  222. package/dist/restio-ui.es.js +35079 -0
  223. package/dist/ui.css +2 -0
  224. package/dist/utility-components/avatar/avatar-types.d.ts +1 -1
  225. package/dist/utility-components/avatar/avatar.d.ts +2 -2
  226. package/dist/utility-components/chip/chip-types.d.ts +2 -2
  227. package/dist/utility-components/chip/chip.d.ts +2 -2
  228. package/dist/utility-components/helper-text/helper-text-types.d.ts +1 -1
  229. package/dist/utility-components/helper-text/helper-text.d.ts +1 -1
  230. package/dist/utility-components/icon/icon-types.d.ts +1 -1
  231. package/dist/utility-components/icon/icon.d.ts +2 -2
  232. package/dist/utility-components/label/label.d.ts +1 -1
  233. package/dist/utility-components/overlay-panel/overlay-panel.d.ts +2 -2
  234. package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +1 -1
  235. package/dist/utility-components/skeleton/skeleton.d.ts +2 -2
  236. package/dist/utility-components/stack/stack.d.ts +2 -2
  237. package/dist/utility-components/toast/toast-types.d.ts +1 -1
  238. package/dist/utility-components/toast/toast.d.ts +2 -2
  239. package/dist/utils/general.d.ts +1 -1
  240. package/package.json +3 -3
  241. package/dist/components/anchored-overlay/anchored-overlay-types.js +0 -2
  242. package/dist/components/anchored-overlay/anchored-overlay-types.js.map +0 -1
  243. package/dist/components/anchored-overlay/anchored-overlay.js +0 -67
  244. package/dist/components/anchored-overlay/anchored-overlay.js.map +0 -1
  245. package/dist/components/banner/banner-types.js +0 -2
  246. package/dist/components/banner/banner-types.js.map +0 -1
  247. package/dist/components/banner/banner.js +0 -29
  248. package/dist/components/banner/banner.js.map +0 -1
  249. package/dist/components/button/button-types.js +0 -2
  250. package/dist/components/button/button-types.js.map +0 -1
  251. package/dist/components/button/button.js +0 -20
  252. package/dist/components/button/button.js.map +0 -1
  253. package/dist/components/button-group/button-group-types.js +0 -2
  254. package/dist/components/button-group/button-group-types.js.map +0 -1
  255. package/dist/components/button-group/button-group.js +0 -16
  256. package/dist/components/button-group/button-group.js.map +0 -1
  257. package/dist/components/checkbox/checkbox-types.js +0 -2
  258. package/dist/components/checkbox/checkbox-types.js.map +0 -1
  259. package/dist/components/checkbox/checkbox.js +0 -19
  260. package/dist/components/checkbox/checkbox.js.map +0 -1
  261. package/dist/components/code-block/code-block.js +0 -9
  262. package/dist/components/code-block/code-block.js.map +0 -1
  263. package/dist/components/file-upload/file-upload-types.js +0 -2
  264. package/dist/components/file-upload/file-upload-types.js.map +0 -1
  265. package/dist/components/file-upload/file-upload-utils.js +0 -10
  266. package/dist/components/file-upload/file-upload-utils.js.map +0 -1
  267. package/dist/components/file-upload/file-upload.js +0 -106
  268. package/dist/components/file-upload/file-upload.js.map +0 -1
  269. package/dist/components/graph/graph-types.js +0 -2
  270. package/dist/components/graph/graph-types.js.map +0 -1
  271. package/dist/components/graph/graph.js +0 -21
  272. package/dist/components/graph/graph.js.map +0 -1
  273. package/dist/components/input/date/date-calendar.js +0 -114
  274. package/dist/components/input/date/date-calendar.js.map +0 -1
  275. package/dist/components/input/date/date-input-field.js +0 -61
  276. package/dist/components/input/date/date-input-field.js.map +0 -1
  277. package/dist/components/input/date/date-picker.js +0 -35
  278. package/dist/components/input/date/date-picker.js.map +0 -1
  279. package/dist/components/input/date/date-range-input-field.js +0 -90
  280. package/dist/components/input/date/date-range-input-field.js.map +0 -1
  281. package/dist/components/input/date/date-range-picker.js +0 -74
  282. package/dist/components/input/date/date-range-picker.js.map +0 -1
  283. package/dist/components/input/date/date-shortcuts.js +0 -47
  284. package/dist/components/input/date/date-shortcuts.js.map +0 -1
  285. package/dist/components/input/date/date-types.js +0 -2
  286. package/dist/components/input/date/date-types.js.map +0 -1
  287. package/dist/components/input/date/date-utils.js +0 -203
  288. package/dist/components/input/date/date-utils.js.map +0 -1
  289. package/dist/components/input/input-types.js +0 -2
  290. package/dist/components/input/input-types.js.map +0 -1
  291. package/dist/components/input/input.js +0 -14
  292. package/dist/components/input/input.js.map +0 -1
  293. package/dist/components/input/number/input-number-types.js +0 -2
  294. package/dist/components/input/number/input-number-types.js.map +0 -1
  295. package/dist/components/input/number/input-number.js +0 -11
  296. package/dist/components/input/number/input-number.js.map +0 -1
  297. package/dist/components/input/text/input-text-types.js +0 -2
  298. package/dist/components/input/text/input-text-types.js.map +0 -1
  299. package/dist/components/input/text/input-text.js +0 -8
  300. package/dist/components/input/text/input-text.js.map +0 -1
  301. package/dist/components/kbd/kbd-types.js +0 -2
  302. package/dist/components/kbd/kbd-types.js.map +0 -1
  303. package/dist/components/kbd/kbd.js +0 -12
  304. package/dist/components/kbd/kbd.js.map +0 -1
  305. package/dist/components/kbd-group/kbd-group-types.js +0 -2
  306. package/dist/components/kbd-group/kbd-group-types.js.map +0 -1
  307. package/dist/components/kbd-group/kbd-group.js +0 -15
  308. package/dist/components/kbd-group/kbd-group.js.map +0 -1
  309. package/dist/components/list/list-types.js +0 -2
  310. package/dist/components/list/list-types.js.map +0 -1
  311. package/dist/components/list/list-utils.js +0 -73
  312. package/dist/components/list/list-utils.js.map +0 -1
  313. package/dist/components/list/list.js +0 -68
  314. package/dist/components/list/list.js.map +0 -1
  315. package/dist/components/menu/anchored-navigation-menu.js +0 -48
  316. package/dist/components/menu/anchored-navigation-menu.js.map +0 -1
  317. package/dist/components/menu/menu-assets.js +0 -35
  318. package/dist/components/menu/menu-assets.js.map +0 -1
  319. package/dist/components/menu/menu-types.js +0 -2
  320. package/dist/components/menu/menu-types.js.map +0 -1
  321. package/dist/components/menu/menu.js +0 -86
  322. package/dist/components/menu/menu.js.map +0 -1
  323. package/dist/components/otp/otp-types.js +0 -2
  324. package/dist/components/otp/otp-types.js.map +0 -1
  325. package/dist/components/otp/otp-utils.js +0 -22
  326. package/dist/components/otp/otp-utils.js.map +0 -1
  327. package/dist/components/otp/otp.js +0 -85
  328. package/dist/components/otp/otp.js.map +0 -1
  329. package/dist/components/select/select-types.js +0 -2
  330. package/dist/components/select/select-types.js.map +0 -1
  331. package/dist/components/select/select.js +0 -52
  332. package/dist/components/select/select.js.map +0 -1
  333. package/dist/components/tag/tag-types.js +0 -2
  334. package/dist/components/tag/tag-types.js.map +0 -1
  335. package/dist/components/tag/tag.js +0 -16
  336. package/dist/components/tag/tag.js.map +0 -1
  337. package/dist/components/textarea/textarea-types.js +0 -2
  338. package/dist/components/textarea/textarea-types.js.map +0 -1
  339. package/dist/components/textarea/textarea.js +0 -19
  340. package/dist/components/textarea/textarea.js.map +0 -1
  341. package/dist/components/toast-group/toast-group-types.js +0 -2
  342. package/dist/components/toast-group/toast-group-types.js.map +0 -1
  343. package/dist/components/toast-group/toast-group.js +0 -25
  344. package/dist/components/toast-group/toast-group.js.map +0 -1
  345. package/dist/components/typography/typography-types.js +0 -11
  346. package/dist/components/typography/typography-types.js.map +0 -1
  347. package/dist/components/typography/typography.js +0 -17
  348. package/dist/components/typography/typography.js.map +0 -1
  349. package/dist/custom-components/chat/chat-types.js +0 -2
  350. package/dist/custom-components/chat/chat-types.js.map +0 -1
  351. package/dist/custom-components/chat/chat.js +0 -14
  352. package/dist/custom-components/chat/chat.js.map +0 -1
  353. package/dist/custom-components/layout/layout-types.js +0 -2
  354. package/dist/custom-components/layout/layout-types.js.map +0 -1
  355. package/dist/custom-components/layout/layout.js +0 -46
  356. package/dist/custom-components/layout/layout.js.map +0 -1
  357. package/dist/custom-components/layout-builder/layout-builder-constants.js +0 -25
  358. package/dist/custom-components/layout-builder/layout-builder-constants.js.map +0 -1
  359. package/dist/custom-components/layout-builder/layout-builder-schema.js +0 -169
  360. package/dist/custom-components/layout-builder/layout-builder-schema.js.map +0 -1
  361. package/dist/custom-components/layout-builder/layout-builder-templates.js +0 -206
  362. package/dist/custom-components/layout-builder/layout-builder-templates.js.map +0 -1
  363. package/dist/custom-components/layout-builder/layout-builder-types.js +0 -2
  364. package/dist/custom-components/layout-builder/layout-builder-types.js.map +0 -1
  365. package/dist/custom-components/layout-builder/layout-builder-utils.js +0 -251
  366. package/dist/custom-components/layout-builder/layout-builder-utils.js.map +0 -1
  367. package/dist/custom-components/layout-builder/layout-builder-validation.js +0 -445
  368. package/dist/custom-components/layout-builder/layout-builder-validation.js.map +0 -1
  369. package/dist/custom-components/layout-builder/layout-builder.js +0 -908
  370. package/dist/custom-components/layout-builder/layout-builder.js.map +0 -1
  371. package/dist/custom-components/layout-builder/layout-json-editor-types.js +0 -2
  372. package/dist/custom-components/layout-builder/layout-json-editor-types.js.map +0 -1
  373. package/dist/custom-components/layout-builder/layout-json-editor.js +0 -103
  374. package/dist/custom-components/layout-builder/layout-json-editor.js.map +0 -1
  375. package/dist/custom-components/layout-builder/stories/hooks/useHistory.js +0 -100
  376. package/dist/custom-components/layout-builder/stories/hooks/useHistory.js.map +0 -1
  377. package/dist/custom-components/markdown/markdown-types.js +0 -2
  378. package/dist/custom-components/markdown/markdown-types.js.map +0 -1
  379. package/dist/custom-components/markdown/markdown-utils.js +0 -10
  380. package/dist/custom-components/markdown/markdown-utils.js.map +0 -1
  381. package/dist/custom-components/markdown/markdown.js +0 -39
  382. package/dist/custom-components/markdown/markdown.js.map +0 -1
  383. package/dist/custom-components/mindmap/index.js +0 -2
  384. package/dist/custom-components/mindmap/index.js.map +0 -1
  385. package/dist/custom-components/mindmap/mind-tree-types.js +0 -2
  386. package/dist/custom-components/mindmap/mind-tree-types.js.map +0 -1
  387. package/dist/custom-components/mindmap/mind-tree.js +0 -201
  388. package/dist/custom-components/mindmap/mind-tree.js.map +0 -1
  389. package/dist/custom-components/mindmap/reingold-tilford-algorithm.js +0 -277
  390. package/dist/custom-components/mindmap/reingold-tilford-algorithm.js.map +0 -1
  391. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js +0 -2
  392. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js.map +0 -1
  393. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js +0 -32
  394. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js.map +0 -1
  395. package/dist/custom-components/timeline/skeleton/timeline-skeleton.js +0 -19
  396. package/dist/custom-components/timeline/skeleton/timeline-skeleton.js.map +0 -1
  397. package/dist/custom-components/timeline/timeline-types.js +0 -2
  398. package/dist/custom-components/timeline/timeline-types.js.map +0 -1
  399. package/dist/custom-components/timeline/timeline.js +0 -64
  400. package/dist/custom-components/timeline/timeline.js.map +0 -1
  401. package/dist/custom-components/workflow/layout/workflow-edge.js +0 -31
  402. package/dist/custom-components/workflow/layout/workflow-edge.js.map +0 -1
  403. package/dist/custom-components/workflow/layout/workflow-layout-types.js +0 -2
  404. package/dist/custom-components/workflow/layout/workflow-layout-types.js.map +0 -1
  405. package/dist/custom-components/workflow/layout/workflow-layout.js +0 -284
  406. package/dist/custom-components/workflow/layout/workflow-layout.js.map +0 -1
  407. package/dist/custom-components/workflow/node/workflow-node.js +0 -22
  408. package/dist/custom-components/workflow/node/workflow-node.js.map +0 -1
  409. package/dist/custom-components/workflow/panel/workflow-panel-types.js +0 -2
  410. package/dist/custom-components/workflow/panel/workflow-panel-types.js.map +0 -1
  411. package/dist/custom-components/workflow/panel/workflow-panel.js +0 -53
  412. package/dist/custom-components/workflow/panel/workflow-panel.js.map +0 -1
  413. package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js +0 -2
  414. package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js.map +0 -1
  415. package/dist/custom-components/workflow/toolbar/workflow-toolbar.js +0 -19
  416. package/dist/custom-components/workflow/toolbar/workflow-toolbar.js.map +0 -1
  417. package/dist/custom-components/workflow/utils/workflow-validation.js +0 -257
  418. package/dist/custom-components/workflow/utils/workflow-validation.js.map +0 -1
  419. package/dist/custom-components/workflow/workflow-types.js +0 -2
  420. package/dist/custom-components/workflow/workflow-types.js.map +0 -1
  421. package/dist/custom-components/workflow/workflow.js +0 -125
  422. package/dist/custom-components/workflow/workflow.js.map +0 -1
  423. package/dist/data-components/assets/data-components-asset.js +0 -2
  424. package/dist/data-components/assets/data-components-asset.js.map +0 -1
  425. package/dist/data-components/calendar/calendar-types.js +0 -2
  426. package/dist/data-components/calendar/calendar-types.js.map +0 -1
  427. package/dist/data-components/calendar/calendar-utils.js +0 -2
  428. package/dist/data-components/calendar/calendar-utils.js.map +0 -1
  429. package/dist/data-components/calendar/calendar.js +0 -78
  430. package/dist/data-components/calendar/calendar.js.map +0 -1
  431. package/dist/data-components/cell/cell-switch.js +0 -68
  432. package/dist/data-components/cell/cell-switch.js.map +0 -1
  433. package/dist/data-components/cell/cell-types.js +0 -2
  434. package/dist/data-components/cell/cell-types.js.map +0 -1
  435. package/dist/data-components/cell/cell-utils.js +0 -60
  436. package/dist/data-components/cell/cell-utils.js.map +0 -1
  437. package/dist/data-components/cell/cell.js +0 -63
  438. package/dist/data-components/cell/cell.js.map +0 -1
  439. package/dist/data-components/chart/chart-types.js +0 -2
  440. package/dist/data-components/chart/chart-types.js.map +0 -1
  441. package/dist/data-components/chart/chart.js +0 -121
  442. package/dist/data-components/chart/chart.js.map +0 -1
  443. package/dist/data-components/chart/sankey/sankeyChart.js +0 -111
  444. package/dist/data-components/chart/sankey/sankeyChart.js.map +0 -1
  445. package/dist/data-components/data-structure/data-structure-utils.js +0 -28
  446. package/dist/data-components/data-structure/data-structure-utils.js.map +0 -1
  447. package/dist/data-components/data-structure/data-structure.js +0 -2
  448. package/dist/data-components/data-structure/data-structure.js.map +0 -1
  449. package/dist/data-components/data-structure/stories-assets.js +0 -199
  450. package/dist/data-components/data-structure/stories-assets.js.map +0 -1
  451. package/dist/data-components/form/form-types.js +0 -2
  452. package/dist/data-components/form/form-types.js.map +0 -1
  453. package/dist/data-components/form/form.js +0 -124
  454. package/dist/data-components/form/form.js.map +0 -1
  455. package/dist/data-components/table-grid/aggregation/aggregation-utils.js +0 -31
  456. package/dist/data-components/table-grid/aggregation/aggregation-utils.js.map +0 -1
  457. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js +0 -264
  458. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js.map +0 -1
  459. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js +0 -306
  460. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js.map +0 -1
  461. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js +0 -2
  462. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js.map +0 -1
  463. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js +0 -33
  464. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js.map +0 -1
  465. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js +0 -59
  466. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js.map +0 -1
  467. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js +0 -167
  468. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js.map +0 -1
  469. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js +0 -2
  470. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js.map +0 -1
  471. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js +0 -157
  472. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js.map +0 -1
  473. package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js +0 -27
  474. package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js.map +0 -1
  475. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js +0 -21
  476. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js.map +0 -1
  477. package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js +0 -21
  478. package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js.map +0 -1
  479. package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js +0 -12
  480. package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js.map +0 -1
  481. package/dist/data-components/table-grid/external-functionalities/import/csv/index.js +0 -7
  482. package/dist/data-components/table-grid/external-functionalities/import/csv/index.js.map +0 -1
  483. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js +0 -15
  484. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js.map +0 -1
  485. package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js +0 -50
  486. package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js.map +0 -1
  487. package/dist/data-components/table-grid/footer/table-grid-footer-types.js +0 -2
  488. package/dist/data-components/table-grid/footer/table-grid-footer-types.js.map +0 -1
  489. package/dist/data-components/table-grid/footer/table-grid-footer.js +0 -47
  490. package/dist/data-components/table-grid/footer/table-grid-footer.js.map +0 -1
  491. package/dist/data-components/table-grid/formula/evaluator.js +0 -91
  492. package/dist/data-components/table-grid/formula/evaluator.js.map +0 -1
  493. package/dist/data-components/table-grid/formula/formula-builder-types.js +0 -2
  494. package/dist/data-components/table-grid/formula/formula-builder-types.js.map +0 -1
  495. package/dist/data-components/table-grid/formula/formula-builder.js +0 -47
  496. package/dist/data-components/table-grid/formula/formula-builder.js.map +0 -1
  497. package/dist/data-components/table-grid/formula/formula.test.js +0 -50
  498. package/dist/data-components/table-grid/formula/formula.test.js.map +0 -1
  499. package/dist/data-components/table-grid/formula/index.js +0 -40
  500. package/dist/data-components/table-grid/formula/index.js.map +0 -1
  501. package/dist/data-components/table-grid/formula/parser.js +0 -179
  502. package/dist/data-components/table-grid/formula/parser.js.map +0 -1
  503. package/dist/data-components/table-grid/formula/tokenizer.js +0 -140
  504. package/dist/data-components/table-grid/formula/tokenizer.js.map +0 -1
  505. package/dist/data-components/table-grid/formula/types.js +0 -2
  506. package/dist/data-components/table-grid/formula/types.js.map +0 -1
  507. package/dist/data-components/table-grid/header/grouping/group-panel-types.js +0 -2
  508. package/dist/data-components/table-grid/header/grouping/group-panel-types.js.map +0 -1
  509. package/dist/data-components/table-grid/header/grouping/group-panel.js +0 -91
  510. package/dist/data-components/table-grid/header/grouping/group-panel.js.map +0 -1
  511. package/dist/data-components/table-grid/header/table-grid-column-menu.js +0 -84
  512. package/dist/data-components/table-grid/header/table-grid-column-menu.js.map +0 -1
  513. package/dist/data-components/table-grid/header/table-grid-header-types.js +0 -2
  514. package/dist/data-components/table-grid/header/table-grid-header-types.js.map +0 -1
  515. package/dist/data-components/table-grid/header/table-grid-header.js +0 -148
  516. package/dist/data-components/table-grid/header/table-grid-header.js.map +0 -1
  517. package/dist/data-components/table-grid/hooks/use-table.js +0 -18
  518. package/dist/data-components/table-grid/hooks/use-table.js.map +0 -1
  519. package/dist/data-components/table-grid/pinning/pinning-utils.js +0 -70
  520. package/dist/data-components/table-grid/pinning/pinning-utils.js.map +0 -1
  521. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js +0 -2
  522. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js.map +0 -1
  523. package/dist/data-components/table-grid/pivot/pivot-config-panel.js +0 -89
  524. package/dist/data-components/table-grid/pivot/pivot-config-panel.js.map +0 -1
  525. package/dist/data-components/table-grid/pivot/pivot-table.js +0 -26
  526. package/dist/data-components/table-grid/pivot/pivot-table.js.map +0 -1
  527. package/dist/data-components/table-grid/pivot/pivot-types.js +0 -2
  528. package/dist/data-components/table-grid/pivot/pivot-types.js.map +0 -1
  529. package/dist/data-components/table-grid/pivot/pivot-utils.js +0 -150
  530. package/dist/data-components/table-grid/pivot/pivot-utils.js.map +0 -1
  531. package/dist/data-components/table-grid/row/table-grid-row-types.js +0 -2
  532. package/dist/data-components/table-grid/row/table-grid-row-types.js.map +0 -1
  533. package/dist/data-components/table-grid/row/table-grid-row-utils.js +0 -35
  534. package/dist/data-components/table-grid/row/table-grid-row-utils.js.map +0 -1
  535. package/dist/data-components/table-grid/row/table-grid-row.js +0 -68
  536. package/dist/data-components/table-grid/row/table-grid-row.js.map +0 -1
  537. package/dist/data-components/table-grid/selection/selection-types.js +0 -2
  538. package/dist/data-components/table-grid/selection/selection-types.js.map +0 -1
  539. package/dist/data-components/table-grid/selection/selection-utils.js +0 -136
  540. package/dist/data-components/table-grid/selection/selection-utils.js.map +0 -1
  541. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js +0 -2
  542. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js.map +0 -1
  543. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js +0 -7
  544. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js.map +0 -1
  545. package/dist/data-components/table-grid/sorting/sorting.js +0 -45
  546. package/dist/data-components/table-grid/sorting/sorting.js.map +0 -1
  547. package/dist/data-components/table-grid/table-context/table-context-types.js +0 -2
  548. package/dist/data-components/table-grid/table-context/table-context-types.js.map +0 -1
  549. package/dist/data-components/table-grid/table-context/table-context.js +0 -4
  550. package/dist/data-components/table-grid/table-context/table-context.js.map +0 -1
  551. package/dist/data-components/table-grid/table-grid-context.js +0 -258
  552. package/dist/data-components/table-grid/table-grid-context.js.map +0 -1
  553. package/dist/data-components/table-grid/table-grid-types.js +0 -2
  554. package/dist/data-components/table-grid/table-grid-types.js.map +0 -1
  555. package/dist/data-components/table-grid/table-grid.js +0 -144
  556. package/dist/data-components/table-grid/table-grid.js.map +0 -1
  557. package/dist/data-components/table-grid/table-utils.js +0 -116
  558. package/dist/data-components/table-grid/table-utils.js.map +0 -1
  559. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js +0 -2
  560. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js.map +0 -1
  561. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js +0 -61
  562. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js.map +0 -1
  563. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js +0 -23
  564. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js.map +0 -1
  565. package/dist/experimental-components/filter-builder/filter-builder-types.js +0 -2
  566. package/dist/experimental-components/filter-builder/filter-builder-types.js.map +0 -1
  567. package/dist/experimental-components/filter-builder/filter-builder.js +0 -139
  568. package/dist/experimental-components/filter-builder/filter-builder.js.map +0 -1
  569. package/dist/framework-components/appbar/appbar-assets.js +0 -5
  570. package/dist/framework-components/appbar/appbar-assets.js.map +0 -1
  571. package/dist/framework-components/appbar/appbar-types.js +0 -2
  572. package/dist/framework-components/appbar/appbar-types.js.map +0 -1
  573. package/dist/framework-components/appbar/appbar.js +0 -36
  574. package/dist/framework-components/appbar/appbar.js.map +0 -1
  575. package/dist/framework-components/breadcrumbs/breadcrumbs-types.js +0 -2
  576. package/dist/framework-components/breadcrumbs/breadcrumbs-types.js.map +0 -1
  577. package/dist/framework-components/breadcrumbs/breadcrumbs.js +0 -31
  578. package/dist/framework-components/breadcrumbs/breadcrumbs.js.map +0 -1
  579. package/dist/framework-components/drawer/drawer-types.js +0 -2
  580. package/dist/framework-components/drawer/drawer-types.js.map +0 -1
  581. package/dist/framework-components/drawer/drawer.js +0 -10
  582. package/dist/framework-components/drawer/drawer.js.map +0 -1
  583. package/dist/framework-components/scaffold/scaffold-context.js +0 -10
  584. package/dist/framework-components/scaffold/scaffold-context.js.map +0 -1
  585. package/dist/framework-components/scaffold/scaffold-types.js +0 -2
  586. package/dist/framework-components/scaffold/scaffold-types.js.map +0 -1
  587. package/dist/framework-components/scaffold/scaffold.js +0 -76
  588. package/dist/framework-components/scaffold/scaffold.js.map +0 -1
  589. package/dist/framework-components/sidebar/sidebar-assets.js +0 -4
  590. package/dist/framework-components/sidebar/sidebar-assets.js.map +0 -1
  591. package/dist/framework-components/sidebar/sidebar-context.js +0 -9
  592. package/dist/framework-components/sidebar/sidebar-context.js.map +0 -1
  593. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js +0 -2
  594. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js.map +0 -1
  595. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js +0 -12
  596. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js.map +0 -1
  597. package/dist/framework-components/sidebar/sidebar-types.js +0 -2
  598. package/dist/framework-components/sidebar/sidebar-types.js.map +0 -1
  599. package/dist/framework-components/sidebar/sidebar.js +0 -42
  600. package/dist/framework-components/sidebar/sidebar.js.map +0 -1
  601. package/dist/hooks/useDynamicVirtualList.js +0 -208
  602. package/dist/hooks/useDynamicVirtualList.js.map +0 -1
  603. package/dist/hooks/useFixedVirtualList.js +0 -64
  604. package/dist/hooks/useFixedVirtualList.js.map +0 -1
  605. package/dist/hooks/useShortcut.js +0 -86
  606. package/dist/hooks/useShortcut.js.map +0 -1
  607. package/dist/hooks/useTour/useTour-context-internal.js +0 -7
  608. package/dist/hooks/useTour/useTour-context-internal.js.map +0 -1
  609. package/dist/hooks/useTour/useTour-context.js +0 -54
  610. package/dist/hooks/useTour/useTour-context.js.map +0 -1
  611. package/dist/hooks/useTour/useTour-types.js +0 -2
  612. package/dist/hooks/useTour/useTour-types.js.map +0 -1
  613. package/dist/hooks/useTour/useTour.js +0 -408
  614. package/dist/hooks/useTour/useTour.js.map +0 -1
  615. package/dist/hooks/useVirtualListScroll.js +0 -79
  616. package/dist/hooks/useVirtualListScroll.js.map +0 -1
  617. package/dist/index.js +0 -63
  618. package/dist/index.js.map +0 -1
  619. package/dist/providers/ai-assistant/ai-assistant-prompts.js +0 -98
  620. package/dist/providers/ai-assistant/ai-assistant-prompts.js.map +0 -1
  621. package/dist/providers/ai-assistant/ai-assistant-types.js +0 -5
  622. package/dist/providers/ai-assistant/ai-assistant-types.js.map +0 -1
  623. package/dist/providers/ai-assistant/ai-assistant-validator.js +0 -74
  624. package/dist/providers/ai-assistant/ai-assistant-validator.js.map +0 -1
  625. package/dist/providers/ai-assistant/ai-chat-panel-types.js +0 -2
  626. package/dist/providers/ai-assistant/ai-chat-panel-types.js.map +0 -1
  627. package/dist/providers/ai-assistant/ai-chat-panel.js +0 -111
  628. package/dist/providers/ai-assistant/ai-chat-panel.js.map +0 -1
  629. package/dist/providers/shortcut/shortcut-context.js +0 -7
  630. package/dist/providers/shortcut/shortcut-context.js.map +0 -1
  631. package/dist/providers/shortcut/shortcut-provider.js +0 -267
  632. package/dist/providers/shortcut/shortcut-provider.js.map +0 -1
  633. package/dist/providers/theme/index.js +0 -2
  634. package/dist/providers/theme/index.js.map +0 -1
  635. package/dist/providers/theme/theme-provider-types.js +0 -2
  636. package/dist/providers/theme/theme-provider-types.js.map +0 -1
  637. package/dist/providers/theme/themeProvider.js +0 -17
  638. package/dist/providers/theme/themeProvider.js.map +0 -1
  639. package/dist/test/vitest.utils.js +0 -2
  640. package/dist/test/vitest.utils.js.map +0 -1
  641. package/dist/types/global-types.js +0 -10
  642. package/dist/types/global-types.js.map +0 -1
  643. package/dist/types/storybook-types.js +0 -2
  644. package/dist/types/storybook-types.js.map +0 -1
  645. package/dist/utility-components/avatar/avatar-types.js +0 -2
  646. package/dist/utility-components/avatar/avatar-types.js.map +0 -1
  647. package/dist/utility-components/avatar/avatar.js +0 -10
  648. package/dist/utility-components/avatar/avatar.js.map +0 -1
  649. package/dist/utility-components/chip/chip-types.js +0 -2
  650. package/dist/utility-components/chip/chip-types.js.map +0 -1
  651. package/dist/utility-components/chip/chip.js +0 -11
  652. package/dist/utility-components/chip/chip.js.map +0 -1
  653. package/dist/utility-components/helper-text/helper-text-types.js +0 -2
  654. package/dist/utility-components/helper-text/helper-text-types.js.map +0 -1
  655. package/dist/utility-components/helper-text/helper-text.js +0 -12
  656. package/dist/utility-components/helper-text/helper-text.js.map +0 -1
  657. package/dist/utility-components/icon/icon-assets.js +0 -95
  658. package/dist/utility-components/icon/icon-assets.js.map +0 -1
  659. package/dist/utility-components/icon/icon-types.js +0 -2
  660. package/dist/utility-components/icon/icon-types.js.map +0 -1
  661. package/dist/utility-components/icon/icon.js +0 -28
  662. package/dist/utility-components/icon/icon.js.map +0 -1
  663. package/dist/utility-components/label/label-types.js +0 -2
  664. package/dist/utility-components/label/label-types.js.map +0 -1
  665. package/dist/utility-components/label/label.js +0 -10
  666. package/dist/utility-components/label/label.js.map +0 -1
  667. package/dist/utility-components/overlay-panel/overlay-panel-types.js +0 -2
  668. package/dist/utility-components/overlay-panel/overlay-panel-types.js.map +0 -1
  669. package/dist/utility-components/overlay-panel/overlay-panel.js +0 -98
  670. package/dist/utility-components/overlay-panel/overlay-panel.js.map +0 -1
  671. package/dist/utility-components/overlay-panel/use-focus-trap.js +0 -61
  672. package/dist/utility-components/overlay-panel/use-focus-trap.js.map +0 -1
  673. package/dist/utility-components/skeleton/skeleton-types.js +0 -2
  674. package/dist/utility-components/skeleton/skeleton-types.js.map +0 -1
  675. package/dist/utility-components/skeleton/skeleton.js +0 -14
  676. package/dist/utility-components/skeleton/skeleton.js.map +0 -1
  677. package/dist/utility-components/stack/stack-types.js +0 -2
  678. package/dist/utility-components/stack/stack-types.js.map +0 -1
  679. package/dist/utility-components/stack/stack.js +0 -12
  680. package/dist/utility-components/stack/stack.js.map +0 -1
  681. package/dist/utility-components/toast/toast-types.js +0 -2
  682. package/dist/utility-components/toast/toast-types.js.map +0 -1
  683. package/dist/utility-components/toast/toast.js +0 -21
  684. package/dist/utility-components/toast/toast.js.map +0 -1
  685. package/dist/utils/general.js +0 -27
  686. package/dist/utils/general.js.map +0 -1
  687. package/dist/utils/shortcut-utils.js +0 -164
  688. package/dist/utils/shortcut-utils.js.map +0 -1
@@ -1,60 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Determines if a cell should be editable based on column and cell-level settings
4
- * @param isEditable - Cell-level editable override
5
- * @param columnEditable - Column-level editable setting
6
- * @returns Whether the cell can be edited
7
- */
8
- export function canEditCell(isEditable, columnEditable) {
9
- return isEditable ?? columnEditable ?? false;
10
- }
11
- /**
12
- * Determines if a cell should always be in edit mode
13
- * @param editMode - The edit mode setting
14
- * @param canEdit - Whether the cell is editable
15
- * @returns Whether the cell should always be in edit mode
16
- */
17
- export function shouldAlwaysEdit(editMode, canEdit) {
18
- return editMode === "always" && canEdit;
19
- }
20
- import { Checkbox } from "../../components/checkbox/checkbox";
21
- import Typography from "../../components/typography/typography";
22
- /**
23
- * Renders the display view of a cell value
24
- * @param value - Value to display
25
- * @returns Rendered display element
26
- */
27
- export function renderDisplay(value) {
28
- if (value instanceof Date) {
29
- return _jsx(Typography, { variant: "body", children: value.toLocaleDateString() });
30
- }
31
- if (Array.isArray(value)) {
32
- return _jsx(Typography, { variant: "body", children: value.join(", ") });
33
- }
34
- if (typeof value === "boolean") {
35
- return _jsx(Checkbox, { checked: value, disabled: true });
36
- }
37
- if (typeof value === "number" && value < 0) {
38
- return (_jsx(Typography, { variant: "body", color: "var(--rst-fontColor-danger)", children: String(value) }));
39
- }
40
- return _jsx(Typography, { variant: "body", children: String(value ?? "") });
41
- }
42
- /**
43
- * Creates a keyboard event handler for cell editing
44
- * @param onCommit - Callback to commit changes
45
- * @param onCancel - Callback to cancel editing
46
- * @returns Keyboard event handler
47
- */
48
- export function createKeyDownHandler(onCommit, onCancel) {
49
- return (e) => {
50
- if (e.key === "Enter") {
51
- e.preventDefault();
52
- onCommit();
53
- }
54
- else if (e.key === "Escape") {
55
- e.preventDefault();
56
- onCancel();
57
- }
58
- };
59
- }
60
- //# sourceMappingURL=cell-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cell-utils.js","sourceRoot":"","sources":["../../../src/data-components/cell/cell-utils.tsx"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,UAA+B,EAAE,cAAmC;IAC9F,OAAO,UAAU,IAAI,cAAc,IAAI,KAAK,CAAC;AAC/C,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAsD,EAAE,OAAgB;IACvG,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,CAAC;AAC1C,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,UAAU,MAAM,wCAAwC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAS,KAAa;IACjD,IAAI,KAAK,YAAY,IAAI,EAAE,C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
- import { canEditCell, shouldAlwaysEdit as checkAlwaysEdit, renderDisplay, createKeyDownHandler } from "./cell-utils";
4
- import { renderCell } from "./cell-switch";
5
- import { Label } from "../../utility-components/label/label";
6
- import { HelperText } from "../../utility-components/helper-text/helper-text";
7
- export const Cell = ({ value, column, rowData, editMode = "doubleClick", isEditable, error, disabled = false, showLabel = true, showHelperText = true, onValueChange, onEditStart, onEditEnd, }) => {
8
- const canEdit = canEditCell(isEditable, column.enableEditing);
9
- const alwaysEdit = checkAlwaysEdit(editMode, canEdit);
10
- const isNonEditable = !canEdit || editMode === "never";
11
- const [draft, setDraft] = useState(value);
12
- const [isEditing, setIsEditing] = useState(alwaysEdit);
13
- const columnId = column.id || String(column.accessorKey);
14
- const displayLabel = column.header;
15
- /** Sync draft with value changes */
16
- useEffect(() => {
17
- setDraft(value);
18
- }, [value]);
19
- /** Start editing the cell */
20
- const startEditing = useCallback(() => {
21
- if (!canEdit || disabled)
22
- return;
23
- setIsEditing(true);
24
- onEditStart?.(rowData, column);
25
- }, [canEdit, disabled, onEditStart, rowData, column]);
26
- /** Commit the current draft value */
27
- const commit = useCallback(() => {
28
- if (draft !== value && onValueChange) {
29
- onValueChange(draft, rowData, column);
30
- }
31
- if (!alwaysEdit) {
32
- setIsEditing(false);
33
- onEditEnd?.(rowData, column);
34
- }
35
- }, [draft, value, column, rowData, onValueChange, alwaysEdit, onEditEnd]);
36
- /** Callback when cancel editing */
37
- const cancel = useCallback(() => {
38
- setDraft(value);
39
- if (!alwaysEdit) {
40
- setIsEditing(false);
41
- onEditEnd?.(rowData, column);
42
- }
43
- }, [value, alwaysEdit, onEditEnd, rowData, column]);
44
- /** Callback for immediate commit */
45
- const immediateCommit = useCallback((newValue) => {
46
- setDraft(newValue);
47
- if (onValueChange) {
48
- onValueChange(newValue, rowData, column);
49
- }
50
- }, [onValueChange, rowData, column]);
51
- const handleKeyDown = createKeyDownHandler(commit, cancel);
52
- const handleClick = editMode === "click" ? startEditing : undefined;
53
- const handleDoubleClick = editMode === "doubleClick" ? startEditing : undefined;
54
- if (isNonEditable || disabled) {
55
- return _jsx("div", { style: { opacity: disabled ? 0.5 : 1, cursor: disabled ? "not-allowed" : "default" }, children: renderDisplay(draft) });
56
- }
57
- if (alwaysEdit || isEditing) {
58
- return (_jsxs("div", { children: [showLabel && displayLabel && _jsx(Label, { label: displayLabel, id: columnId, required: column.required, disabled: disabled }), renderCell(draft, column, setDraft, commit, immediateCommit, handleKeyDown, !alwaysEdit, error, disabled), showHelperText && error && _jsx(HelperText, { helperText: error, id: columnId, disabled: disabled, state: "base" })] }));
59
- }
60
- const isEmpty = draft === undefined || draft === null || draft === "";
61
- return (_jsx("div", { onClick: disabled ? undefined : handleClick, onDoubleClick: disabled ? undefined : handleDoubleClick, style: { cursor: disabled ? "not-allowed" : "pointer", opacity: disabled ? 0.5 : 1 }, children: isEmpty ? (_jsx("span", { style: { color: "var(--rst-fontColor-disabled)", display: "block", minHeight: "1.25em" }, children: "\u2014" })) : (renderDisplay(draft)) }));
62
- };
63
- //# sourceMappingURL=cell.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cell.js","sourceRoot":"","sources":["../../../src/data-components/cell/cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,gBAAgB,IAAI,eAAe,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACrH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAG9E,MAAM,CAAC,MAAM,IAAI,GAAG,CAAgB,EAClC,KAAK,EACL,MAAM,EACN,OAAO,EACP,QAAQ,GAAG,aAAa,EACxB,UAAU,EACV,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,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KAAK,EAAE,+BAA+B,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,uBAAU,CACzG,CAAC,CAAC,CAAC,CACF,aAAa,CAAC,KAAK,CAAC,CACrB,GACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=chart-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart-types.js","sourceRoot":"","sources":["../../../src/data-components/chart/chart-types.ts"],"names":[],"mappings":""}
@@ -1,121 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { LineChart, Line, BarChart, Bar, AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, Pie, PieChart, ScatterChart, Scatter, Sankey,
3
- // Sankey,
4
- } from "recharts";
5
- import styles from "./chart.module.css";
6
- import { generateColumnsFromSchema } from "../data-structure/data-structure-utils";
7
- import { buildSankeyDataFromStages, makeSankeyLink, makeSankeyNode } from "./sankey/sankeyChart";
8
- export const Chart = ({ data, columns, type, xAxisColumn = "", yAxisColumns = [], title, subtitle, width = "100%", height = 400, colors = ["#8884d8", "#82ca9d", "#ffc658", "#ff7c7c", "#8dd1e1"], showGrid = true, showTooltip = true, showLegend = true, showXAxis = true, showYAxis = true, layout = "horizontal", sankeyConfig, }) => {
9
- // Generate columns from schema if not provided
10
- const schema = data[0] ? Object.keys(data[0]) : [];
11
- const formColumns = columns || generateColumnsFromSchema(schema);
12
- // Validation for required props (not applicable to sankey)
13
- if (type !== "sankey" && (!xAxisColumn || !yAxisColumns || yAxisColumns.length === 0)) {
14
- return (_jsx("div", { className: styles["rst-chart-container"], children: _jsx("div", { className: styles["rst-chart-error"], children: "Missing required axis configuration. Please provide xAxisColumn and yAxisColumns." }) }));
15
- }
16
- if (!data || data.length === 0) {
17
- return (_jsx("div", { className: styles["rst-chart-container"], children: _jsx("div", { className: styles["rst-chart-empty"], children: "No data to display" }) }));
18
- }
19
- // Helper function to get value from data using column definition
20
- const getValue = (row, columnKey) => {
21
- const column = formColumns.find((col) => col.id === columnKey || col.accessorKey === columnKey || String(col.accessorKey) === columnKey);
22
- if (column) {
23
- if (column.accessorFn) {
24
- return column.accessorFn(row);
25
- }
26
- if (column.accessorKey) {
27
- return row[column.accessorKey];
28
- }
29
- }
30
- return row[columnKey];
31
- };
32
- // Helper function to get column label
33
- const getColumnLabel = (columnKey) => {
34
- const column = formColumns.find((col) => col.id === columnKey || col.accessorKey === columnKey || String(col.accessorKey) === columnKey);
35
- return column?.header || String(columnKey);
36
- };
37
- // Transform data for chart consumption
38
- const transformChartData = () => {
39
- return data.map((row, index) => {
40
- const chartRow = {
41
- _originalData: row,
42
- _index: index,
43
- };
44
- // Add X-axis value
45
- const xValue = getValue(row, xAxisColumn);
46
- chartRow[String(xAxisColumn)] = xValue;
47
- // Add Y-axis values
48
- yAxisColumns.forEach((yCol) => {
49
- const yValue = getValue(row, yCol);
50
- // Convert to number for chart, fallback to 0 if not a number
51
- chartRow[String(yCol)] = typeof yValue === "number" ? yValue : typeof yValue === "string" && !isNaN(Number(yValue)) ? Number(yValue) : 0;
52
- });
53
- return chartRow;
54
- });
55
- };
56
- // For sankey: compute minimum required height based on node count per stage
57
- // and dynamic margins based on longest label text (~6.5 px/char at 12px font).
58
- let effectiveHeight = height;
59
- if (type === "sankey" && sankeyConfig && data.length > 0) {
60
- const stageCounts = sankeyConfig.stageColumns.map((col) => new Set(data.map((r) => r[col]).filter((v) => v != null && String(v).trim() !== "")).size);
61
- const maxNodesInStage = Math.max(...stageCounts);
62
- // Each node needs at least 24px height + 20px padding between nodes
63
- const minH = maxNodesInStage * (24 + 20) - 20 + 48; // -1 padding + top+bottom margin
64
- effectiveHeight = typeof height === "number" ? Math.max(height, minH) : minH;
65
- }
66
- // Render chart based on type
67
- const renderChart = () => {
68
- const commonProps = {
69
- data: transformChartData(),
70
- margin: { top: 20, right: 30, left: 20, bottom: 5 },
71
- };
72
- const xAxisProps = showXAxis
73
- ? {
74
- ...(layout !== "vertical" && { dataKey: String(xAxisColumn) }),
75
- }
76
- : {};
77
- const yAxisProps = showYAxis
78
- ? {
79
- ...(layout === "vertical" && { dataKey: String(xAxisColumn) }),
80
- }
81
- : {};
82
- switch (type) {
83
- case "line":
84
- return (_jsxs(LineChart, { ...commonProps, children: [showGrid && _jsx(CartesianGrid, { strokeDasharray: "3 3" }), showXAxis && _jsx(XAxis, { ...xAxisProps }), showYAxis && _jsx(YAxis, { ...yAxisProps }), showTooltip && _jsx(Tooltip, {}), showLegend && _jsx(Legend, {}), yAxisColumns.map((yCol, index) => (_jsx(Line, { type: "monotone", dataKey: String(yCol), stroke: colors[index % colors.length], name: getColumnLabel(yCol) }, String(yCol))))] }));
85
- case "bar":
86
- return (_jsxs(BarChart, { ...commonProps, layout: layout, children: [showGrid && _jsx(CartesianGrid, { strokeDasharray: "3 3" }), showXAxis && _jsx(XAxis, { ...xAxisProps }), showYAxis && _jsx(YAxis, { ...yAxisProps }), showTooltip && _jsx(Tooltip, {}), showLegend && _jsx(Legend, {}), yAxisColumns.map((yCol, index) => (_jsx(Bar, { dataKey: String(yCol), fill: colors[index % colors.length], name: getColumnLabel(yCol) }, String(yCol))))] }));
87
- case "area":
88
- return (_jsxs(AreaChart, { ...commonProps, children: [showGrid && _jsx(CartesianGrid, { strokeDasharray: "3 3" }), showXAxis && _jsx(XAxis, { ...xAxisProps }), showYAxis && _jsx(YAxis, { ...yAxisProps }), showTooltip && _jsx(Tooltip, {}), showLegend && _jsx(Legend, {}), yAxisColumns.map((yCol, index) => (_jsx(Area, { type: "monotone", dataKey: String(yCol), stackId: "1", stroke: colors[index % colors.length], fill: colors[index % colors.length], name: getColumnLabel(yCol) }, String(yCol))))] }));
89
- case "pie":
90
- return (_jsxs(PieChart, { ...commonProps, children: [yAxisColumns.map((yCol, index) => (_jsx(Pie, { data: transformChartData(), dataKey: String(yCol), nameKey: String(xAxisColumn), cx: "50%", cy: "50%", outerRadius: 80 + index * 30, fill: colors[index % colors.length], label: true }, String(yCol)))), showTooltip && _jsx(Tooltip, {}), showLegend && _jsx(Legend, {})] }));
91
- case "scatter":
92
- // Scatter chart implementation can be added here if needed
93
- return (_jsxs(ScatterChart, { ...commonProps, children: [showGrid && _jsx(CartesianGrid, { strokeDasharray: "3 3" }), showXAxis && _jsx(XAxis, { ...xAxisProps }), showYAxis && _jsx(YAxis, { ...yAxisProps }), showTooltip && _jsx(Tooltip, {}), showLegend && _jsx(Legend, {}), yAxisColumns.map((yCol, index) => (_jsx(Scatter, { dataKey: String(yCol), name: getColumnLabel(yCol), fill: colors[index % colors.length] }, String(yCol))))] }));
94
- case "sankey": {
95
- if (!sankeyConfig) {
96
- return (_jsxs("div", { children: ["Sankey requires a ", _jsx("code", { children: "sankeyConfig" }), " prop with ", _jsx("code", { children: "stageColumns" }), " and ", _jsx("code", { children: "valueColumn" }), "."] }));
97
- }
98
- const { nodes, links, nodeColors } = buildSankeyDataFromStages(data, sankeyConfig.stageColumns, sankeyConfig.valueColumn, colors);
99
- const numStages = sankeyConfig.stageColumns.length;
100
- const maxDepth = numStages - 1;
101
- const hasMiddleStages = maxDepth > 1;
102
- // Dynamic left/right margins: measure longest label in first and last stage
103
- const charPx = 6.5; // approximate px per char at 12px font
104
- const labelGap = 14;
105
- const leftLabels = [...new Set(data.map((r) => String(r[sankeyConfig.stageColumns[0]] ?? "")))].filter(Boolean);
106
- const rightLabels = [...new Set(data.map((r) => String(r[sankeyConfig.stageColumns[maxDepth]] ?? "")))].filter(Boolean);
107
- const leftMargin = Math.max(64, Math.max(...leftLabels.map((n) => n.length)) * charPx + labelGap);
108
- const rightMargin = Math.max(64, Math.max(...rightLabels.map((n) => n.length)) * charPx + labelGap);
109
- // Middle-stage labels go ABOVE nodes → need extra top margin
110
- const topMargin = hasMiddleStages ? 36 : 14;
111
- return (_jsx(Sankey, { data: { nodes, links }, node: makeSankeyNode(nodeColors, maxDepth), link: makeSankeyLink(nodeColors), nodePadding: 20, nodeWidth: 14, iterations: 32, margin: { top: topMargin, right: Math.ceil(rightMargin), bottom: 14, left: Math.ceil(leftMargin) } }));
112
- }
113
- default:
114
- return _jsxs("div", { children: ["Unsupported chart type: ", type] });
115
- }
116
- };
117
- const containerClasses = [styles["rst-chart-container"]].filter(Boolean).join(" ");
118
- return (_jsxs("div", { className: containerClasses, children: [title && (_jsxs("div", { className: styles["rst-chart-header"], children: [_jsx("h3", { className: styles["rst-chart-title"], children: title }), subtitle && _jsx("p", { className: styles["rst-chart-subtitle"], children: subtitle })] })), _jsx("div", { className: styles["rst-chart-content"], children: _jsx(ResponsiveContainer, { width: width, height: effectiveHeight, children: renderChart() }) })] }));
119
- };
120
- export { Chart as default };
121
- //# sourceMappingURL=chart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart.js","sourceRoot":"","sources":["../../../src/data-components/chart/chart.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,GAAG,EACH,SAAS,EACT,IAAI,EACJ,KAAK,EACL,KAAK,EACL,aAAa,EACb,OAAO,EACP,MAAM,EACN,mBAAmB,EACnB,GAAG,EACH,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,MAAM;AACN,UAAU;EACX,MAAM,UAAU,CAAC;AAElB,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEjG,MAAM,CAAC,MAAM,KAAK,GAAG,CAAuB,EAC1C,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,WAAW,GAAG,EAAiB,EAC/B,YAAY,GAAG,EAAqB,EACpC,KAAK,EACL,QAAQ,EACR,KAAK,GAAG,MAAM,EACd,MAAM,GAAG,GAAG,EACZ,MAAM,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS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CAAC,aACxC,aAAI,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,YAAG,KAAK,GAAM,EACrD,QAAQ,IAAI,YAAG,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,YAAG,QAAQ,GAAK,IACnE,CACP,EAED,cAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,YACzC,KAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,YACvD,WAAW,EAAE,GACM,GAClB,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
@@ -1,111 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Layer, Rectangle } from "recharts";
3
- // ─── Nodo personalizzato ─────────────────────────────────────────
4
- /**
5
- * maxDepth = stageColumns.length - 1
6
- * depth=0 → label on LEFT (first stage)
7
- * depth=maxDepth → label on RIGHT (last stage)
8
- * 0 < depth < maxDepth → label ABOVE node, centered (intermediate stages)
9
- */
10
- export function makeSankeyNode(nodeColors, maxDepth) {
11
- return function SankeyNode(props) {
12
- const { x, y, width, height, index, payload } = props;
13
- const fill = nodeColors[index] ?? "#94a3b8";
14
- const depth = payload.depth ?? 0;
15
- const isFirst = depth === 0;
16
- const isLast = depth === maxDepth;
17
- const isMiddle = maxDepth > 1 && !isFirst && !isLast;
18
- const midY = y + height / 2;
19
- return (_jsxs(Layer, { children: [_jsx(Rectangle, { x: x, y: y, width: width, height: height, fill: fill, fillOpacity: 0.9, radius: 3 }), isMiddle ? (_jsxs(_Fragment, { children: [_jsx("text", { x: x + width / 2, y: y - 14, textAnchor: "middle", dominantBaseline: "auto", fontSize: 11, fontWeight: 600, fill: "#1e293b", children: payload.name }), _jsx("text", { x: x + width / 2, y: y - 3, textAnchor: "middle", dominantBaseline: "auto", fontSize: 10, fill: "#64748b", children: payload.value })] })) : (_jsxs(_Fragment, { children: [_jsx("text", { x: isFirst ? x - 12 : x + width + 12, y: midY - (height > 24 ? 7 : 0), textAnchor: isFirst ? "end" : "start", dominantBaseline: "middle", fontSize: 12, fontWeight: 600, fill: "#1e293b", children: payload.name }), height > 20 && (_jsx("text", { x: isFirst ? x - 12 : x + width + 12, y: midY + 9, textAnchor: isFirst ? "end" : "start", dominantBaseline: "middle", fontSize: 11, fill: "#64748b", children: payload.value }))] }))] }, `sn-${index}`));
20
- };
21
- }
22
- // ─── Link come ribbon ─────────────────────────────────────────────
23
- /**
24
- * Draws each link as a filled bezier ribbon (band) instead of a stroke.
25
- * sourceY / targetY are the CENTER of the link; linkWidth is the full thickness.
26
- */
27
- export function makeSankeyLink(nodeColors) {
28
- return function SankeyLink(props) {
29
- const { sourceX, targetX, sourceY, targetY, sourceControlX, targetControlX, linkWidth, payload } = props;
30
- if (!payload)
31
- return _jsx("g", {});
32
- const targetIndex = typeof payload.target === "number" ? payload.target : payload.target.index;
33
- const fill = nodeColors[targetIndex] ?? "#94a3b8";
34
- const lw = Math.max(1, linkWidth || 0);
35
- const half = lw / 2;
36
- // Closed bezier band: top edge → right side → bottom edge (reversed) → close
37
- const path = [
38
- `M${sourceX},${sourceY - half}`,
39
- `C${sourceControlX},${sourceY - half} ${targetControlX},${targetY - half} ${targetX},${targetY - half}`,
40
- `L${targetX},${targetY + half}`,
41
- `C${targetControlX},${targetY + half} ${sourceControlX},${sourceY + half} ${sourceX},${sourceY + half}`,
42
- "Z",
43
- ].join(" ");
44
- return _jsx("path", { d: path, fill: fill, fillOpacity: 0.3, stroke: fill, strokeOpacity: 0.15, strokeWidth: 0.5 });
45
- };
46
- }
47
- // ─── Genera dati Sankey da stage columns ─────────────────────────
48
- /**
49
- * Transforms flat tabular data into Sankey nodes + links.
50
- *
51
- * Algorithm:
52
- * 1. Scan all rows to discover unique node names per stage (ordered).
53
- * 2. Assign node indices stage by stage so recharts computes correct depth.
54
- * 3. For each row, build the sequence of non-null stage values and create
55
- * weighted links between consecutive pairs (skip logic handled via the
56
- * non-null filter: jumps across empty stages create direct links).
57
- * 4. Aggregate duplicate links by summing values.
58
- */
59
- export function buildSankeyDataFromStages(data, stageColumns, valueColumn, colors) {
60
- const nodes = [];
61
- const nodeColors = [];
62
- // key: `${stageIdx}:${value}` → node index
63
- const nodeMap = new Map();
64
- // Step 1: discover all unique node names per stage in insertion order
65
- const stageNodeNames = stageColumns.map(() => new Map());
66
- for (const row of data) {
67
- stageColumns.forEach((col, si) => {
68
- const val = row[col];
69
- if (val !== null && val !== undefined && String(val).trim() !== "") {
70
- stageNodeNames[si].set(String(val), null);
71
- }
72
- });
73
- }
74
- // Step 2: register nodes stage by stage so indices are grouped by depth
75
- stageNodeNames.forEach((names, si) => {
76
- for (const name of names.keys()) {
77
- nodeMap.set(`${si}:${name}`, nodes.length);
78
- nodes.push({ name });
79
- nodeColors.push(colors[si % colors.length]);
80
- }
81
- });
82
- // Step 3: build links
83
- const linkMap = new Map();
84
- for (const row of data) {
85
- const rawValue = row[valueColumn];
86
- const value = typeof rawValue === "number" ? rawValue : Number(rawValue) || 0;
87
- // Sequence of (nodeIndex) for non-null stages
88
- const sequence = [];
89
- stageColumns.forEach((col, si) => {
90
- const val = row[col];
91
- if (val !== null && val !== undefined && String(val).trim() !== "") {
92
- sequence.push(nodeMap.get(`${si}:${String(val)}`));
93
- }
94
- });
95
- // Link consecutive non-null nodes
96
- for (let i = 0; i < sequence.length - 1; i++) {
97
- const src = sequence[i];
98
- const tgt = sequence[i + 1];
99
- const key = `${src}:${tgt}`;
100
- const existing = linkMap.get(key);
101
- if (existing) {
102
- existing.value += value;
103
- }
104
- else {
105
- linkMap.set(key, { source: src, target: tgt, value });
106
- }
107
- }
108
- }
109
- return { nodes, links: Array.from(linkMap.values()), nodeColors };
110
- }
111
- //# sourceMappingURL=sankeyChart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sankeyChart.js","sourceRoot":"","sources":["../../../../src/data-components/chart/sankey/sankeyChart.tsx"],"names":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,KAAK,EAAE,CAAC,CAAC;YACxD,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC;AACpE,CAAC"}
@@ -1,28 +0,0 @@
1
- /**
2
- * Generate column definitions using a schema builder
3
- * Type-safe way to generate columns without Object.keys()
4
- */
5
- export function generateColumnsFromSchema(schema, options) {
6
- const defaultHeaderFormatter = (key) => key.charAt(0).toUpperCase() + key.slice(1).replace(/([A-Z])/g, ' $1');
7
- const headerFormatter = options?.headerFormatter || defaultHeaderFormatter;
8
- return schema.map((key) => ({
9
- id: String(key),
10
- accessorKey: key,
11
- header: headerFormatter(String(key)),
12
- }));
13
- }
14
- /**
15
- * Merge auto-generated columns with user-provided columns
16
- * User-provided columns take precedence
17
- */
18
- export function mergeColumns(schema, userColumns, options) {
19
- const autoColumns = generateColumnsFromSchema(schema, options);
20
- if (!userColumns || userColumns.length === 0) {
21
- return autoColumns;
22
- }
23
- // Create a map of user-provided columns by accessorKey for quick lookup
24
- const userColMap = new Map(userColumns.map((col) => [col.accessorKey, col]));
25
- // Return auto columns, but replace with user columns where they exist
26
- return autoColumns.map((autoCol) => userColMap.get(autoCol.accessorKey) || autoCol);
27
- }
28
- //# sourceMappingURL=data-structure-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-structure-utils.js","sourceRoot":"","sources":["../../../src/data-components/data-structure/data-structure-utils.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CACvC,MAAuB,EACvB,OAEC;IAED,MAAM,sBAAsB,GAAG,CAAC,GAAW,EAAE,EAAE,CAC7C,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACxE,MAAM,eAAe,GAAG,OAAO,EAAE,eAAe,IAAI,sBAAsB,CAAC;IAE3E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC1B,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC;QACf,WAAW,EAAE,GAAG;QAChB,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;KACN,CAAA,CAAC,CAAC;AACpC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAC1B,MAAuB,EACvB,WAA0C,EAC1C,OAEC;IAED,MAAM,WAAW,GAAG,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/D,IAAI,CAAC,WAAW,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7C,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,wEAAwE;IACxE,MAAM,UAAU,GAAG,IAAI,GAAG,CACxB,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CACjD,CAAC;IAEF,sEAAsE;IACtE,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CACjC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,OAAO,CAC/C,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data-structure.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-structure.js","sourceRoot":"","sources":["../../../src/data-components/data-structure/data-structure.ts"],"names":[],"mappings":""}