@nivaro/react 0.3.111 → 0.3.112
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 +170 -2
- package/dist/index.js +745 -728
- package/dist/shared/components/CollectionBrowserView.js +3097 -2972
- package/dist/shared/components/CollectionImportBanner.js +135 -0
- package/dist/shared/components/ItemEditForm.js +2235 -2218
- package/dist/shared/components/JobsTray.js +54 -47
- package/dist/shared/components/ViewAsPersonButton.js +109 -0
- package/dist/shared/components/bulk/BulkFieldUpdate.js +228 -150
- package/dist/shared/components/bulk/BulkFieldUpdateButton.js +35 -41
- package/dist/shared/components/bulk/BulkLinksValue.js +91 -0
- package/dist/shared/components/bulk/bulk-field-options.js +20 -19
- package/dist/shared/components/bulk/bulk-update-preview.js +39 -0
- package/dist/shared/components/cbv/ColumnHeaderMenu.js +113 -0
- package/dist/shared/components/cbv/column-totals.js +66 -0
- package/dist/shared/components/collections-directory/CollectionHoverCard.js +108 -81
- package/dist/shared/components/collections-directory/CollectionRow.js +164 -148
- package/dist/shared/components/collections-directory/CollectionsDirectory.js +167 -166
- package/dist/shared/components/collections-directory/directory-data.js +70 -58
- package/dist/shared/components/imports/CollectionImportPanel.js +120 -118
- package/dist/shared/components/imports/DefinitionsPanel.js +24 -24
- package/dist/shared/components/imports/ImportDuplicatesNotice.js +65 -0
- package/dist/shared/components/item-edit/CatalogPickerField.js +631 -639
- package/dist/shared/components/item-edit/DuplicateNotice.js +168 -0
- package/dist/shared/components/item-edit/FieldRow.js +248 -246
- package/dist/shared/components/item-edit/InlineGridField.js +34 -33
- package/dist/shared/components/item-edit/InlineTableField.js +3064 -2882
- package/dist/shared/components/item-edit/MembershipSetField.js +165 -169
- package/dist/shared/components/item-edit/NestedRelationEditor.js +184 -189
- package/dist/shared/components/item-edit/PlanGrid.js +2 -1
- package/dist/shared/components/item-edit/QuickPickerDialog.js +35 -34
- package/dist/shared/components/item-edit/RecordLiveSync.js +32 -30
- package/dist/shared/components/item-edit/RelationCombobox.js +101 -100
- package/dist/shared/components/item-edit/RowHistorySheet.js +28 -27
- package/dist/shared/components/item-edit/SummaryPanel.js +133 -135
- package/dist/shared/components/item-edit/ViewAsRole.js +129 -52
- package/dist/shared/components/item-edit/grid-search.js +345 -0
- package/dist/shared/components/item-edit/render-stability.js +61 -54
- package/dist/shared/components/notifications/NotificationRulesEditor.js +25 -20
- package/dist/shared/components/ops-report/DigestSections.js +163 -144
- package/dist/shared/components/ops-report/drill.js +97 -97
- package/dist/shared/components/panels/AddendumLinesDiff.js +52 -51
- package/dist/shared/components/panels/AddendumPanel.js +92 -91
- package/dist/shared/components/panels/AsyncUserPicker.js +108 -0
- package/dist/shared/components/panels/CommentPanel.js +265 -252
- package/dist/shared/components/panels/OwnersSlot.js +47 -35
- package/dist/shared/components/panels/PipelineInsight.js +186 -0
- package/dist/shared/components/panels/PipelinePanel.js +1529 -1492
- package/dist/shared/components/panels/RecordIntegrityBanner.js +39 -38
- package/dist/shared/components/panels/RevisionsPanel.js +261 -260
- package/dist/shared/components/pipeline/FieldPicker.js +41 -40
- package/dist/shared/components/pipeline/OwnerMatrix.js +829 -700
- package/dist/shared/components/pipeline/OwnerRecordTrial.js +362 -0
- package/dist/shared/components/pipeline/PipelineEditorView.js +483 -467
- package/dist/shared/components/pipeline/PipelineStateOwners.js +65 -64
- package/dist/shared/components/pipeline/owner-matrix-draft.js +178 -0
- package/dist/shared/components/profile/MyDefaultsCard.js +36 -35
- package/dist/shared/components/profile/PersonHeader.js +29 -29
- package/dist/shared/components/profile/PersonProfile.js +30 -28
- package/dist/shared/components/profile/SlowScreensCard.js +286 -0
- package/dist/shared/components/queue/QueueWorklist.js +1090 -1071
- package/dist/shared/components/quick-filters/useQuickFilterEditing.js +45 -44
- package/dist/shared/components/support/TicketDetailSheet.js +25 -16
- package/dist/shared/components/support/TicketSlowScreens.js +32 -0
- package/dist/shared/lib/activity-sentence.js +224 -178
- package/dist/shared/lib/collection-import-banner.js +27 -0
- package/dist/shared/lib/crash-report.js +112 -0
- package/dist/shared/lib/export-runs.js +99 -0
- package/dist/shared/lib/jobs-tray.js +89 -67
- package/dist/shared/lib/list-link.js +76 -69
- package/dist/shared/lib/nav-trail.js +180 -76
- package/dist/shared/lib/query-keys.js +26 -0
- package/dist/shared/lib/view-as.js +16 -11
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { Pencil as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { useNavigation as
|
|
5
|
-
import { titleCase as
|
|
6
|
-
import { Checkbox as
|
|
7
|
-
import { useHoverIntent as
|
|
8
|
-
import { CollectionRowMenu as
|
|
9
|
-
import { recordCollectionOpen as
|
|
10
|
-
const
|
|
11
|
-
const { navigate:
|
|
1
|
+
import { jsx as r, jsxs as u, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { Pencil as Y, Pin as q, Star as W, AlertTriangle as G, EyeOff as Q, Code2 as X, Link2 as z, Workflow as J, LayoutTemplate as Z, Download as A, Square as ee } from "lucide-react";
|
|
3
|
+
import { forwardRef as te, useState as ne } from "react";
|
|
4
|
+
import { useNavigation as re } from "../../context.js";
|
|
5
|
+
import { titleCase as ae, cn as l, resolveCollectionIcon as oe, formatNumber as j, formatDateTime as ie } from "../../lib/utils.js";
|
|
6
|
+
import { Checkbox as se } from "../ui/checkbox.js";
|
|
7
|
+
import { useHoverIntent as le, CollectionHoverCard as ce } from "./CollectionHoverCard.js";
|
|
8
|
+
import { CollectionRowMenu as de } from "./CollectionRowMenu.js";
|
|
9
|
+
import { recordCollectionOpen as ue } from "./directory-data.js";
|
|
10
|
+
const me = (t) => `/collections/${encodeURIComponent(t)}`, P = te(function({ to: e, onClick: n, ...a }, i) {
|
|
11
|
+
const { navigate: m } = re();
|
|
12
12
|
return /* @__PURE__ */ r(
|
|
13
13
|
"a",
|
|
14
14
|
{
|
|
15
15
|
ref: i,
|
|
16
16
|
href: e,
|
|
17
17
|
...a,
|
|
18
|
-
onClick: (
|
|
19
|
-
n == null || n(
|
|
18
|
+
onClick: (o) => {
|
|
19
|
+
n == null || n(o), !o.defaultPrevented && (o.button !== 0 || o.metaKey || o.ctrlKey || o.shiftKey || o.altKey || (o.preventDefault(), m(e)));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
}), E = 3;
|
|
24
|
-
function
|
|
24
|
+
function pe({
|
|
25
25
|
color: t,
|
|
26
26
|
name: e,
|
|
27
27
|
icon: n,
|
|
28
28
|
size: a = "md"
|
|
29
29
|
}) {
|
|
30
|
-
const i =
|
|
30
|
+
const i = oe(n);
|
|
31
31
|
return /* @__PURE__ */ r(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
@@ -41,32 +41,45 @@ function ue({
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
function fe(t) {
|
|
45
|
+
return `The list opens on ${t.fields.map((n) => `${n.label} (up to ${j(n.max)} per record)`).join(" and ")} — slow and unreadable. Fix it in Data model → Collection Browser.`;
|
|
46
|
+
}
|
|
47
|
+
function he(t, e, n) {
|
|
48
|
+
const a = [];
|
|
49
|
+
return n && n.fields.length > 0 && a.push({
|
|
50
|
+
key: "heavy-list",
|
|
51
|
+
label: "Heavy list",
|
|
52
|
+
icon: G,
|
|
53
|
+
tip: fe(n),
|
|
54
|
+
warn: !0
|
|
55
|
+
}), t.hidden && !(e != null && e.link) && a.push({ key: "hidden", label: "Hidden", icon: Q, tip: "Hidden from navigation" }), e != null && e.virtual && a.push({
|
|
47
56
|
key: "virtual",
|
|
48
57
|
label: "Virtual",
|
|
49
|
-
icon:
|
|
58
|
+
icon: X,
|
|
50
59
|
tip: "Backed by SQL — read-only"
|
|
51
|
-
}), e != null && e.link &&
|
|
60
|
+
}), e != null && e.link && a.push({ key: "link", label: "Link table", icon: z, tip: "Links two collections" }), e != null && e.pipeline && a.push({ key: "pipeline", label: "Pipeline", icon: J, tip: e.pipeline }), e && e.forms > 0 && a.push({
|
|
52
61
|
key: "forms",
|
|
53
62
|
label: e.forms > 1 ? `Form ×${e.forms}` : "Form",
|
|
54
|
-
icon:
|
|
63
|
+
icon: Z,
|
|
55
64
|
tip: `${e.forms} form layout${e.forms === 1 ? "" : "s"}`
|
|
56
|
-
}), e && e.imports > 0 &&
|
|
65
|
+
}), e && e.imports > 0 && a.push({
|
|
57
66
|
key: "imports",
|
|
58
67
|
label: "Imports",
|
|
59
|
-
icon:
|
|
68
|
+
icon: A,
|
|
60
69
|
tip: `${e.imports} import${e.imports === 1 ? "" : "s"} feed this collection`
|
|
61
|
-
}), t.singleton &&
|
|
70
|
+
}), t.singleton && a.push({ key: "singleton", label: "Singleton", icon: ee, tip: "Holds a single record" }), a;
|
|
62
71
|
}
|
|
63
|
-
function
|
|
72
|
+
function xe({ spec: t }) {
|
|
64
73
|
const e = t.icon;
|
|
65
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ u(
|
|
66
75
|
"span",
|
|
67
76
|
{
|
|
68
77
|
"data-tip": t.tip,
|
|
69
|
-
|
|
78
|
+
"data-badge": t.key,
|
|
79
|
+
className: l(
|
|
80
|
+
"inline-flex items-center gap-1 whitespace-nowrap rounded px-1.5 py-px text-[10px] font-medium",
|
|
81
|
+
t.warn ? "bg-amber-50 text-amber-700 ring-1 ring-inset ring-amber-200 dark:bg-amber-400/10 dark:text-amber-300 dark:ring-amber-400/25" : "bg-slate-100 text-slate-500 dark:bg-white/10 dark:text-slate-400"
|
|
82
|
+
),
|
|
70
83
|
children: [
|
|
71
84
|
/* @__PURE__ */ r(e, { className: "h-[11px] w-[11px] shrink-0", "aria-hidden": "true" }),
|
|
72
85
|
t.label
|
|
@@ -74,12 +87,12 @@ function me({ spec: t }) {
|
|
|
74
87
|
}
|
|
75
88
|
);
|
|
76
89
|
}
|
|
77
|
-
function
|
|
90
|
+
function be({ items: t }) {
|
|
78
91
|
if (t.length === 0) return null;
|
|
79
92
|
const e = t.slice(0, E), n = t.slice(E);
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
e.map((a) => /* @__PURE__ */ r(
|
|
82
|
-
n.length > 0 && /* @__PURE__ */
|
|
93
|
+
return /* @__PURE__ */ u("span", { "data-cdr": "", className: "hidden shrink-0 items-center gap-1 sm:[&[data-cdr]]:flex", children: [
|
|
94
|
+
e.map((a) => /* @__PURE__ */ r(xe, { spec: a }, a.key)),
|
|
95
|
+
n.length > 0 && /* @__PURE__ */ u(
|
|
83
96
|
"span",
|
|
84
97
|
{
|
|
85
98
|
"data-tip": n.map((a) => a.label).join(" · "),
|
|
@@ -92,13 +105,13 @@ function fe({ items: t }) {
|
|
|
92
105
|
)
|
|
93
106
|
] });
|
|
94
107
|
}
|
|
95
|
-
function
|
|
108
|
+
function ve(t, e) {
|
|
96
109
|
const n = e == null ? void 0 : e.trim().toLowerCase();
|
|
97
110
|
return n ? t.toLowerCase().indexOf(n) : -1;
|
|
98
111
|
}
|
|
99
|
-
function
|
|
112
|
+
function ke({ text: t, at: e, len: n }) {
|
|
100
113
|
let a = t;
|
|
101
|
-
return e >= 0 && n > 0 && (a = /* @__PURE__ */
|
|
114
|
+
return e >= 0 && n > 0 && (a = /* @__PURE__ */ u(V, { children: [
|
|
102
115
|
t.slice(0, e),
|
|
103
116
|
/* @__PURE__ */ r("mark", { className: "rounded-sm bg-nvr-cyan/15 text-slate-700 dark:bg-nvr-cyan/25 dark:text-slate-200", children: t.slice(e, e + n) }),
|
|
104
117
|
t.slice(e + n)
|
|
@@ -111,28 +124,28 @@ function xe({ text: t, at: e, len: n }) {
|
|
|
111
124
|
}
|
|
112
125
|
);
|
|
113
126
|
}
|
|
114
|
-
function
|
|
127
|
+
function ye(t, e = Date.now()) {
|
|
115
128
|
const n = new Date(t), a = n.getTime();
|
|
116
129
|
if (Number.isNaN(a)) return "—";
|
|
117
130
|
const i = Math.floor((e - a) / 6e4);
|
|
118
131
|
if (i < 1) return "just now";
|
|
119
132
|
if (i < 60) return `${i}m ago`;
|
|
120
|
-
const
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
124
|
-
const
|
|
133
|
+
const m = Math.floor(i / 60);
|
|
134
|
+
if (m < 24) return `${m}h ago`;
|
|
135
|
+
const o = Math.floor(m / 24);
|
|
136
|
+
if (o < 7) return `${o}d ago`;
|
|
137
|
+
const h = n.getFullYear() === new Date(e).getFullYear();
|
|
125
138
|
return n.toLocaleDateString("en-US", {
|
|
126
139
|
month: "short",
|
|
127
140
|
day: "numeric",
|
|
128
|
-
...
|
|
141
|
+
...h ? {} : { year: "numeric" }
|
|
129
142
|
});
|
|
130
143
|
}
|
|
131
|
-
function
|
|
132
|
-
const e = t.rows == null ? /* @__PURE__ */ r("span", { "data-tip": "Record count unknown", className: "text-slate-400 dark:text-slate-500", children: "—" }) : t.rows === 0 ? /* @__PURE__ */ r("span", { className: "text-slate-400 dark:text-slate-500", children: "Empty" }) : /* @__PURE__ */ r("span", { "data-tip": "Approximate record count", children:
|
|
133
|
-
return /* @__PURE__ */
|
|
144
|
+
function we({ stat: t }) {
|
|
145
|
+
const e = t.rows == null ? /* @__PURE__ */ r("span", { "data-tip": "Record count unknown", className: "text-slate-400 dark:text-slate-500", children: "—" }) : t.rows === 0 ? /* @__PURE__ */ r("span", { className: "text-slate-400 dark:text-slate-500", children: "Empty" }) : /* @__PURE__ */ r("span", { "data-tip": "Approximate record count", children: j(t.rows) });
|
|
146
|
+
return /* @__PURE__ */ u("span", { className: "flex shrink-0 items-center gap-3 text-[11px] tabular-nums text-slate-500 dark:text-slate-400", children: [
|
|
134
147
|
/* @__PURE__ */ r("span", { className: "w-16 text-right", children: e }),
|
|
135
|
-
/* @__PURE__ */ r("span", { "data-cdr": "", className: "hidden w-16 whitespace-nowrap text-right md:[&[data-cdr]]:block", children: t.changed_at ? /* @__PURE__ */ r("span", { "data-tip": `Last change ${
|
|
148
|
+
/* @__PURE__ */ r("span", { "data-cdr": "", className: "hidden w-16 whitespace-nowrap text-right md:[&[data-cdr]]:block", children: t.changed_at ? /* @__PURE__ */ r("span", { "data-tip": `Last change ${ie(t.changed_at)}`, children: ye(t.changed_at) }) : /* @__PURE__ */ r(
|
|
136
149
|
"span",
|
|
137
150
|
{
|
|
138
151
|
"data-tip": "No change seen since the database last started",
|
|
@@ -142,207 +155,209 @@ function be({ stat: t }) {
|
|
|
142
155
|
) })
|
|
143
156
|
] });
|
|
144
157
|
}
|
|
145
|
-
const
|
|
146
|
-
function
|
|
158
|
+
const k = "opacity-0 transition-opacity duration-150 group-hover/row:opacity-100 group-focus-within/row:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100 motion-reduce:transition-none";
|
|
159
|
+
function ge(t) {
|
|
147
160
|
try {
|
|
148
161
|
return t.matches(":focus-visible");
|
|
149
162
|
} catch {
|
|
150
163
|
return !1;
|
|
151
164
|
}
|
|
152
165
|
}
|
|
153
|
-
function
|
|
166
|
+
function He({
|
|
154
167
|
col: t,
|
|
155
168
|
stat: e,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
+
heavyList: n,
|
|
170
|
+
density: a,
|
|
171
|
+
favorite: i,
|
|
172
|
+
onToggleFavorite: m,
|
|
173
|
+
pinnedForAll: o = !1,
|
|
174
|
+
onTogglePinned: h,
|
|
175
|
+
onMoveUp: S,
|
|
176
|
+
onMoveDown: H,
|
|
177
|
+
quietPin: R = !1,
|
|
178
|
+
folders: B,
|
|
179
|
+
onMove: I,
|
|
180
|
+
recordsPath: M,
|
|
181
|
+
editPath: y,
|
|
182
|
+
menuExtra: T,
|
|
169
183
|
selecting: w,
|
|
170
184
|
selected: g,
|
|
171
185
|
onSelect: N,
|
|
172
186
|
dragHandle: C,
|
|
173
|
-
highlight:
|
|
174
|
-
isAdmin:
|
|
187
|
+
highlight: b,
|
|
188
|
+
isAdmin: p,
|
|
175
189
|
indent: _
|
|
176
190
|
}) {
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
},
|
|
191
|
+
const f = t.collection, c = t.display_name ?? ae(f), x = a === "compact", [K, v] = ne(!1), d = le(p), $ = M ?? me(f), L = ve(f, b), U = K || L >= 0, F = he(t, e, p ? n : void 0), O = (s) => {
|
|
192
|
+
s.currentTarget.contains(s.relatedTarget) || v(!1);
|
|
193
|
+
}, D = /* @__PURE__ */ r(
|
|
180
194
|
"span",
|
|
181
195
|
{
|
|
182
196
|
className: "min-w-0 truncate text-[13px] font-semibold tracking-[-0.003em] text-slate-800 group-hover/row:text-slate-900 dark:text-slate-200 dark:group-hover/row:text-slate-100",
|
|
183
|
-
onPointerEnter:
|
|
184
|
-
onPointerLeave:
|
|
185
|
-
children:
|
|
197
|
+
onPointerEnter: d.show,
|
|
198
|
+
onPointerLeave: d.hide,
|
|
199
|
+
children: c
|
|
186
200
|
}
|
|
187
201
|
);
|
|
188
202
|
return (
|
|
189
203
|
// biome-ignore lint/a11y/noStaticElementInteractions: hover/focus only reveal the key; the link, star and menu are the controls
|
|
190
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ u(
|
|
191
205
|
"div",
|
|
192
206
|
{
|
|
193
|
-
"data-collection":
|
|
207
|
+
"data-collection": f,
|
|
194
208
|
className: l(
|
|
195
209
|
"group/row relative flex w-full items-center gap-2 transition-colors duration-150 hover:bg-nvr-cyan/[0.04] focus-within:bg-nvr-cyan/[0.04] motion-reduce:transition-none dark:hover:bg-nvr-cyan/[0.06] dark:focus-within:bg-nvr-cyan/[0.06]",
|
|
196
210
|
g && "bg-nvr-cyan/[0.07] dark:bg-nvr-cyan/[0.1]",
|
|
197
|
-
|
|
211
|
+
x ? "h-7" : "min-h-10 py-1",
|
|
198
212
|
_ ? "pl-2 pr-2" : C ? "pr-2" : "pl-4 pr-2"
|
|
199
213
|
),
|
|
200
214
|
onMouseEnter: () => v(!0),
|
|
201
215
|
onMouseLeave: () => v(!1),
|
|
202
216
|
onFocus: () => v(!0),
|
|
203
|
-
onBlur:
|
|
217
|
+
onBlur: O,
|
|
204
218
|
children: [
|
|
205
219
|
C,
|
|
206
220
|
w && /* @__PURE__ */ r(
|
|
207
|
-
|
|
221
|
+
se,
|
|
208
222
|
{
|
|
209
223
|
checked: g,
|
|
210
224
|
onCheckedChange: () => N(),
|
|
211
|
-
onClick: (
|
|
212
|
-
"aria-label": `Select ${
|
|
225
|
+
onClick: (s) => s.stopPropagation(),
|
|
226
|
+
"aria-label": `Select ${c}`,
|
|
213
227
|
className: "h-3.5 w-3.5 border-slate-300 data-[state=checked]:border-nvr-cyan data-[state=checked]:bg-nvr-cyan data-[state=checked]:text-white dark:border-slate-600 [&_svg]:h-3 [&_svg]:w-3"
|
|
214
228
|
}
|
|
215
229
|
),
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
|
|
230
|
+
/* @__PURE__ */ u(
|
|
231
|
+
P,
|
|
218
232
|
{
|
|
219
233
|
to: $,
|
|
220
|
-
onClick: (
|
|
221
|
-
if (
|
|
222
|
-
|
|
234
|
+
onClick: (s) => {
|
|
235
|
+
if (d.close(), w) {
|
|
236
|
+
s.preventDefault(), N();
|
|
223
237
|
return;
|
|
224
238
|
}
|
|
225
|
-
|
|
239
|
+
ue(f);
|
|
226
240
|
},
|
|
227
|
-
onFocus: (
|
|
228
|
-
|
|
241
|
+
onFocus: (s) => {
|
|
242
|
+
ge(s.currentTarget) && d.show();
|
|
229
243
|
},
|
|
230
|
-
onBlur:
|
|
244
|
+
onBlur: d.hide,
|
|
231
245
|
className: l(
|
|
232
246
|
"flex min-w-0 flex-1 items-center gap-2.5 self-stretch rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-nvr-cyan/50",
|
|
233
|
-
|
|
247
|
+
x ? "" : "py-0.5"
|
|
234
248
|
),
|
|
235
249
|
children: [
|
|
236
250
|
/* @__PURE__ */ r(
|
|
237
|
-
|
|
251
|
+
pe,
|
|
238
252
|
{
|
|
239
253
|
color: t.color,
|
|
240
|
-
name:
|
|
254
|
+
name: c,
|
|
241
255
|
icon: t.icon,
|
|
242
|
-
size:
|
|
256
|
+
size: x ? "sm" : "md"
|
|
243
257
|
}
|
|
244
258
|
),
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
|
|
248
|
-
|
|
259
|
+
/* @__PURE__ */ u("span", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
260
|
+
/* @__PURE__ */ u("span", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
261
|
+
p ? /* @__PURE__ */ r(
|
|
262
|
+
ce,
|
|
249
263
|
{
|
|
250
|
-
collection:
|
|
251
|
-
title:
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
264
|
+
collection: f,
|
|
265
|
+
title: c,
|
|
266
|
+
heavyList: n,
|
|
267
|
+
open: d.open,
|
|
268
|
+
onClose: d.close,
|
|
269
|
+
onCardEnter: d.cancel,
|
|
270
|
+
onCardLeave: d.hide,
|
|
271
|
+
children: D
|
|
257
272
|
}
|
|
258
|
-
) :
|
|
259
|
-
|
|
260
|
-
|
|
273
|
+
) : D,
|
|
274
|
+
U && /* @__PURE__ */ r(ke, { text: f, at: L, len: (b == null ? void 0 : b.trim().length) ?? 0 }),
|
|
275
|
+
x && t.note && /* @__PURE__ */ r("span", { className: "min-w-0 flex-1 truncate text-[12px] text-slate-500 dark:text-slate-400", children: t.note })
|
|
261
276
|
] }),
|
|
262
|
-
!
|
|
277
|
+
!x && t.note && /* @__PURE__ */ r("span", { className: "truncate text-[12px] leading-4 text-slate-500 dark:text-slate-400", children: t.note })
|
|
263
278
|
] }),
|
|
264
|
-
/* @__PURE__ */ r(
|
|
265
|
-
e && /* @__PURE__ */ r(
|
|
279
|
+
/* @__PURE__ */ r(be, { items: F }),
|
|
280
|
+
e && /* @__PURE__ */ r(we, { stat: e })
|
|
266
281
|
]
|
|
267
282
|
}
|
|
268
283
|
),
|
|
269
|
-
|
|
270
|
-
|
|
284
|
+
p && y && /* @__PURE__ */ r(
|
|
285
|
+
P,
|
|
271
286
|
{
|
|
272
|
-
to:
|
|
273
|
-
"aria-label": `Edit ${
|
|
287
|
+
to: y,
|
|
288
|
+
"aria-label": `Edit ${c}`,
|
|
274
289
|
"data-tip": "Edit fields, forms and settings",
|
|
275
290
|
"data-collection-edit": !0,
|
|
276
291
|
"data-cdr": "",
|
|
277
|
-
onClick: (
|
|
292
|
+
onClick: (s) => s.stopPropagation(),
|
|
278
293
|
className: l(
|
|
279
294
|
// Phones: the ⋯ menu carries editing; the row keeps its width for the name.
|
|
280
295
|
"hidden h-6 w-6 shrink-0 items-center justify-center rounded text-slate-400 hover:bg-slate-100 hover:text-slate-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 sm:[&[data-cdr]]:flex dark:text-slate-500 dark:hover:bg-white/10 dark:hover:text-slate-300",
|
|
281
|
-
|
|
296
|
+
k
|
|
282
297
|
),
|
|
283
|
-
children: /* @__PURE__ */ r(
|
|
298
|
+
children: /* @__PURE__ */ r(Y, { className: "h-3.5 w-3.5" })
|
|
284
299
|
}
|
|
285
300
|
),
|
|
286
|
-
|
|
301
|
+
p && h && /* @__PURE__ */ r(
|
|
287
302
|
"button",
|
|
288
303
|
{
|
|
289
304
|
type: "button",
|
|
290
|
-
"aria-label":
|
|
291
|
-
"aria-pressed":
|
|
292
|
-
"data-tip":
|
|
305
|
+
"aria-label": o ? `Unpin ${c} for everyone` : `Pin ${c} for everyone`,
|
|
306
|
+
"aria-pressed": o,
|
|
307
|
+
"data-tip": o ? "Unpin for everyone" : "Pin to the top for everyone",
|
|
293
308
|
"data-collection-pin": !0,
|
|
294
309
|
"data-cdr": "",
|
|
295
|
-
onClick: (
|
|
296
|
-
|
|
310
|
+
onClick: (s) => {
|
|
311
|
+
s.preventDefault(), s.stopPropagation(), h();
|
|
297
312
|
},
|
|
298
313
|
className: l(
|
|
299
314
|
// Phones: Pin for everyone stays in the ⋯ menu.
|
|
300
315
|
"hidden sm:[&[data-cdr]]:flex h-6 w-6 shrink-0 items-center justify-center rounded hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 dark:hover:bg-white/10",
|
|
301
|
-
|
|
302
|
-
|
|
316
|
+
o && !R ? "text-slate-600 hover:text-slate-800 dark:text-slate-300 dark:hover:text-slate-100" : l(
|
|
317
|
+
k,
|
|
303
318
|
"text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300"
|
|
304
319
|
)
|
|
305
320
|
),
|
|
306
|
-
children: /* @__PURE__ */ r(
|
|
321
|
+
children: /* @__PURE__ */ r(q, { className: l("h-3.5 w-3.5", o && "fill-current") })
|
|
307
322
|
}
|
|
308
323
|
),
|
|
309
324
|
/* @__PURE__ */ r(
|
|
310
325
|
"button",
|
|
311
326
|
{
|
|
312
327
|
type: "button",
|
|
313
|
-
"aria-label":
|
|
314
|
-
"aria-pressed":
|
|
315
|
-
"data-tip":
|
|
316
|
-
onClick: (
|
|
317
|
-
|
|
328
|
+
"aria-label": i ? `Remove ${c} from my favorites` : `Add ${c} to my favorites`,
|
|
329
|
+
"aria-pressed": i,
|
|
330
|
+
"data-tip": i ? "Remove from my favorites" : "Add to my favorites",
|
|
331
|
+
onClick: (s) => {
|
|
332
|
+
s.preventDefault(), s.stopPropagation(), m();
|
|
318
333
|
},
|
|
319
334
|
className: l(
|
|
320
335
|
"flex h-6 w-6 shrink-0 items-center justify-center rounded hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 dark:hover:bg-white/10",
|
|
321
|
-
|
|
322
|
-
|
|
336
|
+
i ? "text-nvr-cyan" : l(
|
|
337
|
+
k,
|
|
323
338
|
"text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300"
|
|
324
339
|
)
|
|
325
340
|
),
|
|
326
|
-
children: /* @__PURE__ */ r(
|
|
341
|
+
children: /* @__PURE__ */ r(W, { className: l("h-3.5 w-3.5", i && "fill-current") })
|
|
327
342
|
}
|
|
328
343
|
),
|
|
329
344
|
/* @__PURE__ */ r(
|
|
330
|
-
|
|
345
|
+
de,
|
|
331
346
|
{
|
|
332
347
|
col: t,
|
|
333
|
-
displayName:
|
|
334
|
-
isAdmin:
|
|
348
|
+
displayName: c,
|
|
349
|
+
isAdmin: p,
|
|
335
350
|
recordsPath: $,
|
|
336
|
-
extra:
|
|
337
|
-
favorite:
|
|
338
|
-
onToggleFavorite:
|
|
339
|
-
pinnedForAll:
|
|
340
|
-
onTogglePinned:
|
|
341
|
-
onMoveUp:
|
|
342
|
-
onMoveDown:
|
|
343
|
-
folders:
|
|
344
|
-
onMove:
|
|
345
|
-
className: l(
|
|
351
|
+
extra: p ? T : void 0,
|
|
352
|
+
favorite: i,
|
|
353
|
+
onToggleFavorite: m,
|
|
354
|
+
pinnedForAll: o,
|
|
355
|
+
onTogglePinned: h,
|
|
356
|
+
onMoveUp: S,
|
|
357
|
+
onMoveDown: H,
|
|
358
|
+
folders: B,
|
|
359
|
+
onMove: I,
|
|
360
|
+
className: l(k, "[@media(hover:none)]:[&[data-cdr]]:opacity-100")
|
|
346
361
|
}
|
|
347
362
|
)
|
|
348
363
|
]
|
|
@@ -351,9 +366,10 @@ function Ee({
|
|
|
351
366
|
);
|
|
352
367
|
}
|
|
353
368
|
export {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
369
|
+
pe as CollectionAvatar,
|
|
370
|
+
He as CollectionRow,
|
|
371
|
+
P as HostLink,
|
|
372
|
+
me as defaultCollectionPath,
|
|
373
|
+
fe as heavyListTip,
|
|
374
|
+
ye as shortWhen
|
|
359
375
|
};
|