@nivaro/react 0.3.60 → 0.3.62
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/hooks/useSessionRecorder.js +1 -1
- package/dist/shared/components/CollectionBrowserView.js +259 -259
- package/dist/shared/components/ItemEditForm.js +4236 -4213
- package/dist/shared/components/import/reimportDiff.js +67 -46
- package/dist/shared/components/item-edit/QueueReturnChip.js +17 -13
- package/dist/shared/components/item-edit/RecordHeaderActions.js +8 -8
- package/dist/shared/components/item-edit/staged-links.js +21 -21
- package/dist/shared/components/panels/AddendumPanel.js +464 -466
- package/dist/shared/components/panels/PipelinePanel.js +391 -364
- package/dist/shared/components/panels/landing-state.js +32 -19
- package/dist/shared/components/queue/QueueWorklist.js +224 -222
- package/dist/shared/lib/list-page-memory.js +40 -32
- package/dist/shared/lib/request-gate.js +159 -144
- package/package.json +1 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsxs as c, jsx as n, Fragment as Be } from "react/jsx-runtime";
|
|
2
2
|
import { useQueryClient as ya, useMutation as yt, useQuery as le, useQueries as fa } from "@tanstack/react-query";
|
|
3
|
-
import { FileDiff as
|
|
4
|
-
import
|
|
5
|
-
import { createPortal as
|
|
3
|
+
import { FileDiff as ei, RotateCw as pr, Network as ti, Map as ni, Sparkles as mr, X as fr, Rows3 as as, ListChecks as ai, Rows2 as ri, ChevronDown as Bn, Wand2 as rs, FileText as ls, Bell as li, BellOff as si, Loader2 as oi, Check as ii, Search as qs, Pin as di } from "lucide-react";
|
|
4
|
+
import ci, { useState as k, useRef as me, useEffect as pe, useMemo as xe, useLayoutEffect as ui } from "react";
|
|
5
|
+
import { createPortal as Ts } from "react-dom";
|
|
6
6
|
import { toast as we } from "sonner";
|
|
7
|
-
import { useNivaroClient as ut, useItemNavigation as
|
|
7
|
+
import { useNivaroClient as ut, useItemNavigation as Ls, useOverlayState as pi, useItemEditAuth as ga, useApiFetchConfig as mi } from "../context.js";
|
|
8
8
|
import { useDebounced as ss } from "../hooks/useDebounced.js";
|
|
9
|
-
import { useElapsedLoading as
|
|
10
|
-
import { useSlowReason as
|
|
11
|
-
import { useBulkProgressFeed as
|
|
12
|
-
import { warmPageLookups as
|
|
9
|
+
import { useElapsedLoading as fi } from "../hooks/useElapsedLoading.js";
|
|
10
|
+
import { useSlowReason as bi } from "../hooks/useSlowReason.js";
|
|
11
|
+
import { useBulkProgressFeed as hi, newBulkProgressId as gi, startBulkProgress as xi, endBulkProgress as vi } from "../lib/bulk-progress.js";
|
|
12
|
+
import { warmPageLookups as ki } from "../lib/cbv-page-warm.js";
|
|
13
13
|
import { post as _e, get as X, patch as pa, del as ba } from "../lib/commands.js";
|
|
14
|
-
import { parseDateFilter as xa, dateFilterBounds as
|
|
15
|
-
import { errorSentence as
|
|
16
|
-
import { toastError as
|
|
17
|
-
import { extractExpressionTokens as
|
|
18
|
-
import { clauseFromCondition as hr, clauseFromControlValue as
|
|
19
|
-
import { deliverLive as
|
|
20
|
-
import { formatValue as xn, formatMultiValue as is, countFromResolved as
|
|
21
|
-
import { createCursorBook as
|
|
22
|
-
import { normalizeInlineEdit as
|
|
23
|
-
import { sanitizeCbvLinkState as
|
|
24
|
-
import { rememberedListPage as
|
|
14
|
+
import { parseDateFilter as xa, dateFilterBounds as yi, describeDateFilter as wi, DATE_FILTER_OPS as _i, formatDateFilter as Ni } from "../lib/date-filter.js";
|
|
15
|
+
import { errorSentence as Si } from "../lib/error-message.js";
|
|
16
|
+
import { toastError as Ci, errorToastOptions as br } from "../lib/error-toast.js";
|
|
17
|
+
import { extractExpressionTokens as $i, evaluateNumeric as os } from "../lib/expression.js";
|
|
18
|
+
import { clauseFromCondition as hr, clauseFromControlValue as qi, filterSentence as Ti } from "../lib/filter-sentence.js";
|
|
19
|
+
import { deliverLive as Li, releaseLiveOwner as Fi } from "../lib/focus-mode.js";
|
|
20
|
+
import { formatValue as xn, formatMultiValue as is, countFromResolved as Ri } from "../lib/format-value.js";
|
|
21
|
+
import { createCursorBook as Ei, pageRequest as Pi, noteNextCursor as Di, isCursorRefusal as Mi, stopCursors as Oi } from "../lib/keyset-pager.js";
|
|
22
|
+
import { normalizeInlineEdit as Ai, inlineM2oTarget as Ii, inlineChoices as Ki, inlineEditFor as ji, nextInlineKey as Bi } from "../lib/list-inline-edit.js";
|
|
23
|
+
import { sanitizeCbvLinkState as zi, readListLinkFromLocation as Qi, dropListLinkParam as Ui } from "../lib/list-link.js";
|
|
24
|
+
import { rememberedListPage as Wi, pageWhileSettling as ds, rememberListPage as Vi, restoreWindowOutcome as Hi } from "../lib/list-page-memory.js";
|
|
25
25
|
import { expandCoalesced as Yi, LIVE_ASPECTS as vn } from "../lib/live.js";
|
|
26
26
|
import { useRowChanges as Ji, useRowLocks as Gi, lockLabel as Xi, viewerMatches as Zi, conditionFields as ed, mayAffectMatch as td, writerOf as nd } from "../lib/live-list.js";
|
|
27
27
|
import { loadErrorStatus as ad, listLoadErrorText as rd } from "../lib/load-error.js";
|
|
28
|
-
import { OPEN_IN_TABS_CAP as ld, openInTabs as sd, openInTabsMessage as
|
|
28
|
+
import { OPEN_IN_TABS_CAP as ld, openInTabs as sd, openInTabsMessage as cs } from "../lib/open-in-tabs.js";
|
|
29
29
|
import { isOwnWrite as od } from "../lib/own-writes.js";
|
|
30
30
|
import { useIdleNextPage as id, intentProps as dd, prefetchRecord as cd } from "../lib/prefetch.js";
|
|
31
|
-
import { useRowPresence as ud, rowPresenceKey as
|
|
31
|
+
import { useRowPresence as ud, rowPresenceKey as us } from "../lib/presence-hooks.js";
|
|
32
32
|
import { cascadeFilter as pd, fetchCascadeRelations as md } from "../lib/quick-filter-cascade.js";
|
|
33
33
|
import { useOptionalRealtime as fd } from "../lib/realtime.js";
|
|
34
|
-
import { rowMenuRef as yr, friendlyIdOf as
|
|
34
|
+
import { rowMenuRef as yr, friendlyIdOf as ps, copyWhenReady as bd, shareableRecordId as hd } from "../lib/record-ref.js";
|
|
35
35
|
import { rowHighlightDotClass as gd, rowHighlightClass as xd } from "../lib/row-highlight.js";
|
|
36
36
|
import { userErrorMessage as Wt } from "../lib/safe-error.js";
|
|
37
37
|
import { logSearch as vd, logSearchOpen as kd } from "../lib/search-log.js";
|
|
38
38
|
import { shapeForField as yd } from "../lib/skeleton-shapes.js";
|
|
39
39
|
import { knownTotalFrom as wd } from "../lib/slow-reason.js";
|
|
40
|
-
import { useMyScopes as _d, matchScopeDimension as
|
|
40
|
+
import { useMyScopes as _d, matchScopeDimension as ms, effectiveScopeSeedIds as Nd, translateScopeValues as Sd } from "../lib/use-my-scopes.js";
|
|
41
41
|
import { useNewItemLayouts as Cd } from "../lib/use-new-item-layouts.js";
|
|
42
42
|
import { loadUserCard as $d, userCardQuery as qd } from "../lib/user-cards.js";
|
|
43
43
|
import { cn as Ut, humanHours as Td } from "../lib/utils.js";
|
|
@@ -54,20 +54,20 @@ import { readExportRows as Wd, stableSort as Vd, m2oLabelPaths as Hd, resolveAll
|
|
|
54
54
|
import { FormulaColumnAdder as Zd } from "./cbv/FormulaColumnAdder.js";
|
|
55
55
|
import { useHierarchyScope as ec, HierarchyScopePicker as tc } from "./cbv/HierarchyScope.js";
|
|
56
56
|
import { tabStopRowKey as nc, rowFocusTarget as ac } from "./cbv/row-focus.js";
|
|
57
|
-
import { splitRiskFilter as
|
|
58
|
-
import { isFilterRefusal as lc, unknownFieldsOf as
|
|
57
|
+
import { splitRiskFilter as fs, riskFilterEntry as rc } from "./cbv/saved-view-risk.js";
|
|
58
|
+
import { isFilterRefusal as lc, unknownFieldsOf as bs, dropUnknownField as sc } from "./cbv/unknown-fields.js";
|
|
59
59
|
import { ViewDefaultMenu as oc } from "./cbv/ViewDefaultMenu.js";
|
|
60
60
|
import { useRecordRoomTypes as ic, canOpenChatRoom as dc, discussRecord as cc } from "./chat/chat-core.js";
|
|
61
61
|
import { FilterControl as uc } from "./DataTable.js";
|
|
62
62
|
import { FocusModeToggle as pc } from "./FocusModeToggle.js";
|
|
63
|
-
import { FULFILMENT_FILTER_OPTIONS as
|
|
63
|
+
import { FULFILMENT_FILTER_OPTIONS as hs, FulfilmentPill as mc, fulfilmentFigures as fc } from "./FulfilmentPill.js";
|
|
64
64
|
import { HScrollProxy as bc } from "./HScrollProxy.js";
|
|
65
65
|
import { useDocumentAutofillConfig as hc, startDocumentExtraction as gc } from "./import/DocumentAutofillButton.js";
|
|
66
|
-
import { INTEGRATIONS_FILTER_OPTIONS as
|
|
66
|
+
import { INTEGRATIONS_FILTER_OPTIONS as gs, IntegrationDots as xc } from "./integrations/IntegrationDots.js";
|
|
67
67
|
import { useQuickPickerSteps as vc, QuickPickerDialog as kc } from "./item-edit/QuickPickerDialog.js";
|
|
68
68
|
import { usePickerExclusion as yc } from "./item-edit/RecordGrantTools.js";
|
|
69
|
-
import { invalidateRecordQueries as
|
|
70
|
-
import { UserRosterCluster as
|
|
69
|
+
import { invalidateRecordQueries as xs } from "./item-edit/RecordLiveSync.js";
|
|
70
|
+
import { UserRosterCluster as vs, UserChip as ks } from "./item-edit/UserChip.js";
|
|
71
71
|
import { LiveRowMark as wc } from "./LiveRowMark.js";
|
|
72
72
|
import { CopyListLinkButton as _c } from "./list/CopyListLinkButton.js";
|
|
73
73
|
import { useInlineEdit as Nc, InlineEditCell as Sc } from "./list/InlineEdit.js";
|
|
@@ -81,7 +81,7 @@ import { RowPresence as Pc } from "./RowPresence.js";
|
|
|
81
81
|
import { TableSkeletonRows as Dc } from "./Skeletons.js";
|
|
82
82
|
import { SlowNoticeView as Mc } from "./SlowNotice.js";
|
|
83
83
|
import { TipLayer as Oc } from "./TipLayer.js";
|
|
84
|
-
import { UnseenDot as
|
|
84
|
+
import { UnseenDot as ys } from "./UnseenDot.js";
|
|
85
85
|
import { SimpleSelectXs as kn, SimpleSelect as Ac } from "./ui/SimpleSelect.js";
|
|
86
86
|
import { RevisionsPanel as Ic } from "./panels/RevisionsPanel.js";
|
|
87
87
|
import { itemActionChoiceStep as Kc, ItemActionChoiceList as jc } from "./panels/ItemActionChoices.js";
|
|
@@ -97,7 +97,7 @@ function jn(a) {
|
|
|
97
97
|
for (const d of _r) if (i.has(d)) return d;
|
|
98
98
|
return "id";
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const ws = (a) => typeof a == "string" ? a : a.key, _s = {
|
|
101
101
|
red: "text-red-600 dark:text-red-400 font-semibold",
|
|
102
102
|
amber: "text-amber-600 dark:text-amber-400 font-semibold",
|
|
103
103
|
green: "text-emerald-600 dark:text-emerald-400 font-semibold",
|
|
@@ -179,8 +179,8 @@ function zc(a) {
|
|
|
179
179
|
const _ = Math.floor(v / 24);
|
|
180
180
|
return _ < 7 ? `${_}d ago` : i.toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
181
181
|
}
|
|
182
|
-
const ct = (a) => a.toLocaleString("en-US"),
|
|
183
|
-
function
|
|
182
|
+
const ct = (a) => a.toLocaleString("en-US"), Fs = /* @__PURE__ */ new Set(["nivaro_users", "directus_users"]), Ct = (a) => a.startsWith("directus_") || a.startsWith("nivaro_"), gr = /* @__PURE__ */ new Map();
|
|
183
|
+
function Rs(a, i, b) {
|
|
184
184
|
let d = gr.get(i);
|
|
185
185
|
d || (d = { ids: /* @__PURE__ */ new Set(), waiters: [], promise: null }, gr.set(i, d));
|
|
186
186
|
const v = d;
|
|
@@ -243,7 +243,7 @@ function Uc({ summary: a }) {
|
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
function Sr({ relatedCollection: a, id: i }) {
|
|
246
|
-
const b = ut(), d =
|
|
246
|
+
const b = ut(), d = Fs.has(a), v = i != null && i !== "", { data: _ } = le({
|
|
247
247
|
queryKey: ["cbv-collection-meta", a],
|
|
248
248
|
queryFn: () => b.request(X(`/collections/${a}`)).then((N) => N.data),
|
|
249
249
|
staleTime: 10 * 6e4,
|
|
@@ -251,7 +251,7 @@ function Sr({ relatedCollection: a, id: i }) {
|
|
|
251
251
|
retry: !1
|
|
252
252
|
}), { data: C, isLoading: $ } = le({
|
|
253
253
|
queryKey: ["cbv-relation-item", a, String(i)],
|
|
254
|
-
queryFn: () => d ? b.request(X(`/users/${i}`)).then((N) => N.data) :
|
|
254
|
+
queryFn: () => d ? b.request(X(`/users/${i}`)).then((N) => N.data) : Rs(b, a, String(i)),
|
|
255
255
|
enabled: v && (d || !Ct(a)),
|
|
256
256
|
staleTime: 30 * 6e4,
|
|
257
257
|
retry: !1
|
|
@@ -276,7 +276,7 @@ function Sr({ relatedCollection: a, id: i }) {
|
|
|
276
276
|
) : va((_ == null ? void 0 : _.display_template) ?? null, C);
|
|
277
277
|
return /* @__PURE__ */ n("span", { className: "text-[12px] text-slate-700 dark:text-slate-200", children: S });
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Es(a, i, b, d, v, _) {
|
|
280
280
|
const C = i.getQueryData(["cbv-collection-meta", b]);
|
|
281
281
|
return bd(
|
|
282
282
|
hd(a, b, C, d, v).then(
|
|
@@ -441,7 +441,7 @@ function Hc({
|
|
|
441
441
|
}), [Kt, sn] = k(null), wn = (Ke == null ? void 0 : Ke.id) ?? null;
|
|
442
442
|
pe(() => sn(null), [wn]);
|
|
443
443
|
const Xe = Vt.data ? Kc(Vt.data) : null, ft = Xe && !Xe.ask ? Xe.value : Kt, Pt = !!Ke && (!Xe || Xe.ask && Kt == null);
|
|
444
|
-
|
|
444
|
+
ci.useLayoutEffect(() => {
|
|
445
445
|
var Ve;
|
|
446
446
|
if (!m) return;
|
|
447
447
|
const h = Z.current;
|
|
@@ -462,7 +462,7 @@ function Hc({
|
|
|
462
462
|
})
|
|
463
463
|
),
|
|
464
464
|
onSuccess: () => {
|
|
465
|
-
L(!1), we.success("Transitioned"), ha(w, a),
|
|
465
|
+
L(!1), we.success("Transitioned"), ha(w, a), xs(w, a, [i]), S == null || S();
|
|
466
466
|
},
|
|
467
467
|
onError: (h) => we.error(
|
|
468
468
|
Wt(h, "Transition failed"),
|
|
@@ -483,7 +483,7 @@ function Hc({
|
|
|
483
483
|
we.info(`${h.label}: nothing to change`);
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
|
-
we.success(h.label), ha(w, a),
|
|
486
|
+
we.success(h.label), ha(w, a), xs(w, a, [i]), S == null || S();
|
|
487
487
|
},
|
|
488
488
|
onError: (h) => {
|
|
489
489
|
const E = h.response;
|
|
@@ -540,7 +540,7 @@ function Hc({
|
|
|
540
540
|
]
|
|
541
541
|
}
|
|
542
542
|
),
|
|
543
|
-
m &&
|
|
543
|
+
m && Ts(
|
|
544
544
|
/* @__PURE__ */ n(
|
|
545
545
|
"div",
|
|
546
546
|
{
|
|
@@ -754,7 +754,7 @@ function Hc({
|
|
|
754
754
|
L(!1), (h = navigator.clipboard) == null || h.writeText(R.copy ?? ""), we.success("ID copied");
|
|
755
755
|
}),
|
|
756
756
|
wt("Copy link", () => {
|
|
757
|
-
L(!1),
|
|
757
|
+
L(!1), Es(u, w, a, N, i, C), we.success("Link copied");
|
|
758
758
|
}),
|
|
759
759
|
W && /* @__PURE__ */ c(Be, { children: [
|
|
760
760
|
Ze,
|
|
@@ -822,7 +822,7 @@ function Hc({
|
|
|
822
822
|
function xr(a) {
|
|
823
823
|
return a === "id" || /(^|_)id$/i.test(a) || /(^|_)uuid$/i.test(a);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Ns({
|
|
826
826
|
collection: a,
|
|
827
827
|
field: i,
|
|
828
828
|
fieldType: b,
|
|
@@ -1101,7 +1101,7 @@ function Gc({
|
|
|
1101
1101
|
var w;
|
|
1102
1102
|
if (!a) return "All";
|
|
1103
1103
|
const u = xa(a);
|
|
1104
|
-
return u ?
|
|
1104
|
+
return u ? wi(u) : ((w = ka.find((W) => W.value === a)) == null ? void 0 : w.label) ?? a;
|
|
1105
1105
|
})(), [K, z] = k("between");
|
|
1106
1106
|
pe(() => {
|
|
1107
1107
|
var u;
|
|
@@ -1109,7 +1109,7 @@ function Gc({
|
|
|
1109
1109
|
}, [b, a]);
|
|
1110
1110
|
const P = () => {
|
|
1111
1111
|
const u = v || C;
|
|
1112
|
-
u && (i(
|
|
1112
|
+
u && (i(Ni({ op: K, from: u, to: C || v || u })), d(!1));
|
|
1113
1113
|
};
|
|
1114
1114
|
return /* @__PURE__ */ c("div", { ref: S, className: "relative w-full", children: [
|
|
1115
1115
|
/* @__PURE__ */ c(
|
|
@@ -1154,7 +1154,7 @@ function Gc({
|
|
|
1154
1154
|
)) }),
|
|
1155
1155
|
/* @__PURE__ */ c("div", { className: "border-t border-slate-100 p-2 dark:border-slate-800", children: [
|
|
1156
1156
|
/* @__PURE__ */ n("p", { className: "pb-1 text-[10px] font-semibold uppercase tracking-wide text-slate-400", children: "Date or range" }),
|
|
1157
|
-
/* @__PURE__ */ n("div", { className: "grid grid-cols-3 gap-1 pb-1.5", children:
|
|
1157
|
+
/* @__PURE__ */ n("div", { className: "grid grid-cols-3 gap-1 pb-1.5", children: _i.map((u) => /* @__PURE__ */ n(
|
|
1158
1158
|
"button",
|
|
1159
1159
|
{
|
|
1160
1160
|
type: "button",
|
|
@@ -1274,7 +1274,7 @@ function Xc({
|
|
|
1274
1274
|
}
|
|
1275
1275
|
);
|
|
1276
1276
|
}
|
|
1277
|
-
const
|
|
1277
|
+
const Ps = [
|
|
1278
1278
|
{ value: "_eq", label: "=" },
|
|
1279
1279
|
{ value: "_neq", label: "≠" },
|
|
1280
1280
|
{ value: "_gt", label: ">" },
|
|
@@ -1302,7 +1302,7 @@ const Es = [
|
|
|
1302
1302
|
_lt: "_gte",
|
|
1303
1303
|
_lte: "_gt"
|
|
1304
1304
|
};
|
|
1305
|
-
function
|
|
1305
|
+
function Ds(a) {
|
|
1306
1306
|
const i = /* @__PURE__ */ new Date(), b = (v) => v.toISOString().slice(0, 10), d = b(i);
|
|
1307
1307
|
if (a === "today") return { from: d, to: d };
|
|
1308
1308
|
if (a === "7d" || a === "30d" || a === "90d") {
|
|
@@ -1311,7 +1311,7 @@ function Ps(a) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
return a === "year" ? { from: `${i.getFullYear()}-01-01`, to: d } : null;
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function Ss(a) {
|
|
1315
1315
|
var b;
|
|
1316
1316
|
const i = [];
|
|
1317
1317
|
for (const d of a) {
|
|
@@ -1331,7 +1331,7 @@ function Ns(a) {
|
|
|
1331
1331
|
continue;
|
|
1332
1332
|
}
|
|
1333
1333
|
if (d.op === "_preset") {
|
|
1334
|
-
const $ =
|
|
1334
|
+
const $ = Ds(String(d.value));
|
|
1335
1335
|
$ && (d.not ? i.push({
|
|
1336
1336
|
or: [
|
|
1337
1337
|
{ path: d.path, op: "_lt", value: $.from },
|
|
@@ -1345,7 +1345,7 @@ function Ns(a) {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
return i;
|
|
1347
1347
|
}
|
|
1348
|
-
const
|
|
1348
|
+
const Cs = [
|
|
1349
1349
|
{ label: "Contains", value: "_contains" },
|
|
1350
1350
|
{ label: "Doesn't contain", value: "_ncontains" },
|
|
1351
1351
|
{ label: "Equals", value: "_eq" },
|
|
@@ -1370,8 +1370,8 @@ const Ss = [
|
|
|
1370
1370
|
{ label: "Is empty", value: "_null" },
|
|
1371
1371
|
{ label: "Is not empty", value: "_nnull" }
|
|
1372
1372
|
], eu = {
|
|
1373
|
-
string:
|
|
1374
|
-
text:
|
|
1373
|
+
string: Cs,
|
|
1374
|
+
text: Cs,
|
|
1375
1375
|
integer: vr,
|
|
1376
1376
|
decimal: vr,
|
|
1377
1377
|
float: vr,
|
|
@@ -1459,7 +1459,7 @@ function Cr({
|
|
|
1459
1459
|
}
|
|
1460
1460
|
),
|
|
1461
1461
|
w && R && /* @__PURE__ */ n(
|
|
1462
|
-
|
|
1462
|
+
Ms,
|
|
1463
1463
|
{
|
|
1464
1464
|
aliasInfo: w,
|
|
1465
1465
|
depth: i + 1,
|
|
@@ -1472,7 +1472,7 @@ function Cr({
|
|
|
1472
1472
|
] }, P.field);
|
|
1473
1473
|
}) });
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Ms({
|
|
1476
1476
|
aliasInfo: a,
|
|
1477
1477
|
depth: i,
|
|
1478
1478
|
path: b,
|
|
@@ -1508,7 +1508,7 @@ function Ds({
|
|
|
1508
1508
|
}
|
|
1509
1509
|
) : /* @__PURE__ */ n("div", { className: "px-3 py-1.5", style: { paddingLeft: `${0.5 + i}rem` }, children: /* @__PURE__ */ n("span", { className: "inline-block h-3 w-20 animate-pulse rounded bg-slate-100 dark:bg-[hsl(var(--nvr-skeleton))]" }) });
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function $s(a, i, b) {
|
|
1512
1512
|
if (i) return "relation";
|
|
1513
1513
|
const d = a.type ?? "string";
|
|
1514
1514
|
return d === "integer" || d === "decimal" || d === "float" ? "number" : d === "datetime" || d === "timestamp" ? "date" : d;
|
|
@@ -1587,7 +1587,7 @@ function nu({
|
|
|
1587
1587
|
} else u(L) && w.push({
|
|
1588
1588
|
key: m.field,
|
|
1589
1589
|
label: L,
|
|
1590
|
-
hint:
|
|
1590
|
+
hint: $s(m, void 0),
|
|
1591
1591
|
leaf: { path: q, pathLabels: Z, fieldType: m.type ?? "string" }
|
|
1592
1592
|
});
|
|
1593
1593
|
}
|
|
@@ -1609,7 +1609,7 @@ function nu({
|
|
|
1609
1609
|
key: `${m.field}.${q.field}`,
|
|
1610
1610
|
label: Z,
|
|
1611
1611
|
breadcrumb: O,
|
|
1612
|
-
hint:
|
|
1612
|
+
hint: $s(q, oe ?? void 0),
|
|
1613
1613
|
leaf: {
|
|
1614
1614
|
path: [...i, m.field, q.field],
|
|
1615
1615
|
pathLabels: [...b, O, Z],
|
|
@@ -1822,7 +1822,7 @@ function lu({
|
|
|
1822
1822
|
if (P.relTarget !== void 0) return "relation";
|
|
1823
1823
|
const y = P.fieldType;
|
|
1824
1824
|
return y === "integer" || y === "decimal" || y === "float" ? "number" : y === "date" || y === "datetime" || y === "timestamp" ? "date" : y === "boolean" ? "boolean" : "string";
|
|
1825
|
-
})(), fe =
|
|
1825
|
+
})(), fe = Ps, ce = [
|
|
1826
1826
|
{ value: "_contains", label: "Contains" },
|
|
1827
1827
|
{ value: "_ncontains", label: "Doesn't contain" },
|
|
1828
1828
|
{ value: "_eq", label: "Equals" },
|
|
@@ -1840,7 +1840,7 @@ function lu({
|
|
|
1840
1840
|
/* @__PURE__ */ c("div", { className: "flex min-w-0 max-w-[24rem] flex-1 items-center gap-2", children: [
|
|
1841
1841
|
/* @__PURE__ */ c("div", { className: "relative min-w-0 flex-1", children: [
|
|
1842
1842
|
/* @__PURE__ */ n(
|
|
1843
|
-
|
|
1843
|
+
qs,
|
|
1844
1844
|
{
|
|
1845
1845
|
"aria-hidden": !0,
|
|
1846
1846
|
className: "pointer-events-none absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"
|
|
@@ -2216,7 +2216,7 @@ function su({
|
|
|
2216
2216
|
}
|
|
2217
2217
|
),
|
|
2218
2218
|
N && S && /* @__PURE__ */ n(
|
|
2219
|
-
|
|
2219
|
+
Ms,
|
|
2220
2220
|
{
|
|
2221
2221
|
aliasInfo: S,
|
|
2222
2222
|
depth: 1,
|
|
@@ -2471,7 +2471,7 @@ function du({
|
|
|
2471
2471
|
onClear: C,
|
|
2472
2472
|
onSuccess: $
|
|
2473
2473
|
}) {
|
|
2474
|
-
const S = ga(), N = ut(), K = ya(), z =
|
|
2474
|
+
const S = ga(), N = ut(), K = ya(), z = Ls(), [P, u] = k("actions"), w = Dd([a], _), { data: W = [] } = le({
|
|
2475
2475
|
queryKey: ["bulk-recipes", a],
|
|
2476
2476
|
queryFn: () => N.request(X("/bulk-recipes", { collection: a })).then((F) => F.data ?? []).catch(() => []),
|
|
2477
2477
|
staleTime: 6e4
|
|
@@ -2523,15 +2523,15 @@ function du({
|
|
|
2523
2523
|
}
|
|
2524
2524
|
}, [Z, oe] = k(!1), [ve, J] = k(""), [G, Me] = k(!1), [Je, ae] = k(null), se = async (F) => {
|
|
2525
2525
|
Me(!0), ae(null);
|
|
2526
|
-
const ee =
|
|
2527
|
-
|
|
2526
|
+
const ee = gi();
|
|
2527
|
+
xi(ee, i);
|
|
2528
2528
|
try {
|
|
2529
2529
|
const fe = await F(ee);
|
|
2530
2530
|
ae(fe), $(), C(), u("actions");
|
|
2531
2531
|
} catch (fe) {
|
|
2532
|
-
ae(
|
|
2532
|
+
ae(Si(fe, "Bulk action failed"));
|
|
2533
2533
|
} finally {
|
|
2534
|
-
|
|
2534
|
+
vi(ee), Me(!1);
|
|
2535
2535
|
}
|
|
2536
2536
|
}, pt = (F, ee) => void se(async (fe) => {
|
|
2537
2537
|
const ce = await N.request(
|
|
@@ -2623,7 +2623,7 @@ function du({
|
|
|
2623
2623
|
const F = sd(
|
|
2624
2624
|
i.map((ee) => z.urlFor({ collection: a, itemId: String(ee) }))
|
|
2625
2625
|
);
|
|
2626
|
-
F.blocked > 0 || F.capped > 0 ? we.warning(
|
|
2626
|
+
F.blocked > 0 || F.capped > 0 ? we.warning(cs(F)) : we.success(cs(F));
|
|
2627
2627
|
},
|
|
2628
2628
|
"data-bulk-open-tabs": !0,
|
|
2629
2629
|
title: `Open the selected records in new tabs (up to ${ld})`,
|
|
@@ -2891,22 +2891,22 @@ function Up({
|
|
|
2891
2891
|
className: P
|
|
2892
2892
|
}) {
|
|
2893
2893
|
var Ul, Wl, Vl, Hl, Yl, Jl, Gl, Xl, Zl, es, ts;
|
|
2894
|
-
const u = ut(), w = ya(), { open: W, urlFor: R } =
|
|
2895
|
-
() =>
|
|
2894
|
+
const u = ut(), w = ya(), { open: W, urlFor: R } = Ls(), [m] = k(
|
|
2895
|
+
() => zi(Qi(`cbv:${a}`))
|
|
2896
2896
|
), [L] = k(
|
|
2897
|
-
() => m ?
|
|
2897
|
+
() => m ? fs(m.f ?? []) : null
|
|
2898
2898
|
), [D] = k(
|
|
2899
|
-
() => m ? null :
|
|
2899
|
+
() => m ? null : Wi(`cbv:${a}`)
|
|
2900
2900
|
), [O, q] = k((m == null ? void 0 : m.p) ?? D ?? 1), Z = me(D);
|
|
2901
2901
|
pe(() => {
|
|
2902
|
-
const e =
|
|
2902
|
+
const e = ds(Z.current, O);
|
|
2903
2903
|
if (e !== O) {
|
|
2904
2904
|
q(e);
|
|
2905
2905
|
return;
|
|
2906
2906
|
}
|
|
2907
2907
|
Vi(`cbv:${a}`, O);
|
|
2908
2908
|
}, [a, O]);
|
|
2909
|
-
const oe = me(
|
|
2909
|
+
const oe = me(Ei()), [ve, J] = k(m ? m.q ?? "" : _), G = ss(ve.trim(), 350), [Me, Je] = k(
|
|
2910
2910
|
L ? L.filters : C ?? []
|
|
2911
2911
|
), [ae, se] = k(m ? m.s ?? "" : d ?? ""), [pt, F] = k(b ?? null), [ee, fe] = k({}), [ce, y] = k({}), [U, ie] = k(null), [Ne, mt] = k({}), [rn, ln] = k({}), [It, Q] = k({}), [Ge, rt] = k({}), [yn, Ke] = k(null), [Vt, Kt] = k(!1), sn = me(null), [wn, Xe] = k(
|
|
2912
2912
|
() => (m == null ? void 0 : m.qf) ?? {}
|
|
@@ -2916,7 +2916,7 @@ function Up({
|
|
|
2916
2916
|
m ? m.lc ?? [] : $ ?? []
|
|
2917
2917
|
), { scopes: qt, ready: wt } = _d(), [Ze, _n] = k(!1), [Nn, Qn] = k(/* @__PURE__ */ new Set()), [je, jt] = k(
|
|
2918
2918
|
() => (m == null ? void 0 : m.cf) ?? {}
|
|
2919
|
-
), bt =
|
|
2919
|
+
), bt = pi("drill.browser"), et = bt.value, [Sn, dn] = k(null), [cn, Ht] = k(!1), [Yt, Un] = k(() => {
|
|
2920
2920
|
try {
|
|
2921
2921
|
return localStorage.getItem("nvr_table_density") === "comfortable" ? "comfortable" : "compact";
|
|
2922
2922
|
} catch {
|
|
@@ -2957,7 +2957,7 @@ function Up({
|
|
|
2957
2957
|
const t = e.status, r = (l = e.response) == null ? void 0 : l.error;
|
|
2958
2958
|
t === 503 ? we.error("AI is not configured — add an Anthropic API key in Settings.") : we.error(r ?? "Could not answer that question");
|
|
2959
2959
|
}
|
|
2960
|
-
}),
|
|
2960
|
+
}), Os = () => {
|
|
2961
2961
|
$r(null), Na("");
|
|
2962
2962
|
}, qr = me(!1);
|
|
2963
2963
|
pe(() => {
|
|
@@ -2972,8 +2972,8 @@ function Up({
|
|
|
2972
2972
|
};
|
|
2973
2973
|
}, [de]);
|
|
2974
2974
|
const [Jt, Gt] = k([]);
|
|
2975
|
-
|
|
2976
|
-
const [zt, Tn] = k(null), [
|
|
2975
|
+
hi();
|
|
2976
|
+
const [zt, Tn] = k(null), [As, Sa] = k(!1), [Xt, Ca] = k(""), [$a, Lr] = k(!1), [Is, Fr] = k(!1), [qa, pn] = k(!1), Rr = me(null);
|
|
2977
2977
|
pe(() => {
|
|
2978
2978
|
if (!qa) return;
|
|
2979
2979
|
const e = (t) => {
|
|
@@ -3009,30 +3009,30 @@ function Up({
|
|
|
3009
3009
|
pe(() => {
|
|
3010
3010
|
Or.current || !A || (Or.current = !0, !d && !ae && Le.default_sort && se(Le.default_sort));
|
|
3011
3011
|
}, [A]);
|
|
3012
|
-
const Lt = Le.checkbox_selection !== !1, Ar = Le.show_actions !== !1, [ht,
|
|
3013
|
-
ht && Gt([]),
|
|
3012
|
+
const Lt = Le.checkbox_selection !== !1, Ar = Le.show_actions !== !1, [ht, Ks] = k(!1), js = () => {
|
|
3013
|
+
ht && Gt([]), Ks(!ht);
|
|
3014
3014
|
}, Hn = z && Le.allow_create !== !1, Ir = typeof Le.create_label == "string" && Le.create_label.trim().slice(0, 40) || "New item", Yn = Cd(Hn && !(A != null && A.singleton) ? a : null), [La, Ln] = k(!1), [Fa, Jn] = k(null), { steps: Ra } = vc(
|
|
3015
3015
|
Hn && !(A != null && A.singleton) ? a : null,
|
|
3016
3016
|
null
|
|
3017
3017
|
), Kr = (e) => {
|
|
3018
3018
|
e ? W({ collection: a, itemId: "new", layoutSlug: e }) : tn("new");
|
|
3019
|
-
}, Fn = hc(Hn && !(A != null && A.singleton) ? a : null),
|
|
3019
|
+
}, Fn = hc(Hn && !(A != null && A.singleton) ? a : null), Bs = mi(), jr = me(null), [zs, Qs] = k(null), [Br, zr] = k(!1), Qr = (e) => {
|
|
3020
3020
|
var t;
|
|
3021
|
-
|
|
3022
|
-
},
|
|
3021
|
+
Qs(e), (t = jr.current) == null || t.click();
|
|
3022
|
+
}, Us = async (e) => {
|
|
3023
3023
|
const t = Array.from(e.target.files ?? []);
|
|
3024
3024
|
if (e.target.value = "", !!t.length) {
|
|
3025
3025
|
zr(!0);
|
|
3026
3026
|
try {
|
|
3027
|
-
const r = await gc(
|
|
3028
|
-
W({ collection: a, itemId: "new", layoutSlug:
|
|
3027
|
+
const r = await gc(Bs, t, a);
|
|
3028
|
+
W({ collection: a, itemId: "new", layoutSlug: zs, query: { autofill: r } });
|
|
3029
3029
|
} catch (r) {
|
|
3030
|
-
|
|
3030
|
+
Ci(r, "The document could not be read", { action: "New from document" });
|
|
3031
3031
|
} finally {
|
|
3032
3032
|
zr(!1);
|
|
3033
3033
|
}
|
|
3034
3034
|
}
|
|
3035
|
-
},
|
|
3035
|
+
}, Ws = (e) => Array.isArray(e == null ? void 0 : e.quick_picker) ? e.quick_picker.filter((t) => typeof t == "string") : [], Ea = me(null), Ur = me(null);
|
|
3036
3036
|
pe(() => {
|
|
3037
3037
|
if (!La) return;
|
|
3038
3038
|
const e = (t) => {
|
|
@@ -3052,7 +3052,7 @@ function Up({
|
|
|
3052
3052
|
(async () => {
|
|
3053
3053
|
const r = {};
|
|
3054
3054
|
for (const l of Ft) {
|
|
3055
|
-
const s =
|
|
3055
|
+
const s = ms(e, { key: l.key, collection: l.collection });
|
|
3056
3056
|
if (!s) continue;
|
|
3057
3057
|
const o = Nd(e, s.name);
|
|
3058
3058
|
if (o.length === 0) continue;
|
|
@@ -3075,28 +3075,28 @@ function Up({
|
|
|
3075
3075
|
})();
|
|
3076
3076
|
}, [Ze, wt, qt, A, Ft]);
|
|
3077
3077
|
const Wr = (e) => {
|
|
3078
|
-
const t =
|
|
3078
|
+
const t = ms(qt, { key: e.key, collection: e.collection }), r = t ? (qt == null ? void 0 : qt.restricted[t.name]) ?? [] : [];
|
|
3079
3079
|
return r.length > 0 ? r : void 0;
|
|
3080
|
-
}, _t = xe(() => new Map(Tt.map((e) => [e.field, e])), [Tt]), Qe = (A == null ? void 0 : A.relations) ?? [], Vr = xe(() =>
|
|
3080
|
+
}, _t = xe(() => new Map(Tt.map((e) => [e.field, e])), [Tt]), Qe = (A == null ? void 0 : A.relations) ?? [], Vr = xe(() => Ai(Le.inline_edit), [Le.inline_edit]), { data: Vs } = le({
|
|
3081
3081
|
queryKey: ["my-permissions"],
|
|
3082
3082
|
queryFn: () => u.request(X("/security/my/permissions")).then((e) => e.data),
|
|
3083
3083
|
enabled: Vr.enabled && !Dt,
|
|
3084
3084
|
staleTime: 5 * 6e4
|
|
3085
|
-
}),
|
|
3085
|
+
}), Hs = Dt || Wc(Vs, a), Hr = xe(
|
|
3086
3086
|
() => new Map(((A == null ? void 0 : A.fields) ?? []).map((e) => [e.field, e])),
|
|
3087
3087
|
[A]
|
|
3088
3088
|
), Yr = Nc(), Jr = (e) => (
|
|
3089
3089
|
// Ask-the-table answers are a one-off overlay, not the list's own rows.
|
|
3090
|
-
Pe ? null :
|
|
3090
|
+
Pe ? null : ji({
|
|
3091
3091
|
config: Vr,
|
|
3092
3092
|
key: e,
|
|
3093
3093
|
field: Hr.get(e),
|
|
3094
3094
|
collection: a,
|
|
3095
3095
|
relations: Qe,
|
|
3096
|
-
mayUpdate:
|
|
3096
|
+
mayUpdate: Hs
|
|
3097
3097
|
})
|
|
3098
|
-
),
|
|
3099
|
-
const o = e.id, f = s === 0 ? null :
|
|
3098
|
+
), Ys = (e, t, r, l, s) => {
|
|
3099
|
+
const o = e.id, f = s === 0 ? null : Bi(
|
|
3100
3100
|
be.filter((g) => !!Jr(g)),
|
|
3101
3101
|
t,
|
|
3102
3102
|
s
|
|
@@ -3125,7 +3125,7 @@ function Up({
|
|
|
3125
3125
|
// Rollups, computed columns and the row's position may follow the change.
|
|
3126
3126
|
onSaved: () => void w.invalidateQueries({ queryKey: ["cbv-items", a] })
|
|
3127
3127
|
});
|
|
3128
|
-
},
|
|
3128
|
+
}, Js = (e, t, r, l) => {
|
|
3129
3129
|
const s = r ? null : Jr(t);
|
|
3130
3130
|
if (!s) return l;
|
|
3131
3131
|
const o = Hr.get(t);
|
|
@@ -3137,9 +3137,9 @@ function Up({
|
|
|
3137
3137
|
kind: s,
|
|
3138
3138
|
value: e[t],
|
|
3139
3139
|
label: nt(t),
|
|
3140
|
-
choices: o ?
|
|
3141
|
-
target: s === "m2o" ?
|
|
3142
|
-
onCommit: (f, g) =>
|
|
3140
|
+
choices: o ? Ki(o) : void 0,
|
|
3141
|
+
target: s === "m2o" ? Ii(Qe, a, t) : null,
|
|
3142
|
+
onCommit: (f, g) => Ys(e, t, s, f, g),
|
|
3143
3143
|
children: l
|
|
3144
3144
|
}
|
|
3145
3145
|
);
|
|
@@ -3148,17 +3148,17 @@ function Up({
|
|
|
3148
3148
|
), [pt, Tt, _t, ce]), [Pa, Gn] = k(null), Rn = xe(
|
|
3149
3149
|
() => Pa ?? (be[0] ? { [be[0]]: "left" } : {}),
|
|
3150
3150
|
[Pa, be]
|
|
3151
|
-
), Nt = (e) => Rn[e],
|
|
3151
|
+
), Nt = (e) => Rn[e], Gs = (e) => {
|
|
3152
3152
|
const t = { ...Rn }, r = t[e];
|
|
3153
3153
|
r ? r === "left" ? t[e] = "right" : delete t[e] : t[e] = "left", Gn(t);
|
|
3154
3154
|
}, nt = (e) => ee[e] ?? (e.startsWith("__f:") ? ce[e] ?? "Formula" : e.includes(".") ? e.split(".").map(De).join(" › ") : e === "id" ? "ID" : De(e)), Gr = (e, t) => {
|
|
3155
3155
|
var l, s, o;
|
|
3156
3156
|
const r = t.includes(".") ? (o = (s = (l = Ce == null ? void 0 : Ce.rows) == null ? void 0 : l[String(e.id)]) == null ? void 0 : s[t]) == null ? void 0 : o.value : e[t];
|
|
3157
3157
|
return typeof r == "string" && /^-?\d+(\.\d+)?$/.test(r.trim()) ? Number(r) : r;
|
|
3158
|
-
},
|
|
3158
|
+
}, Xs = (e, t) => {
|
|
3159
3159
|
const r = ce[t];
|
|
3160
3160
|
return r ? os(r, (l) => Gr(e, l)) : null;
|
|
3161
|
-
},
|
|
3161
|
+
}, Zs = (e, t) => {
|
|
3162
3162
|
const r = ce[t];
|
|
3163
3163
|
if (r)
|
|
3164
3164
|
return r.replace(/\{\{\s*([^}]+?)\s*\}\}/g, (l, s) => {
|
|
@@ -3239,9 +3239,9 @@ function Up({
|
|
|
3239
3239
|
s != null && s.one_collection && (e[t.field] = { kind: "m2m", target: s.one_collection });
|
|
3240
3240
|
}
|
|
3241
3241
|
return e;
|
|
3242
|
-
}, [Qt, Zt]), Oa = ss(je, 350), [mn,
|
|
3242
|
+
}, [Qt, Zt]), Oa = ss(je, 350), [mn, eo] = k((m == null ? void 0 : m.a) === !0), [nl, to] = k(null), En = ec(a, nl), [St, al] = k(null), { data: Pn } = zd(a), [Rt, Xn] = k(() => (L == null ? void 0 : L.riskIds) ?? []), ke = xe(() => {
|
|
3243
3243
|
var t;
|
|
3244
|
-
const e =
|
|
3244
|
+
const e = Ss(Me);
|
|
3245
3245
|
for (const r of Ft) {
|
|
3246
3246
|
const l = ft[r.key] ?? [];
|
|
3247
3247
|
l.length !== 0 && ((t = r.or_paths) != null && t.length ? e.push({
|
|
@@ -3278,7 +3278,7 @@ function Up({
|
|
|
3278
3278
|
e.push({ path: [r], op: l.op, value: Number(l.value) });
|
|
3279
3279
|
else if (l.kind === "bool") e.push({ path: [r], op: "_eq", value: l.value === "true" });
|
|
3280
3280
|
else if (l.kind === "date" && l.value) {
|
|
3281
|
-
const s = xa(l.value), f = (s ?
|
|
3281
|
+
const s = xa(l.value), f = (s ? yi(s) : null) ?? Ds(l.value);
|
|
3282
3282
|
f && (f.from && e.push({ path: [r], op: "_gte", value: f.from }), f.to && e.push({ path: [r], op: "_lte", value: `${f.to}T23:59:59` }));
|
|
3283
3283
|
}
|
|
3284
3284
|
}
|
|
@@ -3308,9 +3308,9 @@ function Up({
|
|
|
3308
3308
|
if (!t || !r) return null;
|
|
3309
3309
|
const l = e.find((s) => ["name", "title", "label", "short_name"].includes(s.toLowerCase())) ?? null;
|
|
3310
3310
|
return { latField: t, lngField: r, labelField: l };
|
|
3311
|
-
}, [A]), [Zn, rl] = k(!1), [ll,
|
|
3311
|
+
}, [A]), [Zn, rl] = k(!1), [ll, no] = k(!1), sl = me(ke);
|
|
3312
3312
|
pe(() => {
|
|
3313
|
-
sl.current !== ke && (sl.current = ke, q(1));
|
|
3313
|
+
sl.current !== ke && (sl.current = ke, q(ds(Z.current, 1)));
|
|
3314
3314
|
}, [ke]);
|
|
3315
3315
|
const Dn = Object.keys(rn).filter((e) => !e.includes(".") && !e.startsWith("__")).sort().join(","), ol = (e) => [
|
|
3316
3316
|
"cbv-items",
|
|
@@ -3340,7 +3340,7 @@ function Up({
|
|
|
3340
3340
|
ze,
|
|
3341
3341
|
ke,
|
|
3342
3342
|
Dn
|
|
3343
|
-
]), s = oe.current, o =
|
|
3343
|
+
]), s = oe.current, o = Pi(s, l, e, ae);
|
|
3344
3344
|
if (o.after === void 0 && o.sort === ae) return r(e);
|
|
3345
3345
|
try {
|
|
3346
3346
|
const f = await u.request(
|
|
@@ -3350,17 +3350,17 @@ function Up({
|
|
|
3350
3350
|
...o.sort ? { sort: o.sort } : {}
|
|
3351
3351
|
})
|
|
3352
3352
|
);
|
|
3353
|
-
return o.after !== void 0 &&
|
|
3353
|
+
return o.after !== void 0 && Di(s, l, e, f.next_cursor), f;
|
|
3354
3354
|
} catch (f) {
|
|
3355
|
-
if (!
|
|
3356
|
-
return
|
|
3355
|
+
if (!Mi(f)) throw f;
|
|
3356
|
+
return Oi(s, l), r(e);
|
|
3357
3357
|
}
|
|
3358
3358
|
}, {
|
|
3359
3359
|
data: he,
|
|
3360
3360
|
isLoading: ea,
|
|
3361
3361
|
isFetching: gt,
|
|
3362
3362
|
isPlaceholderData: Aa,
|
|
3363
|
-
dataUpdatedAt:
|
|
3363
|
+
dataUpdatedAt: ao,
|
|
3364
3364
|
refetch: Ia,
|
|
3365
3365
|
error: He
|
|
3366
3366
|
} = le({
|
|
@@ -3426,7 +3426,7 @@ function Up({
|
|
|
3426
3426
|
...Ba ? { conditions: Ba } : {}
|
|
3427
3427
|
})
|
|
3428
3428
|
).then((e) => Number(e.total ?? 0))
|
|
3429
|
-
}),
|
|
3429
|
+
}), ro = () => {
|
|
3430
3430
|
const e = Mn.map((r) => r.key), t = (r) => {
|
|
3431
3431
|
const l = { ...r };
|
|
3432
3432
|
for (const s of e) l[s] = [];
|
|
@@ -3467,7 +3467,7 @@ function Up({
|
|
|
3467
3467
|
}
|
|
3468
3468
|
} : null
|
|
3469
3469
|
);
|
|
3470
|
-
const
|
|
3470
|
+
const lo = Fd(), pl = fi(gt), za = bi({
|
|
3471
3471
|
pending: gt,
|
|
3472
3472
|
request: a ? { method: "GET", url: `/items/${a}` } : null,
|
|
3473
3473
|
noun: ((A == null ? void 0 : A.display_name) ?? a ?? "").replace(/_/g, " ").toLowerCase() || null,
|
|
@@ -3475,10 +3475,10 @@ function Up({
|
|
|
3475
3475
|
knownRows: gt ? wd(w.getQueriesData({ queryKey: ["cbv-items", a] })) : null
|
|
3476
3476
|
}), Qa = fd(), { userId: Ua } = ga(), Et = Ji(), Wa = me(/* @__PURE__ */ new Set());
|
|
3477
3477
|
Wa.current = new Set(ye.map((e) => String(e.id)));
|
|
3478
|
-
const
|
|
3478
|
+
const so = xe(
|
|
3479
3479
|
() => ye.slice(0, 100).map((e) => ({ collection: a, item: String(e.id) })),
|
|
3480
3480
|
[ye, a]
|
|
3481
|
-
), ml = ud(
|
|
3481
|
+
), ml = ud(so), fl = me([]);
|
|
3482
3482
|
fl.current = [
|
|
3483
3483
|
"cbv-items",
|
|
3484
3484
|
a,
|
|
@@ -3501,14 +3501,14 @@ function Up({
|
|
|
3501
3501
|
page: O,
|
|
3502
3502
|
grouped: !!ue
|
|
3503
3503
|
};
|
|
3504
|
-
const Va = me({}).current, [
|
|
3504
|
+
const Va = me({}).current, [oo, io] = k(0), [Ha, Ya] = k(0);
|
|
3505
3505
|
pe(() => {
|
|
3506
3506
|
if (!Qa || !a) return;
|
|
3507
3507
|
const e = (M = 1) => Ya((B) => B + M), t = /* @__PURE__ */ new Map();
|
|
3508
3508
|
let r = null;
|
|
3509
3509
|
const l = (M) => {
|
|
3510
3510
|
const B = (H) => t.set(JSON.stringify(H), H);
|
|
3511
|
-
M.includes(vn.tasks) && B(["cbv-task-counts", a]), M.includes(vn.addendums) && B(["cbv-addendum-summary", a]), M.includes(vn.integrations) && B(["cbv-integrations-summary", a]), M.includes(vn.comments) && B(["row-comment-counts", a]), M.includes(vn.state) && (B(["cbv-pipeline-instances", a]), B(["cbv-owners", a]), B(["cbv-view-count", a])), M.includes(vn.lock) &&
|
|
3511
|
+
M.includes(vn.tasks) && B(["cbv-task-counts", a]), M.includes(vn.addendums) && B(["cbv-addendum-summary", a]), M.includes(vn.integrations) && B(["cbv-integrations-summary", a]), M.includes(vn.comments) && B(["row-comment-counts", a]), M.includes(vn.state) && (B(["cbv-pipeline-instances", a]), B(["cbv-owners", a]), B(["cbv-view-count", a])), M.includes(vn.lock) && io((H) => H + 1), !r && (r = setTimeout(() => {
|
|
3512
3512
|
r = null;
|
|
3513
3513
|
for (const H of t.values()) w.invalidateQueries({ queryKey: H });
|
|
3514
3514
|
t.clear();
|
|
@@ -3621,16 +3621,16 @@ function Up({
|
|
|
3621
3621
|
o.length > 0 && !f && (f = setTimeout(() => void j(), 300));
|
|
3622
3622
|
}, $e = Qa.subscribeCollections(
|
|
3623
3623
|
[a],
|
|
3624
|
-
(M) =>
|
|
3624
|
+
(M) => Li(Va, [M], I)
|
|
3625
3625
|
);
|
|
3626
3626
|
return () => {
|
|
3627
|
-
x = !0, $e(),
|
|
3627
|
+
x = !0, $e(), Fi(Va), r && clearTimeout(r), f && clearTimeout(f), g && clearTimeout(g);
|
|
3628
3628
|
};
|
|
3629
3629
|
}, [Qa, a, w, u, Ua, Et, Va]);
|
|
3630
|
-
const
|
|
3630
|
+
const co = Gi(
|
|
3631
3631
|
a,
|
|
3632
3632
|
ye.map((e) => String(e.id)),
|
|
3633
|
-
|
|
3633
|
+
oo
|
|
3634
3634
|
), { data: ra = [] } = le({
|
|
3635
3635
|
queryKey: ["cbv-risk-rules", a],
|
|
3636
3636
|
queryFn: () => u.request(
|
|
@@ -3639,10 +3639,10 @@ function Up({
|
|
|
3639
3639
|
enabled: !!a,
|
|
3640
3640
|
staleTime: 6e4,
|
|
3641
3641
|
retry: !1
|
|
3642
|
-
}),
|
|
3643
|
-
data:
|
|
3642
|
+
}), uo = ye.map((e) => String(e.id)).join(","), {
|
|
3643
|
+
data: po = {}
|
|
3644
3644
|
} = le({
|
|
3645
|
-
queryKey: ["cbv-risk", a,
|
|
3645
|
+
queryKey: ["cbv-risk", a, uo],
|
|
3646
3646
|
queryFn: () => u.request(
|
|
3647
3647
|
_e("/at-risk/evaluate", {
|
|
3648
3648
|
collection: a,
|
|
@@ -3652,10 +3652,10 @@ function Up({
|
|
|
3652
3652
|
enabled: !!a && ra.length > 0 && ye.length > 0,
|
|
3653
3653
|
staleTime: 3e4,
|
|
3654
3654
|
retry: !1
|
|
3655
|
-
}), Ae = ye.map((e) => String(e.id)).join(","),
|
|
3655
|
+
}), Ae = ye.map((e) => String(e.id)).join(","), mo = xe(
|
|
3656
3656
|
() => ye.map((e) => ({ collection: a, id: e.id })),
|
|
3657
3657
|
[ye, a]
|
|
3658
|
-
),
|
|
3658
|
+
), fo = $c(mo, Dt), Ja = !!(A != null && A.addendums_enabled), { data: Ga } = le({
|
|
3659
3659
|
queryKey: ["cbv-addendum-summary", a, Ae],
|
|
3660
3660
|
queryFn: () => u.request(
|
|
3661
3661
|
_e("/addendums/summary", { collection: a, ids: Ae.split(",") })
|
|
@@ -3688,12 +3688,12 @@ function Up({
|
|
|
3688
3688
|
placeholderData: (e) => e,
|
|
3689
3689
|
staleTime: 3e4,
|
|
3690
3690
|
retry: !1
|
|
3691
|
-
}), { data:
|
|
3691
|
+
}), { data: bo = [] } = le({
|
|
3692
3692
|
queryKey: ["cbv-integrations-collections"],
|
|
3693
3693
|
queryFn: () => u.request(X("/integration-obligations/collections")).then((e) => e.data ?? []).catch(() => []),
|
|
3694
3694
|
staleTime: 6e4,
|
|
3695
3695
|
retry: !1
|
|
3696
|
-
}), gl =
|
|
3696
|
+
}), gl = bo.includes(a), { data: er } = le({
|
|
3697
3697
|
queryKey: ["cbv-integrations-summary", a, Ae],
|
|
3698
3698
|
queryFn: () => u.request(
|
|
3699
3699
|
_e("/integration-obligations/summary", { collection: a, ids: Ae.split(",") })
|
|
@@ -3716,21 +3716,21 @@ function Up({
|
|
|
3716
3716
|
queryFn: () => u.request(X(Dt ? `/pipelines/${la}` : `/pipelines/${la}/outline`)).then((e) => e.data),
|
|
3717
3717
|
enabled: !!la,
|
|
3718
3718
|
retry: !1
|
|
3719
|
-
}),
|
|
3719
|
+
}), ho = !!(Te != null && Te.binding), { data: tr } = le({
|
|
3720
3720
|
queryKey: ["cbv-owners", a, Ae],
|
|
3721
3721
|
queryFn: () => u.request(
|
|
3722
3722
|
_e(`/pipelines/instance/${a}/owners/batch`, {
|
|
3723
3723
|
ids: Ae.split(",").filter(Boolean)
|
|
3724
3724
|
})
|
|
3725
3725
|
).then((e) => e.data ?? {}),
|
|
3726
|
-
enabled:
|
|
3726
|
+
enabled: ho && Ae.length > 0,
|
|
3727
3727
|
staleTime: 6e4,
|
|
3728
3728
|
retry: !1
|
|
3729
3729
|
}), xl = xe(
|
|
3730
3730
|
() => be.filter((e) => e.includes(".")),
|
|
3731
3731
|
[be]
|
|
3732
3732
|
), vl = xe(
|
|
3733
|
-
() => be.filter((e) => e.startsWith("__f:")).flatMap((e) =>
|
|
3733
|
+
() => be.filter((e) => e.startsWith("__f:")).flatMap((e) => $i(ce[e] ?? "")).filter((e) => e.includes(".")),
|
|
3734
3734
|
[be, ce]
|
|
3735
3735
|
), On = xe(
|
|
3736
3736
|
() => [.../* @__PURE__ */ new Set([...xl, ...Object.values(Ue), ...vl])].slice(
|
|
@@ -3759,14 +3759,14 @@ function Up({
|
|
|
3759
3759
|
var r;
|
|
3760
3760
|
const t = e.includes(".") ? e : Ue[e];
|
|
3761
3761
|
return t ? ((r = Ce == null ? void 0 : Ce.targets) == null ? void 0 : r[t]) ?? null : null;
|
|
3762
|
-
},
|
|
3762
|
+
}, go = (e, t) => {
|
|
3763
3763
|
var o, f, g, x;
|
|
3764
3764
|
const r = t.includes(".") ? t : Ue[t];
|
|
3765
3765
|
if (!r) return null;
|
|
3766
3766
|
const l = (o = Ce == null ? void 0 : Ce.targets) == null ? void 0 : o[r], s = ((x = (g = (f = Ce == null ? void 0 : Ce.rows) == null ? void 0 : f[String(e)]) == null ? void 0 : g[r]) == null ? void 0 : x.ids) ?? [];
|
|
3767
3767
|
return !l || Ct(l) || s.length === 0 ? null : { target: l, id: String(s[0]) };
|
|
3768
3768
|
}, Ot = (e) => e.includes(".") || e in Ue;
|
|
3769
|
-
dl.current = (e) =>
|
|
3769
|
+
dl.current = (e) => ki({
|
|
3770
3770
|
qc: w,
|
|
3771
3771
|
collection: a,
|
|
3772
3772
|
rows: e,
|
|
@@ -3775,7 +3775,7 @@ function Up({
|
|
|
3775
3775
|
resolveList: On,
|
|
3776
3776
|
isResolvedCol: Ot,
|
|
3777
3777
|
fetchResolved: yl,
|
|
3778
|
-
fetchRelation: (t, r) =>
|
|
3778
|
+
fetchRelation: (t, r) => Rs(u, t, r),
|
|
3779
3779
|
userCardQuery: (t) => qd(u, t)
|
|
3780
3780
|
});
|
|
3781
3781
|
const bn = (e) => {
|
|
@@ -3794,7 +3794,7 @@ function Up({
|
|
|
3794
3794
|
}, Ie = (e, t) => jt((r) => {
|
|
3795
3795
|
const l = { ...r };
|
|
3796
3796
|
return t ? l[e] = t : delete l[e], l;
|
|
3797
|
-
}),
|
|
3797
|
+
}), xo = (e) => {
|
|
3798
3798
|
var f, g, x, j;
|
|
3799
3799
|
const { key: t, row: r, cellText: l } = e, s = r.id;
|
|
3800
3800
|
if (t === "__state__") {
|
|
@@ -3839,11 +3839,11 @@ function Up({
|
|
|
3839
3839
|
I && Ie(t, { kind: "date", value: `r:${I}..${I}` });
|
|
3840
3840
|
}
|
|
3841
3841
|
}
|
|
3842
|
-
},
|
|
3842
|
+
}, vo = (e, t) => {
|
|
3843
3843
|
if (e === "__state__") return !1;
|
|
3844
3844
|
const r = bn(e);
|
|
3845
3845
|
return r ? r.kind === "in" ? !!at(Qe, a, e) && t[e] != null : r.kind === "enum" || r.kind === "num" ? t[e] != null && t[e] !== "" : r.kind === "text" : !1;
|
|
3846
|
-
},
|
|
3846
|
+
}, ko = (e) => {
|
|
3847
3847
|
const { key: t, row: r, cellText: l } = e, s = r.id, o = bn(t);
|
|
3848
3848
|
if (!o) return;
|
|
3849
3849
|
let f = null;
|
|
@@ -3857,7 +3857,7 @@ function Up({
|
|
|
3857
3857
|
x && x !== "—" && (f = { id: g, path: o.path, op: "_ncontains", value: x, label: x, field: t });
|
|
3858
3858
|
}
|
|
3859
3859
|
f && Tr((x) => [...x, f]);
|
|
3860
|
-
},
|
|
3860
|
+
}, yo = (e) => {
|
|
3861
3861
|
var l, s, o;
|
|
3862
3862
|
const t = bn(e);
|
|
3863
3863
|
if (!t) return null;
|
|
@@ -3911,7 +3911,7 @@ function Up({
|
|
|
3911
3911
|
{
|
|
3912
3912
|
value: f,
|
|
3913
3913
|
onChange: (x) => Ie(e, { kind: "num", op: x, value: g }),
|
|
3914
|
-
options:
|
|
3914
|
+
options: Ps.map((x) => ({ value: x.value, label: x.label })),
|
|
3915
3915
|
ariaLabel: `Filter operator ${e}`
|
|
3916
3916
|
}
|
|
3917
3917
|
),
|
|
@@ -3947,7 +3947,7 @@ function Up({
|
|
|
3947
3947
|
onChange: (f) => Ie(e, f ? { kind: "date", value: f } : null)
|
|
3948
3948
|
}
|
|
3949
3949
|
) : null;
|
|
3950
|
-
},
|
|
3950
|
+
}, wo = be.some((e) => bn(e) != null), _l = (e) => {
|
|
3951
3951
|
var r, l;
|
|
3952
3952
|
if (((r = Ne[e]) == null ? void 0 : r.type) === "number") return !0;
|
|
3953
3953
|
if (e.includes(".") || e in Ue || at(Qe, a, e)) return !1;
|
|
@@ -3957,7 +3957,7 @@ function Up({
|
|
|
3957
3957
|
var s, o, f;
|
|
3958
3958
|
const l = Ne[t];
|
|
3959
3959
|
if ((l == null ? void 0 : l.type) === "count") {
|
|
3960
|
-
const g = t.includes(".") ? t : Ue[t], x = r != null && g ? (f = (o = (s = Ce == null ? void 0 : Ce.rows) == null ? void 0 : s[String(r)]) == null ? void 0 : o[g]) == null ? void 0 : f.ids : void 0, j =
|
|
3960
|
+
const g = t.includes(".") ? t : Ue[t], x = r != null && g ? (f = (o = (s = Ce == null ? void 0 : Ce.rows) == null ? void 0 : s[String(r)]) == null ? void 0 : o[g]) == null ? void 0 : f.ids : void 0, j = Ri(e === "—" ? "" : e, x);
|
|
3961
3961
|
return String(j);
|
|
3962
3962
|
}
|
|
3963
3963
|
return l && e && e !== "—" ? is(e, l) : e;
|
|
@@ -3968,9 +3968,9 @@ function Up({
|
|
|
3968
3968
|
queryKey: ["cbv-views", a],
|
|
3969
3969
|
queryFn: () => u.request(X("/saved-views", { collection: a })).then((e) => e.data ?? []),
|
|
3970
3970
|
staleTime: 3e4
|
|
3971
|
-
}), gn = () => w.invalidateQueries({ queryKey: ["cbv-views", a] }),
|
|
3971
|
+
}), gn = () => w.invalidateQueries({ queryKey: ["cbv-views", a] }), _o = fa({
|
|
3972
3972
|
queries: lt.slice(0, 12).map((e) => {
|
|
3973
|
-
const t =
|
|
3973
|
+
const t = Ss(e.filters ?? []);
|
|
3974
3974
|
return {
|
|
3975
3975
|
queryKey: ["cbv-view-count", a, e.id, JSON.stringify(t)],
|
|
3976
3976
|
queryFn: () => u.request(
|
|
@@ -3988,18 +3988,18 @@ function Up({
|
|
|
3988
3988
|
}), nr = /* @__PURE__ */ new Map();
|
|
3989
3989
|
lt.slice(0, 12).forEach((e, t) => {
|
|
3990
3990
|
var r;
|
|
3991
|
-
nr.set(e.id, ((r =
|
|
3991
|
+
nr.set(e.id, ((r = _o[t]) == null ? void 0 : r.data) ?? null);
|
|
3992
3992
|
});
|
|
3993
|
-
const [Sl,
|
|
3993
|
+
const [Sl, No] = k(() => /* @__PURE__ */ new Set()), sa = (e) => {
|
|
3994
3994
|
var r, l;
|
|
3995
3995
|
Tn(e.id);
|
|
3996
|
-
const t =
|
|
3996
|
+
const t = fs(e.filters ?? []);
|
|
3997
3997
|
if (Je(t.filters), Xn(t.riskIds), se(e.sort ?? ""), (r = e.columns) != null && r.length) {
|
|
3998
3998
|
const s = new Set(
|
|
3999
|
-
e.columns.filter((p) => typeof p != "string" && p.admin_only).map(
|
|
3999
|
+
e.columns.filter((p) => typeof p != "string" && p.admin_only).map(ws)
|
|
4000
4000
|
);
|
|
4001
|
-
|
|
4002
|
-
const o = e.columns.map(
|
|
4001
|
+
No(s);
|
|
4002
|
+
const o = e.columns.map(ws).filter((p) => Dt || !s.has(p)), f = {};
|
|
4003
4003
|
for (const p of e.columns)
|
|
4004
4004
|
typeof p != "string" && p.formula && p.key.startsWith("__f:") && (f[p.key] = p.formula);
|
|
4005
4005
|
y(f);
|
|
@@ -4079,10 +4079,10 @@ function Up({
|
|
|
4079
4079
|
is_shared: !0
|
|
4080
4080
|
})
|
|
4081
4081
|
), ql(""), w.invalidateQueries({ queryKey: ["cbv-export-presets", a] }));
|
|
4082
|
-
},
|
|
4082
|
+
}, So = (e) => {
|
|
4083
4083
|
const t = new URLSearchParams();
|
|
4084
4084
|
G && t.set("search", G), ke && t.set("conditions", ke), ae && t.set("sort", ae), window.open(`/api/export-presets/${e}/run?${t.toString()}`, "_blank");
|
|
4085
|
-
},
|
|
4085
|
+
}, Co = (e, t) => {
|
|
4086
4086
|
u.request(
|
|
4087
4087
|
_e(`/export-presets/${e}/run-async`, {
|
|
4088
4088
|
...G ? { search: G } : {},
|
|
@@ -4100,9 +4100,9 @@ function Up({
|
|
|
4100
4100
|
columns: m.c
|
|
4101
4101
|
}), Tn(null), q(m.p ?? 1)));
|
|
4102
4102
|
}, [Tt]), pe(() => {
|
|
4103
|
-
m &&
|
|
4103
|
+
m && Ui();
|
|
4104
4104
|
}, []);
|
|
4105
|
-
const
|
|
4105
|
+
const $o = () => {
|
|
4106
4106
|
const e = An();
|
|
4107
4107
|
return {
|
|
4108
4108
|
q: G,
|
|
@@ -4134,10 +4134,10 @@ function Up({
|
|
|
4134
4134
|
we.success(r ? `Saved "${r}" with the current columns and filters` : "View saved");
|
|
4135
4135
|
},
|
|
4136
4136
|
onError: (e) => we.error(`Could not save the view: ${e.message}`)
|
|
4137
|
-
}),
|
|
4137
|
+
}), qo = yt({
|
|
4138
4138
|
mutationFn: ({ id: e, on: t }) => u.request(pa(`/saved-views/${e}`, { is_default: t })),
|
|
4139
4139
|
onSuccess: gn
|
|
4140
|
-
}),
|
|
4140
|
+
}), To = yt({
|
|
4141
4141
|
mutationFn: ({ id: e, role: t }) => u.request(pa(`/saved-views/${e}`, { default_for_role: t })),
|
|
4142
4142
|
onSuccess: gn,
|
|
4143
4143
|
onError: (e) => we.error(`Could not set the role default: ${e.message}`)
|
|
@@ -4154,22 +4154,22 @@ function Up({
|
|
|
4154
4154
|
}), El = yt({
|
|
4155
4155
|
mutationFn: (e) => u.request(ba(`/items/${a}/${e}`)),
|
|
4156
4156
|
onSuccess: () => void w.invalidateQueries({ queryKey: ["cbv-items", a] })
|
|
4157
|
-
}),
|
|
4157
|
+
}), Lo = yt({
|
|
4158
4158
|
mutationFn: (e) => u.request(ba(`/saved-views/${e}`)),
|
|
4159
4159
|
onSuccess: (e, t) => {
|
|
4160
4160
|
zt === t && Cl(), gn();
|
|
4161
4161
|
}
|
|
4162
|
-
}), { data:
|
|
4162
|
+
}), { data: Fo = [] } = le({
|
|
4163
4163
|
queryKey: ["cbv-view-subs"],
|
|
4164
4164
|
queryFn: () => u.request(X("/view-subscriptions")).then((e) => e.data ?? []).catch(() => []),
|
|
4165
4165
|
staleTime: 6e4
|
|
4166
|
-
}), da = (e) =>
|
|
4166
|
+
}), da = (e) => Fo.find((t) => t.view_id === e), Ro = yt({
|
|
4167
4167
|
mutationFn: async (e) => {
|
|
4168
4168
|
const t = da(e);
|
|
4169
4169
|
return t ? u.request(ba(`/view-subscriptions/${t.id}`)) : u.request(_e("/view-subscriptions", { view_id: e, digest: "daily" }));
|
|
4170
4170
|
},
|
|
4171
4171
|
onSuccess: () => w.invalidateQueries({ queryKey: ["cbv-view-subs"] })
|
|
4172
|
-
}),
|
|
4172
|
+
}), Eo = async () => {
|
|
4173
4173
|
var e, t;
|
|
4174
4174
|
if (!$a) {
|
|
4175
4175
|
Lr(!0);
|
|
@@ -4189,7 +4189,7 @@ function Up({
|
|
|
4189
4189
|
if (Y.includes(".") || Y.startsWith("__") || Y in Ue) continue;
|
|
4190
4190
|
const ne = (e = at(Qe, a, Y)) == null ? void 0 : e.one_collection;
|
|
4191
4191
|
if (!ne) continue;
|
|
4192
|
-
if (
|
|
4192
|
+
if (Fs.has(ne)) {
|
|
4193
4193
|
f.push(Y);
|
|
4194
4194
|
continue;
|
|
4195
4195
|
}
|
|
@@ -4280,17 +4280,17 @@ function Up({
|
|
|
4280
4280
|
Lr(!1);
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
|
-
},
|
|
4283
|
+
}, Po = (e) => {
|
|
4284
4284
|
const t = `record:${a}:${String(e)}`;
|
|
4285
4285
|
return dd(t, () => cd(w, u, a, String(e), { group: t }));
|
|
4286
|
-
},
|
|
4287
|
-
const t =
|
|
4286
|
+
}, Do = (e) => {
|
|
4287
|
+
const t = Po(e);
|
|
4288
4288
|
return {
|
|
4289
4289
|
...t,
|
|
4290
|
-
tabIndex: String(e) ===
|
|
4290
|
+
tabIndex: String(e) === Wo ? 0 : -1,
|
|
4291
4291
|
"data-row-open": "",
|
|
4292
4292
|
onFocus: (r) => {
|
|
4293
|
-
t.onFocus(), r.target === r.currentTarget &&
|
|
4293
|
+
t.onFocus(), r.target === r.currentTarget && Uo(String(e));
|
|
4294
4294
|
},
|
|
4295
4295
|
onClick: (r) => {
|
|
4296
4296
|
if (r.metaKey || r.ctrlKey) {
|
|
@@ -4326,7 +4326,7 @@ function Up({
|
|
|
4326
4326
|
collection: a,
|
|
4327
4327
|
item: e === "new" ? null : e
|
|
4328
4328
|
}), S ? S(e) : W({ collection: a, itemId: String(e) });
|
|
4329
|
-
},
|
|
4329
|
+
}, Mo = (e) => {
|
|
4330
4330
|
const t = at(Qe, a, e), r = (l) => {
|
|
4331
4331
|
ae === l ? se(`-${l}`) : ae === `-${l}` ? se("") : se(l), q(1);
|
|
4332
4332
|
};
|
|
@@ -4346,9 +4346,9 @@ function Up({
|
|
|
4346
4346
|
return;
|
|
4347
4347
|
}
|
|
4348
4348
|
r(e);
|
|
4349
|
-
}, rr = ye.length > 0 && ye.every((e) => Jt.includes(e.id)),
|
|
4349
|
+
}, rr = ye.length > 0 && ye.every((e) => Jt.includes(e.id)), Oo = () => Gt(
|
|
4350
4350
|
rr ? Jt.filter((e) => !ye.some((t) => t.id === e)) : [.../* @__PURE__ */ new Set([...Jt, ...ye.map((e) => e.id)])]
|
|
4351
|
-
),
|
|
4351
|
+
), Ao = (e) => Gt((t) => t.includes(e) ? t.filter((r) => r !== e) : [...t, e]), ca = 2e3, [Pl, Dl] = k(!1), Io = async () => {
|
|
4352
4352
|
Dl(!0);
|
|
4353
4353
|
try {
|
|
4354
4354
|
const e = await u.request(
|
|
@@ -4363,7 +4363,7 @@ function Up({
|
|
|
4363
4363
|
} finally {
|
|
4364
4364
|
Dl(!1);
|
|
4365
4365
|
}
|
|
4366
|
-
},
|
|
4366
|
+
}, Ko = Fe === 0 && !en ? 0 : (O - 1) * ze + 1, jo = en ? (O - 1) * ze + ye.length : Math.min(O * ze, Fe), In = !!(Te != null && Te.instances), Ml = (Lt ? 1 : 0) + (In ? 2 : 0) + (Ar ? 1 : 0), lr = [
|
|
4367
4367
|
...be.map(
|
|
4368
4368
|
(e) => e.startsWith("__f:") ? { key: e, kind: "formula" } : { key: e, kind: "data" }
|
|
4369
4369
|
),
|
|
@@ -4384,7 +4384,7 @@ function Up({
|
|
|
4384
4384
|
...lr.filter((e) => Nt(e.key) === "left"),
|
|
4385
4385
|
...lr.filter((e) => !Nt(e.key)),
|
|
4386
4386
|
...lr.filter((e) => Nt(e.key) === "right")
|
|
4387
|
-
],
|
|
4387
|
+
], Bo = nn.map((e) => {
|
|
4388
4388
|
if (e.kind === "data") {
|
|
4389
4389
|
const t = _t.get(e.key.split(".")[0]);
|
|
4390
4390
|
return { key: e.key, shape: yd(t == null ? void 0 : t.type, t == null ? void 0 : t.interface) };
|
|
@@ -4393,7 +4393,7 @@ function Up({
|
|
|
4393
4393
|
}), Ol = [
|
|
4394
4394
|
...In ? [{ key: "__state__", label: "State" }] : [],
|
|
4395
4395
|
...be.filter((e) => Ot(e) || !at(Qe, a, e)).map((e) => ({ key: e, label: nt(e) }))
|
|
4396
|
-
],
|
|
4396
|
+
], zo = (e) => {
|
|
4397
4397
|
var l;
|
|
4398
4398
|
if (!ue) return "";
|
|
4399
4399
|
const t = e.id;
|
|
@@ -4408,7 +4408,7 @@ function Up({
|
|
|
4408
4408
|
if (!ue) return ye.map((l) => ({ kind: "row", row: l }));
|
|
4409
4409
|
const e = /* @__PURE__ */ new Map();
|
|
4410
4410
|
for (const l of ye) {
|
|
4411
|
-
const s =
|
|
4411
|
+
const s = zo(l), o = e.get(s) ?? [];
|
|
4412
4412
|
o.push(l), e.set(s, o);
|
|
4413
4413
|
}
|
|
4414
4414
|
const t = [...e.keys()].sort((l, s) => l === "(empty)" ? 1 : s === "(empty)" ? -1 : l.localeCompare(s, void 0, { numeric: !0 })), r = [];
|
|
@@ -4417,21 +4417,21 @@ function Up({
|
|
|
4417
4417
|
if (r.push({ kind: "header", gkey: l, label: l, count: s.length }), !Se.has(l)) for (const o of s) r.push({ kind: "row", row: o });
|
|
4418
4418
|
}
|
|
4419
4419
|
return r;
|
|
4420
|
-
})(), [
|
|
4421
|
-
|
|
4420
|
+
})(), [Qo, Uo] = k(null), Wo = nc(Al, Qo), sr = nn.filter((e) => Nt(e.key) === "left").map((e) => e.key), Il = nn.filter((e) => Nt(e.key) === "right").map((e) => e.key), or = me(/* @__PURE__ */ new Map()), [Kn, Vo] = k({});
|
|
4421
|
+
ui(() => {
|
|
4422
4422
|
const e = {};
|
|
4423
4423
|
for (const [r, l] of or.current)
|
|
4424
4424
|
l != null && l.isConnected && (e[r] = l.getBoundingClientRect().width);
|
|
4425
4425
|
const t = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(Kn)]);
|
|
4426
4426
|
for (const r of t)
|
|
4427
4427
|
if (Math.abs((e[r] ?? -1) - (Kn[r] ?? -1)) > 0.5) {
|
|
4428
|
-
|
|
4428
|
+
Vo(e);
|
|
4429
4429
|
return;
|
|
4430
4430
|
}
|
|
4431
4431
|
});
|
|
4432
|
-
const
|
|
4432
|
+
const Ho = 52, Kl = (e) => {
|
|
4433
4433
|
if (Nt(e) === "left") {
|
|
4434
|
-
let l = Lt ? Kn.__checkbox__ ??
|
|
4434
|
+
let l = Lt ? Kn.__checkbox__ ?? Ho : 0;
|
|
4435
4435
|
for (const s of sr) {
|
|
4436
4436
|
if (s === e) break;
|
|
4437
4437
|
l += Kn[s] ?? 0;
|
|
@@ -4473,21 +4473,21 @@ function Up({
|
|
|
4473
4473
|
window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", t);
|
|
4474
4474
|
};
|
|
4475
4475
|
}, []);
|
|
4476
|
-
const
|
|
4476
|
+
const Yo = (e) => {
|
|
4477
4477
|
let t = nt(e).length;
|
|
4478
4478
|
for (const r of ye) {
|
|
4479
4479
|
const l = Ot(e) ? xt(r.id, e) ?? "" : hn(String(r[e] ?? ""), e, r.id);
|
|
4480
4480
|
l.length > t && (t = Math.min(l.length, 90));
|
|
4481
4481
|
}
|
|
4482
4482
|
Q((r) => ({ ...r, [e]: Math.max(60, Math.round(t * 6.6) + 28) }));
|
|
4483
|
-
},
|
|
4483
|
+
}, Jo = (e) => /* @__PURE__ */ n(
|
|
4484
4484
|
"span",
|
|
4485
4485
|
{
|
|
4486
4486
|
onPointerDown: (t) => {
|
|
4487
4487
|
t.preventDefault(), t.stopPropagation(), dr.current = { key: e, startX: t.clientX, startW: It[e] ?? 140 }, document.body.style.cursor = "col-resize";
|
|
4488
4488
|
},
|
|
4489
4489
|
onDoubleClick: (t) => {
|
|
4490
|
-
t.stopPropagation(),
|
|
4490
|
+
t.stopPropagation(), Yo(e);
|
|
4491
4491
|
},
|
|
4492
4492
|
onClick: (t) => t.stopPropagation(),
|
|
4493
4493
|
title: "Drag to resize · double-click to fit content",
|
|
@@ -4500,13 +4500,13 @@ function Up({
|
|
|
4500
4500
|
{
|
|
4501
4501
|
type: "button",
|
|
4502
4502
|
onClick: (r) => {
|
|
4503
|
-
r.stopPropagation(),
|
|
4503
|
+
r.stopPropagation(), Gs(e);
|
|
4504
4504
|
},
|
|
4505
4505
|
title: jl[t ?? "none"],
|
|
4506
4506
|
"aria-label": jl[t ?? "none"],
|
|
4507
4507
|
className: `ml-1 inline-flex align-middle transition-opacity ${t ? "text-[#00a5cc] opacity-100" : "text-slate-300 opacity-0 group-hover/hcell:opacity-100 dark:text-slate-600"}`,
|
|
4508
4508
|
children: /* @__PURE__ */ n(
|
|
4509
|
-
|
|
4509
|
+
di,
|
|
4510
4510
|
{
|
|
4511
4511
|
className: "h-3 w-3",
|
|
4512
4512
|
style: t === "right" ? { transform: "scaleX(-1)" } : void 0
|
|
@@ -4514,20 +4514,20 @@ function Up({
|
|
|
4514
4514
|
)
|
|
4515
4515
|
}
|
|
4516
4516
|
);
|
|
4517
|
-
},
|
|
4517
|
+
}, Go = !!(G || ke || zt != null), { data: Xo } = le({
|
|
4518
4518
|
queryKey: ["cbv-grand-total", a],
|
|
4519
4519
|
queryFn: () => u.request(
|
|
4520
4520
|
X(`/items/${a}`, { limit: 1, fields: "id", count: "approx" })
|
|
4521
4521
|
).then((e) => typeof e.total == "number" ? e.total : null),
|
|
4522
|
-
enabled: !!a && Ze && !Pe &&
|
|
4522
|
+
enabled: !!a && Ze && !Pe && Go,
|
|
4523
4523
|
staleTime: 5 * 6e4,
|
|
4524
4524
|
retry: !1
|
|
4525
|
-
}), Ql = me(!1), [,
|
|
4525
|
+
}), Ql = me(!1), [, Zo] = k(0);
|
|
4526
4526
|
pe(
|
|
4527
4527
|
() => w.getQueryCache().subscribe((e) => {
|
|
4528
4528
|
if (!Ql.current || e.type !== "updated" || e.action.type !== "success") return;
|
|
4529
4529
|
const t = String(e.query.queryKey[0] ?? "");
|
|
4530
|
-
(t === "cbv-quick-options" || t === "cbv-filter-options" || t === "cbv-filter-selected-labels") &&
|
|
4530
|
+
(t === "cbv-quick-options" || t === "cbv-filter-options" || t === "cbv-filter-selected-labels") && Zo((r) => r + 1);
|
|
4531
4531
|
}),
|
|
4532
4532
|
[w]
|
|
4533
4533
|
);
|
|
@@ -4593,10 +4593,10 @@ function Up({
|
|
|
4593
4593
|
)
|
|
4594
4594
|
});
|
|
4595
4595
|
else if (x.kind === "fulfilment" && Oe) {
|
|
4596
|
-
const M = (s =
|
|
4596
|
+
const M = (s = hs.find((B) => B.value === x.value)) == null ? void 0 : s.label;
|
|
4597
4597
|
M && r.push({ kind: "phrase", text: M.toLowerCase() });
|
|
4598
4598
|
} else if (x.kind === "integrations") {
|
|
4599
|
-
const M = (o =
|
|
4599
|
+
const M = (o = gs.find((B) => B.value === x.value)) == null ? void 0 : o.label;
|
|
4600
4600
|
M && r.push({ kind: "is", field: j, values: [M.toLowerCase()] });
|
|
4601
4601
|
} else if (x.kind === "tasks")
|
|
4602
4602
|
r.push({
|
|
@@ -4604,7 +4604,7 @@ function Up({
|
|
|
4604
4604
|
text: x.value === "none" ? "with no open tasks" : x.value === "overdue" ? "with overdue tasks" : "with open tasks"
|
|
4605
4605
|
});
|
|
4606
4606
|
else if (x.kind === "aging") {
|
|
4607
|
-
const M =
|
|
4607
|
+
const M = qi({ field: j, type: "range", value: x.value, rangeUnit: "h" });
|
|
4608
4608
|
M && r.push(M);
|
|
4609
4609
|
} else if (x.kind === "text" && x.value.trim())
|
|
4610
4610
|
r.push({ kind: "text", field: j, text: x.value });
|
|
@@ -4642,13 +4642,13 @@ function Up({
|
|
|
4642
4642
|
}).filter((x) => !!x);
|
|
4643
4643
|
g.length > 0 && r.push({ kind: "phrase", text: `flagged ${g.join(" or ")}` });
|
|
4644
4644
|
}
|
|
4645
|
-
return Ql.current = e,
|
|
4645
|
+
return Ql.current = e, Ti({
|
|
4646
4646
|
noun: (A == null ? void 0 : A.display_name) || De(a),
|
|
4647
4647
|
viewName: ((f = lt.find((g) => g.id === zt)) == null ? void 0 : f.name) ?? null,
|
|
4648
4648
|
search: G,
|
|
4649
4649
|
clauses: r,
|
|
4650
4650
|
shown: en ? null : Fe,
|
|
4651
|
-
of:
|
|
4651
|
+
of: Xo ?? null,
|
|
4652
4652
|
approx: Ka
|
|
4653
4653
|
});
|
|
4654
4654
|
})();
|
|
@@ -4719,7 +4719,7 @@ function Up({
|
|
|
4719
4719
|
` }),
|
|
4720
4720
|
/* @__PURE__ */ n(Oc, {}),
|
|
4721
4721
|
/* @__PURE__ */ n(jd, {}),
|
|
4722
|
-
de &&
|
|
4722
|
+
de && Ts(
|
|
4723
4723
|
/* @__PURE__ */ c(
|
|
4724
4724
|
"div",
|
|
4725
4725
|
{
|
|
@@ -4737,7 +4737,7 @@ function Up({
|
|
|
4737
4737
|
{
|
|
4738
4738
|
type: "button",
|
|
4739
4739
|
onClick: () => {
|
|
4740
|
-
|
|
4740
|
+
xo(de), Bt(null);
|
|
4741
4741
|
},
|
|
4742
4742
|
className: "block w-full truncate px-3 py-1.5 text-left text-[12px] text-slate-700 hover:bg-slate-50 dark:text-slate-200 dark:hover:bg-slate-800",
|
|
4743
4743
|
children: [
|
|
@@ -4746,12 +4746,12 @@ function Up({
|
|
|
4746
4746
|
]
|
|
4747
4747
|
}
|
|
4748
4748
|
),
|
|
4749
|
-
|
|
4749
|
+
vo(de.key, de.row) && de.cellText && de.cellText !== "—" && /* @__PURE__ */ c(
|
|
4750
4750
|
"button",
|
|
4751
4751
|
{
|
|
4752
4752
|
type: "button",
|
|
4753
4753
|
onClick: () => {
|
|
4754
|
-
|
|
4754
|
+
ko(de), Bt(null);
|
|
4755
4755
|
},
|
|
4756
4756
|
className: "block w-full truncate px-3 py-1.5 text-left text-[12px] text-slate-700 hover:bg-slate-50 dark:text-slate-200 dark:hover:bg-slate-800",
|
|
4757
4757
|
children: [
|
|
@@ -4812,7 +4812,7 @@ function Up({
|
|
|
4812
4812
|
{
|
|
4813
4813
|
label: "Copy link",
|
|
4814
4814
|
run: () => {
|
|
4815
|
-
|
|
4815
|
+
Es(
|
|
4816
4816
|
u,
|
|
4817
4817
|
w,
|
|
4818
4818
|
a,
|
|
@@ -4871,12 +4871,12 @@ function Up({
|
|
|
4871
4871
|
"button",
|
|
4872
4872
|
{
|
|
4873
4873
|
type: "button",
|
|
4874
|
-
onClick: () =>
|
|
4874
|
+
onClick: () => eo((e) => !e),
|
|
4875
4875
|
"aria-pressed": mn,
|
|
4876
4876
|
title: "Only records with an addendum still in review",
|
|
4877
4877
|
className: `flex h-8 items-center gap-1.5 rounded-full border px-2.5 text-[12px] font-medium transition-colors ${mn ? "border-amber-400 bg-amber-50 text-amber-800 dark:border-amber-500/60 dark:bg-amber-500/10 dark:text-amber-300" : "border-slate-200 bg-white text-slate-600 hover:border-slate-300 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300"}`,
|
|
4878
4878
|
children: [
|
|
4879
|
-
/* @__PURE__ */ n(
|
|
4879
|
+
/* @__PURE__ */ n(ei, { className: "h-3.5 w-3.5" }),
|
|
4880
4880
|
"Active addendums"
|
|
4881
4881
|
]
|
|
4882
4882
|
}
|
|
@@ -4938,7 +4938,7 @@ function Up({
|
|
|
4938
4938
|
children: /* @__PURE__ */ n(pr, { className: `h-4 w-4 ${gt ? "animate-spin" : ""}` })
|
|
4939
4939
|
}
|
|
4940
4940
|
),
|
|
4941
|
-
/* @__PURE__ */ n(_c, { listKey: `cbv:${a}`, getState:
|
|
4941
|
+
/* @__PURE__ */ n(_c, { listKey: `cbv:${a}`, getState: $o }),
|
|
4942
4942
|
Dt && Le.copy_as !== !1 && /* @__PURE__ */ n(
|
|
4943
4943
|
Bd,
|
|
4944
4944
|
{
|
|
@@ -4959,12 +4959,12 @@ function Up({
|
|
|
4959
4959
|
parent: En.parent,
|
|
4960
4960
|
value: nl,
|
|
4961
4961
|
onChange: (e) => {
|
|
4962
|
-
|
|
4962
|
+
to(e), q(1);
|
|
4963
4963
|
}
|
|
4964
4964
|
}
|
|
4965
4965
|
),
|
|
4966
4966
|
[
|
|
4967
|
-
...Pn ? [{ key: "tree", label: "Tree", icon: /* @__PURE__ */ n(
|
|
4967
|
+
...Pn ? [{ key: "tree", label: "Tree", icon: /* @__PURE__ */ n(ti, { className: "h-3.5 w-3.5" }) }] : [],
|
|
4968
4968
|
...(K ?? []).map((e) => ({ key: e.key, label: e.label, icon: e.icon }))
|
|
4969
4969
|
].map((e) => /* @__PURE__ */ c(
|
|
4970
4970
|
"button",
|
|
@@ -4995,7 +4995,7 @@ function Up({
|
|
|
4995
4995
|
className: `flex h-8 items-center gap-1.5 rounded-md border px-2.5 text-[12px] font-medium ${Zn ? "border-nvr-cyan/40 bg-nvr-cyan/[0.08] text-[#007a99] dark:text-nvr-cyan" : "border-slate-200 text-slate-500 hover:text-slate-700 dark:border-slate-700 dark:text-slate-400"}`,
|
|
4996
4996
|
"data-cbv-map-toggle": !0,
|
|
4997
4997
|
children: [
|
|
4998
|
-
/* @__PURE__ */ n(
|
|
4998
|
+
/* @__PURE__ */ n(ni, { className: "h-3.5 w-3.5" }),
|
|
4999
4999
|
"Map"
|
|
5000
5000
|
]
|
|
5001
5001
|
}
|
|
@@ -5077,7 +5077,7 @@ function Up({
|
|
|
5077
5077
|
"button",
|
|
5078
5078
|
{
|
|
5079
5079
|
type: "button",
|
|
5080
|
-
onClick:
|
|
5080
|
+
onClick: Os,
|
|
5081
5081
|
"aria-label": "Clear AI result",
|
|
5082
5082
|
className: "rounded-full p-0.5 hover:bg-nvr-cyan/[0.16]",
|
|
5083
5083
|
children: /* @__PURE__ */ n(fr, { className: "h-3 w-3" })
|
|
@@ -5123,13 +5123,13 @@ function Up({
|
|
|
5123
5123
|
"button",
|
|
5124
5124
|
{
|
|
5125
5125
|
type: "button",
|
|
5126
|
-
onClick:
|
|
5126
|
+
onClick: js,
|
|
5127
5127
|
"aria-pressed": ht,
|
|
5128
5128
|
"data-cbv-bulk-mode": ht ? "on" : "off",
|
|
5129
5129
|
"data-tip": ht ? "Leave bulk mode — clears the selection and turns row actions back on" : "Select rows to act on several at once",
|
|
5130
5130
|
className: `flex h-8 items-center gap-1.5 rounded-md border px-2.5 text-[12px] font-medium ${ht ? "border-nvr-cyan bg-nvr-cyan/10 text-slate-800 dark:text-slate-100" : "border-slate-200 text-slate-500 hover:bg-slate-100 hover:text-slate-700 dark:border-slate-700 dark:text-slate-400 dark:hover:bg-slate-800"}`,
|
|
5131
5131
|
children: [
|
|
5132
|
-
/* @__PURE__ */ n(
|
|
5132
|
+
/* @__PURE__ */ n(ai, { className: "h-3.5 w-3.5" }),
|
|
5133
5133
|
ht ? "Done" : "Bulk select"
|
|
5134
5134
|
]
|
|
5135
5135
|
}
|
|
@@ -5142,7 +5142,7 @@ function Up({
|
|
|
5142
5142
|
"aria-label": "Row density",
|
|
5143
5143
|
title: Yt === "compact" ? "Switch to comfortable rows" : "Switch to compact rows",
|
|
5144
5144
|
className: "flex h-8 w-8 items-center justify-center rounded-md border border-slate-200 text-slate-500 hover:bg-slate-100 hover:text-slate-700 dark:border-slate-700 dark:text-slate-400 dark:hover:bg-slate-800",
|
|
5145
|
-
children: Yt === "compact" ? /* @__PURE__ */ n(as, { className: "h-4 w-4" }) : /* @__PURE__ */ n(
|
|
5145
|
+
children: Yt === "compact" ? /* @__PURE__ */ n(as, { className: "h-4 w-4" }) : /* @__PURE__ */ n(ri, { className: "h-4 w-4" })
|
|
5146
5146
|
}
|
|
5147
5147
|
),
|
|
5148
5148
|
/* @__PURE__ */ c("div", { className: "relative", ref: Er, children: [
|
|
@@ -5508,7 +5508,7 @@ function Up({
|
|
|
5508
5508
|
{
|
|
5509
5509
|
type: "button",
|
|
5510
5510
|
onClick: () => {
|
|
5511
|
-
pn(!1),
|
|
5511
|
+
pn(!1), Eo();
|
|
5512
5512
|
},
|
|
5513
5513
|
className: "block w-full rounded-md px-2.5 py-1.5 text-left text-[12.5px] text-slate-700 hover:bg-muted dark:text-slate-200",
|
|
5514
5514
|
children: "CSV — visible columns"
|
|
@@ -5534,7 +5534,7 @@ ${r}`).then(() => {
|
|
|
5534
5534
|
});
|
|
5535
5535
|
},
|
|
5536
5536
|
className: "block w-full rounded-md px-2.5 py-1.5 text-left text-[12.5px] text-slate-700 hover:bg-muted dark:text-slate-200",
|
|
5537
|
-
children:
|
|
5537
|
+
children: Is ? "Copied ✓" : "Copy table to clipboard"
|
|
5538
5538
|
}
|
|
5539
5539
|
),
|
|
5540
5540
|
$l.length > 0 && /* @__PURE__ */ n("p", { className: "border-t border-slate-100 px-2.5 pb-0.5 pt-1.5 text-[10px] font-semibold uppercase tracking-wide text-slate-400 dark:border-border/60", children: "Presets (server, current filters apply)" }),
|
|
@@ -5546,7 +5546,7 @@ ${r}`).then(() => {
|
|
|
5546
5546
|
{
|
|
5547
5547
|
type: "button",
|
|
5548
5548
|
onClick: () => {
|
|
5549
|
-
pn(!1),
|
|
5549
|
+
pn(!1), So(e.id);
|
|
5550
5550
|
},
|
|
5551
5551
|
className: "block min-w-0 flex-1 rounded-md px-2.5 py-1.5 text-left text-[12.5px] text-slate-700 hover:bg-muted dark:text-slate-200",
|
|
5552
5552
|
children: [
|
|
@@ -5562,7 +5562,7 @@ ${r}`).then(() => {
|
|
|
5562
5562
|
"data-export-background": e.id,
|
|
5563
5563
|
"data-tip": "Run in the background — a download appears in the Jobs tray",
|
|
5564
5564
|
onClick: () => {
|
|
5565
|
-
pn(!1),
|
|
5565
|
+
pn(!1), Co(e.id, e.name);
|
|
5566
5566
|
},
|
|
5567
5567
|
className: "mr-1 shrink-0 rounded px-1.5 py-1 text-[10.5px] font-medium text-slate-500 hover:bg-muted hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-100",
|
|
5568
5568
|
children: "Background"
|
|
@@ -5624,7 +5624,7 @@ ${r}`).then(() => {
|
|
|
5624
5624
|
slug: e.slug,
|
|
5625
5625
|
label: e.create_label ?? e.name,
|
|
5626
5626
|
isDefault: !1,
|
|
5627
|
-
steps:
|
|
5627
|
+
steps: Ws(e)
|
|
5628
5628
|
}))
|
|
5629
5629
|
].map((e) => /* @__PURE__ */ c(
|
|
5630
5630
|
"div",
|
|
@@ -5740,7 +5740,7 @@ ${r}`).then(() => {
|
|
|
5740
5740
|
accept: (((es = Fn.data) == null ? void 0 : es.accept) ?? []).join(","),
|
|
5741
5741
|
multiple: !0,
|
|
5742
5742
|
className: "hidden",
|
|
5743
|
-
onChange:
|
|
5743
|
+
onChange: Us,
|
|
5744
5744
|
"data-cbv-autofill-input": !0
|
|
5745
5745
|
}
|
|
5746
5746
|
)
|
|
@@ -5891,11 +5891,11 @@ ${r}`).then(() => {
|
|
|
5891
5891
|
"button",
|
|
5892
5892
|
{
|
|
5893
5893
|
type: "button",
|
|
5894
|
-
onClick: () =>
|
|
5894
|
+
onClick: () => Ro.mutate(e.id),
|
|
5895
5895
|
title: da(e.id) ? "Subscribed — a daily digest reports records that enter this view. Click to unsubscribe." : "Subscribe — get a daily digest of records that enter this view",
|
|
5896
5896
|
"aria-label": `Toggle digest subscription for ${e.name}`,
|
|
5897
5897
|
className: da(e.id) ? "text-[#00a5cc]" : "text-slate-400 hover:text-[#00a5cc]",
|
|
5898
|
-
children: da(e.id) ? /* @__PURE__ */ n(
|
|
5898
|
+
children: da(e.id) ? /* @__PURE__ */ n(li, { className: "h-3 w-3", fill: "currentColor" }) : /* @__PURE__ */ n(si, { className: "h-3 w-3" })
|
|
5899
5899
|
}
|
|
5900
5900
|
),
|
|
5901
5901
|
/* @__PURE__ */ n(
|
|
@@ -5909,8 +5909,8 @@ ${r}`).then(() => {
|
|
|
5909
5909
|
"data-view-update": e.id,
|
|
5910
5910
|
"data-view-update-state": At.isPending && At.variables === e.id ? "saving" : ar === e.id ? "saved" : "idle",
|
|
5911
5911
|
className: "inline-flex h-3.5 w-3.5 items-center justify-center",
|
|
5912
|
-
children: At.isPending && At.variables === e.id ? /* @__PURE__ */ n(
|
|
5913
|
-
|
|
5912
|
+
children: At.isPending && At.variables === e.id ? /* @__PURE__ */ n(oi, { className: "h-3 w-3 animate-spin" }) : ar === e.id ? /* @__PURE__ */ n(
|
|
5913
|
+
ii,
|
|
5914
5914
|
{
|
|
5915
5915
|
className: "h-3 w-3 text-emerald-600 dark:text-emerald-400",
|
|
5916
5916
|
strokeWidth: 3
|
|
@@ -5924,15 +5924,15 @@ ${r}`).then(() => {
|
|
|
5924
5924
|
name: e.name,
|
|
5925
5925
|
isDefault: !!e.is_default,
|
|
5926
5926
|
roleId: e.default_for_role ?? null,
|
|
5927
|
-
onCollectionDefault: (t) =>
|
|
5928
|
-
onRoleDefault: (t) =>
|
|
5927
|
+
onCollectionDefault: (t) => qo.mutate({ id: e.id, on: t }),
|
|
5928
|
+
onRoleDefault: (t) => To.mutate({ id: e.id, role: t })
|
|
5929
5929
|
}
|
|
5930
5930
|
),
|
|
5931
5931
|
/* @__PURE__ */ n(
|
|
5932
5932
|
"button",
|
|
5933
5933
|
{
|
|
5934
5934
|
type: "button",
|
|
5935
|
-
onClick: () =>
|
|
5935
|
+
onClick: () => Lo.mutate(e.id),
|
|
5936
5936
|
title: "Delete view",
|
|
5937
5937
|
"aria-label": `Delete ${e.name}`,
|
|
5938
5938
|
className: "hover:text-red-500",
|
|
@@ -5944,7 +5944,7 @@ ${r}`).then(() => {
|
|
|
5944
5944
|
},
|
|
5945
5945
|
e.id
|
|
5946
5946
|
)),
|
|
5947
|
-
|
|
5947
|
+
As ? /* @__PURE__ */ c(
|
|
5948
5948
|
"form",
|
|
5949
5949
|
{
|
|
5950
5950
|
className: "flex items-center gap-1",
|
|
@@ -6000,14 +6000,14 @@ ${r}`).then(() => {
|
|
|
6000
6000
|
{
|
|
6001
6001
|
type: "button",
|
|
6002
6002
|
disabled: ll,
|
|
6003
|
-
onClick: () => void u.request(_e("/access-requests", { collection: a })).then(() =>
|
|
6003
|
+
onClick: () => void u.request(_e("/access-requests", { collection: a })).then(() => no(!0)).catch(() => {
|
|
6004
6004
|
}),
|
|
6005
6005
|
className: "h-7 shrink-0 rounded-md border border-red-300 px-2.5 text-[12px] font-medium hover:bg-red-100 disabled:opacity-60 dark:border-red-500/40 dark:hover:bg-red-900/20",
|
|
6006
6006
|
"data-request-access": !0,
|
|
6007
6007
|
children: ll ? "Requested — an admin was notified" : "Request access"
|
|
6008
6008
|
}
|
|
6009
6009
|
),
|
|
6010
|
-
|
|
6010
|
+
bs(He).map((e) => /* @__PURE__ */ c(
|
|
6011
6011
|
"button",
|
|
6012
6012
|
{
|
|
6013
6013
|
type: "button",
|
|
@@ -6025,7 +6025,7 @@ ${r}`).then(() => {
|
|
|
6025
6025
|
},
|
|
6026
6026
|
e
|
|
6027
6027
|
)),
|
|
6028
|
-
(He == null ? void 0 : He.status) !== 403 &&
|
|
6028
|
+
(He == null ? void 0 : He.status) !== 403 && bs(He).length === 0 && /* @__PURE__ */ n(
|
|
6029
6029
|
"button",
|
|
6030
6030
|
{
|
|
6031
6031
|
type: "button",
|
|
@@ -6126,13 +6126,13 @@ ${r}`).then(() => {
|
|
|
6126
6126
|
ref: ir("__checkbox__"),
|
|
6127
6127
|
className: "sticky left-0 top-0 z-[4] h-8 w-11 bg-slate-50 py-0 pl-1.5 pr-3 dark:bg-slate-800",
|
|
6128
6128
|
children: /* @__PURE__ */ c("span", { className: "flex items-center gap-1", children: [
|
|
6129
|
-
/* @__PURE__ */ n(
|
|
6129
|
+
/* @__PURE__ */ n(ys, { change: null }),
|
|
6130
6130
|
ht && /* @__PURE__ */ n(
|
|
6131
6131
|
"input",
|
|
6132
6132
|
{
|
|
6133
6133
|
type: "checkbox",
|
|
6134
6134
|
checked: rr,
|
|
6135
|
-
onChange:
|
|
6135
|
+
onChange: Oo,
|
|
6136
6136
|
"aria-label": "Select all"
|
|
6137
6137
|
}
|
|
6138
6138
|
)
|
|
@@ -6164,7 +6164,7 @@ ${r}`).then(() => {
|
|
|
6164
6164
|
ref: r ? ir(t) : void 0,
|
|
6165
6165
|
style: { ...Bl(t), ...Re(t) },
|
|
6166
6166
|
onClick: () => {
|
|
6167
|
-
g ||
|
|
6167
|
+
g || Mo(t);
|
|
6168
6168
|
},
|
|
6169
6169
|
className: `${l} relative ${_l(t) ? "text-right" : "text-left"} ${g ? "" : "cursor-pointer hover:text-slate-600"} ${s}`,
|
|
6170
6170
|
children: [
|
|
@@ -6186,14 +6186,14 @@ ${r}`).then(() => {
|
|
|
6186
6186
|
}
|
|
6187
6187
|
),
|
|
6188
6188
|
zl(t),
|
|
6189
|
-
|
|
6189
|
+
Jo(t)
|
|
6190
6190
|
]
|
|
6191
6191
|
},
|
|
6192
6192
|
t
|
|
6193
6193
|
);
|
|
6194
6194
|
})
|
|
6195
6195
|
] }),
|
|
6196
|
-
(
|
|
6196
|
+
(wo || In) && /* @__PURE__ */ c("tr", { className: "border-b border-slate-200 dark:border-slate-700", children: [
|
|
6197
6197
|
Lt && /* @__PURE__ */ n("th", { className: "sticky left-0 top-8 z-[4] w-11 bg-slate-50 py-1 pl-1.5 pr-3 dark:bg-slate-800" }),
|
|
6198
6198
|
nn.map((e) => {
|
|
6199
6199
|
var s;
|
|
@@ -6224,7 +6224,7 @@ ${r}`).then(() => {
|
|
|
6224
6224
|
value: (o == null ? void 0 : o.kind) === "fulfilment" ? o.value : "",
|
|
6225
6225
|
options: [
|
|
6226
6226
|
{ value: "", label: "All" },
|
|
6227
|
-
...
|
|
6227
|
+
...hs.filter(
|
|
6228
6228
|
(f) => f.value !== "complete" || !!(Oe != null && Oe.remaining_field)
|
|
6229
6229
|
)
|
|
6230
6230
|
],
|
|
@@ -6285,7 +6285,7 @@ ${r}`).then(() => {
|
|
|
6285
6285
|
value: f,
|
|
6286
6286
|
options: [
|
|
6287
6287
|
{ value: "", label: "All" },
|
|
6288
|
-
...
|
|
6288
|
+
...gs
|
|
6289
6289
|
],
|
|
6290
6290
|
onChange: (g) => Ie(
|
|
6291
6291
|
"__integrations__",
|
|
@@ -6336,7 +6336,7 @@ ${r}`).then(() => {
|
|
|
6336
6336
|
className: `${l} ${e.kind === "actions" ? "w-20" : ""}`
|
|
6337
6337
|
},
|
|
6338
6338
|
t
|
|
6339
|
-
) : /* @__PURE__ */ n("th", { style: Re(t), className: l, children:
|
|
6339
|
+
) : /* @__PURE__ */ n("th", { style: Re(t), className: l, children: yo(t) }, t);
|
|
6340
6340
|
})
|
|
6341
6341
|
] })
|
|
6342
6342
|
] }),
|
|
@@ -6346,7 +6346,7 @@ ${r}`).then(() => {
|
|
|
6346
6346
|
/* @__PURE__ */ n(
|
|
6347
6347
|
Dc,
|
|
6348
6348
|
{
|
|
6349
|
-
columns:
|
|
6349
|
+
columns: Bo,
|
|
6350
6350
|
rows: Math.min(ze, 20),
|
|
6351
6351
|
rowClassName: "h-8",
|
|
6352
6352
|
cellClassName: "px-3 py-1.5",
|
|
@@ -6381,7 +6381,7 @@ ${r}`).then(() => {
|
|
|
6381
6381
|
}
|
|
6382
6382
|
return He != null ? null : /* @__PURE__ */ c("div", { className: "flex flex-col items-center gap-2 text-center", children: [
|
|
6383
6383
|
/* @__PURE__ */ n("span", { className: "flex h-10 w-10 items-center justify-center rounded-full bg-slate-100 dark:bg-slate-800", children: /* @__PURE__ */ n(
|
|
6384
|
-
|
|
6384
|
+
qs,
|
|
6385
6385
|
{
|
|
6386
6386
|
"aria-hidden": !0,
|
|
6387
6387
|
className: "h-4.5 w-4.5 h-5 w-5 text-slate-400"
|
|
@@ -6407,7 +6407,7 @@ ${r}`).then(() => {
|
|
|
6407
6407
|
"button",
|
|
6408
6408
|
{
|
|
6409
6409
|
type: "button",
|
|
6410
|
-
onClick:
|
|
6410
|
+
onClick: ro,
|
|
6411
6411
|
className: "font-medium text-[#0284a8] underline-offset-2 hover:underline dark:text-nvr-cyan",
|
|
6412
6412
|
children: "Show all"
|
|
6413
6413
|
}
|
|
@@ -6462,12 +6462,12 @@ ${r}`).then(() => {
|
|
|
6462
6462
|
},
|
|
6463
6463
|
`__group__${e.gkey}`
|
|
6464
6464
|
);
|
|
6465
|
-
const l = e.row, s = l.id, o = Jt.includes(s), f = (B = Te == null ? void 0 : Te.instances) == null ? void 0 : B[String(s)], g =
|
|
6465
|
+
const l = e.row, s = l.id, o = Jt.includes(s), f = (B = Te == null ? void 0 : Te.instances) == null ? void 0 : B[String(s)], g = po[String(s)], x = Za == null ? void 0 : Za[String(s)], j = co.get(String(s)) ?? null, I = fo(a, s), $e = !o && g ? xd(g.color) : void 0, M = o ? "bg-[#e6fafe] dark:bg-[#0c2a33]" : $e ?? "bg-white group-hover:bg-[#f2fcff] dark:bg-slate-900 dark:group-hover:bg-[#0e2d3a]";
|
|
6466
6466
|
return /* @__PURE__ */ c(
|
|
6467
6467
|
"tr",
|
|
6468
6468
|
{
|
|
6469
|
-
...
|
|
6470
|
-
...
|
|
6469
|
+
...lo({ collection: a, id: String(s) }),
|
|
6470
|
+
...Do(s),
|
|
6471
6471
|
"data-row-key": String(s),
|
|
6472
6472
|
title: Et.titleFor(String(s)) ?? (j && !j.is_mine ? Xi(j) : void 0) ?? (g ? `At risk — ${g.rule}` : void 0) ?? (I ? Tc : void 0),
|
|
6473
6473
|
"data-picker-excluded": I ? "" : void 0,
|
|
@@ -6487,20 +6487,20 @@ ${r}`).then(() => {
|
|
|
6487
6487
|
isNew: Et.isNew(String(s)),
|
|
6488
6488
|
dataAttr: "data-cbv-live-mark"
|
|
6489
6489
|
}
|
|
6490
|
-
) : ml[
|
|
6490
|
+
) : ml[us(a, String(s))] ? /* @__PURE__ */ n(
|
|
6491
6491
|
Pc,
|
|
6492
6492
|
{
|
|
6493
|
-
viewers: ml[
|
|
6493
|
+
viewers: ml[us(a, String(s))],
|
|
6494
6494
|
dataAttr: "data-cbv-presence"
|
|
6495
6495
|
}
|
|
6496
|
-
) : /* @__PURE__ */ n(
|
|
6496
|
+
) : /* @__PURE__ */ n(ys, { change: x, dataAttr: "data-cbv-unseen" }),
|
|
6497
6497
|
/* @__PURE__ */ n(Ad, { rowId: s }),
|
|
6498
6498
|
ht && /* @__PURE__ */ n(
|
|
6499
6499
|
"input",
|
|
6500
6500
|
{
|
|
6501
6501
|
type: "checkbox",
|
|
6502
6502
|
checked: o,
|
|
6503
|
-
onChange: () =>
|
|
6503
|
+
onChange: () => Ao(s),
|
|
6504
6504
|
"aria-label": `Select ${s}`
|
|
6505
6505
|
}
|
|
6506
6506
|
)
|
|
@@ -6592,7 +6592,7 @@ ${r}`).then(() => {
|
|
|
6592
6592
|
className: `whitespace-nowrap px-3 py-1 ${st(p, "z-[1]", M)}`,
|
|
6593
6593
|
onClick: (T) => T.stopPropagation(),
|
|
6594
6594
|
children: /* @__PURE__ */ n(
|
|
6595
|
-
|
|
6595
|
+
vs,
|
|
6596
6596
|
{
|
|
6597
6597
|
users: (tr == null ? void 0 : tr[String(s)]) ?? [],
|
|
6598
6598
|
showSingleName: !1
|
|
@@ -6669,13 +6669,13 @@ ${r}`).then(() => {
|
|
|
6669
6669
|
);
|
|
6670
6670
|
}
|
|
6671
6671
|
if (H.kind === "formula") {
|
|
6672
|
-
const T =
|
|
6672
|
+
const T = Xs(l, p);
|
|
6673
6673
|
return /* @__PURE__ */ n(
|
|
6674
6674
|
"td",
|
|
6675
6675
|
{
|
|
6676
6676
|
style: Re(p),
|
|
6677
6677
|
"data-cbv-formula-cell": p,
|
|
6678
|
-
"data-tip":
|
|
6678
|
+
"data-tip": Zs(l, p),
|
|
6679
6679
|
className: `whitespace-nowrap px-3 py-1.5 text-right tabular-nums text-slate-700 dark:text-slate-200 ${st(p, "z-[1]", M)}`,
|
|
6680
6680
|
children: T == null ? /* @__PURE__ */ n("span", { className: "text-slate-300 dark:text-slate-600", children: "—" }) : Ne[p] ? xn(String(T), Ne[p]) : ct(Math.round(T * 100) / 100)
|
|
6681
6681
|
},
|
|
@@ -6708,7 +6708,7 @@ ${r}`).then(() => {
|
|
|
6708
6708
|
},
|
|
6709
6709
|
p
|
|
6710
6710
|
);
|
|
6711
|
-
const it = Ot(p) ?
|
|
6711
|
+
const it = Ot(p) ? go(s, p) : null, We = Ot(p) ? null : at(Qe, a, p);
|
|
6712
6712
|
return /* @__PURE__ */ n(
|
|
6713
6713
|
"td",
|
|
6714
6714
|
{
|
|
@@ -6723,7 +6723,7 @@ ${r}`).then(() => {
|
|
|
6723
6723
|
});
|
|
6724
6724
|
},
|
|
6725
6725
|
className: `whitespace-nowrap px-3 py-1.5 ${_l(p) ? "text-right" : ""} ${st(p, "z-[1]", M)}`,
|
|
6726
|
-
children:
|
|
6726
|
+
children: Js(
|
|
6727
6727
|
l,
|
|
6728
6728
|
p,
|
|
6729
6729
|
!!j && !j.is_mine,
|
|
@@ -6733,10 +6733,10 @@ ${r}`).then(() => {
|
|
|
6733
6733
|
if (Ye.length === 0 || !V || V === "—")
|
|
6734
6734
|
return /* @__PURE__ */ n("span", { className: "text-[12px] text-slate-300", children: "—" });
|
|
6735
6735
|
if (Ye.length === 1)
|
|
6736
|
-
return /* @__PURE__ */ n("span", { onClick: (dt) => dt.stopPropagation(), children: /* @__PURE__ */ n(
|
|
6736
|
+
return /* @__PURE__ */ n("span", { onClick: (dt) => dt.stopPropagation(), children: /* @__PURE__ */ n(ks, { userId: String(Ye[0]), size: "compact" }) });
|
|
6737
6737
|
const ge = V.split(", ");
|
|
6738
6738
|
return /* @__PURE__ */ n(
|
|
6739
|
-
|
|
6739
|
+
vs,
|
|
6740
6740
|
{
|
|
6741
6741
|
users: Ye.map((dt, ua) => ({
|
|
6742
6742
|
id: String(dt),
|
|
@@ -6768,7 +6768,7 @@ ${r}`).then(() => {
|
|
|
6768
6768
|
"data-tip": xt(s, p) ?? void 0,
|
|
6769
6769
|
children: xt(s, p) != null ? `${((Y = Ne[p]) == null ? void 0 : Y.type) === "count" && Nl(p) ? "📎 " : ""}${hn(xt(s, p) ?? "", p, s)}` : /* @__PURE__ */ n("span", { className: "inline-block h-3.5 w-16 animate-pulse rounded bg-slate-100 dark:bg-[hsl(var(--nvr-skeleton))]" })
|
|
6770
6770
|
}
|
|
6771
|
-
) : (We == null ? void 0 : We.one_collection) === "nivaro_users" && l[p] != null ? /* @__PURE__ */ n("span", { onClick: (T) => T.stopPropagation(), children: /* @__PURE__ */ n(
|
|
6771
|
+
) : (We == null ? void 0 : We.one_collection) === "nivaro_users" && l[p] != null ? /* @__PURE__ */ n("span", { onClick: (T) => T.stopPropagation(), children: /* @__PURE__ */ n(ks, { userId: String(l[p]), size: "compact" }) }) : We != null && We.one_collection && l[p] != null && !Ct(We.one_collection) ? /* @__PURE__ */ n(
|
|
6772
6772
|
"button",
|
|
6773
6773
|
{
|
|
6774
6774
|
type: "button",
|
|
@@ -6789,7 +6789,7 @@ ${r}`).then(() => {
|
|
|
6789
6789
|
}
|
|
6790
6790
|
)
|
|
6791
6791
|
}
|
|
6792
|
-
) : p === "id" &&
|
|
6792
|
+
) : p === "id" && ps(A, l) ? (
|
|
6793
6793
|
// #776 — the readable id; the internal one on hover.
|
|
6794
6794
|
/* @__PURE__ */ n(
|
|
6795
6795
|
"span",
|
|
@@ -6797,7 +6797,7 @@ ${r}`).then(() => {
|
|
|
6797
6797
|
"data-record-ref": !0,
|
|
6798
6798
|
"data-tip": `#${String(l.id)}`,
|
|
6799
6799
|
className: "font-mono text-[12px] text-slate-700 dark:text-slate-200",
|
|
6800
|
-
children:
|
|
6800
|
+
children: ps(A, l)
|
|
6801
6801
|
}
|
|
6802
6802
|
)
|
|
6803
6803
|
) : Ne[p] && l[p] != null ? /* @__PURE__ */ n(
|
|
@@ -6805,7 +6805,7 @@ ${r}`).then(() => {
|
|
|
6805
6805
|
{
|
|
6806
6806
|
className: Ut(
|
|
6807
6807
|
"text-[12px] tabular-nums text-slate-700 dark:text-slate-200",
|
|
6808
|
-
ma(l[p], Ge[p]) &&
|
|
6808
|
+
ma(l[p], Ge[p]) && _s[ma(l[p], Ge[p])]
|
|
6809
6809
|
),
|
|
6810
6810
|
children: xn(String(l[p]), Ne[p])
|
|
6811
6811
|
}
|
|
@@ -6814,10 +6814,10 @@ ${r}`).then(() => {
|
|
|
6814
6814
|
{
|
|
6815
6815
|
className: Ut(
|
|
6816
6816
|
"text-[12px]",
|
|
6817
|
-
|
|
6817
|
+
_s[ma(l[p], Ge[p])]
|
|
6818
6818
|
),
|
|
6819
6819
|
children: /* @__PURE__ */ n(
|
|
6820
|
-
|
|
6820
|
+
Ns,
|
|
6821
6821
|
{
|
|
6822
6822
|
collection: a,
|
|
6823
6823
|
field: p,
|
|
@@ -6828,7 +6828,7 @@ ${r}`).then(() => {
|
|
|
6828
6828
|
)
|
|
6829
6829
|
}
|
|
6830
6830
|
) : /* @__PURE__ */ n(
|
|
6831
|
-
|
|
6831
|
+
Ns,
|
|
6832
6832
|
{
|
|
6833
6833
|
collection: a,
|
|
6834
6834
|
field: p,
|
|
@@ -6846,7 +6846,7 @@ ${r}`).then(() => {
|
|
|
6846
6846
|
},
|
|
6847
6847
|
String(s)
|
|
6848
6848
|
);
|
|
6849
|
-
}) },
|
|
6849
|
+
}) }, ao),
|
|
6850
6850
|
ja && Object.keys(ja).length > 0 && !ue && /* @__PURE__ */ n("tfoot", { className: "text-[12px] tabular-nums", children: /* @__PURE__ */ c("tr", { className: "sticky bottom-0 z-[2] border-t-2 border-slate-200 bg-slate-50 font-medium dark:border-slate-700 dark:bg-slate-800", children: [
|
|
6851
6851
|
Lt && /* @__PURE__ */ n("td", { className: "sticky left-0 z-[3] w-11 bg-slate-50 py-1.5 pl-1.5 pr-3 dark:bg-slate-800" }),
|
|
6852
6852
|
nn.map((e, t) => {
|
|
@@ -6892,9 +6892,9 @@ ${r}`).then(() => {
|
|
|
6892
6892
|
!ue && !Pe && (en ? O > 1 || ye.length >= ze : Fe > ze) && /* @__PURE__ */ c("div", { className: "flex shrink-0 items-center justify-between border-t border-slate-100 bg-white px-3 py-2 dark:border-slate-800 dark:bg-slate-900", children: [
|
|
6893
6893
|
/* @__PURE__ */ c("p", { className: "text-[12px] tabular-nums text-slate-500 dark:text-slate-400", children: [
|
|
6894
6894
|
/* @__PURE__ */ c("span", { className: "font-semibold text-slate-700 dark:text-slate-200", children: [
|
|
6895
|
-
ct(
|
|
6895
|
+
ct(Ko),
|
|
6896
6896
|
"–",
|
|
6897
|
-
ct(
|
|
6897
|
+
ct(jo)
|
|
6898
6898
|
] }),
|
|
6899
6899
|
" ",
|
|
6900
6900
|
"of",
|
|
@@ -7005,7 +7005,7 @@ ${r}`).then(() => {
|
|
|
7005
7005
|
{
|
|
7006
7006
|
type: "button",
|
|
7007
7007
|
disabled: Pl,
|
|
7008
|
-
onClick: () => void
|
|
7008
|
+
onClick: () => void Io(),
|
|
7009
7009
|
className: "font-semibold text-nvr-navy underline decoration-dotted hover:text-nvr-cyan dark:text-nvr-cyan",
|
|
7010
7010
|
children: Pl ? "Selecting…" : Fe > ca ? `Select the first ${ca.toLocaleString()} of ${Fe.toLocaleString()} matching` : `Select all ${Fe.toLocaleString()} matching rows`
|
|
7011
7011
|
}
|
|
@@ -7040,7 +7040,7 @@ export {
|
|
|
7040
7040
|
Up as CollectionBrowserView,
|
|
7041
7041
|
wa as MultiPick,
|
|
7042
7042
|
Hc as RowActionsMenu,
|
|
7043
|
-
|
|
7043
|
+
_s as TINT_TEXT,
|
|
7044
7044
|
ha as invalidateCbvRowQueries,
|
|
7045
7045
|
Vc as roleMayDelete,
|
|
7046
7046
|
Wc as roleMayUpdate,
|