@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
@@ -2,13 +2,14 @@
2
2
 
3
3
  A server-driven data grid: a `DataGrid` that renders rows through the kit's
4
4
  `Table`, a `load(ctx)` callback that fetches them, a slot-based layout around
5
- the table, and plugins that add behavior (paging, search, sorting, a custom
6
- empty state) by registering into those slots and hooking the load. Each concern
5
+ the table, and plugins that add behavior (paging, search, sorting, filters, a
6
+ custom empty state) by registering into those slots and hooking the load. Each concern
7
7
  (load, layout, table, storage, persistence) is a service with its own store, and
8
8
  a plugin reaches all of them through one context object.
9
9
 
10
- Built-in plugins: pagination, text search, order and empty state, each its own
11
- entry (see below).
10
+ Built-in plugins: pagination, text search, order, filters, empty state, row number, row
11
+ click, actions, row actions, an actions menu, table configuration and row select, each its
12
+ own entry (see below).
12
13
 
13
14
  ## When to use
14
15
 
@@ -35,7 +36,15 @@ code or CSS:
35
36
  | `@gears-frontx/ui-kit/data-grid/pagination` | `DataGridPaginationPlugin` |
36
37
  | `@gears-frontx/ui-kit/data-grid/text-search` | `DataGridTextSearchPlugin` |
37
38
  | `@gears-frontx/ui-kit/data-grid/order` | `DataGridOrderPlugin`, `createDataGridOrderOption` |
39
+ | `@gears-frontx/ui-kit/data-grid/filters` | `DataGridFiltersPlugin`, the entity factories `filterSearch`, `filterToggle`, `filterCheckboxGroup`, `filterTagGroup`, `filterTree` and `filterDateRange`, `createDataGridTreeStructure` and `useDataGridTreeStructure` (the tree `filterTree` takes), and the types |
38
40
  | `@gears-frontx/ui-kit/data-grid/empty-state` | `DataGridEmptyStatePlugin` |
41
+ | `@gears-frontx/ui-kit/data-grid/row-number` | `DataGridRowNumberPlugin` |
42
+ | `@gears-frontx/ui-kit/data-grid/row-click` | `DataGridRowClickPlugin` |
43
+ | `@gears-frontx/ui-kit/data-grid/actions` | `DataGridActionsPlugin` |
44
+ | `@gears-frontx/ui-kit/data-grid/row-actions` | `DataGridRowActionsPlugin` |
45
+ | `@gears-frontx/ui-kit/data-grid/actions-menu` | `DataGridActionsMenuPlugin` |
46
+ | `@gears-frontx/ui-kit/data-grid/table-configuration` | `DataGridTableConfigurationPlugin` |
47
+ | `@gears-frontx/ui-kit/data-grid/row-select` | `DataGridRowSelectPlugin` |
39
48
 
40
49
  The package root re-exports all of them, so
41
50
  `import { DataGrid, DataGridPaginationPlugin } from '@gears-frontx/ui-kit'`
@@ -139,7 +148,7 @@ under a spanning header cell.
139
148
  | `minWidth`, `maxWidth` | `number` | Pixels. Independent floor and cap under `tableLayout="auto"`. |
140
149
  | `headerOverflow` | `'nowrap' \| 'wrap'` | Default `'nowrap'`: one line, clipped with an ellipsis, the label in `title`. |
141
150
  | `cellOverflow` | `'wrap' \| 'nowrap'` | Default `'wrap'`. `'nowrap'` clips with an ellipsis and sets `title` to the value. |
142
- | `sticky` | `boolean` | Pins the column to the inline-start edge while the table scrolls sideways. |
151
+ | `sticky` | `boolean` | Pins the column to the inline-start edge while the table scrolls sideways. The columns a plugin adds before the data (a row number, a selection checkbox) pin with the first pinned column, in front of it, so they stay in view; with nothing pinned they scroll away with the rest. |
143
152
  | `visible` | `boolean` | Initial visibility. |
144
153
  | `visibleToggleDisabled` | `boolean` | The column's visibility is not the user's to change. |
145
154
  | `getClassName` | `(item) => string \| undefined` | A class for the column's cell in that row. |
@@ -147,10 +156,11 @@ under a spanning header cell.
147
156
  | `groupId` | `string` | Set by the grid on columns inside a `DataGridTableGroup`; do not set it. |
148
157
 
149
158
  A `DataGridTableGroup` is `{ id, label, columns, component?, visible?, sticky? }`; a
