@ai-matrx/records-ui 0.115.42 → 0.115.43
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 +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.115.43
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/records-ui/v0.115.42..npm/records-ui/v0.115.43 -- apps/shared/records-ui`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.115.42
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
12
|
`git diff npm/records-ui/v0.115.41..npm/records-ui/v0.115.42 -- apps/shared/records-ui`).
|
|
7
13
|
No source changes intended and no consumer action required.
|
|
8
14
|
|
|
15
|
+
## 0.115.41
|
|
16
|
+
|
|
17
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
18
|
+
`git diff npm/records-ui/v0.115.40..npm/records-ui/v0.115.41 -- apps/shared/records-ui`).
|
|
19
|
+
No source changes intended and no consumer action required.
|
|
20
|
+
|
|
9
21
|
## 0.115.40
|
|
10
22
|
|
|
11
23
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/index.cjs
CHANGED
|
@@ -35263,10 +35263,12 @@ function TimelineView({
|
|
|
35263
35263
|
const named = (key) => key && fields.some((f) => f.key === key) ? key : null;
|
|
35264
35264
|
const startChosen = "startKey" in picked ? picked.startKey ?? null : has(dates, startKey) ?? named(startKey) ?? onlyCandidate(dates);
|
|
35265
35265
|
const endCandidates = (0, import_react207.useMemo)(() => dates.filter((f) => f.key !== startChosen), [dates, startChosen]);
|
|
35266
|
+
const baselineKeys = (0, import_react207.useMemo)(() => new Set([gantt?.baselineStart ?? "baseline_start", gantt?.baselineEnd ?? "baseline_end"].filter((k) => Boolean(k))), [gantt]);
|
|
35267
|
+
const endAutoCandidates = (0, import_react207.useMemo)(() => endCandidates.filter((f) => !baselineKeys.has(f.key)), [endCandidates, baselineKeys]);
|
|
35266
35268
|
const endAuto = (0, import_react207.useMemo)(() => {
|
|
35267
|
-
const only = onlyCandidate(
|
|
35269
|
+
const only = onlyCandidate(endAutoCandidates);
|
|
35268
35270
|
return only && startChosen && endFollowsStart(rows, startChosen, only) ? only : null;
|
|
35269
|
-
}, [
|
|
35271
|
+
}, [endAutoCandidates, rows, startChosen]);
|
|
35270
35272
|
const endChosen = "endKey" in picked ? picked.endKey ?? null : has(endCandidates, endKey) ?? (endKey !== startChosen ? named(endKey) : null) ?? (endKey === void 0 ? endAuto : null);
|
|
35271
35273
|
const groupCandidates = (0, import_react207.useMemo)(() => groupableFields(fields), [fields]);
|
|
35272
35274
|
const groupChosen = "groupKey" in picked ? picked.groupKey ?? null : has(groupCandidates, groupKey);
|
|
@@ -39367,6 +39369,14 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
|
|
|
39367
39369
|
}, 250);
|
|
39368
39370
|
if (!event.over || !views) return;
|
|
39369
39371
|
const writes = (0, import_views2.planViewDrop)(views, String(event.active.id), String(event.over.id));
|
|
39372
|
+
if (writes.length > 0) {
|
|
39373
|
+
const next = views.map((v) => {
|
|
39374
|
+
const w = writes.find((x) => x.id === v.id);
|
|
39375
|
+
return w ? { ...v, position: w.position, ..."section" in w ? { section: w.section ?? null } : {} } : v;
|
|
39376
|
+
});
|
|
39377
|
+
setViews(next);
|
|
39378
|
+
onViews?.(next);
|
|
39379
|
+
}
|
|
39370
39380
|
for (const w of writes) {
|
|
39371
39381
|
const written = await saveViewPatch(client, tableId, w.id, { position: w.position, ..."section" in w ? { section: w.section ?? null } : {} });
|
|
39372
39382
|
if (!written.ok) {
|