@ai-matrx/records-ui 0.116.63 → 0.116.65
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 +26 -1
- package/dist/{SaveToTable-VPLDWCSU.js → SaveToTable-OYJH3OKN.js} +3 -3
- package/dist/{chunk-WXYI4DKC.js → chunk-EACZUXJO.js} +2 -2
- package/dist/{chunk-X2WDIQIR.js → chunk-GLSY7IZC.js} +23 -4
- package/dist/{chunk-X2WDIQIR.js.map → chunk-GLSY7IZC.js.map} +1 -1
- package/dist/{chunk-4KWCNW7V.js → chunk-ZX4EFZSB.js} +2 -2
- package/dist/{chunk-4KWCNW7V.js.map → chunk-ZX4EFZSB.js.map} +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +1 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +22 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +15 -2
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +5 -5
- /package/dist/{SaveToTable-VPLDWCSU.js.map → SaveToTable-OYJH3OKN.js.map} +0 -0
- /package/dist/{chunk-WXYI4DKC.js.map → chunk-EACZUXJO.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -40,11 +40,36 @@
|
|
|
40
40
|
- Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
|
|
41
41
|
- **New subpath `@ai-matrx/records-ui/data-source`:** `recordsDataSource`, `personActor` and the who-changed words (`whenWords`, `actorWords`, `actorBadge`, `lastChangeSentence`, `SOMEBODY`, `THE_SYSTEM`) alone. `/helpers` also carries the field-type words, the colour resolver and the table builders, which read `@ai-matrx/records/core`; this entry reaches `@ai-matrx/kit` only, and shares the one data-source cache with `/helpers` and the root. Additive. Consumer action: a shell-reachable service that only binds its supabase client or says when imports from `/data-source`.
|
|
42
42
|
|
|
43
|
-
## 0.116.
|
|
43
|
+
## 0.116.65
|
|
44
44
|
|
|
45
45
|
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
46
46
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
47
47
|
|
|
48
|
+
## 0.116.64
|
|
49
|
+
|
|
50
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
51
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
52
|
+
Diff: `git diff 996211f8f7 9e86d982ea -- apps/shared/records-ui/src`
|
|
53
|
+
|
|
54
|
+
Changed shipped source files (2):
|
|
55
|
+
- `apps/shared/records-ui/src/Condition.tsx`
|
|
56
|
+
- `apps/shared/records-ui/src/ViewFilter.tsx`
|
|
57
|
+
|
|
58
|
+
## 0.116.63
|
|
59
|
+
|
|
60
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
61
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
62
|
+
Diff: `git diff 5245b516bd 996211f8f7 -- apps/shared/records-ui/src`
|
|
63
|
+
|
|
64
|
+
Changed shipped source files (7):
|
|
65
|
+
- `apps/shared/records-ui/src/DigestScheduler.tsx`
|
|
66
|
+
- `apps/shared/records-ui/src/Grid.tsx`
|
|
67
|
+
- `apps/shared/records-ui/src/TablePage.tsx`
|
|
68
|
+
- `apps/shared/records-ui/src/ViewFilter.tsx`
|
|
69
|
+
- `apps/shared/records-ui/src/ViewSwitcher.tsx`
|
|
70
|
+
- `apps/shared/records-ui/src/gridLook.ts`
|
|
71
|
+
- `apps/shared/records-ui/src/gridPage.ts`
|
|
72
|
+
|
|
48
73
|
## 0.116.62
|
|
49
74
|
|
|
50
75
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
SAVE_TO_TABLE_TYPES,
|
|
5
5
|
SaveToTable,
|
|
6
6
|
shapesOfSource
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EACZUXJO.js";
|
|
8
8
|
import "./chunk-ABIUJCNS.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-ZX4EFZSB.js";
|
|
10
10
|
import "./chunk-6Z537SLG.js";
|
|
11
11
|
import "./chunk-LBZZDHV6.js";
|
|
12
12
|
import "./chunk-TEYXG4XD.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
SaveToTable,
|
|
18
18
|
shapesOfSource
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=SaveToTable-
|
|
20
|
+
//# sourceMappingURL=SaveToTable-OYJH3OKN.js.map
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
useChoiceNudge,
|
|
25
25
|
useRecordsUi,
|
|
26
26
|
useTableRights
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZX4EFZSB.js";
|
|
28
28
|
import {
|
|
29
29
|
guessColumn,
|
|
30
30
|
readTableShapes,
|
|
@@ -5093,4 +5093,4 @@ export {
|
|
|
5093
5093
|
shapesOfSource,
|
|
5094
5094
|
SaveToTable
|
|
5095
5095
|
};
|
|
5096
|
-
//# sourceMappingURL=chunk-
|
|
5096
|
+
//# sourceMappingURL=chunk-EACZUXJO.js.map
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
useRecordsUi,
|
|
56
56
|
useTableRights,
|
|
57
57
|
withoutInternalCodes
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ZX4EFZSB.js";
|
|
59
59
|
import {
|
|
60
60
|
kindItemWords,
|
|
61
61
|
kindLabel,
|
|
@@ -4775,7 +4775,7 @@ import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
|
4775
4775
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4776
4776
|
import { momentZoneOptions } from "@ai-matrx/design-system/field-formats";
|
|
4777
4777
|
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4778
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4778
|
+
var SaveToTable = lazy(() => import("./SaveToTable-OYJH3OKN.js").then((m) => ({ default: m.SaveToTable })));
|
|
4779
4779
|
var LONGEST_READ = 5e5;
|
|
4780
4780
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4781
4781
|
function isPlainObject(v) {
|
|
@@ -5562,6 +5562,11 @@ function linkedOf(expr) {
|
|
|
5562
5562
|
return { via: rel["field"], inner: a["field"], op: match === "any" ? "eq" : "ne", value: b["const"] };
|
|
5563
5563
|
}
|
|
5564
5564
|
var FilterTermsContext = createContext3(false);
|
|
5565
|
+
var WithheldConditionFieldsContext = createContext3([]);
|
|
5566
|
+
function withheldConditionFields(fields, withheldKeys) {
|
|
5567
|
+
const withheld = new Set(withheldKeys ?? []);
|
|
5568
|
+
return fields.filter((f) => withheld.has(f.key)).map((f) => ({ id: f.id, key: f.key, label: f.label || f.key }));
|
|
5569
|
+
}
|
|
5565
5570
|
var RELATIVE_DAY_TERMS = [
|
|
5566
5571
|
{ kind: "today", label: "is today" },
|
|
5567
5572
|
{ kind: "tomorrow", label: "is tomorrow" },
|
|
@@ -5815,6 +5820,7 @@ function conditionValue(typed) {
|
|
|
5815
5820
|
function ConditionRow({ lead, expr, fields, onChange, emptyLabel = "always", className }) {
|
|
5816
5821
|
const node = expr ?? null;
|
|
5817
5822
|
const filterTerms = useContext2(FilterTermsContext);
|
|
5823
|
+
const withheldFields = useContext2(WithheldConditionFieldsContext);
|
|
5818
5824
|
const choiceListTerms = useContext2(ChoiceListTermsContext) || filterTerms;
|
|
5819
5825
|
const relative = relativeDayOf(expr);
|
|
5820
5826
|
const reader = meOf(expr);
|
|
@@ -5880,7 +5886,18 @@ function ConditionRow({ lead, expr, fields, onChange, emptyLabel = "always", cla
|
|
|
5880
5886
|
attrs: { "data-condition": "field" }
|
|
5881
5887
|
}
|
|
5882
5888
|
),
|
|
5883
|
-
onField && !fields.some((f) => f.id === onField) ? /* @__PURE__ */
|
|
5889
|
+
onField && !fields.some((f) => f.id === onField) && withheldFields.some((f) => f.id === onField) ? /* @__PURE__ */ jsxs25(
|
|
5890
|
+
"span",
|
|
5891
|
+
{
|
|
5892
|
+
className: "rounded bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground",
|
|
5893
|
+
title: "This column is withheld from you, so this condition is skipped.",
|
|
5894
|
+
"data-records-condition-withheld": "",
|
|
5895
|
+
children: [
|
|
5896
|
+
withheldFields.find((f) => f.id === onField).label,
|
|
5897
|
+
" (withheld)"
|
|
5898
|
+
]
|
|
5899
|
+
}
|
|
5900
|
+
) : onField && !fields.some((f) => f.id === onField) ? /* @__PURE__ */ jsx29(
|
|
5884
5901
|
"span",
|
|
5885
5902
|
{
|
|
5886
5903
|
className: "rounded bg-destructive px-1.5 py-0.5 text-[11px] font-medium text-destructive-foreground",
|
|
@@ -12418,6 +12435,8 @@ export {
|
|
|
12418
12435
|
cardWords,
|
|
12419
12436
|
CONDITION_OPS,
|
|
12420
12437
|
FilterTermsContext,
|
|
12438
|
+
WithheldConditionFieldsContext,
|
|
12439
|
+
withheldConditionFields,
|
|
12421
12440
|
conditionIsSimple,
|
|
12422
12441
|
conditionInWords,
|
|
12423
12442
|
conditionValue,
|
|
@@ -12473,4 +12492,4 @@ export {
|
|
|
12473
12492
|
RecordNameText,
|
|
12474
12493
|
HeldChangeDecision
|
|
12475
12494
|
};
|
|
12476
|
-
//# sourceMappingURL=chunk-
|
|
12495
|
+
//# sourceMappingURL=chunk-GLSY7IZC.js.map
|