@gears-frontx/ui-kit 0.4.5 → 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 (146) 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/hooked.js +27 -35
  8. package/dist/chunks/hooked.js.map +1 -1
  9. package/dist/chunks/ignore-row-click.js +5 -0
  10. package/dist/chunks/ignore-row-click.js.map +1 -0
  11. package/dist/chunks/messages.js +19 -3
  12. package/dist/chunks/messages.js.map +1 -1
  13. package/dist/chunks/resolve-body-cell-props.DGczzk1U.css +1 -0
  14. package/dist/chunks/resolve-body-cell-props.js +140 -0
  15. package/dist/chunks/resolve-body-cell-props.js.map +1 -0
  16. package/dist/chunks/row-actions.BprAXgu2.css +1 -0
  17. package/dist/chunks/row-click.DAYTmSBO.css +1 -0
  18. package/dist/chunks/row-number.C7fNu9Bw.css +1 -0
  19. package/dist/chunks/row-select.BjKdiMf5.css +1 -0
  20. package/dist/chunks/table-configuration.a6C_fp7B.css +1 -0
  21. package/dist/chunks/table-context.js +8 -0
  22. package/dist/chunks/table-context.js.map +1 -0
  23. package/dist/chunks/table-types.js +11 -0
  24. package/dist/chunks/table-types.js.map +1 -0
  25. package/dist/chunks/table.Dmz7LEk7.css +1 -0
  26. package/dist/components/data-grid/messages.d.ts +16 -0
  27. package/dist/components/data-grid/messages.d.ts.map +1 -1
  28. package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts +4 -0
  29. package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts.map +1 -0
  30. package/dist/components/data-grid/plugins/actions/actions-types.d.ts +11 -0
  31. package/dist/components/data-grid/plugins/actions/actions-types.d.ts.map +1 -0
  32. package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts +3 -0
  33. package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts.map +1 -0
  34. package/dist/components/data-grid/plugins/actions/public.d.ts +3 -0
  35. package/dist/components/data-grid/plugins/actions/public.d.ts.map +1 -0
  36. package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts +3 -0
  37. package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts.map +1 -0
  38. package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts +25 -0
  39. package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts.map +1 -0
  40. package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts +3 -0
  41. package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts.map +1 -0
  42. package/dist/components/data-grid/plugins/actions-menu/public.d.ts +3 -0
  43. package/dist/components/data-grid/plugins/actions-menu/public.d.ts.map +1 -0
  44. package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts +3 -0
  45. package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts.map +1 -0
  46. package/dist/components/data-grid/plugins/row-actions/public.d.ts +3 -0
  47. package/dist/components/data-grid/plugins/row-actions/public.d.ts.map +1 -0
  48. package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts +6 -0
  49. package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts.map +1 -0
  50. package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts +24 -0
  51. package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts.map +1 -0
  52. package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts +8 -0
  53. package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts.map +1 -0
  54. package/dist/components/data-grid/plugins/row-click/public.d.ts +3 -0
  55. package/dist/components/data-grid/plugins/row-click/public.d.ts.map +1 -0
  56. package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts +14 -0
  57. package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts.map +1 -0
  58. package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts +9 -0
  59. package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts.map +1 -0
  60. package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts +3 -0
  61. package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts.map +1 -0
  62. package/dist/components/data-grid/plugins/row-number/public.d.ts +3 -0
  63. package/dist/components/data-grid/plugins/row-number/public.d.ts.map +1 -0
  64. package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts +4 -0
  65. package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts.map +1 -0
  66. package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts +6 -0
  67. package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts.map +1 -0
  68. package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts +2 -0
  69. package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts.map +1 -0
  70. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts +3 -0
  71. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts.map +1 -0
  72. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts +3 -0
  73. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts.map +1 -0
  74. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts +3 -0
  75. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts.map +1 -0
  76. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts +3 -0
  77. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts.map +1 -0
  78. package/dist/components/data-grid/plugins/row-select/public.d.ts +3 -0
  79. package/dist/components/data-grid/plugins/row-select/public.d.ts.map +1 -0
  80. package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts +5 -0
  81. package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts.map +1 -0
  82. package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts +113 -0
  83. package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts.map +1 -0
  84. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts +10 -0
  85. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts.map +1 -0
  86. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts +10 -0
  87. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts.map +1 -0
  88. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts +8 -0
  89. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts.map +1 -0
  90. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts +3 -0
  91. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts.map +1 -0
  92. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts +3 -0
  93. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts.map +1 -0
  94. package/dist/components/data-grid/plugins/table-configuration/public.d.ts +3 -0
  95. package/dist/components/data-grid/plugins/table-configuration/public.d.ts.map +1 -0
  96. package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts +5 -0
  97. package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts.map +1 -0
  98. package/dist/components/data-grid/services/layout/components/data-grid-layout-top.d.ts.map +1 -1
  99. package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts +2 -0
  100. package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts.map +1 -0
  101. package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts.map +1 -1
  102. package/dist/components/data-grid/services/table/components/data-grid-extra-header-cell.d.ts.map +1 -1
  103. package/dist/components/data-grid/services/table/components/data-grid-header-cell.d.ts.map +1 -1
  104. package/dist/components/data-grid/services/table/components/data-grid-header-group.d.ts.map +1 -1
  105. package/dist/components/data-grid/services/table/table-service.d.ts.map +1 -1
  106. package/dist/components/data-grid/services/table/table-sticky.d.ts +16 -0
  107. package/dist/components/data-grid/services/table/table-sticky.d.ts.map +1 -1
  108. package/dist/components/table/table.d.ts +20 -3
  109. package/dist/components/table/table.d.ts.map +1 -1
  110. package/dist/data-grid/actions-menu.d.ts +1 -0
  111. package/dist/data-grid/actions-menu.js +57 -0
  112. package/dist/data-grid/actions-menu.js.map +1 -0
  113. package/dist/data-grid/actions.d.ts +1 -0
  114. package/dist/data-grid/actions.js +36 -0
  115. package/dist/data-grid/actions.js.map +1 -0
  116. package/dist/data-grid/filters.js +24 -23
  117. package/dist/data-grid/filters.js.map +1 -1
  118. package/dist/data-grid/row-actions.d.ts +1 -0
  119. package/dist/data-grid/row-actions.js +52 -0
  120. package/dist/data-grid/row-actions.js.map +1 -0
  121. package/dist/data-grid/row-click.d.ts +1 -0
  122. package/dist/data-grid/row-click.js +69 -0
  123. package/dist/data-grid/row-click.js.map +1 -0
  124. package/dist/data-grid/row-number.d.ts +1 -0
  125. package/dist/data-grid/row-number.js +38 -0
  126. package/dist/data-grid/row-number.js.map +1 -0
  127. package/dist/data-grid/row-select.d.ts +1 -0
  128. package/dist/data-grid/row-select.js +293 -0
  129. package/dist/data-grid/row-select.js.map +1 -0
  130. package/dist/data-grid/table-configuration.d.ts +1 -0
  131. package/dist/data-grid/table-configuration.js +165 -0
  132. package/dist/data-grid/table-configuration.js.map +1 -0
  133. package/dist/data-grid.js +853 -921
  134. package/dist/data-grid.js.map +1 -1
  135. package/dist/docs/data-grid.md +336 -9
  136. package/dist/docs/table.md +57 -2
  137. package/dist/index.d.ts +7 -0
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +397 -382
  140. package/dist/index.js.map +1 -1
  141. package/dist/table.js +114 -112
  142. package/dist/table.js.map +1 -1
  143. package/llms.txt +9 -7
  144. package/package.json +1 -1
  145. package/dist/chunks/data-grid.DYrZEU-F.css +0 -1
  146. package/dist/chunks/table.CMm41tvy.css +0 -1
