@ai-matrx/records-ui 0.116.95 → 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-DTYCAGIK.js → chunk-IEVLSGJZ.js} +30 -19
- 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 +166 -134
- 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 +3 -3
- package/dist/chunk-DTYCAGIK.js.map +0 -1
- package/dist/chunk-HEPOU6ZX.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/dist/index.cjs
CHANGED
|
@@ -1100,31 +1100,31 @@ function RefusalNotice({
|
|
|
1100
1100
|
const plain3 = refusalTimedOut(error) ? { ...said2, sentence: import_design_system6.TIMED_OUT_SENTENCE, storeSaid: true } : said2;
|
|
1101
1101
|
const doors = onKeepEditing || onDiscard || onRetry ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex flex-wrap items-center gap-1 pt-0.5", "data-refusal-doors": "", children: [
|
|
1102
1102
|
onRetry ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1103
|
-
|
|
1103
|
+
import_controls3.Button,
|
|
1104
1104
|
{
|
|
1105
1105
|
type: "button",
|
|
1106
|
+
variant: "outline",
|
|
1106
1107
|
"data-refusal-retry": "",
|
|
1107
|
-
className: "rounded border px-2 py-0.5 text-xs hover:bg-muted",
|
|
1108
1108
|
onClick: onRetry,
|
|
1109
1109
|
children: "Try again"
|
|
1110
1110
|
}
|
|
1111
1111
|
) : null,
|
|
1112
1112
|
onKeepEditing ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1113
|
-
|
|
1113
|
+
import_controls3.Button,
|
|
1114
1114
|
{
|
|
1115
1115
|
type: "button",
|
|
1116
|
+
variant: "outline",
|
|
1116
1117
|
"data-refusal-keep-editing": "",
|
|
1117
|
-
className: "rounded border px-2 py-0.5 text-xs hover:bg-muted",
|
|
1118
1118
|
onClick: onKeepEditing,
|
|
1119
1119
|
children: "Keep editing"
|
|
1120
1120
|
}
|
|
1121
1121
|
) : null,
|
|
1122
1122
|
onDiscard ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1123
|
-
|
|
1123
|
+
import_controls3.Button,
|
|
1124
1124
|
{
|
|
1125
1125
|
type: "button",
|
|
1126
|
+
variant: "outline",
|
|
1126
1127
|
"data-refusal-discard": "",
|
|
1127
|
-
className: "rounded border px-2 py-0.5 text-xs hover:bg-muted",
|
|
1128
1128
|
onClick: onDiscard,
|
|
1129
1129
|
children: "Discard"
|
|
1130
1130
|
}
|
|
@@ -1172,16 +1172,17 @@ function RefusalLine({
|
|
|
1172
1172
|
...plain3.forEngineers ? { "data-for-engineers": plain3.forEngineers } : {}
|
|
1173
1173
|
}
|
|
1174
1174
|
),
|
|
1175
|
-
timedOut && onRetry ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1175
|
+
timedOut && onRetry ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_controls3.Button, { type: "button", variant: "outline", "data-refusal-retry": "", onClick: onRetry, children: "Try again" }) : null
|
|
1176
1176
|
] });
|
|
1177
1177
|
}
|
|
1178
|
-
var import_core3, import_design_system6, import_jsx_runtime11;
|
|
1178
|
+
var import_core3, import_design_system6, import_controls3, import_jsx_runtime11;
|
|
1179
1179
|
var init_Refusal = __esm({
|
|
1180
1180
|
"src/Refusal.tsx"() {
|
|
1181
1181
|
"use strict";
|
|
1182
1182
|
"use client";
|
|
1183
1183
|
import_core3 = require("@ai-matrx/records/core");
|
|
1184
1184
|
import_design_system6 = require("@ai-matrx/design-system");
|
|
1185
|
+
import_controls3 = require("@ai-matrx/design-system/controls");
|
|
1185
1186
|
init_ArchivedOrganizationNotice();
|
|
1186
1187
|
init_plainWords();
|
|
1187
1188
|
init_refusalSaid();
|
|
@@ -1213,19 +1214,20 @@ function PersonChip({ name, onRemove, onOpen, className }) {
|
|
|
1213
1214
|
className: (0, import_design_system7.cn)("inline-flex min-w-0 max-w-full items-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-[11px] text-foreground", className),
|
|
1214
1215
|
children: [
|
|
1215
1216
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(PersonAvatar, { name }),
|
|
1216
|
-
onOpen ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1217
|
-
onRemove ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1217
|
+
onOpen ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_controls4.Button, { type: "button", variant: "link", onClick: onOpen, "data-records-person-open": "", className: "min-w-0 truncate", children: name }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "min-w-0 truncate", children: name }),
|
|
1218
|
+
onRemove ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_controls4.Button, { type: "button", variant: "quiet", removes: true, onClick: onRemove, "aria-label": `Remove ${name}`, className: "shrink-0 opacity-60 hover:opacity-100", children: "\xD7" }) : null
|
|
1218
1219
|
]
|
|
1219
1220
|
}
|
|
1220
1221
|
);
|
|
1221
1222
|
}
|
|
1222
|
-
var import_design_system7, import_format, import_jsx_runtime12, PERSON_INITIALS;
|
|
1223
|
+
var import_design_system7, import_format, import_controls4, import_jsx_runtime12, PERSON_INITIALS;
|
|
1223
1224
|
var init_personChip = __esm({
|
|
1224
1225
|
"src/personChip.tsx"() {
|
|
1225
1226
|
"use strict";
|
|
1226
1227
|
"use client";
|
|
1227
1228
|
import_design_system7 = require("@ai-matrx/design-system");
|
|
1228
1229
|
import_format = require("@ai-matrx/kit/format");
|
|
1230
|
+
import_controls4 = require("@ai-matrx/design-system/controls");
|
|
1229
1231
|
import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1230
1232
|
PERSON_INITIALS = { splitHandles: true, dropHonorifics: true };
|
|
1231
1233
|
}
|
|
@@ -5537,7 +5539,7 @@ function NewTableStart({
|
|
|
5537
5539
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "h-px flex-1 bg-border" })
|
|
5538
5540
|
] }),
|
|
5539
5541
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
5540
|
-
|
|
5542
|
+
import_controls6.Tile,
|
|
5541
5543
|
{
|
|
5542
5544
|
"data-new-table-import": "",
|
|
5543
5545
|
onClick: () => fileInput.current?.click(),
|
|
@@ -5723,7 +5725,7 @@ function ChoiceCard({
|
|
|
5723
5725
|
onClick,
|
|
5724
5726
|
...rest
|
|
5725
5727
|
}) {
|
|
5726
|
-
return href ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
5728
|
+
return href ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_controls6.Tile, { asChild: true, icon: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { d: icon }), title, line: words2, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("a", { href }) }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_controls6.Tile, { icon: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { d: icon }), title, line: words2, onClick, ...rest });
|
|
5727
5729
|
}
|
|
5728
5730
|
function Icon({ d }) {
|
|
5729
5731
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d }) });
|
|
@@ -5767,7 +5769,7 @@ function NewTableColumns({
|
|
|
5767
5769
|
)) }) : null
|
|
5768
5770
|
] });
|
|
5769
5771
|
}
|
|
5770
|
-
var import_react59, import_react60, import_design_system33,
|
|
5772
|
+
var import_react59, import_react60, import_design_system33, import_controls6, import_jsx_runtime40, NEW_TABLE2, PREVIEW_ROWS, ICON;
|
|
5771
5773
|
var init_NewTableStart = __esm({
|
|
5772
5774
|
"src/NewTableStart.tsx"() {
|
|
5773
5775
|
"use strict";
|
|
@@ -5775,7 +5777,7 @@ var init_NewTableStart = __esm({
|
|
|
5775
5777
|
import_react59 = require("react");
|
|
5776
5778
|
import_react60 = require("@ai-matrx/records/react");
|
|
5777
5779
|
import_design_system33 = require("@ai-matrx/design-system");
|
|
5778
|
-
|
|
5780
|
+
import_controls6 = require("@ai-matrx/design-system/controls");
|
|
5779
5781
|
init_newTableColumns();
|
|
5780
5782
|
init_Refusal();
|
|
5781
5783
|
init_refusals();
|
|
@@ -6231,7 +6233,7 @@ function BookingBuilder({ tableId, bookingId, onSaved, onClose, startNew, classN
|
|
|
6231
6233
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
6232
6234
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_design_system36.Label, { className: "text-xs font-medium", children: "How long one appointment is" }),
|
|
6233
6235
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6234
|
-
|
|
6236
|
+
import_controls7.Select,
|
|
6235
6237
|
{
|
|
6236
6238
|
"aria-label": "How long one appointment is",
|
|
6237
6239
|
value: String(minutes),
|
|
@@ -6243,7 +6245,7 @@ function BookingBuilder({ tableId, bookingId, onSaved, onClose, startNew, classN
|
|
|
6243
6245
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
6244
6246
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_design_system36.Label, { className: "text-xs font-medium", children: "Gap kept after each one" }),
|
|
6245
6247
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6246
|
-
|
|
6248
|
+
import_controls7.Select,
|
|
6247
6249
|
{
|
|
6248
6250
|
"aria-label": "Gap kept after each one",
|
|
6249
6251
|
value: String(buffer),
|
|
@@ -6255,7 +6257,7 @@ function BookingBuilder({ tableId, bookingId, onSaved, onClose, startNew, classN
|
|
|
6255
6257
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
6256
6258
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_design_system36.Label, { className: "text-xs font-medium", children: "Earliest somebody may book" }),
|
|
6257
6259
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6258
|
-
|
|
6260
|
+
import_controls7.Select,
|
|
6259
6261
|
{
|
|
6260
6262
|
"aria-label": "Earliest somebody may book",
|
|
6261
6263
|
value: String(lead),
|
|
@@ -6282,7 +6284,7 @@ function BookingBuilder({ tableId, bookingId, onSaved, onClose, startNew, classN
|
|
|
6282
6284
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
6283
6285
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_design_system36.Label, { className: "text-xs font-medium", children: "How far ahead the page offers" }),
|
|
6284
6286
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6285
|
-
|
|
6287
|
+
import_controls7.Select,
|
|
6286
6288
|
{
|
|
6287
6289
|
"aria-label": "How far ahead the page offers",
|
|
6288
6290
|
value: String(days),
|
|
@@ -6348,7 +6350,7 @@ function BookingBuilder({ tableId, bookingId, onSaved, onClose, startNew, classN
|
|
|
6348
6350
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
6349
6351
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_design_system36.Label, { className: "text-xs font-medium", children: "Video" }),
|
|
6350
6352
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6351
|
-
|
|
6353
|
+
import_controls7.Select,
|
|
6352
6354
|
{
|
|
6353
6355
|
"aria-label": "Video",
|
|
6354
6356
|
value: video,
|
|
@@ -6607,7 +6609,7 @@ function asksWhoTheyAre(askable) {
|
|
|
6607
6609
|
return kind2 === "email" || kind2 === "phone";
|
|
6608
6610
|
});
|
|
6609
6611
|
}
|
|
6610
|
-
var import_clipboard, import_design_system35, import_react62, import_react63, import_format3, import_records20, import_design_system36,
|
|
6612
|
+
var import_clipboard, import_design_system35, import_react62, import_react63, import_format3, import_records20, import_design_system36, import_controls7, import_jsx_runtime42, STORE_ANSWERS_THESE, DAYS, LENGTHS, WORKING_WEEK;
|
|
6611
6613
|
var init_BookingBuilder = __esm({
|
|
6612
6614
|
"src/BookingBuilder.tsx"() {
|
|
6613
6615
|
"use strict";
|
|
@@ -6619,7 +6621,7 @@ var init_BookingBuilder = __esm({
|
|
|
6619
6621
|
import_format3 = require("@ai-matrx/kit/format");
|
|
6620
6622
|
import_records20 = require("@ai-matrx/records");
|
|
6621
6623
|
import_design_system36 = require("@ai-matrx/design-system");
|
|
6622
|
-
|
|
6624
|
+
import_controls7 = require("@ai-matrx/design-system/controls");
|
|
6623
6625
|
init_bookingMessages();
|
|
6624
6626
|
init_publicQuestions();
|
|
6625
6627
|
init_Refusal();
|
|
@@ -9821,6 +9823,7 @@ init_dates();
|
|
|
9821
9823
|
var import_react7 = require("react");
|
|
9822
9824
|
var import_icons = require("@ai-matrx/design-system/icons");
|
|
9823
9825
|
var import_design_system2 = require("@ai-matrx/design-system");
|
|
9826
|
+
var import_controls = require("@ai-matrx/design-system/controls");
|
|
9824
9827
|
var import_field_formats3 = require("@ai-matrx/design-system/field-formats");
|
|
9825
9828
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
9826
9829
|
var TYPE_SAMPLE = "The quick brown fox jumps over the lazy dog";
|
|
@@ -10227,9 +10230,9 @@ function ShadowLayersEditor({
|
|
|
10227
10230
|
k
|
|
10228
10231
|
)),
|
|
10229
10232
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "col-span-3", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ColorWell, { id: i === 0 ? id : `${id}-${i}`, label: `${label} layer ${i + 1} color`, value: layer.color, disabled, onChange: (c) => c && set(i, { color: c }) }) }),
|
|
10230
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "flex items-center justify-end", children: layers.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
10233
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "flex items-center justify-end", children: layers.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_controls.Button, { type: "button", variant: "quiet", removes: true, disabled, onClick: () => onChange(layers.filter((_, j) => j !== i)), children: "Remove" }) : null })
|
|
10231
10234
|
] }, i)),
|
|
10232
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
10235
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_controls.Button, { type: "button", variant: "quiet", className: "self-start text-muted-foreground", disabled, onClick: () => onChange([...layers, NEW_LAYER]), children: "+ Layer" })
|
|
10233
10236
|
] });
|
|
10234
10237
|
}
|
|
10235
10238
|
function ShadowEditor({ value, onChange, disabled, id, label }) {
|
|
@@ -10244,18 +10247,18 @@ function ShadowEditor({ value, onChange, disabled, id, label }) {
|
|
|
10244
10247
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "flex w-full flex-col gap-2", children: [
|
|
10245
10248
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "flex items-center gap-1", role: "tablist", "aria-label": `${label} theme`, children: [
|
|
10246
10249
|
["light", "dark"].map((t) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
10247
|
-
|
|
10250
|
+
import_controls.Button,
|
|
10248
10251
|
{
|
|
10249
10252
|
type: "button",
|
|
10253
|
+
variant: "quiet",
|
|
10250
10254
|
role: "tab",
|
|
10251
10255
|
"aria-selected": theme === t,
|
|
10252
|
-
className: (0, import_design_system2.cn)("rounded-md px-2 py-0.5 text-xs", theme === t ? "bg-muted text-foreground" : "text-muted-foreground hover:text-foreground"),
|
|
10253
10256
|
onClick: () => setTheme(t),
|
|
10254
10257
|
children: t === "light" ? "Light" : "Dark"
|
|
10255
10258
|
},
|
|
10256
10259
|
t
|
|
10257
10260
|
)),
|
|
10258
|
-
theme === "dark" && own3 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
10261
|
+
theme === "dark" && own3 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_controls.Button, { type: "button", variant: "link", className: "ml-auto text-muted-foreground", onClick: () => write({ light: pair.light, dark: null }), children: "Same as light" }) : null
|
|
10259
10262
|
] }),
|
|
10260
10263
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
10261
10264
|
ShadowLayersEditor,
|
|
@@ -10372,6 +10375,7 @@ var DESIGN_LOOK_IDS = DESIGN_LOOKS.map((look) => look.id);
|
|
|
10372
10375
|
// src/looks/htmlLook.tsx
|
|
10373
10376
|
var import_react9 = require("react");
|
|
10374
10377
|
var import_design_system3 = require("@ai-matrx/design-system");
|
|
10378
|
+
var import_controls2 = require("@ai-matrx/design-system/controls");
|
|
10375
10379
|
|
|
10376
10380
|
// src/looks/htmlFrame.tsx
|
|
10377
10381
|
var import_react8 = require("react");
|
|
@@ -10574,13 +10578,15 @@ function HtmlSampleEditor({ value, onChange, disabled, id, label }) {
|
|
|
10574
10578
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "group relative min-w-0", "data-records-look": "html_sample", children: [
|
|
10575
10579
|
stored.trim() ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(HtmlSampleFrame, { html: stored, title: label }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "block py-1 text-sm text-muted-foreground", children: "No sample" }),
|
|
10576
10580
|
disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
10577
|
-
|
|
10581
|
+
import_controls2.Button,
|
|
10578
10582
|
{
|
|
10579
10583
|
type: "button",
|
|
10584
|
+
variant: "quiet",
|
|
10585
|
+
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",
|
|
10580
10586
|
id,
|
|
10581
10587
|
"aria-label": `Edit ${label} HTML`,
|
|
10582
10588
|
onClick: () => setEditing(true),
|
|
10583
|
-
|
|
10589
|
+
"data-edit-html": "",
|
|
10584
10590
|
children: "</>"
|
|
10585
10591
|
}
|
|
10586
10592
|
)
|
|
@@ -15288,6 +15294,7 @@ init_host();
|
|
|
15288
15294
|
var import_react49 = require("react");
|
|
15289
15295
|
var import_react50 = require("@ai-matrx/records/react");
|
|
15290
15296
|
var import_design_system28 = require("@ai-matrx/design-system");
|
|
15297
|
+
var import_controls5 = require("@ai-matrx/design-system/controls");
|
|
15291
15298
|
init_host();
|
|
15292
15299
|
init_names();
|
|
15293
15300
|
init_FilePicker();
|
|
@@ -15377,11 +15384,13 @@ function AttachmentChip({ id, onRemove, onPreview }) {
|
|
|
15377
15384
|
}
|
|
15378
15385
|
),
|
|
15379
15386
|
onRemove ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15380
|
-
|
|
15387
|
+
import_controls5.Button,
|
|
15381
15388
|
{
|
|
15382
15389
|
type: "button",
|
|
15390
|
+
variant: "quiet",
|
|
15391
|
+
removes: true,
|
|
15383
15392
|
"aria-label": `Remove ${words2}`,
|
|
15384
|
-
className: "absolute -right-1 -top-1
|
|
15393
|
+
className: "absolute -right-1 -top-1",
|
|
15385
15394
|
onClick: (event) => {
|
|
15386
15395
|
event.stopPropagation();
|
|
15387
15396
|
onRemove();
|
|
@@ -15408,10 +15417,11 @@ function AttachmentChip({ id, onRemove, onPreview }) {
|
|
|
15408
15417
|
} : {},
|
|
15409
15418
|
children: [
|
|
15410
15419
|
onPreview ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15411
|
-
|
|
15420
|
+
import_controls5.Button,
|
|
15412
15421
|
{
|
|
15413
15422
|
type: "button",
|
|
15414
|
-
|
|
15423
|
+
variant: "link",
|
|
15424
|
+
className: "truncate",
|
|
15415
15425
|
"data-records-file-preview": id,
|
|
15416
15426
|
onClick: (event) => {
|
|
15417
15427
|
event.stopPropagation();
|
|
@@ -15433,11 +15443,13 @@ function AttachmentChip({ id, onRemove, onPreview }) {
|
|
|
15433
15443
|
}
|
|
15434
15444
|
) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "truncate", children: words2 }),
|
|
15435
15445
|
onRemove ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15436
|
-
|
|
15446
|
+
import_controls5.Button,
|
|
15437
15447
|
{
|
|
15438
15448
|
type: "button",
|
|
15449
|
+
variant: "quiet",
|
|
15450
|
+
removes: true,
|
|
15439
15451
|
"aria-label": `Remove ${words2}`,
|
|
15440
|
-
className: "shrink-0
|
|
15452
|
+
className: "shrink-0",
|
|
15441
15453
|
onClick: (event) => {
|
|
15442
15454
|
event.stopPropagation();
|
|
15443
15455
|
onRemove();
|
|
@@ -16216,7 +16228,7 @@ var import_outbound_react6 = require("@ai-matrx/kit/outbound-react");
|
|
|
16216
16228
|
// src/structuredValue.tsx
|
|
16217
16229
|
var import_react74 = require("react");
|
|
16218
16230
|
var import_design_system44 = require("@ai-matrx/design-system");
|
|
16219
|
-
var
|
|
16231
|
+
var import_controls8 = require("@ai-matrx/design-system/controls");
|
|
16220
16232
|
var import_react75 = require("@ai-matrx/alchemy/react");
|
|
16221
16233
|
var import_outbound_react5 = require("@ai-matrx/kit/outbound-react");
|
|
16222
16234
|
var import_text_case6 = require("@ai-matrx/kit/text-case");
|
|
@@ -16443,10 +16455,10 @@ function Shape({ data, depth = 0 }) {
|
|
|
16443
16455
|
function Row({ label, keyName, value, depth, gutter }) {
|
|
16444
16456
|
const s = kindValueOf(value) ? null : structuredOf(value);
|
|
16445
16457
|
if (!s) {
|
|
16446
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
16458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_controls8.PropertyRow, { label, gutter: gutter ?? false, value: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Nested, { value, keyName }) });
|
|
16447
16459
|
}
|
|
16448
16460
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
16449
|
-
|
|
16461
|
+
import_controls8.PropertyRow,
|
|
16450
16462
|
{
|
|
16451
16463
|
label,
|
|
16452
16464
|
value: structuredSummary(s.data),
|
|
@@ -16519,10 +16531,11 @@ function StructuredCell({ structured, label }) {
|
|
|
16519
16531
|
const picture = isPlainObject2(first) ? Object.entries(first).find(([k, v]) => isImageUrl(v, k))?.[1] : void 0;
|
|
16520
16532
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_design_system44.Popover, { children: [
|
|
16521
16533
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system44.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
16522
|
-
|
|
16534
|
+
import_controls8.Button,
|
|
16523
16535
|
{
|
|
16524
16536
|
type: "button",
|
|
16525
|
-
|
|
16537
|
+
variant: "quiet",
|
|
16538
|
+
className: "min-w-0 max-w-full text-left",
|
|
16526
16539
|
"data-records-structured-cell": "",
|
|
16527
16540
|
onClick: stop,
|
|
16528
16541
|
onDoubleClick: stop,
|
|
@@ -32903,7 +32916,7 @@ var import_react172 = require("react");
|
|
|
32903
32916
|
var import_records47 = require("@ai-matrx/records");
|
|
32904
32917
|
var import_react173 = require("@ai-matrx/records/react");
|
|
32905
32918
|
var import_design_system93 = require("@ai-matrx/design-system");
|
|
32906
|
-
var
|
|
32919
|
+
var import_controls9 = require("@ai-matrx/design-system/controls");
|
|
32907
32920
|
var import_text_case14 = require("@ai-matrx/kit/text-case");
|
|
32908
32921
|
init_Refusal();
|
|
32909
32922
|
init_names();
|
|
@@ -32946,7 +32959,7 @@ function AsOfControl({ value, onChange, className }) {
|
|
|
32946
32959
|
}
|
|
32947
32960
|
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: (0, import_design_system93.cn)("flex h-6 items-center gap-1", className), "data-records-as-of": "", children: [
|
|
32948
32961
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
32949
|
-
|
|
32962
|
+
import_controls9.Field,
|
|
32950
32963
|
{
|
|
32951
32964
|
type: "text",
|
|
32952
32965
|
inputMode: "numeric",
|
|
@@ -32976,7 +32989,7 @@ function AsOfControl({ value, onChange, className }) {
|
|
|
32976
32989
|
}
|
|
32977
32990
|
),
|
|
32978
32991
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { role: "group", "aria-label": "Clock", className: "flex overflow-hidden rounded border text-[11px]", children: ["recorded", "world"].map((which) => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
32979
|
-
|
|
32992
|
+
import_controls9.Button,
|
|
32980
32993
|
{
|
|
32981
32994
|
variant: clock === which ? "primary" : "quiet",
|
|
32982
32995
|
pressed: clock === which,
|
|
@@ -37831,7 +37844,7 @@ var import_react205 = require("react");
|
|
|
37831
37844
|
var import_records54 = require("@ai-matrx/records");
|
|
37832
37845
|
var import_react206 = require("@ai-matrx/records/react");
|
|
37833
37846
|
var import_design_system105 = require("@ai-matrx/design-system");
|
|
37834
|
-
var
|
|
37847
|
+
var import_controls10 = require("@ai-matrx/design-system/controls");
|
|
37835
37848
|
var import_icons3 = require("@ai-matrx/design-system/icons");
|
|
37836
37849
|
init_Refusal();
|
|
37837
37850
|
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
@@ -37892,9 +37905,9 @@ function ValuePeriods({
|
|
|
37892
37905
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", {})
|
|
37893
37906
|
] }),
|
|
37894
37907
|
rows === null ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_design_system105.Skeleton, { shape: "line", width: "full" }) : rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { className: "grid grid-cols-[1fr_1fr_1fr_1rem] items-center gap-1", "data-records-value-period": i, children: [
|
|
37895
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
37896
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
37897
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
37908
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_controls10.DateField, { value: row.from, onValueChange: (v) => change(i, { from: v }), emptyLabel: "Always", "aria-label": "From", disabled: !canWrite }),
|
|
37909
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_controls10.DateField, { value: row.to, onValueChange: (v) => change(i, { to: v }), emptyLabel: "Still true", "aria-label": "Until", disabled: !canWrite }),
|
|
37910
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_controls10.Field, { "aria-label": "Value", value: row.value, disabled: !canWrite, onChange: (e) => change(i, { value: e.target.value }) }),
|
|
37898
37911
|
canWrite ? (
|
|
37899
37912
|
// ui-exception: a 16px remove mark inside a dense row
|
|
37900
37913
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)("button", { type: "button", "aria-label": "Remove this period", className: "text-muted-foreground hover:text-foreground", onClick: () => setRows((now) => (now ?? []).filter((_, j) => j !== i)), children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_icons3.XIcon, { className: "h-3 w-3" }) })
|
|
@@ -37903,8 +37916,8 @@ function ValuePeriods({
|
|
|
37903
37916
|
rows !== null && rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { className: "text-muted-foreground", children: "No dates yet" }) : null,
|
|
37904
37917
|
refusal3 ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(RefusalNotice, { error: refusal3 }) : null,
|
|
37905
37918
|
canWrite ? /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { className: "flex items-center gap-2 pt-1", children: [
|
|
37906
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
37907
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
37919
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_controls10.Button, { variant: "quiet", disabled: rows === null, onClick: () => setRows((now) => [...now ?? [], { from: null, to: null, value: "" }]), children: "Add a period" }),
|
|
37920
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_controls10.Button, { variant: "primary", className: "ml-auto", disabled: rows === null || saving, onClick: () => void save(), children: saving ? "Saving\u2026" : "Save" })
|
|
37908
37921
|
] }) : null
|
|
37909
37922
|
] })
|
|
37910
37923
|
] });
|
|
@@ -39473,7 +39486,7 @@ function FieldValueHistory({
|
|
|
39473
39486
|
var import_react223 = require("react");
|
|
39474
39487
|
var import_react224 = require("@ai-matrx/records/react");
|
|
39475
39488
|
var import_design_system115 = require("@ai-matrx/design-system");
|
|
39476
|
-
var
|
|
39489
|
+
var import_controls11 = require("@ai-matrx/design-system/controls");
|
|
39477
39490
|
init_Refusal();
|
|
39478
39491
|
init_BuiltOnArchive();
|
|
39479
39492
|
init_host();
|
|
@@ -39634,7 +39647,7 @@ function ChecklistRunner({
|
|
|
39634
39647
|
active.overdue > 0 ? ` \xB7 ${active.overdue} overdue` : ""
|
|
39635
39648
|
] }) : null,
|
|
39636
39649
|
runs && runs.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
39637
|
-
|
|
39650
|
+
import_controls11.Select,
|
|
39638
39651
|
{
|
|
39639
39652
|
"aria-label": "Checklist run",
|
|
39640
39653
|
className: "ml-auto",
|
|
@@ -39724,7 +39737,7 @@ function StepRow({
|
|
|
39724
39737
|
unassigned && onAssign && members && members.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("label", { className: "mt-1 flex items-center gap-1.5 pl-7 text-[11px] text-muted-foreground", children: [
|
|
39725
39738
|
"Give it to",
|
|
39726
39739
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
39727
|
-
|
|
39740
|
+
import_controls11.Select,
|
|
39728
39741
|
{
|
|
39729
39742
|
"aria-label": `Give ${step2.title} to`,
|
|
39730
39743
|
value: "",
|
|
@@ -40212,7 +40225,7 @@ function ChecklistTemplateEditor({
|
|
|
40212
40225
|
}
|
|
40213
40226
|
),
|
|
40214
40227
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
40215
|
-
|
|
40228
|
+
import_controls11.Select,
|
|
40216
40229
|
{
|
|
40217
40230
|
"aria-label": `Step ${index + 1} needs`,
|
|
40218
40231
|
value: row.requires,
|
|
@@ -41339,7 +41352,7 @@ init_tableShape();
|
|
|
41339
41352
|
var import_react241 = require("react");
|
|
41340
41353
|
var import_react242 = require("@ai-matrx/records/react");
|
|
41341
41354
|
var import_design_system122 = require("@ai-matrx/design-system");
|
|
41342
|
-
var
|
|
41355
|
+
var import_controls12 = require("@ai-matrx/design-system/controls");
|
|
41343
41356
|
init_Refusal();
|
|
41344
41357
|
init_host();
|
|
41345
41358
|
init_names();
|
|
@@ -41474,7 +41487,7 @@ function StageRulesSection({ tableId, stage, className }) {
|
|
|
41474
41487
|
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
41475
41488
|
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)("span", { className: "font-medium", children: "Rules for entering" }),
|
|
41476
41489
|
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
41477
|
-
|
|
41490
|
+
import_controls12.Select,
|
|
41478
41491
|
{
|
|
41479
41492
|
"aria-label": "Stage",
|
|
41480
41493
|
value: stageKey ?? "",
|
|
@@ -41550,7 +41563,7 @@ function StageRulesSection({ tableId, stage, className }) {
|
|
|
41550
41563
|
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", { className: "flex flex-wrap items-center gap-1", children: [
|
|
41551
41564
|
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)("span", { className: "text-muted-foreground", children: "and when it does not" }),
|
|
41552
41565
|
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
41553
|
-
|
|
41566
|
+
import_controls12.Select,
|
|
41554
41567
|
{
|
|
41555
41568
|
"aria-label": "What happens",
|
|
41556
41569
|
value: draft.on_fail ?? "refuse",
|
|
@@ -42168,7 +42181,7 @@ function TableAccessLevel({ tableId, fields }) {
|
|
|
42168
42181
|
// src/TableHistoryRetention.tsx
|
|
42169
42182
|
var import_react255 = require("react");
|
|
42170
42183
|
var import_react256 = require("@ai-matrx/records/react");
|
|
42171
|
-
var
|
|
42184
|
+
var import_controls13 = require("@ai-matrx/design-system/controls");
|
|
42172
42185
|
init_Refusal();
|
|
42173
42186
|
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
42174
42187
|
function TableHistoryRetention({ tableId }) {
|
|
@@ -42210,7 +42223,7 @@ function TableHistoryRetention({ tableId }) {
|
|
|
42210
42223
|
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
42211
42224
|
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", { className: "font-medium", title: "Value history older than this may be cleared; the Migration log is always kept", children: "Keep value history for" }),
|
|
42212
42225
|
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
42213
|
-
|
|
42226
|
+
import_controls13.Field,
|
|
42214
42227
|
{
|
|
42215
42228
|
"aria-label": "Days of value history",
|
|
42216
42229
|
inputMode: "numeric",
|
|
@@ -42222,7 +42235,7 @@ function TableHistoryRetention({ tableId }) {
|
|
|
42222
42235
|
}
|
|
42223
42236
|
),
|
|
42224
42237
|
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", { children: "days" }),
|
|
42225
|
-
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
42238
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_controls13.Button, { variant: "outline", className: "ml-auto", disabled: !changed2 || saving, onClick: () => void save(), children: saving ? "Saving\u2026" : "Save" })
|
|
42226
42239
|
] }),
|
|
42227
42240
|
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", { className: "text-muted-foreground", "data-records-history-floor": "", children: held ? `At least ${held.floor_days} days in this organization` : "\xA0" }),
|
|
42228
42241
|
refusal3 ? /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(RefusalNotice, { error: refusal3 }) : null
|
|
@@ -43980,6 +43993,7 @@ function structuredWordsFor(field2, value) {
|
|
|
43980
43993
|
var import_react273 = require("react");
|
|
43981
43994
|
var import_react274 = require("@ai-matrx/records/react");
|
|
43982
43995
|
var import_design_system133 = require("@ai-matrx/design-system");
|
|
43996
|
+
var import_controls14 = require("@ai-matrx/design-system/controls");
|
|
43983
43997
|
var import_data_table19 = require("@ai-matrx/design-system/data-table");
|
|
43984
43998
|
|
|
43985
43999
|
// src/weekStart.ts
|
|
@@ -44940,7 +44954,7 @@ function MonthWeek({
|
|
|
44940
44954
|
children: everything.length <= 3 ? everything.map((p) => /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { "aria-hidden": "true", "data-calendar-dot": "", className: (0, import_design_system133.cn)("h-1.5 w-1.5 rounded-full border", dotClass(p.row)) }, p.row.id)) : /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { className: "rounded-full bg-muted px-1 text-[10px] tabular-nums leading-4", "data-calendar-count": "", children: everything.length })
|
|
44941
44955
|
}
|
|
44942
44956
|
) : null : /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("ul", { className: "flex flex-col gap-0.5", children: shown5.map((p) => card(p, `${p.row.id}:${d}`)) }),
|
|
44943
|
-
more > 0 && !tight ? /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)(
|
|
44957
|
+
more > 0 && !tight ? /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)(import_controls14.Button, { type: "button", variant: "link", className: "self-start text-muted-foreground", "data-calendar-more": d, onClick: () => onOpenDay(d), children: [
|
|
44944
44958
|
"+",
|
|
44945
44959
|
more,
|
|
44946
44960
|
" more"
|
|
@@ -45054,6 +45068,7 @@ function weekHeading(first) {
|
|
|
45054
45068
|
var import_react275 = require("react");
|
|
45055
45069
|
var import_react276 = require("@ai-matrx/records/react");
|
|
45056
45070
|
var import_design_system134 = require("@ai-matrx/design-system");
|
|
45071
|
+
var import_controls15 = require("@ai-matrx/design-system/controls");
|
|
45057
45072
|
var import_data_table20 = require("@ai-matrx/design-system/data-table");
|
|
45058
45073
|
init_dates();
|
|
45059
45074
|
init_names();
|
|
@@ -46138,7 +46153,7 @@ function TimelineView({
|
|
|
46138
46153
|
const at = shown5(b.p);
|
|
46139
46154
|
const slip = slipDays(baselineOf(b.p.row)?.last ?? null, at.last);
|
|
46140
46155
|
return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { "data-timeline-list-row": b.p.row.id, className: "flex items-center gap-1 px-1.5 text-xs", style: { height: ROW_PX }, children: [
|
|
46141
|
-
/* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
|
|
46156
|
+
/* @__PURE__ */ (0, import_jsx_runtime158.jsx)(import_controls15.Button, { type: "button", variant: "link", className: "min-w-0 flex-1 truncate text-left", onClick: () => onOpenRecord?.(b.p.row.id), children: titleOf(b.p.row) }),
|
|
46142
46157
|
/* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { className: (0, import_design_system134.cn)(listDayW, "shrink-0 whitespace-nowrap tabular-nums text-muted-foreground"), children: taskListDay(at.first, listYear) }),
|
|
46143
46158
|
/* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { className: (0, import_design_system134.cn)(listDayW, "shrink-0 whitespace-nowrap tabular-nums text-muted-foreground"), children: taskListDay(at.last, listYear) }),
|
|
46144
46159
|
/* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("span", { className: "w-14 shrink-0 whitespace-nowrap text-right tabular-nums", title: slip !== null ? slipWords(slip) : void 0, children: [
|
|
@@ -46583,6 +46598,7 @@ function BoardOptions({
|
|
|
46583
46598
|
|
|
46584
46599
|
// src/clickableSurface.tsx
|
|
46585
46600
|
var import_design_system137 = require("@ai-matrx/design-system");
|
|
46601
|
+
var import_controls16 = require("@ai-matrx/design-system/controls");
|
|
46586
46602
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
46587
46603
|
var OWN_CONTROL = "button, a[href], [role='button'], input, select, textarea, label";
|
|
46588
46604
|
function ClickableSurface({
|
|
@@ -46602,9 +46618,11 @@ function ClickableSurface({
|
|
|
46602
46618
|
};
|
|
46603
46619
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: (0, import_design_system137.cn)("relative", className), title, onClick, ...data, children: [
|
|
46604
46620
|
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
|
|
46605
|
-
|
|
46621
|
+
import_controls16.Tile,
|
|
46606
46622
|
{
|
|
46607
46623
|
type: "button",
|
|
46624
|
+
variant: "quiet",
|
|
46625
|
+
title: "",
|
|
46608
46626
|
"aria-label": label,
|
|
46609
46627
|
"data-records-surface-open": "",
|
|
46610
46628
|
className: "absolute inset-0 z-0 h-full w-full cursor-pointer rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -46878,8 +46896,10 @@ var import_react290 = require("react");
|
|
|
46878
46896
|
var import_react291 = require("@ai-matrx/records/react");
|
|
46879
46897
|
var import_records62 = require("@ai-matrx/records");
|
|
46880
46898
|
var import_design_system141 = require("@ai-matrx/design-system");
|
|
46899
|
+
var import_controls18 = require("@ai-matrx/design-system/controls");
|
|
46881
46900
|
|
|
46882
46901
|
// src/ChartBlock.tsx
|
|
46902
|
+
var import_controls17 = require("@ai-matrx/design-system/controls");
|
|
46883
46903
|
var import_react289 = require("react");
|
|
46884
46904
|
var import_recharts = require("recharts");
|
|
46885
46905
|
var import_records61 = require("@ai-matrx/records");
|
|
@@ -47943,7 +47963,7 @@ function Drawing({
|
|
|
47943
47963
|
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "tabular-nums", "data-records-donut-value": "", children: pretty2(value) }),
|
|
47944
47964
|
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "min-w-10 shrink-0 whitespace-nowrap text-right tabular-nums text-muted-foreground", "data-records-donut-share": "", children: `${share}%` })
|
|
47945
47965
|
] });
|
|
47946
|
-
return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("li", { className: "min-w-0 text-xs", children: onDrill ? /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
|
|
47966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("li", { className: "min-w-0 text-xs", children: onDrill ? /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(import_controls17.Tile, { type: "button", dense: true, variant: "quiet", title: /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "flex min-w-0 items-center gap-2", children: row }), className: "w-full", onClick: () => onDrill(point) }) : /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "flex w-full min-w-0 items-center gap-2 px-1 py-0.5", children: row }) }, `${at}:${point.label}`);
|
|
47947
47967
|
}) }) : null
|
|
47948
47968
|
] });
|
|
47949
47969
|
}
|
|
@@ -48346,11 +48366,11 @@ function ChartLayout({ view, fields, filter, onChange, remembered }) {
|
|
|
48346
48366
|
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_design_system141.SelectContent, { children: numeric.map((f) => /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_design_system141.SelectItem, { value: f.key, children: fieldName(f) }, f.key)) })
|
|
48347
48367
|
] }) : null,
|
|
48348
48368
|
/* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("label", { className: "flex items-center gap-1 text-muted-foreground", children: [
|
|
48349
|
-
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
48369
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_controls18.Switch, { checked: dataLabels, onCheckedChange: (checked) => setLook({ chartLabels: checked ? true : void 0 }), "aria-label": "Chart data labels" }),
|
|
48350
48370
|
"Data labels"
|
|
48351
48371
|
] }),
|
|
48352
48372
|
/* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("label", { className: "flex items-center gap-1 text-muted-foreground", children: [
|
|
48353
|
-
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
48373
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_controls18.Switch, { checked: legend, onCheckedChange: (checked) => setLook({ chartLegend: checked ? void 0 : false }), "aria-label": "Chart legend" }),
|
|
48354
48374
|
"Legend"
|
|
48355
48375
|
] }),
|
|
48356
48376
|
remembered ? null : /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "text-muted-foreground", children: "Kept for this visit only \u2014 this screen has nowhere to save it onto the view." })
|
|
@@ -48366,6 +48386,7 @@ var import_react293 = require("@ai-matrx/records/react");
|
|
|
48366
48386
|
var import_records63 = require("@ai-matrx/records");
|
|
48367
48387
|
var import_design_system142 = require("@ai-matrx/design-system");
|
|
48368
48388
|
var import_skeleton2 = require("@ai-matrx/design-system/skeleton");
|
|
48389
|
+
var import_controls19 = require("@ai-matrx/design-system/controls");
|
|
48369
48390
|
init_host();
|
|
48370
48391
|
init_names();
|
|
48371
48392
|
init_Refusal();
|
|
@@ -48457,14 +48478,16 @@ function PivotLayout({ view, fields, filter, onChange, remembered }) {
|
|
|
48457
48478
|
const text = show(c);
|
|
48458
48479
|
const body = /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { className: (0, import_design_system142.cn)("block truncate", bold && "font-semibold"), children: text });
|
|
48459
48480
|
return opens && text !== "" ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
48460
|
-
|
|
48481
|
+
import_controls19.Tile,
|
|
48461
48482
|
{
|
|
48462
48483
|
type: "button",
|
|
48484
|
+
dense: true,
|
|
48485
|
+
variant: "quiet",
|
|
48486
|
+
title: body,
|
|
48463
48487
|
"aria-label": `${label}: ${text}. Open these records`,
|
|
48464
|
-
className: "
|
|
48488
|
+
className: "w-full justify-end text-right",
|
|
48465
48489
|
"data-records-pivot-open": "",
|
|
48466
|
-
onClick: () => opens(rowValue, colValue, words2)
|
|
48467
|
-
children: body
|
|
48490
|
+
onClick: () => opens(rowValue, colValue, words2)
|
|
48468
48491
|
}
|
|
48469
48492
|
) : /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { className: "block px-2 py-1 text-right", children: body });
|
|
48470
48493
|
};
|
|
@@ -48559,6 +48582,7 @@ init_names();
|
|
|
48559
48582
|
// src/OrgChartLayout.tsx
|
|
48560
48583
|
var import_react294 = require("react");
|
|
48561
48584
|
var import_design_system143 = require("@ai-matrx/design-system");
|
|
48585
|
+
var import_controls20 = require("@ai-matrx/design-system/controls");
|
|
48562
48586
|
init_names();
|
|
48563
48587
|
|
|
48564
48588
|
// src/orgTree.ts
|
|
@@ -48854,24 +48878,25 @@ function OrgChartLayout({ view, fields, rows, titleKey, openRecordId, onOpenReco
|
|
|
48854
48878
|
const node = forest.byId.get(b.id);
|
|
48855
48879
|
const shut = collapsed.has(node.id);
|
|
48856
48880
|
return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "absolute", style: { left: b.x, top: b.y, width: ORG_CARD_W, height: ORG_CARD_H }, "data-records-org-node": node.id, children: [
|
|
48857
|
-
/* @__PURE__ */ (0, import_jsx_runtime168.
|
|
48858
|
-
|
|
48881
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
48882
|
+
import_controls20.Tile,
|
|
48859
48883
|
{
|
|
48860
48884
|
type: "button",
|
|
48861
|
-
|
|
48862
|
-
|
|
48863
|
-
|
|
48864
|
-
|
|
48865
|
-
),
|
|
48866
|
-
"data-records-org-card": "",
|
|
48867
|
-
children: [
|
|
48885
|
+
layout: "stack",
|
|
48886
|
+
variant: "outline",
|
|
48887
|
+
wrapTitle: true,
|
|
48888
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(import_jsx_runtime168.Fragment, { children: [
|
|
48868
48889
|
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "truncate text-sm font-medium", children: rowName(node.row, titleField?.key ?? titleKey) }),
|
|
48869
48890
|
lines.map((field2) => {
|
|
48870
48891
|
const value = (node.row.document ?? {})[field2.key];
|
|
48871
48892
|
if (isEmptyOnCard(value)) return null;
|
|
48872
48893
|
return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "flex h-4 min-w-0 items-center overflow-hidden whitespace-nowrap text-xs text-muted-foreground", "data-records-org-line": field2.key, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(RecordValue, { inCell: true, field: field2, value, document: node.row.document, recordId: node.row.id, withheld: withheldNoticeOf(node.row.hidden, field2.key) }) }, field2.key);
|
|
48873
48894
|
})
|
|
48874
|
-
]
|
|
48895
|
+
] }),
|
|
48896
|
+
...openRecordId === node.id ? { selected: true } : {},
|
|
48897
|
+
onClick: () => onOpenRecord?.(node.id),
|
|
48898
|
+
className: "h-full w-full",
|
|
48899
|
+
"data-records-org-card": ""
|
|
48875
48900
|
}
|
|
48876
48901
|
),
|
|
48877
48902
|
node.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
@@ -50965,7 +50990,7 @@ var import_design_system198 = require("@ai-matrx/design-system");
|
|
|
50965
50990
|
var import_react305 = require("react");
|
|
50966
50991
|
var import_react306 = require("@ai-matrx/records/react");
|
|
50967
50992
|
var import_design_system149 = require("@ai-matrx/design-system");
|
|
50968
|
-
var
|
|
50993
|
+
var import_controls21 = require("@ai-matrx/design-system/controls");
|
|
50969
50994
|
var import_core23 = require("@dnd-kit/core");
|
|
50970
50995
|
var import_sortable = require("@dnd-kit/sortable");
|
|
50971
50996
|
var import_utilities = require("@dnd-kit/utilities");
|
|
@@ -51395,7 +51420,7 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
|
|
|
51395
51420
|
}
|
|
51396
51421
|
) : /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "group flex min-h-7 items-center gap-1 px-2 text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: [
|
|
51397
51422
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)(
|
|
51398
|
-
|
|
51423
|
+
import_controls21.Button,
|
|
51399
51424
|
{
|
|
51400
51425
|
variant: "quiet",
|
|
51401
51426
|
className: "min-w-0 flex-1 justify-start gap-1 px-0",
|
|
@@ -51410,12 +51435,12 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
|
|
|
51410
51435
|
}
|
|
51411
51436
|
),
|
|
51412
51437
|
rights.admin ? /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)(import_jsx_runtime174.Fragment, { children: [
|
|
51413
|
-
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
51414
|
-
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
51438
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(import_controls21.Button, { variant: "quiet", className: "shrink-0 normal-case", "data-view-section-rename": "", onClick: () => setRenamingSection({ from: group.name, draft: group.name }), children: "Rename" }),
|
|
51439
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(import_controls21.Button, { variant: "danger", className: "shrink-0 normal-case", "data-view-section-delete": "", title: "The views stay; they leave the section", onClick: () => void renameSection(group.name, null), children: "Delete" })
|
|
51415
51440
|
] }) : null
|
|
51416
51441
|
] }) : null,
|
|
51417
51442
|
group.name !== null && shut.includes(group.name) && !group.views.some((v) => v.id === active) ? null : group.views.map((view) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(SortableRow, { id: view.id, disabled: !(rights.admin || view.personal) || view.presentation?.locked === true, children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
51418
|
-
|
|
51443
|
+
import_controls21.Tile,
|
|
51419
51444
|
{
|
|
51420
51445
|
variant: "quiet",
|
|
51421
51446
|
selected: view.id === active,
|
|
@@ -51462,7 +51487,7 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
|
|
|
51462
51487
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(import_design_system149.Button, { size: "sm", type: "submit", className: "h-7", children: "Save" })
|
|
51463
51488
|
] }),
|
|
51464
51489
|
rights.admin ? /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("label", { className: "flex items-center gap-1.5 text-[11px] text-muted-foreground", children: [
|
|
51465
|
-
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
51490
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(import_controls21.Switch, { checked: namingPersonal, onCheckedChange: setNamingPersonal, "data-view-new-personal": "" }),
|
|
51466
51491
|
"Personal (only you see it)"
|
|
51467
51492
|
] }) : null
|
|
51468
51493
|
]
|
|
@@ -51474,7 +51499,7 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
|
|
|
51474
51499
|
current.name,
|
|
51475
51500
|
"\u201D from"
|
|
51476
51501
|
] }),
|
|
51477
|
-
(views ?? []).filter((other) => other.id !== current.id).map((other) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
51502
|
+
(views ?? []).filter((other) => other.id !== current.id).map((other) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(import_controls21.Tile, { variant: "quiet", title: other.name, "data-view-copy-from": other.id, onClick: () => void copySettingsFrom(other, current) }, other.id)),
|
|
51478
51503
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)(import_design_system149.Button, { size: "sm", variant: "ghost", className: "h-7 justify-start px-2 text-xs", onClick: () => setCopying(false), children: "Cancel" })
|
|
51479
51504
|
] }) : movingTo !== null ? /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "flex flex-col gap-0.5", "data-view-move-to-section": "", children: [
|
|
51480
51505
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("span", { className: "px-2 text-[11px] text-muted-foreground", children: [
|
|
@@ -51482,8 +51507,8 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
|
|
|
51482
51507
|
current.name,
|
|
51483
51508
|
"\u201D to"
|
|
51484
51509
|
] }),
|
|
51485
|
-
(0, import_views2.sectionNames)(views).map((name) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
51486
|
-
current.section ? /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
51510
|
+
(0, import_views2.sectionNames)(views).map((name) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(import_controls21.Tile, { variant: "quiet", disabled: current.section === name, title: name, onClick: () => void moveToSection(current, name) }, name)),
|
|
51511
|
+
current.section ? /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(import_controls21.Tile, { variant: "quiet", "data-view-section-none": "", title: "No section", onClick: () => void moveToSection(current, null) }) : null,
|
|
51487
51512
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)(
|
|
51488
51513
|
"form",
|
|
51489
51514
|
{
|
|
@@ -51545,7 +51570,7 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
|
|
|
51545
51570
|
return /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)(import_jsx_runtime174.Fragment, { children: [
|
|
51546
51571
|
reasons.map((reason) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("p", { className: "truncate px-2 py-1 text-xs text-muted-foreground", "data-view-actions-reason": "", title: reason, children: reason }, reason)),
|
|
51547
51572
|
actions.map((action3) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
|
|
51548
|
-
|
|
51573
|
+
import_controls21.Tile,
|
|
51549
51574
|
{
|
|
51550
51575
|
variant: "quiet",
|
|
51551
51576
|
...action3.destructive ? { danger: true } : {},
|
|
@@ -52666,7 +52691,7 @@ function FormResultsPanel({ form, className }) {
|
|
|
52666
52691
|
var import_react314 = require("react");
|
|
52667
52692
|
var import_react315 = require("@ai-matrx/records/react");
|
|
52668
52693
|
var import_design_system153 = require("@ai-matrx/design-system");
|
|
52669
|
-
var
|
|
52694
|
+
var import_controls22 = require("@ai-matrx/design-system/controls");
|
|
52670
52695
|
init_Refusal();
|
|
52671
52696
|
init_names();
|
|
52672
52697
|
init_parity();
|
|
@@ -52893,7 +52918,7 @@ function PortalBuilder({ tableId, portalId, onSaved, onClose, className }) {
|
|
|
52893
52918
|
/* @__PURE__ */ (0, import_jsx_runtime178.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
52894
52919
|
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_design_system153.Label, { className: "text-xs font-medium", children: "Which table holds your clients" }),
|
|
52895
52920
|
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
52896
|
-
|
|
52921
|
+
import_controls22.Select,
|
|
52897
52922
|
{
|
|
52898
52923
|
"aria-label": "Which table holds your clients",
|
|
52899
52924
|
value: clientTableId ?? "",
|
|
@@ -52946,7 +52971,7 @@ function PortalBuilder({ tableId, portalId, onSaved, onClose, className }) {
|
|
|
52946
52971
|
/* @__PURE__ */ (0, import_jsx_runtime178.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
52947
52972
|
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_design_system153.Label, { className: "text-xs font-medium", children: "Which field says whose row it is" }),
|
|
52948
52973
|
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
52949
|
-
|
|
52974
|
+
import_controls22.Select,
|
|
52950
52975
|
{
|
|
52951
52976
|
"aria-label": "Which field says whose row it is",
|
|
52952
52977
|
value: exposure?.namesVia ?? "",
|
|
@@ -54186,7 +54211,7 @@ var import_react320 = require("react");
|
|
|
54186
54211
|
var import_react321 = require("@ai-matrx/records/react");
|
|
54187
54212
|
var import_records68 = require("@ai-matrx/records");
|
|
54188
54213
|
var import_design_system158 = require("@ai-matrx/design-system");
|
|
54189
|
-
var
|
|
54214
|
+
var import_controls23 = require("@ai-matrx/design-system/controls");
|
|
54190
54215
|
init_Refusal();
|
|
54191
54216
|
init_refusals();
|
|
54192
54217
|
init_host();
|
|
@@ -54397,7 +54422,7 @@ function DigestScheduler({
|
|
|
54397
54422
|
savedViewId ? null : /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
54398
54423
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(import_design_system158.Label, { className: "text-xs font-medium", children: "What it summarizes" }),
|
|
54399
54424
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
54400
|
-
|
|
54425
|
+
import_controls23.Select,
|
|
54401
54426
|
{
|
|
54402
54427
|
"aria-label": "What it summarizes",
|
|
54403
54428
|
value: viewId,
|
|
@@ -54414,7 +54439,7 @@ function DigestScheduler({
|
|
|
54414
54439
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
54415
54440
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(import_design_system158.Label, { className: "text-xs font-medium", children: "How often" }),
|
|
54416
54441
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
54417
|
-
|
|
54442
|
+
import_controls23.Select,
|
|
54418
54443
|
{
|
|
54419
54444
|
"aria-label": "How often",
|
|
54420
54445
|
value: cadence,
|
|
@@ -54429,7 +54454,7 @@ function DigestScheduler({
|
|
|
54429
54454
|
cadence === "weekly" ? /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
54430
54455
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(import_design_system158.Label, { className: "text-xs font-medium", children: "Which day" }),
|
|
54431
54456
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
54432
|
-
|
|
54457
|
+
import_controls23.Select,
|
|
54433
54458
|
{
|
|
54434
54459
|
"aria-label": "Which day",
|
|
54435
54460
|
value: weekday,
|
|
@@ -54458,7 +54483,7 @@ function DigestScheduler({
|
|
|
54458
54483
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
54459
54484
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(import_design_system158.Label, { className: "text-xs font-medium", children: "Where it arrives" }),
|
|
54460
54485
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
54461
|
-
|
|
54486
|
+
import_controls23.Select,
|
|
54462
54487
|
{
|
|
54463
54488
|
"aria-label": "Where it arrives",
|
|
54464
54489
|
value: channel,
|
|
@@ -55006,7 +55031,7 @@ init_BuildOrAsk();
|
|
|
55006
55031
|
var import_clipboard10 = require("@ai-matrx/kit/clipboard");
|
|
55007
55032
|
var import_drafts = require("@ai-matrx/kit/drafts");
|
|
55008
55033
|
var import_design_system164 = require("@ai-matrx/design-system");
|
|
55009
|
-
var
|
|
55034
|
+
var import_controls25 = require("@ai-matrx/design-system/controls");
|
|
55010
55035
|
var import_react331 = require("react");
|
|
55011
55036
|
var import_core24 = require("@dnd-kit/core");
|
|
55012
55037
|
var import_sortable2 = require("@dnd-kit/sortable");
|
|
@@ -55973,6 +55998,7 @@ var import_react329 = require("react");
|
|
|
55973
55998
|
var import_react330 = require("@ai-matrx/records/react");
|
|
55974
55999
|
var import_forms3 = require("@ai-matrx/records/forms");
|
|
55975
56000
|
var import_design_system163 = require("@ai-matrx/design-system");
|
|
56001
|
+
var import_controls24 = require("@ai-matrx/design-system/controls");
|
|
55976
56002
|
init_PickOne();
|
|
55977
56003
|
init_Refusal();
|
|
55978
56004
|
init_names();
|
|
@@ -56055,7 +56081,7 @@ function FormAnswerExtras({
|
|
|
56055
56081
|
hasPassword && typing === null ? /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)("span", { className: "text-muted-foreground", "data-records-form-password-set": "", children: [
|
|
56056
56082
|
"Password on \xB7",
|
|
56057
56083
|
" ",
|
|
56058
|
-
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
|
|
56084
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_controls24.Button, { type: "button", variant: "link", onClick: () => setTyping(""), children: "Change" })
|
|
56059
56085
|
] }) : null
|
|
56060
56086
|
] }),
|
|
56061
56087
|
typing !== null ? /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)(
|
|
@@ -56125,13 +56151,14 @@ function FormLanguagesEditor({
|
|
|
56125
56151
|
/* @__PURE__ */ (0, import_jsx_runtime188.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
56126
56152
|
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)("span", { className: "font-medium", children: "Languages" }),
|
|
56127
56153
|
languages.map((l) => /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)("span", { className: "inline-flex items-center gap-1 rounded border px-1.5 py-0.5", "data-records-form-language": l.code, children: [
|
|
56128
|
-
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
|
|
56154
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_controls24.Button, { type: "button", variant: "quiet", pressed: open === l.code, onClick: () => setOpen(open === l.code ? null : l.code), "aria-expanded": open === l.code, children: (0, import_forms3.formLanguageName)(l) }),
|
|
56129
56155
|
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
|
|
56130
|
-
|
|
56156
|
+
import_controls24.Button,
|
|
56131
56157
|
{
|
|
56132
56158
|
type: "button",
|
|
56159
|
+
variant: "quiet",
|
|
56160
|
+
removes: true,
|
|
56133
56161
|
"aria-label": `Remove ${(0, import_forms3.formLanguageName)(l)}`,
|
|
56134
|
-
className: "text-muted-foreground",
|
|
56135
56162
|
onClick: () => onChange(languages.filter((x) => x.code !== l.code)),
|
|
56136
56163
|
children: "\xD7"
|
|
56137
56164
|
}
|
|
@@ -56769,7 +56796,7 @@ function FormBuilder({ tableId, seed, activeFormId, onActiveForm, startWithOne,
|
|
|
56769
56796
|
/* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
56770
56797
|
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(import_design_system165.Label, { className: "text-xs font-medium", children: "Flow" }),
|
|
56771
56798
|
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
|
|
56772
|
-
|
|
56799
|
+
import_controls25.Select,
|
|
56773
56800
|
{
|
|
56774
56801
|
"aria-label": "Flow",
|
|
56775
56802
|
value: draft.flow ?? "one-at-a-time",
|
|
@@ -57549,7 +57576,7 @@ var import_react338 = require("react");
|
|
|
57549
57576
|
var import_react339 = require("@ai-matrx/records/react");
|
|
57550
57577
|
var import_records71 = require("@ai-matrx/records");
|
|
57551
57578
|
var import_design_system168 = require("@ai-matrx/design-system");
|
|
57552
|
-
var
|
|
57579
|
+
var import_controls26 = require("@ai-matrx/design-system/controls");
|
|
57553
57580
|
init_Refusal();
|
|
57554
57581
|
init_host();
|
|
57555
57582
|
init_enumLabels();
|
|
@@ -57768,7 +57795,7 @@ function NotifyRuleEditor({ tableId, seed, chosenRuleId, onChoose, className })
|
|
|
57768
57795
|
children: [
|
|
57769
57796
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)("input", { type: "hidden", name: "view", value: pickView || (views[0]?.id ?? "") }),
|
|
57770
57797
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
|
|
57771
|
-
|
|
57798
|
+
import_controls26.Select,
|
|
57772
57799
|
{
|
|
57773
57800
|
"aria-label": "View to be told about",
|
|
57774
57801
|
value: pickView || (views[0]?.id ?? ""),
|
|
@@ -57778,7 +57805,7 @@ function NotifyRuleEditor({ tableId, seed, chosenRuleId, onChoose, className })
|
|
|
57778
57805
|
),
|
|
57779
57806
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)("input", { type: "hidden", name: "cadence", value: pickCadence || (cadences.length > 0 ? cadences : ["instant"])[0] }),
|
|
57780
57807
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
|
|
57781
|
-
|
|
57808
|
+
import_controls26.Select,
|
|
57782
57809
|
{
|
|
57783
57810
|
"aria-label": "How often",
|
|
57784
57811
|
value: pickCadence || (cadences.length > 0 ? cadences : ["instant"])[0],
|
|
@@ -57788,7 +57815,7 @@ function NotifyRuleEditor({ tableId, seed, chosenRuleId, onChoose, className })
|
|
|
57788
57815
|
),
|
|
57789
57816
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)("input", { type: "hidden", name: "channel", value: pickChannel }),
|
|
57790
57817
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
|
|
57791
|
-
|
|
57818
|
+
import_controls26.Select,
|
|
57792
57819
|
{
|
|
57793
57820
|
"aria-label": "Where it arrives",
|
|
57794
57821
|
value: pickChannel,
|
|
@@ -57843,7 +57870,7 @@ init_host();
|
|
|
57843
57870
|
|
|
57844
57871
|
// src/BlockGrid.tsx
|
|
57845
57872
|
var import_design_system169 = require("@ai-matrx/design-system");
|
|
57846
|
-
var
|
|
57873
|
+
var import_controls27 = require("@ai-matrx/design-system/controls");
|
|
57847
57874
|
|
|
57848
57875
|
// src/dashboardLayout.ts
|
|
57849
57876
|
var SPAN_CHOICES = [
|
|
@@ -57929,24 +57956,25 @@ function BlockGrid({ items, arranging, onArrange }) {
|
|
|
57929
57956
|
children: [
|
|
57930
57957
|
arranging ? /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { className: "flex items-center gap-1 px-1 pt-1 text-xs", children: [
|
|
57931
57958
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
57932
|
-
|
|
57959
|
+
import_controls27.Button,
|
|
57933
57960
|
{
|
|
57934
57961
|
type: "button",
|
|
57935
|
-
|
|
57936
|
-
"aria-
|
|
57937
|
-
className: "flex h-7 w-7 touch-none items-center justify-center rounded text-muted-foreground hover:bg-muted",
|
|
57938
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", className: "h-4 w-4 fill-current", children: [
|
|
57962
|
+
variant: "quiet",
|
|
57963
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", className: "fill-current", children: [
|
|
57939
57964
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("circle", { cx: "5.5", cy: "3.5", r: "1.25" }),
|
|
57940
57965
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("circle", { cx: "10.5", cy: "3.5", r: "1.25" }),
|
|
57941
57966
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("circle", { cx: "5.5", cy: "8", r: "1.25" }),
|
|
57942
57967
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("circle", { cx: "10.5", cy: "8", r: "1.25" }),
|
|
57943
57968
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("circle", { cx: "5.5", cy: "12.5", r: "1.25" }),
|
|
57944
57969
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("circle", { cx: "10.5", cy: "12.5", r: "1.25" })
|
|
57945
|
-
] })
|
|
57970
|
+
] }),
|
|
57971
|
+
"data-grid-drag-handle": "",
|
|
57972
|
+
"aria-label": `Move ${item.title}`,
|
|
57973
|
+
className: "touch-none"
|
|
57946
57974
|
}
|
|
57947
57975
|
),
|
|
57948
57976
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
57949
|
-
|
|
57977
|
+
import_controls27.Select,
|
|
57950
57978
|
{
|
|
57951
57979
|
"aria-label": `Width of ${item.title}`,
|
|
57952
57980
|
className: "ml-auto",
|
|
@@ -58100,7 +58128,7 @@ function AddChart({ subject, onAdd, onClose }) {
|
|
|
58100
58128
|
}
|
|
58101
58129
|
|
|
58102
58130
|
// src/DashboardCanvas.tsx
|
|
58103
|
-
var
|
|
58131
|
+
var import_controls28 = require("@ai-matrx/design-system/controls");
|
|
58104
58132
|
|
|
58105
58133
|
// src/pages.ts
|
|
58106
58134
|
var import_views8 = require("@ai-matrx/records/views");
|
|
@@ -58764,7 +58792,7 @@ function BlockSettings({
|
|
|
58764
58792
|
const fields = own3.data ?? [];
|
|
58765
58793
|
return /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)("div", { className: "flex flex-col items-stretch gap-1.5 text-xs", children: [
|
|
58766
58794
|
/* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
|
|
58767
|
-
|
|
58795
|
+
import_controls28.Select,
|
|
58768
58796
|
{
|
|
58769
58797
|
"aria-label": `Shape of ${title}`,
|
|
58770
58798
|
value: spec.kind,
|
|
@@ -60030,6 +60058,7 @@ var import_core25 = require("@ai-matrx/records/core");
|
|
|
60030
60058
|
var import_download3 = require("@ai-matrx/kit/download");
|
|
60031
60059
|
var import_format17 = require("@ai-matrx/kit/format");
|
|
60032
60060
|
var import_design_system174 = require("@ai-matrx/design-system");
|
|
60061
|
+
var import_controls29 = require("@ai-matrx/design-system/controls");
|
|
60033
60062
|
init_plainWords();
|
|
60034
60063
|
init_parity();
|
|
60035
60064
|
var import_forms5 = require("@ai-matrx/records/forms");
|
|
@@ -60673,17 +60702,20 @@ function DoorLayoutView({ block, door }) {
|
|
|
60673
60702
|
const key = raw === null || raw === void 0 || raw === "" ? "" : String(raw).slice(0, block.layout === "kanban" ? void 0 : 10);
|
|
60674
60703
|
groups.set(key, [...groups.get(key) ?? [], row]);
|
|
60675
60704
|
}
|
|
60676
|
-
const card = (row) => /* @__PURE__ */ (0, import_jsx_runtime198.
|
|
60677
|
-
|
|
60705
|
+
const card = (row) => /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
|
|
60706
|
+
import_controls29.Tile,
|
|
60678
60707
|
{
|
|
60679
60708
|
type: "button",
|
|
60680
|
-
|
|
60681
|
-
|
|
60682
|
-
|
|
60683
|
-
children: [
|
|
60709
|
+
layout: "stack",
|
|
60710
|
+
variant: "outline",
|
|
60711
|
+
wrapTitle: true,
|
|
60712
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)(import_jsx_runtime198.Fragment, { children: [
|
|
60684
60713
|
block.image_field && typeof (row.document ?? {})[block.image_field] === "string" ? /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("img", { src: (row.document ?? {})[block.image_field], alt: "", className: "h-28 w-full rounded object-cover" }) : null,
|
|
60685
60714
|
columns.map((f) => /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("span", { className: (0, import_design_system174.cn)("min-w-0 truncate", f.key === title?.key ? "text-sm font-medium" : "text-xs"), children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(RecordValue, { field: f, value: (row.document ?? {})[f.key], document: row.document, withheld: row.hidden?.[f.key] ?? null, recordId: row.id, inCell: true }) }, f.key))
|
|
60686
|
-
]
|
|
60715
|
+
] }),
|
|
60716
|
+
onClick: () => setOpen(row.id),
|
|
60717
|
+
className: "w-full min-w-0",
|
|
60718
|
+
"data-records-page-card": row.id
|
|
60687
60719
|
},
|
|
60688
60720
|
row.id
|
|
60689
60721
|
);
|
|
@@ -66516,7 +66548,7 @@ var import_react392 = require("@ai-matrx/records/react");
|
|
|
66516
66548
|
var import_design_system197 = require("@ai-matrx/design-system");
|
|
66517
66549
|
var import_icons5 = require("@ai-matrx/design-system/icons");
|
|
66518
66550
|
var import_field_formats24 = require("@ai-matrx/design-system/field-formats");
|
|
66519
|
-
var
|
|
66551
|
+
var import_controls30 = require("@ai-matrx/design-system/controls");
|
|
66520
66552
|
init_names();
|
|
66521
66553
|
init_plainWords();
|
|
66522
66554
|
|
|
@@ -66917,7 +66949,7 @@ function ChecksLine({ checks, onFix }) {
|
|
|
66917
66949
|
if (checks.length === 0) return null;
|
|
66918
66950
|
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("span", { className: "mt-1 flex flex-col items-start gap-1", children: checks.map((check, i) => /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("span", { className: "flex flex-col items-start gap-1", children: [
|
|
66919
66951
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)("span", { className: "text-xs text-warning-ink", children: check.message }),
|
|
66920
|
-
check.fix && onFix ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
66952
|
+
check.fix && onFix ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_controls30.Button, { type: "button", variant: "outline", onClick: () => onFix(check), children: check.fix.label }) : null
|
|
66921
66953
|
] }, i)) });
|
|
66922
66954
|
}
|
|
66923
66955
|
function ValueCell({
|
|
@@ -66982,7 +67014,7 @@ function ValueCell({
|
|
|
66982
67014
|
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { className: stacked ? "flex min-w-0 items-center gap-2" : "min-w-0 px-3", children: [
|
|
66983
67015
|
stacked ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("span", { className: "w-9 shrink-0 text-xs text-muted-foreground", children: part === "light" ? "Light" : "Dark" }) : null,
|
|
66984
67016
|
editable ? /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_design_system197.Popover, { children: [
|
|
66985
|
-
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_design_system197.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
67017
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_design_system197.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_controls30.Tile, { type: "button", dense: true, variant: "quiet", title: words2, icon: layers ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(ShadowSwatch, { layers, theme: part }) : void 0, "aria-label": `${fieldName(field2)} ${part}`, className: "w-full min-w-0" }) }),
|
|
66986
67018
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_design_system197.PopoverContent, { align: "start", className: "w-80", children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
66987
67019
|
ShadowLayersEditor,
|
|
66988
67020
|
{
|
|
@@ -67003,7 +67035,7 @@ function ValueCell({
|
|
|
67003
67035
|
const view = /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(RecordValue, { field: field2, value, withheld: null });
|
|
67004
67036
|
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { className: "min-w-0", children: [
|
|
67005
67037
|
editable && Editor ? /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_design_system197.Popover, { children: [
|
|
67006
|
-
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_design_system197.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
67038
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_design_system197.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_controls30.Tile, { type: "button", dense: true, variant: "quiet", title: value === null || value === void 0 || value === "" ? "Set" : view, className: "w-full min-w-0" }) }),
|
|
67007
67039
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_design_system197.PopoverContent, { align: "start", className: "w-80", children: [
|
|
67008
67040
|
Preview2 ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Preview2, { value, format }) }) : null,
|
|
67009
67041
|
Editor ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Editor, { value, format, onChange: change, id, label: fieldName(field2) }) : null
|
|
@@ -67079,7 +67111,7 @@ function groundOf(row, rows, keys) {
|
|
|
67079
67111
|
function RowComments({ tableId, row, count, onClosed }) {
|
|
67080
67112
|
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_design_system197.Popover, { onOpenChange: (open) => !open && onClosed(), children: [
|
|
67081
67113
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_design_system197.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
67082
|
-
|
|
67114
|
+
import_controls30.Button,
|
|
67083
67115
|
{
|
|
67084
67116
|
type: "button",
|
|
67085
67117
|
variant: "quiet",
|
|
@@ -67099,7 +67131,7 @@ function NoteButton({ row, noteField, editable, save }) {
|
|
|
67099
67131
|
const has = text.trim() !== "";
|
|
67100
67132
|
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_design_system197.Popover, { children: [
|
|
67101
67133
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_design_system197.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
67102
|
-
|
|
67134
|
+
import_controls30.Button,
|
|
67103
67135
|
{
|
|
67104
67136
|
type: "button",
|
|
67105
67137
|
variant: "quiet",
|
|
@@ -67220,8 +67252,8 @@ function AddDialog({
|
|
|
67220
67252
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_design_system197.BasicTextarea, { id: "section-add-note", rows: 2, placeholder: name.trim() ? `When should ${name.trim()} be used?` : "When should it be used?", value: note, onChange: (e) => setNote(e.target.value) })
|
|
67221
67253
|
] }) : null,
|
|
67222
67254
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { className: "flex justify-end gap-2 pt-1", children: [
|
|
67223
|
-
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
67224
|
-
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
67255
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_controls30.Button, { type: "button", variant: "quiet", onClick: () => onOpenChange(false), children: "Cancel" }),
|
|
67256
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_controls30.Button, { type: "submit", variant: "primary", disabled: !ready, children: "Add" })
|
|
67225
67257
|
] })
|
|
67226
67258
|
]
|
|
67227
67259
|
}
|
|
@@ -67303,12 +67335,12 @@ function TableSectionCard(props) {
|
|
|
67303
67335
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)("h2", { className: "type-heading truncate text-foreground", children: title || "\xA0" }),
|
|
67304
67336
|
props.description ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("p", { className: "mt-1 max-w-prose text-sm text-muted-foreground", children: props.description }) : null
|
|
67305
67337
|
] }),
|
|
67306
|
-
mayWrite && nameField ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
67338
|
+
mayWrite && nameField ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_controls30.Button, { type: "button", variant: "outline", icon: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_icons5.PlusIcon, {}), onClick: () => setAdding(groups[groups.length - 1]?.key ?? UNGROUPED2), children: "Add" }) : null
|
|
67307
67339
|
] }),
|
|
67308
67340
|
refused ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("p", { className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: refusalSentence(refused) }) : !fieldsRead.data || page.loading && rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { className: "flex flex-col gap-1.5 px-5 pb-5 sm:px-6", "aria-busy": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { className: "h-9 rounded-md bg-muted" }, i)) }) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(SectionEmpty, { empty: props.empty }) : /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { className: (0, import_design_system197.cn)("-mb-px", !narrow && "overflow-x-auto"), children: groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { "data-records-section-group": group.key, className: "", children: [
|
|
67309
67341
|
cols.group ? /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { className: "flex items-center justify-between border-y border-border px-5 py-1 sm:px-6", children: [
|
|
67310
67342
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)("span", { className: "text-xs font-semibold text-foreground", children: group.key || "No group" }),
|
|
67311
|
-
mayWrite ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
67343
|
+
mayWrite ? /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_controls30.Button, { type: "button", variant: "quiet", icon: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_icons5.PlusIcon, {}), "aria-label": `Add to ${group.key || "no group"}`, onClick: () => setAdding(group.key) }) : null
|
|
67312
67344
|
] }) : null,
|
|
67313
67345
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { role: "table", "aria-label": group.key || title, className: narrow ? "" : "min-w-[36rem]", children: [
|
|
67314
67346
|
/* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { role: "row", style: gridStyle, className: (0, import_design_system197.cn)("grid border-b border-border text-xs text-muted-foreground", narrow && "hidden"), children: [
|