@turquoisehealth/pit-viper 2.268.2 → 2.270.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y-v3.css +58 -0
- package/_site/assets/css/pit-viper-a11y.css +58 -0
- package/_site/assets/css/pit-viper-consumer.css +58 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +50 -0
- package/_site/assets/css/pit-viper-v2.css +58 -0
- package/_site/assets/css/pit-viper-v3.css +58 -0
- package/_site/assets/css/pit-viper.css +58 -0
- package/_site/manifest.json +11 -2
- 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-distribution-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDistributionBar/types.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvGhostInput/PvGhostInput.vue.d.ts +10 -3
- package/pv-components/dist/vue/ai/components/base/PvGhostInput/types.d.ts +2 -1
- package/pv-components/dist/vue/base/components/base/PvDistributionBar/types.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvGhostInput/PvGhostInput.vue.d.ts +10 -3
- package/pv-components/dist/vue/base/components/base/PvGhostInput/types.d.ts +2 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +788 -777
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDistributionBar/types.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvGhostInput/PvGhostInput.vue.d.ts +10 -3
- package/pv-components/dist/vue/visualizations/components/base/PvGhostInput/types.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +431 -443
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +48 -34
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +48 -34
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +1980 -666
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +1170 -1097
- package/pv-components/dist/web/pv-components.iife.js +3 -3
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -4436,7 +4436,11 @@ var Yi = () => ({
|
|
|
4436
4436
|
onClick: g
|
|
4437
4437
|
})]))]));
|
|
4438
4438
|
}
|
|
4439
|
-
}), Ga = [
|
|
4439
|
+
}), Ga = [
|
|
4440
|
+
"data-style",
|
|
4441
|
+
"data-variant",
|
|
4442
|
+
"data-invalid"
|
|
4443
|
+
], Ka = [
|
|
4440
4444
|
"placeholder",
|
|
4441
4445
|
"disabled",
|
|
4442
4446
|
"name"
|
|
@@ -4446,7 +4450,9 @@ var Yi = () => ({
|
|
|
4446
4450
|
variant: { default: "h1" },
|
|
4447
4451
|
placeholder: {},
|
|
4448
4452
|
disabled: { type: Boolean },
|
|
4449
|
-
|
|
4453
|
+
inputVariant: { default: "primary" },
|
|
4454
|
+
tooltipText: {},
|
|
4455
|
+
tooltipPosition: { default: "bottom-center" },
|
|
4450
4456
|
error: { type: Boolean },
|
|
4451
4457
|
autofocus: { type: Boolean }
|
|
4452
4458
|
}, {
|
|
@@ -4473,47 +4479,49 @@ var Yi = () => ({
|
|
|
4473
4479
|
"text-md": "text-medium",
|
|
4474
4480
|
"text-lg": "text-large",
|
|
4475
4481
|
caption: "caption"
|
|
4476
|
-
},
|
|
4477
|
-
t.value?.focus();
|
|
4478
|
-
};
|
|
4482
|
+
}, i = e, a = U(e, "modelValue"), c = j(0);
|
|
4479
4483
|
T(() => {
|
|
4480
|
-
|
|
4481
|
-
}), G(() =>
|
|
4482
|
-
|
|
4484
|
+
a.value && a.value.length > 0 ? l(a.value) : i.placeholder ? l(i.placeholder) : c.value = 240, i.autofocus && t.value?.focus();
|
|
4485
|
+
}), G(() => a.value, () => {
|
|
4486
|
+
a.value && a.value.length > 0 ? l(a.value) : i.placeholder ? l(i.placeholder) : c.value = 240;
|
|
4483
4487
|
});
|
|
4484
|
-
let
|
|
4488
|
+
let l = (e) => {
|
|
4485
4489
|
if (!t.value) return;
|
|
4486
4490
|
let n = document.createElement("canvas").getContext("2d");
|
|
4487
4491
|
if (!n) return;
|
|
4488
4492
|
let r = getComputedStyle(t.value);
|
|
4489
|
-
n.font = `${r.fontWeight} ${r.fontSize} ${r.fontFamily}`,
|
|
4493
|
+
n.font = `${r.fontWeight} ${r.fontSize} ${r.fontFamily}`, c.value = n.measureText(e).width + 10;
|
|
4490
4494
|
};
|
|
4491
|
-
return (
|
|
4495
|
+
return (i, l) => (k(), o("div", {
|
|
4492
4496
|
class: "pv-ghost-input pv-full-width",
|
|
4493
4497
|
"data-testid": "pv-ghost-input",
|
|
4494
4498
|
"data-style": r[e.variant],
|
|
4499
|
+
"data-variant": e.inputVariant,
|
|
4495
4500
|
"data-invalid": e.error ? !0 : void 0
|
|
4496
|
-
}, [
|
|
4497
|
-
|
|
4498
|
-
|
|
4501
|
+
}, [N(i.$slots, "action"), u(fr, {
|
|
4502
|
+
class: "pv-ghost-input-tooltip",
|
|
4503
|
+
variant: "dark",
|
|
4504
|
+
size: "sm",
|
|
4505
|
+
position: e.tooltipPosition,
|
|
4506
|
+
description: e.tooltipText,
|
|
4507
|
+
disabled: !e.tooltipText
|
|
4508
|
+
}, {
|
|
4509
|
+
trigger: K(() => [q(s("input", {
|
|
4499
4510
|
ref_key: "inputRef",
|
|
4500
|
-
ref: t
|
|
4501
|
-
|
|
4502
|
-
"onUpdate:modelValue": p[0] ||= (e) => l.value = e,
|
|
4511
|
+
ref: t,
|
|
4512
|
+
"onUpdate:modelValue": l[0] ||= (e) => a.value = e,
|
|
4503
4513
|
type: "text",
|
|
4504
|
-
style: { width:
|
|
4514
|
+
style: S({ width: c.value + "px" }),
|
|
4505
4515
|
placeholder: e.placeholder,
|
|
4506
4516
|
disabled: e.disabled,
|
|
4507
4517
|
name: n[e.variant]
|
|
4508
|
-
}
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
})) : a("", !0)
|
|
4516
|
-
], 8, Ga));
|
|
4518
|
+
}, null, 12, Ka), [[oe, a.value]])]),
|
|
4519
|
+
_: 1
|
|
4520
|
+
}, 8, [
|
|
4521
|
+
"position",
|
|
4522
|
+
"description",
|
|
4523
|
+
"disabled"
|
|
4524
|
+
])], 8, Ga));
|
|
4517
4525
|
}
|
|
4518
4526
|
}), Ja = [
|
|
4519
4527
|
"data-active",
|
|
@@ -8709,7 +8717,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8709
8717
|
style: S({ "--progress": `${n.value}%` })
|
|
8710
8718
|
}, null, 14, Ll)]));
|
|
8711
8719
|
}
|
|
8712
|
-
}), zl = /* @__PURE__ */ d({
|
|
8720
|
+
}), zl = 15, Bl = /* @__PURE__ */ d({
|
|
8713
8721
|
__name: "PvDistributionBar",
|
|
8714
8722
|
props: {
|
|
8715
8723
|
size: { default: "lg" },
|
|
@@ -8732,18 +8740,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8732
8740
|
...e,
|
|
8733
8741
|
height: "24px"
|
|
8734
8742
|
};
|
|
8735
|
-
}), u = (e) => {
|
|
8736
|
-
switch (e) {
|
|
8737
|
-
case 0: return "pv-data-surface-visualization-1";
|
|
8738
|
-
case 1: return "pv-data-surface-visualization-2";
|
|
8739
|
-
case 2: return "pv-data-surface-visualization-3";
|
|
8740
|
-
case 3: return "pv-data-surface-visualization-4";
|
|
8741
|
-
case 4: return "pv-data-surface-visualization-5";
|
|
8742
|
-
case 5: return "pv-data-surface-visualization-6";
|
|
8743
|
-
case 6: return "pv-data-surface-visualization-7";
|
|
8744
|
-
default: return "pv-data-surface-visualization-1";
|
|
8745
|
-
}
|
|
8746
|
-
};
|
|
8743
|
+
}), u = (e) => `pv-data-surface-visualization-${e % zl + 1}`;
|
|
8747
8744
|
return (n, r) => (k(), o("div", {
|
|
8748
8745
|
class: "pv-flex",
|
|
8749
8746
|
style: S(l.value)
|
|
@@ -8753,7 +8750,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8753
8750
|
style: S(c(e, t))
|
|
8754
8751
|
}, null, 6))), 128))], 4));
|
|
8755
8752
|
}
|
|
8756
|
-
}),
|
|
8753
|
+
}), Vl = [
|
|
8757
8754
|
1,
|
|
8758
8755
|
1.5,
|
|
8759
8756
|
2,
|
|
@@ -8763,81 +8760,81 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8763
8760
|
6,
|
|
8764
8761
|
8,
|
|
8765
8762
|
10
|
|
8766
|
-
],
|
|
8763
|
+
], Hl = (e) => {
|
|
8767
8764
|
let t = 10 ** Math.floor(Math.log10(e));
|
|
8768
|
-
return (
|
|
8769
|
-
},
|
|
8770
|
-
let t =
|
|
8765
|
+
return (Vl.find((n) => e / t <= n) ?? 10) * t;
|
|
8766
|
+
}, Ul = (e) => e > 0 ? Hl(e) : 100, Wl = (e) => e > 0 ? Hl(e / 5) : 10, Gl = (e) => {
|
|
8767
|
+
let t = Wl(e), n = [];
|
|
8771
8768
|
for (let r = 0; r * t <= e + 1e-6; r++) n.push(Number((r * t).toPrecision(12)));
|
|
8772
8769
|
return n;
|
|
8773
|
-
},
|
|
8770
|
+
}, Kl = new Intl.NumberFormat("en-US", {
|
|
8774
8771
|
style: "currency",
|
|
8775
8772
|
currency: "USD",
|
|
8776
8773
|
maximumFractionDigits: 0
|
|
8777
|
-
}),
|
|
8774
|
+
}), ql = (e) => Kl.format(e), Jl = [
|
|
8778
8775
|
"width",
|
|
8779
8776
|
"height",
|
|
8780
8777
|
"aria-label"
|
|
8781
|
-
],
|
|
8778
|
+
], Yl = [
|
|
8782
8779
|
"x1",
|
|
8783
8780
|
"y1",
|
|
8784
8781
|
"x2",
|
|
8785
8782
|
"y2"
|
|
8786
|
-
],
|
|
8783
|
+
], Xl = [
|
|
8787
8784
|
"x1",
|
|
8788
8785
|
"y1",
|
|
8789
8786
|
"x2",
|
|
8790
8787
|
"y2"
|
|
8791
|
-
],
|
|
8788
|
+
], Zl = ["x", "y"], Ql = [
|
|
8792
8789
|
"x1",
|
|
8793
8790
|
"y1",
|
|
8794
8791
|
"x2",
|
|
8795
8792
|
"y2"
|
|
8796
|
-
],
|
|
8793
|
+
], $l = [
|
|
8797
8794
|
"x1",
|
|
8798
8795
|
"y1",
|
|
8799
8796
|
"x2",
|
|
8800
8797
|
"y2"
|
|
8801
|
-
],
|
|
8798
|
+
], eu = [
|
|
8802
8799
|
"x",
|
|
8803
8800
|
"y",
|
|
8804
8801
|
"width",
|
|
8805
8802
|
"height"
|
|
8806
|
-
],
|
|
8803
|
+
], tu = [
|
|
8807
8804
|
"x1",
|
|
8808
8805
|
"y1",
|
|
8809
8806
|
"x2",
|
|
8810
8807
|
"y2"
|
|
8811
|
-
],
|
|
8808
|
+
], nu = {
|
|
8812
8809
|
key: 0,
|
|
8813
8810
|
"font-size": "10",
|
|
8814
8811
|
"data-testid": "pv-box-plot-labels"
|
|
8815
|
-
},
|
|
8812
|
+
}, ru = [
|
|
8816
8813
|
"x",
|
|
8817
8814
|
"y",
|
|
8818
8815
|
"font-weight"
|
|
8819
|
-
],
|
|
8816
|
+
], iu = ["x", "y"], au = {
|
|
8820
8817
|
key: 1,
|
|
8821
8818
|
"data-testid": "pv-box-plot-median-callout"
|
|
8822
|
-
},
|
|
8819
|
+
}, ou = [
|
|
8823
8820
|
"x1",
|
|
8824
8821
|
"y1",
|
|
8825
8822
|
"x2",
|
|
8826
8823
|
"y2"
|
|
8827
|
-
],
|
|
8824
|
+
], su = ["x", "y"], cu = ["cx", "cy"], lu = [
|
|
8828
8825
|
"x1",
|
|
8829
8826
|
"y1",
|
|
8830
8827
|
"x2",
|
|
8831
8828
|
"y2"
|
|
8832
|
-
],
|
|
8829
|
+
], uu = ["x", "y"], du = {
|
|
8833
8830
|
key: 2,
|
|
8834
8831
|
"data-testid": "pv-box-plot-highlight"
|
|
8835
|
-
},
|
|
8832
|
+
}, fu = [
|
|
8836
8833
|
"x1",
|
|
8837
8834
|
"y1",
|
|
8838
8835
|
"x2",
|
|
8839
8836
|
"y2"
|
|
8840
|
-
],
|
|
8837
|
+
], pu = ["cx", "cy"], mu = "var(--color-text-brand, #16696D)", hu = "var(--color-text-tertiary, #6E8081)", gu = "var(--color-border, #E3E7EA)", _u = "var(--color-data-viz-3, #FF7A4E)", vu = "#02363D", yu = "#B0E8E4", bu = "#D2D8DC", xu = 520, Su = 7, Cu = 8, wu = 44, Tu = 8, Eu = 12, Du = /* @__PURE__ */ d({
|
|
8841
8838
|
__name: "PvBoxPlot",
|
|
8842
8839
|
props: {
|
|
8843
8840
|
ariaLabel: { default: void 0 },
|
|
@@ -8851,7 +8848,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8851
8848
|
stats: { default: null },
|
|
8852
8849
|
valueFormatter: {
|
|
8853
8850
|
type: Function,
|
|
8854
|
-
default:
|
|
8851
|
+
default: ql
|
|
8855
8852
|
},
|
|
8856
8853
|
xMax: { default: null }
|
|
8857
8854
|
},
|
|
@@ -8861,10 +8858,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8861
8858
|
right: 40,
|
|
8862
8859
|
top: 44,
|
|
8863
8860
|
bottom: 36
|
|
8864
|
-
}, c = W("container"), { width: l } = Z(c), u = r(() => l.value ||
|
|
8861
|
+
}, c = W("container"), { width: l } = Z(c), u = r(() => l.value || xu), d = r(() => {
|
|
8865
8862
|
let e = n.stats;
|
|
8866
8863
|
if (!e) return null;
|
|
8867
|
-
let t = u.value - i.left - i.right, r = n.height - i.top - i.bottom, a = Math.max(e.p90, ...n.markers.map((e) => e.value), n.highlight ?? 0), o = n.xMax && n.xMax > 0 ? n.xMax :
|
|
8864
|
+
let t = u.value - i.left - i.right, r = n.height - i.top - i.bottom, a = Math.max(e.p90, ...n.markers.map((e) => e.value), n.highlight ?? 0), o = n.xMax && n.xMax > 0 ? n.xMax : Ul(a * 1.05), s = (e) => i.left + Math.min(Math.max(e, 0), o) / o * t, c = i.top + r / 2, l = Math.min(wu, Math.max(r - Tu, Eu));
|
|
8868
8865
|
return {
|
|
8869
8866
|
x: s,
|
|
8870
8867
|
cy: c,
|
|
@@ -8874,7 +8871,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8874
8871
|
axisStart: i.left,
|
|
8875
8872
|
axisEnd: i.left + t,
|
|
8876
8873
|
calloutY: i.top - 8,
|
|
8877
|
-
ticks:
|
|
8874
|
+
ticks: Gl(o).map((e) => ({
|
|
8878
8875
|
value: e,
|
|
8879
8876
|
x: s(e)
|
|
8880
8877
|
})),
|
|
@@ -8897,7 +8894,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8897
8894
|
return e ? n.markers.filter((e) => e.label).map((t) => ({
|
|
8898
8895
|
...t,
|
|
8899
8896
|
x: e.x(t.value),
|
|
8900
|
-
color: t.color ??
|
|
8897
|
+
color: t.color ?? _u
|
|
8901
8898
|
})) : [];
|
|
8902
8899
|
}), h = r(() => n.stats ? `Median ${n.valueFormatter(n.stats.p50)}` : ""), g = r(() => {
|
|
8903
8900
|
let e = d.value;
|
|
@@ -8905,7 +8902,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8905
8902
|
let t = e.x(e.stats.p50);
|
|
8906
8903
|
return m.value.every((e) => {
|
|
8907
8904
|
let n = h.value.length + p(e).length;
|
|
8908
|
-
return Math.abs(e.x - t) >= n *
|
|
8905
|
+
return Math.abs(e.x - t) >= n * Su / 2 + Cu;
|
|
8909
8906
|
});
|
|
8910
8907
|
}), _ = r(() => {
|
|
8911
8908
|
if (n.ariaLabel) return n.ariaLabel;
|
|
@@ -8932,8 +8929,8 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8932
8929
|
y1: d.value.axisY,
|
|
8933
8930
|
x2: d.value.axisEnd,
|
|
8934
8931
|
y2: d.value.axisY,
|
|
8935
|
-
style: S({ stroke:
|
|
8936
|
-
}, null, 12,
|
|
8932
|
+
style: S({ stroke: gu })
|
|
8933
|
+
}, null, 12, Yl),
|
|
8937
8934
|
(k(!0), o(t, null, M(d.value.ticks, (t) => (k(), o("g", {
|
|
8938
8935
|
key: t.value,
|
|
8939
8936
|
"data-testid": "pv-box-plot-tick"
|
|
@@ -8942,91 +8939,91 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8942
8939
|
y1: d.value.axisY,
|
|
8943
8940
|
x2: t.x,
|
|
8944
8941
|
y2: d.value.axisY + 4,
|
|
8945
|
-
stroke:
|
|
8946
|
-
}, null, 8,
|
|
8942
|
+
stroke: bu
|
|
8943
|
+
}, null, 8, Xl), s("text", {
|
|
8947
8944
|
x: t.x,
|
|
8948
8945
|
y: d.value.axisY + 16,
|
|
8949
8946
|
"font-size": "10",
|
|
8950
|
-
style: S({ fill:
|
|
8947
|
+
style: S({ fill: hu }),
|
|
8951
8948
|
"text-anchor": "middle"
|
|
8952
|
-
}, R(e.valueFormatter(t.value)), 13,
|
|
8949
|
+
}, R(e.valueFormatter(t.value)), 13, Zl)]))), 128)),
|
|
8953
8950
|
s("line", {
|
|
8954
8951
|
x1: d.value.x(d.value.stats.p10),
|
|
8955
8952
|
y1: d.value.cy,
|
|
8956
8953
|
x2: d.value.x(d.value.stats.p90),
|
|
8957
8954
|
y2: d.value.cy,
|
|
8958
|
-
style: S({ stroke:
|
|
8955
|
+
style: S({ stroke: mu }),
|
|
8959
8956
|
"data-testid": "pv-box-plot-whisker"
|
|
8960
|
-
}, null, 12,
|
|
8957
|
+
}, null, 12, Ql),
|
|
8961
8958
|
(k(), o(t, null, M(["p10", "p90"], (e) => s("line", {
|
|
8962
8959
|
key: e,
|
|
8963
8960
|
x1: d.value.x(d.value.stats[e]),
|
|
8964
8961
|
y1: d.value.cy - 8,
|
|
8965
8962
|
x2: d.value.x(d.value.stats[e]),
|
|
8966
8963
|
y2: d.value.cy + 8,
|
|
8967
|
-
style: S({ stroke:
|
|
8964
|
+
style: S({ stroke: mu }),
|
|
8968
8965
|
"stroke-width": "1.5"
|
|
8969
|
-
}, null, 12,
|
|
8966
|
+
}, null, 12, $l)), 64)),
|
|
8970
8967
|
s("rect", {
|
|
8971
8968
|
x: d.value.x(d.value.stats.p25),
|
|
8972
8969
|
y: d.value.boxTop,
|
|
8973
8970
|
width: d.value.x(d.value.stats.p75) - d.value.x(d.value.stats.p25),
|
|
8974
8971
|
height: d.value.boxBottom - d.value.boxTop,
|
|
8975
|
-
fill:
|
|
8972
|
+
fill: yu,
|
|
8976
8973
|
"fill-opacity": "0.55",
|
|
8977
|
-
style: S({ stroke:
|
|
8974
|
+
style: S({ stroke: mu }),
|
|
8978
8975
|
rx: "2",
|
|
8979
8976
|
"data-testid": "pv-box-plot-box"
|
|
8980
|
-
}, null, 12,
|
|
8977
|
+
}, null, 12, eu),
|
|
8981
8978
|
s("line", {
|
|
8982
8979
|
x1: d.value.x(d.value.stats.p50),
|
|
8983
8980
|
y1: d.value.boxTop,
|
|
8984
8981
|
x2: d.value.x(d.value.stats.p50),
|
|
8985
8982
|
y2: d.value.boxBottom,
|
|
8986
|
-
stroke:
|
|
8983
|
+
stroke: vu,
|
|
8987
8984
|
"stroke-width": "2.5",
|
|
8988
8985
|
"data-testid": "pv-box-plot-median"
|
|
8989
|
-
}, null, 8,
|
|
8990
|
-
e.hideLabels ? a("", !0) : (k(), o("g",
|
|
8986
|
+
}, null, 8, tu),
|
|
8987
|
+
e.hideLabels ? a("", !0) : (k(), o("g", nu, [(k(!0), o(t, null, M(f.value, (e) => (k(), o("text", {
|
|
8991
8988
|
key: e.key,
|
|
8992
8989
|
x: e.x,
|
|
8993
8990
|
y: d.value.boxBottom + 14,
|
|
8994
8991
|
"text-anchor": "middle",
|
|
8995
|
-
style: S({ fill: e.key === "p50" ?
|
|
8992
|
+
style: S({ fill: e.key === "p50" ? vu : mu }),
|
|
8996
8993
|
"font-weight": e.key === "p50" ? 600 : void 0
|
|
8997
|
-
}, R(e.key), 13,
|
|
8994
|
+
}, R(e.key), 13, ru))), 128)), (k(), o(t, null, M(["p10", "p90"], (t) => s("text", {
|
|
8998
8995
|
key: `${t}-value`,
|
|
8999
8996
|
x: d.value.x(d.value.stats[t]),
|
|
9000
8997
|
y: d.value.boxTop - 10,
|
|
9001
8998
|
"text-anchor": "middle",
|
|
9002
|
-
style: S({ fill:
|
|
9003
|
-
}, R(e.valueFormatter(d.value.stats[t])), 13,
|
|
9004
|
-
g.value ? (k(), o("g",
|
|
8999
|
+
style: S({ fill: mu })
|
|
9000
|
+
}, R(e.valueFormatter(d.value.stats[t])), 13, iu)), 64))])),
|
|
9001
|
+
g.value ? (k(), o("g", au, [s("line", {
|
|
9005
9002
|
x1: d.value.x(d.value.stats.p50),
|
|
9006
9003
|
y1: d.value.boxTop,
|
|
9007
9004
|
x2: d.value.x(d.value.stats.p50),
|
|
9008
9005
|
y2: d.value.calloutY + 4,
|
|
9009
|
-
stroke:
|
|
9006
|
+
stroke: vu,
|
|
9010
9007
|
"stroke-dasharray": "2 2",
|
|
9011
9008
|
"stroke-opacity": "0.5"
|
|
9012
|
-
}, null, 8,
|
|
9009
|
+
}, null, 8, ou), s("text", {
|
|
9013
9010
|
x: d.value.x(d.value.stats.p50),
|
|
9014
9011
|
y: d.value.calloutY,
|
|
9015
9012
|
"text-anchor": "middle",
|
|
9016
|
-
fill:
|
|
9013
|
+
fill: vu,
|
|
9017
9014
|
"font-size": "12",
|
|
9018
9015
|
"font-weight": "700"
|
|
9019
|
-
}, R(h.value), 9,
|
|
9016
|
+
}, R(h.value), 9, su)])) : a("", !0),
|
|
9020
9017
|
(k(!0), o(t, null, M(e.markers, (e, t) => (k(), o("circle", {
|
|
9021
9018
|
key: `marker-${t}`,
|
|
9022
9019
|
cx: d.value.x(e.value),
|
|
9023
9020
|
cy: d.value.cy,
|
|
9024
9021
|
r: "7",
|
|
9025
|
-
style: S({ fill: e.color ??
|
|
9022
|
+
style: S({ fill: e.color ?? _u }),
|
|
9026
9023
|
stroke: "#fff",
|
|
9027
9024
|
"stroke-width": "2",
|
|
9028
9025
|
"data-testid": "pv-box-plot-marker"
|
|
9029
|
-
}, null, 12,
|
|
9026
|
+
}, null, 12, cu))), 128)),
|
|
9030
9027
|
(k(!0), o(t, null, M(m.value, (e, t) => (k(), o("g", {
|
|
9031
9028
|
key: `marker-label-${t}`,
|
|
9032
9029
|
"data-testid": "pv-box-plot-marker-label"
|
|
@@ -9038,36 +9035,36 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9038
9035
|
style: S({ stroke: e.color }),
|
|
9039
9036
|
"stroke-dasharray": "2 2",
|
|
9040
9037
|
"stroke-opacity": "0.6"
|
|
9041
|
-
}, null, 12,
|
|
9038
|
+
}, null, 12, lu), s("text", {
|
|
9042
9039
|
x: e.x,
|
|
9043
9040
|
y: d.value.calloutY,
|
|
9044
9041
|
"text-anchor": "middle",
|
|
9045
9042
|
style: S({ fill: e.color }),
|
|
9046
9043
|
"font-size": "12",
|
|
9047
9044
|
"font-weight": "700"
|
|
9048
|
-
}, R(p(e)), 13,
|
|
9049
|
-
e.highlight == null ? a("", !0) : (k(), o("g",
|
|
9045
|
+
}, R(p(e)), 13, uu)]))), 128)),
|
|
9046
|
+
e.highlight == null ? a("", !0) : (k(), o("g", du, [s("line", {
|
|
9050
9047
|
x1: d.value.x(e.highlight),
|
|
9051
9048
|
y1: d.value.boxTop - 4,
|
|
9052
9049
|
x2: d.value.x(e.highlight),
|
|
9053
9050
|
y2: d.value.boxBottom + 4,
|
|
9054
|
-
style: S({ stroke:
|
|
9051
|
+
style: S({ stroke: _u }),
|
|
9055
9052
|
"stroke-width": "2",
|
|
9056
9053
|
"stroke-dasharray": "3 2"
|
|
9057
|
-
}, null, 12,
|
|
9054
|
+
}, null, 12, fu), s("circle", {
|
|
9058
9055
|
cx: d.value.x(e.highlight),
|
|
9059
9056
|
cy: d.value.cy,
|
|
9060
9057
|
r: "4",
|
|
9061
|
-
style: S({ fill:
|
|
9058
|
+
style: S({ fill: _u }),
|
|
9062
9059
|
stroke: "#fff",
|
|
9063
9060
|
"stroke-width": "1.5"
|
|
9064
|
-
}, null, 12,
|
|
9065
|
-
], 8,
|
|
9061
|
+
}, null, 12, pu)]))
|
|
9062
|
+
], 8, Jl)) : a("", !0)], 512));
|
|
9066
9063
|
}
|
|
9067
|
-
}),
|
|
9064
|
+
}), Ou = {
|
|
9068
9065
|
key: 0,
|
|
9069
9066
|
class: "pv-range-single-slider"
|
|
9070
|
-
},
|
|
9067
|
+
}, ku = [
|
|
9071
9068
|
"id",
|
|
9072
9069
|
"aria-label",
|
|
9073
9070
|
"aria-valuetext",
|
|
@@ -9076,11 +9073,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9076
9073
|
"min",
|
|
9077
9074
|
"step",
|
|
9078
9075
|
"value"
|
|
9079
|
-
],
|
|
9076
|
+
], Au = ["aria-label"], ju = {
|
|
9080
9077
|
key: 0,
|
|
9081
9078
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
9082
9079
|
style: { "line-height": "1" }
|
|
9083
|
-
},
|
|
9080
|
+
}, Mu = [
|
|
9084
9081
|
"aria-label",
|
|
9085
9082
|
"aria-valuetext",
|
|
9086
9083
|
"disabled",
|
|
@@ -9088,7 +9085,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9088
9085
|
"min",
|
|
9089
9086
|
"step",
|
|
9090
9087
|
"value"
|
|
9091
|
-
],
|
|
9088
|
+
], Nu = [
|
|
9092
9089
|
"aria-label",
|
|
9093
9090
|
"aria-valuetext",
|
|
9094
9091
|
"disabled",
|
|
@@ -9096,7 +9093,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9096
9093
|
"min",
|
|
9097
9094
|
"step",
|
|
9098
9095
|
"value"
|
|
9099
|
-
],
|
|
9096
|
+
], Pu = {
|
|
9100
9097
|
key: 1,
|
|
9101
9098
|
class: "pv-flex",
|
|
9102
9099
|
style: {
|
|
@@ -9104,15 +9101,15 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9104
9101
|
"--flex-gap": "0.75rem",
|
|
9105
9102
|
"--flex-wrap": "wrap"
|
|
9106
9103
|
}
|
|
9107
|
-
},
|
|
9104
|
+
}, Fu = { class: "pv-text-body-sm" }, Iu = [
|
|
9108
9105
|
"disabled",
|
|
9109
9106
|
"step",
|
|
9110
9107
|
"value"
|
|
9111
|
-
],
|
|
9108
|
+
], Lu = { class: "pv-text-body-sm" }, Ru = [
|
|
9112
9109
|
"disabled",
|
|
9113
9110
|
"step",
|
|
9114
9111
|
"value"
|
|
9115
|
-
],
|
|
9112
|
+
], zu = 0, Bu = 100, Vu = 1e4, Hu = "4.6875rem", Uu = .01, Wu = /* @__PURE__ */ d({
|
|
9116
9113
|
inheritAttrs: !1,
|
|
9117
9114
|
__name: "PvRange",
|
|
9118
9115
|
props: /* @__PURE__ */ _({
|
|
@@ -9204,7 +9201,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9204
9201
|
let r = se(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
|
|
9205
9202
|
return Math.exp(i + n * (a - i)) - r;
|
|
9206
9203
|
}, q = (e, t) => Math.max(0, Math.min(100, ce(e, t) * 100)), J = r(() => {
|
|
9207
|
-
let e = E(t.min) ??
|
|
9204
|
+
let e = E(t.min) ?? zu, n = E(t.max) ?? Bu;
|
|
9208
9205
|
return e > n ? {
|
|
9209
9206
|
max: e,
|
|
9210
9207
|
min: n
|
|
@@ -9227,7 +9224,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9227
9224
|
}
|
|
9228
9225
|
return t.split(".")[1]?.length ?? 0;
|
|
9229
9226
|
}, Z = r(() => {
|
|
9230
|
-
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(
|
|
9227
|
+
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(zu, r ?? zu, i ?? zu), o = n ?? Math.max(Bu, r ?? Bu, i ?? Bu);
|
|
9231
9228
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (B.value > 0 ? B.value : 1)), {
|
|
9232
9229
|
max: o,
|
|
9233
9230
|
min: a
|
|
@@ -9268,14 +9265,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9268
9265
|
"--range-track-color": oe.value,
|
|
9269
9266
|
"--value-max": `${De.value}%`,
|
|
9270
9267
|
"--value-min": `${Ee.value}%`
|
|
9271
|
-
})), ke = r(() => ({ left: `${Ee.value}%` })), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Me = (e, t) => I.value ? Math.round(ce(e, t) *
|
|
9268
|
+
})), ke = r(() => ({ left: `${Ee.value}%` })), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Me = (e, t) => I.value ? Math.round(ce(e, t) * Vu) : e, Ne = (e, t) => I.value ? K(e / Vu, t) : e, Pe = r(() => I.value ? 0 : Z.value.min), Fe = r(() => I.value ? Vu : Z.value.max), Ie = r(() => Me(Te.value.min, Z.value)), Le = r(() => Me(Te.value.max, Z.value)), Re = r(() => I.value ? 0 : J.value.min), ze = r(() => I.value ? Vu : J.value.max), Be = r(() => Me(ue.value, J.value)), Ve = r(() => Math.max(P(Z.value.min).length, P(Z.value.max).length, 3)), He = r(() => {
|
|
9272
9269
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
9273
9270
|
return {
|
|
9274
9271
|
"--flex-align": "stretch",
|
|
9275
9272
|
"--flex-gap": "0",
|
|
9276
|
-
"--pv-range-input-width": `max(${
|
|
9273
|
+
"--pv-range-input-width": `max(${Hu}, calc(${Ve.value}ch + ${e}))`
|
|
9277
9274
|
};
|
|
9278
|
-
}), Ue = () => E(t.min) !== null || Z.value.min ===
|
|
9275
|
+
}), Ue = () => E(t.min) !== null || Z.value.min === zu, We = () => E(t.max) !== null || Z.value.max === Bu, Ge = (e, t) => {
|
|
9279
9276
|
c.value = {
|
|
9280
9277
|
max: t >= Z.value.max && We() ? null : t,
|
|
9281
9278
|
min: e <= Z.value.min && Ue() ? null : e
|
|
@@ -9322,7 +9319,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9322
9319
|
let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
|
|
9323
9320
|
if (!a && !o) return;
|
|
9324
9321
|
e.preventDefault();
|
|
9325
|
-
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(K(ce(i, r) + s *
|
|
9322
|
+
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(K(ce(i, r) + s * Uu * c, r), a ? "up" : "down");
|
|
9326
9323
|
l === i && (l = i + s * _e(i, H.value)), Xe(n), Je(n, l, !1);
|
|
9327
9324
|
}, ct = () => {
|
|
9328
9325
|
g.value !== "min" && (m.value = P(Te.value.min)), g.value !== "max" && (p.value = P(Te.value.max));
|
|
@@ -9367,7 +9364,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9367
9364
|
};
|
|
9368
9365
|
return G([Te, Z], ct, { immediate: !0 }), C(() => {
|
|
9369
9366
|
_t(), Qe();
|
|
9370
|
-
}), (n, r) => e.mode === "single" ? (k(), o("div",
|
|
9367
|
+
}), (n, r) => e.mode === "single" ? (k(), o("div", Ou, [e.showValueTooltips && _.value ? (k(), o("span", {
|
|
9371
9368
|
key: 0,
|
|
9372
9369
|
class: "pv-range-tooltip",
|
|
9373
9370
|
style: S(fe.value)
|
|
@@ -9386,7 +9383,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9386
9383
|
onInput: it,
|
|
9387
9384
|
onPointerdown: rt,
|
|
9388
9385
|
onPointerup: $e
|
|
9389
|
-
}), null, 16,
|
|
9386
|
+
}), null, 16, ku)])) : (k(), o("div", v({ key: 1 }, V(l), {
|
|
9390
9387
|
class: "pv-flex-vertical",
|
|
9391
9388
|
"data-testid": "pv-range-dual",
|
|
9392
9389
|
role: "group",
|
|
@@ -9396,7 +9393,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9396
9393
|
"--flex-gap": "0"
|
|
9397
9394
|
}
|
|
9398
9395
|
}), [
|
|
9399
|
-
e.showBoundLabels ? (k(), o("div",
|
|
9396
|
+
e.showBoundLabels ? (k(), o("div", ju, [s("span", null, R(F(Z.value.min)), 1), s("span", null, R(F(Z.value.max)), 1)])) : a("", !0),
|
|
9400
9397
|
s("div", {
|
|
9401
9398
|
ref_key: "sliderRef",
|
|
9402
9399
|
ref: y,
|
|
@@ -9431,7 +9428,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9431
9428
|
onKeydown: r[0] ||= (e) => st(e, "min"),
|
|
9432
9429
|
onPointerdown: r[1] ||= (e) => Xe("min"),
|
|
9433
9430
|
onPointerup: Ye
|
|
9434
|
-
}, null, 40,
|
|
9431
|
+
}, null, 40, Mu),
|
|
9435
9432
|
s("input", {
|
|
9436
9433
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
9437
9434
|
type: "range",
|
|
@@ -9448,14 +9445,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9448
9445
|
onKeydown: r[2] ||= (e) => st(e, "max"),
|
|
9449
9446
|
onPointerdown: r[3] ||= (e) => Xe("max"),
|
|
9450
9447
|
onPointerup: Ye
|
|
9451
|
-
}, null, 40,
|
|
9448
|
+
}, null, 40, Nu)
|
|
9452
9449
|
], 38),
|
|
9453
|
-
e.showInputs ? (k(), o("div",
|
|
9450
|
+
e.showInputs ? (k(), o("div", Pu, [
|
|
9454
9451
|
s("label", {
|
|
9455
9452
|
class: "pv-flex-vertical pv-range-input-label",
|
|
9456
9453
|
for: f,
|
|
9457
9454
|
style: S(He.value)
|
|
9458
|
-
}, [s("span",
|
|
9455
|
+
}, [s("span", Fu, R(e.minLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (k(), i(Q, {
|
|
9459
9456
|
key: 0,
|
|
9460
9457
|
class: "pv-range-input-icon",
|
|
9461
9458
|
name: e.inputIcon
|
|
@@ -9472,12 +9469,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9472
9469
|
onFocus: r[5] ||= (e) => ft("min"),
|
|
9473
9470
|
onInput: ut,
|
|
9474
9471
|
onKeydown: r[6] ||= le((e) => mt(e, "min"), ["enter"])
|
|
9475
|
-
}, null, 40,
|
|
9472
|
+
}, null, 40, Iu)], 2)], 4),
|
|
9476
9473
|
s("label", {
|
|
9477
9474
|
class: "pv-flex-vertical pv-range-input-label",
|
|
9478
9475
|
for: d,
|
|
9479
9476
|
style: S(He.value)
|
|
9480
|
-
}, [s("span",
|
|
9477
|
+
}, [s("span", Lu, R(e.maxLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (k(), i(Q, {
|
|
9481
9478
|
key: 0,
|
|
9482
9479
|
class: "pv-range-input-icon",
|
|
9483
9480
|
name: e.inputIcon
|
|
@@ -9494,7 +9491,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9494
9491
|
onFocus: r[8] ||= (e) => ft("max"),
|
|
9495
9492
|
onInput: dt,
|
|
9496
9493
|
onKeydown: r[9] ||= le((e) => mt(e, "max"), ["enter"])
|
|
9497
|
-
}, null, 40,
|
|
9494
|
+
}, null, 40, Ru)], 2)], 4),
|
|
9498
9495
|
e.showClear && je.value ? (k(), i($, {
|
|
9499
9496
|
key: 0,
|
|
9500
9497
|
class: "pv-text-brand",
|
|
@@ -9511,26 +9508,26 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9511
9508
|
variant: "ghost",
|
|
9512
9509
|
onClick: Ze
|
|
9513
9510
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
9514
|
-
], 16,
|
|
9511
|
+
], 16, Au));
|
|
9515
9512
|
}
|
|
9516
|
-
}),
|
|
9513
|
+
}), Gu = [
|
|
9517
9514
|
"aria-label",
|
|
9518
9515
|
"checked",
|
|
9519
9516
|
"disabled",
|
|
9520
9517
|
"name"
|
|
9521
|
-
],
|
|
9518
|
+
], Ku = {
|
|
9522
9519
|
key: 3,
|
|
9523
9520
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
9524
|
-
},
|
|
9521
|
+
}, qu = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, Ju = {
|
|
9525
9522
|
key: 0,
|
|
9526
9523
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
9527
|
-
},
|
|
9524
|
+
}, Yu = {
|
|
9528
9525
|
key: 1,
|
|
9529
9526
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
9530
|
-
},
|
|
9527
|
+
}, Xu = {
|
|
9531
9528
|
key: 4,
|
|
9532
9529
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
9533
|
-
},
|
|
9530
|
+
}, Zu = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
|
|
9534
9531
|
__name: "PvFilterPanelOptionRow",
|
|
9535
9532
|
props: {
|
|
9536
9533
|
ariaLabel: {},
|
|
@@ -9608,7 +9605,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9608
9605
|
disabled: e.disabled,
|
|
9609
9606
|
name: e.name,
|
|
9610
9607
|
onChange: y
|
|
9611
|
-
}, null, 40,
|
|
9608
|
+
}, null, 40, Gu)) : (k(), i(_c, {
|
|
9612
9609
|
key: 1,
|
|
9613
9610
|
ariaLabel: e.ariaLabel || e.label,
|
|
9614
9611
|
disabled: e.disabled,
|
|
@@ -9621,12 +9618,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9621
9618
|
"indeterminate",
|
|
9622
9619
|
"modelValue"
|
|
9623
9620
|
])),
|
|
9624
|
-
e.renderer ? (k(), i(F(e.renderer), x(v({ key: 2 }, g.value)), null, 16)) : (k(), o("span",
|
|
9625
|
-
s("span",
|
|
9626
|
-
e.subduedText ? (k(), o("span",
|
|
9627
|
-
e.subText ? (k(), o("span",
|
|
9621
|
+
e.renderer ? (k(), i(F(e.renderer), x(v({ key: 2 }, g.value)), null, 16)) : (k(), o("span", Ku, [
|
|
9622
|
+
s("span", qu, R(e.label), 1),
|
|
9623
|
+
e.subduedText ? (k(), o("span", Ju, R(e.subduedText), 1)) : a("", !0),
|
|
9624
|
+
e.subText ? (k(), o("span", Yu, R(e.subText), 1)) : a("", !0)
|
|
9628
9625
|
])),
|
|
9629
|
-
m.value ? (k(), o("span",
|
|
9626
|
+
m.value ? (k(), o("span", Xu, [N(t.$slots, "result-count", {}, () => [l("(" + R(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
9630
9627
|
e.showFocusAction ? (k(), o("div", {
|
|
9631
9628
|
key: 5,
|
|
9632
9629
|
class: b(["pv-filter-panel-option-row-focus-action", { "pv-filter-panel-option-row-focus-action-always-visible": e.isFocused }]),
|
|
@@ -9652,7 +9649,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9652
9649
|
}, 8, ["description"])], 2)) : a("", !0)
|
|
9653
9650
|
], 6));
|
|
9654
9651
|
}
|
|
9655
|
-
}), [["__scopeId", "data-v-b85834dc"]]),
|
|
9652
|
+
}), [["__scopeId", "data-v-b85834dc"]]), Qu = "__pv_filter_panel_scoped_value__", $u = (e) => typeof e == "object" && !!e, ed = (e) => {
|
|
9656
9653
|
try {
|
|
9657
9654
|
let t = JSON.parse(decodeURIComponent(e));
|
|
9658
9655
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -9666,7 +9663,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9666
9663
|
} catch {
|
|
9667
9664
|
return [];
|
|
9668
9665
|
}
|
|
9669
|
-
},
|
|
9666
|
+
}, td = (e) => {
|
|
9670
9667
|
if (!e.startsWith("__")) return null;
|
|
9671
9668
|
let t = e.slice(2).split("__");
|
|
9672
9669
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -9679,38 +9676,38 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9679
9676
|
pairs: n,
|
|
9680
9677
|
value: n[0].value
|
|
9681
9678
|
};
|
|
9682
|
-
},
|
|
9679
|
+
}, nd = (e) => {
|
|
9683
9680
|
if (e == null) return null;
|
|
9684
|
-
if (!e.startsWith(
|
|
9681
|
+
if (!e.startsWith(Qu)) return td(e) ?? {
|
|
9685
9682
|
pairs: [],
|
|
9686
9683
|
value: e
|
|
9687
9684
|
};
|
|
9688
|
-
let t =
|
|
9685
|
+
let t = ed(e.slice(32));
|
|
9689
9686
|
return {
|
|
9690
9687
|
field: t[0]?.field,
|
|
9691
9688
|
pairs: t,
|
|
9692
9689
|
value: t[0]?.value ?? e
|
|
9693
9690
|
};
|
|
9694
|
-
},
|
|
9691
|
+
}, rd = (e, t) => `${Qu}${encodeURIComponent(JSON.stringify([[e, t]]))}`, id = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : $u(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) : nd(e.value)?.value ?? e.value : null, ad = (e, t) => e?.field ? e.field : e?.colField ? e.colField : nd(e?.value)?.field ?? t, od = (e) => e.flatMap((e) => [e, ...e.children?.length ? od(e.children) : []]), sd = (e, t, n, r) => ad(e, r) === t && id(e) === n, cd = [
|
|
9695
9692
|
"totalCount",
|
|
9696
9693
|
"total_count",
|
|
9697
9694
|
"resultCount",
|
|
9698
9695
|
"result_count",
|
|
9699
9696
|
"row_count",
|
|
9700
9697
|
"count"
|
|
9701
|
-
],
|
|
9698
|
+
], ld = new Intl.NumberFormat("en-US", {
|
|
9702
9699
|
maximumFractionDigits: 1,
|
|
9703
9700
|
notation: "compact"
|
|
9704
|
-
}),
|
|
9705
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
9701
|
+
}), ud = (e) => typeof e == "object" && !!e, dd = (e) => {
|
|
9702
|
+
if (typeof e == "number" && Number.isFinite(e)) return ld.format(e);
|
|
9706
9703
|
if (typeof e == "string") {
|
|
9707
9704
|
let t = e.trim();
|
|
9708
9705
|
if (!t) return;
|
|
9709
9706
|
let n = Number(t);
|
|
9710
|
-
return Number.isFinite(n) ?
|
|
9707
|
+
return Number.isFinite(n) ? ld.format(n) : e;
|
|
9711
9708
|
}
|
|
9712
|
-
},
|
|
9713
|
-
let n =
|
|
9709
|
+
}, fd = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), pd = (e, t = {}) => {
|
|
9710
|
+
let n = fd(t.dataType, t.valueDecimals);
|
|
9714
9711
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
9715
9712
|
currency: "USD",
|
|
9716
9713
|
maximumFractionDigits: n,
|
|
@@ -9722,69 +9719,69 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9722
9719
|
minimumFractionDigits: n
|
|
9723
9720
|
}).format(e);
|
|
9724
9721
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
9725
|
-
},
|
|
9722
|
+
}, md = (e, t, n = {}) => e !== null && t !== null ? `${pd(e, n)}–${pd(t, n)}` : e === null ? t === null ? "" : `≤ ${pd(t, n)}` : `${pd(e, n)}+`, hd = (e) => e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : ud(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value, gd = (e, t) => {
|
|
9726
9723
|
let n = e.metadata;
|
|
9727
|
-
if (!
|
|
9724
|
+
if (!ud(n)) return null;
|
|
9728
9725
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
9729
9726
|
let t = n[e];
|
|
9730
9727
|
if (t != null && String(t).trim()) return String(t);
|
|
9731
9728
|
}
|
|
9732
9729
|
return null;
|
|
9733
|
-
},
|
|
9730
|
+
}, _d = (e, t) => {
|
|
9734
9731
|
try {
|
|
9735
9732
|
return e(t) || null;
|
|
9736
9733
|
} catch {
|
|
9737
9734
|
return null;
|
|
9738
9735
|
}
|
|
9739
|
-
},
|
|
9736
|
+
}, vd = (e, t) => {
|
|
9740
9737
|
let n = t?.context?.filterValueFormatter;
|
|
9741
9738
|
if (typeof n != "function") return null;
|
|
9742
|
-
let r = e.rawValue !== null && e.rawValue !== void 0 ||
|
|
9743
|
-
return
|
|
9739
|
+
let r = e.rawValue !== null && e.rawValue !== void 0 || ud(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0, i = e.label && !r ? e.label : gd(e, t) ?? e.label;
|
|
9740
|
+
return _d(n, {
|
|
9744
9741
|
context: {
|
|
9745
9742
|
...e,
|
|
9746
9743
|
label: i
|
|
9747
9744
|
},
|
|
9748
|
-
value:
|
|
9745
|
+
value: hd(e)
|
|
9749
9746
|
});
|
|
9750
|
-
},
|
|
9747
|
+
}, yd = (e, t) => typeof t?.valueFormatter == "function" ? _d(t.valueFormatter, {
|
|
9751
9748
|
context: e.metadata,
|
|
9752
|
-
value:
|
|
9753
|
-
}) : null,
|
|
9754
|
-
let t =
|
|
9749
|
+
value: hd(e)
|
|
9750
|
+
}) : null, bd = (e, t) => vd(e, t) || e.label || gd(e, t) || yd(e, t) || e.value, xd = (e) => {
|
|
9751
|
+
let t = ud(e.metadata) ? e.metadata.rawValue : void 0;
|
|
9755
9752
|
return Array.from(new Set([
|
|
9756
9753
|
e.value,
|
|
9757
9754
|
e.rawValue,
|
|
9758
9755
|
t,
|
|
9759
|
-
|
|
9756
|
+
nd(e.value)?.value
|
|
9760
9757
|
].filter((e) => e != null).map(String)));
|
|
9761
|
-
}, xd = (e, t) => {
|
|
9762
|
-
if (!t?.context?.metadataDisplayFields?.length || hd(e, t)) return !1;
|
|
9763
|
-
let n = e.label?.trim();
|
|
9764
|
-
return !n || bd(e).includes(n);
|
|
9765
9758
|
}, Sd = (e, t) => {
|
|
9759
|
+
if (!t?.context?.metadataDisplayFields?.length || gd(e, t)) return !1;
|
|
9760
|
+
let n = e.label?.trim();
|
|
9761
|
+
return !n || xd(e).includes(n);
|
|
9762
|
+
}, Cd = (e, t) => {
|
|
9766
9763
|
let n = /* @__PURE__ */ new Map(), r = (e) => {
|
|
9767
|
-
let i =
|
|
9768
|
-
for (let r of
|
|
9764
|
+
let i = Sd(e, t);
|
|
9765
|
+
for (let r of xd(e)) {
|
|
9769
9766
|
let a = n.get(r);
|
|
9770
|
-
(!a ||
|
|
9767
|
+
(!a || Sd(a, t) && !i) && n.set(r, e);
|
|
9771
9768
|
}
|
|
9772
9769
|
e.children?.forEach(r);
|
|
9773
9770
|
};
|
|
9774
9771
|
return e.forEach(r), n;
|
|
9775
|
-
},
|
|
9776
|
-
let r =
|
|
9777
|
-
if (r && (!i ||
|
|
9772
|
+
}, wd = (e, t, n) => {
|
|
9773
|
+
let r = gd(e, n), i = e.label?.trim();
|
|
9774
|
+
if (r && (!i || xd(e).includes(i))) return {
|
|
9778
9775
|
...e,
|
|
9779
9776
|
label: r
|
|
9780
9777
|
};
|
|
9781
|
-
if (!
|
|
9782
|
-
let a =
|
|
9778
|
+
if (!Sd(e, n)) return e;
|
|
9779
|
+
let a = xd(e).map((e) => t.get(e)).find((e) => e && !Sd(e, n));
|
|
9783
9780
|
if (!a) return null;
|
|
9784
|
-
let o =
|
|
9781
|
+
let o = gd(a, n) ?? a.label;
|
|
9785
9782
|
if (!o) return null;
|
|
9786
|
-
let s = Object.entries(
|
|
9787
|
-
...
|
|
9783
|
+
let s = Object.entries(ud(e.metadata) ? e.metadata : {}).filter(([, e]) => e != null && e !== ""), c = {
|
|
9784
|
+
...ud(a.metadata) ? a.metadata : {},
|
|
9788
9785
|
...Object.fromEntries(s)
|
|
9789
9786
|
};
|
|
9790
9787
|
return {
|
|
@@ -9792,10 +9789,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9792
9789
|
label: o,
|
|
9793
9790
|
...Object.keys(c).length ? { metadata: c } : {}
|
|
9794
9791
|
};
|
|
9795
|
-
},
|
|
9792
|
+
}, Td = (e, t, n) => {
|
|
9796
9793
|
if (!n?.context?.metadataDisplayFields?.length) return e;
|
|
9797
|
-
let r =
|
|
9798
|
-
let t =
|
|
9794
|
+
let r = Cd(t, n), i = (e) => e.flatMap((e) => {
|
|
9795
|
+
let t = wd(e, r, n);
|
|
9799
9796
|
if (!t) return [];
|
|
9800
9797
|
if (!t.children?.length) return [t];
|
|
9801
9798
|
let a = i(t.children), o = t.totalChildCount !== void 0 && t.children.length >= t.totalChildCount ? a.length : t.totalChildCount;
|
|
@@ -9806,73 +9803,73 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9806
9803
|
}];
|
|
9807
9804
|
});
|
|
9808
9805
|
return i(e);
|
|
9809
|
-
},
|
|
9810
|
-
let t =
|
|
9806
|
+
}, Ed = (e) => {
|
|
9807
|
+
let t = dd(e?.resultCount);
|
|
9811
9808
|
if (t !== void 0) return t;
|
|
9812
9809
|
let n = e?.metadata;
|
|
9813
|
-
if (
|
|
9814
|
-
let t =
|
|
9810
|
+
if (ud(n)) for (let e of cd) {
|
|
9811
|
+
let t = dd(n[e]);
|
|
9815
9812
|
if (t !== void 0) return t;
|
|
9816
9813
|
}
|
|
9817
|
-
return
|
|
9818
|
-
},
|
|
9814
|
+
return dd(e?.totalChildCount);
|
|
9815
|
+
}, Dd = (e) => {
|
|
9819
9816
|
let t = e;
|
|
9820
9817
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
9821
|
-
},
|
|
9818
|
+
}, Od = (e) => {
|
|
9822
9819
|
let t = e;
|
|
9823
|
-
return
|
|
9820
|
+
return Dd(e) ? {
|
|
9824
9821
|
...t,
|
|
9825
|
-
conditions: (t.conditions ?? []).map(
|
|
9822
|
+
conditions: (t.conditions ?? []).map(Od)
|
|
9826
9823
|
} : { ...t };
|
|
9827
|
-
},
|
|
9824
|
+
}, kd = (e, t) => {
|
|
9828
9825
|
if (!e) return null;
|
|
9829
9826
|
let n = t instanceof Set ? t : new Set(t);
|
|
9830
|
-
if (!n.size) return
|
|
9831
|
-
if (!
|
|
9827
|
+
if (!n.size) return Od(e);
|
|
9828
|
+
if (!Dd(e)) {
|
|
9832
9829
|
let t = e;
|
|
9833
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
9830
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : Od(e);
|
|
9834
9831
|
}
|
|
9835
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
9832
|
+
let r = e, i = (r.conditions ?? []).map((e) => kd(e, n)).filter((e) => !!e);
|
|
9836
9833
|
return i.length ? i.length === 1 ? i[0] : {
|
|
9837
9834
|
...r,
|
|
9838
9835
|
conditions: i
|
|
9839
9836
|
} : null;
|
|
9840
|
-
},
|
|
9837
|
+
}, Ad = (e) => e ? [e.field, ...(e.children ?? []).flatMap(Ad)] : [], jd = (e) => e ? e.children?.length ? e.children.flatMap(jd) : [e.field] : [], Md = (e) => {
|
|
9841
9838
|
let t = e?.context ?? {};
|
|
9842
|
-
return t.aggregateFieldHierarchy ?
|
|
9843
|
-
},
|
|
9839
|
+
return t.aggregateFieldHierarchy ? Ad(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
9840
|
+
}, Nd = (e) => {
|
|
9844
9841
|
let t = e?.context ?? {};
|
|
9845
9842
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
9846
|
-
},
|
|
9843
|
+
}, Pd = (e) => Md(e).length > 0, Fd = (e, t) => {
|
|
9847
9844
|
for (let n of e ?? []) {
|
|
9848
9845
|
if (!n) continue;
|
|
9849
9846
|
if (n.value === t) return n;
|
|
9850
|
-
let e =
|
|
9847
|
+
let e = Fd(n.children, t);
|
|
9851
9848
|
if (e) return e;
|
|
9852
9849
|
}
|
|
9853
|
-
},
|
|
9850
|
+
}, Id = (e, t, n = []) => {
|
|
9854
9851
|
for (let r of e ?? []) {
|
|
9855
9852
|
if (!r) continue;
|
|
9856
9853
|
let e = [...n, r];
|
|
9857
9854
|
if (r.value === t) return e;
|
|
9858
|
-
let i =
|
|
9855
|
+
let i = Id(r.children, t, e);
|
|
9859
9856
|
if (i) return i;
|
|
9860
9857
|
}
|
|
9861
|
-
},
|
|
9862
|
-
let n =
|
|
9858
|
+
}, Ld = (e, t) => {
|
|
9859
|
+
let n = Fd(t, e), r = n ? ad(n, "") : void 0, i = n ? id(n) : null;
|
|
9863
9860
|
if (r && i !== null) return {
|
|
9864
9861
|
field: r,
|
|
9865
9862
|
value: i
|
|
9866
9863
|
};
|
|
9867
|
-
let a =
|
|
9864
|
+
let a = nd(e);
|
|
9868
9865
|
return {
|
|
9869
9866
|
field: a?.field,
|
|
9870
9867
|
value: a?.value ?? e
|
|
9871
9868
|
};
|
|
9872
|
-
},
|
|
9869
|
+
}, Rd = (e, t, n) => {
|
|
9873
9870
|
let r = (e) => {
|
|
9874
9871
|
if (!e) return;
|
|
9875
|
-
let i =
|
|
9872
|
+
let i = ad(e, ""), a = id(e);
|
|
9876
9873
|
if (i === t && a === n) return e.value;
|
|
9877
9874
|
for (let t of e.children ?? []) {
|
|
9878
9875
|
let e = r(t);
|
|
@@ -9884,9 +9881,9 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9884
9881
|
if (e) return e;
|
|
9885
9882
|
}
|
|
9886
9883
|
return `__${t}__${n}`;
|
|
9887
|
-
},
|
|
9884
|
+
}, zd = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...zd(e.children)]), Bd = (e, t) => {
|
|
9888
9885
|
if (e.state !== "selected") return null;
|
|
9889
|
-
let { field: n, value: r } =
|
|
9886
|
+
let { field: n, value: r } = Ld(e.id, t);
|
|
9890
9887
|
if (!n) return null;
|
|
9891
9888
|
let i = [{
|
|
9892
9889
|
colId: n,
|
|
@@ -9894,8 +9891,8 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9894
9891
|
filterType: "text",
|
|
9895
9892
|
type: "equals"
|
|
9896
9893
|
}];
|
|
9897
|
-
for (let n of
|
|
9898
|
-
let e =
|
|
9894
|
+
for (let n of zd(e.children)) {
|
|
9895
|
+
let e = Ld(n.id, t);
|
|
9899
9896
|
e.field && i.push({
|
|
9900
9897
|
colId: e.field,
|
|
9901
9898
|
filter: e.value,
|
|
@@ -9908,10 +9905,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9908
9905
|
filterType: "join",
|
|
9909
9906
|
type: "AND"
|
|
9910
9907
|
};
|
|
9911
|
-
},
|
|
9912
|
-
let t =
|
|
9908
|
+
}, Vd = (e) => {
|
|
9909
|
+
let t = Md(e.colDef), n = kd(e.baseModel, t);
|
|
9913
9910
|
if (!t.length) return n;
|
|
9914
|
-
let r = e.state.map((t) =>
|
|
9911
|
+
let r = e.state.map((t) => Bd(t, e.options)).filter((e) => !!e);
|
|
9915
9912
|
if (!r.length) return n;
|
|
9916
9913
|
let i = r.length === 1 ? r[0] : {
|
|
9917
9914
|
conditions: r,
|
|
@@ -9923,17 +9920,17 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9923
9920
|
filterType: "join",
|
|
9924
9921
|
type: "AND"
|
|
9925
9922
|
} : i;
|
|
9926
|
-
},
|
|
9923
|
+
}, Hd = (e, t, n) => {
|
|
9927
9924
|
if (!e) return [];
|
|
9928
9925
|
let r = e;
|
|
9929
|
-
if (
|
|
9926
|
+
if (Dd(e)) {
|
|
9930
9927
|
let e = r.conditions ?? [];
|
|
9931
9928
|
if (r.type === "AND") {
|
|
9932
9929
|
let r = e.find((e) => {
|
|
9933
9930
|
let r = e;
|
|
9934
9931
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
9935
9932
|
});
|
|
9936
|
-
return e.flatMap((e) =>
|
|
9933
|
+
return e.flatMap((e) => Hd(e, t, n).map((e) => ({
|
|
9937
9934
|
...e,
|
|
9938
9935
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
9939
9936
|
colId: r.colId,
|
|
@@ -9941,20 +9938,20 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9941
9938
|
} : void 0)
|
|
9942
9939
|
})));
|
|
9943
9940
|
}
|
|
9944
|
-
return e.flatMap((e) =>
|
|
9941
|
+
return e.flatMap((e) => Hd(e, t, n));
|
|
9945
9942
|
}
|
|
9946
9943
|
return r.colId && t.has(r.colId) ? [{
|
|
9947
9944
|
colId: r.colId,
|
|
9948
9945
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
9949
9946
|
type: r.type
|
|
9950
9947
|
}] : [];
|
|
9951
|
-
},
|
|
9952
|
-
let t =
|
|
9948
|
+
}, Ud = (e) => {
|
|
9949
|
+
let t = Md(e.colDef);
|
|
9953
9950
|
if (!t.length) return [];
|
|
9954
|
-
let n = new Set(
|
|
9951
|
+
let n = new Set(jd(e.colDef.context?.aggregateFieldHierarchy)), r = Nd(e.colDef), i = Hd(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
9955
9952
|
for (let t of i) {
|
|
9956
9953
|
if (!t.filter) continue;
|
|
9957
|
-
let n =
|
|
9954
|
+
let n = Rd(e.options, t.colId, String(t.filter));
|
|
9958
9955
|
if (t.type === "equals") {
|
|
9959
9956
|
let e = a.get(n);
|
|
9960
9957
|
a.set(n, {
|
|
@@ -9965,7 +9962,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9965
9962
|
continue;
|
|
9966
9963
|
}
|
|
9967
9964
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
9968
|
-
let r =
|
|
9965
|
+
let r = Rd(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
9969
9966
|
children: [],
|
|
9970
9967
|
id: r,
|
|
9971
9968
|
state: "selected"
|
|
@@ -9977,158 +9974,158 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9977
9974
|
}
|
|
9978
9975
|
}
|
|
9979
9976
|
return [...a.values()];
|
|
9980
|
-
},
|
|
9981
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
9977
|
+
}, Wd = (e) => {
|
|
9978
|
+
let t = /* @__PURE__ */ new Map(), n = Md(e.colDef);
|
|
9982
9979
|
if (!n.length) return t;
|
|
9983
|
-
let r =
|
|
9980
|
+
let r = Hd(e.model, new Set(n), new Set(jd(e.colDef.context?.aggregateFieldHierarchy)));
|
|
9984
9981
|
for (let e of r) {
|
|
9985
9982
|
if (e.type !== "equals" || !e.filter) continue;
|
|
9986
9983
|
let n = t.get(e.colId) ?? [];
|
|
9987
9984
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
9988
9985
|
}
|
|
9989
9986
|
return t;
|
|
9990
|
-
},
|
|
9987
|
+
}, Gd = (e) => e.map((e) => ({
|
|
9991
9988
|
...e,
|
|
9992
9989
|
children: e.children?.map((e) => ({
|
|
9993
9990
|
...e,
|
|
9994
|
-
children: e.children ?
|
|
9991
|
+
children: e.children ? Gd(e.children) : void 0
|
|
9995
9992
|
}))
|
|
9996
|
-
})),
|
|
9993
|
+
})), Kd = (e, t) => e.flatMap((e) => {
|
|
9997
9994
|
if (e.id === t) return [];
|
|
9998
|
-
let n = e.children ?
|
|
9995
|
+
let n = e.children ? Kd(e.children, t) : void 0;
|
|
9999
9996
|
return [{
|
|
10000
9997
|
...e,
|
|
10001
9998
|
children: n?.length ? n : void 0
|
|
10002
9999
|
}];
|
|
10003
|
-
}),
|
|
10000
|
+
}), qd = (e, t) => {
|
|
10004
10001
|
for (let n of e) {
|
|
10005
10002
|
if (n.id === t) return n;
|
|
10006
|
-
let e = n.children ?
|
|
10003
|
+
let e = n.children ? qd(n.children, t) : void 0;
|
|
10007
10004
|
if (e) return e;
|
|
10008
10005
|
}
|
|
10009
|
-
},
|
|
10010
|
-
let r = (
|
|
10006
|
+
}, Jd = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, Yd = (e, t) => [...Kd(e, t.id), t], Xd = (e) => (e.children ?? []).flatMap((e) => [e.value, ...Xd(e)]), Zd = (e, t) => Xd(t).reduce((e, t) => Kd(e, t), e), Qd = (e, t) => [t.value, ...Xd(t)].reduce((e, t) => Kd(e, t), e), $d = (e, t, n) => {
|
|
10007
|
+
let r = (Id(n, t.value) ?? []).slice(0, -1).reverse();
|
|
10011
10008
|
for (let t of r) {
|
|
10012
|
-
let n =
|
|
10009
|
+
let n = qd(e, t.value);
|
|
10013
10010
|
if (n?.state === "selected") return n;
|
|
10014
10011
|
}
|
|
10015
|
-
},
|
|
10016
|
-
let t =
|
|
10012
|
+
}, ef = (e) => {
|
|
10013
|
+
let t = Gd(e.state), n = $d(t, e.option, e.options);
|
|
10017
10014
|
if (n) {
|
|
10018
10015
|
let r = n.children ?? [];
|
|
10019
|
-
return n.children = e.checked ?
|
|
10016
|
+
return n.children = e.checked ? Qd(r, e.option) : [...Qd(r, e.option), {
|
|
10020
10017
|
id: e.option.value,
|
|
10021
10018
|
state: "deselected"
|
|
10022
10019
|
}], n.children.length || delete n.children, t;
|
|
10023
10020
|
}
|
|
10024
|
-
return
|
|
10021
|
+
return Jd(e.option) ? e.checked ? Yd(Zd(t, e.option), {
|
|
10025
10022
|
id: e.option.value,
|
|
10026
10023
|
state: "selected"
|
|
10027
|
-
}) :
|
|
10024
|
+
}) : Kd(t, e.option.value) : e.checked ? Yd(t, {
|
|
10028
10025
|
id: e.option.value,
|
|
10029
10026
|
state: "selected"
|
|
10030
|
-
}) :
|
|
10031
|
-
},
|
|
10027
|
+
}) : Kd(t, e.option.value);
|
|
10028
|
+
}, tf = (e) => {
|
|
10032
10029
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
10033
10030
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
10034
10031
|
};
|
|
10035
10032
|
return n(e), t;
|
|
10036
|
-
},
|
|
10037
|
-
let t =
|
|
10033
|
+
}, nf = (e) => {
|
|
10034
|
+
let t = tf(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
10038
10035
|
let a = t.get(e.value), o = a?.state === "selected" || i && a?.state !== "deselected", s = (e.children ?? []).map((e) => r(e, o)), c = s.some((e) => e.selected || e.indeterminate), l = s.some((e) => !e.selected || e.indeterminate), u = {
|
|
10039
|
-
indeterminate:
|
|
10036
|
+
indeterminate: zd(a?.children).length > 0 || !o && c || o && l,
|
|
10040
10037
|
selected: o
|
|
10041
10038
|
};
|
|
10042
10039
|
return n.set(e.value, u), u;
|
|
10043
10040
|
};
|
|
10044
10041
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
10045
10042
|
return n;
|
|
10046
|
-
},
|
|
10043
|
+
}, rf = (e) => nf(e).get(e.option.value) ?? nf({
|
|
10047
10044
|
options: [e.option],
|
|
10048
10045
|
state: e.state
|
|
10049
10046
|
}).get(e.option.value) ?? {
|
|
10050
10047
|
indeterminate: !1,
|
|
10051
10048
|
selected: !1
|
|
10052
|
-
},
|
|
10049
|
+
}, af = (e) => e.state.flatMap((t) => {
|
|
10053
10050
|
if (t.state !== "selected") return [];
|
|
10054
|
-
let n =
|
|
10051
|
+
let n = Fd(e.options, t.id);
|
|
10055
10052
|
if (n) return [n];
|
|
10056
|
-
let { field: r, value: i } =
|
|
10053
|
+
let { field: r, value: i } = Ld(t.id, e.options);
|
|
10057
10054
|
return [{
|
|
10058
10055
|
colField: r,
|
|
10059
10056
|
label: i,
|
|
10060
10057
|
metadata: { rawValue: i },
|
|
10061
|
-
value: r ?
|
|
10058
|
+
value: r ? rd(r, i) : t.id
|
|
10062
10059
|
}];
|
|
10063
|
-
}),
|
|
10060
|
+
}), of = (e) => e.filter((e) => e.state === "selected").length, sf = ["open"], cf = {
|
|
10064
10061
|
class: "pv-flex pv-text-body-md",
|
|
10065
10062
|
style: {
|
|
10066
10063
|
"--flex-align": "center",
|
|
10067
10064
|
"--flex-gap": "0.5rem"
|
|
10068
10065
|
}
|
|
10069
|
-
},
|
|
10066
|
+
}, lf = {
|
|
10070
10067
|
key: 1,
|
|
10071
10068
|
class: "pv-filter-panel-refresh-status",
|
|
10072
10069
|
"data-testid": "pv-filter-panel-refresh-status",
|
|
10073
10070
|
role: "status"
|
|
10074
|
-
},
|
|
10071
|
+
}, uf = { class: "pv-visually-hidden" }, df = ["aria-busy"], ff = {
|
|
10075
10072
|
key: 0,
|
|
10076
10073
|
class: "pv-flex-vertical",
|
|
10077
10074
|
style: {
|
|
10078
10075
|
"--flex-align": "stretch",
|
|
10079
10076
|
"--flex-gap": "0.5rem"
|
|
10080
10077
|
}
|
|
10081
|
-
},
|
|
10078
|
+
}, pf = ["aria-label"], mf = {
|
|
10082
10079
|
key: 0,
|
|
10083
10080
|
class: "pv-text-subdued pv-text-body-xxs",
|
|
10084
10081
|
"data-testid": "filter-group-label"
|
|
10085
|
-
},
|
|
10082
|
+
}, hf = {
|
|
10086
10083
|
class: "pv-flex",
|
|
10087
10084
|
style: {
|
|
10088
10085
|
"--flex-gap": "0.5rem",
|
|
10089
10086
|
"--flex-wrap": "wrap"
|
|
10090
10087
|
}
|
|
10091
|
-
},
|
|
10088
|
+
}, gf = {
|
|
10092
10089
|
key: 1,
|
|
10093
10090
|
class: "pv-flex",
|
|
10094
10091
|
style: { "--flex-justify": "flex-end" }
|
|
10095
|
-
},
|
|
10092
|
+
}, _f = {
|
|
10096
10093
|
key: 2,
|
|
10097
10094
|
class: "pv-flex-vertical",
|
|
10098
10095
|
style: {
|
|
10099
10096
|
"--flex-align": "stretch",
|
|
10100
10097
|
"--flex-gap": "0.5rem"
|
|
10101
10098
|
}
|
|
10102
|
-
},
|
|
10099
|
+
}, vf = {
|
|
10103
10100
|
key: 3,
|
|
10104
10101
|
class: "pv-flex pv-text-body-xs pv-text-subdued"
|
|
10105
|
-
},
|
|
10102
|
+
}, yf = { key: 0 }, bf = {
|
|
10106
10103
|
key: 1,
|
|
10107
10104
|
class: "pv-text-body-xs pv-text-subdued",
|
|
10108
10105
|
style: { margin: "0" }
|
|
10109
|
-
},
|
|
10106
|
+
}, xf = {
|
|
10110
10107
|
key: 1,
|
|
10111
10108
|
class: "pv-text-body-xs pv-text-subdued",
|
|
10112
10109
|
style: { margin: "0" }
|
|
10113
|
-
},
|
|
10110
|
+
}, Sf = {
|
|
10114
10111
|
key: 2,
|
|
10115
10112
|
class: "pv-flex-vertical",
|
|
10116
10113
|
style: {
|
|
10117
10114
|
"--flex-align": "stretch",
|
|
10118
10115
|
"--flex-gap": "0.5rem"
|
|
10119
10116
|
}
|
|
10120
|
-
},
|
|
10117
|
+
}, Cf = { key: 0 }, wf = {
|
|
10121
10118
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
10122
10119
|
style: { margin: "0" }
|
|
10123
|
-
},
|
|
10120
|
+
}, Tf = {
|
|
10124
10121
|
key: 1,
|
|
10125
10122
|
class: "pv-text-title-sm pv-text-subdued",
|
|
10126
10123
|
style: { margin: "0" }
|
|
10127
|
-
},
|
|
10124
|
+
}, Ef = {
|
|
10128
10125
|
key: 2,
|
|
10129
10126
|
class: "pv-text-body-xs pv-text-subdued",
|
|
10130
10127
|
style: { margin: "0" }
|
|
10131
|
-
},
|
|
10128
|
+
}, Df = {
|
|
10132
10129
|
key: 3,
|
|
10133
10130
|
class: "pv-flex-vertical",
|
|
10134
10131
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -10136,14 +10133,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10136
10133
|
"--flex-align": "stretch",
|
|
10137
10134
|
"--flex-gap": "0.5rem"
|
|
10138
10135
|
}
|
|
10139
|
-
},
|
|
10136
|
+
}, Of = {
|
|
10140
10137
|
class: "pv-flex",
|
|
10141
10138
|
style: {
|
|
10142
10139
|
"--flex-align": "center",
|
|
10143
10140
|
"--flex-gap": "0.5rem",
|
|
10144
10141
|
"--flex-wrap": "wrap"
|
|
10145
10142
|
}
|
|
10146
|
-
},
|
|
10143
|
+
}, kf = {
|
|
10147
10144
|
key: 4,
|
|
10148
10145
|
class: "pv-flex",
|
|
10149
10146
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -10152,7 +10149,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10152
10149
|
"--flex-gap": "0.5rem",
|
|
10153
10150
|
cursor: "pointer"
|
|
10154
10151
|
}
|
|
10155
|
-
},
|
|
10152
|
+
}, Af = { class: "pv-text-body-sm" }, jf = 5, Mf = 500, Nf = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
|
|
10156
10153
|
__name: "PvFilterPanelAccordion",
|
|
10157
10154
|
props: {
|
|
10158
10155
|
disableWhileLoading: {
|
|
@@ -10170,7 +10167,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10170
10167
|
"search-change"
|
|
10171
10168
|
],
|
|
10172
10169
|
setup(e, { emit: n }) {
|
|
10173
|
-
let c = e, d = n, f = j(null), p = j({}), m = j(0), h = te(), g = j(c.filter.searchQuery ?? ""), _ = j(
|
|
10170
|
+
let c = e, d = n, f = j(null), p = j({}), m = j(0), h = te(), g = j(c.filter.searchQuery ?? ""), _ = j(jf), y = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), b = r(() => c.filter.valueLabels?.false ?? "No"), C = r(() => c.filter.options ?? []), w = r(() => c.filter.focusText ?? "Focus"), T = r(() => [...c.filter.knownOptions ?? [], ...C.value]), E = r(() => c.filter.type ?? "value"), D = r(() => E.value === "value"), O = r(() => D.value && c.filter.isAggregate === !0), A = r(() => c.filter.aggregateSelectionState ?? []), N = r(() => g.value.trim().toLowerCase()), P = r(() => c.filter.selectedValues ?? []), I = r(() => new Set(P.value)), L = r(() => Object.fromEntries(od(T.value).map((e) => [e.value, e]))), z = (e) => !O.value && c.filter.colDef.context?.metadataDisplayFields?.length ? L.value[e] ?? p.value[e] : p.value[e], B = r(() => c.filter.valueLabels?.true ?? "Yes"), ee = r(() => c.filter.filterOptionsSortDescription || "Suggested"), H = r(() => c.filter.disabled === !0 || c.disableWhileLoading && c.filter.isLoading === !0), U = r(() => {
|
|
10174
10171
|
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
10175
10172
|
return t && !n ? [{
|
|
10176
10173
|
label: B.value,
|
|
@@ -10195,7 +10192,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10195
10192
|
e.matchedValue,
|
|
10196
10193
|
e.matchedField
|
|
10197
10194
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
10198
|
-
}, W = r(() => E.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : E.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : E.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ?
|
|
10195
|
+
}, W = r(() => E.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : E.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : E.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ? of(A.value) || void 0 : P.value.length || void 0), re = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), ie = (e, t = 0) => e.flatMap((e) => [
|
|
10199
10196
|
{
|
|
10200
10197
|
depth: t,
|
|
10201
10198
|
kind: "option",
|
|
@@ -10220,16 +10217,16 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10220
10217
|
se.value = O.value || c.filter.singleSelect ? [] : [...P.value];
|
|
10221
10218
|
};
|
|
10222
10219
|
de();
|
|
10223
|
-
let Y = r(() => O.value || c.filter.singleSelect ? ae.value : ae.value.filter((e) => e.kind === "child-load-more" || !q.value.has(e.option.value))), fe = r(() => Y.value.length > _.value), X = r(() => fe.value || c.filter.hasMore), Z = r(() => Y.value.slice(0, _.value)), pe = r(() => O.value ?
|
|
10220
|
+
let Y = r(() => O.value || c.filter.singleSelect ? ae.value : ae.value.filter((e) => e.kind === "child-load-more" || !q.value.has(e.option.value))), fe = r(() => Y.value.length > _.value), X = r(() => fe.value || c.filter.hasMore), Z = r(() => Y.value.slice(0, _.value)), pe = r(() => O.value ? nf({
|
|
10224
10221
|
options: T.value,
|
|
10225
10222
|
state: A.value
|
|
10226
|
-
}) : /* @__PURE__ */ new Map()), me = (e) =>
|
|
10223
|
+
}) : /* @__PURE__ */ new Map()), me = (e) => bd(e, c.filter.colDef), he = (e) => Ed(e), ge = (e) => O.value ? pe.value.get(e.value) ?? {
|
|
10227
10224
|
indeterminate: !1,
|
|
10228
10225
|
selected: !1
|
|
10229
10226
|
} : {
|
|
10230
10227
|
indeterminate: !1,
|
|
10231
10228
|
selected: I.value.has(e.value)
|
|
10232
|
-
}, ve = (e) => ge(e).selected, ye = (e) => ge(e).indeterminate, be = (e) =>
|
|
10229
|
+
}, ve = (e) => ge(e).selected, ye = (e) => ge(e).indeterminate, be = (e) => id(e) ?? e.value, xe = (e) => ad(e, c.filter.key), Se = (e) => {
|
|
10233
10230
|
let t = xe(e), n = be(e);
|
|
10234
10231
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
10235
10232
|
}, Ce = (e) => {
|
|
@@ -10264,7 +10261,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10264
10261
|
rowsLoading: c.filter.isLoading
|
|
10265
10262
|
}
|
|
10266
10263
|
})), Ae = () => {
|
|
10267
|
-
H.value || (fe.value ? _.value +=
|
|
10264
|
+
H.value || (fe.value ? _.value += jf : c.filter.hasMore && d("load-more", g.value.trim()));
|
|
10268
10265
|
}, je = (e) => {
|
|
10269
10266
|
H.value || d("load-more", g.value.trim(), e.value);
|
|
10270
10267
|
}, Me = (e) => {
|
|
@@ -10290,7 +10287,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10290
10287
|
if (O.value) {
|
|
10291
10288
|
d("filter-change", {
|
|
10292
10289
|
type: "aggregate-selection",
|
|
10293
|
-
value:
|
|
10290
|
+
value: ef({
|
|
10294
10291
|
checked: t,
|
|
10295
10292
|
option: e,
|
|
10296
10293
|
options: T.value,
|
|
@@ -10318,12 +10315,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10318
10315
|
H.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
10319
10316
|
};
|
|
10320
10317
|
G([g, () => c.filter.key], () => {
|
|
10321
|
-
_.value =
|
|
10318
|
+
_.value = jf;
|
|
10322
10319
|
});
|
|
10323
10320
|
let Ve = () => {
|
|
10324
|
-
let e =
|
|
10321
|
+
let e = od(T.value), t = { ...p.value }, n = new Map(Object.entries(t));
|
|
10325
10322
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
10326
|
-
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
10323
|
+
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Mf)));
|
|
10327
10324
|
};
|
|
10328
10325
|
G(T, () => {
|
|
10329
10326
|
c.filter.isOpen && Ve();
|
|
@@ -10353,7 +10350,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10353
10350
|
"data-testid": "pv-filter-panel-accordion",
|
|
10354
10351
|
open: e.filter.isOpen,
|
|
10355
10352
|
onToggle: Me
|
|
10356
|
-
}, [s("summary",
|
|
10353
|
+
}, [s("summary", cf, [
|
|
10357
10354
|
u(Q, {
|
|
10358
10355
|
"aria-hidden": "true",
|
|
10359
10356
|
class: "pv-text-subdued",
|
|
@@ -10366,7 +10363,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10366
10363
|
size: "sm",
|
|
10367
10364
|
variant: "secondary"
|
|
10368
10365
|
}, null, 8, ["value"])) : a("", !0),
|
|
10369
|
-
ue.value ? (k(), o("span",
|
|
10366
|
+
ue.value ? (k(), o("span", lf, [u(Be, { size: "sm" }), s("span", uf, R(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
|
|
10370
10367
|
]), s("div", {
|
|
10371
10368
|
ref_key: "filterContent",
|
|
10372
10369
|
ref: f,
|
|
@@ -10377,7 +10374,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10377
10374
|
minHeight: m.value ? `${m.value}px` : void 0
|
|
10378
10375
|
})
|
|
10379
10376
|
}, [D.value ? (k(), o(t, { key: 0 }, [
|
|
10380
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (k(), o("div",
|
|
10377
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (k(), o("div", ff, [
|
|
10381
10378
|
e.filter.filterGroupOptions?.length ? (k(), o("div", {
|
|
10382
10379
|
key: 0,
|
|
10383
10380
|
class: "pv-flex-vertical",
|
|
@@ -10387,7 +10384,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10387
10384
|
},
|
|
10388
10385
|
role: "group",
|
|
10389
10386
|
"aria-label": e.filter.filterGroupLabel
|
|
10390
|
-
}, [e.filter.filterGroupLabel ? (k(), o("p",
|
|
10387
|
+
}, [e.filter.filterGroupLabel ? (k(), o("p", mf, R(e.filter.filterGroupLabel), 1)) : a("", !0), s("div", hf, [(k(!0), o(t, null, M(e.filter.filterGroupOptions, (e) => (k(), i($, {
|
|
10391
10388
|
key: e.field,
|
|
10392
10389
|
disabled: H.value,
|
|
10393
10390
|
label: e.label,
|
|
@@ -10399,8 +10396,8 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10399
10396
|
"label",
|
|
10400
10397
|
"variant",
|
|
10401
10398
|
"onClick"
|
|
10402
|
-
]))), 128))])], 8,
|
|
10403
|
-
e.filter.displayPreferencesIcon ? (k(), o("div",
|
|
10399
|
+
]))), 128))])], 8, pf)) : a("", !0),
|
|
10400
|
+
e.filter.displayPreferencesIcon ? (k(), o("div", gf, [u($, {
|
|
10404
10401
|
ariaLabel: "Open preferences",
|
|
10405
10402
|
disabled: H.value,
|
|
10406
10403
|
leftIcon: "sliders-horizontal",
|
|
@@ -10422,7 +10419,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10422
10419
|
"disabled",
|
|
10423
10420
|
"placeholder"
|
|
10424
10421
|
])),
|
|
10425
|
-
le.value.length ? (k(), o("div",
|
|
10422
|
+
le.value.length ? (k(), o("div", _f, [(k(!0), o(t, null, M(le.value, (t) => (k(), i(Zu, {
|
|
10426
10423
|
key: t.value,
|
|
10427
10424
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
10428
10425
|
disabled: H.value || t.isSelectable === !1,
|
|
@@ -10464,10 +10461,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10464
10461
|
"onFocusValue",
|
|
10465
10462
|
"onToggleValue"
|
|
10466
10463
|
]))), 128))])) : a("", !0),
|
|
10467
|
-
e.filter.isLoading && !J.value ? (k(), o("div",
|
|
10468
|
-
!N.value && !C.value.length && !le.value.length && !X.value ? (k(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, ke.value, { "empty-reason": "no-values" }), null, 16)) : (k(), o("p",
|
|
10469
|
-
Y.value.length || X.value ? (k(), o("div",
|
|
10470
|
-
Y.value.length && !e.filter.hideOptionsSortDescription ? (k(), o("div",
|
|
10464
|
+
e.filter.isLoading && !J.value ? (k(), o("div", vf, [u(Be, { size: "sm" }), e.filter.loadingText ? (k(), o("span", yf, R(e.filter.loadingText), 1)) : a("", !0)])) : (k(), o(t, { key: 4 }, [
|
|
10465
|
+
!N.value && !C.value.length && !le.value.length && !X.value ? (k(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, ke.value, { "empty-reason": "no-values" }), null, 16)) : (k(), o("p", bf, "No values available."))], 64)) : !ae.value.length && !le.value.length && !X.value ? (k(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, ke.value, { "empty-reason": "no-matches" }), null, 16)) : (k(), o("p", xf, "No matching values."))], 64)) : a("", !0),
|
|
10466
|
+
Y.value.length || X.value ? (k(), o("div", Sf, [
|
|
10467
|
+
Y.value.length && !e.filter.hideOptionsSortDescription ? (k(), o("div", Cf, [e.filter.filterOptionsSortTooltip ? (k(), i(fr, {
|
|
10471
10468
|
key: 0,
|
|
10472
10469
|
variant: "dark",
|
|
10473
10470
|
disableInteractive: !0,
|
|
@@ -10476,11 +10473,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10476
10473
|
"use-teleport": !0,
|
|
10477
10474
|
style: { "--max-width": "200px" }
|
|
10478
10475
|
}, {
|
|
10479
|
-
trigger: K(() => [s("p",
|
|
10476
|
+
trigger: K(() => [s("p", wf, R(ee.value), 1)]),
|
|
10480
10477
|
content: K(() => [l(R(e.filter.filterOptionsSortTooltip), 1)]),
|
|
10481
10478
|
_: 1
|
|
10482
|
-
})) : (k(), o("p",
|
|
10483
|
-
(k(!0), o(t, null, M(Z.value, (n) => (k(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (k(), i(
|
|
10479
|
+
})) : (k(), o("p", Tf, R(ee.value), 1))])) : a("", !0),
|
|
10480
|
+
(k(!0), o(t, null, M(Z.value, (n) => (k(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (k(), i(Zu, {
|
|
10484
10481
|
key: 0,
|
|
10485
10482
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
10486
10483
|
depth: n.depth,
|
|
@@ -10551,7 +10548,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10551
10548
|
])) : a("", !0),
|
|
10552
10549
|
e.filter.filterFooterRenderer ? (k(), i(F(e.filter.filterFooterRenderer), x(v({ key: 3 }, ke.value)), null, 16)) : a("", !0)
|
|
10553
10550
|
], 64))
|
|
10554
|
-
], 64)) : E.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (k(), i(
|
|
10551
|
+
], 64)) : E.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (k(), i(Wu, {
|
|
10555
10552
|
key: 1,
|
|
10556
10553
|
mode: "dual",
|
|
10557
10554
|
rangeValue: e.filter.rangeValue,
|
|
@@ -10578,7 +10575,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10578
10575
|
"slider-step",
|
|
10579
10576
|
"step",
|
|
10580
10577
|
"value-decimals"
|
|
10581
|
-
])) : E.value === "range" ? (k(), o("p",
|
|
10578
|
+
])) : E.value === "range" ? (k(), o("p", Ef, " Range filters require minimum and maximum bounds. ")) : E.value === "boolean" ? (k(), o("div", Df, [s("div", Of, [(k(!0), o(t, null, M(U.value, (t) => (k(), i($, {
|
|
10582
10579
|
key: String(t.value),
|
|
10583
10580
|
disabled: H.value,
|
|
10584
10581
|
label: t.label,
|
|
@@ -10596,43 +10593,43 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10596
10593
|
label: "Clear",
|
|
10597
10594
|
variant: "ghost",
|
|
10598
10595
|
onClick: r[1] ||= (e) => Ne(null)
|
|
10599
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : E.value === "exists" ? (k(), o("label",
|
|
10596
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : E.value === "exists" ? (k(), o("label", kf, [u(_c, {
|
|
10600
10597
|
disabled: H.value,
|
|
10601
10598
|
modelValue: e.filter.existsValue ?? !1,
|
|
10602
10599
|
"onUpdate:modelValue": Pe
|
|
10603
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
10600
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", Af, R(y.value), 1)])) : a("", !0)], 12, df)], 40, sf));
|
|
10604
10601
|
}
|
|
10605
|
-
}), [["__scopeId", "data-v-d5483de6"]]),
|
|
10602
|
+
}), [["__scopeId", "data-v-d5483de6"]]), Pf = {
|
|
10606
10603
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
10607
10604
|
"data-testid": "pv-filter-panel-applied-section",
|
|
10608
10605
|
style: {
|
|
10609
10606
|
"--flex-align": "stretch",
|
|
10610
10607
|
"--flex-gap": "1rem"
|
|
10611
10608
|
}
|
|
10612
|
-
},
|
|
10609
|
+
}, Ff = {
|
|
10613
10610
|
key: 0,
|
|
10614
10611
|
class: "pv-flex-vertical",
|
|
10615
10612
|
style: {
|
|
10616
10613
|
"--flex-align": "stretch",
|
|
10617
10614
|
"--flex-gap": "1rem"
|
|
10618
10615
|
}
|
|
10619
|
-
},
|
|
10616
|
+
}, If = { class: "pv-text-title-md" }, Lf = {
|
|
10620
10617
|
class: "pv-flex",
|
|
10621
10618
|
style: {
|
|
10622
10619
|
"--flex-gap": "0.375rem",
|
|
10623
10620
|
"--flex-wrap": "wrap"
|
|
10624
10621
|
}
|
|
10625
|
-
},
|
|
10622
|
+
}, Rf = { class: "pv-text-title-md" }, zf = {
|
|
10626
10623
|
class: "pv-flex",
|
|
10627
10624
|
style: {
|
|
10628
10625
|
"--flex-gap": "0.375rem",
|
|
10629
10626
|
"--flex-wrap": "wrap"
|
|
10630
10627
|
}
|
|
10631
|
-
},
|
|
10628
|
+
}, Bf = {
|
|
10632
10629
|
key: 1,
|
|
10633
10630
|
class: "pv-text-body-sm pv-text-subdued",
|
|
10634
10631
|
style: { margin: "0" }
|
|
10635
|
-
},
|
|
10632
|
+
}, Vf = /* @__PURE__ */ d({
|
|
10636
10633
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
10637
10634
|
props: {
|
|
10638
10635
|
appliedCount: { default: 0 },
|
|
@@ -10648,7 +10645,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10648
10645
|
let a = e, c = n, l = r(() => a.externalFilters.filter((e) => e.values.length > 0)), u = r(() => a.appliedCount > 0 || l.value.length > 0), d = (e) => !a.readOnly && e.removable !== !1, f = (e, t) => {
|
|
10649
10646
|
c("remove-filter", t.field ?? e, t.value, t.type);
|
|
10650
10647
|
};
|
|
10651
|
-
return (n, r) => (k(), o("section",
|
|
10648
|
+
return (n, r) => (k(), o("section", Pf, [u.value ? (k(), o("div", Ff, [(k(!0), o(t, null, M(l.value, (e) => (k(), o("div", {
|
|
10652
10649
|
key: `external-${e.key}`,
|
|
10653
10650
|
class: "pv-flex-vertical pv-border-bottom",
|
|
10654
10651
|
"data-testid": "pv-filter-panel-external-filter-group",
|
|
@@ -10657,7 +10654,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10657
10654
|
"--flex-gap": "12px",
|
|
10658
10655
|
"padding-bottom": "12px"
|
|
10659
10656
|
}
|
|
10660
|
-
}, [s("span",
|
|
10657
|
+
}, [s("span", If, R(e.label), 1), s("div", Lf, [(k(!0), o(t, null, M(e.values, (t) => (k(), i(Xr, {
|
|
10661
10658
|
key: `${e.key}-${t.value}`,
|
|
10662
10659
|
label: t.label,
|
|
10663
10660
|
showClear: d(e),
|
|
@@ -10674,7 +10671,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10674
10671
|
"--flex-gap": "12px",
|
|
10675
10672
|
"padding-bottom": "12px"
|
|
10676
10673
|
}
|
|
10677
|
-
}, [s("span",
|
|
10674
|
+
}, [s("span", Rf, R(n.label), 1), s("div", zf, [(k(!0), o(t, null, M(n.values, (t) => (k(), i(Xr, {
|
|
10678
10675
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
10679
10676
|
label: t.label,
|
|
10680
10677
|
showClear: !e.readOnly,
|
|
@@ -10683,9 +10680,9 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10683
10680
|
"label",
|
|
10684
10681
|
"showClear",
|
|
10685
10682
|
"onHandleClose"
|
|
10686
|
-
]))), 128))])]))), 128))])) : (k(), o("p",
|
|
10683
|
+
]))), 128))])]))), 128))])) : (k(), o("p", Bf, "No filters applied yet."))]));
|
|
10687
10684
|
}
|
|
10688
|
-
}),
|
|
10685
|
+
}), Hf = { class: "pv-horizontal-scroller" }, Uf = ["aria-label"], Wf = 1, Gf = /* @__PURE__ */ d({
|
|
10689
10686
|
__name: "PvHorizontalScroller",
|
|
10690
10687
|
props: {
|
|
10691
10688
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -10709,7 +10706,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10709
10706
|
let e = u.value;
|
|
10710
10707
|
if (!e) return;
|
|
10711
10708
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
10712
|
-
n.value = e.scrollLeft >
|
|
10709
|
+
n.value = e.scrollLeft > Wf, c.value = e.scrollLeft < t - Wf;
|
|
10713
10710
|
}, h = () => {
|
|
10714
10711
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
10715
10712
|
}, g = () => {
|
|
@@ -10729,7 +10726,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10729
10726
|
h(), g();
|
|
10730
10727
|
}), C(() => {
|
|
10731
10728
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
10732
|
-
}), (t, r) => (k(), o("div",
|
|
10729
|
+
}), (t, r) => (k(), o("div", Hf, [
|
|
10733
10730
|
s("div", {
|
|
10734
10731
|
ref_key: "scrollContainer",
|
|
10735
10732
|
ref: u,
|
|
@@ -10740,7 +10737,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10740
10737
|
ref_key: "contentContainer",
|
|
10741
10738
|
ref: l,
|
|
10742
10739
|
class: "pv-horizontal-scroller-content"
|
|
10743
|
-
}, [N(t.$slots, "default")], 512)], 10,
|
|
10740
|
+
}, [N(t.$slots, "default")], 512)], 10, Uf),
|
|
10744
10741
|
s("div", { class: b(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
10745
10742
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
10746
10743
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -10773,18 +10770,18 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10773
10770
|
])) : a("", !0)], 2)
|
|
10774
10771
|
]));
|
|
10775
10772
|
}
|
|
10776
|
-
}),
|
|
10773
|
+
}), Kf = {
|
|
10777
10774
|
key: 0,
|
|
10778
10775
|
class: "pv-border-bottom",
|
|
10779
10776
|
"data-testid": "pv-filter-panel-category-row"
|
|
10780
|
-
},
|
|
10777
|
+
}, qf = {
|
|
10781
10778
|
class: "pv-flex",
|
|
10782
10779
|
style: {
|
|
10783
10780
|
"--flex-align": "center",
|
|
10784
10781
|
"--flex-gap": "8px",
|
|
10785
10782
|
padding: "8px 12px"
|
|
10786
10783
|
}
|
|
10787
|
-
},
|
|
10784
|
+
}, Jf = /* @__PURE__ */ d({
|
|
10788
10785
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
10789
10786
|
props: /* @__PURE__ */ _({
|
|
10790
10787
|
allCategoriesLabel: { default: "All" },
|
|
@@ -10806,7 +10803,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10806
10803
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
10807
10804
|
return G(l, (e) => {
|
|
10808
10805
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
10809
|
-
}, { immediate: !0 }), (n, r) => l.value.length ? (k(), o("div",
|
|
10806
|
+
}, { immediate: !0 }), (n, r) => l.value.length ? (k(), o("div", Kf, [u(Gf, {
|
|
10810
10807
|
ariaLabel: "Filter categories",
|
|
10811
10808
|
buttonSize: "lg",
|
|
10812
10809
|
buttonVariant: "ghost",
|
|
@@ -10815,7 +10812,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10815
10812
|
rightAriaLabel: "Scroll filter categories right",
|
|
10816
10813
|
showFades: ""
|
|
10817
10814
|
}, {
|
|
10818
|
-
default: K(() => [s("div",
|
|
10815
|
+
default: K(() => [s("div", qf, [u($, {
|
|
10819
10816
|
label: e.allCategoriesLabel,
|
|
10820
10817
|
variant: f(null),
|
|
10821
10818
|
onClick: r[0] ||= (e) => d(null)
|
|
@@ -10832,17 +10829,17 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10832
10829
|
_: 1
|
|
10833
10830
|
})])) : a("", !0);
|
|
10834
10831
|
}
|
|
10835
|
-
}),
|
|
10832
|
+
}), Yf = (e, t, n) => {
|
|
10836
10833
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
10837
10834
|
if (r.length <= 1) return "Search";
|
|
10838
10835
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
10839
10836
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
10840
|
-
},
|
|
10841
|
-
if (!r ||
|
|
10837
|
+
}, Xf = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), Zf = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
10838
|
+
if (!r || Xf(i) === Xf(r)) return e;
|
|
10842
10839
|
if (!a || !n) return r;
|
|
10843
10840
|
let o = t(n);
|
|
10844
10841
|
return o ? `${o}: ${r}` : r;
|
|
10845
|
-
},
|
|
10842
|
+
}, Qf = () => ({
|
|
10846
10843
|
booleanValue: null,
|
|
10847
10844
|
existsValue: !1,
|
|
10848
10845
|
rangeValue: {
|
|
@@ -10850,15 +10847,15 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10850
10847
|
min: null
|
|
10851
10848
|
},
|
|
10852
10849
|
values: []
|
|
10853
|
-
}),
|
|
10854
|
-
conditions: e.conditions.map(
|
|
10850
|
+
}), $f = (e) => typeof e == "object" && !!e && !Array.isArray(e), ep = (e) => $f(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", tp = (e) => $f(e) && e.filterType === "join" && Array.isArray(e.conditions), np = (e) => e, rp = (e) => tp(e) ? {
|
|
10851
|
+
conditions: e.conditions.map(rp),
|
|
10855
10852
|
filterType: "join",
|
|
10856
10853
|
type: e.type
|
|
10857
|
-
} : { ...e },
|
|
10858
|
-
if (
|
|
10859
|
-
if (
|
|
10854
|
+
} : { ...e }, ip = (e) => {
|
|
10855
|
+
if (!$f(e)) return null;
|
|
10856
|
+
if (tp(e)) {
|
|
10860
10857
|
let t = e.conditions.flatMap((e) => {
|
|
10861
|
-
let t =
|
|
10858
|
+
let t = ip(e);
|
|
10862
10859
|
return t ? [t] : [];
|
|
10863
10860
|
});
|
|
10864
10861
|
return t.length ? {
|
|
@@ -10867,43 +10864,43 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10867
10864
|
type: e.type === "OR" ? "OR" : "AND"
|
|
10868
10865
|
} : null;
|
|
10869
10866
|
}
|
|
10870
|
-
return
|
|
10871
|
-
},
|
|
10867
|
+
return ep(e) ? { ...e } : null;
|
|
10868
|
+
}, ap = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, op = (e) => $f(e) && !tp(e) && !ep(e), sp = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), cp = {
|
|
10872
10869
|
number: "agNumberColumnFilter",
|
|
10873
10870
|
set: "agSetColumnFilter",
|
|
10874
10871
|
text: "agTextColumnFilter"
|
|
10875
|
-
},
|
|
10872
|
+
}, lp = (e) => {
|
|
10876
10873
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
10877
10874
|
let t = e.filterParams;
|
|
10878
10875
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
10879
|
-
}, lp = (e, t) => {
|
|
10880
|
-
let n = cp(e), r = t.filterType ? sp[t.filterType] : void 0;
|
|
10881
|
-
return r ? n.findIndex((e) => Qf(e) && e.filter === r) : -1;
|
|
10882
10876
|
}, up = (e, t) => {
|
|
10883
|
-
let n =
|
|
10877
|
+
let n = lp(e), r = t.filterType ? cp[t.filterType] : void 0;
|
|
10878
|
+
return r ? n.findIndex((e) => $f(e) && e.filter === r) : -1;
|
|
10879
|
+
}, dp = (e, t) => {
|
|
10880
|
+
let n = lp(e);
|
|
10884
10881
|
if (!n.length) return null;
|
|
10885
|
-
let r = Array(n.length).fill(null), i =
|
|
10882
|
+
let r = Array(n.length).fill(null), i = up(e, t);
|
|
10886
10883
|
return i < 0 ? null : (r[i] = t, {
|
|
10887
10884
|
filterModels: r,
|
|
10888
10885
|
filterType: "multi"
|
|
10889
10886
|
});
|
|
10890
|
-
},
|
|
10891
|
-
if (!
|
|
10887
|
+
}, fp = (e, t) => {
|
|
10888
|
+
if (!op(e)) return null;
|
|
10892
10889
|
let n = e[t];
|
|
10893
|
-
return
|
|
10894
|
-
},
|
|
10890
|
+
return $f(n) ? n : null;
|
|
10891
|
+
}, pp = (e) => e ? sp(e) ? e.filterModels.filter((e) => $f(e)) : [e] : [], mp = (e) => op(e) ? { ...e } : {}, hp = (e) => sp(e) ? {
|
|
10895
10892
|
...e,
|
|
10896
10893
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
10897
|
-
} : { ...e },
|
|
10898
|
-
let n =
|
|
10894
|
+
} : { ...e }, gp = (e, t) => {
|
|
10895
|
+
let n = mp(e);
|
|
10899
10896
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
10900
|
-
},
|
|
10897
|
+
}, _p = /* @__PURE__ */ new Set(), vp = (e, t) => {
|
|
10901
10898
|
let n = `${e}:${t ?? "unknown"}`;
|
|
10902
|
-
|
|
10903
|
-
},
|
|
10904
|
-
let a =
|
|
10905
|
-
if (
|
|
10906
|
-
let o =
|
|
10899
|
+
_p.has(n) || (console.warn(`PvFilterPanel: overwriting an occupied regular multi-filter slot for "${e}" because the target slot was occupied or no empty slot was available.`), _p.add(n));
|
|
10900
|
+
}, yp = (e, t, n, r, i) => {
|
|
10901
|
+
let a = fp(e, t);
|
|
10902
|
+
if (sp(a) && r) {
|
|
10903
|
+
let o = mp(e), s = hp(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
10907
10904
|
if (!n) {
|
|
10908
10905
|
for (let e of l) c[e] = null;
|
|
10909
10906
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -10916,15 +10913,15 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10916
10913
|
c[e] = n;
|
|
10917
10914
|
for (let e of t) c[e] = null;
|
|
10918
10915
|
} else {
|
|
10919
|
-
let e =
|
|
10916
|
+
let e = up(i, n), r = c.findIndex((e) => !e), a = lp(i).length > 0;
|
|
10920
10917
|
if (e >= 0) {
|
|
10921
10918
|
for (; c.length <= e;) c.push(null);
|
|
10922
|
-
c[e] &&
|
|
10919
|
+
c[e] && vp(t, n.filterType), c[e] = n;
|
|
10923
10920
|
} else if (r >= 0) c[r] = n;
|
|
10924
10921
|
else if (!a) c.push(n);
|
|
10925
10922
|
else {
|
|
10926
10923
|
let e = Math.max(0, c.length - 1);
|
|
10927
|
-
|
|
10924
|
+
vp(t, n.filterType), c[e] = n;
|
|
10928
10925
|
}
|
|
10929
10926
|
}
|
|
10930
10927
|
return o[t] = {
|
|
@@ -10932,54 +10929,54 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10932
10929
|
filterModels: c
|
|
10933
10930
|
}, o;
|
|
10934
10931
|
}
|
|
10935
|
-
if (!n) return
|
|
10936
|
-
let o =
|
|
10937
|
-
return o[t] =
|
|
10938
|
-
},
|
|
10932
|
+
if (!n) return gp(e, t);
|
|
10933
|
+
let o = mp(e);
|
|
10934
|
+
return o[t] = dp(i, n) ?? n, o;
|
|
10935
|
+
}, bp = (e, t) => {
|
|
10939
10936
|
if (e) {
|
|
10940
|
-
if (
|
|
10941
|
-
e.conditions.forEach((e) =>
|
|
10937
|
+
if (tp(e)) {
|
|
10938
|
+
e.conditions.forEach((e) => bp(e, t));
|
|
10942
10939
|
return;
|
|
10943
10940
|
}
|
|
10944
10941
|
t(e);
|
|
10945
10942
|
}
|
|
10946
|
-
},
|
|
10947
|
-
if (!
|
|
10943
|
+
}, xp = (e, t) => tp(e) ? e.conditions.length > 0 && e.conditions.every((e) => xp(e, t)) : e.colId === t, Sp = (e) => {
|
|
10944
|
+
if (!tp(e)) return e.colId;
|
|
10948
10945
|
let t = /* @__PURE__ */ new Set();
|
|
10949
|
-
return
|
|
10950
|
-
},
|
|
10951
|
-
if (!e ||
|
|
10952
|
-
if (!
|
|
10953
|
-
let n = e.conditions.flatMap((e) =>
|
|
10946
|
+
return bp(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
10947
|
+
}, Cp = (e, t) => {
|
|
10948
|
+
if (!e || xp(e, t)) return null;
|
|
10949
|
+
if (!tp(e) || e.type !== "AND") return rp(e);
|
|
10950
|
+
let n = e.conditions.flatMap((e) => xp(e, t) ? [] : [rp(e)]);
|
|
10954
10951
|
return n.length ? n.length === 1 ? n[0] : {
|
|
10955
10952
|
conditions: n,
|
|
10956
10953
|
filterType: e.filterType,
|
|
10957
10954
|
type: e.type
|
|
10958
10955
|
} : null;
|
|
10959
|
-
},
|
|
10960
|
-
let r =
|
|
10961
|
-
return n ? r ?
|
|
10956
|
+
}, wp = (e, t, n) => {
|
|
10957
|
+
let r = Cp(ip(e), t);
|
|
10958
|
+
return n ? r ? tp(r) && r.type === "AND" ? np({
|
|
10962
10959
|
...r,
|
|
10963
10960
|
conditions: [...r.conditions, n]
|
|
10964
|
-
}) :
|
|
10961
|
+
}) : np({
|
|
10965
10962
|
conditions: [r, n],
|
|
10966
10963
|
filterType: "join",
|
|
10967
10964
|
type: "AND"
|
|
10968
|
-
}) :
|
|
10969
|
-
},
|
|
10965
|
+
}) : np(n) : np(r);
|
|
10966
|
+
}, Tp = (e, t) => {
|
|
10970
10967
|
e.includes(t) || e.push(t);
|
|
10971
|
-
},
|
|
10968
|
+
}, Ep = (e) => {
|
|
10972
10969
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
10973
10970
|
let t = String(e.filter);
|
|
10974
10971
|
return t === "true" || t === "false";
|
|
10975
|
-
},
|
|
10972
|
+
}, Dp = (e) => e.filterType === "boolean" || Ep(e), Op = (e, t) => {
|
|
10976
10973
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
10977
|
-
e.values.forEach((e) =>
|
|
10974
|
+
e.values.forEach((e) => Tp(t.values, String(e)));
|
|
10978
10975
|
return;
|
|
10979
10976
|
}
|
|
10980
10977
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
10981
10978
|
let n = String(e.filter);
|
|
10982
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
10979
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Tp(t.values, n);
|
|
10983
10980
|
return;
|
|
10984
10981
|
}
|
|
10985
10982
|
if (e.filterType === "boolean") {
|
|
@@ -11003,7 +11000,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11003
11000
|
...t.rangeValue,
|
|
11004
11001
|
max: e.filter
|
|
11005
11002
|
}));
|
|
11006
|
-
},
|
|
11003
|
+
}, kp = (e, t) => {
|
|
11007
11004
|
if (e.type === "notBlank") {
|
|
11008
11005
|
t.existsValue = !0;
|
|
11009
11006
|
return;
|
|
@@ -11013,12 +11010,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11013
11010
|
return;
|
|
11014
11011
|
}
|
|
11015
11012
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
11016
|
-
e.values.forEach((e) =>
|
|
11013
|
+
e.values.forEach((e) => Tp(t.values, String(e)));
|
|
11017
11014
|
return;
|
|
11018
11015
|
}
|
|
11019
11016
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
11020
11017
|
let n = String(e.filter);
|
|
11021
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
11018
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Tp(t.values, n);
|
|
11022
11019
|
return;
|
|
11023
11020
|
}
|
|
11024
11021
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -11031,29 +11028,29 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11031
11028
|
...t.rangeValue,
|
|
11032
11029
|
max: e.filter
|
|
11033
11030
|
}));
|
|
11034
|
-
},
|
|
11031
|
+
}, Ap = (e, t = "advanced") => {
|
|
11035
11032
|
let n = /* @__PURE__ */ new Map();
|
|
11036
11033
|
if (t === "regular") {
|
|
11037
|
-
if (!
|
|
11034
|
+
if (!op(e)) return n;
|
|
11038
11035
|
for (let [t, r] of Object.entries(e)) {
|
|
11039
|
-
let e =
|
|
11040
|
-
|
|
11036
|
+
let e = Qf();
|
|
11037
|
+
pp(r).forEach((t) => Op(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
11041
11038
|
}
|
|
11042
11039
|
return n;
|
|
11043
11040
|
}
|
|
11044
|
-
let r =
|
|
11041
|
+
let r = ip(e);
|
|
11045
11042
|
if (!r) return n;
|
|
11046
|
-
let i =
|
|
11043
|
+
let i = tp(r) && r.type === "AND" ? r.conditions : [r];
|
|
11047
11044
|
for (let e of i) {
|
|
11048
|
-
let t =
|
|
11045
|
+
let t = Sp(e);
|
|
11049
11046
|
if (!t) continue;
|
|
11050
|
-
let r = n.get(t) ??
|
|
11051
|
-
|
|
11052
|
-
e.colId === t &&
|
|
11047
|
+
let r = n.get(t) ?? Qf();
|
|
11048
|
+
bp(e, (e) => {
|
|
11049
|
+
e.colId === t && kp(e, r);
|
|
11053
11050
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
11054
11051
|
}
|
|
11055
11052
|
return n;
|
|
11056
|
-
},
|
|
11053
|
+
}, jp = (e, t = "advanced") => t === "regular" ? op(e) && Object.keys(e).length > 0 : ip(e) !== null, Mp = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", Np = (e, t, n = "advanced") => n === "regular" ? gp(e, t) : np(Cp(ip(e), t)), Pp = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? yp(e, t, null, Dp, a) : Np(e, t, r) : r === "regular" ? yp(e, t, i === "text" ? {
|
|
11057
11054
|
filter: String(n),
|
|
11058
11055
|
filterType: "text",
|
|
11059
11056
|
type: "equals"
|
|
@@ -11061,30 +11058,30 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11061
11058
|
filter: n,
|
|
11062
11059
|
filterType: "boolean",
|
|
11063
11060
|
type: n ? "true" : "false"
|
|
11064
|
-
},
|
|
11061
|
+
}, Dp, a) : i === "text" ? wp(e, t, {
|
|
11065
11062
|
colId: t,
|
|
11066
11063
|
filter: String(n),
|
|
11067
11064
|
filterType: "text",
|
|
11068
11065
|
type: "equals"
|
|
11069
|
-
}) :
|
|
11066
|
+
}) : wp(e, t, {
|
|
11070
11067
|
colId: t,
|
|
11071
11068
|
filterType: "boolean",
|
|
11072
11069
|
type: n ? "true" : "false"
|
|
11073
|
-
}),
|
|
11070
|
+
}), Fp = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? yp(e, t, {
|
|
11074
11071
|
filterType: r,
|
|
11075
11072
|
type: "notBlank"
|
|
11076
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
11073
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : wp(e, t, {
|
|
11077
11074
|
colId: t,
|
|
11078
11075
|
filterType: r,
|
|
11079
11076
|
type: "notBlank"
|
|
11080
|
-
}) : i === "regular" ?
|
|
11081
|
-
let o =
|
|
11082
|
-
if (i === "regular") return o === null && s === null ?
|
|
11077
|
+
}) : i === "regular" ? yp(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : Np(e, t, i), Ip = (e, t, n, r, i = "advanced", a) => {
|
|
11078
|
+
let o = ap(n), s = ap(r);
|
|
11079
|
+
if (i === "regular") return o === null && s === null ? yp(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? yp(e, t, {
|
|
11083
11080
|
filter: o,
|
|
11084
11081
|
filterTo: s,
|
|
11085
11082
|
filterType: "number",
|
|
11086
11083
|
type: "inRange"
|
|
11087
|
-
}, (e) => e.filterType === "number", a) :
|
|
11084
|
+
}, (e) => e.filterType === "number", a) : yp(e, t, {
|
|
11088
11085
|
filter: o ?? s,
|
|
11089
11086
|
filterType: "number",
|
|
11090
11087
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -11100,29 +11097,29 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11100
11097
|
filter: s,
|
|
11101
11098
|
filterType: "number",
|
|
11102
11099
|
type: "lessThanOrEqual"
|
|
11103
|
-
}), c.length ?
|
|
11100
|
+
}), c.length ? wp(e, t, c.length === 1 ? c[0] : {
|
|
11104
11101
|
conditions: c,
|
|
11105
11102
|
filterType: "join",
|
|
11106
11103
|
type: "AND"
|
|
11107
|
-
}) :
|
|
11108
|
-
},
|
|
11104
|
+
}) : Np(e, t);
|
|
11105
|
+
}, Lp = (e, t, n, r = "advanced", i) => {
|
|
11109
11106
|
let a = Array.from(new Set(n));
|
|
11110
|
-
if (r === "regular") return a.length ?
|
|
11107
|
+
if (r === "regular") return a.length ? yp(e, t, {
|
|
11111
11108
|
filterType: "set",
|
|
11112
11109
|
values: a
|
|
11113
|
-
}, (e) => e.filterType === "set", i) :
|
|
11110
|
+
}, (e) => e.filterType === "set", i) : yp(e, t, null, (e) => e.filterType === "set", i);
|
|
11114
11111
|
let o = a.map((e) => ({
|
|
11115
11112
|
colId: t,
|
|
11116
11113
|
filter: e,
|
|
11117
11114
|
filterType: "text",
|
|
11118
11115
|
type: "equals"
|
|
11119
11116
|
}));
|
|
11120
|
-
return o.length ?
|
|
11117
|
+
return o.length ? wp(e, t, o.length === 1 ? o[0] : {
|
|
11121
11118
|
conditions: o,
|
|
11122
11119
|
filterType: "join",
|
|
11123
11120
|
type: "OR"
|
|
11124
|
-
}) :
|
|
11125
|
-
},
|
|
11121
|
+
}) : Np(e, t);
|
|
11122
|
+
}, Rp = Symbol("PvFilterStore"), zp = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Bp = (e, t) => t ?? e, Vp = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), Hp = (e) => {
|
|
11126
11123
|
let t = /* @__PURE__ */ new Map();
|
|
11127
11124
|
for (let n of e) {
|
|
11128
11125
|
if (!n) continue;
|
|
@@ -11134,34 +11131,34 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11134
11131
|
t.set(n.value, {
|
|
11135
11132
|
...e,
|
|
11136
11133
|
...n,
|
|
11137
|
-
children:
|
|
11138
|
-
totalChildCount:
|
|
11134
|
+
children: Hp([...e.children ?? [], ...n.children ?? []]),
|
|
11135
|
+
totalChildCount: Bp(e.totalChildCount, n.totalChildCount)
|
|
11139
11136
|
});
|
|
11140
11137
|
}
|
|
11141
11138
|
return [...t.values()];
|
|
11142
|
-
},
|
|
11139
|
+
}, Up = (e, t) => {
|
|
11143
11140
|
for (let n of e ?? []) {
|
|
11144
11141
|
if (!n) continue;
|
|
11145
11142
|
if (n.value === t) return n;
|
|
11146
|
-
let e =
|
|
11143
|
+
let e = Up(n.children, t);
|
|
11147
11144
|
if (e) return e;
|
|
11148
11145
|
}
|
|
11149
|
-
},
|
|
11146
|
+
}, Wp = (e, t, n) => {
|
|
11150
11147
|
if (!e || t === null) return !1;
|
|
11151
11148
|
if (e.value === t) return !0;
|
|
11152
|
-
let r =
|
|
11153
|
-
return r !== null && r === t ||
|
|
11154
|
-
},
|
|
11155
|
-
let r =
|
|
11149
|
+
let r = id(e);
|
|
11150
|
+
return r !== null && r === t || sd(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => Wp(e, t, n)) ?? !1;
|
|
11151
|
+
}, Gp = (e, t, n) => {
|
|
11152
|
+
let r = Up(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
11156
11153
|
return e.map((e) => e && (e.value === t ? {
|
|
11157
11154
|
...e,
|
|
11158
|
-
children:
|
|
11159
|
-
totalChildCount:
|
|
11155
|
+
children: Hp([...e.children ?? [], ...i]),
|
|
11156
|
+
totalChildCount: Bp(e.totalChildCount, r?.totalChildCount)
|
|
11160
11157
|
} : e.children?.length ? {
|
|
11161
11158
|
...e,
|
|
11162
|
-
children:
|
|
11159
|
+
children: Gp(e.children, t, n).filter((e) => !!e)
|
|
11163
11160
|
} : e));
|
|
11164
|
-
},
|
|
11161
|
+
}, Kp = (e, t) => `${e}::${t}`, qp = () => {
|
|
11165
11162
|
let e = j(null), t = j(null), n = j(), r = j({}), i = j({}), a = j({}), o = j({}), s = j({}), c = j({}), l = j({}), u = j({}), d = j({}), f = j({}), p = j({}), m = j({}), h = j({}), g = j({}), _ = j({}), v = j(), y = j({}), b = (e) => {
|
|
11166
11163
|
v.value = e;
|
|
11167
11164
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -11170,11 +11167,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11170
11167
|
let r = n ? o : i;
|
|
11171
11168
|
r.value[e] = t;
|
|
11172
11169
|
}, T = () => {
|
|
11173
|
-
o.value =
|
|
11170
|
+
o.value = Vp(i.value), s.value = Vp(a.value);
|
|
11174
11171
|
}, E = () => {
|
|
11175
11172
|
o.value = {}, s.value = {};
|
|
11176
11173
|
}, D = () => {
|
|
11177
|
-
i.value =
|
|
11174
|
+
i.value = Vp(o.value), a.value = Vp(s.value), E();
|
|
11178
11175
|
}, O = (e, t) => {
|
|
11179
11176
|
c.value[e] = t;
|
|
11180
11177
|
}, k = (e, t) => {
|
|
@@ -11198,7 +11195,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11198
11195
|
if (!o) return [];
|
|
11199
11196
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
11200
11197
|
c.value[n.field] = s;
|
|
11201
|
-
let u = n.parentId ?
|
|
11198
|
+
let u = n.parentId ? Up(r.value[n.field], n.parentId) : void 0, d = n.offset ?? (n.parentId ? u?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), y = n.reason === "load-more" || n.reason === "child-load-more", b = M(n.field, y), x = n.parentId ? Kp(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
11202
11199
|
g.value[x] = S;
|
|
11203
11200
|
try {
|
|
11204
11201
|
let c = await o({
|
|
@@ -11210,17 +11207,17 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11210
11207
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
11211
11208
|
});
|
|
11212
11209
|
if (g.value[x] !== S) return [];
|
|
11213
|
-
let u =
|
|
11210
|
+
let u = zp(c);
|
|
11214
11211
|
if (n.parentId) {
|
|
11215
|
-
let e =
|
|
11212
|
+
let e = Kp(n.field, n.parentId);
|
|
11216
11213
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
11217
11214
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
11218
11215
|
let v = a.value[n.field] ?? [], b;
|
|
11219
|
-
b = n.parentId ?
|
|
11216
|
+
b = n.parentId ? Gp(r.value[n.field] ?? [], n.parentId, u.values) : y ? Hp([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
11220
11217
|
for (let e of v) {
|
|
11221
11218
|
if (!e) continue;
|
|
11222
|
-
let t =
|
|
11223
|
-
b.some((e) =>
|
|
11219
|
+
let t = id(e) ?? e.value;
|
|
11220
|
+
b.some((e) => Wp(e, t, n.field)) || b.push(e);
|
|
11224
11221
|
}
|
|
11225
11222
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
11226
11223
|
} finally {
|
|
@@ -11255,20 +11252,20 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11255
11252
|
stagedFilterSelectedMetadataMap: s,
|
|
11256
11253
|
stagedFilterSelectedValueMap: o
|
|
11257
11254
|
};
|
|
11258
|
-
},
|
|
11259
|
-
A(
|
|
11260
|
-
},
|
|
11255
|
+
}, Jp = (e) => {
|
|
11256
|
+
A(Rp, e);
|
|
11257
|
+
}, Yp = () => h(Rp, null), Xp = () => Yp() ?? qp(), Zp = "__range__", Qp = "__boolean__", $p = "__exists__", em = new Set([
|
|
11261
11258
|
"value",
|
|
11262
11259
|
"range",
|
|
11263
11260
|
"boolean",
|
|
11264
11261
|
"exists"
|
|
11265
11262
|
]);
|
|
11266
|
-
function
|
|
11263
|
+
function tm(e, t, n) {
|
|
11267
11264
|
f();
|
|
11268
|
-
let i = j(t.value), a =
|
|
11265
|
+
let i = j(t.value), a = qp(), o = Yp(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), l = I(/* @__PURE__ */ new Map()), u = r(() => !!(e.filterStore ?? o)), d = r(() => !u.value && !!e.filterOptionsHandler), p = r(() => e.filterStore ?? o ?? a), m = r(() => p.value === a), h = r(() => u.value || d.value), g = r(() => e.filterModelType ?? p.value?.filterModelType.value), _ = r(() => g.value ?? "advanced"), v = r(() => {
|
|
11269
11266
|
let n = p.value;
|
|
11270
11267
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
11271
|
-
}), y = r(() =>
|
|
11268
|
+
}), y = r(() => Ap(v.value, _.value)), b = (e, t) => {
|
|
11272
11269
|
let n = e.applyFilterModel;
|
|
11273
11270
|
if (typeof n == "function") {
|
|
11274
11271
|
n(t);
|
|
@@ -11359,7 +11356,7 @@ function em(e, t, n) {
|
|
|
11359
11356
|
});
|
|
11360
11357
|
let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", k = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, A = (e) => {
|
|
11361
11358
|
let t = D(e), n = t.filterPanelType;
|
|
11362
|
-
if (n &&
|
|
11359
|
+
if (n && em.has(n)) return n;
|
|
11363
11360
|
if (t.filterPanelRange) return "range";
|
|
11364
11361
|
if (t.dataType === "boolean") return "boolean";
|
|
11365
11362
|
if (e.filter) return "value";
|
|
@@ -11399,30 +11396,30 @@ function em(e, t, n) {
|
|
|
11399
11396
|
...r,
|
|
11400
11397
|
...i
|
|
11401
11398
|
].filter(Boolean)));
|
|
11402
|
-
}, re = (e) => _.value === "advanced" &&
|
|
11399
|
+
}, re = (e) => _.value === "advanced" && Pd(e), ie = (e, t) => re(e) ? Wd({
|
|
11403
11400
|
colDef: e,
|
|
11404
11401
|
model: v.value,
|
|
11405
11402
|
options: t
|
|
11406
11403
|
}) : new Map(W(e).map((e) => [e, y.value.get(e)?.values ?? []])), ae = (e, t, n, r) => {
|
|
11407
11404
|
let i = /* @__PURE__ */ new Set();
|
|
11408
|
-
for (let t of
|
|
11405
|
+
for (let t of od(r)) for (let [r, a] of n) for (let n of a) sd(t, r, n, e) && i.add(`${r}:${n}`);
|
|
11409
11406
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
11410
11407
|
colField: t === e ? void 0 : t,
|
|
11411
11408
|
label: n,
|
|
11412
11409
|
metadata: { rawValue: n },
|
|
11413
|
-
value: t === e ? n :
|
|
11410
|
+
value: t === e ? n : rd(t, n)
|
|
11414
11411
|
}]));
|
|
11415
11412
|
}, oe = (e, t, n) => {
|
|
11416
11413
|
let r = /* @__PURE__ */ new Set();
|
|
11417
|
-
for (let i of
|
|
11418
|
-
let n =
|
|
11414
|
+
for (let i of od(n)) {
|
|
11415
|
+
let n = ad(i, e), a = id(i);
|
|
11419
11416
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
11420
11417
|
}
|
|
11421
11418
|
return Array.from(r);
|
|
11422
11419
|
}, se = (t) => Object.fromEntries(W(t).map((t) => [t, e.focusedValues[t] ?? []])), K = (t) => e.colDefs.find((e) => O(e) === t || e.field === t || e.colId === t), q = (e) => K(e)?.headerName ?? e, le = (e) => {
|
|
11423
11420
|
let t = D(e);
|
|
11424
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
11425
|
-
}, J = (e, t) =>
|
|
11421
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Yf(O(e), t.queryColIds, q);
|
|
11422
|
+
}, J = (e, t) => Zf({
|
|
11426
11423
|
fallbackSubText: e.subText,
|
|
11427
11424
|
getDisplayName: q,
|
|
11428
11425
|
matchedField: e.matchedField,
|
|
@@ -11440,7 +11437,7 @@ function em(e, t, n) {
|
|
|
11440
11437
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
11441
11438
|
label: K(e)?.headerName ?? e
|
|
11442
11439
|
}));
|
|
11443
|
-
}, Y = (e) => X.value.find((t) => t.key === e) ?? X.value.find((t) => W(t.colDef).includes(e)), fe = (e, t, n) =>
|
|
11440
|
+
}, Y = (e) => X.value.find((t) => t.key === e) ?? X.value.find((t) => W(t.colDef).includes(e)), fe = (e, t, n) => od(Y(e)?.knownOptions ?? []).find((r) => r.value === n || sd(r, t, n, e)), X = r(() => e.colDefs.filter(F).map((t) => {
|
|
11444
11441
|
let n = O(t), r = D(t), i = M(t), a = ue(L(n), t), o = ue(te(n), t), s = {
|
|
11445
11442
|
canRemoveFocus: e.canRemoveFocus,
|
|
11446
11443
|
category: N(t),
|
|
@@ -11506,7 +11503,7 @@ function em(e, t, n) {
|
|
|
11506
11503
|
...s,
|
|
11507
11504
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
11508
11505
|
};
|
|
11509
|
-
let c = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, c]]) : ie(t, o), d = ae(n, t, u, o), f = [...o, ...d], p = s.isAggregate ? f :
|
|
11506
|
+
let c = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, c]]) : ie(t, o), d = ae(n, t, u, o), f = [...o, ...d], p = s.isAggregate ? f : Td(f, f, t), m = s.isAggregate ? a : Td(a, f, t), h = re(t) ? Ud({
|
|
11510
11507
|
colDef: t,
|
|
11511
11508
|
model: v.value,
|
|
11512
11509
|
options: p
|
|
@@ -11523,7 +11520,7 @@ function em(e, t, n) {
|
|
|
11523
11520
|
let n = p.value, r = e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap, i = r.value, a = t.filter((e) => e.type === "value" && !e.controlled && !e.isAggregate && !!e.colDef.context?.metadataDisplayFields?.length);
|
|
11524
11521
|
for (let e of a) {
|
|
11525
11522
|
let t = new Set(e.selectedValues ?? []), n = /* @__PURE__ */ new Map();
|
|
11526
|
-
for (let r of
|
|
11523
|
+
for (let r of od(e.knownOptions ?? [])) t.has(r.value) && !n.has(r.value) && n.set(r.value, r);
|
|
11527
11524
|
let a = [...n.values()];
|
|
11528
11525
|
ke(r.value[e.key] ?? [], a) || (i === r.value && (i = { ...i }), i[e.key] = a);
|
|
11529
11526
|
}
|
|
@@ -11537,19 +11534,19 @@ function em(e, t, n) {
|
|
|
11537
11534
|
label: e.label,
|
|
11538
11535
|
values: t
|
|
11539
11536
|
}] : [];
|
|
11540
|
-
})), pe = r(() => Z.value.reduce((e, t) => e + t.values.length, 0)), me = r(() =>
|
|
11537
|
+
})), pe = r(() => Z.value.reduce((e, t) => e + t.values.length, 0)), me = r(() => jp(v.value, _.value)), he = r(() => me.value || pe.value > 0), ge = (e) => {
|
|
11541
11538
|
let t = Y(e.field);
|
|
11542
11539
|
if (!t || t.type !== e.filter.type) return !0;
|
|
11543
11540
|
if (e.filter.type === "value") {
|
|
11544
11541
|
if (t.isAggregate && e.option) {
|
|
11545
|
-
let { selected: n } =
|
|
11542
|
+
let { selected: n } = rf({
|
|
11546
11543
|
option: e.option,
|
|
11547
11544
|
options: t.knownOptions ?? [],
|
|
11548
11545
|
state: t.aggregateSelectionState ?? []
|
|
11549
11546
|
});
|
|
11550
11547
|
return e.filter.checked ? n : !n;
|
|
11551
11548
|
}
|
|
11552
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
11549
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? id(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
11553
11550
|
return e.filter.checked ? a : !a;
|
|
11554
11551
|
}
|
|
11555
11552
|
return e.filter.type === "range" ? t.rangeValue?.min === e.filter.value.min && t.rangeValue?.max === e.filter.value.max : e.filter.type === "boolean" ? t.booleanValue === e.filter.value : (t.existsValue ?? !1) === e.filter.value;
|
|
@@ -11563,13 +11560,13 @@ function em(e, t, n) {
|
|
|
11563
11560
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
11564
11561
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
11565
11562
|
if (!e) return !1;
|
|
11566
|
-
let r =
|
|
11563
|
+
let r = ad(e, t), i = id(e) ?? e.value;
|
|
11567
11564
|
return r !== n || c.has(i);
|
|
11568
11565
|
});
|
|
11569
11566
|
if (i) {
|
|
11570
|
-
let e =
|
|
11571
|
-
let i =
|
|
11572
|
-
return
|
|
11567
|
+
let e = id(i) ?? i.value, n = ad(i, t), r = l.findIndex((r) => {
|
|
11568
|
+
let i = id(r) ?? r.value;
|
|
11569
|
+
return ad(r, t) === n && i === e;
|
|
11573
11570
|
});
|
|
11574
11571
|
r === -1 ? l.push(i) : l[r] = i;
|
|
11575
11572
|
}
|
|
@@ -11580,7 +11577,7 @@ function em(e, t, n) {
|
|
|
11580
11577
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
11581
11578
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
11582
11579
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
11583
|
-
a.value[t.key] =
|
|
11580
|
+
a.value[t.key] = af({
|
|
11584
11581
|
options: t.knownOptions ?? [],
|
|
11585
11582
|
state: n
|
|
11586
11583
|
});
|
|
@@ -11609,48 +11606,48 @@ function em(e, t, n) {
|
|
|
11609
11606
|
return t === null ? [] : [{
|
|
11610
11607
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
11611
11608
|
type: "boolean",
|
|
11612
|
-
value:
|
|
11609
|
+
value: Qp
|
|
11613
11610
|
}];
|
|
11614
11611
|
}, we = (e) => e.existsValue ? [{
|
|
11615
11612
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
11616
11613
|
type: "exists",
|
|
11617
|
-
value:
|
|
11614
|
+
value: $p
|
|
11618
11615
|
}] : [], Te = (e) => {
|
|
11619
11616
|
let t = e.rangeValue ?? {
|
|
11620
11617
|
max: null,
|
|
11621
11618
|
min: null
|
|
11622
11619
|
};
|
|
11623
11620
|
return t.min === null && t.max === null ? [] : [{
|
|
11624
|
-
label:
|
|
11621
|
+
label: md(t.min, t.max, {
|
|
11625
11622
|
dataType: e.dataType,
|
|
11626
11623
|
valueDecimals: e.valueDecimals
|
|
11627
11624
|
}),
|
|
11628
11625
|
type: "range",
|
|
11629
|
-
value:
|
|
11626
|
+
value: Zp
|
|
11630
11627
|
}];
|
|
11631
11628
|
}, Ee = (e, t, n) => {
|
|
11632
11629
|
let r = n.get(t) ?? null;
|
|
11633
11630
|
return {
|
|
11634
|
-
field: r ?
|
|
11635
|
-
label: r ?
|
|
11636
|
-
resultCount:
|
|
11631
|
+
field: r ? ad(r, e.key) : void 0,
|
|
11632
|
+
label: r ? bd(r, e.colDef) : t,
|
|
11633
|
+
resultCount: Ed(r),
|
|
11637
11634
|
subText: r?.subText,
|
|
11638
11635
|
subduedText: r?.subduedText,
|
|
11639
11636
|
type: "value",
|
|
11640
|
-
value: r ?
|
|
11637
|
+
value: r ? id(r) ?? r.value : t
|
|
11641
11638
|
};
|
|
11642
11639
|
}, De = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
11643
11640
|
field: e.field,
|
|
11644
11641
|
label: e.label,
|
|
11645
11642
|
type: "boolean",
|
|
11646
|
-
value:
|
|
11647
|
-
}] : []), Oe = (e) =>
|
|
11643
|
+
value: Qp
|
|
11644
|
+
}] : []), Oe = (e) => af({
|
|
11648
11645
|
options: e.knownOptions ?? [],
|
|
11649
11646
|
state: e.aggregateSelectionState ?? []
|
|
11650
11647
|
}).map((t) => ({
|
|
11651
11648
|
field: e.key,
|
|
11652
|
-
label:
|
|
11653
|
-
resultCount:
|
|
11649
|
+
label: bd(t, e.colDef),
|
|
11650
|
+
resultCount: Ed(t),
|
|
11654
11651
|
subText: t.subText,
|
|
11655
11652
|
subduedText: t.subduedText,
|
|
11656
11653
|
type: "value",
|
|
@@ -11661,21 +11658,21 @@ function em(e, t, n) {
|
|
|
11661
11658
|
if (e.type === "boolean") return Ce(e);
|
|
11662
11659
|
if (e.type === "exists") return we(e);
|
|
11663
11660
|
if (e.isAggregate) return [...Oe(e), ...De(e)];
|
|
11664
|
-
let t = new Map(
|
|
11661
|
+
let t = new Map(od(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
11665
11662
|
return [...(e.selectedValues ?? []).map((n) => Ee(e, n, t)), ...De(e)];
|
|
11666
11663
|
}, je = () => {
|
|
11667
|
-
|
|
11664
|
+
He(), Se(null, "clear-all");
|
|
11668
11665
|
}, Me = () => {
|
|
11669
|
-
|
|
11666
|
+
Ue();
|
|
11670
11667
|
let r = p.value, a = r ? r.stagedFilterModel.value : i.value;
|
|
11671
11668
|
r && (b(r, a), r.commitStagedFilterSelections(), r.initStagedFilterSelections()), !e.filterStore && !o && (t.value = a), n("apply", a);
|
|
11672
11669
|
}, Ne = () => {
|
|
11673
|
-
|
|
11670
|
+
He();
|
|
11674
11671
|
let e = p.value;
|
|
11675
11672
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
11676
|
-
}, Pe = (e) =>
|
|
11673
|
+
}, Pe = (e) => Mp(Y(e)?.dataType), Fe = (e, t, n = "value-toggle") => {
|
|
11677
11674
|
let r = Y(e);
|
|
11678
|
-
r?.isAggregate && (be(r, t), Se(
|
|
11675
|
+
r?.isAggregate && (be(r, t), Se(Vd({
|
|
11679
11676
|
baseModel: v.value,
|
|
11680
11677
|
colDef: r.colDef,
|
|
11681
11678
|
options: r.knownOptions ?? [],
|
|
@@ -11690,7 +11687,7 @@ function em(e, t, n) {
|
|
|
11690
11687
|
if (t.type === "value") {
|
|
11691
11688
|
let r = Y(e), i = fe(e, n, t.value);
|
|
11692
11689
|
if (r?.isAggregate && i) {
|
|
11693
|
-
Fe(e,
|
|
11690
|
+
Fe(e, ef({
|
|
11694
11691
|
checked: t.checked,
|
|
11695
11692
|
option: i,
|
|
11696
11693
|
options: r.knownOptions ?? [],
|
|
@@ -11698,26 +11695,37 @@ function em(e, t, n) {
|
|
|
11698
11695
|
}));
|
|
11699
11696
|
return;
|
|
11700
11697
|
}
|
|
11701
|
-
|
|
11698
|
+
Ye(e, n, t.value, t.checked, i);
|
|
11702
11699
|
return;
|
|
11703
11700
|
}
|
|
11704
11701
|
if (t.type === "range") {
|
|
11705
|
-
|
|
11702
|
+
We(n, t.value, r);
|
|
11706
11703
|
return;
|
|
11707
11704
|
}
|
|
11708
11705
|
if (t.type === "boolean") {
|
|
11709
|
-
Se(
|
|
11706
|
+
Se(Pp(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
11710
11707
|
return;
|
|
11711
11708
|
}
|
|
11712
|
-
Se(
|
|
11709
|
+
Se(Fp(v.value, n, t.value, Pe(n), _.value, r), "exists-change", n, "exists");
|
|
11713
11710
|
}, Le = (e, t, n, r) => {
|
|
11714
11711
|
let i = p.value;
|
|
11715
11712
|
return !i || e.type !== "value" ? !1 : n !== "open" || r ? !0 : i.filterLoadingMap.value[e.key] ? !1 : i.filterStaleMap.value[e.key] || !(i.filterOptionsMap.value[e.key] ?? []).length ? !0 : (i.filterSearchQueries.value[e.key] ?? "") !== t;
|
|
11716
|
-
}, Re = (e, t
|
|
11713
|
+
}, Re = (e, t) => {
|
|
11714
|
+
let n = Y(e);
|
|
11715
|
+
if (!n || n.type !== "value" || n.controlled || n.isAggregate || !n.colDef.context?.metadataDisplayFields?.length || W(n.colDef).length !== 1) return;
|
|
11716
|
+
let r = new Set(t), i = od(n.knownOptions ?? []);
|
|
11717
|
+
for (let [t, a] of ie(n.colDef, n.knownOptions ?? [])) {
|
|
11718
|
+
let o = a.filter((n) => r.has(n) && !i.some((r) => sd(r, t, n, e)));
|
|
11719
|
+
if (o.length) {
|
|
11720
|
+
console.error(`PvFilterPanel: removed selected "${t}" values with no display name: ${o.join(", ")}`);
|
|
11721
|
+
let r = a.filter((e) => !o.includes(e));
|
|
11722
|
+
ye(e, t, r), Se(Lp(v.value, t, r, _.value, K(t) ?? n.colDef), "remove-filter", t, "value");
|
|
11723
|
+
}
|
|
11724
|
+
}
|
|
11725
|
+
}, ze = (e, t, n, r) => {
|
|
11717
11726
|
let i = p.value;
|
|
11718
11727
|
if (!Le(e, t, n, r) || !i) return;
|
|
11719
|
-
let a = Array.from(new Set([...ie(e.colDef, e.knownOptions ?? []).values()].flat()))
|
|
11720
|
-
i.fetchFilterOptions({
|
|
11728
|
+
let a = Array.from(new Set([...ie(e.colDef, e.knownOptions ?? []).values()].flat())), o = n === "open" && !r && !!i.filterOptionsHandler.value, s = i.fetchFilterOptions({
|
|
11721
11729
|
colDef: e.colDef,
|
|
11722
11730
|
field: e.key,
|
|
11723
11731
|
filterModel: v.value,
|
|
@@ -11725,27 +11733,30 @@ function em(e, t, n) {
|
|
|
11725
11733
|
query: t,
|
|
11726
11734
|
reason: n,
|
|
11727
11735
|
selectedValues: a
|
|
11736
|
+
}), c = i.filterRequestIdMap.value[e.key];
|
|
11737
|
+
s.then(() => {
|
|
11738
|
+
o && i.filterRequestIdMap.value[e.key] === c && Re(e.key, a);
|
|
11728
11739
|
});
|
|
11729
|
-
},
|
|
11730
|
-
n("load-more", e.key, e.colDef, t, r),
|
|
11731
|
-
},
|
|
11732
|
-
Se(
|
|
11733
|
-
},
|
|
11740
|
+
}, Be = (e, t, r) => {
|
|
11741
|
+
n("load-more", e.key, e.colDef, t, r), ze(e, t, r ? "child-load-more" : "load-more", r);
|
|
11742
|
+
}, Ve = (e, t, n) => {
|
|
11743
|
+
Se(Ip(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
11744
|
+
}, He = () => {
|
|
11734
11745
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
11735
11746
|
l.clear();
|
|
11736
|
-
},
|
|
11747
|
+
}, Ue = () => {
|
|
11737
11748
|
let e = [...l.entries()];
|
|
11738
|
-
|
|
11739
|
-
for (let [t, n] of e)
|
|
11740
|
-
},
|
|
11749
|
+
He();
|
|
11750
|
+
for (let [t, n] of e) Ve(t, n.value, n.colDef);
|
|
11751
|
+
}, We = (t, n, r) => {
|
|
11741
11752
|
if (e.rangeDebounceMs <= 0) {
|
|
11742
|
-
|
|
11753
|
+
Ve(t, n, r);
|
|
11743
11754
|
return;
|
|
11744
11755
|
}
|
|
11745
11756
|
let i = l.get(t);
|
|
11746
11757
|
i && window.clearTimeout(i.timer);
|
|
11747
11758
|
let a = window.setTimeout(() => {
|
|
11748
|
-
l.delete(t),
|
|
11759
|
+
l.delete(t), Ve(t, n, r);
|
|
11749
11760
|
}, e.rangeDebounceMs);
|
|
11750
11761
|
l.set(t, {
|
|
11751
11762
|
colDef: r,
|
|
@@ -11753,23 +11764,23 @@ function em(e, t, n) {
|
|
|
11753
11764
|
value: n
|
|
11754
11765
|
});
|
|
11755
11766
|
};
|
|
11756
|
-
C(
|
|
11757
|
-
let
|
|
11758
|
-
n("search-change", e.key, t, e.colDef),
|
|
11759
|
-
},
|
|
11760
|
-
|
|
11761
|
-
},
|
|
11767
|
+
C(He);
|
|
11768
|
+
let Ge = (e, t) => {
|
|
11769
|
+
n("search-change", e.key, t, e.colDef), ze(e, t, "search");
|
|
11770
|
+
}, Ke = (e, t = e.searchQuery ?? "") => {
|
|
11771
|
+
ze(e, t, "open");
|
|
11772
|
+
}, qe = r(() => p.value.filterOptionsHandler.value != null), Q = (e, t) => {
|
|
11762
11773
|
p.value.setFilterFacetSelections(e, t);
|
|
11763
|
-
},
|
|
11774
|
+
}, Je = (e, t, r = e.searchQuery ?? "") => {
|
|
11764
11775
|
let i = p.value;
|
|
11765
|
-
ke(i.filterFacetSelectionMap.value[e.key] ?? {}, t) || (
|
|
11766
|
-
},
|
|
11776
|
+
ke(i.filterFacetSelectionMap.value[e.key] ?? {}, t) || (Q(e.key, t), n("facet-change", e.key, t, e.colDef), qe.value && ze(e, r, "facet-change"));
|
|
11777
|
+
}, Ye = (t, r, i, a, o) => {
|
|
11767
11778
|
let s = Y(t), c = s?.controlled ? e.controlledValues[t] ?? [] : y.value.get(r)?.values ?? [], l = s?.singleSelect ? a ? [i] : [] : a ? Array.from(new Set([...c, i])) : c.filter((e) => e !== i);
|
|
11768
11779
|
if (s?.controlled) {
|
|
11769
11780
|
n("controlled-change", t, l, s.colDef);
|
|
11770
11781
|
return;
|
|
11771
11782
|
}
|
|
11772
|
-
ye(t, r, l, a ? o : void 0), Se(
|
|
11783
|
+
ye(t, r, l, a ? o : void 0), Se(Lp(v.value, r, l, _.value, K(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
11773
11784
|
};
|
|
11774
11785
|
return {
|
|
11775
11786
|
resolvedFilters: X,
|
|
@@ -11783,44 +11794,44 @@ function em(e, t, n) {
|
|
|
11783
11794
|
effectiveFilterStore: p,
|
|
11784
11795
|
findResolvedFilter: Y,
|
|
11785
11796
|
getRepresentedFields: W,
|
|
11786
|
-
activateFilter:
|
|
11797
|
+
activateFilter: Ke,
|
|
11787
11798
|
applyStagedFilters: Me,
|
|
11788
11799
|
cancelStagedFilters: Ne,
|
|
11789
11800
|
clearAllFilters: je,
|
|
11790
11801
|
getSuggestionKey: ve,
|
|
11791
11802
|
handleControlChange: Ie,
|
|
11792
|
-
handleFacetChange:
|
|
11793
|
-
handleLoadMore:
|
|
11794
|
-
handleSearchChange:
|
|
11803
|
+
handleFacetChange: Je,
|
|
11804
|
+
handleLoadMore: Be,
|
|
11805
|
+
handleSearchChange: Ge,
|
|
11795
11806
|
handleSuggestionClick: (e) => {
|
|
11796
11807
|
if (e.filter.type === "value" && e.option) {
|
|
11797
|
-
let t = Y(e.field), n =
|
|
11798
|
-
t?.isAggregate ? Fe(e.field,
|
|
11808
|
+
let t = Y(e.field), n = ad(e.option, e.field), r = id(e.option) ?? e.filter.value;
|
|
11809
|
+
t?.isAggregate ? Fe(e.field, ef({
|
|
11799
11810
|
checked: e.filter.checked,
|
|
11800
11811
|
option: e.option,
|
|
11801
11812
|
options: t.knownOptions ?? [],
|
|
11802
11813
|
state: t.aggregateSelectionState ?? []
|
|
11803
|
-
})) :
|
|
11814
|
+
})) : Ye(e.field, n, r, e.filter.checked, e.option);
|
|
11804
11815
|
} else Ie(e.field, e.filter);
|
|
11805
11816
|
n("suggestion-click", e);
|
|
11806
11817
|
},
|
|
11807
11818
|
removeAppliedFilter: (e, t, n) => {
|
|
11808
11819
|
let r = n ?? Y(e)?.type ?? "value";
|
|
11809
|
-
if (r === "range" || !n && t ===
|
|
11810
|
-
Se(
|
|
11820
|
+
if (r === "range" || !n && t === Zp) {
|
|
11821
|
+
Se(Ip(v.value, e, null, null, _.value, K(e) ?? Y(e)?.colDef), "remove-filter", e, "range");
|
|
11811
11822
|
return;
|
|
11812
11823
|
}
|
|
11813
|
-
if (r === "boolean" || !n && t ===
|
|
11814
|
-
Se(
|
|
11824
|
+
if (r === "boolean" || !n && t === Qp) {
|
|
11825
|
+
Se(Pp(v.value, e, null, _.value, "boolean", K(e) ?? Y(e)?.colDef), "remove-filter", e, "boolean");
|
|
11815
11826
|
return;
|
|
11816
11827
|
}
|
|
11817
|
-
if (r === "exists" || !n && t ===
|
|
11818
|
-
Se(
|
|
11828
|
+
if (r === "exists" || !n && t === $p) {
|
|
11829
|
+
Se(Fp(v.value, e, !1, "text", _.value, K(e) ?? Y(e)?.colDef), "remove-filter", e, "exists");
|
|
11819
11830
|
return;
|
|
11820
11831
|
}
|
|
11821
11832
|
let i = Y(e);
|
|
11822
11833
|
if (r === "value" && i?.isAggregate) {
|
|
11823
|
-
let e =
|
|
11834
|
+
let e = Fd(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? ef({
|
|
11824
11835
|
checked: !1,
|
|
11825
11836
|
option: e,
|
|
11826
11837
|
options: i.knownOptions ?? [],
|
|
@@ -11830,40 +11841,40 @@ function em(e, t, n) {
|
|
|
11830
11841
|
return;
|
|
11831
11842
|
}
|
|
11832
11843
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
11833
|
-
ye(Y(e)?.key ?? e, e, a), Se(
|
|
11844
|
+
ye(Y(e)?.key ?? e, e, a), Se(Lp(v.value, e, a, _.value, K(e) ?? Y(e)?.colDef), "remove-filter", e, "value");
|
|
11834
11845
|
},
|
|
11835
|
-
setFacetSelections:
|
|
11836
|
-
usesHandlerFacets:
|
|
11846
|
+
setFacetSelections: Q,
|
|
11847
|
+
usesHandlerFacets: qe
|
|
11837
11848
|
};
|
|
11838
11849
|
}
|
|
11839
11850
|
//#endregion
|
|
11840
11851
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
11841
|
-
var
|
|
11852
|
+
var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, im = { class: "pv-filter-panel-body pv-flex-vertical" }, am = {
|
|
11842
11853
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
11843
11854
|
"data-testid": "pv-filter-panel-filters-view"
|
|
11844
|
-
},
|
|
11855
|
+
}, om = {
|
|
11845
11856
|
key: 0,
|
|
11846
11857
|
"aria-label": "Filter suggestions",
|
|
11847
11858
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
11848
11859
|
"data-testid": "pv-filter-panel-suggestions"
|
|
11849
|
-
},
|
|
11860
|
+
}, sm = { class: "pv-filter-panel-suggestion-tags pv-flex" }, cm = {
|
|
11850
11861
|
key: 1,
|
|
11851
11862
|
class: "pv-filter-panel-search pv-border-bottom",
|
|
11852
11863
|
"data-testid": "pv-filter-panel-search"
|
|
11853
|
-
},
|
|
11864
|
+
}, lm = {
|
|
11854
11865
|
key: 2,
|
|
11855
11866
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
11856
|
-
},
|
|
11867
|
+
}, um = {
|
|
11857
11868
|
key: 3,
|
|
11858
11869
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
11859
|
-
},
|
|
11870
|
+
}, dm = {
|
|
11860
11871
|
key: 4,
|
|
11861
11872
|
class: "pv-filter-panel-filter-list pv-flex-vertical pv-inset-inline",
|
|
11862
11873
|
style: { "--inset-size": "8px" }
|
|
11863
|
-
},
|
|
11874
|
+
}, fm = {
|
|
11864
11875
|
key: 0,
|
|
11865
11876
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
11866
|
-
},
|
|
11877
|
+
}, pm = { class: "pv-filter-panel-actions pv-flex" }, mm = { class: "pv-text-body-sm" }, hm = { class: "pv-filter-panel-modal-footer pv-flex" }, gm = /* @__PURE__ */ d({
|
|
11867
11878
|
__name: "PvFilterPanel",
|
|
11868
11879
|
props: /* @__PURE__ */ _({
|
|
11869
11880
|
allCategoriesLabel: { default: "All" },
|
|
@@ -11958,7 +11969,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11958
11969
|
"suggestion-click"
|
|
11959
11970
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
11960
11971
|
setup(e, { emit: n }) {
|
|
11961
|
-
let c = e, l = U(e, "filterModel"), d = U(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: x, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: D, removeAppliedFilter: O } =
|
|
11972
|
+
let c = e, l = U(e, "filterModel"), d = U(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: x, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: D, removeAppliedFilter: O } = tm(c, l, f), A = j("filters"), P = j({}), F = j(null), I = j(!1), L = j(!1), z = j(""), B = r(() => c.enableFilterSearch ? z.value.trim().toLowerCase() : ""), ee = r(() => B.value.length > 0), H = (e) => e.label.toLowerCase().includes(B.value);
|
|
11962
11973
|
G(ee, (e) => {
|
|
11963
11974
|
e && (F.value = null);
|
|
11964
11975
|
}), G(F, (e) => {
|
|
@@ -12000,7 +12011,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12000
12011
|
"aria-label": e.ariaLabel,
|
|
12001
12012
|
style: S(he.value)
|
|
12002
12013
|
}, [
|
|
12003
|
-
s("div",
|
|
12014
|
+
s("div", rm, [u(si, {
|
|
12004
12015
|
modelValue: A.value,
|
|
12005
12016
|
options: me.value,
|
|
12006
12017
|
class: "pv-filter-panel-mode-control",
|
|
@@ -12014,8 +12025,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12014
12025
|
variant: "secondary",
|
|
12015
12026
|
onClick: r[0] ||= (e) => d.value = !0
|
|
12016
12027
|
}))]),
|
|
12017
|
-
s("div",
|
|
12018
|
-
!e.readOnly && V(_).length ? (k(), o("section",
|
|
12028
|
+
s("div", im, [q(s("div", am, [
|
|
12029
|
+
!e.readOnly && V(_).length ? (k(), o("section", om, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", sm, [(k(!0), o(t, null, M(V(_), (e) => (k(), i(Pi, {
|
|
12019
12030
|
key: V(C)(e),
|
|
12020
12031
|
icon: e.icon,
|
|
12021
12032
|
"icon-classes": e.iconClasses,
|
|
@@ -12028,7 +12039,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12028
12039
|
"onHandleClick"
|
|
12029
12040
|
]))), 128))])])) : a("", !0),
|
|
12030
12041
|
N(n.$slots, "suggestions"),
|
|
12031
|
-
u(
|
|
12042
|
+
u(Jf, {
|
|
12032
12043
|
modelValue: F.value,
|
|
12033
12044
|
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
12034
12045
|
"all-categories-label": e.allCategoriesLabel,
|
|
@@ -12040,12 +12051,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12040
12051
|
"category-order",
|
|
12041
12052
|
"filters"
|
|
12042
12053
|
]),
|
|
12043
|
-
e.enableFilterSearch && V(p).length ? (k(), o("div",
|
|
12054
|
+
e.enableFilterSearch && V(p).length ? (k(), o("div", cm, [u(Vi, {
|
|
12044
12055
|
modelValue: z.value,
|
|
12045
12056
|
"onUpdate:modelValue": r[2] ||= (e) => z.value = e,
|
|
12046
12057
|
placeholder: e.filterSearchPlaceholder
|
|
12047
12058
|
}, null, 8, ["modelValue", "placeholder"])])) : a("", !0),
|
|
12048
|
-
V(p).length ? ne.value.length ? (k(), o("div",
|
|
12059
|
+
V(p).length ? ne.value.length ? (k(), o("div", dm, [(k(!0), o(t, null, M(pe.value, (t) => (k(), i(Nf, {
|
|
12049
12060
|
key: t.key,
|
|
12050
12061
|
"disable-while-loading": e.disableWhileLoading,
|
|
12051
12062
|
filter: t,
|
|
@@ -12068,8 +12079,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12068
12079
|
label: ce.value,
|
|
12069
12080
|
variant: "ghost",
|
|
12070
12081
|
onClick: r[5] ||= (e) => I.value = !I.value
|
|
12071
|
-
}, null, 8, ["label"])) : a("", !0)])) : (k(), o("div",
|
|
12072
|
-
], 512), [[se, A.value === "filters"]]), q(u(
|
|
12082
|
+
}, null, 8, ["label"])) : a("", !0)])) : (k(), o("div", um, R(oe.value), 1)) : (k(), o("div", lm, " No filters available. "))
|
|
12083
|
+
], 512), [[se, A.value === "filters"]]), q(u(Vf, {
|
|
12073
12084
|
"applied-count": V(h),
|
|
12074
12085
|
"applied-groups": V(m),
|
|
12075
12086
|
"external-filters": J.value,
|
|
@@ -12083,7 +12094,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12083
12094
|
"read-only",
|
|
12084
12095
|
"onRemoveFilter"
|
|
12085
12096
|
]), [[se, A.value === "applied"]])]),
|
|
12086
|
-
Z.value ? (k(), o("div",
|
|
12097
|
+
Z.value ? (k(), o("div", fm, [s("div", pm, [X.value && !e.readOnly ? (k(), i($, {
|
|
12087
12098
|
key: 0,
|
|
12088
12099
|
class: "pv-text-brand",
|
|
12089
12100
|
label: e.clearAllLabel,
|
|
@@ -12098,14 +12109,14 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12098
12109
|
variant: "primary",
|
|
12099
12110
|
onClick: V(y)
|
|
12100
12111
|
}, null, 8, ["label", "onClick"])], 64)) : a("", !0)])])) : a("", !0)
|
|
12101
|
-
], 12,
|
|
12112
|
+
], 12, nm)), u(bi, {
|
|
12102
12113
|
modelValue: L.value,
|
|
12103
12114
|
"onUpdate:modelValue": r[7] ||= (e) => L.value = e,
|
|
12104
12115
|
header: e.clearAllHeader,
|
|
12105
12116
|
style: { "--max-width": "440px" }
|
|
12106
12117
|
}, {
|
|
12107
|
-
body: K(() => [s("p",
|
|
12108
|
-
footer: K(() => [s("div",
|
|
12118
|
+
body: K(() => [s("p", mm, R(e.clearAllBody), 1)]),
|
|
12119
|
+
footer: K(() => [s("div", hm, [u($, {
|
|
12109
12120
|
label: e.cancelLabel,
|
|
12110
12121
|
variant: "ghost",
|
|
12111
12122
|
onClick: ve
|
|
@@ -12117,16 +12128,16 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12117
12128
|
_: 1
|
|
12118
12129
|
}, 8, ["modelValue", "header"])], 64));
|
|
12119
12130
|
}
|
|
12120
|
-
}),
|
|
12131
|
+
}), _m = ["for"], vm = [
|
|
12121
12132
|
"id",
|
|
12122
12133
|
"type",
|
|
12123
12134
|
"value",
|
|
12124
12135
|
"name",
|
|
12125
12136
|
"disabled"
|
|
12126
|
-
],
|
|
12137
|
+
], ym = { key: 0 }, bm = {
|
|
12127
12138
|
class: "pv-inset-square",
|
|
12128
12139
|
style: { "--inset-size": "0px 2px" }
|
|
12129
|
-
},
|
|
12140
|
+
}, xm = /* @__PURE__ */ d({
|
|
12130
12141
|
__name: "PvFilterModalSelectItem",
|
|
12131
12142
|
props: /* @__PURE__ */ _({
|
|
12132
12143
|
rounded: { type: Boolean },
|
|
@@ -12159,55 +12170,55 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12159
12170
|
value: e.value,
|
|
12160
12171
|
name: e.name,
|
|
12161
12172
|
disabled: e.disabled
|
|
12162
|
-
}, null, 8,
|
|
12163
|
-
e.label ? (k(), o("span",
|
|
12164
|
-
s("span",
|
|
12165
|
-
], 8,
|
|
12173
|
+
}, null, 8, vm), [[ie, n.value]]),
|
|
12174
|
+
e.label ? (k(), o("span", ym, R(e.label), 1)) : a("", !0),
|
|
12175
|
+
s("span", bm, R(e.rightCounterBadge), 1)
|
|
12176
|
+
], 8, _m));
|
|
12166
12177
|
}
|
|
12167
|
-
}),
|
|
12178
|
+
}), Sm = ["aria-label"], Cm = {
|
|
12168
12179
|
class: "pv-filter-modal pv-flex",
|
|
12169
12180
|
style: {
|
|
12170
12181
|
"--flex-align": "stretch",
|
|
12171
12182
|
"--flex-gap": "0"
|
|
12172
12183
|
}
|
|
12173
|
-
},
|
|
12184
|
+
}, wm = {
|
|
12174
12185
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
12175
12186
|
"aria-label": "Filter categories",
|
|
12176
12187
|
style: { "--flex-gap": "0.25rem" }
|
|
12177
|
-
},
|
|
12188
|
+
}, Tm = {
|
|
12178
12189
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
12179
12190
|
style: {
|
|
12180
12191
|
"--flex-align": "stretch",
|
|
12181
12192
|
"--flex-gap": "0.75rem"
|
|
12182
12193
|
}
|
|
12183
|
-
},
|
|
12194
|
+
}, Em = {
|
|
12184
12195
|
key: 0,
|
|
12185
12196
|
class: "pv-flex",
|
|
12186
12197
|
style: {
|
|
12187
12198
|
"--flex-gap": "0.5rem",
|
|
12188
12199
|
"flex-wrap": "wrap"
|
|
12189
12200
|
}
|
|
12190
|
-
},
|
|
12201
|
+
}, Dm = {
|
|
12191
12202
|
key: 1,
|
|
12192
12203
|
class: "pv-inset-square-8"
|
|
12193
|
-
},
|
|
12204
|
+
}, Om = {
|
|
12194
12205
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
12195
12206
|
style: {
|
|
12196
12207
|
"--flex-align": "stretch",
|
|
12197
12208
|
"--flex-gap": "0.75rem"
|
|
12198
12209
|
}
|
|
12199
|
-
},
|
|
12210
|
+
}, km = {
|
|
12200
12211
|
key: 1,
|
|
12201
12212
|
class: "pv-text-body-sm pv-text-subdued pv-stack-8",
|
|
12202
12213
|
style: { "font-weight": "500" }
|
|
12203
|
-
},
|
|
12214
|
+
}, Am = {
|
|
12204
12215
|
key: 0,
|
|
12205
12216
|
class: "pv-text-body-xs pv-text-subdued",
|
|
12206
12217
|
style: { margin: "0" }
|
|
12207
|
-
},
|
|
12218
|
+
}, jm = {
|
|
12208
12219
|
key: 3,
|
|
12209
12220
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
12210
|
-
},
|
|
12221
|
+
}, Mm = {
|
|
12211
12222
|
key: 0,
|
|
12212
12223
|
class: "pv-flex pv-border-top",
|
|
12213
12224
|
style: {
|
|
@@ -12216,7 +12227,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12216
12227
|
"margin-top": "0.75rem",
|
|
12217
12228
|
"padding-top": "0.75rem"
|
|
12218
12229
|
}
|
|
12219
|
-
},
|
|
12230
|
+
}, Nm = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
|
|
12220
12231
|
__name: "PvFilterModal",
|
|
12221
12232
|
props: /* @__PURE__ */ _({
|
|
12222
12233
|
header: { default: "Filters" },
|
|
@@ -12306,7 +12317,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12306
12317
|
"suggestion-click"
|
|
12307
12318
|
], ["update:filterModel", "update:visible"]),
|
|
12308
12319
|
setup(e, { emit: n }) {
|
|
12309
|
-
let c = e, l = U(e, "filterModel"), d = U(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _, handleFacetChange: v, setFacetSelections: y, usesHandlerFacets: x } =
|
|
12320
|
+
let c = e, l = U(e, "filterModel"), d = U(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _, handleFacetChange: v, setFacetSelections: y, usesHandlerFacets: x } = tm(c, l, f), w = j(null), T = te(), E = j(""), D = r(() => p.value.filter((e) => e.type === "value")), O = r(() => {
|
|
12310
12321
|
let e = D.value;
|
|
12311
12322
|
return e.find((e) => e.key === w.value) ?? e[0] ?? null;
|
|
12312
12323
|
}), A = r(() => O.value?.isAggregate === !0), P = r(() => O.value?.aggregateSelectionState ?? []), I = r(() => new Set(O.value?.selectedValues ?? [])), L = r(() => E.value.trim().toLowerCase()), z = (e) => {
|
|
@@ -12323,7 +12334,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12323
12334
|
let e = O.value;
|
|
12324
12335
|
if (!e) return {};
|
|
12325
12336
|
let t = {};
|
|
12326
|
-
for (let n of
|
|
12337
|
+
for (let n of od([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
12327
12338
|
return t;
|
|
12328
12339
|
}), ee = r(() => O.value?.colDef.context?.filterPanel ?? {}), H = j(Object.fromEntries(D.value.flatMap((e) => {
|
|
12329
12340
|
let t = e.colDef.context?.filterPanel, n = Object.fromEntries(Object.entries(t ?? {}).flatMap(([e, t]) => t.initial?.length ? [[e, t.initial]] : []));
|
|
@@ -12389,22 +12400,22 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12389
12400
|
options: [...i.filter((e) => J.value.has(e.value)), ...i.filter((e) => !J.value.has(e.value))]
|
|
12390
12401
|
};
|
|
12391
12402
|
});
|
|
12392
|
-
}), fe = r(() => A.value && O.value ?
|
|
12403
|
+
}), fe = r(() => A.value && O.value ? nf({
|
|
12393
12404
|
options: O.value.knownOptions ?? [],
|
|
12394
12405
|
state: P.value
|
|
12395
|
-
}) : /* @__PURE__ */ new Map()), X = (e) => e.isAggregate ?
|
|
12406
|
+
}) : /* @__PURE__ */ new Map()), X = (e) => e.isAggregate ? of(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, Z = (e) => A.value ? fe.value.get(e.value) ?? {
|
|
12396
12407
|
indeterminate: !1,
|
|
12397
12408
|
selected: !1
|
|
12398
12409
|
} : {
|
|
12399
12410
|
indeterminate: !1,
|
|
12400
12411
|
selected: I.value.has(e.value)
|
|
12401
|
-
}, pe = (e) => O.value ?
|
|
12412
|
+
}, pe = (e) => O.value ? bd(e, O.value.colDef) : e.label || e.value, me = (e) => id(e) ?? e.value, he = (e) => ad(e, O.value?.key ?? ""), ge = (e, t) => {
|
|
12402
12413
|
let n = O.value;
|
|
12403
12414
|
if (n) {
|
|
12404
12415
|
if (n.isAggregate) {
|
|
12405
12416
|
_(n.key, {
|
|
12406
12417
|
type: "aggregate-selection",
|
|
12407
|
-
value:
|
|
12418
|
+
value: ef({
|
|
12408
12419
|
checked: t,
|
|
12409
12420
|
option: e,
|
|
12410
12421
|
options: n.knownOptions ?? [],
|
|
@@ -12424,7 +12435,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12424
12435
|
for (let e of ce.value) Z(e).selected || ge(e, !0);
|
|
12425
12436
|
}, ye = () => {
|
|
12426
12437
|
if (A.value) {
|
|
12427
|
-
for (let e of
|
|
12438
|
+
for (let e of od(O.value?.knownOptions ?? [])) Z(e).selected && ge(e, !1);
|
|
12428
12439
|
return;
|
|
12429
12440
|
}
|
|
12430
12441
|
for (let e of q.value) ge(e, !1);
|
|
@@ -12471,7 +12482,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12471
12482
|
width: e.maxWidth,
|
|
12472
12483
|
maxWidth: e.maxWidth
|
|
12473
12484
|
})
|
|
12474
|
-
}, [s("div",
|
|
12485
|
+
}, [s("div", Cm, [s("nav", wm, [(k(!0), o(t, null, M(D.value, (e) => (k(), i(xm, {
|
|
12475
12486
|
key: e.key,
|
|
12476
12487
|
modelValue: xe.value,
|
|
12477
12488
|
"onUpdate:modelValue": r[0] ||= (e) => xe.value = e,
|
|
@@ -12485,7 +12496,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12485
12496
|
"label",
|
|
12486
12497
|
"right-counter-badge",
|
|
12487
12498
|
"value"
|
|
12488
|
-
]))), 128))]), s("div",
|
|
12499
|
+
]))), 128))]), s("div", Tm, [
|
|
12489
12500
|
u(Vi, {
|
|
12490
12501
|
modelValue: E.value,
|
|
12491
12502
|
"onUpdate:modelValue": r[1] ||= (e) => E.value = e,
|
|
@@ -12497,7 +12508,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12497
12508
|
"disabled",
|
|
12498
12509
|
"placeholder"
|
|
12499
12510
|
]),
|
|
12500
|
-
Object.keys(ee.value).length ? (k(), o("div",
|
|
12511
|
+
Object.keys(ee.value).length ? (k(), o("div", Em, [(k(!0), o(t, null, M(ee.value, (e, t) => (k(), i(xs, {
|
|
12501
12512
|
key: `facet-${t}`,
|
|
12502
12513
|
disabled: O.value?.disabled,
|
|
12503
12514
|
label: e.headerName || V(Ae)(t),
|
|
@@ -12512,8 +12523,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12512
12523
|
"options",
|
|
12513
12524
|
"onUpdate:modelValue"
|
|
12514
12525
|
]))), 128))])) : a("", !0),
|
|
12515
|
-
O.value?.isLoading ? (k(), o("div",
|
|
12516
|
-
s("div",
|
|
12526
|
+
O.value?.isLoading ? (k(), o("div", Dm, [u(Be, { size: "sm" })])) : O.value ? (k(), o(t, { key: 2 }, [
|
|
12527
|
+
s("div", Om, [(k(!0), o(t, null, M(Y.value, (e) => (k(), o("div", {
|
|
12517
12528
|
key: `section-${e.key}`,
|
|
12518
12529
|
class: "pv-flex-vertical",
|
|
12519
12530
|
style: {
|
|
@@ -12534,17 +12545,17 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12534
12545
|
"field",
|
|
12535
12546
|
"options",
|
|
12536
12547
|
"section"
|
|
12537
|
-
])) : e.label ? (k(), o("p",
|
|
12548
|
+
])) : e.label ? (k(), o("p", km, R(e.label), 1)) : a("", !0), (k(!0), o(t, null, M(e.options, (e) => (k(), o("div", {
|
|
12538
12549
|
key: `option-${e.value}`,
|
|
12539
12550
|
class: b(["pv-inset-square-8 pv-radius", { "pv-surface-highlight": Z(e).selected }])
|
|
12540
|
-
}, [u(
|
|
12551
|
+
}, [u(Zu, {
|
|
12541
12552
|
control: O.value.singleSelect ? "radio" : "checkbox",
|
|
12542
12553
|
disabled: O.value.disabled || e.isSelectable === !1,
|
|
12543
12554
|
indeterminate: Z(e).indeterminate,
|
|
12544
12555
|
label: pe(e),
|
|
12545
12556
|
name: V(T),
|
|
12546
12557
|
"query-text": E.value,
|
|
12547
|
-
"result-count": V(
|
|
12558
|
+
"result-count": V(Ed)(e),
|
|
12548
12559
|
selected: Z(e).selected,
|
|
12549
12560
|
"sub-text": e.subText,
|
|
12550
12561
|
"subdued-text": e.subduedText,
|
|
@@ -12564,7 +12575,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12564
12575
|
"value",
|
|
12565
12576
|
"onToggleValue"
|
|
12566
12577
|
])], 2))), 128))]))), 128))]),
|
|
12567
|
-
ce.value.length ? a("", !0) : (k(), o("p",
|
|
12578
|
+
ce.value.length ? a("", !0) : (k(), o("p", Am, " No matching values. ")),
|
|
12568
12579
|
O.value.hasMore ? (k(), i($, {
|
|
12569
12580
|
key: 1,
|
|
12570
12581
|
class: "pv-text-brand",
|
|
@@ -12575,7 +12586,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12575
12586
|
onClick: be
|
|
12576
12587
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
12577
12588
|
], 64)) : a("", !0),
|
|
12578
|
-
O.value && !e.readOnly ? (k(), o("div",
|
|
12589
|
+
O.value && !e.readOnly ? (k(), o("div", jm, [O.value.singleSelect ? a("", !0) : (k(), i($, {
|
|
12579
12590
|
key: 0,
|
|
12580
12591
|
disabled: O.value.disabled,
|
|
12581
12592
|
label: e.selectAllLabel,
|
|
@@ -12587,7 +12598,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12587
12598
|
variant: "ghost",
|
|
12588
12599
|
onClick: ye
|
|
12589
12600
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
12590
|
-
])]), e.staged ? (k(), o("div",
|
|
12601
|
+
])]), e.staged ? (k(), o("div", Mm, [u($, {
|
|
12591
12602
|
label: e.cancelLabel,
|
|
12592
12603
|
variant: "ghost",
|
|
12593
12604
|
onClick: V(g)
|
|
@@ -12595,14 +12606,14 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12595
12606
|
label: e.applyLabel,
|
|
12596
12607
|
variant: "primary",
|
|
12597
12608
|
onClick: V(h)
|
|
12598
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
12609
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, Sm)]),
|
|
12599
12610
|
_: 3
|
|
12600
12611
|
}, 8, ["modelValue"]));
|
|
12601
12612
|
}
|
|
12602
|
-
}), [["__scopeId", "data-v-fb919d6a"]]),
|
|
12613
|
+
}), [["__scopeId", "data-v-fb919d6a"]]), Pm = ["tabindex"], Fm = {
|
|
12603
12614
|
key: 0,
|
|
12604
12615
|
class: "pv-hover-action-menu__actions"
|
|
12605
|
-
},
|
|
12616
|
+
}, Im = { class: "pv-hover-action-menu__action-group" }, Lm = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
|
|
12606
12617
|
__name: "PvHoverActionMenu",
|
|
12607
12618
|
props: {
|
|
12608
12619
|
disabled: {
|
|
@@ -12625,12 +12636,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12625
12636
|
class: b(["pv-hover-action-menu", d.value]),
|
|
12626
12637
|
tabindex: e.options.length ? 0 : void 0,
|
|
12627
12638
|
"data-testid": "pv-hover-action-menu"
|
|
12628
|
-
}, [N(n.$slots, "default", {}, void 0, !0), e.options.length ? (k(), o("div",
|
|
12639
|
+
}, [N(n.$slots, "default", {}, void 0, !0), e.options.length ? (k(), o("div", Fm, [u(il, {
|
|
12629
12640
|
variant: e.variant,
|
|
12630
12641
|
"data-testid": "pv-hover-action-menu-actions",
|
|
12631
12642
|
onClick: r[0] ||= J(() => {}, ["stop"])
|
|
12632
12643
|
}, {
|
|
12633
|
-
default: K(() => [s("div",
|
|
12644
|
+
default: K(() => [s("div", Im, [(k(!0), o(t, null, M(e.options, (t) => (k(), i(fr, {
|
|
12634
12645
|
key: t.id,
|
|
12635
12646
|
variant: "dark",
|
|
12636
12647
|
position: "top-center",
|
|
@@ -12658,9 +12669,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12658
12669
|
_: 2
|
|
12659
12670
|
}, 1032, ["description"]))), 128))])]),
|
|
12660
12671
|
_: 1
|
|
12661
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
12672
|
+
}, 8, ["variant"])])) : a("", !0)], 10, Pm));
|
|
12662
12673
|
}
|
|
12663
|
-
}), [["__scopeId", "data-v-c4eb41f2"]]),
|
|
12674
|
+
}), [["__scopeId", "data-v-c4eb41f2"]]), Rm = () => {
|
|
12664
12675
|
let e = (e, n) => {
|
|
12665
12676
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
12666
12677
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -12673,7 +12684,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12673
12684
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
12674
12685
|
} : null
|
|
12675
12686
|
};
|
|
12676
|
-
},
|
|
12687
|
+
}, zm = /* @__PURE__ */ d({
|
|
12677
12688
|
__name: "QueryFormatter",
|
|
12678
12689
|
props: /* @__PURE__ */ _({ queryTermDisplayLimit: { default: 3 } }, {
|
|
12679
12690
|
modelValue: { required: !0 },
|
|
@@ -12687,7 +12698,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12687
12698
|
}),
|
|
12688
12699
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
12689
12700
|
setup(e) {
|
|
12690
|
-
let n = e, s = U(e, "modelValue"), c = U(e, "wrap-content"), { removeQueryOption: l } =
|
|
12701
|
+
let n = e, s = U(e, "modelValue"), c = U(e, "wrap-content"), { removeQueryOption: l } = Rm(), u = r(() => {
|
|
12691
12702
|
let e = s.value?.queryTerms || [];
|
|
12692
12703
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
12693
12704
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => {
|
|
@@ -12718,27 +12729,27 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12718
12729
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
12719
12730
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
12720
12731
|
}
|
|
12721
|
-
}),
|
|
12732
|
+
}), Bm = [
|
|
12722
12733
|
"aria-expanded",
|
|
12723
12734
|
"aria-activedescendant",
|
|
12724
12735
|
"disabled",
|
|
12725
12736
|
"placeholder",
|
|
12726
12737
|
"data-invalid"
|
|
12727
|
-
],
|
|
12738
|
+
], Vm = {
|
|
12728
12739
|
key: 2,
|
|
12729
12740
|
class: "pv-text-red pv-text-body-xs"
|
|
12730
|
-
},
|
|
12741
|
+
}, Hm = ["id"], Um = [
|
|
12731
12742
|
"id",
|
|
12732
12743
|
"aria-selected",
|
|
12733
12744
|
"aria-describedby",
|
|
12734
12745
|
"onMouseenter"
|
|
12735
|
-
],
|
|
12746
|
+
], Wm = {
|
|
12736
12747
|
key: 1,
|
|
12737
12748
|
role: "presentation"
|
|
12738
|
-
},
|
|
12749
|
+
}, Gm = {
|
|
12739
12750
|
key: 1,
|
|
12740
12751
|
class: "pv-text-center"
|
|
12741
|
-
},
|
|
12752
|
+
}, Km = /* @__PURE__ */ d({
|
|
12742
12753
|
__name: "PvQueryBuilderInput",
|
|
12743
12754
|
props: /* @__PURE__ */ _({
|
|
12744
12755
|
placeholder: { default: "Search" },
|
|
@@ -12791,7 +12802,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12791
12802
|
width: "100%",
|
|
12792
12803
|
maxWidth: "100%",
|
|
12793
12804
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
12794
|
-
}, f = W("search-input"), p = U(e, "searchText"), m = U(e, "query"), h = U(e, "options"), { addQueryOption: g, containsQueryOption: _, removeQueryOption: x } =
|
|
12805
|
+
}, f = W("search-input"), p = U(e, "searchText"), m = U(e, "query"), h = U(e, "options"), { addQueryOption: g, containsQueryOption: _, removeQueryOption: x } = Rm(), C = j(!1), w = j(!1), T = j(!1), E = ne(), D = r(() => !!(E.header || E.footer || E.empty)), O = te(), A = `${O}-options`, P = (e) => `${O}-option-${e}`, F = (e) => `${O}-group-${e}`, I = r(() => ie.value.length > 0 || n.optionsLoading || D.value), L = r(() => m.value === null ? n.placeholder : ""), z = j(null), B = r(() => z.value !== null && z.value !== "" && !w.value), ee = () => {
|
|
12795
12806
|
m.value = null, p.value = "", z.value = null, T.value = !1;
|
|
12796
12807
|
};
|
|
12797
12808
|
de("Enter", (e) => {
|
|
@@ -12915,7 +12926,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12915
12926
|
"--inset-size": "4px",
|
|
12916
12927
|
"--flex-gap": "4px"
|
|
12917
12928
|
}, e.enableWrapQueryTerms || T.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
12918
|
-
}, [u(
|
|
12929
|
+
}, [u(zm, {
|
|
12919
12930
|
modelValue: m.value,
|
|
12920
12931
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
12921
12932
|
"wrap-content": T.value,
|
|
@@ -12941,7 +12952,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12941
12952
|
style: S(p.value ? "min-width: 8rem;" : void 0),
|
|
12942
12953
|
onFocus: ge,
|
|
12943
12954
|
onBlur: ge
|
|
12944
|
-
}, null, 44,
|
|
12955
|
+
}, null, 44, Bm), [[oe, p.value]])], 4),
|
|
12945
12956
|
m.value && !e.hideClearButton ? (k(), i($, {
|
|
12946
12957
|
key: 1,
|
|
12947
12958
|
variant: "ghost",
|
|
@@ -12949,7 +12960,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12949
12960
|
size: "md",
|
|
12950
12961
|
onClick: ee
|
|
12951
12962
|
})) : a("", !0),
|
|
12952
|
-
B.value ? (k(), o("p",
|
|
12963
|
+
B.value ? (k(), o("p", Vm, R(z.value), 1)) : a("", !0),
|
|
12953
12964
|
I.value ? q((k(), i(ei, {
|
|
12954
12965
|
key: 3,
|
|
12955
12966
|
class: "pv-scrollbar-visible",
|
|
@@ -12959,12 +12970,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12959
12970
|
listId: A,
|
|
12960
12971
|
listRole: "listbox"
|
|
12961
12972
|
}, c({
|
|
12962
|
-
default: K(() => [e.optionsLoading ? (k(), o("div",
|
|
12973
|
+
default: K(() => [e.optionsLoading ? (k(), o("div", Gm, [u(Be, { variant: "dark" })])) : (k(), o(t, { key: 0 }, [ie.value.length > 0 ? (k(!0), o(t, { key: 0 }, M(ae.value, ([e, n], r) => (k(), o(t, { key: e }, [e ? (k(), o("li", {
|
|
12963
12974
|
key: 0,
|
|
12964
12975
|
id: F(r),
|
|
12965
12976
|
role: "presentation",
|
|
12966
12977
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
12967
|
-
}, R(e), 9,
|
|
12978
|
+
}, R(e), 9, Hm)) : a("", !0), (k(!0), o(t, null, M(n, (t) => (k(), o("li", {
|
|
12968
12979
|
key: `${e}-${t.id}`,
|
|
12969
12980
|
id: P(le.value.get(t) ?? -1),
|
|
12970
12981
|
role: "option",
|
|
@@ -12976,7 +12987,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12976
12987
|
config: l,
|
|
12977
12988
|
queryText: p.value,
|
|
12978
12989
|
onHandleSelected: (e) => me(t)
|
|
12979
|
-
}), null, 16, ["queryText", "onHandleSelected"])], 42,
|
|
12990
|
+
}), null, 16, ["queryText", "onHandleSelected"])], 42, Um))), 128))], 64))), 128)) : n.$slots.empty ? (k(), o("li", Wm, [N(n.$slots, "empty")])) : a("", !0)], 64))]),
|
|
12980
12991
|
_: 2
|
|
12981
12992
|
}, [n.$slots.header ? {
|
|
12982
12993
|
name: "header",
|
|
@@ -12989,28 +13000,28 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12989
13000
|
} : void 0]), 1536)), [[se, C.value]]) : a("", !0)
|
|
12990
13001
|
], 34)), [[V(ye), pe]]);
|
|
12991
13002
|
}
|
|
12992
|
-
}),
|
|
13003
|
+
}), qm = (e) => !!(e.active || e.children?.some(qm)), Jm = {
|
|
12993
13004
|
class: "pv-popover",
|
|
12994
13005
|
style: {
|
|
12995
13006
|
"--position": "static",
|
|
12996
13007
|
"--height": "350px"
|
|
12997
13008
|
}
|
|
12998
|
-
},
|
|
13009
|
+
}, Ym = {
|
|
12999
13010
|
role: "list",
|
|
13000
13011
|
class: "pv-popover-list"
|
|
13001
|
-
},
|
|
13012
|
+
}, Xm = ["data-active"], Zm = [
|
|
13002
13013
|
"href",
|
|
13003
13014
|
"role",
|
|
13004
13015
|
"tabindex",
|
|
13005
13016
|
"data-active",
|
|
13006
13017
|
"aria-expanded"
|
|
13007
|
-
],
|
|
13018
|
+
], Qm = {
|
|
13008
13019
|
key: 0,
|
|
13009
13020
|
class: "pv-tag-purple pv-tag-sm"
|
|
13010
|
-
},
|
|
13021
|
+
}, $m = ["href"], eh = {
|
|
13011
13022
|
key: 0,
|
|
13012
13023
|
class: "pv-tag-purple pv-tag-sm"
|
|
13013
|
-
},
|
|
13024
|
+
}, th = /* @__PURE__ */ d({
|
|
13014
13025
|
name: "PvSidebarNavFlyout",
|
|
13015
13026
|
__name: "PvSidebarNavFlyout",
|
|
13016
13027
|
props: {
|
|
@@ -13021,7 +13032,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13021
13032
|
let n = j({});
|
|
13022
13033
|
return (r, c) => {
|
|
13023
13034
|
let l = P("PvSidebarNavFlyout", !0);
|
|
13024
|
-
return k(), o("div",
|
|
13035
|
+
return k(), o("div", Jm, [s("ul", Ym, [(k(!0), o(t, null, M(e.items, (t) => (k(), o("li", {
|
|
13025
13036
|
key: t.value,
|
|
13026
13037
|
"data-active": !t.children?.length && t.active || void 0
|
|
13027
13038
|
}, [t.children?.length ? (k(), i(ur, {
|
|
@@ -13039,18 +13050,18 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13039
13050
|
trigger: K(() => [s("a", v({ href: t.url }, { ref_for: !0 }, t.linkAttrs, {
|
|
13040
13051
|
role: t.url ? void 0 : "button",
|
|
13041
13052
|
tabindex: t.url ? void 0 : 0,
|
|
13042
|
-
"data-active": V(
|
|
13053
|
+
"data-active": V(qm)(t) || void 0,
|
|
13043
13054
|
"aria-haspopup": "true",
|
|
13044
13055
|
"aria-expanded": !!n.value[t.value],
|
|
13045
13056
|
style: { "flex-wrap": "wrap" }
|
|
13046
13057
|
}), [
|
|
13047
13058
|
s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, R(t.label), 3),
|
|
13048
|
-
t.badge ? (k(), o("span",
|
|
13059
|
+
t.badge ? (k(), o("span", Qm, R(t.badge.toUpperCase()), 1)) : a("", !0),
|
|
13049
13060
|
u(Q, {
|
|
13050
13061
|
name: "chevron-right",
|
|
13051
13062
|
class: "pv-icon-16"
|
|
13052
13063
|
})
|
|
13053
|
-
], 16,
|
|
13064
|
+
], 16, Zm)]),
|
|
13054
13065
|
content: K(() => [u(l, {
|
|
13055
13066
|
items: t.children,
|
|
13056
13067
|
disabled: e.disabled
|
|
@@ -13063,111 +13074,111 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13063
13074
|
])) : (k(), o("a", v({
|
|
13064
13075
|
key: 1,
|
|
13065
13076
|
href: t.url
|
|
13066
|
-
}, { ref_for: !0 }, t.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, R(t.label), 3), t.badge ? (k(), o("span",
|
|
13077
|
+
}, { ref_for: !0 }, t.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, R(t.label), 3), t.badge ? (k(), o("span", eh, R(t.badge.toUpperCase()), 1)) : a("", !0)], 16, $m))], 8, Xm))), 128))])]);
|
|
13067
13078
|
};
|
|
13068
13079
|
}
|
|
13069
|
-
}),
|
|
13080
|
+
}), nh = {
|
|
13070
13081
|
key: 0,
|
|
13071
13082
|
class: "sidebar-additional-header"
|
|
13072
|
-
},
|
|
13083
|
+
}, rh = ["data-sidebar-collapsed"], ih = { class: "sidebar-header-content pv-full-width" }, ah = {
|
|
13073
13084
|
key: 0,
|
|
13074
13085
|
class: "pv-sidebar-nav-header pv-sidebar-surface-secondary"
|
|
13075
|
-
},
|
|
13086
|
+
}, oh = ["aria-label", "aria-expanded"], sh = {
|
|
13076
13087
|
class: "pv-flex",
|
|
13077
13088
|
style: { "min-width": "0" }
|
|
13078
|
-
},
|
|
13089
|
+
}, ch = {
|
|
13079
13090
|
class: "pv-avatar-xs",
|
|
13080
13091
|
style: {
|
|
13081
13092
|
"border-radius": "4px",
|
|
13082
13093
|
"flex-shrink": "0"
|
|
13083
13094
|
}
|
|
13084
|
-
},
|
|
13095
|
+
}, lh = ["src"], uh = { key: 1 }, dh = [
|
|
13085
13096
|
"data-sidebar-collapsed",
|
|
13086
13097
|
"data-sidebar-expanding",
|
|
13087
13098
|
"title"
|
|
13088
|
-
],
|
|
13099
|
+
], fh = {
|
|
13089
13100
|
class: "pv-popover",
|
|
13090
13101
|
style: {
|
|
13091
13102
|
width: "fit-content",
|
|
13092
13103
|
"max-width": "280px",
|
|
13093
13104
|
"margin-top": "4px"
|
|
13094
13105
|
}
|
|
13095
|
-
},
|
|
13106
|
+
}, ph = {
|
|
13096
13107
|
role: "list",
|
|
13097
13108
|
class: "pv-popover-list pv-flow",
|
|
13098
13109
|
style: { "--flow-size": "0.25rem" },
|
|
13099
13110
|
"data-testid": "pv-sidebar-org-list"
|
|
13100
|
-
},
|
|
13111
|
+
}, mh = ["data-active"], hh = ["href", "data-org-value"], gh = {
|
|
13101
13112
|
class: "pv-avatar-xs",
|
|
13102
13113
|
style: { "border-radius": "4px" }
|
|
13103
|
-
},
|
|
13114
|
+
}, _h = ["src"], vh = { key: 1 }, yh = ["title"], bh = ["data-active"], xh = ["href", "data-org-value"], Sh = ["title"], Ch = { class: "pv-sidebar-nav pv-sidebar-surface-secondary" }, wh = { key: 0 }, Th = {
|
|
13104
13115
|
key: 1,
|
|
13105
13116
|
role: "list",
|
|
13106
13117
|
class: "pv-full-width pv-flow",
|
|
13107
13118
|
style: { "--flow-size": "0.25rem" }
|
|
13108
|
-
},
|
|
13119
|
+
}, Eh = {
|
|
13109
13120
|
key: 0,
|
|
13110
13121
|
class: "pv-sidebar-nav-separator",
|
|
13111
13122
|
"aria-hidden": "true"
|
|
13112
|
-
},
|
|
13123
|
+
}, Dh = ["data-sidebar-collapsed"], Oh = {
|
|
13113
13124
|
key: 0,
|
|
13114
13125
|
class: "pv-tag-purple pv-tag-sm"
|
|
13115
|
-
},
|
|
13126
|
+
}, kh = ["onClick", "onKeydown"], Ah = [
|
|
13116
13127
|
"href",
|
|
13117
13128
|
"aria-current",
|
|
13118
13129
|
"title"
|
|
13119
|
-
],
|
|
13130
|
+
], jh = ["data-sidebar-collapsed"], Mh = {
|
|
13120
13131
|
key: 0,
|
|
13121
13132
|
class: "pv-tag-purple pv-tag-sm"
|
|
13122
|
-
},
|
|
13133
|
+
}, Nh = {
|
|
13123
13134
|
class: "pv-popover",
|
|
13124
13135
|
style: { "--position": "static" }
|
|
13125
|
-
},
|
|
13136
|
+
}, Ph = {
|
|
13126
13137
|
role: "list",
|
|
13127
13138
|
class: "pv-popover-list"
|
|
13128
|
-
},
|
|
13139
|
+
}, Fh = ["data-active"], Ih = ["href"], Lh = {
|
|
13129
13140
|
key: 0,
|
|
13130
13141
|
class: "pv-tag-purple pv-tag-sm"
|
|
13131
|
-
},
|
|
13142
|
+
}, Rh = ["onClick", "onAuxclick"], zh = ["data-sidebar-collapsed"], Bh = ["data-sidebar-collapsed"], Vh = [
|
|
13132
13143
|
"href",
|
|
13133
13144
|
"role",
|
|
13134
13145
|
"tabindex",
|
|
13135
13146
|
"aria-current",
|
|
13136
13147
|
"aria-expanded",
|
|
13137
13148
|
"title"
|
|
13138
|
-
],
|
|
13149
|
+
], Hh = {
|
|
13139
13150
|
class: "pv-flex pv-space-between pv-full-width",
|
|
13140
13151
|
style: { "flex-wrap": "wrap" }
|
|
13141
|
-
},
|
|
13152
|
+
}, Uh = {
|
|
13142
13153
|
key: 0,
|
|
13143
13154
|
class: "pv-tag-purple pv-tag-sm"
|
|
13144
|
-
},
|
|
13155
|
+
}, Wh = [
|
|
13145
13156
|
"href",
|
|
13146
13157
|
"aria-current",
|
|
13147
13158
|
"title"
|
|
13148
|
-
],
|
|
13159
|
+
], Gh = {
|
|
13149
13160
|
class: "pv-flex pv-space-between pv-full-width",
|
|
13150
13161
|
style: { "flex-wrap": "wrap" }
|
|
13151
|
-
},
|
|
13162
|
+
}, Kh = {
|
|
13152
13163
|
key: 0,
|
|
13153
13164
|
class: "pv-tag-purple pv-tag-sm"
|
|
13154
|
-
},
|
|
13165
|
+
}, qh = {
|
|
13155
13166
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
13156
13167
|
style: { "--bottom": "0" }
|
|
13157
|
-
},
|
|
13168
|
+
}, Jh = ["aria-expanded"], Yh = ["data-sidebar-collapsed"], Xh = { class: "pv-popover pv-text-default pv-text-body-md" }, Zh = [
|
|
13158
13169
|
"aria-label",
|
|
13159
13170
|
"aria-expanded",
|
|
13160
13171
|
"title"
|
|
13161
|
-
],
|
|
13172
|
+
], Qh = {
|
|
13162
13173
|
class: "pv-avatar-xs",
|
|
13163
13174
|
style: {
|
|
13164
13175
|
"border-radius": "50%",
|
|
13165
13176
|
"flex-shrink": "0"
|
|
13166
13177
|
}
|
|
13167
|
-
},
|
|
13178
|
+
}, $h = ["src"], eg = { key: 1 }, tg = ["data-sidebar-collapsed"], ng = {
|
|
13168
13179
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
13169
13180
|
style: { "--height": "750px" }
|
|
13170
|
-
},
|
|
13181
|
+
}, rg = { class: "content-panel" }, ig = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", ag = /* @__PURE__ */ d({
|
|
13171
13182
|
__name: "PvSidebar",
|
|
13172
13183
|
props: /* @__PURE__ */ _({
|
|
13173
13184
|
disableOrgProfileHover: { type: Boolean },
|
|
@@ -13192,11 +13203,11 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13192
13203
|
})), B, ee = (e) => e.hoverPanelSlot ? p ? (I.value, rr(p, e.hoverPanelSlot)) : !!x[e.hoverPanelSlot] : !1, H = (e, t, n) => {
|
|
13193
13204
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
13194
13205
|
}, te = (e) => {
|
|
13195
|
-
let t = A.get(e), n = t?.querySelector(
|
|
13206
|
+
let t = A.get(e), n = t?.querySelector(ig);
|
|
13196
13207
|
if (n) return n;
|
|
13197
13208
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
13198
|
-
if (t.matches(
|
|
13199
|
-
let e = t.querySelector(
|
|
13209
|
+
if (t.matches(ig)) return t;
|
|
13210
|
+
let e = t.querySelector(ig);
|
|
13200
13211
|
if (e) return e;
|
|
13201
13212
|
}
|
|
13202
13213
|
}, W = (e, t) => {
|
|
@@ -13231,12 +13242,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13231
13242
|
}, se = r(() => (c.organizations && oe(c.organizations)) ?? c.organizations?.[0]), ce = j((() => {
|
|
13232
13243
|
let e = {};
|
|
13233
13244
|
return c.navItems?.forEach((t) => {
|
|
13234
|
-
|
|
13245
|
+
qm(t) && (e[t.value] = !0);
|
|
13235
13246
|
}), e;
|
|
13236
13247
|
})());
|
|
13237
13248
|
G(() => c.navItems, (e) => {
|
|
13238
13249
|
e?.forEach((e) => {
|
|
13239
|
-
|
|
13250
|
+
qm(e) && (ce.value[e.value] = !0);
|
|
13240
13251
|
});
|
|
13241
13252
|
});
|
|
13242
13253
|
let q = U(e, "modelValue"), J = j(!1), ue = r(() => !q.value && J.value), de = n, Y = j(!1), X = j(!1), Z = j(!1), pe = j({}), me = () => {
|
|
@@ -13255,7 +13266,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13255
13266
|
q.value = !q.value, de("change", { collapsed: q.value });
|
|
13256
13267
|
}, ge = (e) => {
|
|
13257
13268
|
e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (J.value = !1);
|
|
13258
|
-
}, _e = (e) => e.some(
|
|
13269
|
+
}, _e = (e) => e.some(qm), ve = (e, t) => {
|
|
13259
13270
|
if (t.url) {
|
|
13260
13271
|
if (e.ctrlKey || e.metaKey || e.shiftKey || e.button === 1) {
|
|
13261
13272
|
window.open(t.url, "_blank", "noopener");
|
|
@@ -13277,10 +13288,10 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13277
13288
|
ref_key: "sidebarPanel",
|
|
13278
13289
|
ref: E,
|
|
13279
13290
|
class: "sidebar-panel"
|
|
13280
|
-
}, [s("div", null, [V(h) ? (k(), o("div",
|
|
13291
|
+
}, [s("div", null, [V(h) ? (k(), o("div", nh, [N(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", {
|
|
13281
13292
|
class: b(["sidebar-header", [{ "pv-border-bottom": q.value }]]),
|
|
13282
13293
|
"data-sidebar-collapsed": q.value || void 0
|
|
13283
|
-
}, [s("div",
|
|
13294
|
+
}, [s("div", ih, [e.organizations && e.organizations.length ? (k(), o("div", ah, [u(ur, {
|
|
13284
13295
|
modelValue: X.value,
|
|
13285
13296
|
"onUpdate:modelValue": r[0] ||= (e) => X.value = e,
|
|
13286
13297
|
position: q.value ? "right-top" : "bottom-left",
|
|
@@ -13306,23 +13317,23 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13306
13317
|
"data-testid": "pv-sidebar-org-switcher",
|
|
13307
13318
|
"aria-label": `Switch organization: ${se.value?.label}`,
|
|
13308
13319
|
"aria-expanded": X.value
|
|
13309
|
-
}, [s("div",
|
|
13320
|
+
}, [s("div", sh, [s("span", ch, [se.value?.avatarUrl ? (k(), o("img", {
|
|
13310
13321
|
key: 0,
|
|
13311
13322
|
src: se.value.avatarUrl,
|
|
13312
13323
|
alt: "Organization Avatar"
|
|
13313
|
-
}, null, 8,
|
|
13324
|
+
}, null, 8, lh)) : (k(), o("span", uh, R(se.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
13314
13325
|
class: "pv-text-title-lg pv-truncate",
|
|
13315
13326
|
"data-sidebar-expanded-content": "",
|
|
13316
13327
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13317
13328
|
"data-sidebar-expanding": ue.value || void 0,
|
|
13318
13329
|
title: se.value?.label
|
|
13319
|
-
}, R(se.value?.label), 9,
|
|
13330
|
+
}, R(se.value?.label), 9, dh)]), u(Q, {
|
|
13320
13331
|
name: "chevron-down",
|
|
13321
13332
|
class: "pv-icon-16",
|
|
13322
13333
|
"data-sidebar-expanded-content": "",
|
|
13323
13334
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13324
13335
|
"data-sidebar-expanding": ue.value || void 0
|
|
13325
|
-
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10,
|
|
13336
|
+
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10, oh)]),
|
|
13326
13337
|
_: 1
|
|
13327
13338
|
}, 8, [
|
|
13328
13339
|
"description",
|
|
@@ -13330,19 +13341,19 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13330
13341
|
"use-teleport",
|
|
13331
13342
|
"teleport-location"
|
|
13332
13343
|
])]),
|
|
13333
|
-
content: K(() => [s("div",
|
|
13344
|
+
content: K(() => [s("div", fh, [s("ul", ph, [(k(!0), o(t, null, M(e.organizations, (e) => (k(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
|
|
13334
13345
|
class: "pv-flex",
|
|
13335
13346
|
href: e.url,
|
|
13336
13347
|
"data-testid": "pv-sidebar-org-option",
|
|
13337
13348
|
"data-org-value": e.value
|
|
13338
|
-
}, [s("div",
|
|
13349
|
+
}, [s("div", gh, [e.avatarUrl ? (k(), o("img", {
|
|
13339
13350
|
key: 0,
|
|
13340
13351
|
src: e.avatarUrl,
|
|
13341
13352
|
alt: "Organization Avatar"
|
|
13342
|
-
}, null, 8,
|
|
13353
|
+
}, null, 8, _h)) : (k(), o("span", vh, R(e.label.slice(0, 1)), 1))]), s("span", {
|
|
13343
13354
|
class: "pv-truncate pv-flex-item",
|
|
13344
13355
|
title: e.label
|
|
13345
|
-
}, R(e.label), 9,
|
|
13356
|
+
}, R(e.label), 9, yh)], 8, hh)], 8, mh), (k(!0), o(t, null, M(e.entities, (e) => (k(), o("li", {
|
|
13346
13357
|
key: e.value,
|
|
13347
13358
|
style: { "padding-left": "0.5rem" },
|
|
13348
13359
|
"data-active": e.active || void 0
|
|
@@ -13355,7 +13366,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13355
13366
|
}, [u(Q, { name: "corner-down-right" }), s("span", {
|
|
13356
13367
|
class: "pv-truncate",
|
|
13357
13368
|
title: e.label
|
|
13358
|
-
}, R(e.label), 9,
|
|
13369
|
+
}, R(e.label), 9, Sh)], 8, xh)], 8, bh))), 128))], 64))), 128))])])]),
|
|
13359
13370
|
_: 1
|
|
13360
13371
|
}, 8, [
|
|
13361
13372
|
"modelValue",
|
|
@@ -13384,9 +13395,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13384
13395
|
])]),
|
|
13385
13396
|
content: K(() => [l(R(q.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
13386
13397
|
_: 1
|
|
13387
|
-
}))], 10,
|
|
13388
|
-
V(m) ? (k(), o("div",
|
|
13389
|
-
e.navItems && e.navItems.length ? (k(), o("ul",
|
|
13398
|
+
}))], 10, rh)]), s("div", Ch, [
|
|
13399
|
+
V(m) ? (k(), o("div", wh, [N(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
13400
|
+
e.navItems && e.navItems.length ? (k(), o("ul", Th, [(k(!0), o(t, null, M(e.navItems, (e) => (k(), o(t, { key: e.value }, [e.separatorAtTop ? (k(), o("li", Eh)) : a("", !0), s("li", null, [ee(e) ? (k(), i(ur, {
|
|
13390
13401
|
key: 0,
|
|
13391
13402
|
modelValue: D.value[e.value],
|
|
13392
13403
|
"onUpdate:modelValue": (t) => D.value[e.value] = t,
|
|
@@ -13421,7 +13432,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13421
13432
|
"data-sidebar-expanded-content": "",
|
|
13422
13433
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13423
13434
|
style: { "flex-wrap": "wrap" }
|
|
13424
|
-
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span",
|
|
13435
|
+
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Oh, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, Dh)]),
|
|
13425
13436
|
_: 2
|
|
13426
13437
|
}, 1040, [
|
|
13427
13438
|
"class",
|
|
@@ -13439,7 +13450,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13439
13450
|
class: "pv-sidebar-hover-panel",
|
|
13440
13451
|
onClick: (t) => ie(t, e.value),
|
|
13441
13452
|
onKeydown: (t) => ae(t, e.value)
|
|
13442
|
-
}, [N(n.$slots, e.hoverPanelSlot)], 40,
|
|
13453
|
+
}, [N(n.$slots, e.hoverPanelSlot)], 40, kh)]),
|
|
13443
13454
|
_: 2
|
|
13444
13455
|
}, 1032, [
|
|
13445
13456
|
"modelValue",
|
|
@@ -13473,8 +13484,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13473
13484
|
"data-sidebar-expanded-content": "",
|
|
13474
13485
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13475
13486
|
style: { "flex-wrap": "wrap" }
|
|
13476
|
-
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span",
|
|
13477
|
-
content: K(() => [s("div",
|
|
13487
|
+
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Mh, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, jh)], 16, Ah)]),
|
|
13488
|
+
content: K(() => [s("div", Nh, [s("ul", Ph, [s("li", { "data-active": e.active || void 0 }, [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Lh, R(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Ih)], 8, Fh)])])]),
|
|
13478
13489
|
_: 2
|
|
13479
13490
|
}, 1032, [
|
|
13480
13491
|
"use-teleport",
|
|
@@ -13494,7 +13505,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13494
13505
|
trigger: K(() => [u(Ii, {
|
|
13495
13506
|
modelValue: ce.value[e.value],
|
|
13496
13507
|
"onUpdate:modelValue": (t) => ce.value[e.value] = t,
|
|
13497
|
-
"default-open": V(
|
|
13508
|
+
"default-open": V(qm)(e),
|
|
13498
13509
|
"summary-attrs": {
|
|
13499
13510
|
class: q.value ? "pv-sidebar-item-collapsed" : void 0,
|
|
13500
13511
|
"aria-current": _e(e.children) && q.value ? "page" : void 0
|
|
@@ -13513,7 +13524,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13513
13524
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
13514
13525
|
"data-sidebar-expanded-content": "",
|
|
13515
13526
|
"data-sidebar-collapsed": q.value || void 0
|
|
13516
|
-
}, R(e.label), 9,
|
|
13527
|
+
}, R(e.label), 9, zh)], 40, Rh)]),
|
|
13517
13528
|
default: K(() => [s("div", {
|
|
13518
13529
|
class: "pv-sidebar-nav-nested",
|
|
13519
13530
|
"data-sidebar-collapsed": q.value || void 0
|
|
@@ -13534,15 +13545,15 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13534
13545
|
trigger: K(() => [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, {
|
|
13535
13546
|
role: e.url ? void 0 : "button",
|
|
13536
13547
|
tabindex: e.url ? void 0 : 0,
|
|
13537
|
-
"aria-current": V(
|
|
13548
|
+
"aria-current": V(qm)(e) ? "page" : void 0,
|
|
13538
13549
|
"aria-haspopup": "true",
|
|
13539
13550
|
"aria-expanded": !!pe.value[e.value],
|
|
13540
13551
|
title: e.label
|
|
13541
|
-
}), [s("span",
|
|
13552
|
+
}), [s("span", Hh, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Uh, R(e.badge.toUpperCase()), 1)) : a("", !0)]), u(Q, {
|
|
13542
13553
|
name: "chevron-right",
|
|
13543
13554
|
class: "pv-icon-16"
|
|
13544
|
-
})], 16,
|
|
13545
|
-
content: K(() => [u(
|
|
13555
|
+
})], 16, Vh)]),
|
|
13556
|
+
content: K(() => [u(th, {
|
|
13546
13557
|
items: e.children,
|
|
13547
13558
|
disabled: q.value
|
|
13548
13559
|
}, null, 8, ["items", "disabled"])]),
|
|
@@ -13559,7 +13570,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13559
13570
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
13560
13571
|
"aria-current": e.active ? "page" : void 0,
|
|
13561
13572
|
title: e.label
|
|
13562
|
-
}), [s("span",
|
|
13573
|
+
}), [s("span", Gh, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Kh, R(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, Wh))], 64))), 128))], 8, Bh)]),
|
|
13563
13574
|
_: 2
|
|
13564
13575
|
}, 1032, [
|
|
13565
13576
|
"modelValue",
|
|
@@ -13567,7 +13578,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13567
13578
|
"default-open",
|
|
13568
13579
|
"summary-attrs"
|
|
13569
13580
|
])]),
|
|
13570
|
-
content: K(() => [u(
|
|
13581
|
+
content: K(() => [u(th, {
|
|
13571
13582
|
items: e.children,
|
|
13572
13583
|
disabled: !q.value
|
|
13573
13584
|
}, null, 8, ["items", "disabled"])]),
|
|
@@ -13577,7 +13588,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13577
13588
|
"teleport-location",
|
|
13578
13589
|
"disabled"
|
|
13579
13590
|
]))])], 64))), 128))])) : a("", !0),
|
|
13580
|
-
s("div",
|
|
13591
|
+
s("div", qh, [V(g) ? (k(), i(ur, {
|
|
13581
13592
|
key: 0,
|
|
13582
13593
|
modelValue: Y.value,
|
|
13583
13594
|
"onUpdate:modelValue": r[1] ||= (e) => Y.value = e,
|
|
@@ -13602,8 +13613,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13602
13613
|
}), s("span", {
|
|
13603
13614
|
"data-sidebar-expanded-content": "",
|
|
13604
13615
|
"data-sidebar-collapsed": q.value || void 0
|
|
13605
|
-
}, "Help", 8,
|
|
13606
|
-
content: K(() => [s("div",
|
|
13616
|
+
}, "Help", 8, Yh)], 10, Jh)]),
|
|
13617
|
+
content: K(() => [s("div", Xh, [N(n.$slots, "sidebar-help-content")])]),
|
|
13607
13618
|
_: 3
|
|
13608
13619
|
}, 8, [
|
|
13609
13620
|
"modelValue",
|
|
@@ -13628,16 +13639,16 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13628
13639
|
"aria-label": e.profile.name,
|
|
13629
13640
|
"aria-expanded": Z.value,
|
|
13630
13641
|
title: e.profile.name
|
|
13631
|
-
}, [s("span",
|
|
13642
|
+
}, [s("span", Qh, [e.profile.avatarUrl ? (k(), o("img", {
|
|
13632
13643
|
key: 0,
|
|
13633
13644
|
src: e.profile.avatarUrl,
|
|
13634
13645
|
alt: ""
|
|
13635
|
-
}, null, 8,
|
|
13646
|
+
}, null, 8, $h)) : (k(), o("span", eg, R(e.profile.name.slice(0, 1)), 1))]), s("span", {
|
|
13636
13647
|
class: "pv-truncate",
|
|
13637
13648
|
"data-sidebar-expanded-content": "",
|
|
13638
13649
|
"data-sidebar-collapsed": q.value || void 0
|
|
13639
|
-
}, R(e.profile.name), 9,
|
|
13640
|
-
content: K(() => [s("div",
|
|
13650
|
+
}, R(e.profile.name), 9, tg)], 10, Zh)]),
|
|
13651
|
+
content: K(() => [s("div", ng, [N(n.$slots, "sidebar-profile-content")])]),
|
|
13641
13652
|
_: 3
|
|
13642
13653
|
}, 8, [
|
|
13643
13654
|
"modelValue",
|
|
@@ -13646,7 +13657,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13646
13657
|
"teleport-location"
|
|
13647
13658
|
])) : a("", !0)])
|
|
13648
13659
|
])], 512),
|
|
13649
|
-
s("div",
|
|
13660
|
+
s("div", rg, [N(n.$slots, "default")]),
|
|
13650
13661
|
s("div", {
|
|
13651
13662
|
ref_key: "popoverTeleportTarget",
|
|
13652
13663
|
ref: w,
|
|
@@ -13654,28 +13665,28 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13654
13665
|
}, null, 512)
|
|
13655
13666
|
], 38));
|
|
13656
13667
|
}
|
|
13657
|
-
}),
|
|
13668
|
+
}), og = (e) => !!(e.active || e.children?.some(og)), sg = {
|
|
13658
13669
|
class: "pv-popover",
|
|
13659
13670
|
style: {
|
|
13660
13671
|
"--position": "static",
|
|
13661
13672
|
"--height": "350px"
|
|
13662
13673
|
}
|
|
13663
|
-
},
|
|
13674
|
+
}, cg = {
|
|
13664
13675
|
role: "list",
|
|
13665
13676
|
class: "pv-popover-list"
|
|
13666
|
-
},
|
|
13677
|
+
}, lg = ["data-active"], ug = [
|
|
13667
13678
|
"href",
|
|
13668
13679
|
"role",
|
|
13669
13680
|
"tabindex",
|
|
13670
13681
|
"data-active",
|
|
13671
13682
|
"aria-expanded"
|
|
13672
|
-
],
|
|
13683
|
+
], dg = {
|
|
13673
13684
|
key: 0,
|
|
13674
13685
|
class: "pv-tag-purple pv-tag-sm"
|
|
13675
|
-
},
|
|
13686
|
+
}, fg = ["href"], pg = {
|
|
13676
13687
|
key: 0,
|
|
13677
13688
|
class: "pv-tag-purple pv-tag-sm"
|
|
13678
|
-
},
|
|
13689
|
+
}, mg = /* @__PURE__ */ d({
|
|
13679
13690
|
name: "PvSidebarV2NavFlyout",
|
|
13680
13691
|
__name: "PvSidebarV2NavFlyout",
|
|
13681
13692
|
props: {
|
|
@@ -13686,7 +13697,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13686
13697
|
let n = j({});
|
|
13687
13698
|
return (r, c) => {
|
|
13688
13699
|
let l = P("PvSidebarV2NavFlyout", !0);
|
|
13689
|
-
return k(), o("div",
|
|
13700
|
+
return k(), o("div", sg, [s("ul", cg, [(k(!0), o(t, null, M(e.items, (t) => (k(), o("li", {
|
|
13690
13701
|
key: t.value,
|
|
13691
13702
|
"data-active": !t.children?.length && t.active || void 0
|
|
13692
13703
|
}, [t.children?.length ? (k(), i(ur, {
|
|
@@ -13704,18 +13715,18 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13704
13715
|
trigger: K(() => [s("a", v({ href: t.url }, { ref_for: !0 }, t.linkAttrs, {
|
|
13705
13716
|
role: t.url ? void 0 : "button",
|
|
13706
13717
|
tabindex: t.url ? void 0 : 0,
|
|
13707
|
-
"data-active": V(
|
|
13718
|
+
"data-active": V(og)(t) || void 0,
|
|
13708
13719
|
"aria-haspopup": "true",
|
|
13709
13720
|
"aria-expanded": !!n.value[t.value],
|
|
13710
13721
|
style: { "flex-wrap": "wrap" }
|
|
13711
13722
|
}), [
|
|
13712
13723
|
s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, R(t.label), 3),
|
|
13713
|
-
t.badge ? (k(), o("span",
|
|
13724
|
+
t.badge ? (k(), o("span", dg, R(t.badge.toUpperCase()), 1)) : a("", !0),
|
|
13714
13725
|
u(Q, {
|
|
13715
13726
|
name: "chevron-right",
|
|
13716
13727
|
class: "pv-icon-16"
|
|
13717
13728
|
})
|
|
13718
|
-
], 16,
|
|
13729
|
+
], 16, ug)]),
|
|
13719
13730
|
content: K(() => [u(l, {
|
|
13720
13731
|
items: t.children,
|
|
13721
13732
|
disabled: e.disabled
|
|
@@ -13728,108 +13739,108 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13728
13739
|
])) : (k(), o("a", v({
|
|
13729
13740
|
key: 1,
|
|
13730
13741
|
href: t.url
|
|
13731
|
-
}, { ref_for: !0 }, t.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, R(t.label), 3), t.badge ? (k(), o("span",
|
|
13742
|
+
}, { ref_for: !0 }, t.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, R(t.label), 3), t.badge ? (k(), o("span", pg, R(t.badge.toUpperCase()), 1)) : a("", !0)], 16, fg))], 8, lg))), 128))])]);
|
|
13732
13743
|
};
|
|
13733
13744
|
}
|
|
13734
|
-
}),
|
|
13745
|
+
}), hg = {
|
|
13735
13746
|
key: 0,
|
|
13736
13747
|
class: "sidebar-additional-header"
|
|
13737
|
-
},
|
|
13748
|
+
}, gg = ["data-sidebar-collapsed"], _g = { class: "sidebar-header-content pv-full-width" }, vg = ["aria-label", "aria-expanded"], yg = {
|
|
13738
13749
|
class: "pv-flex",
|
|
13739
13750
|
style: { "min-width": "0" }
|
|
13740
|
-
},
|
|
13751
|
+
}, bg = {
|
|
13741
13752
|
class: "pv-avatar-xs",
|
|
13742
13753
|
style: {
|
|
13743
13754
|
"border-radius": "4px",
|
|
13744
13755
|
"flex-shrink": "0"
|
|
13745
13756
|
}
|
|
13746
|
-
},
|
|
13757
|
+
}, xg = ["src"], Sg = { key: 1 }, Cg = [
|
|
13747
13758
|
"data-sidebar-collapsed",
|
|
13748
13759
|
"data-sidebar-expanding",
|
|
13749
13760
|
"title"
|
|
13750
|
-
],
|
|
13761
|
+
], wg = {
|
|
13751
13762
|
class: "pv-popover",
|
|
13752
13763
|
style: {
|
|
13753
13764
|
width: "fit-content",
|
|
13754
13765
|
"max-width": "280px",
|
|
13755
13766
|
"margin-top": "4px"
|
|
13756
13767
|
}
|
|
13757
|
-
},
|
|
13768
|
+
}, Tg = {
|
|
13758
13769
|
role: "list",
|
|
13759
13770
|
class: "pv-popover-list pv-flow",
|
|
13760
13771
|
style: { "--flow-size": "0.25rem" },
|
|
13761
13772
|
"data-testid": "pv-sidebar-org-list"
|
|
13762
|
-
},
|
|
13773
|
+
}, Eg = ["data-active"], Dg = ["href", "data-org-value"], Og = {
|
|
13763
13774
|
class: "pv-avatar-xs",
|
|
13764
13775
|
style: { "border-radius": "4px" }
|
|
13765
|
-
},
|
|
13776
|
+
}, kg = ["src"], Ag = { key: 1 }, jg = ["title"], Mg = ["data-active"], Ng = ["href", "data-org-value"], Pg = ["title"], Fg = { key: 0 }, Ig = {
|
|
13766
13777
|
key: 1,
|
|
13767
13778
|
role: "list",
|
|
13768
13779
|
class: "pv-full-width pv-flow",
|
|
13769
13780
|
style: { "--flow-size": "0.25rem" }
|
|
13770
|
-
},
|
|
13781
|
+
}, Lg = {
|
|
13771
13782
|
key: 0,
|
|
13772
13783
|
class: "pv-sidebar-nav-separator",
|
|
13773
13784
|
"aria-hidden": "true"
|
|
13774
|
-
},
|
|
13785
|
+
}, Rg = ["data-sidebar-collapsed"], zg = {
|
|
13775
13786
|
key: 0,
|
|
13776
13787
|
class: "pv-tag-purple pv-tag-sm"
|
|
13777
|
-
},
|
|
13788
|
+
}, Bg = ["onClick", "onKeydown"], Vg = [
|
|
13778
13789
|
"href",
|
|
13779
13790
|
"aria-current",
|
|
13780
13791
|
"title"
|
|
13781
|
-
],
|
|
13792
|
+
], Hg = ["data-sidebar-collapsed"], Ug = {
|
|
13782
13793
|
key: 0,
|
|
13783
13794
|
class: "pv-tag-purple pv-tag-sm"
|
|
13784
|
-
},
|
|
13795
|
+
}, Wg = {
|
|
13785
13796
|
class: "pv-popover",
|
|
13786
13797
|
style: { "--position": "static" }
|
|
13787
|
-
},
|
|
13798
|
+
}, Gg = {
|
|
13788
13799
|
role: "list",
|
|
13789
13800
|
class: "pv-popover-list"
|
|
13790
|
-
},
|
|
13801
|
+
}, Kg = ["data-active"], qg = ["href"], Jg = {
|
|
13791
13802
|
key: 0,
|
|
13792
13803
|
class: "pv-tag-purple pv-tag-sm"
|
|
13793
|
-
},
|
|
13804
|
+
}, Yg = ["onClick", "onAuxclick"], Xg = ["data-sidebar-collapsed"], Zg = ["data-sidebar-collapsed"], Qg = [
|
|
13794
13805
|
"href",
|
|
13795
13806
|
"role",
|
|
13796
13807
|
"tabindex",
|
|
13797
13808
|
"aria-current",
|
|
13798
13809
|
"aria-expanded",
|
|
13799
13810
|
"title"
|
|
13800
|
-
],
|
|
13811
|
+
], $g = {
|
|
13801
13812
|
class: "pv-flex pv-space-between pv-full-width",
|
|
13802
13813
|
style: { "flex-wrap": "wrap" }
|
|
13803
|
-
},
|
|
13814
|
+
}, e_ = {
|
|
13804
13815
|
key: 0,
|
|
13805
13816
|
class: "pv-tag-purple pv-tag-sm"
|
|
13806
|
-
},
|
|
13817
|
+
}, t_ = [
|
|
13807
13818
|
"href",
|
|
13808
13819
|
"aria-current",
|
|
13809
13820
|
"title"
|
|
13810
|
-
],
|
|
13821
|
+
], n_ = {
|
|
13811
13822
|
class: "pv-flex pv-space-between pv-full-width",
|
|
13812
13823
|
style: { "flex-wrap": "wrap" }
|
|
13813
|
-
},
|
|
13824
|
+
}, r_ = {
|
|
13814
13825
|
key: 0,
|
|
13815
13826
|
class: "pv-tag-purple pv-tag-sm"
|
|
13816
|
-
},
|
|
13827
|
+
}, i_ = {
|
|
13817
13828
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
13818
13829
|
style: { "--bottom": "0" }
|
|
13819
|
-
},
|
|
13830
|
+
}, a_ = ["aria-expanded"], o_ = ["data-sidebar-collapsed"], s_ = { class: "pv-popover pv-text-default pv-text-body-md" }, c_ = [
|
|
13820
13831
|
"aria-label",
|
|
13821
13832
|
"aria-expanded",
|
|
13822
13833
|
"title"
|
|
13823
|
-
],
|
|
13834
|
+
], l_ = {
|
|
13824
13835
|
class: "pv-avatar-xs",
|
|
13825
13836
|
style: {
|
|
13826
13837
|
"border-radius": "50%",
|
|
13827
13838
|
"flex-shrink": "0"
|
|
13828
13839
|
}
|
|
13829
|
-
},
|
|
13840
|
+
}, u_ = ["src"], d_ = { key: 1 }, f_ = ["data-sidebar-collapsed"], p_ = {
|
|
13830
13841
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
13831
13842
|
style: { "--height": "750px" }
|
|
13832
|
-
},
|
|
13843
|
+
}, m_ = { class: "content-panel" }, h_ = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", g_ = /* @__PURE__ */ d({
|
|
13833
13844
|
__name: "PvSidebarV2",
|
|
13834
13845
|
props: /* @__PURE__ */ _({
|
|
13835
13846
|
disableOrgProfileHover: { type: Boolean },
|
|
@@ -13854,11 +13865,11 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13854
13865
|
})), B, ee = (e) => e.hoverPanelSlot ? p ? (I.value, rr(p, e.hoverPanelSlot)) : !!x[e.hoverPanelSlot] : !1, H = (e, t, n) => {
|
|
13855
13866
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
13856
13867
|
}, te = (e) => {
|
|
13857
|
-
let t = A.get(e), n = t?.querySelector(
|
|
13868
|
+
let t = A.get(e), n = t?.querySelector(h_);
|
|
13858
13869
|
if (n) return n;
|
|
13859
13870
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
13860
|
-
if (t.matches(
|
|
13861
|
-
let e = t.querySelector(
|
|
13871
|
+
if (t.matches(h_)) return t;
|
|
13872
|
+
let e = t.querySelector(h_);
|
|
13862
13873
|
if (e) return e;
|
|
13863
13874
|
}
|
|
13864
13875
|
}, W = (e, t) => {
|
|
@@ -13893,12 +13904,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13893
13904
|
}, se = r(() => (c.organizations && oe(c.organizations)) ?? c.organizations?.[0]), ce = j((() => {
|
|
13894
13905
|
let e = {};
|
|
13895
13906
|
return c.navItems?.forEach((t) => {
|
|
13896
|
-
|
|
13907
|
+
og(t) && (e[t.value] = !0);
|
|
13897
13908
|
}), e;
|
|
13898
13909
|
})());
|
|
13899
13910
|
G(() => c.navItems, (e) => {
|
|
13900
13911
|
e?.forEach((e) => {
|
|
13901
|
-
|
|
13912
|
+
og(e) && (ce.value[e.value] = !0);
|
|
13902
13913
|
});
|
|
13903
13914
|
});
|
|
13904
13915
|
let q = U(e, "modelValue"), J = j(!1), ue = r(() => !q.value && J.value), de = n, Y = j(!1), X = j(!1), Z = j(!1), pe = j({}), me = () => {
|
|
@@ -13917,7 +13928,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13917
13928
|
q.value = !q.value, de("change", { collapsed: q.value });
|
|
13918
13929
|
}, ge = (e) => {
|
|
13919
13930
|
e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (J.value = !1);
|
|
13920
|
-
}, _e = (e) => e.some(
|
|
13931
|
+
}, _e = (e) => e.some(og), ve = (e, t) => {
|
|
13921
13932
|
if (t.url) {
|
|
13922
13933
|
if (e.ctrlKey || e.metaKey || e.shiftKey || e.button === 1) {
|
|
13923
13934
|
window.open(t.url, "_blank", "noopener");
|
|
@@ -13939,10 +13950,10 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13939
13950
|
ref_key: "sidebarPanel",
|
|
13940
13951
|
ref: E,
|
|
13941
13952
|
class: "sidebar-panel"
|
|
13942
|
-
}, [s("div", null, [V(h) ? (k(), o("div",
|
|
13953
|
+
}, [s("div", null, [V(h) ? (k(), o("div", hg, [N(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", {
|
|
13943
13954
|
class: b(["sidebar-header", [{ "pv-border-bottom": q.value }]]),
|
|
13944
13955
|
"data-sidebar-collapsed": q.value || void 0
|
|
13945
|
-
}, [s("div",
|
|
13956
|
+
}, [s("div", _g, [e.organizations && e.organizations.length ? (k(), o("div", {
|
|
13946
13957
|
key: 0,
|
|
13947
13958
|
class: b(["pv-sidebar-nav-header", e.variant && `pv-sidebar-surface-${e.variant}`])
|
|
13948
13959
|
}, [u(ur, {
|
|
@@ -13971,23 +13982,23 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13971
13982
|
"data-testid": "pv-sidebar-org-switcher",
|
|
13972
13983
|
"aria-label": `Switch organization: ${se.value?.label}`,
|
|
13973
13984
|
"aria-expanded": X.value
|
|
13974
|
-
}, [s("div",
|
|
13985
|
+
}, [s("div", yg, [s("span", bg, [se.value?.avatarUrl ? (k(), o("img", {
|
|
13975
13986
|
key: 0,
|
|
13976
13987
|
src: se.value.avatarUrl,
|
|
13977
13988
|
alt: "Organization Avatar"
|
|
13978
|
-
}, null, 8,
|
|
13989
|
+
}, null, 8, xg)) : (k(), o("span", Sg, R(se.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
13979
13990
|
class: "pv-text-title-lg pv-truncate",
|
|
13980
13991
|
"data-sidebar-expanded-content": "",
|
|
13981
13992
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13982
13993
|
"data-sidebar-expanding": ue.value || void 0,
|
|
13983
13994
|
title: se.value?.label
|
|
13984
|
-
}, R(se.value?.label), 9,
|
|
13995
|
+
}, R(se.value?.label), 9, Cg)]), u(Q, {
|
|
13985
13996
|
name: "chevron-down",
|
|
13986
13997
|
class: "pv-icon-16",
|
|
13987
13998
|
"data-sidebar-expanded-content": "",
|
|
13988
13999
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13989
14000
|
"data-sidebar-expanding": ue.value || void 0
|
|
13990
|
-
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10,
|
|
14001
|
+
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10, vg)]),
|
|
13991
14002
|
_: 1
|
|
13992
14003
|
}, 8, [
|
|
13993
14004
|
"description",
|
|
@@ -13995,19 +14006,19 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13995
14006
|
"use-teleport",
|
|
13996
14007
|
"teleport-location"
|
|
13997
14008
|
])]),
|
|
13998
|
-
content: K(() => [s("div",
|
|
14009
|
+
content: K(() => [s("div", wg, [s("ul", Tg, [(k(!0), o(t, null, M(e.organizations, (e) => (k(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
|
|
13999
14010
|
class: "pv-flex",
|
|
14000
14011
|
href: e.url,
|
|
14001
14012
|
"data-testid": "pv-sidebar-org-option",
|
|
14002
14013
|
"data-org-value": e.value
|
|
14003
|
-
}, [s("div",
|
|
14014
|
+
}, [s("div", Og, [e.avatarUrl ? (k(), o("img", {
|
|
14004
14015
|
key: 0,
|
|
14005
14016
|
src: e.avatarUrl,
|
|
14006
14017
|
alt: "Organization Avatar"
|
|
14007
|
-
}, null, 8,
|
|
14018
|
+
}, null, 8, kg)) : (k(), o("span", Ag, R(e.label.slice(0, 1)), 1))]), s("span", {
|
|
14008
14019
|
class: "pv-truncate pv-flex-item",
|
|
14009
14020
|
title: e.label
|
|
14010
|
-
}, R(e.label), 9,
|
|
14021
|
+
}, R(e.label), 9, jg)], 8, Dg)], 8, Eg), (k(!0), o(t, null, M(e.entities, (e) => (k(), o("li", {
|
|
14011
14022
|
key: e.value,
|
|
14012
14023
|
style: { "padding-left": "0.5rem" },
|
|
14013
14024
|
"data-active": e.active || void 0
|
|
@@ -14020,7 +14031,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14020
14031
|
}, [u(Q, { name: "corner-down-right" }), s("span", {
|
|
14021
14032
|
class: "pv-truncate",
|
|
14022
14033
|
title: e.label
|
|
14023
|
-
}, R(e.label), 9,
|
|
14034
|
+
}, R(e.label), 9, Pg)], 8, Ng)], 8, Mg))), 128))], 64))), 128))])])]),
|
|
14024
14035
|
_: 1
|
|
14025
14036
|
}, 8, [
|
|
14026
14037
|
"modelValue",
|
|
@@ -14049,9 +14060,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14049
14060
|
])]),
|
|
14050
14061
|
content: K(() => [l(R(q.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
14051
14062
|
_: 1
|
|
14052
|
-
}))], 10,
|
|
14053
|
-
V(m) ? (k(), o("div",
|
|
14054
|
-
e.navItems && e.navItems.length ? (k(), o("ul",
|
|
14063
|
+
}))], 10, gg)]), s("div", { class: b(["pv-sidebar-nav", e.variant && `pv-sidebar-surface-${e.variant}`]) }, [
|
|
14064
|
+
V(m) ? (k(), o("div", Fg, [N(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
14065
|
+
e.navItems && e.navItems.length ? (k(), o("ul", Ig, [(k(!0), o(t, null, M(e.navItems, (e) => (k(), o(t, { key: e.value }, [e.separatorAtTop ? (k(), o("li", Lg)) : a("", !0), s("li", null, [ee(e) ? (k(), i(ur, {
|
|
14055
14066
|
key: 0,
|
|
14056
14067
|
modelValue: D.value[e.value],
|
|
14057
14068
|
"onUpdate:modelValue": (t) => D.value[e.value] = t,
|
|
@@ -14086,7 +14097,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14086
14097
|
"data-sidebar-expanded-content": "",
|
|
14087
14098
|
"data-sidebar-collapsed": q.value || void 0,
|
|
14088
14099
|
style: { "flex-wrap": "wrap" }
|
|
14089
|
-
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span",
|
|
14100
|
+
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", zg, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, Rg)]),
|
|
14090
14101
|
_: 2
|
|
14091
14102
|
}, 1040, [
|
|
14092
14103
|
"class",
|
|
@@ -14104,7 +14115,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14104
14115
|
class: "pv-sidebar-hover-panel",
|
|
14105
14116
|
onClick: (t) => ie(t, e.value),
|
|
14106
14117
|
onKeydown: (t) => ae(t, e.value)
|
|
14107
|
-
}, [N(n.$slots, e.hoverPanelSlot)], 40,
|
|
14118
|
+
}, [N(n.$slots, e.hoverPanelSlot)], 40, Bg)]),
|
|
14108
14119
|
_: 2
|
|
14109
14120
|
}, 1032, [
|
|
14110
14121
|
"modelValue",
|
|
@@ -14138,8 +14149,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14138
14149
|
"data-sidebar-expanded-content": "",
|
|
14139
14150
|
"data-sidebar-collapsed": q.value || void 0,
|
|
14140
14151
|
style: { "flex-wrap": "wrap" }
|
|
14141
|
-
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span",
|
|
14142
|
-
content: K(() => [s("div",
|
|
14152
|
+
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Ug, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, Hg)], 16, Vg)]),
|
|
14153
|
+
content: K(() => [s("div", Wg, [s("ul", Gg, [s("li", { "data-active": e.active || void 0 }, [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Jg, R(e.badge.toUpperCase()), 1)) : a("", !0)], 16, qg)], 8, Kg)])])]),
|
|
14143
14154
|
_: 2
|
|
14144
14155
|
}, 1032, [
|
|
14145
14156
|
"use-teleport",
|
|
@@ -14159,7 +14170,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14159
14170
|
trigger: K(() => [u(Ii, {
|
|
14160
14171
|
modelValue: ce.value[e.value],
|
|
14161
14172
|
"onUpdate:modelValue": (t) => ce.value[e.value] = t,
|
|
14162
|
-
"default-open": V(
|
|
14173
|
+
"default-open": V(og)(e),
|
|
14163
14174
|
"summary-attrs": {
|
|
14164
14175
|
class: q.value ? "pv-sidebar-item-collapsed" : void 0,
|
|
14165
14176
|
"aria-current": _e(e.children) && q.value ? "page" : void 0
|
|
@@ -14178,7 +14189,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14178
14189
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
14179
14190
|
"data-sidebar-expanded-content": "",
|
|
14180
14191
|
"data-sidebar-collapsed": q.value || void 0
|
|
14181
|
-
}, R(e.label), 9,
|
|
14192
|
+
}, R(e.label), 9, Xg)], 40, Yg)]),
|
|
14182
14193
|
default: K(() => [s("div", {
|
|
14183
14194
|
class: "pv-sidebar-nav-nested",
|
|
14184
14195
|
"data-sidebar-collapsed": q.value || void 0
|
|
@@ -14199,15 +14210,15 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14199
14210
|
trigger: K(() => [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, {
|
|
14200
14211
|
role: e.url ? void 0 : "button",
|
|
14201
14212
|
tabindex: e.url ? void 0 : 0,
|
|
14202
|
-
"aria-current": V(
|
|
14213
|
+
"aria-current": V(og)(e) ? "page" : void 0,
|
|
14203
14214
|
"aria-haspopup": "true",
|
|
14204
14215
|
"aria-expanded": !!pe.value[e.value],
|
|
14205
14216
|
title: e.label
|
|
14206
|
-
}), [s("span",
|
|
14217
|
+
}), [s("span", $g, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", e_, R(e.badge.toUpperCase()), 1)) : a("", !0)]), u(Q, {
|
|
14207
14218
|
name: "chevron-right",
|
|
14208
14219
|
class: "pv-icon-16"
|
|
14209
|
-
})], 16,
|
|
14210
|
-
content: K(() => [u(
|
|
14220
|
+
})], 16, Qg)]),
|
|
14221
|
+
content: K(() => [u(mg, {
|
|
14211
14222
|
items: e.children,
|
|
14212
14223
|
disabled: q.value
|
|
14213
14224
|
}, null, 8, ["items", "disabled"])]),
|
|
@@ -14224,7 +14235,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14224
14235
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
14225
14236
|
"aria-current": e.active ? "page" : void 0,
|
|
14226
14237
|
title: e.label
|
|
14227
|
-
}), [s("span",
|
|
14238
|
+
}), [s("span", n_, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", r_, R(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, t_))], 64))), 128))], 8, Zg)]),
|
|
14228
14239
|
_: 2
|
|
14229
14240
|
}, 1032, [
|
|
14230
14241
|
"modelValue",
|
|
@@ -14232,7 +14243,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14232
14243
|
"default-open",
|
|
14233
14244
|
"summary-attrs"
|
|
14234
14245
|
])]),
|
|
14235
|
-
content: K(() => [u(
|
|
14246
|
+
content: K(() => [u(mg, {
|
|
14236
14247
|
items: e.children,
|
|
14237
14248
|
disabled: !q.value
|
|
14238
14249
|
}, null, 8, ["items", "disabled"])]),
|
|
@@ -14242,7 +14253,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14242
14253
|
"teleport-location",
|
|
14243
14254
|
"disabled"
|
|
14244
14255
|
]))])], 64))), 128))])) : a("", !0),
|
|
14245
|
-
s("div",
|
|
14256
|
+
s("div", i_, [V(g) ? (k(), i(ur, {
|
|
14246
14257
|
key: 0,
|
|
14247
14258
|
modelValue: Y.value,
|
|
14248
14259
|
"onUpdate:modelValue": r[1] ||= (e) => Y.value = e,
|
|
@@ -14267,8 +14278,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14267
14278
|
}), s("span", {
|
|
14268
14279
|
"data-sidebar-expanded-content": "",
|
|
14269
14280
|
"data-sidebar-collapsed": q.value || void 0
|
|
14270
|
-
}, "Help", 8,
|
|
14271
|
-
content: K(() => [s("div",
|
|
14281
|
+
}, "Help", 8, o_)], 10, a_)]),
|
|
14282
|
+
content: K(() => [s("div", s_, [N(n.$slots, "sidebar-help-content")])]),
|
|
14272
14283
|
_: 3
|
|
14273
14284
|
}, 8, [
|
|
14274
14285
|
"modelValue",
|
|
@@ -14293,16 +14304,16 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14293
14304
|
"aria-label": e.profile.name,
|
|
14294
14305
|
"aria-expanded": Z.value,
|
|
14295
14306
|
title: e.profile.name
|
|
14296
|
-
}, [s("span",
|
|
14307
|
+
}, [s("span", l_, [e.profile.avatarUrl ? (k(), o("img", {
|
|
14297
14308
|
key: 0,
|
|
14298
14309
|
src: e.profile.avatarUrl,
|
|
14299
14310
|
alt: ""
|
|
14300
|
-
}, null, 8,
|
|
14311
|
+
}, null, 8, u_)) : (k(), o("span", d_, R(e.profile.name.slice(0, 1)), 1))]), s("span", {
|
|
14301
14312
|
class: "pv-truncate",
|
|
14302
14313
|
"data-sidebar-expanded-content": "",
|
|
14303
14314
|
"data-sidebar-collapsed": q.value || void 0
|
|
14304
|
-
}, R(e.profile.name), 9,
|
|
14305
|
-
content: K(() => [s("div",
|
|
14315
|
+
}, R(e.profile.name), 9, f_)], 10, c_)]),
|
|
14316
|
+
content: K(() => [s("div", p_, [N(n.$slots, "sidebar-profile-content")])]),
|
|
14306
14317
|
_: 3
|
|
14307
14318
|
}, 8, [
|
|
14308
14319
|
"modelValue",
|
|
@@ -14311,7 +14322,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14311
14322
|
"teleport-location"
|
|
14312
14323
|
])) : a("", !0)])
|
|
14313
14324
|
], 2)], 512),
|
|
14314
|
-
s("div",
|
|
14325
|
+
s("div", m_, [N(n.$slots, "default")]),
|
|
14315
14326
|
s("div", {
|
|
14316
14327
|
ref_key: "popoverTeleportTarget",
|
|
14317
14328
|
ref: w,
|
|
@@ -14319,11 +14330,11 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14319
14330
|
}, null, 2)
|
|
14320
14331
|
], 38));
|
|
14321
14332
|
}
|
|
14322
|
-
}),
|
|
14333
|
+
}), __ = {
|
|
14323
14334
|
class: "pv-toc",
|
|
14324
14335
|
role: "list",
|
|
14325
14336
|
style: { "min-width": "160px" }
|
|
14326
|
-
},
|
|
14337
|
+
}, v_ = ["aria-current"], y_ = ["href", "onClick"], b_ = /* @__PURE__ */ d({
|
|
14327
14338
|
__name: "PvTableOfContents",
|
|
14328
14339
|
props: /* @__PURE__ */ _({ items: {} }, {
|
|
14329
14340
|
modelValue: { required: !1 },
|
|
@@ -14334,7 +14345,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14334
14345
|
let r = U(e, "modelValue"), c = n, u = (e, t) => {
|
|
14335
14346
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
14336
14347
|
};
|
|
14337
|
-
return (n, c) => (k(), o("ul",
|
|
14348
|
+
return (n, c) => (k(), o("ul", __, [(k(!0), o(t, null, M(e.items, (e) => (k(), o("li", {
|
|
14338
14349
|
key: e.id,
|
|
14339
14350
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
14340
14351
|
}, [s("a", {
|
|
@@ -14343,9 +14354,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14343
14354
|
}, [e.icon ? (k(), i(Q, {
|
|
14344
14355
|
key: 0,
|
|
14345
14356
|
name: e.icon
|
|
14346
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + R(e.label), 1)], 8,
|
|
14357
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + R(e.label), 1)], 8, y_)], 8, v_))), 128))]));
|
|
14347
14358
|
}
|
|
14348
|
-
}),
|
|
14359
|
+
}), x_ = ["data-clickable", "onClick"], S_ = ["data-clickable", "onClick"], C_ = ["data-clickable", "onClick"], w_ = /* @__PURE__ */ d({
|
|
14349
14360
|
__name: "PvStepper",
|
|
14350
14361
|
props: {
|
|
14351
14362
|
variant: { default: "dots" },
|
|
@@ -14427,12 +14438,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14427
14438
|
variant: r === e.active ? "primary" : "tertiary",
|
|
14428
14439
|
value: r + 1,
|
|
14429
14440
|
rounded: ""
|
|
14430
|
-
}, null, 8, ["variant", "value"])) : a("", !0), s("span", null, R(t.label), 1)], 14,
|
|
14441
|
+
}, null, 8, ["variant", "value"])) : a("", !0), s("span", null, R(t.label), 1)], 14, x_))), 128)) : e.variant === "dots" ? (k(!0), o(t, { key: 1 }, M(e.count, (t, r) => (k(), o("div", {
|
|
14431
14442
|
key: r,
|
|
14432
14443
|
"data-clickable": e.clickable,
|
|
14433
14444
|
class: b(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
14434
14445
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
14435
|
-
}, null, 10,
|
|
14446
|
+
}, null, 10, S_))), 128)) : (k(!0), o(t, { key: 2 }, M(e.items, (t, r) => (k(), o("div", {
|
|
14436
14447
|
key: r,
|
|
14437
14448
|
class: b(["pv-flex pv-full-width", [{ "pv-flex-item": r === c.value - 1 }]]),
|
|
14438
14449
|
style: { "--flex-gap": "0.25rem" }
|
|
@@ -14447,30 +14458,30 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14447
14458
|
}, [u(Q, {
|
|
14448
14459
|
name: p[t.variant ?? "current"],
|
|
14449
14460
|
class: b(f[t.variant ?? "current"].icon)
|
|
14450
|
-
}, null, 8, ["name", "class"]), s("span", { class: b(["pv-text-body-md", f[t.variant ?? "current"].text]) }, R(t.label), 3)], 12,
|
|
14461
|
+
}, null, 8, ["name", "class"]), s("span", { class: b(["pv-text-body-md", f[t.variant ?? "current"].text]) }, R(t.label), 3)], 12, C_), r < c.value - 1 ? (k(), o("div", {
|
|
14451
14462
|
key: 0,
|
|
14452
14463
|
class: b(["pv-stepper-progress-divider", m[t.variant ?? "current"]])
|
|
14453
14464
|
}, null, 2)) : a("", !0)], 2))), 128))], 4));
|
|
14454
14465
|
}
|
|
14455
|
-
}),
|
|
14466
|
+
}), T_ = {
|
|
14456
14467
|
class: "pv-flex-vertical pv-flow",
|
|
14457
14468
|
style: {
|
|
14458
14469
|
"--flow-size": "1.5rem",
|
|
14459
14470
|
"--flex-gap": "0"
|
|
14460
14471
|
}
|
|
14461
|
-
},
|
|
14472
|
+
}, E_ = ["src", "alt"], D_ = {
|
|
14462
14473
|
class: "pv-flex-vertical",
|
|
14463
14474
|
style: { "max-width": "450px" }
|
|
14464
|
-
},
|
|
14475
|
+
}, O_ = {
|
|
14465
14476
|
key: 0,
|
|
14466
14477
|
class: "pv-heading-2"
|
|
14467
|
-
},
|
|
14478
|
+
}, k_ = {
|
|
14468
14479
|
key: 1,
|
|
14469
14480
|
class: "pv-text-body-md pv-text-subdued pv-text-center"
|
|
14470
|
-
},
|
|
14481
|
+
}, A_ = {
|
|
14471
14482
|
key: 1,
|
|
14472
14483
|
class: "pv-flex-vertical"
|
|
14473
|
-
},
|
|
14484
|
+
}, j_ = /* @__PURE__ */ d({
|
|
14474
14485
|
__name: "PvEmptyState",
|
|
14475
14486
|
props: {
|
|
14476
14487
|
alt: {},
|
|
@@ -14482,14 +14493,14 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14482
14493
|
},
|
|
14483
14494
|
emits: ["handle-primary-click", "handle-secondary-click"],
|
|
14484
14495
|
setup(e) {
|
|
14485
|
-
return (t, n) => (k(), o("div",
|
|
14496
|
+
return (t, n) => (k(), o("div", T_, [
|
|
14486
14497
|
e.src ? (k(), o("img", {
|
|
14487
14498
|
key: 0,
|
|
14488
14499
|
src: e.src,
|
|
14489
14500
|
alt: e.alt ?? ""
|
|
14490
|
-
}, null, 8,
|
|
14491
|
-
s("div",
|
|
14492
|
-
e.primaryLabel || e.secondaryLabel ? (k(), o("div",
|
|
14501
|
+
}, null, 8, E_)) : a("", !0),
|
|
14502
|
+
s("div", D_, [e.header ? (k(), o("h2", O_, R(e.header), 1)) : a("", !0), e.description ? (k(), o("span", k_, R(e.description), 1)) : a("", !0)]),
|
|
14503
|
+
e.primaryLabel || e.secondaryLabel ? (k(), o("div", A_, [e.primaryLabel ? (k(), i($, {
|
|
14493
14504
|
key: 0,
|
|
14494
14505
|
variant: "primary",
|
|
14495
14506
|
size: "xl",
|
|
@@ -14504,7 +14515,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14504
14515
|
}, null, 8, ["label"])) : a("", !0)])) : a("", !0)
|
|
14505
14516
|
]));
|
|
14506
14517
|
}
|
|
14507
|
-
}),
|
|
14518
|
+
}), M_ = { theme: {
|
|
14508
14519
|
preset: Me,
|
|
14509
14520
|
options: {
|
|
14510
14521
|
darkModeSelector: "none",
|
|
@@ -14513,9 +14524,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14513
14524
|
order: "pit-viper-v2, primevue"
|
|
14514
14525
|
}
|
|
14515
14526
|
}
|
|
14516
|
-
} },
|
|
14517
|
-
e.use(je,
|
|
14518
|
-
},
|
|
14527
|
+
} }, N_ = (e) => {
|
|
14528
|
+
e.use(je, M_);
|
|
14529
|
+
}, P_ = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
14519
14530
|
let i = j(null), a = j(null), o = j(null), s = j(null), c = (e) => {
|
|
14520
14531
|
let t = e.parentElement;
|
|
14521
14532
|
for (; t && t !== document.body;) {
|
|
@@ -14566,13 +14577,13 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14566
14577
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
14567
14578
|
}
|
|
14568
14579
|
};
|
|
14569
|
-
},
|
|
14570
|
-
let e = h(
|
|
14580
|
+
}, F_ = Symbol.for("pv.rum-context"), I_ = () => {
|
|
14581
|
+
let e = h(F_, void 0);
|
|
14571
14582
|
return () => {
|
|
14572
14583
|
let t = e?.value;
|
|
14573
14584
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
14574
14585
|
};
|
|
14575
|
-
},
|
|
14586
|
+
}, L_ = (e, t = {}, n = {}) => {
|
|
14576
14587
|
try {
|
|
14577
14588
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
14578
14589
|
let r = n.consumer == null ? t : {
|
|
@@ -14581,13 +14592,13 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14581
14592
|
};
|
|
14582
14593
|
window.DD_RUM.addAction(e, r);
|
|
14583
14594
|
} catch {}
|
|
14584
|
-
},
|
|
14595
|
+
}, R_ = (e) => {
|
|
14585
14596
|
queueMicrotask(() => {
|
|
14586
14597
|
try {
|
|
14587
14598
|
e();
|
|
14588
14599
|
} catch {}
|
|
14589
14600
|
});
|
|
14590
|
-
},
|
|
14601
|
+
}, z_ = [
|
|
14591
14602
|
"idle",
|
|
14592
14603
|
"curious",
|
|
14593
14604
|
"greeting",
|
|
@@ -14599,19 +14610,19 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14599
14610
|
"confused",
|
|
14600
14611
|
"sleeping",
|
|
14601
14612
|
"boo"
|
|
14602
|
-
],
|
|
14613
|
+
], B_ = [
|
|
14603
14614
|
"xs",
|
|
14604
14615
|
"sm",
|
|
14605
14616
|
"md",
|
|
14606
14617
|
"lg",
|
|
14607
14618
|
"xl"
|
|
14608
|
-
],
|
|
14619
|
+
], V_ = [
|
|
14609
14620
|
"default",
|
|
14610
14621
|
"mono",
|
|
14611
14622
|
"solid",
|
|
14612
14623
|
"outline"
|
|
14613
|
-
],
|
|
14624
|
+
], H_ = ["default", "halloween"];
|
|
14614
14625
|
//#endregion
|
|
14615
|
-
export { Ir as AskTqBuddy, Ii as PvAccordion, il as PvActionBar, mr as PvActionButton, zr as PvAiButton, ii as PvAnimatedIcon, go as PvAvatar, dc as PvAvatarGroup, Di as PvBanner,
|
|
14626
|
+
export { Ir as AskTqBuddy, Ii as PvAccordion, il as PvActionBar, mr as PvActionButton, zr as PvAiButton, ii as PvAnimatedIcon, go as PvAvatar, dc as PvAvatarGroup, Di as PvBanner, Du as PvBoxPlot, uo as PvBreadcrumbs, $ as PvButton, Wr as PvButtonWithTooltip, qc as PvCard, _c as PvCheckbox, cc as PvCompanyLabel, mi as PvCompanyLogo, Mi as PvCompanyTag, Wa as PvContextFeedback, ba as PvContextSurface, da as PvContextSurfaceKey, Xe as PvCounterBadge, Ji as PvDatePicker, Xi as PvDateTime, Bl as PvDistributionBar, ua as PvDrawer, ri as PvDropdown, ji as PvEmptyErrorState, j_ as PvEmptyState, nl as PvExpandableContent, Pc as PvFileInput, Nm as PvFilterModal, gm as PvFilterPanel, qa as PvGhostInput, oc as PvHeader, Gf as PvHorizontalScroller, Lm as PvHoverActionMenu, Q as PvIcon, Oc as PvInput, tl as PvInsightCard, ms as PvMenu, os as PvMenuItem, bi as PvModal, xs as PvMultiSelectButton, Hs as PvPagination, Zr as PvPill, ei as PvPopover, oi as PvPopoverMenu, ur as PvPopoverV2, Rl as PvProgressBar, Km as PvQueryBuilderInput, xc as PvRadioGroup, Wu as PvRange, Lc as PvRating, Jr as PvReleaseBadge, ta as PvResizeHandle, Vi as PvSearchInput, si as PvSegmentedControl, ws as PvSelectButton, xo as PvSelectButtonTrigger, Gs as PvSelectableCard, Xs as PvSidePanel, ag as PvSidebar, g_ as PvSidebarV2, Cc as PvSkeleton, Fs as PvSortableList, Ea as PvSpinesEntityFields, Be as PvSpinner, qr as PvSplitButton, tc as PvSplitPane, Sc as PvSprite, w_ as PvStepper, Pi as PvSuggestionTag, Bo as PvSwitch, di as PvTabList, b_ as PvTableOfContents, oo as PvTabs, Xr as PvTag, Aa as PvTextArea, La as PvToast, Pa as PvToggleButton, hc as PvToggleGroup, Hr as PvTooltip, fr as PvTooltipV2, Nl as PvTree, Pl as PvTreeGroup, Jc as PvWidget, F_ as RumContextKey, Uo as SelectedItemsKey, L_ as addRumAction, z_ as askTqBuddyEmotes, B_ as askTqBuddySizes, H_ as askTqBuddyThemes, V_ as askTqBuddyVariants, qp as createPvFilterStore, R_ as deferRumTask, Jp as providePvFilterStore, Zi as pvResizeAxisFor, Qi as resolvePvResizeSize, Yi as useDateTime, P_ as useMenuPosition, Yp as useOptionalPvFilterStore, N_ as usePvComponents, Xp as usePvFilterStore, ea as useResizable, I_ as useRumContext, ir as useSlotPresence };
|
|
14616
14627
|
|
|
14617
14628
|
//# sourceMappingURL=pv-components-base.mjs.map
|