150
- group's `sticky` pins all its columns. Pin a group as a whole or none of its
151
- columns: a column pinned or unpinned on its own inside a group moves in the body
152
- but not under the group's header, so the header labels stop matching their
153
- columns (see "Known limitations").
159
+ group's `sticky` pins all its columns. Pinning or unpinning a group at run time (the table
160
+ configuration plugin does) moves its heading and all its columns together. Pin a group as a
161
+ whole or none of its columns: a column pinned or unpinned on its own inside a group moves in
162
+ the body but not under the group's header, so the header labels stop matching their columns
163
+ (see "Known limitations").
154
164
 
155
165
  Pass a component to a column as its own module-level component, not an inline
156
166
  function: an inline component is a new component on every render and loses its
@@ -295,6 +305,18 @@ them with `registerSlot(name, { id, component, order? })`:
295
305
  | `bottom` | The footer (pagination); hidden while the grid has no records |
296
306
  | `empty` | Replaces the built-in empty state |
297
307
 
308
+ The toolbar fits itself to the grid's width. What `top-start` holds flows onto
309
+ further lines when it is too wide for one, and `top-end` goes on to a line of its
310
+ own, at its end, when it would not fit beside `top-start` on a single line. A
311
+ toolbar that fits on one line has everything centred on it.
312
+
313
+ A slot registered in `top` and made active replaces the toolbar's two halves. While the toolbar
314
+ is on one line, the grid gives the slot at least the height the toolbar had and centres what it
315
+ holds in that height, so the table under it does not move when the slot takes the toolbar's place
316
+ (the row select bar does). A toolbar that has wrapped onto several lines, as a row of quick
317
+ filters does on a narrow screen, is not kept: the slot takes its own height and the table moves
318
+ up with it.
319
+
298
320
  With two or more `main` views (for example the table and a cards view) the grid
299
321
  adds a view switch to `top-end` by itself. Read or set the active view with
300
322
  `useDataGridActiveView()` and `DATA_GRID_VIEW`:
@@ -330,8 +352,8 @@ page, and does not listen for `popstate`; a plugin can opt a state out of it
330
352
  backend (`{ storage: 'localStorage' }`).
331
353
 
332
354
  `persistentColumnVisibility` remembers which columns the user showed or hid, in
333
- `localStorage` whatever `persistent` says. The grid ships no control that changes
334
- it; a plugin of your own calls `updateColumnVisibility`.
355
+ `localStorage` whatever `persistent` says. The table configuration plugin is the
356
+ built-in control that changes it; a plugin of your own calls `updateColumnVisibility`.
335
357
 
336
358
  ## Plugins
337
359
 
@@ -394,6 +416,143 @@ again.
394
416
  The plugin compares `options` and `excludedColumns` by content, so an inline
395
417
  array does not count as a change.
396
418
 
