@gears-frontx/ui-kit 0.5.1 → 0.7.1

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 (1252) hide show
  1. package/README.md +2 -2
  2. package/dist/accordion.js +2 -34
  3. package/dist/accordion.js.map +1 -1
  4. package/dist/alert-dialog.js +2 -96
  5. package/dist/alert-dialog.js.map +1 -1
  6. package/dist/alert.js +2 -49
  7. package/dist/alert.js.map +1 -1
  8. package/dist/aspect-ratio.js +2 -18
  9. package/dist/aspect-ratio.js.map +1 -1
  10. package/dist/attachment.js +2 -181
  11. package/dist/attachment.js.map +1 -1
  12. package/dist/avatar.js +2 -86
  13. package/dist/avatar.js.map +1 -1
  14. package/dist/badge.js +2 -71
  15. package/dist/badge.js.map +1 -1
  16. package/dist/breadcrumb.js +2 -80
  17. package/dist/breadcrumb.js.map +1 -1
  18. package/dist/bubble.js +2 -94
  19. package/dist/bubble.js.map +1 -1
  20. package/dist/button-group.js +2 -60
  21. package/dist/button-group.js.map +1 -1
  22. package/dist/button.js +2 -82
  23. package/dist/button.js.map +1 -1
  24. package/dist/calendar.js +2 -133
  25. package/dist/calendar.js.map +1 -1
  26. package/dist/card.js +2 -113
  27. package/dist/card.js.map +1 -1
  28. package/dist/carousel.js +2 -162
  29. package/dist/carousel.js.map +1 -1
  30. package/dist/chart.js +1 -268
  31. package/dist/chart.js.map +1 -1
  32. package/dist/checkbox.js +2 -20
  33. package/dist/checkbox.js.map +1 -1
  34. package/dist/chunks/components/accordion/accordion.js +28 -0
  35. package/dist/chunks/components/accordion/accordion.js.map +1 -0
  36. package/dist/chunks/components/accordion/accordion.module.css.js +21 -0
  37. package/dist/chunks/components/accordion/accordion.module.css.js.map +1 -0
  38. package/dist/chunks/components/alert/alert.js +44 -0
  39. package/dist/chunks/components/alert/alert.js.map +1 -0
  40. package/dist/chunks/components/alert/alert.module.css.js +21 -0
  41. package/dist/chunks/components/alert/alert.module.css.js.map +1 -0
  42. package/dist/chunks/components/alert-dialog/alert-dialog.js +92 -0
  43. package/dist/chunks/components/alert-dialog/alert-dialog.js.map +1 -0
  44. package/dist/chunks/components/alert-dialog/alert-dialog.module.css.js +21 -0
  45. package/dist/chunks/components/alert-dialog/alert-dialog.module.css.js.map +1 -0
  46. package/dist/chunks/components/aspect-ratio/aspect-ratio.js +18 -0
  47. package/dist/chunks/components/aspect-ratio/aspect-ratio.js.map +1 -0
  48. package/dist/chunks/components/aspect-ratio/aspect-ratio.module.css.js +9 -0
  49. package/dist/chunks/components/aspect-ratio/aspect-ratio.module.css.js.map +1 -0
  50. package/dist/chunks/components/attachment/attachment.js +167 -0
  51. package/dist/chunks/components/attachment/attachment.js.map +1 -0
  52. package/dist/chunks/components/attachment/attachment.module.css.js +39 -0
  53. package/dist/chunks/components/attachment/attachment.module.css.js.map +1 -0
  54. package/dist/chunks/components/avatar/avatar.js +71 -0
  55. package/dist/chunks/components/avatar/avatar.js.map +1 -0
  56. package/dist/chunks/components/avatar/avatar.module.css.js +41 -0
  57. package/dist/chunks/components/avatar/avatar.module.css.js.map +1 -0
  58. package/dist/chunks/components/badge/badge.js +57 -0
  59. package/dist/chunks/components/badge/badge.js.map +1 -0
  60. package/dist/chunks/components/badge/badge.module.css.js +39 -0
  61. package/dist/chunks/components/badge/badge.module.css.js.map +1 -0
  62. package/dist/chunks/components/breadcrumb/breadcrumb.js +73 -0
  63. package/dist/chunks/components/breadcrumb/breadcrumb.js.map +1 -0
  64. package/dist/chunks/components/breadcrumb/breadcrumb.module.css.js +23 -0
  65. package/dist/chunks/components/breadcrumb/breadcrumb.module.css.js.map +1 -0
  66. package/dist/chunks/components/bubble/bubble.js +81 -0
  67. package/dist/chunks/components/bubble/bubble.js.map +1 -0
  68. package/dist/chunks/components/bubble/bubble.module.css.js +37 -0
  69. package/dist/chunks/components/bubble/bubble.module.css.js.map +1 -0
  70. package/dist/chunks/components/button/button.js +67 -0
  71. package/dist/chunks/components/button/button.js.map +1 -0
  72. package/dist/chunks/components/button/button.module.css.js +41 -0
  73. package/dist/chunks/components/button/button.module.css.js.map +1 -0
  74. package/dist/chunks/components/button-group/button-group.js +57 -0
  75. package/dist/chunks/components/button-group/button-group.js.map +1 -0
  76. package/dist/chunks/components/button-group/button-group.module.css.js +17 -0
  77. package/dist/chunks/components/button-group/button-group.module.css.js.map +1 -0
  78. package/dist/chunks/components/calendar/calendar.js +106 -0
  79. package/dist/chunks/components/calendar/calendar.js.map +1 -0
  80. package/dist/chunks/components/calendar/calendar.module.css.js +65 -0
  81. package/dist/chunks/components/calendar/calendar.module.css.js.map +1 -0
  82. package/dist/chunks/components/card/card.js +100 -0
  83. package/dist/chunks/components/card/card.js.map +1 -0
  84. package/dist/chunks/components/card/card.module.css.js +37 -0
  85. package/dist/chunks/components/card/card.module.css.js.map +1 -0
  86. package/dist/chunks/components/carousel/carousel.js +158 -0
  87. package/dist/chunks/components/carousel/carousel.js.map +1 -0
  88. package/dist/chunks/components/carousel/carousel.module.css.js +19 -0
  89. package/dist/chunks/components/carousel/carousel.module.css.js.map +1 -0
  90. package/dist/chunks/components/chart/chart.js +249 -0
  91. package/dist/chunks/components/chart/chart.js.map +1 -0
  92. package/dist/chunks/components/chart/chart.module.css.js +51 -0
  93. package/dist/chunks/components/chart/chart.module.css.js.map +1 -0
  94. package/dist/chunks/components/checkbox/checkbox.js +16 -0
  95. package/dist/chunks/components/checkbox/checkbox.js.map +1 -0
  96. package/dist/chunks/components/checkbox/checkbox.module.css.js +17 -0
  97. package/dist/chunks/components/checkbox/checkbox.module.css.js.map +1 -0
  98. package/dist/chunks/components/code-block/code-block.js +132 -0
  99. package/dist/chunks/components/code-block/code-block.js.map +1 -0
  100. package/dist/chunks/components/code-block/code-block.module.css.js +49 -0
  101. package/dist/chunks/components/code-block/code-block.module.css.js.map +1 -0
  102. package/dist/chunks/components/collapsible/collapsible.js +20 -0
  103. package/dist/chunks/components/collapsible/collapsible.js.map +1 -0
  104. package/dist/chunks/components/collapsible/collapsible.module.css.js +11 -0
  105. package/dist/chunks/components/collapsible/collapsible.module.css.js.map +1 -0
  106. package/dist/chunks/components/combobox/combobox.js +158 -0
  107. package/dist/chunks/components/combobox/combobox.js.map +1 -0
  108. package/dist/chunks/components/combobox/combobox.module.css.js +53 -0
  109. package/dist/chunks/components/combobox/combobox.module.css.js.map +1 -0
  110. package/dist/chunks/components/command/command.js +77 -0
  111. package/dist/chunks/components/command/command.js.map +1 -0
  112. package/dist/chunks/components/command/command.module.css.js +33 -0
  113. package/dist/chunks/components/command/command.module.css.js.map +1 -0
  114. package/dist/chunks/components/context-menu/context-menu.js +189 -0
  115. package/dist/chunks/components/context-menu/context-menu.js.map +1 -0
  116. package/dist/chunks/components/context-menu/context-menu.module.css.js +39 -0
  117. package/dist/chunks/components/context-menu/context-menu.module.css.js.map +1 -0
  118. package/dist/chunks/components/data-grid/components/data-grid-content.js +23 -0
  119. package/dist/chunks/components/data-grid/components/data-grid-content.js.map +1 -0
  120. package/dist/chunks/components/data-grid/components/data-grid-empty-state.js +19 -0
  121. package/dist/chunks/components/data-grid/components/data-grid-empty-state.js.map +1 -0
  122. package/dist/chunks/components/data-grid/components/data-grid-empty-state.module.Dj-_w0zs.css +1 -0
  123. package/dist/chunks/components/data-grid/components/data-grid-empty-state.module.css.js +9 -0
  124. package/dist/chunks/components/data-grid/components/data-grid-empty-state.module.css.js.map +1 -0
  125. package/dist/chunks/components/data-grid/components/data-grid-spinner.js +12 -0
  126. package/dist/chunks/components/data-grid/components/data-grid-spinner.js.map +1 -0
  127. package/dist/chunks/components/data-grid/components/data-grid-spinner.module.DK-b-DLO.css +1 -0
  128. package/dist/chunks/components/data-grid/components/data-grid-spinner.module.css.js +9 -0
  129. package/dist/chunks/components/data-grid/components/data-grid-spinner.module.css.js.map +1 -0
  130. package/dist/chunks/components/data-grid/components/filter-chip.js +24 -0
  131. package/dist/chunks/components/data-grid/components/filter-chip.js.map +1 -0
  132. package/dist/chunks/components/data-grid/components/filter-chip.module.css.js +13 -0
  133. package/dist/chunks/components/data-grid/components/filter-chip.module.css.js.map +1 -0
  134. package/dist/chunks/components/data-grid/components/filter-chip.module.mM_jL7aO.css +1 -0
  135. package/dist/chunks/components/data-grid/components/filter-control-area.js +14 -0
  136. package/dist/chunks/components/data-grid/components/filter-control-area.js.map +1 -0
  137. package/dist/chunks/components/data-grid/components/filter-control-area.module.css.js +10 -0
  138. package/dist/chunks/components/data-grid/components/filter-control-area.module.css.js.map +1 -0
  139. package/dist/chunks/components/data-grid/components/filter-control-area.module.oazHimWA.css +1 -0
  140. package/dist/chunks/components/data-grid/components/filter-options-search-input.js +29 -0
  141. package/dist/chunks/components/data-grid/components/filter-options-search-input.js.map +1 -0
  142. package/dist/chunks/components/data-grid/components/filter-popover-content.js +11 -0
  143. package/dist/chunks/components/data-grid/components/filter-popover-content.js.map +1 -0
  144. package/dist/chunks/components/data-grid/components/filter-popover-content.module.DzrnHFtZ.css +1 -0
  145. package/dist/chunks/components/data-grid/components/filter-popover-content.module.css.js +9 -0
  146. package/dist/chunks/components/data-grid/components/filter-popover-content.module.css.js.map +1 -0
  147. package/dist/chunks/components/data-grid/components/filter-reset-button.js +27 -0
  148. package/dist/chunks/components/data-grid/components/filter-reset-button.js.map +1 -0
  149. package/dist/chunks/components/data-grid/components/filter-reset-button.module.-67D76EF.css +1 -0
  150. package/dist/chunks/components/data-grid/components/filter-reset-button.module.css.js +11 -0
  151. package/dist/chunks/components/data-grid/components/filter-reset-button.module.css.js.map +1 -0
  152. package/dist/chunks/components/data-grid/components/filter-scrollable-wrapper.js +10 -0
  153. package/dist/chunks/components/data-grid/components/filter-scrollable-wrapper.js.map +1 -0
  154. package/dist/chunks/components/data-grid/components/filter-scrollable-wrapper.module.Cze-YqHc.css +1 -0
  155. package/dist/chunks/components/data-grid/components/filter-scrollable-wrapper.module.css.js +9 -0
  156. package/dist/chunks/components/data-grid/components/filter-scrollable-wrapper.module.css.js.map +1 -0
  157. package/dist/chunks/components/data-grid/components/load-controlled.js +19 -0
  158. package/dist/chunks/components/data-grid/components/load-controlled.js.map +1 -0
  159. package/dist/chunks/components/data-grid/components/load-controlled.module.css.js +9 -0
  160. package/dist/chunks/components/data-grid/components/load-controlled.module.css.js.map +1 -0
  161. package/dist/chunks/components/data-grid/components/load-controlled.module.nids5tbv.css +1 -0
  162. package/dist/chunks/components/data-grid/components/segment.js +19 -0
  163. package/dist/chunks/components/data-grid/components/segment.js.map +1 -0
  164. package/dist/chunks/components/data-grid/create-data-grid.js +61 -0
  165. package/dist/chunks/components/data-grid/create-data-grid.js.map +1 -0
  166. package/dist/chunks/components/data-grid/data-grid.js +60 -0
  167. package/dist/chunks/components/data-grid/data-grid.js.map +1 -0
  168. package/dist/chunks/components/data-grid/data-grid.module.css.js +9 -0
  169. package/dist/chunks/components/data-grid/data-grid.module.css.js.map +1 -0
  170. package/dist/chunks/components/data-grid/data-grid.module.wZc8o37a.css +1 -0
  171. package/dist/chunks/{messages.js → components/data-grid/messages.js} +25 -5
  172. package/dist/chunks/components/data-grid/messages.js.map +1 -0
  173. package/dist/chunks/components/data-grid/plugins/actions/actions-plugin.js +30 -0
  174. package/dist/chunks/components/data-grid/plugins/actions/actions-plugin.js.map +1 -0
  175. package/dist/chunks/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.js +12 -0
  176. package/dist/chunks/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.js.map +1 -0
  177. package/dist/chunks/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.module.css.js +9 -0
  178. package/dist/chunks/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.module.css.js.map +1 -0
  179. package/dist/chunks/components/data-grid/plugins/actions-menu/actions-menu-plugin.js +34 -0
  180. package/dist/chunks/components/data-grid/plugins/actions-menu/actions-menu-plugin.js.map +1 -0
  181. package/dist/chunks/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.js +32 -0
  182. package/dist/chunks/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.js.map +1 -0
  183. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/data-grid-export-menu-item.js +64 -0
  184. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/data-grid-export-menu-item.js.map +1 -0
  185. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-cells.js +28 -0
  186. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-cells.js.map +1 -0
  187. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-menu-items.js +13 -0
  188. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-menu-items.js.map +1 -0
  189. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-service.js +147 -0
  190. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-service.js.map +1 -0
  191. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/csv-formatter.js +38 -0
  192. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/csv-formatter.js.map +1 -0
  193. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/excel-formatter.js +69 -0
  194. package/dist/chunks/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/excel-formatter.js.map +1 -0
  195. package/dist/chunks/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.js +27 -0
  196. package/dist/chunks/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.js.map +1 -0
  197. package/dist/chunks/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-content.js +68 -0
  198. package/dist/chunks/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-content.js.map +1 -0
  199. package/dist/chunks/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.js +105 -0
  200. package/dist/chunks/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.js.map +1 -0
  201. package/dist/chunks/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop.module.css.js +29 -0
  202. package/dist/chunks/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop.module.css.js.map +1 -0
  203. package/dist/chunks/components/data-grid/plugins/drag-drop/drag-data.js +15 -0
  204. package/dist/chunks/components/data-grid/plugins/drag-drop/drag-data.js.map +1 -0
  205. package/dist/chunks/components/data-grid/plugins/drag-drop/drag-drop-plugin.js +82 -0
  206. package/dist/chunks/components/data-grid/plugins/drag-drop/drag-drop-plugin.js.map +1 -0
  207. package/dist/chunks/components/data-grid/plugins/drag-drop/drag-preview.js +11 -0
  208. package/dist/chunks/components/data-grid/plugins/drag-drop/drag-preview.js.map +1 -0
  209. package/dist/chunks/components/data-grid/plugins/empty-state/empty-state-plugin.js +29 -0
  210. package/dist/chunks/components/data-grid/plugins/empty-state/empty-state-plugin.js.map +1 -0
  211. package/dist/chunks/components/data-grid/plugins/filters/components/adaptive-popover.js +27 -0
  212. package/dist/chunks/components/data-grid/plugins/filters/components/adaptive-popover.js.map +1 -0
  213. package/dist/chunks/components/data-grid/plugins/filters/components/adaptive-popover.module.DcNGXhAH.css +1 -0
  214. package/dist/chunks/components/data-grid/plugins/filters/components/adaptive-popover.module.css.js +9 -0
  215. package/dist/chunks/components/data-grid/plugins/filters/components/adaptive-popover.module.css.js.map +1 -0
  216. package/dist/chunks/components/data-grid/plugins/filters/components/all-filters-button.js +46 -0
  217. package/dist/chunks/components/data-grid/plugins/filters/components/all-filters-button.js.map +1 -0
  218. package/dist/chunks/components/data-grid/plugins/filters/components/all-filters-button.module.CR1KYuXn.css +1 -0
  219. package/dist/chunks/components/data-grid/plugins/filters/components/all-filters-button.module.css.js +9 -0
  220. package/dist/chunks/components/data-grid/plugins/filters/components/all-filters-button.module.css.js.map +1 -0
  221. package/dist/chunks/components/data-grid/plugins/filters/components/all-filters-dialog.js +23 -0
  222. package/dist/chunks/components/data-grid/plugins/filters/components/all-filters-dialog.js.map +1 -0
  223. package/dist/chunks/components/data-grid/plugins/filters/components/dialog-filter-item.js +42 -0
  224. package/dist/chunks/components/data-grid/plugins/filters/components/dialog-filter-item.js.map +1 -0
  225. package/dist/chunks/components/data-grid/plugins/filters/components/dialog-filter-item.module.B3c_OUtq.css +1 -0
  226. package/dist/chunks/components/data-grid/plugins/filters/components/dialog-filter-item.module.css.js +15 -0
  227. package/dist/chunks/components/data-grid/plugins/filters/components/dialog-filter-item.module.css.js.map +1 -0
  228. package/dist/chunks/components/data-grid/plugins/filters/components/filter-label.js +25 -0
  229. package/dist/chunks/components/data-grid/plugins/filters/components/filter-label.js.map +1 -0
  230. package/dist/chunks/components/data-grid/plugins/filters/components/filter-popover.js +40 -0
  231. package/dist/chunks/components/data-grid/plugins/filters/components/filter-popover.js.map +1 -0
  232. package/dist/chunks/components/data-grid/plugins/filters/components/filter-popover.module.XH3lJApo.css +1 -0
  233. package/dist/chunks/components/data-grid/plugins/filters/components/filter-popover.module.css.js +9 -0
  234. package/dist/chunks/components/data-grid/plugins/filters/components/filter-popover.module.css.js.map +1 -0
  235. package/dist/chunks/components/data-grid/plugins/filters/components/filter-single.js +11 -0
  236. package/dist/chunks/components/data-grid/plugins/filters/components/filter-single.js.map +1 -0
  237. package/dist/chunks/components/data-grid/plugins/filters/components/filters-bar.js +23 -0
  238. package/dist/chunks/components/data-grid/plugins/filters/components/filters-bar.js.map +1 -0
  239. package/dist/chunks/components/data-grid/plugins/filters/components/filters-bar.module.css.js +13 -0
  240. package/dist/chunks/components/data-grid/plugins/filters/components/filters-bar.module.css.js.map +1 -0
  241. package/dist/chunks/components/data-grid/plugins/filters/components/filters-bar.module.ktjQBXI0.css +1 -0
  242. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-dialog-filter.js +25 -0
  243. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-dialog-filter.js.map +1 -0
  244. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.js +68 -0
  245. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.js.map +1 -0
  246. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.module.B53xtE6B.css +1 -0
  247. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.module.css.js +13 -0
  248. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.module.css.js.map +1 -0
  249. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-quick-filter.js +25 -0
  250. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-quick-filter.js.map +1 -0
  251. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/filter-checkbox-group.js +26 -0
  252. package/dist/chunks/components/data-grid/plugins/filters/entities/checkbox-group/filter-checkbox-group.js.map +1 -0
  253. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-calendar.js +32 -0
  254. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-calendar.js.map +1 -0
  255. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-dialog-filter.js +26 -0
  256. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-dialog-filter.js.map +1 -0
  257. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-quick-filter.js +24 -0
  258. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-quick-filter.js.map +1 -0
  259. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-selection.js +9 -0
  260. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-selection.js.map +1 -0
  261. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-value.js +21 -0
  262. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/date-range-value.js.map +1 -0
  263. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/filter-date-range.js +24 -0
  264. package/dist/chunks/components/data-grid/plugins/filters/entities/date-range/filter-date-range.js.map +1 -0
  265. package/dist/chunks/components/data-grid/plugins/filters/entities/entities.js +8 -0
  266. package/dist/chunks/components/data-grid/plugins/filters/entities/entities.js.map +1 -0
  267. package/dist/chunks/components/data-grid/plugins/filters/entities/search/filter-search.js +15 -0
  268. package/dist/chunks/components/data-grid/plugins/filters/entities/search/filter-search.js.map +1 -0
  269. package/dist/chunks/components/data-grid/plugins/filters/entities/search/search-quick-filter.js +27 -0
  270. package/dist/chunks/components/data-grid/plugins/filters/entities/search/search-quick-filter.js.map +1 -0
  271. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/filter-tag-group.js +25 -0
  272. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/filter-tag-group.js.map +1 -0
  273. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/tag-group-dialog-filter.js +25 -0
  274. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/tag-group-dialog-filter.js.map +1 -0
  275. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/tag-group-list.js +42 -0
  276. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/tag-group-list.js.map +1 -0
  277. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/tag-group-list.module.DMknNrbm.css +1 -0
  278. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/tag-group-list.module.css.js +11 -0
  279. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/tag-group-list.module.css.js.map +1 -0
  280. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/tag-group-quick-filter.js +25 -0
  281. package/dist/chunks/components/data-grid/plugins/filters/entities/tag-group/tag-group-quick-filter.js.map +1 -0
  282. package/dist/chunks/components/data-grid/plugins/filters/entities/toggle/filter-toggle.js +15 -0
  283. package/dist/chunks/components/data-grid/plugins/filters/entities/toggle/filter-toggle.js.map +1 -0
  284. package/dist/chunks/components/data-grid/plugins/filters/entities/toggle/toggle-quick-filter.js +16 -0
  285. package/dist/chunks/components/data-grid/plugins/filters/entities/toggle/toggle-quick-filter.js.map +1 -0
  286. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/filter-tree.js +29 -0
  287. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/filter-tree.js.map +1 -0
  288. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/resolve-filter-tree-value.js +16 -0
  289. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/resolve-filter-tree-value.js.map +1 -0
  290. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-dialog-filter.js +16 -0
  291. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-dialog-filter.js.map +1 -0
  292. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-list.js +30 -0
  293. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-list.js.map +1 -0
  294. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-quick-filter.js +16 -0
  295. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-quick-filter.js.map +1 -0
  296. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-radio-select-plugin.js +54 -0
  297. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-radio-select-plugin.js.map +1 -0
  298. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-radio-select-plugin.module.Bybt3yVC.css +1 -0
  299. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-radio-select-plugin.module.css.js +11 -0
  300. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/tree-radio-select-plugin.module.css.js.map +1 -0
  301. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/use-tree-search.js +37 -0
  302. package/dist/chunks/components/data-grid/plugins/filters/entities/tree/use-tree-search.js.map +1 -0
  303. package/dist/chunks/components/data-grid/plugins/filters/filters-plugin.js +103 -0
  304. package/dist/chunks/components/data-grid/plugins/filters/filters-plugin.js.map +1 -0
  305. package/dist/chunks/components/data-grid/plugins/filters/services/read-option-values.js +8 -0
  306. package/dist/chunks/components/data-grid/plugins/filters/services/read-option-values.js.map +1 -0
  307. package/dist/chunks/components/data-grid/plugins/filters/services/use-async-filter-search.js +24 -0
  308. package/dist/chunks/components/data-grid/plugins/filters/services/use-async-filter-search.js.map +1 -0
  309. package/dist/chunks/components/data-grid/plugins/filters/services/use-filter-search.js +27 -0
  310. package/dist/chunks/components/data-grid/plugins/filters/services/use-filter-search.js.map +1 -0
  311. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-button.js +89 -0
  312. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-button.js.map +1 -0
  313. package/dist/chunks/{order.D7Jg_Mg8.css → components/data-grid/plugins/order/components/data-grid-order-button.module.BD_CGkvN.css} +1 -1
  314. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-button.module.css.js +13 -0
  315. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-button.module.css.js.map +1 -0
  316. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-header-cell-label.js +24 -0
  317. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-header-cell-label.js.map +1 -0
  318. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-header-cell-label.module.CPL0Ezlu.css +1 -0
  319. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-header-cell-label.module.css.js +9 -0
  320. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-header-cell-label.module.css.js.map +1 -0
  321. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-icon.js +25 -0
  322. package/dist/chunks/components/data-grid/plugins/order/components/data-grid-order-icon.js.map +1 -0
  323. package/dist/chunks/components/data-grid/plugins/order/order-plugin.js +129 -0
  324. package/dist/chunks/components/data-grid/plugins/order/order-plugin.js.map +1 -0
  325. package/dist/chunks/components/data-grid/plugins/order/services/order-labels.js +18 -0
  326. package/dist/chunks/components/data-grid/plugins/order/services/order-labels.js.map +1 -0
  327. package/dist/chunks/components/data-grid/plugins/order/services/order-option.js +12 -0
  328. package/dist/chunks/components/data-grid/plugins/order/services/order-option.js.map +1 -0
  329. package/dist/chunks/components/data-grid/plugins/pagination/components/data-grid-pagination.js +27 -0
  330. package/dist/chunks/components/data-grid/plugins/pagination/components/data-grid-pagination.js.map +1 -0
  331. package/dist/chunks/components/data-grid/plugins/pagination/components/data-grid-pagination.module.Dmd6RNxK.css +1 -0
  332. package/dist/chunks/components/data-grid/plugins/pagination/components/data-grid-pagination.module.css.js +9 -0
  333. package/dist/chunks/components/data-grid/plugins/pagination/components/data-grid-pagination.module.css.js.map +1 -0
  334. package/dist/chunks/components/data-grid/plugins/pagination/components/pager.js +100 -0
  335. package/dist/chunks/components/data-grid/plugins/pagination/components/pager.js.map +1 -0
  336. package/dist/chunks/components/data-grid/plugins/pagination/components/pager.module.BW26KvxI.css +1 -0
  337. package/dist/chunks/components/data-grid/plugins/pagination/components/pager.module.css.js +17 -0
  338. package/dist/chunks/components/data-grid/plugins/pagination/components/pager.module.css.js.map +1 -0
  339. package/dist/chunks/components/data-grid/plugins/pagination/pagination-plugin.js +83 -0
  340. package/dist/chunks/components/data-grid/plugins/pagination/pagination-plugin.js.map +1 -0
  341. package/dist/chunks/components/data-grid/plugins/pagination/services/pagination-items.js +49 -0
  342. package/dist/chunks/components/data-grid/plugins/pagination/services/pagination-items.js.map +1 -0
  343. package/dist/chunks/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.js +23 -0
  344. package/dist/chunks/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.js.map +1 -0
  345. package/dist/chunks/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.module.css.js +9 -0
  346. package/dist/chunks/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.module.css.js.map +1 -0
  347. package/dist/chunks/components/data-grid/plugins/row-actions/row-actions-plugin.js +35 -0
  348. package/dist/chunks/components/data-grid/plugins/row-actions/row-actions-plugin.js.map +1 -0
  349. package/dist/chunks/components/data-grid/plugins/row-click/components/data-grid-row-click.js +55 -0
  350. package/dist/chunks/components/data-grid/plugins/row-click/components/data-grid-row-click.js.map +1 -0
  351. package/dist/chunks/components/data-grid/plugins/row-click/components/data-grid-row-click.module.css.js +9 -0
  352. package/dist/chunks/components/data-grid/plugins/row-click/components/data-grid-row-click.module.css.js.map +1 -0
  353. package/dist/chunks/components/data-grid/plugins/row-click/row-click-plugin.js +19 -0
  354. package/dist/chunks/components/data-grid/plugins/row-click/row-click-plugin.js.map +1 -0
  355. package/dist/chunks/{row-click-utils.js → components/data-grid/plugins/row-click/row-click-utils.js} +6 -5
  356. package/dist/chunks/components/data-grid/plugins/row-click/row-click-utils.js.map +1 -0
  357. package/dist/chunks/components/data-grid/plugins/row-detail/components/data-grid-row-detail-header.js +12 -0
  358. package/dist/chunks/components/data-grid/plugins/row-detail/components/data-grid-row-detail-header.js.map +1 -0
  359. package/dist/chunks/components/data-grid/plugins/row-detail/components/data-grid-row-detail-row.js +41 -0
  360. package/dist/chunks/components/data-grid/plugins/row-detail/components/data-grid-row-detail-row.js.map +1 -0
  361. package/dist/chunks/components/data-grid/plugins/row-detail/components/data-grid-row-detail-toggle.js +32 -0
  362. package/dist/chunks/components/data-grid/plugins/row-detail/components/data-grid-row-detail-toggle.js.map +1 -0
  363. package/dist/chunks/components/data-grid/plugins/row-detail/components/data-grid-row-detail.module.BMHqCTxL.css +1 -0
  364. package/dist/chunks/components/data-grid/plugins/row-detail/components/data-grid-row-detail.module.css.js +19 -0
  365. package/dist/chunks/components/data-grid/plugins/row-detail/components/data-grid-row-detail.module.css.js.map +1 -0
  366. package/dist/chunks/components/data-grid/plugins/row-detail/row-detail-plugin.js +61 -0
  367. package/dist/chunks/components/data-grid/plugins/row-detail/row-detail-plugin.js.map +1 -0
  368. package/dist/chunks/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.js +15 -0
  369. package/dist/chunks/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.js.map +1 -0
  370. package/dist/chunks/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.module.css.js +9 -0
  371. package/dist/chunks/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.module.css.js.map +1 -0
  372. package/dist/chunks/components/data-grid/plugins/row-number/row-number-plugin.js +27 -0
  373. package/dist/chunks/components/data-grid/plugins/row-number/row-number-plugin.js.map +1 -0
  374. package/dist/chunks/components/data-grid/plugins/row-number/services/row-number-formula.js +8 -0
  375. package/dist/chunks/components/data-grid/plugins/row-number/services/row-number-formula.js.map +1 -0
  376. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.js +30 -0
  377. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.js.map +1 -0
  378. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.module.BksgyLuk.css +1 -0
  379. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.module.css.js +11 -0
  380. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.module.css.js.map +1 -0
  381. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-body.js +14 -0
  382. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-body.js.map +1 -0
  383. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-body.module.Cw1HlJDm.css +1 -0
  384. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-body.module.css.js +9 -0
  385. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-body.module.css.js.map +1 -0
  386. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-header.js +19 -0
  387. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-header.js.map +1 -0
  388. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-top.js +23 -0
  389. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-top.js.map +1 -0
  390. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-top.module.css.js +15 -0
  391. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-top.module.css.js.map +1 -0
  392. package/dist/chunks/components/data-grid/plugins/row-select/components/data-grid-row-select-top.module.y5T1W0Lg.css +1 -0
  393. package/dist/chunks/components/data-grid/plugins/row-select/row-select-plugin.js +231 -0
  394. package/dist/chunks/components/data-grid/plugins/row-select/row-select-plugin.js.map +1 -0
  395. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.js +35 -0
  396. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.js.map +1 -0
  397. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.js +43 -0
  398. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.js.map +1 -0
  399. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.js +29 -0
  400. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.js.map +1 -0
  401. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.js +43 -0
  402. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.js.map +1 -0
  403. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.js +50 -0
  404. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.js.map +1 -0
  405. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.module.css.js +29 -0
  406. package/dist/chunks/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.module.css.js.map +1 -0
  407. package/dist/chunks/components/data-grid/plugins/table-configuration/table-configuration-plugin.js +13 -0
  408. package/dist/chunks/components/data-grid/plugins/table-configuration/table-configuration-plugin.js.map +1 -0
  409. package/dist/chunks/components/data-grid/plugins/table-tree/components/data-grid-table-tree-body-cell-content.js +30 -0
  410. package/dist/chunks/components/data-grid/plugins/table-tree/components/data-grid-table-tree-body-cell-content.js.map +1 -0
  411. package/dist/chunks/components/data-grid/plugins/table-tree/components/data-grid-table-tree-expand.js +28 -0
  412. package/dist/chunks/components/data-grid/plugins/table-tree/components/data-grid-table-tree-expand.js.map +1 -0
  413. package/dist/chunks/components/data-grid/plugins/table-tree/components/data-grid-table-tree-row.js +55 -0
  414. package/dist/chunks/components/data-grid/plugins/table-tree/components/data-grid-table-tree-row.js.map +1 -0
  415. package/dist/chunks/components/data-grid/plugins/table-tree/components/data-grid-table-tree.module.css.js +23 -0
  416. package/dist/chunks/components/data-grid/plugins/table-tree/components/data-grid-table-tree.module.css.js.map +1 -0
  417. package/dist/chunks/components/data-grid/plugins/table-tree/table-tree-helpers.js +14 -0
  418. package/dist/chunks/components/data-grid/plugins/table-tree/table-tree-helpers.js.map +1 -0
  419. package/dist/chunks/components/data-grid/plugins/table-tree/table-tree-plugin.js +141 -0
  420. package/dist/chunks/components/data-grid/plugins/table-tree/table-tree-plugin.js.map +1 -0
  421. package/dist/chunks/components/data-grid/plugins/text-search/components/data-grid-text-search.js +43 -0
  422. package/dist/chunks/components/data-grid/plugins/text-search/components/data-grid-text-search.js.map +1 -0
  423. package/dist/chunks/components/data-grid/plugins/text-search/components/data-grid-text-search.module.css.js +11 -0
  424. package/dist/chunks/components/data-grid/plugins/text-search/components/data-grid-text-search.module.css.js.map +1 -0
  425. package/dist/chunks/components/data-grid/plugins/text-search/text-search-plugin.js +66 -0
  426. package/dist/chunks/components/data-grid/plugins/text-search/text-search-plugin.js.map +1 -0
  427. package/dist/chunks/{create-column-auto-size.js → components/data-grid/services/columns/create-column-auto-size.js} +9 -8
  428. package/dist/chunks/components/data-grid/services/columns/create-column-auto-size.js.map +1 -0
  429. package/dist/chunks/components/data-grid/services/core/core-service.js +22 -0
  430. package/dist/chunks/components/data-grid/services/core/core-service.js.map +1 -0
  431. package/dist/chunks/components/data-grid/services/core/data-grid-context.js +23 -0
  432. package/dist/chunks/components/data-grid/services/core/data-grid-context.js.map +1 -0
  433. package/dist/chunks/components/data-grid/services/core/data-grid-label-context.js +11 -0
  434. package/dist/chunks/components/data-grid/services/core/data-grid-label-context.js.map +1 -0
  435. package/dist/chunks/components/data-grid/services/core/data-grid-messages-context.js +26 -0
  436. package/dist/chunks/components/data-grid/services/core/data-grid-messages-context.js.map +1 -0
  437. package/dist/chunks/{data-grid-portal-container-context.js → components/data-grid/services/core/data-grid-portal-container-context.js} +7 -6
  438. package/dist/chunks/components/data-grid/services/core/data-grid-portal-container-context.js.map +1 -0
  439. package/dist/chunks/components/data-grid/services/hooked/hooked.js +15 -0
  440. package/dist/chunks/components/data-grid/services/hooked/hooked.js.map +1 -0
  441. package/dist/chunks/components/data-grid/services/internal/internal-helpers.js +6 -0
  442. package/dist/chunks/components/data-grid/services/internal/internal-helpers.js.map +1 -0
  443. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-content.js +18 -0
  444. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-content.js.map +1 -0
  445. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-content.module.BO8J1cNo.css +1 -0
  446. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-content.module.css.js +9 -0
  447. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-content.module.css.js.map +1 -0
  448. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-main-slot-selector.js +27 -0
  449. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-main-slot-selector.js.map +1 -0
  450. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-main.js +16 -0
  451. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-main.js.map +1 -0
  452. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-main.module.B3fZD1rH.css +1 -0
  453. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-main.module.css.js +9 -0
  454. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-main.module.css.js.map +1 -0
  455. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-slot.js +11 -0
  456. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-slot.js.map +1 -0
  457. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top-default.js +17 -0
  458. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top-default.js.map +1 -0
  459. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top-default.module.D4Hm6Sbm.css +1 -0
  460. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top-default.module.css.js +17 -0
  461. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top-default.module.css.js.map +1 -0
  462. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top.js +35 -0
  463. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top.js.map +1 -0
  464. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top.module.VXwHLv91.css +1 -0
  465. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top.module.css.js +11 -0
  466. package/dist/chunks/components/data-grid/services/layout/components/data-grid-layout-top.module.css.js.map +1 -0
  467. package/dist/chunks/components/data-grid/services/layout/components/toolbar-lines.js +30 -0
  468. package/dist/chunks/components/data-grid/services/layout/components/toolbar-lines.js.map +1 -0
  469. package/dist/chunks/components/data-grid/services/layout/data-grid-view.js +15 -0
  470. package/dist/chunks/components/data-grid/services/layout/data-grid-view.js.map +1 -0
  471. package/dist/chunks/components/data-grid/services/layout/layout-service.js +51 -0
  472. package/dist/chunks/components/data-grid/services/layout/layout-service.js.map +1 -0
  473. package/dist/chunks/components/data-grid/services/layout/layout-slot-ids.js +7 -0
  474. package/dist/chunks/components/data-grid/services/layout/layout-slot-ids.js.map +1 -0
  475. package/dist/chunks/components/data-grid/services/load/load-instance.js +76 -0
  476. package/dist/chunks/components/data-grid/services/load/load-instance.js.map +1 -0
  477. package/dist/chunks/components/data-grid/services/load/load-service.js +73 -0
  478. package/dist/chunks/components/data-grid/services/load/load-service.js.map +1 -0
  479. package/dist/chunks/components/data-grid/services/load/use-data-grid-loading.js +10 -0
  480. package/dist/chunks/components/data-grid/services/load/use-data-grid-loading.js.map +1 -0
  481. package/dist/chunks/components/data-grid/services/persistent-state/persistent-state-service.js +90 -0
  482. package/dist/chunks/components/data-grid/services/persistent-state/persistent-state-service.js.map +1 -0
  483. package/dist/chunks/components/data-grid/services/plugins/plugins-helpers.js +25 -0
  484. package/dist/chunks/components/data-grid/services/plugins/plugins-helpers.js.map +1 -0
  485. package/dist/chunks/components/data-grid/services/plugins/plugins-service.js +37 -0
  486. package/dist/chunks/components/data-grid/services/plugins/plugins-service.js.map +1 -0
  487. package/dist/chunks/components/data-grid/services/storage/storage-helpers.js +13 -0
  488. package/dist/chunks/components/data-grid/services/storage/storage-helpers.js.map +1 -0
  489. package/dist/chunks/components/data-grid/services/storage/storage-service.js +104 -0
  490. package/dist/chunks/components/data-grid/services/storage/storage-service.js.map +1 -0
  491. package/dist/chunks/components/data-grid/services/table/column-sort-state.js +24 -0
  492. package/dist/chunks/components/data-grid/services/table/column-sort-state.js.map +1 -0
  493. package/dist/chunks/components/data-grid/services/table/components/data-grid-body-cell-content.js +19 -0
  494. package/dist/chunks/components/data-grid/services/table/components/data-grid-body-cell-content.js.map +1 -0
  495. package/dist/chunks/components/data-grid/services/table/components/data-grid-cell.js +60 -0
  496. package/dist/chunks/components/data-grid/services/table/components/data-grid-cell.js.map +1 -0
  497. package/dist/chunks/components/data-grid/services/table/components/data-grid-cell.module.css.js +15 -0
  498. package/dist/chunks/components/data-grid/services/table/components/data-grid-cell.module.css.js.map +1 -0
  499. package/dist/chunks/components/data-grid/services/table/components/data-grid-content.js +9 -0
  500. package/dist/chunks/components/data-grid/services/table/components/data-grid-content.js.map +1 -0
  501. package/dist/chunks/components/data-grid/services/table/components/data-grid-extra-body-columns.js +23 -0
  502. package/dist/chunks/components/data-grid/services/table/components/data-grid-extra-body-columns.js.map +1 -0
  503. package/dist/chunks/components/data-grid/services/table/components/data-grid-extra-header-cell.js +29 -0
  504. package/dist/chunks/components/data-grid/services/table/components/data-grid-extra-header-cell.js.map +1 -0
  505. package/dist/chunks/components/data-grid/services/table/components/data-grid-extra-header-columns.js +25 -0
  506. package/dist/chunks/components/data-grid/services/table/components/data-grid-extra-header-columns.js.map +1 -0
  507. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-cell-content.js +10 -0
  508. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-cell-content.js.map +1 -0
  509. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-cell-label.js +12 -0
  510. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-cell-label.js.map +1 -0
  511. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-cell.js +60 -0
  512. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-cell.js.map +1 -0
  513. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-cell.module.BRqcrt13.css +1 -0
  514. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-cell.module.css.js +13 -0
  515. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-cell.module.css.js.map +1 -0
  516. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-group.js +31 -0
  517. package/dist/chunks/components/data-grid/services/table/components/data-grid-header-group.js.map +1 -0
  518. package/dist/chunks/components/data-grid/services/table/components/data-grid-row.js +39 -0
  519. package/dist/chunks/components/data-grid/services/table/components/data-grid-row.js.map +1 -0
  520. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-body.js +13 -0
  521. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-body.js.map +1 -0
  522. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-header.js +74 -0
  523. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-header.js.map +1 -0
  524. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-header.module.6E7f_VLO.css +1 -0
  525. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-header.module.css.js +9 -0
  526. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-header.module.css.js.map +1 -0
  527. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-record.js +13 -0
  528. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-record.js.map +1 -0
  529. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-records.js +12 -0
  530. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-records.js.map +1 -0
  531. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-slot.js +12 -0
  532. package/dist/chunks/components/data-grid/services/table/components/data-grid-table-slot.js.map +1 -0
  533. package/dist/chunks/components/data-grid/services/table/components/data-grid-table.js +39 -0
  534. package/dist/chunks/components/data-grid/services/table/components/data-grid-table.js.map +1 -0
  535. package/dist/chunks/components/data-grid/services/table/components/data-grid-table.module.CSesZ6vp.css +1 -0
  536. package/dist/chunks/components/data-grid/services/table/components/data-grid-table.module.css.js +17 -0
  537. package/dist/chunks/components/data-grid/services/table/components/data-grid-table.module.css.js.map +1 -0
  538. package/dist/chunks/{data-grid-record-context.js → components/data-grid/services/table/data-grid-record-context.js} +6 -5
  539. package/dist/chunks/components/data-grid/services/table/data-grid-record-context.js.map +1 -0
  540. package/dist/chunks/{ignore-row-click.js → components/data-grid/services/table/ignore-row-click.js} +4 -3
  541. package/dist/chunks/components/data-grid/services/table/ignore-row-click.js.map +1 -0
  542. package/dist/chunks/components/data-grid/services/table/resolve-body-cell-props.js +11 -0
  543. package/dist/chunks/components/data-grid/services/table/resolve-body-cell-props.js.map +1 -0
  544. package/dist/chunks/components/data-grid/services/table/resolve-column-style.js +44 -0
  545. package/dist/chunks/components/data-grid/services/table/resolve-column-style.js.map +1 -0
  546. package/dist/chunks/components/data-grid/services/table/table-columns-persistence.js +25 -0
  547. package/dist/chunks/components/data-grid/services/table/table-columns-persistence.js.map +1 -0
  548. package/dist/chunks/components/data-grid/services/table/table-columns.js +82 -0
  549. package/dist/chunks/components/data-grid/services/table/table-columns.js.map +1 -0
  550. package/dist/chunks/components/data-grid/services/table/table-context.js +9 -0
  551. package/dist/chunks/components/data-grid/services/table/table-context.js.map +1 -0
  552. package/dist/chunks/components/data-grid/services/table/table-extra-columns.js +74 -0
  553. package/dist/chunks/components/data-grid/services/table/table-extra-columns.js.map +1 -0
  554. package/dist/chunks/components/data-grid/services/table/table-header.js +80 -0
  555. package/dist/chunks/components/data-grid/services/table/table-header.js.map +1 -0
  556. package/dist/chunks/{table-helpers.js → components/data-grid/services/table/table-helpers.js} +6 -5
  557. package/dist/chunks/components/data-grid/services/table/table-helpers.js.map +1 -0
  558. package/dist/chunks/components/data-grid/services/table/table-min-content-width.js +25 -0
  559. package/dist/chunks/components/data-grid/services/table/table-min-content-width.js.map +1 -0
  560. package/dist/chunks/components/data-grid/services/table/table-service.js +158 -0
  561. package/dist/chunks/components/data-grid/services/table/table-service.js.map +1 -0
  562. package/dist/chunks/components/data-grid/services/table/table-slots.js +25 -0
  563. package/dist/chunks/components/data-grid/services/table/table-slots.js.map +1 -0
  564. package/dist/chunks/components/data-grid/services/table/table-sticky.js +117 -0
  565. package/dist/chunks/components/data-grid/services/table/table-sticky.js.map +1 -0
  566. package/dist/chunks/components/data-grid/services/table/table-store.js +24 -0
  567. package/dist/chunks/components/data-grid/services/table/table-store.js.map +1 -0
  568. package/dist/chunks/{table-types.js → components/data-grid/services/table/table-types.js} +5 -4
  569. package/dist/chunks/components/data-grid/services/table/table-types.js.map +1 -0
  570. package/dist/chunks/components/data-grid/tree/components/tree-actions.js +38 -0
  571. package/dist/chunks/components/data-grid/tree/components/tree-actions.js.map +1 -0
  572. package/dist/chunks/components/data-grid/tree/components/tree-actions.module.DQPl9i6K.css +1 -0
  573. package/dist/chunks/components/data-grid/tree/components/tree-actions.module.css.js +13 -0
  574. package/dist/chunks/components/data-grid/tree/components/tree-actions.module.css.js.map +1 -0
  575. package/dist/chunks/components/data-grid/tree/components/tree-content.js +13 -0
  576. package/dist/chunks/components/data-grid/tree/components/tree-content.js.map +1 -0
  577. package/dist/chunks/components/data-grid/tree/components/tree-layout-slot.js +17 -0
  578. package/dist/chunks/components/data-grid/tree/components/tree-layout-slot.js.map +1 -0
  579. package/dist/chunks/components/data-grid/tree/components/tree-left-slot.js +10 -0
  580. package/dist/chunks/components/data-grid/tree/components/tree-left-slot.js.map +1 -0
  581. package/dist/chunks/components/data-grid/tree/components/tree-left-slot.module.Cy5FpwQw.css +1 -0
  582. package/dist/chunks/components/data-grid/tree/components/tree-left-slot.module.css.js +9 -0
  583. package/dist/chunks/components/data-grid/tree/components/tree-left-slot.module.css.js.map +1 -0
  584. package/dist/chunks/components/data-grid/tree/components/tree-list-item.js +69 -0
  585. package/dist/chunks/components/data-grid/tree/components/tree-list-item.js.map +1 -0
  586. package/dist/chunks/components/data-grid/tree/components/tree-list-item.module.Bo4Xd0cG.css +1 -0
  587. package/dist/chunks/components/data-grid/tree/components/tree-list-item.module.css.js +15 -0
  588. package/dist/chunks/components/data-grid/tree/components/tree-list-item.module.css.js.map +1 -0
  589. package/dist/chunks/components/data-grid/tree/components/tree-main.js +31 -0
  590. package/dist/chunks/components/data-grid/tree/components/tree-main.js.map +1 -0
  591. package/dist/chunks/components/data-grid/tree/components/tree-main.module.css.js +9 -0
  592. package/dist/chunks/components/data-grid/tree/components/tree-main.module.css.js.map +1 -0
  593. package/dist/chunks/components/data-grid/tree/components/tree-main.module.xTzg4Rhi.css +1 -0
  594. package/dist/chunks/components/data-grid/tree/components/tree-node-content.js +19 -0
  595. package/dist/chunks/components/data-grid/tree/components/tree-node-content.js.map +1 -0
  596. package/dist/chunks/components/data-grid/tree/components/tree-node-directory-item.js +49 -0
  597. package/dist/chunks/components/data-grid/tree/components/tree-node-directory-item.js.map +1 -0
  598. package/dist/chunks/components/data-grid/tree/components/tree-node-directory-item.module.DUUvXFew.css +1 -0
  599. package/dist/chunks/components/data-grid/tree/components/tree-node-directory-item.module.css.js +11 -0
  600. package/dist/chunks/components/data-grid/tree/components/tree-node-directory-item.module.css.js.map +1 -0
  601. package/dist/chunks/components/data-grid/tree/components/tree-node-leaf.js +29 -0
  602. package/dist/chunks/components/data-grid/tree/components/tree-node-leaf.js.map +1 -0
  603. package/dist/chunks/components/data-grid/tree/components/tree-nodes.js +46 -0
  604. package/dist/chunks/components/data-grid/tree/components/tree-nodes.js.map +1 -0
  605. package/dist/chunks/components/data-grid/tree/components/tree-nodes.module.DboZTYNn.css +1 -0
  606. package/dist/chunks/components/data-grid/tree/components/tree-nodes.module.css.js +11 -0
  607. package/dist/chunks/components/data-grid/tree/components/tree-nodes.module.css.js.map +1 -0
  608. package/dist/chunks/components/data-grid/tree/components/tree-placeholder.js +21 -0
  609. package/dist/chunks/components/data-grid/tree/components/tree-placeholder.js.map +1 -0
  610. package/dist/chunks/components/data-grid/tree/components/tree-placeholder.module.CrNZwM1Y.css +1 -0
  611. package/dist/chunks/components/data-grid/tree/components/tree-placeholder.module.css.js +9 -0
  612. package/dist/chunks/components/data-grid/tree/components/tree-placeholder.module.css.js.map +1 -0
  613. package/dist/chunks/components/data-grid/tree/create-tree.js +45 -0
  614. package/dist/chunks/components/data-grid/tree/create-tree.js.map +1 -0
  615. package/dist/chunks/components/data-grid/tree/services/core/tree-context.js +23 -0
  616. package/dist/chunks/components/data-grid/tree/services/core/tree-context.js.map +1 -0
  617. package/dist/chunks/components/data-grid/tree/services/focus/focus-service.js +80 -0
  618. package/dist/chunks/components/data-grid/tree/services/focus/focus-service.js.map +1 -0
  619. package/dist/chunks/components/data-grid/tree/services/focus/navigation-helpers.js +23 -0
  620. package/dist/chunks/components/data-grid/tree/services/focus/navigation-helpers.js.map +1 -0
  621. package/dist/chunks/components/data-grid/tree/services/hooked/hooked.js +15 -0
  622. package/dist/chunks/components/data-grid/tree/services/hooked/hooked.js.map +1 -0
  623. package/dist/chunks/components/data-grid/tree/services/internal/internal-helpers.js +6 -0
  624. package/dist/chunks/components/data-grid/tree/services/internal/internal-helpers.js.map +1 -0
  625. package/dist/chunks/components/data-grid/tree/services/layout/layout-service.js +86 -0
  626. package/dist/chunks/components/data-grid/tree/services/layout/layout-service.js.map +1 -0
  627. package/dist/chunks/components/data-grid/tree/services/plugins/plugins-helpers.js +22 -0
  628. package/dist/chunks/components/data-grid/tree/services/plugins/plugins-helpers.js.map +1 -0
  629. package/dist/chunks/components/data-grid/tree/services/plugins/plugins-service.js +37 -0
  630. package/dist/chunks/components/data-grid/tree/services/plugins/plugins-service.js.map +1 -0
  631. package/dist/chunks/components/data-grid/tree/services/settings/settings-service.js +14 -0
  632. package/dist/chunks/components/data-grid/tree/services/settings/settings-service.js.map +1 -0
  633. package/dist/chunks/components/data-grid/tree/tree.js +32 -0
  634. package/dist/chunks/components/data-grid/tree/tree.js.map +1 -0
  635. package/dist/chunks/components/data-grid/tree-structure/tree-structure.js +193 -0
  636. package/dist/chunks/components/data-grid/tree-structure/tree-structure.js.map +1 -0
  637. package/dist/chunks/components/data-grid/utils/components-stack.js +20 -0
  638. package/dist/chunks/components/data-grid/utils/components-stack.js.map +1 -0
  639. package/dist/chunks/{debounce.js → components/data-grid/utils/debounce.js} +4 -3
  640. package/dist/chunks/components/data-grid/utils/debounce.js.map +1 -0
  641. package/dist/chunks/{deep-equal.js → components/data-grid/utils/deep-equal.js} +4 -3
  642. package/dist/chunks/components/data-grid/utils/deep-equal.js.map +1 -0
  643. package/dist/chunks/{hooked.js → components/data-grid/utils/hooked.js} +13 -12
  644. package/dist/chunks/components/data-grid/utils/hooked.js.map +1 -0
  645. package/dist/chunks/components/data-grid/utils/is-filter-value-active.js +8 -0
  646. package/dist/chunks/components/data-grid/utils/is-filter-value-active.js.map +1 -0
  647. package/dist/chunks/{is-record.js → components/data-grid/utils/is-record.js} +4 -3
  648. package/dist/chunks/components/data-grid/utils/is-record.js.map +1 -0
  649. package/dist/chunks/components/data-grid/utils/load-state.js +46 -0
  650. package/dist/chunks/components/data-grid/utils/load-state.js.map +1 -0
  651. package/dist/chunks/components/data-grid/utils/use-is-tablet-up.js +19 -0
  652. package/dist/chunks/components/data-grid/utils/use-is-tablet-up.js.map +1 -0
  653. package/dist/chunks/{use-latest.js → components/data-grid/utils/use-latest.js} +5 -4
  654. package/dist/chunks/components/data-grid/utils/use-latest.js.map +1 -0
  655. package/dist/chunks/components/data-table/data-table.js +155 -0
  656. package/dist/chunks/components/data-table/data-table.js.map +1 -0
  657. package/dist/chunks/components/data-table/data-table.module.css.js +23 -0
  658. package/dist/chunks/components/data-table/data-table.module.css.js.map +1 -0
  659. package/dist/chunks/components/date-picker/date-picker.js +174 -0
  660. package/dist/chunks/components/date-picker/date-picker.js.map +1 -0
  661. package/dist/chunks/components/date-picker/date-picker.module.css.js +11 -0
  662. package/dist/chunks/components/date-picker/date-picker.module.css.js.map +1 -0
  663. package/dist/chunks/components/description-list/description-list.js +69 -0
  664. package/dist/chunks/components/description-list/description-list.js.map +1 -0
  665. package/dist/chunks/components/description-list/description-list.module.css.js +27 -0
  666. package/dist/chunks/components/description-list/description-list.module.css.js.map +1 -0
  667. package/dist/chunks/components/dialog/dialog.js +63 -0
  668. package/dist/chunks/components/dialog/dialog.js.map +1 -0
  669. package/dist/chunks/components/dialog/dialog.module.css.js +23 -0
  670. package/dist/chunks/components/dialog/dialog.module.css.js.map +1 -0
  671. package/dist/chunks/components/drawer/drawer.js +110 -0
  672. package/dist/chunks/components/drawer/drawer.js.map +1 -0
  673. package/dist/chunks/components/drawer/drawer.module.css.js +33 -0
  674. package/dist/chunks/components/drawer/drawer.module.css.js.map +1 -0
  675. package/dist/chunks/components/dropdown-menu/dropdown-menu.js +153 -0
  676. package/dist/chunks/components/dropdown-menu/dropdown-menu.js.map +1 -0
  677. package/dist/chunks/components/dropdown-menu/dropdown-menu.module.css.js +39 -0
  678. package/dist/chunks/components/dropdown-menu/dropdown-menu.module.css.js.map +1 -0
  679. package/dist/chunks/components/empty/empty.js +60 -0
  680. package/dist/chunks/components/empty/empty.js.map +1 -0
  681. package/dist/chunks/components/empty/empty.module.css.js +29 -0
  682. package/dist/chunks/components/empty/empty.module.css.js.map +1 -0
  683. package/dist/chunks/components/field/field.js +95 -0
  684. package/dist/chunks/components/field/field.js.map +1 -0
  685. package/dist/chunks/components/field/field.module.css.js +43 -0
  686. package/dist/chunks/components/field/field.module.css.js.map +1 -0
  687. package/dist/chunks/components/grid/grid-config-check.js +43 -0
  688. package/dist/chunks/components/grid/grid-config-check.js.map +1 -0
  689. package/dist/chunks/components/grid/grid-config.js +21 -0
  690. package/dist/chunks/components/grid/grid-config.js.map +1 -0
  691. package/dist/chunks/components/grid/grid-default-config.json.js +17 -0
  692. package/dist/chunks/components/grid/grid-default-config.json.js.map +1 -0
  693. package/dist/chunks/components/grid/grid-solver.js +121 -0
  694. package/dist/chunks/components/grid/grid-solver.js.map +1 -0
  695. package/dist/chunks/components/grid/grid-steps.CiIpot7S.css +1 -0
  696. package/dist/chunks/components/grid/grid.js +59 -0
  697. package/dist/chunks/components/grid/grid.js.map +1 -0
  698. package/dist/chunks/components/grid/grid.module.Dk1hl4Un.css +1 -0
  699. package/dist/chunks/components/grid/grid.module.css.js +13 -0
  700. package/dist/chunks/components/grid/grid.module.css.js.map +1 -0
  701. package/dist/chunks/components/heading/heading.js +33 -0
  702. package/dist/chunks/components/heading/heading.js.map +1 -0
  703. package/dist/chunks/components/heading/heading.module.css.js +15 -0
  704. package/dist/chunks/components/heading/heading.module.css.js.map +1 -0
  705. package/dist/chunks/components/hover-card/hover-card.js +44 -0
  706. package/dist/chunks/components/hover-card/hover-card.js.map +1 -0
  707. package/dist/chunks/components/hover-card/hover-card.module.css.js +11 -0
  708. package/dist/chunks/components/hover-card/hover-card.module.css.js.map +1 -0
  709. package/dist/chunks/components/input/input.js +30 -0
  710. package/dist/chunks/components/input/input.js.map +1 -0
  711. package/dist/chunks/components/input/input.module.css.js +19 -0
  712. package/dist/chunks/components/input/input.module.css.js.map +1 -0
  713. package/dist/chunks/components/input-group/input-group.js +101 -0
  714. package/dist/chunks/components/input-group/input-group.js.map +1 -0
  715. package/dist/chunks/components/input-group/input-group.module.css.js +35 -0
  716. package/dist/chunks/components/input-group/input-group.module.css.js.map +1 -0
  717. package/dist/chunks/components/input-otp/input-otp.js +39 -0
  718. package/dist/chunks/components/input-otp/input-otp.js.map +1 -0
  719. package/dist/chunks/components/input-otp/input-otp.module.css.js +15 -0
  720. package/dist/chunks/components/input-otp/input-otp.module.css.js.map +1 -0
  721. package/dist/chunks/components/item/item.js +132 -0
  722. package/dist/chunks/components/item/item.js.map +1 -0
  723. package/dist/chunks/components/item/item.module.css.js +55 -0
  724. package/dist/chunks/components/item/item.module.css.js.map +1 -0
  725. package/dist/chunks/components/kbd/kbd.js +15 -0
  726. package/dist/chunks/components/kbd/kbd.js.map +1 -0
  727. package/dist/chunks/components/kbd/kbd.module.css.js +11 -0
  728. package/dist/chunks/components/kbd/kbd.module.css.js.map +1 -0
  729. package/dist/chunks/components/label/label.js +11 -0
  730. package/dist/chunks/components/label/label.js.map +1 -0
  731. package/dist/chunks/components/label/label.module.css.js +9 -0
  732. package/dist/chunks/components/label/label.module.css.js.map +1 -0
  733. package/dist/chunks/components/link/link.js +52 -0
  734. package/dist/chunks/components/link/link.js.map +1 -0
  735. package/dist/chunks/components/link/link.module.css.js +15 -0
  736. package/dist/chunks/components/link/link.module.css.js.map +1 -0
  737. package/dist/chunks/components/marker/marker.js +48 -0
  738. package/dist/chunks/components/marker/marker.js.map +1 -0
  739. package/dist/chunks/components/marker/marker.module.css.js +19 -0
  740. package/dist/chunks/components/marker/marker.module.css.js.map +1 -0
  741. package/dist/chunks/components/menubar/menubar.js +48 -0
  742. package/dist/chunks/components/menubar/menubar.js.map +1 -0
  743. package/dist/chunks/components/menubar/menubar.module.css.js +11 -0
  744. package/dist/chunks/components/menubar/menubar.module.css.js.map +1 -0
  745. package/dist/chunks/components/message/message.js +31 -0
  746. package/dist/chunks/components/message/message.js.map +1 -0
  747. package/dist/chunks/components/message/message.module.css.js +19 -0
  748. package/dist/chunks/components/message/message.module.css.js.map +1 -0
  749. package/dist/chunks/components/message-scroller/message-scroller.js +64 -0
  750. package/dist/chunks/components/message-scroller/message-scroller.js.map +1 -0
  751. package/dist/chunks/components/message-scroller/message-scroller.module.css.js +17 -0
  752. package/dist/chunks/components/message-scroller/message-scroller.module.css.js.map +1 -0
  753. package/dist/chunks/components/native-select/native-select.js +37 -0
  754. package/dist/chunks/components/native-select/native-select.js.map +1 -0
  755. package/dist/chunks/components/native-select/native-select.module.css.js +19 -0
  756. package/dist/chunks/components/native-select/native-select.module.css.js.map +1 -0
  757. package/dist/chunks/components/navigation-menu/navigation-menu.js +102 -0
  758. package/dist/chunks/components/navigation-menu/navigation-menu.js.map +1 -0
  759. package/dist/chunks/components/navigation-menu/navigation-menu.module.css.js +37 -0
  760. package/dist/chunks/components/navigation-menu/navigation-menu.module.css.js.map +1 -0
  761. package/dist/chunks/components/page-header/page-header.js +75 -0
  762. package/dist/chunks/components/page-header/page-header.js.map +1 -0
  763. package/dist/chunks/components/page-header/page-header.module.css.js +35 -0
  764. package/dist/chunks/components/page-header/page-header.module.css.js.map +1 -0
  765. package/dist/chunks/components/pagination/pagination.js +127 -0
  766. package/dist/chunks/components/pagination/pagination.js.map +1 -0
  767. package/dist/chunks/components/pagination/pagination.module.css.js +25 -0
  768. package/dist/chunks/components/pagination/pagination.module.css.js.map +1 -0
  769. package/dist/chunks/components/popover/popover.js +58 -0
  770. package/dist/chunks/components/popover/popover.js.map +1 -0
  771. package/dist/chunks/components/popover/popover.module.css.js +17 -0
  772. package/dist/chunks/components/popover/popover.module.css.js.map +1 -0
  773. package/dist/chunks/components/portal-container/portal-container.js +66 -0
  774. package/dist/chunks/components/portal-container/portal-container.js.map +1 -0
  775. package/dist/chunks/components/progress/progress.js +31 -0
  776. package/dist/chunks/components/progress/progress.js.map +1 -0
  777. package/dist/chunks/components/progress/progress.module.css.js +17 -0
  778. package/dist/chunks/components/progress/progress.module.css.js.map +1 -0
  779. package/dist/chunks/components/questionnaire/questionnaire.js +189 -0
  780. package/dist/chunks/components/questionnaire/questionnaire.js.map +1 -0
  781. package/dist/chunks/components/questionnaire/questionnaire.module.css.js +47 -0
  782. package/dist/chunks/components/questionnaire/questionnaire.module.css.js.map +1 -0
  783. package/dist/chunks/components/radio-group/radio-group.js +17 -0
  784. package/dist/chunks/components/radio-group/radio-group.js.map +1 -0
  785. package/dist/chunks/components/radio-group/radio-group.module.css.js +15 -0
  786. package/dist/chunks/components/radio-group/radio-group.module.css.js.map +1 -0
  787. package/dist/chunks/components/resizable/resizable.js +21 -0
  788. package/dist/chunks/components/resizable/resizable.js.map +1 -0
  789. package/dist/chunks/components/resizable/resizable.module.css.js +13 -0
  790. package/dist/chunks/components/resizable/resizable.module.css.js.map +1 -0
  791. package/dist/chunks/components/scroll-area/scroll-area.js +28 -0
  792. package/dist/chunks/components/scroll-area/scroll-area.js.map +1 -0
  793. package/dist/chunks/components/scroll-area/scroll-area.module.css.js +15 -0
  794. package/dist/chunks/components/scroll-area/scroll-area.module.css.js.map +1 -0
  795. package/dist/chunks/components/select/select.js +127 -0
  796. package/dist/chunks/components/select/select.js.map +1 -0
  797. package/dist/chunks/components/select/select.module.css.js +47 -0
  798. package/dist/chunks/components/select/select.module.css.js.map +1 -0
  799. package/dist/chunks/components/separator/separator.js +12 -0
  800. package/dist/chunks/components/separator/separator.js.map +1 -0
  801. package/dist/chunks/components/separator/separator.module.css.js +9 -0
  802. package/dist/chunks/components/separator/separator.module.css.js.map +1 -0
  803. package/dist/chunks/components/sheet/sheet.js +84 -0
  804. package/dist/chunks/components/sheet/sheet.js.map +1 -0
  805. package/dist/chunks/components/sheet/sheet.module.css.js +31 -0
  806. package/dist/chunks/components/sheet/sheet.module.css.js.map +1 -0
  807. package/dist/chunks/components/sidebar/sidebar.js +353 -0
  808. package/dist/chunks/components/sidebar/sidebar.js.map +1 -0
  809. package/dist/chunks/components/sidebar/sidebar.module.css.js +89 -0
  810. package/dist/chunks/components/sidebar/sidebar.module.css.js.map +1 -0
  811. package/dist/chunks/components/sidebar/use-mobile.js +15 -0
  812. package/dist/chunks/components/sidebar/use-mobile.js.map +1 -0
  813. package/dist/chunks/components/skeleton/skeleton.js +11 -0
  814. package/dist/chunks/components/skeleton/skeleton.js.map +1 -0
  815. package/dist/chunks/components/skeleton/skeleton.module.css.js +9 -0
  816. package/dist/chunks/components/skeleton/skeleton.module.css.js.map +1 -0
  817. package/dist/chunks/components/slider/slider.js +48 -0
  818. package/dist/chunks/components/slider/slider.js.map +1 -0
  819. package/dist/chunks/components/slider/slider.module.css.js +17 -0
  820. package/dist/chunks/components/slider/slider.module.css.js.map +1 -0
  821. package/dist/chunks/components/spinner/spinner.js +51 -0
  822. package/dist/chunks/components/spinner/spinner.js.map +1 -0
  823. package/dist/chunks/components/spinner/spinner.module.css.js +17 -0
  824. package/dist/chunks/components/spinner/spinner.module.css.js.map +1 -0
  825. package/dist/chunks/components/status-dot/status-dot.js +69 -0
  826. package/dist/chunks/components/status-dot/status-dot.js.map +1 -0
  827. package/dist/chunks/components/status-dot/status-dot.module.css.js +23 -0
  828. package/dist/chunks/components/status-dot/status-dot.module.css.js.map +1 -0
  829. package/dist/chunks/components/switch/switch.js +23 -0
  830. package/dist/chunks/components/switch/switch.js.map +1 -0
  831. package/dist/chunks/components/switch/switch.module.css.js +14 -0
  832. package/dist/chunks/components/switch/switch.module.css.js.map +1 -0
  833. package/dist/chunks/components/table/table.js +253 -0
  834. package/dist/chunks/components/table/table.js.map +1 -0
  835. package/dist/chunks/components/table/table.module.css.js +37 -0
  836. package/dist/chunks/components/table/table.module.css.js.map +1 -0
  837. package/dist/chunks/components/tabs/tabs.js +50 -0
  838. package/dist/chunks/components/tabs/tabs.js.map +1 -0
  839. package/dist/chunks/components/tabs/tabs.module.css.js +25 -0
  840. package/dist/chunks/components/tabs/tabs.module.css.js.map +1 -0
  841. package/dist/chunks/components/text/text.js +44 -0
  842. package/dist/chunks/components/text/text.js.map +1 -0
  843. package/dist/chunks/components/text/text.module.css.js +27 -0
  844. package/dist/chunks/components/text/text.module.css.js.map +1 -0
  845. package/dist/chunks/components/textarea/textarea.js +19 -0
  846. package/dist/chunks/components/textarea/textarea.js.map +1 -0
  847. package/dist/chunks/components/textarea/textarea.module.css.js +9 -0
  848. package/dist/chunks/components/textarea/textarea.module.css.js.map +1 -0
  849. package/dist/chunks/components/toast/toast.js +74 -0
  850. package/dist/chunks/components/toast/toast.js.map +1 -0
  851. package/dist/chunks/components/toast/toast.module.css.js +31 -0
  852. package/dist/chunks/components/toast/toast.module.css.js.map +1 -0
  853. package/dist/chunks/components/toggle/toggle.js +44 -0
  854. package/dist/chunks/components/toggle/toggle.js.map +1 -0
  855. package/dist/chunks/components/toggle/toggle.module.css.js +19 -0
  856. package/dist/chunks/components/toggle/toggle.module.css.js.map +1 -0
  857. package/dist/chunks/components/toggle-group/toggle-group.js +60 -0
  858. package/dist/chunks/components/toggle-group/toggle-group.js.map +1 -0
  859. package/dist/chunks/components/toggle-group/toggle-group.module.css.js +11 -0
  860. package/dist/chunks/components/toggle-group/toggle-group.module.css.js.map +1 -0
  861. package/dist/chunks/components/tooltip/tooltip.js +51 -0
  862. package/dist/chunks/components/tooltip/tooltip.js.map +1 -0
  863. package/dist/chunks/components/tooltip/tooltip.module.css.js +13 -0
  864. package/dist/chunks/components/tooltip/tooltip.module.css.js.map +1 -0
  865. package/dist/chunks/components/visually-hidden/visually-hidden.js +17 -0
  866. package/dist/chunks/components/visually-hidden/visually-hidden.js.map +1 -0
  867. package/dist/chunks/components/visually-hidden/visually-hidden.module.css.js +9 -0
  868. package/dist/chunks/components/visually-hidden/visually-hidden.module.css.js.map +1 -0
  869. package/dist/code-block.js +2 -151
  870. package/dist/code-block.js.map +1 -1
  871. package/dist/collapsible.js +2 -21
  872. package/dist/collapsible.js.map +1 -1
  873. package/dist/combobox.js +2 -177
  874. package/dist/combobox.js.map +1 -1
  875. package/dist/command.js +2 -89
  876. package/dist/command.js.map +1 -1
  877. package/dist/components/alert-dialog/alert-dialog.d.ts +5 -3
  878. package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -1
  879. package/dist/components/combobox/combobox.d.ts +5 -3
  880. package/dist/components/combobox/combobox.d.ts.map +1 -1
  881. package/dist/components/context-menu/context-menu.d.ts +9 -4
  882. package/dist/components/context-menu/context-menu.d.ts.map +1 -1
  883. package/dist/components/data-grid/components/data-grid-empty-state.d.ts.map +1 -1
  884. package/dist/components/data-grid/components/filter-options-search-input.d.ts.map +1 -1
  885. package/dist/components/data-grid/components/filter-reset-button.d.ts.map +1 -1
  886. package/dist/components/data-grid/components/load-controlled.d.ts.map +1 -1
  887. package/dist/components/data-grid/data-grid-types.d.ts +28 -4
  888. package/dist/components/data-grid/data-grid-types.d.ts.map +1 -1
  889. package/dist/components/data-grid/data-grid.d.ts +1 -1
  890. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  891. package/dist/components/data-grid/messages.d.ts +16 -0
  892. package/dist/components/data-grid/messages.d.ts.map +1 -1
  893. package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts.map +1 -1
  894. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/data-grid-export-menu-item.d.ts.map +1 -1
  895. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.d.ts.map +1 -1
  896. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.d.ts.map +1 -1
  897. package/dist/components/data-grid/plugins/filters/components/all-filters-button.d.ts.map +1 -1
  898. package/dist/components/data-grid/plugins/filters/components/all-filters-dialog.d.ts.map +1 -1
  899. package/dist/components/data-grid/plugins/filters/components/dialog-filter-item.d.ts.map +1 -1
  900. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.d.ts.map +1 -1
  901. package/dist/components/data-grid/plugins/filters/entities/search/search-quick-filter.d.ts.map +1 -1
  902. package/dist/components/data-grid/plugins/filters/filters-plugin.d.ts.map +1 -1
  903. package/dist/components/data-grid/plugins/order/components/data-grid-order-button.d.ts.map +1 -1
  904. package/dist/components/data-grid/plugins/order/components/data-grid-order-header-cell-label.d.ts.map +1 -1
  905. package/dist/components/data-grid/plugins/order/components/data-grid-order-icon.d.ts.map +1 -1
  906. package/dist/components/data-grid/plugins/order/order-plugin.d.ts.map +1 -1
  907. package/dist/components/data-grid/plugins/order/services/order-labels.d.ts +7 -2
  908. package/dist/components/data-grid/plugins/order/services/order-labels.d.ts.map +1 -1
  909. package/dist/components/data-grid/plugins/pagination/components/data-grid-pagination.d.ts.map +1 -1
  910. package/dist/components/data-grid/plugins/pagination/components/pager.d.ts +7 -0
  911. package/dist/components/data-grid/plugins/pagination/components/pager.d.ts.map +1 -1
  912. package/dist/components/data-grid/plugins/pagination/pagination-plugin.d.ts +2 -0
  913. package/dist/components/data-grid/plugins/pagination/pagination-plugin.d.ts.map +1 -1
  914. package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts.map +1 -1
  915. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-header.d.ts +3 -0
  916. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-header.d.ts.map +1 -0
  917. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-row.d.ts +3 -0
  918. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-row.d.ts.map +1 -0
  919. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-toggle.d.ts +3 -0
  920. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-toggle.d.ts.map +1 -0
  921. package/dist/components/data-grid/plugins/row-detail/public.d.ts +3 -0
  922. package/dist/components/data-grid/plugins/row-detail/public.d.ts.map +1 -0
  923. package/dist/components/data-grid/plugins/row-detail/row-detail-plugin.d.ts +5 -0
  924. package/dist/components/data-grid/plugins/row-detail/row-detail-plugin.d.ts.map +1 -0
  925. package/dist/components/data-grid/plugins/row-detail/row-detail-types.d.ts +47 -0
  926. package/dist/components/data-grid/plugins/row-detail/row-detail-types.d.ts.map +1 -0
  927. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts.map +1 -1
  928. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts.map +1 -1
  929. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts.map +1 -1
  930. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts.map +1 -1
  931. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts.map +1 -1
  932. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-expand.d.ts.map +1 -1
  933. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-row.d.ts.map +1 -1
  934. package/dist/components/data-grid/plugins/table-tree/table-tree-plugin.d.ts.map +1 -1
  935. package/dist/components/data-grid/plugins/text-search/components/data-grid-text-search.d.ts.map +1 -1
  936. package/dist/components/data-grid/plugins/text-search/text-search-plugin.d.ts +7 -0
  937. package/dist/components/data-grid/plugins/text-search/text-search-plugin.d.ts.map +1 -1
  938. package/dist/components/data-grid/public.d.ts +2 -1
  939. package/dist/components/data-grid/public.d.ts.map +1 -1
  940. package/dist/components/data-grid/services/core/data-grid-messages-context.d.ts +92 -0
  941. package/dist/components/data-grid/services/core/data-grid-messages-context.d.ts.map +1 -0
  942. package/dist/components/data-grid/services/layout/components/data-grid-layout-main-slot-selector.d.ts.map +1 -1
  943. package/dist/components/data-grid/services/storage/storage-service.d.ts.map +1 -1
  944. package/dist/components/data-grid/services/table/column-sort-state.d.ts +13 -0
  945. package/dist/components/data-grid/services/table/column-sort-state.d.ts.map +1 -0
  946. package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts +8 -1
  947. package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts.map +1 -1
  948. package/dist/components/data-grid/services/table/components/data-grid-header-cell.d.ts.map +1 -1
  949. package/dist/components/data-grid/services/table/components/data-grid-row.d.ts.map +1 -1
  950. package/dist/components/data-grid/services/table/table-service.d.ts.map +1 -1
  951. package/dist/components/data-grid/services/table/table-store.d.ts.map +1 -1
  952. package/dist/components/data-grid/services/table/table-types.d.ts +35 -1
  953. package/dist/components/data-grid/services/table/table-types.d.ts.map +1 -1
  954. package/dist/components/data-grid/tree/components/tree-node-directory-item.d.ts.map +1 -1
  955. package/dist/components/data-grid/tree/components/tree-placeholder.d.ts.map +1 -1
  956. package/dist/components/data-grid/utils/hooked.d.ts +4 -1
  957. package/dist/components/data-grid/utils/hooked.d.ts.map +1 -1
  958. package/dist/components/data-grid/utils/is-filter-value-active.d.ts +10 -0
  959. package/dist/components/data-grid/utils/is-filter-value-active.d.ts.map +1 -0
  960. package/dist/components/dialog/dialog.d.ts +5 -3
  961. package/dist/components/dialog/dialog.d.ts.map +1 -1
  962. package/dist/components/drawer/drawer.d.ts +5 -4
  963. package/dist/components/drawer/drawer.d.ts.map +1 -1
  964. package/dist/components/dropdown-menu/dropdown-menu.d.ts +9 -4
  965. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  966. package/dist/components/hover-card/hover-card.d.ts +5 -3
  967. package/dist/components/hover-card/hover-card.d.ts.map +1 -1
  968. package/dist/components/navigation-menu/navigation-menu.d.ts +6 -4
  969. package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -1
  970. package/dist/components/popover/popover.d.ts +5 -3
  971. package/dist/components/popover/popover.d.ts.map +1 -1
  972. package/dist/components/portal-container/portal-container.d.ts +169 -0
  973. package/dist/components/portal-container/portal-container.d.ts.map +1 -0
  974. package/dist/components/portal-container/public.d.ts +2 -0
  975. package/dist/components/portal-container/public.d.ts.map +1 -0
  976. package/dist/components/select/select.d.ts +5 -3
  977. package/dist/components/select/select.d.ts.map +1 -1
  978. package/dist/components/sheet/sheet.d.ts +4 -2
  979. package/dist/components/sheet/sheet.d.ts.map +1 -1
  980. package/dist/components/toast/toast.d.ts +5 -4
  981. package/dist/components/toast/toast.d.ts.map +1 -1
  982. package/dist/components/tooltip/tooltip.d.ts +5 -3
  983. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  984. package/dist/context-menu.js +2 -200
  985. package/dist/context-menu.js.map +1 -1
  986. package/dist/data-grid/actions-menu.js +3 -373
  987. package/dist/data-grid/actions-menu.js.map +1 -1
  988. package/dist/data-grid/actions.js +2 -35
  989. package/dist/data-grid/actions.js.map +1 -1
  990. package/dist/data-grid/drag-drop.js +2 -269
  991. package/dist/data-grid/drag-drop.js.map +1 -1
  992. package/dist/data-grid/empty-state.js +2 -26
  993. package/dist/data-grid/empty-state.js.map +1 -1
  994. package/dist/data-grid/filters.js +9 -1637
  995. package/dist/data-grid/filters.js.map +1 -1
  996. package/dist/data-grid/order.js +3 -254
  997. package/dist/data-grid/order.js.map +1 -1
  998. package/dist/data-grid/pagination.js +2 -224
  999. package/dist/data-grid/pagination.js.map +1 -1
  1000. package/dist/data-grid/row-actions.js +2 -51
  1001. package/dist/data-grid/row-actions.js.map +1 -1
  1002. package/dist/data-grid/row-click.js +2 -61
  1003. package/dist/data-grid/row-click.js.map +1 -1
  1004. package/dist/data-grid/row-detail.d.ts +1 -0
  1005. package/dist/data-grid/row-detail.js +3 -0
  1006. package/dist/data-grid/row-detail.js.map +1 -0
  1007. package/dist/data-grid/row-number.js +2 -37
  1008. package/dist/data-grid/row-number.js.map +1 -1
  1009. package/dist/data-grid/row-select.js +2 -292
  1010. package/dist/data-grid/row-select.js.map +1 -1
  1011. package/dist/data-grid/table-configuration.js +2 -176
  1012. package/dist/data-grid/table-configuration.js.map +1 -1
  1013. package/dist/data-grid/table-tree.js +2 -232
  1014. package/dist/data-grid/table-tree.js.map +1 -1
  1015. package/dist/data-grid/text-search.js +2 -99
  1016. package/dist/data-grid/text-search.js.map +1 -1
  1017. package/dist/data-grid.js +6 -1515
  1018. package/dist/data-grid.js.map +1 -1
  1019. package/dist/data-table.js +2 -161
  1020. package/dist/data-table.js.map +1 -1
  1021. package/dist/date-picker.js +2 -174
  1022. package/dist/date-picker.js.map +1 -1
  1023. package/dist/description-list.js +2 -77
  1024. package/dist/description-list.js.map +1 -1
  1025. package/dist/dialog.js +2 -68
  1026. package/dist/dialog.js.map +1 -1
  1027. package/dist/direction.js +2 -5
  1028. package/dist/direction.js.map +1 -1
  1029. package/dist/docs/alert-dialog.md +5 -5
  1030. package/dist/docs/bubble.md +3 -3
  1031. package/dist/docs/combobox.md +3 -4
  1032. package/dist/docs/context-menu.md +12 -5
  1033. package/dist/docs/data-grid.md +164 -23
  1034. package/dist/docs/dialog.md +5 -4
  1035. package/dist/docs/drawer.md +11 -2
  1036. package/dist/docs/dropdown-menu.md +12 -5
  1037. package/dist/docs/hover-card.md +11 -5
  1038. package/dist/docs/navigation-menu.md +6 -5
  1039. package/dist/docs/popover.md +5 -5
  1040. package/dist/docs/portal-container.md +195 -0
  1041. package/dist/docs/select.md +3 -4
  1042. package/dist/docs/sheet.md +5 -4
  1043. package/dist/docs/toast.md +11 -5
  1044. package/dist/docs/tooltip.md +10 -5
  1045. package/dist/drawer.js +2 -119
  1046. package/dist/drawer.js.map +1 -1
  1047. package/dist/dropdown-menu.js +2 -164
  1048. package/dist/dropdown-menu.js.map +1 -1
  1049. package/dist/empty.js +2 -70
  1050. package/dist/empty.js.map +1 -1
  1051. package/dist/field.js +2 -112
  1052. package/dist/field.js.map +1 -1
  1053. package/dist/grid.js +3 -226
  1054. package/dist/grid.js.map +1 -1
  1055. package/dist/heading.js +2 -35
  1056. package/dist/heading.js.map +1 -1
  1057. package/dist/hover-card.js +2 -43
  1058. package/dist/hover-card.js.map +1 -1
  1059. package/dist/index.d.ts +2 -0
  1060. package/dist/index.d.ts.map +1 -1
  1061. package/dist/index.js +105 -528
  1062. package/dist/index.js.map +1 -1
  1063. package/dist/input-group.js +2 -113
  1064. package/dist/input-group.js.map +1 -1
  1065. package/dist/input-otp.js +2 -41
  1066. package/dist/input-otp.js.map +1 -1
  1067. package/dist/input.js +2 -35
  1068. package/dist/input.js.map +1 -1
  1069. package/dist/item.js +2 -154
  1070. package/dist/item.js.map +1 -1
  1071. package/dist/kbd.js +2 -16
  1072. package/dist/kbd.js.map +1 -1
  1073. package/dist/label.js +2 -11
  1074. package/dist/label.js.map +1 -1
  1075. package/dist/link.js +2 -54
  1076. package/dist/link.js.map +1 -1
  1077. package/dist/marker.js +2 -52
  1078. package/dist/marker.js.map +1 -1
  1079. package/dist/menubar.js +2 -49
  1080. package/dist/menubar.js.map +1 -1
  1081. package/dist/message-scroller.js +3 -68
  1082. package/dist/message-scroller.js.map +1 -1
  1083. package/dist/message.js +2 -36
  1084. package/dist/message.js.map +1 -1
  1085. package/dist/native-select.js +2 -42
  1086. package/dist/native-select.js.map +1 -1
  1087. package/dist/navigation-menu.js +2 -115
  1088. package/dist/navigation-menu.js.map +1 -1
  1089. package/dist/page-header.js +2 -87
  1090. package/dist/page-header.js.map +1 -1
  1091. package/dist/pagination.js +2 -134
  1092. package/dist/pagination.js.map +1 -1
  1093. package/dist/popover.js +2 -60
  1094. package/dist/popover.js.map +1 -1
  1095. package/dist/portal-container.d.ts +1 -0
  1096. package/dist/portal-container.js +7 -0
  1097. package/dist/portal-container.js.map +1 -0
  1098. package/dist/progress.js +2 -35
  1099. package/dist/progress.js.map +1 -1
  1100. package/dist/questionnaire.js +2 -208
  1101. package/dist/questionnaire.js.map +1 -1
  1102. package/dist/radio-group.js +2 -20
  1103. package/dist/radio-group.js.map +1 -1
  1104. package/dist/resizable.js +2 -23
  1105. package/dist/resizable.js.map +1 -1
  1106. package/dist/scroll-area.js +2 -31
  1107. package/dist/scroll-area.js.map +1 -1
  1108. package/dist/select.js +2 -144
  1109. package/dist/select.js.map +1 -1
  1110. package/dist/separator.js +2 -12
  1111. package/dist/separator.js.map +1 -1
  1112. package/dist/sheet.js +2 -93
  1113. package/dist/sheet.js.map +1 -1
  1114. package/dist/sidebar.js +2 -399
  1115. package/dist/sidebar.js.map +1 -1
  1116. package/dist/skeleton.js +2 -11
  1117. package/dist/skeleton.js.map +1 -1
  1118. package/dist/slider.js +2 -52
  1119. package/dist/slider.js.map +1 -1
  1120. package/dist/spinner.js +2 -55
  1121. package/dist/spinner.js.map +1 -1
  1122. package/dist/status-dot.js +2 -75
  1123. package/dist/status-dot.js.map +1 -1
  1124. package/dist/switch.js +2 -25
  1125. package/dist/switch.js.map +1 -1
  1126. package/dist/table.js +2 -266
  1127. package/dist/table.js.map +1 -1
  1128. package/dist/tabs.js +2 -58
  1129. package/dist/tabs.js.map +1 -1
  1130. package/dist/text.js +2 -52
  1131. package/dist/text.js.map +1 -1
  1132. package/dist/textarea.js +2 -19
  1133. package/dist/textarea.js.map +1 -1
  1134. package/dist/toast.js +2 -83
  1135. package/dist/toast.js.map +1 -1
  1136. package/dist/toggle-group.js +2 -60
  1137. package/dist/toggle-group.js.map +1 -1
  1138. package/dist/toggle.js +2 -48
  1139. package/dist/toggle.js.map +1 -1
  1140. package/dist/tooltip.js +2 -51
  1141. package/dist/tooltip.js.map +1 -1
  1142. package/dist/visually-hidden.js +2 -17
  1143. package/dist/visually-hidden.js.map +1 -1
  1144. package/llms.txt +24 -8
  1145. package/package.json +2 -1
  1146. package/dist/chunks/create-column-auto-size.js.map +0 -1
  1147. package/dist/chunks/data-grid-portal-container-context.js.map +0 -1
  1148. package/dist/chunks/data-grid-record-context.js.map +0 -1
  1149. package/dist/chunks/data-grid.DSkYrsay.css +0 -1
  1150. package/dist/chunks/debounce.js.map +0 -1
  1151. package/dist/chunks/deep-equal.js.map +0 -1
  1152. package/dist/chunks/filters.DQtlBXh7.css +0 -1
  1153. package/dist/chunks/grid.BvRXPN-7.css +0 -1
  1154. package/dist/chunks/hooked.js.map +0 -1
  1155. package/dist/chunks/ignore-row-click.js.map +0 -1
  1156. package/dist/chunks/is-record.js.map +0 -1
  1157. package/dist/chunks/messages.js.map +0 -1
  1158. package/dist/chunks/pagination.DPVITj_D.css +0 -1
  1159. package/dist/chunks/plugins-helpers.js +0 -41
  1160. package/dist/chunks/plugins-helpers.js.map +0 -1
  1161. package/dist/chunks/resolve-body-cell-props.js +0 -124
  1162. package/dist/chunks/resolve-body-cell-props.js.map +0 -1
  1163. package/dist/chunks/row-click-utils.js.map +0 -1
  1164. package/dist/chunks/row-select.BjKdiMf5.css +0 -1
  1165. package/dist/chunks/segment.js +0 -25
  1166. package/dist/chunks/segment.js.map +0 -1
  1167. package/dist/chunks/storage-helpers.js +0 -40
  1168. package/dist/chunks/storage-helpers.js.map +0 -1
  1169. package/dist/chunks/table-context.js +0 -8
  1170. package/dist/chunks/table-context.js.map +0 -1
  1171. package/dist/chunks/table-helpers.js.map +0 -1
  1172. package/dist/chunks/table-types.js.map +0 -1
  1173. package/dist/chunks/use-latest.js.map +0 -1
  1174. /package/dist/chunks/{accordion.CXlSdkrc.css → components/accordion/accordion.module.CXlSdkrc.css} +0 -0
  1175. /package/dist/chunks/{alert.Csv2-ccF.css → components/alert/alert.module.Csv2-ccF.css} +0 -0
  1176. /package/dist/chunks/{alert-dialog.C4aLtUC8.css → components/alert-dialog/alert-dialog.module.C4aLtUC8.css} +0 -0
  1177. /package/dist/chunks/{aspect-ratio.DJbPE7BX.css → components/aspect-ratio/aspect-ratio.module.DJbPE7BX.css} +0 -0
  1178. /package/dist/chunks/{attachment.BRyIQq3F.css → components/attachment/attachment.module.BRyIQq3F.css} +0 -0
  1179. /package/dist/chunks/{avatar.7EUG65-M.css → components/avatar/avatar.module.7EUG65-M.css} +0 -0
  1180. /package/dist/chunks/{badge.BwUxa9PB.css → components/badge/badge.module.BwUxa9PB.css} +0 -0
  1181. /package/dist/chunks/{breadcrumb.QKz32ceR.css → components/breadcrumb/breadcrumb.module.QKz32ceR.css} +0 -0
  1182. /package/dist/chunks/{bubble.Ccu0e3lY.css → components/bubble/bubble.module.Ccu0e3lY.css} +0 -0
  1183. /package/dist/chunks/{button.BWdRnIvz.css → components/button/button.module.BWdRnIvz.css} +0 -0
  1184. /package/dist/chunks/{button-group.BB-_2uav.css → components/button-group/button-group.module.BB-_2uav.css} +0 -0
  1185. /package/dist/chunks/{calendar.Dtndav4F.css → components/calendar/calendar.module.Dtndav4F.css} +0 -0
  1186. /package/dist/chunks/{card.DSiUMxGK.css → components/card/card.module.DSiUMxGK.css} +0 -0
  1187. /package/dist/chunks/{carousel.CjaKGN_D.css → components/carousel/carousel.module.CjaKGN_D.css} +0 -0
  1188. /package/dist/chunks/{chart.B9cGEno8.css → components/chart/chart.module.B9cGEno8.css} +0 -0
  1189. /package/dist/chunks/{checkbox.CrdIZhi1.css → components/checkbox/checkbox.module.CrdIZhi1.css} +0 -0
  1190. /package/dist/chunks/{code-block.r7Cm0ncj.css → components/code-block/code-block.module.r7Cm0ncj.css} +0 -0
  1191. /package/dist/chunks/{collapsible.BkLeBug_.css → components/collapsible/collapsible.module.BkLeBug_.css} +0 -0
  1192. /package/dist/chunks/{combobox.CKhQGu5a.css → components/combobox/combobox.module.CKhQGu5a.css} +0 -0
  1193. /package/dist/chunks/{command.BBW1Cy-M.css → components/command/command.module.BBW1Cy-M.css} +0 -0
  1194. /package/dist/chunks/{context-menu.D_HuTgqL.css → components/context-menu/context-menu.module.D_HuTgqL.css} +0 -0
  1195. /package/dist/chunks/{actions.iasfkjWq.css → components/data-grid/plugins/actions/components/data-grid-actions-wrapper.module.iasfkjWq.css} +0 -0
  1196. /package/dist/chunks/{drag-drop.BASVe3_O.css → components/data-grid/plugins/drag-drop/components/data-grid-drag-drop.module.BASVe3_O.css} +0 -0
  1197. /package/dist/chunks/{row-actions.BprAXgu2.css → components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.module.BprAXgu2.css} +0 -0
  1198. /package/dist/chunks/{row-click.DAYTmSBO.css → components/data-grid/plugins/row-click/components/data-grid-row-click.module.DAYTmSBO.css} +0 -0
  1199. /package/dist/chunks/{row-number.BxFT_3yP.css → components/data-grid/plugins/row-number/components/data-grid-row-number-cell.module.BxFT_3yP.css} +0 -0
  1200. /package/dist/chunks/{table-configuration.a6C_fp7B.css → components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.module.a6C_fp7B.css} +0 -0
  1201. /package/dist/chunks/{table-tree.DMtpMddS.css → components/data-grid/plugins/table-tree/components/data-grid-table-tree.module.DMtpMddS.css} +0 -0
  1202. /package/dist/chunks/{text-search.BeZYac6V.css → components/data-grid/plugins/text-search/components/data-grid-text-search.module.BeZYac6V.css} +0 -0
  1203. /package/dist/chunks/{resolve-body-cell-props.BA5IRWq0.css → components/data-grid/services/table/components/data-grid-cell.module.BA5IRWq0.css} +0 -0
  1204. /package/dist/chunks/{data-table.DJJaM7bh.css → components/data-table/data-table.module.DJJaM7bh.css} +0 -0
  1205. /package/dist/chunks/{date-picker.BcRqyOg8.css → components/date-picker/date-picker.module.BcRqyOg8.css} +0 -0
  1206. /package/dist/chunks/{description-list.Cx-vFGJL.css → components/description-list/description-list.module.Cx-vFGJL.css} +0 -0
  1207. /package/dist/chunks/{dialog.CIR9bQoU.css → components/dialog/dialog.module.CIR9bQoU.css} +0 -0
  1208. /package/dist/chunks/{drawer.D8l6-G8t.css → components/drawer/drawer.module.D8l6-G8t.css} +0 -0
  1209. /package/dist/chunks/{dropdown-menu.DT1_JLqL.css → components/dropdown-menu/dropdown-menu.module.DT1_JLqL.css} +0 -0
  1210. /package/dist/chunks/{empty.Cfg5lE0n.css → components/empty/empty.module.Cfg5lE0n.css} +0 -0
  1211. /package/dist/chunks/{field.CDoJmJUe.css → components/field/field.module.CDoJmJUe.css} +0 -0
  1212. /package/dist/chunks/{heading.DQxQs5po.css → components/heading/heading.module.DQxQs5po.css} +0 -0
  1213. /package/dist/chunks/{hover-card.D00tbys5.css → components/hover-card/hover-card.module.D00tbys5.css} +0 -0
  1214. /package/dist/chunks/{input.DORly3Cx.css → components/input/input.module.DORly3Cx.css} +0 -0
  1215. /package/dist/chunks/{input-group.C7XgalVn.css → components/input-group/input-group.module.C7XgalVn.css} +0 -0
  1216. /package/dist/chunks/{input-otp.Dvxlngb4.css → components/input-otp/input-otp.module.Dvxlngb4.css} +0 -0
  1217. /package/dist/chunks/{item.BQ70Khqj.css → components/item/item.module.BQ70Khqj.css} +0 -0
  1218. /package/dist/chunks/{kbd.DZuUVB_m.css → components/kbd/kbd.module.DZuUVB_m.css} +0 -0
  1219. /package/dist/chunks/{label.s0Wrm1i-.css → components/label/label.module.s0Wrm1i-.css} +0 -0
  1220. /package/dist/chunks/{link.BOE4f-aB.css → components/link/link.module.BOE4f-aB.css} +0 -0
  1221. /package/dist/chunks/{marker.DDxI_rZn.css → components/marker/marker.module.DDxI_rZn.css} +0 -0
  1222. /package/dist/chunks/{menubar.CJcVQhPq.css → components/menubar/menubar.module.CJcVQhPq.css} +0 -0
  1223. /package/dist/chunks/{message.B9Rexp_f.css → components/message/message.module.B9Rexp_f.css} +0 -0
  1224. /package/dist/chunks/{message-scroller.CBjPcz8Y.css → components/message-scroller/message-scroller.module.CBjPcz8Y.css} +0 -0
  1225. /package/dist/chunks/{native-select.BosBdRAx.css → components/native-select/native-select.module.BosBdRAx.css} +0 -0
  1226. /package/dist/chunks/{navigation-menu.CuXMCPRN.css → components/navigation-menu/navigation-menu.module.CuXMCPRN.css} +0 -0
  1227. /package/dist/chunks/{page-header.72nfJNkg.css → components/page-header/page-header.module.72nfJNkg.css} +0 -0
  1228. /package/dist/chunks/{pagination.DJ7HJSFX.css → components/pagination/pagination.module.DJ7HJSFX.css} +0 -0
  1229. /package/dist/chunks/{popover.BYhwNKnZ.css → components/popover/popover.module.BYhwNKnZ.css} +0 -0
  1230. /package/dist/chunks/{progress.DjSEXfxh.css → components/progress/progress.module.DjSEXfxh.css} +0 -0
  1231. /package/dist/chunks/{questionnaire.C-YTRjPE.css → components/questionnaire/questionnaire.module.C-YTRjPE.css} +0 -0
  1232. /package/dist/chunks/{radio-group.CisvBT6g.css → components/radio-group/radio-group.module.CisvBT6g.css} +0 -0
  1233. /package/dist/chunks/{resizable.B71V-1lR.css → components/resizable/resizable.module.B71V-1lR.css} +0 -0
  1234. /package/dist/chunks/{scroll-area.B0OVmDRX.css → components/scroll-area/scroll-area.module.B0OVmDRX.css} +0 -0
  1235. /package/dist/chunks/{select.C3sLDoZI.css → components/select/select.module.C3sLDoZI.css} +0 -0
  1236. /package/dist/chunks/{separator.DdRRkJW4.css → components/separator/separator.module.DdRRkJW4.css} +0 -0
  1237. /package/dist/chunks/{sheet.BkZyzAbA.css → components/sheet/sheet.module.BkZyzAbA.css} +0 -0
  1238. /package/dist/chunks/{sidebar.Dw_e0Jqw.css → components/sidebar/sidebar.module.Dw_e0Jqw.css} +0 -0
  1239. /package/dist/chunks/{skeleton.BhWSzPnI.css → components/skeleton/skeleton.module.BhWSzPnI.css} +0 -0
  1240. /package/dist/chunks/{slider.DY1XDCPw.css → components/slider/slider.module.DY1XDCPw.css} +0 -0
  1241. /package/dist/chunks/{spinner.CLQsj9Ky.css → components/spinner/spinner.module.CLQsj9Ky.css} +0 -0
  1242. /package/dist/chunks/{status-dot.39NKkKQF.css → components/status-dot/status-dot.module.39NKkKQF.css} +0 -0
  1243. /package/dist/chunks/{switch.BYqd9jlJ.css → components/switch/switch.module.BYqd9jlJ.css} +0 -0
  1244. /package/dist/chunks/{table.biUlW2U6.css → components/table/table.module.biUlW2U6.css} +0 -0
  1245. /package/dist/chunks/{tabs.BqhiMRUP.css → components/tabs/tabs.module.BqhiMRUP.css} +0 -0
  1246. /package/dist/chunks/{text.7frjnkUr.css → components/text/text.module.7frjnkUr.css} +0 -0
  1247. /package/dist/chunks/{textarea.DMphp0qh.css → components/textarea/textarea.module.DMphp0qh.css} +0 -0
  1248. /package/dist/chunks/{toast.Dw-jW4YY.css → components/toast/toast.module.Dw-jW4YY.css} +0 -0
  1249. /package/dist/chunks/{toggle.B82Id2zR.css → components/toggle/toggle.module.B82Id2zR.css} +0 -0
  1250. /package/dist/chunks/{toggle-group.BpWF6enM.css → components/toggle-group/toggle-group.module.BpWF6enM.css} +0 -0
  1251. /package/dist/chunks/{tooltip.CFJyyz-O.css → components/tooltip/tooltip.module.CFJyyz-O.css} +0 -0
  1252. /package/dist/chunks/{visually-hidden.Bd2oAR5D.css → components/visually-hidden/visually-hidden.module.Bd2oAR5D.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"actions-menu.js","sources":["../../src/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.tsx","../../src/components/data-grid/plugins/actions-menu/actions-menu-plugin.tsx","../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-cells.ts","../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/csv-formatter.ts","../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/excel-formatter.ts","../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-service.ts","../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/data-grid-export-menu-item.tsx","../../src/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-menu-items.ts"],"sourcesContent":["import { EllipsisIcon } from 'lucide-react';\n\nimport { Button } from '../../../../button/public.js';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuTrigger,\n} from '../../../../dropdown-menu/public.js';\nimport { messages } from '../../../messages';\nimport { useDataGrid } from '../../../services/core/data-grid-context';\nimport { useDataGridPortalContainer } from '../../../services/core/data-grid-portal-container-context';\nimport type { DataGridActionsMenuPluginApi } from '../actions-menu-types';\n\nexport function DataGridActionsMenu() {\n const grid = useDataGrid();\n const actionsMenu = grid.getPlugin<DataGridActionsMenuPluginApi>('actionsMenu')!;\n const menuItems = actionsMenu.useMenuItems();\n const portalContainer = useDataGridPortalContainer();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button\n variant=\"ghost\"\n size=\"sm\"\n icon={<EllipsisIcon />}\n aria-label={messages.actionsMenu.actions}\n />\n }\n />\n <DropdownMenuContent side=\"bottom\" align=\"end\" container={portalContainer}>\n {menuItems.map((menuItem) => (\n <menuItem.component key={menuItem.id} params={menuItem.params} />\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n","// Load-bearing: a plugin is rendered as a child of <DataGrid>, so a Server Component can import\n// and render it, and the component it returns calls hooks. This directive puts the banner on the\n// plugin's own entry chunk (dist/data-grid/<plugin>.js). client-boundaries.test.ts only scans a\n// component's top-level files, so scripts/verify-consumer.sh is what checks the built banner of\n// every plugin entry.\n'use client';\n\nimport { create } from 'zustand';\nimport type { DataGridItem } from '../../data-grid-types';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport type {\n DataGridActionsMenuItem,\n DataGridActionsMenuItemOption,\n DataGridActionsMenuPluginApi,\n DataGridActionsMenuPluginProps,\n} from './actions-menu-types';\nimport { DataGridActionsMenu } from './components/data-grid-actions-menu';\n\ninterface ActionsMenuStore {\n menuItems: DataGridActionsMenuItem[];\n}\n\nexport const DataGridActionsMenuPlugin = createDataGridPlugin<\n DataGridItem,\n 'actionsMenu',\n DataGridActionsMenuPluginProps,\n DataGridActionsMenuPluginApi\n>('actionsMenu', (context) => {\n const useStore = create<ActionsMenuStore>(() => ({\n menuItems: [],\n }));\n\n context.registerSlot('top-end', {\n id: 'actionsMenu',\n component: DataGridActionsMenu,\n order: 100,\n });\n\n const useMenuItems = () => useStore((s) => s.menuItems);\n\n const api: DataGridActionsMenuPluginApi = {\n registerMenuItem,\n useMenuItems,\n onPropsChange,\n };\n\n return api;\n\n function registerMenuItem(options: DataGridActionsMenuItemOption) {\n const id = Math.random().toString();\n const currentItems = useStore.getState().menuItems;\n const order = options.order ?? (currentItems.length + 1) * 10;\n const newMenuItem = { id, ...options, order };\n const updatedItems = [...currentItems, newMenuItem].sort((a, b) => a.order - b.order);\n useStore.setState({ menuItems: updatedItems });\n }\n\n function onPropsChange(props: DataGridActionsMenuPluginProps) {\n const items: DataGridActionsMenuItem[] = props.menuItems.map((options, index) => {\n const id = Math.random().toString();\n const order = options.order ?? (index + 1) * 10;\n return { id, ...options, order } satisfies DataGridActionsMenuItem;\n });\n items.sort((a, b) => a.order - b.order);\n useStore.setState({ menuItems: items });\n }\n});\n","import type { DataGridItem } from '../../../../data-grid-types';\nimport type { DataGridPluginContext } from '../../../../services/plugins/plugins-types';\nimport type { DataGridExportColumn, DataGridExportOptions } from './export-types';\n\n// What a formatter does to one cell, apart from the service that uses the formatters: the service\n// imports them, so they cannot import it back.\n\nexport function getCellValue<Item extends DataGridItem = DataGridItem>(\n item: Item,\n column: DataGridExportColumn,\n): { raw: unknown; formatted: string } {\n const rawValue = column.key ? item[column.key] : item[column.id];\n\n let formattedValue: string;\n if (column.formatter) {\n formattedValue = column.formatter(rawValue);\n } else {\n formattedValue = String(rawValue ?? '');\n }\n\n return { raw: rawValue, formatted: formattedValue };\n}\n\nexport function applyCellTextTransformation<Item extends DataGridItem = DataGridItem>({\n item,\n column,\n cellValue,\n transformCellText,\n gridContext,\n}: {\n item: Item;\n column: DataGridExportColumn;\n cellValue: { raw: unknown; formatted: string };\n transformCellText: DataGridExportOptions<Item>['transformCellText'];\n gridContext: DataGridPluginContext<Item>;\n}): string {\n const transformer = transformCellText?.[column.id];\n\n if (!transformer) {\n return cellValue.formatted;\n }\n\n return transformer(\n {\n value: cellValue.raw,\n formattedValue: cellValue.formatted,\n row: item,\n },\n gridContext,\n );\n}\n","import type { DataGridItem } from '../../../../../data-grid-types';\nimport { applyCellTextTransformation, getCellValue } from '../export-cells';\nimport type { DataGridExportFormatter, DataGridExportFormatterParams } from '../export-types';\n\nexport const csvFormatter: DataGridExportFormatter = <Item extends DataGridItem>(\n exportContext: DataGridExportFormatterParams<Item>,\n): Promise<string> => {\n const { data, columns, options, gridContext } = exportContext;\n const delimiter = options.delimiter || ',';\n const includeHeaders = options.includeHeaders ?? true;\n const rows: string[] = [];\n\n if (includeHeaders) {\n const headerRow = columns\n .map((column) => escapeCsvValue(column.label, delimiter))\n .join(delimiter);\n rows.push(headerRow);\n }\n\n for (const item of data) {\n const row: string[] = [];\n\n for (const column of columns) {\n const cellValue = getCellValue(item, column);\n\n const transformedValue = applyCellTextTransformation({\n item,\n column,\n cellValue,\n transformCellText: options.transformCellText,\n gridContext,\n });\n\n row.push(escapeCsvValue(transformedValue, delimiter));\n }\n\n rows.push(row.join(delimiter));\n }\n\n return Promise.resolve(rows.join('\\n'));\n};\n\nconst csvInjectionChars = /^[=+\\-@\\t\\r]/;\n\nfunction escapeCsvValue(value: string, delimiter: string): string {\n const stringValue = String(value ?? '');\n\n const needsQuoting =\n stringValue.includes(delimiter) ||\n stringValue.includes('\\n') ||\n stringValue.includes('\"') ||\n csvInjectionChars.test(stringValue);\n\n if (needsQuoting) {\n const escaped = stringValue.replace(/\"/g, '\"\"');\n // Prefix with tab to prevent CSV injection (CWE-1236) when value starts with a formula character\n const prefix = csvInjectionChars.test(stringValue) ? '\\t' : '';\n return `\"${prefix}${escaped}\"`;\n }\n\n return stringValue;\n}\n","import type { DataGridItem } from '../../../../../data-grid-types';\nimport { applyCellTextTransformation, getCellValue } from '../export-cells';\nimport type {\n DataGridExcelJsApi,\n DataGridExcelJsModule,\n DataGridExportFormatter,\n DataGridExportFormatterParams,\n} from '../export-types';\n\nexport const excelFormatter: DataGridExportFormatter = async <Item extends DataGridItem>(\n exportContext: DataGridExportFormatterParams<Item>,\n): Promise<Blob> => {\n const { data, columns, options, gridContext } = exportContext;\n\n if (!options.loadExcelJs) {\n throw new Error(\n 'Exporting to Excel needs `loadExcelJs`, a function that loads the exceljs package: the grid does not import it itself.',\n );\n }\n const excelJs = resolveExcelJs(await options.loadExcelJs());\n\n const workbook = new excelJs.Workbook();\n const worksheet = workbook.addWorksheet(options.sheetName);\n\n const includeHeaders = options.includeHeaders ?? true;\n let currentRow = 1;\n\n if (includeHeaders) {\n const headerRow = worksheet.getRow(currentRow);\n\n columns.forEach((column, index) => {\n const cell = headerRow.getCell(index + 1);\n cell.value = column.label;\n });\n\n currentRow++;\n }\n\n for (const item of data) {\n const row = worksheet.getRow(currentRow);\n\n for (const [columnIndex, column] of columns.entries()) {\n const cellValue = getCellValue(item, column);\n\n const transformedValue = applyCellTextTransformation({\n item,\n column,\n cellValue,\n transformCellText: options.transformCellText,\n gridContext,\n });\n\n const cell = row.getCell(columnIndex + 1);\n\n cell.value = processExcelValue(cellValue.raw, transformedValue);\n }\n\n currentRow++;\n }\n\n const buffer = await workbook.xlsx.writeBuffer();\n return new Blob([buffer], {\n type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n });\n};\n\nfunction hasDefault(module: DataGridExcelJsModule): module is { default: DataGridExcelJsApi } {\n return 'default' in module && !!module.default;\n}\n\n// A CommonJS package imported dynamically arrives as the module itself under one bundler and as\n// `{ default: module }` under another, so the loader's result is read either way.\nfunction resolveExcelJs(module: DataGridExcelJsModule): DataGridExcelJsApi {\n const api = hasDefault(module) ? module.default : module;\n if (typeof api.Workbook !== 'function') {\n throw new Error('`loadExcelJs` has to resolve to the exceljs package, which exports `Workbook`.');\n }\n return api;\n}\n\nexport function processExcelValue(\n rawValue: unknown,\n transformedValue: string,\n): string | number | boolean | Date {\n if (transformedValue !== String(rawValue ?? '')) {\n return transformedValue;\n }\n\n if (rawValue === null || rawValue === undefined) {\n return '';\n }\n\n if (typeof rawValue === 'number') {\n return rawValue;\n }\n\n if (typeof rawValue === 'boolean') {\n return rawValue;\n }\n\n if (rawValue instanceof Date) {\n return rawValue;\n }\n\n if (typeof rawValue === 'string') {\n const dateRegex = /^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})?)?$/;\n if (dateRegex.test(rawValue)) {\n const date = new Date(rawValue);\n if (!isNaN(date.getTime())) {\n return date;\n }\n }\n\n const trimmed = rawValue.trim();\n if (\n trimmed !== '' &&\n !isNaN(Number(trimmed)) &&\n !/[eE]/.test(trimmed) &&\n !(trimmed.length > 1 && trimmed.startsWith('0') && trimmed[1] !== '.')\n ) {\n return Number(trimmed);\n }\n }\n\n return String(rawValue);\n}\n","import type { DataGridItem } from '../../../../data-grid-types';\nimport type { DataGridPluginContext } from '../../../../services/plugins/plugins-types';\nimport type {\n DataGridItemId,\n DataGridRecord,\n DataGridSection,\n} from '../../../../services/storage/storage-types';\nimport type { PaginationPluginApi } from '../../../pagination/pagination-plugin';\nimport type { DataGridTableTreePluginApi } from '../../../table-tree/table-tree-types';\nimport type {\n DataGridExportColumn,\n DataGridExportOptions,\n DataGridExportService,\n} from './export-types';\nimport { csvFormatter } from './formatters/csv-formatter';\nimport { excelFormatter } from './formatters/excel-formatter';\n\nexport function createExportService<\n Item extends DataGridItem = DataGridItem,\n>(): DataGridExportService<Item> {\n return {\n exportToCSV,\n exportToExcel,\n downloadFile,\n getAllData,\n };\n\n async function exportToCSV(\n data: Item[],\n columns: DataGridExportColumn[],\n options: DataGridExportOptions<Item>,\n gridContext: DataGridPluginContext<Item>,\n ): Promise<void> {\n const csvOptions = { ...options, format: 'csv' as const };\n try {\n const csvContent = await csvFormatter<Item>({\n data,\n columns,\n options: csvOptions,\n gridContext,\n });\n\n const filename = generateFilename(options.filename, 'csv');\n downloadFile(csvContent, filename, 'text/csv');\n } catch (error) {\n if (options.onError) {\n options.onError(toError(error));\n } else {\n throw error;\n }\n }\n }\n\n async function exportToExcel(\n data: Item[],\n columns: DataGridExportColumn[],\n options: DataGridExportOptions<Item>,\n gridContext: DataGridPluginContext<Item>,\n ): Promise<void> {\n const excelOptions = { ...options, format: 'xlsx' as const };\n try {\n const excelBlob = await excelFormatter<Item>({\n data,\n columns,\n options: excelOptions,\n gridContext,\n });\n\n const filename = generateFilename(options.filename, 'xlsx');\n downloadFile(\n excelBlob,\n filename,\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n );\n } catch (error) {\n if (options.onError) {\n options.onError(toError(error));\n } else {\n throw error;\n }\n }\n }\n\n function downloadFile(content: string | Blob, filename: string, mimeType: string): void {\n const blob = content instanceof Blob ? content : new Blob([content], { type: mimeType });\n const url = URL.createObjectURL(blob);\n\n const link = document.createElement('a');\n link.href = url;\n link.download = filename;\n link.style.display = 'none';\n\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n\n URL.revokeObjectURL(url);\n }\n\n async function getAllData(gridContext: DataGridPluginContext<Item>): Promise<Item[]> {\n // The export reads the pagination and the tree plugin by name: with neither registered, what\n // is on screen is everything there is.\n const paginationPlugin = gridContext.getPlugin<PaginationPluginApi>('pagination');\n const treePlugin = gridContext.getPlugin<DataGridTableTreePluginApi<Item>>('tableTree');\n\n if (treePlugin && paginationPlugin) {\n return await getAllTreeDataWithPagination(gridContext, treePlugin, paginationPlugin);\n } else if (treePlugin) {\n return await getAllTreeData(gridContext, treePlugin);\n } else if (paginationPlugin) {\n return await getAllDataPageByPage(gridContext, paginationPlugin);\n }\n\n const records = gridContext.useStore.getState().visibleRecords;\n return records.map((record) => record.item);\n }\n\n async function getAllTreeData(\n gridContext: DataGridPluginContext<Item>,\n treePlugin: DataGridTableTreePluginApi<Item>,\n ): Promise<Item[]> {\n const allData: Item[] = [];\n const visitedIds = new Set<DataGridItemId>();\n const records = gridContext.useStore.getState().visibleRecords;\n\n await collectTreeDataFromRecords(gridContext, records, allData, visitedIds, treePlugin);\n return allData;\n }\n\n async function getAllTreeDataWithPagination(\n gridContext: DataGridPluginContext<Item>,\n treePlugin: DataGridTableTreePluginApi<Item>,\n paginationPlugin: PaginationPluginApi,\n ): Promise<Item[]> {\n const originalState = { page: paginationPlugin.getPage(), limit: paginationPlugin.getLimit() };\n const allData: Item[] = [];\n const visitedIds = new Set<DataGridItemId>();\n let currentPage = 1;\n let hasMorePages = true;\n // A page here is never empty, so the empty set stands for \"no previous page\".\n let previousPageIds = new Set<DataGridItemId>();\n\n while (hasMorePages) {\n const loadInstance = gridContext.triggerLoad({\n loadContext: {\n pagination: { ...originalState, page: currentPage },\n tree: { parentId: null },\n },\n store: false,\n });\n\n await loadInstance.promise;\n\n if (loadInstance.processResult) {\n const pageData = loadInstance.processResult.results;\n\n if (pageData.length === 0) {\n hasMorePages = false;\n } else {\n // A page is not stored, so it has no records of the grid's own; the tree is walked\n // over records made for it.\n const pageRecords = pageData.map((item, index) => ({\n id: gridContext.getItemId(item),\n item,\n index,\n section: rootSection<Item>(),\n }));\n\n // A load that ignores the page returns the same rows again, maybe reordered; stop\n // there, not never.\n const pageIds = new Set(pageRecords.map((record) => record.id));\n const repeatsPreviousPage =\n pageIds.size === previousPageIds.size &&\n [...pageIds].every((id) => previousPageIds.has(id));\n previousPageIds = pageIds;\n\n await collectTreeDataFromRecords(\n gridContext,\n pageRecords,\n allData,\n visitedIds,\n treePlugin,\n );\n\n currentPage++;\n\n if (repeatsPreviousPage || pageData.length < originalState.limit) {\n hasMorePages = false;\n }\n }\n } else {\n hasMorePages = false;\n }\n }\n\n return allData;\n }\n\n async function collectTreeDataFromRecords(\n gridContext: DataGridPluginContext<Item>,\n records: DataGridRecord<Item>[],\n allData: Item[],\n visitedIds: Set<DataGridItemId>,\n treePlugin: DataGridTableTreePluginApi<Item>,\n ): Promise<void> {\n for (const record of records) {\n if (visitedIds.has(record.id)) {\n continue;\n }\n\n visitedIds.add(record.id);\n allData.push(record.item);\n\n const expandable = treePlugin.isExpandable(record);\n if (expandable) {\n // Load children if not already loaded\n const loadedSections = gridContext.getSectionsByParentId(record.id);\n if (!loadedSections.length) {\n const loadInstance = gridContext.triggerLoad({\n loadContext: { tree: { parentId: record.id } },\n });\n await loadInstance.promise;\n }\n\n const childRecords = gridContext.getRecordsByParentId(record.id);\n if (childRecords.length > 0) {\n await collectTreeDataFromRecords(\n gridContext,\n childRecords,\n allData,\n visitedIds,\n treePlugin,\n );\n }\n }\n }\n }\n\n async function getAllDataPageByPage(\n gridContext: DataGridPluginContext<Item>,\n paginationPlugin: PaginationPluginApi,\n ): Promise<Item[]> {\n const originalState = { page: paginationPlugin.getPage(), limit: paginationPlugin.getLimit() };\n\n const allData: Item[] = [];\n let currentPage = 1;\n let hasMorePages = true;\n\n while (hasMorePages) {\n const loadInstance = gridContext.triggerLoad({\n loadContext: {\n pagination: { ...originalState, page: currentPage },\n },\n store: false,\n });\n\n await loadInstance.promise;\n\n if (loadInstance.processResult) {\n const pageData = loadInstance.processResult.results;\n\n if (pageData.length === 0) {\n hasMorePages = false;\n } else {\n allData.push(...pageData);\n currentPage++;\n\n if (pageData.length < originalState.limit) {\n hasMorePages = false;\n }\n\n if (\n loadInstance.processResult.total &&\n allData.length >= loadInstance.processResult.total\n ) {\n hasMorePages = false;\n }\n }\n } else {\n hasMorePages = false;\n }\n }\n\n return allData;\n }\n}\n\nfunction rootSection<Item extends DataGridItem>(): DataGridSection<Item> {\n return { id: '', visible: true, loadContext: {}, parentId: null, records: [] };\n}\n\nfunction toError(error: unknown): Error {\n return error instanceof Error ? error : new Error(String(error));\n}\n\nexport function generateFilename(\n filename: string | (() => string) | undefined,\n extension: string,\n): string {\n if (typeof filename === 'function') {\n return filename();\n }\n\n if (typeof filename === 'string') {\n return filename.endsWith(`.${extension}`) ? filename : `${filename}.${extension}`;\n }\n\n const timestamp = new Date().toISOString().slice(0, 19).replace(/:/g, '-');\n return `${timestamp}.${extension}`;\n}\n","import { ArrowDownToLineIcon } from 'lucide-react';\nimport { useState } from 'react';\nimport { DropdownMenuItem } from '../../../../../dropdown-menu/public.js';\nimport { messages } from '../../../../messages';\nimport { useDataGridPluginContext } from '../../../../services/core/data-grid-context';\nimport { resolveLabel } from '../../../../services/table/table-helpers';\nimport { useTableService } from '../../../../services/table/table-context';\nimport { isRecord } from '../../../../utils/is-record';\nimport { createExportService } from './export-service';\nimport type {\n DataGridExportColumn,\n DataGridExportFormat,\n DataGridExportOptions,\n} from './export-types';\n\ninterface DataGridExportMenuItemParams {\n type: DataGridExportFormat;\n exportConfig?: Partial<DataGridExportOptions>;\n}\n\nexport interface DataGridExportMenuItemProps {\n params?: Record<string, unknown>;\n}\n\n// The menu hands every item `params` as a plain record, so the item reads its own back with these.\n// `exportConfig` is only known to be an object here: `exportMenuItems` is what typed it.\nfunction isExportFormat(value: unknown): value is DataGridExportFormat {\n return value === 'csv' || value === 'xlsx';\n}\n\nfunction isExportConfig(value: unknown): value is Partial<DataGridExportOptions> {\n return isRecord(value);\n}\n\nfunction readParams(params: Record<string, unknown> | undefined): DataGridExportMenuItemParams | undefined {\n if (!params || !isExportFormat(params.type)) return undefined;\n\n return {\n type: params.type,\n exportConfig: isExportConfig(params.exportConfig) ? params.exportConfig : undefined,\n };\n}\n\nexport function DataGridExportMenuItem({ params: rawParams }: DataGridExportMenuItemProps) {\n const params = readParams(rawParams);\n const pluginContext = useDataGridPluginContext();\n // useTableService is needed for useVisibleColumns which isn't exposed in the public API\n const tableService = useTableService();\n const [isExporting, setIsExporting] = useState(false);\n\n const visibleColumns = tableService.useVisibleColumns();\n const exportType = params?.type === 'csv' ? 'CSV' : 'Excel';\n\n async function handleSelect() {\n if (isExporting || !params) return;\n\n setIsExporting(true);\n\n try {\n const exportService = createExportService();\n\n const allData = await exportService.getAllData(pluginContext);\n\n const columns: DataGridExportColumn[] = visibleColumns.map((column) => {\n const label = resolveLabel(column.label);\n return {\n id: column.id,\n label,\n key: column.key,\n formatter: column.formatter,\n };\n });\n\n const defaultOptions: DataGridExportOptions = {\n format: params.type,\n filename: messages.exportMenuItem.defaultFilename,\n includeHeaders: true,\n ...(params.type === 'xlsx' ? { sheetName: messages.exportMenuItem.defaultSheetName } : {}),\n };\n\n const options: DataGridExportOptions = {\n ...defaultOptions,\n ...params.exportConfig,\n };\n\n const method =\n params.type === 'csv' ? exportService.exportToCSV : exportService.exportToExcel;\n\n await method(allData, columns, options, pluginContext);\n } catch (error) {\n console.error('Export failed:', error);\n } finally {\n setIsExporting(false);\n }\n }\n\n return (\n <DropdownMenuItem disabled={isExporting} onClick={handleSelect}>\n <ArrowDownToLineIcon />\n {messages.exportMenuItem.exportAs(exportType)}\n </DropdownMenuItem>\n );\n}\n","// `.js` on each relative import: they land verbatim in the shipped declaration file, where\n// `moduleResolution: \"nodenext\"` rejects an extensionless one and the type behind it goes untyped.\nimport type { DataGridItem } from '../../../../data-grid-types.js';\nimport type { DataGridActionsMenuItemOption } from '../../actions-menu-types.js';\nimport { DataGridExportMenuItem } from './data-grid-export-menu-item';\nimport type { DataGridExportOptions } from './export-types.js';\n\n/**\n * The items that export the grid's rows: Excel, when `loadExcelJs` is given, and CSV. Both read the\n * whole data set, not just the page on screen.\n */\nexport function exportMenuItems<Item extends DataGridItem = DataGridItem>(\n config?: Partial<DataGridExportOptions<Item>>,\n): DataGridActionsMenuItemOption[] {\n const csv: DataGridActionsMenuItemOption = {\n component: DataGridExportMenuItem,\n params: { type: 'csv', exportConfig: config },\n };\n\n // exceljs is the consumer's to load, so an Excel item with no way to load it would only fail.\n if (!config?.loadExcelJs) return [csv];\n\n return [{ component: DataGridExportMenuItem, params: { type: 'xlsx', exportConfig: config } }, csv];\n}\n"],"names":["DataGridActionsMenu","menuItems","useDataGrid","portalContainer","useDataGridPortalContainer","DropdownMenu","jsx","DropdownMenuTrigger","Button","EllipsisIcon","messages","DropdownMenuContent","menuItem","DataGridActionsMenuPlugin","createDataGridPlugin","context","useStore","create","registerMenuItem","s","onPropsChange","options","id","currentItems","order","newMenuItem","updatedItems","a","b","props","items","index","getCellValue","item","column","rawValue","formattedValue","applyCellTextTransformation","cellValue","transformCellText","gridContext","transformer","csvFormatter","exportContext","data","columns","delimiter","includeHeaders","rows","headerRow","escapeCsvValue","row","transformedValue","csvInjectionChars","value","stringValue","escaped","excelFormatter","excelJs","resolveExcelJs","workbook","worksheet","currentRow","cell","columnIndex","processExcelValue","buffer","hasDefault","module","api","date","trimmed","createExportService","exportToCSV","exportToExcel","downloadFile","getAllData","csvOptions","csvContent","filename","generateFilename","error","toError","excelOptions","excelBlob","content","mimeType","blob","url","link","paginationPlugin","treePlugin","getAllTreeDataWithPagination","getAllTreeData","getAllDataPageByPage","record","allData","visitedIds","records","collectTreeDataFromRecords","originalState","currentPage","hasMorePages","previousPageIds","loadInstance","pageData","pageRecords","rootSection","pageIds","repeatsPreviousPage","childRecords","extension","isExportFormat","isExportConfig","isRecord","readParams","params","DataGridExportMenuItem","rawParams","pluginContext","useDataGridPluginContext","tableService","useTableService","isExporting","setIsExporting","useState","visibleColumns","exportType","handleSelect","exportService","label","resolveLabel","jsxs","DropdownMenuItem","ArrowDownToLineIcon","exportMenuItems","config","csv"],"mappings":";;;;;;;;;;;;;AAaO,SAASA,IAAsB;AAGpC,QAAMC,IAFOC,EAAA,EACY,UAAwC,aAAa,EAChD,aAAA,GACxBC,IAAkBC,EAAA;AAExB,2B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@@
1
- "use client";
2
- import { create as c } from "zustand";
3
- import { u as i, c as a } from "../chunks/plugins-helpers.js";
4
- import { jsx as s } from "react/jsx-runtime";
5
- import '../chunks/actions.iasfkjWq.css';const u = "_wrapper_18zhb_1", m = {
6
- wrapper: u
7
- };
8
- function d() {
9
- const o = i().getPlugin("actions"), t = o.useComponent(), e = o.useProps();
10
- return t ? /* @__PURE__ */ s("div", { className: m.wrapper, children: /* @__PURE__ */ s(t, { ...e }) }) : null;
11
- }
12
- const C = a("actions", (r) => {
13
- const o = c(() => ({
14
- component: null,
15
- props: void 0
16
- }));
17
- return r.registerSlot("top-end", {
18
- id: "actions",
19
- component: d,
20
- order: 0
21
- }), {
22
- useComponent: () => o((n) => n.component),
23
- useProps: () => o((n) => n.props),
24
- onPropsChange: p
25
- };
26
- function p(n) {
27
- o.setState({
28
- component: n.component,
29
- props: n.props
30
- });
31
- }
32
- });
33
- export {
34
- C as DataGridActionsPlugin
35
- };
1
+ export { DataGridActionsPlugin } from "../chunks/components/data-grid/plugins/actions/actions-plugin.js";
2
+
36
3
  //# sourceMappingURL=actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","sources":["../../src/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.tsx","../../src/components/data-grid/plugins/actions/actions-plugin.tsx"],"sourcesContent":["import { useDataGrid } from '../../../services/core/data-grid-context';\nimport type { DataGridActionsPluginApi } from '../actions-types';\nimport styles from './data-grid-actions-wrapper.module.css';\n\nexport function DataGridActionsWrapper() {\n const grid = useDataGrid();\n const actions = grid.getPlugin<DataGridActionsPluginApi>('actions')!;\n\n const ActionComponent = actions.useComponent();\n const actionProps = actions.useProps();\n\n if (!ActionComponent) {\n return null;\n }\n\n return (\n <div className={styles.wrapper}>\n {/* eslint-disable-next-line react-hooks/static-components -- ActionComponent is the consumer's component held in the plugin's store, so it is the same component on every render; the rule cannot see through the store. */}\n <ActionComponent {...actionProps} />\n </div>\n );\n}\n","// Load-bearing: a plugin is rendered as a child of <DataGrid>, so a Server Component can import\n// and render it, and the component it returns calls hooks. This directive puts the banner on the\n// plugin's own entry chunk (dist/data-grid/<plugin>.js). client-boundaries.test.ts only scans a\n// component's top-level files, so scripts/verify-consumer.sh is what checks the built banner of\n// every plugin entry.\n'use client';\n\nimport type { ComponentType } from 'react';\nimport { create } from 'zustand';\nimport type { DataGridItem } from '../../data-grid-types';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport type { DataGridActionsPluginApi, DataGridActionsPluginProps } from './actions-types';\nimport { DataGridActionsWrapper } from './components/data-grid-actions-wrapper';\n\nexport type { DataGridActionsPluginApi, DataGridActionsPluginProps };\n\ninterface ActionsStore {\n component: ComponentType | null;\n props?: Record<string, unknown>;\n}\n\nexport const DataGridActionsPlugin = createDataGridPlugin<\n DataGridItem,\n 'actions',\n DataGridActionsPluginProps\n>('actions', (context) => {\n const useStore = create<ActionsStore>(() => ({\n component: null,\n props: undefined,\n }));\n\n context.registerSlot('top-end', {\n id: 'actions',\n component: DataGridActionsWrapper,\n order: 0,\n });\n\n const useComponent = () => useStore((s) => s.component);\n const useProps = () => useStore((s) => s.props);\n\n const api: DataGridActionsPluginApi = {\n useComponent,\n useProps,\n onPropsChange,\n };\n\n return api;\n\n function onPropsChange(props: DataGridActionsPluginProps) {\n useStore.setState({\n component: props.component,\n props: props.props,\n });\n }\n});\n"],"names":["DataGridActionsWrapper","actions","useDataGrid","ActionComponent","actionProps","jsx","styles","DataGridActionsPlugin","createDataGridPlugin","context","useStore","create","s","onPropsChange","props"],"mappings":";;;;;;;AAIO,SAASA,IAAyB;AAEvC,QAAMC,IADOC,EAAA,EACQ,UAAoC,SAAS,GAE5DC,IAAkBF,EAAQ,aAAA,GAC1BG,IAAcH,EAAQ,SAAA;AAE5B,SAAKE,IAKH,gBAAAE,EAAC,SAAI,WAAWC,EAAO,SAErB,UAAA,gBAAAD,EAACF,GAAA,EAAiB,GAAGC,EAAA,CAAa,EAAA,CACpC,IAPO;AASX;ACAO,MAAMG,IAAwBC,EAInC,WAAW,CAACC,MAAY;AACxB,QAAMC,IAAWC,EAAqB,OAAO;AAAA,IAC3C,WAAW;AAAA,IACX,OAAO;AAAA,EAAA,EACP;AAEF,SAAAF,EAAQ,aAAa,WAAW;AAAA,IAC9B,IAAI;AAAA,IACJ,WAAWT;AAAA,IACX,OAAO;AAAA,EAAA,CACR,GAKqC;AAAA,IACpC,cAJmB,MAAMU,EAAS,CAACE,MAAMA,EAAE,SAAS;AAAA,IAKpD,UAJe,MAAMF,EAAS,CAACE,MAAMA,EAAE,KAAK;AAAA,IAK5C,eAAAC;AAAA,EAAA;AAKF,WAASA,EAAcC,GAAmC;AACxD,IAAAJ,EAAS,SAAS;AAAA,MAChB,WAAWI,EAAM;AAAA,MACjB,OAAOA,EAAM;AAAA,IAAA,CACd;AAAA,EACH;AACF,CAAC;"}
1
+ {"version":3,"file":"actions.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,270 +1,3 @@
1
- "use client";
2
- import { create as I } from "zustand";
3
- import { u as q, b as h, c as L } from "../chunks/plugins-helpers.js";
4
- import { jsx as D, jsxs as y } from "react/jsx-runtime";
5
- import { cx as C } from "class-variance-authority";
6
- import { GripVerticalIcon as B } from "lucide-react";
7
- import { m as H } from "../chunks/messages.js";
8
- import { I as N } from "../chunks/ignore-row-click.js";
9
- import { u as O, D as j } from "../chunks/data-grid-record-context.js";
10
- import { Spinner as F } from "../spinner.js";
11
- import { combine as P } from "@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js";
12
- import { dropTargetForElements as E, monitorForElements as M, draggable as V } from "@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/element/adapter.js";
13
- import { extractClosestEdge as k, attachClosestEdge as A } from "@atlaskit/pragmatic-drag-and-drop-hitbox/dist/esm/closest-edge.js";
14
- import { useRef as S, useEffect as G, useState as K } from "react";
15
- import { i as T } from "../chunks/is-record.js";
16
- import { pointerOutsideOfPreview as U } from "@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/element/pointer-outside-of-preview.js";
17
- import { setCustomNativeDragPreview as $ } from "@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/element/set-custom-native-drag-preview.js";
18
- import { flushSync as z, createPortal as J } from "react-dom";
19
- import { D as b, r as Q, a as W } from "../chunks/resolve-body-cell-props.js";
20
- import { u as X } from "../chunks/use-latest.js";
21
- import { TableRow as Y } from "../table.js";
22
- import '../chunks/drag-drop.BASVe3_O.css';const Z = "_dragHandler_mre9q_12", rr = "_dragHandlerLoading_mre9q_26", tr = "_dragRow_mre9q_38", or = "_dragRowDragging_mre9q_38", er = "_dragRowDropping_mre9q_60", nr = "_dragRowDropIndicatorTop_mre9q_66", ar = "_dragRowDropIndicatorBottom_mre9q_70", dr = "_dragPreview_mre9q_79", ir = "_content_mre9q_98", gr = "_contentDragging_mre9q_111", sr = "_contentRootDropping_mre9q_122", p = {
23
- dragHandler: Z,
24
- dragHandlerLoading: rr,
25
- dragRow: tr,
26
- dragRowDragging: or,
27
- dragRowDropping: er,
28
- dragRowDropIndicatorTop: nr,
29
- dragRowDropIndicatorBottom: ar,
30
- dragPreview: dr,
31
- content: ir,
32
- contentDragging: gr,
33
- contentRootDropping: sr
34
- };
35
- function cr() {
36
- const r = q(), t = O(), { useDropLoadingStore: a } = r.getPlugin("dragDrop"), o = a((i) => !!i.loading[t.id]);
37
- return /* @__PURE__ */ D(
38
- "div",
39
- {
40
- className: C(p.dragHandler, o && p.dragHandlerLoading),
41
- [N]: "",
42
- "data-drag-handle": "",
43
- "aria-label": H.dragDrop.dragHandle,
44
- children: o ? /* @__PURE__ */ D(F, {}) : /* @__PURE__ */ D(B, {})
45
- }
46
- );
47
- }
48
- function pr(r) {
49
- return typeof r == "string" || typeof r == "number";
50
- }
51
- function lr(r) {
52
- return T(r) && pr(r.id) && T(r.item);
53
- }
54
- function v(r) {
55
- return lr(r.record) ? r.record : void 0;
56
- }
57
- function mr({ children: r }) {
58
- const t = S(null), a = h(), { useDragDropStore: o, handleDrop: i } = a.plugins.getPlugin("dragDrop"), l = o((n) => n.isDragging), s = o((n) => n.isRootDropTarget);
59
- return G(() => {
60
- if (t.current)
61
- return P(
62
- E({
63
- element: t.current,
64
- getData: () => ({ type: "data-grid-root" })
65
- }),
66
- M({
67
- // A page can hold several grids with this plugin, and another grid's rows are drag
68
- // sources too: only a drag that began in this plugin instance is this one's to track.
69
- canMonitor: ({ source: n }) => n.data.pluginStore === o,
70
- onDragStart: ({ source: n }) => {
71
- const g = v(n.data);
72
- g && o.setState({ isDragging: !0, draggedRecordId: g.id });
73
- },
74
- onDropTargetChange: ({ location: n }) => {
75
- const g = n.current.dropTargets, e = g.find((w) => w.data.type === "data-grid-row"), c = g.find((w) => w.data.type === "data-grid-root"), m = e ? k(e.data) : null, f = e ? v(e.data) : void 0;
76
- o.setState({
77
- dropTargetRecordId: f == null ? void 0 : f.id,
78
- dropEdge: m === "top" || m === "bottom" ? m : void 0,
79
- isRootDropTarget: !e && !!c
80
- });
81
- },
82
- onDrop: ({ source: n, location: g }) => {
83
- const e = g.current.dropTargets, c = v(n.data);
84
- if (e.length > 0 && c) {
85
- const m = e.find((f) => f.data.type === "data-grid-row");
86
- i(c, m ? v(m.data) : void 0);
87
- }
88
- o.setState({
89
- isDragging: !1,
90
- draggedRecordId: void 0,
91
- dropTargetRecordId: void 0,
92
- dropEdge: void 0,
93
- isRootDropTarget: !1
94
- });
95
- }
96
- })
97
- );
98
- }, [o, i]), /* @__PURE__ */ D(
99
- "div",
100
- {
101
- ref: t,
102
- className: C(
103
- p.content,
104
- l && p.contentDragging,
105
- l && s && p.contentRootDropping
106
- ),
107
- children: r
108
- }
109
- );
110
- }
111
- function ur(r, t) {
112
- const a = document.createElement("table"), o = r.closest("table");
113
- a.className = [o == null ? void 0 : o.className, t].filter(Boolean).join(" "), a.style.width = `${r.getBoundingClientRect().width}px`;
114
- const i = document.createElement("tbody");
115
- return i.appendChild(r.cloneNode(!0)), a.appendChild(i), a;
116
- }
117
- function Dr({
118
- record: r
119
- }) {
120
- const t = S(null), a = X(r), [o, i] = K(null), l = h(), s = l.table, n = s.useVisibleColumns(), g = s.useTableLayout(), { useDragDropStore: e, renderDragPreview: c } = l.plugins.getPlugin("dragDrop"), m = e((d) => d.draggedRecordId === r.id), f = e((d) => d.dropTargetRecordId === r.id), w = e(
121
- (d) => d.dropTargetRecordId === r.id ? d.dropEdge : void 0
122
- ), x = s.useComponent("body-cell-content");
123
- return G(() => {
124
- if (!t.current) return;
125
- const d = t.current.querySelector("[data-drag-handle]");
126
- return P(
127
- V({
128
- element: t.current,
129
- dragHandle: d ?? void 0,
130
- getInitialData: () => ({
131
- type: "data-grid-row",
132
- pluginStore: e,
133
- recordId: a.current.id,
134
- record: a.current
135
- }),
136
- onGenerateDragPreview: ({ nativeSetDragImage: u }) => {
137
- $({
138
- nativeSetDragImage: u,
139
- getOffset: U({ x: "8px", y: "8px" }),
140
- render: ({ container: R }) => {
141
- if (c)
142
- return z(() => i(R)), () => i(null);
143
- const _ = t.current;
144
- _ && R.appendChild(ur(_, p.dragPreview));
145
- }
146
- });
147
- }
148
- }),
149
- E({
150
- element: t.current,
151
- canDrop: ({ source: u }) => u.data.pluginStore === e && u.data.recordId !== a.current.id,
152
- getData: ({ input: u, element: R }) => A(
153
- {
154
- type: "data-grid-row",
155
- recordId: a.current.id,
156
- record: a.current
157
- },
158
- { input: u, element: R, allowedEdges: ["top", "bottom"] }
159
- )
160
- })
161
- );
162
- }, [r.id, e, c, a]), /* @__PURE__ */ y(j, { value: r, children: [
163
- /* @__PURE__ */ y(
164
- Y,
165
- {
166
- ref: t,
167
- className: C(
168
- p.dragRow,
169
- m && p.dragRowDragging,
170
- f && p.dragRowDropping,
171
- w === "top" && p.dragRowDropIndicatorTop,
172
- w === "bottom" && p.dragRowDropIndicatorBottom
173
- ),
174
- children: [
175
- /* @__PURE__ */ D(b, { position: "start" }),
176
- n.map((d) => {
177
- var _;
178
- const u = (_ = d.getClassName) == null ? void 0 : _.call(d, r.item), R = Q(d, r.item, g);
179
- return /* @__PURE__ */ D(
180
- W,
181
- {
182
- columnId: d.id,
183
- className: u,
184
- ...R,
185
- children: /* @__PURE__ */ D(x, { column: d, item: r.item })
186
- },
187
- d.id
188
- );
189
- }),
190
- /* @__PURE__ */ D(b, { position: "end" })
191
- ]
192
- }
193
- ),
194
- o && c ? J(c(r.item), o) : null
195
- ] });
196
- }
197
- function Or(r) {
198
- return L(
199
- "dragDrop",
200
- (t) => {
201
- const a = I(() => ({
202
- isDragging: !1,
203
- draggedRecordId: void 0,
204
- dropTargetRecordId: void 0,
205
- dropEdge: void 0,
206
- isRootDropTarget: !1
207
- })), o = I(() => ({
208
- loading: {}
209
- }));
210
- return t.registerComponent("content", mr), t.registerExtraColumn({
211
- id: "drag-drop",
212
- body: cr,
213
- position: "start",
214
- order: 0,
215
- width: "37px"
216
- }), t.registerComponent("row", Dr), {
217
- renderDragPreview: r.renderDragPreview,
218
- useDragDropStore: a,
219
- useDropLoadingStore: o,
220
- setDropLoading: i,
221
- clearDropLoading: l,
222
- handleDrop: s
223
- };
224
- function i(n, g) {
225
- o.setState((e) => ({ loading: { ...e.loading, [n]: g } }));
226
- }
227
- function l(n) {
228
- o.setState((g) => {
229
- const e = { ...g.loading };
230
- return delete e[n], { loading: e };
231
- });
232
- }
233
- function s(n, g) {
234
- fr({
235
- sourceRecord: n,
236
- targetRecord: g,
237
- onDrop: (e, c) => r.onDrop({ ...t, item: e, target: c }),
238
- setDropLoading: i,
239
- clearDropLoading: l
240
- });
241
- }
242
- }
243
- );
244
- }
245
- function fr({
246
- sourceRecord: r,
247
- targetRecord: t,
248
- onDrop: a,
249
- setDropLoading: o,
250
- clearDropLoading: i
251
- }) {
252
- const l = (t == null ? void 0 : t.item) ?? null;
253
- let s;
254
- try {
255
- s = a(r.item, l);
256
- } catch (n) {
257
- queueMicrotask(() => {
258
- throw n;
259
- });
260
- return;
261
- }
262
- s instanceof Promise && (o(r.id, !0), s.catch(() => {
263
- }).finally(() => {
264
- i(r.id);
265
- }));
266
- }
267
- export {
268
- Or as createDataGridDragDropPlugin
269
- };
1
+ export { createDataGridDragDropPlugin } from "../chunks/components/data-grid/plugins/drag-drop/drag-drop-plugin.js";
2
+
270
3
  //# sourceMappingURL=drag-drop.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"drag-drop.js","sources":["../../src/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.tsx","../../src/components/data-grid/plugins/drag-drop/drag-data.ts","../../src/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-content.tsx","../../src/components/data-grid/plugins/drag-drop/drag-preview.ts","../../src/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.tsx","../../src/components/data-grid/plugins/drag-drop/drag-drop-plugin.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport { GripVerticalIcon } from 'lucide-react';\nimport { Spinner } from '../../../../spinner/public.js';\nimport { messages } from '../../../messages';\nimport { useDataGrid } from '../../../services/core/data-grid-context';\nimport { IGNORE_CLICK_ATTRIBUTE } from '../../../services/table/ignore-row-click';\nimport { useDataGridRecord } from '../../../services/table/data-grid-record-context';\nimport type { DataGridDragDropPluginApi } from '../drag-drop-types';\nimport styles from './data-grid-drag-drop.module.css';\n\nexport function DataGridDragDropBodyCell() {\n const grid = useDataGrid();\n const record = useDataGridRecord();\n\n const { useDropLoadingStore } = grid.getPlugin<DataGridDragDropPluginApi>('dragDrop')!;\n\n const isLoading = useDropLoadingStore((s) => !!s.loading[record.id]);\n\n return (\n <div\n className={cx(styles.dragHandler, isLoading && styles.dragHandlerLoading)}\n {...{ [IGNORE_CLICK_ATTRIBUTE]: '' }}\n data-drag-handle=\"\"\n aria-label={messages.dragDrop.dragHandle}\n >\n {isLoading ? <Spinner /> : <GripVerticalIcon />}\n </div>\n );\n}\n","import type { DataGridItemId, DataGridRecord } from '../../services/storage/storage-types';\nimport { isRecord } from '../../utils/is-record';\n\n// What a row puts in the drag data (`getInitialData`) and a drop target reads back is typed\n// `unknown` by the drag library, so each read goes through one of these guards instead of a cast.\n\nfunction isDataGridItemId(value: unknown): value is DataGridItemId {\n return typeof value === 'string' || typeof value === 'number';\n}\n\nfunction isDataGridRecord(value: unknown): value is DataGridRecord {\n return isRecord(value) && isDataGridItemId(value.id) && isRecord(value.item);\n}\n\n/** The record a dragged row or a row used as a drop target carries, or nothing for any other data. */\nexport function readRecord(data: Record<string | symbol, unknown>): DataGridRecord | undefined {\n return isDataGridRecord(data.record) ? data.record : undefined;\n}\n","import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';\nimport {\n dropTargetForElements,\n monitorForElements,\n} from '@atlaskit/pragmatic-drag-and-drop/element/adapter';\nimport { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';\nimport { cx } from 'class-variance-authority';\nimport type { ReactNode } from 'react';\nimport { useEffect, useRef } from 'react';\nimport { useDataGridContext } from '../../../services/core/data-grid-context';\nimport { readRecord } from '../drag-data';\nimport type { DataGridDragDropPluginApi } from '../drag-drop-types';\nimport styles from './data-grid-drag-drop.module.css';\n\ninterface DataGridDragDropContentProps {\n children?: ReactNode;\n}\n\nexport function DataGridDragDropContent({ children }: DataGridDragDropContentProps) {\n const contentRef = useRef<HTMLDivElement>(null);\n\n const context = useDataGridContext();\n const { useDragDropStore, handleDrop } =\n context.plugins.getPlugin<DataGridDragDropPluginApi>('dragDrop')!;\n\n const isDragging = useDragDropStore((s) => s.isDragging);\n const isRootDropTarget = useDragDropStore((s) => s.isRootDropTarget);\n\n useEffect(() => {\n if (!contentRef.current) return;\n\n return combine(\n dropTargetForElements({\n element: contentRef.current,\n getData: () => ({ type: 'data-grid-root' }),\n }),\n monitorForElements({\n // A page can hold several grids with this plugin, and another grid's rows are drag\n // sources too: only a drag that began in this plugin instance is this one's to track.\n canMonitor: ({ source }) => source.data.pluginStore === useDragDropStore,\n onDragStart: ({ source }) => {\n const record = readRecord(source.data);\n if (!record) return;\n\n useDragDropStore.setState({ isDragging: true, draggedRecordId: record.id });\n },\n onDropTargetChange: ({ location }) => {\n const targets = location.current.dropTargets;\n const rowTarget = targets.find((t) => t.data.type === 'data-grid-row');\n const rootTarget = targets.find((t) => t.data.type === 'data-grid-root');\n const dropEdge = rowTarget ? extractClosestEdge(rowTarget.data) : null;\n const targetRecord = rowTarget ? readRecord(rowTarget.data) : undefined;\n\n useDragDropStore.setState({\n dropTargetRecordId: targetRecord?.id,\n dropEdge: dropEdge === 'top' || dropEdge === 'bottom' ? dropEdge : undefined,\n isRootDropTarget: !rowTarget && !!rootTarget,\n });\n },\n onDrop: ({ source, location }) => {\n const targets = location.current.dropTargets;\n const sourceRecord = readRecord(source.data);\n\n if (targets.length > 0 && sourceRecord) {\n const rowTarget = targets.find((t) => t.data.type === 'data-grid-row');\n handleDrop(sourceRecord, rowTarget ? readRecord(rowTarget.data) : undefined);\n }\n\n useDragDropStore.setState({\n isDragging: false,\n draggedRecordId: undefined,\n dropTargetRecordId: undefined,\n dropEdge: undefined,\n isRootDropTarget: false,\n });\n },\n }),\n );\n }, [useDragDropStore, handleDrop]);\n\n return (\n <div\n ref={contentRef}\n className={cx(\n styles.content,\n isDragging && styles.contentDragging,\n isDragging && isRootDropTarget && styles.contentRootDropping,\n )}\n >\n {children}\n </div>\n );\n}\n","export function buildClonedRowPreview(row: HTMLElement, className: string): HTMLTableElement {\n const table = document.createElement('table');\n const sourceTable = row.closest('table');\n table.className = [sourceTable?.className, className].filter(Boolean).join(' ');\n table.style.width = `${row.getBoundingClientRect().width}px`;\n\n const tbody = document.createElement('tbody');\n tbody.appendChild(row.cloneNode(true));\n table.appendChild(tbody);\n\n return table;\n}\n","import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';\nimport {\n draggable,\n dropTargetForElements,\n} from '@atlaskit/pragmatic-drag-and-drop/element/adapter';\nimport { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';\nimport { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';\nimport { attachClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';\nimport { cx } from 'class-variance-authority';\nimport { useEffect, useRef, useState } from 'react';\nimport { createPortal, flushSync } from 'react-dom';\nimport { TableRow } from '../../../../table/public.js';\nimport type { DataGridItem } from '../../../data-grid-types';\nimport { useDataGridContext } from '../../../services/core/data-grid-context';\nimport type { DataGridRecord } from '../../../services/storage/storage-types';\nimport { DataGridCell } from '../../../services/table/components/data-grid-cell';\nimport { DataGridExtraBodyColumns } from '../../../services/table/components/data-grid-extra-body-columns';\nimport { DataGridRecordProvider } from '../../../services/table/data-grid-record-context';\nimport { resolveBodyCellProps } from '../../../services/table/resolve-body-cell-props';\nimport type { DataGridTableColumn } from '../../../services/table/table-types';\nimport { useLatest } from '../../../utils/use-latest';\nimport type { DataGridDragDropPluginApi } from '../drag-drop-types';\nimport { buildClonedRowPreview } from '../drag-preview';\nimport styles from './data-grid-drag-drop.module.css';\n\ninterface DataGridDragDropRowProps<TItem extends DataGridItem> {\n record: DataGridRecord<TItem>;\n}\n\nexport function DataGridDragDropRow<TItem extends DataGridItem>({\n record,\n}: DataGridDragDropRowProps<TItem>) {\n const rowRef = useRef<HTMLTableRowElement>(null);\n // The drag and drop callbacks are registered once per record id and read the record when the\n // event fires, so a refreshed record is what they see.\n const recordRef = useLatest(record);\n\n const [previewContainer, setPreviewContainer] = useState<HTMLElement | null>(null);\n\n const context = useDataGridContext<TItem>();\n const tableService = context.table;\n const columns = tableService.useVisibleColumns();\n const tableLayout = tableService.useTableLayout();\n\n const { useDragDropStore, renderDragPreview } =\n context.plugins.getPlugin<DataGridDragDropPluginApi<TItem>>('dragDrop')!;\n\n const isDragging = useDragDropStore((s) => s.draggedRecordId === record.id);\n const isDropping = useDragDropStore((s) => s.dropTargetRecordId === record.id);\n const dropEdge = useDragDropStore((s) =>\n s.dropTargetRecordId === record.id ? s.dropEdge : undefined,\n );\n\n const BodyCellContent = tableService.useComponent<{\n column: DataGridTableColumn<TItem>;\n item: TItem;\n }>('body-cell-content');\n\n useEffect(() => {\n if (!rowRef.current) return;\n\n const handleEl = rowRef.current.querySelector<HTMLElement>('[data-drag-handle]');\n\n return combine(\n draggable({\n element: rowRef.current,\n dragHandle: handleEl ?? undefined,\n getInitialData: () => ({\n type: 'data-grid-row',\n pluginStore: useDragDropStore,\n recordId: recordRef.current.id,\n record: recordRef.current,\n }),\n onGenerateDragPreview: ({ nativeSetDragImage }) => {\n setCustomNativeDragPreview({\n nativeSetDragImage,\n getOffset: pointerOutsideOfPreview({ x: '8px', y: '8px' }),\n render: ({ container }) => {\n if (renderDragPreview) {\n // Render the consumer's preview inside the live React tree (so it\n // keeps context); flushSync commits the portal before the browser\n // snapshots the preview image.\n flushSync(() => setPreviewContainer(container));\n return () => setPreviewContainer(null);\n }\n const row = rowRef.current;\n if (!row) return undefined;\n container.appendChild(buildClonedRowPreview(row, styles.dragPreview));\n return undefined;\n },\n });\n },\n }),\n dropTargetForElements({\n element: rowRef.current,\n canDrop: ({ source }) =>\n source.data.pluginStore === useDragDropStore &&\n source.data.recordId !== recordRef.current.id,\n getData: ({ input, element }) =>\n attachClosestEdge(\n {\n type: 'data-grid-row',\n recordId: recordRef.current.id,\n record: recordRef.current,\n },\n { input, element, allowedEdges: ['top', 'bottom'] },\n ),\n }),\n );\n }, [record.id, useDragDropStore, renderDragPreview, recordRef]);\n\n return (\n <DataGridRecordProvider value={record}>\n <TableRow\n ref={rowRef}\n className={cx(\n styles.dragRow,\n isDragging && styles.dragRowDragging,\n isDropping && styles.dragRowDropping,\n dropEdge === 'top' && styles.dragRowDropIndicatorTop,\n dropEdge === 'bottom' && styles.dragRowDropIndicatorBottom,\n )}\n >\n <DataGridExtraBodyColumns position=\"start\" />\n {columns.map((col) => {\n const dynamicClassName = col.getClassName?.(record.item);\n const bodyCellProps = resolveBodyCellProps(col, record.item, tableLayout);\n\n return (\n <DataGridCell<TItem>\n key={col.id}\n columnId={col.id}\n className={dynamicClassName}\n {...bodyCellProps}\n >\n <BodyCellContent column={col} item={record.item} />\n </DataGridCell>\n );\n })}\n <DataGridExtraBodyColumns position=\"end\" />\n </TableRow>\n {previewContainer && renderDragPreview\n ? createPortal(renderDragPreview(record.item), previewContainer)\n : null}\n </DataGridRecordProvider>\n );\n}\n","// Load-bearing: a plugin is rendered as a child of <DataGrid>, so a Server Component can import\n// and render it, and the component it returns calls hooks. This directive puts the banner on the\n// plugin's own entry chunk (dist/data-grid/<plugin>.js). client-boundaries.test.ts only scans a\n// component's top-level files, so scripts/verify-consumer.sh is what checks the built banner of\n// every plugin entry.\n'use client';\n\nimport { create } from 'zustand';\n// The `.js` on the type imports below is for the shipped declaration file: this file's\n// `createDataGridDragDropPlugin(config: DataGridDragDropPluginProps)` is a signature a consumer\n// types a callback by, and `moduleResolution: \"nodenext\"` rejects an extensionless relative\n// specifier in it, which turns the parameter into an untyped one.\nimport type { DataGridItem } from '../../data-grid-types.js';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport type { DataGridItemId, DataGridRecord } from '../../services/storage/storage-types.js';\nimport { DataGridDragDropBodyCell } from './components/data-grid-drag-drop-body-cell';\nimport { DataGridDragDropContent } from './components/data-grid-drag-drop-content';\nimport { DataGridDragDropRow } from './components/data-grid-drag-drop-row';\nimport type {\n DataGridDragDropPluginApi,\n DataGridDragDropPluginProps,\n DataGridDragDropState,\n DataGridDropLoadingState,\n} from './drag-drop-types.js';\n\n/**\n * Creates a drag-and-drop plugin component for reordering a DataGrid's rows. It is a factory\n * because the callbacks are the plugin's own configuration, not props of the component it\n * returns: create it once, outside render, and render the result as a child of the grid.\n */\nexport function createDataGridDragDropPlugin<TItem extends DataGridItem = DataGridItem>(\n config: DataGridDragDropPluginProps<TItem>,\n) {\n return createDataGridPlugin<TItem, 'dragDrop', Record<string, never>, DataGridDragDropPluginApi<TItem>>(\n 'dragDrop',\n (context) => {\n const useDragDropStore = create<DataGridDragDropState>(() => ({\n isDragging: false,\n draggedRecordId: undefined,\n dropTargetRecordId: undefined,\n dropEdge: undefined,\n isRootDropTarget: false,\n }));\n\n const useDropLoadingStore = create<DataGridDropLoadingState>(() => ({\n loading: {},\n }));\n\n context.registerComponent('content', DataGridDragDropContent);\n context.registerExtraColumn({\n id: 'drag-drop',\n body: DataGridDragDropBodyCell,\n position: 'start',\n order: 0,\n width: '37px',\n });\n context.registerComponent('row', DataGridDragDropRow);\n\n return {\n renderDragPreview: config.renderDragPreview,\n useDragDropStore,\n useDropLoadingStore,\n setDropLoading,\n clearDropLoading,\n handleDrop,\n };\n\n function setDropLoading(id: DataGridItemId, value: boolean) {\n useDropLoadingStore.setState((state) => ({ loading: { ...state.loading, [id]: value } }));\n }\n\n function clearDropLoading(id: DataGridItemId) {\n useDropLoadingStore.setState((state) => {\n const next = { ...state.loading };\n delete next[id];\n return { loading: next };\n });\n }\n\n function handleDrop(\n sourceRecord: DataGridRecord<TItem>,\n targetRecord: DataGridRecord<TItem> | undefined,\n ) {\n executeHandleDrop({\n sourceRecord,\n targetRecord,\n onDrop: (item, target) => config.onDrop({ ...context, item, target }),\n setDropLoading,\n clearDropLoading,\n });\n }\n },\n );\n}\n\n/** @internal Extracted for testability. */\nexport function executeHandleDrop<TItem extends DataGridItem>({\n sourceRecord,\n targetRecord,\n onDrop,\n setDropLoading,\n clearDropLoading,\n}: {\n sourceRecord: Pick<DataGridRecord<TItem>, 'id' | 'item'>;\n targetRecord: Pick<DataGridRecord<TItem>, 'item'> | undefined;\n onDrop: (item: TItem, target: TItem | null) => void | Promise<void>;\n setDropLoading: (id: DataGridItemId, value: boolean) => void;\n clearDropLoading: (id: DataGridItemId) => void;\n}) {\n const target = targetRecord?.item ?? null;\n let drop: void | Promise<void>;\n try {\n drop = onDrop(sourceRecord.item, target);\n } catch (error) {\n // Thrown out of the library's drop handler, it would leave the library mid-drag, so no\n // later drag starts; it is reported on its own instead.\n queueMicrotask(() => {\n throw error;\n });\n return;\n }\n\n if (drop instanceof Promise) {\n setDropLoading(sourceRecord.id, true);\n drop\n .catch(() => {\n // Swallow rejection — cleanup happens in finally\n })\n .finally(() => {\n clearDropLoading(sourceRecord.id);\n });\n }\n}\n"],"names":["DataGridDragDropBodyCell","grid","useDataGrid","record","useDataGridRecord","useDropLoadingStore","isLoading","s","jsx","cx","styles","IGNORE_CLICK_ATTRIBUTE","messages","Spinner","GripVerticalIcon","isDataGridItemId","value","isDataGridRecord","isRecord","readRecord","data","DataGridDragDropContent","children","contentRef","useRef","context","useDataGridContext","useDragDropStore","handleDrop","isDragging","isRootDropTarget","useEffect","combine","dropTargetForElements","monitorForElements","source","location","targets","rowTarget","t","rootTarget","dropEdge","extractClosestEdge","targetRecord","sourceRecord","buildClonedRowPreview","row","className","table","sourceTable","tbody","DataGridDragDropRow","rowRef","recordRef","useLatest","previewContainer","setPreviewContainer","useState","tableService","columns","tableLayout","renderDragPreview","isDropping","BodyCellContent","handleEl","draggable","nativeSetDragImage","setCustomNativeDragPreview","pointerOutsideOfPreview","container","flushSync","input","element","attachClosestEdge","jsxs","DataGridRecordProvider","TableRow","DataGridExtraBodyColumns","col","dynamicClassName","_a","bodyCellProps","resolveBodyCellProps","DataGridCell","createPortal","createDataGridDragDropPlugin","config","createDataGridPlugin","create","setDropLoading","clearDropLoading","id","state","next","executeHandleDrop","item","target","onDrop","drop","error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,SAASA,KAA2B;AACzC,QAAMC,IAAOC,EAAA,GACPC,IAASC,EAAA,GAET,EAAE,qBAAAC,EAAA,IAAwBJ,EAAK,UAAqC,UAAU,GAE9EK,IAAYD,EAAoB,CAACE,MAAM,CAAC,CAACA,EAAE,QAAQJ,EAAO,EAAE,CAAC;AAEnE,SACE,gBAAAK;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAO,aAAaJ,KAAaI,EAAO,kBAAkB;AAAA,MAClE,CAACC,CAAsB,GAAG;AAAA,MAChC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AEA,EAAID,aAAgB,YAClBT,EAAe7C,EAAa,IAAI,EAAI,GACpCsD,EACG,MAAM,MAAM;AAAA,EAEb,CAAC,EACA,QAAQ,MAAM;AACb,IAAAR,EAAiB9C,EAAa,EAAE;AAAA,EAClC,CAAC;AAEP;"}
1
+ {"version":3,"file":"drag-drop.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,27 +1,3 @@
1
- "use client";
2
- import { jsx as r } from "react/jsx-runtime";
3
- import { create as c } from "zustand";
4
- import { c as a } from "../chunks/plugins-helpers.js";
5
- const i = "empty_state", f = a("emptyState", (n) => {
6
- const o = c(() => ({
7
- component: null
8
- }));
9
- return n.registerSlot("empty", {
10
- id: i,
11
- component: p
12
- }), {
13
- useComponent: () => o((t) => t.component),
14
- onPropsChange: e
15
- };
16
- function e(t) {
17
- o.setState({ component: t.component });
18
- }
19
- function p() {
20
- const t = o((m) => m.component);
21
- return t ? /* @__PURE__ */ r(t, {}) : null;
22
- }
23
- });
24
- export {
25
- f as DataGridEmptyStatePlugin
26
- };
1
+ export { DataGridEmptyStatePlugin } from "../chunks/components/data-grid/plugins/empty-state/empty-state-plugin.js";
2
+
27
3
  //# sourceMappingURL=empty-state.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty-state.js","sources":["../../src/components/data-grid/plugins/empty-state/empty-state-plugin.tsx"],"sourcesContent":["// Load-bearing: a plugin is rendered as a child of <DataGrid>, so a Server Component can import\n// and render it, and the component it returns calls hooks. This directive puts the banner on the\n// plugin's own entry chunk (dist/data-grid/<plugin>.js). client-boundaries.test.ts only scans a\n// component's top-level files, so scripts/verify-consumer.sh is what checks the built banner of\n// every plugin entry.\n'use client';\n\nimport { create } from 'zustand';\nimport type { DataGridItem } from '../../data-grid-types';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport type { DataGridEmptyStatePluginApi, DataGridEmptyStatePluginProps } from './empty-state-types';\n\nexport type { DataGridEmptyStatePluginApi, DataGridEmptyStatePluginProps };\n\nexport const EMPTY_STATE_LAYOUT_SLOT_ID = 'empty_state';\n\ninterface EmptyStateStore {\n component: React.ComponentType | null;\n}\n\nexport const DataGridEmptyStatePlugin = createDataGridPlugin<\n DataGridItem,\n 'emptyState',\n DataGridEmptyStatePluginProps\n>('emptyState', (context) => {\n const useStore = create<EmptyStateStore>(() => ({\n component: null,\n }));\n\n context.registerSlot('empty', {\n id: EMPTY_STATE_LAYOUT_SLOT_ID,\n component: EmptyStateSlot,\n });\n\n const api: DataGridEmptyStatePluginApi = {\n useComponent: () => useStore((s) => s.component),\n onPropsChange,\n };\n\n return api;\n\n function onPropsChange(props: DataGridEmptyStatePluginProps) {\n useStore.setState({ component: props.component });\n }\n\n // Renders nothing until onPropsChange lands the component in the store: the slot is registered\n // during setup, so falling back to the built-in copy here would flash \"No results found\" on the\n // first paint of the very state this plugin exists to replace.\n function EmptyStateSlot() {\n const Component = useStore((s) => s.component);\n\n return Component ? <Component /> : null;\n }\n});\n"],"names":["EMPTY_STATE_LAYOUT_SLOT_ID","DataGridEmptyStatePlugin","createDataGridPlugin","context","useStore","create","EmptyStateSlot","s","onPropsChange","props","Component","jsx"],"mappings":";;;;AAcO,MAAMA,IAA6B,eAM7BC,IAA2BC,EAItC,cAAc,CAACC,MAAY;AAC3B,QAAMC,IAAWC,EAAwB,OAAO;AAAA,IAC9C,WAAW;AAAA,EAAA,EACX;AAEF,SAAAF,EAAQ,aAAa,SAAS;AAAA,IAC5B,IAAIH;AAAA,IACJ,WAAWM;AAAA,EAAA,CACZ,GAEwC;AAAA,IACvC,cAAc,MAAMF,EAAS,CAACG,MAAMA,EAAE,SAAS;AAAA,IAC/C,eAAAC;AAAA,EAAA;AAKF,WAASA,EAAcC,GAAsC;AAC3D,IAAAL,EAAS,SAAS,EAAE,WAAWK,EAAM,WAAW;AAAA,EAClD;AAKA,WAASH,IAAiB;AACxB,UAAMI,IAAYN,EAAS,CAACG,MAAMA,EAAE,SAAS;AAE7C,WAAOG,IAAY,gBAAAC,EAACD,GAAA,CAAA,CAAU,IAAK;AAAA,EACrC;AACF,CAAC;"}
1
+ {"version":3,"file":"empty-state.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}