@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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=table-grid-header-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-grid-header-types.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/header/table-grid-header-types.ts"],"names":[],"mappings":""}
@@ -1,148 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /* eslint-disable no-param-reassign */
3
- import { useLayoutEffect, useRef, useState } from "react";
4
- import { useTable } from "../hooks/use-table";
5
- import { getColId } from "../table-utils";
6
- import { GroupPanel } from "./grouping/group-panel";
7
- import styles from "./table-grid-header.module.css";
8
- import tableStyles from "../table-grid.module.css";
9
- import Typography from "../../../components/typography/typography";
10
- import { Button } from "../../../components/button/button";
11
- import { Checkbox } from "../../../components/checkbox/checkbox";
12
- import { ColumnHeaderMenu } from "./table-grid-column-menu";
13
- import { hasLeftPinnedColumns } from "../pinning/pinning-utils";
14
- export function TableGridHeader({ columnOffsets, onGroupingChange }) {
15
- const { columns, visibleColumns, state, setSorting, setGrouping, setColumnOrder, options, toggleAllSelection, getAllSelectionState } = useTable();
16
- const { enableSorting, enableGrouping, stickyHeader, columnSizing = "auto", enableSelection, enableColumnReorder } = options;
17
- const [dragOverColId, setDragOverColId] = useState(null);
18
- const [contextMenuColumnId, setContextMenuColumnId] = useState(null);
19
- const theadRef = useRef(null);
20
- const groupPanelRowRef = useRef(null);
21
- // Keep the --rst-group-panel-row-height CSS variable in sync with the actual
22
- // rendered height so that sticky <th> cells can offset themselves correctly.
23
- useLayoutEffect(() => {
24
- if (!stickyHeader || !enableGrouping)
25
- return;
26
- const row = groupPanelRowRef.current;
27
- const thead = theadRef.current;
28
- if (!row || !thead)
29
- return;
30
- const update = () => {
31
- thead.style.setProperty("--rst-group-panel-row-height", `${row.offsetHeight}px`);
32
- };
33
- update();
34
- const ro = new ResizeObserver(update);
35
- ro.observe(row);
36
- return () => ro.disconnect();
37
- }, [stickyHeader, enableGrouping]);
38
- const selectionCellPinned = enableSelection && hasLeftPinnedColumns(columnOffsets);
39
- const handleHeaderClick = (columnId) => {
40
- if (enableSorting) {
41
- const currentSorting = state.sorting;
42
- const existingSort = currentSorting.find((sort) => sort.id === columnId);
43
- if (existingSort) {
44
- if (existingSort.desc) {
45
- // Remove sorting
46
- setSorting(currentSorting.filter((sort) => sort.id !== columnId));
47
- }
48
- else {
49
- // Toggle to descending
50
- setSorting([{ id: columnId, desc: true }]);
51
- }
52
- }
53
- else {
54
- // Add ascending sort
55
- setSorting([{ id: columnId, desc: false }]);
56
- }
57
- }
58
- };
59
- const handleGroupingChange = (newGrouping) => {
60
- setGrouping(newGrouping);
61
- if (onGroupingChange) {
62
- onGroupingChange(newGrouping);
63
- }
64
- };
65
- const handleDragStart = (e, columnId) => {
66
- e.dataTransfer.setData("text/plain", columnId);
67
- if (enableColumnReorder) {
68
- e.dataTransfer.setData("application/x-restio-column-reorder", columnId);
69
- e.dataTransfer.effectAllowed = "move";
70
- }
71
- };
72
- const handleColReorderDragOver = (e, columnId) => {
73
- if (!enableColumnReorder)
74
- return;
75
- if (!e.dataTransfer.types.includes("application/x-restio-column-reorder"))
76
- return;
77
- e.preventDefault();
78
- e.stopPropagation();
79
- e.dataTransfer.dropEffect = "move";
80
- setDragOverColId(columnId);
81
- };
82
- const handleColReorderDrop = (e, targetColId) => {
83
- if (!enableColumnReorder)
84
- return;
85
- e.preventDefault();
86
- e.stopPropagation();
87
- setDragOverColId(null);
88
- const sourceColId = e.dataTransfer.getData("application/x-restio-column-reorder");
89
- if (!sourceColId || sourceColId === targetColId)
90
- return;
91
- const allColIds = columns.map((col, i) => getColId(col, i));
92
- const base = state.columnOrder.length > 0 ? [...state.columnOrder] : [...allColIds];
93
- const srcIdx = base.indexOf(sourceColId);
94
- const tgtIdx = base.indexOf(targetColId);
95
- if (srcIdx === -1 || tgtIdx === -1)
96
- return;
97
- base.splice(srcIdx, 1);
98
- base.splice(tgtIdx, 0, sourceColId);
99
- setColumnOrder(base);
100
- };
101
- const handleColReorderDragEnd = () => setDragOverColId(null);
102
- const getSortIcon = (columnId) => {
103
- const existingSort = state.sorting.find((sort) => sort.id === columnId);
104
- if (!existingSort)
105
- return _jsx(Button, { variant: "invisible", leadingVisual: "arrow-down-up" });
106
- return existingSort.desc ? (_jsx(Button, { variant: "invisible", leadingVisual: "arrow-up" })) : (_jsx(Button, { variant: "invisible", leadingVisual: "arrow-down" }));
107
- };
108
- return (_jsxs("thead", { ref: theadRef, className: `${styles["rst-table-header"]} ${stickyHeader ? styles["rst-table-header-sticky"] : ""}`, children: [enableGrouping && (_jsx("tr", { ref: groupPanelRowRef, children: _jsx("td", { colSpan: visibleColumns.length + (enableSelection ? 1 : 0), style: { padding: 0, borderBottom: "none" }, children: _jsx(GroupPanel, { grouping: state.grouping, columns: columns, onGroupingChange: handleGroupingChange }) }) })), _jsxs("tr", { children: [enableSelection && (_jsx("th", { className: [
109
- styles["rst-table-header-cell"],
110
- tableStyles["rst-table-selection-cell"],
111
- selectionCellPinned ? styles["rst-table-header-cell-pinned"] : "",
112
- ]
113
- .filter(Boolean)
114
- .join(" "), style: selectionCellPinned ? { left: 0 } : undefined, children: _jsx("div", { className: styles["rst-table-header-content"], children: _jsx(Checkbox, { checked: getAllSelectionState() === "checked", indeterminate: getAllSelectionState() === "indeterminate", onChange: toggleAllSelection, "aria-label": "Select all rows" }) }) })), visibleColumns.map((column, index) => {
115
- const columnId = getColId(column, index);
116
- const offset = columnOffsets[columnId];
117
- const isLeftPinned = !!offset && offset.left !== undefined;
118
- const isRightPinned = !!offset && offset.right !== undefined;
119
- const isPinned = isLeftPinned || isRightPinned;
120
- const isGroupColumn = columnId === "__group__";
121
- const pinnedStyle = isPinned
122
- ? {
123
- left: offset.left,
124
- right: offset.right,
125
- }
126
- : {};
127
- return (_jsx("th", { className: [
128
- styles["rst-table-header-cell"],
129
- isPinned ? styles["rst-table-header-cell-pinned"] : "",
130
- isLeftPinned ? styles["rst-table-header-cell-pinned-left"] : "",
131
- isRightPinned ? styles["rst-table-header-cell-pinned-right"] : "",
132
- dragOverColId === columnId ? styles["rst-table-header-cell-drag-over"] : "",
133
- ]
134
- .filter(Boolean)
135
- .join(" "), style: {
136
- ...(columnSizing === "fixed"
137
- ? { width: column.size, minWidth: column.minSize ?? column.size, maxWidth: column.maxSize }
138
- : { minWidth: column.minSize }),
139
- ...pinnedStyle,
140
- }, onClick: () => !isGroupColumn && column.enableSorting !== false && handleHeaderClick(columnId), draggable: !isGroupColumn && (enableGrouping || enableColumnReorder), onDragStart: (e) => !isGroupColumn && handleDragStart(e, columnId), onDragOver: (e) => !isGroupColumn && handleColReorderDragOver(e, columnId), onDrop: (e) => !isGroupColumn && handleColReorderDrop(e, columnId), onDragEnd: handleColReorderDragEnd, onContextMenu: (e) => {
141
- if (isGroupColumn)
142
- return;
143
- e.preventDefault();
144
- setContextMenuColumnId(columnId);
145
- }, children: _jsx(ColumnHeaderMenu, { columnId: columnId, isOpen: contextMenuColumnId === columnId, onClose: () => setContextMenuColumnId(null), anchor: _jsxs("div", { className: styles["rst-table-header-content"], children: [_jsx(Typography, { variant: "title", children: column.header || columnId }), enableSorting && !isGroupColumn && column.enableSorting !== false && (_jsx("span", { className: styles["rst-table-sort-icon"], children: getSortIcon(columnId) }))] }) }) }, columnId));
146
- })] })] }));
147
- }
148
- //# sourceMappingURL=table-grid-header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-grid-header.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/header/table-grid-header.tsx"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,OAAc,EAAiB,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,MAAM,MAAM,gCAAgC,CAAC;AACpD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,UAAU,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,UAAU,eAAe,CAAQ,EAAE,aAAa,EAAE,gBAAgB,EAAwB;IAC9F,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,kBA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AAa,IAAI,eAAe,CAAC,CAAC,EAAE,QAAQ,CAAC,EAClE,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,aAAa,IAAI,wBAAwB,CAAC,CAAC,EAAE,QAAQ,CAAC,EAC1E,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,aAAa,IAAI,oBAAoB,CAAC,CAAC,EAAE,QAAQ,CAAC,EAClE,SAAS,EAAE,uBAAuB,EAClC,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE;gCACnB,IAAI,aAAa;oCAAE,OAAO;gCAC1B,CAAC,CAAC,cAAc,EAAE,CAAC;gCACnB,sBAAsB,CAAC,QAAQ,CAAC,CAAC;4BACnC,CAAC,YAED,KAAC,gBAAgB,IACf,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,mBAAmB,KAAK,QAAQ,EACxC,OAAO,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAC3C,MAAM,EACJ,eAAK,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC,aAChD,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,YAAE,MAAM,CAAC,MAAM,IAAI,QAAQ,GAAc,EACnE,aAAa,IAAI,CAAC,aAAa,IAAI,MAAM,CAAC,aAAa,KAAK,KAAK,IAAI,CACpE,eAAM,SAAS,EAAE,MAAM,CAAC,qBAAqB,CAAC,YAAG,WAAW,CAAC,QAAQ,CAAC,GAAQ,CAC/E,IACG,GAER,IAxCG,QAAQ,CAyCV,CACN,CAAC;oBACJ,CAAC,CAAC,IACC,IACC,CACT,CAAC;AACJ,CAAC"}
@@ -1,18 +0,0 @@
1
- import { useContext } from "react";
2
- import { TableContext } from "../table-context/table-context";
3
- /**
4
- * Custom hook to access the table context. Ensures that the hook is used within a TableProvider.
5
- * @returns
6
- */
7
- function useTableInternal() {
8
- const context = useContext(TableContext);
9
- if (context === undefined) {
10
- throw new Error('useTable must be used within a TableProvider');
11
- }
12
- return context;
13
- }
14
- // Export with proper typing
15
- export function useTable() {
16
- return useTableInternal();
17
- }
18
- //# sourceMappingURL=use-table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-table.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/hooks/use-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAG9D;;;GAGG;AACH,SAAS,gBAAgB;IACvB,MAAM,OAAO,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IACzC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,4BAA4B;AAC5B,MAAM,UAAU,QAAQ;IACtB,OAAO,gBAAgB,EAA8B,CAAC;AACxD,CAAC"}
@@ -1,70 +0,0 @@
1
- import { getColId } from "../table-utils";
2
- /** Width reserved for the selection checkbox column — must match the CSS value. */
3
- export const SELECTION_COLUMN_WIDTH = 40;
4
- /** Resolves the effective pin direction for a column (dynamic state wins over static prop). */
5
- function getEffectivePinned(col, columnPinning) {
6
- const colId = col.id ?? (col.accessorKey ? String(col.accessorKey) : "");
7
- if (colId && colId in columnPinning)
8
- return columnPinning[colId];
9
- return col.pinned ?? false;
10
- }
11
- /**
12
- * Sorts columns into [left-pinned…, center…, right-pinned…] order.
13
- * This is required so that:
14
- * - `position: sticky; left` works on elements physically at the left of the table.
15
- * - `position: sticky; right` works on elements physically at the right of the table.
16
- */
17
- export function sortColumnsByPin(columns, columnPinning) {
18
- const hasPin = Object.keys(columnPinning).length > 0 || columns.some((col) => col.pinned === "left" || col.pinned === "right");
19
- if (!hasPin)
20
- return columns;
21
- const left = [];
22
- const center = [];
23
- const right = [];
24
- columns.forEach((col) => {
25
- const pin = getEffectivePinned(col, columnPinning);
26
- if (pin === "left")
27
- left.push(col);
28
- else if (pin === "right")
29
- right.push(col);
30
- else
31
- center.push(col);
32
- });
33
- return [...left, ...center, ...right];
34
- }
35
- /**
36
- * Computes left/right sticky pixel offsets for all pinned columns.
37
- * Must receive columns already sorted by `sortColumnsByPin`.
38
- * Accounts for the optional selection checkbox column that precedes all data columns.
39
- */
40
- export function computeColumnOffsets(columns, columnPinning, enableSelection) {
41
- const offsets = {};
42
- const selectionOffset = enableSelection ? SELECTION_COLUMN_WIDTH : 0;
43
- // Left-pinned: accumulate from the start (after the selection cell)
44
- let currentLeft = selectionOffset;
45
- columns.forEach((col, index) => {
46
- if (getEffectivePinned(col, columnPinning) === "left") {
47
- offsets[getColId(col, index)] = { left: currentLeft };
48
- currentLeft += col.size ?? col.minSize ?? 150;
49
- }
50
- });
51
- // Right-pinned: accumulate from the end (right-to-left)
52
- let currentRight = 0;
53
- for (let i = columns.length - 1; i >= 0; i--) {
54
- const col = columns[i];
55
- if (getEffectivePinned(col, columnPinning) === "right") {
56
- offsets[getColId(col, i)] = { right: currentRight };
57
- currentRight += col.size ?? col.minSize ?? 150;
58
- }
59
- }
60
- return offsets;
61
- }
62
- /** Returns true if any column in the offsets map is left-pinned. */
63
- export function hasLeftPinnedColumns(offsets) {
64
- return Object.values(offsets).some((o) => o.left !== undefined);
65
- }
66
- /** Returns true if any column in the offsets map is right-pinned. */
67
- export function hasRightPinnedColumns(offsets) {
68
- return Object.values(offsets).some((o) => o.right !== undefined);
69
- }
70
- //# sourceMappingURL=pinning-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pinning-utils.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/pinning/pinning-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,mFAAmF;AACnF,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAEzC,+FAA+F;AAC/F,SAAS,kBAAkB,CACzB,GAAqB,EACrB,aAAuD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AAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;AAClE,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,qBAAqB,CAAC,OAAsB;IAC1D,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;AACnE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=pivot-config-panel-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pivot-config-panel-types.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/pivot/pivot-config-panel-types.ts"],"names":[],"mappings":""}
@@ -1,89 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import { Stack } from "../../../utility-components/stack/stack";
4
- import { Chip } from "../../../utility-components/chip/chip";
5
- import { getColumnLabel } from "./pivot-utils";
6
- import styles from "../table-grid.module.css";
7
- const AGGREGATIONS = ["sum", "count", "avg", "min", "max"];
8
- export function PivotConfigPanel({ columns, config, onConfigChange }) {
9
- const [dragOver, setDragOver] = useState(null);
10
- const getFieldId = (col) => col.id || (col.accessorKey ? String(col.accessorKey) : "");
11
- // Fields not yet assigned to any zone
12
- const assignedFields = new Set([...config.rowFields, ...config.columnFields, ...config.valueFields.map((v) => v.field)]);
13
- const availableFields = columns.map(getFieldId).filter((id) => id && !assignedFields.has(id));
14
- const setDragData = (e, payload) => {
15
- e.dataTransfer.setData("application/x-pivot", JSON.stringify(payload));
16
- // eslint-disable-next-line no-param-reassign
17
- e.dataTransfer.effectAllowed = "move";
18
- };
19
- const getDragData = (e) => {
20
- try {
21
- return JSON.parse(e.dataTransfer.getData("application/x-pivot"));
22
- }
23
- catch {
24
- return null;
25
- }
26
- };
27
- const handleDrop = (e, targetZone) => {
28
- e.preventDefault();
29
- setDragOver(null);
30
- const payload = getDragData(e);
31
- if (!payload)
32
- return;
33
- const { fieldId, fromZone } = payload;
34
- const next = { ...config, rowFields: [...config.rowFields], columnFields: [...config.columnFields], valueFields: [...config.valueFields] };
35
- // Remove from source zone
36
- if (fromZone === "rows")
37
- next.rowFields = next.rowFields.filter((f) => f !== fieldId);
38
- if (fromZone === "columns")
39
- next.columnFields = next.columnFields.filter((f) => f !== fieldId);
40
- if (fromZone === "values")
41
- next.valueFields = next.valueFields.filter((v) => v.field !== fieldId);
42
- // Add to target zone (if not already present, ignore "available")
43
- if (targetZone === "rows" && !next.rowFields.includes(fieldId)) {
44
- next.rowFields.push(fieldId);
45
- }
46
- else if (targetZone === "columns" && !next.columnFields.includes(fieldId)) {
47
- next.columnFields.push(fieldId);
48
- }
49
- else if (targetZone === "values" && !next.valueFields.find((v) => v.field === fieldId)) {
50
- next.valueFields.push({ field: fieldId, aggregation: "sum" });
51
- }
52
- onConfigChange(next);
53
- };
54
- const handleRemoveFromZone = (zone, fieldId) => {
55
- const next = { ...config };
56
- if (zone === "rows")
57
- next.rowFields = config.rowFields.filter((f) => f !== fieldId);
58
- if (zone === "columns")
59
- next.columnFields = config.columnFields.filter((f) => f !== fieldId);
60
- if (zone === "values")
61
- next.valueFields = config.valueFields.filter((v) => v.field !== fieldId);
62
- onConfigChange(next);
63
- };
64
- const handleAggregationChange = (fieldId, aggregation) => {
65
- onConfigChange({
66
- ...config,
67
- valueFields: config.valueFields.map((v) => (v.field === fieldId ? { ...v, aggregation } : v)),
68
- });
69
- };
70
- const dropZoneProps = (zone) => ({
71
- onDragOver: (e) => {
72
- e.preventDefault();
73
- // eslint-disable-next-line no-param-reassign
74
- e.dataTransfer.dropEffect = "move";
75
- setDragOver(zone);
76
- },
77
- onDragLeave: () => setDragOver(null),
78
- onDrop: (e) => handleDrop(e, zone),
79
- });
80
- const renderZone = (zone, label, fields, valueFields) => (_jsxs("div", { className: `${styles["rst-pivot-zone"]} ${dragOver === zone ? styles["rst-pivot-zone-active"] : ""}`, ...dropZoneProps(zone), children: [_jsx("span", { className: styles["rst-pivot-zone-title"], children: label }), _jsxs(Stack, { direction: "row", gap: 1, align: "center", wrap: true, children: [fields.length === 0 && _jsx("span", { className: styles["rst-pivot-zone-placeholder"], children: "Drop fields here" }), fields.map((fieldId) => {
81
- const vf = valueFields?.find((v) => v.field === fieldId);
82
- return (_jsxs("div", { className: styles["rst-pivot-chip-wrapper"], children: [_jsx(Chip, { draggable: true, onDragStart: (e) => setDragData(e, { fieldId, fromZone: zone, valueAggregation: vf?.aggregation }), onRemove: (e) => {
83
- e.stopPropagation();
84
- handleRemoveFromZone(zone, fieldId);
85
- }, children: getColumnLabel(fieldId, columns) }), zone === "values" && vf && (_jsx("select", { className: styles["rst-pivot-agg-select"], value: vf.aggregation, onChange: (e) => handleAggregationChange(fieldId, e.target.value), onClick: (e) => e.stopPropagation(), children: AGGREGATIONS.map((agg) => (_jsx("option", { value: agg, children: agg }, agg))) }))] }, fieldId));
86
- })] })] }));
87
- return (_jsxs("div", { className: styles["rst-pivot-config-panel"], children: [_jsxs("div", { className: styles["rst-pivot-available-fields"], children: [_jsx("span", { className: styles["rst-pivot-zone-title"], children: "Fields" }), _jsxs(Stack, { direction: "row", gap: 1, align: "center", wrap: true, children: [availableFields.map((fieldId) => (_jsx(Chip, { draggable: true, onDragStart: (e) => setDragData(e, { fieldId, fromZone: "available" }), children: getColumnLabel(fieldId, columns) }, fieldId))), availableFields.length === 0 && _jsx("span", { className: styles["rst-pivot-zone-placeholder"], children: "All fields assigned" })] })] }), _jsxs("div", { className: styles["rst-pivot-zones"], children: [renderZone("rows", "Rows", config.rowFields), renderZone("columns", "Columns", config.columnFields), renderZone("values", "Values", config.valueFields.map((v) => v.field), config.valueFields)] })] }));
88
- }
89
- //# sourceMappingURL=pivot-config-panel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pivot-config-panel.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/pivot/pivot-config-pan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,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EACtC,MAAM,CAAC,WAAW,CACnB,IACG,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import styles from "../table-grid.module.css";
3
- import theadStyles from "../header/table-grid-header.module.css";
4
- import { formatAggregated } from "../aggregation/aggregation-utils";
5
- import { buildColumnGroups } from "./pivot-utils";
6
- import Typography from "../../../components/typography/typography";
7
- export function PivotTable({ pivotData, className }) {
8
- const { columns, rows } = pivotData;
9
- const rowFieldCols = columns.filter((c) => c.isRowField);
10
- const valueCols = columns.filter((c) => !c.isRowField);
11
- const hasColumnFields = valueCols.some((c) => c.columnFieldId !== undefined);
12
- const columnGroups = hasColumnFields ? buildColumnGroups(columns) : [];
13
- const tableClasses = [styles["rst-table-grid"], styles["rst-pivot-table"], className].filter(Boolean).join(" ");
14
- return (_jsx("div", { className: styles["rst-table-container"], children: _jsxs("table", { className: tableClasses, children: [_jsx("thead", { className: theadStyles["rst-table-header"], children: hasColumnFields ? (_jsxs(_Fragment, { children: [_jsxs("tr", { children: [rowFieldCols.map((col) => (_jsx("th", { rowSpan: 2, className: `${theadStyles["rst-table-header-cell"]} ${theadStyles["rst-pivot-header-row-field"]}`, children: _jsx("div", { className: theadStyles["rst-table-header-content"], children: _jsx(Typography, { variant: "title", children: col.label }) }) }, col.id))), columnGroups.map((group) => (_jsx("th", { colSpan: group.cols.length, className: `${theadStyles["rst-table-header-cell"]} ${theadStyles["rst-pivot-header-group"]}`, children: _jsx("div", { className: theadStyles["rst-table-header-content"], children: _jsx(Typography, { variant: "title", children: group.label }) }) }, group.key)))] }), _jsx("tr", { children: valueCols.map((col) => (_jsx("th", { className: `${theadStyles["rst-table-header-cell"]} ${theadStyles["rst-pivot-header-value"]}`, children: _jsx("div", { className: theadStyles["rst-table-header-content"], children: _jsx(Typography, { variant: "title", children: col.subLabel ?? col.label }) }) }, col.id))) })] })) : (_jsx("tr", { children: columns.map((col) => (_jsx("th", { className: [
15
- theadStyles["rst-table-header-cell"],
16
- col.isRowField ? theadStyles["rst-pivot-header-row-field"] : styles["rst-pivot-header-value"],
17
- ]
18
- .filter(Boolean)
19
- .join(" "), children: _jsx("div", { className: theadStyles["rst-table-header-content"], children: _jsx(Typography, { variant: "title", children: col.label }) }) }, col.id))) })) }), _jsx("tbody", { className: styles["rst-table-body"], children: rows.length === 0 ? (_jsx("tr", { children: _jsx("td", { colSpan: columns.length, className: styles["rst-pivot-empty"], children: "No data to display" }) })) : (rows.map((row) => (_jsx("tr", { className: styles["rst-table-row"], children: columns.map((col) => {
20
- const value = row.cells[col.id];
21
- return (_jsx("td", { className: [styles["rst-table-cell"], col.isRowField ? styles["rst-pivot-cell-row-field"] : styles["rst-pivot-cell-value"]]
22
- .filter(Boolean)
23
- .join(" "), children: _jsx("div", { className: styles["rst-table-cell-wrapper"], children: formatAggregated(value) }) }, col.id));
24
- }) }, row.id)))) })] }) }));
25
- }
26
- //# sourceMappingURL=pivot-table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pivot-table.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/pivot/pivot-table.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,WAAW,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,UAAU,MAAM,2CAA2C,CAAC;AAOnE,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,SAAS,EAAmB;IAClE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAEpC,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC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OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,mCAE5D,GACF,CACN,CAAC,CAAC,CAAC,CACF,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAChB,aAAiB,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,YAChD,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;4BACnB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;4BAChC,OAAO,CACL,aAEE,SAAS,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;qCACxH,MAAM,CAAC,OAAO,CAAC;qCACf,IAAI,CAAC,GAAG,CAAC,YAEZ,cAAK,SAAS,EAAE,MAAM,CAAC,wBAAwB,CAAC,YAAG,gBAAgB,CAAC,KAAK,CAAC,GAAO,IAL5E,GAAG,CAAC,EAAE,CAMR,CACN,CAAC;wBACJ,CAAC,CAAC,IAbK,GAAG,CAAC,EAAE,CAcV,CACN,CAAC,CACH,GACK,IACF,GACJ,CACP,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=pivot-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pivot-types.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/pivot/pivot-types.ts"],"names":[],"mappings":""}
@@ -1,150 +0,0 @@
1
- import { aggregate } from "../aggregation/aggregation-utils";
2
- /** Builds the column-group structure for the top header row when columnFields are in use. */
3
- export function buildColumnGroups(columns) {
4
- const order = [];
5
- const map = new Map();
6
- columns
7
- .filter((c) => !c.isRowField)
8
- .forEach((col) => {
9
- const key = `${col.columnFieldId ?? ""}__${col.columnFieldValue ?? ""}`;
10
- if (!map.has(key)) {
11
- map.set(key, { label: col.label, cols: [] });
12
- order.push(key);
13
- }
14
- map.get(key).cols.push(col);
15
- });
16
- return order.map((k) => ({ key: k, ...map.get(k) }));
17
- }
18
- function getRawValue(row, fieldId, columnDefs) {
19
- const col = columnDefs.find((c) => (c.id || String(c.accessorKey ?? "")) === fieldId);
20
- if (!col)
21
- return null;
22
- if (col.accessorFn)
23
- return col.accessorFn(row);
24
- if (col.accessorKey)
25
- return row[col.accessorKey];
26
- return null;
27
- }
28
- export function getColumnLabel(fieldId, columnDefs) {
29
- const col = columnDefs.find((c) => (c.id || String(c.accessorKey ?? "")) === fieldId);
30
- if (!col)
31
- return fieldId;
32
- return col.header ? String(col.header) : fieldId;
33
- }
34
- /**
35
- * Computes the full pivot table from raw data + pivot config.
36
- */
37
- export function computePivot(data, config, columnDefs) {
38
- const { rowFields, columnFields, valueFields } = config;
39
- // 1. Collect unique values for each column field (these become dynamic columns)
40
- const uniqueColValues = new Map();
41
- columnFields.forEach((cf) => {
42
- const seen = new Set();
43
- data.forEach((row) => {
44
- const val = String(getRawValue(row, cf, columnDefs) ?? "");
45
- seen.add(val);
46
- });
47
- uniqueColValues.set(cf, Array.from(seen).sort());
48
- });
49
- // 2. Build the column definitions for the pivot table
50
- const pivotColumns = [];
51
- // Left side: row fields
52
- rowFields.forEach((rf) => {
53
- pivotColumns.push({
54
- id: `row__${rf}`,
55
- label: getColumnLabel(rf, columnDefs),
56
- isRowField: true,
57
- });
58
- });
59
- // Right side: for each column field value × value field
60
- if (columnFields.length > 0) {
61
- columnFields.forEach((cf) => {
62
- const vals = uniqueColValues.get(cf) ?? [];
63
- vals.forEach((colVal) => {
64
- valueFields.forEach((vf) => {
65
- const subLabel = vf.label ?? `${getColumnLabel(vf.field, columnDefs)} (${vf.aggregation})`;
66
- pivotColumns.push({
67
- id: `pivot__${cf}__${colVal}__${vf.field}__${vf.aggregation}`,
68
- label: colVal, // group header (e.g. "New York")
69
- subLabel, // value header (e.g. "Salary (sum)")
70
- isRowField: false,
71
- columnFieldValue: colVal,
72
- columnFieldId: cf,
73
- valueField: vf,
74
- });
75
- });
76
- });
77
- });
78
- }
79
- else {
80
- // No column fields: one column per value field (aggregated over entire row group)
81
- valueFields.forEach((vf) => {
82
- const label = vf.label ?? `${getColumnLabel(vf.field, columnDefs)} (${vf.aggregation})`;
83
- pivotColumns.push({
84
- id: `pivot__${vf.field}__${vf.aggregation}`,
85
- label,
86
- isRowField: false,
87
- valueField: vf,
88
- });
89
- });
90
- }
91
- // 3. Group rows by the combination of row fields
92
- const rowGroupMap = new Map();
93
- data.forEach((row) => {
94
- const key = rowFields.map((rf) => String(getRawValue(row, rf, columnDefs) ?? "")).join("\0");
95
- if (!rowGroupMap.has(key))
96
- rowGroupMap.set(key, []);
97
- rowGroupMap.get(key).push(row);
98
- });
99
- // 4. Build the pivot rows
100
- const pivotRows = [];
101
- let rowIndex = 0;
102
- // If no row fields defined, treat all data as one group
103
- const groupEntries = rowFields.length > 0 ? Array.from(rowGroupMap.entries()) : [["__all__", data]];
104
- groupEntries.forEach(([key, groupRows]) => {
105
- const rowValues = {};
106
- if (rowFields.length > 0) {
107
- const parts = key.split("\0");
108
- rowFields.forEach((rf, i) => {
109
- rowValues[rf] = parts[i] ?? "";
110
- });
111
- }
112
- const cells = {};
113
- // Fill row field values
114
- rowFields.forEach((rf) => {
115
- cells[`row__${rf}`] = rowValues[rf];
116
- });
117
- // Fill aggregated value cells
118
- if (columnFields.length > 0) {
119
- columnFields.forEach((cf) => {
120
- const vals = uniqueColValues.get(cf) ?? [];
121
- vals.forEach((colVal) => {
122
- const matching = groupRows.filter((r) => String(getRawValue(r, cf, columnDefs) ?? "") === colVal);
123
- valueFields.forEach((vf) => {
124
- const id = `pivot__${cf}__${colVal}__${vf.field}__${vf.aggregation}`;
125
- const nums = vf.aggregation === "count"
126
- ? matching.map(() => 1)
127
- : matching.map((r) => Number(getRawValue(r, vf.field, columnDefs))).filter((n) => !isNaN(n));
128
- cells[id] = aggregate(nums, vf.aggregation);
129
- });
130
- });
131
- });
132
- }
133
- else {
134
- valueFields.forEach((vf) => {
135
- const id = `pivot__${vf.field}__${vf.aggregation}`;
136
- const nums = vf.aggregation === "count"
137
- ? groupRows.map(() => 1)
138
- : groupRows.map((r) => Number(getRawValue(r, vf.field, columnDefs))).filter((n) => !isNaN(n));
139
- cells[id] = aggregate(nums, vf.aggregation);
140
- });
141
- }
142
- pivotRows.push({
143
- id: `pivot-row-${rowIndex++}`,
144
- rowValues,
145
- cells,
146
- });
147
- });
148
- return { columns: pivotColumns, rows: pivotRows };
149
- }
150
- //# sourceMappingURL=pivot-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pivot-utils.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/pivot/pivot-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,6FAA6F;AAC7F,MAAM,UAAU,iBAAiB,CAAC,OAAyB;IACzD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,GAAG,GAAG,IAAI,GAAG,EAAqD,CAAC;IAEzE,OAAO;SACJ,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;SAC5B,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACf,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,aAAa,IAAI,EAAE,KAAK,GAAG,CAAC,gBAAgB,IAAI,EAAE,EAAE,CAAC;QACxE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YAClB,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YAC7C,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClB,CAAC;QACD,GAAG,CAAC,GAAG,CAAC,GA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AE,GAAG,UAAU,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,WAAW,EAAE,CAAC;gBACnD,MAAM,IAAI,GAAG,EAAE,CAAC,WAAW,KAAK,OAAO;oBACrC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;oBACxB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gBAChG,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC;YAC9C,CAAC,CAAC,CAAC;QACL,CAAC;QAED,SAAS,CAAC,IAAI,CAAC;YACb,EAAE,EAAE,aAAa,QAAQ,EAAE,EAAE;YAC7B,SAAS;YACT,KAAK;SACN,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AACpD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=table-grid-row-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-grid-row-types.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/row/table-grid-row-types.ts"],"names":[],"mappings":""}