@nivaro/react 0.3.8 → 0.3.10
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/components/fields/FileField.js +20 -19
- package/dist/full.css +1 -1
- package/dist/hooks/replayUploadQueue.js +107 -93
- package/dist/hooks/useNivaroForm.js +129 -126
- package/dist/hooks/useSessionRecorder.js +103 -101
- package/dist/index.d.ts +115 -2
- package/dist/index.js +466 -447
- package/dist/shared/components/CollectionBrowserView.js +1058 -1059
- package/dist/shared/components/ConformanceView.js +36 -35
- package/dist/shared/components/DataTable.js +230 -223
- package/dist/shared/components/ForceReloadBanner.js +58 -34
- package/dist/shared/components/ItemEditForm.js +3687 -3580
- package/dist/shared/components/JsonMapEditor.js +18 -17
- package/dist/shared/components/MatrixEditor.js +8 -7
- package/dist/shared/components/MyWorkView.js +32 -31
- package/dist/shared/components/PageRenderer.js +146 -145
- package/dist/shared/components/QueryTable.js +49 -49
- package/dist/shared/components/RecordGridEditor.js +76 -75
- package/dist/shared/components/ai/AiMemorySuggestions.js +15 -14
- package/dist/shared/components/ai/AskPanel.js +55 -54
- package/dist/shared/components/bulk/BulkActionButtons.js +30 -29
- package/dist/shared/components/bulk/PushBulkButtons.js +57 -56
- package/dist/shared/components/chat/ChatPanel.js +288 -287
- package/dist/shared/components/chat/SlashCommands.js +30 -29
- package/dist/shared/components/chat/chat-outbox.js +76 -75
- package/dist/shared/components/help-videos/recorder/useLeaveWarning.js +6 -5
- package/dist/shared/components/integrations/console/SignalCard.js +124 -123
- package/dist/shared/components/integrations/console/SnoozeMenu.js +24 -23
- package/dist/shared/components/item-edit/CloneDialog.js +85 -78
- package/dist/shared/components/item-edit/InlineTableField.js +301 -300
- package/dist/shared/components/item-edit/MembershipSetField.js +24 -23
- package/dist/shared/components/item-edit/QuickCreateButton.js +8 -7
- package/dist/shared/components/item-edit/RecordLiveSync.js +101 -100
- package/dist/shared/components/item-edit/staged-links.js +86 -0
- package/dist/shared/components/layout-editor/LayoutEditor.js +275 -274
- package/dist/shared/components/layout-editor/editors/cascade-rule-row.js +18 -17
- package/dist/shared/components/layout-editor/inspector/HelpTab.js +37 -36
- package/dist/shared/components/layout-editor/matrix/FieldStateMatrix.js +50 -49
- package/dist/shared/components/panels/CommentPanel.js +237 -236
- package/dist/shared/components/profile/AiMemoryCard.js +15 -14
- package/dist/shared/components/profile/PersonAdminTools.js +70 -67
- package/dist/shared/components/profile/usePersonPresence.js +42 -37
- package/dist/shared/components/queue/QueueItemSheet.js +36 -35
- package/dist/shared/components/queue/QueueWorklist.js +597 -598
- package/dist/shared/lib/client-version.js +63 -0
- package/dist/shared/lib/force-reload.js +36 -0
- package/dist/shared/lib/load-error.js +11 -10
- package/dist/shared/lib/presence-live.js +73 -0
- package/dist/shared/lib/presence-state.js +39 -31
- package/dist/shared/lib/record-outbox.js +76 -75
- package/dist/shared/lib/request-gate.js +120 -102
- package/dist/shared/lib/rum.js +45 -36
- package/dist/shared/lib/safe-error.js +39 -0
- package/dist/shared/lib/server-clock.js +11 -7
- package/dist/shared/lib/signed-out.js +114 -0
- package/dist/shared/lib/socket-realtime.js +19 -17
- package/dist/shared/lib/unsaved-work.js +62 -0
- package/dist/shared/lib/use-online-users.js +11 -10
- package/dist/shared/lib/worker-socket.js +89 -79
- package/package.json +1 -1
|
@@ -3,16 +3,16 @@ import { Search as Xe, Pin as Qe, ChevronDown as Ye, Inbox as Ze, ChevronsUpDown
|
|
|
3
3
|
import Ge, { useMemo as ke, useRef as Y, useState as $, useEffect as K, useLayoutEffect as Pe } from "react";
|
|
4
4
|
import { parseDateFilter as we, describeDateFilter as et, DATE_FILTER_OPS as tt, formatDateFilter as rt } from "../lib/date-filter.js";
|
|
5
5
|
import { parseNumberFilter as _e, describeNumberFilter as at, NUMBER_FILTER_OPS as lt, formatNumberFilter as nt } from "../lib/number-filter.js";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as h, formatNumber as de } from "../lib/utils.js";
|
|
7
7
|
import { CellCopyLayer as st } from "./CellCopyLayer.js";
|
|
8
8
|
import { EmptyState as it } from "./EmptyState.js";
|
|
9
9
|
import { HScrollProxy as ct } from "./HScrollProxy.js";
|
|
10
10
|
import { Button as Se } from "./ui/button.js";
|
|
11
11
|
import { Checkbox as Oe } from "./ui/checkbox.js";
|
|
12
|
-
import { Command as dt, CommandInput as ot, CommandList as pt, CommandEmpty as
|
|
12
|
+
import { Command as dt, CommandInput as ot, CommandList as pt, CommandEmpty as bt, CommandItem as ht } from "./ui/command.js";
|
|
13
13
|
import { Input as A } from "./ui/input.js";
|
|
14
14
|
import { Popover as I, PopoverTrigger as G, PopoverContent as P } from "./ui/popover.js";
|
|
15
|
-
import { Select as
|
|
15
|
+
import { Select as mt, SelectTrigger as ut, SelectValue as xt, SelectContent as ft, SelectItem as $e } from "./ui/select.js";
|
|
16
16
|
import { Skeleton as yt } from "./ui/skeleton.js";
|
|
17
17
|
import { Table as gt, TableHeader as vt, TableRow as U, TableHead as X, TableBody as Nt, TableCell as Q } from "./ui/table.js";
|
|
18
18
|
const kt = [1, 2, 3, 4, 5, 6, 7, 8];
|
|
@@ -31,7 +31,7 @@ function _t({ field: r, sort: i }) {
|
|
|
31
31
|
return o !== r || !i ? /* @__PURE__ */ e(Z, { className: "ml-1 inline h-3 w-3 shrink-0 text-slate-300" }) : /* @__PURE__ */ e(
|
|
32
32
|
De,
|
|
33
33
|
{
|
|
34
|
-
className:
|
|
34
|
+
className: h(
|
|
35
35
|
"ml-1 inline h-3 w-3 shrink-0 text-nvr-cyan transition-transform duration-200",
|
|
36
36
|
c === "desc" && "rotate-180"
|
|
37
37
|
)
|
|
@@ -43,43 +43,43 @@ function St({
|
|
|
43
43
|
value: i,
|
|
44
44
|
onChange: o
|
|
45
45
|
}) {
|
|
46
|
-
const [c, u] = $(!1), [l, d] = $(""), [y, g] = $([]), [v, x] = $(!1), [
|
|
46
|
+
const [c, u] = $(!1), [l, d] = $(""), [y, g] = $([]), [v, x] = $(!1), [b, N] = $({}), a = Y(0), w = !!r.loadOptions, k = Array.isArray(i) ? i : i === "" ? [] : [i];
|
|
47
47
|
K(() => {
|
|
48
48
|
if (!w || !c) return;
|
|
49
|
-
const
|
|
49
|
+
const m = ++a.current;
|
|
50
50
|
x(!0);
|
|
51
51
|
const R = setTimeout(
|
|
52
52
|
() => {
|
|
53
53
|
var E;
|
|
54
54
|
(E = r.loadOptions) == null || E.call(r, l).then((F) => {
|
|
55
|
-
a.current ===
|
|
55
|
+
a.current === m && g(F);
|
|
56
56
|
}).catch(() => {
|
|
57
|
-
a.current ===
|
|
57
|
+
a.current === m && g([]);
|
|
58
58
|
}).finally(() => {
|
|
59
|
-
a.current ===
|
|
59
|
+
a.current === m && x(!1);
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
62
|
l ? 250 : 0
|
|
63
63
|
);
|
|
64
64
|
return () => clearTimeout(R);
|
|
65
65
|
}, [l, c, w]);
|
|
66
|
-
const J = w ? y : r.options ?? [], z = (
|
|
66
|
+
const J = w ? y : r.options ?? [], z = (m) => {
|
|
67
67
|
var R, E;
|
|
68
|
-
return ((R = J.find((F) => F.value ===
|
|
68
|
+
return ((R = J.find((F) => F.value === m)) == null ? void 0 : R.label) ?? ((E = (r.options ?? []).find((F) => F.value === m)) == null ? void 0 : E.label) ?? b[m] ?? m;
|
|
69
69
|
}, B = k.length === 0 ? null : k.length === 1 ? z(k[0]) : `${z(k[0])} +${k.length - 1}`;
|
|
70
70
|
return /* @__PURE__ */ s(
|
|
71
71
|
I,
|
|
72
72
|
{
|
|
73
73
|
open: c,
|
|
74
|
-
onOpenChange: (
|
|
75
|
-
u(
|
|
74
|
+
onOpenChange: (m) => {
|
|
75
|
+
u(m), m || d("");
|
|
76
76
|
},
|
|
77
77
|
children: [
|
|
78
78
|
/* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ s(
|
|
79
79
|
"button",
|
|
80
80
|
{
|
|
81
81
|
type: "button",
|
|
82
|
-
className:
|
|
82
|
+
className: h(
|
|
83
83
|
"flex h-8 w-40 items-center justify-between rounded-md border border-slate-200 bg-slate-50 px-2.5 text-[13px] dark:border-border dark:bg-muted/40",
|
|
84
84
|
B ? "text-slate-800 dark:text-foreground" : "text-slate-500"
|
|
85
85
|
),
|
|
@@ -93,8 +93,8 @@ function St({
|
|
|
93
93
|
role: "button",
|
|
94
94
|
tabIndex: -1,
|
|
95
95
|
"aria-label": "Clear filter",
|
|
96
|
-
onClick: (
|
|
97
|
-
|
|
96
|
+
onClick: (m) => {
|
|
97
|
+
m.stopPropagation(), o(r.multi ? [] : "");
|
|
98
98
|
},
|
|
99
99
|
className: "rounded p-0.5 text-slate-400 hover:text-slate-600",
|
|
100
100
|
children: /* @__PURE__ */ e(D, { className: "h-3 w-3" })
|
|
@@ -116,25 +116,25 @@ function St({
|
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
118
|
/* @__PURE__ */ s(pt, { children: [
|
|
119
|
-
/* @__PURE__ */ e(
|
|
120
|
-
J.map((
|
|
121
|
-
const R = k.includes(
|
|
119
|
+
/* @__PURE__ */ e(bt, { className: "py-3 text-center text-[12px] text-slate-400", children: v ? "Searching…" : "No results" }),
|
|
120
|
+
J.map((m) => {
|
|
121
|
+
const R = k.includes(m.value);
|
|
122
122
|
return /* @__PURE__ */ s(
|
|
123
|
-
|
|
123
|
+
ht,
|
|
124
124
|
{
|
|
125
|
-
value: w ?
|
|
125
|
+
value: w ? m.value : m.label,
|
|
126
126
|
onSelect: () => {
|
|
127
|
-
N((E) => ({ ...E, [
|
|
128
|
-
R ? k.filter((E) => E !==
|
|
129
|
-
) : (o(R ? "" :
|
|
127
|
+
N((E) => ({ ...E, [m.value]: m.label })), r.multi ? o(
|
|
128
|
+
R ? k.filter((E) => E !== m.value) : [...k, m.value]
|
|
129
|
+
) : (o(R ? "" : m.value), u(!1));
|
|
130
130
|
},
|
|
131
131
|
className: "text-[12px]",
|
|
132
132
|
children: [
|
|
133
|
-
/* @__PURE__ */ e(Ke, { className:
|
|
134
|
-
|
|
133
|
+
/* @__PURE__ */ e(Ke, { className: h("mr-2 h-3 w-3", R ? "opacity-100" : "opacity-0") }),
|
|
134
|
+
m.label
|
|
135
135
|
]
|
|
136
136
|
},
|
|
137
|
-
|
|
137
|
+
m.value
|
|
138
138
|
);
|
|
139
139
|
})
|
|
140
140
|
] })
|
|
@@ -148,11 +148,11 @@ function Ot({
|
|
|
148
148
|
placeholder: i,
|
|
149
149
|
onChange: o
|
|
150
150
|
}) {
|
|
151
|
-
const [c, u] = $(!1), l = we(r), [d, y] = $((l == null ? void 0 : l.op) ?? "on"), [g, v] = $((l == null ? void 0 : l.from) ?? ""), [x,
|
|
151
|
+
const [c, u] = $(!1), l = we(r), [d, y] = $((l == null ? void 0 : l.op) ?? "on"), [g, v] = $((l == null ? void 0 : l.from) ?? ""), [x, b] = $((l == null ? void 0 : l.to) ?? "");
|
|
152
152
|
K(() => {
|
|
153
153
|
if (!c) return;
|
|
154
154
|
const a = we(r);
|
|
155
|
-
y((a == null ? void 0 : a.op) ?? "on"), v((a == null ? void 0 : a.from) ?? ""),
|
|
155
|
+
y((a == null ? void 0 : a.op) ?? "on"), v((a == null ? void 0 : a.from) ?? ""), b((a == null ? void 0 : a.to) ?? "");
|
|
156
156
|
}, [c, r]);
|
|
157
157
|
const N = (a, w, k) => {
|
|
158
158
|
w && (o(rt({ op: a, from: w, to: k || w })), (a !== "between" || k) && u(!1));
|
|
@@ -165,7 +165,7 @@ function Ot({
|
|
|
165
165
|
"data-date-filter": !0,
|
|
166
166
|
className: "flex h-8 w-full items-center justify-between gap-1 rounded-md border border-slate-200 bg-slate-50 px-2 text-left text-[12px] dark:border-border dark:bg-muted",
|
|
167
167
|
children: [
|
|
168
|
-
/* @__PURE__ */ e("span", { className:
|
|
168
|
+
/* @__PURE__ */ e("span", { className: h("truncate", !l && "text-slate-500 dark:text-muted-foreground"), children: l ? et(l) : i }),
|
|
169
169
|
l ? /* @__PURE__ */ e(
|
|
170
170
|
D,
|
|
171
171
|
{
|
|
@@ -188,7 +188,7 @@ function Ot({
|
|
|
188
188
|
onClick: () => {
|
|
189
189
|
y(a.op), g && N(a.op, g, x);
|
|
190
190
|
},
|
|
191
|
-
className:
|
|
191
|
+
className: h(
|
|
192
192
|
"rounded border px-1 py-1 text-[11px] leading-tight transition-colors",
|
|
193
193
|
d === a.op ? "border-nvr-cyan/40 bg-nvr-cyan/10 font-medium" : "border-slate-200 text-slate-600 hover:bg-muted dark:border-border dark:text-muted-foreground"
|
|
194
194
|
),
|
|
@@ -216,7 +216,7 @@ function Ot({
|
|
|
216
216
|
type: "date",
|
|
217
217
|
value: x,
|
|
218
218
|
onChange: (a) => {
|
|
219
|
-
|
|
219
|
+
b(a.target.value), N("between", g, a.target.value);
|
|
220
220
|
},
|
|
221
221
|
className: "h-7 flex-1 rounded border border-slate-200 bg-background px-1 text-[12px] dark:border-border"
|
|
222
222
|
}
|
|
@@ -232,7 +232,7 @@ function $t({
|
|
|
232
232
|
unit: o,
|
|
233
233
|
onChange: c
|
|
234
234
|
}) {
|
|
235
|
-
const [u, l] = $(!1), [d, y] = r.split(":"), g = o ?? "", v = d && y ? `${d}–${y}${g}` : d ? `${d}${g}+` : y ? `≤ ${y}${g}` : i, x = (
|
|
235
|
+
const [u, l] = $(!1), [d, y] = r.split(":"), g = o ?? "", v = d && y ? `${d}–${y}${g}` : d ? `${d}${g}+` : y ? `≤ ${y}${g}` : i, x = (b, N) => c(b === "" && N === "" ? null : `${b}:${N}`);
|
|
236
236
|
return /* @__PURE__ */ s(I, { open: u, onOpenChange: l, children: [
|
|
237
237
|
/* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ s(
|
|
238
238
|
"button",
|
|
@@ -244,7 +244,7 @@ function $t({
|
|
|
244
244
|
/* @__PURE__ */ e(
|
|
245
245
|
"span",
|
|
246
246
|
{
|
|
247
|
-
className:
|
|
247
|
+
className: h("truncate", !d && !y && "text-slate-500 dark:text-muted-foreground"),
|
|
248
248
|
children: v
|
|
249
249
|
}
|
|
250
250
|
),
|
|
@@ -252,8 +252,8 @@ function $t({
|
|
|
252
252
|
D,
|
|
253
253
|
{
|
|
254
254
|
className: "h-3 w-3 shrink-0 text-slate-400 hover:text-slate-700",
|
|
255
|
-
onClick: (
|
|
256
|
-
|
|
255
|
+
onClick: (b) => {
|
|
256
|
+
b.stopPropagation(), c(null);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
) : /* @__PURE__ */ e(Z, { className: "h-3.5 w-3.5 shrink-0 text-slate-400" })
|
|
@@ -270,7 +270,7 @@ function $t({
|
|
|
270
270
|
"aria-label": `Minimum ${i}`,
|
|
271
271
|
placeholder: "Min",
|
|
272
272
|
value: d ?? "",
|
|
273
|
-
onChange: (
|
|
273
|
+
onChange: (b) => x(b.target.value, y ?? ""),
|
|
274
274
|
className: "h-7 text-[12px]"
|
|
275
275
|
}
|
|
276
276
|
),
|
|
@@ -282,7 +282,7 @@ function $t({
|
|
|
282
282
|
"aria-label": `Maximum ${i}`,
|
|
283
283
|
placeholder: "Max",
|
|
284
284
|
value: y ?? "",
|
|
285
|
-
onChange: (
|
|
285
|
+
onChange: (b) => x(d ?? "", b.target.value),
|
|
286
286
|
className: "h-7 text-[12px]"
|
|
287
287
|
}
|
|
288
288
|
)
|
|
@@ -295,11 +295,11 @@ function Ct({
|
|
|
295
295
|
placeholder: i,
|
|
296
296
|
onChange: o
|
|
297
297
|
}) {
|
|
298
|
-
const [c, u] = $(!1), l = _e(r), [d, y] = $((l == null ? void 0 : l.op) ?? "eq"), [g, v] = $(l ? String(l.a) : ""), [x,
|
|
298
|
+
const [c, u] = $(!1), l = _e(r), [d, y] = $((l == null ? void 0 : l.op) ?? "eq"), [g, v] = $(l ? String(l.a) : ""), [x, b] = $((l == null ? void 0 : l.b) != null ? String(l.b) : "");
|
|
299
299
|
K(() => {
|
|
300
300
|
if (!c) return;
|
|
301
301
|
const a = _e(r);
|
|
302
|
-
y((a == null ? void 0 : a.op) ?? "eq"), v(a ? String(a.a) : ""),
|
|
302
|
+
y((a == null ? void 0 : a.op) ?? "eq"), v(a ? String(a.a) : ""), b((a == null ? void 0 : a.b) != null ? String(a.b) : "");
|
|
303
303
|
}, [c, r]);
|
|
304
304
|
const N = (a, w, k) => {
|
|
305
305
|
w === "" || Number.isNaN(Number(w)) || a === "between" && (k === "" || Number.isNaN(Number(k))) || o(nt({ op: a, a: Number(w), b: k === "" ? void 0 : Number(k) }));
|
|
@@ -312,7 +312,7 @@ function Ct({
|
|
|
312
312
|
"data-number-filter": !0,
|
|
313
313
|
className: "flex h-8 w-full items-center justify-between gap-1 rounded-md border border-slate-200 bg-slate-50 px-2 text-left text-[12px] dark:border-border dark:bg-muted",
|
|
314
314
|
children: [
|
|
315
|
-
/* @__PURE__ */ e("span", { className:
|
|
315
|
+
/* @__PURE__ */ e("span", { className: h("truncate", !l && "text-slate-500 dark:text-muted-foreground"), children: l ? at(l) : i }),
|
|
316
316
|
l ? /* @__PURE__ */ e(
|
|
317
317
|
D,
|
|
318
318
|
{
|
|
@@ -335,7 +335,7 @@ function Ct({
|
|
|
335
335
|
onClick: () => {
|
|
336
336
|
y(a.op), N(a.op, g, x);
|
|
337
337
|
},
|
|
338
|
-
className:
|
|
338
|
+
className: h(
|
|
339
339
|
"rounded border px-1 py-1 text-[11px] transition-colors",
|
|
340
340
|
d === a.op ? "border-nvr-cyan/40 bg-nvr-cyan/10 font-medium" : "border-slate-200 text-slate-600 hover:bg-muted dark:border-border dark:text-muted-foreground"
|
|
341
341
|
),
|
|
@@ -363,7 +363,7 @@ function Ct({
|
|
|
363
363
|
type: "number",
|
|
364
364
|
value: x,
|
|
365
365
|
onChange: (a) => {
|
|
366
|
-
|
|
366
|
+
b(a.target.value), N(d, g, a.target.value);
|
|
367
367
|
},
|
|
368
368
|
className: "h-7 text-[12px]"
|
|
369
369
|
}
|
|
@@ -385,7 +385,7 @@ function Ce({
|
|
|
385
385
|
v = /* @__PURE__ */ e(
|
|
386
386
|
A,
|
|
387
387
|
{
|
|
388
|
-
className:
|
|
388
|
+
className: h("h-8 border-slate-200 bg-slate-50", g, y),
|
|
389
389
|
placeholder: r.placeholder,
|
|
390
390
|
value: d,
|
|
391
391
|
onChange: (x) => o(x.target.value)
|
|
@@ -395,7 +395,7 @@ function Ce({
|
|
|
395
395
|
v = /* @__PURE__ */ e(
|
|
396
396
|
"div",
|
|
397
397
|
{
|
|
398
|
-
className:
|
|
398
|
+
className: h(
|
|
399
399
|
(u || l) && "[&>button]:w-full",
|
|
400
400
|
l && "[&>button]:h-7 [&>button]:min-w-[88px] [&>button]:px-1.5 [&>button]:text-[12px]"
|
|
401
401
|
),
|
|
@@ -403,7 +403,7 @@ function Ce({
|
|
|
403
403
|
}
|
|
404
404
|
);
|
|
405
405
|
else if (r.type === "date")
|
|
406
|
-
v = /* @__PURE__ */ e("div", { className:
|
|
406
|
+
v = /* @__PURE__ */ e("div", { className: h(l && "[&>div>button]:h-7 [&>div>button]:text-[12px]", y), children: /* @__PURE__ */ e(
|
|
407
407
|
Ot,
|
|
408
408
|
{
|
|
409
409
|
value: d,
|
|
@@ -412,7 +412,7 @@ function Ce({
|
|
|
412
412
|
}
|
|
413
413
|
) });
|
|
414
414
|
else if (r.type === "number")
|
|
415
|
-
v = /* @__PURE__ */ e("div", { className:
|
|
415
|
+
v = /* @__PURE__ */ e("div", { className: h(l && "[&>div>button]:h-7 [&>div>button]:text-[12px]", y), children: /* @__PURE__ */ e(
|
|
416
416
|
Ct,
|
|
417
417
|
{
|
|
418
418
|
value: d,
|
|
@@ -431,20 +431,20 @@ function Ce({
|
|
|
431
431
|
}
|
|
432
432
|
) });
|
|
433
433
|
else if (r.type === "range") {
|
|
434
|
-
const [x,
|
|
434
|
+
const [x, b] = d.split(":");
|
|
435
435
|
v = /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
436
436
|
/* @__PURE__ */ e(
|
|
437
437
|
A,
|
|
438
438
|
{
|
|
439
439
|
type: "number",
|
|
440
|
-
className:
|
|
440
|
+
className: h(
|
|
441
441
|
"h-8 border-slate-200 bg-slate-50",
|
|
442
442
|
g,
|
|
443
443
|
u || l ? "w-full min-w-[48px]" : "w-20"
|
|
444
444
|
),
|
|
445
445
|
placeholder: "Min",
|
|
446
446
|
value: x ?? "",
|
|
447
|
-
onChange: (N) => o(`${N.target.value}:${
|
|
447
|
+
onChange: (N) => o(`${N.target.value}:${b ?? ""}`)
|
|
448
448
|
}
|
|
449
449
|
),
|
|
450
450
|
/* @__PURE__ */ e("span", { className: "text-[12px] text-slate-400", children: "–" }),
|
|
@@ -452,23 +452,23 @@ function Ce({
|
|
|
452
452
|
A,
|
|
453
453
|
{
|
|
454
454
|
type: "number",
|
|
455
|
-
className:
|
|
455
|
+
className: h(
|
|
456
456
|
"h-8 border-slate-200 bg-slate-50",
|
|
457
457
|
g,
|
|
458
458
|
u || l ? "w-full min-w-[48px]" : "w-20"
|
|
459
459
|
),
|
|
460
460
|
placeholder: "Max",
|
|
461
|
-
value:
|
|
461
|
+
value: b ?? "",
|
|
462
462
|
onChange: (N) => o(`${x ?? ""}:${N.target.value}`)
|
|
463
463
|
}
|
|
464
464
|
)
|
|
465
465
|
] });
|
|
466
466
|
} else
|
|
467
|
-
v = /* @__PURE__ */ s(
|
|
468
|
-
/* @__PURE__ */ e(ut, { className:
|
|
467
|
+
v = /* @__PURE__ */ s(mt, { value: d === "" ? "__all__" : d, onValueChange: (b) => o(b === "__all__" ? "" : b), children: [
|
|
468
|
+
/* @__PURE__ */ e(ut, { className: h("h-8 border-slate-200 bg-slate-50", g, y), children: /* @__PURE__ */ e(xt, { placeholder: r.placeholder }) }),
|
|
469
469
|
/* @__PURE__ */ s(ft, { children: [
|
|
470
470
|
/* @__PURE__ */ e($e, { value: "__all__", children: r.placeholder }),
|
|
471
|
-
(r.options ?? []).filter((
|
|
471
|
+
(r.options ?? []).filter((b) => b.value !== "").map((b) => /* @__PURE__ */ e($e, { value: b.value, children: b.label }, b.value))
|
|
472
472
|
] })
|
|
473
473
|
] });
|
|
474
474
|
return u ? /* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
@@ -523,7 +523,7 @@ function Zt({
|
|
|
523
523
|
errorMessage: g,
|
|
524
524
|
sort: v = "",
|
|
525
525
|
onSortChange: x,
|
|
526
|
-
onPageChange:
|
|
526
|
+
onPageChange: b,
|
|
527
527
|
onRowClick: N,
|
|
528
528
|
onRowContextMenu: a,
|
|
529
529
|
searchValue: w,
|
|
@@ -531,7 +531,7 @@ function Zt({
|
|
|
531
531
|
searchPlaceholder: J = "Search…",
|
|
532
532
|
filterDefs: z,
|
|
533
533
|
filterValues: B = {},
|
|
534
|
-
onFilterChange:
|
|
534
|
+
onFilterChange: m,
|
|
535
535
|
toolbarRight: R,
|
|
536
536
|
emptyMessage: E = "No records found.",
|
|
537
537
|
minBodyHeight: F,
|
|
@@ -544,7 +544,7 @@ function Zt({
|
|
|
544
544
|
columnPins: f,
|
|
545
545
|
onColumnPinChange: ee,
|
|
546
546
|
columnFilterRow: Le = !1,
|
|
547
|
-
hScrollProxy:
|
|
547
|
+
hScrollProxy: be = !1,
|
|
548
548
|
selectedIds: L,
|
|
549
549
|
onSelectionChange: M,
|
|
550
550
|
rowClassName: te,
|
|
@@ -555,7 +555,7 @@ function Zt({
|
|
|
555
555
|
collapsedGroups: le,
|
|
556
556
|
onToggleGroup: ne
|
|
557
557
|
}) {
|
|
558
|
-
const
|
|
558
|
+
const he = Math.ceil(c / l), Ae = (u - 1) * l + 1, Te = Math.min(u * l, c), me = !Re && z && z.length > 0, Ve = w !== void 0 || me || R !== void 0, qe = (t) => {
|
|
559
559
|
!t.sortable || !x || x(wt(v, t.key));
|
|
560
560
|
}, _ = f !== void 0, W = ke(() => {
|
|
561
561
|
if (!_ || !f) return r;
|
|
@@ -596,7 +596,7 @@ function Zt({
|
|
|
596
596
|
}, ce = (t, n) => {
|
|
597
597
|
const p = ge[t];
|
|
598
598
|
if (!(!_ || !p))
|
|
599
|
-
return
|
|
599
|
+
return h(
|
|
600
600
|
// dt-pinned: pinned headers offset via inline style (not left-0), so the
|
|
601
601
|
// fillHeight wrapper's z variants need a CLASS to elevate them above the
|
|
602
602
|
// other header cells — same-z siblings paint in DOM order and a later
|
|
@@ -619,7 +619,7 @@ function Zt({
|
|
|
619
619
|
U,
|
|
620
620
|
{
|
|
621
621
|
...re == null ? void 0 : re(t),
|
|
622
|
-
className:
|
|
622
|
+
className: h(
|
|
623
623
|
// NAMED group: queue cells already use bare `group-hover:` against
|
|
624
624
|
// their own local group, and claiming the unnamed one here would
|
|
625
625
|
// make those reveal on row hover instead.
|
|
@@ -642,7 +642,7 @@ function Zt({
|
|
|
642
642
|
M && /* @__PURE__ */ e(
|
|
643
643
|
Q,
|
|
644
644
|
{
|
|
645
|
-
className:
|
|
645
|
+
className: h(
|
|
646
646
|
"w-9 px-3",
|
|
647
647
|
pe === "compact" ? "py-1" : "py-2",
|
|
648
648
|
(j || _) && "sticky left-0 z-[1] min-w-[40px] bg-inherit"
|
|
@@ -657,11 +657,11 @@ function Zt({
|
|
|
657
657
|
Q,
|
|
658
658
|
{
|
|
659
659
|
style: ie(C.key),
|
|
660
|
-
className:
|
|
660
|
+
className: h(
|
|
661
661
|
"px-3",
|
|
662
662
|
pe === "compact" ? "py-1" : "py-2",
|
|
663
663
|
Fe && "whitespace-nowrap",
|
|
664
|
-
!_ && j && q === 0 &&
|
|
664
|
+
!_ && j && q === 0 && h(
|
|
665
665
|
"sticky z-[1] border-r border-slate-100 bg-inherit dark:border-border",
|
|
666
666
|
M ? "left-[39px]" : "left-0"
|
|
667
667
|
),
|
|
@@ -683,7 +683,7 @@ function Zt({
|
|
|
683
683
|
/* @__PURE__ */ s(
|
|
684
684
|
"div",
|
|
685
685
|
{
|
|
686
|
-
className:
|
|
686
|
+
className: h(
|
|
687
687
|
"overflow-hidden rounded-lg border border-slate-200 bg-white",
|
|
688
688
|
oe && "flex h-full min-h-0 flex-col"
|
|
689
689
|
),
|
|
@@ -701,12 +701,12 @@ function Zt({
|
|
|
701
701
|
}
|
|
702
702
|
)
|
|
703
703
|
] }),
|
|
704
|
-
|
|
704
|
+
me && (z == null ? void 0 : z.map((t) => /* @__PURE__ */ e(
|
|
705
705
|
Ce,
|
|
706
706
|
{
|
|
707
707
|
def: t,
|
|
708
708
|
value: B[t.key] ?? "",
|
|
709
|
-
onChange: (n) =>
|
|
709
|
+
onChange: (n) => m == null ? void 0 : m(t.key, n)
|
|
710
710
|
},
|
|
711
711
|
t.key
|
|
712
712
|
))),
|
|
@@ -716,7 +716,7 @@ function Zt({
|
|
|
716
716
|
d ? /* @__PURE__ */ e("div", { className: "divide-y divide-slate-100", children: kt.map((t) => /* @__PURE__ */ e("div", { className: "flex items-center gap-3 px-4 py-2.5", children: r.map((n) => /* @__PURE__ */ e(
|
|
717
717
|
yt,
|
|
718
718
|
{
|
|
719
|
-
className:
|
|
719
|
+
className: h("h-4 rounded", n.className ? void 0 : "flex-1")
|
|
720
720
|
},
|
|
721
721
|
n.key
|
|
722
722
|
)) }, t)) }) : /* @__PURE__ */ s(H, { children: [
|
|
@@ -724,8 +724,8 @@ function Zt({
|
|
|
724
724
|
"div",
|
|
725
725
|
{
|
|
726
726
|
ref: se,
|
|
727
|
-
className:
|
|
728
|
-
|
|
727
|
+
className: h(
|
|
728
|
+
be && "overflow-x-hidden [&>div]:overflow-visible",
|
|
729
729
|
// Bounded mode: rows scroll here under a sticky header. Header
|
|
730
730
|
// cells sit above pinned body cells (z-[1/2]); the pinned
|
|
731
731
|
// header corner (left-0) tops the other header cells so
|
|
@@ -733,176 +733,183 @@ function Zt({
|
|
|
733
733
|
oe && "min-h-0 flex-1 overflow-y-auto [&_thead_th]:sticky [&_thead_th]:top-0 [&_thead_th]:z-[5] [&_thead_th.left-0]:z-[6] [&_thead_th.dt-pinned]:z-[6]"
|
|
734
734
|
),
|
|
735
735
|
style: F ? { minHeight: F } : void 0,
|
|
736
|
-
children: /* @__PURE__ */ s(
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
736
|
+
children: /* @__PURE__ */ s(
|
|
737
|
+
gt,
|
|
738
|
+
{
|
|
739
|
+
"data-copy-cells": "",
|
|
740
|
+
className: "border-separate border-spacing-0 [&>tbody>tr.border-b:not(:last-child)>td]:border-b [&>tbody>tr.border-b:not(:last-child)>td]:[border-bottom-color:inherit] [&>thead>tr.border-b>th]:border-b [&>thead>tr.border-b>th]:[border-bottom-color:inherit]",
|
|
741
|
+
children: [
|
|
742
|
+
/* @__PURE__ */ s(vt, { children: [
|
|
743
|
+
/* @__PURE__ */ s(U, { className: "border-b border-slate-200 hover:bg-transparent", children: [
|
|
744
|
+
M && /* @__PURE__ */ e(
|
|
745
|
+
X,
|
|
746
|
+
{
|
|
747
|
+
ref: xe,
|
|
748
|
+
className: h(
|
|
749
|
+
"h-9 w-9 bg-slate-50 px-3 py-0",
|
|
750
|
+
(j || _) && "sticky left-0 z-[2] min-w-[40px]"
|
|
751
|
+
),
|
|
752
|
+
children: /* @__PURE__ */ e(
|
|
753
|
+
Oe,
|
|
754
|
+
{
|
|
755
|
+
checked: i.length > 0 && i.every((t, n) => {
|
|
756
|
+
const p = o ? o(t, n) : String(n);
|
|
757
|
+
return L == null ? void 0 : L.includes(p);
|
|
758
|
+
}),
|
|
759
|
+
onCheckedChange: (t) => {
|
|
760
|
+
M(
|
|
761
|
+
t ? i.map((n, p) => o ? o(n, p) : String(p)) : []
|
|
762
|
+
);
|
|
763
|
+
},
|
|
764
|
+
"aria-label": "Select all"
|
|
765
|
+
}
|
|
766
|
+
)
|
|
767
|
+
}
|
|
746
768
|
),
|
|
747
|
-
|
|
748
|
-
|
|
769
|
+
W.map((t, n) => /* @__PURE__ */ e(
|
|
770
|
+
X,
|
|
749
771
|
{
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
return L == null ? void 0 : L.includes(p);
|
|
753
|
-
}),
|
|
754
|
-
onCheckedChange: (t) => {
|
|
755
|
-
M(
|
|
756
|
-
t ? i.map((n, p) => o ? o(n, p) : String(p)) : []
|
|
757
|
-
);
|
|
772
|
+
ref: (p) => {
|
|
773
|
+
ue.current[t.key] = p;
|
|
758
774
|
},
|
|
759
|
-
|
|
775
|
+
style: ie(t.key),
|
|
776
|
+
className: h(
|
|
777
|
+
"group/th h-9 whitespace-nowrap bg-slate-50 px-3 py-0 text-[11px] font-medium text-slate-500",
|
|
778
|
+
t.sortable && x && "cursor-pointer select-none hover:text-slate-600",
|
|
779
|
+
!_ && j && n === 0 && h(
|
|
780
|
+
"sticky z-[2] border-r border-slate-200 dark:border-border",
|
|
781
|
+
M ? "left-[39px]" : "left-0"
|
|
782
|
+
),
|
|
783
|
+
_ && "bg-slate-50 dark:bg-muted",
|
|
784
|
+
ce(t.key, !0),
|
|
785
|
+
t.headerClassName
|
|
786
|
+
),
|
|
787
|
+
onClick: () => qe(t),
|
|
788
|
+
children: /* @__PURE__ */ s("span", { className: "inline-flex items-center", children: [
|
|
789
|
+
t.header,
|
|
790
|
+
t.sortable && x && /* @__PURE__ */ e(_t, { field: t.key, sort: v }),
|
|
791
|
+
_ && ee && t.key !== "claim" && /* @__PURE__ */ e(
|
|
792
|
+
"button",
|
|
793
|
+
{
|
|
794
|
+
type: "button",
|
|
795
|
+
onClick: (p) => {
|
|
796
|
+
p.stopPropagation(), Ue(t.key);
|
|
797
|
+
},
|
|
798
|
+
"aria-label": `Pin column ${t.key}`,
|
|
799
|
+
title: (f == null ? void 0 : f[t.key]) === "left" ? "Pinned left — click to pin right" : (f == null ? void 0 : f[t.key]) === "right" ? "Pinned right — click to unpin" : "Pin column",
|
|
800
|
+
className: h(
|
|
801
|
+
"ml-1 rounded p-0.5 transition-opacity",
|
|
802
|
+
f != null && f[t.key] ? "text-nvr-cyan opacity-100" : "text-slate-300 opacity-0 hover:text-slate-500 group-hover/th:opacity-100"
|
|
803
|
+
),
|
|
804
|
+
children: /* @__PURE__ */ e(
|
|
805
|
+
Qe,
|
|
806
|
+
{
|
|
807
|
+
className: h(
|
|
808
|
+
"h-3 w-3",
|
|
809
|
+
(f == null ? void 0 : f[t.key]) === "right" && "rotate-90"
|
|
810
|
+
)
|
|
811
|
+
}
|
|
812
|
+
)
|
|
813
|
+
}
|
|
814
|
+
)
|
|
815
|
+
] })
|
|
816
|
+
},
|
|
817
|
+
t.key
|
|
818
|
+
))
|
|
819
|
+
] }),
|
|
820
|
+
Je && /* @__PURE__ */ s(U, { className: "border-b border-slate-200 hover:bg-transparent", children: [
|
|
821
|
+
M && /* @__PURE__ */ e(
|
|
822
|
+
X,
|
|
823
|
+
{
|
|
824
|
+
className: h(
|
|
825
|
+
"h-9 w-9 bg-slate-50 px-3 py-1",
|
|
826
|
+
(j || _) && "sticky left-0 z-[2] min-w-[40px]"
|
|
827
|
+
)
|
|
760
828
|
}
|
|
761
|
-
)
|
|
762
|
-
}
|
|
763
|
-
),
|
|
764
|
-
W.map((t, n) => /* @__PURE__ */ e(
|
|
765
|
-
X,
|
|
766
|
-
{
|
|
767
|
-
ref: (p) => {
|
|
768
|
-
ue.current[t.key] = p;
|
|
769
|
-
},
|
|
770
|
-
style: ie(t.key),
|
|
771
|
-
className: m(
|
|
772
|
-
"group/th h-9 whitespace-nowrap bg-slate-50 px-3 py-0 text-[11px] font-medium text-slate-500",
|
|
773
|
-
t.sortable && x && "cursor-pointer select-none hover:text-slate-600",
|
|
774
|
-
!_ && j && n === 0 && m(
|
|
775
|
-
"sticky z-[2] border-r border-slate-200 dark:border-border",
|
|
776
|
-
M ? "left-[39px]" : "left-0"
|
|
777
|
-
),
|
|
778
|
-
_ && "bg-slate-50 dark:bg-muted",
|
|
779
|
-
ce(t.key, !0),
|
|
780
|
-
t.headerClassName
|
|
781
829
|
),
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
_ && ee && t.key !== "claim" && /* @__PURE__ */ e(
|
|
787
|
-
"button",
|
|
830
|
+
W.map((t) => {
|
|
831
|
+
const n = He.get(t.key);
|
|
832
|
+
return /* @__PURE__ */ e(
|
|
833
|
+
X,
|
|
788
834
|
{
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
title: (f == null ? void 0 : f[t.key]) === "left" ? "Pinned left — click to pin right" : (f == null ? void 0 : f[t.key]) === "right" ? "Pinned right — click to unpin" : "Pin column",
|
|
795
|
-
className: m(
|
|
796
|
-
"ml-1 rounded p-0.5 transition-opacity",
|
|
797
|
-
f != null && f[t.key] ? "text-nvr-cyan opacity-100" : "text-slate-300 opacity-0 hover:text-slate-500 group-hover/th:opacity-100"
|
|
835
|
+
style: ie(t.key),
|
|
836
|
+
className: h(
|
|
837
|
+
"h-9 bg-slate-50 px-1.5 py-1 align-middle",
|
|
838
|
+
_ && "bg-slate-50 dark:bg-muted",
|
|
839
|
+
ce(t.key, !0)
|
|
798
840
|
),
|
|
841
|
+
children: n && m ? /* @__PURE__ */ e(
|
|
842
|
+
Ce,
|
|
843
|
+
{
|
|
844
|
+
def: n,
|
|
845
|
+
value: B[n.key] ?? "",
|
|
846
|
+
onChange: (p) => m(n.key, p),
|
|
847
|
+
layout: "cell"
|
|
848
|
+
}
|
|
849
|
+
) : null
|
|
850
|
+
},
|
|
851
|
+
t.key
|
|
852
|
+
);
|
|
853
|
+
})
|
|
854
|
+
] })
|
|
855
|
+
] }),
|
|
856
|
+
/* @__PURE__ */ s(Nt, { className: "tabular-nums", children: [
|
|
857
|
+
T ? T.map((t) => {
|
|
858
|
+
const n = (le == null ? void 0 : le.has(t.key)) ?? !1;
|
|
859
|
+
return /* @__PURE__ */ s(Ge.Fragment, { children: [
|
|
860
|
+
/* @__PURE__ */ e(
|
|
861
|
+
U,
|
|
862
|
+
{
|
|
863
|
+
className: "nvr-row-enter cursor-pointer border-slate-200 bg-slate-50/80 transition-colors hover:bg-slate-100/80 dark:bg-muted/40",
|
|
864
|
+
onClick: () => ne == null ? void 0 : ne(t.key),
|
|
799
865
|
children: /* @__PURE__ */ e(
|
|
800
|
-
|
|
866
|
+
Q,
|
|
801
867
|
{
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
868
|
+
colSpan: r.length + (M ? 1 : 0),
|
|
869
|
+
className: "px-3 py-1.5",
|
|
870
|
+
children: /* @__PURE__ */ s("span", { className: "flex items-center gap-1.5 text-[12px] font-medium text-slate-600 dark:text-foreground", children: [
|
|
871
|
+
/* @__PURE__ */ e(
|
|
872
|
+
Ye,
|
|
873
|
+
{
|
|
874
|
+
className: h(
|
|
875
|
+
"h-3.5 w-3.5 text-slate-400 transition-transform duration-200",
|
|
876
|
+
n && "-rotate-90"
|
|
877
|
+
)
|
|
878
|
+
}
|
|
879
|
+
),
|
|
880
|
+
t.header
|
|
881
|
+
] })
|
|
806
882
|
}
|
|
807
883
|
)
|
|
808
884
|
}
|
|
809
|
-
)
|
|
810
|
-
] })
|
|
811
|
-
},
|
|
812
|
-
t.key
|
|
813
|
-
))
|
|
814
|
-
] }),
|
|
815
|
-
Je && /* @__PURE__ */ s(U, { className: "border-b border-slate-200 hover:bg-transparent", children: [
|
|
816
|
-
M && /* @__PURE__ */ e(
|
|
817
|
-
X,
|
|
818
|
-
{
|
|
819
|
-
className: m(
|
|
820
|
-
"h-9 w-9 bg-slate-50 px-3 py-1",
|
|
821
|
-
(j || _) && "sticky left-0 z-[2] min-w-[40px]"
|
|
822
|
-
)
|
|
823
|
-
}
|
|
824
|
-
),
|
|
825
|
-
W.map((t) => {
|
|
826
|
-
const n = He.get(t.key);
|
|
827
|
-
return /* @__PURE__ */ e(
|
|
828
|
-
X,
|
|
829
|
-
{
|
|
830
|
-
style: ie(t.key),
|
|
831
|
-
className: m(
|
|
832
|
-
"h-9 bg-slate-50 px-1.5 py-1 align-middle",
|
|
833
|
-
_ && "bg-slate-50 dark:bg-muted",
|
|
834
|
-
ce(t.key, !0)
|
|
835
885
|
),
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
onChange: (p) => b(n.key, p),
|
|
842
|
-
layout: "cell"
|
|
843
|
-
}
|
|
844
|
-
) : null
|
|
845
|
-
},
|
|
846
|
-
t.key
|
|
847
|
-
);
|
|
848
|
-
})
|
|
849
|
-
] })
|
|
850
|
-
] }),
|
|
851
|
-
/* @__PURE__ */ s(Nt, { className: "tabular-nums", children: [
|
|
852
|
-
T ? T.map((t) => {
|
|
853
|
-
const n = (le == null ? void 0 : le.has(t.key)) ?? !1;
|
|
854
|
-
return /* @__PURE__ */ s(Ge.Fragment, { children: [
|
|
855
|
-
/* @__PURE__ */ e(
|
|
856
|
-
U,
|
|
886
|
+
!n && t.rows.map((p, S) => ve(p, S))
|
|
887
|
+
] }, t.key);
|
|
888
|
+
}) : i.map((t, n) => ve(t, n)),
|
|
889
|
+
(T ? T.length === 0 : i.length === 0) && /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(
|
|
890
|
+
Q,
|
|
857
891
|
{
|
|
858
|
-
|
|
859
|
-
|
|
892
|
+
colSpan: r.length + (M ? 1 : 0),
|
|
893
|
+
className: "nvr-fade-in p-0 text-center align-middle text-[13px] text-slate-400",
|
|
894
|
+
style: F ? { height: Math.max(96, F - 56) } : void 0,
|
|
860
895
|
children: /* @__PURE__ */ e(
|
|
861
|
-
|
|
896
|
+
"div",
|
|
862
897
|
{
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
Ye,
|
|
868
|
-
{
|
|
869
|
-
className: m(
|
|
870
|
-
"h-3.5 w-3.5 text-slate-400 transition-transform duration-200",
|
|
871
|
-
n && "-rotate-90"
|
|
872
|
-
)
|
|
873
|
-
}
|
|
874
|
-
),
|
|
875
|
-
t.header
|
|
876
|
-
] })
|
|
898
|
+
className: "sticky left-0 py-12",
|
|
899
|
+
style: ye ? { width: ye } : void 0,
|
|
900
|
+
"data-table-empty": !0,
|
|
901
|
+
children: typeof E == "string" ? /* @__PURE__ */ e(it, { icon: Ze, title: E }) : E
|
|
877
902
|
}
|
|
878
903
|
)
|
|
879
904
|
}
|
|
880
|
-
)
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
Q,
|
|
886
|
-
{
|
|
887
|
-
colSpan: r.length + (M ? 1 : 0),
|
|
888
|
-
className: "nvr-fade-in p-0 text-center align-middle text-[13px] text-slate-400",
|
|
889
|
-
style: F ? { height: Math.max(96, F - 56) } : void 0,
|
|
890
|
-
children: /* @__PURE__ */ e(
|
|
891
|
-
"div",
|
|
892
|
-
{
|
|
893
|
-
className: "sticky left-0 py-12",
|
|
894
|
-
style: ye ? { width: ye } : void 0,
|
|
895
|
-
"data-table-empty": !0,
|
|
896
|
-
children: typeof E == "string" ? /* @__PURE__ */ e(it, { icon: Ze, title: E }) : E
|
|
897
|
-
}
|
|
898
|
-
)
|
|
899
|
-
}
|
|
900
|
-
) })
|
|
901
|
-
] }, je)
|
|
902
|
-
] })
|
|
905
|
+
) })
|
|
906
|
+
] }, je)
|
|
907
|
+
]
|
|
908
|
+
}
|
|
909
|
+
)
|
|
903
910
|
}
|
|
904
911
|
),
|
|
905
|
-
|
|
912
|
+
be && /* @__PURE__ */ e(ct, { scrollerRef: se }),
|
|
906
913
|
Me,
|
|
907
914
|
!T && c > l && /* @__PURE__ */ s("div", { className: "flex items-center justify-between border-t border-slate-100 px-4 py-2.5", children: [
|
|
908
915
|
/* @__PURE__ */ s("p", { className: "text-[12px] text-slate-400", children: [
|
|
@@ -921,14 +928,14 @@ function Zt({
|
|
|
921
928
|
size: "sm",
|
|
922
929
|
className: "h-7 px-2.5 text-[12px] text-slate-600",
|
|
923
930
|
disabled: u <= 1,
|
|
924
|
-
onClick: () =>
|
|
931
|
+
onClick: () => b(u - 1),
|
|
925
932
|
children: "← Prev"
|
|
926
933
|
}
|
|
927
934
|
),
|
|
928
935
|
/* @__PURE__ */ s("span", { className: "px-2 text-[12px] text-slate-400", children: [
|
|
929
936
|
u,
|
|
930
937
|
" / ",
|
|
931
|
-
|
|
938
|
+
he
|
|
932
939
|
] }),
|
|
933
940
|
/* @__PURE__ */ e(
|
|
934
941
|
Se,
|
|
@@ -936,8 +943,8 @@ function Zt({
|
|
|
936
943
|
variant: "ghost",
|
|
937
944
|
size: "sm",
|
|
938
945
|
className: "h-7 px-2.5 text-[12px] text-slate-600",
|
|
939
|
-
disabled: u >=
|
|
940
|
-
onClick: () =>
|
|
946
|
+
disabled: u >= he,
|
|
947
|
+
onClick: () => b(u + 1),
|
|
941
948
|
children: "Next →"
|
|
942
949
|
}
|
|
943
950
|
)
|