@restio/ui 0.0.7-SNAPSHOT → 0.0.9-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 (679) hide show
  1. package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +1 -1
  2. package/dist/components/anchored-overlay/anchored-overlay-types.js +2 -0
  3. package/dist/components/anchored-overlay/anchored-overlay-types.js.map +1 -0
  4. package/dist/components/anchored-overlay/anchored-overlay.d.ts +2 -2
  5. package/dist/components/anchored-overlay/anchored-overlay.js +67 -0
  6. package/dist/components/anchored-overlay/anchored-overlay.js.map +1 -0
  7. package/dist/components/banner/banner-types.d.ts +1 -1
  8. package/dist/components/banner/banner-types.js +2 -0
  9. package/dist/components/banner/banner-types.js.map +1 -0
  10. package/dist/components/banner/banner.d.ts +2 -2
  11. package/dist/components/banner/banner.js +29 -0
  12. package/dist/components/banner/banner.js.map +1 -0
  13. package/dist/components/button/button-types.d.ts +1 -1
  14. package/dist/components/button/button-types.js +2 -0
  15. package/dist/components/button/button-types.js.map +1 -0
  16. package/dist/components/button/button.d.ts +2 -2
  17. package/dist/components/button/button.js +20 -0
  18. package/dist/components/button/button.js.map +1 -0
  19. package/dist/components/button-group/button-group-types.js +2 -0
  20. package/dist/components/button-group/button-group-types.js.map +1 -0
  21. package/dist/components/button-group/button-group.d.ts +2 -2
  22. package/dist/components/button-group/button-group.js +16 -0
  23. package/dist/components/button-group/button-group.js.map +1 -0
  24. package/dist/components/checkbox/checkbox-types.d.ts +1 -1
  25. package/dist/components/checkbox/checkbox-types.js +2 -0
  26. package/dist/components/checkbox/checkbox-types.js.map +1 -0
  27. package/dist/components/checkbox/checkbox.d.ts +2 -2
  28. package/dist/components/checkbox/checkbox.js +19 -0
  29. package/dist/components/checkbox/checkbox.js.map +1 -0
  30. package/dist/components/code-block/code-block.d.ts +1 -1
  31. package/dist/components/code-block/code-block.js +9 -0
  32. package/dist/components/code-block/code-block.js.map +1 -0
  33. package/dist/components/file-upload/file-upload-types.d.ts +1 -1
  34. package/dist/components/file-upload/file-upload-types.js +2 -0
  35. package/dist/components/file-upload/file-upload-types.js.map +1 -0
  36. package/dist/components/file-upload/file-upload-utils.js +10 -0
  37. package/dist/components/file-upload/file-upload-utils.js.map +1 -0
  38. package/dist/components/file-upload/file-upload.d.ts +2 -2
  39. package/dist/components/file-upload/file-upload.js +106 -0
  40. package/dist/components/file-upload/file-upload.js.map +1 -0
  41. package/dist/components/graph/graph-types.js +2 -0
  42. package/dist/components/graph/graph-types.js.map +1 -0
  43. package/dist/components/graph/graph.d.ts +1 -1
  44. package/dist/components/graph/graph.js +21 -0
  45. package/dist/components/graph/graph.js.map +1 -0
  46. package/dist/components/input/date/date-calendar.d.ts +2 -2
  47. package/dist/components/input/date/date-calendar.js +114 -0
  48. package/dist/components/input/date/date-calendar.js.map +1 -0
  49. package/dist/components/input/date/date-input-field.d.ts +2 -2
  50. package/dist/components/input/date/date-input-field.js +61 -0
  51. package/dist/components/input/date/date-input-field.js.map +1 -0
  52. package/dist/components/input/date/date-picker.d.ts +2 -2
  53. package/dist/components/input/date/date-picker.js +35 -0
  54. package/dist/components/input/date/date-picker.js.map +1 -0
  55. package/dist/components/input/date/date-range-input-field.d.ts +2 -2
  56. package/dist/components/input/date/date-range-input-field.js +90 -0
  57. package/dist/components/input/date/date-range-input-field.js.map +1 -0
  58. package/dist/components/input/date/date-range-picker.d.ts +2 -2
  59. package/dist/components/input/date/date-range-picker.js +74 -0
  60. package/dist/components/input/date/date-range-picker.js.map +1 -0
  61. package/dist/components/input/date/date-shortcuts.d.ts +2 -2
  62. package/dist/components/input/date/date-shortcuts.js +47 -0
  63. package/dist/components/input/date/date-shortcuts.js.map +1 -0
  64. package/dist/components/input/date/date-types.d.ts +1 -1
  65. package/dist/components/input/date/date-types.js +2 -0
  66. package/dist/components/input/date/date-types.js.map +1 -0
  67. package/dist/components/input/date/date-utils.d.ts +1 -1
  68. package/dist/components/input/date/date-utils.js +203 -0
  69. package/dist/components/input/date/date-utils.js.map +1 -0
  70. package/dist/components/input/input-types.js +2 -0
  71. package/dist/components/input/input-types.js.map +1 -0
  72. package/dist/components/input/input.d.ts +2 -2
  73. package/dist/components/input/input.js +14 -0
  74. package/dist/components/input/input.js.map +1 -0
  75. package/dist/components/input/number/input-number-types.d.ts +1 -1
  76. package/dist/components/input/number/input-number-types.js +2 -0
  77. package/dist/components/input/number/input-number-types.js.map +1 -0
  78. package/dist/components/input/number/input-number.d.ts +2 -2
  79. package/dist/components/input/number/input-number.js +11 -0
  80. package/dist/components/input/number/input-number.js.map +1 -0
  81. package/dist/components/input/text/input-text-types.d.ts +1 -1
  82. package/dist/components/input/text/input-text-types.js +2 -0
  83. package/dist/components/input/text/input-text-types.js.map +1 -0
  84. package/dist/components/input/text/input-text.d.ts +2 -2
  85. package/dist/components/input/text/input-text.js +8 -0
  86. package/dist/components/input/text/input-text.js.map +1 -0
  87. package/dist/components/kbd/kbd-types.js +2 -0
  88. package/dist/components/kbd/kbd-types.js.map +1 -0
  89. package/dist/components/kbd/kbd.d.ts +2 -2
  90. package/dist/components/kbd/kbd.js +12 -0
  91. package/dist/components/kbd/kbd.js.map +1 -0
  92. package/dist/components/kbd-group/kbd-group-types.js +2 -0
  93. package/dist/components/kbd-group/kbd-group-types.js.map +1 -0
  94. package/dist/components/kbd-group/kbd-group.d.ts +2 -2
  95. package/dist/components/kbd-group/kbd-group.js +15 -0
  96. package/dist/components/kbd-group/kbd-group.js.map +1 -0
  97. package/dist/components/list/list-types.d.ts +1 -1
  98. package/dist/components/list/list-types.js +2 -0
  99. package/dist/components/list/list-types.js.map +1 -0
  100. package/dist/components/list/list-utils.d.ts +4 -4
  101. package/dist/components/list/list-utils.js +73 -0
  102. package/dist/components/list/list-utils.js.map +1 -0
  103. package/dist/components/list/list.d.ts +1 -1
  104. package/dist/components/list/list.d.ts.map +1 -1
  105. package/dist/components/list/list.js +68 -0
  106. package/dist/components/list/list.js.map +1 -0
  107. package/dist/components/menu/anchored-navigation-menu.d.ts +3 -3
  108. package/dist/components/menu/anchored-navigation-menu.js +48 -0
  109. package/dist/components/menu/anchored-navigation-menu.js.map +1 -0
  110. package/dist/components/menu/menu-assets.d.ts +1 -1
  111. package/dist/components/menu/menu-assets.js +35 -0
  112. package/dist/components/menu/menu-assets.js.map +1 -0
  113. package/dist/components/menu/menu-types.d.ts +2 -2
  114. package/dist/components/menu/menu-types.js +2 -0
  115. package/dist/components/menu/menu-types.js.map +1 -0
  116. package/dist/components/menu/menu.d.ts +2 -2
  117. package/dist/components/menu/menu.js +86 -0
  118. package/dist/components/menu/menu.js.map +1 -0
  119. package/dist/components/otp/otp-types.js +2 -0
  120. package/dist/components/otp/otp-types.js.map +1 -0
  121. package/dist/components/otp/otp-utils.js +22 -0
  122. package/dist/components/otp/otp-utils.js.map +1 -0
  123. package/dist/components/otp/otp.d.ts +3 -2
  124. package/dist/components/otp/otp.js +85 -0
  125. package/dist/components/otp/otp.js.map +1 -0
  126. package/dist/components/select/select-types.d.ts +1 -1
  127. package/dist/components/select/select-types.js +2 -0
  128. package/dist/components/select/select-types.js.map +1 -0
  129. package/dist/components/select/select.d.ts +2 -2
  130. package/dist/components/select/select.js +52 -0
  131. package/dist/components/select/select.js.map +1 -0
  132. package/dist/components/tag/tag-types.d.ts +1 -1
  133. package/dist/components/tag/tag-types.js +2 -0
  134. package/dist/components/tag/tag-types.js.map +1 -0
  135. package/dist/components/tag/tag.d.ts +2 -2
  136. package/dist/components/tag/tag.js +16 -0
  137. package/dist/components/tag/tag.js.map +1 -0
  138. package/dist/components/textarea/textarea-types.d.ts +2 -2
  139. package/dist/components/textarea/textarea-types.js +2 -0
  140. package/dist/components/textarea/textarea-types.js.map +1 -0
  141. package/dist/components/textarea/textarea.d.ts +2 -2
  142. package/dist/components/textarea/textarea.js +19 -0
  143. package/dist/components/textarea/textarea.js.map +1 -0
  144. package/dist/components/toast-group/toast-group-types.d.ts +1 -1
  145. package/dist/components/toast-group/toast-group-types.js +2 -0
  146. package/dist/components/toast-group/toast-group-types.js.map +1 -0
  147. package/dist/components/toast-group/toast-group.d.ts +2 -2
  148. package/dist/components/toast-group/toast-group.js +25 -0
  149. package/dist/components/toast-group/toast-group.js.map +1 -0
  150. package/dist/components/typography/typography-types.d.ts +1 -1
  151. package/dist/components/typography/typography-types.js +11 -0
  152. package/dist/components/typography/typography-types.js.map +1 -0
  153. package/dist/components/typography/typography.d.ts +2 -2
  154. package/dist/components/typography/typography.js +17 -0
  155. package/dist/components/typography/typography.js.map +1 -0
  156. package/dist/custom-components/chat/chat-types.d.ts +1 -1
  157. package/dist/custom-components/chat/chat-types.js +2 -0
  158. package/dist/custom-components/chat/chat-types.js.map +1 -0
  159. package/dist/custom-components/chat/chat.d.ts +1 -1
  160. package/dist/custom-components/chat/chat.js +14 -0
  161. package/dist/custom-components/chat/chat.js.map +1 -0
  162. package/dist/custom-components/layout/layout-types.js +2 -0
  163. package/dist/custom-components/layout/layout-types.js.map +1 -0
  164. package/dist/custom-components/layout/layout.d.ts +2 -2
  165. package/dist/custom-components/layout/layout.js +46 -0
  166. package/dist/custom-components/layout/layout.js.map +1 -0
  167. package/dist/custom-components/layout-builder/layout-builder-constants.js +25 -0
  168. package/dist/custom-components/layout-builder/layout-builder-constants.js.map +1 -0
  169. package/dist/custom-components/layout-builder/layout-builder-schema.js +169 -0
  170. package/dist/custom-components/layout-builder/layout-builder-schema.js.map +1 -0
  171. package/dist/custom-components/layout-builder/layout-builder-templates.js +206 -0
  172. package/dist/custom-components/layout-builder/layout-builder-templates.js.map +1 -0
  173. package/dist/custom-components/layout-builder/layout-builder-types.js +2 -0
  174. package/dist/custom-components/layout-builder/layout-builder-types.js.map +1 -0
  175. package/dist/custom-components/layout-builder/layout-builder-utils.js +251 -0
  176. package/dist/custom-components/layout-builder/layout-builder-utils.js.map +1 -0
  177. package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +8 -2
  178. package/dist/custom-components/layout-builder/layout-builder-validation.js +445 -0
  179. package/dist/custom-components/layout-builder/layout-builder-validation.js.map +1 -0
  180. package/dist/custom-components/layout-builder/layout-builder.d.ts +2 -2
  181. package/dist/custom-components/layout-builder/layout-builder.js +908 -0
  182. package/dist/custom-components/layout-builder/layout-builder.js.map +1 -0
  183. package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +1 -1
  184. package/dist/custom-components/layout-builder/layout-json-editor-types.js +2 -0
  185. package/dist/custom-components/layout-builder/layout-json-editor-types.js.map +1 -0
  186. package/dist/custom-components/layout-builder/layout-json-editor.d.ts +2 -2
  187. package/dist/custom-components/layout-builder/layout-json-editor.js +103 -0
  188. package/dist/custom-components/layout-builder/layout-json-editor.js.map +1 -0
  189. package/dist/custom-components/layout-builder/stories/hooks/useHistory.js +100 -0
  190. package/dist/custom-components/layout-builder/stories/hooks/useHistory.js.map +1 -0
  191. package/dist/custom-components/markdown/markdown-types.d.ts +3 -3
  192. package/dist/custom-components/markdown/markdown-types.js +2 -0
  193. package/dist/custom-components/markdown/markdown-types.js.map +1 -0
  194. package/dist/custom-components/markdown/markdown-utils.js +10 -0
  195. package/dist/custom-components/markdown/markdown-utils.js.map +1 -0
  196. package/dist/custom-components/markdown/markdown.d.ts +2 -2
  197. package/dist/custom-components/markdown/markdown.js +39 -0
  198. package/dist/custom-components/markdown/markdown.js.map +1 -0
  199. package/dist/custom-components/mindmap/index.d.ts +2 -2
  200. package/dist/custom-components/mindmap/index.js +2 -0
  201. package/dist/custom-components/mindmap/index.js.map +1 -0
  202. package/dist/custom-components/mindmap/mind-tree-types.d.ts +1 -1
  203. package/dist/custom-components/mindmap/mind-tree-types.js +2 -0
  204. package/dist/custom-components/mindmap/mind-tree-types.js.map +1 -0
  205. package/dist/custom-components/mindmap/mind-tree.d.ts +1 -1
  206. package/dist/custom-components/mindmap/mind-tree.js +201 -0
  207. package/dist/custom-components/mindmap/mind-tree.js.map +1 -0
  208. package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +1 -1
  209. package/dist/custom-components/mindmap/reingold-tilford-algorithm.js +277 -0
  210. package/dist/custom-components/mindmap/reingold-tilford-algorithm.js.map +1 -0
  211. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js +2 -0
  212. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js.map +1 -0
  213. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +2 -2
  214. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js +32 -0
  215. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js.map +1 -0
  216. package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +1 -1
  217. package/dist/custom-components/timeline/skeleton/timeline-skeleton.js +19 -0
  218. package/dist/custom-components/timeline/skeleton/timeline-skeleton.js.map +1 -0
  219. package/dist/custom-components/timeline/timeline-types.js +2 -0
  220. package/dist/custom-components/timeline/timeline-types.js.map +1 -0
  221. package/dist/custom-components/timeline/timeline.d.ts +2 -2
  222. package/dist/custom-components/timeline/timeline.js +64 -0
  223. package/dist/custom-components/timeline/timeline.js.map +1 -0
  224. package/dist/custom-components/workflow/layout/workflow-edge.d.ts +1 -1
  225. package/dist/custom-components/workflow/layout/workflow-edge.js +31 -0
  226. package/dist/custom-components/workflow/layout/workflow-edge.js.map +1 -0
  227. package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +1 -1
  228. package/dist/custom-components/workflow/layout/workflow-layout-types.js +2 -0
  229. package/dist/custom-components/workflow/layout/workflow-layout-types.js.map +1 -0
  230. package/dist/custom-components/workflow/layout/workflow-layout.d.ts +2 -2
  231. package/dist/custom-components/workflow/layout/workflow-layout.js +284 -0
  232. package/dist/custom-components/workflow/layout/workflow-layout.js.map +1 -0
  233. package/dist/custom-components/workflow/node/workflow-node.d.ts +1 -1
  234. package/dist/custom-components/workflow/node/workflow-node.js +22 -0
  235. package/dist/custom-components/workflow/node/workflow-node.js.map +1 -0
  236. package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +1 -1
  237. package/dist/custom-components/workflow/panel/workflow-panel-types.js +2 -0
  238. package/dist/custom-components/workflow/panel/workflow-panel-types.js.map +1 -0
  239. package/dist/custom-components/workflow/panel/workflow-panel.d.ts +1 -1
  240. package/dist/custom-components/workflow/panel/workflow-panel.js +53 -0
  241. package/dist/custom-components/workflow/panel/workflow-panel.js.map +1 -0
  242. package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js +2 -0
  243. package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js.map +1 -0
  244. package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +1 -1
  245. package/dist/custom-components/workflow/toolbar/workflow-toolbar.js +19 -0
  246. package/dist/custom-components/workflow/toolbar/workflow-toolbar.js.map +1 -0
  247. package/dist/custom-components/workflow/utils/workflow-validation.d.ts +2 -2
  248. package/dist/custom-components/workflow/utils/workflow-validation.js +257 -0
  249. package/dist/custom-components/workflow/utils/workflow-validation.js.map +1 -0
  250. package/dist/custom-components/workflow/workflow-types.d.ts +3 -3
  251. package/dist/custom-components/workflow/workflow-types.js +2 -0
  252. package/dist/custom-components/workflow/workflow-types.js.map +1 -0
  253. package/dist/custom-components/workflow/workflow.d.ts +1 -1
  254. package/dist/custom-components/workflow/workflow.js +125 -0
  255. package/dist/custom-components/workflow/workflow.js.map +1 -0
  256. package/dist/data-components/assets/data-components-asset.js +2 -0
  257. package/dist/data-components/assets/data-components-asset.js.map +1 -0
  258. package/dist/data-components/calendar/calendar-types.d.ts +1 -1
  259. package/dist/data-components/calendar/calendar-types.js +2 -0
  260. package/dist/data-components/calendar/calendar-types.js.map +1 -0
  261. package/dist/data-components/calendar/calendar-utils.js +2 -0
  262. package/dist/data-components/calendar/calendar-utils.js.map +1 -0
  263. package/dist/data-components/calendar/calendar.d.ts +1 -1
  264. package/dist/data-components/calendar/calendar.js +78 -0
  265. package/dist/data-components/calendar/calendar.js.map +1 -0
  266. package/dist/data-components/cell/cell-switch.d.ts +1 -1
  267. package/dist/data-components/cell/cell-switch.js +68 -0
  268. package/dist/data-components/cell/cell-switch.js.map +1 -0
  269. package/dist/data-components/cell/cell-types.d.ts +2 -2
  270. package/dist/data-components/cell/cell-types.js +2 -0
  271. package/dist/data-components/cell/cell-types.js.map +1 -0
  272. package/dist/data-components/cell/cell-utils.js +60 -0
  273. package/dist/data-components/cell/cell-utils.js.map +1 -0
  274. package/dist/data-components/cell/cell.d.ts +1 -1
  275. package/dist/data-components/cell/cell.js +63 -0
  276. package/dist/data-components/cell/cell.js.map +1 -0
  277. package/dist/data-components/chart/chart-types.d.ts +1 -1
  278. package/dist/data-components/chart/chart-types.js +2 -0
  279. package/dist/data-components/chart/chart-types.js.map +1 -0
  280. package/dist/data-components/chart/chart.d.ts +1 -1
  281. package/dist/data-components/chart/chart.js +121 -0
  282. package/dist/data-components/chart/chart.js.map +1 -0
  283. package/dist/data-components/chart/sankey/sankeyChart.d.ts +1 -1
  284. package/dist/data-components/chart/sankey/sankeyChart.js +111 -0
  285. package/dist/data-components/chart/sankey/sankeyChart.js.map +1 -0
  286. package/dist/data-components/data-structure/data-structure-utils.d.ts +1 -1
  287. package/dist/data-components/data-structure/data-structure-utils.js +28 -0
  288. package/dist/data-components/data-structure/data-structure-utils.js.map +1 -0
  289. package/dist/data-components/data-structure/data-structure.d.ts +1 -1
  290. package/dist/data-components/data-structure/data-structure.js +2 -0
  291. package/dist/data-components/data-structure/data-structure.js.map +1 -0
  292. package/dist/data-components/data-structure/stories-assets.d.ts +5 -1
  293. package/dist/data-components/data-structure/stories-assets.js +199 -0
  294. package/dist/data-components/data-structure/stories-assets.js.map +1 -0
  295. package/dist/data-components/form/form-types.d.ts +2 -2
  296. package/dist/data-components/form/form-types.js +2 -0
  297. package/dist/data-components/form/form-types.js.map +1 -0
  298. package/dist/data-components/form/form.d.ts +1 -1
  299. package/dist/data-components/form/form.js +124 -0
  300. package/dist/data-components/form/form.js.map +1 -0
  301. package/dist/data-components/table-grid/aggregation/aggregation-utils.js +31 -0
  302. package/dist/data-components/table-grid/aggregation/aggregation-utils.js.map +1 -0
  303. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +1 -1
  304. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js +264 -0
  305. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js.map +1 -0
  306. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +1 -1
  307. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js +306 -0
  308. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js.map +1 -0
  309. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +1 -1
  310. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js +2 -0
  311. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js.map +1 -0
  312. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
  313. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js +33 -0
  314. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js.map +1 -0
  315. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +2 -2
  316. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js +59 -0
  317. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js.map +1 -0
  318. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +1 -1
  319. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js +167 -0
  320. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js.map +1 -0
  321. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +1 -1
  322. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js +2 -0
  323. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js.map +1 -0
  324. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +2 -2
  325. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js +157 -0
  326. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js.map +1 -0
  327. package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js +27 -0
  328. package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js.map +1 -0
  329. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +1 -1
  330. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js +21 -0
  331. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js.map +1 -0
  332. package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js +21 -0
  333. package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js.map +1 -0
  334. package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js +12 -0
  335. package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js.map +1 -0
  336. package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +6 -6
  337. package/dist/data-components/table-grid/external-functionalities/import/csv/index.js +7 -0
  338. package/dist/data-components/table-grid/external-functionalities/import/csv/index.js.map +1 -0
  339. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +1 -1
  340. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js +15 -0
  341. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js.map +1 -0
  342. package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js +50 -0
  343. package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js.map +1 -0
  344. package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +1 -1
  345. package/dist/data-components/table-grid/footer/table-grid-footer-types.js +2 -0
  346. package/dist/data-components/table-grid/footer/table-grid-footer-types.js.map +1 -0
  347. package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +1 -1
  348. package/dist/data-components/table-grid/footer/table-grid-footer.js +47 -0
  349. package/dist/data-components/table-grid/footer/table-grid-footer.js.map +1 -0
  350. package/dist/data-components/table-grid/formula/evaluator.js +91 -0
  351. package/dist/data-components/table-grid/formula/evaluator.js.map +1 -0
  352. package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +1 -1
  353. package/dist/data-components/table-grid/formula/formula-builder-types.js +2 -0
  354. package/dist/data-components/table-grid/formula/formula-builder-types.js.map +1 -0
  355. package/dist/data-components/table-grid/formula/formula-builder.d.ts +1 -1
  356. package/dist/data-components/table-grid/formula/formula-builder.js +47 -0
  357. package/dist/data-components/table-grid/formula/formula-builder.js.map +1 -0
  358. package/dist/data-components/table-grid/formula/formula.test.js +50 -0
  359. package/dist/data-components/table-grid/formula/formula.test.js.map +1 -0
  360. package/dist/data-components/table-grid/formula/index.js +40 -0
  361. package/dist/data-components/table-grid/formula/index.js.map +1 -0
  362. package/dist/data-components/table-grid/formula/parser.js +179 -0
  363. package/dist/data-components/table-grid/formula/parser.js.map +1 -0
  364. package/dist/data-components/table-grid/formula/tokenizer.js +140 -0
  365. package/dist/data-components/table-grid/formula/tokenizer.js.map +1 -0
  366. package/dist/data-components/table-grid/formula/types.js +2 -0
  367. package/dist/data-components/table-grid/formula/types.js.map +1 -0
  368. package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +1 -1
  369. package/dist/data-components/table-grid/header/grouping/group-panel-types.js +2 -0
  370. package/dist/data-components/table-grid/header/grouping/group-panel-types.js.map +1 -0
  371. package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +1 -1
  372. package/dist/data-components/table-grid/header/grouping/group-panel.js +91 -0
  373. package/dist/data-components/table-grid/header/grouping/group-panel.js.map +1 -0
  374. package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +1 -1
  375. package/dist/data-components/table-grid/header/table-grid-column-menu.js +84 -0
  376. package/dist/data-components/table-grid/header/table-grid-column-menu.js.map +1 -0
  377. package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +1 -1
  378. package/dist/data-components/table-grid/header/table-grid-header-types.js +2 -0
  379. package/dist/data-components/table-grid/header/table-grid-header-types.js.map +1 -0
  380. package/dist/data-components/table-grid/header/table-grid-header.d.ts +1 -1
  381. package/dist/data-components/table-grid/header/table-grid-header.js +148 -0
  382. package/dist/data-components/table-grid/header/table-grid-header.js.map +1 -0
  383. package/dist/data-components/table-grid/hooks/use-table.d.ts +1 -1
  384. package/dist/data-components/table-grid/hooks/use-table.js +18 -0
  385. package/dist/data-components/table-grid/hooks/use-table.js.map +1 -0
  386. package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +1 -1
  387. package/dist/data-components/table-grid/pinning/pinning-utils.js +70 -0
  388. package/dist/data-components/table-grid/pinning/pinning-utils.js.map +1 -0
  389. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +2 -2
  390. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js +2 -0
  391. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js.map +1 -0
  392. package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +1 -1
  393. package/dist/data-components/table-grid/pivot/pivot-config-panel.js +89 -0
  394. package/dist/data-components/table-grid/pivot/pivot-config-panel.js.map +1 -0
  395. package/dist/data-components/table-grid/pivot/pivot-table.d.ts +1 -1
  396. package/dist/data-components/table-grid/pivot/pivot-table.js +26 -0
  397. package/dist/data-components/table-grid/pivot/pivot-table.js.map +1 -0
  398. package/dist/data-components/table-grid/pivot/pivot-types.d.ts +1 -1
  399. package/dist/data-components/table-grid/pivot/pivot-types.js +2 -0
  400. package/dist/data-components/table-grid/pivot/pivot-types.js.map +1 -0
  401. package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +2 -2
  402. package/dist/data-components/table-grid/pivot/pivot-utils.js +150 -0
  403. package/dist/data-components/table-grid/pivot/pivot-utils.js.map +1 -0
  404. package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +3 -1
  405. package/dist/data-components/table-grid/row/table-grid-row-types.d.ts.map +1 -1
  406. package/dist/data-components/table-grid/row/table-grid-row-types.js +2 -0
  407. package/dist/data-components/table-grid/row/table-grid-row-types.js.map +1 -0
  408. package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +2 -2
  409. package/dist/data-components/table-grid/row/table-grid-row-utils.js +35 -0
  410. package/dist/data-components/table-grid/row/table-grid-row-utils.js.map +1 -0
  411. package/dist/data-components/table-grid/row/table-grid-row.d.ts +2 -2
  412. package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
  413. package/dist/data-components/table-grid/row/table-grid-row.js +68 -0
  414. package/dist/data-components/table-grid/row/table-grid-row.js.map +1 -0
  415. package/dist/data-components/table-grid/selection/selection-types.js +2 -0
  416. package/dist/data-components/table-grid/selection/selection-types.js.map +1 -0
  417. package/dist/data-components/table-grid/selection/selection-utils.d.ts +2 -2
  418. package/dist/data-components/table-grid/selection/selection-utils.js +136 -0
  419. package/dist/data-components/table-grid/selection/selection-utils.js.map +1 -0
  420. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js +2 -0
  421. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js.map +1 -0
  422. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +1 -1
  423. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js +7 -0
  424. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js.map +1 -0
  425. package/dist/data-components/table-grid/sorting/sorting.d.ts +1 -1
  426. package/dist/data-components/table-grid/sorting/sorting.js +45 -0
  427. package/dist/data-components/table-grid/sorting/sorting.js.map +1 -0
  428. package/dist/data-components/table-grid/table-context/table-context-types.d.ts +2 -2
  429. package/dist/data-components/table-grid/table-context/table-context-types.js +2 -0
  430. package/dist/data-components/table-grid/table-context/table-context-types.js.map +1 -0
  431. package/dist/data-components/table-grid/table-context/table-context.d.ts +2 -2
  432. package/dist/data-components/table-grid/table-context/table-context.js +4 -0
  433. package/dist/data-components/table-grid/table-context/table-context.js.map +1 -0
  434. package/dist/data-components/table-grid/table-grid-context.d.ts +2 -2
  435. package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
  436. package/dist/data-components/table-grid/table-grid-context.js +258 -0
  437. package/dist/data-components/table-grid/table-grid-context.js.map +1 -0
  438. package/dist/data-components/table-grid/table-grid-types.d.ts +9 -7
  439. package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
  440. package/dist/data-components/table-grid/table-grid-types.js +2 -0
  441. package/dist/data-components/table-grid/table-grid-types.js.map +1 -0
  442. package/dist/data-components/table-grid/table-grid.d.ts +1 -1
  443. package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
  444. package/dist/data-components/table-grid/table-grid.js +144 -0
  445. package/dist/data-components/table-grid/table-grid.js.map +1 -0
  446. package/dist/data-components/table-grid/table-utils.d.ts +1 -1
  447. package/dist/data-components/table-grid/table-utils.js +116 -0
  448. package/dist/data-components/table-grid/table-utils.js.map +1 -0
  449. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js +2 -0
  450. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js.map +1 -0
  451. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +1 -1
  452. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js +61 -0
  453. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js.map +1 -0
  454. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +2 -2
  455. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js +23 -0
  456. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js.map +1 -0
  457. package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +1 -1
  458. package/dist/experimental-components/filter-builder/filter-builder-types.js +2 -0
  459. package/dist/experimental-components/filter-builder/filter-builder-types.js.map +1 -0
  460. package/dist/experimental-components/filter-builder/filter-builder.d.ts +3 -2
  461. package/dist/experimental-components/filter-builder/filter-builder.js +139 -0
  462. package/dist/experimental-components/filter-builder/filter-builder.js.map +1 -0
  463. package/dist/framework-components/appbar/appbar-assets.js +5 -0
  464. package/dist/framework-components/appbar/appbar-assets.js.map +1 -0
  465. package/dist/framework-components/appbar/appbar-types.d.ts +1 -1
  466. package/dist/framework-components/appbar/appbar-types.js +2 -0
  467. package/dist/framework-components/appbar/appbar-types.js.map +1 -0
  468. package/dist/framework-components/appbar/appbar.d.ts +2 -2
  469. package/dist/framework-components/appbar/appbar.js +36 -0
  470. package/dist/framework-components/appbar/appbar.js.map +1 -0
  471. package/dist/framework-components/breadcrumbs/breadcrumbs-types.js +2 -0
  472. package/dist/framework-components/breadcrumbs/breadcrumbs-types.js.map +1 -0
  473. package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +2 -2
  474. package/dist/framework-components/breadcrumbs/breadcrumbs.js +31 -0
  475. package/dist/framework-components/breadcrumbs/breadcrumbs.js.map +1 -0
  476. package/dist/framework-components/drawer/drawer-types.d.ts +2 -2
  477. package/dist/framework-components/drawer/drawer-types.js +2 -0
  478. package/dist/framework-components/drawer/drawer-types.js.map +1 -0
  479. package/dist/framework-components/drawer/drawer.d.ts +2 -2
  480. package/dist/framework-components/drawer/drawer.js +10 -0
  481. package/dist/framework-components/drawer/drawer.js.map +1 -0
  482. package/dist/framework-components/scaffold/scaffold-context.d.ts +2 -2
  483. package/dist/framework-components/scaffold/scaffold-context.js +10 -0
  484. package/dist/framework-components/scaffold/scaffold-context.js.map +1 -0
  485. package/dist/framework-components/scaffold/scaffold-types.d.ts +1 -1
  486. package/dist/framework-components/scaffold/scaffold-types.js +2 -0
  487. package/dist/framework-components/scaffold/scaffold-types.js.map +1 -0
  488. package/dist/framework-components/scaffold/scaffold.d.ts +2 -2
  489. package/dist/framework-components/scaffold/scaffold.js +76 -0
  490. package/dist/framework-components/scaffold/scaffold.js.map +1 -0
  491. package/dist/framework-components/sidebar/sidebar-assets.js +4 -0
  492. package/dist/framework-components/sidebar/sidebar-assets.js.map +1 -0
  493. package/dist/framework-components/sidebar/sidebar-context.d.ts +2 -2
  494. package/dist/framework-components/sidebar/sidebar-context.js +9 -0
  495. package/dist/framework-components/sidebar/sidebar-context.js.map +1 -0
  496. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js +2 -0
  497. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js.map +1 -0
  498. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +1 -1
  499. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js +12 -0
  500. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js.map +1 -0
  501. package/dist/framework-components/sidebar/sidebar-types.d.ts +1 -1
  502. package/dist/framework-components/sidebar/sidebar-types.js +2 -0
  503. package/dist/framework-components/sidebar/sidebar-types.js.map +1 -0
  504. package/dist/framework-components/sidebar/sidebar.d.ts +3 -3
  505. package/dist/framework-components/sidebar/sidebar.js +42 -0
  506. package/dist/framework-components/sidebar/sidebar.js.map +1 -0
  507. package/dist/hooks/useDynamicVirtualList.d.ts +76 -0
  508. package/dist/hooks/useDynamicVirtualList.d.ts.map +1 -0
  509. package/dist/hooks/useDynamicVirtualList.js +208 -0
  510. package/dist/hooks/useDynamicVirtualList.js.map +1 -0
  511. package/dist/hooks/useFixedVirtualList.d.ts +35 -0
  512. package/dist/hooks/useFixedVirtualList.d.ts.map +1 -0
  513. package/dist/hooks/useFixedVirtualList.js +64 -0
  514. package/dist/hooks/useFixedVirtualList.js.map +1 -0
  515. package/dist/hooks/useShortcut.d.ts +1 -1
  516. package/dist/hooks/useShortcut.js +86 -0
  517. package/dist/hooks/useShortcut.js.map +1 -0
  518. package/dist/hooks/useTour/useTour-context-internal.d.ts +2 -2
  519. package/dist/hooks/useTour/useTour-context-internal.js +7 -0
  520. package/dist/hooks/useTour/useTour-context-internal.js.map +1 -0
  521. package/dist/hooks/useTour/useTour-context.d.ts +3 -3
  522. package/dist/hooks/useTour/useTour-context.js +54 -0
  523. package/dist/hooks/useTour/useTour-context.js.map +1 -0
  524. package/dist/hooks/useTour/useTour-types.d.ts +1 -1
  525. package/dist/hooks/useTour/useTour-types.js +2 -0
  526. package/dist/hooks/useTour/useTour-types.js.map +1 -0
  527. package/dist/hooks/useTour/useTour.d.ts +1 -1
  528. package/dist/hooks/useTour/useTour.js +408 -0
  529. package/dist/hooks/useTour/useTour.js.map +1 -0
  530. package/dist/hooks/useVirtualListScroll.d.ts +1 -1
  531. package/dist/hooks/useVirtualListScroll.js +79 -0
  532. package/dist/hooks/useVirtualListScroll.js.map +1 -0
  533. package/dist/index.d.ts +3 -0
  534. package/dist/index.d.ts.map +1 -1
  535. package/dist/index.js +63 -0
  536. package/dist/index.js.map +1 -0
  537. package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +1 -1
  538. package/dist/providers/ai-assistant/ai-assistant-prompts.js +98 -0
  539. package/dist/providers/ai-assistant/ai-assistant-prompts.js.map +1 -0
  540. package/dist/providers/ai-assistant/ai-assistant-types.js +5 -0
  541. package/dist/providers/ai-assistant/ai-assistant-types.js.map +1 -0
  542. package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +1 -1
  543. package/dist/providers/ai-assistant/ai-assistant-validator.js +74 -0
  544. package/dist/providers/ai-assistant/ai-assistant-validator.js.map +1 -0
  545. package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +1 -1
  546. package/dist/providers/ai-assistant/ai-chat-panel-types.js +2 -0
  547. package/dist/providers/ai-assistant/ai-chat-panel-types.js.map +1 -0
  548. package/dist/providers/ai-assistant/ai-chat-panel.d.ts +1 -1
  549. package/dist/providers/ai-assistant/ai-chat-panel.js +111 -0
  550. package/dist/providers/ai-assistant/ai-chat-panel.js.map +1 -0
  551. package/dist/providers/shortcut/shortcut-context.d.ts +2 -2
  552. package/dist/providers/shortcut/shortcut-context.js +7 -0
  553. package/dist/providers/shortcut/shortcut-context.js.map +1 -0
  554. package/dist/providers/shortcut/shortcut-provider.d.ts +1 -1
  555. package/dist/providers/shortcut/shortcut-provider.js +267 -0
  556. package/dist/providers/shortcut/shortcut-provider.js.map +1 -0
  557. package/dist/providers/theme/index.js +2 -0
  558. package/dist/providers/theme/index.js.map +1 -0
  559. package/dist/providers/theme/theme-provider-types.js +2 -0
  560. package/dist/providers/theme/theme-provider-types.js.map +1 -0
  561. package/dist/providers/theme/themeProvider.d.ts +2 -2
  562. package/dist/providers/theme/themeProvider.js +17 -0
  563. package/dist/providers/theme/themeProvider.js.map +1 -0
  564. package/dist/test/vitest.utils.js +2 -0
  565. package/dist/test/vitest.utils.js.map +1 -0
  566. package/dist/types/global-types.js +10 -0
  567. package/dist/types/global-types.js.map +1 -0
  568. package/dist/types/storybook-types.js +2 -0
  569. package/dist/types/storybook-types.js.map +1 -0
  570. package/dist/utility-components/avatar/avatar-types.d.ts +1 -1
  571. package/dist/utility-components/avatar/avatar-types.js +2 -0
  572. package/dist/utility-components/avatar/avatar-types.js.map +1 -0
  573. package/dist/utility-components/avatar/avatar.d.ts +2 -2
  574. package/dist/utility-components/avatar/avatar.js +10 -0
  575. package/dist/utility-components/avatar/avatar.js.map +1 -0
  576. package/dist/utility-components/chip/chip-types.d.ts +2 -2
  577. package/dist/utility-components/chip/chip-types.js +2 -0
  578. package/dist/utility-components/chip/chip-types.js.map +1 -0
  579. package/dist/utility-components/chip/chip.d.ts +2 -2
  580. package/dist/utility-components/chip/chip.js +11 -0
  581. package/dist/utility-components/chip/chip.js.map +1 -0
  582. package/dist/utility-components/helper-text/helper-text-types.d.ts +1 -1
  583. package/dist/utility-components/helper-text/helper-text-types.js +2 -0
  584. package/dist/utility-components/helper-text/helper-text-types.js.map +1 -0
  585. package/dist/utility-components/helper-text/helper-text.d.ts +1 -1
  586. package/dist/utility-components/helper-text/helper-text.js +12 -0
  587. package/dist/utility-components/helper-text/helper-text.js.map +1 -0
  588. package/dist/utility-components/icon/icon-assets.js +95 -0
  589. package/dist/utility-components/icon/icon-assets.js.map +1 -0
  590. package/dist/utility-components/icon/icon-types.d.ts +1 -1
  591. package/dist/utility-components/icon/icon-types.js +2 -0
  592. package/dist/utility-components/icon/icon-types.js.map +1 -0
  593. package/dist/utility-components/icon/icon.d.ts +2 -2
  594. package/dist/utility-components/icon/icon.js +28 -0
  595. package/dist/utility-components/icon/icon.js.map +1 -0
  596. package/dist/utility-components/label/label-types.js +2 -0
  597. package/dist/utility-components/label/label-types.js.map +1 -0
  598. package/dist/utility-components/label/label.d.ts +1 -1
  599. package/dist/utility-components/label/label.js +10 -0
  600. package/dist/utility-components/label/label.js.map +1 -0
  601. package/dist/utility-components/overlay-panel/overlay-panel-types.js +2 -0
  602. package/dist/utility-components/overlay-panel/overlay-panel-types.js.map +1 -0
  603. package/dist/utility-components/overlay-panel/overlay-panel.d.ts +2 -2
  604. package/dist/utility-components/overlay-panel/overlay-panel.js +98 -0
  605. package/dist/utility-components/overlay-panel/overlay-panel.js.map +1 -0
  606. package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +1 -1
  607. package/dist/utility-components/overlay-panel/use-focus-trap.js +61 -0
  608. package/dist/utility-components/overlay-panel/use-focus-trap.js.map +1 -0
  609. package/dist/utility-components/skeleton/skeleton-types.js +2 -0
  610. package/dist/utility-components/skeleton/skeleton-types.js.map +1 -0
  611. package/dist/utility-components/skeleton/skeleton.d.ts +2 -2
  612. package/dist/utility-components/skeleton/skeleton.js +14 -0
  613. package/dist/utility-components/skeleton/skeleton.js.map +1 -0
  614. package/dist/utility-components/stack/stack-types.js +2 -0
  615. package/dist/utility-components/stack/stack-types.js.map +1 -0
  616. package/dist/utility-components/stack/stack.d.ts +2 -2
  617. package/dist/utility-components/stack/stack.js +12 -0
  618. package/dist/utility-components/stack/stack.js.map +1 -0
  619. package/dist/utility-components/toast/toast-types.d.ts +1 -1
  620. package/dist/utility-components/toast/toast-types.js +2 -0
  621. package/dist/utility-components/toast/toast-types.js.map +1 -0
  622. package/dist/utility-components/toast/toast.d.ts +2 -2
  623. package/dist/utility-components/toast/toast.js +21 -0
  624. package/dist/utility-components/toast/toast.js.map +1 -0
  625. package/dist/utils/general.d.ts +1 -1
  626. package/dist/utils/general.js +27 -0
  627. package/dist/utils/general.js.map +1 -0
  628. package/dist/utils/shortcut-utils.js +164 -0
  629. package/dist/utils/shortcut-utils.js.map +1 -0
  630. package/package.json +1 -1
  631. package/dist/assets/svg/alert.svg +0 -1
  632. package/dist/assets/svg/arrow-down-up.svg +0 -1
  633. package/dist/assets/svg/arrow-down.svg +0 -1
  634. package/dist/assets/svg/arrow-left.svg +0 -1
  635. package/dist/assets/svg/arrow-right.svg +0 -1
  636. package/dist/assets/svg/arrow-up.svg +0 -1
  637. package/dist/assets/svg/arrow_drop_down.svg +0 -1
  638. package/dist/assets/svg/calendar.svg +0 -1
  639. package/dist/assets/svg/check.svg +0 -1
  640. package/dist/assets/svg/chevron-down.svg +0 -1
  641. package/dist/assets/svg/chevron-right.svg +0 -1
  642. package/dist/assets/svg/clipboard.svg +0 -1
  643. package/dist/assets/svg/close.svg +0 -1
  644. package/dist/assets/svg/copy.svg +0 -1
  645. package/dist/assets/svg/cursor.svg +0 -1
  646. package/dist/assets/svg/cut.svg +0 -1
  647. package/dist/assets/svg/delete.svg +0 -1
  648. package/dist/assets/svg/dock-left-arrow.svg +0 -1
  649. package/dist/assets/svg/dock-right-arrow.svg +0 -1
  650. package/dist/assets/svg/document-outline.svg +0 -1
  651. package/dist/assets/svg/download.svg +0 -1
  652. package/dist/assets/svg/drag.svg +0 -1
  653. package/dist/assets/svg/error.svg +0 -1
  654. package/dist/assets/svg/expand-right.svg +0 -1
  655. package/dist/assets/svg/expand.svg +0 -1
  656. package/dist/assets/svg/eye.svg +0 -1
  657. package/dist/assets/svg/fullscreen.svg +0 -1
  658. package/dist/assets/svg/gear.svg +0 -1
  659. package/dist/assets/svg/groups.svg +0 -1
  660. package/dist/assets/svg/help.svg +0 -1
  661. package/dist/assets/svg/info.svg +0 -1
  662. package/dist/assets/svg/logo.svg +0 -9
  663. package/dist/assets/svg/menu.svg +0 -1
  664. package/dist/assets/svg/message-bubble-question-mark.svg +0 -1
  665. package/dist/assets/svg/pencil.svg +0 -1
  666. package/dist/assets/svg/plus.svg +0 -1
  667. package/dist/assets/svg/restio.svg +0 -5
  668. package/dist/assets/svg/search.svg +0 -1
  669. package/dist/assets/svg/send.svg +0 -1
  670. package/dist/assets/svg/shrink-right.svg +0 -1
  671. package/dist/assets/svg/sidebar.svg +0 -1
  672. package/dist/assets/svg/terminal.svg +0 -1
  673. package/dist/assets/svg/timer.svg +0 -1
  674. package/dist/assets/svg/warning.svg +0 -1
  675. package/dist/assets/svg/zoom-minus.svg +0 -1
  676. package/dist/assets/svg/zoom-plus.svg +0 -1
  677. package/dist/restio-ui.cjs.js +0 -109
  678. package/dist/restio-ui.es.js +0 -34377
  679. package/dist/ui.css +0 -2