@@ -7,8 +7,9 @@ custom empty state) by registering into those slots and hooking the load. Each c
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, filters and empty state, each
11
- its own 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
 
@@ -37,6 +38,13 @@ code or CSS:
37
38
  | `@gears-frontx/ui-kit/data-grid/order` | `DataGridOrderPlugin`, `createDataGridOrderOption` |
38
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 |
39
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` |
40
48
 
41
49
  The package root re-exports all of them, so
42
50
  `import { DataGrid, DataGridPaginationPlugin } from '@gears-frontx/ui-kit'`
@@ -140,7 +148,7 @@ under a spanning header cell.
140
148
  | `minWidth`, `maxWidth` | `number` | Pixels. Independent floor and cap under `tableLayout="auto"`. |
141
149
  | `headerOverflow` | `'nowrap' \| 'wrap'` | Default `'nowrap'`: one line, clipped with an ellipsis, the label in `title`. |
142
150
  | `cellOverflow` | `'wrap' \| 'nowrap'` | Default `'wrap'`. `'nowrap'` clips with an ellipsis and sets `title` to the value. |
143
- | `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. |
144
152
  | `visible` | `boolean` | Initial visibility. |
145
153
  | `visibleToggleDisabled` | `boolean` | The column's visibility is not the user's to change. |
