@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 +6 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -21835,8 +21835,10 @@ function GridBody({
|
|
|
21835
21835
|
const widths = localWidths ?? presentation.widths;
|
|
21836
21836
|
const columnState = useMemo35(
|
|
21837
21837
|
() => ({
|
|
21838
|
-
|
|
21839
|
-
|
|
21838
|
+
// THE CLASSIC GRID OBEYS THE VIEW TOO (CHAIR-GRID-LINKS 07): with no merged controls the kept
|
|
21839
|
+
// `presentation.hiddenFields` / `columnOrder` still decide what is drawn.
|
|
21840
|
+
order: controls.columns?.order ?? localColumns?.order ?? (presentation.columnOrder?.length ? columnsInKeptOrder(columnIds, presentation.columnOrder) : columnIds),
|
|
21841
|
+
hidden: controls.columns?.hidden ?? localColumns?.hidden ?? presentation.hiddenFields ?? [],
|
|
21840
21842
|
onChange: (drawn) => {
|
|
21841
21843
|
const next = { order: fieldColumnIds(drawn.order, fields.data ?? []), hidden: fieldColumnIds(drawn.hidden, fields.data ?? []) };
|
|
21842
21844
|
if (controls.columns) controls.columns.onChange(next);
|