@jielga/tmdatagrid 2.1.0 → 2.1.1
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.js +671 -668
- package/dist/index.js.map +1 -1
- package/docs/column-layout.md +1 -1
- package/docs/use-tm-data-grid.md +1 -1
- package/package.json +14 -14
- package/skills/appearance/SKILL.md +1 -1
- package/skills/cell-selection/SKILL.md +1 -1
- package/skills/columns/SKILL.md +1 -1
- package/skills/data/SKILL.md +1 -1
- package/skills/editing/SKILL.md +1 -1
- package/skills/filtering/SKILL.md +1 -1
- package/skills/getting-started/SKILL.md +1 -1
- package/skills/grouping/SKILL.md +1 -1
- package/skills/migrating-to-2/SKILL.md +1 -1
- package/skills/options/SKILL.md +2 -2
- package/skills/rows/SKILL.md +1 -1
- 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/TMDataGridTable.tsx +22 -8
- package/src/components/generatedColumns.tsx +8 -8
- package/src/useTMDataGrid.tsx +4 -3
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@ 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 se, IconPencil as K, IconPinnedOff as ce, IconPlus as q, IconSearch as le, IconTrash as ue, IconX as de } from "@tabler/icons-react";
|
|
6
|
+
import { Fragment as fe, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
7
|
+
import { FieldApi as pe, FormApi as X, getBy as me, useStore as Z } 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";
|
|
@@ -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__ */ J(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__ */ J("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__ */ J(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__ */ J(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__ */ J("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__ */ J(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 = me(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 = me(e, i), o = me(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(me(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 X({
|
|
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: me(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: me(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
|
+
}, se = (e) => {
|
|
858
858
|
D(() => {
|
|
859
859
|
for (let t of e) oe(t);
|
|
860
860
|
});
|
|
861
|
-
},
|
|
861
|
+
}, K = (e) => {
|
|
862
862
|
_.deletedRowIds.delete(e) && T("deletedRowIds");
|
|
863
|
-
},
|
|
863
|
+
}, ce = () => {
|
|
864
864
|
let t = e();
|
|
865
865
|
return t.draft ? t.onRowDelete !== void 0 || t.onSaveDrafts !== void 0 : t.onRowDelete !== void 0;
|
|
866
|
-
},
|
|
866
|
+
}, q = () => [..._.openRowIds].filter((e) => r.has(e)), le = 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
|
+
}, ue = null, de = () => (ue === null && (ue = J().finally(() => {
|
|
870
|
+
ue = null, _.isSaving && (_.isSaving = !1, T("isSaving"));
|
|
871
|
+
})), ue), fe = (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
|
+
}), J = async () => {
|
|
878
|
+
let t = [..._.deletedRowIds], n = q().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?.(fe(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(fe(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
|
+
}, Y = 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
|
+
}, pe = (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: le,
|
|
1034
|
+
saveDrafts: de,
|
|
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 = pe(t, n);
|
|
1037
|
+
return i === null || r === void 0 ? !1 : Y(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 = pe(e, t);
|
|
1044
|
+
return r !== null && Y(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 = pe(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 Y(e, n);
|
|
1060
1060
|
},
|
|
1061
1061
|
addRow: re,
|
|
1062
1062
|
addRows: ae,
|
|
1063
1063
|
deleteRow: oe,
|
|
1064
|
-
deleteRows:
|
|
1065
|
-
restoreRow:
|
|
1066
|
-
canDeleteRows:
|
|
1064
|
+
deleteRows: se,
|
|
1065
|
+
restoreRow: K,
|
|
1066
|
+
canDeleteRows: ce
|
|
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" ? q : r === "edited" ? K : ue, c = o ?? a, l = o !== null || void 0, u;
|
|
1077
|
+
n[0] === s ? u = n[1] : (u = /* @__PURE__ */ J(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__ */ J("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__ */ J(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__ */ J(k, {
|
|
1118
1118
|
label: o.deleteRow,
|
|
1119
1119
|
withArrow: !0,
|
|
1120
|
-
children: /* @__PURE__ */
|
|
1120
|
+
children: /* @__PURE__ */ J(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__ */ J(ue, {
|
|
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__ */ J(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__ */ J(K, {
|
|
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__ */ J(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__ */ J(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__ */ J(de, {
|
|
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__ */ J(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__ */ J(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__ */ Y(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__ */ J(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__ */ J(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__ */ J(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__ */ J(de, {
|
|
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__ */ J(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__ */ J(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__ */ Y(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__ */ J(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__ */ J(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__ */ J(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__ */ J(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__ */ Y(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__ */ J(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__ */ J(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__ */ J(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__ */ J(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__ */ J(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__ */ Y(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__ */ J(k, {
|
|
1365
1365
|
label: o.editRow,
|
|
1366
1366
|
withArrow: !0,
|
|
1367
|
-
children: /* @__PURE__ */
|
|
1367
|
+
children: /* @__PURE__ */ J(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__ */ J(K, {
|
|
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__ */ Y(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__ */ J(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__ */ J(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__ */ J(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__ */ J(de, {
|
|
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__ */ J(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__ */ J(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__ */ Y(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__ */ J(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__ */ J("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__ */ J("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__ */ Y("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__ */ Y(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__ */ J(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__ */ J(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__ */ J(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__ */ J("div", {
|
|
1822
1822
|
className: $e.columnsPanelSearch,
|
|
1823
|
-
children: /* @__PURE__ */
|
|
1823
|
+
children: /* @__PURE__ */ J(O, {
|
|
1824
1824
|
value: h,
|
|
1825
1825
|
onChange: (e) => g(e.currentTarget.value),
|
|
1826
1826
|
placeholder: l.columnsSearchPlaceholder,
|
|
1827
|
-
leftSection: /* @__PURE__ */
|
|
1827
|
+
leftSection: /* @__PURE__ */ J(le, {
|
|
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__ */ J(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__ */ J(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__ */ J(C.Autosize, {
|
|
1857
1857
|
mah: 260,
|
|
1858
1858
|
type: "auto",
|
|
1859
|
-
children: /* @__PURE__ */
|
|
1859
|
+
children: /* @__PURE__ */ Y("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__ */ J(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__ */ J(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__ */ J(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__ */ Y("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__ */ Y(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__ */ J(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__ */ J(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__ */ J(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__ */ Y(m, {
|
|
2022
2022
|
gap: "xs",
|
|
2023
2023
|
wrap: "nowrap",
|
|
2024
2024
|
children: [
|
|
2025
|
-
/* @__PURE__ */
|
|
2026
|
-
/* @__PURE__ */
|
|
2027
|
-
/* @__PURE__ */
|
|
2025
|
+
/* @__PURE__ */ J(nr, {}),
|
|
2026
|
+
/* @__PURE__ */ J(er, {}),
|
|
2027
|
+
/* @__PURE__ */ J(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__ */ J(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__ */ J(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__ */ Y(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__ */ J(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__ */ J(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__ */ J(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__ */ Y("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__ */ J(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__ */ J(de, {
|
|
2350
2350
|
size: 18,
|
|
2351
2351
|
stroke: 1.6
|
|
2352
2352
|
})
|
|
2353
2353
|
}),
|
|
2354
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ J("div", {
|
|
2355
2355
|
className: cr.filterColumnSlot,
|
|
2356
|
-
children: /* @__PURE__ */
|
|
2356
|
+
children: /* @__PURE__ */ J(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__ */ J("div", {
|
|
2368
2368
|
className: cr.filterOperatorSlot,
|
|
2369
|
-
children: /* @__PURE__ */
|
|
2369
|
+
children: /* @__PURE__ */ J(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__ */ J("div", {
|
|
2384
2384
|
className: cr.filterValueSlot,
|
|
2385
2385
|
"data-dg-filter-value-slot": !0,
|
|
2386
|
-
children: t ? /* @__PURE__ */
|
|
2386
|
+
children: t ? /* @__PURE__ */ J(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__ */ J(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__ */ J(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__ */ J(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__ */ Y("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__ */ Y(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__ */ J(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__ */ J(kn, { table: e }),
|
|
3211
|
+
cell: ({ row: e }) => /* @__PURE__ */ J(An, { row: e }),
|
|
3212
|
+
aggregatedCell: ({ row: e }) => /* @__PURE__ */ J(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__ */ J(dn, { row: e }),
|
|
3230
|
+
aggregatedCell: ({ row: e }) => /* @__PURE__ */ J(dn, { row: e }),
|
|
3231
|
+
header: ({ table: e }) => /* @__PURE__ */ J(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__ */ J(Lt, { table: e }),
|
|
3252
|
+
cell: ({ row: e }) => /* @__PURE__ */ J(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__ */ J(rn, { row: e }),
|
|
3275
|
+
aggregatedCell: ({ row: e }) => /* @__PURE__ */ J(rn, { row: e })
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
3278
|
//#endregion
|
|
@@ -3363,76 +3363,76 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3363
3363
|
R,
|
|
3364
3364
|
z,
|
|
3365
3365
|
B
|
|
3366
|
-
]), H =
|
|
3367
|
-
let t = (e) => (e ?? []).filter((e) => !Vn(e)), n = (e, t) => e
|
|
3366
|
+
]), H = D.selectColumn, U = D.grouping, W = b !== void 0, ee = y !== void 0 && (y.mode === "row" || E || y.onRowDelete !== void 0), G = O.selectColumnLabel, te = O.groupColumnLabel, ne = O.detailsColumnLabel, re = O.editColumnLabel, ie = O.rowNumberColumnLabel, ae = D.rowNumbers, oe = E, se = (e) => {
|
|
3367
|
+
let t = (e) => (e ?? []).filter((e) => !Vn(e)), n = (e, t) => e ? [t] : [], r = (e) => W && S === e;
|
|
3368
3368
|
return {
|
|
3369
3369
|
start: [
|
|
3370
|
-
...n(
|
|
3371
|
-
...n(
|
|
3372
|
-
...n(
|
|
3370
|
+
...n(ae, mn),
|
|
3371
|
+
...n(H, Dn),
|
|
3372
|
+
...n(U, ln),
|
|
3373
3373
|
...n(r("left"), Ft),
|
|
3374
3374
|
...t(e?.start)
|
|
3375
3375
|
],
|
|
3376
3376
|
end: [
|
|
3377
3377
|
...t(e?.end),
|
|
3378
3378
|
...n(r("right"), Ft),
|
|
3379
|
-
...n(
|
|
3379
|
+
...n(ee, tn)
|
|
3380
3380
|
]
|
|
3381
3381
|
};
|
|
3382
|
-
},
|
|
3383
|
-
let e = _a(w.columns), t =
|
|
3382
|
+
}, K = o(() => {
|
|
3383
|
+
let e = _a(w.columns), t = W ? [ca(ne)] : [];
|
|
3384
3384
|
return [
|
|
3385
|
-
...
|
|
3386
|
-
...
|
|
3387
|
-
...
|
|
3385
|
+
...ae ? [hn(ie)] : [],
|
|
3386
|
+
...H ? [oa(G)] : [],
|
|
3387
|
+
...U ? [sa(te)] : [],
|
|
3388
3388
|
...S === "left" ? t : [],
|
|
3389
3389
|
...e,
|
|
3390
3390
|
...S === "right" ? t : [],
|
|
3391
|
-
...
|
|
3391
|
+
...ee ? [la(re, oe)] : []
|
|
3392
3392
|
];
|
|
3393
3393
|
}, [
|
|
3394
3394
|
w.columns,
|
|
3395
|
-
|
|
3395
|
+
ae,
|
|
3396
|
+
H,
|
|
3397
|
+
W,
|
|
3398
|
+
S,
|
|
3396
3399
|
U,
|
|
3397
3400
|
ee,
|
|
3398
|
-
|
|
3399
|
-
|
|
3401
|
+
oe,
|
|
3402
|
+
ie,
|
|
3400
3403
|
G,
|
|
3401
|
-
K,
|
|
3402
|
-
ae,
|
|
3403
3404
|
te,
|
|
3404
3405
|
ne,
|
|
3405
|
-
re
|
|
3406
|
-
|
|
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 ? {
|
|
3406
|
+
re
|
|
3407
|
+
]), [ce] = c(() => ai(e, ri(K))), q = ce.grouping ?? w.initialState?.grouping ?? [], le = s((w.state?.grouping ?? q).length > 0), ue = vi(w.state), de = ue?.columnVisibility, fe = ue !== void 0 && de !== void 0 ? {
|
|
3408
3408
|
...ue,
|
|
3409
3409
|
columnVisibility: {
|
|
3410
3410
|
...ga(de),
|
|
3411
|
-
...
|
|
3411
|
+
...U ? { [ln]: le.current } : {}
|
|
3412
3412
|
}
|
|
3413
|
-
} : ue,
|
|
3414
|
-
|
|
3415
|
-
let
|
|
3416
|
-
let t = e.columnResizing, n =
|
|
3417
|
-
return n === null || n.isResizingColumn !== t.isResizingColumn ? (
|
|
3413
|
+
} : ue, J = s(void 0), Y = s(!1), pe = Y.current ? fe : yi(fe, J.current);
|
|
3414
|
+
Y.current = !1, J.current = pe;
|
|
3415
|
+
let X = s(null), me = n((e) => {
|
|
3416
|
+
let t = e.columnResizing, n = X.current;
|
|
3417
|
+
return n === null || n.isResizingColumn !== t.isResizingColumn ? (X.current = t, e) : {
|
|
3418
3418
|
...e,
|
|
3419
3419
|
columnResizing: n
|
|
3420
3420
|
};
|
|
3421
|
-
}, []),
|
|
3422
|
-
|
|
3423
|
-
let
|
|
3424
|
-
let e =
|
|
3425
|
-
for (let e of
|
|
3426
|
-
let r =
|
|
3421
|
+
}, []), Z = s(null), [he] = c(() => $t(() => Z.current)), _e = he, ve = M(_e.store, (e) => e.committedValues), ye = D.editNewRowsSticky, be = M(_e.store, (e) => ye ? ha : e.newRows.filter((e) => e.committed).map((e) => e.tempId), { compare: ge }), xe = s(w.getRowId);
|
|
3422
|
+
xe.current = w.getRowId;
|
|
3423
|
+
let Se = o(() => {
|
|
3424
|
+
let e = xe.current, t = /* @__PURE__ */ new Map(), n = [];
|
|
3425
|
+
for (let e of be) {
|
|
3426
|
+
let r = ve[e];
|
|
3427
3427
|
r !== void 0 && (t.set(r, e), n.push(r));
|
|
3428
3428
|
}
|
|
3429
|
-
let r = Object.keys(
|
|
3429
|
+
let r = Object.keys(ve).length;
|
|
3430
3430
|
if (r === 0) return {
|
|
3431
3431
|
rows: w.data,
|
|
3432
3432
|
idOf: t
|
|
3433
3433
|
};
|
|
3434
3434
|
let i = r === n.length ? w.data : w.data.map((n, r) => {
|
|
3435
|
-
let i = e?.(n, r, void 0) ?? String(r), a =
|
|
3435
|
+
let i = e?.(n, r, void 0) ?? String(r), a = ve[i];
|
|
3436
3436
|
return a === void 0 ? n : (t.set(a, i), a);
|
|
3437
3437
|
});
|
|
3438
3438
|
return {
|
|
@@ -3441,13 +3441,13 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3441
3441
|
};
|
|
3442
3442
|
}, [
|
|
3443
3443
|
w.data,
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
]),
|
|
3447
|
-
|
|
3448
|
-
let
|
|
3444
|
+
ve,
|
|
3445
|
+
be
|
|
3446
|
+
]), Ce = s(Se.idOf);
|
|
3447
|
+
Ce.current = Se.idOf;
|
|
3448
|
+
let we = n((e, t, n) => Ce.current.get(e) ?? xe.current?.(e, t, n) ?? (n === void 0 ? String(t) : `${n.id}.${t}`), []), Te = s(null), Ee = l ?? !0, De = n(() => Te.current, []);
|
|
3449
3449
|
Si();
|
|
3450
|
-
let
|
|
3450
|
+
let Oe = Je({
|
|
3451
3451
|
columnResizeMode: "onEnd",
|
|
3452
3452
|
autoResetExpanded: !1,
|
|
3453
3453
|
autoResetPageIndex: !1,
|
|
@@ -3456,44 +3456,44 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3456
3456
|
globalFilterFn: w.quickSearchMode === "contains" ? "includesString" : "tmDataGridFuzzy",
|
|
3457
3457
|
groupedColumnMode: "remove",
|
|
3458
3458
|
...w,
|
|
3459
|
-
...
|
|
3460
|
-
onColumnFiltersChange: ji("columnFilters", w.onColumnFiltersChange,
|
|
3461
|
-
onGlobalFilterChange: ji("globalFilter", w.onGlobalFilterChange,
|
|
3462
|
-
onSortingChange: ji("sorting", w.onSortingChange,
|
|
3463
|
-
onGroupingChange: ji("grouping", w.onGroupingChange,
|
|
3459
|
+
...Ee ? {
|
|
3460
|
+
onColumnFiltersChange: ji("columnFilters", w.onColumnFiltersChange, De),
|
|
3461
|
+
onGlobalFilterChange: ji("globalFilter", w.onGlobalFilterChange, De),
|
|
3462
|
+
onSortingChange: ji("sorting", w.onSortingChange, De),
|
|
3463
|
+
onGroupingChange: ji("grouping", w.onGroupingChange, De)
|
|
3464
3464
|
} : {},
|
|
3465
|
-
data:
|
|
3466
|
-
getRowId:
|
|
3465
|
+
data: Se.rows,
|
|
3466
|
+
getRowId: we,
|
|
3467
3467
|
...b === void 0 ? {} : { getRowCanExpand: w.getRowCanExpand ?? (() => !0) },
|
|
3468
3468
|
enableRowPinning: (e) => !e.getIsGrouped() && (typeof w.enableRowPinning == "function" ? w.enableRowPinning(e) : w.enableRowPinning === !0),
|
|
3469
|
-
...E ? { enableRowSelection: (e) => !
|
|
3469
|
+
...E ? { enableRowSelection: (e) => !he.isRowDeleted(e.id) && (typeof w.enableRowSelection == "function" ? w.enableRowSelection(e) : w.enableRowSelection !== !1) } : {},
|
|
3470
3470
|
features: da,
|
|
3471
|
-
columns:
|
|
3472
|
-
state:
|
|
3471
|
+
columns: K,
|
|
3472
|
+
state: pe,
|
|
3473
3473
|
initialState: {
|
|
3474
3474
|
...w.initialState,
|
|
3475
|
-
...
|
|
3475
|
+
...ce,
|
|
3476
3476
|
columnVisibility: {
|
|
3477
3477
|
...ga({
|
|
3478
3478
|
...w.initialState?.columnVisibility,
|
|
3479
|
-
...
|
|
3479
|
+
...ce.columnVisibility
|
|
3480
3480
|
}),
|
|
3481
|
-
...
|
|
3481
|
+
...U ? { [ln]: q.length > 0 } : {}
|
|
3482
3482
|
},
|
|
3483
|
-
columnPinning:
|
|
3484
|
-
start:
|
|
3485
|
-
end:
|
|
3483
|
+
columnPinning: se({
|
|
3484
|
+
start: ce.columnPinning?.start ?? w.initialState?.columnPinning?.start,
|
|
3485
|
+
end: ce.columnPinning?.end ?? w.initialState?.columnPinning?.end
|
|
3486
3486
|
}),
|
|
3487
3487
|
pagination: {
|
|
3488
3488
|
pageIndex: 0,
|
|
3489
3489
|
pageSize: 25,
|
|
3490
3490
|
...w.initialState?.pagination,
|
|
3491
|
-
...
|
|
3491
|
+
...ce.pagination
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
3494
|
}, me);
|
|
3495
|
-
Ci(),
|
|
3496
|
-
table:
|
|
3495
|
+
Ci(), Te.current = Oe, Ti(Oe.store), Z.current = {
|
|
3496
|
+
table: Oe,
|
|
3497
3497
|
editMode: T ?? "cell",
|
|
3498
3498
|
draft: E,
|
|
3499
3499
|
rowValidators: y?.rowValidators,
|
|
@@ -3506,60 +3506,60 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3506
3506
|
onRowAdd: y?.onRowAdd,
|
|
3507
3507
|
onRowDelete: y?.onRowDelete
|
|
3508
3508
|
};
|
|
3509
|
-
let
|
|
3509
|
+
let ke = s({
|
|
3510
3510
|
editMode: T,
|
|
3511
3511
|
editDraft: E
|
|
3512
3512
|
});
|
|
3513
3513
|
i(() => {
|
|
3514
|
-
let e =
|
|
3515
|
-
e.editMode === T && e.editDraft === E || (
|
|
3514
|
+
let e = ke.current;
|
|
3515
|
+
e.editMode === T && e.editDraft === E || (ke.current = {
|
|
3516
3516
|
editMode: T,
|
|
3517
3517
|
editDraft: E
|
|
3518
|
-
},
|
|
3518
|
+
}, _e.cancelAll());
|
|
3519
3519
|
}, [
|
|
3520
3520
|
T,
|
|
3521
3521
|
E,
|
|
3522
|
-
|
|
3522
|
+
_e
|
|
3523
3523
|
]);
|
|
3524
|
-
let
|
|
3524
|
+
let Ae = y !== void 0, je = w.manualPagination === !0 || w.manualFiltering === !0;
|
|
3525
3525
|
i(() => {
|
|
3526
|
-
!
|
|
3526
|
+
!Ae || je || he.forgetMissingRows(Te.current.getCoreRowModel().rowsById);
|
|
3527
3527
|
}, [
|
|
3528
|
-
|
|
3528
|
+
Se.rows,
|
|
3529
|
+
Ae,
|
|
3529
3530
|
je,
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
]), i(() => Di(Ee.current, _e.isRowDeleted), [_e]), i(() => {
|
|
3531
|
+
he
|
|
3532
|
+
]), i(() => Di(Te.current, he.isRowDeleted), [he]), i(() => {
|
|
3533
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.");
|
|
3534
3534
|
}, []), i(() => {
|
|
3535
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.`);
|
|
3536
3536
|
}, []), i(() => {
|
|
3537
|
-
if (!
|
|
3538
|
-
let e =
|
|
3539
|
-
le.current = e.length > 0,
|
|
3537
|
+
if (!U) return;
|
|
3538
|
+
let e = Oe.store.state.grouping;
|
|
3539
|
+
le.current = e.length > 0, Oe.store.state.columnVisibility?.__group__ !== e.length > 0 && Oe.setColumnVisibility((t) => ({
|
|
3540
3540
|
...t,
|
|
3541
3541
|
[ln]: e.length > 0
|
|
3542
3542
|
}));
|
|
3543
|
-
let t =
|
|
3544
|
-
t.grouping !== e && (e = t.grouping, le.current = t.grouping.length > 0,
|
|
3543
|
+
let t = Oe.store.subscribe((t) => {
|
|
3544
|
+
t.grouping !== e && (e = t.grouping, le.current = t.grouping.length > 0, Y.current = !0, Oe.setColumnVisibility((e) => ({
|
|
3545
3545
|
...e,
|
|
3546
3546
|
[ln]: t.grouping.length > 0
|
|
3547
3547
|
})));
|
|
3548
3548
|
});
|
|
3549
3549
|
return () => t.unsubscribe();
|
|
3550
|
-
}, [
|
|
3550
|
+
}, [U, Oe]), i(() => {
|
|
3551
3551
|
if (!ei(e)) return;
|
|
3552
|
-
oi(
|
|
3552
|
+
oi(Oe.store.state, e);
|
|
3553
3553
|
let t, n = null, r = () => {
|
|
3554
3554
|
t = void 0, n !== null && (oi(n, e), n = null);
|
|
3555
|
-
}, i =
|
|
3555
|
+
}, i = Oe.store.subscribe((e) => {
|
|
3556
3556
|
n = e, t !== void 0 && clearTimeout(t), t = setTimeout(r, ua);
|
|
3557
3557
|
});
|
|
3558
3558
|
return () => {
|
|
3559
3559
|
i.unsubscribe(), t !== void 0 && clearTimeout(t), r();
|
|
3560
3560
|
};
|
|
3561
|
-
}, [e,
|
|
3562
|
-
let
|
|
3561
|
+
}, [e, Oe]);
|
|
3562
|
+
let Q = j({
|
|
3563
3563
|
filterPanelOpen: V.defaultOpen,
|
|
3564
3564
|
filterPanelColumnId: null,
|
|
3565
3565
|
headerFilterColumnId: null,
|
|
@@ -3620,37 +3620,37 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3620
3620
|
...e,
|
|
3621
3621
|
cellRange: t
|
|
3622
3622
|
})
|
|
3623
|
-
})),
|
|
3623
|
+
})), Me = s(m);
|
|
3624
3624
|
i(() => {
|
|
3625
|
-
|
|
3625
|
+
Me.current = m;
|
|
3626
3626
|
}, [m]), i(() => {
|
|
3627
|
-
let e =
|
|
3628
|
-
t.highlightedRowId !== e && (e = t.highlightedRowId,
|
|
3627
|
+
let e = Q.state.highlightedRowId, t = Q.subscribe((t) => {
|
|
3628
|
+
t.highlightedRowId !== e && (e = t.highlightedRowId, Me.current?.(t.highlightedRowId));
|
|
3629
3629
|
});
|
|
3630
3630
|
return () => t.unsubscribe();
|
|
3631
|
-
}, [
|
|
3632
|
-
let
|
|
3631
|
+
}, [Q]);
|
|
3632
|
+
let Ne = s(g);
|
|
3633
3633
|
i(() => {
|
|
3634
|
-
|
|
3634
|
+
Ne.current = g;
|
|
3635
3635
|
}, [g]), i(() => {
|
|
3636
|
-
let e =
|
|
3637
|
-
t.focusedCell !== e && (e = t.focusedCell,
|
|
3636
|
+
let e = Q.state.focusedCell, t = Q.subscribe((t) => {
|
|
3637
|
+
t.focusedCell !== e && (e = t.focusedCell, Ne.current?.(t.focusedCell));
|
|
3638
3638
|
});
|
|
3639
3639
|
return () => t.unsubscribe();
|
|
3640
|
-
}, [
|
|
3641
|
-
let
|
|
3642
|
-
|
|
3640
|
+
}, [Q]);
|
|
3641
|
+
let Pe = s(() => {});
|
|
3642
|
+
Pe.current = () => {
|
|
3643
3643
|
let e = w.initialState, t = [...e?.grouping ?? []];
|
|
3644
|
-
|
|
3644
|
+
Oe.setGrouping(t), Oe.setColumnVisibility({
|
|
3645
3645
|
...ga({ ...e?.columnVisibility }),
|
|
3646
|
-
...
|
|
3647
|
-
}),
|
|
3646
|
+
...U ? { [ln]: t.length > 0 } : {}
|
|
3647
|
+
}), Oe.setColumnSizing({ ...e?.columnSizing }), Oe.setColumnOrder([...e?.columnOrder ?? []]), Oe.setColumnPinning(se(e?.columnPinning));
|
|
3648
3648
|
};
|
|
3649
|
-
let
|
|
3649
|
+
let Fe = n(() => Pe.current(), []), Ie = s(() => !1);
|
|
3650
3650
|
return {
|
|
3651
|
-
table:
|
|
3652
|
-
ui:
|
|
3653
|
-
edit:
|
|
3651
|
+
table: Oe,
|
|
3652
|
+
ui: Q,
|
|
3653
|
+
edit: _e,
|
|
3654
3654
|
features: D,
|
|
3655
3655
|
filters: V,
|
|
3656
3656
|
exportOptions: F,
|
|
@@ -3658,9 +3658,9 @@ function va({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3658
3658
|
renderDetails: b,
|
|
3659
3659
|
renderDetailsEstHeight: x,
|
|
3660
3660
|
overscan: C,
|
|
3661
|
-
resetSettings:
|
|
3662
|
-
scrollToRow: n((e) =>
|
|
3663
|
-
scrollerRef:
|
|
3661
|
+
resetSettings: Fe,
|
|
3662
|
+
scrollToRow: n((e) => Ie.current(e), []),
|
|
3663
|
+
scrollerRef: Ie
|
|
3664
3664
|
};
|
|
3665
3665
|
}
|
|
3666
3666
|
function ya(e, t) {
|
|
@@ -3703,7 +3703,7 @@ function xa(t) {
|
|
|
3703
3703
|
"data-dg-part": "filter-pill-remove",
|
|
3704
3704
|
"data-column-id": e.id
|
|
3705
3705
|
};
|
|
3706
|
-
return /* @__PURE__ */
|
|
3706
|
+
return /* @__PURE__ */ J(x, {
|
|
3707
3707
|
size: l,
|
|
3708
3708
|
className: Dr.pill,
|
|
3709
3709
|
"data-dg-part": "filter-pill",
|
|
@@ -3716,7 +3716,7 @@ function xa(t) {
|
|
|
3716
3716
|
tabIndex: 0,
|
|
3717
3717
|
...o
|
|
3718
3718
|
},
|
|
3719
|
-
children: /* @__PURE__ */
|
|
3719
|
+
children: /* @__PURE__ */ J(A, {
|
|
3720
3720
|
className: Dr.pillLabel,
|
|
3721
3721
|
onClick: () => a ? a(e.id) : ba(r, e.id),
|
|
3722
3722
|
children: wt({
|
|
@@ -3733,12 +3733,12 @@ function xa(t) {
|
|
|
3733
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];
|
|
3734
3734
|
if (y !== Symbol.for("react.early_return_sentinel")) return y;
|
|
3735
3735
|
let O;
|
|
3736
|
-
n[35] !== g || n[36] !== b || n[37] !== S ? (O = /* @__PURE__ */
|
|
3736
|
+
n[35] !== g || n[36] !== b || n[37] !== S ? (O = /* @__PURE__ */ J(g, {
|
|
3737
3737
|
size: b,
|
|
3738
3738
|
children: S
|
|
3739
3739
|
}), n[35] = g, n[36] = b, n[37] = S, n[38] = O) : O = n[38];
|
|
3740
3740
|
let k;
|
|
3741
|
-
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__ */ J(f, {
|
|
3742
3742
|
variant: "subtle",
|
|
3743
3743
|
color: "gray",
|
|
3744
3744
|
size: "compact-xs",
|
|
@@ -3746,7 +3746,7 @@ function xa(t) {
|
|
|
3746
3746
|
children: m.clearAllFilters
|
|
3747
3747
|
}), n[39] = v, n[40] = m.clearAllFilters, n[41] = u, n[42] = p, n[43] = k) : k = n[43];
|
|
3748
3748
|
let j;
|
|
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__ */
|
|
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__ */ Y(_, {
|
|
3750
3750
|
role: C,
|
|
3751
3751
|
"aria-label": w,
|
|
3752
3752
|
"data-dg-part": T,
|
|
@@ -3807,7 +3807,7 @@ function ka(t) {
|
|
|
3807
3807
|
let l = c, { pageSize: u } = i.store.state.pagination, d;
|
|
3808
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];
|
|
3809
3809
|
let f = d, p;
|
|
3810
|
-
n[6] !== s || n[7] !== o.rowsPerPage ? (p = /* @__PURE__ */
|
|
3810
|
+
n[6] !== s || n[7] !== o.rowsPerPage ? (p = /* @__PURE__ */ J(D, {
|
|
3811
3811
|
span: !0,
|
|
3812
3812
|
size: s,
|
|
3813
3813
|
c: "dimmed",
|
|
@@ -3820,7 +3820,7 @@ function ka(t) {
|
|
|
3820
3820
|
i.setPageSize(Number(e) || r[0]), i.setPageIndex(0);
|
|
3821
3821
|
}, n[11] = r[0], n[12] = i, n[13] = v) : v = n[13];
|
|
3822
3822
|
let y;
|
|
3823
|
-
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__ */ J(T, {
|
|
3824
3824
|
size: s,
|
|
3825
3825
|
w: 78,
|
|
3826
3826
|
allowDeselect: !1,
|
|
@@ -3832,7 +3832,7 @@ function ka(t) {
|
|
|
3832
3832
|
onChange: v
|
|
3833
3833
|
}), n[14] = s, n[15] = h, n[16] = g, n[17] = _, n[18] = v, n[19] = y) : y = n[19];
|
|
3834
3834
|
let b;
|
|
3835
|
-
return n[20] !== p || n[21] !== y ? (b = /* @__PURE__ */
|
|
3835
|
+
return n[20] !== p || n[21] !== y ? (b = /* @__PURE__ */ Y(m, {
|
|
3836
3836
|
gap: "xs",
|
|
3837
3837
|
wrap: "nowrap",
|
|
3838
3838
|
children: [p, y]
|
|
@@ -3856,7 +3856,7 @@ function ja() {
|
|
|
3856
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;
|
|
3857
3857
|
} else u = t[9], d = t[10], f = t[11], p = t[12], m = t[13], h = t[14];
|
|
3858
3858
|
let g;
|
|
3859
|
-
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__ */ J(u, {
|
|
3860
3860
|
span: d,
|
|
3861
3861
|
size: f,
|
|
3862
3862
|
c: p,
|
|
@@ -3875,7 +3875,7 @@ function Ma() {
|
|
|
3875
3875
|
pageCount: n.getPageCount()
|
|
3876
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];
|
|
3877
3877
|
let u;
|
|
3878
|
-
return t[8] !== a || t[9] !== l ? (u = /* @__PURE__ */
|
|
3878
|
+
return t[8] !== a || t[9] !== l ? (u = /* @__PURE__ */ J(D, {
|
|
3879
3879
|
span: !0,
|
|
3880
3880
|
size: a,
|
|
3881
3881
|
c: "dimmed",
|
|
@@ -3893,12 +3893,12 @@ function Na() {
|
|
|
3893
3893
|
let c;
|
|
3894
3894
|
t[6] === n ? c = t[7] : (c = () => n.previousPage(), t[6] = n, t[7] = c);
|
|
3895
3895
|
let u;
|
|
3896
|
-
t[8] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
3896
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ J(H, {
|
|
3897
3897
|
size: 18,
|
|
3898
3898
|
stroke: 1.6
|
|
3899
3899
|
}), t[8] = u) : u = t[8];
|
|
3900
3900
|
let d;
|
|
3901
|
-
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__ */ J(l, {
|
|
3902
3902
|
variant: "subtle",
|
|
3903
3903
|
color: "gray",
|
|
3904
3904
|
"aria-label": i.previousPage,
|
|
@@ -3912,12 +3912,12 @@ function Na() {
|
|
|
3912
3912
|
let p;
|
|
3913
3913
|
t[16] === n ? p = t[17] : (p = () => n.nextPage(), t[16] = n, t[17] = p);
|
|
3914
3914
|
let h;
|
|
3915
|
-
t[18] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */
|
|
3915
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ J(U, {
|
|
3916
3916
|
size: 18,
|
|
3917
3917
|
stroke: 1.6
|
|
3918
3918
|
}), t[18] = h) : h = t[18];
|
|
3919
3919
|
let g;
|
|
3920
|
-
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__ */ J(l, {
|
|
3921
3921
|
variant: "subtle",
|
|
3922
3922
|
color: "gray",
|
|
3923
3923
|
"aria-label": i.nextPage,
|
|
@@ -3927,7 +3927,7 @@ function Na() {
|
|
|
3927
3927
|
children: h
|
|
3928
3928
|
}), t[19] = i.nextPage, t[20] = f, t[21] = p, t[22] = g) : g = t[22];
|
|
3929
3929
|
let _;
|
|
3930
|
-
return t[23] !== d || t[24] !== g ? (_ = /* @__PURE__ */
|
|
3930
|
+
return t[23] !== d || t[24] !== g ? (_ = /* @__PURE__ */ Y(m, {
|
|
3931
3931
|
gap: 4,
|
|
3932
3932
|
wrap: "nowrap",
|
|
3933
3933
|
children: [d, g]
|
|
@@ -3948,7 +3948,7 @@ function Fa(t) {
|
|
|
3948
3948
|
Ea(u.store);
|
|
3949
3949
|
let m;
|
|
3950
3950
|
n[7] === s ? m = n[8] : (m = {
|
|
3951
|
-
PageSize: () => /* @__PURE__ */
|
|
3951
|
+
PageSize: () => /* @__PURE__ */ J(ka, { pageSizeOptions: s }),
|
|
3952
3952
|
Range: ja,
|
|
3953
3953
|
PageNumber: Ma,
|
|
3954
3954
|
Pager: Na
|
|
@@ -3960,7 +3960,7 @@ function Fa(t) {
|
|
|
3960
3960
|
_ = Symbol.for("react.early_return_sentinel");
|
|
3961
3961
|
bb0: if (g = wn(u, f), a) {
|
|
3962
3962
|
let { state: e, actions: t } = Oa(u, g);
|
|
3963
|
-
_ = /* @__PURE__ */
|
|
3963
|
+
_ = /* @__PURE__ */ J(d, {
|
|
3964
3964
|
"data-dg-part": "footer",
|
|
3965
3965
|
className: l,
|
|
3966
3966
|
...i,
|
|
@@ -3976,13 +3976,13 @@ function Fa(t) {
|
|
|
3976
3976
|
} else g = n[15], _ = n[16];
|
|
3977
3977
|
if (_ !== Symbol.for("react.early_return_sentinel")) return _;
|
|
3978
3978
|
let v = !g || void 0, y;
|
|
3979
|
-
n[17] === h.PageSize ? y = n[18] : (y = /* @__PURE__ */
|
|
3979
|
+
n[17] === h.PageSize ? y = n[18] : (y = /* @__PURE__ */ J(h.PageSize, {}), n[17] = h.PageSize, n[18] = y);
|
|
3980
3980
|
let b;
|
|
3981
|
-
n[19] === h.Range ? b = n[20] : (b = /* @__PURE__ */
|
|
3981
|
+
n[19] === h.Range ? b = n[20] : (b = /* @__PURE__ */ J(h.Range, {}), n[19] = h.Range, n[20] = b);
|
|
3982
3982
|
let x;
|
|
3983
|
-
n[21] === h.Pager ? x = n[22] : (x = /* @__PURE__ */
|
|
3983
|
+
n[21] === h.Pager ? x = n[22] : (x = /* @__PURE__ */ J(h.Pager, {}), n[21] = h.Pager, n[22] = x);
|
|
3984
3984
|
let S;
|
|
3985
|
-
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__ */ Y(d, {
|
|
3986
3986
|
"data-dg-part": "footer",
|
|
3987
3987
|
className: l,
|
|
3988
3988
|
"data-paging-suspended": v,
|
|
@@ -3994,7 +3994,7 @@ function Fa(t) {
|
|
|
3994
3994
|
]
|
|
3995
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];
|
|
3996
3996
|
let C;
|
|
3997
|
-
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__ */ J(k, {
|
|
3998
3998
|
label: p.pagingSuspendedHint,
|
|
3999
3999
|
disabled: g,
|
|
4000
4000
|
withArrow: !0,
|
|
@@ -4030,7 +4030,7 @@ function Ia(t) {
|
|
|
4030
4030
|
}
|
|
4031
4031
|
//#endregion
|
|
4032
4032
|
//#region src/components/TMDataGridMenu.tsx
|
|
4033
|
-
var La = (e) => /* @__PURE__ */
|
|
4033
|
+
var La = (e) => /* @__PURE__ */ J("button", {
|
|
4034
4034
|
...e,
|
|
4035
4035
|
role: "menuitemcheckbox"
|
|
4036
4036
|
});
|
|
@@ -4038,12 +4038,12 @@ function Ra(t) {
|
|
|
4038
4038
|
let n = e(20), r, i, a, o;
|
|
4039
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);
|
|
4040
4040
|
let { labels: s, controlSize: c } = $(), u = a ?? s.menuButton, d;
|
|
4041
|
-
n[5] === i ? d = n[6] : (d = i ?? /* @__PURE__ */
|
|
4041
|
+
n[5] === i ? d = n[6] : (d = i ?? /* @__PURE__ */ J(se, {
|
|
4042
4042
|
size: 18,
|
|
4043
4043
|
stroke: 1.6
|
|
4044
4044
|
}), n[5] = i, n[6] = d);
|
|
4045
4045
|
let f;
|
|
4046
|
-
n[7] !== c || n[8] !== d || n[9] !== u ? (f = /* @__PURE__ */
|
|
4046
|
+
n[7] !== c || n[8] !== d || n[9] !== u ? (f = /* @__PURE__ */ J(_.Target, { children: /* @__PURE__ */ J(l, {
|
|
4047
4047
|
variant: "subtle",
|
|
4048
4048
|
color: "gray",
|
|
4049
4049
|
size: c,
|
|
@@ -4052,15 +4052,15 @@ function Ra(t) {
|
|
|
4052
4052
|
children: d
|
|
4053
4053
|
}) }), n[7] = c, n[8] = d, n[9] = u, n[10] = f) : f = n[10];
|
|
4054
4054
|
let p;
|
|
4055
|
-
n[11] !== f || n[12] !== u ? (p = /* @__PURE__ */
|
|
4055
|
+
n[11] !== f || n[12] !== u ? (p = /* @__PURE__ */ J(k, {
|
|
4056
4056
|
label: u,
|
|
4057
4057
|
openDelay: 400,
|
|
4058
4058
|
children: f
|
|
4059
4059
|
}), n[11] = f, n[12] = u, n[13] = p) : p = n[13];
|
|
4060
4060
|
let m;
|
|
4061
|
-
n[14] === r ? m = n[15] : (m = /* @__PURE__ */
|
|
4061
|
+
n[14] === r ? m = n[15] : (m = /* @__PURE__ */ J(_.Dropdown, { children: r }), n[14] = r, n[15] = m);
|
|
4062
4062
|
let h;
|
|
4063
|
-
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__ */ Y(_, {
|
|
4064
4064
|
position: "bottom-end",
|
|
4065
4065
|
shadow: "md",
|
|
4066
4066
|
width: 260,
|
|
@@ -4075,7 +4075,7 @@ function za(t) {
|
|
|
4075
4075
|
let d;
|
|
4076
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];
|
|
4077
4077
|
let f = d, p = Ba, m;
|
|
4078
|
-
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__ */ J(_.Search, {
|
|
4079
4079
|
value: l,
|
|
4080
4080
|
onChange: (e) => u(e.currentTarget.value),
|
|
4081
4081
|
onKeyDown: p,
|
|
@@ -4084,11 +4084,11 @@ function za(t) {
|
|
|
4084
4084
|
"data-dg-part": "columns-search"
|
|
4085
4085
|
}), n[3] = o, n[4] = a, n[5] = l, n[6] = f, n[7] = m) : m = n[7];
|
|
4086
4086
|
let h;
|
|
4087
|
-
n[8] === l ? h = n[9] : (h = /* @__PURE__ */
|
|
4087
|
+
n[8] === l ? h = n[9] : (h = /* @__PURE__ */ J(Va, { search: l }), n[8] = l, n[9] = h);
|
|
4088
4088
|
let g, v, y;
|
|
4089
|
-
n[10] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */
|
|
4089
|
+
n[10] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ J(_.Divider, {}), v = /* @__PURE__ */ J(Ha, {}), y = /* @__PURE__ */ J(Ua, {}), n[10] = g, n[11] = v, n[12] = y) : (g = n[10], v = n[11], y = n[12]);
|
|
4090
4090
|
let b;
|
|
4091
|
-
return n[13] !== m || n[14] !== h ? (b = /* @__PURE__ */
|
|
4091
|
+
return n[13] !== m || n[14] !== h ? (b = /* @__PURE__ */ Y(fe, { children: [
|
|
4092
4092
|
m,
|
|
4093
4093
|
h,
|
|
4094
4094
|
g,
|
|
@@ -4110,13 +4110,13 @@ function Va(t) {
|
|
|
4110
4110
|
l = e ? o.filter((t) => Mn(t).toLowerCase().includes(e)) : o, n[0] = o, n[1] = c, n[2] = l;
|
|
4111
4111
|
} else l = n[2];
|
|
4112
4112
|
let u = l, d;
|
|
4113
|
-
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__ */ J(_.Label, { children: i.columnsNoMatch(r ?? "") }) : u.map((e) => {
|
|
4114
4114
|
let t = s[e.id] !== !1;
|
|
4115
|
-
return /* @__PURE__ */
|
|
4115
|
+
return /* @__PURE__ */ J(_.Item, {
|
|
4116
4116
|
renderRoot: La,
|
|
4117
4117
|
"aria-checked": t,
|
|
4118
4118
|
closeMenuOnClick: !1,
|
|
4119
|
-
leftSection: /* @__PURE__ */
|
|
4119
|
+
leftSection: /* @__PURE__ */ J(p.Indicator, {
|
|
4120
4120
|
checked: t,
|
|
4121
4121
|
size: a
|
|
4122
4122
|
}),
|
|
@@ -4127,7 +4127,7 @@ function Va(t) {
|
|
|
4127
4127
|
}, e.id);
|
|
4128
4128
|
}), n[3] = s, n[4] = a, n[5] = i, n[6] = u, n[7] = r, n[8] = d) : d = n[8];
|
|
4129
4129
|
let f;
|
|
4130
|
-
return n[9] === d ? f = n[10] : (f = /* @__PURE__ */
|
|
4130
|
+
return n[9] === d ? f = n[10] : (f = /* @__PURE__ */ J(C.Autosize, {
|
|
4131
4131
|
mah: 260,
|
|
4132
4132
|
type: "auto",
|
|
4133
4133
|
children: d
|
|
@@ -4137,7 +4137,7 @@ function Ha() {
|
|
|
4137
4137
|
let t = e(12), { labels: n, controlSize: r } = $(), { columns: i, shownCount: a, setAllVisible: o } = Wn();
|
|
4138
4138
|
if (i.length === 0) return null;
|
|
4139
4139
|
let s = a === i.length, c = a > 0 && !s, l = c ? "mixed" : s, u;
|
|
4140
|
-
t[0] !== s || t[1] !== r || t[2] !== c ? (u = /* @__PURE__ */
|
|
4140
|
+
t[0] !== s || t[1] !== r || t[2] !== c ? (u = /* @__PURE__ */ J(p.Indicator, {
|
|
4141
4141
|
checked: s,
|
|
4142
4142
|
indeterminate: c,
|
|
4143
4143
|
size: r
|
|
@@ -4145,7 +4145,7 @@ function Ha() {
|
|
|
4145
4145
|
let d;
|
|
4146
4146
|
t[4] !== s || t[5] !== o ? (d = () => o(!s), t[4] = s, t[5] = o, t[6] = d) : d = t[6];
|
|
4147
4147
|
let f;
|
|
4148
|
-
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__ */ J(_.Item, {
|
|
4149
4149
|
renderRoot: La,
|
|
4150
4150
|
"aria-checked": l,
|
|
4151
4151
|
closeMenuOnClick: !1,
|
|
@@ -4157,14 +4157,14 @@ function Ha() {
|
|
|
4157
4157
|
}
|
|
4158
4158
|
function Ua() {
|
|
4159
4159
|
let t = e(6), { labels: n, resetSettings: r } = $(), i;
|
|
4160
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
4160
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ J(P, {
|
|
4161
4161
|
size: 16,
|
|
4162
4162
|
stroke: 1.6
|
|
4163
4163
|
}), t[0] = i) : i = t[0];
|
|
4164
4164
|
let a;
|
|
4165
4165
|
t[1] === r ? a = t[2] : (a = () => r(), t[1] = r, t[2] = a);
|
|
4166
4166
|
let o;
|
|
4167
|
-
return t[3] !== n.columnsReset || t[4] !== a ? (o = /* @__PURE__ */
|
|
4167
|
+
return t[3] !== n.columnsReset || t[4] !== a ? (o = /* @__PURE__ */ J(_.Item, {
|
|
4168
4168
|
leftSection: i,
|
|
4169
4169
|
onClick: a,
|
|
4170
4170
|
"data-dg-part": "columns-reset",
|
|
@@ -4186,7 +4186,7 @@ function Ga(t) {
|
|
|
4186
4186
|
let n = e(11), r;
|
|
4187
4187
|
n[0] === t ? r = n[1] : (r = Wa(t), n[0] = t, n[1] = r);
|
|
4188
4188
|
let { label: i, custom: a, options: o } = r, { ui: s, labels: c } = $(), { exportAll: l } = Ia(o), u;
|
|
4189
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
4189
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ J(G, {
|
|
4190
4190
|
size: 16,
|
|
4191
4191
|
stroke: 1.6
|
|
4192
4192
|
}), n[2] = u) : u = n[2];
|
|
@@ -4198,7 +4198,7 @@ function Ga(t) {
|
|
|
4198
4198
|
}) : l();
|
|
4199
4199
|
}, n[3] = a, n[4] = l, n[5] = o, n[6] = s, n[7] = d) : d = n[7];
|
|
4200
4200
|
let f = i ?? c.exportAll, p;
|
|
4201
|
-
return n[8] !== d || n[9] !== f ? (p = /* @__PURE__ */
|
|
4201
|
+
return n[8] !== d || n[9] !== f ? (p = /* @__PURE__ */ J(_.Item, {
|
|
4202
4202
|
leftSection: u,
|
|
4203
4203
|
onClick: d,
|
|
4204
4204
|
"data-dg-part": "menu-export",
|
|
@@ -4211,7 +4211,7 @@ function Ka(t) {
|
|
|
4211
4211
|
let { label: i, custom: a, options: o } = r, { ui: s, labels: c } = $(), { exportSelected: l, selectedCount: u, canExportSelected: d } = Ia(o);
|
|
4212
4212
|
if (!d) return null;
|
|
4213
4213
|
let f;
|
|
4214
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
4214
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ J(G, {
|
|
4215
4215
|
size: 16,
|
|
4216
4216
|
stroke: 1.6
|
|
4217
4217
|
}), n[2] = f) : f = n[2];
|
|
@@ -4225,7 +4225,7 @@ function Ka(t) {
|
|
|
4225
4225
|
let h;
|
|
4226
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];
|
|
4227
4227
|
let g;
|
|
4228
|
-
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__ */ J(_.Item, {
|
|
4229
4229
|
leftSection: f,
|
|
4230
4230
|
disabled: p,
|
|
4231
4231
|
onClick: m,
|
|
@@ -4265,12 +4265,12 @@ function Ja(t) {
|
|
|
4265
4265
|
let k = D, A;
|
|
4266
4266
|
n[10] === k ? A = n[11] : (A = (e) => k(e.currentTarget.value), n[10] = k, n[11] = A);
|
|
4267
4267
|
let j = r ?? m.searchPlaceholder, N;
|
|
4268
|
-
n[12] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */
|
|
4268
|
+
n[12] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ J(le, {
|
|
4269
4269
|
size: 16,
|
|
4270
4270
|
stroke: 1.6
|
|
4271
4271
|
}), n[12] = N) : N = n[12];
|
|
4272
4272
|
let P;
|
|
4273
|
-
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__ */ J(l, {
|
|
4274
4274
|
variant: "subtle",
|
|
4275
4275
|
color: "gray",
|
|
4276
4276
|
size: "sm",
|
|
@@ -4279,13 +4279,13 @@ function Ja(t) {
|
|
|
4279
4279
|
onClick: () => {
|
|
4280
4280
|
clearTimeout(y.current), v(""), E("");
|
|
4281
4281
|
},
|
|
4282
|
-
children: /* @__PURE__ */
|
|
4282
|
+
children: /* @__PURE__ */ J(de, {
|
|
4283
4283
|
size: 14,
|
|
4284
4284
|
stroke: 1.6
|
|
4285
4285
|
})
|
|
4286
4286
|
}), n[13] = E, n[14] = _, n[15] = m.clearSearch, n[16] = P) : P = n[16];
|
|
4287
4287
|
let F;
|
|
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__ */
|
|
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__ */ J(O, {
|
|
4289
4289
|
size: h,
|
|
4290
4290
|
w: d,
|
|
4291
4291
|
value: _,
|
|
@@ -4317,19 +4317,19 @@ var Xa = {
|
|
|
4317
4317
|
//#region src/components/TMDataGridFilterSurface.tsx
|
|
4318
4318
|
function Qa() {
|
|
4319
4319
|
let t = e(10), { ui: n, labels: r, controlSize: i } = $(), a;
|
|
4320
|
-
t[0] !== i || t[1] !== r.filters ? (a = /* @__PURE__ */
|
|
4320
|
+
t[0] !== i || t[1] !== r.filters ? (a = /* @__PURE__ */ J(D, {
|
|
4321
4321
|
span: !0,
|
|
4322
4322
|
size: i,
|
|
4323
4323
|
fw: 600,
|
|
4324
4324
|
children: r.filters
|
|
4325
4325
|
}), t[0] = i, t[1] = r.filters, t[2] = a) : a = t[2];
|
|
4326
4326
|
let o;
|
|
4327
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
4327
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ J(de, {
|
|
4328
4328
|
size: 16,
|
|
4329
4329
|
stroke: 1.6
|
|
4330
4330
|
}), t[3] = o) : o = t[3];
|
|
4331
4331
|
let s;
|
|
4332
|
-
t[4] !== r.closeFilters || t[5] !== n.actions.closeFilterPanel ? (s = /* @__PURE__ */
|
|
4332
|
+
t[4] !== r.closeFilters || t[5] !== n.actions.closeFilterPanel ? (s = /* @__PURE__ */ J(l, {
|
|
4333
4333
|
variant: "subtle",
|
|
4334
4334
|
color: "gray",
|
|
4335
4335
|
size: "sm",
|
|
@@ -4339,7 +4339,7 @@ function Qa() {
|
|
|
4339
4339
|
children: o
|
|
4340
4340
|
}), t[4] = r.closeFilters, t[5] = n.actions.closeFilterPanel, t[6] = s) : s = t[6];
|
|
4341
4341
|
let c;
|
|
4342
|
-
return t[7] !== a || t[8] !== s ? (c = /* @__PURE__ */
|
|
4342
|
+
return t[7] !== a || t[8] !== s ? (c = /* @__PURE__ */ Y("div", {
|
|
4343
4343
|
className: Za.surfaceHeader,
|
|
4344
4344
|
children: [a, s]
|
|
4345
4345
|
}), t[7] = a, t[8] = s, t[9] = c) : c = t[9], c;
|
|
@@ -4375,9 +4375,9 @@ function to() {
|
|
|
4375
4375
|
e.key === "Escape" && (e.stopPropagation(), n.actions.closeFilterPanel());
|
|
4376
4376
|
}, t[4] = n, t[5] = u);
|
|
4377
4377
|
let d, f;
|
|
4378
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */
|
|
4378
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ J(Qa, {}), f = /* @__PURE__ */ J(Sr, {}), t[6] = d, t[7] = f) : (d = t[6], f = t[7]);
|
|
4379
4379
|
let p;
|
|
4380
|
-
return t[8] !== r.filters || t[9] !== u ? (p = /* @__PURE__ */
|
|
4380
|
+
return t[8] !== r.filters || t[9] !== u ? (p = /* @__PURE__ */ Y("div", {
|
|
4381
4381
|
ref: o,
|
|
4382
4382
|
"data-dg-part": "filter-popup",
|
|
4383
4383
|
className: Za.filterPopup,
|
|
@@ -4399,15 +4399,15 @@ function ro() {
|
|
|
4399
4399
|
e.key === "Escape" && (e.stopPropagation(), n.actions.closeFilterPanel());
|
|
4400
4400
|
}, t[2] = n, t[3] = o);
|
|
4401
4401
|
let s;
|
|
4402
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
4402
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ J(Qa, {}), t[4] = s) : s = t[4];
|
|
4403
4403
|
let c;
|
|
4404
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */
|
|
4404
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ J(C, {
|
|
4405
4405
|
type: "auto",
|
|
4406
4406
|
className: Za.filterSidebarBody,
|
|
4407
|
-
children: /* @__PURE__ */
|
|
4407
|
+
children: /* @__PURE__ */ J(Sr, { layout: "stacked" })
|
|
4408
4408
|
}), t[5] = c) : c = t[5];
|
|
4409
4409
|
let l;
|
|
4410
|
-
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__ */ Y("div", {
|
|
4411
4411
|
"data-dg-part": "filter-sidebar",
|
|
4412
4412
|
"data-side": r.sidebarSide,
|
|
4413
4413
|
className: Za.filterSidebar,
|
|
@@ -4449,10 +4449,10 @@ function so({ column: e }) {
|
|
|
4449
4449
|
e,
|
|
4450
4450
|
_r(e) ? e.getFacetedUniqueValues() : void 0
|
|
4451
4451
|
]), h = Pn(e);
|
|
4452
|
-
return /* @__PURE__ */
|
|
4452
|
+
return /* @__PURE__ */ Y(fe, { children: [/* @__PURE__ */ J("div", {
|
|
4453
4453
|
className: ao.headerFilterValue,
|
|
4454
4454
|
"data-dg-filter-value-slot": !0,
|
|
4455
|
-
children: /* @__PURE__ */
|
|
4455
|
+
children: /* @__PURE__ */ J(m, {
|
|
4456
4456
|
column: e,
|
|
4457
4457
|
table: t,
|
|
4458
4458
|
operator: c,
|
|
@@ -4466,7 +4466,7 @@ function so({ column: e }) {
|
|
|
4466
4466
|
labels: n,
|
|
4467
4467
|
layout: "header"
|
|
4468
4468
|
})
|
|
4469
|
-
}), /* @__PURE__ */
|
|
4469
|
+
}), /* @__PURE__ */ J(co, {
|
|
4470
4470
|
columnId: e.id,
|
|
4471
4471
|
columnLabel: u,
|
|
4472
4472
|
operator: c,
|
|
@@ -4479,12 +4479,12 @@ function co(t) {
|
|
|
4479
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;
|
|
4480
4480
|
n[0] !== i || n[1] !== d ? (g = d.filterOperatorFor(i), n[0] = i, n[1] = d, n[2] = g) : g = n[2];
|
|
4481
4481
|
let v;
|
|
4482
|
-
n[3] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */
|
|
4482
|
+
n[3] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ J(ne, {
|
|
4483
4483
|
size: 14,
|
|
4484
4484
|
stroke: 1.6
|
|
4485
4485
|
}), n[3] = v) : v = n[3];
|
|
4486
4486
|
let y;
|
|
4487
|
-
n[4] !== r || n[5] !== h || n[6] !== g ? (y = /* @__PURE__ */
|
|
4487
|
+
n[4] !== r || n[5] !== h || n[6] !== g ? (y = /* @__PURE__ */ J(l, {
|
|
4488
4488
|
className: ao.headerFilterOperator,
|
|
4489
4489
|
variant: "subtle",
|
|
4490
4490
|
color: h,
|
|
@@ -4495,7 +4495,7 @@ function co(t) {
|
|
|
4495
4495
|
children: v
|
|
4496
4496
|
}), n[4] = r, n[5] = h, n[6] = g, n[7] = y) : y = n[7];
|
|
4497
4497
|
let b;
|
|
4498
|
-
n[8] !== f || n[9] !== m || n[10] !== y ? (b = /* @__PURE__ */
|
|
4498
|
+
n[8] !== f || n[9] !== m || n[10] !== y ? (b = /* @__PURE__ */ J(_.Target, { children: /* @__PURE__ */ J(k, {
|
|
4499
4499
|
label: m,
|
|
4500
4500
|
openDelay: 400,
|
|
4501
4501
|
disabled: f,
|
|
@@ -4504,16 +4504,16 @@ function co(t) {
|
|
|
4504
4504
|
let x;
|
|
4505
4505
|
if (n[12] !== d.operators || n[13] !== u || n[14] !== a || n[15] !== s) {
|
|
4506
4506
|
let e;
|
|
4507
|
-
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__ */ J(_.Item, {
|
|
4508
4508
|
className: e === a ? ao.operatorItemActive : void 0,
|
|
4509
4509
|
onClick: () => u(e),
|
|
4510
4510
|
children: d.operators[e]
|
|
4511
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;
|
|
4512
4512
|
} else x = n[16];
|
|
4513
4513
|
let S;
|
|
4514
|
-
n[21] === x ? S = n[22] : (S = /* @__PURE__ */
|
|
4514
|
+
n[21] === x ? S = n[22] : (S = /* @__PURE__ */ J(_.Dropdown, { children: x }), n[21] = x, n[22] = S);
|
|
4515
4515
|
let C;
|
|
4516
|
-
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__ */ Y(_, {
|
|
4517
4517
|
opened: f,
|
|
4518
4518
|
onChange: p,
|
|
4519
4519
|
position: "bottom-end",
|
|
@@ -4538,7 +4538,7 @@ function lo(t) {
|
|
|
4538
4538
|
let e;
|
|
4539
4539
|
n[8] !== l || n[9] !== a ? (e = (e) => {
|
|
4540
4540
|
let t = e.column, n = a(t.id);
|
|
4541
|
-
return /* @__PURE__ */
|
|
4541
|
+
return /* @__PURE__ */ J("div", {
|
|
4542
4542
|
role: "columnheader",
|
|
4543
4543
|
"aria-label": l.filterOn(Mn(t)),
|
|
4544
4544
|
"data-dg-part": "header-filter-cell",
|
|
@@ -4555,12 +4555,12 @@ function lo(t) {
|
|
|
4555
4555
|
position: n.pinnedAt ? "sticky" : void 0,
|
|
4556
4556
|
zIndex: n.pinnedAt ? "var(--dg-z-header-pinned-cell, 7)" : void 0
|
|
4557
4557
|
},
|
|
4558
|
-
children: t.getCanFilter() && /* @__PURE__ */
|
|
4558
|
+
children: t.getCanFilter() && /* @__PURE__ */ J(so, { column: t })
|
|
4559
4559
|
}, e.id);
|
|
4560
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;
|
|
4561
4561
|
} else m = n[7];
|
|
4562
4562
|
let h;
|
|
4563
|
-
return n[11] !== o || n[12] !== m ? (h = /* @__PURE__ */
|
|
4563
|
+
return n[11] !== o || n[12] !== m ? (h = /* @__PURE__ */ J("div", {
|
|
4564
4564
|
ref: d,
|
|
4565
4565
|
role: "row",
|
|
4566
4566
|
"aria-rowindex": o,
|
|
@@ -4689,7 +4689,7 @@ function Do({ table: e, columnId: t, direction: n }) {
|
|
|
4689
4689
|
function Oo(t) {
|
|
4690
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;
|
|
4691
4691
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (w = { compare: ge }, n[0] = w) : w = n[0];
|
|
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,
|
|
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, se, K, q, le, ue, de, fe, pe, X, me, Z, he, _e, ve, ye, be, xe, Se;
|
|
4693
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) {
|
|
4694
4694
|
ye = Mn(m);
|
|
4695
4695
|
let e;
|
|
@@ -4703,48 +4703,48 @@ function Oo(t) {
|
|
|
4703
4703
|
let e;
|
|
4704
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;
|
|
4705
4705
|
} else c = n[51];
|
|
4706
|
-
he = c, _e = D === m.id,
|
|
4706
|
+
he = c, _e = D === m.id, X = D !== !1, be = i.pinnedAt;
|
|
4707
4707
|
let l;
|
|
4708
4708
|
n[54] !== m || n[55] !== d ? (l = ci(m, d), n[54] = m, n[55] = d, n[56] = l) : l = n[56];
|
|
4709
4709
|
let h = l;
|
|
4710
|
-
|
|
4710
|
+
se = P && h.canSort;
|
|
4711
4711
|
let g = P && h.canFilter, v = P && h.canHide, y = P && h.canPin;
|
|
4712
4712
|
G = h.canResize, U = P && h.canReorder;
|
|
4713
4713
|
let C = P && h.canGroup, w = P && li(u, d).canHideAny, k;
|
|
4714
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];
|
|
4715
4715
|
let M = k, ee = A.length > 0;
|
|
4716
|
-
|
|
4716
|
+
me = j === m.id;
|
|
4717
4717
|
let ge;
|
|
4718
|
-
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] !== me ? (ge = U && j !== null && !me && bo(O, j) === bo(O, m.id), n[60] = U, n[61] = m.id, n[62] = O, n[63] = j, n[64] = me, n[65] = ge) : ge = n[65], Z = ge;
|
|
4719
4719
|
let Ce;
|
|
4720
4720
|
n[66] !== o.ui || n[67] !== m.id ? (Ce = function(e) {
|
|
4721
4721
|
e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", m.id), o.ui.actions.startColumnDrag(m.id);
|
|
4722
|
-
}, 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], fe = Ce;
|
|
4723
4723
|
let we;
|
|
4724
|
-
n[69] ===
|
|
4725
|
-
if (!
|
|
4724
|
+
n[69] === Z ? we = n[70] : (we = function(e) {
|
|
4725
|
+
if (!Z) return;
|
|
4726
4726
|
e.preventDefault(), e.dataTransfer.dropEffect = "move";
|
|
4727
4727
|
let t = S.current?.getBoundingClientRect();
|
|
4728
4728
|
t && x(e.clientX < t.left + t.width / 2 ? "before" : "after");
|
|
4729
|
-
}, n[69] =
|
|
4729
|
+
}, n[69] = Z, n[70] = we), de = we;
|
|
4730
4730
|
let Te;
|
|
4731
4731
|
n[71] === Symbol.for("react.memo_cache_sentinel") ? (Te = function(e) {
|
|
4732
4732
|
let t = e.relatedTarget;
|
|
4733
4733
|
_n(t) && e.currentTarget.contains(t) || x(null);
|
|
4734
|
-
}, n[71] = Te) : Te = n[71],
|
|
4734
|
+
}, n[71] = Te) : Te = n[71], ue = Te;
|
|
4735
4735
|
let Ee;
|
|
4736
|
-
n[72] !== o.ui || n[73] !== m.id || n[74] !== j || n[75] !== b || n[76] !==
|
|
4737
|
-
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] !== Z || n[77] !== u ? (Ee = function(e) {
|
|
4737
|
+
e.preventDefault(), x(null), o.ui.actions.endColumnDrag(), !(!Z || !b || !j) && Co({
|
|
4738
4738
|
table: u,
|
|
4739
4739
|
columnId: j,
|
|
4740
4740
|
targetId: m.id,
|
|
4741
4741
|
side: b
|
|
4742
4742
|
});
|
|
4743
|
-
}, 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] = Z, n[77] = u, n[78] = Ee) : Ee = n[78], pe = Ee;
|
|
4744
4744
|
let De;
|
|
4745
4745
|
n[79] === o.ui ? De = n[80] : (De = function() {
|
|
4746
4746
|
x(null), o.ui.actions.endColumnDrag();
|
|
4747
|
-
}, n[79] = o.ui, n[80] = De),
|
|
4747
|
+
}, n[79] = o.ui, n[80] = De), le = De;
|
|
4748
4748
|
let Oe;
|
|
4749
4749
|
n[81] !== m.id || n[82] !== u ? (Oe = function() {
|
|
4750
4750
|
let e = S.current?.closest("[data-dg-scroll-container]");
|
|
@@ -4769,69 +4769,69 @@ function Oo(t) {
|
|
|
4769
4769
|
...e,
|
|
4770
4770
|
...n
|
|
4771
4771
|
}));
|
|
4772
|
-
}, 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], q = ke;
|
|
4773
4773
|
let Ae;
|
|
4774
|
-
n[87] !== m || n[88] !==
|
|
4775
|
-
e &&
|
|
4776
|
-
}, n[87] = m, n[88] =
|
|
4774
|
+
n[87] !== m || n[88] !== q || n[89] !== u ? (Ae = function(e) {
|
|
4775
|
+
e && q(), m.pin(xo(e)), u.setColumnPinning(wo);
|
|
4776
|
+
}, n[87] = m, n[88] = q, n[89] = u, n[90] = Ae) : Ae = n[90];
|
|
4777
4777
|
let je = Ae, Q = [];
|
|
4778
|
-
if (
|
|
4778
|
+
if (se) {
|
|
4779
4779
|
let e;
|
|
4780
|
-
n[91] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4780
|
+
n[91] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(B, {
|
|
4781
4781
|
size: 16,
|
|
4782
4782
|
stroke: 1.6
|
|
4783
4783
|
}), n[91] = e) : e = n[91];
|
|
4784
4784
|
let t;
|
|
4785
4785
|
n[92] === m ? t = n[93] : (t = () => m.toggleSorting(!1), n[92] = m, n[93] = t);
|
|
4786
4786
|
let r;
|
|
4787
|
-
n[94] !== p.sortAsc || n[95] !== t ? (r = /* @__PURE__ */
|
|
4787
|
+
n[94] !== p.sortAsc || n[95] !== t ? (r = /* @__PURE__ */ J(_.Item, {
|
|
4788
4788
|
leftSection: e,
|
|
4789
4789
|
onClick: t,
|
|
4790
4790
|
children: p.sortAsc
|
|
4791
4791
|
}, "sort-asc"), n[94] = p.sortAsc, n[95] = t, n[96] = r) : r = n[96];
|
|
4792
4792
|
let i;
|
|
4793
|
-
n[97] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
4793
|
+
n[97] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ J(L, {
|
|
4794
4794
|
size: 16,
|
|
4795
4795
|
stroke: 1.6
|
|
4796
4796
|
}), n[97] = i) : i = n[97];
|
|
4797
4797
|
let a;
|
|
4798
4798
|
n[98] === m ? a = n[99] : (a = () => m.toggleSorting(!0), n[98] = m, n[99] = a);
|
|
4799
4799
|
let o;
|
|
4800
|
-
n[100] !== p.sortDesc || n[101] !== a ? (o = /* @__PURE__ */
|
|
4800
|
+
n[100] !== p.sortDesc || n[101] !== a ? (o = /* @__PURE__ */ J(_.Item, {
|
|
4801
4801
|
leftSection: i,
|
|
4802
4802
|
onClick: a,
|
|
4803
4803
|
children: p.sortDesc
|
|
4804
4804
|
}, "sort-desc"), n[100] = p.sortDesc, n[101] = a, n[102] = o) : o = n[102];
|
|
4805
4805
|
let s;
|
|
4806
|
-
n[103] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
4806
|
+
n[103] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ J(_.Divider, {}, "sort-divider"), n[103] = s) : s = n[103], Q.push(r, o, s);
|
|
4807
4807
|
}
|
|
4808
4808
|
if (g && !f.inHeader) {
|
|
4809
4809
|
let e;
|
|
4810
|
-
n[104] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4810
|
+
n[104] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(ne, {
|
|
4811
4811
|
size: 16,
|
|
4812
4812
|
stroke: 1.6
|
|
4813
4813
|
}), n[104] = e) : e = n[104];
|
|
4814
4814
|
let t;
|
|
4815
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];
|
|
4816
4816
|
let r;
|
|
4817
|
-
n[108] !== p.filterMenuItem || n[109] !== t ? (r = /* @__PURE__ */
|
|
4817
|
+
n[108] !== p.filterMenuItem || n[109] !== t ? (r = /* @__PURE__ */ J(_.Item, {
|
|
4818
4818
|
leftSection: e,
|
|
4819
4819
|
onClick: t,
|
|
4820
4820
|
children: p.filterMenuItem
|
|
4821
4821
|
}, "filter"), n[108] = p.filterMenuItem, n[109] = t, n[110] = r) : r = n[110];
|
|
4822
4822
|
let i;
|
|
4823
|
-
n[111] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
4823
|
+
n[111] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ J(_.Divider, {}, "filter-divider"), n[111] = i) : i = n[111], Q.push(r, i);
|
|
4824
4824
|
}
|
|
4825
4825
|
if (C) {
|
|
4826
4826
|
let e = M ? fo.menuItemActive : void 0, t;
|
|
4827
|
-
n[112] === M ? t = n[113] : (t =
|
|
4827
|
+
n[112] === M ? t = n[113] : (t = J(M ? ae : oe, {
|
|
4828
4828
|
size: 16,
|
|
4829
4829
|
stroke: 1.6
|
|
4830
4830
|
}), n[112] = M, n[113] = t);
|
|
4831
4831
|
let r;
|
|
4832
4832
|
n[114] === m ? r = n[115] : (r = m.getToggleGroupingHandler(), n[114] = m, n[115] = r);
|
|
4833
4833
|
let i = M ? p.ungroup(ye) : p.groupBy(ye), a;
|
|
4834
|
-
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__ */ J(_.Item, {
|
|
4835
4835
|
className: e,
|
|
4836
4836
|
leftSection: t,
|
|
4837
4837
|
onClick: r,
|
|
@@ -4841,8 +4841,8 @@ function Oo(t) {
|
|
|
4841
4841
|
if (ee) {
|
|
4842
4842
|
if (m.id === "__group__") for (let e of A) {
|
|
4843
4843
|
let t = u.getColumn(e);
|
|
4844
|
-
t && Q.push(/* @__PURE__ */
|
|
4845
|
-
leftSection: /* @__PURE__ */
|
|
4844
|
+
t && Q.push(/* @__PURE__ */ J(_.Item, {
|
|
4845
|
+
leftSection: /* @__PURE__ */ J(ae, {
|
|
4846
4846
|
size: 16,
|
|
4847
4847
|
stroke: 1.6
|
|
4848
4848
|
}),
|
|
@@ -4858,27 +4858,27 @@ function Oo(t) {
|
|
|
4858
4858
|
expand: e
|
|
4859
4859
|
})), n[121] = u, n[122] = e);
|
|
4860
4860
|
let t = e, r;
|
|
4861
|
-
n[123] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
4861
|
+
n[123] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(re, {
|
|
4862
4862
|
size: 16,
|
|
4863
4863
|
stroke: 1.6
|
|
4864
4864
|
}), n[123] = r) : r = n[123];
|
|
4865
4865
|
let i;
|
|
4866
4866
|
n[124] === t ? i = n[125] : (i = () => t(!0), n[124] = t, n[125] = i);
|
|
4867
4867
|
let a;
|
|
4868
|
-
n[126] !== p.expandAllGroups || n[127] !== i ? (a = /* @__PURE__ */
|
|
4868
|
+
n[126] !== p.expandAllGroups || n[127] !== i ? (a = /* @__PURE__ */ J(_.Item, {
|
|
4869
4869
|
leftSection: r,
|
|
4870
4870
|
onClick: i,
|
|
4871
4871
|
children: p.expandAllGroups
|
|
4872
4872
|
}, "expand-all"), n[126] = p.expandAllGroups, n[127] = i, n[128] = a) : a = n[128];
|
|
4873
4873
|
let o;
|
|
4874
|
-
n[129] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
4874
|
+
n[129] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ J(ie, {
|
|
4875
4875
|
size: 16,
|
|
4876
4876
|
stroke: 1.6
|
|
4877
4877
|
}), n[129] = o) : o = n[129];
|
|
4878
4878
|
let s;
|
|
4879
4879
|
n[130] === t ? s = n[131] : (s = () => t(!1), n[130] = t, n[131] = s);
|
|
4880
4880
|
let c;
|
|
4881
|
-
n[132] !== p.collapseAllGroups || n[133] !== s ? (c = /* @__PURE__ */
|
|
4881
|
+
n[132] !== p.collapseAllGroups || n[133] !== s ? (c = /* @__PURE__ */ J(_.Item, {
|
|
4882
4882
|
leftSection: o,
|
|
4883
4883
|
onClick: s,
|
|
4884
4884
|
children: p.collapseAllGroups
|
|
@@ -4886,53 +4886,53 @@ function Oo(t) {
|
|
|
4886
4886
|
}
|
|
4887
4887
|
if (C || ee) {
|
|
4888
4888
|
let e;
|
|
4889
|
-
n[135] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4889
|
+
n[135] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(_.Divider, {}, "group-divider"), n[135] = e) : e = n[135], Q.push(e);
|
|
4890
4890
|
}
|
|
4891
4891
|
if (y) {
|
|
4892
4892
|
let e = be === "left" ? fo.menuItemActive : void 0, t;
|
|
4893
|
-
n[136] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
4893
|
+
n[136] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ J(F, {
|
|
4894
4894
|
size: 16,
|
|
4895
4895
|
stroke: 1.6
|
|
4896
4896
|
}), n[136] = t) : t = n[136];
|
|
4897
4897
|
let r;
|
|
4898
4898
|
n[137] !== be || n[138] !== je ? (r = () => je(be !== "left" && "left"), n[137] = be, n[138] = je, n[139] = r) : r = n[139];
|
|
4899
4899
|
let i;
|
|
4900
|
-
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__ */ J(_.Item, {
|
|
4901
4901
|
className: e,
|
|
4902
4902
|
leftSection: t,
|
|
4903
4903
|
onClick: r,
|
|
4904
4904
|
children: p.pinLeft
|
|
4905
4905
|
}, "pin-left"), n[140] = p.pinLeft, n[141] = e, n[142] = r, n[143] = i) : i = n[143];
|
|
4906
4906
|
let a = be === "right" ? fo.menuItemActive : void 0, o;
|
|
4907
|
-
n[144] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
4907
|
+
n[144] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ J(I, {
|
|
4908
4908
|
size: 16,
|
|
4909
4909
|
stroke: 1.6
|
|
4910
4910
|
}), n[144] = o) : o = n[144];
|
|
4911
4911
|
let s;
|
|
4912
4912
|
n[145] !== be || n[146] !== je ? (s = () => je(be !== "right" && "right"), n[145] = be, n[146] = je, n[147] = s) : s = n[147];
|
|
4913
4913
|
let c;
|
|
4914
|
-
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__ */ J(_.Item, {
|
|
4915
4915
|
className: a,
|
|
4916
4916
|
leftSection: o,
|
|
4917
4917
|
onClick: s,
|
|
4918
4918
|
children: p.pinRight
|
|
4919
4919
|
}, "pin-right"), n[148] = p.pinRight, n[149] = a, n[150] = s, n[151] = c) : c = n[151], Q.push(i, c), be) {
|
|
4920
4920
|
let e;
|
|
4921
|
-
n[152] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4921
|
+
n[152] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(ce, {
|
|
4922
4922
|
size: 16,
|
|
4923
4923
|
stroke: 1.6
|
|
4924
4924
|
}), n[152] = e) : e = n[152];
|
|
4925
4925
|
let t;
|
|
4926
4926
|
n[153] === je ? t = n[154] : (t = () => je(!1), n[153] = je, n[154] = t);
|
|
4927
4927
|
let r;
|
|
4928
|
-
n[155] !== p.unpin || n[156] !== t ? (r = /* @__PURE__ */
|
|
4928
|
+
n[155] !== p.unpin || n[156] !== t ? (r = /* @__PURE__ */ J(_.Item, {
|
|
4929
4929
|
leftSection: e,
|
|
4930
4930
|
onClick: t,
|
|
4931
4931
|
children: p.unpin
|
|
4932
4932
|
}, "unpin"), n[155] = p.unpin, n[156] = t, n[157] = r) : r = n[157], Q.push(r);
|
|
4933
4933
|
}
|
|
4934
4934
|
let l;
|
|
4935
|
-
n[158] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */
|
|
4935
|
+
n[158] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ J(_.Divider, {}, "pin-divider"), n[158] = l) : l = n[158], Q.push(l);
|
|
4936
4936
|
}
|
|
4937
4937
|
if (U) {
|
|
4938
4938
|
let e;
|
|
@@ -4950,7 +4950,7 @@ function Oo(t) {
|
|
|
4950
4950
|
let i = r;
|
|
4951
4951
|
if (t || i) {
|
|
4952
4952
|
let e = !t, r;
|
|
4953
|
-
n[165] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
4953
|
+
n[165] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(R, {
|
|
4954
4954
|
size: 16,
|
|
4955
4955
|
stroke: 1.6
|
|
4956
4956
|
}), n[165] = r) : r = n[165];
|
|
@@ -4961,14 +4961,14 @@ function Oo(t) {
|
|
|
4961
4961
|
direction: -1
|
|
4962
4962
|
}), n[166] = m.id, n[167] = u, n[168] = a) : a = n[168];
|
|
4963
4963
|
let o;
|
|
4964
|
-
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__ */ J(_.Item, {
|
|
4965
4965
|
disabled: e,
|
|
4966
4966
|
leftSection: r,
|
|
4967
4967
|
onClick: a,
|
|
4968
4968
|
children: p.moveLeft
|
|
4969
4969
|
}, "move-left"), n[169] = p.moveLeft, n[170] = e, n[171] = a, n[172] = o) : o = n[172];
|
|
4970
4970
|
let s = !i, c;
|
|
4971
|
-
n[173] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */
|
|
4971
|
+
n[173] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ J(z, {
|
|
4972
4972
|
size: 16,
|
|
4973
4973
|
stroke: 1.6
|
|
4974
4974
|
}), n[173] = c) : c = n[173];
|
|
@@ -4979,41 +4979,41 @@ function Oo(t) {
|
|
|
4979
4979
|
direction: 1
|
|
4980
4980
|
}), n[174] = m.id, n[175] = u, n[176] = l) : l = n[176];
|
|
4981
4981
|
let d;
|
|
4982
|
-
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__ */ J(_.Item, {
|
|
4983
4983
|
disabled: s,
|
|
4984
4984
|
leftSection: c,
|
|
4985
4985
|
onClick: l,
|
|
4986
4986
|
children: p.moveRight
|
|
4987
4987
|
}, "move-right"), n[177] = p.moveRight, n[178] = s, n[179] = l, n[180] = d) : d = n[180];
|
|
4988
4988
|
let f;
|
|
4989
|
-
n[181] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
4989
|
+
n[181] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ J(_.Divider, {}, "move-divider"), n[181] = f) : f = n[181], Q.push(o, d, f);
|
|
4990
4990
|
}
|
|
4991
4991
|
}
|
|
4992
4992
|
if (G && P) {
|
|
4993
4993
|
let e;
|
|
4994
|
-
n[182] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4994
|
+
n[182] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(N, {
|
|
4995
4995
|
size: 16,
|
|
4996
4996
|
stroke: 1.6
|
|
4997
4997
|
}), n[182] = e) : e = n[182];
|
|
4998
4998
|
let t;
|
|
4999
|
-
n[183] !== H || n[184] !== p.autosizeColumn ? (t = /* @__PURE__ */
|
|
4999
|
+
n[183] !== H || n[184] !== p.autosizeColumn ? (t = /* @__PURE__ */ J(_.Item, {
|
|
5000
5000
|
leftSection: e,
|
|
5001
5001
|
onClick: H,
|
|
5002
5002
|
children: p.autosizeColumn
|
|
5003
5003
|
}, "autosize"), n[183] = H, n[184] = p.autosizeColumn, n[185] = t) : t = n[185];
|
|
5004
5004
|
let r;
|
|
5005
|
-
n[186] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
5005
|
+
n[186] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(_.Divider, {}, "autosize-divider"), n[186] = r) : r = n[186], Q.push(t, r);
|
|
5006
5006
|
}
|
|
5007
5007
|
if (v) {
|
|
5008
5008
|
let e;
|
|
5009
|
-
n[187] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
5009
|
+
n[187] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(te, {
|
|
5010
5010
|
size: 16,
|
|
5011
5011
|
stroke: 1.6
|
|
5012
5012
|
}), n[187] = e) : e = n[187];
|
|
5013
5013
|
let t;
|
|
5014
5014
|
n[188] === m ? t = n[189] : (t = () => m.toggleVisibility(!1), n[188] = m, n[189] = t);
|
|
5015
5015
|
let r;
|
|
5016
|
-
n[190] !== p.hideColumn || n[191] !== t ? (r = /* @__PURE__ */
|
|
5016
|
+
n[190] !== p.hideColumn || n[191] !== t ? (r = /* @__PURE__ */ J(_.Item, {
|
|
5017
5017
|
leftSection: e,
|
|
5018
5018
|
onClick: t,
|
|
5019
5019
|
children: p.hideColumn
|
|
@@ -5021,31 +5021,31 @@ function Oo(t) {
|
|
|
5021
5021
|
}
|
|
5022
5022
|
if (w) {
|
|
5023
5023
|
let e;
|
|
5024
|
-
n[193] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
5024
|
+
n[193] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(W, {
|
|
5025
5025
|
size: 16,
|
|
5026
5026
|
stroke: 1.6
|
|
5027
5027
|
}), n[193] = e) : e = n[193];
|
|
5028
5028
|
let t;
|
|
5029
|
-
n[194] === p.manageColumns ? t = n[195] : (t = /* @__PURE__ */
|
|
5029
|
+
n[194] === p.manageColumns ? t = n[195] : (t = /* @__PURE__ */ J(_.Sub.Target, { children: /* @__PURE__ */ J(_.Sub.Item, {
|
|
5030
5030
|
leftSection: e,
|
|
5031
5031
|
children: p.manageColumns
|
|
5032
5032
|
}) }), n[194] = p.manageColumns, n[195] = t);
|
|
5033
5033
|
let r;
|
|
5034
|
-
n[196] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
5034
|
+
n[196] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(_.Sub.Dropdown, { children: /* @__PURE__ */ J(za, { searchable: !1 }) }), n[196] = r) : r = n[196];
|
|
5035
5035
|
let i;
|
|
5036
|
-
n[197] === t ? i = n[198] : (i = /* @__PURE__ */
|
|
5036
|
+
n[197] === t ? i = n[198] : (i = /* @__PURE__ */ Y(_.Sub, { children: [t, r] }, "manage"), n[197] = t, n[198] = i), Q.push(i);
|
|
5037
5037
|
}
|
|
5038
5038
|
for (; Q.length > 0 && Io(Q.at(-1));) Q.pop();
|
|
5039
|
-
for (
|
|
5039
|
+
for (K = a ? [...a({
|
|
5040
5040
|
column: m,
|
|
5041
5041
|
table: u,
|
|
5042
5042
|
internalItems: Q
|
|
5043
|
-
})] : Q;
|
|
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] =
|
|
5045
|
-
} else V = n[18], H = n[19], U = n[20], G = n[21],
|
|
5043
|
+
})] : Q; K.length > 0 && Io(K.at(-1));) K.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] = se, n[23] = K, n[24] = q, n[25] = le, n[26] = ue, n[27] = de, n[28] = fe, n[29] = pe, n[30] = X, n[31] = me, n[32] = Z, 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], se = n[22], K = n[23], q = n[24], le = n[25], ue = n[26], de = n[27], fe = n[28], pe = n[29], X = n[30], me = n[31], Z = n[32], he = n[33], _e = n[34], ve = n[35], ye = n[36], be = n[37], xe = n[38], Se = n[39];
|
|
5046
5046
|
let Ce;
|
|
5047
|
-
n[199] !== m.id || n[200] !==
|
|
5048
|
-
let we = Ce, Te =
|
|
5047
|
+
n[199] !== m.id || n[200] !== K || n[201] !== P ? (Ce = P && K.length > 0 && !Bn(m.id), n[199] = m.id, n[200] = K, n[201] = P, n[202] = Ce) : Ce = n[202];
|
|
5048
|
+
let we = Ce, Te = se ? fo.headerCellSortable : "", Ee = he ? fo.headerCellFiltered : "", De = me ? 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;
|
|
5049
5049
|
n[203] !== Te || n[204] !== Ee || n[205] !== De || n[206] !== Oe || n[207] !== ke || n[208] !== Ae || n[209] !== je ? (Q = [
|
|
5050
5050
|
fo.headerCell,
|
|
5051
5051
|
Te,
|
|
@@ -5058,7 +5058,7 @@ function Oo(t) {
|
|
|
5058
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];
|
|
5059
5059
|
let Me = Q.join(" "), Ne = ve || he || void 0, Pe;
|
|
5060
5060
|
n[211] === m.id ? Pe = n[212] : (Pe = Bn(m.id) || void 0, n[211] = m.id, n[212] = Pe);
|
|
5061
|
-
let Ie =
|
|
5061
|
+
let Ie = se ? ve ? xe ? "descending" : "ascending" : "none" : void 0, Le = U && !X, Re = U ? fe : void 0, ze = U ? le : void 0, Be = Z ? de : void 0, Ve = Z ? ue : void 0, He = Z ? pe : 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;
|
|
5062
5062
|
n[213] !== Ue || n[214] !== We || n[215] !== Ge || n[216] !== Ke || n[217] !== qe ? (Je = {
|
|
5063
5063
|
gridColumn: Ue,
|
|
5064
5064
|
left: We,
|
|
@@ -5066,31 +5066,31 @@ function Oo(t) {
|
|
|
5066
5066
|
position: Ke,
|
|
5067
5067
|
zIndex: qe
|
|
5068
5068
|
}, n[213] = Ue, n[214] = We, n[215] = Ge, n[216] = Ke, n[217] = qe, n[218] = Je) : Je = n[218];
|
|
5069
|
-
let Ye =
|
|
5070
|
-
n[219] !==
|
|
5069
|
+
let Ye = se ? No : void 0, Xe;
|
|
5070
|
+
n[219] !== se || n[220] !== m ? (Xe = se ? (e) => {
|
|
5071
5071
|
if (C.current) {
|
|
5072
5072
|
C.current = !1;
|
|
5073
5073
|
return;
|
|
5074
5074
|
}
|
|
5075
5075
|
m.getToggleSortingHandler()?.(e);
|
|
5076
|
-
} : void 0, n[219] =
|
|
5076
|
+
} : void 0, n[219] = se, n[220] = m, n[221] = Xe) : Xe = n[221];
|
|
5077
5077
|
let Ze;
|
|
5078
|
-
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__ */ J(k, {
|
|
5079
5079
|
label: ye,
|
|
5080
5080
|
openDelay: 600,
|
|
5081
5081
|
withinPortal: !0,
|
|
5082
5082
|
disabled: !P,
|
|
5083
|
-
children: /* @__PURE__ */
|
|
5083
|
+
children: /* @__PURE__ */ J("span", {
|
|
5084
5084
|
className: fo.headerTitle,
|
|
5085
5085
|
"data-dg-header-title": !0,
|
|
5086
5086
|
children: Fe(m.columnDef.header, r.getContext())
|
|
5087
5087
|
})
|
|
5088
5088
|
}), n[222] = m.columnDef, n[223] = r, n[224] = P, n[225] = ye, n[226] = Ze) : Ze = n[226];
|
|
5089
5089
|
let Qe;
|
|
5090
|
-
n[227] !== o || n[228] !==
|
|
5090
|
+
n[227] !== o || n[228] !== se || n[229] !== m || n[230] !== v || n[231] !== f || n[232] !== K || 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__ */ Y("div", {
|
|
5091
5091
|
className: fo.headerActions,
|
|
5092
5092
|
children: [
|
|
5093
|
-
he && !f.inHeader && /* @__PURE__ */
|
|
5093
|
+
he && !f.inHeader && /* @__PURE__ */ J(l, {
|
|
5094
5094
|
className: fo.headerAction,
|
|
5095
5095
|
"data-pinned-visible": "true",
|
|
5096
5096
|
variant: "subtle",
|
|
@@ -5102,12 +5102,12 @@ function Oo(t) {
|
|
|
5102
5102
|
onClick: (e) => {
|
|
5103
5103
|
e.stopPropagation(), ba(o, m.id);
|
|
5104
5104
|
},
|
|
5105
|
-
children: /* @__PURE__ */
|
|
5105
|
+
children: /* @__PURE__ */ J(ne, {
|
|
5106
5106
|
size: 14,
|
|
5107
5107
|
stroke: 1.6
|
|
5108
5108
|
})
|
|
5109
5109
|
}),
|
|
5110
|
-
|
|
5110
|
+
se && /* @__PURE__ */ J(l, {
|
|
5111
5111
|
className: `${fo.headerAction} ${fo.sortAction}`,
|
|
5112
5112
|
"data-pinned-visible": ve || void 0,
|
|
5113
5113
|
"data-sorted": ve || void 0,
|
|
@@ -5120,24 +5120,24 @@ function Oo(t) {
|
|
|
5120
5120
|
onClick: (e) => {
|
|
5121
5121
|
e.stopPropagation(), m.getToggleSortingHandler()?.(e);
|
|
5122
5122
|
},
|
|
5123
|
-
children:
|
|
5123
|
+
children: J(xe ? L : B, {
|
|
5124
5124
|
size: 14,
|
|
5125
5125
|
stroke: 1.6
|
|
5126
5126
|
})
|
|
5127
5127
|
}),
|
|
5128
|
-
Se !== null && /* @__PURE__ */
|
|
5128
|
+
Se !== null && /* @__PURE__ */ J("span", {
|
|
5129
5129
|
className: fo.sortIndex,
|
|
5130
5130
|
"data-dg-part": "sort-index",
|
|
5131
5131
|
children: Se
|
|
5132
5132
|
}),
|
|
5133
|
-
we && /* @__PURE__ */
|
|
5133
|
+
we && /* @__PURE__ */ Y(_, {
|
|
5134
5134
|
opened: h,
|
|
5135
5135
|
onChange: g,
|
|
5136
5136
|
position: "bottom-start",
|
|
5137
5137
|
shadow: "md",
|
|
5138
5138
|
width: 220,
|
|
5139
5139
|
withinPortal: !0,
|
|
5140
|
-
children: [/* @__PURE__ */
|
|
5140
|
+
children: [/* @__PURE__ */ J(_.Target, { children: /* @__PURE__ */ J(l, {
|
|
5141
5141
|
className: fo.headerAction,
|
|
5142
5142
|
"data-pinned-visible": h || v || void 0,
|
|
5143
5143
|
variant: "subtle",
|
|
@@ -5149,19 +5149,19 @@ function Oo(t) {
|
|
|
5149
5149
|
onClick: (e) => {
|
|
5150
5150
|
e.stopPropagation(), g(Mo);
|
|
5151
5151
|
},
|
|
5152
|
-
children: /* @__PURE__ */
|
|
5152
|
+
children: /* @__PURE__ */ J(ee, {
|
|
5153
5153
|
size: 14,
|
|
5154
5154
|
stroke: 1.6
|
|
5155
5155
|
})
|
|
5156
|
-
}) }), /* @__PURE__ */
|
|
5156
|
+
}) }), /* @__PURE__ */ J(_.Dropdown, {
|
|
5157
5157
|
onClick: jo,
|
|
5158
|
-
children:
|
|
5158
|
+
children: K
|
|
5159
5159
|
})]
|
|
5160
5160
|
})
|
|
5161
5161
|
]
|
|
5162
|
-
}), n[227] = o, n[228] =
|
|
5162
|
+
}), n[227] = o, n[228] = se, n[229] = m, n[230] = v, n[231] = f, n[232] = K, 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];
|
|
5163
5163
|
let $e;
|
|
5164
|
-
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] !== q || n[247] !== r || n[248] !== _e ? ($e = !Bn(m.id) && /* @__PURE__ */ J("div", {
|
|
5165
5165
|
className: [
|
|
5166
5166
|
fo.columnSeparator,
|
|
5167
5167
|
G ? fo.columnSeparatorResizable : "",
|
|
@@ -5171,18 +5171,18 @@ function Oo(t) {
|
|
|
5171
5171
|
"data-column-id": G ? m.id : void 0,
|
|
5172
5172
|
draggable: !1,
|
|
5173
5173
|
onMouseDown: G ? (e) => {
|
|
5174
|
-
C.current = !0,
|
|
5174
|
+
C.current = !0, q(), r.getResizeHandler(e.currentTarget.ownerDocument)(e);
|
|
5175
5175
|
} : void 0,
|
|
5176
5176
|
onTouchStart: G ? (e) => {
|
|
5177
|
-
|
|
5177
|
+
q(), r.getResizeHandler(e.currentTarget.ownerDocument)(e);
|
|
5178
5178
|
} : void 0,
|
|
5179
5179
|
onClick: Ao,
|
|
5180
5180
|
onDoubleClick: G ? (e) => {
|
|
5181
5181
|
e.stopPropagation(), H();
|
|
5182
5182
|
} : void 0
|
|
5183
|
-
}), 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] = q, n[247] = r, n[248] = _e, n[249] = $e) : $e = n[249];
|
|
5184
5184
|
let et;
|
|
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__ */
|
|
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__ */ Y("div", {
|
|
5186
5186
|
ref: S,
|
|
5187
5187
|
role: "columnheader",
|
|
5188
5188
|
"data-dg-part": "header",
|
|
@@ -5214,14 +5214,14 @@ function Oo(t) {
|
|
|
5214
5214
|
y(e), e && g(!1);
|
|
5215
5215
|
}, n[269] = nt) : nt = n[269];
|
|
5216
5216
|
let rt;
|
|
5217
|
-
n[270] === tt ? rt = n[271] : (rt = /* @__PURE__ */
|
|
5217
|
+
n[270] === tt ? rt = n[271] : (rt = /* @__PURE__ */ J(_.ContextMenu, { children: tt }), n[270] = tt, n[271] = rt);
|
|
5218
5218
|
let it;
|
|
5219
|
-
n[272] ===
|
|
5219
|
+
n[272] === K ? it = n[273] : (it = /* @__PURE__ */ J(_.Dropdown, {
|
|
5220
5220
|
onClick: ko,
|
|
5221
|
-
children:
|
|
5222
|
-
}), n[272] =
|
|
5221
|
+
children: K
|
|
5222
|
+
}), n[272] = K, n[273] = it);
|
|
5223
5223
|
let at;
|
|
5224
|
-
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__ */ Y(_, {
|
|
5225
5225
|
opened: v,
|
|
5226
5226
|
onChange: nt,
|
|
5227
5227
|
position: "bottom-start",
|
|
@@ -5278,19 +5278,19 @@ function Ro(e) {
|
|
|
5278
5278
|
//#endregion
|
|
5279
5279
|
//#region src/components/editors/editorShared.ts
|
|
5280
5280
|
function zo(e) {
|
|
5281
|
-
return
|
|
5281
|
+
return Z(e.store, Bo);
|
|
5282
5282
|
}
|
|
5283
5283
|
function Bo(e) {
|
|
5284
5284
|
return e.value;
|
|
5285
5285
|
}
|
|
5286
5286
|
function Vo(e) {
|
|
5287
|
-
return
|
|
5287
|
+
return Z(e.store, Ho);
|
|
5288
5288
|
}
|
|
5289
5289
|
function Ho(e) {
|
|
5290
5290
|
return Yt(e.meta.errors);
|
|
5291
5291
|
}
|
|
5292
5292
|
function Uo(e) {
|
|
5293
|
-
return
|
|
5293
|
+
return Z(e.store, Wo);
|
|
5294
5294
|
}
|
|
5295
5295
|
function Wo(e) {
|
|
5296
5296
|
return Yt(e.meta.errors) !== void 0;
|
|
@@ -5326,7 +5326,7 @@ function qo(t) {
|
|
|
5326
5326
|
let u = s === !0, d;
|
|
5327
5327
|
n[3] === r ? d = n[4] : (d = (e) => r.handleChange(e.currentTarget.checked), n[3] = r, n[4] = d);
|
|
5328
5328
|
let f;
|
|
5329
|
-
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__ */ J(p, {
|
|
5330
5330
|
size: a,
|
|
5331
5331
|
"aria-label": l,
|
|
5332
5332
|
"data-dg-part": "editor-input",
|
|
@@ -5353,7 +5353,7 @@ function Jo(t) {
|
|
|
5353
5353
|
r.handleChange(u.current ? /* @__PURE__ */ new Date(`${t}T00:00:00`) : t);
|
|
5354
5354
|
}, n[5] = r, n[6] = m);
|
|
5355
5355
|
let h;
|
|
5356
|
-
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__ */ J(O, {
|
|
5357
5357
|
size: a,
|
|
5358
5358
|
w: "100%",
|
|
5359
5359
|
type: "date",
|
|
@@ -5384,7 +5384,7 @@ function Yo(t) {
|
|
|
5384
5384
|
let h;
|
|
5385
5385
|
n[10] === r ? h = n[11] : (h = (e) => r.handleChange(e), n[10] = r, n[11] = h);
|
|
5386
5386
|
let g;
|
|
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__ */
|
|
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__ */ J(y, {
|
|
5388
5388
|
size: s,
|
|
5389
5389
|
w: "100%",
|
|
5390
5390
|
searchable: !0,
|
|
@@ -5414,7 +5414,7 @@ function Xo(t) {
|
|
|
5414
5414
|
r.handleChange(e !== "" && Number.isFinite(t) ? t : null);
|
|
5415
5415
|
}, n[3] = r, n[4] = u, n[5] = d, n[6] = v) : v = n[6];
|
|
5416
5416
|
let y;
|
|
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__ */
|
|
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__ */ J(b, {
|
|
5418
5418
|
ref: u,
|
|
5419
5419
|
size: a,
|
|
5420
5420
|
w: "100%",
|
|
@@ -5447,7 +5447,7 @@ function Zo(t) {
|
|
|
5447
5447
|
r.handleChange(e), e !== null && u.editMode === "cell" && c();
|
|
5448
5448
|
}, n[8] = c, n[9] = u, n[10] = r, n[11] = _) : _ = n[11];
|
|
5449
5449
|
let v;
|
|
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__ */
|
|
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__ */ J(T, {
|
|
5451
5451
|
size: s,
|
|
5452
5452
|
w: "100%",
|
|
5453
5453
|
searchable: !0,
|
|
@@ -5471,7 +5471,7 @@ function Qo(t) {
|
|
|
5471
5471
|
u(e.currentTarget), r.handleChange(e.currentTarget.value);
|
|
5472
5472
|
}, n[3] = r, n[4] = u, n[5] = p) : p = n[5];
|
|
5473
5473
|
let m;
|
|
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__ */
|
|
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__ */ J(O, {
|
|
5475
5475
|
ref: l,
|
|
5476
5476
|
size: a,
|
|
5477
5477
|
w: "100%",
|
|
@@ -5500,7 +5500,7 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5500
5500
|
y.current = h.columnDef.meta?.edit?.mapValue;
|
|
5501
5501
|
});
|
|
5502
5502
|
let [b] = c(() => {
|
|
5503
|
-
let e = new
|
|
5503
|
+
let e = new pe({
|
|
5504
5504
|
form: g,
|
|
5505
5505
|
name: _,
|
|
5506
5506
|
validators: en(h.columnDef.meta?.edit?.validate)
|
|
@@ -5585,7 +5585,7 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5585
5585
|
size: p,
|
|
5586
5586
|
seedText: v
|
|
5587
5587
|
}, P = h.columnDef.meta?.edit?.editor ?? $o[h.columnDef.meta?.type ?? "string"] ?? Qo;
|
|
5588
|
-
return /* @__PURE__ */
|
|
5588
|
+
return /* @__PURE__ */ Y("div", {
|
|
5589
5589
|
className: Rt.cellEditor,
|
|
5590
5590
|
"data-dg-part": "editor",
|
|
5591
5591
|
"data-row-id": t.id,
|
|
@@ -5594,12 +5594,12 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5594
5594
|
onBlur: M,
|
|
5595
5595
|
onMouseDown: (e) => e.stopPropagation(),
|
|
5596
5596
|
onDoubleClick: (e) => e.stopPropagation(),
|
|
5597
|
-
children: [/* @__PURE__ */
|
|
5597
|
+
children: [/* @__PURE__ */ J(k, {
|
|
5598
5598
|
label: x,
|
|
5599
5599
|
opened: x !== void 0 && (S || w),
|
|
5600
5600
|
withArrow: !0,
|
|
5601
5601
|
position: "bottom-start",
|
|
5602
|
-
children: /* @__PURE__ */
|
|
5602
|
+
children: /* @__PURE__ */ J("div", {
|
|
5603
5603
|
className: Rt.cellEditorField,
|
|
5604
5604
|
onMouseEnter: () => C(!0),
|
|
5605
5605
|
onMouseLeave: () => C(!1),
|
|
@@ -5608,11 +5608,11 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5608
5608
|
let t = e.relatedTarget;
|
|
5609
5609
|
_n(t) && e.currentTarget.contains(t) || T(!1);
|
|
5610
5610
|
},
|
|
5611
|
-
children: /* @__PURE__ */
|
|
5611
|
+
children: /* @__PURE__ */ J(P, { ...N })
|
|
5612
5612
|
})
|
|
5613
|
-
}), d.editMode === "cellConfirm" && /* @__PURE__ */
|
|
5613
|
+
}), d.editMode === "cellConfirm" && /* @__PURE__ */ Y("div", {
|
|
5614
5614
|
className: Rt.cellEditorActions,
|
|
5615
|
-
children: [/* @__PURE__ */
|
|
5615
|
+
children: [/* @__PURE__ */ J(l, {
|
|
5616
5616
|
size: "sm",
|
|
5617
5617
|
variant: "subtle",
|
|
5618
5618
|
color: "green",
|
|
@@ -5620,11 +5620,11 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5620
5620
|
"data-dg-part": "editor-confirm",
|
|
5621
5621
|
onMouseDown: (e) => e.preventDefault(),
|
|
5622
5622
|
onClick: () => void D("pick"),
|
|
5623
|
-
children: /* @__PURE__ */
|
|
5623
|
+
children: /* @__PURE__ */ J(V, {
|
|
5624
5624
|
size: 14,
|
|
5625
5625
|
stroke: 2
|
|
5626
5626
|
})
|
|
5627
|
-
}), /* @__PURE__ */
|
|
5627
|
+
}), /* @__PURE__ */ J(l, {
|
|
5628
5628
|
size: "sm",
|
|
5629
5629
|
variant: "subtle",
|
|
5630
5630
|
color: "gray",
|
|
@@ -5632,7 +5632,7 @@ function es({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5632
5632
|
"data-dg-part": "editor-cancel",
|
|
5633
5633
|
onMouseDown: (e) => e.preventDefault(),
|
|
5634
5634
|
onClick: O,
|
|
5635
|
-
children: /* @__PURE__ */
|
|
5635
|
+
children: /* @__PURE__ */ J(de, {
|
|
5636
5636
|
size: 14,
|
|
5637
5637
|
stroke: 2
|
|
5638
5638
|
})
|
|
@@ -5697,18 +5697,18 @@ function rs(t) {
|
|
|
5697
5697
|
zIndex: j
|
|
5698
5698
|
}, n[27] = c, n[28] = O, n[29] = k, n[30] = A, n[31] = j, n[32] = N) : N = n[32];
|
|
5699
5699
|
let P;
|
|
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__ */
|
|
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__ */ J(es, {
|
|
5701
5701
|
cell: a,
|
|
5702
5702
|
row: r,
|
|
5703
5703
|
takeSeedText: as,
|
|
5704
5704
|
onClose: is,
|
|
5705
5705
|
inEntryBlock: !0
|
|
5706
|
-
}) : o || !Bn(i.id) ? /* @__PURE__ */
|
|
5706
|
+
}) : o || !Bn(i.id) ? /* @__PURE__ */ J("span", {
|
|
5707
5707
|
className: Rt.cellContent,
|
|
5708
5708
|
children: Fe(a.column.columnDef.cell, v === void 0 ? a.getContext() : ts(a, v))
|
|
5709
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];
|
|
5710
5710
|
let F;
|
|
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__ */
|
|
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__ */ J("div", {
|
|
5712
5712
|
role: "cell",
|
|
5713
5713
|
"data-column-id": y,
|
|
5714
5714
|
"data-align": b,
|
|
@@ -5779,7 +5779,7 @@ function os(t) {
|
|
|
5779
5779
|
let a = t, s;
|
|
5780
5780
|
n[28] !== a || n[29] !== i || n[30] !== r || n[31] !== o ? (s = (e, t) => {
|
|
5781
5781
|
let n = new Map(e.getAllCells().map(ss)), s = a.get(e.id) === !0;
|
|
5782
|
-
return /* @__PURE__ */
|
|
5782
|
+
return /* @__PURE__ */ J("div", {
|
|
5783
5783
|
role: "row",
|
|
5784
5784
|
"data-dg-part": "entry-row",
|
|
5785
5785
|
"data-row-id": e.id,
|
|
@@ -5787,7 +5787,7 @@ function os(t) {
|
|
|
5787
5787
|
"data-committed": s || void 0,
|
|
5788
5788
|
"data-draft": s || void 0,
|
|
5789
5789
|
className: Rt.entryRow,
|
|
5790
|
-
children: r.map((r) => /* @__PURE__ */
|
|
5790
|
+
children: r.map((r) => /* @__PURE__ */ J(rs, {
|
|
5791
5791
|
entryRow: e,
|
|
5792
5792
|
column: r,
|
|
5793
5793
|
cell: n.get(r.id),
|
|
@@ -5799,7 +5799,7 @@ function os(t) {
|
|
|
5799
5799
|
}, e.id);
|
|
5800
5800
|
}, n[28] = a, n[29] = i, n[30] = r, n[31] = o, n[32] = s) : s = n[32];
|
|
5801
5801
|
let c = s;
|
|
5802
|
-
D = e.length > 0 && /* @__PURE__ */
|
|
5802
|
+
D = e.length > 0 && /* @__PURE__ */ J("div", {
|
|
5803
5803
|
ref: _,
|
|
5804
5804
|
role: "rowgroup",
|
|
5805
5805
|
"data-dg-entry-block": !0,
|
|
@@ -5808,7 +5808,7 @@ function os(t) {
|
|
|
5808
5808
|
}), n[20] = E, n[21] = i, n[22] = m, n[23] = r, n[24] = o, n[25] = D;
|
|
5809
5809
|
} else D = n[25];
|
|
5810
5810
|
let O;
|
|
5811
|
-
return n[33] === D ? O = n[34] : (O = /* @__PURE__ */
|
|
5811
|
+
return n[33] === D ? O = n[34] : (O = /* @__PURE__ */ J(fe, { children: D }), n[33] = D, n[34] = O), O;
|
|
5812
5812
|
}
|
|
5813
5813
|
function ss(e) {
|
|
5814
5814
|
return [e.column.id, e];
|
|
@@ -5956,21 +5956,24 @@ function Ds({ container: e, cellElement: t, leftPinnedWidth: n, rightPinnedWidth
|
|
|
5956
5956
|
}
|
|
5957
5957
|
function Os(e) {
|
|
5958
5958
|
if (e.getIsPlaceholder()) return null;
|
|
5959
|
-
if (!e
|
|
5960
|
-
let { aggregatedCell: t
|
|
5961
|
-
return t === void 0 ?
|
|
5959
|
+
if (!ks(e)) return Fe(e.column.columnDef.cell, e.getContext());
|
|
5960
|
+
let { aggregatedCell: t } = e.column.columnDef;
|
|
5961
|
+
return t === void 0 ? e.getIsAggregated() ? Fe(e.column.columnDef.cell, e.getContext()) : null : Fe(t, e.getContext());
|
|
5962
|
+
}
|
|
5963
|
+
function ks(e) {
|
|
5964
|
+
return e.row.getIsGrouped() && !e.getIsGrouped();
|
|
5962
5965
|
}
|
|
5963
|
-
function
|
|
5966
|
+
function As(e, t) {
|
|
5964
5967
|
let n = ws(e, t);
|
|
5965
5968
|
if (n === null) return e;
|
|
5966
5969
|
let r = [], i = 0;
|
|
5967
|
-
for (let t of n) t.start > i && r.push(e.slice(i, t.start)), r.push(/* @__PURE__ */
|
|
5970
|
+
for (let t of n) t.start > i && r.push(e.slice(i, t.start)), r.push(/* @__PURE__ */ J("mark", {
|
|
5968
5971
|
className: Rt.matchHighlight,
|
|
5969
5972
|
children: e.slice(t.start, t.end)
|
|
5970
5973
|
}, t.start)), i = t.end;
|
|
5971
5974
|
return i < e.length && r.push(e.slice(i)), r;
|
|
5972
5975
|
}
|
|
5973
|
-
function
|
|
5976
|
+
function js(t) {
|
|
5974
5977
|
let n = e(59), { cell: r, rowHeight: i, layout: a, nav: o, editor: s, contentOverride: c, highlightNeedles: l, onFocus: u, onClick: d, onMouseDown: f, onMouseEnter: p, onDoubleClick: m, onContextMenu: h } = t, { table: g, edit: _ } = $(), v;
|
|
5975
5978
|
n[0] === r.column ? v = n[1] : (v = Ut(r.column), n[0] = r.column, n[1] = v);
|
|
5976
5979
|
let y = v, b = r.row.id, x;
|
|
@@ -5999,28 +6002,28 @@ function As(t) {
|
|
|
5999
6002
|
ne,
|
|
6000
6003
|
re
|
|
6001
6004
|
].filter(Boolean), n[15] = ne, n[16] = re, n[17] = ie) : ie = n[17];
|
|
6002
|
-
let ae = ie.join(" "), oe = a.pinnedAt === "left" ? a.offset : void 0,
|
|
6003
|
-
n[18] !== i || n[19] !== oe || n[20] !==
|
|
6005
|
+
let ae = ie.join(" "), oe = a.pinnedAt === "left" ? a.offset : void 0, se = a.pinnedAt === "right" ? a.offset : void 0, K = a.pinnedAt ? "sticky" : o?.focused ? "relative" : void 0, ce = 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, q;
|
|
6006
|
+
n[18] !== i || n[19] !== oe || n[20] !== se || n[21] !== K || n[22] !== ce ? (q = {
|
|
6004
6007
|
minHeight: i,
|
|
6005
6008
|
left: oe,
|
|
6006
|
-
right:
|
|
6007
|
-
position:
|
|
6008
|
-
zIndex:
|
|
6009
|
-
}, n[18] = i, n[19] = oe, n[20] =
|
|
6010
|
-
let
|
|
6011
|
-
n[24] !== r || n[25] !== c || n[26] !== O || n[27] !== s || n[28] !== l || n[29] !== g ? (
|
|
6009
|
+
right: se,
|
|
6010
|
+
position: K,
|
|
6011
|
+
zIndex: ce
|
|
6012
|
+
}, n[18] = i, n[19] = oe, n[20] = se, n[21] = K, n[22] = ce, n[23] = q) : q = n[23];
|
|
6013
|
+
let le;
|
|
6014
|
+
n[24] !== r || n[25] !== c || n[26] !== O || n[27] !== s || n[28] !== l || n[29] !== g ? (le = s ?? /* @__PURE__ */ J("span", {
|
|
6012
6015
|
className: Rt.cellContent,
|
|
6013
6016
|
children: (() => {
|
|
6014
|
-
let e = O !== void 0 && c === void 0 && !r.getIsPlaceholder() && !r
|
|
6015
|
-
if (l !== void 0 && c === void 0 && !r.getIsPlaceholder() && !r
|
|
6017
|
+
let e = O !== void 0 && c === void 0 && !r.getIsPlaceholder() && !ks(r) ? ts(r, O) : void 0;
|
|
6018
|
+
if (l !== void 0 && c === void 0 && !r.getIsPlaceholder() && !ks(r) && r.column.columnDef.cell === g.getDefaultColumnDef().cell) {
|
|
6016
6019
|
let t = e === void 0 ? r.renderValue() : e.renderValue();
|
|
6017
|
-
if (typeof t == "string" || typeof t == "number") return
|
|
6020
|
+
if (typeof t == "string" || typeof t == "number") return As(String(t), l);
|
|
6018
6021
|
}
|
|
6019
6022
|
return e === void 0 ? c ?? Os(r) : Fe(r.column.columnDef.cell, e);
|
|
6020
6023
|
})()
|
|
6021
|
-
}), n[24] = r, n[25] = c, n[26] = O, n[27] = s, n[28] = l, n[29] = g, n[30] =
|
|
6022
|
-
let
|
|
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] !==
|
|
6024
|
+
}), n[24] = r, n[25] = c, n[26] = O, n[27] = s, n[28] = l, n[29] = g, n[30] = le) : le = n[30];
|
|
6025
|
+
let ue;
|
|
6026
|
+
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] !== q || n[53] !== le || n[54] !== k || n[55] !== A || n[56] !== j || n[57] !== N ? (ue = /* @__PURE__ */ J("div", {
|
|
6024
6027
|
role: k,
|
|
6025
6028
|
"aria-colindex": A,
|
|
6026
6029
|
tabIndex: j,
|
|
@@ -6046,15 +6049,15 @@ function As(t) {
|
|
|
6046
6049
|
"data-control-column": te,
|
|
6047
6050
|
onContextMenu: h,
|
|
6048
6051
|
className: ae,
|
|
6049
|
-
style:
|
|
6050
|
-
children:
|
|
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] =
|
|
6052
|
+
style: q,
|
|
6053
|
+
children: le
|
|
6054
|
+
}), 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] = q, n[53] = le, n[54] = k, n[55] = A, n[56] = j, n[57] = N, n[58] = ue) : ue = n[58], ue;
|
|
6052
6055
|
}
|
|
6053
|
-
function
|
|
6056
|
+
function Ms(t) {
|
|
6054
6057
|
let n = e(16), { enabled: r, menuContent: i, menuProps: a, onContextMenu: o, onClose: s, children: c } = t, l;
|
|
6055
6058
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { display: "contents" }, n[0] = l) : l = n[0];
|
|
6056
6059
|
let u = r ? o : void 0, d;
|
|
6057
|
-
n[1] !== c || n[2] !== u ? (d = /* @__PURE__ */
|
|
6060
|
+
n[1] !== c || n[2] !== u ? (d = /* @__PURE__ */ J("div", {
|
|
6058
6061
|
role: "rowgroup",
|
|
6059
6062
|
style: l,
|
|
6060
6063
|
onContextMenu: u,
|
|
@@ -6067,11 +6070,11 @@ function js(t) {
|
|
|
6067
6070
|
e || s();
|
|
6068
6071
|
}, n[4] = s, n[5] = m);
|
|
6069
6072
|
let h;
|
|
6070
|
-
n[6] === f ? h = n[7] : (h = /* @__PURE__ */
|
|
6073
|
+
n[6] === f ? h = n[7] : (h = /* @__PURE__ */ J(_.ContextMenu, { children: f }), n[6] = f, n[7] = h);
|
|
6071
6074
|
let g;
|
|
6072
|
-
n[8] === i ? g = n[9] : (g = /* @__PURE__ */
|
|
6075
|
+
n[8] === i ? g = n[9] : (g = /* @__PURE__ */ J(_.Dropdown, { children: i }), n[8] = i, n[9] = g);
|
|
6073
6076
|
let v;
|
|
6074
|
-
return n[10] !== a || n[11] !== p || n[12] !== m || n[13] !== h || n[14] !== g ? (v = /* @__PURE__ */
|
|
6077
|
+
return n[10] !== a || n[11] !== p || n[12] !== m || n[13] !== h || n[14] !== g ? (v = /* @__PURE__ */ Y(_, {
|
|
6075
6078
|
opened: p,
|
|
6076
6079
|
onChange: m,
|
|
6077
6080
|
position: "bottom-start",
|
|
@@ -6081,18 +6084,18 @@ function js(t) {
|
|
|
6081
6084
|
children: [h, g]
|
|
6082
6085
|
}), n[10] = a, n[11] = p, n[12] = m, n[13] = h, n[14] = g, n[15] = v) : v = n[15], v;
|
|
6083
6086
|
}
|
|
6084
|
-
function
|
|
6087
|
+
function Ns({ 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 }) {
|
|
6085
6088
|
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 } = $();
|
|
6086
6089
|
Ea(k.store);
|
|
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),
|
|
6090
|
+
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), se = o(() => new Set(te), [te]), K = o(() => new Set(ae), [ae]), ce = o(() => new Set(oe), [oe]), q = o(() => new Set(ne.map((e) => e.tempId)), [ne]), { loading: ue, noResultsLabel: de = I.noResults } = k.options.meta ?? {}, pe = s(null), X = Cn(k, N), me = N.matchHighlighting ? Cs(k) : null, Z = N.rowPinning ? xs(k, "top") : [], he = N.rowPinning ? xs(k, "bottom") : [], ge = Z.length + he.length, _e = null;
|
|
6088
6091
|
if (N.rowNumbers) {
|
|
6089
6092
|
_e = /* @__PURE__ */ new Map();
|
|
6090
6093
|
let e = wn(k, N) ? k.store.state.pagination.pageIndex * k.store.state.pagination.pageSize : 0;
|
|
6091
|
-
for (let t of
|
|
6094
|
+
for (let t of X) t.getIsGrouped() || _e.set(t.id, ++e);
|
|
6092
6095
|
}
|
|
6093
6096
|
let ve = (e) => z !== void 0 && !e.getIsGrouped() && e.getIsExpanded(), ye = s(null);
|
|
6094
6097
|
i(() => {
|
|
6095
|
-
let e =
|
|
6098
|
+
let e = pe.current;
|
|
6096
6099
|
if (e === null) return;
|
|
6097
6100
|
ye.current ??= new Set(k.getAllLeafColumns().filter((e) => e.columnDef.meta?.autoSize === !0).map((e) => e.id));
|
|
6098
6101
|
let t = ye.current;
|
|
@@ -6115,7 +6118,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6115
6118
|
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 = () => {
|
|
6116
6119
|
let i = 0;
|
|
6117
6120
|
for (let e of t) e.style.top = `${i}px`, i += e.offsetHeight;
|
|
6118
|
-
(re > 0 ||
|
|
6121
|
+
(re > 0 || Z.length > 0) && e.style.setProperty("--dg-header-height", `${i}px`), Ce.current?.style.setProperty("--dg-header-stack-height", `${i}px`);
|
|
6119
6122
|
let a = i;
|
|
6120
6123
|
for (let e of n) a += e.offsetHeight;
|
|
6121
6124
|
let o = a;
|
|
@@ -6132,11 +6135,11 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6132
6135
|
return () => a.disconnect();
|
|
6133
6136
|
}, [
|
|
6134
6137
|
re,
|
|
6135
|
-
|
|
6138
|
+
Z.length,
|
|
6136
6139
|
xe,
|
|
6137
6140
|
Se
|
|
6138
6141
|
]), i(() => {
|
|
6139
|
-
if (re === 0 ||
|
|
6142
|
+
if (re === 0 || Z.length === 0) return;
|
|
6140
6143
|
let e = be.current;
|
|
6141
6144
|
if (e === null) return;
|
|
6142
6145
|
let t = e.querySelector("[data-dg-entry-block]");
|
|
@@ -6147,20 +6150,20 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6147
6150
|
return r.observe(t), () => {
|
|
6148
6151
|
r.disconnect(), e.style.removeProperty("--dg-entry-height");
|
|
6149
6152
|
};
|
|
6150
|
-
}, [re,
|
|
6153
|
+
}, [re, Z.length]), i(() => {
|
|
6151
6154
|
if (!N.pagination) return;
|
|
6152
6155
|
let e = k.getPageCount();
|
|
6153
6156
|
e > 0 && k.store.state.pagination.pageIndex >= e && k.setPageIndex(e - 1);
|
|
6154
6157
|
});
|
|
6155
6158
|
let Ae = Ze({
|
|
6156
|
-
count:
|
|
6157
|
-
getScrollElement: () =>
|
|
6159
|
+
count: X.length,
|
|
6160
|
+
getScrollElement: () => pe.current,
|
|
6158
6161
|
estimateSize: (e) => {
|
|
6159
|
-
let t =
|
|
6162
|
+
let t = X[e];
|
|
6160
6163
|
return t === void 0 ? L : L + (ve(t) ? B : 0);
|
|
6161
6164
|
},
|
|
6162
6165
|
measureElement: (e, t, n) => e.getBoundingClientRect().height || n.options.estimateSize(n.indexFromElement(e)),
|
|
6163
|
-
getItemKey: n((e) =>
|
|
6166
|
+
getItemKey: n((e) => X[e]?.id ?? e, [X]),
|
|
6164
6167
|
overscan: V,
|
|
6165
6168
|
initialRect: {
|
|
6166
6169
|
height: 600,
|
|
@@ -6175,15 +6178,15 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6175
6178
|
}, [L, Ae]);
|
|
6176
6179
|
let Q = Ae.getVirtualItems(), Me = (Q[0]?.start ?? we) - we, Ne = Ae.getTotalSize() - ((Q.at(-1)?.end ?? we) - we);
|
|
6177
6180
|
i(() => (H.current = ({ rowId: e, align: t = "auto" }) => {
|
|
6178
|
-
if (
|
|
6179
|
-
let n =
|
|
6181
|
+
if (Z.some((t) => t.id === e) || he.some((t) => t.id === e)) return !0;
|
|
6182
|
+
let n = X.findIndex((t) => t.id === e);
|
|
6180
6183
|
return n < 0 ? !1 : (Ae.scrollToIndex(n, { align: t }), !0);
|
|
6181
6184
|
}, () => {
|
|
6182
6185
|
H.current = () => !1;
|
|
6183
6186
|
}));
|
|
6184
6187
|
let Pe = s(null), Ie = s(!1), Le = Q.at(-1)?.index ?? -1;
|
|
6185
6188
|
i(() => {
|
|
6186
|
-
w === void 0 ||
|
|
6189
|
+
w === void 0 || X.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 < X.length - 1 - T) && Pe.current !== X.length && (Pe.current = X.length, w()));
|
|
6187
6190
|
});
|
|
6188
6191
|
let Re = k.getStartVisibleLeafColumns(), ze = k.getEndVisibleLeafColumns(), Be = k.getCenterVisibleLeafColumns(), Ve = [
|
|
6189
6192
|
...Re,
|
|
@@ -6251,7 +6254,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6251
6254
|
});
|
|
6252
6255
|
return () => n.unsubscribe();
|
|
6253
6256
|
}, [k]);
|
|
6254
|
-
let rt =
|
|
6257
|
+
let rt = X.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;
|
|
6255
6258
|
a(() => {
|
|
6256
6259
|
if (!st) return;
|
|
6257
6260
|
let e = be.current;
|
|
@@ -6280,7 +6283,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6280
6283
|
let lt = N.rowClickSelects, ut = lt || N.highlightRow || e !== void 0, dt = (e) => !e.getIsGrouped() && ut, ft = (t, n) => {
|
|
6281
6284
|
if (lt && t.getCanSelect()) {
|
|
6282
6285
|
let e = En({
|
|
6283
|
-
rows:
|
|
6286
|
+
rows: X,
|
|
6284
6287
|
rowId: t.id,
|
|
6285
6288
|
anchorRowId: A.state.selectionAnchorRowId,
|
|
6286
6289
|
modifiers: n,
|
|
@@ -6295,7 +6298,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6295
6298
|
row: t,
|
|
6296
6299
|
column: e.column,
|
|
6297
6300
|
event: n
|
|
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 ?
|
|
6301
|
+
}), 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 ? X.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 = X[Q[0]?.index ?? -1], Dt = gt ? Tt && W !== null ? W : Et && Ve[0] ? {
|
|
6299
6302
|
rowId: Et.id,
|
|
6300
6303
|
columnId: Ve[0].id
|
|
6301
6304
|
} : null : null, Ot = () => {
|
|
@@ -6305,11 +6308,11 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6305
6308
|
}
|
|
6306
6309
|
if (Dt === null) return;
|
|
6307
6310
|
vt.current = !0, A.actions.setFocusedCell(Dt);
|
|
6308
|
-
let e =
|
|
6311
|
+
let e = pe.current;
|
|
6309
6312
|
e !== null && Es(e, Dt)?.focus({ preventScroll: !0 });
|
|
6310
6313
|
}, kt = (e, t, n) => e !== null && e.rowId === t && e.columnId === n, At = _s({
|
|
6311
6314
|
range: _t ? ee : null,
|
|
6312
|
-
rowIndexOf: (e) =>
|
|
6315
|
+
rowIndexOf: (e) => X.findIndex((t) => t.id === e),
|
|
6313
6316
|
columnIndexOf: (e) => Ve.findIndex((t) => t.id === e)
|
|
6314
6317
|
}), jt = (e, { extend: t }) => {
|
|
6315
6318
|
if (!_t) return;
|
|
@@ -6325,7 +6328,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6325
6328
|
right: wt
|
|
6326
6329
|
} : 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({
|
|
6327
6330
|
table: k,
|
|
6328
|
-
rows:
|
|
6331
|
+
rows: X,
|
|
6329
6332
|
bounds: Mt
|
|
6330
6333
|
}), Bt = async () => {
|
|
6331
6334
|
let e = zt();
|
|
@@ -6345,7 +6348,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6345
6348
|
includeHeaders: It
|
|
6346
6349
|
});
|
|
6347
6350
|
}, Gt = (e, { extend: t } = { extend: !1 }) => {
|
|
6348
|
-
let n =
|
|
6351
|
+
let n = X[e.rowIndex], r = Ve[e.columnIndex];
|
|
6349
6352
|
if (!n || !r) return;
|
|
6350
6353
|
let i = {
|
|
6351
6354
|
rowId: n.id,
|
|
@@ -6356,7 +6359,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6356
6359
|
let e = Kt.current;
|
|
6357
6360
|
return Kt.current = void 0, e;
|
|
6358
6361
|
}, Jt = (e) => {
|
|
6359
|
-
let t =
|
|
6362
|
+
let t = X.find((t) => t.id === e);
|
|
6360
6363
|
return t === void 0 ? null : [
|
|
6361
6364
|
...t.getStartVisibleCells(),
|
|
6362
6365
|
...t.getCenterVisibleCells(),
|
|
@@ -6369,7 +6372,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6369
6372
|
return;
|
|
6370
6373
|
}
|
|
6371
6374
|
if (Yt.current === G) return;
|
|
6372
|
-
let e =
|
|
6375
|
+
let e = pe.current;
|
|
6373
6376
|
if (e === null) return;
|
|
6374
6377
|
let t = G.columnId ?? Jt(G.rowId);
|
|
6375
6378
|
if (t === null) {
|
|
@@ -6380,7 +6383,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6380
6383
|
n !== null && (Yt.current = G, Ro(n));
|
|
6381
6384
|
});
|
|
6382
6385
|
let Xt = (e) => {
|
|
6383
|
-
let t =
|
|
6386
|
+
let t = pe.current;
|
|
6384
6387
|
t !== null && (vt.current = !0, Es(t, e)?.focus());
|
|
6385
6388
|
}, Zt = (e) => {
|
|
6386
6389
|
gt && A.actions.setFocusedCell(e), j.begin({
|
|
@@ -6393,13 +6396,13 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6393
6396
|
Xt(e);
|
|
6394
6397
|
return;
|
|
6395
6398
|
}
|
|
6396
|
-
let r =
|
|
6399
|
+
let r = X.findIndex((t) => t.id === e.rowId), i = Ve.findIndex((t) => t.id === e.columnId);
|
|
6397
6400
|
if (r < 0 || i < 0) {
|
|
6398
6401
|
Xt(e);
|
|
6399
6402
|
return;
|
|
6400
6403
|
}
|
|
6401
6404
|
if (n === "down") {
|
|
6402
|
-
r + 1 <
|
|
6405
|
+
r + 1 < X.length ? Gt({
|
|
6403
6406
|
rowIndex: r + 1,
|
|
6404
6407
|
columnIndex: i
|
|
6405
6408
|
}) : Xt(e);
|
|
@@ -6411,10 +6414,10 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6411
6414
|
columnIndex: i
|
|
6412
6415
|
},
|
|
6413
6416
|
direction: n,
|
|
6414
|
-
rowCount:
|
|
6417
|
+
rowCount: X.length,
|
|
6415
6418
|
columnCount: Ve.length,
|
|
6416
6419
|
isEditable: (e) => {
|
|
6417
|
-
let t =
|
|
6420
|
+
let t = X[e.rowIndex], n = Ve[e.columnIndex];
|
|
6418
6421
|
return t !== void 0 && n !== void 0 && j.canEditCell(t, n);
|
|
6419
6422
|
}
|
|
6420
6423
|
});
|
|
@@ -6422,7 +6425,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6422
6425
|
}, $t = (e, { extend: t }) => {
|
|
6423
6426
|
if (N.rowSelection && Tn(e).length > 0) {
|
|
6424
6427
|
let n = En({
|
|
6425
|
-
rows:
|
|
6428
|
+
rows: X,
|
|
6426
6429
|
rowId: e.id,
|
|
6427
6430
|
anchorRowId: A.state.selectionAnchorRowId,
|
|
6428
6431
|
modifiers: {
|
|
@@ -6448,13 +6451,13 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6448
6451
|
e.preventDefault(), o.focus(), bn(o) && o.select();
|
|
6449
6452
|
return;
|
|
6450
6453
|
}
|
|
6451
|
-
let s =
|
|
6454
|
+
let s = X.findIndex((e) => e.id === n.dataset.rowId), c = s + (e.shiftKey ? -1 : 1), l = s < 0 ? void 0 : X[c], u = e.shiftKey ? Ve[Ve.length - 1] : Ve[0];
|
|
6452
6455
|
if (l !== void 0 && u !== void 0) {
|
|
6453
6456
|
e.preventDefault(), Gt({
|
|
6454
6457
|
rowIndex: c,
|
|
6455
6458
|
columnIndex: e.shiftKey ? Ve.length - 1 : 0
|
|
6456
6459
|
});
|
|
6457
|
-
let n =
|
|
6460
|
+
let n = pe.current, r = n === null ? null : Es(n, {
|
|
6458
6461
|
rowId: l.id,
|
|
6459
6462
|
columnId: u.id
|
|
6460
6463
|
});
|
|
@@ -6475,14 +6478,14 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6475
6478
|
}
|
|
6476
6479
|
let { rowId: r, columnId: i } = t.dataset;
|
|
6477
6480
|
if (r === void 0 || i === void 0) return;
|
|
6478
|
-
let a =
|
|
6481
|
+
let a = X.findIndex((e) => e.id === r), o = Ve.findIndex((e) => e.id === i);
|
|
6479
6482
|
if (a < 0 || o < 0) return;
|
|
6480
6483
|
if ((e.ctrlKey || e.metaKey) && (e.key === "c" || e.key === "C")) {
|
|
6481
6484
|
if (Mt === null) return;
|
|
6482
6485
|
e.preventDefault(), Bt();
|
|
6483
6486
|
return;
|
|
6484
6487
|
}
|
|
6485
|
-
let s =
|
|
6488
|
+
let s = X[a], c = Ve[o];
|
|
6486
6489
|
if (N.editing && s !== void 0 && c !== void 0 && j.canEditCell(s, c)) {
|
|
6487
6490
|
if (e.key === "Enter" || e.key === "F2") {
|
|
6488
6491
|
e.preventDefault(), Zt({
|
|
@@ -6524,7 +6527,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6524
6527
|
}
|
|
6525
6528
|
if (e.key === " ") {
|
|
6526
6529
|
e.preventDefault();
|
|
6527
|
-
let t =
|
|
6530
|
+
let t = X[a];
|
|
6528
6531
|
t && $t(t, { extend: e.shiftKey });
|
|
6529
6532
|
return;
|
|
6530
6533
|
}
|
|
@@ -6535,15 +6538,15 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6535
6538
|
rowIndex: a,
|
|
6536
6539
|
columnIndex: o
|
|
6537
6540
|
},
|
|
6538
|
-
rowCount:
|
|
6541
|
+
rowCount: X.length,
|
|
6539
6542
|
columnCount: Ve.length,
|
|
6540
|
-
pageRows: Math.max(1, Math.floor((
|
|
6543
|
+
pageRows: Math.max(1, Math.floor((pe.current?.clientHeight ?? 0) / L) - 1)
|
|
6541
6544
|
});
|
|
6542
6545
|
l !== null && (e.preventDefault(), !(l.rowIndex === a && l.columnIndex === o) && Gt(l, { extend: e.shiftKey && _t }));
|
|
6543
6546
|
};
|
|
6544
6547
|
i(() => {
|
|
6545
6548
|
if (!gt) return;
|
|
6546
|
-
let e =
|
|
6549
|
+
let e = pe.current;
|
|
6547
6550
|
if (e === null) return;
|
|
6548
6551
|
if (W !== yt.current && (yt.current = W, Ct >= 0 && Ae.scrollToIndex(Ct, { align: "auto" })), W === null) {
|
|
6549
6552
|
vt.current = !1;
|
|
@@ -6562,7 +6565,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6562
6565
|
let [tn, nn] = c(null), rn = () => nn(null), an = s(null), on = s(null), sn = () => {
|
|
6563
6566
|
let e = an.current, t = on.current;
|
|
6564
6567
|
if (an.current = null, on.current = null, gt && e !== null && t !== null) {
|
|
6565
|
-
let n =
|
|
6568
|
+
let n = X.findIndex((t) => t.id === e), r = Ve.findIndex((e) => e.id === t);
|
|
6566
6569
|
n >= 0 && !vs(Mt, n, r) && (A.actions.setFocusedCell({
|
|
6567
6570
|
rowId: e,
|
|
6568
6571
|
columnId: t
|
|
@@ -6575,22 +6578,22 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6575
6578
|
rowId: e,
|
|
6576
6579
|
columnId: t
|
|
6577
6580
|
});
|
|
6578
|
-
}, cn = tn === null ? void 0 :
|
|
6579
|
-
/* @__PURE__ */
|
|
6580
|
-
/* @__PURE__ */
|
|
6581
|
+
}, cn = tn === null ? void 0 : X.find((e) => e.id === tn.rowId) ?? Z.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__ */ Y(fe, { children: [
|
|
6582
|
+
/* @__PURE__ */ J(_.Label, { children: I.cellCount(Nt) }),
|
|
6583
|
+
/* @__PURE__ */ J(_.Item, {
|
|
6581
6584
|
disabled: Pt === 0,
|
|
6582
6585
|
onClick: () => void Bt(),
|
|
6583
6586
|
children: I.copy
|
|
6584
6587
|
}),
|
|
6585
|
-
/* @__PURE__ */
|
|
6588
|
+
/* @__PURE__ */ J(_.Item, {
|
|
6586
6589
|
disabled: Pt === 0,
|
|
6587
6590
|
onClick: Wt,
|
|
6588
6591
|
children: I.exportCells
|
|
6589
6592
|
}),
|
|
6590
|
-
/* @__PURE__ */
|
|
6593
|
+
/* @__PURE__ */ J(_.Item, {
|
|
6591
6594
|
closeMenuOnClick: !1,
|
|
6592
6595
|
onClick: () => Lt((e) => !e),
|
|
6593
|
-
children: /* @__PURE__ */
|
|
6596
|
+
children: /* @__PURE__ */ J(p, {
|
|
6594
6597
|
size: "xs",
|
|
6595
6598
|
checked: It,
|
|
6596
6599
|
label: I.includeHeaders,
|
|
@@ -6606,9 +6609,9 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6606
6609
|
get internalItems() {
|
|
6607
6610
|
return dn = !0, un;
|
|
6608
6611
|
}
|
|
6609
|
-
}) ?? null : null, pn = dn ? fn : un === null && fn === null ? null : /* @__PURE__ */
|
|
6612
|
+
}) ?? null : null, pn = dn ? fn : un === null && fn === null ? null : /* @__PURE__ */ Y(fe, { children: [
|
|
6610
6613
|
un,
|
|
6611
|
-
un !== null && fn !== null && /* @__PURE__ */
|
|
6614
|
+
un !== null && fn !== null && /* @__PURE__ */ J(_.Divider, {}),
|
|
6612
6615
|
fn
|
|
6613
6616
|
] }), mn = s({
|
|
6614
6617
|
top: !0,
|
|
@@ -6625,54 +6628,54 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6625
6628
|
}, r = mn.current;
|
|
6626
6629
|
mn.current = n, n.top && !r.top && m?.(), n.bottom && !r.bottom && h?.(), n.left && !r.left && v?.(), n.right && !r.right && y?.();
|
|
6627
6630
|
} : void 0;
|
|
6628
|
-
return /* @__PURE__ */
|
|
6631
|
+
return /* @__PURE__ */ Y("div", {
|
|
6629
6632
|
ref: Ce,
|
|
6630
6633
|
className: Rt.tableWrapper,
|
|
6631
6634
|
"data-dg-filter-sidebar": P.surface === "sidebar" || void 0,
|
|
6632
6635
|
children: [
|
|
6633
|
-
/* @__PURE__ */
|
|
6634
|
-
ref:
|
|
6636
|
+
/* @__PURE__ */ J("div", {
|
|
6637
|
+
ref: pe,
|
|
6635
6638
|
className: Rt.scrollContainer,
|
|
6636
6639
|
"data-dg-scroll-container": !0,
|
|
6637
6640
|
onScroll: gn,
|
|
6638
|
-
children: /* @__PURE__ */
|
|
6641
|
+
children: /* @__PURE__ */ Y("div", {
|
|
6639
6642
|
ref: be,
|
|
6640
6643
|
role: gt ? "grid" : "table",
|
|
6641
6644
|
"aria-label": E,
|
|
6642
6645
|
"aria-labelledby": O,
|
|
6643
|
-
"aria-busy":
|
|
6646
|
+
"aria-busy": ue === !0 || void 0,
|
|
6644
6647
|
"aria-multiselectable": gt && N.rowSelection && N.multiRowSelection ? !0 : void 0,
|
|
6645
6648
|
onKeyDown: gt ? en : void 0,
|
|
6646
6649
|
"data-range-dragging": Vt || void 0,
|
|
6647
6650
|
className: Rt.grid,
|
|
6648
|
-
"aria-rowcount":
|
|
6651
|
+
"aria-rowcount": X.length + ge + ct + +!!st,
|
|
6649
6652
|
"aria-colcount": Ve.length,
|
|
6650
|
-
"data-dg-row-count":
|
|
6653
|
+
"data-dg-row-count": X.length + ge,
|
|
6651
6654
|
style: {
|
|
6652
6655
|
gridTemplateColumns: Je,
|
|
6653
6656
|
minWidth: Ye
|
|
6654
6657
|
},
|
|
6655
6658
|
children: [
|
|
6656
|
-
/* @__PURE__ */
|
|
6659
|
+
/* @__PURE__ */ Y("div", {
|
|
6657
6660
|
role: "rowgroup",
|
|
6658
6661
|
style: { display: "contents" },
|
|
6659
|
-
children: [Ge.map((e, t) => /* @__PURE__ */
|
|
6662
|
+
children: [Ge.map((e, t) => /* @__PURE__ */ J("div", {
|
|
6660
6663
|
role: "row",
|
|
6661
6664
|
"aria-rowindex": t + 1,
|
|
6662
6665
|
"data-dg-header-row": !0,
|
|
6663
6666
|
className: [Rt.headerRow, !xe && t === Ge.length - 1 ? Xa.headerBoundary : ""].filter(Boolean).join(" "),
|
|
6664
|
-
children: e.headers.map((e) => /* @__PURE__ */
|
|
6667
|
+
children: e.headers.map((e) => /* @__PURE__ */ J(Oo, {
|
|
6665
6668
|
renderColumnMenuItems: S,
|
|
6666
6669
|
header: e,
|
|
6667
6670
|
layout: tt(e.column.id)
|
|
6668
6671
|
}, e.id))
|
|
6669
|
-
}, e.id)), xe && /* @__PURE__ */
|
|
6672
|
+
}, e.id)), xe && /* @__PURE__ */ J(lo, {
|
|
6670
6673
|
leafHeaders: ot,
|
|
6671
6674
|
layoutFor: tt,
|
|
6672
6675
|
ariaRowIndex: ct
|
|
6673
6676
|
})]
|
|
6674
6677
|
}),
|
|
6675
|
-
gt && /* @__PURE__ */
|
|
6678
|
+
gt && /* @__PURE__ */ J("div", {
|
|
6676
6679
|
ref: bt,
|
|
6677
6680
|
tabIndex: Dt === null ? -1 : 0,
|
|
6678
6681
|
role: "presentation",
|
|
@@ -6681,12 +6684,12 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6681
6684
|
className: Rt.tabGuard,
|
|
6682
6685
|
onFocus: Ot
|
|
6683
6686
|
}),
|
|
6684
|
-
N.editing && re > 0 && /* @__PURE__ */
|
|
6687
|
+
N.editing && re > 0 && /* @__PURE__ */ J(os, {
|
|
6685
6688
|
orderedColumns: Ve,
|
|
6686
6689
|
layoutFor: tt,
|
|
6687
6690
|
rowHeight: L
|
|
6688
6691
|
}),
|
|
6689
|
-
/* @__PURE__ */
|
|
6692
|
+
/* @__PURE__ */ J(Ms, {
|
|
6690
6693
|
enabled: x !== void 0 || _t,
|
|
6691
6694
|
menuContent: pn,
|
|
6692
6695
|
menuProps: C,
|
|
@@ -6698,8 +6701,8 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6698
6701
|
...e.getStartVisibleCells(),
|
|
6699
6702
|
...e.getCenterVisibleCells(),
|
|
6700
6703
|
...e.getEndVisibleCells()
|
|
6701
|
-
], u = N.editMode === "row" &&
|
|
6702
|
-
return /* @__PURE__ */
|
|
6704
|
+
], u = N.editMode === "row" && se.has(e.id) && !ce.has(e.id) && !q.has(e.id), d = !o && !gt && (lt || N.highlightRow);
|
|
6705
|
+
return /* @__PURE__ */ Y("div", {
|
|
6703
6706
|
role: "row",
|
|
6704
6707
|
"aria-rowindex": i,
|
|
6705
6708
|
"data-dg-part": "row",
|
|
@@ -6713,9 +6716,9 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6713
6716
|
"data-selected-bg": N.rowSelection && N.showSelectedBackground && e.getIsSelected() || void 0,
|
|
6714
6717
|
"data-highlighted": N.highlightRow && e.id === U || void 0,
|
|
6715
6718
|
"data-deleted": ie.length > 0 && ie.includes(e.id) || void 0,
|
|
6716
|
-
"data-dirty":
|
|
6717
|
-
"data-draft":
|
|
6718
|
-
"data-new":
|
|
6719
|
+
"data-dirty": K.has(e.id) || void 0,
|
|
6720
|
+
"data-draft": ce.has(e.id) || q.has(e.id) || void 0,
|
|
6721
|
+
"data-new": q.has(e.id) || void 0,
|
|
6719
6722
|
"data-context-menu": pn !== null && tn?.rowId === e.id || void 0,
|
|
6720
6723
|
"data-selects-on-click": lt && !o || void 0,
|
|
6721
6724
|
"aria-selected": N.rowSelection ? e.getIsSelected() : void 0,
|
|
@@ -6746,13 +6749,13 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6746
6749
|
} : void 0,
|
|
6747
6750
|
children: [c.map((i, a) => {
|
|
6748
6751
|
let s = G !== null && G.rowId === e.id && G.columnId === i.column.id || u && j.canEditCell(e, i.column);
|
|
6749
|
-
return /* @__PURE__ */
|
|
6752
|
+
return /* @__PURE__ */ J(js, {
|
|
6750
6753
|
cell: i,
|
|
6751
6754
|
rowHeight: L,
|
|
6752
6755
|
layout: tt(i.column.id),
|
|
6753
6756
|
contentOverride: _e !== null && i.column.id === "__rowNumber__" ? _e.get(e.id) : void 0,
|
|
6754
|
-
highlightNeedles:
|
|
6755
|
-
editor: s ? /* @__PURE__ */
|
|
6757
|
+
highlightNeedles: me?.get(i.column.id),
|
|
6758
|
+
editor: s ? /* @__PURE__ */ J(es, {
|
|
6756
6759
|
cell: i,
|
|
6757
6760
|
row: e,
|
|
6758
6761
|
takeSeedText: qt,
|
|
@@ -6796,7 +6799,7 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6796
6799
|
on.current = i.column.id, !o && l?.(ht(i, e, t));
|
|
6797
6800
|
} : void 0
|
|
6798
6801
|
}, i.id);
|
|
6799
|
-
}), ve(e) && /* @__PURE__ */
|
|
6802
|
+
}), ve(e) && /* @__PURE__ */ J("div", {
|
|
6800
6803
|
role: "cell",
|
|
6801
6804
|
"aria-colspan": Ve.length,
|
|
6802
6805
|
"data-dg-part": "details",
|
|
@@ -6811,14 +6814,14 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6811
6814
|
})]
|
|
6812
6815
|
}, e.id);
|
|
6813
6816
|
};
|
|
6814
|
-
return /* @__PURE__ */
|
|
6815
|
-
|
|
6817
|
+
return /* @__PURE__ */ Y(fe, { children: [
|
|
6818
|
+
Z.length > 0 && /* @__PURE__ */ J("div", {
|
|
6816
6819
|
role: "presentation",
|
|
6817
6820
|
"data-dg-part": "pinned-top",
|
|
6818
6821
|
className: Rt.pinnedTopBlock,
|
|
6819
|
-
children:
|
|
6822
|
+
children: Z.map((t, n) => e(t, -1, ct + n + 1, "top"))
|
|
6820
6823
|
}),
|
|
6821
|
-
Me > 0 && /* @__PURE__ */
|
|
6824
|
+
Me > 0 && /* @__PURE__ */ J("div", {
|
|
6822
6825
|
"aria-hidden": !0,
|
|
6823
6826
|
style: {
|
|
6824
6827
|
gridColumn: "1/-1",
|
|
@@ -6826,46 +6829,46 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6826
6829
|
}
|
|
6827
6830
|
}),
|
|
6828
6831
|
Q.map((t) => {
|
|
6829
|
-
let n =
|
|
6830
|
-
return n ? e(n, t.index, t.index + ct +
|
|
6832
|
+
let n = X[t.index];
|
|
6833
|
+
return n ? e(n, t.index, t.index + ct + Z.length + 1) : null;
|
|
6831
6834
|
}),
|
|
6832
|
-
Ne > 0 && /* @__PURE__ */
|
|
6835
|
+
Ne > 0 && /* @__PURE__ */ J("div", {
|
|
6833
6836
|
"aria-hidden": !0,
|
|
6834
6837
|
style: {
|
|
6835
6838
|
gridColumn: "1/-1",
|
|
6836
6839
|
height: Ne
|
|
6837
6840
|
}
|
|
6838
6841
|
}),
|
|
6839
|
-
he.length > 0 && /* @__PURE__ */
|
|
6842
|
+
he.length > 0 && /* @__PURE__ */ J("div", {
|
|
6840
6843
|
role: "presentation",
|
|
6841
6844
|
"data-dg-part": "pinned-bottom",
|
|
6842
6845
|
className: Rt.pinnedBottomBlock,
|
|
6843
|
-
children: he.map((t, n) => e(t, -1, ct +
|
|
6846
|
+
children: he.map((t, n) => e(t, -1, ct + Z.length + X.length + n + 1, "bottom"))
|
|
6844
6847
|
})
|
|
6845
6848
|
] });
|
|
6846
6849
|
})()
|
|
6847
6850
|
}),
|
|
6848
|
-
rt &&
|
|
6851
|
+
rt && ue === !0 && /* @__PURE__ */ J("div", {
|
|
6849
6852
|
role: "row",
|
|
6850
6853
|
className: Rt.messageRow,
|
|
6851
|
-
children: /* @__PURE__ */
|
|
6854
|
+
children: /* @__PURE__ */ J(g, {
|
|
6852
6855
|
size: "lg",
|
|
6853
6856
|
"aria-label": I.loading
|
|
6854
6857
|
})
|
|
6855
6858
|
}),
|
|
6856
|
-
rt &&
|
|
6859
|
+
rt && ue !== !0 && re === 0 && /* @__PURE__ */ J("div", {
|
|
6857
6860
|
role: "row",
|
|
6858
6861
|
className: Rt.messageRow,
|
|
6859
|
-
children: b === void 0 ? at ? /* @__PURE__ */
|
|
6862
|
+
children: b === void 0 ? at ? /* @__PURE__ */ Y(fe, { children: [/* @__PURE__ */ J(le, {
|
|
6860
6863
|
size: 40,
|
|
6861
6864
|
stroke: 1.4,
|
|
6862
6865
|
opacity: .4
|
|
6863
|
-
}), /* @__PURE__ */
|
|
6866
|
+
}), /* @__PURE__ */ J(D, {
|
|
6864
6867
|
span: !0,
|
|
6865
6868
|
size: R,
|
|
6866
6869
|
c: "dimmed",
|
|
6867
|
-
children:
|
|
6868
|
-
})] }) : /* @__PURE__ */
|
|
6870
|
+
children: de
|
|
6871
|
+
})] }) : /* @__PURE__ */ J(D, {
|
|
6869
6872
|
span: !0,
|
|
6870
6873
|
size: R,
|
|
6871
6874
|
c: "dimmed",
|
|
@@ -6875,14 +6878,14 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6875
6878
|
table: k
|
|
6876
6879
|
})
|
|
6877
6880
|
}),
|
|
6878
|
-
st && /* @__PURE__ */
|
|
6881
|
+
st && /* @__PURE__ */ J("div", {
|
|
6879
6882
|
role: "row",
|
|
6880
|
-
"aria-rowindex":
|
|
6883
|
+
"aria-rowindex": X.length + ge + ct + 1,
|
|
6881
6884
|
"data-dg-part": "summary-row",
|
|
6882
6885
|
className: Rt.summaryRow,
|
|
6883
6886
|
children: ot.map((e) => {
|
|
6884
6887
|
let t = tt(e.column.id);
|
|
6885
|
-
return /* @__PURE__ */
|
|
6888
|
+
return /* @__PURE__ */ J("div", {
|
|
6886
6889
|
role: "cell",
|
|
6887
6890
|
"data-column-id": e.column.id,
|
|
6888
6891
|
"data-align": zn(e.column),
|
|
@@ -6899,14 +6902,14 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6899
6902
|
position: t.pinnedAt ? "sticky" : void 0,
|
|
6900
6903
|
zIndex: t.pinnedAt ? "var(--dg-z-summary-pinned-cell, 5)" : void 0
|
|
6901
6904
|
},
|
|
6902
|
-
children: /* @__PURE__ */
|
|
6905
|
+
children: /* @__PURE__ */ J("span", {
|
|
6903
6906
|
className: Rt.cellContent,
|
|
6904
6907
|
children: e.isPlaceholder ? null : Fe(e.column.columnDef.footer, e.getContext())
|
|
6905
6908
|
})
|
|
6906
6909
|
}, e.id);
|
|
6907
6910
|
})
|
|
6908
6911
|
}),
|
|
6909
|
-
gt && /* @__PURE__ */
|
|
6912
|
+
gt && /* @__PURE__ */ J("div", {
|
|
6910
6913
|
ref: xt,
|
|
6911
6914
|
tabIndex: Dt === null ? -1 : 0,
|
|
6912
6915
|
role: "presentation",
|
|
@@ -6918,29 +6921,29 @@ function Ms({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6918
6921
|
]
|
|
6919
6922
|
})
|
|
6920
6923
|
}),
|
|
6921
|
-
P.surface === "popup" && /* @__PURE__ */
|
|
6922
|
-
P.surface === "sidebar" && /* @__PURE__ */
|
|
6924
|
+
P.surface === "popup" && /* @__PURE__ */ J(to, {}),
|
|
6925
|
+
P.surface === "sidebar" && /* @__PURE__ */ J(ro, {})
|
|
6923
6926
|
]
|
|
6924
6927
|
});
|
|
6925
6928
|
}
|
|
6926
|
-
var
|
|
6929
|
+
var Ps = {
|
|
6927
6930
|
toolbar: "_toolbar_gwk05_1",
|
|
6928
6931
|
toolbarSpacer: "_toolbarSpacer_gwk05_15",
|
|
6929
6932
|
summaryCount: "_summaryCount_gwk05_19"
|
|
6930
6933
|
};
|
|
6931
6934
|
//#endregion
|
|
6932
6935
|
//#region src/components/TMDataGridToolbar.tsx
|
|
6933
|
-
function
|
|
6936
|
+
function Fs(t) {
|
|
6934
6937
|
let n = e(18), r, i, a, o, s;
|
|
6935
6938
|
n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({children: r, withBottomBorder: s, className: i, mod: a, ...o} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
6936
6939
|
let c = s !== void 0 && s, l;
|
|
6937
|
-
n[6] === i ? l = n[7] : (l = [
|
|
6940
|
+
n[6] === i ? l = n[7] : (l = [Ps.toolbar, i].filter(Boolean), n[6] = i, n[7] = l);
|
|
6938
6941
|
let u = l.join(" "), f;
|
|
6939
6942
|
n[8] === c ? f = n[9] : (f = { "with-bottom-border": c }, n[8] = c, n[9] = f);
|
|
6940
6943
|
let p;
|
|
6941
6944
|
n[10] !== a || n[11] !== f ? (p = [f, a], n[10] = a, n[11] = f, n[12] = p) : p = n[12];
|
|
6942
6945
|
let m;
|
|
6943
|
-
return n[13] !== r || n[14] !== o || n[15] !== u || n[16] !== p ? (m = /* @__PURE__ */
|
|
6946
|
+
return n[13] !== r || n[14] !== o || n[15] !== u || n[16] !== p ? (m = /* @__PURE__ */ J(d, {
|
|
6944
6947
|
"data-dg-part": "toolbar",
|
|
6945
6948
|
className: u,
|
|
6946
6949
|
mod: p,
|
|
@@ -6948,28 +6951,28 @@ function Ps(t) {
|
|
|
6948
6951
|
children: r
|
|
6949
6952
|
}), n[13] = r, n[14] = o, n[15] = u, n[16] = p, n[17] = m) : m = n[17], m;
|
|
6950
6953
|
}
|
|
6951
|
-
function
|
|
6954
|
+
function Is(t) {
|
|
6952
6955
|
let n = e(8), r, i;
|
|
6953
6956
|
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
6954
6957
|
let a;
|
|
6955
|
-
n[3] === r ? a = n[4] : (a = [
|
|
6958
|
+
n[3] === r ? a = n[4] : (a = [Ps.toolbarSpacer, r].filter(Boolean), n[3] = r, n[4] = a);
|
|
6956
6959
|
let o = a.join(" "), s;
|
|
6957
|
-
return n[5] !== i || n[6] !== o ? (s = /* @__PURE__ */
|
|
6960
|
+
return n[5] !== i || n[6] !== o ? (s = /* @__PURE__ */ J(d, {
|
|
6958
6961
|
className: o,
|
|
6959
6962
|
...i
|
|
6960
6963
|
}), n[5] = i, n[6] = o, n[7] = s) : s = n[7], s;
|
|
6961
6964
|
}
|
|
6962
|
-
function
|
|
6965
|
+
function Ls() {
|
|
6963
6966
|
let t = e(2), { table: n, labels: r } = $();
|
|
6964
6967
|
if (n.options.meta?.loading !== !0) return null;
|
|
6965
6968
|
let i;
|
|
6966
|
-
return t[0] === r.loading ? i = t[1] : (i = /* @__PURE__ */
|
|
6969
|
+
return t[0] === r.loading ? i = t[1] : (i = /* @__PURE__ */ J(g, {
|
|
6967
6970
|
size: "xs",
|
|
6968
6971
|
"data-dg-part": "loading",
|
|
6969
6972
|
"aria-label": r.loading
|
|
6970
6973
|
}), t[0] = r.loading, t[1] = i), i;
|
|
6971
6974
|
}
|
|
6972
|
-
function
|
|
6975
|
+
function Rs(t) {
|
|
6973
6976
|
let n = e(8), { children: r } = t, { table: i, controlSize: a } = $();
|
|
6974
6977
|
Ea(i.store);
|
|
6975
6978
|
let o = i.options.manualFiltering === !0 || i.options.manualPagination === !0, s;
|
|
@@ -6977,17 +6980,17 @@ function Ls(t) {
|
|
|
6977
6980
|
let c = s, l;
|
|
6978
6981
|
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];
|
|
6979
6982
|
let u = l, d = r === void 0 ? u === void 0 ? `${c}` : `${c} / ${u}` : r, f;
|
|
6980
|
-
return n[5] !== a || n[6] !== d ? (f = /* @__PURE__ */
|
|
6983
|
+
return n[5] !== a || n[6] !== d ? (f = /* @__PURE__ */ J(D, {
|
|
6981
6984
|
span: !0,
|
|
6982
6985
|
size: a,
|
|
6983
6986
|
c: "dimmed",
|
|
6984
|
-
className:
|
|
6987
|
+
className: Ps.summaryCount,
|
|
6985
6988
|
"data-dg-part": "summary-count",
|
|
6986
6989
|
children: d
|
|
6987
6990
|
}), n[5] = a, n[6] = d, n[7] = f) : f = n[7], f;
|
|
6988
6991
|
}
|
|
6989
|
-
function
|
|
6990
|
-
let t = e(16), n = $(), { table: r, ui: i, features: a, filters: o, labels: s, controlSize: c } = n, u = M(i,
|
|
6992
|
+
function zs() {
|
|
6993
|
+
let t = e(16), n = $(), { table: r, ui: i, features: a, filters: o, labels: s, controlSize: c } = n, u = M(i, Us), d = M(r.store, Hs), f = d.filter(Vs).length;
|
|
6991
6994
|
if (!li(r, a).canFilterAny || o.surface === "none") return null;
|
|
6992
6995
|
let p = u || f > 0 ? "light" : "subtle", m = f > 0 ? void 0 : "gray", h;
|
|
6993
6996
|
t[0] !== n || t[1] !== d.length || t[2] !== u || t[3] !== r || t[4] !== i.actions ? (h = () => {
|
|
@@ -6995,16 +6998,16 @@ function Rs() {
|
|
|
6995
6998
|
i.actions.closeFilterPanel();
|
|
6996
6999
|
return;
|
|
6997
7000
|
}
|
|
6998
|
-
let e = d.length === 0 ? r.getAllLeafColumns().find(
|
|
7001
|
+
let e = d.length === 0 ? r.getAllLeafColumns().find(Bs) : void 0;
|
|
6999
7002
|
e && ya(n, e.id), i.actions.openFilterPanel(e?.id ?? null);
|
|
7000
7003
|
}, t[0] = n, t[1] = d.length, t[2] = u, t[3] = r, t[4] = i.actions, t[5] = h) : h = t[5];
|
|
7001
7004
|
let g;
|
|
7002
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */
|
|
7005
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ J(ne, {
|
|
7003
7006
|
size: 16,
|
|
7004
7007
|
stroke: 1.6
|
|
7005
7008
|
}), t[6] = g) : g = t[6];
|
|
7006
7009
|
let _;
|
|
7007
|
-
t[7] !== c || t[8] !== s.filters || t[9] !== p || t[10] !== m || t[11] !== h ? (_ = /* @__PURE__ */
|
|
7010
|
+
t[7] !== c || t[8] !== s.filters || t[9] !== p || t[10] !== m || t[11] !== h ? (_ = /* @__PURE__ */ J(l, {
|
|
7008
7011
|
variant: p,
|
|
7009
7012
|
color: m,
|
|
7010
7013
|
size: c,
|
|
@@ -7014,25 +7017,25 @@ function Rs() {
|
|
|
7014
7017
|
children: g
|
|
7015
7018
|
}), t[7] = c, t[8] = s.filters, t[9] = p, t[10] = m, t[11] = h, t[12] = _) : _ = t[12];
|
|
7016
7019
|
let v;
|
|
7017
|
-
return t[13] !== s.filters || t[14] !== _ ? (v = /* @__PURE__ */
|
|
7020
|
+
return t[13] !== s.filters || t[14] !== _ ? (v = /* @__PURE__ */ J(k, {
|
|
7018
7021
|
label: s.filters,
|
|
7019
7022
|
openDelay: 400,
|
|
7020
7023
|
children: _
|
|
7021
7024
|
}), t[13] = s.filters, t[14] = _, t[15] = v) : v = t[15], v;
|
|
7022
7025
|
}
|
|
7023
|
-
function
|
|
7026
|
+
function Bs(e) {
|
|
7024
7027
|
return e.getCanFilter();
|
|
7025
7028
|
}
|
|
7026
|
-
function
|
|
7029
|
+
function Vs(e) {
|
|
7027
7030
|
return St(e.value);
|
|
7028
7031
|
}
|
|
7029
|
-
function
|
|
7032
|
+
function Hs(e) {
|
|
7030
7033
|
return e.columnFilters;
|
|
7031
7034
|
}
|
|
7032
|
-
function
|
|
7035
|
+
function Us(e) {
|
|
7033
7036
|
return e.filterPanelOpen;
|
|
7034
7037
|
}
|
|
7035
|
-
var
|
|
7038
|
+
var Ws = {
|
|
7036
7039
|
title: "_title_199r2_1",
|
|
7037
7040
|
list: "_list_199r2_5",
|
|
7038
7041
|
listHeader: "_listHeader_199r2_13",
|
|
@@ -7048,22 +7051,22 @@ var Us = {
|
|
|
7048
7051
|
};
|
|
7049
7052
|
//#endregion
|
|
7050
7053
|
//#region src/components/TMDataGridExportPicker.tsx
|
|
7051
|
-
function
|
|
7052
|
-
let t = e(26), { ui: n, labels: r, size: i, controlSize: a, exportOptions: o } = $(), s = M(n,
|
|
7054
|
+
function Gs() {
|
|
7055
|
+
let t = e(26), { ui: n, labels: r, size: i, controlSize: a, exportOptions: o } = $(), s = M(n, Ks), c, l, u, d;
|
|
7053
7056
|
if (t[0] !== o || t[1] !== r || t[2] !== s || t[3] !== n.actions) {
|
|
7054
7057
|
let e = s ? Ki(o, s.options).format : null;
|
|
7055
7058
|
c = v, l = s !== null, t[8] === n.actions ? u = t[9] : (u = () => n.actions.closeExportPicker(), t[8] = n.actions, t[9] = u), d = e && r.exportPickerTitle(e.extension.toUpperCase()), t[0] = o, t[1] = r, t[2] = s, t[3] = n.actions, t[4] = c, t[5] = l, t[6] = u, t[7] = d;
|
|
7056
7059
|
} else c = t[4], l = t[5], u = t[6], d = t[7];
|
|
7057
|
-
let f =
|
|
7060
|
+
let f = qs[i], p = Js[a], m;
|
|
7058
7061
|
t[10] === p ? m = t[11] : (m = { size: p }, t[10] = p, t[11] = m);
|
|
7059
7062
|
let h;
|
|
7060
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = { title:
|
|
7063
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = { title: Ws.title }, t[12] = h) : h = t[12];
|
|
7061
7064
|
let g = `var(--mantine-font-size-${a})`, _;
|
|
7062
7065
|
t[13] === g ? _ = t[14] : (_ = { title: { fontSize: g } }, t[13] = g, t[14] = _);
|
|
7063
7066
|
let y;
|
|
7064
|
-
t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */
|
|
7067
|
+
t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */ J(Ys, { request: s }), t[15] = s, t[16] = y);
|
|
7065
7068
|
let b;
|
|
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__ */
|
|
7069
|
+
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__ */ J(c, {
|
|
7067
7070
|
opened: l,
|
|
7068
7071
|
onClose: u,
|
|
7069
7072
|
title: d,
|
|
@@ -7074,25 +7077,25 @@ function Ws() {
|
|
|
7074
7077
|
children: y
|
|
7075
7078
|
}), t[17] = c, t[18] = l, t[19] = u, t[20] = d, t[21] = f, t[22] = m, t[23] = _, t[24] = y, t[25] = b) : b = t[25], b;
|
|
7076
7079
|
}
|
|
7077
|
-
function
|
|
7080
|
+
function Ks(e) {
|
|
7078
7081
|
return e.exportPicker;
|
|
7079
7082
|
}
|
|
7080
|
-
var
|
|
7083
|
+
var qs = {
|
|
7081
7084
|
xs: "xs",
|
|
7082
7085
|
sm: "xs",
|
|
7083
7086
|
md: "sm",
|
|
7084
7087
|
lg: "sm",
|
|
7085
7088
|
xl: "md"
|
|
7086
|
-
},
|
|
7089
|
+
}, Js = {
|
|
7087
7090
|
xs: "sm",
|
|
7088
7091
|
sm: "md",
|
|
7089
7092
|
md: "lg"
|
|
7090
7093
|
};
|
|
7091
|
-
function
|
|
7094
|
+
function Ys(t) {
|
|
7092
7095
|
let n = e(95), { request: r } = t, { table: i, ui: a, labels: o, controlSize: s } = $(), { exportAll: l, exportSelected: u } = Ia(r.options), d;
|
|
7093
7096
|
n[0] === i ? d = n[1] : (d = Ji(i), n[0] = i, n[1] = d);
|
|
7094
7097
|
let h = d, [g, _] = c(""), v;
|
|
7095
|
-
n[2] === h ? v = n[3] : (v = () => new Set(h.filter(
|
|
7098
|
+
n[2] === h ? v = n[3] : (v = () => new Set(h.filter(Qs).map(Zs)), n[2] = h, n[3] = v);
|
|
7096
7099
|
let [y, b] = c(v), x;
|
|
7097
7100
|
n[4] === h.length ? x = n[5] : (x = Un("auto", h.length), n[4] = h.length, n[5] = x);
|
|
7098
7101
|
let S = x, w;
|
|
@@ -7118,24 +7121,24 @@ function Js(t) {
|
|
|
7118
7121
|
}), n[15] = T, n[16] = F);
|
|
7119
7122
|
let I = F, L;
|
|
7120
7123
|
n[17] !== y || n[18] !== h || n[19] !== l || n[20] !== u || n[21] !== r.rows || n[22] !== a.actions ? (L = async () => {
|
|
7121
|
-
let e = h.filter((e) => y.has(e.id)).map(
|
|
7124
|
+
let e = h.filter((e) => y.has(e.id)).map(Xs);
|
|
7122
7125
|
await (r.rows === "selected" ? u : l)({ columns: e }), a.actions.closeExportPicker();
|
|
7123
7126
|
}, n[17] = y, n[18] = h, n[19] = l, n[20] = u, n[21] = r.rows, n[22] = a.actions, n[23] = L) : L = n[23];
|
|
7124
7127
|
let R = L, z;
|
|
7125
7128
|
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];
|
|
7126
7129
|
let B = z, V;
|
|
7127
|
-
n[28] !== s || n[29] !== B ? (V = /* @__PURE__ */
|
|
7130
|
+
n[28] !== s || n[29] !== B ? (V = /* @__PURE__ */ J(D, {
|
|
7128
7131
|
size: s,
|
|
7129
7132
|
c: "dimmed",
|
|
7130
7133
|
"data-dg-part": "export-picker-hint",
|
|
7131
7134
|
children: B
|
|
7132
7135
|
}), n[28] = s, n[29] = B, n[30] = V) : V = n[30];
|
|
7133
7136
|
let H;
|
|
7134
|
-
n[31] !== s || n[32] !== o.columnsSearchPlaceholder || n[33] !== g || n[34] !== S ? (H = S && /* @__PURE__ */
|
|
7137
|
+
n[31] !== s || n[32] !== o.columnsSearchPlaceholder || n[33] !== g || n[34] !== S ? (H = S && /* @__PURE__ */ J(O, {
|
|
7135
7138
|
value: g,
|
|
7136
7139
|
onChange: (e) => _(e.currentTarget.value),
|
|
7137
7140
|
placeholder: o.columnsSearchPlaceholder,
|
|
7138
|
-
leftSection: /* @__PURE__ */
|
|
7141
|
+
leftSection: /* @__PURE__ */ J(le, {
|
|
7139
7142
|
size: 16,
|
|
7140
7143
|
stroke: 1.6
|
|
7141
7144
|
}),
|
|
@@ -7146,9 +7149,9 @@ function Js(t) {
|
|
|
7146
7149
|
let U;
|
|
7147
7150
|
n[36] === I ? U = n[37] : (U = (e) => I(e.currentTarget.checked), n[36] = I, n[37] = U);
|
|
7148
7151
|
let W;
|
|
7149
|
-
n[38] === Symbol.for("react.memo_cache_sentinel") ? (W = { label:
|
|
7152
|
+
n[38] === Symbol.for("react.memo_cache_sentinel") ? (W = { label: Ws.headerLabel }, n[38] = W) : W = n[38];
|
|
7150
7153
|
let ee;
|
|
7151
|
-
n[39] !== j || n[40] !== s || n[41] !== o.exportPickerSelectAll || n[42] !== M || n[43] !== U ? (ee = /* @__PURE__ */
|
|
7154
|
+
n[39] !== j || n[40] !== s || n[41] !== o.exportPickerSelectAll || n[42] !== M || n[43] !== U ? (ee = /* @__PURE__ */ J(p, {
|
|
7152
7155
|
size: s,
|
|
7153
7156
|
label: o.exportPickerSelectAll,
|
|
7154
7157
|
checked: j,
|
|
@@ -7160,118 +7163,118 @@ function Js(t) {
|
|
|
7160
7163
|
let G;
|
|
7161
7164
|
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];
|
|
7162
7165
|
let te;
|
|
7163
|
-
n[49] === G ? te = n[50] : (te = /* @__PURE__ */
|
|
7166
|
+
n[49] === G ? te = n[50] : (te = /* @__PURE__ */ J(D, {
|
|
7164
7167
|
size: "xs",
|
|
7165
7168
|
c: "dimmed",
|
|
7166
7169
|
"data-dg-part": "export-picker-count",
|
|
7167
7170
|
children: G
|
|
7168
7171
|
}), n[49] = G, n[50] = te);
|
|
7169
7172
|
let ne;
|
|
7170
|
-
n[51] !== ee || n[52] !== te ? (ne = /* @__PURE__ */
|
|
7171
|
-
className:
|
|
7173
|
+
n[51] !== ee || n[52] !== te ? (ne = /* @__PURE__ */ Y("div", {
|
|
7174
|
+
className: Ws.listHeader,
|
|
7172
7175
|
children: [ee, te]
|
|
7173
7176
|
}), n[51] = ee, n[52] = te, n[53] = ne) : ne = n[53];
|
|
7174
7177
|
let re;
|
|
7175
7178
|
if (n[54] !== y || n[55] !== s || n[56] !== o.exportPickerHidden || n[57] !== T) {
|
|
7176
7179
|
let e;
|
|
7177
|
-
n[59] !== y || n[60] !== s || n[61] !== o.exportPickerHidden ? (e = (e) => /* @__PURE__ */
|
|
7180
|
+
n[59] !== y || n[60] !== s || n[61] !== o.exportPickerHidden ? (e = (e) => /* @__PURE__ */ J(p, {
|
|
7178
7181
|
size: s,
|
|
7179
|
-
label: /* @__PURE__ */
|
|
7180
|
-
className:
|
|
7182
|
+
label: /* @__PURE__ */ Y(fe, { children: [/* @__PURE__ */ J("span", {
|
|
7183
|
+
className: Ws.rowText,
|
|
7181
7184
|
children: Mn(e)
|
|
7182
|
-
}), !e.getIsVisible() && /* @__PURE__ */
|
|
7183
|
-
className:
|
|
7185
|
+
}), !e.getIsVisible() && /* @__PURE__ */ J("span", {
|
|
7186
|
+
className: Ws.rowHint,
|
|
7184
7187
|
children: o.exportPickerHidden
|
|
7185
7188
|
})] }),
|
|
7186
7189
|
checked: y.has(e.id),
|
|
7187
7190
|
onChange: (t) => P(e.id, t.currentTarget.checked),
|
|
7188
7191
|
classNames: {
|
|
7189
|
-
root:
|
|
7190
|
-
body:
|
|
7191
|
-
labelWrapper:
|
|
7192
|
-
label:
|
|
7192
|
+
root: Ws.row,
|
|
7193
|
+
body: Ws.rowBody,
|
|
7194
|
+
labelWrapper: Ws.rowLabelWrapper,
|
|
7195
|
+
label: Ws.rowLabel
|
|
7193
7196
|
},
|
|
7194
7197
|
"data-dg-part": "export-column",
|
|
7195
7198
|
"data-column-id": e.id
|
|
7196
7199
|
}, 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;
|
|
7197
7200
|
} else re = n[58];
|
|
7198
7201
|
let ie;
|
|
7199
|
-
n[63] !== s || n[64] !== o || n[65] !== T.length || n[66] !== g ? (ie = T.length === 0 && /* @__PURE__ */
|
|
7202
|
+
n[63] !== s || n[64] !== o || n[65] !== T.length || n[66] !== g ? (ie = T.length === 0 && /* @__PURE__ */ J(D, {
|
|
7200
7203
|
size: s,
|
|
7201
7204
|
c: "dimmed",
|
|
7202
|
-
className:
|
|
7205
|
+
className: Ws.empty,
|
|
7203
7206
|
children: o.columnsNoMatch(g)
|
|
7204
7207
|
}), n[63] = s, n[64] = o, n[65] = T.length, n[66] = g, n[67] = ie) : ie = n[67];
|
|
7205
7208
|
let ae;
|
|
7206
|
-
n[68] !== re || n[69] !== ie ? (ae = /* @__PURE__ */
|
|
7209
|
+
n[68] !== re || n[69] !== ie ? (ae = /* @__PURE__ */ J(C.Autosize, {
|
|
7207
7210
|
mah: "50vh",
|
|
7208
7211
|
type: "auto",
|
|
7209
|
-
children: /* @__PURE__ */
|
|
7210
|
-
className:
|
|
7212
|
+
children: /* @__PURE__ */ Y("div", {
|
|
7213
|
+
className: Ws.rows,
|
|
7211
7214
|
children: [re, ie]
|
|
7212
7215
|
})
|
|
7213
7216
|
}), n[68] = re, n[69] = ie, n[70] = ae) : ae = n[70];
|
|
7214
7217
|
let oe;
|
|
7215
|
-
n[71] !== ne || n[72] !== ae ? (oe = /* @__PURE__ */
|
|
7216
|
-
className:
|
|
7218
|
+
n[71] !== ne || n[72] !== ae ? (oe = /* @__PURE__ */ Y("div", {
|
|
7219
|
+
className: Ws.list,
|
|
7217
7220
|
children: [ne, ae]
|
|
7218
7221
|
}), n[71] = ne, n[72] = ae, n[73] = oe) : oe = n[73];
|
|
7222
|
+
let se;
|
|
7223
|
+
n[74] === a.actions ? se = n[75] : (se = () => a.actions.closeExportPicker(), n[74] = a.actions, n[75] = se);
|
|
7219
7224
|
let K;
|
|
7220
|
-
n[
|
|
7221
|
-
let q;
|
|
7222
|
-
n[76] !== s || n[77] !== o.exportPickerCancel || n[78] !== K ? (q = /* @__PURE__ */ Y(f, {
|
|
7225
|
+
n[76] !== s || n[77] !== o.exportPickerCancel || n[78] !== se ? (K = /* @__PURE__ */ J(f, {
|
|
7223
7226
|
variant: "default",
|
|
7224
7227
|
size: s,
|
|
7225
|
-
onClick:
|
|
7228
|
+
onClick: se,
|
|
7226
7229
|
"data-dg-part": "export-picker-cancel",
|
|
7227
7230
|
children: o.exportPickerCancel
|
|
7228
|
-
}), n[76] = s, n[77] = o.exportPickerCancel, n[78] =
|
|
7229
|
-
let
|
|
7230
|
-
n[80] === R ?
|
|
7231
|
-
let
|
|
7232
|
-
n[82] !== s || n[83] !== o.exportPickerConfirm || n[84] !==
|
|
7231
|
+
}), n[76] = s, n[77] = o.exportPickerCancel, n[78] = se, n[79] = K) : K = n[79];
|
|
7232
|
+
let ce = y.size === 0, q;
|
|
7233
|
+
n[80] === R ? q = n[81] : (q = () => void R(), n[80] = R, n[81] = q);
|
|
7234
|
+
let ue;
|
|
7235
|
+
n[82] !== s || n[83] !== o.exportPickerConfirm || n[84] !== ce || n[85] !== q ? (ue = /* @__PURE__ */ J(f, {
|
|
7233
7236
|
size: s,
|
|
7234
|
-
disabled:
|
|
7235
|
-
onClick:
|
|
7237
|
+
disabled: ce,
|
|
7238
|
+
onClick: q,
|
|
7236
7239
|
"data-dg-part": "export-picker-confirm",
|
|
7237
7240
|
children: o.exportPickerConfirm
|
|
7238
|
-
}), n[82] = s, n[83] = o.exportPickerConfirm, n[84] =
|
|
7239
|
-
let
|
|
7240
|
-
n[87] !==
|
|
7241
|
+
}), n[82] = s, n[83] = o.exportPickerConfirm, n[84] = ce, n[85] = q, n[86] = ue) : ue = n[86];
|
|
7242
|
+
let de;
|
|
7243
|
+
n[87] !== K || n[88] !== ue ? (de = /* @__PURE__ */ Y(m, {
|
|
7241
7244
|
justify: "flex-end",
|
|
7242
7245
|
gap: "xs",
|
|
7243
|
-
children: [
|
|
7244
|
-
}), n[87] =
|
|
7245
|
-
let
|
|
7246
|
-
return n[90] !== V || n[91] !== H || n[92] !== oe || n[93] !==
|
|
7246
|
+
children: [K, ue]
|
|
7247
|
+
}), n[87] = K, n[88] = ue, n[89] = de) : de = n[89];
|
|
7248
|
+
let pe;
|
|
7249
|
+
return n[90] !== V || n[91] !== H || n[92] !== oe || n[93] !== de ? (pe = /* @__PURE__ */ Y(E, {
|
|
7247
7250
|
gap: "sm",
|
|
7248
7251
|
"data-dg-part": "export-picker",
|
|
7249
7252
|
children: [
|
|
7250
7253
|
V,
|
|
7251
7254
|
H,
|
|
7252
7255
|
oe,
|
|
7253
|
-
|
|
7256
|
+
de
|
|
7254
7257
|
]
|
|
7255
|
-
}), n[90] = V, n[91] = H, n[92] = oe, n[93] =
|
|
7256
|
-
}
|
|
7257
|
-
function Ys(e) {
|
|
7258
|
-
return e.id;
|
|
7258
|
+
}), n[90] = V, n[91] = H, n[92] = oe, n[93] = de, n[94] = pe) : pe = n[94], pe;
|
|
7259
7259
|
}
|
|
7260
7260
|
function Xs(e) {
|
|
7261
7261
|
return e.id;
|
|
7262
7262
|
}
|
|
7263
7263
|
function Zs(e) {
|
|
7264
|
+
return e.id;
|
|
7265
|
+
}
|
|
7266
|
+
function Qs(e) {
|
|
7264
7267
|
return e.getIsVisible();
|
|
7265
7268
|
}
|
|
7266
7269
|
//#endregion
|
|
7267
7270
|
//#region src/core/sizes.ts
|
|
7268
|
-
var
|
|
7271
|
+
var $s = "md", ec = {
|
|
7269
7272
|
xs: 34,
|
|
7270
7273
|
sm: 42,
|
|
7271
7274
|
md: 52,
|
|
7272
7275
|
lg: 62,
|
|
7273
7276
|
xl: 72
|
|
7274
|
-
},
|
|
7277
|
+
}, tc = {
|
|
7275
7278
|
xs: "xs",
|
|
7276
7279
|
sm: "xs",
|
|
7277
7280
|
md: "sm",
|
|
@@ -7280,8 +7283,8 @@ var Qs = "md", $s = {
|
|
|
7280
7283
|
};
|
|
7281
7284
|
//#endregion
|
|
7282
7285
|
//#region src/components/TMDataGrid.tsx
|
|
7283
|
-
function
|
|
7284
|
-
let n = e(30), { table: r, ui: i, edit: a, features: o, filters: s, exportOptions: c, labels: l, renderDetails: u, renderDetailsEstHeight: d, overscan: f, resetSettings: p, scrollToRow: m, scrollerRef: h, size: g, children: _, className: v, style: y, id: b, "data-testid": x } = t, S = g === void 0 ? "md" : g, C = r.options.meta?.rowHeight ??
|
|
7286
|
+
function nc(t) {
|
|
7287
|
+
let n = e(30), { table: r, ui: i, edit: a, features: o, filters: s, exportOptions: c, labels: l, renderDetails: u, renderDetailsEstHeight: d, overscan: f, resetSettings: p, scrollToRow: m, scrollerRef: h, size: g, children: _, className: v, style: y, id: b, "data-testid": x } = t, S = g === void 0 ? "md" : g, C = r.options.meta?.rowHeight ?? ec[S], w = tc[S], T;
|
|
7285
7288
|
n[0] !== a || n[1] !== c || n[2] !== o || n[3] !== s || n[4] !== l || n[5] !== f || n[6] !== u || n[7] !== d || n[8] !== p || n[9] !== C || n[10] !== m || n[11] !== h || n[12] !== S || n[13] !== w || n[14] !== r || n[15] !== i ? (T = {
|
|
7286
7289
|
table: r,
|
|
7287
7290
|
ui: i,
|
|
@@ -7303,7 +7306,7 @@ function tc(t) {
|
|
|
7303
7306
|
let E = T, D;
|
|
7304
7307
|
n[17] === v ? D = n[18] : (D = [Qe.root, v].filter(Boolean), n[17] = v, n[18] = D);
|
|
7305
7308
|
let O = D.join(" "), k;
|
|
7306
|
-
n[19] !== _ || n[20] !== b || n[21] !== S || n[22] !== y || n[23] !== O || n[24] !== x ? (k = /* @__PURE__ */
|
|
7309
|
+
n[19] !== _ || n[20] !== b || n[21] !== S || n[22] !== y || n[23] !== O || n[24] !== x ? (k = /* @__PURE__ */ J("div", {
|
|
7307
7310
|
id: b,
|
|
7308
7311
|
"data-testid": x,
|
|
7309
7312
|
"data-dg-root": !0,
|
|
@@ -7313,23 +7316,23 @@ function tc(t) {
|
|
|
7313
7316
|
children: _
|
|
7314
7317
|
}), n[19] = _, n[20] = b, n[21] = S, n[22] = y, n[23] = O, n[24] = x, n[25] = k) : k = n[25];
|
|
7315
7318
|
let A;
|
|
7316
|
-
n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */
|
|
7319
|
+
n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ J(Gs, {}), n[26] = A) : A = n[26];
|
|
7317
7320
|
let j;
|
|
7318
|
-
return n[27] !== E || n[28] !== k ? (j = /* @__PURE__ */
|
|
7321
|
+
return n[27] !== E || n[28] !== k ? (j = /* @__PURE__ */ Y(tt, {
|
|
7319
7322
|
value: E,
|
|
7320
7323
|
children: [k, A]
|
|
7321
7324
|
}), n[27] = E, n[28] = k, n[29] = j) : j = n[29], j;
|
|
7322
7325
|
}
|
|
7323
|
-
var
|
|
7324
|
-
Toolbar:
|
|
7325
|
-
Spacer:
|
|
7326
|
-
SummaryCount:
|
|
7327
|
-
LoadingIndicator:
|
|
7326
|
+
var rc = Object.assign(nc, {
|
|
7327
|
+
Toolbar: Fs,
|
|
7328
|
+
Spacer: Is,
|
|
7329
|
+
SummaryCount: Rs,
|
|
7330
|
+
LoadingIndicator: Ls,
|
|
7328
7331
|
Search: Ja,
|
|
7329
7332
|
DraftActions: ar,
|
|
7330
7333
|
Menu: qa,
|
|
7331
|
-
FilterButton:
|
|
7332
|
-
Table:
|
|
7334
|
+
FilterButton: zs,
|
|
7335
|
+
Table: Ns,
|
|
7333
7336
|
Footer: Fa,
|
|
7334
7337
|
FilterPanel: Sr,
|
|
7335
7338
|
FilterPills: xa,
|
|
@@ -7337,11 +7340,11 @@ var nc = Object.assign(tc, {
|
|
|
7337
7340
|
});
|
|
7338
7341
|
//#endregion
|
|
7339
7342
|
//#region src/components/filters/DgRangeSliderFilter.tsx
|
|
7340
|
-
function
|
|
7343
|
+
function ic(t) {
|
|
7341
7344
|
let n = e(26), { column: r, operator: i, value: a, onChange: o, size: s, labels: c } = t;
|
|
7342
7345
|
if (!vt(i)) {
|
|
7343
7346
|
let e;
|
|
7344
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7347
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ J(hr, { ...t }), n[0] = t, n[1] = e), e;
|
|
7345
7348
|
}
|
|
7346
7349
|
let l;
|
|
7347
7350
|
if (n[2] !== r) {
|
|
@@ -7367,7 +7370,7 @@ function rc(t) {
|
|
|
7367
7370
|
return o([String(t), String(n)]);
|
|
7368
7371
|
}, n[12] = o, n[13] = x);
|
|
7369
7372
|
let C;
|
|
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__ */
|
|
7373
|
+
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__ */ J(S, {
|
|
7371
7374
|
size: s,
|
|
7372
7375
|
mt: 6,
|
|
7373
7376
|
min: u,
|
|
@@ -7379,7 +7382,7 @@ function rc(t) {
|
|
|
7379
7382
|
onChange: x
|
|
7380
7383
|
}), 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];
|
|
7381
7384
|
let w;
|
|
7382
|
-
return n[22] !== s || n[23] !== _ || n[24] !== C ? (w = /* @__PURE__ */
|
|
7385
|
+
return n[22] !== s || n[23] !== _ || n[24] !== C ? (w = /* @__PURE__ */ J(h.Wrapper, {
|
|
7383
7386
|
..._,
|
|
7384
7387
|
size: s,
|
|
7385
7388
|
children: C
|
|
@@ -7387,11 +7390,11 @@ function rc(t) {
|
|
|
7387
7390
|
}
|
|
7388
7391
|
//#endregion
|
|
7389
7392
|
//#region src/components/filters/DgDateRangeFilter.tsx
|
|
7390
|
-
function
|
|
7393
|
+
function ac(t) {
|
|
7391
7394
|
let n = e(32), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
|
|
7392
7395
|
if (!vt(r)) {
|
|
7393
7396
|
let e;
|
|
7394
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7397
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ J(hr, { ...t }), n[0] = t, n[1] = e), e;
|
|
7395
7398
|
}
|
|
7396
7399
|
let c = t.layout !== "row", l;
|
|
7397
7400
|
n[2] === i ? l = n[3] : (l = Array.isArray(i) ? [String(i[0] ?? ""), String(i[1] ?? "")] : ["", ""], n[2] = i, n[3] = l);
|
|
@@ -7403,7 +7406,7 @@ function ic(t) {
|
|
|
7403
7406
|
let p = c ? 1 : void 0, h;
|
|
7404
7407
|
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];
|
|
7405
7408
|
let g;
|
|
7406
|
-
n[10] !== u[0] || n[11] !== o || n[12] !== f || n[13] !== p || n[14] !== h ? (g = /* @__PURE__ */
|
|
7409
|
+
n[10] !== u[0] || n[11] !== o || n[12] !== f || n[13] !== p || n[14] !== h ? (g = /* @__PURE__ */ J(O, {
|
|
7407
7410
|
...f,
|
|
7408
7411
|
size: o,
|
|
7409
7412
|
type: "date",
|
|
@@ -7420,7 +7423,7 @@ function ic(t) {
|
|
|
7420
7423
|
let v = c ? 1 : void 0, y;
|
|
7421
7424
|
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];
|
|
7422
7425
|
let b;
|
|
7423
|
-
n[22] !== u[1] || n[23] !== o || n[24] !== _ || n[25] !== v || n[26] !== y ? (b = /* @__PURE__ */
|
|
7426
|
+
n[22] !== u[1] || n[23] !== o || n[24] !== _ || n[25] !== v || n[26] !== y ? (b = /* @__PURE__ */ J(O, {
|
|
7424
7427
|
..._,
|
|
7425
7428
|
size: o,
|
|
7426
7429
|
type: "date",
|
|
@@ -7430,7 +7433,7 @@ function ic(t) {
|
|
|
7430
7433
|
onChange: y
|
|
7431
7434
|
}), n[22] = u[1], n[23] = o, n[24] = _, n[25] = v, n[26] = y, n[27] = b) : b = n[27];
|
|
7432
7435
|
let x;
|
|
7433
|
-
return n[28] !== d || n[29] !== g || n[30] !== b ? (x = /* @__PURE__ */
|
|
7436
|
+
return n[28] !== d || n[29] !== g || n[30] !== b ? (x = /* @__PURE__ */ Y(m, {
|
|
7434
7437
|
gap: 4,
|
|
7435
7438
|
wrap: "nowrap",
|
|
7436
7439
|
align: "flex-start",
|
|
@@ -7440,11 +7443,11 @@ function ic(t) {
|
|
|
7440
7443
|
}
|
|
7441
7444
|
//#endregion
|
|
7442
7445
|
//#region src/components/filters/DgAutocompleteFilter.tsx
|
|
7443
|
-
function
|
|
7446
|
+
function oc(t) {
|
|
7444
7447
|
let n = e(21), { column: r, table: i, operator: a, value: o, onChange: s, options: c, size: l, labels: d } = t;
|
|
7445
7448
|
if (_t(a) || vt(a)) {
|
|
7446
7449
|
let e;
|
|
7447
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7450
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ J(hr, { ...t }), n[0] = t, n[1] = e), e;
|
|
7448
7451
|
}
|
|
7449
7452
|
let f;
|
|
7450
7453
|
n[2] === a ? f = n[3] : (f = gt(a), n[2] = a, n[3] = f);
|
|
@@ -7460,9 +7463,9 @@ function ac(t) {
|
|
|
7460
7463
|
width: 180
|
|
7461
7464
|
}), n[8] = t, n[9] = d.filterValue, n[10] = g) : g = n[10];
|
|
7462
7465
|
let _ = !p, v = p && t.layout !== "header" ? d.filterValuePlaceholder : "", y;
|
|
7463
|
-
n[11] === h ? y = n[12] : (y = h.map(
|
|
7466
|
+
n[11] === h ? y = n[12] : (y = h.map(sc), n[11] = h, n[12] = y);
|
|
7464
7467
|
let b = p && typeof o == "string" ? o : "", x;
|
|
7465
|
-
return n[13] !== s || n[14] !== l || n[15] !== g || n[16] !== _ || n[17] !== v || n[18] !== y || n[19] !== b ? (x = /* @__PURE__ */
|
|
7468
|
+
return n[13] !== s || n[14] !== l || n[15] !== g || n[16] !== _ || n[17] !== v || n[18] !== y || n[19] !== b ? (x = /* @__PURE__ */ J(u, {
|
|
7466
7469
|
...g,
|
|
7467
7470
|
size: l,
|
|
7468
7471
|
disabled: _,
|
|
@@ -7473,16 +7476,16 @@ function ac(t) {
|
|
|
7473
7476
|
onChange: s
|
|
7474
7477
|
}), n[13] = s, n[14] = l, n[15] = g, n[16] = _, n[17] = v, n[18] = y, n[19] = b, n[20] = x) : x = n[20], x;
|
|
7475
7478
|
}
|
|
7476
|
-
function
|
|
7479
|
+
function sc(e) {
|
|
7477
7480
|
return e.value;
|
|
7478
7481
|
}
|
|
7479
7482
|
//#endregion
|
|
7480
7483
|
//#region src/components/filters/DgTriStateFilter.tsx
|
|
7481
|
-
function
|
|
7484
|
+
function cc(t) {
|
|
7482
7485
|
let n = e(29), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
|
|
7483
7486
|
if (_t(r) || vt(r)) {
|
|
7484
7487
|
let e;
|
|
7485
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7488
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ J(hr, { ...t }), n[0] = t, n[1] = e), e;
|
|
7486
7489
|
}
|
|
7487
7490
|
let c;
|
|
7488
7491
|
n[2] === r ? c = n[3] : (c = gt(r), n[2] = r, n[3] = c);
|
|
@@ -7512,7 +7515,7 @@ function sc(t) {
|
|
|
7512
7515
|
let v = u === "true" || u === "false" ? u : "all", y;
|
|
7513
7516
|
n[17] === a ? y = n[18] : (y = (e) => a(e === "all" ? "" : e), n[17] = a, n[18] = y);
|
|
7514
7517
|
let b;
|
|
7515
|
-
n[19] !== o || n[20] !== f || n[21] !== _ || n[22] !== v || n[23] !== y ? (b = /* @__PURE__ */
|
|
7518
|
+
n[19] !== o || n[20] !== f || n[21] !== _ || n[22] !== v || n[23] !== y ? (b = /* @__PURE__ */ J(w, {
|
|
7516
7519
|
size: o,
|
|
7517
7520
|
disabled: f,
|
|
7518
7521
|
data: _,
|
|
@@ -7520,7 +7523,7 @@ function sc(t) {
|
|
|
7520
7523
|
onChange: y
|
|
7521
7524
|
}), n[19] = o, n[20] = f, n[21] = _, n[22] = v, n[23] = y, n[24] = b) : b = n[24];
|
|
7522
7525
|
let x;
|
|
7523
|
-
return n[25] !== o || n[26] !== d || n[27] !== b ? (x = /* @__PURE__ */
|
|
7526
|
+
return n[25] !== o || n[26] !== d || n[27] !== b ? (x = /* @__PURE__ */ J(h.Wrapper, {
|
|
7524
7527
|
...d,
|
|
7525
7528
|
size: o,
|
|
7526
7529
|
children: b
|
|
@@ -7528,7 +7531,7 @@ function sc(t) {
|
|
|
7528
7531
|
}
|
|
7529
7532
|
//#endregion
|
|
7530
7533
|
//#region src/core/labelsSv.ts
|
|
7531
|
-
var
|
|
7534
|
+
var lc = {
|
|
7532
7535
|
operators: {
|
|
7533
7536
|
contains: "innehåller",
|
|
7534
7537
|
equals: "är lika med",
|
|
@@ -7652,7 +7655,7 @@ var cc = {
|
|
|
7652
7655
|
};
|
|
7653
7656
|
//#endregion
|
|
7654
7657
|
//#region src/core/summary.ts
|
|
7655
|
-
function
|
|
7658
|
+
function uc({ table: e, columnId: t, fn: n = "sum" }) {
|
|
7656
7659
|
let r = e, i = r.getColumn(t);
|
|
7657
7660
|
if (!i) return;
|
|
7658
7661
|
let a = {
|
|
@@ -7666,6 +7669,6 @@ function lc({ table: e, columnId: t, fn: n = "sum" }) {
|
|
|
7666
7669
|
return _e[n].aggregate(a);
|
|
7667
7670
|
}
|
|
7668
7671
|
//#endregion
|
|
7669
|
-
export { Ir as DATA_STATE_SLICES, Gi as DEFAULT_EXPORT_OPTIONS,
|
|
7672
|
+
export { Ir as DATA_STATE_SLICES, Gi as DEFAULT_EXPORT_OPTIONS, $s as DEFAULT_TMDATAGRID_SIZE, Ft as DETAILS_COLUMN_ID, oc as DgAutocompleteFilter, ac as DgDateRangeFilter, ic as DgRangeSliderFilter, cc as DgTriStateFilter, tn as EDIT_COLUMN_ID, rt as FILTER_OPERATOR_LABELS, ln as GROUP_COLUMN_ID, Rr as PERSIST_PAYLOAD_VERSION, mn as ROW_NUMBER_COLUMN_ID, Dn as SELECT_COLUMN_ID, Lr as SETTINGS_STATE_SLICES, tc as SIZE_CONTROL_SIZE, ec as SIZE_ROW_HEIGHT, Pr as TMDATAGRID_LABELS_EN, lc as TMDATAGRID_LABELS_SV, rc as TMDataGrid, qo as TMDataGridBooleanEditor, Jo as TMDataGridDateEditor, ar as TMDataGridDraftActions, xa as TMDataGridFilterPills, hr as TMDataGridFilterValueInput, Yo as TMDataGridMultiSelectEditor, Xo as TMDataGridNumberEditor, Ja as TMDataGridSearch, Zo as TMDataGridSelectEditor, Qo as TMDataGridStringEditor, Ct as activeColumnFilters, uc as aggregateColumn, Nt as areAllRowsExpanded, yo as autosizeColumn, ea as buildExportData, Wt as clearedValueForType, Qi as countSelectedExportRows, fa as createTMDataGridColumnHelper, Bi as csvExcelFormat, Vi as csvFormat, aa as downloadFile, yt as emptyValueForOperator, na as exportGrid, xt as filterValueShape, Ni as formatExportValue, wt as formatFilterLabel, cn as formatGroupValue, Ar as fuzzyGlobalFilterFn, ci as getColumnCapabilities, Fn as getColumnDefaultOperator, Mn as getColumnLabel, Pn as getColumnOperators, bo as getColumnRegion, Nn as getColumnType, Cn as getDisplayedRows, Ut as getEditFieldName, Ji as getExportableColumns, li as getGridCapabilities, on as getGroupDataRows, mt as getOperatorsForType, Tn as getSelectableRowIds, Eo as getStepTargetColumn, Oa as getTMDataGridPaginationApi, Fi as guardFormula, Vt as hasPendingEdits, Bn as isControlColumn, St as isFilterActive, Vn as isGeneratedColumn, wn as isPagingActive, Wi as jsonFormat, wo as keepGeneratedColumnsOutermost, Fr as mergeLabels, Co as moveColumn, Do as moveColumnByStep, en as normalizeFieldValidate, ba as openColumnFilter, gt as operatorNeedsValue, _t as operatorTakesArrayValue, vt as operatorTakesRangeValue, pr as optionsToComboboxData, si as readFeatureFlags, fr as resolveColumnOptions, Pt as resolveExpandAll, Ki as resolveExportOptions, _s as resolveRangeBounds, En as resolveRowSelectionClick, ra as toClipboardText, Hi as tsvFormat, va as useTMDataGrid, $ as useTMDataGridContext, Ia as useTMDataGridExport, ia as writeClipboardText, ta as writeExportFile };
|
|
7670
7673
|
|
|
7671
7674
|
//# sourceMappingURL=index.js.map
|