146
154
  | `getClassName` | `(item) => string \| undefined` | A class for the column's cell in that row. |
@@ -148,10 +156,11 @@ under a spanning header cell.
148
156
  | `groupId` | `string` | Set by the grid on columns inside a `DataGridTableGroup`; do not set it. |
149
157
 
150
158
  A `DataGridTableGroup` is `{ id, label, columns, component?, visible?, sticky? }`; a
151
- group's `sticky` pins all its columns. Pin a group as a whole or none of its
152
- columns: a column pinned or unpinned on its own inside a group moves in the body
153
- but not under the group's header, so the header labels stop matching their
154
- 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").
155
164
 
156
165
  Pass a component to a column as its own module-level component, not an inline
157
166
  function: an inline component is a new component on every render and loses its
@@ -301,6 +310,13 @@ further lines when it is too wide for one, and `top-end` goes on to a line of it
301
310
  own, at its end, when it would not fit beside `top-start` on a single line. A
302
311
  toolbar that fits on one line has everything centred on it.
303
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
+
304
320
  With two or more `main` views (for example the table and a cards view) the grid
305
321
  adds a view switch to `top-end` by itself. Read or set the active view with
306
322
  `useDataGridActiveView()` and `DATA_GRID_VIEW`:
@@ -336,8 +352,8 @@ page, and does not listen for `popstate`; a plugin can opt a state out of it
336
352
  backend (`{ storage: 'localStorage' }`).
337
353
 
338
354
  `persistentColumnVisibility` remembers which columns the user showed or hid, in
339
- `localStorage` whatever `persistent` says. The grid ships no control that changes
340
- 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`.
341
357
 
342
358
  ## Plugins
343
359
 
@@ -563,6 +579,290 @@ function UsersEmptyState() {
563
579
  </DataGrid>;
564
580
  ```
565
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
+
566
866
  ## Custom plugins
567
867
 
568
868
  `createDataGridPlugin(name, setup, propsAreEqual?)` returns a component to use as
@@ -671,6 +971,9 @@ Set these on the grid or any ancestor:
671
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. |
672
972
  | `--data-grid-header-background` | `var(--card)` | Fill of the header cells while `stickyHeader` is on |
673
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 |
674
977
 
675
978
  The floor is one constraint among several: under `'fixed'` a table whose columns
676
979
  declare widths cannot shrink below their sum, and under either mode not below the
@@ -698,6 +1001,15 @@ columns' minimum content widths.
698
1001
  or by Tab to its radio and Space.
