@gears-frontx/ui-kit 0.4.4 → 0.4.6

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 (315) hide show
  1. package/dist/chunks/actions.iasfkjWq.css +1 -0
  2. package/dist/chunks/create-column-auto-size.js +62 -0
  3. package/dist/chunks/create-column-auto-size.js.map +1 -0
  4. package/dist/chunks/data-grid-record-context.js +13 -0
  5. package/dist/chunks/data-grid-record-context.js.map +1 -0
  6. package/dist/chunks/data-grid.-6P4UQGJ.css +1 -0
  7. package/dist/chunks/debounce.js +17 -0
  8. package/dist/chunks/debounce.js.map +1 -0
  9. package/dist/chunks/empty.Cfg5lE0n.css +1 -0
  10. package/dist/chunks/filters.DcFdZpNG.css +1 -0
  11. package/dist/chunks/hooked.js +44 -0
  12. package/dist/chunks/hooked.js.map +1 -0
  13. package/dist/chunks/ignore-row-click.js +5 -0
  14. package/dist/chunks/ignore-row-click.js.map +1 -0
  15. package/dist/chunks/messages.js +34 -3
  16. package/dist/chunks/messages.js.map +1 -1
  17. package/dist/chunks/pagination.DPVITj_D.css +1 -0
  18. package/dist/chunks/resolve-body-cell-props.DGczzk1U.css +1 -0
  19. package/dist/chunks/resolve-body-cell-props.js +140 -0
  20. package/dist/chunks/resolve-body-cell-props.js.map +1 -0
  21. package/dist/chunks/row-actions.BprAXgu2.css +1 -0
  22. package/dist/chunks/row-click.DAYTmSBO.css +1 -0
  23. package/dist/chunks/row-number.C7fNu9Bw.css +1 -0
  24. package/dist/chunks/row-select.BjKdiMf5.css +1 -0
  25. package/dist/chunks/table-configuration.a6C_fp7B.css +1 -0
  26. package/dist/chunks/table-context.js +8 -0
  27. package/dist/chunks/table-context.js.map +1 -0
  28. package/dist/chunks/table-types.js +11 -0
  29. package/dist/chunks/table-types.js.map +1 -0
  30. package/dist/chunks/table.Dmz7LEk7.css +1 -0
  31. package/dist/components/data-grid/components/filter-chip.d.ts +21 -0
  32. package/dist/components/data-grid/components/filter-chip.d.ts.map +1 -0
  33. package/dist/components/data-grid/components/filter-control-area.d.ts +9 -0
  34. package/dist/components/data-grid/components/filter-control-area.d.ts.map +1 -0
  35. package/dist/components/data-grid/components/filter-options-search-input.d.ts +11 -0
  36. package/dist/components/data-grid/components/filter-options-search-input.d.ts.map +1 -0
  37. package/dist/components/data-grid/components/filter-popover-content.d.ts +8 -0
  38. package/dist/components/data-grid/components/filter-popover-content.d.ts.map +1 -0
  39. package/dist/components/data-grid/components/filter-reset-button.d.ts +8 -0
  40. package/dist/components/data-grid/components/filter-reset-button.d.ts.map +1 -0
  41. package/dist/components/data-grid/components/filter-scrollable-wrapper.d.ts +8 -0
  42. package/dist/components/data-grid/components/filter-scrollable-wrapper.d.ts.map +1 -0
  43. package/dist/components/data-grid/messages.d.ts +31 -0
  44. package/dist/components/data-grid/messages.d.ts.map +1 -1
  45. package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts +4 -0
  46. package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts.map +1 -0
  47. package/dist/components/data-grid/plugins/actions/actions-types.d.ts +11 -0
  48. package/dist/components/data-grid/plugins/actions/actions-types.d.ts.map +1 -0
  49. package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts +3 -0
  50. package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts.map +1 -0
  51. package/dist/components/data-grid/plugins/actions/public.d.ts +3 -0
  52. package/dist/components/data-grid/plugins/actions/public.d.ts.map +1 -0
  53. package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts +3 -0
  54. package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts.map +1 -0
  55. package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts +25 -0
  56. package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts.map +1 -0
  57. package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts +3 -0
  58. package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts.map +1 -0
  59. package/dist/components/data-grid/plugins/actions-menu/public.d.ts +3 -0
  60. package/dist/components/data-grid/plugins/actions-menu/public.d.ts.map +1 -0
  61. package/dist/components/data-grid/plugins/filters/components/adaptive-popover.d.ts +20 -0
  62. package/dist/components/data-grid/plugins/filters/components/adaptive-popover.d.ts.map +1 -0
  63. package/dist/components/data-grid/plugins/filters/components/all-filters-button.d.ts +3 -0
  64. package/dist/components/data-grid/plugins/filters/components/all-filters-button.d.ts.map +1 -0
  65. package/dist/components/data-grid/plugins/filters/components/all-filters-dialog.d.ts +7 -0
  66. package/dist/components/data-grid/plugins/filters/components/all-filters-dialog.d.ts.map +1 -0
  67. package/dist/components/data-grid/plugins/filters/components/dialog-filter-item.d.ts +9 -0
  68. package/dist/components/data-grid/plugins/filters/components/dialog-filter-item.d.ts.map +1 -0
  69. package/dist/components/data-grid/plugins/filters/components/filter-label.d.ts +7 -0
  70. package/dist/components/data-grid/plugins/filters/components/filter-label.d.ts.map +1 -0
  71. package/dist/components/data-grid/plugins/filters/components/filter-popover.d.ts +9 -0
  72. package/dist/components/data-grid/plugins/filters/components/filter-popover.d.ts.map +1 -0
  73. package/dist/components/data-grid/plugins/filters/components/filter-single.d.ts +7 -0
  74. package/dist/components/data-grid/plugins/filters/components/filter-single.d.ts.map +1 -0
  75. package/dist/components/data-grid/plugins/filters/components/filters-bar.d.ts +3 -0
  76. package/dist/components/data-grid/plugins/filters/components/filters-bar.d.ts.map +1 -0
  77. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-dialog-filter.d.ts +7 -0
  78. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-dialog-filter.d.ts.map +1 -0
  79. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.d.ts +12 -0
  80. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-list.d.ts.map +1 -0
  81. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-quick-filter.d.ts +7 -0
  82. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/checkbox-group-quick-filter.d.ts.map +1 -0
  83. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/filter-checkbox-group.d.ts +20 -0
  84. package/dist/components/data-grid/plugins/filters/entities/checkbox-group/filter-checkbox-group.d.ts.map +1 -0
  85. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-calendar.d.ts +17 -0
  86. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-calendar.d.ts.map +1 -0
  87. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-dialog-filter.d.ts +7 -0
  88. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-dialog-filter.d.ts.map +1 -0
  89. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-quick-filter.d.ts +7 -0
  90. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-quick-filter.d.ts.map +1 -0
  91. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-selection.d.ts +16 -0
  92. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-selection.d.ts.map +1 -0
  93. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-value.d.ts +19 -0
  94. package/dist/components/data-grid/plugins/filters/entities/date-range/date-range-value.d.ts.map +1 -0
  95. package/dist/components/data-grid/plugins/filters/entities/date-range/filter-date-range.d.ts +16 -0
  96. package/dist/components/data-grid/plugins/filters/entities/date-range/filter-date-range.d.ts.map +1 -0
  97. package/dist/components/data-grid/plugins/filters/entities/entities.d.ts +7 -0
  98. package/dist/components/data-grid/plugins/filters/entities/entities.d.ts.map +1 -0
  99. package/dist/components/data-grid/plugins/filters/entities/search/filter-search.d.ts +10 -0
  100. package/dist/components/data-grid/plugins/filters/entities/search/filter-search.d.ts.map +1 -0
  101. package/dist/components/data-grid/plugins/filters/entities/search/search-quick-filter.d.ts +7 -0
  102. package/dist/components/data-grid/plugins/filters/entities/search/search-quick-filter.d.ts.map +1 -0
  103. package/dist/components/data-grid/plugins/filters/entities/tag-group/filter-tag-group.d.ts +14 -0
  104. package/dist/components/data-grid/plugins/filters/entities/tag-group/filter-tag-group.d.ts.map +1 -0
  105. package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-dialog-filter.d.ts +7 -0
  106. package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-dialog-filter.d.ts.map +1 -0
  107. package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-list.d.ts +11 -0
  108. package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-list.d.ts.map +1 -0
  109. package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-quick-filter.d.ts +7 -0
  110. package/dist/components/data-grid/plugins/filters/entities/tag-group/tag-group-quick-filter.d.ts.map +1 -0
  111. package/dist/components/data-grid/plugins/filters/entities/toggle/filter-toggle.d.ts +10 -0
  112. package/dist/components/data-grid/plugins/filters/entities/toggle/filter-toggle.d.ts.map +1 -0
  113. package/dist/components/data-grid/plugins/filters/entities/toggle/toggle-quick-filter.d.ts +7 -0
  114. package/dist/components/data-grid/plugins/filters/entities/toggle/toggle-quick-filter.d.ts.map +1 -0
  115. package/dist/components/data-grid/plugins/filters/entities/tree/filter-tree.d.ts +20 -0
  116. package/dist/components/data-grid/plugins/filters/entities/tree/filter-tree.d.ts.map +1 -0
  117. package/dist/components/data-grid/plugins/filters/entities/tree/resolve-filter-tree-value.d.ts +8 -0
  118. package/dist/components/data-grid/plugins/filters/entities/tree/resolve-filter-tree-value.d.ts.map +1 -0
  119. package/dist/components/data-grid/plugins/filters/entities/tree/tree-dialog-filter.d.ts +7 -0
  120. package/dist/components/data-grid/plugins/filters/entities/tree/tree-dialog-filter.d.ts.map +1 -0
  121. package/dist/components/data-grid/plugins/filters/entities/tree/tree-list.d.ts +12 -0
  122. package/dist/components/data-grid/plugins/filters/entities/tree/tree-list.d.ts.map +1 -0
  123. package/dist/components/data-grid/plugins/filters/entities/tree/tree-quick-filter.d.ts +7 -0
  124. package/dist/components/data-grid/plugins/filters/entities/tree/tree-quick-filter.d.ts.map +1 -0
  125. package/dist/components/data-grid/plugins/filters/entities/tree/tree-radio-select-plugin.d.ts +13 -0
  126. package/dist/components/data-grid/plugins/filters/entities/tree/tree-radio-select-plugin.d.ts.map +1 -0
  127. package/dist/components/data-grid/plugins/filters/entities/tree/use-tree-search.d.ts +8 -0
  128. package/dist/components/data-grid/plugins/filters/entities/tree/use-tree-search.d.ts.map +1 -0
  129. package/dist/components/data-grid/plugins/filters/filters-plugin.d.ts +3 -0
  130. package/dist/components/data-grid/plugins/filters/filters-plugin.d.ts.map +1 -0
  131. package/dist/components/data-grid/plugins/filters/filters-types.d.ts +141 -0
  132. package/dist/components/data-grid/plugins/filters/filters-types.d.ts.map +1 -0
  133. package/dist/components/data-grid/plugins/filters/public.d.ts +11 -0
  134. package/dist/components/data-grid/plugins/filters/public.d.ts.map +1 -0
  135. package/dist/components/data-grid/plugins/filters/services/read-option-values.d.ts +7 -0
  136. package/dist/components/data-grid/plugins/filters/services/read-option-values.d.ts.map +1 -0
  137. package/dist/components/data-grid/plugins/filters/services/use-async-filter-search.d.ts +20 -0
  138. package/dist/components/data-grid/plugins/filters/services/use-async-filter-search.d.ts.map +1 -0
  139. package/dist/components/data-grid/plugins/filters/services/use-filter-search.d.ts +12 -0
  140. package/dist/components/data-grid/plugins/filters/services/use-filter-search.d.ts.map +1 -0
  141. package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts +3 -0
  142. package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts.map +1 -0
  143. package/dist/components/data-grid/plugins/row-actions/public.d.ts +3 -0
  144. package/dist/components/data-grid/plugins/row-actions/public.d.ts.map +1 -0
  145. package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts +6 -0
  146. package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts.map +1 -0
  147. package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts +24 -0
  148. package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts.map +1 -0
  149. package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts +8 -0
  150. package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts.map +1 -0
  151. package/dist/components/data-grid/plugins/row-click/public.d.ts +3 -0
  152. package/dist/components/data-grid/plugins/row-click/public.d.ts.map +1 -0
  153. package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts +14 -0
  154. package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts.map +1 -0
  155. package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts +9 -0
  156. package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts.map +1 -0
  157. package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts +3 -0
  158. package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts.map +1 -0
  159. package/dist/components/data-grid/plugins/row-number/public.d.ts +3 -0
  160. package/dist/components/data-grid/plugins/row-number/public.d.ts.map +1 -0
  161. package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts +4 -0
  162. package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts.map +1 -0
  163. package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts +6 -0
  164. package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts.map +1 -0
  165. package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts +2 -0
  166. package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts.map +1 -0
  167. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts +3 -0
  168. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts.map +1 -0
  169. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts +3 -0
  170. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts.map +1 -0
  171. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts +3 -0
  172. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts.map +1 -0
  173. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts +3 -0
  174. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts.map +1 -0
  175. package/dist/components/data-grid/plugins/row-select/public.d.ts +3 -0
  176. package/dist/components/data-grid/plugins/row-select/public.d.ts.map +1 -0
  177. package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts +5 -0
  178. package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts.map +1 -0
  179. package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts +113 -0
  180. package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts.map +1 -0
  181. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts +10 -0
  182. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts.map +1 -0
  183. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts +10 -0
  184. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts.map +1 -0
  185. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts +8 -0
  186. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts.map +1 -0
  187. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts +3 -0
  188. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts.map +1 -0
  189. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts +3 -0
  190. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts.map +1 -0
  191. package/dist/components/data-grid/plugins/table-configuration/public.d.ts +3 -0
  192. package/dist/components/data-grid/plugins/table-configuration/public.d.ts.map +1 -0
  193. package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts +5 -0
  194. package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts.map +1 -0
  195. package/dist/components/data-grid/services/layout/components/data-grid-layout-top.d.ts.map +1 -1
  196. package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts +2 -0
  197. package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts.map +1 -0
  198. package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts.map +1 -1
  199. package/dist/components/data-grid/services/table/components/data-grid-extra-header-cell.d.ts.map +1 -1
  200. package/dist/components/data-grid/services/table/components/data-grid-header-cell.d.ts.map +1 -1
  201. package/dist/components/data-grid/services/table/components/data-grid-header-group.d.ts.map +1 -1
  202. package/dist/components/data-grid/services/table/table-service.d.ts.map +1 -1
  203. package/dist/components/data-grid/services/table/table-sticky.d.ts +16 -0
  204. package/dist/components/data-grid/services/table/table-sticky.d.ts.map +1 -1
  205. package/dist/components/data-grid/tree/components/tree-actions.d.ts +7 -0
  206. package/dist/components/data-grid/tree/components/tree-actions.d.ts.map +1 -0
  207. package/dist/components/data-grid/tree/components/tree-content.d.ts +3 -0
  208. package/dist/components/data-grid/tree/components/tree-content.d.ts.map +1 -0
  209. package/dist/components/data-grid/tree/components/tree-layout-slot.d.ts +9 -0
  210. package/dist/components/data-grid/tree/components/tree-layout-slot.d.ts.map +1 -0
  211. package/dist/components/data-grid/tree/components/tree-left-slot.d.ts +7 -0
  212. package/dist/components/data-grid/tree/components/tree-left-slot.d.ts.map +1 -0
  213. package/dist/components/data-grid/tree/components/tree-list-item.d.ts +10 -0
  214. package/dist/components/data-grid/tree/components/tree-list-item.d.ts.map +1 -0
  215. package/dist/components/data-grid/tree/components/tree-main.d.ts +3 -0
  216. package/dist/components/data-grid/tree/components/tree-main.d.ts.map +1 -0
  217. package/dist/components/data-grid/tree/components/tree-node-content.d.ts +7 -0
  218. package/dist/components/data-grid/tree/components/tree-node-content.d.ts.map +1 -0
  219. package/dist/components/data-grid/tree/components/tree-node-directory-item.d.ts +7 -0
  220. package/dist/components/data-grid/tree/components/tree-node-directory-item.d.ts.map +1 -0
  221. package/dist/components/data-grid/tree/components/tree-node-leaf.d.ts +7 -0
  222. package/dist/components/data-grid/tree/components/tree-node-leaf.d.ts.map +1 -0
  223. package/dist/components/data-grid/tree/components/tree-nodes.d.ts +7 -0
  224. package/dist/components/data-grid/tree/components/tree-nodes.d.ts.map +1 -0
  225. package/dist/components/data-grid/tree/components/tree-placeholder.d.ts +6 -0
  226. package/dist/components/data-grid/tree/components/tree-placeholder.d.ts.map +1 -0
  227. package/dist/components/data-grid/tree/create-tree.d.ts +5 -0
  228. package/dist/components/data-grid/tree/create-tree.d.ts.map +1 -0
  229. package/dist/components/data-grid/tree/services/core/tree-context.d.ts +21 -0
  230. package/dist/components/data-grid/tree/services/core/tree-context.d.ts.map +1 -0
  231. package/dist/components/data-grid/tree/services/focus/focus-service.d.ts +5 -0
  232. package/dist/components/data-grid/tree/services/focus/focus-service.d.ts.map +1 -0
  233. package/dist/components/data-grid/tree/services/focus/focus-types.d.ts +25 -0
  234. package/dist/components/data-grid/tree/services/focus/focus-types.d.ts.map +1 -0
  235. package/dist/components/data-grid/tree/services/focus/navigation-helpers.d.ts +27 -0
  236. package/dist/components/data-grid/tree/services/focus/navigation-helpers.d.ts.map +1 -0
  237. package/dist/components/data-grid/tree/services/hooked/hooked-types.d.ts +8 -0
  238. package/dist/components/data-grid/tree/services/hooked/hooked-types.d.ts.map +1 -0
  239. package/dist/components/data-grid/tree/services/hooked/hooked.d.ts +3 -0
  240. package/dist/components/data-grid/tree/services/hooked/hooked.d.ts.map +1 -0
  241. package/dist/components/data-grid/tree/services/internal/internal-helpers.d.ts +2 -0
  242. package/dist/components/data-grid/tree/services/internal/internal-helpers.d.ts.map +1 -0
  243. package/dist/components/data-grid/tree/services/layout/layout-service.d.ts +5 -0
  244. package/dist/components/data-grid/tree/services/layout/layout-service.d.ts.map +1 -0
  245. package/dist/components/data-grid/tree/services/layout/layout-types.d.ts +124 -0
  246. package/dist/components/data-grid/tree/services/layout/layout-types.d.ts.map +1 -0
  247. package/dist/components/data-grid/tree/services/plugins/plugins-helpers.d.ts +50 -0
  248. package/dist/components/data-grid/tree/services/plugins/plugins-helpers.d.ts.map +1 -0
  249. package/dist/components/data-grid/tree/services/plugins/plugins-service.d.ts +5 -0
  250. package/dist/components/data-grid/tree/services/plugins/plugins-service.d.ts.map +1 -0
  251. package/dist/components/data-grid/tree/services/plugins/plugins-types.d.ts +43 -0
  252. package/dist/components/data-grid/tree/services/plugins/plugins-types.d.ts.map +1 -0
  253. package/dist/components/data-grid/tree/services/settings/settings-service.d.ts +5 -0
  254. package/dist/components/data-grid/tree/services/settings/settings-service.d.ts.map +1 -0
  255. package/dist/components/data-grid/tree/services/settings/settings-types.d.ts +73 -0
  256. package/dist/components/data-grid/tree/services/settings/settings-types.d.ts.map +1 -0
  257. package/dist/components/data-grid/tree/tree-types.d.ts +44 -0
  258. package/dist/components/data-grid/tree/tree-types.d.ts.map +1 -0
  259. package/dist/components/data-grid/tree/tree.d.ts +4 -0
  260. package/dist/components/data-grid/tree/tree.d.ts.map +1 -0
  261. package/dist/components/data-grid/tree-structure/tree-structure-types.d.ts +89 -0
  262. package/dist/components/data-grid/tree-structure/tree-structure-types.d.ts.map +1 -0
  263. package/dist/components/data-grid/tree-structure/tree-structure.d.ts +19 -0
  264. package/dist/components/data-grid/tree-structure/tree-structure.d.ts.map +1 -0
  265. package/dist/components/data-grid/utils/components-stack.d.ts +12 -0
  266. package/dist/components/data-grid/utils/components-stack.d.ts.map +1 -0
  267. package/dist/components/data-grid/utils/use-is-tablet-up.d.ts +3 -0
  268. package/dist/components/data-grid/utils/use-is-tablet-up.d.ts.map +1 -0
  269. package/dist/components/table/table.d.ts +20 -3
  270. package/dist/components/table/table.d.ts.map +1 -1
  271. package/dist/data-grid/actions-menu.d.ts +1 -0
  272. package/dist/data-grid/actions-menu.js +57 -0
  273. package/dist/data-grid/actions-menu.js.map +1 -0
  274. package/dist/data-grid/actions.d.ts +1 -0
  275. package/dist/data-grid/actions.js +36 -0
  276. package/dist/data-grid/actions.js.map +1 -0
  277. package/dist/data-grid/filters.d.ts +1 -0
  278. package/dist/data-grid/filters.js +1634 -0
  279. package/dist/data-grid/filters.js.map +1 -0
  280. package/dist/data-grid/pagination.js +41 -40
  281. package/dist/data-grid/pagination.js.map +1 -1
  282. package/dist/data-grid/row-actions.d.ts +1 -0
  283. package/dist/data-grid/row-actions.js +52 -0
  284. package/dist/data-grid/row-actions.js.map +1 -0
  285. package/dist/data-grid/row-click.d.ts +1 -0
  286. package/dist/data-grid/row-click.js +69 -0
  287. package/dist/data-grid/row-click.js.map +1 -0
  288. package/dist/data-grid/row-number.d.ts +1 -0
  289. package/dist/data-grid/row-number.js +38 -0
  290. package/dist/data-grid/row-number.js.map +1 -0
  291. package/dist/data-grid/row-select.d.ts +1 -0
  292. package/dist/data-grid/row-select.js +293 -0
  293. package/dist/data-grid/row-select.js.map +1 -0
  294. package/dist/data-grid/table-configuration.d.ts +1 -0
  295. package/dist/data-grid/table-configuration.js +165 -0
  296. package/dist/data-grid/table-configuration.js.map +1 -0
  297. package/dist/data-grid/text-search.js +55 -67
  298. package/dist/data-grid/text-search.js.map +1 -1
  299. package/dist/data-grid.js +901 -1009
  300. package/dist/data-grid.js.map +1 -1
  301. package/dist/docs/data-grid.md +504 -11
  302. package/dist/docs/table.md +57 -2
  303. package/dist/empty.js +34 -34
  304. package/dist/index.d.ts +8 -0
  305. package/dist/index.d.ts.map +1 -1
  306. package/dist/index.js +418 -393
  307. package/dist/index.js.map +1 -1
  308. package/dist/table.js +114 -112
  309. package/dist/table.js.map +1 -1
  310. package/llms.txt +9 -7
  311. package/package.json +1 -1
  312. package/dist/chunks/data-grid.DIkpRRaf.css +0 -1
  313. package/dist/chunks/empty.DWqLrSfF.css +0 -1
  314. package/dist/chunks/pagination.BAAl9D_S.css +0 -1
  315. package/dist/chunks/table.CMm41tvy.css +0 -1
