@ai-matrx/records-ui 0.116.96 → 0.116.97
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 +21 -1
- package/dist/{SaveToTable-RV553LQL.js → SaveToTable-GYVIFMJC.js} +3 -3
- package/dist/{chunk-YQW2T27M.js → chunk-IEVLSGJZ.js} +33 -20
- package/dist/chunk-IEVLSGJZ.js.map +1 -0
- package/dist/{chunk-A5XXEX6A.js → chunk-PO7UMIDY.js} +2 -2
- package/dist/{chunk-HEPOU6ZX.js → chunk-TABDUUEC.js} +12 -10
- package/dist/chunk-TABDUUEC.js.map +1 -0
- package/dist/entity-ref.cjs +16 -15
- package/dist/entity-ref.cjs.map +1 -1
- package/dist/entity-ref.js +12 -11
- package/dist/entity-ref.js.map +1 -1
- package/dist/index.cjs +206 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +173 -154
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +42 -29
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-HEPOU6ZX.js.map +0 -1
- package/dist/chunk-YQW2T27M.js.map +0 -1
- /package/dist/{SaveToTable-RV553LQL.js.map → SaveToTable-GYVIFMJC.js.map} +0 -0
- /package/dist/{chunk-A5XXEX6A.js.map → chunk-PO7UMIDY.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.116.
|
|
3
|
+
## 0.116.97
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
7
7
|
|
|
8
|
+
## 0.116.96
|
|
9
|
+
|
|
10
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
11
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
12
|
+
Diff: `git diff a2d79d17eb 720a66aba9 -- apps/shared/records-ui/src`
|
|
13
|
+
|
|
14
|
+
Changed shipped source files (2):
|
|
15
|
+
- `apps/shared/records-ui/src/bare-refusals.ts`
|
|
16
|
+
- `apps/shared/records-ui/src/labels.tsx`
|
|
17
|
+
|
|
18
|
+
## 0.116.95
|
|
19
|
+
|
|
20
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
21
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
22
|
+
Diff: `git diff 62477f88e9 a2d79d17eb -- apps/shared/records-ui/src`
|
|
23
|
+
|
|
24
|
+
Changed shipped source files (2):
|
|
25
|
+
- `apps/shared/records-ui/src/bare-refusals.ts`
|
|
26
|
+
- `apps/shared/records-ui/src/labels.tsx`
|
|
27
|
+
|
|
8
28
|
## 0.116.94
|
|
9
29
|
|
|
10
30
|
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-PO7UMIDY.js";
|
|
8
8
|
import "./chunk-ESNTHDQO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-TABDUUEC.js";
|
|
10
10
|
import "./chunk-6Z537SLG.js";
|
|
11
11
|
import "./chunk-LBZZDHV6.js";
|
|
12
12
|
import "./chunk-K7OX6RG6.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
SaveToTable,
|
|
18
18
|
shapesOfSource
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=SaveToTable-
|
|
20
|
+
//# sourceMappingURL=SaveToTable-GYVIFMJC.js.map
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
useTableRights,
|
|
65
65
|
withoutInternalCodes,
|
|
66
66
|
writeOnTheWinningVersion_exports
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-TABDUUEC.js";
|
|
68
68
|
import {
|
|
69
69
|
kindItemWords,
|
|
70
70
|
kindLabel,
|
|
@@ -393,6 +393,7 @@ function encodeAt(canvas, type, maxWidth, quality) {
|
|
|
393
393
|
import { useState as useState2 } from "react";
|
|
394
394
|
import { AlertTriangleIcon, CheckIcon } from "@ai-matrx/design-system/icons";
|
|
395
395
|
import { BasicInput, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, cn as cn2 } from "@ai-matrx/design-system";
|
|
396
|
+
import { Button as ControlButton } from "@ai-matrx/design-system/controls";
|
|
396
397
|
import {
|
|
397
398
|
MEASURE_UNITS,
|
|
398
399
|
TYPE_WEIGHTS,
|
|
@@ -816,9 +817,9 @@ function ShadowLayersEditor({
|
|
|
816
817
|
k
|
|
817
818
|
)),
|
|
818
819
|
/* @__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 }) }) }),
|
|
819
|
-
/* @__PURE__ */ jsx2("span", { className: "flex items-center justify-end", children: layers.length > 1 ? /* @__PURE__ */ jsx2(
|
|
820
|
+
/* @__PURE__ */ jsx2("span", { className: "flex items-center justify-end", children: layers.length > 1 ? /* @__PURE__ */ jsx2(ControlButton, { type: "button", variant: "quiet", removes: true, disabled, onClick: () => onChange(layers.filter((_, j) => j !== i)), children: "Remove" }) : null })
|
|
820
821
|
] }, i)),
|
|
821
|
-
/* @__PURE__ */ jsx2(
|
|
822
|
+
/* @__PURE__ */ jsx2(ControlButton, { type: "button", variant: "quiet", className: "self-start text-muted-foreground", disabled, onClick: () => onChange([...layers, NEW_LAYER]), children: "+ Layer" })
|
|
822
823
|
] });
|
|
823
824
|
}
|
|
824
825
|
function ShadowEditor({ value, onChange, disabled, id, label }) {
|
|
@@ -833,18 +834,18 @@ function ShadowEditor({ value, onChange, disabled, id, label }) {
|
|
|
833
834
|
return /* @__PURE__ */ jsxs2("span", { className: "flex w-full flex-col gap-2", children: [
|
|
834
835
|
/* @__PURE__ */ jsxs2("span", { className: "flex items-center gap-1", role: "tablist", "aria-label": `${label} theme`, children: [
|
|
835
836
|
["light", "dark"].map((t) => /* @__PURE__ */ jsx2(
|
|
836
|
-
|
|
837
|
+
ControlButton,
|
|
837
838
|
{
|
|
838
839
|
type: "button",
|
|
840
|
+
variant: "quiet",
|
|
839
841
|
role: "tab",
|
|
840
842
|
"aria-selected": theme === t,
|
|
841
|
-
className: cn2("rounded-md px-2 py-0.5 text-xs", theme === t ? "bg-muted text-foreground" : "text-muted-foreground hover:text-foreground"),
|
|
842
843
|
onClick: () => setTheme(t),
|
|
843
844
|
children: t === "light" ? "Light" : "Dark"
|
|
844
845
|
},
|
|
845
846
|
t
|
|
846
847
|
)),
|
|
847
|
-
theme === "dark" && own3 ? /* @__PURE__ */ jsx2(
|
|
848
|
+
theme === "dark" && own3 ? /* @__PURE__ */ jsx2(ControlButton, { type: "button", variant: "link", className: "ml-auto text-muted-foreground", onClick: () => write({ light: pair.light, dark: null }), children: "Same as light" }) : null
|
|
848
849
|
] }),
|
|
849
850
|
/* @__PURE__ */ jsx2(
|
|
850
851
|
ShadowLayersEditor,
|
|
@@ -961,6 +962,7 @@ var DESIGN_LOOK_IDS = DESIGN_LOOKS.map((look) => look.id);
|
|
|
961
962
|
// src/looks/htmlLook.tsx
|
|
962
963
|
import { useEffect as useEffect2, useRef as useRef2, useState as useState3 } from "react";
|
|
963
964
|
import { BasicTextarea, Button as Button2 } from "@ai-matrx/design-system";
|
|
965
|
+
import { Button as ControlButton2 } from "@ai-matrx/design-system/controls";
|
|
964
966
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
965
967
|
var HTML_SAMPLE_LOOK_ID = "html_sample";
|
|
966
968
|
function htmlOf(value) {
|
|
@@ -996,13 +998,15 @@ function HtmlSampleEditor({ value, onChange, disabled, id, label }) {
|
|
|
996
998
|
return /* @__PURE__ */ jsxs3("div", { className: "group relative min-w-0", "data-records-look": "html_sample", children: [
|
|
997
999
|
stored.trim() ? /* @__PURE__ */ jsx3(HtmlSampleFrame, { html: stored, title: label }) : /* @__PURE__ */ jsx3("span", { className: "block py-1 text-sm text-muted-foreground", children: "No sample" }),
|
|
998
1000
|
disabled ? null : /* @__PURE__ */ jsx3(
|
|
999
|
-
|
|
1001
|
+
ControlButton2,
|
|
1000
1002
|
{
|
|
1001
1003
|
type: "button",
|
|
1004
|
+
variant: "quiet",
|
|
1005
|
+
className: "absolute right-0 top-0 font-mono opacity-0 shadow-sm transition-opacity focus-visible:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100",
|
|
1002
1006
|
id,
|
|
1003
1007
|
"aria-label": `Edit ${label} HTML`,
|
|
1004
1008
|
onClick: () => setEditing(true),
|
|
1005
|
-
|
|
1009
|
+
"data-edit-html": "",
|
|
1006
1010
|
children: "</>"
|
|
1007
1011
|
}
|
|
1008
1012
|
)
|
|
@@ -1286,7 +1290,7 @@ function isId(value) {
|
|
|
1286
1290
|
return typeof value === "string" && isUuidShape(value);
|
|
1287
1291
|
}
|
|
1288
1292
|
function copiesAsWords(field2) {
|
|
1289
|
-
return pointsAtRecords(field2) || isSignatureField(field2) || autonumberPrefixOf(field2) !== "";
|
|
1293
|
+
return pointsAtRecords(field2) || isSignatureField(field2) || autonumberPrefixOf(field2) !== "" || isDateField(field2);
|
|
1290
1294
|
}
|
|
1291
1295
|
function pointsAtRecords(field2) {
|
|
1292
1296
|
return field2.type === "list" || field2.type === "relation";
|
|
@@ -1294,6 +1298,8 @@ function pointsAtRecords(field2) {
|
|
|
1294
1298
|
function shownValue(field2, value, labels) {
|
|
1295
1299
|
if (isSignatureField(field2)) return signatureWords(value);
|
|
1296
1300
|
if (autonumberPrefixOf(field2)) return autonumberWords(field2, value) ?? value;
|
|
1301
|
+
const dateWords2 = isDateField(field2) ? dateText(field2, value) : null;
|
|
1302
|
+
if (dateWords2 !== null) return dateWords2;
|
|
1297
1303
|
const newerWords = value === null || value === void 0 ? null : newerKindExportWords(field2, value);
|
|
1298
1304
|
if (newerWords !== null) return newerWords;
|
|
1299
1305
|
const look = value === null || value === void 0 ? void 0 : registeredLook(shownAsOf(field2));
|
|
@@ -3714,6 +3720,7 @@ function linkChipText(raw) {
|
|
|
3714
3720
|
import { useEffect as useEffect10, useRef as useRef9, useState as useState15 } from "react";
|
|
3715
3721
|
import { useOptionalRecordsClient as useOptionalRecordsClient5 } from "@ai-matrx/records/react";
|
|
3716
3722
|
import { Badge as Badge3, Button as Button8, cn as cn10, Dialog, DialogContent, DialogHeader, DialogTitle } from "@ai-matrx/design-system";
|
|
3723
|
+
import { Button as ControlButton3 } from "@ai-matrx/design-system/controls";
|
|
3717
3724
|
import { OutboundLink as OutboundLink4 } from "@ai-matrx/kit/outbound-react";
|
|
3718
3725
|
import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3719
3726
|
function attachmentIdsOf(value) {
|
|
@@ -3797,11 +3804,13 @@ function AttachmentChip({ id, onRemove, onPreview }) {
|
|
|
3797
3804
|
}
|
|
3798
3805
|
),
|
|
3799
3806
|
onRemove ? /* @__PURE__ */ jsx20(
|
|
3800
|
-
|
|
3807
|
+
ControlButton3,
|
|
3801
3808
|
{
|
|
3802
3809
|
type: "button",
|
|
3810
|
+
variant: "quiet",
|
|
3811
|
+
removes: true,
|
|
3803
3812
|
"aria-label": `Remove ${words}`,
|
|
3804
|
-
className: "absolute -right-1 -top-1
|
|
3813
|
+
className: "absolute -right-1 -top-1",
|
|
3805
3814
|
onClick: (event) => {
|
|
3806
3815
|
event.stopPropagation();
|
|
3807
3816
|
onRemove();
|
|
@@ -3828,10 +3837,11 @@ function AttachmentChip({ id, onRemove, onPreview }) {
|
|
|
3828
3837
|
} : {},
|
|
3829
3838
|
children: [
|
|
3830
3839
|
onPreview ? /* @__PURE__ */ jsx20(
|
|
3831
|
-
|
|
3840
|
+
ControlButton3,
|
|
3832
3841
|
{
|
|
3833
3842
|
type: "button",
|
|
3834
|
-
|
|
3843
|
+
variant: "link",
|
|
3844
|
+
className: "truncate",
|
|
3835
3845
|
"data-records-file-preview": id,
|
|
3836
3846
|
onClick: (event) => {
|
|
3837
3847
|
event.stopPropagation();
|
|
@@ -3853,11 +3863,13 @@ function AttachmentChip({ id, onRemove, onPreview }) {
|
|
|
3853
3863
|
}
|
|
3854
3864
|
) : /* @__PURE__ */ jsx20("span", { className: "truncate", children: words }),
|
|
3855
3865
|
onRemove ? /* @__PURE__ */ jsx20(
|
|
3856
|
-
|
|
3866
|
+
ControlButton3,
|
|
3857
3867
|
{
|
|
3858
3868
|
type: "button",
|
|
3869
|
+
variant: "quiet",
|
|
3870
|
+
removes: true,
|
|
3859
3871
|
"aria-label": `Remove ${words}`,
|
|
3860
|
-
className: "shrink-0
|
|
3872
|
+
className: "shrink-0",
|
|
3861
3873
|
onClick: (event) => {
|
|
3862
3874
|
event.stopPropagation();
|
|
3863
3875
|
onRemove();
|
|
@@ -4631,13 +4643,13 @@ import {
|
|
|
4631
4643
|
PopoverTrigger as PopoverTrigger3,
|
|
4632
4644
|
cn as cn13
|
|
4633
4645
|
} from "@ai-matrx/design-system";
|
|
4634
|
-
import { PropertyRow } from "@ai-matrx/design-system/controls";
|
|
4646
|
+
import { Button as ControlButton4, PropertyRow } from "@ai-matrx/design-system/controls";
|
|
4635
4647
|
import { AlchemyMenu } from "@ai-matrx/alchemy/react";
|
|
4636
4648
|
import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
4637
4649
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4638
4650
|
import { momentZoneOptions } from "@ai-matrx/design-system/field-formats";
|
|
4639
4651
|
import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4640
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4652
|
+
var SaveToTable = lazy(() => import("./SaveToTable-GYVIFMJC.js").then((m) => ({ default: m.SaveToTable })));
|
|
4641
4653
|
var LONGEST_READ = 5e5;
|
|
4642
4654
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4643
4655
|
function isPlainObject(v) {
|
|
@@ -4931,10 +4943,11 @@ function StructuredCell({ structured, label }) {
|
|
|
4931
4943
|
const picture = isPlainObject(first) ? Object.entries(first).find(([k, v]) => isImageUrl(v, k))?.[1] : void 0;
|
|
4932
4944
|
return /* @__PURE__ */ jsxs20(Popover3, { children: [
|
|
4933
4945
|
/* @__PURE__ */ jsx25(PopoverTrigger3, { asChild: true, children: /* @__PURE__ */ jsxs20(
|
|
4934
|
-
|
|
4946
|
+
ControlButton4,
|
|
4935
4947
|
{
|
|
4936
4948
|
type: "button",
|
|
4937
|
-
|
|
4949
|
+
variant: "quiet",
|
|
4950
|
+
className: "min-w-0 max-w-full text-left",
|
|
4938
4951
|
"data-records-structured-cell": "",
|
|
4939
4952
|
onClick: stop,
|
|
4940
4953
|
onDoubleClick: stop,
|
|
@@ -14307,4 +14320,4 @@ export {
|
|
|
14307
14320
|
RecordNameText,
|
|
14308
14321
|
HeldChangeDecision
|
|
14309
14322
|
};
|
|
14310
|
-
//# sourceMappingURL=chunk-
|
|
14323
|
+
//# sourceMappingURL=chunk-IEVLSGJZ.js.map
|