@gears-frontx/ui-kit 0.5.0 → 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 (1254) 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/actions-menu/menu-items/export-menu-items/export-service.d.ts.map +1 -1
  896. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.d.ts.map +1 -1
  897. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.d.ts.map +1 -1
  898. package/dist/components/data-grid/plugins/drag-drop/drag-drop-plugin.d.ts.map +1 -1
  899. package/dist/components/data-grid/plugins/filters/components/all-filters-button.d.ts.map +1 -1
  900. package/dist/components/data-grid/plugins/filters/components/all-filters-dialog.d.ts.map +1 -1
  901. package/dist/components/data-grid/plugins/filters/components/dialog-filter-item.d.ts.map +1 -1
  902. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.d.ts.map +1 -1
  903. package/dist/components/data-grid/plugins/filters/entities/search/search-quick-filter.d.ts.map +1 -1
  904. package/dist/components/data-grid/plugins/filters/filters-plugin.d.ts.map +1 -1
  905. package/dist/components/data-grid/plugins/order/components/data-grid-order-button.d.ts.map +1 -1
  906. package/dist/components/data-grid/plugins/order/components/data-grid-order-header-cell-label.d.ts.map +1 -1
  907. package/dist/components/data-grid/plugins/order/components/data-grid-order-icon.d.ts.map +1 -1
  908. package/dist/components/data-grid/plugins/order/order-plugin.d.ts.map +1 -1
  909. package/dist/components/data-grid/plugins/order/services/order-labels.d.ts +7 -2
  910. package/dist/components/data-grid/plugins/order/services/order-labels.d.ts.map +1 -1
  911. package/dist/components/data-grid/plugins/pagination/components/data-grid-pagination.d.ts.map +1 -1
  912. package/dist/components/data-grid/plugins/pagination/components/pager.d.ts +7 -0
  913. package/dist/components/data-grid/plugins/pagination/components/pager.d.ts.map +1 -1
  914. package/dist/components/data-grid/plugins/pagination/pagination-plugin.d.ts +2 -0
  915. package/dist/components/data-grid/plugins/pagination/pagination-plugin.d.ts.map +1 -1
  916. package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts.map +1 -1
  917. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-header.d.ts +3 -0
  918. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-header.d.ts.map +1 -0
  919. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-row.d.ts +3 -0
  920. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-row.d.ts.map +1 -0
  921. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-toggle.d.ts +3 -0
  922. package/dist/components/data-grid/plugins/row-detail/components/data-grid-row-detail-toggle.d.ts.map +1 -0
  923. package/dist/components/data-grid/plugins/row-detail/public.d.ts +3 -0
  924. package/dist/components/data-grid/plugins/row-detail/public.d.ts.map +1 -0
  925. package/dist/components/data-grid/plugins/row-detail/row-detail-plugin.d.ts +5 -0
  926. package/dist/components/data-grid/plugins/row-detail/row-detail-plugin.d.ts.map +1 -0
  927. package/dist/components/data-grid/plugins/row-detail/row-detail-types.d.ts +47 -0
  928. package/dist/components/data-grid/plugins/row-detail/row-detail-types.d.ts.map +1 -0
  929. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts.map +1 -1
  930. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts.map +1 -1
  931. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts.map +1 -1
  932. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts.map +1 -1
  933. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts.map +1 -1
  934. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-expand.d.ts.map +1 -1
  935. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-row.d.ts.map +1 -1
  936. package/dist/components/data-grid/plugins/table-tree/table-tree-plugin.d.ts.map +1 -1
  937. package/dist/components/data-grid/plugins/text-search/components/data-grid-text-search.d.ts.map +1 -1
  938. package/dist/components/data-grid/plugins/text-search/text-search-plugin.d.ts +7 -0
  939. package/dist/components/data-grid/plugins/text-search/text-search-plugin.d.ts.map +1 -1
  940. package/dist/components/data-grid/public.d.ts +2 -1
  941. package/dist/components/data-grid/public.d.ts.map +1 -1
  942. package/dist/components/data-grid/services/core/data-grid-messages-context.d.ts +92 -0
  943. package/dist/components/data-grid/services/core/data-grid-messages-context.d.ts.map +1 -0
  944. package/dist/components/data-grid/services/layout/components/data-grid-layout-main-slot-selector.d.ts.map +1 -1
  945. package/dist/components/data-grid/services/storage/storage-service.d.ts.map +1 -1
  946. package/dist/components/data-grid/services/table/column-sort-state.d.ts +13 -0
  947. package/dist/components/data-grid/services/table/column-sort-state.d.ts.map +1 -0
  948. package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts +8 -1
  949. package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts.map +1 -1
  950. package/dist/components/data-grid/services/table/components/data-grid-header-cell.d.ts.map +1 -1
  951. package/dist/components/data-grid/services/table/components/data-grid-row.d.ts.map +1 -1
  952. package/dist/components/data-grid/services/table/table-service.d.ts.map +1 -1
  953. package/dist/components/data-grid/services/table/table-store.d.ts.map +1 -1
  954. package/dist/components/data-grid/services/table/table-types.d.ts +35 -1
  955. package/dist/components/data-grid/services/table/table-types.d.ts.map +1 -1
  956. package/dist/components/data-grid/tree/components/tree-node-directory-item.d.ts.map +1 -1
  957. package/dist/components/data-grid/tree/components/tree-placeholder.d.ts.map +1 -1
  958. package/dist/components/data-grid/utils/hooked.d.ts +4 -1
  959. package/dist/components/data-grid/utils/hooked.d.ts.map +1 -1
  960. package/dist/components/data-grid/utils/is-filter-value-active.d.ts +10 -0
  961. package/dist/components/data-grid/utils/is-filter-value-active.d.ts.map +1 -0
  962. package/dist/components/dialog/dialog.d.ts +5 -3
  963. package/dist/components/dialog/dialog.d.ts.map +1 -1
  964. package/dist/components/drawer/drawer.d.ts +5 -4
  965. package/dist/components/drawer/drawer.d.ts.map +1 -1
  966. package/dist/components/dropdown-menu/dropdown-menu.d.ts +9 -4
  967. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  968. package/dist/components/hover-card/hover-card.d.ts +5 -3
  969. package/dist/components/hover-card/hover-card.d.ts.map +1 -1
  970. package/dist/components/navigation-menu/navigation-menu.d.ts +6 -4
  971. package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -1
  972. package/dist/components/popover/popover.d.ts +5 -3
  973. package/dist/components/popover/popover.d.ts.map +1 -1
  974. package/dist/components/portal-container/portal-container.d.ts +169 -0
  975. package/dist/components/portal-container/portal-container.d.ts.map +1 -0
  976. package/dist/components/portal-container/public.d.ts +2 -0
  977. package/dist/components/portal-container/public.d.ts.map +1 -0
  978. package/dist/components/select/select.d.ts +5 -3
  979. package/dist/components/select/select.d.ts.map +1 -1
  980. package/dist/components/sheet/sheet.d.ts +4 -2
  981. package/dist/components/sheet/sheet.d.ts.map +1 -1
  982. package/dist/components/toast/toast.d.ts +5 -4
  983. package/dist/components/toast/toast.d.ts.map +1 -1
  984. package/dist/components/tooltip/tooltip.d.ts +5 -3
  985. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  986. package/dist/context-menu.js +2 -200
  987. package/dist/context-menu.js.map +1 -1
  988. package/dist/data-grid/actions-menu.js +3 -373
  989. package/dist/data-grid/actions-menu.js.map +1 -1
  990. package/dist/data-grid/actions.js +2 -35
  991. package/dist/data-grid/actions.js.map +1 -1
  992. package/dist/data-grid/drag-drop.js +2 -260
  993. package/dist/data-grid/drag-drop.js.map +1 -1
  994. package/dist/data-grid/empty-state.js +2 -26
  995. package/dist/data-grid/empty-state.js.map +1 -1
  996. package/dist/data-grid/filters.js +9 -1637
  997. package/dist/data-grid/filters.js.map +1 -1
  998. package/dist/data-grid/order.js +3 -254
  999. package/dist/data-grid/order.js.map +1 -1
  1000. package/dist/data-grid/pagination.js +2 -224
  1001. package/dist/data-grid/pagination.js.map +1 -1
  1002. package/dist/data-grid/row-actions.js +2 -51
  1003. package/dist/data-grid/row-actions.js.map +1 -1
  1004. package/dist/data-grid/row-click.js +2 -61
  1005. package/dist/data-grid/row-click.js.map +1 -1
  1006. package/dist/data-grid/row-detail.d.ts +1 -0
  1007. package/dist/data-grid/row-detail.js +3 -0
  1008. package/dist/data-grid/row-detail.js.map +1 -0
  1009. package/dist/data-grid/row-number.js +2 -37
  1010. package/dist/data-grid/row-number.js.map +1 -1
  1011. package/dist/data-grid/row-select.js +2 -292
  1012. package/dist/data-grid/row-select.js.map +1 -1
  1013. package/dist/data-grid/table-configuration.js +2 -176
  1014. package/dist/data-grid/table-configuration.js.map +1 -1
  1015. package/dist/data-grid/table-tree.js +2 -232
  1016. package/dist/data-grid/table-tree.js.map +1 -1
  1017. package/dist/data-grid/text-search.js +2 -99
  1018. package/dist/data-grid/text-search.js.map +1 -1
  1019. package/dist/data-grid.js +6 -1515
  1020. package/dist/data-grid.js.map +1 -1
  1021. package/dist/data-table.js +2 -161
  1022. package/dist/data-table.js.map +1 -1
  1023. package/dist/date-picker.js +2 -174
  1024. package/dist/date-picker.js.map +1 -1
  1025. package/dist/description-list.js +2 -77
  1026. package/dist/description-list.js.map +1 -1
  1027. package/dist/dialog.js +2 -68
  1028. package/dist/dialog.js.map +1 -1
  1029. package/dist/direction.js +2 -5
  1030. package/dist/direction.js.map +1 -1
  1031. package/dist/docs/alert-dialog.md +5 -5
  1032. package/dist/docs/bubble.md +3 -3
  1033. package/dist/docs/combobox.md +3 -4
  1034. package/dist/docs/context-menu.md +12 -5
  1035. package/dist/docs/data-grid.md +167 -25
  1036. package/dist/docs/dialog.md +5 -4
  1037. package/dist/docs/drawer.md +11 -2
  1038. package/dist/docs/dropdown-menu.md +12 -5
  1039. package/dist/docs/hover-card.md +11 -5
  1040. package/dist/docs/navigation-menu.md +6 -5
  1041. package/dist/docs/popover.md +5 -5
  1042. package/dist/docs/portal-container.md +195 -0
  1043. package/dist/docs/select.md +3 -4
  1044. package/dist/docs/sheet.md +5 -4
  1045. package/dist/docs/toast.md +11 -5
  1046. package/dist/docs/tooltip.md +10 -5
  1047. package/dist/drawer.js +2 -119
  1048. package/dist/drawer.js.map +1 -1
  1049. package/dist/dropdown-menu.js +2 -164
  1050. package/dist/dropdown-menu.js.map +1 -1
  1051. package/dist/empty.js +2 -70
  1052. package/dist/empty.js.map +1 -1
  1053. package/dist/field.js +2 -112
  1054. package/dist/field.js.map +1 -1
  1055. package/dist/grid.js +3 -226
  1056. package/dist/grid.js.map +1 -1
  1057. package/dist/heading.js +2 -35
  1058. package/dist/heading.js.map +1 -1
  1059. package/dist/hover-card.js +2 -43
  1060. package/dist/hover-card.js.map +1 -1
  1061. package/dist/index.d.ts +2 -0
  1062. package/dist/index.d.ts.map +1 -1
  1063. package/dist/index.js +105 -528
  1064. package/dist/index.js.map +1 -1
  1065. package/dist/input-group.js +2 -113
  1066. package/dist/input-group.js.map +1 -1
  1067. package/dist/input-otp.js +2 -41
  1068. package/dist/input-otp.js.map +1 -1
  1069. package/dist/input.js +2 -35
  1070. package/dist/input.js.map +1 -1
  1071. package/dist/item.js +2 -154
  1072. package/dist/item.js.map +1 -1
  1073. package/dist/kbd.js +2 -16
  1074. package/dist/kbd.js.map +1 -1
  1075. package/dist/label.js +2 -11
  1076. package/dist/label.js.map +1 -1
  1077. package/dist/link.js +2 -54
  1078. package/dist/link.js.map +1 -1
  1079. package/dist/marker.js +2 -52
  1080. package/dist/marker.js.map +1 -1
  1081. package/dist/menubar.js +2 -49
  1082. package/dist/menubar.js.map +1 -1
  1083. package/dist/message-scroller.js +3 -68
  1084. package/dist/message-scroller.js.map +1 -1
  1085. package/dist/message.js +2 -36
  1086. package/dist/message.js.map +1 -1
  1087. package/dist/native-select.js +2 -42
  1088. package/dist/native-select.js.map +1 -1
  1089. package/dist/navigation-menu.js +2 -115
  1090. package/dist/navigation-menu.js.map +1 -1
  1091. package/dist/page-header.js +2 -87
  1092. package/dist/page-header.js.map +1 -1
  1093. package/dist/pagination.js +2 -134
  1094. package/dist/pagination.js.map +1 -1
  1095. package/dist/popover.js +2 -60
  1096. package/dist/popover.js.map +1 -1
  1097. package/dist/portal-container.d.ts +1 -0
  1098. package/dist/portal-container.js +7 -0
  1099. package/dist/portal-container.js.map +1 -0
  1100. package/dist/progress.js +2 -35
  1101. package/dist/progress.js.map +1 -1
  1102. package/dist/questionnaire.js +2 -208
  1103. package/dist/questionnaire.js.map +1 -1
  1104. package/dist/radio-group.js +2 -20
  1105. package/dist/radio-group.js.map +1 -1
  1106. package/dist/resizable.js +2 -23
  1107. package/dist/resizable.js.map +1 -1
  1108. package/dist/scroll-area.js +2 -31
  1109. package/dist/scroll-area.js.map +1 -1
  1110. package/dist/select.js +2 -144
  1111. package/dist/select.js.map +1 -1
  1112. package/dist/separator.js +2 -12
  1113. package/dist/separator.js.map +1 -1
  1114. package/dist/sheet.js +2 -93
  1115. package/dist/sheet.js.map +1 -1
  1116. package/dist/sidebar.js +2 -399
  1117. package/dist/sidebar.js.map +1 -1
  1118. package/dist/skeleton.js +2 -11
  1119. package/dist/skeleton.js.map +1 -1
  1120. package/dist/slider.js +2 -52
  1121. package/dist/slider.js.map +1 -1
  1122. package/dist/spinner.js +2 -55
  1123. package/dist/spinner.js.map +1 -1
  1124. package/dist/status-dot.js +2 -75
  1125. package/dist/status-dot.js.map +1 -1
  1126. package/dist/switch.js +2 -25
  1127. package/dist/switch.js.map +1 -1
  1128. package/dist/table.js +2 -266
  1129. package/dist/table.js.map +1 -1
  1130. package/dist/tabs.js +2 -58
  1131. package/dist/tabs.js.map +1 -1
  1132. package/dist/text.js +2 -52
  1133. package/dist/text.js.map +1 -1
  1134. package/dist/textarea.js +2 -19
  1135. package/dist/textarea.js.map +1 -1
  1136. package/dist/toast.js +2 -83
  1137. package/dist/toast.js.map +1 -1
  1138. package/dist/toggle-group.js +2 -60
  1139. package/dist/toggle-group.js.map +1 -1
  1140. package/dist/toggle.js +2 -48
  1141. package/dist/toggle.js.map +1 -1
  1142. package/dist/tooltip.js +2 -51
  1143. package/dist/tooltip.js.map +1 -1
  1144. package/dist/visually-hidden.js +2 -17
  1145. package/dist/visually-hidden.js.map +1 -1
  1146. package/llms.txt +24 -8
  1147. package/package.json +2 -1
  1148. package/dist/chunks/create-column-auto-size.js.map +0 -1
  1149. package/dist/chunks/data-grid-portal-container-context.js.map +0 -1
  1150. package/dist/chunks/data-grid-record-context.js.map +0 -1
  1151. package/dist/chunks/data-grid.DSkYrsay.css +0 -1
  1152. package/dist/chunks/debounce.js.map +0 -1
  1153. package/dist/chunks/deep-equal.js.map +0 -1
  1154. package/dist/chunks/filters.DQtlBXh7.css +0 -1
  1155. package/dist/chunks/grid.BvRXPN-7.css +0 -1
  1156. package/dist/chunks/hooked.js.map +0 -1
  1157. package/dist/chunks/ignore-row-click.js.map +0 -1
  1158. package/dist/chunks/is-record.js.map +0 -1
  1159. package/dist/chunks/messages.js.map +0 -1
  1160. package/dist/chunks/pagination.DPVITj_D.css +0 -1
  1161. package/dist/chunks/plugins-helpers.js +0 -41
  1162. package/dist/chunks/plugins-helpers.js.map +0 -1
  1163. package/dist/chunks/resolve-body-cell-props.js +0 -124
  1164. package/dist/chunks/resolve-body-cell-props.js.map +0 -1
  1165. package/dist/chunks/row-click-utils.js.map +0 -1
  1166. package/dist/chunks/row-select.BjKdiMf5.css +0 -1
  1167. package/dist/chunks/segment.js +0 -25
  1168. package/dist/chunks/segment.js.map +0 -1
  1169. package/dist/chunks/storage-helpers.js +0 -40
  1170. package/dist/chunks/storage-helpers.js.map +0 -1
  1171. package/dist/chunks/table-context.js +0 -8
  1172. package/dist/chunks/table-context.js.map +0 -1
  1173. package/dist/chunks/table-helpers.js.map +0 -1
  1174. package/dist/chunks/table-types.js.map +0 -1
  1175. package/dist/chunks/use-latest.js.map +0 -1
  1176. /package/dist/chunks/{accordion.CXlSdkrc.css → components/accordion/accordion.module.CXlSdkrc.css} +0 -0
  1177. /package/dist/chunks/{alert.Csv2-ccF.css → components/alert/alert.module.Csv2-ccF.css} +0 -0
  1178. /package/dist/chunks/{alert-dialog.C4aLtUC8.css → components/alert-dialog/alert-dialog.module.C4aLtUC8.css} +0 -0
  1179. /package/dist/chunks/{aspect-ratio.DJbPE7BX.css → components/aspect-ratio/aspect-ratio.module.DJbPE7BX.css} +0 -0
  1180. /package/dist/chunks/{attachment.BRyIQq3F.css → components/attachment/attachment.module.BRyIQq3F.css} +0 -0
  1181. /package/dist/chunks/{avatar.7EUG65-M.css → components/avatar/avatar.module.7EUG65-M.css} +0 -0
  1182. /package/dist/chunks/{badge.BwUxa9PB.css → components/badge/badge.module.BwUxa9PB.css} +0 -0
  1183. /package/dist/chunks/{breadcrumb.QKz32ceR.css → components/breadcrumb/breadcrumb.module.QKz32ceR.css} +0 -0
  1184. /package/dist/chunks/{bubble.Ccu0e3lY.css → components/bubble/bubble.module.Ccu0e3lY.css} +0 -0
  1185. /package/dist/chunks/{button.BWdRnIvz.css → components/button/button.module.BWdRnIvz.css} +0 -0
  1186. /package/dist/chunks/{button-group.BB-_2uav.css → components/button-group/button-group.module.BB-_2uav.css} +0 -0
  1187. /package/dist/chunks/{calendar.Dtndav4F.css → components/calendar/calendar.module.Dtndav4F.css} +0 -0
  1188. /package/dist/chunks/{card.DSiUMxGK.css → components/card/card.module.DSiUMxGK.css} +0 -0
  1189. /package/dist/chunks/{carousel.CjaKGN_D.css → components/carousel/carousel.module.CjaKGN_D.css} +0 -0
  1190. /package/dist/chunks/{chart.B9cGEno8.css → components/chart/chart.module.B9cGEno8.css} +0 -0
  1191. /package/dist/chunks/{checkbox.CrdIZhi1.css → components/checkbox/checkbox.module.CrdIZhi1.css} +0 -0
  1192. /package/dist/chunks/{code-block.r7Cm0ncj.css → components/code-block/code-block.module.r7Cm0ncj.css} +0 -0
  1193. /package/dist/chunks/{collapsible.BkLeBug_.css → components/collapsible/collapsible.module.BkLeBug_.css} +0 -0
  1194. /package/dist/chunks/{combobox.CKhQGu5a.css → components/combobox/combobox.module.CKhQGu5a.css} +0 -0
  1195. /package/dist/chunks/{command.BBW1Cy-M.css → components/command/command.module.BBW1Cy-M.css} +0 -0
  1196. /package/dist/chunks/{context-menu.D_HuTgqL.css → components/context-menu/context-menu.module.D_HuTgqL.css} +0 -0
  1197. /package/dist/chunks/{actions.iasfkjWq.css → components/data-grid/plugins/actions/components/data-grid-actions-wrapper.module.iasfkjWq.css} +0 -0
  1198. /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
  1199. /package/dist/chunks/{row-actions.BprAXgu2.css → components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.module.BprAXgu2.css} +0 -0
  1200. /package/dist/chunks/{row-click.DAYTmSBO.css → components/data-grid/plugins/row-click/components/data-grid-row-click.module.DAYTmSBO.css} +0 -0
  1201. /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
  1202. /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
  1203. /package/dist/chunks/{table-tree.DMtpMddS.css → components/data-grid/plugins/table-tree/components/data-grid-table-tree.module.DMtpMddS.css} +0 -0
  1204. /package/dist/chunks/{text-search.BeZYac6V.css → components/data-grid/plugins/text-search/components/data-grid-text-search.module.BeZYac6V.css} +0 -0
  1205. /package/dist/chunks/{resolve-body-cell-props.BA5IRWq0.css → components/data-grid/services/table/components/data-grid-cell.module.BA5IRWq0.css} +0 -0
  1206. /package/dist/chunks/{data-table.DJJaM7bh.css → components/data-table/data-table.module.DJJaM7bh.css} +0 -0
  1207. /package/dist/chunks/{date-picker.BcRqyOg8.css → components/date-picker/date-picker.module.BcRqyOg8.css} +0 -0
  1208. /package/dist/chunks/{description-list.Cx-vFGJL.css → components/description-list/description-list.module.Cx-vFGJL.css} +0 -0
  1209. /package/dist/chunks/{dialog.CIR9bQoU.css → components/dialog/dialog.module.CIR9bQoU.css} +0 -0
  1210. /package/dist/chunks/{drawer.D8l6-G8t.css → components/drawer/drawer.module.D8l6-G8t.css} +0 -0
  1211. /package/dist/chunks/{dropdown-menu.DT1_JLqL.css → components/dropdown-menu/dropdown-menu.module.DT1_JLqL.css} +0 -0
  1212. /package/dist/chunks/{empty.Cfg5lE0n.css → components/empty/empty.module.Cfg5lE0n.css} +0 -0
  1213. /package/dist/chunks/{field.CDoJmJUe.css → components/field/field.module.CDoJmJUe.css} +0 -0
  1214. /package/dist/chunks/{heading.DQxQs5po.css → components/heading/heading.module.DQxQs5po.css} +0 -0
  1215. /package/dist/chunks/{hover-card.D00tbys5.css → components/hover-card/hover-card.module.D00tbys5.css} +0 -0
  1216. /package/dist/chunks/{input.DORly3Cx.css → components/input/input.module.DORly3Cx.css} +0 -0
  1217. /package/dist/chunks/{input-group.C7XgalVn.css → components/input-group/input-group.module.C7XgalVn.css} +0 -0
  1218. /package/dist/chunks/{input-otp.Dvxlngb4.css → components/input-otp/input-otp.module.Dvxlngb4.css} +0 -0
  1219. /package/dist/chunks/{item.BQ70Khqj.css → components/item/item.module.BQ70Khqj.css} +0 -0
  1220. /package/dist/chunks/{kbd.DZuUVB_m.css → components/kbd/kbd.module.DZuUVB_m.css} +0 -0
  1221. /package/dist/chunks/{label.s0Wrm1i-.css → components/label/label.module.s0Wrm1i-.css} +0 -0
  1222. /package/dist/chunks/{link.BOE4f-aB.css → components/link/link.module.BOE4f-aB.css} +0 -0
  1223. /package/dist/chunks/{marker.DDxI_rZn.css → components/marker/marker.module.DDxI_rZn.css} +0 -0
  1224. /package/dist/chunks/{menubar.CJcVQhPq.css → components/menubar/menubar.module.CJcVQhPq.css} +0 -0
  1225. /package/dist/chunks/{message.B9Rexp_f.css → components/message/message.module.B9Rexp_f.css} +0 -0
  1226. /package/dist/chunks/{message-scroller.CBjPcz8Y.css → components/message-scroller/message-scroller.module.CBjPcz8Y.css} +0 -0
  1227. /package/dist/chunks/{native-select.BosBdRAx.css → components/native-select/native-select.module.BosBdRAx.css} +0 -0
  1228. /package/dist/chunks/{navigation-menu.CuXMCPRN.css → components/navigation-menu/navigation-menu.module.CuXMCPRN.css} +0 -0
  1229. /package/dist/chunks/{page-header.72nfJNkg.css → components/page-header/page-header.module.72nfJNkg.css} +0 -0
  1230. /package/dist/chunks/{pagination.DJ7HJSFX.css → components/pagination/pagination.module.DJ7HJSFX.css} +0 -0
  1231. /package/dist/chunks/{popover.BYhwNKnZ.css → components/popover/popover.module.BYhwNKnZ.css} +0 -0
  1232. /package/dist/chunks/{progress.DjSEXfxh.css → components/progress/progress.module.DjSEXfxh.css} +0 -0
  1233. /package/dist/chunks/{questionnaire.C-YTRjPE.css → components/questionnaire/questionnaire.module.C-YTRjPE.css} +0 -0
  1234. /package/dist/chunks/{radio-group.CisvBT6g.css → components/radio-group/radio-group.module.CisvBT6g.css} +0 -0
  1235. /package/dist/chunks/{resizable.B71V-1lR.css → components/resizable/resizable.module.B71V-1lR.css} +0 -0
  1236. /package/dist/chunks/{scroll-area.B0OVmDRX.css → components/scroll-area/scroll-area.module.B0OVmDRX.css} +0 -0
  1237. /package/dist/chunks/{select.C3sLDoZI.css → components/select/select.module.C3sLDoZI.css} +0 -0
  1238. /package/dist/chunks/{separator.DdRRkJW4.css → components/separator/separator.module.DdRRkJW4.css} +0 -0
  1239. /package/dist/chunks/{sheet.BkZyzAbA.css → components/sheet/sheet.module.BkZyzAbA.css} +0 -0
  1240. /package/dist/chunks/{sidebar.Dw_e0Jqw.css → components/sidebar/sidebar.module.Dw_e0Jqw.css} +0 -0
  1241. /package/dist/chunks/{skeleton.BhWSzPnI.css → components/skeleton/skeleton.module.BhWSzPnI.css} +0 -0
  1242. /package/dist/chunks/{slider.DY1XDCPw.css → components/slider/slider.module.DY1XDCPw.css} +0 -0
  1243. /package/dist/chunks/{spinner.CLQsj9Ky.css → components/spinner/spinner.module.CLQsj9Ky.css} +0 -0
  1244. /package/dist/chunks/{status-dot.39NKkKQF.css → components/status-dot/status-dot.module.39NKkKQF.css} +0 -0
  1245. /package/dist/chunks/{switch.BYqd9jlJ.css → components/switch/switch.module.BYqd9jlJ.css} +0 -0
  1246. /package/dist/chunks/{table.biUlW2U6.css → components/table/table.module.biUlW2U6.css} +0 -0
  1247. /package/dist/chunks/{tabs.BqhiMRUP.css → components/tabs/tabs.module.BqhiMRUP.css} +0 -0
  1248. /package/dist/chunks/{text.7frjnkUr.css → components/text/text.module.7frjnkUr.css} +0 -0
  1249. /package/dist/chunks/{textarea.DMphp0qh.css → components/textarea/textarea.module.DMphp0qh.css} +0 -0
  1250. /package/dist/chunks/{toast.Dw-jW4YY.css → components/toast/toast.module.Dw-jW4YY.css} +0 -0
  1251. /package/dist/chunks/{toggle.B82Id2zR.css → components/toggle/toggle.module.B82Id2zR.css} +0 -0
  1252. /package/dist/chunks/{toggle-group.BpWF6enM.css → components/toggle-group/toggle-group.module.BpWF6enM.css} +0 -0
  1253. /package/dist/chunks/{tooltip.CFJyyz-O.css → components/tooltip/tooltip.module.CFJyyz-O.css} +0 -0
  1254. /package/dist/chunks/{visually-hidden.Bd2oAR5D.css → components/visually-hidden/visually-hidden.module.Bd2oAR5D.css} +0 -0