package/dist/data-grid.js CHANGED
@@ -1,110 +1,162 @@
1
1
  "use client";
2
- import { jsx as p, jsxs as D, Fragment as G } from "react/jsx-runtime";
3
- import { useEffect as A, useContext as Et, createContext as Lt, useRef as F, useMemo as It, useState as Dt, Suspense as Gt } from "react";
4
- import { b as H, u as B, i as U, D as Rt } from "./chunks/plugins-helpers.js";
5
- import { c as Bn, a as jn } from "./chunks/plugins-helpers.js";
6
- import { cx as N } from "class-variance-authority";
7
- import { Spinner as Mt } from "./spinner.js";
8
- import { SearchXIcon as Ht, OctagonAlertIcon as Ot, TablePropertiesIcon as At } from "lucide-react";
2
+ import { jsx as f, jsxs as G, Fragment as M } from "react/jsx-runtime";
3
+ import { useRef as z, useState as ut, useEffect as R, useMemo as vt, Suspense as kt } from "react";
4
+ import { b as O, u as j, i as U, D as xt } from "./chunks/plugins-helpers.js";
5
+ import { c as Fn, a as Bn } from "./chunks/plugins-helpers.js";
6
+ import { cx as H } from "class-variance-authority";
7
+ import { Spinner as Et } from "./spinner.js";
8
+ import { SearchXIcon as _t, OctagonAlertIcon as Lt, TablePropertiesIcon as It } from "lucide-react";
9
9
  import { m as V } from "./chunks/messages.js";
