@ai-matrx/records-ui 0.95.16 → 0.95.17

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.95.17
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records-ui/v0.95.16..npm/records-ui/v0.95.17 -- apps/shared/records-ui`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.95.16
4
10
 
5
11
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/dist/index.cjs CHANGED
@@ -3745,6 +3745,7 @@ function parseGrouping(raw) {
3745
3745
  const collapsed = raw["collapsed"].filter((k) => typeof k === "string");
3746
3746
  if (collapsed.length > 0) out.collapsed = collapsed;
3747
3747
  }
3748
+ if (raw["showColumn"] === true) out.showColumn = true;
3748
3749
  if (Array.isArray(raw["then"])) {
3749
3750
  const then = [];
3750
3751
  for (const level of raw["then"]) {
@@ -20474,6 +20475,7 @@ function GridBody({
20474
20475
  ...facts ? { groupFacts: facts } : {},
20475
20476
  ...!rowsGrouped && view?.order ? { order: view.order } : {},
20476
20477
  ...view?.collapsed ? { collapsed: view.collapsed } : {},
20478
+ ...view?.showColumn ? { showColumn: true } : {},
20477
20479
  ...onPresentationChange ? {
20478
20480
  onColumnIdChange: (columnId) => {
20479
20481
  if (columnId === null) {
@@ -20494,6 +20496,12 @@ function GridBody({
20494
20496
  const current = presentation.grouping;
20495
20497
  if (!current) return;
20496
20498
  writeLook({ ...presentation, grouping: { ...current, collapsed } });
20499
+ },
20500
+ onShowColumnChange: (show) => {
20501
+ const current = presentation.grouping;
20502
+ if (!current) return;
20503
+ const { showColumn: _was, ...rest } = current;
20504
+ writeLook({ ...presentation, grouping: show ? { ...rest, showColumn: true } : rest });
20497
20505
  }
20498
20506
  } : {}
20499
20507
  };