@@ -1,177 +1,3 @@
1
- "use client";
2
- import { c as f } from "../chunks/plugins-helpers.js";
3
- import { jsx as n, jsxs as s } from "react/jsx-runtime";
4
- import { PinIcon as b, SettingsIcon as C } from "lucide-react";
5
- import { m as c } from "../chunks/messages.js";
6
- import { u as h } from "../chunks/data-grid-portal-container-context.js";
7
- import { Fragment as _ } from "react";
8
- import { u as T } from "../chunks/table-context.js";
9
- import { a as y } from "../chunks/table-types.js";
10
- import { cx as u } from "class-variance-authority";
11
- import { Toggle as k } from "../toggle.js";
12
- import { DropdownMenuItem as g, DropdownMenu as S, DropdownMenuSeparator as w } from "../dropdown-menu.js";
13
- import { Switch as N } from "../switch.js";
14
- import { Popover as v, PopoverTrigger as I, PopoverContent as D } from "../popover.js";
15
- import { Button as B } from "../button.js";
16
- import '../chunks/table-configuration.a6C_fp7B.css';const G = "_popup_i679w_8", P = "_tableConfiguration_i679w_23", V = "_header_i679w_33", x = "_content_i679w_48", z = "_configurationItem_i679w_61", M = "_pinButton_i679w_92", j = "_pinButtonVisible_i679w_97", O = "_pin_i679w_92", F = "_label_i679w_116", q = "_configurationItemNoSticky_i679w_122", A = "_groupContent_i679w_126", o = {
17
- popup: G,
18
- tableConfiguration: P,
19
- header: V,
20
- content: x,
21
- configurationItem: z,
22
- pinButton: M,
23
- pinButtonVisible: j,
24
- pin: O,
25
- label: F,
26
- configurationItemNoSticky: q,
27
- groupContent: A
28
- };
29
- function m({
30
- sticky: i,
31
- onToggle: a
32
- }) {
33
- return /* @__PURE__ */ n("div", { className: u(o.pinButton, i && o.pinButtonVisible), children: /* @__PURE__ */ n(
34
- k,
35
- {
36
- className: o.pin,
37
- iconOnly: !0,
38
- size: "sm",
39
- pressed: i ?? !1,
40
- onPressedChange: a,
41
- "aria-label": i ? c.tableConfiguration.unpinColumn : c.tableConfiguration.pinColumn,
42
- children: /* @__PURE__ */ n(b, {})
43
- }
44
- ) });
45
- }
46
- function d({
47
- column: i,
48
- hasSticky: a,
49
- onVisibilityToggle: l,
50
- onStickyToggle: r
51
- }) {
52
- function t(p) {
53
- l(i.id, p);
54
- }
55
- function e() {
56
- r(i.id, !i.sticky);
57
- }
58
- return /* @__PURE__ */ s(
59
- g,
60
- {
61
- className: u(o.configurationItem, !a && o.configurationItemNoSticky),
62
- children: [
63
- a && /* @__PURE__ */ n(m, { sticky: i.sticky, onToggle: e }),
64
- /* @__PURE__ */ n("span", { className: o.label, children: i.label }),
65
- /* @__PURE__ */ n(
66
- N,
67
- {
68
- size: "sm",
69
- checked: i.visible,
70
- disabled: i.visibleToggleDisabled,
71
- onCheckedChange: t
72
- }
73
- )
74
- ]
75
- }
76
- );
77
- }
78
- function E({
79
- group: i,
80
- hasSticky: a,
81
- onVisibilityToggle: l,
82
- onStickyToggle: r
83
- }) {
84
- function t() {
85
- r(i.id, !i.sticky);
86
- }
87
- return /* @__PURE__ */ s("div", { children: [
88
- /* @__PURE__ */ s(g, { className: o.configurationItem, children: [
89
- a && /* @__PURE__ */ n(m, { sticky: i.sticky, onToggle: t }),
90
- /* @__PURE__ */ n("span", { className: o.label, children: i.label })
91
- ] }),
92
- /* @__PURE__ */ n("div", { className: o.groupContent, children: i.columns.map((e) => /* @__PURE__ */ n(
93
- d,
94
- {
95
- column: e,
96
- onVisibilityToggle: l,
97
- onStickyToggle: r
98
- },
99
- e.id
100
- )) })
101
- ] });
102
- }
103
- function H() {
104
- const i = T(), a = i.useConfigurationColumns();
105
- function l(t, e) {
106
- i.updateColumnVisibility(t, e);
107
- }
108
- function r(t, e) {
109
- i.updateColumnSticky(t, e);
110
- }
111
- return (
112
- // The menu parts without a popup of their own: the popover is the popup, and the menu only
113
- // supplies the items, so there is no arrow-key navigation between them.
114
- /* @__PURE__ */ n(S, { open: !0, modal: !1, children: /* @__PURE__ */ s("div", { className: o.tableConfiguration, children: [
115
- /* @__PURE__ */ n("div", { className: o.header, children: c.tableConfiguration.header }),
116
- /* @__PURE__ */ n("div", { className: o.content, children: a.map((t, e) => /* @__PURE__ */ s(_, { children: [
117
- y(t) ? /* @__PURE__ */ n(
118
- E,
119
- {
120
- group: t,
121
- hasSticky: !0,
122
- onVisibilityToggle: l,
123
- onStickyToggle: r
124
- }
125
- ) : /* @__PURE__ */ n(
126
- d,
127
- {
128
- column: t,
129
- hasSticky: !0,
130
- onVisibilityToggle: l,
131
- onStickyToggle: r
132
- }
133
- ),
134
- e !== a.length - 1 && /* @__PURE__ */ n(w, {})
135
- ] }, t.id)) })
136
- ] }) })
137
- );
138
- }
139
- function J() {
140
- const i = h();
141
- return /* @__PURE__ */ s(v, { children: [
142
- /* @__PURE__ */ n(
143
- I,
144
- {
145
- render: /* @__PURE__ */ n(
146
- B,
147
- {
148
- variant: "ghost",
149
- size: "sm",
150
- icon: /* @__PURE__ */ n(C, {}),
151
- "aria-label": c.tableConfiguration.configureColumns
152
- }
153
- )
154
- }
155
- ),
156
- /* @__PURE__ */ n(
157
- D,
158
- {
159
- side: "bottom",
160
- align: "end",
161
- sideOffset: 4,
162
- className: o.popup,
163
- container: i,
164
- children: /* @__PURE__ */ n(H, {})
165
- }
166
- )
167
- ] });
168
- }
169
- const ei = f("tableConfiguration", (i) => (i.registerSlot("top-end", {
170
- id: "tableConfiguration",
171
- component: J,
172
- order: 10
173
- }), {}));
174
- export {
175
- ei as DataGridTableConfigurationPlugin
176
- };
1
+ export { DataGridTableConfigurationPlugin } from "../chunks/components/data-grid/plugins/table-configuration/table-configuration-plugin.js";
2
+
177
3
  //# sourceMappingURL=table-configuration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-configuration.js","sources":["../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.tsx","../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.tsx","../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.tsx","../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.tsx","../../src/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.tsx","../../src/components/data-grid/plugins/table-configuration/table-configuration-plugin.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport { PinIcon } from 'lucide-react';\n\nimport { Toggle } from '../../../../toggle/public.js';\nimport { messages } from '../../../messages';\nimport styles from './data-grid-table-configuration.module.css';\n\ninterface DataGridTableConfigurationPinButtonProps {\n sticky?: boolean;\n onToggle: () => void;\n}\n\nexport function DataGridTableConfigurationPinButton({\n sticky,\n onToggle,\n}: DataGridTableConfigurationPinButtonProps) {\n return (\n <div className={cx(styles.pinButton, sticky && styles.pinButtonVisible)}>\n <Toggle\n className={styles.pin}\n iconOnly\n size=\"sm\"\n pressed={sticky ?? false}\n onPressedChange={onToggle}\n aria-label={\n sticky ? messages.tableConfiguration.unpinColumn : messages.tableConfiguration.pinColumn\n }\n >\n <PinIcon />\n </Toggle>\n </div>\n );\n}\n","import { cx } from 'class-variance-authority';\n\nimport { DropdownMenuItem } from '../../../../dropdown-menu/public.js';\nimport { Switch } from '../../../../switch/public.js';\nimport type { ConfigurationColumn } from '../../../services/table/table-types';\nimport styles from './data-grid-table-configuration.module.css';\nimport { DataGridTableConfigurationPinButton } from './data-grid-table-configuration-pin-button';\n\ninterface DataGridTableConfigurationItemProps {\n column: ConfigurationColumn;\n hasSticky?: boolean;\n onVisibilityToggle: (columnId: string, visible: boolean) => void;\n onStickyToggle: (columnId: string, sticky: boolean) => void;\n}\n\nexport function DataGridTableConfigurationItem({\n column,\n hasSticky,\n onVisibilityToggle,\n onStickyToggle,\n}: DataGridTableConfigurationItemProps) {\n function handleVisibilityToggle(visible: boolean) {\n onVisibilityToggle(column.id, visible);\n }\n\n function handleStickyToggle() {\n onStickyToggle(column.id, !column.sticky);\n }\n\n // The item holds a switch and a pin button, both interactive: a menu item is the row they sit\n // in, not something to activate itself.\n return (\n <DropdownMenuItem\n className={cx(styles.configurationItem, !hasSticky && styles.configurationItemNoSticky)}\n >\n {hasSticky && (\n <DataGridTableConfigurationPinButton sticky={column.sticky} onToggle={handleStickyToggle} />\n )}\n <span className={styles.label}>{column.label}</span>\n <Switch\n size=\"sm\"\n checked={column.visible}\n disabled={column.visibleToggleDisabled}\n onCheckedChange={handleVisibilityToggle}\n />\n </DropdownMenuItem>\n );\n}\n","import { DropdownMenuItem } from '../../../../dropdown-menu/public.js';\nimport type { ConfigurationGroup } from '../../../services/table/table-types';\nimport styles from './data-grid-table-configuration.module.css';\nimport { DataGridTableConfigurationItem } from './data-grid-table-configuration-item';\nimport { DataGridTableConfigurationPinButton } from './data-grid-table-configuration-pin-button';\n\ninterface DataGridTableConfigurationGroupItemProps {\n group: ConfigurationGroup;\n hasSticky?: boolean;\n onVisibilityToggle: (columnId: string, visible: boolean) => void;\n onStickyToggle: (id: string, sticky: boolean) => void;\n}\n\nexport function DataGridTableConfigurationGroupItem({\n group,\n hasSticky,\n onVisibilityToggle,\n onStickyToggle,\n}: DataGridTableConfigurationGroupItemProps) {\n function handleStickyToggle() {\n onStickyToggle(group.id, !group.sticky);\n }\n\n return (\n <div>\n <DropdownMenuItem className={styles.configurationItem}>\n {hasSticky && (\n <DataGridTableConfigurationPinButton sticky={group.sticky} onToggle={handleStickyToggle} />\n )}\n <span className={styles.label}>{group.label}</span>\n </DropdownMenuItem>\n <div className={styles.groupContent}>\n {group.columns.map((col) => (\n <DataGridTableConfigurationItem\n key={col.id}\n column={col}\n onVisibilityToggle={onVisibilityToggle}\n onStickyToggle={onStickyToggle}\n />\n ))}\n </div>\n </div>\n );\n}\n","import { Fragment } from 'react';\n\nimport { DropdownMenu, DropdownMenuSeparator } from '../../../../dropdown-menu/public.js';\nimport { messages } from '../../../messages';\nimport { useTableService } from '../../../services/table/table-context';\nimport { isConfigurationGroup } from '../../../services/table/table-types';\nimport styles from './data-grid-table-configuration.module.css';\nimport { DataGridTableConfigurationGroupItem } from './data-grid-table-configuration-group-item';\nimport { DataGridTableConfigurationItem } from './data-grid-table-configuration-item';\n\nexport function DataGridTableConfiguration() {\n const tableService = useTableService();\n const columns = tableService.useConfigurationColumns();\n\n function handleVisibilityToggle(columnId: string, visible: boolean) {\n tableService.updateColumnVisibility(columnId, visible);\n }\n\n function handleStickyToggle(id: string, sticky: boolean) {\n tableService.updateColumnSticky(id, sticky);\n }\n\n return (\n // The menu parts without a popup of their own: the popover is the popup, and the menu only\n // supplies the items, so there is no arrow-key navigation between them.\n <DropdownMenu open modal={false}>\n <div className={styles.tableConfiguration}>\n <div className={styles.header}>{messages.tableConfiguration.header}</div>\n <div className={styles.content}>\n {columns.map((entry, index) => (\n <Fragment key={entry.id}>\n {isConfigurationGroup(entry) ? (\n <DataGridTableConfigurationGroupItem\n group={entry}\n hasSticky\n onVisibilityToggle={handleVisibilityToggle}\n onStickyToggle={handleStickyToggle}\n />\n ) : (\n <DataGridTableConfigurationItem\n column={entry}\n hasSticky\n onVisibilityToggle={handleVisibilityToggle}\n onStickyToggle={handleStickyToggle}\n />\n )}\n {index !== columns.length - 1 && <DropdownMenuSeparator />}\n </Fragment>\n ))}\n </div>\n </div>\n </DropdownMenu>\n );\n}\n","import { SettingsIcon } from 'lucide-react';\n\nimport { Button } from '../../../../button/public.js';\nimport { Popover, PopoverContent, PopoverTrigger } from '../../../../popover/public.js';\nimport { messages } from '../../../messages';\nimport { useDataGridPortalContainer } from '../../../services/core/data-grid-portal-container-context';\nimport styles from './data-grid-table-configuration.module.css';\nimport { DataGridTableConfiguration } from './data-grid-table-configuration';\n\nexport function DataGridTableConfigurationTrigger() {\n const portalContainer = useDataGridPortalContainer();\n\n return (\n <Popover>\n <PopoverTrigger\n render={\n <Button\n variant=\"ghost\"\n size=\"sm\"\n icon={<SettingsIcon />}\n aria-label={messages.tableConfiguration.configureColumns}\n />\n }\n />\n <PopoverContent\n side=\"bottom\"\n align=\"end\"\n sideOffset={4}\n className={styles.popup}\n container={portalContainer}\n >\n <DataGridTableConfiguration />\n </PopoverContent>\n </Popover>\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 { DataGridItem } from '../../data-grid-types';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport { DataGridTableConfigurationTrigger } from './components/data-grid-table-configuration-trigger';\n\n/** The plugin takes no props; the type is public so a consumer can name it. */\nexport type DataGridTableConfigurationPluginProps = Record<string, never>;\n\nexport const DataGridTableConfigurationPlugin = createDataGridPlugin<\n DataGridItem,\n 'tableConfiguration',\n DataGridTableConfigurationPluginProps\n>('tableConfiguration', (context) => {\n context.registerSlot('top-end', {\n id: 'tableConfiguration',\n component: DataGridTableConfigurationTrigger,\n order: 10,\n });\n\n return {};\n});\n"],"names":["DataGridTableConfigurationPinButton","sticky","onToggle","jsx","cx","styles","Toggle","messages","PinIcon","DataGridTableConfigurationItem","column","hasSticky","onVisibilityToggle","onStickyToggle","handleVisibilityToggle","visible","handleStickyToggle","jsxs","DropdownMenuItem","Switch","DataGridTableConfigurationGroupItem","group","col","DataGridTableConfiguration","tableService","useTableService","columns","columnId","id","DropdownMenu","entry","index","Fragment","isConfigurationGroup","DropdownMenuSeparator","DataGridTableConfigurationTrigger","portalContainer","useDataGridPortalContainer","Popover","PopoverTrigger","Button","SettingsIcon","PopoverContent","DataGridTableConfigurationPlugin","createDataGridPlugin","context"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYO,SAASA,EAAoC;AAAA,EAClD,QAAAC;AAAA,EACA,UAAAC;AACF,GAA6C;AAC3C,SACE,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,WAAWJ,KAAUI,EAAO,gBAAgB,GACpE,UAAA,gBAAAF;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,WAAWD,EAAO;AAAA,MAClB,UAAQ;AAAA,MACR,MAAK;AAAA,MACL,SAASJ,KAAU;AAAA,MACnB,iBAAiBC;AAAA,MACjB,cACED,IAASM,EAAS,mBAAmB,cAAcA,EAAS,mBAAm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,MAAUL,EAAQ,SAAS,uBAAMQ,GAAA,CAAA,CAAsB;AAAA,MAAA,KAhB3CJ,EAAM,EAiBrB,CACD,EAAA,CACH;AAAA,IAAA,EAAA,CACF,EAAA,CACF;AAAA;AAEJ;AC5CO,SAASK,IAAoC;AAClD,QAAMC,IAAkBC,EAAA;AAExB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAnC;AAAA,MAACoC;AAAA,MAAA;AAAA,QACC,QACE,gBAAApC;AAAA,UAACqC;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,wBAAOC,GAAA,EAAa;AAAA,YACpB,cAAYlC,EAAS,mBAAmB;AAAA,UAAA;AAAA,QAAA;AAAA,MAC1C;AAAA,IAAA;AAAA,IAGJ,gBAAAJ;AAAA,MAACuC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAM;AAAA,QACN,YAAY;AAAA,QACZ,WAAWrC,EAAO;AAAA,QAClB,WAAW+B;AAAA,QAEX,4BAACb,GAAA,CAAA,CAA2B;AAAA,MAAA;AAAA,IAAA;AAAA,EAC9B,GACF;AAEJ;ACrBO,MAAMoB,KAAmCC,EAI9C,sBAAsB,CAACC,OACvBA,EAAQ,aAAa,WAAW;AAAA,EAC9B,IAAI;AAAA,EACJ,WAAWV;AAAA,EACX,OAAO;AAAA,CACR,GAEM,CAAA,EACR;"}