@@ -0,0 +1,140 @@
1
+ export class Tokenizer {
2
+ input;
3
+ position;
4
+ length;
5
+ constructor(input) {
6
+ this.input = input;
7
+ this.position = 0;
8
+ this.length = input.length;
9
+ }
10
+ tokenize() {
11
+ const tokens = [];
12
+ while (this.position < this.length) {
13
+ const char = this.input[this.position];
14
+ if (/\s/.test(char)) {
15
+ this.position++;
16
+ continue;
17
+ }
18
+ if (this.isDigit(char)) {
19
+ tokens.push(this.readNumber());
20
+ continue;
21
+ }
22
+ if (this.isAlpha(char)) {
23
+ tokens.push(this.readIdentifierOrKeyword());
24
+ continue;
25
+ }
26
+ if (char === '"' || char === "'") {
27
+ tokens.push(this.readString(char));
28
+ continue;
29
+ }
30
+ if (this.isOperatorStart(char)) {
31
+ tokens.push(this.readOperator());
32
+ continue;
33
+ }
34
+ if (char === '(') {
35
+ tokens.push({ type: 'LPAREN', value: '(', position: this.position++ });
36
+ continue;
37
+ }
38
+ if (char === ')') {
39
+ tokens.push({ type: 'RPAREN', value: ')', position: this.position++ });
40
+ continue;
41
+ }
42
+ if (char === ',') {
43
+ tokens.push({ type: 'COMMA', value: ',', position: this.position++ });
44
+ continue;
45
+ }
46
+ throw new Error(`Unexpected character: ${char} at position ${this.position}`);
47
+ }
48
+ tokens.push({ type: 'EOF', value: '', position: this.position });
49
+ return tokens;
50
+ }
51
+ isDigit(char) {
52
+ return /[0-9]/.test(char);
53
+ }
54
+ isAlpha(char) {
55
+ return /[a-zA-Z_]/.test(char);
56
+ }
57
+ isOperatorStart(char) {
58
+ return /[+\-*/%><=!&|]/.test(char);
59
+ }
60
+ readNumber() {
61
+ const start = this.position;
62
+ let hasDot = false;
63
+ while (this.position < this.length) {
64
+ const char = this.input[this.position];
65
+ if (this.isDigit(char)) {
66
+ this.position++;
67
+ }
68
+ else if (char === '.' && !hasDot) {
69
+ hasDot = true;
70
+ this.position++;
71
+ }
72
+ else {
73
+ break;
74
+ }
75
+ }
76
+ return {
77
+ type: 'NUMBER',
78
+ value: this.input.slice(start, this.position),
79
+ position: start
80
+ };
81
+ }
82
+ readIdentifierOrKeyword() {
83
+ const start = this.position;
84
+ while (this.position < this.length && (this.isAlpha(this.input[this.position]) || this.isDigit(this.input[this.position]))) {
85
+ this.position++;
86
+ }
87
+ const value = this.input.slice(start, this.position);
88
+ // Handle logical operators as keywords if needed, or treat them as operators
89
+ if (['AND', 'OR', 'NOT'].includes(value.toUpperCase())) {
90
+ return {
91
+ type: 'OPERATOR',
92
+ value: value.toUpperCase(),
93
+ position: start
94
+ };
95
+ }
96
+ return {
97
+ type: 'IDENTIFIER',
98
+ value,
99
+ position: start
100
+ };
101
+ }
102
+ readString(quote) {
103
+ const start = this.position;
104
+ this.position++; // Skip opening quote
105
+ while (this.position < this.length && this.input[this.position] !== quote) {
106
+ this.position++;
107
+ }
108
+ if (this.position >= this.length) {
109
+ throw new Error('Unterminated string literal');
110
+ }
111
+ this.position++; // Skip closing quote
112
+ return {
113
+ type: 'STRING',
114
+ value: this.input.slice(start + 1, this.position - 1),
115
+ position: start
116
+ };
117
+ }
118
+ readOperator() {
119
+ const start = this.position;
120
+ const char = this.input[this.position];
121
+ // Handle multi-char operators
122
+ if (char === '>' || char === '<' || char === '!' || char === '=') {
123
+ if (this.input[this.position + 1] === '=') {
124
+ this.position += 2;
125
+ return { type: 'OPERATOR', value: char + '=', position: start };
126
+ }
127
+ }
128
+ if (char === '&' && this.input[this.position + 1] === '&') {
129
+ this.position += 2;
130
+ return { type: 'OPERATOR', value: '&&', position: start };
131
+ }
132
+ if (char === '|' && this.input[this.position + 1] === '|') {
133
+ this.position += 2;
134
+ return { type: 'OPERATOR', value: '||', position: start };
135
+ }
136
+ this.position++;
137
+ return { type: 'OPERATOR', value: char, position: start };
138
+ }
139
+ }
140
+ //# sourceMappingURL=tokenizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokenizer.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/formula/tokenizer.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,SAAS;IACZ,KAAK,CAAS;IACd,QAAQ,CAAS;IACjB,MAAM,CAAS;IAEvB,YAAY,KAAa;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,QAAQ;QACN,MAAM,MAAM,GAAY,EAAE,CAAC;QAE3B,OAAO,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YACnC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAEvC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACpB,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAChB,SAAS;YACX,CAAC;YAED,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;gBAC/B,SAAS;YACX,CAAC;YAED,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,CAAC,CAAC;gBAC5C,SAAS;YACX,CAAC;YAED,IAAI,IAAI,KAAK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AK,EAAE,CAAC;IAC5D,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/formula/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { ColumnDef } from '../../table-grid-types';
1
+ import { ColumnDef } from "../../table-grid-types";
2
2
  export interface GroupPanelProps<TData> {
3
3
  grouping: string[];
4
4
  columns: ColumnDef<TData>[];
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=group-panel-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-panel-types.js","sourceRoot":"","sources":["../../../../../src/data-components/table-grid/header/grouping/group-panel-types.ts"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
- import { GroupPanelProps } from './group-panel-types';
1
+ import { GroupPanelProps } from "./group-panel-types";
2
2
  export declare function GroupPanel<TData>({ grouping, columns, onGroupingChange }: GroupPanelProps<TData>): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=group-panel.d.ts.map
@@ -0,0 +1,91 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /* eslint-disable no-param-reassign */
3
+ import React, { useState, useRef } from "react";
4
+ import { Chip } from "../../../../utility-components/chip/chip";
5
+ import styles from "./group-panel.module.css";
6
+ import Typography from "../../../../components/typography/typography";
7
+ import { Icon } from "../../../../utility-components/icon/icon";
8
+ export function GroupPanel({ grouping, columns, onGroupingChange }) {
9
+ const [dropTarget, setDropTarget] = useState(null);
10
+ const [dragLabel, setDragLabel] = useState(null);
11
+ const containerRef = useRef(null);
12
+ const handleRemoveGroup = (columnId) => {
13
+ onGroupingChange(grouping.filter((id) => id !== columnId));
14
+ };
15
+ const handleDragStart = (e, index) => {
16
+ e.dataTransfer.setData("application/x-restio-group-index", String(index));
17
+ e.dataTransfer.effectAllowed = "move";
18
+ const col = columns.find((c) => (c.id || c.accessorKey) === grouping[index]);
19
+ setDragLabel(col?.header ? String(col.header) : (grouping[index] ?? null));
20
+ };
21
+ const handleDragEnd = () => {
22
+ setDropTarget(null);
23
+ setDragLabel(null);
24
+ };
25
+ // Gestione drag-over basata su tutte le chip
26
+ const handleDragOver = (e) => {
27
+ e.preventDefault();
28
+ e.stopPropagation();
29
+ e.dataTransfer.dropEffect = "move";
30
+ const container = containerRef.current;
31
+ if (!container)
32
+ return;
33
+ const chips = Array.from(container.querySelectorAll("[data-chip]"));
34
+ const mouseX = e.clientX;
35
+ let newIndex = chips.length;
36
+ for (let i = 0; i < chips.length; i++) {
37
+ const rect = chips[i].getBoundingClientRect();
38
+ const center = rect.left + rect.width / 2;
39
+ if (mouseX < center) {
40
+ newIndex = i;
41
+ break;
42
+ }
43
+ }
44
+ setDropTarget((prev) => {
45
+ if (prev?.index === newIndex)
46
+ return prev;
47
+ return { index: newIndex };
48
+ });
49
+ };
50
+ const handleDrop = (e) => {
51
+ e.preventDefault();
52
+ e.stopPropagation();
53
+ const targetIndex = dropTarget?.index ?? grouping.length;
54
+ setDropTarget(null);
55
+ const reorderIndexStr = e.dataTransfer.getData("application/x-restio-group-index");
56
+ if (reorderIndexStr) {
57
+ const sourceIndex = parseInt(reorderIndexStr, 10);
58
+ if (isNaN(sourceIndex) || sourceIndex === targetIndex)
59
+ return;
60
+ const newGrouping = [...grouping];
61
+ const [movedItem] = newGrouping.splice(sourceIndex, 1);
62
+ // Swap logic: se sourceIndex < targetIndex, target si sposta di -1
63
+ const adjustedTargetIndex = sourceIndex < targetIndex ? targetIndex - 1 : targetIndex;
64
+ newGrouping.splice(adjustedTargetIndex, 0, movedItem);
65
+ onGroupingChange(newGrouping);
66
+ return;
67
+ }
68
+ // Nuovo column drag
69
+ const columnId = e.dataTransfer.getData("text/plain");
70
+ if (columnId && !grouping.includes(columnId)) {
71
+ const newGrouping = [...grouping];
72
+ newGrouping.splice(targetIndex, 0, columnId);
73
+ onGroupingChange(newGrouping);
74
+ }
75
+ setDragLabel(null);
76
+ };
77
+ const ghostChip = dragLabel ? (_jsx(Chip, { draggable: true, className: styles["rst-chip-ghost"], children: String(dragLabel) })) : null;
78
+ return (_jsxs("div", { ref: containerRef, className: styles["rst-group-panel"], onDrop: handleDrop, onDragOver: handleDragOver, children: [_jsx("div", { className: styles["rst-group-panel-indicator"], children: grouping.length === 0 ? _jsx(Typography, { variant: "caption", children: "(Drag to reorder)" }) : _jsx(Icon, { src: "groups" }) }), grouping.map((columnId, index) => {
79
+ const column = columns.find((c) => (c.id || c.accessorKey) === columnId);
80
+ const label = column?.header || columnId;
81
+ // Swap target: se stiamo draggando una chip già presente e siamo sopra un’altra
82
+ const isSwapTarget = dropTarget?.index === index && dragLabel && grouping.includes(dragLabel);
83
+ // Mostra ghost se target è tra le chip (solo per nuovi elementi o swap visivo)
84
+ const showGhostBefore = dropTarget?.index === index && (!grouping.includes(dragLabel) || !isSwapTarget);
85
+ return (_jsxs(React.Fragment, { children: [showGhostBefore && ghostChip, _jsx(Chip, { "data-chip": true, draggable: true, onDragStart: (e) => handleDragStart(e, index), onDragEnd: handleDragEnd, onRemove: (e) => {
86
+ e.stopPropagation();
87
+ handleRemoveGroup(columnId);
88
+ }, children: label }), grouping.length > 1 && index < grouping.length - 1 && _jsx(Icon, { src: "arrow-right" })] }, columnId));
89
+ }), dropTarget?.index === grouping.length && ghostChip] }));
90
+ }
91
+ //# sourceMappingURL=group-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-panel.js","sourceRoot":"","sources":["../../../../../src/data-components/table-grid/header/grouping/group-panel.tsx"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChE,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAE9C,OAAO,UAAU,MAAM,8CAA8C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SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gCACd,CAAC,CAAC,eAAe,EAAE,CAAC;gCACpB,iBAAiB,CAAC,QAAQ,CAAC,CAAC;4BAC9B,CAAC,YAEA,KAAK,GACD,EAEN,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,KAAC,IAAI,IAAC,GAAG,EAAC,aAAa,GAAG,KAhB9D,QAAQ,CAiBZ,CAClB,CAAC;YACJ,CAAC,CAAC,EAGD,UAAU,EAAE,KAAK,KAAK,QAAQ,CAAC,MAAM,IAAI,SAAS,IAC/C,CACP,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from "react";
2
2
  interface ColumnHeaderMenuProps {
3
3
  readonly columnId: string;
4
4
  readonly isOpen: boolean;
@@ -0,0 +1,84 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { MenuComponent } from "../../../components/menu/anchored-navigation-menu";
3
+ import { useTable } from "../hooks/use-table";
4
+ export function ColumnHeaderMenu({ columnId, isOpen, onClose, anchor }) {
5
+ const { state, setSorting, toggleColumnVisibility, setPinColumn } = useTable();
6
+ const items = [
7
+ {
8
+ id: "pin",
9
+ label: "Pin Column",
10
+ leadingVisual: "pin",
11
+ children: [
12
+ {
13
+ id: "pin-left",
14
+ label: "Pin Left",
15
+ leadingVisual: "arrow-left-to-line",
16
+ onClick: () => {
17
+ setPinColumn(columnId, "left");
18
+ },
19
+ },
20
+ {
21
+ id: "pin-right",
22
+ label: "Pin Right",
23
+ leadingVisual: "arrow-right-to-line",
24
+ onClick: () => {
25
+ setPinColumn(columnId, "right");
26
+ },
27
+ },
28
+ {
29
+ id: "pin-none",
30
+ label: "No Pin",
31
+ leadingVisual: "pin-off",
32
+ onClick: () => {
33
+ setPinColumn(columnId, false);
34
+ },
35
+ },
36
+ ],
37
+ },
38
+ {
39
+ id: "sort",
40
+ label: "Sort",
41
+ leadingVisual: "arrow-down-up",
42
+ children: [
43
+ {
44
+ id: "sort-asc",
45
+ label: "Ascending",
46
+ leadingVisual: "arrow-up-narrow-wide",
47
+ onClick: () => {
48
+ setSorting([{ id: columnId, desc: false }]);
49
+ },
50
+ },
51
+ {
52
+ id: "sort-desc",
53
+ label: "Descending",
54
+ leadingVisual: "arrow-down-wide-narrow",
55
+ onClick: () => {
56
+ setSorting([{ id: columnId, desc: true }]);
57
+ },
58
+ },
59
+ {
60
+ id: "sort-none",
61
+ label: "No Sort",
62
+ leadingVisual: "x",
63
+ onClick: () => {
64
+ setSorting(state.sorting.filter((s) => s.id !== columnId));
65
+ },
66
+ },
67
+ ],
68
+ },
69
+ { id: "sep", type: "separator" },
70
+ {
71
+ id: "hide",
72
+ label: "Hide Column",
73
+ leadingVisual: "eye-off",
74
+ onClick: () => {
75
+ toggleColumnVisibility(columnId);
76
+ },
77
+ },
78
+ ];
79
+ return (_jsx(MenuComponent, { items: items, anchor: anchor, isOpen: isOpen, onClose: onClose, isClosingOnSelect: true, onItemClick: (item) => {
80
+ console.log(item);
81
+ item.onClick?.(item);
82
+ }, variant: "flyout", position: "center", align: "bottom", width: 220 }));
83
+ }
84
+ //# sourceMappingURL=table-grid-column-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-grid-column-menu.js","sourceRoot":"","sources":["../../../../src/data-components/table-grid/header/table-grid-column-menu.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAElF,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAS9C,MAAM,UAAU,gBAAgB,CAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAyB;IAClG,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,sBAAsB,EAAE,YAAY,EAAE,GAAG,QAAQ,EAAS,CAAC;IAEtF,MAAM,KAAK,GAAe;Q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WAAW;oBACf,KAAK,EAAE,SAAS;oBAChB,aAAa,EAAE,GAAG;oBAClB,OAAO,EAAE,GAAG,EAAE;wBACZ,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC;oBAC7D,CAAC;iBACF;aACF;SACF;QACD,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE;QAChC;YACE,EAAE,EAAE,MAAM;YACV,KAAK,EAAE,aAAa;YACpB,aAAa,EAAE,SAAS;YACxB,OAAO,EAAE,GAAG,EAAE;gBACZ,sBAAsB,CAAC,QAAQ,CAAC,CAAC;YACnC,CAAC;SACF;KACF,CAAC;IAEF,OAAO,CACL,KAAC,aAAa,IACZ,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,IAAI,EACvB,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YACpB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAClB,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC,EACD,OAAO,EAAC,QAAQ,EAChB,QAAQ,EAAC,QAAQ,EACjB,KAAK,EAAC,QAAQ,EACd,KAAK,EAAE,GAAG,GACV,CACH,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ColumnOffsets } from '../table-grid-types';
1
+ import { ColumnOffsets } from "../table-grid-types";
2
2
  export interface TableGridHeaderProps {
3
3
  columnOffsets: ColumnOffsets;
4
4
  onGroupingChange?: (grouping: string[]) => void;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=table-grid-header-types.js.map
@@ -0,0 +1 @@
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,3 +1,3 @@
1
- import { TableGridHeaderProps } from './table-grid-header-types';
1
+ import { TableGridHeaderProps } from "./table-grid-header-types";
2
2
  export declare function TableGridHeader<TData>({ columnOffsets, onGroupingChange }: TableGridHeaderProps): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=table-grid-header.d.ts.map
@@ -0,0 +1,148 @@
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
@@ -0,0 +1 @@
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,eAA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B,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,3 +1,3 @@
1
- import { TableContextValue } from '../table-grid-types';
1
+ import { TableContextValue } from "../table-grid-types";
2
2
  export declare function useTable<TData>(): TableContextValue<TData>;
3
3
  //# sourceMappingURL=use-table.d.ts.map
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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,4 +1,4 @@
1
- import { ColumnDef, ColumnOffsets } from '../table-grid-types';
1
+ import { ColumnDef, ColumnOffsets } from "../table-grid-types";
2
2
  /** Width reserved for the selection checkbox column — must match the CSS value. */
3
3
  export declare const SELECTION_COLUMN_WIDTH = 40;
4
4
  /**