@ai-matrx/records-ui 0.116.118 → 0.116.119
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 +5 -1
- package/dist/{chunk-ATJH5PBT.js → chunk-ZFNJTEIB.js} +12 -12
- package/dist/decision-gate.cjs +319 -0
- package/dist/decision-gate.cjs.map +1 -0
- package/dist/decision-gate.d.cts +76 -0
- package/dist/decision-gate.d.ts +76 -0
- package/dist/decision-gate.js +298 -0
- package/dist/decision-gate.js.map +1 -0
- package/dist/index.d.cts +4 -4
- package/dist/index.js +131 -131
- package/dist/pickers.js +3 -3
- package/package.json +12 -2
- /package/dist/{chunk-ATJH5PBT.js.map → chunk-ZFNJTEIB.js.map} +0 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunk-HKYEHBQT.js";
|
|
3
|
+
|
|
4
|
+
// src/DecisionGate.tsx
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { CheckIcon as Check, Loader2Icon as Loader2 } from "@ai-matrx/design-system/icons";
|
|
7
|
+
import { Button, Chip, SegmentedControl } from "@ai-matrx/design-system/controls";
|
|
8
|
+
import { ProInput } from "@ai-matrx/design-system/writing-field";
|
|
9
|
+
import { cn } from "@ai-matrx/design-system/cn";
|
|
10
|
+
|
|
11
|
+
// src/decision-gate.ts
|
|
12
|
+
function isRecord(value) {
|
|
13
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
14
|
+
}
|
|
15
|
+
function str(value) {
|
|
16
|
+
return typeof value === "string" ? value : "";
|
|
17
|
+
}
|
|
18
|
+
var CHOICES = /* @__PURE__ */ new Set(["confirm", "not_true", "edit", "pick_one", "pick_many", "custom"]);
|
|
19
|
+
var VALUE_VERDICTS = /* @__PURE__ */ new Set(["edit", "pick_one", "pick_many", "custom"]);
|
|
20
|
+
function parseDecisionSpec(raw) {
|
|
21
|
+
if (!isRecord(raw) || !Array.isArray(raw.items)) return null;
|
|
22
|
+
const items = [];
|
|
23
|
+
for (const entry of raw.items) {
|
|
24
|
+
if (!isRecord(entry)) continue;
|
|
25
|
+
const key = str(entry.key).trim();
|
|
26
|
+
if (!key) continue;
|
|
27
|
+
const choices = (Array.isArray(entry.choices) ? entry.choices : ["confirm", "not_true", "edit"]).filter((c) => typeof c === "string" && CHOICES.has(c));
|
|
28
|
+
items.push({
|
|
29
|
+
key,
|
|
30
|
+
label: str(entry.label).trim() || key,
|
|
31
|
+
value: entry.value ?? null,
|
|
32
|
+
source: str(entry.source).trim() || null,
|
|
33
|
+
confidence: typeof entry.confidence === "number" ? entry.confidence : null,
|
|
34
|
+
choices: choices.length > 0 ? choices : ["confirm"],
|
|
35
|
+
options: (Array.isArray(entry.options) ? entry.options : []).filter(isRecord).map((o) => ({ value: o.value ?? null, label: str(o.label) || String(o.value ?? "") })),
|
|
36
|
+
required: entry.required === true
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
if (items.length === 0) return null;
|
|
40
|
+
return {
|
|
41
|
+
items,
|
|
42
|
+
minAnswers: typeof raw.min_answers === "number" ? raw.min_answers : 0,
|
|
43
|
+
submitLabel: str(raw.submit_label).trim() || "Confirm",
|
|
44
|
+
seatNotice: isRecord(raw.seat) ? str(raw.seat.notice).trim() || null : null,
|
|
45
|
+
seatFilled: !isRecord(raw.seat) || raw.seat.filled !== false
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function decisionAnswerComplete(answer) {
|
|
49
|
+
if (!answer) return false;
|
|
50
|
+
if (!VALUE_VERDICTS.has(answer.verdict)) return true;
|
|
51
|
+
const v = answer.value;
|
|
52
|
+
if (Array.isArray(v)) return v.length > 0;
|
|
53
|
+
if (typeof v === "string") return v.trim().length > 0;
|
|
54
|
+
return v !== void 0 && v !== null;
|
|
55
|
+
}
|
|
56
|
+
function decisionBlockers(spec, answers) {
|
|
57
|
+
const done = spec.items.filter((i) => decisionAnswerComplete(answers[i.key]));
|
|
58
|
+
return {
|
|
59
|
+
missingRequired: spec.items.filter((i) => i.required && !decisionAnswerComplete(answers[i.key])).map((i) => i.label),
|
|
60
|
+
needMore: Math.max(0, spec.minAnswers - done.length)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function decisionResumeValue(spec, answers) {
|
|
64
|
+
const out = {};
|
|
65
|
+
for (const item of spec.items) {
|
|
66
|
+
const a = answers[item.key];
|
|
67
|
+
if (!decisionAnswerComplete(a) || !a) continue;
|
|
68
|
+
out[item.key] = VALUE_VERDICTS.has(a.verdict) ? { verdict: a.verdict, value: a.value } : { verdict: a.verdict };
|
|
69
|
+
}
|
|
70
|
+
return { answer: { answers: out } };
|
|
71
|
+
}
|
|
72
|
+
function decisionResumeWithSettled(spec, answers, settledKeys) {
|
|
73
|
+
const settled = new Set(settledKeys);
|
|
74
|
+
const open = { ...spec, items: spec.items.filter((i) => !settled.has(i.key)) };
|
|
75
|
+
const body = decisionResumeValue(open, answers);
|
|
76
|
+
const out = body.answer.answers;
|
|
77
|
+
for (const item of spec.items) {
|
|
78
|
+
if (!settled.has(item.key) || !item.choices.includes("confirm")) continue;
|
|
79
|
+
if (item.required || Object.keys(out).length < spec.minAnswers) out[item.key] = { verdict: "confirm" };
|
|
80
|
+
}
|
|
81
|
+
return body;
|
|
82
|
+
}
|
|
83
|
+
function decisionValueText(value) {
|
|
84
|
+
if (value === null || value === void 0 || value === "") return "";
|
|
85
|
+
if (Array.isArray(value)) return value.map((v) => decisionValueText(v)).filter(Boolean).join(", ");
|
|
86
|
+
if (isRecord(value)) return str(value.name) || str(value.label) || JSON.stringify(value);
|
|
87
|
+
return String(value);
|
|
88
|
+
}
|
|
89
|
+
function decisionAnswersConfirmingRest(spec, answers, skipKeys = []) {
|
|
90
|
+
const skip = new Set(skipKeys);
|
|
91
|
+
const out = { ...answers };
|
|
92
|
+
for (const item of spec.items) {
|
|
93
|
+
if (skip.has(item.key) || out[item.key] || !item.choices.includes("confirm")) continue;
|
|
94
|
+
out[item.key] = { verdict: "confirm" };
|
|
95
|
+
}
|
|
96
|
+
return out;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// src/DecisionGate.tsx
|
|
100
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
101
|
+
var CHOICE_LABEL = {
|
|
102
|
+
confirm: "Yes",
|
|
103
|
+
not_true: "Not true",
|
|
104
|
+
edit: "Edit",
|
|
105
|
+
pick_one: "Pick",
|
|
106
|
+
pick_many: "Pick",
|
|
107
|
+
custom: "Other"
|
|
108
|
+
};
|
|
109
|
+
function confidenceText(confidence) {
|
|
110
|
+
if (confidence === null) return null;
|
|
111
|
+
return `${Math.round(confidence * 100)}% sure`;
|
|
112
|
+
}
|
|
113
|
+
function draftFor(item) {
|
|
114
|
+
return decisionValueText(item.value);
|
|
115
|
+
}
|
|
116
|
+
function typedValue(item, text) {
|
|
117
|
+
if (Array.isArray(item.value)) {
|
|
118
|
+
return text.split(",").map((part) => part.trim()).filter(Boolean);
|
|
119
|
+
}
|
|
120
|
+
return text;
|
|
121
|
+
}
|
|
122
|
+
function DecisionGate({
|
|
123
|
+
spec,
|
|
124
|
+
sending,
|
|
125
|
+
onSubmit,
|
|
126
|
+
settled
|
|
127
|
+
}) {
|
|
128
|
+
const [answers, setAnswers] = useState({});
|
|
129
|
+
const [drafts, setDrafts] = useState({});
|
|
130
|
+
const settledKeys = spec.items.filter((i) => settled?.[i.key]).map((i) => i.key);
|
|
131
|
+
const openSpec = {
|
|
132
|
+
...spec,
|
|
133
|
+
items: spec.items.filter((i) => !settledKeys.includes(i.key)),
|
|
134
|
+
minAnswers: Math.max(0, spec.minAnswers - settledKeys.length)
|
|
135
|
+
};
|
|
136
|
+
const sendAnswers = decisionAnswersConfirmingRest(openSpec, answers);
|
|
137
|
+
const confirmingRest = openSpec.items.filter((i) => !answers[i.key] && sendAnswers[i.key]).length;
|
|
138
|
+
const blockers = decisionBlockers(openSpec, sendAnswers);
|
|
139
|
+
const ready = blockers.missingRequired.length === 0 && blockers.needMore === 0;
|
|
140
|
+
const choose = (item, verdict) => {
|
|
141
|
+
setAnswers((prev) => {
|
|
142
|
+
const next = { ...prev };
|
|
143
|
+
if (verdict === "edit" || verdict === "custom") {
|
|
144
|
+
const text = drafts[item.key] ?? (verdict === "edit" ? draftFor(item) : "");
|
|
145
|
+
next[item.key] = { verdict, value: typedValue(item, text) };
|
|
146
|
+
} else if (verdict === "pick_one" || verdict === "pick_many") {
|
|
147
|
+
next[item.key] = { verdict, value: verdict === "pick_many" ? [] : void 0 };
|
|
148
|
+
} else {
|
|
149
|
+
next[item.key] = { verdict };
|
|
150
|
+
}
|
|
151
|
+
return next;
|
|
152
|
+
});
|
|
153
|
+
if (verdict === "edit") {
|
|
154
|
+
setDrafts((prev) => item.key in prev ? prev : { ...prev, [item.key]: draftFor(item) });
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
const type = (item, text) => {
|
|
158
|
+
setDrafts((prev) => ({ ...prev, [item.key]: text }));
|
|
159
|
+
setAnswers((prev) => {
|
|
160
|
+
const current = prev[item.key];
|
|
161
|
+
if (!current || !VALUE_VERDICTS.has(current.verdict)) return prev;
|
|
162
|
+
return { ...prev, [item.key]: { verdict: current.verdict, value: typedValue(item, text) } };
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
const pick = (item, value) => {
|
|
166
|
+
setAnswers((prev) => {
|
|
167
|
+
const current = prev[item.key];
|
|
168
|
+
if (current?.verdict === "pick_many") {
|
|
169
|
+
const list = Array.isArray(current.value) ? current.value : [];
|
|
170
|
+
const has = list.some((v) => JSON.stringify(v) === JSON.stringify(value));
|
|
171
|
+
return {
|
|
172
|
+
...prev,
|
|
173
|
+
[item.key]: {
|
|
174
|
+
verdict: "pick_many",
|
|
175
|
+
value: has ? list.filter((v) => JSON.stringify(v) !== JSON.stringify(value)) : [...list, value]
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
return { ...prev, [item.key]: { verdict: "pick_one", value } };
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
const submit = () => {
|
|
183
|
+
if (!ready || sending) return;
|
|
184
|
+
onSubmit(decisionResumeWithSettled(spec, sendAnswers, settledKeys));
|
|
185
|
+
};
|
|
186
|
+
const onKeyDown = (event) => {
|
|
187
|
+
if (event.key === "Enter" && (event.metaKey || event.ctrlKey)) {
|
|
188
|
+
event.preventDefault();
|
|
189
|
+
submit();
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
const status = blockers.missingRequired.length > 0 ? `Needed: ${blockers.missingRequired.join(", ")}` : blockers.needMore > 0 ? `Answer ${blockers.needMore} more` : confirmingRest > 0 && confirmingRest < openSpec.items.length ? `${confirmingRest} unanswered ${confirmingRest === 1 ? "suggestion is" : "suggestions are"} confirmed as written` : null;
|
|
193
|
+
return /* @__PURE__ */ jsxs("div", { "data-decision-gate": true, onKeyDown, className: "mt-2", children: [
|
|
194
|
+
spec.seatNotice ? /* @__PURE__ */ jsx(
|
|
195
|
+
"div",
|
|
196
|
+
{
|
|
197
|
+
"data-decision-seat": true,
|
|
198
|
+
className: cn("mb-1.5 type-meta", spec.seatFilled ? "text-muted-foreground" : "text-destructive"),
|
|
199
|
+
children: spec.seatNotice
|
|
200
|
+
}
|
|
201
|
+
) : null,
|
|
202
|
+
/* @__PURE__ */ jsx("ul", { className: "divide-y divide-border overflow-hidden rounded-lg border border-border bg-card", children: spec.items.map((item) => {
|
|
203
|
+
const settledAs = settled?.[item.key];
|
|
204
|
+
if (settledAs) {
|
|
205
|
+
const settledText = decisionValueText(item.value);
|
|
206
|
+
return /* @__PURE__ */ jsx("li", { "data-decision-item": item.key, "data-decision-settled": true, className: "px-3 py-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
207
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
208
|
+
/* @__PURE__ */ jsx("div", { className: "text-[11px] text-muted-foreground", children: item.label }),
|
|
209
|
+
/* @__PURE__ */ jsx("div", { className: "whitespace-pre-wrap break-words text-sm text-foreground", children: settledText })
|
|
210
|
+
] }),
|
|
211
|
+
/* @__PURE__ */ jsxs("span", { className: "inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground", children: [
|
|
212
|
+
/* @__PURE__ */ jsx(Check, { className: "size-3.5" }),
|
|
213
|
+
settledAs
|
|
214
|
+
] })
|
|
215
|
+
] }) }, item.key);
|
|
216
|
+
}
|
|
217
|
+
const answer = answers[item.key];
|
|
218
|
+
const verdict = answer?.verdict ?? null;
|
|
219
|
+
const pickVerdict = item.choices.find((c) => c === "pick_one" || c === "pick_many");
|
|
220
|
+
const shown = decisionValueText(item.value);
|
|
221
|
+
const meta = [item.source, confidenceText(item.confidence)].filter(Boolean).join(" \xB7 ");
|
|
222
|
+
const segments = item.choices.filter((c, _i, all) => !(c === "pick_many" && all.includes("pick_one"))).map((c) => ({ value: c, label: CHOICE_LABEL[c] }));
|
|
223
|
+
return /* @__PURE__ */ jsxs("li", { "data-decision-item": item.key, className: "px-3 py-2", children: [
|
|
224
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3", children: [
|
|
225
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
226
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-1 text-xs text-muted-foreground", children: [
|
|
227
|
+
/* @__PURE__ */ jsx("span", { children: item.label }),
|
|
228
|
+
item.required ? /* @__PURE__ */ jsx("span", { "aria-label": "required", children: "*" }) : null
|
|
229
|
+
] }),
|
|
230
|
+
/* @__PURE__ */ jsx(
|
|
231
|
+
"div",
|
|
232
|
+
{
|
|
233
|
+
className: cn(
|
|
234
|
+
"whitespace-pre-wrap break-words text-sm",
|
|
235
|
+
shown ? "text-foreground" : "text-muted-foreground",
|
|
236
|
+
verdict === "not_true" && "line-through decoration-muted-foreground"
|
|
237
|
+
),
|
|
238
|
+
children: shown || "Nothing yet"
|
|
239
|
+
}
|
|
240
|
+
),
|
|
241
|
+
meta ? /* @__PURE__ */ jsx("div", { className: "line-clamp-2 text-[11px] text-muted-foreground", title: meta, children: meta }) : null
|
|
242
|
+
] }),
|
|
243
|
+
/* @__PURE__ */ jsx(
|
|
244
|
+
SegmentedControl,
|
|
245
|
+
{
|
|
246
|
+
"aria-label": `${item.label}: your answer`,
|
|
247
|
+
value: verdict === "pick_many" && pickVerdict === "pick_one" ? "pick_one" : verdict,
|
|
248
|
+
onValueChange: (v) => choose(item, v === "pick_one" && pickVerdict ? pickVerdict : v),
|
|
249
|
+
data: segments,
|
|
250
|
+
className: "shrink-0 self-start sm:self-center"
|
|
251
|
+
}
|
|
252
|
+
)
|
|
253
|
+
] }),
|
|
254
|
+
verdict === "edit" || verdict === "custom" ? /* @__PURE__ */ jsx(
|
|
255
|
+
ProInput,
|
|
256
|
+
{
|
|
257
|
+
className: "mt-1.5",
|
|
258
|
+
autoFocus: true,
|
|
259
|
+
"aria-label": `${item.label}: the right value`,
|
|
260
|
+
placeholder: Array.isArray(item.value) ? "Separate with commas" : item.label,
|
|
261
|
+
value: drafts[item.key] ?? "",
|
|
262
|
+
onChange: (event) => type(item, event.target.value)
|
|
263
|
+
}
|
|
264
|
+
) : null,
|
|
265
|
+
(verdict === "pick_one" || verdict === "pick_many") && item.options.length > 0 ? /* @__PURE__ */ jsx("div", { className: "mt-1.5 flex flex-wrap gap-1.5", children: item.options.map((option) => {
|
|
266
|
+
const on = Array.isArray(answer?.value) ? answer.value.some((v) => JSON.stringify(v) === JSON.stringify(option.value)) : JSON.stringify(answer?.value) === JSON.stringify(option.value);
|
|
267
|
+
return /* @__PURE__ */ jsx(Chip, { label: option.label, pressed: on, asChild: true, children: /* @__PURE__ */ jsx("button", { type: "button", onClick: () => pick(item, option.value) }) }, option.label);
|
|
268
|
+
}) }) : null
|
|
269
|
+
] }, item.key);
|
|
270
|
+
}) }),
|
|
271
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-end gap-2", children: [
|
|
272
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-[11px] text-muted-foreground", "aria-live": "polite", children: status ?? "" }),
|
|
273
|
+
/* @__PURE__ */ jsx(
|
|
274
|
+
Button,
|
|
275
|
+
{
|
|
276
|
+
variant: "success",
|
|
277
|
+
disabled: !ready || sending,
|
|
278
|
+
icon: sending ? /* @__PURE__ */ jsx(Loader2, { className: "animate-spin" }) : /* @__PURE__ */ jsx(Check, {}),
|
|
279
|
+
onClick: submit,
|
|
280
|
+
"data-decision-submit": true,
|
|
281
|
+
children: spec.submitLabel
|
|
282
|
+
}
|
|
283
|
+
)
|
|
284
|
+
] })
|
|
285
|
+
] });
|
|
286
|
+
}
|
|
287
|
+
export {
|
|
288
|
+
DecisionGate,
|
|
289
|
+
VALUE_VERDICTS,
|
|
290
|
+
decisionAnswerComplete,
|
|
291
|
+
decisionAnswersConfirmingRest,
|
|
292
|
+
decisionBlockers,
|
|
293
|
+
decisionResumeValue,
|
|
294
|
+
decisionResumeWithSettled,
|
|
295
|
+
decisionValueText,
|
|
296
|
+
parseDecisionSpec
|
|
297
|
+
};
|
|
298
|
+
//# sourceMappingURL=decision-gate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DecisionGate.tsx","../src/decision-gate.ts"],"sourcesContent":["\"use client\";\n\n/**\n * THE HUMAN GATE — renders any `decision` spec (matrx_graph/decision_spec.py).\n *\n * One row per item: the question, what we believe (in full — never cut off), where it came\n * from, how sure we are, and the quick choices the item allows. The one button confirms\n * every untouched suggestion that can be confirmed, so \"Confirm all\" means what it says;\n * it stays off only while an item that cannot be confirmed is unanswered. The engine\n * re-validates anyway. Cmd/Ctrl+Enter submits. Rows stack on a phone.\n * Pure half: `decision-gate.ts`. Contract: common-docs/systems/workflows/human-gates/FEATURE.md.\n */\n\nimport { useState, type KeyboardEvent } from \"react\";\nimport { CheckIcon as Check, Loader2Icon as Loader2 } from \"@ai-matrx/design-system/icons\";\nimport { Button, Chip, SegmentedControl } from \"@ai-matrx/design-system/controls\";\nimport { ProInput } from \"@ai-matrx/design-system/writing-field\";\nimport { cn } from \"@ai-matrx/design-system/cn\";\nimport {\n VALUE_VERDICTS,\n decisionAnswersConfirmingRest,\n decisionBlockers,\n decisionResumeWithSettled,\n decisionValueText,\n type DecisionAnswer,\n type DecisionChoice,\n type DecisionItemView,\n type DecisionSpecView,\n} from \"./decision-gate\";\n\nconst CHOICE_LABEL: Record<DecisionChoice, string> = {\n confirm: \"Yes\",\n not_true: \"Not true\",\n edit: \"Edit\",\n pick_one: \"Pick\",\n pick_many: \"Pick\",\n custom: \"Other\",\n};\n\nfunction confidenceText(confidence: number | null): string | null {\n if (confidence === null) return null;\n return `${Math.round(confidence * 100)}% sure`;\n}\n\nfunction draftFor(item: DecisionItemView): string {\n return decisionValueText(item.value);\n}\n\n/** Text typed for a list-valued item becomes a list again (comma-separated). */\nfunction typedValue(item: DecisionItemView, text: string): unknown {\n if (Array.isArray(item.value)) {\n return text\n .split(\",\")\n .map((part) => part.trim())\n .filter(Boolean);\n }\n return text;\n}\n\nexport function DecisionGate({\n spec,\n sending,\n onSubmit,\n settled,\n}: {\n spec: DecisionSpecView;\n sending: boolean;\n onSubmit: (resumeValue: Record<string, unknown>) => void;\n /** Items the host knows the person already decided elsewhere ({key: why}): shown settled, never asked. */\n settled?: Record<string, string>;\n}) {\n const [answers, setAnswers] = useState<Record<string, DecisionAnswer>>({});\n const [drafts, setDrafts] = useState<Record<string, string>>({});\n const settledKeys = spec.items.filter((i) => settled?.[i.key]).map((i) => i.key);\n // A settled item counts as answered: the engine gets its \"confirm\" only when it needs one (decisionResumeWithSettled).\n const openSpec = {\n ...spec,\n items: spec.items.filter((i) => !settledKeys.includes(i.key)),\n minAnswers: Math.max(0, spec.minAnswers - settledKeys.length),\n };\n // The button confirms every untouched suggestion that can be confirmed.\n const sendAnswers = decisionAnswersConfirmingRest(openSpec, answers);\n const confirmingRest = openSpec.items.filter((i) => !answers[i.key] && sendAnswers[i.key]).length;\n const blockers = decisionBlockers(openSpec, sendAnswers);\n const ready = blockers.missingRequired.length === 0 && blockers.needMore === 0;\n\n const choose = (item: DecisionItemView, verdict: DecisionChoice) => {\n setAnswers((prev) => {\n const next = { ...prev };\n if (verdict === \"edit\" || verdict === \"custom\") {\n const text = drafts[item.key] ?? (verdict === \"edit\" ? draftFor(item) : \"\");\n next[item.key] = { verdict, value: typedValue(item, text) };\n } else if (verdict === \"pick_one\" || verdict === \"pick_many\") {\n next[item.key] = { verdict, value: verdict === \"pick_many\" ? [] : undefined };\n } else {\n next[item.key] = { verdict };\n }\n return next;\n });\n if (verdict === \"edit\") {\n setDrafts((prev) => (item.key in prev ? prev : { ...prev, [item.key]: draftFor(item) }));\n }\n };\n\n const type = (item: DecisionItemView, text: string) => {\n setDrafts((prev) => ({ ...prev, [item.key]: text }));\n setAnswers((prev) => {\n const current = prev[item.key];\n if (!current || !VALUE_VERDICTS.has(current.verdict)) return prev;\n return { ...prev, [item.key]: { verdict: current.verdict, value: typedValue(item, text) } };\n });\n };\n\n const pick = (item: DecisionItemView, value: unknown) => {\n setAnswers((prev) => {\n const current = prev[item.key];\n if (current?.verdict === \"pick_many\") {\n const list = Array.isArray(current.value) ? current.value : [];\n const has = list.some((v) => JSON.stringify(v) === JSON.stringify(value));\n return {\n ...prev,\n [item.key]: {\n verdict: \"pick_many\",\n value: has ? list.filter((v) => JSON.stringify(v) !== JSON.stringify(value)) : [...list, value],\n },\n };\n }\n return { ...prev, [item.key]: { verdict: \"pick_one\", value } };\n });\n };\n\n const submit = () => {\n if (!ready || sending) return;\n onSubmit(decisionResumeWithSettled(spec, sendAnswers, settledKeys));\n };\n\n const onKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === \"Enter\" && (event.metaKey || event.ctrlKey)) {\n event.preventDefault();\n submit();\n }\n };\n\n const status = blockers.missingRequired.length > 0\n ? `Needed: ${blockers.missingRequired.join(\", \")}`\n : blockers.needMore > 0\n ? `Answer ${blockers.needMore} more`\n : confirmingRest > 0 && confirmingRest < openSpec.items.length\n ? `${confirmingRest} unanswered ${confirmingRest === 1 ? \"suggestion is\" : \"suggestions are\"} confirmed as written`\n : null;\n\n return (\n <div data-decision-gate onKeyDown={onKeyDown} className=\"mt-2\">\n {spec.seatNotice ? (\n <div\n data-decision-seat\n className={cn(\"mb-1.5 type-meta\", spec.seatFilled ? \"text-muted-foreground\" : \"text-destructive\")}\n >\n {spec.seatNotice}\n </div>\n ) : null}\n <ul className=\"divide-y divide-border overflow-hidden rounded-lg border border-border bg-card\">\n {spec.items.map((item) => {\n const settledAs = settled?.[item.key];\n if (settledAs) {\n const settledText = decisionValueText(item.value);\n return (\n <li key={item.key} data-decision-item={item.key} data-decision-settled className=\"px-3 py-2\">\n <div className=\"flex items-center gap-3\">\n <div className=\"min-w-0 flex-1\">\n <div className=\"text-[11px] text-muted-foreground\">{item.label}</div>\n <div className=\"whitespace-pre-wrap break-words text-sm text-foreground\">\n {settledText}\n </div>\n </div>\n <span className=\"inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground\">\n <Check className=\"size-3.5\" />\n {settledAs}\n </span>\n </div>\n </li>\n );\n }\n const answer = answers[item.key];\n const verdict = answer?.verdict ?? null;\n const pickVerdict = item.choices.find((c) => c === \"pick_one\" || c === \"pick_many\");\n const shown = decisionValueText(item.value);\n const meta = [item.source, confidenceText(item.confidence)].filter(Boolean).join(\" · \");\n const segments = item.choices\n .filter((c, _i, all) => !(c === \"pick_many\" && all.includes(\"pick_one\")))\n .map((c) => ({ value: c, label: CHOICE_LABEL[c] }));\n return (\n <li key={item.key} data-decision-item={item.key} className=\"px-3 py-2\">\n <div className=\"flex flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3\">\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-start gap-1 text-xs text-muted-foreground\">\n <span>{item.label}</span>\n {item.required ? <span aria-label=\"required\">*</span> : null}\n </div>\n <div\n className={cn(\n \"whitespace-pre-wrap break-words text-sm\",\n shown ? \"text-foreground\" : \"text-muted-foreground\",\n verdict === \"not_true\" && \"line-through decoration-muted-foreground\",\n )}\n >\n {shown || \"Nothing yet\"}\n </div>\n {meta ? <div className=\"line-clamp-2 text-[11px] text-muted-foreground\" title={meta}>{meta}</div> : null}\n </div>\n <SegmentedControl<DecisionChoice>\n aria-label={`${item.label}: your answer`}\n value={verdict === \"pick_many\" && pickVerdict === \"pick_one\" ? \"pick_one\" : verdict}\n onValueChange={(v) => choose(item, v === \"pick_one\" && pickVerdict ? pickVerdict : v)}\n data={segments}\n className=\"shrink-0 self-start sm:self-center\"\n />\n </div>\n {verdict === \"edit\" || verdict === \"custom\" ? (\n <ProInput\n className=\"mt-1.5\"\n autoFocus\n aria-label={`${item.label}: the right value`}\n placeholder={Array.isArray(item.value) ? \"Separate with commas\" : item.label}\n value={drafts[item.key] ?? \"\"}\n onChange={(event) => type(item, event.target.value)}\n />\n ) : null}\n {(verdict === \"pick_one\" || verdict === \"pick_many\") && item.options.length > 0 ? (\n <div className=\"mt-1.5 flex flex-wrap gap-1.5\">\n {item.options.map((option) => {\n const on = Array.isArray(answer?.value)\n ? answer.value.some((v) => JSON.stringify(v) === JSON.stringify(option.value))\n : JSON.stringify(answer?.value) === JSON.stringify(option.value);\n return (\n <Chip key={option.label} label={option.label} pressed={on} asChild>\n <button type=\"button\" onClick={() => pick(item, option.value)} />\n </Chip>\n );\n })}\n </div>\n ) : null}\n </li>\n );\n })}\n </ul>\n <div className=\"mt-2 flex items-center justify-end gap-2\">\n <span className=\"min-w-0 flex-1 truncate text-[11px] text-muted-foreground\" aria-live=\"polite\">\n {status ?? \"\"}\n </span>\n <Button\n variant=\"success\"\n disabled={!ready || sending}\n icon={sending ? <Loader2 className=\"animate-spin\" /> : <Check />}\n onClick={submit}\n data-decision-submit\n >\n {spec.submitLabel}\n </Button>\n </div>\n </div>\n );\n}\n","/**\n * THE HUMAN GATE — the pure half (preset `decision`, matrx_graph/decision_spec.py).\n *\n * Reads a `decision` spec off a run's question, says what still blocks it, and builds the\n * resume body the engine validates. No React, no network. The component is `DecisionGate`;\n * hosts: matrx-frontend's run pages and record panels, and workflow-studio's question form.\n * Contract: common-docs/systems/workflows/human-gates/FEATURE.md.\n */\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction str(value: unknown): string {\n return typeof value === \"string\" ? value : \"\";\n}\n\nexport type DecisionChoice = \"confirm\" | \"not_true\" | \"edit\" | \"pick_one\" | \"pick_many\" | \"custom\";\nconst CHOICES: ReadonlySet<string> = new Set([\"confirm\", \"not_true\", \"edit\", \"pick_one\", \"pick_many\", \"custom\"]);\n/** Verdicts that carry a value the person typed or picked. */\nexport const VALUE_VERDICTS: ReadonlySet<DecisionChoice> = new Set([\"edit\", \"pick_one\", \"pick_many\", \"custom\"]);\n\nexport interface DecisionItemView {\n key: string;\n label: string;\n value: unknown;\n source: string | null;\n /** 0..1, or null when nobody measured it. */\n confidence: number | null;\n choices: DecisionChoice[];\n options: { value: unknown; label: string }[];\n required: boolean;\n}\n\nexport interface DecisionSpecView {\n items: DecisionItemView[];\n minAnswers: number;\n submitLabel: string;\n /** A gate addressed to an org-chart seat: the engine's words for who it asks\n * (\"Waiting on Arman (Brand owner)\" / \"No one holds Brand owner\"). */\n seatNotice: string | null;\n /** False when nobody held the seat as the gate opened. */\n seatFilled: boolean;\n}\n\n/** One person's answer to one item — the wire shape the engine validates. */\nexport interface DecisionAnswer {\n verdict: DecisionChoice;\n value?: unknown;\n}\n\nexport function parseDecisionSpec(raw: unknown): DecisionSpecView | null {\n if (!isRecord(raw) || !Array.isArray(raw.items)) return null;\n const items: DecisionItemView[] = [];\n for (const entry of raw.items) {\n if (!isRecord(entry)) continue;\n const key = str(entry.key).trim();\n if (!key) continue;\n const choices = (Array.isArray(entry.choices) ? entry.choices : [\"confirm\", \"not_true\", \"edit\"])\n .filter((c): c is DecisionChoice => typeof c === \"string\" && CHOICES.has(c));\n items.push({\n key,\n label: str(entry.label).trim() || key,\n value: entry.value ?? null,\n source: str(entry.source).trim() || null,\n confidence: typeof entry.confidence === \"number\" ? entry.confidence : null,\n choices: choices.length > 0 ? choices : [\"confirm\"],\n options: (Array.isArray(entry.options) ? entry.options : [])\n .filter(isRecord)\n .map((o) => ({ value: o.value ?? null, label: str(o.label) || String(o.value ?? \"\") })),\n required: entry.required === true,\n });\n }\n if (items.length === 0) return null;\n return {\n items,\n minAnswers: typeof raw.min_answers === \"number\" ? raw.min_answers : 0,\n submitLabel: str(raw.submit_label).trim() || \"Confirm\",\n seatNotice: isRecord(raw.seat) ? str(raw.seat.notice).trim() || null : null,\n seatFilled: !isRecord(raw.seat) || raw.seat.filled !== false,\n };\n}\n\n/** True when the answer is complete enough for the engine to accept it. */\nexport function decisionAnswerComplete(answer: DecisionAnswer | undefined): boolean {\n if (!answer) return false;\n if (!VALUE_VERDICTS.has(answer.verdict)) return true;\n const v = answer.value;\n if (Array.isArray(v)) return v.length > 0;\n if (typeof v === \"string\") return v.trim().length > 0;\n return v !== undefined && v !== null;\n}\n\n/** What still blocks the gate: unanswered required items and the minimum. Empty = ready. */\nexport function decisionBlockers(\n spec: DecisionSpecView,\n answers: Record<string, DecisionAnswer>,\n): { missingRequired: string[]; needMore: number } {\n const done = spec.items.filter((i) => decisionAnswerComplete(answers[i.key]));\n return {\n missingRequired: spec.items\n .filter((i) => i.required && !decisionAnswerComplete(answers[i.key]))\n .map((i) => i.label),\n needMore: Math.max(0, spec.minAnswers - done.length),\n };\n}\n\n/** The resume body — only complete answers travel; the engine re-validates all of it. */\nexport function decisionResumeValue(\n spec: DecisionSpecView,\n answers: Record<string, DecisionAnswer>,\n): Record<string, unknown> {\n const out: Record<string, DecisionAnswer> = {};\n for (const item of spec.items) {\n const a = answers[item.key];\n if (!decisionAnswerComplete(a) || !a) continue;\n out[item.key] = VALUE_VERDICTS.has(a.verdict) ? { verdict: a.verdict, value: a.value } : { verdict: a.verdict };\n }\n return { answer: { answers: out } };\n}\n\n/**\n * The resume body when some items are already settled by the host (the person decided them elsewhere): a settled\n * item travels only when the engine needs it — a required one, or to reach the gate's minimum — and then as the\n * plain \"confirm\" its value already stands for. Nothing settled is written again otherwise.\n */\nexport function decisionResumeWithSettled(\n spec: DecisionSpecView,\n answers: Record<string, DecisionAnswer>,\n settledKeys: readonly string[],\n): Record<string, unknown> {\n const settled = new Set(settledKeys);\n const open = { ...spec, items: spec.items.filter((i) => !settled.has(i.key)) };\n const body = decisionResumeValue(open, answers) as { answer: { answers: Record<string, DecisionAnswer> } };\n const out = body.answer.answers;\n for (const item of spec.items) {\n if (!settled.has(item.key) || !item.choices.includes(\"confirm\")) continue;\n if (item.required || Object.keys(out).length < spec.minAnswers) out[item.key] = { verdict: \"confirm\" };\n }\n return body;\n}\n\n/** A believed value as one line of text. */\nexport function decisionValueText(value: unknown): string {\n if (value === null || value === undefined || value === \"\") return \"\";\n if (Array.isArray(value)) return value.map((v) => decisionValueText(v)).filter(Boolean).join(\", \");\n if (isRecord(value)) return str(value.name) || str(value.label) || JSON.stringify(value);\n return String(value);\n}\n\n/**\n * The answers \"Confirm all\" sends: everything the person answered, plus a plain confirm for\n * every untouched item that offers one — so the one button means what it says.\n */\nexport function decisionAnswersConfirmingRest(\n spec: DecisionSpecView,\n answers: Record<string, DecisionAnswer>,\n skipKeys: readonly string[] = [],\n): Record<string, DecisionAnswer> {\n const skip = new Set(skipKeys);\n const out = { ...answers };\n for (const item of spec.items) {\n if (skip.has(item.key) || out[item.key] || !item.choices.includes(\"confirm\")) continue;\n out[item.key] = { verdict: \"confirm\" };\n }\n return out;\n}\n"],"mappings":";;;;AAaA,SAAS,gBAAoC;AAC7C,SAAS,aAAa,OAAO,eAAe,eAAe;AAC3D,SAAS,QAAQ,MAAM,wBAAwB;AAC/C,SAAS,gBAAgB;AACzB,SAAS,UAAU;;;ACRnB,SAAS,SAAS,OAAkD;AAClE,SAAO,O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B,OAAO,OAAO,OAAO,SAAS,IAAI,SAAO,MAChE,8BAAC,YAAO,MAAK,UAAS,SAAS,MAAM,KAAK,MAAM,OAAO,KAAK,GAAG,KADtD,OAAO,KAElB;AAAA,QAEJ,CAAC,GACH,IACE;AAAA,WAjDG,KAAK,GAkDd;AAAA,IAEJ,CAAC,GACH;AAAA,IACA,qBAAC,SAAI,WAAU,4CACb;AAAA,0BAAC,UAAK,WAAU,6DAA4D,aAAU,UACnF,oBAAU,IACb;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,SAAQ;AAAA,UACR,UAAU,CAAC,SAAS;AAAA,UACpB,MAAM,UAAU,oBAAC,WAAQ,WAAU,gBAAe,IAAK,oBAAC,SAAM;AAAA,UAC9D,SAAS;AAAA,UACT,wBAAoB;AAAA,UAEnB,eAAK;AAAA;AAAA,MACR;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -4222,10 +4222,10 @@ declare function announceTableArchived({ notify, client, tableId, name, onRestor
|
|
|
4222
4222
|
|
|
4223
4223
|
/** What a look may hold, with this package's grid look. */
|
|
4224
4224
|
type ViewLook = base.ViewLook<GridPresentation>;
|
|
4225
|
-
declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "
|
|
4226
|
-
declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "
|
|
4227
|
-
declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "
|
|
4228
|
-
declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "
|
|
4225
|
+
declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>) => Record<string, unknown>;
|
|
4226
|
+
declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>;
|
|
4227
|
+
declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>>>>;
|
|
4228
|
+
declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
|
|
4229
4229
|
/** The words of the look bar. One sentence, then the doors. */
|
|
4230
4230
|
declare const LOOK_WORDS: {
|
|
4231
4231
|
/** The reason, for a tooltip or a screen reader — never a line on the page (interface-text). */
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,82 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ArchiveItemMenu,
|
|
4
|
+
ArchivedBuiltOn,
|
|
5
|
+
BOOKING_NOT_HERE_LINE,
|
|
6
|
+
BookingBuilder,
|
|
7
|
+
BookingSlots,
|
|
8
|
+
BuildOrAsk,
|
|
9
|
+
ImportWizard,
|
|
10
|
+
LANE_EMPTY,
|
|
11
|
+
LANE_TITLE,
|
|
12
|
+
MOST_NEW_COLUMNS,
|
|
13
|
+
NEW_COLUMN_TYPES,
|
|
14
|
+
NO_AGENT_PORT,
|
|
15
|
+
ObjectActionGlyph,
|
|
16
|
+
ObjectActionMenuItems,
|
|
17
|
+
SAVE_TO_TABLE_TYPES,
|
|
18
|
+
SECTIONS_UNKNOWN,
|
|
19
|
+
STORE_ANSWERS_THESE,
|
|
20
|
+
SaveToTable,
|
|
21
|
+
TABLE_LANES,
|
|
22
|
+
TablesHome,
|
|
23
|
+
TimeZoneInput,
|
|
24
|
+
VISIBILITY_LANES,
|
|
25
|
+
VISIBILITY_LANE_TITLE,
|
|
26
|
+
WhereItLives,
|
|
27
|
+
askableFields,
|
|
28
|
+
choiceOptionsOf,
|
|
29
|
+
columnFromName,
|
|
30
|
+
columnNamesFrom,
|
|
31
|
+
columnsFrom,
|
|
32
|
+
columnsTheGridTurnedAway,
|
|
33
|
+
combineRows,
|
|
34
|
+
documentOf,
|
|
35
|
+
fieldsForNewColumns,
|
|
36
|
+
gridRefusalForPastedCell,
|
|
37
|
+
groupReasons,
|
|
38
|
+
laneFor,
|
|
39
|
+
lineInYourFile,
|
|
40
|
+
nextInWords,
|
|
41
|
+
offerDownload,
|
|
42
|
+
ownTimeZone,
|
|
43
|
+
planPastedBlock,
|
|
44
|
+
platformOwned,
|
|
45
|
+
publiclyAnswerable,
|
|
46
|
+
readPasteHeader,
|
|
47
|
+
refusalsBeyondTheHeader,
|
|
48
|
+
refusedFileName,
|
|
49
|
+
refusedRowsCsv,
|
|
50
|
+
replanPastedBlock,
|
|
51
|
+
requiredLeftUnasked,
|
|
52
|
+
sameRecordLikely,
|
|
53
|
+
shapesOfSource,
|
|
54
|
+
storedValueAgrees,
|
|
55
|
+
titleRepeats,
|
|
56
|
+
valueFromPastedText,
|
|
57
|
+
visibilityLaneFor,
|
|
58
|
+
whyNotAskable
|
|
59
|
+
} from "./chunk-6RFL5KYR.js";
|
|
60
|
+
import {
|
|
61
|
+
ACTION_CHECKING_ACCESS_REASON,
|
|
62
|
+
ACTION_NOT_HERE_REASON,
|
|
63
|
+
ACTION_NO_ACCESS_REASON,
|
|
64
|
+
ACTION_PLATFORM_TABLE_REASON,
|
|
65
|
+
DEFAULT_ACTION_ORIGIN,
|
|
66
|
+
OBJECT_ACTION_GROUPS,
|
|
67
|
+
STANDARD_VERBS,
|
|
68
|
+
STRIP_FEATURE_ROWS,
|
|
69
|
+
dropdownActionIds,
|
|
70
|
+
dropdownActions,
|
|
71
|
+
groupObjectActions,
|
|
72
|
+
objectActionForKey,
|
|
73
|
+
rightsReason,
|
|
74
|
+
tableActions,
|
|
75
|
+
tableLink,
|
|
76
|
+
toDropdownEntries,
|
|
77
|
+
toStripAndRows,
|
|
78
|
+
withExtensions
|
|
79
|
+
} from "./chunk-MTA5CGMH.js";
|
|
2
80
|
import {
|
|
3
81
|
ADDABLE_TYPES,
|
|
4
82
|
AccentSwatches,
|
|
@@ -199,137 +277,7 @@ import {
|
|
|
199
277
|
withoutLeadingBlank,
|
|
200
278
|
workedOutErrorFor,
|
|
201
279
|
workedOutHoldsNumbers
|
|
202
|
-
} from "./chunk-
|
|
203
|
-
import {
|
|
204
|
-
CHART_PLOT_PX,
|
|
205
|
-
EMBEDDED_ROW_PX,
|
|
206
|
-
RECORDS_GRID_ROW_PX,
|
|
207
|
-
RECORDS_SKELETON_LAYOUTS,
|
|
208
|
-
RecordsSkeleton,
|
|
209
|
-
SPATIAL_LAYOUT_BOX,
|
|
210
|
-
TABLE_TOOLBAR_ROW_CLASS,
|
|
211
|
-
TablePageSkeleton,
|
|
212
|
-
rememberLayout,
|
|
213
|
-
rememberRowCount,
|
|
214
|
-
rememberedRowCount,
|
|
215
|
-
skeletonLayoutFor,
|
|
216
|
-
useExpectedRows,
|
|
217
|
-
useRememberedLayout
|
|
218
|
-
} from "./chunk-ESOQXQAE.js";
|
|
219
|
-
import {
|
|
220
|
-
DEFAULT_FOOTER,
|
|
221
|
-
EMBEDDED_LOOK,
|
|
222
|
-
EMBEDDED_PAGE_SIZE,
|
|
223
|
-
EMBEDDED_PLAIN_FOOTER_CLASS,
|
|
224
|
-
EMBEDDED_TABLE_CLASS,
|
|
225
|
-
EMPTY_PRESENTATION,
|
|
226
|
-
EmbeddedLookProvider,
|
|
227
|
-
FROZEN_COLUMN_WIDTH,
|
|
228
|
-
MAX_ROW_HEIGHT,
|
|
229
|
-
MIN_ROW_HEIGHT,
|
|
230
|
-
VIEW_KEYS,
|
|
231
|
-
boundViews,
|
|
232
|
-
cellFormatFor,
|
|
233
|
-
colorFromTheValue,
|
|
234
|
-
currencyCodeFor,
|
|
235
|
-
footerOf,
|
|
236
|
-
formatForField,
|
|
237
|
-
parseGridPresentation,
|
|
238
|
-
presentationDocument,
|
|
239
|
-
presentationIsEmpty,
|
|
240
|
-
resolveTableStyle,
|
|
241
|
-
styleFromDecorations,
|
|
242
|
-
viewKeysFor,
|
|
243
|
-
viewSettings,
|
|
244
|
-
viewSettingsFor,
|
|
245
|
-
viewSettingsPatch
|
|
246
|
-
} from "./chunk-OY553AFP.js";
|
|
247
|
-
import {
|
|
248
|
-
HTML_SAMPLE_CSP,
|
|
249
|
-
HTML_SAMPLE_SANDBOX,
|
|
250
|
-
HtmlSampleFrame,
|
|
251
|
-
HtmlSampleTokensProvider,
|
|
252
|
-
SAMPLE_TOKEN_NAMES,
|
|
253
|
-
sampleDocument
|
|
254
|
-
} from "./chunk-4CI2HLX3.js";
|
|
255
|
-
import {
|
|
256
|
-
ArchiveItemMenu,
|
|
257
|
-
ArchivedBuiltOn,
|
|
258
|
-
BOOKING_NOT_HERE_LINE,
|
|
259
|
-
BookingBuilder,
|
|
260
|
-
BookingSlots,
|
|
261
|
-
BuildOrAsk,
|
|
262
|
-
ImportWizard,
|
|
263
|
-
LANE_EMPTY,
|
|
264
|
-
LANE_TITLE,
|
|
265
|
-
MOST_NEW_COLUMNS,
|
|
266
|
-
NEW_COLUMN_TYPES,
|
|
267
|
-
NO_AGENT_PORT,
|
|
268
|
-
ObjectActionGlyph,
|
|
269
|
-
ObjectActionMenuItems,
|
|
270
|
-
SAVE_TO_TABLE_TYPES,
|
|
271
|
-
SECTIONS_UNKNOWN,
|
|
272
|
-
STORE_ANSWERS_THESE,
|
|
273
|
-
SaveToTable,
|
|
274
|
-
TABLE_LANES,
|
|
275
|
-
TablesHome,
|
|
276
|
-
TimeZoneInput,
|
|
277
|
-
VISIBILITY_LANES,
|
|
278
|
-
VISIBILITY_LANE_TITLE,
|
|
279
|
-
WhereItLives,
|
|
280
|
-
askableFields,
|
|
281
|
-
choiceOptionsOf,
|
|
282
|
-
columnFromName,
|
|
283
|
-
columnNamesFrom,
|
|
284
|
-
columnsFrom,
|
|
285
|
-
columnsTheGridTurnedAway,
|
|
286
|
-
combineRows,
|
|
287
|
-
documentOf,
|
|
288
|
-
fieldsForNewColumns,
|
|
289
|
-
gridRefusalForPastedCell,
|
|
290
|
-
groupReasons,
|
|
291
|
-
laneFor,
|
|
292
|
-
lineInYourFile,
|
|
293
|
-
nextInWords,
|
|
294
|
-
offerDownload,
|
|
295
|
-
ownTimeZone,
|
|
296
|
-
planPastedBlock,
|
|
297
|
-
platformOwned,
|
|
298
|
-
publiclyAnswerable,
|
|
299
|
-
readPasteHeader,
|
|
300
|
-
refusalsBeyondTheHeader,
|
|
301
|
-
refusedFileName,
|
|
302
|
-
refusedRowsCsv,
|
|
303
|
-
replanPastedBlock,
|
|
304
|
-
requiredLeftUnasked,
|
|
305
|
-
sameRecordLikely,
|
|
306
|
-
shapesOfSource,
|
|
307
|
-
storedValueAgrees,
|
|
308
|
-
titleRepeats,
|
|
309
|
-
valueFromPastedText,
|
|
310
|
-
visibilityLaneFor,
|
|
311
|
-
whyNotAskable
|
|
312
|
-
} from "./chunk-6RFL5KYR.js";
|
|
313
|
-
import {
|
|
314
|
-
ACTION_CHECKING_ACCESS_REASON,
|
|
315
|
-
ACTION_NOT_HERE_REASON,
|
|
316
|
-
ACTION_NO_ACCESS_REASON,
|
|
317
|
-
ACTION_PLATFORM_TABLE_REASON,
|
|
318
|
-
DEFAULT_ACTION_ORIGIN,
|
|
319
|
-
OBJECT_ACTION_GROUPS,
|
|
320
|
-
STANDARD_VERBS,
|
|
321
|
-
STRIP_FEATURE_ROWS,
|
|
322
|
-
dropdownActionIds,
|
|
323
|
-
dropdownActions,
|
|
324
|
-
groupObjectActions,
|
|
325
|
-
objectActionForKey,
|
|
326
|
-
rightsReason,
|
|
327
|
-
tableActions,
|
|
328
|
-
tableLink,
|
|
329
|
-
toDropdownEntries,
|
|
330
|
-
toStripAndRows,
|
|
331
|
-
withExtensions
|
|
332
|
-
} from "./chunk-MTA5CGMH.js";
|
|
280
|
+
} from "./chunk-ZFNJTEIB.js";
|
|
333
281
|
import {
|
|
334
282
|
ABSENCE_WORD_LABEL,
|
|
335
283
|
ABSENCE_WORD_VALUES,
|
|
@@ -452,6 +400,50 @@ import {
|
|
|
452
400
|
whatYouMayDo,
|
|
453
401
|
whatYouMayDoWithTable
|
|
454
402
|
} from "./chunk-LBZZDHV6.js";
|
|
403
|
+
import {
|
|
404
|
+
CHART_PLOT_PX,
|
|
405
|
+
EMBEDDED_ROW_PX,
|
|
406
|
+
RECORDS_GRID_ROW_PX,
|
|
407
|
+
RECORDS_SKELETON_LAYOUTS,
|
|
408
|
+
RecordsSkeleton,
|
|
409
|
+
SPATIAL_LAYOUT_BOX,
|
|
410
|
+
TABLE_TOOLBAR_ROW_CLASS,
|
|
411
|
+
TablePageSkeleton,
|
|
412
|
+
rememberLayout,
|
|
413
|
+
rememberRowCount,
|
|
414
|
+
rememberedRowCount,
|
|
415
|
+
skeletonLayoutFor,
|
|
416
|
+
useExpectedRows,
|
|
417
|
+
useRememberedLayout
|
|
418
|
+
} from "./chunk-ESOQXQAE.js";
|
|
419
|
+
import {
|
|
420
|
+
DEFAULT_FOOTER,
|
|
421
|
+
EMBEDDED_LOOK,
|
|
422
|
+
EMBEDDED_PAGE_SIZE,
|
|
423
|
+
EMBEDDED_PLAIN_FOOTER_CLASS,
|
|
424
|
+
EMBEDDED_TABLE_CLASS,
|
|
425
|
+
EMPTY_PRESENTATION,
|
|
426
|
+
EmbeddedLookProvider,
|
|
427
|
+
FROZEN_COLUMN_WIDTH,
|
|
428
|
+
MAX_ROW_HEIGHT,
|
|
429
|
+
MIN_ROW_HEIGHT,
|
|
430
|
+
VIEW_KEYS,
|
|
431
|
+
boundViews,
|
|
432
|
+
cellFormatFor,
|
|
433
|
+
colorFromTheValue,
|
|
434
|
+
currencyCodeFor,
|
|
435
|
+
footerOf,
|
|
436
|
+
formatForField,
|
|
437
|
+
parseGridPresentation,
|
|
438
|
+
presentationDocument,
|
|
439
|
+
presentationIsEmpty,
|
|
440
|
+
resolveTableStyle,
|
|
441
|
+
styleFromDecorations,
|
|
442
|
+
viewKeysFor,
|
|
443
|
+
viewSettings,
|
|
444
|
+
viewSettingsFor,
|
|
445
|
+
viewSettingsPatch
|
|
446
|
+
} from "./chunk-OY553AFP.js";
|
|
455
447
|
import {
|
|
456
448
|
PARITY_LABEL,
|
|
457
449
|
PARITY_MADE_OF,
|
|
@@ -496,6 +488,14 @@ import {
|
|
|
496
488
|
parityTypesWithNoExplanation,
|
|
497
489
|
storePublishesKind
|
|
498
490
|
} from "./chunk-WCQSJPLS.js";
|
|
491
|
+
import {
|
|
492
|
+
HTML_SAMPLE_CSP,
|
|
493
|
+
HTML_SAMPLE_SANDBOX,
|
|
494
|
+
HtmlSampleFrame,
|
|
495
|
+
HtmlSampleTokensProvider,
|
|
496
|
+
SAMPLE_TOKEN_NAMES,
|
|
497
|
+
sampleDocument
|
|
498
|
+
} from "./chunk-4CI2HLX3.js";
|
|
499
499
|
import {
|
|
500
500
|
__reExport
|
|
501
501
|
} from "./chunk-HKYEHBQT.js";
|