1
+ {"version":3,"file":"table-configuration.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,233 +1,3 @@
1
- "use client";
2
- import { create as G } from "zustand";
3
- import { u as N, b as F, c as V } from "../chunks/plugins-helpers.js";
4
- import { jsx as l, jsxs as E } from "react/jsx-runtime";
5
- import { a as L, D as j, g as $ } from "../chunks/storage-helpers.js";
6
- import { u as K, D as M } from "../chunks/data-grid-record-context.js";
7
- import { u as A } from "../chunks/table-context.js";
8
- import { ChevronDownIcon as O } from "lucide-react";
9
- import { I as U } from "../chunks/ignore-row-click.js";
10
- import { Button as q } from "../button.js";
11
- import { D as B, r as H, a as J } from "../chunks/resolve-body-cell-props.js";
12
- import { g as k } from "../chunks/row-click-utils.js";
13
- import { TableRow as Q } from "../table.js";
14
- import '../chunks/table-tree.DMtpMddS.css';const W = "_treeCellContent_p1inr_1", X = "_expand_p1inr_6", Y = "_expandIcon_p1inr_13", Z = "_expandIconCollapsed_p1inr_18", ee = "_label_p1inr_35", te = "_indentSpacer_p1inr_50", ne = "_toggle_p1inr_65", oe = "_clickableRow_p1inr_120", m = {
15
- treeCellContent: W,
16
- expand: X,
17
- expandIcon: Y,
18
- expandIconCollapsed: Z,
19
- label: ee,
20
- indentSpacer: te,
21
- toggle: ne,
22
- clickableRow: oe
23
- };
24
- function se() {
25
- const t = N(), o = K(), r = t.getPlugin("tableTree"), c = r.useIsExpanded(o.id) ? m.expandIcon : `${m.expandIcon} ${m.expandIconCollapsed}`;
26
- return /* @__PURE__ */ l("div", { className: m.expand, [U]: "", children: /* @__PURE__ */ l(
27
- q,
28
- {
29
- variant: "ghost",
30
- size: "sm",
31
- className: m.toggle,
32
- icon: /* @__PURE__ */ l(O, { className: c }),
33
- onClick: () => r.toggle(o.id)
34
- }
35
- ) });
36
- }
37
- function ae({
38
- column: t,
39
- item: o
40
- }) {
41
- var p;
42
- const r = N(), d = K(), c = A(), g = r.getPlugin("tableTree"), S = ((p = c.useVisibleColumns()[0]) == null ? void 0 : p.id) === t.id, b = g.useIsExpandable(d), C = g.useLevel(d.section);
43
- return (b || C > 0) && S ? /* @__PURE__ */ E("div", { className: m.treeCellContent, children: [
44
- C > 0 && /* @__PURE__ */ l(
45
- "div",
46
- {
47
- className: m.indentSpacer,
48
- style: { inlineSize: `calc(var(--_data-grid-table-tree-indent) * ${C})` }
49
- }
50
- ),
51
- b && /* @__PURE__ */ l(se, {}),
52
- /* @__PURE__ */ l("div", { className: m.label, children: /* @__PURE__ */ l(L, { column: t, item: o }) })
53
- ] }) : /* @__PURE__ */ l(L, { column: t, item: o });
54
- }
55
- function re({
56
- record: t
57
- }) {
58
- const o = F(), r = o.table, d = r.useVisibleColumns(), c = r.useTableLayout(), g = o.plugins.getPlugin("tableTree"), f = o.plugins.getPlugin("rowClick"), S = g.useIsExpanded(t.id), b = o.storage.getRecordsByParentId(t.id), C = r.useComponent("body-cell-content"), p = !!f, x = p ? k(t.item, () => f == null ? void 0 : f.click) : void 0, P = p ? k(t.item, () => f == null ? void 0 : f.dblclick) : void 0, T = p ? (i) => {
59
- i.key === "Enter" && (x == null || x(i));
60
- } : void 0;
61
- return /* @__PURE__ */ E(M, { value: t, children: [
62
- /* @__PURE__ */ E(
63
- Q,
64
- {
65
- className: p ? m.clickableRow : void 0,
66
- tabIndex: p ? 0 : void 0,
67
- onClick: x,
68
- onDoubleClick: P,
69
- onKeyDown: T,
70
- children: [
71
- /* @__PURE__ */ l(B, { position: "start" }),
72
- d.map((i) => {
73
- var _;
74
- const D = (_ = i.getClassName) == null ? void 0 : _.call(i, t.item), R = H(i, t.item, c);
75
- return /* @__PURE__ */ l(
76
- J,
77
- {
78
- columnId: i.id,
79
- className: D,
80
- ...R,
81
- children: /* @__PURE__ */ l(C, { column: i, item: t.item })
82
- },
83
- i.id
84
- );
85
- }),
86
- /* @__PURE__ */ l(B, { position: "end" })
87
- ]
88
- }
89
- ),
90
- S && b.length > 0 && /* @__PURE__ */ l(j, { records: b })
91
- ] });
92
- }
93
- function de(t, o) {
94
- const r = /* @__PURE__ */ new Map();
95
- for (const d of t) {
96
- const c = $(d, o) ?? null, g = r.get(c);
97
- g ? g.push(d) : r.set(c, [d]);
98
- }
99
- return r;
100
- }
101
- const ie = V("tableTree", (t) => {
102
- const o = G(() => ({
103
- expandedIds: /* @__PURE__ */ new Set()
104
- })), r = G(() => ({
105
- parentKey: void 0,
106
- expandable: void 0
107
- })), d = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), g = t.registerPersistentState("tree", {
108
- schema: { expanded: "object" },
109
- router: !1
110
- });
111
- return t.hook("load:prepare", R), t.hook("load:context", ({ loadContext: e }) => {
112
- var n;
113
- return {
114
- tree: { parentId: ((n = e.tree) == null ? void 0 : n.parentId) ?? null }
115
- };
116
- }), t.hook("load:store", _), t.registerComponent("row", re), t.registerComponent("body-cell-content", ae), {
117
- useIsExpandable: S,
118
- useIsExpanded: b,
119
- useLevel: C,
120
- toggle: p,
121
- isExpandable: w,
122
- onPropsChange: f
123
- };
124
- function f(e) {
125
- r.setState({
126
- parentKey: e.parentKey,
127
- expandable: e.expandable
128
- });
129
- }
130
- function S(e) {
131
- const n = r((a) => a.expandable), s = r((a) => a.parentKey);
132
- return n ? n(e.item) : s ? !!t.getSectionsByParentId(e.id).length : !1;
133
- }
134
- function b(e) {
135
- return o((n) => n.expandedIds.has(e));
136
- }
137
- function C(e) {
138
- const { parentId: n } = e;
139
- if (!n)
140
- return 0;
141
- const s = t.getRecord(n);
142
- return 1 + (s ? C(s.section) : 0);
143
- }
144
- function p(e) {
145
- const n = o.getState(), s = n.expandedIds.has(e), a = new Set(n.expandedIds);
146
- s ? a.delete(e) : a.add(e), o.setState({ expandedIds: a }), P(), s || i(e);
147
- }
148
- function x() {
149
- var h;
150
- const e = (h = g.value) == null ? void 0 : h.expanded, n = Array.isArray(e) ? e.filter((u) => typeof u == "string" || typeof u == "number").slice(-200) : [];
151
- if (!n.length)
152
- return;
153
- const { parentKey: s } = r.getState(), a = new Set(o.getState().expandedIds);
154
- for (const u of n)
155
- a.add(u), s || c.add(u);
156
- o.setState({ expandedIds: a });
157
- }
158
- function P() {
159
- const e = [...o.getState().expandedIds].slice(-200);
160
- g.setValue({ expanded: e });
161
- }
162
- function T(e) {
163
- if (!c.size)
164
- return;
165
- const { expandedIds: n } = o.getState();
166
- for (const s of e)
167
- for (const a of s.records)
168
- !c.delete(a.id) || !n.has(a.id) || (w(a) ? i(a.id) : p(a.id));
169
- }
170
- function i(e) {
171
- if (D(e))
172
- return;
173
- t.getSectionsByParentId(e).length || t.triggerLoad({ loadContext: { tree: { parentId: e } } });
174
- }
175
- function D(e) {
176
- return t.getLoadInstances().find((n) => {
177
- var s;
178
- return ((s = n.loadContext.tree) == null ? void 0 : s.parentId) === e;
179
- });
180
- }
181
- function R() {
182
- d.clear();
183
- for (const e of t.getSections())
184
- for (const n of e.records)
185
- o.getState().expandedIds.has(n.id) && d.add(n.id);
186
- }
187
- function _(e) {
188
- var h;
189
- const { parentKey: n } = r.getState(), s = z((h = e.loadContext.pagination) == null ? void 0 : h.page);
190
- (e.refresh || s) && t.clearSections(), s && (o.setState({ expandedIds: /* @__PURE__ */ new Set() }), x());
191
- const a = [];
192
- if (n) {
193
- const u = de(e.processResult.results, n);
194
- for (const [v, I] of u) {
195
- const y = t.createSection(
196
- { loadContext: e.loadContext, parentId: v },
197
- I
198
- );
199
- a.push(y);
200
- }
201
- } else {
202
- const u = t.createSection(
203
- { loadContext: e.loadContext, parentId: e.loadContext.tree.parentId },
204
- e.processResult.results
205
- );
206
- a.push(u);
207
- }
208
- if (d.size) {
209
- const { expandedIds: u } = o.getState(), v = a.flatMap((I) => I.records.filter(
210
- (y) => d.has(y.id) && w(y) && u.has(y.id)
211
- ));
212
- if (v.length)
213
- for (const I of v)
214
- d.delete(I.id), i(I.id);
215
- else
216
- d.clear();
217
- }
218
- return T(a), !0;
219
- }
220
- function z(e) {
221
- var s;
222
- const n = t.getSectionsByParentId(null);
223
- return n.length === 0 ? !0 : (e ?? 1) !== (((s = n[0].loadContext.pagination) == null ? void 0 : s.page) ?? 1);
224
- }
225
- function w(e) {
226
- const { expandable: n, parentKey: s } = r.getState();
227
- return n ? n(e.item) : s ? !!t.getSectionsByParentId(e.id).length : !1;
228
- }
229
- }), he = ie;
230
- export {
231
- he as DataGridTableTreePlugin
232
- };
1
+ export { DataGridTableTreePlugin } from "../chunks/components/data-grid/plugins/table-tree/table-tree-plugin.js";
2
+
233
3
  //# sourceMappingURL=table-tree.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-tree.js","sources":["../../src/components/data-grid/plugins/table-tree/components/data-grid-table-tree-expand.tsx","../../src/components/data-grid/plugins/table-tree/components/data-grid-table-tree-body-cell-content.tsx","../../src/components/data-grid/plugins/table-tree/components/data-grid-table-tree-row.tsx","../../src/components/data-grid/plugins/table-tree/table-tree-helpers.ts","../../src/components/data-grid/plugins/table-tree/table-tree-plugin.tsx"],"sourcesContent":["import { ChevronDownIcon } from 'lucide-react';\nimport { Button } from '../../../../button/public.js';\nimport type { DataGridItem } from '../../../data-grid-types';\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 { DataGridTableTreePluginApi } from '../table-tree-types';\nimport styles from './data-grid-table-tree.module.css';\n\nexport function DataGridTableTreeExpand<TItem extends DataGridItem>() {\n const grid = useDataGrid<TItem>();\n const record = useDataGridRecord<TItem>();\n const treePlugin = grid.getPlugin<DataGridTableTreePluginApi<TItem>>('tableTree')!;\n const isExpanded = treePlugin.useIsExpanded(record.id);\n\n const iconClassName = isExpanded\n ? styles.expandIcon\n : `${styles.expandIcon} ${styles.expandIconCollapsed}`;\n\n return (\n <div className={styles.expand} {...{ [IGNORE_CLICK_ATTRIBUTE]: '' }}>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className={styles.toggle}\n icon={<ChevronDownIcon className={iconClassName} />}\n onClick={() => treePlugin.toggle(record.id)}\n />\n </div>\n );\n}\n","import type { DataGridItem } from '../../../data-grid-types';\nimport { useDataGrid } from '../../../services/core/data-grid-context';\nimport { DataGridBodyCellContent } from '../../../services/table/components/data-grid-body-cell-content';\nimport { useDataGridRecord } from '../../../services/table/data-grid-record-context';\nimport { useTableService } from '../../../services/table/table-context';\nimport type { DataGridTableColumn } from '../../../services/table/table-types';\nimport type { DataGridTableTreePluginApi } from '../table-tree-types';\nimport { DataGridTableTreeExpand } from './data-grid-table-tree-expand';\nimport styles from './data-grid-table-tree.module.css';\n\ninterface DataGridTableTreeBodyCellContentProps<TItem extends DataGridItem> {\n column: DataGridTableColumn<TItem>;\n item: TItem;\n}\n\nexport function DataGridTableTreeBodyCellContent<TItem extends DataGridItem>({\n column,\n item,\n}: DataGridTableTreeBodyCellContentProps<TItem>) {\n const grid = useDataGrid<TItem>();\n const record = useDataGridRecord<TItem>();\n const tableService = useTableService<TItem>();\n const treePlugin = grid.getPlugin<DataGridTableTreePluginApi<TItem>>('tableTree')!;\n const visibleColumns = tableService.useVisibleColumns();\n const isFirstColumn = visibleColumns[0]?.id === column.id;\n const isExpandable = treePlugin.useIsExpandable(record);\n const level = treePlugin.useLevel(record.section);\n\n if ((isExpandable || level > 0) && isFirstColumn) {\n return (\n <div className={styles.treeCellContent}>\n {level > 0 && (\n <div\n className={styles.indentSpacer}\n style={{ inlineSize: `calc(var(--_data-grid-table-tree-indent) * ${level})` }}\n />\n )}\n {isExpandable && <DataGridTableTreeExpand />}\n <div className={styles.label}>\n <DataGridBodyCellContent column={column} item={item} />\n </div>\n </div>\n );\n }\n\n return <DataGridBodyCellContent column={column} item={item} />;\n}\n","import type { KeyboardEvent } from 'react';\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 { DataGridTableRecords } from '../../../services/table/components/data-grid-table-records';\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 type { DataGridRowClickPluginApi } from '../../row-click/row-click-plugin';\nimport { getClickListener } from '../../row-click/row-click-utils';\nimport type { DataGridTableTreePluginApi } from '../table-tree-types';\nimport styles from './data-grid-table-tree.module.css';\n\ninterface DataGridTableTreeRowProps<TItem extends DataGridItem> {\n record: DataGridRecord<TItem>;\n}\n\nexport function DataGridTableTreeRow<TItem extends DataGridItem>({\n record,\n}: DataGridTableTreeRowProps<TItem>) {\n const context = useDataGridContext<TItem>();\n const tableService = context.table;\n const columns = tableService.useVisibleColumns();\n const tableLayout = tableService.useTableLayout();\n const treePlugin = context.plugins.getPlugin<DataGridTableTreePluginApi<TItem>>('tableTree')!;\n const rowClickApi = context.plugins.getPlugin<DataGridRowClickPluginApi<TItem>>('rowClick');\n const isExpanded = treePlugin.useIsExpanded(record.id);\n const childRecords = context.storage.getRecordsByParentId(record.id);\n\n const BodyCellContent = tableService.useComponent<{\n column: DataGridTableColumn<TItem>;\n item: TItem;\n }>('body-cell-content');\n\n // This row replaces the row-click plugin's, so it has to do what that row does when the plugin\n // is registered.\n const hasRowClick = !!rowClickApi;\n const onClick = hasRowClick ? getClickListener(record.item, () => rowClickApi?.click) : undefined;\n const onDblClick = hasRowClick\n ? getClickListener(record.item, () => rowClickApi?.dblclick)\n : undefined;\n const onKeyDown = hasRowClick\n ? (event: KeyboardEvent) => {\n if (event.key === 'Enter') {\n onClick?.(event);\n }\n }\n : undefined;\n\n return (\n <DataGridRecordProvider value={record}>\n <TableRow\n className={hasRowClick ? styles.clickableRow : undefined}\n tabIndex={hasRowClick ? 0 : undefined}\n onClick={onClick}\n onDoubleClick={onDblClick}\n onKeyDown={onKeyDown}\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 {isExpanded && childRecords.length > 0 && (\n <DataGridTableRecords<TItem> records={childRecords} />\n )}\n </DataGridRecordProvider>\n );\n}\n","import type { DataGridItem } from '../../data-grid-types';\nimport { getItemKeyValue } from '../../services/storage/storage-helpers';\nimport type { DataGridDataKey, DataGridParentId } from '../../services/storage/storage-types';\n\nexport function createTreeDataFromFlattenedArray<TItem extends DataGridItem = DataGridItem>(\n items: TItem[],\n parentKey: DataGridDataKey<TItem>,\n): Map<DataGridParentId, TItem[]> {\n const results = new Map<DataGridParentId, TItem[]>();\n\n for (const item of items) {\n const parentId = getItemKeyValue(item, parentKey) ?? null;\n const group = results.get(parentId);\n if (group) {\n group.push(item);\n } else {\n results.set(parentId, [item]);\n }\n }\n\n return results;\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 { ReactNode } from 'react';\nimport { create } from 'zustand';\n// `.js` on each relative type import: they land verbatim in the shipped declaration file, where\n// `moduleResolution: \"nodenext\"` rejects an extensionless one and every type from it goes untyped\n// (the `expandable` callback's `item` among them).\nimport type { DataGridItem } from '../../data-grid-types.js';\nimport type { LoadInstance } from '../../services/load/load-types.js';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport type {\n DataGridItemId,\n DataGridRecord,\n DataGridSection,\n} from '../../services/storage/storage-types.js';\nimport { DataGridTableTreeBodyCellContent } from './components/data-grid-table-tree-body-cell-content';\nimport { DataGridTableTreeRow } from './components/data-grid-table-tree-row';\nimport { createTreeDataFromFlattenedArray } from './table-tree-helpers';\nimport type {\n DataGridTableTreePluginApi,\n DataGridTableTreePluginConfig,\n TableTreeConfigStore,\n TableTreePersistentState,\n TableTreeStore,\n} from './table-tree-types.js';\n\n// Ids from every visited page accumulate in the stored list (a row that is not\n// on screen cannot be collapsed), and rows deleted server-side never come back\n// to be collapsed either — so the list is bounded, dropping the oldest first.\nconst maxPersistedExpandedIds = 200;\n\nconst DataGridTableTreePluginRaw = createDataGridPlugin<\n DataGridItem,\n 'tableTree',\n DataGridTableTreePluginConfig,\n DataGridTableTreePluginApi\n>('tableTree', (context) => {\n const useTreeStore = create<TableTreeStore>(() => ({\n expandedIds: new Set(),\n }));\n\n const useConfigStore = create<TableTreeConfigStore>(() => ({\n parentKey: undefined,\n expandable: undefined,\n }));\n\n const resetIds = new Set<DataGridItemId>();\n // One-shot work queue, not observable state: ids restored from storage whose\n // children still need a lazy load. A restored id alone cannot tell whether the\n // row exists or is expandable, so the load waits until its record arrives.\n const restoredIds = new Set<DataGridItemId>();\n // Expand state is stored next to the page, filters and order, under whichever\n // backend the grid was configured with — except the URL: the list grows to the\n // persistence cap and keeps ids of rows deleted server-side, and every copied\n // URL would seed all of that into whichever grid opens the link.\n const persistentState = context.registerPersistentState<TableTreePersistentState>('tree', {\n schema: { expanded: 'object' },\n router: false,\n });\n\n context.hook('load:prepare', onBeforeLoad);\n context.hook('load:context', ({ loadContext }) => ({\n tree: { parentId: loadContext.tree?.parentId ?? null },\n }));\n context.hook('load:store', onLoadStore);\n context.registerComponent('row', DataGridTableTreeRow);\n context.registerComponent('body-cell-content', DataGridTableTreeBodyCellContent);\n\n return {\n useIsExpandable,\n useIsExpanded,\n useLevel: getLevel,\n toggle,\n isExpandable,\n onPropsChange,\n };\n\n function onPropsChange(props: DataGridTableTreePluginConfig) {\n useConfigStore.setState({\n parentKey: props.parentKey,\n expandable: props.expandable,\n });\n }\n\n function useIsExpandable(record: DataGridRecord): boolean {\n const expandable = useConfigStore((s) => s.expandable);\n const parentKey = useConfigStore((s) => s.parentKey);\n\n if (expandable) {\n return expandable(record.item);\n }\n\n if (parentKey) {\n return !!context.getSectionsByParentId(record.id).length;\n }\n\n return false;\n }\n\n function useIsExpanded(itemId: DataGridItemId): boolean {\n return useTreeStore((s) => s.expandedIds.has(itemId));\n }\n\n function getLevel(section: DataGridSection<DataGridItem>): number {\n const { parentId } = section;\n\n if (!parentId) {\n return 0;\n }\n\n const parentRecord = context.getRecord(parentId);\n return 1 + (parentRecord ? getLevel(parentRecord.section) : 0);\n }\n\n function toggle(itemId: DataGridItemId) {\n const state = useTreeStore.getState();\n const isCurrentlyExpanded = state.expandedIds.has(itemId);\n\n const newExpandedIds = new Set(state.expandedIds);\n if (isCurrentlyExpanded) {\n newExpandedIds.delete(itemId);\n } else {\n newExpandedIds.add(itemId);\n }\n useTreeStore.setState({ expandedIds: newExpandedIds });\n syncPersistent();\n\n if (!isCurrentlyExpanded) {\n triggerLoadChildren(itemId);\n }\n }\n\n // --- Private helpers ---\n\n function seedFromPersistent() {\n // Storage is user-editable, so the value is narrowed to the id type\n // instead of being trusted as-is, and capped the same way the write side\n // caps it — the plugin itself never stores more, so an oversized list is\n // external. The slice keeps the tail: storage order is oldest-first.\n const stored = persistentState.value?.expanded;\n const expanded = Array.isArray(stored)\n ? stored\n .filter((id): id is DataGridItemId => typeof id === 'string' || typeof id === 'number')\n .slice(-maxPersistedExpandedIds)\n : [];\n if (!expanded.length) {\n return;\n }\n\n const { parentKey } = useConfigStore.getState();\n const expandedIds = new Set(useTreeStore.getState().expandedIds);\n\n for (const id of expanded) {\n expandedIds.add(id);\n if (!parentKey) {\n restoredIds.add(id);\n }\n }\n\n useTreeStore.setState({ expandedIds });\n }\n\n function syncPersistent() {\n // Writes the whole object rather than a delta, because the accessor stores\n // whatever it is given: a partial write would drop the ids it omits. The\n // empty list is written too, so a fully collapsed hierarchy is stored as\n // such instead of as an absent entry. Set iterates in insertion order —\n // seeded ids first, fresh toggles last — so the slice drops the oldest.\n const expanded = [...useTreeStore.getState().expandedIds].slice(-maxPersistedExpandedIds);\n persistentState.setValue({ expanded });\n }\n\n // Drains the restored ids against sections that have just been stored,\n // starting a children load only for rows that actually arrived.\n function loadRestoredChildren(sections: DataGridSection<DataGridItem>[]) {\n if (!restoredIds.size) {\n return;\n }\n\n const { expandedIds } = useTreeStore.getState();\n\n for (const section of sections) {\n for (const record of section.records) {\n if (!restoredIds.delete(record.id) || !expandedIds.has(record.id)) {\n continue;\n }\n\n if (isExpandable(record)) {\n triggerLoadChildren(record.id);\n } else {\n // The row arrived and cannot be expanded, so the stored id is dropped\n // instead of leaving the row marked expanded with nothing under it.\n toggle(record.id);\n }\n }\n }\n }\n\n function triggerLoadChildren(parentId: DataGridItemId) {\n const loadInstance = findLoadInstance(parentId);\n if (loadInstance) {\n return;\n }\n\n const loadedSections = context.getSectionsByParentId(parentId);\n if (!loadedSections.length) {\n context.triggerLoad({ loadContext: { tree: { parentId } } });\n }\n }\n\n function findLoadInstance(parentId: DataGridItemId) {\n return context\n .getLoadInstances()\n .find((instance) => instance.loadContext.tree?.parentId === parentId);\n }\n\n function onBeforeLoad() {\n resetIds.clear();\n\n for (const section of context.getSections()) {\n for (const record of section.records) {\n if (useTreeStore.getState().expandedIds.has(record.id)) {\n resetIds.add(record.id);\n }\n }\n }\n }\n\n function onLoadStore(instance: LoadInstance<DataGridItem>) {\n const { parentKey } = useConfigStore.getState();\n const pageChanged = isPageChanged(instance.loadContext.pagination?.page);\n\n if (instance.refresh || pageChanged) {\n context.clearSections();\n }\n if (pageChanged) {\n // Two cases reach this branch, and the reseed serves both.\n //\n // A real page change: the in-memory expansion belongs to the page being\n // left, so it is reset, but the stored ids are kept and re-applied. A row\n // expanded on page 1 is expanded again when the user comes back to it, and\n // ids belonging to other pages sit in the set harmlessly, because children\n // load only for records that arrived and pass isExpandable.\n //\n // The very first load, where isPageChanged() is also true because no root\n // section exists yet: here the reset would erase the state just restored\n // from storage, so it has to be seeded again.\n useTreeStore.setState({ expandedIds: new Set() });\n seedFromPersistent();\n }\n\n const newSections: DataGridSection<DataGridItem>[] = [];\n\n if (parentKey) {\n const results = createTreeDataFromFlattenedArray(instance.processResult!.results, parentKey);\n\n for (const [parentId, items] of results) {\n const newSection = context.createSection(\n { loadContext: instance.loadContext, parentId },\n items,\n );\n newSections.push(newSection);\n }\n } else {\n const newSection = context.createSection(\n { loadContext: instance.loadContext, parentId: instance.loadContext.tree!.parentId },\n instance.processResult!.results,\n );\n newSections.push(newSection);\n }\n\n if (resetIds.size) {\n const { expandedIds } = useTreeStore.getState();\n const toLoadRecords = newSections.flatMap((section) => {\n return section.records.filter(\n (record) => resetIds.has(record.id) && isExpandable(record) && expandedIds.has(record.id),\n );\n });\n\n if (toLoadRecords.length) {\n for (const record of toLoadRecords) {\n resetIds.delete(record.id);\n triggerLoadChildren(record.id);\n }\n } else {\n resetIds.clear();\n }\n }\n\n loadRestoredChildren(newSections);\n\n return true;\n }\n\n function isPageChanged(newPage?: number) {\n const sections = context.getSectionsByParentId(null);\n return sections.length === 0\n ? true\n : (newPage ?? 1) !== (sections[0].loadContext.pagination?.page ?? 1);\n }\n\n function isExpandable(record: DataGridRecord): boolean {\n const { expandable, parentKey } = useConfigStore.getState();\n\n if (expandable) {\n return expandable(record.item);\n }\n\n if (parentKey) {\n return !!context.getSectionsByParentId(record.id).length;\n }\n\n return false;\n }\n});\n\n// The plugin is built for the base item type; the cast hands the consumer a generic component, so\n// `<DataGridTableTreePlugin<Category> parentKey=\"parent_id\" />` types `parentKey` and `expandable`\n// against the consumer's item.\nexport const DataGridTableTreePlugin = DataGridTableTreePluginRaw as <\n TItem extends DataGridItem = DataGridItem,\n>(\n props: DataGridTableTreePluginConfig<TItem>,\n) => ReactNode;\n"],"names":["DataGridTableTreeExpand","grid","useDataGrid","record","useDataGridRecord","treePlugin","iconClassName","styles","jsx","IGNORE_CLICK_ATTRIBUTE","Button","ChevronDownIcon","DataGridTableTreeBodyCellContent","column","item","tableService","useTableService","isFirstColumn","_a","isExpandable","level","jsxs","DataGridBodyCellContent","DataGridTableTreeRow","context","useDataGridContext","columns","tableLayout","rowClickApi","isExpanded","childRecords","BodyCellContent","hasRowClick","onClick","getClickListener","onDblClick","onKeyDown","event","DataGridRecordProvider","TableRow","DataGridExtraBodyColumns","col","dynamicClassName","bodyCellProps","resolveBodyCellProps","DataGridCell","DataGridTableRecords","createTreeDataFromFlattenedArray","items","parentKey","results","parentId","getItemKeyValue","group","DataGridTableTreePluginRaw","createDataGridPlugin","useTreeStore","create","useConfigStore","resetIds","restoredIds","persistentState","onBeforeLoad","loadContext","onLoadStore","useIsExpandable","useIsExpanded","getLevel","toggle","onPropsChange","props","expandable","s","itemId","section","parentRecord","state","isCurrentlyExpanded","newExpandedIds","syncPersistent","triggerLoadChildren","seedFromPersistent","stored","expanded","id","expandedIds","loadRestoredChildren","sections","findLoadInstance","instance","pageChanged","isPageChanged","newSections","newSection","toLoadRecords","newPage","DataGridTableTreePlugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASO,SAASA,KAAsD;AACpE,QAAMC,IAAOC,EAAA,GACPC,IAASC,EAAA,GACTC,IAAaJ,EAAK,UAA6C,WAAW,GAG1EK,IAFaD,EAAW,cAAcF,EAAO,EAAE,IAGjDI,EAAO,aACP,GAAGA,EAAO,UAAU,IAAIA,EAAO,mBAAmB;AAEtD,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAWD,EAAO,QAAc,CAACE,CAAsB,GAAG,IAC7D,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,WAAWH,EAAO;AAAA,MAClB,MAAM,gBAAAC,EAACG,GAAA,EAAgB,WAAWL,EAAA,CAAe;AAAA,MACjD,SAAS,MAAMD,EAAW,OAAOF,EAAO,EAAE;AAAA,IAAA;AAAA,EAAA,GAE9C;AAEJ;ACfO,SAASS,GAA6D;AAAA,EAC3E,QAAAC;AAAA,EACA,MAAAC;AACF,GAAiD;;AAC/C,QAAMb,IAAOC,EAAA,GACPC,IAASC,EAAA,GACTW,IAAeC,EAAA,GACfX,IAAaJ,EAAK,UAA6C,WAAW,GAE1EgB,MAAgBC,IADCH,EAAa,kBAAA,EACC,CAAC,MAAhB,gBAAAG,EAAmB,QAAOL,EAAO,IACjDM,IAAed,EAAW,gBAAgBF,CAAM,GAChDiB,IAAQf,EAAW,SA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YAAAoE,GAAY,WAAAtB,MAAcS,EAAe,SAAA;AAEjD,WAAIa,IACKA,EAAWpE,EAAO,IAAI,IAG3B8C,IACK,CAAC,CAACzB,EAAQ,sBAAsBrB,EAAO,EAAE,EAAE,SAG7C;AAAA,EACT;AACF,CAAC,GAKY6F,KAA0B1C;"}
