@jielga/tmdatagrid 2.0.0-beta.22 → 2.0.0-beta.24
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 +1024 -1024
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/docs/editing.md +1 -1
- package/docs/grouping.md +5 -5
- package/docs/row-styling.md +3 -3
- package/docs/testing.md +181 -0
- package/package.json +1 -1
- 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 +4 -4
- package/skills/options/SKILL.md +1 -1
- package/skills/rows/SKILL.md +4 -3
- package/skills/server-side/SKILL.md +1 -1
- package/skills/testing/SKILL.md +10 -1
- package/skills/testing-editing/SKILL.md +225 -0
- package/src/components/TMDataGridDetailsColumn.tsx +2 -2
- package/src/components/TMDataGridEntryRows.tsx +3 -3
- package/src/components/TMDataGridFooter.tsx +1 -1
- package/src/components/TMDataGridGroupColumn.tsx +1 -1
- package/src/components/TMDataGridHeaderCell.module.css +2 -2
- package/src/components/TMDataGridHeaderCell.tsx +5 -5
- package/src/components/TMDataGridHeaderFilterRow.tsx +1 -1
- package/src/components/TMDataGridTable.tsx +34 -22
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@ 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
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { FieldApi as
|
|
8
|
-
import { Store as
|
|
9
|
-
import { aggregationFns as
|
|
5
|
+
import { IconArrowAutofitWidth as N, IconArrowBackUp as P, IconArrowBarToLeft as F, IconArrowBarToRight as ee, IconArrowDown as I, IconArrowLeft as L, IconArrowRight as R, IconArrowUp as z, IconCheck as B, IconChevronLeft as V, IconChevronRight as H, IconColumns3 as te, IconDotsVertical as U, IconDownload as W, IconEyeOff as ne, IconFilter as re, IconFoldDown as ie, IconFoldUp as ae, IconIndentDecrease as oe, IconIndentIncrease as se, IconMenu2 as G, 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 me, getBy as X, useStore as he } from "@tanstack/react-form";
|
|
8
|
+
import { Store as ge, shallow as _e } from "@tanstack/store";
|
|
9
|
+
import { aggregationFns as ve, columnFacetingFeature as ye, columnFilteringFeature as be, columnGroupingFeature as xe, columnOrderingFeature as Se, columnPinningFeature as Ce, columnResizingFeature as we, columnSizingFeature as Te, columnVisibilityFeature as Ee, createColumnHelper as De, createExpandedRowModel as Z, createFacetedMinMaxValues as Oe, createFacetedRowModel as ke, createFacetedUniqueValues as Ae, createFilteredRowModel as Q, createGroupedRowModel as je, createPaginatedRowModel as Me, createSortedRowModel as Ne, filterFns as Pe, flexRender as Fe, functionalUpdate as Ie, globalFilteringFeature as Le, makeStateUpdater as Re, metaHelper as ze, rowAggregationFeature as Be, rowExpandingFeature as Ve, rowPaginationFeature as He, rowPinningFeature as Ue, rowSelectionFeature as We, rowSortingFeature as Ge, sortFns as Ke, tableFeatures as qe, useTable as Je } from "@tanstack/react-table";
|
|
10
10
|
import { compareItems as Ye, rankItem as Xe } from "@tanstack/match-sorter-utils";
|
|
11
11
|
import { useVirtualizer as Ze } from "@tanstack/react-virtual";
|
|
12
12
|
var Qe = { root: "_root_1kqd2_8" }, $e = {
|
|
@@ -239,19 +239,19 @@ function It(t) {
|
|
|
239
239
|
n[2] === r ? l = n[3] : (l = (e) => {
|
|
240
240
|
e.stopPropagation(), r.toggleExpanded();
|
|
241
241
|
}, n[2] = r, n[3] = l);
|
|
242
|
-
let u;
|
|
243
|
-
n[4] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
242
|
+
let u = s || void 0, d;
|
|
243
|
+
n[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ J(H, {
|
|
244
244
|
size: 16,
|
|
245
245
|
stroke: 1.6
|
|
246
|
-
}), n[4] =
|
|
247
|
-
let d;
|
|
248
|
-
n[5] === s ? d = n[6] : (d = /* @__PURE__ */ Y("span", {
|
|
249
|
-
className: At.chevron,
|
|
250
|
-
"data-expanded": s,
|
|
251
|
-
children: u
|
|
252
|
-
}), n[5] = s, n[6] = d);
|
|
246
|
+
}), n[4] = d) : d = n[4];
|
|
253
247
|
let f;
|
|
254
|
-
|
|
248
|
+
n[5] === u ? f = n[6] : (f = /* @__PURE__ */ J("span", {
|
|
249
|
+
className: At.chevron,
|
|
250
|
+
"data-expanded": u,
|
|
251
|
+
children: d
|
|
252
|
+
}), n[5] = u, n[6] = f);
|
|
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__ */ J(A, {
|
|
255
255
|
className: At.detailsToggle,
|
|
256
256
|
tabIndex: a,
|
|
257
257
|
"aria-expanded": s,
|
|
@@ -259,8 +259,8 @@ function It(t) {
|
|
|
259
259
|
"data-dg-part": "details-toggle",
|
|
260
260
|
"data-row-id": r.id,
|
|
261
261
|
onClick: l,
|
|
262
|
-
children:
|
|
263
|
-
}), n[7] = s, n[8] = r.id, n[9] = c, n[10] = l, n[11] =
|
|
262
|
+
children: f
|
|
263
|
+
}), n[7] = s, n[8] = r.id, n[9] = c, n[10] = l, n[11] = f, n[12] = a, n[13] = p) : p = n[13], p;
|
|
264
264
|
}
|
|
265
265
|
function Lt(t) {
|
|
266
266
|
let n = e(16), { table: r } = t, { labels: i } = $(), a;
|
|
@@ -278,26 +278,26 @@ function Lt(t) {
|
|
|
278
278
|
target: "details",
|
|
279
279
|
expand: !c
|
|
280
280
|
})), n[4] = c, n[5] = o, n[6] = r, n[7] = u) : u = n[7];
|
|
281
|
-
let d;
|
|
282
|
-
n[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
281
|
+
let d = c || void 0, f;
|
|
282
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ J(H, {
|
|
283
283
|
size: 16,
|
|
284
284
|
stroke: 1.6
|
|
285
|
-
}), n[8] =
|
|
286
|
-
let f;
|
|
287
|
-
n[9] === c ? f = n[10] : (f = /* @__PURE__ */ Y("span", {
|
|
288
|
-
className: At.chevron,
|
|
289
|
-
"data-expanded": c,
|
|
290
|
-
children: d
|
|
291
|
-
}), n[9] = c, n[10] = f);
|
|
285
|
+
}), n[8] = f) : f = n[8];
|
|
292
286
|
let p;
|
|
293
|
-
|
|
287
|
+
n[9] === d ? p = n[10] : (p = /* @__PURE__ */ J("span", {
|
|
288
|
+
className: At.chevron,
|
|
289
|
+
"data-expanded": d,
|
|
290
|
+
children: f
|
|
291
|
+
}), n[9] = d, n[10] = p);
|
|
292
|
+
let m;
|
|
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,
|
|
297
297
|
"data-dg-part": "details-toggle-all",
|
|
298
298
|
onClick: u,
|
|
299
|
-
children:
|
|
300
|
-
}), n[11] = c, n[12] = l, n[13] = u, n[14] =
|
|
299
|
+
children: p
|
|
300
|
+
}), n[11] = c, n[12] = l, n[13] = u, n[14] = p, n[15] = m) : m = n[15], m;
|
|
301
301
|
}
|
|
302
302
|
function Rt(e = "Details") {
|
|
303
303
|
return {
|
|
@@ -316,8 +316,8 @@ function Rt(e = "Details") {
|
|
|
316
316
|
enableGlobalFilter: !1,
|
|
317
317
|
enableHiding: !1,
|
|
318
318
|
enablePinning: !1,
|
|
319
|
-
header: ({ table: e }) => /* @__PURE__ */
|
|
320
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
319
|
+
header: ({ table: e }) => /* @__PURE__ */ J(Lt, { table: e }),
|
|
320
|
+
cell: ({ row: e }) => /* @__PURE__ */ J(It, { row: e })
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
var zt = {
|
|
@@ -437,19 +437,19 @@ async function Zt(e, t) {
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
function Qt(e) {
|
|
440
|
-
let t = new
|
|
440
|
+
let t = new ge(Bt), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = 0, a = "__new__", o = (t) => {
|
|
441
441
|
if (Hn(t.id) || Ut(t) === null) return !1;
|
|
442
442
|
let n = e().editableColumnIds;
|
|
443
443
|
return n !== void 0 && !n.includes(t.id) ? !1 : !zn(t);
|
|
444
444
|
}, s = () => e().table.getAllLeafColumns().filter(o), c = async (e, t, n) => {
|
|
445
|
-
let r = n ? void 0 :
|
|
445
|
+
let r = n ? void 0 : z(t), i = {};
|
|
446
446
|
for (let t of s()) {
|
|
447
447
|
if (r !== void 0 && !Bn(t, r)) continue;
|
|
448
448
|
let n = Ut(t);
|
|
449
449
|
if (n === null) continue;
|
|
450
450
|
let a = $t(t.columnDef.meta?.edit?.validate);
|
|
451
451
|
if (a === void 0) continue;
|
|
452
|
-
let o =
|
|
452
|
+
let o = X(e, n);
|
|
453
453
|
for (let e of Yt) {
|
|
454
454
|
let t = a[e];
|
|
455
455
|
if (t === void 0) continue;
|
|
@@ -550,7 +550,7 @@ function Qt(e) {
|
|
|
550
550
|
for (let r of s()) {
|
|
551
551
|
let i = Ut(r);
|
|
552
552
|
if (i === null) continue;
|
|
553
|
-
let a =
|
|
553
|
+
let a = X(e, i), o = X(t, i);
|
|
554
554
|
Kt(a, o) || n.push({
|
|
555
555
|
columnId: r.id,
|
|
556
556
|
field: i,
|
|
@@ -567,7 +567,7 @@ function Qt(e) {
|
|
|
567
567
|
field: e,
|
|
568
568
|
message: Jt(n) ?? ""
|
|
569
569
|
}] : [];
|
|
570
|
-
}), i = e.submitErrors.filter((e) => !r.some((t) => t.field === e.field) && Kt(
|
|
570
|
+
}), i = e.submitErrors.filter((e) => !r.some((t) => t.field === e.field) && Kt(X(n, e.field), e.value)), a = [...r, ...i.map(({ field: e, message: t }) => ({
|
|
571
571
|
field: e,
|
|
572
572
|
message: t
|
|
573
573
|
}))];
|
|
@@ -680,7 +680,7 @@ function Qt(e) {
|
|
|
680
680
|
parkOnly: !1,
|
|
681
681
|
pendingCommit: null,
|
|
682
682
|
unsubscribe: () => {},
|
|
683
|
-
form: new
|
|
683
|
+
form: new me({
|
|
684
684
|
defaultValues: r,
|
|
685
685
|
validators: p(t, i),
|
|
686
686
|
onSubmit: async ({ value: n }) => {
|
|
@@ -722,42 +722,42 @@ function Qt(e) {
|
|
|
722
722
|
a !== void 0 && o.form.reset(a, { keepDefaultValues: !0 }), e().rowValidators?.onMount !== void 0 && o.form.validateSync("mount");
|
|
723
723
|
let s = o.form.store.subscribe(() => O(t));
|
|
724
724
|
return o.unsubscribe = () => s.unsubscribe(), n.set(t, o), y.add(t), _.openRowIds.has(t) || (_.openRowIds.add(t), v.add("openRowIds")), w(), o;
|
|
725
|
-
},
|
|
725
|
+
}, ee = (e) => {
|
|
726
726
|
let t = r.get(e);
|
|
727
727
|
if (t === void 0) return;
|
|
728
728
|
r.delete(e);
|
|
729
729
|
let n = F(e, t.original, t.isNew, t.values);
|
|
730
730
|
return t.isNew ? j(e, !1) : M(e, !1), n;
|
|
731
|
-
},
|
|
732
|
-
let i = r.get(e), a = i === void 0 ? n.get(e) :
|
|
731
|
+
}, I = (e, t) => {
|
|
732
|
+
let i = r.get(e), a = i === void 0 ? n.get(e) : ee(e);
|
|
733
733
|
if (a === void 0) return;
|
|
734
734
|
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;
|
|
735
735
|
l !== void 0 && (a.submitErrors = Object.entries(l).flatMap(([e, t]) => Xt(t) ? [{
|
|
736
736
|
field: e,
|
|
737
|
-
value:
|
|
737
|
+
value: X(o, e),
|
|
738
738
|
message: Jt(t) ?? ""
|
|
739
739
|
}] : [])), Xt(u) && a.form.setErrorMap({ onSubmit: u }), O(e);
|
|
740
|
-
},
|
|
740
|
+
}, L = (t) => t.getIsGrouped() || _.deletedRowIds.has(t.id) ? !1 : e().isRowEditable?.(t) !== !1, R = (t, n) => {
|
|
741
741
|
let r = e();
|
|
742
742
|
return !(t.getIsGrouped() || _.deletedRowIds.has(t.id) || !o(n) || !Bn(n, t) || r.isRowEditable !== void 0 && !r.isRowEditable(t));
|
|
743
|
-
},
|
|
743
|
+
}, z = (t) => {
|
|
744
744
|
try {
|
|
745
745
|
return e().table.getRow(t);
|
|
746
746
|
} catch {
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
|
-
},
|
|
749
|
+
}, B = (e) => {
|
|
750
750
|
let t = e.form.state.values;
|
|
751
751
|
return Object.entries(e.form.state.fieldMeta).flatMap(([e, n]) => {
|
|
752
752
|
if (e === "") return [];
|
|
753
753
|
let r = n.errors, i = qt(r) ? Jt(r) : void 0;
|
|
754
754
|
return i === void 0 ? [] : [{
|
|
755
755
|
field: e,
|
|
756
|
-
value:
|
|
756
|
+
value: X(t, e),
|
|
757
757
|
message: i
|
|
758
758
|
}];
|
|
759
759
|
});
|
|
760
|
-
},
|
|
760
|
+
}, V = async (t) => {
|
|
761
761
|
let i = n.get(t);
|
|
762
762
|
return i === void 0 ? !0 : i.pendingCommit === null ? !i.isNew && m(i.original, i.form.state.values).length === 0 ? (P(t), !0) : (Gt(i.form), i.lastSubmitOk = !1, i.submitErrors = [], i.parkOnly = e().draft, i.pendingCommit = (async () => {
|
|
763
763
|
try {
|
|
@@ -773,9 +773,9 @@ function Qt(e) {
|
|
|
773
773
|
dirtyFields: m(i.original, e).map((e) => e.field),
|
|
774
774
|
isNew: i.isNew
|
|
775
775
|
}), i.isNew ? j(t, !0) : M(t, !0), _.active?.rowId === t && k(null), N(t);
|
|
776
|
-
}), !0) : (P(t), !0) : (i.submitErrors =
|
|
776
|
+
}), !0) : (P(t), !0) : (i.submitErrors = B(i), O(t), !1) : !0;
|
|
777
777
|
})(), i.pendingCommit) : i.pendingCommit;
|
|
778
|
-
},
|
|
778
|
+
}, H = (t, i) => {
|
|
779
779
|
D(() => {
|
|
780
780
|
if (n.get(t)?.isNew === !0) {
|
|
781
781
|
k({
|
|
@@ -785,63 +785,63 @@ function Qt(e) {
|
|
|
785
785
|
return;
|
|
786
786
|
}
|
|
787
787
|
if (r.get(t)?.isNew === !0) {
|
|
788
|
-
|
|
788
|
+
ee(t), k({
|
|
789
789
|
rowId: t,
|
|
790
790
|
columnId: i
|
|
791
791
|
});
|
|
792
792
|
return;
|
|
793
793
|
}
|
|
794
|
-
let a =
|
|
794
|
+
let a = z(t);
|
|
795
795
|
if (a !== void 0) {
|
|
796
796
|
if (i !== null) {
|
|
797
797
|
let t = e().table.getColumn(i);
|
|
798
|
-
if (t === void 0 || !
|
|
799
|
-
} else if (!
|
|
800
|
-
!n.has(t) &&
|
|
798
|
+
if (t === void 0 || !R(a, t)) return;
|
|
799
|
+
} else if (!L(a)) return;
|
|
800
|
+
!n.has(t) && ee(t) === void 0 && F(t, a.original, !1), k({
|
|
801
801
|
rowId: t,
|
|
802
802
|
columnId: i
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
805
|
});
|
|
806
|
-
},
|
|
806
|
+
}, te = ({ rowId: t, columnId: r }) => {
|
|
807
807
|
let { editMode: i } = e();
|
|
808
808
|
if (i === "cell") {
|
|
809
809
|
let e = [...n.keys()].find((e) => e !== t && n.get(e)?.isNew !== !0);
|
|
810
810
|
if (e !== void 0) {
|
|
811
|
-
|
|
812
|
-
e &&
|
|
811
|
+
V(e).then((e) => {
|
|
812
|
+
e && H(t, r);
|
|
813
813
|
});
|
|
814
814
|
return;
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
|
|
818
|
-
},
|
|
817
|
+
H(t, r);
|
|
818
|
+
}, U = (e) => {
|
|
819
819
|
P(e);
|
|
820
|
-
},
|
|
820
|
+
}, W = () => {
|
|
821
821
|
k(null);
|
|
822
|
-
},
|
|
822
|
+
}, ne = () => {
|
|
823
823
|
D(() => {
|
|
824
824
|
for (let e of [..._.openRowIds]) P(e);
|
|
825
825
|
r.clear(), _.active = null, _.committedRowIds.clear(), _.committedValues.clear(), _.deletedRowIds.clear(), v.add("active"), v.add("committedRowIds"), v.add("committedValues"), v.add("deletedRowIds");
|
|
826
826
|
});
|
|
827
|
-
},
|
|
827
|
+
}, re = (e) => {
|
|
828
828
|
i += 1;
|
|
829
829
|
let t = `${a}${i}`;
|
|
830
|
-
return F(t,
|
|
831
|
-
},
|
|
830
|
+
return F(t, ae(e), !0), _.newRows.set(t, !1), v.add("newRows"), t;
|
|
831
|
+
}, ie = (e) => D(() => re(e)), ae = (t) => {
|
|
832
832
|
let { newRowDefaults: n } = e();
|
|
833
833
|
return {
|
|
834
834
|
...typeof n == "function" ? n() : n ?? {},
|
|
835
835
|
...t
|
|
836
836
|
};
|
|
837
|
-
},
|
|
838
|
-
let r = t.map((e) =>
|
|
837
|
+
}, oe = async (t, n) => E(async () => {
|
|
838
|
+
let r = t.map((e) => re(e));
|
|
839
839
|
if (n?.commit !== !0) return {
|
|
840
840
|
committed: [],
|
|
841
841
|
open: r
|
|
842
842
|
};
|
|
843
|
-
let i = e().draft ? await Promise.all(r.map((e) =>
|
|
844
|
-
if (!e().draft) for (let e of r) i.push(await
|
|
843
|
+
let i = e().draft ? await Promise.all(r.map((e) => V(e))) : [];
|
|
844
|
+
if (!e().draft) for (let e of r) i.push(await V(e));
|
|
845
845
|
let a = [], o = [];
|
|
846
846
|
return r.forEach((e, t) => {
|
|
847
847
|
(i[t] ? a : o).push(e);
|
|
@@ -849,7 +849,7 @@ function Qt(e) {
|
|
|
849
849
|
committed: a,
|
|
850
850
|
open: o
|
|
851
851
|
};
|
|
852
|
-
}),
|
|
852
|
+
}), se = (t) => {
|
|
853
853
|
if (n.get(t)?.isNew === !0 || r.get(t)?.isNew === !0) {
|
|
854
854
|
P(t);
|
|
855
855
|
return;
|
|
@@ -862,36 +862,36 @@ function Qt(e) {
|
|
|
862
862
|
});
|
|
863
863
|
return;
|
|
864
864
|
}
|
|
865
|
-
let o =
|
|
865
|
+
let o = z(t);
|
|
866
866
|
o !== void 0 && i.onRowDelete?.({
|
|
867
867
|
rowId: t,
|
|
868
868
|
row: o
|
|
869
869
|
});
|
|
870
|
-
},
|
|
870
|
+
}, G = (e) => {
|
|
871
871
|
D(() => {
|
|
872
|
-
for (let t of e)
|
|
872
|
+
for (let t of e) se(t);
|
|
873
873
|
});
|
|
874
|
-
},
|
|
874
|
+
}, K = (e) => {
|
|
875
875
|
_.deletedRowIds.delete(e) && T("deletedRowIds");
|
|
876
|
-
},
|
|
876
|
+
}, ce = () => {
|
|
877
877
|
let t = e();
|
|
878
878
|
return t.draft ? t.onRowDelete !== void 0 || t.onSaveDrafts !== void 0 : t.onRowDelete !== void 0;
|
|
879
|
-
},
|
|
879
|
+
}, q = () => {
|
|
880
880
|
let e = [..._.deletedRowIds];
|
|
881
881
|
return e.length > 0 && (_.deletedRowIds.clear(), T("deletedRowIds")), e;
|
|
882
|
-
},
|
|
882
|
+
}, le = () => [..._.openRowIds].filter((e) => r.has(e)), ue = async () => {
|
|
883
883
|
let e = [...n.keys()];
|
|
884
|
-
return (await E(() => Promise.all(e.map((e) =>
|
|
885
|
-
},
|
|
886
|
-
|
|
887
|
-
})),
|
|
884
|
+
return (await E(() => Promise.all(e.map((e) => V(e))))).every(Boolean);
|
|
885
|
+
}, de = null, fe = () => (de === null && (de = Y().finally(() => {
|
|
886
|
+
de = null, _.isSaving && (_.isSaving = !1, T("isSaving"));
|
|
887
|
+
})), de), J = (t, n) => ({
|
|
888
888
|
rowId: t,
|
|
889
889
|
value: n.values,
|
|
890
890
|
original: n.original,
|
|
891
891
|
changes: m(n.original, n.values),
|
|
892
892
|
source: e().editMode
|
|
893
|
-
}),
|
|
894
|
-
let t = [..._.deletedRowIds], n =
|
|
893
|
+
}), Y = async () => {
|
|
894
|
+
let t = [..._.deletedRowIds], n = le().filter((e) => !_.deletedRowIds.has(e));
|
|
895
895
|
if (n.length === 0 && t.length === 0) return !0;
|
|
896
896
|
_.isSaving = !0, T("isSaving");
|
|
897
897
|
let i = u();
|
|
@@ -900,23 +900,23 @@ function Qt(e) {
|
|
|
900
900
|
let n = r.get(t);
|
|
901
901
|
if (n === void 0) return !0;
|
|
902
902
|
let a = await d(n.values, t, n.isNew, i);
|
|
903
|
-
if (Xt(a)) return
|
|
903
|
+
if (Xt(a)) return I(t, a), !1;
|
|
904
904
|
try {
|
|
905
905
|
n.isNew ? await e().onRowAdd?.({
|
|
906
906
|
tempId: t,
|
|
907
907
|
value: n.values
|
|
908
|
-
}) : await e().onEditCommit?.(
|
|
908
|
+
}) : await e().onEditCommit?.(J(t, n));
|
|
909
909
|
} catch (e) {
|
|
910
|
-
return
|
|
910
|
+
return I(t, e instanceof Error ? e.message : String(e)), !1;
|
|
911
911
|
}
|
|
912
912
|
return P(t), !0;
|
|
913
913
|
}))), a = D(() => {
|
|
914
|
-
let e =
|
|
914
|
+
let e = q();
|
|
915
915
|
for (let t of e) x.add(t), r.has(t) && P(t);
|
|
916
916
|
return e;
|
|
917
917
|
});
|
|
918
918
|
for (let t of a) {
|
|
919
|
-
let n =
|
|
919
|
+
let n = z(t);
|
|
920
920
|
n !== void 0 && await e().onRowDelete?.({
|
|
921
921
|
rowId: t,
|
|
922
922
|
row: n
|
|
@@ -934,13 +934,13 @@ function Qt(e) {
|
|
|
934
934
|
let i = r.get(t);
|
|
935
935
|
if (i !== void 0) {
|
|
936
936
|
if (Xt(e[n])) {
|
|
937
|
-
|
|
937
|
+
I(t, e[n]), s = !1;
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
940
940
|
i.isNew ? o.push({
|
|
941
941
|
tempId: t,
|
|
942
942
|
value: i.values
|
|
943
|
-
}) : a.push(
|
|
943
|
+
}) : a.push(J(t, i));
|
|
944
944
|
}
|
|
945
945
|
});
|
|
946
946
|
});
|
|
@@ -974,24 +974,24 @@ function Qt(e) {
|
|
|
974
974
|
}), !i) return !1;
|
|
975
975
|
}
|
|
976
976
|
return s;
|
|
977
|
-
},
|
|
978
|
-
let e = await
|
|
977
|
+
}, pe = async () => {
|
|
978
|
+
let e = await ue(), t = await fe();
|
|
979
979
|
return e && t;
|
|
980
|
-
},
|
|
981
|
-
let i =
|
|
980
|
+
}, he = async (e, t) => {
|
|
981
|
+
let i = z(e);
|
|
982
982
|
if (i === void 0 || _.deletedRowIds.has(e)) return !1;
|
|
983
983
|
if (t.length === 0) return !0;
|
|
984
984
|
let a = (n) => {
|
|
985
985
|
for (let { field: e, value: r } of t) n.form.setFieldValue(e, r);
|
|
986
|
-
return
|
|
986
|
+
return V(e);
|
|
987
987
|
}, o = n.get(e);
|
|
988
988
|
return o === void 0 ? r.has(e) ? E(async () => {
|
|
989
|
-
let t =
|
|
989
|
+
let t = ee(e);
|
|
990
990
|
return t !== void 0 && a(t);
|
|
991
991
|
}) : a(F(e, i.original, !1)) : a(o);
|
|
992
|
-
},
|
|
993
|
-
let r =
|
|
994
|
-
return r === void 0 || i === void 0 || !
|
|
992
|
+
}, _e = (t, n) => {
|
|
993
|
+
let r = z(t), i = e().table.getColumn(n);
|
|
994
|
+
return r === void 0 || i === void 0 || !R(r, i) ? null : Ut(i);
|
|
995
995
|
};
|
|
996
996
|
return {
|
|
997
997
|
store: t,
|
|
@@ -1006,7 +1006,7 @@ function Qt(e) {
|
|
|
1006
1006
|
},
|
|
1007
1007
|
isRowDeleted: (e) => _.deletedRowIds.has(e),
|
|
1008
1008
|
getForm: (e) => n.get(e)?.form,
|
|
1009
|
-
getRowValues: (e) => l(e) ??
|
|
1009
|
+
getRowValues: (e) => l(e) ?? z(e)?.original,
|
|
1010
1010
|
getRows: () => {
|
|
1011
1011
|
let t = _.deletedRowIds, i = [], a = e().table.getCoreRowModel();
|
|
1012
1012
|
for (let e of a.flatRows) i.push({
|
|
@@ -1027,27 +1027,27 @@ function Qt(e) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
return i;
|
|
1029
1029
|
},
|
|
1030
|
-
canEditCell:
|
|
1031
|
-
canEditRow:
|
|
1030
|
+
canEditCell: R,
|
|
1031
|
+
canEditRow: L,
|
|
1032
1032
|
isColumnEditable: o,
|
|
1033
|
-
begin:
|
|
1034
|
-
commit:
|
|
1035
|
-
cancel:
|
|
1036
|
-
deactivate:
|
|
1037
|
-
cancelAll:
|
|
1038
|
-
commitAll:
|
|
1039
|
-
saveDrafts:
|
|
1040
|
-
submitAll:
|
|
1033
|
+
begin: te,
|
|
1034
|
+
commit: V,
|
|
1035
|
+
cancel: U,
|
|
1036
|
+
deactivate: W,
|
|
1037
|
+
cancelAll: ne,
|
|
1038
|
+
commitAll: ue,
|
|
1039
|
+
saveDrafts: fe,
|
|
1040
|
+
submitAll: pe,
|
|
1041
1041
|
clearCell: async (t, n) => {
|
|
1042
|
-
let r = e().table.getColumn(n), i =
|
|
1043
|
-
return i === null || r === void 0 ? !1 :
|
|
1042
|
+
let r = e().table.getColumn(n), i = _e(t, n);
|
|
1043
|
+
return i === null || r === void 0 ? !1 : he(t, [{
|
|
1044
1044
|
field: i,
|
|
1045
1045
|
value: Wt(r.columnDef.meta?.type ?? "string")
|
|
1046
1046
|
}]);
|
|
1047
1047
|
},
|
|
1048
1048
|
setCellValue: async (e, t, n) => {
|
|
1049
|
-
let r =
|
|
1050
|
-
return r !== null &&
|
|
1049
|
+
let r = _e(e, t);
|
|
1050
|
+
return r !== null && he(e, [{
|
|
1051
1051
|
field: r,
|
|
1052
1052
|
value: n
|
|
1053
1053
|
}]);
|
|
@@ -1055,21 +1055,21 @@ function Qt(e) {
|
|
|
1055
1055
|
setRowValues: async (e, t) => {
|
|
1056
1056
|
let n = [];
|
|
1057
1057
|
for (let [r, i] of Object.entries(t)) {
|
|
1058
|
-
let t =
|
|
1058
|
+
let t = _e(e, r);
|
|
1059
1059
|
if (t === null) return !1;
|
|
1060
1060
|
n.push({
|
|
1061
1061
|
field: t,
|
|
1062
1062
|
value: i
|
|
1063
1063
|
});
|
|
1064
1064
|
}
|
|
1065
|
-
return
|
|
1065
|
+
return he(e, n);
|
|
1066
1066
|
},
|
|
1067
|
-
addRow:
|
|
1068
|
-
addRows:
|
|
1069
|
-
deleteRow:
|
|
1070
|
-
deleteRows:
|
|
1071
|
-
restoreRow:
|
|
1072
|
-
canDeleteRows:
|
|
1067
|
+
addRow: ie,
|
|
1068
|
+
addRows: oe,
|
|
1069
|
+
deleteRow: se,
|
|
1070
|
+
deleteRows: G,
|
|
1071
|
+
restoreRow: K,
|
|
1072
|
+
canDeleteRows: ce
|
|
1073
1073
|
};
|
|
1074
1074
|
}
|
|
1075
1075
|
function $t(e) {
|
|
@@ -1079,13 +1079,13 @@ function $t(e) {
|
|
|
1079
1079
|
//#region src/components/TMDataGridEditColumn.tsx
|
|
1080
1080
|
var en = "__edit__";
|
|
1081
1081
|
function tn(t) {
|
|
1082
|
-
let n = e(11), { state: r, rowId: i, label: a, error: o } = t, s = r === "new" ?
|
|
1083
|
-
n[0] === s ? u = n[1] : (u = /* @__PURE__ */
|
|
1082
|
+
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;
|
|
1083
|
+
n[0] === s ? u = n[1] : (u = /* @__PURE__ */ J(s, {
|
|
1084
1084
|
size: 16,
|
|
1085
1085
|
stroke: 1.6
|
|
1086
1086
|
}), n[0] = s, n[1] = u);
|
|
1087
1087
|
let d;
|
|
1088
|
-
n[2] !== a || n[3] !== i || n[4] !== r || n[5] !== l || n[6] !== u ? (d = /* @__PURE__ */
|
|
1088
|
+
n[2] !== a || n[3] !== i || n[4] !== r || n[5] !== l || n[6] !== u ? (d = /* @__PURE__ */ J("span", {
|
|
1089
1089
|
role: "img",
|
|
1090
1090
|
"aria-label": a,
|
|
1091
1091
|
"data-dg-part": "row-state",
|
|
@@ -1096,7 +1096,7 @@ function tn(t) {
|
|
|
1096
1096
|
children: u
|
|
1097
1097
|
}), n[2] = a, n[3] = i, n[4] = r, n[5] = l, n[6] = u, n[7] = d) : d = n[7];
|
|
1098
1098
|
let f;
|
|
1099
|
-
return n[8] !== c || n[9] !== d ? (f = /* @__PURE__ */
|
|
1099
|
+
return n[8] !== c || n[9] !== d ? (f = /* @__PURE__ */ J(k, {
|
|
1100
1100
|
label: c,
|
|
1101
1101
|
withArrow: !0,
|
|
1102
1102
|
children: d
|
|
@@ -1120,10 +1120,10 @@ function nn(t) {
|
|
|
1120
1120
|
let w = p !== void 0 && (p.hasRowError || p.errorFields.length > 0), T;
|
|
1121
1121
|
n[12] !== i || n[13] !== w || n[14] !== o || n[15] !== p || n[16] !== c ? (T = w ? Jt(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];
|
|
1122
1122
|
let E = T, D;
|
|
1123
|
-
n[18] !== i || n[19] !== o || n[20] !== c || n[21] !== s ? (D = i.canDeleteRows() ? /* @__PURE__ */
|
|
1123
|
+
n[18] !== i || n[19] !== o || n[20] !== c || n[21] !== s ? (D = i.canDeleteRows() ? /* @__PURE__ */ J(k, {
|
|
1124
1124
|
label: o.deleteRow,
|
|
1125
1125
|
withArrow: !0,
|
|
1126
|
-
children: /* @__PURE__ */
|
|
1126
|
+
children: /* @__PURE__ */ J(l, {
|
|
1127
1127
|
variant: "subtle",
|
|
1128
1128
|
color: "gray",
|
|
1129
1129
|
size: "sm",
|
|
@@ -1134,7 +1134,7 @@ function nn(t) {
|
|
|
1134
1134
|
onClick: (e) => {
|
|
1135
1135
|
e.stopPropagation(), i.deleteRow(c);
|
|
1136
1136
|
},
|
|
1137
|
-
children: /* @__PURE__ */
|
|
1137
|
+
children: /* @__PURE__ */ J(ue, {
|
|
1138
1138
|
size: 16,
|
|
1139
1139
|
stroke: 1.6
|
|
1140
1140
|
})
|
|
@@ -1144,7 +1144,7 @@ function nn(t) {
|
|
|
1144
1144
|
if (_) {
|
|
1145
1145
|
if (y) {
|
|
1146
1146
|
let e;
|
|
1147
|
-
n[23] !== o.rowStateNew || n[24] !== E || n[25] !== c ? (e = /* @__PURE__ */
|
|
1147
|
+
n[23] !== o.rowStateNew || n[24] !== E || n[25] !== c ? (e = /* @__PURE__ */ J(tn, {
|
|
1148
1148
|
state: "new",
|
|
1149
1149
|
rowId: c,
|
|
1150
1150
|
label: o.rowStateNew,
|
|
@@ -1158,12 +1158,12 @@ function nn(t) {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
}, n[27] = i, n[28] = c, n[29] = t) : t = n[29];
|
|
1160
1160
|
let r;
|
|
1161
|
-
n[30] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
1161
|
+
n[30] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(K, {
|
|
1162
1162
|
size: 16,
|
|
1163
1163
|
stroke: 1.6
|
|
1164
1164
|
}), n[30] = r) : r = n[30];
|
|
1165
1165
|
let a;
|
|
1166
|
-
n[31] !== o.editRow || n[32] !== c || n[33] !== t || n[34] !== s ? (a = /* @__PURE__ */
|
|
1166
|
+
n[31] !== o.editRow || n[32] !== c || n[33] !== t || n[34] !== s ? (a = /* @__PURE__ */ J(l, {
|
|
1167
1167
|
variant: "subtle",
|
|
1168
1168
|
color: "gray",
|
|
1169
1169
|
size: "sm",
|
|
@@ -1175,7 +1175,7 @@ function nn(t) {
|
|
|
1175
1175
|
children: r
|
|
1176
1176
|
}), n[31] = o.editRow, n[32] = c, n[33] = t, n[34] = s, n[35] = a) : a = n[35];
|
|
1177
1177
|
let u;
|
|
1178
|
-
n[36] !== o.editRow || n[37] !== a ? (u = /* @__PURE__ */
|
|
1178
|
+
n[36] !== o.editRow || n[37] !== a ? (u = /* @__PURE__ */ J(k, {
|
|
1179
1179
|
label: o.editRow,
|
|
1180
1180
|
withArrow: !0,
|
|
1181
1181
|
children: a
|
|
@@ -1183,12 +1183,12 @@ function nn(t) {
|
|
|
1183
1183
|
let d;
|
|
1184
1184
|
n[39] !== i || n[40] !== c ? (d = () => i.cancel(c), n[39] = i, n[40] = c, n[41] = d) : d = n[41];
|
|
1185
1185
|
let f;
|
|
1186
|
-
n[42] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
1186
|
+
n[42] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ J(de, {
|
|
1187
1187
|
size: 16,
|
|
1188
1188
|
stroke: 1.6
|
|
1189
1189
|
}), n[42] = f) : f = n[42];
|
|
1190
1190
|
let p;
|
|
1191
|
-
n[43] !== o.discardNewRow || n[44] !== c || n[45] !== d || n[46] !== s ? (p = /* @__PURE__ */
|
|
1191
|
+
n[43] !== o.discardNewRow || n[44] !== c || n[45] !== d || n[46] !== s ? (p = /* @__PURE__ */ J(l, {
|
|
1192
1192
|
variant: "subtle",
|
|
1193
1193
|
color: "gray",
|
|
1194
1194
|
size: "sm",
|
|
@@ -1200,13 +1200,13 @@ function nn(t) {
|
|
|
1200
1200
|
children: f
|
|
1201
1201
|
}), n[43] = o.discardNewRow, n[44] = c, n[45] = d, n[46] = s, n[47] = p) : p = n[47];
|
|
1202
1202
|
let h;
|
|
1203
|
-
n[48] !== o.discardNewRow || n[49] !== p ? (h = /* @__PURE__ */
|
|
1203
|
+
n[48] !== o.discardNewRow || n[49] !== p ? (h = /* @__PURE__ */ J(k, {
|
|
1204
1204
|
label: o.discardNewRow,
|
|
1205
1205
|
withArrow: !0,
|
|
1206
1206
|
children: p
|
|
1207
1207
|
}), n[48] = o.discardNewRow, n[49] = p, n[50] = h) : h = n[50];
|
|
1208
1208
|
let g;
|
|
1209
|
-
return n[51] !== u || n[52] !== h || n[53] !== e ? (g = /* @__PURE__ */
|
|
1209
|
+
return n[51] !== u || n[52] !== h || n[53] !== e ? (g = /* @__PURE__ */ Y(m, {
|
|
1210
1210
|
gap: 0,
|
|
1211
1211
|
wrap: "nowrap",
|
|
1212
1212
|
children: [
|
|
@@ -1219,12 +1219,12 @@ function nn(t) {
|
|
|
1219
1219
|
let e = E ?? o.confirmNewRow, t = w ? "red" : "green", r;
|
|
1220
1220
|
n[55] !== i || n[56] !== c ? (r = () => void i.commit(c), n[55] = i, n[56] = c, n[57] = r) : r = n[57];
|
|
1221
1221
|
let a;
|
|
1222
|
-
n[58] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */
|
|
1222
|
+
n[58] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ J(B, {
|
|
1223
1223
|
size: 16,
|
|
1224
1224
|
stroke: 2
|
|
1225
1225
|
}), n[58] = a) : a = n[58];
|
|
1226
1226
|
let u;
|
|
1227
|
-
n[59] !== o.confirmNewRow || n[60] !== c || n[61] !== t || n[62] !== r || n[63] !== s ? (u = /* @__PURE__ */
|
|
1227
|
+
n[59] !== o.confirmNewRow || n[60] !== c || n[61] !== t || n[62] !== r || n[63] !== s ? (u = /* @__PURE__ */ J(l, {
|
|
1228
1228
|
variant: "subtle",
|
|
1229
1229
|
color: t,
|
|
1230
1230
|
size: "sm",
|
|
@@ -1236,7 +1236,7 @@ function nn(t) {
|
|
|
1236
1236
|
children: a
|
|
1237
1237
|
}), n[59] = o.confirmNewRow, n[60] = c, n[61] = t, n[62] = r, n[63] = s, n[64] = u) : u = n[64];
|
|
1238
1238
|
let d;
|
|
1239
|
-
n[65] !== u || n[66] !== e ? (d = /* @__PURE__ */
|
|
1239
|
+
n[65] !== u || n[66] !== e ? (d = /* @__PURE__ */ J(k, {
|
|
1240
1240
|
label: e,
|
|
1241
1241
|
withArrow: !0,
|
|
1242
1242
|
children: u
|
|
@@ -1244,12 +1244,12 @@ function nn(t) {
|
|
|
1244
1244
|
let f;
|
|
1245
1245
|
n[68] !== i || n[69] !== c ? (f = () => i.cancel(c), n[68] = i, n[69] = c, n[70] = f) : f = n[70];
|
|
1246
1246
|
let p;
|
|
1247
|
-
n[71] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */
|
|
1247
|
+
n[71] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ J(de, {
|
|
1248
1248
|
size: 16,
|
|
1249
1249
|
stroke: 1.6
|
|
1250
1250
|
}), n[71] = p) : p = n[71];
|
|
1251
1251
|
let h;
|
|
1252
|
-
n[72] !== o.discardNewRow || n[73] !== c || n[74] !== f || n[75] !== s ? (h = /* @__PURE__ */
|
|
1252
|
+
n[72] !== o.discardNewRow || n[73] !== c || n[74] !== f || n[75] !== s ? (h = /* @__PURE__ */ J(l, {
|
|
1253
1253
|
variant: "subtle",
|
|
1254
1254
|
color: "gray",
|
|
1255
1255
|
size: "sm",
|
|
@@ -1261,13 +1261,13 @@ function nn(t) {
|
|
|
1261
1261
|
children: p
|
|
1262
1262
|
}), n[72] = o.discardNewRow, n[73] = c, n[74] = f, n[75] = s, n[76] = h) : h = n[76];
|
|
1263
1263
|
let g;
|
|
1264
|
-
n[77] !== o.discardNewRow || n[78] !== h ? (g = /* @__PURE__ */
|
|
1264
|
+
n[77] !== o.discardNewRow || n[78] !== h ? (g = /* @__PURE__ */ J(k, {
|
|
1265
1265
|
label: o.discardNewRow,
|
|
1266
1266
|
withArrow: !0,
|
|
1267
1267
|
children: h
|
|
1268
1268
|
}), n[77] = o.discardNewRow, n[78] = h, n[79] = g) : g = n[79];
|
|
1269
1269
|
let _;
|
|
1270
|
-
return n[80] !== d || n[81] !== g ? (_ = /* @__PURE__ */
|
|
1270
|
+
return n[80] !== d || n[81] !== g ? (_ = /* @__PURE__ */ Y(m, {
|
|
1271
1271
|
gap: 0,
|
|
1272
1272
|
wrap: "nowrap",
|
|
1273
1273
|
children: [d, g]
|
|
@@ -1275,7 +1275,7 @@ function nn(t) {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
if (C) {
|
|
1277
1277
|
let e;
|
|
1278
|
-
n[83] !== o.rowStateDeleted || n[84] !== c ? (e = /* @__PURE__ */
|
|
1278
|
+
n[83] !== o.rowStateDeleted || n[84] !== c ? (e = /* @__PURE__ */ J(tn, {
|
|
1279
1279
|
state: "deleted",
|
|
1280
1280
|
rowId: c,
|
|
1281
1281
|
label: o.rowStateDeleted,
|
|
@@ -1286,12 +1286,12 @@ function nn(t) {
|
|
|
1286
1286
|
e.stopPropagation(), i.restoreRow(c);
|
|
1287
1287
|
}, n[86] = i, n[87] = c, n[88] = t) : t = n[88];
|
|
1288
1288
|
let r;
|
|
1289
|
-
n[89] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
1289
|
+
n[89] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(P, {
|
|
1290
1290
|
size: 16,
|
|
1291
1291
|
stroke: 1.6
|
|
1292
1292
|
}), n[89] = r) : r = n[89];
|
|
1293
1293
|
let a;
|
|
1294
|
-
n[90] !== o.restoreRow || n[91] !== c || n[92] !== t || n[93] !== s ? (a = /* @__PURE__ */
|
|
1294
|
+
n[90] !== o.restoreRow || n[91] !== c || n[92] !== t || n[93] !== s ? (a = /* @__PURE__ */ J(l, {
|
|
1295
1295
|
variant: "subtle",
|
|
1296
1296
|
color: "gray",
|
|
1297
1297
|
size: "sm",
|
|
@@ -1303,13 +1303,13 @@ function nn(t) {
|
|
|
1303
1303
|
children: r
|
|
1304
1304
|
}), n[90] = o.restoreRow, n[91] = c, n[92] = t, n[93] = s, n[94] = a) : a = n[94];
|
|
1305
1305
|
let u;
|
|
1306
|
-
n[95] !== o.restoreRow || n[96] !== a ? (u = /* @__PURE__ */
|
|
1306
|
+
n[95] !== o.restoreRow || n[96] !== a ? (u = /* @__PURE__ */ J(k, {
|
|
1307
1307
|
label: o.restoreRow,
|
|
1308
1308
|
withArrow: !0,
|
|
1309
1309
|
children: a
|
|
1310
1310
|
}), n[95] = o.restoreRow, n[96] = a, n[97] = u) : u = n[97];
|
|
1311
1311
|
let d;
|
|
1312
|
-
return n[98] !== u || n[99] !== e ? (d = /* @__PURE__ */
|
|
1312
|
+
return n[98] !== u || n[99] !== e ? (d = /* @__PURE__ */ Y(m, {
|
|
1313
1313
|
gap: 0,
|
|
1314
1314
|
wrap: "nowrap",
|
|
1315
1315
|
children: [e, u]
|
|
@@ -1318,14 +1318,14 @@ function nn(t) {
|
|
|
1318
1318
|
if (!i.canEditRow(r)) return null;
|
|
1319
1319
|
if (p?.isSubmitting) {
|
|
1320
1320
|
let e;
|
|
1321
|
-
return n[101] === o.loading ? e = n[102] : (e = /* @__PURE__ */
|
|
1321
|
+
return n[101] === o.loading ? e = n[102] : (e = /* @__PURE__ */ J(g, {
|
|
1322
1322
|
size: "xs",
|
|
1323
1323
|
"aria-label": o.loading
|
|
1324
1324
|
}), n[101] = o.loading, n[102] = e), e;
|
|
1325
1325
|
}
|
|
1326
1326
|
if (x) {
|
|
1327
1327
|
let e;
|
|
1328
|
-
n[103] !== o.rowStateEdited || n[104] !== E || n[105] !== c ? (e = /* @__PURE__ */
|
|
1328
|
+
n[103] !== o.rowStateEdited || n[104] !== E || n[105] !== c ? (e = /* @__PURE__ */ J(tn, {
|
|
1329
1329
|
state: "edited",
|
|
1330
1330
|
rowId: c,
|
|
1331
1331
|
label: o.rowStateEdited,
|
|
@@ -1336,12 +1336,12 @@ function nn(t) {
|
|
|
1336
1336
|
e.stopPropagation(), i.cancel(c);
|
|
1337
1337
|
}, n[107] = i, n[108] = c, n[109] = t) : t = n[109];
|
|
1338
1338
|
let r;
|
|
1339
|
-
n[110] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
1339
|
+
n[110] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(P, {
|
|
1340
1340
|
size: 16,
|
|
1341
1341
|
stroke: 1.6
|
|
1342
1342
|
}), n[110] = r) : r = n[110];
|
|
1343
1343
|
let a;
|
|
1344
|
-
n[111] !== o.revertRow || n[112] !== c || n[113] !== t || n[114] !== s ? (a = /* @__PURE__ */
|
|
1344
|
+
n[111] !== o.revertRow || n[112] !== c || n[113] !== t || n[114] !== s ? (a = /* @__PURE__ */ J(l, {
|
|
1345
1345
|
variant: "subtle",
|
|
1346
1346
|
color: "gray",
|
|
1347
1347
|
size: "sm",
|
|
@@ -1353,13 +1353,13 @@ function nn(t) {
|
|
|
1353
1353
|
children: r
|
|
1354
1354
|
}), n[111] = o.revertRow, n[112] = c, n[113] = t, n[114] = s, n[115] = a) : a = n[115];
|
|
1355
1355
|
let u;
|
|
1356
|
-
n[116] !== o.revertRow || n[117] !== a ? (u = /* @__PURE__ */
|
|
1356
|
+
n[116] !== o.revertRow || n[117] !== a ? (u = /* @__PURE__ */ J(k, {
|
|
1357
1357
|
label: o.revertRow,
|
|
1358
1358
|
withArrow: !0,
|
|
1359
1359
|
children: a
|
|
1360
1360
|
}), n[116] = o.revertRow, n[117] = a, n[118] = u) : u = n[118];
|
|
1361
1361
|
let d;
|
|
1362
|
-
return n[119] !== u || n[120] !== e ? (d = /* @__PURE__ */
|
|
1362
|
+
return n[119] !== u || n[120] !== e ? (d = /* @__PURE__ */ Y(m, {
|
|
1363
1363
|
gap: 0,
|
|
1364
1364
|
wrap: "nowrap",
|
|
1365
1365
|
children: [e, u]
|
|
@@ -1367,10 +1367,10 @@ function nn(t) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
if (!d) {
|
|
1369
1369
|
let e;
|
|
1370
|
-
n[122] !== i || n[123] !== a.editMode || n[124] !== o || n[125] !== c || n[126] !== s ? (e = a.editMode === "row" && /* @__PURE__ */
|
|
1370
|
+
n[122] !== i || n[123] !== a.editMode || n[124] !== o || n[125] !== c || n[126] !== s ? (e = a.editMode === "row" && /* @__PURE__ */ J(k, {
|
|
1371
1371
|
label: o.editRow,
|
|
1372
1372
|
withArrow: !0,
|
|
1373
|
-
children: /* @__PURE__ */
|
|
1373
|
+
children: /* @__PURE__ */ J(l, {
|
|
1374
1374
|
variant: "subtle",
|
|
1375
1375
|
color: "gray",
|
|
1376
1376
|
size: "sm",
|
|
@@ -1384,14 +1384,14 @@ function nn(t) {
|
|
|
1384
1384
|
columnId: null
|
|
1385
1385
|
});
|
|
1386
1386
|
},
|
|
1387
|
-
children: /* @__PURE__ */
|
|
1387
|
+
children: /* @__PURE__ */ J(K, {
|
|
1388
1388
|
size: 16,
|
|
1389
1389
|
stroke: 1.6
|
|
1390
1390
|
})
|
|
1391
1391
|
})
|
|
1392
1392
|
}), n[122] = i, n[123] = a.editMode, n[124] = o, n[125] = c, n[126] = s, n[127] = e) : e = n[127];
|
|
1393
1393
|
let t;
|
|
1394
|
-
return n[128] !== e || n[129] !== O ? (t = /* @__PURE__ */
|
|
1394
|
+
return n[128] !== e || n[129] !== O ? (t = /* @__PURE__ */ Y(m, {
|
|
1395
1395
|
gap: 0,
|
|
1396
1396
|
wrap: "nowrap",
|
|
1397
1397
|
children: [e, O]
|
|
@@ -1402,12 +1402,12 @@ function nn(t) {
|
|
|
1402
1402
|
e.stopPropagation(), i.commit(c);
|
|
1403
1403
|
}, n[131] = i, n[132] = c, n[133] = j) : j = n[133];
|
|
1404
1404
|
let N;
|
|
1405
|
-
n[134] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */
|
|
1405
|
+
n[134] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ J(B, {
|
|
1406
1406
|
size: 16,
|
|
1407
1407
|
stroke: 2
|
|
1408
1408
|
}), n[134] = N) : N = n[134];
|
|
1409
1409
|
let F;
|
|
1410
|
-
n[135] !== o.saveRow || n[136] !== c || n[137] !== j || n[138] !== A ? (F = /* @__PURE__ */
|
|
1410
|
+
n[135] !== o.saveRow || n[136] !== c || n[137] !== j || n[138] !== A ? (F = /* @__PURE__ */ J(l, {
|
|
1411
1411
|
variant: "subtle",
|
|
1412
1412
|
color: A,
|
|
1413
1413
|
size: "sm",
|
|
@@ -1418,23 +1418,23 @@ function nn(t) {
|
|
|
1418
1418
|
onClick: j,
|
|
1419
1419
|
children: N
|
|
1420
1420
|
}), n[135] = o.saveRow, n[136] = c, n[137] = j, n[138] = A, n[139] = F) : F = n[139];
|
|
1421
|
-
let
|
|
1422
|
-
n[140] !==
|
|
1423
|
-
label:
|
|
1421
|
+
let ee = F, I = E ?? o.saveRow, L;
|
|
1422
|
+
n[140] !== ee || n[141] !== I ? (L = /* @__PURE__ */ J(k, {
|
|
1423
|
+
label: I,
|
|
1424
1424
|
withArrow: !0,
|
|
1425
|
-
children:
|
|
1426
|
-
}), n[140] =
|
|
1427
|
-
let
|
|
1428
|
-
n[143] !== i || n[144] !== c ? (
|
|
1425
|
+
children: ee
|
|
1426
|
+
}), n[140] = ee, n[141] = I, n[142] = L) : L = n[142];
|
|
1427
|
+
let R;
|
|
1428
|
+
n[143] !== i || n[144] !== c ? (R = (e) => {
|
|
1429
1429
|
e.stopPropagation(), i.cancel(c);
|
|
1430
|
-
}, n[143] = i, n[144] = c, n[145] =
|
|
1431
|
-
let
|
|
1432
|
-
n[146] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1430
|
+
}, n[143] = i, n[144] = c, n[145] = R) : R = n[145];
|
|
1431
|
+
let z;
|
|
1432
|
+
n[146] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ J(de, {
|
|
1433
1433
|
size: 16,
|
|
1434
1434
|
stroke: 1.6
|
|
1435
|
-
}), n[146] =
|
|
1436
|
-
let
|
|
1437
|
-
n[147] !== o.cancelRowEdit || n[148] !== c || n[149] !==
|
|
1435
|
+
}), n[146] = z) : z = n[146];
|
|
1436
|
+
let V;
|
|
1437
|
+
n[147] !== o.cancelRowEdit || n[148] !== c || n[149] !== R ? (V = /* @__PURE__ */ J(l, {
|
|
1438
1438
|
variant: "subtle",
|
|
1439
1439
|
color: "gray",
|
|
1440
1440
|
size: "sm",
|
|
@@ -1442,21 +1442,21 @@ function nn(t) {
|
|
|
1442
1442
|
"aria-label": o.cancelRowEdit,
|
|
1443
1443
|
"data-dg-part": "cancel-row",
|
|
1444
1444
|
"data-row-id": c,
|
|
1445
|
-
onClick:
|
|
1446
|
-
children:
|
|
1447
|
-
}), n[147] = o.cancelRowEdit, n[148] = c, n[149] =
|
|
1448
|
-
let
|
|
1449
|
-
n[151] !== o.cancelRowEdit || n[152] !==
|
|
1445
|
+
onClick: R,
|
|
1446
|
+
children: z
|
|
1447
|
+
}), n[147] = o.cancelRowEdit, n[148] = c, n[149] = R, n[150] = V) : V = n[150];
|
|
1448
|
+
let H;
|
|
1449
|
+
n[151] !== o.cancelRowEdit || n[152] !== V ? (H = /* @__PURE__ */ J(k, {
|
|
1450
1450
|
label: o.cancelRowEdit,
|
|
1451
1451
|
withArrow: !0,
|
|
1452
|
-
children:
|
|
1453
|
-
}), n[151] = o.cancelRowEdit, n[152] =
|
|
1454
|
-
let
|
|
1455
|
-
return n[154] !==
|
|
1452
|
+
children: V
|
|
1453
|
+
}), n[151] = o.cancelRowEdit, n[152] = V, n[153] = H) : H = n[153];
|
|
1454
|
+
let te;
|
|
1455
|
+
return n[154] !== L || n[155] !== H ? (te = /* @__PURE__ */ Y(m, {
|
|
1456
1456
|
gap: 0,
|
|
1457
1457
|
wrap: "nowrap",
|
|
1458
|
-
children: [
|
|
1459
|
-
}), n[154] =
|
|
1458
|
+
children: [L, H]
|
|
1459
|
+
}), n[154] = L, n[155] = H, n[156] = te) : te = n[156], te;
|
|
1460
1460
|
}
|
|
1461
1461
|
function rn(e = "Edit", t = !1) {
|
|
1462
1462
|
let n = t ? 88 : 64;
|
|
@@ -1477,8 +1477,8 @@ function rn(e = "Edit", t = !1) {
|
|
|
1477
1477
|
enableHiding: !1,
|
|
1478
1478
|
enablePinning: !1,
|
|
1479
1479
|
header: () => null,
|
|
1480
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
1481
|
-
aggregatedCell: ({ row: e }) => /* @__PURE__ */
|
|
1480
|
+
cell: ({ row: e }) => /* @__PURE__ */ J(nn, { row: e }),
|
|
1481
|
+
aggregatedCell: ({ row: e }) => /* @__PURE__ */ J(nn, { row: e })
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
1484
1484
|
var an = {
|
|
@@ -1513,35 +1513,35 @@ function dn(t) {
|
|
|
1513
1513
|
n[16] === r ? g = n[17] : (g = (e) => {
|
|
1514
1514
|
e.stopPropagation(), r.toggleExpanded();
|
|
1515
1515
|
}, n[16] = r, n[17] = g);
|
|
1516
|
-
let _;
|
|
1517
|
-
n[18] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1516
|
+
let _ = s || void 0, v;
|
|
1517
|
+
n[18] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ J(H, {
|
|
1518
1518
|
size: 16,
|
|
1519
1519
|
stroke: 1.6
|
|
1520
|
-
}), n[18] =
|
|
1521
|
-
let v;
|
|
1522
|
-
n[19] === s ? v = n[20] : (v = /* @__PURE__ */ Y("span", {
|
|
1523
|
-
className: an.chevron,
|
|
1524
|
-
"data-expanded": s,
|
|
1525
|
-
children: _
|
|
1526
|
-
}), n[19] = s, n[20] = v);
|
|
1520
|
+
}), n[18] = v) : v = n[18];
|
|
1527
1521
|
let y;
|
|
1528
|
-
n[
|
|
1522
|
+
n[19] === _ ? y = n[20] : (y = /* @__PURE__ */ J("span", {
|
|
1523
|
+
className: an.chevron,
|
|
1524
|
+
"data-expanded": _,
|
|
1525
|
+
children: v
|
|
1526
|
+
}), n[19] = _, n[20] = y);
|
|
1527
|
+
let b;
|
|
1528
|
+
n[21] === l ? b = n[22] : (b = /* @__PURE__ */ J("span", {
|
|
1529
1529
|
className: an.groupLabel,
|
|
1530
1530
|
children: l
|
|
1531
|
-
}), n[21] = l, n[22] =
|
|
1532
|
-
let b;
|
|
1533
|
-
n[23] === r ? b = n[24] : (b = on(r), n[23] = r, n[24] = b);
|
|
1531
|
+
}), n[21] = l, n[22] = b);
|
|
1534
1532
|
let x;
|
|
1535
|
-
n[
|
|
1533
|
+
n[23] === r ? x = n[24] : (x = on(r), n[23] = r, n[24] = x);
|
|
1534
|
+
let S;
|
|
1535
|
+
n[25] === x.length ? S = n[26] : (S = /* @__PURE__ */ Y("span", {
|
|
1536
1536
|
className: an.groupCount,
|
|
1537
1537
|
children: [
|
|
1538
1538
|
"(",
|
|
1539
|
-
|
|
1539
|
+
x.length,
|
|
1540
1540
|
")"
|
|
1541
1541
|
]
|
|
1542
|
-
}), n[25] =
|
|
1543
|
-
let
|
|
1544
|
-
return n[27] !== c || n[28] !== r.id || n[29] !==
|
|
1542
|
+
}), n[25] = x.length, n[26] = S);
|
|
1543
|
+
let C;
|
|
1544
|
+
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, {
|
|
1545
1545
|
className: u,
|
|
1546
1546
|
style: d,
|
|
1547
1547
|
tabIndex: f,
|
|
@@ -1551,15 +1551,15 @@ function dn(t) {
|
|
|
1551
1551
|
"data-row-id": h,
|
|
1552
1552
|
onClick: g,
|
|
1553
1553
|
children: [
|
|
1554
|
-
v,
|
|
1555
1554
|
y,
|
|
1556
|
-
|
|
1555
|
+
b,
|
|
1556
|
+
S
|
|
1557
1557
|
]
|
|
1558
|
-
}), n[27] = c, n[28] = r.id, n[29] =
|
|
1558
|
+
}), 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, n[38] = C) : C = n[38], C;
|
|
1559
1559
|
}
|
|
1560
1560
|
function fn(t) {
|
|
1561
1561
|
let n = e(6), { table: r } = t, { labels: i } = $(), a;
|
|
1562
|
-
n[0] === Symbol.for("react.memo_cache_sentinel") ? (a = { compare:
|
|
1562
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (a = { compare: _e }, n[0] = a) : a = n[0];
|
|
1563
1563
|
let o = M(r.store, pn, a);
|
|
1564
1564
|
if (o.length === 0) return i.groupColumnLabel;
|
|
1565
1565
|
let s;
|
|
@@ -1589,9 +1589,9 @@ function mn(e = "Group") {
|
|
|
1589
1589
|
enableGlobalFilter: !1,
|
|
1590
1590
|
enableHiding: !1,
|
|
1591
1591
|
enablePinning: !1,
|
|
1592
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
1593
|
-
aggregatedCell: ({ row: e }) => /* @__PURE__ */
|
|
1594
|
-
header: ({ table: e }) => /* @__PURE__ */
|
|
1592
|
+
cell: ({ row: e }) => /* @__PURE__ */ J(dn, { row: e }),
|
|
1593
|
+
aggregatedCell: ({ row: e }) => /* @__PURE__ */ J(dn, { row: e }),
|
|
1594
|
+
header: ({ table: e }) => /* @__PURE__ */ J(fn, { table: e })
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
1597
|
//#endregion
|
|
@@ -1713,7 +1713,7 @@ function kn(t) {
|
|
|
1713
1713
|
let c = M(r.store, s), l = i.selectAllRows, u = c && !o, d;
|
|
1714
1714
|
n[4] === r ? d = n[5] : (d = r.getToggleAllRowsSelectedHandler(), n[4] = r, n[5] = d);
|
|
1715
1715
|
let f;
|
|
1716
|
-
return n[6] !== o || n[7] !== i.selectAllRows || n[8] !== u || n[9] !== d ? (f = /* @__PURE__ */
|
|
1716
|
+
return n[6] !== o || n[7] !== i.selectAllRows || n[8] !== u || n[9] !== d ? (f = /* @__PURE__ */ J(p, {
|
|
1717
1717
|
size: "xs",
|
|
1718
1718
|
"aria-label": l,
|
|
1719
1719
|
"data-dg-part": "select-all",
|
|
@@ -1726,7 +1726,7 @@ function An(t) {
|
|
|
1726
1726
|
let n = e(2), { table: r } = t, { features: i } = $();
|
|
1727
1727
|
if (!i.multiRowSelection) return null;
|
|
1728
1728
|
let a;
|
|
1729
|
-
return n[0] === r ? a = n[1] : (a = /* @__PURE__ */
|
|
1729
|
+
return n[0] === r ? a = n[1] : (a = /* @__PURE__ */ J(kn, { table: r }), n[0] = r, n[1] = a), a;
|
|
1730
1730
|
}
|
|
1731
1731
|
function jn(t) {
|
|
1732
1732
|
let n = e(23), { row: r } = t, { ui: i, features: a, labels: o, edit: s } = $(), c = nt(), l = r.subRows.length > 0, u;
|
|
@@ -1755,7 +1755,7 @@ function jn(t) {
|
|
|
1755
1755
|
r.table.setRowSelection(o.selection), i.actions.setSelectionAnchor(o.anchorRowId);
|
|
1756
1756
|
}, 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];
|
|
1757
1757
|
let S;
|
|
1758
|
-
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__ */
|
|
1758
|
+
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, {
|
|
1759
1759
|
size: "xs",
|
|
1760
1760
|
tabIndex: c,
|
|
1761
1761
|
"aria-label": v,
|
|
@@ -1788,9 +1788,9 @@ function Nn(e = "Checkbox selection") {
|
|
|
1788
1788
|
enableGlobalFilter: !1,
|
|
1789
1789
|
enableHiding: !1,
|
|
1790
1790
|
enablePinning: !1,
|
|
1791
|
-
header: ({ table: e }) => /* @__PURE__ */
|
|
1792
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
1793
|
-
aggregatedCell: ({ row: e }) => /* @__PURE__ */
|
|
1791
|
+
header: ({ table: e }) => /* @__PURE__ */ J(An, { table: e }),
|
|
1792
|
+
cell: ({ row: e }) => /* @__PURE__ */ J(jn, { row: e }),
|
|
1793
|
+
aggregatedCell: ({ row: e }) => /* @__PURE__ */ J(jn, { row: e })
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
1796
|
//#endregion
|
|
@@ -1887,13 +1887,13 @@ function Yn(t) {
|
|
|
1887
1887
|
let S = x, w;
|
|
1888
1888
|
n[9] === i ? w = n[10] : (w = [$e.columnsPanel, i].filter(Boolean), n[9] = i, n[10] = w);
|
|
1889
1889
|
let T = w.join(" "), E;
|
|
1890
|
-
n[11] !== _.length || n[12] !== u || n[13] !== l.columnsSearchPlaceholder || n[14] !== h || n[15] !== s ? (E = Gn(s, _.length) && /* @__PURE__ */
|
|
1890
|
+
n[11] !== _.length || n[12] !== u || n[13] !== l.columnsSearchPlaceholder || n[14] !== h || n[15] !== s ? (E = Gn(s, _.length) && /* @__PURE__ */ J("div", {
|
|
1891
1891
|
className: $e.columnsPanelSearch,
|
|
1892
|
-
children: /* @__PURE__ */
|
|
1892
|
+
children: /* @__PURE__ */ J(O, {
|
|
1893
1893
|
value: h,
|
|
1894
1894
|
onChange: (e) => g(e.currentTarget.value),
|
|
1895
1895
|
placeholder: l.columnsSearchPlaceholder,
|
|
1896
|
-
leftSection: /* @__PURE__ */
|
|
1896
|
+
leftSection: /* @__PURE__ */ J(le, {
|
|
1897
1897
|
size: 16,
|
|
1898
1898
|
stroke: 1.6
|
|
1899
1899
|
}),
|
|
@@ -1905,7 +1905,7 @@ function Yn(t) {
|
|
|
1905
1905
|
let A;
|
|
1906
1906
|
if (n[17] !== v || n[18] !== u || n[19] !== S) {
|
|
1907
1907
|
let e;
|
|
1908
|
-
n[21] !== v || n[22] !== u ? (e = (e) => /* @__PURE__ */
|
|
1908
|
+
n[21] !== v || n[22] !== u ? (e = (e) => /* @__PURE__ */ J(p, {
|
|
1909
1909
|
size: u,
|
|
1910
1910
|
label: Pn(e),
|
|
1911
1911
|
"data-dg-part": "columns-toggle",
|
|
@@ -1915,64 +1915,64 @@ function Yn(t) {
|
|
|
1915
1915
|
}, 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;
|
|
1916
1916
|
} else A = n[20];
|
|
1917
1917
|
let j;
|
|
1918
|
-
n[24] !== u || n[25] !== l || n[26] !== h || n[27] !== S.length ? (j = S.length === 0 && /* @__PURE__ */
|
|
1918
|
+
n[24] !== u || n[25] !== l || n[26] !== h || n[27] !== S.length ? (j = S.length === 0 && /* @__PURE__ */ J(D, {
|
|
1919
1919
|
span: !0,
|
|
1920
1920
|
size: u,
|
|
1921
1921
|
c: "dimmed",
|
|
1922
1922
|
children: l.columnsNoMatch(h)
|
|
1923
1923
|
}), n[24] = u, n[25] = l, n[26] = h, n[27] = S.length, n[28] = j) : j = n[28];
|
|
1924
1924
|
let M;
|
|
1925
|
-
n[29] !== A || n[30] !== j ? (M = /* @__PURE__ */
|
|
1925
|
+
n[29] !== A || n[30] !== j ? (M = /* @__PURE__ */ J(C.Autosize, {
|
|
1926
1926
|
mah: 260,
|
|
1927
1927
|
type: "auto",
|
|
1928
|
-
children: /* @__PURE__ */
|
|
1928
|
+
children: /* @__PURE__ */ Y("div", {
|
|
1929
1929
|
className: $e.columnsPanelList,
|
|
1930
1930
|
children: [A, j]
|
|
1931
1931
|
})
|
|
1932
1932
|
}), n[29] = A, n[30] = j, n[31] = M) : M = n[31];
|
|
1933
1933
|
let N = y === _.length, P = y > 0 && y < _.length, F;
|
|
1934
1934
|
n[32] === b ? F = n[33] : (F = (e) => b(e.currentTarget.checked), n[32] = b, n[33] = F);
|
|
1935
|
-
let
|
|
1936
|
-
n[34] !== u || n[35] !== l.columnsShowHideAll || n[36] !== N || n[37] !== P || n[38] !== F ? (
|
|
1935
|
+
let ee;
|
|
1936
|
+
n[34] !== u || n[35] !== l.columnsShowHideAll || n[36] !== N || n[37] !== P || n[38] !== F ? (ee = /* @__PURE__ */ J(p, {
|
|
1937
1937
|
size: u,
|
|
1938
1938
|
label: l.columnsShowHideAll,
|
|
1939
1939
|
"data-dg-part": "columns-toggle-all",
|
|
1940
1940
|
checked: N,
|
|
1941
1941
|
indeterminate: P,
|
|
1942
1942
|
onChange: F
|
|
1943
|
-
}), n[34] = u, n[35] = l.columnsShowHideAll, n[36] = N, n[37] = P, n[38] = F, n[39] =
|
|
1943
|
+
}), n[34] = u, n[35] = l.columnsShowHideAll, n[36] = N, n[37] = P, n[38] = F, n[39] = ee) : ee = n[39];
|
|
1944
|
+
let I;
|
|
1945
|
+
n[40] === m ? I = n[41] : (I = () => m(), n[40] = m, n[41] = I);
|
|
1944
1946
|
let L;
|
|
1945
|
-
n[
|
|
1946
|
-
let R;
|
|
1947
|
-
n[42] !== l.columnsReset || n[43] !== L ? (R = /* @__PURE__ */ Y(f, {
|
|
1947
|
+
n[42] !== l.columnsReset || n[43] !== I ? (L = /* @__PURE__ */ J(f, {
|
|
1948
1948
|
variant: "subtle",
|
|
1949
1949
|
size: "compact-sm",
|
|
1950
1950
|
"data-dg-part": "columns-reset",
|
|
1951
|
-
onClick:
|
|
1951
|
+
onClick: I,
|
|
1952
1952
|
children: l.columnsReset
|
|
1953
|
-
}), n[42] = l.columnsReset, n[43] =
|
|
1954
|
-
let
|
|
1955
|
-
n[45] !== l.columnsResetHint || n[46] !==
|
|
1953
|
+
}), n[42] = l.columnsReset, n[43] = I, n[44] = L) : L = n[44];
|
|
1954
|
+
let R;
|
|
1955
|
+
n[45] !== l.columnsResetHint || n[46] !== L ? (R = /* @__PURE__ */ J(k, {
|
|
1956
1956
|
label: l.columnsResetHint,
|
|
1957
1957
|
withArrow: !0,
|
|
1958
|
-
children:
|
|
1959
|
-
}), n[45] = l.columnsResetHint, n[46] =
|
|
1960
|
-
let
|
|
1961
|
-
n[48] !==
|
|
1958
|
+
children: L
|
|
1959
|
+
}), n[45] = l.columnsResetHint, n[46] = L, n[47] = R) : R = n[47];
|
|
1960
|
+
let z;
|
|
1961
|
+
n[48] !== ee || n[49] !== R ? (z = /* @__PURE__ */ Y("div", {
|
|
1962
1962
|
className: $e.columnsPanelFooter,
|
|
1963
|
-
children: [
|
|
1964
|
-
}), n[48] =
|
|
1965
|
-
let
|
|
1966
|
-
return n[51] !== a || n[52] !==
|
|
1963
|
+
children: [ee, R]
|
|
1964
|
+
}), n[48] = ee, n[49] = R, n[50] = z) : z = n[50];
|
|
1965
|
+
let B;
|
|
1966
|
+
return n[51] !== a || n[52] !== z || n[53] !== T || n[54] !== E || n[55] !== M ? (B = /* @__PURE__ */ Y(d, {
|
|
1967
1967
|
"data-dg-part": "columns-panel",
|
|
1968
1968
|
className: T,
|
|
1969
1969
|
...a,
|
|
1970
1970
|
children: [
|
|
1971
1971
|
E,
|
|
1972
1972
|
M,
|
|
1973
|
-
|
|
1973
|
+
z
|
|
1974
1974
|
]
|
|
1975
|
-
}), n[51] = a, n[52] =
|
|
1975
|
+
}), n[51] = a, n[52] = z, n[53] = T, n[54] = E, n[55] = M, n[56] = B) : B = n[56], B;
|
|
1976
1976
|
}
|
|
1977
1977
|
//#endregion
|
|
1978
1978
|
//#region src/components/TMDataGridDraftActions.tsx
|
|
@@ -1996,7 +1996,7 @@ function er(e) {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
function tr() {
|
|
1998
1998
|
let t = e(1), { edit: n } = $(), r;
|
|
1999
|
-
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = { compare:
|
|
1999
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = { compare: _e }, t[0] = r) : r = t[0], M(n.store, Vt, r);
|
|
2000
2000
|
}
|
|
2001
2001
|
function nr() {
|
|
2002
2002
|
let t = e(11), { edit: n, labels: r } = $(), i = Xn(), a = M(n.store, rr), o = i === 0, s;
|
|
@@ -2004,7 +2004,7 @@ function nr() {
|
|
|
2004
2004
|
let c;
|
|
2005
2005
|
t[2] !== i || t[3] !== r ? (c = r.saveAllEdits(i), t[2] = i, t[3] = r, t[4] = c) : c = t[4];
|
|
2006
2006
|
let l;
|
|
2007
|
-
return t[5] !== i || t[6] !== a || t[7] !== o || t[8] !== s || t[9] !== c ? (l = /* @__PURE__ */
|
|
2007
|
+
return t[5] !== i || t[6] !== a || t[7] !== o || t[8] !== s || t[9] !== c ? (l = /* @__PURE__ */ J(f, {
|
|
2008
2008
|
size: "compact-sm",
|
|
2009
2009
|
disabled: o,
|
|
2010
2010
|
loading: a,
|
|
@@ -2023,7 +2023,7 @@ function ir() {
|
|
|
2023
2023
|
let i;
|
|
2024
2024
|
t[0] !== n || t[1] !== r ? (i = n.editRowsStillOpen(r), t[0] = n, t[1] = r, t[2] = i) : i = t[2];
|
|
2025
2025
|
let a;
|
|
2026
|
-
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */
|
|
2026
|
+
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ J(D, {
|
|
2027
2027
|
size: "xs",
|
|
2028
2028
|
c: "dimmed",
|
|
2029
2029
|
"data-dg-part": "open-rows-note",
|
|
@@ -2035,7 +2035,7 @@ function ar() {
|
|
|
2035
2035
|
let t = e(6), { edit: n, labels: r } = $(), i = Xn() + $n() === 0, a;
|
|
2036
2036
|
t[0] === n ? a = t[1] : (a = () => n.cancelAll(), t[0] = n, t[1] = a);
|
|
2037
2037
|
let o;
|
|
2038
|
-
return t[2] !== r.discardAllEdits || t[3] !== i || t[4] !== a ? (o = /* @__PURE__ */
|
|
2038
|
+
return t[2] !== r.discardAllEdits || t[3] !== i || t[4] !== a ? (o = /* @__PURE__ */ J(f, {
|
|
2039
2039
|
variant: "subtle",
|
|
2040
2040
|
color: "gray",
|
|
2041
2041
|
size: "compact-sm",
|
|
@@ -2088,13 +2088,13 @@ function sr(t) {
|
|
|
2088
2088
|
});
|
|
2089
2089
|
}
|
|
2090
2090
|
let f;
|
|
2091
|
-
return n[9] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
2091
|
+
return n[9] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ Y(m, {
|
|
2092
2092
|
gap: "xs",
|
|
2093
2093
|
wrap: "nowrap",
|
|
2094
2094
|
children: [
|
|
2095
|
-
/* @__PURE__ */
|
|
2096
|
-
/* @__PURE__ */
|
|
2097
|
-
/* @__PURE__ */
|
|
2095
|
+
/* @__PURE__ */ J(ir, {}),
|
|
2096
|
+
/* @__PURE__ */ J(nr, {}),
|
|
2097
|
+
/* @__PURE__ */ J(ar, {})
|
|
2098
2098
|
]
|
|
2099
2099
|
}), n[9] = f) : f = n[9], f;
|
|
2100
2100
|
}
|
|
@@ -2192,7 +2192,7 @@ function _r(t) {
|
|
|
2192
2192
|
let u = v ? 1 : void 0, d;
|
|
2193
2193
|
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];
|
|
2194
2194
|
let f;
|
|
2195
|
-
n[11] !== g || n[12] !== r[0] || n[13] !== c || n[14] !== s || n[15] !== u || n[16] !== d ? (f = /* @__PURE__ */
|
|
2195
|
+
n[11] !== g || n[12] !== r[0] || n[13] !== c || n[14] !== s || n[15] !== u || n[16] !== d ? (f = /* @__PURE__ */ J(O, {
|
|
2196
2196
|
...s,
|
|
2197
2197
|
size: c,
|
|
2198
2198
|
type: g,
|
|
@@ -2210,7 +2210,7 @@ function _r(t) {
|
|
|
2210
2210
|
let h = v ? 1 : void 0, _;
|
|
2211
2211
|
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];
|
|
2212
2212
|
let y;
|
|
2213
|
-
n[24] !== g || n[25] !== r[1] || n[26] !== c || n[27] !== _ || n[28] !== p || n[29] !== h ? (y = /* @__PURE__ */
|
|
2213
|
+
n[24] !== g || n[25] !== r[1] || n[26] !== c || n[27] !== _ || n[28] !== p || n[29] !== h ? (y = /* @__PURE__ */ J(O, {
|
|
2214
2214
|
...p,
|
|
2215
2215
|
size: c,
|
|
2216
2216
|
type: g,
|
|
@@ -2221,7 +2221,7 @@ function _r(t) {
|
|
|
2221
2221
|
onChange: _
|
|
2222
2222
|
}), n[24] = g, n[25] = r[1], n[26] = c, n[27] = _, n[28] = p, n[29] = h, n[30] = y) : y = n[30];
|
|
2223
2223
|
let b;
|
|
2224
|
-
return n[31] !== y || n[32] !== i || n[33] !== f ? (b = /* @__PURE__ */
|
|
2224
|
+
return n[31] !== y || n[32] !== i || n[33] !== f ? (b = /* @__PURE__ */ Y(m, {
|
|
2225
2225
|
gap: 4,
|
|
2226
2226
|
wrap: "nowrap",
|
|
2227
2227
|
align: "flex-start",
|
|
@@ -2240,7 +2240,7 @@ function _r(t) {
|
|
|
2240
2240
|
let i;
|
|
2241
2241
|
n[40] === a ? i = n[41] : (i = Array.isArray(a) ? [...a] : [], n[40] = a, n[41] = i);
|
|
2242
2242
|
let u;
|
|
2243
|
-
return n[42] !== o || n[43] !== c || n[44] !== e || n[45] !== r || n[46] !== i ? (u = /* @__PURE__ */
|
|
2243
|
+
return n[42] !== o || n[43] !== c || n[44] !== e || n[45] !== r || n[46] !== i ? (u = /* @__PURE__ */ J(y, {
|
|
2244
2244
|
...e,
|
|
2245
2245
|
size: c,
|
|
2246
2246
|
comboboxProps: x,
|
|
@@ -2272,7 +2272,7 @@ function _r(t) {
|
|
|
2272
2272
|
let u = p && h !== "" ? h : null, d;
|
|
2273
2273
|
n[58] === o ? d = n[59] : (d = (e) => o(e ?? ""), n[58] = o, n[59] = d);
|
|
2274
2274
|
let f;
|
|
2275
|
-
return n[60] !== S || n[61] !== c || n[62] !== e || n[63] !== r || n[64] !== s || n[65] !== u || n[66] !== d ? (f = /* @__PURE__ */
|
|
2275
|
+
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, {
|
|
2276
2276
|
...e,
|
|
2277
2277
|
size: c,
|
|
2278
2278
|
comboboxProps: x,
|
|
@@ -2293,7 +2293,7 @@ function _r(t) {
|
|
|
2293
2293
|
let w = p ? g : "text", E = !p, D = p ? h : "", k;
|
|
2294
2294
|
n[71] === o ? k = n[72] : (k = (e) => o(e.currentTarget.value), n[71] = o, n[72] = k);
|
|
2295
2295
|
let A;
|
|
2296
|
-
return n[73] !== S || n[74] !== c || n[75] !== C || n[76] !== w || n[77] !== E || n[78] !== D || n[79] !== k ? (A = /* @__PURE__ */
|
|
2296
|
+
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, {
|
|
2297
2297
|
...C,
|
|
2298
2298
|
size: c,
|
|
2299
2299
|
type: w,
|
|
@@ -2392,9 +2392,9 @@ function wr(t) {
|
|
|
2392
2392
|
let a;
|
|
2393
2393
|
n[29] === _ ? a = n[30] : (a = (e) => !_.some((t) => t.id === e.id), n[29] = _, n[30] = a), N = e.some(a), n[10] = _, n[11] = p, n[12] = m, n[13] = C, n[14] = w, n[15] = D, n[16] = k, n[17] = A, n[18] = j, n[19] = N;
|
|
2394
2394
|
} else C = n[13], w = n[14], D = n[15], k = n[16], A = n[17], j = n[18], N = n[19];
|
|
2395
|
-
let P = N, F = h.filters,
|
|
2396
|
-
n[31] === a ?
|
|
2397
|
-
let
|
|
2395
|
+
let P = N, F = h.filters, ee;
|
|
2396
|
+
n[31] === a ? ee = n[32] : (ee = [ur.filterPanel, a].filter(Boolean), n[31] = a, n[32] = ee);
|
|
2397
|
+
let I = ee.join(" "), L;
|
|
2398
2398
|
if (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) {
|
|
2399
2399
|
let e;
|
|
2400
2400
|
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 ? (e = (e) => {
|
|
@@ -2402,13 +2402,13 @@ function wr(t) {
|
|
|
2402
2402
|
options: [],
|
|
2403
2403
|
ValueControl: _r
|
|
2404
2404
|
} : xr(p, t);
|
|
2405
|
-
return /* @__PURE__ */
|
|
2405
|
+
return /* @__PURE__ */ Y("div", {
|
|
2406
2406
|
"data-dg-part": "filter-row",
|
|
2407
2407
|
"data-column-id": e.id,
|
|
2408
2408
|
"data-layout": u,
|
|
2409
2409
|
className: ur.filterRow,
|
|
2410
2410
|
children: [
|
|
2411
|
-
/* @__PURE__ */
|
|
2411
|
+
/* @__PURE__ */ J(l, {
|
|
2412
2412
|
variant: "subtle",
|
|
2413
2413
|
color: "gray",
|
|
2414
2414
|
size: "lg",
|
|
@@ -2416,14 +2416,14 @@ function wr(t) {
|
|
|
2416
2416
|
"aria-label": h.removeFilter,
|
|
2417
2417
|
"data-dg-part": "filter-remove",
|
|
2418
2418
|
onClick: () => j(e.id),
|
|
2419
|
-
children: /* @__PURE__ */
|
|
2419
|
+
children: /* @__PURE__ */ J(de, {
|
|
2420
2420
|
size: 18,
|
|
2421
2421
|
stroke: 1.6
|
|
2422
2422
|
})
|
|
2423
2423
|
}),
|
|
2424
|
-
/* @__PURE__ */
|
|
2424
|
+
/* @__PURE__ */ J("div", {
|
|
2425
2425
|
className: ur.filterColumnSlot,
|
|
2426
|
-
children: /* @__PURE__ */
|
|
2426
|
+
children: /* @__PURE__ */ J(T, {
|
|
2427
2427
|
label: h.filterColumn,
|
|
2428
2428
|
size: g,
|
|
2429
2429
|
w: b ? "100%" : 160,
|
|
@@ -2434,9 +2434,9 @@ function wr(t) {
|
|
|
2434
2434
|
onChange: (t) => t && w(e.id, t)
|
|
2435
2435
|
})
|
|
2436
2436
|
}),
|
|
2437
|
-
/* @__PURE__ */
|
|
2437
|
+
/* @__PURE__ */ J("div", {
|
|
2438
2438
|
className: ur.filterOperatorSlot,
|
|
2439
|
-
children: /* @__PURE__ */
|
|
2439
|
+
children: /* @__PURE__ */ J(T, {
|
|
2440
2440
|
label: h.filterOperator,
|
|
2441
2441
|
size: g,
|
|
2442
2442
|
w: b ? "100%" : 170,
|
|
@@ -2450,10 +2450,10 @@ function wr(t) {
|
|
|
2450
2450
|
onChange: (t) => t && D(e.id, t)
|
|
2451
2451
|
})
|
|
2452
2452
|
}),
|
|
2453
|
-
/* @__PURE__ */
|
|
2453
|
+
/* @__PURE__ */ J("div", {
|
|
2454
2454
|
className: ur.filterValueSlot,
|
|
2455
2455
|
"data-dg-filter-value-slot": !0,
|
|
2456
|
-
children: t ? /* @__PURE__ */
|
|
2456
|
+
children: t ? /* @__PURE__ */ J(s, {
|
|
2457
2457
|
column: t,
|
|
2458
2458
|
table: p,
|
|
2459
2459
|
operator: n.operator,
|
|
@@ -2463,7 +2463,7 @@ function wr(t) {
|
|
|
2463
2463
|
size: g,
|
|
2464
2464
|
labels: h,
|
|
2465
2465
|
layout: u
|
|
2466
|
-
}) : /* @__PURE__ */
|
|
2466
|
+
}) : /* @__PURE__ */ J(O, {
|
|
2467
2467
|
label: h.filterValue,
|
|
2468
2468
|
size: g,
|
|
2469
2469
|
w: b ? "100%" : 180,
|
|
@@ -2476,50 +2476,50 @@ function wr(t) {
|
|
|
2476
2476
|
})
|
|
2477
2477
|
]
|
|
2478
2478
|
}, e.id);
|
|
2479
|
-
}, 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],
|
|
2480
|
-
} else
|
|
2481
|
-
let
|
|
2482
|
-
n[56] !== C || n[57] !== h.addFilter || n[58] !==
|
|
2479
|
+
}, 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], L = _.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] = L;
|
|
2480
|
+
} else L = n[44];
|
|
2481
|
+
let R = !P, z;
|
|
2482
|
+
n[56] !== C || n[57] !== h.addFilter || n[58] !== R ? (z = /* @__PURE__ */ J(f, {
|
|
2483
2483
|
variant: "subtle",
|
|
2484
2484
|
size: "compact-sm",
|
|
2485
|
-
disabled:
|
|
2485
|
+
disabled: R,
|
|
2486
2486
|
"data-dg-part": "filter-add",
|
|
2487
2487
|
onClick: C,
|
|
2488
2488
|
children: h.addFilter
|
|
2489
|
-
}), n[56] = C, n[57] = h.addFilter, n[58] =
|
|
2490
|
-
let
|
|
2491
|
-
n[60] === p ?
|
|
2492
|
-
let
|
|
2493
|
-
n[62] !== h.clearAllFilters || n[63] !==
|
|
2489
|
+
}), n[56] = C, n[57] = h.addFilter, n[58] = R, n[59] = z) : z = n[59];
|
|
2490
|
+
let B = _.length === 0, V;
|
|
2491
|
+
n[60] === p ? V = n[61] : (V = () => p.setColumnFilters([]), n[60] = p, n[61] = V);
|
|
2492
|
+
let H;
|
|
2493
|
+
n[62] !== h.clearAllFilters || n[63] !== B || n[64] !== V ? (H = /* @__PURE__ */ J(f, {
|
|
2494
2494
|
variant: "subtle",
|
|
2495
2495
|
color: "gray",
|
|
2496
2496
|
size: "compact-sm",
|
|
2497
|
-
disabled:
|
|
2497
|
+
disabled: B,
|
|
2498
2498
|
"data-dg-part": "filter-clear-all",
|
|
2499
|
-
onClick:
|
|
2499
|
+
onClick: V,
|
|
2500
2500
|
children: h.clearAllFilters
|
|
2501
|
-
}), n[62] = h.clearAllFilters, n[63] =
|
|
2502
|
-
let
|
|
2503
|
-
n[66] !==
|
|
2501
|
+
}), n[62] = h.clearAllFilters, n[63] = B, n[64] = V, n[65] = H) : H = n[65];
|
|
2502
|
+
let te;
|
|
2503
|
+
n[66] !== z || n[67] !== H ? (te = /* @__PURE__ */ Y("div", {
|
|
2504
2504
|
className: ur.filterPanelFooter,
|
|
2505
|
-
children: [
|
|
2506
|
-
}), n[66] =
|
|
2507
|
-
let
|
|
2508
|
-
n[69] !==
|
|
2505
|
+
children: [z, H]
|
|
2506
|
+
}), n[66] = z, n[67] = H, n[68] = te) : te = n[68];
|
|
2507
|
+
let U;
|
|
2508
|
+
n[69] !== te || n[70] !== L ? (U = /* @__PURE__ */ Y(E, {
|
|
2509
2509
|
gap: "xs",
|
|
2510
|
-
children: [
|
|
2511
|
-
}), n[69] =
|
|
2512
|
-
let
|
|
2513
|
-
return n[72] !== h.filters || n[73] !== u || n[74] !== o || n[75] !==
|
|
2510
|
+
children: [L, te]
|
|
2511
|
+
}), n[69] = te, n[70] = L, n[71] = U) : U = n[71];
|
|
2512
|
+
let W;
|
|
2513
|
+
return n[72] !== h.filters || n[73] !== u || n[74] !== o || n[75] !== U || n[76] !== I ? (W = /* @__PURE__ */ J(d, {
|
|
2514
2514
|
ref: y,
|
|
2515
2515
|
role: "group",
|
|
2516
2516
|
"aria-label": F,
|
|
2517
2517
|
"data-dg-part": "filter-panel",
|
|
2518
2518
|
"data-layout": u,
|
|
2519
|
-
className:
|
|
2519
|
+
className: I,
|
|
2520
2520
|
...o,
|
|
2521
|
-
children:
|
|
2522
|
-
}), n[72] = h.filters, n[73] = u, n[74] = o, n[75] =
|
|
2521
|
+
children: U
|
|
2522
|
+
}), n[72] = h.filters, n[73] = u, n[74] = o, n[75] = U, n[76] = I, n[77] = W) : W = n[77], W;
|
|
2523
2523
|
}
|
|
2524
2524
|
function Tr(e) {
|
|
2525
2525
|
return {
|
|
@@ -3314,41 +3314,41 @@ function ha({ fileName: e, text: t, mimeType: n = "text/csv;charset=utf-8" }) {
|
|
|
3314
3314
|
//#endregion
|
|
3315
3315
|
//#region src/useTMDataGrid.tsx
|
|
3316
3316
|
var ga = 200, _a = qe({
|
|
3317
|
-
columnFilteringFeature:
|
|
3317
|
+
columnFilteringFeature: be,
|
|
3318
3318
|
globalFilteringFeature: Le,
|
|
3319
3319
|
rowSortingFeature: Ge,
|
|
3320
3320
|
rowPaginationFeature: He,
|
|
3321
3321
|
rowSelectionFeature: We,
|
|
3322
|
-
columnPinningFeature:
|
|
3323
|
-
columnVisibilityFeature:
|
|
3324
|
-
columnOrderingFeature:
|
|
3325
|
-
columnSizingFeature:
|
|
3326
|
-
columnResizingFeature:
|
|
3327
|
-
columnFacetingFeature:
|
|
3328
|
-
columnGroupingFeature:
|
|
3322
|
+
columnPinningFeature: Ce,
|
|
3323
|
+
columnVisibilityFeature: Ee,
|
|
3324
|
+
columnOrderingFeature: Se,
|
|
3325
|
+
columnSizingFeature: Te,
|
|
3326
|
+
columnResizingFeature: we,
|
|
3327
|
+
columnFacetingFeature: ye,
|
|
3328
|
+
columnGroupingFeature: xe,
|
|
3329
3329
|
rowAggregationFeature: Be,
|
|
3330
3330
|
rowExpandingFeature: Ve,
|
|
3331
3331
|
rowPinningFeature: Ue,
|
|
3332
|
-
filteredRowModel:
|
|
3332
|
+
filteredRowModel: Q(),
|
|
3333
3333
|
groupedRowModel: je(),
|
|
3334
3334
|
sortedRowModel: Fr(),
|
|
3335
|
-
expandedRowModel:
|
|
3335
|
+
expandedRowModel: Z(),
|
|
3336
3336
|
paginatedRowModel: Me(),
|
|
3337
|
-
facetedRowModel:
|
|
3338
|
-
facetedMinMaxValues:
|
|
3339
|
-
facetedUniqueValues:
|
|
3337
|
+
facetedRowModel: ke(),
|
|
3338
|
+
facetedMinMaxValues: Oe(),
|
|
3339
|
+
facetedUniqueValues: Ae(),
|
|
3340
3340
|
filterFns: {
|
|
3341
3341
|
...Pe,
|
|
3342
3342
|
tmDataGrid: kt,
|
|
3343
3343
|
tmDataGridFuzzy: Mr
|
|
3344
3344
|
},
|
|
3345
3345
|
sortFns: Ke,
|
|
3346
|
-
aggregationFns:
|
|
3346
|
+
aggregationFns: ve,
|
|
3347
3347
|
tableMeta: ze(),
|
|
3348
3348
|
columnMeta: ze()
|
|
3349
3349
|
});
|
|
3350
3350
|
function va() {
|
|
3351
|
-
return
|
|
3351
|
+
return De();
|
|
3352
3352
|
}
|
|
3353
3353
|
var ya = 160, ba = 6, xa = [];
|
|
3354
3354
|
function Sa(e) {
|
|
@@ -3387,70 +3387,70 @@ function wa({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3387
3387
|
k,
|
|
3388
3388
|
A,
|
|
3389
3389
|
N
|
|
3390
|
-
]), { surface: F, sidebarSide:
|
|
3390
|
+
]), { surface: F, sidebarSide: ee, sidebarWidth: I, defaultOpen: L, inHeader: R } = _ ?? {}, z = o(() => Ar({
|
|
3391
3391
|
surface: F,
|
|
3392
|
-
sidebarSide:
|
|
3393
|
-
sidebarWidth:
|
|
3394
|
-
defaultOpen:
|
|
3395
|
-
inHeader:
|
|
3392
|
+
sidebarSide: ee,
|
|
3393
|
+
sidebarWidth: I,
|
|
3394
|
+
defaultOpen: L,
|
|
3395
|
+
inHeader: R
|
|
3396
3396
|
}), [
|
|
3397
3397
|
F,
|
|
3398
|
+
ee,
|
|
3398
3399
|
I,
|
|
3399
3400
|
L,
|
|
3400
|
-
R
|
|
3401
|
-
|
|
3402
|
-
]), V = C.enableColumnPinning !== !1, H = E.selectColumn, U = E.grouping, ee = b !== void 0, W = y !== void 0 && (y.mode === "row" || T || y.onRowDelete !== void 0), G = D.selectColumnLabel, te = D.groupColumnLabel, ne = D.detailsColumnLabel, re = D.editColumnLabel, ie = D.rowNumberColumnLabel, ae = E.rowNumbers, oe = T, K = o(() => {
|
|
3401
|
+
R
|
|
3402
|
+
]), B = C.enableColumnPinning !== !1, V = E.selectColumn, H = E.grouping, te = b !== void 0, U = y !== void 0 && (y.mode === "row" || T || y.onRowDelete !== void 0), W = D.selectColumnLabel, ne = D.groupColumnLabel, re = D.detailsColumnLabel, ie = D.editColumnLabel, ae = D.rowNumberColumnLabel, oe = E.rowNumbers, se = T, G = o(() => {
|
|
3403
3403
|
let e = Ca(C.columns);
|
|
3404
3404
|
return [
|
|
3405
|
-
...
|
|
3406
|
-
...
|
|
3407
|
-
...
|
|
3408
|
-
...
|
|
3405
|
+
...oe ? [gn(ae)] : [],
|
|
3406
|
+
...V ? [Nn(W)] : [],
|
|
3407
|
+
...H ? [mn(ne)] : [],
|
|
3408
|
+
...te ? [Rt(re)] : [],
|
|
3409
3409
|
...e,
|
|
3410
|
-
...
|
|
3410
|
+
...U ? [rn(ie, se)] : []
|
|
3411
3411
|
];
|
|
3412
3412
|
}, [
|
|
3413
3413
|
C.columns,
|
|
3414
|
-
|
|
3414
|
+
oe,
|
|
3415
|
+
V,
|
|
3416
|
+
te,
|
|
3415
3417
|
H,
|
|
3416
|
-
ee,
|
|
3417
3418
|
U,
|
|
3419
|
+
se,
|
|
3420
|
+
ae,
|
|
3418
3421
|
W,
|
|
3419
|
-
oe,
|
|
3420
|
-
ie,
|
|
3421
|
-
G,
|
|
3422
|
-
te,
|
|
3423
3422
|
ne,
|
|
3424
|
-
re
|
|
3425
|
-
|
|
3426
|
-
|
|
3423
|
+
re,
|
|
3424
|
+
ie
|
|
3425
|
+
]), [K] = c(() => si(e, ai(G))), ce = K.grouping ?? C.initialState?.grouping ?? [], q = s((C.state?.grouping ?? ce).length > 0), le = bi(C.state), ue = le?.columnVisibility, de = le !== void 0 && ue !== void 0 ? {
|
|
3426
|
+
...le,
|
|
3427
3427
|
columnVisibility: {
|
|
3428
|
-
...Sa(
|
|
3429
|
-
...
|
|
3428
|
+
...Sa(ue),
|
|
3429
|
+
...H ? { [sn]: q.current } : {}
|
|
3430
3430
|
}
|
|
3431
|
-
} :
|
|
3432
|
-
|
|
3433
|
-
let
|
|
3434
|
-
let t = e.columnResizing, n =
|
|
3435
|
-
return n === null || n.isResizingColumn !== t.isResizingColumn ? (
|
|
3431
|
+
} : le, fe = s(void 0), J = s(!1), Y = J.current ? de : xi(de, fe.current);
|
|
3432
|
+
J.current = !1, fe.current = Y;
|
|
3433
|
+
let pe = s(null), me = n((e) => {
|
|
3434
|
+
let t = e.columnResizing, n = pe.current;
|
|
3435
|
+
return n === null || n.isResizingColumn !== t.isResizingColumn ? (pe.current = t, e) : {
|
|
3436
3436
|
...e,
|
|
3437
3437
|
columnResizing: n
|
|
3438
3438
|
};
|
|
3439
|
-
}, []),
|
|
3440
|
-
|
|
3441
|
-
let
|
|
3442
|
-
let e =
|
|
3443
|
-
for (let e of
|
|
3444
|
-
let r =
|
|
3439
|
+
}, []), X = s(null), [he] = c(() => Qt(() => X.current)), ge = he, ve = M(ge.store, (e) => e.committedValues), ye = E.editNewRowsSticky, be = M(ge.store, (e) => ye ? xa : e.newRows.filter((e) => e.committed).map((e) => e.tempId), { compare: _e }), xe = s(C.getRowId);
|
|
3440
|
+
xe.current = C.getRowId;
|
|
3441
|
+
let Se = o(() => {
|
|
3442
|
+
let e = xe.current, t = /* @__PURE__ */ new Map(), n = [];
|
|
3443
|
+
for (let e of be) {
|
|
3444
|
+
let r = ve[e];
|
|
3445
3445
|
r !== void 0 && (t.set(r, e), n.push(r));
|
|
3446
3446
|
}
|
|
3447
|
-
let r = Object.keys(
|
|
3447
|
+
let r = Object.keys(ve).length;
|
|
3448
3448
|
if (r === 0) return {
|
|
3449
3449
|
rows: C.data,
|
|
3450
3450
|
idOf: t
|
|
3451
3451
|
};
|
|
3452
3452
|
let i = r === n.length ? C.data : C.data.map((n, r) => {
|
|
3453
|
-
let i = e?.(n, r, void 0) ?? String(r), a =
|
|
3453
|
+
let i = e?.(n, r, void 0) ?? String(r), a = ve[i];
|
|
3454
3454
|
return a === void 0 ? n : (t.set(a, i), a);
|
|
3455
3455
|
});
|
|
3456
3456
|
return {
|
|
@@ -3459,13 +3459,13 @@ function wa({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3459
3459
|
};
|
|
3460
3460
|
}, [
|
|
3461
3461
|
C.data,
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
]),
|
|
3465
|
-
|
|
3466
|
-
let
|
|
3462
|
+
ve,
|
|
3463
|
+
be
|
|
3464
|
+
]), Ce = s(Se.idOf);
|
|
3465
|
+
Ce.current = Se.idOf;
|
|
3466
|
+
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, []);
|
|
3467
3467
|
wi();
|
|
3468
|
-
let
|
|
3468
|
+
let Z = Je({
|
|
3469
3469
|
columnResizeMode: "onEnd",
|
|
3470
3470
|
autoResetExpanded: !1,
|
|
3471
3471
|
autoResetPageIndex: !1,
|
|
@@ -3474,50 +3474,50 @@ function wa({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3474
3474
|
globalFilterFn: C.quickSearchMode === "contains" ? "includesString" : "tmDataGridFuzzy",
|
|
3475
3475
|
groupedColumnMode: "remove",
|
|
3476
3476
|
...C,
|
|
3477
|
-
...
|
|
3478
|
-
onColumnFiltersChange: Ni("columnFilters", C.onColumnFiltersChange,
|
|
3479
|
-
onGlobalFilterChange: Ni("globalFilter", C.onGlobalFilterChange,
|
|
3480
|
-
onSortingChange: Ni("sorting", C.onSortingChange,
|
|
3481
|
-
onGroupingChange: Ni("grouping", C.onGroupingChange,
|
|
3477
|
+
...Ee ? {
|
|
3478
|
+
onColumnFiltersChange: Ni("columnFilters", C.onColumnFiltersChange, De),
|
|
3479
|
+
onGlobalFilterChange: Ni("globalFilter", C.onGlobalFilterChange, De),
|
|
3480
|
+
onSortingChange: Ni("sorting", C.onSortingChange, De),
|
|
3481
|
+
onGroupingChange: Ni("grouping", C.onGroupingChange, De)
|
|
3482
3482
|
} : {},
|
|
3483
|
-
data:
|
|
3484
|
-
getRowId:
|
|
3483
|
+
data: Se.rows,
|
|
3484
|
+
getRowId: we,
|
|
3485
3485
|
...b === void 0 ? {} : { getRowCanExpand: C.getRowCanExpand ?? (() => !0) },
|
|
3486
3486
|
enableRowPinning: (e) => !e.getIsGrouped() && (typeof C.enableRowPinning == "function" ? C.enableRowPinning(e) : C.enableRowPinning === !0),
|
|
3487
|
-
...T ? { enableRowSelection: (e) => !
|
|
3487
|
+
...T ? { enableRowSelection: (e) => !he.isRowDeleted(e.id) && (typeof C.enableRowSelection == "function" ? C.enableRowSelection(e) : C.enableRowSelection !== !1) } : {},
|
|
3488
3488
|
features: _a,
|
|
3489
|
-
columns:
|
|
3490
|
-
state:
|
|
3489
|
+
columns: G,
|
|
3490
|
+
state: Y,
|
|
3491
3491
|
initialState: {
|
|
3492
3492
|
...C.initialState,
|
|
3493
|
-
...
|
|
3493
|
+
...K,
|
|
3494
3494
|
columnVisibility: {
|
|
3495
3495
|
...Sa({
|
|
3496
3496
|
...C.initialState?.columnVisibility,
|
|
3497
|
-
...
|
|
3497
|
+
...K.columnVisibility
|
|
3498
3498
|
}),
|
|
3499
|
-
...
|
|
3499
|
+
...H ? { [sn]: ce.length > 0 } : {}
|
|
3500
3500
|
},
|
|
3501
3501
|
columnPinning: {
|
|
3502
3502
|
start: [
|
|
3503
|
-
...
|
|
3504
|
-
...
|
|
3505
|
-
...
|
|
3506
|
-
...
|
|
3507
|
-
...(
|
|
3503
|
+
...oe && B ? [hn] : [],
|
|
3504
|
+
...V && B ? [On] : [],
|
|
3505
|
+
...H && B ? [sn] : [],
|
|
3506
|
+
...te && B ? [Ft] : [],
|
|
3507
|
+
...(K.columnPinning?.start ?? C.initialState?.columnPinning?.start ?? []).filter((e) => e !== "__rowNumber__" && e !== "__select__" && e !== "__details__" && e !== "__group__")
|
|
3508
3508
|
],
|
|
3509
|
-
end: [...(
|
|
3509
|
+
end: [...(K.columnPinning?.end ?? C.initialState?.columnPinning?.end ?? []).filter((e) => e !== en), ...U && B ? [en] : []]
|
|
3510
3510
|
},
|
|
3511
3511
|
pagination: {
|
|
3512
3512
|
pageIndex: 0,
|
|
3513
3513
|
pageSize: 25,
|
|
3514
3514
|
...C.initialState?.pagination,
|
|
3515
|
-
...
|
|
3515
|
+
...K.pagination
|
|
3516
3516
|
}
|
|
3517
3517
|
}
|
|
3518
|
-
},
|
|
3519
|
-
Ti(),
|
|
3520
|
-
table:
|
|
3518
|
+
}, me);
|
|
3519
|
+
Ti(), Te.current = Z, Di(Z.store), X.current = {
|
|
3520
|
+
table: Z,
|
|
3521
3521
|
editMode: w ?? "cell",
|
|
3522
3522
|
draft: T,
|
|
3523
3523
|
rowValidators: y?.rowValidators,
|
|
@@ -3530,61 +3530,61 @@ function wa({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3530
3530
|
onRowAdd: y?.onRowAdd,
|
|
3531
3531
|
onRowDelete: y?.onRowDelete
|
|
3532
3532
|
};
|
|
3533
|
-
let
|
|
3533
|
+
let Oe = s({
|
|
3534
3534
|
editMode: w,
|
|
3535
3535
|
editDraft: T
|
|
3536
3536
|
});
|
|
3537
3537
|
i(() => {
|
|
3538
|
-
let e =
|
|
3539
|
-
e.editMode === w && e.editDraft === T || (
|
|
3538
|
+
let e = Oe.current;
|
|
3539
|
+
e.editMode === w && e.editDraft === T || (Oe.current = {
|
|
3540
3540
|
editMode: w,
|
|
3541
3541
|
editDraft: T
|
|
3542
|
-
},
|
|
3542
|
+
}, ge.cancelAll());
|
|
3543
3543
|
}, [
|
|
3544
3544
|
w,
|
|
3545
3545
|
T,
|
|
3546
|
-
|
|
3546
|
+
ge
|
|
3547
3547
|
]);
|
|
3548
|
-
let
|
|
3548
|
+
let ke = y !== void 0, Ae = C.manualPagination === !0 || C.manualFiltering === !0;
|
|
3549
3549
|
i(() => {
|
|
3550
|
-
!
|
|
3550
|
+
!ke || Ae || he.forgetMissingRows(Te.current.getCoreRowModel().rowsById);
|
|
3551
3551
|
}, [
|
|
3552
|
-
|
|
3553
|
-
Oe,
|
|
3552
|
+
Se.rows,
|
|
3554
3553
|
ke,
|
|
3555
|
-
|
|
3556
|
-
|
|
3554
|
+
Ae,
|
|
3555
|
+
he
|
|
3556
|
+
]), i(() => ki(Te.current, he.isRowDeleted), [he]), i(() => {
|
|
3557
3557
|
y !== void 0 && C.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.");
|
|
3558
3558
|
}, []), i(() => {
|
|
3559
3559
|
for (let { slice: e, handler: t } of Si(C)) 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.`);
|
|
3560
3560
|
}, []), i(() => {
|
|
3561
|
-
if (!
|
|
3562
|
-
let e =
|
|
3563
|
-
|
|
3561
|
+
if (!H) return;
|
|
3562
|
+
let e = Z.store.state.grouping;
|
|
3563
|
+
q.current = e.length > 0, Z.store.state.columnVisibility?.__group__ !== e.length > 0 && Z.setColumnVisibility((t) => ({
|
|
3564
3564
|
...t,
|
|
3565
3565
|
[sn]: e.length > 0
|
|
3566
3566
|
}));
|
|
3567
|
-
let t =
|
|
3568
|
-
t.grouping !== e && (e = t.grouping,
|
|
3567
|
+
let t = Z.store.subscribe((t) => {
|
|
3568
|
+
t.grouping !== e && (e = t.grouping, q.current = t.grouping.length > 0, J.current = !0, Z.setColumnVisibility((e) => ({
|
|
3569
3569
|
...e,
|
|
3570
3570
|
[sn]: t.grouping.length > 0
|
|
3571
3571
|
})));
|
|
3572
3572
|
});
|
|
3573
3573
|
return () => t.unsubscribe();
|
|
3574
|
-
}, [
|
|
3574
|
+
}, [H, Z]), i(() => {
|
|
3575
3575
|
if (!ni(e)) return;
|
|
3576
|
-
ci(
|
|
3576
|
+
ci(Z.store.state, e);
|
|
3577
3577
|
let t, n = null, r = () => {
|
|
3578
3578
|
t = void 0, n !== null && (ci(n, e), n = null);
|
|
3579
|
-
}, i =
|
|
3579
|
+
}, i = Z.store.subscribe((e) => {
|
|
3580
3580
|
n = e, t !== void 0 && clearTimeout(t), t = setTimeout(r, ga);
|
|
3581
3581
|
});
|
|
3582
3582
|
return () => {
|
|
3583
3583
|
i.unsubscribe(), t !== void 0 && clearTimeout(t), r();
|
|
3584
3584
|
};
|
|
3585
|
-
}, [e,
|
|
3586
|
-
let
|
|
3587
|
-
filterPanelOpen:
|
|
3585
|
+
}, [e, Z]);
|
|
3586
|
+
let Q = j({
|
|
3587
|
+
filterPanelOpen: z.defaultOpen,
|
|
3588
3588
|
filterPanelColumnId: null,
|
|
3589
3589
|
headerFilterColumnId: null,
|
|
3590
3590
|
draggedColumnId: null,
|
|
@@ -3648,44 +3648,44 @@ function wa({ persist: e, labels: t, enableColumnOrdering: r, enablePagination:
|
|
|
3648
3648
|
i(() => {
|
|
3649
3649
|
je.current = m;
|
|
3650
3650
|
}, [m]), i(() => {
|
|
3651
|
-
let e =
|
|
3651
|
+
let e = Q.state.highlightedRowId, t = Q.subscribe((t) => {
|
|
3652
3652
|
t.highlightedRowId !== e && (e = t.highlightedRowId, je.current?.(t.highlightedRowId));
|
|
3653
3653
|
});
|
|
3654
3654
|
return () => t.unsubscribe();
|
|
3655
|
-
}, [
|
|
3655
|
+
}, [Q]);
|
|
3656
3656
|
let Me = s(g);
|
|
3657
3657
|
i(() => {
|
|
3658
3658
|
Me.current = g;
|
|
3659
3659
|
}, [g]), i(() => {
|
|
3660
|
-
let e =
|
|
3660
|
+
let e = Q.state.focusedCell, t = Q.subscribe((t) => {
|
|
3661
3661
|
t.focusedCell !== e && (e = t.focusedCell, Me.current?.(t.focusedCell));
|
|
3662
3662
|
});
|
|
3663
3663
|
return () => t.unsubscribe();
|
|
3664
|
-
}, [
|
|
3664
|
+
}, [Q]);
|
|
3665
3665
|
let Ne = s(() => {});
|
|
3666
3666
|
Ne.current = () => {
|
|
3667
3667
|
let e = C.initialState, t = [...e?.grouping ?? []];
|
|
3668
|
-
|
|
3668
|
+
Z.setGrouping(t), Z.setColumnVisibility({
|
|
3669
3669
|
...Sa({ ...e?.columnVisibility }),
|
|
3670
|
-
...
|
|
3671
|
-
}),
|
|
3670
|
+
...H ? { [sn]: t.length > 0 } : {}
|
|
3671
|
+
}), Z.setColumnSizing({ ...e?.columnSizing }), Z.setColumnOrder([...e?.columnOrder ?? []]), Z.setColumnPinning({
|
|
3672
3672
|
start: [
|
|
3673
|
-
...
|
|
3674
|
-
...
|
|
3675
|
-
...
|
|
3676
|
-
...
|
|
3673
|
+
...oe && B ? [hn] : [],
|
|
3674
|
+
...V && B ? [On] : [],
|
|
3675
|
+
...H && B ? [sn] : [],
|
|
3676
|
+
...te && B ? [Ft] : [],
|
|
3677
3677
|
...(e?.columnPinning?.start ?? []).filter((e) => e !== "__rowNumber__" && e !== "__select__" && e !== "__details__" && e !== "__group__")
|
|
3678
3678
|
],
|
|
3679
|
-
end: [...(e?.columnPinning?.end ?? []).filter((e) => e !== en), ...
|
|
3679
|
+
end: [...(e?.columnPinning?.end ?? []).filter((e) => e !== en), ...U && B ? [en] : []]
|
|
3680
3680
|
});
|
|
3681
3681
|
};
|
|
3682
3682
|
let Pe = n(() => Ne.current(), []), Fe = s(() => !1);
|
|
3683
3683
|
return {
|
|
3684
|
-
table:
|
|
3685
|
-
ui:
|
|
3686
|
-
edit:
|
|
3684
|
+
table: Z,
|
|
3685
|
+
ui: Q,
|
|
3686
|
+
edit: ge,
|
|
3687
3687
|
features: E,
|
|
3688
|
-
filters:
|
|
3688
|
+
filters: z,
|
|
3689
3689
|
exportOptions: P,
|
|
3690
3690
|
labels: D,
|
|
3691
3691
|
renderDetails: b,
|
|
@@ -3731,7 +3731,7 @@ function Da(t) {
|
|
|
3731
3731
|
let t;
|
|
3732
3732
|
n[28] !== r || n[29] !== h || n[30] !== m || n[31] !== a || n[32] !== l || n[33] !== p ? (t = (e) => {
|
|
3733
3733
|
let t = p.getColumn(e.id), n = t ? Pn(t) : e.id, i = e.value;
|
|
3734
|
-
return bt(i) ? /* @__PURE__ */
|
|
3734
|
+
return bt(i) ? /* @__PURE__ */ J(x, {
|
|
3735
3735
|
size: l,
|
|
3736
3736
|
className: kr.pill,
|
|
3737
3737
|
"data-dg-part": "filter-pill",
|
|
@@ -3743,7 +3743,7 @@ function Da(t) {
|
|
|
3743
3743
|
"aria-hidden": !1,
|
|
3744
3744
|
tabIndex: 0
|
|
3745
3745
|
},
|
|
3746
|
-
children: /* @__PURE__ */
|
|
3746
|
+
children: /* @__PURE__ */ J(A, {
|
|
3747
3747
|
className: kr.pillLabel,
|
|
3748
3748
|
onClick: () => a ? a(e.id) : Ea(r, e.id),
|
|
3749
3749
|
children: wt({
|
|
@@ -3760,12 +3760,12 @@ function Da(t) {
|
|
|
3760
3760
|
} 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];
|
|
3761
3761
|
if (y !== Symbol.for("react.early_return_sentinel")) return y;
|
|
3762
3762
|
let O;
|
|
3763
|
-
n[35] !== g || n[36] !== b || n[37] !== S ? (O = /* @__PURE__ */
|
|
3763
|
+
n[35] !== g || n[36] !== b || n[37] !== S ? (O = /* @__PURE__ */ J(g, {
|
|
3764
3764
|
size: b,
|
|
3765
3765
|
children: S
|
|
3766
3766
|
}), n[35] = g, n[36] = b, n[37] = S, n[38] = O) : O = n[38];
|
|
3767
3767
|
let k;
|
|
3768
|
-
n[39] !== v || n[40] !== m.clearAllFilters || n[41] !== u || n[42] !== p ? (k = u && v.length > 1 && /* @__PURE__ */
|
|
3768
|
+
n[39] !== v || n[40] !== m.clearAllFilters || n[41] !== u || n[42] !== p ? (k = u && v.length > 1 && /* @__PURE__ */ J(f, {
|
|
3769
3769
|
variant: "subtle",
|
|
3770
3770
|
color: "gray",
|
|
3771
3771
|
size: "compact-xs",
|
|
@@ -3773,7 +3773,7 @@ function Da(t) {
|
|
|
3773
3773
|
children: m.clearAllFilters
|
|
3774
3774
|
}), n[39] = v, n[40] = m.clearAllFilters, n[41] = u, n[42] = p, n[43] = k) : k = n[43];
|
|
3775
3775
|
let j;
|
|
3776
|
-
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__ */
|
|
3776
|
+
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(_, {
|
|
3777
3777
|
role: C,
|
|
3778
3778
|
"aria-label": w,
|
|
3779
3779
|
"data-dg-part": T,
|
|
@@ -3791,7 +3791,7 @@ function ka(e) {
|
|
|
3791
3791
|
var Aa = { footer: "_footer_te0a3_1" }, ja = "columnResizing";
|
|
3792
3792
|
function Ma(t) {
|
|
3793
3793
|
let n = e(1), r;
|
|
3794
|
-
n[0] === Symbol.for("react.memo_cache_sentinel") ? (r = { compare:
|
|
3794
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (r = { compare: _e }, n[0] = r) : r = n[0], M(t, Na, r);
|
|
3795
3795
|
}
|
|
3796
3796
|
function Na(e) {
|
|
3797
3797
|
let t = {};
|
|
@@ -3832,7 +3832,7 @@ function Fa(t) {
|
|
|
3832
3832
|
let l = c, { pageSize: u } = i.store.state.pagination, d;
|
|
3833
3833
|
n[3] !== u || n[4] !== r ? (d = r.includes(u) ? r : [...r, u].sort(Ia), n[3] = u, n[4] = r, n[5] = d) : d = n[5];
|
|
3834
3834
|
let f = d, p;
|
|
3835
|
-
n[6] !== s || n[7] !== o.rowsPerPage ? (p = /* @__PURE__ */
|
|
3835
|
+
n[6] !== s || n[7] !== o.rowsPerPage ? (p = /* @__PURE__ */ J(D, {
|
|
3836
3836
|
span: !0,
|
|
3837
3837
|
size: s,
|
|
3838
3838
|
c: "dimmed",
|
|
@@ -3845,7 +3845,7 @@ function Fa(t) {
|
|
|
3845
3845
|
i.setPageSize(Number(e) || r[0]), i.setPageIndex(0);
|
|
3846
3846
|
}, n[11] = r[0], n[12] = i, n[13] = v) : v = n[13];
|
|
3847
3847
|
let y;
|
|
3848
|
-
n[14] !== s || n[15] !== h || n[16] !== g || n[17] !== _ || n[18] !== v ? (y = /* @__PURE__ */
|
|
3848
|
+
n[14] !== s || n[15] !== h || n[16] !== g || n[17] !== _ || n[18] !== v ? (y = /* @__PURE__ */ J(T, {
|
|
3849
3849
|
size: s,
|
|
3850
3850
|
w: 78,
|
|
3851
3851
|
allowDeselect: !1,
|
|
@@ -3857,7 +3857,7 @@ function Fa(t) {
|
|
|
3857
3857
|
onChange: v
|
|
3858
3858
|
}), n[14] = s, n[15] = h, n[16] = g, n[17] = _, n[18] = v, n[19] = y) : y = n[19];
|
|
3859
3859
|
let b;
|
|
3860
|
-
return n[20] !== p || n[21] !== y ? (b = /* @__PURE__ */
|
|
3860
|
+
return n[20] !== p || n[21] !== y ? (b = /* @__PURE__ */ Y(m, {
|
|
3861
3861
|
gap: "xs",
|
|
3862
3862
|
wrap: "nowrap",
|
|
3863
3863
|
children: [p, y]
|
|
@@ -3881,7 +3881,7 @@ function La() {
|
|
|
3881
3881
|
}) : 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;
|
|
3882
3882
|
} else u = t[9], d = t[10], f = t[11], p = t[12], m = t[13], h = t[14];
|
|
3883
3883
|
let g;
|
|
3884
|
-
return t[15] !== u || t[16] !== d || t[17] !== f || t[18] !== p || t[19] !== m || t[20] !== h ? (g = /* @__PURE__ */
|
|
3884
|
+
return t[15] !== u || t[16] !== d || t[17] !== f || t[18] !== p || t[19] !== m || t[20] !== h ? (g = /* @__PURE__ */ J(u, {
|
|
3885
3885
|
span: d,
|
|
3886
3886
|
size: f,
|
|
3887
3887
|
c: p,
|
|
@@ -3900,7 +3900,7 @@ function Ra() {
|
|
|
3900
3900
|
pageCount: n.getPageCount()
|
|
3901
3901
|
}) : i.groupedAllRows(n.getFilteredRowModel().rows.length), t[3] = i, t[4] = c, t[5] = s, t[6] = n, t[7] = l) : l = t[7];
|
|
3902
3902
|
let u;
|
|
3903
|
-
return t[8] !== a || t[9] !== l ? (u = /* @__PURE__ */
|
|
3903
|
+
return t[8] !== a || t[9] !== l ? (u = /* @__PURE__ */ J(D, {
|
|
3904
3904
|
span: !0,
|
|
3905
3905
|
size: a,
|
|
3906
3906
|
c: "dimmed",
|
|
@@ -3918,12 +3918,12 @@ function za() {
|
|
|
3918
3918
|
let c;
|
|
3919
3919
|
t[6] === n ? c = t[7] : (c = () => n.previousPage(), t[6] = n, t[7] = c);
|
|
3920
3920
|
let u;
|
|
3921
|
-
t[8] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
3921
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ J(V, {
|
|
3922
3922
|
size: 18,
|
|
3923
3923
|
stroke: 1.6
|
|
3924
3924
|
}), t[8] = u) : u = t[8];
|
|
3925
3925
|
let d;
|
|
3926
|
-
t[9] !== i.previousPage || t[10] !== s || t[11] !== c ? (d = /* @__PURE__ */
|
|
3926
|
+
t[9] !== i.previousPage || t[10] !== s || t[11] !== c ? (d = /* @__PURE__ */ J(l, {
|
|
3927
3927
|
variant: "subtle",
|
|
3928
3928
|
color: "gray",
|
|
3929
3929
|
"aria-label": i.previousPage,
|
|
@@ -3937,12 +3937,12 @@ function za() {
|
|
|
3937
3937
|
let p;
|
|
3938
3938
|
t[16] === n ? p = t[17] : (p = () => n.nextPage(), t[16] = n, t[17] = p);
|
|
3939
3939
|
let h;
|
|
3940
|
-
t[18] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */
|
|
3940
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ J(H, {
|
|
3941
3941
|
size: 18,
|
|
3942
3942
|
stroke: 1.6
|
|
3943
3943
|
}), t[18] = h) : h = t[18];
|
|
3944
3944
|
let g;
|
|
3945
|
-
t[19] !== i.nextPage || t[20] !== f || t[21] !== p ? (g = /* @__PURE__ */
|
|
3945
|
+
t[19] !== i.nextPage || t[20] !== f || t[21] !== p ? (g = /* @__PURE__ */ J(l, {
|
|
3946
3946
|
variant: "subtle",
|
|
3947
3947
|
color: "gray",
|
|
3948
3948
|
"aria-label": i.nextPage,
|
|
@@ -3952,7 +3952,7 @@ function za() {
|
|
|
3952
3952
|
children: h
|
|
3953
3953
|
}), t[19] = i.nextPage, t[20] = f, t[21] = p, t[22] = g) : g = t[22];
|
|
3954
3954
|
let _;
|
|
3955
|
-
return t[23] !== d || t[24] !== g ? (_ = /* @__PURE__ */
|
|
3955
|
+
return t[23] !== d || t[24] !== g ? (_ = /* @__PURE__ */ Y(m, {
|
|
3956
3956
|
gap: 4,
|
|
3957
3957
|
wrap: "nowrap",
|
|
3958
3958
|
children: [d, g]
|
|
@@ -3973,7 +3973,7 @@ function Va(t) {
|
|
|
3973
3973
|
Ma(u.store);
|
|
3974
3974
|
let m;
|
|
3975
3975
|
n[7] === s ? m = n[8] : (m = {
|
|
3976
|
-
PageSize: () => /* @__PURE__ */
|
|
3976
|
+
PageSize: () => /* @__PURE__ */ J(Fa, { pageSizeOptions: s }),
|
|
3977
3977
|
Range: La,
|
|
3978
3978
|
PageNumber: Ra,
|
|
3979
3979
|
Pager: za
|
|
@@ -3985,7 +3985,7 @@ function Va(t) {
|
|
|
3985
3985
|
_ = Symbol.for("react.early_return_sentinel");
|
|
3986
3986
|
bb0: if (g = Tn(u, f), a) {
|
|
3987
3987
|
let { state: e, actions: t } = Pa(u, g);
|
|
3988
|
-
_ = /* @__PURE__ */
|
|
3988
|
+
_ = /* @__PURE__ */ J(d, {
|
|
3989
3989
|
"data-dg-part": "footer",
|
|
3990
3990
|
className: l,
|
|
3991
3991
|
...i,
|
|
@@ -4000,14 +4000,14 @@ function Va(t) {
|
|
|
4000
4000
|
n[9] = h, n[10] = f, n[11] = l, n[12] = i, n[13] = a, n[14] = u, n[15] = g, n[16] = _;
|
|
4001
4001
|
} else g = n[15], _ = n[16];
|
|
4002
4002
|
if (_ !== Symbol.for("react.early_return_sentinel")) return _;
|
|
4003
|
-
let v = !g, y;
|
|
4004
|
-
n[17] === h.PageSize ? y = n[18] : (y = /* @__PURE__ */
|
|
4003
|
+
let v = !g || void 0, y;
|
|
4004
|
+
n[17] === h.PageSize ? y = n[18] : (y = /* @__PURE__ */ J(h.PageSize, {}), n[17] = h.PageSize, n[18] = y);
|
|
4005
4005
|
let b;
|
|
4006
|
-
n[19] === h.Range ? b = n[20] : (b = /* @__PURE__ */
|
|
4006
|
+
n[19] === h.Range ? b = n[20] : (b = /* @__PURE__ */ J(h.Range, {}), n[19] = h.Range, n[20] = b);
|
|
4007
4007
|
let x;
|
|
4008
|
-
n[21] === h.Pager ? x = n[22] : (x = /* @__PURE__ */
|
|
4008
|
+
n[21] === h.Pager ? x = n[22] : (x = /* @__PURE__ */ J(h.Pager, {}), n[21] = h.Pager, n[22] = x);
|
|
4009
4009
|
let S;
|
|
4010
|
-
n[23] !== l || n[24] !== i || n[25] !== v || n[26] !== y || n[27] !== b || n[28] !== x ? (S = /* @__PURE__ */
|
|
4010
|
+
n[23] !== l || n[24] !== i || n[25] !== v || n[26] !== y || n[27] !== b || n[28] !== x ? (S = /* @__PURE__ */ Y(d, {
|
|
4011
4011
|
"data-dg-part": "footer",
|
|
4012
4012
|
className: l,
|
|
4013
4013
|
"data-paging-suspended": v,
|
|
@@ -4019,7 +4019,7 @@ function Va(t) {
|
|
|
4019
4019
|
]
|
|
4020
4020
|
}), n[23] = l, n[24] = i, n[25] = v, n[26] = y, n[27] = b, n[28] = x, n[29] = S) : S = n[29];
|
|
4021
4021
|
let C;
|
|
4022
|
-
return n[30] !== p.pagingSuspendedHint || n[31] !== g || n[32] !== S ? (C = /* @__PURE__ */
|
|
4022
|
+
return n[30] !== p.pagingSuspendedHint || n[31] !== g || n[32] !== S ? (C = /* @__PURE__ */ J(k, {
|
|
4023
4023
|
label: p.pagingSuspendedHint,
|
|
4024
4024
|
disabled: g,
|
|
4025
4025
|
withArrow: !0,
|
|
@@ -4055,7 +4055,7 @@ function Ha(t) {
|
|
|
4055
4055
|
}
|
|
4056
4056
|
//#endregion
|
|
4057
4057
|
//#region src/components/TMDataGridMenu.tsx
|
|
4058
|
-
var Ua = (e) => /* @__PURE__ */
|
|
4058
|
+
var Ua = (e) => /* @__PURE__ */ J("button", {
|
|
4059
4059
|
...e,
|
|
4060
4060
|
role: "menuitemcheckbox"
|
|
4061
4061
|
});
|
|
@@ -4063,12 +4063,12 @@ function Wa(t) {
|
|
|
4063
4063
|
let n = e(20), r, i, a, o;
|
|
4064
4064
|
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);
|
|
4065
4065
|
let { labels: s, controlSize: c } = $(), u = a ?? s.menuButton, d;
|
|
4066
|
-
n[5] === i ? d = n[6] : (d = i ?? /* @__PURE__ */
|
|
4066
|
+
n[5] === i ? d = n[6] : (d = i ?? /* @__PURE__ */ J(G, {
|
|
4067
4067
|
size: 18,
|
|
4068
4068
|
stroke: 1.6
|
|
4069
4069
|
}), n[5] = i, n[6] = d);
|
|
4070
4070
|
let f;
|
|
4071
|
-
n[7] !== c || n[8] !== d || n[9] !== u ? (f = /* @__PURE__ */
|
|
4071
|
+
n[7] !== c || n[8] !== d || n[9] !== u ? (f = /* @__PURE__ */ J(l, {
|
|
4072
4072
|
variant: "subtle",
|
|
4073
4073
|
color: "gray",
|
|
4074
4074
|
size: c,
|
|
@@ -4077,15 +4077,15 @@ function Wa(t) {
|
|
|
4077
4077
|
children: d
|
|
4078
4078
|
}), n[7] = c, n[8] = d, n[9] = u, n[10] = f) : f = n[10];
|
|
4079
4079
|
let p;
|
|
4080
|
-
n[11] !== f || n[12] !== u ? (p = /* @__PURE__ */
|
|
4080
|
+
n[11] !== f || n[12] !== u ? (p = /* @__PURE__ */ J(_.Target, { children: /* @__PURE__ */ J(k, {
|
|
4081
4081
|
label: u,
|
|
4082
4082
|
openDelay: 400,
|
|
4083
4083
|
children: f
|
|
4084
4084
|
}) }), n[11] = f, n[12] = u, n[13] = p) : p = n[13];
|
|
4085
4085
|
let m;
|
|
4086
|
-
n[14] === r ? m = n[15] : (m = /* @__PURE__ */
|
|
4086
|
+
n[14] === r ? m = n[15] : (m = /* @__PURE__ */ J(_.Dropdown, { children: r }), n[14] = r, n[15] = m);
|
|
4087
4087
|
let h;
|
|
4088
|
-
return n[16] !== o || n[17] !== p || n[18] !== m ? (h = /* @__PURE__ */
|
|
4088
|
+
return n[16] !== o || n[17] !== p || n[18] !== m ? (h = /* @__PURE__ */ Y(_, {
|
|
4089
4089
|
position: "bottom-end",
|
|
4090
4090
|
shadow: "md",
|
|
4091
4091
|
width: 260,
|
|
@@ -4100,7 +4100,7 @@ function Ga(t) {
|
|
|
4100
4100
|
let d;
|
|
4101
4101
|
n[0] !== s.length || n[1] !== i ? (d = Gn(i, s.length), n[0] = s.length, n[1] = i, n[2] = d) : d = n[2];
|
|
4102
4102
|
let f = d, p = Ka, m;
|
|
4103
|
-
n[3] !== o || n[4] !== a || n[5] !== l || n[6] !== f ? (m = f && /* @__PURE__ */
|
|
4103
|
+
n[3] !== o || n[4] !== a || n[5] !== l || n[6] !== f ? (m = f && /* @__PURE__ */ J(_.Search, {
|
|
4104
4104
|
value: l,
|
|
4105
4105
|
onChange: (e) => u(e.currentTarget.value),
|
|
4106
4106
|
onKeyDown: p,
|
|
@@ -4109,11 +4109,11 @@ function Ga(t) {
|
|
|
4109
4109
|
"data-dg-part": "columns-search"
|
|
4110
4110
|
}), n[3] = o, n[4] = a, n[5] = l, n[6] = f, n[7] = m) : m = n[7];
|
|
4111
4111
|
let h;
|
|
4112
|
-
n[8] === l ? h = n[9] : (h = /* @__PURE__ */
|
|
4112
|
+
n[8] === l ? h = n[9] : (h = /* @__PURE__ */ J(qa, { search: l }), n[8] = l, n[9] = h);
|
|
4113
4113
|
let g, v, y;
|
|
4114
|
-
n[10] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */
|
|
4114
|
+
n[10] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ J(_.Divider, {}), v = /* @__PURE__ */ J(Ja, {}), y = /* @__PURE__ */ J(Ya, {}), n[10] = g, n[11] = v, n[12] = y) : (g = n[10], v = n[11], y = n[12]);
|
|
4115
4115
|
let b;
|
|
4116
|
-
return n[13] !== m || n[14] !== h ? (b = /* @__PURE__ */
|
|
4116
|
+
return n[13] !== m || n[14] !== h ? (b = /* @__PURE__ */ Y(fe, { children: [
|
|
4117
4117
|
m,
|
|
4118
4118
|
h,
|
|
4119
4119
|
g,
|
|
@@ -4135,13 +4135,13 @@ function qa(t) {
|
|
|
4135
4135
|
l = e ? o.filter((t) => Pn(t).toLowerCase().includes(e)) : o, n[0] = o, n[1] = c, n[2] = l;
|
|
4136
4136
|
} else l = n[2];
|
|
4137
4137
|
let u = l, d;
|
|
4138
|
-
n[3] !== s || n[4] !== a || n[5] !== i || n[6] !== u || n[7] !== r ? (d = u.length === 0 ? /* @__PURE__ */
|
|
4138
|
+
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) => {
|
|
4139
4139
|
let t = s[e.id] !== !1;
|
|
4140
|
-
return /* @__PURE__ */
|
|
4140
|
+
return /* @__PURE__ */ J(_.Item, {
|
|
4141
4141
|
renderRoot: Ua,
|
|
4142
4142
|
"aria-checked": t,
|
|
4143
4143
|
closeMenuOnClick: !1,
|
|
4144
|
-
leftSection: /* @__PURE__ */
|
|
4144
|
+
leftSection: /* @__PURE__ */ J(p.Indicator, {
|
|
4145
4145
|
checked: t,
|
|
4146
4146
|
size: a
|
|
4147
4147
|
}),
|
|
@@ -4152,7 +4152,7 @@ function qa(t) {
|
|
|
4152
4152
|
}, e.id);
|
|
4153
4153
|
}), n[3] = s, n[4] = a, n[5] = i, n[6] = u, n[7] = r, n[8] = d) : d = n[8];
|
|
4154
4154
|
let f;
|
|
4155
|
-
return n[9] === d ? f = n[10] : (f = /* @__PURE__ */
|
|
4155
|
+
return n[9] === d ? f = n[10] : (f = /* @__PURE__ */ J(C.Autosize, {
|
|
4156
4156
|
mah: 260,
|
|
4157
4157
|
type: "auto",
|
|
4158
4158
|
children: d
|
|
@@ -4162,7 +4162,7 @@ function Ja() {
|
|
|
4162
4162
|
let t = e(12), { labels: n, controlSize: r } = $(), { columns: i, shownCount: a, setAllVisible: o } = Kn();
|
|
4163
4163
|
if (i.length === 0) return null;
|
|
4164
4164
|
let s = a === i.length, c = a > 0 && !s, l = c ? "mixed" : s, u;
|
|
4165
|
-
t[0] !== s || t[1] !== r || t[2] !== c ? (u = /* @__PURE__ */
|
|
4165
|
+
t[0] !== s || t[1] !== r || t[2] !== c ? (u = /* @__PURE__ */ J(p.Indicator, {
|
|
4166
4166
|
checked: s,
|
|
4167
4167
|
indeterminate: c,
|
|
4168
4168
|
size: r
|
|
@@ -4170,7 +4170,7 @@ function Ja() {
|
|
|
4170
4170
|
let d;
|
|
4171
4171
|
t[4] !== s || t[5] !== o ? (d = () => o(!s), t[4] = s, t[5] = o, t[6] = d) : d = t[6];
|
|
4172
4172
|
let f;
|
|
4173
|
-
return t[7] !== n.columnsShowHideAll || t[8] !== l || t[9] !== u || t[10] !== d ? (f = /* @__PURE__ */
|
|
4173
|
+
return t[7] !== n.columnsShowHideAll || t[8] !== l || t[9] !== u || t[10] !== d ? (f = /* @__PURE__ */ J(_.Item, {
|
|
4174
4174
|
renderRoot: Ua,
|
|
4175
4175
|
"aria-checked": l,
|
|
4176
4176
|
closeMenuOnClick: !1,
|
|
@@ -4182,14 +4182,14 @@ function Ja() {
|
|
|
4182
4182
|
}
|
|
4183
4183
|
function Ya() {
|
|
4184
4184
|
let t = e(6), { labels: n, resetSettings: r } = $(), i;
|
|
4185
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
4185
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ J(P, {
|
|
4186
4186
|
size: 16,
|
|
4187
4187
|
stroke: 1.6
|
|
4188
4188
|
}), t[0] = i) : i = t[0];
|
|
4189
4189
|
let a;
|
|
4190
4190
|
t[1] === r ? a = t[2] : (a = () => r(), t[1] = r, t[2] = a);
|
|
4191
4191
|
let o;
|
|
4192
|
-
return t[3] !== n.columnsReset || t[4] !== a ? (o = /* @__PURE__ */
|
|
4192
|
+
return t[3] !== n.columnsReset || t[4] !== a ? (o = /* @__PURE__ */ J(_.Item, {
|
|
4193
4193
|
leftSection: i,
|
|
4194
4194
|
onClick: a,
|
|
4195
4195
|
"data-dg-part": "columns-reset",
|
|
@@ -4211,7 +4211,7 @@ function Za(t) {
|
|
|
4211
4211
|
let n = e(11), r;
|
|
4212
4212
|
n[0] === t ? r = n[1] : (r = Xa(t), n[0] = t, n[1] = r);
|
|
4213
4213
|
let { label: i, custom: a, options: o } = r, { ui: s, labels: c } = $(), { exportAll: l } = Ha(o), u;
|
|
4214
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
4214
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ J(W, {
|
|
4215
4215
|
size: 16,
|
|
4216
4216
|
stroke: 1.6
|
|
4217
4217
|
}), n[2] = u) : u = n[2];
|
|
@@ -4223,7 +4223,7 @@ function Za(t) {
|
|
|
4223
4223
|
}) : l();
|
|
4224
4224
|
}, n[3] = a, n[4] = l, n[5] = o, n[6] = s, n[7] = d) : d = n[7];
|
|
4225
4225
|
let f = i ?? c.exportAll, p;
|
|
4226
|
-
return n[8] !== d || n[9] !== f ? (p = /* @__PURE__ */
|
|
4226
|
+
return n[8] !== d || n[9] !== f ? (p = /* @__PURE__ */ J(_.Item, {
|
|
4227
4227
|
leftSection: u,
|
|
4228
4228
|
onClick: d,
|
|
4229
4229
|
"data-dg-part": "menu-export",
|
|
@@ -4236,7 +4236,7 @@ function Qa(t) {
|
|
|
4236
4236
|
let { label: i, custom: a, options: o } = r, { ui: s, labels: c } = $(), { exportSelected: l, selectedCount: u, canExportSelected: d } = Ha(o);
|
|
4237
4237
|
if (!d) return null;
|
|
4238
4238
|
let f;
|
|
4239
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
4239
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ J(W, {
|
|
4240
4240
|
size: 16,
|
|
4241
4241
|
stroke: 1.6
|
|
4242
4242
|
}), n[2] = f) : f = n[2];
|
|
@@ -4250,7 +4250,7 @@ function Qa(t) {
|
|
|
4250
4250
|
let h;
|
|
4251
4251
|
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];
|
|
4252
4252
|
let g;
|
|
4253
|
-
return n[12] !== p || n[13] !== m || n[14] !== h ? (g = /* @__PURE__ */
|
|
4253
|
+
return n[12] !== p || n[13] !== m || n[14] !== h ? (g = /* @__PURE__ */ J(_.Item, {
|
|
4254
4254
|
leftSection: f,
|
|
4255
4255
|
disabled: p,
|
|
4256
4256
|
onClick: m,
|
|
@@ -4290,12 +4290,12 @@ function eo(t) {
|
|
|
4290
4290
|
let k = D, A;
|
|
4291
4291
|
n[10] === k ? A = n[11] : (A = (e) => k(e.currentTarget.value), n[10] = k, n[11] = A);
|
|
4292
4292
|
let j = r ?? m.searchPlaceholder, N;
|
|
4293
|
-
n[12] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */
|
|
4293
|
+
n[12] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ J(le, {
|
|
4294
4294
|
size: 16,
|
|
4295
4295
|
stroke: 1.6
|
|
4296
4296
|
}), n[12] = N) : N = n[12];
|
|
4297
4297
|
let P;
|
|
4298
|
-
n[13] !== E || n[14] !== _ || n[15] !== m.clearSearch ? (P = _ === "" ? void 0 : /* @__PURE__ */
|
|
4298
|
+
n[13] !== E || n[14] !== _ || n[15] !== m.clearSearch ? (P = _ === "" ? void 0 : /* @__PURE__ */ J(l, {
|
|
4299
4299
|
variant: "subtle",
|
|
4300
4300
|
color: "gray",
|
|
4301
4301
|
size: "sm",
|
|
@@ -4304,13 +4304,13 @@ function eo(t) {
|
|
|
4304
4304
|
onClick: () => {
|
|
4305
4305
|
clearTimeout(y.current), v(""), E("");
|
|
4306
4306
|
},
|
|
4307
|
-
children: /* @__PURE__ */
|
|
4307
|
+
children: /* @__PURE__ */ J(de, {
|
|
4308
4308
|
size: 14,
|
|
4309
4309
|
stroke: 1.6
|
|
4310
4310
|
})
|
|
4311
4311
|
}), n[13] = E, n[14] = _, n[15] = m.clearSearch, n[16] = P) : P = n[16];
|
|
4312
4312
|
let F;
|
|
4313
|
-
return n[17] !== h || n[18] !== _ || n[19] !== m.searchLabel || n[20] !== j || n[21] !== P || n[22] !== A || n[23] !== d ? (F = /* @__PURE__ */
|
|
4313
|
+
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, {
|
|
4314
4314
|
size: h,
|
|
4315
4315
|
w: d,
|
|
4316
4316
|
value: _,
|
|
@@ -4342,19 +4342,19 @@ var no = {
|
|
|
4342
4342
|
//#region src/components/TMDataGridFilterSurface.tsx
|
|
4343
4343
|
function io() {
|
|
4344
4344
|
let t = e(10), { ui: n, labels: r, controlSize: i } = $(), a;
|
|
4345
|
-
t[0] !== i || t[1] !== r.filters ? (a = /* @__PURE__ */
|
|
4345
|
+
t[0] !== i || t[1] !== r.filters ? (a = /* @__PURE__ */ J(D, {
|
|
4346
4346
|
span: !0,
|
|
4347
4347
|
size: i,
|
|
4348
4348
|
fw: 600,
|
|
4349
4349
|
children: r.filters
|
|
4350
4350
|
}), t[0] = i, t[1] = r.filters, t[2] = a) : a = t[2];
|
|
4351
4351
|
let o;
|
|
4352
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
4352
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ J(de, {
|
|
4353
4353
|
size: 16,
|
|
4354
4354
|
stroke: 1.6
|
|
4355
4355
|
}), t[3] = o) : o = t[3];
|
|
4356
4356
|
let s;
|
|
4357
|
-
t[4] !== r.closeFilters || t[5] !== n.actions.closeFilterPanel ? (s = /* @__PURE__ */
|
|
4357
|
+
t[4] !== r.closeFilters || t[5] !== n.actions.closeFilterPanel ? (s = /* @__PURE__ */ J(l, {
|
|
4358
4358
|
variant: "subtle",
|
|
4359
4359
|
color: "gray",
|
|
4360
4360
|
size: "sm",
|
|
@@ -4364,7 +4364,7 @@ function io() {
|
|
|
4364
4364
|
children: o
|
|
4365
4365
|
}), t[4] = r.closeFilters, t[5] = n.actions.closeFilterPanel, t[6] = s) : s = t[6];
|
|
4366
4366
|
let c;
|
|
4367
|
-
return t[7] !== a || t[8] !== s ? (c = /* @__PURE__ */
|
|
4367
|
+
return t[7] !== a || t[8] !== s ? (c = /* @__PURE__ */ Y("div", {
|
|
4368
4368
|
className: ro.surfaceHeader,
|
|
4369
4369
|
children: [a, s]
|
|
4370
4370
|
}), t[7] = a, t[8] = s, t[9] = c) : c = t[9], c;
|
|
@@ -4400,9 +4400,9 @@ function so() {
|
|
|
4400
4400
|
e.key === "Escape" && (e.stopPropagation(), n.actions.closeFilterPanel());
|
|
4401
4401
|
}, t[4] = n, t[5] = u);
|
|
4402
4402
|
let d, f;
|
|
4403
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */
|
|
4403
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ J(io, {}), f = /* @__PURE__ */ J(wr, {}), t[6] = d, t[7] = f) : (d = t[6], f = t[7]);
|
|
4404
4404
|
let p;
|
|
4405
|
-
return t[8] !== r.filters || t[9] !== u ? (p = /* @__PURE__ */
|
|
4405
|
+
return t[8] !== r.filters || t[9] !== u ? (p = /* @__PURE__ */ Y("div", {
|
|
4406
4406
|
ref: o,
|
|
4407
4407
|
"data-dg-part": "filter-popup",
|
|
4408
4408
|
className: ro.filterPopup,
|
|
@@ -4424,15 +4424,15 @@ function lo() {
|
|
|
4424
4424
|
e.key === "Escape" && (e.stopPropagation(), n.actions.closeFilterPanel());
|
|
4425
4425
|
}, t[2] = n, t[3] = o);
|
|
4426
4426
|
let s;
|
|
4427
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
4427
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ J(io, {}), t[4] = s) : s = t[4];
|
|
4428
4428
|
let c;
|
|
4429
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */
|
|
4429
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ J(C, {
|
|
4430
4430
|
type: "auto",
|
|
4431
4431
|
className: ro.filterSidebarBody,
|
|
4432
|
-
children: /* @__PURE__ */
|
|
4432
|
+
children: /* @__PURE__ */ J(wr, { layout: "stacked" })
|
|
4433
4433
|
}), t[5] = c) : c = t[5];
|
|
4434
4434
|
let l;
|
|
4435
|
-
return t[6] !== r.sidebarSide || t[7] !== i.filters || t[8] !== a || t[9] !== o ? (l = /* @__PURE__ */
|
|
4435
|
+
return t[6] !== r.sidebarSide || t[7] !== i.filters || t[8] !== a || t[9] !== o ? (l = /* @__PURE__ */ Y("div", {
|
|
4436
4436
|
"data-dg-part": "filter-sidebar",
|
|
4437
4437
|
"data-side": r.sidebarSide,
|
|
4438
4438
|
className: ro.filterSidebar,
|
|
@@ -4474,10 +4474,10 @@ function mo({ column: e }) {
|
|
|
4474
4474
|
e,
|
|
4475
4475
|
yr(e) ? e.getFacetedUniqueValues() : void 0
|
|
4476
4476
|
]), h = In(e);
|
|
4477
|
-
return /* @__PURE__ */
|
|
4477
|
+
return /* @__PURE__ */ Y(fe, { children: [/* @__PURE__ */ J("div", {
|
|
4478
4478
|
className: fo.headerFilterValue,
|
|
4479
4479
|
"data-dg-filter-value-slot": !0,
|
|
4480
|
-
children: /* @__PURE__ */
|
|
4480
|
+
children: /* @__PURE__ */ J(m, {
|
|
4481
4481
|
column: e,
|
|
4482
4482
|
table: t,
|
|
4483
4483
|
operator: c,
|
|
@@ -4491,7 +4491,7 @@ function mo({ column: e }) {
|
|
|
4491
4491
|
labels: n,
|
|
4492
4492
|
layout: "header"
|
|
4493
4493
|
})
|
|
4494
|
-
}), /* @__PURE__ */
|
|
4494
|
+
}), /* @__PURE__ */ J(ho, {
|
|
4495
4495
|
columnId: e.id,
|
|
4496
4496
|
columnLabel: u,
|
|
4497
4497
|
operator: c,
|
|
@@ -4504,12 +4504,12 @@ function ho(t) {
|
|
|
4504
4504
|
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;
|
|
4505
4505
|
n[0] !== i || n[1] !== d ? (g = d.filterOperatorFor(i), n[0] = i, n[1] = d, n[2] = g) : g = n[2];
|
|
4506
4506
|
let v;
|
|
4507
|
-
n[3] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */
|
|
4507
|
+
n[3] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ J(re, {
|
|
4508
4508
|
size: 14,
|
|
4509
4509
|
stroke: 1.6
|
|
4510
4510
|
}), n[3] = v) : v = n[3];
|
|
4511
4511
|
let y;
|
|
4512
|
-
n[4] !== r || n[5] !== h || n[6] !== g ? (y = /* @__PURE__ */
|
|
4512
|
+
n[4] !== r || n[5] !== h || n[6] !== g ? (y = /* @__PURE__ */ J(l, {
|
|
4513
4513
|
className: fo.headerFilterOperator,
|
|
4514
4514
|
variant: "subtle",
|
|
4515
4515
|
color: h,
|
|
@@ -4520,7 +4520,7 @@ function ho(t) {
|
|
|
4520
4520
|
children: v
|
|
4521
4521
|
}), n[4] = r, n[5] = h, n[6] = g, n[7] = y) : y = n[7];
|
|
4522
4522
|
let b;
|
|
4523
|
-
n[8] !== f || n[9] !== m || n[10] !== y ? (b = /* @__PURE__ */
|
|
4523
|
+
n[8] !== f || n[9] !== m || n[10] !== y ? (b = /* @__PURE__ */ J(_.Target, { children: /* @__PURE__ */ J(k, {
|
|
4524
4524
|
label: m,
|
|
4525
4525
|
openDelay: 400,
|
|
4526
4526
|
disabled: f,
|
|
@@ -4529,16 +4529,16 @@ function ho(t) {
|
|
|
4529
4529
|
let x;
|
|
4530
4530
|
if (n[12] !== d.operators || n[13] !== u || n[14] !== a || n[15] !== s) {
|
|
4531
4531
|
let e;
|
|
4532
|
-
n[17] !== d.operators || n[18] !== u || n[19] !== a ? (e = (e) => /* @__PURE__ */
|
|
4532
|
+
n[17] !== d.operators || n[18] !== u || n[19] !== a ? (e = (e) => /* @__PURE__ */ J(_.Item, {
|
|
4533
4533
|
className: e === a ? fo.operatorItemActive : void 0,
|
|
4534
4534
|
onClick: () => u(e),
|
|
4535
4535
|
children: d.operators[e]
|
|
4536
4536
|
}, 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;
|
|
4537
4537
|
} else x = n[16];
|
|
4538
4538
|
let S;
|
|
4539
|
-
n[21] === x ? S = n[22] : (S = /* @__PURE__ */
|
|
4539
|
+
n[21] === x ? S = n[22] : (S = /* @__PURE__ */ J(_.Dropdown, { children: x }), n[21] = x, n[22] = S);
|
|
4540
4540
|
let C;
|
|
4541
|
-
return n[23] !== f || n[24] !== b || n[25] !== S ? (C = /* @__PURE__ */
|
|
4541
|
+
return n[23] !== f || n[24] !== b || n[25] !== S ? (C = /* @__PURE__ */ Y(_, {
|
|
4542
4542
|
opened: f,
|
|
4543
4543
|
onChange: p,
|
|
4544
4544
|
position: "bottom-end",
|
|
@@ -4563,12 +4563,12 @@ function go(t) {
|
|
|
4563
4563
|
let e;
|
|
4564
4564
|
n[8] !== l || n[9] !== a ? (e = (e) => {
|
|
4565
4565
|
let t = e.column, n = a(t.id);
|
|
4566
|
-
return /* @__PURE__ */
|
|
4566
|
+
return /* @__PURE__ */ J("div", {
|
|
4567
4567
|
role: "columnheader",
|
|
4568
4568
|
"aria-label": l.filterOn(Pn(t)),
|
|
4569
4569
|
"data-dg-part": "header-filter-cell",
|
|
4570
4570
|
"data-column-id": t.id,
|
|
4571
|
-
"data-control-column": Hn(t.id),
|
|
4571
|
+
"data-control-column": Hn(t.id) || void 0,
|
|
4572
4572
|
className: [
|
|
4573
4573
|
fo.headerFilterCell,
|
|
4574
4574
|
n.isBoundary && n.pinnedAt === "left" ? no.stickyLeft : "",
|
|
@@ -4580,12 +4580,12 @@ function go(t) {
|
|
|
4580
4580
|
position: n.pinnedAt ? "sticky" : void 0,
|
|
4581
4581
|
zIndex: n.pinnedAt ? "var(--dg-z-header-pinned-cell, 7)" : void 0
|
|
4582
4582
|
},
|
|
4583
|
-
children: t.getCanFilter() && /* @__PURE__ */
|
|
4583
|
+
children: t.getCanFilter() && /* @__PURE__ */ J(mo, { column: t })
|
|
4584
4584
|
}, e.id);
|
|
4585
4585
|
}, 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;
|
|
4586
4586
|
} else m = n[7];
|
|
4587
4587
|
let h;
|
|
4588
|
-
return n[11] !== o || n[12] !== m ? (h = /* @__PURE__ */
|
|
4588
|
+
return n[11] !== o || n[12] !== m ? (h = /* @__PURE__ */ J("div", {
|
|
4589
4589
|
ref: d,
|
|
4590
4590
|
role: "row",
|
|
4591
4591
|
"aria-rowindex": o,
|
|
@@ -4600,21 +4600,21 @@ function _o(e) {
|
|
|
4600
4600
|
return e.headerFilterColumnId;
|
|
4601
4601
|
}
|
|
4602
4602
|
var vo = {
|
|
4603
|
-
headerCell: "
|
|
4604
|
-
headerCellFiltered: "
|
|
4605
|
-
headerTitle: "
|
|
4606
|
-
headerActions: "
|
|
4607
|
-
headerAction: "
|
|
4608
|
-
headerCellSortable: "
|
|
4609
|
-
sortAction: "
|
|
4610
|
-
sortIndex: "
|
|
4611
|
-
headerCellDragging: "
|
|
4612
|
-
headerCellDropBefore: "
|
|
4613
|
-
headerCellDropAfter: "
|
|
4614
|
-
columnSeparator: "
|
|
4615
|
-
columnSeparatorResizable: "
|
|
4616
|
-
columnSeparatorActive: "
|
|
4617
|
-
menuItemActive: "
|
|
4603
|
+
headerCell: "_headerCell_31huy_1",
|
|
4604
|
+
headerCellFiltered: "_headerCellFiltered_31huy_35",
|
|
4605
|
+
headerTitle: "_headerTitle_31huy_35",
|
|
4606
|
+
headerActions: "_headerActions_31huy_58",
|
|
4607
|
+
headerAction: "_headerAction_31huy_58",
|
|
4608
|
+
headerCellSortable: "_headerCellSortable_31huy_87",
|
|
4609
|
+
sortAction: "_sortAction_31huy_93",
|
|
4610
|
+
sortIndex: "_sortIndex_31huy_103",
|
|
4611
|
+
headerCellDragging: "_headerCellDragging_31huy_115",
|
|
4612
|
+
headerCellDropBefore: "_headerCellDropBefore_31huy_119",
|
|
4613
|
+
headerCellDropAfter: "_headerCellDropAfter_31huy_120",
|
|
4614
|
+
columnSeparator: "_columnSeparator_31huy_140",
|
|
4615
|
+
columnSeparatorResizable: "_columnSeparatorResizable_31huy_162",
|
|
4616
|
+
columnSeparatorActive: "_columnSeparatorActive_31huy_185",
|
|
4617
|
+
menuItemActive: "_menuItemActive_31huy_191"
|
|
4618
4618
|
}, yo = 30, bo = 2;
|
|
4619
4619
|
function xo(e) {
|
|
4620
4620
|
let t = e.ownerDocument.createRange();
|
|
@@ -4713,74 +4713,74 @@ function No({ table: e, columnId: t, direction: n }) {
|
|
|
4713
4713
|
//#region src/components/TMDataGridHeaderCell.tsx
|
|
4714
4714
|
function Po(t) {
|
|
4715
4715
|
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;
|
|
4716
|
-
n[0] === Symbol.for("react.memo_cache_sentinel") ? (w = { compare:
|
|
4717
|
-
let { sorting: T, columnFilters: E, resizingColumnId: D, columnPinning: O, grouping: A } = M(u.store, Vo, w), j = M(o.ui, Bo), P = r.subHeaders.length === 0, V, H,
|
|
4716
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (w = { compare: _e }, n[0] = w) : w = n[0];
|
|
4717
|
+
let { sorting: T, columnFilters: E, resizingColumnId: D, columnPinning: O, grouping: A } = M(u.store, Vo, w), j = M(o.ui, Bo), P = r.subHeaders.length === 0, B, V, H, W, G, K, q, le, ue, de, fe, pe, me, X, he, ge, ve, ye, be, xe, Se, Ce;
|
|
4718
4718
|
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) {
|
|
4719
|
-
|
|
4719
|
+
be = Pn(m);
|
|
4720
4720
|
let e;
|
|
4721
|
-
n[40] === m ? e = n[41] : (e = Vn(m), n[40] = m, n[41] = e),
|
|
4721
|
+
n[40] === m ? e = n[41] : (e = Vn(m), n[40] = m, n[41] = e), B = e;
|
|
4722
4722
|
let t;
|
|
4723
|
-
n[42] !== m.id || n[43] !== T ? (t = T.find((e) => e.id === m.id)?.desc, n[42] = m.id, n[43] = T, n[44] = t) : t = n[44],
|
|
4723
|
+
n[42] !== m.id || n[43] !== T ? (t = T.find((e) => e.id === m.id)?.desc, n[42] = m.id, n[43] = T, n[44] = t) : t = n[44], Se = t, ye = Se !== void 0;
|
|
4724
4724
|
let s;
|
|
4725
|
-
n[45] !== m.id || n[46] !==
|
|
4725
|
+
n[45] !== m.id || n[46] !== ye || n[47] !== T ? (s = ye && T.length > 1 ? T.findIndex((e) => e.id === m.id) + 1 : null, n[45] = m.id, n[46] = ye, n[47] = T, n[48] = s) : s = n[48], Ce = s;
|
|
4726
4726
|
let c;
|
|
4727
4727
|
if (n[49] !== m.id || n[50] !== E) {
|
|
4728
4728
|
let e;
|
|
4729
4729
|
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;
|
|
4730
4730
|
} else c = n[51];
|
|
4731
|
-
|
|
4731
|
+
ge = c, ve = D === m.id, me = D !== !1, xe = i.pinnedAt;
|
|
4732
4732
|
let l;
|
|
4733
4733
|
n[54] !== m || n[55] !== d ? (l = ui(m, d), n[54] = m, n[55] = d, n[56] = l) : l = n[56];
|
|
4734
4734
|
let h = l;
|
|
4735
|
-
|
|
4735
|
+
G = P && h.canSort;
|
|
4736
4736
|
let g = P && h.canFilter, v = P && h.canHide, y = P && h.canPin;
|
|
4737
|
-
|
|
4737
|
+
W = h.canResize, H = P && h.canReorder;
|
|
4738
4738
|
let C = P && h.canGroup, w = P && di(u, d).canHideAny, k;
|
|
4739
4739
|
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];
|
|
4740
|
-
let M = k,
|
|
4741
|
-
|
|
4742
|
-
let
|
|
4743
|
-
n[60] !==
|
|
4744
|
-
let Ce;
|
|
4745
|
-
n[66] !== o.ui || n[67] !== m.id ? (Ce = function(e) {
|
|
4746
|
-
e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", m.id), o.ui.actions.startColumnDrag(m.id);
|
|
4747
|
-
}, n[66] = o.ui, n[67] = m.id, n[68] = Ce) : Ce = n[68], de = Ce;
|
|
4740
|
+
let M = k, U = A.length > 0;
|
|
4741
|
+
X = j === m.id;
|
|
4742
|
+
let _e;
|
|
4743
|
+
n[60] !== H || n[61] !== m.id || n[62] !== O || n[63] !== j || n[64] !== X ? (_e = H && j !== null && !X && Eo(O, j) === Eo(O, m.id), n[60] = H, n[61] = m.id, n[62] = O, n[63] = j, n[64] = X, n[65] = _e) : _e = n[65], he = _e;
|
|
4748
4744
|
let we;
|
|
4749
|
-
n[
|
|
4750
|
-
|
|
4745
|
+
n[66] !== o.ui || n[67] !== m.id ? (we = function(e) {
|
|
4746
|
+
e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", m.id), o.ui.actions.startColumnDrag(m.id);
|
|
4747
|
+
}, n[66] = o.ui, n[67] = m.id, n[68] = we) : we = n[68], fe = we;
|
|
4748
|
+
let Te;
|
|
4749
|
+
n[69] === he ? Te = n[70] : (Te = function(e) {
|
|
4750
|
+
if (!he) return;
|
|
4751
4751
|
e.preventDefault(), e.dataTransfer.dropEffect = "move";
|
|
4752
4752
|
let t = S.current?.getBoundingClientRect();
|
|
4753
4753
|
t && x(e.clientX < t.left + t.width / 2 ? "before" : "after");
|
|
4754
|
-
}, n[69] =
|
|
4755
|
-
let
|
|
4756
|
-
n[71] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
4754
|
+
}, n[69] = he, n[70] = Te), de = Te;
|
|
4755
|
+
let Ee;
|
|
4756
|
+
n[71] === Symbol.for("react.memo_cache_sentinel") ? (Ee = function(e) {
|
|
4757
4757
|
let t = e.relatedTarget;
|
|
4758
4758
|
vn(t) && e.currentTarget.contains(t) || x(null);
|
|
4759
|
-
}, n[71] =
|
|
4760
|
-
let
|
|
4761
|
-
n[72] !== o.ui || n[73] !== m.id || n[74] !== j || n[75] !== b || n[76] !==
|
|
4762
|
-
e.preventDefault(), x(null), o.ui.actions.endColumnDrag(), !(!
|
|
4759
|
+
}, n[71] = Ee) : Ee = n[71], ue = Ee;
|
|
4760
|
+
let De;
|
|
4761
|
+
n[72] !== o.ui || n[73] !== m.id || n[74] !== j || n[75] !== b || n[76] !== he || n[77] !== u ? (De = function(e) {
|
|
4762
|
+
e.preventDefault(), x(null), o.ui.actions.endColumnDrag(), !(!he || !b || !j) && ko({
|
|
4763
4763
|
table: u,
|
|
4764
4764
|
columnId: j,
|
|
4765
4765
|
targetId: m.id,
|
|
4766
4766
|
side: b
|
|
4767
4767
|
});
|
|
4768
|
-
}, n[72] = o.ui, n[73] = m.id, n[74] = j, n[75] = b, n[76] =
|
|
4769
|
-
let
|
|
4770
|
-
n[79] === o.ui ?
|
|
4768
|
+
}, n[72] = o.ui, n[73] = m.id, n[74] = j, n[75] = b, n[76] = he, n[77] = u, n[78] = De) : De = n[78], pe = De;
|
|
4769
|
+
let Z;
|
|
4770
|
+
n[79] === o.ui ? Z = n[80] : (Z = function() {
|
|
4771
4771
|
x(null), o.ui.actions.endColumnDrag();
|
|
4772
|
-
}, n[79] = o.ui, n[80] =
|
|
4773
|
-
let
|
|
4774
|
-
n[81] !== m.id || n[82] !== u ? (
|
|
4772
|
+
}, n[79] = o.ui, n[80] = Z), le = Z;
|
|
4773
|
+
let Oe;
|
|
4774
|
+
n[81] !== m.id || n[82] !== u ? (Oe = function() {
|
|
4775
4775
|
let e = S.current?.closest("[data-dg-scroll-container]");
|
|
4776
4776
|
e && To({
|
|
4777
4777
|
table: u,
|
|
4778
4778
|
columnId: m.id,
|
|
4779
4779
|
container: e
|
|
4780
4780
|
});
|
|
4781
|
-
}, n[81] = m.id, n[82] = u, n[83] =
|
|
4782
|
-
let
|
|
4783
|
-
n[84] !== r || n[85] !== u ? (
|
|
4781
|
+
}, n[81] = m.id, n[82] = u, n[83] = Oe) : Oe = n[83], V = Oe;
|
|
4782
|
+
let ke;
|
|
4783
|
+
n[84] !== r || n[85] !== u ? (ke = function() {
|
|
4784
4784
|
let e = S.current?.closest("[data-dg-scroll-container]");
|
|
4785
4785
|
if (!e) return;
|
|
4786
4786
|
let t = u.store.state.columnSizing, n = {};
|
|
@@ -4794,80 +4794,80 @@ function Po(t) {
|
|
|
4794
4794
|
...e,
|
|
4795
4795
|
...n
|
|
4796
4796
|
}));
|
|
4797
|
-
}, n[84] = r, n[85] = u, n[86] =
|
|
4798
|
-
let
|
|
4799
|
-
n[87] !== m || n[88] !==
|
|
4800
|
-
e &&
|
|
4801
|
-
}, n[87] = m, n[88] =
|
|
4802
|
-
let
|
|
4803
|
-
if (
|
|
4797
|
+
}, n[84] = r, n[85] = u, n[86] = ke) : ke = n[86], q = ke;
|
|
4798
|
+
let Ae;
|
|
4799
|
+
n[87] !== m || n[88] !== q || n[89] !== u ? (Ae = function(e) {
|
|
4800
|
+
e && q(), m.pin(Do(e)), u.setColumnPinning(Ao);
|
|
4801
|
+
}, n[87] = m, n[88] = q, n[89] = u, n[90] = Ae) : Ae = n[90];
|
|
4802
|
+
let Q = Ae, je = [];
|
|
4803
|
+
if (G) {
|
|
4804
4804
|
let e;
|
|
4805
|
-
n[91] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4805
|
+
n[91] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(z, {
|
|
4806
4806
|
size: 16,
|
|
4807
4807
|
stroke: 1.6
|
|
4808
4808
|
}), n[91] = e) : e = n[91];
|
|
4809
4809
|
let t;
|
|
4810
4810
|
n[92] === m ? t = n[93] : (t = () => m.toggleSorting(!1), n[92] = m, n[93] = t);
|
|
4811
4811
|
let r;
|
|
4812
|
-
n[94] !== p.sortAsc || n[95] !== t ? (r = /* @__PURE__ */
|
|
4812
|
+
n[94] !== p.sortAsc || n[95] !== t ? (r = /* @__PURE__ */ J(_.Item, {
|
|
4813
4813
|
leftSection: e,
|
|
4814
4814
|
onClick: t,
|
|
4815
4815
|
children: p.sortAsc
|
|
4816
4816
|
}, "sort-asc"), n[94] = p.sortAsc, n[95] = t, n[96] = r) : r = n[96];
|
|
4817
4817
|
let i;
|
|
4818
|
-
n[97] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
4818
|
+
n[97] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ J(I, {
|
|
4819
4819
|
size: 16,
|
|
4820
4820
|
stroke: 1.6
|
|
4821
4821
|
}), n[97] = i) : i = n[97];
|
|
4822
4822
|
let a;
|
|
4823
4823
|
n[98] === m ? a = n[99] : (a = () => m.toggleSorting(!0), n[98] = m, n[99] = a);
|
|
4824
4824
|
let o;
|
|
4825
|
-
n[100] !== p.sortDesc || n[101] !== a ? (o = /* @__PURE__ */
|
|
4825
|
+
n[100] !== p.sortDesc || n[101] !== a ? (o = /* @__PURE__ */ J(_.Item, {
|
|
4826
4826
|
leftSection: i,
|
|
4827
4827
|
onClick: a,
|
|
4828
4828
|
children: p.sortDesc
|
|
4829
4829
|
}, "sort-desc"), n[100] = p.sortDesc, n[101] = a, n[102] = o) : o = n[102];
|
|
4830
4830
|
let s;
|
|
4831
|
-
n[103] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
4831
|
+
n[103] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ J(_.Divider, {}, "sort-divider"), n[103] = s) : s = n[103], je.push(r, o, s);
|
|
4832
4832
|
}
|
|
4833
4833
|
if (g && !f.inHeader) {
|
|
4834
4834
|
let e;
|
|
4835
|
-
n[104] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4835
|
+
n[104] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(re, {
|
|
4836
4836
|
size: 16,
|
|
4837
4837
|
stroke: 1.6
|
|
4838
4838
|
}), n[104] = e) : e = n[104];
|
|
4839
4839
|
let t;
|
|
4840
4840
|
n[105] !== o || n[106] !== m.id ? (t = () => Ea(o, m.id), n[105] = o, n[106] = m.id, n[107] = t) : t = n[107];
|
|
4841
4841
|
let r;
|
|
4842
|
-
n[108] !== p.filterMenuItem || n[109] !== t ? (r = /* @__PURE__ */
|
|
4842
|
+
n[108] !== p.filterMenuItem || n[109] !== t ? (r = /* @__PURE__ */ J(_.Item, {
|
|
4843
4843
|
leftSection: e,
|
|
4844
4844
|
onClick: t,
|
|
4845
4845
|
children: p.filterMenuItem
|
|
4846
4846
|
}, "filter"), n[108] = p.filterMenuItem, n[109] = t, n[110] = r) : r = n[110];
|
|
4847
4847
|
let i;
|
|
4848
|
-
n[111] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
4848
|
+
n[111] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ J(_.Divider, {}, "filter-divider"), n[111] = i) : i = n[111], je.push(r, i);
|
|
4849
4849
|
}
|
|
4850
4850
|
if (C) {
|
|
4851
4851
|
let e = M ? vo.menuItemActive : void 0, t;
|
|
4852
|
-
n[112] === M ? t = n[113] : (t =
|
|
4852
|
+
n[112] === M ? t = n[113] : (t = J(M ? oe : se, {
|
|
4853
4853
|
size: 16,
|
|
4854
4854
|
stroke: 1.6
|
|
4855
4855
|
}), n[112] = M, n[113] = t);
|
|
4856
4856
|
let r;
|
|
4857
4857
|
n[114] === m ? r = n[115] : (r = m.getToggleGroupingHandler(), n[114] = m, n[115] = r);
|
|
4858
|
-
let i = M ? p.ungroup(
|
|
4859
|
-
n[116] !== e || n[117] !== t || n[118] !== r || n[119] !== i ? (a = /* @__PURE__ */
|
|
4858
|
+
let i = M ? p.ungroup(be) : p.groupBy(be), a;
|
|
4859
|
+
n[116] !== e || n[117] !== t || n[118] !== r || n[119] !== i ? (a = /* @__PURE__ */ J(_.Item, {
|
|
4860
4860
|
className: e,
|
|
4861
4861
|
leftSection: t,
|
|
4862
4862
|
onClick: r,
|
|
4863
4863
|
children: i
|
|
4864
4864
|
}, "group"), n[116] = e, n[117] = t, n[118] = r, n[119] = i, n[120] = a) : a = n[120], je.push(a);
|
|
4865
4865
|
}
|
|
4866
|
-
if (
|
|
4866
|
+
if (U) {
|
|
4867
4867
|
if (m.id === "__group__") for (let e of A) {
|
|
4868
4868
|
let t = u.getColumn(e);
|
|
4869
|
-
t && je.push(/* @__PURE__ */
|
|
4870
|
-
leftSection: /* @__PURE__ */
|
|
4869
|
+
t && je.push(/* @__PURE__ */ J(_.Item, {
|
|
4870
|
+
leftSection: /* @__PURE__ */ J(oe, {
|
|
4871
4871
|
size: 16,
|
|
4872
4872
|
stroke: 1.6
|
|
4873
4873
|
}),
|
|
@@ -4883,83 +4883,83 @@ function Po(t) {
|
|
|
4883
4883
|
expand: e
|
|
4884
4884
|
})), n[121] = u, n[122] = e);
|
|
4885
4885
|
let t = e, r;
|
|
4886
|
-
n[123] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
4886
|
+
n[123] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(ie, {
|
|
4887
4887
|
size: 16,
|
|
4888
4888
|
stroke: 1.6
|
|
4889
4889
|
}), n[123] = r) : r = n[123];
|
|
4890
4890
|
let i;
|
|
4891
4891
|
n[124] === t ? i = n[125] : (i = () => t(!0), n[124] = t, n[125] = i);
|
|
4892
4892
|
let a;
|
|
4893
|
-
n[126] !== p.expandAllGroups || n[127] !== i ? (a = /* @__PURE__ */
|
|
4893
|
+
n[126] !== p.expandAllGroups || n[127] !== i ? (a = /* @__PURE__ */ J(_.Item, {
|
|
4894
4894
|
leftSection: r,
|
|
4895
4895
|
onClick: i,
|
|
4896
4896
|
children: p.expandAllGroups
|
|
4897
4897
|
}, "expand-all"), n[126] = p.expandAllGroups, n[127] = i, n[128] = a) : a = n[128];
|
|
4898
4898
|
let o;
|
|
4899
|
-
n[129] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
4899
|
+
n[129] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ J(ae, {
|
|
4900
4900
|
size: 16,
|
|
4901
4901
|
stroke: 1.6
|
|
4902
4902
|
}), n[129] = o) : o = n[129];
|
|
4903
4903
|
let s;
|
|
4904
4904
|
n[130] === t ? s = n[131] : (s = () => t(!1), n[130] = t, n[131] = s);
|
|
4905
4905
|
let c;
|
|
4906
|
-
n[132] !== p.collapseAllGroups || n[133] !== s ? (c = /* @__PURE__ */
|
|
4906
|
+
n[132] !== p.collapseAllGroups || n[133] !== s ? (c = /* @__PURE__ */ J(_.Item, {
|
|
4907
4907
|
leftSection: o,
|
|
4908
4908
|
onClick: s,
|
|
4909
4909
|
children: p.collapseAllGroups
|
|
4910
4910
|
}, "collapse-all"), n[132] = p.collapseAllGroups, n[133] = s, n[134] = c) : c = n[134], je.push(a, c);
|
|
4911
4911
|
}
|
|
4912
|
-
if (C ||
|
|
4912
|
+
if (C || U) {
|
|
4913
4913
|
let e;
|
|
4914
|
-
n[135] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4914
|
+
n[135] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(_.Divider, {}, "group-divider"), n[135] = e) : e = n[135], je.push(e);
|
|
4915
4915
|
}
|
|
4916
4916
|
if (y) {
|
|
4917
|
-
let e =
|
|
4918
|
-
n[136] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
4917
|
+
let e = xe === "left" ? vo.menuItemActive : void 0, t;
|
|
4918
|
+
n[136] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ J(F, {
|
|
4919
4919
|
size: 16,
|
|
4920
4920
|
stroke: 1.6
|
|
4921
4921
|
}), n[136] = t) : t = n[136];
|
|
4922
4922
|
let r;
|
|
4923
|
-
n[137] !==
|
|
4923
|
+
n[137] !== xe || n[138] !== Q ? (r = () => Q(xe !== "left" && "left"), n[137] = xe, n[138] = Q, n[139] = r) : r = n[139];
|
|
4924
4924
|
let i;
|
|
4925
|
-
n[140] !== p.pinLeft || n[141] !== e || n[142] !== r ? (i = /* @__PURE__ */
|
|
4925
|
+
n[140] !== p.pinLeft || n[141] !== e || n[142] !== r ? (i = /* @__PURE__ */ J(_.Item, {
|
|
4926
4926
|
className: e,
|
|
4927
4927
|
leftSection: t,
|
|
4928
4928
|
onClick: r,
|
|
4929
4929
|
children: p.pinLeft
|
|
4930
4930
|
}, "pin-left"), n[140] = p.pinLeft, n[141] = e, n[142] = r, n[143] = i) : i = n[143];
|
|
4931
|
-
let a =
|
|
4932
|
-
n[144] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
4931
|
+
let a = xe === "right" ? vo.menuItemActive : void 0, o;
|
|
4932
|
+
n[144] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ J(ee, {
|
|
4933
4933
|
size: 16,
|
|
4934
4934
|
stroke: 1.6
|
|
4935
4935
|
}), n[144] = o) : o = n[144];
|
|
4936
4936
|
let s;
|
|
4937
|
-
n[145] !==
|
|
4937
|
+
n[145] !== xe || n[146] !== Q ? (s = () => Q(xe !== "right" && "right"), n[145] = xe, n[146] = Q, n[147] = s) : s = n[147];
|
|
4938
4938
|
let c;
|
|
4939
|
-
if (n[148] !== p.pinRight || n[149] !== a || n[150] !== s ? (c = /* @__PURE__ */
|
|
4939
|
+
if (n[148] !== p.pinRight || n[149] !== a || n[150] !== s ? (c = /* @__PURE__ */ J(_.Item, {
|
|
4940
4940
|
className: a,
|
|
4941
4941
|
leftSection: o,
|
|
4942
4942
|
onClick: s,
|
|
4943
4943
|
children: p.pinRight
|
|
4944
|
-
}, "pin-right"), n[148] = p.pinRight, n[149] = a, n[150] = s, n[151] = c) : c = n[151], je.push(i, c),
|
|
4944
|
+
}, "pin-right"), n[148] = p.pinRight, n[149] = a, n[150] = s, n[151] = c) : c = n[151], je.push(i, c), xe) {
|
|
4945
4945
|
let e;
|
|
4946
|
-
n[152] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
4946
|
+
n[152] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(ce, {
|
|
4947
4947
|
size: 16,
|
|
4948
4948
|
stroke: 1.6
|
|
4949
4949
|
}), n[152] = e) : e = n[152];
|
|
4950
4950
|
let t;
|
|
4951
|
-
n[153] ===
|
|
4951
|
+
n[153] === Q ? t = n[154] : (t = () => Q(!1), n[153] = Q, n[154] = t);
|
|
4952
4952
|
let r;
|
|
4953
|
-
n[155] !== p.unpin || n[156] !== t ? (r = /* @__PURE__ */
|
|
4953
|
+
n[155] !== p.unpin || n[156] !== t ? (r = /* @__PURE__ */ J(_.Item, {
|
|
4954
4954
|
leftSection: e,
|
|
4955
4955
|
onClick: t,
|
|
4956
4956
|
children: p.unpin
|
|
4957
4957
|
}, "unpin"), n[155] = p.unpin, n[156] = t, n[157] = r) : r = n[157], je.push(r);
|
|
4958
4958
|
}
|
|
4959
4959
|
let l;
|
|
4960
|
-
n[158] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */
|
|
4960
|
+
n[158] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ J(_.Divider, {}, "pin-divider"), n[158] = l) : l = n[158], je.push(l);
|
|
4961
4961
|
}
|
|
4962
|
-
if (
|
|
4962
|
+
if (H) {
|
|
4963
4963
|
let e;
|
|
4964
4964
|
n[159] !== m.id || n[160] !== u ? (e = Mo({
|
|
4965
4965
|
table: u,
|
|
@@ -4975,7 +4975,7 @@ function Po(t) {
|
|
|
4975
4975
|
let i = r;
|
|
4976
4976
|
if (t || i) {
|
|
4977
4977
|
let e = !t, r;
|
|
4978
|
-
n[165] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
4978
|
+
n[165] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(L, {
|
|
4979
4979
|
size: 16,
|
|
4980
4980
|
stroke: 1.6
|
|
4981
4981
|
}), n[165] = r) : r = n[165];
|
|
@@ -4986,14 +4986,14 @@ function Po(t) {
|
|
|
4986
4986
|
direction: -1
|
|
4987
4987
|
}), n[166] = m.id, n[167] = u, n[168] = a) : a = n[168];
|
|
4988
4988
|
let o;
|
|
4989
|
-
n[169] !== p.moveLeft || n[170] !== e || n[171] !== a ? (o = /* @__PURE__ */
|
|
4989
|
+
n[169] !== p.moveLeft || n[170] !== e || n[171] !== a ? (o = /* @__PURE__ */ J(_.Item, {
|
|
4990
4990
|
disabled: e,
|
|
4991
4991
|
leftSection: r,
|
|
4992
4992
|
onClick: a,
|
|
4993
4993
|
children: p.moveLeft
|
|
4994
4994
|
}, "move-left"), n[169] = p.moveLeft, n[170] = e, n[171] = a, n[172] = o) : o = n[172];
|
|
4995
4995
|
let s = !i, c;
|
|
4996
|
-
n[173] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */
|
|
4996
|
+
n[173] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ J(R, {
|
|
4997
4997
|
size: 16,
|
|
4998
4998
|
stroke: 1.6
|
|
4999
4999
|
}), n[173] = c) : c = n[173];
|
|
@@ -5004,41 +5004,41 @@ function Po(t) {
|
|
|
5004
5004
|
direction: 1
|
|
5005
5005
|
}), n[174] = m.id, n[175] = u, n[176] = l) : l = n[176];
|
|
5006
5006
|
let d;
|
|
5007
|
-
n[177] !== p.moveRight || n[178] !== s || n[179] !== l ? (d = /* @__PURE__ */
|
|
5007
|
+
n[177] !== p.moveRight || n[178] !== s || n[179] !== l ? (d = /* @__PURE__ */ J(_.Item, {
|
|
5008
5008
|
disabled: s,
|
|
5009
5009
|
leftSection: c,
|
|
5010
5010
|
onClick: l,
|
|
5011
5011
|
children: p.moveRight
|
|
5012
5012
|
}, "move-right"), n[177] = p.moveRight, n[178] = s, n[179] = l, n[180] = d) : d = n[180];
|
|
5013
5013
|
let f;
|
|
5014
|
-
n[181] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
5014
|
+
n[181] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ J(_.Divider, {}, "move-divider"), n[181] = f) : f = n[181], je.push(o, d, f);
|
|
5015
5015
|
}
|
|
5016
5016
|
}
|
|
5017
|
-
if (
|
|
5017
|
+
if (W && P) {
|
|
5018
5018
|
let e;
|
|
5019
|
-
n[182] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
5019
|
+
n[182] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(N, {
|
|
5020
5020
|
size: 16,
|
|
5021
5021
|
stroke: 1.6
|
|
5022
5022
|
}), n[182] = e) : e = n[182];
|
|
5023
5023
|
let t;
|
|
5024
|
-
n[183] !==
|
|
5024
|
+
n[183] !== V || n[184] !== p.autosizeColumn ? (t = /* @__PURE__ */ J(_.Item, {
|
|
5025
5025
|
leftSection: e,
|
|
5026
|
-
onClick:
|
|
5026
|
+
onClick: V,
|
|
5027
5027
|
children: p.autosizeColumn
|
|
5028
|
-
}, "autosize"), n[183] =
|
|
5028
|
+
}, "autosize"), n[183] = V, n[184] = p.autosizeColumn, n[185] = t) : t = n[185];
|
|
5029
5029
|
let r;
|
|
5030
|
-
n[186] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
5030
|
+
n[186] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(_.Divider, {}, "autosize-divider"), n[186] = r) : r = n[186], je.push(t, r);
|
|
5031
5031
|
}
|
|
5032
5032
|
if (v) {
|
|
5033
5033
|
let e;
|
|
5034
|
-
n[187] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
5034
|
+
n[187] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(ne, {
|
|
5035
5035
|
size: 16,
|
|
5036
5036
|
stroke: 1.6
|
|
5037
5037
|
}), n[187] = e) : e = n[187];
|
|
5038
5038
|
let t;
|
|
5039
5039
|
n[188] === m ? t = n[189] : (t = () => m.toggleVisibility(!1), n[188] = m, n[189] = t);
|
|
5040
5040
|
let r;
|
|
5041
|
-
n[190] !== p.hideColumn || n[191] !== t ? (r = /* @__PURE__ */
|
|
5041
|
+
n[190] !== p.hideColumn || n[191] !== t ? (r = /* @__PURE__ */ J(_.Item, {
|
|
5042
5042
|
leftSection: e,
|
|
5043
5043
|
onClick: t,
|
|
5044
5044
|
children: p.hideColumn
|
|
@@ -5046,211 +5046,211 @@ function Po(t) {
|
|
|
5046
5046
|
}
|
|
5047
5047
|
if (w) {
|
|
5048
5048
|
let e;
|
|
5049
|
-
n[193] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
5049
|
+
n[193] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ J(te, {
|
|
5050
5050
|
size: 16,
|
|
5051
5051
|
stroke: 1.6
|
|
5052
5052
|
}), n[193] = e) : e = n[193];
|
|
5053
5053
|
let t;
|
|
5054
|
-
n[194] === p.manageColumns ? t = n[195] : (t = /* @__PURE__ */
|
|
5054
|
+
n[194] === p.manageColumns ? t = n[195] : (t = /* @__PURE__ */ J(_.Sub.Target, { children: /* @__PURE__ */ J(_.Sub.Item, {
|
|
5055
5055
|
leftSection: e,
|
|
5056
5056
|
children: p.manageColumns
|
|
5057
5057
|
}) }), n[194] = p.manageColumns, n[195] = t);
|
|
5058
5058
|
let r;
|
|
5059
|
-
n[196] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
5059
|
+
n[196] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ J(_.Sub.Dropdown, { children: /* @__PURE__ */ J(Ga, { searchable: !1 }) }), n[196] = r) : r = n[196];
|
|
5060
5060
|
let i;
|
|
5061
|
-
n[197] === t ? i = n[198] : (i = /* @__PURE__ */
|
|
5061
|
+
n[197] === t ? i = n[198] : (i = /* @__PURE__ */ Y(_.Sub, { children: [t, r] }, "manage"), n[197] = t, n[198] = i), je.push(i);
|
|
5062
5062
|
}
|
|
5063
5063
|
for (; je.length > 0 && Ho(je.at(-1));) je.pop();
|
|
5064
|
-
for (
|
|
5064
|
+
for (K = a ? [...a({
|
|
5065
5065
|
column: m,
|
|
5066
5066
|
table: u,
|
|
5067
5067
|
internalItems: je
|
|
5068
|
-
})] : je;
|
|
5069
|
-
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] =
|
|
5070
|
-
} else
|
|
5071
|
-
let
|
|
5072
|
-
n[199] !== m.id || n[200] !==
|
|
5073
|
-
let
|
|
5074
|
-
n[203] !==
|
|
5068
|
+
})] : je; K.length > 0 && Ho(K.at(-1));) K.pop();
|
|
5069
|
+
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] = B, n[19] = V, n[20] = H, n[21] = W, n[22] = G, n[23] = K, n[24] = q, n[25] = le, n[26] = ue, n[27] = de, n[28] = fe, n[29] = pe, n[30] = me, n[31] = X, n[32] = he, n[33] = ge, n[34] = ve, n[35] = ye, n[36] = be, n[37] = xe, n[38] = Se, n[39] = Ce;
|
|
5070
|
+
} else B = n[18], V = n[19], H = n[20], W = n[21], G = n[22], K = n[23], q = n[24], le = n[25], ue = n[26], de = n[27], fe = n[28], pe = n[29], me = n[30], X = n[31], he = n[32], ge = n[33], ve = n[34], ye = n[35], be = n[36], xe = n[37], Se = n[38], Ce = n[39];
|
|
5071
|
+
let we;
|
|
5072
|
+
n[199] !== m.id || n[200] !== K || n[201] !== P ? (we = P && K.length > 0 && !Hn(m.id), n[199] = m.id, n[200] = K, n[201] = P, n[202] = we) : we = n[202];
|
|
5073
|
+
let Te = we, Ee = G ? vo.headerCellSortable : "", De = ge ? vo.headerCellFiltered : "", Z = X ? vo.headerCellDragging : "", Oe = b === "before" ? vo.headerCellDropBefore : "", ke = b === "after" ? vo.headerCellDropAfter : "", Ae = i.isBoundary && xe === "left" ? no.stickyLeft : "", Q = i.isBoundary && xe === "right" ? no.stickyRight : "", je;
|
|
5074
|
+
n[203] !== Ee || n[204] !== De || n[205] !== Z || n[206] !== Oe || n[207] !== ke || n[208] !== Ae || n[209] !== Q ? (je = [
|
|
5075
5075
|
vo.headerCell,
|
|
5076
|
-
Te,
|
|
5077
5076
|
Ee,
|
|
5078
|
-
Q,
|
|
5079
5077
|
De,
|
|
5078
|
+
Z,
|
|
5080
5079
|
Oe,
|
|
5081
5080
|
ke,
|
|
5082
|
-
Ae
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5081
|
+
Ae,
|
|
5082
|
+
Q
|
|
5083
|
+
].filter(Boolean), n[203] = Ee, n[204] = De, n[205] = Z, n[206] = Oe, n[207] = ke, n[208] = Ae, n[209] = Q, n[210] = je) : je = n[210];
|
|
5084
|
+
let Me = je.join(" "), Ne = ye || ge || void 0, Pe;
|
|
5085
|
+
n[211] === m.id ? Pe = n[212] : (Pe = Hn(m.id) || void 0, n[211] = m.id, n[212] = Pe);
|
|
5086
|
+
let Ie = G ? ye ? Se ? "descending" : "ascending" : "none" : void 0, Le = H && !me, Re = H ? fe : void 0, ze = H ? le : void 0, Be = he ? de : void 0, Ve = he ? ue : void 0, He = he ? pe : void 0, Ue = r.colSpan > 1 ? `span ${r.colSpan}` : void 0, We = xe === "left" ? i.offset : void 0, Ge = xe === "right" ? i.offset : void 0, Ke = xe ? "sticky" : void 0, qe = xe ? "var(--dg-z-header-pinned-cell, 7)" : void 0, Je;
|
|
5087
|
+
n[213] !== Ue || n[214] !== We || n[215] !== Ge || n[216] !== Ke || n[217] !== qe ? (Je = {
|
|
5088
|
+
gridColumn: Ue,
|
|
5089
|
+
left: We,
|
|
5090
|
+
right: Ge,
|
|
5091
|
+
position: Ke,
|
|
5092
|
+
zIndex: qe
|
|
5093
|
+
}, n[213] = Ue, n[214] = We, n[215] = Ge, n[216] = Ke, n[217] = qe, n[218] = Je) : Je = n[218];
|
|
5094
|
+
let Ye = G ? zo : void 0, Xe;
|
|
5095
|
+
n[219] !== G || n[220] !== m ? (Xe = G ? (e) => {
|
|
5096
5096
|
if (C.current) {
|
|
5097
5097
|
C.current = !1;
|
|
5098
5098
|
return;
|
|
5099
5099
|
}
|
|
5100
5100
|
m.getToggleSortingHandler()?.(e);
|
|
5101
|
-
} : void 0, n[219] =
|
|
5102
|
-
let
|
|
5103
|
-
n[222] !== m.columnDef || n[223] !== r || n[224] !== P || n[225] !==
|
|
5104
|
-
label:
|
|
5101
|
+
} : void 0, n[219] = G, n[220] = m, n[221] = Xe) : Xe = n[221];
|
|
5102
|
+
let Ze;
|
|
5103
|
+
n[222] !== m.columnDef || n[223] !== r || n[224] !== P || n[225] !== be ? (Ze = r.isPlaceholder ? null : /* @__PURE__ */ J(k, {
|
|
5104
|
+
label: be,
|
|
5105
5105
|
openDelay: 600,
|
|
5106
5106
|
withinPortal: !0,
|
|
5107
5107
|
disabled: !P,
|
|
5108
|
-
children: /* @__PURE__ */
|
|
5108
|
+
children: /* @__PURE__ */ J("span", {
|
|
5109
5109
|
className: vo.headerTitle,
|
|
5110
5110
|
"data-dg-header-title": !0,
|
|
5111
5111
|
children: Fe(m.columnDef.header, r.getContext())
|
|
5112
5112
|
})
|
|
5113
|
-
}), n[222] = m.columnDef, n[223] = r, n[224] = P, n[225] =
|
|
5114
|
-
let
|
|
5115
|
-
n[227] !== o || n[228] !==
|
|
5113
|
+
}), n[222] = m.columnDef, n[223] = r, n[224] = P, n[225] = be, n[226] = Ze) : Ze = n[226];
|
|
5114
|
+
let Qe;
|
|
5115
|
+
n[227] !== o || n[228] !== G || n[229] !== m || n[230] !== v || n[231] !== f || n[232] !== K || n[233] !== Te || n[234] !== ge || n[235] !== P || n[236] !== ye || n[237] !== be || n[238] !== p || n[239] !== h || n[240] !== Se || n[241] !== Ce ? (Qe = P && /* @__PURE__ */ Y("div", {
|
|
5116
5116
|
className: vo.headerActions,
|
|
5117
5117
|
children: [
|
|
5118
|
-
|
|
5118
|
+
ge && !f.inHeader && /* @__PURE__ */ J(l, {
|
|
5119
5119
|
className: vo.headerAction,
|
|
5120
5120
|
"data-pinned-visible": "true",
|
|
5121
5121
|
variant: "subtle",
|
|
5122
5122
|
color: "gray",
|
|
5123
5123
|
size: "xs",
|
|
5124
|
-
"aria-label": p.filterOn(
|
|
5124
|
+
"aria-label": p.filterOn(be),
|
|
5125
5125
|
"data-dg-part": "header-filter",
|
|
5126
5126
|
"data-column-id": m.id,
|
|
5127
5127
|
onClick: (e) => {
|
|
5128
5128
|
e.stopPropagation(), Ea(o, m.id);
|
|
5129
5129
|
},
|
|
5130
|
-
children: /* @__PURE__ */
|
|
5130
|
+
children: /* @__PURE__ */ J(re, {
|
|
5131
5131
|
size: 14,
|
|
5132
5132
|
stroke: 1.6
|
|
5133
5133
|
})
|
|
5134
5134
|
}),
|
|
5135
|
-
|
|
5135
|
+
G && /* @__PURE__ */ J(l, {
|
|
5136
5136
|
className: `${vo.headerAction} ${vo.sortAction}`,
|
|
5137
|
-
"data-pinned-visible":
|
|
5138
|
-
"data-sorted":
|
|
5137
|
+
"data-pinned-visible": ye || void 0,
|
|
5138
|
+
"data-sorted": ye || void 0,
|
|
5139
5139
|
variant: "subtle",
|
|
5140
|
-
color:
|
|
5140
|
+
color: ye ? void 0 : "gray",
|
|
5141
5141
|
size: "xs",
|
|
5142
|
-
"aria-label": p.sortColumn(
|
|
5142
|
+
"aria-label": p.sortColumn(be),
|
|
5143
5143
|
"data-dg-part": "header-sort",
|
|
5144
5144
|
"data-column-id": m.id,
|
|
5145
5145
|
onClick: m.getToggleSortingHandler(),
|
|
5146
|
-
children:
|
|
5146
|
+
children: J(Se ? I : z, {
|
|
5147
5147
|
size: 14,
|
|
5148
5148
|
stroke: 1.6
|
|
5149
5149
|
})
|
|
5150
5150
|
}),
|
|
5151
|
-
|
|
5151
|
+
Ce !== null && /* @__PURE__ */ J("span", {
|
|
5152
5152
|
className: vo.sortIndex,
|
|
5153
5153
|
"data-dg-part": "sort-index",
|
|
5154
|
-
children:
|
|
5154
|
+
children: Ce
|
|
5155
5155
|
}),
|
|
5156
|
-
|
|
5156
|
+
Te && /* @__PURE__ */ Y(_, {
|
|
5157
5157
|
opened: h,
|
|
5158
5158
|
onChange: g,
|
|
5159
5159
|
position: "bottom-start",
|
|
5160
5160
|
shadow: "md",
|
|
5161
5161
|
width: 220,
|
|
5162
5162
|
withinPortal: !0,
|
|
5163
|
-
children: [/* @__PURE__ */
|
|
5163
|
+
children: [/* @__PURE__ */ J(_.Target, { children: /* @__PURE__ */ J(l, {
|
|
5164
5164
|
className: vo.headerAction,
|
|
5165
|
-
"data-pinned-visible": h || v,
|
|
5165
|
+
"data-pinned-visible": h || v || void 0,
|
|
5166
5166
|
variant: "subtle",
|
|
5167
5167
|
color: "gray",
|
|
5168
5168
|
size: "xs",
|
|
5169
|
-
"aria-label": p.columnMenu(
|
|
5169
|
+
"aria-label": p.columnMenu(be),
|
|
5170
5170
|
"data-dg-part": "header-menu",
|
|
5171
5171
|
"data-column-id": m.id,
|
|
5172
5172
|
onClick: (e) => {
|
|
5173
5173
|
e.stopPropagation(), g(Ro);
|
|
5174
5174
|
},
|
|
5175
|
-
children: /* @__PURE__ */
|
|
5175
|
+
children: /* @__PURE__ */ J(U, {
|
|
5176
5176
|
size: 14,
|
|
5177
5177
|
stroke: 1.6
|
|
5178
5178
|
})
|
|
5179
|
-
}) }), /* @__PURE__ */
|
|
5179
|
+
}) }), /* @__PURE__ */ J(_.Dropdown, {
|
|
5180
5180
|
onClick: Lo,
|
|
5181
|
-
children:
|
|
5181
|
+
children: K
|
|
5182
5182
|
})]
|
|
5183
5183
|
})
|
|
5184
5184
|
]
|
|
5185
|
-
}), n[227] = o, n[228] =
|
|
5186
|
-
let
|
|
5187
|
-
n[243] !==
|
|
5185
|
+
}), n[227] = o, n[228] = G, n[229] = m, n[230] = v, n[231] = f, n[232] = K, n[233] = Te, n[234] = ge, n[235] = P, n[236] = ye, n[237] = be, n[238] = p, n[239] = h, n[240] = Se, n[241] = Ce, n[242] = Qe) : Qe = n[242];
|
|
5186
|
+
let $e;
|
|
5187
|
+
n[243] !== V || n[244] !== W || n[245] !== m.id || n[246] !== q || n[247] !== r || n[248] !== ve ? ($e = !Hn(m.id) && /* @__PURE__ */ J("div", {
|
|
5188
5188
|
className: [
|
|
5189
5189
|
vo.columnSeparator,
|
|
5190
|
-
|
|
5191
|
-
|
|
5190
|
+
W ? vo.columnSeparatorResizable : "",
|
|
5191
|
+
ve ? vo.columnSeparatorActive : ""
|
|
5192
5192
|
].filter(Boolean).join(" "),
|
|
5193
5193
|
draggable: !1,
|
|
5194
|
-
onMouseDown:
|
|
5195
|
-
C.current = !0,
|
|
5194
|
+
onMouseDown: W ? (e) => {
|
|
5195
|
+
C.current = !0, q(), r.getResizeHandler(e.currentTarget.ownerDocument)(e);
|
|
5196
5196
|
} : void 0,
|
|
5197
|
-
onTouchStart:
|
|
5198
|
-
|
|
5197
|
+
onTouchStart: W ? (e) => {
|
|
5198
|
+
q(), r.getResizeHandler(e.currentTarget.ownerDocument)(e);
|
|
5199
5199
|
} : void 0,
|
|
5200
5200
|
onClick: Io,
|
|
5201
|
-
onDoubleClick:
|
|
5202
|
-
e.stopPropagation(),
|
|
5201
|
+
onDoubleClick: W ? (e) => {
|
|
5202
|
+
e.stopPropagation(), V();
|
|
5203
5203
|
} : void 0
|
|
5204
|
-
}), n[243] =
|
|
5205
|
-
let
|
|
5206
|
-
n[250] !==
|
|
5204
|
+
}), n[243] = V, n[244] = W, n[245] = m.id, n[246] = q, n[247] = r, n[248] = ve, n[249] = $e) : $e = n[249];
|
|
5205
|
+
let et;
|
|
5206
|
+
n[250] !== B || 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", {
|
|
5207
5207
|
ref: S,
|
|
5208
5208
|
role: "columnheader",
|
|
5209
5209
|
"data-dg-part": "header",
|
|
5210
|
-
"data-column-id":
|
|
5211
|
-
"data-active":
|
|
5212
|
-
"data-align":
|
|
5213
|
-
"data-control-column":
|
|
5214
|
-
"aria-sort":
|
|
5210
|
+
"data-column-id": m.id,
|
|
5211
|
+
"data-active": Ne,
|
|
5212
|
+
"data-align": B,
|
|
5213
|
+
"data-control-column": Pe,
|
|
5214
|
+
"aria-sort": Ie,
|
|
5215
5215
|
className: Me,
|
|
5216
|
-
draggable:
|
|
5217
|
-
onDragStart:
|
|
5218
|
-
onDragEnd:
|
|
5219
|
-
onDragOver:
|
|
5220
|
-
onDragLeave:
|
|
5221
|
-
onDrop:
|
|
5222
|
-
style:
|
|
5223
|
-
onMouseDown:
|
|
5224
|
-
onClick:
|
|
5216
|
+
draggable: Le,
|
|
5217
|
+
onDragStart: Re,
|
|
5218
|
+
onDragEnd: ze,
|
|
5219
|
+
onDragOver: Be,
|
|
5220
|
+
onDragLeave: Ve,
|
|
5221
|
+
onDrop: He,
|
|
5222
|
+
style: Je,
|
|
5223
|
+
onMouseDown: Ye,
|
|
5224
|
+
onClick: Xe,
|
|
5225
5225
|
children: [
|
|
5226
|
+
Ze,
|
|
5226
5227
|
Qe,
|
|
5227
|
-
$e
|
|
5228
|
-
et
|
|
5228
|
+
$e
|
|
5229
5229
|
]
|
|
5230
|
-
}), n[250] =
|
|
5231
|
-
let
|
|
5232
|
-
if (!
|
|
5233
|
-
let
|
|
5234
|
-
n[269] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
5230
|
+
}), n[250] = B, 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, n[268] = et) : et = n[268];
|
|
5231
|
+
let tt = et;
|
|
5232
|
+
if (!Te) return tt;
|
|
5233
|
+
let nt;
|
|
5234
|
+
n[269] === Symbol.for("react.memo_cache_sentinel") ? (nt = (e) => {
|
|
5235
5235
|
y(e), e && g(!1);
|
|
5236
|
-
}, n[269] =
|
|
5236
|
+
}, n[269] = nt) : nt = n[269];
|
|
5237
|
+
let rt;
|
|
5238
|
+
n[270] === tt ? rt = n[271] : (rt = /* @__PURE__ */ J(_.ContextMenu, { children: tt }), n[270] = tt, n[271] = rt);
|
|
5237
5239
|
let it;
|
|
5238
|
-
n[
|
|
5239
|
-
let at;
|
|
5240
|
-
n[272] === q ? at = n[273] : (at = /* @__PURE__ */ Y(_.Dropdown, {
|
|
5240
|
+
n[272] === K ? it = n[273] : (it = /* @__PURE__ */ J(_.Dropdown, {
|
|
5241
5241
|
onClick: Fo,
|
|
5242
|
-
children:
|
|
5243
|
-
}), n[272] =
|
|
5244
|
-
let
|
|
5245
|
-
return n[274] !== v || n[275] !==
|
|
5242
|
+
children: K
|
|
5243
|
+
}), n[272] = K, n[273] = it);
|
|
5244
|
+
let at;
|
|
5245
|
+
return n[274] !== v || n[275] !== rt || n[276] !== it ? (at = /* @__PURE__ */ Y(_, {
|
|
5246
5246
|
opened: v,
|
|
5247
|
-
onChange:
|
|
5247
|
+
onChange: nt,
|
|
5248
5248
|
position: "bottom-start",
|
|
5249
5249
|
shadow: "md",
|
|
5250
5250
|
width: 220,
|
|
5251
5251
|
withinPortal: !0,
|
|
5252
|
-
children: [
|
|
5253
|
-
}), n[274] = v, n[275] =
|
|
5252
|
+
children: [rt, it]
|
|
5253
|
+
}), n[274] = v, n[275] = rt, n[276] = it, n[277] = at) : at = n[277], at;
|
|
5254
5254
|
}
|
|
5255
5255
|
function Fo(e) {
|
|
5256
5256
|
return e.stopPropagation();
|
|
@@ -5299,19 +5299,19 @@ function Wo(e) {
|
|
|
5299
5299
|
//#endregion
|
|
5300
5300
|
//#region src/components/editors/editorShared.ts
|
|
5301
5301
|
function Go(e) {
|
|
5302
|
-
return
|
|
5302
|
+
return he(e.store, Ko);
|
|
5303
5303
|
}
|
|
5304
5304
|
function Ko(e) {
|
|
5305
5305
|
return e.value;
|
|
5306
5306
|
}
|
|
5307
5307
|
function qo(e) {
|
|
5308
|
-
return
|
|
5308
|
+
return he(e.store, Jo);
|
|
5309
5309
|
}
|
|
5310
5310
|
function Jo(e) {
|
|
5311
5311
|
return Jt(e.meta.errors);
|
|
5312
5312
|
}
|
|
5313
5313
|
function Yo(e) {
|
|
5314
|
-
return
|
|
5314
|
+
return he(e.store, Xo);
|
|
5315
5315
|
}
|
|
5316
5316
|
function Xo(e) {
|
|
5317
5317
|
return Jt(e.meta.errors) !== void 0;
|
|
@@ -5347,7 +5347,7 @@ function $o(t) {
|
|
|
5347
5347
|
let u = s === !0, d;
|
|
5348
5348
|
n[3] === r ? d = n[4] : (d = (e) => r.handleChange(e.currentTarget.checked), n[3] = r, n[4] = d);
|
|
5349
5349
|
let f;
|
|
5350
|
-
return n[5] !== r.handleBlur || n[6] !== c || n[7] !== a || n[8] !== l || n[9] !== u || n[10] !== d ? (f = /* @__PURE__ */
|
|
5350
|
+
return n[5] !== r.handleBlur || n[6] !== c || n[7] !== a || n[8] !== l || n[9] !== u || n[10] !== d ? (f = /* @__PURE__ */ J(p, {
|
|
5351
5351
|
size: a,
|
|
5352
5352
|
"aria-label": l,
|
|
5353
5353
|
"data-dg-part": "editor-input",
|
|
@@ -5374,7 +5374,7 @@ function es(t) {
|
|
|
5374
5374
|
r.handleChange(u.current ? /* @__PURE__ */ new Date(`${t}T00:00:00`) : t);
|
|
5375
5375
|
}, n[5] = r, n[6] = m);
|
|
5376
5376
|
let h;
|
|
5377
|
-
return n[7] !== r.handleBlur || n[8] !== l || n[9] !== a || n[10] !== p || n[11] !== m || n[12] !== f ? (h = /* @__PURE__ */
|
|
5377
|
+
return n[7] !== r.handleBlur || n[8] !== l || n[9] !== a || n[10] !== p || n[11] !== m || n[12] !== f ? (h = /* @__PURE__ */ J(O, {
|
|
5378
5378
|
size: a,
|
|
5379
5379
|
w: "100%",
|
|
5380
5380
|
type: "date",
|
|
@@ -5405,7 +5405,7 @@ function ts(t) {
|
|
|
5405
5405
|
let h;
|
|
5406
5406
|
n[10] === r ? h = n[11] : (h = (e) => r.handleChange(e), n[10] = r, n[11] = h);
|
|
5407
5407
|
let g;
|
|
5408
|
-
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__ */
|
|
5408
|
+
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, {
|
|
5409
5409
|
size: s,
|
|
5410
5410
|
w: "100%",
|
|
5411
5411
|
searchable: !0,
|
|
@@ -5435,7 +5435,7 @@ function ns(t) {
|
|
|
5435
5435
|
r.handleChange(e !== "" && Number.isFinite(t) ? t : null);
|
|
5436
5436
|
}, n[3] = r, n[4] = u, n[5] = d, n[6] = v) : v = n[6];
|
|
5437
5437
|
let y;
|
|
5438
|
-
return n[7] !== r.handleBlur || n[8] !== u || n[9] !== l || n[10] !== a || n[11] !== g || n[12] !== _ || n[13] !== v ? (y = /* @__PURE__ */
|
|
5438
|
+
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, {
|
|
5439
5439
|
ref: u,
|
|
5440
5440
|
size: a,
|
|
5441
5441
|
w: "100%",
|
|
@@ -5468,7 +5468,7 @@ function rs(t) {
|
|
|
5468
5468
|
r.handleChange(e), e !== null && u.editMode === "cell" && c();
|
|
5469
5469
|
}, n[8] = c, n[9] = u, n[10] = r, n[11] = _) : _ = n[11];
|
|
5470
5470
|
let v;
|
|
5471
|
-
return n[12] !== r.handleBlur || n[13] !== f || n[14] !== s || n[15] !== m || n[16] !== h || n[17] !== g || n[18] !== _ ? (v = /* @__PURE__ */
|
|
5471
|
+
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, {
|
|
5472
5472
|
size: s,
|
|
5473
5473
|
w: "100%",
|
|
5474
5474
|
searchable: !0,
|
|
@@ -5492,7 +5492,7 @@ function is(t) {
|
|
|
5492
5492
|
u(e.currentTarget), r.handleChange(e.currentTarget.value);
|
|
5493
5493
|
}, n[3] = r, n[4] = u, n[5] = p) : p = n[5];
|
|
5494
5494
|
let m;
|
|
5495
|
-
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__ */
|
|
5495
|
+
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, {
|
|
5496
5496
|
ref: l,
|
|
5497
5497
|
size: a,
|
|
5498
5498
|
w: "100%",
|
|
@@ -5521,7 +5521,7 @@ function os({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5521
5521
|
y.current = h.columnDef.meta?.edit?.mapValue;
|
|
5522
5522
|
});
|
|
5523
5523
|
let [b] = c(() => {
|
|
5524
|
-
let e = new
|
|
5524
|
+
let e = new pe({
|
|
5525
5525
|
form: g,
|
|
5526
5526
|
name: _,
|
|
5527
5527
|
validators: $t(h.columnDef.meta?.edit?.validate)
|
|
@@ -5606,7 +5606,7 @@ function os({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5606
5606
|
size: p,
|
|
5607
5607
|
seedText: v
|
|
5608
5608
|
}, P = h.columnDef.meta?.edit?.editor ?? as[h.columnDef.meta?.type ?? "string"] ?? is;
|
|
5609
|
-
return /* @__PURE__ */
|
|
5609
|
+
return /* @__PURE__ */ Y("div", {
|
|
5610
5610
|
className: zt.cellEditor,
|
|
5611
5611
|
"data-dg-part": "editor",
|
|
5612
5612
|
"data-row-id": t.id,
|
|
@@ -5615,12 +5615,12 @@ function os({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5615
5615
|
onBlur: M,
|
|
5616
5616
|
onMouseDown: (e) => e.stopPropagation(),
|
|
5617
5617
|
onDoubleClick: (e) => e.stopPropagation(),
|
|
5618
|
-
children: [/* @__PURE__ */
|
|
5618
|
+
children: [/* @__PURE__ */ J(k, {
|
|
5619
5619
|
label: x,
|
|
5620
5620
|
opened: x !== void 0 && (S || w),
|
|
5621
5621
|
withArrow: !0,
|
|
5622
5622
|
position: "bottom-start",
|
|
5623
|
-
children: /* @__PURE__ */
|
|
5623
|
+
children: /* @__PURE__ */ J("div", {
|
|
5624
5624
|
className: zt.cellEditorField,
|
|
5625
5625
|
onMouseEnter: () => C(!0),
|
|
5626
5626
|
onMouseLeave: () => C(!1),
|
|
@@ -5629,11 +5629,11 @@ function os({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5629
5629
|
let t = e.relatedTarget;
|
|
5630
5630
|
vn(t) && e.currentTarget.contains(t) || T(!1);
|
|
5631
5631
|
},
|
|
5632
|
-
children: /* @__PURE__ */
|
|
5632
|
+
children: /* @__PURE__ */ J(P, { ...N })
|
|
5633
5633
|
})
|
|
5634
|
-
}), d.editMode === "cellConfirm" && /* @__PURE__ */
|
|
5634
|
+
}), d.editMode === "cellConfirm" && /* @__PURE__ */ Y("div", {
|
|
5635
5635
|
className: zt.cellEditorActions,
|
|
5636
|
-
children: [/* @__PURE__ */
|
|
5636
|
+
children: [/* @__PURE__ */ J(l, {
|
|
5637
5637
|
size: "sm",
|
|
5638
5638
|
variant: "subtle",
|
|
5639
5639
|
color: "green",
|
|
@@ -5641,11 +5641,11 @@ function os({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5641
5641
|
"data-dg-part": "editor-confirm",
|
|
5642
5642
|
onMouseDown: (e) => e.preventDefault(),
|
|
5643
5643
|
onClick: () => void D("pick"),
|
|
5644
|
-
children: /* @__PURE__ */
|
|
5644
|
+
children: /* @__PURE__ */ J(B, {
|
|
5645
5645
|
size: 14,
|
|
5646
5646
|
stroke: 2
|
|
5647
5647
|
})
|
|
5648
|
-
}), /* @__PURE__ */
|
|
5648
|
+
}), /* @__PURE__ */ J(l, {
|
|
5649
5649
|
size: "sm",
|
|
5650
5650
|
variant: "subtle",
|
|
5651
5651
|
color: "gray",
|
|
@@ -5653,7 +5653,7 @@ function os({ cell: e, row: t, takeSeedText: n, onClose: r, inEntryBlock: a = !1
|
|
|
5653
5653
|
"data-dg-part": "editor-cancel",
|
|
5654
5654
|
onMouseDown: (e) => e.preventDefault(),
|
|
5655
5655
|
onClick: O,
|
|
5656
|
-
children: /* @__PURE__ */
|
|
5656
|
+
children: /* @__PURE__ */ J(de, {
|
|
5657
5657
|
size: 14,
|
|
5658
5658
|
stroke: 2
|
|
5659
5659
|
})
|
|
@@ -5697,7 +5697,7 @@ function ls(t) {
|
|
|
5697
5697
|
let v = M(u.store, _), y = i.id, b;
|
|
5698
5698
|
n[14] === i ? b = n[15] : (b = Vn(i), n[14] = i, n[15] = b);
|
|
5699
5699
|
let x;
|
|
5700
|
-
n[16] === i.id ? x = n[17] : (x = Hn(i.id), n[16] = i.id, n[17] = x);
|
|
5700
|
+
n[16] === i.id ? x = n[17] : (x = Hn(i.id) || void 0, n[16] = i.id, n[17] = x);
|
|
5701
5701
|
let S = m || void 0, C;
|
|
5702
5702
|
n[18] !== i.id || n[19] !== o || n[20] !== u || n[21] !== g || n[22] !== r ? (C = o && g ? () => u.begin({
|
|
5703
5703
|
rowId: r.id,
|
|
@@ -5718,18 +5718,18 @@ function ls(t) {
|
|
|
5718
5718
|
zIndex: j
|
|
5719
5719
|
}, n[27] = c, n[28] = O, n[29] = k, n[30] = A, n[31] = j, n[32] = N) : N = n[32];
|
|
5720
5720
|
let P;
|
|
5721
|
-
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__ */
|
|
5721
|
+
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(os, {
|
|
5722
5722
|
cell: a,
|
|
5723
5723
|
row: r,
|
|
5724
5724
|
takeSeedText: ds,
|
|
5725
5725
|
onClose: us,
|
|
5726
5726
|
inEntryBlock: !0
|
|
5727
|
-
}) : o || !Hn(i.id) ? /* @__PURE__ */
|
|
5727
|
+
}) : o || !Hn(i.id) ? /* @__PURE__ */ J("span", {
|
|
5728
5728
|
className: zt.cellContent,
|
|
5729
5729
|
children: Fe(a.column.columnDef.cell, v === void 0 ? a.getContext() : ss(a, v))
|
|
5730
5730
|
}) : 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];
|
|
5731
5731
|
let F;
|
|
5732
|
-
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__ */
|
|
5732
|
+
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", {
|
|
5733
5733
|
role: "cell",
|
|
5734
5734
|
"data-column-id": y,
|
|
5735
5735
|
"data-align": b,
|
|
@@ -5747,7 +5747,7 @@ function fs(t) {
|
|
|
5747
5747
|
let n = e(35), { orderedColumns: r, layoutFor: i, rowHeight: o } = t, { table: c, edit: l, features: u } = $(), d = u.editNewRowsSticky, f;
|
|
5748
5748
|
n[0] === d ? f = n[1] : (f = (e) => d ? e.newRows : e.newRows.filter(_s), n[0] = d, n[1] = f);
|
|
5749
5749
|
let p;
|
|
5750
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (p = { compare:
|
|
5750
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (p = { compare: _e }, n[2] = p) : p = n[2];
|
|
5751
5751
|
let m = M(l.store, f, p), h = M(l.store, gs), g = M(l.store, hs), _ = s(null), v = s(null), y = s(null), b;
|
|
5752
5752
|
n[3] === m ? b = n[4] : (b = () => {
|
|
5753
5753
|
let e = m.at(-1)?.tempId;
|
|
@@ -5800,15 +5800,15 @@ function fs(t) {
|
|
|
5800
5800
|
let a = t, s;
|
|
5801
5801
|
n[28] !== a || n[29] !== i || n[30] !== r || n[31] !== o ? (s = (e, t) => {
|
|
5802
5802
|
let n = new Map(e.getAllCells().map(ps)), s = a.get(e.id) === !0;
|
|
5803
|
-
return /* @__PURE__ */
|
|
5803
|
+
return /* @__PURE__ */ J("div", {
|
|
5804
5804
|
role: "row",
|
|
5805
5805
|
"data-dg-part": "entry-row",
|
|
5806
5806
|
"data-row-id": e.id,
|
|
5807
5807
|
"data-new": !0,
|
|
5808
|
-
"data-committed": s,
|
|
5809
|
-
"data-draft": s,
|
|
5808
|
+
"data-committed": s || void 0,
|
|
5809
|
+
"data-draft": s || void 0,
|
|
5810
5810
|
className: zt.entryRow,
|
|
5811
|
-
children: r.map((r) => /* @__PURE__ */
|
|
5811
|
+
children: r.map((r) => /* @__PURE__ */ J(ls, {
|
|
5812
5812
|
entryRow: e,
|
|
5813
5813
|
column: r,
|
|
5814
5814
|
cell: n.get(r.id),
|
|
@@ -5820,7 +5820,7 @@ function fs(t) {
|
|
|
5820
5820
|
}, e.id);
|
|
5821
5821
|
}, n[28] = a, n[29] = i, n[30] = r, n[31] = o, n[32] = s) : s = n[32];
|
|
5822
5822
|
let c = s;
|
|
5823
|
-
D = e.length > 0 && /* @__PURE__ */
|
|
5823
|
+
D = e.length > 0 && /* @__PURE__ */ J("div", {
|
|
5824
5824
|
ref: _,
|
|
5825
5825
|
role: "rowgroup",
|
|
5826
5826
|
"data-dg-entry-block": !0,
|
|
@@ -5829,7 +5829,7 @@ function fs(t) {
|
|
|
5829
5829
|
}), n[20] = E, n[21] = i, n[22] = m, n[23] = r, n[24] = o, n[25] = D;
|
|
5830
5830
|
} else D = n[25];
|
|
5831
5831
|
let O;
|
|
5832
|
-
return n[33] === D ? O = n[34] : (O = /* @__PURE__ */
|
|
5832
|
+
return n[33] === D ? O = n[34] : (O = /* @__PURE__ */ J(fe, { children: D }), n[33] = D, n[34] = O), O;
|
|
5833
5833
|
}
|
|
5834
5834
|
function ps(e) {
|
|
5835
5835
|
return [e.column.id, e];
|
|
@@ -5985,7 +5985,7 @@ function Fs(e, t) {
|
|
|
5985
5985
|
let n = As(e, t);
|
|
5986
5986
|
if (n === null) return e;
|
|
5987
5987
|
let r = [], i = 0;
|
|
5988
|
-
for (let t of n) t.start > i && r.push(e.slice(i, t.start)), r.push(/* @__PURE__ */
|
|
5988
|
+
for (let t of n) t.start > i && r.push(e.slice(i, t.start)), r.push(/* @__PURE__ */ J("mark", {
|
|
5989
5989
|
className: zt.matchHighlight,
|
|
5990
5990
|
children: e.slice(t.start, t.end)
|
|
5991
5991
|
}, t.start)), i = t.end;
|
|
@@ -6012,24 +6012,24 @@ function Is(t) {
|
|
|
6012
6012
|
n[10] !== b || n[11] !== S ? (D = (e) => {
|
|
6013
6013
|
if (!S && !e.committedRowIds.includes(b) && !e.newRows.some((e) => e.tempId === b && e.committed)) return e.rows[b]?.values;
|
|
6014
6014
|
}, n[10] = b, n[11] = S, n[12] = D) : D = n[12];
|
|
6015
|
-
let O = M(_.store, D), k = o ? "gridcell" : "cell", A = o?.columnIndex, j = o?.tabIndex, N = o ? !0 : void 0, P = r.row.id, F = r.column.id,
|
|
6016
|
-
n[13] === r.column ?
|
|
6017
|
-
let
|
|
6018
|
-
n[15] !==
|
|
6015
|
+
let O = M(_.store, D), k = o ? "gridcell" : "cell", A = o?.columnIndex, j = o?.tabIndex, N = o ? !0 : void 0, P = r.row.id, F = r.column.id, ee = o?.focused || void 0, I = o?.selected, L = o?.selected || void 0, R = o?.edges?.top || void 0, z = o?.edges?.bottom || void 0, B = o?.edges?.left || void 0, V = o?.edges?.right || void 0, H = s !== void 0 || void 0, te = w || void 0, U = E || void 0, W;
|
|
6016
|
+
n[13] === r.column ? W = n[14] : (W = Vn(r.column), n[13] = r.column, n[14] = W);
|
|
6017
|
+
let ne = S || void 0, re = a.isBoundary && a.pinnedAt === "left" ? no.stickyLeft : "", ie = a.isBoundary && a.pinnedAt === "right" ? no.stickyRight : "", ae;
|
|
6018
|
+
n[15] !== re || n[16] !== ie ? (ae = [
|
|
6019
6019
|
zt.bodyCell,
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
].filter(Boolean), n[15] =
|
|
6023
|
-
let
|
|
6024
|
-
n[18] !== i || n[19] !==
|
|
6020
|
+
re,
|
|
6021
|
+
ie
|
|
6022
|
+
].filter(Boolean), n[15] = re, n[16] = ie, n[17] = ae) : ae = n[17];
|
|
6023
|
+
let oe = ae.join(" "), se = a.pinnedAt === "left" ? a.offset : void 0, G = 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;
|
|
6024
|
+
n[18] !== i || n[19] !== se || n[20] !== G || n[21] !== K || n[22] !== ce ? (q = {
|
|
6025
6025
|
minHeight: i,
|
|
6026
|
-
left:
|
|
6027
|
-
right:
|
|
6026
|
+
left: se,
|
|
6027
|
+
right: G,
|
|
6028
6028
|
position: K,
|
|
6029
|
-
zIndex:
|
|
6030
|
-
}, n[18] = i, n[19] =
|
|
6031
|
-
let
|
|
6032
|
-
n[24] !== r || n[25] !== c || n[26] !== O || n[27] !== s || n[28] !== l || n[29] !== g ? (
|
|
6029
|
+
zIndex: ce
|
|
6030
|
+
}, n[18] = i, n[19] = se, n[20] = G, n[21] = K, n[22] = ce, n[23] = q) : q = n[23];
|
|
6031
|
+
let le;
|
|
6032
|
+
n[24] !== r || n[25] !== c || n[26] !== O || n[27] !== s || n[28] !== l || n[29] !== g ? (le = s ?? /* @__PURE__ */ J("span", {
|
|
6033
6033
|
className: zt.cellContent,
|
|
6034
6034
|
children: (() => {
|
|
6035
6035
|
let e = O !== void 0 && c === void 0 && !r.getIsPlaceholder() && !r.getIsAggregated() ? ss(r, O) : void 0;
|
|
@@ -6039,43 +6039,43 @@ function Is(t) {
|
|
|
6039
6039
|
}
|
|
6040
6040
|
return e === void 0 ? c ?? Ps(r) : Fe(r.column.columnDef.cell, e);
|
|
6041
6041
|
})()
|
|
6042
|
-
}), n[24] = r, n[25] = c, n[26] = O, n[27] = s, n[28] = l, n[29] = g, n[30] =
|
|
6043
|
-
let
|
|
6044
|
-
return n[31] !== r.column.id || n[32] !== r.row.id || n[33] !==
|
|
6042
|
+
}), n[24] = r, n[25] = c, n[26] = O, n[27] = s, n[28] = l, n[29] = g, n[30] = le) : le = n[30];
|
|
6043
|
+
let ue;
|
|
6044
|
+
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] !== ee || n[40] !== I || n[41] !== L || n[42] !== R || n[43] !== z || n[44] !== B || n[45] !== V || n[46] !== H || n[47] !== te || n[48] !== U || n[49] !== W || n[50] !== ne || n[51] !== oe || n[52] !== q || n[53] !== le || n[54] !== k || n[55] !== A || n[56] !== j || n[57] !== N ? (ue = /* @__PURE__ */ J("div", {
|
|
6045
6045
|
role: k,
|
|
6046
6046
|
"aria-colindex": A,
|
|
6047
6047
|
tabIndex: j,
|
|
6048
6048
|
"data-cell": N,
|
|
6049
6049
|
"data-row-id": P,
|
|
6050
6050
|
"data-column-id": F,
|
|
6051
|
-
"data-focused":
|
|
6052
|
-
"aria-selected":
|
|
6053
|
-
"data-selected":
|
|
6054
|
-
"data-edge-top":
|
|
6055
|
-
"data-edge-bottom":
|
|
6056
|
-
"data-edge-left":
|
|
6057
|
-
"data-edge-right":
|
|
6051
|
+
"data-focused": ee,
|
|
6052
|
+
"aria-selected": I,
|
|
6053
|
+
"data-selected": L,
|
|
6054
|
+
"data-edge-top": R,
|
|
6055
|
+
"data-edge-bottom": z,
|
|
6056
|
+
"data-edge-left": B,
|
|
6057
|
+
"data-edge-right": V,
|
|
6058
6058
|
onFocus: u,
|
|
6059
6059
|
onClick: d,
|
|
6060
6060
|
onMouseDown: f,
|
|
6061
6061
|
onMouseEnter: p,
|
|
6062
6062
|
onDoubleClick: m,
|
|
6063
|
-
"data-editing":
|
|
6064
|
-
"data-dirty":
|
|
6065
|
-
"data-invalid":
|
|
6066
|
-
"data-align":
|
|
6067
|
-
"data-control-column":
|
|
6063
|
+
"data-editing": H,
|
|
6064
|
+
"data-dirty": te,
|
|
6065
|
+
"data-invalid": U,
|
|
6066
|
+
"data-align": W,
|
|
6067
|
+
"data-control-column": ne,
|
|
6068
6068
|
onContextMenu: h,
|
|
6069
|
-
className:
|
|
6070
|
-
style:
|
|
6071
|
-
children:
|
|
6072
|
-
}), n[31] = r.column.id, n[32] = r.row.id, n[33] =
|
|
6069
|
+
className: oe,
|
|
6070
|
+
style: q,
|
|
6071
|
+
children: le
|
|
6072
|
+
}), 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] = ee, n[40] = I, n[41] = L, n[42] = R, n[43] = z, n[44] = B, n[45] = V, n[46] = H, n[47] = te, n[48] = U, n[49] = W, n[50] = ne, n[51] = oe, 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;
|
|
6073
6073
|
}
|
|
6074
6074
|
function Ls(t) {
|
|
6075
6075
|
let n = e(16), { enabled: r, menuContent: i, menuProps: a, onContextMenu: o, onClose: s, children: c } = t, l;
|
|
6076
6076
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { display: "contents" }, n[0] = l) : l = n[0];
|
|
6077
6077
|
let u = r ? o : void 0, d;
|
|
6078
|
-
n[1] !== c || n[2] !== u ? (d = /* @__PURE__ */
|
|
6078
|
+
n[1] !== c || n[2] !== u ? (d = /* @__PURE__ */ J("div", {
|
|
6079
6079
|
role: "rowgroup",
|
|
6080
6080
|
style: l,
|
|
6081
6081
|
onContextMenu: u,
|
|
@@ -6088,11 +6088,11 @@ function Ls(t) {
|
|
|
6088
6088
|
e || s();
|
|
6089
6089
|
}, n[4] = s, n[5] = m);
|
|
6090
6090
|
let h;
|
|
6091
|
-
n[6] === f ? h = n[7] : (h = /* @__PURE__ */
|
|
6091
|
+
n[6] === f ? h = n[7] : (h = /* @__PURE__ */ J(_.ContextMenu, { children: f }), n[6] = f, n[7] = h);
|
|
6092
6092
|
let g;
|
|
6093
|
-
n[8] === i ? g = n[9] : (g = /* @__PURE__ */
|
|
6093
|
+
n[8] === i ? g = n[9] : (g = /* @__PURE__ */ J(_.Dropdown, { children: i }), n[8] = i, n[9] = g);
|
|
6094
6094
|
let v;
|
|
6095
|
-
return n[10] !== a || n[11] !== p || n[12] !== m || n[13] !== h || n[14] !== g ? (v = /* @__PURE__ */
|
|
6095
|
+
return n[10] !== a || n[11] !== p || n[12] !== m || n[13] !== h || n[14] !== g ? (v = /* @__PURE__ */ Y(_, {
|
|
6096
6096
|
opened: p,
|
|
6097
6097
|
onChange: m,
|
|
6098
6098
|
position: "bottom-start",
|
|
@@ -6103,20 +6103,20 @@ function Ls(t) {
|
|
|
6103
6103
|
}), n[10] = a, n[11] = p, n[12] = m, n[13] = h, n[14] = g, n[15] = v) : v = n[15], v;
|
|
6104
6104
|
}
|
|
6105
6105
|
function Rs({ 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, cellExport: w, onReachEnd: T, reachEndThreshold: E = 10, "aria-label": O, "aria-labelledby": k }) {
|
|
6106
|
-
let { table: A, ui: j, edit: N, features: P, filters: F, exportOptions:
|
|
6106
|
+
let { table: A, ui: j, edit: N, features: P, filters: F, exportOptions: ee, labels: I, rowHeight: L, controlSize: R, renderDetails: z, renderDetailsEstHeight: B, overscan: V, scrollerRef: H } = $();
|
|
6107
6107
|
Ma(A.store);
|
|
6108
|
-
let
|
|
6108
|
+
let te = M(j, (e) => e.highlightedRowId), U = M(j, (e) => e.focusedCell), W = M(j, (e) => e.cellRange), ne = M(N.store, (e) => e.active), re = M(N.store, (e) => e.openRowIds), ie = M(N.store, (e) => e.newRows), ae = ie.length, oe = M(N.store, (e) => e.deletedRowIds), se = M(N.store, (e) => e.openRowIds.filter((t) => (e.rows[t]?.dirtyFields.length ?? 0) > 0)), G = M(N.store, (e) => e.committedRowIds), K = o(() => new Set(re), [re]), ce = o(() => new Set(se), [se]), q = o(() => new Set(G), [G]), ue = o(() => new Set(ie.map((e) => e.tempId)), [ie]), { loading: de, noResultsLabel: pe = I.noResults } = A.options.meta ?? {}, me = s(null), X = wn(A, P), he = P.matchHighlighting ? ks(A) : null, ge = P.rowPinning ? Ds(A, "top") : [], _e = P.rowPinning ? Ds(A, "bottom") : [], ve = ge.length + _e.length, ye = null;
|
|
6109
6109
|
if (P.rowNumbers) {
|
|
6110
|
-
|
|
6110
|
+
ye = /* @__PURE__ */ new Map();
|
|
6111
6111
|
let e = Tn(A, P) ? A.store.state.pagination.pageIndex * A.store.state.pagination.pageSize : 0;
|
|
6112
|
-
for (let t of
|
|
6112
|
+
for (let t of X) t.getIsGrouped() || ye.set(t.id, ++e);
|
|
6113
6113
|
}
|
|
6114
|
-
let
|
|
6114
|
+
let be = (e) => z !== void 0 && !e.getIsGrouped() && e.getIsExpanded(), xe = s(null);
|
|
6115
6115
|
i(() => {
|
|
6116
|
-
let e =
|
|
6116
|
+
let e = me.current;
|
|
6117
6117
|
if (e === null) return;
|
|
6118
|
-
|
|
6119
|
-
let t =
|
|
6118
|
+
xe.current ??= new Set(A.getAllLeafColumns().filter((e) => e.columnDef.meta?.autoSize === !0).map((e) => e.id));
|
|
6119
|
+
let t = xe.current;
|
|
6120
6120
|
if (t.size !== 0) for (let n of [...t]) {
|
|
6121
6121
|
if (n in A.store.state.columnSizing) {
|
|
6122
6122
|
t.delete(n);
|
|
@@ -6129,19 +6129,19 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6129
6129
|
}), t.delete(n));
|
|
6130
6130
|
}
|
|
6131
6131
|
});
|
|
6132
|
-
let
|
|
6132
|
+
let Se = s(null), Ce = F.inHeader && di(A, P).canFilterAny, we = A.getCenterHeaderGroups().length, Te = s(null), [Ee, De] = c(0), [Z, Oe] = c(0), [ke, Ae] = c(0);
|
|
6133
6133
|
i(() => {
|
|
6134
|
-
let e =
|
|
6134
|
+
let e = Se.current;
|
|
6135
6135
|
if (e === null) return;
|
|
6136
6136
|
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 = () => {
|
|
6137
6137
|
let i = 0;
|
|
6138
6138
|
for (let e of t) e.style.top = `${i}px`, i += e.offsetHeight;
|
|
6139
|
-
(
|
|
6139
|
+
(ae > 0 || ge.length > 0) && e.style.setProperty("--dg-header-height", `${i}px`), Te.current?.style.setProperty("--dg-header-stack-height", `${i}px`);
|
|
6140
6140
|
let a = i;
|
|
6141
6141
|
for (let e of n) a += e.offsetHeight;
|
|
6142
6142
|
let o = a;
|
|
6143
6143
|
for (let e of r) o += e.offsetHeight;
|
|
6144
|
-
|
|
6144
|
+
Oe(a), De(o);
|
|
6145
6145
|
};
|
|
6146
6146
|
i();
|
|
6147
6147
|
let a = new ResizeObserver(i);
|
|
@@ -6152,13 +6152,13 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6152
6152
|
]) a.observe(e);
|
|
6153
6153
|
return () => a.disconnect();
|
|
6154
6154
|
}, [
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6155
|
+
ae,
|
|
6156
|
+
ge.length,
|
|
6157
|
+
Ce,
|
|
6158
|
+
we
|
|
6159
6159
|
]), i(() => {
|
|
6160
|
-
if (
|
|
6161
|
-
let e =
|
|
6160
|
+
if (ae === 0 || ge.length === 0) return;
|
|
6161
|
+
let e = Se.current;
|
|
6162
6162
|
if (e === null) return;
|
|
6163
6163
|
let t = e.querySelector("[data-dg-entry-block]");
|
|
6164
6164
|
if (t === null) return;
|
|
@@ -6168,43 +6168,43 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6168
6168
|
return r.observe(t), () => {
|
|
6169
6169
|
r.disconnect(), e.style.removeProperty("--dg-entry-height");
|
|
6170
6170
|
};
|
|
6171
|
-
}, [
|
|
6171
|
+
}, [ae, ge.length]), i(() => {
|
|
6172
6172
|
if (!P.pagination) return;
|
|
6173
6173
|
let e = A.getPageCount();
|
|
6174
6174
|
e > 0 && A.store.state.pagination.pageIndex >= e && A.setPageIndex(e - 1);
|
|
6175
6175
|
});
|
|
6176
|
-
let
|
|
6177
|
-
count:
|
|
6178
|
-
getScrollElement: () =>
|
|
6176
|
+
let Q = Ze({
|
|
6177
|
+
count: X.length,
|
|
6178
|
+
getScrollElement: () => me.current,
|
|
6179
6179
|
estimateSize: (e) => {
|
|
6180
|
-
let t =
|
|
6181
|
-
return t === void 0 ?
|
|
6180
|
+
let t = X[e];
|
|
6181
|
+
return t === void 0 ? L : L + (be(t) ? B : 0);
|
|
6182
6182
|
},
|
|
6183
6183
|
measureElement: (e, t, n) => e.getBoundingClientRect().height || n.options.estimateSize(n.indexFromElement(e)),
|
|
6184
|
-
getItemKey: n((e) =>
|
|
6185
|
-
overscan:
|
|
6184
|
+
getItemKey: n((e) => X[e]?.id ?? e, [X]),
|
|
6185
|
+
overscan: V,
|
|
6186
6186
|
initialRect: {
|
|
6187
6187
|
height: 600,
|
|
6188
6188
|
width: 1200
|
|
6189
6189
|
},
|
|
6190
|
-
scrollMargin:
|
|
6191
|
-
scrollPaddingStart:
|
|
6192
|
-
scrollPaddingEnd:
|
|
6193
|
-
}), je = s(
|
|
6190
|
+
scrollMargin: Ee,
|
|
6191
|
+
scrollPaddingStart: Z,
|
|
6192
|
+
scrollPaddingEnd: ke
|
|
6193
|
+
}), je = s(L);
|
|
6194
6194
|
i(() => {
|
|
6195
|
-
je.current !==
|
|
6196
|
-
}, [
|
|
6197
|
-
let Me =
|
|
6198
|
-
i(() => (
|
|
6199
|
-
if (
|
|
6200
|
-
let n =
|
|
6201
|
-
return n < 0 ? !1 : (
|
|
6195
|
+
je.current !== L && (je.current = L, Q.measure());
|
|
6196
|
+
}, [L, Q]);
|
|
6197
|
+
let Me = Q.getVirtualItems(), Ne = (Me[0]?.start ?? Ee) - Ee, Pe = Q.getTotalSize() - ((Me.at(-1)?.end ?? Ee) - Ee);
|
|
6198
|
+
i(() => (H.current = ({ rowId: e, align: t = "auto" }) => {
|
|
6199
|
+
if (ge.some((t) => t.id === e) || _e.some((t) => t.id === e)) return !0;
|
|
6200
|
+
let n = X.findIndex((t) => t.id === e);
|
|
6201
|
+
return n < 0 ? !1 : (Q.scrollToIndex(n, { align: t }), !0);
|
|
6202
6202
|
}, () => {
|
|
6203
|
-
|
|
6203
|
+
H.current = () => !1;
|
|
6204
6204
|
}));
|
|
6205
6205
|
let Ie = s(null), Le = s(!1), Re = Me.at(-1)?.index ?? -1;
|
|
6206
6206
|
i(() => {
|
|
6207
|
-
T === void 0 ||
|
|
6207
|
+
T === void 0 || X.length === 0 || (P.pagination && !Le.current && (Le.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.")), !(Re < X.length - 1 - E) && Ie.current !== X.length && (Ie.current = X.length, T()));
|
|
6208
6208
|
});
|
|
6209
6209
|
let ze = A.getStartVisibleLeafColumns(), Be = A.getEndVisibleLeafColumns(), Ve = A.getCenterVisibleLeafColumns(), He = [
|
|
6210
6210
|
...ze,
|
|
@@ -6257,7 +6257,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6257
6257
|
rightLane: [...Be].reverse().map((e) => e.id)
|
|
6258
6258
|
};
|
|
6259
6259
|
}), i(() => {
|
|
6260
|
-
let e =
|
|
6260
|
+
let e = Se.current;
|
|
6261
6261
|
if (!e) return;
|
|
6262
6262
|
let t = "", n = A.store.subscribe((n) => {
|
|
6263
6263
|
let r = Ss({
|
|
@@ -6272,10 +6272,10 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6272
6272
|
});
|
|
6273
6273
|
return () => n.unsubscribe();
|
|
6274
6274
|
}, [A]);
|
|
6275
|
-
let it =
|
|
6275
|
+
let it = X.length === 0 && ve === 0, at = A.store.state.globalFilter, ot = A.store.state.columnFilters.length > 0 || (typeof at == "string" ? at.trim() !== "" : at != null), st = Ke.at(-1)?.headers ?? [], ct = He.some((e) => e.columnDef.footer !== void 0), lt = Ke.length + +!!Ce;
|
|
6276
6276
|
a(() => {
|
|
6277
6277
|
if (!ct) return;
|
|
6278
|
-
let e =
|
|
6278
|
+
let e = Se.current;
|
|
6279
6279
|
if (e === null) return;
|
|
6280
6280
|
let t = e.querySelector("[data-dg-part=\"summary-row\"]");
|
|
6281
6281
|
if (t === null) return;
|
|
@@ -6286,22 +6286,22 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6286
6286
|
r.disconnect(), e.style.removeProperty("--dg-summary-height");
|
|
6287
6287
|
};
|
|
6288
6288
|
}, [ct]), i(() => {
|
|
6289
|
-
let e =
|
|
6289
|
+
let e = Se.current;
|
|
6290
6290
|
if (e === null) return;
|
|
6291
6291
|
let t = e.querySelectorAll("[data-dg-part=\"pinned-bottom\"], [data-dg-part=\"summary-row\"]"), n = () => {
|
|
6292
6292
|
let e = 0;
|
|
6293
6293
|
for (let n of t) e += n.offsetHeight;
|
|
6294
|
-
|
|
6294
|
+
Ae(e);
|
|
6295
6295
|
};
|
|
6296
6296
|
n();
|
|
6297
6297
|
let r = new ResizeObserver(n);
|
|
6298
6298
|
for (let e of t) r.observe(e);
|
|
6299
6299
|
return () => r.disconnect();
|
|
6300
|
-
}, [
|
|
6300
|
+
}, [_e.length, ct]);
|
|
6301
6301
|
let ut = P.rowClickSelects, dt = ut || P.highlightRow || e !== void 0, ft = (e) => !e.getIsGrouped() && dt, pt = (t, n) => {
|
|
6302
6302
|
if (ut && t.getCanSelect()) {
|
|
6303
6303
|
let e = Dn({
|
|
6304
|
-
rows:
|
|
6304
|
+
rows: X,
|
|
6305
6305
|
rowId: t.id,
|
|
6306
6306
|
anchorRowId: j.state.selectionAnchorRowId,
|
|
6307
6307
|
modifiers: n,
|
|
@@ -6316,7 +6316,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6316
6316
|
row: t,
|
|
6317
6317
|
column: e.column,
|
|
6318
6318
|
event: n
|
|
6319
|
-
}), _t = P.cellSelection, vt = P.cellRangeSelection, yt = s(!1), bt = s(null), xt = s(null), St = s(null), Ct = s(!1), wt = _t &&
|
|
6319
|
+
}), _t = P.cellSelection, vt = P.cellRangeSelection, yt = s(!1), bt = s(null), xt = s(null), St = s(null), Ct = s(!1), wt = _t && U !== null ? X.findIndex((e) => e.id === U.rowId) : -1, Tt = _t && U !== null ? He.findIndex((e) => e.id === U.columnId) : -1, Et = wt >= 0 && Me.some((e) => e.index === wt), Dt = X[Me[0]?.index ?? -1], Ot = _t ? Et && U !== null ? U : Dt && He[0] ? {
|
|
6320
6320
|
rowId: Dt.id,
|
|
6321
6321
|
columnId: He[0].id
|
|
6322
6322
|
} : null : null, kt = () => {
|
|
@@ -6326,15 +6326,15 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6326
6326
|
}
|
|
6327
6327
|
if (Ot === null) return;
|
|
6328
6328
|
yt.current = !0, j.actions.setFocusedCell(Ot);
|
|
6329
|
-
let e =
|
|
6329
|
+
let e = me.current;
|
|
6330
6330
|
e !== null && Ms(e, Ot)?.focus({ preventScroll: !0 });
|
|
6331
6331
|
}, At = (e, t, n) => e !== null && e.rowId === t && e.columnId === n, jt = Cs({
|
|
6332
|
-
range: vt ?
|
|
6333
|
-
rowIndexOf: (e) =>
|
|
6332
|
+
range: vt ? W : null,
|
|
6333
|
+
rowIndexOf: (e) => X.findIndex((t) => t.id === e),
|
|
6334
6334
|
columnIndexOf: (e) => He.findIndex((t) => t.id === e)
|
|
6335
6335
|
}), Mt = (e, { extend: t }) => {
|
|
6336
6336
|
if (!vt) return;
|
|
6337
|
-
let n = t ?
|
|
6337
|
+
let n = t ? W?.anchor ?? e : e;
|
|
6338
6338
|
j.actions.setCellRange({
|
|
6339
6339
|
anchor: n,
|
|
6340
6340
|
focus: e
|
|
@@ -6344,9 +6344,9 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6344
6344
|
bottom: wt,
|
|
6345
6345
|
left: Tt,
|
|
6346
6346
|
right: Tt
|
|
6347
|
-
} : null), Pt = Ts(Nt), Ft = Nt === null ? 0 : He.slice(Nt.left, Nt.right + 1).filter((e) => !Un(e.id) && e.columnDef.meta?.enableExport !== !1).length, It = Ji(
|
|
6347
|
+
} : null), Pt = Ts(Nt), Ft = Nt === null ? 0 : He.slice(Nt.left, Nt.right + 1).filter((e) => !Un(e.id) && e.columnDef.meta?.enableExport !== !1).length, It = Ji(ee, w && la(w)), [Lt, Rt] = c(It.includeHeaders), Bt = () => Nt === null ? null : na({
|
|
6348
6348
|
table: A,
|
|
6349
|
-
rows:
|
|
6349
|
+
rows: X,
|
|
6350
6350
|
bounds: Nt
|
|
6351
6351
|
}), Vt = async () => {
|
|
6352
6352
|
let e = Bt();
|
|
@@ -6354,7 +6354,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6354
6354
|
}, [Ht, Ut] = c(!1);
|
|
6355
6355
|
i(() => {
|
|
6356
6356
|
if (!Ht) return;
|
|
6357
|
-
let e = () => Ut(!1), t =
|
|
6357
|
+
let e = () => Ut(!1), t = Se.current?.ownerDocument.defaultView ?? window;
|
|
6358
6358
|
return t.addEventListener("mouseup", e), () => t.removeEventListener("mouseup", e);
|
|
6359
6359
|
}, [Ht]);
|
|
6360
6360
|
let Wt = (e, { extend: t }) => {
|
|
@@ -6366,7 +6366,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6366
6366
|
includeHeaders: Lt
|
|
6367
6367
|
});
|
|
6368
6368
|
}, Kt = (e, { extend: t } = { extend: !1 }) => {
|
|
6369
|
-
let n =
|
|
6369
|
+
let n = X[e.rowIndex], r = He[e.columnIndex];
|
|
6370
6370
|
if (!n || !r) return;
|
|
6371
6371
|
let i = {
|
|
6372
6372
|
rowId: n.id,
|
|
@@ -6377,7 +6377,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6377
6377
|
let e = qt.current;
|
|
6378
6378
|
return qt.current = void 0, e;
|
|
6379
6379
|
}, Yt = (e) => {
|
|
6380
|
-
let t =
|
|
6380
|
+
let t = X.find((t) => t.id === e);
|
|
6381
6381
|
return t === void 0 ? null : [
|
|
6382
6382
|
...t.getStartVisibleCells(),
|
|
6383
6383
|
...t.getCenterVisibleCells(),
|
|
@@ -6385,23 +6385,23 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6385
6385
|
].find((e) => N.canEditCell(t, e.column))?.column.id ?? null;
|
|
6386
6386
|
}, Xt = s(null);
|
|
6387
6387
|
a(() => {
|
|
6388
|
-
if (
|
|
6388
|
+
if (ne === null) {
|
|
6389
6389
|
Xt.current = null;
|
|
6390
6390
|
return;
|
|
6391
6391
|
}
|
|
6392
|
-
if (Xt.current ===
|
|
6393
|
-
let e =
|
|
6392
|
+
if (Xt.current === ne) return;
|
|
6393
|
+
let e = me.current;
|
|
6394
6394
|
if (e === null) return;
|
|
6395
|
-
let t =
|
|
6395
|
+
let t = ne.columnId ?? Yt(ne.rowId);
|
|
6396
6396
|
if (t === null) {
|
|
6397
|
-
Xt.current =
|
|
6397
|
+
Xt.current = ne;
|
|
6398
6398
|
return;
|
|
6399
6399
|
}
|
|
6400
|
-
let n = e.querySelector(`[data-dg-part="editor"][data-row-id="${CSS.escape(
|
|
6401
|
-
n !== null && (Xt.current =
|
|
6400
|
+
let n = e.querySelector(`[data-dg-part="editor"][data-row-id="${CSS.escape(ne.rowId)}"][data-column-id="${CSS.escape(t)}"]`);
|
|
6401
|
+
n !== null && (Xt.current = ne, Wo(n));
|
|
6402
6402
|
});
|
|
6403
6403
|
let Zt = (e) => {
|
|
6404
|
-
let t =
|
|
6404
|
+
let t = me.current;
|
|
6405
6405
|
t !== null && (yt.current = !0, Ms(t, e)?.focus());
|
|
6406
6406
|
}, Qt = (e) => {
|
|
6407
6407
|
_t && j.actions.setFocusedCell(e), N.begin({
|
|
@@ -6414,13 +6414,13 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6414
6414
|
Zt(e);
|
|
6415
6415
|
return;
|
|
6416
6416
|
}
|
|
6417
|
-
let r =
|
|
6417
|
+
let r = X.findIndex((t) => t.id === e.rowId), i = He.findIndex((t) => t.id === e.columnId);
|
|
6418
6418
|
if (r < 0 || i < 0) {
|
|
6419
6419
|
Zt(e);
|
|
6420
6420
|
return;
|
|
6421
6421
|
}
|
|
6422
6422
|
if (n === "down") {
|
|
6423
|
-
r + 1 <
|
|
6423
|
+
r + 1 < X.length ? Kt({
|
|
6424
6424
|
rowIndex: r + 1,
|
|
6425
6425
|
columnIndex: i
|
|
6426
6426
|
}) : Zt(e);
|
|
@@ -6432,10 +6432,10 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6432
6432
|
columnIndex: i
|
|
6433
6433
|
},
|
|
6434
6434
|
direction: n,
|
|
6435
|
-
rowCount:
|
|
6435
|
+
rowCount: X.length,
|
|
6436
6436
|
columnCount: He.length,
|
|
6437
6437
|
isEditable: (e) => {
|
|
6438
|
-
let t =
|
|
6438
|
+
let t = X[e.rowIndex], n = He[e.columnIndex];
|
|
6439
6439
|
return t !== void 0 && n !== void 0 && N.canEditCell(t, n);
|
|
6440
6440
|
}
|
|
6441
6441
|
});
|
|
@@ -6443,7 +6443,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6443
6443
|
}, en = (e, { extend: t }) => {
|
|
6444
6444
|
if (P.rowSelection && En(e).length > 0) {
|
|
6445
6445
|
let n = Dn({
|
|
6446
|
-
rows:
|
|
6446
|
+
rows: X,
|
|
6447
6447
|
rowId: e.id,
|
|
6448
6448
|
anchorRowId: j.state.selectionAnchorRowId,
|
|
6449
6449
|
modifiers: {
|
|
@@ -6469,13 +6469,13 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6469
6469
|
e.preventDefault(), o.focus(), xn(o) && o.select();
|
|
6470
6470
|
return;
|
|
6471
6471
|
}
|
|
6472
|
-
let s =
|
|
6472
|
+
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 ? He[He.length - 1] : He[0];
|
|
6473
6473
|
if (l !== void 0 && u !== void 0) {
|
|
6474
6474
|
e.preventDefault(), Kt({
|
|
6475
6475
|
rowIndex: c,
|
|
6476
6476
|
columnIndex: e.shiftKey ? He.length - 1 : 0
|
|
6477
6477
|
});
|
|
6478
|
-
let n =
|
|
6478
|
+
let n = me.current, r = n === null ? null : Ms(n, {
|
|
6479
6479
|
rowId: l.id,
|
|
6480
6480
|
columnId: u.id
|
|
6481
6481
|
});
|
|
@@ -6496,14 +6496,14 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6496
6496
|
}
|
|
6497
6497
|
let { rowId: r, columnId: i } = t.dataset;
|
|
6498
6498
|
if (r === void 0 || i === void 0) return;
|
|
6499
|
-
let a =
|
|
6499
|
+
let a = X.findIndex((e) => e.id === r), o = He.findIndex((e) => e.id === i);
|
|
6500
6500
|
if (a < 0 || o < 0) return;
|
|
6501
6501
|
if ((e.ctrlKey || e.metaKey) && (e.key === "c" || e.key === "C")) {
|
|
6502
6502
|
if (Nt === null) return;
|
|
6503
6503
|
e.preventDefault(), Vt();
|
|
6504
6504
|
return;
|
|
6505
6505
|
}
|
|
6506
|
-
let s =
|
|
6506
|
+
let s = X[a], c = He[o];
|
|
6507
6507
|
if (P.editing && s !== void 0 && c !== void 0 && N.canEditCell(s, c)) {
|
|
6508
6508
|
if (e.key === "Enter" || e.key === "F2") {
|
|
6509
6509
|
e.preventDefault(), Qt({
|
|
@@ -6536,7 +6536,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6536
6536
|
return;
|
|
6537
6537
|
}
|
|
6538
6538
|
if (e.key === "Escape") {
|
|
6539
|
-
if (
|
|
6539
|
+
if (W === null) return;
|
|
6540
6540
|
e.preventDefault(), Mt({
|
|
6541
6541
|
rowId: r,
|
|
6542
6542
|
columnId: i
|
|
@@ -6545,7 +6545,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6545
6545
|
}
|
|
6546
6546
|
if (e.key === " ") {
|
|
6547
6547
|
e.preventDefault();
|
|
6548
|
-
let t =
|
|
6548
|
+
let t = X[a];
|
|
6549
6549
|
t && en(t, { extend: e.shiftKey });
|
|
6550
6550
|
return;
|
|
6551
6551
|
}
|
|
@@ -6556,24 +6556,24 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6556
6556
|
rowIndex: a,
|
|
6557
6557
|
columnIndex: o
|
|
6558
6558
|
},
|
|
6559
|
-
rowCount:
|
|
6559
|
+
rowCount: X.length,
|
|
6560
6560
|
columnCount: He.length,
|
|
6561
|
-
pageRows: Math.max(1, Math.floor((
|
|
6561
|
+
pageRows: Math.max(1, Math.floor((me.current?.clientHeight ?? 0) / L) - 1)
|
|
6562
6562
|
});
|
|
6563
6563
|
l !== null && (e.preventDefault(), !(l.rowIndex === a && l.columnIndex === o) && Kt(l, { extend: e.shiftKey && vt }));
|
|
6564
6564
|
};
|
|
6565
6565
|
i(() => {
|
|
6566
6566
|
if (!_t) return;
|
|
6567
|
-
let e =
|
|
6567
|
+
let e = me.current;
|
|
6568
6568
|
if (e === null) return;
|
|
6569
|
-
if (
|
|
6569
|
+
if (U !== bt.current && (bt.current = U, wt >= 0 && Q.scrollToIndex(wt, { align: "auto" })), U === null) {
|
|
6570
6570
|
yt.current = !1;
|
|
6571
6571
|
return;
|
|
6572
6572
|
}
|
|
6573
6573
|
let t = e.ownerDocument.activeElement;
|
|
6574
6574
|
if (!yt.current && !e.contains(t) || !yt.current && t !== null && t.closest("[data-dg-part=\"tab-guard\"]") !== null) return;
|
|
6575
|
-
let n = Ms(e,
|
|
6576
|
-
n !== null && (yt.current = !1, !n.contains(t) && (t !== null && t.closest("[data-dg-part=\"editor\"]") !== null || (n.focus({ preventScroll: !0 }), nt(
|
|
6575
|
+
let n = Ms(e, U);
|
|
6576
|
+
n !== null && (yt.current = !1, !n.contains(t) && (t !== null && t.closest("[data-dg-part=\"editor\"]") !== null || (n.focus({ preventScroll: !0 }), nt(U.columnId).pinnedAt === !1 && Ns({
|
|
6577
6577
|
container: e,
|
|
6578
6578
|
cellElement: n,
|
|
6579
6579
|
leftPinnedWidth: et,
|
|
@@ -6583,7 +6583,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6583
6583
|
let [nn, rn] = c(null), an = () => rn(null), on = s(null), sn = s(null), cn = () => {
|
|
6584
6584
|
let e = on.current, t = sn.current;
|
|
6585
6585
|
if (on.current = null, sn.current = null, _t && e !== null && t !== null) {
|
|
6586
|
-
let n =
|
|
6586
|
+
let n = X.findIndex((t) => t.id === e), r = He.findIndex((e) => e.id === t);
|
|
6587
6587
|
n >= 0 && !ws(Nt, n, r) && (j.actions.setFocusedCell({
|
|
6588
6588
|
rowId: e,
|
|
6589
6589
|
columnId: t
|
|
@@ -6596,25 +6596,25 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6596
6596
|
rowId: e,
|
|
6597
6597
|
columnId: t
|
|
6598
6598
|
});
|
|
6599
|
-
}, ln = nn === null ? void 0 :
|
|
6600
|
-
/* @__PURE__ */
|
|
6601
|
-
/* @__PURE__ */
|
|
6599
|
+
}, ln = nn === null ? void 0 : X.find((e) => e.id === nn.rowId) ?? ge.find((e) => e.id === nn.rowId) ?? _e.find((e) => e.id === nn.rowId), un = x !== void 0 && nn !== null && ln !== void 0 && !ln.getIsGrouped(), dn = vt && nn !== null && Nt !== null ? /* @__PURE__ */ Y(fe, { children: [
|
|
6600
|
+
/* @__PURE__ */ J(_.Label, { children: I.cellCount(Pt) }),
|
|
6601
|
+
/* @__PURE__ */ J(_.Item, {
|
|
6602
6602
|
disabled: Ft === 0,
|
|
6603
6603
|
onClick: () => void Vt(),
|
|
6604
|
-
children:
|
|
6604
|
+
children: I.copy
|
|
6605
6605
|
}),
|
|
6606
|
-
/* @__PURE__ */
|
|
6606
|
+
/* @__PURE__ */ J(_.Item, {
|
|
6607
6607
|
disabled: Ft === 0,
|
|
6608
6608
|
onClick: Gt,
|
|
6609
|
-
children:
|
|
6609
|
+
children: I.exportCells
|
|
6610
6610
|
}),
|
|
6611
|
-
/* @__PURE__ */
|
|
6611
|
+
/* @__PURE__ */ J(_.Item, {
|
|
6612
6612
|
closeMenuOnClick: !1,
|
|
6613
6613
|
onClick: () => Rt((e) => !e),
|
|
6614
|
-
children: /* @__PURE__ */
|
|
6614
|
+
children: /* @__PURE__ */ J(p, {
|
|
6615
6615
|
size: "xs",
|
|
6616
6616
|
checked: Lt,
|
|
6617
|
-
label:
|
|
6617
|
+
label: I.includeHeaders,
|
|
6618
6618
|
readOnly: !0,
|
|
6619
6619
|
styles: { input: { cursor: "pointer" } }
|
|
6620
6620
|
})
|
|
@@ -6627,9 +6627,9 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6627
6627
|
get internalItems() {
|
|
6628
6628
|
return fn = !0, dn;
|
|
6629
6629
|
}
|
|
6630
|
-
}) ?? null : null, mn = fn ? pn : dn === null && pn === null ? null : /* @__PURE__ */
|
|
6630
|
+
}) ?? null : null, mn = fn ? pn : dn === null && pn === null ? null : /* @__PURE__ */ Y(fe, { children: [
|
|
6631
6631
|
dn,
|
|
6632
|
-
dn !== null && pn !== null && /* @__PURE__ */
|
|
6632
|
+
dn !== null && pn !== null && /* @__PURE__ */ J(_.Divider, {}),
|
|
6633
6633
|
pn
|
|
6634
6634
|
] }), hn = s({
|
|
6635
6635
|
top: !0,
|
|
@@ -6646,54 +6646,54 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6646
6646
|
}, r = hn.current;
|
|
6647
6647
|
hn.current = n, n.top && !r.top && m?.(), n.bottom && !r.bottom && h?.(), n.left && !r.left && v?.(), n.right && !r.right && y?.();
|
|
6648
6648
|
} : void 0;
|
|
6649
|
-
return /* @__PURE__ */
|
|
6650
|
-
ref:
|
|
6649
|
+
return /* @__PURE__ */ Y("div", {
|
|
6650
|
+
ref: Te,
|
|
6651
6651
|
className: zt.tableWrapper,
|
|
6652
6652
|
"data-dg-filter-sidebar": F.surface === "sidebar" || void 0,
|
|
6653
6653
|
children: [
|
|
6654
|
-
/* @__PURE__ */
|
|
6655
|
-
ref:
|
|
6654
|
+
/* @__PURE__ */ J("div", {
|
|
6655
|
+
ref: me,
|
|
6656
6656
|
className: zt.scrollContainer,
|
|
6657
6657
|
"data-dg-scroll-container": !0,
|
|
6658
6658
|
onScroll: _n,
|
|
6659
|
-
children: /* @__PURE__ */
|
|
6660
|
-
ref:
|
|
6659
|
+
children: /* @__PURE__ */ Y("div", {
|
|
6660
|
+
ref: Se,
|
|
6661
6661
|
role: _t ? "grid" : "table",
|
|
6662
6662
|
"aria-label": O,
|
|
6663
6663
|
"aria-labelledby": k,
|
|
6664
|
-
"aria-busy":
|
|
6664
|
+
"aria-busy": de === !0 || void 0,
|
|
6665
6665
|
"aria-multiselectable": _t && P.rowSelection && P.multiRowSelection ? !0 : void 0,
|
|
6666
6666
|
onKeyDown: _t ? tn : void 0,
|
|
6667
6667
|
"data-range-dragging": Ht || void 0,
|
|
6668
6668
|
className: zt.grid,
|
|
6669
|
-
"aria-rowcount":
|
|
6669
|
+
"aria-rowcount": X.length + ve + lt + +!!ct,
|
|
6670
6670
|
"aria-colcount": He.length,
|
|
6671
|
-
"data-dg-row-count":
|
|
6671
|
+
"data-dg-row-count": X.length + ve,
|
|
6672
6672
|
style: {
|
|
6673
6673
|
gridTemplateColumns: Ye,
|
|
6674
6674
|
minWidth: Xe
|
|
6675
6675
|
},
|
|
6676
6676
|
children: [
|
|
6677
|
-
/* @__PURE__ */
|
|
6677
|
+
/* @__PURE__ */ Y("div", {
|
|
6678
6678
|
role: "rowgroup",
|
|
6679
6679
|
style: { display: "contents" },
|
|
6680
|
-
children: [Ke.map((e, t) => /* @__PURE__ */
|
|
6680
|
+
children: [Ke.map((e, t) => /* @__PURE__ */ J("div", {
|
|
6681
6681
|
role: "row",
|
|
6682
6682
|
"aria-rowindex": t + 1,
|
|
6683
6683
|
"data-dg-header-row": !0,
|
|
6684
|
-
className: [zt.headerRow, !
|
|
6685
|
-
children: e.headers.map((e) => /* @__PURE__ */
|
|
6684
|
+
className: [zt.headerRow, !Ce && t === Ke.length - 1 ? no.headerBoundary : ""].filter(Boolean).join(" "),
|
|
6685
|
+
children: e.headers.map((e) => /* @__PURE__ */ J(Po, {
|
|
6686
6686
|
renderColumnMenuItems: S,
|
|
6687
6687
|
header: e,
|
|
6688
6688
|
layout: nt(e.column.id)
|
|
6689
6689
|
}, e.id))
|
|
6690
|
-
}, e.id)),
|
|
6690
|
+
}, e.id)), Ce && /* @__PURE__ */ J(go, {
|
|
6691
6691
|
leafHeaders: st,
|
|
6692
6692
|
layoutFor: nt,
|
|
6693
6693
|
ariaRowIndex: lt
|
|
6694
6694
|
})]
|
|
6695
6695
|
}),
|
|
6696
|
-
_t && /* @__PURE__ */
|
|
6696
|
+
_t && /* @__PURE__ */ J("div", {
|
|
6697
6697
|
ref: xt,
|
|
6698
6698
|
tabIndex: Ot === null ? -1 : 0,
|
|
6699
6699
|
role: "presentation",
|
|
@@ -6702,12 +6702,12 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6702
6702
|
className: zt.tabGuard,
|
|
6703
6703
|
onFocus: kt
|
|
6704
6704
|
}),
|
|
6705
|
-
P.editing &&
|
|
6705
|
+
P.editing && ae > 0 && /* @__PURE__ */ J(fs, {
|
|
6706
6706
|
orderedColumns: He,
|
|
6707
6707
|
layoutFor: nt,
|
|
6708
|
-
rowHeight:
|
|
6708
|
+
rowHeight: L
|
|
6709
6709
|
}),
|
|
6710
|
-
/* @__PURE__ */
|
|
6710
|
+
/* @__PURE__ */ J(Ls, {
|
|
6711
6711
|
enabled: x !== void 0 || vt,
|
|
6712
6712
|
menuContent: mn,
|
|
6713
6713
|
menuProps: C,
|
|
@@ -6719,32 +6719,32 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6719
6719
|
...e.getStartVisibleCells(),
|
|
6720
6720
|
...e.getCenterVisibleCells(),
|
|
6721
6721
|
...e.getEndVisibleCells()
|
|
6722
|
-
], u = P.editMode === "row" &&
|
|
6723
|
-
return /* @__PURE__ */
|
|
6722
|
+
], u = P.editMode === "row" && K.has(e.id) && !q.has(e.id) && !ue.has(e.id), d = !o && !_t && (ut || P.highlightRow);
|
|
6723
|
+
return /* @__PURE__ */ Y("div", {
|
|
6724
6724
|
role: "row",
|
|
6725
6725
|
"aria-rowindex": i,
|
|
6726
6726
|
"data-dg-part": "row",
|
|
6727
6727
|
"data-row-id": e.id,
|
|
6728
|
-
"data-index":
|
|
6729
|
-
ref:
|
|
6730
|
-
"data-grouped": o,
|
|
6728
|
+
"data-index": z && n >= 0 ? n : void 0,
|
|
6729
|
+
ref: z && n >= 0 ? Q.measureElement : void 0,
|
|
6730
|
+
"data-grouped": o || void 0,
|
|
6731
6731
|
"data-depth": e.depth,
|
|
6732
6732
|
"data-pinned": a,
|
|
6733
|
-
"data-selected": P.rowSelection && e.getIsSelected(),
|
|
6734
|
-
"data-selected-bg": P.rowSelection && P.showSelectedBackground && e.getIsSelected(),
|
|
6735
|
-
"data-highlighted": P.highlightRow && e.id ===
|
|
6736
|
-
"data-deleted":
|
|
6737
|
-
"data-dirty":
|
|
6738
|
-
"data-draft":
|
|
6739
|
-
"data-new":
|
|
6740
|
-
"data-context-menu": mn !== null && nn?.rowId === e.id,
|
|
6741
|
-
"data-selects-on-click": ut && !o,
|
|
6733
|
+
"data-selected": P.rowSelection && e.getIsSelected() || void 0,
|
|
6734
|
+
"data-selected-bg": P.rowSelection && P.showSelectedBackground && e.getIsSelected() || void 0,
|
|
6735
|
+
"data-highlighted": P.highlightRow && e.id === te || void 0,
|
|
6736
|
+
"data-deleted": oe.length > 0 && oe.includes(e.id) || void 0,
|
|
6737
|
+
"data-dirty": ce.has(e.id) || void 0,
|
|
6738
|
+
"data-draft": q.has(e.id) || ue.has(e.id) || void 0,
|
|
6739
|
+
"data-new": ue.has(e.id) || void 0,
|
|
6740
|
+
"data-context-menu": mn !== null && nn?.rowId === e.id || void 0,
|
|
6741
|
+
"data-selects-on-click": ut && !o || void 0,
|
|
6742
6742
|
"aria-selected": P.rowSelection ? e.getIsSelected() : void 0,
|
|
6743
|
-
"aria-current": P.highlightRow && e.id ===
|
|
6744
|
-
"data-striped": f && n >= 0
|
|
6743
|
+
"aria-current": P.highlightRow && e.id === te ? !0 : void 0,
|
|
6744
|
+
"data-striped": f && n >= 0 && n % 2 == 1 || void 0,
|
|
6745
6745
|
className: [zt.bodyRow, mt(e)].filter(Boolean).join(" "),
|
|
6746
6746
|
style: {
|
|
6747
|
-
minHeight:
|
|
6747
|
+
minHeight: L,
|
|
6748
6748
|
cursor: s ? "pointer" : void 0,
|
|
6749
6749
|
...ht(e)
|
|
6750
6750
|
},
|
|
@@ -6766,14 +6766,14 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6766
6766
|
on.current = e.id;
|
|
6767
6767
|
} : void 0,
|
|
6768
6768
|
children: [c.map((i, a) => {
|
|
6769
|
-
let s =
|
|
6770
|
-
return /* @__PURE__ */
|
|
6769
|
+
let s = ne !== null && ne.rowId === e.id && ne.columnId === i.column.id || u && N.canEditCell(e, i.column);
|
|
6770
|
+
return /* @__PURE__ */ J(Is, {
|
|
6771
6771
|
cell: i,
|
|
6772
|
-
rowHeight:
|
|
6772
|
+
rowHeight: L,
|
|
6773
6773
|
layout: nt(i.column.id),
|
|
6774
|
-
contentOverride:
|
|
6775
|
-
highlightNeedles:
|
|
6776
|
-
editor: s ? /* @__PURE__ */
|
|
6774
|
+
contentOverride: ye !== null && i.column.id === "__rowNumber__" ? ye.get(e.id) : void 0,
|
|
6775
|
+
highlightNeedles: he?.get(i.column.id),
|
|
6776
|
+
editor: s ? /* @__PURE__ */ J(os, {
|
|
6777
6777
|
cell: i,
|
|
6778
6778
|
row: e,
|
|
6779
6779
|
takeSeedText: Jt,
|
|
@@ -6792,9 +6792,9 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6792
6792
|
nav: _t ? {
|
|
6793
6793
|
rowId: e.id,
|
|
6794
6794
|
columnIndex: a + 1,
|
|
6795
|
-
focused: At(
|
|
6795
|
+
focused: At(U, e.id, i.column.id),
|
|
6796
6796
|
tabIndex: -1,
|
|
6797
|
-
selected: vt ? ws(jt, n, a) : At(
|
|
6797
|
+
selected: vt ? ws(jt, n, a) : At(U, e.id, i.column.id),
|
|
6798
6798
|
edges: Es(jt, n, a)
|
|
6799
6799
|
} : void 0,
|
|
6800
6800
|
onFocus: _t ? () => j.actions.setFocusedCell({
|
|
@@ -6817,7 +6817,7 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6817
6817
|
sn.current = i.column.id, !o && l?.(gt(i, e, t));
|
|
6818
6818
|
} : void 0
|
|
6819
6819
|
}, i.id);
|
|
6820
|
-
}),
|
|
6820
|
+
}), be(e) && /* @__PURE__ */ J("div", {
|
|
6821
6821
|
role: "cell",
|
|
6822
6822
|
"aria-colspan": He.length,
|
|
6823
6823
|
"data-dg-part": "details",
|
|
@@ -6825,21 +6825,21 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6825
6825
|
className: zt.detailsCell,
|
|
6826
6826
|
onClick: (e) => e.stopPropagation(),
|
|
6827
6827
|
onContextMenu: (e) => e.stopPropagation(),
|
|
6828
|
-
children:
|
|
6828
|
+
children: z?.({
|
|
6829
6829
|
table: A,
|
|
6830
6830
|
row: e
|
|
6831
6831
|
})
|
|
6832
6832
|
})]
|
|
6833
6833
|
}, e.id);
|
|
6834
6834
|
};
|
|
6835
|
-
return /* @__PURE__ */
|
|
6836
|
-
|
|
6835
|
+
return /* @__PURE__ */ Y(fe, { children: [
|
|
6836
|
+
ge.length > 0 && /* @__PURE__ */ J("div", {
|
|
6837
6837
|
role: "presentation",
|
|
6838
6838
|
"data-dg-part": "pinned-top",
|
|
6839
6839
|
className: zt.pinnedTopBlock,
|
|
6840
|
-
children:
|
|
6840
|
+
children: ge.map((t, n) => e(t, -1, lt + n + 1, "top"))
|
|
6841
6841
|
}),
|
|
6842
|
-
Ne > 0 && /* @__PURE__ */
|
|
6842
|
+
Ne > 0 && /* @__PURE__ */ J("div", {
|
|
6843
6843
|
"aria-hidden": !0,
|
|
6844
6844
|
style: {
|
|
6845
6845
|
gridColumn: "1/-1",
|
|
@@ -6847,87 +6847,87 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6847
6847
|
}
|
|
6848
6848
|
}),
|
|
6849
6849
|
Me.map((t) => {
|
|
6850
|
-
let n =
|
|
6851
|
-
return n ? e(n, t.index, t.index + lt +
|
|
6850
|
+
let n = X[t.index];
|
|
6851
|
+
return n ? e(n, t.index, t.index + lt + ge.length + 1) : null;
|
|
6852
6852
|
}),
|
|
6853
|
-
Pe > 0 && /* @__PURE__ */
|
|
6853
|
+
Pe > 0 && /* @__PURE__ */ J("div", {
|
|
6854
6854
|
"aria-hidden": !0,
|
|
6855
6855
|
style: {
|
|
6856
6856
|
gridColumn: "1/-1",
|
|
6857
6857
|
height: Pe
|
|
6858
6858
|
}
|
|
6859
6859
|
}),
|
|
6860
|
-
|
|
6860
|
+
_e.length > 0 && /* @__PURE__ */ J("div", {
|
|
6861
6861
|
role: "presentation",
|
|
6862
6862
|
"data-dg-part": "pinned-bottom",
|
|
6863
6863
|
className: zt.pinnedBottomBlock,
|
|
6864
|
-
children:
|
|
6864
|
+
children: _e.map((t, n) => e(t, -1, lt + ge.length + X.length + n + 1, "bottom"))
|
|
6865
6865
|
})
|
|
6866
6866
|
] });
|
|
6867
6867
|
})()
|
|
6868
6868
|
}),
|
|
6869
|
-
it &&
|
|
6869
|
+
it && de === !0 && /* @__PURE__ */ J("div", {
|
|
6870
6870
|
role: "row",
|
|
6871
6871
|
className: zt.messageRow,
|
|
6872
|
-
children: /* @__PURE__ */
|
|
6872
|
+
children: /* @__PURE__ */ J(g, {
|
|
6873
6873
|
size: "lg",
|
|
6874
|
-
"aria-label":
|
|
6874
|
+
"aria-label": I.loading
|
|
6875
6875
|
})
|
|
6876
6876
|
}),
|
|
6877
|
-
it &&
|
|
6877
|
+
it && de !== !0 && ae === 0 && /* @__PURE__ */ J("div", {
|
|
6878
6878
|
role: "row",
|
|
6879
6879
|
className: zt.messageRow,
|
|
6880
|
-
children: b === void 0 ? ot ? /* @__PURE__ */
|
|
6880
|
+
children: b === void 0 ? ot ? /* @__PURE__ */ Y(fe, { children: [/* @__PURE__ */ J(le, {
|
|
6881
6881
|
size: 40,
|
|
6882
6882
|
stroke: 1.4,
|
|
6883
6883
|
opacity: .4
|
|
6884
|
-
}), /* @__PURE__ */
|
|
6884
|
+
}), /* @__PURE__ */ J(D, {
|
|
6885
6885
|
span: !0,
|
|
6886
|
-
size:
|
|
6886
|
+
size: R,
|
|
6887
6887
|
c: "dimmed",
|
|
6888
|
-
children:
|
|
6889
|
-
})] }) : /* @__PURE__ */
|
|
6888
|
+
children: pe
|
|
6889
|
+
})] }) : /* @__PURE__ */ J(D, {
|
|
6890
6890
|
span: !0,
|
|
6891
|
-
size:
|
|
6891
|
+
size: R,
|
|
6892
6892
|
c: "dimmed",
|
|
6893
|
-
children:
|
|
6893
|
+
children: I.noRows
|
|
6894
6894
|
}) : b({
|
|
6895
6895
|
hasActiveFilters: ot,
|
|
6896
6896
|
table: A
|
|
6897
6897
|
})
|
|
6898
6898
|
}),
|
|
6899
|
-
ct && /* @__PURE__ */
|
|
6899
|
+
ct && /* @__PURE__ */ J("div", {
|
|
6900
6900
|
role: "row",
|
|
6901
|
-
"aria-rowindex":
|
|
6901
|
+
"aria-rowindex": X.length + ve + lt + 1,
|
|
6902
6902
|
"data-dg-part": "summary-row",
|
|
6903
6903
|
className: zt.summaryRow,
|
|
6904
6904
|
children: st.map((e) => {
|
|
6905
6905
|
let t = nt(e.column.id);
|
|
6906
|
-
return /* @__PURE__ */
|
|
6906
|
+
return /* @__PURE__ */ J("div", {
|
|
6907
6907
|
role: "cell",
|
|
6908
6908
|
"data-column-id": e.column.id,
|
|
6909
6909
|
"data-align": Vn(e.column),
|
|
6910
|
-
"data-control-column": Hn(e.column.id),
|
|
6910
|
+
"data-control-column": Hn(e.column.id) || void 0,
|
|
6911
6911
|
className: [
|
|
6912
6912
|
zt.summaryCell,
|
|
6913
6913
|
t.isBoundary && t.pinnedAt === "left" ? no.stickyLeft : "",
|
|
6914
6914
|
t.isBoundary && t.pinnedAt === "right" ? no.stickyRight : ""
|
|
6915
6915
|
].filter(Boolean).join(" "),
|
|
6916
6916
|
style: {
|
|
6917
|
-
minHeight:
|
|
6917
|
+
minHeight: L,
|
|
6918
6918
|
left: t.pinnedAt === "left" ? t.offset : void 0,
|
|
6919
6919
|
right: t.pinnedAt === "right" ? t.offset : void 0,
|
|
6920
6920
|
position: t.pinnedAt ? "sticky" : void 0,
|
|
6921
6921
|
zIndex: t.pinnedAt ? "var(--dg-z-summary-pinned-cell, 5)" : void 0
|
|
6922
6922
|
},
|
|
6923
|
-
children: /* @__PURE__ */
|
|
6923
|
+
children: /* @__PURE__ */ J("span", {
|
|
6924
6924
|
className: zt.cellContent,
|
|
6925
6925
|
children: e.isPlaceholder ? null : Fe(e.column.columnDef.footer, e.getContext())
|
|
6926
6926
|
})
|
|
6927
6927
|
}, e.id);
|
|
6928
6928
|
})
|
|
6929
6929
|
}),
|
|
6930
|
-
_t && /* @__PURE__ */
|
|
6930
|
+
_t && /* @__PURE__ */ J("div", {
|
|
6931
6931
|
ref: St,
|
|
6932
6932
|
tabIndex: Ot === null ? -1 : 0,
|
|
6933
6933
|
role: "presentation",
|
|
@@ -6939,8 +6939,8 @@ function Rs({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
|
|
|
6939
6939
|
]
|
|
6940
6940
|
})
|
|
6941
6941
|
}),
|
|
6942
|
-
F.surface === "popup" && /* @__PURE__ */
|
|
6943
|
-
F.surface === "sidebar" && /* @__PURE__ */
|
|
6942
|
+
F.surface === "popup" && /* @__PURE__ */ J(so, {}),
|
|
6943
|
+
F.surface === "sidebar" && /* @__PURE__ */ J(lo, {})
|
|
6944
6944
|
]
|
|
6945
6945
|
});
|
|
6946
6946
|
}
|
|
@@ -6961,7 +6961,7 @@ function Bs(t) {
|
|
|
6961
6961
|
let p;
|
|
6962
6962
|
n[10] !== a || n[11] !== f ? (p = [f, a], n[10] = a, n[11] = f, n[12] = p) : p = n[12];
|
|
6963
6963
|
let m;
|
|
6964
|
-
return n[13] !== r || n[14] !== o || n[15] !== u || n[16] !== p ? (m = /* @__PURE__ */
|
|
6964
|
+
return n[13] !== r || n[14] !== o || n[15] !== u || n[16] !== p ? (m = /* @__PURE__ */ J(d, {
|
|
6965
6965
|
"data-dg-part": "toolbar",
|
|
6966
6966
|
className: u,
|
|
6967
6967
|
mod: p,
|
|
@@ -6975,7 +6975,7 @@ function Vs(t) {
|
|
|
6975
6975
|
let a;
|
|
6976
6976
|
n[3] === r ? a = n[4] : (a = [zs.toolbarSpacer, r].filter(Boolean), n[3] = r, n[4] = a);
|
|
6977
6977
|
let o = a.join(" "), s;
|
|
6978
|
-
return n[5] !== i || n[6] !== o ? (s = /* @__PURE__ */
|
|
6978
|
+
return n[5] !== i || n[6] !== o ? (s = /* @__PURE__ */ J(d, {
|
|
6979
6979
|
className: o,
|
|
6980
6980
|
...i
|
|
6981
6981
|
}), n[5] = i, n[6] = o, n[7] = s) : s = n[7], s;
|
|
@@ -6984,7 +6984,7 @@ function Hs() {
|
|
|
6984
6984
|
let t = e(2), { table: n, labels: r } = $();
|
|
6985
6985
|
if (n.options.meta?.loading !== !0) return null;
|
|
6986
6986
|
let i;
|
|
6987
|
-
return t[0] === r.loading ? i = t[1] : (i = /* @__PURE__ */
|
|
6987
|
+
return t[0] === r.loading ? i = t[1] : (i = /* @__PURE__ */ J(g, {
|
|
6988
6988
|
size: "xs",
|
|
6989
6989
|
"data-dg-part": "loading",
|
|
6990
6990
|
"aria-label": r.loading
|
|
@@ -6998,7 +6998,7 @@ function Us(t) {
|
|
|
6998
6998
|
let c = s, l;
|
|
6999
6999
|
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];
|
|
7000
7000
|
let u = l, d = r === void 0 ? u === void 0 ? `${c}` : `${c} / ${u}` : r, f;
|
|
7001
|
-
return n[5] !== a || n[6] !== d ? (f = /* @__PURE__ */
|
|
7001
|
+
return n[5] !== a || n[6] !== d ? (f = /* @__PURE__ */ J(D, {
|
|
7002
7002
|
span: !0,
|
|
7003
7003
|
size: a,
|
|
7004
7004
|
c: "dimmed",
|
|
@@ -7020,12 +7020,12 @@ function Ws() {
|
|
|
7020
7020
|
e && Ta(n, e.id), i.actions.openFilterPanel(e?.id ?? null);
|
|
7021
7021
|
}, t[0] = n, t[1] = d.length, t[2] = u, t[3] = r, t[4] = i.actions, t[5] = h) : h = t[5];
|
|
7022
7022
|
let g;
|
|
7023
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */
|
|
7023
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ J(re, {
|
|
7024
7024
|
size: 16,
|
|
7025
7025
|
stroke: 1.6
|
|
7026
7026
|
}), t[6] = g) : g = t[6];
|
|
7027
7027
|
let _;
|
|
7028
|
-
t[7] !== c || t[8] !== s.filters || t[9] !== p || t[10] !== m || t[11] !== h ? (_ = /* @__PURE__ */
|
|
7028
|
+
t[7] !== c || t[8] !== s.filters || t[9] !== p || t[10] !== m || t[11] !== h ? (_ = /* @__PURE__ */ J(l, {
|
|
7029
7029
|
variant: p,
|
|
7030
7030
|
color: m,
|
|
7031
7031
|
size: c,
|
|
@@ -7035,7 +7035,7 @@ function Ws() {
|
|
|
7035
7035
|
children: g
|
|
7036
7036
|
}), t[7] = c, t[8] = s.filters, t[9] = p, t[10] = m, t[11] = h, t[12] = _) : _ = t[12];
|
|
7037
7037
|
let v;
|
|
7038
|
-
return t[13] !== s.filters || t[14] !== _ ? (v = /* @__PURE__ */
|
|
7038
|
+
return t[13] !== s.filters || t[14] !== _ ? (v = /* @__PURE__ */ J(k, {
|
|
7039
7039
|
label: s.filters,
|
|
7040
7040
|
openDelay: 400,
|
|
7041
7041
|
children: _
|
|
@@ -7082,9 +7082,9 @@ function Xs() {
|
|
|
7082
7082
|
let g = `var(--mantine-font-size-${a})`, _;
|
|
7083
7083
|
t[13] === g ? _ = t[14] : (_ = { title: { fontSize: g } }, t[13] = g, t[14] = _);
|
|
7084
7084
|
let y;
|
|
7085
|
-
t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */
|
|
7085
|
+
t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */ J(ec, { request: s }), t[15] = s, t[16] = y);
|
|
7086
7086
|
let b;
|
|
7087
|
-
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__ */
|
|
7087
|
+
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, {
|
|
7088
7088
|
opened: l,
|
|
7089
7089
|
onClose: u,
|
|
7090
7090
|
title: d,
|
|
@@ -7137,70 +7137,70 @@ function ec(t) {
|
|
|
7137
7137
|
for (let t of T) e ? n.add(t.id) : n.delete(t.id);
|
|
7138
7138
|
return n;
|
|
7139
7139
|
}), n[15] = T, n[16] = F);
|
|
7140
|
-
let
|
|
7141
|
-
n[17] !== y || n[18] !== h || n[19] !== l || n[20] !== u || n[21] !== r.rows || n[22] !== a.actions ? (
|
|
7140
|
+
let ee = F, I;
|
|
7141
|
+
n[17] !== y || n[18] !== h || n[19] !== l || n[20] !== u || n[21] !== r.rows || n[22] !== a.actions ? (I = async () => {
|
|
7142
7142
|
let e = h.filter((e) => y.has(e.id)).map(tc);
|
|
7143
7143
|
await (r.rows === "selected" ? u : l)({ columns: e }), a.actions.closeExportPicker();
|
|
7144
|
-
}, n[17] = y, n[18] = h, n[19] = l, n[20] = u, n[21] = r.rows, n[22] = a.actions, n[23] =
|
|
7145
|
-
let
|
|
7146
|
-
n[24] !== o || n[25] !== r.rows || n[26] !== i ? (
|
|
7147
|
-
let
|
|
7148
|
-
n[28] !== s || n[29] !==
|
|
7144
|
+
}, n[17] = y, n[18] = h, n[19] = l, n[20] = u, n[21] = r.rows, n[22] = a.actions, n[23] = I) : I = n[23];
|
|
7145
|
+
let L = I, R;
|
|
7146
|
+
n[24] !== o || n[25] !== r.rows || n[26] !== i ? (R = o.exportPickerHint(r.rows === "selected" ? ea(i) : null), n[24] = o, n[25] = r.rows, n[26] = i, n[27] = R) : R = n[27];
|
|
7147
|
+
let z = R, B;
|
|
7148
|
+
n[28] !== s || n[29] !== z ? (B = /* @__PURE__ */ J(D, {
|
|
7149
7149
|
size: s,
|
|
7150
7150
|
c: "dimmed",
|
|
7151
7151
|
"data-dg-part": "export-picker-hint",
|
|
7152
|
-
children:
|
|
7153
|
-
}), n[28] = s, n[29] =
|
|
7154
|
-
let
|
|
7155
|
-
n[31] !== s || n[32] !== o.columnsSearchPlaceholder || n[33] !== g || n[34] !== S ? (
|
|
7152
|
+
children: z
|
|
7153
|
+
}), n[28] = s, n[29] = z, n[30] = B) : B = n[30];
|
|
7154
|
+
let V;
|
|
7155
|
+
n[31] !== s || n[32] !== o.columnsSearchPlaceholder || n[33] !== g || n[34] !== S ? (V = S && /* @__PURE__ */ J(O, {
|
|
7156
7156
|
value: g,
|
|
7157
7157
|
onChange: (e) => _(e.currentTarget.value),
|
|
7158
7158
|
placeholder: o.columnsSearchPlaceholder,
|
|
7159
|
-
leftSection: /* @__PURE__ */
|
|
7159
|
+
leftSection: /* @__PURE__ */ J(le, {
|
|
7160
7160
|
size: 16,
|
|
7161
7161
|
stroke: 1.6
|
|
7162
7162
|
}),
|
|
7163
7163
|
size: s,
|
|
7164
7164
|
"data-dg-part": "export-picker-search",
|
|
7165
7165
|
"data-autofocus": !0
|
|
7166
|
-
}), n[31] = s, n[32] = o.columnsSearchPlaceholder, n[33] = g, n[34] = S, n[35] =
|
|
7166
|
+
}), n[31] = s, n[32] = o.columnsSearchPlaceholder, n[33] = g, n[34] = S, n[35] = V) : V = n[35];
|
|
7167
|
+
let H;
|
|
7168
|
+
n[36] === ee ? H = n[37] : (H = (e) => ee(e.currentTarget.checked), n[36] = ee, n[37] = H);
|
|
7169
|
+
let te;
|
|
7170
|
+
n[38] === Symbol.for("react.memo_cache_sentinel") ? (te = { label: Ys.headerLabel }, n[38] = te) : te = n[38];
|
|
7167
7171
|
let U;
|
|
7168
|
-
n[
|
|
7169
|
-
let ee;
|
|
7170
|
-
n[38] === Symbol.for("react.memo_cache_sentinel") ? (ee = { label: Ys.headerLabel }, n[38] = ee) : ee = n[38];
|
|
7171
|
-
let W;
|
|
7172
|
-
n[39] !== j || n[40] !== s || n[41] !== o.exportPickerSelectAll || n[42] !== M || n[43] !== U ? (W = /* @__PURE__ */ Y(p, {
|
|
7172
|
+
n[39] !== j || n[40] !== s || n[41] !== o.exportPickerSelectAll || n[42] !== M || n[43] !== H ? (U = /* @__PURE__ */ J(p, {
|
|
7173
7173
|
size: s,
|
|
7174
7174
|
label: o.exportPickerSelectAll,
|
|
7175
7175
|
checked: j,
|
|
7176
7176
|
indeterminate: M,
|
|
7177
|
-
onChange:
|
|
7178
|
-
classNames:
|
|
7177
|
+
onChange: H,
|
|
7178
|
+
classNames: te,
|
|
7179
7179
|
"data-dg-part": "export-column-all"
|
|
7180
|
-
}), n[39] = j, n[40] = s, n[41] = o.exportPickerSelectAll, n[42] = M, n[43] =
|
|
7181
|
-
let
|
|
7182
|
-
n[45] !== y.size || n[46] !== h.length || n[47] !== o ? (
|
|
7183
|
-
let
|
|
7184
|
-
n[49] ===
|
|
7180
|
+
}), n[39] = j, n[40] = s, n[41] = o.exportPickerSelectAll, n[42] = M, n[43] = H, n[44] = U) : U = n[44];
|
|
7181
|
+
let W;
|
|
7182
|
+
n[45] !== y.size || n[46] !== h.length || n[47] !== o ? (W = o.exportPickerCount(y.size, h.length), n[45] = y.size, n[46] = h.length, n[47] = o, n[48] = W) : W = n[48];
|
|
7183
|
+
let ne;
|
|
7184
|
+
n[49] === W ? ne = n[50] : (ne = /* @__PURE__ */ J(D, {
|
|
7185
7185
|
size: "xs",
|
|
7186
7186
|
c: "dimmed",
|
|
7187
7187
|
"data-dg-part": "export-picker-count",
|
|
7188
|
-
children:
|
|
7189
|
-
}), n[49] =
|
|
7190
|
-
let ne;
|
|
7191
|
-
n[51] !== W || n[52] !== te ? (ne = /* @__PURE__ */ X("div", {
|
|
7192
|
-
className: Ys.listHeader,
|
|
7193
|
-
children: [W, te]
|
|
7194
|
-
}), n[51] = W, n[52] = te, n[53] = ne) : ne = n[53];
|
|
7188
|
+
children: W
|
|
7189
|
+
}), n[49] = W, n[50] = ne);
|
|
7195
7190
|
let re;
|
|
7191
|
+
n[51] !== U || n[52] !== ne ? (re = /* @__PURE__ */ Y("div", {
|
|
7192
|
+
className: Ys.listHeader,
|
|
7193
|
+
children: [U, ne]
|
|
7194
|
+
}), n[51] = U, n[52] = ne, n[53] = re) : re = n[53];
|
|
7195
|
+
let ie;
|
|
7196
7196
|
if (n[54] !== y || n[55] !== s || n[56] !== o.exportPickerHidden || n[57] !== T) {
|
|
7197
7197
|
let e;
|
|
7198
|
-
n[59] !== y || n[60] !== s || n[61] !== o.exportPickerHidden ? (e = (e) => /* @__PURE__ */
|
|
7198
|
+
n[59] !== y || n[60] !== s || n[61] !== o.exportPickerHidden ? (e = (e) => /* @__PURE__ */ J(p, {
|
|
7199
7199
|
size: s,
|
|
7200
|
-
label: /* @__PURE__ */
|
|
7200
|
+
label: /* @__PURE__ */ Y(fe, { children: [/* @__PURE__ */ J("span", {
|
|
7201
7201
|
className: Ys.rowText,
|
|
7202
7202
|
children: Pn(e)
|
|
7203
|
-
}), !e.getIsVisible() && /* @__PURE__ */
|
|
7203
|
+
}), !e.getIsVisible() && /* @__PURE__ */ J("span", {
|
|
7204
7204
|
className: Ys.rowHint,
|
|
7205
7205
|
children: o.exportPickerHidden
|
|
7206
7206
|
})] }),
|
|
@@ -7214,66 +7214,66 @@ function ec(t) {
|
|
|
7214
7214
|
},
|
|
7215
7215
|
"data-dg-part": "export-column",
|
|
7216
7216
|
"data-column-id": e.id
|
|
7217
|
-
}, e.id), n[59] = y, n[60] = s, n[61] = o.exportPickerHidden, n[62] = e) : e = n[62],
|
|
7218
|
-
} else
|
|
7219
|
-
let
|
|
7220
|
-
n[63] !== s || n[64] !== o || n[65] !== T.length || n[66] !== g ? (
|
|
7217
|
+
}, e.id), n[59] = y, n[60] = s, n[61] = o.exportPickerHidden, n[62] = e) : e = n[62], ie = T.map(e), n[54] = y, n[55] = s, n[56] = o.exportPickerHidden, n[57] = T, n[58] = ie;
|
|
7218
|
+
} else ie = n[58];
|
|
7219
|
+
let ae;
|
|
7220
|
+
n[63] !== s || n[64] !== o || n[65] !== T.length || n[66] !== g ? (ae = T.length === 0 && /* @__PURE__ */ J(D, {
|
|
7221
7221
|
size: s,
|
|
7222
7222
|
c: "dimmed",
|
|
7223
7223
|
className: Ys.empty,
|
|
7224
7224
|
children: o.columnsNoMatch(g)
|
|
7225
|
-
}), n[63] = s, n[64] = o, n[65] = T.length, n[66] = g, n[67] =
|
|
7226
|
-
let
|
|
7227
|
-
n[68] !==
|
|
7225
|
+
}), n[63] = s, n[64] = o, n[65] = T.length, n[66] = g, n[67] = ae) : ae = n[67];
|
|
7226
|
+
let oe;
|
|
7227
|
+
n[68] !== ie || n[69] !== ae ? (oe = /* @__PURE__ */ J(C.Autosize, {
|
|
7228
7228
|
mah: "50vh",
|
|
7229
7229
|
type: "auto",
|
|
7230
|
-
children: /* @__PURE__ */
|
|
7230
|
+
children: /* @__PURE__ */ Y("div", {
|
|
7231
7231
|
className: Ys.rows,
|
|
7232
|
-
children: [
|
|
7232
|
+
children: [ie, ae]
|
|
7233
7233
|
})
|
|
7234
|
-
}), n[68] =
|
|
7235
|
-
let
|
|
7236
|
-
n[71] !==
|
|
7234
|
+
}), n[68] = ie, n[69] = ae, n[70] = oe) : oe = n[70];
|
|
7235
|
+
let se;
|
|
7236
|
+
n[71] !== re || n[72] !== oe ? (se = /* @__PURE__ */ Y("div", {
|
|
7237
7237
|
className: Ys.list,
|
|
7238
|
-
children: [
|
|
7239
|
-
}), n[71] =
|
|
7238
|
+
children: [re, oe]
|
|
7239
|
+
}), n[71] = re, n[72] = oe, n[73] = se) : se = n[73];
|
|
7240
|
+
let G;
|
|
7241
|
+
n[74] === a.actions ? G = n[75] : (G = () => a.actions.closeExportPicker(), n[74] = a.actions, n[75] = G);
|
|
7240
7242
|
let K;
|
|
7241
|
-
n[
|
|
7242
|
-
let q;
|
|
7243
|
-
n[76] !== s || n[77] !== o.exportPickerCancel || n[78] !== K ? (q = /* @__PURE__ */ Y(f, {
|
|
7243
|
+
n[76] !== s || n[77] !== o.exportPickerCancel || n[78] !== G ? (K = /* @__PURE__ */ J(f, {
|
|
7244
7244
|
variant: "default",
|
|
7245
7245
|
size: s,
|
|
7246
|
-
onClick:
|
|
7246
|
+
onClick: G,
|
|
7247
7247
|
"data-dg-part": "export-picker-cancel",
|
|
7248
7248
|
children: o.exportPickerCancel
|
|
7249
|
-
}), n[76] = s, n[77] = o.exportPickerCancel, n[78] =
|
|
7250
|
-
let
|
|
7251
|
-
n[80] ===
|
|
7252
|
-
let
|
|
7253
|
-
n[82] !== s || n[83] !== o.exportPickerConfirm || n[84] !==
|
|
7249
|
+
}), n[76] = s, n[77] = o.exportPickerCancel, n[78] = G, n[79] = K) : K = n[79];
|
|
7250
|
+
let ce = y.size === 0, q;
|
|
7251
|
+
n[80] === L ? q = n[81] : (q = () => void L(), n[80] = L, n[81] = q);
|
|
7252
|
+
let ue;
|
|
7253
|
+
n[82] !== s || n[83] !== o.exportPickerConfirm || n[84] !== ce || n[85] !== q ? (ue = /* @__PURE__ */ J(f, {
|
|
7254
7254
|
size: s,
|
|
7255
|
-
disabled:
|
|
7256
|
-
onClick:
|
|
7255
|
+
disabled: ce,
|
|
7256
|
+
onClick: q,
|
|
7257
7257
|
"data-dg-part": "export-picker-confirm",
|
|
7258
7258
|
children: o.exportPickerConfirm
|
|
7259
|
-
}), n[82] = s, n[83] = o.exportPickerConfirm, n[84] =
|
|
7260
|
-
let
|
|
7261
|
-
n[87] !==
|
|
7259
|
+
}), n[82] = s, n[83] = o.exportPickerConfirm, n[84] = ce, n[85] = q, n[86] = ue) : ue = n[86];
|
|
7260
|
+
let de;
|
|
7261
|
+
n[87] !== K || n[88] !== ue ? (de = /* @__PURE__ */ Y(m, {
|
|
7262
7262
|
justify: "flex-end",
|
|
7263
7263
|
gap: "xs",
|
|
7264
|
-
children: [
|
|
7265
|
-
}), n[87] =
|
|
7266
|
-
let
|
|
7267
|
-
return n[90] !==
|
|
7264
|
+
children: [K, ue]
|
|
7265
|
+
}), n[87] = K, n[88] = ue, n[89] = de) : de = n[89];
|
|
7266
|
+
let pe;
|
|
7267
|
+
return n[90] !== B || n[91] !== V || n[92] !== se || n[93] !== de ? (pe = /* @__PURE__ */ Y(E, {
|
|
7268
7268
|
gap: "sm",
|
|
7269
7269
|
"data-dg-part": "export-picker",
|
|
7270
7270
|
children: [
|
|
7271
|
+
B,
|
|
7271
7272
|
V,
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
ue
|
|
7273
|
+
se,
|
|
7274
|
+
de
|
|
7275
7275
|
]
|
|
7276
|
-
}), n[90] =
|
|
7276
|
+
}), n[90] = B, n[91] = V, n[92] = se, n[93] = de, n[94] = pe) : pe = n[94], pe;
|
|
7277
7277
|
}
|
|
7278
7278
|
function tc(e) {
|
|
7279
7279
|
return e.id;
|
|
@@ -7324,7 +7324,7 @@ function sc(t) {
|
|
|
7324
7324
|
let E = T, D;
|
|
7325
7325
|
n[17] === v ? D = n[18] : (D = [Qe.root, v].filter(Boolean), n[17] = v, n[18] = D);
|
|
7326
7326
|
let O = D.join(" "), k;
|
|
7327
|
-
n[19] !== _ || n[20] !== b || n[21] !== S || n[22] !== y || n[23] !== O || n[24] !== x ? (k = /* @__PURE__ */
|
|
7327
|
+
n[19] !== _ || n[20] !== b || n[21] !== S || n[22] !== y || n[23] !== O || n[24] !== x ? (k = /* @__PURE__ */ J("div", {
|
|
7328
7328
|
id: b,
|
|
7329
7329
|
"data-testid": x,
|
|
7330
7330
|
"data-dg-root": !0,
|
|
@@ -7334,9 +7334,9 @@ function sc(t) {
|
|
|
7334
7334
|
children: _
|
|
7335
7335
|
}), n[19] = _, n[20] = b, n[21] = S, n[22] = y, n[23] = O, n[24] = x, n[25] = k) : k = n[25];
|
|
7336
7336
|
let A;
|
|
7337
|
-
n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */
|
|
7337
|
+
n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ J(Xs, {}), n[26] = A) : A = n[26];
|
|
7338
7338
|
let j;
|
|
7339
|
-
return n[27] !== E || n[28] !== k ? (j = /* @__PURE__ */
|
|
7339
|
+
return n[27] !== E || n[28] !== k ? (j = /* @__PURE__ */ Y(tt, {
|
|
7340
7340
|
value: E,
|
|
7341
7341
|
children: [k, A]
|
|
7342
7342
|
}), n[27] = E, n[28] = k, n[29] = j) : j = n[29], j;
|
|
@@ -7362,7 +7362,7 @@ function lc(t) {
|
|
|
7362
7362
|
let n = e(26), { column: r, operator: i, value: a, onChange: o, size: s, labels: c } = t;
|
|
7363
7363
|
if (!vt(i)) {
|
|
7364
7364
|
let e;
|
|
7365
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7365
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ J(_r, { ...t }), n[0] = t, n[1] = e), e;
|
|
7366
7366
|
}
|
|
7367
7367
|
let l;
|
|
7368
7368
|
if (n[2] !== r) {
|
|
@@ -7388,7 +7388,7 @@ function lc(t) {
|
|
|
7388
7388
|
return o([String(t), String(n)]);
|
|
7389
7389
|
}, n[12] = o, n[13] = x);
|
|
7390
7390
|
let C;
|
|
7391
|
-
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__ */
|
|
7391
|
+
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, {
|
|
7392
7392
|
size: s,
|
|
7393
7393
|
mt: 6,
|
|
7394
7394
|
min: u,
|
|
@@ -7400,7 +7400,7 @@ function lc(t) {
|
|
|
7400
7400
|
onChange: x
|
|
7401
7401
|
}), 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];
|
|
7402
7402
|
let w;
|
|
7403
|
-
return n[22] !== s || n[23] !== _ || n[24] !== C ? (w = /* @__PURE__ */
|
|
7403
|
+
return n[22] !== s || n[23] !== _ || n[24] !== C ? (w = /* @__PURE__ */ J(h.Wrapper, {
|
|
7404
7404
|
..._,
|
|
7405
7405
|
size: s,
|
|
7406
7406
|
children: C
|
|
@@ -7412,7 +7412,7 @@ function uc(t) {
|
|
|
7412
7412
|
let n = e(32), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
|
|
7413
7413
|
if (!vt(r)) {
|
|
7414
7414
|
let e;
|
|
7415
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7415
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ J(_r, { ...t }), n[0] = t, n[1] = e), e;
|
|
7416
7416
|
}
|
|
7417
7417
|
let c = t.layout !== "row", l;
|
|
7418
7418
|
n[2] === i ? l = n[3] : (l = Array.isArray(i) ? [String(i[0] ?? ""), String(i[1] ?? "")] : ["", ""], n[2] = i, n[3] = l);
|
|
@@ -7424,7 +7424,7 @@ function uc(t) {
|
|
|
7424
7424
|
let p = c ? 1 : void 0, h;
|
|
7425
7425
|
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];
|
|
7426
7426
|
let g;
|
|
7427
|
-
n[10] !== u[0] || n[11] !== o || n[12] !== f || n[13] !== p || n[14] !== h ? (g = /* @__PURE__ */
|
|
7427
|
+
n[10] !== u[0] || n[11] !== o || n[12] !== f || n[13] !== p || n[14] !== h ? (g = /* @__PURE__ */ J(O, {
|
|
7428
7428
|
...f,
|
|
7429
7429
|
size: o,
|
|
7430
7430
|
type: "date",
|
|
@@ -7441,7 +7441,7 @@ function uc(t) {
|
|
|
7441
7441
|
let v = c ? 1 : void 0, y;
|
|
7442
7442
|
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];
|
|
7443
7443
|
let b;
|
|
7444
|
-
n[22] !== u[1] || n[23] !== o || n[24] !== _ || n[25] !== v || n[26] !== y ? (b = /* @__PURE__ */
|
|
7444
|
+
n[22] !== u[1] || n[23] !== o || n[24] !== _ || n[25] !== v || n[26] !== y ? (b = /* @__PURE__ */ J(O, {
|
|
7445
7445
|
..._,
|
|
7446
7446
|
size: o,
|
|
7447
7447
|
type: "date",
|
|
@@ -7451,7 +7451,7 @@ function uc(t) {
|
|
|
7451
7451
|
onChange: y
|
|
7452
7452
|
}), n[22] = u[1], n[23] = o, n[24] = _, n[25] = v, n[26] = y, n[27] = b) : b = n[27];
|
|
7453
7453
|
let x;
|
|
7454
|
-
return n[28] !== d || n[29] !== g || n[30] !== b ? (x = /* @__PURE__ */
|
|
7454
|
+
return n[28] !== d || n[29] !== g || n[30] !== b ? (x = /* @__PURE__ */ Y(m, {
|
|
7455
7455
|
gap: 4,
|
|
7456
7456
|
wrap: "nowrap",
|
|
7457
7457
|
align: "flex-start",
|
|
@@ -7465,7 +7465,7 @@ function dc(t) {
|
|
|
7465
7465
|
let n = e(21), { column: r, table: i, operator: a, value: o, onChange: s, options: c, size: l, labels: d } = t;
|
|
7466
7466
|
if (_t(a) || vt(a)) {
|
|
7467
7467
|
let e;
|
|
7468
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7468
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ J(_r, { ...t }), n[0] = t, n[1] = e), e;
|
|
7469
7469
|
}
|
|
7470
7470
|
let f;
|
|
7471
7471
|
n[2] === a ? f = n[3] : (f = gt(a), n[2] = a, n[3] = f);
|
|
@@ -7483,7 +7483,7 @@ function dc(t) {
|
|
|
7483
7483
|
let _ = !p, v = p && t.layout !== "header" ? d.filterValuePlaceholder : "", y;
|
|
7484
7484
|
n[11] === h ? y = n[12] : (y = h.map(fc), n[11] = h, n[12] = y);
|
|
7485
7485
|
let b = p && typeof o == "string" ? o : "", x;
|
|
7486
|
-
return n[13] !== s || n[14] !== l || n[15] !== g || n[16] !== _ || n[17] !== v || n[18] !== y || n[19] !== b ? (x = /* @__PURE__ */
|
|
7486
|
+
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, {
|
|
7487
7487
|
...g,
|
|
7488
7488
|
size: l,
|
|
7489
7489
|
disabled: _,
|
|
@@ -7503,7 +7503,7 @@ function pc(t) {
|
|
|
7503
7503
|
let n = e(29), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
|
|
7504
7504
|
if (_t(r) || vt(r)) {
|
|
7505
7505
|
let e;
|
|
7506
|
-
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */
|
|
7506
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ J(_r, { ...t }), n[0] = t, n[1] = e), e;
|
|
7507
7507
|
}
|
|
7508
7508
|
let c;
|
|
7509
7509
|
n[2] === r ? c = n[3] : (c = gt(r), n[2] = r, n[3] = c);
|
|
@@ -7533,7 +7533,7 @@ function pc(t) {
|
|
|
7533
7533
|
let v = u === "true" || u === "false" ? u : "all", y;
|
|
7534
7534
|
n[17] === a ? y = n[18] : (y = (e) => a(e === "all" ? "" : e), n[17] = a, n[18] = y);
|
|
7535
7535
|
let b;
|
|
7536
|
-
n[19] !== o || n[20] !== f || n[21] !== _ || n[22] !== v || n[23] !== y ? (b = /* @__PURE__ */
|
|
7536
|
+
n[19] !== o || n[20] !== f || n[21] !== _ || n[22] !== v || n[23] !== y ? (b = /* @__PURE__ */ J(w, {
|
|
7537
7537
|
size: o,
|
|
7538
7538
|
disabled: f,
|
|
7539
7539
|
data: _,
|
|
@@ -7541,7 +7541,7 @@ function pc(t) {
|
|
|
7541
7541
|
onChange: y
|
|
7542
7542
|
}), n[19] = o, n[20] = f, n[21] = _, n[22] = v, n[23] = y, n[24] = b) : b = n[24];
|
|
7543
7543
|
let x;
|
|
7544
|
-
return n[25] !== o || n[26] !== d || n[27] !== b ? (x = /* @__PURE__ */
|
|
7544
|
+
return n[25] !== o || n[26] !== d || n[27] !== b ? (x = /* @__PURE__ */ J(h.Wrapper, {
|
|
7545
7545
|
...d,
|
|
7546
7546
|
size: o,
|
|
7547
7547
|
children: b
|
|
@@ -7684,7 +7684,7 @@ function hc({ table: e, columnId: t, fn: n = "sum" }) {
|
|
|
7684
7684
|
rows: r.getFilteredRowModel().flatRows,
|
|
7685
7685
|
table: r
|
|
7686
7686
|
};
|
|
7687
|
-
return
|
|
7687
|
+
return ve[n].aggregate(a);
|
|
7688
7688
|
}
|
|
7689
7689
|
//#endregion
|
|
7690
7690
|
export { Rr as DATA_STATE_SLICES, ca as DEFAULT_CELL_EXPORT_OPTIONS, qi as DEFAULT_EXPORT_OPTIONS, ic as DEFAULT_TMDATAGRID_SIZE, Ft as DETAILS_COLUMN_ID, dc as DgAutocompleteFilter, uc as DgDateRangeFilter, lc as DgRangeSliderFilter, pc as DgTriStateFilter, en as EDIT_COLUMN_ID, rt as FILTER_OPERATOR_LABELS, sn as GROUP_COLUMN_ID, Br as PERSIST_PAYLOAD_VERSION, hn as ROW_NUMBER_COLUMN_ID, On as SELECT_COLUMN_ID, zr as SETTINGS_STATE_SLICES, oc as SIZE_CONTROL_SIZE, ac as SIZE_ROW_HEIGHT, Ir as TMDATAGRID_LABELS_EN, mc as TMDATAGRID_LABELS_SV, cc as TMDataGrid, $o as TMDataGridBooleanEditor, es as TMDataGridDateEditor, sr as TMDataGridDraftActions, Da as TMDataGridFilterPills, _r as TMDataGridFilterValueInput, ts as TMDataGridMultiSelectEditor, ns as TMDataGridNumberEditor, eo as TMDataGridSearch, rs as TMDataGridSelectEditor, is as TMDataGridStringEditor, Ct as activeColumnFilters, hc as aggregateColumn, Nt as areAllRowsExpanded, To as autosizeColumn, Ts as boundsCellCount, Es as boundsEdges, da as buildCellMatrix, na as buildExportData, fa as buildGridCellMatrix, Wt as clearedValueForType, ea as countSelectedExportRows, va as createTMDataGridColumnHelper, Hi as csvExcelFormat, Ui as csvFormat, sa as downloadFile, ha as downloadTextFile, yt as emptyValueForOperator, ia as exportGrid, ma as exportGridToCsv, xt as filterValueShape, Fi as formatExportValue, wt as formatFilterLabel, un as formatGroupValue, la as fromCellExportOptions, Mr as fuzzyGlobalFilterFn, ui as getColumnCapabilities, Ln as getColumnDefaultOperator, Rn as getColumnFilterControl, Pn as getColumnLabel, In as getColumnOperators, Eo as getColumnRegion, Fn as getColumnType, ht as getDefaultOperator, wn as getDisplayedRows, Ut as getEditFieldName, Xi as getExportableColumns, di as getGridCapabilities, on as getGroupDataRows, mt as getOperatorsForType, En as getSelectableRowIds, Mo as getStepTargetColumn, Pa as getTMDataGridPaginationApi, Li as guardFormula, Bn as isColumnEditableForRow, Wn as isColumnReorderable, Hn as isControlColumn, St as isFilterActive, Un as isGeneratedColumn, Tn as isPagingActive, hi as isSameCell, ws as isWithinBounds, Ki as jsonFormat, Ao as keepGeneratedColumnsOutermost, wo as measureColumnContentWidth, Lr as mergeLabels, ko as moveColumn, No as moveColumnByStep, $t as normalizeFieldValidate, Ea as openColumnFilter, gt as operatorNeedsValue, _t as operatorTakesArrayValue, vt as operatorTakesRangeValue, hr as optionsToComboboxData, li as readFeatureFlags, pi as resolveCellMove, mr as resolveColumnOptions, Pt as resolveExpandAll, Ji as resolveExportOptions, Cs as resolveRangeBounds, Dn as resolveRowSelectionClick, _a as tmDataGridFeatures, aa as toClipboardText, pa as toExcelCsv, Wi as tsvFormat, wa as useTMDataGrid, $ as useTMDataGridContext, Ha as useTMDataGridExport, oa as writeClipboardText, ra as writeExportFile };
|