@nivaro/react 0.3.140 → 0.3.142
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/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/shared/components/CollectionBrowserView.js +842 -830
- package/dist/shared/components/ItemEditForm.js +825 -819
- package/dist/shared/components/RowPresence.js +83 -76
- package/dist/shared/components/UnseenDot.js +183 -22
- package/dist/shared/components/delivery-analytics/drill.js +32 -32
- package/dist/shared/components/imports/CollectionImportPanel.js +839 -601
- package/dist/shared/components/imports/RunDetailSheet.js +1 -1
- package/dist/shared/components/imports/match-fields.js +41 -0
- package/dist/shared/components/item-edit/InlineTableField.js +338 -338
- package/dist/shared/components/item-edit/RecordRecapChanges.js +116 -74
- package/dist/shared/components/item-edit/RecordRecapStrip.js +148 -160
- package/dist/shared/components/item-edit/summary-layout-request.js +15 -0
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +226 -157
- package/dist/shared/components/layout-editor/settings/WhoSection.js +53 -52
- package/dist/shared/components/layout-editor/settings/controls.js +98 -90
- package/dist/shared/components/layout-editor/settings/settings-registry.js +8 -0
- package/dist/shared/components/queue/QueueWorklist.js +556 -545
- package/dist/shared/components/support/RequestList.js +2 -2
- package/dist/shared/lib/layout-resolve.js +64 -48
- package/package.json +1 -1
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as u, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useState as y } from "react";
|
|
3
|
-
import { RecordConditionsEditor as
|
|
4
|
-
import { RolesPicker as
|
|
3
|
+
import { RecordConditionsEditor as F, RecordConditionsJson as I } from "../editors/RecordConditionsEditor.js";
|
|
4
|
+
import { RolesPicker as P } from "../editors/RolesPicker.js";
|
|
5
5
|
import { DependencyDiagram as w } from "../ops/DependencyDiagram.js";
|
|
6
6
|
import { useLayoutDependencies as L } from "../ops/ops-api.js";
|
|
7
7
|
import { LAYOUT_TYPES as D } from "../overview/OverviewActions.js";
|
|
8
|
-
import { useRoleNames as
|
|
8
|
+
import { useRoleNames as z } from "../overview/overview-api.js";
|
|
9
9
|
import { roleIdsPatch as Y } from "../testing/testing-model.js";
|
|
10
10
|
import { Setting as p, smallBtn as d, quietText as x, Segmented as j } from "./controls.js";
|
|
11
|
-
import { ActiveDatesSetting as K, PhoneVersionSetting as M, TabletVersionSetting as U } from "./ResolveSettings.js";
|
|
11
|
+
import { ActiveDatesSetting as K, PhoneVersionSetting as M, TabletVersionSetting as U, SummaryForSetting as $ } from "./ResolveSettings.js";
|
|
12
12
|
import { changeLabel as _, flag as C } from "./section-props.js";
|
|
13
|
-
import { useFieldSources as
|
|
14
|
-
import { layoutKindOf as
|
|
13
|
+
import { useFieldSources as B, useCollectionLayoutList as E } from "./settings-api.js";
|
|
14
|
+
import { layoutKindOf as G } from "./settings-registry.js";
|
|
15
15
|
import { TextSetting as S } from "./TextSetting.js";
|
|
16
|
-
import { ToggleSetting as
|
|
17
|
-
const g = (
|
|
18
|
-
var
|
|
19
|
-
return ((
|
|
20
|
-
},
|
|
21
|
-
function
|
|
22
|
-
let
|
|
23
|
-
if (typeof
|
|
16
|
+
import { ToggleSetting as J } from "./ToggleSetting.js";
|
|
17
|
+
const g = (e) => {
|
|
18
|
+
var t;
|
|
19
|
+
return ((t = D.find((o) => o.type === e)) == null ? void 0 : t.label) ?? e;
|
|
20
|
+
}, V = (e) => e.toLowerCase().replace(/[^a-z0-9_]/g, "_"), v = (e) => e.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_|_$/g, "");
|
|
21
|
+
function q(e) {
|
|
22
|
+
let t = e;
|
|
23
|
+
if (typeof t == "string")
|
|
24
24
|
try {
|
|
25
|
-
|
|
25
|
+
t = JSON.parse(t);
|
|
26
26
|
} catch {
|
|
27
27
|
return [];
|
|
28
28
|
}
|
|
29
|
-
const o =
|
|
29
|
+
const o = t == null ? void 0 : t.role_ids;
|
|
30
30
|
return Array.isArray(o) ? o.map(String) : [];
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
const { layout:
|
|
32
|
+
function he(e) {
|
|
33
|
+
const { layout: t, collection: o } = e, { fields: c, columns: l, relations: i } = B(o), { data: m = [] } = z(!0), f = q(t.conditions);
|
|
34
34
|
return /* @__PURE__ */ a(u, { children: [
|
|
35
|
-
/* @__PURE__ */ n(
|
|
35
|
+
/* @__PURE__ */ n(H, { ...e }),
|
|
36
36
|
/* @__PURE__ */ n(
|
|
37
37
|
p,
|
|
38
38
|
{
|
|
39
39
|
k: "layout.record_conditions",
|
|
40
40
|
note: /* @__PURE__ */ n(
|
|
41
|
-
|
|
41
|
+
I,
|
|
42
42
|
{
|
|
43
|
-
value:
|
|
44
|
-
onApply: (s) =>
|
|
43
|
+
value: t.record_conditions,
|
|
44
|
+
onApply: (s) => e.set({ record_conditions: s }, _("layout.record_conditions"))
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
47
|
children: /* @__PURE__ */ n(
|
|
48
|
-
|
|
48
|
+
F,
|
|
49
49
|
{
|
|
50
50
|
json: !1,
|
|
51
51
|
collection: o,
|
|
52
|
-
value:
|
|
52
|
+
value: t.record_conditions,
|
|
53
53
|
fields: c,
|
|
54
54
|
columns: l,
|
|
55
55
|
relations: i,
|
|
56
|
-
onBlur:
|
|
57
|
-
onChange: (s, { text: h }) => (h ?
|
|
56
|
+
onBlur: e.flush,
|
|
57
|
+
onChange: (s, { text: h }) => (h ? e.setText : e.set)(
|
|
58
58
|
{ record_conditions: s },
|
|
59
59
|
_("layout.record_conditions")
|
|
60
60
|
)
|
|
@@ -63,13 +63,13 @@ function fe(t) {
|
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
65
|
/* @__PURE__ */ n(p, { k: "layout.conditions.role_ids", children: /* @__PURE__ */ n(
|
|
66
|
-
|
|
66
|
+
P,
|
|
67
67
|
{
|
|
68
68
|
value: f,
|
|
69
69
|
roles: m,
|
|
70
|
-
onChange: (s) =>
|
|
70
|
+
onChange: (s) => e.set(
|
|
71
71
|
// Keeps the layout's pinned test records (conditions.testing).
|
|
72
|
-
Y(
|
|
72
|
+
Y(t.conditions, s),
|
|
73
73
|
s.length > f.length ? "Add a role" : "Remove a role"
|
|
74
74
|
)
|
|
75
75
|
}
|
|
@@ -78,27 +78,27 @@ function fe(t) {
|
|
|
78
78
|
S,
|
|
79
79
|
{
|
|
80
80
|
k: "layout.slug",
|
|
81
|
-
props:
|
|
81
|
+
props: e,
|
|
82
82
|
mono: !0,
|
|
83
83
|
placeholder: "e.g. unit_order",
|
|
84
|
-
sanitize:
|
|
84
|
+
sanitize: V,
|
|
85
85
|
blurOnly: !0,
|
|
86
|
-
extra: !
|
|
86
|
+
extra: !t.slug && typeof t.name == "string" && v(t.name) ? /* @__PURE__ */ n(
|
|
87
87
|
"button",
|
|
88
88
|
{
|
|
89
89
|
type: "button",
|
|
90
90
|
className: d,
|
|
91
|
-
onClick: () =>
|
|
91
|
+
onClick: () => e.set({ slug: v(String(t.name)) }, "Generate link name"),
|
|
92
92
|
children: "Generate"
|
|
93
93
|
}
|
|
94
94
|
) : null,
|
|
95
|
-
note:
|
|
95
|
+
note: t.slug ? /* @__PURE__ */ a(u, { children: [
|
|
96
96
|
"Opens with ",
|
|
97
97
|
/* @__PURE__ */ a("code", { className: "font-mono", children: [
|
|
98
98
|
"?layout=",
|
|
99
|
-
String(
|
|
99
|
+
String(t.slug)
|
|
100
100
|
] }),
|
|
101
|
-
/* @__PURE__ */ n(
|
|
101
|
+
/* @__PURE__ */ n(W, { layoutId: Number(t.id) })
|
|
102
102
|
] }) : null
|
|
103
103
|
}
|
|
104
104
|
),
|
|
@@ -106,18 +106,19 @@ function fe(t) {
|
|
|
106
106
|
S,
|
|
107
107
|
{
|
|
108
108
|
k: "layout.create_label",
|
|
109
|
-
props:
|
|
110
|
-
placeholder: typeof
|
|
109
|
+
props: e,
|
|
110
|
+
placeholder: typeof t.name == "string" ? t.name : ""
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
/* @__PURE__ */ n(
|
|
114
|
-
/* @__PURE__ */ n(K, { ...
|
|
115
|
-
/* @__PURE__ */ n(M, { ...
|
|
116
|
-
/* @__PURE__ */ n(U, { ...
|
|
113
|
+
/* @__PURE__ */ n(J, { k: "layout.create_hidden", props: e }),
|
|
114
|
+
/* @__PURE__ */ n(K, { ...e }),
|
|
115
|
+
/* @__PURE__ */ n(M, { ...e }),
|
|
116
|
+
/* @__PURE__ */ n(U, { ...e }),
|
|
117
|
+
/* @__PURE__ */ n($, { ...e })
|
|
117
118
|
] });
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
-
const { data:
|
|
120
|
+
function W({ layoutId: e }) {
|
|
121
|
+
const { data: t } = L(e), [o, c] = y(!1), l = ((t == null ? void 0 : t.nodes) ?? []).filter((i) => i.breaks.includes("slug")).length;
|
|
121
122
|
return l ? /* @__PURE__ */ a(u, { children: [
|
|
122
123
|
" · ",
|
|
123
124
|
/* @__PURE__ */ a(
|
|
@@ -135,14 +136,14 @@ function q({ layoutId: t }) {
|
|
|
135
136
|
]
|
|
136
137
|
}
|
|
137
138
|
),
|
|
138
|
-
o && /* @__PURE__ */ n(w, { layoutId:
|
|
139
|
+
o && /* @__PURE__ */ n(w, { layoutId: e, change: "slug", compact: !0, className: "mt-2" })
|
|
139
140
|
] }) : null;
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
-
const { layout:
|
|
143
|
-
(r) => r.id !== Number(
|
|
142
|
+
function H(e) {
|
|
143
|
+
const { layout: t, kind: o, bundle: c } = e, [l, i] = y(null), { data: m } = L(Number(t.id)), f = ((m == null ? void 0 : m.nodes.length) ?? 0) > 0, s = c.placements.length + c.groups.length, h = (r) => e.set({ layout_type: r }, `Change kind to ${g(r)}`), T = C(t.is_active), [O, b] = y(!1), k = E(e.collection).find(
|
|
144
|
+
(r) => r.id !== Number(t.id) && G(r) === o && C(r.is_active)
|
|
144
145
|
), N = o === "grouped" ? "form" : `${g(o).toLowerCase()} layout`, A = () => {
|
|
145
|
-
|
|
146
|
+
e.set({ is_active: !0 }, "Make default", { undoable: !1 }), b(!1);
|
|
146
147
|
}, R = o === "file" ? null : /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center gap-2", children: T ? /* @__PURE__ */ a("span", { className: x, "data-default-layout": !0, children: [
|
|
147
148
|
"This is the default ",
|
|
148
149
|
g(o).toLowerCase(),
|
|
@@ -222,7 +223,7 @@ function W(t) {
|
|
|
222
223
|
f && /* @__PURE__ */ n(
|
|
223
224
|
w,
|
|
224
225
|
{
|
|
225
|
-
layoutId: Number(
|
|
226
|
+
layoutId: Number(t.id),
|
|
226
227
|
change: "type",
|
|
227
228
|
compact: !0,
|
|
228
229
|
className: "mt-2 rounded-md bg-white p-2 text-slate-800 dark:bg-card dark:text-foreground"
|
|
@@ -248,6 +249,6 @@ function W(t) {
|
|
|
248
249
|
] });
|
|
249
250
|
}
|
|
250
251
|
export {
|
|
251
|
-
|
|
252
|
-
|
|
252
|
+
he as WhoSection,
|
|
253
|
+
V as sanitizeSlug
|
|
253
254
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronsUpDown as k, Check as
|
|
3
|
-
import { createContext as
|
|
2
|
+
import { ChevronsUpDown as k, Check as b, X as C } from "lucide-react";
|
|
3
|
+
import { createContext as S, useState as P, isValidElement as T, useContext as j } from "react";
|
|
4
4
|
import { cn as i } from "../../../lib/utils.js";
|
|
5
|
-
import { Command as
|
|
6
|
-
import { Popover as
|
|
7
|
-
import { inputBase as
|
|
8
|
-
import { settingDef as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
const n =
|
|
5
|
+
import { Command as O, CommandInput as V, CommandList as B, CommandEmpty as D, CommandItem as g } from "../../ui/command.js";
|
|
6
|
+
import { Popover as E, PopoverTrigger as I, PopoverContent as $ } from "../../ui/popover.js";
|
|
7
|
+
import { inputBase as N, effectText as q, segOption as U, segTrack as X, labelText as z } from "../panel-style.js";
|
|
8
|
+
import { settingDef as A } from "./settings-registry.js";
|
|
9
|
+
const F = S(null);
|
|
10
|
+
function G(e) {
|
|
11
|
+
const n = j(F);
|
|
12
12
|
return !n || n.has(e);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
14
|
+
const W = N, L = "inline-flex h-7 items-center gap-1 whitespace-nowrap rounded-md border border-slate-200 bg-white px-2 text-[12px] font-medium text-slate-700 transition-colors hover:bg-slate-50 disabled:opacity-50 dark:border-border dark:bg-card dark:text-foreground dark:hover:bg-muted", v = q;
|
|
15
|
+
function ee({
|
|
16
16
|
k: e,
|
|
17
17
|
control: n,
|
|
18
18
|
children: o,
|
|
19
19
|
note: r,
|
|
20
20
|
htmlFor: c
|
|
21
21
|
}) {
|
|
22
|
-
const s =
|
|
22
|
+
const s = G(e), d = A(e);
|
|
23
23
|
if (!s || !d) return null;
|
|
24
|
-
const m = T(n) && n.type ===
|
|
24
|
+
const m = T(n) && n.type === H;
|
|
25
25
|
return /* @__PURE__ */ l("div", { "data-setting": e, className: "space-y-1.5", children: [
|
|
26
26
|
/* @__PURE__ */ l("div", { className: "flex min-h-5 items-center justify-between gap-3", children: [
|
|
27
|
-
/* @__PURE__ */ t("label", { htmlFor: c, className: i(
|
|
27
|
+
/* @__PURE__ */ t("label", { htmlFor: c, className: i(z, "min-w-0"), children: d.label }),
|
|
28
28
|
m && /* @__PURE__ */ t("div", { className: "flex shrink-0 items-center", children: n })
|
|
29
29
|
] }),
|
|
30
30
|
n && !m && /* @__PURE__ */ t("div", { children: n }),
|
|
31
31
|
o,
|
|
32
|
-
/* @__PURE__ */ t("p", { className:
|
|
33
|
-
r && /* @__PURE__ */ t("div", { className:
|
|
32
|
+
/* @__PURE__ */ t("p", { className: v, children: d.effect }),
|
|
33
|
+
r && /* @__PURE__ */ t("div", { className: v, children: r })
|
|
34
34
|
] });
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function H({
|
|
37
37
|
checked: e,
|
|
38
38
|
onChange: n,
|
|
39
39
|
label: o,
|
|
@@ -64,7 +64,7 @@ function G({
|
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function te({
|
|
68
68
|
value: e,
|
|
69
69
|
options: n,
|
|
70
70
|
onChange: o,
|
|
@@ -75,7 +75,7 @@ function ee({
|
|
|
75
75
|
"fieldset",
|
|
76
76
|
{
|
|
77
77
|
"aria-label": r,
|
|
78
|
-
className: i("m-0 min-w-0 border-0",
|
|
78
|
+
className: i("m-0 min-w-0 border-0", X(n.length)),
|
|
79
79
|
children: n.map((s) => /* @__PURE__ */ t(
|
|
80
80
|
"button",
|
|
81
81
|
{
|
|
@@ -83,7 +83,7 @@ function ee({
|
|
|
83
83
|
"aria-pressed": e === s.value,
|
|
84
84
|
disabled: c,
|
|
85
85
|
onClick: () => e !== s.value && o(s.value),
|
|
86
|
-
className:
|
|
86
|
+
className: U(e === s.value),
|
|
87
87
|
children: s.label
|
|
88
88
|
},
|
|
89
89
|
s.value
|
|
@@ -91,7 +91,7 @@ function ee({
|
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ne({
|
|
95
95
|
value: e,
|
|
96
96
|
options: n,
|
|
97
97
|
onChange: o,
|
|
@@ -100,13 +100,14 @@ function te({
|
|
|
100
100
|
ariaLabel: s,
|
|
101
101
|
disabled: d,
|
|
102
102
|
className: m,
|
|
103
|
-
emptyText:
|
|
103
|
+
emptyText: w = "Nothing to pick",
|
|
104
|
+
matchTriggerWidth: u = !1
|
|
104
105
|
}) {
|
|
105
|
-
const [y,
|
|
106
|
-
o(a),
|
|
107
|
-
},
|
|
108
|
-
return /* @__PURE__ */ l(
|
|
109
|
-
/* @__PURE__ */ t(
|
|
106
|
+
const [y, h] = P(!1), p = n.find((a) => a.value === e), x = (a) => {
|
|
107
|
+
o(a), h(!1);
|
|
108
|
+
}, f = "gap-1.5 px-2 py-1 text-[12px] text-slate-700 data-[selected=true]:bg-muted dark:text-foreground";
|
|
109
|
+
return /* @__PURE__ */ l(E, { open: y, onOpenChange: h, children: [
|
|
110
|
+
/* @__PURE__ */ t(I, { asChild: !0, children: /* @__PURE__ */ l(
|
|
110
111
|
"button",
|
|
111
112
|
{
|
|
112
113
|
type: "button",
|
|
@@ -114,7 +115,7 @@ function te({
|
|
|
114
115
|
disabled: d,
|
|
115
116
|
"data-pick-list": s,
|
|
116
117
|
className: i(
|
|
117
|
-
|
|
118
|
+
N,
|
|
118
119
|
"flex min-w-[140px] items-center justify-between gap-1.5 text-left hover:border-slate-300",
|
|
119
120
|
m
|
|
120
121
|
),
|
|
@@ -133,59 +134,66 @@ function te({
|
|
|
133
134
|
]
|
|
134
135
|
}
|
|
135
136
|
) }),
|
|
136
|
-
/* @__PURE__ */ t(
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
137
|
+
/* @__PURE__ */ t(
|
|
138
|
+
$,
|
|
139
|
+
{
|
|
140
|
+
className: u ? "w-[var(--radix-popover-trigger-width)] min-w-[220px] p-0" : "w-64 p-0",
|
|
141
|
+
align: u ? "start" : "end",
|
|
142
|
+
children: /* @__PURE__ */ l(O, { children: [
|
|
143
|
+
/* @__PURE__ */ t(
|
|
144
|
+
V,
|
|
145
|
+
{
|
|
146
|
+
placeholder: "Search…",
|
|
147
|
+
"aria-label": `Search ${s}`,
|
|
148
|
+
className: "h-8 text-[12px]"
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
/* @__PURE__ */ l(B, { className: "max-h-60", "aria-label": s, children: [
|
|
152
|
+
/* @__PURE__ */ t(D, { className: "px-2 py-1.5 text-[12px] text-slate-500 dark:text-slate-400", children: w }),
|
|
153
|
+
c && /* @__PURE__ */ l(
|
|
154
|
+
g,
|
|
155
|
+
{
|
|
156
|
+
value: "—none—",
|
|
157
|
+
keywords: [c],
|
|
158
|
+
onSelect: () => x(null),
|
|
159
|
+
className: i(f, "text-slate-500 dark:text-slate-400"),
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ t(b, { className: i("h-3 w-3", e ? "opacity-0" : "opacity-100") }),
|
|
162
|
+
/* @__PURE__ */ t("span", { children: c })
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
n.map((a) => /* @__PURE__ */ l(
|
|
167
|
+
g,
|
|
168
|
+
{
|
|
169
|
+
value: a.value,
|
|
170
|
+
keywords: [a.label, a.hint ?? ""],
|
|
171
|
+
"data-option": a.value,
|
|
172
|
+
onSelect: () => x(a.value),
|
|
173
|
+
className: i(f, a.value === e && "bg-accent"),
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ t(
|
|
176
|
+
b,
|
|
177
|
+
{
|
|
178
|
+
className: i(
|
|
179
|
+
"h-3 w-3 shrink-0",
|
|
180
|
+
a.value === e ? "opacity-100" : "opacity-0"
|
|
181
|
+
)
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate", children: a.label }),
|
|
185
|
+
a.hint && /* @__PURE__ */ t("span", { className: "shrink-0 font-mono text-[11px] text-slate-500 dark:text-slate-400", children: a.hint })
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
a.value
|
|
189
|
+
))
|
|
190
|
+
] })
|
|
191
|
+
] })
|
|
192
|
+
}
|
|
193
|
+
)
|
|
186
194
|
] });
|
|
187
195
|
}
|
|
188
|
-
function
|
|
196
|
+
function ae({ label: e, onRemove: n }) {
|
|
189
197
|
return /* @__PURE__ */ l("span", { className: "inline-flex max-w-full items-center gap-1 rounded bg-nvr-cyan/10 px-1.5 py-0.5 text-[12px] font-medium text-nvr-navy dark:text-nvr-cyan", children: [
|
|
190
198
|
/* @__PURE__ */ t("span", { className: "truncate", children: e }),
|
|
191
199
|
n && /* @__PURE__ */ t(
|
|
@@ -195,20 +203,20 @@ function ne({ label: e, onRemove: n }) {
|
|
|
195
203
|
"aria-label": `Remove ${e}`,
|
|
196
204
|
onClick: n,
|
|
197
205
|
className: "shrink-0 opacity-70 hover:opacity-100",
|
|
198
|
-
children: /* @__PURE__ */ t(
|
|
206
|
+
children: /* @__PURE__ */ t(C, { className: "h-3 w-3" })
|
|
199
207
|
}
|
|
200
208
|
)
|
|
201
209
|
] });
|
|
202
210
|
}
|
|
203
211
|
export {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
ae as Chip,
|
|
213
|
+
ne as PickList,
|
|
214
|
+
te as Segmented,
|
|
215
|
+
ee as Setting,
|
|
216
|
+
H as Toggle,
|
|
217
|
+
F as VisibleSettingsContext,
|
|
218
|
+
W as inputCls,
|
|
219
|
+
v as quietText,
|
|
220
|
+
L as smallBtn,
|
|
221
|
+
G as useSettingVisible
|
|
214
222
|
};
|
|
@@ -78,6 +78,14 @@ const y = [
|
|
|
78
78
|
types: ["grouped", "summary"],
|
|
79
79
|
keywords: "ipad tablet medium screen variant device touch"
|
|
80
80
|
},
|
|
81
|
+
{
|
|
82
|
+
key: "layout.conditions.summary_for",
|
|
83
|
+
section: "who",
|
|
84
|
+
label: "Use for these forms",
|
|
85
|
+
effect: "Records that open with one of these forms get this Summary; every other form gets the default Summary.",
|
|
86
|
+
types: ["summary"],
|
|
87
|
+
keywords: "pin form record summary read view per form"
|
|
88
|
+
},
|
|
81
89
|
// ── How it's laid out ─────────────────────────────────────────────────────
|
|
82
90
|
{
|
|
83
91
|
key: "layout.tab_mode",
|