10
- import { Empty as dt, EmptyHeader as ut, EmptyMedia as ft, EmptyTitle as pt, EmptyDescription as St } from "./empty.js";
11
- import { create as z } from "zustand";
12
- import { S as Wt } from "./chunks/segment.js";
13
- import { ToggleGroupItem as Nt } from "./toggle-group.js";
14
- import { useShallow as Y } from "zustand/react/shallow";
15
- import { TableHead as mt, TableCell as Vt, TableRow as J, TableBody as zt, TableHeader as Pt, Table as Tt } from "./table.js";
16
- import './chunks/data-grid.DIkpRRaf.css';const $t = "_delayed_1ys81_5", Ft = {
10
+ import { Empty as dt, EmptyHeader as ft, EmptyMedia as pt, EmptyTitle as mt, EmptyDescription as St } from "./empty.js";
11
+ import { create as P } from "zustand";
12
+ import { c as Dt, u as Gt } from "./chunks/hooked.js";
13
+ import { S as Mt } from "./chunks/segment.js";
14
+ import { ToggleGroupItem as Rt } from "./toggle-group.js";
15
+ import { useShallow as J } from "zustand/react/shallow";
16
+ import { g as Ot, r as At, a as q, s as Wt, D as tt, b as Ht, c as X, d as Nt } from "./chunks/resolve-body-cell-props.js";
17
+ import { u as N } from "./chunks/table-context.js";
18
+ import { TableHead as Vt, TableRow as Y, TableBody as Pt, TableHeader as Tt, Table as Ft } from "./table.js";
19
+ import { D as Bt } from "./chunks/data-grid-record-context.js";
20
+ import { u as zn } from "./chunks/data-grid-record-context.js";
21
+ import { i as D } from "./chunks/table-types.js";
22
+ import './chunks/data-grid.-6P4UQGJ.css';const $t = "_delayed_1ys81_5", zt = {
17
23
  delayed: $t
18
24
  };
19
- function X({ className: t }) {
20
- return /* @__PURE__ */ p("span", { className: N(Ft.delayed, t), children: /* @__PURE__ */ p(Mt, { size: "lg" }) });
25
+ function Q({ className: t }) {
26
+ return /* @__PURE__ */ f("span", { className: H(zt.delayed, t), children: /* @__PURE__ */ f(Et, { size: "lg" }) });
21
27
  }
22
- const Bt = "_root_9f4nk_13", jt = {
23
- root: Bt
28
+ const jt = "_root_9f4nk_13", Kt = {
29
+ root: jt
24
30
  };
25
- function Kt() {
26
- const t = H(), e = t.load.useLoadStateStore((o) => o.recordsLoadState), n = t.core.useExternalLoadingStore((o) => o.loading);
31
+ function Ut() {
32
+ const t = O(), e = t.load.useLoadStateStore((o) => o.recordsLoadState), n = t.core.useExternalLoadingStore((o) => o.loading);
27
33
  return e === "loading" || n;
28
34
  }
29
- const Ut = "_loaderOverlay_3znr7_29", Jt = {
30
- loaderOverlay: Ut
35
+ const Yt = "_loaderOverlay_15xmu_29", Jt = {
36
+ loaderOverlay: Yt
31
37
  };
32
- function Yt({ children: t }) {
33
- const n = H().core.useLoadStateStore((l) => l.loadState), r = Kt() && n === "loaded", s = r || n === "loading";
34
- return /* @__PURE__ */ D("div", { className: jt.root, "aria-busy": s ? "true" : void 0, children: [
38
+ function qt({ children: t }) {
39
+ const n = O().core.useLoadStateStore((m) => m.loadState), s = Ut() && n === "loaded", a = s || n === "loading";
40
+ return /* @__PURE__ */ G("div", { className: Kt.root, "aria-busy": a ? "true" : void 0, children: [
35
41
  t,
36
- r && /* @__PURE__ */ p("div", { className: Jt.loaderOverlay, children: /* @__PURE__ */ p(X, {}) })
42
+ s && /* @__PURE__ */ f("div", { className: Jt.loaderOverlay, children: /* @__PURE__ */ f(Q, {}) })
37
43
  ] });
38
44
  }
39
- const Xt = "_emptyState_1tt1k_3", qt = {
45
+ const Xt = "_emptyState_1tt1k_3", Qt = {
40
46
  emptyState: Xt
41
47
  };
42
- function Qt() {
43
- const { useStore: t } = B(), e = t((n) => n.hasActiveFilters);
44
- return /* @__PURE__ */ p(dt, { className: qt.emptyState, children: /* @__PURE__ */ D(ut, { children: [
45
- /* @__PURE__ */ p(ft, { variant: "icon", children: /* @__PURE__ */ p(Ht, {}) }),
46
- /* @__PURE__ */ p(pt, { children: V.emptyState.noResultsFound }),
47
- e && /* @__PURE__ */ p(St, { children: V.emptyState.noResultsFoundDescription })
48
+ function Zt() {
49
+ const { useStore: t } = j(), e = t((n) => n.hasActiveFilters);
50
+ return /* @__PURE__ */ f(dt, { className: Qt.emptyState, children: /* @__PURE__ */ G(ft, { children: [
51
+ /* @__PURE__ */ f(pt, { variant: "icon", children: /* @__PURE__ */ f(_t, {}) }),
52
+ /* @__PURE__ */ f(mt, { children: V.emptyState.noResultsFound }),
53
+ e && /* @__PURE__ */ f(St, { children: V.emptyState.noResultsFoundDescription })
48
54
  ] }) });
49
55
  }
50
- const Zt = "_dataGridLayoutMain_ta8be_5", te = {
51
- dataGridLayoutMain: Zt
56
+ const te = "_dataGridLayoutMain_ta8be_5", ee = {
57
+ dataGridLayoutMain: te
52
58
  };
53
- function ee() {
54
- const { useStore: t } = B(), e = H(), n = t((m) => m.visibleRecords), o = t((m) => m.hasActiveFilters), r = e.layout.useLayoutStore((m) => m.activeSlotIds.get("main")), s = e.layout.useLayoutStore((m) => m.slots.get("main")), l = s == null ? void 0 : s.find((m) => m.id === r), g = e.layout.useLayoutStore((m) => m.slots.get("empty")), a = g == null ? void 0 : g[0], f = n.length === 0, d = l && (!f || o), u = f;
55
- return /* @__PURE__ */ D("div", { className: te.dataGridLayoutMain, children: [
56
- d && /* @__PURE__ */ p(l.component, {}),
57
- u && (a ? /* @__PURE__ */ p(a.component, {}) : /* @__PURE__ */ p(Qt, {}))
59
+ function ne() {
60
+ const { useStore: t } = j(), e = O(), n = t((y) => y.visibleRecords), o = t((y) => y.hasActiveFilters), s = e.layout.useLayoutStore((y) => y.activeSlotIds.get("main")), a = e.layout.useLayoutStore((y) => y.slots.get("main")), m = a == null ? void 0 : a.find((y) => y.id === s), g = e.layout.useLayoutStore((y) => y.slots.get("empty")), c = g == null ? void 0 : g[0], d = n.length === 0, l = m && (!d || o), u = d;
61
+ return /* @__PURE__ */ G("div", { className: ee.dataGridLayoutMain, children: [
62
+ l && /* @__PURE__ */ f(m.component, {}),
63
+ u && (c ? /* @__PURE__ */ f(c.component, {}) : /* @__PURE__ */ f(Zt, {}))
58
64
  ] });
59
65
  }
60
- function ne({ name: t }) {
61
- const n = H().layout.useLayoutStore((o) => o.slots.get(t));
62
- return !n || n.length === 0 ? null : /* @__PURE__ */ p(G, { children: n.map((o) => /* @__PURE__ */ p(o.component, {}, o.id)) });
66
+ function oe({ name: t }) {
67
+ const n = O().layout.useLayoutStore((o) => o.slots.get(t));
68
+ return !n || n.length === 0 ? null : /* @__PURE__ */ f(M, { children: n.map((o) => /* @__PURE__ */ f(o.component, {}, o.id)) });
63
69
  }
64
- const oe = "_dataGridTopDefault_ux66z_1", re = "_topStartSlots_ux66z_8", ie = "_topStartSlot_ux66z_8", se = "_topEndSlot_ux66z_17", ae = "_topEndSlots_ux66z_21", P = {
65
- dataGridTopDefault: oe,
66
- topStartSlots: re,
70
+ const re = "_dataGridTopDefault_5t4tt_1", se = "_topStartSlots_5t4tt_16", ie = "_topStartSlot_5t4tt_16", ae = "_topEndSlot_5t4tt_32", ce = "_topEndSlots_5t4tt_36", F = {
71
+ dataGridTopDefault: re,
72
+ topStartSlots: se,
67
73
  topStartSlot: ie,
68
- topEndSlot: se,
69
- topEndSlots: ae
74
+ topEndSlot: ae,
75
+ topEndSlots: ce
70
76
  };
71
- function ce() {
72
- const t = H(), e = t.layout.useLayoutStore(
73
- (s) => s.slots.get("top-start")
74
- ), n = t.layout.useLayoutStore((s) => s.slots.get("top-end")), o = ((e == null ? void 0 : e.length) ?? 0) > 0, r = ((n == null ? void 0 : n.length) ?? 0) > 0;
75
- return !o && !r ? null : /* @__PURE__ */ D("div", { className: P.dataGridTopDefault, children: [
76
- o && /* @__PURE__ */ p("div", { className: P.topStartSlots, children: e == null ? void 0 : e.map((s) => /* @__PURE__ */ p("div", { className: P.topStartSlot, children: /* @__PURE__ */ p(s.component, {}) }, s.id)) }),
77
- r && /* @__PURE__ */ p("div", { className: P.topEndSlots, children: n == null ? void 0 : n.map((s) => /* @__PURE__ */ p("div", { className: P.topEndSlot, children: /* @__PURE__ */ p(s.component, {}) }, s.id)) })
78
- ] });
79
- }
80
77
  function le() {
81
- const t = H(), e = t.layout.useLayoutStore((s) => s.activeSlotIds.get("top")), n = t.layout.useLayoutStore((s) => s.slots.get("top")), o = n == null ? void 0 : n.find((s) => s.id === e);
82
- if (!o) return null;
83
- const r = o.id === "default" ? ce : o.component;
84
- return /* @__PURE__ */ p(r, {});
78
+ const t = O(), e = t.layout.useLayoutStore(
79
+ (a) => a.slots.get("top-start")
80
+ ), n = t.layout.useLayoutStore((a) => a.slots.get("top-end")), o = ((e == null ? void 0 : e.length) ?? 0) > 0, s = ((n == null ? void 0 : n.length) ?? 0) > 0;
81
+ return !o && !s ? null : /* @__PURE__ */ G("div", { className: F.dataGridTopDefault, children: [
82
+ o && /* @__PURE__ */ f("div", { className: F.topStartSlots, children: e == null ? void 0 : e.map((a) => /* @__PURE__ */ f("div", { className: F.topStartSlot, children: /* @__PURE__ */ f(a.component, {}) }, a.id)) }),
83
+ s && /* @__PURE__ */ f("div", { className: F.topEndSlots, children: n == null ? void 0 : n.map((a) => /* @__PURE__ */ f("div", { className: F.topEndSlot, children: /* @__PURE__ */ f(a.component, {}) }, a.id)) })
84
+ ] });
85
85
  }
86
- const de = "_center_s4klt_3", et = {
87
- center: de
86
+ const ue = "_wrapper_1h8lw_7", de = "_replacement_1h8lw_18", et = {
87
+ wrapper: ue,
88
+ replacement: de
88
89
  };
89
- function ue({ loadState: t, children: e }) {
90
- return t === "loaded" ? /* @__PURE__ */ p(G, { children: e }) : t === "error" ? /* @__PURE__ */ p(dt, { className: et.center, children: /* @__PURE__ */ D(ut, { children: [
91
- /* @__PURE__ */ p(ft, { variant: "icon", children: /* @__PURE__ */ p(Ot, {}) }),
92
- /* @__PURE__ */ p(pt, { children: V.loadError.headerDefault }),
93
- /* @__PURE__ */ p(St, { children: V.loadError.bodyDefault })
94
- ] }) }) : /* @__PURE__ */ p(X, { className: et.center });
90
+ function ht(t) {
91
+ const e = [];
92
+ for (const n of Array.from(t.children)) {
93
+ const { display: o, position: s } = getComputedStyle(n);
94
+ o === "none" || s === "absolute" || s === "fixed" || (o === "contents" ? e.push(...ht(n)) : e.push(n));
95
+ }
96
+ return e;
97
+ }
98
+ function fe(t) {
99
+ const { display: e, flexWrap: n } = getComputedStyle(t);
100
+ return e.includes("flex") && n !== "" && n !== "nowrap";
101
+ }
102
+ function pe(t) {
103
+ let e = Number.NEGATIVE_INFINITY, n = Number.POSITIVE_INFINITY;
104
+ for (const o of ht(t)) {
105
+ const { top: s, bottom: a, width: m, height: g } = o.getBoundingClientRect();
106
+ m === 0 && g === 0 || (e = Math.max(e, s), n = Math.min(n, a));
107
+ }
108
+ return e <= n + 0.5;
109
+ }
110
+ function me(t) {
111
+ return [t, ...Array.from(t.querySelectorAll("*"))].every(
112
+ (e) => !fe(e) || pe(e)
113
+ );
95
114
  }
96
- function fe() {
97
- const t = B(), { useStore: e } = t, { core: n } = H(), o = e((l) => l.visibleRecords), r = n.useLoadStateStore((l) => l.loadState), s = o.length === 0;
98
- return A(() => (t.init().catch((l) => {
99
- process.env.NODE_ENV !== "production" && console.error("[DataGrid] Initial load failed:", l);
100
- }), () => t.destroy()), [t]), /* @__PURE__ */ p(Yt, { children: /* @__PURE__ */ D(ue, { loadState: r, children: [
101
- /* @__PURE__ */ p(le, {}),
102
- /* @__PURE__ */ p(ee, {}),
103
- !s && /* @__PURE__ */ p(ne, { name: "bottom" })
115
+ function Se() {
116
+ const t = O(), e = t.layout.useLayoutStore((d) => d.activeSlotIds.get("top")), n = t.layout.useLayoutStore((d) => d.slots.get("top")), o = n == null ? void 0 : n.find((d) => d.id === e), s = (o == null ? void 0 : o.id) === "default", a = z(null), [m, g] = ut();
117
+ if (R(() => {
118
+ const d = a.current;
119
+ if (!s || !d) return;
120
+ const l = new ResizeObserver((u) => {
121
+ var r, i;
122
+ const y = u[u.length - 1], p = ((i = (r = y.borderBoxSize) == null ? void 0 : r[0]) == null ? void 0 : i.blockSize) ?? y.contentRect.height;
123
+ g(me(d) ? p : void 0);
124
+ });
125
+ return l.observe(d), () => l.disconnect();
126
+ }, [s]), !o) return null;
127
+ const c = s ? le : o.component;
128
+ return /* @__PURE__ */ f(
129
+ "div",
130
+ {
131
+ ref: a,
132
+ className: H(et.wrapper, !s && et.replacement),
133
+ style: !s && m ? { minBlockSize: m } : void 0,
134
+ children: /* @__PURE__ */ f(c, {})
135
+ }
136
+ );
137
+ }
138
+ const he = "_center_s4klt_3", nt = {
139
+ center: he
140
+ };
141
+ function ye({ loadState: t, children: e }) {
142
+ return t === "loaded" ? /* @__PURE__ */ f(M, { children: e }) : t === "error" ? /* @__PURE__ */ f(dt, { className: nt.center, children: /* @__PURE__ */ G(ft, { children: [
143
+ /* @__PURE__ */ f(pt, { variant: "icon", children: /* @__PURE__ */ f(Lt, {}) }),
144
+ /* @__PURE__ */ f(mt, { children: V.loadError.headerDefault }),
145
+ /* @__PURE__ */ f(St, { children: V.loadError.bodyDefault })
146
+ ] }) }) : /* @__PURE__ */ f(Q, { className: nt.center });
147
+ }
148
+ function ge() {
149
+ const t = j(), { useStore: e } = t, { core: n } = O(), o = e((m) => m.visibleRecords), s = n.useLoadStateStore((m) => m.loadState), a = o.length === 0;
150
+ return R(() => (t.init().catch((m) => {
151
+ process.env.NODE_ENV !== "production" && console.error("[DataGrid] Initial load failed:", m);
152
+ }), () => t.destroy()), [t]), /* @__PURE__ */ f(qt, { children: /* @__PURE__ */ G(ye, { loadState: s, children: [
153
+ /* @__PURE__ */ f(Se, {}),
154
+ /* @__PURE__ */ f(ne, {}),
155
+ !a && /* @__PURE__ */ f(oe, { name: "bottom" })
104
156
  ] }) });
105
157
  }
106
- function ht() {
107
- const t = z()(() => ({
158
+ function yt() {
159
+ const t = P()(() => ({
108
160
  loadState: "blank"
109
161
  }));
110
162
  let e = 0;
@@ -112,9 +164,9 @@ function ht() {
112
164
  useLoadState: t,
113
165
  setLoading: n,
114
166
  setLoaded: o,
115
- setError: r,
116
- setBlank: s,
117
- reset: l,
167
+ setError: s,
168
+ setBlank: a,
169
+ reset: m,
118
170
  loadPromise: g
119
171
  };
120
172
  function n() {
@@ -123,28 +175,28 @@ function ht() {
123
175
  function o() {
124
176
  t.setState({ loadState: "loaded" });
125
177
  }
126
- function r() {
178
+ function s() {
127
179
  t.setState({ loadState: "error" });
128
180
  }
129
- function s() {
181
+ function a() {
130
182
  t.setState({ loadState: "blank" });
131
183
  }
132
- function l() {
133
- e += 1, s();
184
+ function m() {
185
+ e += 1, a();
134
186
  }
135
- async function g(a) {
136
- const f = ++e;
187
+ async function g(c) {
188
+ const d = ++e;
137
189
  n();
138
190
  try {
139
- const d = await a;
140
- return f === e && o(), d;
141
- } catch (d) {
142
- throw f === e && r(), d;
191
+ const l = await c;
192
+ return d === e && o(), l;
193
+ } catch (l) {
194
+ throw d === e && s(), l;
143
195
  }
144
196
  }
145
197
  }
146
- function pe() {
147
- const { useLoadState: t, loadPromise: e, reset: n } = ht(), o = z()(() => ({
198
+ function Ce() {
199
+ const { useLoadState: t, loadPromise: e, reset: n } = yt(), o = P()(() => ({
148
200
  loading: !1
149
201
  }));
150
202
  return {
@@ -152,46 +204,14 @@ function pe() {
152
204
  loadPromise: e,
153
205
  resetLoadState: n,
154
206
  useExternalLoadingStore: o,
155
- updateLoading: r
207
+ updateLoading: s
156
208
  };
157
- function r(s) {
158
- o.setState({ loading: s });
159
- }
160
- }
161
- function Se() {
162
- const t = /* @__PURE__ */ new Map();
163
- return { hook: e, callHook: o, callHookParallel: r, callHookSync: s };
164
- function e(l, g) {
165
- if (!l || typeof g != "function")
166
- return () => {
167
- };
168
- const a = g, f = t.get(l) ?? [];
169
- return f.push(a), t.set(l, f), () => {
170
- const d = t.get(l);
171
- if (!d) return;
172
- const u = d.indexOf(a);
173
- u !== -1 && d.splice(u, 1), d.length === 0 && t.delete(l);
174
- };
175
- }
176
- function n(l) {
177
- return [...t.get(l) ?? []];
178
- }
179
- function o(l, ...g) {
180
- const a = n(l).reduce((f, d) => {
181
- const u = f[f.length - 1] ?? Promise.resolve();
182
- return [...f, u.then(() => d(...g))];
183
- }, []);
184
- return Promise.all(a);
185
- }
186
- function r(l, ...g) {
187
- return Promise.all(n(l).map((a) => a(...g)));
188
- }
189
- function s(l, ...g) {
190
- return n(l).map((a) => a(...g));
209
+ function s(a) {
210
+ o.setState({ loading: a });
191
211
  }
192
212
  }
193
- function me() {
194
- const t = Se();
213
+ function be() {
214
+ const t = Dt();
195
215
  return {
196
216
  hook: t.hook,
197
217
  callHook: t.callHook,
@@ -199,288 +219,288 @@ function me() {
199
219
  callHookSync: t.callHookSync
200
220
  };
201
221
  }
202
- const q = "table_layout", yt = "cards_layout", nt = "view_selector", he = /* @__PURE__ */ new Map([
203
- [q, V.layoutMainSlotSelector.table],
204
- [yt, V.layoutMainSlotSelector.cards]
222
+ const Z = "table_layout", gt = "cards_layout", ot = "view_selector", we = /* @__PURE__ */ new Map([
223
+ [Z, V.layoutMainSlotSelector.table],
224
+ [gt, V.layoutMainSlotSelector.cards]
205
225
  ]);
206
- function ye() {
207
- const t = H(), e = t.layout.useLayoutStore((r) => r.slots.get("main")), n = t.layout.useLayoutStore((r) => r.activeSlotIds.get("main"));
226
+ function ve() {
227
+ const t = O(), e = t.layout.useLayoutStore((s) => s.slots.get("main")), n = t.layout.useLayoutStore((s) => s.activeSlotIds.get("main"));
208
228
  if (!e || e.length < 2) return null;
209
- return /* @__PURE__ */ p(Wt, { size: "sm", iconOnly: !0, value: n, onValueChange: o, children: e.map((r) => {
210
- const s = "icon" in r ? r.icon : void 0;
211
- return /* @__PURE__ */ p(
212
- Nt,
229
+ return /* @__PURE__ */ f(Mt, { size: "sm", iconOnly: !0, value: n, onValueChange: o, children: e.map((s) => {
230
+ const a = "icon" in s ? s.icon : void 0;
231
+ return /* @__PURE__ */ f(
232
+ Rt,
213
233
  {
214
- value: r.id,
215
- "aria-label": he.get(r.id) ?? r.id,
216
- children: s ? /* @__PURE__ */ p(s, {}) : null
234
+ value: s.id,
235
+ "aria-label": we.get(s.id) ?? s.id,
236
+ children: a ? /* @__PURE__ */ f(a, {}) : null
217
237
  },
218
- r.id
238
+ s.id
219
239
  );
220
240
  }) });
221
- function o(r) {
222
- r && t.layout.setActiveSlotId("main", r);
241
+ function o(s) {
242
+ s && t.layout.setActiveSlotId("main", s);
223
243
  }
224
244
  }
225
- function ge(t) {
226
- const e = z()(() => ({
245
+ function ke(t) {
246
+ const e = P()(() => ({
227
247
  slots: /* @__PURE__ */ new Map(),
228
248
  activeSlotIds: /* @__PURE__ */ new Map()
229
249
  })), n = {
230
- registerSlot: s,
231
- setActiveSlotId: l,
250
+ registerSlot: a,
251
+ setActiveSlotId: m,
232
252
  getActiveSlotId: g
233
253
  };
234
254
  return t.plugins.registerPublicApi(n), {
235
255
  ...n,
236
256
  useLayoutStore: e
237
257
  };
238
- function o(a, f) {
239
- return r(a).find((d) => d.id === f);
258
+ function o(c, d) {
259
+ return s(c).find((l) => l.id === d);
240
260
  }
241
- function r(a) {
242
- return e.getState().slots.get(a) ?? [];
261
+ function s(c) {
262
+ return e.getState().slots.get(c) ?? [];
243
263
  }
244
- function s(a, f) {
245
- (a === "top-start" || a === "top-end") && !o("top", "default") && s("top", {
264
+ function a(c, d) {
265
+ (c === "top-start" || c === "top-end") && !o("top", "default") && a("top", {
246
266
  id: "default",
247
267
  active: !0,
248
268
  component: () => null
249
269
  });
250
- const d = f.id ?? Math.random().toString(), u = r(a), m = f.order ?? (u.length + 1) * 10, S = { id: d, name: a, ...f, order: m }, i = [...u, S].sort((c, h) => c.order - h.order);
251
- e.setState((c) => {
252
- const h = new Map(c.slots);
253
- return h.set(a, i), { slots: h };
254
- }), ("active" in f && f.active || i.length === 1) && l(a, S.id), a === "main" && i.length >= 2 && !o("top-end", nt) && s("top-end", {
255
- id: nt,
256
- component: ye
270
+ const l = d.id ?? Math.random().toString(), u = s(c), y = d.order ?? (u.length + 1) * 10, p = { id: l, name: c, ...d, order: y }, r = [...u, p].sort((i, S) => i.order - S.order);
271
+ e.setState((i) => {
272
+ const S = new Map(i.slots);
273
+ return S.set(c, r), { slots: S };
274
+ }), ("active" in d && d.active || r.length === 1) && m(c, p.id), c === "main" && r.length >= 2 && !o("top-end", ot) && a("top-end", {
275
+ id: ot,
276
+ component: ve
257
277
  });
258
278
  }
259
- function l(a, f) {
260
- e.setState((d) => {
261
- const u = new Map(d.activeSlotIds);
262
- return u.set(a, f), { activeSlotIds: u };
279
+ function m(c, d) {
280
+ e.setState((l) => {
281
+ const u = new Map(l.activeSlotIds);
282
+ return u.set(c, d), { activeSlotIds: u };
263
283
  });
264
284
  }
265
- function g(a) {
266
- return e.getState().activeSlotIds.get(a);
285
+ function g(c) {
286
+ return e.getState().activeSlotIds.get(c);
267
287
  }
268
288
  }
269
289
  function $(t) {
270
290
  return typeof t == "object" && t !== null;
271
291
  }
272
- function Ce(t, e) {
273
- const n = ((e == null ? void 0 : e.id) ?? Math.random()).toString(), o = new AbortController(), r = ht(), s = structuredClone((e == null ? void 0 : e.loadContext) ?? {});
274
- let l, g, a;
275
- const f = {}, d = {
292
+ function xe(t, e) {
293
+ const n = ((e == null ? void 0 : e.id) ?? Math.random()).toString(), o = new AbortController(), s = yt(), a = structuredClone((e == null ? void 0 : e.loadContext) ?? {});
294
+ let m, g, c;
295
+ const d = {}, l = {
276
296
  id: n,
277
- useLoadState: r.useLoadState,
297
+ useLoadState: s.useLoadState,
278
298
  signal: o.signal,
279
299
  abort: u,
280
300
  refresh: (e == null ? void 0 : e.refresh) ?? null,
281
301
  get promise() {
282
- return f.promise;
302
+ return d.promise;
283
303
  },
284
304
  get loadContext() {
285
- return s;
305
+ return a;
286
306
  },
287
307
  get processResult() {
288
308
  return g;
289
309
  },
290
310
  get fetchResult() {
291
- return l;
311
+ return m;
292
312
  },
293
313
  get error() {
294
- return a;
314
+ return c;
295
315
  }
296
316
  };
297
- return f.promise = r.loadPromise(m()), d;
317
+ return d.promise = s.loadPromise(y()), l;
298
318
  function u() {
299
319
  o.abort();
300
320
  }
301
- async function m() {
321
+ async function y() {
302
322
  try {
303
- await t.hooked.callHookParallel("load:prepare", d);
304
- const c = await t.hooked.callHookParallel("load:context", d);
305
- i(s, c);
306
- const h = {
307
- ...d.loadContext,
308
- signal: d.signal
323
+ await t.hooked.callHookParallel("load:prepare", l);
324
+ const i = await t.hooked.callHookParallel("load:context", l);
325
+ r(a, i);
326
+ const S = {
327
+ ...l.loadContext,
328
+ signal: l.signal
309
329
  };
310
- if (l = await t.config.load.current(h), S(l), g = (await t.hooked.callHook("load:process", d))[0] ?? l, S(g), (e == null ? void 0 : e.store) !== !1) {
311
- const y = t.hooked.callHookSync("load:store", d);
312
- (!y.length || y.every((C) => C !== !0)) && (t.storage.clearSections(), t.storage.createSection({ loadContext: s }, g.results));
330
+ if (m = await t.config.load.current(S), p(m), g = (await t.hooked.callHook("load:process", l))[0] ?? m, p(g), (e == null ? void 0 : e.store) !== !1) {
331
+ const h = t.hooked.callHookSync("load:store", l);
332
+ (!h.length || h.every((C) => C !== !0)) && (t.storage.clearSections(), t.storage.createSection({ loadContext: a }, g.results));
313
333
  }
314
- await t.hooked.callHook("load:success", d);
315
- } catch (c) {
316
- throw a = c, await t.hooked.callHook("load:error", d), a;
334
+ await t.hooked.callHook("load:success", l);
335
+ } catch (i) {
336
+ throw c = i, await t.hooked.callHook("load:error", l), c;
317
337
  }
318
338
  }
319
- function S(c) {
320
- if (typeof c != "object" || c === null || !("results" in c))
339
+ function p(i) {
340
+ if (typeof i != "object" || i === null || !("results" in i))
321
341
  throw new Error(
322
- `Load result must be an object with "results" and "total?" properties. Got ${JSON.stringify(c)}`
342
+ `Load result must be an object with "results" and "total?" properties. Got ${JSON.stringify(i)}`
323
343
  );
324
344
  }
325
- function i(c, h) {
326
- for (const y of h ?? [])
327
- if ($(y))
328
- for (const C in y) {
329
- const b = y[C];
330
- if ($(b))
331
- if (Array.isArray(b))
332
- c[C] = b;
345
+ function r(i, S) {
346
+ for (const h of S ?? [])
347
+ if ($(h))
348
+ for (const C in h) {
349
+ const w = h[C];
350
+ if ($(w))
351
+ if (Array.isArray(w))
352
+ i[C] = w;
333
353
  else {
334
- c[C] ?? (c[C] = {});
335
- const v = c[C];
336
- $(v) && Object.assign(v, b);
354
+ i[C] ?? (i[C] = {});
355
+ const k = i[C];
356
+ $(k) && Object.assign(k, w);
337
357
  }
338
358
  }
339
359
  }
340
360
  }
341
- function we(t) {
361
+ function Ee(t) {
342
362
  const e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
343
363
  let o;
344
- const r = z()(() => ({
364
+ const s = P()(() => ({
345
365
  loadState: "blank",
346
366
  recordsLoadState: "blank"
347
- })), s = {
348
- triggerLoad: i,
349
- refresh: m,
350
- abort: f,
351
- getLoadInstances: a,
352
- useLoadStateStore: r
367
+ })), a = {
368
+ triggerLoad: r,
369
+ refresh: y,
370
+ abort: d,
371
+ getLoadInstances: c,
372
+ useLoadStateStore: s
353
373
  };
354
- return t.plugins.registerPublicApi(s), {
355
- ...s,
374
+ return t.plugins.registerPublicApi(a), {
375
+ ...a,
356
376
  init: u
357
377
  };
358
- function l() {
359
- r.setState({
378
+ function m() {
379
+ s.setState({
360
380
  loadState: e.size > 0 ? "loading" : "blank",
361
381
  recordsLoadState: n.size > 0 ? "loading" : "blank"
362
382
  });
363
383
  }
364
- function g(c) {
365
- var h, y;
366
- return (c == null ? void 0 : c.store) === !1 ? !1 : ((y = (h = c == null ? void 0 : c.loadContext) == null ? void 0 : h.tree) == null ? void 0 : y.parentId) == null;
384
+ function g(i) {
385
+ var S, h;
386
+ return (i == null ? void 0 : i.store) === !1 ? !1 : ((h = (S = i == null ? void 0 : i.loadContext) == null ? void 0 : S.tree) == null ? void 0 : h.parentId) == null;
367
387
  }
368
- function a() {
388
+ function c() {
369
389
  return [...e.values()];
370
390
  }
371
- function f() {
372
- for (const c of e.values())
373
- c.abort();
391
+ function d() {
392
+ for (const i of e.values())
393
+ i.abort();
374
394
  }
375
- async function d(c) {
395
+ async function l(i) {
376
396
  try {
377
- return await c.promise, !1;
378
- } catch (h) {
379
- if (c.signal.aborted) return !0;
380
- throw h;
397
+ return await i.promise, !1;
398
+ } catch (S) {
399
+ if (i.signal.aborted) return !0;
400
+ throw S;
381
401
  }
382
402
  }
383
403
  async function u() {
384
404
  await t.hooked.callHook("init");
385
- const c = o;
386
- if (!await d(i())) return;
387
- let h = c;
388
- for (; o !== h; )
389
- h = o, await h;
390
- }
391
- function m(c = {}) {
392
- return o = S(c), o;
393
- }
394
- async function S(c) {
395
- f();
396
- const h = { resetFilters: c.resetFilters ?? !0 };
397
- await t.hooked.callHook("refresh", h), await d(i({ refresh: h }));
398
- }
399
- function i(c) {
400
- const h = Ce(t, c);
401
- return e.set(h.id, h), g(c) && n.add(h.id), l(), h.promise.finally(() => {
402
- e.delete(h.id), n.delete(h.id), l();
405
+ const i = o;
406
+ if (!await l(r())) return;
407
+ let S = i;
408
+ for (; o !== S; )
409
+ S = o, await S;
410
+ }
411
+ function y(i = {}) {
412
+ return o = p(i), o;
413
+ }
414
+ async function p(i) {
415
+ d();
416
+ const S = { resetFilters: i.resetFilters ?? !0 };
417
+ await t.hooked.callHook("refresh", S), await l(r({ refresh: S }));
418
+ }
419
+ function r(i) {
420
+ const S = xe(t, i);
421
+ return e.set(S.id, S), g(i) && n.add(S.id), m(), S.promise.finally(() => {
422
+ e.delete(S.id), n.delete(S.id), m();
403
423
  }).catch(() => {
404
- }), h;
424
+ }), S;
405
425
  }
406
426
  }
407
- function be(t) {
408
- const e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), o = t.config.name, r = t.config.persistent ?? "localStorage", s = {
409
- registerPersistentState: a
427
+ function _e(t) {
428
+ const e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), o = t.config.name, s = t.config.persistent ?? "localStorage", a = {
429
+ registerPersistentState: c
410
430
  };
411
- return t.plugins.registerPublicApi(s), s;
412
- function l(f) {
413
- return `dataGrid:${o}:${f}`;
431
+ return t.plugins.registerPublicApi(a), a;
432
+ function m(d) {
433
+ return `dataGrid:${o}:${d}`;
414
434
  }
415
- function g(f) {
435
+ function g(d) {
416
436
  if (typeof window > "u") return null;
417
437
  try {
418
- return f === "localStorage" ? localStorage : sessionStorage;
438
+ return d === "localStorage" ? localStorage : sessionStorage;
419
439
  } catch {
420
440
  return null;
421
441
  }
422
442
  }
423
- function a(f, d = {}) {
424
- const u = l(f), m = d.storage ?? r, S = m === "router" && d.router === !1;
443
+ function c(d, l = {}) {
444
+ const u = m(d), y = l.storage ?? s, p = y === "router" && l.router === !1;
425
445
  return {
426
446
  get value() {
427
- return i();
447
+ return r();
428
448
  },
429
- setValue: c,
430
- buildStorageItem: h
449
+ setValue: i,
450
+ buildStorageItem: S
431
451
  };
432
- function i() {
433
- if (S)
452
+ function r() {
453
+ if (p)
434
454
  return;
435
- if (m === "memory")
436
- return n.get(f);
437
- if (m === "router") {
455
+ if (y === "memory")
456
+ return n.get(d);
457
+ if (y === "router") {
438
458
  const C = new URLSearchParams(window.location.search);
439
- return ot(C.get(f));
459
+ return rt(C.get(d));
440
460
  }
441
- const y = g(m);
442
- if (y)
443
- return ot(ve(y, u));
461
+ const h = g(y);
462
+ if (h)
463
+ return rt(Le(h, u));
444
464
  }
445
- function c(y) {
465
+ function i(h) {
446
466
  var C;
447
- if (!S) {
448
- if (m === "memory")
449
- y === void 0 ? n.delete(f) : n.set(f, y);
450
- else if (m === "router") {
451
- const b = new URLSearchParams(window.location.search);
452
- y === void 0 ? b.delete(f) : b.set(f, JSON.stringify(y));
453
- const v = `${window.location.pathname}?${b.toString()}`;
454
- window.history.replaceState(null, "", v);
467
+ if (!p) {
468
+ if (y === "memory")
469
+ h === void 0 ? n.delete(d) : n.set(d, h);
470
+ else if (y === "router") {
471
+ const w = new URLSearchParams(window.location.search);
472
+ h === void 0 ? w.delete(d) : w.set(d, JSON.stringify(h));
473
+ const k = `${window.location.pathname}?${w.toString()}`;
474
+ window.history.replaceState(null, "", k);
455
475
  } else {
456
- const b = g(m);
457
- if (!b) return;
476
+ const w = g(y);
477
+ if (!w) return;
458
478
  try {
459
- y === void 0 ? b.removeItem(u) : b.setItem(u, JSON.stringify(y));
479
+ h === void 0 ? w.removeItem(u) : w.setItem(u, JSON.stringify(h));
460
480
  } catch {
461
481
  }
462
482
  }
463
- (C = e.get(f)) == null || C.forEach((b) => b());
483
+ (C = e.get(d)) == null || C.forEach((w) => w());
464
484
  }
465
485
  }
466
- function h(y) {
467
- if (!d.schema) return { [f]: y };
486
+ function S(h) {
487
+ if (!l.schema) return { [d]: h };
468
488
  const C = {};
469
- return Object.entries(d.schema).forEach(([b]) => {
470
- const v = $(y) ? y[b] : void 0;
471
- v !== void 0 && (C[b] = v);
489
+ return Object.entries(l.schema).forEach(([w]) => {
490
+ const k = $(h) ? h[w] : void 0;
491
+ k !== void 0 && (C[w] = k);
472
492
  }), C;
473
493
  }
474
494
  }
475
495
  }
476
- function ve(t, e) {
496
+ function Le(t, e) {
477
497
  try {
478
498
  return t.getItem(e);
479
499
  } catch {
480
500
  return null;
481
501
  }
482
502
  }
483
- function ot(t) {
503
+ function rt(t) {
484
504
  if (t)
485
505
  try {
486
506
  return JSON.parse(t);
@@ -488,39 +508,39 @@ function ot(t) {
488
508
  return;
489
509
  }
490
510
  }
491
- function ke(t) {
511
+ function Ie(t) {
492
512
  const e = /* @__PURE__ */ new Map(), n = {
493
513
  hook: t.hooked.hook,
494
514
  getPlugin: g
495
515
  }, o = { ...n };
496
516
  return {
497
517
  ...n,
498
- registerPlugin: s,
499
- registerPlugins: l,
500
- registerPublicApi: r,
518
+ registerPlugin: a,
519
+ registerPlugins: m,
520
+ registerPublicApi: s,
501
521
  pluginContext: o
502
522
  };
503
- function r(a) {
504
- Object.assign(o, a);
523
+ function s(c) {
524
+ Object.assign(o, c);
505
525
  }
506
- function s(a) {
507
- if (e.has(a.name)) {
526
+ function a(c) {
527
+ if (e.has(c.name)) {
508
528
  process.env.NODE_ENV !== "production" && console.warn(
509
- `[DataGrid] Plugin "${a.name}" is already registered. Skipping duplicate.`
529
+ `[DataGrid] Plugin "${c.name}" is already registered. Skipping duplicate.`
510
530
  );
511
531
  return;
512
532
  }
513
- const f = a.setup(o);
514
- f !== void 0 && e.set(a.name, f);
533
+ const d = c.setup(o);
534
+ d !== void 0 && e.set(c.name, d);
515
535
  }
516
- function l(a) {
517
- a.forEach((f) => s(f));
536
+ function m(c) {
537
+ c.forEach((d) => a(d));
518
538
  }
519
- function g(a) {
520
- return e.get(a);
539
+ function g(c) {
540
+ return e.get(c);
521
541
  }
522
542
  }
523
- function rt(t, e) {
543
+ function st(t, e) {
524
544
  if (typeof e == "string") {
525
545
  if (!(e in t))
526
546
  throw new Error(`Key "${e}" not found in item ${JSON.stringify(t)}`);
@@ -528,8 +548,8 @@ function rt(t, e) {
528
548
  }
529
549
  return e(t);
530
550
  }
531
- function xe(t) {
532
- const e = z()(() => ({
551
+ function De(t) {
552
+ const e = P()(() => ({
533
553
  sections: /* @__PURE__ */ new Map(),
534
554
  recordSections: /* @__PURE__ */ new Map(),
535
555
  visibleRecords: [],
@@ -540,42 +560,42 @@ function xe(t) {
540
560
  let n = [];
541
561
  const o = {
542
562
  useStore: e,
543
- clearSections: s,
544
- createSection: r,
545
- getSections: l,
563
+ clearSections: a,
564
+ createSection: s,
565
+ getSections: m,
546
566
  getRecord: g,
547
- getSectionsByParentId: a,
548
- getRecordsByParentId: f,
549
- getItemId: d
567
+ getSectionsByParentId: c,
568
+ getRecordsByParentId: d,
569
+ getItemId: l
550
570
  };
551
- return t.plugins.registerPublicApi(o), { ...o, updateImplicitFilterKeys: m };
552
- function r(i, c) {
553
- const h = Math.random().toString(), y = i.parentId ?? null, C = {
554
- id: h,
571
+ return t.plugins.registerPublicApi(o), { ...o, updateImplicitFilterKeys: y };
572
+ function s(r, i) {
573
+ const S = Math.random().toString(), h = r.parentId ?? null, C = {
574
+ id: S,
555
575
  visible: !0,
556
- parentId: y,
557
- loadContext: i.loadContext,
576
+ parentId: h,
577
+ loadContext: r.loadContext,
558
578
  records: []
559
- }, b = t.config.itemKey ?? "id";
560
- for (const [v, _] of c.entries()) {
561
- const w = rt(_, b);
562
- C.records.push({ id: w, item: _, index: v, section: C });
579
+ }, w = t.config.itemKey ?? "id";
580
+ for (const [k, _] of i.entries()) {
581
+ const b = st(_, w);
582
+ C.records.push({ id: b, item: _, index: k, section: C });
563
583
  }
564
- return e.setState((v) => {
565
- const _ = new Map(v.sections), w = new Map(v.recordSections);
566
- _.set(h, C), w.set(y, [...w.get(y) ?? [], h]);
567
- const { visibleRecords: x, rootSections: L, visibleSections: E, hasActiveFilters: k } = S(_, w);
584
+ return e.setState((k) => {
585
+ const _ = new Map(k.sections), b = new Map(k.recordSections);
586
+ _.set(S, C), b.set(h, [...b.get(h) ?? [], S]);
587
+ const { visibleRecords: x, rootSections: E, visibleSections: L, hasActiveFilters: v } = p(_, b);
568
588
  return {
569
589
  sections: _,
570
- recordSections: w,
590
+ recordSections: b,
571
591
  visibleRecords: x,
572
- rootSections: L,
573
- visibleSections: E,
574
- hasActiveFilters: k
592
+ rootSections: E,
593
+ visibleSections: L,
594
+ hasActiveFilters: v
575
595
  };
576
596
  }), C;
577
597
  }
578
- function s() {
598
+ function a() {
579
599
  e.setState({
580
600
  sections: /* @__PURE__ */ new Map(),
581
601
  recordSections: /* @__PURE__ */ new Map(),
@@ -585,334 +605,193 @@ function xe(t) {
585
605
  hasActiveFilters: !1
586
606
  });
587
607
  }
588
- function l() {
608
+ function m() {
589
609
  return [...e.getState().sections.values()];
590
610
  }
591
- function g(i) {
592
- for (const c of e.getState().sections.values()) {
593
- const h = c.records.find((y) => y.id === i);
594
- if (h)
595
- return h;
611
+ function g(r) {
612
+ for (const i of e.getState().sections.values()) {
613
+ const S = i.records.find((h) => h.id === r);
614
+ if (S)
615
+ return S;
596
616
  }
597
617
  }
598
- function a(i) {
599
- const c = e.getState();
600
- return (c.recordSections.get(i) ?? []).map((y) => c.sections.get(y)).filter(Boolean);
618
+ function c(r) {
619
+ const i = e.getState();
620
+ return (i.recordSections.get(r) ?? []).map((h) => i.sections.get(h)).filter(Boolean);
601
621
  }
602
- function f(i) {
603
- return a(i).flatMap((c) => c.records);
622
+ function d(r) {
623
+ return c(r).flatMap((i) => i.records);
604
624
  }
605
- function d(i) {
606
- const c = t.config.itemKey ?? "id";
607
- return rt(i, c);
625
+ function l(r) {
626
+ const i = t.config.itemKey ?? "id";
627
+ return st(r, i);
608
628
  }
609
- function u(i) {
610
- return i == null ? !1 : typeof i == "boolean" ? !0 : Array.isArray(i) ? i.length > 0 : !!i;
629
+ function u(r) {
630
+ return r == null ? !1 : typeof r == "boolean" ? !0 : Array.isArray(r) ? r.length > 0 : !!r;
611
631
  }
612
- function m(i) {
613
- n !== i && (n = i, e.setState((c) => S(c.sections, c.recordSections)));
632
+ function y(r) {
633
+ n !== r && (n = r, e.setState((i) => p(i.sections, i.recordSections)));
614
634
  }
615
- function S(i, c) {
616
- const y = [...i.values()].filter((w) => w.visible), b = (c.get(null) ?? []).map((w) => i.get(w)).filter((w) => w.visible), v = y.flatMap((w) => w.records), _ = y.some((w) => {
617
- const { filters: x } = w.loadContext;
635
+ function p(r, i) {
636
+ const h = [...r.values()].filter((b) => b.visible), w = (i.get(null) ?? []).map((b) => r.get(b)).filter((b) => b.visible), k = h.flatMap((b) => b.records), _ = h.some((b) => {
637
+ const { filters: x } = b.loadContext;
618
638
  return x ? Object.entries(x).some(
619
- ([L, E]) => !n.includes(L) && u(E == null ? void 0 : E.value)
639
+ ([E, L]) => !n.includes(E) && u(L == null ? void 0 : L.value)
620
640
  ) : !1;
621
641
  });
622
642
  return {
623
- visibleSections: y,
624
- rootSections: b,
625
- visibleRecords: v,
643
+ visibleSections: h,
644
+ rootSections: w,
645
+ visibleRecords: k,
626
646
  hasActiveFilters: _
627
647
  };
628
648
  }
629
649
  }
630
- function Q(t) {
631
- return typeof t == "function" ? t() : t;
632
- }
633
- function gt(t, e) {
634
- return e.split(".").reduce((n, o) => {
635
- if (n != null && typeof n == "object")
636
- return n[o];
637
- }, t);
638
- }
639
- function Ct(t, e) {
640
- if (t.render || t.component) return;
641
- const n = t.key ?? t.id, o = n.includes(".") ? gt(e, n) : e[n];
642
- return t.formatter ? t.formatter(o) : o != null ? String(o) : "";
643
- }
644
- function _e({
650
+ function Ge({
645
651
  column: t,
646
652
  item: e
647
653
  }) {
648
654
  if (t.render)
649
- return typeof t.render == "function" ? /* @__PURE__ */ p(G, { children: t.render(e) }) : /* @__PURE__ */ p(G, { children: t.render });
655
+ return typeof t.render == "function" ? /* @__PURE__ */ f(M, { children: t.render(e) }) : /* @__PURE__ */ f(M, { children: t.render });
650
656
  if (t.component) {
651
- const n = t.component, o = t.key ?? t.id, r = o.includes(".") ? gt(e, o) : e[o];
652
- return /* @__PURE__ */ p(n, { item: e, column: t, value: r });
657
+ const n = t.component, o = t.key ?? t.id, s = o.includes(".") ? Ot(e, o) : e[o];
658
+ return /* @__PURE__ */ f(n, { item: e, column: t, value: s });
653
659
  }
654
- return /* @__PURE__ */ p(G, { children: Ct(t, e) });
660
+ return /* @__PURE__ */ f(M, { children: At(t, e) });
655
661
  }
656
- function Ee({ children: t }) {
657
- return /* @__PURE__ */ p(G, { children: t });
662
+ function Me({ children: t }) {
663
+ return /* @__PURE__ */ f(M, { children: t });
658
664
  }
659
- function Le({
665
+ function Re({
660
666
  column: t
661
667
  }) {
662
- return /* @__PURE__ */ p("span", { children: Q(t.label) });
668
+ return /* @__PURE__ */ f("span", { children: q(t.label) });
663
669
  }
664
- function O() {
665
- return H().table;
666
- }
667
- const Ie = "_cell_5zgpa_2", De = "_stickyCell_5zgpa_16", Ge = "_stickyHeaderCell_5zgpa_33", Re = "_contentRow_5zgpa_38", Me = "_content_5zgpa_37", He = "_endSlot_5zgpa_37", R = {
668
- cell: Ie,
669
- stickyCell: De,
670
- stickyHeaderCell: Ge,
671
- contentRow: Re,
672
- content: Me,
673
- endSlot: He
674
- }, Oe = "_headerCell_18ulc_1", Ae = "_headerCellContent_18ulc_13", We = "_extraHeaderCell_18ulc_21", j = {
670
+ const Oe = "_headerCell_18ulc_1", Ae = "_headerCellContent_18ulc_13", We = "_extraHeaderCell_18ulc_21", K = {
675
671
  headerCell: Oe,
676
672
  headerCellContent: Ae,
677
673
  extraHeaderCell: We
678
674
  };
679
- function wt({ children: t }) {
680
- return /* @__PURE__ */ p("span", { className: j.headerCellContent, children: t });
675
+ function Ct({ children: t }) {
676
+ return /* @__PURE__ */ f("span", { className: K.headerCellContent, children: t });
681
677
  }
682
678
  function bt({
683
679
  group: t,
684
680
  colspan: e,
685
681
  className: n
686
682
  }) {
687
- const o = O(), r = o.useGroupStickyOffset(t.id), s = o.useStickyHeader(), l = r !== void 0, g = t.component, a = g ? /* @__PURE__ */ p(g, { group: t }) : /* @__PURE__ */ p(wt, { children: Q(t.label) });
688
- return /* @__PURE__ */ p(
689
- mt,
683
+ const s = N().useGroupStickyOffset(t.id), a = s !== void 0, m = t.component, g = m ? /* @__PURE__ */ f(m, { group: t }) : /* @__PURE__ */ f(Ct, { children: q(t.label) });
684
+ return /* @__PURE__ */ f(
685
+ Vt,
690
686
  {
691
- className: N(
692
- R.cell,
693
- j.headerCell,
694
- l && R.stickyCell,
695
- s && R.stickyHeaderCell,
696
- n
697
- ),
698
- style: l ? { position: "sticky", insetInlineStart: `${r}px` } : void 0,
687
+ className: H(Wt.cell, K.headerCell, n),
688
+ pinned: a,
689
+ style: a ? { insetInlineStart: `${s}px` } : void 0,
699
690
  scope: "col",
700
691
  colSpan: e,
701
- children: a
702
- }
703
- );
704
- }
705
- const vt = Lt(null), Ne = vt.Provider;
706
- function Vn() {
707
- const t = Et(vt);
708
- if (!t)
709
- throw new Error("useDataGridRecord must be used within a DataGridRow");
710
- return t;
711
- }
712
- const Ve = "--_data-grid-col-max";
713
- function kt(t) {
714
- return typeof t == "string" && t.trim().endsWith("%");
715
- }
716
- function xt(t) {
717
- return typeof t == "number" ? `${t}px` : /^-?\d+(\.\d+)?$/.test(t.trim()) ? `${t}px` : t;
718
- }
719
- function _t(t, e, n) {
720
- return e === "auto" ? Pe(t, n) : ze(t, n);
721
- }
722
- function ze(t, e) {
723
- const o = (t.width === "min-content" ? e : t.width) ?? t.minWidth ?? t.maxWidth;
724
- if (o === void 0) return { headerStyle: {}, contentVars: {}, isCapped: !1 };
725
- if (kt(o))
726
- return { headerStyle: { inlineSize: o }, contentVars: {}, isCapped: !1 };
727
- const r = xt(o);
728
- return {
729
- headerStyle: { width: r, minInlineSize: r },
730
- contentVars: {},
731
- isCapped: !1
732
- };
733
- }
734
- function Pe(t, e) {
735
- const { width: n, minWidth: o, maxWidth: r } = t, s = {};
736
- if (n !== void 0)
737
- if (n === "min-content" && e !== void 0) {
738
- const a = `${r !== void 0 ? Math.min(e, r) : e}px`;
739
- s.width = a, s.minInlineSize = a;
740
- } else if (kt(n))
741
- s.inlineSize = n;
742
- else {
743
- const g = xt(n);
744
- s.width = g, s.minInlineSize = g;
745
- }
746
- o !== void 0 && (s.minInlineSize = `${o}px`);
747
- const l = {};
748
- return r !== void 0 && (n === void 0 && (s.width = `${r}px`), l[Ve] = `${r}px`), { headerStyle: s, contentVars: l, isCapped: r !== void 0 };
749
- }
750
- function Te(t, e, n) {
751
- const o = t.cellOverflow ?? "wrap", { contentVars: r, isCapped: s } = _t(t, n), l = o === "nowrap" ? Ct(t, e) : void 0;
752
- return { style: r, overflow: o, capped: s, title: l || void 0 };
753
- }
754
- const $e = "data-grid-row-ignore-click";
755
- function Fe(t) {
756
- if (t != null)
757
- return typeof t == "number" ? `${t}px` : isNaN(Number(t)) ? t : `${t}px`;
758
- }
759
- function K({
760
- columnId: t,
761
- rowspan: e,
762
- className: n,
763
- style: o,
764
- width: r,
765
- children: s,
766
- header: l,
767
- endSlot: g,
768
- overflow: a,
769
- capped: f,
770
- title: d,
771
- contentRowRef: u,
772
- fillContent: m,
773
- ignoreRowClick: S
774
- }) {
775
- const i = O(), c = i.useColumnStickyOffset(t), h = i.useColumnEndStickyOffset(t), y = c !== void 0, C = h !== void 0, b = /* @__PURE__ */ p("span", { className: R.content, children: s }), v = l ? mt : Vt, _ = Fe(r);
776
- return /* @__PURE__ */ p(
777
- v,
778
- {
779
- "data-column-id": t,
780
- "data-overflow": a,
781
- "data-capped": f || void 0,
782
- "data-header-fill": m || void 0,
783
- ...S && { [$e]: "" },
784
- title: d,
785
- className: N(R.cell, (y || C) && R.stickyCell, n),
786
- style: {
787
- ...o,
788
- ..._ ? { width: _ } : {},
789
- ...y ? { position: "sticky", insetInlineStart: `${c}px` } : {},
790
- ...C ? { position: "sticky", insetInlineEnd: `${h}px` } : {}
791
- },
792
- scope: l ? "col" : void 0,
793
- rowSpan: e,
794
- children: g ? /* @__PURE__ */ D("span", { className: R.contentRow, ref: u, children: [
795
- b,
796
- /* @__PURE__ */ p("span", { className: R.endSlot, children: g })
797
- ] }) : b
692
+ children: g
798
693
  }
799
694
  );
800
695
  }
801
- function it({
802
- position: t
803
- }) {
804
- const n = O().useExtraColumns(t);
805
- return /* @__PURE__ */ p(G, { children: n.map((o) => /* @__PURE__ */ p(
806
- K,
807
- {
808
- columnId: o.id,
809
- width: o.width,
810
- ignoreRowClick: o.ignoreRowClick,
811
- children: o.body ? /* @__PURE__ */ p(o.body, {}) : null
812
- },
813
- o.id
814
- )) });
815
- }
816
- function Be({ record: t }) {
817
- const e = O(), n = e.useVisibleColumns(), o = e.useTableLayout(), r = e.useComponent(
696
+ function He({ record: t }) {
697
+ const e = N(), n = e.useVisibleColumns(), o = e.useTableLayout(), s = e.useComponent(
818
698
  "body-cell-content"
819
699
  );
820
- return /* @__PURE__ */ p(Ne, { value: t, children: /* @__PURE__ */ D(J, { children: [
821
- /* @__PURE__ */ p(it, { position: "start" }),
822
- n.map((s) => {
823
- var a;
824
- const l = (a = s.getClassName) == null ? void 0 : a.call(s, t.item), g = Te(s, t.item, o);
825
- return /* @__PURE__ */ p(
826
- K,
700
+ return /* @__PURE__ */ f(Bt, { value: t, children: /* @__PURE__ */ G(Y, { children: [
701
+ /* @__PURE__ */ f(tt, { position: "start" }),
702
+ n.map((a) => {
703
+ var c;
704
+ const m = (c = a.getClassName) == null ? void 0 : c.call(a, t.item), g = Ht(a, t.item, o);
705
+ return /* @__PURE__ */ f(
706
+ X,
827
707
  {
828
- columnId: s.id,
829
- className: l,
708
+ columnId: a.id,
709
+ className: m,
830
710
  ...g,
831
- children: /* @__PURE__ */ p(r, { column: s, item: t.item })
711
+ children: /* @__PURE__ */ f(s, { column: a, item: t.item })
832
712
  },
833
- s.id
713
+ a.id
834
714
  );
835
715
  }),
836
- /* @__PURE__ */ p(it, { position: "end" })
716
+ /* @__PURE__ */ f(tt, { position: "end" })
837
717
  ] }) });
838
718
  }
839
- const je = "_tableWrapper_1wbrz_6", Ke = "_table_1wbrz_6", Ue = "_layoutFixed_1wbrz_35", Je = "_layoutAuto_1wbrz_42", Ye = "_tableBordered_1wbrz_49", T = {
840
- tableWrapper: je,
841
- table: Ke,
842
- layoutFixed: Ue,
843
- layoutAuto: Je,
844
- tableBordered: Ye
719
+ const Ne = "_tableWrapper_6b0cm_6", Ve = "_table_6b0cm_6", Pe = "_layoutFixed_6b0cm_39", Te = "_layoutAuto_6b0cm_46", Fe = "_tableBordered_6b0cm_53", B = {
720
+ tableWrapper: Ne,
721
+ table: Ve,
722
+ layoutFixed: Pe,
723
+ layoutAuto: Te,
724
+ tableBordered: Fe
845
725
  };
846
- function Xe({
726
+ function Be({
847
727
  record: t
848
728
  }) {
849
- const n = O().useComponent("row");
850
- return /* @__PURE__ */ p(n, { record: t });
729
+ const n = N().useComponent("row");
730
+ return /* @__PURE__ */ f(n, { record: t });
851
731
  }
852
- function qe({
732
+ function $e({
853
733
  records: t
854
734
  }) {
855
- return /* @__PURE__ */ p(G, { children: t.map((e) => /* @__PURE__ */ p(Xe, { record: e }, e.id)) });
735
+ return /* @__PURE__ */ f(M, { children: t.map((e) => /* @__PURE__ */ f(Be, { record: e }, e.id)) });
856
736
  }
857
- function Qe() {
858
- const e = B().useStore((n) => n.rootSections);
859
- return /* @__PURE__ */ p(G, { children: e.map((n) => /* @__PURE__ */ p(zt, { children: /* @__PURE__ */ p(qe, { records: n.records }) }, n.id)) });
737
+ function ze() {
738
+ const e = j().useStore((n) => n.rootSections);
739
+ return /* @__PURE__ */ f(M, { children: e.map((n) => /* @__PURE__ */ f(Pt, { children: /* @__PURE__ */ f($e, { records: n.records }) }, n.id)) });
860
740
  }
861
- function Ze({
741
+ function je({
862
742
  column: t,
863
743
  rowspan: e,
864
744
  className: n,
865
745
  children: o
866
746
  }) {
867
- const s = O().useStickyHeader();
868
- return /* @__PURE__ */ p(
869
- K,
747
+ return /* @__PURE__ */ f(
748
+ X,
870
749
  {
871
750
  header: !0,
872
751
  columnId: t.id,
873
- className: N(j.extraHeaderCell, s && R.stickyHeaderCell, n),
752
+ className: H(K.extraHeaderCell, n),
874
753
  width: t.width,
875
754
  rowspan: e,
876
755
  ignoreRowClick: t.ignoreRowClick,
877
- children: o ? /* @__PURE__ */ p(wt, { children: o }) : null
756
+ children: o ? /* @__PURE__ */ f(Ct, { children: o }) : null
878
757
  }
879
758
  );
880
759
  }
881
- function st({
760
+ function it({
882
761
  position: t,
883
762
  isGroupRow: e,
884
763
  className: n
885
764
  }) {
886
- const o = O(), r = o.useHasGroups(), s = o.useExtraColumns(t), l = !r || e;
887
- return /* @__PURE__ */ p(G, { children: s.map((g) => /* @__PURE__ */ p(
888
- Ze,
765
+ const o = N(), s = o.useHasGroups(), a = o.useExtraColumns(t), m = !s || e;
766
+ return /* @__PURE__ */ f(M, { children: a.map((g) => /* @__PURE__ */ f(
767
+ je,
889
768
  {
890
769
  column: g,
891
- rowspan: l && r ? 2 : void 0,
770
+ rowspan: m && s ? 2 : void 0,
892
771
  className: n,
893
- children: l && g.header ? /* @__PURE__ */ p(g.header, {}) : null
772
+ children: m && g.header ? /* @__PURE__ */ f(g.header, {}) : null
894
773
  },
895
774
  g.id
896
775
  )) });
897
776
  }
898
- function tn(t) {
777
+ function Ke(t) {
899
778
  return {
900
779
  setMinContentWidth: e,
901
780
  useMinContentWidth: n
902
781
  };
903
- function e(o, r) {
904
- const s = t.getState().minContentWidths;
905
- if (s.get(o) === r) return;
906
- const l = new Map(s);
907
- l.set(o, r), t.setState({ minContentWidths: l });
782
+ function e(o, s) {
783
+ const a = t.getState().minContentWidths;
784
+ if (a.get(o) === s) return;
785
+ const m = new Map(a);
786
+ m.set(o, s), t.setState({ minContentWidths: m });
908
787
  }
909
788
  function n(o) {
910
- return t((r) => r.minContentWidths.get(o));
789
+ return t((s) => s.minContentWidths.get(o));
911
790
  }
912
791
  }
913
- function en(t, e) {
914
- const n = e ? window.getComputedStyle(e) : void 0, o = n ? parseFloat(n.paddingInlineStart || "0") + parseFloat(n.paddingInlineEnd || "0") : 0, r = n ? parseFloat(n.borderInlineStartWidth || "0") + parseFloat(n.borderInlineEndWidth || "0") : 0;
915
- return Math.ceil(t.contentRect.width + o + r);
792
+ function Ue(t, e) {
793
+ const n = e ? window.getComputedStyle(e) : void 0, o = n ? parseFloat(n.paddingInlineStart || "0") + parseFloat(n.paddingInlineEnd || "0") : 0, s = n ? parseFloat(n.borderInlineStartWidth || "0") + parseFloat(n.borderInlineEndWidth || "0") : 0;
794
+ return Math.ceil(t.contentRect.width + o + s);
916
795
  }
917
796
  function at({
918
797
  column: t,
@@ -920,489 +799,504 @@ function at({
920
799
  headerCellEndSlots: n,
921
800
  className: o
922
801
  }) {
923
- const r = O(), s = F(null), l = r.useComponent("header-cell-label"), g = r.useTableLayout(), a = r.useStickyHeader(), f = r.useMinContentWidth(t.id), d = t.headerComponent ? /* @__PURE__ */ p(t.headerComponent, { column: t }) : (
802
+ const s = N(), a = z(null), m = s.useComponent("header-cell-label"), g = s.useTableLayout(), c = s.useMinContentWidth(t.id), d = t.headerComponent ? /* @__PURE__ */ f(t.headerComponent, { column: t }) : (
924
803
  // eslint-disable-next-line react-hooks/static-components -- LabelComponent comes from the grid's component registry (a store lookup), so it is the same component on every render; the rule cannot see through the lookup.
925
- /* @__PURE__ */ p(l, { column: t })
926
- ), u = t.headerOverflow ?? "nowrap", m = t.width === "min-content", S = m ? void 0 : u, { headerStyle: i, contentVars: c, isCapped: h } = _t(
804
+ /* @__PURE__ */ f(m, { column: t })
805
+ ), l = t.headerOverflow ?? "nowrap", u = t.width === "min-content", y = u ? void 0 : l, { headerStyle: p, contentVars: r, isCapped: i } = Nt(
927
806
  t,
928
807
  g,
929
- f
930
- ), y = !t.headerComponent && u === "nowrap" ? Q(t.label) : void 0, C = !!t.headerComponent && !m;
931
- return A(() => {
932
- if (!m) return;
933
- const b = s.current;
934
- if (!b) return;
935
- const v = b.closest("th, td"), _ = new ResizeObserver((w) => {
936
- const x = w[w.length - 1];
937
- r.setMinContentWidth(t.id, en(x, v));
808
+ c
809
+ ), S = !t.headerComponent && l === "nowrap" ? q(t.label) : void 0, h = !!t.headerComponent && !u;
810
+ return R(() => {
811
+ if (!u) return;
812
+ const C = a.current;
813
+ if (!C) return;
814
+ const w = C.closest("th, td"), k = new ResizeObserver((_) => {
815
+ const b = _[_.length - 1];
816
+ s.setMinContentWidth(t.id, Ue(b, w));
938
817
  });
939
- return _.observe(b), () => _.disconnect();
940
- }, [m, t.id, r]), /* @__PURE__ */ p(
941
- K,
818
+ return k.observe(C), () => k.disconnect();
819
+ }, [u, t.id, s]), /* @__PURE__ */ f(
820
+ X,
942
821
  {
943
822
  header: !0,
944
823
  columnId: t.id,
945
- className: N(j.headerCell, a && R.stickyHeaderCell, o),
946
- style: { ...i, ...c },
824
+ className: H(K.headerCell, o),
825
+ style: { ...p, ...r },
947
826
  rowspan: e,
948
- overflow: S,
949
- capped: m ? void 0 : h,
950
- title: y,
951
- contentRowRef: m ? s : void 0,
952
- fillContent: C,
953
- endSlot: n.map((b) => {
954
- const v = b.component;
955
- return /* @__PURE__ */ p(v, { column: t }, b.id);
827
+ overflow: y,
828
+ capped: u ? void 0 : i,
829
+ title: S,
830
+ contentRowRef: u ? a : void 0,
831
+ fillContent: h,
832
+ endSlot: n.map((C) => {
833
+ const w = C.component;
834
+ return /* @__PURE__ */ f(w, { column: t }, C.id);
956
835
  }),
957
836
  children: d
958
837
  }
959
838
  );
960
839
  }
961
- const nn = "_theadSticky_1kkfu_11", on = {
962
- theadSticky: nn
840
+ const Ye = "_theadSticky_167rm_11", Je = {
841
+ theadSticky: Ye
963
842
  };
964
- function rn() {
965
- const t = O(), e = F(null), n = F(null), o = t.useHasGroups(), r = t.useStickyHeader(), s = t.useFirstRowHeaderCells(), l = t.useSecondRowHeaderColumns(), g = t.useSlots("header-cell-end");
966
- return A(() => {
967
- const a = e.current;
968
- if (!a) return;
969
- n.current = new ResizeObserver((d) => {
970
- var u, m;
971
- for (const S of d) {
972
- const { columnId: i } = S.target.dataset;
973
- if (i) {
974
- const c = ((m = (u = S.borderBoxSize) == null ? void 0 : u[0]) == null ? void 0 : m.inlineSize) ?? S.contentRect.width;
975
- t.onResizeColumn(i, c);
843
+ function qe() {
844
+ const t = N(), e = z(null), n = z(null), o = t.useHasGroups(), s = t.useStickyHeader(), a = t.useFirstRowHeaderCells(), m = t.useSecondRowHeaderColumns(), g = t.useSlots("header-cell-end");
845
+ return R(() => {
846
+ const c = e.current;
847
+ if (!c) return;
848
+ n.current = new ResizeObserver((l) => {
849
+ var u, y;
850
+ for (const p of l) {
851
+ const { columnId: r } = p.target.dataset;
852
+ if (r) {
853
+ const i = ((y = (u = p.borderBoxSize) == null ? void 0 : u[0]) == null ? void 0 : y.inlineSize) ?? p.contentRect.width;
854
+ t.onResizeColumn(r, i);
976
855
  }
977
856
  }
978
857
  });
979
- const f = a.querySelectorAll("[data-column-id]");
980
- for (const d of f)
981
- n.current.observe(d);
858
+ const d = c.querySelectorAll("[data-column-id]");
859
+ for (const l of d)
860
+ n.current.observe(l);
982
861
  return () => {
983
- var d;
984
- (d = n.current) == null || d.disconnect();
862
+ var l;
863
+ (l = n.current) == null || l.disconnect();
985
864
  };
986
- }, [t, s, l]), /* @__PURE__ */ D(
987
- Pt,
865
+ }, [t, a, m]), /* @__PURE__ */ G(
866
+ Tt,
988
867
  {
989
868
  ref: e,
990
- className: N(r && o && on.theadSticky),
869
+ className: H(s && o && Je.theadSticky),
991
870
  children: [
992
- /* @__PURE__ */ D(J, { children: [
993
- /* @__PURE__ */ p(st, { position: "start", isGroupRow: !0 }),
994
- s.map((a) => {
995
- if (a.type === "group") {
996
- const d = a.item;
997
- return /* @__PURE__ */ p(bt, { group: d, colspan: a.colspan }, d.id);
871
+ /* @__PURE__ */ G(Y, { children: [
872
+ /* @__PURE__ */ f(it, { position: "start", isGroupRow: !0 }),
873
+ a.map((c) => {
874
+ if (c.type === "group") {
875
+ const l = c.item;
876
+ return /* @__PURE__ */ f(bt, { group: l, colspan: c.colspan }, l.id);
998
877
  }
999
- const f = a.item;
1000
- return /* @__PURE__ */ p(
878
+ const d = c.item;
879
+ return /* @__PURE__ */ f(
1001
880
  at,
1002
881
  {
1003
- column: f,
1004
- rowspan: a.rowspan,
882
+ column: d,
883
+ rowspan: c.rowspan,
1005
884
  headerCellEndSlots: g
1006
885
  },
1007
- f.id
886
+ d.id
1008
887
  );
1009
888
  }),
1010
- /* @__PURE__ */ p(st, { position: "end", isGroupRow: !0 })
889
+ /* @__PURE__ */ f(it, { position: "end", isGroupRow: !0 })
1011
890
  ] }),
1012
- o && l.length > 0 && /* @__PURE__ */ p(J, { children: l.map((a) => /* @__PURE__ */ p(
891
+ o && m.length > 0 && /* @__PURE__ */ f(Y, { children: m.map((c) => /* @__PURE__ */ f(
1013
892
  at,
1014
893
  {
1015
- column: a,
894
+ column: c,
1016
895
  headerCellEndSlots: g
1017
896
  },
1018
- a.id
897
+ c.id
1019
898
  )) })
1020
899
  ]
1021
900
  }
1022
901
  );
1023
902
  }
1024
903
  function ct({ slots: t }) {
1025
- return t.length === 0 ? null : /* @__PURE__ */ p(G, { children: t.map((e) => {
904
+ return t.length === 0 ? null : /* @__PURE__ */ f(M, { children: t.map((e) => {
1026
905
  const n = e.component;
1027
- return /* @__PURE__ */ p(n, {}, e.id);
906
+ return /* @__PURE__ */ f(n, {}, e.id);
1028
907
  }) });
1029
908
  }
1030
- const sn = {
1031
- fixed: T.layoutFixed,
1032
- auto: T.layoutAuto
909
+ const Xe = {
910
+ fixed: B.layoutFixed,
911
+ auto: B.layoutAuto
1033
912
  };
1034
- function an() {
1035
- const t = O(), e = t.useHasGroups(), n = t.useSlots("subheader"), o = t.useSlots("footer"), r = t.useTableLayout(), s = t.useStickyHeader(), l = t.useComponent("content");
913
+ function Qe() {
914
+ const t = N(), e = t.useHasGroups(), n = t.useSlots("subheader"), o = t.useSlots("footer"), s = t.useTableLayout(), a = t.useStickyHeader(), m = t.useComponent("content");
1036
915
  return (
1037
916
  // eslint-disable-next-line react-hooks/static-components -- ContentWrapper comes from the grid's component registry (a store lookup), so it is the same component on every render; the rule cannot see through the lookup.
1038
- /* @__PURE__ */ p(l, { children: /* @__PURE__ */ D(
1039
- Tt,
917
+ /* @__PURE__ */ f(m, { children: /* @__PURE__ */ G(
918
+ Ft,
1040
919
  {
1041
- stickyHeader: s,
1042
- containerClassName: T.tableWrapper,
1043
- className: N(T.table, sn[r], e && T.tableBordered),
920
+ stickyHeader: a,
921
+ containerClassName: B.tableWrapper,
922
+ className: H(B.table, Xe[s], e && B.tableBordered),
1044
923
  children: [
1045
- /* @__PURE__ */ p(rn, {}),
1046
- /* @__PURE__ */ p(ct, { slots: n }),
1047
- /* @__PURE__ */ p(Qe, {}),
1048
- /* @__PURE__ */ p(ct, { slots: o })
924
+ /* @__PURE__ */ f(qe, {}),
925
+ /* @__PURE__ */ f(ct, { slots: n }),
926
+ /* @__PURE__ */ f(ze, {}),
927
+ /* @__PURE__ */ f(ct, { slots: o })
1049
928
  ]
1050
929
  }
1051
930
  ) })
1052
931
  );
1053
932
  }
1054
- function M(t) {
1055
- return "columns" in t && Array.isArray(t.columns);
1056
- }
1057
- const cn = /^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/;
1058
- function ln(t, e, n) {
1059
- const o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1060
- let s = !1;
933
+ const Ze = /^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/;
934
+ function tn(t, e, n) {
935
+ const o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
936
+ let a = !1;
1061
937
  return {
1062
- initializeColumns: S,
1063
- useVisibleColumns: m
938
+ initializeColumns: p,
939
+ useVisibleColumns: y
1064
940
  };
1065
- function l(i) {
1066
- if (!cn.test(i))
1067
- throw new Error(`Column id "${i}" must be snake_case (e.g., "user_name", "is_active").`);
1068
- }
1069
- function g(i) {
1070
- return !i.headerTruncate || i.headerOverflow !== void 0 ? i : (process.env.NODE_ENV !== "production" && !r.has(i.id) && (r.add(i.id), console.warn(
1071
- `[DataGrid] Column "${i.id}": \`headerTruncate\` is deprecated, use \`headerOverflow: 'nowrap'\` instead. \`headerTruncate\` will be removed in a future release.`
1072
- )), { ...i, headerOverflow: "nowrap" });
1073
- }
1074
- function a(i, c) {
1075
- c !== "fixed" || process.env.NODE_ENV === "production" || i.width === "min-content" || [i.width, i.minWidth, i.maxWidth].filter(
1076
- (y) => y !== void 0
1077
- ).length <= 1 || o.has(i.id) || (o.add(i.id), console.warn(
1078
- `[DataGrid] Column "${i.id}": width, minWidth, and maxWidth cannot all apply under tableLayout="fixed" -- they collapse to a single track (width wins when set). Use tableLayout="auto" for independent min/max constraints, or drop the extra prop(s).`
941
+ function m(r) {
942
+ if (!Ze.test(r))
943
+ throw new Error(`Column id "${r}" must be snake_case (e.g., "user_name", "is_active").`);
944
+ }
945
+ function g(r) {
946
+ return !r.headerTruncate || r.headerOverflow !== void 0 ? r : (process.env.NODE_ENV !== "production" && !s.has(r.id) && (s.add(r.id), console.warn(
947
+ `[DataGrid] Column "${r.id}": \`headerTruncate\` is deprecated, use \`headerOverflow: 'nowrap'\` instead. \`headerTruncate\` will be removed in a future release.`
948
+ )), { ...r, headerOverflow: "nowrap" });
949
+ }
950
+ function c(r, i) {
951
+ i !== "fixed" || process.env.NODE_ENV === "production" || r.width === "min-content" || [r.width, r.minWidth, r.maxWidth].filter(
952
+ (h) => h !== void 0
953
+ ).length <= 1 || o.has(r.id) || (o.add(r.id), console.warn(
954
+ `[DataGrid] Column "${r.id}": width, minWidth, and maxWidth cannot all apply under tableLayout="fixed" -- they collapse to a single track (width wins when set). Use tableLayout="auto" for independent min/max constraints, or drop the extra prop(s).`
1079
955
  ));
1080
956
  }
1081
- function f(i, c) {
1082
- c !== "auto" || process.env.NODE_ENV === "production" || s || i.length === 0 || !i.every(
1083
- (y) => y.width !== void 0 || y.maxWidth !== void 0
1084
- ) || (s = !0, console.warn(
957
+ function d(r, i) {
958
+ i !== "auto" || process.env.NODE_ENV === "production" || a || r.length === 0 || !r.every(
959
+ (h) => h.width !== void 0 || h.maxWidth !== void 0
960
+ ) || (a = !0, console.warn(
1085
961
  '[DataGrid] Every column has a width or maxWidth under tableLayout="auto" -- if the container is wider than their sum, the browser will grow columns past their caps and capped content will show trailing blank space. Leave at least one column without a width/maxWidth to absorb the extra space.'
1086
962
  ));
1087
963
  }
1088
- function d(i) {
1089
- const c = [];
1090
- for (const h of i)
1091
- if (M(h))
1092
- for (const y of h.columns)
1093
- c.push(g({ ...y, groupId: h.id }));
964
+ function l(r) {
965
+ const i = [];
966
+ for (const S of r)
967
+ if (D(S))
968
+ for (const h of S.columns)
969
+ i.push(g({ ...h, groupId: S.id }));
1094
970
  else
1095
- c.push(g(h));
1096
- return c;
971
+ i.push(g(S));
972
+ return i;
1097
973
  }
1098
- function u(i) {
1099
- const c = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set();
1100
- function y(C) {
1101
- c.set(C.id, C.visible ?? !0), C.visibleToggleDisabled && h.add(C.id);
974
+ function u(r) {
975
+ const i = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Set();
976
+ function h(C) {
977
+ i.set(C.id, C.visible ?? !0), C.visibleToggleDisabled && S.add(C.id);
1102
978
  }
1103
- for (const C of i)
1104
- if (M(C))
1105
- for (const b of C.columns)
1106
- y(b);
979
+ for (const C of r)
980
+ if (D(C))
981
+ for (const w of C.columns)
982
+ h(w);
1107
983
  else
1108
- y(C);
1109
- for (const [C, b] of Object.entries((n == null ? void 0 : n.read()) ?? {}))
1110
- c.has(C) && !h.has(C) && c.set(C, b);
1111
- return c;
984
+ h(C);
985
+ for (const [C, w] of Object.entries((n == null ? void 0 : n.read()) ?? {}))
986
+ i.has(C) && !S.has(C) && i.set(C, w);
987
+ return i;
1112
988
  }
1113
- function m() {
989
+ function y() {
1114
990
  return t(
1115
- Y((i) => {
1116
- const c = i.flatColumns.filter((h) => i.columnVisibility.get(h.id) !== !1);
1117
- return e.getOrderedColumnsWithSticky(c, i.columnSticky);
991
+ J((r) => {
992
+ const i = r.flatColumns.filter((S) => r.columnVisibility.get(S.id) !== !1);
993
+ return e.getOrderedColumnsWithSticky(i, r.columnSticky);
1118
994
  })
1119
995
  );
1120
996
  }
1121
- function S(i) {
1122
- const c = d(i), { tableLayout: h } = t.getState();
1123
- for (const y of c)
1124
- l(y.id), a(y, h);
1125
- return f(c, h), {
1126
- columns: i,
1127
- flatColumns: c,
1128
- columnVisibility: u(i)
997
+ function p(r) {
998
+ const i = l(r), { tableLayout: S } = t.getState();
999
+ for (const h of i)
1000
+ m(h.id), c(h, S);
1001
+ return d(i, S), {
1002
+ columns: r,
1003
+ flatColumns: i,
1004
+ columnVisibility: u(r)
1129
1005
  };
1130
1006
  }
1131
1007
  }
1132
- const dn = "columnVisibility";
1133
- function un(t) {
1008
+ const en = "columnVisibility";
1009
+ function nn(t) {
1134
1010
  if (!t.config.persistentColumnVisibility) return;
1135
1011
  const e = t.persistentState.registerPersistentState(
1136
- dn,
1012
+ en,
1137
1013
  { storage: "localStorage" }
1138
1014
  );
1139
1015
  return { read: n, record: o };
1140
1016
  function n() {
1141
- var s;
1142
- const r = (s = e.value) == null ? void 0 : s.columns;
1143
- return typeof r != "object" || r === null || Array.isArray(r) ? {} : Object.fromEntries(
1144
- Object.entries(r).filter(([, l]) => typeof l == "boolean")
1017
+ var a;
1018
+ const s = (a = e.value) == null ? void 0 : a.columns;
1019
+ return typeof s != "object" || s === null || Array.isArray(s) ? {} : Object.fromEntries(
1020
+ Object.entries(s).filter(([, m]) => typeof m == "boolean")
1145
1021
  );
1146
1022
  }
1147
- function o(r, s) {
1148
- e.setValue({ columns: { ...n(), [r]: s } });
1023
+ function o(s, a) {
1024
+ e.setValue({ columns: { ...n(), [s]: a } });
1149
1025
  }
1150
1026
  }
1151
- function fn(t) {
1027
+ function on(t) {
1152
1028
  const e = /* @__PURE__ */ new Set();
1153
1029
  return {
1154
1030
  registerExtraColumn: n,
1155
- updateExtraColumnWidth: r,
1156
- updateExtraColumnOrder: s,
1157
- updateExtraColumnSticky: l,
1031
+ updateExtraColumnWidth: s,
1032
+ updateExtraColumnOrder: a,
1033
+ updateExtraColumnSticky: m,
1158
1034
  useExtraColumns: g
1159
1035
  };
1160
- function n(a) {
1161
- const f = t.getState(), d = a.position ?? "end", u = d === "start" ? f.extraColumnsStart : f.extraColumnsEnd, m = a.order ?? (u.length + 1) * 10, S = {
1162
- id: a.id ?? Math.random().toString(36).slice(2),
1163
- header: a.header,
1164
- body: a.body,
1165
- width: a.width,
1166
- sticky: a.sticky,
1167
- ignoreRowClick: a.ignoreRowClick,
1168
- order: m,
1169
- position: d
1170
- }, i = [...u, S].sort((c, h) => c.order - h.order);
1171
- d === "start" ? (o(S.id, S.sticky), t.setState({ extraColumnsStart: i })) : t.setState({ extraColumnsEnd: i });
1172
- }
1173
- function o(a, f) {
1174
- process.env.NODE_ENV !== "production" && f && (e.has(a) || (e.add(a), console.warn(
1175
- `[DataGrid] Extra column "${a}": \`sticky\` pins to the table's inline-end edge and is read only for columns at the \`end\` position -- on a \`start\` column it does nothing. Drop the flag, or register the column at the \`end\` position.`
1036
+ function n(c) {
1037
+ const d = t.getState(), l = c.position ?? "end", u = l === "start" ? d.extraColumnsStart : d.extraColumnsEnd, y = c.order ?? (u.length + 1) * 10, p = {
1038
+ id: c.id ?? Math.random().toString(36).slice(2),
1039
+ header: c.header,
1040
+ body: c.body,
1041
+ width: c.width,
1042
+ sticky: c.sticky,
1043
+ ignoreRowClick: c.ignoreRowClick,
1044
+ order: y,
1045
+ position: l
1046
+ }, r = [...u, p].sort((i, S) => i.order - S.order);
1047
+ l === "start" ? (o(p.id, p.sticky), t.setState({ extraColumnsStart: r })) : t.setState({ extraColumnsEnd: r });
1048
+ }
1049
+ function o(c, d) {
1050
+ process.env.NODE_ENV !== "production" && d && (e.has(c) || (e.add(c), console.warn(
1051
+ `[DataGrid] Extra column "${c}": \`sticky\` pins to the table's inline-end edge and is read only for columns at the \`end\` position -- on a \`start\` column it does nothing. Drop the flag, or register the column at the \`end\` position.`
1176
1052
  )));
1177
1053
  }
1178
- function r(a, f) {
1179
- const d = t.getState();
1180
- function u(i) {
1181
- const c = i.findIndex((y) => y.id === a);
1182
- if (c === -1) return;
1183
- const h = [...i];
1184
- return h[c] = { ...h[c], width: f }, h;
1054
+ function s(c, d) {
1055
+ const l = t.getState();
1056
+ function u(r) {
1057
+ const i = r.findIndex((h) => h.id === c);
1058
+ if (i === -1) return;
1059
+ const S = [...r];
1060
+ return S[i] = { ...S[i], width: d }, S;
1185
1061
  }
1186
- const m = u(d.extraColumnsStart);
1187
- if (m) {
1188
- t.setState({ extraColumnsStart: m });
1062
+ const y = u(l.extraColumnsStart);
1063
+ if (y) {
1064
+ t.setState({ extraColumnsStart: y });
1189
1065
  return;
1190
1066
  }
1191
- const S = u(d.extraColumnsEnd);
1192
- S && t.setState({ extraColumnsEnd: S });
1193
- }
1194
- function s(a, f) {
1195
- const d = t.getState();
1196
- function u(i) {
1197
- const c = i.findIndex((y) => y.id === a);
1198
- if (c === -1) return;
1199
- const h = [...i];
1200
- return h[c] = { ...h[c], order: f }, h.sort((y, C) => y.order - C.order);
1067
+ const p = u(l.extraColumnsEnd);
1068
+ p && t.setState({ extraColumnsEnd: p });
1069
+ }
1070
+ function a(c, d) {
1071
+ const l = t.getState();
1072
+ function u(r) {
1073
+ const i = r.findIndex((h) => h.id === c);
1074
+ if (i === -1) return;
1075
+ const S = [...r];
1076
+ return S[i] = { ...S[i], order: d }, S.sort((h, C) => h.order - C.order);
1201
1077
  }
1202
- const m = u(d.extraColumnsStart);
1203
- if (m) {
1204
- t.setState({ extraColumnsStart: m });
1078
+ const y = u(l.extraColumnsStart);
1079
+ if (y) {
1080
+ t.setState({ extraColumnsStart: y });
1205
1081
  return;
1206
1082
  }
1207
- const S = u(d.extraColumnsEnd);
1208
- S && t.setState({ extraColumnsEnd: S });
1083
+ const p = u(l.extraColumnsEnd);
1084
+ p && t.setState({ extraColumnsEnd: p });
1209
1085
  }
1210
- function l(a, f) {
1211
- const d = t.getState(), u = d.extraColumnsStart.some((h) => h.id === a), m = u ? "extraColumnsStart" : "extraColumnsEnd", S = d[m], i = S.findIndex((h) => h.id === a);
1212
- if (i === -1 || (u && o(a, f), (S[i].sticky ?? !1) === f)) return;
1213
- const c = [...S];
1214
- c[i] = { ...c[i], sticky: f }, t.setState({ [m]: c });
1086
+ function m(c, d) {
1087
+ const l = t.getState(), u = l.extraColumnsStart.some((S) => S.id === c), y = u ? "extraColumnsStart" : "extraColumnsEnd", p = l[y], r = p.findIndex((S) => S.id === c);
1088
+ if (r === -1 || (u && o(c, d), (p[r].sticky ?? !1) === d)) return;
1089
+ const i = [...p];
1090
+ i[r] = { ...i[r], sticky: d }, t.setState({ [y]: i });
1215
1091
  }
1216
- function g(a) {
1217
- return t((f) => a === "start" ? f.extraColumnsStart : f.extraColumnsEnd);
1092
+ function g(c) {
1093
+ return t((d) => c === "start" ? d.extraColumnsStart : d.extraColumnsEnd);
1218
1094
  }
1219
1095
  }
1220
- function pn(t, e, n) {
1096
+ function rn(t, e, n) {
1221
1097
  const o = [];
1222
- let r = null, s = null;
1098
+ let s = null, a = null;
1223
1099
  return {
1224
- useHasGroups: d,
1100
+ useHasGroups: l,
1225
1101
  useFirstRowHeaderCells: u,
1226
- useSecondRowHeaderColumns: m
1102
+ useSecondRowHeaderColumns: y
1227
1103
  };
1228
- function l() {
1229
- const S = t.getState(), i = S.flatColumns.filter((c) => S.columnVisibility.get(c.id) !== !1);
1230
- return e.getOrderedColumnsWithSticky(i, S.columnSticky);
1104
+ function m() {
1105
+ const p = t.getState(), r = p.flatColumns.filter((i) => p.columnVisibility.get(i.id) !== !1);
1106
+ return e.getOrderedColumnsWithSticky(r, p.columnSticky);
1231
1107
  }
1232
1108
  function g() {
1233
- return t.getState().columns.some(M);
1109
+ return t.getState().columns.some(D);
1234
1110
  }
1235
- function a() {
1236
- const S = t.getState(), i = l();
1111
+ function c() {
1112
+ const p = t.getState(), r = m();
1237
1113
  if (!g()) {
1238
- const y = S.components.get("header-cell") ?? n.get("header-cell");
1239
- return i.map((C) => ({
1114
+ const h = p.components.get("header-cell") ?? n.get("header-cell");
1115
+ return r.map((C) => ({
1240
1116
  type: "column",
1241
1117
  item: C,
1242
- component: y
1118
+ component: h
1243
1119
  }));
1244
1120
  }
1245
- const c = new Map(i.map((y, C) => [y.id, C]));
1246
- return [...S.columns].sort((y, C) => {
1247
- const b = M(y) ? Math.min(...y.columns.map((_) => c.get(_.id) ?? 1 / 0)) : c.get(y.id) ?? 1 / 0, v = M(C) ? Math.min(...C.columns.map((_) => c.get(_.id) ?? 1 / 0)) : c.get(C.id) ?? 1 / 0;
1248
- return b - v;
1249
- }).flatMap((y) => {
1250
- if (M(y)) {
1251
- const C = y.columns.filter(
1252
- (b) => S.columnVisibility.get(b.id) !== !1
1121
+ const i = new Map(r.map((h, C) => [h.id, C]));
1122
+ return [...p.columns].sort((h, C) => {
1123
+ const w = D(h) ? Math.min(...h.columns.map((_) => i.get(_.id) ?? 1 / 0)) : i.get(h.id) ?? 1 / 0, k = D(C) ? Math.min(...C.columns.map((_) => i.get(_.id) ?? 1 / 0)) : i.get(C.id) ?? 1 / 0;
1124
+ return w - k;
1125
+ }).flatMap((h) => {
1126
+ if (D(h)) {
1127
+ const C = h.columns.filter(
1128
+ (w) => p.columnVisibility.get(w.id) !== !1
1253
1129
  ).length;
1254
1130
  return C === 0 ? [] : {
1255
1131
  type: "group",
1256
- item: y,
1257
- component: S.components.get("header-group") ?? n.get("header-group"),
1132
+ item: h,
1133
+ component: p.components.get("header-group") ?? n.get("header-group"),
1258
1134
  colspan: C
1259
1135
  };
1260
1136
  }
1261
- return S.columnVisibility.get(y.id) === !1 ? [] : {
1137
+ return p.columnVisibility.get(h.id) === !1 ? [] : {
1262
1138
  type: "column",
1263
- item: y,
1264
- component: S.components.get("header-cell") ?? n.get("header-cell"),
1139
+ item: h,
1140
+ component: p.components.get("header-cell") ?? n.get("header-cell"),
1265
1141
  rowspan: 2
1266
1142
  };
1267
1143
  });
1268
1144
  }
1269
- function f() {
1145
+ function d() {
1270
1146
  if (!g()) return o;
1271
- const S = t.getState();
1272
- return l().filter((c) => c.groupId && S.columnVisibility.get(c.id) !== !1);
1147
+ const p = t.getState();
1148
+ return m().filter((i) => i.groupId && p.columnVisibility.get(i.id) !== !1);
1273
1149
  }
1274
- function d() {
1275
- return t((S) => S.columns.some(M));
1150
+ function l() {
1151
+ return t((p) => p.columns.some(D));
1276
1152
  }
1277
1153
  function u() {
1278
- return t((S) => {
1279
- if (r !== null && r.state === S)
1280
- return r.result;
1281
- const i = a();
1282
- return r = { state: S, result: i }, i;
1154
+ return t((p) => {
1155
+ if (s !== null && s.state === p)
1156
+ return s.result;
1157
+ const r = c();
1158
+ return s = { state: p, result: r }, r;
1283
1159
  });
1284
1160
  }
1285
- function m() {
1286
- return t((S) => {
1287
- if (s !== null && s.state === S)
1288
- return s.result;
1289
- const i = f();
1290
- return s = { state: S, result: i }, i;
1161
+ function y() {
1162
+ return t((p) => {
1163
+ if (a !== null && a.state === p)
1164
+ return a.result;
1165
+ const r = d();
1166
+ return a = { state: p, result: r }, r;
1291
1167
  });
1292
1168
  }
1293
1169
  }
1294
1170
  const lt = [];
1295
- function Sn(t) {
1171
+ function sn(t) {
1296
1172
  return {
1297
1173
  registerSlot: e,
1298
1174
  useSlots: n
1299
1175
  };
1300
- function e(o, r) {
1301
- const s = t.getState(), l = Math.random().toString(36).slice(2), g = s.slots.get(o) ?? lt, a = r.order ?? (g.length + 1) * 10, f = {
1302
- id: l,
1176
+ function e(o, s) {
1177
+ const a = t.getState(), m = Math.random().toString(36).slice(2), g = a.slots.get(o) ?? lt, c = s.order ?? (g.length + 1) * 10, d = {
1178
+ id: m,
1303
1179
  name: o,
1304
- component: r.component,
1305
- order: a
1306
- }, d = [...g, f].sort((m, S) => m.order - S.order), u = new Map(s.slots);
1307
- u.set(o, d), t.setState({ slots: u });
1180
+ component: s.component,
1181
+ order: c
1182
+ }, l = [...g, d].sort((y, p) => y.order - p.order), u = new Map(a.slots);
1183
+ u.set(o, l), t.setState({ slots: u });
1308
1184
  }
1309
1185
  function n(o) {
1310
- return t(Y((r) => r.slots.get(o) ?? lt));
1186
+ return t(J((s) => s.slots.get(o) ?? lt));
1311
1187
  }
1312
1188
  }
1313
- const mn = /^\s*(\d+(?:\.\d+)?)px\s*$/;
1314
- function hn(t) {
1189
+ const an = /^\s*(\d+(?:\.\d+)?)px\s*$/;
1190
+ function cn(t) {
1315
1191
  return {
1316
1192
  initializeStickyState: e,
1317
1193
  getOrderedColumnsWithSticky: n,
1318
1194
  onResizeColumn: o,
1319
- isColumnSticky: r,
1320
- isGroupSticky: s,
1321
- useColumnStickyOffset: l,
1195
+ isColumnSticky: s,
1196
+ isGroupSticky: a,
1197
+ useColumnStickyOffset: m,
1322
1198
  useColumnEndStickyOffset: g,
1323
- useGroupStickyOffset: a
1199
+ useGroupStickyOffset: c
1324
1200
  };
1325
- function e(d) {
1326
- const u = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
1327
- for (const S of d)
1328
- if (M(S)) {
1329
- m.set(S.id, S.sticky ?? !1);
1330
- for (const i of S.columns)
1331
- u.set(i.id, i.sticky ?? S.sticky ?? !1);
1201
+ function e(l) {
1202
+ const u = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
1203
+ for (const p of l)
1204
+ if (D(p)) {
1205
+ y.set(p.id, p.sticky ?? !1);
1206
+ for (const r of p.columns)
1207
+ u.set(r.id, r.sticky ?? p.sticky ?? !1);
1332
1208
  } else
1333
- u.set(S.id, S.sticky ?? !1);
1334
- return { columnSticky: u, groupSticky: m };
1209
+ u.set(p.id, p.sticky ?? !1);
1210
+ return { columnSticky: u, groupSticky: y };
1335
1211
  }
1336
- function n(d, u) {
1337
- const m = [], S = [];
1338
- for (const i of d)
1339
- u.get(i.id) ? m.push(i) : S.push(i);
1340
- return [...m, ...S];
1212
+ function n(l, u) {
1213
+ const y = [], p = [];
1214
+ for (const r of l)
1215
+ u.get(r.id) ? y.push(r) : p.push(r);
1216
+ return [...y, ...p];
1341
1217
  }
1342
- function o(d, u) {
1343
- const m = t.getState().columnWidths;
1344
- if (m.get(d) === u) return;
1345
- const S = new Map(m);
1346
- S.set(d, u), t.setState({ columnWidths: S });
1218
+ function o(l, u) {
1219
+ const y = t.getState().columnWidths;
1220
+ if (y.get(l) === u) return;
1221
+ const p = new Map(y);
1222
+ p.set(l, u), t.setState({ columnWidths: p });
1347
1223
  }
1348
- function r(d) {
1349
- return t.getState().columnSticky.get(d) === !0;
1224
+ function s(l) {
1225
+ return t.getState().columnSticky.get(l) === !0;
1350
1226
  }
1351
- function s(d) {
1352
- return t.getState().groupSticky.get(d) === !0;
1227
+ function a(l) {
1228
+ return t.getState().groupSticky.get(l) === !0;
1353
1229
  }
1354
- function l(d) {
1230
+ function m(l) {
1355
1231
  return t((u) => {
1356
- if (!u.columnSticky.get(d)) return;
1357
- let m = f(u);
1358
- const S = u.flatColumns.filter((i) => u.columnVisibility.get(i.id) !== !1);
1359
- for (const i of S) {
1360
- if (i.id === d) break;
1361
- u.columnSticky.get(i.id) && (m += u.columnWidths.get(i.id) ?? 0);
1232
+ if (!u.columnSticky.get(l)) return ln(u, l);
1233
+ let y = d(u);
1234
+ const p = u.flatColumns.filter((r) => u.columnVisibility.get(r.id) !== !1);
1235
+ for (const r of p) {
1236
+ if (r.id === l) break;
1237
+ u.columnSticky.get(r.id) && (y += u.columnWidths.get(r.id) ?? 0);
1362
1238
  }
1363
- return m;
1239
+ return y;
1364
1240
  });
1365
1241
  }
1366
- function g(d) {
1367
- return t((u) => yn(u, d));
1242
+ function g(l) {
1243
+ return t((u) => dn(u, l));
1368
1244
  }
1369
- function a(d) {
1245
+ function c(l) {
1370
1246
  return t((u) => {
1371
- if (!u.groupSticky.get(d)) return;
1372
- let m = f(u);
1373
- const S = u.flatColumns.filter((i) => u.columnVisibility.get(i.id) !== !1);
1374
- for (const i of S) {
1375
- if (i.groupId === d) break;
1376
- u.columnSticky.get(i.id) && (m += u.columnWidths.get(i.id) ?? 0);
1247
+ if (!u.groupSticky.get(l)) return;
1248
+ let y = d(u);
1249
+ const p = u.flatColumns.filter((r) => u.columnVisibility.get(r.id) !== !1);
1250
+ for (const r of p) {
1251
+ if (r.groupId === l) break;
1252
+ u.columnSticky.get(r.id) && (y += u.columnWidths.get(r.id) ?? 0);
1377
1253
  }
1378
- return m;
1254
+ return y;
1379
1255
  });
1380
1256
  }
1381
- function f(d) {
1257
+ function d(l) {
1382
1258
  let u = 0;
1383
- for (const m of d.extraColumnsStart)
1384
- m.width && (u += parseInt(m.width, 10) || 0);
1259
+ for (const y of l.extraColumnsStart)
1260
+ u += wt(y);
1385
1261
  return u;
1386
1262
  }
1387
1263
  }
1388
- function yn(t, e) {
1264
+ function wt(t) {
1265
+ return t.width && parseInt(t.width, 10) || 0;
1266
+ }
1267
+ function ln(t, e) {
1268
+ if (!t.extraColumnsStart.some((o) => o.id === e) || !un(t))
1269
+ return;
1270
+ let n = 0;
1271
+ for (const o of t.extraColumnsStart) {
1272
+ if (o.id === e) return n;
1273
+ n += wt(o);
1274
+ }
1275
+ }
1276
+ function un(t) {
1277
+ const e = (n) => t.columnVisibility.get(n.id) !== !1;
1278
+ return t.flatColumns.some((n) => e(n) && t.columnSticky.get(n.id)) || t.columns.some(
1279
+ (n) => D(n) && t.groupSticky.get(n.id) && n.columns.some(e)
1280
+ );
1281
+ }
1282
+ function dn(t, e) {
1389
1283
  let n = 0;
1390
1284
  for (let o = t.extraColumnsEnd.length - 1; o >= 0; o--) {
1391
- const r = t.extraColumnsEnd[o];
1392
- if (r.sticky) {
1393
- if (r.id === e) return n;
1394
- n += gn(t, r);
1285
+ const s = t.extraColumnsEnd[o];
1286
+ if (s.sticky) {
1287
+ if (s.id === e) return n;
1288
+ n += fn(t, s);
1395
1289
  }
1396
1290
  }
1397
1291
  }
1398
- function gn(t, e) {
1292
+ function fn(t, e) {
1399
1293
  const n = t.columnWidths.get(e.id);
1400
1294
  if (n !== void 0) return n;
1401
- const o = mn.exec(e.width ?? "");
1295
+ const o = an.exec(e.width ?? "");
1402
1296
  return o ? Number(o[1]) : 0;
1403
1297
  }
1404
- function Cn() {
1405
- return z(() => ({
1298
+ function pn() {
1299
+ return P(() => ({
1406
1300
  columns: [],
1407
1301
  flatColumns: [],
1408
1302
  columnVisibility: /* @__PURE__ */ new Map(),
@@ -1418,130 +1312,134 @@ function Cn() {
1418
1312
  stickyHeader: !1
1419
1313
  }));
1420
1314
  }
1421
- function wn(t) {
1422
- const e = Cn(), n = bn();
1315
+ function mn(t) {
1316
+ const e = pn(), n = Sn();
1423
1317
  t.layout.registerSlot("main", {
1424
- id: q,
1425
- component: an,
1318
+ id: Z,
1319
+ component: Qe,
1426
1320
  active: !0,
1427
- icon: At
1321
+ icon: It
1428
1322
  });
1429
- const o = Sn(e), r = fn(e), s = hn(e), l = un(t), g = ln(e, s, l), a = pn(e, s, n), f = tn(e), d = {
1323
+ const o = sn(e), s = on(e), a = cn(e), m = nn(t), g = tn(e, a, m), c = rn(e, a, n), d = Ke(e), l = {
1430
1324
  registerTableSlot: o.registerSlot,
1431
- registerExtraColumn: r.registerExtraColumn,
1432
- updateExtraColumnWidth: r.updateExtraColumnWidth,
1433
- updateExtraColumnOrder: r.updateExtraColumnOrder,
1434
- updateExtraColumnSticky: r.updateExtraColumnSticky,
1325
+ registerExtraColumn: s.registerExtraColumn,
1326
+ updateExtraColumnWidth: s.updateExtraColumnWidth,
1327
+ updateExtraColumnOrder: s.updateExtraColumnOrder,
1328
+ updateExtraColumnSticky: s.updateExtraColumnSticky,
1435
1329
  registerComponent: C,
1436
1330
  updateColumns: u,
1437
- updateColumnVisibility: m,
1438
- updateColumnSticky: y,
1439
- updateTableLayout: S,
1440
- updateStickyHeader: c
1331
+ updateColumnVisibility: y,
1332
+ updateColumnSticky: h,
1333
+ updateTableLayout: p,
1334
+ updateStickyHeader: i
1441
1335
  };
1442
- return t.plugins.registerPublicApi(d), {
1443
- ...d,
1336
+ return t.plugins.registerPublicApi(l), {
1337
+ ...l,
1444
1338
  updateColumns: u,
1445
- useComponent: b,
1339
+ useComponent: w,
1446
1340
  useConfigurationColumns: _,
1447
- useTableLayout: i,
1448
- useStickyHeader: h,
1341
+ useTableLayout: r,
1342
+ useStickyHeader: S,
1449
1343
  ...o,
1450
- ...r,
1451
1344
  ...s,
1452
- ...g,
1453
1345
  ...a,
1454
- ...f
1346
+ ...g,
1347
+ ...c,
1348
+ ...d
1455
1349
  };
1456
- function u(w) {
1457
- const x = g.initializeColumns(w), { columnSticky: L, groupSticky: E } = s.initializeStickyState(w), k = e.getState();
1350
+ function u(b) {
1351
+ const x = g.initializeColumns(b), { columnSticky: E, groupSticky: L } = a.initializeStickyState(b), v = e.getState();
1458
1352
  e.setState({
1459
1353
  ...x,
1460
- columnSticky: L,
1461
- groupSticky: E,
1462
- extraColumnsStart: k.extraColumnsStart,
1463
- extraColumnsEnd: k.extraColumnsEnd,
1464
- slots: k.slots,
1465
- components: k.components,
1466
- columnWidths: k.columnWidths,
1467
- minContentWidths: k.minContentWidths
1354
+ columnSticky: E,
1355
+ groupSticky: L,
1356
+ extraColumnsStart: v.extraColumnsStart,
1357
+ extraColumnsEnd: v.extraColumnsEnd,
1358
+ slots: v.slots,
1359
+ components: v.components,
1360
+ columnWidths: v.columnWidths,
1361
+ minContentWidths: v.minContentWidths
1468
1362
  });
1469
1363
  }
1470
- function m(w, x) {
1471
- const L = e.getState(), E = new Map(L.columnVisibility);
1472
- E.set(w, x), e.setState({ columnVisibility: E }), l == null || l.record(w, x);
1473
- }
1474
- function S(w) {
1475
- e.setState({ tableLayout: w });
1364
+ function y(b, x) {
1365
+ const E = e.getState(), L = new Map(E.columnVisibility);
1366
+ L.set(b, x), e.setState({ columnVisibility: L }), m == null || m.record(b, x);
1476
1367
  }
1477
- function i() {
1478
- return e((w) => w.tableLayout);
1368
+ function p(b) {
1369
+ e.setState({ tableLayout: b });
1479
1370
  }
1480
- function c(w) {
1481
- e.setState({ stickyHeader: w });
1482
- }
1483
- function h() {
1484
- return e((w) => w.stickyHeader);
1485
- }
1486
- function y(w, x) {
1487
- const L = e.getState();
1488
- if (L.columns.some((k) => M(k) && k.id === w)) {
1489
- const k = new Map(L.groupSticky);
1490
- k.set(w, x), e.setState({ groupSticky: k });
1371
+ function r() {
1372
+ return e((b) => b.tableLayout);
1373
+ }
1374
+ function i(b) {
1375
+ e.setState({ stickyHeader: b });
1376
+ }
1377
+ function S() {
1378
+ return e((b) => b.stickyHeader);
1379
+ }
1380
+ function h(b, x) {
1381
+ const E = e.getState();
1382
+ if (E.columns.some((v) => D(v) && v.id === b)) {
1383
+ const v = E.columns.find((A) => D(A) && A.id === b), T = new Map(E.groupSticky);
1384
+ T.set(b, x);
1385
+ const I = new Map(E.columnSticky);
1386
+ if (v && D(v))
1387
+ for (const A of v.columns) I.set(A.id, x);
1388
+ e.setState({ groupSticky: T, columnSticky: I });
1491
1389
  } else {
1492
- const k = new Map(L.columnSticky);
1493
- k.set(w, x), e.setState({ columnSticky: k });
1390
+ const v = new Map(E.columnSticky);
1391
+ v.set(b, x), e.setState({ columnSticky: v });
1494
1392
  }
1495
1393
  }
1496
- function C(w, x) {
1497
- const L = e.getState(), E = new Map(L.components);
1498
- E.set(w, x), e.setState({ components: E });
1394
+ function C(b, x) {
1395
+ const E = e.getState(), L = new Map(E.components);
1396
+ L.set(b, x), e.setState({ components: L });
1499
1397
  }
1500
- function b(w) {
1398
+ function w(b) {
1501
1399
  return e(
1502
- (x) => x.components.get(w) ?? n.get(w)
1400
+ (x) => x.components.get(b) ?? n.get(b)
1503
1401
  );
1504
1402
  }
1505
- function v(w) {
1506
- return typeof w == "function" ? w() : w;
1403
+ function k(b) {
1404
+ return typeof b == "function" ? b() : b;
1507
1405
  }
1508
1406
  function _() {
1509
- const { columns: w, columnVisibility: x, columnSticky: L, groupSticky: E } = e(
1510
- Y((k) => ({
1511
- columns: k.columns,
1512
- columnVisibility: k.columnVisibility,
1513
- columnSticky: k.columnSticky,
1514
- groupSticky: k.groupSticky
1407
+ const { columns: b, columnVisibility: x, columnSticky: E, groupSticky: L } = e(
1408
+ J((v) => ({
1409
+ columns: v.columns,
1410
+ columnVisibility: v.columnVisibility,
1411
+ columnSticky: v.columnSticky,
1412
+ groupSticky: v.groupSticky
1515
1413
  }))
1516
1414
  );
1517
- return It(() => {
1518
- const k = Array.from(x.values()).filter(Boolean).length;
1519
- function Z(I) {
1520
- const tt = x.get(I.id) ?? !0;
1415
+ return vt(() => {
1416
+ const v = Array.from(x.values()).filter(Boolean).length;
1417
+ function T(I) {
1418
+ const A = x.get(I.id) ?? !0;
1521
1419
  return {
1522
1420
  id: I.id,
1523
- label: v(I.label),
1524
- visible: tt,
1525
- sticky: L.get(I.id) ?? !1,
1526
- visibleToggleDisabled: I.visibleToggleDisabled ?? (tt && k === 1)
1421
+ label: k(I.label),
1422
+ visible: A,
1423
+ sticky: E.get(I.id) ?? !1,
1424
+ visibleToggleDisabled: I.visibleToggleDisabled ?? (A && v === 1)
1527
1425
  };
1528
1426
  }
1529
- return w.map((I) => M(I) ? {
1427
+ return b.map((I) => D(I) ? {
1530
1428
  id: I.id,
1531
- label: v(I.label),
1429
+ label: k(I.label),
1532
1430
  visible: I.visible ?? !0,
1533
- sticky: E.get(I.id) ?? !1,
1534
- columns: I.columns.map(Z)
1535
- } : Z(I));
1536
- }, [w, x, L, E]);
1431
+ sticky: L.get(I.id) ?? !1,
1432
+ columns: I.columns.map(T)
1433
+ } : T(I));
1434
+ }, [b, x, E, L]);
1537
1435
  }
1538
1436
  }
1539
- function bn() {
1437
+ function Sn() {
1540
1438
  const t = /* @__PURE__ */ new Map();
1541
- return t.set("body-cell-content", _e), t.set("content", Ee), t.set("header-cell-label", Le), t.set("header-group", bt), t.set("row", Be), t;
1439
+ return t.set("body-cell-content", Ge), t.set("content", Me), t.set("header-cell-label", Re), t.set("header-group", bt), t.set("row", He), t;
1542
1440
  }
1543
- function vn(t) {
1544
- const e = me(), n = {}, o = {
1441
+ function hn(t) {
1442
+ const e = be(), n = {}, o = {
1545
1443
  hooked: e,
1546
1444
  config: t,
1547
1445
  get plugins() {
@@ -1566,20 +1464,20 @@ function vn(t) {
1566
1464
  return W(n.table, "table");
1567
1465
  }
1568
1466
  };
1569
- return n.plugins = ke(o), n.core = pe(), n.load = we(o), n.storage = xe(o), n.persistentState = be(o), n.layout = ge(o), n.table = wn(o), {
1570
- init: s,
1571
- destroy: r,
1467
+ return n.plugins = Ie(o), n.core = Ce(), n.load = Ee(o), n.storage = De(o), n.persistentState = _e(o), n.layout = ke(o), n.table = mn(o), {
1468
+ init: a,
1469
+ destroy: s,
1572
1470
  ...o.plugins.pluginContext,
1573
1471
  [U]: o
1574
1472
  };
1575
- function r() {
1473
+ function s() {
1576
1474
  e.callHookSync("destroy");
1577
- const l = o.core.useLoadStateStore.getState().loadState === "loading" && o.load.getLoadInstances().length > 0;
1578
- o.load.abort(), l && o.core.resetLoadState();
1475
+ const m = o.core.useLoadStateStore.getState().loadState === "loading" && o.load.getLoadInstances().length > 0;
1476
+ o.load.abort(), m && o.core.resetLoadState();
1579
1477
  }
1580
- async function s() {
1581
- const { loadState: l } = o.core.useLoadStateStore.getState();
1582
- l === "loaded" || l === "loading" || await o.core.loadPromise(o.load.init());
1478
+ async function a() {
1479
+ const { loadState: m } = o.core.useLoadStateStore.getState();
1480
+ m === "loaded" || m === "loading" || await o.core.loadPromise(o.load.init());
1583
1481
  }
1584
1482
  }
1585
1483
  function W(t, e) {
@@ -1587,64 +1485,58 @@ function W(t, e) {
1587
1485
  throw new Error(`[DataGrid] The ${e} service was used before it was created.`);
1588
1486
  return t;
1589
1487
  }
1590
- function kn(t) {
1591
- const e = F(t);
1592
- return A(() => {
1593
- e.current = t;
1594
- }, [t]), e;
1595
- }
1596
- const xn = [];
1597
- function zn({
1488
+ const yn = [];
1489
+ function Hn({
1598
1490
  name: t,
1599
1491
  load: e,
1600
1492
  columns: n,
1601
1493
  children: o,
1602
- persistent: r,
1603
- persistentColumnVisibility: s,
1604
- tableLayout: l = "fixed",
1494
+ persistent: s,
1495
+ persistentColumnVisibility: a,
1496
+ tableLayout: m = "fixed",
1605
1497
  stickyHeader: g = !1,
1606
- loading: a = !1,
1607
- implicitFilterKeys: f
1498
+ loading: c = !1,
1499
+ implicitFilterKeys: d
1608
1500
  }) {
1609
- const d = kn(e), [u] = Dt(
1610
- () => vn({
1501
+ const l = Gt(e), [u] = ut(
1502
+ () => hn({
1611
1503
  name: t,
1612
- load: d,
1613
- persistent: r,
1614
- persistentColumnVisibility: s
1504
+ load: l,
1505
+ persistent: s,
1506
+ persistentColumnVisibility: a
1615
1507
  })
1616
1508
  );
1617
- return A(() => {
1618
- u.updateTableLayout(l);
1619
- }, [u, l]), A(() => {
1509
+ return R(() => {
1510
+ u.updateTableLayout(m);
1511
+ }, [u, m]), R(() => {
1620
1512
  u.updateColumns(n);
1621
- }, [u, n]), A(() => {
1513
+ }, [u, n]), R(() => {
1622
1514
  u.updateStickyHeader(g);
1623
- }, [u, g]), A(() => {
1624
- u[U].core.updateLoading(a);
1625
- }, [u, a]), A(() => {
1515
+ }, [u, g]), R(() => {
1516
+ u[U].core.updateLoading(c);
1517
+ }, [u, c]), R(() => {
1626
1518
  u[U].storage.updateImplicitFilterKeys(
1627
- f ?? xn
1519
+ d ?? yn
1628
1520
  );
1629
- }, [u, f]), /* @__PURE__ */ D(Rt, { value: u, children: [
1521
+ }, [u, d]), /* @__PURE__ */ G(xt, { value: u, children: [
1630
1522
  o,
1631
- /* @__PURE__ */ p(Gt, { fallback: /* @__PURE__ */ p(X, {}), children: /* @__PURE__ */ p(fe, {}) })
1523
+ /* @__PURE__ */ f(kt, { fallback: /* @__PURE__ */ f(Q, {}), children: /* @__PURE__ */ f(ge, {}) })
1632
1524
  ] });
1633
1525
  }
1634
- const Pn = {
1635
- table: q,
1636
- cards: yt
1526
+ const Nn = {
1527
+ table: Z,
1528
+ cards: gt
1637
1529
  };
1638
- function Tn() {
1639
- return H().layout.useLayoutStore((e) => e.activeSlotIds.get("main"));
1530
+ function Vn() {
1531
+ return O().layout.useLayoutStore((e) => e.activeSlotIds.get("main"));
1640
1532
  }
1641
1533
  export {
1642
- Pn as DATA_GRID_VIEW,
1643
- zn as DataGrid,
1644
- Bn as createDataGridPlugin,
1645
- B as useDataGrid,
1646
- Tn as useDataGridActiveView,
1647
- jn as useDataGridPluginContext,
1648
- Vn as useDataGridRecord
1534
+ Nn as DATA_GRID_VIEW,
1535
+ Hn as DataGrid,
1536
+ Fn as createDataGridPlugin,
1537
+ j as useDataGrid,
1538
+ Vn as useDataGridActiveView,
1539
+ Bn as useDataGridPluginContext,
1540
+ zn as useDataGridRecord
1649
1541
  };
1650
1542
  //# sourceMappingURL=data-grid.js.map