1
+ {"version":3,"file":"table-tree.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,100 +1,3 @@
1
- "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import { d as W } from "../chunks/debounce.js";
4
- import { create as d } from "zustand";
5
- import { u as F, c as q } from "../chunks/plugins-helpers.js";
6
- import { cx as I } from "class-variance-authority";
7
- import { XIcon as v, SearchIcon as P } from "lucide-react";
8
- import { useRef as x } from "react";
9
- import { m as f } from "../chunks/messages.js";
10
- import { Input as k } from "../input.js";
11
- import { Button as K } from "../button.js";
12
- import '../chunks/text-search.BeZYac6V.css';const _ = "_searchInput_1wk82_1", b = "_searchInputFullWidth_1wk82_8", m = {
13
- searchInput: _,
14
- searchInputFullWidth: b
15
- };
16
- function C() {
17
- const r = F(), l = x(null), t = r.getPlugin("textSearch"), s = t.usePlaceholder(), a = t.useQuery(), i = t.useFullWidth(), n = s || f.textSearch.placeholder;
18
- function h() {
19
- var u;
20
- (u = l.current) == null || u.focus(), t.setSearch("");
21
- }
22
- return /* @__PURE__ */ o("div", { className: I(m.searchInput, i && m.searchInputFullWidth), children: /* @__PURE__ */ o(
23
- k,
24
- {
25
- ref: l,
26
- type: "search",
27
- value: a,
28
- placeholder: n,
29
- icon: /* @__PURE__ */ o(P, {}),
30
- end: a ? /* @__PURE__ */ o(
31
- K,
32
- {
33
- variant: "ghost",
34
- size: "sm",
35
- icon: /* @__PURE__ */ o(v, {}),
36
- "aria-label": f.textSearch.clear,
37
- onClick: h
38
- }
39
- ) : void 0,
40
- onValueChange: t.updateSearch
41
- }
42
- ) });
43
- }
44
- const D = 300, V = "textSearch", O = q("textSearch", (r) => {
45
- const l = d(() => ({
46
- placeholder: "",
47
- filterKey: V,
48
- fullWidth: !1
49
- })), t = r.registerPersistentState("textSearch", {
50
- schema: { query: "string" }
51
- }), s = d(() => {
52
- var e;
53
- return {
54
- query: ((e = t.value) == null ? void 0 : e.query) ?? ""
55
- };
56
- });
57
- r.registerSlot("top-start", {
58
- id: "textSearch",
59
- component: () => /* @__PURE__ */ o(C, {})
60
- });
61
- const a = W(
62
- u,
63
- D
64
- );
65
- return r.hook("load:context", () => {
66
- const { query: e } = s.getState();
67
- if (!e) return;
68
- const { filterKey: c } = l.getState(), g = { value: e };
69
- return { filters: { [c]: g } };
70
- }), r.hook("refresh", (e) => {
71
- "resetFilters" in e && e.resetFilters && (a.cancel(), s.setState({ query: "" }), t.setValue(void 0));
72
- }), r.hook("destroy", () => {
73
- a.flush();
74
- }), {
75
- useQuery: () => s((e) => e.query),
76
- usePlaceholder: () => l((e) => e.placeholder),
77
- useFullWidth: () => l((e) => e.fullWidth),
78
- onPropsChange: y,
79
- setSearch: p,
80
- updateSearch: S
81
- };
82
- function u() {
83
- const { query: e } = s.getState();
84
- t.setValue(e ? { query: e } : void 0), r.refresh({ resetFilters: !1 });
85
- }
86
- function S(e) {
87
- s.setState({ query: e }), a();
88
- }
89
- function p(e) {
90
- a.cancel(), s.setState({ query: e }), t.setValue(e ? { query: e } : void 0), r.refresh({ resetFilters: !1 });
91
- }
92
- function y(e) {
93
- const c = {};
94
- e.filterKey !== void 0 && (c.filterKey = e.filterKey), e.placeholder !== void 0 && (c.placeholder = e.placeholder), e.fullWidth !== void 0 && (c.fullWidth = e.fullWidth), Object.keys(c).length > 0 && l.setState(c);
95
- }
96
- });
97
- export {
98
- O as DataGridTextSearchPlugin
99
- };
1
+ export { DataGridTextSearchPlugin } from "../chunks/components/data-grid/plugins/text-search/text-search-plugin.js";
2
+
100
3
  //# sourceMappingURL=text-search.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-search.js","sources":["../../src/components/data-grid/plugins/text-search/components/data-grid-text-search.tsx","../../src/components/data-grid/plugins/text-search/text-search-plugin.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport { SearchIcon, XIcon } from 'lucide-react';\nimport { useRef } from 'react';\n\nimport { Button } from '../../../../button/public.js';\nimport { Input } from '../../../../input/public.js';\nimport { messages } from '../../../messages';\nimport { useDataGrid } from '../../../services/core/data-grid-context';\nimport type { DataGridTextSearchPluginApi } from '../text-search-plugin';\nimport styles from './data-grid-text-search.module.css';\n\nexport function DataGridTextSearch() {\n const grid = useDataGrid();\n const inputRef = useRef<HTMLInputElement>(null);\n const textSearchPlugin = grid.getPlugin<DataGridTextSearchPluginApi>('textSearch')!;\n\n const customPlaceholder = textSearchPlugin.usePlaceholder();\n const query = textSearchPlugin.useQuery();\n const fullWidth = textSearchPlugin.useFullWidth();\n\n const placeholder = customPlaceholder || messages.textSearch.placeholder;\n\n function handleClear() {\n // Focus first: the clear button unmounts once the query is empty, and a focused element that\n // unmounts leaves focus on the page behind.\n inputRef.current?.focus();\n textSearchPlugin.setSearch('');\n }\n\n return (\n <div className={cx(styles.searchInput, fullWidth && styles.searchInputFullWidth)}>\n <Input\n ref={inputRef}\n type=\"search\"\n value={query}\n placeholder={placeholder}\n icon={<SearchIcon />}\n end={\n query ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n icon={<XIcon />}\n aria-label={messages.textSearch.clear}\n onClick={handleClear}\n />\n ) : undefined\n }\n onValueChange={textSearchPlugin.updateSearch}\n />\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 { debounce, type Debounced } from '../../utils/debounce';\nimport { create } from 'zustand';\nimport type { DataGridItem } from '../../data-grid-types';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport { DataGridTextSearch } from './components/data-grid-text-search';\n\ninterface TextSearchStore {\n query: string;\n}\n\ninterface TextSearchConfigStore {\n placeholder: string;\n filterKey: string;\n fullWidth: boolean;\n}\n\n/**\n * The value this plugin contributes to the grid's load context, keyed by `filterKey`\n * (default `\"textSearch\"`). The `load` callback reads it as `filters[filterKey]` and\n * forwards `value` to the request — the plugin renders the search box but does not wire\n * the value to the backend itself.\n */\nexport interface DataGridTextSearchFilterValue {\n value: string;\n}\n\nexport interface DataGridTextSearchPluginProps {\n /**\n * Key this plugin writes its value under in the load context (default `\"textSearch\"`).\n * Read it in `load` as `filters[filterKey]`, typed {@link DataGridTextSearchFilterValue}.\n */\n filterKey?: string;\n placeholder?: string;\n fullWidth?: boolean;\n}\n\nexport interface DataGridTextSearchPluginApi {\n useQuery: () => string;\n usePlaceholder: () => string;\n useFullWidth: () => boolean;\n onPropsChange: (props: DataGridTextSearchPluginProps) => void;\n setSearch: (value: string) => void;\n updateSearch: (value: string) => void;\n}\n\nconst defaultDebounceMs = 300;\nconst defaultFilterKey = 'textSearch';\n\n/**\n * Text-search toolbar plugin for `DataGrid`. Renders a debounced search box and\n * contributes its value to the load context as `filters[filterKey] = { value }`\n * (default key `\"textSearch\"`).\n *\n * Wiring is not automatic: the grid's `load` callback must read the value and pass it to\n * the request — e.g. `const query = filters.textSearch?.value` — otherwise the box renders\n * but search does nothing. See {@link DataGridTextSearchFilterValue}.\n */\nexport const DataGridTextSearchPlugin = createDataGridPlugin<\n DataGridItem,\n 'textSearch',\n DataGridTextSearchPluginProps\n>('textSearch', (context) => {\n const useConfigStore = create<TextSearchConfigStore>(() => ({\n placeholder: '',\n filterKey: defaultFilterKey,\n fullWidth: false,\n }));\n\n const persistent = context.registerPersistentState<{ query?: string }>('textSearch', {\n schema: { query: 'string' },\n });\n\n const useTextSearchStore = create<TextSearchStore>(() => ({\n query: persistent.value?.query ?? '',\n }));\n\n context.registerSlot('top-start', {\n id: 'textSearch',\n component: () => <DataGridTextSearch />,\n });\n\n const debouncedRefresh: Debounced<[], void> = debounce(\n commitSearch,\n defaultDebounceMs,\n );\n\n context.hook('load:context', () => {\n const { query } = useTextSearchStore.getState();\n if (!query) return;\n const { filterKey } = useConfigStore.getState();\n const filterValue: DataGridTextSearchFilterValue = { value: query };\n return { filters: { [filterKey]: filterValue } };\n });\n\n context.hook('refresh', (options: object) => {\n if ('resetFilters' in options && options.resetFilters) {\n debouncedRefresh.cancel();\n useTextSearchStore.setState({ query: '' });\n persistent.setValue(undefined);\n }\n });\n\n context.hook('destroy', () => {\n debouncedRefresh.flush();\n });\n\n const useQuery = () => useTextSearchStore((s) => s.query);\n const usePlaceholder = () => useConfigStore((s) => s.placeholder);\n const useFullWidth = () => useConfigStore((s) => s.fullWidth);\n\n return {\n useQuery,\n usePlaceholder,\n useFullWidth,\n onPropsChange,\n setSearch,\n updateSearch,\n };\n\n function commitSearch() {\n const { query } = useTextSearchStore.getState();\n persistent.setValue(query ? { query } : undefined);\n context.refresh({ resetFilters: false });\n }\n\n function updateSearch(value: string) {\n useTextSearchStore.setState({ query: value });\n debouncedRefresh();\n }\n\n function setSearch(value: string) {\n debouncedRefresh.cancel();\n useTextSearchStore.setState({ query: value });\n persistent.setValue(value ? { query: value } : undefined);\n context.refresh({ resetFilters: false });\n }\n\n function onPropsChange(props: DataGridTextSearchPluginProps) {\n const configUpdates: Partial<TextSearchConfigStore> = {};\n\n if (props.filterKey !== undefined) {\n configUpdates.filterKey = props.filterKey;\n }\n if (props.placeholder !== undefined) {\n configUpdates.placeholder = props.placeholder;\n }\n if (props.fullWidth !== undefined) {\n configUpdates.fullWidth = props.fullWidth;\n }\n\n if (Object.keys(configUpdates).length > 0) {\n useConfigStore.setState(configUpdates);\n }\n }\n});\n"],"names":["DataGridTextSearch","grid","useDataGrid","inputRef","useRef","textSearchPlugin","customPlaceholder","query","fullWidth","placeholder","messages","handleClear","_a","jsx","cx","styles","Input","SearchIcon","Button","XIcon","defaultDebounceMs","defaultFilterKey","DataGridTextSearchPlugin","createDataGridPlugin","context","useConfigStore","create","persistent","useTextSearchStore","debouncedRefresh","debounce","commitSearch","filterKey","filterValue","options","s","onPropsChange","setSearch","updateSearch","value","props","configUpdates"],"mappings":";;;;;;;;;;;;;;;AAWO,SAASA,IAAqB;AACnC,QAAMC,IAAOC,EAAA,GACPC,IAAWC,EAAyB,IAAI,GACxCC,IAAmBJ,EAAK,UAAuC,YAAY,GAE3EK,IAAoBD,EAAiB,eAAA,GACrCE,IAAQF,EAAiB,SAAA,GACzBG,IAAYH,EAAiB,aAAA,GAE7BI,IAAcH,KAAqBI,EAAS,WAAW;AAE7D,WAASC,IAAc;;AAGrB,KAAAC,IAAAT,EAAS,YAAT,QAAAS,EAAkB,SAClBP,EAAiB,UAAU,EAAE;AAAA,EAC/B;AAEA,SACE,gBAAAQ,EAAC,SAAI,WAAWC,EAAGC,EAAO,aAAaP,KAAaO,EAAO,oBAAoB,GAC7E,UAAA,gBAAAF;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,KAAKb;AAAA,MACL,MAAK;AAAA,MACL,OAAOI;AAAA,MACP,aAAAE;AAAA,MACA,wBAAOQ,GAAA,EAAW;AAAA,MAClB,KACEV,IACE,gBAAAM;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,wBAAOC,GAAA,EAAM;AAAA,UACb,cAAYT,EAAS,WAAW;AAAA,UAChC,SAASC;AAAA,QAAA;AAAA,MAAA,IAET;AAAA,MAEN,eAAeN,EAAiB;AAAA,IAAA;AAAA,EAAA,GAEpC;AAEJ;ACAA,MAAMe,IAAoB,KACpBC,IAAmB,cAWZC,IAA2BC,EAItC,cAAc,CAACC,MAAY;AAC3B,QAAMC,IAAiBC,EAA8B,OAAO;AAAA,IAC1D,aAAa;AAAA,IACb,WAAWL;AAAA,IACX,WAAW;AAAA,EAAA,EACX,GAEIM,IAAaH,EAAQ,wBAA4C,cAAc;AAAA,IACnF,QAAQ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