@ai-matrx/records-ui 0.116.24 → 0.116.25
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 +16 -1
- package/README.md +3 -3
- package/dist/SaveToTable-P3MPRSCW.js +20 -0
- package/dist/{chunk-MUK63ANA.js → chunk-4ZS4WEEE.js} +3 -3
- package/dist/chunk-4ZS4WEEE.js.map +1 -0
- package/dist/{chunk-SYHUPGCU.js → chunk-6Z537SLG.js} +1 -1
- package/dist/{chunk-SYHUPGCU.js.map → chunk-6Z537SLG.js.map} +1 -1
- package/dist/{chunk-ODABFEHG.js → chunk-7RSMA3NK.js} +3 -3
- package/dist/chunk-7RSMA3NK.js.map +1 -0
- package/dist/{chunk-VHZKLE63.js → chunk-FLIERNH7.js} +9 -9
- package/dist/chunk-FLIERNH7.js.map +1 -0
- package/dist/{chunk-ZNIXJ5RY.js → chunk-KQR2RA4V.js} +3 -3
- package/dist/{chunk-WQGFKNE2.js → chunk-OJTJ4HJI.js} +26 -26
- package/dist/chunk-OJTJ4HJI.js.map +1 -0
- package/dist/{chunk-PPWNFIJ5.js → chunk-OV6QBL5R.js} +2 -2
- package/dist/{chunk-PPWNFIJ5.js.map → chunk-OV6QBL5R.js.map} +1 -1
- package/dist/{chunk-5IX4BL72.js → chunk-QBMUTXTQ.js} +2 -2
- package/dist/{chunk-5IX4BL72.js.map → chunk-QBMUTXTQ.js.map} +1 -1
- package/dist/{chunk-MCDA6L7E.js → chunk-TC5S4VOW.js} +2 -2
- package/dist/chunk-TC5S4VOW.js.map +1 -0
- package/dist/{chunk-FECWKOWW.js → chunk-W7GR64CB.js} +1 -1
- package/dist/chunk-W7GR64CB.js.map +1 -0
- package/dist/{chunk-FHL4GG6R.js → chunk-WCQSJPLS.js} +2 -2
- package/dist/chunk-WCQSJPLS.js.map +1 -0
- package/dist/data-source.cjs.map +1 -1
- package/dist/data-source.d.cts +1 -1
- package/dist/data-source.d.ts +1 -1
- package/dist/data-source.js.map +1 -1
- package/dist/first-page.cjs.map +1 -1
- package/dist/first-page.d.cts +1 -1
- package/dist/first-page.d.ts +1 -1
- package/dist/first-page.js.map +1 -1
- package/dist/helpers.cjs +4 -4
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +9 -9
- package/dist/helpers.d.ts +9 -9
- package/dist/helpers.js +4 -4
- package/dist/helpers.js.map +1 -1
- package/dist/html-frame.cjs.map +1 -1
- package/dist/html-frame.d.cts +1 -1
- package/dist/html-frame.d.ts +1 -1
- package/dist/html-frame.js +1 -1
- package/dist/index.cjs +147 -116
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -46
- package/dist/index.d.ts +46 -46
- package/dist/index.js +133 -102
- package/dist/index.js.map +1 -1
- package/dist/object-actions.cjs +2 -2
- package/dist/object-actions.cjs.map +1 -1
- package/dist/object-actions.js +3 -3
- package/dist/pickers.cjs +23 -23
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +8 -8
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.js +4 -4
- package/dist/table-shape.cjs.map +1 -1
- package/dist/table-shape.js +1 -1
- package/package.json +4 -4
- package/dist/SaveToTable-PGOQVYVS.js +0 -20
- package/dist/chunk-FECWKOWW.js.map +0 -1
- package/dist/chunk-FHL4GG6R.js.map +0 -1
- package/dist/chunk-MCDA6L7E.js.map +0 -1
- package/dist/chunk-MUK63ANA.js.map +0 -1
- package/dist/chunk-ODABFEHG.js.map +0 -1
- package/dist/chunk-VHZKLE63.js.map +0 -1
- package/dist/chunk-WQGFKNE2.js.map +0 -1
- /package/dist/{SaveToTable-PGOQVYVS.js.map → SaveToTable-P3MPRSCW.js.map} +0 -0
- /package/dist/{chunk-ZNIXJ5RY.js.map → chunk-KQR2RA4V.js.map} +0 -0
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
LEVEL_WORD,
|
|
4
4
|
levelNeededFor
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OV6QBL5R.js";
|
|
6
6
|
import {
|
|
7
7
|
ADD_FIELD_OPEN_LABEL
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WCQSJPLS.js";
|
|
9
9
|
|
|
10
10
|
// src/objectActions.ts
|
|
11
11
|
import { formatTapShortcut } from "@ai-matrx/design-system/tap-target";
|
|
@@ -245,4 +245,4 @@ export {
|
|
|
245
245
|
STRIP_FEATURE_ROWS,
|
|
246
246
|
toStripAndRows
|
|
247
247
|
};
|
|
248
|
-
//# sourceMappingURL=chunk-
|
|
248
|
+
//# sourceMappingURL=chunk-KQR2RA4V.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
isYearValue,
|
|
6
6
|
shownAsOf,
|
|
7
7
|
useEmbeddedLook
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TC5S4VOW.js";
|
|
9
9
|
import {
|
|
10
10
|
HtmlSampleFrame,
|
|
11
11
|
HtmlSampleTokensProvider
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-W7GR64CB.js";
|
|
13
13
|
import {
|
|
14
14
|
ABSENCE_WORD_LABEL,
|
|
15
15
|
CONTEXT_POLICY_LABEL,
|
|
@@ -54,14 +54,14 @@ import {
|
|
|
54
54
|
useRecordsUi,
|
|
55
55
|
useTableRights,
|
|
56
56
|
withoutInternalCodes
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-7RSMA3NK.js";
|
|
58
58
|
import {
|
|
59
59
|
kindItemWords,
|
|
60
60
|
kindLabel,
|
|
61
61
|
kindValueOf,
|
|
62
62
|
kindValueWords,
|
|
63
63
|
shapeOfValue
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-6Z537SLG.js";
|
|
65
65
|
import {
|
|
66
66
|
carriesTimeOfDay,
|
|
67
67
|
choiceChipLookOf,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
pickableTypeOf,
|
|
78
78
|
storedChoiceColor,
|
|
79
79
|
systemStampOf
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-4ZS4WEEE.js";
|
|
81
81
|
import {
|
|
82
82
|
ADD_FIELD_SAVE_LABEL,
|
|
83
83
|
EDIT_FIELD_SAVE_LABEL,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
isPlainFieldType,
|
|
92
92
|
isRelationFieldType,
|
|
93
93
|
isSystemFieldKind
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-WCQSJPLS.js";
|
|
95
95
|
import {
|
|
96
96
|
__reExport
|
|
97
97
|
} from "./chunk-HKYEHBQT.js";
|
|
@@ -533,7 +533,7 @@ function ColorWell({
|
|
|
533
533
|
BasicInput,
|
|
534
534
|
{
|
|
535
535
|
type: "color",
|
|
536
|
-
"aria-label": `${label}: pick a
|
|
536
|
+
"aria-label": `${label}: pick a color`,
|
|
537
537
|
className: "h-7 w-8 shrink-0 p-0.5",
|
|
538
538
|
value: value && HEX_6.test(value) ? value : "#000000",
|
|
539
539
|
disabled,
|
|
@@ -619,7 +619,7 @@ function colorPairChecks(value, format, context) {
|
|
|
619
619
|
message: `hard to read on ${ground}`,
|
|
620
620
|
fix: {
|
|
621
621
|
label: "Fix with AI",
|
|
622
|
-
ask: `The ${part}
|
|
622
|
+
ask: `The ${part} color ${color} reads at ${ratio}:1 on ${ground}. Suggest the nearest color that reaches 4.5:1 and keeps its hue.`
|
|
623
623
|
}
|
|
624
624
|
});
|
|
625
625
|
}
|
|
@@ -849,7 +849,7 @@ function ShadowLayersEditor({
|
|
|
849
849
|
},
|
|
850
850
|
k
|
|
851
851
|
)),
|
|
852
|
-
/* @__PURE__ */ jsx2("span", { className: "col-span-3", children: /* @__PURE__ */ jsx2(ColorWell, { id: i === 0 ? id : `${id}-${i}`, label: `${label} layer ${i + 1}
|
|
852
|
+
/* @__PURE__ */ jsx2("span", { className: "col-span-3", children: /* @__PURE__ */ jsx2(ColorWell, { id: i === 0 ? id : `${id}-${i}`, label: `${label} layer ${i + 1} color`, value: layer.color, disabled, onChange: (c) => c && set(i, { color: c }) }) }),
|
|
853
853
|
/* @__PURE__ */ jsx2("span", { className: "flex items-center justify-end", children: layers.length > 1 ? /* @__PURE__ */ jsx2("button", { type: "button", disabled, className: "text-xs text-muted-foreground hover:text-foreground", onClick: () => onChange(layers.filter((_, j) => j !== i)), children: "Remove" }) : null })
|
|
854
854
|
] }, i)),
|
|
855
855
|
/* @__PURE__ */ jsx2("button", { type: "button", disabled, className: "self-start text-xs text-muted-foreground hover:text-foreground", onClick: () => onChange([...layers, NEW_LAYER]), children: "+ Layer" })
|
|
@@ -1084,10 +1084,10 @@ function htmlSampleChecks(value, _format) {
|
|
|
1084
1084
|
const outsideFallbacks = styles.replace(/var\([^()]*(\([^()]*\))?[^()]*\)/g, "");
|
|
1085
1085
|
if (FIXED_COLOUR.test(outsideFallbacks)) {
|
|
1086
1086
|
out.push({
|
|
1087
|
-
message: "fixed
|
|
1087
|
+
message: "fixed colors, not the theme's",
|
|
1088
1088
|
fix: {
|
|
1089
1089
|
label: "Use tokens",
|
|
1090
|
-
ask: "Rewrite this HTML sample so every
|
|
1090
|
+
ask: "Rewrite this HTML sample so every color is one of the design system's CSS variables (var(--background), var(--foreground), var(--primary), var(--border)\u2026), keeping the markup and the look the same, so it follows light and dark."
|
|
1091
1091
|
}
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
@@ -4773,7 +4773,7 @@ import { AlchemyMenu } from "@ai-matrx/alchemy/react";
|
|
|
4773
4773
|
import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
4774
4774
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4775
4775
|
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4776
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4776
|
+
var SaveToTable = lazy(() => import("./SaveToTable-P3MPRSCW.js").then((m) => ({ default: m.SaveToTable })));
|
|
4777
4777
|
var LONGEST_READ = 5e5;
|
|
4778
4778
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4779
4779
|
function isPlainObject(v) {
|
|
@@ -7799,8 +7799,8 @@ import { PORTAL_ACCENTS } from "@ai-matrx/records";
|
|
|
7799
7799
|
import { cn as cn16 } from "@ai-matrx/design-system";
|
|
7800
7800
|
import { STYLE_COLOR_LABELS, SWATCH_CLASS as SWATCH_CLASS2 } from "@ai-matrx/design-system/data-table";
|
|
7801
7801
|
import { jsx as jsx34, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7802
|
-
function AccentSwatches({ value, onChange, options = PORTAL_ACCENTS, noneLabel = "App
|
|
7803
|
-
return /* @__PURE__ */ jsxs30("div", { className: "flex flex-wrap gap-1.5", role: "radiogroup", "aria-label": "
|
|
7802
|
+
function AccentSwatches({ value, onChange, options = PORTAL_ACCENTS, noneLabel = "App color" }) {
|
|
7803
|
+
return /* @__PURE__ */ jsxs30("div", { className: "flex flex-wrap gap-1.5", role: "radiogroup", "aria-label": "Color", children: [
|
|
7804
7804
|
/* @__PURE__ */ jsx34(
|
|
7805
7805
|
"button",
|
|
7806
7806
|
{
|
|
@@ -7972,7 +7972,7 @@ function ButtonSettingsEditor({
|
|
|
7972
7972
|
] })
|
|
7973
7973
|
] }),
|
|
7974
7974
|
/* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-1", children: [
|
|
7975
|
-
/* @__PURE__ */ jsx36(Label8, { className: "text-xs", children: "
|
|
7975
|
+
/* @__PURE__ */ jsx36(Label8, { className: "text-xs", children: "Color" }),
|
|
7976
7976
|
/* @__PURE__ */ jsx36(
|
|
7977
7977
|
AccentSwatches,
|
|
7978
7978
|
{
|
|
@@ -8449,9 +8449,9 @@ function FieldEditor(props) {
|
|
|
8449
8449
|
// patch never carried it, so the tick beside "Can hold more than one"
|
|
8450
8450
|
// was decoration on an existing column — and the store's own roll-up
|
|
8451
8451
|
// refusal tells a person to use exactly that tick. It is sent ALONE:
|
|
8452
|
-
// `custom.field_update`
|
|
8453
|
-
// migration (before it, the door read `multi` only inside its
|
|
8454
|
-
// arm, answered "saved" and changed nothing), so there is no
|
|
8452
|
+
// `custom.field_update` honors a `multi`-only patch since FIX-7B-FIELD's
|
|
8453
|
+
// migration (before it, the door read `multi` only inside its behavior
|
|
8454
|
+
// arm, answered "saved" and changed nothing), so there is no behavior
|
|
8455
8455
|
// word to send beside it and sending one would retype a column nobody
|
|
8456
8456
|
// asked to retype.
|
|
8457
8457
|
...multiApplies(type) ? { multi: isTitle ? false : multi } : {},
|
|
@@ -8553,7 +8553,7 @@ function FieldEditor(props) {
|
|
|
8553
8553
|
...type === "modified_time" && watchFields.length ? { config: { only_fields: watchFields } } : {},
|
|
8554
8554
|
...type === "autonumber" && numberPrefix.trim() !== "" ? { display_format: { id: "autonumber", options: { prefix: numberPrefix.trim() } } } : {},
|
|
8555
8555
|
...type === "count" ? { via } : {},
|
|
8556
|
-
// THE
|
|
8556
|
+
// THE COLORS ITS CHOICES WERE GIVEN (W1-B), on the Field's look in the same declaration:
|
|
8557
8557
|
// both declare doors build the Field through `custom._field_document_for`, which keeps a
|
|
8558
8558
|
// `display_format` it is handed — so the grid paints them from its first draw.
|
|
8559
8559
|
...(() => {
|
|
@@ -9889,7 +9889,7 @@ function formatControl(args) {
|
|
|
9889
9889
|
{
|
|
9890
9890
|
id: `${id}-swatch`,
|
|
9891
9891
|
type: "color",
|
|
9892
|
-
"aria-label": `${label} \u2014 pick a
|
|
9892
|
+
"aria-label": `${label} \u2014 pick a color`,
|
|
9893
9893
|
className: "h-8 w-12 p-1",
|
|
9894
9894
|
value: /^#[0-9a-fA-F]{6}$/.test(text) ? text : "#000000",
|
|
9895
9895
|
disabled,
|
|
@@ -11298,8 +11298,8 @@ function ChoiceSwatch({ words, color, onColor }) {
|
|
|
11298
11298
|
"button",
|
|
11299
11299
|
{
|
|
11300
11300
|
type: "button",
|
|
11301
|
-
"aria-label": `
|
|
11302
|
-
title: color ? STYLE_COLOR_LABELS2[color] : "No
|
|
11301
|
+
"aria-label": `Color for ${words}: ${color ? STYLE_COLOR_LABELS2[color] : "none"}`,
|
|
11302
|
+
title: color ? STYLE_COLOR_LABELS2[color] : "No color",
|
|
11303
11303
|
"data-records-choice-swatch": color ?? "none",
|
|
11304
11304
|
className: cn21(
|
|
11305
11305
|
"h-4 w-4 shrink-0 rounded-full",
|
|
@@ -11307,15 +11307,15 @@ function ChoiceSwatch({ words, color, onColor }) {
|
|
|
11307
11307
|
)
|
|
11308
11308
|
}
|
|
11309
11309
|
) }),
|
|
11310
|
-
/* @__PURE__ */ jsx43(PopoverContent7, { sizing: "content", align: "start", className: "p-2", children: /* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-1", role: "radiogroup", "aria-label": `
|
|
11310
|
+
/* @__PURE__ */ jsx43(PopoverContent7, { sizing: "content", align: "start", className: "p-2", children: /* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-1", role: "radiogroup", "aria-label": `Color for ${words}`, children: [
|
|
11311
11311
|
/* @__PURE__ */ jsx43(
|
|
11312
11312
|
"button",
|
|
11313
11313
|
{
|
|
11314
11314
|
type: "button",
|
|
11315
11315
|
role: "radio",
|
|
11316
11316
|
"aria-checked": color === null,
|
|
11317
|
-
"aria-label": "No
|
|
11318
|
-
title: "No
|
|
11317
|
+
"aria-label": "No color",
|
|
11318
|
+
title: "No color",
|
|
11319
11319
|
onClick: () => pick(null),
|
|
11320
11320
|
className: cn21("h-5 w-5 rounded-full border border-border bg-background", color === null && "ring-2 ring-ring ring-offset-1")
|
|
11321
11321
|
}
|
|
@@ -12233,4 +12233,4 @@ export {
|
|
|
12233
12233
|
RecordNameText,
|
|
12234
12234
|
HeldChangeDecision
|
|
12235
12235
|
};
|
|
12236
|
-
//# sourceMappingURL=chunk-
|
|
12236
|
+
//# sourceMappingURL=chunk-OJTJ4HJI.js.map
|