ia-table 0.12.4 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +791 -787
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -152,8 +152,8 @@ const kr = 200, Br = 2, zs = 56, Gs = 48, pn = {
|
|
|
152
152
|
d,
|
|
153
153
|
t,
|
|
154
154
|
u
|
|
155
|
-
), A = h ? `null-${h}` : "null",
|
|
156
|
-
i.push(A), s =
|
|
155
|
+
), A = h ? `null-${h}` : "null", p = u ? `null-${u}` : "null";
|
|
156
|
+
i.push(A), s = p;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
else {
|
|
@@ -167,12 +167,12 @@ const kr = 200, Br = 2, zs = 56, Gs = 48, pn = {
|
|
|
167
167
|
if (u === d[t])
|
|
168
168
|
i.push(`null-${h}`);
|
|
169
169
|
else if (A !== i[i.length - 1]) {
|
|
170
|
-
const
|
|
170
|
+
const p = en(
|
|
171
171
|
d,
|
|
172
172
|
t,
|
|
173
173
|
A
|
|
174
174
|
);
|
|
175
|
-
i.push(
|
|
175
|
+
i.push(p);
|
|
176
176
|
}
|
|
177
177
|
} else {
|
|
178
178
|
const A = h ? `null-${h}` : "null";
|
|
@@ -208,9 +208,9 @@ const kr = 200, Br = 2, zs = 56, Gs = 48, pn = {
|
|
|
208
208
|
return n(e), t;
|
|
209
209
|
}, Ft = (e, t = {}, n = 0, r = null, a = 150, i = [], s = [], o = !1, l = null) => !e || !Array.isArray(e) ? [] : { processedColumns: e.map((d) => {
|
|
210
210
|
var I;
|
|
211
|
-
const u = d.autoHeight === !0 || o, h = ne(d), A = [...s, h],
|
|
211
|
+
const u = d.autoHeight === !0 || o, h = ne(d), A = [...s, h], p = d.children && d.children.length > 0, g = d.children && d.children.some((x) => x.columnGroupShow !== "open") || !1, C = ((I = d.children) == null ? void 0 : I.length) && !g, w = t.isAllGroupExpanded || t[h] === !0 || i.includes(h) || C || !1, b = r ? t[r] === !0 || t.isAllGroupExpanded || i.includes(r) || C : !0, v = d.columnGroupShow === "open" && !b || !r && St(d);
|
|
212
212
|
w && b && t[h] !== !0 && !i.includes(h) && C && i.push(h);
|
|
213
|
-
let N =
|
|
213
|
+
let N = p ? Ft(
|
|
214
214
|
d.children,
|
|
215
215
|
t,
|
|
216
216
|
n + 1,
|
|
@@ -224,13 +224,13 @@ const kr = 200, Br = 2, zs = 56, Gs = 48, pn = {
|
|
|
224
224
|
l
|
|
225
225
|
// Pass down column counts
|
|
226
226
|
) : [];
|
|
227
|
-
const P =
|
|
227
|
+
const P = p ? N.processedColumns.reduce(
|
|
228
228
|
(x, W) => x + (W.colSpan || 1),
|
|
229
229
|
0
|
|
230
230
|
) : 1, z = r !== null, T = z ? !1 : v, M = Object.prototype.hasOwnProperty.call(
|
|
231
231
|
d,
|
|
232
232
|
"headerName"
|
|
233
|
-
), m = !
|
|
233
|
+
), m = !p, E = {
|
|
234
234
|
...d,
|
|
235
235
|
level: n,
|
|
236
236
|
parentField: r,
|
|
@@ -238,7 +238,7 @@ const kr = 200, Br = 2, zs = 56, Gs = 48, pn = {
|
|
|
238
238
|
// Track column's position in the hierarchy
|
|
239
239
|
notApplyGrouping: C,
|
|
240
240
|
headerName: d.headerName || d.label || (M ? "" : ne(d)),
|
|
241
|
-
hasChildren:
|
|
241
|
+
hasChildren: p,
|
|
242
242
|
isExpanded: w,
|
|
243
243
|
hidden: T,
|
|
244
244
|
is_hidden: v,
|
|
@@ -283,9 +283,9 @@ const Js = (e, { pinnedType: t = null, minWidth: n = 150 } = {}) => {
|
|
|
283
283
|
});
|
|
284
284
|
const c = qn(e);
|
|
285
285
|
return l = l.map((d, u) => u === i.length - 1 ? d : d.map((h, A) => {
|
|
286
|
-
var
|
|
286
|
+
var p;
|
|
287
287
|
if (h.startsWith("null")) {
|
|
288
|
-
const
|
|
288
|
+
const g = (p = h.split("-")[1]) == null ? void 0 : p.toLowerCase(), C = c[g], w = C.width || n, b = C.is_hidden || !1;
|
|
289
289
|
return {
|
|
290
290
|
headerName: "",
|
|
291
291
|
isPlaceholder: !0,
|
|
@@ -311,8 +311,8 @@ const Js = (e, { pinnedType: t = null, minWidth: n = 150 } = {}) => {
|
|
|
311
311
|
})), l.forEach((d) => {
|
|
312
312
|
let u = 0, h = 0;
|
|
313
313
|
d.forEach((A) => {
|
|
314
|
-
const
|
|
315
|
-
A.width =
|
|
314
|
+
const p = $s(A, A.hasChildren, n);
|
|
315
|
+
A.width = p, u += A.isWithEmptyHeaderName ? 0 : p || 0, h += A.isParentWithChildEmptyHeaderName ? p : 0, A.isWithEmptyHeaderName ? (A.leftTotalWidth = u + p - h, h -= p) : A.leftTotalWidth = u;
|
|
316
316
|
});
|
|
317
317
|
}), {
|
|
318
318
|
headerRows: l,
|
|
@@ -324,23 +324,23 @@ const Js = (e, { pinnedType: t = null, minWidth: n = 150 } = {}) => {
|
|
|
324
324
|
if (!i(c) || r.has(h))
|
|
325
325
|
return;
|
|
326
326
|
r.add(h);
|
|
327
|
-
const A = c.children && c.children.some((v) => i(v)),
|
|
328
|
-
|
|
329
|
-
const w =
|
|
327
|
+
const A = c.children && c.children.some((v) => i(v)), p = A && c.children.every((v) => !v.headerName && !v.columnGroupShow), g = !A || p, C = g ? a : s;
|
|
328
|
+
g || Kr++;
|
|
329
|
+
const w = g ? null : Kr % 2 === 0 ? "even-column-group" : "odd-column-group";
|
|
330
330
|
c.colorClass = w;
|
|
331
331
|
const b = {
|
|
332
332
|
...c,
|
|
333
333
|
isLastInGroup: !1,
|
|
334
334
|
// Will be set later
|
|
335
335
|
depth: s,
|
|
336
|
-
isLeaf:
|
|
336
|
+
isLeaf: g,
|
|
337
337
|
field: d,
|
|
338
|
-
isStandalone:
|
|
339
|
-
isParentWithChildEmptyHeaderName:
|
|
338
|
+
isStandalone: g || l,
|
|
339
|
+
isParentWithChildEmptyHeaderName: p
|
|
340
340
|
};
|
|
341
|
-
t[C].push(b),
|
|
341
|
+
t[C].push(b), p && (c.children.forEach((v) => {
|
|
342
342
|
v.isLeaf = !0, v.isStandalone = !0, v.isWithEmptyHeaderName = !0;
|
|
343
|
-
}), t[C].push(...c.children)),
|
|
343
|
+
}), t[C].push(...c.children)), g && (n.push(b), p && n.push(...c.children)), A && !p && A && Di(
|
|
344
344
|
c.children,
|
|
345
345
|
t,
|
|
346
346
|
n,
|
|
@@ -440,21 +440,21 @@ const $s = (e, t, n = 150) => {
|
|
|
440
440
|
const u = Object.keys(l) || [];
|
|
441
441
|
if (l && u.length > 0) {
|
|
442
442
|
let A = 0;
|
|
443
|
-
u.forEach((
|
|
444
|
-
const
|
|
445
|
-
if (
|
|
446
|
-
d += l[
|
|
447
|
-
else if (
|
|
448
|
-
const C =
|
|
449
|
-
r.includes(w) ? d += l[
|
|
443
|
+
u.forEach((p) => {
|
|
444
|
+
const g = String(p);
|
|
445
|
+
if (g.includes("/") && r.includes(g))
|
|
446
|
+
d += l[g];
|
|
447
|
+
else if (g.includes("/")) {
|
|
448
|
+
const C = g.split("/"), w = C.slice(0, C.length - 1).join("/");
|
|
449
|
+
r.includes(w) ? d += l[g] : A += 1;
|
|
450
450
|
} else
|
|
451
|
-
d += l[
|
|
451
|
+
d += l[g];
|
|
452
452
|
}), d += (e.length - u.length + A) * t;
|
|
453
453
|
} else
|
|
454
454
|
d += e.length * t;
|
|
455
455
|
return n && ((h = a == null ? void 0 : a.expandedRows) == null ? void 0 : h.length) > 0 && e.forEach((A) => {
|
|
456
|
-
const
|
|
457
|
-
a.expandedRows.includes(
|
|
456
|
+
const p = A.id || A[i];
|
|
457
|
+
a.expandedRows.includes(p) && (d += a.detailRowHeight || 200);
|
|
458
458
|
}), s && (d += xn * t), o.length && c && (d += xn * t), d;
|
|
459
459
|
}, no = (e, t, n) => {
|
|
460
460
|
var o;
|
|
@@ -500,8 +500,8 @@ const $s = (e, t, n = 150) => {
|
|
|
500
500
|
if (h._parentColumn = d, h.children && h.children.length > 0) {
|
|
501
501
|
const A = i(h);
|
|
502
502
|
h._leafCount = A;
|
|
503
|
-
const
|
|
504
|
-
h._calculatedWidth =
|
|
503
|
+
const p = s(h.children, h);
|
|
504
|
+
h._calculatedWidth = p, u += p, h._isParentColumn = !0;
|
|
505
505
|
} else
|
|
506
506
|
h._calculatedWidth = 1, h._leafCount = 1, u += 1, a.push({
|
|
507
507
|
...h,
|
|
@@ -515,20 +515,20 @@ const $s = (e, t, n = 150) => {
|
|
|
515
515
|
s(e);
|
|
516
516
|
const o = (c, d = 0, u = 0) => {
|
|
517
517
|
const h = c.children && c.children.length > 0, A = h ? c.children : [];
|
|
518
|
-
let
|
|
519
|
-
h ?
|
|
520
|
-
const
|
|
518
|
+
let p;
|
|
519
|
+
h ? p = c._leafCount || 1 : p = 1, c._exportColSpan = p;
|
|
520
|
+
const g = ne(c);
|
|
521
521
|
if (d === n ? r[d][u] = {
|
|
522
|
-
title: c.headerName ||
|
|
523
|
-
colSpan:
|
|
524
|
-
field:
|
|
522
|
+
title: c.headerName || g,
|
|
523
|
+
colSpan: p,
|
|
524
|
+
field: g
|
|
525
525
|
} : h ? r[d][u] = {
|
|
526
|
-
title: c.headerName ||
|
|
527
|
-
colSpan:
|
|
528
|
-
field:
|
|
526
|
+
title: c.headerName || g,
|
|
527
|
+
colSpan: p,
|
|
528
|
+
field: g
|
|
529
529
|
} : r[d][u] = {
|
|
530
530
|
title: "",
|
|
531
|
-
colSpan:
|
|
531
|
+
colSpan: p,
|
|
532
532
|
field: null
|
|
533
533
|
}, h) {
|
|
534
534
|
let C = u;
|
|
@@ -538,15 +538,15 @@ const $s = (e, t, n = 150) => {
|
|
|
538
538
|
} else if (d < n)
|
|
539
539
|
for (let C = d + 1; C <= n; C++)
|
|
540
540
|
C === n ? r[C][u] = {
|
|
541
|
-
title: c.headerName ||
|
|
541
|
+
title: c.headerName || g,
|
|
542
542
|
colSpan: 1,
|
|
543
|
-
field:
|
|
543
|
+
field: g
|
|
544
544
|
} : r[C][u] = {
|
|
545
545
|
title: "",
|
|
546
546
|
colSpan: 0,
|
|
547
547
|
field: null
|
|
548
548
|
};
|
|
549
|
-
return
|
|
549
|
+
return p;
|
|
550
550
|
};
|
|
551
551
|
let l = 0;
|
|
552
552
|
return e.forEach((c) => {
|
|
@@ -706,21 +706,21 @@ const $s = (e, t, n = 150) => {
|
|
|
706
706
|
if (c._parentColumn && h) {
|
|
707
707
|
const A = o[h];
|
|
708
708
|
if (A && typeof A == "object" && d) {
|
|
709
|
-
const
|
|
710
|
-
|
|
709
|
+
const p = d.startsWith(h + ".") ? d.substring(h.length + 1) : d;
|
|
710
|
+
p in A && (u = A[p]);
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
if (d && d.includes(".")) {
|
|
714
714
|
const A = d.split(".");
|
|
715
|
-
let
|
|
716
|
-
for (const
|
|
717
|
-
if (
|
|
718
|
-
|
|
715
|
+
let p = o;
|
|
716
|
+
for (const g of A)
|
|
717
|
+
if (p && typeof p == "object")
|
|
718
|
+
p = p[g];
|
|
719
719
|
else {
|
|
720
|
-
|
|
720
|
+
p = void 0;
|
|
721
721
|
break;
|
|
722
722
|
}
|
|
723
|
-
u =
|
|
723
|
+
u = p;
|
|
724
724
|
}
|
|
725
725
|
if (e && e.processCellForClipboard && typeof e.processCellForClipboard == "function")
|
|
726
726
|
try {
|
|
@@ -760,20 +760,20 @@ const $s = (e, t, n = 150) => {
|
|
|
760
760
|
if (i) {
|
|
761
761
|
const u = Zr(a), h = u.headerRows;
|
|
762
762
|
o = u.leafColumns, h.forEach((A) => {
|
|
763
|
-
const
|
|
764
|
-
let
|
|
763
|
+
const p = [];
|
|
764
|
+
let g = 0;
|
|
765
765
|
A.forEach((C) => {
|
|
766
766
|
if (C.colSpan > 0) {
|
|
767
|
-
g
|
|
767
|
+
p[g] = C.title || "";
|
|
768
768
|
for (let w = 1; w < C.colSpan; w++)
|
|
769
|
-
g
|
|
770
|
-
|
|
769
|
+
p[g + w] = null;
|
|
770
|
+
g += C.colSpan;
|
|
771
771
|
} else
|
|
772
|
-
g
|
|
773
|
-
}), s.push(
|
|
772
|
+
p[g] = null, g += 1;
|
|
773
|
+
}), s.push(p);
|
|
774
774
|
}), t.forEach((A) => {
|
|
775
|
-
const
|
|
776
|
-
s.push(
|
|
775
|
+
const p = Ia(A, o, e);
|
|
776
|
+
s.push(p);
|
|
777
777
|
});
|
|
778
778
|
} else {
|
|
779
779
|
const u = a.map(
|
|
@@ -788,22 +788,22 @@ const $s = (e, t, n = 150) => {
|
|
|
788
788
|
if (l["!merges"] || (l["!merges"] = []), i) {
|
|
789
789
|
const h = Zr(a).headerRows;
|
|
790
790
|
let A = 0;
|
|
791
|
-
h.forEach((
|
|
792
|
-
let
|
|
793
|
-
|
|
791
|
+
h.forEach((p) => {
|
|
792
|
+
let g = 0;
|
|
793
|
+
p.forEach((C) => {
|
|
794
794
|
C.colSpan > 1 && l["!merges"].push({
|
|
795
|
-
s: { r: A, c:
|
|
795
|
+
s: { r: A, c: g },
|
|
796
796
|
// start cell
|
|
797
|
-
e: { r: A, c:
|
|
797
|
+
e: { r: A, c: g + C.colSpan - 1 }
|
|
798
798
|
// end cell
|
|
799
|
-
}),
|
|
799
|
+
}), g += C.colSpan > 0 ? C.colSpan : 1;
|
|
800
800
|
}), A++;
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
803
|
const c = {};
|
|
804
804
|
o.forEach((u, h) => {
|
|
805
|
-
const A = u._pixelWidth || 100,
|
|
806
|
-
c[
|
|
805
|
+
const A = u._pixelWidth || 100, p = Math.min(Math.max(A / 7, 8), 50), g = zn.utils.encode_col(h);
|
|
806
|
+
c[g] = { width: p };
|
|
807
807
|
}), l["!cols"] = Object.values(c);
|
|
808
808
|
const d = zn.utils.book_new();
|
|
809
809
|
return zn.utils.book_append_sheet(d, l, "Sheet1"), d;
|
|
@@ -833,8 +833,8 @@ const $s = (e, t, n = 150) => {
|
|
|
833
833
|
]
|
|
834
834
|
}
|
|
835
835
|
), io = (e, t) => (n, r, a) => (a.dispatch = (i) => (n((s) => e(s, i), !1, i), i), a.dispatchFromDevtools = !0, { dispatch: (...i) => a.dispatch(...i), ...t }), so = io, we = "_IATableOrdered", kn = (e = 100) => `${(/* @__PURE__ */ new Date()).getTime()}_${e}`, Pi = (e, t = { path: [] }) => {
|
|
836
|
-
var l, c, d, u, h, A,
|
|
837
|
-
const n = kn(), r = ne(e), a = e._originalField || ((c = (l = r == null ? void 0 : r.split) == null ? void 0 : l.call(r, we)) == null ? void 0 : c[0]), i = ((h = (u = (d = e.column_name) == null ? void 0 : d.split) == null ? void 0 : u.call(d, we)) == null ? void 0 : h[0]) || e.column_name, s = ((
|
|
836
|
+
var l, c, d, u, h, A, p, g;
|
|
837
|
+
const n = kn(), r = ne(e), a = e._originalField || ((c = (l = r == null ? void 0 : r.split) == null ? void 0 : l.call(r, we)) == null ? void 0 : c[0]), i = ((h = (u = (d = e.column_name) == null ? void 0 : d.split) == null ? void 0 : u.call(d, we)) == null ? void 0 : h[0]) || e.column_name, s = ((g = (p = (A = e.accessor) == null ? void 0 : A.split) == null ? void 0 : p.call(A, we)) == null ? void 0 : g[0]) || e.accessor, o = r.split(we)[0];
|
|
838
838
|
return {
|
|
839
839
|
accessor: `${s}${we}${n}`,
|
|
840
840
|
field: `${a}${we}${n}`,
|
|
@@ -849,7 +849,7 @@ const $s = (e, t, n = 150) => {
|
|
|
849
849
|
isReorderedColumn: !0
|
|
850
850
|
};
|
|
851
851
|
}, oo = (e) => {
|
|
852
|
-
var r, a, i, s, o, l, c, d, u, h, A,
|
|
852
|
+
var r, a, i, s, o, l, c, d, u, h, A, p, g, C, w, b, v;
|
|
853
853
|
const t = { ...e };
|
|
854
854
|
delete t.originalParentId, delete t.isReorderedColumn, delete t.originalId, delete t.uniqueSplitId, delete t.isSplitHierarchy, delete t.uniqueHierarchyId, delete t.originalPath;
|
|
855
855
|
const n = ne(e);
|
|
@@ -861,7 +861,7 @@ const $s = (e, t, n = 150) => {
|
|
|
861
861
|
column_name: ((d = (c = (l = e.column_name) == null ? void 0 : l.split) == null ? void 0 : c.call(l, we)) == null ? void 0 : d[0]) || e.column_name,
|
|
862
862
|
_originalField: e._originalField || ((h = (u = n == null ? void 0 : n.split) == null ? void 0 : u.call(n, we)) == null ? void 0 : h[0]),
|
|
863
863
|
path: e.originalPath ? (A = e.originalPath) == null ? void 0 : A.map((N) => N.split(we)[0]) : e.path,
|
|
864
|
-
id: ((C = (
|
|
864
|
+
id: ((C = (g = (p = e.id) == null ? void 0 : p.split) == null ? void 0 : g.call(p, we)) == null ? void 0 : C[0]) || e.id,
|
|
865
865
|
originalPath: null,
|
|
866
866
|
parent_id: (w = e.parent_id) == null ? void 0 : w.map((N) => N.split(we)[0]),
|
|
867
867
|
parentField: (v = (b = e.parentField) == null ? void 0 : b.split) == null ? void 0 : v.call(b, we)[0]
|
|
@@ -879,14 +879,14 @@ const $s = (e, t, n = 150) => {
|
|
|
879
879
|
}
|
|
880
880
|
const d = lo(s, o);
|
|
881
881
|
if (d.length > 0 && d.length === l.length && d.length === c.length) {
|
|
882
|
-
const h = s.isReorderedColumn && o.isReorderedColumn, A = kn(n),
|
|
882
|
+
const h = s.isReorderedColumn && o.isReorderedColumn, A = kn(n), p = d[d.length - 1].split(we)[0], g = h ? {
|
|
883
883
|
...s,
|
|
884
884
|
accessor: `${((i = (a = (r = s.accessor) == null ? void 0 : r.split) == null ? void 0 : a.call(r, we)) == null ? void 0 : i[0]) || s.accessor}${we}${A}`,
|
|
885
|
-
field: `${
|
|
886
|
-
column_name: `${
|
|
885
|
+
field: `${p}${we}${A}`,
|
|
886
|
+
column_name: `${p}${we}${A}`,
|
|
887
887
|
path: [
|
|
888
888
|
...s.path.slice(0, -1),
|
|
889
|
-
`${
|
|
889
|
+
`${p}${we}${A}`
|
|
890
890
|
],
|
|
891
891
|
originalPath: [...d],
|
|
892
892
|
children: []
|
|
@@ -908,28 +908,28 @@ const $s = (e, t, n = 150) => {
|
|
|
908
908
|
)), z.path = P, z;
|
|
909
909
|
}, w = [];
|
|
910
910
|
if (s.children && s.children.length > 0) {
|
|
911
|
-
const b = ne(
|
|
911
|
+
const b = ne(g);
|
|
912
912
|
s.children.forEach((v) => {
|
|
913
913
|
const N = C(
|
|
914
914
|
v,
|
|
915
915
|
s.path,
|
|
916
|
-
|
|
916
|
+
g.path
|
|
917
917
|
);
|
|
918
918
|
N.parent_id = [b], N.parentField = b, w.push(N);
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
if (o.children && o.children.length > 0) {
|
|
922
|
-
const b = ne(
|
|
922
|
+
const b = ne(g);
|
|
923
923
|
o.children.forEach((v) => {
|
|
924
924
|
const N = C(
|
|
925
925
|
v,
|
|
926
926
|
o.path,
|
|
927
|
-
|
|
927
|
+
g.path
|
|
928
928
|
);
|
|
929
929
|
N.parent_id = [b], N.parentField = [b], w.push(N);
|
|
930
930
|
});
|
|
931
931
|
}
|
|
932
|
-
|
|
932
|
+
g.children = w, t.splice(n, 2, g);
|
|
933
933
|
} else
|
|
934
934
|
n++;
|
|
935
935
|
}
|
|
@@ -1018,27 +1018,27 @@ const $s = (e, t, n = 150) => {
|
|
|
1018
1018
|
var h, A;
|
|
1019
1019
|
if (!t || t.length === 0 || t.length === 1)
|
|
1020
1020
|
return { removed: !1, hierarchy: null };
|
|
1021
|
-
const n = (
|
|
1022
|
-
(
|
|
1021
|
+
const n = (p, g) => ne(p) === g, r = e.findIndex(
|
|
1022
|
+
(p) => n(p, t[0])
|
|
1023
1023
|
);
|
|
1024
1024
|
if (r === -1)
|
|
1025
1025
|
return { removed: !1, hierarchy: null };
|
|
1026
|
-
const a = e[r], i = JSON.parse(JSON.stringify(a)), s = (
|
|
1026
|
+
const a = e[r], i = JSON.parse(JSON.stringify(a)), s = (p, g, C, w = [], b = 0) => {
|
|
1027
1027
|
var D, H, K, q;
|
|
1028
|
-
if (!(
|
|
1028
|
+
if (!(p != null && p.children))
|
|
1029
1029
|
return { success: !1, hierarchy: null };
|
|
1030
|
-
const v = C[0], N =
|
|
1030
|
+
const v = C[0], N = p.children.findIndex(
|
|
1031
1031
|
(F) => n(F, v)
|
|
1032
1032
|
);
|
|
1033
1033
|
if (N === -1)
|
|
1034
1034
|
return { success: !1, hierarchy: null };
|
|
1035
|
-
const P = (D =
|
|
1035
|
+
const P = (D = g.children) == null ? void 0 : D.find(
|
|
1036
1036
|
(F) => n(F, v)
|
|
1037
1037
|
);
|
|
1038
1038
|
if (!P)
|
|
1039
1039
|
return { success: !1, hierarchy: null };
|
|
1040
1040
|
if (C.length === 1) {
|
|
1041
|
-
|
|
1041
|
+
p.children.splice(N, 1);
|
|
1042
1042
|
const F = kn(), U = ne(P).split(we)[0], O = `${we}${F}`, k = `${U}${O}`, S = {
|
|
1043
1043
|
...P,
|
|
1044
1044
|
field: k,
|
|
@@ -1053,7 +1053,7 @@ const $s = (e, t, n = 150) => {
|
|
|
1053
1053
|
};
|
|
1054
1054
|
return w.length > 0 && (S.parent_id = [w[w.length - 1]], S.parentField = w[w.length - 1]), { success: !0, hierarchy: S };
|
|
1055
1055
|
}
|
|
1056
|
-
const z = kn(), T = ne(P).split(we)[0], M = `${we}${z}`, m = `${T}${M}`, E = [...w, m], I =
|
|
1056
|
+
const z = kn(), T = ne(P).split(we)[0], M = `${we}${z}`, m = `${T}${M}`, E = [...w, m], I = p.children[N], x = s(
|
|
1057
1057
|
I,
|
|
1058
1058
|
P,
|
|
1059
1059
|
C.slice(1),
|
|
@@ -1062,7 +1062,7 @@ const $s = (e, t, n = 150) => {
|
|
|
1062
1062
|
);
|
|
1063
1063
|
if (!x.success)
|
|
1064
1064
|
return x;
|
|
1065
|
-
((K = I.children) == null ? void 0 : K.length) === 0 && !I.isLeaf &&
|
|
1065
|
+
((K = I.children) == null ? void 0 : K.length) === 0 && !I.isLeaf && p.children.splice(N, 1);
|
|
1066
1066
|
const W = {
|
|
1067
1067
|
...P,
|
|
1068
1068
|
field: m,
|
|
@@ -1085,20 +1085,20 @@ const $s = (e, t, n = 150) => {
|
|
|
1085
1085
|
0
|
|
1086
1086
|
);
|
|
1087
1087
|
if (u.success) {
|
|
1088
|
-
const
|
|
1088
|
+
const p = {
|
|
1089
1089
|
...i,
|
|
1090
1090
|
field: d,
|
|
1091
1091
|
column_name: i.column_name ? `${i.column_name.split(we)[0]}${c}` : d,
|
|
1092
1092
|
accessor: i.accessor ? `${i.accessor.split(we)[0]}${c}` : d,
|
|
1093
1093
|
id: i.id ? `${i.id.split(we)[0]}${c}` : d,
|
|
1094
1094
|
path: [d],
|
|
1095
|
-
originalPath: i.originalPath || ((h = i.path) == null ? void 0 : h.map((
|
|
1095
|
+
originalPath: i.originalPath || ((h = i.path) == null ? void 0 : h.map((g) => g.split(we)[0])),
|
|
1096
1096
|
originalId: l,
|
|
1097
1097
|
_originalField: i._originalField || l,
|
|
1098
1098
|
isReorderedColumn: !0,
|
|
1099
1099
|
children: [u.hierarchy]
|
|
1100
1100
|
};
|
|
1101
|
-
return u.hierarchy && (u.hierarchy.parent_id = [d], u.hierarchy.parentField = d), ((A = a.children) == null ? void 0 : A.length) === 0 && !a.isLeaf && e.splice(r, 1), { removed: !0, hierarchy:
|
|
1101
|
+
return u.hierarchy && (u.hierarchy.parent_id = [d], u.hierarchy.parentField = d), ((A = a.children) == null ? void 0 : A.length) === 0 && !a.isLeaf && e.splice(r, 1), { removed: !0, hierarchy: p };
|
|
1102
1102
|
}
|
|
1103
1103
|
return { removed: !1, hierarchy: null };
|
|
1104
1104
|
}, go = (e, t, n) => {
|
|
@@ -1134,7 +1134,7 @@ const $s = (e, t, n = 150) => {
|
|
|
1134
1134
|
const A = hn(
|
|
1135
1135
|
n[i]
|
|
1136
1136
|
);
|
|
1137
|
-
let
|
|
1137
|
+
let p = null, g = null, { removed: C, hierarchy: w } = fo(
|
|
1138
1138
|
n,
|
|
1139
1139
|
e.path
|
|
1140
1140
|
);
|
|
@@ -1163,9 +1163,9 @@ const $s = (e, t, n = 150) => {
|
|
|
1163
1163
|
t.path.slice(1),
|
|
1164
1164
|
h
|
|
1165
1165
|
);
|
|
1166
|
-
|
|
1166
|
+
p = N, g = v;
|
|
1167
1167
|
}
|
|
1168
|
-
if ((
|
|
1168
|
+
if ((g || p) && !w) {
|
|
1169
1169
|
const v = hn(
|
|
1170
1170
|
n[c]
|
|
1171
1171
|
);
|
|
@@ -1173,14 +1173,14 @@ const $s = (e, t, n = 150) => {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
if (w)
|
|
1175
1175
|
uo({
|
|
1176
|
-
beforeHierarchy:
|
|
1177
|
-
afterHierarchy:
|
|
1176
|
+
beforeHierarchy: g,
|
|
1177
|
+
afterHierarchy: p,
|
|
1178
1178
|
newHierarchy: w,
|
|
1179
1179
|
targetColumFrozenState: o,
|
|
1180
1180
|
targetColumnFrozenPinned: l
|
|
1181
1181
|
}), ho({
|
|
1182
|
-
beforeHierarchy:
|
|
1183
|
-
afterHierarchy:
|
|
1182
|
+
beforeHierarchy: g,
|
|
1183
|
+
afterHierarchy: p,
|
|
1184
1184
|
newHierarchy: w,
|
|
1185
1185
|
updatedtargetIndex: c,
|
|
1186
1186
|
removeColumnsCount: u,
|
|
@@ -1236,8 +1236,8 @@ const $s = (e, t, n = 150) => {
|
|
|
1236
1236
|
const s = r[i], o = a[i], l = r[i - 1];
|
|
1237
1237
|
let c = n;
|
|
1238
1238
|
if (l && ne(c) !== l) {
|
|
1239
|
-
const
|
|
1240
|
-
|
|
1239
|
+
const p = Jr(c, l);
|
|
1240
|
+
p && (c = p);
|
|
1241
1241
|
}
|
|
1242
1242
|
let d = -1, u = -1;
|
|
1243
1243
|
c.children && (d = Ra(
|
|
@@ -1247,10 +1247,10 @@ const $s = (e, t, n = 150) => {
|
|
|
1247
1247
|
c.children,
|
|
1248
1248
|
o
|
|
1249
1249
|
));
|
|
1250
|
-
const h = (
|
|
1250
|
+
const h = (p, g, C, w, b) => {
|
|
1251
1251
|
let v = i - 1;
|
|
1252
1252
|
for (; v >= 0; ) {
|
|
1253
|
-
const N =
|
|
1253
|
+
const N = g[v], P = C[v + 1];
|
|
1254
1254
|
let z = n;
|
|
1255
1255
|
if (N && ne(z) !== N) {
|
|
1256
1256
|
const T = Jr(
|
|
@@ -1266,7 +1266,7 @@ const $s = (e, t, n = 150) => {
|
|
|
1266
1266
|
});
|
|
1267
1267
|
if (T !== -1) {
|
|
1268
1268
|
c = z;
|
|
1269
|
-
const M = (
|
|
1269
|
+
const M = (p === "target" ? r : a)[v + 1], m = p === "target" ? s : o, E = c.children.findIndex(
|
|
1270
1270
|
(I) => {
|
|
1271
1271
|
const x = ne(I);
|
|
1272
1272
|
return x === M || x.split(we)[0] === M || x.split(we)[0] === m;
|
|
@@ -1281,37 +1281,37 @@ const $s = (e, t, n = 150) => {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
v--;
|
|
1283
1283
|
}
|
|
1284
|
-
return console.warn(`Could not find ${
|
|
1284
|
+
return console.warn(`Could not find ${p} in any common parent`), { found: !1, missingIndex: -1, foundIndex: b };
|
|
1285
1285
|
};
|
|
1286
1286
|
if (d === -1 && u === -1) {
|
|
1287
|
-
const
|
|
1287
|
+
const p = s.split(we)[0], g = o.split(we)[0], C = xi(
|
|
1288
1288
|
n,
|
|
1289
|
-
|
|
1290
|
-
|
|
1289
|
+
p,
|
|
1290
|
+
g
|
|
1291
1291
|
);
|
|
1292
1292
|
C ? (c = C.parent, d = C.sourceIndex, u = C.targetIndex) : console.warn(
|
|
1293
1293
|
"Abhay Could not find any common parent containing both source and target"
|
|
1294
1294
|
);
|
|
1295
1295
|
}
|
|
1296
1296
|
if (d >= 0 && u === -1) {
|
|
1297
|
-
const
|
|
1297
|
+
const p = h(
|
|
1298
1298
|
"target",
|
|
1299
1299
|
r,
|
|
1300
1300
|
a,
|
|
1301
1301
|
o,
|
|
1302
1302
|
d
|
|
1303
1303
|
);
|
|
1304
|
-
|
|
1304
|
+
p.found && (u = p.missingIndex, d = p.foundIndex);
|
|
1305
1305
|
}
|
|
1306
1306
|
if (u >= 0 && d === -1) {
|
|
1307
|
-
const
|
|
1307
|
+
const p = h(
|
|
1308
1308
|
"source",
|
|
1309
1309
|
a,
|
|
1310
1310
|
r,
|
|
1311
1311
|
s,
|
|
1312
1312
|
u
|
|
1313
1313
|
);
|
|
1314
|
-
|
|
1314
|
+
p.found && (d = p.missingIndex, u = p.foundIndex);
|
|
1315
1315
|
}
|
|
1316
1316
|
const A = d < u;
|
|
1317
1317
|
return {
|
|
@@ -1326,14 +1326,14 @@ const $s = (e, t, n = 150) => {
|
|
|
1326
1326
|
const d = l.children, u = n[c], h = d.findIndex((z) => z.field === u);
|
|
1327
1327
|
if (h === -1)
|
|
1328
1328
|
return { before: null, after: null };
|
|
1329
|
-
const A = [],
|
|
1329
|
+
const A = [], p = [];
|
|
1330
1330
|
d.forEach((z, T) => {
|
|
1331
|
-
T < h ? A.push(JSON.parse(JSON.stringify(z))) : T > h ?
|
|
1331
|
+
T < h ? A.push(JSON.parse(JSON.stringify(z))) : T > h ? p.push(JSON.parse(JSON.stringify(z))) : c === n.length - 1 && (z.isLeaf || !z.children || z.children.length === 0 || z.children.length === 1) ? r ? A.push(JSON.parse(JSON.stringify(z))) : p.push(JSON.parse(JSON.stringify(z))) : (A.push(null), p.push(null));
|
|
1332
1332
|
});
|
|
1333
|
-
const
|
|
1334
|
-
if (!(c === n.length - 1) ||
|
|
1333
|
+
const g = d[h];
|
|
1334
|
+
if (!(c === n.length - 1) || g.children && g.children.length > 1) {
|
|
1335
1335
|
const { before: z, after: T } = a(
|
|
1336
|
-
|
|
1336
|
+
g,
|
|
1337
1337
|
c + 1
|
|
1338
1338
|
);
|
|
1339
1339
|
if (z) {
|
|
@@ -1341,13 +1341,13 @@ const $s = (e, t, n = 150) => {
|
|
|
1341
1341
|
M !== -1 && (A[M] = z);
|
|
1342
1342
|
}
|
|
1343
1343
|
if (T) {
|
|
1344
|
-
const M =
|
|
1345
|
-
M !== -1 && (
|
|
1344
|
+
const M = p.indexOf(null);
|
|
1345
|
+
M !== -1 && (p[M] = T);
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
const b = A.filter(
|
|
1349
1349
|
(z) => z !== null
|
|
1350
|
-
), v =
|
|
1350
|
+
), v = p.filter(
|
|
1351
1351
|
(z) => z !== null
|
|
1352
1352
|
), N = b.length > 0 ? {
|
|
1353
1353
|
...JSON.parse(JSON.stringify(l)),
|
|
@@ -1361,9 +1361,9 @@ const $s = (e, t, n = 150) => {
|
|
|
1361
1361
|
let { before: i, after: s } = a(e, 0);
|
|
1362
1362
|
const o = (l, c = [], d = /* @__PURE__ */ new Map()) => {
|
|
1363
1363
|
!l || !l.children || l.children.length === 0 || l.children.forEach((u) => {
|
|
1364
|
-
const h = ne(u).split(we)[0], A = kn(),
|
|
1365
|
-
d.set(
|
|
1366
|
-
const C = `${we}${A}_${
|
|
1364
|
+
const h = ne(u).split(we)[0], A = kn(), p = `${h}_${A}`, g = d.get(p) || 0;
|
|
1365
|
+
d.set(p, g + 1);
|
|
1366
|
+
const C = `${we}${A}_${g}`;
|
|
1367
1367
|
if (!u.originalPath && u.path && (u.originalPath = [
|
|
1368
1368
|
...u.path.map((w) => w.split(we)[0])
|
|
1369
1369
|
]), u.originalId || (u.originalId = h), u.field = `${h}${C}`, u.accessor) {
|
|
@@ -1494,51 +1494,51 @@ const $s = (e, t, n = 150) => {
|
|
|
1494
1494
|
SET_HAS_SPLIT_RENDERER_KEYS: "SET_HAS_SPLIT_RENDERER_KEYS"
|
|
1495
1495
|
}, xt = (e, t = { minWidth: 150 }) => {
|
|
1496
1496
|
const n = {}, r = {};
|
|
1497
|
-
e.forEach((
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1497
|
+
e.forEach((p) => {
|
|
1498
|
+
const g = ne(p);
|
|
1499
|
+
p.children && Array.isArray(p.children) && (r[g] = [], p.children.forEach((C) => {
|
|
1500
1500
|
const w = ne(C);
|
|
1501
|
-
n[w] =
|
|
1501
|
+
n[w] = g, r[g] ? r[g].push(w) : r[g] = [w];
|
|
1502
1502
|
}));
|
|
1503
1503
|
});
|
|
1504
|
-
const a = e.map((
|
|
1505
|
-
const
|
|
1506
|
-
let w =
|
|
1504
|
+
const a = e.map((p) => {
|
|
1505
|
+
const g = p.width !== void 0, C = p.field || ne(p);
|
|
1506
|
+
let w = p.is_frozen || !1, b = p.pinned === "right";
|
|
1507
1507
|
const v = [];
|
|
1508
1508
|
let N = C;
|
|
1509
1509
|
for (; n[N]; ) {
|
|
1510
1510
|
const E = n[N];
|
|
1511
1511
|
v.push(E), N = E;
|
|
1512
1512
|
}
|
|
1513
|
-
const P =
|
|
1513
|
+
const P = p.children && p.children.length > 0;
|
|
1514
1514
|
let z = !1, T = !1;
|
|
1515
|
-
P && (
|
|
1515
|
+
P && (p.children.forEach((E) => {
|
|
1516
1516
|
const I = ne(E), x = e.find(
|
|
1517
1517
|
(W) => ne(W) === I
|
|
1518
1518
|
);
|
|
1519
1519
|
x && (x.is_frozen && (z = !0), x.pinned === "right" && (T = !0));
|
|
1520
1520
|
}), z && (w = !0), T && (b = !0));
|
|
1521
|
-
const M = (t == null ? void 0 : t.minWidth) || 150, m =
|
|
1521
|
+
const M = (t == null ? void 0 : t.minWidth) || 150, m = p.width ? Math.max(p.width, M) : M;
|
|
1522
1522
|
return {
|
|
1523
|
-
...
|
|
1523
|
+
...p,
|
|
1524
1524
|
field: C,
|
|
1525
|
-
headerName:
|
|
1525
|
+
headerName: p.headerName || p.label,
|
|
1526
1526
|
// Set width and track if it's a custom width or auto width
|
|
1527
1527
|
width: m,
|
|
1528
|
-
originalWidth:
|
|
1528
|
+
originalWidth: p.width || M,
|
|
1529
1529
|
// Store original width
|
|
1530
|
-
isAutoWidth: !
|
|
1530
|
+
isAutoWidth: !g,
|
|
1531
1531
|
// Mark columns without explicit width as auto-width
|
|
1532
|
-
filterable:
|
|
1533
|
-
isSortable:
|
|
1534
|
-
resizable:
|
|
1535
|
-
hidden: St(
|
|
1536
|
-
align:
|
|
1532
|
+
filterable: p.is_searchable !== !1 || p.isSearchable !== !1,
|
|
1533
|
+
isSortable: p.isSortable !== !1,
|
|
1534
|
+
resizable: p.resizable !== !1,
|
|
1535
|
+
hidden: St(p),
|
|
1536
|
+
align: p.align || "left",
|
|
1537
1537
|
is_frozen: w,
|
|
1538
1538
|
// Ensure left-pinned property is set
|
|
1539
|
-
pinned: b ? "right" :
|
|
1539
|
+
pinned: b ? "right" : p.pinned,
|
|
1540
1540
|
// Ensure right-pinned property is set
|
|
1541
|
-
originalIndex: e.indexOf(
|
|
1541
|
+
originalIndex: e.indexOf(p),
|
|
1542
1542
|
// Store original index
|
|
1543
1543
|
parentColumns: v,
|
|
1544
1544
|
// Store the ancestry chain
|
|
@@ -1551,20 +1551,20 @@ const $s = (e, t, n = 150) => {
|
|
|
1551
1551
|
hasAnyRightPinnedChildren: T
|
|
1552
1552
|
};
|
|
1553
1553
|
});
|
|
1554
|
-
a.forEach((
|
|
1555
|
-
|
|
1554
|
+
a.forEach((p) => {
|
|
1555
|
+
p.is_frozen && p.parentColumns.forEach((g) => {
|
|
1556
1556
|
const C = a.find(
|
|
1557
|
-
(w) => ne(w) ===
|
|
1557
|
+
(w) => ne(w) === g
|
|
1558
1558
|
);
|
|
1559
1559
|
C && (C.is_frozen = !0);
|
|
1560
|
-
}),
|
|
1560
|
+
}), p.pinned === "right" && p.parentColumns.forEach((g) => {
|
|
1561
1561
|
const C = a.find(
|
|
1562
|
-
(w) => ne(w) ===
|
|
1562
|
+
(w) => ne(w) === g
|
|
1563
1563
|
);
|
|
1564
1564
|
C && (C.pinned = "right", C.is_frozen = !1);
|
|
1565
1565
|
});
|
|
1566
1566
|
});
|
|
1567
|
-
const i = [...a].sort((
|
|
1567
|
+
const i = [...a].sort((p, g) => p.is_frozen && !g.is_frozen ? -1 : !p.is_frozen && g.is_frozen || p.pinned === "right" && g.pinned !== "right" ? 1 : p.pinned !== "right" && g.pinned === "right" ? -1 : p.originalIndex - g.originalIndex);
|
|
1568
1568
|
let s = {
|
|
1569
1569
|
indexes: [],
|
|
1570
1570
|
positions: {},
|
|
@@ -1575,19 +1575,19 @@ const $s = (e, t, n = 150) => {
|
|
|
1575
1575
|
totalWidth: 0
|
|
1576
1576
|
};
|
|
1577
1577
|
const l = a.filter(
|
|
1578
|
-
(
|
|
1578
|
+
(p) => p.is_frozen && !p.hidden
|
|
1579
1579
|
), c = a.filter(
|
|
1580
|
-
(
|
|
1580
|
+
(p) => p.pinned === "right" && !p.hidden
|
|
1581
1581
|
);
|
|
1582
1582
|
let d = 0;
|
|
1583
|
-
function u(
|
|
1583
|
+
function u(p, g) {
|
|
1584
1584
|
var v;
|
|
1585
|
-
const C = ne(
|
|
1585
|
+
const C = ne(p), w = g;
|
|
1586
1586
|
s.indexes.push(C), s.positions[C] = w;
|
|
1587
1587
|
let b;
|
|
1588
|
-
if (((v =
|
|
1588
|
+
if (((v = p.children) == null ? void 0 : v.length) > 0) {
|
|
1589
1589
|
let N = 0;
|
|
1590
|
-
|
|
1590
|
+
p.children.forEach((P) => {
|
|
1591
1591
|
if (St(P))
|
|
1592
1592
|
return;
|
|
1593
1593
|
const z = w + N, T = u(P, z);
|
|
@@ -1595,22 +1595,22 @@ const $s = (e, t, n = 150) => {
|
|
|
1595
1595
|
}), b = N;
|
|
1596
1596
|
} else {
|
|
1597
1597
|
const N = t.minWidth || 150;
|
|
1598
|
-
b =
|
|
1598
|
+
b = p.width && p.width < N ? N : p.width || N;
|
|
1599
1599
|
}
|
|
1600
1600
|
return b;
|
|
1601
1601
|
}
|
|
1602
|
-
l.forEach((
|
|
1603
|
-
if (St(
|
|
1602
|
+
l.forEach((p) => {
|
|
1603
|
+
if (St(p))
|
|
1604
1604
|
return;
|
|
1605
|
-
const
|
|
1606
|
-
d +=
|
|
1605
|
+
const g = u(p, d);
|
|
1606
|
+
d += g;
|
|
1607
1607
|
}), s.totalWidth = d;
|
|
1608
1608
|
let h = 0;
|
|
1609
|
-
return [...c].reverse().forEach((
|
|
1610
|
-
const
|
|
1611
|
-
o.indexes.push(
|
|
1609
|
+
return [...c].reverse().forEach((p) => {
|
|
1610
|
+
const g = ne(p);
|
|
1611
|
+
o.indexes.push(g), o.positions[g] = h, h += p.width || t.minWidth;
|
|
1612
1612
|
}), o.totalWidth = h, o.rightIndexes = c.map(
|
|
1613
|
-
(
|
|
1613
|
+
(p) => ne(p)
|
|
1614
1614
|
), s.rightPinned = {
|
|
1615
1615
|
indexes: o.indexes,
|
|
1616
1616
|
positions: o.positions,
|
|
@@ -1699,14 +1699,14 @@ const $s = (e, t, n = 150) => {
|
|
|
1699
1699
|
timeout: 5e3
|
|
1700
1700
|
}
|
|
1701
1701
|
};
|
|
1702
|
-
let
|
|
1703
|
-
s && (
|
|
1702
|
+
let p = -1;
|
|
1703
|
+
s && (p = o.findIndex((z) => {
|
|
1704
1704
|
const T = s.is_frozen, M = s.pinned, m = s.originalPath || s.path, E = z.originalPath || z.path;
|
|
1705
1705
|
return z.is_frozen === T && z.pinned === M && E[0] === m[0];
|
|
1706
1706
|
}));
|
|
1707
|
-
const
|
|
1708
|
-
s &&
|
|
1709
|
-
const C = ca(
|
|
1707
|
+
const g = [...o];
|
|
1708
|
+
s && p !== -1 ? g.splice(p, 0, s) : s && g.push(s);
|
|
1709
|
+
const C = ca(g), { processedColumns: w } = Ft(
|
|
1710
1710
|
C,
|
|
1711
1711
|
r.expandedColumnGroups || {},
|
|
1712
1712
|
0,
|
|
@@ -1722,8 +1722,8 @@ const $s = (e, t, n = 150) => {
|
|
|
1722
1722
|
frozenColumns: v
|
|
1723
1723
|
};
|
|
1724
1724
|
}, Eo = (e, t, n, r) => {
|
|
1725
|
-
var A,
|
|
1726
|
-
const a = t.path.slice(0, -1), i = qn(e), s = (
|
|
1725
|
+
var A, p, g;
|
|
1726
|
+
const a = t.path.slice(0, -1), i = qn(e), s = (p = (A = t.path) == null ? void 0 : A.slice(0, -1)) == null ? void 0 : p.join("/"), o = i[s.toLowerCase()], l = ((g = o == null ? void 0 : o.children) == null ? void 0 : g.length) || 0;
|
|
1727
1727
|
let c;
|
|
1728
1728
|
if (a.length === 0)
|
|
1729
1729
|
return { newHierarchy: null, updatedColumns: e.map((w) => ne(w) === r ? {
|
|
@@ -2123,8 +2123,8 @@ const $s = (e, t, n = 150) => {
|
|
|
2123
2123
|
for (let u = 0; u < e.columns.length; u++) {
|
|
2124
2124
|
const h = e.columns[u], A = ne(h);
|
|
2125
2125
|
if ((l = h == null ? void 0 : h.extra) != null && l.is_grouping_key && (n != null && n[A]) || h.rowGroup && !h.is_hidden) {
|
|
2126
|
-
let
|
|
2127
|
-
s[
|
|
2126
|
+
let p = (c = h == null ? void 0 : h.originalFields) != null && c[r] ? h.originalFields[r] : A, g = (d = h == null ? void 0 : h.originalFields) != null && d[r - 1] ? h.originalFields[r - 1] : A;
|
|
2127
|
+
s[p] = n != null && n[g] ? `Total ${(n == null ? void 0 : n[g]) || ""}` : "Total", n != null && n[g] ? (s.grandTotalAggreRow = !1, s.subTotalAggreRow = !0) : (s.isGrandTotalRow = !0, s.grandTotalAggreRow = !0, s.subTotalAggreRow = !1);
|
|
2128
2128
|
break;
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
@@ -2135,21 +2135,21 @@ const $s = (e, t, n = 150) => {
|
|
|
2135
2135
|
u,
|
|
2136
2136
|
e.childKeyField
|
|
2137
2137
|
), A = ne(u);
|
|
2138
|
-
s[A] = h, t = t.map((
|
|
2138
|
+
s[A] = h, t = t.map((p) => {
|
|
2139
2139
|
var w;
|
|
2140
|
-
const
|
|
2141
|
-
|
|
2140
|
+
const g = $r(
|
|
2141
|
+
p,
|
|
2142
2142
|
u,
|
|
2143
2143
|
e.childKeyField
|
|
2144
|
-
), C = (w =
|
|
2144
|
+
), C = (w = p == null ? void 0 : p[e.childKeyField]) == null ? void 0 : w.length;
|
|
2145
2145
|
return {
|
|
2146
|
-
...
|
|
2147
|
-
__parentPath:
|
|
2146
|
+
...p,
|
|
2147
|
+
__parentPath: p.__parentPath ? `${p.__parentPath}${String(p.__parentPath).includes(i) ? "" : `/${i}`}` : String(i),
|
|
2148
2148
|
level: r,
|
|
2149
2149
|
parentRowIndex: a,
|
|
2150
2150
|
parentRowData: n,
|
|
2151
2151
|
groupingLevel: r,
|
|
2152
|
-
[A]:
|
|
2152
|
+
[A]: g,
|
|
2153
2153
|
__isAggregationRow: !!C,
|
|
2154
2154
|
subTotalAggreRow: !!C
|
|
2155
2155
|
};
|
|
@@ -2164,11 +2164,11 @@ const $s = (e, t, n = 150) => {
|
|
|
2164
2164
|
const s = e.columns.some((u) => u.aggFunc), o = ((c = n.__parentPath) == null ? void 0 : c.split("/").length) || 0;
|
|
2165
2165
|
let l = null;
|
|
2166
2166
|
if (s && o) {
|
|
2167
|
-
const u = t[n.parentRowIndex], h = u[i], A = u[e.childKeyField],
|
|
2167
|
+
const u = t[n.parentRowIndex], h = u[i], A = u[e.childKeyField], p = Object.keys(
|
|
2168
2168
|
e.expandedChildRows
|
|
2169
|
-
).reduce((N, P) => (P.startsWith(h) && (N += e.expandedChildRows[P].childRowsCount), N), 0),
|
|
2169
|
+
).reduce((N, P) => (P.startsWith(h) && (N += e.expandedChildRows[P].childRowsCount), N), 0), g = !!u.__parentPath;
|
|
2170
2170
|
let C;
|
|
2171
|
-
if (
|
|
2171
|
+
if (g) {
|
|
2172
2172
|
C = n.parentRowIndex + (A == null ? void 0 : A.length) + 1;
|
|
2173
2173
|
let N = 0;
|
|
2174
2174
|
Object.keys(e.expandedChildRows).forEach((P) => {
|
|
@@ -2176,7 +2176,7 @@ const $s = (e, t, n = 150) => {
|
|
|
2176
2176
|
M >= 0 && M < z.length - 1 && (N += e.expandedChildRows[P].childRowsCount);
|
|
2177
2177
|
}), C += N;
|
|
2178
2178
|
} else
|
|
2179
|
-
C =
|
|
2179
|
+
C = p;
|
|
2180
2180
|
const { aggreRow: w } = Tn(
|
|
2181
2181
|
e,
|
|
2182
2182
|
A,
|
|
@@ -2187,7 +2187,7 @@ const $s = (e, t, n = 150) => {
|
|
|
2187
2187
|
);
|
|
2188
2188
|
t[C] = w;
|
|
2189
2189
|
let b = { ...w };
|
|
2190
|
-
if (
|
|
2190
|
+
if (g) {
|
|
2191
2191
|
let N = o - 1;
|
|
2192
2192
|
for (; N !== 0; ) {
|
|
2193
2193
|
const P = b.parentRowIndex, z = (d = t[P]) == null ? void 0 : d.parentRowIndex, T = z >= 0 ? z : P;
|
|
@@ -2279,10 +2279,10 @@ const $s = (e, t, n = 150) => {
|
|
|
2279
2279
|
for (let u = 0; u < e.length; u++) {
|
|
2280
2280
|
const h = e[u], A = h[n];
|
|
2281
2281
|
s[A] || (s[A] = {});
|
|
2282
|
-
const
|
|
2283
|
-
if (!(
|
|
2282
|
+
const p = s[A][l];
|
|
2283
|
+
if (!(p && p.span === 0))
|
|
2284
2284
|
if (a && typeof a == "function") {
|
|
2285
|
-
const
|
|
2285
|
+
const g = a(
|
|
2286
2286
|
{
|
|
2287
2287
|
node: { rowIndex: u, data: h, api: r },
|
|
2288
2288
|
api: r,
|
|
@@ -2291,16 +2291,16 @@ const $s = (e, t, n = 150) => {
|
|
|
2291
2291
|
},
|
|
2292
2292
|
l
|
|
2293
2293
|
);
|
|
2294
|
-
if (typeof
|
|
2294
|
+
if (typeof g == "number") {
|
|
2295
2295
|
if (s[A][l] = {
|
|
2296
|
-
span:
|
|
2297
|
-
isFirst:
|
|
2298
|
-
},
|
|
2296
|
+
span: g,
|
|
2297
|
+
isFirst: g > 0
|
|
2298
|
+
}, g > 1 && (s[A] = {
|
|
2299
2299
|
...s[A],
|
|
2300
2300
|
isRowSpan: !0
|
|
2301
|
-
}),
|
|
2301
|
+
}), g > 1) {
|
|
2302
2302
|
const C = [A];
|
|
2303
|
-
for (let w = 1; w <
|
|
2303
|
+
for (let w = 1; w < g; w++) {
|
|
2304
2304
|
const b = u + w;
|
|
2305
2305
|
if (b < e.length) {
|
|
2306
2306
|
const v = e[b][n];
|
|
@@ -2318,8 +2318,8 @@ const $s = (e, t, n = 150) => {
|
|
|
2318
2318
|
isFirst: !0
|
|
2319
2319
|
};
|
|
2320
2320
|
} else {
|
|
2321
|
-
const
|
|
2322
|
-
c.has(
|
|
2321
|
+
const g = h[l];
|
|
2322
|
+
c.has(g) || c.set(g, []), c.get(g).push({
|
|
2323
2323
|
index: u,
|
|
2324
2324
|
rowId: A,
|
|
2325
2325
|
rowData: h
|
|
@@ -2329,20 +2329,20 @@ const $s = (e, t, n = 150) => {
|
|
|
2329
2329
|
if (!(a && typeof a == "function"))
|
|
2330
2330
|
for (const [u, h] of c.entries()) {
|
|
2331
2331
|
if (h.length <= 1) {
|
|
2332
|
-
const
|
|
2333
|
-
|
|
2332
|
+
const p = (d = h[0]) == null ? void 0 : d.rowId;
|
|
2333
|
+
p && (s[p] || (s[p] = {}), s[p][l] = {
|
|
2334
2334
|
span: 1,
|
|
2335
2335
|
isFirst: !0
|
|
2336
2336
|
});
|
|
2337
2337
|
continue;
|
|
2338
2338
|
}
|
|
2339
|
-
const A = h.map((
|
|
2340
|
-
h.forEach((
|
|
2341
|
-
const C =
|
|
2339
|
+
const A = h.map((p) => p.rowId);
|
|
2340
|
+
h.forEach((p, g) => {
|
|
2341
|
+
const C = p.rowId;
|
|
2342
2342
|
s[C] || (s[C] = {}), s[C][l] = {
|
|
2343
|
-
span:
|
|
2344
|
-
isFirst:
|
|
2345
|
-
rowIds:
|
|
2343
|
+
span: g === 0 ? h.length : 0,
|
|
2344
|
+
isFirst: g === 0,
|
|
2345
|
+
rowIds: g === 0 ? A : void 0
|
|
2346
2346
|
// Store row IDs only in the first row
|
|
2347
2347
|
};
|
|
2348
2348
|
});
|
|
@@ -2476,22 +2476,22 @@ const $s = (e, t, n = 150) => {
|
|
|
2476
2476
|
}), a.forEach((c) => {
|
|
2477
2477
|
for (const [d, u] of l.entries()) {
|
|
2478
2478
|
const h = u.length;
|
|
2479
|
-
u.sort((
|
|
2479
|
+
u.sort((p, g) => {
|
|
2480
2480
|
var b, v;
|
|
2481
|
-
const C = ((b =
|
|
2481
|
+
const C = ((b = p.row.__split) == null ? void 0 : b.index) ?? 0, w = ((v = g.row.__split) == null ? void 0 : v.index) ?? 0;
|
|
2482
2482
|
return C - w;
|
|
2483
2483
|
});
|
|
2484
2484
|
const A = u.map(
|
|
2485
|
-
(
|
|
2485
|
+
(p) => p.row[n] || p.row.__flattenedRowId || p.index
|
|
2486
2486
|
);
|
|
2487
|
-
u.forEach((
|
|
2488
|
-
const { row: C, index: w } =
|
|
2487
|
+
u.forEach((p, g) => {
|
|
2488
|
+
const { row: C, index: w } = p, b = C[n] || C.__flattenedRowId || w;
|
|
2489
2489
|
s[b] || (s[b] = {}), s[b][c] = {
|
|
2490
|
-
span:
|
|
2491
|
-
isFirst:
|
|
2492
|
-
rowIds:
|
|
2490
|
+
span: g === 0 ? h : 0,
|
|
2491
|
+
isFirst: g === 0,
|
|
2492
|
+
rowIds: g === 0 ? A : void 0
|
|
2493
2493
|
// Store row IDs only in the first row
|
|
2494
|
-
}, h > 1 &&
|
|
2494
|
+
}, h > 1 && g === 0 && (s[b] = {
|
|
2495
2495
|
...s[b],
|
|
2496
2496
|
isRowSpan: !0
|
|
2497
2497
|
});
|
|
@@ -2651,7 +2651,7 @@ const $s = (e, t, n = 150) => {
|
|
|
2651
2651
|
hasSplitRenderer: !1,
|
|
2652
2652
|
splitRendererKeys: null
|
|
2653
2653
|
}, Do = (e, t) => {
|
|
2654
|
-
var n, r, a, i, s, o, l, c, d, u, h, A,
|
|
2654
|
+
var n, r, a, i, s, o, l, c, d, u, h, A, p, g, C, w, b, v, N, P, z, T, M, m, E, I, x, W, D, H, K, q, F, U, O, k;
|
|
2655
2655
|
switch (t.type) {
|
|
2656
2656
|
case ee.SET_LOADING:
|
|
2657
2657
|
return {
|
|
@@ -3106,10 +3106,10 @@ const $s = (e, t, n = 150) => {
|
|
|
3106
3106
|
e.expandedColumnGroups || {},
|
|
3107
3107
|
0,
|
|
3108
3108
|
null,
|
|
3109
|
-
((A = (h = t.meta) == null ? void 0 : h.defaultColDef) == null ? void 0 : A.minWidth) || ((
|
|
3109
|
+
((A = (h = t.meta) == null ? void 0 : h.defaultColDef) == null ? void 0 : A.minWidth) || ((p = e.defaultColDef) == null ? void 0 : p.minWidth) || 150
|
|
3110
3110
|
), { columns: Q, frozenData: X } = xt(
|
|
3111
3111
|
J,
|
|
3112
|
-
((
|
|
3112
|
+
((g = t.meta) == null ? void 0 : g.defaultColDef) || e.defaultColDef
|
|
3113
3113
|
);
|
|
3114
3114
|
return {
|
|
3115
3115
|
...e,
|
|
@@ -4098,7 +4098,7 @@ const $s = (e, t, n = 150) => {
|
|
|
4098
4098
|
const d = ki(
|
|
4099
4099
|
n,
|
|
4100
4100
|
c,
|
|
4101
|
-
i ? o.filter((
|
|
4101
|
+
i ? o.filter((p) => !p.hidden) : o
|
|
4102
4102
|
), u = new Blob([d], {
|
|
4103
4103
|
type: "text/csv;charset=utf-8;"
|
|
4104
4104
|
}), h = document.createElement("a"), A = URL.createObjectURL(u);
|
|
@@ -4269,10 +4269,10 @@ const $s = (e, t, n = 150) => {
|
|
|
4269
4269
|
// Skip animation for submenus
|
|
4270
4270
|
portalContainer: h = document.body,
|
|
4271
4271
|
additionalButtons: A = null,
|
|
4272
|
-
forcePosition:
|
|
4272
|
+
forcePosition: p = !1
|
|
4273
4273
|
// When true, prevents position flipping even if there's not enough space
|
|
4274
4274
|
}) => {
|
|
4275
|
-
const [
|
|
4275
|
+
const [g, C] = ie({
|
|
4276
4276
|
top: 0,
|
|
4277
4277
|
left: 0,
|
|
4278
4278
|
width: 0,
|
|
@@ -4336,7 +4336,7 @@ const $s = (e, t, n = 150) => {
|
|
|
4336
4336
|
const R = window.innerWidth, _ = window.innerHeight, j = o || Math.max(S.width, 150), G = e.length * 40;
|
|
4337
4337
|
let B = s;
|
|
4338
4338
|
const J = S.top > G, Q = _ - S.bottom > G, X = S.left > j, V = R - S.right > j;
|
|
4339
|
-
if (
|
|
4339
|
+
if (p)
|
|
4340
4340
|
B = s;
|
|
4341
4341
|
else
|
|
4342
4342
|
switch (s) {
|
|
@@ -4394,7 +4394,7 @@ const $s = (e, t, n = 150) => {
|
|
|
4394
4394
|
l,
|
|
4395
4395
|
u,
|
|
4396
4396
|
h,
|
|
4397
|
-
|
|
4397
|
+
p,
|
|
4398
4398
|
F
|
|
4399
4399
|
// Add dependency on menuButtonPosition
|
|
4400
4400
|
]);
|
|
@@ -4408,13 +4408,13 @@ const $s = (e, t, n = 150) => {
|
|
|
4408
4408
|
{
|
|
4409
4409
|
className: `ia-table-menu-submenu d-flex flex-column gap-2 ia-table-position-${v} flip-${P} ${!u && w === "entering" ? "menu-entering" : ""} ${!u && w === "entered" ? "menu-entered" : ""} ${!u && w === "exiting" ? "menu-exiting" : ""} ${c ? "ia-table-submenu-only" : ""}`,
|
|
4410
4410
|
style: {
|
|
4411
|
-
...
|
|
4411
|
+
...g,
|
|
4412
4412
|
position: "absolute",
|
|
4413
|
-
width: o ? `${o}px` :
|
|
4414
|
-
minHeight:
|
|
4415
|
-
transform:
|
|
4416
|
-
transformOrigin:
|
|
4417
|
-
visibility:
|
|
4413
|
+
width: o ? `${o}px` : g.width ? `${g.width}px` : void 0,
|
|
4414
|
+
minHeight: g.height ? `${g.height}px` : void 0,
|
|
4415
|
+
transform: g.transform,
|
|
4416
|
+
transformOrigin: g.transformOrigin,
|
|
4417
|
+
visibility: g.visibility || "hidden"
|
|
4418
4418
|
},
|
|
4419
4419
|
ref: O,
|
|
4420
4420
|
children: [
|
|
@@ -4704,8 +4704,8 @@ const ur = (e, t = {}) => {
|
|
|
4704
4704
|
rowDragManaged: u,
|
|
4705
4705
|
infiniteScroll: h,
|
|
4706
4706
|
initialExpandedColumnGroups: A,
|
|
4707
|
-
tableApi:
|
|
4708
|
-
smartGridMenuOptions:
|
|
4707
|
+
tableApi: p,
|
|
4708
|
+
smartGridMenuOptions: g,
|
|
4709
4709
|
purgeClosedRowNodes: C,
|
|
4710
4710
|
detailRendererTable: w,
|
|
4711
4711
|
isSaveViewEnabled: b,
|
|
@@ -4772,10 +4772,10 @@ const ur = (e, t = {}) => {
|
|
|
4772
4772
|
payload: r
|
|
4773
4773
|
}), e({
|
|
4774
4774
|
type: ee.SET_TABLE_API,
|
|
4775
|
-
payload: { ...
|
|
4775
|
+
payload: { ...p, ...O }
|
|
4776
4776
|
}), e({
|
|
4777
4777
|
type: ee.SET_SMART_GRID_MENU_OPTIONS,
|
|
4778
|
-
payload:
|
|
4778
|
+
payload: g
|
|
4779
4779
|
}), e({
|
|
4780
4780
|
type: ee.ROW_GROUP_CACHE_ENABLE,
|
|
4781
4781
|
payload: C
|
|
@@ -4853,8 +4853,8 @@ const ur = (e, t = {}) => {
|
|
|
4853
4853
|
enableRowSpan: u = !1,
|
|
4854
4854
|
rowSpanColumn: h = null,
|
|
4855
4855
|
columnMap: A = {},
|
|
4856
|
-
infiniteScroll:
|
|
4857
|
-
rowDragManaged:
|
|
4856
|
+
infiniteScroll: p = !1,
|
|
4857
|
+
rowDragManaged: g,
|
|
4858
4858
|
pinnedTopRows: C = [],
|
|
4859
4859
|
pinnedBottomRows: w = [],
|
|
4860
4860
|
getRowStyle: b,
|
|
@@ -4999,8 +4999,8 @@ const ur = (e, t = {}) => {
|
|
|
4999
4999
|
rowSpanColumn: h,
|
|
5000
5000
|
pageSize: o,
|
|
5001
5001
|
serverSide: s,
|
|
5002
|
-
rowDragManaged:
|
|
5003
|
-
infiniteScroll:
|
|
5002
|
+
rowDragManaged: g,
|
|
5003
|
+
infiniteScroll: p,
|
|
5004
5004
|
initialExpandedColumnGroups: d,
|
|
5005
5005
|
tableApi: a,
|
|
5006
5006
|
smartGridMenuOptions: N,
|
|
@@ -5361,12 +5361,12 @@ const ur = (e, t = {}) => {
|
|
|
5361
5361
|
o(r || {});
|
|
5362
5362
|
}, [r]);
|
|
5363
5363
|
const l = (u, h) => {
|
|
5364
|
-
var
|
|
5364
|
+
var p, g;
|
|
5365
5365
|
const A = { ...s };
|
|
5366
|
-
h === "" ? delete A[u] : A[u] = h, o(A), (
|
|
5366
|
+
h === "" ? delete A[u] : A[u] = h, o(A), (p = a == null ? void 0 : a.current) != null && p.onFilterChange ? a.current.onFilterChange(A) : (e({
|
|
5367
5367
|
type: t.SET_COLUMN_FILTER,
|
|
5368
5368
|
payload: { field: u, rules: [{ field: u, value: h, operator: "contains" }] }
|
|
5369
|
-
}), (
|
|
5369
|
+
}), (g = i.applySearch) == null || g.call(i));
|
|
5370
5370
|
}, c = () => {
|
|
5371
5371
|
var u, h;
|
|
5372
5372
|
o({}), (u = a == null ? void 0 : a.current) != null && u.onFilterChange ? a.current.onFilterChange({}) : (Object.keys(r).forEach((A) => {
|
|
@@ -5474,7 +5474,7 @@ const ur = (e, t = {}) => {
|
|
|
5474
5474
|
isLoading: T.isLoading,
|
|
5475
5475
|
isCountUnknown: T.pagination.isCountUnknown
|
|
5476
5476
|
}))
|
|
5477
|
-
),
|
|
5477
|
+
), p = c, g = d, [C, w] = ie(u), [b, v] = ie(C);
|
|
5478
5478
|
se(() => {
|
|
5479
5479
|
w(u), v(u);
|
|
5480
5480
|
}, [u]), se(() => {
|
|
@@ -5484,10 +5484,10 @@ const ur = (e, t = {}) => {
|
|
|
5484
5484
|
}
|
|
5485
5485
|
}, [b, C, a, o]);
|
|
5486
5486
|
const N = (T) => {
|
|
5487
|
-
T < 1 || T >
|
|
5487
|
+
T < 1 || T > p && !A || a({ type: i.SET_PAGE, payload: T });
|
|
5488
5488
|
};
|
|
5489
5489
|
if (!t) return null;
|
|
5490
|
-
const P = A ? s.length < C / 2 :
|
|
5490
|
+
const P = A ? s.length < C / 2 : g === p || p === 0, z = A && o;
|
|
5491
5491
|
return /* @__PURE__ */ te("div", { className: "ia-table-table-pagination d-flex align-items-center bg-white gap-8 justify-content-end", children: [
|
|
5492
5492
|
!n && s.length !== 0 && /* @__PURE__ */ f(
|
|
5493
5493
|
tl,
|
|
@@ -5506,11 +5506,11 @@ const ur = (e, t = {}) => {
|
|
|
5506
5506
|
"button",
|
|
5507
5507
|
{
|
|
5508
5508
|
className: "ia-table-page-button",
|
|
5509
|
-
onClick: () => N(
|
|
5510
|
-
disabled:
|
|
5509
|
+
onClick: () => N(g - 1),
|
|
5510
|
+
disabled: g === 1 || h,
|
|
5511
5511
|
style: {
|
|
5512
|
-
cursor:
|
|
5513
|
-
opacity:
|
|
5512
|
+
cursor: g === 1 ? "default" : "pointer",
|
|
5513
|
+
opacity: g === 1 ? 0.5 : 1
|
|
5514
5514
|
},
|
|
5515
5515
|
title: "Previous page",
|
|
5516
5516
|
children: /* @__PURE__ */ f(nl, { width: "24", height: "24" })
|
|
@@ -5520,49 +5520,49 @@ const ur = (e, t = {}) => {
|
|
|
5520
5520
|
const M = [], E = (x) => /* @__PURE__ */ f(
|
|
5521
5521
|
"div",
|
|
5522
5522
|
{
|
|
5523
|
-
className: `ia-table-page-count cursor-pointer d-flex align-items-center justify-content-center ${
|
|
5523
|
+
className: `ia-table-page-count cursor-pointer d-flex align-items-center justify-content-center ${g === x ? "ia-table-active-page" : ""}`,
|
|
5524
5524
|
onClick: () => !h && N(x),
|
|
5525
5525
|
children: x
|
|
5526
5526
|
},
|
|
5527
5527
|
`page-${x}`
|
|
5528
5528
|
), I = (x) => /* @__PURE__ */ f(Gr, { width: "24", height: "24" }, x);
|
|
5529
|
-
if (
|
|
5530
|
-
for (let x = 1; x <=
|
|
5529
|
+
if (p <= 7)
|
|
5530
|
+
for (let x = 1; x <= p; x++)
|
|
5531
5531
|
M.push(E(x));
|
|
5532
5532
|
else {
|
|
5533
5533
|
M.push(E(1));
|
|
5534
|
-
const x =
|
|
5534
|
+
const x = g <= 4, W = g >= p - 3, D = x ? 2 : W ? p - 4 : g - 1, H = x ? 5 : W ? p - 1 : g + 1;
|
|
5535
5535
|
D > 2 ? M.push(I("left-dots")) : M.push(E(2));
|
|
5536
|
-
const K = typeof D == "number" && !isNaN(D) ? D : 3, q = typeof H == "number" && !isNaN(H) ? H : 5, F = Math.max(3, K), U = Math.min(
|
|
5536
|
+
const K = typeof D == "number" && !isNaN(D) ? D : 3, q = typeof H == "number" && !isNaN(H) ? H : 5, F = Math.max(3, K), U = Math.min(p - 2, q);
|
|
5537
5537
|
if (typeof F == "number" && typeof U == "number" && !isNaN(F) && !isNaN(U) && F <= U)
|
|
5538
5538
|
for (let k = F; k <= U; k++)
|
|
5539
5539
|
M.push(E(k));
|
|
5540
|
-
H <
|
|
5540
|
+
H < p - 1 ? M.push(I("right-dots")) : M.push(E(p - 1)), M.push(E(p));
|
|
5541
5541
|
const O = 7 - M.length;
|
|
5542
5542
|
if (O > 0)
|
|
5543
5543
|
if (x) {
|
|
5544
5544
|
let k = 3;
|
|
5545
|
-
for (let S = 3; S < 3 + O && S <
|
|
5545
|
+
for (let S = 3; S < 3 + O && S < p - 1; S++)
|
|
5546
5546
|
Array.isArray(M) && !M.some((L) => L && L.key === `page-${S}`) && M.splice(k++, 0, E(S));
|
|
5547
5547
|
} else
|
|
5548
|
-
for (let k =
|
|
5548
|
+
for (let k = p - 2; k > 2 && O > (M.length - 7) * -1; k--)
|
|
5549
5549
|
Array.isArray(M) && !M.some((S) => S && S.key === `page-${k}`) && M.splice(M.length - 1, 0, E(k));
|
|
5550
5550
|
}
|
|
5551
5551
|
if (z)
|
|
5552
|
-
if (
|
|
5553
|
-
const x =
|
|
5552
|
+
if (p > 6) {
|
|
5553
|
+
const x = g <= 3, W = g >= p - 2, D = x ? 3 : W ? Math.max(3, p - 3) : g - 1, H = x ? Math.min(5, p - 1) : W ? p - 1 : g + 1;
|
|
5554
5554
|
return [
|
|
5555
5555
|
// First page always shown
|
|
5556
5556
|
E(1),
|
|
5557
5557
|
// Show dots or page 2
|
|
5558
|
-
|
|
5558
|
+
g > 3 ? I("left-dots") : E(2),
|
|
5559
5559
|
// Middle pages (filtered to avoid duplicates with first/last page)
|
|
5560
5560
|
...typeof D == "number" && typeof H == "number" && !isNaN(D) && !isNaN(H) && H >= D ? Array.from(
|
|
5561
5561
|
{ length: H - D + 1 },
|
|
5562
5562
|
(K, q) => D + q
|
|
5563
|
-
).filter((K) => K > 1 && K <
|
|
5563
|
+
).filter((K) => K > 1 && K < p).map((K) => E(K)) : [],
|
|
5564
5564
|
// Last page if we have more than one page
|
|
5565
|
-
...
|
|
5565
|
+
...p > 1 ? [E(p)] : [],
|
|
5566
5566
|
// Server dots always at the end
|
|
5567
5567
|
/* @__PURE__ */ f(
|
|
5568
5568
|
Gr,
|
|
@@ -5590,7 +5590,7 @@ const ur = (e, t = {}) => {
|
|
|
5590
5590
|
"button",
|
|
5591
5591
|
{
|
|
5592
5592
|
className: "ia-table-page-button",
|
|
5593
|
-
onClick: () => N(
|
|
5593
|
+
onClick: () => N(g + 1),
|
|
5594
5594
|
disabled: P || h,
|
|
5595
5595
|
style: {
|
|
5596
5596
|
cursor: P ? "default" : "pointer",
|
|
@@ -5805,20 +5805,20 @@ const ur = (e, t = {}) => {
|
|
|
5805
5805
|
}, [i]), c = de(
|
|
5806
5806
|
(u, h) => {
|
|
5807
5807
|
u.preventDefault();
|
|
5808
|
-
const A = u.dataTransfer.getData("text/plain"),
|
|
5808
|
+
const A = u.dataTransfer.getData("text/plain"), p = (C, w) => {
|
|
5809
5809
|
for (const b of C) {
|
|
5810
5810
|
if (ne(b) === w) return b;
|
|
5811
5811
|
if (b.children) {
|
|
5812
|
-
const N =
|
|
5812
|
+
const N = p(b.children, w);
|
|
5813
5813
|
if (N) return N;
|
|
5814
5814
|
}
|
|
5815
5815
|
}
|
|
5816
5816
|
return null;
|
|
5817
|
-
},
|
|
5818
|
-
|
|
5817
|
+
}, g = p(e, A);
|
|
5818
|
+
g && h && ne(g) !== ne(h) && t({
|
|
5819
5819
|
type: ee.REORDER_COLUMNS,
|
|
5820
5820
|
payload: {
|
|
5821
|
-
sourceColumn:
|
|
5821
|
+
sourceColumn: g,
|
|
5822
5822
|
targetColumn: h
|
|
5823
5823
|
}
|
|
5824
5824
|
}), r(null), i(null);
|
|
@@ -5902,18 +5902,18 @@ const ur = (e, t = {}) => {
|
|
|
5902
5902
|
{
|
|
5903
5903
|
className: `table-setting-scroll-main-column ${A === h ? "dragging" : ""}`,
|
|
5904
5904
|
draggable: !0,
|
|
5905
|
-
onDragStart: (
|
|
5906
|
-
onDragOver: (
|
|
5905
|
+
onDragStart: (p) => s(p, e),
|
|
5906
|
+
onDragOver: (p) => o(p, e),
|
|
5907
5907
|
onDragLeave: l,
|
|
5908
|
-
onDrop: (
|
|
5908
|
+
onDrop: (p) => c(p, e),
|
|
5909
5909
|
onDragEnd: d,
|
|
5910
5910
|
children: [
|
|
5911
5911
|
/* @__PURE__ */ f(
|
|
5912
5912
|
"button",
|
|
5913
5913
|
{
|
|
5914
5914
|
className: `collapse-button scrollable-caret ${t ? "collapsed" : ""}`,
|
|
5915
|
-
onClick: () => a((
|
|
5916
|
-
...
|
|
5915
|
+
onClick: () => a((p) => ({
|
|
5916
|
+
...p,
|
|
5917
5917
|
[h]: !t
|
|
5918
5918
|
})),
|
|
5919
5919
|
"aria-label": `Toggle ${h} group`,
|
|
@@ -5959,31 +5959,31 @@ const ur = (e, t = {}) => {
|
|
|
5959
5959
|
}) => {
|
|
5960
5960
|
const h = ne(u);
|
|
5961
5961
|
return /* @__PURE__ */ f("div", { className: "table-setting-scroll-inner-column-list gap-2", children: e.map((A) => {
|
|
5962
|
-
const
|
|
5962
|
+
const p = ne(A), g = A.children && Array.isArray(A.children) && A.children.length > 0, C = n[p] || !1, w = a(A);
|
|
5963
5963
|
return /* @__PURE__ */ te(tn.Fragment, { children: [
|
|
5964
5964
|
/* @__PURE__ */ te(
|
|
5965
5965
|
"div",
|
|
5966
5966
|
{
|
|
5967
|
-
className: `table-setting-scroll-inner-column ${h ===
|
|
5967
|
+
className: `table-setting-scroll-inner-column ${h === p ? "dragging" : ""}`,
|
|
5968
5968
|
style: {
|
|
5969
|
-
paddingLeft: `${
|
|
5969
|
+
paddingLeft: `${g ? 32 + (t - 1) * 16 : 60 + (t - 1) * 16}px`
|
|
5970
5970
|
},
|
|
5971
|
-
draggable: !
|
|
5971
|
+
draggable: !g,
|
|
5972
5972
|
onDragStart: (b) => s(b, A),
|
|
5973
5973
|
onDragOver: (b) => o(b, A),
|
|
5974
5974
|
onDragLeave: l,
|
|
5975
5975
|
onDrop: (b) => c(b, A),
|
|
5976
5976
|
onDragEnd: d,
|
|
5977
5977
|
children: [
|
|
5978
|
-
|
|
5978
|
+
g && /* @__PURE__ */ f(
|
|
5979
5979
|
"button",
|
|
5980
5980
|
{
|
|
5981
5981
|
className: `collapse-button scrollable-caret ${C ? "collapsed" : ""}`,
|
|
5982
5982
|
onClick: () => r((b) => ({
|
|
5983
5983
|
...b,
|
|
5984
|
-
[
|
|
5984
|
+
[p]: !C
|
|
5985
5985
|
})),
|
|
5986
|
-
"aria-label": `Toggle ${
|
|
5986
|
+
"aria-label": `Toggle ${p} group`,
|
|
5987
5987
|
children: /* @__PURE__ */ f(Rr, { className: "caret-icon" })
|
|
5988
5988
|
}
|
|
5989
5989
|
),
|
|
@@ -6002,11 +6002,11 @@ const ur = (e, t = {}) => {
|
|
|
6002
6002
|
}
|
|
6003
6003
|
),
|
|
6004
6004
|
/* @__PURE__ */ f($n, { className: "drag-icon" }),
|
|
6005
|
-
A.headerName || A.label ||
|
|
6005
|
+
A.headerName || A.label || p
|
|
6006
6006
|
]
|
|
6007
6007
|
}
|
|
6008
6008
|
),
|
|
6009
|
-
|
|
6009
|
+
g && !C && /* @__PURE__ */ f(
|
|
6010
6010
|
ta,
|
|
6011
6011
|
{
|
|
6012
6012
|
columns: A.children,
|
|
@@ -6023,7 +6023,7 @@ const ur = (e, t = {}) => {
|
|
|
6023
6023
|
draggedColumn: u
|
|
6024
6024
|
}
|
|
6025
6025
|
)
|
|
6026
|
-
] },
|
|
6026
|
+
] }, p);
|
|
6027
6027
|
}) });
|
|
6028
6028
|
}
|
|
6029
6029
|
), ul = () => {
|
|
@@ -6033,7 +6033,7 @@ const ur = (e, t = {}) => {
|
|
|
6033
6033
|
expandedColumnGroups: G.expandedColumnGroups,
|
|
6034
6034
|
filteredData: G.filteredData
|
|
6035
6035
|
}))
|
|
6036
|
-
), [i, s] = ie(""), [o, l] = ie([]), [c, d] = ie(!1), [u, h] = ie({}), [A,
|
|
6036
|
+
), [i, s] = ie(""), [o, l] = ie([]), [c, d] = ie(!1), [u, h] = ie({}), [A, p] = ie(!1), [g, C] = ie(!1), {
|
|
6037
6037
|
handleDragStart: w,
|
|
6038
6038
|
handleDragOver: b,
|
|
6039
6039
|
handleDragLeave: v,
|
|
@@ -6249,7 +6249,7 @@ const ur = (e, t = {}) => {
|
|
|
6249
6249
|
},
|
|
6250
6250
|
[o, m, D, k]
|
|
6251
6251
|
), y = M(x), R = de(
|
|
6252
|
-
() =>
|
|
6252
|
+
() => p((G) => !G),
|
|
6253
6253
|
[]
|
|
6254
6254
|
), _ = de(
|
|
6255
6255
|
() => C((G) => !G),
|
|
@@ -6369,7 +6369,7 @@ const ur = (e, t = {}) => {
|
|
|
6369
6369
|
/* @__PURE__ */ f(
|
|
6370
6370
|
"button",
|
|
6371
6371
|
{
|
|
6372
|
-
className: `collapse-button scrollable-caret ${
|
|
6372
|
+
className: `collapse-button scrollable-caret ${g ? "collapsed" : ""}`,
|
|
6373
6373
|
onClick: _,
|
|
6374
6374
|
"aria-label": "Toggle main column group",
|
|
6375
6375
|
children: /* @__PURE__ */ f(Rr, { className: "caret-icon" })
|
|
@@ -6437,7 +6437,7 @@ const ur = (e, t = {}) => {
|
|
|
6437
6437
|
/* @__PURE__ */ f($n, { className: "drag-icon" }),
|
|
6438
6438
|
/* @__PURE__ */ f("span", { children: "Main Columns" })
|
|
6439
6439
|
] }),
|
|
6440
|
-
!
|
|
6440
|
+
!g && /* @__PURE__ */ f("div", { className: "table-setting-scroll-inner-column-list gap-2", children: I.map((G) => {
|
|
6441
6441
|
if (!G.children || G.children.length === 0)
|
|
6442
6442
|
return /* @__PURE__ */ f(
|
|
6443
6443
|
Oa,
|
|
@@ -6553,7 +6553,7 @@ const yr = rt(Ki), pl = (e) => /* @__PURE__ */ re.createElement("svg", { width:
|
|
|
6553
6553
|
[o, t]
|
|
6554
6554
|
);
|
|
6555
6555
|
if (!e) return null;
|
|
6556
|
-
const h = `ia-table-prompt-${a}`, A = a === "delete" || a === "error" ? "danger" : "primary",
|
|
6556
|
+
const h = `ia-table-prompt-${a}`, A = a === "delete" || a === "error" ? "danger" : "primary", p = s || l, g = s && a !== "success", C = /* @__PURE__ */ f("div", { className: "ia-table-prompt-overlay d-flex align-items-center justify-content-center", children: /* @__PURE__ */ te(
|
|
6557
6557
|
"div",
|
|
6558
6558
|
{
|
|
6559
6559
|
className: `ia-table-prompt d-flex flex-column position-relative ${h}`,
|
|
@@ -6572,9 +6572,9 @@ const yr = rt(Ki), pl = (e) => /* @__PURE__ */ re.createElement("svg", { width:
|
|
|
6572
6572
|
n && /* @__PURE__ */ f("div", { className: "ia-table-prompt-title", children: n }),
|
|
6573
6573
|
r && /* @__PURE__ */ f("div", { className: "ia-table-prompt-message", children: r })
|
|
6574
6574
|
] }),
|
|
6575
|
-
|
|
6575
|
+
p && /* @__PURE__ */ te("div", { className: "ia-table-prompt-footer d-flex justify-content-center align-items-center gap-12", children: [
|
|
6576
6576
|
l && /* @__PURE__ */ f(Ue, { onClick: u, variant: "text", children: l }),
|
|
6577
|
-
|
|
6577
|
+
g && /* @__PURE__ */ f(
|
|
6578
6578
|
Ue,
|
|
6579
6579
|
{
|
|
6580
6580
|
onClick: i,
|
|
@@ -6616,8 +6616,8 @@ const Ji = rt(Zi), Xi = ({
|
|
|
6616
6616
|
secondaryButtonLabel: u = "Cancel",
|
|
6617
6617
|
closeOnOutsideClick: h = !0,
|
|
6618
6618
|
primaryButtonVariant: A = "primary",
|
|
6619
|
-
primaryButtonProps:
|
|
6620
|
-
showCloseButton:
|
|
6619
|
+
primaryButtonProps: p = {},
|
|
6620
|
+
showCloseButton: g = !0,
|
|
6621
6621
|
showPrimaryButton: C = !0,
|
|
6622
6622
|
showSecondaryButton: w = !0
|
|
6623
6623
|
}) => {
|
|
@@ -6653,7 +6653,7 @@ const Ji = rt(Zi), Xi = ({
|
|
|
6653
6653
|
children: [
|
|
6654
6654
|
/* @__PURE__ */ te("div", { className: "ia-table-modal-header d-flex justify-content-between align-items-center", children: [
|
|
6655
6655
|
/* @__PURE__ */ f("div", { className: "ia-table-modal-header-content", children: n && /* @__PURE__ */ f("h2", { className: "ia-table-modal-title", children: n }) }),
|
|
6656
|
-
|
|
6656
|
+
g && /* @__PURE__ */ f(
|
|
6657
6657
|
Ue,
|
|
6658
6658
|
{
|
|
6659
6659
|
onClick: t,
|
|
@@ -6681,7 +6681,7 @@ const Ji = rt(Zi), Xi = ({
|
|
|
6681
6681
|
{
|
|
6682
6682
|
onClick: l,
|
|
6683
6683
|
variant: A,
|
|
6684
|
-
...
|
|
6684
|
+
...p,
|
|
6685
6685
|
children: c
|
|
6686
6686
|
}
|
|
6687
6687
|
)
|
|
@@ -6728,8 +6728,8 @@ const wl = rt(Xi), El = ({
|
|
|
6728
6728
|
onClick: u = (b) => b.stopPropagation(),
|
|
6729
6729
|
isCellRenderer: h = !1,
|
|
6730
6730
|
inputType: A = "text",
|
|
6731
|
-
iconButton:
|
|
6732
|
-
iconButtonClassName:
|
|
6731
|
+
iconButton: p = null,
|
|
6732
|
+
iconButtonClassName: g = "",
|
|
6733
6733
|
height: C,
|
|
6734
6734
|
...w
|
|
6735
6735
|
}) => {
|
|
@@ -6772,8 +6772,8 @@ const wl = rt(Xi), El = ({
|
|
|
6772
6772
|
s ? "ia-table-input-error" : "",
|
|
6773
6773
|
o ? "has-left-icon" : "",
|
|
6774
6774
|
l ? "has-right-icon" : "",
|
|
6775
|
-
|
|
6776
|
-
|
|
6775
|
+
p && !T ? "has-left-icon-button" : "",
|
|
6776
|
+
p && T ? "has-right-icon-button" : "",
|
|
6777
6777
|
h ? "ia-table-cellrender-input" : "",
|
|
6778
6778
|
c
|
|
6779
6779
|
].filter(Boolean).join(" ");
|
|
@@ -6797,12 +6797,12 @@ const wl = rt(Xi), El = ({
|
|
|
6797
6797
|
},
|
|
6798
6798
|
children: [
|
|
6799
6799
|
o && /* @__PURE__ */ f("div", { className: "left-input-icon d-flex align-items-center justify-content-center", children: o }),
|
|
6800
|
-
|
|
6800
|
+
p && !T && /* @__PURE__ */ f(
|
|
6801
6801
|
"div",
|
|
6802
6802
|
{
|
|
6803
6803
|
ref: v,
|
|
6804
|
-
className: `left-input-icon-button d-flex align-items-center justify-content-center ${
|
|
6805
|
-
children:
|
|
6804
|
+
className: `left-input-icon-button d-flex align-items-center justify-content-center ${g}`,
|
|
6805
|
+
children: p
|
|
6806
6806
|
}
|
|
6807
6807
|
),
|
|
6808
6808
|
/* @__PURE__ */ f("div", { className: "ia-table-input-wrapper", children: /* @__PURE__ */ f(
|
|
@@ -6822,11 +6822,11 @@ const wl = rt(Xi), El = ({
|
|
|
6822
6822
|
}
|
|
6823
6823
|
) }),
|
|
6824
6824
|
l && /* @__PURE__ */ f("div", { className: "right-input-icon d-flex align-items-center justify-content-center", children: l }),
|
|
6825
|
-
|
|
6825
|
+
p && T && /* @__PURE__ */ f(
|
|
6826
6826
|
"div",
|
|
6827
6827
|
{
|
|
6828
|
-
className: `right-input-icon-button d-flex align-items-center justify-content-center ${
|
|
6829
|
-
children:
|
|
6828
|
+
className: `right-input-icon-button d-flex align-items-center justify-content-center ${g}`,
|
|
6829
|
+
children: p
|
|
6830
6830
|
}
|
|
6831
6831
|
)
|
|
6832
6832
|
]
|
|
@@ -6891,8 +6891,8 @@ const wl = rt(Xi), El = ({
|
|
|
6891
6891
|
currentOptions: u,
|
|
6892
6892
|
setCurrentOptions: h,
|
|
6893
6893
|
onBlur: A,
|
|
6894
|
-
isCellRenderer:
|
|
6895
|
-
tableApi:
|
|
6894
|
+
isCellRenderer: p = !1,
|
|
6895
|
+
tableApi: g,
|
|
6896
6896
|
lazyLoadCellRenderer: C
|
|
6897
6897
|
}) => {
|
|
6898
6898
|
const w = ce(null), b = ce(null), v = ce(null), [N, P] = ie(!1), [z, T] = ie(""), [M, m] = ie({
|
|
@@ -6900,7 +6900,7 @@ const wl = rt(Xi), El = ({
|
|
|
6900
6900
|
left: 0,
|
|
6901
6901
|
width: 0
|
|
6902
6902
|
}), [E, I] = ie(-1), [x, W] = ie(o), D = u || x || o, H = i !== void 0 ? i : N, K = s || P;
|
|
6903
|
-
fa(H,
|
|
6903
|
+
fa(H, p, g), se(() => {
|
|
6904
6904
|
C && K(C);
|
|
6905
6905
|
}, [C]), se(() => {
|
|
6906
6906
|
if (H && w.current && l) {
|
|
@@ -6913,7 +6913,7 @@ const wl = rt(Xi), El = ({
|
|
|
6913
6913
|
}
|
|
6914
6914
|
}, [H, l]), se(() => {
|
|
6915
6915
|
const S = (y) => {
|
|
6916
|
-
w.current && !w.current.contains(y.target) && b.current && !b.current.contains(y.target) && (K(!1), A && A(),
|
|
6916
|
+
w.current && !w.current.contains(y.target) && b.current && !b.current.contains(y.target) && (K(!1), A && A(), p && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1));
|
|
6917
6917
|
}, L = () => {
|
|
6918
6918
|
if (H && l && w.current) {
|
|
6919
6919
|
const y = w.current.getBoundingClientRect();
|
|
@@ -6927,7 +6927,7 @@ const wl = rt(Xi), El = ({
|
|
|
6927
6927
|
return H && (document.addEventListener("mousedown", S), l && (window.addEventListener("scroll", L, !0), window.addEventListener("resize", L))), () => {
|
|
6928
6928
|
document.removeEventListener("mousedown", S), l && (window.removeEventListener("scroll", L, !0), window.removeEventListener("resize", L));
|
|
6929
6929
|
};
|
|
6930
|
-
}, [H, K, l,
|
|
6930
|
+
}, [H, K, l, p, A, g]), se(() => {
|
|
6931
6931
|
H && v.current && (v.current.focus(), I(-1));
|
|
6932
6932
|
}, [H]), se(() => {
|
|
6933
6933
|
u || o && o.length > 0 && W(o);
|
|
@@ -6947,9 +6947,9 @@ const wl = rt(Xi), El = ({
|
|
|
6947
6947
|
) : [...n || [], S]
|
|
6948
6948
|
);
|
|
6949
6949
|
} else
|
|
6950
|
-
r(S), K(!1),
|
|
6950
|
+
r(S), K(!1), p && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1);
|
|
6951
6951
|
},
|
|
6952
|
-
[d, n, r, K,
|
|
6952
|
+
[d, n, r, K, p]
|
|
6953
6953
|
), U = de(
|
|
6954
6954
|
(S) => {
|
|
6955
6955
|
const L = S.target.value.toLowerCase();
|
|
@@ -7004,7 +7004,7 @@ const wl = rt(Xi), El = ({
|
|
|
7004
7004
|
}
|
|
7005
7005
|
break;
|
|
7006
7006
|
case "Escape":
|
|
7007
|
-
L.preventDefault(), L.stopPropagation(), K(!1),
|
|
7007
|
+
L.preventDefault(), L.stopPropagation(), K(!1), p && (g != null && g.tableId) ? (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1) : p && (window.iaTablePortalOpen[g.tableId] = !1);
|
|
7008
7008
|
break;
|
|
7009
7009
|
}
|
|
7010
7010
|
};
|
|
@@ -7017,14 +7017,14 @@ const wl = rt(Xi), El = ({
|
|
|
7017
7017
|
E,
|
|
7018
7018
|
F,
|
|
7019
7019
|
K,
|
|
7020
|
-
|
|
7021
|
-
|
|
7020
|
+
p,
|
|
7021
|
+
g
|
|
7022
7022
|
]);
|
|
7023
7023
|
const O = [
|
|
7024
7024
|
"ia-table-select-container d-flex justify-content-between align-items-center",
|
|
7025
7025
|
a ? "ia-table-select-disabled" : "",
|
|
7026
7026
|
H ? "ia-table-select-open" : "",
|
|
7027
|
-
|
|
7027
|
+
p ? "ia-table-selectrenderer" : "",
|
|
7028
7028
|
c
|
|
7029
7029
|
].filter(Boolean).join(" "), k = () => {
|
|
7030
7030
|
const S = D.filter((y) => !y.isDisabled), L = /* @__PURE__ */ te(
|
|
@@ -7090,7 +7090,7 @@ const wl = rt(Xi), El = ({
|
|
|
7090
7090
|
return /* @__PURE__ */ te(
|
|
7091
7091
|
"div",
|
|
7092
7092
|
{
|
|
7093
|
-
className: `ia-table-selectbox-container ${
|
|
7093
|
+
className: `ia-table-selectbox-container ${p && a ? "ia-table-cell-render-select-disabled" : ""}`,
|
|
7094
7094
|
style: { width: t },
|
|
7095
7095
|
children: [
|
|
7096
7096
|
e && /* @__PURE__ */ f("label", { className: "ia-table-select-label", children: e }),
|
|
@@ -7227,8 +7227,8 @@ const yl = ({
|
|
|
7227
7227
|
setInputValue: u,
|
|
7228
7228
|
setSelectedSavedView: h,
|
|
7229
7229
|
isSavingViewLoading: A,
|
|
7230
|
-
setSelectedViewType:
|
|
7231
|
-
setIsDefaultView:
|
|
7230
|
+
setSelectedViewType: p,
|
|
7231
|
+
setIsDefaultView: g,
|
|
7232
7232
|
currentSaveViewOptions: C,
|
|
7233
7233
|
setCurrentSaveViewOptions: w
|
|
7234
7234
|
} = e, b = Fe(
|
|
@@ -7280,7 +7280,7 @@ const yl = ({
|
|
|
7280
7280
|
{ label: "Global", value: "global" },
|
|
7281
7281
|
{ label: "Personal", value: "personal" }
|
|
7282
7282
|
],
|
|
7283
|
-
onChange: (v) =>
|
|
7283
|
+
onChange: (v) => p(v.target.value),
|
|
7284
7284
|
orientation: "row",
|
|
7285
7285
|
selectedOption: d
|
|
7286
7286
|
}
|
|
@@ -7290,7 +7290,7 @@ const yl = ({
|
|
|
7290
7290
|
ga,
|
|
7291
7291
|
{
|
|
7292
7292
|
checked: c,
|
|
7293
|
-
onChange: () =>
|
|
7293
|
+
onChange: () => g(!c),
|
|
7294
7294
|
label: "Make it default view"
|
|
7295
7295
|
}
|
|
7296
7296
|
) }),
|
|
@@ -7322,7 +7322,7 @@ const yl = ({
|
|
|
7322
7322
|
handleEditView: i,
|
|
7323
7323
|
setOpenSaveViewMenu: s
|
|
7324
7324
|
} = e, o = Fe(
|
|
7325
|
-
ze((
|
|
7325
|
+
ze((g) => g.saveViewCallbackRef)
|
|
7326
7326
|
), [l, c] = ie("All"), [d, u] = ie(""), [h, A] = ie(null);
|
|
7327
7327
|
return /* @__PURE__ */ te("div", { className: "save-view-menu d-flex flex-column gap-4 position-absolute", children: [
|
|
7328
7328
|
/* @__PURE__ */ te("div", { className: "save-view-menu-title d-flex align-items-center justify-content-between", children: [
|
|
@@ -7353,7 +7353,7 @@ const yl = ({
|
|
|
7353
7353
|
color: l === "Global" ? "info" : "default",
|
|
7354
7354
|
onClick: () => {
|
|
7355
7355
|
c("Global"), r(
|
|
7356
|
-
t.filter((
|
|
7356
|
+
t.filter((g) => g.viewType === "global")
|
|
7357
7357
|
);
|
|
7358
7358
|
},
|
|
7359
7359
|
size: "small"
|
|
@@ -7367,7 +7367,7 @@ const yl = ({
|
|
|
7367
7367
|
color: l === "Personal" ? "info" : "default",
|
|
7368
7368
|
onClick: () => {
|
|
7369
7369
|
c("Personal"), r(
|
|
7370
|
-
t.filter((
|
|
7370
|
+
t.filter((g) => g.viewType === "personal")
|
|
7371
7371
|
);
|
|
7372
7372
|
},
|
|
7373
7373
|
size: "small"
|
|
@@ -7380,53 +7380,53 @@ const yl = ({
|
|
|
7380
7380
|
placeholder: "Search here...",
|
|
7381
7381
|
leftIcon: /* @__PURE__ */ f(Pr, {}),
|
|
7382
7382
|
value: d,
|
|
7383
|
-
onChange: (
|
|
7384
|
-
u(
|
|
7383
|
+
onChange: (g) => {
|
|
7384
|
+
u(g.target.value);
|
|
7385
7385
|
const C = t.filter(
|
|
7386
|
-
(w) => w.viewName.toLowerCase().includes(
|
|
7386
|
+
(w) => w.viewName.toLowerCase().includes(g.target.value.toLowerCase())
|
|
7387
7387
|
);
|
|
7388
7388
|
r(C);
|
|
7389
7389
|
}
|
|
7390
7390
|
}
|
|
7391
7391
|
) }),
|
|
7392
|
-
/* @__PURE__ */ f("div", { className: "save-view-menu-view-list-container d-flex flex-column gap-4 position-absolute", children: n.length > 0 && n.map((
|
|
7392
|
+
/* @__PURE__ */ f("div", { className: "save-view-menu-view-list-container d-flex flex-column gap-4 position-absolute", children: n.length > 0 && n.map((g, C) => /* @__PURE__ */ te(
|
|
7393
7393
|
"div",
|
|
7394
7394
|
{
|
|
7395
|
-
className: `save-view-menu-view-list-item d-flex align-items-center justify-content-between cursor-pointer ${
|
|
7395
|
+
className: `save-view-menu-view-list-item d-flex align-items-center justify-content-between cursor-pointer ${g.isActive ? "active" : ""}`,
|
|
7396
7396
|
onClick: () => {
|
|
7397
7397
|
r(
|
|
7398
|
-
(w) => w.map((b) => b.viewName ===
|
|
7398
|
+
(w) => w.map((b) => b.viewName === g.viewName ? {
|
|
7399
7399
|
...b,
|
|
7400
7400
|
isActive: !0
|
|
7401
7401
|
} : {
|
|
7402
7402
|
...b,
|
|
7403
7403
|
isActive: !1
|
|
7404
7404
|
})
|
|
7405
|
-
), A(
|
|
7405
|
+
), A(g);
|
|
7406
7406
|
},
|
|
7407
7407
|
children: [
|
|
7408
|
-
/* @__PURE__ */ f("span", { className: "save-view-menu-view-list-item-name text-overflow-ellipsis", children:
|
|
7408
|
+
/* @__PURE__ */ f("span", { className: "save-view-menu-view-list-item-name text-overflow-ellipsis", children: g.viewName }),
|
|
7409
7409
|
/* @__PURE__ */ te("div", { className: "save-view-menu-view-list-item-actions d-flex align-items-center gap-6", children: [
|
|
7410
7410
|
/* @__PURE__ */ f(
|
|
7411
7411
|
Sl,
|
|
7412
7412
|
{
|
|
7413
7413
|
className: "ia-table-icon-14",
|
|
7414
|
-
onClick: (w) => i(
|
|
7414
|
+
onClick: (w) => i(g, w)
|
|
7415
7415
|
}
|
|
7416
7416
|
),
|
|
7417
7417
|
/* @__PURE__ */ f(
|
|
7418
7418
|
vl,
|
|
7419
7419
|
{
|
|
7420
7420
|
className: "ia-table-icon-14",
|
|
7421
|
-
onClick: (w) => a(
|
|
7421
|
+
onClick: (w) => a(g, w)
|
|
7422
7422
|
}
|
|
7423
7423
|
),
|
|
7424
|
-
|
|
7424
|
+
g.isDefaultView ? /* @__PURE__ */ f(
|
|
7425
7425
|
Fa,
|
|
7426
7426
|
{
|
|
7427
7427
|
className: "default-view-active-icon ia-table-icon-14",
|
|
7428
7428
|
onClick: (w) => {
|
|
7429
|
-
w.stopPropagation(), w.preventDefault(), o.current.handleSetDefaultView(
|
|
7429
|
+
w.stopPropagation(), w.preventDefault(), o.current.handleSetDefaultView(g);
|
|
7430
7430
|
}
|
|
7431
7431
|
}
|
|
7432
7432
|
) : /* @__PURE__ */ f(
|
|
@@ -7434,14 +7434,14 @@ const yl = ({
|
|
|
7434
7434
|
{
|
|
7435
7435
|
className: "ia-table-icon-14",
|
|
7436
7436
|
onClick: (w) => {
|
|
7437
|
-
w.stopPropagation(), w.preventDefault(), o.current.handleSetDefaultView(
|
|
7437
|
+
w.stopPropagation(), w.preventDefault(), o.current.handleSetDefaultView(g);
|
|
7438
7438
|
}
|
|
7439
7439
|
}
|
|
7440
7440
|
)
|
|
7441
7441
|
] })
|
|
7442
7442
|
]
|
|
7443
7443
|
},
|
|
7444
|
-
|
|
7444
|
+
g.viewName + C
|
|
7445
7445
|
)) }),
|
|
7446
7446
|
/* @__PURE__ */ f("hr", { className: "save-view-menu-view-list-item-divider position-absolute" }),
|
|
7447
7447
|
/* @__PURE__ */ te("div", { className: "save-view-menu-footer d-flex justify-content-flex-end gap-12 position-absolute", children: [
|
|
@@ -7462,8 +7462,8 @@ const yl = ({
|
|
|
7462
7462
|
variant: "primary",
|
|
7463
7463
|
size: "medium",
|
|
7464
7464
|
onClick: () => {
|
|
7465
|
-
var
|
|
7466
|
-
(C = (
|
|
7465
|
+
var g, C;
|
|
7466
|
+
(C = (g = o.current).handleSavedViewClick) == null || C.call(g, h), s(!1);
|
|
7467
7467
|
},
|
|
7468
7468
|
children: "Apply"
|
|
7469
7469
|
}
|
|
@@ -7492,7 +7492,7 @@ const Dl = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
7492
7492
|
savedViewsOptionsProps: O.saveViewCallbacks.savedViewsOptions,
|
|
7493
7493
|
saveViewCallbackRef: O.saveViewCallbackRef
|
|
7494
7494
|
}))
|
|
7495
|
-
), [a, i] = ie(!1), [s, o] = ie(!1), [l, c] = ie(null), [d, u] = ie(!1), [h, A] = ie(null), [
|
|
7495
|
+
), [a, i] = ie(!1), [s, o] = ie(!1), [l, c] = ie(null), [d, u] = ie(!1), [h, A] = ie(null), [p, g] = ie(!1), [C, w] = ie(null), [b, v] = ie(
|
|
7496
7496
|
r || []
|
|
7497
7497
|
), [N, P] = ie(
|
|
7498
7498
|
r || []
|
|
@@ -7505,11 +7505,11 @@ const Dl = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
7505
7505
|
T(O), P(r), v(r);
|
|
7506
7506
|
}, [r]);
|
|
7507
7507
|
const D = () => {
|
|
7508
|
-
|
|
7508
|
+
g(!1), w(null), m(""), I("global"), W(!1);
|
|
7509
7509
|
}, H = (O, k) => {
|
|
7510
7510
|
k.stopPropagation(), k.preventDefault(), u(!0), A(O);
|
|
7511
7511
|
}, K = (O, k) => {
|
|
7512
|
-
k.stopPropagation(), k.preventDefault(), o(!0),
|
|
7512
|
+
k.stopPropagation(), k.preventDefault(), o(!0), g(!0), m(O.viewName), I(O.viewType), W(O.isDefaultView), c(O);
|
|
7513
7513
|
}, q = () => {
|
|
7514
7514
|
var k, S;
|
|
7515
7515
|
if (s) {
|
|
@@ -7519,7 +7519,7 @@ const Dl = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
7519
7519
|
viewType: E,
|
|
7520
7520
|
isDefaultView: x
|
|
7521
7521
|
};
|
|
7522
|
-
(k = t.current) == null || k.handleEditSaveView(L, l), n || (o(!1), c(null),
|
|
7522
|
+
(k = t.current) == null || k.handleEditSaveView(L, l), n || (o(!1), c(null), g(!1), m(""), I("global"), W(!1));
|
|
7523
7523
|
return;
|
|
7524
7524
|
}
|
|
7525
7525
|
let O = {
|
|
@@ -7537,7 +7537,7 @@ const Dl = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
7537
7537
|
]), (S = t.current) == null || S.handleSaveAndApply(
|
|
7538
7538
|
O,
|
|
7539
7539
|
C == null ? void 0 : C.value
|
|
7540
|
-
),
|
|
7540
|
+
), g(!1), m(""), W(!1);
|
|
7541
7541
|
};
|
|
7542
7542
|
return /* @__PURE__ */ te("div", { className: "ia-table-save-view", children: [
|
|
7543
7543
|
/* @__PURE__ */ te("div", { className: "table-setting-save-view-container", children: [
|
|
@@ -7574,7 +7574,7 @@ const Dl = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
7574
7574
|
{
|
|
7575
7575
|
variant: "tertiary",
|
|
7576
7576
|
size: "small",
|
|
7577
|
-
onClick: () =>
|
|
7577
|
+
onClick: () => g(!0),
|
|
7578
7578
|
className: "text-nowrap",
|
|
7579
7579
|
children: "Save View"
|
|
7580
7580
|
}
|
|
@@ -7591,10 +7591,10 @@ const Dl = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
7591
7591
|
setOpenSaveViewMenu: i
|
|
7592
7592
|
}
|
|
7593
7593
|
),
|
|
7594
|
-
|
|
7594
|
+
p && /* @__PURE__ */ f(
|
|
7595
7595
|
bl,
|
|
7596
7596
|
{
|
|
7597
|
-
openSaveViewModal:
|
|
7597
|
+
openSaveViewModal: p,
|
|
7598
7598
|
handleCloseSaveViewModal: D,
|
|
7599
7599
|
isEditView: s,
|
|
7600
7600
|
handleSaveAndApply: q,
|
|
@@ -7692,38 +7692,38 @@ class Nl {
|
|
|
7692
7692
|
}, d = r === "top" ? c.top > s.height : r === "bottom" ? c.bottom > s.height : r === "left" ? c.left > s.width : c.right > s.width, u = Object.entries(c).sort(
|
|
7693
7693
|
(C, w) => w[1] - C[1]
|
|
7694
7694
|
)[0][0], h = d ? r : u;
|
|
7695
|
-
let A = 0,
|
|
7695
|
+
let A = 0, p = 0;
|
|
7696
7696
|
switch (h) {
|
|
7697
7697
|
case "top":
|
|
7698
|
-
A = i.top - s.height - o,
|
|
7698
|
+
A = i.top - s.height - o, p = i.left + i.width / 2 - s.width / 2;
|
|
7699
7699
|
break;
|
|
7700
7700
|
case "bottom":
|
|
7701
|
-
A = i.bottom + o,
|
|
7701
|
+
A = i.bottom + o, p = i.left + i.width / 2 - s.width / 2;
|
|
7702
7702
|
break;
|
|
7703
7703
|
case "left":
|
|
7704
|
-
A = i.top + i.height / 2 - s.height / 2,
|
|
7704
|
+
A = i.top + i.height / 2 - s.height / 2, p = i.left - s.width - o;
|
|
7705
7705
|
break;
|
|
7706
7706
|
case "right":
|
|
7707
|
-
A = i.top + i.height / 2 - s.height / 2,
|
|
7707
|
+
A = i.top + i.height / 2 - s.height / 2, p = i.right + o;
|
|
7708
7708
|
break;
|
|
7709
7709
|
default:
|
|
7710
|
-
A = i.top - s.height - o,
|
|
7710
|
+
A = i.top - s.height - o, p = i.left + i.width / 2 - s.width / 2;
|
|
7711
7711
|
}
|
|
7712
|
-
|
|
7712
|
+
p = Math.max(
|
|
7713
7713
|
l,
|
|
7714
|
-
Math.min(
|
|
7714
|
+
Math.min(p, window.innerWidth - s.width - l)
|
|
7715
7715
|
), A = Math.max(
|
|
7716
7716
|
l,
|
|
7717
7717
|
Math.min(A, window.innerHeight - s.height - l)
|
|
7718
|
-
), this.tooltipElement.style.top = `${A + window.scrollY}px`, this.tooltipElement.style.left = `${
|
|
7719
|
-
const
|
|
7720
|
-
if (
|
|
7718
|
+
), this.tooltipElement.style.top = `${A + window.scrollY}px`, this.tooltipElement.style.left = `${p + window.scrollX}px`, this.tooltipElement.className = `tooltip tooltip--${a || "primary"} tooltip--${h}`;
|
|
7719
|
+
const g = this.tooltipElement.querySelector(".tooltip-arrow");
|
|
7720
|
+
if (g)
|
|
7721
7721
|
if (h === "top" || h === "bottom") {
|
|
7722
|
-
let w = (i.left + i.width / 2 -
|
|
7723
|
-
w = Math.max(10, Math.min(90, w)),
|
|
7722
|
+
let w = (i.left + i.width / 2 - p) / s.width * 100;
|
|
7723
|
+
w = Math.max(10, Math.min(90, w)), g.style.left = `${w}%`, g.style.top = "";
|
|
7724
7724
|
} else {
|
|
7725
7725
|
let w = (i.top + i.height / 2 - A) / s.height * 100;
|
|
7726
|
-
w = Math.max(10, Math.min(90, w)),
|
|
7726
|
+
w = Math.max(10, Math.min(90, w)), g.style.top = `${w}%`, g.style.left = "";
|
|
7727
7727
|
}
|
|
7728
7728
|
}
|
|
7729
7729
|
cleanup() {
|
|
@@ -7746,7 +7746,7 @@ const fr = new Nl(), Yn = ({
|
|
|
7746
7746
|
forceShowTooltip: h = !1,
|
|
7747
7747
|
className: A = "ia-table-width-inherit"
|
|
7748
7748
|
}) => {
|
|
7749
|
-
const
|
|
7749
|
+
const p = ce({
|
|
7750
7750
|
title: e,
|
|
7751
7751
|
varient: t,
|
|
7752
7752
|
orientation: n,
|
|
@@ -7759,7 +7759,7 @@ const fr = new Nl(), Yn = ({
|
|
|
7759
7759
|
pagination: d,
|
|
7760
7760
|
justifyBodyContent: u
|
|
7761
7761
|
});
|
|
7762
|
-
|
|
7762
|
+
p.current = {
|
|
7763
7763
|
title: e,
|
|
7764
7764
|
varient: t,
|
|
7765
7765
|
orientation: n,
|
|
@@ -7774,11 +7774,11 @@ const fr = new Nl(), Yn = ({
|
|
|
7774
7774
|
}, se(() => () => {
|
|
7775
7775
|
fr.hide();
|
|
7776
7776
|
}, []);
|
|
7777
|
-
const
|
|
7777
|
+
const g = () => {
|
|
7778
7778
|
if (!(a != null && a.current))
|
|
7779
7779
|
return;
|
|
7780
7780
|
if (h && e) {
|
|
7781
|
-
fr.show(
|
|
7781
|
+
fr.show(p.current);
|
|
7782
7782
|
return;
|
|
7783
7783
|
}
|
|
7784
7784
|
const w = a.current, b = w.querySelector("input") || // element.querySelector("div[data-tooltip-title]") ||
|
|
@@ -7791,7 +7791,7 @@ const fr = new Nl(), Yn = ({
|
|
|
7791
7791
|
const P = b.scrollWidth, z = b.clientWidth;
|
|
7792
7792
|
N = P > z;
|
|
7793
7793
|
}
|
|
7794
|
-
N && fr.show(
|
|
7794
|
+
N && fr.show(p.current);
|
|
7795
7795
|
}, C = () => {
|
|
7796
7796
|
fr.hide();
|
|
7797
7797
|
};
|
|
@@ -7800,9 +7800,9 @@ const fr = new Nl(), Yn = ({
|
|
|
7800
7800
|
{
|
|
7801
7801
|
ref: a,
|
|
7802
7802
|
className: `tooltip-container ${A}`,
|
|
7803
|
-
onMouseEnter:
|
|
7803
|
+
onMouseEnter: g,
|
|
7804
7804
|
onMouseLeave: C,
|
|
7805
|
-
onFocus:
|
|
7805
|
+
onFocus: g,
|
|
7806
7806
|
onBlur: C,
|
|
7807
7807
|
children: r
|
|
7808
7808
|
}
|
|
@@ -7812,14 +7812,14 @@ const fr = new Nl(), Yn = ({
|
|
|
7812
7812
|
showTableSettingFormatTab: t = !0,
|
|
7813
7813
|
settingPanelRef: n
|
|
7814
7814
|
}) => {
|
|
7815
|
-
var
|
|
7815
|
+
var p;
|
|
7816
7816
|
const { isSaveViewEnabled: r, tableInstance: a } = Fe(
|
|
7817
|
-
ze((
|
|
7818
|
-
isSaveViewEnabled:
|
|
7819
|
-
tableInstance:
|
|
7817
|
+
ze((g) => ({
|
|
7818
|
+
isSaveViewEnabled: g.isSaveViewEnabled,
|
|
7819
|
+
tableInstance: g.tableInstance
|
|
7820
7820
|
}))
|
|
7821
|
-
), [i, s] = ie("columns"), [o, l] = ie(!1), c = ce(null), d = ce(null), u = ce(null), h = ((
|
|
7822
|
-
s(
|
|
7821
|
+
), [i, s] = ie("columns"), [o, l] = ie(!1), c = ce(null), d = ce(null), u = ce(null), h = ((p = a == null ? void 0 : a.current) == null ? void 0 : p.clientHeight) || 0, A = (g) => {
|
|
7822
|
+
s(g);
|
|
7823
7823
|
};
|
|
7824
7824
|
return n.current = {
|
|
7825
7825
|
openSettingMenu: l
|
|
@@ -8054,41 +8054,41 @@ const Ol = ({
|
|
|
8054
8054
|
rightPinnedScrollContainerRef: n
|
|
8055
8055
|
} = {}) => {
|
|
8056
8056
|
const r = ce(null), a = ce(null), i = ce(null), s = de(
|
|
8057
|
-
(
|
|
8057
|
+
(g, C, w = null) => {
|
|
8058
8058
|
if (dn && un !== C) return;
|
|
8059
8059
|
dn = !0, un = C;
|
|
8060
8060
|
const b = r == null ? void 0 : r.current, v = w == null ? void 0 : w.current, N = a == null ? void 0 : a.current, P = i == null ? void 0 : i.current;
|
|
8061
|
-
b && b !== C && b.scrollLeft !==
|
|
8061
|
+
b && b !== C && b.scrollLeft !== g && (b.scrollLeft = g), v && v !== C && v.scrollLeft !== g && (v.scrollLeft = g), N && N !== C && N.scrollLeft !== g && (N.scrollLeft = g), P && P !== C && P.scrollLeft !== g && (P.scrollLeft = g), requestAnimationFrame(() => {
|
|
8062
8062
|
dn = !1, un = null;
|
|
8063
8063
|
});
|
|
8064
8064
|
},
|
|
8065
8065
|
[]
|
|
8066
8066
|
), o = de(
|
|
8067
|
-
(
|
|
8068
|
-
dn && un !== C.target || s(C.target.scrollLeft, C.target,
|
|
8067
|
+
(g) => (C) => {
|
|
8068
|
+
dn && un !== C.target || s(C.target.scrollLeft, C.target, g);
|
|
8069
8069
|
},
|
|
8070
8070
|
[s]
|
|
8071
8071
|
), l = de(
|
|
8072
|
-
(
|
|
8073
|
-
dn && un !== C.target || s(C.target.scrollLeft, C.target,
|
|
8072
|
+
(g) => (C) => {
|
|
8073
|
+
dn && un !== C.target || s(C.target.scrollLeft, C.target, g);
|
|
8074
8074
|
},
|
|
8075
8075
|
[s]
|
|
8076
8076
|
), c = de(
|
|
8077
|
-
(
|
|
8078
|
-
dn && un !== C.target || s(C.target.scrollLeft, C.target,
|
|
8077
|
+
(g) => (C) => {
|
|
8078
|
+
dn && un !== C.target || s(C.target.scrollLeft, C.target, g);
|
|
8079
8079
|
},
|
|
8080
8080
|
[s]
|
|
8081
8081
|
), d = de(
|
|
8082
|
-
(
|
|
8083
|
-
C && C(w), !(dn && un !== w.target) && s(w.target.scrollLeft, w.target,
|
|
8082
|
+
(g, C) => (w) => {
|
|
8083
|
+
C && C(w), !(dn && un !== w.target) && s(w.target.scrollLeft, w.target, g);
|
|
8084
8084
|
},
|
|
8085
8085
|
[s]
|
|
8086
8086
|
), u = de(
|
|
8087
|
-
(
|
|
8087
|
+
(g, C) => {
|
|
8088
8088
|
if (vn && In !== C) return;
|
|
8089
8089
|
vn = !0, In = C;
|
|
8090
8090
|
const w = e == null ? void 0 : e.current, b = t == null ? void 0 : t.current, v = n == null ? void 0 : n.current;
|
|
8091
|
-
w && w !== C && w.scrollTop !==
|
|
8091
|
+
w && w !== C && w.scrollTop !== g && (w.scrollTop = g), b && b !== C && b.scrollTop !== g && (b.scrollTop = g), v && v !== C && v.scrollTop !== g && (v.scrollTop = g), requestAnimationFrame(() => {
|
|
8092
8092
|
vn = !1, In = null;
|
|
8093
8093
|
});
|
|
8094
8094
|
},
|
|
@@ -8098,18 +8098,18 @@ const Ol = ({
|
|
|
8098
8098
|
n
|
|
8099
8099
|
]
|
|
8100
8100
|
), h = de(
|
|
8101
|
-
(
|
|
8102
|
-
|
|
8101
|
+
(g) => (C) => {
|
|
8102
|
+
g && g(C), !(vn && In !== C.target) && u(C.target.scrollTop, C.target);
|
|
8103
8103
|
},
|
|
8104
8104
|
[u]
|
|
8105
8105
|
), A = de(
|
|
8106
|
-
(
|
|
8107
|
-
vn && In !==
|
|
8106
|
+
(g) => {
|
|
8107
|
+
vn && In !== g.target || u(g.target.scrollTop, g.target);
|
|
8108
8108
|
},
|
|
8109
8109
|
[u]
|
|
8110
|
-
),
|
|
8111
|
-
(
|
|
8112
|
-
vn && In !==
|
|
8110
|
+
), p = de(
|
|
8111
|
+
(g) => {
|
|
8112
|
+
vn && In !== g.target || u(g.target.scrollTop, g.target);
|
|
8113
8113
|
},
|
|
8114
8114
|
[u]
|
|
8115
8115
|
);
|
|
@@ -8126,7 +8126,7 @@ const Ol = ({
|
|
|
8126
8126
|
createNormalScrollHandler: h,
|
|
8127
8127
|
// Direct handlers for vertical scroll sync
|
|
8128
8128
|
handleFrozenScroll: A,
|
|
8129
|
-
handleRightPinnedScroll:
|
|
8129
|
+
handleRightPinnedScroll: p,
|
|
8130
8130
|
// Utility function for custom implementations
|
|
8131
8131
|
syncHorizontalScroll: s
|
|
8132
8132
|
};
|
|
@@ -8176,7 +8176,7 @@ const Ol = ({
|
|
|
8176
8176
|
const l = Re(() => {
|
|
8177
8177
|
var T;
|
|
8178
8178
|
return ((T = e[e.length - 1]) == null ? void 0 : T.leftTotalWidth) > a;
|
|
8179
|
-
}, [e, a]), c = ce(0), [d, u] = ie(0), h = ce(null), A = ce(0),
|
|
8179
|
+
}, [e, a]), c = ce(0), [d, u] = ie(0), h = ce(null), A = ce(0), p = ce(0), g = ce(0), C = de(
|
|
8180
8180
|
(T, M, m, E) => {
|
|
8181
8181
|
if (!T.length) return { startCol: 0, endCol: 0 };
|
|
8182
8182
|
let I = gr(T, M), x = gr(T, m);
|
|
@@ -8191,12 +8191,12 @@ const Ol = ({
|
|
|
8191
8191
|
c.current = T.target.scrollLeft;
|
|
8192
8192
|
return;
|
|
8193
8193
|
}
|
|
8194
|
-
const M = performance.now(), m = T.target.scrollLeft, E = M -
|
|
8194
|
+
const M = performance.now(), m = T.target.scrollLeft, E = M - p.current;
|
|
8195
8195
|
if (E > 0) {
|
|
8196
|
-
const I = Math.abs(m -
|
|
8196
|
+
const I = Math.abs(m - g.current);
|
|
8197
8197
|
A.current = I / E;
|
|
8198
8198
|
}
|
|
8199
|
-
|
|
8199
|
+
p.current = M, g.current = m, c.current = m, h.current && cancelAnimationFrame(h.current), u(m);
|
|
8200
8200
|
},
|
|
8201
8201
|
[l]
|
|
8202
8202
|
);
|
|
@@ -8283,12 +8283,12 @@ const Ol = ({
|
|
|
8283
8283
|
const o = e.getRowGroupState();
|
|
8284
8284
|
if (!o)
|
|
8285
8285
|
throw console.error("Row group state is not available"), new Error("Row group state not available");
|
|
8286
|
-
const { expandedGroups: l, loadedData: c, pagination: d, cache: u } = o, h = u.metadata[r], A = Date.now(),
|
|
8287
|
-
if (l[r] && c[r] &&
|
|
8286
|
+
const { expandedGroups: l, loadedData: c, pagination: d, cache: u } = o, h = u.metadata[r], A = Date.now(), p = h && A - h.lastUpdated < u.expirationTime;
|
|
8287
|
+
if (l[r] && c[r] && p)
|
|
8288
8288
|
return c[r];
|
|
8289
|
-
const
|
|
8290
|
-
if (n.has(
|
|
8291
|
-
return n.get(
|
|
8289
|
+
const g = `${r}-${s.page || 1}-${s.pageSize || 10}`;
|
|
8290
|
+
if (n.has(g))
|
|
8291
|
+
return n.get(g);
|
|
8292
8292
|
e.setRowGroupLoading(r, !0);
|
|
8293
8293
|
try {
|
|
8294
8294
|
const w = d[r] || {
|
|
@@ -8373,7 +8373,7 @@ const Ol = ({
|
|
|
8373
8373
|
page: s.page,
|
|
8374
8374
|
hasMore: !1,
|
|
8375
8375
|
lastUpdated: Date.now()
|
|
8376
|
-
}) : e.setRowGroupData(r, N, P), n.delete(
|
|
8376
|
+
}) : e.setRowGroupData(r, N, P), n.delete(g), N;
|
|
8377
8377
|
} catch (w) {
|
|
8378
8378
|
console.error("Error loading row group data:", w);
|
|
8379
8379
|
const b = e.getRowGroupState(), v = ((C = b == null ? void 0 : b.pagination) == null ? void 0 : C[r]) || {
|
|
@@ -8388,7 +8388,7 @@ const Ol = ({
|
|
|
8388
8388
|
error: !0,
|
|
8389
8389
|
// Mark that there was an error
|
|
8390
8390
|
lastUpdated: Date.now()
|
|
8391
|
-
}), s.page === 1 && (!c[r] || c[r].length === 0) && e.setRowGroupData(r, [], !1), n.delete(
|
|
8391
|
+
}), s.page === 1 && (!c[r] || c[r].length === 0) && e.setRowGroupData(r, [], !1), n.delete(g), [];
|
|
8392
8392
|
} finally {
|
|
8393
8393
|
e.setRowGroupLoading(r, !1);
|
|
8394
8394
|
}
|
|
@@ -8530,7 +8530,7 @@ const Ol = ({
|
|
|
8530
8530
|
const A = e.target.closest(".ia-table-body-cell");
|
|
8531
8531
|
if (!A) return;
|
|
8532
8532
|
A.classList.add("ia-table-body-cell-selected"), window.dispatchEvent(new CustomEvent("ia-table-clear-selection"));
|
|
8533
|
-
const
|
|
8533
|
+
const p = A.getAttribute("data-row"), g = {
|
|
8534
8534
|
rowIndex: n,
|
|
8535
8535
|
colIndex: r,
|
|
8536
8536
|
rowId: a,
|
|
@@ -8543,10 +8543,10 @@ const Ol = ({
|
|
|
8543
8543
|
column: l,
|
|
8544
8544
|
rowData: c,
|
|
8545
8545
|
cellValue: d,
|
|
8546
|
-
rowAttr:
|
|
8546
|
+
rowAttr: p
|
|
8547
8547
|
// Add the row attribute for keyboard navigation
|
|
8548
8548
|
};
|
|
8549
|
-
window.iaTableSelectedCell =
|
|
8549
|
+
window.iaTableSelectedCell = g, window.iaTableState.selectedCells.set(h, g), window.iaTableState && (window.iaTableState.activeInstance = u), document.activeElement && document.activeElement !== document.body && document.activeElement.blur(), as(A);
|
|
8550
8550
|
}, ss = (e, t) => !e || !t ? void 0 : (Array.isArray(t) ? t : t.split(".")).reduce((r, a) => r && r[a] !== void 0 ? r[a] : void 0, e), Vl = (e) => e == null ? "" : typeof e == "boolean" ? e ? "Yes" : "No" : e instanceof Date ? e.toLocaleString() : typeof e == "object" && e !== null ? Array.isArray(e) ? e.join(", ") : JSON.stringify(e) : String(e), Yl = (e, t) => {
|
|
8551
8551
|
const n = e.groupingLevel, r = t.originalFields && n && t.originalFields[n] ? t.originalFields[n] : ne(t);
|
|
8552
8552
|
return e[r];
|
|
@@ -8754,7 +8754,7 @@ const Ol = ({
|
|
|
8754
8754
|
tableApi: U.api,
|
|
8755
8755
|
pageSize: U.pagination.pageSize
|
|
8756
8756
|
}))
|
|
8757
|
-
), { loadedData: s, loading: o, pagination: l, expandedGroups: c } = r, d = ce(!1), [u, h] = ie(!1), [A,
|
|
8757
|
+
), { loadedData: s, loading: o, pagination: l, expandedGroups: c } = r, d = ce(!1), [u, h] = ie(!1), [A, p] = ie(null), g = ce(null), C = ce({ token: null, isActive: !1 }), w = ce(null), b = (F = (q = (K = a == null ? void 0 : a.getInfiniteCache) == null ? void 0 : K.call(a)) == null ? void 0 : q.params) == null ? void 0 : F.datasource;
|
|
8758
8758
|
!w.current && a && b && (w.current = Fl(
|
|
8759
8759
|
a,
|
|
8760
8760
|
b
|
|
@@ -8796,7 +8796,7 @@ const Ol = ({
|
|
|
8796
8796
|
}
|
|
8797
8797
|
);
|
|
8798
8798
|
} catch (O) {
|
|
8799
|
-
console.error("Error loading group data:", O), M.current &&
|
|
8799
|
+
console.error("Error loading group data:", O), M.current && p("Failed to load data");
|
|
8800
8800
|
} finally {
|
|
8801
8801
|
M.current && (d.current = !1, h(!1), W.current = !1, C.current.token === U && (C.current.isActive = !1));
|
|
8802
8802
|
}
|
|
@@ -8819,7 +8819,7 @@ const Ol = ({
|
|
|
8819
8819
|
}
|
|
8820
8820
|
);
|
|
8821
8821
|
} catch (U) {
|
|
8822
|
-
console.error("Error loading more data:", U), M.current &&
|
|
8822
|
+
console.error("Error loading more data:", U), M.current && p("Failed to load more data");
|
|
8823
8823
|
} finally {
|
|
8824
8824
|
M.current && (d.current = !1, h(!1)), W.current = !1;
|
|
8825
8825
|
}
|
|
@@ -8830,14 +8830,14 @@ const Ol = ({
|
|
|
8830
8830
|
P.page,
|
|
8831
8831
|
P.pageSize,
|
|
8832
8832
|
h,
|
|
8833
|
-
|
|
8833
|
+
p
|
|
8834
8834
|
]);
|
|
8835
8835
|
se(() => {
|
|
8836
8836
|
if (v.length > 0 || N || A || m.current || !t || !w.current || W.current)
|
|
8837
8837
|
return;
|
|
8838
8838
|
m.current = !0, W.current = !0;
|
|
8839
8839
|
const U = `load-effect-${Date.now()}`;
|
|
8840
|
-
C.current.token = U, C.current.isActive = !0, d.current = !0, h(!0),
|
|
8840
|
+
C.current.token = U, C.current.isActive = !0, d.current = !0, h(!0), p(null);
|
|
8841
8841
|
const O = setTimeout(() => {
|
|
8842
8842
|
I(U);
|
|
8843
8843
|
}, 50);
|
|
@@ -8866,8 +8866,8 @@ const Ol = ({
|
|
|
8866
8866
|
S.top - L < 800 && z && !W.current && x();
|
|
8867
8867
|
};
|
|
8868
8868
|
let k = null;
|
|
8869
|
-
return z && !W.current && (n != null && n.current) && (O(), k = setInterval(O, 500)), U.observe(n.current),
|
|
8870
|
-
|
|
8869
|
+
return z && !W.current && (n != null && n.current) && (O(), k = setInterval(O, 500)), U.observe(n.current), g.current = U, () => {
|
|
8870
|
+
g.current && g.current.disconnect(), D.current && clearTimeout(D.current), k && clearInterval(k);
|
|
8871
8871
|
};
|
|
8872
8872
|
}, [
|
|
8873
8873
|
e,
|
|
@@ -9007,7 +9007,7 @@ const Ol = ({
|
|
|
9007
9007
|
isGroupRowExpanded: c
|
|
9008
9008
|
}) => {
|
|
9009
9009
|
var v;
|
|
9010
|
-
const { dispatch: d, ACTION_TYPES: u, toggleGroupExpansion: h } = pt(), { masterDetail: A, tableApi:
|
|
9010
|
+
const { dispatch: d, ACTION_TYPES: u, toggleGroupExpansion: h } = pt(), { masterDetail: A, tableApi: p, serverSide: g } = Fe(
|
|
9011
9011
|
ze((N) => ({
|
|
9012
9012
|
masterDetail: N.masterDetail,
|
|
9013
9013
|
tableApi: N.api,
|
|
@@ -9016,7 +9016,7 @@ const Ol = ({
|
|
|
9016
9016
|
), C = ((v = A == null ? void 0 : A.expandedRows) == null ? void 0 : v.includes(e)) || !1, w = () => {
|
|
9017
9017
|
var z;
|
|
9018
9018
|
const N = n.groupingLevel && ((z = r == null ? void 0 : r.originalFields) != null && z[n.groupingLevel]) ? r.originalFields[n.groupingLevel] : ne(r), P = n[N];
|
|
9019
|
-
|
|
9019
|
+
p.toggleRowGroup(a, i, { fieldName: N, value: P });
|
|
9020
9020
|
};
|
|
9021
9021
|
return /* @__PURE__ */ f(
|
|
9022
9022
|
"button",
|
|
@@ -9039,7 +9039,7 @@ const Ol = ({
|
|
|
9039
9039
|
currentRowStyles: x
|
|
9040
9040
|
}
|
|
9041
9041
|
});
|
|
9042
|
-
} else o && a &&
|
|
9042
|
+
} else o && a && g ? w() : h && h(l, i);
|
|
9043
9043
|
},
|
|
9044
9044
|
type: "button",
|
|
9045
9045
|
"aria-label": t ? "Collapse group" : "Expand group",
|
|
@@ -9211,14 +9211,14 @@ const Ol = ({
|
|
|
9211
9211
|
if (!e) return { isValid: !0, hasError: !1 };
|
|
9212
9212
|
const d = ye.parseDate(e);
|
|
9213
9213
|
if (!d) return { isValid: !1, hasError: !0 };
|
|
9214
|
-
const u = d.year(), h = u < n || u > r, A = ue().startOf("day"),
|
|
9214
|
+
const u = d.year(), h = u < n || u > r, A = ue().startOf("day"), p = d.isBefore(A), g = d.isAfter(A), C = ye.isToday(d), b = !ye.isInRange(d, l, c);
|
|
9215
9215
|
let v = !1, N = !1;
|
|
9216
9216
|
b && (l && d.isBefore(ue(l).startOf("day")) && (v = !0), c && d.isAfter(ue(c).startOf("day")) && (N = !0));
|
|
9217
|
-
const P = a &&
|
|
9217
|
+
const P = a && p && !C || i && g && !C || s && (p || C) || o && (g || C) || h || b;
|
|
9218
9218
|
return {
|
|
9219
9219
|
isValid: !P,
|
|
9220
9220
|
hasError: P,
|
|
9221
|
-
reason: v ? "before_min_date" : N ? "after_max_date" : s && (
|
|
9221
|
+
reason: v ? "before_min_date" : N ? "after_max_date" : s && (p || C) ? "past_disabled" : o && (g || C) ? "future_disabled" : a && p && !C ? "past_only_disabled" : i && g && !C ? "future_only_disabled" : h ? "outside_year_range" : null
|
|
9222
9222
|
};
|
|
9223
9223
|
},
|
|
9224
9224
|
// Check if a specific day is selected
|
|
@@ -9239,8 +9239,8 @@ const Ol = ({
|
|
|
9239
9239
|
disableFuture: l,
|
|
9240
9240
|
minDate: c,
|
|
9241
9241
|
maxDate: d
|
|
9242
|
-
} = n, u = ue(t).date(e).startOf("day"), h = ue().startOf("day"), A = u.isBefore(h),
|
|
9243
|
-
return !!(i && A && !
|
|
9242
|
+
} = n, u = ue(t).date(e).startOf("day"), h = ue().startOf("day"), A = u.isBefore(h), p = u.isAfter(h), g = ye.isToday(u), C = u.year(), w = C < r || C > a, v = !ye.isInRange(u, c, d);
|
|
9243
|
+
return !!(i && A && !g || s && p && !g || o && (A || g) || l && (p || g) || w || v);
|
|
9244
9244
|
}
|
|
9245
9245
|
}, cs = (e, t) => {
|
|
9246
9246
|
let n = ue(t), r = !1;
|
|
@@ -9333,8 +9333,8 @@ const Ol = ({
|
|
|
9333
9333
|
((u = n == null ? void 0 : n.colDef) == null ? void 0 : u.extra) || {},
|
|
9334
9334
|
"roundOffTo"
|
|
9335
9335
|
) && !((h = n == null ? void 0 : n.data) != null && h.roundOffTo) && !t) {
|
|
9336
|
-
let
|
|
9337
|
-
r = Math.round(e *
|
|
9336
|
+
let p = +("1" + "0".repeat(A));
|
|
9337
|
+
r = Math.round(e * p) / p;
|
|
9338
9338
|
}
|
|
9339
9339
|
} else t === 0 ? r = Math.round(e) : s ? r = parseInt(e) : a === "dollar" && t > 0 ? r = parseFloat(Math.round(e * o) / o) : t > 0 && (r = Math.round(e * o) / o);
|
|
9340
9340
|
return i ? r : r.toFixed(t);
|
|
@@ -9379,7 +9379,7 @@ const Ol = ({
|
|
|
9379
9379
|
disabled: r = !1,
|
|
9380
9380
|
inputType: a = t.colDef.type
|
|
9381
9381
|
}
|
|
9382
|
-
} = e, { value: i, colDef: s, node: o, api: l } = t, [c, d] = ie(i || ""), [u, h] = ie(!1), [A,
|
|
9382
|
+
} = e, { value: i, colDef: s, node: o, api: l } = t, [c, d] = ie(i || ""), [u, h] = ie(!1), [A, p] = ie(!1), [g, C] = ie(!1), w = (x = l.gridOptionsWrapper.gridOptions) == null ? void 0 : x.lockCellCustomConditionFn, b = (W = l.gridOptionsWrapper.gridOptions) == null ? void 0 : W.lockCellIfNoValue, v = (D = l.gridOptionsWrapper.gridOptions) == null ? void 0 : D.defaultTextFieldViewOnly, N = (H = l.gridOptionsWrapper.gridOptions) == null ? void 0 : H.lockCellApi, P = t.isCellLockable;
|
|
9383
9383
|
let z = 2;
|
|
9384
9384
|
s.formatter === "roundOff" || a === "int" ? z = 0 : s.formatter === "roundOfftoOneDecimals" ? z = 1 : s.formatter === "roundOfftoTwoDecimals" ? z = 2 : s.formatter === "roundOfftoThreeDecimals" && (z = 3);
|
|
9385
9385
|
const T = {
|
|
@@ -9399,7 +9399,7 @@ const Ol = ({
|
|
|
9399
9399
|
w && C(w(T));
|
|
9400
9400
|
}, [T]), se(() => {
|
|
9401
9401
|
var U, O, k;
|
|
9402
|
-
(k = (U = T == null ? void 0 : T.data) == null ? void 0 : U.cellLocked) != null && k[(O = T == null ? void 0 : T.column) == null ? void 0 : O.colId] ?
|
|
9402
|
+
(k = (U = T == null ? void 0 : T.data) == null ? void 0 : U.cellLocked) != null && k[(O = T == null ? void 0 : T.column) == null ? void 0 : O.colId] ? p(!0) : p(!1);
|
|
9403
9403
|
}, [(F = (K = T == null ? void 0 : T.data) == null ? void 0 : K.cellLocked) == null ? void 0 : F[(q = T == null ? void 0 : T.column) == null ? void 0 : q.colId]]);
|
|
9404
9404
|
const m = () => {
|
|
9405
9405
|
h(!1), String(i) !== String(c) && o.setDataValue(ne(s), c);
|
|
@@ -9435,13 +9435,13 @@ const Ol = ({
|
|
|
9435
9435
|
onChange: (U) => d(U.target.value),
|
|
9436
9436
|
onBlur: m,
|
|
9437
9437
|
onFocus: () => h(!0),
|
|
9438
|
-
disabled: r ||
|
|
9438
|
+
disabled: r || g || b && c === void 0,
|
|
9439
9439
|
type: wt.includes(a) ? "number" : n,
|
|
9440
9440
|
inputType: a,
|
|
9441
9441
|
width: "inherit",
|
|
9442
9442
|
isCellRenderer: !0,
|
|
9443
|
-
iconButtonClassName:
|
|
9444
|
-
iconButton: A && P && (
|
|
9443
|
+
iconButtonClassName: g ? "ia-table-body-cell-lock" : "",
|
|
9444
|
+
iconButton: A && P && (g ? /* @__PURE__ */ f(E, {}) : /* @__PURE__ */ f(I, {}))
|
|
9445
9445
|
}
|
|
9446
9446
|
);
|
|
9447
9447
|
}, lc = (e) => {
|
|
@@ -9594,8 +9594,8 @@ function uc({
|
|
|
9594
9594
|
maxDate: u,
|
|
9595
9595
|
readOnly: h = !1,
|
|
9596
9596
|
customIcon: A,
|
|
9597
|
-
hasDateError:
|
|
9598
|
-
isCellRenderer:
|
|
9597
|
+
hasDateError: p,
|
|
9598
|
+
isCellRenderer: g
|
|
9599
9599
|
}) {
|
|
9600
9600
|
const [C, w] = ie(!1), [b, v] = ie(""), N = ce(null), [P, z] = ie(null), T = l === "YYYY-MM-DD" ? [0, 1, 2, 3, 5, 6, 8, 9] : [0, 1, 3, 4, 6, 7, 8, 9];
|
|
9601
9601
|
se(() => {
|
|
@@ -9736,7 +9736,7 @@ function uc({
|
|
|
9736
9736
|
ref: N,
|
|
9737
9737
|
readOnly: h,
|
|
9738
9738
|
disabled: n,
|
|
9739
|
-
className: `ia-table-datepicker-input cursor-pointer ${
|
|
9739
|
+
className: `ia-table-datepicker-input cursor-pointer ${g ? "ia-table-datepickerrenderer-input" : ""} ${r || p ? "ia-table-datepicker-input-error" : ""}`
|
|
9740
9740
|
}
|
|
9741
9741
|
),
|
|
9742
9742
|
/* @__PURE__ */ f(
|
|
@@ -9850,7 +9850,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
9850
9850
|
}))
|
|
9851
9851
|
), [l, c] = ie("search"), [d, u] = ie({}), [h, A] = ie([
|
|
9852
9852
|
{ column: "", pattern: "", type: "", search_type: "" }
|
|
9853
|
-
]), [
|
|
9853
|
+
]), [p, g] = ie([
|
|
9854
9854
|
{ column: "", search_type: "", pattern: "", type: "", operators: [] }
|
|
9855
9855
|
]), [C, w] = ie(!1), { columnsOptions: b, advancedSearchOptions: v } = Re(() => {
|
|
9856
9856
|
const F = [], U = [];
|
|
@@ -9885,7 +9885,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
9885
9885
|
});
|
|
9886
9886
|
}), F.length) {
|
|
9887
9887
|
const U = F.some((O) => O.search_type !== "contains" || O.column !== ne(e));
|
|
9888
|
-
|
|
9888
|
+
g(
|
|
9889
9889
|
F.length > 0 ? F : [
|
|
9890
9890
|
{
|
|
9891
9891
|
column: "",
|
|
@@ -9927,7 +9927,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
9927
9927
|
const S = [...h];
|
|
9928
9928
|
S[F] = { ...S[F], [U]: O, type: k }, A(S);
|
|
9929
9929
|
}, T = (F, U, O, k = "", S = []) => {
|
|
9930
|
-
const L = wt.includes(k) || !1, y = [...
|
|
9930
|
+
const L = wt.includes(k) || !1, y = [...p], R = y[F].search_type;
|
|
9931
9931
|
if (U === "search_type" && (delete y[F].pattern, delete y[F].min_val, delete y[F].max_val), U !== "pattern" ? y[F] = {
|
|
9932
9932
|
...y[F],
|
|
9933
9933
|
[U]: O
|
|
@@ -9946,12 +9946,12 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
9946
9946
|
}));
|
|
9947
9947
|
y[F].operators = j;
|
|
9948
9948
|
}
|
|
9949
|
-
|
|
9949
|
+
g(y);
|
|
9950
9950
|
}, M = () => {
|
|
9951
9951
|
A([...h, { column: "", pattern: "", type: "" }]);
|
|
9952
9952
|
}, m = () => {
|
|
9953
|
-
|
|
9954
|
-
...
|
|
9953
|
+
g([
|
|
9954
|
+
...p,
|
|
9955
9955
|
{ column: "", search_type: "", pattern: "", type: "", operators: [] }
|
|
9956
9956
|
]);
|
|
9957
9957
|
}, E = (F) => {
|
|
@@ -9960,12 +9960,12 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
9960
9960
|
A(U);
|
|
9961
9961
|
}
|
|
9962
9962
|
}, I = (F) => {
|
|
9963
|
-
if (
|
|
9964
|
-
const U =
|
|
9965
|
-
|
|
9963
|
+
if (p.length > 1) {
|
|
9964
|
+
const U = p.filter((O, k) => k !== F);
|
|
9965
|
+
g(U);
|
|
9966
9966
|
}
|
|
9967
9967
|
}, x = () => {
|
|
9968
|
-
A([{ column: "", pattern: "", type: "" }]),
|
|
9968
|
+
A([{ column: "", pattern: "", type: "" }]), g([
|
|
9969
9969
|
{ column: "", search_type: "", pattern: "", type: "", operators: [] }
|
|
9970
9970
|
]), r({
|
|
9971
9971
|
type: a.REMOVE_COLUMN_FILTER,
|
|
@@ -9985,7 +9985,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
9985
9985
|
});
|
|
9986
9986
|
}
|
|
9987
9987
|
} else {
|
|
9988
|
-
const F =
|
|
9988
|
+
const F = p;
|
|
9989
9989
|
if (F.length > 0) {
|
|
9990
9990
|
const U = {};
|
|
9991
9991
|
F.forEach((O) => {
|
|
@@ -10086,8 +10086,8 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10086
10086
|
] })
|
|
10087
10087
|
] }), H = () => /* @__PURE__ */ te(At, { children: [
|
|
10088
10088
|
/* @__PURE__ */ f("div", { className: "ia-table-search-message", children: "Match all of the following rules:" }),
|
|
10089
|
-
/* @__PURE__ */ f("div", { className: "ia-table-search-rules-container d-flex flex-column gap-12", children:
|
|
10090
|
-
const O = N(
|
|
10089
|
+
/* @__PURE__ */ f("div", { className: "ia-table-search-rules-container d-flex flex-column gap-12", children: p.map((F, U) => {
|
|
10090
|
+
const O = N(p, U), k = v.filter(
|
|
10091
10091
|
(R) => !O.includes(R.value)
|
|
10092
10092
|
), S = F.column ? k.find(
|
|
10093
10093
|
(R) => R.value === F.column
|
|
@@ -10199,7 +10199,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10199
10199
|
variant: "text",
|
|
10200
10200
|
className: "ia-table-filter-trash-rule",
|
|
10201
10201
|
onClick: () => I(U),
|
|
10202
|
-
disabled:
|
|
10202
|
+
disabled: p.length === 1,
|
|
10203
10203
|
title: "Remove rule",
|
|
10204
10204
|
size: "medium",
|
|
10205
10205
|
children: /* @__PURE__ */ f(ri, { className: "ia-table-trash-icon" })
|
|
@@ -10225,7 +10225,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10225
10225
|
] }), K = Ac({
|
|
10226
10226
|
activeTab: l,
|
|
10227
10227
|
searchFields: h,
|
|
10228
|
-
advancedRules:
|
|
10228
|
+
advancedRules: p
|
|
10229
10229
|
}), q = /* @__PURE__ */ te("div", { className: "ia-table-column-search-overlay", onClick: t, children: [
|
|
10230
10230
|
/* @__PURE__ */ te(
|
|
10231
10231
|
"div",
|
|
@@ -10293,7 +10293,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10293
10293
|
{
|
|
10294
10294
|
handleClose: () => w(!1),
|
|
10295
10295
|
onPrimaryButtonClick: (F) => {
|
|
10296
|
-
F.stopPropagation(), c(C), w(!1),
|
|
10296
|
+
F.stopPropagation(), c(C), w(!1), g([
|
|
10297
10297
|
{
|
|
10298
10298
|
column: "",
|
|
10299
10299
|
search_type: "",
|
|
@@ -10333,8 +10333,8 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10333
10333
|
disablePast: u = !1,
|
|
10334
10334
|
disableFuture: h = !1,
|
|
10335
10335
|
startYear: A = 2e3,
|
|
10336
|
-
endYear:
|
|
10337
|
-
isCellRenderer:
|
|
10336
|
+
endYear: p = 2100,
|
|
10337
|
+
isCellRenderer: g = !1,
|
|
10338
10338
|
tableApi: C = {},
|
|
10339
10339
|
minDate: w = null,
|
|
10340
10340
|
maxDate: b = null,
|
|
@@ -10360,7 +10360,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10360
10360
|
const X = Re(
|
|
10361
10361
|
() => ({
|
|
10362
10362
|
startYear: A,
|
|
10363
|
-
endYear:
|
|
10363
|
+
endYear: p,
|
|
10364
10364
|
disableOnlyPast: c,
|
|
10365
10365
|
disableOnlyFuture: d,
|
|
10366
10366
|
disablePast: u,
|
|
@@ -10370,7 +10370,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10370
10370
|
}),
|
|
10371
10371
|
[
|
|
10372
10372
|
A,
|
|
10373
|
-
|
|
10373
|
+
p,
|
|
10374
10374
|
c,
|
|
10375
10375
|
d,
|
|
10376
10376
|
u,
|
|
@@ -10400,7 +10400,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10400
10400
|
u,
|
|
10401
10401
|
h,
|
|
10402
10402
|
A,
|
|
10403
|
-
|
|
10403
|
+
p,
|
|
10404
10404
|
V
|
|
10405
10405
|
]);
|
|
10406
10406
|
const [Z, Y] = ie({ top: 0, left: 0 }), $ = de(() => {
|
|
@@ -10414,7 +10414,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10414
10414
|
left: le.left
|
|
10415
10415
|
});
|
|
10416
10416
|
}, []);
|
|
10417
|
-
fa(E,
|
|
10417
|
+
fa(E, g, C), se(() => {
|
|
10418
10418
|
if (E && s) {
|
|
10419
10419
|
$();
|
|
10420
10420
|
const le = setTimeout(() => {
|
|
@@ -10426,12 +10426,12 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10426
10426
|
}
|
|
10427
10427
|
}, [E, s, $]), se(() => {
|
|
10428
10428
|
const le = (Ee) => {
|
|
10429
|
-
_.current && !_.current.contains(Ee.target) && j.current && !j.current.contains(Ee.target) && (I(!1), U(!1), k(!1),
|
|
10429
|
+
_.current && !_.current.contains(Ee.target) && j.current && !j.current.contains(Ee.target) && (I(!1), U(!1), k(!1), g && (C != null && C.tableId) ? (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[C.tableId] = !1) : g && (window.iaTablePortalOpen[C.tableId] = !1)), G.current && !G.current.contains(Ee.target) && !Ee.target.classList.contains("ia-table-datepicker-month-select") && U(!1), B.current && !B.current.contains(Ee.target) && !Ee.target.classList.contains("ia-table-datepicker-year-select") && k(!1);
|
|
10430
10430
|
};
|
|
10431
10431
|
return document.addEventListener("mousedown", le), () => {
|
|
10432
10432
|
document.removeEventListener("mousedown", le);
|
|
10433
10433
|
};
|
|
10434
|
-
}, [
|
|
10434
|
+
}, [g]);
|
|
10435
10435
|
const ae = Re(() => ye.generateCalendarDays(D), [D]), fe = de(
|
|
10436
10436
|
(le) => {
|
|
10437
10437
|
if (!le) return;
|
|
@@ -10448,18 +10448,18 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10448
10448
|
}, [E, M]);
|
|
10449
10449
|
const he = de(
|
|
10450
10450
|
(le) => {
|
|
10451
|
-
le.stopPropagation(), q(null), I(!1), m(e),
|
|
10451
|
+
le.stopPropagation(), q(null), I(!1), m(e), g && (C != null && C.tableId) ? (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[C.tableId] = !1) : g && (window.iaTablePortalOpen[C.tableId] = !1);
|
|
10452
10452
|
},
|
|
10453
|
-
[e,
|
|
10453
|
+
[e, g]
|
|
10454
10454
|
), ge = de(
|
|
10455
10455
|
(le) => {
|
|
10456
10456
|
if (le.stopPropagation(), K && !S) {
|
|
10457
10457
|
const Ee = ye.parseDate(K), Ge = Ee ? ye.formatDate(Ee, "YYYY-MM-DD") : K;
|
|
10458
10458
|
m(Ge), t && t(Ge);
|
|
10459
10459
|
}
|
|
10460
|
-
I(!1),
|
|
10460
|
+
I(!1), g && (C != null && C.tableId) ? (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[C.tableId] = !1) : g && (window.iaTablePortalOpen[C.tableId] = !1);
|
|
10461
10461
|
},
|
|
10462
|
-
[K, S, t,
|
|
10462
|
+
[K, S, t, g]
|
|
10463
10463
|
);
|
|
10464
10464
|
se(() => {
|
|
10465
10465
|
if (!E) return;
|
|
@@ -10518,7 +10518,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10518
10518
|
le.stopPropagation(), H(ue(D).add(1, "year").startOf("month"));
|
|
10519
10519
|
},
|
|
10520
10520
|
[D]
|
|
10521
|
-
), _e = () => ye.getDayNames(), He = () => ye.getMonthNames(), Be = () => ye.getYearsRange(A,
|
|
10521
|
+
), _e = () => ye.getDayNames(), He = () => ye.getMonthNames(), Be = () => ye.getYearsRange(A, p), Ne = (le) => {
|
|
10522
10522
|
const Ee = He().indexOf(le);
|
|
10523
10523
|
H(ue(D).month(Ee)), U(!1);
|
|
10524
10524
|
}, Ke = (le) => {
|
|
@@ -10705,7 +10705,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10705
10705
|
/* @__PURE__ */ f(
|
|
10706
10706
|
"div",
|
|
10707
10707
|
{
|
|
10708
|
-
className: `ia-table-datepicker-calendar ${
|
|
10708
|
+
className: `ia-table-datepicker-calendar ${g ? "ia-table-datepicker-cell-calendar" : ""}`,
|
|
10709
10709
|
ref: _,
|
|
10710
10710
|
style: {
|
|
10711
10711
|
position: "fixed",
|
|
@@ -10714,7 +10714,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10714
10714
|
zIndex: 10001
|
|
10715
10715
|
},
|
|
10716
10716
|
onWheel: (le) => {
|
|
10717
|
-
|
|
10717
|
+
g && le.stopPropagation();
|
|
10718
10718
|
},
|
|
10719
10719
|
children: ot
|
|
10720
10720
|
}
|
|
@@ -10774,7 +10774,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10774
10774
|
) : /* @__PURE__ */ f(pa, { className: "icon-16" }),
|
|
10775
10775
|
hasDateError: S,
|
|
10776
10776
|
isheadercell: v,
|
|
10777
|
-
isCellRenderer:
|
|
10777
|
+
isCellRenderer: g
|
|
10778
10778
|
}
|
|
10779
10779
|
),
|
|
10780
10780
|
x && /* @__PURE__ */ f(
|
|
@@ -10786,7 +10786,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10786
10786
|
advancedSearchApplyRef: z
|
|
10787
10787
|
}
|
|
10788
10788
|
),
|
|
10789
|
-
S && !
|
|
10789
|
+
S && !g && /* @__PURE__ */ f("div", { className: "ia-table-datepicker-error-message", children: (() => {
|
|
10790
10790
|
const le = M ? V(M) : { reason: null }, Ee = (Ge) => ye.formatDate(Ge, l);
|
|
10791
10791
|
switch (le.reason) {
|
|
10792
10792
|
case "before_min_date":
|
|
@@ -10802,7 +10802,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10802
10802
|
case "future_only_disabled":
|
|
10803
10803
|
return "Only today and past dates are available";
|
|
10804
10804
|
case "outside_year_range":
|
|
10805
|
-
return `Date must be between years ${A} and ${
|
|
10805
|
+
return `Date must be between years ${A} and ${p}`;
|
|
10806
10806
|
default:
|
|
10807
10807
|
return w && b ? `Date must be between ${Ee(
|
|
10808
10808
|
w
|
|
@@ -10826,8 +10826,8 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10826
10826
|
disablePast: u = !1,
|
|
10827
10827
|
disableFuture: h = !1,
|
|
10828
10828
|
startYear: A,
|
|
10829
|
-
endYear:
|
|
10830
|
-
minDate:
|
|
10829
|
+
endYear: p,
|
|
10830
|
+
minDate: g,
|
|
10831
10831
|
maxDate: C
|
|
10832
10832
|
} = i, { field: w } = r, b = de(
|
|
10833
10833
|
(v) => {
|
|
@@ -10852,10 +10852,10 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10852
10852
|
disablePast: u,
|
|
10853
10853
|
disableFuture: h,
|
|
10854
10854
|
startYear: A,
|
|
10855
|
-
endYear:
|
|
10855
|
+
endYear: p,
|
|
10856
10856
|
isCellRenderer: !0,
|
|
10857
10857
|
tableApi: a,
|
|
10858
|
-
minDate:
|
|
10858
|
+
minDate: g,
|
|
10859
10859
|
maxDate: C,
|
|
10860
10860
|
lazyLoadCellRenderer: s
|
|
10861
10861
|
}
|
|
@@ -10875,8 +10875,8 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10875
10875
|
setShowMonthDropdown: u,
|
|
10876
10876
|
showYearDropdown: h,
|
|
10877
10877
|
setShowYearDropdown: A,
|
|
10878
|
-
activeCalendar:
|
|
10879
|
-
setActiveCalendar:
|
|
10878
|
+
activeCalendar: p,
|
|
10879
|
+
setActiveCalendar: g,
|
|
10880
10880
|
monthDropdownRef: C,
|
|
10881
10881
|
yearDropdownRef: w,
|
|
10882
10882
|
disableOnlyPast: b,
|
|
@@ -10939,7 +10939,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10939
10939
|
{
|
|
10940
10940
|
className: "ia-table-daterangepicker-current-month d-flex align-items-center cursor-pointer",
|
|
10941
10941
|
onClick: (y) => {
|
|
10942
|
-
y.stopPropagation(), u(!d), A(!1),
|
|
10942
|
+
y.stopPropagation(), u(!d), A(!1), g("left");
|
|
10943
10943
|
},
|
|
10944
10944
|
children: [
|
|
10945
10945
|
/* @__PURE__ */ f("div", { className: "ia-table-daterangepicker-month-text", children: ue.isMoment(e) ? e.format("MMMM") : new Date(e).toLocaleDateString("en-US", {
|
|
@@ -10990,7 +10990,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10990
10990
|
{
|
|
10991
10991
|
className: "ia-table-daterangepicker-current-year d-flex align-items-center cursor-pointer",
|
|
10992
10992
|
onClick: (y) => {
|
|
10993
|
-
y.stopPropagation(), A(!h), u(!1),
|
|
10993
|
+
y.stopPropagation(), A(!h), u(!1), g("left");
|
|
10994
10994
|
},
|
|
10995
10995
|
children: [
|
|
10996
10996
|
/* @__PURE__ */ f("div", { className: "ia-table-daterangepicker-year-text", children: be(e) }),
|
|
@@ -11019,7 +11019,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11019
11019
|
}
|
|
11020
11020
|
)
|
|
11021
11021
|
] }),
|
|
11022
|
-
d &&
|
|
11022
|
+
d && p === "left" && /* @__PURE__ */ f(
|
|
11023
11023
|
"div",
|
|
11024
11024
|
{
|
|
11025
11025
|
className: "ia-table-daterangepicker-month-dropdown d-flex flex-column gap-2",
|
|
@@ -11045,7 +11045,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11045
11045
|
))
|
|
11046
11046
|
}
|
|
11047
11047
|
),
|
|
11048
|
-
h &&
|
|
11048
|
+
h && p === "left" && /* @__PURE__ */ f(
|
|
11049
11049
|
"div",
|
|
11050
11050
|
{
|
|
11051
11051
|
className: "ia-table-daterangepicker-year-dropdown",
|
|
@@ -11201,7 +11201,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11201
11201
|
{
|
|
11202
11202
|
className: "ia-table-daterangepicker-current-month d-flex align-items-center cursor-pointer",
|
|
11203
11203
|
onClick: (y) => {
|
|
11204
|
-
y.stopPropagation(), u(!d), A(!1),
|
|
11204
|
+
y.stopPropagation(), u(!d), A(!1), g("right");
|
|
11205
11205
|
},
|
|
11206
11206
|
children: [
|
|
11207
11207
|
/* @__PURE__ */ f("div", { className: "ia-table-daterangepicker-month-text", children: ue.isMoment(n) ? n.format("MMMM") : new Date(n).toLocaleDateString("en-US", {
|
|
@@ -11258,7 +11258,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11258
11258
|
{
|
|
11259
11259
|
className: "ia-table-daterangepicker-current-year d-flex align-items-center cursor-pointer",
|
|
11260
11260
|
onClick: (y) => {
|
|
11261
|
-
y.stopPropagation(), A(!h), u(!1),
|
|
11261
|
+
y.stopPropagation(), A(!h), u(!1), g("right");
|
|
11262
11262
|
},
|
|
11263
11263
|
children: [
|
|
11264
11264
|
/* @__PURE__ */ f("div", { className: "ia-table-daterangepicker-year-text", children: be(n) }),
|
|
@@ -11281,7 +11281,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11281
11281
|
}
|
|
11282
11282
|
)
|
|
11283
11283
|
] }),
|
|
11284
|
-
d &&
|
|
11284
|
+
d && p === "right" && /* @__PURE__ */ f(
|
|
11285
11285
|
"div",
|
|
11286
11286
|
{
|
|
11287
11287
|
className: "ia-table-daterangepicker-month-dropdown d-flex flex-column gap-2",
|
|
@@ -11312,7 +11312,7 @@ const hs = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11312
11312
|
))
|
|
11313
11313
|
}
|
|
11314
11314
|
),
|
|
11315
|
-
h &&
|
|
11315
|
+
h && p === "right" && /* @__PURE__ */ f(
|
|
11316
11316
|
"div",
|
|
11317
11317
|
{
|
|
11318
11318
|
className: "ia-table-daterangepicker-year-dropdown",
|
|
@@ -11525,8 +11525,8 @@ function Ec({
|
|
|
11525
11525
|
maxDate: u,
|
|
11526
11526
|
readOnly: h,
|
|
11527
11527
|
isOutsideRange: A,
|
|
11528
|
-
onErrorStateChange:
|
|
11529
|
-
clearErrorsTrigger:
|
|
11528
|
+
onErrorStateChange: p,
|
|
11529
|
+
clearErrorsTrigger: g,
|
|
11530
11530
|
onClear: C,
|
|
11531
11531
|
onCalendarOpen: w,
|
|
11532
11532
|
isCellRenderer: b
|
|
@@ -11547,10 +11547,10 @@ function Ec({
|
|
|
11547
11547
|
}, [t]), se(() => {
|
|
11548
11548
|
z(n || "");
|
|
11549
11549
|
}, [n]), se(() => {
|
|
11550
|
-
|
|
11551
|
-
}, [T, m,
|
|
11552
|
-
|
|
11553
|
-
}, [
|
|
11550
|
+
p && p(T || m);
|
|
11551
|
+
}, [T, m, p]), se(() => {
|
|
11552
|
+
g > 0 && (M(!1), E(!1));
|
|
11553
|
+
}, [g]);
|
|
11554
11554
|
const F = (B, J) => {
|
|
11555
11555
|
if (!B || d && ue(B).isBefore(d, "day") || u && ue(B).isAfter(u, "day"))
|
|
11556
11556
|
return !1;
|
|
@@ -11834,8 +11834,8 @@ const yc = ({
|
|
|
11834
11834
|
disableOnlyFuture: u = !1,
|
|
11835
11835
|
disablePast: h = !1,
|
|
11836
11836
|
disableFuture: A = !1,
|
|
11837
|
-
startYear:
|
|
11838
|
-
endYear:
|
|
11837
|
+
startYear: p = 2e3,
|
|
11838
|
+
endYear: g = 2100,
|
|
11839
11839
|
isCellRenderer: C = !1,
|
|
11840
11840
|
tableApi: w = {},
|
|
11841
11841
|
minDate: b = null,
|
|
@@ -11844,7 +11844,7 @@ const yc = ({
|
|
|
11844
11844
|
isOutsideRange: P,
|
|
11845
11845
|
lazyLoadCellRenderer: z = !1
|
|
11846
11846
|
}) => {
|
|
11847
|
-
const [T, M] = ie(e), [m, E] = ie(t), [I, x] = ie(""), [W, D] = ie(""), [H, K] = ie(0), [q, F] = ie(!0), [U, O] = ie(!0), [k, S] = ie(""), L =
|
|
11847
|
+
const [T, M] = ie(e), [m, E] = ie(t), [I, x] = ie(""), [W, D] = ie(""), [H, K] = ie(0), [q, F] = ie(!0), [U, O] = ie(!0), [k, S] = ie(""), L = p, y = g, [R, _] = ie(!1), [j, G] = ie(""), [B, J] = ie(() => e ? ye.parseDate(e) || ue() : ue()), [Q, X] = ie(() => {
|
|
11848
11848
|
if (t) {
|
|
11849
11849
|
const oe = ye.parseDate(t);
|
|
11850
11850
|
if (oe) return oe;
|
|
@@ -12129,8 +12129,8 @@ const yc = ({
|
|
|
12129
12129
|
disableOnlyFuture: u,
|
|
12130
12130
|
disablePast: h,
|
|
12131
12131
|
disableFuture: A,
|
|
12132
|
-
startYear:
|
|
12133
|
-
endYear:
|
|
12132
|
+
startYear: p,
|
|
12133
|
+
endYear: g,
|
|
12134
12134
|
focusedInput: j,
|
|
12135
12135
|
error: s,
|
|
12136
12136
|
hasDateError: k
|
|
@@ -12151,8 +12151,8 @@ const yc = ({
|
|
|
12151
12151
|
u,
|
|
12152
12152
|
h,
|
|
12153
12153
|
A,
|
|
12154
|
-
g,
|
|
12155
12154
|
p,
|
|
12155
|
+
g,
|
|
12156
12156
|
j,
|
|
12157
12157
|
s,
|
|
12158
12158
|
k
|
|
@@ -12305,8 +12305,8 @@ const yc = ({
|
|
|
12305
12305
|
disableOnlyFuture: u = !1,
|
|
12306
12306
|
disablePast: h = !1,
|
|
12307
12307
|
disableFuture: A = !1,
|
|
12308
|
-
startYear:
|
|
12309
|
-
endYear:
|
|
12308
|
+
startYear: p,
|
|
12309
|
+
endYear: g,
|
|
12310
12310
|
minDate: C,
|
|
12311
12311
|
maxDate: w
|
|
12312
12312
|
} = i, { field: b } = r, v = () => {
|
|
@@ -12348,8 +12348,8 @@ const yc = ({
|
|
|
12348
12348
|
disableOnlyFuture: u,
|
|
12349
12349
|
disablePast: h,
|
|
12350
12350
|
disableFuture: A,
|
|
12351
|
-
startYear:
|
|
12352
|
-
endYear:
|
|
12351
|
+
startYear: p,
|
|
12352
|
+
endYear: g,
|
|
12353
12353
|
isCellRenderer: !0,
|
|
12354
12354
|
tableApi: a,
|
|
12355
12355
|
minDate: C,
|
|
@@ -12378,10 +12378,10 @@ const yc = ({
|
|
|
12378
12378
|
maximumFractionDigits: s || 0
|
|
12379
12379
|
}).format(o);
|
|
12380
12380
|
}, vc = (e) => {
|
|
12381
|
-
var d, u, h, A,
|
|
12381
|
+
var d, u, h, A, p;
|
|
12382
12382
|
const { params: t, cellRendererParams: n = {} } = e, { data: r } = t || {}, { splits: a = [] } = n || {}, i = (d = r == null ? void 0 : r.__split) == null ? void 0 : d.key, s = Re(
|
|
12383
12383
|
() => a.find(
|
|
12384
|
-
(
|
|
12384
|
+
(g) => ne(g).endsWith(`.${i}`)
|
|
12385
12385
|
),
|
|
12386
12386
|
[a, i]
|
|
12387
12387
|
), o = ss(r, ne(s));
|
|
@@ -12400,10 +12400,10 @@ const yc = ({
|
|
|
12400
12400
|
]);
|
|
12401
12401
|
if (!s || !i || !a.length) return null;
|
|
12402
12402
|
if (s.cellRenderer) {
|
|
12403
|
-
const
|
|
12403
|
+
const g = {
|
|
12404
12404
|
...t.colDef,
|
|
12405
12405
|
field: ne(s),
|
|
12406
|
-
...((
|
|
12406
|
+
...((p = s.valueFormatter) == null ? void 0 : p.decimals) === 0 && {
|
|
12407
12407
|
formatter: "roundOff"
|
|
12408
12408
|
}
|
|
12409
12409
|
};
|
|
@@ -12414,7 +12414,7 @@ const yc = ({
|
|
|
12414
12414
|
params: {
|
|
12415
12415
|
...t,
|
|
12416
12416
|
value: l,
|
|
12417
|
-
colDef:
|
|
12417
|
+
colDef: g
|
|
12418
12418
|
},
|
|
12419
12419
|
cellRendererParams: {
|
|
12420
12420
|
...n,
|
|
@@ -12471,7 +12471,7 @@ const yc = ({
|
|
|
12471
12471
|
}) => {
|
|
12472
12472
|
const { cellRendererParams: u = {}, cellRenderer: h } = s;
|
|
12473
12473
|
if (h && !(e && t.__isAggregationRow) && !n && !t.subTotalAggreRow && (typeof h == "function" || u && u.innerRenderer && typeof u.innerRenderer == "function")) {
|
|
12474
|
-
const A = h && typeof h != "function" ? u.innerRenderer : h,
|
|
12474
|
+
const A = h && typeof h != "function" ? u.innerRenderer : h, p = Va({
|
|
12475
12475
|
cellValue: r,
|
|
12476
12476
|
rowData: t,
|
|
12477
12477
|
rowIndex: a,
|
|
@@ -12481,7 +12481,7 @@ const yc = ({
|
|
|
12481
12481
|
cellRef: l,
|
|
12482
12482
|
hasChildren: c
|
|
12483
12483
|
});
|
|
12484
|
-
return /* @__PURE__ */ f(Ic, { renderer: A, params:
|
|
12484
|
+
return /* @__PURE__ */ f(Ic, { renderer: A, params: p });
|
|
12485
12485
|
} else if (h && !(e && t.__isAggregationRow) && !n && !t.subTotalAggreRow && typeof h == "string" && Dr.includes(h)) {
|
|
12486
12486
|
const A = Va({
|
|
12487
12487
|
cellValue: r,
|
|
@@ -12527,8 +12527,8 @@ const yc = ({
|
|
|
12527
12527
|
cellType: u,
|
|
12528
12528
|
isChildRow: h,
|
|
12529
12529
|
isGrandTotalRow: A,
|
|
12530
|
-
isFirstColumn:
|
|
12531
|
-
isFirstFrozenColumn:
|
|
12530
|
+
isFirstColumn: p,
|
|
12531
|
+
isFirstFrozenColumn: g,
|
|
12532
12532
|
isGroupRowExpanded: C,
|
|
12533
12533
|
isGroupingKey: w,
|
|
12534
12534
|
level: b,
|
|
@@ -12601,7 +12601,7 @@ const yc = ({
|
|
|
12601
12601
|
{
|
|
12602
12602
|
className: `ia-table-body-cell__content position-relative ${Z ? "" : "text-overflow-ellipsis"} ia-table-body-cell__content--${u}`,
|
|
12603
12603
|
style: {
|
|
12604
|
-
marginLeft: h && !A && (
|
|
12604
|
+
marginLeft: h && !A && (p || g) && (w || C) ? `${b * Ws + 20}px` : 0
|
|
12605
12605
|
},
|
|
12606
12606
|
children: [
|
|
12607
12607
|
v && !h && /* @__PURE__ */ f("div", { className: "ia-table-body-cell__drag-handle", children: /* @__PURE__ */ f($n, {}) }),
|
|
@@ -12731,8 +12731,8 @@ const yc = ({
|
|
|
12731
12731
|
masterDetail: u,
|
|
12732
12732
|
stateRowHeight: h,
|
|
12733
12733
|
rowGroupState: A,
|
|
12734
|
-
serverSide:
|
|
12735
|
-
rowSpanColumn:
|
|
12734
|
+
serverSide: p,
|
|
12735
|
+
rowSpanColumn: g,
|
|
12736
12736
|
enableRowSpan: C,
|
|
12737
12737
|
columns: w,
|
|
12738
12738
|
isSingleSelect: b,
|
|
@@ -12802,7 +12802,7 @@ const yc = ({
|
|
|
12802
12802
|
K && (m != null && m.__parentPath) && (Z = ((En = (wn = m.__parentPath) == null ? void 0 : wn.split("/")) == null ? void 0 : En.length) || 0, Z > 4 && (Z = 4));
|
|
12803
12803
|
const Y = t.minWidth, $ = y.width && y.width < Y ? Y : y.width, ae = ((ar = y.cellStyle) == null ? void 0 : ar.textAlign) || "left", fe = y.is_disabled || ((ir = y.extra) == null ? void 0 : ir.is_disabled) || ((sr = y.extra) == null ? void 0 : sr.isDisabled);
|
|
12804
12804
|
let he = F || {};
|
|
12805
|
-
if (
|
|
12805
|
+
if (g != null && g.includes(B) && (m != null && m.__rowSpanInfo)) {
|
|
12806
12806
|
const Ae = ((lr = (or = m.__rowSpanInfo) == null ? void 0 : or[B]) == null ? void 0 : lr.span) || 0, Rt = ((dr = (cr = m.__rowSpanInfo) == null ? void 0 : cr[B]) == null ? void 0 : dr.isFirst) || !1;
|
|
12807
12807
|
he = { span: Ae, isFirst: Rt };
|
|
12808
12808
|
}
|
|
@@ -12893,7 +12893,7 @@ const yc = ({
|
|
|
12893
12893
|
},
|
|
12894
12894
|
...P
|
|
12895
12895
|
};
|
|
12896
|
-
if (C &&
|
|
12896
|
+
if (C && g && (m != null && m.__rowSpanInfo) && (Array.isArray(g) ? g.includes(B) : g === B)) {
|
|
12897
12897
|
if (he.span === 0 || !he.isFirst)
|
|
12898
12898
|
return null;
|
|
12899
12899
|
he.span > 1 && (tt.verticalAlign = "top", tt.borderBottom = "1px solid #e0e0e0", tt.alignItems = "flex-start", tt.paddingTop = "12px", tt.gridRow = `span ${he.span}`);
|
|
@@ -12971,7 +12971,7 @@ const yc = ({
|
|
|
12971
12971
|
toolTipTitle: rn,
|
|
12972
12972
|
shouldRenderRowGroupContent: Mr,
|
|
12973
12973
|
groupId: Ee,
|
|
12974
|
-
serverSide:
|
|
12974
|
+
serverSide: p,
|
|
12975
12975
|
loadingRef: z,
|
|
12976
12976
|
stateRowHeight: h,
|
|
12977
12977
|
virtualized: T,
|
|
@@ -13180,13 +13180,13 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13180
13180
|
indentationStyle: u = null,
|
|
13181
13181
|
allColumnsLastRow: h,
|
|
13182
13182
|
virtualizedStartCololumnIndex: A,
|
|
13183
|
-
uniqueIdField:
|
|
13184
|
-
isLeftPinnedRowsAvailable:
|
|
13183
|
+
uniqueIdField: p,
|
|
13184
|
+
isLeftPinnedRowsAvailable: g,
|
|
13185
13185
|
bodyContainerRef: C,
|
|
13186
13186
|
rowDragManaged: w
|
|
13187
13187
|
}) => {
|
|
13188
13188
|
var B, J;
|
|
13189
|
-
const { dispatch: b, ACTION_TYPES: v, getRowStyle: N } = pt(), P = (e == null ? void 0 : e[
|
|
13189
|
+
const { dispatch: b, ACTION_TYPES: v, getRowStyle: N } = pt(), P = (e == null ? void 0 : e[p]) || (e == null ? void 0 : e.id) || t, {
|
|
13190
13190
|
expandedChildRows: z,
|
|
13191
13191
|
selectedRowId: T,
|
|
13192
13192
|
tableApi: M,
|
|
@@ -13216,7 +13216,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13216
13216
|
}))
|
|
13217
13217
|
), F = ce(null), U = !!(e != null && e.__parentPath) || (e == null ? void 0 : e.isChildGroup), O = m ? !E : T, k = (Q) => {
|
|
13218
13218
|
var V, Z, Y, $, ae, fe, he;
|
|
13219
|
-
if (Q.stopPropagation(), !
|
|
13219
|
+
if (Q.stopPropagation(), !p || !(e != null && e[p]))
|
|
13220
13220
|
return;
|
|
13221
13221
|
const X = (V = M == null ? void 0 : M.getTableStateContext) == null ? void 0 : V.call(M);
|
|
13222
13222
|
if (W && (x != null && x.includes("Selection"))) {
|
|
@@ -13234,7 +13234,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13234
13234
|
pe = Ke.slice(
|
|
13235
13235
|
Le,
|
|
13236
13236
|
Le + Pe
|
|
13237
|
-
).map((lt) => lt[
|
|
13237
|
+
).map((lt) => lt[p]);
|
|
13238
13238
|
}
|
|
13239
13239
|
const Ie = (X == null ? void 0 : X.selectedRows) || [], Ve = (X == null ? void 0 : X.unCheckedRows) || {}, je = (X == null ? void 0 : X.selectedRowsObject) || {};
|
|
13240
13240
|
let _e = !0;
|
|
@@ -13262,7 +13262,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13262
13262
|
const Ne = (X == null ? void 0 : X.data) || [];
|
|
13263
13263
|
pe.forEach((Ke) => {
|
|
13264
13264
|
const Le = Ne.find(
|
|
13265
|
-
(me) => (me[
|
|
13265
|
+
(me) => (me[p] || me.id) === Ke
|
|
13266
13266
|
);
|
|
13267
13267
|
Le && di({
|
|
13268
13268
|
p_instance: {
|
|
@@ -13270,7 +13270,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13270
13270
|
data: Le,
|
|
13271
13271
|
node: { selected: He }
|
|
13272
13272
|
},
|
|
13273
|
-
uniqueRowId:
|
|
13273
|
+
uniqueRowId: p,
|
|
13274
13274
|
dispatch: b
|
|
13275
13275
|
});
|
|
13276
13276
|
});
|
|
@@ -13290,7 +13290,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13290
13290
|
data: e,
|
|
13291
13291
|
node: { selected: ge }
|
|
13292
13292
|
},
|
|
13293
|
-
uniqueRowId:
|
|
13293
|
+
uniqueRowId: p,
|
|
13294
13294
|
dispatch: b
|
|
13295
13295
|
});
|
|
13296
13296
|
}
|
|
@@ -13415,7 +13415,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13415
13415
|
style: u || null,
|
|
13416
13416
|
isChildRow: U,
|
|
13417
13417
|
isGrandTotalRow: R,
|
|
13418
|
-
isLeftPinnedRowsAvailable:
|
|
13418
|
+
isLeftPinnedRowsAvailable: g
|
|
13419
13419
|
},
|
|
13420
13420
|
V
|
|
13421
13421
|
);
|
|
@@ -13443,8 +13443,8 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13443
13443
|
handlePinnedScroll: u,
|
|
13444
13444
|
virtualizedAllVisibleColumns: h,
|
|
13445
13445
|
virtualizedStartCololumnIndex: A,
|
|
13446
|
-
uniqueIdField:
|
|
13447
|
-
pinnedType:
|
|
13446
|
+
uniqueIdField: p,
|
|
13447
|
+
pinnedType: g
|
|
13448
13448
|
}) => /* @__PURE__ */ f(
|
|
13449
13449
|
"div",
|
|
13450
13450
|
{
|
|
@@ -13461,7 +13461,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13461
13461
|
children: /* @__PURE__ */ f(
|
|
13462
13462
|
"div",
|
|
13463
13463
|
{
|
|
13464
|
-
className: `${
|
|
13464
|
+
className: `${g === "top" ? "ia-table-pinned-top-rows-container" : "ia-table-pinned-bottom-rows-container"} ia-table-pinned-rows-container ia-table-width-inherit`,
|
|
13465
13465
|
style: {
|
|
13466
13466
|
height: `${r.length * e}px`
|
|
13467
13467
|
},
|
|
@@ -13469,7 +13469,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13469
13469
|
Cs,
|
|
13470
13470
|
{
|
|
13471
13471
|
rowData: C,
|
|
13472
|
-
rowIndex: `${
|
|
13472
|
+
rowIndex: `${g}-${w}`,
|
|
13473
13473
|
onClick: a ? () => a(C, w) : void 0,
|
|
13474
13474
|
selectable: t,
|
|
13475
13475
|
expandable: n,
|
|
@@ -13478,10 +13478,10 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13478
13478
|
virtualized: !0,
|
|
13479
13479
|
leftPinnedOnly: s,
|
|
13480
13480
|
virtualizedStartCololumnIndex: A,
|
|
13481
|
-
uniqueIdField:
|
|
13481
|
+
uniqueIdField: p,
|
|
13482
13482
|
isLeftPinnedRowsAvailable: d
|
|
13483
13483
|
},
|
|
13484
|
-
`${
|
|
13484
|
+
`${g}-${w}`
|
|
13485
13485
|
))
|
|
13486
13486
|
}
|
|
13487
13487
|
)
|
|
@@ -13505,7 +13505,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13505
13505
|
), [u, h] = ie({
|
|
13506
13506
|
start: 0,
|
|
13507
13507
|
end: Math.min(t - 1, e - 1)
|
|
13508
|
-
}), A = ce({ start: 0, end: 0 }),
|
|
13508
|
+
}), A = ce({ start: 0, end: 0 }), p = ce(!1), g = de(
|
|
13509
13509
|
(b) => {
|
|
13510
13510
|
const v = (i == null ? void 0 : i.current) || (a == null ? void 0 : a.current);
|
|
13511
13511
|
if (!v) return;
|
|
@@ -13547,15 +13547,15 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13547
13547
|
se(() => {
|
|
13548
13548
|
const b = (i == null ? void 0 : i.current) || a.current;
|
|
13549
13549
|
if (!b) return;
|
|
13550
|
-
if (!
|
|
13550
|
+
if (!p.current) {
|
|
13551
13551
|
const N = {
|
|
13552
13552
|
start: 0,
|
|
13553
13553
|
end: e === 0 ? t - 1 : Math.min(e - 1, t - 1)
|
|
13554
13554
|
};
|
|
13555
|
-
A.current = N, h(N),
|
|
13555
|
+
A.current = N, h(N), p.current = !0;
|
|
13556
13556
|
}
|
|
13557
13557
|
const v = setTimeout(() => {
|
|
13558
|
-
|
|
13558
|
+
g(b.scrollTop);
|
|
13559
13559
|
}, 50);
|
|
13560
13560
|
return () => {
|
|
13561
13561
|
clearTimeout(v);
|
|
@@ -13564,26 +13564,26 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13564
13564
|
e,
|
|
13565
13565
|
a,
|
|
13566
13566
|
i,
|
|
13567
|
-
|
|
13567
|
+
g,
|
|
13568
13568
|
t
|
|
13569
13569
|
]), se(() => {
|
|
13570
13570
|
if (!d) return;
|
|
13571
13571
|
const b = (i == null ? void 0 : i.current) || (a == null ? void 0 : a.current);
|
|
13572
13572
|
if (!b) return;
|
|
13573
13573
|
const v = () => {
|
|
13574
|
-
|
|
13574
|
+
g(b.scrollTop);
|
|
13575
13575
|
};
|
|
13576
13576
|
return window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
|
|
13577
13577
|
}, [
|
|
13578
13578
|
a,
|
|
13579
13579
|
i,
|
|
13580
|
-
|
|
13580
|
+
g,
|
|
13581
13581
|
d
|
|
13582
13582
|
]), se(() => {
|
|
13583
13583
|
const b = (i == null ? void 0 : i.current) || (a == null ? void 0 : a.current);
|
|
13584
13584
|
if (!b || !d) return;
|
|
13585
13585
|
const v = b, N = (P) => {
|
|
13586
|
-
|
|
13586
|
+
g(P.target.scrollTop);
|
|
13587
13587
|
};
|
|
13588
13588
|
return v.addEventListener("scroll", N, {
|
|
13589
13589
|
passive: !0
|
|
@@ -13591,7 +13591,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13591
13591
|
v && v.removeEventListener("scroll", N);
|
|
13592
13592
|
};
|
|
13593
13593
|
}, [
|
|
13594
|
-
|
|
13594
|
+
g,
|
|
13595
13595
|
i,
|
|
13596
13596
|
a,
|
|
13597
13597
|
d
|
|
@@ -13637,8 +13637,8 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13637
13637
|
showInfiniteLoader: u,
|
|
13638
13638
|
totalHeight: h,
|
|
13639
13639
|
loadedData: A,
|
|
13640
|
-
expandedGroups:
|
|
13641
|
-
rowHeightMap:
|
|
13640
|
+
expandedGroups: p,
|
|
13641
|
+
rowHeightMap: g,
|
|
13642
13642
|
isLoading: C = !1,
|
|
13643
13643
|
shimmerRowCount: w = 7,
|
|
13644
13644
|
virtualizedStartCololumnIndex: b,
|
|
@@ -13670,14 +13670,14 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13670
13670
|
c,
|
|
13671
13671
|
m,
|
|
13672
13672
|
d,
|
|
13673
|
-
|
|
13673
|
+
g
|
|
13674
13674
|
), [
|
|
13675
13675
|
e,
|
|
13676
13676
|
E,
|
|
13677
13677
|
c,
|
|
13678
13678
|
m,
|
|
13679
13679
|
d,
|
|
13680
|
-
|
|
13680
|
+
g
|
|
13681
13681
|
]), H = Hc({
|
|
13682
13682
|
dataLength: e.length,
|
|
13683
13683
|
threshold: 20,
|
|
@@ -13696,7 +13696,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13696
13696
|
const O = [];
|
|
13697
13697
|
let k = 0;
|
|
13698
13698
|
for (let S = 0; S < w; S++) {
|
|
13699
|
-
const L =
|
|
13699
|
+
const L = g && g[S] || c;
|
|
13700
13700
|
O.push(
|
|
13701
13701
|
/* @__PURE__ */ f(
|
|
13702
13702
|
"div",
|
|
@@ -13744,7 +13744,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13744
13744
|
};
|
|
13745
13745
|
return q.map((O, k) => {
|
|
13746
13746
|
var X, V, Z;
|
|
13747
|
-
const S = k + K.start, L = O.id || O[E] || `data-row-${S}`, y =
|
|
13747
|
+
const S = k + K.start, L = O.id || O[E] || `data-row-${S}`, y = g[S] || c, R = S * c + D[S] + (F.index <= S ? F.offset : 0), _ = O.__parentPath ? `${O.__parentPath}/${L}` : L, j = (X = M[_]) == null ? void 0 : X.hasMore, G = A[_], B = (V = p[_]) == null ? void 0 : V[_], J = ((Z = O.__rowSpanInfo) == null ? void 0 : Z.isRowSpan) || !1, Q = j && (G == null ? void 0 : G.length) || B && j === void 0;
|
|
13748
13748
|
return Q && (F.offset = 46, F.index = G != null && G.length ? G.length + S + 1 : S + 1), /* @__PURE__ */ te(At, { children: [
|
|
13749
13749
|
/* @__PURE__ */ f(
|
|
13750
13750
|
"div",
|
|
@@ -13829,8 +13829,8 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13829
13829
|
const c = o[n] || o.id || l, d = r.useRowIndex ? l : c;
|
|
13830
13830
|
a[d] = i, o.children && Array.isArray(o.children) && o.children.length > 0 && o.children.forEach((u, h) => {
|
|
13831
13831
|
if (!u) return;
|
|
13832
|
-
const A = u[n] || u.id || `${c}-${h}`,
|
|
13833
|
-
a[
|
|
13832
|
+
const A = u[n] || u.id || `${c}-${h}`, p = r.useRowIndex ? `${l}-${h}` : A;
|
|
13833
|
+
a[p] = i;
|
|
13834
13834
|
});
|
|
13835
13835
|
});
|
|
13836
13836
|
const s = t.filter(
|
|
@@ -13844,17 +13844,17 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13844
13844
|
s.forEach((h) => {
|
|
13845
13845
|
const A = ne(h);
|
|
13846
13846
|
if (!A) return;
|
|
13847
|
-
const
|
|
13848
|
-
if (
|
|
13849
|
-
const
|
|
13850
|
-
|
|
13847
|
+
const p = o[A];
|
|
13848
|
+
if (p == null) return;
|
|
13849
|
+
const g = hi(
|
|
13850
|
+
p,
|
|
13851
13851
|
h,
|
|
13852
13852
|
r
|
|
13853
13853
|
);
|
|
13854
|
-
|
|
13854
|
+
g > u && (u = g);
|
|
13855
13855
|
}), u !== i && (a[d] = u), o.children && Array.isArray(o.children) && o.children.length > 0 && o.children.forEach((h, A) => {
|
|
13856
13856
|
if (!h) return;
|
|
13857
|
-
const
|
|
13857
|
+
const p = h[n] || h.id || `${c}-${A}`, g = r.useRowIndex ? `${l}-${A}` : p;
|
|
13858
13858
|
let C = i;
|
|
13859
13859
|
s.forEach((w) => {
|
|
13860
13860
|
const b = ne(w);
|
|
@@ -13867,7 +13867,7 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13867
13867
|
r
|
|
13868
13868
|
);
|
|
13869
13869
|
N > C && (C = N);
|
|
13870
|
-
}), C !== i && (a[
|
|
13870
|
+
}), C !== i && (a[g] = C);
|
|
13871
13871
|
});
|
|
13872
13872
|
}), a;
|
|
13873
13873
|
}, hi = (e, t, n = {}) => {
|
|
@@ -13884,17 +13884,17 @@ const Pc = (e, t, n, r, a) => {
|
|
|
13884
13884
|
const o = String(e);
|
|
13885
13885
|
if (!o) return r;
|
|
13886
13886
|
const l = t.width || 150, c = 24, d = 8.4, u = l - c, h = o.split(/\s+/);
|
|
13887
|
-
let A = 0,
|
|
13887
|
+
let A = 0, p = 0;
|
|
13888
13888
|
for (const C of h) {
|
|
13889
13889
|
const w = C.length * d;
|
|
13890
13890
|
if (w > u) {
|
|
13891
13891
|
const b = Math.ceil(w / u);
|
|
13892
|
-
A += b,
|
|
13893
|
-
} else
|
|
13892
|
+
A += b, p = 0;
|
|
13893
|
+
} else p + w + (p > 0 ? d : 0) > u ? (A++, p = w) : p += w + (p > 0 ? d : 0);
|
|
13894
13894
|
}
|
|
13895
|
-
|
|
13896
|
-
let
|
|
13897
|
-
return
|
|
13895
|
+
p > 0 && A++, A = Math.max(1, A);
|
|
13896
|
+
let g = A * a + i;
|
|
13897
|
+
return g = Math.max(r, g), g = Math.min(s, g), g;
|
|
13898
13898
|
};
|
|
13899
13899
|
class ma {
|
|
13900
13900
|
constructor() {
|
|
@@ -13997,8 +13997,8 @@ const Wc = ({
|
|
|
13997
13997
|
}) => {
|
|
13998
13998
|
var Y;
|
|
13999
13999
|
const {
|
|
14000
|
-
filteredData:
|
|
14001
|
-
pagination:
|
|
14000
|
+
filteredData: p,
|
|
14001
|
+
pagination: g,
|
|
14002
14002
|
infiniteScroll: C = !1,
|
|
14003
14003
|
serverSide: w,
|
|
14004
14004
|
enableRowSpan: b,
|
|
@@ -14036,7 +14036,7 @@ const Wc = ({
|
|
|
14036
14036
|
masterDetail: $.masterDetail,
|
|
14037
14037
|
expandedGroups: $.expandedGroups
|
|
14038
14038
|
}))
|
|
14039
|
-
), { isCountUnknown: K, currentLoadedPage: q, allTotalPages: F } =
|
|
14039
|
+
), { isCountUnknown: K, currentLoadedPage: q, allTotalPages: F } = g, U = ce(null), O = ce(null), [k, S] = ie({});
|
|
14040
14040
|
se(() => {
|
|
14041
14041
|
O.current || (O.current = new ma());
|
|
14042
14042
|
}, []);
|
|
@@ -14051,17 +14051,17 @@ const Wc = ({
|
|
|
14051
14051
|
($, ae) => $ + ae.childRowsCount,
|
|
14052
14052
|
0
|
|
14053
14053
|
), G = Re(() => {
|
|
14054
|
-
if (C &&
|
|
14055
|
-
if (C) return
|
|
14054
|
+
if (C && g.currentLoadedPage * g.pageSize === p.length && (d.current = !1), !p.length) return [];
|
|
14055
|
+
if (C) return p;
|
|
14056
14056
|
{
|
|
14057
|
-
const { currentPage: $, pageSize: ae, totalItems: fe, currentLoadedPage: he } =
|
|
14058
|
-
let Ie = b && pe === 0 ?
|
|
14059
|
-
return Ie <
|
|
14057
|
+
const { currentPage: $, pageSize: ae, totalItems: fe, currentLoadedPage: he } = g, pe = (p.length === fe ? w ? 0 : he - 1 : $ - 1) * ae;
|
|
14058
|
+
let Ie = b && pe === 0 ? p.length : pe + ae;
|
|
14059
|
+
return Ie < p.length && w && (Ie = p.length), j > 0 && (Ie += j), x && (Ie += 1), p.slice(pe, Ie);
|
|
14060
14060
|
}
|
|
14061
14061
|
}, [
|
|
14062
|
-
|
|
14063
|
-
|
|
14064
|
-
|
|
14062
|
+
p,
|
|
14063
|
+
g.currentPage,
|
|
14064
|
+
g.pageSize,
|
|
14065
14065
|
C
|
|
14066
14066
|
]);
|
|
14067
14067
|
let B = Re(() => [...G], [G]);
|
|
@@ -14103,7 +14103,7 @@ const Wc = ({
|
|
|
14103
14103
|
k,
|
|
14104
14104
|
T
|
|
14105
14105
|
]);
|
|
14106
|
-
const Q =
|
|
14106
|
+
const Q = g == null ? void 0 : g.pageSize, X = Object.keys(E || {}).length > 0, V = I && !X, Z = X && B.length === 0;
|
|
14107
14107
|
return (I || V && B.length === 0) && (J = Q * m.height), Z && B.length === 0 && (J = Math.max(J, 200)), _ && I && (J += xn * m.height), /* @__PURE__ */ f(
|
|
14108
14108
|
"div",
|
|
14109
14109
|
{
|
|
@@ -14124,7 +14124,7 @@ const Wc = ({
|
|
|
14124
14124
|
"div",
|
|
14125
14125
|
{
|
|
14126
14126
|
style: {
|
|
14127
|
-
height: !I && !
|
|
14127
|
+
height: !I && !p.length ? "76px" : `${J}px`
|
|
14128
14128
|
},
|
|
14129
14129
|
className: "ia-table-table-body-content ia-table-table-body-content-body position-relative",
|
|
14130
14130
|
children: /* @__PURE__ */ f(
|
|
@@ -14210,13 +14210,13 @@ const Yc = (e, t) => {
|
|
|
14210
14210
|
isSingleSelect: x.isSingleSelect,
|
|
14211
14211
|
disableSelectAllRecords: x.disableSelectAllRecords
|
|
14212
14212
|
}))
|
|
14213
|
-
), [l, c] = ie(!1), [d, u] = ie(0), [h, A] = ie(e.width || 100),
|
|
14213
|
+
), [l, c] = ie(!1), [d, u] = ie(0), [h, A] = ie(e.width || 100), p = ce(null), g = ce(!1), C = ce(ne(e)), w = ce(a), b = ce(r);
|
|
14214
14214
|
se(() => {
|
|
14215
14215
|
C.current = ne(e), w.current = a, b.current = r;
|
|
14216
14216
|
}, [e, a, r]);
|
|
14217
14217
|
const v = e.is_frozen, N = ce(null), P = (x) => {
|
|
14218
14218
|
if (x.button !== 0) return;
|
|
14219
|
-
Yr = !0, c(!0),
|
|
14219
|
+
Yr = !0, c(!0), g.current = !0, u(x.clientX), A(e.width || 100), p.current = Uc(
|
|
14220
14220
|
b.current,
|
|
14221
14221
|
C.current
|
|
14222
14222
|
), x.preventDefault(), x.stopPropagation(), document.body.classList.add("ia-table-column-resizing"), document.querySelectorAll(".header-cell").forEach((D) => {
|
|
@@ -14230,7 +14230,7 @@ const Yc = (e, t) => {
|
|
|
14230
14230
|
[d, h, i]
|
|
14231
14231
|
), T = de(
|
|
14232
14232
|
(x) => {
|
|
14233
|
-
const W = b.current, D = w.current, H =
|
|
14233
|
+
const W = b.current, D = w.current, H = p.current;
|
|
14234
14234
|
if (!H || H.length === 0) return;
|
|
14235
14235
|
const K = jc(
|
|
14236
14236
|
W,
|
|
@@ -14264,7 +14264,7 @@ const Yc = (e, t) => {
|
|
|
14264
14264
|
[t, n]
|
|
14265
14265
|
), M = de(
|
|
14266
14266
|
(x) => {
|
|
14267
|
-
if (!
|
|
14267
|
+
if (!g.current) return;
|
|
14268
14268
|
const W = z(x.clientX);
|
|
14269
14269
|
W < i - 1 || e.width === W || (N.current && cancelAnimationFrame(N.current), N.current = requestAnimationFrame(() => {
|
|
14270
14270
|
T(W);
|
|
@@ -14276,7 +14276,7 @@ const Yc = (e, t) => {
|
|
|
14276
14276
|
// ~60fps
|
|
14277
14277
|
[M]
|
|
14278
14278
|
), E = de(() => {
|
|
14279
|
-
Yr = !1, c(!1),
|
|
14279
|
+
Yr = !1, c(!1), g.current = !1, N.current && (cancelAnimationFrame(N.current), N.current = null), document.body.classList.remove("ia-table-column-resizing"), document.querySelectorAll(".header-cell").forEach((W) => {
|
|
14280
14280
|
W.removeAttribute("data-resizing");
|
|
14281
14281
|
}), setTimeout(() => {
|
|
14282
14282
|
document.body.classList.remove("column-resize-complete");
|
|
@@ -14505,9 +14505,9 @@ const Zc = (e, t, n = {}) => {
|
|
|
14505
14505
|
console.log("error", z);
|
|
14506
14506
|
}
|
|
14507
14507
|
});
|
|
14508
|
-
const
|
|
14508
|
+
const g = d.minWidth || (r == null ? void 0 : r.minWidth), C = Ca(d) || 1e3;
|
|
14509
14509
|
let b = Math.max(
|
|
14510
|
-
|
|
14510
|
+
g,
|
|
14511
14511
|
Math.min(h, C)
|
|
14512
14512
|
);
|
|
14513
14513
|
e({
|
|
@@ -14531,8 +14531,8 @@ const Zc = (e, t, n = {}) => {
|
|
|
14531
14531
|
});
|
|
14532
14532
|
},
|
|
14533
14533
|
autoSizeAllColumns: () => {
|
|
14534
|
-
const d = (
|
|
14535
|
-
switch (
|
|
14534
|
+
const d = (g) => {
|
|
14535
|
+
switch (g) {
|
|
14536
14536
|
case "date":
|
|
14537
14537
|
return 120;
|
|
14538
14538
|
// Typical date width
|
|
@@ -14551,17 +14551,17 @@ const Zc = (e, t, n = {}) => {
|
|
|
14551
14551
|
};
|
|
14552
14552
|
let u = 0;
|
|
14553
14553
|
if (a && a.current) {
|
|
14554
|
-
const
|
|
14555
|
-
if (
|
|
14556
|
-
u =
|
|
14557
|
-
const C = window.getComputedStyle(
|
|
14554
|
+
const g = a.current.querySelector(".ia-table-table-container") || a.current.closest(".ia-table-table-container");
|
|
14555
|
+
if (g) {
|
|
14556
|
+
u = g.clientWidth;
|
|
14557
|
+
const C = window.getComputedStyle(g), w = parseInt(C.paddingLeft, 10) || 0, b = parseInt(C.paddingRight, 10) || 0, v = parseInt(C.borderLeftWidth, 10) || 0, N = parseInt(C.borderRightWidth, 10) || 0;
|
|
14558
14558
|
u -= w + b + v + N;
|
|
14559
14559
|
}
|
|
14560
14560
|
}
|
|
14561
14561
|
if (u <= 0) {
|
|
14562
|
-
const
|
|
14563
|
-
if (
|
|
14564
|
-
const C =
|
|
14562
|
+
const g = document.getElementById(i);
|
|
14563
|
+
if (g) {
|
|
14564
|
+
const C = g.querySelector(
|
|
14565
14565
|
".ia-table-table-container"
|
|
14566
14566
|
);
|
|
14567
14567
|
if (C) {
|
|
@@ -14572,18 +14572,18 @@ const Zc = (e, t, n = {}) => {
|
|
|
14572
14572
|
}
|
|
14573
14573
|
}
|
|
14574
14574
|
u <= 0 && (u = s.reduce(
|
|
14575
|
-
(
|
|
14575
|
+
(g, C) => g + (C.width || 100),
|
|
14576
14576
|
0
|
|
14577
14577
|
));
|
|
14578
|
-
const h = {}, A = s.filter((
|
|
14579
|
-
let
|
|
14580
|
-
if (A.forEach((
|
|
14578
|
+
const h = {}, A = s.filter((g) => !g.hidden);
|
|
14579
|
+
let p = 0;
|
|
14580
|
+
if (A.forEach((g) => {
|
|
14581
14581
|
var M, m;
|
|
14582
|
-
const C =
|
|
14582
|
+
const C = g.type || "string";
|
|
14583
14583
|
let w = d(C);
|
|
14584
|
-
const b =
|
|
14585
|
-
let N = gi(
|
|
14586
|
-
b ? (M =
|
|
14584
|
+
const b = g.cellRenderer !== void 0, v = ne(g);
|
|
14585
|
+
let N = gi(g, s);
|
|
14586
|
+
b ? (M = g.cellClassName) != null && M.includes("action") || v != null && v.includes("action") ? N = Math.max(N, 120) : (m = g.cellClassName) != null && m.includes("status") || v != null && v.includes("status") ? N = Math.max(N, 100) : N = Math.max(N, w) : n.slice(0, 100).forEach((I) => {
|
|
14587
14587
|
try {
|
|
14588
14588
|
let x = I[v];
|
|
14589
14589
|
if (x == null)
|
|
@@ -14601,21 +14601,21 @@ const Zc = (e, t, n = {}) => {
|
|
|
14601
14601
|
console.log("error", x);
|
|
14602
14602
|
}
|
|
14603
14603
|
});
|
|
14604
|
-
const P =
|
|
14604
|
+
const P = g.minWidth || (r == null ? void 0 : r.minWidth), z = g.maxWidth || 500, T = Math.max(
|
|
14605
14605
|
P,
|
|
14606
14606
|
Math.min(N, z)
|
|
14607
14607
|
);
|
|
14608
|
-
h[v] = T,
|
|
14608
|
+
h[v] = T, p += T;
|
|
14609
14609
|
}), u > 0) {
|
|
14610
|
-
const
|
|
14611
|
-
if (
|
|
14612
|
-
const w =
|
|
14610
|
+
const g = u - p;
|
|
14611
|
+
if (g > 0) {
|
|
14612
|
+
const w = g / A.length;
|
|
14613
14613
|
A.forEach((b) => {
|
|
14614
14614
|
const v = ne(b), N = h[v];
|
|
14615
14615
|
h[v] = N + w;
|
|
14616
14616
|
});
|
|
14617
|
-
} else if (
|
|
14618
|
-
const w = Math.abs(
|
|
14617
|
+
} else if (g < 0 && Math.abs(g) < 20) {
|
|
14618
|
+
const w = Math.abs(g) / A.length;
|
|
14619
14619
|
A.forEach((b) => {
|
|
14620
14620
|
const v = ne(b), N = h[v], P = b.minWidth || (r == null ? void 0 : r.minWidth);
|
|
14621
14621
|
h[v] = Math.max(
|
|
@@ -14699,7 +14699,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
14699
14699
|
triggerRef: i,
|
|
14700
14700
|
smartGridMenuOptions: s
|
|
14701
14701
|
}) => {
|
|
14702
|
-
const o = ce(null), l = ce(null), c = ce(null), [d, u] = ie({ top: 0, left: 0 }), [h, A] = ie({ top: 0, left: 0 }), [
|
|
14702
|
+
const o = ce(null), l = ce(null), c = ce(null), [d, u] = ie({ top: 0, left: 0 }), [h, A] = ie({ top: 0, left: 0 }), [p, g] = ie(!1), [C, w] = ie(null), [b, v] = ie(!1), {
|
|
14703
14703
|
sortColumnMenu: N,
|
|
14704
14704
|
freezeColumnMenu: P,
|
|
14705
14705
|
autoWithColumMenu: z,
|
|
@@ -14720,11 +14720,11 @@ const Zc = (e, t, n = {}) => {
|
|
|
14720
14720
|
V.stopPropagation(), e.is_frozen || e.pinned === "left" ? D(e) : H(e), n();
|
|
14721
14721
|
}, O = (V, Z) => {
|
|
14722
14722
|
if (V !== "sort" && V !== "width") {
|
|
14723
|
-
|
|
14723
|
+
g(!1), v(!1), w(null);
|
|
14724
14724
|
return;
|
|
14725
14725
|
}
|
|
14726
14726
|
const Y = Z.currentTarget.getBoundingClientRect();
|
|
14727
|
-
A(S(Y)), w(Z.currentTarget), V === "sort" && (
|
|
14727
|
+
A(S(Y)), w(Z.currentTarget), V === "sort" && (g(!0), v(!1)), V === "width" && (v(!0), g(!1));
|
|
14728
14728
|
}, k = () => {
|
|
14729
14729
|
if (t && i && i.current) {
|
|
14730
14730
|
const V = () => {
|
|
@@ -14758,7 +14758,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
14758
14758
|
}
|
|
14759
14759
|
};
|
|
14760
14760
|
se(() => {
|
|
14761
|
-
k(), t || (
|
|
14761
|
+
k(), t || (g(!1), v(!1), w(null));
|
|
14762
14762
|
}, [t, i]);
|
|
14763
14763
|
const S = (V) => {
|
|
14764
14764
|
const Z = window.innerWidth, Y = 180, ae = V.right + _r + Y > Z ? V.left - Y - _r * 3 : V.right + _r;
|
|
@@ -14776,19 +14776,19 @@ const Zc = (e, t, n = {}) => {
|
|
|
14776
14776
|
return t && window.addEventListener("scroll", V, !0), () => {
|
|
14777
14777
|
window.removeEventListener("scroll", V, !0);
|
|
14778
14778
|
};
|
|
14779
|
-
}, [t,
|
|
14779
|
+
}, [t, p, b]);
|
|
14780
14780
|
const L = (V) => {
|
|
14781
14781
|
if (V.stopPropagation(), V.currentTarget) {
|
|
14782
14782
|
const Z = V.currentTarget.getBoundingClientRect();
|
|
14783
14783
|
A(S(Z)), w(V.currentTarget);
|
|
14784
14784
|
}
|
|
14785
|
-
|
|
14785
|
+
g((Z) => !Z), v(!1);
|
|
14786
14786
|
}, y = (V) => {
|
|
14787
14787
|
if (V.stopPropagation(), V.currentTarget) {
|
|
14788
14788
|
const Z = V.currentTarget.getBoundingClientRect();
|
|
14789
14789
|
A(S(Z)), w(V.currentTarget);
|
|
14790
14790
|
}
|
|
14791
|
-
v((Z) => !Z),
|
|
14791
|
+
v((Z) => !Z), g(!1);
|
|
14792
14792
|
}, R = (V, Z) => {
|
|
14793
14793
|
I && I({
|
|
14794
14794
|
type: x.EXPAND_COLLAPSE_ALL_COLUMNS,
|
|
@@ -14804,7 +14804,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
14804
14804
|
if ((ae = i == null ? void 0 : i.current) != null && ae.contains(Z.target))
|
|
14805
14805
|
return;
|
|
14806
14806
|
const Y = l.current && l.current.contains(Z.target), $ = c.current && c.current.contains(Z.target);
|
|
14807
|
-
o.current && !o.current.contains(Z.target) && !Y && !$ && (n(),
|
|
14807
|
+
o.current && !o.current.contains(Z.target) && !Y && !$ && (n(), g(!1), v(!1), w(null));
|
|
14808
14808
|
};
|
|
14809
14809
|
return document.addEventListener("mousedown", V), () => {
|
|
14810
14810
|
document.removeEventListener("mousedown", V);
|
|
@@ -14815,11 +14815,11 @@ const Zc = (e, t, n = {}) => {
|
|
|
14815
14815
|
var Y, $;
|
|
14816
14816
|
const Z = V.relatedTarget;
|
|
14817
14817
|
(Y = l.current) != null && Y.contains(Z) || ($ = c.current) != null && $.contains(Z) || (j = setTimeout(() => {
|
|
14818
|
-
|
|
14818
|
+
g(!1), v(!1), w(null);
|
|
14819
14819
|
}, 100));
|
|
14820
14820
|
};
|
|
14821
14821
|
if (!t) return null;
|
|
14822
|
-
const B = () =>
|
|
14822
|
+
const B = () => p ? Yt(
|
|
14823
14823
|
/* @__PURE__ */ f(
|
|
14824
14824
|
"div",
|
|
14825
14825
|
{
|
|
@@ -14830,7 +14830,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
14830
14830
|
left: `${h.left}px`
|
|
14831
14831
|
},
|
|
14832
14832
|
onMouseLeave: () => {
|
|
14833
|
-
|
|
14833
|
+
g(!1), w(null);
|
|
14834
14834
|
},
|
|
14835
14835
|
children: /* @__PURE__ */ f(
|
|
14836
14836
|
ws,
|
|
@@ -14898,7 +14898,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
14898
14898
|
e.isSortable && N && /* @__PURE__ */ te(
|
|
14899
14899
|
"div",
|
|
14900
14900
|
{
|
|
14901
|
-
className: `menu-item sort-option ${
|
|
14901
|
+
className: `menu-item sort-option ${p ? "active" : ""}`,
|
|
14902
14902
|
onClick: L,
|
|
14903
14903
|
onMouseEnter: (V) => O("sort", V),
|
|
14904
14904
|
children: [
|
|
@@ -15030,8 +15030,8 @@ const Zc = (e, t, n = {}) => {
|
|
|
15030
15030
|
totalFinalHeight: u,
|
|
15031
15031
|
isIntegerType: h,
|
|
15032
15032
|
currentRowHeight: A,
|
|
15033
|
-
innerHeaderComponent:
|
|
15034
|
-
customHeaderProps:
|
|
15033
|
+
innerHeaderComponent: p,
|
|
15034
|
+
customHeaderProps: g
|
|
15035
15035
|
}) => {
|
|
15036
15036
|
const { hasChildren: C, field: w, headerName: b, autoHeight: v } = r, N = t.column === w, P = w === t.column, z = u && u > 40 ? u / 20 : v && A ? A.maxLineCount : 1, T = P ? Ai[t.order] : Ai.null, M = hc(
|
|
15037
15037
|
P ? t.order : Dt.NONE
|
|
@@ -15065,7 +15065,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
15065
15065
|
maxWidth: "100%",
|
|
15066
15066
|
display: "inline-block"
|
|
15067
15067
|
},
|
|
15068
|
-
children: typeof
|
|
15068
|
+
children: typeof p == "function" ? p(g) : b
|
|
15069
15069
|
}
|
|
15070
15070
|
),
|
|
15071
15071
|
l && /* @__PURE__ */ f(
|
|
@@ -15161,7 +15161,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
15161
15161
|
api: E.api,
|
|
15162
15162
|
columnFilters: E.columnFilters
|
|
15163
15163
|
}))
|
|
15164
|
-
), { advanceSearchEnabled: d, field: u } = e, h = ce(null), A = ce(),
|
|
15164
|
+
), { advanceSearchEnabled: d, field: u } = e, h = ce(null), A = ce(), p = ce(""), g = gc(e);
|
|
15165
15165
|
se(() => {
|
|
15166
15166
|
var W;
|
|
15167
15167
|
if (h.current) return;
|
|
@@ -15171,21 +15171,21 @@ const Zc = (e, t, n = {}) => {
|
|
|
15171
15171
|
E && x ? I = gs(
|
|
15172
15172
|
x.search_type,
|
|
15173
15173
|
x
|
|
15174
|
-
) : x && (I = x.pattern || ""), r(I),
|
|
15174
|
+
) : x && (I = x.pattern || ""), r(I), p.current = I;
|
|
15175
15175
|
}, [c, u, e.type, r]), se(() => {
|
|
15176
|
-
if (!(
|
|
15176
|
+
if (!(g || i.current)) {
|
|
15177
15177
|
if (!t) {
|
|
15178
15178
|
A.current && (clearTimeout(A.current), A.current = null);
|
|
15179
15179
|
return;
|
|
15180
15180
|
}
|
|
15181
15181
|
return A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
15182
|
-
n !==
|
|
15182
|
+
n !== p.current && ii(
|
|
15183
15183
|
l,
|
|
15184
15184
|
n,
|
|
15185
15185
|
u,
|
|
15186
15186
|
e.type,
|
|
15187
15187
|
s,
|
|
15188
|
-
|
|
15188
|
+
p
|
|
15189
15189
|
);
|
|
15190
15190
|
}, 300), () => {
|
|
15191
15191
|
A.current && (clearTimeout(A.current), A.current = null);
|
|
@@ -15198,7 +15198,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
15198
15198
|
u,
|
|
15199
15199
|
s,
|
|
15200
15200
|
o,
|
|
15201
|
-
|
|
15201
|
+
g,
|
|
15202
15202
|
e.type
|
|
15203
15203
|
]);
|
|
15204
15204
|
const C = de(
|
|
@@ -15209,12 +15209,12 @@ const Zc = (e, t, n = {}) => {
|
|
|
15209
15209
|
u,
|
|
15210
15210
|
e.type,
|
|
15211
15211
|
s,
|
|
15212
|
-
|
|
15212
|
+
p
|
|
15213
15213
|
);
|
|
15214
15214
|
},
|
|
15215
15215
|
[l, u, s, e.type, r]
|
|
15216
15216
|
);
|
|
15217
|
-
return /* @__PURE__ */ f(At, { children:
|
|
15217
|
+
return /* @__PURE__ */ f(At, { children: g ? /* @__PURE__ */ f(
|
|
15218
15218
|
Lr,
|
|
15219
15219
|
{
|
|
15220
15220
|
value: n || ((b = (w = c[u]) == null ? void 0 : w[0]) == null ? void 0 : b.pattern) || "",
|
|
@@ -15288,8 +15288,8 @@ const Zc = (e, t, n = {}) => {
|
|
|
15288
15288
|
}) => {
|
|
15289
15289
|
var Le;
|
|
15290
15290
|
const c = ce(null), d = ce(null), u = ce(null), { dispatch: h, ACTION_TYPES: A } = pt(), {
|
|
15291
|
-
sortState:
|
|
15292
|
-
columnFilters:
|
|
15291
|
+
sortState: p,
|
|
15292
|
+
columnFilters: g,
|
|
15293
15293
|
frozenColumns: C,
|
|
15294
15294
|
columnMap: w,
|
|
15295
15295
|
smartGridMenuOptions: b,
|
|
@@ -15329,7 +15329,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
15329
15329
|
autoHeight: U = !1,
|
|
15330
15330
|
wrapHeaderText: O = !1,
|
|
15331
15331
|
headerComponent: k = null
|
|
15332
|
-
} = e, S = k || P, L = ce(null), y = ce(!1), [R, _] = ie(!1), [j, G] = ie(!1), [B, J] = ie(""), [Q, X] = ie(!1), V =
|
|
15332
|
+
} = e, S = k || P, L = ce(null), y = ce(!1), [R, _] = ie(!1), [j, G] = ie(!1), [B, J] = ie(""), [Q, X] = ie(!1), V = g[E] && g[E].length > 0, Z = W === !0, { isLeftPinned: Y, isRightPinned: $, pinnedPosition: ae, rightPinnedPosition: fe } = Re(
|
|
15333
15333
|
() => fc({
|
|
15334
15334
|
column: e,
|
|
15335
15335
|
isFrozen: q,
|
|
@@ -15463,7 +15463,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
15463
15463
|
column: e,
|
|
15464
15464
|
displayName: I,
|
|
15465
15465
|
enableSorting: e.isSortable || e.is_sortable,
|
|
15466
|
-
sortState:
|
|
15466
|
+
sortState: p,
|
|
15467
15467
|
onSort: (me, Pe) => {
|
|
15468
15468
|
Vr(me, Pe, h);
|
|
15469
15469
|
},
|
|
@@ -15484,7 +15484,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
15484
15484
|
h,
|
|
15485
15485
|
W,
|
|
15486
15486
|
I,
|
|
15487
|
-
|
|
15487
|
+
p,
|
|
15488
15488
|
Be,
|
|
15489
15489
|
pe,
|
|
15490
15490
|
V,
|
|
@@ -15555,7 +15555,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
15555
15555
|
sd,
|
|
15556
15556
|
{
|
|
15557
15557
|
isAutoHeightColumn: U,
|
|
15558
|
-
sortState:
|
|
15558
|
+
sortState: p,
|
|
15559
15559
|
onSort: (me, Pe) => {
|
|
15560
15560
|
Vr(me, Pe, h);
|
|
15561
15561
|
},
|
|
@@ -15634,10 +15634,10 @@ const Zc = (e, t, n = {}) => {
|
|
|
15634
15634
|
...e,
|
|
15635
15635
|
originalWidth: e.originalWidth || e.defaultWidth || 100,
|
|
15636
15636
|
getIsSorted: () => {
|
|
15637
|
-
if (
|
|
15638
|
-
if (
|
|
15637
|
+
if (p.column === E) {
|
|
15638
|
+
if (p.order === Dt.ASC)
|
|
15639
15639
|
return "asc";
|
|
15640
|
-
if (
|
|
15640
|
+
if (p.order === Dt.DESC)
|
|
15641
15641
|
return "desc";
|
|
15642
15642
|
}
|
|
15643
15643
|
return !1;
|
|
@@ -15708,8 +15708,8 @@ const Zc = (e, t, n = {}) => {
|
|
|
15708
15708
|
const [e, t] = ie(!1), [n, r] = ie(null), [a, i] = ie(/* @__PURE__ */ new Set()), [s, o] = ie({ top: 0, left: 0 }), l = ce(null), c = ce(null), { dispatch: d, ACTION_TYPES: u } = pt(), {
|
|
15709
15709
|
selectedRows: h,
|
|
15710
15710
|
filteredData: A,
|
|
15711
|
-
pagination:
|
|
15712
|
-
uniqueIdField:
|
|
15711
|
+
pagination: p,
|
|
15712
|
+
uniqueIdField: g,
|
|
15713
15713
|
prevAction: C = "",
|
|
15714
15714
|
checkConfiguration: w = [],
|
|
15715
15715
|
isSelectAllRecords: b = !1,
|
|
@@ -15742,18 +15742,18 @@ const Zc = (e, t, n = {}) => {
|
|
|
15742
15742
|
document.removeEventListener("mousedown", O);
|
|
15743
15743
|
};
|
|
15744
15744
|
}, []);
|
|
15745
|
-
const M =
|
|
15746
|
-
const O =
|
|
15745
|
+
const M = p.currentPage || 1, m = de(() => {
|
|
15746
|
+
const O = p.pageSize || A.length, S = ((p.currentPage || 1) - 1) * O;
|
|
15747
15747
|
let L = S + O;
|
|
15748
15748
|
const y = Object.values(N).reduce(
|
|
15749
15749
|
(_, j) => _ + j.childRowsCount,
|
|
15750
15750
|
0
|
|
15751
15751
|
);
|
|
15752
|
-
return y && (L += y), P && (L = A.length), A.slice(S, L).filter((_) => !(_ != null && _.__parentPath || _ != null && _.isChildGroup)).map((_) => _[
|
|
15752
|
+
return y && (L += y), P && (L = A.length), A.slice(S, L).filter((_) => !(_ != null && _.__parentPath || _ != null && _.isChildGroup)).map((_) => _[g]);
|
|
15753
15753
|
}, [
|
|
15754
15754
|
A,
|
|
15755
|
-
g,
|
|
15756
15755
|
p,
|
|
15756
|
+
g,
|
|
15757
15757
|
N,
|
|
15758
15758
|
P
|
|
15759
15759
|
]), E = de(() => {
|
|
@@ -15846,7 +15846,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
15846
15846
|
api: v,
|
|
15847
15847
|
p_checkAll: !(b || n === "all"),
|
|
15848
15848
|
checkConfiguration: w,
|
|
15849
|
-
rowIds: A.map((O) => O[
|
|
15849
|
+
rowIds: A.map((O) => O[g]),
|
|
15850
15850
|
dispatch: d
|
|
15851
15851
|
}), t(!1);
|
|
15852
15852
|
}, [
|
|
@@ -15855,7 +15855,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
15855
15855
|
d,
|
|
15856
15856
|
u,
|
|
15857
15857
|
A,
|
|
15858
|
-
|
|
15858
|
+
g,
|
|
15859
15859
|
w
|
|
15860
15860
|
]), D = (O) => {
|
|
15861
15861
|
O.stopPropagation(), O.preventDefault(), T ? x(O) : t(!e);
|
|
@@ -15937,11 +15937,11 @@ const Zc = (e, t, n = {}) => {
|
|
|
15937
15937
|
ShowFullText: c,
|
|
15938
15938
|
virtualizedStartCololumnIndex: d
|
|
15939
15939
|
}) => {
|
|
15940
|
-
const u = Fe((
|
|
15941
|
-
(
|
|
15940
|
+
const u = Fe((g) => g.isSingleSelect), h = de(
|
|
15941
|
+
(g, C) => {
|
|
15942
15942
|
C && i({
|
|
15943
15943
|
type: ee.TOGGLE_COLUMN_GROUP,
|
|
15944
|
-
payload: { field:
|
|
15944
|
+
payload: { field: g }
|
|
15945
15945
|
});
|
|
15946
15946
|
},
|
|
15947
15947
|
[i]
|
|
@@ -15949,12 +15949,12 @@ const Zc = (e, t, n = {}) => {
|
|
|
15949
15949
|
if (n.length === 0 && !e && !t)
|
|
15950
15950
|
return null;
|
|
15951
15951
|
if (s.length <= 1) {
|
|
15952
|
-
const
|
|
15952
|
+
const g = l.left_pinned_0, C = l.right_pinned_0;
|
|
15953
15953
|
let b = l.normal_0 || {
|
|
15954
15954
|
maxHeight: 21,
|
|
15955
15955
|
maxLineCount: 1
|
|
15956
15956
|
};
|
|
15957
|
-
|
|
15957
|
+
g && (!b || g.maxHeight > b.maxHeight) && (b = g), C && (!b || C.maxHeight > b.maxHeight) && (b = C);
|
|
15958
15958
|
const N = { height: `${b.maxHeight > 21 ? b.maxHeight : b.maxHeight + 19}px` };
|
|
15959
15959
|
return /* @__PURE__ */ te("div", { className: "ia-table-header-row", style: N, children: [
|
|
15960
15960
|
r && e !== !1 && !t && (u ? /* @__PURE__ */ f("div", { className: "ia-table-selection-header-cell" }) : /* @__PURE__ */ f(Ci, {})),
|
|
@@ -15975,13 +15975,13 @@ const Zc = (e, t, n = {}) => {
|
|
|
15975
15975
|
] });
|
|
15976
15976
|
}
|
|
15977
15977
|
let A = 0;
|
|
15978
|
-
const
|
|
15979
|
-
return /* @__PURE__ */ f("div", { className: "ia-table-multi-row-header", children: a.map((
|
|
15978
|
+
const p = [];
|
|
15979
|
+
return /* @__PURE__ */ f("div", { className: "ia-table-multi-row-header", children: a.map((g, C) => {
|
|
15980
15980
|
const w = C === a.length - 1, b = ro(
|
|
15981
15981
|
l,
|
|
15982
15982
|
C
|
|
15983
15983
|
);
|
|
15984
|
-
A += b.maxHeight,
|
|
15984
|
+
A += b.maxHeight, p.push(b.maxHeight);
|
|
15985
15985
|
const v = s.length * 19 + A, N = -(A + s.length * 19 - b.maxHeight - 19) || 0, z = { height: `${b.maxHeight > 21 ? b.maxHeight : b.maxHeight + 19}px` };
|
|
15986
15986
|
return /* @__PURE__ */ te(
|
|
15987
15987
|
"div",
|
|
@@ -16001,7 +16001,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
16001
16001
|
children: w ? u && r && e ? /* @__PURE__ */ f("div", { className: "ia-table-selection-header-cell" }) : r && e ? /* @__PURE__ */ f(Ci, {}) : null : /* @__PURE__ */ f("div", { style: { width: "100%", height: "100%" } })
|
|
16002
16002
|
}
|
|
16003
16003
|
),
|
|
16004
|
-
|
|
16004
|
+
g.map((T, M) => {
|
|
16005
16005
|
if (St(T) || T.emptyCell)
|
|
16006
16006
|
return null;
|
|
16007
16007
|
const m = T.children && T.children.length > 0, E = m && !T.notApplyGrouping && T.children.some(
|
|
@@ -16014,7 +16014,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
16014
16014
|
return T.isLeaf && (x = no(
|
|
16015
16015
|
a.length - 1,
|
|
16016
16016
|
T,
|
|
16017
|
-
|
|
16017
|
+
p
|
|
16018
16018
|
)), /* @__PURE__ */ f(
|
|
16019
16019
|
mi,
|
|
16020
16020
|
{
|
|
@@ -16054,9 +16054,9 @@ const Zc = (e, t, n = {}) => {
|
|
|
16054
16054
|
return se(() => {
|
|
16055
16055
|
const u = {};
|
|
16056
16056
|
i.forEach((h, A) => {
|
|
16057
|
-
const
|
|
16057
|
+
const p = h.filter((b) => b.autoHeight), { maxLineCount: g, maxHeight: C } = Jc(p), w = `${t ? `left_pinned_${A}` : n ? `right_pinned_${A}` : `normal_${A}`}`;
|
|
16058
16058
|
u[w] || (u[w] = {
|
|
16059
|
-
maxLineCount:
|
|
16059
|
+
maxLineCount: g,
|
|
16060
16060
|
maxHeight: C
|
|
16061
16061
|
});
|
|
16062
16062
|
}), c({
|
|
@@ -16094,8 +16094,8 @@ const Zc = (e, t, n = {}) => {
|
|
|
16094
16094
|
showHeader: u,
|
|
16095
16095
|
headerHeight: h,
|
|
16096
16096
|
headerScrollContainerRef: A,
|
|
16097
|
-
handleHeaderScroll:
|
|
16098
|
-
headerRowRef:
|
|
16097
|
+
handleHeaderScroll: p,
|
|
16098
|
+
headerRowRef: g,
|
|
16099
16099
|
totalNormalColumnWidth: C,
|
|
16100
16100
|
selectable: w,
|
|
16101
16101
|
filteredColumns: b,
|
|
@@ -16189,7 +16189,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
16189
16189
|
overflowY: "hidden",
|
|
16190
16190
|
width: "100%"
|
|
16191
16191
|
},
|
|
16192
|
-
onScroll:
|
|
16192
|
+
onScroll: p
|
|
16193
16193
|
} : {
|
|
16194
16194
|
style: {
|
|
16195
16195
|
flexShrink: 0
|
|
@@ -16198,7 +16198,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
16198
16198
|
children: /* @__PURE__ */ f(
|
|
16199
16199
|
"div",
|
|
16200
16200
|
{
|
|
16201
|
-
ref:
|
|
16201
|
+
ref: g,
|
|
16202
16202
|
...ae ? {
|
|
16203
16203
|
style: {
|
|
16204
16204
|
width: n || r ? "100%" : `${C}px`
|
|
@@ -16342,16 +16342,16 @@ const Zc = (e, t, n = {}) => {
|
|
|
16342
16342
|
}, yd = ({ scrollContainerRef: e, tableInstance: t }) => {
|
|
16343
16343
|
se(() => {
|
|
16344
16344
|
const n = (i) => {
|
|
16345
|
-
var u, h, A,
|
|
16346
|
-
const s = (h = (u = i.target) == null ? void 0 : u.closest) == null ? void 0 : h.call(u, ".ia-table-body-row"), o = (A = s == null ? void 0 : s.getAttribute) == null ? void 0 : A.call(s, "data-id"), l = (
|
|
16345
|
+
var u, h, A, p;
|
|
16346
|
+
const s = (h = (u = i.target) == null ? void 0 : u.closest) == null ? void 0 : h.call(u, ".ia-table-body-row"), o = (A = s == null ? void 0 : s.getAttribute) == null ? void 0 : A.call(s, "data-id"), l = (p = s == null ? void 0 : s.getAttribute) == null ? void 0 : p.call(s, "data-flattened-row-id");
|
|
16347
16347
|
if (!o) return;
|
|
16348
16348
|
t.current.querySelector(
|
|
16349
16349
|
".ia-table-content-wrapper"
|
|
16350
16350
|
).querySelectorAll(
|
|
16351
16351
|
`.ia-table-body-row[data-id='${o}'],
|
|
16352
16352
|
.ia-table-body-row[data-flattened-row-id='${l}']`
|
|
16353
|
-
).forEach((
|
|
16354
|
-
|
|
16353
|
+
).forEach((g) => {
|
|
16354
|
+
g.classList.add("ia-table-row-hovered");
|
|
16355
16355
|
});
|
|
16356
16356
|
}, r = (i) => {
|
|
16357
16357
|
var d, u, h, A;
|
|
@@ -16359,8 +16359,8 @@ const Zc = (e, t, n = {}) => {
|
|
|
16359
16359
|
if (!o) return;
|
|
16360
16360
|
t.current.querySelectorAll(
|
|
16361
16361
|
`.ia-table-body-row[data-id='${o}'], .ia-table-body-row[data-flattened-row-id='${l}']`
|
|
16362
|
-
).forEach((
|
|
16363
|
-
|
|
16362
|
+
).forEach((p) => {
|
|
16363
|
+
p.classList.remove("ia-table-row-hovered");
|
|
16364
16364
|
});
|
|
16365
16365
|
}, a = e.current;
|
|
16366
16366
|
if (a)
|
|
@@ -16383,8 +16383,8 @@ const Zc = (e, t, n = {}) => {
|
|
|
16383
16383
|
alignedGrids: u = [],
|
|
16384
16384
|
masterDetail: h = !1,
|
|
16385
16385
|
onRowClick: A,
|
|
16386
|
-
adjustTableHeightServerSide:
|
|
16387
|
-
paginateOriginalRowsOnly:
|
|
16386
|
+
adjustTableHeightServerSide: p,
|
|
16387
|
+
paginateOriginalRowsOnly: g,
|
|
16388
16388
|
tableId: C,
|
|
16389
16389
|
height: w,
|
|
16390
16390
|
ShowFullText: b,
|
|
@@ -16553,8 +16553,8 @@ const Zc = (e, t, n = {}) => {
|
|
|
16553
16553
|
bodyScrollContainer: k,
|
|
16554
16554
|
height: w,
|
|
16555
16555
|
handleHorizontalNormalScroll: _e,
|
|
16556
|
-
paginateOriginalRowsOnly:
|
|
16557
|
-
adjustTableHeightServerSide:
|
|
16556
|
+
paginateOriginalRowsOnly: g,
|
|
16557
|
+
adjustTableHeightServerSide: p,
|
|
16558
16558
|
masterDetail: h,
|
|
16559
16559
|
pinnedBottomScrollContainerRef: Z,
|
|
16560
16560
|
handlePinnedBottomScroll: je,
|
|
@@ -16597,7 +16597,7 @@ const Zc = (e, t, n = {}) => {
|
|
|
16597
16597
|
}, [e]), null), vd = ({
|
|
16598
16598
|
cellRenderer: e = null
|
|
16599
16599
|
}) => {
|
|
16600
|
-
var a, i, s, o, l, c, d, u, h, A,
|
|
16600
|
+
var a, i, s, o, l, c, d, u, h, A, p;
|
|
16601
16601
|
if (!window.iaTableSelectedCell || !window.iaTableSelectedCell.target)
|
|
16602
16602
|
return;
|
|
16603
16603
|
const t = e || window.iaTableSelectedCell.target.getAttribute("data-renderer"), n = window.iaTableSelectedCell.target || {}, r = (a = window.iaTableSelectedCell) == null ? void 0 : a.tableId;
|
|
@@ -16613,19 +16613,19 @@ const Zc = (e, t, n = {}) => {
|
|
|
16613
16613
|
r && window.iaTablePortalOpen, window.iaTablePortalOpen[r] = !1, (h = (u = n.querySelector(".ia-checkbox-input")) == null ? void 0 : u.click) == null || h.call(u);
|
|
16614
16614
|
break;
|
|
16615
16615
|
case "smartGridToggleRenderer":
|
|
16616
|
-
r && window.iaTablePortalOpen, window.iaTablePortalOpen[r] = !1, (
|
|
16616
|
+
r && window.iaTablePortalOpen, window.iaTablePortalOpen[r] = !1, (p = (A = n.querySelector(".ia-switch")) == null ? void 0 : A.click) == null || p.call(A);
|
|
16617
16617
|
break;
|
|
16618
16618
|
case "smartGridDateTimeRenderer": {
|
|
16619
|
-
const
|
|
16620
|
-
|
|
16619
|
+
const g = n.querySelector(".ia-table-datepicker-input");
|
|
16620
|
+
g && g.click();
|
|
16621
16621
|
break;
|
|
16622
16622
|
}
|
|
16623
16623
|
case "smartGridDateRangePickerRenderer": {
|
|
16624
|
-
const
|
|
16624
|
+
const g = n.querySelector(
|
|
16625
16625
|
".ia-table-daterangepicker-start-input"
|
|
16626
16626
|
);
|
|
16627
|
-
if (
|
|
16628
|
-
|
|
16627
|
+
if (g)
|
|
16628
|
+
g.click();
|
|
16629
16629
|
else {
|
|
16630
16630
|
const C = n.querySelector(
|
|
16631
16631
|
".ia-table-daterangepicker-end-input"
|
|
@@ -16725,7 +16725,7 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
16725
16725
|
if (!window.iaTableKeyHandlerInitialized) {
|
|
16726
16726
|
window.iaTableKeyHandlerInitialized = !0;
|
|
16727
16727
|
const r = (s) => {
|
|
16728
|
-
var l, c, d, u, h, A,
|
|
16728
|
+
var l, c, d, u, h, A, p, g;
|
|
16729
16729
|
if ((l = t == null ? void 0 : t.current) != null && l.customTabFunction) {
|
|
16730
16730
|
t.current.customTabFunction(
|
|
16731
16731
|
s,
|
|
@@ -16761,8 +16761,8 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
16761
16761
|
}
|
|
16762
16762
|
if (s.key === "Enter") {
|
|
16763
16763
|
s.preventDefault();
|
|
16764
|
-
const C = (
|
|
16765
|
-
((
|
|
16764
|
+
const C = (p = window.iaTableSelectedCell) == null ? void 0 : p.target;
|
|
16765
|
+
((g = C == null ? void 0 : C.classList) == null ? void 0 : g.contains(
|
|
16766
16766
|
"ia-table-body-cell--disabled"
|
|
16767
16767
|
)) || vd({});
|
|
16768
16768
|
return;
|
|
@@ -16840,8 +16840,8 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
16840
16840
|
}) => {
|
|
16841
16841
|
const {
|
|
16842
16842
|
totalFrozenWidth: A,
|
|
16843
|
-
rightPinnedWidth:
|
|
16844
|
-
tableInstance:
|
|
16843
|
+
rightPinnedWidth: p,
|
|
16844
|
+
tableInstance: g,
|
|
16845
16845
|
api: C,
|
|
16846
16846
|
callBackRef: w,
|
|
16847
16847
|
selectable: b,
|
|
@@ -16891,8 +16891,8 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
16891
16891
|
});
|
|
16892
16892
|
};
|
|
16893
16893
|
}
|
|
16894
|
-
}, [a, i, T]), Sd({ tableInstance:
|
|
16895
|
-
const I = !!(b || A -
|
|
16894
|
+
}, [a, i, T]), Sd({ tableInstance: g, tableApi: C }), Rd({ tableInstance: g, callBackRef: w, api: C });
|
|
16895
|
+
const I = !!(b || A - p), x = !!p, W = !!(A - p);
|
|
16896
16896
|
return /* @__PURE__ */ te("div", { className: "ia-table-content-wrapper position-relative", children: [
|
|
16897
16897
|
I && /* @__PURE__ */ f(
|
|
16898
16898
|
Ur,
|
|
@@ -16991,13 +16991,13 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
16991
16991
|
normalScrollContainerRef: s
|
|
16992
16992
|
}) => {
|
|
16993
16993
|
const { detailRenderer: o, detailRowHeight: l, columns: c } = Fe(
|
|
16994
|
-
ze((
|
|
16995
|
-
detailRenderer:
|
|
16996
|
-
detailRowHeight:
|
|
16997
|
-
columns:
|
|
16994
|
+
ze((p) => ({
|
|
16995
|
+
detailRenderer: p.masterDetail.detailRenderer,
|
|
16996
|
+
detailRowHeight: p.masterDetail.detailRowHeight,
|
|
16997
|
+
columns: p.columns
|
|
16998
16998
|
}))
|
|
16999
16999
|
), d = () => {
|
|
17000
|
-
const
|
|
17000
|
+
const p = {
|
|
17001
17001
|
// padding: `${detailPadding}px`,
|
|
17002
17002
|
backgroundColor: "#f9f9f9",
|
|
17003
17003
|
borderBottom: "1px solid #e0e0e0",
|
|
@@ -17006,28 +17006,28 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
17006
17006
|
...n
|
|
17007
17007
|
};
|
|
17008
17008
|
return a ? {
|
|
17009
|
-
...
|
|
17009
|
+
...p,
|
|
17010
17010
|
width: "100%"
|
|
17011
17011
|
} : r === !0 ? !(c.filter(
|
|
17012
17012
|
(w) => w.is_frozen && !w.hidden
|
|
17013
17013
|
).length > 0) && !i ? { display: "none" } : {
|
|
17014
|
-
...
|
|
17014
|
+
...p,
|
|
17015
17015
|
padding: 0,
|
|
17016
17016
|
backgroundColor: "transparent",
|
|
17017
17017
|
borderRight: "1px solid #e0e0e0"
|
|
17018
17018
|
// Border to separate from normal columns
|
|
17019
17019
|
} : r === !1 ? {
|
|
17020
|
-
...
|
|
17020
|
+
...p,
|
|
17021
17021
|
width: "100%"
|
|
17022
17022
|
// Ensure it spans the full width of normal columns
|
|
17023
17023
|
} : {
|
|
17024
|
-
...
|
|
17024
|
+
...p,
|
|
17025
17025
|
width: "100%"
|
|
17026
17026
|
// Ensure it spans the full width
|
|
17027
17027
|
};
|
|
17028
|
-
}, u = ce(null), h = d(), A = de((
|
|
17029
|
-
const
|
|
17030
|
-
if (!u.current || !
|
|
17028
|
+
}, u = ce(null), h = d(), A = de((p) => {
|
|
17029
|
+
const g = Math.abs(p.deltaY) > Math.abs(p.deltaX);
|
|
17030
|
+
if (!u.current || !g) return;
|
|
17031
17031
|
const C = u.current.querySelector(
|
|
17032
17032
|
".ia-table-normal-scroll-container"
|
|
17033
17033
|
), w = C.querySelector(
|
|
@@ -17036,10 +17036,10 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
17036
17036
|
C.scrollTop + l - 40 == w.style.height.split("px")[0] ? s.current.scrollTop += 10 : C.scrollTop == 0 && (s.current.scrollTop -= 10);
|
|
17037
17037
|
}, []);
|
|
17038
17038
|
return se(() => {
|
|
17039
|
-
const
|
|
17040
|
-
if (
|
|
17041
|
-
return
|
|
17042
|
-
|
|
17039
|
+
const p = u.current;
|
|
17040
|
+
if (p)
|
|
17041
|
+
return p.addEventListener("wheel", A, { passive: !1 }), () => {
|
|
17042
|
+
p.removeEventListener("wheel", A, { passive: !1 });
|
|
17043
17043
|
};
|
|
17044
17044
|
}, [A]), r === !0 && !a ? /* @__PURE__ */ f(
|
|
17045
17045
|
"div",
|
|
@@ -17170,8 +17170,8 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
17170
17170
|
bottomLeftOptions: u = null,
|
|
17171
17171
|
bottomCenterOptions: h = null,
|
|
17172
17172
|
bottomRightOptions: A = null,
|
|
17173
|
-
additionalButtons:
|
|
17174
|
-
adjustTableHeightServerSide:
|
|
17173
|
+
additionalButtons: p = null,
|
|
17174
|
+
adjustTableHeightServerSide: g,
|
|
17175
17175
|
// Grid alignment props
|
|
17176
17176
|
tableId: C = null,
|
|
17177
17177
|
alignedGrids: w = [],
|
|
@@ -17230,7 +17230,7 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
17230
17230
|
downloadAsCSV: z,
|
|
17231
17231
|
downloadAsExcel: P,
|
|
17232
17232
|
copyToClipboard: T,
|
|
17233
|
-
additionalButtons:
|
|
17233
|
+
additionalButtons: p,
|
|
17234
17234
|
shouldRenderTable: I,
|
|
17235
17235
|
enableNestedTableCloseButton: D,
|
|
17236
17236
|
onCloseNestedTable: H,
|
|
@@ -17251,7 +17251,7 @@ const Rd = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
17251
17251
|
onRowClick: k,
|
|
17252
17252
|
expandable: O,
|
|
17253
17253
|
paginateOriginalRowsOnly: o,
|
|
17254
|
-
adjustTableHeightServerSide:
|
|
17254
|
+
adjustTableHeightServerSide: g,
|
|
17255
17255
|
tableId: C,
|
|
17256
17256
|
alignedGrids: w,
|
|
17257
17257
|
headerHeight: i,
|
|
@@ -17654,16 +17654,16 @@ const Tt = class Tt {
|
|
|
17654
17654
|
var o, l, c, d, u, h;
|
|
17655
17655
|
const r = Object.values(
|
|
17656
17656
|
(d = (c = (l = (o = this.params.context) == null ? void 0 : o.tableContextRef) == null ? void 0 : l.current) == null ? void 0 : c.state) == null ? void 0 : d.expandedChildRows
|
|
17657
|
-
).reduce((A,
|
|
17657
|
+
).reduce((A, p) => A + p.childRowsCount, 0), a = this.params.updatedPageSizeRef.current + r, i = Math.floor(t / a);
|
|
17658
17658
|
let s = this.blocks[i];
|
|
17659
17659
|
if (this.params.isPaginationMode && this.params.viewportRange) {
|
|
17660
|
-
let { startRow: A, endRow:
|
|
17661
|
-
const
|
|
17662
|
-
r && (
|
|
17663
|
-
const C = Math.floor(
|
|
17660
|
+
let { startRow: A, endRow: p } = this.params.viewportRange;
|
|
17661
|
+
const g = Math.floor(A / a);
|
|
17662
|
+
r && (p += r);
|
|
17663
|
+
const C = Math.floor(p / a);
|
|
17664
17664
|
if (s && s.getState() === We.STATE_LOADED)
|
|
17665
17665
|
return this.analytics.hits++, s.getRow(t);
|
|
17666
|
-
if (window && ((h = window[(u = this.params) == null ? void 0 : u.tableId]) != null && h._targetPage) && (i <
|
|
17666
|
+
if (window && ((h = window[(u = this.params) == null ? void 0 : u.tableId]) != null && h._targetPage) && (i < g || i > C) && n === !1)
|
|
17667
17667
|
return;
|
|
17668
17668
|
}
|
|
17669
17669
|
if (s) {
|
|
@@ -17674,8 +17674,8 @@ const Tt = class Tt {
|
|
|
17674
17674
|
if (this.analytics.misses++, n)
|
|
17675
17675
|
return;
|
|
17676
17676
|
if (this.params.isPaginationMode && this.params.viewportRange) {
|
|
17677
|
-
const { startRow: A, endRow:
|
|
17678
|
-
if (i <
|
|
17677
|
+
const { startRow: A, endRow: p } = this.params.viewportRange, g = Math.floor(A / a), C = Math.floor(p / a);
|
|
17678
|
+
if (i < g || i > C)
|
|
17679
17679
|
return;
|
|
17680
17680
|
}
|
|
17681
17681
|
s = this.createBlock(i);
|
|
@@ -17954,8 +17954,8 @@ const Tt = class Tt {
|
|
|
17954
17954
|
const b = this.rowCount, v = i.getStartRow() + this.params.updatedPageSizeRef.current / 2, N = s.getStartRow() + this.params.updatedPageSizeRef.current / 2, P = Math.abs(v - a), z = Math.abs(N - a);
|
|
17955
17955
|
h = Math.min(1, P / b), A = Math.min(1, z / b);
|
|
17956
17956
|
}
|
|
17957
|
-
const
|
|
17958
|
-
return u * 0.5 + A * 0.3 +
|
|
17957
|
+
const p = i.getState() === We.STATE_WAITING_TO_LOAD ? 1 : 0, g = s.getState() === We.STATE_WAITING_TO_LOAD ? 1 : 0, C = d * 0.5 + h * 0.3 + p * 0.2;
|
|
17958
|
+
return u * 0.5 + A * 0.3 + g * 0.2 - C;
|
|
17959
17959
|
});
|
|
17960
17960
|
}
|
|
17961
17961
|
/**
|
|
@@ -18816,42 +18816,42 @@ const Fd = (e, t) => {
|
|
|
18816
18816
|
u ? { min_val: s.min_val, max_val: s.max_val } : h,
|
|
18817
18817
|
d
|
|
18818
18818
|
);
|
|
18819
|
-
const
|
|
18820
|
-
if (
|
|
18819
|
+
const p = r[o];
|
|
18820
|
+
if (p == null || p === "")
|
|
18821
18821
|
return !1;
|
|
18822
18822
|
if (wt.includes(d)) {
|
|
18823
|
-
const
|
|
18823
|
+
const g = parseFloat(p);
|
|
18824
18824
|
switch (l) {
|
|
18825
18825
|
case "equals":
|
|
18826
|
-
return h = s.max_val,
|
|
18826
|
+
return h = s.max_val, g === parseFloat(h);
|
|
18827
18827
|
case "lessThan":
|
|
18828
|
-
return h = s.max_val,
|
|
18828
|
+
return h = s.max_val, g < parseFloat(h);
|
|
18829
18829
|
case "lessThanOrEqual":
|
|
18830
|
-
return h = s.max_val,
|
|
18830
|
+
return h = s.max_val, g <= parseFloat(h);
|
|
18831
18831
|
case "greaterThan":
|
|
18832
|
-
return h = s.min_val,
|
|
18832
|
+
return h = s.min_val, g > parseFloat(h);
|
|
18833
18833
|
case "greaterThanOrEqual":
|
|
18834
|
-
return h = s.min_val,
|
|
18834
|
+
return h = s.min_val, g >= parseFloat(h);
|
|
18835
18835
|
case "inRange": {
|
|
18836
18836
|
const C = s.min_val, w = s.max_val;
|
|
18837
|
-
return C !== void 0 && w !== void 0 ?
|
|
18837
|
+
return C !== void 0 && w !== void 0 ? g >= parseFloat(C) && g <= parseFloat(w) : !0;
|
|
18838
18838
|
}
|
|
18839
18839
|
default:
|
|
18840
18840
|
return !0;
|
|
18841
18841
|
}
|
|
18842
18842
|
} else {
|
|
18843
|
-
const
|
|
18843
|
+
const g = String(p).toLowerCase(), C = String(h || "").toLowerCase();
|
|
18844
18844
|
switch (l) {
|
|
18845
18845
|
case "contains":
|
|
18846
|
-
return
|
|
18846
|
+
return g.includes(C);
|
|
18847
18847
|
case "equals":
|
|
18848
|
-
return
|
|
18848
|
+
return g === C;
|
|
18849
18849
|
case "notEqual":
|
|
18850
|
-
return
|
|
18850
|
+
return g !== C;
|
|
18851
18851
|
case "startsWith":
|
|
18852
|
-
return
|
|
18852
|
+
return g.startsWith(C);
|
|
18853
18853
|
case "endsWith":
|
|
18854
|
-
return
|
|
18854
|
+
return g.endsWith(C);
|
|
18855
18855
|
default:
|
|
18856
18856
|
return !0;
|
|
18857
18857
|
}
|
|
@@ -19468,11 +19468,11 @@ class Qd {
|
|
|
19468
19468
|
for (let h = o; h <= l; h++) {
|
|
19469
19469
|
let A = await this.storage.getBlock(h);
|
|
19470
19470
|
if (!A) {
|
|
19471
|
-
const
|
|
19471
|
+
const p = h * s, g = Math.min(
|
|
19472
19472
|
(h + 1) * s,
|
|
19473
19473
|
this.dataSize
|
|
19474
19474
|
);
|
|
19475
|
-
A = this.params.data.slice(
|
|
19475
|
+
A = this.params.data.slice(p, g), await this.storage.setBlock(h, A);
|
|
19476
19476
|
}
|
|
19477
19477
|
c.push(...A);
|
|
19478
19478
|
}
|
|
@@ -19545,16 +19545,16 @@ class Qd {
|
|
|
19545
19545
|
if (!h || h === "") continue;
|
|
19546
19546
|
if (A == null)
|
|
19547
19547
|
return !1;
|
|
19548
|
-
const
|
|
19549
|
-
if (!
|
|
19548
|
+
const p = String(A).toLowerCase(), g = String(h).toLowerCase();
|
|
19549
|
+
if (!p.includes(g))
|
|
19550
19550
|
return !1;
|
|
19551
19551
|
}
|
|
19552
19552
|
return !0;
|
|
19553
19553
|
})), i) {
|
|
19554
19554
|
const d = i.column || i[0] && i[0].colId, u = i.order || i[0] && i[0].sort || "asc";
|
|
19555
19555
|
d && (o = [...o].sort((h, A) => {
|
|
19556
|
-
const
|
|
19557
|
-
return typeof
|
|
19556
|
+
const p = h[d], g = A[d];
|
|
19557
|
+
return typeof p == "string" && typeof g == "string" ? u === "asc" ? p.localeCompare(g) : g.localeCompare(p) : p === g ? 0 : p == null ? 1 : g == null ? -1 : u === "asc" ? p < g ? -1 : 1 : p > g ? -1 : 1;
|
|
19558
19558
|
}));
|
|
19559
19559
|
}
|
|
19560
19560
|
const l = o.length, c = o.slice(n, r);
|
|
@@ -19629,15 +19629,15 @@ class yi {
|
|
|
19629
19629
|
}
|
|
19630
19630
|
}
|
|
19631
19631
|
const h = { ...r.filterModel || {} };
|
|
19632
|
-
let A = null,
|
|
19632
|
+
let A = null, p = [], g = [];
|
|
19633
19633
|
if (h._search) {
|
|
19634
19634
|
const { range: b, search: v } = Hd(h._search);
|
|
19635
|
-
|
|
19635
|
+
p = b, g = v;
|
|
19636
19636
|
}
|
|
19637
19637
|
r.sortModel && (A = r.sortModel);
|
|
19638
19638
|
const C = {
|
|
19639
|
-
range:
|
|
19640
|
-
search:
|
|
19639
|
+
range: p,
|
|
19640
|
+
search: g,
|
|
19641
19641
|
sort: Object.keys(A || {}).length > 0 ? [A] : []
|
|
19642
19642
|
};
|
|
19643
19643
|
if (t.fetchFunc.current) {
|
|
@@ -19771,13 +19771,13 @@ class yi {
|
|
|
19771
19771
|
}
|
|
19772
19772
|
return {
|
|
19773
19773
|
getRows: function(i) {
|
|
19774
|
-
var
|
|
19775
|
-
const { startRow: s, endRow: o, sortModel: l, filterModel: c, context: d } = i, u = (w = (C = (
|
|
19774
|
+
var g, C, w, b, v, N;
|
|
19775
|
+
const { startRow: s, endRow: o, sortModel: l, filterModel: c, context: d } = i, u = (w = (C = (g = d == null ? void 0 : d.tableContextRef) == null ? void 0 : g.current) == null ? void 0 : C.state) == null ? void 0 : w.columnFilters, h = ((N = (v = (b = d == null ? void 0 : d.tableContextRef) == null ? void 0 : b.current) == null ? void 0 : v.state) == null ? void 0 : N.columns) || [], A = Cr(h);
|
|
19776
19776
|
a ? (a.onmessage = function(P) {
|
|
19777
19777
|
const { pageData: z, rowCount: T } = P.data;
|
|
19778
19778
|
i.successCallback(z, T);
|
|
19779
19779
|
}, a.onerror = function(P) {
|
|
19780
|
-
console.error("Web worker error:", P),
|
|
19780
|
+
console.error("Web worker error:", P), p();
|
|
19781
19781
|
}, a.postMessage({
|
|
19782
19782
|
data: t.data,
|
|
19783
19783
|
request: {
|
|
@@ -19788,8 +19788,8 @@ class yi {
|
|
|
19788
19788
|
pageSize: i.pageSize
|
|
19789
19789
|
// Pass pageSize to worker
|
|
19790
19790
|
}
|
|
19791
|
-
})) :
|
|
19792
|
-
function
|
|
19791
|
+
})) : p();
|
|
19792
|
+
function p() {
|
|
19793
19793
|
let P = t.data;
|
|
19794
19794
|
u && Object.keys(u).length > 0 ? P = Sr(
|
|
19795
19795
|
P,
|
|
@@ -19833,17 +19833,21 @@ class yi {
|
|
|
19833
19833
|
return;
|
|
19834
19834
|
}
|
|
19835
19835
|
const { pagination: o, sortState: l, columns: c, columnFilters: d } = i;
|
|
19836
|
-
if (l && l.order !== "none") {
|
|
19837
|
-
const
|
|
19838
|
-
|
|
19836
|
+
if (l && l.order !== "none" && l.order !== null && l.order !== void 0) {
|
|
19837
|
+
const p = Cr(c), g = Ei(
|
|
19838
|
+
t.data,
|
|
19839
|
+
l,
|
|
19840
|
+
p
|
|
19841
|
+
);
|
|
19842
|
+
t.data.splice(0, t.data.length, ...g);
|
|
19839
19843
|
}
|
|
19840
19844
|
if (d && ((A = Object.keys(d)) == null ? void 0 : A.length) > 0) {
|
|
19841
|
-
const
|
|
19842
|
-
t.data = Sr(
|
|
19845
|
+
const p = Cr(c), g = Sr(
|
|
19843
19846
|
t.data,
|
|
19844
19847
|
d,
|
|
19845
|
-
|
|
19848
|
+
p
|
|
19846
19849
|
);
|
|
19850
|
+
t.data.splice(0, t.data.length, ...g);
|
|
19847
19851
|
}
|
|
19848
19852
|
const { page: u, pageSize: h } = o;
|
|
19849
19853
|
t.data.splice((u - 1) * h, h, ...s);
|
|
@@ -19869,8 +19873,8 @@ const Wd = (e, t = {}) => {
|
|
|
19869
19873
|
fetchDataMethodRef: u = null,
|
|
19870
19874
|
apiUrl: h = null,
|
|
19871
19875
|
initialFilterModel: A = null,
|
|
19872
|
-
initialSortModel:
|
|
19873
|
-
tableId:
|
|
19876
|
+
initialSortModel: p = null,
|
|
19877
|
+
tableId: g,
|
|
19874
19878
|
force: C = !1,
|
|
19875
19879
|
// Force cache usage regardless of data size
|
|
19876
19880
|
isServerSideRef: w,
|
|
@@ -19890,7 +19894,7 @@ const Wd = (e, t = {}) => {
|
|
|
19890
19894
|
extremelyLargeDatasetThreshold: M = Ri,
|
|
19891
19895
|
// Threshold for extreme optimizations
|
|
19892
19896
|
tableContextRef: m
|
|
19893
|
-
} = t, [E, I] = ie(!1), [x, W] = ie(!1), D = ce(null), H = ce(null), K = ce({ startRow: 0, endRow: 0 }), q = ce(
|
|
19897
|
+
} = t, [E, I] = ie(!1), [x, W] = ie(!1), D = ce(null), H = ce(null), K = ce({ startRow: 0, endRow: 0 }), q = ce(p), F = ce(A), U = Array.isArray(e) ? e.length : 1 / 0, O = ce(
|
|
19894
19898
|
C || w.current || U > n
|
|
19895
19899
|
);
|
|
19896
19900
|
se(() => {
|
|
@@ -19986,7 +19990,7 @@ const Wd = (e, t = {}) => {
|
|
|
19986
19990
|
// Add pageSize for server-side pagination
|
|
19987
19991
|
updatedPageSizeRef: v,
|
|
19988
19992
|
usePagination: t.isPaginationMode,
|
|
19989
|
-
tableId:
|
|
19993
|
+
tableId: g
|
|
19990
19994
|
});
|
|
19991
19995
|
D.current = Y, H.current = null;
|
|
19992
19996
|
const $ = S();
|
|
@@ -20008,7 +20012,7 @@ const Wd = (e, t = {}) => {
|
|
|
20008
20012
|
o,
|
|
20009
20013
|
l,
|
|
20010
20014
|
b,
|
|
20011
|
-
|
|
20015
|
+
g
|
|
20012
20016
|
]), se(() => () => {
|
|
20013
20017
|
H.current && H.current.destroy && H.current.destroy(), D.current = null, H.current = null;
|
|
20014
20018
|
}, []);
|
|
@@ -20251,16 +20255,16 @@ const Wd = (e, t = {}) => {
|
|
|
20251
20255
|
c = l[r];
|
|
20252
20256
|
const A = String(
|
|
20253
20257
|
c.parentId || c.__parentPath
|
|
20254
|
-
),
|
|
20258
|
+
), p = A !== "undefined";
|
|
20255
20259
|
if (i != null && i.includes(".")) {
|
|
20256
|
-
const
|
|
20260
|
+
const g = bi(i, c, s);
|
|
20257
20261
|
l[r] = {
|
|
20258
|
-
...
|
|
20262
|
+
...g
|
|
20259
20263
|
};
|
|
20260
20264
|
} else if (l[r] = {
|
|
20261
20265
|
...c,
|
|
20262
20266
|
[i]: s
|
|
20263
|
-
},
|
|
20267
|
+
}, p) {
|
|
20264
20268
|
const C = l[c.parentRowIndex][n.childKeyField].map((b) => b[o] == a ? {
|
|
20265
20269
|
...b,
|
|
20266
20270
|
[i]: s
|
|
@@ -20327,7 +20331,7 @@ const Wd = (e, t = {}) => {
|
|
|
20327
20331
|
}
|
|
20328
20332
|
let d = null;
|
|
20329
20333
|
if (n.columns.some((A) => A.aggFunc)) {
|
|
20330
|
-
const { aggregationRow: A, updatedData:
|
|
20334
|
+
const { aggregationRow: A, updatedData: p } = So(
|
|
20331
20335
|
n,
|
|
20332
20336
|
l,
|
|
20333
20337
|
c,
|
|
@@ -20335,7 +20339,7 @@ const Wd = (e, t = {}) => {
|
|
|
20335
20339
|
a,
|
|
20336
20340
|
o
|
|
20337
20341
|
);
|
|
20338
|
-
l =
|
|
20342
|
+
l = p, d = A;
|
|
20339
20343
|
}
|
|
20340
20344
|
return {
|
|
20341
20345
|
updatedData: l,
|
|
@@ -20348,10 +20352,10 @@ const Wd = (e, t = {}) => {
|
|
|
20348
20352
|
const { state: t, dispatch: n } = e.current;
|
|
20349
20353
|
if (t.serverSide && t.callBackRef && t.callBackRef.current && t.callBackRef.current.onSearch) {
|
|
20350
20354
|
const u = [];
|
|
20351
|
-
Object.entries(t.columnFilters).forEach(([
|
|
20352
|
-
|
|
20355
|
+
Object.entries(t.columnFilters).forEach(([p, g]) => {
|
|
20356
|
+
g && g.length && g.forEach((C) => {
|
|
20353
20357
|
u.push({
|
|
20354
|
-
column: C.column || C.field ||
|
|
20358
|
+
column: C.column || C.field || p,
|
|
20355
20359
|
pattern: C.pattern || C.value,
|
|
20356
20360
|
search_type: C.search_type || C.operator,
|
|
20357
20361
|
min_val: C.min_val,
|
|
@@ -20378,18 +20382,18 @@ const Wd = (e, t = {}) => {
|
|
|
20378
20382
|
u,
|
|
20379
20383
|
t.columnFilters,
|
|
20380
20384
|
h
|
|
20381
|
-
),
|
|
20385
|
+
), p = qr(t);
|
|
20382
20386
|
Rn(
|
|
20383
20387
|
t,
|
|
20384
|
-
|
|
20388
|
+
p,
|
|
20385
20389
|
!1
|
|
20386
20390
|
);
|
|
20387
|
-
const
|
|
20391
|
+
const g = Gn(t);
|
|
20388
20392
|
(t.isSelectAllRecords || (d = t.selectedRows) != null && d.length) && Qn({ state: t, action: { payload: null } }), n({
|
|
20389
20393
|
type: ee.APPLY_FILTERS,
|
|
20390
20394
|
payload: {
|
|
20391
|
-
isChildRowEmpty:
|
|
20392
|
-
updatedData:
|
|
20395
|
+
isChildRowEmpty: g,
|
|
20396
|
+
updatedData: p,
|
|
20393
20397
|
filteredData: A
|
|
20394
20398
|
}
|
|
20395
20399
|
}), t.callBackRef.current.onSearch(t.columnFilters);
|
|
@@ -20428,8 +20432,8 @@ const Wd = (e, t = {}) => {
|
|
|
20428
20432
|
selectedRowsRef: u,
|
|
20429
20433
|
setRefreshCounter: h,
|
|
20430
20434
|
refreshCache: A,
|
|
20431
|
-
setLoading:
|
|
20432
|
-
paginationRelatedRef:
|
|
20435
|
+
setLoading: p,
|
|
20436
|
+
paginationRelatedRef: g,
|
|
20433
20437
|
setVisibleRange: C,
|
|
20434
20438
|
setCacheVisibleRange: w,
|
|
20435
20439
|
cachedBlockData: b,
|
|
@@ -20830,12 +20834,12 @@ const Wd = (e, t = {}) => {
|
|
|
20830
20834
|
userInitiated: m.purge ? !0 : m.userInitiated
|
|
20831
20835
|
};
|
|
20832
20836
|
if (r.current && A) {
|
|
20833
|
-
|
|
20837
|
+
g.current.currentPage = 1, A(E);
|
|
20834
20838
|
const I = e.current.state.pagination.page;
|
|
20835
20839
|
if (I !== 1 && e.current.dispatch({
|
|
20836
20840
|
type: e.current.ACTION_TYPES.SET_PAGE,
|
|
20837
20841
|
payload: 1
|
|
20838
|
-
}), E.resetPage && o && (
|
|
20842
|
+
}), E.resetPage && o && (p(!0), I === 1)) {
|
|
20839
20843
|
const W = d - 1;
|
|
20840
20844
|
setTimeout(() => {
|
|
20841
20845
|
w(0, W);
|
|
@@ -20889,9 +20893,9 @@ const Wd = (e, t = {}) => {
|
|
|
20889
20893
|
},
|
|
20890
20894
|
// Add setVisibleRange method to manually trigger data loading
|
|
20891
20895
|
setVisibleRange: (m, E) => {
|
|
20892
|
-
C({ startRow: m, endRow: E }), r.current && v ? (o &&
|
|
20896
|
+
C({ startRow: m, endRow: E }), r.current && v ? (o && p(!0), w(m, E)) : r.current && setTimeout(() => {
|
|
20893
20897
|
var I;
|
|
20894
|
-
a && ((I = a.modelRef) != null && I.current) && (a.modelRef.current.setViewportRange(m, E),
|
|
20898
|
+
a && ((I = a.modelRef) != null && I.current) && (a.modelRef.current.setViewportRange(m, E), p(!0));
|
|
20895
20899
|
}, 200);
|
|
20896
20900
|
},
|
|
20897
20901
|
// Refresh cache method
|
|
@@ -20905,7 +20909,7 @@ const Wd = (e, t = {}) => {
|
|
|
20905
20909
|
var m, E;
|
|
20906
20910
|
try {
|
|
20907
20911
|
let I;
|
|
20908
|
-
const x = o ? 0 : (
|
|
20912
|
+
const x = o ? 0 : (g.current.currentPage - 1) * d, W = o ? c.length : x + d;
|
|
20909
20913
|
if (o)
|
|
20910
20914
|
I = c;
|
|
20911
20915
|
else {
|
|
@@ -21575,8 +21579,8 @@ const Wd = (e, t = {}) => {
|
|
|
21575
21579
|
onRowDragStart: u,
|
|
21576
21580
|
onRowDragEnd: h,
|
|
21577
21581
|
onRowClicked: A,
|
|
21578
|
-
onCellValueChanged:
|
|
21579
|
-
onRowGroupOpened:
|
|
21582
|
+
onCellValueChanged: p,
|
|
21583
|
+
onRowGroupOpened: g,
|
|
21580
21584
|
customTabFunction: C,
|
|
21581
21585
|
handlePageChange: w,
|
|
21582
21586
|
handleSortChange: b,
|
|
@@ -21601,8 +21605,8 @@ const Wd = (e, t = {}) => {
|
|
|
21601
21605
|
onRowDragStart: u,
|
|
21602
21606
|
onRowDragEnd: h,
|
|
21603
21607
|
onRowClicked: A,
|
|
21604
|
-
onCellValueChanged:
|
|
21605
|
-
onRowGroupOpened:
|
|
21608
|
+
onCellValueChanged: p,
|
|
21609
|
+
onRowGroupOpened: g,
|
|
21606
21610
|
customTabFunction: C,
|
|
21607
21611
|
onPageChange: w,
|
|
21608
21612
|
onSortChange: b,
|
|
@@ -21610,14 +21614,14 @@ const Wd = (e, t = {}) => {
|
|
|
21610
21614
|
onSearch: N
|
|
21611
21615
|
});
|
|
21612
21616
|
return se(() => {
|
|
21613
|
-
M.current.onSelectionChanged = d, M.current.onRowDragStart = u, M.current.onRowDragEnd = h, M.current.onRowClicked = A, M.current.onCellValueChanged =
|
|
21617
|
+
M.current.onSelectionChanged = d, M.current.onRowDragStart = u, M.current.onRowDragEnd = h, M.current.onRowClicked = A, M.current.onCellValueChanged = p, M.current.onRowGroupOpened = g, M.current.customTabFunction = C, M.current.onPageChange = w, M.current.onSortChange = b, M.current.onFilterChange = v, M.current.onSearch = N;
|
|
21614
21618
|
}, [
|
|
21615
21619
|
d,
|
|
21616
21620
|
u,
|
|
21617
21621
|
h,
|
|
21618
21622
|
A,
|
|
21619
|
-
g,
|
|
21620
21623
|
p,
|
|
21624
|
+
g,
|
|
21621
21625
|
C,
|
|
21622
21626
|
w,
|
|
21623
21627
|
b,
|
|
@@ -21668,9 +21672,9 @@ const Wd = (e, t = {}) => {
|
|
|
21668
21672
|
bottomLeftOptions: u = null,
|
|
21669
21673
|
bottomCenterOptions: h = null,
|
|
21670
21674
|
bottomRightOptions: A = null,
|
|
21671
|
-
topLeftOptions:
|
|
21675
|
+
topLeftOptions: p = null,
|
|
21672
21676
|
// Header height in pixels (similar to AG Grid)
|
|
21673
|
-
headerHeight:
|
|
21677
|
+
headerHeight: g = 40,
|
|
21674
21678
|
// AG Grid-like callbacks
|
|
21675
21679
|
onSelectionChanged: C = null,
|
|
21676
21680
|
onRowDragStart: w = null,
|
|
@@ -22305,7 +22309,7 @@ const Wd = (e, t = {}) => {
|
|
|
22305
22309
|
Ls.forEach(
|
|
22306
22310
|
(ve) => ba[ve] = !0
|
|
22307
22311
|
);
|
|
22308
|
-
const Ps = (F == null ? void 0 : F.length) > 0 &&
|
|
22312
|
+
const Ps = (F == null ? void 0 : F.length) > 0 && g != "0" || G, Os = (F == null ? void 0 : F.length) > 0 && g == "0" || G;
|
|
22309
22313
|
return /* @__PURE__ */ f(
|
|
22310
22314
|
"div",
|
|
22311
22315
|
{
|
|
@@ -22361,12 +22365,12 @@ const Wd = (e, t = {}) => {
|
|
|
22361
22365
|
showToolbar: Se.showToolbar,
|
|
22362
22366
|
showSaveTableConfig: x,
|
|
22363
22367
|
height: zt,
|
|
22364
|
-
headerHeight:
|
|
22368
|
+
headerHeight: g,
|
|
22365
22369
|
pagination: S ? !1 : Se.pagination !== !1,
|
|
22366
22370
|
pageSize: tt,
|
|
22367
22371
|
tableHeader: c,
|
|
22368
22372
|
topRightOptions: d,
|
|
22369
|
-
topLeftOptions:
|
|
22373
|
+
topLeftOptions: p,
|
|
22370
22374
|
bottomLeftOptions: u,
|
|
22371
22375
|
bottomCenterOptions: h,
|
|
22372
22376
|
bottomRightOptions: A,
|
|
@@ -22419,9 +22423,9 @@ const Wd = (e, t = {}) => {
|
|
|
22419
22423
|
showToolbar: u,
|
|
22420
22424
|
topRightOptions: h,
|
|
22421
22425
|
aboveTableComponent: A,
|
|
22422
|
-
showSaveTableConfig:
|
|
22426
|
+
showSaveTableConfig: p
|
|
22423
22427
|
} = e;
|
|
22424
|
-
return n ? /* @__PURE__ */ f(Jd, { ...e, ref: t }) : /* @__PURE__ */ f("div", { className: "ia-table-toolbar-wrapper", children: u && (r || h ||
|
|
22428
|
+
return n ? /* @__PURE__ */ f(Jd, { ...e, ref: t }) : /* @__PURE__ */ f("div", { className: "ia-table-toolbar-wrapper", children: u && (r || h || p || s || i || o) && /* @__PURE__ */ te(At, { children: [
|
|
22425
22429
|
/* @__PURE__ */ f(
|
|
22426
22430
|
"div",
|
|
22427
22431
|
{
|