@alfadocs/ui-kit-debug 1.126.0 → 1.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{balance-badge-cell-DtxbGJcA.js → balance-badge-cell-BtFge7Y6.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DtxbGJcA.js.map → balance-badge-cell-BtFge7Y6.js.map} +1 -1
- package/dist/_chunks/{bill-line-table-HrynB7ND.js → bill-line-table-BRxX0Awq.js} +2 -2
- package/dist/_chunks/{bill-line-table-HrynB7ND.js.map → bill-line-table-BRxX0Awq.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-CiCmsBCH.js → calendar-appointment-editor-dialog-B-zYgCgH.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-CiCmsBCH.js.map → calendar-appointment-editor-dialog-B-zYgCgH.js.map} +1 -1
- package/dist/_chunks/{data-grid-C71BhGDw.js → data-grid-bzvkQ3kc.js} +446 -423
- package/dist/_chunks/data-grid-bzvkQ3kc.js.map +1 -0
- package/dist/_chunks/{data-table-DhYx-hCD.js → data-table-BCfkcPti.js} +2 -2
- package/dist/_chunks/{data-table-DhYx-hCD.js.map → data-table-BCfkcPti.js.map} +1 -1
- package/dist/_chunks/{default-tabs-RvCI5uN0.js → default-tabs-yEfqAPuT.js} +3 -3
- package/dist/_chunks/{default-tabs-RvCI5uN0.js.map → default-tabs-yEfqAPuT.js.map} +1 -1
- package/dist/_chunks/{file-manager-DNq-sEsy.js → file-manager-Dpwv0qs-.js} +2 -2
- package/dist/_chunks/{file-manager-DNq-sEsy.js.map → file-manager-Dpwv0qs-.js.map} +1 -1
- package/dist/_chunks/{heatmap-BurtKmeu.js → heatmap-Ds5DJBUL.js} +2 -2
- package/dist/_chunks/{heatmap-BurtKmeu.js.map → heatmap-Ds5DJBUL.js.map} +1 -1
- package/dist/_chunks/{invoice-upload-list-C95s5Q7m.js → invoice-upload-list-CgS_TBuX.js} +12 -12
- package/dist/_chunks/invoice-upload-list-CgS_TBuX.js.map +1 -0
- package/dist/_chunks/{link-cell-renderer-BEaLczk2.js → link-cell-renderer-CC9VHU68.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-BEaLczk2.js.map → link-cell-renderer-CC9VHU68.js.map} +1 -1
- package/dist/_chunks/{parts-CcyRkB8t.js → parts-tGzYz0uG.js} +42 -36
- package/dist/_chunks/parts-tGzYz0uG.js.map +1 -0
- package/dist/_chunks/{toolbar-Dznu_Dou.js → toolbar-Co46MEn9.js} +3 -3
- package/dist/_chunks/{toolbar-Dznu_Dou.js.map → toolbar-Co46MEn9.js.map} +1 -1
- package/dist/_chunks/warehouse-load-summary-DkAKXcw0.js +289 -0
- package/dist/_chunks/warehouse-load-summary-DkAKXcw0.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/table-toolbar/parts.d.ts.map +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/data-grid/data-grid.variants.d.ts +3 -1
- package/dist/components/data-grid/data-grid.variants.d.ts.map +1 -1
- package/dist/components/data-grid/header.d.ts.map +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/invoice-upload-list/columns.d.ts.map +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/warehouse-load-summary/index.js +1 -1
- package/dist/components/warehouse-load-summary/types.d.ts +6 -0
- package/dist/components/warehouse-load-summary/types.d.ts.map +1 -1
- package/dist/components/warehouse-load-summary/warehouse-load-summary.d.ts +1 -1
- package/dist/components/warehouse-load-summary/warehouse-load-summary.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/host-legacy.css +9 -0
- package/dist/index.js +12 -12
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/data-grid-C71BhGDw.js.map +0 -1
- package/dist/_chunks/invoice-upload-list-C95s5Q7m.js.map +0 -1
- package/dist/_chunks/parts-CcyRkB8t.js.map +0 -1
- package/dist/_chunks/warehouse-load-summary-D88M4Ii7.js +0 -255
- package/dist/_chunks/warehouse-load-summary-D88M4Ii7.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as C, Fragment as Re, jsxs as te } from "react/jsx-runtime";
|
|
2
2
|
import hn, { useState as oe, useRef as W, useEffect as de, useCallback as fe, useMemo as ne, useLayoutEffect as Qe, useId as is, Fragment as ai, memo as ia, Suspense as sa, lazy as la, useSyncExternalStore as aa, forwardRef as ca, useImperativeHandle as ua } from "react";
|
|
3
3
|
import { flushSync as wr } from "react-dom";
|
|
4
4
|
import { useTranslation as ge } from "react-i18next";
|
|
@@ -221,7 +221,7 @@ function nc(e) {
|
|
|
221
221
|
};
|
|
222
222
|
return v.size > 0 && (y.maskedColumnIds = [...v]), y;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function _(v) {
|
|
225
225
|
if (v.quickFilter.trim() !== "") return it(v);
|
|
226
226
|
const { maskedColumnIds: S, ...y } = v;
|
|
227
227
|
return it(y);
|
|
@@ -234,12 +234,12 @@ function nc(e) {
|
|
|
234
234
|
scope: S ? v.maskedColumnIds ?? [] : []
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
|
-
const
|
|
238
|
-
let
|
|
237
|
+
const F = h();
|
|
238
|
+
let I = _(F), M = w(F);
|
|
239
239
|
function P() {
|
|
240
240
|
var S, y;
|
|
241
241
|
const v = h();
|
|
242
|
-
|
|
242
|
+
I = _(v), M = w(v), (y = (S = a.callbacks).onQueryChange) == null || y.call(S, v);
|
|
243
243
|
}
|
|
244
244
|
function N(v, S) {
|
|
245
245
|
if (!i.has(v) || v in o) return !0;
|
|
@@ -398,7 +398,7 @@ function nc(e) {
|
|
|
398
398
|
},
|
|
399
399
|
refreshEffectiveQuery(v) {
|
|
400
400
|
const S = h();
|
|
401
|
-
if (
|
|
401
|
+
if (_(S) === I) return;
|
|
402
402
|
if (a.clearSelectionOnFilterChange && w(S) !== M && d("rowSelection").length > 0) {
|
|
403
403
|
g("rowSelection", [], v), k("rowSelection");
|
|
404
404
|
const E = { event: "selection", source: v };
|
|
@@ -448,18 +448,18 @@ function ic({
|
|
|
448
448
|
f.current = { selectionMode: r, clearSelectionOnFilterChange: i };
|
|
449
449
|
const p = W((h) => {
|
|
450
450
|
u("");
|
|
451
|
-
const
|
|
452
|
-
d.current ===
|
|
451
|
+
const _ = d.current, w = () => {
|
|
452
|
+
d.current === _ && u(h);
|
|
453
453
|
};
|
|
454
454
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(w) : setTimeout(w, 0);
|
|
455
455
|
}), m = W((h) => {
|
|
456
456
|
u(""), typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => u(h)) : setTimeout(() => u(h), 0);
|
|
457
457
|
});
|
|
458
458
|
return de(() => {
|
|
459
|
-
let h = Ri(e),
|
|
460
|
-
const
|
|
461
|
-
|
|
462
|
-
|
|
459
|
+
let h = Ri(e), _, w = null;
|
|
460
|
+
const F = (v) => Ct(v, g.current.language), I = (v) => v.label, M = () => {
|
|
461
|
+
_ !== void 0 && clearTimeout(_), _ = setTimeout(() => {
|
|
462
|
+
_ = void 0;
|
|
463
463
|
const v = e.getRowCount();
|
|
464
464
|
v <= 0 || p.current(g.current.t("dataGrid.announce.rows", { count: v }));
|
|
465
465
|
}, Ci);
|
|
@@ -472,7 +472,7 @@ function ic({
|
|
|
472
472
|
const E = h.columns.find((z) => z.id === y.colId);
|
|
473
473
|
E && p.current(
|
|
474
474
|
S("dataTable.sortAnnounce", {
|
|
475
|
-
column:
|
|
475
|
+
column: I(E),
|
|
476
476
|
direction: y.sort === "asc" ? S("dataTable.sortAscending") : S("dataTable.sortDescending")
|
|
477
477
|
})
|
|
478
478
|
);
|
|
@@ -492,18 +492,18 @@ function ic({
|
|
|
492
492
|
if (J) {
|
|
493
493
|
if (J.visible !== A.visible) {
|
|
494
494
|
p.current(
|
|
495
|
-
A.visible ? S("dataGrid.announce.columnShown", { column:
|
|
495
|
+
A.visible ? S("dataGrid.announce.columnShown", { column: I(A) }) : S("dataGrid.announce.columnHidden", { column: I(A) })
|
|
496
496
|
);
|
|
497
497
|
return;
|
|
498
498
|
}
|
|
499
499
|
if (J.pinned !== A.pinned) {
|
|
500
500
|
p.current(
|
|
501
501
|
A.pinned === "start" ? S("dataGrid.announce.columnPinnedStart", {
|
|
502
|
-
column:
|
|
502
|
+
column: I(A)
|
|
503
503
|
}) : A.pinned === "end" ? S("dataGrid.announce.columnPinnedEnd", {
|
|
504
|
-
column:
|
|
504
|
+
column: I(A)
|
|
505
505
|
}) : S("dataGrid.announce.columnUnpinned", {
|
|
506
|
-
column:
|
|
506
|
+
column: I(A)
|
|
507
507
|
})
|
|
508
508
|
);
|
|
509
509
|
return;
|
|
@@ -519,17 +519,17 @@ function ic({
|
|
|
519
519
|
}
|
|
520
520
|
z && p.current(
|
|
521
521
|
S("dataGrid.announce.columnMoved", {
|
|
522
|
-
column:
|
|
523
|
-
position:
|
|
524
|
-
total:
|
|
522
|
+
column: I(z),
|
|
523
|
+
position: F(z.index + 1),
|
|
524
|
+
total: F(y.length)
|
|
525
525
|
})
|
|
526
526
|
);
|
|
527
527
|
}, O = (v) => {
|
|
528
528
|
const S = e.getPageCount();
|
|
529
529
|
S < 1 || p.current(
|
|
530
530
|
g.current.t("dataGrid.announce.page", {
|
|
531
|
-
page:
|
|
532
|
-
total:
|
|
531
|
+
page: F(v + 1),
|
|
532
|
+
total: F(S)
|
|
533
533
|
})
|
|
534
534
|
);
|
|
535
535
|
}, q = (v) => {
|
|
@@ -545,7 +545,7 @@ function ic({
|
|
|
545
545
|
w = S.selection, y && M();
|
|
546
546
|
break;
|
|
547
547
|
case "rows":
|
|
548
|
-
|
|
548
|
+
_ !== void 0 && M();
|
|
549
549
|
break;
|
|
550
550
|
case "selection": {
|
|
551
551
|
const E = Ya(v), z = E || f.current.clearSelectionOnFilterChange && w !== null && h.selection.length < w.length && h.selection.every(
|
|
@@ -569,7 +569,7 @@ function ic({
|
|
|
569
569
|
v.event !== "filter" && v.event !== "quickFilter" && v.event !== "selection" && (w = null);
|
|
570
570
|
}, U = e.subscribe(q);
|
|
571
571
|
return () => {
|
|
572
|
-
U(),
|
|
572
|
+
U(), _ !== void 0 && clearTimeout(_);
|
|
573
573
|
};
|
|
574
574
|
}, [e]), de(() => {
|
|
575
575
|
if (n === "loading") {
|
|
@@ -582,7 +582,7 @@ function ic({
|
|
|
582
582
|
}, [n, o]), c;
|
|
583
583
|
}
|
|
584
584
|
function sc({ message: e }) {
|
|
585
|
-
return /* @__PURE__ */
|
|
585
|
+
return /* @__PURE__ */ C("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: e });
|
|
586
586
|
}
|
|
587
587
|
function lc(e) {
|
|
588
588
|
return ac(e) || typeof e == "function" || cc(e);
|
|
@@ -694,10 +694,10 @@ function dc({ update: e, notify: t, unwatched: n }) {
|
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
for (; g--; ) {
|
|
697
|
-
const h = u.subs,
|
|
698
|
-
if (
|
|
697
|
+
const h = u.subs, _ = h.nextSub !== void 0;
|
|
698
|
+
if (_ ? (c = d.value, d = d.prev) : c = h, f) {
|
|
699
699
|
if (e(u)) {
|
|
700
|
-
|
|
700
|
+
_ && l(h), u = c.sub;
|
|
701
701
|
continue;
|
|
702
702
|
}
|
|
703
703
|
f = !1;
|
|
@@ -950,16 +950,16 @@ function Sc() {
|
|
|
950
950
|
h = s({
|
|
951
951
|
inst: { value: m, getSnapshot: p }
|
|
952
952
|
});
|
|
953
|
-
var
|
|
953
|
+
var _ = h[0].inst, w = h[1];
|
|
954
954
|
return a(
|
|
955
955
|
function() {
|
|
956
|
-
|
|
956
|
+
_.value = m, _.getSnapshot = p, n(_) && w({ inst: _ });
|
|
957
957
|
},
|
|
958
958
|
[f, m, p]
|
|
959
959
|
), l(
|
|
960
960
|
function() {
|
|
961
|
-
return n(
|
|
962
|
-
n(
|
|
961
|
+
return n(_) && w({ inst: _ }), f(function() {
|
|
962
|
+
n(_) && w({ inst: _ });
|
|
963
963
|
});
|
|
964
964
|
},
|
|
965
965
|
[f]
|
|
@@ -1013,26 +1013,26 @@ function yc() {
|
|
|
1013
1013
|
} else m = p.current;
|
|
1014
1014
|
p = l(
|
|
1015
1015
|
function() {
|
|
1016
|
-
function
|
|
1016
|
+
function _(P) {
|
|
1017
1017
|
if (!w) {
|
|
1018
|
-
if (w = !0,
|
|
1018
|
+
if (w = !0, F = P, P = g(P), f !== void 0 && m.hasValue) {
|
|
1019
1019
|
var N = m.value;
|
|
1020
1020
|
if (f(N, P))
|
|
1021
|
-
return
|
|
1021
|
+
return I = N;
|
|
1022
1022
|
}
|
|
1023
|
-
return
|
|
1023
|
+
return I = P;
|
|
1024
1024
|
}
|
|
1025
|
-
if (N =
|
|
1025
|
+
if (N = I, o(F, P)) return N;
|
|
1026
1026
|
var k = g(P);
|
|
1027
|
-
return f !== void 0 && f(N, k) ? (
|
|
1027
|
+
return f !== void 0 && f(N, k) ? (F = P, N) : (F = P, I = k);
|
|
1028
1028
|
}
|
|
1029
|
-
var w = !1,
|
|
1029
|
+
var w = !1, F, I, M = d === void 0 ? null : d;
|
|
1030
1030
|
return [
|
|
1031
1031
|
function() {
|
|
1032
|
-
return
|
|
1032
|
+
return _(u());
|
|
1033
1033
|
},
|
|
1034
1034
|
M === null ? void 0 : function() {
|
|
1035
|
-
return
|
|
1035
|
+
return _(M());
|
|
1036
1036
|
}
|
|
1037
1037
|
];
|
|
1038
1038
|
},
|
|
@@ -1073,27 +1073,27 @@ function vc() {
|
|
|
1073
1073
|
} else m = p.current;
|
|
1074
1074
|
p = l(
|
|
1075
1075
|
function() {
|
|
1076
|
-
function
|
|
1076
|
+
function _(P) {
|
|
1077
1077
|
if (!w) {
|
|
1078
|
-
if (w = !0,
|
|
1078
|
+
if (w = !0, F = P, P = g(P), f !== void 0 && m.hasValue) {
|
|
1079
1079
|
var N = m.value;
|
|
1080
1080
|
if (f(N, P))
|
|
1081
|
-
return
|
|
1081
|
+
return I = N;
|
|
1082
1082
|
}
|
|
1083
|
-
return
|
|
1083
|
+
return I = P;
|
|
1084
1084
|
}
|
|
1085
|
-
if (N =
|
|
1085
|
+
if (N = I, o(F, P))
|
|
1086
1086
|
return N;
|
|
1087
1087
|
var k = g(P);
|
|
1088
|
-
return f !== void 0 && f(N, k) ? (
|
|
1088
|
+
return f !== void 0 && f(N, k) ? (F = P, N) : (F = P, I = k);
|
|
1089
1089
|
}
|
|
1090
|
-
var w = !1,
|
|
1090
|
+
var w = !1, F, I, M = d === void 0 ? null : d;
|
|
1091
1091
|
return [
|
|
1092
1092
|
function() {
|
|
1093
|
-
return
|
|
1093
|
+
return _(u());
|
|
1094
1094
|
},
|
|
1095
1095
|
M === null ? void 0 : function() {
|
|
1096
|
-
return
|
|
1096
|
+
return _(M());
|
|
1097
1097
|
}
|
|
1098
1098
|
];
|
|
1099
1099
|
},
|
|
@@ -2134,12 +2134,12 @@ function Qu(e, t = {}) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
function Xu(e) {
|
|
2136
2136
|
var P, N;
|
|
2137
|
-
const t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: o, coreRowModel: r, expandedRowModel: i, facetedMinMaxValues: s, facetedRowModel: l, facetedUniqueValues: a, filterFns: c, filterMeta: u, filteredRowModel: d, groupedRowModel: g, paginatedRowModel: f, sortFns: p, sortedRowModel: m, tableMeta: h, ...
|
|
2137
|
+
const t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: o, coreRowModel: r, expandedRowModel: i, facetedMinMaxValues: s, facetedRowModel: l, facetedUniqueValues: a, filterFns: c, filterMeta: u, filteredRowModel: d, groupedRowModel: g, paginatedRowModel: f, sortFns: p, sortedRowModel: m, tableMeta: h, ..._ } = e.features, w = {
|
|
2138
2138
|
_cellInstanceInitFns: [],
|
|
2139
2139
|
_columnInstanceInitFns: [],
|
|
2140
2140
|
_features: {
|
|
2141
2141
|
...Wu,
|
|
2142
|
-
...
|
|
2142
|
+
..._
|
|
2143
2143
|
},
|
|
2144
2144
|
_headerGroupInstanceInitFns: [],
|
|
2145
2145
|
_headerInstanceInitFns: [],
|
|
@@ -2153,16 +2153,16 @@ function Xu(e) {
|
|
|
2153
2153
|
_rowModels: {},
|
|
2154
2154
|
atoms: {},
|
|
2155
2155
|
baseAtoms: {}
|
|
2156
|
-
},
|
|
2157
|
-
...
|
|
2156
|
+
}, F = Object.values(w._features), I = {
|
|
2157
|
+
...F.reduce((k, O) => {
|
|
2158
2158
|
var q;
|
|
2159
2159
|
return Object.assign(k, (q = O.getDefaultTableOptions) == null ? void 0 : q.call(O, w));
|
|
2160
2160
|
}, {}),
|
|
2161
2161
|
...e
|
|
2162
2162
|
};
|
|
2163
|
-
if (t.wrapExternalAtoms &&
|
|
2163
|
+
if (t.wrapExternalAtoms && I.atoms) for (const [k, O] of Object.entries(I.atoms)) {
|
|
2164
2164
|
const q = O, U = t.createWritableAtom(q.get(), { debugName: `externalAtom/${k}` });
|
|
2165
|
-
|
|
2165
|
+
I.atoms[k] = U;
|
|
2166
2166
|
let v = !1;
|
|
2167
2167
|
const S = q.subscribe((E) => {
|
|
2168
2168
|
v || U.set(E);
|
|
@@ -2171,7 +2171,7 @@ function Xu(e) {
|
|
|
2171
2171
|
});
|
|
2172
2172
|
t.addSubscription(S), t.addSubscription(y);
|
|
2173
2173
|
}
|
|
2174
|
-
t.createOptionsStore ? (w.optionsStore = t.createWritableAtom(
|
|
2174
|
+
t.createOptionsStore ? (w.optionsStore = t.createWritableAtom(I, { debugName: "table/optionsStore" }), Object.defineProperty(w, "options", {
|
|
2175
2175
|
configurable: !0,
|
|
2176
2176
|
enumerable: !0,
|
|
2177
2177
|
get() {
|
|
@@ -2180,7 +2180,7 @@ function Xu(e) {
|
|
|
2180
2180
|
set(k) {
|
|
2181
2181
|
w.optionsStore.set(() => k);
|
|
2182
2182
|
}
|
|
2183
|
-
})) : w.options =
|
|
2183
|
+
})) : w.options = I, w.initialState = Qu(w._features, w.options.initialState);
|
|
2184
2184
|
const M = Object.keys(w.initialState);
|
|
2185
2185
|
for (let k = 0; k < M.length; k++) {
|
|
2186
2186
|
const O = M[k];
|
|
@@ -2207,8 +2207,8 @@ function Xu(e) {
|
|
|
2207
2207
|
compare: dn,
|
|
2208
2208
|
debugName: "table/store"
|
|
2209
2209
|
}));
|
|
2210
|
-
for (let k = 0; k <
|
|
2211
|
-
const O =
|
|
2210
|
+
for (let k = 0; k < F.length; k++) {
|
|
2211
|
+
const O = F[k];
|
|
2212
2212
|
(P = O.initTableInstanceData) == null || P.call(O, w), O.initCellInstanceData && w._cellInstanceInitFns.push(O.initCellInstanceData.bind(O)), O.initColumnInstanceData && w._columnInstanceInitFns.push(O.initColumnInstanceData.bind(O)), O.initHeaderGroupInstanceData && w._headerGroupInstanceInitFns.push(O.initHeaderGroupInstanceData.bind(O)), O.initHeaderInstanceData && w._headerInstanceInitFns.push(O.initHeaderInstanceData.bind(O)), O.initRowInstanceData && w._rowInstanceInitFns.push(O.initRowInstanceData.bind(O)), (N = O.constructTableAPIs) == null || N.call(O, w);
|
|
2213
2213
|
}
|
|
2214
2214
|
if (process.env.NODE_ENV === "development" && (e.debugAll || e.debugTable)) {
|
|
@@ -3050,24 +3050,24 @@ function Nd(e, t) {
|
|
|
3050
3050
|
columnSizingStart: []
|
|
3051
3051
|
}));
|
|
3052
3052
|
});
|
|
3053
|
-
}, h = t || (typeof document < "u" ? document : null),
|
|
3053
|
+
}, h = t || (typeof document < "u" ? document : null), _ = {
|
|
3054
3054
|
moveHandler: (M) => p(M.clientX),
|
|
3055
3055
|
upHandler: (M) => {
|
|
3056
|
-
h == null || h.removeEventListener("mousemove",
|
|
3056
|
+
h == null || h.removeEventListener("mousemove", _.moveHandler), h == null || h.removeEventListener("mouseup", _.upHandler), m(M.clientX);
|
|
3057
3057
|
}
|
|
3058
3058
|
}, w = {
|
|
3059
3059
|
moveHandler: (M) => (M.cancelable && (M.preventDefault(), M.stopPropagation()), p(M.touches[0].clientX), !1),
|
|
3060
3060
|
upHandler: (M) => {
|
|
3061
3061
|
var P;
|
|
3062
|
-
|
|
3062
|
+
F(), M.cancelable && (M.preventDefault(), M.stopPropagation()), m((P = M.touches[0]) == null ? void 0 : P.clientX);
|
|
3063
3063
|
},
|
|
3064
3064
|
cancelHandler: () => {
|
|
3065
|
-
|
|
3065
|
+
F(), m();
|
|
3066
3066
|
}
|
|
3067
|
-
},
|
|
3067
|
+
}, F = () => {
|
|
3068
3068
|
h == null || h.removeEventListener("touchmove", w.moveHandler), h == null || h.removeEventListener("touchend", w.upHandler), h == null || h.removeEventListener("touchcancel", w.cancelHandler);
|
|
3069
|
-
},
|
|
3070
|
-
Yo(r) ? (h == null || h.addEventListener("touchmove", w.moveHandler,
|
|
3069
|
+
}, I = jd() ? { passive: !1 } : !1;
|
|
3070
|
+
Yo(r) ? (h == null || h.addEventListener("touchmove", w.moveHandler, I), h == null || h.addEventListener("touchend", w.upHandler, I), h == null || h.addEventListener("touchcancel", w.cancelHandler, I)) : (h == null || h.addEventListener("mousemove", _.moveHandler, I), h == null || h.addEventListener("mouseup", _.upHandler, I)), fn(n.table, (M) => ({
|
|
3071
3071
|
...M,
|
|
3072
3072
|
startOffset: l,
|
|
3073
3073
|
startSize: i,
|
|
@@ -3890,8 +3890,8 @@ function Nf(e, t, n, o) {
|
|
|
3890
3890
|
return qt(i, (p) => {
|
|
3891
3891
|
const m = Object.assign(H(), p);
|
|
3892
3892
|
for (let h = g; h <= f; h++) {
|
|
3893
|
-
const
|
|
3894
|
-
!Xe(
|
|
3893
|
+
const _ = s[h];
|
|
3894
|
+
!Xe(_) || !vt(_) || (Fo(m, _.id, n, r, i), !n && (o != null && o.deselectParents) && yl(m, _));
|
|
3895
3895
|
}
|
|
3896
3896
|
return m;
|
|
3897
3897
|
}), !0;
|
|
@@ -4439,15 +4439,15 @@ function lg(e) {
|
|
|
4439
4439
|
const f = a[g];
|
|
4440
4440
|
if (f.columnFilters = H(), f.columnFiltersMeta = H(), i.length) for (let p = 0; p < i.length; p++) {
|
|
4441
4441
|
const m = i[p], h = m.id;
|
|
4442
|
-
f.columnFilters[h] = m.filterFn(f, h, m.resolvedValue, (
|
|
4443
|
-
f.columnFiltersMeta || (f.columnFiltersMeta = H()), f.columnFiltersMeta[h] =
|
|
4442
|
+
f.columnFilters[h] = m.filterFn(f, h, m.resolvedValue, (_) => {
|
|
4443
|
+
f.columnFiltersMeta || (f.columnFiltersMeta = H()), f.columnFiltersMeta[h] = _;
|
|
4444
4444
|
});
|
|
4445
4445
|
}
|
|
4446
4446
|
if (s.length) {
|
|
4447
4447
|
for (let p = 0; p < s.length; p++) {
|
|
4448
4448
|
const m = s[p], h = m.id;
|
|
4449
|
-
if (m.filterFn(f, h, m.resolvedValue, (
|
|
4450
|
-
f.columnFiltersMeta || (f.columnFiltersMeta = H()), f.columnFiltersMeta[h] =
|
|
4449
|
+
if (m.filterFn(f, h, m.resolvedValue, (_) => {
|
|
4450
|
+
f.columnFiltersMeta || (f.columnFiltersMeta = H()), f.columnFiltersMeta[h] = _;
|
|
4451
4451
|
})) {
|
|
4452
4452
|
f.columnFilters.__global__ = !0;
|
|
4453
4453
|
break;
|
|
@@ -4547,9 +4547,9 @@ function dg(e) {
|
|
|
4547
4547
|
const g = i[d], f = g.sortUndefined, p = g.desc;
|
|
4548
4548
|
let m = 0;
|
|
4549
4549
|
if (f) {
|
|
4550
|
-
const h = c.getValue(g.id),
|
|
4551
|
-
if (w &&
|
|
4552
|
-
if (w ||
|
|
4550
|
+
const h = c.getValue(g.id), _ = u.getValue(g.id), w = h === void 0, F = _ === void 0;
|
|
4551
|
+
if (w && F) continue;
|
|
4552
|
+
if (w || F) {
|
|
4553
4553
|
if (f === "first") return w ? -1 : 1;
|
|
4554
4554
|
if (f === "last") return w ? 1 : -1;
|
|
4555
4555
|
m = w ? f : -f;
|
|
@@ -4950,8 +4950,8 @@ function Dg(e) {
|
|
|
4950
4950
|
He(`column group id "${m.id}" collides with a column id; ignored.`);
|
|
4951
4951
|
continue;
|
|
4952
4952
|
}
|
|
4953
|
-
const h = m.columns.filter((
|
|
4954
|
-
h.length !== 0 && (h.forEach((
|
|
4953
|
+
const h = m.columns.filter((_) => n.has(_) ? r.has(_) ? (He(`column "${_}" is in more than one group; the first one wins.`), !1) : !0 : (He(`column group "${m.id}" names unknown column "${_}".`), !1));
|
|
4954
|
+
h.length !== 0 && (h.forEach((_) => r.set(_, m.id)), o.set(m.id, m));
|
|
4955
4955
|
}
|
|
4956
4956
|
const i = [], s = /* @__PURE__ */ new Set();
|
|
4957
4957
|
for (const m of t) {
|
|
@@ -4962,32 +4962,32 @@ function Dg(e) {
|
|
|
4962
4962
|
}
|
|
4963
4963
|
if (s.has(h)) continue;
|
|
4964
4964
|
s.add(h);
|
|
4965
|
-
const
|
|
4965
|
+
const _ = t.filter((w) => r.get(w.id) === h).map((w) => w.id);
|
|
4966
4966
|
if (Fe()) {
|
|
4967
|
-
const w =
|
|
4968
|
-
(
|
|
4967
|
+
const w = _.map(
|
|
4968
|
+
(I) => t.findIndex((M) => M.id === I)
|
|
4969
4969
|
);
|
|
4970
4970
|
w.every(
|
|
4971
|
-
(
|
|
4971
|
+
(I, M) => M === 0 || I === w[M - 1] + 1
|
|
4972
4972
|
) || He(
|
|
4973
4973
|
`the columns of group "${h}" are not adjacent; they are shown together.`
|
|
4974
4974
|
);
|
|
4975
4975
|
}
|
|
4976
|
-
i.push(...
|
|
4976
|
+
i.push(..._);
|
|
4977
4977
|
}
|
|
4978
4978
|
const l = t.find((m) => m.rowHeader), a = (l == null ? void 0 : l.id) ?? i[0] ?? null, c = [], u = [];
|
|
4979
4979
|
for (const m of i) {
|
|
4980
4980
|
const h = n.get(m);
|
|
4981
4981
|
if (!(h != null && h.pin)) continue;
|
|
4982
|
-
const
|
|
4983
|
-
if (
|
|
4984
|
-
const w = o.get(
|
|
4985
|
-
if (!(w == null ? void 0 : w.columns.filter((
|
|
4982
|
+
const _ = r.get(m);
|
|
4983
|
+
if (_ !== void 0) {
|
|
4984
|
+
const w = o.get(_);
|
|
4985
|
+
if (!(w == null ? void 0 : w.columns.filter((I) => r.get(I) === _).every((I) => {
|
|
4986
4986
|
var M;
|
|
4987
|
-
return ((M = n.get(
|
|
4987
|
+
return ((M = n.get(I)) == null ? void 0 : M.pin) === h.pin;
|
|
4988
4988
|
}))) {
|
|
4989
4989
|
He(
|
|
4990
|
-
`column "${m}" is pinned but the rest of group "${
|
|
4990
|
+
`column "${m}" is pinned but the rest of group "${_}" is not; the pin is ignored.`
|
|
4991
4991
|
);
|
|
4992
4992
|
continue;
|
|
4993
4993
|
}
|
|
@@ -4999,7 +4999,7 @@ function Dg(e) {
|
|
|
4999
4999
|
const f = (m) => {
|
|
5000
5000
|
const h = n.get(m);
|
|
5001
5001
|
Og(h);
|
|
5002
|
-
const
|
|
5002
|
+
const _ = {
|
|
5003
5003
|
kind: "data",
|
|
5004
5004
|
label: gn(h),
|
|
5005
5005
|
isRowHeader: h.id === a,
|
|
@@ -5008,7 +5008,7 @@ function Dg(e) {
|
|
|
5008
5008
|
return Pg(
|
|
5009
5009
|
h,
|
|
5010
5010
|
e,
|
|
5011
|
-
|
|
5011
|
+
_,
|
|
5012
5012
|
st(h, a, e.privacyMode)
|
|
5013
5013
|
);
|
|
5014
5014
|
}, p = /* @__PURE__ */ new Set();
|
|
@@ -5020,20 +5020,20 @@ function Dg(e) {
|
|
|
5020
5020
|
}
|
|
5021
5021
|
if (p.has(h)) continue;
|
|
5022
5022
|
p.add(h);
|
|
5023
|
-
const
|
|
5024
|
-
(
|
|
5025
|
-
),
|
|
5026
|
-
id:
|
|
5027
|
-
header: gn(
|
|
5023
|
+
const _ = o.get(h), w = i.filter(
|
|
5024
|
+
(I) => r.get(I) === h
|
|
5025
|
+
), F = {
|
|
5026
|
+
id: _.id,
|
|
5027
|
+
header: gn(_),
|
|
5028
5028
|
meta: {
|
|
5029
5029
|
kind: "group",
|
|
5030
|
-
label: gn(
|
|
5030
|
+
label: gn(_),
|
|
5031
5031
|
isRowHeader: !1,
|
|
5032
5032
|
groupId: null
|
|
5033
5033
|
},
|
|
5034
5034
|
columns: w.map(f)
|
|
5035
5035
|
};
|
|
5036
|
-
g.push(
|
|
5036
|
+
g.push(F);
|
|
5037
5037
|
}
|
|
5038
5038
|
return {
|
|
5039
5039
|
defs: g,
|
|
@@ -5097,7 +5097,7 @@ const Tl = [
|
|
|
5097
5097
|
), dr = Y("ds:print:hidden", {
|
|
5098
5098
|
variants: {
|
|
5099
5099
|
slot: {
|
|
5100
|
-
toolbar: "ds:shrink-0",
|
|
5100
|
+
toolbar: "ds:shrink-0 ds:pb-[var(--spacing-sm)]",
|
|
5101
5101
|
pager: [
|
|
5102
5102
|
"ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-between",
|
|
5103
5103
|
"ds:gap-[var(--spacing-sm)] ds:border-t ds:border-[color:var(--data-grid-line)]",
|
|
@@ -5340,19 +5340,33 @@ const Tl = [
|
|
|
5340
5340
|
defaultVariants: { active: !1 }
|
|
5341
5341
|
}), jg = Y(
|
|
5342
5342
|
"ds:[font-size:var(--font-size-xs)] ds:tabular-nums ds:text-[color:var(--foreground)]"
|
|
5343
|
-
), $g = Y(
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5343
|
+
), $g = Y(
|
|
5344
|
+
[
|
|
5345
|
+
"ds:absolute ds:inset-y-0 ds:end-0 ds:z-[1] ds:flex ds:w-[var(--accessible-target-floor,var(--spacing-lg))] ds:justify-center",
|
|
5346
|
+
"ds:cursor-col-resize ds:touch-none ds:select-none ds:print:hidden",
|
|
5347
|
+
'ds:after:block ds:after:h-full ds:after:w-[length:var(--border-width-md)] ds:after:content-[""]',
|
|
5348
|
+
// `--border` and `--ring` straight (see the body row size above): the
|
|
5349
|
+
// `--data-grid-resize-line*` aliases resolve on `:root` only.
|
|
5350
|
+
"ds:after:bg-[color:var(--border)]",
|
|
5351
|
+
"ds:hover:after:bg-[color:var(--ring)]",
|
|
5352
|
+
"ds:focus-visible:after:bg-[color:var(--ring)]",
|
|
5353
|
+
"ds:data-[resizing]:after:bg-[color:var(--ring)]",
|
|
5354
|
+
"ds:forced-colors:after:bg-[CanvasText]",
|
|
5355
|
+
...Gl
|
|
5356
|
+
],
|
|
5357
|
+
{
|
|
5358
|
+
variants: {
|
|
5359
|
+
// The header already has the pinned-column border at this edge: the
|
|
5360
|
+
// idle line would be a second, parallel one a few pixels inside it.
|
|
5361
|
+
// Hover, focus and a drag still show the line.
|
|
5362
|
+
edge: {
|
|
5363
|
+
true: "ds:after:bg-transparent",
|
|
5364
|
+
false: ""
|
|
5365
|
+
}
|
|
5366
|
+
},
|
|
5367
|
+
defaultVariants: { edge: !1 }
|
|
5368
|
+
}
|
|
5369
|
+
), Bg = "ds:pe-[var(--accessible-target-floor,var(--spacing-lg))]", Kg = Y(
|
|
5356
5370
|
"ds:size-4 ds:motion-safe:transition-transform ds:motion-safe:duration-[var(--animation-duration)]",
|
|
5357
5371
|
{
|
|
5358
5372
|
variants: {
|
|
@@ -5388,13 +5402,13 @@ function em({
|
|
|
5388
5402
|
onNumberValidityChange: r
|
|
5389
5403
|
}) {
|
|
5390
5404
|
const i = n.invalid ? "error" : "default", s = n.invalid || void 0, l = n.errorId ? { "aria-describedby": n.errorId } : {}, a = is();
|
|
5391
|
-
if (e.kind === "custom") return /* @__PURE__ */
|
|
5392
|
-
return /* @__PURE__ */
|
|
5405
|
+
if (e.kind === "custom") return /* @__PURE__ */ C(Re, { children: e.render(t, n) });
|
|
5406
|
+
return /* @__PURE__ */ C("div", { className: Xg(), children: c() });
|
|
5393
5407
|
function c() {
|
|
5394
5408
|
switch (e.kind) {
|
|
5395
5409
|
case "number": {
|
|
5396
5410
|
const u = typeof e.unit == "function" ? e.unit(t) : e.unit;
|
|
5397
|
-
return /* @__PURE__ */
|
|
5411
|
+
return /* @__PURE__ */ C(
|
|
5398
5412
|
Ra.Provider,
|
|
5399
5413
|
{
|
|
5400
5414
|
value: {
|
|
@@ -5406,7 +5420,7 @@ function em({
|
|
|
5406
5420
|
required: !1,
|
|
5407
5421
|
disabled: !1
|
|
5408
5422
|
},
|
|
5409
|
-
children: /* @__PURE__ */
|
|
5423
|
+
children: /* @__PURE__ */ C(
|
|
5410
5424
|
cs,
|
|
5411
5425
|
{
|
|
5412
5426
|
variant: "plain",
|
|
@@ -5434,7 +5448,7 @@ function em({
|
|
|
5434
5448
|
);
|
|
5435
5449
|
}
|
|
5436
5450
|
case "text":
|
|
5437
|
-
return /* @__PURE__ */
|
|
5451
|
+
return /* @__PURE__ */ C(
|
|
5438
5452
|
_a,
|
|
5439
5453
|
{
|
|
5440
5454
|
className: er(),
|
|
@@ -5449,7 +5463,7 @@ function em({
|
|
|
5449
5463
|
}
|
|
5450
5464
|
);
|
|
5451
5465
|
case "select":
|
|
5452
|
-
return /* @__PURE__ */
|
|
5466
|
+
return /* @__PURE__ */ C(
|
|
5453
5467
|
br,
|
|
5454
5468
|
{
|
|
5455
5469
|
className: er(),
|
|
@@ -5633,19 +5647,19 @@ function sm({
|
|
|
5633
5647
|
const { rowId: f, cellIndex: p, control: m } = i.current;
|
|
5634
5648
|
if (a.current.indexOf(f) === void 0) {
|
|
5635
5649
|
l.current = !1, i.current = null, s.current = null, o(null);
|
|
5636
|
-
const
|
|
5637
|
-
|
|
5650
|
+
const I = t.current;
|
|
5651
|
+
I && (I.hasAttribute("tabindex") || I.setAttribute("tabindex", "-1"), I.focus());
|
|
5638
5652
|
return;
|
|
5639
5653
|
}
|
|
5640
|
-
const
|
|
5641
|
-
if (!
|
|
5654
|
+
const _ = jr(g, f);
|
|
5655
|
+
if (!_) return;
|
|
5642
5656
|
l.current = !1;
|
|
5643
|
-
const w =
|
|
5657
|
+
const w = _.children[p], F = (m ? fr(_, m) : null) ?? (w == null ? void 0 : w.querySelector(
|
|
5644
5658
|
'button:not([disabled]), input:not([disabled]), select, textarea, a[href], [tabindex]:not([tabindex="-1"])'
|
|
5645
5659
|
)) ?? // Nothing focusable left in that cell (an editor now shows text, a
|
|
5646
5660
|
// box the row lost): the row's select box, else its row header.
|
|
5647
|
-
fr(
|
|
5648
|
-
|
|
5661
|
+
fr(_, "select") ?? _.querySelector(':scope > th[scope="row"]');
|
|
5662
|
+
F && (F.tagName === "TH" && !F.hasAttribute("tabindex") && F.setAttribute("tabindex", "-1"), F.focus());
|
|
5649
5663
|
});
|
|
5650
5664
|
}
|
|
5651
5665
|
const St = {
|
|
@@ -5677,13 +5691,13 @@ function am({
|
|
|
5677
5691
|
const { t: l } = ge("ui"), a = Nl();
|
|
5678
5692
|
if (i === "none")
|
|
5679
5693
|
return /* @__PURE__ */ te(Re, { children: [
|
|
5680
|
-
/* @__PURE__ */
|
|
5681
|
-
/* @__PURE__ */
|
|
5694
|
+
/* @__PURE__ */ C("span", { "aria-hidden": "true", className: qg(), children: "–" }),
|
|
5695
|
+
/* @__PURE__ */ C(Bt, { children: s ?? l("dataGrid.selection.noneReason") })
|
|
5682
5696
|
] });
|
|
5683
5697
|
const c = i === "locked", u = !c && e.readOnlyReason !== null, d = c ? s ?? l("dataGrid.selection.lockedReason") : e.readOnlyReason ?? l("dataGrid.readOnly.reason");
|
|
5684
5698
|
return /* @__PURE__ */ te(Re, { children: [
|
|
5685
|
-
/* @__PURE__ */
|
|
5686
|
-
/* @__PURE__ */
|
|
5699
|
+
/* @__PURE__ */ C("span", { hidden: !0, id: n, children: l("dataGrid.selection.selectRow", { row: o }) }),
|
|
5700
|
+
/* @__PURE__ */ C(
|
|
5687
5701
|
so,
|
|
5688
5702
|
{
|
|
5689
5703
|
size: "sm",
|
|
@@ -5713,14 +5727,14 @@ function cm({
|
|
|
5713
5727
|
}) {
|
|
5714
5728
|
const { t: s } = ge("ui");
|
|
5715
5729
|
return r ? /* @__PURE__ */ te(Re, { children: [
|
|
5716
|
-
/* @__PURE__ */
|
|
5717
|
-
/* @__PURE__ */
|
|
5730
|
+
/* @__PURE__ */ C("span", { hidden: !0, id: t, children: i ? s("dataGrid.expand.collapse", { row: n }) : s("dataGrid.expand.expand", { row: n }) }),
|
|
5731
|
+
/* @__PURE__ */ C(
|
|
5718
5732
|
ls,
|
|
5719
5733
|
{
|
|
5720
5734
|
size: "sm",
|
|
5721
5735
|
intent: "ghost",
|
|
5722
5736
|
className: us,
|
|
5723
|
-
icon: /* @__PURE__ */
|
|
5737
|
+
icon: /* @__PURE__ */ C(
|
|
5724
5738
|
xa,
|
|
5725
5739
|
{
|
|
5726
5740
|
"aria-hidden": "true",
|
|
@@ -5750,7 +5764,7 @@ function um({
|
|
|
5750
5764
|
rowReadOnly: u
|
|
5751
5765
|
}) {
|
|
5752
5766
|
var O, q;
|
|
5753
|
-
const { t: d, i18n: g } = ge("ui"), { meta: f } = e, p = t.original, [m, h] = oe(null),
|
|
5767
|
+
const { t: d, i18n: g } = ge("ui"), { meta: f } = e, p = t.original, [m, h] = oe(null), _ = (U, v) => {
|
|
5754
5768
|
const S = (y) => Ct(y, g.language);
|
|
5755
5769
|
switch (v == null ? void 0 : v.reason) {
|
|
5756
5770
|
case "format":
|
|
@@ -5773,17 +5787,17 @@ function um({
|
|
|
5773
5787
|
};
|
|
5774
5788
|
if (f.isMasked(t.id, n.id))
|
|
5775
5789
|
return /* @__PURE__ */ te(Re, { children: [
|
|
5776
|
-
/* @__PURE__ */
|
|
5777
|
-
/* @__PURE__ */
|
|
5790
|
+
/* @__PURE__ */ C("span", { "aria-hidden": "true", className: Jg(), children: ss(Al(n, p)) }),
|
|
5791
|
+
/* @__PURE__ */ C(Bt, { children: d("calendarWorkspace.privacy.hidden") })
|
|
5778
5792
|
] });
|
|
5779
|
-
const w = n.edit,
|
|
5793
|
+
const w = n.edit, F = w !== void 0 && !u && (w.isEditable ? w.isEditable(p) : !0), I = !F && (u || w !== void 0), M = a && t.depth > 0 ? /* @__PURE__ */ C("span", { className: Yg, children: d("dataGrid.expand.level", {
|
|
5780
5794
|
level: Ct(t.depth + 1, g.language)
|
|
5781
5795
|
}) }) : null;
|
|
5782
|
-
if (w &&
|
|
5783
|
-
const U = (O = w.error) == null ? void 0 : O.call(w, p), v = f.isRowMasked(t.id), S = w.kind === "number" && (m == null ? void 0 : m.reason) === "format" ?
|
|
5796
|
+
if (w && F) {
|
|
5797
|
+
const U = (O = w.error) == null ? void 0 : O.call(w, p), v = f.isRowMasked(t.id), S = w.kind === "number" && (m == null ? void 0 : m.reason) === "format" ? _(w, m) : void 0, y = S || (U ? v ? d(
|
|
5784
5798
|
"dataGrid.edit.errorPrivacy",
|
|
5785
5799
|
"Check this value (message hidden in privacy mode)"
|
|
5786
|
-
) : U : w.kind === "number" ?
|
|
5800
|
+
) : U : w.kind === "number" ? _(w, m) : void 0), E = w.kind === "number" && !v ? (q = w.description) == null ? void 0 : q.call(w, p) : void 0, z = E ? `${s}-d` : void 0, V = {
|
|
5787
5801
|
rowId: t.id,
|
|
5788
5802
|
columnId: n.id,
|
|
5789
5803
|
labelledBy: `${mr(e.idBase, n.id)} ${i}`,
|
|
@@ -5793,9 +5807,9 @@ function um({
|
|
|
5793
5807
|
invalid: !!y
|
|
5794
5808
|
};
|
|
5795
5809
|
return /* @__PURE__ */ te(Re, { children: [
|
|
5796
|
-
/* @__PURE__ */
|
|
5797
|
-
E ? /* @__PURE__ */
|
|
5798
|
-
/* @__PURE__ */
|
|
5810
|
+
/* @__PURE__ */ C("span", { hidden: !0, id: i, children: o }),
|
|
5811
|
+
E ? /* @__PURE__ */ C("span", { hidden: !0, id: z, children: E }) : null,
|
|
5812
|
+
/* @__PURE__ */ C(
|
|
5799
5813
|
em,
|
|
5800
5814
|
{
|
|
5801
5815
|
edit: w,
|
|
@@ -5805,7 +5819,7 @@ function um({
|
|
|
5805
5819
|
onNumberValidityChange: h
|
|
5806
5820
|
}
|
|
5807
5821
|
),
|
|
5808
|
-
y ? /* @__PURE__ */
|
|
5822
|
+
y ? /* @__PURE__ */ C("span", { id: s, className: Zg(), children: y }) : null,
|
|
5809
5823
|
M
|
|
5810
5824
|
] });
|
|
5811
5825
|
}
|
|
@@ -5815,7 +5829,7 @@ function um({
|
|
|
5815
5829
|
displayIndex: l,
|
|
5816
5830
|
depth: t.depth,
|
|
5817
5831
|
isSelected: c,
|
|
5818
|
-
isReadOnly:
|
|
5832
|
+
isReadOnly: I,
|
|
5819
5833
|
rowLabel: o,
|
|
5820
5834
|
columnLabel: r,
|
|
5821
5835
|
get inputLabelledBy() {
|
|
@@ -5823,7 +5837,7 @@ function um({
|
|
|
5823
5837
|
}
|
|
5824
5838
|
}, k = n.cell(p, N);
|
|
5825
5839
|
return /* @__PURE__ */ te(Re, { children: [
|
|
5826
|
-
P ? /* @__PURE__ */
|
|
5840
|
+
P ? /* @__PURE__ */ C("span", { hidden: !0, id: i, children: o }) : null,
|
|
5827
5841
|
k,
|
|
5828
5842
|
M
|
|
5829
5843
|
] });
|
|
@@ -5851,8 +5865,8 @@ function gm({
|
|
|
5851
5865
|
selectReason: f,
|
|
5852
5866
|
displayIndex: p
|
|
5853
5867
|
}) {
|
|
5854
|
-
const { kitColumns: m, idBase: h, meta:
|
|
5855
|
-
return /* @__PURE__ */
|
|
5868
|
+
const { kitColumns: m, idBase: h, meta: _, density: w, pins: F, rowHeaderColumnId: I } = e, M = t.getVisibleCells();
|
|
5869
|
+
return /* @__PURE__ */ C(
|
|
5856
5870
|
"tr",
|
|
5857
5871
|
{
|
|
5858
5872
|
ref: i,
|
|
@@ -5863,7 +5877,7 @@ function gm({
|
|
|
5863
5877
|
"aria-rowindex": o,
|
|
5864
5878
|
children: M.map((P, N) => {
|
|
5865
5879
|
var Ae;
|
|
5866
|
-
const k = P.column, O = xt(k), q = m.get(k.id), U =
|
|
5880
|
+
const k = P.column, O = xt(k), q = m.get(k.id), U = F.get(k.id) ?? St, v = O === "data" && k.id === I, S = v ? "th" : "td", y = lm(h, n, N), E = O === "data" && _.isMasked(t.id, k.id), z = O === "data" && (q == null ? void 0 : q.edit) !== void 0 && !E && !u && (q.edit.isEditable ? q.edit.isEditable(t.original) : !0), V = v && t.depth > 0, A = [
|
|
5867
5881
|
Ot({
|
|
5868
5882
|
section: "body",
|
|
5869
5883
|
density: w,
|
|
@@ -5882,7 +5896,7 @@ function gm({
|
|
|
5882
5896
|
...V ? { "--dg-depth": String(t.depth) } : null
|
|
5883
5897
|
} : void 0;
|
|
5884
5898
|
let se = null;
|
|
5885
|
-
return O === "select" ? se = /* @__PURE__ */
|
|
5899
|
+
return O === "select" ? se = /* @__PURE__ */ C(
|
|
5886
5900
|
am,
|
|
5887
5901
|
{
|
|
5888
5902
|
model: e,
|
|
@@ -5893,7 +5907,7 @@ function gm({
|
|
|
5893
5907
|
selectState: g,
|
|
5894
5908
|
selectReason: f
|
|
5895
5909
|
}
|
|
5896
|
-
) : O === "expand" ? se = /* @__PURE__ */
|
|
5910
|
+
) : O === "expand" ? se = /* @__PURE__ */ C(
|
|
5897
5911
|
cm,
|
|
5898
5912
|
{
|
|
5899
5913
|
row: t,
|
|
@@ -5903,7 +5917,7 @@ function gm({
|
|
|
5903
5917
|
canExpand: c,
|
|
5904
5918
|
expanded: a
|
|
5905
5919
|
}
|
|
5906
|
-
) : q && (se = /* @__PURE__ */
|
|
5920
|
+
) : q && (se = /* @__PURE__ */ C(
|
|
5907
5921
|
um,
|
|
5908
5922
|
{
|
|
5909
5923
|
model: e,
|
|
@@ -5918,7 +5932,7 @@ function gm({
|
|
|
5918
5932
|
selected: l,
|
|
5919
5933
|
rowReadOnly: u
|
|
5920
5934
|
}
|
|
5921
|
-
)), /* @__PURE__ */
|
|
5935
|
+
)), /* @__PURE__ */ C(
|
|
5922
5936
|
S,
|
|
5923
5937
|
{
|
|
5924
5938
|
scope: v ? "row" : void 0,
|
|
@@ -5944,7 +5958,7 @@ function pm({
|
|
|
5944
5958
|
measureRef: s
|
|
5945
5959
|
}) {
|
|
5946
5960
|
const { t: l } = ge("ui"), { idBase: a, meta: c, renderDetail: u } = e, d = `${gr(a, n)}-n`;
|
|
5947
|
-
return /* @__PURE__ */
|
|
5961
|
+
return /* @__PURE__ */ C("tr", { ref: s, "data-index": i, "aria-rowindex": r, children: /* @__PURE__ */ te(
|
|
5948
5962
|
"td",
|
|
5949
5963
|
{
|
|
5950
5964
|
id: gr(a, n),
|
|
@@ -5952,8 +5966,8 @@ function pm({
|
|
|
5952
5966
|
"aria-labelledby": d,
|
|
5953
5967
|
className: Ot({ section: "detail" }),
|
|
5954
5968
|
children: [
|
|
5955
|
-
/* @__PURE__ */
|
|
5956
|
-
/* @__PURE__ */
|
|
5969
|
+
/* @__PURE__ */ C("span", { hidden: !0, id: d, children: l("dataGrid.expand.detail", { row: c.getRowLabel(t.id) }) }),
|
|
5970
|
+
/* @__PURE__ */ C("div", { className: Ug(), children: u == null ? void 0 : u(t.original) })
|
|
5957
5971
|
]
|
|
5958
5972
|
}
|
|
5959
5973
|
) });
|
|
@@ -5980,14 +5994,14 @@ function hm({
|
|
|
5980
5994
|
// The row group delegates Arrow, Home and End from its row checkboxes and
|
|
5981
5995
|
// expanders (keyboard.ts); it is not itself a control.
|
|
5982
5996
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
5983
|
-
/* @__PURE__ */
|
|
5997
|
+
/* @__PURE__ */ C(
|
|
5984
5998
|
"tbody",
|
|
5985
5999
|
{
|
|
5986
6000
|
ref: t,
|
|
5987
6001
|
onKeyDown: u,
|
|
5988
6002
|
style: p,
|
|
5989
6003
|
children: d ?? /* @__PURE__ */ te(Re, { children: [
|
|
5990
|
-
r && i > 0 ? /* @__PURE__ */
|
|
6004
|
+
r && i > 0 ? /* @__PURE__ */ C("tr", { "aria-hidden": "true", children: /* @__PURE__ */ C(
|
|
5991
6005
|
"td",
|
|
5992
6006
|
{
|
|
5993
6007
|
colSpan: g,
|
|
@@ -5995,44 +6009,44 @@ function hm({
|
|
|
5995
6009
|
}
|
|
5996
6010
|
) }) : null,
|
|
5997
6011
|
o.map(({ index: m, gapBefore: h }) => {
|
|
5998
|
-
const
|
|
5999
|
-
if (!
|
|
6000
|
-
const w = r && h > 0 ? /* @__PURE__ */
|
|
6012
|
+
const _ = n[m];
|
|
6013
|
+
if (!_) return null;
|
|
6014
|
+
const w = r && h > 0 ? /* @__PURE__ */ C("tr", { "aria-hidden": "true", children: /* @__PURE__ */ C(
|
|
6001
6015
|
"td",
|
|
6002
6016
|
{
|
|
6003
6017
|
colSpan: g,
|
|
6004
6018
|
className: Jo({ edge: "gap" }),
|
|
6005
6019
|
style: { "--dg-gap": `${h}px` }
|
|
6006
6020
|
}
|
|
6007
|
-
) }) : null,
|
|
6008
|
-
if (
|
|
6021
|
+
) }) : null, F = r ? m : void 0, I = r ? l : void 0;
|
|
6022
|
+
if (_.kind === "detail")
|
|
6009
6023
|
return /* @__PURE__ */ te(ai, { children: [
|
|
6010
6024
|
w,
|
|
6011
|
-
/* @__PURE__ */
|
|
6025
|
+
/* @__PURE__ */ C(
|
|
6012
6026
|
pm,
|
|
6013
6027
|
{
|
|
6014
6028
|
model: e,
|
|
6015
|
-
row:
|
|
6029
|
+
row: _.row,
|
|
6016
6030
|
itemIndex: m,
|
|
6017
6031
|
columnCount: g,
|
|
6018
6032
|
ariaRowIndex: c(m),
|
|
6019
|
-
virtualIndex:
|
|
6020
|
-
measureRef:
|
|
6033
|
+
virtualIndex: F,
|
|
6034
|
+
measureRef: I
|
|
6021
6035
|
}
|
|
6022
6036
|
)
|
|
6023
|
-
] },
|
|
6024
|
-
const M = n[m + 1], P = (M == null ? void 0 : M.kind) === "detail" && M.row.id ===
|
|
6037
|
+
] }, _.key);
|
|
6038
|
+
const M = n[m + 1], P = (M == null ? void 0 : M.kind) === "detail" && M.row.id === _.row.id && f.has(m + 1) ? gr(e.idBase, m + 1) : void 0, { row: N } = _, k = e.selection.getSelectability(N.id);
|
|
6025
6039
|
return /* @__PURE__ */ te(ai, { children: [
|
|
6026
6040
|
w,
|
|
6027
|
-
/* @__PURE__ */
|
|
6041
|
+
/* @__PURE__ */ C(
|
|
6028
6042
|
mm,
|
|
6029
6043
|
{
|
|
6030
6044
|
model: e,
|
|
6031
6045
|
row: N,
|
|
6032
6046
|
itemIndex: m,
|
|
6033
6047
|
ariaRowIndex: c(m),
|
|
6034
|
-
virtualIndex:
|
|
6035
|
-
measureRef:
|
|
6048
|
+
virtualIndex: F,
|
|
6049
|
+
measureRef: I,
|
|
6036
6050
|
detailMountedId: P,
|
|
6037
6051
|
selected: e.selection.isSelected(N.id),
|
|
6038
6052
|
expanded: N.getIsExpanded(),
|
|
@@ -6044,9 +6058,9 @@ function hm({
|
|
|
6044
6058
|
displayIndex: N.getDisplayIndex()
|
|
6045
6059
|
}
|
|
6046
6060
|
)
|
|
6047
|
-
] },
|
|
6061
|
+
] }, _.key);
|
|
6048
6062
|
}),
|
|
6049
|
-
r && s > 0 ? /* @__PURE__ */
|
|
6063
|
+
r && s > 0 ? /* @__PURE__ */ C("tr", { "aria-hidden": "true", children: /* @__PURE__ */ C(
|
|
6050
6064
|
"td",
|
|
6051
6065
|
{
|
|
6052
6066
|
colSpan: g,
|
|
@@ -6617,14 +6631,14 @@ function Rm({
|
|
|
6617
6631
|
const { t: r } = ge("ui");
|
|
6618
6632
|
let i = null;
|
|
6619
6633
|
const s = () => (i ?? (i = n()), i);
|
|
6620
|
-
return /* @__PURE__ */
|
|
6634
|
+
return /* @__PURE__ */ C("tfoot", { ref: t, children: /* @__PURE__ */ C("tr", { "aria-rowindex": o, children: e.visibleColumns.map((l) => {
|
|
6621
6635
|
const a = xt(l), c = e.kitColumns.get(l.id), u = e.pins.get(l.id) ?? St, d = a === "data" && l.id === e.rowHeaderColumnId, g = d ? "th" : "td";
|
|
6622
6636
|
let f = null;
|
|
6623
6637
|
if (a === "data" && c) {
|
|
6624
6638
|
const p = c.footer;
|
|
6625
6639
|
f = typeof p == "function" ? p(s()) : p, d && f == null && (f = r("dataTable.totalRow"));
|
|
6626
6640
|
}
|
|
6627
|
-
return /* @__PURE__ */
|
|
6641
|
+
return /* @__PURE__ */ C(
|
|
6628
6642
|
g,
|
|
6629
6643
|
{
|
|
6630
6644
|
scope: d ? "row" : void 0,
|
|
@@ -6688,7 +6702,7 @@ function $r({
|
|
|
6688
6702
|
children: [
|
|
6689
6703
|
i,
|
|
6690
6704
|
/* @__PURE__ */ te("div", { className: Fm(), children: [
|
|
6691
|
-
/* @__PURE__ */
|
|
6705
|
+
/* @__PURE__ */ C(
|
|
6692
6706
|
mi,
|
|
6693
6707
|
{
|
|
6694
6708
|
intent: "ghost",
|
|
@@ -6699,7 +6713,7 @@ function $r({
|
|
|
6699
6713
|
children: o
|
|
6700
6714
|
}
|
|
6701
6715
|
),
|
|
6702
|
-
/* @__PURE__ */
|
|
6716
|
+
/* @__PURE__ */ C(
|
|
6703
6717
|
mi,
|
|
6704
6718
|
{
|
|
6705
6719
|
intent: "primary",
|
|
@@ -6737,7 +6751,7 @@ function Pm({
|
|
|
6737
6751
|
n(u.trim() === "" ? null : { type: a, filter: u })
|
|
6738
6752
|
),
|
|
6739
6753
|
children: [
|
|
6740
|
-
s.length > 1 ? /* @__PURE__ */
|
|
6754
|
+
s.length > 1 ? /* @__PURE__ */ C(lo, { label: r("dataTable.numberFilter.operatorLabel"), children: /* @__PURE__ */ C(
|
|
6741
6755
|
br,
|
|
6742
6756
|
{
|
|
6743
6757
|
options: g,
|
|
@@ -6751,7 +6765,7 @@ function Pm({
|
|
|
6751
6765
|
})
|
|
6752
6766
|
}
|
|
6753
6767
|
) }) : null,
|
|
6754
|
-
/* @__PURE__ */
|
|
6768
|
+
/* @__PURE__ */ C(lo, { label: e, children: /* @__PURE__ */ C(
|
|
6755
6769
|
Oa,
|
|
6756
6770
|
{
|
|
6757
6771
|
value: u,
|
|
@@ -6778,9 +6792,9 @@ function Dm({
|
|
|
6778
6792
|
(i == null ? void 0 : i.filter) ?? null
|
|
6779
6793
|
), [g, f] = oe(
|
|
6780
6794
|
(i == null ? void 0 : i.filterTo) ?? null
|
|
6781
|
-
), p = a !== "blank" && a !== "notBlank", m = a === "inRange", h = o.mode ?? "decimal",
|
|
6782
|
-
value:
|
|
6783
|
-
label: r(`dataTable.numberFilter.operators.${
|
|
6795
|
+
), p = a !== "blank" && a !== "notBlank", m = a === "inRange", h = o.mode ?? "decimal", _ = s.map((I) => ({
|
|
6796
|
+
value: I,
|
|
6797
|
+
label: r(`dataTable.numberFilter.operators.${I}`)
|
|
6784
6798
|
}));
|
|
6785
6799
|
function w() {
|
|
6786
6800
|
if (!p) {
|
|
@@ -6801,12 +6815,12 @@ function Dm({
|
|
|
6801
6815
|
}
|
|
6802
6816
|
n(u === null ? null : { type: a, filter: u });
|
|
6803
6817
|
}
|
|
6804
|
-
const
|
|
6818
|
+
const F = (I, M, P, N, k) => /* @__PURE__ */ C(lo, { label: P, className: k, children: /* @__PURE__ */ C(
|
|
6805
6819
|
cs,
|
|
6806
6820
|
{
|
|
6807
6821
|
mode: h,
|
|
6808
6822
|
currency: o.currency,
|
|
6809
|
-
value:
|
|
6823
|
+
value: I,
|
|
6810
6824
|
onChange: M,
|
|
6811
6825
|
min: o.min,
|
|
6812
6826
|
max: o.max,
|
|
@@ -6823,13 +6837,13 @@ function Dm({
|
|
|
6823
6837
|
onClear: () => n(null),
|
|
6824
6838
|
onSubmit: w,
|
|
6825
6839
|
children: [
|
|
6826
|
-
s.length > 1 ? /* @__PURE__ */
|
|
6840
|
+
s.length > 1 ? /* @__PURE__ */ C(lo, { label: r("dataTable.numberFilter.operatorLabel"), children: /* @__PURE__ */ C(
|
|
6827
6841
|
br,
|
|
6828
6842
|
{
|
|
6829
|
-
options:
|
|
6843
|
+
options: _,
|
|
6830
6844
|
value: a,
|
|
6831
|
-
onValueChange: (
|
|
6832
|
-
|
|
6845
|
+
onValueChange: (I) => {
|
|
6846
|
+
I !== "" && c(I);
|
|
6833
6847
|
},
|
|
6834
6848
|
"aria-label": r("dataTable.numberFilter.columnOperator", {
|
|
6835
6849
|
column: e,
|
|
@@ -6837,21 +6851,21 @@ function Dm({
|
|
|
6837
6851
|
})
|
|
6838
6852
|
}
|
|
6839
6853
|
) }) : null,
|
|
6840
|
-
p && !m ?
|
|
6854
|
+
p && !m ? F(
|
|
6841
6855
|
u,
|
|
6842
6856
|
d,
|
|
6843
6857
|
e,
|
|
6844
6858
|
r("dataTable.numberFilter.columnFilter", { column: e })
|
|
6845
6859
|
) : null,
|
|
6846
6860
|
m ? /* @__PURE__ */ te("div", { className: Em(), children: [
|
|
6847
|
-
|
|
6861
|
+
F(
|
|
6848
6862
|
u,
|
|
6849
6863
|
d,
|
|
6850
6864
|
r("dataTable.numberFilter.from"),
|
|
6851
6865
|
r("dataTable.numberFilter.columnFrom", { column: e }),
|
|
6852
6866
|
Xi()
|
|
6853
6867
|
),
|
|
6854
|
-
|
|
6868
|
+
F(
|
|
6855
6869
|
g,
|
|
6856
6870
|
f,
|
|
6857
6871
|
r("dataTable.numberFilter.to"),
|
|
@@ -6885,7 +6899,7 @@ function km({
|
|
|
6885
6899
|
const f = n.filter((p) => s.has(Kn(p.value))).map((p) => p.value);
|
|
6886
6900
|
o(f.length === 0 ? null : { type: "set", values: f });
|
|
6887
6901
|
}
|
|
6888
|
-
return /* @__PURE__ */
|
|
6902
|
+
return /* @__PURE__ */ C(
|
|
6889
6903
|
$r,
|
|
6890
6904
|
{
|
|
6891
6905
|
kind: "select",
|
|
@@ -6893,8 +6907,8 @@ function km({
|
|
|
6893
6907
|
applyLabel: r("dataTable.selectFilter.apply"),
|
|
6894
6908
|
onClear: () => o(null),
|
|
6895
6909
|
onSubmit: g,
|
|
6896
|
-
children: n.length === 0 ? /* @__PURE__ */
|
|
6897
|
-
/* @__PURE__ */
|
|
6910
|
+
children: n.length === 0 ? /* @__PURE__ */ C("p", { className: Om(), children: r("dataTable.agGrid.noRowsToShow") }) : /* @__PURE__ */ te(Re, { children: [
|
|
6911
|
+
/* @__PURE__ */ C(
|
|
6898
6912
|
so,
|
|
6899
6913
|
{
|
|
6900
6914
|
size: "sm",
|
|
@@ -6903,7 +6917,7 @@ function km({
|
|
|
6903
6917
|
onCheckedChange: (f) => l(f === !0 ? new Set(a) : /* @__PURE__ */ new Set())
|
|
6904
6918
|
}
|
|
6905
6919
|
),
|
|
6906
|
-
/* @__PURE__ */
|
|
6920
|
+
/* @__PURE__ */ C(
|
|
6907
6921
|
"div",
|
|
6908
6922
|
{
|
|
6909
6923
|
role: "group",
|
|
@@ -6911,7 +6925,7 @@ function km({
|
|
|
6911
6925
|
className: Mm(),
|
|
6912
6926
|
children: n.map((f) => {
|
|
6913
6927
|
const p = Kn(f.value);
|
|
6914
|
-
return /* @__PURE__ */
|
|
6928
|
+
return /* @__PURE__ */ C(
|
|
6915
6929
|
so,
|
|
6916
6930
|
{
|
|
6917
6931
|
size: "sm",
|
|
@@ -6963,19 +6977,19 @@ function Gm({
|
|
|
6963
6977
|
};
|
|
6964
6978
|
return /* @__PURE__ */ te(qn.Root, { open: a, onOpenChange: c, children: [
|
|
6965
6979
|
/* @__PURE__ */ te("span", { className: zm(), children: [
|
|
6966
|
-
/* @__PURE__ */
|
|
6980
|
+
/* @__PURE__ */ C(qn.Trigger, { asChild: !0, children: /* @__PURE__ */ C(
|
|
6967
6981
|
ls,
|
|
6968
6982
|
{
|
|
6969
6983
|
type: "button",
|
|
6970
6984
|
size: "sm",
|
|
6971
6985
|
intent: "ghost",
|
|
6972
6986
|
className: us,
|
|
6973
|
-
icon: /* @__PURE__ */
|
|
6987
|
+
icon: /* @__PURE__ */ C(Pa, { "aria-hidden": !0 }),
|
|
6974
6988
|
"aria-label": d,
|
|
6975
6989
|
"aria-haspopup": "dialog"
|
|
6976
6990
|
}
|
|
6977
6991
|
) }),
|
|
6978
|
-
u ? /* @__PURE__ */
|
|
6992
|
+
u ? /* @__PURE__ */ C("span", { "aria-hidden": "true", className: Vm() }) : null
|
|
6979
6993
|
] }),
|
|
6980
6994
|
/* @__PURE__ */ te(
|
|
6981
6995
|
qn.Content,
|
|
@@ -6984,12 +6998,12 @@ function Gm({
|
|
|
6984
6998
|
align: "start",
|
|
6985
6999
|
className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
|
|
6986
7000
|
children: [
|
|
6987
|
-
/* @__PURE__ */
|
|
6988
|
-
n.kind === "text" ? /* @__PURE__ */
|
|
7001
|
+
/* @__PURE__ */ C(qn.Heading, { children: g }),
|
|
7002
|
+
n.kind === "text" ? /* @__PURE__ */ C(Pm, { ...f, config: n }) : n.kind === "number" ? /* @__PURE__ */ C(Dm, { ...f, config: n }) : n.kind === "select" ? /* @__PURE__ */ C(km, { ...f, config: n }) : /* @__PURE__ */ C(
|
|
6989
7003
|
sa,
|
|
6990
7004
|
{
|
|
6991
|
-
fallback: /* @__PURE__ */
|
|
6992
|
-
children: /* @__PURE__ */
|
|
7005
|
+
fallback: /* @__PURE__ */ C("div", { className: Tm(), children: /* @__PURE__ */ C(io, { size: "sm" }) }),
|
|
7006
|
+
children: /* @__PURE__ */ C(Am, { ...f, config: n })
|
|
6993
7007
|
}
|
|
6994
7008
|
)
|
|
6995
7009
|
]
|
|
@@ -7016,7 +7030,7 @@ function Lm({
|
|
|
7016
7030
|
},
|
|
7017
7031
|
children: [
|
|
7018
7032
|
t,
|
|
7019
|
-
/* @__PURE__ */
|
|
7033
|
+
/* @__PURE__ */ C(
|
|
7020
7034
|
l,
|
|
7021
7035
|
{
|
|
7022
7036
|
"aria-hidden": "true",
|
|
@@ -7024,8 +7038,8 @@ function Lm({
|
|
|
7024
7038
|
}
|
|
7025
7039
|
),
|
|
7026
7040
|
i !== !1 && s > 0 ? /* @__PURE__ */ te(Re, { children: [
|
|
7027
|
-
/* @__PURE__ */
|
|
7028
|
-
/* @__PURE__ */
|
|
7041
|
+
/* @__PURE__ */ C("span", { "aria-hidden": "true", className: jg(), children: Ct(s + 1, o.language) }),
|
|
7042
|
+
/* @__PURE__ */ C(Bt, { children: n("dataGrid.sort.priority", {
|
|
7029
7043
|
priority: Ct(s + 1, o.language)
|
|
7030
7044
|
}) })
|
|
7031
7045
|
] }) : null
|
|
@@ -7036,68 +7050,69 @@ function Lm({
|
|
|
7036
7050
|
function Nm({
|
|
7037
7051
|
model: e,
|
|
7038
7052
|
header: t,
|
|
7039
|
-
label: n
|
|
7053
|
+
label: n,
|
|
7054
|
+
edgeDivider: o
|
|
7040
7055
|
}) {
|
|
7041
|
-
var
|
|
7042
|
-
const { t:
|
|
7056
|
+
var _;
|
|
7057
|
+
const { t: r } = ge("ui"), i = t.column, s = i.columnDef.minSize ?? Lr, l = i.columnDef.maxSize ?? Nr, a = (w) => Math.min(l, Math.max(s, w)), c = t.getResizeHandler(), u = W(null), d = e.store.get("columnSizing")[i.id] === void 0 && ((_ = e.kitColumns.get(i.id)) == null ? void 0 : _.size) === void 0, [g, f] = oe(null), p = () => {
|
|
7043
7058
|
var I;
|
|
7044
|
-
const
|
|
7045
|
-
return
|
|
7059
|
+
const w = (I = u.current) == null ? void 0 : I.closest("th"), F = w ? Math.round(w.getBoundingClientRect().width) : 0;
|
|
7060
|
+
return F > 0 ? a(F) : null;
|
|
7046
7061
|
};
|
|
7047
7062
|
ds(() => {
|
|
7048
7063
|
var I;
|
|
7049
|
-
if (!
|
|
7050
|
-
|
|
7064
|
+
if (!d) {
|
|
7065
|
+
f(null);
|
|
7051
7066
|
return;
|
|
7052
7067
|
}
|
|
7053
|
-
|
|
7054
|
-
const
|
|
7055
|
-
if (!
|
|
7056
|
-
const
|
|
7057
|
-
return
|
|
7058
|
-
}, [
|
|
7059
|
-
const
|
|
7060
|
-
if (!
|
|
7061
|
-
const
|
|
7062
|
-
|
|
7068
|
+
f(p());
|
|
7069
|
+
const w = (I = u.current) == null ? void 0 : I.closest("th");
|
|
7070
|
+
if (!w || typeof ResizeObserver > "u") return;
|
|
7071
|
+
const F = new ResizeObserver(() => f(p()));
|
|
7072
|
+
return F.observe(w), () => F.disconnect();
|
|
7073
|
+
}, [d, s, l]);
|
|
7074
|
+
const m = d && g !== null ? g : Math.round(i.getSize()), h = () => {
|
|
7075
|
+
if (!d) return;
|
|
7076
|
+
const w = p();
|
|
7077
|
+
w !== null && wr(() => {
|
|
7063
7078
|
e.store.write(
|
|
7064
7079
|
"columnSizing",
|
|
7065
|
-
(
|
|
7080
|
+
(F) => ({ ...F, [i.id]: w }),
|
|
7066
7081
|
"user"
|
|
7067
7082
|
);
|
|
7068
7083
|
});
|
|
7069
7084
|
};
|
|
7070
7085
|
return (
|
|
7071
7086
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
7072
|
-
/* @__PURE__ */
|
|
7087
|
+
/* @__PURE__ */ C(
|
|
7073
7088
|
"div",
|
|
7074
7089
|
{
|
|
7075
7090
|
role: "separator",
|
|
7076
7091
|
"aria-orientation": "vertical",
|
|
7077
7092
|
tabIndex: 0,
|
|
7078
|
-
"aria-label":
|
|
7079
|
-
"aria-valuenow":
|
|
7080
|
-
"aria-valuemin":
|
|
7081
|
-
"aria-valuemax":
|
|
7082
|
-
"aria-valuetext":
|
|
7083
|
-
ref:
|
|
7084
|
-
"data-resizing":
|
|
7085
|
-
className: $g(),
|
|
7086
|
-
onPointerDown:
|
|
7087
|
-
onMouseDown:
|
|
7088
|
-
onTouchStart:
|
|
7089
|
-
onKeyDown: (
|
|
7090
|
-
const
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
+
"aria-label": r("dataGrid.resize.label", { column: n }),
|
|
7094
|
+
"aria-valuenow": m,
|
|
7095
|
+
"aria-valuemin": s,
|
|
7096
|
+
"aria-valuemax": l,
|
|
7097
|
+
"aria-valuetext": r("dataGrid.resize.valueText", { count: m }),
|
|
7098
|
+
ref: u,
|
|
7099
|
+
"data-resizing": i.getIsResizing() ? "" : void 0,
|
|
7100
|
+
className: $g({ edge: o }),
|
|
7101
|
+
onPointerDown: h,
|
|
7102
|
+
onMouseDown: c,
|
|
7103
|
+
onTouchStart: c,
|
|
7104
|
+
onKeyDown: (w) => {
|
|
7105
|
+
const F = nm(
|
|
7106
|
+
w.key,
|
|
7107
|
+
w.shiftKey,
|
|
7093
7108
|
e.direction,
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7109
|
+
m,
|
|
7110
|
+
s,
|
|
7111
|
+
l
|
|
7097
7112
|
);
|
|
7098
|
-
|
|
7113
|
+
F !== null && (w.preventDefault(), e.store.write(
|
|
7099
7114
|
"columnSizing",
|
|
7100
|
-
(I) => ({ ...I, [
|
|
7115
|
+
(I) => ({ ...I, [i.id]: F }),
|
|
7101
7116
|
"user"
|
|
7102
7117
|
));
|
|
7103
7118
|
}
|
|
@@ -7124,7 +7139,7 @@ function Hm({
|
|
|
7124
7139
|
);
|
|
7125
7140
|
if (!o) return null;
|
|
7126
7141
|
const u = i.get("filters")[t.id];
|
|
7127
|
-
return /* @__PURE__ */
|
|
7142
|
+
return /* @__PURE__ */ C(
|
|
7128
7143
|
Gm,
|
|
7129
7144
|
{
|
|
7130
7145
|
columnId: t.id,
|
|
@@ -7166,7 +7181,7 @@ function Zi({
|
|
|
7166
7181
|
}), g = u ? (P) => r(s.id, P) : void 0, f = pn(c);
|
|
7167
7182
|
if (l === "select") {
|
|
7168
7183
|
const { selection: P } = e, N = P.mode === "multiple" && P.scope !== "none", k = `${e.idBase}-select-all`;
|
|
7169
|
-
return /* @__PURE__ */
|
|
7184
|
+
return /* @__PURE__ */ C(
|
|
7170
7185
|
"th",
|
|
7171
7186
|
{
|
|
7172
7187
|
ref: g,
|
|
@@ -7176,8 +7191,8 @@ function Zi({
|
|
|
7176
7191
|
className: d,
|
|
7177
7192
|
style: f,
|
|
7178
7193
|
children: N ? /* @__PURE__ */ te(Re, { children: [
|
|
7179
|
-
/* @__PURE__ */
|
|
7180
|
-
/* @__PURE__ */
|
|
7194
|
+
/* @__PURE__ */ C(Bt, { id: k, children: P.scope === "page" ? i("dataGrid.selection.selectAllOnPage") : i("dataGrid.selection.selectAll") }),
|
|
7195
|
+
/* @__PURE__ */ C(
|
|
7181
7196
|
so,
|
|
7182
7197
|
{
|
|
7183
7198
|
size: "sm",
|
|
@@ -7188,12 +7203,12 @@ function Zi({
|
|
|
7188
7203
|
onCheckedChange: () => P.toggleAll(P.headerState !== !0)
|
|
7189
7204
|
}
|
|
7190
7205
|
)
|
|
7191
|
-
] }) : /* @__PURE__ */
|
|
7206
|
+
] }) : /* @__PURE__ */ C(Bt, { children: i("dataGrid.selection.columnLabel") })
|
|
7192
7207
|
}
|
|
7193
7208
|
);
|
|
7194
7209
|
}
|
|
7195
7210
|
if (l === "expand")
|
|
7196
|
-
return /* @__PURE__ */
|
|
7211
|
+
return /* @__PURE__ */ C(
|
|
7197
7212
|
"th",
|
|
7198
7213
|
{
|
|
7199
7214
|
ref: g,
|
|
@@ -7201,11 +7216,11 @@ function Zi({
|
|
|
7201
7216
|
rowSpan: o,
|
|
7202
7217
|
className: d,
|
|
7203
7218
|
style: f,
|
|
7204
|
-
children: /* @__PURE__ */
|
|
7219
|
+
children: /* @__PURE__ */ C(Bt, { children: i("dataGrid.expand.columnLabel") })
|
|
7205
7220
|
}
|
|
7206
7221
|
);
|
|
7207
7222
|
if (!a) return null;
|
|
7208
|
-
const p = ((M = s.columnDef.meta) == null ? void 0 : M.label) ?? a.id, m = s.getCanSort(), h = a.filter !== void 0 && s.getCanFilter(),
|
|
7223
|
+
const p = ((M = s.columnDef.meta) == null ? void 0 : M.label) ?? a.id, m = s.getCanSort(), h = a.filter !== void 0 && s.getCanFilter(), _ = s.getCanResize(), w = m || h || _ || a.headerTip !== void 0, F = s.getIsSorted(), I = F !== !1 && s.getSortIndex() === 0;
|
|
7209
7224
|
return /* @__PURE__ */ te(
|
|
7210
7225
|
"th",
|
|
7211
7226
|
{
|
|
@@ -7213,17 +7228,25 @@ function Zi({
|
|
|
7213
7228
|
id: mr(e.idBase, s.id),
|
|
7214
7229
|
scope: "col",
|
|
7215
7230
|
rowSpan: o,
|
|
7216
|
-
"aria-sort":
|
|
7231
|
+
"aria-sort": I ? F === "asc" ? "ascending" : "descending" : void 0,
|
|
7217
7232
|
"aria-label": w ? p : a.headerLabel,
|
|
7218
|
-
className:
|
|
7233
|
+
className: _ ? `${d} ${Bg}` : d,
|
|
7219
7234
|
style: f,
|
|
7220
7235
|
children: [
|
|
7221
7236
|
w ? /* @__PURE__ */ te("div", { className: Lg({ align: a.align ?? "start" }), children: [
|
|
7222
|
-
m ? /* @__PURE__ */
|
|
7237
|
+
m ? /* @__PURE__ */ C(Lm, { column: s, children: a.header }) : a.header,
|
|
7223
7238
|
a.headerTip,
|
|
7224
|
-
h ? /* @__PURE__ */
|
|
7239
|
+
h ? /* @__PURE__ */ C(Hm, { model: e, kit: a, label: p }) : null
|
|
7225
7240
|
] }) : a.header,
|
|
7226
|
-
|
|
7241
|
+
_ ? /* @__PURE__ */ C(
|
|
7242
|
+
Nm,
|
|
7243
|
+
{
|
|
7244
|
+
model: e,
|
|
7245
|
+
header: t,
|
|
7246
|
+
label: p,
|
|
7247
|
+
edgeDivider: c.divider === "end"
|
|
7248
|
+
}
|
|
7249
|
+
) : null
|
|
7227
7250
|
]
|
|
7228
7251
|
}
|
|
7229
7252
|
);
|
|
@@ -7238,7 +7261,7 @@ function $m({
|
|
|
7238
7261
|
) ? r : St, l = t.column, a = o.some(
|
|
7239
7262
|
(u) => Do(xt(u.column), e.kitColumns.get(u.column.id))
|
|
7240
7263
|
);
|
|
7241
|
-
return /* @__PURE__ */
|
|
7264
|
+
return /* @__PURE__ */ C(
|
|
7242
7265
|
"th",
|
|
7243
7266
|
{
|
|
7244
7267
|
scope: "colgroup",
|
|
@@ -7263,10 +7286,10 @@ function Bm({
|
|
|
7263
7286
|
ariaRowIndexOf: o
|
|
7264
7287
|
}) {
|
|
7265
7288
|
const r = e.table.getHeaderGroups();
|
|
7266
|
-
return /* @__PURE__ */
|
|
7289
|
+
return /* @__PURE__ */ C("thead", { ref: t, children: r.map((i, s) => /* @__PURE__ */ C("tr", { "aria-rowindex": o(s), children: i.headers.map((l) => {
|
|
7267
7290
|
if (l.rowSpan === 0) return null;
|
|
7268
7291
|
const a = xt(l.column);
|
|
7269
|
-
return l.isPlaceholder ? l.rowSpan > 1 ? /* @__PURE__ */
|
|
7292
|
+
return l.isPlaceholder ? l.rowSpan > 1 ? /* @__PURE__ */ C(
|
|
7270
7293
|
Zi,
|
|
7271
7294
|
{
|
|
7272
7295
|
model: e,
|
|
@@ -7276,21 +7299,21 @@ function Bm({
|
|
|
7276
7299
|
measurePinned: n
|
|
7277
7300
|
},
|
|
7278
7301
|
l.id
|
|
7279
|
-
) : /* @__PURE__ */
|
|
7302
|
+
) : /* @__PURE__ */ C(
|
|
7280
7303
|
"td",
|
|
7281
7304
|
{
|
|
7282
7305
|
colSpan: l.colSpan,
|
|
7283
7306
|
className: Ot({ section: "group", stick: "top" })
|
|
7284
7307
|
},
|
|
7285
7308
|
l.id
|
|
7286
|
-
) : a === "group" || l.subHeaders.length > 0 ? /* @__PURE__ */
|
|
7309
|
+
) : a === "group" || l.subHeaders.length > 0 ? /* @__PURE__ */ C(
|
|
7287
7310
|
$m,
|
|
7288
7311
|
{
|
|
7289
7312
|
model: e,
|
|
7290
7313
|
header: l
|
|
7291
7314
|
},
|
|
7292
7315
|
l.id
|
|
7293
|
-
) : /* @__PURE__ */
|
|
7316
|
+
) : /* @__PURE__ */ C(
|
|
7294
7317
|
Zi,
|
|
7295
7318
|
{
|
|
7296
7319
|
model: e,
|
|
@@ -7316,26 +7339,26 @@ function Km({
|
|
|
7316
7339
|
onPageChange: c,
|
|
7317
7340
|
onPageSizeChange: u
|
|
7318
7341
|
}) {
|
|
7319
|
-
const { t: d, i18n: g } = ge("ui"), f = (
|
|
7342
|
+
const { t: d, i18n: g } = ge("ui"), f = (F) => Ct(F, g.language), p = o < 0 || r < 0, m = p ? t + (i >= n ? 2 : 1) : Math.max(1, o), h = i === 0 ? 0 : t * n + 1, _ = t * n + i, w = i === 0 && !p && r === 0 ? null : p ? d("dataGrid.pagination.rangeUnknown", {
|
|
7320
7343
|
from: f(h),
|
|
7321
|
-
to: f(
|
|
7344
|
+
to: f(_)
|
|
7322
7345
|
}) : d("dataGrid.pagination.range", {
|
|
7323
7346
|
from: f(h),
|
|
7324
|
-
to: f(
|
|
7347
|
+
to: f(_),
|
|
7325
7348
|
total: f(r)
|
|
7326
7349
|
});
|
|
7327
7350
|
return /* @__PURE__ */ te("div", { className: dr({ slot: "pager" }), children: [
|
|
7328
7351
|
/* @__PURE__ */ te("p", { className: Ag(), children: [
|
|
7329
7352
|
w,
|
|
7330
|
-
a ? /* @__PURE__ */
|
|
7353
|
+
a ? /* @__PURE__ */ C(io, { size: "sm", label: d("dataTable.loading") }) : null
|
|
7331
7354
|
] }),
|
|
7332
|
-
/* @__PURE__ */
|
|
7355
|
+
/* @__PURE__ */ C(
|
|
7333
7356
|
za,
|
|
7334
7357
|
{
|
|
7335
7358
|
"aria-label": d("dataGrid.pagination.label", { caption: e }),
|
|
7336
7359
|
totalPages: m,
|
|
7337
7360
|
page: t + 1,
|
|
7338
|
-
onPageChange: (
|
|
7361
|
+
onPageChange: (F) => c(F - 1),
|
|
7339
7362
|
showEndpoints: l && !p,
|
|
7340
7363
|
align: "end",
|
|
7341
7364
|
size: "sm",
|
|
@@ -7396,11 +7419,11 @@ function Um({
|
|
|
7396
7419
|
columnCount: t,
|
|
7397
7420
|
density: n
|
|
7398
7421
|
}) {
|
|
7399
|
-
return /* @__PURE__ */
|
|
7422
|
+
return /* @__PURE__ */ C(Re, { children: Array.from({ length: e }, (o, r) => /* @__PURE__ */ C("tr", { "aria-hidden": "true", children: Array.from({ length: t }, (i, s) => /* @__PURE__ */ C(
|
|
7400
7423
|
"td",
|
|
7401
7424
|
{
|
|
7402
7425
|
className: Ot({ section: "body", density: n }),
|
|
7403
|
-
children: /* @__PURE__ */
|
|
7426
|
+
children: /* @__PURE__ */ C(
|
|
7404
7427
|
Va,
|
|
7405
7428
|
{
|
|
7406
7429
|
variant: "text",
|
|
@@ -7424,7 +7447,7 @@ function Ji({
|
|
|
7424
7447
|
}) {
|
|
7425
7448
|
const { t: i } = ge("ui");
|
|
7426
7449
|
let s;
|
|
7427
|
-
return e === "error" ? s = /* @__PURE__ */
|
|
7450
|
+
return e === "error" ? s = /* @__PURE__ */ C(
|
|
7428
7451
|
Ko,
|
|
7429
7452
|
{
|
|
7430
7453
|
variant: "error",
|
|
@@ -7434,7 +7457,7 @@ function Ji({
|
|
|
7434
7457
|
headingLevel: (o == null ? void 0 : o.headingLevel) ?? 3,
|
|
7435
7458
|
primaryAction: o != null && o.onRetry ? { label: i("dataGrid.error.retry"), onClick: o.onRetry } : void 0
|
|
7436
7459
|
}
|
|
7437
|
-
) : e === "no-results" ? s = /* @__PURE__ */
|
|
7460
|
+
) : e === "no-results" ? s = /* @__PURE__ */ C(
|
|
7438
7461
|
Ko,
|
|
7439
7462
|
{
|
|
7440
7463
|
variant: "no-results",
|
|
@@ -7447,7 +7470,7 @@ function Ji({
|
|
|
7447
7470
|
onClick: r
|
|
7448
7471
|
}
|
|
7449
7472
|
}
|
|
7450
|
-
) : s = /* @__PURE__ */
|
|
7473
|
+
) : s = /* @__PURE__ */ C(
|
|
7451
7474
|
Ko,
|
|
7452
7475
|
{
|
|
7453
7476
|
variant: "first-use",
|
|
@@ -7457,7 +7480,7 @@ function Ji({
|
|
|
7457
7480
|
headingLevel: (n == null ? void 0 : n.headingLevel) ?? 3,
|
|
7458
7481
|
primaryAction: n == null ? void 0 : n.action
|
|
7459
7482
|
}
|
|
7460
|
-
), /* @__PURE__ */
|
|
7483
|
+
), /* @__PURE__ */ C("tr", { children: /* @__PURE__ */ C("td", { colSpan: Math.max(1, t), className: Qg(), children: s }) });
|
|
7461
7484
|
}
|
|
7462
7485
|
function Wm(e) {
|
|
7463
7486
|
try {
|
|
@@ -7848,14 +7871,14 @@ function ts(e, t) {
|
|
|
7848
7871
|
getColumns() {
|
|
7849
7872
|
const s = e(), { model: l, store: a, privacyMode: c } = s, u = s.getEffectiveVisibility(), d = a.get("columnVisibility"), g = a.get("columnSizing");
|
|
7850
7873
|
return r().map((f, p) => {
|
|
7851
|
-
var
|
|
7874
|
+
var F;
|
|
7852
7875
|
const m = l.kitColumns.get(f.id);
|
|
7853
7876
|
if (!m) throw new Error(`[DataGrid] unknown column ${f.id}`);
|
|
7854
7877
|
const h = st(
|
|
7855
7878
|
m,
|
|
7856
7879
|
l.defaultRowHeaderId,
|
|
7857
7880
|
c
|
|
7858
|
-
),
|
|
7881
|
+
), _ = Ne(m, c), w = s.fixedLayout ? g[f.id] ?? m.size ?? null : null;
|
|
7859
7882
|
return {
|
|
7860
7883
|
id: f.id,
|
|
7861
7884
|
label: gn(m),
|
|
@@ -7867,10 +7890,10 @@ function ts(e, t) {
|
|
|
7867
7890
|
width: w,
|
|
7868
7891
|
index: p,
|
|
7869
7892
|
groupId: l.groupOf.get(f.id) ?? null,
|
|
7870
|
-
filterKind: wo(m) ? ((
|
|
7871
|
-
sortable: !
|
|
7893
|
+
filterKind: wo(m) ? ((F = m.filter) == null ? void 0 : F.kind) ?? null : null,
|
|
7894
|
+
sortable: !_ && mn(m),
|
|
7872
7895
|
userTouched: f.id in d,
|
|
7873
|
-
masked:
|
|
7896
|
+
masked: _
|
|
7874
7897
|
};
|
|
7875
7898
|
});
|
|
7876
7899
|
},
|
|
@@ -8359,22 +8382,22 @@ function Mp(e) {
|
|
|
8359
8382
|
getRowSelectability: d,
|
|
8360
8383
|
rowCount: g,
|
|
8361
8384
|
gridId: f
|
|
8362
|
-
} = e, p = e.dataMode ?? "client", m = p === "server", h = e.selectionMode ?? "none",
|
|
8385
|
+
} = e, p = e.dataMode ?? "client", m = p === "server", h = e.selectionMode ?? "none", _ = !!(a || c), w = e.privacyMode ?? !1, F = e.columnResizing ?? !1, I = !!e.pagination, M = typeof e.pagination == "object" ? e.pagination : void 0, P = e.printing ?? !1, N = e.multiSort ?? !0, k = N ? Math.max(1, e.maxSortLevels ?? Ha) : 1, O = e.expandMode ?? "multiple", q = e.rangeSelection ?? h === "multiple", U = f !== void 0 && f !== "" && e.persistColumnState !== !1, v = e.responsiveColumns ?? vp(r), S = e.focusedColumnId ?? null, y = ne(
|
|
8363
8386
|
() => Dg({
|
|
8364
8387
|
columns: r,
|
|
8365
8388
|
columnGroups: i,
|
|
8366
8389
|
selectionMode: h,
|
|
8367
|
-
expandable:
|
|
8390
|
+
expandable: _,
|
|
8368
8391
|
privacyMode: w,
|
|
8369
|
-
columnResizing:
|
|
8392
|
+
columnResizing: F
|
|
8370
8393
|
}),
|
|
8371
8394
|
[
|
|
8372
8395
|
r,
|
|
8373
8396
|
i,
|
|
8374
8397
|
h,
|
|
8375
|
-
|
|
8398
|
+
_,
|
|
8376
8399
|
w,
|
|
8377
|
-
|
|
8400
|
+
F
|
|
8378
8401
|
]
|
|
8379
8402
|
), E = ne(() => [...y.kitColumns.values()], [y]), z = ne(
|
|
8380
8403
|
() => E.filter((b) => Ne(b, w)).map((b) => b.id),
|
|
@@ -8398,8 +8421,8 @@ function Mp(e) {
|
|
|
8398
8421
|
t
|
|
8399
8422
|
]
|
|
8400
8423
|
), J = (b) => {
|
|
8401
|
-
const
|
|
8402
|
-
if (
|
|
8424
|
+
const R = A.get(b);
|
|
8425
|
+
if (R) return R;
|
|
8403
8426
|
const G = V.get(b);
|
|
8404
8427
|
let L = Ym(
|
|
8405
8428
|
G && d ? d(G.original) : void 0
|
|
@@ -8419,10 +8442,10 @@ function Mp(e) {
|
|
|
8419
8442
|
}, se = ne(() => {
|
|
8420
8443
|
if (h === "none") return [];
|
|
8421
8444
|
const b = [];
|
|
8422
|
-
for (const
|
|
8423
|
-
J(
|
|
8445
|
+
for (const R of V.keys())
|
|
8446
|
+
J(R).state === "locked" && b.push(R);
|
|
8424
8447
|
return b;
|
|
8425
|
-
}, [V, A, h]), Ae = (b) => b.filter((
|
|
8448
|
+
}, [V, A, h]), Ae = (b) => b.filter((R) => V.has(R) ? J(R).state === "selectable" : !0), at = () => ({
|
|
8426
8449
|
columnVisibility: { ...e.defaultColumnVisibility ?? {} },
|
|
8427
8450
|
columnPinning: e.defaultColumnPinning ? {
|
|
8428
8451
|
start: [...e.defaultColumnPinning.start],
|
|
@@ -8460,7 +8483,7 @@ function Mp(e) {
|
|
|
8460
8483
|
groupOf: y.groupOf,
|
|
8461
8484
|
defaultRowHeaderId: y.defaultRowHeaderId,
|
|
8462
8485
|
privacyMode: w
|
|
8463
|
-
}) : null,
|
|
8486
|
+
}) : null, R = at(), G = M == null ? void 0 : M.pageSizeOptions, L = G && G.length > 0 && !G.includes(pi) ? G[0] : pi, B = e.page ?? e.defaultPage, K = {
|
|
8464
8487
|
sorting: (e.sorting ?? e.defaultSorting ?? []).map(
|
|
8465
8488
|
(Se) => ({
|
|
8466
8489
|
...Se
|
|
@@ -8473,10 +8496,10 @@ function Mp(e) {
|
|
|
8473
8496
|
e.rowSelection ?? e.defaultRowSelection ?? []
|
|
8474
8497
|
),
|
|
8475
8498
|
expanded: [...e.expanded ?? e.defaultExpanded ?? []],
|
|
8476
|
-
columnVisibility: { ...
|
|
8477
|
-
columnPinning:
|
|
8478
|
-
columnSizing:
|
|
8479
|
-
columnOrder:
|
|
8499
|
+
columnVisibility: { ...R.columnVisibility },
|
|
8500
|
+
columnPinning: R.columnPinning,
|
|
8501
|
+
columnSizing: R.columnSizing,
|
|
8502
|
+
columnOrder: R.columnOrder
|
|
8480
8503
|
}, Z = [];
|
|
8481
8504
|
e.columnVisibility === void 0 && (b != null && b.columnVisibility) && (K.columnVisibility = b.columnVisibility, Z.push("columnVisibility")), e.columnPinning === void 0 && (b != null && b.columnPinning) && (K.columnPinning = b.columnPinning, Z.push("columnPinning")), e.columnSizing === void 0 && (b != null && b.columnSizing) && (K.columnSizing = b.columnSizing, Z.push("columnSizing")), e.columnOrder === void 0 && (b != null && b.columnOrder) && (K.columnOrder = b.columnOrder, Z.push("columnOrder")), e.columnVisibility && (K.columnVisibility = { ...e.columnVisibility }), e.columnPinning && (K.columnPinning = {
|
|
8482
8505
|
start: [...e.columnPinning.start],
|
|
@@ -8536,11 +8559,11 @@ function Mp(e) {
|
|
|
8536
8559
|
S
|
|
8537
8560
|
]
|
|
8538
8561
|
), Xt = (b) => {
|
|
8539
|
-
const
|
|
8540
|
-
return
|
|
8562
|
+
const R = y.kitColumns.get(b);
|
|
8563
|
+
return R !== void 0 && mn(R) && !Ne(R, w);
|
|
8541
8564
|
}, Zt = (b) => {
|
|
8542
|
-
const
|
|
8543
|
-
return
|
|
8565
|
+
const R = y.kitColumns.get(b);
|
|
8566
|
+
return R !== void 0 && wo(R) && !Ne(R, w);
|
|
8544
8567
|
}, Pt = ne(
|
|
8545
8568
|
() => hi(Cn, Xt),
|
|
8546
8569
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -8549,7 +8572,7 @@ function Mp(e) {
|
|
|
8549
8572
|
() => wi(ct, Zt),
|
|
8550
8573
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
8551
8574
|
[ct, y, w]
|
|
8552
|
-
), On =
|
|
8575
|
+
), On = I && !(P && !m), Yt = ne(
|
|
8553
8576
|
() => On ? { pageIndex: Qt.pageIndex, pageSize: Qt.pageSize } : { pageIndex: 0, pageSize: Number.POSITIVE_INFINITY },
|
|
8554
8577
|
[On, Qt]
|
|
8555
8578
|
), ut = ne(
|
|
@@ -8557,7 +8580,7 @@ function Mp(e) {
|
|
|
8557
8580
|
[_n]
|
|
8558
8581
|
), Dt = ne(() => yi(xn), [xn]), Jt = ne(() => {
|
|
8559
8582
|
const b = { ...Ve };
|
|
8560
|
-
for (const
|
|
8583
|
+
for (const R of y.utilityIds) b[R] = !0;
|
|
8561
8584
|
return b;
|
|
8562
8585
|
}, [Ve, y]), en = ne(
|
|
8563
8586
|
() => vi(ze, y.utilityIds),
|
|
@@ -8575,7 +8598,7 @@ function Mp(e) {
|
|
|
8575
8598
|
model: y,
|
|
8576
8599
|
expandMode: O,
|
|
8577
8600
|
maxSortLevels: k,
|
|
8578
|
-
paginated:
|
|
8601
|
+
paginated: I,
|
|
8579
8602
|
rowIndex: V,
|
|
8580
8603
|
getSelectability: J,
|
|
8581
8604
|
getExpandableIds: () => []
|
|
@@ -8587,88 +8610,88 @@ function Mp(e) {
|
|
|
8587
8610
|
model: y,
|
|
8588
8611
|
expandMode: O,
|
|
8589
8612
|
maxSortLevels: k,
|
|
8590
|
-
paginated:
|
|
8613
|
+
paginated: I,
|
|
8591
8614
|
rowIndex: V,
|
|
8592
8615
|
getSelectability: J,
|
|
8593
8616
|
getExpandableIds: () => []
|
|
8594
8617
|
};
|
|
8595
8618
|
const [Pn] = oe(() => ({
|
|
8596
8619
|
onSortingChange: (b) => {
|
|
8597
|
-
const
|
|
8620
|
+
const R = be.current, G = hi(
|
|
8598
8621
|
T.get("sorting"),
|
|
8599
|
-
|
|
8622
|
+
R.isEffectiveSortColumn
|
|
8600
8623
|
), L = ue(b, G);
|
|
8601
8624
|
T.write(
|
|
8602
8625
|
"sorting",
|
|
8603
|
-
Ka(L).slice(0,
|
|
8626
|
+
Ka(L).slice(0, R.maxSortLevels),
|
|
8604
8627
|
"user"
|
|
8605
8628
|
);
|
|
8606
8629
|
},
|
|
8607
8630
|
onColumnFiltersChange: (b) => {
|
|
8608
|
-
const
|
|
8631
|
+
const R = be.current, G = T.get("filters"), L = wi(G, R.isEvaluatedFilterKey), B = ue(b, L);
|
|
8609
8632
|
T.write(
|
|
8610
8633
|
"filters",
|
|
8611
|
-
qa(G, B,
|
|
8634
|
+
qa(G, B, R.isEvaluatedFilterKey),
|
|
8612
8635
|
"user"
|
|
8613
8636
|
);
|
|
8614
8637
|
},
|
|
8615
8638
|
onGlobalFilterChange: (b) => {
|
|
8616
|
-
const
|
|
8617
|
-
T.write("quickFilter", typeof
|
|
8639
|
+
const R = ue(b, T.get("quickFilter"));
|
|
8640
|
+
T.write("quickFilter", typeof R == "string" ? R : "", "user");
|
|
8618
8641
|
},
|
|
8619
8642
|
onPaginationChange: (b) => {
|
|
8620
8643
|
if (!be.current.paginated) return;
|
|
8621
|
-
const
|
|
8644
|
+
const R = ue(b, T.get("page"));
|
|
8622
8645
|
T.write(
|
|
8623
8646
|
"page",
|
|
8624
|
-
{ pageIndex:
|
|
8647
|
+
{ pageIndex: R.pageIndex, pageSize: R.pageSize },
|
|
8625
8648
|
"user"
|
|
8626
8649
|
);
|
|
8627
8650
|
},
|
|
8628
8651
|
onRowSelectionChange: (b) => {
|
|
8629
|
-
const
|
|
8652
|
+
const R = be.current, G = Si(T.get("rowSelection")), L = Ua(
|
|
8630
8653
|
ue(b, G)
|
|
8631
8654
|
).filter(
|
|
8632
|
-
(B) => !
|
|
8655
|
+
(B) => !R.rowIndex.has(B) || R.getSelectability(B).state === "selectable"
|
|
8633
8656
|
);
|
|
8634
8657
|
T.write("rowSelection", L, "user");
|
|
8635
8658
|
},
|
|
8636
8659
|
onExpandedChange: (b) => {
|
|
8637
8660
|
var K, Z;
|
|
8638
|
-
const
|
|
8661
|
+
const R = be.current, G = T.get("expanded"), L = Wa(
|
|
8639
8662
|
ue(b, yi(G)),
|
|
8640
|
-
|
|
8663
|
+
R.getExpandableIds
|
|
8641
8664
|
);
|
|
8642
8665
|
let B = L;
|
|
8643
|
-
if (
|
|
8666
|
+
if (R.expandMode === "single") {
|
|
8644
8667
|
const Q = L.filter((Se) => !G.includes(Se));
|
|
8645
8668
|
if (Q.length > 0) {
|
|
8646
8669
|
const Se = Q[Q.length - 1], wt = /* @__PURE__ */ new Set();
|
|
8647
|
-
let ye = ((K =
|
|
8670
|
+
let ye = ((K = R.rowIndex.get(Se)) == null ? void 0 : K.parentId) ?? null;
|
|
8648
8671
|
for (; ye !== null; )
|
|
8649
|
-
wt.add(ye), ye = ((Z =
|
|
8672
|
+
wt.add(ye), ye = ((Z = R.rowIndex.get(ye)) == null ? void 0 : Z.parentId) ?? null;
|
|
8650
8673
|
B = [...L.filter((Gn) => wt.has(Gn)), Se];
|
|
8651
8674
|
}
|
|
8652
8675
|
}
|
|
8653
8676
|
T.write("expanded", B, "user");
|
|
8654
8677
|
},
|
|
8655
8678
|
onColumnVisibilityChange: (b) => {
|
|
8656
|
-
const
|
|
8679
|
+
const R = be.current, G = R.effectiveVisibility, L = ue(b, { ...G });
|
|
8657
8680
|
T.write(
|
|
8658
8681
|
"columnVisibility",
|
|
8659
8682
|
Rp(
|
|
8660
8683
|
T.get("columnVisibility"),
|
|
8661
8684
|
G,
|
|
8662
8685
|
L,
|
|
8663
|
-
(B) =>
|
|
8686
|
+
(B) => R.model.kitColumns.has(B)
|
|
8664
8687
|
),
|
|
8665
8688
|
"user"
|
|
8666
8689
|
);
|
|
8667
8690
|
},
|
|
8668
8691
|
onColumnPinningChange: (b) => {
|
|
8669
|
-
const
|
|
8692
|
+
const R = be.current, G = vi(
|
|
8670
8693
|
T.get("columnPinning"),
|
|
8671
|
-
|
|
8694
|
+
R.model.utilityIds
|
|
8672
8695
|
), L = Qa(
|
|
8673
8696
|
ue(b, G),
|
|
8674
8697
|
De
|
|
@@ -8676,9 +8699,9 @@ function Mp(e) {
|
|
|
8676
8699
|
T.write("columnPinning", L, "user");
|
|
8677
8700
|
},
|
|
8678
8701
|
onColumnSizingChange: (b) => {
|
|
8679
|
-
const
|
|
8702
|
+
const R = be.current, G = ue(b, { ...T.get("columnSizing") }), L = {};
|
|
8680
8703
|
for (const [B, K] of Object.entries(G)) {
|
|
8681
|
-
const Z =
|
|
8704
|
+
const Z = R.model.kitColumns.get(B);
|
|
8682
8705
|
if (!Z) continue;
|
|
8683
8706
|
const Q = Oo(Z, K);
|
|
8684
8707
|
Q !== null && (L[B] = Q);
|
|
@@ -8686,11 +8709,11 @@ function Mp(e) {
|
|
|
8686
8709
|
T.write("columnSizing", L, "user");
|
|
8687
8710
|
},
|
|
8688
8711
|
onColumnOrderChange: (b) => {
|
|
8689
|
-
const
|
|
8690
|
-
...
|
|
8712
|
+
const R = be.current, G = [
|
|
8713
|
+
...R.model.utilityIds,
|
|
8691
8714
|
...ur(
|
|
8692
8715
|
T.get("columnOrder"),
|
|
8693
|
-
|
|
8716
|
+
R.model.declaredOrder
|
|
8694
8717
|
)
|
|
8695
8718
|
];
|
|
8696
8719
|
T.write(
|
|
@@ -8700,7 +8723,7 @@ function Mp(e) {
|
|
|
8700
8723
|
);
|
|
8701
8724
|
}
|
|
8702
8725
|
})), dt = W(null), tn = (b) => E.some(
|
|
8703
|
-
(
|
|
8726
|
+
(R) => Jn(R, b, w)
|
|
8704
8727
|
), Dn = () => pr(
|
|
8705
8728
|
y,
|
|
8706
8729
|
T.get("columnOrder"),
|
|
@@ -8710,9 +8733,9 @@ function Mp(e) {
|
|
|
8710
8733
|
locale: o,
|
|
8711
8734
|
getRowLabel: (b) => {
|
|
8712
8735
|
var Se, wt;
|
|
8713
|
-
const
|
|
8714
|
-
let L =
|
|
8715
|
-
if (G &&
|
|
8736
|
+
const R = V.get(b), G = dt.current;
|
|
8737
|
+
let L = R ? R.index + 1 : 1;
|
|
8738
|
+
if (G && R)
|
|
8716
8739
|
try {
|
|
8717
8740
|
const ye = G.getRow(b, !0).getDisplayIndex();
|
|
8718
8741
|
ye >= 0 && (L = ye + 1);
|
|
@@ -8721,9 +8744,9 @@ function Mp(e) {
|
|
|
8721
8744
|
const B = t("dataGrid.rowFallback", {
|
|
8722
8745
|
number: Ct(L, o)
|
|
8723
8746
|
});
|
|
8724
|
-
if (!
|
|
8747
|
+
if (!R || w && !e.rowLabelPrivacySafe && tn(R.original))
|
|
8725
8748
|
return B;
|
|
8726
|
-
const K = (Se = e.getRowLabel) == null ? void 0 : Se.call(e,
|
|
8749
|
+
const K = (Se = e.getRowLabel) == null ? void 0 : Se.call(e, R.original);
|
|
8727
8750
|
if (K !== void 0 && K.trim() !== "") return K;
|
|
8728
8751
|
const Z = Eg(
|
|
8729
8752
|
y.kitColumns,
|
|
@@ -8731,7 +8754,7 @@ function Mp(e) {
|
|
|
8731
8754
|
), Q = Z ? y.kitColumns.get(Z) : void 0;
|
|
8732
8755
|
if (Q) {
|
|
8733
8756
|
const ye = Ep(
|
|
8734
|
-
Q.exportValue ? Q.exportValue(
|
|
8757
|
+
Q.exportValue ? Q.exportValue(R.original) : (wt = Q.value) == null ? void 0 : wt.call(Q, R.original)
|
|
8735
8758
|
);
|
|
8736
8759
|
if (ye !== "") return ye;
|
|
8737
8760
|
}
|
|
@@ -8740,20 +8763,20 @@ function Mp(e) {
|
|
|
8740
8763
|
getSelectability: J,
|
|
8741
8764
|
isRowReadOnly: (b) => {
|
|
8742
8765
|
var G;
|
|
8743
|
-
const
|
|
8744
|
-
return
|
|
8766
|
+
const R = V.get(b);
|
|
8767
|
+
return R !== void 0 && ((G = e.isRowReadOnly) == null ? void 0 : G.call(e, R.original)) === !0;
|
|
8745
8768
|
},
|
|
8746
|
-
isMasked: (b,
|
|
8747
|
-
const G = V.get(b), L = y.kitColumns.get(
|
|
8769
|
+
isMasked: (b, R) => {
|
|
8770
|
+
const G = V.get(b), L = y.kitColumns.get(R);
|
|
8748
8771
|
return G !== void 0 && L !== void 0 && Jn(L, G.original, w);
|
|
8749
8772
|
},
|
|
8750
8773
|
isRowMasked: (b) => {
|
|
8751
|
-
const
|
|
8752
|
-
return w && !e.hostTextPrivacySafe &&
|
|
8774
|
+
const R = V.get(b);
|
|
8775
|
+
return w && !e.hostTextPrivacySafe && R !== void 0 && tn(R.original);
|
|
8753
8776
|
},
|
|
8754
|
-
getSearchValue: (b,
|
|
8777
|
+
getSearchValue: (b, R) => {
|
|
8755
8778
|
var B;
|
|
8756
|
-
const G = V.get(b), L = y.kitColumns.get(
|
|
8779
|
+
const G = V.get(b), L = y.kitColumns.get(R);
|
|
8757
8780
|
return G === void 0 || L === void 0 ? null : L.exportValue ? L.exportValue(G.original) : (B = L.value) == null ? void 0 : B.call(L, G.original);
|
|
8758
8781
|
}
|
|
8759
8782
|
}, re = gg({
|
|
@@ -8797,33 +8820,33 @@ function Mp(e) {
|
|
|
8797
8820
|
// Ranges go through the kit's own anchor (selection.ts), never v9's
|
|
8798
8821
|
// `@internal` `_lastSelectedRowId` (design R11).
|
|
8799
8822
|
enableRowRangeSelection: !1,
|
|
8800
|
-
enableColumnResizing:
|
|
8823
|
+
enableColumnResizing: F,
|
|
8801
8824
|
columnResizeMode: "onEnd",
|
|
8802
8825
|
columnResizeDirection: e.direction,
|
|
8803
8826
|
globalFilterFn: "kitQuick",
|
|
8804
8827
|
getColumnCanGlobalFilter: (b) => {
|
|
8805
|
-
const
|
|
8806
|
-
return
|
|
8828
|
+
const R = y.kitColumns.get(b.id);
|
|
8829
|
+
return R !== void 0 && bo(R) && !Ne(R, w);
|
|
8807
8830
|
},
|
|
8808
8831
|
meta: kn
|
|
8809
8832
|
});
|
|
8810
8833
|
dt.current = re, be.current.getExpandableIds = () => re.getCoreRowModel().flatRows.filter((b) => b.getCanExpand()).map((b) => b.id);
|
|
8811
8834
|
const nn = () => m ? g === -1 ? -1 : g ?? s.length : re.getFilteredRowModel().rows.length, Te = () => {
|
|
8812
|
-
if (!
|
|
8835
|
+
if (!I) return 1;
|
|
8813
8836
|
const b = T.get("page").pageSize;
|
|
8814
8837
|
if (m) {
|
|
8815
8838
|
if (g === -1) return -1;
|
|
8816
|
-
const
|
|
8817
|
-
return Math.max(1, Math.ceil(
|
|
8839
|
+
const R = g ?? s.length;
|
|
8840
|
+
return Math.max(1, Math.ceil(R / b));
|
|
8818
8841
|
}
|
|
8819
8842
|
return Math.max(
|
|
8820
8843
|
1,
|
|
8821
8844
|
Math.ceil(re.getFilteredRowModel().rows.length / b)
|
|
8822
8845
|
);
|
|
8823
|
-
}, Ye = () => !
|
|
8846
|
+
}, Ye = () => !I || m && (g === -1 || g === void 0) ? null : Te(), At = es({
|
|
8824
8847
|
selectionMode: h,
|
|
8825
8848
|
selectAllScope: e.selectAllScope,
|
|
8826
|
-
paginated:
|
|
8849
|
+
paginated: I,
|
|
8827
8850
|
dataMode: p
|
|
8828
8851
|
}), [ft] = oe(() => ({ current: null })), Be = {
|
|
8829
8852
|
store: T,
|
|
@@ -8847,9 +8870,9 @@ function Mp(e) {
|
|
|
8847
8870
|
quickFilter: E.some(
|
|
8848
8871
|
(b) => bo(b) && !Ne(b, w)
|
|
8849
8872
|
),
|
|
8850
|
-
pagination:
|
|
8851
|
-
expansion:
|
|
8852
|
-
columnResizing:
|
|
8873
|
+
pagination: I,
|
|
8874
|
+
expansion: _,
|
|
8875
|
+
columnResizing: F,
|
|
8853
8876
|
privacyMode: w
|
|
8854
8877
|
}, zt = re.getRowModel().rows, on = c ? zt.filter((b) => b.getIsExpanded()).length : 0, gt = zt.length + on, An = !P && (e.virtualization ?? "auto") !== "off" && gt > fs, Go = {
|
|
8855
8878
|
dataMode: p,
|
|
@@ -8864,9 +8887,9 @@ function Mp(e) {
|
|
|
8864
8887
|
virtualised: An,
|
|
8865
8888
|
headerRowCount: re.getHeaderGroups().length
|
|
8866
8889
|
}, zn = (b) => {
|
|
8867
|
-
var
|
|
8868
|
-
return Fn[b] !== void 0 || ((
|
|
8869
|
-
}, Vt = E.some((b) => b.size !== void 0) ||
|
|
8890
|
+
var R;
|
|
8891
|
+
return Fn[b] !== void 0 || ((R = y.kitColumns.get(b)) == null ? void 0 : R.size) !== void 0;
|
|
8892
|
+
}, Vt = E.some((b) => b.size !== void 0) || F || An, Ee = [...y.utilityIds, ...ze.start].filter(
|
|
8870
8893
|
(b) => Jt[b] !== !1
|
|
8871
8894
|
), Me = ze.end.filter(
|
|
8872
8895
|
(b) => Jt[b] !== !1
|
|
@@ -8881,7 +8904,7 @@ function Mp(e) {
|
|
|
8881
8904
|
selectedRowIds: T.getReportedSelection(),
|
|
8882
8905
|
scope: m ? "current-page" : "all-filtered"
|
|
8883
8906
|
}), Ke = () => {
|
|
8884
|
-
const
|
|
8907
|
+
const R = pr(
|
|
8885
8908
|
y,
|
|
8886
8909
|
T.get("columnOrder"),
|
|
8887
8910
|
T.get("columnPinning")
|
|
@@ -8898,7 +8921,7 @@ function Mp(e) {
|
|
|
8898
8921
|
};
|
|
8899
8922
|
return B(re.getPrePaginatedRowModel().rows), Zm({
|
|
8900
8923
|
scope: m ? "current-page" : "all-filtered",
|
|
8901
|
-
columns:
|
|
8924
|
+
columns: R,
|
|
8902
8925
|
rows: G,
|
|
8903
8926
|
isMasked: (K, Z) => {
|
|
8904
8927
|
const Q = y.kitColumns.get(Z);
|
|
@@ -8917,16 +8940,16 @@ function Mp(e) {
|
|
|
8917
8940
|
/* @__PURE__ */ new WeakMap()
|
|
8918
8941
|
), tt = (b) => {
|
|
8919
8942
|
var Z;
|
|
8920
|
-
const
|
|
8921
|
-
if (!
|
|
8922
|
-
const G = Hr(
|
|
8923
|
-
if (((Z =
|
|
8943
|
+
const R = y.kitColumns.get(b);
|
|
8944
|
+
if (!R) return { hiddenByPrivacy: !1 };
|
|
8945
|
+
const G = Hr(R, w);
|
|
8946
|
+
if (((Z = R.filter) == null ? void 0 : Z.kind) !== "select" || G)
|
|
8924
8947
|
return { hiddenByPrivacy: G };
|
|
8925
8948
|
const L = re.getCoreRowModel().flatRows;
|
|
8926
8949
|
let B = rn.current.get(L);
|
|
8927
8950
|
B || (B = /* @__PURE__ */ new Map(), rn.current.set(L, B));
|
|
8928
8951
|
let K = B.get(b);
|
|
8929
|
-
return K || (K = zl(
|
|
8952
|
+
return K || (K = zl(R, L, p, o), B.set(b, K)), { hiddenByPrivacy: G, filterOptions: K };
|
|
8930
8953
|
}, mt = W(null), pt = W(null), Vn = {
|
|
8931
8954
|
store: T,
|
|
8932
8955
|
model: y,
|
|
@@ -8934,7 +8957,7 @@ function Mp(e) {
|
|
|
8934
8957
|
anchor: ft,
|
|
8935
8958
|
features: To,
|
|
8936
8959
|
privacyMode: w,
|
|
8937
|
-
paginated:
|
|
8960
|
+
paginated: I,
|
|
8938
8961
|
maxSortLevels: k,
|
|
8939
8962
|
expandMode: O,
|
|
8940
8963
|
fixedLayout: Vt,
|
|
@@ -8946,16 +8969,16 @@ function Mp(e) {
|
|
|
8946
8969
|
getRowCount: nn,
|
|
8947
8970
|
getRowIds: () => re.getRowsInDisplayOrder().map((b) => b.id),
|
|
8948
8971
|
canExpand: (b) => {
|
|
8949
|
-
const
|
|
8950
|
-
return
|
|
8972
|
+
const R = V.get(b);
|
|
8973
|
+
return R ? u ? u(R.original) : !!c || R.hasChildren : null;
|
|
8951
8974
|
},
|
|
8952
8975
|
getAncestorIds: (b) => {
|
|
8953
8976
|
var L, B;
|
|
8954
|
-
const
|
|
8977
|
+
const R = [];
|
|
8955
8978
|
let G = ((L = V.get(b)) == null ? void 0 : L.parentId) ?? null;
|
|
8956
8979
|
for (; G !== null; )
|
|
8957
|
-
|
|
8958
|
-
return
|
|
8980
|
+
R.unshift(G), G = ((B = V.get(G)) == null ? void 0 : B.parentId) ?? null;
|
|
8981
|
+
return R;
|
|
8959
8982
|
},
|
|
8960
8983
|
isKnownRowId: (b) => V.has(b),
|
|
8961
8984
|
getColumnDefaults: at,
|
|
@@ -8975,8 +8998,8 @@ function Mp(e) {
|
|
|
8975
8998
|
userHandle: ts(() => xe.current, "user"),
|
|
8976
8999
|
getExportSnapshot: () => xe.current.getExportSnapshot(),
|
|
8977
9000
|
getFilterLabel: (b) => {
|
|
8978
|
-
var
|
|
8979
|
-
return (
|
|
9001
|
+
var R;
|
|
9002
|
+
return (R = $e.current.filterLabels) == null ? void 0 : R[b];
|
|
8980
9003
|
},
|
|
8981
9004
|
getCaption: () => $e.current.caption ?? "",
|
|
8982
9005
|
getColumnToolbarInfo: (b) => xe.current.getColumnToolbarInfo(b)
|
|
@@ -8992,7 +9015,7 @@ function Mp(e) {
|
|
|
8992
9015
|
keepExpandedId: (B) => b.isKnownRowId(B),
|
|
8993
9016
|
pageCount: Ye()
|
|
8994
9017
|
});
|
|
8995
|
-
const
|
|
9018
|
+
const R = ve.current, G = R.mounted && (R.rows !== s || R.rowCount !== g);
|
|
8996
9019
|
let L = !1;
|
|
8997
9020
|
if (!m) {
|
|
8998
9021
|
const B = re.getFilteredRowModel(), K = ht.current;
|
|
@@ -9006,10 +9029,10 @@ function Mp(e) {
|
|
|
9006
9029
|
if (!U) return;
|
|
9007
9030
|
const b = f;
|
|
9008
9031
|
bp(b, T);
|
|
9009
|
-
const
|
|
9032
|
+
const R = Wt.current.filter(
|
|
9010
9033
|
(L) => Fp.includes(L)
|
|
9011
9034
|
);
|
|
9012
|
-
Wt.current = [], T.announceSeeded(
|
|
9035
|
+
Wt.current = [], T.announceSeeded(R, "storage");
|
|
9013
9036
|
const G = Sp({
|
|
9014
9037
|
gridId: b,
|
|
9015
9038
|
store: T,
|
|
@@ -9032,14 +9055,14 @@ function Mp(e) {
|
|
|
9032
9055
|
if (m && Tn && no(
|
|
9033
9056
|
"dataMode 'server' needs rowCount (use -1 when the total is unknown)."
|
|
9034
9057
|
), m)
|
|
9035
|
-
for (const
|
|
9036
|
-
((b =
|
|
9037
|
-
`column "${
|
|
9058
|
+
for (const R of E)
|
|
9059
|
+
((b = R.filter) == null ? void 0 : b.kind) === "select" && !R.filter.options && no(
|
|
9060
|
+
`column "${R.id}" has a select filter without options in server mode.`
|
|
9038
9061
|
);
|
|
9039
9062
|
es({
|
|
9040
9063
|
selectionMode: h,
|
|
9041
9064
|
selectAllScope: e.selectAllScope,
|
|
9042
|
-
paginated:
|
|
9065
|
+
paginated: I,
|
|
9043
9066
|
dataMode: p,
|
|
9044
9067
|
warn: !0
|
|
9045
9068
|
});
|
|
@@ -9053,9 +9076,9 @@ function Mp(e) {
|
|
|
9053
9076
|
]), de(() => {
|
|
9054
9077
|
var b;
|
|
9055
9078
|
if (Fe())
|
|
9056
|
-
for (const
|
|
9057
|
-
!y.kitColumns.has(
|
|
9058
|
-
`filter key "${
|
|
9079
|
+
for (const R of Object.keys(ct))
|
|
9080
|
+
!y.kitColumns.has(R) && ((b = $e.current.filterLabels) == null ? void 0 : b[R]) === void 0 && no(
|
|
9081
|
+
`filter key "${R}" matches no column and has no filterLabels entry.`
|
|
9059
9082
|
);
|
|
9060
9083
|
}, [ct, y]), de(() => {
|
|
9061
9084
|
Fe() && e.virtualization === "off" && gt > 500 && no('virtualization="off" with more than 500 rows will be slow.');
|
|
@@ -9085,8 +9108,8 @@ function Dp({
|
|
|
9085
9108
|
footSize: s
|
|
9086
9109
|
}) {
|
|
9087
9110
|
const l = W(null), a = fe((w) => {
|
|
9088
|
-
const
|
|
9089
|
-
return
|
|
9111
|
+
const F = Ta(w), I = l.current;
|
|
9112
|
+
return I === null || I >= w.count || F.includes(I) ? F : [...F, I].sort((M, P) => M - P);
|
|
9090
9113
|
}, []), c = r ?? Pp, u = Ga({
|
|
9091
9114
|
count: e ? t : 0,
|
|
9092
9115
|
getScrollElement: n,
|
|
@@ -9113,15 +9136,15 @@ function Dp({
|
|
|
9113
9136
|
if (d.length === 0)
|
|
9114
9137
|
return { items: [], padStart: 0, padEnd: 0 };
|
|
9115
9138
|
const w = [];
|
|
9116
|
-
let
|
|
9139
|
+
let F = null;
|
|
9117
9140
|
for (const P of d) {
|
|
9118
|
-
const N =
|
|
9119
|
-
w.push({ index: P.index, gapBefore: N }),
|
|
9141
|
+
const N = F === null ? 0 : Math.max(0, P.start - F);
|
|
9142
|
+
w.push({ index: P.index, gapBefore: N }), F = P.end;
|
|
9120
9143
|
}
|
|
9121
|
-
const
|
|
9144
|
+
const I = d[0], M = d[d.length - 1];
|
|
9122
9145
|
return {
|
|
9123
9146
|
items: w,
|
|
9124
|
-
padStart: Math.max(0,
|
|
9147
|
+
padStart: Math.max(0, I.start - i),
|
|
9125
9148
|
padEnd: Math.max(0, g - (M.end - i))
|
|
9126
9149
|
};
|
|
9127
9150
|
}, [e, t, d, g, i]), h = fe(
|
|
@@ -9129,7 +9152,7 @@ function Dp({
|
|
|
9129
9152
|
e && u.scrollToIndex(w, { align: "auto" });
|
|
9130
9153
|
},
|
|
9131
9154
|
[e, u]
|
|
9132
|
-
),
|
|
9155
|
+
), _ = fe((w) => {
|
|
9133
9156
|
l.current = w;
|
|
9134
9157
|
}, []);
|
|
9135
9158
|
return {
|
|
@@ -9139,7 +9162,7 @@ function Dp({
|
|
|
9139
9162
|
padEnd: m,
|
|
9140
9163
|
measureElement: u.measureElement,
|
|
9141
9164
|
scrollToIndex: h,
|
|
9142
|
-
setFocusedIndex:
|
|
9165
|
+
setFocusedIndex: _,
|
|
9143
9166
|
measure: () => u.measure()
|
|
9144
9167
|
};
|
|
9145
9168
|
}
|
|
@@ -9147,7 +9170,7 @@ function rs({
|
|
|
9147
9170
|
value: e,
|
|
9148
9171
|
children: t
|
|
9149
9172
|
}) {
|
|
9150
|
-
return /* @__PURE__ */
|
|
9173
|
+
return /* @__PURE__ */ C(Ea.Provider, { value: e, children: /* @__PURE__ */ C(Ma.Provider, { value: null, children: t }) });
|
|
9151
9174
|
}
|
|
9152
9175
|
function kp(e, t) {
|
|
9153
9176
|
const n = [];
|
|
@@ -9205,10 +9228,10 @@ function Vp(e, t) {
|
|
|
9205
9228
|
multiSort: m,
|
|
9206
9229
|
maxSortLevels: h,
|
|
9207
9230
|
/* filtering */
|
|
9208
|
-
filters:
|
|
9231
|
+
filters: _,
|
|
9209
9232
|
defaultFilters: w,
|
|
9210
|
-
onFiltersChange:
|
|
9211
|
-
quickFilter:
|
|
9233
|
+
onFiltersChange: F,
|
|
9234
|
+
quickFilter: I,
|
|
9212
9235
|
defaultQuickFilter: M,
|
|
9213
9236
|
onQuickFilterChange: P,
|
|
9214
9237
|
filterLabels: N,
|
|
@@ -9306,10 +9329,10 @@ function Vp(e, t) {
|
|
|
9306
9329
|
onSortingChange: p,
|
|
9307
9330
|
multiSort: m,
|
|
9308
9331
|
maxSortLevels: h,
|
|
9309
|
-
filters:
|
|
9332
|
+
filters: _,
|
|
9310
9333
|
defaultFilters: w,
|
|
9311
|
-
onFiltersChange:
|
|
9312
|
-
quickFilter:
|
|
9334
|
+
onFiltersChange: F,
|
|
9335
|
+
quickFilter: I,
|
|
9313
9336
|
defaultQuickFilter: M,
|
|
9314
9337
|
onQuickFilterChange: P,
|
|
9315
9338
|
filterLabels: N,
|
|
@@ -9382,21 +9405,21 @@ function Vp(e, t) {
|
|
|
9382
9405
|
const $ = Object.keys(x);
|
|
9383
9406
|
return $.length === Object.keys(D).length && $.every((X) => D[X] === x[X]) ? D : x;
|
|
9384
9407
|
});
|
|
9385
|
-
}, []),
|
|
9408
|
+
}, []), R = W(null), G = fe(
|
|
9386
9409
|
(x, D) => {
|
|
9387
9410
|
var ee, X;
|
|
9388
|
-
|
|
9411
|
+
R.current === null && typeof ResizeObserver == "function" && (R.current = new ResizeObserver(
|
|
9389
9412
|
() => wr(b)
|
|
9390
9413
|
));
|
|
9391
9414
|
const $ = ht.current.get(x);
|
|
9392
|
-
$ && $ !== D && ((ee =
|
|
9415
|
+
$ && $ !== D && ((ee = R.current) == null || ee.unobserve($)), D ? (ht.current.set(x, D), (X = R.current) == null || X.observe(D)) : ht.current.delete(x);
|
|
9393
9416
|
},
|
|
9394
9417
|
[b]
|
|
9395
9418
|
);
|
|
9396
9419
|
de(
|
|
9397
9420
|
() => () => {
|
|
9398
9421
|
var x;
|
|
9399
|
-
(x =
|
|
9422
|
+
(x = R.current) == null || x.disconnect(), R.current = null;
|
|
9400
9423
|
},
|
|
9401
9424
|
[]
|
|
9402
9425
|
), Qe(() => {
|
|
@@ -9611,7 +9634,7 @@ function Vp(e, t) {
|
|
|
9611
9634
|
});
|
|
9612
9635
|
const cn = ut === "loading";
|
|
9613
9636
|
let $n = null;
|
|
9614
|
-
ut === "error" ? $n = /* @__PURE__ */
|
|
9637
|
+
ut === "error" ? $n = /* @__PURE__ */ C(
|
|
9615
9638
|
Ji,
|
|
9616
9639
|
{
|
|
9617
9640
|
kind: "error",
|
|
@@ -9619,14 +9642,14 @@ function Vp(e, t) {
|
|
|
9619
9642
|
error: Dt,
|
|
9620
9643
|
onClearFilters: () => Ke.clearAllFilters()
|
|
9621
9644
|
}
|
|
9622
|
-
) : jo && cn ? $n = /* @__PURE__ */
|
|
9645
|
+
) : jo && cn ? $n = /* @__PURE__ */ C(
|
|
9623
9646
|
Um,
|
|
9624
9647
|
{
|
|
9625
9648
|
rowCount: sn ? Math.min(ln, 10) : 5,
|
|
9626
9649
|
columnCount: ve.length,
|
|
9627
9650
|
density: kt
|
|
9628
9651
|
}
|
|
9629
|
-
) : jo && ($n = /* @__PURE__ */
|
|
9652
|
+
) : jo && ($n = /* @__PURE__ */ C(
|
|
9630
9653
|
Ji,
|
|
9631
9654
|
{
|
|
9632
9655
|
kind: Ee.status.anyFilterActive ? "no-results" : "first-use",
|
|
@@ -9645,9 +9668,9 @@ function Vp(e, t) {
|
|
|
9645
9668
|
const ee = ((D = $.columnDef.meta) == null ? void 0 : D.groupId) ?? null, X = x[x.length - 1];
|
|
9646
9669
|
X && X.groupId === ee ? X.columns.push($) : x.push({ groupId: ee, columns: [$] });
|
|
9647
9670
|
}
|
|
9648
|
-
return x.map(($, ee) => /* @__PURE__ */
|
|
9671
|
+
return x.map(($, ee) => /* @__PURE__ */ C("colgroup", { children: $.columns.map((X) => {
|
|
9649
9672
|
const ce = xt(X), pe = Ee.kitColumns.get(X.id), We = ce === "data" && ((pe == null ? void 0 : pe.size) !== void 0 || na[X.id] !== void 0);
|
|
9650
|
-
return /* @__PURE__ */
|
|
9673
|
+
return /* @__PURE__ */ C(
|
|
9651
9674
|
"col",
|
|
9652
9675
|
{
|
|
9653
9676
|
className: Tg({
|
|
@@ -9673,9 +9696,9 @@ function Vp(e, t) {
|
|
|
9673
9696
|
"aria-rowcount": Le == null ? void 0 : Le.rowCount,
|
|
9674
9697
|
"aria-describedby": ta || void 0,
|
|
9675
9698
|
children: [
|
|
9676
|
-
/* @__PURE__ */
|
|
9699
|
+
/* @__PURE__ */ C("caption", { id: At, className: "ds:sr-only", children: i }),
|
|
9677
9700
|
oa,
|
|
9678
|
-
/* @__PURE__ */
|
|
9701
|
+
/* @__PURE__ */ C(
|
|
9679
9702
|
Bm,
|
|
9680
9703
|
{
|
|
9681
9704
|
model: jn,
|
|
@@ -9684,7 +9707,7 @@ function Vp(e, t) {
|
|
|
9684
9707
|
ariaRowIndexOf: (x) => Le ? x + 1 : void 0
|
|
9685
9708
|
}
|
|
9686
9709
|
),
|
|
9687
|
-
/* @__PURE__ */
|
|
9710
|
+
/* @__PURE__ */ C(
|
|
9688
9711
|
hm,
|
|
9689
9712
|
{
|
|
9690
9713
|
model: jn,
|
|
@@ -9703,7 +9726,7 @@ function Vp(e, t) {
|
|
|
9703
9726
|
stateRows: $n
|
|
9704
9727
|
}
|
|
9705
9728
|
),
|
|
9706
|
-
tt.hasFooter && Tt ? /* @__PURE__ */
|
|
9729
|
+
tt.hasFooter && Tt ? /* @__PURE__ */ C(
|
|
9707
9730
|
Rm,
|
|
9708
9731
|
{
|
|
9709
9732
|
model: jn,
|
|
@@ -9715,9 +9738,9 @@ function Vp(e, t) {
|
|
|
9715
9738
|
]
|
|
9716
9739
|
}
|
|
9717
9740
|
), ri = /* @__PURE__ */ te(Re, { children: [
|
|
9718
|
-
ei ? /* @__PURE__ */
|
|
9719
|
-
ti ? /* @__PURE__ */
|
|
9720
|
-
Jl ? /* @__PURE__ */
|
|
9741
|
+
ei ? /* @__PURE__ */ C("span", { hidden: !0, id: `${Ye}-hint-sort`, children: Te("dataGrid.hint.multiSort") }) : null,
|
|
9742
|
+
ti ? /* @__PURE__ */ C("span", { hidden: !0, id: `${Ye}-hint-range`, children: Te("dataGrid.hint.rangeSelection") }) : null,
|
|
9743
|
+
Jl ? /* @__PURE__ */ C(sc, { message: ea }) : null
|
|
9721
9744
|
] }), bt = {};
|
|
9722
9745
|
No > 0 && (bt["--dg-head-size"] = `${No}px`), tt.hasFooter && Ho > 0 && (bt["--dg-foot-size"] = `${Ho}px`), Ue > 1 && Wr > 0 && (bt["--dg-group-row-size"] = `${Wr}px`), Se && Z > 0 && (bt["--dg-pin-start-total"] = `${Z}px`), Se && Q > 0 && (bt["--dg-pin-end-total"] = `${Q}px`);
|
|
9723
9746
|
const ii = Object.keys(bt).length > 0 || Dn ? { ...Dn, ...bt } : void 0, si = ne(
|
|
@@ -9725,7 +9748,7 @@ function Vp(e, t) {
|
|
|
9725
9748
|
[ae, Ke]
|
|
9726
9749
|
);
|
|
9727
9750
|
if (!(en !== void 0 || !!k))
|
|
9728
|
-
return /* @__PURE__ */
|
|
9751
|
+
return /* @__PURE__ */ C(rs, { value: si, children: /* @__PURE__ */ te(
|
|
9729
9752
|
ui,
|
|
9730
9753
|
{
|
|
9731
9754
|
ref: To,
|
|
@@ -9746,14 +9769,14 @@ function Vp(e, t) {
|
|
|
9746
9769
|
style: ii,
|
|
9747
9770
|
...nn,
|
|
9748
9771
|
children: [
|
|
9749
|
-
cn && Tt ? /* @__PURE__ */
|
|
9772
|
+
cn && Tt ? /* @__PURE__ */ C("div", { className: zg(), children: /* @__PURE__ */ C(io, { size: "sm", label: Te("dataTable.loading") }) }) : null,
|
|
9750
9773
|
oi,
|
|
9751
9774
|
ri
|
|
9752
9775
|
]
|
|
9753
9776
|
}
|
|
9754
9777
|
) });
|
|
9755
9778
|
const Lt = typeof k == "object" ? k : void 0, ra = Gn.filter((x) => x.depth === 0).length;
|
|
9756
|
-
return /* @__PURE__ */
|
|
9779
|
+
return /* @__PURE__ */ C(rs, { value: si, children: /* @__PURE__ */ te(
|
|
9757
9780
|
"div",
|
|
9758
9781
|
{
|
|
9759
9782
|
ref: ft,
|
|
@@ -9763,8 +9786,8 @@ function Vp(e, t) {
|
|
|
9763
9786
|
style: ii,
|
|
9764
9787
|
...nn,
|
|
9765
9788
|
children: [
|
|
9766
|
-
en !== void 0 ? /* @__PURE__ */
|
|
9767
|
-
/* @__PURE__ */
|
|
9789
|
+
en !== void 0 ? /* @__PURE__ */ C("div", { className: dr({ slot: "toolbar" }), children: en }) : null,
|
|
9790
|
+
/* @__PURE__ */ C(
|
|
9768
9791
|
ui,
|
|
9769
9792
|
{
|
|
9770
9793
|
ref: Be,
|
|
@@ -9778,7 +9801,7 @@ function Vp(e, t) {
|
|
|
9778
9801
|
children: oi
|
|
9779
9802
|
}
|
|
9780
9803
|
),
|
|
9781
|
-
sn ? /* @__PURE__ */
|
|
9804
|
+
sn ? /* @__PURE__ */ C(
|
|
9782
9805
|
Km,
|
|
9783
9806
|
{
|
|
9784
9807
|
caption: i,
|
|
@@ -9797,7 +9820,7 @@ function Vp(e, t) {
|
|
|
9797
9820
|
),
|
|
9798
9821
|
onPageSizeChange: (x) => et.write("page", { pageIndex: 0, pageSize: x }, "user")
|
|
9799
9822
|
}
|
|
9800
|
-
) : cn && Tt ? /* @__PURE__ */
|
|
9823
|
+
) : cn && Tt ? /* @__PURE__ */ C("div", { className: dr({ slot: "pager" }), children: /* @__PURE__ */ C(io, { size: "sm", label: Te("dataTable.loading") }) }) : null,
|
|
9801
9824
|
ri
|
|
9802
9825
|
]
|
|
9803
9826
|
}
|
|
@@ -9815,4 +9838,4 @@ export {
|
|
|
9815
9838
|
Cm as f,
|
|
9816
9839
|
_h as g
|
|
9817
9840
|
};
|
|
9818
|
-
//# sourceMappingURL=data-grid-
|
|
9841
|
+
//# sourceMappingURL=data-grid-bzvkQ3kc.js.map
|