419
+ ### `DataGridFiltersPlugin`
420
+
421
+ A bar of quick filters in `top-start`, and an "All filters" panel that edits the
422
+ same filters in one go. Each active filter reaches your `load` as
423
+ `filters[filterKey] = { value }`.
424
+
425
+ ```tsx
426
+ import {
427
+ DataGridFiltersPlugin,
428
+ filterCheckboxGroup,
429
+ filterDateRange,
430
+ filterToggle,
431
+ } from '@gears-frontx/ui-kit/data-grid/filters';
432
+
433
+ const ENTITIES = [
434
+ filterToggle({ id: 'only_active', label: 'Only active' }),
435
+ filterCheckboxGroup({
436
+ id: 'role',
437
+ label: 'Role',
438
+ options: [
439
+ { label: 'Admin', value: 'admin' },
440
+ { label: 'Member', value: 'member' },
441
+ ],
442
+ }),
443
+ filterDateRange({ id: 'created_at', label: 'Created' }),
444
+ ];
445
+
446
+ async function loadUsers({ filters }: DataGridLoadContext) {
447
+ const roles = filters?.role?.value; // ['admin'], when the Role filter holds a choice
448
+ const range = filters?.created_at?.value; // { from?: '2026-03-01', to?: '2026-03-31' }
449
+ // ...
450
+ }
451
+
452
+ <DataGrid name="users" load={loadUsers} columns={columns}>
453
+ <DataGridFiltersPlugin entities={ENTITIES} />
454
+ </DataGrid>;
455
+ ```
456
+
457
+ | Prop | Type | Default |
458
+ |------|------|---------|
459
+ | `entities` | `DataGridFilterEntity[]` | required; keep the array referentially stable (module scope, or `useMemo`) |
460
+ | `isAllFiltersOptionVisible` | `boolean` | `true`; the "All filters" chip is drawn when this is on and at least one entity has a panel section |
461
+
462
+ **Entities.** Each factory returns one filter. They share `id`, `filterKey`
463
+ (defaults to `id`: the key your `load` reads) and `label`. With no `label`, the
464
+ chip is named after the column whose id equals `id`; an entity with neither a
465
+ label nor a matching column throws when it renders. `popover` (`{ minInlineSize,
466
+ maxInlineSize? }`, in px) sizes the popover of a filter that has one.
467
+
468
+ | Factory | Value in `load` | Quick filter | Panel section |
469
+ |---------|-----------------|--------------|---------------|
470
+ | `filterSearch({ id })` | `{ value: string }` | A text box in a popover, applied 1 s after typing stops | no |
471
+ | `filterToggle({ id })` | `{ value: true }` | A chip that switches the filter on and off | no |
472
+ | `filterCheckboxGroup({ id, options, search?, searchDebounce? })` | `{ value: (string \| number)[] }` | A popover of checkboxes | yes |
473
+ | `filterTagGroup({ id, options, mode?, search? })` | `{ value: (string \| number)[] }` | A popover of selectable tags; `mode: 'radio'` allows one | yes |
474
+ | `filterTree({ id, tree, treeLabel, filterValue?, search? })` | `{ value: string \| number }` | A popover with a tree of radios | yes |
475
+ | `filterDateRange({ id, modelDateFormat? })` | `{ value: { from?: string, to?: string } }` | A popover with a range calendar | yes |
476
+
477
+ An option is `{ label, value, component? }`; `component` draws the option in
478
+ place of its label. The search box of a checkbox group and a tree shows above 5
479
+ options (5 nodes), and of a tag group above 10; `search` forces it on or off.
480
+ `filterCheckboxGroup` takes a function for `options` when the list is too long
481
+ to load up front: it is called with the trimmed search term, once when the list
482
+ opens (with an empty string) and again `searchDebounce` ms (default 300) after
483
+ each change of the term, and only the latest answer is shown. A failure shows "No
484
+ options found".
485
+
486
+ **Quick filters** apply at once: each change updates the value, stores it and
487
+ reloads from page 1. A chip shows a count when its value is a list, a dot when it
488
+ holds any other value, and its popover has a Reset button.
489
+
490
+ **The "All filters" panel** opens a sheet (from the side from 720 px wide, from the
491
+ bottom edge below it) with a section for each entity that has one. Its choices
492
+ are a draft: nothing loads until **Apply**, which commits all of them at once.
493
+ Leaving the panel without Apply (its close button, Escape, a click outside)
494
+ discards the draft, and the next opening starts from what is applied. The count tag in a section's
495
+ header clears that section of the draft. The chip's count is the number of active
496
+ filters that have a section.
497
+
498
+ The same width decides how a quick filter opens: as a popover beside its chip,
499
+ or as a panel from the bottom edge.
500
+
501
+ **Active values.** A filter is active unless its value is `undefined`, `null`,
502
+ `''` or an empty array, so `false` and `0` are values like any other. Inactive
503
+ filters are left out of the load context. (The grid's own `hasActiveFilters`,
504
+ which the empty state reads, agrees except for one value: it treats `0` as
505
+ inactive.)
506
+
507
+ **Persistence.** All filters are stored under one key, `dataGrid:${name}:filters`,
508
+ as `{ [filterKey]: { value } }`. A refresh that resets filters clears them. The
509
+ stored value can be edited by the user, so what the controls show is guarded: a
510
+ checkbox group or a tag group reads a stored value that is not a list as no
511
+ selection, and a date range reads a bound that is not a date in `modelDateFormat`
512
+ as unset. The guards change only what the controls show. Every stored value,
513
+ whatever its shape, still reaches `load` as long as it is stored (a list filter's
514
+ wrongly shaped value, a date range's, a value for a filter that is no longer in
515
+ `entities`), so read `filters` defensively there (check `Array.isArray` before
516
+ using a list).
517
+
518
+ **`filterDateRange`.** The bounds are strings in `modelDateFormat`, which takes
519
+ [date-fns format tokens](https://date-fns.org/docs/format) and defaults to
520
+ `'yyyy-MM-dd'`: `'dd.MM.yyyy'`, not `'DD.MM.YYYY'`. Either bound may be missing
521
+ (`{ from }` means "from then on"). The first click on a day starts a range, the
522
+ second ends it (in either order), and a click after that starts a new one.
523
+
524
+ **`filterTree`.** `tree` is a tree structure, made in the same entry:
525
+
526
+ ```tsx
527
+ import { filterTree, useDataGridTreeStructure } from '@gears-frontx/ui-kit/data-grid/filters';
528
+
529
+ const tree = useDataGridTreeStructure({
530
+ items: departments,
531
+ itemKey: 'id', // the default; a function is allowed
532
+ parentKey: 'parent_id', // the default; or `childrenKey` for nested items
533
+ isLeaf: (department) => !department.has_children, // without it every node can be expanded
534
+ });
535
+
536
+ filterTree({ id: 'department', tree, treeLabel: 'name', filterValue: 'code' });
537
+ ```
538
+
539
+ `createDataGridTreeStructure` makes the same thing outside a component; either
540
+ returns a structure you can fill later with `tree.setItems(items)` or reshape with
541
+ `tree.move(...)` (which throws for a move under the node itself or one of its
542
+ descendants), and an open filter follows. `treeLabel` is a property name or a
543
+ function returning the node's text; search matches on it, keeps the matching
544
+ nodes, the path down to each one and the nodes under it, and starts 300 ms after
545
+ typing stops. By default `load` receives the id of the chosen node; `filterValue`
546
+ (a property name or a function of the item) sends something else, such as a
547
+ code, while the id is what is stored. A tree keeps its items' `id` property as
548
+ their key: use the default `itemKey`.
549
+
550
+ The plugin's API (`getPlugin<DataGridFiltersPluginApi>('filters')`) offers
551
+ `useState(filterKey)`, `setState`, `removeState`, `useDraftState`,
552
+ `setDraftState`, `applyDraftState`, `resetDraftState`, `useActiveCount(filterKeys)`,
553
+ `isFilterValueActive` and `useFilterEntities`, for a custom filter or a control
554
+ of your own.
555
+
397
556
  ### `DataGridEmptyStatePlugin`
398
557
 
399
558
  Renders your component in place of the built-in empty state, whenever the grid has
@@ -420,6 +579,290 @@ function UsersEmptyState() {
420
579
  </DataGrid>;
421
580
  ```
422
581
 
582
+ ### `DataGridRowNumberPlugin`
583
+
584
+ Adds a column before the data with the row's 1-based number, in the monospace face. It
585
+ takes no props.
586
+
587
+ ```tsx
588
+ import { DataGridPaginationPlugin } from '@gears-frontx/ui-kit/data-grid/pagination';
589
+ import { DataGridRowNumberPlugin } from '@gears-frontx/ui-kit/data-grid/row-number';
590
+
591
+ <DataGrid name="users" load={loadUsers} columns={columns}>
592
+ <DataGridPaginationPlugin defaultLimit={20} />
593
+ <DataGridRowNumberPlugin />
594
+ </DataGrid>;
595
+ ```
596
+
597
+ The number is `limit * (page - 1) + index + 1`, so with the pagination plugin the second page
598
+ of 20 starts at 21; without it the number is the row's position. The column has no header
599
+ text, starts at 32px and grows to the widest number on the page.
600
+
601
+ ### `DataGridRowClickPlugin`
602
+
603
+ Calls back with the row's item when a row is clicked, double-clicked, or has Enter pressed
604
+ on it. It replaces the `row` renderer, so it takes the whole row.
605
+
606
+ | Prop | Type | Notes |
607
+ |------|------|-------|
608
+ | `click` | `(item) => void` | A click, and Enter on a focused row |
609
+ | `dblclick` | `(item) => void` | A double click, which also fires `click` twice first, as in a browser |
610
+
611
+ ```tsx
612
+ import { DataGridRowClickPlugin } from '@gears-frontx/ui-kit/data-grid/row-click';
613
+
614
+ <DataGrid<User> name="users" load={loadUsers} columns={columns}>
615
+ <DataGridRowClickPlugin<User> click={(user) => navigate(`/users/${user.id}`)} />
616
+ </DataGrid>;
617
+ ```
618
+
619
+ Every body row gets `tabIndex={0}` and a pointer cursor. The callbacks are read when the event
620
+ fires, so a new function each render is fine.
621
+
622
+ A click anywhere in the row counts, including on a control inside a cell, so a button, link or
623
+ checkbox in a cell would fire the row click as well. Mark such an element with
624
+ `data-grid-row-ignore-click`, or any ancestor of it in the cell: clicks, double clicks and
625
+ Enter that start inside it are skipped. An extra column marks its whole cell with the
626
+ `ignoreRowClick` option of `registerExtraColumn`.
627
+
628
+ ```tsx
629
+ const columns: DataGridTableColumn<User>[] = [
630
+ { id: 'name', label: 'Name' },
631
+ {
632
+ id: 'actions',
633
+ label: 'Actions',
634
+ component: ({ item }) => (
635
+ <Button data-grid-row-ignore-click onClick={() => remove(item.id)}>
636
+ Delete
637
+ </Button>
638
+ ),
639
+ },
640
+ ];
641
+ ```
642
+
643
+ ### `DataGridActionsPlugin`
644
+
645
+ Renders a component of yours in the toolbar's `top-end` slot, at order 0, so it sits before
646
+ the other toolbar buttons. It is for toolbar content (an "Add" button, a bulk-import
647
+ trigger); actions on a row belong in a column of your own.
648
+
649
+ | Prop | Type | Notes |
650
+ |------|------|-------|
651
+ | `component` | `ComponentType` | Required. Keep its identity between renders (a module-level component) |
652
+ | `props` | `Record<string, unknown>` | Spread onto `component` |
653
+
654
+ ```tsx
655
+ import { DataGridActionsPlugin } from '@gears-frontx/ui-kit/data-grid/actions';
656
+
657
+ function AddUserButton({ onAdd }: { onAdd?: () => void }) {
658
+ return <Button onClick={onAdd}>Add user</Button>;
659
+ }
660
+
661
+ <DataGrid name="users" load={loadUsers} columns={columns}>
662
+ <DataGridActionsPlugin component={AddUserButton} props={{ onAdd: openCreateDialog }} />
663
+ </DataGrid>;
664
+ ```
665
+
666
+ `props` is not typed against `component`, so the component's own props have to be optional
667
+ for it to type-check, as `onAdd` is here.
668
+
669
+ The wrapper lays its content out in a row with a small gap. The component renders as a
670
+ child of the grid, so `useDataGrid()` works inside it.
671
+
672
+ ### `DataGridRowActionsPlugin`
673
+
674
+ Adds a last column that renders your component in every row, given the row's `item`:
675
+ the place for a row's edit and delete buttons or its "more" menu.
676
+
677
+ | Prop | Type | Default |
678
+ |------|------|---------|
679
+ | `component` | `ComponentType<{ item }>` | required |
680
+ | `order` | `number` | `100`, its place among the columns at the end |
681
+ | `className` | `string` | none; goes on the wrapper around your component |
682
+ | `sticky` | `boolean` | `false`; pins the column to the inline-end edge |
683
+
684
+ ```tsx
685
+ import { DataGridRowActionsPlugin } from '@gears-frontx/ui-kit/data-grid/row-actions';
686
+
687
+ function UserActions({ item }: { item: User }) {
688
+ return (
689
+ <DropdownMenu>
690
+ <DropdownMenuTrigger
691
+ render={<Button variant="ghost" size="sm" icon={<MoreHorizontal />} aria-label={`Actions for ${item.name}`} />}
692
+ />
693
+ <DropdownMenuContent align="end">
694
+ <DropdownMenuItem onClick={() => edit(item)}>Edit</DropdownMenuItem>
695
+ <DropdownMenuItem onClick={() => remove(item)}>Delete</DropdownMenuItem>
696
+ </DropdownMenuContent>
697
+ </DropdownMenu>
698
+ );
699
+ }
700
+
701
+ <DataGrid<User> name="users" load={loadUsers} columns={columns}>
702
+ <DataGridRowActionsPlugin<User> component={UserActions} sticky />
703
+ </DataGrid>;
704
+ ```
705
+
706
+ The column has no header text and is as wide as the widest actions it holds. The wrapper is
707
+ marked `data-grid-row-ignore-click`, so with the row click plugin a click on your buttons does
708
+ not also click the row. A menu your component opens renders in a portal, outside that
709
+ wrapper: see Known limitations.
710
+
711
+ `sticky` keeps the actions in view on a table wide enough to scroll sideways: the column sticks
712
+ to the inline-end edge, in left-to-right and right-to-left alike, and its cells are opaque, so
713
+ the rows scroll under it. A pinned cell is painted with its row's own fill over `--card`, so
714
+ it follows hover, selection and the other row states; set `--data-grid-pinned-background` (see
715
+ CSS customization) when the grid sits on `--background`.
716
+
717
+ ### `DataGridActionsMenuPlugin`
718
+
719
+ Adds an ellipsis button named "Actions" to the toolbar's `top-end` slot, after the other
720
+ toolbar buttons (order 100). It opens a `DropdownMenu` whose items are components of yours.
721
+
722
+ | Prop | Type | Notes |
723
+ |------|------|-------|
724
+ | `menuItems` | `{ component, params?, order? }[]` | `component` receives `{ params }` and renders a `DropdownMenuItem` (or any menu part) |
725
+
726
+ ```tsx
727
+ import { DataGridActionsMenuPlugin } from '@gears-frontx/ui-kit/data-grid/actions-menu';
728
+
729
+ // `params` is typed as a plain record, so each field of an item's own params is optional.
730
+ function ArchiveItem({ params }: { params?: { onArchive?: () => void } }) {
731
+ return <DropdownMenuItem onClick={params?.onArchive}>Archive</DropdownMenuItem>;
732
+ }
733
+
734
+ const menuItems = [{ component: ArchiveItem, params: { onArchive: archiveAll } }];
735
+
736
+ <DataGrid name="users" load={loadUsers} columns={columns}>
737
+ <DataGridActionsMenuPlugin menuItems={menuItems} />
738
+ </DataGrid>;
739
+ ```
740
+
741
+ Items are listed by `order`; one without it takes ten times its position in the array, so
742
+ 10, 20, 30. Another plugin can add items with `registerMenuItem({ component, params?, order? })`
743
+ on the plugin's API (`getPlugin<DataGridActionsMenuPluginApi>('actionsMenu')`); without an
744
+ `order` it takes ten times one more than the number of items already there, so 20 when one is
745
+ (`10 * (count + 1)`). A new `menuItems` array replaces every item, the registered ones too, so
746
+ keep `menuItems` in a module-level constant or `useMemo`.
747
+
748
+ ### `DataGridTableConfigurationPlugin`
749
+
750
+ Adds a gear button named "Configure columns" to the toolbar's `top-end` slot, after an
751
+ `actions` component and before the actions menu (order 10). It opens a popover headed "Table
752
+ configuration" that lists the grid's columns, so the user can show, hide and pin them. It
753
+ takes no props.
754
+
755
+ ```tsx
756
+ import { DataGridTableConfigurationPlugin } from '@gears-frontx/ui-kit/data-grid/table-configuration';
757
+
758
+ <DataGrid name="users" load={loadUsers} columns={columns} persistentColumnVisibility>
759
+ <DataGridTableConfigurationPlugin />
760
+ </DataGrid>;
761
+ ```
762
+
763
+ Every column has a switch for its visibility and a pin button for keeping it at the inline
764
+ start while the table scrolls sideways. The pin button shows while its row is hovered or has
765
+ keyboard focus, and always while the column is pinned. A group is a section: a pin button for
766
+ the group, then a switch for each column in it, with no pin button of their own. Pinning the
767
+ group pins its heading and all its columns together, and unpinning reverses it. The switch of
768
+ the last visible column is locked so the table is never empty, and a column's own
769
+ `visibleToggleDisabled` locks its switch.
770
+
771
+ A choice applies at once. Which columns are hidden survives a reload only with
772
+ `persistentColumnVisibility` on the grid; pins are not stored. A new `columns` array resets both.
773
+
774
+ The panel renders in a portal, so set its two size hooks on `:root` or `body`, not on the grid
775
+ (see CSS customization). It keeps inside the screen: its width floor gives way to the room there
776
+ is on a narrow one, and a list longer than the room scrolls inside it.
777
+
778
+ ### `DataGridRowSelectPlugin`
779
+
780
+ Adds a checkbox column at the start, a select-all checkbox in its header, and an action bar
781
+ that replaces the toolbar while rows are selected.
782
+
783
+ | Prop | Type | Default |
784
+ |------|------|---------|
785
+ | `onSelectionChange` | `(items, meta) => void` | none; `meta` is `{ mode: 'none' \| 'page' \| 'all', count }` |
786
+ | `component` | `ComponentType<{ rowSelect }>` | none; your actions in the action bar |
787
+ | `statusComponent` | `ComponentType<{ rowSelect }>` | none; replaces the "N items selected" text |
788
+ | `multiple` | `boolean` | `true`; `false` allows one row, with no select-all checkbox |
789
+ | `showSelectAll` | `boolean` | `true`; the select-all checkbox in the header |
790
+ | `visible` | `(item) => boolean` | none; rows it rejects get no checkbox, and select-all skips them |
791
+ | `showSelectAllMatching` | `boolean` | `false`; see below |
792
+ | `keepHiddenSelection` | `boolean` | `false`; see below |
793
+
794
+ ```tsx
795
+ import { DataGridRowSelectPlugin, type DataGridRowSelectPluginApi } from '@gears-frontx/ui-kit/data-grid/row-select';
796
+
797
+ function BulkActions({ rowSelect }: { rowSelect: DataGridRowSelectPluginApi<User> }) {
798
+ return (
799
+ <>
800
+ <Button variant="outline" onClick={rowSelect.clearSelection}>Cancel</Button>
801
+ <Button variant="destructive" onClick={() => deactivate(rowSelect.getSelectionDescriptor())}>
802
+ Deactivate
803
+ </Button>
804
+ </>
805
+ );
806
+ }
807
+
808
+ <DataGrid<User> name="users" load={loadUsers} columns={columns}>
809
+ <DataGridRowSelectPlugin<User> component={BulkActions} onSelectionChange={setSelected} />
810
+ </DataGrid>;
811
+ ```
812
+
813
+ The action bar needs `component` or `statusComponent`; with neither, selecting only ticks the
814
+ checkboxes. It shows the count ("1 item selected", "3 items selected") at the end, or your
815
+ `statusComponent` in its place, and your `component` at the start. `rowSelect` is the plugin's
816
+ API: `useSelectedIds`, `useSelectionCount`, `useSelectionMode` and the other `use*` hooks read
817
+ it, `toggleSelection(id)`, `toggleSelectAll(value)` and `clearSelection()` change it.
818
+
819
+ Selection is kept per page, and it follows the rows that are loaded. Every load empties the
820
+ loaded rows while it runs, so every load clears the selection and calls `onSelectionChange` with
821
+ `[]` and `{ mode: 'none', count: 0 }`: a page change, a filter, a search, and also `refresh()` or
822
+ `triggerLoad()` when they bring back the very same rows. With `keepHiddenSelection` the ids
823
+ selected by hand survive loads. The `total` of the load result is mirrored, so the plugin does
824
+ not depend on the pagination plugin being registered first.
825
+
826
+ #### Select all matching
827
+
828
+ `showSelectAllMatching` is opt-in: turn it on only when your bulk action handles the all-matching
829
+ scope. With it on, once every selectable row on the page is selected and the load result's
830
+ `total` is more than the rows loaded, a banner offers "Select all N". Taking it enters
831
+ all-matching mode, every record that matches the current filter across all pages, without
832
+ listing ids. In that mode `onSelectionChange` still gets only the current page's items, and the
833
+ scope is in `meta` (`mode: 'all'`, `count: total`) and in `getSelectionDescriptor()`. Any single
834
+ row toggle, a clear, or any load leaves all-matching, and
835
+ `getSelectionDescriptor()` is back to ids. In single-selection mode the banner and all-matching
836
+ are off.
837
+
838
+ Send the descriptor, never a list of thousands of ids:
839
+
840
+ ```tsx
841
+ const selection = rowSelect.getSelectionDescriptor();
842
+ // { mode: 'ids', ids: [1, 2, 3] } or { mode: 'all-matching' }
843
+ await (selection.mode === 'all-matching' ? deleteMatching(currentFilter) : deleteIds(selection.ids));
844
+ ```
845
+
846
+ The count in all-matching mode is the load result's `total`, which the client cannot narrow by
847
+ `visible`, and a filter-based action acts on every match, so `visible` is not honoured by "select
848
+ all matching". If `visible` is a permission gate, leave `showSelectAllMatching` off. The backend
849
+ enforces permissions either way.
850
+
851
+ #### `keepHiddenSelection`
852
+
853
+ With it on, rows selected by hand stay selected when they leave the screen (another page, a
854
+ filter, a search). `onSelectionChange` then reports every selected item across pages, and the
855
+ select-all checkbox, which acts on the page, is ticked or mixed by the page's rows only. Select-all
856
+ adds the page to the selection rather than replacing it, but unticking it clears the whole
857
+ selection, other pages included, as the source grid does. It is not meant to be combined with
858
+ `showSelectAllMatching`: the one keeps a hand-picked set across pages, the other offers a single
859
+ scope.
860
+
861
+ #### With row click
862
+
863
+ The checkbox column marks its whole cell, header and body, as ignoring row clicks, so ticking a
864
+ box does not call a row click plugin's `click`. Nothing to configure.
865
+
423
866
  ## Custom plugins
424
867
 
425
868
  `createDataGridPlugin(name, setup, propsAreEqual?)` returns a component to use as
@@ -528,6 +971,9 @@ Set these on the grid or any ancestor:
528
971
  | `--data-grid-table-min-inline-size` | `max-content` | Floor for the table's width. Raise it for a narrow pane that starves flexible columns, set it to `0` for a grid that must fit its wrapper. |
529
972
  | `--data-grid-header-background` | `var(--card)` | Fill of the header cells while `stickyHeader` is on |
530
973
  | `--data-grid-text-search-inline-size` | `initial` | Width of the search box; a fixed value stops it shifting as the clear button appears |
974
+ | `--data-grid-table-configuration-min-inline-size` | `304px` | Minimum width of the table configuration panel. The panel renders in a portal: set it on `:root` or `body` |
975
+ | `--data-grid-table-configuration-content-max-block-size` | `500px` | Height at which the panel's column list scrolls. Set it where the panel's portal is under the cascade, like the width |
976
+ | `--data-grid-pinned-background` | `var(--card)` | Fill of a pinned column's cells at rest. A pinned cell is painted with its row's own fill over it, so it follows hover and the other row states. Set `var(--background)` for a grid that sits on the page rather than on a card |
531
977
 
532
978
  The floor is one constraint among several: under `'fixed'` a table whose columns
533
979
  declare widths cannot shrink below their sum, and under either mode not below the
@@ -544,6 +990,26 @@ columns' minimum content widths.
544
990
  - `aria-busy` is set on the content region while a loader is on screen.
545
991
  - The order popover's items are menu items without a menu popup, so they take
546
992
  focus and Enter and Space, but arrow keys do not move between them.
993
+ - A filter chip is a native `button`; the toggle chip does not say whether it is on
994
+ (no `aria-pressed`), only by its look. The text box of a `filterSearch` filter has
995
+ no placeholder and no accessible name, and the search box inside a list filter
996
+ has a placeholder ("Search...") and no accessible name. A tag is a label over a
997
+ native checkbox or radio, so the input carries the state.
998
+ - In a tree filter each row holds a radio and the tree moves its own focus: Arrow
999
+ keys move between rows, Right and Left open and close a directory, Home and End
1000
+ go to the ends, and Enter toggles a directory. A node is chosen with the mouse,
1001
+ or by Tab to its radio and Space.
1002
+ - The "All filters" panel is a dialog; it is left with its close button (named
1003
+ "Close dialog"), Escape or a click outside.
1004
+ - The table configuration panel is built like the order popover, from menu items without
1005
+ a menu popup: its switches and pin buttons are reached with Tab, not with arrow keys, the
1006
+ switches carry no accessible name of their own (the column's name is the text beside them),
1007
+ and the pin buttons are named "Pin column" and "Unpin column" without the column.
1008
+ - With the row click plugin every body row is a tab stop and Enter activates it; Space
1009
+ does not.
1010
+ - The row select checkboxes, the select-all one included, have no accessible name. "Select all
1011
+ N" and "Clear selection" in the banner are buttons, and the banner is an `alert`, so it is
1012
+ announced when it appears.
547
1013
  - Strings are English and live in one module; the kit has no i18n layer yet.
548
1014
 
549
1015
  ## Known limitations
@@ -564,6 +1030,21 @@ columns' minimum content widths.
564
1030
  refresh runs after the grid is gone, and its load's `signal` is not aborted.
565
1031
  - The loading overlay blocks the pointer only, not the keyboard.
566
1032
  - No `aria-sort`; Previous and Next drop keyboard focus at the ends of the range.
1033
+ - With the row click plugin, activating an item of a menu that a row action opens fires the row
1034
+ click, and fires it twice: with the mouse, and with Enter on the item (Space does not, a row
1035
+ ignores it). The menu renders in a portal, so the item is not inside the element marked to
1036
+ ignore row clicks, and a React event still bubbles from it to the row, where it arrives twice.
1037
+ Stop both in the menu's content, which leaves the item's own `onClick`, Escape and the arrow
1038
+ keys as they were:
1039
+
1040
+ ```tsx
1041
+ <DropdownMenuContent
1042
+ onClick={(event) => event.stopPropagation()}
1043
+ onKeyDown={(event) => {
1044
+ if (event.key === 'Enter') event.stopPropagation();
1045
+ }}
1046
+ >
1047
+ ```
567
1048
  - Renderer overrides (`registerComponent`) are last registered wins.
568
1049
  - `registerComponent` accepts `'header-cell'` and `'header-group'`, but the header
569
1050
  always renders its own cell and group components, so those two overrides have no
@@ -575,6 +1056,18 @@ columns' minimum content widths.
575
1056
  it also drops `history.state` and the `#hash` when it writes the URL, and it does
576
1057
  not work during server rendering.
577
1058
  - A new `columns` array identity resets user pins and visibility.
1059
+ - A filter's quick popover is not kept in step with what resets it from outside:
1060
+ a tree filter's radio stays checked after its Reset button until the popover is
1061
+ opened again, although the filter is cleared.
1062
+ - `filterTree` reads each item's `id` property for its search and its radios. With
1063
+ an `itemKey` other than `id` every radio shows as checked, a click selects
1064
+ nothing, and a search hides every node.
1065
+ - In a tree filter with a search, the arrow keys also step onto the rows the search
1066
+ hides. Once the focus is on a hidden row, no row shown is a tab stop, so the
1067
+ arrow keys are lost until that row is shown again or another row is clicked;
1068
+ each row's radio can still be reached with Tab.
1069
+ - A key in `filters` that no entity owns any more, and any stored value of the
1070
+ wrong shape (see Persistence), still reach `load`.
578
1071
  - There is no plugin unregister.
579
1072
 
580
1073
  ## Anti-patterns