@ai-matrx/records-ui 0.95.16 → 0.95.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 +12 -0
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/object-actions.cjs +1 -1
- package/dist/object-actions.cjs.map +1 -1
- package/dist/object-actions.d.cts +1 -1
- package/dist/object-actions.d.ts +1 -1
- package/dist/object-actions.js +1 -1
- package/dist/object-actions.js.map +1 -1
- package/dist/{objectActions-CUR8KdPr.d.cts → objectActions-XkhxU-DP.d.cts} +2 -2
- package/dist/{objectActions-CUR8KdPr.d.ts → objectActions-XkhxU-DP.d.ts} +2 -2
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.95.18
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/records-ui/v0.95.17..npm/records-ui/v0.95.18 -- apps/shared/records-ui`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.95.17
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/records-ui/v0.95.16..npm/records-ui/v0.95.17 -- apps/shared/records-ui`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.95.16
|
|
4
16
|
|
|
5
17
|
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
|
};
|
|
@@ -22217,7 +22225,7 @@ var OBJECT_ACTION_GROUPS = [
|
|
|
22217
22225
|
var GROUP_IDS = new Set(OBJECT_ACTION_GROUPS.map((g) => g.id));
|
|
22218
22226
|
var DEFAULT_ACTION_ORIGIN = "https://www.aimatrx.com";
|
|
22219
22227
|
function tableLink(tableId, origin = DEFAULT_ACTION_ORIGIN) {
|
|
22220
|
-
return `${origin.replace(/\/+$/, "")}/data
|
|
22228
|
+
return `${origin.replace(/\/+$/, "")}/data/${encodeURIComponent(tableId)}`;
|
|
22221
22229
|
}
|
|
22222
22230
|
function makeDefaultWords(layoutLabel) {
|
|
22223
22231
|
return layoutLabel ? `Make ${layoutLabel} the default` : "Make this the default";
|
|
@@ -25883,7 +25891,7 @@ var import_design_system76 = require("@ai-matrx/design-system");
|
|
|
25883
25891
|
|
|
25884
25892
|
// src/recordActions.ts
|
|
25885
25893
|
function recordLink(tableId, recordId, origin = DEFAULT_ACTION_ORIGIN) {
|
|
25886
|
-
return `${origin.replace(/\/+$/, "")}/data
|
|
25894
|
+
return `${origin.replace(/\/+$/, "")}/data/${encodeURIComponent(tableId)}?record=${encodeURIComponent(recordId)}`;
|
|
25887
25895
|
}
|
|
25888
25896
|
var NOOP2 = () => {
|
|
25889
25897
|
};
|