@ai-matrx/records-ui 0.101.17 → 0.101.18

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.101.18
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records-ui/v0.101.17..npm/records-ui/v0.101.18 -- apps/shared/records-ui`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.101.17
4
10
 
5
11
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/dist/index.cjs CHANGED
@@ -22112,8 +22112,10 @@ function GridBody({
22112
22112
  const widths = localWidths ?? presentation.widths;
22113
22113
  const columnState = (0, import_react108.useMemo)(
22114
22114
  () => ({
22115
- order: controls.columns?.order ?? localColumns?.order ?? columnIds,
22116
- hidden: controls.columns?.hidden ?? localColumns?.hidden ?? [],
22115
+ // THE CLASSIC GRID OBEYS THE VIEW TOO (CHAIR-GRID-LINKS 07): with no merged controls the kept
22116
+ // `presentation.hiddenFields` / `columnOrder` still decide what is drawn.
22117
+ order: controls.columns?.order ?? localColumns?.order ?? (presentation.columnOrder?.length ? columnsInKeptOrder(columnIds, presentation.columnOrder) : columnIds),
22118
+ hidden: controls.columns?.hidden ?? localColumns?.hidden ?? presentation.hiddenFields ?? [],
22117
22119
  onChange: (drawn) => {
22118
22120
  const next = { order: fieldColumnIds(drawn.order, fields.data ?? []), hidden: fieldColumnIds(drawn.hidden, fields.data ?? []) };
22119
22121
  if (controls.columns) controls.columns.onChange(next);