@turquoisehealth/pit-viper 2.196.0 → 2.196.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +414 -413
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +573 -557
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +792 -791
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -3400,12 +3400,12 @@ var $a = (e, t, n) => {
|
|
|
3400
3400
|
if (r.length <= 1) return "Search";
|
|
3401
3401
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
3402
3402
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
3403
|
-
}, eo = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r,
|
|
3404
|
-
if (!r) return e;
|
|
3405
|
-
if (!
|
|
3406
|
-
let
|
|
3407
|
-
return
|
|
3408
|
-
},
|
|
3403
|
+
}, eo = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), to = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
3404
|
+
if (!r || eo(i) === eo(r)) return e;
|
|
3405
|
+
if (!a || !n) return r;
|
|
3406
|
+
let o = t(n);
|
|
3407
|
+
return o ? `${o}: ${r}` : r;
|
|
3408
|
+
}, no = "__pv_filter_panel_scoped_value__", ro = (e) => typeof e == "object" && !!e, io = (e) => {
|
|
3409
3409
|
try {
|
|
3410
3410
|
let t = JSON.parse(decodeURIComponent(e));
|
|
3411
3411
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -3419,7 +3419,7 @@ var $a = (e, t, n) => {
|
|
|
3419
3419
|
} catch {
|
|
3420
3420
|
return [];
|
|
3421
3421
|
}
|
|
3422
|
-
},
|
|
3422
|
+
}, ao = (e) => {
|
|
3423
3423
|
if (!e.startsWith("__")) return null;
|
|
3424
3424
|
let t = e.slice(2).split("__");
|
|
3425
3425
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -3432,68 +3432,68 @@ var $a = (e, t, n) => {
|
|
|
3432
3432
|
pairs: n,
|
|
3433
3433
|
value: n[0].value
|
|
3434
3434
|
};
|
|
3435
|
-
},
|
|
3435
|
+
}, oo = (e) => {
|
|
3436
3436
|
if (e == null) return null;
|
|
3437
|
-
if (!e.startsWith(
|
|
3437
|
+
if (!e.startsWith(no)) return ao(e) ?? {
|
|
3438
3438
|
pairs: [],
|
|
3439
3439
|
value: e
|
|
3440
3440
|
};
|
|
3441
|
-
let t =
|
|
3441
|
+
let t = io(e.slice(32));
|
|
3442
3442
|
return {
|
|
3443
3443
|
field: t[0]?.field,
|
|
3444
3444
|
pairs: t,
|
|
3445
3445
|
value: t[0]?.value ?? e
|
|
3446
3446
|
};
|
|
3447
|
-
},
|
|
3447
|
+
}, so = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : ro(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : oo(e.value)?.value ?? e.value : null, co = (e, t) => e?.field ? e.field : e?.colField ? e.colField : oo(e?.value)?.field ?? t, lo = (e, t, n, r) => co(e, r) === t && so(e) === n, uo = (e) => {
|
|
3448
3448
|
let t = e;
|
|
3449
3449
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
3450
|
-
},
|
|
3450
|
+
}, fo = (e) => {
|
|
3451
3451
|
let t = e;
|
|
3452
|
-
return
|
|
3452
|
+
return uo(e) ? {
|
|
3453
3453
|
...t,
|
|
3454
|
-
conditions: (t.conditions ?? []).map(
|
|
3454
|
+
conditions: (t.conditions ?? []).map(fo)
|
|
3455
3455
|
} : { ...t };
|
|
3456
|
-
},
|
|
3456
|
+
}, po = (e, t) => {
|
|
3457
3457
|
if (!e) return null;
|
|
3458
3458
|
let n = t instanceof Set ? t : new Set(t);
|
|
3459
|
-
if (!n.size) return
|
|
3460
|
-
if (!
|
|
3459
|
+
if (!n.size) return fo(e);
|
|
3460
|
+
if (!uo(e)) {
|
|
3461
3461
|
let t = e;
|
|
3462
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
3462
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : fo(e);
|
|
3463
3463
|
}
|
|
3464
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
3464
|
+
let r = e, i = (r.conditions ?? []).map((e) => po(e, n)).filter((e) => !!e);
|
|
3465
3465
|
return i.length ? i.length === 1 ? i[0] : {
|
|
3466
3466
|
...r,
|
|
3467
3467
|
conditions: i
|
|
3468
3468
|
} : null;
|
|
3469
|
-
},
|
|
3469
|
+
}, mo = (e) => e ? [e.field, ...(e.children ?? []).flatMap(mo)] : [], ho = (e) => e ? e.children?.length ? e.children.flatMap(ho) : [e.field] : [], go = (e) => {
|
|
3470
3470
|
let t = e?.context ?? {};
|
|
3471
|
-
return t.aggregateFieldHierarchy ?
|
|
3472
|
-
},
|
|
3471
|
+
return t.aggregateFieldHierarchy ? mo(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
3472
|
+
}, _o = (e) => {
|
|
3473
3473
|
let t = e?.context ?? {};
|
|
3474
3474
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
3475
|
-
},
|
|
3475
|
+
}, vo = (e, t) => {
|
|
3476
3476
|
for (let n of e ?? []) {
|
|
3477
3477
|
if (!n) continue;
|
|
3478
3478
|
if (n.value === t) return n;
|
|
3479
|
-
let e =
|
|
3479
|
+
let e = vo(n.children, t);
|
|
3480
3480
|
if (e) return e;
|
|
3481
3481
|
}
|
|
3482
|
-
},
|
|
3483
|
-
let n =
|
|
3482
|
+
}, yo = (e, t) => {
|
|
3483
|
+
let n = vo(t, e), r = n ? co(n, "") : void 0, i = n ? so(n) : null;
|
|
3484
3484
|
if (r && i !== null) return {
|
|
3485
3485
|
field: r,
|
|
3486
3486
|
value: i
|
|
3487
3487
|
};
|
|
3488
|
-
let a =
|
|
3488
|
+
let a = oo(e);
|
|
3489
3489
|
return {
|
|
3490
3490
|
field: a?.field,
|
|
3491
3491
|
value: a?.value ?? e
|
|
3492
3492
|
};
|
|
3493
|
-
},
|
|
3493
|
+
}, bo = (e, t, n) => {
|
|
3494
3494
|
let r = (e) => {
|
|
3495
3495
|
if (!e) return;
|
|
3496
|
-
let i =
|
|
3496
|
+
let i = co(e, ""), a = so(e);
|
|
3497
3497
|
if (i === t && a === n) return e.value;
|
|
3498
3498
|
for (let t of e.children ?? []) {
|
|
3499
3499
|
let e = r(t);
|
|
@@ -3505,9 +3505,9 @@ var $a = (e, t, n) => {
|
|
|
3505
3505
|
if (e) return e;
|
|
3506
3506
|
}
|
|
3507
3507
|
return `__${t}__${n}`;
|
|
3508
|
-
},
|
|
3508
|
+
}, xo = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...xo(e.children)]), So = (e, t) => {
|
|
3509
3509
|
if (e.state !== "selected") return null;
|
|
3510
|
-
let { field: n, value: r } =
|
|
3510
|
+
let { field: n, value: r } = yo(e.id, t);
|
|
3511
3511
|
if (!n) return null;
|
|
3512
3512
|
let i = [{
|
|
3513
3513
|
colId: n,
|
|
@@ -3515,8 +3515,8 @@ var $a = (e, t, n) => {
|
|
|
3515
3515
|
filterType: "text",
|
|
3516
3516
|
type: "equals"
|
|
3517
3517
|
}];
|
|
3518
|
-
for (let n of
|
|
3519
|
-
let e =
|
|
3518
|
+
for (let n of xo(e.children)) {
|
|
3519
|
+
let e = yo(n.id, t);
|
|
3520
3520
|
e.field && i.push({
|
|
3521
3521
|
colId: e.field,
|
|
3522
3522
|
filter: e.value,
|
|
@@ -3529,10 +3529,10 @@ var $a = (e, t, n) => {
|
|
|
3529
3529
|
filterType: "join",
|
|
3530
3530
|
type: "AND"
|
|
3531
3531
|
};
|
|
3532
|
-
},
|
|
3533
|
-
let t =
|
|
3532
|
+
}, Co = (e) => {
|
|
3533
|
+
let t = go(e.colDef), n = po(e.baseModel, t);
|
|
3534
3534
|
if (!t.length) return n;
|
|
3535
|
-
let r = e.state.map((t) =>
|
|
3535
|
+
let r = e.state.map((t) => So(t, e.options)).filter((e) => !!e);
|
|
3536
3536
|
if (!r.length) return n;
|
|
3537
3537
|
let i = r.length === 1 ? r[0] : {
|
|
3538
3538
|
conditions: r,
|
|
@@ -3544,17 +3544,17 @@ var $a = (e, t, n) => {
|
|
|
3544
3544
|
filterType: "join",
|
|
3545
3545
|
type: "AND"
|
|
3546
3546
|
} : i;
|
|
3547
|
-
},
|
|
3547
|
+
}, wo = (e, t, n) => {
|
|
3548
3548
|
if (!e) return [];
|
|
3549
3549
|
let r = e;
|
|
3550
|
-
if (
|
|
3550
|
+
if (uo(e)) {
|
|
3551
3551
|
let e = r.conditions ?? [];
|
|
3552
3552
|
if (r.type === "AND") {
|
|
3553
3553
|
let r = e.find((e) => {
|
|
3554
3554
|
let r = e;
|
|
3555
3555
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
3556
3556
|
});
|
|
3557
|
-
return e.flatMap((e) =>
|
|
3557
|
+
return e.flatMap((e) => wo(e, t, n).map((e) => ({
|
|
3558
3558
|
...e,
|
|
3559
3559
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
3560
3560
|
colId: r.colId,
|
|
@@ -3562,20 +3562,20 @@ var $a = (e, t, n) => {
|
|
|
3562
3562
|
} : void 0)
|
|
3563
3563
|
})));
|
|
3564
3564
|
}
|
|
3565
|
-
return e.flatMap((e) =>
|
|
3565
|
+
return e.flatMap((e) => wo(e, t, n));
|
|
3566
3566
|
}
|
|
3567
3567
|
return r.colId && t.has(r.colId) ? [{
|
|
3568
3568
|
colId: r.colId,
|
|
3569
3569
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
3570
3570
|
type: r.type
|
|
3571
3571
|
}] : [];
|
|
3572
|
-
},
|
|
3573
|
-
let t =
|
|
3572
|
+
}, To = (e) => {
|
|
3573
|
+
let t = go(e.colDef);
|
|
3574
3574
|
if (!t.length) return [];
|
|
3575
|
-
let n = new Set(
|
|
3575
|
+
let n = new Set(ho(e.colDef.context?.aggregateFieldHierarchy)), r = _o(e.colDef), i = wo(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
3576
3576
|
for (let t of i) {
|
|
3577
3577
|
if (!t.filter) continue;
|
|
3578
|
-
let n =
|
|
3578
|
+
let n = bo(e.options, t.colId, String(t.filter));
|
|
3579
3579
|
if (t.type === "equals") {
|
|
3580
3580
|
let e = a.get(n);
|
|
3581
3581
|
a.set(n, {
|
|
@@ -3586,7 +3586,7 @@ var $a = (e, t, n) => {
|
|
|
3586
3586
|
continue;
|
|
3587
3587
|
}
|
|
3588
3588
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
3589
|
-
let r =
|
|
3589
|
+
let r = bo(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
3590
3590
|
children: [],
|
|
3591
3591
|
id: r,
|
|
3592
3592
|
state: "selected"
|
|
@@ -3605,7 +3605,7 @@ new Intl.NumberFormat("en-US", {
|
|
|
3605
3605
|
});
|
|
3606
3606
|
//#endregion
|
|
3607
3607
|
//#region src/components/base/PvFilterPanel/usePvFilterStore.ts
|
|
3608
|
-
var
|
|
3608
|
+
var Eo = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Do = (e, t) => t ?? e, Oo = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), ko = (e) => {
|
|
3609
3609
|
let t = /* @__PURE__ */ new Map();
|
|
3610
3610
|
for (let n of e) {
|
|
3611
3611
|
if (!n) continue;
|
|
@@ -3617,34 +3617,34 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3617
3617
|
t.set(n.value, {
|
|
3618
3618
|
...e,
|
|
3619
3619
|
...n,
|
|
3620
|
-
children:
|
|
3621
|
-
totalChildCount:
|
|
3620
|
+
children: ko([...e.children ?? [], ...n.children ?? []]),
|
|
3621
|
+
totalChildCount: Do(e.totalChildCount, n.totalChildCount)
|
|
3622
3622
|
});
|
|
3623
3623
|
}
|
|
3624
3624
|
return [...t.values()];
|
|
3625
|
-
},
|
|
3625
|
+
}, Ao = (e, t) => {
|
|
3626
3626
|
for (let n of e ?? []) {
|
|
3627
3627
|
if (!n) continue;
|
|
3628
3628
|
if (n.value === t) return n;
|
|
3629
|
-
let e =
|
|
3629
|
+
let e = Ao(n.children, t);
|
|
3630
3630
|
if (e) return e;
|
|
3631
3631
|
}
|
|
3632
|
-
},
|
|
3632
|
+
}, jo = (e, t, n) => {
|
|
3633
3633
|
if (!e || t === null) return !1;
|
|
3634
3634
|
if (e.value === t) return !0;
|
|
3635
|
-
let r =
|
|
3636
|
-
return r !== null && r === t ||
|
|
3637
|
-
},
|
|
3638
|
-
let r =
|
|
3635
|
+
let r = so(e);
|
|
3636
|
+
return r !== null && r === t || lo(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => jo(e, t, n)) ?? !1;
|
|
3637
|
+
}, Mo = (e, t, n) => {
|
|
3638
|
+
let r = Ao(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
3639
3639
|
return e.map((e) => e && (e.value === t ? {
|
|
3640
3640
|
...e,
|
|
3641
|
-
children:
|
|
3642
|
-
totalChildCount:
|
|
3641
|
+
children: ko([...e.children ?? [], ...i]),
|
|
3642
|
+
totalChildCount: Do(e.totalChildCount, r?.totalChildCount)
|
|
3643
3643
|
} : e.children?.length ? {
|
|
3644
3644
|
...e,
|
|
3645
|
-
children:
|
|
3645
|
+
children: Mo(e.children, t, n).filter((e) => !!e)
|
|
3646
3646
|
} : e));
|
|
3647
|
-
},
|
|
3647
|
+
}, No = (e, t) => `${e}::${t}`, Po = () => {
|
|
3648
3648
|
let e = O(null), t = O(null), n = O(), r = O({}), i = O({}), a = O({}), o = O({}), s = O({}), c = O({}), l = O({}), u = O({}), d = O({}), f = O({}), p = O({}), m = O({}), h = O({}), g = O({}), _ = O(), v = O({}), y = (e) => {
|
|
3649
3649
|
_.value = e;
|
|
3650
3650
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -3653,11 +3653,11 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3653
3653
|
let r = n ? o : i;
|
|
3654
3654
|
r.value[e] = t;
|
|
3655
3655
|
}, w = () => {
|
|
3656
|
-
o.value =
|
|
3656
|
+
o.value = Oo(i.value), s.value = Oo(a.value);
|
|
3657
3657
|
}, T = () => {
|
|
3658
3658
|
o.value = {}, s.value = {};
|
|
3659
3659
|
}, E = () => {
|
|
3660
|
-
i.value =
|
|
3660
|
+
i.value = Oo(o.value), a.value = Oo(s.value), T();
|
|
3661
3661
|
}, D = (e, t) => {
|
|
3662
3662
|
c.value[e] = t;
|
|
3663
3663
|
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -3679,7 +3679,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3679
3679
|
if (!o) return [];
|
|
3680
3680
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
3681
3681
|
c.value[n.field] = s;
|
|
3682
|
-
let l = n.parentId ?
|
|
3682
|
+
let l = n.parentId ? Ao(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y = A(n.field, v), b = n.parentId ? No(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
3683
3683
|
h.value[b] = x;
|
|
3684
3684
|
try {
|
|
3685
3685
|
let c = await o({
|
|
@@ -3690,17 +3690,17 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3690
3690
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
3691
3691
|
});
|
|
3692
3692
|
if (h.value[b] !== x) return [];
|
|
3693
|
-
let l =
|
|
3693
|
+
let l = Eo(c);
|
|
3694
3694
|
if (n.parentId) {
|
|
3695
|
-
let e =
|
|
3695
|
+
let e = No(n.field, n.parentId);
|
|
3696
3696
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
3697
3697
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
3698
3698
|
let _ = a.value[n.field] ?? [], y;
|
|
3699
|
-
y = n.parentId ?
|
|
3699
|
+
y = n.parentId ? Mo(r.value[n.field] ?? [], n.parentId, l.values) : v ? ko([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
3700
3700
|
for (let e of _) {
|
|
3701
3701
|
if (!e) continue;
|
|
3702
|
-
let t =
|
|
3703
|
-
y.some((e) =>
|
|
3702
|
+
let t = so(e) ?? e.value;
|
|
3703
|
+
y.some((e) => jo(e, t, n.field)) || y.push(e);
|
|
3704
3704
|
}
|
|
3705
3705
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
3706
3706
|
} finally {
|
|
@@ -3733,7 +3733,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3733
3733
|
stagedFilterSelectedMetadataMap: s,
|
|
3734
3734
|
stagedFilterSelectedValueMap: o
|
|
3735
3735
|
};
|
|
3736
|
-
},
|
|
3736
|
+
}, Fo = () => {
|
|
3737
3737
|
let e = (e, n) => {
|
|
3738
3738
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
3739
3739
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -3747,13 +3747,13 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3747
3747
|
return r !== -1 && e.queryTerms.splice(r, 1), e;
|
|
3748
3748
|
}
|
|
3749
3749
|
};
|
|
3750
|
-
},
|
|
3750
|
+
}, Io = { class: "pv-flex" }, Lo = { class: "pv-text-body-md" }, Ro = ["textContent"], zo = {
|
|
3751
3751
|
key: 0,
|
|
3752
3752
|
class: "pv-text-body-xs"
|
|
3753
|
-
},
|
|
3753
|
+
}, Bo = { key: 0 }, Vo = {
|
|
3754
3754
|
class: "pv-text-subdued pv-text-body-xs",
|
|
3755
3755
|
style: { "font-weight": "500" }
|
|
3756
|
-
},
|
|
3756
|
+
}, Ho = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
3757
3757
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
3758
3758
|
props: {
|
|
3759
3759
|
id: {},
|
|
@@ -3799,13 +3799,13 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3799
3799
|
bold: !1
|
|
3800
3800
|
}), n;
|
|
3801
3801
|
});
|
|
3802
|
-
return (e, n) => (E(), o("div", null, [s("div",
|
|
3802
|
+
return (e, n) => (E(), o("div", null, [s("div", Io, [u(ln, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", Lo, [(E(!0), o(t, null, k(m.value, (e, t) => (E(), o("span", {
|
|
3803
3803
|
key: t,
|
|
3804
3804
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
3805
3805
|
textContent: P(e.text)
|
|
3806
|
-
}, null, 12,
|
|
3806
|
+
}, null, 12, Ro))), 128))]), f.value ? (E(), o("p", zo, [c.value ? a("", !0) : (E(), o("span", Bo, "Search in ")), s("span", Vo, P(f.value), 1)])) : a("", !0)])])]));
|
|
3807
3807
|
}
|
|
3808
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
3808
|
+
}), [["__scopeId", "data-v-ff951d17"]]), Uo = /* @__PURE__ */ d({
|
|
3809
3809
|
__name: "QueryFormatter",
|
|
3810
3810
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
3811
3811
|
modelValue: { required: !0 },
|
|
@@ -3819,7 +3819,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3819
3819
|
}),
|
|
3820
3820
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
3821
3821
|
setup(e) {
|
|
3822
|
-
let n = e, s = L(e, "modelValue"), c = L(e, "wrap-content"), { removeQueryOption: l } =
|
|
3822
|
+
let n = e, s = L(e, "modelValue"), c = L(e, "wrap-content"), { removeQueryOption: l } = Fo(), u = r(() => {
|
|
3823
3823
|
let e = s.value?.queryTerms || [];
|
|
3824
3824
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
3825
3825
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -3851,17 +3851,17 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3851
3851
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
3852
3852
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
3853
3853
|
}
|
|
3854
|
-
}),
|
|
3854
|
+
}), Wo = [
|
|
3855
3855
|
"disabled",
|
|
3856
3856
|
"placeholder",
|
|
3857
3857
|
"data-invalid"
|
|
3858
|
-
],
|
|
3858
|
+
], Go = {
|
|
3859
3859
|
key: 2,
|
|
3860
3860
|
class: "pv-text-red pv-text-body-xs"
|
|
3861
|
-
},
|
|
3861
|
+
}, Ko = {
|
|
3862
3862
|
key: 1,
|
|
3863
3863
|
class: "pv-text-center"
|
|
3864
|
-
},
|
|
3864
|
+
}, qo = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
3865
3865
|
__name: "PvQueryBuilderInput",
|
|
3866
3866
|
props: /* @__PURE__ */ g({
|
|
3867
3867
|
placeholder: { default: "Search" },
|
|
@@ -3909,7 +3909,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3909
3909
|
"update:options"
|
|
3910
3910
|
],
|
|
3911
3911
|
setup(e) {
|
|
3912
|
-
let n = e, c = { renderer:
|
|
3912
|
+
let n = e, c = { renderer: Ho }, l = z("search-input"), d = L(e, "searchText"), f = L(e, "query"), p = L(e, "options"), { addQueryOption: m, containsQueryOption: h } = Fo(), g = O(!1), v = O(!1), b = O(!1), S = r(() => f.value === null ? n.placeholder : ""), C = O(null), w = r(() => C.value !== null && C.value !== "" && !v.value), T = () => {
|
|
3913
3913
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
3914
3914
|
};
|
|
3915
3915
|
n.enableCustomOptionsInput && Ue("Enter", () => {
|
|
@@ -3983,7 +3983,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3983
3983
|
"--inset-size": "4px",
|
|
3984
3984
|
"--flex-gap": "4px"
|
|
3985
3985
|
}, e.enableWrapQueryTerms || b.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
3986
|
-
}, [u(
|
|
3986
|
+
}, [u(Uo, {
|
|
3987
3987
|
modelValue: f.value,
|
|
3988
3988
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
3989
3989
|
"wrap-content": b.value,
|
|
@@ -4003,7 +4003,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4003
4003
|
"data-invalid": w.value ? "true" : void 0,
|
|
4004
4004
|
onFocus: F,
|
|
4005
4005
|
onBlur: F
|
|
4006
|
-
}, null, 40,
|
|
4006
|
+
}, null, 40, Wo), [[ne, d.value]])], 4),
|
|
4007
4007
|
f.value && !e.hideClearButton ? (E(), i(gn, {
|
|
4008
4008
|
key: 1,
|
|
4009
4009
|
variant: "ghost",
|
|
@@ -4011,7 +4011,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4011
4011
|
size: "md",
|
|
4012
4012
|
onClick: T
|
|
4013
4013
|
})) : a("", !0),
|
|
4014
|
-
w.value ? (E(), o("p",
|
|
4014
|
+
w.value ? (E(), o("p", Go, P(C.value), 1)) : a("", !0),
|
|
4015
4015
|
A.value.length > 0 || e.optionsLoading ? (E(), i($t, {
|
|
4016
4016
|
key: 3,
|
|
4017
4017
|
class: y({ "pv-hide": !g.value }),
|
|
@@ -4021,7 +4021,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4021
4021
|
},
|
|
4022
4022
|
isList: !0
|
|
4023
4023
|
}, {
|
|
4024
|
-
default: V(() => [e.optionsLoading ? (E(), o("div",
|
|
4024
|
+
default: V(() => [e.optionsLoading ? (E(), o("div", Ko, [u(St, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(za, _({
|
|
4025
4025
|
key: `${t}-${e.searchText}`,
|
|
4026
4026
|
ref_for: !0
|
|
4027
4027
|
}, e, {
|
|
@@ -4032,27 +4032,27 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4032
4032
|
}, 8, ["class"])) : a("", !0)
|
|
4033
4033
|
], 32)), [[I(Xe), j]]);
|
|
4034
4034
|
}
|
|
4035
|
-
}), [["__scopeId", "data-v-4decbec2"]]),
|
|
4035
|
+
}), [["__scopeId", "data-v-4decbec2"]]), Jo = Symbol("FilterStoreKey"), Yo = Symbol("FocusStoreKey"), Xo = Symbol("SortStateKey"), Zo = Symbol("GridApiKey"), Qo = Symbol("ColumnDisplayOrderKey"), $o = Symbol("currentlyActiveFilterKey"), es = Symbol("AvailableFilterColumnsKey"), ts = Symbol("AvailableRowGroupColumnsKey"), ns = Symbol("RowGroupColumnFieldsKey"), rs = Symbol("GroupColumnCellValueColumnKey"), is = Symbol("ExpandedRowsKey"), as = Symbol("FirstDataRenderedKey"), os = Symbol("RowsLoadingKey"), ss = Symbol("CurrentPageKey"), cs = Symbol("TotalPageKey"), ls = Symbol("ActiveChartFilterOptionKey"), us = Symbol("RowGroupColumnsKey"), ds = Symbol("ChartTypeKey"), fs = Symbol("SortTypesKey"), ps = Symbol("ActiveChartKey"), ms = Symbol("ActiveSortKey"), hs = Symbol("ActiveSeriesKey"), gs = Symbol("AvailableSeriesKey"), _s = Symbol("ActiveSecondarySeriesKey"), vs = Symbol("AvailableSecondarySeriesKey"), ys = Symbol("EnableAdvancedFilterKey"), bs = Symbol("ActiveCrosslineOverlayGroupsKey"), xs = Symbol("AvailableCrosslineOverlayGroupsKey"), Ss = {
|
|
4036
4036
|
class: "pv-flex",
|
|
4037
4037
|
style: { "--flex-wrap": "nowrap" }
|
|
4038
|
-
},
|
|
4038
|
+
}, Cs = ["id"], ws = {
|
|
4039
4039
|
key: 1,
|
|
4040
4040
|
style: { "padding-left": "16px" }
|
|
4041
|
-
},
|
|
4041
|
+
}, Ts = [
|
|
4042
4042
|
"checked",
|
|
4043
4043
|
"disabled",
|
|
4044
4044
|
"onChange"
|
|
4045
|
-
],
|
|
4045
|
+
], Es = { class: "pv-text-body-md" }, Ds = { key: 2 }, Os = {
|
|
4046
4046
|
key: 0,
|
|
4047
4047
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
4048
|
-
},
|
|
4048
|
+
}, ks = /* @__PURE__ */ d({
|
|
4049
4049
|
__name: "GroupBySelector",
|
|
4050
4050
|
props: {
|
|
4051
4051
|
rowGroupLimit: {},
|
|
4052
4052
|
enableFocusView: { type: Boolean }
|
|
4053
4053
|
},
|
|
4054
4054
|
setup(e) {
|
|
4055
|
-
let n = m(
|
|
4055
|
+
let n = m(Zo, O(null)), c = m(ts, O([])), l = m(ns, O([])), u = e;
|
|
4056
4056
|
B(l, () => {}, { deep: !0 });
|
|
4057
4057
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
4058
4058
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
@@ -4084,7 +4084,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4084
4084
|
class: y(p.value),
|
|
4085
4085
|
onListOrderUpdated: x
|
|
4086
4086
|
}, {
|
|
4087
|
-
trigger: V(() => [s("div",
|
|
4087
|
+
trigger: V(() => [s("div", Ss, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), I(l).length > 0 ? (E(), i(I(pn), {
|
|
4088
4088
|
key: 0,
|
|
4089
4089
|
value: I(l).length,
|
|
4090
4090
|
variant: "tertiary"
|
|
@@ -4097,25 +4097,25 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4097
4097
|
key: 0,
|
|
4098
4098
|
name: "reorder",
|
|
4099
4099
|
class: "pv-text-subdued"
|
|
4100
|
-
})) : (E(), o("span",
|
|
4100
|
+
})) : (E(), o("span", ws)),
|
|
4101
4101
|
s("input", {
|
|
4102
4102
|
type: "checkbox",
|
|
4103
4103
|
class: "pv-checkbox",
|
|
4104
4104
|
checked: d(e.value),
|
|
4105
4105
|
disabled: !d(e.value) && h.value,
|
|
4106
4106
|
onChange: (t) => f(e.value, t.target.checked)
|
|
4107
|
-
}, null, 40,
|
|
4108
|
-
s("span",
|
|
4109
|
-
d(e.value) ? (E(), o("sup",
|
|
4110
|
-
], 2)], 8,
|
|
4107
|
+
}, null, 40, Ts),
|
|
4108
|
+
s("span", Es, P(e.label), 1),
|
|
4109
|
+
d(e.value) ? (E(), o("sup", Ds, P(n + 1), 1)) : a("", !0)
|
|
4110
|
+
], 2)], 8, Cs))], 64))), 128)), h.value ? (E(), o("p", Os, " Supports " + P(e.rowGroupLimit) + " compare levels ", 1)) : a("", !0)]),
|
|
4111
4111
|
_: 1
|
|
4112
4112
|
}, 8, ["class"]));
|
|
4113
4113
|
}
|
|
4114
|
-
}),
|
|
4115
|
-
function
|
|
4116
|
-
return E(), o("div",
|
|
4114
|
+
}), As = {}, js = { class: "ag-custom-loading-cell pv-shimmer" };
|
|
4115
|
+
function Ms(e, t) {
|
|
4116
|
+
return E(), o("div", js);
|
|
4117
4117
|
}
|
|
4118
|
-
var
|
|
4118
|
+
var Ns = /* @__PURE__ */ Xt(As, [["render", Ms]]), Ps = ["innerHTML"], Fs = { key: 2 }, Is = /* @__PURE__ */ d({
|
|
4119
4119
|
__name: "ColDefCellRenderer",
|
|
4120
4120
|
props: {
|
|
4121
4121
|
colDef: {},
|
|
@@ -4129,9 +4129,9 @@ var Ms = /* @__PURE__ */ Xt(ks, [["render", js]]), Ns = ["innerHTML"], Ps = { ke
|
|
|
4129
4129
|
}, null, 8, ["params"])) : a.value === "function" && typeof c.value == "string" ? (E(), o("span", {
|
|
4130
4130
|
key: 1,
|
|
4131
4131
|
innerHTML: c.value
|
|
4132
|
-
}, null, 8,
|
|
4132
|
+
}, null, 8, Ps)) : a.value === "string" ? (E(), o("span", Fs, P(s.value), 1)) : A(t.$slots, "default", { key: 3 });
|
|
4133
4133
|
}
|
|
4134
|
-
}),
|
|
4134
|
+
}), Ls = (e = null, t = !1) => {
|
|
4135
4135
|
let n = O(e?.focuses || []), i = O(e?.focusType || null), a = e?.focusRequired ?? !1, o = r(() => n.value), s = r(() => i.value), c = (e) => {
|
|
4136
4136
|
e !== i.value && (i.value = e || null, n.value = []);
|
|
4137
4137
|
}, l = (e) => {
|
|
@@ -4155,21 +4155,21 @@ var Ms = /* @__PURE__ */ Xt(ks, [["render", js]]), Ns = ["innerHTML"], Ps = { ke
|
|
|
4155
4155
|
setFocuses: l,
|
|
4156
4156
|
canRemoveFocus: () => a ? n.value.length > 1 : !0
|
|
4157
4157
|
};
|
|
4158
|
-
},
|
|
4158
|
+
}, Rs = () => m(Yo, null) || Ls(), zs = { class: "pv-table-group-cell" }, Bs = { class: "pv-text-body-xxs pv-text-subdued" }, Vs = { key: 0 }, Hs = { style: { "line-height": "20px" } }, Us = { class: "pv-text-title-md" }, Ws = {
|
|
4159
4159
|
key: 0,
|
|
4160
4160
|
class: "pv-flex",
|
|
4161
4161
|
style: {
|
|
4162
4162
|
flex: "1",
|
|
4163
4163
|
"--flex-justify": "flex-end"
|
|
4164
4164
|
}
|
|
4165
|
-
},
|
|
4165
|
+
}, Gs = {
|
|
4166
4166
|
key: 0,
|
|
4167
4167
|
class: "pv-table-row-number"
|
|
4168
|
-
},
|
|
4168
|
+
}, Ks = /* @__PURE__ */ d({
|
|
4169
4169
|
__name: "GroupedCellRenderer",
|
|
4170
4170
|
props: { params: {} },
|
|
4171
4171
|
setup(e) {
|
|
4172
|
-
let n = e, i = m(
|
|
4172
|
+
let n = e, i = m(ns, O([])), c = m(rs, O(null)), d = m(is, O({})), f = We(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
4173
4173
|
let e = f.value.data;
|
|
4174
4174
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
4175
4175
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -4191,7 +4191,7 @@ var Ms = /* @__PURE__ */ Xt(ks, [["render", js]]), Ns = ["innerHTML"], Ps = { ke
|
|
|
4191
4191
|
}), S = (e) => {
|
|
4192
4192
|
let t = e.node.expanded, n = e.node.rowIndex;
|
|
4193
4193
|
n != null && (d.value[n] = t);
|
|
4194
|
-
}, { isFocused: T, computedFocuses: D, removeFocus: k, canRemoveFocus: A } =
|
|
4194
|
+
}, { isFocused: T, computedFocuses: D, removeFocus: k, canRemoveFocus: A } = Rs(), j = r(() => T(f.value.key, f.value.field) ? "pv-flex" : ""), M = r(() => {
|
|
4195
4195
|
let e = D.value;
|
|
4196
4196
|
return f.value.key && e.includes(f.value.key);
|
|
4197
4197
|
});
|
|
@@ -4206,7 +4206,7 @@ var Ms = /* @__PURE__ */ Xt(ks, [["render", js]]), Ns = ["innerHTML"], Ps = { ke
|
|
|
4206
4206
|
}), (n, r) => (E(), o(t, null, [h.value ? (E(), o("div", {
|
|
4207
4207
|
key: 0,
|
|
4208
4208
|
class: y(j.value)
|
|
4209
|
-
}, [s("div",
|
|
4209
|
+
}, [s("div", zs, [s("p", Bs, [l(P(I(f).rowGroupColumn?.getColDef().headerName) + " ", 1), e.params.displayCount && p.value && b.value > 0 ? (E(), o("span", Vs, " (" + P(b.value.toLocaleString()) + ") ", 1)) : a("", !0)]), s("div", Hs, [s("p", Us, P(g.value), 1)])]), M.value && I(A)() ? (E(), o("div", Ws, [u(Cn, {
|
|
4210
4210
|
variant: "dark",
|
|
4211
4211
|
tooltipPosition: "center-left",
|
|
4212
4212
|
size: "sm"
|
|
@@ -4220,13 +4220,13 @@ var Ms = /* @__PURE__ */ Xt(ks, [["render", js]]), Ns = ["innerHTML"], Ps = { ke
|
|
|
4220
4220
|
}, null, 8, ["class"])]),
|
|
4221
4221
|
"tooltip-content": V(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
4222
4222
|
_: 1
|
|
4223
|
-
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span",
|
|
4223
|
+
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", Gs, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
4224
4224
|
}
|
|
4225
|
-
}),
|
|
4225
|
+
}), qs = /* @__PURE__ */ d({
|
|
4226
4226
|
__name: "AutoGroupColDefRenderer",
|
|
4227
4227
|
props: { params: {} },
|
|
4228
4228
|
setup(e) {
|
|
4229
|
-
let t = e, n = m(
|
|
4229
|
+
let t = e, n = m(rs, O(null)), a = r(() => t.params.rowNode.group), o = r(() => a.value ? t.params.cellParams.node?.rowGroupColumn?.getColDef() ?? null : null), s = r(() => a.value ? null : n.value?.getColDef() ?? null), c = r(() => {
|
|
4230
4230
|
let e = n.value;
|
|
4231
4231
|
if (!e) return t.params.cellParams;
|
|
4232
4232
|
let r = e.getColDef(), i = e.getColId(), a = t.params.cellParams.data, o = a?.[i] ?? null, s = r.valueFormatter, c = null;
|
|
@@ -4245,26 +4245,26 @@ var Ms = /* @__PURE__ */ Xt(ks, [["render", js]]), Ns = ["innerHTML"], Ps = { ke
|
|
|
4245
4245
|
valueFormatted: c
|
|
4246
4246
|
};
|
|
4247
4247
|
});
|
|
4248
|
-
return (t, n) => a.value ? (E(), i(
|
|
4248
|
+
return (t, n) => a.value ? (E(), i(Is, {
|
|
4249
4249
|
key: 0,
|
|
4250
4250
|
"col-def": o.value,
|
|
4251
4251
|
"cell-params": e.params.cellParams
|
|
4252
4252
|
}, {
|
|
4253
|
-
default: V(() => [u(
|
|
4253
|
+
default: V(() => [u(Ks, { params: e.params }, null, 8, ["params"])]),
|
|
4254
4254
|
_: 1
|
|
4255
|
-
}, 8, ["col-def", "cell-params"])) : (E(), i(
|
|
4255
|
+
}, 8, ["col-def", "cell-params"])) : (E(), i(Is, {
|
|
4256
4256
|
key: 1,
|
|
4257
4257
|
"col-def": s.value,
|
|
4258
4258
|
"cell-params": c.value
|
|
4259
4259
|
}, {
|
|
4260
|
-
default: V(() => [u(
|
|
4260
|
+
default: V(() => [u(Ks, { params: e.params }, null, 8, ["params"])]),
|
|
4261
4261
|
_: 1
|
|
4262
4262
|
}, 8, ["col-def", "cell-params"]));
|
|
4263
4263
|
}
|
|
4264
4264
|
});
|
|
4265
4265
|
//#endregion
|
|
4266
4266
|
//#region src/functions/aggregations.ts
|
|
4267
|
-
function
|
|
4267
|
+
function Js(e) {
|
|
4268
4268
|
let t = e.filter((e) => e != null && !isNaN(e)).sort((e, t) => e - t), n = t.length;
|
|
4269
4269
|
return n === 0 ? null : t[Math.floor(n / 2)];
|
|
4270
4270
|
}
|
|
@@ -4272,7 +4272,7 @@ function qs(e) {
|
|
|
4272
4272
|
//#region src/components/tables/PvDataTable/table-components/formatting.ts
|
|
4273
4273
|
var Q = /* @__PURE__ */ function(e) {
|
|
4274
4274
|
return e.String = "string", e.Number = "number", e.Boolean = "boolean", e.Date = "date", e.Currency = "currency", e.Formula = "formula", e.Select = "select", e.Percent = "percent", e.Entity = "entity", e.Id = "id", e.Integer = "integer", e.User = "user", e.Link = "link", e.Location = "location", e.Status = "status", e.Tag = "tag", e.File = "file", e.None = "none", e;
|
|
4275
|
-
}({}),
|
|
4275
|
+
}({}), Ys = (e) => {
|
|
4276
4276
|
switch (e) {
|
|
4277
4277
|
case Q.String: return "fonts";
|
|
4278
4278
|
case Q.Number: return "hash";
|
|
@@ -4294,13 +4294,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4294
4294
|
case Q.None: return null;
|
|
4295
4295
|
default: return null;
|
|
4296
4296
|
}
|
|
4297
|
-
},
|
|
4297
|
+
}, Xs = (e, t) => {
|
|
4298
4298
|
if (!e) return e;
|
|
4299
4299
|
switch (t) {
|
|
4300
4300
|
case Q.Percent: return e.replace(/^%+/, "").trim();
|
|
4301
4301
|
default: return e;
|
|
4302
4302
|
}
|
|
4303
|
-
},
|
|
4303
|
+
}, Zs = (e) => e.includes(".") ? e.replace(/\.?0+$/, "") : e, Qs = (e, t = !1, n = 0) => {
|
|
4304
4304
|
let r = [
|
|
4305
4305
|
"",
|
|
4306
4306
|
"K",
|
|
@@ -4309,15 +4309,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4309
4309
|
"T"
|
|
4310
4310
|
], i = Math.abs(e), a = Math.abs(n), o = t ? 2 : 0, s = Math.floor(Math.log10(i) / 3);
|
|
4311
4311
|
if ((Math.floor(Math.log10(a) / 3) >= s || s > 3) && (o = 2), i < 1e3) return {
|
|
4312
|
-
newValue:
|
|
4312
|
+
newValue: Zs(e.toFixed(o)),
|
|
4313
4313
|
newSuffix: ""
|
|
4314
4314
|
};
|
|
4315
4315
|
let c = r[s] || `e${s * 3}`;
|
|
4316
4316
|
return {
|
|
4317
|
-
newValue:
|
|
4317
|
+
newValue: Zs((e / 10 ** (s * 3)).toFixed(o)),
|
|
4318
4318
|
newSuffix: c
|
|
4319
4319
|
};
|
|
4320
|
-
},
|
|
4320
|
+
}, $s = "bucketCount", ec = [
|
|
4321
4321
|
{
|
|
4322
4322
|
text: "Column",
|
|
4323
4323
|
id: "column",
|
|
@@ -4343,7 +4343,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4343
4343
|
id: "pie",
|
|
4344
4344
|
icon: "chart-pie"
|
|
4345
4345
|
}
|
|
4346
|
-
],
|
|
4346
|
+
], tc = [
|
|
4347
4347
|
{
|
|
4348
4348
|
text: "Grouped Column",
|
|
4349
4349
|
id: "column",
|
|
@@ -4364,21 +4364,21 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4364
4364
|
id: "bar_stacked",
|
|
4365
4365
|
icon: "chart-bar-stacked"
|
|
4366
4366
|
}
|
|
4367
|
-
],
|
|
4367
|
+
], nc = {
|
|
4368
4368
|
text: "Histogram",
|
|
4369
4369
|
id: "histogram",
|
|
4370
4370
|
icon: "chart-column"
|
|
4371
|
-
},
|
|
4371
|
+
}, rc = "--SEPARATOR--", ic = "_sort_total", ac = (e, t, n) => !e || e.length === 0 ? e : e.slice().sort((e, r) => !n.includes(e[t]) - +!n.includes(r[t])), $ = (e) => e && e.context || {}, oc = (e) => {
|
|
4372
4372
|
let t = $(e);
|
|
4373
4373
|
return t.filterValueFormatter && typeof t.filterValueFormatter == "function" ? t.filterValueFormatter : typeof e.valueFormatter == "function" ? e.valueFormatter : null;
|
|
4374
|
-
},
|
|
4374
|
+
}, sc = (e) => $(e).filterSelectMax || null, cc = (e) => {
|
|
4375
4375
|
let t = $(e);
|
|
4376
4376
|
if (t.filterSelectMin) {
|
|
4377
|
-
let n =
|
|
4377
|
+
let n = sc(e);
|
|
4378
4378
|
return t.filterSelectMin === 1 && n === 1;
|
|
4379
4379
|
}
|
|
4380
4380
|
return !1;
|
|
4381
|
-
},
|
|
4381
|
+
}, lc = (e) => {
|
|
4382
4382
|
let t = $(e).dataType;
|
|
4383
4383
|
return t ? [
|
|
4384
4384
|
Q.Currency,
|
|
@@ -4387,28 +4387,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4387
4387
|
Q.Integer,
|
|
4388
4388
|
Q.Formula
|
|
4389
4389
|
].includes(t) : !1;
|
|
4390
|
-
},
|
|
4390
|
+
}, uc = (e) => e ? [e.field, ...(e.children || []).flatMap(uc)] : [], dc = (e) => {
|
|
4391
4391
|
let t = $(e);
|
|
4392
|
-
return t.aggregateFieldHierarchy ?
|
|
4393
|
-
},
|
|
4392
|
+
return t.aggregateFieldHierarchy ? uc(t.aggregateFieldHierarchy) : t.aggregateFields || [];
|
|
4393
|
+
}, fc = (e) => {
|
|
4394
4394
|
let t = $(e);
|
|
4395
4395
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
4396
|
-
},
|
|
4396
|
+
}, pc = (e) => dc(e).length > 0, mc = (e, t) => !e || !t ? e || [] : e.map((e) => {
|
|
4397
4397
|
let n = t.find((t) => t?.field === e.field);
|
|
4398
|
-
return n &&
|
|
4398
|
+
return n && lc(n) ? {
|
|
4399
4399
|
...e,
|
|
4400
|
-
aggFunc:
|
|
4400
|
+
aggFunc: $s
|
|
4401
4401
|
} : e;
|
|
4402
|
-
}),
|
|
4402
|
+
}), hc = (e) => e.map((e) => ({
|
|
4403
4403
|
id: e.getColId(),
|
|
4404
4404
|
displayName: e.getColDef().headerName || "",
|
|
4405
4405
|
field: e.getColDef().field || "",
|
|
4406
4406
|
aggFunc: e.getAggFunc() || void 0
|
|
4407
|
-
})),
|
|
4407
|
+
})), gc = { style: { "line-height": "20px" } }, _c = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, vc = /* @__PURE__ */ d({
|
|
4408
4408
|
__name: "GroupAggCellRenderer",
|
|
4409
4409
|
props: { params: {} },
|
|
4410
4410
|
setup(e) {
|
|
4411
|
-
let t = e, n = m(
|
|
4411
|
+
let t = e, n = m(is, O({})), i = r(() => {
|
|
4412
4412
|
let e = t.params.column?.getColDef(), n = $(e);
|
|
4413
4413
|
if (n.aggFuncDisplayName) return n.aggFuncDisplayName;
|
|
4414
4414
|
let r = t.params.column?.getAggFunc() || "agg";
|
|
@@ -4422,9 +4422,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4422
4422
|
}, c = r(() => t.params.node?.rowIndex), l = r(() => {
|
|
4423
4423
|
let e = !1;
|
|
4424
4424
|
return c.value != null && (e = c.value in n.value ? n.value[c.value] : !1), e;
|
|
4425
|
-
}), u = r(() =>
|
|
4425
|
+
}), u = r(() => lc(t.params.column?.getColDef())), d = r(() => {
|
|
4426
4426
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value || "";
|
|
4427
|
-
return e &&
|
|
4427
|
+
return e && lc(e) ? n.toLocaleString() : n;
|
|
4428
4428
|
}), f = r(() => ({
|
|
4429
4429
|
"flex-direction": u.value ? "row-reverse" : "row",
|
|
4430
4430
|
"--flex-justify": "space-between"
|
|
@@ -4435,20 +4435,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4435
4435
|
style: x(f.value),
|
|
4436
4436
|
class: "pv-flex",
|
|
4437
4437
|
ondblclick: a
|
|
4438
|
-
}, [s("div",
|
|
4438
|
+
}, [s("div", gc, [s("p", null, P(d.value), 1), s("p", _c, P(i.value), 1)])], 4));
|
|
4439
4439
|
}
|
|
4440
|
-
}),
|
|
4440
|
+
}), yc = {
|
|
4441
4441
|
agSetColumnFilter: "set",
|
|
4442
4442
|
agMultiColumnFilter: "multi",
|
|
4443
4443
|
agTextColumnFilter: "text"
|
|
4444
|
-
},
|
|
4444
|
+
}, bc = (e) => !e || !e.filter ? null : e.filter in yc ? yc[e.filter] : null, xc = (e) => e.filterParams?.filters?.findIndex((e) => e.filter === "agSetColumnFilter"), Sc = (e, t) => {
|
|
4445
4445
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
4446
|
-
let n = e?.filterType || null, r =
|
|
4446
|
+
let n = e?.filterType || null, r = bc(t);
|
|
4447
4447
|
if (!r || r === n) return e;
|
|
4448
4448
|
if (r !== "multi") return console.warn(`Cannot map filter for column ${t.field} with type ${n} to col def ${r}`), {};
|
|
4449
4449
|
let i = t.filterParams?.filters?.length, a = Array(i).fill(null);
|
|
4450
4450
|
if (e.filterType == "set") {
|
|
4451
|
-
let n = e.values || [], r =
|
|
4451
|
+
let n = e.values || [], r = xc(t);
|
|
4452
4452
|
r > -1 && r < a.length && (a[r] = {
|
|
4453
4453
|
filterType: "set",
|
|
4454
4454
|
values: n
|
|
@@ -4458,7 +4458,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4458
4458
|
filterType: "multi",
|
|
4459
4459
|
filterModels: a
|
|
4460
4460
|
};
|
|
4461
|
-
},
|
|
4461
|
+
}, Cc = (e, t) => {
|
|
4462
4462
|
let n = t.filter((e) => e !== null && e !== "");
|
|
4463
4463
|
return n.length === 0 ? null : n.length === 1 ? {
|
|
4464
4464
|
filterType: "text",
|
|
@@ -4475,18 +4475,18 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4475
4475
|
filter: t
|
|
4476
4476
|
}))
|
|
4477
4477
|
};
|
|
4478
|
-
},
|
|
4478
|
+
}, wc = (e) => {
|
|
4479
4479
|
let t = [];
|
|
4480
4480
|
return Object.keys(e).forEach((n) => {
|
|
4481
4481
|
let r = e[n];
|
|
4482
4482
|
if (r) {
|
|
4483
4483
|
if (r.filterType === "set" && r.values) {
|
|
4484
|
-
let e =
|
|
4484
|
+
let e = Cc(n, r.values);
|
|
4485
4485
|
e && t.push(e);
|
|
4486
4486
|
} else if (r.filterType === "multi" && r.filterModels) {
|
|
4487
4487
|
let e = r.filterModels.find((e) => e && e.filterType === "set");
|
|
4488
4488
|
if (e?.values) {
|
|
4489
|
-
let r =
|
|
4489
|
+
let r = Cc(n, e.values);
|
|
4490
4490
|
r && t.push(r);
|
|
4491
4491
|
}
|
|
4492
4492
|
}
|
|
@@ -4496,11 +4496,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4496
4496
|
type: "AND",
|
|
4497
4497
|
conditions: t
|
|
4498
4498
|
};
|
|
4499
|
-
},
|
|
4499
|
+
}, Tc = (e, t, n = !1) => {
|
|
4500
4500
|
if (!e) return e;
|
|
4501
4501
|
let r = { ...e }, i = r.filter?.filterModel || {};
|
|
4502
4502
|
if (n) {
|
|
4503
|
-
let t = e?.filter?.advancedFilterModel, n =
|
|
4503
|
+
let t = e?.filter?.advancedFilterModel, n = wc(i), a = t || null, o = null;
|
|
4504
4504
|
return o = a && n ? {
|
|
4505
4505
|
filterType: "join",
|
|
4506
4506
|
type: "AND",
|
|
@@ -4513,12 +4513,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4513
4513
|
}
|
|
4514
4514
|
let a = {};
|
|
4515
4515
|
return Object.keys(i).forEach((e) => {
|
|
4516
|
-
a[e] =
|
|
4516
|
+
a[e] = Sc(i[e] || {}, t.find((t) => t.field === e));
|
|
4517
4517
|
}), r.filter = {
|
|
4518
4518
|
...r.filter,
|
|
4519
4519
|
filterModel: a
|
|
4520
4520
|
}, r;
|
|
4521
|
-
},
|
|
4521
|
+
}, Ec = (e) => {
|
|
4522
4522
|
if (!e || e.queryTerms.length === 0) return {};
|
|
4523
4523
|
let t = {};
|
|
4524
4524
|
return e.queryTerms.forEach((e) => {
|
|
@@ -4550,7 +4550,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4550
4550
|
};
|
|
4551
4551
|
}
|
|
4552
4552
|
}), t;
|
|
4553
|
-
},
|
|
4553
|
+
}, Dc = (e) => {
|
|
4554
4554
|
if (!e || e.queryTerms.length === 0) return null;
|
|
4555
4555
|
let t = /* @__PURE__ */ new Map();
|
|
4556
4556
|
e.queryTerms.forEach((e) => {
|
|
@@ -4585,7 +4585,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4585
4585
|
type: "AND",
|
|
4586
4586
|
conditions: n
|
|
4587
4587
|
};
|
|
4588
|
-
},
|
|
4588
|
+
}, Oc = (e, t) => {
|
|
4589
4589
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi") return t;
|
|
4590
4590
|
if (e.filter != "agMultiColumnFilter") return console.error("Unsupported filter type for column", e, t), t;
|
|
4591
4591
|
let n = e.filterParams?.filters || [], r = Array(n.length).fill(null), i = n.findIndex((e) => e.filter == "agTextColumnFilter" && t.filterType == "text" ? !0 : e.filter == "agSetColumnFilter" && t.filterType == "set");
|
|
@@ -4593,26 +4593,26 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4593
4593
|
filterType: "multi",
|
|
4594
4594
|
filterModels: r
|
|
4595
4595
|
};
|
|
4596
|
-
},
|
|
4596
|
+
}, kc = (e, t) => {
|
|
4597
4597
|
if (!e || Object.keys(e).length === 0) return t;
|
|
4598
4598
|
if (e.filterType != t.filterType || e.filterType != "multi") return e;
|
|
4599
4599
|
let n = { ...e };
|
|
4600
4600
|
return t.filterModels?.forEach((e, t) => {
|
|
4601
4601
|
n.filterModels ||= [], n.filterModels[t] || (n.filterModels[t] = e);
|
|
4602
4602
|
}), n;
|
|
4603
|
-
},
|
|
4603
|
+
}, Ac = (e, t) => e ? "filterType" in e ? e.filterType === "join" ? e.conditions.some((e) => Ac(e, t)) : e.colId === t : t in e : !1, jc = (e, t, n) => {
|
|
4604
4604
|
let r = { ...t };
|
|
4605
4605
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((t) => {
|
|
4606
|
-
let i =
|
|
4607
|
-
r[t] =
|
|
4606
|
+
let i = Oc(e.find((e) => e.field === t), n[t]), a = r[t];
|
|
4607
|
+
r[t] = kc(a, i);
|
|
4608
4608
|
}), r);
|
|
4609
|
-
},
|
|
4609
|
+
}, Mc = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? xc(e) !== void 0 && xc(e) > -1 : !1, Nc = (e, t) => {
|
|
4610
4610
|
let n = { ...e };
|
|
4611
4611
|
if (n.filter == "agSetColumnFilter") return n.filterParams = {
|
|
4612
4612
|
...n.filterParams,
|
|
4613
4613
|
values: t
|
|
4614
4614
|
}, n;
|
|
4615
|
-
let r =
|
|
4615
|
+
let r = xc(e);
|
|
4616
4616
|
if (r !== void 0 && r > -1) {
|
|
4617
4617
|
let e = n.filterParams || {}, i = e.filters || [], a = i[r];
|
|
4618
4618
|
a.filterParams = {
|
|
@@ -4626,13 +4626,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4626
4626
|
};
|
|
4627
4627
|
}
|
|
4628
4628
|
return n;
|
|
4629
|
-
},
|
|
4629
|
+
}, Pc = async (e, t) => {
|
|
4630
4630
|
let n = t.field || "", r = await e.getColumnFilterInstance(n);
|
|
4631
4631
|
if (r?.filterType == "set") return r;
|
|
4632
4632
|
if (r?.filterType != "multi") return null;
|
|
4633
|
-
let i =
|
|
4633
|
+
let i = xc(t);
|
|
4634
4634
|
return i !== void 0 && i > -1 ? r.getChildFilterInstance(i) : null;
|
|
4635
|
-
},
|
|
4635
|
+
}, Fc = async (e, t, n) => {
|
|
4636
4636
|
let r = t.field || "", i = await e.getColumnFilterInstance(r);
|
|
4637
4637
|
if (i?.filterType == "set") return !n || n.length === 0 ? null : { values: n };
|
|
4638
4638
|
if (i?.filterType != "multi") return null;
|
|
@@ -4641,50 +4641,50 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4641
4641
|
filterType: "multi",
|
|
4642
4642
|
filterModels: Array(t.filterParams?.filters?.length).fill(null)
|
|
4643
4643
|
};
|
|
4644
|
-
let o =
|
|
4644
|
+
let o = xc(t), s = !n || n.length === 0 ? null : {
|
|
4645
4645
|
filterType: "set",
|
|
4646
4646
|
values: n
|
|
4647
4647
|
};
|
|
4648
4648
|
return o !== void 0 && o > -1 && a && a.filterModels && (a.filterModels[o] = s), a;
|
|
4649
|
-
},
|
|
4649
|
+
}, Ic = (e, t) => {
|
|
4650
4650
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
4651
4651
|
let n = t[e.field];
|
|
4652
4652
|
if (!n) return [];
|
|
4653
4653
|
if (n.filterType === "set" && "values" in n) return n.values || [];
|
|
4654
4654
|
if (n.filterType === "multi") {
|
|
4655
|
-
let t =
|
|
4655
|
+
let t = xc(e);
|
|
4656
4656
|
if (t !== void 0 && t > -1) {
|
|
4657
4657
|
let e = n.filterModels[t];
|
|
4658
4658
|
if (e && e.filterType === "set" && "values" in e) return e.values || [];
|
|
4659
4659
|
}
|
|
4660
4660
|
}
|
|
4661
4661
|
return [];
|
|
4662
|
-
},
|
|
4662
|
+
}, Lc = (e) => !!e && "filterType" in e, Rc = (e) => e.filterType === "join" ? e.conditions.some(Rc) : "colId" in e, zc = (e) => e ? Lc(e) ? !Rc(e) : Object.keys(e).length === 0 : !0, Bc = (e) => {
|
|
4663
4663
|
if (e === void 0) return "undefined";
|
|
4664
4664
|
if (typeof e != "object" || !e) return JSON.stringify(e) ?? String(e);
|
|
4665
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
4665
|
+
if (Array.isArray(e)) return `[${e.map(Bc).join(",")}]`;
|
|
4666
4666
|
let t = e;
|
|
4667
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
4668
|
-
},
|
|
4667
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${Bc(t[e])}`).join(",")}}`;
|
|
4668
|
+
}, Vc = (e) => {
|
|
4669
4669
|
if (e.filterType !== "join") return e;
|
|
4670
|
-
let t = e, n = [...t.conditions ?? []].map(
|
|
4670
|
+
let t = e, n = [...t.conditions ?? []].map(Vc).sort((e, t) => Bc(e).localeCompare(Bc(t)));
|
|
4671
4671
|
return {
|
|
4672
4672
|
...t,
|
|
4673
4673
|
conditions: n
|
|
4674
4674
|
};
|
|
4675
|
-
},
|
|
4676
|
-
if (
|
|
4677
|
-
let n =
|
|
4678
|
-
if (n !==
|
|
4679
|
-
if (n) return tt(
|
|
4675
|
+
}, Hc = (e, t) => {
|
|
4676
|
+
if (zc(e) && zc(t)) return !0;
|
|
4677
|
+
let n = Lc(e);
|
|
4678
|
+
if (n !== Lc(t)) return !1;
|
|
4679
|
+
if (n) return tt(Vc(e), Vc(t));
|
|
4680
4680
|
let r = e, i = t, a = r ? Object.keys(r) : [], o = i ? Object.keys(i) : [];
|
|
4681
4681
|
if (a.length !== o.length) return !1;
|
|
4682
4682
|
for (let e of a) if (!tt(r?.[e], i?.[e])) return !1;
|
|
4683
4683
|
return !0;
|
|
4684
|
-
},
|
|
4685
|
-
if (!t) return
|
|
4684
|
+
}, Uc = (e, t, n) => {
|
|
4685
|
+
if (!t) return Wc(e, n);
|
|
4686
4686
|
if (!e) return t;
|
|
4687
|
-
let r =
|
|
4687
|
+
let r = Wc(e, n);
|
|
4688
4688
|
return r ? r.filterType === "join" && r.type === "AND" ? {
|
|
4689
4689
|
filterType: "join",
|
|
4690
4690
|
type: "AND",
|
|
@@ -4694,53 +4694,53 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4694
4694
|
type: "AND",
|
|
4695
4695
|
conditions: [r, t]
|
|
4696
4696
|
} : t;
|
|
4697
|
-
},
|
|
4697
|
+
}, Wc = (e, t) => {
|
|
4698
4698
|
if (!e) return null;
|
|
4699
4699
|
if (e.filterType !== "join") return e.colId === t ? null : e;
|
|
4700
|
-
let n = e, r = n.conditions.map((e) =>
|
|
4700
|
+
let n = e, r = n.conditions.map((e) => Wc(e, t)).filter((e) => e !== null);
|
|
4701
4701
|
return r.length === 0 ? null : r.length === 1 ? r[0] : {
|
|
4702
4702
|
filterType: "join",
|
|
4703
4703
|
type: n.type,
|
|
4704
4704
|
conditions: r
|
|
4705
4705
|
};
|
|
4706
|
-
},
|
|
4706
|
+
}, Gc = (e, t) => {
|
|
4707
4707
|
if (!t) return [];
|
|
4708
4708
|
if (t.filterType !== "join") {
|
|
4709
4709
|
let n = t;
|
|
4710
4710
|
return n.colId === e && n.type === "equals" && n.filter ? [String(n.filter)] : [];
|
|
4711
4711
|
}
|
|
4712
4712
|
let n = t, r = [];
|
|
4713
|
-
for (let t of n.conditions) r.push(...
|
|
4713
|
+
for (let t of n.conditions) r.push(...Gc(e, t));
|
|
4714
4714
|
return r;
|
|
4715
|
-
},
|
|
4715
|
+
}, Kc = (e, t) => {
|
|
4716
4716
|
if (!e || !t || Object.keys(t).length === 0) return [];
|
|
4717
4717
|
let n = t[e];
|
|
4718
4718
|
return n ? n.filterType === "set" && "values" in n ? n.values || [] : n.filterType === "multi" && n.filterModels ? n.filterModels.find((e) => e?.filterType === "set")?.values ?? [] : [] : [];
|
|
4719
|
-
},
|
|
4719
|
+
}, qc = (e, t) => {
|
|
4720
4720
|
if (!e) return null;
|
|
4721
|
-
if (
|
|
4722
|
-
let n =
|
|
4721
|
+
if (Lc(e)) {
|
|
4722
|
+
let n = Gc(t, e);
|
|
4723
4723
|
return n.length > 0 ? n : null;
|
|
4724
4724
|
}
|
|
4725
|
-
let n =
|
|
4725
|
+
let n = Kc(t, e);
|
|
4726
4726
|
return n.length > 0 ? n : null;
|
|
4727
|
-
},
|
|
4727
|
+
}, Jc = (e, t) => {
|
|
4728
4728
|
if (!e) return e;
|
|
4729
|
-
if (
|
|
4729
|
+
if (Lc(e)) return Wc(e, t);
|
|
4730
4730
|
let n = { ...e };
|
|
4731
4731
|
return delete n[t], n;
|
|
4732
|
-
},
|
|
4733
|
-
if (
|
|
4734
|
-
let r =
|
|
4735
|
-
return
|
|
4732
|
+
}, Yc = (e, t, n, r) => {
|
|
4733
|
+
if (Lc(e) || !e && r) {
|
|
4734
|
+
let r = Cc(t, n);
|
|
4735
|
+
return Uc(e ?? null, r, t);
|
|
4736
4736
|
}
|
|
4737
4737
|
let i = { ...e || {} };
|
|
4738
4738
|
return i[t] = {
|
|
4739
4739
|
filterType: "set",
|
|
4740
4740
|
values: n
|
|
4741
4741
|
}, i;
|
|
4742
|
-
},
|
|
4743
|
-
if (
|
|
4742
|
+
}, Xc = (e, t, n, r) => {
|
|
4743
|
+
if (Lc(e) || !e && r) return Yc(e, t, n, r);
|
|
4744
4744
|
let i = { ...e || {} }, a = i[t];
|
|
4745
4745
|
if (a?.filterType === "multi" && a?.filterModels) {
|
|
4746
4746
|
let e = a.filterModels.map((e) => e?.filterType === "set" ? {
|
|
@@ -4756,11 +4756,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4756
4756
|
values: n
|
|
4757
4757
|
};
|
|
4758
4758
|
return i;
|
|
4759
|
-
},
|
|
4760
|
-
let i = (
|
|
4761
|
-
return i.length === 0 ?
|
|
4762
|
-
},
|
|
4763
|
-
let e =
|
|
4759
|
+
}, Zc = (e, t, n, r) => {
|
|
4760
|
+
let i = (qc(e, t) ?? []).filter((e) => e !== n);
|
|
4761
|
+
return i.length === 0 ? Jc(e, t) : Xc(e, t, i, r);
|
|
4762
|
+
}, Qc = (e) => !!(e && "filterType" in e), $c = (e) => !!(e && !Qc(e)), el = (e) => !!(e && !Qc(e)), tl = () => {
|
|
4763
|
+
let e = Po(), t = N(null), n = e.filterModel, i = e.stagedFilterModel, a = O(null), o = O({}), s = O({}), c = e.filterRequestIdMap, l = O(0), u = e.filterLoadingMap, d = O(void 0), f = e.filterHasMoreMap, p = e.filterTotalCountMap, m = O(void 0), h = (t) => ({
|
|
4764
4764
|
hasMore: e.filterHasMoreMap.value[t],
|
|
4765
4765
|
totalCount: e.filterTotalCountMap.value[t],
|
|
4766
4766
|
values: e.filterOptionsMap.value[t] ?? []
|
|
@@ -4775,7 +4775,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4775
4775
|
});
|
|
4776
4776
|
let g = r(() => d.value != null), _ = r(() => {
|
|
4777
4777
|
let e = n.value;
|
|
4778
|
-
return e ?
|
|
4778
|
+
return e ? Qc(e) ? !Rc(e) : Object.keys(e).length === 0 : !0;
|
|
4779
4779
|
}), v = r(() => {
|
|
4780
4780
|
let e = a.value || {};
|
|
4781
4781
|
return Object.keys(e).length === 0;
|
|
@@ -4813,9 +4813,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4813
4813
|
c.value[e] = (c.value[e] || 0) + 1;
|
|
4814
4814
|
}, z = async (e, t) => {
|
|
4815
4815
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
4816
|
-
if (t?.useStaged !== !1 && i.value != null) if (
|
|
4816
|
+
if (t?.useStaged !== !1 && i.value != null) if ($c(i.value)) {
|
|
4817
4817
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
4818
|
-
o = F(e &&
|
|
4818
|
+
o = F(e && $c(e) ? e : void 0);
|
|
4819
4819
|
} else o = i.value;
|
|
4820
4820
|
let l = {
|
|
4821
4821
|
api: t?.api,
|
|
@@ -4897,7 +4897,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4897
4897
|
}, re = (e, t) => {
|
|
4898
4898
|
b.value[e] = t;
|
|
4899
4899
|
let r = [], i = n.value;
|
|
4900
|
-
if (
|
|
4900
|
+
if (el(i)) {
|
|
4901
4901
|
let t = i[e];
|
|
4902
4902
|
if (t?.values) {
|
|
4903
4903
|
let e = t.values || [];
|
|
@@ -5014,14 +5014,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5014
5014
|
filterValuesHasMoreMap: f,
|
|
5015
5015
|
filterValuesTotalCountMap: p
|
|
5016
5016
|
};
|
|
5017
|
-
},
|
|
5018
|
-
D(
|
|
5019
|
-
},
|
|
5020
|
-
let e = m(
|
|
5017
|
+
}, nl = tl, rl = (e) => {
|
|
5018
|
+
D(Jo, e);
|
|
5019
|
+
}, il = () => m(Jo, null) || tl(), al = () => {
|
|
5020
|
+
let e = m(Jo, null);
|
|
5021
5021
|
if (!e) throw Error("No PvDataTable filter store was provided. Create one with createPvDataTableFilterStore() and pass it to PvDataTable/PvDataTableWithChart or provide it with providePvDataTableFilterStore().");
|
|
5022
5022
|
return e;
|
|
5023
|
-
},
|
|
5024
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(
|
|
5023
|
+
}, ol = (e) => {
|
|
5024
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(Zo, O(null)), c = il(), { fetchFilterValues: l, invalidateFilterRequest: u, filterModel: d, stagedFilterModel: f, filterModelCleared: p, filterValuesLoadingStatus: h, filterValueContext: g, getFilterSelectedValues: _, isServerSideFilter: y, setFilterValueSearchText: b, setFilterSelectedValues: x, getFilterValues: S, setFilterValues: C, filterStaleMap: E, refreshFiltersInBackground: D, stageFilterChangesUntilDropdownCloses: k, filterSearchMinLength: A, markOtherFieldsStale: j, registerAggregateField: M, registerFilterField: N, unregisterFilterField: P, getStagedSelectedValues: F, setStagedSelectedValues: I, filterValueSearchTextMap: ee, filterValuesHasMoreMap: L, filterValuesTotalCountMap: R } = c, { computedFocuses: z, removeFocus: te, computedFocusType: ne } = Rs(), re = m(os, O(!1)), V = m(as, O(!1)), H = m(ys, O(!1)), U = r({
|
|
5025
5025
|
get: () => q.value ? F(G.value) : _(G.value),
|
|
5026
5026
|
set: (e) => {
|
|
5027
5027
|
q.value ? I(G.value, e) : x(G.value, e);
|
|
@@ -5039,7 +5039,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5039
5039
|
}), se = r(() => {
|
|
5040
5040
|
let e = A.value ?? 0, t = oe.value?.length ?? 0;
|
|
5041
5041
|
return e > 0 && t > 0 && t < e;
|
|
5042
|
-
}), G = r(() => t.value.field || ""), K = r(() => t.value.filter || ""), ce = r(() => t.value.headerName || ""), q = r(() => n?.value === "vertical"), le = O(!1), ue = O(!1), de = O([]), fe = r(() =>
|
|
5042
|
+
}), G = r(() => t.value.field || ""), K = r(() => t.value.filter || ""), ce = r(() => t.value.headerName || ""), q = r(() => n?.value === "vertical"), le = O(!1), ue = O(!1), de = O([]), fe = r(() => oc(t.value)), pe = r(() => sc(t.value)), me = r(() => cc(t.value)), he = r(() => $(t.value).filterOptionsSortDescription), ge = r(() => $(t.value).filterOptionsSortTooltip), _e = r(() => !$(t.value).filterSearch), ve = r(() => $(t.value).emptyFilterResultsRenderer), ye = r(() => $(t.value).filterOptionsRenderer), be = r(() => $(t.value).filterHeaderRenderer), J = r(() => $(t.value).filterFooterRenderer), xe = r(() => pe.value ? U.value.length >= pe.value : !1), Se = r(() => W.value.filter((e) => e != null && !U.value.includes(e))), Ce = r(() => R.value[G.value]), we = r(() => L.value[G.value]), Y = r(() => pc(t.value)), Te = () => new Set([G.value, ...dc(t.value)]), Ee = (e, t) => {
|
|
5043
5043
|
let n = new Set(e), r = new Set(t);
|
|
5044
5044
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
5045
5045
|
}, De = O([]), Oe = O("[]"), ke = r(() => W.value.length === 1 && W.value[0] === null && U.value.length === 0), Ae = (e = !1) => {
|
|
@@ -5047,8 +5047,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5047
5047
|
let n = [];
|
|
5048
5048
|
if (H.value && s.value) {
|
|
5049
5049
|
let e = s.value.getAdvancedFilterModel();
|
|
5050
|
-
n =
|
|
5051
|
-
} else n =
|
|
5050
|
+
n = Gc(G.value, e);
|
|
5051
|
+
} else n = Ic(t.value, d.value);
|
|
5052
5052
|
e ? U.value = n : U.value = Array.from(new Set([..._(G.value), ...n]));
|
|
5053
5053
|
}, je = (e) => {
|
|
5054
5054
|
let t = (n) => {
|
|
@@ -5073,7 +5073,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5073
5073
|
}
|
|
5074
5074
|
return;
|
|
5075
5075
|
}
|
|
5076
|
-
let u = await
|
|
5076
|
+
let u = await Pc(s.value, t.value);
|
|
5077
5077
|
if (u) {
|
|
5078
5078
|
if (y.value && c) {
|
|
5079
5079
|
u.refreshFilterValues();
|
|
@@ -5095,7 +5095,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5095
5095
|
let n = fe.value, r = t, i = Fe(t);
|
|
5096
5096
|
if (i && Y.value) {
|
|
5097
5097
|
let e = s.value?.getColumnDef(i);
|
|
5098
|
-
n = e ?
|
|
5098
|
+
n = e ? oc(e) ?? n : n, r = Re(t, e ?? void 0);
|
|
5099
5099
|
}
|
|
5100
5100
|
return n ? n({
|
|
5101
5101
|
value: Le(e, r),
|
|
@@ -5112,7 +5112,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5112
5112
|
field: t[0],
|
|
5113
5113
|
value: t[1]
|
|
5114
5114
|
};
|
|
5115
|
-
}, Ge = (e) =>
|
|
5115
|
+
}, Ge = (e) => yo(e, Je()), Z = (e) => {
|
|
5116
5116
|
let t = X(e.value), n = { ...e };
|
|
5117
5117
|
return !n.field && !n.colField && t.field && (n.field = t.field), n.rawValue == null && n.metadata?.rawValue == null && t.field && (n.rawValue = t.value), e.children?.length && (n.children = e.children.map(Z)), n;
|
|
5118
5118
|
}, Ke = r(() => [...c.filterValueMap.value[G.value] || [], ...c.filterValueSelectedMetadataMap.value[G.value] || []].map((e) => e && Z(e))), Je = () => Ke.value, Ye = (e, t) => {
|
|
@@ -5129,7 +5129,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5129
5129
|
let e = n.children ? Xe(n.children, t) : void 0;
|
|
5130
5130
|
if (e) return e;
|
|
5131
5131
|
}
|
|
5132
|
-
}, Ze = (e, t) =>
|
|
5132
|
+
}, Ze = (e, t) => bo(Je(), e, t), Qe = (e) => {
|
|
5133
5133
|
let t = (n) => {
|
|
5134
5134
|
if (n) {
|
|
5135
5135
|
if (String(Ie(n) ?? X(n.value).value) === e) return n;
|
|
@@ -5164,7 +5164,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5164
5164
|
};
|
|
5165
5165
|
}, et = (e) => {
|
|
5166
5166
|
let n = Je(), r = Ye(n, (t) => t.value === e.id);
|
|
5167
|
-
return r?.children?.length ? r : Xe(n, e.id) || (r && Fe(r) ===
|
|
5167
|
+
return r?.children?.length ? r : Xe(n, e.id) || (r && Fe(r) === fc(t.value) ? r : $e(e.id) || r);
|
|
5168
5168
|
}, tt = (e) => {
|
|
5169
5169
|
if (!Y.value) return;
|
|
5170
5170
|
let t = c.filterValueSelectedMetadataMap.value[G.value] || [], n = /* @__PURE__ */ new Map();
|
|
@@ -5186,32 +5186,41 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5186
5186
|
}, rt = (e) => {
|
|
5187
5187
|
let n = g(G.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = he.value ? "suggestions" : null;
|
|
5188
5188
|
n?.isPreference && (i = "preferences");
|
|
5189
|
-
let a = null, o = n?.matchedValue;
|
|
5190
|
-
|
|
5189
|
+
let a = null, o = Be(e) || "", l = n?.matchedValue;
|
|
5190
|
+
l ? a = to({
|
|
5191
|
+
fallbackSubText: n?.subText,
|
|
5191
5192
|
getDisplayName: Ue,
|
|
5192
5193
|
matchedField: n?.matchedField,
|
|
5193
|
-
matchedValue:
|
|
5194
|
+
matchedValue: l,
|
|
5195
|
+
primaryText: o,
|
|
5194
5196
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
5195
5197
|
}) : n?.subText ? a = n.subText : Fe(n) && Y.value && !r && (a = Ue(Fe(n)));
|
|
5196
|
-
let
|
|
5197
|
-
if (r && (
|
|
5198
|
-
let
|
|
5198
|
+
let u, f, p;
|
|
5199
|
+
if (r && (u = (n.children ?? []).map((e) => {
|
|
5200
|
+
let n = e.matchedValue ?? e.menuOption?.searchText, r = ze(e.value, e) || "";
|
|
5199
5201
|
return {
|
|
5200
5202
|
...e.menuOption,
|
|
5201
5203
|
id: e.value,
|
|
5202
|
-
text:
|
|
5203
|
-
searchText:
|
|
5204
|
-
subText:
|
|
5204
|
+
text: r,
|
|
5205
|
+
searchText: n,
|
|
5206
|
+
subText: to({
|
|
5207
|
+
fallbackSubText: e.subText,
|
|
5208
|
+
getDisplayName: Ue,
|
|
5209
|
+
matchedField: e.matchedField,
|
|
5210
|
+
matchedValue: n,
|
|
5211
|
+
primaryText: r,
|
|
5212
|
+
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
5213
|
+
}),
|
|
5205
5214
|
subduedText: e.subduedText,
|
|
5206
5215
|
disabled: e.menuOption?.disabled ?? He(e.value),
|
|
5207
5216
|
context: e,
|
|
5208
5217
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5209
5218
|
};
|
|
5210
|
-
}),
|
|
5219
|
+
}), f = n.totalChildCount, f && f > u.length && n.value != null)) {
|
|
5211
5220
|
let e = n.value;
|
|
5212
|
-
|
|
5221
|
+
p = async (n) => {
|
|
5213
5222
|
if (!s.value || !c.filterStoreHandler.value) return;
|
|
5214
|
-
let r = n?.offset ??
|
|
5223
|
+
let r = n?.offset ?? u.length, i = await c.filterStoreHandler.value({
|
|
5215
5224
|
api: s.value,
|
|
5216
5225
|
colDef: t.value,
|
|
5217
5226
|
field: G.value,
|
|
@@ -5222,13 +5231,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5222
5231
|
reason: "child-load-more"
|
|
5223
5232
|
});
|
|
5224
5233
|
return (((i && !Array.isArray(i) ? i.values : i) || []).find((t) => t?.value === e)?.children || []).map((e) => {
|
|
5225
|
-
let
|
|
5234
|
+
let n = e.matchedValue ?? e.menuOption?.searchText, r = ze(e.value, e) || "";
|
|
5226
5235
|
return {
|
|
5227
5236
|
...e.menuOption,
|
|
5228
5237
|
id: e.value,
|
|
5229
|
-
text:
|
|
5230
|
-
searchText:
|
|
5231
|
-
subText:
|
|
5238
|
+
text: r,
|
|
5239
|
+
searchText: n,
|
|
5240
|
+
subText: to({
|
|
5241
|
+
fallbackSubText: e.subText,
|
|
5242
|
+
getDisplayName: Ue,
|
|
5243
|
+
matchedField: e.matchedField,
|
|
5244
|
+
matchedValue: n,
|
|
5245
|
+
primaryText: r,
|
|
5246
|
+
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
5247
|
+
}),
|
|
5232
5248
|
subduedText: e.subduedText,
|
|
5233
5249
|
disabled: e.menuOption?.disabled ?? He(e.value),
|
|
5234
5250
|
context: e,
|
|
@@ -5240,17 +5256,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5240
5256
|
return {
|
|
5241
5257
|
...n?.menuOption,
|
|
5242
5258
|
id: e || "",
|
|
5243
|
-
text:
|
|
5244
|
-
searchText:
|
|
5259
|
+
text: o,
|
|
5260
|
+
searchText: l,
|
|
5245
5261
|
subduedText: n?.subduedText,
|
|
5246
5262
|
subText: a || void 0,
|
|
5247
5263
|
groupingLabel: i || "",
|
|
5248
5264
|
disabled: n?.menuOption?.disabled ?? (r ? !1 : He(e)),
|
|
5249
5265
|
context: n || { value: e || "" },
|
|
5250
5266
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
5251
|
-
children:
|
|
5252
|
-
totalChildCount:
|
|
5253
|
-
handleSeeMore:
|
|
5267
|
+
children: u,
|
|
5268
|
+
totalChildCount: f,
|
|
5269
|
+
handleSeeMore: p
|
|
5254
5270
|
};
|
|
5255
5271
|
}, it = r(() => {
|
|
5256
5272
|
let e = [...Y.value ? nt() : U.value.filter((e) => e != null && e !== "" && !W.value.includes(e)), ...W.value];
|
|
@@ -5291,27 +5307,27 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5291
5307
|
if (e !== void 0 && n !== void 0) {
|
|
5292
5308
|
let r = e || G.value, i = n;
|
|
5293
5309
|
if (H.value) {
|
|
5294
|
-
let e =
|
|
5310
|
+
let e = Cc(r, i || []);
|
|
5295
5311
|
if (q.value) {
|
|
5296
5312
|
let t = f.value;
|
|
5297
|
-
f.value =
|
|
5313
|
+
f.value = Uc(t, e, r), j(new Set([r]));
|
|
5298
5314
|
return;
|
|
5299
5315
|
}
|
|
5300
|
-
let t =
|
|
5316
|
+
let t = Uc(s.value.getAdvancedFilterModel(), e, r);
|
|
5301
5317
|
v(() => {
|
|
5302
5318
|
s.value?.setAdvancedFilterModel(t);
|
|
5303
5319
|
}), j(new Set([r]));
|
|
5304
5320
|
return;
|
|
5305
5321
|
}
|
|
5306
5322
|
if (q.value) {
|
|
5307
|
-
let e = await
|
|
5323
|
+
let e = await Fc(s.value, t.value, i);
|
|
5308
5324
|
f.value = {
|
|
5309
5325
|
...f.value,
|
|
5310
5326
|
[r]: e
|
|
5311
5327
|
};
|
|
5312
5328
|
return;
|
|
5313
5329
|
}
|
|
5314
|
-
let a = await
|
|
5330
|
+
let a = await Fc(s.value, t.value, i);
|
|
5315
5331
|
s.value.setColumnFilterModel(r, a).then(() => {
|
|
5316
5332
|
s.value && s.value.onFilterChanged();
|
|
5317
5333
|
});
|
|
@@ -5321,15 +5337,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5321
5337
|
if (H.value) {
|
|
5322
5338
|
let e = q.value ? f.value : s.value.getAdvancedFilterModel(), n = e;
|
|
5323
5339
|
if (Y.value) {
|
|
5324
|
-
let e =
|
|
5340
|
+
let e = dc(t.value), r = [];
|
|
5325
5341
|
for (let t of e) {
|
|
5326
5342
|
let e = i[t] || [];
|
|
5327
5343
|
if (e.length > 0) {
|
|
5328
|
-
let n =
|
|
5344
|
+
let n = Cc(t, e);
|
|
5329
5345
|
n && r.push(n);
|
|
5330
5346
|
}
|
|
5331
5347
|
}
|
|
5332
|
-
for (let t of e) n =
|
|
5348
|
+
for (let t of e) n = Uc(n, null, t);
|
|
5333
5349
|
if (r.length > 0) {
|
|
5334
5350
|
let e = r.length === 1 ? r[0] : {
|
|
5335
5351
|
filterType: "join",
|
|
@@ -5343,23 +5359,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5343
5359
|
} : e;
|
|
5344
5360
|
}
|
|
5345
5361
|
} else {
|
|
5346
|
-
let t = U.value.length > 0 ? U.value : null, r =
|
|
5347
|
-
n =
|
|
5362
|
+
let t = U.value.length > 0 ? U.value : null, r = Cc(G.value, t || []);
|
|
5363
|
+
n = Uc(n, r, G.value);
|
|
5348
5364
|
let i = !1;
|
|
5349
5365
|
if (a?.value) {
|
|
5350
5366
|
let e = o.filterGroup?.fields ?? [];
|
|
5351
5367
|
for (let t of e) {
|
|
5352
5368
|
let e = a.value.has(t);
|
|
5353
|
-
if (e ===
|
|
5369
|
+
if (e === Gc(t, n).includes("true")) continue;
|
|
5354
5370
|
i = !0;
|
|
5355
|
-
let r = e ?
|
|
5356
|
-
n =
|
|
5371
|
+
let r = e ? Cc(t, ["true"]) : null;
|
|
5372
|
+
n = Uc(n, r, t);
|
|
5357
5373
|
}
|
|
5358
5374
|
}
|
|
5359
|
-
let s = U.value.filter((e) => e !== null), c =
|
|
5375
|
+
let s = U.value.filter((e) => e !== null), c = Gc(G.value, e), l = new Set(c), u = new Set(s);
|
|
5360
5376
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
5361
5377
|
}
|
|
5362
|
-
if (r?.skipIfUnchanged &&
|
|
5378
|
+
if (r?.skipIfUnchanged && Hc(e, n)) return;
|
|
5363
5379
|
let c = Y.value ? Te() : new Set([G.value]);
|
|
5364
5380
|
if (q.value) f.value = n, j(c);
|
|
5365
5381
|
else {
|
|
@@ -5372,24 +5388,24 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5372
5388
|
}
|
|
5373
5389
|
let c = U.value.length > 0 ? U.value : null;
|
|
5374
5390
|
if (r?.skipIfUnchanged) {
|
|
5375
|
-
let e =
|
|
5391
|
+
let e = Ic(t.value, s.value.getFilterModel());
|
|
5376
5392
|
if (Ee(U.value, e)) return;
|
|
5377
5393
|
}
|
|
5378
5394
|
if (q.value) {
|
|
5379
|
-
let e = await
|
|
5395
|
+
let e = await Fc(s.value, t.value, c);
|
|
5380
5396
|
f.value = {
|
|
5381
5397
|
...f.value,
|
|
5382
5398
|
[G.value]: e
|
|
5383
5399
|
};
|
|
5384
5400
|
return;
|
|
5385
5401
|
}
|
|
5386
|
-
let l = await
|
|
5402
|
+
let l = await Fc(s.value, t.value, c);
|
|
5387
5403
|
s.value.setColumnFilterModel(G.value, l).then(() => {
|
|
5388
5404
|
s.value && s.value.onFilterChanged();
|
|
5389
5405
|
});
|
|
5390
5406
|
}, ct = (e, n) => {
|
|
5391
5407
|
if (e && me.value ? U.value = [e] : e && !U.value.includes(e) && (U.value = [...U.value, e]), Y.value && e) {
|
|
5392
|
-
let r = n ||
|
|
5408
|
+
let r = n || dc(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ze(r, e) || e;
|
|
5393
5409
|
De.value.find((e) => e.id === i) || (De.value = [...De.value, {
|
|
5394
5410
|
id: i,
|
|
5395
5411
|
state: "selected"
|
|
@@ -5398,7 +5414,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5398
5414
|
(!k.value || q.value) && (Y.value && e ? mt(De.value) : n && n !== G.value ? st(n, [e]) : st()), i?.();
|
|
5399
5415
|
}, lt = (e, n) => {
|
|
5400
5416
|
if (U.value = U.value.filter((t) => t !== e), Y.value && e) {
|
|
5401
|
-
let r = n ||
|
|
5417
|
+
let r = n || dc(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ze(r, e) || e;
|
|
5402
5418
|
De.value = De.value.filter((e) => e.id !== i);
|
|
5403
5419
|
}
|
|
5404
5420
|
(!k.value || q.value) && (Y.value && e ? mt(De.value) : n && n !== G.value ? st(n, null) : st()), i?.();
|
|
@@ -5421,7 +5437,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5421
5437
|
} finally {
|
|
5422
5438
|
r && (ue.value = !1);
|
|
5423
5439
|
}
|
|
5424
|
-
}, pt = (e, n) =>
|
|
5440
|
+
}, pt = (e, n) => Co({
|
|
5425
5441
|
baseModel: n,
|
|
5426
5442
|
colDef: t.value,
|
|
5427
5443
|
options: Je(),
|
|
@@ -5430,9 +5446,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5430
5446
|
if (!s.value || !Y.value) return !1;
|
|
5431
5447
|
let r = JSON.stringify(e);
|
|
5432
5448
|
if (n?.skipIfUnchanged && r === Oe.value) return De.value = e, !1;
|
|
5433
|
-
if (De.value = e, tt(e),
|
|
5449
|
+
if (De.value = e, tt(e), dc(t.value).length === 0) return !1;
|
|
5434
5450
|
let a = q.value ? f.value : s.value.getAdvancedFilterModel(), o = pt(e, a);
|
|
5435
|
-
if (n?.skipIfUnchanged &&
|
|
5451
|
+
if (n?.skipIfUnchanged && Hc(a, o)) return Oe.value = r, !1;
|
|
5436
5452
|
if (q.value) f.value = o;
|
|
5437
5453
|
else {
|
|
5438
5454
|
let e = o;
|
|
@@ -5442,8 +5458,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5442
5458
|
}
|
|
5443
5459
|
return Oe.value = r, j(Te()), i?.(), !0;
|
|
5444
5460
|
}, ht = (e) => {
|
|
5445
|
-
if (!Y.value || !
|
|
5446
|
-
let n =
|
|
5461
|
+
if (!Y.value || !dc(t.value).length) return;
|
|
5462
|
+
let n = To({
|
|
5447
5463
|
colDef: t.value,
|
|
5448
5464
|
model: e,
|
|
5449
5465
|
options: Je()
|
|
@@ -5464,12 +5480,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5464
5480
|
if (H.value) {
|
|
5465
5481
|
let e = [], n = f.value;
|
|
5466
5482
|
if (Y.value) {
|
|
5467
|
-
let r =
|
|
5483
|
+
let r = dc(t.value);
|
|
5468
5484
|
for (let t of r) {
|
|
5469
|
-
let r =
|
|
5485
|
+
let r = Gc(t, n);
|
|
5470
5486
|
e.push(...r);
|
|
5471
5487
|
}
|
|
5472
|
-
} else e =
|
|
5488
|
+
} else e = Gc(G.value, n);
|
|
5473
5489
|
U.value = e;
|
|
5474
5490
|
return;
|
|
5475
5491
|
}
|
|
@@ -5482,11 +5498,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5482
5498
|
return;
|
|
5483
5499
|
}
|
|
5484
5500
|
if (H.value) {
|
|
5485
|
-
let e = d.value, t =
|
|
5501
|
+
let e = d.value, t = Gc(G.value, e);
|
|
5486
5502
|
Ae(U.value.some((e) => e !== null && !t.includes(e)));
|
|
5487
5503
|
return;
|
|
5488
5504
|
}
|
|
5489
|
-
let e =
|
|
5505
|
+
let e = Ic(t.value, d.value);
|
|
5490
5506
|
Ae(U.value.some((t) => !e.includes(t)));
|
|
5491
5507
|
}, { deep: !0 }), B(() => p.value, () => {
|
|
5492
5508
|
U.value = [], De.value = [], Oe.value = "[]";
|
|
@@ -5504,9 +5520,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5504
5520
|
await Ne(!0, !0);
|
|
5505
5521
|
}, { debounce: 300 }), w(() => {
|
|
5506
5522
|
N(G.value);
|
|
5507
|
-
let e =
|
|
5523
|
+
let e = dc(t.value);
|
|
5508
5524
|
if (e.length && M(G.value, e), Ae(), Y.value && H.value && ht(d.value), o?.value && y.value && s.value) {
|
|
5509
|
-
let e = Y.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Y.value && H.value ?
|
|
5525
|
+
let e = Y.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Y.value && H.value ? dc(t.value).some((e) => Gc(e, d.value).length > 0) : U.value.length > 0;
|
|
5510
5526
|
e && n && l(t.value, {
|
|
5511
5527
|
api: s.value,
|
|
5512
5528
|
filterModel: d.value ?? void 0
|
|
@@ -5562,7 +5578,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5562
5578
|
disableFilterValue: He,
|
|
5563
5579
|
updateFilterModelWithSelectedValues: st
|
|
5564
5580
|
};
|
|
5565
|
-
},
|
|
5581
|
+
}, sl = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
5566
5582
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
5567
5583
|
let t = e.parentElement;
|
|
5568
5584
|
for (; t && t !== document.body;) {
|
|
@@ -5613,23 +5629,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5613
5629
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
5614
5630
|
}
|
|
5615
5631
|
};
|
|
5616
|
-
},
|
|
5632
|
+
}, cl = {
|
|
5617
5633
|
key: 0,
|
|
5618
5634
|
role: "list",
|
|
5619
5635
|
class: "pv-popover-list"
|
|
5620
|
-
},
|
|
5636
|
+
}, ll = ["data-active"], ul = { key: 1 }, dl = {
|
|
5621
5637
|
key: 1,
|
|
5622
5638
|
class: "pv-flex pv-inset-square-8",
|
|
5623
5639
|
style: { "justify-content": "center" }
|
|
5624
|
-
},
|
|
5640
|
+
}, fl = /* @__PURE__ */ d({
|
|
5625
5641
|
__name: "FilterGroupMenu",
|
|
5626
5642
|
props: { filterColDef: {} },
|
|
5627
5643
|
setup(e, { expose: n }) {
|
|
5628
|
-
let s = e, c = m(
|
|
5644
|
+
let s = e, c = m(Zo, O(null)), d = m(os, O(!1)), { filterModel: f, filterStoreHandler: p, markOtherFieldsStale: h, stageFilterChangesUntilDropdownCloses: g } = il(), _ = O(/* @__PURE__ */ new Set()), b = O(/* @__PURE__ */ new Set()), x = O(!1), S = O(null), C = r(() => $(s.filterColDef).filterGroup), { popoverPositionStyle: w, updateRects: D, triggerRef: A, popoverRef: j } = sl({
|
|
5629
5645
|
alignment: "top right",
|
|
5630
5646
|
useTeleport: !0
|
|
5631
5647
|
}), M = (e) => {
|
|
5632
|
-
let t =
|
|
5648
|
+
let t = qc(f.value, e);
|
|
5633
5649
|
return t !== null && t.length > 0 && t.includes("true");
|
|
5634
5650
|
}, N = (e) => c.value?.getColumnDef(e)?.headerName ?? e, P = async () => {
|
|
5635
5651
|
if (!p.value || !c.value) return;
|
|
@@ -5651,7 +5667,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5651
5667
|
if (!c.value) return;
|
|
5652
5668
|
let t = _.value.has(e);
|
|
5653
5669
|
if (t ? _.value.delete(e) : _.value.add(e), g.value) return;
|
|
5654
|
-
let n =
|
|
5670
|
+
let n = Uc(c.value.getAdvancedFilterModel(), t ? null : Cc(e, ["true"]), e);
|
|
5655
5671
|
v(() => {
|
|
5656
5672
|
c.value?.setAdvancedFilterModel(n);
|
|
5657
5673
|
}), h(new Set([e]));
|
|
@@ -5663,7 +5679,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5663
5679
|
return;
|
|
5664
5680
|
}
|
|
5665
5681
|
let t = c.value.getAdvancedFilterModel(), n = /* @__PURE__ */ new Set();
|
|
5666
|
-
for (let r of e) _.value.has(r) || (t =
|
|
5682
|
+
for (let r of e) _.value.has(r) || (t = Uc(t, Cc(r, ["true"]), r), _.value.add(r), n.add(r));
|
|
5667
5683
|
n.size > 0 && (v(() => {
|
|
5668
5684
|
c.value?.setAdvancedFilterModel(t);
|
|
5669
5685
|
}), h(n));
|
|
@@ -5674,7 +5690,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5674
5690
|
return;
|
|
5675
5691
|
}
|
|
5676
5692
|
let e = c.value.getAdvancedFilterModel(), t = /* @__PURE__ */ new Set();
|
|
5677
|
-
for (let n of C.value.fields) e =
|
|
5693
|
+
for (let n of C.value.fields) e = Wc(e, n), _.value.delete(n), t.add(n);
|
|
5678
5694
|
v(() => {
|
|
5679
5695
|
c.value?.setAdvancedFilterModel(e);
|
|
5680
5696
|
}), h(t);
|
|
@@ -5734,7 +5750,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5734
5750
|
}
|
|
5735
5751
|
}, {
|
|
5736
5752
|
default: V(() => [
|
|
5737
|
-
x.value && re.value.length > 0 ? (E(), o("ul",
|
|
5753
|
+
x.value && re.value.length > 0 ? (E(), o("ul", cl, [(E(!0), o(t, null, k(re.value, (e) => (E(), o(t, { key: e.field }, [e.isAvailable ? (E(), o("li", {
|
|
5738
5754
|
key: 0,
|
|
5739
5755
|
"data-active": e.isSelected ? "true" : null
|
|
5740
5756
|
}, [u(za, {
|
|
@@ -5749,7 +5765,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5749
5765
|
"text",
|
|
5750
5766
|
"selectedIds",
|
|
5751
5767
|
"onHandleSelected"
|
|
5752
|
-
])], 8,
|
|
5768
|
+
])], 8, ll)) : (E(), o("li", ul, [u(Cn, {
|
|
5753
5769
|
variant: "dark",
|
|
5754
5770
|
size: "sm",
|
|
5755
5771
|
"tooltip-position": "bottom-right",
|
|
@@ -5766,7 +5782,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5766
5782
|
"tooltip-content": V(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
5767
5783
|
_: 2
|
|
5768
5784
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
5769
|
-
x.value && te.value ? (E(), o("div",
|
|
5785
|
+
x.value && te.value ? (E(), o("div", dl, [u(St, { variant: "dark" })])) : a("", !0),
|
|
5770
5786
|
x.value ? (E(), i(Xi, {
|
|
5771
5787
|
key: 2,
|
|
5772
5788
|
class: "pv-border-top pv-inset-square-8",
|
|
@@ -5780,7 +5796,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5780
5796
|
_: 1
|
|
5781
5797
|
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Xe), [R, { ignore: [".pv-popover"] }]]]);
|
|
5782
5798
|
}
|
|
5783
|
-
}),
|
|
5799
|
+
}), pl = {
|
|
5784
5800
|
key: 0,
|
|
5785
5801
|
role: "list",
|
|
5786
5802
|
class: "pv-flex pv-stack-4",
|
|
@@ -5788,37 +5804,37 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5788
5804
|
"--flex-wrap": "wrap",
|
|
5789
5805
|
"max-width": "100%"
|
|
5790
5806
|
}
|
|
5791
|
-
},
|
|
5807
|
+
}, ml = {
|
|
5792
5808
|
key: 0,
|
|
5793
5809
|
style: {
|
|
5794
5810
|
"max-width": "100%",
|
|
5795
5811
|
"line-height": "1rem"
|
|
5796
5812
|
}
|
|
5797
|
-
},
|
|
5813
|
+
}, hl = {
|
|
5798
5814
|
key: 0,
|
|
5799
5815
|
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
5800
5816
|
style: { "--inset-size": "4px" }
|
|
5801
|
-
},
|
|
5817
|
+
}, gl = {
|
|
5802
5818
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
5803
5819
|
style: { "--inset-size": "8px" }
|
|
5804
|
-
},
|
|
5820
|
+
}, _l = {
|
|
5805
5821
|
class: "pv-inset-inline",
|
|
5806
5822
|
style: { "--inset-size": "8px" }
|
|
5807
|
-
},
|
|
5823
|
+
}, vl = {
|
|
5808
5824
|
key: 0,
|
|
5809
5825
|
class: "pv-full-width"
|
|
5810
|
-
},
|
|
5826
|
+
}, yl = {
|
|
5811
5827
|
key: 0,
|
|
5812
5828
|
class: "pv-flex-inline",
|
|
5813
5829
|
style: { "max-width": "100%" }
|
|
5814
|
-
},
|
|
5830
|
+
}, bl = {
|
|
5815
5831
|
role: "list",
|
|
5816
5832
|
class: "pv-flex",
|
|
5817
5833
|
style: {
|
|
5818
5834
|
"--flex-wrap": "wrap",
|
|
5819
5835
|
"max-width": "100%"
|
|
5820
5836
|
}
|
|
5821
|
-
},
|
|
5837
|
+
}, xl = { class: "pv-text-subdued pv-text-body-xxs" }, Sl = 4, Cl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
5822
5838
|
__name: "SetFilter",
|
|
5823
5839
|
props: {
|
|
5824
5840
|
enableFocusView: {
|
|
@@ -5843,13 +5859,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5843
5859
|
"handle-settings-icon"
|
|
5844
5860
|
],
|
|
5845
5861
|
setup(e, { emit: n }) {
|
|
5846
|
-
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, filterSearchMinLength: A, belowFilterSearchMinLength: j, rowsLoading: N, gridApi: ee, filterField: L, filterDisplayName: R, isInFilterPanel: z, suggestedValues: te, displayedFilterValues: ne, selectedFilterValues: re, showSearchBar: B, filterSearchPlaceholder: H, emptyFilterResultsRenderer: U, filterOptionsRenderer: W, filterHeaderRenderer: ie, filterFooterRenderer: ae, filterOptionsSortDescription: oe, filterOptionsSortTooltip: se, filterValueContext: G, formatDisplayValue: K, resolvedFilterValueContext: ce, isUnresolvedMetadataValue: q, getLatestFilterValues: le, addSelectedValue: ue, removeSelectedValue: de, handleDropdownOpen: fe, handleDropdownClosed: pe, handleSeeMore: me, getColDisplayNameForField: he, hasMoreOptions: ge, totalOptionCount: _e, isAggregate: ve, cascadeSelectionState: ye } =
|
|
5862
|
+
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, filterSearchMinLength: A, belowFilterSearchMinLength: j, rowsLoading: N, gridApi: ee, filterField: L, filterDisplayName: R, isInFilterPanel: z, suggestedValues: te, displayedFilterValues: ne, selectedFilterValues: re, showSearchBar: B, filterSearchPlaceholder: H, emptyFilterResultsRenderer: U, filterOptionsRenderer: W, filterHeaderRenderer: ie, filterFooterRenderer: ae, filterOptionsSortDescription: oe, filterOptionsSortTooltip: se, filterValueContext: G, formatDisplayValue: K, resolvedFilterValueContext: ce, isUnresolvedMetadataValue: q, getLatestFilterValues: le, addSelectedValue: ue, removeSelectedValue: de, handleDropdownOpen: fe, handleDropdownClosed: pe, handleSeeMore: me, getColDisplayNameForField: he, hasMoreOptions: ge, totalOptionCount: _e, isAggregate: ve, cascadeSelectionState: ye } = ol({
|
|
5847
5863
|
filterColDef: F(d, "filterColDef"),
|
|
5848
5864
|
filterStyle: F(d, "filterStyle"),
|
|
5849
5865
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
5850
5866
|
filterGroupStagedFields: x,
|
|
5851
5867
|
readOnly: F(d, "readOnly")
|
|
5852
|
-
}), { handleFocusUpdate: be, isFocused: J, removeFocus: xe, isFocusable: Se, canRemoveFocus: Ce } =
|
|
5868
|
+
}), { handleFocusUpdate: be, isFocused: J, removeFocus: xe, isFocusable: Se, canRemoveFocus: Ce } = Rs(), we = (e) => {
|
|
5853
5869
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
5854
5870
|
if (e.id.startsWith("__")) {
|
|
5855
5871
|
let t = e.id.slice(2).split("__");
|
|
@@ -5857,7 +5873,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5857
5873
|
}
|
|
5858
5874
|
return e.id;
|
|
5859
5875
|
}, Y = r(() => {
|
|
5860
|
-
if (Se(
|
|
5876
|
+
if (Se(pc(d.filterColDef) ? dc(d.filterColDef) : [L.value])) return {
|
|
5861
5877
|
icon: "focus",
|
|
5862
5878
|
isDisabled: (e) => !Se([e.context?.colField || L.value]),
|
|
5863
5879
|
tooltipText: (e) => {
|
|
@@ -5890,7 +5906,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5890
5906
|
de(e);
|
|
5891
5907
|
let t = ce(e)?.colField || L.value, n = Te(e);
|
|
5892
5908
|
J(n, t) && Ce() && xe(n);
|
|
5893
|
-
}, De = m(
|
|
5909
|
+
}, De = m(ys, O(!1)), Oe = r(() => !!$(d.filterColDef).filterGroup && De.value), ke = () => {
|
|
5894
5910
|
fe(), le(!0);
|
|
5895
5911
|
}, Ae = () => {
|
|
5896
5912
|
v(() => {
|
|
@@ -5900,7 +5916,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5900
5916
|
let t = ce(e)?.colField || L.value;
|
|
5901
5917
|
return J(Te(e), t);
|
|
5902
5918
|
}, Me = r(() => S.value > 0 ? !0 : ve.value ? ye.value.length > 0 : C.value.length > 0);
|
|
5903
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(z) && I(C).length > 0 ? (E(), o("ul",
|
|
5919
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(z) && I(C).length > 0 ? (E(), o("ul", pl, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(R)}-${n}` }, [I(q)(n) ? a("", !0) : (E(), o("li", ml, [u(vi, {
|
|
5904
5920
|
label: I(K)(n) || "",
|
|
5905
5921
|
showClear: !e.readOnly && (!je(n) || I(Ce)()),
|
|
5906
5922
|
disabled: e.readOnly,
|
|
@@ -5959,7 +5975,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5959
5975
|
onDropdownClosed: Ae,
|
|
5960
5976
|
onSeeMore: I(me)
|
|
5961
5977
|
}, c({
|
|
5962
|
-
preferences: V(() => [s("div",
|
|
5978
|
+
preferences: V(() => [s("div", gl, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(bi), {
|
|
5963
5979
|
variant: "dark",
|
|
5964
5980
|
size: "sm",
|
|
5965
5981
|
"use-teleport": !0
|
|
@@ -5973,7 +5989,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5973
5989
|
content: V(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
5974
5990
|
_: 1
|
|
5975
5991
|
})])]),
|
|
5976
|
-
suggestions: V(() => [s("div",
|
|
5992
|
+
suggestions: V(() => [s("div", _l, [u(I(bi), {
|
|
5977
5993
|
variant: "dark",
|
|
5978
5994
|
disableInteractive: !0,
|
|
5979
5995
|
position: "top-left",
|
|
@@ -5993,8 +6009,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5993
6009
|
I(ie) || Oe.value || I(j) ? {
|
|
5994
6010
|
name: "header",
|
|
5995
6011
|
fn: V((t) => [
|
|
5996
|
-
I(j) ? (E(), o("p",
|
|
5997
|
-
Oe.value ? (E(), i(
|
|
6012
|
+
I(j) ? (E(), o("p", hl, " Type " + P(I(A)) + " or more characters to search ", 1)) : a("", !0),
|
|
6013
|
+
Oe.value ? (E(), i(fl, {
|
|
5998
6014
|
key: 1,
|
|
5999
6015
|
ref_key: "filterGroupMenuRef",
|
|
6000
6016
|
ref: g,
|
|
@@ -6015,7 +6031,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6015
6031
|
fn: V((e) => [(E(), i(M(I(ae)), b(p(e)), null, 16))]),
|
|
6016
6032
|
key: "2"
|
|
6017
6033
|
} : void 0
|
|
6018
|
-
]), 1032, /* @__PURE__ */ "modelValue.readOnly.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.searchPlaceholder.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(z) && !e.readOnly ? (E(), o("div",
|
|
6034
|
+
]), 1032, /* @__PURE__ */ "modelValue.readOnly.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.searchPlaceholder.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(z) && !e.readOnly ? (E(), o("div", vl, [I(te).length > 0 ? (E(), o("div", yl, [s("ul", bl, [u(I(bi), {
|
|
6019
6035
|
variant: "dark",
|
|
6020
6036
|
disableInteractive: !0,
|
|
6021
6037
|
position: "bottom-left",
|
|
@@ -6023,13 +6039,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6023
6039
|
"use-teleport": !0,
|
|
6024
6040
|
style: { "--max-width": "200px" }
|
|
6025
6041
|
}, c({
|
|
6026
|
-
trigger: V(() => [s("li",
|
|
6042
|
+
trigger: V(() => [s("li", xl, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(se) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
6027
6043
|
_: 2
|
|
6028
6044
|
}, [I(se) ? {
|
|
6029
6045
|
name: "content",
|
|
6030
6046
|
fn: V(() => [l(P(I(se)), 1)]),
|
|
6031
6047
|
key: "0"
|
|
6032
|
-
} : void 0]), 1024), (E(!0), o(t, null, k(I(te).filter((e) => e !== "" && e != null).slice(0,
|
|
6048
|
+
} : void 0]), 1024), (E(!0), o(t, null, k(I(te).filter((e) => e !== "" && e != null).slice(0, Sl), (e) => (E(), o("li", {
|
|
6033
6049
|
key: `${I(R)}-${e}-suggest`,
|
|
6034
6050
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
6035
6051
|
style: {
|
|
@@ -6046,21 +6062,21 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6046
6062
|
"onHandleClick"
|
|
6047
6063
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
6048
6064
|
}
|
|
6049
|
-
}), [["__scopeId", "data-v-9d73220c"]]),
|
|
6065
|
+
}), [["__scopeId", "data-v-9d73220c"]]), wl = { class: "pv-flex" }, Tl = { class: "pv-flex" }, El = { class: "pv-flex pv-space-between pv-stack-8" }, Dl = { class: "pv-text-title-lg" }, Ol = {
|
|
6050
6066
|
id: "filter-vertical-drawer",
|
|
6051
6067
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
6052
6068
|
style: { height: "100%" }
|
|
6053
|
-
},
|
|
6069
|
+
}, kl = { class: "pv-full-width" }, Al = {
|
|
6054
6070
|
class: "pv-details pv-stack-12",
|
|
6055
6071
|
open: ""
|
|
6056
|
-
},
|
|
6072
|
+
}, jl = { class: "pv-flex pv-full-width" }, Ml = { class: "pv-text-title-lg" }, Nl = { class: "pv-flex pv-space-between" }, Pl = { class: "pv-flex" }, Fl = {
|
|
6057
6073
|
class: "pv-flex",
|
|
6058
6074
|
style: {
|
|
6059
6075
|
"--flex-justify": "end",
|
|
6060
6076
|
"--flex-gap": "8px",
|
|
6061
6077
|
"margin-top": "auto"
|
|
6062
6078
|
}
|
|
6063
|
-
},
|
|
6079
|
+
}, Il = /* @__PURE__ */ d({
|
|
6064
6080
|
__name: "FilterPanel",
|
|
6065
6081
|
props: {
|
|
6066
6082
|
enableFocusView: {
|
|
@@ -6085,18 +6101,18 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6085
6101
|
},
|
|
6086
6102
|
emits: ["handle-settings-icon"],
|
|
6087
6103
|
setup(e) {
|
|
6088
|
-
let n = m(
|
|
6104
|
+
let n = m(Zo, O(null)), c = m(es, O([])), d = m($o, O(null)), f = m(ys, O(!1)), p = e, { filterModelCleared: h, stagedFilterModel: g, filterModel: _, initStagedSelectedValues: v, clearStagedSelectedValues: b, filterValuesMap: x, fetchFilterValues: S, filterValuesLoadingStatus: C } = il(), w = O(!1), T = O(!1), D = O(""), A = r(() => c.value.flatMap((e) => dc(e))), j = r(() => c.value.flatMap((e) => $(e).filterGroup?.fields ?? [])), M = (e) => {
|
|
6089
6105
|
let t = _.value;
|
|
6090
6106
|
if (!t) return !1;
|
|
6091
|
-
let n =
|
|
6107
|
+
let n = pc(e) ? dc(e) : [e.field || ""];
|
|
6092
6108
|
if (f.value) {
|
|
6093
6109
|
let e = /* @__PURE__ */ new Set();
|
|
6094
6110
|
return R(t, e), n.some((t) => e.has(t));
|
|
6095
6111
|
}
|
|
6096
6112
|
let r = t;
|
|
6097
6113
|
return n.some((e) => !!r[e]);
|
|
6098
|
-
}, N = r(() => c.value.filter((e) =>
|
|
6099
|
-
let n =
|
|
6114
|
+
}, N = r(() => c.value.filter((e) => Mc(e) && !A.value.includes(e.field || "") && !j.value.includes(e.field || "") && (!p.readOnly || M(e))).sort((e, t) => {
|
|
6115
|
+
let n = pc(e), r = pc(t);
|
|
6100
6116
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
6101
6117
|
})), F = r(() => N.value), ee = r(() => {
|
|
6102
6118
|
let e = D.value?.trim().toLowerCase() || "";
|
|
@@ -6139,7 +6155,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6139
6155
|
});
|
|
6140
6156
|
}
|
|
6141
6157
|
}
|
|
6142
|
-
}, { clearAllFocuses: B } =
|
|
6158
|
+
}, { clearAllFocuses: B } = Rs(), H = () => {
|
|
6143
6159
|
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, B(), T.value = !1);
|
|
6144
6160
|
}, U = () => {
|
|
6145
6161
|
w.value = !1, D.value = "";
|
|
@@ -6148,8 +6164,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6148
6164
|
}, ie = () => {
|
|
6149
6165
|
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, U();
|
|
6150
6166
|
};
|
|
6151
|
-
return (e, r) => (E(), o(t, null, [s("div",
|
|
6152
|
-
(E(!0), o(t, null, k(L.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(
|
|
6167
|
+
return (e, r) => (E(), o(t, null, [s("div", wl, [
|
|
6168
|
+
(E(!0), o(t, null, k(L.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(Cl, {
|
|
6153
6169
|
key: 0,
|
|
6154
6170
|
"enable-focus-view": p.enableFocusView,
|
|
6155
6171
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -6164,7 +6180,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6164
6180
|
"filterColDef",
|
|
6165
6181
|
"read-only"
|
|
6166
6182
|
])) : a("", !0)], 64))), 128)),
|
|
6167
|
-
s("div",
|
|
6183
|
+
s("div", Tl, [p.enableVerticalPanel ? (E(), i(I(gn), {
|
|
6168
6184
|
key: 0,
|
|
6169
6185
|
label: "All Filters",
|
|
6170
6186
|
onClick: re,
|
|
@@ -6195,7 +6211,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6195
6211
|
"z-index": "10"
|
|
6196
6212
|
}
|
|
6197
6213
|
}, {
|
|
6198
|
-
header: V(() => [s("div",
|
|
6214
|
+
header: V(() => [s("div", El, [s("p", Dl, "All Filters (" + P(F.value.length) + ")", 1), s("button", {
|
|
6199
6215
|
class: "pv-button-ghost",
|
|
6200
6216
|
"aria-label": "Close",
|
|
6201
6217
|
onClick: r[2] ||= (e) => W()
|
|
@@ -6204,7 +6220,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6204
6220
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
6205
6221
|
placeholder: "Search Filters"
|
|
6206
6222
|
}, null, 8, ["modelValue"])]),
|
|
6207
|
-
footer: V(() => [s("div",
|
|
6223
|
+
footer: V(() => [s("div", Nl, [p.readOnly ? (E(), i(I(gn), {
|
|
6208
6224
|
key: 1,
|
|
6209
6225
|
variant: "ghost",
|
|
6210
6226
|
label: "Close",
|
|
@@ -6212,7 +6228,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6212
6228
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
6213
6229
|
class: "pv-button-ghost",
|
|
6214
6230
|
onClick: r[5] ||= (e) => H()
|
|
6215
|
-
}, "Clear All"), s("div",
|
|
6231
|
+
}, "Clear All"), s("div", Pl, [u(I(gn), {
|
|
6216
6232
|
variant: "ghost",
|
|
6217
6233
|
label: "Cancel",
|
|
6218
6234
|
onClick: r[6] ||= (e) => W()
|
|
@@ -6227,10 +6243,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6227
6243
|
label: "No Changes",
|
|
6228
6244
|
disabled: ""
|
|
6229
6245
|
}))])], 64))])]),
|
|
6230
|
-
default: V(() => [s("div",
|
|
6246
|
+
default: V(() => [s("div", Ol, [s("div", kl, [(E(!0), o(t, null, k(ee.value, (t, c) => (E(), o("div", {
|
|
6231
6247
|
key: t.field,
|
|
6232
6248
|
class: y([{ "pv-border-bottom": c < ee.value.length - 1 }, "pv-stack-12"])
|
|
6233
|
-
}, [s("details",
|
|
6249
|
+
}, [s("details", Al, [s("summary", jl, [s("span", Ml, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(Cl, {
|
|
6234
6250
|
key: 0,
|
|
6235
6251
|
"filter-style": "vertical",
|
|
6236
6252
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -6256,7 +6272,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6256
6272
|
style: { top: "50%" }
|
|
6257
6273
|
}, {
|
|
6258
6274
|
body: V(() => [...r[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
6259
|
-
footer: V(() => [s("div",
|
|
6275
|
+
footer: V(() => [s("div", Fl, [u(I(gn), {
|
|
6260
6276
|
label: "Cancel",
|
|
6261
6277
|
variant: "secondary",
|
|
6262
6278
|
size: "lg",
|
|
@@ -6270,21 +6286,21 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6270
6286
|
_: 1
|
|
6271
6287
|
}, 8, ["modelValue"])], 64));
|
|
6272
6288
|
}
|
|
6273
|
-
}),
|
|
6289
|
+
}), Ll = { key: 2 }, Rl = {
|
|
6274
6290
|
key: 0,
|
|
6275
6291
|
class: "pv-flex ag-header-actions"
|
|
6276
|
-
},
|
|
6292
|
+
}, zl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6277
6293
|
__name: "HeaderCellRenderer",
|
|
6278
6294
|
props: { params: {} },
|
|
6279
6295
|
setup(e, { expose: t }) {
|
|
6280
|
-
let n = m(
|
|
6296
|
+
let n = m(Xo, O([])), c = m(ns, O([])), l = e, d = O(!1), f = O(!1), p = O(null), h = O(null), g = O(null), _ = O(!1), v = r(() => {
|
|
6281
6297
|
let e = l.params.column.getColDef();
|
|
6282
6298
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
6283
6299
|
}), b = r(() => {
|
|
6284
6300
|
if (!n.value || n.value.length === 0) return "";
|
|
6285
6301
|
let e = n.value.find((e) => e.colId === l.params.column.getColId()), t = e ? e.sort : "";
|
|
6286
6302
|
return t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "";
|
|
6287
|
-
}), C = r(() =>
|
|
6303
|
+
}), C = r(() => lc(l.params.column.getColDef())), w = r(() => {
|
|
6288
6304
|
let e = l.params.column.getColDef(), t = e.allowedAggFuncs;
|
|
6289
6305
|
if (!t || t.length <= 1) return [];
|
|
6290
6306
|
let n = $(e).aggFuncDisplayNameMap || {};
|
|
@@ -6300,7 +6316,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6300
6316
|
}, N = () => {
|
|
6301
6317
|
_.value = !0, g.value && l.params.showColumnMenu(g.value, M);
|
|
6302
6318
|
}, F = (e) => {
|
|
6303
|
-
d.value = e.enableFilterButton, f.value = e.enableSorting || !1, p.value = e.displayName, h.value =
|
|
6319
|
+
d.value = e.enableFilterButton, f.value = e.enableSorting || !1, p.value = e.displayName, h.value = Ys(e.column.getColDef().context?.dataType), p.value = Xs(p.value, e.column.getColDef().context?.dataType);
|
|
6304
6320
|
}, I = () => {
|
|
6305
6321
|
f.value && l.params.progressSort(!1);
|
|
6306
6322
|
};
|
|
@@ -6353,12 +6369,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6353
6369
|
"modelValue",
|
|
6354
6370
|
"options",
|
|
6355
6371
|
"label"
|
|
6356
|
-
])) : (E(), o("p",
|
|
6372
|
+
])) : (E(), o("p", Ll, P(p.value), 1)),
|
|
6357
6373
|
f.value && b.value !== "" ? (E(), i(ln, {
|
|
6358
6374
|
key: 3,
|
|
6359
6375
|
name: b.value
|
|
6360
6376
|
}, null, 8, ["name"])) : a("", !0)
|
|
6361
|
-
], 6), v.value ? (E(), o("div",
|
|
6377
|
+
], 6), v.value ? (E(), o("div", Rl, [s("div", {
|
|
6362
6378
|
ref_key: "menuButton",
|
|
6363
6379
|
ref: g,
|
|
6364
6380
|
class: "ag-header-cell-menu-button",
|
|
@@ -6371,7 +6387,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6371
6387
|
onClick: U(N, ["stop", "prevent"])
|
|
6372
6388
|
})], 4)])) : a("", !0)], 4));
|
|
6373
6389
|
}
|
|
6374
|
-
}), [["__scopeId", "data-v-385ad98a"]]),
|
|
6390
|
+
}), [["__scopeId", "data-v-385ad98a"]]), Bl = {
|
|
6375
6391
|
headerHeight: "30px",
|
|
6376
6392
|
headerBackgroundColor: "white",
|
|
6377
6393
|
headerCellHoverBackgroundColor: "#F7F8F8",
|
|
@@ -6386,14 +6402,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6386
6402
|
rangeSelectionBorderStyle: "solid",
|
|
6387
6403
|
menuBackgroundColor: "white",
|
|
6388
6404
|
accentColor: "#36C5BA"
|
|
6389
|
-
},
|
|
6390
|
-
...
|
|
6405
|
+
}, Vl = Y.withParams({
|
|
6406
|
+
...Bl,
|
|
6391
6407
|
headerRowBorder: !0,
|
|
6392
6408
|
rowHoverColor: "#F7F8F8",
|
|
6393
6409
|
wrapperBorder: !0,
|
|
6394
6410
|
wrapperBorderRadius: "8px"
|
|
6395
|
-
}),
|
|
6396
|
-
...
|
|
6411
|
+
}), Hl = Y.withParams({
|
|
6412
|
+
...Bl,
|
|
6397
6413
|
headerRowBorder: !1,
|
|
6398
6414
|
rowHoverColor: "transparent",
|
|
6399
6415
|
wrapperBorder: !1,
|
|
@@ -6401,20 +6417,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6401
6417
|
rowBorder: !1,
|
|
6402
6418
|
columnBorder: !1,
|
|
6403
6419
|
rowHeight: "50px"
|
|
6404
|
-
}),
|
|
6405
|
-
"pv-data-table-base":
|
|
6420
|
+
}), Ul = {
|
|
6421
|
+
"pv-data-table-base": Vl,
|
|
6406
6422
|
"pv-data-table-grouped": Y.withParams({
|
|
6407
|
-
...
|
|
6423
|
+
...Bl,
|
|
6408
6424
|
headerRowBorder: !0,
|
|
6409
6425
|
rowHoverColor: "#F7F8F8",
|
|
6410
6426
|
wrapperBorder: !0,
|
|
6411
6427
|
wrapperBorderRadius: "8px"
|
|
6412
6428
|
}),
|
|
6413
|
-
"pv-data-table-grouped-card":
|
|
6414
|
-
},
|
|
6429
|
+
"pv-data-table-grouped-card": Hl
|
|
6430
|
+
}, Wl = { class: "pv-popover-menu" }, Gl = {
|
|
6415
6431
|
class: "pv-popover",
|
|
6416
6432
|
style: { "--height": "auto" }
|
|
6417
|
-
},
|
|
6433
|
+
}, Kl = ["disabled"], ql = /* @__PURE__ */ d({
|
|
6418
6434
|
__name: "ExportMenu",
|
|
6419
6435
|
props: { getCsvData: { type: Function } },
|
|
6420
6436
|
setup(e) {
|
|
@@ -6429,27 +6445,27 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6429
6445
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
6430
6446
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
6431
6447
|
}
|
|
6432
|
-
return (e, n) => (E(), o("nav",
|
|
6448
|
+
return (e, n) => (E(), o("nav", Wl, [n[0] ||= s("button", {
|
|
6433
6449
|
type: "button",
|
|
6434
6450
|
class: "pv-button-icon"
|
|
6435
6451
|
}, [s("svg", {
|
|
6436
6452
|
"aria-hidden": "true",
|
|
6437
6453
|
class: "pv-icon-24"
|
|
6438
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
6454
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Gl, [s("button", {
|
|
6439
6455
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
6440
6456
|
onClick: U(i, ["prevent"]),
|
|
6441
6457
|
disabled: r.value
|
|
6442
|
-
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
6458
|
+
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Kl)])]));
|
|
6443
6459
|
}
|
|
6444
|
-
}),
|
|
6460
|
+
}), Jl = {
|
|
6445
6461
|
key: 1,
|
|
6446
6462
|
class: ""
|
|
6447
|
-
},
|
|
6463
|
+
}, Yl = /* @__PURE__ */ d({
|
|
6448
6464
|
__name: "PaginationPanel",
|
|
6449
6465
|
props: { panelSize: { default: "xl" } },
|
|
6450
6466
|
setup(e) {
|
|
6451
6467
|
he.registerModules([fe]);
|
|
6452
|
-
let n = m(
|
|
6468
|
+
let n = m(Zo, O(null)), a = m(ss, O(1)), s = m(cs, O(0)), c = e, l = r(() => {
|
|
6453
6469
|
let e = s.value, t = a.value;
|
|
6454
6470
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
6455
6471
|
let n = [];
|
|
@@ -6481,7 +6497,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6481
6497
|
"size",
|
|
6482
6498
|
"onClick",
|
|
6483
6499
|
"label"
|
|
6484
|
-
])) : (E(), o("span",
|
|
6500
|
+
])) : (E(), o("span", Jl, "..."))], 64))), 128)),
|
|
6485
6501
|
u(gn, {
|
|
6486
6502
|
variant: "ghost",
|
|
6487
6503
|
onClick: f,
|
|
@@ -6492,10 +6508,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6492
6508
|
}, null, 8, ["disabled", "size"])
|
|
6493
6509
|
], 2));
|
|
6494
6510
|
}
|
|
6495
|
-
}),
|
|
6511
|
+
}), Xl = {
|
|
6496
6512
|
key: 0,
|
|
6497
6513
|
class: "pv-tag"
|
|
6498
|
-
},
|
|
6514
|
+
}, Zl = /* @__PURE__ */ d({
|
|
6499
6515
|
__name: "TagCellRenderer",
|
|
6500
6516
|
props: { params: {} },
|
|
6501
6517
|
setup(e) {
|
|
@@ -6503,29 +6519,29 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6503
6519
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
6504
6520
|
return e.trim() === "" ? null : e;
|
|
6505
6521
|
});
|
|
6506
|
-
return (e, t) => n.value ? (E(), o("div",
|
|
6522
|
+
return (e, t) => n.value ? (E(), o("div", Xl, P(n.value), 1)) : a("", !0);
|
|
6507
6523
|
}
|
|
6508
|
-
}),
|
|
6524
|
+
}), Ql = {
|
|
6509
6525
|
key: 0,
|
|
6510
6526
|
class: "pv-table-row-number"
|
|
6511
|
-
},
|
|
6527
|
+
}, $l = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6512
6528
|
__name: "RowCountCellRenderer",
|
|
6513
6529
|
props: { params: {} },
|
|
6514
6530
|
setup(e) {
|
|
6515
6531
|
let t = e, n = r(() => (t.params.node?.rowIndex || 0) + 1), i = r(() => {
|
|
6516
6532
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
6517
|
-
return e &&
|
|
6533
|
+
return e && lc(e) ? n.toLocaleString() : n;
|
|
6518
6534
|
});
|
|
6519
|
-
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span",
|
|
6535
|
+
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span", Ql, P(n.value), 1)) : a("", !0), l(" " + P(i.value), 1)])]));
|
|
6520
6536
|
}
|
|
6521
|
-
}), [["__scopeId", "data-v-686928ce"]]),
|
|
6537
|
+
}), [["__scopeId", "data-v-686928ce"]]), eu = /* @__PURE__ */ d({
|
|
6522
6538
|
__name: "TableSearch",
|
|
6523
6539
|
props: {
|
|
6524
6540
|
placeholder: {},
|
|
6525
6541
|
searchStyle: {}
|
|
6526
6542
|
},
|
|
6527
6543
|
setup(e) {
|
|
6528
|
-
let t = e, n = O(null), r = O(""), a = O([]), o = O(!1), s = m(
|
|
6544
|
+
let t = e, n = O(null), r = O(""), a = O([]), o = O(!1), s = m(Zo, O(null)), c = m(ys, O(!1)), { isServerSideFilter: l, filterModel: u, tableSearchHandler: d, applyTableSearchFilterModel: f } = il(), p = (e) => {
|
|
6529
6545
|
!s?.value || typeof s.value.setGridOption != "function" || (l.value ? console.error("Server-side filtering with table free text search is not yet supported.") : s.value.setGridOption("quickFilterText", e));
|
|
6530
6546
|
}, h = (e) => {
|
|
6531
6547
|
if (s?.value) {
|
|
@@ -6533,7 +6549,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6533
6549
|
console.error("Client-side filtering with query builder is not yet supported");
|
|
6534
6550
|
return;
|
|
6535
6551
|
}
|
|
6536
|
-
f(c.value ?
|
|
6552
|
+
f(c.value ? Dc(e) : Ec(e));
|
|
6537
6553
|
}
|
|
6538
6554
|
}, g = async (e) => {
|
|
6539
6555
|
if (!e || e.length < 2) {
|
|
@@ -6548,7 +6564,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6548
6564
|
};
|
|
6549
6565
|
o.value = !0, a.value = ((await d.value?.(t))?.filter((e) => e !== null) || []).map((e) => {
|
|
6550
6566
|
let t = "search", n = s.value?.getColumnDef(e.queryField || "");
|
|
6551
|
-
return n && (t =
|
|
6567
|
+
return n && (t = Ys(n.context?.dataType || null) || "search"), {
|
|
6552
6568
|
id: `${e.queryField}-${e.queryText}`,
|
|
6553
6569
|
text: e.queryText,
|
|
6554
6570
|
icon: t,
|
|
@@ -6567,7 +6583,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6567
6583
|
debounce: 300,
|
|
6568
6584
|
immediate: !0,
|
|
6569
6585
|
deep: !0
|
|
6570
|
-
}), (t, s) => e.searchStyle === "query-builder" ? (E(), i(
|
|
6586
|
+
}), (t, s) => e.searchStyle === "query-builder" ? (E(), i(qo, {
|
|
6571
6587
|
key: 0,
|
|
6572
6588
|
placeholder: e.placeholder,
|
|
6573
6589
|
"search-text": r.value,
|
|
@@ -6590,28 +6606,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6590
6606
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
6591
6607
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
6592
6608
|
}
|
|
6593
|
-
}),
|
|
6609
|
+
}), tu = {
|
|
6594
6610
|
style: {
|
|
6595
6611
|
"background-color": "white",
|
|
6596
6612
|
"max-width": "300px"
|
|
6597
6613
|
},
|
|
6598
6614
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
6599
|
-
},
|
|
6615
|
+
}, nu = { style: { color: "black" } }, ru = /* @__PURE__ */ d({
|
|
6600
6616
|
__name: "TableTooltip",
|
|
6601
6617
|
props: { params: {} },
|
|
6602
6618
|
setup(e) {
|
|
6603
|
-
return (t, n) => (E(), o("div",
|
|
6619
|
+
return (t, n) => (E(), o("div", tu, [s("p", nu, P(e.params.value), 1)]));
|
|
6604
6620
|
}
|
|
6605
|
-
}),
|
|
6621
|
+
}), iu = { class: "pv-stack-16" }, au = { class: "pv-flex pv-space-between" }, ou = { class: "pv-flex" }, su = { style: {
|
|
6606
6622
|
width: "30%",
|
|
6607
6623
|
"max-width": "50%"
|
|
6608
|
-
} },
|
|
6624
|
+
} }, cu = {
|
|
6609
6625
|
key: 0,
|
|
6610
6626
|
class: "pv-table-overlay"
|
|
6611
|
-
},
|
|
6627
|
+
}, lu = {
|
|
6612
6628
|
class: "pv-text-body-xs pv-text-center",
|
|
6613
6629
|
style: { "padding-top": "16px" }
|
|
6614
|
-
},
|
|
6630
|
+
}, uu = /* @__PURE__ */ d({
|
|
6615
6631
|
__name: "PvDataTable",
|
|
6616
6632
|
props: {
|
|
6617
6633
|
allFieldsAreFocusable: {
|
|
@@ -6836,17 +6852,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6836
6852
|
let p = r(() => f.layout ? {} : {
|
|
6837
6853
|
height: f.containerHeight,
|
|
6838
6854
|
minHeight: f.containerMinHeight
|
|
6839
|
-
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : Y.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", w = r(() => h.value ? f.theme :
|
|
6840
|
-
let t =
|
|
6855
|
+
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : Y.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", w = r(() => h.value ? f.theme : Ul[g.value]), T = c, k = O(!1), j = (e) => {
|
|
6856
|
+
let t = dc(e), n = e.context;
|
|
6841
6857
|
return Array.from(new Set([
|
|
6842
6858
|
...t,
|
|
6843
6859
|
...n?.queryColIds || [],
|
|
6844
6860
|
...t.flatMap((e) => W.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
6845
6861
|
]));
|
|
6846
6862
|
}, M = (e, t) => {
|
|
6847
|
-
if (
|
|
6848
|
-
let n = W.find((e) =>
|
|
6849
|
-
return !!n && j(n).some((t) =>
|
|
6863
|
+
if (Ac(e, t)) return !0;
|
|
6864
|
+
let n = W.find((e) => fc(e) === t);
|
|
6865
|
+
return !!n && j(n).some((t) => Ac(e, t));
|
|
6850
6866
|
}, F = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
6851
6867
|
if (!X.value) {
|
|
6852
6868
|
e.success({ rowData: [] }), He.value = !0;
|
|
@@ -6858,7 +6874,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6858
6874
|
let t = e.request.rowGroupCols[0].id;
|
|
6859
6875
|
o = M(s, t);
|
|
6860
6876
|
}
|
|
6861
|
-
if (e.request.rowGroupCols =
|
|
6877
|
+
if (e.request.rowGroupCols = mc(e.request.rowGroupCols, e.api.getColumnDefs?.()), (e.request.groupKeys?.length || 0) > 0) {
|
|
6862
6878
|
let t = e.parentNode?.data;
|
|
6863
6879
|
if (t?.bucketMin != null && t?.bucketMax != null) {
|
|
6864
6880
|
if (f.enableAdvancedFilter) {
|
|
@@ -6880,7 +6896,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6880
6896
|
filter: t.bucketMax
|
|
6881
6897
|
}]
|
|
6882
6898
|
};
|
|
6883
|
-
n =
|
|
6899
|
+
n = Uc(n, i, e);
|
|
6884
6900
|
}
|
|
6885
6901
|
}), n && (e.request.filterModel = n);
|
|
6886
6902
|
} else {
|
|
@@ -6904,7 +6920,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6904
6920
|
}
|
|
6905
6921
|
}), e.request.filterModel = n;
|
|
6906
6922
|
}
|
|
6907
|
-
e.request.groupKeys = e.request.groupKeys.filter((t, n) => e.request.rowGroupCols?.[n]?.aggFunc !==
|
|
6923
|
+
e.request.groupKeys = e.request.groupKeys.filter((t, n) => e.request.rowGroupCols?.[n]?.aggFunc !== $s), e.request.rowGroupCols = e.request.rowGroupCols.filter((e) => e.aggFunc !== $s);
|
|
6908
6924
|
}
|
|
6909
6925
|
}
|
|
6910
6926
|
if (e.request.rowGroupCols?.length === 0 ? e.request.valueCols = [] : e.request.valueCols = e.request.valueCols?.filter((t) => !e.request.rowGroupCols?.some((e) => e.id === t.id)), (a || o) && !Ye.tableSearchFilterModelEmpty.value) if (f.enableAdvancedFilter) {
|
|
@@ -6916,11 +6932,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6916
6932
|
} : e.request.filterModel = s;
|
|
6917
6933
|
} else {
|
|
6918
6934
|
let t = e.request.filterModel;
|
|
6919
|
-
e.request.filterModel =
|
|
6935
|
+
e.request.filterModel = jc(W, t, s);
|
|
6920
6936
|
}
|
|
6921
6937
|
e.success = (e) => {
|
|
6922
6938
|
if (Ue.value = !1, f.enableFocusView && lt.value.length > 0 && ct.value && e.rowData) {
|
|
6923
|
-
let n =
|
|
6939
|
+
let n = ac(e.rowData, ct.value, lt.value);
|
|
6924
6940
|
if (n) {
|
|
6925
6941
|
e.rowData = n, t(e);
|
|
6926
6942
|
return;
|
|
@@ -6932,7 +6948,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6932
6948
|
}, f.serverSideRowHandler?.(e);
|
|
6933
6949
|
} } : null, ee = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
6934
6950
|
let t = [], n = { ...Qe.value };
|
|
6935
|
-
t = !He.value && fe ?
|
|
6951
|
+
t = !He.value && fe ? qc(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await it(e.colDef, {
|
|
6936
6952
|
api: e.api,
|
|
6937
6953
|
filterModel: n,
|
|
6938
6954
|
useStaged: !1
|
|
@@ -6951,19 +6967,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6951
6967
|
suppressColumnsToolPanel: !0,
|
|
6952
6968
|
minWidth: 150,
|
|
6953
6969
|
flex: 1,
|
|
6954
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
6970
|
+
headerComponent: f.enableInlineFilters ? void 0 : zl,
|
|
6955
6971
|
cellDataType: !1,
|
|
6956
|
-
tooltipComponent:
|
|
6957
|
-
cellClass: (e) => xt(e.column) ? "" :
|
|
6972
|
+
tooltipComponent: ru,
|
|
6973
|
+
cellClass: (e) => xt(e.column) ? "" : lc(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
6958
6974
|
cellRendererSelector: (e) => {
|
|
6959
6975
|
if (L(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
6960
|
-
component:
|
|
6976
|
+
component: vc,
|
|
6961
6977
|
params: e
|
|
6962
6978
|
};
|
|
6963
6979
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && Y.value.length === 0) {
|
|
6964
6980
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
6965
6981
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
6966
|
-
component:
|
|
6982
|
+
component: $l,
|
|
6967
6983
|
params: e
|
|
6968
6984
|
};
|
|
6969
6985
|
}
|
|
@@ -6988,7 +7004,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6988
7004
|
}
|
|
6989
7005
|
}, U = (e, t) => {
|
|
6990
7006
|
if (!e) return null;
|
|
6991
|
-
let n = { ...e }, r = t, i =
|
|
7007
|
+
let n = { ...e }, r = t, i = dc(e);
|
|
6992
7008
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
6993
7009
|
else return null;
|
|
6994
7010
|
if (i.length > 0) {
|
|
@@ -6999,21 +7015,21 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6999
7015
|
let t = e.headerValueGetter;
|
|
7000
7016
|
n.headerValueGetter = (e) => e.location === "advancedFilter" ? n.colId || n.field || "" : t && typeof t == "function" ? t(e) : t && typeof t == "string" ? t : n.headerName || n.field || "";
|
|
7001
7017
|
}
|
|
7002
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => kt(e, r.dataType) : r.dataType === Q.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Dt(e, r.valueDecimals || 0) : r.dataType === Q.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Et(e, r.valueDecimals || 0) : r.dataType === Q.Integer && !e.valueFormatter ? n.valueFormatter = Ot : r.dataType === Q.Tag && !e.cellRenderer && (n.cellRenderer =
|
|
7018
|
+
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => kt(e, r.dataType) : r.dataType === Q.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Dt(e, r.valueDecimals || 0) : r.dataType === Q.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Et(e, r.valueDecimals || 0) : r.dataType === Q.Integer && !e.valueFormatter ? n.valueFormatter = Ot : r.dataType === Q.Tag && !e.cellRenderer && (n.cellRenderer = Zl), n;
|
|
7003
7019
|
}, W = f.colDefs?.map((e) => {
|
|
7004
7020
|
let t = { ...e };
|
|
7005
|
-
F && ee &&
|
|
7021
|
+
F && ee && Mc(e) && (t = Nc(e, ee));
|
|
7006
7022
|
let n = e.context;
|
|
7007
7023
|
return n && (t = U(t, n)), t;
|
|
7008
7024
|
}).filter((e) => e != null) || [], ie = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
7009
|
-
for (let e of W) for (let t of
|
|
7010
|
-
let fe =
|
|
7025
|
+
for (let e of W) for (let t of dc(e)) ie.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
7026
|
+
let fe = Tc(f.initialGridState, W, f.enableAdvancedFilter), he = O(null), Y = O([]), He = m(as, O(!1)), Ue = O(!1), We = r(() => {
|
|
7011
7027
|
if (Y.value.length > 0) {
|
|
7012
7028
|
let e = Y.value[0], t = W.find((t) => t.field === e), n = Qe.value, r = !n;
|
|
7013
|
-
if (!r &&
|
|
7029
|
+
if (!r && $c(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
7014
7030
|
}
|
|
7015
7031
|
return null;
|
|
7016
|
-
}), X = r(() => Ye.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : We.value === null), Ge = r(() => We.value ? `Select at least one value for "${We.value}" to view data.` : "Select a filter to view data."), Z = N(null), Ke = O([]), Ye = f.filterStore ||
|
|
7032
|
+
}), X = r(() => Ye.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : We.value === null), Ge = r(() => We.value ? `Select at least one value for "${We.value}" to view data.` : "Select a filter to view data."), Z = N(null), Ke = O([]), Ye = f.filterStore || il(), Xe = m(Yo, null), Ze = Xe || Ls(null, f.allFieldsAreFocusable), Qe = Ye.filterModel, $e = Ye.tableSearchFilterModel, et = Ye.filterValueMap, nt = Ye.filterValuesMap, rt = Ye.filterValueSelectedMetadataMap, it = Ye.fetchFilterValues, at = Ye.filterStoreHandler, ot = Ye.tableSearchHandler;
|
|
7017
7033
|
if (at.value = f.filterValuesSetHandler, at.value) {
|
|
7018
7034
|
let e = (e) => ({
|
|
7019
7035
|
hasMore: Ye.filterHasMoreMap.value[e],
|
|
@@ -7042,8 +7058,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7042
7058
|
debounce: 250
|
|
7043
7059
|
});
|
|
7044
7060
|
let st = O(null), ct = r(() => Ze?.computedFocusType.value || null), lt = r(() => Ze?.computedFocuses.value || []), ut = r(() => W.filter((e) => e.filter)), dt = r(() => W.filter((e) => e.enableRowGroup)), ft = r(() => W.filter((e) => e.aggFunc)), pt = O(null), mt = O({}), ht = O(1), gt = O(0);
|
|
7045
|
-
D(
|
|
7046
|
-
let _t = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !lt.value.length && !ct.value ? f.rowData :
|
|
7061
|
+
D(Jo, Ye), D(Yo, Ze), D(Xo, Ke), D(Zo, Z), D(Qo, st), D($o, he), D(es, ut), D(ts, dt), D(ns, Y), D(rs, pt), D(is, mt), D(as, He), D(os, Ue), D(ss, ht), D(cs, gt), D(ys, r(() => f.enableAdvancedFilter));
|
|
7062
|
+
let _t = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !lt.value.length && !ct.value ? f.rowData : ac(f.rowData, ct.value, lt.value));
|
|
7047
7063
|
B(() => lt.value, (e) => {
|
|
7048
7064
|
T("focus-update", {
|
|
7049
7065
|
filterField: ct.value,
|
|
@@ -7065,7 +7081,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7065
7081
|
}, yt = (e) => {
|
|
7066
7082
|
if (Z.value) {
|
|
7067
7083
|
let t = At();
|
|
7068
|
-
|
|
7084
|
+
Hc(Qe.value, t) || (Qe.value = t, T("filter-changed", e));
|
|
7069
7085
|
}
|
|
7070
7086
|
}, bt = (e) => {
|
|
7071
7087
|
Ke.value = e.api?.getState()?.sort?.sortModel || [], He.value && T("sort-changed", e);
|
|
@@ -7142,10 +7158,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7142
7158
|
}, At = () => Z.value ? f.enableAdvancedFilter ? Z.value.getAdvancedFilterModel() : Z.value.getFilterModel() : Qe.value, jt = (e) => {
|
|
7143
7159
|
if (!Z.value) return !1;
|
|
7144
7160
|
if (f.enableAdvancedFilter) {
|
|
7145
|
-
let t = e &&
|
|
7161
|
+
let t = e && $c(e) ? wc(e) : e;
|
|
7146
7162
|
Z.value.setAdvancedFilterModel(t);
|
|
7147
7163
|
} else {
|
|
7148
|
-
if (e &&
|
|
7164
|
+
if (e && !$c(e)) return console.warn("Attempting to set a non-regular filter model while advanced filtering is disabled. The filter model was not applied. Consider enabling advanced filtering for full functionality."), !1;
|
|
7149
7165
|
Z.value.setFilterModel(e);
|
|
7150
7166
|
}
|
|
7151
7167
|
return !0;
|
|
@@ -7201,7 +7217,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7201
7217
|
if (e) return e.click(), !0;
|
|
7202
7218
|
}
|
|
7203
7219
|
return !1;
|
|
7204
|
-
}, Vt = O(
|
|
7220
|
+
}, Vt = O(Ns), Ht = O({ loadingMessage: "One moment please..." }), Ut = O((() => {
|
|
7205
7221
|
let e = {
|
|
7206
7222
|
headerName: "",
|
|
7207
7223
|
minWidth: 200,
|
|
@@ -7211,7 +7227,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7211
7227
|
headerComponent: void 0,
|
|
7212
7228
|
cellRendererParams: {
|
|
7213
7229
|
suppressCount: !0,
|
|
7214
|
-
innerRenderer:
|
|
7230
|
+
innerRenderer: qs,
|
|
7215
7231
|
innerRendererParams: (e) => ({
|
|
7216
7232
|
displayBaseAggregationsOnly: f.displayBaseAggregationsOnly,
|
|
7217
7233
|
displayRowNumber: f.displayRowNumber,
|
|
@@ -7230,7 +7246,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7230
7246
|
Ut.value.headerName = "", Ut.value.headerComponent = void 0, Ut.value.context = null, Ut.value.sortable = !1, Ut.value.filter = void 0, Ut.value.enableRowGroup = void 0;
|
|
7231
7247
|
return;
|
|
7232
7248
|
}
|
|
7233
|
-
Ut.value.field = e.field, Ut.value.headerName = e.headerName, Ut.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
7249
|
+
Ut.value.field = e.field, Ut.value.headerName = e.headerName, Ut.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : zl), Ut.value.context = { dataType: e.context?.dataType || null }, Ut.value.sortable = e.sortable, Ut.value.filter = e.filter, Ut.value.enableRowGroup = e.enableRowGroup, Ut.value.onCellClicked = e.onCellClicked;
|
|
7234
7250
|
}, Gt = (e) => {
|
|
7235
7251
|
if (e.node.group) return {
|
|
7236
7252
|
backgroundColor: "#F7F8F8",
|
|
@@ -7240,12 +7256,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7240
7256
|
let t = e.values;
|
|
7241
7257
|
if (e.rowNode.leafGroup) return {
|
|
7242
7258
|
values: t,
|
|
7243
|
-
value:
|
|
7259
|
+
value: Js(t)
|
|
7244
7260
|
};
|
|
7245
7261
|
let n = e.values.flatMap((e) => e.values || []);
|
|
7246
7262
|
return {
|
|
7247
7263
|
values: n,
|
|
7248
|
-
value:
|
|
7264
|
+
value: Js(n)
|
|
7249
7265
|
};
|
|
7250
7266
|
} };
|
|
7251
7267
|
S(() => {
|
|
@@ -7265,11 +7281,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7265
7281
|
let t = Z.value;
|
|
7266
7282
|
if (!t) return;
|
|
7267
7283
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
7268
|
-
n && !
|
|
7284
|
+
n && !Hc(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !tt(r, Y.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
7269
7285
|
};
|
|
7270
7286
|
B(() => f.initialGridState, () => {
|
|
7271
7287
|
if (f.initialGridState) {
|
|
7272
|
-
let e =
|
|
7288
|
+
let e = Tc(f.initialGridState, W, f.enableAdvancedFilter);
|
|
7273
7289
|
e && qt(e);
|
|
7274
7290
|
}
|
|
7275
7291
|
}, { deep: !0 });
|
|
@@ -7302,10 +7318,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7302
7318
|
content: V(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
7303
7319
|
_: 1
|
|
7304
7320
|
})) : a("", !0),
|
|
7305
|
-
H(s("div",
|
|
7321
|
+
H(s("div", iu, [s("div", au, [(E(), i(n, {
|
|
7306
7322
|
to: e.filterTeleportLocation,
|
|
7307
7323
|
disabled: !e.filterTeleportLocation
|
|
7308
|
-
}, [ut.value.length > 0 && !f.enableInlineFilters ? (E(), i(
|
|
7324
|
+
}, [ut.value.length > 0 && !f.enableInlineFilters ? (E(), i(Il, {
|
|
7309
7325
|
key: 0,
|
|
7310
7326
|
"enable-focus-view": e.enableFocusView,
|
|
7311
7327
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -7323,11 +7339,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7323
7339
|
"focus-text",
|
|
7324
7340
|
"max-horizontal-filters",
|
|
7325
7341
|
"read-only"
|
|
7326
|
-
])) : a("", !0)], 8, ["to", "disabled"])), s("div",
|
|
7342
|
+
])) : a("", !0)], 8, ["to", "disabled"])), s("div", ou, [e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (E(), i(ks, {
|
|
7327
7343
|
key: 0,
|
|
7328
7344
|
rowGroupLimit: e.rowGroupLimit,
|
|
7329
7345
|
enableFocusView: e.enableFocusView
|
|
7330
|
-
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(
|
|
7346
|
+
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(ql, {
|
|
7331
7347
|
key: 1,
|
|
7332
7348
|
getCsvData: Tt
|
|
7333
7349
|
})) : a("", !0)])])], 512), [[re, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
@@ -7339,7 +7355,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7339
7355
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
7340
7356
|
key: 1,
|
|
7341
7357
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
7342
|
-
}, [s("div",
|
|
7358
|
+
}, [s("div", su, [e.enableTableSearch ? (E(), i(eu, {
|
|
7343
7359
|
key: 0,
|
|
7344
7360
|
placeholder: e.tableSearchPlaceholder,
|
|
7345
7361
|
disabled: !X.value,
|
|
@@ -7435,14 +7451,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7435
7451
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
7436
7452
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
7437
7453
|
advancedFilterParent: Qt.value
|
|
7438
|
-
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !X.value ? (E(), o("div",
|
|
7439
|
-
e.pagination ? (E(), i(
|
|
7454
|
+
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !X.value ? (E(), o("div", cu, [s("p", lu, P(Ge.value), 1)])) : a("", !0)], 2),
|
|
7455
|
+
e.pagination ? (E(), i(Yl, { key: 2 })) : a("", !0)
|
|
7440
7456
|
], 4));
|
|
7441
7457
|
}
|
|
7442
|
-
}),
|
|
7458
|
+
}), du = {
|
|
7443
7459
|
class: "pv-flex",
|
|
7444
7460
|
style: { "white-space": "nowrap" }
|
|
7445
|
-
},
|
|
7461
|
+
}, fu = { class: "pv-text-body-md" }, pu = /* @__PURE__ */ d({
|
|
7446
7462
|
inheritAttrs: !1,
|
|
7447
7463
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
7448
7464
|
props: {
|
|
@@ -7451,16 +7467,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7451
7467
|
context: {}
|
|
7452
7468
|
},
|
|
7453
7469
|
setup(e) {
|
|
7454
|
-
return (t, n) => (E(), o("div",
|
|
7470
|
+
return (t, n) => (E(), o("div", du, [s("span", fu, P(e.text), 1), e.context?.rightIcon ? (E(), i(ln, {
|
|
7455
7471
|
key: 0,
|
|
7456
7472
|
name: e.context.rightIcon,
|
|
7457
7473
|
class: "pv-text-subdued"
|
|
7458
7474
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
7459
7475
|
}
|
|
7460
|
-
}),
|
|
7476
|
+
}), mu = { class: "pv-relative" }, hu = {
|
|
7461
7477
|
role: "list",
|
|
7462
7478
|
class: "pv-relative"
|
|
7463
|
-
},
|
|
7479
|
+
}, gu = ["data-active"], _u = { style: { cursor: "pointer" } }, vu = { role: "list" }, yu = /* @__PURE__ */ d({
|
|
7464
7480
|
__name: "PvTableOptionsPanel",
|
|
7465
7481
|
props: {
|
|
7466
7482
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -7468,7 +7484,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7468
7484
|
},
|
|
7469
7485
|
emits: ["toggle-group", "table-overlay-change"],
|
|
7470
7486
|
setup(e, { emit: n }) {
|
|
7471
|
-
let i = e, c = n, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } =
|
|
7487
|
+
let i = e, c = n, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } = sl({
|
|
7472
7488
|
alignment: "top",
|
|
7473
7489
|
popoverCssProperties: {
|
|
7474
7490
|
maxWidth: "300px",
|
|
@@ -7495,7 +7511,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7495
7511
|
}, C = () => {
|
|
7496
7512
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
7497
7513
|
};
|
|
7498
|
-
return (n, r) => (E(), o(t, null, [H((E(), o("div",
|
|
7514
|
+
return (n, r) => (E(), o(t, null, [H((E(), o("div", mu, [u(ia, {
|
|
7499
7515
|
open: m.value,
|
|
7500
7516
|
label: "Table Configuration",
|
|
7501
7517
|
icon: "settings",
|
|
@@ -7516,7 +7532,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7516
7532
|
"padding-top": "4px",
|
|
7517
7533
|
"padding-bottom": "12px"
|
|
7518
7534
|
}
|
|
7519
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
7535
|
+
}, " Table Configuration ")], -1), s("ul", hu, [v.value ? (E(), o("li", {
|
|
7520
7536
|
key: 0,
|
|
7521
7537
|
id: "table-config-overlay",
|
|
7522
7538
|
"data-active": h.value ? !0 : null,
|
|
@@ -7529,7 +7545,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7529
7545
|
text: "Table Overlay",
|
|
7530
7546
|
icon: "layers-2",
|
|
7531
7547
|
"class-list": ["pv-menu-nested", h.value ? "pv-menu-nested-active" : ""]
|
|
7532
|
-
}, null, 8, ["class-list"])], 40,
|
|
7548
|
+
}, null, 8, ["class-list"])], 40, gu)) : a("", !0), s("li", _u, [u(za, {
|
|
7533
7549
|
config: { variant: "icon" },
|
|
7534
7550
|
id: "table-config-group-toggle",
|
|
7535
7551
|
class: "pv-text-subdued",
|
|
@@ -7549,11 +7565,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7549
7565
|
},
|
|
7550
7566
|
isList: !0
|
|
7551
7567
|
}, {
|
|
7552
|
-
default: V(() => [s("ul",
|
|
7568
|
+
default: V(() => [s("ul", vu, [(E(!0), o(t, null, k(_.value, (e) => (E(), o("li", { key: e.id }, [u(za, {
|
|
7553
7569
|
id: e.id,
|
|
7554
7570
|
config: {
|
|
7555
7571
|
variant: "checkbox",
|
|
7556
|
-
renderer:
|
|
7572
|
+
renderer: pu
|
|
7557
7573
|
},
|
|
7558
7574
|
text: e.text,
|
|
7559
7575
|
context: e.context,
|
|
@@ -7570,13 +7586,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7570
7586
|
_: 1
|
|
7571
7587
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
7572
7588
|
}
|
|
7573
|
-
}),
|
|
7589
|
+
}), bu = ["id"], xu = {
|
|
7574
7590
|
key: 0,
|
|
7575
7591
|
class: "sort-divider-container"
|
|
7576
|
-
},
|
|
7592
|
+
}, Su = ["data-label"], Cu = ["onDrop"], wu = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, Tu = { class: "pv-text-body-sm pv-text-tertiary" }, Eu = { class: "pv-flex pv-full-width pv-sort-option" }, Du = { class: "pv-text-body-sm" }, Ou = {
|
|
7577
7593
|
key: 1,
|
|
7578
7594
|
class: "pv-button-placeholder"
|
|
7579
|
-
},
|
|
7595
|
+
}, ku = "--divider--", Au = "placeholder-", ju = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7580
7596
|
__name: "PvSortableList",
|
|
7581
7597
|
props: /* @__PURE__ */ g({
|
|
7582
7598
|
options: { default: () => [] },
|
|
@@ -7596,11 +7612,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7596
7612
|
emits: ["update:modelValue"],
|
|
7597
7613
|
setup(e) {
|
|
7598
7614
|
let n = e, c = L(e, "modelValue"), l = {
|
|
7599
|
-
id:
|
|
7615
|
+
id: ku,
|
|
7600
7616
|
text: "",
|
|
7601
7617
|
disabled: !0
|
|
7602
7618
|
}, d = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), f = r(() => !n.showPlaceholders || d.value === 0 ? [] : Array.from({ length: d.value }, (e, t) => ({
|
|
7603
|
-
id: `${
|
|
7619
|
+
id: `${Au}${t}`,
|
|
7604
7620
|
text: "",
|
|
7605
7621
|
disabled: !0,
|
|
7606
7622
|
isPlaceholder: !0
|
|
@@ -7614,20 +7630,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7614
7630
|
];
|
|
7615
7631
|
}), m = z("sortableListRef"), h = z("containerRef"), g = null, _ = null, v = () => {
|
|
7616
7632
|
if (!m.value) return;
|
|
7617
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
7633
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === ku);
|
|
7618
7634
|
t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith("placeholder-")), c.value = e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
7619
7635
|
};
|
|
7620
7636
|
w(() => {
|
|
7621
7637
|
m.value && (g = new nt(m.value, {
|
|
7622
7638
|
animation: 200,
|
|
7623
|
-
filter: `#${
|
|
7639
|
+
filter: `#${ku}, [id^="placeholder-"]`,
|
|
7624
7640
|
dragoverBubble: !0,
|
|
7625
7641
|
onStart: (e) => {
|
|
7626
7642
|
_ = e.item;
|
|
7627
7643
|
},
|
|
7628
7644
|
onMove: (e) => {
|
|
7629
7645
|
let t = e.related;
|
|
7630
|
-
if (t?.id ===
|
|
7646
|
+
if (t?.id === ku || t?.id?.startsWith("placeholder-")) return !1;
|
|
7631
7647
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
7632
7648
|
return r && D(r);
|
|
7633
7649
|
},
|
|
@@ -7675,20 +7691,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7675
7691
|
key: e.id,
|
|
7676
7692
|
id: e.id,
|
|
7677
7693
|
class: "pv-stack-4"
|
|
7678
|
-
}, [e.id ===
|
|
7694
|
+
}, [e.id === ku ? (E(), o("div", xu, [s("div", {
|
|
7679
7695
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
7680
7696
|
"data-label": O.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
7681
|
-
}, null, 8,
|
|
7697
|
+
}, null, 8, Su)])) : e.id.includes(Au) ? (E(), o("div", {
|
|
7682
7698
|
key: 1,
|
|
7683
7699
|
class: "placeholder-zone",
|
|
7684
7700
|
onDragover: r[0] ||= (e) => b(e),
|
|
7685
7701
|
onDragleave: r[1] ||= (e) => S(e),
|
|
7686
7702
|
onDrop: (t) => C(t, parseInt(e.id.split("-")[1]) + 1)
|
|
7687
|
-
}, [s("div",
|
|
7703
|
+
}, [s("div", wu, [s("span", Tu, P(n.placeholderText), 1)])], 40, Cu)) : (E(), o("div", {
|
|
7688
7704
|
key: 2,
|
|
7689
7705
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !D(e) && O.value ? "pv-menu-item-disabled" : ""]),
|
|
7690
7706
|
style: x(M(e))
|
|
7691
|
-
}, [s("div",
|
|
7707
|
+
}, [s("div", Eu, [
|
|
7692
7708
|
u(ln, {
|
|
7693
7709
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7694
7710
|
name: "reorder"
|
|
@@ -7698,8 +7714,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7698
7714
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7699
7715
|
name: e.icon
|
|
7700
7716
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
7701
|
-
s("span",
|
|
7702
|
-
]), j(e) ? (E(), o("div",
|
|
7717
|
+
s("span", Du, P(e.text), 1)
|
|
7718
|
+
]), j(e) ? (E(), o("div", Ou)) : (E(), i(gn, {
|
|
7703
7719
|
key: 0,
|
|
7704
7720
|
"left-icon": D(e) ? "remove-circle" : "add-circle",
|
|
7705
7721
|
ariaLabel: D(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -7711,12 +7727,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7711
7727
|
"ariaLabel",
|
|
7712
7728
|
"style",
|
|
7713
7729
|
"onClick"
|
|
7714
|
-
]))], 6))], 8,
|
|
7730
|
+
]))], 6))], 8, bu))), 128))], 512)], 512));
|
|
7715
7731
|
}
|
|
7716
|
-
}), [["__scopeId", "data-v-34615cd0"]]),
|
|
7732
|
+
}), [["__scopeId", "data-v-34615cd0"]]), Mu = (e) => e.filter((e) => !lc(e)), Nu = (e) => e.filter((e) => lc(e)), Pu = {
|
|
7717
7733
|
xAxis: {
|
|
7718
7734
|
selectMode: "sortable",
|
|
7719
|
-
filterColumns:
|
|
7735
|
+
filterColumns: Mu
|
|
7720
7736
|
},
|
|
7721
7737
|
yAxis: {},
|
|
7722
7738
|
secondaryYAxis: {},
|
|
@@ -7725,16 +7741,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7725
7741
|
rowGroupLimit: 2,
|
|
7726
7742
|
supportsFocusView: !0,
|
|
7727
7743
|
storeBeforeChange: !0
|
|
7728
|
-
},
|
|
7744
|
+
}, Fu = [
|
|
7729
7745
|
{
|
|
7730
|
-
...
|
|
7746
|
+
...Pu,
|
|
7731
7747
|
id: "column",
|
|
7732
7748
|
text: "Column",
|
|
7733
7749
|
icon: "chart-column",
|
|
7734
7750
|
agChartType: "bar"
|
|
7735
7751
|
},
|
|
7736
7752
|
{
|
|
7737
|
-
...
|
|
7753
|
+
...Pu,
|
|
7738
7754
|
id: "bar",
|
|
7739
7755
|
text: "Bar",
|
|
7740
7756
|
icon: "chart-bar",
|
|
@@ -7742,28 +7758,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7742
7758
|
isHorizontal: !0
|
|
7743
7759
|
},
|
|
7744
7760
|
{
|
|
7745
|
-
...
|
|
7761
|
+
...Pu,
|
|
7746
7762
|
id: "line",
|
|
7747
7763
|
text: "Line",
|
|
7748
7764
|
icon: "chart-line",
|
|
7749
7765
|
agChartType: "line"
|
|
7750
7766
|
},
|
|
7751
7767
|
{
|
|
7752
|
-
...
|
|
7768
|
+
...Pu,
|
|
7753
7769
|
id: "area",
|
|
7754
7770
|
text: "Area",
|
|
7755
7771
|
icon: "chart-area",
|
|
7756
7772
|
agChartType: "area"
|
|
7757
7773
|
},
|
|
7758
7774
|
{
|
|
7759
|
-
...
|
|
7775
|
+
...Pu,
|
|
7760
7776
|
id: "column_stacked",
|
|
7761
7777
|
text: "Stacked Column",
|
|
7762
7778
|
icon: "chart-column-stacked",
|
|
7763
7779
|
agChartType: "bar"
|
|
7764
7780
|
},
|
|
7765
7781
|
{
|
|
7766
|
-
...
|
|
7782
|
+
...Pu,
|
|
7767
7783
|
id: "bar_stacked",
|
|
7768
7784
|
text: "Stacked Bar",
|
|
7769
7785
|
icon: "chart-bar-stacked",
|
|
@@ -7771,7 +7787,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7771
7787
|
isHorizontal: !0
|
|
7772
7788
|
},
|
|
7773
7789
|
{
|
|
7774
|
-
...
|
|
7790
|
+
...Pu,
|
|
7775
7791
|
id: "pie",
|
|
7776
7792
|
text: "Pie",
|
|
7777
7793
|
icon: "chart-pie",
|
|
@@ -7785,12 +7801,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7785
7801
|
icon: "chart-column",
|
|
7786
7802
|
xAxis: {
|
|
7787
7803
|
selectMode: "single",
|
|
7788
|
-
filterColumns:
|
|
7804
|
+
filterColumns: Nu,
|
|
7789
7805
|
hideLabel: !0
|
|
7790
7806
|
},
|
|
7791
7807
|
yAxis: {
|
|
7792
7808
|
hidden: !0,
|
|
7793
|
-
defaultValue:
|
|
7809
|
+
defaultValue: $s
|
|
7794
7810
|
},
|
|
7795
7811
|
secondaryYAxis: { hidden: !0 },
|
|
7796
7812
|
sort: {},
|
|
@@ -7800,16 +7816,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7800
7816
|
supportsFocusView: !1,
|
|
7801
7817
|
storeBeforeChange: !1
|
|
7802
7818
|
}
|
|
7803
|
-
],
|
|
7804
|
-
function
|
|
7805
|
-
return
|
|
7819
|
+
], Iu = new Map(Fu.map((e) => [e.id, e])), Lu = Iu.get("column");
|
|
7820
|
+
function Ru(e) {
|
|
7821
|
+
return Iu.get(e) || Lu;
|
|
7806
7822
|
}
|
|
7807
7823
|
//#endregion
|
|
7808
7824
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
7809
|
-
var
|
|
7825
|
+
var zu = {
|
|
7810
7826
|
class: "pv-full-width pv-flex",
|
|
7811
7827
|
style: { "--flex-gap": "8px" }
|
|
7812
|
-
},
|
|
7828
|
+
}, Bu = ["title"], Vu = { style: { "max-width": "220px" } }, Hu = /* @__PURE__ */ d({
|
|
7813
7829
|
inheritAttrs: !1,
|
|
7814
7830
|
__name: "PvChartOptionMenuItemRenderer",
|
|
7815
7831
|
props: {
|
|
@@ -7817,10 +7833,10 @@ var Ru = {
|
|
|
7817
7833
|
context: {}
|
|
7818
7834
|
},
|
|
7819
7835
|
setup(e) {
|
|
7820
|
-
return (t, n) => (E(), o("div",
|
|
7836
|
+
return (t, n) => (E(), o("div", zu, [s("span", {
|
|
7821
7837
|
class: "pv-text-body-md pv-truncate",
|
|
7822
7838
|
title: e.text
|
|
7823
|
-
}, P(e.text), 9,
|
|
7839
|
+
}, P(e.text), 9, Bu), e.context?.description ? (E(), i(I(bi), {
|
|
7824
7840
|
key: 0,
|
|
7825
7841
|
variant: "dark",
|
|
7826
7842
|
position: "center-right",
|
|
@@ -7834,25 +7850,25 @@ var Ru = {
|
|
|
7834
7850
|
name: "info-circle",
|
|
7835
7851
|
class: "pv-text-subdued"
|
|
7836
7852
|
})]),
|
|
7837
|
-
content: V(() => [s("div",
|
|
7853
|
+
content: V(() => [s("div", Vu, P(e.context.description), 1)]),
|
|
7838
7854
|
_: 1
|
|
7839
7855
|
})) : a("", !0)]));
|
|
7840
7856
|
}
|
|
7841
|
-
}),
|
|
7857
|
+
}), Uu = { class: "pv-stack-16 pv-chart-options-panel" }, Wu = { class: "pv-flex pv-relative" }, Gu = {
|
|
7842
7858
|
role: "list",
|
|
7843
7859
|
class: "pv-relative"
|
|
7844
|
-
},
|
|
7860
|
+
}, Ku = [
|
|
7845
7861
|
"id",
|
|
7846
7862
|
"data-active",
|
|
7847
7863
|
"onMouseenter",
|
|
7848
7864
|
"onClick"
|
|
7849
|
-
],
|
|
7865
|
+
], qu = { style: { "max-width": "100px" } }, Ju = {
|
|
7850
7866
|
key: 1,
|
|
7851
7867
|
class: "pv-flex"
|
|
7852
|
-
},
|
|
7868
|
+
}, Yu = {
|
|
7853
7869
|
key: 1,
|
|
7854
7870
|
role: "list"
|
|
7855
|
-
},
|
|
7871
|
+
}, Xu = ["data-active"], Zu = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7856
7872
|
__name: "PvChartOptionsPanel",
|
|
7857
7873
|
props: {
|
|
7858
7874
|
enablePanel: { type: Boolean },
|
|
@@ -7862,17 +7878,17 @@ var Ru = {
|
|
|
7862
7878
|
chartConfigOptions: {}
|
|
7863
7879
|
},
|
|
7864
7880
|
setup(e) {
|
|
7865
|
-
let n = e, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } =
|
|
7881
|
+
let n = e, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } = sl({
|
|
7866
7882
|
alignment: "top right",
|
|
7867
7883
|
popoverCssProperties: {
|
|
7868
7884
|
maxWidth: "500px",
|
|
7869
7885
|
maxHeight: "900px"
|
|
7870
7886
|
},
|
|
7871
7887
|
useTeleport: !0
|
|
7872
|
-
}), g = O(!1), _ = O(void 0), v = O(null), b = m(
|
|
7888
|
+
}), g = O(!1), _ = O(void 0), v = O(null), b = m(ps, O(void 0)), S = m(ds, O([])), C = m(ms, O(void 0)), w = m(fs, O([])), T = m(us, O([])), D = m(ts, O([])), A = r(() => Ru(b.value?.id || "")), j = r(() => {
|
|
7873
7889
|
let e = b.value?.id ?? "";
|
|
7874
7890
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
7875
|
-
}), M = m(
|
|
7891
|
+
}), M = m(hs, O("")), N = m(gs, O([])), F = m(_s, O(void 0)), ee = m(vs, O([])), L = m(bs, O(/* @__PURE__ */ new Set())), R = m(xs, O([])), z = r(() => R.value.filter((e) => L.value.has(e.id)).map((e) => ({
|
|
7876
7892
|
id: e.id,
|
|
7877
7893
|
text: e.label,
|
|
7878
7894
|
disabled: e.disabled,
|
|
@@ -7883,7 +7899,7 @@ var Ru = {
|
|
|
7883
7899
|
B(j, (e) => {
|
|
7884
7900
|
e && F.value && (F.value = void 0);
|
|
7885
7901
|
}, { immediate: !0 });
|
|
7886
|
-
let ne = m(
|
|
7902
|
+
let ne = m(ls, O("")), re = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
7887
7903
|
label: e.label,
|
|
7888
7904
|
value: e.value
|
|
7889
7905
|
})) : []), U = r(() => {
|
|
@@ -7928,7 +7944,7 @@ var Ru = {
|
|
|
7928
7944
|
}))), oe = r(() => D.value.map((e) => ({
|
|
7929
7945
|
id: e.field || "",
|
|
7930
7946
|
text: e.headerName || e.field || "",
|
|
7931
|
-
icon:
|
|
7947
|
+
icon: Ys(e.context?.dataType || null) || "circle-chevron-down"
|
|
7932
7948
|
}))), se = r({
|
|
7933
7949
|
get: () => T.value.map((e) => oe.value.find((t) => t.id === e)).filter(Boolean),
|
|
7934
7950
|
set: (e) => {
|
|
@@ -8039,15 +8055,15 @@ var Ru = {
|
|
|
8039
8055
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
8040
8056
|
}, q = (e) => K.value?.isMultiSelect ? null : ce(e), le = (e) => K.value?.isMultiSelect ? {
|
|
8041
8057
|
variant: "checkbox",
|
|
8042
|
-
renderer:
|
|
8043
|
-
} : W(e) ? { renderer:
|
|
8058
|
+
renderer: Hu
|
|
8059
|
+
} : W(e) ? { renderer: Hu } : { variant: "icon" }, ue = (e) => {
|
|
8044
8060
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
8045
8061
|
}, de = () => {
|
|
8046
8062
|
g.value = !1, _.value = void 0;
|
|
8047
8063
|
}, fe = () => {
|
|
8048
8064
|
_.value = void 0;
|
|
8049
8065
|
};
|
|
8050
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
8066
|
+
return (n, r) => (E(), o(t, null, [s("div", Uu, [s("div", null, [H((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Wu, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(ia, {
|
|
8051
8067
|
open: g.value,
|
|
8052
8068
|
label: "Chart Configuration",
|
|
8053
8069
|
icon: "chart-area",
|
|
@@ -8068,7 +8084,7 @@ var Ru = {
|
|
|
8068
8084
|
"padding-top": "4px",
|
|
8069
8085
|
"padding-bottom": "12px"
|
|
8070
8086
|
}
|
|
8071
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
8087
|
+
}, " Chart Configuration ")], -1), s("ul", Gu, [(E(!0), o(t, null, k(G.value, (e) => (E(), o("li", {
|
|
8072
8088
|
id: `pv-chart-config-${e.value}`,
|
|
8073
8089
|
key: e.value,
|
|
8074
8090
|
"data-active": _.value === e.value ? !0 : null,
|
|
@@ -8098,9 +8114,9 @@ var Ru = {
|
|
|
8098
8114
|
_: 2
|
|
8099
8115
|
}, [e.disabled && e.disabledReason ? {
|
|
8100
8116
|
name: "content",
|
|
8101
|
-
fn: V(() => [s("div",
|
|
8117
|
+
fn: V(() => [s("div", qu, P(e.disabledReason), 1)]),
|
|
8102
8118
|
key: "0"
|
|
8103
|
-
} : void 0]), 1024)], 40,
|
|
8119
|
+
} : void 0]), 1024)], 40, Ku))), 128))])]),
|
|
8104
8120
|
_: 1
|
|
8105
8121
|
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Xe), [de, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
8106
8122
|
class: "pv-flex pv-space-between",
|
|
@@ -8110,7 +8126,7 @@ var Ru = {
|
|
|
8110
8126
|
options: re.value,
|
|
8111
8127
|
modelValue: I(ne),
|
|
8112
8128
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null
|
|
8113
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div",
|
|
8129
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", Ju, [(E(!0), o(t, null, k(G.value, (e) => (E(), o(t, { key: e.value }, [e.isMultiSelect && e.activeOptions && e.activeOptionIds ? (E(), i(Xa, {
|
|
8114
8130
|
key: 0,
|
|
8115
8131
|
label: e.label,
|
|
8116
8132
|
prefixLabel: e.prefixLabel,
|
|
@@ -8120,7 +8136,7 @@ var Ru = {
|
|
|
8120
8136
|
disableSearchInput: !0,
|
|
8121
8137
|
disabled: e.disabled,
|
|
8122
8138
|
optionsVariant: "checkbox",
|
|
8123
|
-
optionsRenderer:
|
|
8139
|
+
optionsRenderer: Hu
|
|
8124
8140
|
}, null, 8, [
|
|
8125
8141
|
"label",
|
|
8126
8142
|
"prefixLabel",
|
|
@@ -8164,7 +8180,7 @@ var Ru = {
|
|
|
8164
8180
|
"padding-left": "2px",
|
|
8165
8181
|
"padding-bottom": "6px"
|
|
8166
8182
|
}
|
|
8167
|
-
}, " Viewing ", -1), u(
|
|
8183
|
+
}, " Viewing ", -1), u(ju, {
|
|
8168
8184
|
modelValue: K.value.activeOptions.value,
|
|
8169
8185
|
"onUpdate:modelValue": r[2] ||= (e) => K.value.activeOptions.value = e,
|
|
8170
8186
|
options: K.value.availableOptions || [],
|
|
@@ -8174,7 +8190,7 @@ var Ru = {
|
|
|
8174
8190
|
"modelValue",
|
|
8175
8191
|
"options",
|
|
8176
8192
|
"activeOptionLimit"
|
|
8177
|
-
])], 64)) : (E(), o("ul",
|
|
8193
|
+
])], 64)) : (E(), o("ul", Yu, [(E(!0), o(t, null, k(K.value.availableOptions, (e) => (E(), o("li", {
|
|
8178
8194
|
key: e.id,
|
|
8179
8195
|
"data-active": q(e)
|
|
8180
8196
|
}, [u(za, {
|
|
@@ -8199,14 +8215,14 @@ var Ru = {
|
|
|
8199
8215
|
"disabled",
|
|
8200
8216
|
"selectedIds",
|
|
8201
8217
|
"onHandleSelected"
|
|
8202
|
-
])], 8,
|
|
8218
|
+
])], 8, Xu))), 128))]))], 64)) : a("", !0)]),
|
|
8203
8219
|
_: 1
|
|
8204
8220
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
8205
8221
|
}
|
|
8206
8222
|
}), [["__scopeId", "data-v-681e0d80"]]);
|
|
8207
8223
|
//#endregion
|
|
8208
8224
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
8209
|
-
function
|
|
8225
|
+
function Qu(e, t, n, r, i) {
|
|
8210
8226
|
return i ? {
|
|
8211
8227
|
xKey: n,
|
|
8212
8228
|
xName: r,
|
|
@@ -8221,7 +8237,7 @@ function Zu(e, t, n, r, i) {
|
|
|
8221
8237
|
}
|
|
8222
8238
|
//#endregion
|
|
8223
8239
|
//#region src/components/charts/PvDataTableWithChart/helpers.ts
|
|
8224
|
-
var
|
|
8240
|
+
var $u = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, chartDataEmpty: n, missingFocusText: r, displayGroupByName: i }) => e === 0 ? "No groups selected. Select at least one group to display data." : n ? t ? r ?? `Select focus ${i} to view Visualization.` : jt : "", ed = (e, t) => `${e}_${t}`, td = (e) => `secondaryCategory_${e}`, nd = (e, t, n, r, i = []) => {
|
|
8225
8241
|
if (!e || e.length === 0) return {
|
|
8226
8242
|
data: [],
|
|
8227
8243
|
uniqueFieldValues: []
|
|
@@ -8234,7 +8250,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8234
8250
|
let o = e.reduce((e, o) => {
|
|
8235
8251
|
let s = o[t];
|
|
8236
8252
|
e[s] || (e[s] = {});
|
|
8237
|
-
let c = o[n], l =
|
|
8253
|
+
let c = o[n], l = td(c);
|
|
8238
8254
|
e[s][l] = `${s}-${c}`;
|
|
8239
8255
|
for (let t of r) {
|
|
8240
8256
|
let r = t.value, i = 0;
|
|
@@ -8242,9 +8258,9 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8242
8258
|
let l = o[r];
|
|
8243
8259
|
if (a.add(c), n && l) {
|
|
8244
8260
|
let t = l ?? 0;
|
|
8245
|
-
e[s][
|
|
8261
|
+
e[s][ed(r, c)] = t, i += t;
|
|
8246
8262
|
}
|
|
8247
|
-
e[s][`${r}${
|
|
8263
|
+
e[s][`${r}${ic}`] = i;
|
|
8248
8264
|
}
|
|
8249
8265
|
for (let t of i) e[s][t.value] = o[t.value];
|
|
8250
8266
|
return e;
|
|
@@ -8256,25 +8272,25 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8256
8272
|
})),
|
|
8257
8273
|
uniqueFieldValues: Array.from(a)
|
|
8258
8274
|
};
|
|
8259
|
-
},
|
|
8275
|
+
}, rd = (e, t, n) => {
|
|
8260
8276
|
let r = -Infinity;
|
|
8261
8277
|
return !e || e.length === 0 || (n ? e.forEach((e) => {
|
|
8262
|
-
let n = e[t +
|
|
8278
|
+
let n = e[t + ic];
|
|
8263
8279
|
typeof n == "number" && n > r && (r = n);
|
|
8264
8280
|
}) : e.forEach((e) => {
|
|
8265
8281
|
let n = e[t];
|
|
8266
8282
|
typeof n == "number" && n > r && (r = n);
|
|
8267
8283
|
})), r;
|
|
8268
|
-
},
|
|
8284
|
+
}, id = { style: {
|
|
8269
8285
|
height: "100%",
|
|
8270
8286
|
width: "100%"
|
|
8271
|
-
} },
|
|
8287
|
+
} }, ad = {
|
|
8272
8288
|
key: 0,
|
|
8273
8289
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
8274
|
-
},
|
|
8290
|
+
}, od = { class: "pv-flex" }, sd = { class: "pv-relative pv-margin-auto" }, cd = { class: "pv-chart-overlay pv-flex pv-align-center" }, ld = { key: 0 }, ud = {
|
|
8275
8291
|
key: 1,
|
|
8276
8292
|
class: "pv-text-body-xs"
|
|
8277
|
-
},
|
|
8293
|
+
}, dd = /* @__PURE__ */ d({
|
|
8278
8294
|
__name: "PvDataTableWithChart",
|
|
8279
8295
|
props: {
|
|
8280
8296
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -8504,16 +8520,16 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8504
8520
|
formatter: n.valueFormatter,
|
|
8505
8521
|
dataType: n.context?.dataType
|
|
8506
8522
|
};
|
|
8507
|
-
})), R = l.filterStore ||
|
|
8508
|
-
D(
|
|
8509
|
-
let z =
|
|
8523
|
+
})), R = l.filterStore || il();
|
|
8524
|
+
D(Jo, R);
|
|
8525
|
+
let z = Ls({
|
|
8510
8526
|
focusType: l.initialFocusData?.focusType,
|
|
8511
8527
|
focuses: l.initialFocusData?.focuses || [],
|
|
8512
8528
|
focusRequired: l.focusRequired
|
|
8513
8529
|
}, l.allFieldsAreFocusable);
|
|
8514
|
-
D(
|
|
8530
|
+
D(Yo, z);
|
|
8515
8531
|
let { setFilterSelectedValues: te } = R, ne = O(!1);
|
|
8516
|
-
D(
|
|
8532
|
+
D(as, ne);
|
|
8517
8533
|
let re = O(l.isTableGrouped), H = (e) => {
|
|
8518
8534
|
d("table-overlay-change", e);
|
|
8519
8535
|
}, U = r(() => $e.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && R.filterModelEmpty.value)), W = r(() => z?.computedFocusType.value || null), ie = r(() => z?.computedFocuses.value || []), ae = (e) => {
|
|
@@ -8554,12 +8570,12 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8554
8570
|
return (r) => {
|
|
8555
8571
|
if (r.data = ye.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
8556
8572
|
let i = "", a = q(e);
|
|
8557
|
-
if (l.truncateLabelValues && n && a &&
|
|
8573
|
+
if (l.truncateLabelValues && n && a && lc(a) && !isNaN(Number(r.value))) {
|
|
8558
8574
|
if (Fe.value) {
|
|
8559
8575
|
let e = r.datum?.[N.value], t = be.value?.find((t) => t[N.value] === e)?.[`${J.value}_sort_total`] || Infinity;
|
|
8560
8576
|
if (r.value / t < .05) return "";
|
|
8561
8577
|
}
|
|
8562
|
-
let { newValue: e, newSuffix: t } =
|
|
8578
|
+
let { newValue: e, newSuffix: t } = Qs(r.value, Q.Percent === $(a).dataType, qe.value);
|
|
8563
8579
|
r.value = e, i = t;
|
|
8564
8580
|
}
|
|
8565
8581
|
let o = r.value;
|
|
@@ -8573,7 +8589,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8573
8589
|
}, q = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), le = (e, t) => {
|
|
8574
8590
|
let n = q(N.value);
|
|
8575
8591
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
8576
|
-
}, ue = r(() => [...j.value.length > 1 ?
|
|
8592
|
+
}, ue = r(() => [...j.value.length > 1 ? tc : ec, nc].filter((e) => l.enabledChartTypes?.includes(e.id))), de = O(void 0), fe = O(void 0), pe = O(void 0), me = !1, he = r(() => Ru(de.value?.id || "")), ge = r(() => Math.min(he.value.rowGroupLimit, l.rowGroupLimit)), _e = r(() => {
|
|
8577
8593
|
let e = he.value.xAxis.filterColumns;
|
|
8578
8594
|
return e ? e(k.value) : k.value;
|
|
8579
8595
|
}), ve = O([{
|
|
@@ -8585,12 +8601,12 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8585
8601
|
id: "desc",
|
|
8586
8602
|
icon: "arrow-down-narrow-wide"
|
|
8587
8603
|
}]), ye = O([]), be = O([]), J = O(l.yKey), xe = O(ee.value[0]?.value), Se = r(() => l.crosslineOverlayGroups ?? []), Ce = O(new Set(Se.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), we = r(() => Se.value.filter((e) => Ce.value.has(e.id)).flatMap((e) => e.overlays)), Y = O(null), Te = O(ve.value.find((e) => e.id === l.initialSort || "")), Ee = O("");
|
|
8588
|
-
D(
|
|
8604
|
+
D(Zo, p), D(ls, Ee), D(ts, _e), D(us, j), D(ds, ue), D(fs, ve), D(ps, de), D(ms, Te), D(hs, J), D(gs, I), D(_s, xe), D(vs, ee), D(bs, Ce), D(xs, Se);
|
|
8589
8605
|
let De = (e) => {
|
|
8590
8606
|
de.value = ue.value.find((t) => t.id === e) ?? ue.value[0];
|
|
8591
8607
|
};
|
|
8592
8608
|
B(() => ue.value, () => {
|
|
8593
|
-
let e = Ie.value, t = e !== me, n =
|
|
8609
|
+
let e = Ie.value, t = e !== me, n = Ru(de.value?.id || ""), r = ue.value.some((e) => e.id === de.value?.id);
|
|
8594
8610
|
me = e, !(r && (!t || !n.storeBeforeChange)) && De((e ? pe?.value : fe?.value) ?? l.chartType);
|
|
8595
8611
|
}), B(() => l.chartType, (e) => De(e)), B(() => l.yKey, (e) => {
|
|
8596
8612
|
e !== J.value && (J.value = e);
|
|
@@ -8598,7 +8614,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8598
8614
|
if (l.chartFilter && p.value) {
|
|
8599
8615
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
8600
8616
|
n && n.length === 0 && (n = null), te(t, n || []);
|
|
8601
|
-
let r =
|
|
8617
|
+
let r = Sc({
|
|
8602
8618
|
filterType: "set",
|
|
8603
8619
|
values: n
|
|
8604
8620
|
}, q(t));
|
|
@@ -8619,7 +8635,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8619
8635
|
let o = {
|
|
8620
8636
|
type: t,
|
|
8621
8637
|
xKey: N.value,
|
|
8622
|
-
yKey:
|
|
8638
|
+
yKey: ed(J.value, a),
|
|
8623
8639
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
8624
8640
|
stacked: e,
|
|
8625
8641
|
label: {
|
|
@@ -8675,7 +8691,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8675
8691
|
}))), xe.value) {
|
|
8676
8692
|
let t;
|
|
8677
8693
|
t = e ? `${xe.value}_sort_total` : xe.value;
|
|
8678
|
-
let r = q(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i =
|
|
8694
|
+
let r = q(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = Qu(N.value, r, t, Ae.value, je.value), a = {
|
|
8679
8695
|
type: "scatter",
|
|
8680
8696
|
id: "metric-overlay",
|
|
8681
8697
|
data: Z.value,
|
|
@@ -8767,8 +8783,8 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8767
8783
|
oldState: { secondarySeriesField: t }
|
|
8768
8784
|
});
|
|
8769
8785
|
}), B(de, (e, t) => {
|
|
8770
|
-
e?.id &&
|
|
8771
|
-
let n =
|
|
8786
|
+
e?.id && Ru(e.id).storeBeforeChange && (Ie.value ? pe.value = e.id : fe.value = e.id);
|
|
8787
|
+
let n = Ru(e?.id || ""), r = Ru(t?.id || "");
|
|
8772
8788
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ? J.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
8773
8789
|
l.yKey ? J.value = l.yKey : I.value.length > 0 && (J.value = I.value[0].value);
|
|
8774
8790
|
}), d("chart-state-changed", {
|
|
@@ -8820,7 +8836,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8820
8836
|
return;
|
|
8821
8837
|
}
|
|
8822
8838
|
if (t) {
|
|
8823
|
-
let { stackedData: n, uniqueFieldValues: r } =
|
|
8839
|
+
let { stackedData: n, uniqueFieldValues: r } = nd(e, N.value, t, He.value, L.value);
|
|
8824
8840
|
be.value = n, Y.value = {
|
|
8825
8841
|
fieldName: t,
|
|
8826
8842
|
fieldValues: r
|
|
@@ -8833,13 +8849,13 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8833
8849
|
if (l.serverSideChartHandler) {
|
|
8834
8850
|
let e = R.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
8835
8851
|
if (e === null && l.initialGridState) {
|
|
8836
|
-
let t =
|
|
8852
|
+
let t = Tc(l.initialGridState, n, l.enableAdvancedFilter);
|
|
8837
8853
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
8838
8854
|
}
|
|
8839
8855
|
e ||= {};
|
|
8840
|
-
let r =
|
|
8856
|
+
let r = mc(hc(j.value.map((e) => p.value?.getColumn(e)).filter((e) => e !== void 0)), n), i = new Set(n.filter((e) => $(e).chartOnSecondaryAxes === !0).map((e) => e.field).filter(Boolean)), a = p.value?.getValueColumns().filter((e) => e.getColId() === J.value || i.has(e.getColId())), o = {
|
|
8841
8857
|
rowGroupCols: r || [],
|
|
8842
|
-
valueCols:
|
|
8858
|
+
valueCols: hc(a || []),
|
|
8843
8859
|
filterModel: e
|
|
8844
8860
|
};
|
|
8845
8861
|
C.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
@@ -8881,19 +8897,19 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8881
8897
|
n.add(o);
|
|
8882
8898
|
let s = t.aggData;
|
|
8883
8899
|
if (o && s) {
|
|
8884
|
-
let n = String(o), s =
|
|
8900
|
+
let n = String(o), s = td(n);
|
|
8885
8901
|
r[s] = `${e.key}-${n}`;
|
|
8886
8902
|
let c = t.aggData[a.value]?.value ?? t.aggData[a.value];
|
|
8887
|
-
r[
|
|
8903
|
+
r[ed(a.value, n)] = c, i += c;
|
|
8888
8904
|
}
|
|
8889
|
-
}), r[`${a.value}${
|
|
8905
|
+
}), r[`${a.value}${ic}`] = i;
|
|
8890
8906
|
return {
|
|
8891
8907
|
rowData: r,
|
|
8892
8908
|
fieldValues: n
|
|
8893
8909
|
};
|
|
8894
8910
|
}, X = r(() => {
|
|
8895
8911
|
let e = Me.value ? be.value : ye.value, t = null;
|
|
8896
|
-
if (Te.value && (t = Me.value ? `${J.value}${
|
|
8912
|
+
if (Te.value && (t = Me.value ? `${J.value}${ic}` : J.value), t && e && Te.value) {
|
|
8897
8913
|
let n = Te.value?.id.includes("desc") ? -1 : 1;
|
|
8898
8914
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
8899
8915
|
}
|
|
@@ -8905,7 +8921,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8905
8921
|
let t = e?.filter((e) => ie.value.includes(e[N.value])), n = e?.filter((e) => !ie.value.includes(e[N.value]));
|
|
8906
8922
|
e = [
|
|
8907
8923
|
...t || [],
|
|
8908
|
-
{ [N.value]:
|
|
8924
|
+
{ [N.value]: rc },
|
|
8909
8925
|
...n || []
|
|
8910
8926
|
];
|
|
8911
8927
|
}
|
|
@@ -8918,23 +8934,23 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8918
8934
|
if (!Me.value || !t || !Y.value) return e;
|
|
8919
8935
|
let n = q(t);
|
|
8920
8936
|
if ((typeof n?.aggFunc == "string" ? n.aggFunc : "") === "sum") return e;
|
|
8921
|
-
let r = `${t}${
|
|
8937
|
+
let r = `${t}${ic}`, i = Y.value.fieldValues;
|
|
8922
8938
|
return e.map((e) => {
|
|
8923
8939
|
let n = e[r];
|
|
8924
8940
|
if (typeof n != "number") return e;
|
|
8925
8941
|
let a = 0;
|
|
8926
|
-
for (let n of i) typeof e[
|
|
8942
|
+
for (let n of i) typeof e[ed(t, String(n))] == "number" && a++;
|
|
8927
8943
|
return {
|
|
8928
8944
|
...e,
|
|
8929
8945
|
[r]: a > 0 ? n / a : null
|
|
8930
8946
|
};
|
|
8931
8947
|
});
|
|
8932
|
-
}), Ke = r(() => X.value?.length || 0), qe = r(() =>
|
|
8948
|
+
}), Ke = r(() => X.value?.length || 0), qe = r(() => rd(Me.value ? be.value : X.value, J.value, Me.value)), Je = r(() => Y.value?.fieldValues?.length || 0), Ye = r(() => {
|
|
8933
8949
|
let e = .25 * Math.exp(-.12 * Ke.value);
|
|
8934
8950
|
return Math.min(Math.max(e, .05), .75);
|
|
8935
8951
|
}), Xe = r(() => Je.value > 5 ? .5 : 1), Ze = r(() => Je.value > 5 ? .25 : .1), Qe = r(() => !X.value || X.value?.length === 0 ? !0 : qe.value === -Infinity || Me.value === !0 && qe.value === 0), $e = r(() => !!(l.enableFocusView && W.value && ie.value.length === 0 && l.percentOfFocusViewYKey && J.value && J.value === l.percentOfFocusViewYKey)), et = r(() => {
|
|
8936
8952
|
let e = q(W.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
8937
|
-
return
|
|
8953
|
+
return $u({
|
|
8938
8954
|
currentRowGroupColumnsLength: j.value.length,
|
|
8939
8955
|
shouldShowFocusOverlayText: $e.value || l.focusRequired && ie.value.length === 0,
|
|
8940
8956
|
chartDataEmpty: Qe.value,
|
|
@@ -8958,10 +8974,10 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8958
8974
|
preventHidingAll: !0,
|
|
8959
8975
|
enabled: j.value.length > 1
|
|
8960
8976
|
};
|
|
8961
|
-
let t = Me.value ? Y.value?.fieldValues.map((e) =>
|
|
8977
|
+
let t = Me.value ? Y.value?.fieldValues.map((e) => ed(J.value, e)) || [] : J.value ? [J.value] : [], n = (() => {
|
|
8962
8978
|
if (!xe.value) return [];
|
|
8963
8979
|
let e = xe.value;
|
|
8964
|
-
return Fe.value ? [`${e}${
|
|
8980
|
+
return Fe.value ? [`${e}${ic}`] : Me.value ? Y.value?.fieldValues.map((t) => ed(e, String(t))) || [] : [e];
|
|
8965
8981
|
})(), r = he.value.xAxis.hideLabel === !0, i = de.value?.id === "histogram" && X.value && X.value.length > 0 && typeof X.value[0]?.bucketMin == "number" && typeof X.value[0]?.bucketMax == "number", a = [];
|
|
8966
8982
|
if (a.push({
|
|
8967
8983
|
type: "category",
|
|
@@ -8969,7 +8985,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8969
8985
|
position: je.value ? "left" : "bottom",
|
|
8970
8986
|
crossLines: [{
|
|
8971
8987
|
type: "line",
|
|
8972
|
-
value:
|
|
8988
|
+
value: rc,
|
|
8973
8989
|
stroke: "#666666",
|
|
8974
8990
|
strokeWidth: 1,
|
|
8975
8991
|
lineDash: [4, 4],
|
|
@@ -9081,12 +9097,12 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9081
9097
|
}
|
|
9082
9098
|
}), w(async () => {
|
|
9083
9099
|
await v(), x.value = l.filterPanelAboveChart;
|
|
9084
|
-
}), (n, r) => (E(), o("div",
|
|
9100
|
+
}), (n, r) => (E(), o("div", id, [
|
|
9085
9101
|
s("div", {
|
|
9086
9102
|
class: "pv-stack-16",
|
|
9087
9103
|
id: b
|
|
9088
9104
|
}),
|
|
9089
|
-
e.hideChart ? a("", !0) : (E(), o("div",
|
|
9105
|
+
e.hideChart ? a("", !0) : (E(), o("div", ad, [
|
|
9090
9106
|
u(gn, {
|
|
9091
9107
|
rightIcon: "chevrons-down-up",
|
|
9092
9108
|
label: "Collapse",
|
|
@@ -9098,7 +9114,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9098
9114
|
onClick: r[0] ||= (e) => st(!g.value),
|
|
9099
9115
|
class: y(e.hideChart || g.value ? "pv-hide" : "")
|
|
9100
9116
|
}, null, 8, ["class"]),
|
|
9101
|
-
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
9117
|
+
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div", od, [u(ln, {
|
|
9102
9118
|
name: "chart-line",
|
|
9103
9119
|
size: 20,
|
|
9104
9120
|
class: "pv-text-subdued"
|
|
@@ -9111,7 +9127,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9111
9127
|
variant: "secondary",
|
|
9112
9128
|
onClick: r[1] ||= (e) => st(!g.value)
|
|
9113
9129
|
})], 2),
|
|
9114
|
-
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(
|
|
9130
|
+
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(Zu, {
|
|
9115
9131
|
enablePanel: X.value != null && X.value.length > 0,
|
|
9116
9132
|
chartFilter: e.chartFilter,
|
|
9117
9133
|
rowGroupLimit: ge.value,
|
|
@@ -9123,7 +9139,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9123
9139
|
"rowGroupLimit",
|
|
9124
9140
|
"use-combined-button",
|
|
9125
9141
|
"chart-config-options"
|
|
9126
|
-
]), s("div",
|
|
9142
|
+
]), s("div", sd, [u(Zt, {
|
|
9127
9143
|
ref_key: "pvChartRef",
|
|
9128
9144
|
ref: h,
|
|
9129
9145
|
isLoading: at.value,
|
|
@@ -9133,9 +9149,9 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9133
9149
|
"isLoading",
|
|
9134
9150
|
"options",
|
|
9135
9151
|
"enableFocusView"
|
|
9136
|
-
]), s("div",
|
|
9152
|
+
]), s("div", cd, [U.value ? (E(), o("div", ld, [(E(), i(M(e.emptyChartFilterRenderer)))])) : ot.value ? (E(), o("p", ud, P(et.value), 1)) : a("", !0)])])], 2)
|
|
9137
9153
|
])),
|
|
9138
|
-
u(
|
|
9154
|
+
u(uu, _({
|
|
9139
9155
|
ref_key: "pvDataTableRef",
|
|
9140
9156
|
ref: m
|
|
9141
9157
|
}, n.$props, {
|
|
@@ -9152,7 +9168,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9152
9168
|
onHandleSettingsIcon: r[7] ||= (e) => d("handle-settings-icon", e),
|
|
9153
9169
|
onFocusUpdate: r[8] ||= (e) => d("focus-update", e)
|
|
9154
9170
|
}), {
|
|
9155
|
-
"top-slot": V(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(
|
|
9171
|
+
"top-slot": V(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(yu, {
|
|
9156
9172
|
key: 0,
|
|
9157
9173
|
groupedModeEnabled: re.value,
|
|
9158
9174
|
tableConfigOptions: l.tableConfigOptions,
|
|
@@ -9170,7 +9186,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9170
9186
|
}, 16, ["filterTeleportLocation", "pagination"])
|
|
9171
9187
|
]));
|
|
9172
9188
|
}
|
|
9173
|
-
}),
|
|
9189
|
+
}), fd = {
|
|
9174
9190
|
type: "Feature",
|
|
9175
9191
|
properties: { name: "Hawaii" },
|
|
9176
9192
|
geometry: {
|
|
@@ -9344,7 +9360,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9344
9360
|
]]
|
|
9345
9361
|
]
|
|
9346
9362
|
}
|
|
9347
|
-
},
|
|
9363
|
+
}, pd = {
|
|
9348
9364
|
type: "Feature",
|
|
9349
9365
|
properties: { name: "Alaska" },
|
|
9350
9366
|
geometry: {
|
|
@@ -9757,7 +9773,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9757
9773
|
]]
|
|
9758
9774
|
]
|
|
9759
9775
|
}
|
|
9760
|
-
},
|
|
9776
|
+
}, md = "_FeatureMin", hd = "_FeatureMax", gd = (e) => yd[e] || e, _d = pd, vd = fd, yd = {
|
|
9761
9777
|
AL: "Alabama",
|
|
9762
9778
|
AK: "Alaska",
|
|
9763
9779
|
AZ: "Arizona",
|
|
@@ -9808,7 +9824,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9808
9824
|
WV: "West Virginia",
|
|
9809
9825
|
WI: "Wisconsin",
|
|
9810
9826
|
WY: "Wyoming"
|
|
9811
|
-
},
|
|
9827
|
+
}, bd = { state: {
|
|
9812
9828
|
type: "FeatureCollection",
|
|
9813
9829
|
features: [
|
|
9814
9830
|
{
|
|
@@ -9817,7 +9833,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9817
9833
|
type: "Polygon",
|
|
9818
9834
|
coordinates: [[[-79.477, 39.721], [-79.477, 39.721]]]
|
|
9819
9835
|
},
|
|
9820
|
-
properties: { name:
|
|
9836
|
+
properties: { name: md }
|
|
9821
9837
|
},
|
|
9822
9838
|
{
|
|
9823
9839
|
type: "Feature",
|
|
@@ -9825,7 +9841,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9825
9841
|
type: "Polygon",
|
|
9826
9842
|
coordinates: [[[-79.477, 39.721], [-79.477, 39.721]]]
|
|
9827
9843
|
},
|
|
9828
|
-
properties: { name:
|
|
9844
|
+
properties: { name: hd }
|
|
9829
9845
|
},
|
|
9830
9846
|
{
|
|
9831
9847
|
type: "Feature",
|
|
@@ -11011,7 +11027,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11011
11027
|
},
|
|
11012
11028
|
properties: { name: "Michigan" }
|
|
11013
11029
|
},
|
|
11014
|
-
|
|
11030
|
+
vd,
|
|
11015
11031
|
{
|
|
11016
11032
|
type: "Feature",
|
|
11017
11033
|
geometry: {
|
|
@@ -11955,7 +11971,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11955
11971
|
},
|
|
11956
11972
|
properties: { name: "New Hampshire" }
|
|
11957
11973
|
},
|
|
11958
|
-
|
|
11974
|
+
_d,
|
|
11959
11975
|
{
|
|
11960
11976
|
type: "Feature",
|
|
11961
11977
|
geometry: {
|
|
@@ -12019,12 +12035,12 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12019
12035
|
properties: { name: "Rhode Island" }
|
|
12020
12036
|
}
|
|
12021
12037
|
]
|
|
12022
|
-
} },
|
|
12038
|
+
} }, xd = (e, t, n, r, i) => {
|
|
12023
12039
|
if (e.length === 0) return [];
|
|
12024
12040
|
if (t !== "state") throw Error(`Unsupported topology type: ${t}`);
|
|
12025
12041
|
if (!e.every((e) => e.hasOwnProperty(t))) throw Error(`Input data must contain the field: ${t}`);
|
|
12026
12042
|
let a = e.map((e) => {
|
|
12027
|
-
let n =
|
|
12043
|
+
let n = gd(e[t]);
|
|
12028
12044
|
return {
|
|
12029
12045
|
...e,
|
|
12030
12046
|
[t]: e[t],
|
|
@@ -12032,22 +12048,22 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12032
12048
|
};
|
|
12033
12049
|
});
|
|
12034
12050
|
return a.push({
|
|
12035
|
-
[t]:
|
|
12051
|
+
[t]: md,
|
|
12036
12052
|
[n]: r,
|
|
12037
|
-
name:
|
|
12053
|
+
name: md
|
|
12038
12054
|
}), a.push({
|
|
12039
|
-
[t]:
|
|
12055
|
+
[t]: hd,
|
|
12040
12056
|
[n]: i,
|
|
12041
|
-
name:
|
|
12057
|
+
name: hd
|
|
12042
12058
|
}), a;
|
|
12043
|
-
},
|
|
12044
|
-
let t =
|
|
12059
|
+
}, Sd = (e) => {
|
|
12060
|
+
let t = bd[e];
|
|
12045
12061
|
if (!t) throw Error(`No topology object found for type: ${e}`);
|
|
12046
12062
|
return t;
|
|
12047
|
-
},
|
|
12048
|
-
getTopologyObject:
|
|
12049
|
-
buildMapData:
|
|
12050
|
-
}),
|
|
12063
|
+
}, Cd = () => ({
|
|
12064
|
+
getTopologyObject: Sd,
|
|
12065
|
+
buildMapData: xd
|
|
12066
|
+
}), wd = { style: { width: "30%" } }, Td = ["min", "max"], Ed = { class: "pv-flex pv-space-between pv-text-body-xxs pv-text-subdued" }, Dd = /* @__PURE__ */ d({
|
|
12051
12067
|
__name: "MapGradient",
|
|
12052
12068
|
props: {
|
|
12053
12069
|
min: { default: 0 },
|
|
@@ -12056,7 +12072,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12056
12072
|
},
|
|
12057
12073
|
setup(e) {
|
|
12058
12074
|
let t = e, n = (e) => t.valueFormatter ? t.valueFormatter(e) : e.toLocaleString("en-US");
|
|
12059
|
-
return (t, r) => (E(), o("div",
|
|
12075
|
+
return (t, r) => (E(), o("div", wd, [s("div", {
|
|
12060
12076
|
min: e.min,
|
|
12061
12077
|
max: e.max,
|
|
12062
12078
|
"aria-hidden": "true",
|
|
@@ -12068,9 +12084,9 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12068
12084
|
"border-radius": "1rem",
|
|
12069
12085
|
height: "0.5rem"
|
|
12070
12086
|
}
|
|
12071
|
-
}, null, 8,
|
|
12087
|
+
}, null, 8, Td), s("div", Ed, [s("p", null, P(n(e.min)), 1), s("p", null, P(n(e.max)), 1)])]));
|
|
12072
12088
|
}
|
|
12073
|
-
}),
|
|
12089
|
+
}), Od = /* @__PURE__ */ d({
|
|
12074
12090
|
__name: "MapRegionSelector",
|
|
12075
12091
|
props: /* @__PURE__ */ g({
|
|
12076
12092
|
topologyType: {},
|
|
@@ -12086,8 +12102,8 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12086
12102
|
setup(e) {
|
|
12087
12103
|
let t = L(e, "modelValue"), n = O(void 0), a = e, o = r(() => {
|
|
12088
12104
|
if (a.topologyType !== "state") throw Error(`Unsupported topology type for state selector: ${a.topologyType}`);
|
|
12089
|
-
return (a.selectableRegions ? a.selectableRegions : Object.keys(
|
|
12090
|
-
text:
|
|
12105
|
+
return (a.selectableRegions ? a.selectableRegions : Object.keys(yd)).map((e) => ({
|
|
12106
|
+
text: gd(e),
|
|
12091
12107
|
id: e
|
|
12092
12108
|
}));
|
|
12093
12109
|
});
|
|
@@ -12109,10 +12125,10 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12109
12125
|
"options"
|
|
12110
12126
|
]));
|
|
12111
12127
|
}
|
|
12112
|
-
}),
|
|
12128
|
+
}), kd = {
|
|
12113
12129
|
class: "pv-flex pv-space-between pv-stack-20",
|
|
12114
12130
|
style: { width: "100%" }
|
|
12115
|
-
},
|
|
12131
|
+
}, Ad = /* @__PURE__ */ d({
|
|
12116
12132
|
__name: "PvMapChart",
|
|
12117
12133
|
props: /* @__PURE__ */ g({
|
|
12118
12134
|
seriesKey: {},
|
|
@@ -12146,7 +12162,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12146
12162
|
}),
|
|
12147
12163
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
12148
12164
|
setup(e, { emit: n }) {
|
|
12149
|
-
let i = e, a = L(e, "chartData"), c = L(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } =
|
|
12165
|
+
let i = e, a = L(e, "chartData"), c = L(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } = Cd(), p = r(() => d(i.mapType)), m = r(() => f(a.value, i.mapType, i.seriesKey, i.gradientLegendMin, i.gradientLegendMax)), h = r(() => m.value.filter((e) => e[i.mapType] !== "_FeatureMin" && e[i.mapType] !== "_FeatureMax").map((e) => e[i.mapType]));
|
|
12150
12166
|
B(c, (e) => {
|
|
12151
12167
|
l("region-selection-changed", { region: e });
|
|
12152
12168
|
});
|
|
@@ -12186,7 +12202,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12186
12202
|
overlays: { noData: { text: i.noDataMessage || "No data to display" } },
|
|
12187
12203
|
gradientLegend: { enabled: !1 }
|
|
12188
12204
|
}));
|
|
12189
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
12205
|
+
return (n, r) => (E(), o(t, null, [s("div", kd, [u(Od, {
|
|
12190
12206
|
modelValue: c.value,
|
|
12191
12207
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
12192
12208
|
"selectable-regions": h.value,
|
|
@@ -12195,7 +12211,7 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12195
12211
|
"modelValue",
|
|
12196
12212
|
"selectable-regions",
|
|
12197
12213
|
"topology-type"
|
|
12198
|
-
]), u(
|
|
12214
|
+
]), u(Dd, {
|
|
12199
12215
|
min: e.gradientLegendMin,
|
|
12200
12216
|
max: e.gradientLegendMax,
|
|
12201
12217
|
"value-formatter": e.seriesValueFormatter
|
|
@@ -12212,6 +12228,6 @@ var Qu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12212
12228
|
}
|
|
12213
12229
|
});
|
|
12214
12230
|
//#endregion
|
|
12215
|
-
export { yt as PitViperAGChartsMonochromeTheme, vt as PitViperAGChartsMonochromeThemeName, xt as PitViperAGChartsMulticolorTheme, bt as PitViperAGChartsMulticolorThemeName, Zt as PvChart,
|
|
12231
|
+
export { yt as PitViperAGChartsMonochromeTheme, vt as PitViperAGChartsMonochromeThemeName, xt as PitViperAGChartsMulticolorTheme, bt as PitViperAGChartsMulticolorThemeName, Zt as PvChart, uu as PvDataTable, dd as PvDataTableWithChart, Ad as PvMapChart, ft as SCATTER_MARKER_STROKE, Cc as constructAdvancedFilterCondition, wc as convertFilterModelToAdvanced, nl as createPvDataTableFilterStore, Zc as excludeValueFromSetFilter, Ac as filterModelContainsColId, Hc as filterModelsEqual, qc as getSelectedValues, Gc as getSelectedValuesFromAdvancedFilterModel, Ic as getSelectedValuesFromFilterModel, Kc as getSelectedValuesFromFilterModelByColId, Lc as isAdvancedFilterModel, zc as isFilterModelEmpty, Uc as mergeAdvancedFilterCondition, jc as mergeFilterModels, rl as providePvDataTableFilterStore, Jc as removeColumnFilter, Wc as removeColumnFromAdvancedFilter, Xc as updateMultiOrSetFilter, Yc as updateSetFilter, al as usePvDataTableFilterStore };
|
|
12216
12232
|
|
|
12217
12233
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|