@farris/ui-vue 1.7.4 → 1.7.6
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/components/avatar/index.esm.js +2 -2
- package/components/avatar/index.umd.cjs +1 -1
- package/components/component/index.esm.js +102 -102
- package/components/component/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4 -2
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +393 -392
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +102 -102
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +2 -2
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/image/index.esm.js +2 -2
- package/components/image/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4 -2
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +156 -156
- package/components/number-range/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +2 -2
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +1 -1
- package/components/tree-grid/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +62 -61
- package/designer/data-grid/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +351 -349
- package/designer/farris-designer.all.umd.cjs +4 -4
- package/designer/radio-group/index.esm.js +2 -2
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +1 -1
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +142 -142
- package/designer/tabs/index.umd.cjs +1 -1
- package/designer/time-picker/index.esm.js +2 -2
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +1 -1
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +2821 -2819
- package/farris.all.umd.cjs +25 -25
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +2 -14
- package/types/data-view/composition/types.d.ts +1 -1
|
@@ -53,8 +53,8 @@ const kr = {
|
|
|
53
53
|
};
|
|
54
54
|
var D = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.filterable = 1] = "filterable", e[e.sortable = 2] = "sortable", e[e.filtered = 4] = "filtered", e[e.sorted = 8] = "sorted", e[e.ascending = 16] = "ascending", e[e.descending = 32] = "descending", e))(D || {}), fn = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(fn || {}), Ke = /* @__PURE__ */ ((e) => (e.DATE = "date", e.DATE_TIME = "datetime", e.NUMBER = "number", e.ENUM = "enum", e.IMAGE = "image", e.BOOLEAN = "boolean", e.BOOLEAN2 = "boolean2", e.TIMEAGO = "timeago", e.NONE = "none", e.CUSTOM = "custom", e.MULTI_LINGUAL = "multilingual", e))(Ke || {});
|
|
55
55
|
function vn(e, t) {
|
|
56
|
-
var
|
|
57
|
-
const { isUndefined: l } = st(), { pageIndex: s, totalItems: p, pagination: h } = t, i = $((
|
|
56
|
+
var O, S, m, w, C, _, y, g, n;
|
|
57
|
+
const { isUndefined: l } = st(), { pageIndex: s, totalItems: p, pagination: h } = t, i = $((O = e.pagination) == null ? void 0 : O.enable), c = $(((S = e.pagination) == null ? void 0 : S.disabled) || !1), o = $((m = e.pagination) == null ? void 0 : m.size), b = $((w = e.pagination) == null ? void 0 : w.sizeLimits), f = $((C = e.pagination) == null ? void 0 : C.mode), v = $((_ = e.pagination) == null ? void 0 : _.showIndex), u = $((y = e.pagination) == null ? void 0 : y.showLimits), R = $(((g = e.pagination) == null ? void 0 : g.showGoto) || !1), a = $(((n = e.pagination) == null ? void 0 : n.showPageInfo) || !0);
|
|
58
58
|
Se(() => {
|
|
59
59
|
var r;
|
|
60
60
|
return (r = e.pagination) == null ? void 0 : r.disabled;
|
|
@@ -139,7 +139,7 @@ function hn(e, t, l, s, p, h, i, c, o, b, f) {
|
|
|
139
139
|
showSelectAll: R,
|
|
140
140
|
showSelection: a,
|
|
141
141
|
selectedValues: d,
|
|
142
|
-
updateSelectAllStatus:
|
|
142
|
+
updateSelectAllStatus: O,
|
|
143
143
|
keepSelectingOnPaging: S,
|
|
144
144
|
clearSelection: m
|
|
145
145
|
} = o, w = $([]), C = $([]), _ = [{
|
|
@@ -173,8 +173,8 @@ function hn(e, t, l, s, p, h, i, c, o, b, f) {
|
|
|
173
173
|
}
|
|
174
174
|
function J(F) {
|
|
175
175
|
const M = F.status, z = (M & D.sorted) === D.sorted, ne = (M & D.ascending) === D.ascending, re = (M & D.descending) === D.descending;
|
|
176
|
-
let
|
|
177
|
-
return
|
|
176
|
+
let k = z ? M ^ D.sorted : M;
|
|
177
|
+
return k = ne ? k ^ D.ascending : k, k = re ? k ^ D.descending : k, k;
|
|
178
178
|
}
|
|
179
179
|
function Y(F) {
|
|
180
180
|
F.sortType = "none", F.status = J(F);
|
|
@@ -261,7 +261,7 @@ function gn(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a) {
|
|
|
261
261
|
"fv-column-handler-active": (G & D.filtered) === D.filtered || (G & D.sorted) === D.sorted || E.showPopover
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function O(E) {
|
|
265
265
|
return (E.status & D.sortable) === D.sortable && (E.status & D.filterable) === D.none && (E.status & D.sorted) === D.none;
|
|
266
266
|
}
|
|
267
267
|
function S(E) {
|
|
@@ -285,7 +285,7 @@ function gn(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a) {
|
|
|
285
285
|
const g = function(E) {
|
|
286
286
|
return {
|
|
287
287
|
"f-icon": !0,
|
|
288
|
-
"f-icon-col-defaultsort":
|
|
288
|
+
"f-icon-col-defaultsort": O(E),
|
|
289
289
|
"f-icon-col-ascending": S(E),
|
|
290
290
|
"f-icon-col-descending": m(E),
|
|
291
291
|
"f-icon-col-filter": w(E),
|
|
@@ -331,8 +331,8 @@ function gn(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a) {
|
|
|
331
331
|
var z;
|
|
332
332
|
const G = E.status;
|
|
333
333
|
if ((G & D.sortable) === D.sortable && (G & D.filterable) === D.none && n.has(G)) {
|
|
334
|
-
const ne = n.get(G), re = (ne & D.sorted) === D.sorted,
|
|
335
|
-
|
|
334
|
+
const ne = n.get(G), re = (ne & D.sorted) === D.sorted, k = (ne & D.ascending) === D.ascending, T = (ne & D.descending) === D.descending, x = E.column;
|
|
335
|
+
x && (x.sort = k ? "asc" : T ? "desc" : "none", x.sortOrder = re ? x.sortOrder : 0, E.sortType = x.sort, E.status = ne, ((z = e.sort) == null ? void 0 : z.mode) === "server" ? t.emit("sortChanged", {
|
|
336
336
|
filterConditions: o.createFilterConditions(),
|
|
337
337
|
sortConditions: h.createSortConditions(f)
|
|
338
338
|
}) : (h.applyColumnSorter(i, f), v.reCalculateVisualDataRows()));
|
|
@@ -366,7 +366,7 @@ function wn(e, t, l, s, p, h, i) {
|
|
|
366
366
|
} = e, {
|
|
367
367
|
conditions: d
|
|
368
368
|
} = l, {
|
|
369
|
-
calculateColumnsSize:
|
|
369
|
+
calculateColumnsSize: O
|
|
370
370
|
} = s, {
|
|
371
371
|
fitHorizontalScroll: S
|
|
372
372
|
} = h, m = $([]), w = X(() => !!m.value.length), C = X(() => R.value.primaryColumns.filter((F) => F.dataType !== nt && F.dataType !== Qe));
|
|
@@ -406,8 +406,8 @@ function wn(e, t, l, s, p, h, i) {
|
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
function N(F) {
|
|
409
|
-
const M = R.value.primaryColumns.filter((
|
|
410
|
-
M.length || z.length ? R.value.primaryColumns = [...re, ...Array.from(ne.values()), ...M, ...z] : R.value.primaryColumns = [...re, ...Array.from(ne.values())], a(),
|
|
409
|
+
const M = R.value.primaryColumns.filter((k) => k.dataType === nt), z = R.value.primaryColumns.filter((k) => k.dataType === Qe), ne = n(), re = r(F, ne);
|
|
410
|
+
M.length || z.length ? R.value.primaryColumns = [...re, ...Array.from(ne.values()), ...M, ...z] : R.value.primaryColumns = [...re, ...Array.from(ne.values())], a(), O(), Ot(() => {
|
|
411
411
|
S();
|
|
412
412
|
});
|
|
413
413
|
}
|
|
@@ -471,14 +471,14 @@ function wn(e, t, l, s, p, h, i) {
|
|
|
471
471
|
}
|
|
472
472
|
function J(F) {
|
|
473
473
|
return m.value.filter((z) => z.id && z.order).map((z, ne) => {
|
|
474
|
-
const re = ne + 1,
|
|
475
|
-
return
|
|
474
|
+
const re = ne + 1, k = F.get(z.id);
|
|
475
|
+
return k && (k.sort = z.order, k.sortOrder = re), k;
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
478
|
function Y() {
|
|
479
479
|
if (w.value) {
|
|
480
480
|
const F = I(), M = J(F);
|
|
481
|
-
f(M, t, p), h.reCalculateVisualDataRows(),
|
|
481
|
+
f(M, t, p), h.reCalculateVisualDataRows(), O();
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
function V() {
|
|
@@ -548,14 +548,14 @@ function Cn(e, t, l, s) {
|
|
|
548
548
|
function v(a) {
|
|
549
549
|
const d = a.target.parentElement;
|
|
550
550
|
if (d) {
|
|
551
|
-
const { left:
|
|
552
|
-
i.value = a.clientX -
|
|
551
|
+
const { left: O } = d.getBoundingClientRect();
|
|
552
|
+
i.value = a.clientX - O;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
function u(a) {
|
|
556
|
-
const d = t.value.primaryColumns.filter((S) => S.visible).find((S) => S.field === o) || t.value.leftColumns.filter((S) => S.visible).find((S) => S.field === o) || t.value.rightColumns.filter((S) => S.visible).find((S) => S.field === o),
|
|
557
|
-
if (d &&
|
|
558
|
-
const { left: S } =
|
|
556
|
+
const d = t.value.primaryColumns.filter((S) => S.visible).find((S) => S.field === o) || t.value.leftColumns.filter((S) => S.visible).find((S) => S.field === o) || t.value.rightColumns.filter((S) => S.visible).find((S) => S.field === o), O = a.target.parentElement;
|
|
557
|
+
if (d && O) {
|
|
558
|
+
const { left: S } = O.getBoundingClientRect(), m = a.clientX - S, w = (d.actualWidth || 0) + (m - h.value);
|
|
559
559
|
d.actualWidth = Math.max(40, w), l.calculateColumnsSize();
|
|
560
560
|
}
|
|
561
561
|
i.value = 0, c.value = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", u), document.body.style.userSelect = "", o = "";
|
|
@@ -570,7 +570,7 @@ function Cn(e, t, l, s) {
|
|
|
570
570
|
}
|
|
571
571
|
return { onClickColumnResizeBar: R, resizeHandleStyle: b, resizeOverlayStyle: f };
|
|
572
572
|
}
|
|
573
|
-
function Fr(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a, d,
|
|
573
|
+
function Fr(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a, d, O, S, m) {
|
|
574
574
|
const {
|
|
575
575
|
getDifference: w
|
|
576
576
|
} = pt(), {
|
|
@@ -601,22 +601,22 @@ function Fr(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a, d, x, S, m) {
|
|
|
601
601
|
} = Cn(e, Z, v), {
|
|
602
602
|
gridHeaderColumnsStyle: ne,
|
|
603
603
|
leftFixedGridHeaderColumnsStyle: re,
|
|
604
|
-
rightFixedGridHeaderColumnsStyle:
|
|
605
|
-
} =
|
|
604
|
+
rightFixedGridHeaderColumnsStyle: k
|
|
605
|
+
} = O, {
|
|
606
606
|
dragstart: T,
|
|
607
|
-
dragenter:
|
|
607
|
+
dragenter: x,
|
|
608
608
|
dragover: L,
|
|
609
609
|
dragend: W
|
|
610
|
-
} = c, ee = X(() => _.value || Y.value || J.value), de = Z.value.defaultColumnWidth, fe = 32,
|
|
610
|
+
} = c, ee = X(() => _.value || Y.value || J.value), de = Z.value.defaultColumnWidth, fe = 32, ve = /* @__PURE__ */ new Map([[0, 0]]), pe = X(() => e.showHeader);
|
|
611
611
|
function me(oe, Ee) {
|
|
612
612
|
var Ge;
|
|
613
|
-
const Te = ((Ge = oe.column) == null ? void 0 : Ge.dataType) === "setting", Ve =
|
|
613
|
+
const Te = ((Ge = oe.column) == null ? void 0 : Ge.dataType) === "setting", Ve = ve.get(Ee) || 0, Le = {
|
|
614
614
|
height: `${oe.depth * fe}px`,
|
|
615
615
|
left: `${oe.left}px`,
|
|
616
616
|
top: `${(oe.layer - 1) * fe}px`,
|
|
617
617
|
width: `${oe.actualWidth}px`
|
|
618
618
|
};
|
|
619
|
-
return Z.value.headerDepth > 1 && (Le["line-height"] = `${oe.depth * fe}px`), Te && (Le.paddingLeft = "2px"), e.showBorder && (Le.border = "1px solid #e6e9f0"),
|
|
619
|
+
return Z.value.headerDepth > 1 && (Le["line-height"] = `${oe.depth * fe}px`), Te && (Le.paddingLeft = "2px"), e.showBorder && (Le.border = "1px solid #e6e9f0"), ve.set(Ee + 1, Ve + (oe.actualWidth || de)), Le;
|
|
620
620
|
}
|
|
621
621
|
const De = X(() => ({
|
|
622
622
|
"fv-grid-header": !0,
|
|
@@ -625,7 +625,7 @@ function Fr(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a, d, x, S, m) {
|
|
|
625
625
|
const oe = {
|
|
626
626
|
height: `${Z.value.headerDepth * fe}px`
|
|
627
627
|
};
|
|
628
|
-
return
|
|
628
|
+
return O.shouldShowVirticalScrollbar.value && (oe.paddingRight = "10px"), oe;
|
|
629
629
|
}), Oe = X(() => {
|
|
630
630
|
var oe;
|
|
631
631
|
return {
|
|
@@ -635,9 +635,9 @@ function Fr(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a, d, x, S, m) {
|
|
|
635
635
|
return (oe.status & D.sortable) === D.sortable || (oe.status & D.filterable) === D.filterable;
|
|
636
636
|
}, {
|
|
637
637
|
renderHeaderCellHandler: ae
|
|
638
|
-
} = gn(e, t, l, s, p, h, i, o, b, f, d,
|
|
638
|
+
} = gn(e, t, l, s, p, h, i, o, b, f, d, O, R, a, m), {
|
|
639
639
|
renderGridSettingsIcon: le
|
|
640
|
-
} = Sn(h, i, b, v, d,
|
|
640
|
+
} = Sn(h, i, b, v, d, O);
|
|
641
641
|
function P(oe) {
|
|
642
642
|
var Te;
|
|
643
643
|
const Ee = {
|
|
@@ -668,7 +668,7 @@ function Fr(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a, d, x, S, m) {
|
|
|
668
668
|
style: me(oe, Te),
|
|
669
669
|
draggable: oe.draggable,
|
|
670
670
|
onDragstart: (We) => T(We, oe, Te),
|
|
671
|
-
onDragenter: (We) =>
|
|
671
|
+
onDragenter: (We) => x(We, Te),
|
|
672
672
|
onDragend: (We) => W(We, oe),
|
|
673
673
|
onDragover: (We) => L(We, Te)
|
|
674
674
|
}, [((Ve = oe.column) == null ? void 0 : Ve.dataType) === "setting" ? le() : t.slots.headerCellTemplate ? t.slots.headerCellTemplate({
|
|
@@ -709,7 +709,7 @@ function Fr(e, t, l, s, p, h, i, c, o, b, f, v, u, R, a, d, x, S, m) {
|
|
|
709
709
|
class: "fv-grid-header-right-fixed"
|
|
710
710
|
}, [j("div", {
|
|
711
711
|
class: "fv-grid-header-columns",
|
|
712
|
-
style:
|
|
712
|
+
style: k.value
|
|
713
713
|
}, [we(Z.value.rightHeaderColumns)])]);
|
|
714
714
|
}
|
|
715
715
|
X(() => N.value.length > 0 && m.value.length !== N.value.length);
|
|
@@ -790,15 +790,15 @@ function Rr(e, t, l, s, p) {
|
|
|
790
790
|
} = s, b = $([]);
|
|
791
791
|
function f() {
|
|
792
792
|
const d = [];
|
|
793
|
-
Array.from(i.value).forEach((
|
|
793
|
+
Array.from(i.value).forEach((O, S) => {
|
|
794
794
|
var w;
|
|
795
795
|
const m = {
|
|
796
|
-
id:
|
|
797
|
-
code:
|
|
798
|
-
labelCode:
|
|
799
|
-
name:
|
|
796
|
+
id: O.id,
|
|
797
|
+
code: O.fieldCode,
|
|
798
|
+
labelCode: O.fieldCode,
|
|
799
|
+
name: O.fieldName,
|
|
800
800
|
editor: {
|
|
801
|
-
type: (w =
|
|
801
|
+
type: (w = O.value) == null ? void 0 : w.editorType
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
804
|
d.push(m);
|
|
@@ -808,14 +808,14 @@ function Rr(e, t, l, s, p) {
|
|
|
808
808
|
function v(d) {
|
|
809
809
|
if (d && d.column) {
|
|
810
810
|
d.column.filter = null;
|
|
811
|
-
let
|
|
812
|
-
|
|
811
|
+
let O = d.status;
|
|
812
|
+
O = (O & D.filtered) === D.filtered ? O ^ D.filtered : O, d.status = O;
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
function u(d) {
|
|
816
816
|
o(`field_filter_${d}`);
|
|
817
|
-
const
|
|
818
|
-
v(
|
|
817
|
+
const O = h.value.primaryHeaderColumns.find((S) => S.field === d);
|
|
818
|
+
v(O), l.refresh(), p.reCalculateVisualDataRows();
|
|
819
819
|
}
|
|
820
820
|
function R() {
|
|
821
821
|
c(), h.value.primaryHeaderColumns.forEach((d) => v(d)), l.refresh(), p.reCalculateVisualDataRows();
|
|
@@ -876,35 +876,35 @@ function xn(e, t) {
|
|
|
876
876
|
function h(a) {
|
|
877
877
|
const d = {};
|
|
878
878
|
return a.reduce(
|
|
879
|
-
(
|
|
879
|
+
(O, S, m) => {
|
|
880
880
|
const w = m < a.length - 1 ? a[m + 1] : null;
|
|
881
|
-
return m === 0 && (
|
|
882
|
-
left:
|
|
883
|
-
}),
|
|
881
|
+
return m === 0 && (O[S.field] = { left: 0 }), S.actualWidth !== void 0 && (O[S.field].width = S.actualWidth), w && (O[w.field] = {
|
|
882
|
+
left: O[S.field].left + (S.actualWidth || 0)
|
|
883
|
+
}), O;
|
|
884
884
|
},
|
|
885
885
|
d
|
|
886
886
|
), d;
|
|
887
887
|
}
|
|
888
|
-
function i(a, d,
|
|
889
|
-
const S = s * (
|
|
888
|
+
function i(a, d, O) {
|
|
889
|
+
const S = s * (O + 1), w = d[a.field].left - S + (d[a.field].width || 0), C = a.parent.height ? `${a.parent.height}px` : "";
|
|
890
890
|
return {
|
|
891
891
|
left: `${S}px`,
|
|
892
892
|
width: `${w}px`,
|
|
893
893
|
height: `${C}`
|
|
894
894
|
};
|
|
895
895
|
}
|
|
896
|
-
function c(a, d,
|
|
896
|
+
function c(a, d, O) {
|
|
897
897
|
return {
|
|
898
898
|
right: "0px",
|
|
899
899
|
height: `${a.parent.height ? `${a.parent.height}px` : ""}`
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
|
-
function o(a, d,
|
|
902
|
+
function o(a, d, O) {
|
|
903
903
|
var w;
|
|
904
904
|
const S = d.parent.height ? `${d.parent.height}px` : "", m = {
|
|
905
|
-
left: `${
|
|
905
|
+
left: `${O[d.field].left}px`,
|
|
906
906
|
height: `${S}`,
|
|
907
|
-
width: isNaN(Number(
|
|
907
|
+
width: isNaN(Number(O[d.field].width)) ? "100%" : `${O[d.field].width}px`
|
|
908
908
|
};
|
|
909
909
|
if ((w = e.rowOption) != null && w.customCellStyle) {
|
|
910
910
|
const C = e.rowOption.customCellStyle(d, a) || {};
|
|
@@ -912,12 +912,12 @@ function xn(e, t) {
|
|
|
912
912
|
}
|
|
913
913
|
return m;
|
|
914
914
|
}
|
|
915
|
-
function b(a, d,
|
|
915
|
+
function b(a, d, O) {
|
|
916
916
|
const m = (d.spanned || []).reduce((C, _) => C + (_.parent.height || 0), 0) + (a.height || 0);
|
|
917
917
|
return {
|
|
918
918
|
top: `${a.top}px`,
|
|
919
|
-
left: `${
|
|
920
|
-
width: `${
|
|
919
|
+
left: `${O[d.field].left}px`,
|
|
920
|
+
width: `${O[d.field].width}px`,
|
|
921
921
|
height: `${m}px`,
|
|
922
922
|
padding: `calc(${m / 2}px - 1rem) 0`
|
|
923
923
|
// height: `calc(${rowHeight}px * ${cell.rowSpan})`,
|
|
@@ -932,16 +932,16 @@ function xn(e, t) {
|
|
|
932
932
|
}
|
|
933
933
|
function u(a) {
|
|
934
934
|
var S;
|
|
935
|
-
const d = a.height ? `${a.height}px` : "",
|
|
935
|
+
const d = a.height ? `${a.height}px` : "", O = {
|
|
936
936
|
top: `${a.top}px`,
|
|
937
937
|
width: isNaN(p.value) ? "100%" : `${p.value}px`,
|
|
938
938
|
height: `${d}`
|
|
939
939
|
};
|
|
940
940
|
if ((S = e.rowOption) != null && S.customRowStyle) {
|
|
941
941
|
const m = e.rowOption.customRowStyle(a.raw) || {};
|
|
942
|
-
return Object.assign({},
|
|
942
|
+
return Object.assign({}, O, m.style || {});
|
|
943
943
|
}
|
|
944
|
-
return
|
|
944
|
+
return O;
|
|
945
945
|
}
|
|
946
946
|
return Se(t, () => {
|
|
947
947
|
p.value = t.value.primaryColumnsWidth;
|
|
@@ -968,8 +968,8 @@ function On(e, t, l) {
|
|
|
968
968
|
if (e.showLines) {
|
|
969
969
|
const u = i();
|
|
970
970
|
t.value.forEach((R, a) => {
|
|
971
|
-
const d = u.includes(a),
|
|
972
|
-
v[a] = `repeating-linear-gradient(90deg, ${p.value} 0 1px, transparent 0px 2px) ${
|
|
971
|
+
const d = u.includes(a), O = R.raw[s.value];
|
|
972
|
+
v[a] = `repeating-linear-gradient(90deg, ${p.value} 0 1px, transparent 0px 2px) ${O ? "-10px" : "0px"} ${h.value / 2}px/20px 1px no-repeat,repeating-linear-gradient(${p.value} 0 1px, transparent 0px 2px) 0px 0px/1px ${d ? "50%" : "100%"} no-repeat`;
|
|
973
973
|
}), v[0] = "";
|
|
974
974
|
}
|
|
975
975
|
return v[f];
|
|
@@ -980,8 +980,8 @@ function On(e, t, l) {
|
|
|
980
980
|
}), v;
|
|
981
981
|
}
|
|
982
982
|
function b(f) {
|
|
983
|
-
const v = f.raw.__fv_parent_index__ === void 0 || f.raw.__fv_parent_index__ === -1, R = v ? 0 : 8, a = 0, d = f.raw[s.value],
|
|
984
|
-
paddingLeft: `calc(${
|
|
983
|
+
const v = f.raw.__fv_parent_index__ === void 0 || f.raw.__fv_parent_index__ === -1, R = v ? 0 : 8, a = 0, d = f.raw[s.value], O = `${f.layer * 10 + f.layer * R + a}px`, S = f.visible || gt(f.visible) ? {
|
|
984
|
+
paddingLeft: `calc(${O})`,
|
|
985
985
|
// paddingLeft,
|
|
986
986
|
background: c(f.index),
|
|
987
987
|
display: "flex",
|
|
@@ -990,7 +990,7 @@ function On(e, t, l) {
|
|
|
990
990
|
} : {
|
|
991
991
|
display: "none"
|
|
992
992
|
};
|
|
993
|
-
return !d && v && (S.paddingLeft = "calc(1.18rem)"), !d && !v && (S.paddingLeft = `calc(${
|
|
993
|
+
return !d && v && (S.paddingLeft = "calc(1.18rem)"), !d && !v && (S.paddingLeft = `calc(${O} + 1.25rem)`), S;
|
|
994
994
|
}
|
|
995
995
|
return { hierarchyCellContentStyle: b, handleCollapsedPaddingBottom: o };
|
|
996
996
|
}
|
|
@@ -1006,10 +1006,10 @@ function kn(e, t, l) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
function Tn(e, t, l, s, p, h, i, c) {
|
|
1008
1008
|
const { dataView: o, hasRealChildren: b, reOrderVisibleIndex: f } = s, { collapseField: v, hasChildrenField: u } = p, { reCalculateVisualDataRows: R, updateVirticalScroll: a } = h;
|
|
1009
|
-
function d(
|
|
1010
|
-
if (
|
|
1011
|
-
const m = o.value[
|
|
1012
|
-
m[v.value] = !m[v.value], s.toggleChildrenVisibiltyByCollapseStatus(m), m[u.value] = b(m), f(), R(), a(), m[v.value] || t.emit("expandNode", { row:
|
|
1009
|
+
function d(O) {
|
|
1010
|
+
if (O.raw[u.value]) {
|
|
1011
|
+
const m = o.value[O.raw.__fv_index__];
|
|
1012
|
+
m[v.value] = !m[v.value], s.toggleChildrenVisibiltyByCollapseStatus(m), m[u.value] = b(m), f(), R(), a(), m[v.value] || t.emit("expandNode", { row: O });
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
return { toggleTreeNode: d };
|
|
@@ -1050,7 +1050,7 @@ function Dr(e, t, l, s, p, h, i, c, o, b, f, v, u) {
|
|
|
1050
1050
|
} = h, {
|
|
1051
1051
|
gridCellClass: a,
|
|
1052
1052
|
gridRowClass: d,
|
|
1053
|
-
onClickRow:
|
|
1053
|
+
onClickRow: O,
|
|
1054
1054
|
onMouseoverRow: S,
|
|
1055
1055
|
onMouseoutRow: m
|
|
1056
1056
|
} = c, {
|
|
@@ -1094,22 +1094,22 @@ function Dr(e, t, l, s, p, h, i, c, o, b, f, v, u) {
|
|
|
1094
1094
|
function re(P) {
|
|
1095
1095
|
return P.collapse && e.loadData ? e.loadData(P) : Promise.resolve();
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return (P || []).some((Q) => _t(Q) ? !(Q.type === Comment || Q.type === Tt && !
|
|
1097
|
+
function k(P) {
|
|
1098
|
+
return (P || []).some((Q) => _t(Q) ? !(Q.type === Comment || Q.type === Tt && !k(Q.children)) : !0) ? P : null;
|
|
1099
1099
|
}
|
|
1100
1100
|
function T(P, Q) {
|
|
1101
1101
|
P.stopPropagation(), re(Q).then(() => {
|
|
1102
1102
|
q(Q);
|
|
1103
1103
|
});
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function x(P) {
|
|
1106
1106
|
P.stopPropagation();
|
|
1107
1107
|
}
|
|
1108
1108
|
function L(P, Q) {
|
|
1109
1109
|
return j("div", {
|
|
1110
1110
|
class: ne(P),
|
|
1111
1111
|
onClick: (_e) => T(_e, P),
|
|
1112
|
-
onDblclick:
|
|
1112
|
+
onDblclick: x
|
|
1113
1113
|
}, null);
|
|
1114
1114
|
}
|
|
1115
1115
|
function W(P, Q) {
|
|
@@ -1142,7 +1142,7 @@ function Dr(e, t, l, s, p, h, i, c, o, b, f, v, u) {
|
|
|
1142
1142
|
row: Q
|
|
1143
1143
|
})])]);
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function ve(P, Q) {
|
|
1146
1146
|
var _e, Me, we;
|
|
1147
1147
|
return P.showTips && typeof ((_e = P.column) == null ? void 0 : _e.formatter) != "function" && ((Me = P.column) == null ? void 0 : Me.dataType) !== "commands" && ((we = P.column) == null ? void 0 : we.dataType) !== "setting" ? j("div", {
|
|
1148
1148
|
class: F(P),
|
|
@@ -1172,10 +1172,10 @@ function Dr(e, t, l, s, p, h, i, c, o, b, f, v, u) {
|
|
|
1172
1172
|
return P.getEditor(P);
|
|
1173
1173
|
}
|
|
1174
1174
|
function De(P, Q) {
|
|
1175
|
-
return t.slots.cellTemplate &&
|
|
1175
|
+
return t.slots.cellTemplate && k(t.slots.cellTemplate({
|
|
1176
1176
|
cell: Q,
|
|
1177
1177
|
row: P
|
|
1178
|
-
})) ? fe(Q, P) : Q.mode === Ne.editing ? me(Q) : Q.column.columnTemplate ? Q.column.columnTemplate(Q, P) : Q.formatter ?
|
|
1178
|
+
})) ? fe(Q, P) : Q.mode === Ne.editing ? me(Q) : Q.column.columnTemplate ? Q.column.columnTemplate(Q, P) : Q.formatter ? ve(Q, P) : pe(Q);
|
|
1179
1179
|
}
|
|
1180
1180
|
function ze(P, Q, _e) {
|
|
1181
1181
|
const Me = M(P);
|
|
@@ -1217,7 +1217,7 @@ function Dr(e, t, l, s, p, h, i, c, o, b, f, v, u) {
|
|
|
1217
1217
|
style: Z(P),
|
|
1218
1218
|
onMouseover: (we) => S(we, P),
|
|
1219
1219
|
onMouseout: (we) => m(we, P),
|
|
1220
|
-
onClick: (we) =>
|
|
1220
|
+
onClick: (we) => O(we, P),
|
|
1221
1221
|
onDblclick: (we) => ae(we, P)
|
|
1222
1222
|
}, [Object.values(P.data).filter((we) => Q[we.field] && we.rowSpan === 1).map((we) => B(we, _e) ? ze(P, we, Q) : Oe(P, we, Q))]);
|
|
1223
1223
|
}
|
|
@@ -1258,7 +1258,7 @@ function Pr(e, t, l, s, p, h) {
|
|
|
1258
1258
|
pageSize: R,
|
|
1259
1259
|
pageList: a,
|
|
1260
1260
|
showGotoPage: d,
|
|
1261
|
-
showPageIndex:
|
|
1261
|
+
showPageIndex: O,
|
|
1262
1262
|
showPageList: S,
|
|
1263
1263
|
mode: m,
|
|
1264
1264
|
disabled: w,
|
|
@@ -1313,7 +1313,7 @@ function Pr(e, t, l, s, p, h) {
|
|
|
1313
1313
|
showPageInfo: _.value,
|
|
1314
1314
|
showGoButton: d.value,
|
|
1315
1315
|
showPageList: S.value,
|
|
1316
|
-
showPageNumbers:
|
|
1316
|
+
showPageNumbers: O.value,
|
|
1317
1317
|
totalItems: f.value,
|
|
1318
1318
|
pageList: a.value,
|
|
1319
1319
|
onPageIndexChanged: n,
|
|
@@ -1340,7 +1340,7 @@ function Hr(e, t, l, s, p) {
|
|
|
1340
1340
|
onClickRow: a
|
|
1341
1341
|
} = t, {
|
|
1342
1342
|
showRowNumer: d,
|
|
1343
|
-
showSidebarCheckBox:
|
|
1343
|
+
showSidebarCheckBox: O,
|
|
1344
1344
|
sidebarCellPosition: S,
|
|
1345
1345
|
rowKey: m,
|
|
1346
1346
|
cellKey: w
|
|
@@ -1396,15 +1396,15 @@ function Hr(e, t, l, s, p) {
|
|
|
1396
1396
|
I.stopPropagation(), h.value ? i.value ? f(Y) : b(Y) : i.value ? f(Y) : c.value ? v(Y) : b(Y), o();
|
|
1397
1397
|
}
|
|
1398
1398
|
function q(I) {
|
|
1399
|
-
return (
|
|
1399
|
+
return (O.value || d.value) && I.value.map((J, Y) => j("div", {
|
|
1400
1400
|
key: m(J),
|
|
1401
1401
|
class: R(J, Y),
|
|
1402
1402
|
style: S(J),
|
|
1403
1403
|
onClick: (V) => N(V, I, J)
|
|
1404
|
-
}, [
|
|
1404
|
+
}, [O.value && !e.hierarchy && n(J), d.value && r(J)]));
|
|
1405
1405
|
}
|
|
1406
1406
|
function A(I) {
|
|
1407
|
-
return (
|
|
1407
|
+
return (O.value || d.value) && j("div", {
|
|
1408
1408
|
class: "fv-grid-content-side",
|
|
1409
1409
|
style: _.value
|
|
1410
1410
|
}, [j("div", {
|
|
@@ -1643,7 +1643,7 @@ function jr(e, t) {
|
|
|
1643
1643
|
function d(y, g) {
|
|
1644
1644
|
return g.filterable && y.push(g), y;
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function O() {
|
|
1647
1647
|
const y = [];
|
|
1648
1648
|
return p.value.leftColumns.reduce(d, y), p.value.primaryColumns.reduce(d, y), p.value.rightColumns.reduce(d, y), y;
|
|
1649
1649
|
}
|
|
@@ -1682,7 +1682,7 @@ function jr(e, t) {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
return {
|
|
1684
1684
|
applyColumnSorter: _,
|
|
1685
|
-
collectionFilterableColumns:
|
|
1685
|
+
collectionFilterableColumns: O,
|
|
1686
1686
|
applySortableColumns: C,
|
|
1687
1687
|
collectionSortableColumns: S,
|
|
1688
1688
|
columnContext: p,
|
|
@@ -1836,8 +1836,8 @@ function Pn(e, t, l, s, p, h) {
|
|
|
1836
1836
|
multiSelect: !0,
|
|
1837
1837
|
multiSelectMode: "OnCheckAndClick",
|
|
1838
1838
|
showCheckbox: !0
|
|
1839
|
-
}, o = s.rawView.value.reduce((d,
|
|
1840
|
-
id:
|
|
1839
|
+
}, o = s.rawView.value.reduce((d, O, S) => (d.push(O[e.field]), d), []), f = [...new Set(o)].map((d, O) => ({
|
|
1840
|
+
id: O,
|
|
1841
1841
|
name: d,
|
|
1842
1842
|
value: d
|
|
1843
1843
|
}));
|
|
@@ -1988,7 +1988,7 @@ function Gr(e, t, l, s, p, h, i) {
|
|
|
1988
1988
|
function d(m, w) {
|
|
1989
1989
|
m.preventDefault(), m.dataTransfer && (m.dataTransfer.dropEffect = "move");
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function O(m, w) {
|
|
1992
1992
|
v.value && (v.value = !1, s.updateDataView(), i.reCalculateVisualDataRows());
|
|
1993
1993
|
}
|
|
1994
1994
|
function S(m) {
|
|
@@ -2007,7 +2007,7 @@ function Gr(e, t, l, s, p, h, i) {
|
|
|
2007
2007
|
dragstart: R,
|
|
2008
2008
|
dragenter: a,
|
|
2009
2009
|
dragover: d,
|
|
2010
|
-
dragend:
|
|
2010
|
+
dragend: O,
|
|
2011
2011
|
dropOnGroupPanel: S,
|
|
2012
2012
|
isDragging: v,
|
|
2013
2013
|
groupColumnItems: u
|
|
@@ -2044,7 +2044,7 @@ function Ur(e, t, l, s, p) {
|
|
|
2044
2044
|
N.actualWidth = a(N, n.value, r), n.value.primaryColumnsWidth += N.actualWidth;
|
|
2045
2045
|
});
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function O(n, r) {
|
|
2048
2048
|
const N = [], q = [];
|
|
2049
2049
|
let A = 0;
|
|
2050
2050
|
n.value.primaryColumns.filter((Y) => Y.visible).forEach((Y) => {
|
|
@@ -2090,7 +2090,7 @@ function Ur(e, t, l, s, p) {
|
|
|
2090
2090
|
average: S,
|
|
2091
2091
|
expand: m,
|
|
2092
2092
|
none: d,
|
|
2093
|
-
percentage:
|
|
2093
|
+
percentage: O
|
|
2094
2094
|
};
|
|
2095
2095
|
function C(n) {
|
|
2096
2096
|
n.value.leftHeaderColumns = Array.from(h(n.value.leftColumns.filter((r) => r.visible)).values()), n.value.primaryHeaderColumns = Array.from(h(n.value.primaryColumns.filter((r) => r.visible)).values()), n.value.rightHeaderColumns = Array.from(h(n.value.rightColumns.filter((r) => r.visible)).values());
|
|
@@ -2168,15 +2168,15 @@ function Yr(e, t) {
|
|
|
2168
2168
|
showPopover: !1,
|
|
2169
2169
|
column: null,
|
|
2170
2170
|
sortType: "none"
|
|
2171
|
-
},
|
|
2171
|
+
}, O = R || d;
|
|
2172
2172
|
if (f.group) {
|
|
2173
2173
|
let S = 1;
|
|
2174
2174
|
f.group.reduce((m, w) => {
|
|
2175
2175
|
if (typeof w == "string") {
|
|
2176
2176
|
const C = v.get(w);
|
|
2177
|
-
C && (a.fieldToRootMap.set(w,
|
|
2177
|
+
C && (a.fieldToRootMap.set(w, O), m.actualWidth += C.actualWidth, m.children.push(C));
|
|
2178
2178
|
} else {
|
|
2179
|
-
const C = s(w, v, m,
|
|
2179
|
+
const C = s(w, v, m, O, a);
|
|
2180
2180
|
S = Math.max(S, C.depth), m.actualWidth += C.actualWidth, m.children.push(C);
|
|
2181
2181
|
}
|
|
2182
2182
|
return m;
|
|
@@ -2220,14 +2220,14 @@ function Yr(e, t) {
|
|
|
2220
2220
|
if (f.reduce((R, a) => {
|
|
2221
2221
|
let d = D.none;
|
|
2222
2222
|
d = a.sortable ? d | D.sortable : d, d = a.filterable ? d | D.filterable : d, d = a.sort && a.sort !== "none" ? d | D.sorted | (a.sort === "asc" ? D.ascending : D.descending) : d;
|
|
2223
|
-
const
|
|
2224
|
-
return R.set(
|
|
2223
|
+
const O = a.field;
|
|
2224
|
+
return R.set(O, {
|
|
2225
2225
|
actualWidth: a.actualWidth || 0,
|
|
2226
2226
|
children: [],
|
|
2227
2227
|
depth: 1,
|
|
2228
2228
|
layer: 1,
|
|
2229
2229
|
left: u,
|
|
2230
|
-
field:
|
|
2230
|
+
field: O,
|
|
2231
2231
|
parent: null,
|
|
2232
2232
|
resizable: a.resizable === void 0 ? !0 : a.resizable,
|
|
2233
2233
|
title: a.title,
|
|
@@ -2264,7 +2264,7 @@ function Ln(e, t) {
|
|
|
2264
2264
|
return y && y.showSummary;
|
|
2265
2265
|
}), R = $(0), a = /* @__PURE__ */ new Map();
|
|
2266
2266
|
let d = [];
|
|
2267
|
-
function
|
|
2267
|
+
function O(y, g, n, r, N) {
|
|
2268
2268
|
const q = r[n];
|
|
2269
2269
|
q && (g.reduce((A, I, J) => {
|
|
2270
2270
|
var U;
|
|
@@ -2296,7 +2296,7 @@ function Ln(e, t) {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
}), V.details.push(I), A;
|
|
2298
2298
|
}, y), n < r.length - 1 && y.forEach((A, I) => {
|
|
2299
|
-
A.nestGroup = /* @__PURE__ */ new Map(),
|
|
2299
|
+
A.nestGroup = /* @__PURE__ */ new Map(), O(A.nestGroup, A.details, n + 1, r, N), A.details = [];
|
|
2300
2300
|
}));
|
|
2301
2301
|
}
|
|
2302
2302
|
function S(y, g) {
|
|
@@ -2340,7 +2340,7 @@ function Ln(e, t) {
|
|
|
2340
2340
|
}), n;
|
|
2341
2341
|
}
|
|
2342
2342
|
function w(y, g, n) {
|
|
2343
|
-
return !y || y.length === 0 || !g.length ? g : (y.join(","), a.clear(), d = [], g = g.filter((r) => !r.__fv_data_grid_group_row__),
|
|
2343
|
+
return !y || y.length === 0 || !g.length ? g : (y.join(","), a.clear(), d = [], g = g.filter((r) => !r.__fv_data_grid_group_row__), O(a, g, 0, y, n), d = m(a), d);
|
|
2344
2344
|
}
|
|
2345
2345
|
function C(y) {
|
|
2346
2346
|
return {
|
|
@@ -2359,62 +2359,62 @@ function Rt(e) {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
function Wn(e, t, l, s) {
|
|
2361
2361
|
const p = $(0), h = $(!!e.hierarchy), { idField: i } = s, { collapseField: c, hasChildrenField: o, parentIdField: b } = l, f = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), { flatTreeData: R, isNestedTree: a } = Rt(e);
|
|
2362
|
-
function d(T,
|
|
2362
|
+
function d(T, x) {
|
|
2363
2363
|
v.clear(), T.reduce((L, W) => {
|
|
2364
2364
|
const ee = W[b.value] !== void 0 ? W[b.value] : "";
|
|
2365
|
-
if (ee &&
|
|
2366
|
-
const fe =
|
|
2367
|
-
W.__fv_layer__ =
|
|
2365
|
+
if (ee && x.has(ee)) {
|
|
2366
|
+
const fe = x.get(ee), ve = isNaN(Number(fe.__fv_layer__)) ? 1 : Number(fe.__fv_layer__);
|
|
2367
|
+
W.__fv_layer__ = ve + 1, W.__fv_parent_index__ = fe.__fv_index__, fe.__fv_hasChildren__ = !0;
|
|
2368
2368
|
} else
|
|
2369
2369
|
W.__fv_layer__ = 1;
|
|
2370
2370
|
const de = L.has(ee) ? L.get(ee) : [];
|
|
2371
2371
|
return de.push(W), L.set(ee, de), L;
|
|
2372
2372
|
}, v);
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2375
|
-
u.clear(), T.reduce((
|
|
2374
|
+
function O(T) {
|
|
2375
|
+
u.clear(), T.reduce((x, L) => {
|
|
2376
2376
|
const W = L[i.value];
|
|
2377
|
-
return
|
|
2377
|
+
return x.set(W, L), x;
|
|
2378
2378
|
}, u);
|
|
2379
2379
|
}
|
|
2380
2380
|
function S(T) {
|
|
2381
|
-
T.forEach((
|
|
2382
|
-
const L =
|
|
2383
|
-
|
|
2381
|
+
T.forEach((x) => {
|
|
2382
|
+
const L = x[i.value];
|
|
2383
|
+
x.__fv_children_index__.map((ee) => T[ee]).forEach((ee) => {
|
|
2384
2384
|
ee.__fv_parents__ = new Map([
|
|
2385
|
-
...
|
|
2385
|
+
...x.__fv_parents__.entries(),
|
|
2386
2386
|
[L, !0]
|
|
2387
2387
|
]);
|
|
2388
2388
|
});
|
|
2389
2389
|
});
|
|
2390
2390
|
}
|
|
2391
2391
|
function m(T) {
|
|
2392
|
-
T.forEach((
|
|
2393
|
-
const L = new Set(
|
|
2394
|
-
|
|
2392
|
+
T.forEach((x) => {
|
|
2393
|
+
const L = new Set(x.__fv_children_index__);
|
|
2394
|
+
x.__fv_children_index__ = [...L].sort((W, ee) => W - ee);
|
|
2395
2395
|
});
|
|
2396
2396
|
}
|
|
2397
2397
|
function w(T) {
|
|
2398
|
-
T.forEach((
|
|
2399
|
-
const L =
|
|
2398
|
+
T.forEach((x) => {
|
|
2399
|
+
const L = x.__fv_parents__;
|
|
2400
2400
|
Array.from(L.keys()).map((W) => u.get(W)).forEach((W) => {
|
|
2401
|
-
W.__fv_children_index__.push(
|
|
2401
|
+
W.__fv_children_index__.push(x.__fv_index__);
|
|
2402
2402
|
});
|
|
2403
2403
|
}), m(T);
|
|
2404
2404
|
}
|
|
2405
2405
|
function C(T) {
|
|
2406
|
-
T.forEach((
|
|
2407
|
-
|
|
2406
|
+
T.forEach((x) => {
|
|
2407
|
+
x.__fv_child_with_lines__ = [], x.__fv_child_length__ = x.__fv_descendant_index__.length, x.__fv_descendant_index__.map((L) => T[L]).reduce((L, W) => (L.__fv_child_length__ += W.__fv_children_index__.length, L.__fv_child_with_lines__.push(...W.__fv_children_index__, W.__fv_index__), L), x);
|
|
2408
2408
|
});
|
|
2409
2409
|
}
|
|
2410
|
-
function _(T,
|
|
2411
|
-
return { id: T, index:
|
|
2410
|
+
function _(T, x) {
|
|
2411
|
+
return { id: T, index: x, parentId: "", parentIndex: -1, parents: /* @__PURE__ */ new Map(), children: /* @__PURE__ */ new Map(), descendant: /* @__PURE__ */ new Map(), collapsed: !1, visibleInHierarchy: !0 };
|
|
2412
2412
|
}
|
|
2413
|
-
function y(T,
|
|
2414
|
-
Array.from(
|
|
2415
|
-
|
|
2416
|
-
const
|
|
2417
|
-
return me && De && (me.children.set(
|
|
2413
|
+
function y(T, x, L) {
|
|
2414
|
+
Array.from(x.keys()).forEach((W) => {
|
|
2415
|
+
x.get(W).reduce((de, fe) => {
|
|
2416
|
+
const ve = fe[i.value], pe = T.get(fe[i.value]), me = T.get(W), De = L.get(W);
|
|
2417
|
+
return me && De && (me.children.set(ve, pe), me.children.set(ve, pe), pe.parentId = W, pe.parentIndex = me.index, pe.parents.set(W, me)), de;
|
|
2418
2418
|
}, T);
|
|
2419
2419
|
});
|
|
2420
2420
|
}
|
|
@@ -2426,41 +2426,41 @@ function Wn(e, t, l, s) {
|
|
|
2426
2426
|
]), g(L);
|
|
2427
2427
|
});
|
|
2428
2428
|
}
|
|
2429
|
-
function n(T,
|
|
2429
|
+
function n(T, x) {
|
|
2430
2430
|
T.filter((L) => L[b.value] === void 0 || L[b.value] === "").forEach((L) => {
|
|
2431
|
-
const W = L[i.value], ee =
|
|
2431
|
+
const W = L[i.value], ee = x.get(W);
|
|
2432
2432
|
g(ee);
|
|
2433
2433
|
});
|
|
2434
2434
|
}
|
|
2435
2435
|
function r(T) {
|
|
2436
|
-
Array.from(T.values()).forEach((
|
|
2437
|
-
Array.from(
|
|
2438
|
-
L.descendant.set(
|
|
2436
|
+
Array.from(T.values()).forEach((x) => {
|
|
2437
|
+
Array.from(x.parents.values()).forEach((L) => {
|
|
2438
|
+
L.descendant.set(x.id, x);
|
|
2439
2439
|
});
|
|
2440
2440
|
});
|
|
2441
2441
|
}
|
|
2442
2442
|
function N(T) {
|
|
2443
|
-
f.clear(), T.forEach((
|
|
2444
|
-
const W =
|
|
2443
|
+
f.clear(), T.forEach((x, L) => {
|
|
2444
|
+
const W = x[i.value];
|
|
2445
2445
|
f.set(W, _(W, L));
|
|
2446
|
-
}),
|
|
2446
|
+
}), O(T), d(T, u), y(f, v, u), n(T, f), r(f);
|
|
2447
2447
|
}
|
|
2448
2448
|
function q(T) {
|
|
2449
|
-
const
|
|
2449
|
+
const x = T[i.value], L = f.get(x);
|
|
2450
2450
|
return L && L.children.size > 0;
|
|
2451
2451
|
}
|
|
2452
2452
|
function A(T) {
|
|
2453
2453
|
return T[o.value] && !q(T);
|
|
2454
2454
|
}
|
|
2455
2455
|
function I(T) {
|
|
2456
|
-
const
|
|
2456
|
+
const x = T[i.value], L = f.get(x);
|
|
2457
2457
|
return L && L.visibleInHierarchy;
|
|
2458
2458
|
}
|
|
2459
2459
|
function J() {
|
|
2460
2460
|
p.value = Date.now();
|
|
2461
2461
|
}
|
|
2462
|
-
function Y(T,
|
|
2463
|
-
|
|
2462
|
+
function Y(T, x) {
|
|
2463
|
+
x.forEach((L) => {
|
|
2464
2464
|
const W = f.get(L[i.value]), ee = f.get(T), de = u.get(T);
|
|
2465
2465
|
ee && de && (W.visibleInHierarchy = !de[c.value] && ee.visibleInHierarchy);
|
|
2466
2466
|
}), J();
|
|
@@ -2472,29 +2472,29 @@ function Wn(e, t, l, s) {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
2474
|
function U(T) {
|
|
2475
|
-
const
|
|
2476
|
-
V(
|
|
2475
|
+
const x = T[i.value];
|
|
2476
|
+
V(x);
|
|
2477
2477
|
}
|
|
2478
|
-
function Z(T,
|
|
2478
|
+
function Z(T, x, L = 0) {
|
|
2479
2479
|
T.forEach((W) => {
|
|
2480
|
-
const ee = A(W), de = W.__fv_layer__ <= L, fe =
|
|
2481
|
-
W[c.value] = ee ||
|
|
2480
|
+
const ee = A(W), de = W.__fv_layer__ <= L, fe = x === "ToCollapse" ? W.__fv_layer__ <= L : !(W.__fv_layer__ <= L), ve = de ? fe : W[c.value];
|
|
2481
|
+
W[c.value] = ee || ve;
|
|
2482
2482
|
});
|
|
2483
2483
|
for (const [W, ee] of v.entries())
|
|
2484
2484
|
Y(W, ee);
|
|
2485
2485
|
return T;
|
|
2486
2486
|
}
|
|
2487
|
-
function E(T,
|
|
2488
|
-
Z(T, "ToCollapse",
|
|
2487
|
+
function E(T, x) {
|
|
2488
|
+
Z(T, "ToCollapse", x);
|
|
2489
2489
|
}
|
|
2490
|
-
function G(T,
|
|
2491
|
-
Z(T, "ToExpand",
|
|
2490
|
+
function G(T, x) {
|
|
2491
|
+
Z(T, "ToExpand", x);
|
|
2492
2492
|
}
|
|
2493
2493
|
function F(T) {
|
|
2494
|
-
T.forEach((
|
|
2494
|
+
T.forEach((x, L) => {
|
|
2495
2495
|
var fe;
|
|
2496
|
-
const W =
|
|
2497
|
-
|
|
2496
|
+
const W = x[i.value], ee = v.has(W) ? (fe = v.get(W)) == null ? void 0 : fe.map((ve) => ve.__fv_index__) : [], de = _(W, L);
|
|
2497
|
+
x.__fv_graph_node__ = de, x.__fv_children_index__ = ee, x.__fv_descendant_index__ = [...ee], x.__fv_parents__ = /* @__PURE__ */ new Map(), A(x) && (x[c.value] = !0);
|
|
2498
2498
|
});
|
|
2499
2499
|
}
|
|
2500
2500
|
function M(T) {
|
|
@@ -2503,50 +2503,51 @@ function Wn(e, t, l, s) {
|
|
|
2503
2503
|
const L = ((W = e.hierarchy) == null ? void 0 : W.collapseTo) !== void 0 ? Number((ee = e.hierarchy) == null ? void 0 : ee.collapseTo) : 0;
|
|
2504
2504
|
return Z(T, "ToCollapse", L), T;
|
|
2505
2505
|
}
|
|
2506
|
-
function z(T,
|
|
2506
|
+
function z(T, x, L) {
|
|
2507
2507
|
const ee = L.value[T][i.value], de = f.get(ee);
|
|
2508
2508
|
if (de) {
|
|
2509
2509
|
const fe = f.get(de.parentId);
|
|
2510
|
-
let
|
|
2510
|
+
let ve = L.value.length - 1;
|
|
2511
2511
|
if (fe) {
|
|
2512
2512
|
const pe = Array.from(fe.children.keys()).indexOf(de.id);
|
|
2513
2513
|
if (pe === fe.children.size - 1) {
|
|
2514
2514
|
const De = Array.from(fe.descendant.values())[fe.descendant.size - 1];
|
|
2515
|
-
|
|
2515
|
+
ve = L.value.findIndex((Oe) => Oe[i.value] === De.id) + 1;
|
|
2516
2516
|
} else {
|
|
2517
2517
|
const De = Array.from(fe.children.values())[pe + 1];
|
|
2518
|
-
|
|
2518
|
+
ve = L.value.findIndex((Oe) => Oe[i.value] === De.id);
|
|
2519
2519
|
}
|
|
2520
|
-
|
|
2521
|
-
}
|
|
2520
|
+
x[o.value] = !1, x[b.value] = fe.id, L.value.splice(ve, 0, x);
|
|
2521
|
+
} else
|
|
2522
|
+
L.value.splice(ve, 0, x);
|
|
2522
2523
|
}
|
|
2523
2524
|
}
|
|
2524
|
-
function ne(T,
|
|
2525
|
+
function ne(T, x, L) {
|
|
2525
2526
|
const W = L.value[T], ee = W[i.value];
|
|
2526
2527
|
if (f.get(ee)) {
|
|
2527
|
-
const
|
|
2528
|
-
W[o.value] = !0, W[c.value] = !1,
|
|
2528
|
+
const ve = L.value.findIndex((pe) => pe[i.value] === ee) + 1;
|
|
2529
|
+
W[o.value] = !0, W[c.value] = !1, x[o.value] = !1, x[b.value] = ee, L.value.splice(ve, 0, x);
|
|
2529
2530
|
}
|
|
2530
2531
|
}
|
|
2531
|
-
function re(T,
|
|
2532
|
+
function re(T, x, L) {
|
|
2532
2533
|
const ee = L.value[T][i.value];
|
|
2533
2534
|
if (f.get(ee)) {
|
|
2534
|
-
const
|
|
2535
|
-
let pe =
|
|
2536
|
-
a(
|
|
2535
|
+
const ve = L.value.findIndex((me) => me[i.value] === ee) + 1;
|
|
2536
|
+
let pe = x;
|
|
2537
|
+
a(x) && (pe = R(x)), pe.forEach((me) => {
|
|
2537
2538
|
me[b.value] = ee;
|
|
2538
|
-
}), L.value.splice(
|
|
2539
|
+
}), L.value.splice(ve, 0, ...pe);
|
|
2539
2540
|
}
|
|
2540
2541
|
}
|
|
2541
|
-
function
|
|
2542
|
+
function k(T, x) {
|
|
2542
2543
|
const L = T[i.value], W = f.get(L), ee = Array.from(W.descendant.keys());
|
|
2543
2544
|
ee.unshift(L);
|
|
2544
2545
|
const de = f.get(W.parentId);
|
|
2545
2546
|
if (de && (de.children.delete(L), de.children.size === 0)) {
|
|
2546
|
-
const
|
|
2547
|
-
|
|
2547
|
+
const ve = x.find((pe) => pe[i.value] === W.parentId);
|
|
2548
|
+
ve[o.value] = !1, ve[c.value] = !1;
|
|
2548
2549
|
}
|
|
2549
|
-
return
|
|
2550
|
+
return x.filter((ve) => ee.indexOf(ve.id) === -1);
|
|
2550
2551
|
}
|
|
2551
2552
|
return {
|
|
2552
2553
|
checkVisibleInHierarchy: p,
|
|
@@ -2560,11 +2561,11 @@ function Wn(e, t, l, s) {
|
|
|
2560
2561
|
isVisibleInTree: I,
|
|
2561
2562
|
shouldStratifyData: h,
|
|
2562
2563
|
toggleChildrenVisibiltyByCollapseStatus: U,
|
|
2563
|
-
trimmedOriginalData:
|
|
2564
|
+
trimmedOriginalData: k
|
|
2564
2565
|
};
|
|
2565
2566
|
}
|
|
2566
2567
|
function Kr(e, t, l, s, p) {
|
|
2567
|
-
const { toNumber: h, sum: i, toFixed: c } = yt(), o = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), R = $([]), a = $([]), d = Ln(e, p), { generateGroupData:
|
|
2568
|
+
const { toNumber: h, sum: i, toFixed: c } = yt(), o = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), R = $([]), a = $([]), d = Ln(e, p), { generateGroupData: O, groupFields: S, shouldGroupingData: m } = d, w = $(e.data || []), C = Wn(e, w, s, p), {
|
|
2568
2569
|
collapseTo: _,
|
|
2569
2570
|
expandTo: y,
|
|
2570
2571
|
generateHierarchyData: g,
|
|
@@ -2586,18 +2587,18 @@ function Kr(e, t, l, s, p) {
|
|
|
2586
2587
|
const H = ne.value;
|
|
2587
2588
|
return (H == null ? void 0 : H.groupFields) || [];
|
|
2588
2589
|
});
|
|
2589
|
-
let
|
|
2590
|
-
const T = $(G.value.length),
|
|
2590
|
+
let k = /* @__PURE__ */ new Map();
|
|
2591
|
+
const T = $(G.value.length), x = $(e.pagination);
|
|
2591
2592
|
function L() {
|
|
2592
|
-
return
|
|
2593
|
+
return x.value && x.value.enable && x.value.size > 0 ? x.value.size : G.value.length;
|
|
2593
2594
|
}
|
|
2594
|
-
const W = $(1), ee = X(() =>
|
|
2595
|
-
function
|
|
2595
|
+
const W = $(1), ee = X(() => x.value && x.value.enable && x.value.mode !== "server"), de = X(() => x.value && x.value.enable && x.value.mode === "server"), fe = new Zt();
|
|
2596
|
+
function ve(H, te) {
|
|
2596
2597
|
const se = Math.ceil(H.length / te);
|
|
2597
2598
|
let ce = 0;
|
|
2598
2599
|
const Ce = [], Ie = [], Ue = [];
|
|
2599
2600
|
for (; ce < se; ) {
|
|
2600
|
-
const He = H.slice(ce * te, (ce + 1) * te), Ye =
|
|
2601
|
+
const He = H.slice(ce * te, (ce + 1) * te), Ye = O(S.value, He, t);
|
|
2601
2602
|
Ie[ce] = Ye.filter((ge) => ge.__fv_data_grid_group_row__).length, Ce.push(...Ye), ce++;
|
|
2602
2603
|
}
|
|
2603
2604
|
return Ie.reduce((He, Ye, ge) => (He = He + Ye, Ue.push(He), He), 0), {
|
|
@@ -2608,11 +2609,11 @@ function Kr(e, t, l, s, p) {
|
|
|
2608
2609
|
}
|
|
2609
2610
|
function pe() {
|
|
2610
2611
|
var Ye;
|
|
2611
|
-
G.value = w.value, ee.value && (T.value = G.value.length), m.value && !ee.value && (G.value =
|
|
2612
|
+
G.value = w.value, ee.value && (T.value = G.value.length), m.value && !ee.value && (G.value = O(S.value, w.value, t)), k = re.value.reduce((ge, xe) => (ge.set(xe, 0), ge), k);
|
|
2612
2613
|
const H = 0, te = L(), se = (W.value - 1) * te;
|
|
2613
2614
|
let Ce = se > G.value.length - 1 || de.value ? H : se, Ie = de.value ? G.value.length : Math.min(Ce + te, G.value.length);
|
|
2614
2615
|
if (m.value && ee.value) {
|
|
2615
|
-
const { accumulateGroupRowSize: ge, groupData: xe, groupRowSizeList: ke } =
|
|
2616
|
+
const { accumulateGroupRowSize: ge, groupData: xe, groupRowSizeList: ke } = ve(w.value, te);
|
|
2616
2617
|
G.value = xe;
|
|
2617
2618
|
const Ae = ke[W.value - 1];
|
|
2618
2619
|
Ce += W.value - 2 < 0 ? 0 : ge[W.value - 2], Ie = Ce + te + Ae;
|
|
@@ -2625,14 +2626,14 @@ function Kr(e, t, l, s, p) {
|
|
|
2625
2626
|
for (let xe = Ce; xe < Ie; xe++) {
|
|
2626
2627
|
const ke = G.value[xe];
|
|
2627
2628
|
ke.__fv_data_grid_group_row__ ? (Ue = 0, ke.__fv_data_index__ = "") : ke.__fv_data_grid_group_summary__ ? ke.__fv_data_index__ = "" : (Ue++, ke.__fv_data_index__ = Ue + (W.value - 1) * te), ke.__fv_index__ = xe, ke.__fv_visible_index__ = xe, e.rowOption && e.rowOption.disabledField && (ke.__fv_disabled__ = ke[(Ye = e.rowOption) == null ? void 0 : Ye.disabledField]), ge && (ke[U.value] = xe), re.value.forEach((Ae) => {
|
|
2628
|
-
const dt =
|
|
2629
|
-
|
|
2629
|
+
const dt = k.get(Ae) || 0;
|
|
2630
|
+
k.set(Ae, i([dt, ye(ke, Ae) || 0]));
|
|
2630
2631
|
}), He.push(ke);
|
|
2631
2632
|
}
|
|
2632
2633
|
}
|
|
2633
2634
|
return I.value && g(He), re.value.forEach((ge) => {
|
|
2634
|
-
const xe =
|
|
2635
|
-
|
|
2635
|
+
const xe = k.get(ge) || 0;
|
|
2636
|
+
k.set(ge, c(xe, 2));
|
|
2636
2637
|
}), F.value = [...He], He;
|
|
2637
2638
|
}
|
|
2638
2639
|
const me = $(pe()), De = X(() => (V.value, me.value.filter((H) => I.value ? H.__fv_visible__ !== !1 && A(H) : H.__fv_visible__ !== !1)));
|
|
@@ -2746,7 +2747,7 @@ function Kr(e, t, l, s, p) {
|
|
|
2746
2747
|
if (!(H > -1))
|
|
2747
2748
|
return !1;
|
|
2748
2749
|
const se = E.value();
|
|
2749
|
-
e.hierarchy ? r(H, se, w) : w.value.splice(H, 0, se), oe();
|
|
2750
|
+
return e.hierarchy ? r(H, se, w) : w.value.splice(H, 0, se), oe(), se;
|
|
2750
2751
|
}
|
|
2751
2752
|
function rt(H = 0) {
|
|
2752
2753
|
if (!(H > -1 && e.hierarchy))
|
|
@@ -2779,10 +2780,10 @@ function Kr(e, t, l, s, p) {
|
|
|
2779
2780
|
return Oe(H, Array.from(u.values()));
|
|
2780
2781
|
}
|
|
2781
2782
|
function it(H) {
|
|
2782
|
-
|
|
2783
|
+
x.value.size = H;
|
|
2783
2784
|
}
|
|
2784
2785
|
function K(H) {
|
|
2785
|
-
|
|
2786
|
+
x.value && (it(H), oe());
|
|
2786
2787
|
}
|
|
2787
2788
|
function ie(H, te) {
|
|
2788
2789
|
const se = w.value[Number(H) - 1];
|
|
@@ -2799,30 +2800,30 @@ function Kr(e, t, l, s, p) {
|
|
|
2799
2800
|
return ce > -1 ? F.value[ce] : null;
|
|
2800
2801
|
}).filter((se) => se != null);
|
|
2801
2802
|
}
|
|
2802
|
-
function
|
|
2803
|
+
function he() {
|
|
2803
2804
|
const H = e.summary.groupFields;
|
|
2804
|
-
|
|
2805
|
+
k = H.reduce((te, se) => (te.set(se, 0), te), k);
|
|
2805
2806
|
for (const te of G.value)
|
|
2806
2807
|
H.forEach((se) => {
|
|
2807
|
-
const ce =
|
|
2808
|
-
|
|
2808
|
+
const ce = k.get(se) || 0;
|
|
2809
|
+
k.set(se, i([ce, ye(te, se) || 0]));
|
|
2809
2810
|
});
|
|
2810
2811
|
H.forEach((te) => {
|
|
2811
|
-
const se =
|
|
2812
|
-
|
|
2812
|
+
const se = k.get(te) || 0;
|
|
2813
|
+
k.set(te, c(se, 2));
|
|
2813
2814
|
});
|
|
2814
2815
|
}
|
|
2815
2816
|
function be(H) {
|
|
2816
2817
|
const te = e.summary.groupFields;
|
|
2817
|
-
|
|
2818
|
+
k = te.reduce((se, ce) => (se.set(ce, 0), se), k);
|
|
2818
2819
|
for (const se of H)
|
|
2819
2820
|
te.forEach((ce) => {
|
|
2820
|
-
const Ce =
|
|
2821
|
-
|
|
2821
|
+
const Ce = k.get(ce) || 0;
|
|
2822
|
+
k.set(ce, i([Ce, ye(se.raw, ce) || 0]));
|
|
2822
2823
|
});
|
|
2823
2824
|
te.forEach((se) => {
|
|
2824
|
-
const ce =
|
|
2825
|
-
|
|
2825
|
+
const ce = k.get(se) || 0;
|
|
2826
|
+
k.set(se, c(ce, 2));
|
|
2826
2827
|
});
|
|
2827
2828
|
}
|
|
2828
2829
|
return {
|
|
@@ -2860,15 +2861,15 @@ function Kr(e, t, l, s, p) {
|
|
|
2860
2861
|
reOrderVisibleIndex: ze,
|
|
2861
2862
|
setSorters: B,
|
|
2862
2863
|
sorters: a,
|
|
2863
|
-
summaries:
|
|
2864
|
-
updateSummary:
|
|
2864
|
+
summaries: k,
|
|
2865
|
+
updateSummary: he,
|
|
2865
2866
|
toggleChildrenVisibiltyByCollapseStatus: J,
|
|
2866
2867
|
totalItems: T,
|
|
2867
2868
|
unFold: $e,
|
|
2868
2869
|
updateDataView: oe,
|
|
2869
2870
|
visibleDataItems: De,
|
|
2870
2871
|
shouldGroupingData: m,
|
|
2871
|
-
pagination:
|
|
2872
|
+
pagination: x,
|
|
2872
2873
|
updateVisibleDataSummary: be
|
|
2873
2874
|
// getVisibleDataItems
|
|
2874
2875
|
};
|
|
@@ -3137,7 +3138,7 @@ function Xr(e, t) {
|
|
|
3137
3138
|
}), g = C.children && C.children.length ? C.children.map((n) => d(n)) : [];
|
|
3138
3139
|
return { relation: _, filterFunctions: y, children: g };
|
|
3139
3140
|
}
|
|
3140
|
-
function
|
|
3141
|
+
function O() {
|
|
3141
3142
|
const C = p(l.value);
|
|
3142
3143
|
return d(C);
|
|
3143
3144
|
}
|
|
@@ -3146,7 +3147,7 @@ function Xr(e, t) {
|
|
|
3146
3147
|
return _.relation === 1 ? y.every((n) => n) && g.every((n) => n) : y.includes(!0) || g.includes(!0);
|
|
3147
3148
|
}
|
|
3148
3149
|
function m(C) {
|
|
3149
|
-
const _ =
|
|
3150
|
+
const _ = O();
|
|
3150
3151
|
return S(C, _);
|
|
3151
3152
|
}
|
|
3152
3153
|
function w(C) {
|
|
@@ -3238,11 +3239,11 @@ function Yn(e, t, l, s, p) {
|
|
|
3238
3239
|
E.__fv_disabled__ = !0;
|
|
3239
3240
|
})), r;
|
|
3240
3241
|
}
|
|
3241
|
-
function
|
|
3242
|
+
function O(g, n) {
|
|
3242
3243
|
let r = g.map((I) => I[o.value]);
|
|
3243
3244
|
return n.__fv_parent_index__ > 0 && (r = a(r, n.__fv_parent_index__)), n.__fv_children_index__.length > 0 && (r = d(r, n)), g.filter((I) => r.includes(I[o.value]));
|
|
3244
3245
|
}
|
|
3245
|
-
return { autoCheckChildren: b, autoCheckParent: f, interactAfterCheckHierarchyItem:
|
|
3246
|
+
return { autoCheckChildren: b, autoCheckParent: f, interactAfterCheckHierarchyItem: O };
|
|
3246
3247
|
}
|
|
3247
3248
|
function Zr(e, t, l, s, p, h) {
|
|
3248
3249
|
const { getDifference: i, isBInA: c } = pt(), { dataView: o } = l, {
|
|
@@ -3253,7 +3254,7 @@ function Zr(e, t, l, s, p, h) {
|
|
|
3253
3254
|
indeterminateDataItem: R,
|
|
3254
3255
|
getSelectedItems: a,
|
|
3255
3256
|
selectedValues: d,
|
|
3256
|
-
currentSelectedDataId:
|
|
3257
|
+
currentSelectedDataId: O,
|
|
3257
3258
|
isSingleSelect: S,
|
|
3258
3259
|
emitSelectionChanged: m
|
|
3259
3260
|
} = p, { autoCheckChildren: w, autoCheckParent: C, interactAfterCheckHierarchyItem: _ } = Yn(e, t, l, s), { idField: y } = s;
|
|
@@ -3269,7 +3270,7 @@ function Zr(e, t, l, s, p, h) {
|
|
|
3269
3270
|
ne.add(z[y.value]), d.value = Array.from(ne.values()), M.checked = !0, M.indeterminate = !1;
|
|
3270
3271
|
}
|
|
3271
3272
|
function r(M) {
|
|
3272
|
-
M.raw[y.value] !==
|
|
3273
|
+
M.raw[y.value] !== O.value && (b(), n(M));
|
|
3273
3274
|
}
|
|
3274
3275
|
function N(M) {
|
|
3275
3276
|
if (M.disabled)
|
|
@@ -3287,14 +3288,14 @@ function Zr(e, t, l, s, p, h) {
|
|
|
3287
3288
|
}
|
|
3288
3289
|
}
|
|
3289
3290
|
function A(M) {
|
|
3290
|
-
const z = t.value.filter((
|
|
3291
|
-
const T =
|
|
3291
|
+
const z = t.value.filter((k) => M.includes(k.raw[y.value])), ne = z.map((k) => k.raw[y.value]), re = o.value.filter((k) => {
|
|
3292
|
+
const T = k[y.value];
|
|
3292
3293
|
return !ne.includes(T) && M.includes(T);
|
|
3293
3294
|
});
|
|
3294
|
-
(z.length || re.length) && S.value && (
|
|
3295
|
-
n(
|
|
3296
|
-
}), re.forEach((
|
|
3297
|
-
f(
|
|
3295
|
+
(z.length || re.length) && S.value && (O.value = M[0]), z.forEach((k) => {
|
|
3296
|
+
n(k);
|
|
3297
|
+
}), re.forEach((k) => {
|
|
3298
|
+
f(k);
|
|
3298
3299
|
}), m();
|
|
3299
3300
|
}
|
|
3300
3301
|
function I(M) {
|
|
@@ -3305,7 +3306,7 @@ function Zr(e, t, l, s, p, h) {
|
|
|
3305
3306
|
if (ne)
|
|
3306
3307
|
N(ne);
|
|
3307
3308
|
else {
|
|
3308
|
-
const re = o.value.find((
|
|
3309
|
+
const re = o.value.find((k) => k[y.value] === z);
|
|
3309
3310
|
re && v(re);
|
|
3310
3311
|
}
|
|
3311
3312
|
}
|
|
@@ -3320,15 +3321,15 @@ function Zr(e, t, l, s, p, h) {
|
|
|
3320
3321
|
M.raw.__fv_children_index__.some((re) => z.includes(re)) && !!M.checked !== !0 && u(M);
|
|
3321
3322
|
}
|
|
3322
3323
|
function Y(M, z, ne) {
|
|
3323
|
-
const { check: re, uncheck:
|
|
3324
|
-
z.length ===
|
|
3324
|
+
const { check: re, uncheck: k, uncertain: T } = ne, x = M.raw ? M.raw : M;
|
|
3325
|
+
z.length === x.__fv_children_index__.length && z.length !== 0 ? k(M) : z.length === 0 ? re(M) : z.length < x.__fv_children_index__.length && T(M);
|
|
3325
3326
|
}
|
|
3326
3327
|
function V(M) {
|
|
3327
3328
|
if (!C.value)
|
|
3328
3329
|
return;
|
|
3329
3330
|
let z = M.raw.__fv_parent_index__;
|
|
3330
3331
|
for (; z !== void 0; ) {
|
|
3331
|
-
const ne = g(), re = o.value[z],
|
|
3332
|
+
const ne = g(), re = o.value[z], k = i(re.__fv_children_index__, ne), T = t.value.find((W) => W.raw[y.value] === re[y.value]), x = re.__fv_visible__ !== !1 && T ? T : re, L = re.__fv_visible__ !== !1 && T ? {
|
|
3332
3333
|
check: n,
|
|
3333
3334
|
uncheck: N,
|
|
3334
3335
|
uncertain: u
|
|
@@ -3337,22 +3338,22 @@ function Zr(e, t, l, s, p, h) {
|
|
|
3337
3338
|
uncheck: v,
|
|
3338
3339
|
uncertain: R
|
|
3339
3340
|
};
|
|
3340
|
-
Y(
|
|
3341
|
+
Y(x, k, L), z = re.__fv_parent_index__;
|
|
3341
3342
|
}
|
|
3342
3343
|
}
|
|
3343
3344
|
function U(M) {
|
|
3344
3345
|
const z = !!M.checked;
|
|
3345
3346
|
if (w.value) {
|
|
3346
|
-
const re = M.raw.__fv_children_index__.map((ee) => o.value[ee]).filter((ee) => !!ee.__fv_checked__ !== z),
|
|
3347
|
+
const re = M.raw.__fv_children_index__.map((ee) => o.value[ee]).filter((ee) => !!ee.__fv_checked__ !== z), k = re.filter((ee) => ee.__fv_visible__ === !1), T = re.filter((ee) => ee.__fv_visible__ !== !1), x = [], L = /* @__PURE__ */ new Map();
|
|
3347
3348
|
t.value.forEach((ee) => {
|
|
3348
3349
|
L.set(ee.raw[y.value], ee);
|
|
3349
3350
|
});
|
|
3350
3351
|
const W = [];
|
|
3351
3352
|
T.forEach((ee) => {
|
|
3352
|
-
L.has(ee[y.value]) ?
|
|
3353
|
-
}),
|
|
3353
|
+
L.has(ee[y.value]) ? x.push(L.get(ee[y.value])) : W.push(ee);
|
|
3354
|
+
}), x.forEach((ee) => {
|
|
3354
3355
|
z ? n(ee) : N(ee);
|
|
3355
|
-
}), [...
|
|
3356
|
+
}), [...k, ...W].forEach((ee) => {
|
|
3356
3357
|
z ? f(ee) : v(ee);
|
|
3357
3358
|
});
|
|
3358
3359
|
}
|
|
@@ -3362,14 +3363,14 @@ function Zr(e, t, l, s, p, h) {
|
|
|
3362
3363
|
const z = M.raw;
|
|
3363
3364
|
let ne = a();
|
|
3364
3365
|
ne = _(ne, z), J(M);
|
|
3365
|
-
const re = ne.map((
|
|
3366
|
+
const re = ne.map((k) => k[y.value]);
|
|
3366
3367
|
h.emit("selectionUpdate", ne, re), M.checked ? h.emit("selectItem", M) : h.emit("unSelectItem", M);
|
|
3367
3368
|
}
|
|
3368
3369
|
function E(M, z) {
|
|
3369
3370
|
let ne = -1;
|
|
3370
3371
|
if (M.raw.__fv_parent_index__ > -1) {
|
|
3371
|
-
const
|
|
3372
|
-
ne = L ? ee ?
|
|
3372
|
+
const x = t.value[M.raw.__fv_parent_index__].raw.__fv_descendant_index__, L = x.length > 1, W = x.findIndex((de) => de === z), ee = W === x.length - 1;
|
|
3373
|
+
ne = L ? ee ? x[W - 1] : x[W + 1] : -1;
|
|
3373
3374
|
}
|
|
3374
3375
|
return ne > -1 ? t.value[ne] : null;
|
|
3375
3376
|
}
|
|
@@ -3380,8 +3381,8 @@ function Zr(e, t, l, s, p, h) {
|
|
|
3380
3381
|
const z = t.value[M];
|
|
3381
3382
|
if (!z)
|
|
3382
3383
|
return null;
|
|
3383
|
-
const ne = E(z, M),
|
|
3384
|
-
return
|
|
3384
|
+
const ne = E(z, M), k = ne !== null ? ne : G(z);
|
|
3385
|
+
return k ? k.raw[y.value] : null;
|
|
3385
3386
|
}
|
|
3386
3387
|
return {
|
|
3387
3388
|
getNextSelectableHierarchyItemId: F,
|
|
@@ -3395,7 +3396,7 @@ function Zr(e, t, l, s, p, h) {
|
|
|
3395
3396
|
}
|
|
3396
3397
|
function Qr(e, t, l, s, p, h, i, c, o) {
|
|
3397
3398
|
var it;
|
|
3398
|
-
const { dataView: b, visibleDataItems: f } = t, { getVisualData: v, maxVisibleRowIndex: u, minVisibleRowIndex: R } = p, a = X(() => s.value.primaryColumnsWidth), d = X(() => s.value.leftColumnsWidth),
|
|
3399
|
+
const { dataView: b, visibleDataItems: f } = t, { getVisualData: v, maxVisibleRowIndex: u, minVisibleRowIndex: R } = p, a = X(() => s.value.primaryColumnsWidth), d = X(() => s.value.leftColumnsWidth), O = X(() => s.value.rightColumnsWidth), S = ((it = e.rowOption) == null ? void 0 : it.height) || 28, m = $(0), w = $(0);
|
|
3399
3400
|
let C = 0, _ = h.value - 1;
|
|
3400
3401
|
const y = $(0), g = $(0), n = $(0), r = $(e.virtualized), N = 24, q = 1.5;
|
|
3401
3402
|
let A = null, I = null, J = null;
|
|
@@ -3412,26 +3413,26 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3412
3413
|
for (; g.value > 0 && ue < N; )
|
|
3413
3414
|
ie *= q, ue = Math.floor(ie * g.value);
|
|
3414
3415
|
return ue;
|
|
3415
|
-
}), U = X(() => Math.floor(n.value / Math.max(a.value, n.value) * y.value)), Z = 0, E = 0, G = X(() => y.value - (d.value + a.value +
|
|
3416
|
+
}), U = X(() => Math.floor(n.value / Math.max(a.value, n.value) * y.value)), Z = 0, E = 0, G = X(() => y.value - (d.value + a.value + O.value + c.value));
|
|
3416
3417
|
function F(K) {
|
|
3417
|
-
const ue = Math.floor(K / S) + 1,
|
|
3418
|
-
return
|
|
3418
|
+
const ue = Math.floor(K / S) + 1, he = f.value;
|
|
3419
|
+
return he.length > ue ? he[ue].__fv_visible_index__ - 1 : 0;
|
|
3419
3420
|
}
|
|
3420
3421
|
function M(K, ie, ue) {
|
|
3421
|
-
let
|
|
3422
|
+
let he = K, be = ie;
|
|
3422
3423
|
const H = ie - K + 1;
|
|
3423
3424
|
if (H < i + h.value + i) {
|
|
3424
3425
|
const te = i + h.value + i - H, se = ie + te <= ue, ce = 0 + te <= K;
|
|
3425
3426
|
if (se)
|
|
3426
3427
|
be += te, _ = be;
|
|
3427
3428
|
else if (ce)
|
|
3428
|
-
|
|
3429
|
+
he -= te, C = he;
|
|
3429
3430
|
else {
|
|
3430
3431
|
const Ce = ue - ie, Ie = te - Ce;
|
|
3431
|
-
be = Math.min(ie + Ce, ue),
|
|
3432
|
+
be = Math.min(ie + Ce, ue), he = Math.max(K - Ie, 0);
|
|
3432
3433
|
}
|
|
3433
3434
|
}
|
|
3434
|
-
return { actualStart:
|
|
3435
|
+
return { actualStart: he, actualEnd: be };
|
|
3435
3436
|
}
|
|
3436
3437
|
function z(K) {
|
|
3437
3438
|
var Ce, Ie;
|
|
@@ -3440,23 +3441,23 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3440
3441
|
l.value = [];
|
|
3441
3442
|
return;
|
|
3442
3443
|
}
|
|
3443
|
-
const ue = (Ce = e.pagination) != null && Ce.enable ? 0 : Math.max(C - i, 0),
|
|
3444
|
+
const ue = (Ce = e.pagination) != null && Ce.enable ? 0 : Math.max(C - i, 0), he = ie[ie.length - 1].__fv_visible_index__, be = (Ie = e.pagination) != null && Ie.enable ? ie.length - 1 : Math.min(_ + i, he), { actualStart: H, actualEnd: te } = M(ue, be, he), se = ie[H - 1], ce = v(H, te, se, K);
|
|
3444
3445
|
ce.length && (l.value = [...ce]);
|
|
3445
3446
|
}
|
|
3446
3447
|
const ne = X(() => Y() > g.value), re = X(() => Math.floor(a.value) > n.value);
|
|
3447
|
-
function
|
|
3448
|
+
function k(K, ie) {
|
|
3448
3449
|
let ue = K;
|
|
3449
|
-
const
|
|
3450
|
-
be && ue < g.value - ie && (ue = g.value - ie), (!be ||
|
|
3450
|
+
const he = ue > Z, be = ne.value;
|
|
3451
|
+
be && ue < g.value - ie && (ue = g.value - ie), (!be || he) && (ue = Z), m.value !== ue && (m.value = ue);
|
|
3451
3452
|
}
|
|
3452
3453
|
function T() {
|
|
3453
3454
|
r.value && (C = F(Math.abs(m.value)), _ = C + h.value - 1, (C < R.value || _ > u.value - i / 2) && z());
|
|
3454
3455
|
}
|
|
3455
|
-
function
|
|
3456
|
+
function x(K) {
|
|
3456
3457
|
let ie = m.value + K;
|
|
3457
3458
|
ie > Z && (ie = Z);
|
|
3458
3459
|
const ue = Y();
|
|
3459
|
-
|
|
3460
|
+
k(ie, ue), T();
|
|
3460
3461
|
}
|
|
3461
3462
|
function L(K) {
|
|
3462
3463
|
if (!re.value) {
|
|
@@ -3474,23 +3475,23 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3474
3475
|
}
|
|
3475
3476
|
function de() {
|
|
3476
3477
|
const K = Y();
|
|
3477
|
-
|
|
3478
|
+
k(m.value, K);
|
|
3478
3479
|
}
|
|
3479
3480
|
Se([n, a], () => {
|
|
3480
3481
|
L(0);
|
|
3481
3482
|
}), Se(g, (K, ie) => {
|
|
3482
|
-
K !== ie && K >= b.value.length * S &&
|
|
3483
|
+
K !== ie && K >= b.value.length * S && x(0);
|
|
3483
3484
|
});
|
|
3484
3485
|
function fe(K) {
|
|
3485
3486
|
let { deltaX: ie } = K, ue = -1 * K.deltaY;
|
|
3486
3487
|
return typeof ie > "u" && (ie = -1 * K.wheelDeltaX / 6), typeof ue > "u" && (ue = K.wheelDeltaY / 6), K.deltaMode && K.deltaMode === 1 && (ie *= 10, ue *= 10), K.shiftKey ? { deltaY: -ue, deltaX: -ie } : { deltaX: ie, deltaY: ue };
|
|
3487
3488
|
}
|
|
3488
|
-
function
|
|
3489
|
+
function ve(K) {
|
|
3489
3490
|
if (e.disabled || !ne.value || K.target.tagName === "TEXTAREA")
|
|
3490
3491
|
return;
|
|
3491
3492
|
K.preventDefault(), K.stopPropagation();
|
|
3492
3493
|
const { deltaX: ie, deltaY: ue } = fe(K);
|
|
3493
|
-
|
|
3494
|
+
x(ue), L(ie);
|
|
3494
3495
|
}
|
|
3495
3496
|
const pe = X(() => ({
|
|
3496
3497
|
height: `${b.value.length * S}px`,
|
|
@@ -3506,7 +3507,7 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3506
3507
|
transform: `translate(${w.value}px, ${m.value}px)`
|
|
3507
3508
|
})), Oe = X(() => ({
|
|
3508
3509
|
height: `${b.value.length * S}px`,
|
|
3509
|
-
width: `${
|
|
3510
|
+
width: `${O.value}px`,
|
|
3510
3511
|
transform: `translateY(${m.value}px)`
|
|
3511
3512
|
})), B = X(() => ({
|
|
3512
3513
|
transform: `translateY(${m.value}px)`
|
|
@@ -3519,10 +3520,10 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3519
3520
|
})), P = X(() => ({
|
|
3520
3521
|
transform: `translateX(${w.value}px)`
|
|
3521
3522
|
})), Q = X(() => ({
|
|
3522
|
-
width: `${
|
|
3523
|
+
width: `${O.value}px`
|
|
3523
3524
|
})), _e = X(() => {
|
|
3524
3525
|
const K = Y();
|
|
3525
|
-
return
|
|
3526
|
+
return k(m.value, K), m.value / (g.value - K) * (g.value - V.value);
|
|
3526
3527
|
}), Me = X(() => ({
|
|
3527
3528
|
width: "8px",
|
|
3528
3529
|
height: `${V.value}px`,
|
|
@@ -3538,26 +3539,26 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3538
3539
|
if (K instanceof MouseEvent ? K.pageX : K.touches[0].pageX, je.value && Re.value !== -1) {
|
|
3539
3540
|
const ie = Re.value - K.pageX, ue = y.value - U.value;
|
|
3540
3541
|
if (Math.abs(ie) <= ue) {
|
|
3541
|
-
const
|
|
3542
|
-
L(
|
|
3542
|
+
const he = ie / (n.value - U.value) * (a.value - n.value);
|
|
3543
|
+
L(he), Re.value = K.pageX;
|
|
3543
3544
|
}
|
|
3544
3545
|
}
|
|
3545
3546
|
}
|
|
3546
3547
|
function Ee(K) {
|
|
3547
3548
|
if (je.value && Pe.value !== -1) {
|
|
3548
|
-
const ie = Pe.value - K.pageY, ue = Y(),
|
|
3549
|
-
if (Math.abs(ie) <=
|
|
3549
|
+
const ie = Pe.value - K.pageY, ue = Y(), he = ue - V.value;
|
|
3550
|
+
if (Math.abs(ie) <= he) {
|
|
3550
3551
|
const be = ie / (g.value - V.value) * (ue - g.value);
|
|
3551
|
-
|
|
3552
|
+
x(be), Pe.value = K.pageY;
|
|
3552
3553
|
}
|
|
3553
3554
|
}
|
|
3554
3555
|
}
|
|
3555
3556
|
function Te(K) {
|
|
3556
3557
|
const { pageX: ie, pageY: ue } = K.touches[0];
|
|
3557
3558
|
if (je.value && Re.value !== -1) {
|
|
3558
|
-
const
|
|
3559
|
-
if (Math.abs(
|
|
3560
|
-
const H =
|
|
3559
|
+
const he = Re.value - ie, be = y.value - U.value;
|
|
3560
|
+
if (Math.abs(he) <= be) {
|
|
3561
|
+
const H = he / (n.value - U.value) * (a.value - n.value);
|
|
3561
3562
|
L(H), Re.value = ie;
|
|
3562
3563
|
}
|
|
3563
3564
|
}
|
|
@@ -3565,10 +3566,10 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3565
3566
|
function Ve(K) {
|
|
3566
3567
|
const { pageX: ie, pageY: ue } = K.touches[0];
|
|
3567
3568
|
if (je.value && Pe.value !== -1) {
|
|
3568
|
-
const
|
|
3569
|
-
if (Math.abs(
|
|
3570
|
-
const te =
|
|
3571
|
-
|
|
3569
|
+
const he = Pe.value - ue, be = Y(), H = be - V.value;
|
|
3570
|
+
if (Math.abs(he) <= H) {
|
|
3571
|
+
const te = he / (g.value - V.value) * (be - g.value);
|
|
3572
|
+
x(te), Pe.value = ue;
|
|
3572
3573
|
}
|
|
3573
3574
|
}
|
|
3574
3575
|
}
|
|
@@ -3581,35 +3582,35 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3581
3582
|
function rt(K, ie, ue) {
|
|
3582
3583
|
var se;
|
|
3583
3584
|
o == null || o.onClickOutOfCell(K), je.value = !0;
|
|
3584
|
-
const
|
|
3585
|
-
|
|
3585
|
+
const he = (se = K.target) == null ? void 0 : se.parentElement;
|
|
3586
|
+
he && (he.style.opacity = "1", $e.value = he);
|
|
3586
3587
|
const be = ue === "horizontal" ? oe : wt(Ee, 50);
|
|
3587
3588
|
A || (A = be);
|
|
3588
3589
|
const { pageX: H } = K, { pageY: te } = K;
|
|
3589
3590
|
ue === "vertical" && (Pe.value = K.pageY), ue === "horizontal" && (Re.value = K.pageX), ie.value && (ie.value, document.addEventListener("mousemove", A), document.addEventListener("mouseup", Le), document.body.style.userSelect = "none");
|
|
3590
3591
|
}
|
|
3591
3592
|
function Je(K) {
|
|
3592
|
-
const { pageX: ie, pageY: ue } = K.touches[0],
|
|
3593
|
-
be >
|
|
3593
|
+
const { pageX: ie, pageY: ue } = K.touches[0], he = Math.abs(ie - Re.value), be = Math.abs(ue - Pe.value);
|
|
3594
|
+
be > he && be > 5 ? (J || (J = wt(Ve, 50)), document.addEventListener("touchmove", J), document.removeEventListener("touchmove", Je)) : he > be && he > 5 && (I || (I = Te), document.addEventListener("touchmove", I), document.removeEventListener("touchmove", Je)), Re.value = ie, Pe.value = ue;
|
|
3594
3595
|
}
|
|
3595
3596
|
function We(K, ie) {
|
|
3596
3597
|
var H;
|
|
3597
3598
|
o == null || o.onClickOutOfCell(K), je.value = !0;
|
|
3598
3599
|
const ue = (H = K.target) == null ? void 0 : H.parentElement;
|
|
3599
3600
|
ue && (ue.style.opacity = "1", $e.value = ue);
|
|
3600
|
-
const { pageX:
|
|
3601
|
-
Re.value =
|
|
3601
|
+
const { pageX: he, pageY: be } = K.touches[0];
|
|
3602
|
+
Re.value = he, Pe.value = be, ie.value && (ie.value, document.addEventListener("touchmove", Je), document.addEventListener("touchend", Ge), document.body.style.userSelect = "none");
|
|
3602
3603
|
}
|
|
3603
3604
|
function at(K) {
|
|
3604
3605
|
const ie = b.value.length * S - g.value;
|
|
3605
3606
|
let ue = K * S;
|
|
3606
|
-
ue >= ie && (ue = ie),
|
|
3607
|
+
ue >= ie && (ue = ie), x(-ue - m.value);
|
|
3607
3608
|
}
|
|
3608
3609
|
function ut() {
|
|
3609
3610
|
at(b.value.length);
|
|
3610
3611
|
}
|
|
3611
3612
|
function ct(K) {
|
|
3612
|
-
|
|
3613
|
+
x(K - m.value);
|
|
3613
3614
|
}
|
|
3614
3615
|
return {
|
|
3615
3616
|
dataGridWidth: y,
|
|
@@ -3625,7 +3626,7 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3625
3626
|
offsetX: w,
|
|
3626
3627
|
offsetY: m,
|
|
3627
3628
|
onMouseDownScrollThumb: rt,
|
|
3628
|
-
onWheel:
|
|
3629
|
+
onWheel: ve,
|
|
3629
3630
|
reCalculateVisualDataRows: z,
|
|
3630
3631
|
resetScroll: ee,
|
|
3631
3632
|
rightFixedGridDataStyle: Oe,
|
|
@@ -3646,16 +3647,16 @@ function Qr(e, t, l, s, p, h, i, c, o) {
|
|
|
3646
3647
|
}
|
|
3647
3648
|
function el(e, t, l, s, p, h, i, c) {
|
|
3648
3649
|
const o = $(s.value - 1 + p), b = $(0), { renderDataRow: f } = h, v = i ? i.renderGroupRow : f, u = c ? c.renderSummaryRow : f;
|
|
3649
|
-
function R(
|
|
3650
|
+
function R(O) {
|
|
3650
3651
|
let S = f;
|
|
3651
|
-
return
|
|
3652
|
+
return O.__fv_data_grid_group_row__ && (S = v), O.__fv_data_grid_group_summary__ && (S = u), S;
|
|
3652
3653
|
}
|
|
3653
|
-
function a(
|
|
3654
|
+
function a(O, S, m, w) {
|
|
3654
3655
|
const { dataView: C, visibleDataItems: _ } = l, y = [], g = e.virtualized ? _.value : C.value;
|
|
3655
3656
|
if (g.length > 0) {
|
|
3656
3657
|
const n = w ? Date.now().toString() : "";
|
|
3657
|
-
let r =
|
|
3658
|
-
const q = S -
|
|
3658
|
+
let r = O, N = 0;
|
|
3659
|
+
const q = S - O + 1;
|
|
3659
3660
|
for (; y.length < q && r < g.length; ) {
|
|
3660
3661
|
const A = g[r], I = g[r - 1] || m, J = y[N - 1], Y = I ? (I.__fv_data_position__ || 0) + (I.__fv_data_height__ || 0) : 0, U = R(A)(A, I, J, r, Y, t.value);
|
|
3661
3662
|
U.refreshKey = n, U.visible && (y.push(U), N++), r++;
|
|
@@ -3663,9 +3664,9 @@ function el(e, t, l, s, p, h, i, c) {
|
|
|
3663
3664
|
}
|
|
3664
3665
|
return b.value = y.length > 0 ? y[0].raw.__fv_visible_index__ : 0, o.value = y.length > 0 ? y[y.length - 1].raw.__fv_visible_index__ : 0, y;
|
|
3665
3666
|
}
|
|
3666
|
-
function d(
|
|
3667
|
+
function d(O, S, m) {
|
|
3667
3668
|
const w = S.groupField || "", { groupValue: C, raw: _ } = S;
|
|
3668
|
-
l[
|
|
3669
|
+
l[O](w, C, _.groupParents || []);
|
|
3669
3670
|
const { dataView: y } = l, g = m[0].index, n = Math.min(g + s.value + p + 1, y.value.length - 1);
|
|
3670
3671
|
return a(g, n);
|
|
3671
3672
|
}
|
|
@@ -3701,7 +3702,7 @@ function Kn() {
|
|
|
3701
3702
|
if (!l.data || !l.data.length)
|
|
3702
3703
|
return "";
|
|
3703
3704
|
const s = Object.prototype.hasOwnProperty.call(l, "valueField") && l.valueField || "value", p = Object.prototype.hasOwnProperty.call(l, "textField") && l.textField || "name";
|
|
3704
|
-
if (t != null && t.includes(",")) {
|
|
3705
|
+
if (typeof t == "string" && (t != null && t.includes(","))) {
|
|
3705
3706
|
const o = t.split(",");
|
|
3706
3707
|
if (!l.data.filter((u) => o.includes(u[s])).length)
|
|
3707
3708
|
return "";
|
|
@@ -3888,11 +3889,11 @@ function nl(e, t, l) {
|
|
|
3888
3889
|
function d(m, w, C, _) {
|
|
3889
3890
|
a(m, w), f(m, w, _), v(m, w), R(m, C, w);
|
|
3890
3891
|
}
|
|
3891
|
-
function
|
|
3892
|
+
function O(m, w, C, _, y) {
|
|
3892
3893
|
const g = e.editable ? Ne.editable : Ne.readonly, n = b(m.field, g, w, C, _);
|
|
3893
3894
|
return d(n, m, y, C), n;
|
|
3894
3895
|
}
|
|
3895
|
-
return { createCellByColumn:
|
|
3896
|
+
return { createCellByColumn: O, createCellByField: b, updateCellByColumn: d };
|
|
3896
3897
|
}
|
|
3897
3898
|
function rl(e, t, l, s, p, h, i) {
|
|
3898
3899
|
var w, C;
|
|
@@ -3921,23 +3922,23 @@ function rl(e, t, l, s, p, h, i) {
|
|
|
3921
3922
|
checked: Z,
|
|
3922
3923
|
disabled: G,
|
|
3923
3924
|
indeterminate: E,
|
|
3924
|
-
setRef: (
|
|
3925
|
-
M.ref =
|
|
3925
|
+
setRef: (k) => {
|
|
3926
|
+
M.ref = k;
|
|
3926
3927
|
},
|
|
3927
3928
|
visible: U && F || U && !e.hierarchy,
|
|
3928
3929
|
status: Xe.initial,
|
|
3929
|
-
updateCell: (
|
|
3930
|
-
a(
|
|
3930
|
+
updateCell: (k, T) => {
|
|
3931
|
+
a(k, g, M, T), t.updateSummary();
|
|
3931
3932
|
},
|
|
3932
|
-
updateCells: (
|
|
3933
|
-
T.forEach((
|
|
3934
|
-
a(
|
|
3933
|
+
updateCells: (k, T) => {
|
|
3934
|
+
T.forEach((x) => {
|
|
3935
|
+
a(k, g, M, x);
|
|
3935
3936
|
});
|
|
3936
3937
|
}
|
|
3937
3938
|
};
|
|
3938
3939
|
return n || (g.__fv_data_position__ = 0), b || (M.height = o, g.__fv_data_height__ = M.height, u(M, g)), (re = c.value) != null && re.customRowStatus && (c.value.customRowStatus(M), g.__fv_disabled__ = M.disabled), M;
|
|
3939
3940
|
}
|
|
3940
|
-
function
|
|
3941
|
+
function O(_, y, g, n, r, N) {
|
|
3941
3942
|
const q = d(tt.data, r, y, g, n, N);
|
|
3942
3943
|
return _.forEach((A, I) => {
|
|
3943
3944
|
q.data[A.field] = R(A, I, y, q, n);
|
|
@@ -3948,7 +3949,7 @@ function rl(e, t, l, s, p, h, i) {
|
|
|
3948
3949
|
}
|
|
3949
3950
|
function m(_, y, g, n, r, N) {
|
|
3950
3951
|
const q = _.__fv_data_index__, A = _[f.value], I = l.getEditingSnapshot(A);
|
|
3951
|
-
return I === null ?
|
|
3952
|
+
return I === null ? O(
|
|
3952
3953
|
N,
|
|
3953
3954
|
_,
|
|
3954
3955
|
y,
|
|
@@ -3957,7 +3958,7 @@ function rl(e, t, l, s, p, h, i) {
|
|
|
3957
3958
|
r
|
|
3958
3959
|
) : S(I, n, q, r, y);
|
|
3959
3960
|
}
|
|
3960
|
-
return { createEmptyRow: d, createNewRowFromDataItem:
|
|
3961
|
+
return { createEmptyRow: d, createNewRowFromDataItem: O, renderDataRow: m };
|
|
3961
3962
|
}
|
|
3962
3963
|
function ll(e, t, l, s) {
|
|
3963
3964
|
const p = $(e.summary), { idField: h } = t, { createCellByField: i } = l, { createEmptyRow: c } = s, o = X(() => {
|
|
@@ -3969,8 +3970,8 @@ function ll(e, t, l, s) {
|
|
|
3969
3970
|
});
|
|
3970
3971
|
function f(u, R, a, d) {
|
|
3971
3972
|
if (b.value) {
|
|
3972
|
-
const
|
|
3973
|
-
let S =
|
|
3973
|
+
const O = u.data[R];
|
|
3974
|
+
let S = O.colSpan;
|
|
3974
3975
|
const m = o.value.reduce((w, C) => (w.set(C, !0), w), /* @__PURE__ */ new Map());
|
|
3975
3976
|
d.reduce((w, C, _) => {
|
|
3976
3977
|
if (m.has(C.field)) {
|
|
@@ -3978,11 +3979,11 @@ function ll(e, t, l, s) {
|
|
|
3978
3979
|
u.data[C.field] = y, S - 1 > _ && (S = _);
|
|
3979
3980
|
}
|
|
3980
3981
|
return w;
|
|
3981
|
-
}, u),
|
|
3982
|
+
}, u), O.colSpan = S;
|
|
3982
3983
|
}
|
|
3983
3984
|
}
|
|
3984
|
-
function v(u, R, a, d,
|
|
3985
|
-
const w = u.__fv_data_grid_group_field__, C = c(tt.group, d, u, R, a,
|
|
3985
|
+
function v(u, R, a, d, O, S, m) {
|
|
3986
|
+
const w = u.__fv_data_grid_group_field__, C = c(tt.group, d, u, R, a, O);
|
|
3986
3987
|
return C.data[h.value] = i(h.value, Ne.readonly, -1, u, C, 0), C.data[w] = i(w, Ne.readonly, 1, u, C, S.length), f(C, w, u, S), C;
|
|
3987
3988
|
}
|
|
3988
3989
|
return { renderGroupRow: v };
|
|
@@ -3990,8 +3991,8 @@ function ll(e, t, l, s) {
|
|
|
3990
3991
|
function il(e, t, l, s) {
|
|
3991
3992
|
const { idField: p } = t, { createCellByField: h } = l, { createEmptyRow: i } = s;
|
|
3992
3993
|
function c(o, b, f, v, u, R, a) {
|
|
3993
|
-
const d = o.__fv_data_grid_group_field__,
|
|
3994
|
-
return
|
|
3994
|
+
const d = o.__fv_data_grid_group_field__, O = i(tt.summary, v, o, b, f, u);
|
|
3995
|
+
return O.data[p.value] = h(p.value, Ne.readonly, -1, o, O), O.data[d] = h(d, Ne.readonly, 1, o, O, R.length), O;
|
|
3995
3996
|
}
|
|
3996
3997
|
return { renderSummaryRow: c };
|
|
3997
3998
|
}
|
|
@@ -4005,56 +4006,56 @@ function al(e, t, l, s, p) {
|
|
|
4005
4006
|
onClickRow: v,
|
|
4006
4007
|
onClickRowExcludeDblclick: u
|
|
4007
4008
|
} = s, R = /* @__PURE__ */ new Map([["boolean", "check-box"], ["datetime", "date-picker"], ["enum", "combo-list"], ["number", "number-spinner"], ["string", "input-group"], ["text", "text"], ["commands", "commands-editor"]]);
|
|
4008
|
-
let a, d,
|
|
4009
|
-
function w(
|
|
4010
|
-
return d && d.raw[c.value] ===
|
|
4009
|
+
let a, d, O, S, m;
|
|
4010
|
+
function w(k) {
|
|
4011
|
+
return d && d.raw[c.value] === k ? d : null;
|
|
4011
4012
|
}
|
|
4012
4013
|
const C = Lt({});
|
|
4013
|
-
function _(
|
|
4014
|
-
return (
|
|
4014
|
+
function _(k) {
|
|
4015
|
+
return (k == null ? void 0 : k.field) !== Mt && (k == null ? void 0 : k.field) !== Ft;
|
|
4015
4016
|
}
|
|
4016
|
-
function y(
|
|
4017
|
-
|
|
4017
|
+
function y(k, T, x = {}) {
|
|
4018
|
+
k.mode = Ne.editing, a = k, d = T, O = ye(T == null ? void 0 : T.raw, k.field), S = x;
|
|
4018
4019
|
for (const L in C)
|
|
4019
4020
|
delete C[L];
|
|
4020
4021
|
}
|
|
4021
|
-
function g(
|
|
4022
|
-
|
|
4022
|
+
function g(k) {
|
|
4023
|
+
k.accept(), k.mode = Ne.editable, a = null;
|
|
4023
4024
|
}
|
|
4024
|
-
function n(
|
|
4025
|
-
g(
|
|
4025
|
+
function n(k) {
|
|
4026
|
+
g(k);
|
|
4026
4027
|
const T = {};
|
|
4027
|
-
d && (Object.keys(d).forEach((
|
|
4028
|
-
T[
|
|
4028
|
+
d && (Object.keys(d).forEach((x) => {
|
|
4029
|
+
T[x] = d == null ? void 0 : d[x];
|
|
4029
4030
|
}), d = null), t.emit("endEditCell", {
|
|
4030
|
-
cell:
|
|
4031
|
+
cell: k,
|
|
4031
4032
|
row: T,
|
|
4032
|
-
newValue: ye(T == null ? void 0 : T.raw,
|
|
4033
|
-
oldValue:
|
|
4033
|
+
newValue: ye(T == null ? void 0 : T.raw, k.field),
|
|
4034
|
+
oldValue: O,
|
|
4034
4035
|
column: S,
|
|
4035
4036
|
editor: C
|
|
4036
4037
|
});
|
|
4037
4038
|
}
|
|
4038
|
-
function r(
|
|
4039
|
+
function r(k) {
|
|
4039
4040
|
const T = Promise.resolve(!0);
|
|
4040
|
-
return
|
|
4041
|
-
cell:
|
|
4041
|
+
return k ? T.then(() => gt(e.beforeEndEditCell) ? !0 : typeof e.beforeEndEditCell == "function" ? e.beforeEndEditCell({
|
|
4042
|
+
cell: k,
|
|
4042
4043
|
row: d,
|
|
4043
|
-
newValue:
|
|
4044
|
-
oldValue:
|
|
4045
|
-
}) : () => !0).then((
|
|
4044
|
+
newValue: k.editingData,
|
|
4045
|
+
oldValue: O
|
|
4046
|
+
}) : () => !0).then((x) => (x && (n(k), d && (d = null)), x)) : T;
|
|
4046
4047
|
}
|
|
4047
|
-
function N(
|
|
4048
|
-
if (m && m !==
|
|
4048
|
+
function N(k) {
|
|
4049
|
+
if (m && m !== k.target) {
|
|
4049
4050
|
m = null;
|
|
4050
4051
|
return;
|
|
4051
4052
|
}
|
|
4052
4053
|
if (document.body.classList.contains("lookup-modal-open"))
|
|
4053
4054
|
return;
|
|
4054
|
-
const
|
|
4055
|
-
if (!(
|
|
4056
|
-
if (
|
|
4057
|
-
const L =
|
|
4055
|
+
const x = k.target;
|
|
4056
|
+
if (!(x != null && x.closest(".popover"))) {
|
|
4057
|
+
if (k instanceof MouseEvent || k.key !== "Enter") {
|
|
4058
|
+
const L = x.closest(".fv-grid-cell");
|
|
4058
4059
|
if (a && a.ref && a.ref === L)
|
|
4059
4060
|
return;
|
|
4060
4061
|
}
|
|
@@ -4068,77 +4069,77 @@ function al(e, t, l, s, p) {
|
|
|
4068
4069
|
i.value = !1, window.closeModal && delete window.closeModal;
|
|
4069
4070
|
});
|
|
4070
4071
|
}
|
|
4071
|
-
function A(
|
|
4072
|
+
function A(k, T, x) {
|
|
4072
4073
|
return Promise.resolve().then(() => {
|
|
4073
4074
|
var W;
|
|
4074
|
-
const L = (W =
|
|
4075
|
+
const L = (W = x.editor) == null ? void 0 : W.readonly;
|
|
4075
4076
|
return !gt(e.beforeEditCell) && typeof e.beforeEditCell == "function" ? e.beforeEditCell({
|
|
4076
|
-
row:
|
|
4077
|
+
row: k,
|
|
4077
4078
|
cell: T,
|
|
4078
|
-
rawData:
|
|
4079
|
-
column:
|
|
4079
|
+
rawData: k.raw,
|
|
4080
|
+
column: x
|
|
4080
4081
|
}) : !L;
|
|
4081
4082
|
}).then((L) => {
|
|
4082
|
-
L && (h() ? (i.value = !0, q()) : y(T,
|
|
4083
|
+
L && (h() ? (i.value = !0, q()) : y(T, k, x), document.body.removeEventListener("click", N, !0), document.body.addEventListener("click", N, !0));
|
|
4083
4084
|
});
|
|
4084
4085
|
}
|
|
4085
|
-
function I(
|
|
4086
|
-
|
|
4087
|
-
a || A(
|
|
4086
|
+
function I(k, T, x, L = {}) {
|
|
4087
|
+
k.stopPropagation(), u(k, x), _(T.column) && o.value && b.value.editMode === "cell" && T.mode === Ne.editable && r(a).then(() => {
|
|
4088
|
+
a || A(x, T, L);
|
|
4088
4089
|
});
|
|
4089
4090
|
}
|
|
4090
|
-
function J(
|
|
4091
|
-
h() ||
|
|
4092
|
-
a || A(
|
|
4091
|
+
function J(k, T, x, L = {}) {
|
|
4092
|
+
h() || k.stopPropagation(), v(k, x), _(T.column) && o.value && b.value.editMode === "cell" && T.mode === Ne.editable && r(a).then(() => {
|
|
4093
|
+
a || A(x, T, L);
|
|
4093
4094
|
});
|
|
4094
4095
|
}
|
|
4095
|
-
function Y(
|
|
4096
|
-
|
|
4096
|
+
function Y(k) {
|
|
4097
|
+
k.stopPropagation(), m = k.target;
|
|
4097
4098
|
}
|
|
4098
|
-
function V(
|
|
4099
|
-
|
|
4099
|
+
function V(k) {
|
|
4100
|
+
k.stopPropagation(), m && (m = null);
|
|
4100
4101
|
}
|
|
4101
|
-
function U(
|
|
4102
|
-
Object.values(
|
|
4103
|
-
var
|
|
4104
|
-
return T.mode === Ne.editable && _(T.column) && !((
|
|
4102
|
+
function U(k) {
|
|
4103
|
+
Object.values(k.data).filter((T) => {
|
|
4104
|
+
var x;
|
|
4105
|
+
return T.mode === Ne.editable && _(T.column) && !((x = T.column) != null && x.readonly);
|
|
4105
4106
|
}).forEach((T) => {
|
|
4106
4107
|
T.mode = Ne.editing;
|
|
4107
|
-
}),
|
|
4108
|
+
}), k.status = Xe.editing, d = k;
|
|
4108
4109
|
}
|
|
4109
|
-
function Z(
|
|
4110
|
-
Object.values(
|
|
4111
|
-
T ?
|
|
4112
|
-
}),
|
|
4110
|
+
function Z(k, T) {
|
|
4111
|
+
Object.values(k.data).filter((x) => x.mode === Ne.editing).forEach((x) => {
|
|
4112
|
+
T ? x.accept() : x.cancel(), x.mode = Ne.editable;
|
|
4113
|
+
}), k.status = Xe.initial, d === k && (d = null);
|
|
4113
4114
|
}
|
|
4114
|
-
function E(
|
|
4115
|
-
o.value && b.value.editMode === "row" && d !==
|
|
4115
|
+
function E(k) {
|
|
4116
|
+
o.value && b.value.editMode === "row" && d !== k && (d && Z(d, !1), U(k));
|
|
4116
4117
|
}
|
|
4117
|
-
function G(
|
|
4118
|
-
Z(
|
|
4118
|
+
function G(k) {
|
|
4119
|
+
Z(k, !0), k.status = Xe.initial;
|
|
4119
4120
|
}
|
|
4120
|
-
function F(
|
|
4121
|
-
Z(
|
|
4121
|
+
function F(k) {
|
|
4122
|
+
Z(k, !1), k.status = Xe.initial;
|
|
4122
4123
|
}
|
|
4123
|
-
function M(
|
|
4124
|
+
function M(k, T, x) {
|
|
4124
4125
|
const L = T.dataType, W = T.editor || {
|
|
4125
4126
|
type: R.get(L) || "input-group"
|
|
4126
4127
|
};
|
|
4127
|
-
return !f.value && W.type === "text" && (W.type = "input-group"), W && _(
|
|
4128
|
-
rowData:
|
|
4128
|
+
return !f.value && W.type === "text" && (W.type = "input-group"), W && _(k.column) ? (W.type === "input-group" && (W.textAlign = T.align !== "center" && T.align !== "right" ? "left" : T.align, W.updateOn = "change"), W.type === "number-spinner" && (W.updateOn = "change"), W.type === "textarea" && (W.lineBreak = "alt enter"), W.context = {
|
|
4129
|
+
rowData: x.raw,
|
|
4129
4130
|
column: T,
|
|
4130
|
-
cell:
|
|
4131
|
+
cell: k,
|
|
4131
4132
|
editor: C
|
|
4132
4133
|
}, W.readonly = !1, j(dn, {
|
|
4133
4134
|
focusOnCreated: e.focusOnEditingCell,
|
|
4134
4135
|
selectOnCreated: e.selectOnEditingCell,
|
|
4135
4136
|
editor: W,
|
|
4136
|
-
modelValue:
|
|
4137
|
-
"onUpdate:modelValue": (ee) =>
|
|
4137
|
+
modelValue: k.editingData,
|
|
4138
|
+
"onUpdate:modelValue": (ee) => k.editingData = ee,
|
|
4138
4139
|
id: T.id,
|
|
4139
4140
|
onMousedown: (ee) => Y(ee),
|
|
4140
4141
|
onMouseup: (ee) => V(ee)
|
|
4141
|
-
}, null)) :
|
|
4142
|
+
}, null)) : k.data;
|
|
4142
4143
|
}
|
|
4143
4144
|
function z() {
|
|
4144
4145
|
r(a);
|
|
@@ -4146,10 +4147,10 @@ function al(e, t, l, s, p) {
|
|
|
4146
4147
|
Se(() => e.editable, () => {
|
|
4147
4148
|
o.value = e.editable;
|
|
4148
4149
|
}), Se(() => {
|
|
4149
|
-
var
|
|
4150
|
-
return (
|
|
4151
|
-
}, (
|
|
4152
|
-
b.value.editMode =
|
|
4150
|
+
var k;
|
|
4151
|
+
return (k = e.editOption) == null ? void 0 : k.editMode;
|
|
4152
|
+
}, (k) => {
|
|
4153
|
+
b.value.editMode = k;
|
|
4153
4154
|
});
|
|
4154
4155
|
function ne() {
|
|
4155
4156
|
a = null, d = null, S = null, m = null, document.body.removeEventListener("click", N, !0);
|
|
@@ -4183,48 +4184,48 @@ function ol(e) {
|
|
|
4183
4184
|
}
|
|
4184
4185
|
function sl(e, t, l, s, p, h) {
|
|
4185
4186
|
const { addNewDataItemAtLast: i } = l, { columnContext: c } = s, { onClickCell: o, onClickOutOfCell: b, onClickCellByKeyboard: f } = p;
|
|
4186
|
-
function v(d,
|
|
4187
|
+
function v(d, O) {
|
|
4187
4188
|
const S = c.value.primaryColumns.findIndex((n) => n.field === d.field), m = d.parent, w = m.index, C = c.value.primaryColumns.length - 1, _ = h.value.length - 1, y = S === C, g = w === _;
|
|
4188
4189
|
if (S > -1 && !y) {
|
|
4189
4190
|
const n = c.value.primaryColumns[S + 1], r = m.data[n.field];
|
|
4190
|
-
o(
|
|
4191
|
+
o(O, r, m, n);
|
|
4191
4192
|
}
|
|
4192
4193
|
if (y && !g) {
|
|
4193
4194
|
const n = h.value[w + 1], r = c.value.primaryColumns[0], N = n.data[c.value.primaryColumns[0].field];
|
|
4194
|
-
o(
|
|
4195
|
+
o(O, N, n, r);
|
|
4195
4196
|
}
|
|
4196
4197
|
if (y && g) {
|
|
4197
4198
|
if (e.appendOnEnterAtLastCell) {
|
|
4198
4199
|
i();
|
|
4199
4200
|
const n = h.value[w + 1], r = c.value.primaryColumns[0], N = n.data[c.value.primaryColumns[0].field];
|
|
4200
|
-
o(
|
|
4201
|
+
o(O, N, n, r);
|
|
4201
4202
|
}
|
|
4202
4203
|
t.emit("enterUpInLastCell");
|
|
4203
4204
|
}
|
|
4204
4205
|
}
|
|
4205
|
-
function u(d,
|
|
4206
|
+
function u(d, O) {
|
|
4206
4207
|
const S = c.value.primaryColumns.findIndex((_) => _.field === d.field), m = d.parent, w = c.value.primaryColumns.length - 1;
|
|
4207
4208
|
if (S > 0 && S <= w) {
|
|
4208
4209
|
const _ = c.value.primaryColumns[S - 1], y = m.data[_.field];
|
|
4209
|
-
o(
|
|
4210
|
+
o(O, y, m, _);
|
|
4210
4211
|
}
|
|
4211
4212
|
}
|
|
4212
4213
|
function R(d) {
|
|
4213
|
-
const { key:
|
|
4214
|
-
(
|
|
4214
|
+
const { key: O, shiftKey: S, altKey: m } = d;
|
|
4215
|
+
(O === "ArrowDown" || O === "ArrowUp") && (S || d.preventDefault());
|
|
4215
4216
|
}
|
|
4216
|
-
function a(d,
|
|
4217
|
+
function a(d, O) {
|
|
4217
4218
|
const { key: S, shiftKey: m, altKey: w } = d;
|
|
4218
4219
|
if (S === "Enter") {
|
|
4219
4220
|
b(d);
|
|
4220
4221
|
return;
|
|
4221
4222
|
}
|
|
4222
4223
|
if (S === "Tab" && !m && !w) {
|
|
4223
|
-
d.preventDefault(), v(
|
|
4224
|
+
d.preventDefault(), v(O, d);
|
|
4224
4225
|
return;
|
|
4225
4226
|
}
|
|
4226
4227
|
if (m && S === "Tab") {
|
|
4227
|
-
d.preventDefault(), u(
|
|
4228
|
+
d.preventDefault(), u(O, d);
|
|
4228
4229
|
return;
|
|
4229
4230
|
}
|
|
4230
4231
|
}
|
|
@@ -4243,7 +4244,7 @@ function ul(e, t, l, s) {
|
|
|
4243
4244
|
multiSelectMode: R,
|
|
4244
4245
|
isSingleSelect: a,
|
|
4245
4246
|
getSelectedItems: d
|
|
4246
|
-
} = l,
|
|
4247
|
+
} = l, O = $(0), S = $(-1);
|
|
4247
4248
|
function m(V) {
|
|
4248
4249
|
h.value = V;
|
|
4249
4250
|
}
|
|
@@ -4309,9 +4310,9 @@ function ul(e, t, l, s) {
|
|
|
4309
4310
|
U.disabled || (t.emit("clickRow", U.index, U.raw), g(U), n(U, V));
|
|
4310
4311
|
}
|
|
4311
4312
|
function N(V) {
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
}, 250),
|
|
4313
|
+
O.value += 1, setTimeout(() => {
|
|
4314
|
+
O.value === 1 && t.emit("clickRow", V.index, V.raw), O.value = 0;
|
|
4315
|
+
}, 250), O.value > 1 && (t.emit("doubleClickRow", V.index, V.raw), O.value = 0);
|
|
4315
4316
|
}
|
|
4316
4317
|
function q(V, U) {
|
|
4317
4318
|
U.disabled || (N(U), g(U), n(U, V));
|
|
@@ -4359,7 +4360,7 @@ function cl(e, t, l, s, p) {
|
|
|
4359
4360
|
const { idField: h } = l, { dataView: i, getSelectionItems: c } = t, o = $(""), b = X(() => e.selection.enableSelectRow), f = $(e.selection.multiSelect ?? !1), v = $(e.selection.multiSelectMode || "DependOnCheck"), u = $(e.selection.showCheckbox), R = X(() => {
|
|
4360
4361
|
var B;
|
|
4361
4362
|
return !!((B = e.selection) != null && B.showSelectAll);
|
|
4362
|
-
}), a = $(e.selectionValues || []), d = X(() => e.selection.showSelection),
|
|
4363
|
+
}), a = $(e.selectionValues || []), d = X(() => e.selection.showSelection), O = X(() => {
|
|
4363
4364
|
var B;
|
|
4364
4365
|
return ((B = e.selection) == null ? void 0 : B.keepSelectingOnPaging) === void 0 ? !0 : e.selection.keepSelectingOnPaging;
|
|
4365
4366
|
}), S = $(!!a.value.length && s.value.length === a.value.length), m = $(!!a.value.length && s.value.length !== a.value.length), w = X(() => b.value && f.value), C = X(
|
|
@@ -4369,7 +4370,7 @@ function cl(e, t, l, s, p) {
|
|
|
4369
4370
|
return w.value && B;
|
|
4370
4371
|
}), g = X(() => w.value && !u.value), n = X(() => w.value && u.value && v.value === "OnCheckAndClick");
|
|
4371
4372
|
function r() {
|
|
4372
|
-
if (!
|
|
4373
|
+
if (!O.value) {
|
|
4373
4374
|
const B = i.value.map((ae) => ae[h.value]);
|
|
4374
4375
|
a.value = a.value.filter((ae) => B.includes(ae));
|
|
4375
4376
|
}
|
|
@@ -4455,13 +4456,13 @@ function cl(e, t, l, s, p) {
|
|
|
4455
4456
|
const ae = B.raw;
|
|
4456
4457
|
ae.__fv_checked__ = !1, ae.__fv_indeterminate__ = !1, a.value = a.value.filter((le) => le !== ae[h.value]), r(), B.checked = !1, B.indeterminate = !1, J(), Y(B);
|
|
4457
4458
|
}
|
|
4458
|
-
function
|
|
4459
|
+
function k(B) {
|
|
4459
4460
|
B.disabled || ne(B);
|
|
4460
4461
|
}
|
|
4461
4462
|
function T(B) {
|
|
4462
4463
|
B.disabled || re(B);
|
|
4463
4464
|
}
|
|
4464
|
-
function
|
|
4465
|
+
function x(B) {
|
|
4465
4466
|
B.__fv_checked__ = !1, B.__fv_indeterminate__ = !0, a.value = a.value.filter((ae) => ae !== B[h.value]), r();
|
|
4466
4467
|
}
|
|
4467
4468
|
function L(B) {
|
|
@@ -4473,10 +4474,10 @@ function cl(e, t, l, s, p) {
|
|
|
4473
4474
|
}
|
|
4474
4475
|
function ee(B, ae = !0) {
|
|
4475
4476
|
const le = B.checked;
|
|
4476
|
-
Z.value && F(), ae ? B.checked ? T(B) :
|
|
4477
|
+
Z.value && F(), ae ? B.checked ? T(B) : k(B) : le ? T(B) : k(B);
|
|
4477
4478
|
}
|
|
4478
4479
|
function de(B) {
|
|
4479
|
-
F(),
|
|
4480
|
+
F(), k(B);
|
|
4480
4481
|
}
|
|
4481
4482
|
function fe(B) {
|
|
4482
4483
|
const ae = s.value.find((le) => le.raw[h.value] === B);
|
|
@@ -4487,13 +4488,13 @@ function cl(e, t, l, s, p) {
|
|
|
4487
4488
|
le && M(le);
|
|
4488
4489
|
}
|
|
4489
4490
|
}
|
|
4490
|
-
function
|
|
4491
|
+
function ve(B) {
|
|
4491
4492
|
const ae = s.value.filter((Q) => B.includes(Q.raw[h.value])), le = ae.map((Q) => Q.raw[h.value]), P = i.value.filter((Q) => {
|
|
4492
4493
|
const _e = Q[h.value];
|
|
4493
4494
|
return !le.includes(_e) && B.includes(_e);
|
|
4494
4495
|
});
|
|
4495
4496
|
ae.length || P.length, ae.forEach((Q) => {
|
|
4496
|
-
|
|
4497
|
+
k(Q);
|
|
4497
4498
|
}), P.forEach((Q) => {
|
|
4498
4499
|
M(Q);
|
|
4499
4500
|
});
|
|
@@ -4543,19 +4544,19 @@ function cl(e, t, l, s, p) {
|
|
|
4543
4544
|
getSelectedItems: q,
|
|
4544
4545
|
getSelectionRow: ze,
|
|
4545
4546
|
indeterminate: L,
|
|
4546
|
-
indeterminateDataItem:
|
|
4547
|
+
indeterminateDataItem: x,
|
|
4547
4548
|
isSelectingHirarchyItem: _,
|
|
4548
4549
|
multiSelectMode: v,
|
|
4549
4550
|
multiSelectOnClickRow: n,
|
|
4550
4551
|
multiSelectOnClickRowWithShift: g,
|
|
4551
4552
|
multiSelectOnlyOnCheck: y,
|
|
4552
|
-
select:
|
|
4553
|
+
select: k,
|
|
4553
4554
|
selectAll: me,
|
|
4554
4555
|
selectedValues: a,
|
|
4555
4556
|
selectDataItem: M,
|
|
4556
4557
|
selectItem: de,
|
|
4557
4558
|
selectItemById: fe,
|
|
4558
|
-
selectItemByIds:
|
|
4559
|
+
selectItemByIds: ve,
|
|
4559
4560
|
showCheckBox: u,
|
|
4560
4561
|
showSelectAll: R,
|
|
4561
4562
|
toggleSelectItem: ee,
|
|
@@ -4569,14 +4570,14 @@ function cl(e, t, l, s, p) {
|
|
|
4569
4570
|
indeterminateStatus: m,
|
|
4570
4571
|
isSingleSelect: C,
|
|
4571
4572
|
showSelection: d,
|
|
4572
|
-
keepSelectingOnPaging:
|
|
4573
|
+
keepSelectingOnPaging: O,
|
|
4573
4574
|
emitSelectionChanged: J,
|
|
4574
4575
|
emptyCurrentRowId: Oe
|
|
4575
4576
|
};
|
|
4576
4577
|
}
|
|
4577
4578
|
function dl(e, t) {
|
|
4578
|
-
var d,
|
|
4579
|
-
const l = String(Date.now()), s = 50, { showCheckBox: p } = t, h = $(((d = e.rowNumber) == null ? void 0 : d.enable) ?? !1), i = X(() => e.hierarchy && p.value && e.selection.enableSelectRow && e.selection.multiSelect ? !1 : p.value), c = $(h.value ? ((
|
|
4579
|
+
var d, O;
|
|
4580
|
+
const l = String(Date.now()), s = 50, { showCheckBox: p } = t, h = $(((d = e.rowNumber) == null ? void 0 : d.enable) ?? !1), i = X(() => e.hierarchy && p.value && e.selection.enableSelectRow && e.selection.multiSelect ? !1 : p.value), c = $(h.value ? ((O = e.rowNumber) == null ? void 0 : O.width) ?? 36 : 0), o = $(i.value ? s : 0), b = X(() => {
|
|
4580
4581
|
var S, m;
|
|
4581
4582
|
return h.value ? ((S = e.rowNumber) == null ? void 0 : S.heading) === "序号" ? Fe.getLocaleValue("datagrid.lineNumberTitle") : (m = e.rowNumber) == null ? void 0 : m.heading : "";
|
|
4582
4583
|
}), f = X(() => (i.value && !e.hierarchy ? Number(o.value) : 0) + (h.value ? Number(c.value) : 0));
|