@jielga/tmdatagrid 2.0.0 → 2.1.0
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/index.d.ts +11 -1
- package/dist/index.js +673 -670
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/docs/columns.md +2 -1
- package/docs/row-details.md +15 -6
- package/docs/styling.md +2 -1
- package/docs/use-tm-data-grid.md +4 -1
- package/package.json +1 -1
- package/skills/appearance/SKILL.md +3 -1
- package/skills/cell-selection/SKILL.md +5 -3
- package/skills/columns/SKILL.md +43 -43
- package/skills/columns/references/columns-api.md +59 -0
- package/skills/data/SKILL.md +27 -3
- package/skills/editing/SKILL.md +10 -3
- package/skills/editing/references/editing-api.md +5 -3
- package/skills/editing/references/editors-and-validation.md +56 -1
- package/skills/filtering/SKILL.md +11 -5
- package/skills/getting-started/SKILL.md +103 -5
- package/skills/grouping/SKILL.md +1 -1
- package/skills/migrating-to-2/SKILL.md +244 -0
- package/skills/options/SKILL.md +18 -6
- package/skills/rows/SKILL.md +9 -8
- package/skills/rows/references/rows-api.md +14 -8
- package/skills/server-side/SKILL.md +1 -1
- package/skills/testing/SKILL.md +1 -1
- package/skills/testing-components/SKILL.md +1 -1
- package/skills/testing-editing/SKILL.md +1 -1
- package/src/components/TMDataGrid.module.css +5 -0
- package/src/components/TMDataGridHeaderCell.module.css +1 -1
- package/src/components/generatedColumns.tsx +8 -6
- package/src/useTMDataGrid.tsx +64 -58
package/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import { c as e } from "react/compiler-runtime";
|
|
|
2
2
|
import { createContext as t, useCallback as n, useContext as r, useEffect as i, useLayoutEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
3
3
|
import { ActionIcon as l, Autocomplete as u, Box as d, Button as f, Checkbox as p, Group as m, Input as h, Loader as g, Menu as _, Modal as v, MultiSelect as y, NumberInput as b, Pill as x, RangeSlider as S, ScrollArea as C, SegmentedControl as w, Select as T, Stack as E, Text as D, TextInput as O, Tooltip as k, UnstyledButton as A } from "@mantine/core";
|
|
4
4
|
import { useCreateStore as j, useSelector as M } from "@tanstack/react-store";
|
|
5
|
-
import { IconArrowAutofitWidth as N, IconArrowBackUp as P, IconArrowBarToLeft as F, IconArrowBarToRight as I, IconArrowDown as L, IconArrowLeft as R, IconArrowRight as z, IconArrowUp as B, IconCheck as V, IconChevronLeft as H, IconChevronRight as U, IconColumns3 as W, IconDotsVertical as ee, IconDownload as G, IconEyeOff as te, IconFilter as ne, IconFoldDown as re, IconFoldUp as ie, IconIndentDecrease as ae, IconIndentIncrease as oe, IconMenu2 as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { FieldApi as
|
|
5
|
+
import { IconArrowAutofitWidth as N, IconArrowBackUp as P, IconArrowBarToLeft as F, IconArrowBarToRight as I, IconArrowDown as L, IconArrowLeft as R, IconArrowRight as z, IconArrowUp as B, IconCheck as V, IconChevronLeft as H, IconChevronRight as U, IconColumns3 as W, IconDotsVertical as ee, IconDownload as G, IconEyeOff as te, IconFilter as ne, IconFoldDown as re, IconFoldUp as ie, IconIndentDecrease as ae, IconIndentIncrease as oe, IconMenu2 as K, IconPencil as q, IconPinnedOff as se, IconPlus as J, IconSearch as ce, IconTrash as le, IconX as ue } from "@tabler/icons-react";
|
|
6
|
+
import { Fragment as de, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
7
|
+
import { FieldApi as fe, FormApi as Z, getBy as pe, useStore as me } from "@tanstack/react-form";
|
|
8
8
|
import { Store as he, shallow as ge } from "@tanstack/store";
|
|
9
9
|
import { aggregationFns as _e, columnFacetingFeature as ve, columnFilteringFeature as ye, columnGroupingFeature as be, columnOrderingFeature as xe, columnPinningFeature as Se, columnResizingFeature as Ce, columnSizingFeature as we, columnVisibilityFeature as Te, createColumnHelper as Ee, createExpandedRowModel as De, createFacetedMinMaxValues as Oe, createFacetedRowModel as ke, createFacetedUniqueValues as Ae, createFilteredRowModel as je, createGroupedRowModel as Q, createPaginatedRowModel as Me, createSortedRowModel as Ne, filterFns as Pe, flexRender as Fe, functionalUpdate as Ie, globalFilteringFeature as Le, makeStateUpdater as Re, metaHelper as ze, rowAggregationFeature as Be, rowExpandingFeature as Ve, rowPaginationFeature as He, rowPinningFeature as Ue, rowSelectionFeature as We, rowSortingFeature as Ge, sortFns as Ke, tableFeatures as qe, useTable as Je } from "@tanstack/react-table";
|
|
10
10
|
import { compareItems as Ye, rankItem as Xe } from "@tanstack/match-sorter-utils";
|
|
11
11
|
import { useVirtualizer as Ze } from "@tanstack/react-virtual";
|
|
12
|
-
var Qe = { root: "
|
|
12
|
+
var Qe = { root: "_root_wlqnb_8" }, $e = {
|
|
13
13
|
columnsPanel: "_columnsPanel_a5do5_1",
|
|
14
14
|
columnsPanelSearch: "_columnsPanelSearch_a5do5_7",
|
|
15
15
|
columnsPanelList: "_columnsPanelList_a5do5_11",
|
|
@@ -240,18 +240,18 @@ function It(t) {
|
|
|
240
240
|
e.stopPropagation(), r.toggleExpanded();
|
|
241
241
|
}, n[2] = r, n[3] = l);
|
|
242
242
|
let u = s || void 0, d;
|
|
243
|
-
n[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */
|
|
243
|
+
n[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ Y(U, {
|
|
244
244
|
size: 16,
|
|
245
245
|
stroke: 1.6
|
|
246
246
|
}), n[4] = d) : d = n[4];
|
|
247
247
|
let f;
|
|
248
|
-
n[5] === u ? f = n[6] : (f = /* @__PURE__ */
|
|
248
|
+
n[5] === u ? f = n[6] : (f = /* @__PURE__ */ Y("span", {
|
|
249
249
|
className: At.chevron,
|
|
250
250
|
"data-expanded": u,
|
|
251
251
|
children: d
|
|
252
252
|
}), n[5] = u, n[6] = f);
|
|
253
253
|
let p;
|
|
254
|
-
return n[7] !== s || n[8] !== r.id || n[9] !== c || n[10] !== l || n[11] !== f || n[12] !== a ? (p = /* @__PURE__ */
|
|
254
|
+
return n[7] !== s || n[8] !== r.id || n[9] !== c || n[10] !== l || n[11] !== f || n[12] !== a ? (p = /* @__PURE__ */ Y(A, {
|
|
255
255
|
className: At.detailsToggle,
|
|
256
256
|
tabIndex: a,
|
|
257
257
|
"aria-expanded": s,
|
|
@@ -279,18 +279,18 @@ function Lt(t) {
|
|
|
279
279
|
expand: !c
|
|
280
280
|
})), n[4] = c, n[5] = o, n[6] = r, n[7] = u) : u = n[7];
|
|
281
281
|
let d = c || void 0, f;
|
|
282
|
-
n[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
282
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ Y(U, {
|
|
283
283
|
size: 16,
|
|
284
284
|
stroke: 1.6
|
|
285
285
|
}), n[8] = f) : f = n[8];
|
|
286
286
|
let p;
|
|
287
|
-
n[9] === d ? p = n[10] : (p = /* @__PURE__ */
|
|
287
|
+
n[9] === d ? p = n[10] : (p = /* @__PURE__ */ Y("span", {
|
|
288
288
|
className: At.chevron,
|
|
289
289
|
"data-expanded": d,
|
|
290
290
|
children: f
|
|
291
291
|
}), n[9] = d, n[10] = p);
|
|
292
292
|
let m;
|
|
293
|
-
return n[11] !== c || n[12] !== l || n[13] !== u || n[14] !== p ? (m = /* @__PURE__ */
|
|
293
|
+
return n[11] !== c || n[12] !== l || n[13] !== u || n[14] !== p ? (m = /* @__PURE__ */ Y(A, {
|
|
294
294
|
className: At.detailsToggle,
|
|
295
295
|
"aria-expanded": c,
|
|
296
296
|
"aria-label": l,
|
|
@@ -441,7 +441,7 @@ function $t(e) {
|
|
|
441
441
|
if (n === null) continue;
|
|
442
442
|
let a = en(t.columnDef.meta?.edit?.validate);
|
|
443
443
|
if (a === void 0) continue;
|
|
444
|
-
let o =
|
|
444
|
+
let o = pe(e, n);
|
|
445
445
|
for (let e of Xt) {
|
|
446
446
|
let t = a[e];
|
|
447
447
|
if (t === void 0) continue;
|
|
@@ -542,7 +542,7 @@ function $t(e) {
|
|
|
542
542
|
for (let r of s()) {
|
|
543
543
|
let i = Ut(r);
|
|
544
544
|
if (i === null) continue;
|
|
545
|
-
let a =
|
|
545
|
+
let a = pe(e, i), o = pe(t, i);
|
|
546
546
|
qt(a, o) || n.push({
|
|
547
547
|
columnId: r.id,
|
|
548
548
|
field: i,
|
|
@@ -559,7 +559,7 @@ function $t(e) {
|
|
|
559
559
|
field: e,
|
|
560
560
|
message: Yt(n) ?? ""
|
|
561
561
|
}] : [];
|
|
562
|
-
}), i = e.submitErrors.filter((e) => !r.some((t) => t.field === e.field) && qt(
|
|
562
|
+
}), i = e.submitErrors.filter((e) => !r.some((t) => t.field === e.field) && qt(pe(n, e.field), e.value)), a = [...r, ...i.map(({ field: e, message: t }) => ({
|
|
563
563
|
field: e,
|
|
564
564
|
message: t
|
|
565
565
|
}))];
|
|
@@ -672,7 +672,7 @@ function $t(e) {
|
|
|
672
672
|
parkOnly: !1,
|
|
673
673
|
pendingCommit: null,
|
|
674
674
|
unsubscribe: () => {},
|
|
675
|
-
form: new
|
|
675
|
+
form: new Z({
|
|
676
676
|
defaultValues: r,
|
|
677
677
|
validators: p(t, i),
|
|
678
678
|
onSubmit: async ({ value: n }) => {
|
|
@@ -726,7 +726,7 @@ function $t(e) {
|
|
|
726
726
|
let o = i?.values ?? a.form.state.values, s = typeof t == "object" && t ? t : void 0, c = s !== void 0 && ("fields" in s || "form" in s), l = c ? s.fields : void 0, u = c ? s.form : t;
|
|
727
727
|
l !== void 0 && (a.submitErrors = Object.entries(l).flatMap(([e, t]) => Zt(t) ? [{
|
|
728
728
|
field: e,
|
|
729
|
-
value:
|
|
729
|
+
value: pe(o, e),
|
|
730
730
|
message: Yt(t) ?? ""
|
|
731
731
|
}] : [])), Zt(u) && a.form.setErrorMap({ onSubmit: u }), O(e);
|
|
732
732
|
}, R = (t) => t.getIsGrouped() || _.deletedRowIds.has(t.id) ? !1 : e().isRowEditable?.(t) !== !1, z = (t, n) => {
|
|
@@ -745,7 +745,7 @@ function $t(e) {
|
|
|
745
745
|
let r = n.errors, i = Jt(r) ? Yt(r) : void 0;
|
|
746
746
|
return i === void 0 ? [] : [{
|
|
747
747
|
field: e,
|
|
748
|
-
value:
|
|
748
|
+
value: pe(t, e),
|
|
749
749
|
message: i
|
|
750
750
|
}];
|
|
751
751
|
});
|
|
@@ -854,28 +854,28 @@ function $t(e) {
|
|
|
854
854
|
rowId: t,
|
|
855
855
|
row: o
|
|
856
856
|
});
|
|
857
|
-
},
|
|
857
|
+
}, K = (e) => {
|
|
858
858
|
D(() => {
|
|
859
859
|
for (let t of e) oe(t);
|
|
860
860
|
});
|
|
861
|
-
},
|
|
861
|
+
}, q = (e) => {
|
|
862
862
|
_.deletedRowIds.delete(e) && T("deletedRowIds");
|
|
863
|
-
},
|
|
863
|
+
}, se = () => {
|
|
864
864
|
let t = e();
|
|
865
865
|
return t.draft ? t.onRowDelete !== void 0 || t.onSaveDrafts !== void 0 : t.onRowDelete !== void 0;
|
|
866
|
-
},
|
|
866
|
+
}, J = () => [..._.openRowIds].filter((e) => r.has(e)), ce = async () => {
|
|
867
867
|
let e = [...n.keys()];
|
|
868
868
|
return Gt(e, await E(() => Promise.all(e.map((e) => H(e)))));
|
|
869
|
-
},
|
|
870
|
-
|
|
871
|
-
})),
|
|
869
|
+
}, le = null, ue = () => (le === null && (le = Y().finally(() => {
|
|
870
|
+
le = null, _.isSaving && (_.isSaving = !1, T("isSaving"));
|
|
871
|
+
})), le), de = (t, n) => ({
|
|
872
872
|
rowId: t,
|
|
873
873
|
value: n.values,
|
|
874
874
|
original: n.original,
|
|
875
875
|
changes: m(n.original, n.values),
|
|
876
876
|
source: e().editMode
|
|
877
|
-
}),
|
|
878
|
-
let t = [..._.deletedRowIds], n =
|
|
877
|
+
}), Y = async () => {
|
|
878
|
+
let t = [..._.deletedRowIds], n = J().filter((e) => !_.deletedRowIds.has(e)), i = [], a = [], o = [], s = () => ({
|
|
879
879
|
ok: a.length === 0 && o.length === 0,
|
|
880
880
|
saved: i,
|
|
881
881
|
kept: a,
|
|
@@ -894,7 +894,7 @@ function $t(e) {
|
|
|
894
894
|
n.isNew ? await e().onRowAdd?.({
|
|
895
895
|
tempId: t,
|
|
896
896
|
value: n.values
|
|
897
|
-
}) : await e().onEditCommit?.(
|
|
897
|
+
}) : await e().onEditCommit?.(de(t, n));
|
|
898
898
|
} catch (e) {
|
|
899
899
|
return L(t, e instanceof Error ? e.message : String(e)), "reopened";
|
|
900
900
|
}
|
|
@@ -941,7 +941,7 @@ function $t(e) {
|
|
|
941
941
|
}), i.isNew ? f.push({
|
|
942
942
|
tempId: t,
|
|
943
943
|
value: i.values
|
|
944
|
-
}) : l.push(
|
|
944
|
+
}) : l.push(de(t, i));
|
|
945
945
|
}
|
|
946
946
|
});
|
|
947
947
|
});
|
|
@@ -972,7 +972,7 @@ function $t(e) {
|
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
974
|
return s();
|
|
975
|
-
},
|
|
975
|
+
}, X = async (e, t) => {
|
|
976
976
|
let i = B(e);
|
|
977
977
|
if (i === void 0 || _.deletedRowIds.has(e)) return !1;
|
|
978
978
|
if (t.length === 0) return !0;
|
|
@@ -984,7 +984,7 @@ function $t(e) {
|
|
|
984
984
|
let t = I(e);
|
|
985
985
|
return t !== void 0 && a(t);
|
|
986
986
|
}) : a(F(e, i.original, !1)) : a(o);
|
|
987
|
-
},
|
|
987
|
+
}, fe = (t, n) => {
|
|
988
988
|
let r = B(t), i = e().table.getColumn(n);
|
|
989
989
|
return r === void 0 || i === void 0 || !z(r, i) ? null : Ut(i);
|
|
990
990
|
};
|
|
@@ -1030,18 +1030,18 @@ function $t(e) {
|
|
|
1030
1030
|
cancel: ee,
|
|
1031
1031
|
deactivate: G,
|
|
1032
1032
|
cancelAll: te,
|
|
1033
|
-
commitAll:
|
|
1034
|
-
saveDrafts:
|
|
1033
|
+
commitAll: ce,
|
|
1034
|
+
saveDrafts: ue,
|
|
1035
1035
|
clearCell: async (t, n) => {
|
|
1036
|
-
let r = e().table.getColumn(n), i =
|
|
1037
|
-
return i === null || r === void 0 ? !1 :
|
|
1036
|
+
let r = e().table.getColumn(n), i = fe(t, n);
|
|
1037
|
+
return i === null || r === void 0 ? !1 : X(t, [{
|
|
1038
1038
|
field: i,
|
|
1039
1039
|
value: Wt(r.columnDef.meta?.type ?? "string")
|
|
1040
1040
|
}]);
|
|
1041
1041
|
},
|
|
1042
1042
|
setCellValue: async (e, t, n) => {
|
|
1043
|
-
let r =
|
|
1044
|
-
return r !== null &&
|
|
1043
|
+
let r = fe(e, t);
|
|
1044
|
+
return r !== null && X(e, [{
|
|
1045
1045
|
field: r,
|
|
1046
1046
|
value: n
|
|
1047
1047
|
}]);
|
|
@@ -1049,21 +1049,21 @@ function $t(e) {
|
|
|
1049
1049
|
setRowValues: async (e, t) => {
|
|
1050
1050
|
let n = [];
|
|
1051
1051
|
for (let [r, i] of Object.entries(t)) {
|
|
1052
|
-
let t =
|
|
1052
|
+
let t = fe(e, r);
|
|
1053
1053
|
if (t === null) return !1;
|
|
1054
1054
|
n.push({
|
|
1055
1055
|
field: t,
|
|
1056
1056
|
value: i
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
1059
|
-
return
|
|
1059
|
+
return X(e, n);
|
|
1060
1060
|
},
|
|
1061
1061
|
addRow: re,
|
|
1062
1062
|
addRows: ae,
|
|
1063
1063
|
deleteRow: oe,
|
|
1064
|
-
deleteRows:
|
|
1065
|
-
restoreRow:
|
|
1066
|
-
canDeleteRows:
|
|
1064
|
+
deleteRows: K,
|
|
1065
|
+
restoreRow: q,
|
|
1066
|
+
canDeleteRows: se
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
1069
|
function en(e) {
|
|
@@ -1073,13 +1073,13 @@ function en(e) {
|
|
|
1073
1073
|
//#region src/components/TMDataGridEditColumn.tsx
|
|
1074
1074
|
var tn = "__edit__";
|
|
1075
1075
|
function nn(t) {
|
|
1076
|
-
let n = e(11), { state: r, rowId: i, label: a, error: o } = t, s = r === "new" ?
|
|
1077
|
-
n[0] === s ? u = n[1] : (u = /* @__PURE__ */
|
|
1076
|
+
let n = e(11), { state: r, rowId: i, label: a, error: o } = t, s = r === "new" ? J : r === "edited" ? q : le, c = o ?? a, l = o !== null || void 0, u;
|
|
1077
|
+
n[0] === s ? u = n[1] : (u = /* @__PURE__ */ Y(s, {
|
|
1078
1078
|
size: 16,
|
|
1079
1079
|
stroke: 1.6
|
|
1080
1080
|
}), n[0] = s, n[1] = u);
|
|
1081
1081
|
let d;
|
|
1082
|
-
n[2] !== a || n[3] !== i || n[4] !== r || n[5] !== l || n[6] !== u ? (d = /* @__PURE__ */
|
|
1082
|
+
n[2] !== a || n[3] !== i || n[4] !== r || n[5] !== l || n[6] !== u ? (d = /* @__PURE__ */ Y("span", {
|
|
1083
1083
|
role: "img",
|
|
1084
1084
|
"aria-label": a,
|
|
1085
1085
|
"data-dg-part": "row-state",
|
|
@@ -1090,7 +1090,7 @@ function nn(t) {
|
|
|
1090
1090
|
children: u
|
|
1091
1091
|
}), n[2] = a, n[3] = i, n[4] = r, n[5] = l, n[6] = u, n[7] = d) : d = n[7];
|
|
1092
1092
|
let f;
|
|
1093
|
-
return n[8] !== c || n[9] !== d ? (f = /* @__PURE__ */
|
|
1093
|
+
return n[8] !== c || n[9] !== d ? (f = /* @__PURE__ */ Y(k, {
|
|
1094
1094
|
label: c,
|
|
1095
1095
|
withArrow: !0,
|
|
1096
1096
|
children: d
|
|
@@ -1114,10 +1114,10 @@ function rn(t) {
|
|
|
1114
1114
|
let w = p !== void 0 && (p.hasRowError || p.errorFields.length > 0), T;
|
|
1115
1115
|
n[12] !== i || n[13] !== w || n[14] !== o || n[15] !== p || n[16] !== c ? (T = w ? Yt(i.getForm(c)?.state.errors ?? []) ?? p.errorMessages[0]?.message ?? o.editRowErrors : null, n[12] = i, n[13] = w, n[14] = o, n[15] = p, n[16] = c, n[17] = T) : T = n[17];
|
|
1116
1116
|
let E = T, D;
|
|
1117
|
-
n[18] !== i || n[19] !== o || n[20] !== c || n[21] !== s ? (D = i.canDeleteRows() ? /* @__PURE__ */
|
|
1117
|
+
n[18] !== i || n[19] !== o || n[20] !== c || n[21] !== s ? (D = i.canDeleteRows() ? /* @__PURE__ */ Y(k, {
|
|
1118
1118
|
label: o.deleteRow,
|
|
1119
1119
|
withArrow: !0,
|
|
1120
|
-
children: /* @__PURE__ */
|
|
1120
|
+
children: /* @__PURE__ */ Y(l, {
|
|
1121
1121
|
variant: "subtle",
|
|
1122
1122
|
color: "gray",
|
|
1123
1123
|
size: "sm",
|
|
@@ -1128,7 +1128,7 @@ function rn(t) {
|
|
|
1128
1128
|
onClick: (e) => {
|
|
1129
1129
|
e.stopPropagation(), i.deleteRow(c);
|
|
1130
1130
|
},
|
|
1131
|
-
children: /* @__PURE__ */
|
|
1131
|
+
children: /* @__PURE__ */ Y(le, {
|
|
1132
1132
|
size: 16,
|
|
1133
1133
|
stroke: 1.6
|
|
1134
1134
|
})
|
|
@@ -1138,7 +1138,7 @@ function rn(t) {
|
|
|
1138
1138
|
if (_) {
|
|
1139
1139
|
if (y) {
|
|
1140
1140
|
let e;
|
|
1141
|
-
n[23] !== o.rowStateNew || n[24] !== E || n[25] !== c ? (e = /* @__PURE__ */
|
|
1141
|
+
n[23] !== o.rowStateNew || n[24] !== E || n[25] !== c ? (e = /* @__PURE__ */ Y(nn, {
|
|
1142
1142
|
state: "new",
|
|
1143
1143
|
rowId: c,
|
|
1144
1144
|
label: o.rowStateNew,
|
|
@@ -1152,12 +1152,12 @@ function rn(t) {
|
|
|
1152
1152
|
});
|
|
1153
1153
|
}, n[27] = i, n[28] = c, n[29] = t) : t = n[29];
|
|
1154
1154
|
let r;
|
|
1155
|
-
n[30] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
1155
|
+
n[30] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ Y(q, {
|
|
1156
1156
|
size: 16,
|
|
1157
1157
|
stroke: 1.6
|
|
1158
1158
|
}), n[30] = r) : r = n[30];
|
|
1159
1159
|
let a;
|
|
1160
|
-
n[31] !== o.editRow || n[32] !== c || n[33] !== t || n[34] !== s ? (a = /* @__PURE__ */
|
|
1160
|
+
n[31] !== o.editRow || n[32] !== c || n[33] !== t || n[34] !== s ? (a = /* @__PURE__ */ Y(l, {
|
|
1161
1161
|
variant: "subtle",
|
|
1162
1162
|
color: "gray",
|
|
1163
1163
|
size: "sm",
|
|
@@ -1169,7 +1169,7 @@ function rn(t) {
|
|
|
1169
1169
|
children: r
|
|
1170
1170
|
}), n[31] = o.editRow, n[32] = c, n[33] = t, n[34] = s, n[35] = a) : a = n[35];
|
|
1171
1171
|
let u;
|
|
1172
|
-
n[36] !== o.editRow || n[37] !== a ? (u = /* @__PURE__ */
|
|
1172
|
+
n[36] !== o.editRow || n[37] !== a ? (u = /* @__PURE__ */ Y(k, {
|
|
1173
1173
|
label: o.editRow,
|
|
1174
1174
|
withArrow: !0,
|
|
1175
1175
|
children: a
|
|
@@ -1177,12 +1177,12 @@ function rn(t) {
|
|
|
1177
1177
|
let d;
|
|
1178
1178
|
n[39] !== i || n[40] !== c ? (d = () => i.cancel(c), n[39] = i, n[40] = c, n[41] = d) : d = n[41];
|
|
1179
1179
|
let f;
|
|
1180
|
-
n[42] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
1180
|
+
n[42] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ Y(ue, {
|
|
1181
1181
|
size: 16,
|
|
1182
1182
|
stroke: 1.6
|
|
1183
1183
|
}), n[42] = f) : f = n[42];
|
|
1184
1184
|
let p;
|
|
1185
|
-
n[43] !== o.discardNewRow || n[44] !== c || n[45] !== d || n[46] !== s ? (p = /* @__PURE__ */
|
|
1185
|
+
n[43] !== o.discardNewRow || n[44] !== c || n[45] !== d || n[46] !== s ? (p = /* @__PURE__ */ Y(l, {
|
|
1186
1186
|
variant: "subtle",
|
|
1187
1187
|
color: "gray",
|
|
1188
1188
|
size: "sm",
|
|
@@ -1194,13 +1194,13 @@ function rn(t) {
|
|
|
1194
1194
|
children: f
|
|
1195
1195
|
}), n[43] = o.discardNewRow, n[44] = c, n[45] = d, n[46] = s, n[47] = p) : p = n[47];
|
|
1196
1196
|
let h;
|
|
1197
|
-
n[48] !== o.discardNewRow || n[49] !== p ? (h = /* @__PURE__ */
|
|
1197
|
+
n[48] !== o.discardNewRow || n[49] !== p ? (h = /* @__PURE__ */ Y(k, {
|
|
1198
1198
|
label: o.discardNewRow,
|
|
1199
1199
|
withArrow: !0,
|
|
1200
1200
|
children: p
|
|
1201
1201
|
}), n[48] = o.discardNewRow, n[49] = p, n[50] = h) : h = n[50];
|
|
1202
1202
|
let g;
|
|
1203
|
-
return n[51] !== u || n[52] !== h || n[53] !== e ? (g = /* @__PURE__ */
|
|
1203
|
+
return n[51] !== u || n[52] !== h || n[53] !== e ? (g = /* @__PURE__ */ X(m, {
|
|
1204
1204
|
gap: 0,
|
|
1205
1205
|
wrap: "nowrap",
|
|
1206
1206
|
children: [
|
|
@@ -1213,12 +1213,12 @@ function rn(t) {
|
|
|
1213
1213
|
let e = E ?? o.confirmNewRow, t = w ? "red" : "green", r;
|
|
1214
1214
|
n[55] !== i || n[56] !== c ? (r = () => void i.commit(c), n[55] = i, n[56] = c, n[57] = r) : r = n[57];
|
|
1215
1215
|
let a;
|
|
1216
|
-
n[58] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */
|
|
1216
|
+
n[58] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Y(V, {
|
|
1217
1217
|
size: 16,
|
|
1218
1218
|
stroke: 2
|
|
1219
1219
|
}), n[58] = a) : a = n[58];
|
|
1220
1220
|
let u;
|
|
1221
|
-
n[59] !== o.confirmNewRow || n[60] !== c || n[61] !== t || n[62] !== r || n[63] !== s ? (u = /* @__PURE__ */
|
|
1221
|
+
n[59] !== o.confirmNewRow || n[60] !== c || n[61] !== t || n[62] !== r || n[63] !== s ? (u = /* @__PURE__ */ Y(l, {
|
|
1222
1222
|
variant: "subtle",
|
|
1223
1223
|
color: t,
|
|
1224
1224
|
size: "sm",
|
|
@@ -1230,7 +1230,7 @@ function rn(t) {
|
|
|
1230
1230
|
children: a
|
|
1231
1231
|
}), n[59] = o.confirmNewRow, n[60] = c, n[61] = t, n[62] = r, n[63] = s, n[64] = u) : u = n[64];
|
|
1232
1232
|
let d;
|
|
1233
|
-
n[65] !== u || n[66] !== e ? (d = /* @__PURE__ */
|
|
1233
|
+
n[65] !== u || n[66] !== e ? (d = /* @__PURE__ */ Y(k, {
|
|
1234
1234
|
label: e,
|
|
1235
1235
|
withArrow: !0,
|
|
1236
1236
|
children: u
|
|
@@ -1238,12 +1238,12 @@ function rn(t) {
|
|
|
1238
1238
|
let f;
|
|
1239
1239
|
n[68] !== i || n[69] !== c ? (f = () => i.cancel(c), n[68] = i, n[69] = c, n[70] = f) : f = n[70];
|
|
1240
1240
|
let p;
|
|
1241
|
-
n[71] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */
|
|
1241
|
+
n[71] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ Y(ue, {
|
|
1242
1242
|
size: 16,
|
|
1243
1243
|
stroke: 1.6
|
|
1244
1244
|
}), n[71] = p) : p = n[71];
|
|
1245
1245
|
let h;
|
|
1246
|
-
n[72] !== o.discardNewRow || n[73] !== c || n[74] !== f || n[75] !== s ? (h = /* @__PURE__ */
|
|
1246
|
+
n[72] !== o.discardNewRow || n[73] !== c || n[74] !== f || n[75] !== s ? (h = /* @__PURE__ */ Y(l, {
|
|
1247
1247
|
variant: "subtle",
|
|
1248
1248
|
color: "gray",
|
|
1249
1249
|
size: "sm",
|
|
@@ -1255,13 +1255,13 @@ function rn(t) {
|
|
|
1255
1255
|
children: p
|
|
1256
1256
|
}), n[72] = o.discardNewRow, n[73] = c, n[74] = f, n[75] = s, n[76] = h) : h = n[76];
|
|
1257
1257
|
let g;
|
|
1258
|
-
n[77] !== o.discardNewRow || n[78] !== h ? (g = /* @__PURE__ */
|
|
1258
|
+
n[77] !== o.discardNewRow || n[78] !== h ? (g = /* @__PURE__ */ Y(k, {
|
|
1259
1259
|
label: o.discardNewRow,
|
|
1260
1260
|
withArrow: !0,
|
|
1261
1261
|
children: h
|
|
1262
1262
|
}), n[77] = o.discardNewRow, n[78] = h, n[79] = g) : g = n[79];
|
|
1263
1263
|
let _;
|
|
1264
|
-
return n[80] !== d || n[81] !== g ? (_ = /* @__PURE__ */
|
|
1264
|
+
return n[80] !== d || n[81] !== g ? (_ = /* @__PURE__ */ X(m, {
|
|
1265
1265
|
gap: 0,
|
|
1266
1266
|
wrap: "nowrap",
|
|
1267
1267
|
children: [d, g]
|
|
@@ -1269,7 +1269,7 @@ function rn(t) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
if (C) {
|
|
1271
1271
|
let e;
|
|
1272
|
-
n[83] !== o.rowStateDeleted || n[84] !== c ? (e = /* @__PURE__ */
|
|
1272
|
+
n[83] !== o.rowStateDeleted || n[84] !== c ? (e = /* @__PURE__ */ Y(nn, {
|
|
1273
1273
|
state: "deleted",
|
|
1274
1274
|
rowId: c,
|
|
1275
1275
|
label: o.rowStateDeleted,
|
|
@@ -1280,12 +1280,12 @@ function rn(t) {
|
|
|
1280
1280
|
e.stopPropagation(), i.restoreRow(c);
|
|
1281
1281
|
}, n[86] = i, n[87] = c, n[88] = t) : t = n[88];
|
|
1282
1282
|
let r;
|
|
1283
|
-
n[89] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
1283
|
+
n[89] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ Y(P, {
|
|
1284
1284
|
size: 16,
|
|
1285
1285
|
stroke: 1.6
|
|
1286
1286
|
}), n[89] = r) : r = n[89];
|
|
1287
1287
|
let a;
|
|
1288
|
-
n[90] !== o.restoreRow || n[91] !== c || n[92] !== t || n[93] !== s ? (a = /* @__PURE__ */
|
|
1288
|
+
n[90] !== o.restoreRow || n[91] !== c || n[92] !== t || n[93] !== s ? (a = /* @__PURE__ */ Y(l, {
|
|
1289
1289
|
variant: "subtle",
|
|
1290
1290
|
color: "gray",
|
|
1291
1291
|
size: "sm",
|
|
@@ -1297,13 +1297,13 @@ function rn(t) {
|
|
|
1297
1297
|
children: r
|
|
1298
1298
|
}), n[90] = o.restoreRow, n[91] = c, n[92] = t, n[93] = s, n[94] = a) : a = n[94];
|
|
1299
1299
|
let u;
|
|
1300
|
-
n[95] !== o.restoreRow || n[96] !== a ? (u = /* @__PURE__ */
|
|
1300
|
+
n[95] !== o.restoreRow || n[96] !== a ? (u = /* @__PURE__ */ Y(k, {
|
|
1301
1301
|
label: o.restoreRow,
|
|
1302
1302
|
withArrow: !0,
|
|
1303
1303
|
children: a
|
|
1304
1304
|
}), n[95] = o.restoreRow, n[96] = a, n[97] = u) : u = n[97];
|
|
1305
1305
|
let d;
|
|
1306
|
-
return n[98] !== u || n[99] !== e ? (d = /* @__PURE__ */
|
|
1306
|
+
return n[98] !== u || n[99] !== e ? (d = /* @__PURE__ */ X(m, {
|
|
1307
1307
|
gap: 0,
|
|
1308
1308
|
wrap: "nowrap",
|
|
1309
1309
|
children: [e, u]
|
|
@@ -1312,14 +1312,14 @@ function rn(t) {
|
|
|
1312
1312
|
if (!i.canEditRow(r)) return null;
|
|
1313
1313
|
if (p?.isSubmitting) {
|
|
1314
1314
|
let e;
|
|
1315
|
-
return n[101] === o.loading ? e = n[102] : (e = /* @__PURE__ */
|
|
1315
|
+
return n[101] === o.loading ? e = n[102] : (e = /* @__PURE__ */ Y(g, {
|
|
1316
1316
|
size: "xs",
|
|
1317
1317
|
"aria-label": o.loading
|
|
1318
1318
|
}), n[101] = o.loading, n[102] = e), e;
|
|
1319
1319
|
}
|
|
1320
1320
|
if (x) {
|
|
1321
1321
|
let e;
|
|
1322
|
-
n[103] !== o.rowStateEdited || n[104] !== E || n[105] !== c ? (e = /* @__PURE__ */
|
|
1322
|
+
n[103] !== o.rowStateEdited || n[104] !== E || n[105] !== c ? (e = /* @__PURE__ */ Y(nn, {
|
|
1323
1323
|
state: "edited",
|
|
1324
1324
|
rowId: c,
|
|
1325
1325
|
label: o.rowStateEdited,
|
|
@@ -1330,12 +1330,12 @@ function rn(t) {
|
|
|
1330
1330
|
e.stopPropagation(), i.cancel(c);
|
|
1331
1331
|
}, n[107] = i, n[108] = c, n[109] = t) : t = n[109];
|
|
1332
1332
|
let r;
|
|
1333
|
-
n[110] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
1333
|
+
n[110] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ Y(P, {
|
|
1334
1334
|
size: 16,
|
|
1335
1335
|
stroke: 1.6
|
|
1336
1336
|
}), n[110] = r) : r = n[110];
|
|
1337
1337
|
let a;
|
|
1338
|
-
n[111] !== o.revertRow || n[112] !== c || n[113] !== t || n[114] !== s ? (a = /* @__PURE__ */
|
|
1338
|
+
n[111] !== o.revertRow || n[112] !== c || n[113] !== t || n[114] !== s ? (a = /* @__PURE__ */ Y(l, {
|
|
1339
1339
|
variant: "subtle",
|
|
1340
1340
|
color: "gray",
|
|
1341
1341
|
size: "sm",
|
|
@@ -1347,13 +1347,13 @@ function rn(t) {
|
|
|
1347
1347
|
children: r
|
|
1348
1348
|
}), n[111] = o.revertRow, n[112] = c, n[113] = t, n[114] = s, n[115] = a) : a = n[115];
|
|
1349
1349
|
let u;
|
|
1350
|
-
n[116] !== o.revertRow || n[117] !== a ? (u = /* @__PURE__ */
|
|
1350
|
+
n[116] !== o.revertRow || n[117] !== a ? (u = /* @__PURE__ */ Y(k, {
|
|
1351
1351
|
label: o.revertRow,
|
|
1352
1352
|
withArrow: !0,
|
|
1353
1353
|
children: a
|
|
1354
1354
|
}), n[116] = o.revertRow, n[117] = a, n[118] = u) : u = n[118];
|
|
1355
1355
|
let d;
|
|
1356
|
-
return n[119] !== u || n[120] !== e ? (d = /* @__PURE__ */
|
|
1356
|
+
return n[119] !== u || n[120] !== e ? (d = /* @__PURE__ */ X(m, {
|
|
1357
1357
|
gap: 0,
|
|
1358
1358
|
wrap: "nowrap",
|
|
1359
1359
|
children: [e, u]
|
|
@@ -1361,10 +1361,10 @@ function rn(t) {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
if (!d) {
|
|
1363
1363
|
let e;
|
|
1364
|
-
n[122] !== i || n[123] !== a.editMode || n[124] !== o || n[125] !== c || n[126] !== s ? (e = a.editMode === "row" && /* @__PURE__ */
|
|
1364
|
+
n[122] !== i || n[123] !== a.editMode || n[124] !== o || n[125] !== c || n[126] !== s ? (e = a.editMode === "row" && /* @__PURE__ */ Y(k, {
|
|
1365
1365
|
label: o.editRow,
|
|
1366
1366
|
withArrow: !0,
|
|
1367
|
-
children: /* @__PURE__ */
|
|
1367
|
+
children: /* @__PURE__ */ Y(l, {
|
|
1368
1368
|
variant: "subtle",
|
|
1369
1369
|
color: "gray",
|
|
1370
1370
|
size: "sm",
|
|
@@ -1378,14 +1378,14 @@ function rn(t) {
|
|
|
1378
1378
|
columnId: null
|
|
1379
1379
|
});
|
|
1380
1380
|
},
|
|
1381
|
-
children: /* @__PURE__ */
|
|
1381
|
+
children: /* @__PURE__ */ Y(q, {
|
|
1382
1382
|
size: 16,
|
|
1383
1383
|
stroke: 1.6
|
|
1384
1384
|
})
|
|
1385
1385
|
})
|
|
1386
1386
|
}), n[122] = i, n[123] = a.editMode, n[124] = o, n[125] = c, n[126] = s, n[127] = e) : e = n[127];
|
|
1387
1387
|
let t;
|
|
1388
|
-
return n[128] !== e || n[129] !== O ? (t = /* @__PURE__ */
|
|
1388
|
+
return n[128] !== e || n[129] !== O ? (t = /* @__PURE__ */ X(m, {
|
|
1389
1389
|
gap: 0,
|
|
1390
1390
|
wrap: "nowrap",
|
|
1391
1391
|
children: [e, O]
|
|
@@ -1396,12 +1396,12 @@ function rn(t) {
|
|
|
1396
1396
|
e.stopPropagation(), i.commit(c);
|
|
1397
1397
|
}, n[131] = i, n[132] = c, n[133] = j) : j = n[133];
|
|
1398
1398
|
let N;
|
|
1399
|
-
n[134] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */
|
|
1399
|
+
n[134] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ Y(V, {
|
|
1400
1400
|
size: 16,
|
|
1401
1401
|
stroke: 2
|
|
1402
1402
|
}), n[134] = N) : N = n[134];
|
|
1403
1403
|
let F;
|
|
1404
|
-
n[135] !== o.saveRow || n[136] !== c || n[137] !== j || n[138] !== A ? (F = /* @__PURE__ */
|
|
1404
|
+
n[135] !== o.saveRow || n[136] !== c || n[137] !== j || n[138] !== A ? (F = /* @__PURE__ */ Y(l, {
|
|
1405
1405
|
variant: "subtle",
|
|
1406
1406
|
color: A,
|
|
1407
1407
|
size: "sm",
|
|
@@ -1413,7 +1413,7 @@ function rn(t) {
|
|
|
1413
1413
|
children: N
|
|
1414
1414
|
}), n[135] = o.saveRow, n[136] = c, n[137] = j, n[138] = A, n[139] = F) : F = n[139];
|
|
1415
1415
|
let I = F, L = E ?? o.saveRow, R;
|
|
1416
|
-
n[140] !== I || n[141] !== L ? (R = /* @__PURE__ */
|
|
1416
|
+
n[140] !== I || n[141] !== L ? (R = /* @__PURE__ */ Y(k, {
|
|
1417
1417
|
label: L,
|
|
1418
1418
|
withArrow: !0,
|
|
1419
1419
|
children: I
|
|
@@ -1423,12 +1423,12 @@ function rn(t) {
|
|
|
1423
1423
|
e.stopPropagation(), i.cancel(c);
|
|
1424
1424
|
}, n[143] = i, n[144] = c, n[145] = z) : z = n[145];
|
|
1425
1425
|
let B;
|
|
1426
|
-
n[146] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */
|
|
1426
|
+
n[146] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Y(ue, {
|
|
1427
1427
|
size: 16,
|
|
1428
1428
|
stroke: 1.6
|
|
1429
1429
|
}), n[146] = B) : B = n[146];
|
|
1430
1430
|
let H;
|
|
1431
|
-
n[147] !== o.cancelRowEdit || n[148] !== c || n[149] !== z ? (H = /* @__PURE__ */
|
|
1431
|
+
n[147] !== o.cancelRowEdit || n[148] !== c || n[149] !== z ? (H = /* @__PURE__ */ Y(l, {
|
|
1432
1432
|
variant: "subtle",
|
|
1433
1433
|
color: "gray",
|
|
1434
1434
|
size: "sm",
|
|
@@ -1440,13 +1440,13 @@ function rn(t) {
|
|
|
1440
1440
|
children: B
|
|
1441
1441
|
}), n[147] = o.cancelRowEdit, n[148] = c, n[149] = z, n[150] = H) : H = n[150];
|
|
1442
1442
|
let U;
|
|
1443
|
-
n[151] !== o.cancelRowEdit || n[152] !== H ? (U = /* @__PURE__ */
|
|
1443
|
+
n[151] !== o.cancelRowEdit || n[152] !== H ? (U = /* @__PURE__ */ Y(k, {
|
|
1444
1444
|
label: o.cancelRowEdit,
|
|
1445
1445
|
withArrow: !0,
|
|
1446
1446
|
children: H
|
|
1447
1447
|
}), n[151] = o.cancelRowEdit, n[152] = H, n[153] = U) : U = n[153];
|
|
1448
1448
|
let W;
|
|
1449
|
-
return n[154] !== R || n[155] !== U ? (W = /* @__PURE__ */
|
|
1449
|
+
return n[154] !== R || n[155] !== U ? (W = /* @__PURE__ */ X(m, {
|
|
1450
1450
|
gap: 0,
|
|
1451
1451
|
wrap: "nowrap",
|
|
1452
1452
|
children: [R, U]
|
|
@@ -1486,25 +1486,25 @@ function dn(t) {
|
|
|
1486
1486
|
e.stopPropagation(), r.toggleExpanded();
|
|
1487
1487
|
}, n[16] = r, n[17] = g);
|
|
1488
1488
|
let _ = s || void 0, v;
|
|
1489
|
-
n[18] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */
|
|
1489
|
+
n[18] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ Y(U, {
|
|
1490
1490
|
size: 16,
|
|
1491
1491
|
stroke: 1.6
|
|
1492
1492
|
}), n[18] = v) : v = n[18];
|
|
1493
1493
|
let y;
|
|
1494
|
-
n[19] === _ ? y = n[20] : (y = /* @__PURE__ */
|
|
1494
|
+
n[19] === _ ? y = n[20] : (y = /* @__PURE__ */ Y("span", {
|
|
1495
1495
|
className: an.chevron,
|
|
1496
1496
|
"data-expanded": _,
|
|
1497
1497
|
children: v
|
|
1498
1498
|
}), n[19] = _, n[20] = y);
|
|
1499
1499
|
let b;
|
|
1500
|
-
n[21] === l ? b = n[22] : (b = /* @__PURE__ */
|
|
1500
|
+
n[21] === l ? b = n[22] : (b = /* @__PURE__ */ Y("span", {
|
|
1501
1501
|
className: an.groupLabel,
|
|
1502
1502
|
children: l
|
|
1503
1503
|
}), n[21] = l, n[22] = b);
|
|
1504
1504
|
let x;
|
|
1505
1505
|
n[23] === r ? x = n[24] : (x = on(r), n[23] = r, n[24] = x);
|
|
1506
1506
|
let S;
|
|
1507
|
-
n[25] === x.length ? S = n[26] : (S = /* @__PURE__ */
|
|
1507
|
+
n[25] === x.length ? S = n[26] : (S = /* @__PURE__ */ X("span", {
|
|
1508
1508
|
className: an.groupCount,
|
|
1509
1509
|
children: [
|
|
1510
1510
|
"(",
|
|
@@ -1513,7 +1513,7 @@ function dn(t) {
|
|
|
1513
1513
|
]
|
|
1514
1514
|
}), n[25] = x.length, n[26] = S);
|
|
1515
1515
|
let C;
|
|
1516
|
-
return n[27] !== c || n[28] !== r.id || n[29] !== y || n[30] !== b || n[31] !== S || n[32] !== u || n[33] !== d || n[34] !== f || n[35] !== p || n[36] !== m || n[37] !== g ? (C = /* @__PURE__ */
|
|
1516
|
+
return n[27] !== c || n[28] !== r.id || n[29] !== y || n[30] !== b || n[31] !== S || n[32] !== u || n[33] !== d || n[34] !== f || n[35] !== p || n[36] !== m || n[37] !== g ? (C = /* @__PURE__ */ X(c, {
|
|
1517
1517
|
className: u,
|
|
1518
1518
|
style: d,
|
|
1519
1519
|
tabIndex: f,
|
|
@@ -1666,7 +1666,7 @@ function On(t) {
|
|
|
1666
1666
|
let c = M(r.store, s), l = i.selectAllRows, u = c && !o, d;
|
|
1667
1667
|
n[4] === r ? d = n[5] : (d = r.getToggleAllRowsSelectedHandler(), n[4] = r, n[5] = d);
|
|
1668
1668
|
let f;
|
|
1669
|
-
return n[6] !== o || n[7] !== i.selectAllRows || n[8] !== u || n[9] !== d ? (f = /* @__PURE__ */
|
|
1669
|
+
return n[6] !== o || n[7] !== i.selectAllRows || n[8] !== u || n[9] !== d ? (f = /* @__PURE__ */ Y(p, {
|
|
1670
1670
|
size: "xs",
|
|
1671
1671
|
"aria-label": l,
|
|
1672
1672
|
"data-dg-part": "select-all",
|
|
@@ -1679,7 +1679,7 @@ function kn(t) {
|
|
|
1679
1679
|
let n = e(2), { table: r } = t, { features: i } = $();
|
|
1680
1680
|
if (!i.multiRowSelection) return null;
|
|
1681
1681
|
let a;
|
|
1682
|
-
return n[0] === r ? a = n[1] : (a = /* @__PURE__ */
|
|
1682
|
+
return n[0] === r ? a = n[1] : (a = /* @__PURE__ */ Y(On, { table: r }), n[0] = r, n[1] = a), a;
|
|
1683
1683
|
}
|
|
1684
1684
|
function An(t) {
|
|
1685
1685
|
let n = e(23), { row: r } = t, { ui: i, features: a, labels: o, edit: s } = $(), c = nt(), l = r.subRows.length > 0, u;
|
|
@@ -1708,7 +1708,7 @@ function An(t) {
|
|
|
1708
1708
|
r.table.setRowSelection(o.selection), i.actions.setSelectionAnchor(o.anchorRowId);
|
|
1709
1709
|
}, n[9] = a, n[10] = r.id, n[11] = r.table, n[12] = i.actions, n[13] = i.state.selectionAnchorRowId, n[14] = x) : x = n[14];
|
|
1710
1710
|
let S;
|
|
1711
|
-
return n[15] !== r.id || n[16] !== f || n[17] !== v || n[18] !== y || n[19] !== b || n[20] !== x || n[21] !== c ? (S = /* @__PURE__ */
|
|
1711
|
+
return n[15] !== r.id || n[16] !== f || n[17] !== v || n[18] !== y || n[19] !== b || n[20] !== x || n[21] !== c ? (S = /* @__PURE__ */ Y(p, {
|
|
1712
1712
|
size: "xs",
|
|
1713
1713
|
tabIndex: c,
|
|
1714
1714
|
"aria-label": v,
|
|
@@ -1818,13 +1818,13 @@ function qn(t) {
|
|
|
1818
1818
|
let S = x, w;
|
|
1819
1819
|
n[9] === i ? w = n[10] : (w = [$e.columnsPanel, i].filter(Boolean), n[9] = i, n[10] = w);
|
|
1820
1820
|
let T = w.join(" "), E;
|
|
1821
|
-
n[11] !== _.length || n[12] !== u || n[13] !== l.columnsSearchPlaceholder || n[14] !== h || n[15] !== s ? (E = Un(s, _.length) && /* @__PURE__ */
|
|
1821
|
+
n[11] !== _.length || n[12] !== u || n[13] !== l.columnsSearchPlaceholder || n[14] !== h || n[15] !== s ? (E = Un(s, _.length) && /* @__PURE__ */ Y("div", {
|
|
1822
1822
|
className: $e.columnsPanelSearch,
|
|
1823
|
-
children: /* @__PURE__ */
|
|
1823
|
+
children: /* @__PURE__ */ Y(O, {
|
|
1824
1824
|
value: h,
|
|
1825
1825
|
onChange: (e) => g(e.currentTarget.value),
|
|
1826
1826
|
placeholder: l.columnsSearchPlaceholder,
|
|
1827
|
-
leftSection: /* @__PURE__ */
|
|
1827
|
+
leftSection: /* @__PURE__ */ Y(ce, {
|
|
1828
1828
|
size: 16,
|
|
1829
1829
|
stroke: 1.6
|
|
1830
1830
|
}),
|
|
@@ -1836,7 +1836,7 @@ function qn(t) {
|
|
|
1836
1836
|
let A;
|
|
1837
1837
|
if (n[17] !== v || n[18] !== u || n[19] !== S) {
|
|
1838
1838
|
let e;
|
|
1839
|
-
n[21] !== v || n[22] !== u ? (e = (e) => /* @__PURE__ */
|
|
1839
|
+
n[21] !== v || n[22] !== u ? (e = (e) => /* @__PURE__ */ Y(p, {
|
|
1840
1840
|
size: u,
|
|
1841
1841
|
label: Mn(e),
|
|
1842
1842
|
"data-dg-part": "columns-toggle",
|
|
@@ -1846,17 +1846,17 @@ function qn(t) {
|
|
|
1846
1846
|
}, e.id), n[21] = v, n[22] = u, n[23] = e) : e = n[23], A = S.map(e), n[17] = v, n[18] = u, n[19] = S, n[20] = A;
|
|
1847
1847
|
} else A = n[20];
|
|
1848
1848
|
let j;
|
|
1849
|
-
n[24] !== u || n[25] !== l || n[26] !== h || n[27] !== S.length ? (j = S.length === 0 && /* @__PURE__ */
|
|
1849
|
+
n[24] !== u || n[25] !== l || n[26] !== h || n[27] !== S.length ? (j = S.length === 0 && /* @__PURE__ */ Y(D, {
|
|
1850
1850
|
span: !0,
|
|
1851
1851
|
size: u,
|
|
1852
1852
|
c: "dimmed",
|
|
1853
1853
|
children: l.columnsNoMatch(h)
|
|
1854
1854
|
}), n[24] = u, n[25] = l, n[26] = h, n[27] = S.length, n[28] = j) : j = n[28];
|
|
1855
1855
|
let M;
|
|
1856
|
-
n[29] !== A || n[30] !== j ? (M = /* @__PURE__ */
|
|
1856
|
+
n[29] !== A || n[30] !== j ? (M = /* @__PURE__ */ Y(C.Autosize, {
|
|
1857
1857
|
mah: 260,
|
|
1858
1858
|
type: "auto",
|
|
1859
|
-
children: /* @__PURE__ */
|
|
1859
|
+
children: /* @__PURE__ */ X("div", {
|
|
1860
1860
|
className: $e.columnsPanelList,
|
|
1861
1861
|
children: [A, j]
|
|
1862
1862
|
})
|
|
@@ -1864,7 +1864,7 @@ function qn(t) {
|
|
|
1864
1864
|
let N = y === _.length, P = y > 0 && y < _.length, F;
|
|
1865
1865
|
n[32] === b ? F = n[33] : (F = (e) => b(e.currentTarget.checked), n[32] = b, n[33] = F);
|
|
1866
1866
|
let I;
|
|
1867
|
-
n[34] !== u || n[35] !== l.columnsShowHideAll || n[36] !== N || n[37] !== P || n[38] !== F ? (I = /* @__PURE__ */
|
|
1867
|
+
n[34] !== u || n[35] !== l.columnsShowHideAll || n[36] !== N || n[37] !== P || n[38] !== F ? (I = /* @__PURE__ */ Y(p, {
|
|
1868
1868
|
size: u,
|
|
1869
1869
|
label: l.columnsShowHideAll,
|
|
1870
1870
|
"data-dg-part": "columns-toggle-all",
|
|
@@ -1875,7 +1875,7 @@ function qn(t) {
|
|
|
1875
1875
|
let L;
|
|
1876
1876
|
n[40] === m ? L = n[41] : (L = () => m(), n[40] = m, n[41] = L);
|
|
1877
1877
|
let R;
|
|
1878
|
-
n[42] !== l.columnsReset || n[43] !== L ? (R = /* @__PURE__ */
|
|
1878
|
+
n[42] !== l.columnsReset || n[43] !== L ? (R = /* @__PURE__ */ Y(f, {
|
|
1879
1879
|
variant: "subtle",
|
|
1880
1880
|
size: "compact-sm",
|
|
1881
1881
|
"data-dg-part": "columns-reset",
|
|
@@ -1883,18 +1883,18 @@ function qn(t) {
|
|
|
1883
1883
|
children: l.columnsReset
|
|
1884
1884
|
}), n[42] = l.columnsReset, n[43] = L, n[44] = R) : R = n[44];
|
|
1885
1885
|
let z;
|
|
1886
|
-
n[45] !== l.columnsResetHint || n[46] !== R ? (z = /* @__PURE__ */
|
|
1886
|
+
n[45] !== l.columnsResetHint || n[46] !== R ? (z = /* @__PURE__ */ Y(k, {
|
|
1887
1887
|
label: l.columnsResetHint,
|
|
1888
1888
|
withArrow: !0,
|
|
1889
1889
|
children: R
|
|
1890
1890
|
}), n[45] = l.columnsResetHint, n[46] = R, n[47] = z) : z = n[47];
|
|
1891
1891
|
let B;
|
|
1892
|
-
n[48] !== I || n[49] !== z ? (B = /* @__PURE__ */
|
|
1892
|
+
n[48] !== I || n[49] !== z ? (B = /* @__PURE__ */ X("div", {
|
|
1893
1893
|
className: $e.columnsPanelFooter,
|
|
1894
1894
|
children: [I, z]
|
|
1895
1895
|
}), n[48] = I, n[49] = z, n[50] = B) : B = n[50];
|
|
1896
1896
|
let V;
|
|
1897
|
-
return n[51] !== a || n[52] !== B || n[53] !== T || n[54] !== E || n[55] !== M ? (V = /* @__PURE__ */
|
|
1897
|
+
return n[51] !== a || n[52] !== B || n[53] !== T || n[54] !== E || n[55] !== M ? (V = /* @__PURE__ */ X(d, {
|
|
1898
1898
|
"data-dg-part": "columns-panel",
|
|
1899
1899
|
className: T,
|
|
1900
1900
|
...a,
|
|
@@ -1935,7 +1935,7 @@ function er() {
|
|
|
1935
1935
|
let c;
|
|
1936
1936
|
t[2] !== i || t[3] !== r ? (c = r.saveAllEdits(i), t[2] = i, t[3] = r, t[4] = c) : c = t[4];
|
|
1937
1937
|
let l;
|
|
1938
|
-
return t[5] !== i || t[6] !== a || t[7] !== o || t[8] !== s || t[9] !== c ? (l = /* @__PURE__ */
|
|
1938
|
+
return t[5] !== i || t[6] !== a || t[7] !== o || t[8] !== s || t[9] !== c ? (l = /* @__PURE__ */ Y(f, {
|
|
1939
1939
|
size: "compact-sm",
|
|
1940
1940
|
disabled: o,
|
|
1941
1941
|
loading: a,
|
|
@@ -1954,7 +1954,7 @@ function nr() {
|
|
|
1954
1954
|
let i;
|
|
1955
1955
|
t[0] !== n || t[1] !== r ? (i = n.editRowsStillOpen(r), t[0] = n, t[1] = r, t[2] = i) : i = t[2];
|
|
1956
1956
|
let a;
|
|
1957
|
-
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */
|
|
1957
|
+
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ Y(D, {
|
|
1958
1958
|
size: "xs",
|
|
1959
1959
|
c: "dimmed",
|
|
1960
1960
|
"data-dg-part": "open-rows-note",
|
|
@@ -1966,7 +1966,7 @@ function rr() {
|
|
|
1966
1966
|
let t = e(6), { edit: n, labels: r } = $(), i = Jn() + Zn() === 0, a;
|
|
1967
1967
|
t[0] === n ? a = t[1] : (a = () => n.cancelAll(), t[0] = n, t[1] = a);
|
|
1968
1968
|
let o;
|
|
1969
|
-
return t[2] !== r.discardAllEdits || t[3] !== i || t[4] !== a ? (o = /* @__PURE__ */
|
|
1969
|
+
return t[2] !== r.discardAllEdits || t[3] !== i || t[4] !== a ? (o = /* @__PURE__ */ Y(f, {
|
|
1970
1970
|
variant: "subtle",
|
|
1971
1971
|
color: "gray",
|
|
1972
1972
|
size: "compact-sm",
|
|
@@ -2018,13 +2018,13 @@ function ar(t) {
|
|
|
2018
2018
|
});
|
|
2019
2019
|
}
|
|
2020
2020
|
let f;
|
|
2021
|
-
return n[9] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
2021
|
+
return n[9] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ X(m, {
|
|
2022
2022
|
gap: "xs",
|
|
2023
2023
|
wrap: "nowrap",
|
|
2024
2024
|
children: [
|
|
2025
|
-
/* @__PURE__ */
|
|
2026
|
-
/* @__PURE__ */
|
|
2027
|
-
/* @__PURE__ */
|
|
2025
|
+
/* @__PURE__ */ Y(nr, {}),
|
|
2026
|
+
/* @__PURE__ */ Y(er, {}),
|
|
2027
|
+
/* @__PURE__ */ Y(rr, {})
|
|
2028
2028
|
]
|
|
2029
2029
|
}), n[9] = f) : f = n[9], f;
|
|
2030
2030
|
}
|
|
@@ -2122,7 +2122,7 @@ function hr(t) {
|
|
|
2122
2122
|
let u = v ? 1 : void 0, d;
|
|
2123
2123
|
n[8] !== o || n[9] !== r[1] ? (d = (e) => o([e.currentTarget.value, r[1]]), n[8] = o, n[9] = r[1], n[10] = d) : d = n[10];
|
|
2124
2124
|
let f;
|
|
2125
|
-
n[11] !== g || n[12] !== r[0] || n[13] !== c || n[14] !== s || n[15] !== u || n[16] !== d ? (f = /* @__PURE__ */
|
|
2125
|
+
n[11] !== g || n[12] !== r[0] || n[13] !== c || n[14] !== s || n[15] !== u || n[16] !== d ? (f = /* @__PURE__ */ Y(O, {
|
|
2126
2126
|
...s,
|
|
2127
2127
|
size: c,
|
|
2128
2128
|
type: g,
|
|
@@ -2140,7 +2140,7 @@ function hr(t) {
|
|
|
2140
2140
|
let h = v ? 1 : void 0, _;
|
|
2141
2141
|
n[21] !== o || n[22] !== r[0] ? (_ = (e) => o([r[0], e.currentTarget.value]), n[21] = o, n[22] = r[0], n[23] = _) : _ = n[23];
|
|
2142
2142
|
let y;
|
|
2143
|
-
n[24] !== g || n[25] !== r[1] || n[26] !== c || n[27] !== _ || n[28] !== p || n[29] !== h ? (y = /* @__PURE__ */
|
|
2143
|
+
n[24] !== g || n[25] !== r[1] || n[26] !== c || n[27] !== _ || n[28] !== p || n[29] !== h ? (y = /* @__PURE__ */ Y(O, {
|
|
2144
2144
|
...p,
|
|
2145
2145
|
size: c,
|
|
2146
2146
|
type: g,
|
|
@@ -2151,7 +2151,7 @@ function hr(t) {
|
|
|
2151
2151
|
onChange: _
|
|
2152
2152
|
}), n[24] = g, n[25] = r[1], n[26] = c, n[27] = _, n[28] = p, n[29] = h, n[30] = y) : y = n[30];
|
|
2153
2153
|
let b;
|
|
2154
|
-
return n[31] !== y || n[32] !== i || n[33] !== f ? (b = /* @__PURE__ */
|
|
2154
|
+
return n[31] !== y || n[32] !== i || n[33] !== f ? (b = /* @__PURE__ */ X(m, {
|
|
2155
2155
|
gap: 4,
|
|
2156
2156
|
wrap: "nowrap",
|
|
2157
2157
|
align: "flex-start",
|
|
@@ -2170,7 +2170,7 @@ function hr(t) {
|
|
|
2170
2170
|
let i;
|
|
2171
2171
|
n[40] === a ? i = n[41] : (i = Array.isArray(a) ? [...a] : [], n[40] = a, n[41] = i);
|
|
2172
2172
|
let u;
|
|
2173
|
-
return n[42] !== o || n[43] !== c || n[44] !== e || n[45] !== r || n[46] !== i ? (u = /* @__PURE__ */
|
|
2173
|
+
return n[42] !== o || n[43] !== c || n[44] !== e || n[45] !== r || n[46] !== i ? (u = /* @__PURE__ */ Y(y, {
|
|
2174
2174
|
...e,
|
|
2175
2175
|
size: c,
|
|
2176
2176
|
comboboxProps: x,
|
|
@@ -2202,7 +2202,7 @@ function hr(t) {
|
|
|
2202
2202
|
let u = p && h !== "" ? h : null, d;
|
|
2203
2203
|
n[58] === o ? d = n[59] : (d = (e) => o(e ?? ""), n[58] = o, n[59] = d);
|
|
2204
2204
|
let f;
|
|
2205
|
-
return n[60] !== S || n[61] !== c || n[62] !== e || n[63] !== r || n[64] !== s || n[65] !== u || n[66] !== d ? (f = /* @__PURE__ */
|
|
2205
|
+
return n[60] !== S || n[61] !== c || n[62] !== e || n[63] !== r || n[64] !== s || n[65] !== u || n[66] !== d ? (f = /* @__PURE__ */ Y(T, {
|
|
2206
2206
|
...e,
|
|
2207
2207
|
size: c,
|
|
2208
2208
|
comboboxProps: x,
|
|
@@ -2223,7 +2223,7 @@ function hr(t) {
|
|
|
2223
2223
|
let w = p ? g : "text", E = !p, D = p ? h : "", k;
|
|
2224
2224
|
n[71] === o ? k = n[72] : (k = (e) => o(e.currentTarget.value), n[71] = o, n[72] = k);
|
|
2225
2225
|
let A;
|
|
2226
|
-
return n[73] !== S || n[74] !== c || n[75] !== C || n[76] !== w || n[77] !== E || n[78] !== D || n[79] !== k ? (A = /* @__PURE__ */
|
|
2226
|
+
return n[73] !== S || n[74] !== c || n[75] !== C || n[76] !== w || n[77] !== E || n[78] !== D || n[79] !== k ? (A = /* @__PURE__ */ Y(O, {
|
|
2227
2227
|
...C,
|
|
2228
2228
|
size: c,
|
|
2229
2229
|
type: w,
|
|
@@ -2332,13 +2332,13 @@ function Sr(t) {
|
|
|
2332
2332
|
options: [],
|
|
2333
2333
|
ValueControl: hr
|
|
2334
2334
|
} : yr(p, t);
|
|
2335
|
-
return /* @__PURE__ */
|
|
2335
|
+
return /* @__PURE__ */ X("div", {
|
|
2336
2336
|
"data-dg-part": "filter-row",
|
|
2337
2337
|
"data-column-id": e.id,
|
|
2338
2338
|
"data-layout": u,
|
|
2339
2339
|
className: cr.filterRow,
|
|
2340
2340
|
children: [
|
|
2341
|
-
/* @__PURE__ */
|
|
2341
|
+
/* @__PURE__ */ Y(l, {
|
|
2342
2342
|
variant: "subtle",
|
|
2343
2343
|
color: "gray",
|
|
2344
2344
|
size: "lg",
|
|
@@ -2346,14 +2346,14 @@ function Sr(t) {
|
|
|
2346
2346
|
"aria-label": h.removeFilter,
|
|
2347
2347
|
"data-dg-part": "filter-remove",
|
|
2348
2348
|
onClick: () => j(e.id),
|
|
2349
|
-
children: /* @__PURE__ */
|
|
2349
|
+
children: /* @__PURE__ */ Y(ue, {
|
|
2350
2350
|
size: 18,
|
|
2351
2351
|
stroke: 1.6
|
|
2352
2352
|
})
|
|
2353
2353
|
}),
|
|
2354
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ Y("div", {
|
|
2355
2355
|
className: cr.filterColumnSlot,
|
|
2356
|
-
children: /* @__PURE__ */
|
|
2356
|
+
children: /* @__PURE__ */ Y(T, {
|
|
2357
2357
|
label: h.filterColumn,
|
|
2358
2358
|
size: g,
|
|
2359
2359
|
w: b ? "100%" : 160,
|
|
@@ -2364,9 +2364,9 @@ function Sr(t) {
|
|
|
2364
2364
|
onChange: (t) => t && w(e.id, t)
|
|
2365
2365
|
})
|
|
2366
2366
|
}),
|
|
2367
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ Y("div", {
|
|
2368
2368
|
className: cr.filterOperatorSlot,
|
|
2369
|
-
children: /* @__PURE__ */
|
|
2369
|
+
children: /* @__PURE__ */ Y(T, {
|
|
2370
2370
|
label: h.filterOperator,
|
|
2371
2371
|
size: g,
|
|
2372
2372
|
w: b ? "100%" : 170,
|
|
@@ -2380,10 +2380,10 @@ function Sr(t) {
|
|
|
2380
2380
|
onChange: (t) => t && D(e.id, t)
|
|
2381
2381
|
})
|
|
2382
2382
|
}),
|
|
2383
|
-
/* @__PURE__ */
|
|
2383
|
+
/* @__PURE__ */ Y("div", {
|
|
2384
2384
|
className: cr.filterValueSlot,
|
|
2385
2385
|
"data-dg-filter-value-slot": !0,
|
|
2386
|
-
children: t ? /* @__PURE__ */
|
|
2386
|
+
children: t ? /* @__PURE__ */ Y(s, {
|
|
2387
2387
|
column: t,
|
|
2388
2388
|
table: p,
|
|
2389
2389
|
operator: n.operator,
|
|
@@ -2393,7 +2393,7 @@ function Sr(t) {
|
|
|
2393
2393
|
size: g,
|
|
2394
2394
|
labels: h,
|
|
2395
2395
|
layout: u
|
|
2396
|
-
}) : /* @__PURE__ */
|
|
2396
|
+
}) : /* @__PURE__ */ Y(O, {
|
|
2397
2397
|
label: h.filterValue,
|
|
2398
2398
|
size: g,
|
|
2399
2399
|
w: b ? "100%" : 180,
|
|
@@ -2409,7 +2409,7 @@ function Sr(t) {
|
|
|
2409
2409
|
}, n[45] = w, n[46] = D, n[47] = k, n[48] = g, n[49] = h, n[50] = u, n[51] = A, n[52] = j, n[53] = b, n[54] = p, n[55] = e) : e = n[55], R = _.map(e), n[33] = w, n[34] = D, n[35] = _, n[36] = k, n[37] = g, n[38] = h, n[39] = u, n[40] = A, n[41] = j, n[42] = b, n[43] = p, n[44] = R;
|
|
2410
2410
|
} else R = n[44];
|
|
2411
2411
|
let z = !P, B;
|
|
2412
|
-
n[56] !== C || n[57] !== h.addFilter || n[58] !== z ? (B = /* @__PURE__ */
|
|
2412
|
+
n[56] !== C || n[57] !== h.addFilter || n[58] !== z ? (B = /* @__PURE__ */ Y(f, {
|
|
2413
2413
|
variant: "subtle",
|
|
2414
2414
|
size: "compact-sm",
|
|
2415
2415
|
disabled: z,
|
|
@@ -2420,7 +2420,7 @@ function Sr(t) {
|
|
|
2420
2420
|
let V = _.length === 0, H;
|
|
2421
2421
|
n[60] === p ? H = n[61] : (H = () => p.setColumnFilters([]), n[60] = p, n[61] = H);
|
|
2422
2422
|
let U;
|
|
2423
|
-
n[62] !== h.clearAllFilters || n[63] !== V || n[64] !== H ? (U = /* @__PURE__ */
|
|
2423
|
+
n[62] !== h.clearAllFilters || n[63] !== V || n[64] !== H ? (U = /* @__PURE__ */ Y(f, {
|
|
2424
2424
|
variant: "subtle",
|
|
2425
2425
|
color: "gray",
|
|
2426
2426
|
size: "compact-sm",
|
|
@@ -2430,17 +2430,17 @@ function Sr(t) {
|
|
|
2430
2430
|
children: h.clearAllFilters
|
|
2431
2431
|
}), n[62] = h.clearAllFilters, n[63] = V, n[64] = H, n[65] = U) : U = n[65];
|
|
2432
2432
|
let W;
|
|
2433
|
-
n[66] !== B || n[67] !== U ? (W = /* @__PURE__ */
|
|
2433
|
+
n[66] !== B || n[67] !== U ? (W = /* @__PURE__ */ X("div", {
|
|
2434
2434
|
className: cr.filterPanelFooter,
|
|
2435
2435
|
children: [B, U]
|
|
2436
2436
|
}), n[66] = B, n[67] = U, n[68] = W) : W = n[68];
|
|
2437
2437
|
let ee;
|
|
2438
|
-
n[69] !== W || n[70] !== R ? (ee = /* @__PURE__ */
|
|
2438
|
+
n[69] !== W || n[70] !== R ? (ee = /* @__PURE__ */ X(E, {
|
|
2439
2439
|
gap: "xs",
|
|
2440
2440
|
children: [R, W]
|
|
2441
2441
|
}), n[69] = W, n[70] = R, n[71] = ee) : ee = n[71];
|
|
2442
2442
|
let G;
|
|
2443
|
-
return n[72] !== h.filters || n[73] !== u || n[74] !== o || n[75] !== ee || n[76] !== L ? (G = /* @__PURE__ */
|
|
2443
|
+
return n[72] !== h.filters || n[73] !== u || n[74] !== o || n[75] !== ee || n[76] !== L ? (G = /* @__PURE__ */ Y(d, {
|
|
2444
2444
|
ref: y,
|
|
2445
2445
|
role: "group",
|
|
2446
2446
|
"aria-label": F,
|
|
@@ -3207,9 +3207,9 @@ function oa(e = "Checkbox selection") {
|
|
|
3207
3207
|
enableGlobalFilter: !1,
|
|
3208
3208
|
enableHiding: !1,
|
|
3209
3209
|
enablePinning: !1,
|
|
3210
|
-
header: ({ table: e }) => /* @__PURE__ */
|
|
3211
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
3212
|
-
aggregatedCell: ({ row: e }) => /* @__PURE__ */
|
|
3210
|
+
header: ({ table: e }) => /* @__PURE__ */ Y(kn, { table: e }),
|
|
3211
|
+
cell: ({ row: e }) => /* @__PURE__ */ Y(An, { row: e }),
|
|
3212
|
+
aggregatedCell: ({ row: e }) => /* @__PURE__ */ Y(An, { row: e })
|
|
3213
3213
|
};
|
|
3214
3214
|
}
|
|
3215
3215
|
function sa(e = "Group") {
|
|
@@ -3226,9 +3226,9 @@ function sa(e = "Group") {
|
|
|
3226
3226
|
enableGlobalFilter: !1,
|
|
3227
3227
|
enableHiding: !1,
|
|
3228
3228
|
enablePinning: !1,
|
|
3229
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
3230
|
-
aggregatedCell: ({ row: e }) => /* @__PURE__ */
|
|
3231
|
-
header: ({ table: e }) => /* @__PURE__ */
|
|
3229
|
+
cell: ({ row: e }) => /* @__PURE__ */ Y(dn, { row: e }),
|
|
3230
|
+
aggregatedCell: ({ row: e }) => /* @__PURE__ */ Y(dn, { row: e }),
|
|
3231
|
+
header: ({ table: e }) => /* @__PURE__ */ Y(fn, { table: e })
|
|
3232
3232
|
};
|
|
3233
3233
|
}
|
|
3234
3234
|
function ca(e = "Details") {
|
|
@@ -3248,8 +3248,8 @@ function ca(e = "Details") {
|
|
|
3248
3248
|
enableGlobalFilter: !1,
|
|
3249
3249
|
enableHiding: !1,
|
|
3250
3250
|
enablePinning: !1,
|
|
3251
|
-
header: ({ table: e }) => /* @__PURE__ */
|
|
3252
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
3251
|
+
header: ({ table: e }) => /* @__PURE__ */ Y(Lt, { table: e }),
|
|
3252
|
+
cell: ({ row: e }) => /* @__PURE__ */ Y(It, { row: e })
|
|
3253
3253
|
};
|
|
3254
3254
|
}
|
|
3255
3255
|
function la(e = "Edit", t = !1) {
|
|
@@ -3271,8 +3271,8 @@ function la(e = "Edit", t = !1) {
|
|
|
3271
3271
|
enableHiding: !1,
|
|
3272
3272
|
enablePinning: !1,
|
|
3273
3273
|
header: () => null,
|
|
3274
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
3275
|
-
aggregatedCell: ({ row: e }) => /* @__PURE__ */
|
|
3274
|
+
cell: ({ row: e }) => /* @__PURE__ */ Y(rn, { row: e }),
|
|
3275
|
+
aggregatedCell: ({ row: e }) => /* @__PURE__ */ Y(rn, { row: e })
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
3278
|
//#endregion
|
|
@@ -3331,9 +3331,9 @@ function _a(e) {
|
|
|
3331
3331
|
...e
|
|
3332
3332
|
});
|
|
3333
3333
|
}
|
|
3334
|
-
function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination: a, resetPageOnQueryChange: l, enableRowNumbers: u, selectionMode: d, showSelectedBackground: f, defaultHighlightedRowId: p, onHighlightedRowChange: m, cellSelection: h, onFocusedCellChange: g, filters: _, exportOptions: v, editing: y, renderDetails: b, renderDetailsEstHeight: x = pa,
|
|
3335
|
-
let
|
|
3336
|
-
...
|
|
3334
|
+
function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination: a, resetPageOnQueryChange: l, enableRowNumbers: u, selectionMode: d, showSelectedBackground: f, defaultHighlightedRowId: p, onHighlightedRowChange: m, cellSelection: h, onFocusedCellChange: g, filters: _, exportOptions: v, editing: y, renderDetails: b, renderDetailsEstHeight: x = pa, detailsColumnPosition: S = "left", overscan: C = ma, ...w }) {
|
|
3335
|
+
let T = y?.mode, E = y?.draft === !0, D = si({
|
|
3336
|
+
...w,
|
|
3337
3337
|
enableColumnOrdering: r,
|
|
3338
3338
|
enablePagination: a,
|
|
3339
3339
|
enableRowNumbers: u,
|
|
@@ -3341,80 +3341,98 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3341
3341
|
showSelectedBackground: f,
|
|
3342
3342
|
cellSelection: h,
|
|
3343
3343
|
editing: y
|
|
3344
|
-
}),
|
|
3345
|
-
format:
|
|
3346
|
-
fileName:
|
|
3347
|
-
includeHeaders:
|
|
3348
|
-
columns:
|
|
3344
|
+
}), O = o(() => Fr(t), [t]), { format: k, fileName: A, includeHeaders: N, columns: P } = v ?? {}, F = o(() => Ki({
|
|
3345
|
+
format: k,
|
|
3346
|
+
fileName: A,
|
|
3347
|
+
includeHeaders: N,
|
|
3348
|
+
columns: P
|
|
3349
3349
|
}), [
|
|
3350
|
-
O,
|
|
3351
3350
|
k,
|
|
3352
3351
|
A,
|
|
3353
|
-
N
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3352
|
+
N,
|
|
3353
|
+
P
|
|
3354
|
+
]), { surface: I, sidebarSide: L, sidebarWidth: R, defaultOpen: z, inHeader: B } = _ ?? {}, V = o(() => Or({
|
|
3355
|
+
surface: I,
|
|
3356
|
+
sidebarSide: L,
|
|
3357
|
+
sidebarWidth: R,
|
|
3358
|
+
defaultOpen: z,
|
|
3359
|
+
inHeader: B
|
|
3360
3360
|
}), [
|
|
3361
|
-
F,
|
|
3362
3361
|
I,
|
|
3363
3362
|
L,
|
|
3364
3363
|
R,
|
|
3365
|
-
z
|
|
3366
|
-
|
|
3367
|
-
|
|
3364
|
+
z,
|
|
3365
|
+
B
|
|
3366
|
+
]), H = w.enableColumnPinning !== !1, U = D.selectColumn, W = D.grouping, ee = b !== void 0, G = y !== void 0 && (y.mode === "row" || E || y.onRowDelete !== void 0), te = O.selectColumnLabel, ne = O.groupColumnLabel, re = O.detailsColumnLabel, ie = O.editColumnLabel, ae = O.rowNumberColumnLabel, oe = D.rowNumbers, K = E, q = (e) => {
|
|
3367
|
+
let t = (e) => (e ?? []).filter((e) => !Vn(e)), n = (e, t) => e && H ? [t] : [], r = (e) => ee && S === e;
|
|
3368
|
+
return {
|
|
3369
|
+
start: [
|
|
3370
|
+
...n(oe, mn),
|
|
3371
|
+
...n(U, Dn),
|
|
3372
|
+
...n(W, ln),
|
|
3373
|
+
...n(r("left"), Ft),
|
|
3374
|
+
...t(e?.start)
|
|
3375
|
+
],
|
|
3376
|
+
end: [
|
|
3377
|
+
...t(e?.end),
|
|
3378
|
+
...n(r("right"), Ft),
|
|
3379
|
+
...n(G, tn)
|
|
3380
|
+
]
|
|
3381
|
+
};
|
|
3382
|
+
}, se = o(() => {
|
|
3383
|
+
let e = _a(w.columns), t = ee ? [ca(re)] : [];
|
|
3368
3384
|
return [
|
|
3369
|
-
...
|
|
3370
|
-
...
|
|
3371
|
-
...
|
|
3372
|
-
...
|
|
3385
|
+
...oe ? [hn(ae)] : [],
|
|
3386
|
+
...U ? [oa(te)] : [],
|
|
3387
|
+
...W ? [sa(ne)] : [],
|
|
3388
|
+
...S === "left" ? t : [],
|
|
3373
3389
|
...e,
|
|
3374
|
-
...
|
|
3390
|
+
...S === "right" ? t : [],
|
|
3391
|
+
...G ? [la(ie, K)] : []
|
|
3375
3392
|
];
|
|
3376
3393
|
}, [
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
H,
|
|
3380
|
-
W,
|
|
3394
|
+
w.columns,
|
|
3395
|
+
oe,
|
|
3381
3396
|
U,
|
|
3382
3397
|
ee,
|
|
3383
|
-
|
|
3384
|
-
|
|
3398
|
+
S,
|
|
3399
|
+
W,
|
|
3385
3400
|
G,
|
|
3401
|
+
K,
|
|
3402
|
+
ae,
|
|
3386
3403
|
te,
|
|
3387
3404
|
ne,
|
|
3388
|
-
re
|
|
3389
|
-
|
|
3390
|
-
|
|
3405
|
+
re,
|
|
3406
|
+
ie
|
|
3407
|
+
]), [J] = c(() => ai(e, ri(se))), ce = J.grouping ?? w.initialState?.grouping ?? [], le = s((w.state?.grouping ?? ce).length > 0), ue = vi(w.state), de = ue?.columnVisibility, Y = ue !== void 0 && de !== void 0 ? {
|
|
3408
|
+
...ue,
|
|
3391
3409
|
columnVisibility: {
|
|
3392
|
-
...ga(
|
|
3393
|
-
...
|
|
3410
|
+
...ga(de),
|
|
3411
|
+
...W ? { [ln]: le.current } : {}
|
|
3394
3412
|
}
|
|
3395
|
-
} :
|
|
3396
|
-
|
|
3397
|
-
let pe = s(null),
|
|
3413
|
+
} : ue, X = s(void 0), fe = s(!1), Z = fe.current ? Y : yi(Y, X.current);
|
|
3414
|
+
fe.current = !1, X.current = Z;
|
|
3415
|
+
let pe = s(null), me = n((e) => {
|
|
3398
3416
|
let t = e.columnResizing, n = pe.current;
|
|
3399
3417
|
return n === null || n.isResizingColumn !== t.isResizingColumn ? (pe.current = t, e) : {
|
|
3400
3418
|
...e,
|
|
3401
3419
|
columnResizing: n
|
|
3402
3420
|
};
|
|
3403
|
-
}, []),
|
|
3404
|
-
|
|
3405
|
-
let
|
|
3406
|
-
let e =
|
|
3407
|
-
for (let e of
|
|
3408
|
-
let r =
|
|
3421
|
+
}, []), he = s(null), [_e] = c(() => $t(() => he.current)), ve = _e, ye = M(ve.store, (e) => e.committedValues), be = D.editNewRowsSticky, xe = M(ve.store, (e) => be ? ha : e.newRows.filter((e) => e.committed).map((e) => e.tempId), { compare: ge }), Se = s(w.getRowId);
|
|
3422
|
+
Se.current = w.getRowId;
|
|
3423
|
+
let Ce = o(() => {
|
|
3424
|
+
let e = Se.current, t = /* @__PURE__ */ new Map(), n = [];
|
|
3425
|
+
for (let e of xe) {
|
|
3426
|
+
let r = ye[e];
|
|
3409
3427
|
r !== void 0 && (t.set(r, e), n.push(r));
|
|
3410
3428
|
}
|
|
3411
|
-
let r = Object.keys(
|
|
3429
|
+
let r = Object.keys(ye).length;
|
|
3412
3430
|
if (r === 0) return {
|
|
3413
|
-
rows:
|
|
3431
|
+
rows: w.data,
|
|
3414
3432
|
idOf: t
|
|
3415
3433
|
};
|
|
3416
|
-
let i = r === n.length ?
|
|
3417
|
-
let i = e?.(n, r, void 0) ?? String(r), a =
|
|
3434
|
+
let i = r === n.length ? w.data : w.data.map((n, r) => {
|
|
3435
|
+
let i = e?.(n, r, void 0) ?? String(r), a = ye[i];
|
|
3418
3436
|
return a === void 0 ? n : (t.set(a, i), a);
|
|
3419
3437
|
});
|
|
3420
3438
|
return {
|
|
@@ -3422,68 +3440,62 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3422
3440
|
idOf: t
|
|
3423
3441
|
};
|
|
3424
3442
|
}, [
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
]),
|
|
3429
|
-
|
|
3430
|
-
let
|
|
3443
|
+
w.data,
|
|
3444
|
+
ye,
|
|
3445
|
+
xe
|
|
3446
|
+
]), we = s(Ce.idOf);
|
|
3447
|
+
we.current = Ce.idOf;
|
|
3448
|
+
let Te = n((e, t, n) => we.current.get(e) ?? Se.current?.(e, t, n) ?? (n === void 0 ? String(t) : `${n.id}.${t}`), []), Ee = s(null), De = l ?? !0, Oe = n(() => Ee.current, []);
|
|
3431
3449
|
Si();
|
|
3432
|
-
let
|
|
3450
|
+
let ke = Je({
|
|
3433
3451
|
columnResizeMode: "onEnd",
|
|
3434
3452
|
autoResetExpanded: !1,
|
|
3435
3453
|
autoResetPageIndex: !1,
|
|
3436
3454
|
enableSorting: !0,
|
|
3437
3455
|
enableColumnResizing: !0,
|
|
3438
|
-
globalFilterFn:
|
|
3456
|
+
globalFilterFn: w.quickSearchMode === "contains" ? "includesString" : "tmDataGridFuzzy",
|
|
3439
3457
|
groupedColumnMode: "remove",
|
|
3440
|
-
...
|
|
3441
|
-
...
|
|
3442
|
-
onColumnFiltersChange: ji("columnFilters",
|
|
3443
|
-
onGlobalFilterChange: ji("globalFilter",
|
|
3444
|
-
onSortingChange: ji("sorting",
|
|
3445
|
-
onGroupingChange: ji("grouping",
|
|
3458
|
+
...w,
|
|
3459
|
+
...De ? {
|
|
3460
|
+
onColumnFiltersChange: ji("columnFilters", w.onColumnFiltersChange, Oe),
|
|
3461
|
+
onGlobalFilterChange: ji("globalFilter", w.onGlobalFilterChange, Oe),
|
|
3462
|
+
onSortingChange: ji("sorting", w.onSortingChange, Oe),
|
|
3463
|
+
onGroupingChange: ji("grouping", w.onGroupingChange, Oe)
|
|
3446
3464
|
} : {},
|
|
3447
|
-
data:
|
|
3448
|
-
getRowId:
|
|
3449
|
-
...b === void 0 ? {} : { getRowCanExpand:
|
|
3450
|
-
enableRowPinning: (e) => !e.getIsGrouped() && (typeof
|
|
3451
|
-
...
|
|
3465
|
+
data: Ce.rows,
|
|
3466
|
+
getRowId: Te,
|
|
3467
|
+
...b === void 0 ? {} : { getRowCanExpand: w.getRowCanExpand ?? (() => !0) },
|
|
3468
|
+
enableRowPinning: (e) => !e.getIsGrouped() && (typeof w.enableRowPinning == "function" ? w.enableRowPinning(e) : w.enableRowPinning === !0),
|
|
3469
|
+
...E ? { enableRowSelection: (e) => !_e.isRowDeleted(e.id) && (typeof w.enableRowSelection == "function" ? w.enableRowSelection(e) : w.enableRowSelection !== !1) } : {},
|
|
3452
3470
|
features: da,
|
|
3453
3471
|
columns: se,
|
|
3454
|
-
state:
|
|
3472
|
+
state: Z,
|
|
3455
3473
|
initialState: {
|
|
3456
|
-
...
|
|
3457
|
-
...
|
|
3474
|
+
...w.initialState,
|
|
3475
|
+
...J,
|
|
3458
3476
|
columnVisibility: {
|
|
3459
3477
|
...ga({
|
|
3460
|
-
...
|
|
3461
|
-
...
|
|
3478
|
+
...w.initialState?.columnVisibility,
|
|
3479
|
+
...J.columnVisibility
|
|
3462
3480
|
}),
|
|
3463
|
-
...
|
|
3464
|
-
},
|
|
3465
|
-
columnPinning: {
|
|
3466
|
-
start: [
|
|
3467
|
-
...ae && V ? [mn] : [],
|
|
3468
|
-
...H && V ? [Dn] : [],
|
|
3469
|
-
...U && V ? [ln] : [],
|
|
3470
|
-
...W && V ? [Ft] : [],
|
|
3471
|
-
...(K.columnPinning?.start ?? C.initialState?.columnPinning?.start ?? []).filter((e) => e !== "__rowNumber__" && e !== "__select__" && e !== "__details__" && e !== "__group__")
|
|
3472
|
-
],
|
|
3473
|
-
end: [...(K.columnPinning?.end ?? C.initialState?.columnPinning?.end ?? []).filter((e) => e !== tn), ...ee && V ? [tn] : []]
|
|
3481
|
+
...W ? { [ln]: ce.length > 0 } : {}
|
|
3474
3482
|
},
|
|
3483
|
+
columnPinning: q({
|
|
3484
|
+
start: J.columnPinning?.start ?? w.initialState?.columnPinning?.start,
|
|
3485
|
+
end: J.columnPinning?.end ?? w.initialState?.columnPinning?.end
|
|
3486
|
+
}),
|
|
3475
3487
|
pagination: {
|
|
3476
3488
|
pageIndex: 0,
|
|
3477
3489
|
pageSize: 25,
|
|
3478
|
-
...
|
|
3479
|
-
...
|
|
3490
|
+
...w.initialState?.pagination,
|
|
3491
|
+
...J.pagination
|
|
3480
3492
|
}
|
|
3481
3493
|
}
|
|
3482
|
-
},
|
|
3483
|
-
Ci(),
|
|
3484
|
-
table:
|
|
3485
|
-
editMode:
|
|
3486
|
-
draft:
|
|
3494
|
+
}, me);
|
|
3495
|
+
Ci(), Ee.current = ke, Ti(ke.store), he.current = {
|
|
3496
|
+
table: ke,
|
|
3497
|
+
editMode: T ?? "cell",
|
|
3498
|
+
draft: E,
|
|
3487
3499
|
rowValidators: y?.rowValidators,
|
|
3488
3500
|
tableValidators: y?.tableValidators,
|
|
3489
3501
|
editableColumnIds: y?.columns,
|
|
@@ -3494,61 +3506,61 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3494
3506
|
onRowAdd: y?.onRowAdd,
|
|
3495
3507
|
onRowDelete: y?.onRowDelete
|
|
3496
3508
|
};
|
|
3497
|
-
let
|
|
3498
|
-
editMode:
|
|
3499
|
-
editDraft:
|
|
3509
|
+
let Ae = s({
|
|
3510
|
+
editMode: T,
|
|
3511
|
+
editDraft: E
|
|
3500
3512
|
});
|
|
3501
3513
|
i(() => {
|
|
3502
|
-
let e =
|
|
3503
|
-
e.editMode ===
|
|
3504
|
-
editMode:
|
|
3505
|
-
editDraft:
|
|
3506
|
-
},
|
|
3514
|
+
let e = Ae.current;
|
|
3515
|
+
e.editMode === T && e.editDraft === E || (Ae.current = {
|
|
3516
|
+
editMode: T,
|
|
3517
|
+
editDraft: E
|
|
3518
|
+
}, ve.cancelAll());
|
|
3507
3519
|
}, [
|
|
3508
|
-
w,
|
|
3509
3520
|
T,
|
|
3510
|
-
|
|
3521
|
+
E,
|
|
3522
|
+
ve
|
|
3511
3523
|
]);
|
|
3512
|
-
let
|
|
3524
|
+
let je = y !== void 0, Q = w.manualPagination === !0 || w.manualFiltering === !0;
|
|
3513
3525
|
i(() => {
|
|
3514
|
-
!
|
|
3526
|
+
!je || Q || _e.forgetMissingRows(Ee.current.getCoreRowModel().rowsById);
|
|
3515
3527
|
}, [
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
]), i(() => Di(
|
|
3521
|
-
y !== void 0 &&
|
|
3528
|
+
Ce.rows,
|
|
3529
|
+
je,
|
|
3530
|
+
Q,
|
|
3531
|
+
_e
|
|
3532
|
+
]), i(() => Di(Ee.current, _e.isRowDeleted), [_e]), i(() => {
|
|
3533
|
+
y !== void 0 && w.getRowId === void 0 && console.error("TMDataGrid: editing requires getRowId - drafts are keyed by row id, and the index fallback names a different record after any sort or filter.");
|
|
3522
3534
|
}, []), i(() => {
|
|
3523
|
-
for (let { slice: e, handler: t } of bi(
|
|
3535
|
+
for (let { slice: e, handler: t } of bi(w)) console.warn(`TMDataGrid: state.${e} is controlled but no ${t} was passed - the slice cannot change. Add ${t}, or use initialState.${e} for a starting value.`);
|
|
3524
3536
|
}, []), i(() => {
|
|
3525
|
-
if (!
|
|
3526
|
-
let e =
|
|
3527
|
-
|
|
3537
|
+
if (!W) return;
|
|
3538
|
+
let e = ke.store.state.grouping;
|
|
3539
|
+
le.current = e.length > 0, ke.store.state.columnVisibility?.__group__ !== e.length > 0 && ke.setColumnVisibility((t) => ({
|
|
3528
3540
|
...t,
|
|
3529
3541
|
[ln]: e.length > 0
|
|
3530
3542
|
}));
|
|
3531
|
-
let t =
|
|
3532
|
-
t.grouping !== e && (e = t.grouping,
|
|
3543
|
+
let t = ke.store.subscribe((t) => {
|
|
3544
|
+
t.grouping !== e && (e = t.grouping, le.current = t.grouping.length > 0, fe.current = !0, ke.setColumnVisibility((e) => ({
|
|
3533
3545
|
...e,
|
|
3534
3546
|
[ln]: t.grouping.length > 0
|
|
3535
3547
|
})));
|
|
3536
3548
|
});
|
|
3537
3549
|
return () => t.unsubscribe();
|
|
3538
|
-
}, [
|
|
3550
|
+
}, [W, ke]), i(() => {
|
|
3539
3551
|
if (!ei(e)) return;
|
|
3540
|
-
oi(
|
|
3552
|
+
oi(ke.store.state, e);
|
|
3541
3553
|
let t, n = null, r = () => {
|
|
3542
3554
|
t = void 0, n !== null && (oi(n, e), n = null);
|
|
3543
|
-
}, i =
|
|
3555
|
+
}, i = ke.store.subscribe((e) => {
|
|
3544
3556
|
n = e, t !== void 0 && clearTimeout(t), t = setTimeout(r, ua);
|
|
3545
3557
|
});
|
|
3546
3558
|
return () => {
|
|
3547
3559
|
i.unsubscribe(), t !== void 0 && clearTimeout(t), r();
|
|
3548
3560
|
};
|
|
3549
|
-
}, [e,
|
|
3550
|
-
let
|
|
3551
|
-
filterPanelOpen:
|
|
3561
|
+
}, [e, ke]);
|
|
3562
|
+
let Me = j({
|
|
3563
|
+
filterPanelOpen: V.defaultOpen,
|
|
3552
3564
|
filterPanelColumnId: null,
|
|
3553
3565
|
headerFilterColumnId: null,
|
|
3554
3566
|
draggedColumnId: null,
|
|
@@ -3608,56 +3620,47 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3608
3620
|
...e,
|
|
3609
3621
|
cellRange: t
|
|
3610
3622
|
})
|
|
3611
|
-
})),
|
|
3623
|
+
})), Ne = s(m);
|
|
3612
3624
|
i(() => {
|
|
3613
|
-
|
|
3625
|
+
Ne.current = m;
|
|
3614
3626
|
}, [m]), i(() => {
|
|
3615
|
-
let e =
|
|
3616
|
-
t.highlightedRowId !== e && (e = t.highlightedRowId,
|
|
3627
|
+
let e = Me.state.highlightedRowId, t = Me.subscribe((t) => {
|
|
3628
|
+
t.highlightedRowId !== e && (e = t.highlightedRowId, Ne.current?.(t.highlightedRowId));
|
|
3617
3629
|
});
|
|
3618
3630
|
return () => t.unsubscribe();
|
|
3619
|
-
}, [
|
|
3620
|
-
let
|
|
3631
|
+
}, [Me]);
|
|
3632
|
+
let Pe = s(g);
|
|
3621
3633
|
i(() => {
|
|
3622
|
-
|
|
3634
|
+
Pe.current = g;
|
|
3623
3635
|
}, [g]), i(() => {
|
|
3624
|
-
let e =
|
|
3625
|
-
t.focusedCell !== e && (e = t.focusedCell,
|
|
3636
|
+
let e = Me.state.focusedCell, t = Me.subscribe((t) => {
|
|
3637
|
+
t.focusedCell !== e && (e = t.focusedCell, Pe.current?.(t.focusedCell));
|
|
3626
3638
|
});
|
|
3627
3639
|
return () => t.unsubscribe();
|
|
3628
|
-
}, [
|
|
3629
|
-
let
|
|
3630
|
-
|
|
3631
|
-
let e =
|
|
3632
|
-
|
|
3640
|
+
}, [Me]);
|
|
3641
|
+
let Fe = s(() => {});
|
|
3642
|
+
Fe.current = () => {
|
|
3643
|
+
let e = w.initialState, t = [...e?.grouping ?? []];
|
|
3644
|
+
ke.setGrouping(t), ke.setColumnVisibility({
|
|
3633
3645
|
...ga({ ...e?.columnVisibility }),
|
|
3634
|
-
...
|
|
3635
|
-
}),
|
|
3636
|
-
start: [
|
|
3637
|
-
...ae && V ? [mn] : [],
|
|
3638
|
-
...H && V ? [Dn] : [],
|
|
3639
|
-
...U && V ? [ln] : [],
|
|
3640
|
-
...W && V ? [Ft] : [],
|
|
3641
|
-
...(e?.columnPinning?.start ?? []).filter((e) => e !== "__rowNumber__" && e !== "__select__" && e !== "__details__" && e !== "__group__")
|
|
3642
|
-
],
|
|
3643
|
-
end: [...(e?.columnPinning?.end ?? []).filter((e) => e !== tn), ...ee && V ? [tn] : []]
|
|
3644
|
-
});
|
|
3646
|
+
...W ? { [ln]: t.length > 0 } : {}
|
|
3647
|
+
}), ke.setColumnSizing({ ...e?.columnSizing }), ke.setColumnOrder([...e?.columnOrder ?? []]), ke.setColumnPinning(q(e?.columnPinning));
|
|
3645
3648
|
};
|
|
3646
|
-
let
|
|
3649
|
+
let Ie = n(() => Fe.current(), []), Le = s(() => !1);
|
|
3647
3650
|
return {
|
|
3648
|
-
table:
|
|
3649
|
-
ui:
|
|
3650
|
-
edit:
|
|
3651
|
-
features:
|
|
3652
|
-
filters:
|
|
3653
|
-
exportOptions:
|
|
3654
|
-
labels:
|
|
3651
|
+
table: ke,
|
|
3652
|
+
ui: Me,
|
|
3653
|
+
edit: ve,
|
|
3654
|
+
features: D,
|
|
3655
|
+
filters: V,
|
|
3656
|
+
exportOptions: F,
|
|
3657
|
+
labels: O,
|
|
3655
3658
|
renderDetails: b,
|
|
3656
3659
|
renderDetailsEstHeight: x,
|
|
3657
|
-
overscan:
|
|
3658
|
-
resetSettings:
|
|
3659
|
-
scrollToRow: n((e) =>
|
|
3660
|
-
scrollerRef:
|
|
3660
|
+
overscan: C,
|
|
3661
|
+
resetSettings: Ie,
|
|
3662
|
+
scrollToRow: n((e) => Le.current(e), []),
|
|
3663
|
+
scrollerRef: Le
|
|
3661
3664
|
};
|
|
3662
3665
|
}
|
|
3663
3666
|
function ya(e, t) {
|
|
@@ -3700,7 +3703,7 @@ function xa(t) {
|
|
|
3700
3703
|
"data-dg-part": "filter-pill-remove",
|
|
3701
3704
|
"data-column-id": e.id
|
|
3702
3705
|
};
|
|
3703
|
-
return /* @__PURE__ */
|
|
3706
|
+
return /* @__PURE__ */ Y(x, {
|
|
3704
3707
|
size: l,
|
|
3705
3708
|
className: Dr.pill,
|
|
3706
3709
|
"data-dg-part": "filter-pill",
|
|
@@ -3713,7 +3716,7 @@ function xa(t) {
|
|
|
3713
3716
|
tabIndex: 0,
|
|
3714
3717
|
...o
|
|
3715
3718
|
},
|
|
3716
|
-
children: /* @__PURE__ */
|
|
3719
|
+
children: /* @__PURE__ */ Y(A, {
|
|
3717
3720
|
className: Dr.pillLabel,
|
|
3718
3721
|
onClick: () => a ? a(e.id) : ba(r, e.id),
|
|
3719
3722
|
children: wt({
|
|
@@ -3730,12 +3733,12 @@ function xa(t) {
|
|
|
3730
3733
|
} else g = n[15], _ = n[16], v = n[17], y = n[18], b = n[19], S = n[20], C = n[21], w = n[22], T = n[23], E = n[24], D = n[25];
|
|
3731
3734
|
if (y !== Symbol.for("react.early_return_sentinel")) return y;
|
|
3732
3735
|
let O;
|
|
3733
|
-
n[35] !== g || n[36] !== b || n[37] !== S ? (O = /* @__PURE__ */
|
|
3736
|
+
n[35] !== g || n[36] !== b || n[37] !== S ? (O = /* @__PURE__ */ Y(g, {
|
|
3734
3737
|
size: b,
|
|
3735
3738
|
children: S
|
|
3736
3739
|
}), n[35] = g, n[36] = b, n[37] = S, n[38] = O) : O = n[38];
|
|
3737
3740
|
let k;
|
|
3738
|
-
n[39] !== v || n[40] !== m.clearAllFilters || n[41] !== u || n[42] !== p ? (k = u && v.length > 1 && /* @__PURE__ */
|
|
3741
|
+
n[39] !== v || n[40] !== m.clearAllFilters || n[41] !== u || n[42] !== p ? (k = u && v.length > 1 && /* @__PURE__ */ Y(f, {
|
|
3739
3742
|
variant: "subtle",
|
|
3740
3743
|
color: "gray",
|
|
3741
3744
|
size: "compact-xs",
|
|
@@ -3743,7 +3746,7 @@ function xa(t) {
|
|
|
3743
3746
|
children: m.clearAllFilters
|
|
3744
3747
|
}), n[39] = v, n[40] = m.clearAllFilters, n[41] = u, n[42] = p, n[43] = k) : k = n[43];
|
|
3745
3748
|
let j;
|
|
3746
|
-
return n[44] !== _ || n[45] !== O || n[46] !== k || n[47] !== C || n[48] !== w || n[49] !== T || n[50] !== E || n[51] !== D ? (j = /* @__PURE__ */
|
|
3749
|
+
return n[44] !== _ || n[45] !== O || n[46] !== k || n[47] !== C || n[48] !== w || n[49] !== T || n[50] !== E || n[51] !== D ? (j = /* @__PURE__ */ X(_, {
|
|
3747
3750
|
role: C,
|
|
3748
3751
|
"aria-label": w,
|
|
3749
3752
|
"data-dg-part": T,
|
|
@@ -3804,7 +3807,7 @@ function ka(t) {
|
|
|
3804
3807
|
let l = c, { pageSize: u } = i.store.state.pagination, d;
|
|
3805
3808
|
n[3] !== u || n[4] !== r ? (d = r.includes(u) ? r : [...r, u].sort(Aa), n[3] = u, n[4] = r, n[5] = d) : d = n[5];
|
|
3806
3809
|
let f = d, p;
|
|
3807
|
-
n[6] !== s || n[7] !== o.rowsPerPage ? (p = /* @__PURE__ */
|
|
3810
|
+
n[6] !== s || n[7] !== o.rowsPerPage ? (p = /* @__PURE__ */ Y(D, {
|
|
3808
3811
|
span: !0,
|
|
3809
3812
|
size: s,
|
|
3810
3813
|
c: "dimmed",
|
|
@@ -3817,7 +3820,7 @@ function ka(t) {
|
|
|
3817
3820
|
i.setPageSize(Number(e) || r[0]), i.setPageIndex(0);
|
|
3818
3821
|
}, n[11] = r[0], n[12] = i, n[13] = v) : v = n[13];
|
|
3819
3822
|
let y;
|
|
3820
|
-
n[14] !== s || n[15] !== h || n[16] !== g || n[17] !== _ || n[18] !== v ? (y = /* @__PURE__ */
|
|
3823
|
+
n[14] !== s || n[15] !== h || n[16] !== g || n[17] !== _ || n[18] !== v ? (y = /* @__PURE__ */ Y(T, {
|
|
3821
3824
|
size: s,
|
|
3822
3825
|
w: 78,
|
|
3823
3826
|
allowDeselect: !1,
|
|
@@ -3829,7 +3832,7 @@ function ka(t) {
|
|
|
3829
3832
|
onChange: v
|
|
3830
3833
|
}), n[14] = s, n[15] = h, n[16] = g, n[17] = _, n[18] = v, n[19] = y) : y = n[19];
|
|
3831
3834
|
let b;
|
|
3832
|
-
return n[20] !== p || n[21] !== y ? (b = /* @__PURE__ */
|
|
3835
|
+
return n[20] !== p || n[21] !== y ? (b = /* @__PURE__ */ X(m, {
|
|
3833
3836
|
gap: "xs",
|
|
3834
3837
|
wrap: "nowrap",
|
|
3835
3838
|
children: [p, y]
|
|
@@ -3853,7 +3856,7 @@ function ja() {
|
|
|
3853
3856
|
}) : i.groupedAllRows(n.getFilteredRowModel().rows.length), t[3] = a, t[4] = i, t[5] = c, t[6] = l, t[7] = s, t[8] = n, t[9] = u, t[10] = d, t[11] = f, t[12] = p, t[13] = m, t[14] = h;
|
|
3854
3857
|
} else u = t[9], d = t[10], f = t[11], p = t[12], m = t[13], h = t[14];
|
|
3855
3858
|
let g;
|
|
3856
|
-
return t[15] !== u || t[16] !== d || t[17] !== f || t[18] !== p || t[19] !== m || t[20] !== h ? (g = /* @__PURE__ */
|
|
3859
|
+
return t[15] !== u || t[16] !== d || t[17] !== f || t[18] !== p || t[19] !== m || t[20] !== h ? (g = /* @__PURE__ */ Y(u, {
|
|
3857
3860
|
span: d,
|
|
3858
3861
|
size: f,
|
|
3859
3862
|
c: p,
|
|
@@ -3872,7 +3875,7 @@ function Ma() {
|
|
|
3872
3875
|
pageCount: n.getPageCount()
|
|
3873
3876
|
}) : i.groupedAllRows(n.getFilteredRowModel().rows.length), t[3] = i, t[4] = c, t[5] = s, t[6] = n, t[7] = l) : l = t[7];
|
|
3874
3877
|
let u;
|
|
3875
|
-
return t[8] !== a || t[9] !== l ? (u = /* @__PURE__ */
|
|
3878
|
+
return t[8] !== a || t[9] !== l ? (u = /* @__PURE__ */ Y(D, {
|
|
3876
3879
|
span: !0,
|
|
3877
3880
|
size: a,
|
|
3878
3881
|
c: "dimmed",
|
|
@@ -3890,12 +3893,12 @@ function Na() {
|
|
|
3890
3893
|
let c;
|
|
3891
3894
|
t[6] === n ? c = t[7] : (c = () => n.previousPage(), t[6] = n, t[7] = c);
|
|
3892
3895
|
let u;
|
|
3893
|
-
t[8] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
3896
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Y(H, {
|
|
3894
3897
|
size: 18,
|
|
3895
3898
|
stroke: 1.6
|
|
3896
3899
|
}), t[8] = u) : u = t[8];
|
|
3897
3900
|
let d;
|
|
3898
|
-
t[9] !== i.previousPage || t[10] !== s || t[11] !== c ? (d = /* @__PURE__ */
|
|
3901
|
+
t[9] !== i.previousPage || t[10] !== s || t[11] !== c ? (d = /* @__PURE__ */ Y(l, {
|
|
3899
3902
|
variant: "subtle",
|
|
3900
3903
|
color: "gray",
|
|
3901
3904
|
"aria-label": i.previousPage,
|
|
@@ -3909,12 +3912,12 @@ function Na() {
|
|
|
3909
3912
|
let p;
|
|
3910
3913
|
t[16] === n ? p = t[17] : (p = () => n.nextPage(), t[16] = n, t[17] = p);
|
|
3911
3914
|
let h;
|
|
3912
|
-
t[18] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */
|
|
3915
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ Y(U, {
|
|
3913
3916
|
size: 18,
|
|
3914
3917
|
stroke: 1.6
|
|
3915
3918
|
}), t[18] = h) : h = t[18];
|
|
3916
3919
|
let g;
|
|
3917
|
-
t[19] !== i.nextPage || t[20] !== f || t[21] !== p ? (g = /* @__PURE__ */
|
|
3920
|
+
t[19] !== i.nextPage || t[20] !== f || t[21] !== p ? (g = /* @__PURE__ */ Y(l, {
|
|
3918
3921
|
variant: "subtle",
|
|
3919
3922
|
color: "gray",
|
|
3920
3923
|
"aria-label": i.nextPage,
|
|
@@ -3924,7 +3927,7 @@ function Na() {
|
|
|
3924
3927
|
children: h
|
|
3925
3928
|
}), t[19] = i.nextPage, t[20] = f, t[21] = p, t[22] = g) : g = t[22];
|
|
3926
3929
|
let _;
|
|
3927
|
-
return t[23] !== d || t[24] !== g ? (_ = /* @__PURE__ */
|
|
3930
|
+
return t[23] !== d || t[24] !== g ? (_ = /* @__PURE__ */ X(m, {
|
|
3928
3931
|
gap: 4,
|
|
3929
3932
|
wrap: "nowrap",
|
|
3930
3933
|
children: [d, g]
|
|
@@ -3945,7 +3948,7 @@ function Fa(t) {
|
|
|
3945
3948
|
Ea(u.store);
|
|
3946
3949
|
let m;
|
|
3947
3950
|
n[7] === s ? m = n[8] : (m = {
|
|
3948
|
-
PageSize: () => /* @__PURE__ */
|
|
3951
|
+
PageSize: () => /* @__PURE__ */ Y(ka, { pageSizeOptions: s }),
|
|
3949
3952
|
Range: ja,
|
|
3950
3953
|
PageNumber: Ma,
|
|
3951
3954
|
Pager: Na
|
|
@@ -3957,7 +3960,7 @@ function Fa(t) {
|
|
|
3957
3960
|
_ = Symbol.for("react.early_return_sentinel");
|
|
3958
3961
|
bb0: if (g = wn(u, f), a) {
|
|
3959
3962
|
let { state: e, actions: t } = Oa(u, g);
|
|
3960
|
-
_ = /* @__PURE__ */
|
|
3963
|
+
_ = /* @__PURE__ */ Y(d, {
|
|
3961
3964
|
"data-dg-part": "footer",
|
|
3962
3965
|
className: l,
|
|
3963
3966
|
...i,
|
|
@@ -3973,13 +3976,13 @@ function Fa(t) {
|
|
|
3973
3976
|
} else g = n[15], _ = n[16];
|
|
3974
3977
|
if (_ !== Symbol.for("react.early_return_sentinel")) return _;
|
|
3975
3978
|
let v = !g || void 0, y;
|
|
3976
|
-
n[17] === h.PageSize ? y = n[18] : (y = /* @__PURE__ */
|
|
3979
|
+
n[17] === h.PageSize ? y = n[18] : (y = /* @__PURE__ */ Y(h.PageSize, {}), n[17] = h.PageSize, n[18] = y);
|
|
3977
3980
|
let b;
|
|
3978
|
-
n[19] === h.Range ? b = n[20] : (b = /* @__PURE__ */
|
|
3981
|
+
n[19] === h.Range ? b = n[20] : (b = /* @__PURE__ */ Y(h.Range, {}), n[19] = h.Range, n[20] = b);
|
|
3979
3982
|
let x;
|
|
3980
|
-
n[21] === h.Pager ? x = n[22] : (x = /* @__PURE__ */
|
|
3983
|
+
n[21] === h.Pager ? x = n[22] : (x = /* @__PURE__ */ Y(h.Pager, {}), n[21] = h.Pager, n[22] = x);
|
|
3981
3984
|
let S;
|
|
3982
|
-
n[23] !== l || n[24] !== i || n[25] !== v || n[26] !== y || n[27] !== b || n[28] !== x ? (S = /* @__PURE__ */
|
|
3985
|
+
n[23] !== l || n[24] !== i || n[25] !== v || n[26] !== y || n[27] !== b || n[28] !== x ? (S = /* @__PURE__ */ X(d, {
|
|
3983
3986
|
"data-dg-part": "footer",
|
|
3984
3987
|
className: l,
|
|
3985
3988
|
"data-paging-suspended": v,
|
|
@@ -3991,7 +3994,7 @@ function Fa(t) {
|
|
|
3991
3994
|
]
|
|
3992
3995
|
}), n[23] = l, n[24] = i, n[25] = v, n[26] = y, n[27] = b, n[28] = x, n[29] = S) : S = n[29];
|
|
3993
3996
|
let C;
|
|
3994
|
-
return n[30] !== p.pagingSuspendedHint || n[31] !== g || n[32] !== S ? (C = /* @__PURE__ */
|
|
3997
|
+
return n[30] !== p.pagingSuspendedHint || n[31] !== g || n[32] !== S ? (C = /* @__PURE__ */ Y(k, {
|
|
3995
3998
|
label: p.pagingSuspendedHint,
|
|
3996
3999
|
disabled: g,
|
|
3997
4000
|
withArrow: !0,
|
|
@@ -4027,7 +4030,7 @@ function Ia(t) {
|
|
|
4027
4030
|
}
|
|
4028
4031
|
//#endregion
|
|
4029
4032
|
//#region src/components/TMDataGridMenu.tsx
|
|
4030
|
-
var La = (e) => /* @__PURE__ */
|
|
4033
|
+
var La = (e) => /* @__PURE__ */ Y("button", {
|
|
4031
4034
|
...e,
|
|
4032
4035
|
role: "menuitemcheckbox"
|
|
4033
4036
|
});
|
|
@@ -4035,12 +4038,12 @@ function Ra(t) {
|
|
|
4035
4038
|
let n = e(20), r, i, a, o;
|
|
4036
4039
|
n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({children: r, icon: i, label: a, ...o} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
4037
4040
|
let { labels: s, controlSize: c } = $(), u = a ?? s.menuButton, d;
|
|
4038
|
-
n[5] === i ? d = n[6] : (d = i ?? /* @__PURE__ */
|
|
4041
|
+
n[5] === i ? d = n[6] : (d = i ?? /* @__PURE__ */ Y(K, {
|
|
4039
4042
|
size: 18,
|
|
4040
4043
|
stroke: 1.6
|
|
4041
4044
|
}), n[5] = i, n[6] = d);
|
|
4042
4045
|
let f;
|
|
4043
|
-
n[7] !== c || n[8] !== d || n[9] !== u ? (f = /* @__PURE__ */
|
|
4046
|
+
n[7] !== c || n[8] !== d || n[9] !== u ? (f = /* @__PURE__ */ Y(_.Target, { children: /* @__PURE__ */ Y(l, {
|
|
4044
4047
|
variant: "subtle",
|
|
4045
4048
|
color: "gray",
|
|
4046
4049
|
size: c,
|
|
@@ -4049,15 +4052,15 @@ function Ra(t) {
|
|
|
4049
4052
|
children: d
|
|
4050
4053
|
}) }), n[7] = c, n[8] = d, n[9] = u, n[10] = f) : f = n[10];
|
|
4051
4054
|
let p;
|
|
4052
|
-
n[11] !== f || n[12] !== u ? (p = /* @__PURE__ */
|
|
4055
|
+
n[11] !== f || n[12] !== u ? (p = /* @__PURE__ */ Y(k, {
|
|
4053
4056
|
label: u,
|
|
4054
4057
|
openDelay: 400,
|
|
4055
4058
|
children: f
|
|
4056
4059
|
}), n[11] = f, n[12] = u, n[13] = p) : p = n[13];
|
|
4057
4060
|
let m;
|
|
4058
|
-
n[14] === r ? m = n[15] : (m = /* @__PURE__ */
|
|
4061
|
+
n[14] === r ? m = n[15] : (m = /* @__PURE__ */ Y(_.Dropdown, { children: r }), n[14] = r, n[15] = m);
|
|
4059
4062
|
let h;
|
|
4060
|
-
return n[16] !== o || n[17] !== p || n[18] !== m ? (h = /* @__PURE__ */
|
|
4063
|
+
return n[16] !== o || n[17] !== p || n[18] !== m ? (h = /* @__PURE__ */ X(_, {
|
|
4061
4064
|
position: "bottom-end",
|
|
4062
4065
|
shadow: "md",
|
|
4063
4066
|
width: 260,
|
|
@@ -4072,7 +4075,7 @@ function za(t) {
|
|
|
4072
4075
|
let d;
|
|
4073
4076
|
n[0] !== s.length || n[1] !== i ? (d = Un(i, s.length), n[0] = s.length, n[1] = i, n[2] = d) : d = n[2];
|
|
4074
4077
|
let f = d, p = Ba, m;
|
|
4075
|
-
n[3] !== o || n[4] !== a || n[5] !== l || n[6] !== f ? (m = f && /* @__PURE__ */
|
|
4078
|
+
n[3] !== o || n[4] !== a || n[5] !== l || n[6] !== f ? (m = f && /* @__PURE__ */ Y(_.Search, {
|
|
4076
4079
|
value: l,
|
|
4077
4080
|
onChange: (e) => u(e.currentTarget.value),
|
|
4078
4081
|
onKeyDown: p,
|
|
@@ -4081,11 +4084,11 @@ function za(t) {
|
|
|
4081
4084
|
"data-dg-part": "columns-search"
|
|
4082
4085
|
}), n[3] = o, n[4] = a, n[5] = l, n[6] = f, n[7] = m) : m = n[7];
|
|
4083
4086
|
let h;
|
|
4084
|
-
n[8] === l ? h = n[9] : (h = /* @__PURE__ */
|
|
4087
|
+
n[8] === l ? h = n[9] : (h = /* @__PURE__ */ Y(Va, { search: l }), n[8] = l, n[9] = h);
|
|
4085
4088
|
let g, v, y;
|
|
4086
|
-
n[10] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */
|
|
4089
|
+
n[10] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ Y(_.Divider, {}), v = /* @__PURE__ */ Y(Ha, {}), y = /* @__PURE__ */ Y(Ua, {}), n[10] = g, n[11] = v, n[12] = y) : (g = n[10], v = n[11], y = n[12]);
|
|
4087
4090
|
let b;
|
|
4088
|
-
return n[13] !== m || n[14] !== h ? (b = /* @__PURE__ */
|
|
4091
|
+
return n[13] !== m || n[14] !== h ? (b = /* @__PURE__ */ X(de, { children: [
|
|
4089
4092
|
m,
|
|
4090
4093
|
h,
|
|
4091
4094
|
g,
|
|
@@ -4107,13 +4110,13 @@ function Va(t) {
|
|
|
4107
4110
|
l = e ? o.filter((t) => Mn(t).toLowerCase().includes(e)) : o, n[0] = o, n[1] = c, n[2] = l;
|
|
4108
4111
|
} else l = n[2];
|
|
4109
4112
|
let u = l, d;
|
|
4110
|
-
n[3] !== s || n[4] !== a || n[5] !== i || n[6] !== u || n[7] !== r ? (d = u.length === 0 ? /* @__PURE__ */
|
|
4113
|
+
n[3] !== s || n[4] !== a || n[5] !== i || n[6] !== u || n[7] !== r ? (d = u.length === 0 ? /* @__PURE__ */ Y(_.Label, { children: i.columnsNoMatch(r ?? "") }) : u.map((e) => {
|
|
4111
4114
|
let t = s[e.id] !== !1;
|
|
4112
|
-
return /* @__PURE__ */
|
|
4115
|
+
return /* @__PURE__ */ Y(_.Item, {
|
|
4113
4116
|
renderRoot: La,
|
|
4114
4117
|
"aria-checked": t,
|
|
4115
4118
|
closeMenuOnClick: !1,
|
|
4116
|
-
leftSection: /* @__PURE__ */
|
|
4119
|
+
leftSection: /* @__PURE__ */ Y(p.Indicator, {
|
|
4117
4120
|
checked: t,
|
|
4118
4121
|
size: a
|
|
4119
4122
|
}),
|
|
@@ -4124,7 +4127,7 @@ function Va(t) {
|
|
|
4124
4127
|
}, e.id);
|
|
4125
4128
|
}), n[3] = s, n[4] = a, n[5] = i, n[6] = u, n[7] = r, n[8] = d) : d = n[8];
|
|
4126
4129
|
let f;
|
|
4127
|
-
return n[9] === d ? f = n[10] : (f = /* @__PURE__ */
|
|
4130
|
+
return n[9] === d ? f = n[10] : (f = /* @__PURE__ */ Y(C.Autosize, {
|
|
4128
4131
|
mah: 260,
|
|
4129
4132
|
type: "auto",
|
|
4130
4133
|
children: d
|
|
@@ -4134,7 +4137,7 @@ function Ha() {
|
|
|
4134
4137
|
let t = e(12), { labels: n, controlSize: r } = $(), { columns: i, shownCount: a, setAllVisible: o } = Wn();
|
|
4135
4138
|
if (i.length === 0) return null;
|
|
4136
4139
|
let s = a === i.length, c = a > 0 && !s, l = c ? "mixed" : s, u;
|
|
4137
|
-
t[0] !== s || t[1] !== r || t[2] !== c ? (u = /* @__PURE__ */
|
|
4140
|
+
t[0] !== s || t[1] !== r || t[2] !== c ? (u = /* @__PURE__ */ Y(p.Indicator, {
|
|
4138
4141
|
checked: s,
|
|
4139
4142
|
indeterminate: c,
|
|
4140
4143
|
size: r
|
|
@@ -4142,7 +4145,7 @@ function Ha() {
|
|
|
4142
4145
|
let d;
|
|
4143
4146
|
t[4] !== s || t[5] !== o ? (d = () => o(!s), t[4] = s, t[5] = o, t[6] = d) : d = t[6];
|
|
4144
4147
|
let f;
|
|
4145
|
-
return t[7] !== n.columnsShowHideAll || t[8] !== l || t[9] !== u || t[10] !== d ? (f = /* @__PURE__ */
|
|
4148
|
+
return t[7] !== n.columnsShowHideAll || t[8] !== l || t[9] !== u || t[10] !== d ? (f = /* @__PURE__ */ Y(_.Item, {
|
|
4146
4149
|
renderRoot: La,
|
|
4147
4150
|
"aria-checked": l,
|
|
4148
4151
|
closeMenuOnClick: !1,
|
|
@@ -4154,14 +4157,14 @@ function Ha() {
|
|
|
4154
4157
|
}
|
|
4155
4158
|
function Ua() {
|
|
4156
4159
|
let t = e(6), { labels: n, resetSettings: r } = $(), i;
|
|
4157
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
4160
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Y(P, {
|
|
4158
4161
|
size: 16,
|
|
4159
4162
|
stroke: 1.6
|
|
4160
4163
|
}), t[0] = i) : i = t[0];
|
|
4161
4164
|
let a;
|
|
4162
4165
|
t[1] === r ? a = t[2] : (a = () => r(), t[1] = r, t[2] = a);
|
|
4163
4166
|
let o;
|
|
4164
|
-
return t[3] !== n.columnsReset || t[4] !== a ? (o = /* @__PURE__ */
|
|
4167
|
+
return t[3] !== n.columnsReset || t[4] !== a ? (o = /* @__PURE__ */ Y(_.Item, {
|
|
4165
4168
|
leftSection: i,
|
|
4166
4169
|
onClick: a,
|
|
4167
4170
|
"data-dg-part": "columns-reset",
|
|
@@ -4183,7 +4186,7 @@ function Ga(t) {
|
|
|
4183
4186
|
let n = e(11), r;
|
|
4184
4187
|
n[0] === t ? r = n[1] : (r = Wa(t), n[0] = t, n[1] = r);
|
|
4185
4188
|
let { label: i, custom: a, options: o } = r, { ui: s, labels: c } = $(), { exportAll: l } = Ia(o), u;
|
|
4186
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
4189
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Y(G, {
|
|
4187
4190
|
size: 16,
|
|
4188
4191
|
stroke: 1.6
|
|
4189
4192
|
}), n[2] = u) : u = n[2];
|
|
@@ -4195,7 +4198,7 @@ function Ga(t) {
|
|
|
4195
4198
|
}) : l();
|
|
4196
4199
|
}, n[3] = a, n[4] = l, n[5] = o, n[6] = s, n[7] = d) : d = n[7];
|
|
4197
4200
|
let f = i ?? c.exportAll, p;
|
|
4198
|
-
return n[8] !== d || n[9] !== f ? (p = /* @__PURE__ */
|
|
4201
|
+
return n[8] !== d || n[9] !== f ? (p = /* @__PURE__ */ Y(_.Item, {
|
|
4199
4202
|
leftSection: u,
|
|
4200
4203
|
onClick: d,
|
|
4201
4204
|
"data-dg-part": "menu-export",
|
|
@@ -4208,7 +4211,7 @@ function Ka(t) {
|
|
|
4208
4211
|
let { label: i, custom: a, options: o } = r, { ui: s, labels: c } = $(), { exportSelected: l, selectedCount: u, canExportSelected: d } = Ia(o);
|
|
4209
4212
|
if (!d) return null;
|
|
4210
4213
|
let f;
|
|
4211
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
4214
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ Y(G, {
|
|
4212
4215
|
size: 16,
|
|
4213
4216
|
stroke: 1.6
|
|
4214
4217
|
}), n[2] = f) : f = n[2];
|
|
@@ -4222,7 +4225,7 @@ function Ka(t) {
|
|
|
4222
4225
|
let h;
|
|
4223
4226
|
n[8] !== i || n[9] !== c || n[10] !== u ? (h = i ?? c.exportSelected(u), n[8] = i, n[9] = c, n[10] = u, n[11] = h) : h = n[11];
|
|
4224
4227
|
let g;
|
|
4225
|
-
return n[12] !== p || n[13] !== m || n[14] !== h ? (g = /* @__PURE__ */
|
|
4228
|
+
return n[12] !== p || n[13] !== m || n[14] !== h ? (g = /* @__PURE__ */ Y(_.Item, {
|
|
4226
4229
|
leftSection: f,
|
|
4227
4230
|
disabled: p,
|
|
4228
4231
|
onClick: m,
|
|
@@ -4262,12 +4265,12 @@ function Ja(t) {
|
|
|
4262
4265
|
let k = D, A;
|
|
4263
4266
|
n[10] === k ? A = n[11] : (A = (e) => k(e.currentTarget.value), n[10] = k, n[11] = A);
|
|
4264
4267
|
let j = r ?? m.searchPlaceholder, N;
|
|
4265
|
-
n[12] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */
|
|
4268
|
+
n[12] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ Y(ce, {
|
|
4266
4269
|
size: 16,
|
|
4267
4270
|
stroke: 1.6
|
|
4268
4271
|
}), n[12] = N) : N = n[12];
|
|
4269
4272
|
let P;
|
|
4270
|
-
n[13] !== E || n[14] !== _ || n[15] !== m.clearSearch ? (P = _ === "" ? void 0 : /* @__PURE__ */
|
|
4273
|
+
n[13] !== E || n[14] !== _ || n[15] !== m.clearSearch ? (P = _ === "" ? void 0 : /* @__PURE__ */ Y(l, {
|
|
4271
4274
|
variant: "subtle",
|
|
4272
4275
|
color: "gray",
|
|
4273
4276
|
size: "sm",
|
|
@@ -4276,13 +4279,13 @@ function Ja(t) {
|
|
|
4276
4279
|
onClick: () => {
|
|
4277
4280
|
clearTimeout(y.current), v(""), E("");
|
|
4278
4281
|
},
|
|
4279
|
-
children: /* @__PURE__ */
|
|
4282
|
+
children: /* @__PURE__ */ Y(ue, {
|
|
4280
4283
|
size: 14,
|
|
4281
4284
|
stroke: 1.6
|
|
4282
4285
|
})
|
|
4283
4286
|
}), n[13] = E, n[14] = _, n[15] = m.clearSearch, n[16] = P) : P = n[16];
|
|
4284
4287
|
let F;
|
|
4285
|
-
return n[17] !== h || n[18] !== _ || n[19] !== m.searchLabel || n[20] !== j || n[21] !== P || n[22] !== A || n[23] !== d ? (F = /* @__PURE__ */
|
|
4288
|
+
return n[17] !== h || n[18] !== _ || n[19] !== m.searchLabel || n[20] !== j || n[21] !== P || n[22] !== A || n[23] !== d ? (F = /* @__PURE__ */ Y(O, {
|
|
4286
4289
|
size: h,
|
|
4287
4290
|
w: d,
|
|
4288
4291
|
value: _,
|
|
@@ -4314,19 +4317,19 @@ var Xa = {
|
|
|
4314
4317
|
//#region src/components/TMDataGridFilterSurface.tsx
|
|
4315
4318
|
function Qa() {
|
|
4316
4319
|
let t = e(10), { ui: n, labels: r, controlSize: i } = $(), a;
|
|
4317
|
-
t[0] !== i || t[1] !== r.filters ? (a = /* @__PURE__ */
|
|
4320
|
+
t[0] !== i || t[1] !== r.filters ? (a = /* @__PURE__ */ Y(D, {
|
|
4318
4321
|
span: !0,
|
|
4319
4322
|
size: i,
|
|
4320
4323
|
fw: 600,
|
|
4321
4324
|
children: r.filters
|
|
4322
4325
|
}), t[0] = i, t[1] = r.filters, t[2] = a) : a = t[2];
|
|
4323
4326
|
let o;
|
|
4324
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
4327
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Y(ue, {
|
|
4325
4328
|
size: 16,
|
|
4326
4329
|
stroke: 1.6
|
|
4327
4330
|
}), t[3] = o) : o = t[3];
|
|
4328
4331
|
let s;
|
|
4329
|
-
t[4] !== r.closeFilters || t[5] !== n.actions.closeFilterPanel ? (s = /* @__PURE__ */
|
|
4332
|
+
t[4] !== r.closeFilters || t[5] !== n.actions.closeFilterPanel ? (s = /* @__PURE__ */ Y(l, {
|
|
4330
4333
|
variant: "subtle",
|
|
4331
4334
|
color: "gray",
|
|
4332
4335
|
size: "sm",
|
|
@@ -4336,7 +4339,7 @@ function Qa() {
|
|
|
4336
4339
|
children: o
|
|
4337
4340
|
}), t[4] = r.closeFilters, t[5] = n.actions.closeFilterPanel, t[6] = s) : s = t[6];
|
|
4338
4341
|
let c;
|
|
4339
|
-
return t[7] !== a || t[8] !== s ? (c = /* @__PURE__ */
|
|
4342
|
+
return t[7] !== a || t[8] !== s ? (c = /* @__PURE__ */ X("div", {
|
|
4340
4343
|
className: Za.surfaceHeader,
|
|
4341
4344
|
children: [a, s]
|
|
4342
4345
|
}), t[7] = a, t[8] = s, t[9] = c) : c = t[9], c;
|
|
@@ -4372,9 +4375,9 @@ function to() {
|
|
|
4372
4375
|
e.key === "Escape" && (e.stopPropagation(), n.actions.closeFilterPanel());
|
|
4373
4376
|
}, t[4] = n, t[5] = u);
|
|
4374
4377
|
let d, f;
|
|
4375
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */
|
|
4378
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ Y(Qa, {}), f = /* @__PURE__ */ Y(Sr, {}), t[6] = d, t[7] = f) : (d = t[6], f = t[7]);
|
|
4376
4379
|
let p;
|
|
4377
|
-
return t[8] !== r.filters || t[9] !== u ? (p = /* @__PURE__ */
|
|
4380
|
+
return t[8] !== r.filters || t[9] !== u ? (p = /* @__PURE__ */ X("div", {
|
|
4378
4381
|
ref: o,
|
|
4379
4382
|
"data-dg-part": "filter-popup",
|
|
4380
4383
|
className: Za.filterPopup,
|
|
@@ -4396,15 +4399,15 @@ function ro() {
|
|
|
4396
4399
|
e.key === "Escape" && (e.stopPropagation(), n.actions.closeFilterPanel());
|
|
4397
4400
|
}, t[2] = n, t[3] = o);
|
|
4398
4401
|
let s;
|
|
4399
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
4402
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Y(Qa, {}), t[4] = s) : s = t[4];
|
|
4400
4403
|
let c;
|
|
4401
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */
|
|
4404
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ Y(C, {
|
|
4402
4405
|
type: "auto",
|
|
4403
4406
|
className: Za.filterSidebarBody,
|
|
4404
|
-
children: /* @__PURE__ */
|
|
4407
|
+
children: /* @__PURE__ */ Y(Sr, { layout: "stacked" })
|
|
4405
4408
|
}), t[5] = c) : c = t[5];
|
|
4406
4409
|
let l;
|
|
4407
|
-
return t[6] !== r.sidebarSide || t[7] !== i.filters || t[8] !== a || t[9] !== o ? (l = /* @__PURE__ */
|
|
4410
|
+
return t[6] !== r.sidebarSide || t[7] !== i.filters || t[8] !== a || t[9] !== o ? (l = /* @__PURE__ */ X("div", {
|
|
4408
4411
|
"data-dg-part": "filter-sidebar",
|
|
4409
4412
|
"data-side": r.sidebarSide,
|
|
4410
4413
|
className: Za.filterSidebar,
|
|
@@ -4446,10 +4449,10 @@ function so({ column: e }) {
|
|
|
4446
4449
|
e,
|
|
4447
4450
|
_r(e) ? e.getFacetedUniqueValues() : void 0
|
|
4448
4451
|
]), h = Pn(e);
|
|
4449
|
-
return /* @__PURE__ */
|
|
4452
|
+
return /* @__PURE__ */ X(de, { children: [/* @__PURE__ */ Y("div", {
|
|
4450
4453
|
className: ao.headerFilterValue,
|
|
4451
4454
|
"data-dg-filter-value-slot": !0,
|
|
4452
|
-
children: /* @__PURE__ */
|
|
4455
|
+
children: /* @__PURE__ */ Y(m, {
|
|
4453
4456
|
column: e,
|
|
4454
4457
|
table: t,
|
|
4455
4458
|
operator: c,
|
|
@@ -4463,7 +4466,7 @@ function so({ column: e }) {
|
|
|
4463
4466
|
labels: n,
|
|
4464
4467
|
layout: "header"
|
|
4465
4468
|
})
|
|
4466
|
-
}), /* @__PURE__ */
|
|
4469
|
+
}), /* @__PURE__ */ Y(co, {
|
|
4467
4470
|
columnId: e.id,
|
|
4468
4471
|
columnLabel: u,
|
|
4469
4472
|
operator: c,
|
|
@@ -4476,12 +4479,12 @@ function co(t) {
|
|
|
4476
4479
|
let n = e(27), { columnId: r, columnLabel: i, operator: a, isDefault: o, operators: s, onChange: u } = t, { labels: d } = $(), [f, p] = c(!1), m = d.operators[a], h = o ? "gray" : void 0, g;
|
|
4477
4480
|
n[0] !== i || n[1] !== d ? (g = d.filterOperatorFor(i), n[0] = i, n[1] = d, n[2] = g) : g = n[2];
|
|
4478
4481
|
let v;
|
|
4479
|
-
n[3] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */
|
|
4482
|
+
n[3] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ Y(ne, {
|
|
4480
4483
|
size: 14,
|
|
4481
4484
|
stroke: 1.6
|
|
4482
4485
|
}), n[3] = v) : v = n[3];
|
|
4483
4486
|
let y;
|
|
4484
|
-
n[4] !== r || n[5] !== h || n[6] !== g ? (y = /* @__PURE__ */
|
|
4487
|
+
n[4] !== r || n[5] !== h || n[6] !== g ? (y = /* @__PURE__ */ Y(l, {
|
|
4485
4488
|
className: ao.headerFilterOperator,
|
|
4486
4489
|
variant: "subtle",
|
|
4487
4490
|
color: h,
|
|
@@ -4492,7 +4495,7 @@ function co(t) {
|
|
|
4492
4495
|
children: v
|
|
4493
4496
|
}), n[4] = r, n[5] = h, n[6] = g, n[7] = y) : y = n[7];
|
|
4494
4497
|
let b;
|
|
4495
|
-
n[8] !== f || n[9] !== m || n[10] !== y ? (b = /* @__PURE__ */
|
|
4498
|
+
n[8] !== f || n[9] !== m || n[10] !== y ? (b = /* @__PURE__ */ Y(_.Target, { children: /* @__PURE__ */ Y(k, {
|
|
4496
4499
|
label: m,
|
|
4497
4500
|
openDelay: 400,
|
|
4498
4501
|
disabled: f,
|
|
@@ -4501,16 +4504,16 @@ function co(t) {
|
|
|
4501
4504
|
let x;
|
|
4502
4505
|
if (n[12] !== d.operators || n[13] !== u || n[14] !== a || n[15] !== s) {
|
|
4503
4506
|
let e;
|
|
4504
|
-
n[17] !== d.operators || n[18] !== u || n[19] !== a ? (e = (e) => /* @__PURE__ */
|
|
4507
|
+
n[17] !== d.operators || n[18] !== u || n[19] !== a ? (e = (e) => /* @__PURE__ */ Y(_.Item, {
|
|
4505
4508
|
className: e === a ? ao.operatorItemActive : void 0,
|
|
4506
4509
|
onClick: () => u(e),
|
|
4507
4510
|
children: d.operators[e]
|
|
4508
4511
|
}, e), n[17] = d.operators, n[18] = u, n[19] = a, n[20] = e) : e = n[20], x = s.map(e), n[12] = d.operators, n[13] = u, n[14] = a, n[15] = s, n[16] = x;
|
|
4509
4512
|
} else x = n[16];
|
|
4510
4513
|
let S;
|
|
4511
|
-
n[21] === x ? S = n[22] : (S = /* @__PURE__ */
|
|
4514
|
+
n[21] === x ? S = n[22] : (S = /* @__PURE__ */ Y(_.Dropdown, { children: x }), n[21] = x, n[22] = S);
|
|
4512
4515
|
let C;
|
|
4513
|
-
return n[23] !== f || n[24] !== b || n[25] !== S ? (C = /* @__PURE__ */
|
|
4516
|
+
return n[23] !== f || n[24] !== b || n[25] !== S ? (C = /* @__PURE__ */ X(_, {
|
|
4514
4517
|
opened: f,
|
|
4515
4518
|
onChange: p,
|
|
4516
4519
|
position: "bottom-end",
|
|
@@ -4535,7 +4538,7 @@ function lo(t) {
|
|
|
4535
4538
|
let e;
|
|
4536
4539
|
n[8] !== l || n[9] !== a ? (e = (e) => {
|
|
4537
4540
|
let t = e.column, n = a(t.id);
|
|
4538
|
-
return /* @__PURE__ */
|
|
4541
|
+
return /* @__PURE__ */ Y("div", {
|
|
4539
4542
|
role: "columnheader",
|
|
4540
4543
|
"aria-label": l.filterOn(Mn(t)),
|
|
4541
4544
|
"data-dg-part": "header-filter-cell",
|
|
@@ -4552,12 +4555,12 @@ function lo(t) {
|
|
|
4552
4555
|
position: n.pinnedAt ? "sticky" : void 0,
|
|
4553
4556
|
zIndex: n.pinnedAt ? "var(--dg-z-header-pinned-cell, 7)" : void 0
|
|
4554
4557
|
},
|
|
4555
|
-
children: t.getCanFilter() && /* @__PURE__ */
|
|
4558
|
+
children: t.getCanFilter() && /* @__PURE__ */ Y(so, { column: t })
|
|
4556
4559
|
}, e.id);
|
|
4557
4560
|
}, n[8] = l, n[9] = a, n[10] = e) : e = n[10], m = r.map(e), n[4] = l, n[5] = a, n[6] = r, n[7] = m;
|
|
4558
4561
|
} else m = n[7];
|
|
4559
4562
|
let h;
|
|
4560
|
-
return n[11] !== o || n[12] !== m ? (h = /* @__PURE__ */
|
|
4563
|
+
return n[11] !== o || n[12] !== m ? (h = /* @__PURE__ */ Y("div", {
|
|
4561
4564
|
ref: d,
|
|
4562
4565
|
role: "row",
|
|
4563
4566
|
"aria-rowindex": o,
|
|
@@ -4572,21 +4575,21 @@ function uo(e) {
|
|
|
4572
4575
|
return e.headerFilterColumnId;
|
|
4573
4576
|
}
|
|
4574
4577
|
var fo = {
|
|
4575
|
-
headerCell: "
|
|
4576
|
-
headerCellFiltered: "
|
|
4577
|
-
headerTitle: "
|
|
4578
|
-
headerActions: "
|
|
4579
|
-
headerAction: "
|
|
4580
|
-
headerCellSortable: "
|
|
4581
|
-
sortAction: "
|
|
4582
|
-
sortIndex: "
|
|
4583
|
-
headerCellDragging: "
|
|
4584
|
-
headerCellDropBefore: "
|
|
4585
|
-
headerCellDropAfter: "
|
|
4586
|
-
columnSeparator: "
|
|
4587
|
-
columnSeparatorResizable: "
|
|
4588
|
-
columnSeparatorActive: "
|
|
4589
|
-
menuItemActive: "
|
|
4578
|
+
headerCell: "_headerCell_18ma1_1",
|
|
4579
|
+
headerCellFiltered: "_headerCellFiltered_18ma1_35",
|
|
4580
|
+
headerTitle: "_headerTitle_18ma1_35",
|
|
4581
|
+
headerActions: "_headerActions_18ma1_58",
|
|
4582
|
+
headerAction: "_headerAction_18ma1_58",
|
|
4583
|
+
headerCellSortable: "_headerCellSortable_18ma1_87",
|
|
4584
|
+
sortAction: "_sortAction_18ma1_93",
|
|
4585
|
+
sortIndex: "_sortIndex_18ma1_103",
|
|
4586
|
+
headerCellDragging: "_headerCellDragging_18ma1_115",
|
|
4587
|
+
headerCellDropBefore: "_headerCellDropBefore_18ma1_119",
|
|
4588
|
+
headerCellDropAfter: "_headerCellDropAfter_18ma1_120",
|
|
4589
|
+
columnSeparator: "_columnSeparator_18ma1_140",
|
|
4590
|
+
columnSeparatorResizable: "_columnSeparatorResizable_18ma1_162",
|
|
4591
|
+
columnSeparatorActive: "_columnSeparatorActive_18ma1_185",
|
|
4592
|
+
menuItemActive: "_menuItemActive_18ma1_191"
|
|
4590
4593
|
}, po = 30, mo = 2;
|
|
4591
4594
|
function ho(e) {
|
|
4592
4595
|
let t = e.ownerDocument.createRange();
|
|
@@ -4686,7 +4689,7 @@ function Do({ table: e, columnId: t, direction: n }) {
|
|
|
4686
4689
|
function Oo(t) {
|
|
4687
4690
|
let n = e(278), { header: r, layout: i, renderColumnMenuItems: a } = t, o = $(), { table: u, features: d, filters: f, labels: p } = o, m = r.column, [h, g] = c(!1), [v, y] = c(!1), [b, x] = c(null), S = s(null), C = s(!1), w;
|
|
4688
4691
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (w = { compare: ge }, n[0] = w) : w = n[0];
|
|
4689
|
-
let { sorting: T, columnFilters: E, resizingColumnId: D, columnPinning: O, grouping: A } = M(u.store, Fo, w), j = M(o.ui, Po), P = r.subHeaders.length === 0, V, H, U, G,
|
|
4692
|
+
let { sorting: T, columnFilters: E, resizingColumnId: D, columnPinning: O, grouping: A } = M(u.store, Fo, w), j = M(o.ui, Po), P = r.subHeaders.length === 0, V, H, U, G, K, q, J, ce, le, ue, de, fe, Z, pe, me, he, _e, ve, ye, be, xe, Se;
|
|
4690
4693
|
if (n[1] !== o || n[2] !== m || n[3] !== E || n[4] !== O || n[5] !== j || n[6] !== b || n[7] !== d || n[8] !== f || n[9] !== A || n[10] !== r || n[11] !== P || n[12] !== p || n[13] !== i.pinnedAt || n[14] !== a || n[15] !== D || n[16] !== T || n[17] !== u) {
|
|
4691
4694
|
ye = Mn(m);
|
|
4692
4695
|
let e;
|
|
@@ -4700,48 +4703,48 @@ function Oo(t) {
|
|
|
4700
4703
|
let e;
|
|
4701
4704
|
n[52] === m.id ? e = n[53] : (e = (e) => e.id === m.id && St(e.value), n[52] = m.id, n[53] = e), c = E.some(e), n[49] = m.id, n[50] = E, n[51] = c;
|
|
4702
4705
|
} else c = n[51];
|
|
4703
|
-
he = c, _e = D === m.id,
|
|
4706
|
+
he = c, _e = D === m.id, Z = D !== !1, be = i.pinnedAt;
|
|
4704
4707
|
let l;
|
|
4705
4708
|
n[54] !== m || n[55] !== d ? (l = ci(m, d), n[54] = m, n[55] = d, n[56] = l) : l = n[56];
|
|
4706
4709
|
let h = l;
|
|
4707
|
-
|
|
4710
|
+
K = P && h.canSort;
|
|
4708
4711
|
let g = P && h.canFilter, v = P && h.canHide, y = P && h.canPin;
|
|
4709
4712
|
G = h.canResize, U = P && h.canReorder;
|
|
4710
4713
|
let C = P && h.canGroup, w = P && li(u, d).canHideAny, k;
|
|
4711
4714
|
n[57] !== m.id || n[58] !== A ? (k = A.includes(m.id), n[57] = m.id, n[58] = A, n[59] = k) : k = n[59];
|
|
4712
4715
|
let M = k, ee = A.length > 0;
|
|
4713
|
-
|
|
4716
|
+
pe = j === m.id;
|
|
4714
4717
|
let ge;
|
|
4715
|
-
n[60] !== U || n[61] !== m.id || n[62] !== O || n[63] !== j || n[64] !==
|
|
4718
|
+
n[60] !== U || n[61] !== m.id || n[62] !== O || n[63] !== j || n[64] !== pe ? (ge = U && j !== null && !pe && bo(O, j) === bo(O, m.id), n[60] = U, n[61] = m.id, n[62] = O, n[63] = j, n[64] = pe, n[65] = ge) : ge = n[65], me = ge;
|
|
4716
4719
|
let Ce;
|
|
4717
4720
|
n[66] !== o.ui || n[67] !== m.id ? (Ce = function(e) {
|
|
4718
4721
|
e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", m.id), o.ui.actions.startColumnDrag(m.id);
|
|
4719
|
-
}, n[66] = o.ui, n[67] = m.id, n[68] = Ce) : Ce = n[68],
|
|
4722
|
+
}, n[66] = o.ui, n[67] = m.id, n[68] = Ce) : Ce = n[68], de = Ce;
|
|
4720
4723
|
let we;
|
|
4721
|
-
n[69] ===
|
|
4722
|
-
if (!
|
|
4724
|
+
n[69] === me ? we = n[70] : (we = function(e) {
|
|
4725
|
+
if (!me) return;
|
|
4723
4726
|
e.preventDefault(), e.dataTransfer.dropEffect = "move";
|
|
4724
4727
|
let t = S.current?.getBoundingClientRect();
|
|
4725
4728
|
t && x(e.clientX < t.left + t.width / 2 ? "before" : "after");
|
|
4726
|
-
}, n[69] =
|
|
4729
|
+
}, n[69] = me, n[70] = we), ue = we;
|
|
4727
4730
|
let Te;
|
|
4728
4731
|
n[71] === Symbol.for("react.memo_cache_sentinel") ? (Te = function(e) {
|
|
4729
4732
|
let t = e.relatedTarget;
|
|
4730
4733
|
_n(t) && e.currentTarget.contains(t) || x(null);
|
|
4731
|
-
}, n[71] = Te) : Te = n[71],
|
|
4734
|
+
}, n[71] = Te) : Te = n[71], le = Te;
|
|
4732
4735
|
let Ee;
|
|
4733
|
-
n[72] !== o.ui || n[73] !== m.id || n[74] !== j || n[75] !== b || n[76] !==
|
|
4734
|
-
e.preventDefault(), x(null), o.ui.actions.endColumnDrag(), !(!
|
|
4736
|
+
n[72] !== o.ui || n[73] !== m.id || n[74] !== j || n[75] !== b || n[76] !== me || n[77] !== u ? (Ee = function(e) {
|
|
4737
|
+
e.preventDefault(), x(null), o.ui.actions.endColumnDrag(), !(!me || !b || !j) && Co({
|
|
4735
4738
|
table: u,
|
|
4736
4739
|
columnId: j,
|
|
4737
4740
|
targetId: m.id,
|
|
4738
4741
|
side: b
|
|
4739
4742
|
});
|
|
4740
|
-
}, n[72] = o.ui, n[73] = m.id, n[74] = j, n[75] = b, n[76] =
|
|
4743
|
+
}, n[72] = o.ui, n[73] = m.id, n[74] = j, n[75] = b, n[76] = me, n[77] = u, n[78] = Ee) : Ee = n[78], fe = Ee;
|
|
4741
4744
|
let De;
|
|
4742
4745
|
n[79] === o.ui ? De = n[80] : (De = function() {
|
|
4743
4746
|
x(null), o.ui.actions.endColumnDrag();
|
|
4744
|
-
}, n[79] = o.ui, n[80] = De),
|
|
4747
|
+
}, n[79] = o.ui, n[80] = De), ce = De;
|
|
4745
4748
|
let Oe;
|
|
4746
4749
|
n[81] !== m.id || n[82] !== u ? (Oe = function() {
|
|
4747
4750
|
let e = S.current?.closest("[data-dg-scroll-container]");
|
|
@@ -4766,69 +4769,69 @@ function Oo(t) {
|
|
|
4766
4769
|
...e,
|
|
4767
4770
|
...n
|
|
4768
4771
|
}));
|
|
4769
|
-
}, n[84] = r, n[85] = u, n[86] = ke) : ke = n[86],
|
|
4772
|
+
}, n[84] = r, n[85] = u, n[86] = ke) : ke = n[86], J = ke;
|
|
4770
4773
|
let Ae;
|
|
4771
|
-
n[87] !== m || n[88] !==
|
|
4772
|
-
e &&
|
|
4773
|
-
}, n[87] = m, n[88] =
|
|
4774
|
+
n[87] !== m || n[88] !== J || n[89] !== u ? (Ae = function(e) {
|
|
4775
|
+
e && J(), m.pin(xo(e)), u.setColumnPinning(wo);
|
|
4776
|
+
}, n[87] = m, n[88] = J, n[89] = u, n[90] = Ae) : Ae = n[90];
|
|
4774
4777
|
let je = Ae, Q = [];
|
|
4775
|
-
if (
|
|
4778
|
+
if (K) {
|
|
4776
4779
|
let e;
|
|
4777
|
-
n[91] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4780
|
+
n[91] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Y(B, {
|
|
4778
4781
|
size: 16,
|
|
4779
4782
|
stroke: 1.6
|
|
4780
4783
|
}), n[91] = e) : e = n[91];
|
|
4781
4784
|
let t;
|
|
4782
4785
|
n[92] === m ? t = n[93] : (t = () => m.toggleSorting(!1), n[92] = m, n[93] = t);
|
|
4783
4786
|
let r;
|
|
4784
|
-
n[94] !== p.sortAsc || n[95] !== t ? (r = /* @__PURE__ */
|
|
4787
|
+
n[94] !== p.sortAsc || n[95] !== t ? (r = /* @__PURE__ */ Y(_.Item, {
|
|
4785
4788
|
leftSection: e,
|
|
4786
4789
|
onClick: t,
|
|
4787
4790
|
children: p.sortAsc
|
|
4788
4791
|
}, "sort-asc"), n[94] = p.sortAsc, n[95] = t, n[96] = r) : r = n[96];
|
|
4789
4792
|
let i;
|
|
4790
|
-
n[97] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
4793
|
+
n[97] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Y(L, {
|
|
4791
4794
|
size: 16,
|
|
4792
4795
|
stroke: 1.6
|
|
4793
4796
|
}), n[97] = i) : i = n[97];
|
|
4794
4797
|
let a;
|
|
4795
4798
|
n[98] === m ? a = n[99] : (a = () => m.toggleSorting(!0), n[98] = m, n[99] = a);
|
|
4796
4799
|
let o;
|
|
4797
|
-
n[100] !== p.sortDesc || n[101] !== a ? (o = /* @__PURE__ */
|
|
4800
|
+
n[100] !== p.sortDesc || n[101] !== a ? (o = /* @__PURE__ */ Y(_.Item, {
|
|
4798
4801
|
leftSection: i,
|
|
4799
4802
|
onClick: a,
|
|
4800
4803
|
children: p.sortDesc
|
|
4801
4804
|
}, "sort-desc"), n[100] = p.sortDesc, n[101] = a, n[102] = o) : o = n[102];
|
|
4802
4805
|
let s;
|
|
4803
|
-
n[103] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
4806
|
+
n[103] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Y(_.Divider, {}, "sort-divider"), n[103] = s) : s = n[103], Q.push(r, o, s);
|
|
4804
4807
|
}
|
|
4805
4808
|
if (g && !f.inHeader) {
|
|
4806
4809
|
let e;
|
|
4807
|
-
n[104] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4810
|
+
n[104] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Y(ne, {
|
|
4808
4811
|
size: 16,
|
|
4809
4812
|
stroke: 1.6
|
|
4810
4813
|
}), n[104] = e) : e = n[104];
|
|
4811
4814
|
let t;
|
|
4812
4815
|
n[105] !== o || n[106] !== m.id ? (t = () => ba(o, m.id), n[105] = o, n[106] = m.id, n[107] = t) : t = n[107];
|
|
4813
4816
|
let r;
|
|
4814
|
-
n[108] !== p.filterMenuItem || n[109] !== t ? (r = /* @__PURE__ */
|
|
4817
|
+
n[108] !== p.filterMenuItem || n[109] !== t ? (r = /* @__PURE__ */ Y(_.Item, {
|
|
4815
4818
|
leftSection: e,
|
|
4816
4819
|
onClick: t,
|
|
4817
4820
|
children: p.filterMenuItem
|
|
4818
4821
|
}, "filter"), n[108] = p.filterMenuItem, n[109] = t, n[110] = r) : r = n[110];
|
|
4819
4822
|
let i;
|
|
4820
|
-
n[111] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
4823
|
+
n[111] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Y(_.Divider, {}, "filter-divider"), n[111] = i) : i = n[111], Q.push(r, i);
|
|
4821
4824
|
}
|
|
4822
4825
|
if (C) {
|
|
4823
4826
|
let e = M ? fo.menuItemActive : void 0, t;
|
|
4824
|
-
n[112] === M ? t = n[113] : (t =
|
|
4827
|
+
n[112] === M ? t = n[113] : (t = Y(M ? ae : oe, {
|
|
4825
4828
|
size: 16,
|
|
4826
4829
|
stroke: 1.6
|
|
4827
4830
|
}), n[112] = M, n[113] = t);
|
|
4828
4831
|
let r;
|
|
4829
4832
|
n[114] === m ? r = n[115] : (r = m.getToggleGroupingHandler(), n[114] = m, n[115] = r);
|
|
4830
4833
|
let i = M ? p.ungroup(ye) : p.groupBy(ye), a;
|
|
4831
|
-
n[116] !== e || n[117] !== t || n[118] !== r || n[119] !== i ? (a = /* @__PURE__ */
|
|
4834
|
+
n[116] !== e || n[117] !== t || n[118] !== r || n[119] !== i ? (a = /* @__PURE__ */ Y(_.Item, {
|
|
4832
4835
|
className: e,
|
|
4833
4836
|
leftSection: t,
|
|
4834
4837
|
onClick: r,
|
|
@@ -4838,8 +4841,8 @@ function Oo(t) {
|
|
|
4838
4841
|
if (ee) {
|
|
4839
4842
|
if (m.id === "__group__") for (let e of A) {
|
|
4840
4843
|
let t = u.getColumn(e);
|
|
4841
|
-
t && Q.push(/* @__PURE__ */
|
|
4842
|
-
leftSection: /* @__PURE__ */
|
|
4844
|
+
t && Q.push(/* @__PURE__ */ Y(_.Item, {
|
|
4845
|
+
leftSection: /* @__PURE__ */ Y(ae, {
|
|
4843
4846
|
size: 16,
|
|
4844
4847
|
stroke: 1.6
|
|
4845
4848
|
}),
|
|
@@ -4855,27 +4858,27 @@ function Oo(t) {
|
|
|
4855
4858
|
expand: e
|
|
4856
4859
|
})), n[121] = u, n[122] = e);
|
|
4857
4860
|
let t = e, r;
|
|
4858
|
-
n[123] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
4861
|
+
n[123] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ Y(re, {
|
|
4859
4862
|
size: 16,
|
|
4860
4863
|
stroke: 1.6
|
|
4861
4864
|
}), n[123] = r) : r = n[123];
|
|
4862
4865
|
let i;
|
|
4863
4866
|
n[124] === t ? i = n[125] : (i = () => t(!0), n[124] = t, n[125] = i);
|
|
4864
4867
|
let a;
|
|
4865
|
-
n[126] !== p.expandAllGroups || n[127] !== i ? (a = /* @__PURE__ */
|
|
4868
|
+
n[126] !== p.expandAllGroups || n[127] !== i ? (a = /* @__PURE__ */ Y(_.Item, {
|
|
4866
4869
|
leftSection: r,
|
|
4867
4870
|
onClick: i,
|
|
4868
4871
|
children: p.expandAllGroups
|
|
4869
4872
|
}, "expand-all"), n[126] = p.expandAllGroups, n[127] = i, n[128] = a) : a = n[128];
|
|
4870
4873
|
let o;
|
|
4871
|
-
n[129] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
4874
|
+
n[129] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Y(ie, {
|
|
4872
4875
|
size: 16,
|
|
4873
4876
|
stroke: 1.6
|
|
4874
4877
|
}), n[129] = o) : o = n[129];
|
|
4875
4878
|
let s;
|
|
4876
4879
|
n[130] === t ? s = n[131] : (s = () => t(!1), n[130] = t, n[131] = s);
|
|
4877
4880
|
let c;
|
|
4878
|
-
n[132] !== p.collapseAllGroups || n[133] !== s ? (c = /* @__PURE__ */
|
|
4881
|
+
n[132] !== p.collapseAllGroups || n[133] !== s ? (c = /* @__PURE__ */ Y(_.Item, {
|
|
4879
4882
|
leftSection: o,
|
|
4880
4883
|
onClick: s,
|
|
4881
4884
|
children: p.collapseAllGroups
|
|
@@ -4883,53 +4886,53 @@ function Oo(t) {
|
|
|
4883
4886
|
}
|
|
4884
4887
|
if (C || ee) {
|
|
4885
4888
|
let e;
|
|
4886
|
-
n[135] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4889
|
+
n[135] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Y(_.Divider, {}, "group-divider"), n[135] = e) : e = n[135], Q.push(e);
|
|
4887
4890
|
}
|
|
4888
4891
|
if (y) {
|
|
4889
4892
|
let e = be === "left" ? fo.menuItemActive : void 0, t;
|
|
4890
|
-
n[136] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
4893
|
+
n[136] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Y(F, {
|
|
4891
4894
|
size: 16,
|
|
4892
4895
|
stroke: 1.6
|
|
4893
4896
|
}), n[136] = t) : t = n[136];
|
|
4894
4897
|
let r;
|
|
4895
4898
|
n[137] !== be || n[138] !== je ? (r = () => je(be !== "left" && "left"), n[137] = be, n[138] = je, n[139] = r) : r = n[139];
|
|
4896
4899
|
let i;
|
|
4897
|
-
n[140] !== p.pinLeft || n[141] !== e || n[142] !== r ? (i = /* @__PURE__ */
|
|
4900
|
+
n[140] !== p.pinLeft || n[141] !== e || n[142] !== r ? (i = /* @__PURE__ */ Y(_.Item, {
|
|
4898
4901
|
className: e,
|
|
4899
4902
|
leftSection: t,
|
|
4900
4903
|
onClick: r,
|
|
4901
4904
|
children: p.pinLeft
|
|
4902
4905
|
}, "pin-left"), n[140] = p.pinLeft, n[141] = e, n[142] = r, n[143] = i) : i = n[143];
|
|
4903
4906
|
let a = be === "right" ? fo.menuItemActive : void 0, o;
|
|
4904
|
-
n[144] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
4907
|
+
n[144] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Y(I, {
|
|
4905
4908
|
size: 16,
|
|
4906
4909
|
stroke: 1.6
|
|
4907
4910
|
}), n[144] = o) : o = n[144];
|
|
4908
4911
|
let s;
|
|
4909
4912
|
n[145] !== be || n[146] !== je ? (s = () => je(be !== "right" && "right"), n[145] = be, n[146] = je, n[147] = s) : s = n[147];
|
|
4910
4913
|
let c;
|
|
4911
|
-
if (n[148] !== p.pinRight || n[149] !== a || n[150] !== s ? (c = /* @__PURE__ */
|
|
4914
|
+
if (n[148] !== p.pinRight || n[149] !== a || n[150] !== s ? (c = /* @__PURE__ */ Y(_.Item, {
|
|
4912
4915
|
className: a,
|
|
4913
4916
|
leftSection: o,
|
|
4914
4917
|
onClick: s,
|
|
4915
4918
|
children: p.pinRight
|
|
4916
4919
|
}, "pin-right"), n[148] = p.pinRight, n[149] = a, n[150] = s, n[151] = c) : c = n[151], Q.push(i, c), be) {
|
|
4917
4920
|
let e;
|
|
4918
|
-
n[152] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4921
|
+
n[152] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Y(se, {
|
|
4919
4922
|
size: 16,
|
|
4920
4923
|
stroke: 1.6
|
|
4921
4924
|
}), n[152] = e) : e = n[152];
|
|
4922
4925
|
let t;
|
|
4923
4926
|
n[153] === je ? t = n[154] : (t = () => je(!1), n[153] = je, n[154] = t);
|
|
4924
4927
|
let r;
|
|
4925
|
-
n[155] !== p.unpin || n[156] !== t ? (r = /* @__PURE__ */
|
|
4928
|
+
n[155] !== p.unpin || n[156] !== t ? (r = /* @__PURE__ */ Y(_.Item, {
|
|
4926
4929
|
leftSection: e,
|
|
4927
4930
|
onClick: t,
|
|
4928
4931
|
children: p.unpin
|
|
4929
4932
|
}, "unpin"), n[155] = p.unpin, n[156] = t, n[157] = r) : r = n[157], Q.push(r);
|
|
4930
4933
|
}
|
|
4931
4934
|
let l;
|
|
4932
|
-
n[158] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */
|
|
4935
|
+
n[158] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Y(_.Divider, {}, "pin-divider"), n[158] = l) : l = n[158], Q.push(l);
|
|
4933
4936
|
}
|
|
4934
4937
|
if (U) {
|
|
4935
4938
|
let e;
|
|
@@ -4947,7 +4950,7 @@ function Oo(t) {
|
|
|
4947
4950
|
let i = r;
|
|
4948
4951
|
if (t || i) {
|
|
4949
4952
|
let e = !t, r;
|
|
4950
|
-
n[165] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
4953
|
+
n[165] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ Y(R, {
|
|
4951
4954
|
size: 16,
|
|
4952
4955
|
stroke: 1.6
|
|
4953
4956
|
}), n[165] = r) : r = n[165];
|
|
@@ -4958,14 +4961,14 @@ function Oo(t) {
|
|
|
4958
4961
|
direction: -1
|
|
4959
4962
|
}), n[166] = m.id, n[167] = u, n[168] = a) : a = n[168];
|
|
4960
4963
|
let o;
|
|
4961
|
-
n[169] !== p.moveLeft || n[170] !== e || n[171] !== a ? (o = /* @__PURE__ */
|
|
4964
|
+
n[169] !== p.moveLeft || n[170] !== e || n[171] !== a ? (o = /* @__PURE__ */ Y(_.Item, {
|
|
4962
4965
|
disabled: e,
|
|
4963
4966
|
leftSection: r,
|
|
4964
4967
|
onClick: a,
|
|
4965
4968
|
children: p.moveLeft
|
|
4966
4969
|
}, "move-left"), n[169] = p.moveLeft, n[170] = e, n[171] = a, n[172] = o) : o = n[172];
|
|
4967
4970
|
let s = !i, c;
|
|
4968
|
-
n[173] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */
|
|
4971
|
+
n[173] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ Y(z, {
|
|
4969
4972
|
size: 16,
|
|
4970
4973
|
stroke: 1.6
|
|
4971
4974
|
}), n[173] = c) : c = n[173];
|
|
@@ -4976,41 +4979,41 @@ function Oo(t) {
|
|
|
4976
4979
|
direction: 1
|
|
4977
4980
|
}), n[174] = m.id, n[175] = u, n[176] = l) : l = n[176];
|
|
4978
4981
|
let d;
|
|
4979
|
-
n[177] !== p.moveRight || n[178] !== s || n[179] !== l ? (d = /* @__PURE__ */
|
|
4982
|
+
n[177] !== p.moveRight || n[178] !== s || n[179] !== l ? (d = /* @__PURE__ */ Y(_.Item, {
|
|
4980
4983
|
disabled: s,
|
|
4981
4984
|
leftSection: c,
|
|
4982
4985
|
onClick: l,
|
|
4983
4986
|
children: p.moveRight
|
|
4984
4987
|
}, "move-right"), n[177] = p.moveRight, n[178] = s, n[179] = l, n[180] = d) : d = n[180];
|
|
4985
4988
|
let f;
|
|
4986
|
-
n[181] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
4989
|
+
n[181] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ Y(_.Divider, {}, "move-divider"), n[181] = f) : f = n[181], Q.push(o, d, f);
|
|
4987
4990
|
}
|
|
4988
4991
|
}
|
|
4989
4992
|
if (G && P) {
|
|
4990
4993
|
let e;
|
|
4991
|
-
n[182] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4994
|
+
n[182] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Y(N, {
|
|
4992
4995
|
size: 16,
|
|
4993
4996
|
stroke: 1.6
|
|
4994
4997
|
}), n[182] = e) : e = n[182];
|
|
4995
4998
|
let t;
|
|
4996
|
-
n[183] !== H || n[184] !== p.autosizeColumn ? (t = /* @__PURE__ */
|
|
4999
|
+
n[183] !== H || n[184] !== p.autosizeColumn ? (t = /* @__PURE__ */ Y(_.Item, {
|
|
4997
5000
|
leftSection: e,
|
|
4998
5001
|
onClick: H,
|
|
4999
5002
|
children: p.autosizeColumn
|
|
5000
5003
|
}, "autosize"), n[183] = H, n[184] = p.autosizeColumn, n[185] = t) : t = n[185];
|
|
5001
5004
|
let r;
|
|
5002
|
-
n[186] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
5005
|
+
n[186] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ Y(_.Divider, {}, "autosize-divider"), n[186] = r) : r = n[186], Q.push(t, r);
|
|
5003
5006
|
}
|
|
5004
5007
|
if (v) {
|
|
5005
5008
|
let e;
|
|
5006
|
-
n[187] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
5009
|
+
n[187] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Y(te, {
|
|
5007
5010
|
size: 16,
|
|
5008
5011
|
stroke: 1.6
|
|
5009
5012
|
}), n[187] = e) : e = n[187];
|
|
5010
5013
|
let t;
|
|
5011
5014
|
n[188] === m ? t = n[189] : (t = () => m.toggleVisibility(!1), n[188] = m, n[189] = t);
|
|
5012
5015
|
let r;
|
|
5013
|
-
n[190] !== p.hideColumn || n[191] !== t ? (r = /* @__PURE__ */
|
|
5016
|
+
n[190] !== p.hideColumn || n[191] !== t ? (r = /* @__PURE__ */ Y(_.Item, {
|
|
5014
5017
|
leftSection: e,
|
|
5015
5018
|
onClick: t,
|
|
5016
5019
|
children: p.hideColumn
|
|
@@ -5018,31 +5021,31 @@ function Oo(t) {
|
|
|
5018
5021
|
}
|
|
5019
5022
|
if (w) {
|
|
5020
5023
|
let e;
|
|
5021
|
-
n[193] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
5024
|
+
n[193] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Y(W, {
|
|
5022
5025
|
size: 16,
|
|
5023
5026
|
stroke: 1.6
|
|
5024
5027
|
}), n[193] = e) : e = n[193];
|
|
5025
5028
|
let t;
|
|
5026
|
-
n[194] === p.manageColumns ? t = n[195] : (t = /* @__PURE__ */
|
|
5029
|
+
n[194] === p.manageColumns ? t = n[195] : (t = /* @__PURE__ */ Y(_.Sub.Target, { children: /* @__PURE__ */ Y(_.Sub.Item, {
|
|
5027
5030
|
leftSection: e,
|
|
5028
5031
|
children: p.manageColumns
|
|
5029
5032
|
}) }), n[194] = p.manageColumns, n[195] = t);
|
|
5030
5033
|
let r;
|
|
5031
|
-
n[196] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
5034
|
+
n[196] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ Y(_.Sub.Dropdown, { children: /* @__PURE__ */ Y(za, { searchable: !1 }) }), n[196] = r) : r = n[196];
|
|
5032
5035
|
let i;
|
|
5033
|
-
n[197] === t ? i = n[198] : (i = /* @__PURE__ */
|
|
5036
|
+
n[197] === t ? i = n[198] : (i = /* @__PURE__ */ X(_.Sub, { children: [t, r] }, "manage"), n[197] = t, n[198] = i), Q.push(i);
|
|
5034
5037
|
}
|
|
5035
5038
|
for (; Q.length > 0 && Io(Q.at(-1));) Q.pop();
|
|
5036
|
-
for (
|
|
5039
|
+
for (q = a ? [...a({
|
|
5037
5040
|
column: m,
|
|
5038
5041
|
table: u,
|
|
5039
5042
|
internalItems: Q
|
|
5040
|
-
})] : Q;
|
|
5041
|
-
n[1] = o, n[2] = m, n[3] = E, n[4] = O, n[5] = j, n[6] = b, n[7] = d, n[8] = f, n[9] = A, n[10] = r, n[11] = P, n[12] = p, n[13] = i.pinnedAt, n[14] = a, n[15] = D, n[16] = T, n[17] = u, n[18] = V, n[19] = H, n[20] = U, n[21] = G, n[22] =
|
|
5042
|
-
} else V = n[18], H = n[19], U = n[20], G = n[21],
|
|
5043
|
+
})] : Q; q.length > 0 && Io(q.at(-1));) q.pop();
|
|
5044
|
+
n[1] = o, n[2] = m, n[3] = E, n[4] = O, n[5] = j, n[6] = b, n[7] = d, n[8] = f, n[9] = A, n[10] = r, n[11] = P, n[12] = p, n[13] = i.pinnedAt, n[14] = a, n[15] = D, n[16] = T, n[17] = u, n[18] = V, n[19] = H, n[20] = U, n[21] = G, n[22] = K, n[23] = q, n[24] = J, n[25] = ce, n[26] = le, n[27] = ue, n[28] = de, n[29] = fe, n[30] = Z, n[31] = pe, n[32] = me, n[33] = he, n[34] = _e, n[35] = ve, n[36] = ye, n[37] = be, n[38] = xe, n[39] = Se;
|
|
5045
|
+
} else V = n[18], H = n[19], U = n[20], G = n[21], K = n[22], q = n[23], J = n[24], ce = n[25], le = n[26], ue = n[27], de = n[28], fe = n[29], Z = n[30], pe = n[31], me = n[32], he = n[33], _e = n[34], ve = n[35], ye = n[36], be = n[37], xe = n[38], Se = n[39];
|
|
5043
5046
|
let Ce;
|
|
5044
|
-
n[199] !== m.id || n[200] !==
|
|
5045
|
-
let we = Ce, Te =
|
|
5047
|
+
n[199] !== m.id || n[200] !== q || n[201] !== P ? (Ce = P && q.length > 0 && !Bn(m.id), n[199] = m.id, n[200] = q, n[201] = P, n[202] = Ce) : Ce = n[202];
|
|
5048
|
+
let we = Ce, Te = K ? fo.headerCellSortable : "", Ee = he ? fo.headerCellFiltered : "", De = pe ? fo.headerCellDragging : "", Oe = b === "before" ? fo.headerCellDropBefore : "", ke = b === "after" ? fo.headerCellDropAfter : "", Ae = i.isBoundary && be === "left" ? Xa.stickyLeft : "", je = i.isBoundary && be === "right" ? Xa.stickyRight : "", Q;
|
|
5046
5049
|
n[203] !== Te || n[204] !== Ee || n[205] !== De || n[206] !== Oe || n[207] !== ke || n[208] !== Ae || n[209] !== je ? (Q = [
|
|
5047
5050
|
fo.headerCell,
|
|
5048
5051
|
Te,
|
|
@@ -5055,7 +5058,7 @@ function Oo(t) {
|
|
|
5055
5058
|
].filter(Boolean), n[203] = Te, n[204] = Ee, n[205] = De, n[206] = Oe, n[207] = ke, n[208] = Ae, n[209] = je, n[210] = Q) : Q = n[210];
|
|
5056
5059
|
let Me = Q.join(" "), Ne = ve || he || void 0, Pe;
|
|
5057
5060
|
n[211] === m.id ? Pe = n[212] : (Pe = Bn(m.id) || void 0, n[211] = m.id, n[212] = Pe);
|
|
5058
|
-
let Ie =
|
|
5061
|
+
let Ie = K ? ve ? xe ? "descending" : "ascending" : "none" : void 0, Le = U && !Z, Re = U ? de : void 0, ze = U ? ce : void 0, Be = me ? ue : void 0, Ve = me ? le : void 0, He = me ? fe : void 0, Ue = r.colSpan > 1 ? `span ${r.colSpan}` : void 0, We = be === "left" ? i.offset : void 0, Ge = be === "right" ? i.offset : void 0, Ke = be ? "sticky" : void 0, qe = be ? "var(--dg-z-header-pinned-cell, 7)" : void 0, Je;
|
|
5059
5062
|
n[213] !== Ue || n[214] !== We || n[215] !== Ge || n[216] !== Ke || n[217] !== qe ? (Je = {
|
|
5060
5063
|
gridColumn: Ue,
|
|
5061
5064
|
left: We,
|
|
@@ -5063,31 +5066,31 @@ function Oo(t) {
|
|
|
5063
5066
|
position: Ke,
|
|
5064
5067
|
zIndex: qe
|
|
5065
5068
|
}, n[213] = Ue, n[214] = We, n[215] = Ge, n[216] = Ke, n[217] = qe, n[218] = Je) : Je = n[218];
|
|
5066
|
-
let Ye =
|
|
5067
|
-
n[219] !==
|
|
5069
|
+
let Ye = K ? No : void 0, Xe;
|
|
5070
|
+
n[219] !== K || n[220] !== m ? (Xe = K ? (e) => {
|
|
5068
5071
|
if (C.current) {
|
|
5069
5072
|
C.current = !1;
|
|
5070
5073
|
return;
|
|
5071
5074
|
}
|
|
5072
5075
|
m.getToggleSortingHandler()?.(e);
|
|
5073
|
-
} : void 0, n[219] =
|
|
5076
|
+
} : void 0, n[219] = K, n[220] = m, n[221] = Xe) : Xe = n[221];
|
|
5074
5077
|
let Ze;
|
|
5075
|
-
n[222] !== m.columnDef || n[223] !== r || n[224] !== P || n[225] !== ye ? (Ze = r.isPlaceholder ? null : /* @__PURE__ */
|
|
5078
|
+
n[222] !== m.columnDef || n[223] !== r || n[224] !== P || n[225] !== ye ? (Ze = r.isPlaceholder ? null : /* @__PURE__ */ Y(k, {
|
|
5076
5079
|
label: ye,
|
|
5077
5080
|
openDelay: 600,
|
|
5078
5081
|
withinPortal: !0,
|
|
5079
5082
|
disabled: !P,
|
|
5080
|
-
children: /* @__PURE__ */
|
|
5083
|
+
children: /* @__PURE__ */ Y("span", {
|
|
5081
5084
|
className: fo.headerTitle,
|
|
5082
5085
|
"data-dg-header-title": !0,
|
|
5083
5086
|
children: Fe(m.columnDef.header, r.getContext())
|
|
5084
5087
|
})
|
|
5085
5088
|
}), n[222] = m.columnDef, n[223] = r, n[224] = P, n[225] = ye, n[226] = Ze) : Ze = n[226];
|
|
5086
5089
|
let Qe;
|
|
5087
|
-
n[227] !== o || n[228] !==
|
|
5090
|
+
n[227] !== o || n[228] !== K || n[229] !== m || n[230] !== v || n[231] !== f || n[232] !== q || n[233] !== we || n[234] !== he || n[235] !== P || n[236] !== ve || n[237] !== ye || n[238] !== p || n[239] !== h || n[240] !== xe || n[241] !== Se ? (Qe = P && /* @__PURE__ */ X("div", {
|
|
5088
5091
|
className: fo.headerActions,
|
|
5089
5092
|
children: [
|
|
5090
|
-
he && !f.inHeader && /* @__PURE__ */
|
|
5093
|
+
he && !f.inHeader && /* @__PURE__ */ Y(l, {
|
|
5091
5094
|
className: fo.headerAction,
|
|
5092
5095
|
"data-pinned-visible": "true",
|
|
5093
5096
|
variant: "subtle",
|
|
@@ -5099,12 +5102,12 @@ function Oo(t) {
|
|
|
5099
5102
|
onClick: (e) => {
|
|
5100
5103
|
e.stopPropagation(), ba(o, m.id);
|
|
5101
5104
|
},
|
|
5102
|
-
children: /* @__PURE__ */
|
|
5105
|
+
children: /* @__PURE__ */ Y(ne, {
|
|
5103
5106
|
size: 14,
|
|
5104
5107
|
stroke: 1.6
|
|
5105
5108
|
})
|
|
5106
5109
|
}),
|
|
5107
|
-
|
|
5110
|
+
K && /* @__PURE__ */ Y(l, {
|
|
5108
5111
|
className: `${fo.headerAction} ${fo.sortAction}`,
|
|
5109
5112
|
"data-pinned-visible": ve || void 0,
|
|
5110
5113
|
"data-sorted": ve || void 0,
|
|
@@ -5117,24 +5120,24 @@ function Oo(t) {
|
|
|
5117
5120
|
onClick: (e) => {
|
|
5118
5121
|
e.stopPropagation(), m.getToggleSortingHandler()?.(e);
|
|
5119
5122
|
},
|
|
5120
|
-
children:
|
|
5123
|
+
children: Y(xe ? L : B, {
|
|
5121
5124
|
size: 14,
|
|
5122
5125
|
stroke: 1.6
|
|
5123
5126
|
})
|
|
5124
5127
|
}),
|
|
5125
|
-
Se !== null && /* @__PURE__ */
|
|
5128
|
+
Se !== null && /* @__PURE__ */ Y("span", {
|
|
5126
5129
|
className: fo.sortIndex,
|
|
5127
5130
|
"data-dg-part": "sort-index",
|
|
5128
5131
|
children: Se
|
|
5129
5132
|
}),
|
|
5130
|
-
we && /* @__PURE__ */
|
|
5133
|
+
we && /* @__PURE__ */ X(_, {
|
|
5131
5134
|
opened: h,
|
|
5132
5135
|
onChange: g,
|
|
5133
5136
|
position: "bottom-start",
|
|
5134
5137
|
shadow: "md",
|
|
5135
5138
|
width: 220,
|
|
5136
5139
|
withinPortal: !0,
|
|
5137
|
-
children: [/* @__PURE__ */
|
|
5140
|
+
children: [/* @__PURE__ */ Y(_.Target, { children: /* @__PURE__ */ Y(l, {
|
|
5138
5141
|
className: fo.headerAction,
|
|
5139
5142
|
"data-pinned-visible": h || v || void 0,
|
|
5140
5143
|
variant: "subtle",
|
|
@@ -5146,19 +5149,19 @@ function Oo(t) {
|
|
|
5146
5149
|
onClick: (e) => {
|
|
5147
5150
|
e.stopPropagation(), g(Mo);
|
|
5148
5151
|
},
|
|
5149
|
-
children: /* @__PURE__ */
|
|
5152
|
+
children: /* @__PURE__ */ Y(ee, {
|
|
5150
5153
|
size: 14,
|
|
5151
5154
|
stroke: 1.6
|
|
5152
5155
|
})
|
|
5153
|
-
}) }), /* @__PURE__ */
|
|
5156
|
+
}) }), /* @__PURE__ */ Y(_.Dropdown, {
|
|
5154
5157
|
onClick: jo,
|
|
5155
|
-
children:
|
|
5158
|
+
children: q
|
|
5156
5159
|
})]
|
|
5157
5160
|
})
|
|
5158
5161
|
]
|
|
5159
|
-
}), n[227] = o, n[228] =
|
|
5162
|
+
}), n[227] = o, n[228] = K, n[229] = m, n[230] = v, n[231] = f, n[232] = q, n[233] = we, n[234] = he, n[235] = P, n[236] = ve, n[237] = ye, n[238] = p, n[239] = h, n[240] = xe, n[241] = Se, n[242] = Qe) : Qe = n[242];
|
|
5160
5163
|
let $e;
|
|
5161
|
-
n[243] !== H || n[244] !== G || n[245] !== m.id || n[246] !==
|
|
5164
|
+
n[243] !== H || n[244] !== G || n[245] !== m.id || n[246] !== J || n[247] !== r || n[248] !== _e ? ($e = !Bn(m.id) && /* @__PURE__ */ Y("div", {
|
|
5162
5165
|
className: [
|
|
5163
5166
|
fo.columnSeparator,
|
|
5164
5167
|
G ? fo.columnSeparatorResizable : "",
|
|
@@ -5168,18 +5171,18 @@ function Oo(t) {
|
|
|
5168
5171
|
"data-column-id": G ? m.id : void 0,
|
|
5169
5172
|
draggable: !1,
|
|
5170
5173
|
onMouseDown: G ? (e) => {
|
|
5171
|
-
C.current = !0,
|
|
5174
|
+
C.current = !0, J(), r.getResizeHandler(e.currentTarget.ownerDocument)(e);
|
|
5172
5175
|
} : void 0,
|
|
5173
5176
|
onTouchStart: G ? (e) => {
|
|
5174
|
-
|
|
5177
|
+
J(), r.getResizeHandler(e.currentTarget.ownerDocument)(e);
|
|
5175
5178
|
} : void 0,
|
|
5176
5179
|
onClick: Ao,
|
|
5177
5180
|
onDoubleClick: G ? (e) => {
|
|
5178
5181
|
e.stopPropagation(), H();
|
|
5179
5182
|
} : void 0
|
|
5180
|
-
}), n[243] = H, n[244] = G, n[245] = m.id, n[246] =
|
|
5183
|
+
}), n[243] = H, n[244] = G, n[245] = m.id, n[246] = J, n[247] = r, n[248] = _e, n[249] = $e) : $e = n[249];
|
|
5181
5184
|
let et;
|
|
5182
|
-
n[250] !== V || n[251] !== Me || n[252] !== m.id || n[253] !== Ne || n[254] !== Pe || n[255] !== Ie || n[256] !== Le || n[257] !== Re || n[258] !== ze || n[259] !== Be || n[260] !== Ve || n[261] !== He || n[262] !== Je || n[263] !== Ye || n[264] !== Xe || n[265] !== Ze || n[266] !== Qe || n[267] !== $e ? (et = /* @__PURE__ */
|
|
5185
|
+
n[250] !== V || n[251] !== Me || n[252] !== m.id || n[253] !== Ne || n[254] !== Pe || n[255] !== Ie || n[256] !== Le || n[257] !== Re || n[258] !== ze || n[259] !== Be || n[260] !== Ve || n[261] !== He || n[262] !== Je || n[263] !== Ye || n[264] !== Xe || n[265] !== Ze || n[266] !== Qe || n[267] !== $e ? (et = /* @__PURE__ */ X("div", {
|
|
5183
5186
|
ref: S,
|
|
5184
5187
|
role: "columnheader",
|
|
5185
5188
|
"data-dg-part": "header",
|
|
@@ -5211,14 +5214,14 @@ function Oo(t) {
|
|
|
5211
5214
|
y(e), e && g(!1);
|
|
5212
5215
|
}, n[269] = nt) : nt = n[269];
|
|
5213
5216
|
let rt;
|
|
5214
|
-
n[270] === tt ? rt = n[271] : (rt = /* @__PURE__ */
|
|
5217
|
+
n[270] === tt ? rt = n[271] : (rt = /* @__PURE__ */ Y(_.ContextMenu, { children: tt }), n[270] = tt, n[271] = rt);
|
|
5215
5218
|
let it;
|
|
5216
|
-
n[272] ===
|
|
5219
|
+
n[272] === q ? it = n[273] : (it = /* @__PURE__ */ Y(_.Dropdown, {
|
|
5217
5220
|
onClick: ko,
|
|
5218
|
-
children:
|
|
5219
|
-
}), n[272] =
|
|
5221
|
+
children: q
|
|
5222
|
+
}), n[272] = q, n[273] = it);
|
|
5220
5223
|
let at;
|
|
5221
|
-
return n[274] !== v || n[275] !== rt || n[276] !== it ? (at = /* @__PURE__ */
|
|
5224
|
+
return n[274] !== v || n[275] !== rt || n[276] !== it ? (at = /* @__PURE__ */ X(_, {
|
|
5222
5225
|
opened: v,
|
|
5223
5226
|
onChange: nt,
|
|
5224
5227
|
position: "bottom-start",
|
|
@@ -5275,19 +5278,19 @@ function Ro(e) {
|
|
|
5275
5278
|
//#endregion
|
|
5276
5279
|
//#region src/components/editors/editorShared.ts
|
|
5277
5280
|
function zo(e) {
|
|
5278
|
-
return
|
|
5281
|
+
return me(e.store, Bo);
|
|
5279
5282
|
}
|
|
5280
5283
|
function Bo(e) {
|
|
5281
5284
|
return e.value;
|
|
5282
5285
|
}
|
|
5283
5286
|
function Vo(e) {
|
|
5284
|
-
return
|
|
5287
|
+
return me(e.store, Ho);
|
|
5285
5288
|
}
|
|
5286
5289
|
function Ho(e) {
|
|
5287
5290
|
return Yt(e.meta.errors);
|
|
5288
5291
|
}
|
|
5289
5292
|
function Uo(e) {
|
|
5290
|
-
return
|
|
5293
|
+
return me(e.store, Wo);
|
|
5291
5294
|
}
|
|
5292
5295
|
function Wo(e) {
|
|
5293
5296
|
return Yt(e.meta.errors) !== void 0;
|
|
@@ -5323,7 +5326,7 @@ function qo(t) {
|
|
|
5323
5326
|
let u = s === !0, d;
|
|
5324
5327
|
n[3] === r ? d = n[4] : (d = (e) => r.handleChange(e.currentTarget.checked), n[3] = r, n[4] = d);
|
|
5325
5328
|
let f;
|
|
5326
|
-
return n[5] !== r.handleBlur || n[6] !== c || n[7] !== a || n[8] !== l || n[9] !== u || n[10] !== d ? (f = /* @__PURE__ */
|
|
5329
|
+
return n[5] !== r.handleBlur || n[6] !== c || n[7] !== a || n[8] !== l || n[9] !== u || n[10] !== d ? (f = /* @__PURE__ */ Y(p, {
|
|
5327
5330
|
size: a,
|
|
5328
5331
|
"aria-label": l,
|
|
5329
5332
|
"data-dg-part": "editor-input",
|
|
@@ -5350,7 +5353,7 @@ function Jo(t) {
|
|
|
5350
5353
|
r.handleChange(u.current ? /* @__PURE__ */ new Date(`${t}T00:00:00`) : t);
|
|
5351
5354
|
}, n[5] = r, n[6] = m);
|
|
5352
5355
|
let h;
|
|
5353
|
-
return n[7] !== r.handleBlur || n[8] !== l || n[9] !== a || n[10] !== p || n[11] !== m || n[12] !== f ? (h = /* @__PURE__ */
|
|
5356
|
+
return n[7] !== r.handleBlur || n[8] !== l || n[9] !== a || n[10] !== p || n[11] !== m || n[12] !== f ? (h = /* @__PURE__ */ Y(O, {
|
|
5354
5357
|
size: a,
|
|
5355
5358
|
w: "100%",
|
|
5356
5359
|
type: "date",
|
|
@@ -5381,7 +5384,7 @@ function Yo(t) {
|
|
|
5381
5384
|
let h;
|
|
5382
5385
|
n[10] === r ? h = n[11] : (h = (e) => r.handleChange(e), n[10] = r, n[11] = h);
|
|
5383
5386
|
let g;
|
|
5384
|
-
return n[12] !== r.handleBlur || n[13] !== u || n[14] !== s || n[15] !== f || n[16] !== p || n[17] !== m || n[18] !== h ? (g = /* @__PURE__ */
|
|
5387
|
+
return n[12] !== r.handleBlur || n[13] !== u || n[14] !== s || n[15] !== f || n[16] !== p || n[17] !== m || n[18] !== h ? (g = /* @__PURE__ */ Y(y, {
|
|
5385
5388
|
size: s,
|
|
5386
5389
|
w: "100%",
|
|
5387
5390
|
searchable: !0,
|
|
@@ -5411,7 +5414,7 @@ function Xo(t) {
|
|
|
5411
5414
|
r.handleChange(e !== "" && Number.isFinite(t) ? t : null);
|
|
5412
5415
|
}, n[3] = r, n[4] = u, n[5] = d, n[6] = v) : v = n[6];
|
|
5413
5416
|
let y;
|
|
5414
|
-
return n[7] !== r.handleBlur || n[8] !== u || n[9] !== l || n[10] !== a || n[11] !== g || n[12] !== _ || n[13] !== v ? (y = /* @__PURE__ */
|
|
5417
|
+
return n[7] !== r.handleBlur || n[8] !== u || n[9] !== l || n[10] !== a || n[11] !== g || n[12] !== _ || n[13] !== v ? (y = /* @__PURE__ */ Y(b, {
|
|
5415
5418
|
ref: u,
|
|
5416
5419
|
size: a,
|
|
5417
5420
|
w: "100%",
|
|
@@ -5444,7 +5447,7 @@ function Zo(t) {
|
|
|
5444
5447
|
r.handleChange(e), e !== null && u.editMode === "cell" && c();
|
|
5445
5448
|
}, n[8] = c, n[9] = u, n[10] = r, n[11] = _) : _ = n[11];
|
|
5446
5449
|
let v;
|
|
5447
|
-
return n[12] !== r.handleBlur || n[13] !== f || n[14] !== s || n[15] !== m || n[16] !== h || n[17] !== g || n[18] !== _ ? (v = /* @__PURE__ */
|
|
5450
|
+
return n[12] !== r.handleBlur || n[13] !== f || n[14] !== s || n[15] !== m || n[16] !== h || n[17] !== g || n[18] !== _ ? (v = /* @__PURE__ */ Y(T, {
|
|
5448
5451
|
size: s,
|
|
5449
5452
|
w: "100%",
|
|
5450
5453
|
searchable: !0,
|
|
@@ -5468,7 +5471,7 @@ function Qo(t) {
|
|
|
5468
5471
|
u(e.currentTarget), r.handleChange(e.currentTarget.value);
|
|
5469
5472
|
}, n[3] = r, n[4] = u, n[5] = p) : p = n[5];
|
|
5470
5473
|
let m;
|
|
5471
|
-
return n[6] !== r.handleBlur || n[7] !== l || n[8] !== c || n[9] !== a || n[10] !== d || n[11] !== f || n[12] !== p ? (m = /* @__PURE__ */
|
|
5474
|
+
return n[6] !== r.handleBlur || n[7] !== l || n[8] !== c || n[9] !== a || n[10] !== d || n[11] !== f || n[12] !== p ? (m = /* @__PURE__ */ Y(O, {
|
|
5472
5475
|
ref: l,
|
|
5473
5476
|
size: a,
|
|
5474
5477
|
w: "100%",
|
|
@@ -5497,7 +5500,7 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5497
5500
|
y.current = h.columnDef.meta?.edit?.mapValue;
|
|
5498
5501
|
});
|
|
5499
5502
|
let [b] = c(() => {
|
|
5500
|
-
let e = new
|
|
5503
|
+
let e = new fe({
|
|
5501
5504
|
form: g,
|
|
5502
5505
|
name: _,
|
|
5503
5506
|
validators: en(h.columnDef.meta?.edit?.validate)
|
|
@@ -5582,7 +5585,7 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5582
5585
|
size: p,
|
|
5583
5586
|
seedText: v
|
|
5584
5587
|
}, P = h.columnDef.meta?.edit?.editor ?? $o[h.columnDef.meta?.type ?? "string"] ?? Qo;
|
|
5585
|
-
return /* @__PURE__ */
|
|
5588
|
+
return /* @__PURE__ */ X("div", {
|
|
5586
5589
|
className: Rt.cellEditor,
|
|
5587
5590
|
"data-dg-part": "editor",
|
|
5588
5591
|
"data-row-id": t.id,
|
|
@@ -5591,12 +5594,12 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5591
5594
|
onBlur: M,
|
|
5592
5595
|
onMouseDown: (e) => e.stopPropagation(),
|
|
5593
5596
|
onDoubleClick: (e) => e.stopPropagation(),
|
|
5594
|
-
children: [/* @__PURE__ */
|
|
5597
|
+
children: [/* @__PURE__ */ Y(k, {
|
|
5595
5598
|
label: x,
|
|
5596
5599
|
opened: x !== void 0 && (S || w),
|
|
5597
5600
|
withArrow: !0,
|
|
5598
5601
|
position: "bottom-start",
|
|
5599
|
-
children: /* @__PURE__ */
|
|
5602
|
+
children: /* @__PURE__ */ Y("div", {
|
|
5600
5603
|
className: Rt.cellEditorField,
|
|
5601
5604
|
onMouseEnter: () => C(!0),
|
|
5602
5605
|
onMouseLeave: () => C(!1),
|
|
@@ -5605,11 +5608,11 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5605
5608
|
let t = e.relatedTarget;
|
|
5606
5609
|
_n(t) && e.currentTarget.contains(t) || T(!1);
|
|
5607
5610
|
},
|
|
5608
|
-
children: /* @__PURE__ */
|
|
5611
|
+
children: /* @__PURE__ */ Y(P, { ...N })
|
|
5609
5612
|
})
|
|
5610
|
-
}), d.editMode === "cellConfirm" && /* @__PURE__ */
|
|
5613
|
+
}), d.editMode === "cellConfirm" && /* @__PURE__ */ X("div", {
|
|
5611
5614
|
className: Rt.cellEditorActions,
|
|
5612
|
-
children: [/* @__PURE__ */
|
|
5615
|
+
children: [/* @__PURE__ */ Y(l, {
|
|
5613
5616
|
size: "sm",
|
|
5614
5617
|
variant: "subtle",
|
|
5615
5618
|
color: "green",
|
|
@@ -5617,11 +5620,11 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5617
5620
|
"data-dg-part": "editor-confirm",
|
|
5618
5621
|
onMouseDown: (e) => e.preventDefault(),
|
|
5619
5622
|
onClick: () => void D("pick"),
|
|
5620
|
-
children: /* @__PURE__ */
|
|
5623
|
+
children: /* @__PURE__ */ Y(V, {
|
|
5621
5624
|
size: 14,
|
|
5622
5625
|
stroke: 2
|
|
5623
5626
|
})
|
|
5624
|
-
}), /* @__PURE__ */
|
|
5627
|
+
}), /* @__PURE__ */ Y(l, {
|
|
5625
5628
|
size: "sm",
|
|
5626
5629
|
variant: "subtle",
|
|
5627
5630
|
color: "gray",
|
|
@@ -5629,7 +5632,7 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5629
5632
|
"data-dg-part": "editor-cancel",
|
|
5630
5633
|
onMouseDown: (e) => e.preventDefault(),
|
|
5631
5634
|
onClick: O,
|
|
5632
|
-
children: /* @__PURE__ */
|
|
5635
|
+
children: /* @__PURE__ */ Y(ue, {
|
|
5633
5636
|
size: 14,
|
|
5634
5637
|
stroke: 2
|
|
5635
5638
|
})
|
|
@@ -5694,18 +5697,18 @@ function rs(t) {
|
|
|
5694
5697
|
zIndex: j
|
|
5695
5698
|
}, n[27] = c, n[28] = O, n[29] = k, n[30] = A, n[31] = j, n[32] = N) : N = n[32];
|
|
5696
5699
|
let P;
|
|
5697
|
-
n[33] !== a || n[34] !== i.id || n[35] !== o || n[36] !== v || n[37] !== g || n[38] !== r ? (P = a === void 0 ? null : i.id === "__edit__" ? Fe(a.column.columnDef.cell, a.getContext()) : !o && g ? /* @__PURE__ */
|
|
5700
|
+
n[33] !== a || n[34] !== i.id || n[35] !== o || n[36] !== v || n[37] !== g || n[38] !== r ? (P = a === void 0 ? null : i.id === "__edit__" ? Fe(a.column.columnDef.cell, a.getContext()) : !o && g ? /* @__PURE__ */ Y(es, {
|
|
5698
5701
|
cell: a,
|
|
5699
5702
|
row: r,
|
|
5700
5703
|
takeSeedText: as,
|
|
5701
5704
|
onClose: is,
|
|
5702
5705
|
inEntryBlock: !0
|
|
5703
|
-
}) : o || !Bn(i.id) ? /* @__PURE__ */
|
|
5706
|
+
}) : o || !Bn(i.id) ? /* @__PURE__ */ Y("span", {
|
|
5704
5707
|
className: Rt.cellContent,
|
|
5705
5708
|
children: Fe(a.column.columnDef.cell, v === void 0 ? a.getContext() : ts(a, v))
|
|
5706
5709
|
}) : null, n[33] = a, n[34] = i.id, n[35] = o, n[36] = v, n[37] = g, n[38] = r, n[39] = P) : P = n[39];
|
|
5707
5710
|
let F;
|
|
5708
|
-
return n[40] !== i.id || n[41] !== D || n[42] !== N || n[43] !== P || n[44] !== b || n[45] !== x || n[46] !== S || n[47] !== C ? (F = /* @__PURE__ */
|
|
5711
|
+
return n[40] !== i.id || n[41] !== D || n[42] !== N || n[43] !== P || n[44] !== b || n[45] !== x || n[46] !== S || n[47] !== C ? (F = /* @__PURE__ */ Y("div", {
|
|
5709
5712
|
role: "cell",
|
|
5710
5713
|
"data-column-id": y,
|
|
5711
5714
|
"data-align": b,
|
|
@@ -5776,7 +5779,7 @@ function os(t) {
|
|
|
5776
5779
|
let a = t, s;
|
|
5777
5780
|
n[28] !== a || n[29] !== i || n[30] !== r || n[31] !== o ? (s = (e, t) => {
|
|
5778
5781
|
let n = new Map(e.getAllCells().map(ss)), s = a.get(e.id) === !0;
|
|
5779
|
-
return /* @__PURE__ */
|
|
5782
|
+
return /* @__PURE__ */ Y("div", {
|
|
5780
5783
|
role: "row",
|
|
5781
5784
|
"data-dg-part": "entry-row",
|
|
5782
5785
|
"data-row-id": e.id,
|
|
@@ -5784,7 +5787,7 @@ function os(t) {
|
|
|
5784
5787
|
"data-committed": s || void 0,
|
|
5785
5788
|
"data-draft": s || void 0,
|
|
5786
5789
|
className: Rt.entryRow,
|
|
5787
|
-
children: r.map((r) => /* @__PURE__ */
|
|
5790
|
+
children: r.map((r) => /* @__PURE__ */ Y(rs, {
|
|
5788
5791
|
entryRow: e,
|
|
5789
5792
|
column: r,
|
|
5790
5793
|
cell: n.get(r.id),
|
|
@@ -5796,7 +5799,7 @@ function os(t) {
|
|
|
5796
5799
|
}, e.id);
|
|
5797
5800
|
}, n[28] = a, n[29] = i, n[30] = r, n[31] = o, n[32] = s) : s = n[32];
|
|
5798
5801
|
let c = s;
|
|
5799
|
-
D = e.length > 0 && /* @__PURE__ */
|
|
5802
|
+
D = e.length > 0 && /* @__PURE__ */ Y("div", {
|
|
5800
5803
|
ref: _,
|
|
5801
5804
|
role: "rowgroup",
|
|
5802
5805
|
"data-dg-entry-block": !0,
|
|
@@ -5805,7 +5808,7 @@ function os(t) {
|
|
|
5805
5808
|
}), n[20] = E, n[21] = i, n[22] = m, n[23] = r, n[24] = o, n[25] = D;
|
|
5806
5809
|
} else D = n[25];
|
|
5807
5810
|
let O;
|
|
5808
|
-
return n[33] === D ? O = n[34] : (O = /* @__PURE__ */
|
|
5811
|
+
return n[33] === D ? O = n[34] : (O = /* @__PURE__ */ Y(de, { children: D }), n[33] = D, n[34] = O), O;
|
|
5809
5812
|
}
|
|
5810
5813
|
function ss(e) {
|
|
5811
5814
|
return [e.column.id, e];
|
|
@@ -5961,7 +5964,7 @@ function ks(e, t) {
|
|
|
5961
5964
|
let n = ws(e, t);
|
|
5962
5965
|
if (n === null) return e;
|
|
5963
5966
|
let r = [], i = 0;
|
|
5964
|
-
for (let t of n) t.start > i && r.push(e.slice(i, t.start)), r.push(/* @__PURE__ */
|
|
5967
|
+
for (let t of n) t.start > i && r.push(e.slice(i, t.start)), r.push(/* @__PURE__ */ Y("mark", {
|
|
5965
5968
|
className: Rt.matchHighlight,
|
|
5966
5969
|
children: e.slice(t.start, t.end)
|
|
5967
5970
|
}, t.start)), i = t.end;
|
|
@@ -5996,16 +5999,16 @@ function As(t) {
|
|
|
5996
5999
|
ne,
|
|
5997
6000
|
re
|
|
5998
6001
|
].filter(Boolean), n[15] = ne, n[16] = re, n[17] = ie) : ie = n[17];
|
|
5999
|
-
let ae = ie.join(" "), oe = a.pinnedAt === "left" ? a.offset : void 0,
|
|
6000
|
-
n[18] !== i || n[19] !== oe || n[20] !==
|
|
6002
|
+
let ae = ie.join(" "), oe = a.pinnedAt === "left" ? a.offset : void 0, K = a.pinnedAt === "right" ? a.offset : void 0, q = a.pinnedAt ? "sticky" : o?.focused ? "relative" : void 0, se = a.pinnedAt ? o?.focused ? "var(--dg-z-pinned-focused-cell, 3)" : "var(--dg-z-pinned-cell, 2)" : o?.focused ? "var(--dg-z-focused-cell, 1)" : void 0, J;
|
|
6003
|
+
n[18] !== i || n[19] !== oe || n[20] !== K || n[21] !== q || n[22] !== se ? (J = {
|
|
6001
6004
|
minHeight: i,
|
|
6002
6005
|
left: oe,
|
|
6003
|
-
right:
|
|
6004
|
-
position:
|
|
6005
|
-
zIndex:
|
|
6006
|
-
}, n[18] = i, n[19] = oe, n[20] =
|
|
6007
|
-
let
|
|
6008
|
-
n[24] !== r || n[25] !== c || n[26] !== O || n[27] !== s || n[28] !== l || n[29] !== g ? (
|
|
6006
|
+
right: K,
|
|
6007
|
+
position: q,
|
|
6008
|
+
zIndex: se
|
|
6009
|
+
}, n[18] = i, n[19] = oe, n[20] = K, n[21] = q, n[22] = se, n[23] = J) : J = n[23];
|
|
6010
|
+
let ce;
|
|
6011
|
+
n[24] !== r || n[25] !== c || n[26] !== O || n[27] !== s || n[28] !== l || n[29] !== g ? (ce = s ?? /* @__PURE__ */ Y("span", {
|
|
6009
6012
|
className: Rt.cellContent,
|
|
6010
6013
|
children: (() => {
|
|
6011
6014
|
let e = O !== void 0 && c === void 0 && !r.getIsPlaceholder() && !r.getIsAggregated() ? ts(r, O) : void 0;
|
|
@@ -6015,9 +6018,9 @@ function As(t) {
|
|
|
6015
6018
|
}
|
|
6016
6019
|
return e === void 0 ? c ?? Os(r) : Fe(r.column.columnDef.cell, e);
|
|
6017
6020
|
})()
|
|
6018
|
-
}), n[24] = r, n[25] = c, n[26] = O, n[27] = s, n[28] = l, n[29] = g, n[30] =
|
|
6019
|
-
let
|
|
6020
|
-
return n[31] !== r.column.id || n[32] !== r.row.id || n[33] !== d || n[34] !== h || n[35] !== m || n[36] !== u || n[37] !== f || n[38] !== p || n[39] !== I || n[40] !== L || n[41] !== R || n[42] !== z || n[43] !== B || n[44] !== V || n[45] !== H || n[46] !== U || n[47] !== W || n[48] !== ee || n[49] !== G || n[50] !== te || n[51] !== ae || n[52] !==
|
|
6021
|
+
}), n[24] = r, n[25] = c, n[26] = O, n[27] = s, n[28] = l, n[29] = g, n[30] = ce) : ce = n[30];
|
|
6022
|
+
let le;
|
|
6023
|
+
return n[31] !== r.column.id || n[32] !== r.row.id || n[33] !== d || n[34] !== h || n[35] !== m || n[36] !== u || n[37] !== f || n[38] !== p || n[39] !== I || n[40] !== L || n[41] !== R || n[42] !== z || n[43] !== B || n[44] !== V || n[45] !== H || n[46] !== U || n[47] !== W || n[48] !== ee || n[49] !== G || n[50] !== te || n[51] !== ae || n[52] !== J || n[53] !== ce || n[54] !== k || n[55] !== A || n[56] !== j || n[57] !== N ? (le = /* @__PURE__ */ Y("div", {
|
|
6021
6024
|
role: k,
|
|
6022
6025
|
"aria-colindex": A,
|
|
6023
6026
|
tabIndex: j,
|
|
@@ -6043,15 +6046,15 @@ function As(t) {
|
|
|
6043
6046
|
"data-control-column": te,
|
|
6044
6047
|
onContextMenu: h,
|
|
6045
6048
|
className: ae,
|
|
6046
|
-
style:
|
|
6047
|
-
children:
|
|
6048
|
-
}), n[31] = r.column.id, n[32] = r.row.id, n[33] = d, n[34] = h, n[35] = m, n[36] = u, n[37] = f, n[38] = p, n[39] = I, n[40] = L, n[41] = R, n[42] = z, n[43] = B, n[44] = V, n[45] = H, n[46] = U, n[47] = W, n[48] = ee, n[49] = G, n[50] = te, n[51] = ae, n[52] =
|
|
6049
|
+
style: J,
|
|
6050
|
+
children: ce
|
|
6051
|
+
}), n[31] = r.column.id, n[32] = r.row.id, n[33] = d, n[34] = h, n[35] = m, n[36] = u, n[37] = f, n[38] = p, n[39] = I, n[40] = L, n[41] = R, n[42] = z, n[43] = B, n[44] = V, n[45] = H, n[46] = U, n[47] = W, n[48] = ee, n[49] = G, n[50] = te, n[51] = ae, n[52] = J, n[53] = ce, n[54] = k, n[55] = A, n[56] = j, n[57] = N, n[58] = le) : le = n[58], le;
|
|
6049
6052
|
}
|
|
6050
6053
|
function js(t) {
|
|
6051
6054
|
let n = e(16), { enabled: r, menuContent: i, menuProps: a, onContextMenu: o, onClose: s, children: c } = t, l;
|
|
6052
6055
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { display: "contents" }, n[0] = l) : l = n[0];
|
|
6053
6056
|
let u = r ? o : void 0, d;
|
|
6054
|
-
n[1] !== c || n[2] !== u ? (d = /* @__PURE__ */
|
|
6057
|
+
n[1] !== c || n[2] !== u ? (d = /* @__PURE__ */ Y("div", {
|
|
6055
6058
|
role: "rowgroup",
|
|
6056
6059
|
style: l,
|
|
6057
6060
|
onContextMenu: u,
|
|
@@ -6064,11 +6067,11 @@ function js(t) {
|
|
|
6064
6067
|
e || s();
|
|
6065
6068
|
}, n[4] = s, n[5] = m);
|
|
6066
6069
|
let h;
|
|
6067
|
-
n[6] === f ? h = n[7] : (h = /* @__PURE__ */
|
|
6070
|
+
n[6] === f ? h = n[7] : (h = /* @__PURE__ */ Y(_.ContextMenu, { children: f }), n[6] = f, n[7] = h);
|
|
6068
6071
|
let g;
|
|
6069
|
-
n[8] === i ? g = n[9] : (g = /* @__PURE__ */
|
|
6072
|
+
n[8] === i ? g = n[9] : (g = /* @__PURE__ */ Y(_.Dropdown, { children: i }), n[8] = i, n[9] = g);
|
|
6070
6073
|
let v;
|
|
6071
|
-
return n[10] !== a || n[11] !== p || n[12] !== m || n[13] !== h || n[14] !== g ? (v = /* @__PURE__ */
|
|
6074
|
+
return n[10] !== a || n[11] !== p || n[12] !== m || n[13] !== h || n[14] !== g ? (v = /* @__PURE__ */ X(_, {
|
|
6072
6075
|
opened: p,
|
|
6073
6076
|
onChange: m,
|
|
6074
6077
|
position: "bottom-start",
|
|
@@ -6081,15 +6084,15 @@ function js(t) {
|
|
|
6081
6084
|
function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContextMenu: l, rowClassName: u, rowStyle: d, striped: f = !1, onScrollToTop: m, onScrollToBottom: h, onScrollToLeft: v, onScrollToRight: y, renderEmptyState: b, renderRowContextMenu: x, renderColumnMenuItems: S, rowContextMenuProps: C, onReachEnd: w, reachEndThreshold: T = 10, "aria-label": E, "aria-labelledby": O }) {
|
|
6082
6085
|
let { table: k, ui: A, edit: j, features: N, filters: P, exportOptions: F, labels: I, rowHeight: L, controlSize: R, renderDetails: z, renderDetailsEstHeight: B, overscan: V, scrollerRef: H } = $();
|
|
6083
6086
|
Ea(k.store);
|
|
6084
|
-
let U = M(A, (e) => e.highlightedRowId), W = M(A, (e) => e.focusedCell), ee = M(A, (e) => e.cellRange), G = M(j.store, (e) => e.active), te = M(j.store, (e) => e.openRowIds), ne = M(j.store, (e) => e.newRows), re = ne.length, ie = M(j.store, (e) => e.deletedRowIds), ae = M(j.store, (e) => e.openRowIds.filter((t) => (e.rows[t]?.dirtyFields.length ?? 0) > 0)), oe = M(j.store, (e) => e.committedRowIds),
|
|
6087
|
+
let U = M(A, (e) => e.highlightedRowId), W = M(A, (e) => e.focusedCell), ee = M(A, (e) => e.cellRange), G = M(j.store, (e) => e.active), te = M(j.store, (e) => e.openRowIds), ne = M(j.store, (e) => e.newRows), re = ne.length, ie = M(j.store, (e) => e.deletedRowIds), ae = M(j.store, (e) => e.openRowIds.filter((t) => (e.rows[t]?.dirtyFields.length ?? 0) > 0)), oe = M(j.store, (e) => e.committedRowIds), K = o(() => new Set(te), [te]), q = o(() => new Set(ae), [ae]), se = o(() => new Set(oe), [oe]), J = o(() => new Set(ne.map((e) => e.tempId)), [ne]), { loading: le, noResultsLabel: ue = I.noResults } = k.options.meta ?? {}, fe = s(null), Z = Cn(k, N), pe = N.matchHighlighting ? Cs(k) : null, me = N.rowPinning ? xs(k, "top") : [], he = N.rowPinning ? xs(k, "bottom") : [], ge = me.length + he.length, _e = null;
|
|
6085
6088
|
if (N.rowNumbers) {
|
|
6086
6089
|
_e = /* @__PURE__ */ new Map();
|
|
6087
6090
|
let e = wn(k, N) ? k.store.state.pagination.pageIndex * k.store.state.pagination.pageSize : 0;
|
|
6088
|
-
for (let t of
|
|
6091
|
+
for (let t of Z) t.getIsGrouped() || _e.set(t.id, ++e);
|
|
6089
6092
|
}
|
|
6090
6093
|
let ve = (e) => z !== void 0 && !e.getIsGrouped() && e.getIsExpanded(), ye = s(null);
|
|
6091
6094
|
i(() => {
|
|
6092
|
-
let e =
|
|
6095
|
+
let e = fe.current;
|
|
6093
6096
|
if (e === null) return;
|
|
6094
6097
|
ye.current ??= new Set(k.getAllLeafColumns().filter((e) => e.columnDef.meta?.autoSize === !0).map((e) => e.id));
|
|
6095
6098
|
let t = ye.current;
|
|
@@ -6112,7 +6115,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6112
6115
|
let t = e.querySelectorAll("[data-dg-header-row]"), n = e.querySelectorAll("[data-dg-entry-block], [data-dg-part=\"pinned-top\"]"), r = e.querySelectorAll("[data-dg-entry-flow-block]"), i = () => {
|
|
6113
6116
|
let i = 0;
|
|
6114
6117
|
for (let e of t) e.style.top = `${i}px`, i += e.offsetHeight;
|
|
6115
|
-
(re > 0 ||
|
|
6118
|
+
(re > 0 || me.length > 0) && e.style.setProperty("--dg-header-height", `${i}px`), Ce.current?.style.setProperty("--dg-header-stack-height", `${i}px`);
|
|
6116
6119
|
let a = i;
|
|
6117
6120
|
for (let e of n) a += e.offsetHeight;
|
|
6118
6121
|
let o = a;
|
|
@@ -6129,11 +6132,11 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6129
6132
|
return () => a.disconnect();
|
|
6130
6133
|
}, [
|
|
6131
6134
|
re,
|
|
6132
|
-
|
|
6135
|
+
me.length,
|
|
6133
6136
|
xe,
|
|
6134
6137
|
Se
|
|
6135
6138
|
]), i(() => {
|
|
6136
|
-
if (re === 0 ||
|
|
6139
|
+
if (re === 0 || me.length === 0) return;
|
|
6137
6140
|
let e = be.current;
|
|
6138
6141
|
if (e === null) return;
|
|
6139
6142
|
let t = e.querySelector("[data-dg-entry-block]");
|
|
@@ -6144,20 +6147,20 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6144
6147
|
return r.observe(t), () => {
|
|
6145
6148
|
r.disconnect(), e.style.removeProperty("--dg-entry-height");
|
|
6146
6149
|
};
|
|
6147
|
-
}, [re,
|
|
6150
|
+
}, [re, me.length]), i(() => {
|
|
6148
6151
|
if (!N.pagination) return;
|
|
6149
6152
|
let e = k.getPageCount();
|
|
6150
6153
|
e > 0 && k.store.state.pagination.pageIndex >= e && k.setPageIndex(e - 1);
|
|
6151
6154
|
});
|
|
6152
6155
|
let Ae = Ze({
|
|
6153
|
-
count:
|
|
6154
|
-
getScrollElement: () =>
|
|
6156
|
+
count: Z.length,
|
|
6157
|
+
getScrollElement: () => fe.current,
|
|
6155
6158
|
estimateSize: (e) => {
|
|
6156
|
-
let t =
|
|
6159
|
+
let t = Z[e];
|
|
6157
6160
|
return t === void 0 ? L : L + (ve(t) ? B : 0);
|
|
6158
6161
|
},
|
|
6159
6162
|
measureElement: (e, t, n) => e.getBoundingClientRect().height || n.options.estimateSize(n.indexFromElement(e)),
|
|
6160
|
-
getItemKey: n((e) =>
|
|
6163
|
+
getItemKey: n((e) => Z[e]?.id ?? e, [Z]),
|
|
6161
6164
|
overscan: V,
|
|
6162
6165
|
initialRect: {
|
|
6163
6166
|
height: 600,
|
|
@@ -6172,15 +6175,15 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6172
6175
|
}, [L, Ae]);
|
|
6173
6176
|
let Q = Ae.getVirtualItems(), Me = (Q[0]?.start ?? we) - we, Ne = Ae.getTotalSize() - ((Q.at(-1)?.end ?? we) - we);
|
|
6174
6177
|
i(() => (H.current = ({ rowId: e, align: t = "auto" }) => {
|
|
6175
|
-
if (
|
|
6176
|
-
let n =
|
|
6178
|
+
if (me.some((t) => t.id === e) || he.some((t) => t.id === e)) return !0;
|
|
6179
|
+
let n = Z.findIndex((t) => t.id === e);
|
|
6177
6180
|
return n < 0 ? !1 : (Ae.scrollToIndex(n, { align: t }), !0);
|
|
6178
6181
|
}, () => {
|
|
6179
6182
|
H.current = () => !1;
|
|
6180
6183
|
}));
|
|
6181
6184
|
let Pe = s(null), Ie = s(!1), Le = Q.at(-1)?.index ?? -1;
|
|
6182
6185
|
i(() => {
|
|
6183
|
-
w === void 0 ||
|
|
6186
|
+
w === void 0 || Z.length === 0 || (N.pagination && !Ie.current && (Ie.current = !0, console.warn("TMDataGrid: onReachEnd and pagination slice the same scroll - the pager caps the rows, so the end it reaches is the page's. Use one or the other.")), !(Le < Z.length - 1 - T) && Pe.current !== Z.length && (Pe.current = Z.length, w()));
|
|
6184
6187
|
});
|
|
6185
6188
|
let Re = k.getStartVisibleLeafColumns(), ze = k.getEndVisibleLeafColumns(), Be = k.getCenterVisibleLeafColumns(), Ve = [
|
|
6186
6189
|
...Re,
|
|
@@ -6248,7 +6251,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6248
6251
|
});
|
|
6249
6252
|
return () => n.unsubscribe();
|
|
6250
6253
|
}, [k]);
|
|
6251
|
-
let rt =
|
|
6254
|
+
let rt = Z.length === 0 && ge === 0, it = k.store.state.globalFilter, at = k.store.state.columnFilters.length > 0 || (typeof it == "string" ? it.trim() !== "" : it != null), ot = Ge.at(-1)?.headers ?? [], st = Ve.some((e) => e.columnDef.footer !== void 0), ct = Ge.length + +!!xe;
|
|
6252
6255
|
a(() => {
|
|
6253
6256
|
if (!st) return;
|
|
6254
6257
|
let e = be.current;
|
|
@@ -6277,7 +6280,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6277
6280
|
let lt = N.rowClickSelects, ut = lt || N.highlightRow || e !== void 0, dt = (e) => !e.getIsGrouped() && ut, ft = (t, n) => {
|
|
6278
6281
|
if (lt && t.getCanSelect()) {
|
|
6279
6282
|
let e = En({
|
|
6280
|
-
rows:
|
|
6283
|
+
rows: Z,
|
|
6281
6284
|
rowId: t.id,
|
|
6282
6285
|
anchorRowId: A.state.selectionAnchorRowId,
|
|
6283
6286
|
modifiers: n,
|
|
@@ -6292,7 +6295,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6292
6295
|
row: t,
|
|
6293
6296
|
column: e.column,
|
|
6294
6297
|
event: n
|
|
6295
|
-
}), gt = N.cellSelection, _t = N.cellRangeSelection, vt = s(!1), yt = s(null), bt = s(null), xt = s(null), St = s(!1), Ct = gt && W !== null ?
|
|
6298
|
+
}), gt = N.cellSelection, _t = N.cellRangeSelection, vt = s(!1), yt = s(null), bt = s(null), xt = s(null), St = s(!1), Ct = gt && W !== null ? Z.findIndex((e) => e.id === W.rowId) : -1, wt = gt && W !== null ? Ve.findIndex((e) => e.id === W.columnId) : -1, Tt = Ct >= 0 && Q.some((e) => e.index === Ct), Et = Z[Q[0]?.index ?? -1], Dt = gt ? Tt && W !== null ? W : Et && Ve[0] ? {
|
|
6296
6299
|
rowId: Et.id,
|
|
6297
6300
|
columnId: Ve[0].id
|
|
6298
6301
|
} : null : null, Ot = () => {
|
|
@@ -6302,11 +6305,11 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6302
6305
|
}
|
|
6303
6306
|
if (Dt === null) return;
|
|
6304
6307
|
vt.current = !0, A.actions.setFocusedCell(Dt);
|
|
6305
|
-
let e =
|
|
6308
|
+
let e = fe.current;
|
|
6306
6309
|
e !== null && Es(e, Dt)?.focus({ preventScroll: !0 });
|
|
6307
6310
|
}, kt = (e, t, n) => e !== null && e.rowId === t && e.columnId === n, At = _s({
|
|
6308
6311
|
range: _t ? ee : null,
|
|
6309
|
-
rowIndexOf: (e) =>
|
|
6312
|
+
rowIndexOf: (e) => Z.findIndex((t) => t.id === e),
|
|
6310
6313
|
columnIndexOf: (e) => Ve.findIndex((t) => t.id === e)
|
|
6311
6314
|
}), jt = (e, { extend: t }) => {
|
|
6312
6315
|
if (!_t) return;
|
|
@@ -6322,7 +6325,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6322
6325
|
right: wt
|
|
6323
6326
|
} : null), Nt = ys(Mt), Pt = Mt === null ? 0 : Ve.slice(Mt.left, Mt.right + 1).filter((e) => !Vn(e.id) && e.columnDef.meta?.enableExport !== !1).length, Ft = Ki(F), [It, Lt] = c(Ft.includeHeaders), zt = () => Mt === null ? null : ea({
|
|
6324
6327
|
table: k,
|
|
6325
|
-
rows:
|
|
6328
|
+
rows: Z,
|
|
6326
6329
|
bounds: Mt
|
|
6327
6330
|
}), Bt = async () => {
|
|
6328
6331
|
let e = zt();
|
|
@@ -6342,7 +6345,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6342
6345
|
includeHeaders: It
|
|
6343
6346
|
});
|
|
6344
6347
|
}, Gt = (e, { extend: t } = { extend: !1 }) => {
|
|
6345
|
-
let n =
|
|
6348
|
+
let n = Z[e.rowIndex], r = Ve[e.columnIndex];
|
|
6346
6349
|
if (!n || !r) return;
|
|
6347
6350
|
let i = {
|
|
6348
6351
|
rowId: n.id,
|
|
@@ -6353,7 +6356,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6353
6356
|
let e = Kt.current;
|
|
6354
6357
|
return Kt.current = void 0, e;
|
|
6355
6358
|
}, Jt = (e) => {
|
|
6356
|
-
let t =
|
|
6359
|
+
let t = Z.find((t) => t.id === e);
|
|
6357
6360
|
return t === void 0 ? null : [
|
|
6358
6361
|
...t.getStartVisibleCells(),
|
|
6359
6362
|
...t.getCenterVisibleCells(),
|
|
@@ -6366,7 +6369,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6366
6369
|
return;
|
|
6367
6370
|
}
|
|
6368
6371
|
if (Yt.current === G) return;
|
|
6369
|
-
let e =
|
|
6372
|
+
let e = fe.current;
|
|
6370
6373
|
if (e === null) return;
|
|
6371
6374
|
let t = G.columnId ?? Jt(G.rowId);
|
|
6372
6375
|
if (t === null) {
|
|
@@ -6377,7 +6380,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6377
6380
|
n !== null && (Yt.current = G, Ro(n));
|
|
6378
6381
|
});
|
|
6379
6382
|
let Xt = (e) => {
|
|
6380
|
-
let t =
|
|
6383
|
+
let t = fe.current;
|
|
6381
6384
|
t !== null && (vt.current = !0, Es(t, e)?.focus());
|
|
6382
6385
|
}, Zt = (e) => {
|
|
6383
6386
|
gt && A.actions.setFocusedCell(e), j.begin({
|
|
@@ -6390,13 +6393,13 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6390
6393
|
Xt(e);
|
|
6391
6394
|
return;
|
|
6392
6395
|
}
|
|
6393
|
-
let r =
|
|
6396
|
+
let r = Z.findIndex((t) => t.id === e.rowId), i = Ve.findIndex((t) => t.id === e.columnId);
|
|
6394
6397
|
if (r < 0 || i < 0) {
|
|
6395
6398
|
Xt(e);
|
|
6396
6399
|
return;
|
|
6397
6400
|
}
|
|
6398
6401
|
if (n === "down") {
|
|
6399
|
-
r + 1 <
|
|
6402
|
+
r + 1 < Z.length ? Gt({
|
|
6400
6403
|
rowIndex: r + 1,
|
|
6401
6404
|
columnIndex: i
|
|
6402
6405
|
}) : Xt(e);
|
|
@@ -6408,10 +6411,10 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6408
6411
|
columnIndex: i
|
|
6409
6412
|
},
|
|
6410
6413
|
direction: n,
|
|
6411
|
-
rowCount:
|
|
6414
|
+
rowCount: Z.length,
|
|
6412
6415
|
columnCount: Ve.length,
|
|
6413
6416
|
isEditable: (e) => {
|
|
6414
|
-
let t =
|
|
6417
|
+
let t = Z[e.rowIndex], n = Ve[e.columnIndex];
|
|
6415
6418
|
return t !== void 0 && n !== void 0 && j.canEditCell(t, n);
|
|
6416
6419
|
}
|
|
6417
6420
|
});
|
|
@@ -6419,7 +6422,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6419
6422
|
}, $t = (e, { extend: t }) => {
|
|
6420
6423
|
if (N.rowSelection && Tn(e).length > 0) {
|
|
6421
6424
|
let n = En({
|
|
6422
|
-
rows:
|
|
6425
|
+
rows: Z,
|
|
6423
6426
|
rowId: e.id,
|
|
6424
6427
|
anchorRowId: A.state.selectionAnchorRowId,
|
|
6425
6428
|
modifiers: {
|
|
@@ -6445,13 +6448,13 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6445
6448
|
e.preventDefault(), o.focus(), bn(o) && o.select();
|
|
6446
6449
|
return;
|
|
6447
6450
|
}
|
|
6448
|
-
let s =
|
|
6451
|
+
let s = Z.findIndex((e) => e.id === n.dataset.rowId), c = s + (e.shiftKey ? -1 : 1), l = s < 0 ? void 0 : Z[c], u = e.shiftKey ? Ve[Ve.length - 1] : Ve[0];
|
|
6449
6452
|
if (l !== void 0 && u !== void 0) {
|
|
6450
6453
|
e.preventDefault(), Gt({
|
|
6451
6454
|
rowIndex: c,
|
|
6452
6455
|
columnIndex: e.shiftKey ? Ve.length - 1 : 0
|
|
6453
6456
|
});
|
|
6454
|
-
let n =
|
|
6457
|
+
let n = fe.current, r = n === null ? null : Es(n, {
|
|
6455
6458
|
rowId: l.id,
|
|
6456
6459
|
columnId: u.id
|
|
6457
6460
|
});
|
|
@@ -6472,14 +6475,14 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6472
6475
|
}
|
|
6473
6476
|
let { rowId: r, columnId: i } = t.dataset;
|
|
6474
6477
|
if (r === void 0 || i === void 0) return;
|
|
6475
|
-
let a =
|
|
6478
|
+
let a = Z.findIndex((e) => e.id === r), o = Ve.findIndex((e) => e.id === i);
|
|
6476
6479
|
if (a < 0 || o < 0) return;
|
|
6477
6480
|
if ((e.ctrlKey || e.metaKey) && (e.key === "c" || e.key === "C")) {
|
|
6478
6481
|
if (Mt === null) return;
|
|
6479
6482
|
e.preventDefault(), Bt();
|
|
6480
6483
|
return;
|
|
6481
6484
|
}
|
|
6482
|
-
let s =
|
|
6485
|
+
let s = Z[a], c = Ve[o];
|
|
6483
6486
|
if (N.editing && s !== void 0 && c !== void 0 && j.canEditCell(s, c)) {
|
|
6484
6487
|
if (e.key === "Enter" || e.key === "F2") {
|
|
6485
6488
|
e.preventDefault(), Zt({
|
|
@@ -6521,7 +6524,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6521
6524
|
}
|
|
6522
6525
|
if (e.key === " ") {
|
|
6523
6526
|
e.preventDefault();
|
|
6524
|
-
let t =
|
|
6527
|
+
let t = Z[a];
|
|
6525
6528
|
t && $t(t, { extend: e.shiftKey });
|
|
6526
6529
|
return;
|
|
6527
6530
|
}
|
|
@@ -6532,15 +6535,15 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6532
6535
|
rowIndex: a,
|
|
6533
6536
|
columnIndex: o
|
|
6534
6537
|
},
|
|
6535
|
-
rowCount:
|
|
6538
|
+
rowCount: Z.length,
|
|
6536
6539
|
columnCount: Ve.length,
|
|
6537
|
-
pageRows: Math.max(1, Math.floor((
|
|
6540
|
+
pageRows: Math.max(1, Math.floor((fe.current?.clientHeight ?? 0) / L) - 1)
|
|
6538
6541
|
});
|
|
6539
6542
|
l !== null && (e.preventDefault(), !(l.rowIndex === a && l.columnIndex === o) && Gt(l, { extend: e.shiftKey && _t }));
|
|
6540
6543
|
};
|
|
6541
6544
|
i(() => {
|
|
6542
6545
|
if (!gt) return;
|
|
6543
|
-
let e =
|
|
6546
|
+
let e = fe.current;
|
|
6544
6547
|
if (e === null) return;
|
|
6545
6548
|
if (W !== yt.current && (yt.current = W, Ct >= 0 && Ae.scrollToIndex(Ct, { align: "auto" })), W === null) {
|
|
6546
6549
|
vt.current = !1;
|
|
@@ -6559,7 +6562,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6559
6562
|
let [tn, nn] = c(null), rn = () => nn(null), an = s(null), on = s(null), sn = () => {
|
|
6560
6563
|
let e = an.current, t = on.current;
|
|
6561
6564
|
if (an.current = null, on.current = null, gt && e !== null && t !== null) {
|
|
6562
|
-
let n =
|
|
6565
|
+
let n = Z.findIndex((t) => t.id === e), r = Ve.findIndex((e) => e.id === t);
|
|
6563
6566
|
n >= 0 && !vs(Mt, n, r) && (A.actions.setFocusedCell({
|
|
6564
6567
|
rowId: e,
|
|
6565
6568
|
columnId: t
|
|
@@ -6572,22 +6575,22 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6572
6575
|
rowId: e,
|
|
6573
6576
|
columnId: t
|
|
6574
6577
|
});
|
|
6575
|
-
}, cn = tn === null ? void 0 :
|
|
6576
|
-
/* @__PURE__ */
|
|
6577
|
-
/* @__PURE__ */
|
|
6578
|
+
}, cn = tn === null ? void 0 : Z.find((e) => e.id === tn.rowId) ?? me.find((e) => e.id === tn.rowId) ?? he.find((e) => e.id === tn.rowId), ln = x !== void 0 && tn !== null && cn !== void 0 && !cn.getIsGrouped(), un = _t && tn !== null && Mt !== null ? /* @__PURE__ */ X(de, { children: [
|
|
6579
|
+
/* @__PURE__ */ Y(_.Label, { children: I.cellCount(Nt) }),
|
|
6580
|
+
/* @__PURE__ */ Y(_.Item, {
|
|
6578
6581
|
disabled: Pt === 0,
|
|
6579
6582
|
onClick: () => void Bt(),
|
|
6580
6583
|
children: I.copy
|
|
6581
6584
|
}),
|
|
6582
|
-
/* @__PURE__ */
|
|
6585
|
+
/* @__PURE__ */ Y(_.Item, {
|
|
6583
6586
|
disabled: Pt === 0,
|
|
6584
6587
|
onClick: Wt,
|
|
6585
6588
|
children: I.exportCells
|
|
6586
6589
|
}),
|
|
6587
|
-
/* @__PURE__ */
|
|
6590
|
+
/* @__PURE__ */ Y(_.Item, {
|
|
6588
6591
|
closeMenuOnClick: !1,
|
|
6589
6592
|
onClick: () => Lt((e) => !e),
|
|
6590
|
-
children: /* @__PURE__ */
|
|
6593
|
+
children: /* @__PURE__ */ Y(p, {
|
|
6591
6594
|
size: "xs",
|
|
6592
6595
|
checked: It,
|
|
6593
6596
|
label: I.includeHeaders,
|
|
@@ -6603,9 +6606,9 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6603
6606
|
get internalItems() {
|
|
6604
6607
|
return dn = !0, un;
|
|
6605
6608
|
}
|
|
6606
|
-
}) ?? null : null, pn = dn ? fn : un === null && fn === null ? null : /* @__PURE__ */
|
|
6609
|
+
}) ?? null : null, pn = dn ? fn : un === null && fn === null ? null : /* @__PURE__ */ X(de, { children: [
|
|
6607
6610
|
un,
|
|
6608
|
-
un !== null && fn !== null && /* @__PURE__ */
|
|
6611
|
+
un !== null && fn !== null && /* @__PURE__ */ Y(_.Divider, {}),
|
|
6609
6612
|
fn
|
|
6610
6613
|
] }), mn = s({
|
|
6611
6614
|
top: !0,
|
|
@@ -6622,54 +6625,54 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6622
6625
|
}, r = mn.current;
|
|
6623
6626
|
mn.current = n, n.top && !r.top && m?.(), n.bottom && !r.bottom && h?.(), n.left && !r.left && v?.(), n.right && !r.right && y?.();
|
|
6624
6627
|
} : void 0;
|
|
6625
|
-
return /* @__PURE__ */
|
|
6628
|
+
return /* @__PURE__ */ X("div", {
|
|
6626
6629
|
ref: Ce,
|
|
6627
6630
|
className: Rt.tableWrapper,
|
|
6628
6631
|
"data-dg-filter-sidebar": P.surface === "sidebar" || void 0,
|
|
6629
6632
|
children: [
|
|
6630
|
-
/* @__PURE__ */
|
|
6631
|
-
ref:
|
|
6633
|
+
/* @__PURE__ */ Y("div", {
|
|
6634
|
+
ref: fe,
|
|
6632
6635
|
className: Rt.scrollContainer,
|
|
6633
6636
|
"data-dg-scroll-container": !0,
|
|
6634
6637
|
onScroll: gn,
|
|
6635
|
-
children: /* @__PURE__ */
|
|
6638
|
+
children: /* @__PURE__ */ X("div", {
|
|
6636
6639
|
ref: be,
|
|
6637
6640
|
role: gt ? "grid" : "table",
|
|
6638
6641
|
"aria-label": E,
|
|
6639
6642
|
"aria-labelledby": O,
|
|
6640
|
-
"aria-busy":
|
|
6643
|
+
"aria-busy": le === !0 || void 0,
|
|
6641
6644
|
"aria-multiselectable": gt && N.rowSelection && N.multiRowSelection ? !0 : void 0,
|
|
6642
6645
|
onKeyDown: gt ? en : void 0,
|
|
6643
6646
|
"data-range-dragging": Vt || void 0,
|
|
6644
6647
|
className: Rt.grid,
|
|
6645
|
-
"aria-rowcount":
|
|
6648
|
+
"aria-rowcount": Z.length + ge + ct + +!!st,
|
|
6646
6649
|
"aria-colcount": Ve.length,
|
|
6647
|
-
"data-dg-row-count":
|
|
6650
|
+
"data-dg-row-count": Z.length + ge,
|
|
6648
6651
|
style: {
|
|
6649
6652
|
gridTemplateColumns: Je,
|
|
6650
6653
|
minWidth: Ye
|
|
6651
6654
|
},
|
|
6652
6655
|
children: [
|
|
6653
|
-
/* @__PURE__ */
|
|
6656
|
+
/* @__PURE__ */ X("div", {
|
|
6654
6657
|
role: "rowgroup",
|
|
6655
6658
|
style: { display: "contents" },
|
|
6656
|
-
children: [Ge.map((e, t) => /* @__PURE__ */
|
|
6659
|
+
children: [Ge.map((e, t) => /* @__PURE__ */ Y("div", {
|
|
6657
6660
|
role: "row",
|
|
6658
6661
|
"aria-rowindex": t + 1,
|
|
6659
6662
|
"data-dg-header-row": !0,
|
|
6660
6663
|
className: [Rt.headerRow, !xe && t === Ge.length - 1 ? Xa.headerBoundary : ""].filter(Boolean).join(" "),
|
|
6661
|
-
children: e.headers.map((e) => /* @__PURE__ */
|
|
6664
|
+
children: e.headers.map((e) => /* @__PURE__ */ Y(Oo, {
|
|
6662
6665
|
renderColumnMenuItems: S,
|
|
6663
6666
|
header: e,
|
|
6664
6667
|
layout: tt(e.column.id)
|
|
6665
6668
|
}, e.id))
|
|
6666
|
-
}, e.id)), xe && /* @__PURE__ */
|
|
6669
|
+
}, e.id)), xe && /* @__PURE__ */ Y(lo, {
|
|
6667
6670
|
leafHeaders: ot,
|
|
6668
6671
|
layoutFor: tt,
|
|
6669
6672
|
ariaRowIndex: ct
|
|
6670
6673
|
})]
|
|
6671
6674
|
}),
|
|
6672
|
-
gt && /* @__PURE__ */
|
|
6675
|
+
gt && /* @__PURE__ */ Y("div", {
|
|
6673
6676
|
ref: bt,
|
|
6674
6677
|
tabIndex: Dt === null ? -1 : 0,
|
|
6675
6678
|
role: "presentation",
|
|
@@ -6678,12 +6681,12 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6678
6681
|
className: Rt.tabGuard,
|
|
6679
6682
|
onFocus: Ot
|
|
6680
6683
|
}),
|
|
6681
|
-
N.editing && re > 0 && /* @__PURE__ */
|
|
6684
|
+
N.editing && re > 0 && /* @__PURE__ */ Y(os, {
|
|
6682
6685
|
orderedColumns: Ve,
|
|
6683
6686
|
layoutFor: tt,
|
|
6684
6687
|
rowHeight: L
|
|
6685
6688
|
}),
|
|
6686
|
-
/* @__PURE__ */
|
|
6689
|
+
/* @__PURE__ */ Y(js, {
|
|
6687
6690
|
enabled: x !== void 0 || _t,
|
|
6688
6691
|
menuContent: pn,
|
|
6689
6692
|
menuProps: C,
|
|
@@ -6695,8 +6698,8 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6695
6698
|
...e.getStartVisibleCells(),
|
|
6696
6699
|
...e.getCenterVisibleCells(),
|
|
6697
6700
|
...e.getEndVisibleCells()
|
|
6698
|
-
], u = N.editMode === "row" &&
|
|
6699
|
-
return /* @__PURE__ */
|
|
6701
|
+
], u = N.editMode === "row" && K.has(e.id) && !se.has(e.id) && !J.has(e.id), d = !o && !gt && (lt || N.highlightRow);
|
|
6702
|
+
return /* @__PURE__ */ X("div", {
|
|
6700
6703
|
role: "row",
|
|
6701
6704
|
"aria-rowindex": i,
|
|
6702
6705
|
"data-dg-part": "row",
|
|
@@ -6710,9 +6713,9 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6710
6713
|
"data-selected-bg": N.rowSelection && N.showSelectedBackground && e.getIsSelected() || void 0,
|
|
6711
6714
|
"data-highlighted": N.highlightRow && e.id === U || void 0,
|
|
6712
6715
|
"data-deleted": ie.length > 0 && ie.includes(e.id) || void 0,
|
|
6713
|
-
"data-dirty":
|
|
6714
|
-
"data-draft":
|
|
6715
|
-
"data-new":
|
|
6716
|
+
"data-dirty": q.has(e.id) || void 0,
|
|
6717
|
+
"data-draft": se.has(e.id) || J.has(e.id) || void 0,
|
|
6718
|
+
"data-new": J.has(e.id) || void 0,
|
|
6716
6719
|
"data-context-menu": pn !== null && tn?.rowId === e.id || void 0,
|
|
6717
6720
|
"data-selects-on-click": lt && !o || void 0,
|
|
6718
6721
|
"aria-selected": N.rowSelection ? e.getIsSelected() : void 0,
|
|
@@ -6743,13 +6746,13 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6743
6746
|
} : void 0,
|
|
6744
6747
|
children: [c.map((i, a) => {
|
|
6745
6748
|
let s = G !== null && G.rowId === e.id && G.columnId === i.column.id || u && j.canEditCell(e, i.column);
|
|
6746
|
-
return /* @__PURE__ */
|
|
6749
|
+
return /* @__PURE__ */ Y(As, {
|
|
6747
6750
|
cell: i,
|
|
6748
6751
|
rowHeight: L,
|
|
6749
6752
|
layout: tt(i.column.id),
|
|
6750
6753
|
contentOverride: _e !== null && i.column.id === "__rowNumber__" ? _e.get(e.id) : void 0,
|
|
6751
|
-
highlightNeedles:
|
|
6752
|
-
editor: s ? /* @__PURE__ */
|
|
6754
|
+
highlightNeedles: pe?.get(i.column.id),
|
|
6755
|
+
editor: s ? /* @__PURE__ */ Y(es, {
|
|
6753
6756
|
cell: i,
|
|
6754
6757
|
row: e,
|
|
6755
6758
|
takeSeedText: qt,
|
|
@@ -6793,7 +6796,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6793
6796
|
on.current = i.column.id, !o && l?.(ht(i, e, t));
|
|
6794
6797
|
} : void 0
|
|
6795
6798
|
}, i.id);
|
|
6796
|
-
}), ve(e) && /* @__PURE__ */
|
|
6799
|
+
}), ve(e) && /* @__PURE__ */ Y("div", {
|
|
6797
6800
|
role: "cell",
|
|
6798
6801
|
"aria-colspan": Ve.length,
|
|
6799
6802
|
"data-dg-part": "details",
|
|
@@ -6808,14 +6811,14 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6808
6811
|
})]
|
|
6809
6812
|
}, e.id);
|
|
6810
6813
|
};
|
|
6811
|
-
return /* @__PURE__ */
|
|
6812
|
-
|
|
6814
|
+
return /* @__PURE__ */ X(de, { children: [
|
|
6815
|
+
me.length > 0 && /* @__PURE__ */ Y("div", {
|
|
6813
6816
|
role: "presentation",
|
|
6814
6817
|
"data-dg-part": "pinned-top",
|
|
6815
6818
|
className: Rt.pinnedTopBlock,
|
|
6816
|
-
children:
|
|
6819
|
+
children: me.map((t, n) => e(t, -1, ct + n + 1, "top"))
|
|
6817
6820
|
}),
|
|
6818
|
-
Me > 0 && /* @__PURE__ */
|
|
6821
|
+
Me > 0 && /* @__PURE__ */ Y("div", {
|
|
6819
6822
|
"aria-hidden": !0,
|
|
6820
6823
|
style: {
|
|
6821
6824
|
gridColumn: "1/-1",
|
|
@@ -6823,46 +6826,46 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6823
6826
|
}
|
|
6824
6827
|
}),
|
|
6825
6828
|
Q.map((t) => {
|
|
6826
|
-
let n =
|
|
6827
|
-
return n ? e(n, t.index, t.index + ct +
|
|
6829
|
+
let n = Z[t.index];
|
|
6830
|
+
return n ? e(n, t.index, t.index + ct + me.length + 1) : null;
|
|
6828
6831
|
}),
|
|
6829
|
-
Ne > 0 && /* @__PURE__ */
|
|
6832
|
+
Ne > 0 && /* @__PURE__ */ Y("div", {
|
|
6830
6833
|
"aria-hidden": !0,
|
|
6831
6834
|
style: {
|
|
6832
6835
|
gridColumn: "1/-1",
|
|
6833
6836
|
height: Ne
|
|
6834
6837
|
}
|
|
6835
6838
|
}),
|
|
6836
|
-
he.length > 0 && /* @__PURE__ */
|
|
6839
|
+
he.length > 0 && /* @__PURE__ */ Y("div", {
|
|
6837
6840
|
role: "presentation",
|
|
6838
6841
|
"data-dg-part": "pinned-bottom",
|
|
6839
6842
|
className: Rt.pinnedBottomBlock,
|
|
6840
|
-
children: he.map((t, n) => e(t, -1, ct +
|
|
6843
|
+
children: he.map((t, n) => e(t, -1, ct + me.length + Z.length + n + 1, "bottom"))
|
|
6841
6844
|
})
|
|
6842
6845
|
] });
|
|
6843
6846
|
})()
|
|
6844
6847
|
}),
|
|
6845
|
-
rt &&
|
|
6848
|
+
rt && le === !0 && /* @__PURE__ */ Y("div", {
|
|
6846
6849
|
role: "row",
|
|
6847
6850
|
className: Rt.messageRow,
|
|
6848
|
-
children: /* @__PURE__ */
|
|
6851
|
+
children: /* @__PURE__ */ Y(g, {
|
|
6849
6852
|
size: "lg",
|
|
6850
6853
|
"aria-label": I.loading
|
|
6851
6854
|
})
|
|
6852
6855
|
}),
|
|
6853
|
-
rt &&
|
|
6856
|
+
rt && le !== !0 && re === 0 && /* @__PURE__ */ Y("div", {
|
|
6854
6857
|
role: "row",
|
|
6855
6858
|
className: Rt.messageRow,
|
|
6856
|
-
children: b === void 0 ? at ? /* @__PURE__ */
|
|
6859
|
+
children: b === void 0 ? at ? /* @__PURE__ */ X(de, { children: [/* @__PURE__ */ Y(ce, {
|
|
6857
6860
|
size: 40,
|
|
6858
6861
|
stroke: 1.4,
|
|
6859
6862
|
opacity: .4
|
|
6860
|
-
}), /* @__PURE__ */
|
|
6863
|
+
}), /* @__PURE__ */ Y(D, {
|
|
6861
6864
|
span: !0,
|
|
6862
6865
|
size: R,
|
|
6863
6866
|
c: "dimmed",
|
|
6864
|
-
children:
|
|
6865
|
-
})] }) : /* @__PURE__ */
|
|
6867
|
+
children: ue
|
|
6868
|
+
})] }) : /* @__PURE__ */ Y(D, {
|
|
6866
6869
|
span: !0,
|
|
6867
6870
|
size: R,
|
|
6868
6871
|
c: "dimmed",
|
|
@@ -6872,14 +6875,14 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6872
6875
|
table: k
|
|
6873
6876
|
})
|
|
6874
6877
|
}),
|
|
6875
|
-
st && /* @__PURE__ */
|
|
6878
|
+
st && /* @__PURE__ */ Y("div", {
|
|
6876
6879
|
role: "row",
|
|
6877
|
-
"aria-rowindex":
|
|
6880
|
+
"aria-rowindex": Z.length + ge + ct + 1,
|
|
6878
6881
|
"data-dg-part": "summary-row",
|
|
6879
6882
|
className: Rt.summaryRow,
|
|
6880
6883
|
children: ot.map((e) => {
|
|
6881
6884
|
let t = tt(e.column.id);
|
|
6882
|
-
return /* @__PURE__ */
|
|
6885
|
+
return /* @__PURE__ */ Y("div", {
|
|
6883
6886
|
role: "cell",
|
|
6884
6887
|
"data-column-id": e.column.id,
|
|
6885
6888
|
"data-align": zn(e.column),
|
|
@@ -6896,14 +6899,14 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6896
6899
|
position: t.pinnedAt ? "sticky" : void 0,
|
|
6897
6900
|
zIndex: t.pinnedAt ? "var(--dg-z-summary-pinned-cell, 5)" : void 0
|
|
6898
6901
|
},
|
|
6899
|
-
children: /* @__PURE__ */
|
|
6902
|
+
children: /* @__PURE__ */ Y("span", {
|
|
6900
6903
|
className: Rt.cellContent,
|
|
6901
6904
|
children: e.isPlaceholder ? null : Fe(e.column.columnDef.footer, e.getContext())
|
|
6902
6905
|
})
|
|
6903
6906
|
}, e.id);
|
|
6904
6907
|
})
|
|
6905
6908
|
}),
|
|
6906
|
-
gt && /* @__PURE__ */
|
|
6909
|
+
gt && /* @__PURE__ */ Y("div", {
|
|
6907
6910
|
ref: xt,
|
|
6908
6911
|
tabIndex: Dt === null ? -1 : 0,
|
|
6909
6912
|
role: "presentation",
|
|
@@ -6915,8 +6918,8 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6915
6918
|
]
|
|
6916
6919
|
})
|
|
6917
6920
|
}),
|
|
6918
|
-
P.surface === "popup" && /* @__PURE__ */
|
|
6919
|
-
P.surface === "sidebar" && /* @__PURE__ */
|
|
6921
|
+
P.surface === "popup" && /* @__PURE__ */ Y(to, {}),
|
|
6922
|
+
P.surface === "sidebar" && /* @__PURE__ */ Y(ro, {})
|
|
6920
6923
|
]
|
|
6921
6924
|
});
|
|
6922
6925
|
}
|
|
@@ -6937,7 +6940,7 @@ function Ps(t) {
|
|
|
6937
6940
|
let p;
|
|
6938
6941
|
n[10] !== a || n[11] !== f ? (p = [f, a], n[10] = a, n[11] = f, n[12] = p) : p = n[12];
|
|
6939
6942
|
let m;
|
|
6940
|
-
return n[13] !== r || n[14] !== o || n[15] !== u || n[16] !== p ? (m = /* @__PURE__ */
|
|
6943
|
+
return n[13] !== r || n[14] !== o || n[15] !== u || n[16] !== p ? (m = /* @__PURE__ */ Y(d, {
|
|
6941
6944
|
"data-dg-part": "toolbar",
|
|
6942
6945
|
className: u,
|
|
6943
6946
|
mod: p,
|
|
@@ -6951,7 +6954,7 @@ function Fs(t) {
|
|
|
6951
6954
|
let a;
|
|
6952
6955
|
n[3] === r ? a = n[4] : (a = [Ns.toolbarSpacer, r].filter(Boolean), n[3] = r, n[4] = a);
|
|
6953
6956
|
let o = a.join(" "), s;
|
|
6954
|
-
return n[5] !== i || n[6] !== o ? (s = /* @__PURE__ */
|
|
6957
|
+
return n[5] !== i || n[6] !== o ? (s = /* @__PURE__ */ Y(d, {
|
|
6955
6958
|
className: o,
|
|
6956
6959
|
...i
|
|
6957
6960
|
}), n[5] = i, n[6] = o, n[7] = s) : s = n[7], s;
|
|
@@ -6960,7 +6963,7 @@ function Is() {
|
|
|
6960
6963
|
let t = e(2), { table: n, labels: r } = $();
|
|
6961
6964
|
if (n.options.meta?.loading !== !0) return null;
|
|
6962
6965
|
let i;
|
|
6963
|
-
return t[0] === r.loading ? i = t[1] : (i = /* @__PURE__ */
|
|
6966
|
+
return t[0] === r.loading ? i = t[1] : (i = /* @__PURE__ */ Y(g, {
|
|
6964
6967
|
size: "xs",
|
|
6965
6968
|
"data-dg-part": "loading",
|
|
6966
6969
|
"aria-label": r.loading
|
|
@@ -6974,7 +6977,7 @@ function Ls(t) {
|
|
|
6974
6977
|
let c = s, l;
|
|
6975
6978
|
n[2] !== o || n[3] !== i ? (l = i.options.meta?.totalRowCount ?? (o ? void 0 : i.getPreFilteredRowModel().rows.length), n[2] = o, n[3] = i, n[4] = l) : l = n[4];
|
|
6976
6979
|
let u = l, d = r === void 0 ? u === void 0 ? `${c}` : `${c} / ${u}` : r, f;
|
|
6977
|
-
return n[5] !== a || n[6] !== d ? (f = /* @__PURE__ */
|
|
6980
|
+
return n[5] !== a || n[6] !== d ? (f = /* @__PURE__ */ Y(D, {
|
|
6978
6981
|
span: !0,
|
|
6979
6982
|
size: a,
|
|
6980
6983
|
c: "dimmed",
|
|
@@ -6996,12 +6999,12 @@ function Rs() {
|
|
|
6996
6999
|
e && ya(n, e.id), i.actions.openFilterPanel(e?.id ?? null);
|
|
6997
7000
|
}, t[0] = n, t[1] = d.length, t[2] = u, t[3] = r, t[4] = i.actions, t[5] = h) : h = t[5];
|
|
6998
7001
|
let g;
|
|
6999
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */
|
|
7002
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ Y(ne, {
|
|
7000
7003
|
size: 16,
|
|
7001
7004
|
stroke: 1.6
|
|
7002
7005
|
}), t[6] = g) : g = t[6];
|
|
7003
7006
|
let _;
|
|
7004
|
-
t[7] !== c || t[8] !== s.filters || t[9] !== p || t[10] !== m || t[11] !== h ? (_ = /* @__PURE__ */
|
|
7007
|
+
t[7] !== c || t[8] !== s.filters || t[9] !== p || t[10] !== m || t[11] !== h ? (_ = /* @__PURE__ */ Y(l, {
|
|
7005
7008
|
variant: p,
|
|
7006
7009
|
color: m,
|
|
7007
7010
|
size: c,
|
|
@@ -7011,7 +7014,7 @@ function Rs() {
|
|
|
7011
7014
|
children: g
|
|
7012
7015
|
}), t[7] = c, t[8] = s.filters, t[9] = p, t[10] = m, t[11] = h, t[12] = _) : _ = t[12];
|
|
7013
7016
|
let v;
|
|
7014
|
-
return t[13] !== s.filters || t[14] !== _ ? (v = /* @__PURE__ */
|
|
7017
|
+
return t[13] !== s.filters || t[14] !== _ ? (v = /* @__PURE__ */ Y(k, {
|
|
7015
7018
|
label: s.filters,
|
|
7016
7019
|
openDelay: 400,
|
|
7017
7020
|
children: _
|
|
@@ -7058,9 +7061,9 @@ function Ws() {
|
|
|
7058
7061
|
let g = `var(--mantine-font-size-${a})`, _;
|
|
7059
7062
|
t[13] === g ? _ = t[14] : (_ = { title: { fontSize: g } }, t[13] = g, t[14] = _);
|
|
7060
7063
|
let y;
|
|
7061
|
-
t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */
|
|
7064
|
+
t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */ Y(Js, { request: s }), t[15] = s, t[16] = y);
|
|
7062
7065
|
let b;
|
|
7063
|
-
return t[17] !== c || t[18] !== l || t[19] !== u || t[20] !== d || t[21] !== f || t[22] !== m || t[23] !== _ || t[24] !== y ? (b = /* @__PURE__ */
|
|
7066
|
+
return t[17] !== c || t[18] !== l || t[19] !== u || t[20] !== d || t[21] !== f || t[22] !== m || t[23] !== _ || t[24] !== y ? (b = /* @__PURE__ */ Y(c, {
|
|
7064
7067
|
opened: l,
|
|
7065
7068
|
onClose: u,
|
|
7066
7069
|
title: d,
|
|
@@ -7121,18 +7124,18 @@ function Js(t) {
|
|
|
7121
7124
|
let R = L, z;
|
|
7122
7125
|
n[24] !== o || n[25] !== r.rows || n[26] !== i ? (z = o.exportPickerHint(r.rows === "selected" ? Qi(i) : null), n[24] = o, n[25] = r.rows, n[26] = i, n[27] = z) : z = n[27];
|
|
7123
7126
|
let B = z, V;
|
|
7124
|
-
n[28] !== s || n[29] !== B ? (V = /* @__PURE__ */
|
|
7127
|
+
n[28] !== s || n[29] !== B ? (V = /* @__PURE__ */ Y(D, {
|
|
7125
7128
|
size: s,
|
|
7126
7129
|
c: "dimmed",
|
|
7127
7130
|
"data-dg-part": "export-picker-hint",
|
|
7128
7131
|
children: B
|
|
7129
7132
|
}), n[28] = s, n[29] = B, n[30] = V) : V = n[30];
|
|
7130
7133
|
let H;
|
|
7131
|
-
n[31] !== s || n[32] !== o.columnsSearchPlaceholder || n[33] !== g || n[34] !== S ? (H = S && /* @__PURE__ */
|
|
7134
|
+
n[31] !== s || n[32] !== o.columnsSearchPlaceholder || n[33] !== g || n[34] !== S ? (H = S && /* @__PURE__ */ Y(O, {
|
|
7132
7135
|
value: g,
|
|
7133
7136
|
onChange: (e) => _(e.currentTarget.value),
|
|
7134
7137
|
placeholder: o.columnsSearchPlaceholder,
|
|
7135
|
-
leftSection: /* @__PURE__ */
|
|
7138
|
+
leftSection: /* @__PURE__ */ Y(ce, {
|
|
7136
7139
|
size: 16,
|
|
7137
7140
|
stroke: 1.6
|
|
7138
7141
|
}),
|
|
@@ -7145,7 +7148,7 @@ function Js(t) {
|
|
|
7145
7148
|
let W;
|
|
7146
7149
|
n[38] === Symbol.for("react.memo_cache_sentinel") ? (W = { label: Us.headerLabel }, n[38] = W) : W = n[38];
|
|
7147
7150
|
let ee;
|
|
7148
|
-
n[39] !== j || n[40] !== s || n[41] !== o.exportPickerSelectAll || n[42] !== M || n[43] !== U ? (ee = /* @__PURE__ */
|
|
7151
|
+
n[39] !== j || n[40] !== s || n[41] !== o.exportPickerSelectAll || n[42] !== M || n[43] !== U ? (ee = /* @__PURE__ */ Y(p, {
|
|
7149
7152
|
size: s,
|
|
7150
7153
|
label: o.exportPickerSelectAll,
|
|
7151
7154
|
checked: j,
|
|
@@ -7157,26 +7160,26 @@ function Js(t) {
|
|
|
7157
7160
|
let G;
|
|
7158
7161
|
n[45] !== y.size || n[46] !== h.length || n[47] !== o ? (G = o.exportPickerCount(y.size, h.length), n[45] = y.size, n[46] = h.length, n[47] = o, n[48] = G) : G = n[48];
|
|
7159
7162
|
let te;
|
|
7160
|
-
n[49] === G ? te = n[50] : (te = /* @__PURE__ */
|
|
7163
|
+
n[49] === G ? te = n[50] : (te = /* @__PURE__ */ Y(D, {
|
|
7161
7164
|
size: "xs",
|
|
7162
7165
|
c: "dimmed",
|
|
7163
7166
|
"data-dg-part": "export-picker-count",
|
|
7164
7167
|
children: G
|
|
7165
7168
|
}), n[49] = G, n[50] = te);
|
|
7166
7169
|
let ne;
|
|
7167
|
-
n[51] !== ee || n[52] !== te ? (ne = /* @__PURE__ */
|
|
7170
|
+
n[51] !== ee || n[52] !== te ? (ne = /* @__PURE__ */ X("div", {
|
|
7168
7171
|
className: Us.listHeader,
|
|
7169
7172
|
children: [ee, te]
|
|
7170
7173
|
}), n[51] = ee, n[52] = te, n[53] = ne) : ne = n[53];
|
|
7171
7174
|
let re;
|
|
7172
7175
|
if (n[54] !== y || n[55] !== s || n[56] !== o.exportPickerHidden || n[57] !== T) {
|
|
7173
7176
|
let e;
|
|
7174
|
-
n[59] !== y || n[60] !== s || n[61] !== o.exportPickerHidden ? (e = (e) => /* @__PURE__ */
|
|
7177
|
+
n[59] !== y || n[60] !== s || n[61] !== o.exportPickerHidden ? (e = (e) => /* @__PURE__ */ Y(p, {
|
|
7175
7178
|
size: s,
|
|
7176
|
-
label: /* @__PURE__ */
|
|
7179
|
+
label: /* @__PURE__ */ X(de, { children: [/* @__PURE__ */ Y("span", {
|
|
7177
7180
|
className: Us.rowText,
|
|
7178
7181
|
children: Mn(e)
|
|
7179
|
-
}), !e.getIsVisible() && /* @__PURE__ */
|
|
7182
|
+
}), !e.getIsVisible() && /* @__PURE__ */ Y("span", {
|
|
7180
7183
|
className: Us.rowHint,
|
|
7181
7184
|
children: o.exportPickerHidden
|
|
7182
7185
|
})] }),
|
|
@@ -7193,63 +7196,63 @@ function Js(t) {
|
|
|
7193
7196
|
}, e.id), n[59] = y, n[60] = s, n[61] = o.exportPickerHidden, n[62] = e) : e = n[62], re = T.map(e), n[54] = y, n[55] = s, n[56] = o.exportPickerHidden, n[57] = T, n[58] = re;
|
|
7194
7197
|
} else re = n[58];
|
|
7195
7198
|
let ie;
|
|
7196
|
-
n[63] !== s || n[64] !== o || n[65] !== T.length || n[66] !== g ? (ie = T.length === 0 && /* @__PURE__ */
|
|
7199
|
+
n[63] !== s || n[64] !== o || n[65] !== T.length || n[66] !== g ? (ie = T.length === 0 && /* @__PURE__ */ Y(D, {
|
|
7197
7200
|
size: s,
|
|
7198
7201
|
c: "dimmed",
|
|
7199
7202
|
className: Us.empty,
|
|
7200
7203
|
children: o.columnsNoMatch(g)
|
|
7201
7204
|
}), n[63] = s, n[64] = o, n[65] = T.length, n[66] = g, n[67] = ie) : ie = n[67];
|
|
7202
7205
|
let ae;
|
|
7203
|
-
n[68] !== re || n[69] !== ie ? (ae = /* @__PURE__ */
|
|
7206
|
+
n[68] !== re || n[69] !== ie ? (ae = /* @__PURE__ */ Y(C.Autosize, {
|
|
7204
7207
|
mah: "50vh",
|
|
7205
7208
|
type: "auto",
|
|
7206
|
-
children: /* @__PURE__ */
|
|
7209
|
+
children: /* @__PURE__ */ X("div", {
|
|
7207
7210
|
className: Us.rows,
|
|
7208
7211
|
children: [re, ie]
|
|
7209
7212
|
})
|
|
7210
7213
|
}), n[68] = re, n[69] = ie, n[70] = ae) : ae = n[70];
|
|
7211
7214
|
let oe;
|
|
7212
|
-
n[71] !== ne || n[72] !== ae ? (oe = /* @__PURE__ */
|
|
7215
|
+
n[71] !== ne || n[72] !== ae ? (oe = /* @__PURE__ */ X("div", {
|
|
7213
7216
|
className: Us.list,
|
|
7214
7217
|
children: [ne, ae]
|
|
7215
7218
|
}), n[71] = ne, n[72] = ae, n[73] = oe) : oe = n[73];
|
|
7216
|
-
let se;
|
|
7217
|
-
n[74] === a.actions ? se = n[75] : (se = () => a.actions.closeExportPicker(), n[74] = a.actions, n[75] = se);
|
|
7218
7219
|
let K;
|
|
7219
|
-
n[
|
|
7220
|
+
n[74] === a.actions ? K = n[75] : (K = () => a.actions.closeExportPicker(), n[74] = a.actions, n[75] = K);
|
|
7221
|
+
let q;
|
|
7222
|
+
n[76] !== s || n[77] !== o.exportPickerCancel || n[78] !== K ? (q = /* @__PURE__ */ Y(f, {
|
|
7220
7223
|
variant: "default",
|
|
7221
7224
|
size: s,
|
|
7222
|
-
onClick:
|
|
7225
|
+
onClick: K,
|
|
7223
7226
|
"data-dg-part": "export-picker-cancel",
|
|
7224
7227
|
children: o.exportPickerCancel
|
|
7225
|
-
}), n[76] = s, n[77] = o.exportPickerCancel, n[78] =
|
|
7226
|
-
let
|
|
7227
|
-
n[80] === R ?
|
|
7228
|
-
let
|
|
7229
|
-
n[82] !== s || n[83] !== o.exportPickerConfirm || n[84] !==
|
|
7228
|
+
}), n[76] = s, n[77] = o.exportPickerCancel, n[78] = K, n[79] = q) : q = n[79];
|
|
7229
|
+
let se = y.size === 0, J;
|
|
7230
|
+
n[80] === R ? J = n[81] : (J = () => void R(), n[80] = R, n[81] = J);
|
|
7231
|
+
let le;
|
|
7232
|
+
n[82] !== s || n[83] !== o.exportPickerConfirm || n[84] !== se || n[85] !== J ? (le = /* @__PURE__ */ Y(f, {
|
|
7230
7233
|
size: s,
|
|
7231
|
-
disabled:
|
|
7232
|
-
onClick:
|
|
7234
|
+
disabled: se,
|
|
7235
|
+
onClick: J,
|
|
7233
7236
|
"data-dg-part": "export-picker-confirm",
|
|
7234
7237
|
children: o.exportPickerConfirm
|
|
7235
|
-
}), n[82] = s, n[83] = o.exportPickerConfirm, n[84] =
|
|
7236
|
-
let
|
|
7237
|
-
n[87] !==
|
|
7238
|
+
}), n[82] = s, n[83] = o.exportPickerConfirm, n[84] = se, n[85] = J, n[86] = le) : le = n[86];
|
|
7239
|
+
let ue;
|
|
7240
|
+
n[87] !== q || n[88] !== le ? (ue = /* @__PURE__ */ X(m, {
|
|
7238
7241
|
justify: "flex-end",
|
|
7239
7242
|
gap: "xs",
|
|
7240
|
-
children: [
|
|
7241
|
-
}), n[87] =
|
|
7242
|
-
let
|
|
7243
|
-
return n[90] !== V || n[91] !== H || n[92] !== oe || n[93] !==
|
|
7243
|
+
children: [q, le]
|
|
7244
|
+
}), n[87] = q, n[88] = le, n[89] = ue) : ue = n[89];
|
|
7245
|
+
let fe;
|
|
7246
|
+
return n[90] !== V || n[91] !== H || n[92] !== oe || n[93] !== ue ? (fe = /* @__PURE__ */ X(E, {
|
|
7244
7247
|
gap: "sm",
|
|
7245
7248
|
"data-dg-part": "export-picker",
|
|
7246
7249
|
children: [
|
|
7247
7250
|
V,
|
|
7248
7251
|
H,
|
|
7249
7252
|
oe,
|
|
7250
|
-
|
|
7253
|
+
ue
|
|
7251
7254
|
]
|
|
7252
|
-
}), n[90] = V, n[91] = H, n[92] = oe, n[93] =
|
|
7255
|
+
}), n[90] = V, n[91] = H, n[92] = oe, n[93] = ue, n[94] = fe) : fe = n[94], fe;
|
|
7253
7256
|
}
|
|
7254
7257
|
function Ys(e) {
|
|
7255
7258
|
return e.id;
|
|
@@ -7300,7 +7303,7 @@ function tc(t) {
|
|
|
7300
7303
|
let E = T, D;
|
|
7301
7304
|
n[17] === v ? D = n[18] : (D = [Qe.root, v].filter(Boolean), n[17] = v, n[18] = D);
|
|
7302
7305
|
let O = D.join(" "), k;
|
|
7303
|
-
n[19] !== _ || n[20] !== b || n[21] !== S || n[22] !== y || n[23] !== O || n[24] !== x ? (k = /* @__PURE__ */
|
|
7306
|
+
n[19] !== _ || n[20] !== b || n[21] !== S || n[22] !== y || n[23] !== O || n[24] !== x ? (k = /* @__PURE__ */ Y("div", {
|
|
7304
7307
|
id: b,
|
|
7305
7308
|
"data-testid": x,
|
|
7306
7309
|
"data-dg-root": !0,
|
|
@@ -7310,9 +7313,9 @@ function tc(t) {
|
|
|
7310
7313
|
children: _
|
|
7311
7314
|
}), n[19] = _, n[20] = b, n[21] = S, n[22] = y, n[23] = O, n[24] = x, n[25] = k) : k = n[25];
|
|
7312
7315
|
let A;
|
|
7313
|
-
n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */
|
|
7316
|
+
n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ Y(Ws, {}), n[26] = A) : A = n[26];
|
|
7314
7317
|
let j;
|
|
7315
|
-
return n[27] !== E || n[28] !== k ? (j = /* @__PURE__ */
|
|
7318
|
+
return n[27] !== E || n[28] !== k ? (j = /* @__PURE__ */ X(tt, {
|
|
7316
7319
|
value: E,
|
|
7317
7320
|
children: [k, A]
|
|
7318
7321
|
}), n[27] = E, n[28] = k, n[29] = j) : j = n[29], j;
|
|
@@ -7338,7 +7341,7 @@ function rc(t) {
|
|
|
7338
7341
|
let n = e(26), { column: r, operator: i, value: a, onChange: o, size: s, labels: c } = t;
|
|
7339
7342
|
if (!vt(i)) {
|
|
7340
7343
|
let e;
|
|
7341
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7344
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ Y(hr, { ...t }), n[0] = t, n[1] = e), e;
|
|
7342
7345
|
}
|
|
7343
7346
|
let l;
|
|
7344
7347
|
if (n[2] !== r) {
|
|
@@ -7364,7 +7367,7 @@ function rc(t) {
|
|
|
7364
7367
|
return o([String(t), String(n)]);
|
|
7365
7368
|
}, n[12] = o, n[13] = x);
|
|
7366
7369
|
let C;
|
|
7367
|
-
n[14] !== c.filterFrom || n[15] !== c.filterTo || n[16] !== d || n[17] !== u || n[18] !== s || n[19] !== b || n[20] !== x ? (C = /* @__PURE__ */
|
|
7370
|
+
n[14] !== c.filterFrom || n[15] !== c.filterTo || n[16] !== d || n[17] !== u || n[18] !== s || n[19] !== b || n[20] !== x ? (C = /* @__PURE__ */ Y(S, {
|
|
7368
7371
|
size: s,
|
|
7369
7372
|
mt: 6,
|
|
7370
7373
|
min: u,
|
|
@@ -7376,7 +7379,7 @@ function rc(t) {
|
|
|
7376
7379
|
onChange: x
|
|
7377
7380
|
}), n[14] = c.filterFrom, n[15] = c.filterTo, n[16] = d, n[17] = u, n[18] = s, n[19] = b, n[20] = x, n[21] = C) : C = n[21];
|
|
7378
7381
|
let w;
|
|
7379
|
-
return n[22] !== s || n[23] !== _ || n[24] !== C ? (w = /* @__PURE__ */
|
|
7382
|
+
return n[22] !== s || n[23] !== _ || n[24] !== C ? (w = /* @__PURE__ */ Y(h.Wrapper, {
|
|
7380
7383
|
..._,
|
|
7381
7384
|
size: s,
|
|
7382
7385
|
children: C
|
|
@@ -7388,7 +7391,7 @@ function ic(t) {
|
|
|
7388
7391
|
let n = e(32), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
|
|
7389
7392
|
if (!vt(r)) {
|
|
7390
7393
|
let e;
|
|
7391
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7394
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ Y(hr, { ...t }), n[0] = t, n[1] = e), e;
|
|
7392
7395
|
}
|
|
7393
7396
|
let c = t.layout !== "row", l;
|
|
7394
7397
|
n[2] === i ? l = n[3] : (l = Array.isArray(i) ? [String(i[0] ?? ""), String(i[1] ?? "")] : ["", ""], n[2] = i, n[3] = l);
|
|
@@ -7400,7 +7403,7 @@ function ic(t) {
|
|
|
7400
7403
|
let p = c ? 1 : void 0, h;
|
|
7401
7404
|
n[7] !== a || n[8] !== u[1] ? (h = (e) => a([e.currentTarget.value, u[1]]), n[7] = a, n[8] = u[1], n[9] = h) : h = n[9];
|
|
7402
7405
|
let g;
|
|
7403
|
-
n[10] !== u[0] || n[11] !== o || n[12] !== f || n[13] !== p || n[14] !== h ? (g = /* @__PURE__ */
|
|
7406
|
+
n[10] !== u[0] || n[11] !== o || n[12] !== f || n[13] !== p || n[14] !== h ? (g = /* @__PURE__ */ Y(O, {
|
|
7404
7407
|
...f,
|
|
7405
7408
|
size: o,
|
|
7406
7409
|
type: "date",
|
|
@@ -7417,7 +7420,7 @@ function ic(t) {
|
|
|
7417
7420
|
let v = c ? 1 : void 0, y;
|
|
7418
7421
|
n[19] !== a || n[20] !== u[0] ? (y = (e) => a([u[0], e.currentTarget.value]), n[19] = a, n[20] = u[0], n[21] = y) : y = n[21];
|
|
7419
7422
|
let b;
|
|
7420
|
-
n[22] !== u[1] || n[23] !== o || n[24] !== _ || n[25] !== v || n[26] !== y ? (b = /* @__PURE__ */
|
|
7423
|
+
n[22] !== u[1] || n[23] !== o || n[24] !== _ || n[25] !== v || n[26] !== y ? (b = /* @__PURE__ */ Y(O, {
|
|
7421
7424
|
..._,
|
|
7422
7425
|
size: o,
|
|
7423
7426
|
type: "date",
|
|
@@ -7427,7 +7430,7 @@ function ic(t) {
|
|
|
7427
7430
|
onChange: y
|
|
7428
7431
|
}), n[22] = u[1], n[23] = o, n[24] = _, n[25] = v, n[26] = y, n[27] = b) : b = n[27];
|
|
7429
7432
|
let x;
|
|
7430
|
-
return n[28] !== d || n[29] !== g || n[30] !== b ? (x = /* @__PURE__ */
|
|
7433
|
+
return n[28] !== d || n[29] !== g || n[30] !== b ? (x = /* @__PURE__ */ X(m, {
|
|
7431
7434
|
gap: 4,
|
|
7432
7435
|
wrap: "nowrap",
|
|
7433
7436
|
align: "flex-start",
|
|
@@ -7441,7 +7444,7 @@ function ac(t) {
|
|
|
7441
7444
|
let n = e(21), { column: r, table: i, operator: a, value: o, onChange: s, options: c, size: l, labels: d } = t;
|
|
7442
7445
|
if (_t(a) || vt(a)) {
|
|
7443
7446
|
let e;
|
|
7444
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7447
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ Y(hr, { ...t }), n[0] = t, n[1] = e), e;
|
|
7445
7448
|
}
|
|
7446
7449
|
let f;
|
|
7447
7450
|
n[2] === a ? f = n[3] : (f = gt(a), n[2] = a, n[3] = f);
|
|
@@ -7459,7 +7462,7 @@ function ac(t) {
|
|
|
7459
7462
|
let _ = !p, v = p && t.layout !== "header" ? d.filterValuePlaceholder : "", y;
|
|
7460
7463
|
n[11] === h ? y = n[12] : (y = h.map(oc), n[11] = h, n[12] = y);
|
|
7461
7464
|
let b = p && typeof o == "string" ? o : "", x;
|
|
7462
|
-
return n[13] !== s || n[14] !== l || n[15] !== g || n[16] !== _ || n[17] !== v || n[18] !== y || n[19] !== b ? (x = /* @__PURE__ */
|
|
7465
|
+
return n[13] !== s || n[14] !== l || n[15] !== g || n[16] !== _ || n[17] !== v || n[18] !== y || n[19] !== b ? (x = /* @__PURE__ */ Y(u, {
|
|
7463
7466
|
...g,
|
|
7464
7467
|
size: l,
|
|
7465
7468
|
disabled: _,
|
|
@@ -7479,7 +7482,7 @@ function sc(t) {
|
|
|
7479
7482
|
let n = e(29), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
|
|
7480
7483
|
if (_t(r) || vt(r)) {
|
|
7481
7484
|
let e;
|
|
7482
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7485
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ Y(hr, { ...t }), n[0] = t, n[1] = e), e;
|
|
7483
7486
|
}
|
|
7484
7487
|
let c;
|
|
7485
7488
|
n[2] === r ? c = n[3] : (c = gt(r), n[2] = r, n[3] = c);
|
|
@@ -7509,7 +7512,7 @@ function sc(t) {
|
|
|
7509
7512
|
let v = u === "true" || u === "false" ? u : "all", y;
|
|
7510
7513
|
n[17] === a ? y = n[18] : (y = (e) => a(e === "all" ? "" : e), n[17] = a, n[18] = y);
|
|
7511
7514
|
let b;
|
|
7512
|
-
n[19] !== o || n[20] !== f || n[21] !== _ || n[22] !== v || n[23] !== y ? (b = /* @__PURE__ */
|
|
7515
|
+
n[19] !== o || n[20] !== f || n[21] !== _ || n[22] !== v || n[23] !== y ? (b = /* @__PURE__ */ Y(w, {
|
|
7513
7516
|
size: o,
|
|
7514
7517
|
disabled: f,
|
|
7515
7518
|
data: _,
|
|
@@ -7517,7 +7520,7 @@ function sc(t) {
|
|
|
7517
7520
|
onChange: y
|
|
7518
7521
|
}), n[19] = o, n[20] = f, n[21] = _, n[22] = v, n[23] = y, n[24] = b) : b = n[24];
|
|
7519
7522
|
let x;
|
|
7520
|
-
return n[25] !== o || n[26] !== d || n[27] !== b ? (x = /* @__PURE__ */
|
|
7523
|
+
return n[25] !== o || n[26] !== d || n[27] !== b ? (x = /* @__PURE__ */ Y(h.Wrapper, {
|
|
7521
7524
|
...d,
|
|
7522
7525
|
size: o,
|
|
7523
7526
|
children: b
|