699
1002
  - The "All filters" panel is a dialog; it is left with its close button (named
700
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.
701
1013
  - Strings are English and live in one module; the kit has no i18n layer yet.
702
1014
 
703
1015
  ## Known limitations
@@ -718,6 +1030,21 @@ columns' minimum content widths.
718
1030
  refresh runs after the grid is gone, and its load's `signal` is not aborted.
719
1031
  - The loading overlay blocks the pointer only, not the keyboard.
720
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
+ ```
721
1048
  - Renderer overrides (`registerComponent`) are last registered wins.
722
1049
  - `registerComponent` accepts `'header-cell'` and `'header-group'`, but the header
723
1050
  always renders its own cell and group components, so those two overrides have no
@@ -11,8 +11,9 @@ composite `data-table` is a separate, not-yet-built component.
11
11
  Composition: `Table` (root) → optional `TableCaption` → `TableHeader` (→
12
12
  `TableRow` → `TableHead`) → `TableBody` (→ `TableRow` → `TableCell`) →
13
13
  optional `TableFooter` (→ `TableRow` → `TableCell`). Every part except
14
- `Table` itself is a passthrough over the matching native element's props —
15
- no kit-specific props of its own.
14
+ `Table` itself is a passthrough over the matching native element's props; the
15
+ only kit props below the root are on the two cell parts: `pinned` on both and
16
+ `resizable` on `TableHead` (see "Pinned columns" and "Props").
16
17
 
17
18
  ## When to use
18
19
 
@@ -249,6 +250,53 @@ same single line a row border drew. The look is unchanged either way. A
249
250
  border you put on a `TableRow` yourself is not the kit's rule, and is
250
251
  ignored by a `stickyHeader` table.
251
252
 
253
+ ## Pinned columns
254
+
255
+ `pinned` on `TableHead` and `TableCell` keeps a column in view while a table
256
+ wider than its wrapper scrolls sideways: the cell sticks to an inline edge and
257
+ the other columns slide under it.
258
+
259
+ Table makes the cell sticky and lifts it above the cells beneath, and leaves the
260
+ one thing it cannot know to you: the offset. A column pins at the sum of the
261
+ widths pinned before it, so set `insetInlineStart` (or `insetInlineEnd` for the
262
+ trailing edge) in `style`. Without one the cell sticks to no edge and scrolls
263
+ away with its row. Pin the heading and every body cell of the column.
264
+
265
+ ```tsx
266
+ <TableHead pinned style={{ insetInlineStart: 0 }}>Name</TableHead>
267
+ <TableCell pinned style={{ insetInlineStart: 0 }}>Ada Lovelace</TableCell>
268
+ ```
269
+
270
+ A pinned cell is opaque, or the cells scrolling under it would show through the
271
+ row's transparent fill. It is filled with the row's own fill, painted over an
272
+ opaque base, so it follows hover (and the open-disclosure hold), `data-state`
273
+ and every other state a row has, with nothing to repeat per state. At rest the
274
+ cell shows the base: `--card`, which is the surface of `DataTable`'s card and of
275
+ a `Card`. A table that sits on the page, on `--background`, sets the hook
276
+ `--table-pinned-fill` on the table (through `className`) or on an ancestor. The
277
+ kit reads it with `--card` as the fallback and declares it nowhere itself:
278
+
279
+ ```css
280
+ .invoices { --table-pinned-fill: var(--background); }
281
+ ```
282
+
283
+ The row's fill reaches a pinned cell as a gradient, which does not transition, so
284
+ on hover or selection a pinned cell changes at once while the rest of the row
285
+ fades over 150 ms. In the collection view a focused row's inset ring is drawn on
286
+ its pinned cells too, since their fill would cover it.
287
+
288
+ In a sticky header or the collection view a pinned heading is lifted one step
289
+ above the other headings, which sit at `z-index: 2`, and keeps the header's own
290
+ fill (`--table-header-fill`, `--card` in the collection view), which is opaque
291
+ already. In a plain header a pinned heading stacks above the resize handle of the
292
+ column after it, so a `resizable` neighbour's handle does not cover it or take its
293
+ pointer.
294
+
295
+ Resizing and pinning do not talk to each other. Table has no resize callback, so
296
+ resizing a pinned column does not move the offsets of the pinned columns after it:
297
+ those offsets are yours, and a table that lets a pinned column be resized has to
298
+ read the new width and set them again.
299
+
252
300
  ## Props (kit level)
253
301
 
254
302
  `Table`:
@@ -267,9 +315,16 @@ ignored by a `stickyHeader` table.
267
315
 
268
316
  | Prop | Type | Default |
269
317
  |------|------|---------|
318
+ | `pinned` | `boolean` - sticks the heading to an inline edge, above the cells scrolling under it; the offset is yours, in `style` (see "Pinned columns") | `false` |
270
319
  | `resizable` | `boolean` - draggable and keyboard-resizable trailing edge | `false` |
271
320
  | `resizeMinWidth` | `number` - px floor for this column, overriding the 72 / 32 defaults | - |
272
321
 
322
+ `TableCell`:
323
+
324
+ | Prop | Type | Default |
325
+ |------|------|---------|
326
+ | `pinned` | `boolean` - sticks the cell to an inline edge on the row's fill over an opaque base; the offset is yours, in `style` (see "Pinned columns") | `false` |
327
+
273
328
  The two axes on `Table` are orthogonal: `collection` sets the layout, the
274
329
  header and the row height, and `density` still tightens the cells inside
275
330
  it.
package/dist/index.d.ts CHANGED
@@ -47,10 +47,17 @@ export * from './components/collapsible/public.js';
47
47
  export * from './components/combobox/public.js';
48
48
  export * from './components/command/public.js';
49
49
  export * from './components/context-menu/public.js';
50
+ export * from './components/data-grid/plugins/actions-menu/public.js';
51
+ export * from './components/data-grid/plugins/actions/public.js';
50
52
  export * from './components/data-grid/plugins/empty-state/public.js';
51
53
  export * from './components/data-grid/plugins/filters/public.js';
52
54
  export * from './components/data-grid/plugins/order/public.js';
53
55
  export * from './components/data-grid/plugins/pagination/public.js';
56
+ export * from './components/data-grid/plugins/row-actions/public.js';
57
+ export * from './components/data-grid/plugins/row-click/public.js';
58
+ export * from './components/data-grid/plugins/row-number/public.js';
59
+ export * from './components/data-grid/plugins/row-select/public.js';
60
+ export * from './components/data-grid/plugins/table-configuration/public.js';
54
61
  export * from './components/data-grid/plugins/text-search/public.js';
55
62
  export * from './components/data-grid/public.js';
56
63
  export * from './components/data-table/public.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCA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