@turquoisehealth/pit-viper 2.269.0 → 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 +32 -0
- package/_site/assets/css/pit-viper-a11y.css +32 -0
- package/_site/assets/css/pit-viper-consumer.css +32 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +24 -0
- package/_site/assets/css/pit-viper-v2.css +32 -0
- package/_site/assets/css/pit-viper-v3.css +32 -0
- package/_site/assets/css/pit-viper.css +32 -0
- package/_site/manifest.json +9 -1
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDistributionBar/types.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvDistributionBar/types.d.ts +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +708 -719
- 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/web/components/pv-distribution-bar/pv-distribution-bar.js +431 -443
- package/pv-components/dist/web/pv-components.iife.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -8717,7 +8717,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8717
8717
|
style: S({ "--progress": `${n.value}%` })
|
|
8718
8718
|
}, null, 14, Ll)]));
|
|
8719
8719
|
}
|
|
8720
|
-
}), zl = /* @__PURE__ */ d({
|
|
8720
|
+
}), zl = 15, Bl = /* @__PURE__ */ d({
|
|
8721
8721
|
__name: "PvDistributionBar",
|
|
8722
8722
|
props: {
|
|
8723
8723
|
size: { default: "lg" },
|
|
@@ -8740,18 +8740,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8740
8740
|
...e,
|
|
8741
8741
|
height: "24px"
|
|
8742
8742
|
};
|
|
8743
|
-
}), u = (e) => {
|
|
8744
|
-
switch (e) {
|
|
8745
|
-
case 0: return "pv-data-surface-visualization-1";
|
|
8746
|
-
case 1: return "pv-data-surface-visualization-2";
|
|
8747
|
-
case 2: return "pv-data-surface-visualization-3";
|
|
8748
|
-
case 3: return "pv-data-surface-visualization-4";
|
|
8749
|
-
case 4: return "pv-data-surface-visualization-5";
|
|
8750
|
-
case 5: return "pv-data-surface-visualization-6";
|
|
8751
|
-
case 6: return "pv-data-surface-visualization-7";
|
|
8752
|
-
default: return "pv-data-surface-visualization-1";
|
|
8753
|
-
}
|
|
8754
|
-
};
|
|
8743
|
+
}), u = (e) => `pv-data-surface-visualization-${e % zl + 1}`;
|
|
8755
8744
|
return (n, r) => (k(), o("div", {
|
|
8756
8745
|
class: "pv-flex",
|
|
8757
8746
|
style: S(l.value)
|
|
@@ -8761,7 +8750,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8761
8750
|
style: S(c(e, t))
|
|
8762
8751
|
}, null, 6))), 128))], 4));
|
|
8763
8752
|
}
|
|
8764
|
-
}),
|
|
8753
|
+
}), Vl = [
|
|
8765
8754
|
1,
|
|
8766
8755
|
1.5,
|
|
8767
8756
|
2,
|
|
@@ -8771,81 +8760,81 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8771
8760
|
6,
|
|
8772
8761
|
8,
|
|
8773
8762
|
10
|
|
8774
|
-
],
|
|
8763
|
+
], Hl = (e) => {
|
|
8775
8764
|
let t = 10 ** Math.floor(Math.log10(e));
|
|
8776
|
-
return (
|
|
8777
|
-
},
|
|
8778
|
-
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 = [];
|
|
8779
8768
|
for (let r = 0; r * t <= e + 1e-6; r++) n.push(Number((r * t).toPrecision(12)));
|
|
8780
8769
|
return n;
|
|
8781
|
-
},
|
|
8770
|
+
}, Kl = new Intl.NumberFormat("en-US", {
|
|
8782
8771
|
style: "currency",
|
|
8783
8772
|
currency: "USD",
|
|
8784
8773
|
maximumFractionDigits: 0
|
|
8785
|
-
}),
|
|
8774
|
+
}), ql = (e) => Kl.format(e), Jl = [
|
|
8786
8775
|
"width",
|
|
8787
8776
|
"height",
|
|
8788
8777
|
"aria-label"
|
|
8789
|
-
],
|
|
8778
|
+
], Yl = [
|
|
8790
8779
|
"x1",
|
|
8791
8780
|
"y1",
|
|
8792
8781
|
"x2",
|
|
8793
8782
|
"y2"
|
|
8794
|
-
],
|
|
8783
|
+
], Xl = [
|
|
8795
8784
|
"x1",
|
|
8796
8785
|
"y1",
|
|
8797
8786
|
"x2",
|
|
8798
8787
|
"y2"
|
|
8799
|
-
],
|
|
8788
|
+
], Zl = ["x", "y"], Ql = [
|
|
8800
8789
|
"x1",
|
|
8801
8790
|
"y1",
|
|
8802
8791
|
"x2",
|
|
8803
8792
|
"y2"
|
|
8804
|
-
],
|
|
8793
|
+
], $l = [
|
|
8805
8794
|
"x1",
|
|
8806
8795
|
"y1",
|
|
8807
8796
|
"x2",
|
|
8808
8797
|
"y2"
|
|
8809
|
-
],
|
|
8798
|
+
], eu = [
|
|
8810
8799
|
"x",
|
|
8811
8800
|
"y",
|
|
8812
8801
|
"width",
|
|
8813
8802
|
"height"
|
|
8814
|
-
],
|
|
8803
|
+
], tu = [
|
|
8815
8804
|
"x1",
|
|
8816
8805
|
"y1",
|
|
8817
8806
|
"x2",
|
|
8818
8807
|
"y2"
|
|
8819
|
-
],
|
|
8808
|
+
], nu = {
|
|
8820
8809
|
key: 0,
|
|
8821
8810
|
"font-size": "10",
|
|
8822
8811
|
"data-testid": "pv-box-plot-labels"
|
|
8823
|
-
},
|
|
8812
|
+
}, ru = [
|
|
8824
8813
|
"x",
|
|
8825
8814
|
"y",
|
|
8826
8815
|
"font-weight"
|
|
8827
|
-
],
|
|
8816
|
+
], iu = ["x", "y"], au = {
|
|
8828
8817
|
key: 1,
|
|
8829
8818
|
"data-testid": "pv-box-plot-median-callout"
|
|
8830
|
-
},
|
|
8819
|
+
}, ou = [
|
|
8831
8820
|
"x1",
|
|
8832
8821
|
"y1",
|
|
8833
8822
|
"x2",
|
|
8834
8823
|
"y2"
|
|
8835
|
-
],
|
|
8824
|
+
], su = ["x", "y"], cu = ["cx", "cy"], lu = [
|
|
8836
8825
|
"x1",
|
|
8837
8826
|
"y1",
|
|
8838
8827
|
"x2",
|
|
8839
8828
|
"y2"
|
|
8840
|
-
],
|
|
8829
|
+
], uu = ["x", "y"], du = {
|
|
8841
8830
|
key: 2,
|
|
8842
8831
|
"data-testid": "pv-box-plot-highlight"
|
|
8843
|
-
},
|
|
8832
|
+
}, fu = [
|
|
8844
8833
|
"x1",
|
|
8845
8834
|
"y1",
|
|
8846
8835
|
"x2",
|
|
8847
8836
|
"y2"
|
|
8848
|
-
],
|
|
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({
|
|
8849
8838
|
__name: "PvBoxPlot",
|
|
8850
8839
|
props: {
|
|
8851
8840
|
ariaLabel: { default: void 0 },
|
|
@@ -8859,7 +8848,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8859
8848
|
stats: { default: null },
|
|
8860
8849
|
valueFormatter: {
|
|
8861
8850
|
type: Function,
|
|
8862
|
-
default:
|
|
8851
|
+
default: ql
|
|
8863
8852
|
},
|
|
8864
8853
|
xMax: { default: null }
|
|
8865
8854
|
},
|
|
@@ -8869,10 +8858,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8869
8858
|
right: 40,
|
|
8870
8859
|
top: 44,
|
|
8871
8860
|
bottom: 36
|
|
8872
|
-
}, 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(() => {
|
|
8873
8862
|
let e = n.stats;
|
|
8874
8863
|
if (!e) return null;
|
|
8875
|
-
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));
|
|
8876
8865
|
return {
|
|
8877
8866
|
x: s,
|
|
8878
8867
|
cy: c,
|
|
@@ -8882,7 +8871,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8882
8871
|
axisStart: i.left,
|
|
8883
8872
|
axisEnd: i.left + t,
|
|
8884
8873
|
calloutY: i.top - 8,
|
|
8885
|
-
ticks:
|
|
8874
|
+
ticks: Gl(o).map((e) => ({
|
|
8886
8875
|
value: e,
|
|
8887
8876
|
x: s(e)
|
|
8888
8877
|
})),
|
|
@@ -8905,7 +8894,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8905
8894
|
return e ? n.markers.filter((e) => e.label).map((t) => ({
|
|
8906
8895
|
...t,
|
|
8907
8896
|
x: e.x(t.value),
|
|
8908
|
-
color: t.color ??
|
|
8897
|
+
color: t.color ?? _u
|
|
8909
8898
|
})) : [];
|
|
8910
8899
|
}), h = r(() => n.stats ? `Median ${n.valueFormatter(n.stats.p50)}` : ""), g = r(() => {
|
|
8911
8900
|
let e = d.value;
|
|
@@ -8913,7 +8902,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8913
8902
|
let t = e.x(e.stats.p50);
|
|
8914
8903
|
return m.value.every((e) => {
|
|
8915
8904
|
let n = h.value.length + p(e).length;
|
|
8916
|
-
return Math.abs(e.x - t) >= n *
|
|
8905
|
+
return Math.abs(e.x - t) >= n * Su / 2 + Cu;
|
|
8917
8906
|
});
|
|
8918
8907
|
}), _ = r(() => {
|
|
8919
8908
|
if (n.ariaLabel) return n.ariaLabel;
|
|
@@ -8940,8 +8929,8 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8940
8929
|
y1: d.value.axisY,
|
|
8941
8930
|
x2: d.value.axisEnd,
|
|
8942
8931
|
y2: d.value.axisY,
|
|
8943
|
-
style: S({ stroke:
|
|
8944
|
-
}, null, 12,
|
|
8932
|
+
style: S({ stroke: gu })
|
|
8933
|
+
}, null, 12, Yl),
|
|
8945
8934
|
(k(!0), o(t, null, M(d.value.ticks, (t) => (k(), o("g", {
|
|
8946
8935
|
key: t.value,
|
|
8947
8936
|
"data-testid": "pv-box-plot-tick"
|
|
@@ -8950,91 +8939,91 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
8950
8939
|
y1: d.value.axisY,
|
|
8951
8940
|
x2: t.x,
|
|
8952
8941
|
y2: d.value.axisY + 4,
|
|
8953
|
-
stroke:
|
|
8954
|
-
}, null, 8,
|
|
8942
|
+
stroke: bu
|
|
8943
|
+
}, null, 8, Xl), s("text", {
|
|
8955
8944
|
x: t.x,
|
|
8956
8945
|
y: d.value.axisY + 16,
|
|
8957
8946
|
"font-size": "10",
|
|
8958
|
-
style: S({ fill:
|
|
8947
|
+
style: S({ fill: hu }),
|
|
8959
8948
|
"text-anchor": "middle"
|
|
8960
|
-
}, R(e.valueFormatter(t.value)), 13,
|
|
8949
|
+
}, R(e.valueFormatter(t.value)), 13, Zl)]))), 128)),
|
|
8961
8950
|
s("line", {
|
|
8962
8951
|
x1: d.value.x(d.value.stats.p10),
|
|
8963
8952
|
y1: d.value.cy,
|
|
8964
8953
|
x2: d.value.x(d.value.stats.p90),
|
|
8965
8954
|
y2: d.value.cy,
|
|
8966
|
-
style: S({ stroke:
|
|
8955
|
+
style: S({ stroke: mu }),
|
|
8967
8956
|
"data-testid": "pv-box-plot-whisker"
|
|
8968
|
-
}, null, 12,
|
|
8957
|
+
}, null, 12, Ql),
|
|
8969
8958
|
(k(), o(t, null, M(["p10", "p90"], (e) => s("line", {
|
|
8970
8959
|
key: e,
|
|
8971
8960
|
x1: d.value.x(d.value.stats[e]),
|
|
8972
8961
|
y1: d.value.cy - 8,
|
|
8973
8962
|
x2: d.value.x(d.value.stats[e]),
|
|
8974
8963
|
y2: d.value.cy + 8,
|
|
8975
|
-
style: S({ stroke:
|
|
8964
|
+
style: S({ stroke: mu }),
|
|
8976
8965
|
"stroke-width": "1.5"
|
|
8977
|
-
}, null, 12,
|
|
8966
|
+
}, null, 12, $l)), 64)),
|
|
8978
8967
|
s("rect", {
|
|
8979
8968
|
x: d.value.x(d.value.stats.p25),
|
|
8980
8969
|
y: d.value.boxTop,
|
|
8981
8970
|
width: d.value.x(d.value.stats.p75) - d.value.x(d.value.stats.p25),
|
|
8982
8971
|
height: d.value.boxBottom - d.value.boxTop,
|
|
8983
|
-
fill:
|
|
8972
|
+
fill: yu,
|
|
8984
8973
|
"fill-opacity": "0.55",
|
|
8985
|
-
style: S({ stroke:
|
|
8974
|
+
style: S({ stroke: mu }),
|
|
8986
8975
|
rx: "2",
|
|
8987
8976
|
"data-testid": "pv-box-plot-box"
|
|
8988
|
-
}, null, 12,
|
|
8977
|
+
}, null, 12, eu),
|
|
8989
8978
|
s("line", {
|
|
8990
8979
|
x1: d.value.x(d.value.stats.p50),
|
|
8991
8980
|
y1: d.value.boxTop,
|
|
8992
8981
|
x2: d.value.x(d.value.stats.p50),
|
|
8993
8982
|
y2: d.value.boxBottom,
|
|
8994
|
-
stroke:
|
|
8983
|
+
stroke: vu,
|
|
8995
8984
|
"stroke-width": "2.5",
|
|
8996
8985
|
"data-testid": "pv-box-plot-median"
|
|
8997
|
-
}, null, 8,
|
|
8998
|
-
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", {
|
|
8999
8988
|
key: e.key,
|
|
9000
8989
|
x: e.x,
|
|
9001
8990
|
y: d.value.boxBottom + 14,
|
|
9002
8991
|
"text-anchor": "middle",
|
|
9003
|
-
style: S({ fill: e.key === "p50" ?
|
|
8992
|
+
style: S({ fill: e.key === "p50" ? vu : mu }),
|
|
9004
8993
|
"font-weight": e.key === "p50" ? 600 : void 0
|
|
9005
|
-
}, R(e.key), 13,
|
|
8994
|
+
}, R(e.key), 13, ru))), 128)), (k(), o(t, null, M(["p10", "p90"], (t) => s("text", {
|
|
9006
8995
|
key: `${t}-value`,
|
|
9007
8996
|
x: d.value.x(d.value.stats[t]),
|
|
9008
8997
|
y: d.value.boxTop - 10,
|
|
9009
8998
|
"text-anchor": "middle",
|
|
9010
|
-
style: S({ fill:
|
|
9011
|
-
}, R(e.valueFormatter(d.value.stats[t])), 13,
|
|
9012
|
-
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", {
|
|
9013
9002
|
x1: d.value.x(d.value.stats.p50),
|
|
9014
9003
|
y1: d.value.boxTop,
|
|
9015
9004
|
x2: d.value.x(d.value.stats.p50),
|
|
9016
9005
|
y2: d.value.calloutY + 4,
|
|
9017
|
-
stroke:
|
|
9006
|
+
stroke: vu,
|
|
9018
9007
|
"stroke-dasharray": "2 2",
|
|
9019
9008
|
"stroke-opacity": "0.5"
|
|
9020
|
-
}, null, 8,
|
|
9009
|
+
}, null, 8, ou), s("text", {
|
|
9021
9010
|
x: d.value.x(d.value.stats.p50),
|
|
9022
9011
|
y: d.value.calloutY,
|
|
9023
9012
|
"text-anchor": "middle",
|
|
9024
|
-
fill:
|
|
9013
|
+
fill: vu,
|
|
9025
9014
|
"font-size": "12",
|
|
9026
9015
|
"font-weight": "700"
|
|
9027
|
-
}, R(h.value), 9,
|
|
9016
|
+
}, R(h.value), 9, su)])) : a("", !0),
|
|
9028
9017
|
(k(!0), o(t, null, M(e.markers, (e, t) => (k(), o("circle", {
|
|
9029
9018
|
key: `marker-${t}`,
|
|
9030
9019
|
cx: d.value.x(e.value),
|
|
9031
9020
|
cy: d.value.cy,
|
|
9032
9021
|
r: "7",
|
|
9033
|
-
style: S({ fill: e.color ??
|
|
9022
|
+
style: S({ fill: e.color ?? _u }),
|
|
9034
9023
|
stroke: "#fff",
|
|
9035
9024
|
"stroke-width": "2",
|
|
9036
9025
|
"data-testid": "pv-box-plot-marker"
|
|
9037
|
-
}, null, 12,
|
|
9026
|
+
}, null, 12, cu))), 128)),
|
|
9038
9027
|
(k(!0), o(t, null, M(m.value, (e, t) => (k(), o("g", {
|
|
9039
9028
|
key: `marker-label-${t}`,
|
|
9040
9029
|
"data-testid": "pv-box-plot-marker-label"
|
|
@@ -9046,36 +9035,36 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9046
9035
|
style: S({ stroke: e.color }),
|
|
9047
9036
|
"stroke-dasharray": "2 2",
|
|
9048
9037
|
"stroke-opacity": "0.6"
|
|
9049
|
-
}, null, 12,
|
|
9038
|
+
}, null, 12, lu), s("text", {
|
|
9050
9039
|
x: e.x,
|
|
9051
9040
|
y: d.value.calloutY,
|
|
9052
9041
|
"text-anchor": "middle",
|
|
9053
9042
|
style: S({ fill: e.color }),
|
|
9054
9043
|
"font-size": "12",
|
|
9055
9044
|
"font-weight": "700"
|
|
9056
|
-
}, R(p(e)), 13,
|
|
9057
|
-
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", {
|
|
9058
9047
|
x1: d.value.x(e.highlight),
|
|
9059
9048
|
y1: d.value.boxTop - 4,
|
|
9060
9049
|
x2: d.value.x(e.highlight),
|
|
9061
9050
|
y2: d.value.boxBottom + 4,
|
|
9062
|
-
style: S({ stroke:
|
|
9051
|
+
style: S({ stroke: _u }),
|
|
9063
9052
|
"stroke-width": "2",
|
|
9064
9053
|
"stroke-dasharray": "3 2"
|
|
9065
|
-
}, null, 12,
|
|
9054
|
+
}, null, 12, fu), s("circle", {
|
|
9066
9055
|
cx: d.value.x(e.highlight),
|
|
9067
9056
|
cy: d.value.cy,
|
|
9068
9057
|
r: "4",
|
|
9069
|
-
style: S({ fill:
|
|
9058
|
+
style: S({ fill: _u }),
|
|
9070
9059
|
stroke: "#fff",
|
|
9071
9060
|
"stroke-width": "1.5"
|
|
9072
|
-
}, null, 12,
|
|
9073
|
-
], 8,
|
|
9061
|
+
}, null, 12, pu)]))
|
|
9062
|
+
], 8, Jl)) : a("", !0)], 512));
|
|
9074
9063
|
}
|
|
9075
|
-
}),
|
|
9064
|
+
}), Ou = {
|
|
9076
9065
|
key: 0,
|
|
9077
9066
|
class: "pv-range-single-slider"
|
|
9078
|
-
},
|
|
9067
|
+
}, ku = [
|
|
9079
9068
|
"id",
|
|
9080
9069
|
"aria-label",
|
|
9081
9070
|
"aria-valuetext",
|
|
@@ -9084,11 +9073,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9084
9073
|
"min",
|
|
9085
9074
|
"step",
|
|
9086
9075
|
"value"
|
|
9087
|
-
],
|
|
9076
|
+
], Au = ["aria-label"], ju = {
|
|
9088
9077
|
key: 0,
|
|
9089
9078
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
9090
9079
|
style: { "line-height": "1" }
|
|
9091
|
-
},
|
|
9080
|
+
}, Mu = [
|
|
9092
9081
|
"aria-label",
|
|
9093
9082
|
"aria-valuetext",
|
|
9094
9083
|
"disabled",
|
|
@@ -9096,7 +9085,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9096
9085
|
"min",
|
|
9097
9086
|
"step",
|
|
9098
9087
|
"value"
|
|
9099
|
-
],
|
|
9088
|
+
], Nu = [
|
|
9100
9089
|
"aria-label",
|
|
9101
9090
|
"aria-valuetext",
|
|
9102
9091
|
"disabled",
|
|
@@ -9104,7 +9093,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9104
9093
|
"min",
|
|
9105
9094
|
"step",
|
|
9106
9095
|
"value"
|
|
9107
|
-
],
|
|
9096
|
+
], Pu = {
|
|
9108
9097
|
key: 1,
|
|
9109
9098
|
class: "pv-flex",
|
|
9110
9099
|
style: {
|
|
@@ -9112,15 +9101,15 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9112
9101
|
"--flex-gap": "0.75rem",
|
|
9113
9102
|
"--flex-wrap": "wrap"
|
|
9114
9103
|
}
|
|
9115
|
-
},
|
|
9104
|
+
}, Fu = { class: "pv-text-body-sm" }, Iu = [
|
|
9116
9105
|
"disabled",
|
|
9117
9106
|
"step",
|
|
9118
9107
|
"value"
|
|
9119
|
-
],
|
|
9108
|
+
], Lu = { class: "pv-text-body-sm" }, Ru = [
|
|
9120
9109
|
"disabled",
|
|
9121
9110
|
"step",
|
|
9122
9111
|
"value"
|
|
9123
|
-
],
|
|
9112
|
+
], zu = 0, Bu = 100, Vu = 1e4, Hu = "4.6875rem", Uu = .01, Wu = /* @__PURE__ */ d({
|
|
9124
9113
|
inheritAttrs: !1,
|
|
9125
9114
|
__name: "PvRange",
|
|
9126
9115
|
props: /* @__PURE__ */ _({
|
|
@@ -9212,7 +9201,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9212
9201
|
let r = se(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
|
|
9213
9202
|
return Math.exp(i + n * (a - i)) - r;
|
|
9214
9203
|
}, q = (e, t) => Math.max(0, Math.min(100, ce(e, t) * 100)), J = r(() => {
|
|
9215
|
-
let e = E(t.min) ??
|
|
9204
|
+
let e = E(t.min) ?? zu, n = E(t.max) ?? Bu;
|
|
9216
9205
|
return e > n ? {
|
|
9217
9206
|
max: e,
|
|
9218
9207
|
min: n
|
|
@@ -9235,7 +9224,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9235
9224
|
}
|
|
9236
9225
|
return t.split(".")[1]?.length ?? 0;
|
|
9237
9226
|
}, Z = r(() => {
|
|
9238
|
-
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);
|
|
9239
9228
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (B.value > 0 ? B.value : 1)), {
|
|
9240
9229
|
max: o,
|
|
9241
9230
|
min: a
|
|
@@ -9276,14 +9265,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9276
9265
|
"--range-track-color": oe.value,
|
|
9277
9266
|
"--value-max": `${De.value}%`,
|
|
9278
9267
|
"--value-min": `${Ee.value}%`
|
|
9279
|
-
})), 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(() => {
|
|
9280
9269
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
9281
9270
|
return {
|
|
9282
9271
|
"--flex-align": "stretch",
|
|
9283
9272
|
"--flex-gap": "0",
|
|
9284
|
-
"--pv-range-input-width": `max(${
|
|
9273
|
+
"--pv-range-input-width": `max(${Hu}, calc(${Ve.value}ch + ${e}))`
|
|
9285
9274
|
};
|
|
9286
|
-
}), 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) => {
|
|
9287
9276
|
c.value = {
|
|
9288
9277
|
max: t >= Z.value.max && We() ? null : t,
|
|
9289
9278
|
min: e <= Z.value.min && Ue() ? null : e
|
|
@@ -9330,7 +9319,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9330
9319
|
let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
|
|
9331
9320
|
if (!a && !o) return;
|
|
9332
9321
|
e.preventDefault();
|
|
9333
|
-
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");
|
|
9334
9323
|
l === i && (l = i + s * _e(i, H.value)), Xe(n), Je(n, l, !1);
|
|
9335
9324
|
}, ct = () => {
|
|
9336
9325
|
g.value !== "min" && (m.value = P(Te.value.min)), g.value !== "max" && (p.value = P(Te.value.max));
|
|
@@ -9375,7 +9364,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9375
9364
|
};
|
|
9376
9365
|
return G([Te, Z], ct, { immediate: !0 }), C(() => {
|
|
9377
9366
|
_t(), Qe();
|
|
9378
|
-
}), (n, r) => e.mode === "single" ? (k(), o("div",
|
|
9367
|
+
}), (n, r) => e.mode === "single" ? (k(), o("div", Ou, [e.showValueTooltips && _.value ? (k(), o("span", {
|
|
9379
9368
|
key: 0,
|
|
9380
9369
|
class: "pv-range-tooltip",
|
|
9381
9370
|
style: S(fe.value)
|
|
@@ -9394,7 +9383,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9394
9383
|
onInput: it,
|
|
9395
9384
|
onPointerdown: rt,
|
|
9396
9385
|
onPointerup: $e
|
|
9397
|
-
}), null, 16,
|
|
9386
|
+
}), null, 16, ku)])) : (k(), o("div", v({ key: 1 }, V(l), {
|
|
9398
9387
|
class: "pv-flex-vertical",
|
|
9399
9388
|
"data-testid": "pv-range-dual",
|
|
9400
9389
|
role: "group",
|
|
@@ -9404,7 +9393,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9404
9393
|
"--flex-gap": "0"
|
|
9405
9394
|
}
|
|
9406
9395
|
}), [
|
|
9407
|
-
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),
|
|
9408
9397
|
s("div", {
|
|
9409
9398
|
ref_key: "sliderRef",
|
|
9410
9399
|
ref: y,
|
|
@@ -9439,7 +9428,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9439
9428
|
onKeydown: r[0] ||= (e) => st(e, "min"),
|
|
9440
9429
|
onPointerdown: r[1] ||= (e) => Xe("min"),
|
|
9441
9430
|
onPointerup: Ye
|
|
9442
|
-
}, null, 40,
|
|
9431
|
+
}, null, 40, Mu),
|
|
9443
9432
|
s("input", {
|
|
9444
9433
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
9445
9434
|
type: "range",
|
|
@@ -9456,14 +9445,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9456
9445
|
onKeydown: r[2] ||= (e) => st(e, "max"),
|
|
9457
9446
|
onPointerdown: r[3] ||= (e) => Xe("max"),
|
|
9458
9447
|
onPointerup: Ye
|
|
9459
|
-
}, null, 40,
|
|
9448
|
+
}, null, 40, Nu)
|
|
9460
9449
|
], 38),
|
|
9461
|
-
e.showInputs ? (k(), o("div",
|
|
9450
|
+
e.showInputs ? (k(), o("div", Pu, [
|
|
9462
9451
|
s("label", {
|
|
9463
9452
|
class: "pv-flex-vertical pv-range-input-label",
|
|
9464
9453
|
for: f,
|
|
9465
9454
|
style: S(He.value)
|
|
9466
|
-
}, [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, {
|
|
9467
9456
|
key: 0,
|
|
9468
9457
|
class: "pv-range-input-icon",
|
|
9469
9458
|
name: e.inputIcon
|
|
@@ -9480,12 +9469,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9480
9469
|
onFocus: r[5] ||= (e) => ft("min"),
|
|
9481
9470
|
onInput: ut,
|
|
9482
9471
|
onKeydown: r[6] ||= le((e) => mt(e, "min"), ["enter"])
|
|
9483
|
-
}, null, 40,
|
|
9472
|
+
}, null, 40, Iu)], 2)], 4),
|
|
9484
9473
|
s("label", {
|
|
9485
9474
|
class: "pv-flex-vertical pv-range-input-label",
|
|
9486
9475
|
for: d,
|
|
9487
9476
|
style: S(He.value)
|
|
9488
|
-
}, [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, {
|
|
9489
9478
|
key: 0,
|
|
9490
9479
|
class: "pv-range-input-icon",
|
|
9491
9480
|
name: e.inputIcon
|
|
@@ -9502,7 +9491,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9502
9491
|
onFocus: r[8] ||= (e) => ft("max"),
|
|
9503
9492
|
onInput: dt,
|
|
9504
9493
|
onKeydown: r[9] ||= le((e) => mt(e, "max"), ["enter"])
|
|
9505
|
-
}, null, 40,
|
|
9494
|
+
}, null, 40, Ru)], 2)], 4),
|
|
9506
9495
|
e.showClear && je.value ? (k(), i($, {
|
|
9507
9496
|
key: 0,
|
|
9508
9497
|
class: "pv-text-brand",
|
|
@@ -9519,26 +9508,26 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9519
9508
|
variant: "ghost",
|
|
9520
9509
|
onClick: Ze
|
|
9521
9510
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
9522
|
-
], 16,
|
|
9511
|
+
], 16, Au));
|
|
9523
9512
|
}
|
|
9524
|
-
}),
|
|
9513
|
+
}), Gu = [
|
|
9525
9514
|
"aria-label",
|
|
9526
9515
|
"checked",
|
|
9527
9516
|
"disabled",
|
|
9528
9517
|
"name"
|
|
9529
|
-
],
|
|
9518
|
+
], Ku = {
|
|
9530
9519
|
key: 3,
|
|
9531
9520
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
9532
|
-
},
|
|
9521
|
+
}, qu = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, Ju = {
|
|
9533
9522
|
key: 0,
|
|
9534
9523
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
9535
|
-
},
|
|
9524
|
+
}, Yu = {
|
|
9536
9525
|
key: 1,
|
|
9537
9526
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
9538
|
-
},
|
|
9527
|
+
}, Xu = {
|
|
9539
9528
|
key: 4,
|
|
9540
9529
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
9541
|
-
},
|
|
9530
|
+
}, Zu = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
|
|
9542
9531
|
__name: "PvFilterPanelOptionRow",
|
|
9543
9532
|
props: {
|
|
9544
9533
|
ariaLabel: {},
|
|
@@ -9616,7 +9605,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9616
9605
|
disabled: e.disabled,
|
|
9617
9606
|
name: e.name,
|
|
9618
9607
|
onChange: y
|
|
9619
|
-
}, null, 40,
|
|
9608
|
+
}, null, 40, Gu)) : (k(), i(_c, {
|
|
9620
9609
|
key: 1,
|
|
9621
9610
|
ariaLabel: e.ariaLabel || e.label,
|
|
9622
9611
|
disabled: e.disabled,
|
|
@@ -9629,12 +9618,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9629
9618
|
"indeterminate",
|
|
9630
9619
|
"modelValue"
|
|
9631
9620
|
])),
|
|
9632
|
-
e.renderer ? (k(), i(F(e.renderer), x(v({ key: 2 }, g.value)), null, 16)) : (k(), o("span",
|
|
9633
|
-
s("span",
|
|
9634
|
-
e.subduedText ? (k(), o("span",
|
|
9635
|
-
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)
|
|
9636
9625
|
])),
|
|
9637
|
-
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),
|
|
9638
9627
|
e.showFocusAction ? (k(), o("div", {
|
|
9639
9628
|
key: 5,
|
|
9640
9629
|
class: b(["pv-filter-panel-option-row-focus-action", { "pv-filter-panel-option-row-focus-action-always-visible": e.isFocused }]),
|
|
@@ -9660,7 +9649,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9660
9649
|
}, 8, ["description"])], 2)) : a("", !0)
|
|
9661
9650
|
], 6));
|
|
9662
9651
|
}
|
|
9663
|
-
}), [["__scopeId", "data-v-b85834dc"]]),
|
|
9652
|
+
}), [["__scopeId", "data-v-b85834dc"]]), Qu = "__pv_filter_panel_scoped_value__", $u = (e) => typeof e == "object" && !!e, ed = (e) => {
|
|
9664
9653
|
try {
|
|
9665
9654
|
let t = JSON.parse(decodeURIComponent(e));
|
|
9666
9655
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -9674,7 +9663,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9674
9663
|
} catch {
|
|
9675
9664
|
return [];
|
|
9676
9665
|
}
|
|
9677
|
-
},
|
|
9666
|
+
}, td = (e) => {
|
|
9678
9667
|
if (!e.startsWith("__")) return null;
|
|
9679
9668
|
let t = e.slice(2).split("__");
|
|
9680
9669
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -9687,38 +9676,38 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9687
9676
|
pairs: n,
|
|
9688
9677
|
value: n[0].value
|
|
9689
9678
|
};
|
|
9690
|
-
},
|
|
9679
|
+
}, nd = (e) => {
|
|
9691
9680
|
if (e == null) return null;
|
|
9692
|
-
if (!e.startsWith(
|
|
9681
|
+
if (!e.startsWith(Qu)) return td(e) ?? {
|
|
9693
9682
|
pairs: [],
|
|
9694
9683
|
value: e
|
|
9695
9684
|
};
|
|
9696
|
-
let t =
|
|
9685
|
+
let t = ed(e.slice(32));
|
|
9697
9686
|
return {
|
|
9698
9687
|
field: t[0]?.field,
|
|
9699
9688
|
pairs: t,
|
|
9700
9689
|
value: t[0]?.value ?? e
|
|
9701
9690
|
};
|
|
9702
|
-
},
|
|
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 = [
|
|
9703
9692
|
"totalCount",
|
|
9704
9693
|
"total_count",
|
|
9705
9694
|
"resultCount",
|
|
9706
9695
|
"result_count",
|
|
9707
9696
|
"row_count",
|
|
9708
9697
|
"count"
|
|
9709
|
-
],
|
|
9698
|
+
], ld = new Intl.NumberFormat("en-US", {
|
|
9710
9699
|
maximumFractionDigits: 1,
|
|
9711
9700
|
notation: "compact"
|
|
9712
|
-
}),
|
|
9713
|
-
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);
|
|
9714
9703
|
if (typeof e == "string") {
|
|
9715
9704
|
let t = e.trim();
|
|
9716
9705
|
if (!t) return;
|
|
9717
9706
|
let n = Number(t);
|
|
9718
|
-
return Number.isFinite(n) ?
|
|
9707
|
+
return Number.isFinite(n) ? ld.format(n) : e;
|
|
9719
9708
|
}
|
|
9720
|
-
},
|
|
9721
|
-
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);
|
|
9722
9711
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
9723
9712
|
currency: "USD",
|
|
9724
9713
|
maximumFractionDigits: n,
|
|
@@ -9730,69 +9719,69 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9730
9719
|
minimumFractionDigits: n
|
|
9731
9720
|
}).format(e);
|
|
9732
9721
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
9733
|
-
},
|
|
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) => {
|
|
9734
9723
|
let n = e.metadata;
|
|
9735
|
-
if (!
|
|
9724
|
+
if (!ud(n)) return null;
|
|
9736
9725
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
9737
9726
|
let t = n[e];
|
|
9738
9727
|
if (t != null && String(t).trim()) return String(t);
|
|
9739
9728
|
}
|
|
9740
9729
|
return null;
|
|
9741
|
-
},
|
|
9730
|
+
}, _d = (e, t) => {
|
|
9742
9731
|
try {
|
|
9743
9732
|
return e(t) || null;
|
|
9744
9733
|
} catch {
|
|
9745
9734
|
return null;
|
|
9746
9735
|
}
|
|
9747
|
-
},
|
|
9736
|
+
}, vd = (e, t) => {
|
|
9748
9737
|
let n = t?.context?.filterValueFormatter;
|
|
9749
9738
|
if (typeof n != "function") return null;
|
|
9750
|
-
let r = e.rawValue !== null && e.rawValue !== void 0 ||
|
|
9751
|
-
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, {
|
|
9752
9741
|
context: {
|
|
9753
9742
|
...e,
|
|
9754
9743
|
label: i
|
|
9755
9744
|
},
|
|
9756
|
-
value:
|
|
9745
|
+
value: hd(e)
|
|
9757
9746
|
});
|
|
9758
|
-
},
|
|
9747
|
+
}, yd = (e, t) => typeof t?.valueFormatter == "function" ? _d(t.valueFormatter, {
|
|
9759
9748
|
context: e.metadata,
|
|
9760
|
-
value:
|
|
9761
|
-
}) : null,
|
|
9762
|
-
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;
|
|
9763
9752
|
return Array.from(new Set([
|
|
9764
9753
|
e.value,
|
|
9765
9754
|
e.rawValue,
|
|
9766
9755
|
t,
|
|
9767
|
-
|
|
9756
|
+
nd(e.value)?.value
|
|
9768
9757
|
].filter((e) => e != null).map(String)));
|
|
9769
|
-
}, xd = (e, t) => {
|
|
9770
|
-
if (!t?.context?.metadataDisplayFields?.length || hd(e, t)) return !1;
|
|
9771
|
-
let n = e.label?.trim();
|
|
9772
|
-
return !n || bd(e).includes(n);
|
|
9773
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) => {
|
|
9774
9763
|
let n = /* @__PURE__ */ new Map(), r = (e) => {
|
|
9775
|
-
let i =
|
|
9776
|
-
for (let r of
|
|
9764
|
+
let i = Sd(e, t);
|
|
9765
|
+
for (let r of xd(e)) {
|
|
9777
9766
|
let a = n.get(r);
|
|
9778
|
-
(!a ||
|
|
9767
|
+
(!a || Sd(a, t) && !i) && n.set(r, e);
|
|
9779
9768
|
}
|
|
9780
9769
|
e.children?.forEach(r);
|
|
9781
9770
|
};
|
|
9782
9771
|
return e.forEach(r), n;
|
|
9783
|
-
},
|
|
9784
|
-
let r =
|
|
9785
|
-
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 {
|
|
9786
9775
|
...e,
|
|
9787
9776
|
label: r
|
|
9788
9777
|
};
|
|
9789
|
-
if (!
|
|
9790
|
-
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));
|
|
9791
9780
|
if (!a) return null;
|
|
9792
|
-
let o =
|
|
9781
|
+
let o = gd(a, n) ?? a.label;
|
|
9793
9782
|
if (!o) return null;
|
|
9794
|
-
let s = Object.entries(
|
|
9795
|
-
...
|
|
9783
|
+
let s = Object.entries(ud(e.metadata) ? e.metadata : {}).filter(([, e]) => e != null && e !== ""), c = {
|
|
9784
|
+
...ud(a.metadata) ? a.metadata : {},
|
|
9796
9785
|
...Object.fromEntries(s)
|
|
9797
9786
|
};
|
|
9798
9787
|
return {
|
|
@@ -9800,10 +9789,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9800
9789
|
label: o,
|
|
9801
9790
|
...Object.keys(c).length ? { metadata: c } : {}
|
|
9802
9791
|
};
|
|
9803
|
-
},
|
|
9792
|
+
}, Td = (e, t, n) => {
|
|
9804
9793
|
if (!n?.context?.metadataDisplayFields?.length) return e;
|
|
9805
|
-
let r =
|
|
9806
|
-
let t =
|
|
9794
|
+
let r = Cd(t, n), i = (e) => e.flatMap((e) => {
|
|
9795
|
+
let t = wd(e, r, n);
|
|
9807
9796
|
if (!t) return [];
|
|
9808
9797
|
if (!t.children?.length) return [t];
|
|
9809
9798
|
let a = i(t.children), o = t.totalChildCount !== void 0 && t.children.length >= t.totalChildCount ? a.length : t.totalChildCount;
|
|
@@ -9814,73 +9803,73 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9814
9803
|
}];
|
|
9815
9804
|
});
|
|
9816
9805
|
return i(e);
|
|
9817
|
-
},
|
|
9818
|
-
let t =
|
|
9806
|
+
}, Ed = (e) => {
|
|
9807
|
+
let t = dd(e?.resultCount);
|
|
9819
9808
|
if (t !== void 0) return t;
|
|
9820
9809
|
let n = e?.metadata;
|
|
9821
|
-
if (
|
|
9822
|
-
let t =
|
|
9810
|
+
if (ud(n)) for (let e of cd) {
|
|
9811
|
+
let t = dd(n[e]);
|
|
9823
9812
|
if (t !== void 0) return t;
|
|
9824
9813
|
}
|
|
9825
|
-
return
|
|
9826
|
-
},
|
|
9814
|
+
return dd(e?.totalChildCount);
|
|
9815
|
+
}, Dd = (e) => {
|
|
9827
9816
|
let t = e;
|
|
9828
9817
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
9829
|
-
},
|
|
9818
|
+
}, Od = (e) => {
|
|
9830
9819
|
let t = e;
|
|
9831
|
-
return
|
|
9820
|
+
return Dd(e) ? {
|
|
9832
9821
|
...t,
|
|
9833
|
-
conditions: (t.conditions ?? []).map(
|
|
9822
|
+
conditions: (t.conditions ?? []).map(Od)
|
|
9834
9823
|
} : { ...t };
|
|
9835
|
-
},
|
|
9824
|
+
}, kd = (e, t) => {
|
|
9836
9825
|
if (!e) return null;
|
|
9837
9826
|
let n = t instanceof Set ? t : new Set(t);
|
|
9838
|
-
if (!n.size) return
|
|
9839
|
-
if (!
|
|
9827
|
+
if (!n.size) return Od(e);
|
|
9828
|
+
if (!Dd(e)) {
|
|
9840
9829
|
let t = e;
|
|
9841
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
9830
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : Od(e);
|
|
9842
9831
|
}
|
|
9843
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
9832
|
+
let r = e, i = (r.conditions ?? []).map((e) => kd(e, n)).filter((e) => !!e);
|
|
9844
9833
|
return i.length ? i.length === 1 ? i[0] : {
|
|
9845
9834
|
...r,
|
|
9846
9835
|
conditions: i
|
|
9847
9836
|
} : null;
|
|
9848
|
-
},
|
|
9837
|
+
}, Ad = (e) => e ? [e.field, ...(e.children ?? []).flatMap(Ad)] : [], jd = (e) => e ? e.children?.length ? e.children.flatMap(jd) : [e.field] : [], Md = (e) => {
|
|
9849
9838
|
let t = e?.context ?? {};
|
|
9850
|
-
return t.aggregateFieldHierarchy ?
|
|
9851
|
-
},
|
|
9839
|
+
return t.aggregateFieldHierarchy ? Ad(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
9840
|
+
}, Nd = (e) => {
|
|
9852
9841
|
let t = e?.context ?? {};
|
|
9853
9842
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
9854
|
-
},
|
|
9843
|
+
}, Pd = (e) => Md(e).length > 0, Fd = (e, t) => {
|
|
9855
9844
|
for (let n of e ?? []) {
|
|
9856
9845
|
if (!n) continue;
|
|
9857
9846
|
if (n.value === t) return n;
|
|
9858
|
-
let e =
|
|
9847
|
+
let e = Fd(n.children, t);
|
|
9859
9848
|
if (e) return e;
|
|
9860
9849
|
}
|
|
9861
|
-
},
|
|
9850
|
+
}, Id = (e, t, n = []) => {
|
|
9862
9851
|
for (let r of e ?? []) {
|
|
9863
9852
|
if (!r) continue;
|
|
9864
9853
|
let e = [...n, r];
|
|
9865
9854
|
if (r.value === t) return e;
|
|
9866
|
-
let i =
|
|
9855
|
+
let i = Id(r.children, t, e);
|
|
9867
9856
|
if (i) return i;
|
|
9868
9857
|
}
|
|
9869
|
-
},
|
|
9870
|
-
let n =
|
|
9858
|
+
}, Ld = (e, t) => {
|
|
9859
|
+
let n = Fd(t, e), r = n ? ad(n, "") : void 0, i = n ? id(n) : null;
|
|
9871
9860
|
if (r && i !== null) return {
|
|
9872
9861
|
field: r,
|
|
9873
9862
|
value: i
|
|
9874
9863
|
};
|
|
9875
|
-
let a =
|
|
9864
|
+
let a = nd(e);
|
|
9876
9865
|
return {
|
|
9877
9866
|
field: a?.field,
|
|
9878
9867
|
value: a?.value ?? e
|
|
9879
9868
|
};
|
|
9880
|
-
},
|
|
9869
|
+
}, Rd = (e, t, n) => {
|
|
9881
9870
|
let r = (e) => {
|
|
9882
9871
|
if (!e) return;
|
|
9883
|
-
let i =
|
|
9872
|
+
let i = ad(e, ""), a = id(e);
|
|
9884
9873
|
if (i === t && a === n) return e.value;
|
|
9885
9874
|
for (let t of e.children ?? []) {
|
|
9886
9875
|
let e = r(t);
|
|
@@ -9892,9 +9881,9 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9892
9881
|
if (e) return e;
|
|
9893
9882
|
}
|
|
9894
9883
|
return `__${t}__${n}`;
|
|
9895
|
-
},
|
|
9884
|
+
}, zd = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...zd(e.children)]), Bd = (e, t) => {
|
|
9896
9885
|
if (e.state !== "selected") return null;
|
|
9897
|
-
let { field: n, value: r } =
|
|
9886
|
+
let { field: n, value: r } = Ld(e.id, t);
|
|
9898
9887
|
if (!n) return null;
|
|
9899
9888
|
let i = [{
|
|
9900
9889
|
colId: n,
|
|
@@ -9902,8 +9891,8 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9902
9891
|
filterType: "text",
|
|
9903
9892
|
type: "equals"
|
|
9904
9893
|
}];
|
|
9905
|
-
for (let n of
|
|
9906
|
-
let e =
|
|
9894
|
+
for (let n of zd(e.children)) {
|
|
9895
|
+
let e = Ld(n.id, t);
|
|
9907
9896
|
e.field && i.push({
|
|
9908
9897
|
colId: e.field,
|
|
9909
9898
|
filter: e.value,
|
|
@@ -9916,10 +9905,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9916
9905
|
filterType: "join",
|
|
9917
9906
|
type: "AND"
|
|
9918
9907
|
};
|
|
9919
|
-
},
|
|
9920
|
-
let t =
|
|
9908
|
+
}, Vd = (e) => {
|
|
9909
|
+
let t = Md(e.colDef), n = kd(e.baseModel, t);
|
|
9921
9910
|
if (!t.length) return n;
|
|
9922
|
-
let r = e.state.map((t) =>
|
|
9911
|
+
let r = e.state.map((t) => Bd(t, e.options)).filter((e) => !!e);
|
|
9923
9912
|
if (!r.length) return n;
|
|
9924
9913
|
let i = r.length === 1 ? r[0] : {
|
|
9925
9914
|
conditions: r,
|
|
@@ -9931,17 +9920,17 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9931
9920
|
filterType: "join",
|
|
9932
9921
|
type: "AND"
|
|
9933
9922
|
} : i;
|
|
9934
|
-
},
|
|
9923
|
+
}, Hd = (e, t, n) => {
|
|
9935
9924
|
if (!e) return [];
|
|
9936
9925
|
let r = e;
|
|
9937
|
-
if (
|
|
9926
|
+
if (Dd(e)) {
|
|
9938
9927
|
let e = r.conditions ?? [];
|
|
9939
9928
|
if (r.type === "AND") {
|
|
9940
9929
|
let r = e.find((e) => {
|
|
9941
9930
|
let r = e;
|
|
9942
9931
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
9943
9932
|
});
|
|
9944
|
-
return e.flatMap((e) =>
|
|
9933
|
+
return e.flatMap((e) => Hd(e, t, n).map((e) => ({
|
|
9945
9934
|
...e,
|
|
9946
9935
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
9947
9936
|
colId: r.colId,
|
|
@@ -9949,20 +9938,20 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9949
9938
|
} : void 0)
|
|
9950
9939
|
})));
|
|
9951
9940
|
}
|
|
9952
|
-
return e.flatMap((e) =>
|
|
9941
|
+
return e.flatMap((e) => Hd(e, t, n));
|
|
9953
9942
|
}
|
|
9954
9943
|
return r.colId && t.has(r.colId) ? [{
|
|
9955
9944
|
colId: r.colId,
|
|
9956
9945
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
9957
9946
|
type: r.type
|
|
9958
9947
|
}] : [];
|
|
9959
|
-
},
|
|
9960
|
-
let t =
|
|
9948
|
+
}, Ud = (e) => {
|
|
9949
|
+
let t = Md(e.colDef);
|
|
9961
9950
|
if (!t.length) return [];
|
|
9962
|
-
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();
|
|
9963
9952
|
for (let t of i) {
|
|
9964
9953
|
if (!t.filter) continue;
|
|
9965
|
-
let n =
|
|
9954
|
+
let n = Rd(e.options, t.colId, String(t.filter));
|
|
9966
9955
|
if (t.type === "equals") {
|
|
9967
9956
|
let e = a.get(n);
|
|
9968
9957
|
a.set(n, {
|
|
@@ -9973,7 +9962,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9973
9962
|
continue;
|
|
9974
9963
|
}
|
|
9975
9964
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
9976
|
-
let r =
|
|
9965
|
+
let r = Rd(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
9977
9966
|
children: [],
|
|
9978
9967
|
id: r,
|
|
9979
9968
|
state: "selected"
|
|
@@ -9985,158 +9974,158 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
9985
9974
|
}
|
|
9986
9975
|
}
|
|
9987
9976
|
return [...a.values()];
|
|
9988
|
-
},
|
|
9989
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
9977
|
+
}, Wd = (e) => {
|
|
9978
|
+
let t = /* @__PURE__ */ new Map(), n = Md(e.colDef);
|
|
9990
9979
|
if (!n.length) return t;
|
|
9991
|
-
let r =
|
|
9980
|
+
let r = Hd(e.model, new Set(n), new Set(jd(e.colDef.context?.aggregateFieldHierarchy)));
|
|
9992
9981
|
for (let e of r) {
|
|
9993
9982
|
if (e.type !== "equals" || !e.filter) continue;
|
|
9994
9983
|
let n = t.get(e.colId) ?? [];
|
|
9995
9984
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
9996
9985
|
}
|
|
9997
9986
|
return t;
|
|
9998
|
-
},
|
|
9987
|
+
}, Gd = (e) => e.map((e) => ({
|
|
9999
9988
|
...e,
|
|
10000
9989
|
children: e.children?.map((e) => ({
|
|
10001
9990
|
...e,
|
|
10002
|
-
children: e.children ?
|
|
9991
|
+
children: e.children ? Gd(e.children) : void 0
|
|
10003
9992
|
}))
|
|
10004
|
-
})),
|
|
9993
|
+
})), Kd = (e, t) => e.flatMap((e) => {
|
|
10005
9994
|
if (e.id === t) return [];
|
|
10006
|
-
let n = e.children ?
|
|
9995
|
+
let n = e.children ? Kd(e.children, t) : void 0;
|
|
10007
9996
|
return [{
|
|
10008
9997
|
...e,
|
|
10009
9998
|
children: n?.length ? n : void 0
|
|
10010
9999
|
}];
|
|
10011
|
-
}),
|
|
10000
|
+
}), qd = (e, t) => {
|
|
10012
10001
|
for (let n of e) {
|
|
10013
10002
|
if (n.id === t) return n;
|
|
10014
|
-
let e = n.children ?
|
|
10003
|
+
let e = n.children ? qd(n.children, t) : void 0;
|
|
10015
10004
|
if (e) return e;
|
|
10016
10005
|
}
|
|
10017
|
-
},
|
|
10018
|
-
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();
|
|
10019
10008
|
for (let t of r) {
|
|
10020
|
-
let n =
|
|
10009
|
+
let n = qd(e, t.value);
|
|
10021
10010
|
if (n?.state === "selected") return n;
|
|
10022
10011
|
}
|
|
10023
|
-
},
|
|
10024
|
-
let t =
|
|
10012
|
+
}, ef = (e) => {
|
|
10013
|
+
let t = Gd(e.state), n = $d(t, e.option, e.options);
|
|
10025
10014
|
if (n) {
|
|
10026
10015
|
let r = n.children ?? [];
|
|
10027
|
-
return n.children = e.checked ?
|
|
10016
|
+
return n.children = e.checked ? Qd(r, e.option) : [...Qd(r, e.option), {
|
|
10028
10017
|
id: e.option.value,
|
|
10029
10018
|
state: "deselected"
|
|
10030
10019
|
}], n.children.length || delete n.children, t;
|
|
10031
10020
|
}
|
|
10032
|
-
return
|
|
10021
|
+
return Jd(e.option) ? e.checked ? Yd(Zd(t, e.option), {
|
|
10033
10022
|
id: e.option.value,
|
|
10034
10023
|
state: "selected"
|
|
10035
|
-
}) :
|
|
10024
|
+
}) : Kd(t, e.option.value) : e.checked ? Yd(t, {
|
|
10036
10025
|
id: e.option.value,
|
|
10037
10026
|
state: "selected"
|
|
10038
|
-
}) :
|
|
10039
|
-
},
|
|
10027
|
+
}) : Kd(t, e.option.value);
|
|
10028
|
+
}, tf = (e) => {
|
|
10040
10029
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
10041
10030
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
10042
10031
|
};
|
|
10043
10032
|
return n(e), t;
|
|
10044
|
-
},
|
|
10045
|
-
let t =
|
|
10033
|
+
}, nf = (e) => {
|
|
10034
|
+
let t = tf(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
10046
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 = {
|
|
10047
|
-
indeterminate:
|
|
10036
|
+
indeterminate: zd(a?.children).length > 0 || !o && c || o && l,
|
|
10048
10037
|
selected: o
|
|
10049
10038
|
};
|
|
10050
10039
|
return n.set(e.value, u), u;
|
|
10051
10040
|
};
|
|
10052
10041
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
10053
10042
|
return n;
|
|
10054
|
-
},
|
|
10043
|
+
}, rf = (e) => nf(e).get(e.option.value) ?? nf({
|
|
10055
10044
|
options: [e.option],
|
|
10056
10045
|
state: e.state
|
|
10057
10046
|
}).get(e.option.value) ?? {
|
|
10058
10047
|
indeterminate: !1,
|
|
10059
10048
|
selected: !1
|
|
10060
|
-
},
|
|
10049
|
+
}, af = (e) => e.state.flatMap((t) => {
|
|
10061
10050
|
if (t.state !== "selected") return [];
|
|
10062
|
-
let n =
|
|
10051
|
+
let n = Fd(e.options, t.id);
|
|
10063
10052
|
if (n) return [n];
|
|
10064
|
-
let { field: r, value: i } =
|
|
10053
|
+
let { field: r, value: i } = Ld(t.id, e.options);
|
|
10065
10054
|
return [{
|
|
10066
10055
|
colField: r,
|
|
10067
10056
|
label: i,
|
|
10068
10057
|
metadata: { rawValue: i },
|
|
10069
|
-
value: r ?
|
|
10058
|
+
value: r ? rd(r, i) : t.id
|
|
10070
10059
|
}];
|
|
10071
|
-
}),
|
|
10060
|
+
}), of = (e) => e.filter((e) => e.state === "selected").length, sf = ["open"], cf = {
|
|
10072
10061
|
class: "pv-flex pv-text-body-md",
|
|
10073
10062
|
style: {
|
|
10074
10063
|
"--flex-align": "center",
|
|
10075
10064
|
"--flex-gap": "0.5rem"
|
|
10076
10065
|
}
|
|
10077
|
-
},
|
|
10066
|
+
}, lf = {
|
|
10078
10067
|
key: 1,
|
|
10079
10068
|
class: "pv-filter-panel-refresh-status",
|
|
10080
10069
|
"data-testid": "pv-filter-panel-refresh-status",
|
|
10081
10070
|
role: "status"
|
|
10082
|
-
},
|
|
10071
|
+
}, uf = { class: "pv-visually-hidden" }, df = ["aria-busy"], ff = {
|
|
10083
10072
|
key: 0,
|
|
10084
10073
|
class: "pv-flex-vertical",
|
|
10085
10074
|
style: {
|
|
10086
10075
|
"--flex-align": "stretch",
|
|
10087
10076
|
"--flex-gap": "0.5rem"
|
|
10088
10077
|
}
|
|
10089
|
-
},
|
|
10078
|
+
}, pf = ["aria-label"], mf = {
|
|
10090
10079
|
key: 0,
|
|
10091
10080
|
class: "pv-text-subdued pv-text-body-xxs",
|
|
10092
10081
|
"data-testid": "filter-group-label"
|
|
10093
|
-
},
|
|
10082
|
+
}, hf = {
|
|
10094
10083
|
class: "pv-flex",
|
|
10095
10084
|
style: {
|
|
10096
10085
|
"--flex-gap": "0.5rem",
|
|
10097
10086
|
"--flex-wrap": "wrap"
|
|
10098
10087
|
}
|
|
10099
|
-
},
|
|
10088
|
+
}, gf = {
|
|
10100
10089
|
key: 1,
|
|
10101
10090
|
class: "pv-flex",
|
|
10102
10091
|
style: { "--flex-justify": "flex-end" }
|
|
10103
|
-
},
|
|
10092
|
+
}, _f = {
|
|
10104
10093
|
key: 2,
|
|
10105
10094
|
class: "pv-flex-vertical",
|
|
10106
10095
|
style: {
|
|
10107
10096
|
"--flex-align": "stretch",
|
|
10108
10097
|
"--flex-gap": "0.5rem"
|
|
10109
10098
|
}
|
|
10110
|
-
},
|
|
10099
|
+
}, vf = {
|
|
10111
10100
|
key: 3,
|
|
10112
10101
|
class: "pv-flex pv-text-body-xs pv-text-subdued"
|
|
10113
|
-
},
|
|
10102
|
+
}, yf = { key: 0 }, bf = {
|
|
10114
10103
|
key: 1,
|
|
10115
10104
|
class: "pv-text-body-xs pv-text-subdued",
|
|
10116
10105
|
style: { margin: "0" }
|
|
10117
|
-
},
|
|
10106
|
+
}, xf = {
|
|
10118
10107
|
key: 1,
|
|
10119
10108
|
class: "pv-text-body-xs pv-text-subdued",
|
|
10120
10109
|
style: { margin: "0" }
|
|
10121
|
-
},
|
|
10110
|
+
}, Sf = {
|
|
10122
10111
|
key: 2,
|
|
10123
10112
|
class: "pv-flex-vertical",
|
|
10124
10113
|
style: {
|
|
10125
10114
|
"--flex-align": "stretch",
|
|
10126
10115
|
"--flex-gap": "0.5rem"
|
|
10127
10116
|
}
|
|
10128
|
-
},
|
|
10117
|
+
}, Cf = { key: 0 }, wf = {
|
|
10129
10118
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
10130
10119
|
style: { margin: "0" }
|
|
10131
|
-
},
|
|
10120
|
+
}, Tf = {
|
|
10132
10121
|
key: 1,
|
|
10133
10122
|
class: "pv-text-title-sm pv-text-subdued",
|
|
10134
10123
|
style: { margin: "0" }
|
|
10135
|
-
},
|
|
10124
|
+
}, Ef = {
|
|
10136
10125
|
key: 2,
|
|
10137
10126
|
class: "pv-text-body-xs pv-text-subdued",
|
|
10138
10127
|
style: { margin: "0" }
|
|
10139
|
-
},
|
|
10128
|
+
}, Df = {
|
|
10140
10129
|
key: 3,
|
|
10141
10130
|
class: "pv-flex-vertical",
|
|
10142
10131
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -10144,14 +10133,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10144
10133
|
"--flex-align": "stretch",
|
|
10145
10134
|
"--flex-gap": "0.5rem"
|
|
10146
10135
|
}
|
|
10147
|
-
},
|
|
10136
|
+
}, Of = {
|
|
10148
10137
|
class: "pv-flex",
|
|
10149
10138
|
style: {
|
|
10150
10139
|
"--flex-align": "center",
|
|
10151
10140
|
"--flex-gap": "0.5rem",
|
|
10152
10141
|
"--flex-wrap": "wrap"
|
|
10153
10142
|
}
|
|
10154
|
-
},
|
|
10143
|
+
}, kf = {
|
|
10155
10144
|
key: 4,
|
|
10156
10145
|
class: "pv-flex",
|
|
10157
10146
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -10160,7 +10149,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10160
10149
|
"--flex-gap": "0.5rem",
|
|
10161
10150
|
cursor: "pointer"
|
|
10162
10151
|
}
|
|
10163
|
-
},
|
|
10152
|
+
}, Af = { class: "pv-text-body-sm" }, jf = 5, Mf = 500, Nf = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
|
|
10164
10153
|
__name: "PvFilterPanelAccordion",
|
|
10165
10154
|
props: {
|
|
10166
10155
|
disableWhileLoading: {
|
|
@@ -10178,7 +10167,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10178
10167
|
"search-change"
|
|
10179
10168
|
],
|
|
10180
10169
|
setup(e, { emit: n }) {
|
|
10181
|
-
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(() => {
|
|
10182
10171
|
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
10183
10172
|
return t && !n ? [{
|
|
10184
10173
|
label: B.value,
|
|
@@ -10203,7 +10192,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10203
10192
|
e.matchedValue,
|
|
10204
10193
|
e.matchedField
|
|
10205
10194
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
10206
|
-
}, 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) => [
|
|
10207
10196
|
{
|
|
10208
10197
|
depth: t,
|
|
10209
10198
|
kind: "option",
|
|
@@ -10228,16 +10217,16 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10228
10217
|
se.value = O.value || c.filter.singleSelect ? [] : [...P.value];
|
|
10229
10218
|
};
|
|
10230
10219
|
de();
|
|
10231
|
-
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({
|
|
10232
10221
|
options: T.value,
|
|
10233
10222
|
state: A.value
|
|
10234
|
-
}) : /* @__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) ?? {
|
|
10235
10224
|
indeterminate: !1,
|
|
10236
10225
|
selected: !1
|
|
10237
10226
|
} : {
|
|
10238
10227
|
indeterminate: !1,
|
|
10239
10228
|
selected: I.value.has(e.value)
|
|
10240
|
-
}, 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) => {
|
|
10241
10230
|
let t = xe(e), n = be(e);
|
|
10242
10231
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
10243
10232
|
}, Ce = (e) => {
|
|
@@ -10272,7 +10261,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10272
10261
|
rowsLoading: c.filter.isLoading
|
|
10273
10262
|
}
|
|
10274
10263
|
})), Ae = () => {
|
|
10275
|
-
H.value || (fe.value ? _.value +=
|
|
10264
|
+
H.value || (fe.value ? _.value += jf : c.filter.hasMore && d("load-more", g.value.trim()));
|
|
10276
10265
|
}, je = (e) => {
|
|
10277
10266
|
H.value || d("load-more", g.value.trim(), e.value);
|
|
10278
10267
|
}, Me = (e) => {
|
|
@@ -10298,7 +10287,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10298
10287
|
if (O.value) {
|
|
10299
10288
|
d("filter-change", {
|
|
10300
10289
|
type: "aggregate-selection",
|
|
10301
|
-
value:
|
|
10290
|
+
value: ef({
|
|
10302
10291
|
checked: t,
|
|
10303
10292
|
option: e,
|
|
10304
10293
|
options: T.value,
|
|
@@ -10326,12 +10315,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10326
10315
|
H.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
10327
10316
|
};
|
|
10328
10317
|
G([g, () => c.filter.key], () => {
|
|
10329
|
-
_.value =
|
|
10318
|
+
_.value = jf;
|
|
10330
10319
|
});
|
|
10331
10320
|
let Ve = () => {
|
|
10332
|
-
let e =
|
|
10321
|
+
let e = od(T.value), t = { ...p.value }, n = new Map(Object.entries(t));
|
|
10333
10322
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
10334
|
-
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)));
|
|
10335
10324
|
};
|
|
10336
10325
|
G(T, () => {
|
|
10337
10326
|
c.filter.isOpen && Ve();
|
|
@@ -10361,7 +10350,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10361
10350
|
"data-testid": "pv-filter-panel-accordion",
|
|
10362
10351
|
open: e.filter.isOpen,
|
|
10363
10352
|
onToggle: Me
|
|
10364
|
-
}, [s("summary",
|
|
10353
|
+
}, [s("summary", cf, [
|
|
10365
10354
|
u(Q, {
|
|
10366
10355
|
"aria-hidden": "true",
|
|
10367
10356
|
class: "pv-text-subdued",
|
|
@@ -10374,7 +10363,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10374
10363
|
size: "sm",
|
|
10375
10364
|
variant: "secondary"
|
|
10376
10365
|
}, null, 8, ["value"])) : a("", !0),
|
|
10377
|
-
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)
|
|
10378
10367
|
]), s("div", {
|
|
10379
10368
|
ref_key: "filterContent",
|
|
10380
10369
|
ref: f,
|
|
@@ -10385,7 +10374,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10385
10374
|
minHeight: m.value ? `${m.value}px` : void 0
|
|
10386
10375
|
})
|
|
10387
10376
|
}, [D.value ? (k(), o(t, { key: 0 }, [
|
|
10388
|
-
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, [
|
|
10389
10378
|
e.filter.filterGroupOptions?.length ? (k(), o("div", {
|
|
10390
10379
|
key: 0,
|
|
10391
10380
|
class: "pv-flex-vertical",
|
|
@@ -10395,7 +10384,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10395
10384
|
},
|
|
10396
10385
|
role: "group",
|
|
10397
10386
|
"aria-label": e.filter.filterGroupLabel
|
|
10398
|
-
}, [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($, {
|
|
10399
10388
|
key: e.field,
|
|
10400
10389
|
disabled: H.value,
|
|
10401
10390
|
label: e.label,
|
|
@@ -10407,8 +10396,8 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10407
10396
|
"label",
|
|
10408
10397
|
"variant",
|
|
10409
10398
|
"onClick"
|
|
10410
|
-
]))), 128))])], 8,
|
|
10411
|
-
e.filter.displayPreferencesIcon ? (k(), o("div",
|
|
10399
|
+
]))), 128))])], 8, pf)) : a("", !0),
|
|
10400
|
+
e.filter.displayPreferencesIcon ? (k(), o("div", gf, [u($, {
|
|
10412
10401
|
ariaLabel: "Open preferences",
|
|
10413
10402
|
disabled: H.value,
|
|
10414
10403
|
leftIcon: "sliders-horizontal",
|
|
@@ -10430,7 +10419,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10430
10419
|
"disabled",
|
|
10431
10420
|
"placeholder"
|
|
10432
10421
|
])),
|
|
10433
|
-
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, {
|
|
10434
10423
|
key: t.value,
|
|
10435
10424
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
10436
10425
|
disabled: H.value || t.isSelectable === !1,
|
|
@@ -10472,10 +10461,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10472
10461
|
"onFocusValue",
|
|
10473
10462
|
"onToggleValue"
|
|
10474
10463
|
]))), 128))])) : a("", !0),
|
|
10475
|
-
e.filter.isLoading && !J.value ? (k(), o("div",
|
|
10476
|
-
!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",
|
|
10477
|
-
Y.value.length || X.value ? (k(), o("div",
|
|
10478
|
-
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, {
|
|
10479
10468
|
key: 0,
|
|
10480
10469
|
variant: "dark",
|
|
10481
10470
|
disableInteractive: !0,
|
|
@@ -10484,11 +10473,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10484
10473
|
"use-teleport": !0,
|
|
10485
10474
|
style: { "--max-width": "200px" }
|
|
10486
10475
|
}, {
|
|
10487
|
-
trigger: K(() => [s("p",
|
|
10476
|
+
trigger: K(() => [s("p", wf, R(ee.value), 1)]),
|
|
10488
10477
|
content: K(() => [l(R(e.filter.filterOptionsSortTooltip), 1)]),
|
|
10489
10478
|
_: 1
|
|
10490
|
-
})) : (k(), o("p",
|
|
10491
|
-
(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, {
|
|
10492
10481
|
key: 0,
|
|
10493
10482
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
10494
10483
|
depth: n.depth,
|
|
@@ -10559,7 +10548,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10559
10548
|
])) : a("", !0),
|
|
10560
10549
|
e.filter.filterFooterRenderer ? (k(), i(F(e.filter.filterFooterRenderer), x(v({ key: 3 }, ke.value)), null, 16)) : a("", !0)
|
|
10561
10550
|
], 64))
|
|
10562
|
-
], 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, {
|
|
10563
10552
|
key: 1,
|
|
10564
10553
|
mode: "dual",
|
|
10565
10554
|
rangeValue: e.filter.rangeValue,
|
|
@@ -10586,7 +10575,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10586
10575
|
"slider-step",
|
|
10587
10576
|
"step",
|
|
10588
10577
|
"value-decimals"
|
|
10589
|
-
])) : 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($, {
|
|
10590
10579
|
key: String(t.value),
|
|
10591
10580
|
disabled: H.value,
|
|
10592
10581
|
label: t.label,
|
|
@@ -10604,43 +10593,43 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10604
10593
|
label: "Clear",
|
|
10605
10594
|
variant: "ghost",
|
|
10606
10595
|
onClick: r[1] ||= (e) => Ne(null)
|
|
10607
|
-
}, 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, {
|
|
10608
10597
|
disabled: H.value,
|
|
10609
10598
|
modelValue: e.filter.existsValue ?? !1,
|
|
10610
10599
|
"onUpdate:modelValue": Pe
|
|
10611
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
10600
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", Af, R(y.value), 1)])) : a("", !0)], 12, df)], 40, sf));
|
|
10612
10601
|
}
|
|
10613
|
-
}), [["__scopeId", "data-v-d5483de6"]]),
|
|
10602
|
+
}), [["__scopeId", "data-v-d5483de6"]]), Pf = {
|
|
10614
10603
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
10615
10604
|
"data-testid": "pv-filter-panel-applied-section",
|
|
10616
10605
|
style: {
|
|
10617
10606
|
"--flex-align": "stretch",
|
|
10618
10607
|
"--flex-gap": "1rem"
|
|
10619
10608
|
}
|
|
10620
|
-
},
|
|
10609
|
+
}, Ff = {
|
|
10621
10610
|
key: 0,
|
|
10622
10611
|
class: "pv-flex-vertical",
|
|
10623
10612
|
style: {
|
|
10624
10613
|
"--flex-align": "stretch",
|
|
10625
10614
|
"--flex-gap": "1rem"
|
|
10626
10615
|
}
|
|
10627
|
-
},
|
|
10616
|
+
}, If = { class: "pv-text-title-md" }, Lf = {
|
|
10628
10617
|
class: "pv-flex",
|
|
10629
10618
|
style: {
|
|
10630
10619
|
"--flex-gap": "0.375rem",
|
|
10631
10620
|
"--flex-wrap": "wrap"
|
|
10632
10621
|
}
|
|
10633
|
-
},
|
|
10622
|
+
}, Rf = { class: "pv-text-title-md" }, zf = {
|
|
10634
10623
|
class: "pv-flex",
|
|
10635
10624
|
style: {
|
|
10636
10625
|
"--flex-gap": "0.375rem",
|
|
10637
10626
|
"--flex-wrap": "wrap"
|
|
10638
10627
|
}
|
|
10639
|
-
},
|
|
10628
|
+
}, Bf = {
|
|
10640
10629
|
key: 1,
|
|
10641
10630
|
class: "pv-text-body-sm pv-text-subdued",
|
|
10642
10631
|
style: { margin: "0" }
|
|
10643
|
-
},
|
|
10632
|
+
}, Vf = /* @__PURE__ */ d({
|
|
10644
10633
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
10645
10634
|
props: {
|
|
10646
10635
|
appliedCount: { default: 0 },
|
|
@@ -10656,7 +10645,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10656
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) => {
|
|
10657
10646
|
c("remove-filter", t.field ?? e, t.value, t.type);
|
|
10658
10647
|
};
|
|
10659
|
-
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", {
|
|
10660
10649
|
key: `external-${e.key}`,
|
|
10661
10650
|
class: "pv-flex-vertical pv-border-bottom",
|
|
10662
10651
|
"data-testid": "pv-filter-panel-external-filter-group",
|
|
@@ -10665,7 +10654,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10665
10654
|
"--flex-gap": "12px",
|
|
10666
10655
|
"padding-bottom": "12px"
|
|
10667
10656
|
}
|
|
10668
|
-
}, [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, {
|
|
10669
10658
|
key: `${e.key}-${t.value}`,
|
|
10670
10659
|
label: t.label,
|
|
10671
10660
|
showClear: d(e),
|
|
@@ -10682,7 +10671,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10682
10671
|
"--flex-gap": "12px",
|
|
10683
10672
|
"padding-bottom": "12px"
|
|
10684
10673
|
}
|
|
10685
|
-
}, [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, {
|
|
10686
10675
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
10687
10676
|
label: t.label,
|
|
10688
10677
|
showClear: !e.readOnly,
|
|
@@ -10691,9 +10680,9 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10691
10680
|
"label",
|
|
10692
10681
|
"showClear",
|
|
10693
10682
|
"onHandleClose"
|
|
10694
|
-
]))), 128))])]))), 128))])) : (k(), o("p",
|
|
10683
|
+
]))), 128))])]))), 128))])) : (k(), o("p", Bf, "No filters applied yet."))]));
|
|
10695
10684
|
}
|
|
10696
|
-
}),
|
|
10685
|
+
}), Hf = { class: "pv-horizontal-scroller" }, Uf = ["aria-label"], Wf = 1, Gf = /* @__PURE__ */ d({
|
|
10697
10686
|
__name: "PvHorizontalScroller",
|
|
10698
10687
|
props: {
|
|
10699
10688
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -10717,7 +10706,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10717
10706
|
let e = u.value;
|
|
10718
10707
|
if (!e) return;
|
|
10719
10708
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
10720
|
-
n.value = e.scrollLeft >
|
|
10709
|
+
n.value = e.scrollLeft > Wf, c.value = e.scrollLeft < t - Wf;
|
|
10721
10710
|
}, h = () => {
|
|
10722
10711
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
10723
10712
|
}, g = () => {
|
|
@@ -10737,7 +10726,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10737
10726
|
h(), g();
|
|
10738
10727
|
}), C(() => {
|
|
10739
10728
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
10740
|
-
}), (t, r) => (k(), o("div",
|
|
10729
|
+
}), (t, r) => (k(), o("div", Hf, [
|
|
10741
10730
|
s("div", {
|
|
10742
10731
|
ref_key: "scrollContainer",
|
|
10743
10732
|
ref: u,
|
|
@@ -10748,7 +10737,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10748
10737
|
ref_key: "contentContainer",
|
|
10749
10738
|
ref: l,
|
|
10750
10739
|
class: "pv-horizontal-scroller-content"
|
|
10751
|
-
}, [N(t.$slots, "default")], 512)], 10,
|
|
10740
|
+
}, [N(t.$slots, "default")], 512)], 10, Uf),
|
|
10752
10741
|
s("div", { class: b(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
10753
10742
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
10754
10743
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -10781,18 +10770,18 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10781
10770
|
])) : a("", !0)], 2)
|
|
10782
10771
|
]));
|
|
10783
10772
|
}
|
|
10784
|
-
}),
|
|
10773
|
+
}), Kf = {
|
|
10785
10774
|
key: 0,
|
|
10786
10775
|
class: "pv-border-bottom",
|
|
10787
10776
|
"data-testid": "pv-filter-panel-category-row"
|
|
10788
|
-
},
|
|
10777
|
+
}, qf = {
|
|
10789
10778
|
class: "pv-flex",
|
|
10790
10779
|
style: {
|
|
10791
10780
|
"--flex-align": "center",
|
|
10792
10781
|
"--flex-gap": "8px",
|
|
10793
10782
|
padding: "8px 12px"
|
|
10794
10783
|
}
|
|
10795
|
-
},
|
|
10784
|
+
}, Jf = /* @__PURE__ */ d({
|
|
10796
10785
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
10797
10786
|
props: /* @__PURE__ */ _({
|
|
10798
10787
|
allCategoriesLabel: { default: "All" },
|
|
@@ -10814,7 +10803,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10814
10803
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
10815
10804
|
return G(l, (e) => {
|
|
10816
10805
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
10817
|
-
}, { immediate: !0 }), (n, r) => l.value.length ? (k(), o("div",
|
|
10806
|
+
}, { immediate: !0 }), (n, r) => l.value.length ? (k(), o("div", Kf, [u(Gf, {
|
|
10818
10807
|
ariaLabel: "Filter categories",
|
|
10819
10808
|
buttonSize: "lg",
|
|
10820
10809
|
buttonVariant: "ghost",
|
|
@@ -10823,7 +10812,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10823
10812
|
rightAriaLabel: "Scroll filter categories right",
|
|
10824
10813
|
showFades: ""
|
|
10825
10814
|
}, {
|
|
10826
|
-
default: K(() => [s("div",
|
|
10815
|
+
default: K(() => [s("div", qf, [u($, {
|
|
10827
10816
|
label: e.allCategoriesLabel,
|
|
10828
10817
|
variant: f(null),
|
|
10829
10818
|
onClick: r[0] ||= (e) => d(null)
|
|
@@ -10840,17 +10829,17 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10840
10829
|
_: 1
|
|
10841
10830
|
})])) : a("", !0);
|
|
10842
10831
|
}
|
|
10843
|
-
}),
|
|
10832
|
+
}), Yf = (e, t, n) => {
|
|
10844
10833
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
10845
10834
|
if (r.length <= 1) return "Search";
|
|
10846
10835
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
10847
10836
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
10848
|
-
},
|
|
10849
|
-
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;
|
|
10850
10839
|
if (!a || !n) return r;
|
|
10851
10840
|
let o = t(n);
|
|
10852
10841
|
return o ? `${o}: ${r}` : r;
|
|
10853
|
-
},
|
|
10842
|
+
}, Qf = () => ({
|
|
10854
10843
|
booleanValue: null,
|
|
10855
10844
|
existsValue: !1,
|
|
10856
10845
|
rangeValue: {
|
|
@@ -10858,15 +10847,15 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10858
10847
|
min: null
|
|
10859
10848
|
},
|
|
10860
10849
|
values: []
|
|
10861
|
-
}),
|
|
10862
|
-
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),
|
|
10863
10852
|
filterType: "join",
|
|
10864
10853
|
type: e.type
|
|
10865
|
-
} : { ...e },
|
|
10866
|
-
if (
|
|
10867
|
-
if (
|
|
10854
|
+
} : { ...e }, ip = (e) => {
|
|
10855
|
+
if (!$f(e)) return null;
|
|
10856
|
+
if (tp(e)) {
|
|
10868
10857
|
let t = e.conditions.flatMap((e) => {
|
|
10869
|
-
let t =
|
|
10858
|
+
let t = ip(e);
|
|
10870
10859
|
return t ? [t] : [];
|
|
10871
10860
|
});
|
|
10872
10861
|
return t.length ? {
|
|
@@ -10875,43 +10864,43 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10875
10864
|
type: e.type === "OR" ? "OR" : "AND"
|
|
10876
10865
|
} : null;
|
|
10877
10866
|
}
|
|
10878
|
-
return
|
|
10879
|
-
},
|
|
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 = {
|
|
10880
10869
|
number: "agNumberColumnFilter",
|
|
10881
10870
|
set: "agSetColumnFilter",
|
|
10882
10871
|
text: "agTextColumnFilter"
|
|
10883
|
-
},
|
|
10872
|
+
}, lp = (e) => {
|
|
10884
10873
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
10885
10874
|
let t = e.filterParams;
|
|
10886
10875
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
10887
|
-
}, lp = (e, t) => {
|
|
10888
|
-
let n = cp(e), r = t.filterType ? sp[t.filterType] : void 0;
|
|
10889
|
-
return r ? n.findIndex((e) => Qf(e) && e.filter === r) : -1;
|
|
10890
10876
|
}, up = (e, t) => {
|
|
10891
|
-
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);
|
|
10892
10881
|
if (!n.length) return null;
|
|
10893
|
-
let r = Array(n.length).fill(null), i =
|
|
10882
|
+
let r = Array(n.length).fill(null), i = up(e, t);
|
|
10894
10883
|
return i < 0 ? null : (r[i] = t, {
|
|
10895
10884
|
filterModels: r,
|
|
10896
10885
|
filterType: "multi"
|
|
10897
10886
|
});
|
|
10898
|
-
},
|
|
10899
|
-
if (!
|
|
10887
|
+
}, fp = (e, t) => {
|
|
10888
|
+
if (!op(e)) return null;
|
|
10900
10889
|
let n = e[t];
|
|
10901
|
-
return
|
|
10902
|
-
},
|
|
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) ? {
|
|
10903
10892
|
...e,
|
|
10904
10893
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
10905
|
-
} : { ...e },
|
|
10906
|
-
let n =
|
|
10894
|
+
} : { ...e }, gp = (e, t) => {
|
|
10895
|
+
let n = mp(e);
|
|
10907
10896
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
10908
|
-
},
|
|
10897
|
+
}, _p = /* @__PURE__ */ new Set(), vp = (e, t) => {
|
|
10909
10898
|
let n = `${e}:${t ?? "unknown"}`;
|
|
10910
|
-
|
|
10911
|
-
},
|
|
10912
|
-
let a =
|
|
10913
|
-
if (
|
|
10914
|
-
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] : []);
|
|
10915
10904
|
if (!n) {
|
|
10916
10905
|
for (let e of l) c[e] = null;
|
|
10917
10906
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -10924,15 +10913,15 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10924
10913
|
c[e] = n;
|
|
10925
10914
|
for (let e of t) c[e] = null;
|
|
10926
10915
|
} else {
|
|
10927
|
-
let e =
|
|
10916
|
+
let e = up(i, n), r = c.findIndex((e) => !e), a = lp(i).length > 0;
|
|
10928
10917
|
if (e >= 0) {
|
|
10929
10918
|
for (; c.length <= e;) c.push(null);
|
|
10930
|
-
c[e] &&
|
|
10919
|
+
c[e] && vp(t, n.filterType), c[e] = n;
|
|
10931
10920
|
} else if (r >= 0) c[r] = n;
|
|
10932
10921
|
else if (!a) c.push(n);
|
|
10933
10922
|
else {
|
|
10934
10923
|
let e = Math.max(0, c.length - 1);
|
|
10935
|
-
|
|
10924
|
+
vp(t, n.filterType), c[e] = n;
|
|
10936
10925
|
}
|
|
10937
10926
|
}
|
|
10938
10927
|
return o[t] = {
|
|
@@ -10940,54 +10929,54 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
10940
10929
|
filterModels: c
|
|
10941
10930
|
}, o;
|
|
10942
10931
|
}
|
|
10943
|
-
if (!n) return
|
|
10944
|
-
let o =
|
|
10945
|
-
return o[t] =
|
|
10946
|
-
},
|
|
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) => {
|
|
10947
10936
|
if (e) {
|
|
10948
|
-
if (
|
|
10949
|
-
e.conditions.forEach((e) =>
|
|
10937
|
+
if (tp(e)) {
|
|
10938
|
+
e.conditions.forEach((e) => bp(e, t));
|
|
10950
10939
|
return;
|
|
10951
10940
|
}
|
|
10952
10941
|
t(e);
|
|
10953
10942
|
}
|
|
10954
|
-
},
|
|
10955
|
-
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;
|
|
10956
10945
|
let t = /* @__PURE__ */ new Set();
|
|
10957
|
-
return
|
|
10958
|
-
},
|
|
10959
|
-
if (!e ||
|
|
10960
|
-
if (!
|
|
10961
|
-
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)]);
|
|
10962
10951
|
return n.length ? n.length === 1 ? n[0] : {
|
|
10963
10952
|
conditions: n,
|
|
10964
10953
|
filterType: e.filterType,
|
|
10965
10954
|
type: e.type
|
|
10966
10955
|
} : null;
|
|
10967
|
-
},
|
|
10968
|
-
let r =
|
|
10969
|
-
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({
|
|
10970
10959
|
...r,
|
|
10971
10960
|
conditions: [...r.conditions, n]
|
|
10972
|
-
}) :
|
|
10961
|
+
}) : np({
|
|
10973
10962
|
conditions: [r, n],
|
|
10974
10963
|
filterType: "join",
|
|
10975
10964
|
type: "AND"
|
|
10976
|
-
}) :
|
|
10977
|
-
},
|
|
10965
|
+
}) : np(n) : np(r);
|
|
10966
|
+
}, Tp = (e, t) => {
|
|
10978
10967
|
e.includes(t) || e.push(t);
|
|
10979
|
-
},
|
|
10968
|
+
}, Ep = (e) => {
|
|
10980
10969
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
10981
10970
|
let t = String(e.filter);
|
|
10982
10971
|
return t === "true" || t === "false";
|
|
10983
|
-
},
|
|
10972
|
+
}, Dp = (e) => e.filterType === "boolean" || Ep(e), Op = (e, t) => {
|
|
10984
10973
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
10985
|
-
e.values.forEach((e) =>
|
|
10974
|
+
e.values.forEach((e) => Tp(t.values, String(e)));
|
|
10986
10975
|
return;
|
|
10987
10976
|
}
|
|
10988
10977
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
10989
10978
|
let n = String(e.filter);
|
|
10990
|
-
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);
|
|
10991
10980
|
return;
|
|
10992
10981
|
}
|
|
10993
10982
|
if (e.filterType === "boolean") {
|
|
@@ -11011,7 +11000,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11011
11000
|
...t.rangeValue,
|
|
11012
11001
|
max: e.filter
|
|
11013
11002
|
}));
|
|
11014
|
-
},
|
|
11003
|
+
}, kp = (e, t) => {
|
|
11015
11004
|
if (e.type === "notBlank") {
|
|
11016
11005
|
t.existsValue = !0;
|
|
11017
11006
|
return;
|
|
@@ -11021,12 +11010,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11021
11010
|
return;
|
|
11022
11011
|
}
|
|
11023
11012
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
11024
|
-
e.values.forEach((e) =>
|
|
11013
|
+
e.values.forEach((e) => Tp(t.values, String(e)));
|
|
11025
11014
|
return;
|
|
11026
11015
|
}
|
|
11027
11016
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
11028
11017
|
let n = String(e.filter);
|
|
11029
|
-
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);
|
|
11030
11019
|
return;
|
|
11031
11020
|
}
|
|
11032
11021
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -11039,29 +11028,29 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11039
11028
|
...t.rangeValue,
|
|
11040
11029
|
max: e.filter
|
|
11041
11030
|
}));
|
|
11042
|
-
},
|
|
11031
|
+
}, Ap = (e, t = "advanced") => {
|
|
11043
11032
|
let n = /* @__PURE__ */ new Map();
|
|
11044
11033
|
if (t === "regular") {
|
|
11045
|
-
if (!
|
|
11034
|
+
if (!op(e)) return n;
|
|
11046
11035
|
for (let [t, r] of Object.entries(e)) {
|
|
11047
|
-
let e =
|
|
11048
|
-
|
|
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);
|
|
11049
11038
|
}
|
|
11050
11039
|
return n;
|
|
11051
11040
|
}
|
|
11052
|
-
let r =
|
|
11041
|
+
let r = ip(e);
|
|
11053
11042
|
if (!r) return n;
|
|
11054
|
-
let i =
|
|
11043
|
+
let i = tp(r) && r.type === "AND" ? r.conditions : [r];
|
|
11055
11044
|
for (let e of i) {
|
|
11056
|
-
let t =
|
|
11045
|
+
let t = Sp(e);
|
|
11057
11046
|
if (!t) continue;
|
|
11058
|
-
let r = n.get(t) ??
|
|
11059
|
-
|
|
11060
|
-
e.colId === t &&
|
|
11047
|
+
let r = n.get(t) ?? Qf();
|
|
11048
|
+
bp(e, (e) => {
|
|
11049
|
+
e.colId === t && kp(e, r);
|
|
11061
11050
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
11062
11051
|
}
|
|
11063
11052
|
return n;
|
|
11064
|
-
},
|
|
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" ? {
|
|
11065
11054
|
filter: String(n),
|
|
11066
11055
|
filterType: "text",
|
|
11067
11056
|
type: "equals"
|
|
@@ -11069,30 +11058,30 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11069
11058
|
filter: n,
|
|
11070
11059
|
filterType: "boolean",
|
|
11071
11060
|
type: n ? "true" : "false"
|
|
11072
|
-
},
|
|
11061
|
+
}, Dp, a) : i === "text" ? wp(e, t, {
|
|
11073
11062
|
colId: t,
|
|
11074
11063
|
filter: String(n),
|
|
11075
11064
|
filterType: "text",
|
|
11076
11065
|
type: "equals"
|
|
11077
|
-
}) :
|
|
11066
|
+
}) : wp(e, t, {
|
|
11078
11067
|
colId: t,
|
|
11079
11068
|
filterType: "boolean",
|
|
11080
11069
|
type: n ? "true" : "false"
|
|
11081
|
-
}),
|
|
11070
|
+
}), Fp = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? yp(e, t, {
|
|
11082
11071
|
filterType: r,
|
|
11083
11072
|
type: "notBlank"
|
|
11084
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
11073
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : wp(e, t, {
|
|
11085
11074
|
colId: t,
|
|
11086
11075
|
filterType: r,
|
|
11087
11076
|
type: "notBlank"
|
|
11088
|
-
}) : i === "regular" ?
|
|
11089
|
-
let o =
|
|
11090
|
-
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, {
|
|
11091
11080
|
filter: o,
|
|
11092
11081
|
filterTo: s,
|
|
11093
11082
|
filterType: "number",
|
|
11094
11083
|
type: "inRange"
|
|
11095
|
-
}, (e) => e.filterType === "number", a) :
|
|
11084
|
+
}, (e) => e.filterType === "number", a) : yp(e, t, {
|
|
11096
11085
|
filter: o ?? s,
|
|
11097
11086
|
filterType: "number",
|
|
11098
11087
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -11108,29 +11097,29 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11108
11097
|
filter: s,
|
|
11109
11098
|
filterType: "number",
|
|
11110
11099
|
type: "lessThanOrEqual"
|
|
11111
|
-
}), c.length ?
|
|
11100
|
+
}), c.length ? wp(e, t, c.length === 1 ? c[0] : {
|
|
11112
11101
|
conditions: c,
|
|
11113
11102
|
filterType: "join",
|
|
11114
11103
|
type: "AND"
|
|
11115
|
-
}) :
|
|
11116
|
-
},
|
|
11104
|
+
}) : Np(e, t);
|
|
11105
|
+
}, Lp = (e, t, n, r = "advanced", i) => {
|
|
11117
11106
|
let a = Array.from(new Set(n));
|
|
11118
|
-
if (r === "regular") return a.length ?
|
|
11107
|
+
if (r === "regular") return a.length ? yp(e, t, {
|
|
11119
11108
|
filterType: "set",
|
|
11120
11109
|
values: a
|
|
11121
|
-
}, (e) => e.filterType === "set", i) :
|
|
11110
|
+
}, (e) => e.filterType === "set", i) : yp(e, t, null, (e) => e.filterType === "set", i);
|
|
11122
11111
|
let o = a.map((e) => ({
|
|
11123
11112
|
colId: t,
|
|
11124
11113
|
filter: e,
|
|
11125
11114
|
filterType: "text",
|
|
11126
11115
|
type: "equals"
|
|
11127
11116
|
}));
|
|
11128
|
-
return o.length ?
|
|
11117
|
+
return o.length ? wp(e, t, o.length === 1 ? o[0] : {
|
|
11129
11118
|
conditions: o,
|
|
11130
11119
|
filterType: "join",
|
|
11131
11120
|
type: "OR"
|
|
11132
|
-
}) :
|
|
11133
|
-
},
|
|
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) => {
|
|
11134
11123
|
let t = /* @__PURE__ */ new Map();
|
|
11135
11124
|
for (let n of e) {
|
|
11136
11125
|
if (!n) continue;
|
|
@@ -11142,34 +11131,34 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11142
11131
|
t.set(n.value, {
|
|
11143
11132
|
...e,
|
|
11144
11133
|
...n,
|
|
11145
|
-
children:
|
|
11146
|
-
totalChildCount:
|
|
11134
|
+
children: Hp([...e.children ?? [], ...n.children ?? []]),
|
|
11135
|
+
totalChildCount: Bp(e.totalChildCount, n.totalChildCount)
|
|
11147
11136
|
});
|
|
11148
11137
|
}
|
|
11149
11138
|
return [...t.values()];
|
|
11150
|
-
},
|
|
11139
|
+
}, Up = (e, t) => {
|
|
11151
11140
|
for (let n of e ?? []) {
|
|
11152
11141
|
if (!n) continue;
|
|
11153
11142
|
if (n.value === t) return n;
|
|
11154
|
-
let e =
|
|
11143
|
+
let e = Up(n.children, t);
|
|
11155
11144
|
if (e) return e;
|
|
11156
11145
|
}
|
|
11157
|
-
},
|
|
11146
|
+
}, Wp = (e, t, n) => {
|
|
11158
11147
|
if (!e || t === null) return !1;
|
|
11159
11148
|
if (e.value === t) return !0;
|
|
11160
|
-
let r =
|
|
11161
|
-
return r !== null && r === t ||
|
|
11162
|
-
},
|
|
11163
|
-
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);
|
|
11164
11153
|
return e.map((e) => e && (e.value === t ? {
|
|
11165
11154
|
...e,
|
|
11166
|
-
children:
|
|
11167
|
-
totalChildCount:
|
|
11155
|
+
children: Hp([...e.children ?? [], ...i]),
|
|
11156
|
+
totalChildCount: Bp(e.totalChildCount, r?.totalChildCount)
|
|
11168
11157
|
} : e.children?.length ? {
|
|
11169
11158
|
...e,
|
|
11170
|
-
children:
|
|
11159
|
+
children: Gp(e.children, t, n).filter((e) => !!e)
|
|
11171
11160
|
} : e));
|
|
11172
|
-
},
|
|
11161
|
+
}, Kp = (e, t) => `${e}::${t}`, qp = () => {
|
|
11173
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) => {
|
|
11174
11163
|
v.value = e;
|
|
11175
11164
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -11178,11 +11167,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11178
11167
|
let r = n ? o : i;
|
|
11179
11168
|
r.value[e] = t;
|
|
11180
11169
|
}, T = () => {
|
|
11181
|
-
o.value =
|
|
11170
|
+
o.value = Vp(i.value), s.value = Vp(a.value);
|
|
11182
11171
|
}, E = () => {
|
|
11183
11172
|
o.value = {}, s.value = {};
|
|
11184
11173
|
}, D = () => {
|
|
11185
|
-
i.value =
|
|
11174
|
+
i.value = Vp(o.value), a.value = Vp(s.value), E();
|
|
11186
11175
|
}, O = (e, t) => {
|
|
11187
11176
|
c.value[e] = t;
|
|
11188
11177
|
}, k = (e, t) => {
|
|
@@ -11206,7 +11195,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11206
11195
|
if (!o) return [];
|
|
11207
11196
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
11208
11197
|
c.value[n.field] = s;
|
|
11209
|
-
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;
|
|
11210
11199
|
g.value[x] = S;
|
|
11211
11200
|
try {
|
|
11212
11201
|
let c = await o({
|
|
@@ -11218,17 +11207,17 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11218
11207
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
11219
11208
|
});
|
|
11220
11209
|
if (g.value[x] !== S) return [];
|
|
11221
|
-
let u =
|
|
11210
|
+
let u = zp(c);
|
|
11222
11211
|
if (n.parentId) {
|
|
11223
|
-
let e =
|
|
11212
|
+
let e = Kp(n.field, n.parentId);
|
|
11224
11213
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
11225
11214
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
11226
11215
|
let v = a.value[n.field] ?? [], b;
|
|
11227
|
-
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;
|
|
11228
11217
|
for (let e of v) {
|
|
11229
11218
|
if (!e) continue;
|
|
11230
|
-
let t =
|
|
11231
|
-
b.some((e) =>
|
|
11219
|
+
let t = id(e) ?? e.value;
|
|
11220
|
+
b.some((e) => Wp(e, t, n.field)) || b.push(e);
|
|
11232
11221
|
}
|
|
11233
11222
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
11234
11223
|
} finally {
|
|
@@ -11263,20 +11252,20 @@ var Mo = ["title"], No = ["title"], Po = { style: {
|
|
|
11263
11252
|
stagedFilterSelectedMetadataMap: s,
|
|
11264
11253
|
stagedFilterSelectedValueMap: o
|
|
11265
11254
|
};
|
|
11266
|
-
},
|
|
11267
|
-
A(
|
|
11268
|
-
},
|
|
11255
|
+
}, Jp = (e) => {
|
|
11256
|
+
A(Rp, e);
|
|
11257
|
+
}, Yp = () => h(Rp, null), Xp = () => Yp() ?? qp(), Zp = "__range__", Qp = "__boolean__", $p = "__exists__", em = new Set([
|
|
11269
11258
|
"value",
|
|
11270
11259
|
"range",
|
|
11271
11260
|
"boolean",
|
|
11272
11261
|
"exists"
|
|
11273
11262
|
]);
|
|
11274
|
-
function
|
|
11263
|
+
function tm(e, t, n) {
|
|
11275
11264
|
f();
|
|
11276
|
-
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(() => {
|
|
11277
11266
|
let n = p.value;
|
|
11278
11267
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
11279
|
-
}), y = r(() =>
|
|
11268
|
+
}), y = r(() => Ap(v.value, _.value)), b = (e, t) => {
|
|
11280
11269
|
let n = e.applyFilterModel;
|
|
11281
11270
|
if (typeof n == "function") {
|
|
11282
11271
|
n(t);
|
|
@@ -11367,7 +11356,7 @@ function em(e, t, n) {
|
|
|
11367
11356
|
});
|
|
11368
11357
|
let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", k = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, A = (e) => {
|
|
11369
11358
|
let t = D(e), n = t.filterPanelType;
|
|
11370
|
-
if (n &&
|
|
11359
|
+
if (n && em.has(n)) return n;
|
|
11371
11360
|
if (t.filterPanelRange) return "range";
|
|
11372
11361
|
if (t.dataType === "boolean") return "boolean";
|
|
11373
11362
|
if (e.filter) return "value";
|
|
@@ -11407,30 +11396,30 @@ function em(e, t, n) {
|
|
|
11407
11396
|
...r,
|
|
11408
11397
|
...i
|
|
11409
11398
|
].filter(Boolean)));
|
|
11410
|
-
}, re = (e) => _.value === "advanced" &&
|
|
11399
|
+
}, re = (e) => _.value === "advanced" && Pd(e), ie = (e, t) => re(e) ? Wd({
|
|
11411
11400
|
colDef: e,
|
|
11412
11401
|
model: v.value,
|
|
11413
11402
|
options: t
|
|
11414
11403
|
}) : new Map(W(e).map((e) => [e, y.value.get(e)?.values ?? []])), ae = (e, t, n, r) => {
|
|
11415
11404
|
let i = /* @__PURE__ */ new Set();
|
|
11416
|
-
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}`);
|
|
11417
11406
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
11418
11407
|
colField: t === e ? void 0 : t,
|
|
11419
11408
|
label: n,
|
|
11420
11409
|
metadata: { rawValue: n },
|
|
11421
|
-
value: t === e ? n :
|
|
11410
|
+
value: t === e ? n : rd(t, n)
|
|
11422
11411
|
}]));
|
|
11423
11412
|
}, oe = (e, t, n) => {
|
|
11424
11413
|
let r = /* @__PURE__ */ new Set();
|
|
11425
|
-
for (let i of
|
|
11426
|
-
let n =
|
|
11414
|
+
for (let i of od(n)) {
|
|
11415
|
+
let n = ad(i, e), a = id(i);
|
|
11427
11416
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
11428
11417
|
}
|
|
11429
11418
|
return Array.from(r);
|
|
11430
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) => {
|
|
11431
11420
|
let t = D(e);
|
|
11432
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
11433
|
-
}, J = (e, t) =>
|
|
11421
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Yf(O(e), t.queryColIds, q);
|
|
11422
|
+
}, J = (e, t) => Zf({
|
|
11434
11423
|
fallbackSubText: e.subText,
|
|
11435
11424
|
getDisplayName: q,
|
|
11436
11425
|
matchedField: e.matchedField,
|
|
@@ -11448,7 +11437,7 @@ function em(e, t, n) {
|
|
|
11448
11437
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
11449
11438
|
label: K(e)?.headerName ?? e
|
|
11450
11439
|
}));
|
|
11451
|
-
}, 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) => {
|
|
11452
11441
|
let n = O(t), r = D(t), i = M(t), a = ue(L(n), t), o = ue(te(n), t), s = {
|
|
11453
11442
|
canRemoveFocus: e.canRemoveFocus,
|
|
11454
11443
|
category: N(t),
|
|
@@ -11514,7 +11503,7 @@ function em(e, t, n) {
|
|
|
11514
11503
|
...s,
|
|
11515
11504
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
11516
11505
|
};
|
|
11517
|
-
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({
|
|
11518
11507
|
colDef: t,
|
|
11519
11508
|
model: v.value,
|
|
11520
11509
|
options: p
|
|
@@ -11531,7 +11520,7 @@ function em(e, t, n) {
|
|
|
11531
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);
|
|
11532
11521
|
for (let e of a) {
|
|
11533
11522
|
let t = new Set(e.selectedValues ?? []), n = /* @__PURE__ */ new Map();
|
|
11534
|
-
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);
|
|
11535
11524
|
let a = [...n.values()];
|
|
11536
11525
|
ke(r.value[e.key] ?? [], a) || (i === r.value && (i = { ...i }), i[e.key] = a);
|
|
11537
11526
|
}
|
|
@@ -11545,19 +11534,19 @@ function em(e, t, n) {
|
|
|
11545
11534
|
label: e.label,
|
|
11546
11535
|
values: t
|
|
11547
11536
|
}] : [];
|
|
11548
|
-
})), 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) => {
|
|
11549
11538
|
let t = Y(e.field);
|
|
11550
11539
|
if (!t || t.type !== e.filter.type) return !0;
|
|
11551
11540
|
if (e.filter.type === "value") {
|
|
11552
11541
|
if (t.isAggregate && e.option) {
|
|
11553
|
-
let { selected: n } =
|
|
11542
|
+
let { selected: n } = rf({
|
|
11554
11543
|
option: e.option,
|
|
11555
11544
|
options: t.knownOptions ?? [],
|
|
11556
11545
|
state: t.aggregateSelectionState ?? []
|
|
11557
11546
|
});
|
|
11558
11547
|
return e.filter.checked ? n : !n;
|
|
11559
11548
|
}
|
|
11560
|
-
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);
|
|
11561
11550
|
return e.filter.checked ? a : !a;
|
|
11562
11551
|
}
|
|
11563
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;
|
|
@@ -11571,13 +11560,13 @@ function em(e, t, n) {
|
|
|
11571
11560
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
11572
11561
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
11573
11562
|
if (!e) return !1;
|
|
11574
|
-
let r =
|
|
11563
|
+
let r = ad(e, t), i = id(e) ?? e.value;
|
|
11575
11564
|
return r !== n || c.has(i);
|
|
11576
11565
|
});
|
|
11577
11566
|
if (i) {
|
|
11578
|
-
let e =
|
|
11579
|
-
let i =
|
|
11580
|
-
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;
|
|
11581
11570
|
});
|
|
11582
11571
|
r === -1 ? l.push(i) : l[r] = i;
|
|
11583
11572
|
}
|
|
@@ -11588,7 +11577,7 @@ function em(e, t, n) {
|
|
|
11588
11577
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
11589
11578
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
11590
11579
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
11591
|
-
a.value[t.key] =
|
|
11580
|
+
a.value[t.key] = af({
|
|
11592
11581
|
options: t.knownOptions ?? [],
|
|
11593
11582
|
state: n
|
|
11594
11583
|
});
|
|
@@ -11617,48 +11606,48 @@ function em(e, t, n) {
|
|
|
11617
11606
|
return t === null ? [] : [{
|
|
11618
11607
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
11619
11608
|
type: "boolean",
|
|
11620
|
-
value:
|
|
11609
|
+
value: Qp
|
|
11621
11610
|
}];
|
|
11622
11611
|
}, we = (e) => e.existsValue ? [{
|
|
11623
11612
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
11624
11613
|
type: "exists",
|
|
11625
|
-
value:
|
|
11614
|
+
value: $p
|
|
11626
11615
|
}] : [], Te = (e) => {
|
|
11627
11616
|
let t = e.rangeValue ?? {
|
|
11628
11617
|
max: null,
|
|
11629
11618
|
min: null
|
|
11630
11619
|
};
|
|
11631
11620
|
return t.min === null && t.max === null ? [] : [{
|
|
11632
|
-
label:
|
|
11621
|
+
label: md(t.min, t.max, {
|
|
11633
11622
|
dataType: e.dataType,
|
|
11634
11623
|
valueDecimals: e.valueDecimals
|
|
11635
11624
|
}),
|
|
11636
11625
|
type: "range",
|
|
11637
|
-
value:
|
|
11626
|
+
value: Zp
|
|
11638
11627
|
}];
|
|
11639
11628
|
}, Ee = (e, t, n) => {
|
|
11640
11629
|
let r = n.get(t) ?? null;
|
|
11641
11630
|
return {
|
|
11642
|
-
field: r ?
|
|
11643
|
-
label: r ?
|
|
11644
|
-
resultCount:
|
|
11631
|
+
field: r ? ad(r, e.key) : void 0,
|
|
11632
|
+
label: r ? bd(r, e.colDef) : t,
|
|
11633
|
+
resultCount: Ed(r),
|
|
11645
11634
|
subText: r?.subText,
|
|
11646
11635
|
subduedText: r?.subduedText,
|
|
11647
11636
|
type: "value",
|
|
11648
|
-
value: r ?
|
|
11637
|
+
value: r ? id(r) ?? r.value : t
|
|
11649
11638
|
};
|
|
11650
11639
|
}, De = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
11651
11640
|
field: e.field,
|
|
11652
11641
|
label: e.label,
|
|
11653
11642
|
type: "boolean",
|
|
11654
|
-
value:
|
|
11655
|
-
}] : []), Oe = (e) =>
|
|
11643
|
+
value: Qp
|
|
11644
|
+
}] : []), Oe = (e) => af({
|
|
11656
11645
|
options: e.knownOptions ?? [],
|
|
11657
11646
|
state: e.aggregateSelectionState ?? []
|
|
11658
11647
|
}).map((t) => ({
|
|
11659
11648
|
field: e.key,
|
|
11660
|
-
label:
|
|
11661
|
-
resultCount:
|
|
11649
|
+
label: bd(t, e.colDef),
|
|
11650
|
+
resultCount: Ed(t),
|
|
11662
11651
|
subText: t.subText,
|
|
11663
11652
|
subduedText: t.subduedText,
|
|
11664
11653
|
type: "value",
|
|
@@ -11669,7 +11658,7 @@ function em(e, t, n) {
|
|
|
11669
11658
|
if (e.type === "boolean") return Ce(e);
|
|
11670
11659
|
if (e.type === "exists") return we(e);
|
|
11671
11660
|
if (e.isAggregate) return [...Oe(e), ...De(e)];
|
|
11672
|
-
let t = new Map(
|
|
11661
|
+
let t = new Map(od(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
11673
11662
|
return [...(e.selectedValues ?? []).map((n) => Ee(e, n, t)), ...De(e)];
|
|
11674
11663
|
}, je = () => {
|
|
11675
11664
|
He(), Se(null, "clear-all");
|
|
@@ -11681,9 +11670,9 @@ function em(e, t, n) {
|
|
|
11681
11670
|
He();
|
|
11682
11671
|
let e = p.value;
|
|
11683
11672
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
11684
|
-
}, Pe = (e) =>
|
|
11673
|
+
}, Pe = (e) => Mp(Y(e)?.dataType), Fe = (e, t, n = "value-toggle") => {
|
|
11685
11674
|
let r = Y(e);
|
|
11686
|
-
r?.isAggregate && (be(r, t), Se(
|
|
11675
|
+
r?.isAggregate && (be(r, t), Se(Vd({
|
|
11687
11676
|
baseModel: v.value,
|
|
11688
11677
|
colDef: r.colDef,
|
|
11689
11678
|
options: r.knownOptions ?? [],
|
|
@@ -11698,7 +11687,7 @@ function em(e, t, n) {
|
|
|
11698
11687
|
if (t.type === "value") {
|
|
11699
11688
|
let r = Y(e), i = fe(e, n, t.value);
|
|
11700
11689
|
if (r?.isAggregate && i) {
|
|
11701
|
-
Fe(e,
|
|
11690
|
+
Fe(e, ef({
|
|
11702
11691
|
checked: t.checked,
|
|
11703
11692
|
option: i,
|
|
11704
11693
|
options: r.knownOptions ?? [],
|
|
@@ -11714,23 +11703,23 @@ function em(e, t, n) {
|
|
|
11714
11703
|
return;
|
|
11715
11704
|
}
|
|
11716
11705
|
if (t.type === "boolean") {
|
|
11717
|
-
Se(
|
|
11706
|
+
Se(Pp(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
11718
11707
|
return;
|
|
11719
11708
|
}
|
|
11720
|
-
Se(
|
|
11709
|
+
Se(Fp(v.value, n, t.value, Pe(n), _.value, r), "exists-change", n, "exists");
|
|
11721
11710
|
}, Le = (e, t, n, r) => {
|
|
11722
11711
|
let i = p.value;
|
|
11723
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;
|
|
11724
11713
|
}, Re = (e, t) => {
|
|
11725
11714
|
let n = Y(e);
|
|
11726
11715
|
if (!n || n.type !== "value" || n.controlled || n.isAggregate || !n.colDef.context?.metadataDisplayFields?.length || W(n.colDef).length !== 1) return;
|
|
11727
|
-
let r = new Set(t), i =
|
|
11716
|
+
let r = new Set(t), i = od(n.knownOptions ?? []);
|
|
11728
11717
|
for (let [t, a] of ie(n.colDef, n.knownOptions ?? [])) {
|
|
11729
|
-
let o = a.filter((n) => r.has(n) && !i.some((r) =>
|
|
11718
|
+
let o = a.filter((n) => r.has(n) && !i.some((r) => sd(r, t, n, e)));
|
|
11730
11719
|
if (o.length) {
|
|
11731
11720
|
console.error(`PvFilterPanel: removed selected "${t}" values with no display name: ${o.join(", ")}`);
|
|
11732
11721
|
let r = a.filter((e) => !o.includes(e));
|
|
11733
|
-
ye(e, t, r), Se(
|
|
11722
|
+
ye(e, t, r), Se(Lp(v.value, t, r, _.value, K(t) ?? n.colDef), "remove-filter", t, "value");
|
|
11734
11723
|
}
|
|
11735
11724
|
}
|
|
11736
11725
|
}, ze = (e, t, n, r) => {
|
|
@@ -11751,7 +11740,7 @@ function em(e, t, n) {
|
|
|
11751
11740
|
}, Be = (e, t, r) => {
|
|
11752
11741
|
n("load-more", e.key, e.colDef, t, r), ze(e, t, r ? "child-load-more" : "load-more", r);
|
|
11753
11742
|
}, Ve = (e, t, n) => {
|
|
11754
|
-
Se(
|
|
11743
|
+
Se(Ip(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
11755
11744
|
}, He = () => {
|
|
11756
11745
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
11757
11746
|
l.clear();
|
|
@@ -11791,7 +11780,7 @@ function em(e, t, n) {
|
|
|
11791
11780
|
n("controlled-change", t, l, s.colDef);
|
|
11792
11781
|
return;
|
|
11793
11782
|
}
|
|
11794
|
-
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");
|
|
11795
11784
|
};
|
|
11796
11785
|
return {
|
|
11797
11786
|
resolvedFilters: X,
|
|
@@ -11816,8 +11805,8 @@ function em(e, t, n) {
|
|
|
11816
11805
|
handleSearchChange: Ge,
|
|
11817
11806
|
handleSuggestionClick: (e) => {
|
|
11818
11807
|
if (e.filter.type === "value" && e.option) {
|
|
11819
|
-
let t = Y(e.field), n =
|
|
11820
|
-
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({
|
|
11821
11810
|
checked: e.filter.checked,
|
|
11822
11811
|
option: e.option,
|
|
11823
11812
|
options: t.knownOptions ?? [],
|
|
@@ -11828,21 +11817,21 @@ function em(e, t, n) {
|
|
|
11828
11817
|
},
|
|
11829
11818
|
removeAppliedFilter: (e, t, n) => {
|
|
11830
11819
|
let r = n ?? Y(e)?.type ?? "value";
|
|
11831
|
-
if (r === "range" || !n && t ===
|
|
11832
|
-
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");
|
|
11833
11822
|
return;
|
|
11834
11823
|
}
|
|
11835
|
-
if (r === "boolean" || !n && t ===
|
|
11836
|
-
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");
|
|
11837
11826
|
return;
|
|
11838
11827
|
}
|
|
11839
|
-
if (r === "exists" || !n && t ===
|
|
11840
|
-
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");
|
|
11841
11830
|
return;
|
|
11842
11831
|
}
|
|
11843
11832
|
let i = Y(e);
|
|
11844
11833
|
if (r === "value" && i?.isAggregate) {
|
|
11845
|
-
let e =
|
|
11834
|
+
let e = Fd(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? ef({
|
|
11846
11835
|
checked: !1,
|
|
11847
11836
|
option: e,
|
|
11848
11837
|
options: i.knownOptions ?? [],
|
|
@@ -11852,7 +11841,7 @@ function em(e, t, n) {
|
|
|
11852
11841
|
return;
|
|
11853
11842
|
}
|
|
11854
11843
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
11855
|
-
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");
|
|
11856
11845
|
},
|
|
11857
11846
|
setFacetSelections: Q,
|
|
11858
11847
|
usesHandlerFacets: qe
|
|
@@ -11860,32 +11849,32 @@ function em(e, t, n) {
|
|
|
11860
11849
|
}
|
|
11861
11850
|
//#endregion
|
|
11862
11851
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
11863
|
-
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 = {
|
|
11864
11853
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
11865
11854
|
"data-testid": "pv-filter-panel-filters-view"
|
|
11866
|
-
},
|
|
11855
|
+
}, om = {
|
|
11867
11856
|
key: 0,
|
|
11868
11857
|
"aria-label": "Filter suggestions",
|
|
11869
11858
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
11870
11859
|
"data-testid": "pv-filter-panel-suggestions"
|
|
11871
|
-
},
|
|
11860
|
+
}, sm = { class: "pv-filter-panel-suggestion-tags pv-flex" }, cm = {
|
|
11872
11861
|
key: 1,
|
|
11873
11862
|
class: "pv-filter-panel-search pv-border-bottom",
|
|
11874
11863
|
"data-testid": "pv-filter-panel-search"
|
|
11875
|
-
},
|
|
11864
|
+
}, lm = {
|
|
11876
11865
|
key: 2,
|
|
11877
11866
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
11878
|
-
},
|
|
11867
|
+
}, um = {
|
|
11879
11868
|
key: 3,
|
|
11880
11869
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
11881
|
-
},
|
|
11870
|
+
}, dm = {
|
|
11882
11871
|
key: 4,
|
|
11883
11872
|
class: "pv-filter-panel-filter-list pv-flex-vertical pv-inset-inline",
|
|
11884
11873
|
style: { "--inset-size": "8px" }
|
|
11885
|
-
},
|
|
11874
|
+
}, fm = {
|
|
11886
11875
|
key: 0,
|
|
11887
11876
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
11888
|
-
},
|
|
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({
|
|
11889
11878
|
__name: "PvFilterPanel",
|
|
11890
11879
|
props: /* @__PURE__ */ _({
|
|
11891
11880
|
allCategoriesLabel: { default: "All" },
|
|
@@ -11980,7 +11969,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11980
11969
|
"suggestion-click"
|
|
11981
11970
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
11982
11971
|
setup(e, { emit: n }) {
|
|
11983
|
-
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);
|
|
11984
11973
|
G(ee, (e) => {
|
|
11985
11974
|
e && (F.value = null);
|
|
11986
11975
|
}), G(F, (e) => {
|
|
@@ -12022,7 +12011,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12022
12011
|
"aria-label": e.ariaLabel,
|
|
12023
12012
|
style: S(he.value)
|
|
12024
12013
|
}, [
|
|
12025
|
-
s("div",
|
|
12014
|
+
s("div", rm, [u(si, {
|
|
12026
12015
|
modelValue: A.value,
|
|
12027
12016
|
options: me.value,
|
|
12028
12017
|
class: "pv-filter-panel-mode-control",
|
|
@@ -12036,8 +12025,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12036
12025
|
variant: "secondary",
|
|
12037
12026
|
onClick: r[0] ||= (e) => d.value = !0
|
|
12038
12027
|
}))]),
|
|
12039
|
-
s("div",
|
|
12040
|
-
!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, {
|
|
12041
12030
|
key: V(C)(e),
|
|
12042
12031
|
icon: e.icon,
|
|
12043
12032
|
"icon-classes": e.iconClasses,
|
|
@@ -12050,7 +12039,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12050
12039
|
"onHandleClick"
|
|
12051
12040
|
]))), 128))])])) : a("", !0),
|
|
12052
12041
|
N(n.$slots, "suggestions"),
|
|
12053
|
-
u(
|
|
12042
|
+
u(Jf, {
|
|
12054
12043
|
modelValue: F.value,
|
|
12055
12044
|
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
12056
12045
|
"all-categories-label": e.allCategoriesLabel,
|
|
@@ -12062,12 +12051,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12062
12051
|
"category-order",
|
|
12063
12052
|
"filters"
|
|
12064
12053
|
]),
|
|
12065
|
-
e.enableFilterSearch && V(p).length ? (k(), o("div",
|
|
12054
|
+
e.enableFilterSearch && V(p).length ? (k(), o("div", cm, [u(Vi, {
|
|
12066
12055
|
modelValue: z.value,
|
|
12067
12056
|
"onUpdate:modelValue": r[2] ||= (e) => z.value = e,
|
|
12068
12057
|
placeholder: e.filterSearchPlaceholder
|
|
12069
12058
|
}, null, 8, ["modelValue", "placeholder"])])) : a("", !0),
|
|
12070
|
-
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, {
|
|
12071
12060
|
key: t.key,
|
|
12072
12061
|
"disable-while-loading": e.disableWhileLoading,
|
|
12073
12062
|
filter: t,
|
|
@@ -12090,8 +12079,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12090
12079
|
label: ce.value,
|
|
12091
12080
|
variant: "ghost",
|
|
12092
12081
|
onClick: r[5] ||= (e) => I.value = !I.value
|
|
12093
|
-
}, null, 8, ["label"])) : a("", !0)])) : (k(), o("div",
|
|
12094
|
-
], 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, {
|
|
12095
12084
|
"applied-count": V(h),
|
|
12096
12085
|
"applied-groups": V(m),
|
|
12097
12086
|
"external-filters": J.value,
|
|
@@ -12105,7 +12094,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12105
12094
|
"read-only",
|
|
12106
12095
|
"onRemoveFilter"
|
|
12107
12096
|
]), [[se, A.value === "applied"]])]),
|
|
12108
|
-
Z.value ? (k(), o("div",
|
|
12097
|
+
Z.value ? (k(), o("div", fm, [s("div", pm, [X.value && !e.readOnly ? (k(), i($, {
|
|
12109
12098
|
key: 0,
|
|
12110
12099
|
class: "pv-text-brand",
|
|
12111
12100
|
label: e.clearAllLabel,
|
|
@@ -12120,14 +12109,14 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12120
12109
|
variant: "primary",
|
|
12121
12110
|
onClick: V(y)
|
|
12122
12111
|
}, null, 8, ["label", "onClick"])], 64)) : a("", !0)])])) : a("", !0)
|
|
12123
|
-
], 12,
|
|
12112
|
+
], 12, nm)), u(bi, {
|
|
12124
12113
|
modelValue: L.value,
|
|
12125
12114
|
"onUpdate:modelValue": r[7] ||= (e) => L.value = e,
|
|
12126
12115
|
header: e.clearAllHeader,
|
|
12127
12116
|
style: { "--max-width": "440px" }
|
|
12128
12117
|
}, {
|
|
12129
|
-
body: K(() => [s("p",
|
|
12130
|
-
footer: K(() => [s("div",
|
|
12118
|
+
body: K(() => [s("p", mm, R(e.clearAllBody), 1)]),
|
|
12119
|
+
footer: K(() => [s("div", hm, [u($, {
|
|
12131
12120
|
label: e.cancelLabel,
|
|
12132
12121
|
variant: "ghost",
|
|
12133
12122
|
onClick: ve
|
|
@@ -12139,16 +12128,16 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12139
12128
|
_: 1
|
|
12140
12129
|
}, 8, ["modelValue", "header"])], 64));
|
|
12141
12130
|
}
|
|
12142
|
-
}),
|
|
12131
|
+
}), _m = ["for"], vm = [
|
|
12143
12132
|
"id",
|
|
12144
12133
|
"type",
|
|
12145
12134
|
"value",
|
|
12146
12135
|
"name",
|
|
12147
12136
|
"disabled"
|
|
12148
|
-
],
|
|
12137
|
+
], ym = { key: 0 }, bm = {
|
|
12149
12138
|
class: "pv-inset-square",
|
|
12150
12139
|
style: { "--inset-size": "0px 2px" }
|
|
12151
|
-
},
|
|
12140
|
+
}, xm = /* @__PURE__ */ d({
|
|
12152
12141
|
__name: "PvFilterModalSelectItem",
|
|
12153
12142
|
props: /* @__PURE__ */ _({
|
|
12154
12143
|
rounded: { type: Boolean },
|
|
@@ -12181,55 +12170,55 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12181
12170
|
value: e.value,
|
|
12182
12171
|
name: e.name,
|
|
12183
12172
|
disabled: e.disabled
|
|
12184
|
-
}, null, 8,
|
|
12185
|
-
e.label ? (k(), o("span",
|
|
12186
|
-
s("span",
|
|
12187
|
-
], 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));
|
|
12188
12177
|
}
|
|
12189
|
-
}),
|
|
12178
|
+
}), Sm = ["aria-label"], Cm = {
|
|
12190
12179
|
class: "pv-filter-modal pv-flex",
|
|
12191
12180
|
style: {
|
|
12192
12181
|
"--flex-align": "stretch",
|
|
12193
12182
|
"--flex-gap": "0"
|
|
12194
12183
|
}
|
|
12195
|
-
},
|
|
12184
|
+
}, wm = {
|
|
12196
12185
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
12197
12186
|
"aria-label": "Filter categories",
|
|
12198
12187
|
style: { "--flex-gap": "0.25rem" }
|
|
12199
|
-
},
|
|
12188
|
+
}, Tm = {
|
|
12200
12189
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
12201
12190
|
style: {
|
|
12202
12191
|
"--flex-align": "stretch",
|
|
12203
12192
|
"--flex-gap": "0.75rem"
|
|
12204
12193
|
}
|
|
12205
|
-
},
|
|
12194
|
+
}, Em = {
|
|
12206
12195
|
key: 0,
|
|
12207
12196
|
class: "pv-flex",
|
|
12208
12197
|
style: {
|
|
12209
12198
|
"--flex-gap": "0.5rem",
|
|
12210
12199
|
"flex-wrap": "wrap"
|
|
12211
12200
|
}
|
|
12212
|
-
},
|
|
12201
|
+
}, Dm = {
|
|
12213
12202
|
key: 1,
|
|
12214
12203
|
class: "pv-inset-square-8"
|
|
12215
|
-
},
|
|
12204
|
+
}, Om = {
|
|
12216
12205
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
12217
12206
|
style: {
|
|
12218
12207
|
"--flex-align": "stretch",
|
|
12219
12208
|
"--flex-gap": "0.75rem"
|
|
12220
12209
|
}
|
|
12221
|
-
},
|
|
12210
|
+
}, km = {
|
|
12222
12211
|
key: 1,
|
|
12223
12212
|
class: "pv-text-body-sm pv-text-subdued pv-stack-8",
|
|
12224
12213
|
style: { "font-weight": "500" }
|
|
12225
|
-
},
|
|
12214
|
+
}, Am = {
|
|
12226
12215
|
key: 0,
|
|
12227
12216
|
class: "pv-text-body-xs pv-text-subdued",
|
|
12228
12217
|
style: { margin: "0" }
|
|
12229
|
-
},
|
|
12218
|
+
}, jm = {
|
|
12230
12219
|
key: 3,
|
|
12231
12220
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
12232
|
-
},
|
|
12221
|
+
}, Mm = {
|
|
12233
12222
|
key: 0,
|
|
12234
12223
|
class: "pv-flex pv-border-top",
|
|
12235
12224
|
style: {
|
|
@@ -12238,7 +12227,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12238
12227
|
"margin-top": "0.75rem",
|
|
12239
12228
|
"padding-top": "0.75rem"
|
|
12240
12229
|
}
|
|
12241
|
-
},
|
|
12230
|
+
}, Nm = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
|
|
12242
12231
|
__name: "PvFilterModal",
|
|
12243
12232
|
props: /* @__PURE__ */ _({
|
|
12244
12233
|
header: { default: "Filters" },
|
|
@@ -12328,7 +12317,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12328
12317
|
"suggestion-click"
|
|
12329
12318
|
], ["update:filterModel", "update:visible"]),
|
|
12330
12319
|
setup(e, { emit: n }) {
|
|
12331
|
-
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(() => {
|
|
12332
12321
|
let e = D.value;
|
|
12333
12322
|
return e.find((e) => e.key === w.value) ?? e[0] ?? null;
|
|
12334
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) => {
|
|
@@ -12345,7 +12334,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12345
12334
|
let e = O.value;
|
|
12346
12335
|
if (!e) return {};
|
|
12347
12336
|
let t = {};
|
|
12348
|
-
for (let n of
|
|
12337
|
+
for (let n of od([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
12349
12338
|
return t;
|
|
12350
12339
|
}), ee = r(() => O.value?.colDef.context?.filterPanel ?? {}), H = j(Object.fromEntries(D.value.flatMap((e) => {
|
|
12351
12340
|
let t = e.colDef.context?.filterPanel, n = Object.fromEntries(Object.entries(t ?? {}).flatMap(([e, t]) => t.initial?.length ? [[e, t.initial]] : []));
|
|
@@ -12411,22 +12400,22 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12411
12400
|
options: [...i.filter((e) => J.value.has(e.value)), ...i.filter((e) => !J.value.has(e.value))]
|
|
12412
12401
|
};
|
|
12413
12402
|
});
|
|
12414
|
-
}), fe = r(() => A.value && O.value ?
|
|
12403
|
+
}), fe = r(() => A.value && O.value ? nf({
|
|
12415
12404
|
options: O.value.knownOptions ?? [],
|
|
12416
12405
|
state: P.value
|
|
12417
|
-
}) : /* @__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) ?? {
|
|
12418
12407
|
indeterminate: !1,
|
|
12419
12408
|
selected: !1
|
|
12420
12409
|
} : {
|
|
12421
12410
|
indeterminate: !1,
|
|
12422
12411
|
selected: I.value.has(e.value)
|
|
12423
|
-
}, 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) => {
|
|
12424
12413
|
let n = O.value;
|
|
12425
12414
|
if (n) {
|
|
12426
12415
|
if (n.isAggregate) {
|
|
12427
12416
|
_(n.key, {
|
|
12428
12417
|
type: "aggregate-selection",
|
|
12429
|
-
value:
|
|
12418
|
+
value: ef({
|
|
12430
12419
|
checked: t,
|
|
12431
12420
|
option: e,
|
|
12432
12421
|
options: n.knownOptions ?? [],
|
|
@@ -12446,7 +12435,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12446
12435
|
for (let e of ce.value) Z(e).selected || ge(e, !0);
|
|
12447
12436
|
}, ye = () => {
|
|
12448
12437
|
if (A.value) {
|
|
12449
|
-
for (let e of
|
|
12438
|
+
for (let e of od(O.value?.knownOptions ?? [])) Z(e).selected && ge(e, !1);
|
|
12450
12439
|
return;
|
|
12451
12440
|
}
|
|
12452
12441
|
for (let e of q.value) ge(e, !1);
|
|
@@ -12493,7 +12482,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12493
12482
|
width: e.maxWidth,
|
|
12494
12483
|
maxWidth: e.maxWidth
|
|
12495
12484
|
})
|
|
12496
|
-
}, [s("div",
|
|
12485
|
+
}, [s("div", Cm, [s("nav", wm, [(k(!0), o(t, null, M(D.value, (e) => (k(), i(xm, {
|
|
12497
12486
|
key: e.key,
|
|
12498
12487
|
modelValue: xe.value,
|
|
12499
12488
|
"onUpdate:modelValue": r[0] ||= (e) => xe.value = e,
|
|
@@ -12507,7 +12496,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12507
12496
|
"label",
|
|
12508
12497
|
"right-counter-badge",
|
|
12509
12498
|
"value"
|
|
12510
|
-
]))), 128))]), s("div",
|
|
12499
|
+
]))), 128))]), s("div", Tm, [
|
|
12511
12500
|
u(Vi, {
|
|
12512
12501
|
modelValue: E.value,
|
|
12513
12502
|
"onUpdate:modelValue": r[1] ||= (e) => E.value = e,
|
|
@@ -12519,7 +12508,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12519
12508
|
"disabled",
|
|
12520
12509
|
"placeholder"
|
|
12521
12510
|
]),
|
|
12522
|
-
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, {
|
|
12523
12512
|
key: `facet-${t}`,
|
|
12524
12513
|
disabled: O.value?.disabled,
|
|
12525
12514
|
label: e.headerName || V(Ae)(t),
|
|
@@ -12534,8 +12523,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12534
12523
|
"options",
|
|
12535
12524
|
"onUpdate:modelValue"
|
|
12536
12525
|
]))), 128))])) : a("", !0),
|
|
12537
|
-
O.value?.isLoading ? (k(), o("div",
|
|
12538
|
-
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", {
|
|
12539
12528
|
key: `section-${e.key}`,
|
|
12540
12529
|
class: "pv-flex-vertical",
|
|
12541
12530
|
style: {
|
|
@@ -12556,17 +12545,17 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12556
12545
|
"field",
|
|
12557
12546
|
"options",
|
|
12558
12547
|
"section"
|
|
12559
|
-
])) : 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", {
|
|
12560
12549
|
key: `option-${e.value}`,
|
|
12561
12550
|
class: b(["pv-inset-square-8 pv-radius", { "pv-surface-highlight": Z(e).selected }])
|
|
12562
|
-
}, [u(
|
|
12551
|
+
}, [u(Zu, {
|
|
12563
12552
|
control: O.value.singleSelect ? "radio" : "checkbox",
|
|
12564
12553
|
disabled: O.value.disabled || e.isSelectable === !1,
|
|
12565
12554
|
indeterminate: Z(e).indeterminate,
|
|
12566
12555
|
label: pe(e),
|
|
12567
12556
|
name: V(T),
|
|
12568
12557
|
"query-text": E.value,
|
|
12569
|
-
"result-count": V(
|
|
12558
|
+
"result-count": V(Ed)(e),
|
|
12570
12559
|
selected: Z(e).selected,
|
|
12571
12560
|
"sub-text": e.subText,
|
|
12572
12561
|
"subdued-text": e.subduedText,
|
|
@@ -12586,7 +12575,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12586
12575
|
"value",
|
|
12587
12576
|
"onToggleValue"
|
|
12588
12577
|
])], 2))), 128))]))), 128))]),
|
|
12589
|
-
ce.value.length ? a("", !0) : (k(), o("p",
|
|
12578
|
+
ce.value.length ? a("", !0) : (k(), o("p", Am, " No matching values. ")),
|
|
12590
12579
|
O.value.hasMore ? (k(), i($, {
|
|
12591
12580
|
key: 1,
|
|
12592
12581
|
class: "pv-text-brand",
|
|
@@ -12597,7 +12586,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12597
12586
|
onClick: be
|
|
12598
12587
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
12599
12588
|
], 64)) : a("", !0),
|
|
12600
|
-
O.value && !e.readOnly ? (k(), o("div",
|
|
12589
|
+
O.value && !e.readOnly ? (k(), o("div", jm, [O.value.singleSelect ? a("", !0) : (k(), i($, {
|
|
12601
12590
|
key: 0,
|
|
12602
12591
|
disabled: O.value.disabled,
|
|
12603
12592
|
label: e.selectAllLabel,
|
|
@@ -12609,7 +12598,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12609
12598
|
variant: "ghost",
|
|
12610
12599
|
onClick: ye
|
|
12611
12600
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
12612
|
-
])]), e.staged ? (k(), o("div",
|
|
12601
|
+
])]), e.staged ? (k(), o("div", Mm, [u($, {
|
|
12613
12602
|
label: e.cancelLabel,
|
|
12614
12603
|
variant: "ghost",
|
|
12615
12604
|
onClick: V(g)
|
|
@@ -12617,14 +12606,14 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12617
12606
|
label: e.applyLabel,
|
|
12618
12607
|
variant: "primary",
|
|
12619
12608
|
onClick: V(h)
|
|
12620
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
12609
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, Sm)]),
|
|
12621
12610
|
_: 3
|
|
12622
12611
|
}, 8, ["modelValue"]));
|
|
12623
12612
|
}
|
|
12624
|
-
}), [["__scopeId", "data-v-fb919d6a"]]),
|
|
12613
|
+
}), [["__scopeId", "data-v-fb919d6a"]]), Pm = ["tabindex"], Fm = {
|
|
12625
12614
|
key: 0,
|
|
12626
12615
|
class: "pv-hover-action-menu__actions"
|
|
12627
|
-
},
|
|
12616
|
+
}, Im = { class: "pv-hover-action-menu__action-group" }, Lm = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
|
|
12628
12617
|
__name: "PvHoverActionMenu",
|
|
12629
12618
|
props: {
|
|
12630
12619
|
disabled: {
|
|
@@ -12647,12 +12636,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12647
12636
|
class: b(["pv-hover-action-menu", d.value]),
|
|
12648
12637
|
tabindex: e.options.length ? 0 : void 0,
|
|
12649
12638
|
"data-testid": "pv-hover-action-menu"
|
|
12650
|
-
}, [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, {
|
|
12651
12640
|
variant: e.variant,
|
|
12652
12641
|
"data-testid": "pv-hover-action-menu-actions",
|
|
12653
12642
|
onClick: r[0] ||= J(() => {}, ["stop"])
|
|
12654
12643
|
}, {
|
|
12655
|
-
default: K(() => [s("div",
|
|
12644
|
+
default: K(() => [s("div", Im, [(k(!0), o(t, null, M(e.options, (t) => (k(), i(fr, {
|
|
12656
12645
|
key: t.id,
|
|
12657
12646
|
variant: "dark",
|
|
12658
12647
|
position: "top-center",
|
|
@@ -12680,9 +12669,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12680
12669
|
_: 2
|
|
12681
12670
|
}, 1032, ["description"]))), 128))])]),
|
|
12682
12671
|
_: 1
|
|
12683
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
12672
|
+
}, 8, ["variant"])])) : a("", !0)], 10, Pm));
|
|
12684
12673
|
}
|
|
12685
|
-
}), [["__scopeId", "data-v-c4eb41f2"]]),
|
|
12674
|
+
}), [["__scopeId", "data-v-c4eb41f2"]]), Rm = () => {
|
|
12686
12675
|
let e = (e, n) => {
|
|
12687
12676
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
12688
12677
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -12695,7 +12684,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12695
12684
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
12696
12685
|
} : null
|
|
12697
12686
|
};
|
|
12698
|
-
},
|
|
12687
|
+
}, zm = /* @__PURE__ */ d({
|
|
12699
12688
|
__name: "QueryFormatter",
|
|
12700
12689
|
props: /* @__PURE__ */ _({ queryTermDisplayLimit: { default: 3 } }, {
|
|
12701
12690
|
modelValue: { required: !0 },
|
|
@@ -12709,7 +12698,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12709
12698
|
}),
|
|
12710
12699
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
12711
12700
|
setup(e) {
|
|
12712
|
-
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(() => {
|
|
12713
12702
|
let e = s.value?.queryTerms || [];
|
|
12714
12703
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
12715
12704
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => {
|
|
@@ -12740,27 +12729,27 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12740
12729
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
12741
12730
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
12742
12731
|
}
|
|
12743
|
-
}),
|
|
12732
|
+
}), Bm = [
|
|
12744
12733
|
"aria-expanded",
|
|
12745
12734
|
"aria-activedescendant",
|
|
12746
12735
|
"disabled",
|
|
12747
12736
|
"placeholder",
|
|
12748
12737
|
"data-invalid"
|
|
12749
|
-
],
|
|
12738
|
+
], Vm = {
|
|
12750
12739
|
key: 2,
|
|
12751
12740
|
class: "pv-text-red pv-text-body-xs"
|
|
12752
|
-
},
|
|
12741
|
+
}, Hm = ["id"], Um = [
|
|
12753
12742
|
"id",
|
|
12754
12743
|
"aria-selected",
|
|
12755
12744
|
"aria-describedby",
|
|
12756
12745
|
"onMouseenter"
|
|
12757
|
-
],
|
|
12746
|
+
], Wm = {
|
|
12758
12747
|
key: 1,
|
|
12759
12748
|
role: "presentation"
|
|
12760
|
-
},
|
|
12749
|
+
}, Gm = {
|
|
12761
12750
|
key: 1,
|
|
12762
12751
|
class: "pv-text-center"
|
|
12763
|
-
},
|
|
12752
|
+
}, Km = /* @__PURE__ */ d({
|
|
12764
12753
|
__name: "PvQueryBuilderInput",
|
|
12765
12754
|
props: /* @__PURE__ */ _({
|
|
12766
12755
|
placeholder: { default: "Search" },
|
|
@@ -12813,7 +12802,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12813
12802
|
width: "100%",
|
|
12814
12803
|
maxWidth: "100%",
|
|
12815
12804
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
12816
|
-
}, 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 = () => {
|
|
12817
12806
|
m.value = null, p.value = "", z.value = null, T.value = !1;
|
|
12818
12807
|
};
|
|
12819
12808
|
de("Enter", (e) => {
|
|
@@ -12937,7 +12926,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12937
12926
|
"--inset-size": "4px",
|
|
12938
12927
|
"--flex-gap": "4px"
|
|
12939
12928
|
}, e.enableWrapQueryTerms || T.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
12940
|
-
}, [u(
|
|
12929
|
+
}, [u(zm, {
|
|
12941
12930
|
modelValue: m.value,
|
|
12942
12931
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
12943
12932
|
"wrap-content": T.value,
|
|
@@ -12963,7 +12952,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12963
12952
|
style: S(p.value ? "min-width: 8rem;" : void 0),
|
|
12964
12953
|
onFocus: ge,
|
|
12965
12954
|
onBlur: ge
|
|
12966
|
-
}, null, 44,
|
|
12955
|
+
}, null, 44, Bm), [[oe, p.value]])], 4),
|
|
12967
12956
|
m.value && !e.hideClearButton ? (k(), i($, {
|
|
12968
12957
|
key: 1,
|
|
12969
12958
|
variant: "ghost",
|
|
@@ -12971,7 +12960,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12971
12960
|
size: "md",
|
|
12972
12961
|
onClick: ee
|
|
12973
12962
|
})) : a("", !0),
|
|
12974
|
-
B.value ? (k(), o("p",
|
|
12963
|
+
B.value ? (k(), o("p", Vm, R(z.value), 1)) : a("", !0),
|
|
12975
12964
|
I.value ? q((k(), i(ei, {
|
|
12976
12965
|
key: 3,
|
|
12977
12966
|
class: "pv-scrollbar-visible",
|
|
@@ -12981,12 +12970,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12981
12970
|
listId: A,
|
|
12982
12971
|
listRole: "listbox"
|
|
12983
12972
|
}, c({
|
|
12984
|
-
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", {
|
|
12985
12974
|
key: 0,
|
|
12986
12975
|
id: F(r),
|
|
12987
12976
|
role: "presentation",
|
|
12988
12977
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
12989
|
-
}, R(e), 9,
|
|
12978
|
+
}, R(e), 9, Hm)) : a("", !0), (k(!0), o(t, null, M(n, (t) => (k(), o("li", {
|
|
12990
12979
|
key: `${e}-${t.id}`,
|
|
12991
12980
|
id: P(le.value.get(t) ?? -1),
|
|
12992
12981
|
role: "option",
|
|
@@ -12998,7 +12987,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12998
12987
|
config: l,
|
|
12999
12988
|
queryText: p.value,
|
|
13000
12989
|
onHandleSelected: (e) => me(t)
|
|
13001
|
-
}), 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))]),
|
|
13002
12991
|
_: 2
|
|
13003
12992
|
}, [n.$slots.header ? {
|
|
13004
12993
|
name: "header",
|
|
@@ -13011,28 +13000,28 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13011
13000
|
} : void 0]), 1536)), [[se, C.value]]) : a("", !0)
|
|
13012
13001
|
], 34)), [[V(ye), pe]]);
|
|
13013
13002
|
}
|
|
13014
|
-
}),
|
|
13003
|
+
}), qm = (e) => !!(e.active || e.children?.some(qm)), Jm = {
|
|
13015
13004
|
class: "pv-popover",
|
|
13016
13005
|
style: {
|
|
13017
13006
|
"--position": "static",
|
|
13018
13007
|
"--height": "350px"
|
|
13019
13008
|
}
|
|
13020
|
-
},
|
|
13009
|
+
}, Ym = {
|
|
13021
13010
|
role: "list",
|
|
13022
13011
|
class: "pv-popover-list"
|
|
13023
|
-
},
|
|
13012
|
+
}, Xm = ["data-active"], Zm = [
|
|
13024
13013
|
"href",
|
|
13025
13014
|
"role",
|
|
13026
13015
|
"tabindex",
|
|
13027
13016
|
"data-active",
|
|
13028
13017
|
"aria-expanded"
|
|
13029
|
-
],
|
|
13018
|
+
], Qm = {
|
|
13030
13019
|
key: 0,
|
|
13031
13020
|
class: "pv-tag-purple pv-tag-sm"
|
|
13032
|
-
},
|
|
13021
|
+
}, $m = ["href"], eh = {
|
|
13033
13022
|
key: 0,
|
|
13034
13023
|
class: "pv-tag-purple pv-tag-sm"
|
|
13035
|
-
},
|
|
13024
|
+
}, th = /* @__PURE__ */ d({
|
|
13036
13025
|
name: "PvSidebarNavFlyout",
|
|
13037
13026
|
__name: "PvSidebarNavFlyout",
|
|
13038
13027
|
props: {
|
|
@@ -13043,7 +13032,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13043
13032
|
let n = j({});
|
|
13044
13033
|
return (r, c) => {
|
|
13045
13034
|
let l = P("PvSidebarNavFlyout", !0);
|
|
13046
|
-
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", {
|
|
13047
13036
|
key: t.value,
|
|
13048
13037
|
"data-active": !t.children?.length && t.active || void 0
|
|
13049
13038
|
}, [t.children?.length ? (k(), i(ur, {
|
|
@@ -13061,18 +13050,18 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13061
13050
|
trigger: K(() => [s("a", v({ href: t.url }, { ref_for: !0 }, t.linkAttrs, {
|
|
13062
13051
|
role: t.url ? void 0 : "button",
|
|
13063
13052
|
tabindex: t.url ? void 0 : 0,
|
|
13064
|
-
"data-active": V(
|
|
13053
|
+
"data-active": V(qm)(t) || void 0,
|
|
13065
13054
|
"aria-haspopup": "true",
|
|
13066
13055
|
"aria-expanded": !!n.value[t.value],
|
|
13067
13056
|
style: { "flex-wrap": "wrap" }
|
|
13068
13057
|
}), [
|
|
13069
13058
|
s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, R(t.label), 3),
|
|
13070
|
-
t.badge ? (k(), o("span",
|
|
13059
|
+
t.badge ? (k(), o("span", Qm, R(t.badge.toUpperCase()), 1)) : a("", !0),
|
|
13071
13060
|
u(Q, {
|
|
13072
13061
|
name: "chevron-right",
|
|
13073
13062
|
class: "pv-icon-16"
|
|
13074
13063
|
})
|
|
13075
|
-
], 16,
|
|
13064
|
+
], 16, Zm)]),
|
|
13076
13065
|
content: K(() => [u(l, {
|
|
13077
13066
|
items: t.children,
|
|
13078
13067
|
disabled: e.disabled
|
|
@@ -13085,111 +13074,111 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13085
13074
|
])) : (k(), o("a", v({
|
|
13086
13075
|
key: 1,
|
|
13087
13076
|
href: t.url
|
|
13088
|
-
}, { 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))])]);
|
|
13089
13078
|
};
|
|
13090
13079
|
}
|
|
13091
|
-
}),
|
|
13080
|
+
}), nh = {
|
|
13092
13081
|
key: 0,
|
|
13093
13082
|
class: "sidebar-additional-header"
|
|
13094
|
-
},
|
|
13083
|
+
}, rh = ["data-sidebar-collapsed"], ih = { class: "sidebar-header-content pv-full-width" }, ah = {
|
|
13095
13084
|
key: 0,
|
|
13096
13085
|
class: "pv-sidebar-nav-header pv-sidebar-surface-secondary"
|
|
13097
|
-
},
|
|
13086
|
+
}, oh = ["aria-label", "aria-expanded"], sh = {
|
|
13098
13087
|
class: "pv-flex",
|
|
13099
13088
|
style: { "min-width": "0" }
|
|
13100
|
-
},
|
|
13089
|
+
}, ch = {
|
|
13101
13090
|
class: "pv-avatar-xs",
|
|
13102
13091
|
style: {
|
|
13103
13092
|
"border-radius": "4px",
|
|
13104
13093
|
"flex-shrink": "0"
|
|
13105
13094
|
}
|
|
13106
|
-
},
|
|
13095
|
+
}, lh = ["src"], uh = { key: 1 }, dh = [
|
|
13107
13096
|
"data-sidebar-collapsed",
|
|
13108
13097
|
"data-sidebar-expanding",
|
|
13109
13098
|
"title"
|
|
13110
|
-
],
|
|
13099
|
+
], fh = {
|
|
13111
13100
|
class: "pv-popover",
|
|
13112
13101
|
style: {
|
|
13113
13102
|
width: "fit-content",
|
|
13114
13103
|
"max-width": "280px",
|
|
13115
13104
|
"margin-top": "4px"
|
|
13116
13105
|
}
|
|
13117
|
-
},
|
|
13106
|
+
}, ph = {
|
|
13118
13107
|
role: "list",
|
|
13119
13108
|
class: "pv-popover-list pv-flow",
|
|
13120
13109
|
style: { "--flow-size": "0.25rem" },
|
|
13121
13110
|
"data-testid": "pv-sidebar-org-list"
|
|
13122
|
-
},
|
|
13111
|
+
}, mh = ["data-active"], hh = ["href", "data-org-value"], gh = {
|
|
13123
13112
|
class: "pv-avatar-xs",
|
|
13124
13113
|
style: { "border-radius": "4px" }
|
|
13125
|
-
},
|
|
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 = {
|
|
13126
13115
|
key: 1,
|
|
13127
13116
|
role: "list",
|
|
13128
13117
|
class: "pv-full-width pv-flow",
|
|
13129
13118
|
style: { "--flow-size": "0.25rem" }
|
|
13130
|
-
},
|
|
13119
|
+
}, Eh = {
|
|
13131
13120
|
key: 0,
|
|
13132
13121
|
class: "pv-sidebar-nav-separator",
|
|
13133
13122
|
"aria-hidden": "true"
|
|
13134
|
-
},
|
|
13123
|
+
}, Dh = ["data-sidebar-collapsed"], Oh = {
|
|
13135
13124
|
key: 0,
|
|
13136
13125
|
class: "pv-tag-purple pv-tag-sm"
|
|
13137
|
-
},
|
|
13126
|
+
}, kh = ["onClick", "onKeydown"], Ah = [
|
|
13138
13127
|
"href",
|
|
13139
13128
|
"aria-current",
|
|
13140
13129
|
"title"
|
|
13141
|
-
],
|
|
13130
|
+
], jh = ["data-sidebar-collapsed"], Mh = {
|
|
13142
13131
|
key: 0,
|
|
13143
13132
|
class: "pv-tag-purple pv-tag-sm"
|
|
13144
|
-
},
|
|
13133
|
+
}, Nh = {
|
|
13145
13134
|
class: "pv-popover",
|
|
13146
13135
|
style: { "--position": "static" }
|
|
13147
|
-
},
|
|
13136
|
+
}, Ph = {
|
|
13148
13137
|
role: "list",
|
|
13149
13138
|
class: "pv-popover-list"
|
|
13150
|
-
},
|
|
13139
|
+
}, Fh = ["data-active"], Ih = ["href"], Lh = {
|
|
13151
13140
|
key: 0,
|
|
13152
13141
|
class: "pv-tag-purple pv-tag-sm"
|
|
13153
|
-
},
|
|
13142
|
+
}, Rh = ["onClick", "onAuxclick"], zh = ["data-sidebar-collapsed"], Bh = ["data-sidebar-collapsed"], Vh = [
|
|
13154
13143
|
"href",
|
|
13155
13144
|
"role",
|
|
13156
13145
|
"tabindex",
|
|
13157
13146
|
"aria-current",
|
|
13158
13147
|
"aria-expanded",
|
|
13159
13148
|
"title"
|
|
13160
|
-
],
|
|
13149
|
+
], Hh = {
|
|
13161
13150
|
class: "pv-flex pv-space-between pv-full-width",
|
|
13162
13151
|
style: { "flex-wrap": "wrap" }
|
|
13163
|
-
},
|
|
13152
|
+
}, Uh = {
|
|
13164
13153
|
key: 0,
|
|
13165
13154
|
class: "pv-tag-purple pv-tag-sm"
|
|
13166
|
-
},
|
|
13155
|
+
}, Wh = [
|
|
13167
13156
|
"href",
|
|
13168
13157
|
"aria-current",
|
|
13169
13158
|
"title"
|
|
13170
|
-
],
|
|
13159
|
+
], Gh = {
|
|
13171
13160
|
class: "pv-flex pv-space-between pv-full-width",
|
|
13172
13161
|
style: { "flex-wrap": "wrap" }
|
|
13173
|
-
},
|
|
13162
|
+
}, Kh = {
|
|
13174
13163
|
key: 0,
|
|
13175
13164
|
class: "pv-tag-purple pv-tag-sm"
|
|
13176
|
-
},
|
|
13165
|
+
}, qh = {
|
|
13177
13166
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
13178
13167
|
style: { "--bottom": "0" }
|
|
13179
|
-
},
|
|
13168
|
+
}, Jh = ["aria-expanded"], Yh = ["data-sidebar-collapsed"], Xh = { class: "pv-popover pv-text-default pv-text-body-md" }, Zh = [
|
|
13180
13169
|
"aria-label",
|
|
13181
13170
|
"aria-expanded",
|
|
13182
13171
|
"title"
|
|
13183
|
-
],
|
|
13172
|
+
], Qh = {
|
|
13184
13173
|
class: "pv-avatar-xs",
|
|
13185
13174
|
style: {
|
|
13186
13175
|
"border-radius": "50%",
|
|
13187
13176
|
"flex-shrink": "0"
|
|
13188
13177
|
}
|
|
13189
|
-
},
|
|
13178
|
+
}, $h = ["src"], eg = { key: 1 }, tg = ["data-sidebar-collapsed"], ng = {
|
|
13190
13179
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
13191
13180
|
style: { "--height": "750px" }
|
|
13192
|
-
},
|
|
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({
|
|
13193
13182
|
__name: "PvSidebar",
|
|
13194
13183
|
props: /* @__PURE__ */ _({
|
|
13195
13184
|
disableOrgProfileHover: { type: Boolean },
|
|
@@ -13214,11 +13203,11 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13214
13203
|
})), B, ee = (e) => e.hoverPanelSlot ? p ? (I.value, rr(p, e.hoverPanelSlot)) : !!x[e.hoverPanelSlot] : !1, H = (e, t, n) => {
|
|
13215
13204
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
13216
13205
|
}, te = (e) => {
|
|
13217
|
-
let t = A.get(e), n = t?.querySelector(
|
|
13206
|
+
let t = A.get(e), n = t?.querySelector(ig);
|
|
13218
13207
|
if (n) return n;
|
|
13219
13208
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
13220
|
-
if (t.matches(
|
|
13221
|
-
let e = t.querySelector(
|
|
13209
|
+
if (t.matches(ig)) return t;
|
|
13210
|
+
let e = t.querySelector(ig);
|
|
13222
13211
|
if (e) return e;
|
|
13223
13212
|
}
|
|
13224
13213
|
}, W = (e, t) => {
|
|
@@ -13253,12 +13242,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13253
13242
|
}, se = r(() => (c.organizations && oe(c.organizations)) ?? c.organizations?.[0]), ce = j((() => {
|
|
13254
13243
|
let e = {};
|
|
13255
13244
|
return c.navItems?.forEach((t) => {
|
|
13256
|
-
|
|
13245
|
+
qm(t) && (e[t.value] = !0);
|
|
13257
13246
|
}), e;
|
|
13258
13247
|
})());
|
|
13259
13248
|
G(() => c.navItems, (e) => {
|
|
13260
13249
|
e?.forEach((e) => {
|
|
13261
|
-
|
|
13250
|
+
qm(e) && (ce.value[e.value] = !0);
|
|
13262
13251
|
});
|
|
13263
13252
|
});
|
|
13264
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 = () => {
|
|
@@ -13277,7 +13266,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13277
13266
|
q.value = !q.value, de("change", { collapsed: q.value });
|
|
13278
13267
|
}, ge = (e) => {
|
|
13279
13268
|
e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (J.value = !1);
|
|
13280
|
-
}, _e = (e) => e.some(
|
|
13269
|
+
}, _e = (e) => e.some(qm), ve = (e, t) => {
|
|
13281
13270
|
if (t.url) {
|
|
13282
13271
|
if (e.ctrlKey || e.metaKey || e.shiftKey || e.button === 1) {
|
|
13283
13272
|
window.open(t.url, "_blank", "noopener");
|
|
@@ -13299,10 +13288,10 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13299
13288
|
ref_key: "sidebarPanel",
|
|
13300
13289
|
ref: E,
|
|
13301
13290
|
class: "sidebar-panel"
|
|
13302
|
-
}, [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", {
|
|
13303
13292
|
class: b(["sidebar-header", [{ "pv-border-bottom": q.value }]]),
|
|
13304
13293
|
"data-sidebar-collapsed": q.value || void 0
|
|
13305
|
-
}, [s("div",
|
|
13294
|
+
}, [s("div", ih, [e.organizations && e.organizations.length ? (k(), o("div", ah, [u(ur, {
|
|
13306
13295
|
modelValue: X.value,
|
|
13307
13296
|
"onUpdate:modelValue": r[0] ||= (e) => X.value = e,
|
|
13308
13297
|
position: q.value ? "right-top" : "bottom-left",
|
|
@@ -13328,23 +13317,23 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13328
13317
|
"data-testid": "pv-sidebar-org-switcher",
|
|
13329
13318
|
"aria-label": `Switch organization: ${se.value?.label}`,
|
|
13330
13319
|
"aria-expanded": X.value
|
|
13331
|
-
}, [s("div",
|
|
13320
|
+
}, [s("div", sh, [s("span", ch, [se.value?.avatarUrl ? (k(), o("img", {
|
|
13332
13321
|
key: 0,
|
|
13333
13322
|
src: se.value.avatarUrl,
|
|
13334
13323
|
alt: "Organization Avatar"
|
|
13335
|
-
}, null, 8,
|
|
13324
|
+
}, null, 8, lh)) : (k(), o("span", uh, R(se.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
13336
13325
|
class: "pv-text-title-lg pv-truncate",
|
|
13337
13326
|
"data-sidebar-expanded-content": "",
|
|
13338
13327
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13339
13328
|
"data-sidebar-expanding": ue.value || void 0,
|
|
13340
13329
|
title: se.value?.label
|
|
13341
|
-
}, R(se.value?.label), 9,
|
|
13330
|
+
}, R(se.value?.label), 9, dh)]), u(Q, {
|
|
13342
13331
|
name: "chevron-down",
|
|
13343
13332
|
class: "pv-icon-16",
|
|
13344
13333
|
"data-sidebar-expanded-content": "",
|
|
13345
13334
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13346
13335
|
"data-sidebar-expanding": ue.value || void 0
|
|
13347
|
-
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10,
|
|
13336
|
+
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10, oh)]),
|
|
13348
13337
|
_: 1
|
|
13349
13338
|
}, 8, [
|
|
13350
13339
|
"description",
|
|
@@ -13352,19 +13341,19 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13352
13341
|
"use-teleport",
|
|
13353
13342
|
"teleport-location"
|
|
13354
13343
|
])]),
|
|
13355
|
-
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", {
|
|
13356
13345
|
class: "pv-flex",
|
|
13357
13346
|
href: e.url,
|
|
13358
13347
|
"data-testid": "pv-sidebar-org-option",
|
|
13359
13348
|
"data-org-value": e.value
|
|
13360
|
-
}, [s("div",
|
|
13349
|
+
}, [s("div", gh, [e.avatarUrl ? (k(), o("img", {
|
|
13361
13350
|
key: 0,
|
|
13362
13351
|
src: e.avatarUrl,
|
|
13363
13352
|
alt: "Organization Avatar"
|
|
13364
|
-
}, null, 8,
|
|
13353
|
+
}, null, 8, _h)) : (k(), o("span", vh, R(e.label.slice(0, 1)), 1))]), s("span", {
|
|
13365
13354
|
class: "pv-truncate pv-flex-item",
|
|
13366
13355
|
title: e.label
|
|
13367
|
-
}, 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", {
|
|
13368
13357
|
key: e.value,
|
|
13369
13358
|
style: { "padding-left": "0.5rem" },
|
|
13370
13359
|
"data-active": e.active || void 0
|
|
@@ -13377,7 +13366,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13377
13366
|
}, [u(Q, { name: "corner-down-right" }), s("span", {
|
|
13378
13367
|
class: "pv-truncate",
|
|
13379
13368
|
title: e.label
|
|
13380
|
-
}, R(e.label), 9,
|
|
13369
|
+
}, R(e.label), 9, Sh)], 8, xh)], 8, bh))), 128))], 64))), 128))])])]),
|
|
13381
13370
|
_: 1
|
|
13382
13371
|
}, 8, [
|
|
13383
13372
|
"modelValue",
|
|
@@ -13406,9 +13395,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13406
13395
|
])]),
|
|
13407
13396
|
content: K(() => [l(R(q.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
13408
13397
|
_: 1
|
|
13409
|
-
}))], 10,
|
|
13410
|
-
V(m) ? (k(), o("div",
|
|
13411
|
-
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, {
|
|
13412
13401
|
key: 0,
|
|
13413
13402
|
modelValue: D.value[e.value],
|
|
13414
13403
|
"onUpdate:modelValue": (t) => D.value[e.value] = t,
|
|
@@ -13443,7 +13432,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13443
13432
|
"data-sidebar-expanded-content": "",
|
|
13444
13433
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13445
13434
|
style: { "flex-wrap": "wrap" }
|
|
13446
|
-
}, [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)]),
|
|
13447
13436
|
_: 2
|
|
13448
13437
|
}, 1040, [
|
|
13449
13438
|
"class",
|
|
@@ -13461,7 +13450,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13461
13450
|
class: "pv-sidebar-hover-panel",
|
|
13462
13451
|
onClick: (t) => ie(t, e.value),
|
|
13463
13452
|
onKeydown: (t) => ae(t, e.value)
|
|
13464
|
-
}, [N(n.$slots, e.hoverPanelSlot)], 40,
|
|
13453
|
+
}, [N(n.$slots, e.hoverPanelSlot)], 40, kh)]),
|
|
13465
13454
|
_: 2
|
|
13466
13455
|
}, 1032, [
|
|
13467
13456
|
"modelValue",
|
|
@@ -13495,8 +13484,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13495
13484
|
"data-sidebar-expanded-content": "",
|
|
13496
13485
|
"data-sidebar-collapsed": q.value || void 0,
|
|
13497
13486
|
style: { "flex-wrap": "wrap" }
|
|
13498
|
-
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span",
|
|
13499
|
-
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)])])]),
|
|
13500
13489
|
_: 2
|
|
13501
13490
|
}, 1032, [
|
|
13502
13491
|
"use-teleport",
|
|
@@ -13516,7 +13505,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13516
13505
|
trigger: K(() => [u(Ii, {
|
|
13517
13506
|
modelValue: ce.value[e.value],
|
|
13518
13507
|
"onUpdate:modelValue": (t) => ce.value[e.value] = t,
|
|
13519
|
-
"default-open": V(
|
|
13508
|
+
"default-open": V(qm)(e),
|
|
13520
13509
|
"summary-attrs": {
|
|
13521
13510
|
class: q.value ? "pv-sidebar-item-collapsed" : void 0,
|
|
13522
13511
|
"aria-current": _e(e.children) && q.value ? "page" : void 0
|
|
@@ -13535,7 +13524,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13535
13524
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
13536
13525
|
"data-sidebar-expanded-content": "",
|
|
13537
13526
|
"data-sidebar-collapsed": q.value || void 0
|
|
13538
|
-
}, R(e.label), 9,
|
|
13527
|
+
}, R(e.label), 9, zh)], 40, Rh)]),
|
|
13539
13528
|
default: K(() => [s("div", {
|
|
13540
13529
|
class: "pv-sidebar-nav-nested",
|
|
13541
13530
|
"data-sidebar-collapsed": q.value || void 0
|
|
@@ -13556,15 +13545,15 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13556
13545
|
trigger: K(() => [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, {
|
|
13557
13546
|
role: e.url ? void 0 : "button",
|
|
13558
13547
|
tabindex: e.url ? void 0 : 0,
|
|
13559
|
-
"aria-current": V(
|
|
13548
|
+
"aria-current": V(qm)(e) ? "page" : void 0,
|
|
13560
13549
|
"aria-haspopup": "true",
|
|
13561
13550
|
"aria-expanded": !!pe.value[e.value],
|
|
13562
13551
|
title: e.label
|
|
13563
|
-
}), [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, {
|
|
13564
13553
|
name: "chevron-right",
|
|
13565
13554
|
class: "pv-icon-16"
|
|
13566
|
-
})], 16,
|
|
13567
|
-
content: K(() => [u(
|
|
13555
|
+
})], 16, Vh)]),
|
|
13556
|
+
content: K(() => [u(th, {
|
|
13568
13557
|
items: e.children,
|
|
13569
13558
|
disabled: q.value
|
|
13570
13559
|
}, null, 8, ["items", "disabled"])]),
|
|
@@ -13581,7 +13570,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13581
13570
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
13582
13571
|
"aria-current": e.active ? "page" : void 0,
|
|
13583
13572
|
title: e.label
|
|
13584
|
-
}), [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)]),
|
|
13585
13574
|
_: 2
|
|
13586
13575
|
}, 1032, [
|
|
13587
13576
|
"modelValue",
|
|
@@ -13589,7 +13578,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13589
13578
|
"default-open",
|
|
13590
13579
|
"summary-attrs"
|
|
13591
13580
|
])]),
|
|
13592
|
-
content: K(() => [u(
|
|
13581
|
+
content: K(() => [u(th, {
|
|
13593
13582
|
items: e.children,
|
|
13594
13583
|
disabled: !q.value
|
|
13595
13584
|
}, null, 8, ["items", "disabled"])]),
|
|
@@ -13599,7 +13588,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13599
13588
|
"teleport-location",
|
|
13600
13589
|
"disabled"
|
|
13601
13590
|
]))])], 64))), 128))])) : a("", !0),
|
|
13602
|
-
s("div",
|
|
13591
|
+
s("div", qh, [V(g) ? (k(), i(ur, {
|
|
13603
13592
|
key: 0,
|
|
13604
13593
|
modelValue: Y.value,
|
|
13605
13594
|
"onUpdate:modelValue": r[1] ||= (e) => Y.value = e,
|
|
@@ -13624,8 +13613,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13624
13613
|
}), s("span", {
|
|
13625
13614
|
"data-sidebar-expanded-content": "",
|
|
13626
13615
|
"data-sidebar-collapsed": q.value || void 0
|
|
13627
|
-
}, "Help", 8,
|
|
13628
|
-
content: K(() => [s("div",
|
|
13616
|
+
}, "Help", 8, Yh)], 10, Jh)]),
|
|
13617
|
+
content: K(() => [s("div", Xh, [N(n.$slots, "sidebar-help-content")])]),
|
|
13629
13618
|
_: 3
|
|
13630
13619
|
}, 8, [
|
|
13631
13620
|
"modelValue",
|
|
@@ -13650,16 +13639,16 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13650
13639
|
"aria-label": e.profile.name,
|
|
13651
13640
|
"aria-expanded": Z.value,
|
|
13652
13641
|
title: e.profile.name
|
|
13653
|
-
}, [s("span",
|
|
13642
|
+
}, [s("span", Qh, [e.profile.avatarUrl ? (k(), o("img", {
|
|
13654
13643
|
key: 0,
|
|
13655
13644
|
src: e.profile.avatarUrl,
|
|
13656
13645
|
alt: ""
|
|
13657
|
-
}, null, 8,
|
|
13646
|
+
}, null, 8, $h)) : (k(), o("span", eg, R(e.profile.name.slice(0, 1)), 1))]), s("span", {
|
|
13658
13647
|
class: "pv-truncate",
|
|
13659
13648
|
"data-sidebar-expanded-content": "",
|
|
13660
13649
|
"data-sidebar-collapsed": q.value || void 0
|
|
13661
|
-
}, R(e.profile.name), 9,
|
|
13662
|
-
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")])]),
|
|
13663
13652
|
_: 3
|
|
13664
13653
|
}, 8, [
|
|
13665
13654
|
"modelValue",
|
|
@@ -13668,7 +13657,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13668
13657
|
"teleport-location"
|
|
13669
13658
|
])) : a("", !0)])
|
|
13670
13659
|
])], 512),
|
|
13671
|
-
s("div",
|
|
13660
|
+
s("div", rg, [N(n.$slots, "default")]),
|
|
13672
13661
|
s("div", {
|
|
13673
13662
|
ref_key: "popoverTeleportTarget",
|
|
13674
13663
|
ref: w,
|
|
@@ -13676,28 +13665,28 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13676
13665
|
}, null, 512)
|
|
13677
13666
|
], 38));
|
|
13678
13667
|
}
|
|
13679
|
-
}),
|
|
13668
|
+
}), og = (e) => !!(e.active || e.children?.some(og)), sg = {
|
|
13680
13669
|
class: "pv-popover",
|
|
13681
13670
|
style: {
|
|
13682
13671
|
"--position": "static",
|
|
13683
13672
|
"--height": "350px"
|
|
13684
13673
|
}
|
|
13685
|
-
},
|
|
13674
|
+
}, cg = {
|
|
13686
13675
|
role: "list",
|
|
13687
13676
|
class: "pv-popover-list"
|
|
13688
|
-
},
|
|
13677
|
+
}, lg = ["data-active"], ug = [
|
|
13689
13678
|
"href",
|
|
13690
13679
|
"role",
|
|
13691
13680
|
"tabindex",
|
|
13692
13681
|
"data-active",
|
|
13693
13682
|
"aria-expanded"
|
|
13694
|
-
],
|
|
13683
|
+
], dg = {
|
|
13695
13684
|
key: 0,
|
|
13696
13685
|
class: "pv-tag-purple pv-tag-sm"
|
|
13697
|
-
},
|
|
13686
|
+
}, fg = ["href"], pg = {
|
|
13698
13687
|
key: 0,
|
|
13699
13688
|
class: "pv-tag-purple pv-tag-sm"
|
|
13700
|
-
},
|
|
13689
|
+
}, mg = /* @__PURE__ */ d({
|
|
13701
13690
|
name: "PvSidebarV2NavFlyout",
|
|
13702
13691
|
__name: "PvSidebarV2NavFlyout",
|
|
13703
13692
|
props: {
|
|
@@ -13708,7 +13697,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13708
13697
|
let n = j({});
|
|
13709
13698
|
return (r, c) => {
|
|
13710
13699
|
let l = P("PvSidebarV2NavFlyout", !0);
|
|
13711
|
-
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", {
|
|
13712
13701
|
key: t.value,
|
|
13713
13702
|
"data-active": !t.children?.length && t.active || void 0
|
|
13714
13703
|
}, [t.children?.length ? (k(), i(ur, {
|
|
@@ -13726,18 +13715,18 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13726
13715
|
trigger: K(() => [s("a", v({ href: t.url }, { ref_for: !0 }, t.linkAttrs, {
|
|
13727
13716
|
role: t.url ? void 0 : "button",
|
|
13728
13717
|
tabindex: t.url ? void 0 : 0,
|
|
13729
|
-
"data-active": V(
|
|
13718
|
+
"data-active": V(og)(t) || void 0,
|
|
13730
13719
|
"aria-haspopup": "true",
|
|
13731
13720
|
"aria-expanded": !!n.value[t.value],
|
|
13732
13721
|
style: { "flex-wrap": "wrap" }
|
|
13733
13722
|
}), [
|
|
13734
13723
|
s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, R(t.label), 3),
|
|
13735
|
-
t.badge ? (k(), o("span",
|
|
13724
|
+
t.badge ? (k(), o("span", dg, R(t.badge.toUpperCase()), 1)) : a("", !0),
|
|
13736
13725
|
u(Q, {
|
|
13737
13726
|
name: "chevron-right",
|
|
13738
13727
|
class: "pv-icon-16"
|
|
13739
13728
|
})
|
|
13740
|
-
], 16,
|
|
13729
|
+
], 16, ug)]),
|
|
13741
13730
|
content: K(() => [u(l, {
|
|
13742
13731
|
items: t.children,
|
|
13743
13732
|
disabled: e.disabled
|
|
@@ -13750,108 +13739,108 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13750
13739
|
])) : (k(), o("a", v({
|
|
13751
13740
|
key: 1,
|
|
13752
13741
|
href: t.url
|
|
13753
|
-
}, { 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))])]);
|
|
13754
13743
|
};
|
|
13755
13744
|
}
|
|
13756
|
-
}),
|
|
13745
|
+
}), hg = {
|
|
13757
13746
|
key: 0,
|
|
13758
13747
|
class: "sidebar-additional-header"
|
|
13759
|
-
},
|
|
13748
|
+
}, gg = ["data-sidebar-collapsed"], _g = { class: "sidebar-header-content pv-full-width" }, vg = ["aria-label", "aria-expanded"], yg = {
|
|
13760
13749
|
class: "pv-flex",
|
|
13761
13750
|
style: { "min-width": "0" }
|
|
13762
|
-
},
|
|
13751
|
+
}, bg = {
|
|
13763
13752
|
class: "pv-avatar-xs",
|
|
13764
13753
|
style: {
|
|
13765
13754
|
"border-radius": "4px",
|
|
13766
13755
|
"flex-shrink": "0"
|
|
13767
13756
|
}
|
|
13768
|
-
},
|
|
13757
|
+
}, xg = ["src"], Sg = { key: 1 }, Cg = [
|
|
13769
13758
|
"data-sidebar-collapsed",
|
|
13770
13759
|
"data-sidebar-expanding",
|
|
13771
13760
|
"title"
|
|
13772
|
-
],
|
|
13761
|
+
], wg = {
|
|
13773
13762
|
class: "pv-popover",
|
|
13774
13763
|
style: {
|
|
13775
13764
|
width: "fit-content",
|
|
13776
13765
|
"max-width": "280px",
|
|
13777
13766
|
"margin-top": "4px"
|
|
13778
13767
|
}
|
|
13779
|
-
},
|
|
13768
|
+
}, Tg = {
|
|
13780
13769
|
role: "list",
|
|
13781
13770
|
class: "pv-popover-list pv-flow",
|
|
13782
13771
|
style: { "--flow-size": "0.25rem" },
|
|
13783
13772
|
"data-testid": "pv-sidebar-org-list"
|
|
13784
|
-
},
|
|
13773
|
+
}, Eg = ["data-active"], Dg = ["href", "data-org-value"], Og = {
|
|
13785
13774
|
class: "pv-avatar-xs",
|
|
13786
13775
|
style: { "border-radius": "4px" }
|
|
13787
|
-
},
|
|
13776
|
+
}, kg = ["src"], Ag = { key: 1 }, jg = ["title"], Mg = ["data-active"], Ng = ["href", "data-org-value"], Pg = ["title"], Fg = { key: 0 }, Ig = {
|
|
13788
13777
|
key: 1,
|
|
13789
13778
|
role: "list",
|
|
13790
13779
|
class: "pv-full-width pv-flow",
|
|
13791
13780
|
style: { "--flow-size": "0.25rem" }
|
|
13792
|
-
},
|
|
13781
|
+
}, Lg = {
|
|
13793
13782
|
key: 0,
|
|
13794
13783
|
class: "pv-sidebar-nav-separator",
|
|
13795
13784
|
"aria-hidden": "true"
|
|
13796
|
-
},
|
|
13785
|
+
}, Rg = ["data-sidebar-collapsed"], zg = {
|
|
13797
13786
|
key: 0,
|
|
13798
13787
|
class: "pv-tag-purple pv-tag-sm"
|
|
13799
|
-
},
|
|
13788
|
+
}, Bg = ["onClick", "onKeydown"], Vg = [
|
|
13800
13789
|
"href",
|
|
13801
13790
|
"aria-current",
|
|
13802
13791
|
"title"
|
|
13803
|
-
],
|
|
13792
|
+
], Hg = ["data-sidebar-collapsed"], Ug = {
|
|
13804
13793
|
key: 0,
|
|
13805
13794
|
class: "pv-tag-purple pv-tag-sm"
|
|
13806
|
-
},
|
|
13795
|
+
}, Wg = {
|
|
13807
13796
|
class: "pv-popover",
|
|
13808
13797
|
style: { "--position": "static" }
|
|
13809
|
-
},
|
|
13798
|
+
}, Gg = {
|
|
13810
13799
|
role: "list",
|
|
13811
13800
|
class: "pv-popover-list"
|
|
13812
|
-
},
|
|
13801
|
+
}, Kg = ["data-active"], qg = ["href"], Jg = {
|
|
13813
13802
|
key: 0,
|
|
13814
13803
|
class: "pv-tag-purple pv-tag-sm"
|
|
13815
|
-
},
|
|
13804
|
+
}, Yg = ["onClick", "onAuxclick"], Xg = ["data-sidebar-collapsed"], Zg = ["data-sidebar-collapsed"], Qg = [
|
|
13816
13805
|
"href",
|
|
13817
13806
|
"role",
|
|
13818
13807
|
"tabindex",
|
|
13819
13808
|
"aria-current",
|
|
13820
13809
|
"aria-expanded",
|
|
13821
13810
|
"title"
|
|
13822
|
-
],
|
|
13811
|
+
], $g = {
|
|
13823
13812
|
class: "pv-flex pv-space-between pv-full-width",
|
|
13824
13813
|
style: { "flex-wrap": "wrap" }
|
|
13825
|
-
},
|
|
13814
|
+
}, e_ = {
|
|
13826
13815
|
key: 0,
|
|
13827
13816
|
class: "pv-tag-purple pv-tag-sm"
|
|
13828
|
-
},
|
|
13817
|
+
}, t_ = [
|
|
13829
13818
|
"href",
|
|
13830
13819
|
"aria-current",
|
|
13831
13820
|
"title"
|
|
13832
|
-
],
|
|
13821
|
+
], n_ = {
|
|
13833
13822
|
class: "pv-flex pv-space-between pv-full-width",
|
|
13834
13823
|
style: { "flex-wrap": "wrap" }
|
|
13835
|
-
},
|
|
13824
|
+
}, r_ = {
|
|
13836
13825
|
key: 0,
|
|
13837
13826
|
class: "pv-tag-purple pv-tag-sm"
|
|
13838
|
-
},
|
|
13827
|
+
}, i_ = {
|
|
13839
13828
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
13840
13829
|
style: { "--bottom": "0" }
|
|
13841
|
-
},
|
|
13830
|
+
}, a_ = ["aria-expanded"], o_ = ["data-sidebar-collapsed"], s_ = { class: "pv-popover pv-text-default pv-text-body-md" }, c_ = [
|
|
13842
13831
|
"aria-label",
|
|
13843
13832
|
"aria-expanded",
|
|
13844
13833
|
"title"
|
|
13845
|
-
],
|
|
13834
|
+
], l_ = {
|
|
13846
13835
|
class: "pv-avatar-xs",
|
|
13847
13836
|
style: {
|
|
13848
13837
|
"border-radius": "50%",
|
|
13849
13838
|
"flex-shrink": "0"
|
|
13850
13839
|
}
|
|
13851
|
-
},
|
|
13840
|
+
}, u_ = ["src"], d_ = { key: 1 }, f_ = ["data-sidebar-collapsed"], p_ = {
|
|
13852
13841
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
13853
13842
|
style: { "--height": "750px" }
|
|
13854
|
-
},
|
|
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({
|
|
13855
13844
|
__name: "PvSidebarV2",
|
|
13856
13845
|
props: /* @__PURE__ */ _({
|
|
13857
13846
|
disableOrgProfileHover: { type: Boolean },
|
|
@@ -13876,11 +13865,11 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13876
13865
|
})), B, ee = (e) => e.hoverPanelSlot ? p ? (I.value, rr(p, e.hoverPanelSlot)) : !!x[e.hoverPanelSlot] : !1, H = (e, t, n) => {
|
|
13877
13866
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
13878
13867
|
}, te = (e) => {
|
|
13879
|
-
let t = A.get(e), n = t?.querySelector(
|
|
13868
|
+
let t = A.get(e), n = t?.querySelector(h_);
|
|
13880
13869
|
if (n) return n;
|
|
13881
13870
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
13882
|
-
if (t.matches(
|
|
13883
|
-
let e = t.querySelector(
|
|
13871
|
+
if (t.matches(h_)) return t;
|
|
13872
|
+
let e = t.querySelector(h_);
|
|
13884
13873
|
if (e) return e;
|
|
13885
13874
|
}
|
|
13886
13875
|
}, W = (e, t) => {
|
|
@@ -13915,12 +13904,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13915
13904
|
}, se = r(() => (c.organizations && oe(c.organizations)) ?? c.organizations?.[0]), ce = j((() => {
|
|
13916
13905
|
let e = {};
|
|
13917
13906
|
return c.navItems?.forEach((t) => {
|
|
13918
|
-
|
|
13907
|
+
og(t) && (e[t.value] = !0);
|
|
13919
13908
|
}), e;
|
|
13920
13909
|
})());
|
|
13921
13910
|
G(() => c.navItems, (e) => {
|
|
13922
13911
|
e?.forEach((e) => {
|
|
13923
|
-
|
|
13912
|
+
og(e) && (ce.value[e.value] = !0);
|
|
13924
13913
|
});
|
|
13925
13914
|
});
|
|
13926
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 = () => {
|
|
@@ -13939,7 +13928,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13939
13928
|
q.value = !q.value, de("change", { collapsed: q.value });
|
|
13940
13929
|
}, ge = (e) => {
|
|
13941
13930
|
e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (J.value = !1);
|
|
13942
|
-
}, _e = (e) => e.some(
|
|
13931
|
+
}, _e = (e) => e.some(og), ve = (e, t) => {
|
|
13943
13932
|
if (t.url) {
|
|
13944
13933
|
if (e.ctrlKey || e.metaKey || e.shiftKey || e.button === 1) {
|
|
13945
13934
|
window.open(t.url, "_blank", "noopener");
|
|
@@ -13961,10 +13950,10 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13961
13950
|
ref_key: "sidebarPanel",
|
|
13962
13951
|
ref: E,
|
|
13963
13952
|
class: "sidebar-panel"
|
|
13964
|
-
}, [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", {
|
|
13965
13954
|
class: b(["sidebar-header", [{ "pv-border-bottom": q.value }]]),
|
|
13966
13955
|
"data-sidebar-collapsed": q.value || void 0
|
|
13967
|
-
}, [s("div",
|
|
13956
|
+
}, [s("div", _g, [e.organizations && e.organizations.length ? (k(), o("div", {
|
|
13968
13957
|
key: 0,
|
|
13969
13958
|
class: b(["pv-sidebar-nav-header", e.variant && `pv-sidebar-surface-${e.variant}`])
|
|
13970
13959
|
}, [u(ur, {
|
|
@@ -13993,23 +13982,23 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13993
13982
|
"data-testid": "pv-sidebar-org-switcher",
|
|
13994
13983
|
"aria-label": `Switch organization: ${se.value?.label}`,
|
|
13995
13984
|
"aria-expanded": X.value
|
|
13996
|
-
}, [s("div",
|
|
13985
|
+
}, [s("div", yg, [s("span", bg, [se.value?.avatarUrl ? (k(), o("img", {
|
|
13997
13986
|
key: 0,
|
|
13998
13987
|
src: se.value.avatarUrl,
|
|
13999
13988
|
alt: "Organization Avatar"
|
|
14000
|
-
}, null, 8,
|
|
13989
|
+
}, null, 8, xg)) : (k(), o("span", Sg, R(se.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
14001
13990
|
class: "pv-text-title-lg pv-truncate",
|
|
14002
13991
|
"data-sidebar-expanded-content": "",
|
|
14003
13992
|
"data-sidebar-collapsed": q.value || void 0,
|
|
14004
13993
|
"data-sidebar-expanding": ue.value || void 0,
|
|
14005
13994
|
title: se.value?.label
|
|
14006
|
-
}, R(se.value?.label), 9,
|
|
13995
|
+
}, R(se.value?.label), 9, Cg)]), u(Q, {
|
|
14007
13996
|
name: "chevron-down",
|
|
14008
13997
|
class: "pv-icon-16",
|
|
14009
13998
|
"data-sidebar-expanded-content": "",
|
|
14010
13999
|
"data-sidebar-collapsed": q.value || void 0,
|
|
14011
14000
|
"data-sidebar-expanding": ue.value || void 0
|
|
14012
|
-
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10,
|
|
14001
|
+
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10, vg)]),
|
|
14013
14002
|
_: 1
|
|
14014
14003
|
}, 8, [
|
|
14015
14004
|
"description",
|
|
@@ -14017,19 +14006,19 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14017
14006
|
"use-teleport",
|
|
14018
14007
|
"teleport-location"
|
|
14019
14008
|
])]),
|
|
14020
|
-
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", {
|
|
14021
14010
|
class: "pv-flex",
|
|
14022
14011
|
href: e.url,
|
|
14023
14012
|
"data-testid": "pv-sidebar-org-option",
|
|
14024
14013
|
"data-org-value": e.value
|
|
14025
|
-
}, [s("div",
|
|
14014
|
+
}, [s("div", Og, [e.avatarUrl ? (k(), o("img", {
|
|
14026
14015
|
key: 0,
|
|
14027
14016
|
src: e.avatarUrl,
|
|
14028
14017
|
alt: "Organization Avatar"
|
|
14029
|
-
}, null, 8,
|
|
14018
|
+
}, null, 8, kg)) : (k(), o("span", Ag, R(e.label.slice(0, 1)), 1))]), s("span", {
|
|
14030
14019
|
class: "pv-truncate pv-flex-item",
|
|
14031
14020
|
title: e.label
|
|
14032
|
-
}, 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", {
|
|
14033
14022
|
key: e.value,
|
|
14034
14023
|
style: { "padding-left": "0.5rem" },
|
|
14035
14024
|
"data-active": e.active || void 0
|
|
@@ -14042,7 +14031,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14042
14031
|
}, [u(Q, { name: "corner-down-right" }), s("span", {
|
|
14043
14032
|
class: "pv-truncate",
|
|
14044
14033
|
title: e.label
|
|
14045
|
-
}, R(e.label), 9,
|
|
14034
|
+
}, R(e.label), 9, Pg)], 8, Ng)], 8, Mg))), 128))], 64))), 128))])])]),
|
|
14046
14035
|
_: 1
|
|
14047
14036
|
}, 8, [
|
|
14048
14037
|
"modelValue",
|
|
@@ -14071,9 +14060,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14071
14060
|
])]),
|
|
14072
14061
|
content: K(() => [l(R(q.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
14073
14062
|
_: 1
|
|
14074
|
-
}))], 10,
|
|
14075
|
-
V(m) ? (k(), o("div",
|
|
14076
|
-
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, {
|
|
14077
14066
|
key: 0,
|
|
14078
14067
|
modelValue: D.value[e.value],
|
|
14079
14068
|
"onUpdate:modelValue": (t) => D.value[e.value] = t,
|
|
@@ -14108,7 +14097,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14108
14097
|
"data-sidebar-expanded-content": "",
|
|
14109
14098
|
"data-sidebar-collapsed": q.value || void 0,
|
|
14110
14099
|
style: { "flex-wrap": "wrap" }
|
|
14111
|
-
}, [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)]),
|
|
14112
14101
|
_: 2
|
|
14113
14102
|
}, 1040, [
|
|
14114
14103
|
"class",
|
|
@@ -14126,7 +14115,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14126
14115
|
class: "pv-sidebar-hover-panel",
|
|
14127
14116
|
onClick: (t) => ie(t, e.value),
|
|
14128
14117
|
onKeydown: (t) => ae(t, e.value)
|
|
14129
|
-
}, [N(n.$slots, e.hoverPanelSlot)], 40,
|
|
14118
|
+
}, [N(n.$slots, e.hoverPanelSlot)], 40, Bg)]),
|
|
14130
14119
|
_: 2
|
|
14131
14120
|
}, 1032, [
|
|
14132
14121
|
"modelValue",
|
|
@@ -14160,8 +14149,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14160
14149
|
"data-sidebar-expanded-content": "",
|
|
14161
14150
|
"data-sidebar-collapsed": q.value || void 0,
|
|
14162
14151
|
style: { "flex-wrap": "wrap" }
|
|
14163
|
-
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span",
|
|
14164
|
-
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)])])]),
|
|
14165
14154
|
_: 2
|
|
14166
14155
|
}, 1032, [
|
|
14167
14156
|
"use-teleport",
|
|
@@ -14181,7 +14170,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14181
14170
|
trigger: K(() => [u(Ii, {
|
|
14182
14171
|
modelValue: ce.value[e.value],
|
|
14183
14172
|
"onUpdate:modelValue": (t) => ce.value[e.value] = t,
|
|
14184
|
-
"default-open": V(
|
|
14173
|
+
"default-open": V(og)(e),
|
|
14185
14174
|
"summary-attrs": {
|
|
14186
14175
|
class: q.value ? "pv-sidebar-item-collapsed" : void 0,
|
|
14187
14176
|
"aria-current": _e(e.children) && q.value ? "page" : void 0
|
|
@@ -14200,7 +14189,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14200
14189
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
14201
14190
|
"data-sidebar-expanded-content": "",
|
|
14202
14191
|
"data-sidebar-collapsed": q.value || void 0
|
|
14203
|
-
}, R(e.label), 9,
|
|
14192
|
+
}, R(e.label), 9, Xg)], 40, Yg)]),
|
|
14204
14193
|
default: K(() => [s("div", {
|
|
14205
14194
|
class: "pv-sidebar-nav-nested",
|
|
14206
14195
|
"data-sidebar-collapsed": q.value || void 0
|
|
@@ -14221,15 +14210,15 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14221
14210
|
trigger: K(() => [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, {
|
|
14222
14211
|
role: e.url ? void 0 : "button",
|
|
14223
14212
|
tabindex: e.url ? void 0 : 0,
|
|
14224
|
-
"aria-current": V(
|
|
14213
|
+
"aria-current": V(og)(e) ? "page" : void 0,
|
|
14225
14214
|
"aria-haspopup": "true",
|
|
14226
14215
|
"aria-expanded": !!pe.value[e.value],
|
|
14227
14216
|
title: e.label
|
|
14228
|
-
}), [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, {
|
|
14229
14218
|
name: "chevron-right",
|
|
14230
14219
|
class: "pv-icon-16"
|
|
14231
|
-
})], 16,
|
|
14232
|
-
content: K(() => [u(
|
|
14220
|
+
})], 16, Qg)]),
|
|
14221
|
+
content: K(() => [u(mg, {
|
|
14233
14222
|
items: e.children,
|
|
14234
14223
|
disabled: q.value
|
|
14235
14224
|
}, null, 8, ["items", "disabled"])]),
|
|
@@ -14246,7 +14235,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14246
14235
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
14247
14236
|
"aria-current": e.active ? "page" : void 0,
|
|
14248
14237
|
title: e.label
|
|
14249
|
-
}), [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)]),
|
|
14250
14239
|
_: 2
|
|
14251
14240
|
}, 1032, [
|
|
14252
14241
|
"modelValue",
|
|
@@ -14254,7 +14243,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14254
14243
|
"default-open",
|
|
14255
14244
|
"summary-attrs"
|
|
14256
14245
|
])]),
|
|
14257
|
-
content: K(() => [u(
|
|
14246
|
+
content: K(() => [u(mg, {
|
|
14258
14247
|
items: e.children,
|
|
14259
14248
|
disabled: !q.value
|
|
14260
14249
|
}, null, 8, ["items", "disabled"])]),
|
|
@@ -14264,7 +14253,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14264
14253
|
"teleport-location",
|
|
14265
14254
|
"disabled"
|
|
14266
14255
|
]))])], 64))), 128))])) : a("", !0),
|
|
14267
|
-
s("div",
|
|
14256
|
+
s("div", i_, [V(g) ? (k(), i(ur, {
|
|
14268
14257
|
key: 0,
|
|
14269
14258
|
modelValue: Y.value,
|
|
14270
14259
|
"onUpdate:modelValue": r[1] ||= (e) => Y.value = e,
|
|
@@ -14289,8 +14278,8 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14289
14278
|
}), s("span", {
|
|
14290
14279
|
"data-sidebar-expanded-content": "",
|
|
14291
14280
|
"data-sidebar-collapsed": q.value || void 0
|
|
14292
|
-
}, "Help", 8,
|
|
14293
|
-
content: K(() => [s("div",
|
|
14281
|
+
}, "Help", 8, o_)], 10, a_)]),
|
|
14282
|
+
content: K(() => [s("div", s_, [N(n.$slots, "sidebar-help-content")])]),
|
|
14294
14283
|
_: 3
|
|
14295
14284
|
}, 8, [
|
|
14296
14285
|
"modelValue",
|
|
@@ -14315,16 +14304,16 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14315
14304
|
"aria-label": e.profile.name,
|
|
14316
14305
|
"aria-expanded": Z.value,
|
|
14317
14306
|
title: e.profile.name
|
|
14318
|
-
}, [s("span",
|
|
14307
|
+
}, [s("span", l_, [e.profile.avatarUrl ? (k(), o("img", {
|
|
14319
14308
|
key: 0,
|
|
14320
14309
|
src: e.profile.avatarUrl,
|
|
14321
14310
|
alt: ""
|
|
14322
|
-
}, null, 8,
|
|
14311
|
+
}, null, 8, u_)) : (k(), o("span", d_, R(e.profile.name.slice(0, 1)), 1))]), s("span", {
|
|
14323
14312
|
class: "pv-truncate",
|
|
14324
14313
|
"data-sidebar-expanded-content": "",
|
|
14325
14314
|
"data-sidebar-collapsed": q.value || void 0
|
|
14326
|
-
}, R(e.profile.name), 9,
|
|
14327
|
-
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")])]),
|
|
14328
14317
|
_: 3
|
|
14329
14318
|
}, 8, [
|
|
14330
14319
|
"modelValue",
|
|
@@ -14333,7 +14322,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14333
14322
|
"teleport-location"
|
|
14334
14323
|
])) : a("", !0)])
|
|
14335
14324
|
], 2)], 512),
|
|
14336
|
-
s("div",
|
|
14325
|
+
s("div", m_, [N(n.$slots, "default")]),
|
|
14337
14326
|
s("div", {
|
|
14338
14327
|
ref_key: "popoverTeleportTarget",
|
|
14339
14328
|
ref: w,
|
|
@@ -14341,11 +14330,11 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14341
14330
|
}, null, 2)
|
|
14342
14331
|
], 38));
|
|
14343
14332
|
}
|
|
14344
|
-
}),
|
|
14333
|
+
}), __ = {
|
|
14345
14334
|
class: "pv-toc",
|
|
14346
14335
|
role: "list",
|
|
14347
14336
|
style: { "min-width": "160px" }
|
|
14348
|
-
},
|
|
14337
|
+
}, v_ = ["aria-current"], y_ = ["href", "onClick"], b_ = /* @__PURE__ */ d({
|
|
14349
14338
|
__name: "PvTableOfContents",
|
|
14350
14339
|
props: /* @__PURE__ */ _({ items: {} }, {
|
|
14351
14340
|
modelValue: { required: !1 },
|
|
@@ -14356,7 +14345,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14356
14345
|
let r = U(e, "modelValue"), c = n, u = (e, t) => {
|
|
14357
14346
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
14358
14347
|
};
|
|
14359
|
-
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", {
|
|
14360
14349
|
key: e.id,
|
|
14361
14350
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
14362
14351
|
}, [s("a", {
|
|
@@ -14365,9 +14354,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14365
14354
|
}, [e.icon ? (k(), i(Q, {
|
|
14366
14355
|
key: 0,
|
|
14367
14356
|
name: e.icon
|
|
14368
|
-
}, 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))]));
|
|
14369
14358
|
}
|
|
14370
|
-
}),
|
|
14359
|
+
}), x_ = ["data-clickable", "onClick"], S_ = ["data-clickable", "onClick"], C_ = ["data-clickable", "onClick"], w_ = /* @__PURE__ */ d({
|
|
14371
14360
|
__name: "PvStepper",
|
|
14372
14361
|
props: {
|
|
14373
14362
|
variant: { default: "dots" },
|
|
@@ -14449,12 +14438,12 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14449
14438
|
variant: r === e.active ? "primary" : "tertiary",
|
|
14450
14439
|
value: r + 1,
|
|
14451
14440
|
rounded: ""
|
|
14452
|
-
}, 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", {
|
|
14453
14442
|
key: r,
|
|
14454
14443
|
"data-clickable": e.clickable,
|
|
14455
14444
|
class: b(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
14456
14445
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
14457
|
-
}, null, 10,
|
|
14446
|
+
}, null, 10, S_))), 128)) : (k(!0), o(t, { key: 2 }, M(e.items, (t, r) => (k(), o("div", {
|
|
14458
14447
|
key: r,
|
|
14459
14448
|
class: b(["pv-flex pv-full-width", [{ "pv-flex-item": r === c.value - 1 }]]),
|
|
14460
14449
|
style: { "--flex-gap": "0.25rem" }
|
|
@@ -14469,30 +14458,30 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14469
14458
|
}, [u(Q, {
|
|
14470
14459
|
name: p[t.variant ?? "current"],
|
|
14471
14460
|
class: b(f[t.variant ?? "current"].icon)
|
|
14472
|
-
}, 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", {
|
|
14473
14462
|
key: 0,
|
|
14474
14463
|
class: b(["pv-stepper-progress-divider", m[t.variant ?? "current"]])
|
|
14475
14464
|
}, null, 2)) : a("", !0)], 2))), 128))], 4));
|
|
14476
14465
|
}
|
|
14477
|
-
}),
|
|
14466
|
+
}), T_ = {
|
|
14478
14467
|
class: "pv-flex-vertical pv-flow",
|
|
14479
14468
|
style: {
|
|
14480
14469
|
"--flow-size": "1.5rem",
|
|
14481
14470
|
"--flex-gap": "0"
|
|
14482
14471
|
}
|
|
14483
|
-
},
|
|
14472
|
+
}, E_ = ["src", "alt"], D_ = {
|
|
14484
14473
|
class: "pv-flex-vertical",
|
|
14485
14474
|
style: { "max-width": "450px" }
|
|
14486
|
-
},
|
|
14475
|
+
}, O_ = {
|
|
14487
14476
|
key: 0,
|
|
14488
14477
|
class: "pv-heading-2"
|
|
14489
|
-
},
|
|
14478
|
+
}, k_ = {
|
|
14490
14479
|
key: 1,
|
|
14491
14480
|
class: "pv-text-body-md pv-text-subdued pv-text-center"
|
|
14492
|
-
},
|
|
14481
|
+
}, A_ = {
|
|
14493
14482
|
key: 1,
|
|
14494
14483
|
class: "pv-flex-vertical"
|
|
14495
|
-
},
|
|
14484
|
+
}, j_ = /* @__PURE__ */ d({
|
|
14496
14485
|
__name: "PvEmptyState",
|
|
14497
14486
|
props: {
|
|
14498
14487
|
alt: {},
|
|
@@ -14504,14 +14493,14 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14504
14493
|
},
|
|
14505
14494
|
emits: ["handle-primary-click", "handle-secondary-click"],
|
|
14506
14495
|
setup(e) {
|
|
14507
|
-
return (t, n) => (k(), o("div",
|
|
14496
|
+
return (t, n) => (k(), o("div", T_, [
|
|
14508
14497
|
e.src ? (k(), o("img", {
|
|
14509
14498
|
key: 0,
|
|
14510
14499
|
src: e.src,
|
|
14511
14500
|
alt: e.alt ?? ""
|
|
14512
|
-
}, null, 8,
|
|
14513
|
-
s("div",
|
|
14514
|
-
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($, {
|
|
14515
14504
|
key: 0,
|
|
14516
14505
|
variant: "primary",
|
|
14517
14506
|
size: "xl",
|
|
@@ -14526,7 +14515,7 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14526
14515
|
}, null, 8, ["label"])) : a("", !0)])) : a("", !0)
|
|
14527
14516
|
]));
|
|
14528
14517
|
}
|
|
14529
|
-
}),
|
|
14518
|
+
}), M_ = { theme: {
|
|
14530
14519
|
preset: Me,
|
|
14531
14520
|
options: {
|
|
14532
14521
|
darkModeSelector: "none",
|
|
@@ -14535,9 +14524,9 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14535
14524
|
order: "pit-viper-v2, primevue"
|
|
14536
14525
|
}
|
|
14537
14526
|
}
|
|
14538
|
-
} },
|
|
14539
|
-
e.use(je,
|
|
14540
|
-
},
|
|
14527
|
+
} }, N_ = (e) => {
|
|
14528
|
+
e.use(je, M_);
|
|
14529
|
+
}, P_ = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
14541
14530
|
let i = j(null), a = j(null), o = j(null), s = j(null), c = (e) => {
|
|
14542
14531
|
let t = e.parentElement;
|
|
14543
14532
|
for (; t && t !== document.body;) {
|
|
@@ -14588,13 +14577,13 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14588
14577
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
14589
14578
|
}
|
|
14590
14579
|
};
|
|
14591
|
-
},
|
|
14592
|
-
let e = h(
|
|
14580
|
+
}, F_ = Symbol.for("pv.rum-context"), I_ = () => {
|
|
14581
|
+
let e = h(F_, void 0);
|
|
14593
14582
|
return () => {
|
|
14594
14583
|
let t = e?.value;
|
|
14595
14584
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
14596
14585
|
};
|
|
14597
|
-
},
|
|
14586
|
+
}, L_ = (e, t = {}, n = {}) => {
|
|
14598
14587
|
try {
|
|
14599
14588
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
14600
14589
|
let r = n.consumer == null ? t : {
|
|
@@ -14603,13 +14592,13 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14603
14592
|
};
|
|
14604
14593
|
window.DD_RUM.addAction(e, r);
|
|
14605
14594
|
} catch {}
|
|
14606
|
-
},
|
|
14595
|
+
}, R_ = (e) => {
|
|
14607
14596
|
queueMicrotask(() => {
|
|
14608
14597
|
try {
|
|
14609
14598
|
e();
|
|
14610
14599
|
} catch {}
|
|
14611
14600
|
});
|
|
14612
|
-
},
|
|
14601
|
+
}, z_ = [
|
|
14613
14602
|
"idle",
|
|
14614
14603
|
"curious",
|
|
14615
14604
|
"greeting",
|
|
@@ -14621,19 +14610,19 @@ var tm = ["aria-label"], nm = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
14621
14610
|
"confused",
|
|
14622
14611
|
"sleeping",
|
|
14623
14612
|
"boo"
|
|
14624
|
-
],
|
|
14613
|
+
], B_ = [
|
|
14625
14614
|
"xs",
|
|
14626
14615
|
"sm",
|
|
14627
14616
|
"md",
|
|
14628
14617
|
"lg",
|
|
14629
14618
|
"xl"
|
|
14630
|
-
],
|
|
14619
|
+
], V_ = [
|
|
14631
14620
|
"default",
|
|
14632
14621
|
"mono",
|
|
14633
14622
|
"solid",
|
|
14634
14623
|
"outline"
|
|
14635
|
-
],
|
|
14624
|
+
], H_ = ["default", "halloween"];
|
|
14636
14625
|
//#endregion
|
|
14637
|
-
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 };
|
|
14638
14627
|
|
|
14639
14628
|
//# sourceMappingURL=pv-components-base.mjs.map
|