@turquoisehealth/pit-viper 2.161.2-dev.3 → 2.162.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/package.json +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +218 -218
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -223,11 +223,11 @@ const di = { style: { position: "relative" } }, fi = {
|
|
|
223
223
|
if (!m) return;
|
|
224
224
|
const T = m.querySelector(".ag-charts-series-area");
|
|
225
225
|
if (!T) return;
|
|
226
|
-
const A = T.getBoundingClientRect(), w = m.getBoundingClientRect(), x = l.options.seriesArea?.padding || { top: 0, right: 0, bottom: 0, left: 0 }, D = typeof x == "number" ? x : x.top || 0,
|
|
226
|
+
const A = T.getBoundingClientRect(), w = m.getBoundingClientRect(), x = l.options.seriesArea?.padding || { top: 0, right: 0, bottom: 0, left: 0 }, D = typeof x == "number" ? x : x.top || 0, M = typeof x == "number" ? x : x.right || 0, R = typeof x == "number" ? x : x.bottom || 0, _ = typeof x == "number" ? x : x.left || 0;
|
|
227
227
|
r.value = {
|
|
228
228
|
top: `${A.top - w.top - D}px`,
|
|
229
229
|
left: `${A.left - w.left - _}px`,
|
|
230
|
-
width: `${A.width + _ +
|
|
230
|
+
width: `${A.width + _ + M}px`,
|
|
231
231
|
height: `${A.height + D + R}px`
|
|
232
232
|
};
|
|
233
233
|
}, s = {
|
|
@@ -256,9 +256,9 @@ const di = { style: { position: "relative" } }, fi = {
|
|
|
256
256
|
data: []
|
|
257
257
|
};
|
|
258
258
|
let _ = String(x) || "";
|
|
259
|
-
const
|
|
260
|
-
if (
|
|
261
|
-
const V =
|
|
259
|
+
const k = S.value?.series?.find((V) => V.yKey === w);
|
|
260
|
+
if (k && k?.label?.formatter) {
|
|
261
|
+
const V = k.label.formatter;
|
|
262
262
|
_ = V({ value: x, datum: m.datum }) || formattedValue;
|
|
263
263
|
}
|
|
264
264
|
return {
|
|
@@ -275,20 +275,20 @@ const di = { style: { position: "relative" } }, fi = {
|
|
|
275
275
|
if (!m || !l.translateNullValues) return m;
|
|
276
276
|
const A = /* @__PURE__ */ new Set();
|
|
277
277
|
m.forEach((D) => {
|
|
278
|
-
Object.keys(D).forEach((
|
|
278
|
+
Object.keys(D).forEach((M) => A.add(M));
|
|
279
279
|
});
|
|
280
280
|
const w = [];
|
|
281
281
|
T?.forEach((D) => {
|
|
282
282
|
"yKey" in D && D.yKey && w.push(D.yKey);
|
|
283
283
|
});
|
|
284
284
|
const x = m.map((D) => {
|
|
285
|
-
const
|
|
285
|
+
const M = { ...D };
|
|
286
286
|
return A.forEach((R) => {
|
|
287
|
-
R in
|
|
288
|
-
}),
|
|
287
|
+
R in M ? M[R] === null && (M[R] = jt) : M[R] = jt;
|
|
288
|
+
}), M;
|
|
289
289
|
});
|
|
290
290
|
return w.length > 0 && x?.every(
|
|
291
|
-
(D) => w.every((
|
|
291
|
+
(D) => w.every((M) => !(M in D) || D[M] === jt || D[M] === null)
|
|
292
292
|
) ? [] : x;
|
|
293
293
|
}, v = (m) => m && m.map((T) => {
|
|
294
294
|
const A = { ...T };
|
|
@@ -1090,7 +1090,7 @@ const is = function(e) {
|
|
|
1090
1090
|
return {};
|
|
1091
1091
|
const m = Jt(o), T = Dt(i), A = Jt(i) === i, w = await (s.isRTL == null ? void 0 : s.isRTL(u.floating)), x = p || (A || !g ? [Gn(i)] : Zi(i)), D = v !== "none";
|
|
1092
1092
|
!p && D && x.push(...ns(i, g, v, w));
|
|
1093
|
-
const
|
|
1093
|
+
const M = [i, ...x], R = await rs(t, S), _ = [];
|
|
1094
1094
|
let E = ((l = a.flip) == null ? void 0 : l.overflows) || [];
|
|
1095
1095
|
if (c && _.push(R[m]), d) {
|
|
1096
1096
|
const Y = Xi(o, r, w);
|
|
@@ -1100,8 +1100,8 @@ const is = function(e) {
|
|
|
1100
1100
|
placement: o,
|
|
1101
1101
|
overflows: _
|
|
1102
1102
|
}], !_.every((Y) => Y <= 0)) {
|
|
1103
|
-
var
|
|
1104
|
-
const Y = (((
|
|
1103
|
+
var k, V;
|
|
1104
|
+
const Y = (((k = a.flip) == null ? void 0 : k.index) || 0) + 1, re = M[Y];
|
|
1105
1105
|
if (re && (!(d === "alignment" ? T !== Dt(re) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1106
1106
|
// overflows the main axis.
|
|
1107
1107
|
E.every((xe) => Dt(xe.placement) === T ? xe.overflows[0] > 0 : !0)))
|
|
@@ -1629,28 +1629,28 @@ function ra(e, t) {
|
|
|
1629
1629
|
function _s(e, t, n) {
|
|
1630
1630
|
n === void 0 && (n = {});
|
|
1631
1631
|
const l = n.whileElementsMounted, o = h(() => {
|
|
1632
|
-
var
|
|
1633
|
-
return (
|
|
1632
|
+
var M;
|
|
1633
|
+
return (M = an(n.open)) != null ? M : !0;
|
|
1634
1634
|
}), a = h(() => an(n.middleware)), r = h(() => {
|
|
1635
|
-
var
|
|
1636
|
-
return (
|
|
1635
|
+
var M;
|
|
1636
|
+
return (M = an(n.placement)) != null ? M : "bottom";
|
|
1637
1637
|
}), i = h(() => {
|
|
1638
|
-
var
|
|
1639
|
-
return (
|
|
1638
|
+
var M;
|
|
1639
|
+
return (M = an(n.strategy)) != null ? M : "absolute";
|
|
1640
1640
|
}), s = h(() => {
|
|
1641
|
-
var
|
|
1642
|
-
return (
|
|
1641
|
+
var M;
|
|
1642
|
+
return (M = an(n.transform)) != null ? M : !0;
|
|
1643
1643
|
}), u = h(() => oa(e.value)), c = h(() => oa(t.value)), d = $(0), p = $(0), y = $(i.value), v = $(r.value), g = Qn({}), S = $(!1), m = h(() => {
|
|
1644
|
-
const
|
|
1644
|
+
const M = {
|
|
1645
1645
|
position: y.value,
|
|
1646
1646
|
left: "0",
|
|
1647
1647
|
top: "0"
|
|
1648
1648
|
};
|
|
1649
1649
|
if (!c.value)
|
|
1650
|
-
return
|
|
1650
|
+
return M;
|
|
1651
1651
|
const R = ra(c.value, d.value), _ = ra(c.value, p.value);
|
|
1652
1652
|
return s.value ? {
|
|
1653
|
-
...
|
|
1653
|
+
...M,
|
|
1654
1654
|
transform: "translate(" + R + "px, " + _ + "px)",
|
|
1655
1655
|
...lo(c.value) >= 1.5 && {
|
|
1656
1656
|
willChange: "transform"
|
|
@@ -1665,13 +1665,13 @@ function _s(e, t, n) {
|
|
|
1665
1665
|
function A() {
|
|
1666
1666
|
if (u.value == null || c.value == null)
|
|
1667
1667
|
return;
|
|
1668
|
-
const
|
|
1668
|
+
const M = o.value;
|
|
1669
1669
|
Bs(u.value, c.value, {
|
|
1670
1670
|
middleware: a.value,
|
|
1671
1671
|
placement: r.value,
|
|
1672
1672
|
strategy: i.value
|
|
1673
1673
|
}).then((R) => {
|
|
1674
|
-
d.value = R.x, p.value = R.y, y.value = R.strategy, v.value = R.placement, g.value = R.middlewareData, S.value =
|
|
1674
|
+
d.value = R.x, p.value = R.y, y.value = R.strategy, v.value = R.placement, g.value = R.middlewareData, S.value = M !== !1;
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
function w() {
|
|
@@ -2283,7 +2283,7 @@ var it = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
2283
2283
|
var a, r, i, s, u, c, d;
|
|
2284
2284
|
let { preset: p, options: y } = t, v, g, S, m, T, A, w;
|
|
2285
2285
|
if (Ee(p) && y.transform !== "strict") {
|
|
2286
|
-
let { primitive: x, semantic: D, extend:
|
|
2286
|
+
let { primitive: x, semantic: D, extend: M } = p, R = D || {}, { colorScheme: _ } = R, E = gt(R, ["colorScheme"]), k = M || {}, { colorScheme: V } = k, G = gt(k, ["colorScheme"]), Y = _ || {}, { dark: re } = Y, he = gt(Y, ["dark"]), ae = V || {}, { dark: xe } = ae, H = gt(ae, ["dark"]), ne = Ee(x) ? this._toVariables({ primitive: x }, y) : {}, q = Ee(E) ? this._toVariables({ semantic: E }, y) : {}, W = Ee(he) ? this._toVariables({ light: he }, y) : {}, X = Ee(re) ? this._toVariables({ dark: re }, y) : {}, Te = Ee(G) ? this._toVariables({ semantic: G }, y) : {}, Ve = Ee(H) ? this._toVariables({ light: H }, y) : {}, Ue = Ee(xe) ? this._toVariables({ dark: xe }, y) : {}, [je, Z] = [(a = ne.declarations) != null ? a : "", ne.tokens], [Se, Ie] = [(r = q.declarations) != null ? r : "", q.tokens || []], [qe, at] = [(i = W.declarations) != null ? i : "", W.tokens || []], [mt, ot] = [(s = X.declarations) != null ? s : "", X.tokens || []], [St, wt] = [(u = Te.declarations) != null ? u : "", Te.tokens || []], [rt, Be] = [(c = Ve.declarations) != null ? c : "", Ve.tokens || []], [Je, Ft] = [(d = Ue.declarations) != null ? d : "", Ue.tokens || []];
|
|
2287
2287
|
v = this.transformCSS(e, je, "light", "variable", y, l, o), g = Z;
|
|
2288
2288
|
let ht = this.transformCSS(e, `${Se}${qe}`, "light", "variable", y, l, o), K = this.transformCSS(e, `${mt}`, "dark", "variable", y, l, o);
|
|
2289
2289
|
S = `${ht}${K}`, m = [.../* @__PURE__ */ new Set([...Ie, ...at, ...ot])];
|
|
@@ -2295,7 +2295,7 @@ var it = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
2295
2295
|
var i, s, u;
|
|
2296
2296
|
let c, d, p;
|
|
2297
2297
|
if (Ee(t) && n.transform !== "strict") {
|
|
2298
|
-
let y = e.replace("-directive", ""), v = t, { colorScheme: g, extend: S, css: m } = v, T = gt(v, ["colorScheme", "extend", "css"]), A = S || {}, { colorScheme: w } = A, x = gt(A, ["colorScheme"]), D = g || {}, { dark:
|
|
2298
|
+
let y = e.replace("-directive", ""), v = t, { colorScheme: g, extend: S, css: m } = v, T = gt(v, ["colorScheme", "extend", "css"]), A = S || {}, { colorScheme: w } = A, x = gt(A, ["colorScheme"]), D = g || {}, { dark: M } = D, R = gt(D, ["dark"]), _ = w || {}, { dark: E } = _, k = gt(_, ["dark"]), V = Ee(T) ? this._toVariables({ [y]: st(st({}, T), x) }, n) : {}, G = Ee(R) ? this._toVariables({ [y]: st(st({}, R), k) }, n) : {}, Y = Ee(M) ? this._toVariables({ [y]: st(st({}, M), E) }, n) : {}, [re, he] = [(i = V.declarations) != null ? i : "", V.tokens || []], [ae, xe] = [(s = G.declarations) != null ? s : "", G.tokens || []], [H, ne] = [(u = Y.declarations) != null ? u : "", Y.tokens || []], q = this.transformCSS(y, `${re}${ae}`, "light", "variable", n, o, a, r), W = this.transformCSS(y, H, "dark", "variable", n, o, a, r);
|
|
2299
2299
|
c = `${q}${W}`, d = [.../* @__PURE__ */ new Set([...he, ...xe, ...ne])], p = Mt(m, { dt: Et });
|
|
2300
2300
|
}
|
|
2301
2301
|
return { css: c, tokens: d, style: p };
|
|
@@ -2623,7 +2623,7 @@ function Au(e) {
|
|
|
2623
2623
|
}
|
|
2624
2624
|
var Ru = 0;
|
|
2625
2625
|
function Lu(e) {
|
|
2626
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = $(!1), l = $(e), o = $(null), a = fu() ? window.document : void 0, r = t.document, i = r === void 0 ? a : r, s = t.immediate, u = s === void 0 ? !0 : s, c = t.manual, d = c === void 0 ? !1 : c, p = t.name, y = p === void 0 ? "style_".concat(++Ru) : p, v = t.id, g = v === void 0 ? void 0 : v, S = t.media, m = S === void 0 ? void 0 : S, T = t.nonce, A = T === void 0 ? void 0 : T, w = t.first, x = w === void 0 ? !1 : w, D = t.onMounted,
|
|
2626
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = $(!1), l = $(e), o = $(null), a = fu() ? window.document : void 0, r = t.document, i = r === void 0 ? a : r, s = t.immediate, u = s === void 0 ? !0 : s, c = t.manual, d = c === void 0 ? !1 : c, p = t.name, y = p === void 0 ? "style_".concat(++Ru) : p, v = t.id, g = v === void 0 ? void 0 : v, S = t.media, m = S === void 0 ? void 0 : S, T = t.nonce, A = T === void 0 ? void 0 : T, w = t.first, x = w === void 0 ? !1 : w, D = t.onMounted, M = D === void 0 ? void 0 : D, R = t.onUpdated, _ = R === void 0 ? void 0 : R, E = t.onLoad, k = E === void 0 ? void 0 : E, V = t.props, G = V === void 0 ? {} : V, Y = function() {
|
|
2627
2627
|
}, re = function(xe) {
|
|
2628
2628
|
var H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2629
2629
|
if (i) {
|
|
@@ -2634,10 +2634,10 @@ function Lu(e) {
|
|
|
2634
2634
|
media: m,
|
|
2635
2635
|
nonce: X
|
|
2636
2636
|
}), x ? i.head.prepend(o.value) : i.head.appendChild(o.value), pu(o.value, "data-primevue-style-id", q), gl(o.value, ne), o.value.onload = function(Te) {
|
|
2637
|
-
return
|
|
2637
|
+
return k?.(Te, {
|
|
2638
2638
|
name: q
|
|
2639
2639
|
});
|
|
2640
|
-
},
|
|
2640
|
+
}, M?.(q)), !n.value && (Y = oe(l, function(Te) {
|
|
2641
2641
|
o.value.textContent = Te, _?.(q);
|
|
2642
2642
|
}, {
|
|
2643
2643
|
immediate: !0
|
|
@@ -2888,7 +2888,7 @@ function ju() {
|
|
|
2888
2888
|
x === void 0 && (x = "");
|
|
2889
2889
|
var D = x.match(l);
|
|
2890
2890
|
if (!D) return null;
|
|
2891
|
-
var
|
|
2891
|
+
var M = ("" + D[0]).match(o) || ["-", 0, 0], R = M[0], _ = 60 * +M[1] + +M[2];
|
|
2892
2892
|
return _ === 0 ? 0 : R === "+" ? _ : -_;
|
|
2893
2893
|
})(g), g === null)) return this;
|
|
2894
2894
|
var T = Math.abs(g) <= 16 ? 60 * g : g;
|
|
@@ -2949,8 +2949,8 @@ function Yu() {
|
|
|
2949
2949
|
var m = v[S], T = m.type, A = m.value, w = n[T];
|
|
2950
2950
|
w >= 0 && (g[w] = parseInt(A, 10));
|
|
2951
2951
|
}
|
|
2952
|
-
var x = g[3], D = x === 24 ? 0 : x,
|
|
2953
|
-
return (r.utc(
|
|
2952
|
+
var x = g[3], D = x === 24 ? 0 : x, M = g[0] + "-" + g[1] + "-" + g[2] + " " + D + ":" + g[4] + ":" + g[5] + ":000", R = +p;
|
|
2953
|
+
return (r.utc(M).valueOf() - (R -= R % 1e3)) / 6e4;
|
|
2954
2954
|
}, c = a.prototype;
|
|
2955
2955
|
c.tz = function(p, y) {
|
|
2956
2956
|
p === void 0 && (p = i);
|
|
@@ -2975,11 +2975,11 @@ function Yu() {
|
|
|
2975
2975
|
}, r.tz = function(p, y, v) {
|
|
2976
2976
|
var g = v && y, S = v || y || i, m = u(+r(), S);
|
|
2977
2977
|
if (typeof p != "string") return r(p).tz(S);
|
|
2978
|
-
var T = (function(D,
|
|
2979
|
-
var _ = D - 60 *
|
|
2980
|
-
if (
|
|
2981
|
-
var
|
|
2982
|
-
return E ===
|
|
2978
|
+
var T = (function(D, M, R) {
|
|
2979
|
+
var _ = D - 60 * M * 1e3, E = u(_, R);
|
|
2980
|
+
if (M === E) return [_, M];
|
|
2981
|
+
var k = u(_ -= 60 * (E - M) * 1e3, R);
|
|
2982
|
+
return E === k ? [_, E] : [D - 60 * Math.min(E, k) * 1e3, Math.max(E, k)];
|
|
2983
2983
|
})(r.utc(p, g).valueOf(), m, S), A = T[0], w = T[1], x = r(A).utcOffset(w);
|
|
2984
2984
|
return x.$x.$timezone = S, x;
|
|
2985
2985
|
}, r.tz.guess = function() {
|
|
@@ -3812,7 +3812,7 @@ const Ac = ["data-testid"], Rc = ["hidden", "type", "checked", "indeterminate",
|
|
|
3812
3812
|
if (u.value === "") return n.options;
|
|
3813
3813
|
const E = u.value.toLocaleLowerCase();
|
|
3814
3814
|
return n.enableCascadeSelection ? go(n.options, E) : n.options.filter(
|
|
3815
|
-
(
|
|
3815
|
+
(k) => k.text.toLocaleLowerCase().includes(E) || k.searchText?.toLocaleLowerCase().includes(E)
|
|
3816
3816
|
);
|
|
3817
3817
|
}), A = () => {
|
|
3818
3818
|
const E = n.enableCascadeSelection ? Cn(T.value) : T.value;
|
|
@@ -3823,18 +3823,18 @@ const Ac = ["data-testid"], Rc = ["hidden", "type", "checked", "indeterminate",
|
|
|
3823
3823
|
y(), S();
|
|
3824
3824
|
}, D = () => {
|
|
3825
3825
|
p(), S();
|
|
3826
|
-
},
|
|
3826
|
+
}, M = h(() => {
|
|
3827
3827
|
if (!n.groupings) return;
|
|
3828
3828
|
const E = /* @__PURE__ */ new Map();
|
|
3829
|
-
n.groupings.forEach((
|
|
3830
|
-
E.set(
|
|
3829
|
+
n.groupings.forEach((k) => {
|
|
3830
|
+
E.set(k, []);
|
|
3831
3831
|
}), E.set("other", []);
|
|
3832
|
-
for (const
|
|
3833
|
-
const V =
|
|
3834
|
-
E.get(G).push(
|
|
3832
|
+
for (const k of n.options) {
|
|
3833
|
+
const V = k.groupingLabel, G = V && E.has(V) ? V : "other";
|
|
3834
|
+
E.get(G).push(k);
|
|
3835
3835
|
}
|
|
3836
|
-
for (const [
|
|
3837
|
-
V.length === 0 && E.delete(
|
|
3836
|
+
for (const [k, V] of E)
|
|
3837
|
+
V.length === 0 && E.delete(k);
|
|
3838
3838
|
return Array.from(E.entries());
|
|
3839
3839
|
}), R = h(() => n.groupings && u.value === ""), _ = h(() => ({
|
|
3840
3840
|
...n,
|
|
@@ -3846,9 +3846,9 @@ const Ac = ["data-testid"], Rc = ["hidden", "type", "checked", "indeterminate",
|
|
|
3846
3846
|
}));
|
|
3847
3847
|
return Fn("Escape", () => {
|
|
3848
3848
|
r.value && S();
|
|
3849
|
-
}), (E,
|
|
3849
|
+
}), (E, k) => (f(), j(O(Ll), Ze({
|
|
3850
3850
|
modelValue: O(r),
|
|
3851
|
-
"onUpdate:modelValue":
|
|
3851
|
+
"onUpdate:modelValue": k[4] || (k[4] = (V) => Zt(r) ? r.value = V : null)
|
|
3852
3852
|
}, e.popoverProperties, { offset: m.value }), {
|
|
3853
3853
|
trigger: pe(() => [
|
|
3854
3854
|
Q(Bl, {
|
|
@@ -3866,7 +3866,7 @@ const Ac = ["data-testid"], Rc = ["hidden", "type", "checked", "indeterminate",
|
|
|
3866
3866
|
open: O(r),
|
|
3867
3867
|
"counter-value": v.value.length,
|
|
3868
3868
|
onHandleClear: w,
|
|
3869
|
-
onHandleToggleDropdown:
|
|
3869
|
+
onHandleToggleDropdown: k[0] || (k[0] = (V) => O(i)())
|
|
3870
3870
|
}, null, 8, ["variant", "size", "disabled", "counterPosition", "prefixLabel", "label", "icon", "companyLogo", "showClear", "showDropdown", "open", "counter-value"])
|
|
3871
3871
|
]),
|
|
3872
3872
|
content: pe(() => [
|
|
@@ -3879,7 +3879,7 @@ const Ac = ["data-testid"], Rc = ["hidden", "type", "checked", "indeterminate",
|
|
|
3879
3879
|
Q(kn, {
|
|
3880
3880
|
ref: "searchInputRef",
|
|
3881
3881
|
"model-value": u.value,
|
|
3882
|
-
"onUpdate:modelValue":
|
|
3882
|
+
"onUpdate:modelValue": k[1] || (k[1] = (V) => u.value = V),
|
|
3883
3883
|
class: "pv-stack-4",
|
|
3884
3884
|
placeholder: e.searchPlaceholder
|
|
3885
3885
|
}, null, 8, ["model-value", "placeholder"])
|
|
@@ -3888,11 +3888,11 @@ const Ac = ["data-testid"], Rc = ["hidden", "type", "checked", "indeterminate",
|
|
|
3888
3888
|
Pe(E.$slots, "header", $t(un(_.value)))
|
|
3889
3889
|
])) : N("", !0),
|
|
3890
3890
|
T.value.length > 0 ? (f(), F(fe, { key: 2 }, [
|
|
3891
|
-
R.value ? (f(!0), F(fe, { key: 0 }, Qe(
|
|
3891
|
+
R.value ? (f(!0), F(fe, { key: 0 }, Qe(M.value, ([V, G], Y) => (f(), F("div", { key: V }, [
|
|
3892
3892
|
E.$slots[V] ? Pe(E.$slots, V, { key: 0 }) : V !== "other" ? (f(), F("span", Gc, te(V), 1)) : N("", !0),
|
|
3893
3893
|
Q(bl, {
|
|
3894
3894
|
selectedItems: g.value,
|
|
3895
|
-
"onUpdate:selectedItems":
|
|
3895
|
+
"onUpdate:selectedItems": k[2] || (k[2] = (re) => g.value = re),
|
|
3896
3896
|
options: G,
|
|
3897
3897
|
config: l.value,
|
|
3898
3898
|
queryText: e.highlightSearchText ? u.value : null,
|
|
@@ -3901,11 +3901,11 @@ const Ac = ["data-testid"], Rc = ["hidden", "type", "checked", "indeterminate",
|
|
|
3901
3901
|
isLoading: e.isLoading,
|
|
3902
3902
|
enableCascadeSelection: e.enableCascadeSelection
|
|
3903
3903
|
}, null, 8, ["selectedItems", "options", "config", "queryText", "itemTestId", "isLoading", "enableCascadeSelection"]),
|
|
3904
|
-
|
|
3904
|
+
M.value && Y !== M.value.length - 1 ? (f(), F("div", zc)) : N("", !0)
|
|
3905
3905
|
]))), 128)) : (f(), j(bl, {
|
|
3906
3906
|
key: 1,
|
|
3907
3907
|
selectedItems: g.value,
|
|
3908
|
-
"onUpdate:selectedItems":
|
|
3908
|
+
"onUpdate:selectedItems": k[3] || (k[3] = (V) => g.value = V),
|
|
3909
3909
|
options: T.value,
|
|
3910
3910
|
config: l.value,
|
|
3911
3911
|
queryText: e.highlightSearchText ? u.value : null,
|
|
@@ -4244,8 +4244,8 @@ const bo = () => {
|
|
|
4244
4244
|
}, m = h(() => {
|
|
4245
4245
|
if (!r.value || r.value.length === 0)
|
|
4246
4246
|
return [];
|
|
4247
|
-
let
|
|
4248
|
-
return t.processor === "field-only" && (
|
|
4247
|
+
let M = r.value;
|
|
4248
|
+
return t.processor === "field-only" && (M = r.value.filter((R) => R.queryTerm?.queryField)), a.value && (M = M.filter((R) => !s(a.value, R))), M.map((R) => ({
|
|
4249
4249
|
id: R.id,
|
|
4250
4250
|
text: R.text,
|
|
4251
4251
|
icon: R.icon,
|
|
@@ -4256,20 +4256,20 @@ const bo = () => {
|
|
|
4256
4256
|
});
|
|
4257
4257
|
oe(
|
|
4258
4258
|
[m, o, () => t.optionsLoading],
|
|
4259
|
-
([
|
|
4260
|
-
R && R.length > 0 && (
|
|
4259
|
+
([M, R, _]) => {
|
|
4260
|
+
R && R.length > 0 && (M.length > 0 || _) ? u.value = !0 : (!R || R.length === 0) && (u.value = !1);
|
|
4261
4261
|
},
|
|
4262
4262
|
{ immediate: !0 }
|
|
4263
4263
|
);
|
|
4264
4264
|
const T = () => {
|
|
4265
4265
|
t.enableCustomOptionsInput && S(), u.value = !1, c.value = !1, d.value = !1;
|
|
4266
|
-
}, A = (
|
|
4266
|
+
}, A = (M) => {
|
|
4267
4267
|
try {
|
|
4268
4268
|
const R = {
|
|
4269
|
-
id:
|
|
4270
|
-
text:
|
|
4271
|
-
queryTerm:
|
|
4272
|
-
icon:
|
|
4269
|
+
id: M.id,
|
|
4270
|
+
text: M.text,
|
|
4271
|
+
queryTerm: M.context,
|
|
4272
|
+
icon: M.icon
|
|
4273
4273
|
};
|
|
4274
4274
|
a.value = i(a.value, R), D();
|
|
4275
4275
|
} catch (R) {
|
|
@@ -4278,17 +4278,17 @@ const bo = () => {
|
|
|
4278
4278
|
u.value = !1, c.value = !1;
|
|
4279
4279
|
}
|
|
4280
4280
|
};
|
|
4281
|
-
function w(
|
|
4282
|
-
const R =
|
|
4281
|
+
function w(M) {
|
|
4282
|
+
const R = M.target;
|
|
4283
4283
|
R.isContentEditable || R.closest('[contenteditable="true"]') || R.tagName === "BUTTON" || R.tagName === "SVG" || R.closest("button") || l.value?.focus();
|
|
4284
4284
|
}
|
|
4285
|
-
function x(
|
|
4286
|
-
|
|
4285
|
+
function x(M) {
|
|
4286
|
+
M.type === "focus" ? (c.value = !0, u.value = !0) : M.type;
|
|
4287
4287
|
}
|
|
4288
4288
|
const D = () => {
|
|
4289
4289
|
o.value = "";
|
|
4290
4290
|
};
|
|
4291
|
-
return (
|
|
4291
|
+
return (M, R) => nt((f(), F("div", {
|
|
4292
4292
|
ref: "query-builder-input",
|
|
4293
4293
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
4294
4294
|
onFocus: x,
|
|
@@ -4344,7 +4344,7 @@ const bo = () => {
|
|
|
4344
4344
|
key: `${E}-${_.searchText}`,
|
|
4345
4345
|
ref_for: !0
|
|
4346
4346
|
}, _, {
|
|
4347
|
-
onHandleSelected: (
|
|
4347
|
+
onHandleSelected: (k) => A(_),
|
|
4348
4348
|
config: n
|
|
4349
4349
|
}), null, 16, ["onHandleSelected"]))), 128))
|
|
4350
4350
|
]),
|
|
@@ -4520,8 +4520,8 @@ const Td = /* @__PURE__ */ Xe(Sd, [["render", Fd]]), ql = (e = null) => {
|
|
|
4520
4520
|
if (w?.bucketMin !== void 0 && w?.bucketMax !== void 0) {
|
|
4521
4521
|
const D = a.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
4522
4522
|
if (typeof D == "function") {
|
|
4523
|
-
const
|
|
4524
|
-
return `${
|
|
4523
|
+
const M = D({ value: w.bucketMin }), R = D({ value: w.bucketMax });
|
|
4524
|
+
return `${M} - ${R}`;
|
|
4525
4525
|
}
|
|
4526
4526
|
return `${w.bucketMin} - ${w.bucketMax}`;
|
|
4527
4527
|
}
|
|
@@ -5136,21 +5136,21 @@ const Gl = (e) => {
|
|
|
5136
5136
|
return Object.keys(_).length === 0;
|
|
5137
5137
|
}), y = $({}), v = $({}), g = $({}), S = $({}), m = () => {
|
|
5138
5138
|
const _ = {};
|
|
5139
|
-
return Object.entries(v.value).forEach(([E,
|
|
5140
|
-
const V =
|
|
5139
|
+
return Object.entries(v.value).forEach(([E, k]) => {
|
|
5140
|
+
const V = k.filter((G) => !!G);
|
|
5141
5141
|
V.length > 0 && (_[E] = {
|
|
5142
5142
|
filterType: "set",
|
|
5143
5143
|
values: V
|
|
5144
5144
|
});
|
|
5145
5145
|
}), _;
|
|
5146
|
-
}, T = async (_, E,
|
|
5146
|
+
}, T = async (_, E, k, V) => {
|
|
5147
5147
|
const G = S.value[E.field] || void 0, Y = v.value[E.field] || [];
|
|
5148
5148
|
let re = V;
|
|
5149
5149
|
t.value != null && (re = m());
|
|
5150
5150
|
const he = {
|
|
5151
5151
|
api: _,
|
|
5152
5152
|
colDef: E,
|
|
5153
|
-
column:
|
|
5153
|
+
column: k,
|
|
5154
5154
|
filterModel: re,
|
|
5155
5155
|
query: G,
|
|
5156
5156
|
selectedValues: Y
|
|
@@ -5175,11 +5175,11 @@ const Gl = (e) => {
|
|
|
5175
5175
|
} else
|
|
5176
5176
|
return [];
|
|
5177
5177
|
}, A = (_, E) => {
|
|
5178
|
-
const
|
|
5178
|
+
const k = [
|
|
5179
5179
|
...y.value[_] || [],
|
|
5180
5180
|
...g.value[_] || []
|
|
5181
5181
|
];
|
|
5182
|
-
return
|
|
5182
|
+
return k ? k.find((V) => V?.value === E) : null;
|
|
5183
5183
|
}, w = (_, E) => {
|
|
5184
5184
|
if (!E) return {};
|
|
5185
5185
|
const V = Me(_)?.queryColIds || [];
|
|
@@ -5196,35 +5196,35 @@ const Gl = (e) => {
|
|
|
5196
5196
|
return {};
|
|
5197
5197
|
}, x = (_, E) => {
|
|
5198
5198
|
v.value[_] = E;
|
|
5199
|
-
const
|
|
5199
|
+
const k = [], V = e.value;
|
|
5200
5200
|
if (Sl(V)) {
|
|
5201
5201
|
const re = V[_];
|
|
5202
5202
|
if (re?.values) {
|
|
5203
5203
|
const he = re.values || [];
|
|
5204
|
-
|
|
5204
|
+
k.push(...he);
|
|
5205
5205
|
}
|
|
5206
5206
|
}
|
|
5207
|
-
|
|
5207
|
+
k.push(...E);
|
|
5208
5208
|
const G = [];
|
|
5209
5209
|
return E.forEach((Y) => {
|
|
5210
5210
|
const re = A(_, Y);
|
|
5211
5211
|
re && G.push(re);
|
|
5212
|
-
}), g.value[_] = G,
|
|
5213
|
-
}, D = (_) => v.value[_] || [],
|
|
5212
|
+
}), g.value[_] = G, k.filter((Y, re) => k.indexOf(Y) === re);
|
|
5213
|
+
}, D = (_) => v.value[_] || [], M = (_, E) => {
|
|
5214
5214
|
S.value[_] = E;
|
|
5215
5215
|
}, R = (_, E) => {
|
|
5216
|
-
const
|
|
5217
|
-
[...V, ...G].filter((ae) => !Y.includes(ae)).forEach((ae) =>
|
|
5216
|
+
const k = /* @__PURE__ */ new Set(), V = _ ? Object.keys(_) : [], G = E ? Object.keys(E) : [], Y = V.filter((ae) => G.includes(ae));
|
|
5217
|
+
[...V, ...G].filter((ae) => !Y.includes(ae)).forEach((ae) => k.add(ae));
|
|
5218
5218
|
for (const ae of Y)
|
|
5219
|
-
JSON.stringify(_?.[ae]) !== JSON.stringify(E?.[ae]) &&
|
|
5219
|
+
JSON.stringify(_?.[ae]) !== JSON.stringify(E?.[ae]) && k.add(ae);
|
|
5220
5220
|
const he = Date.now();
|
|
5221
|
-
for (const ae of Array.from(
|
|
5221
|
+
for (const ae of Array.from(k))
|
|
5222
5222
|
l.value[ae] = he;
|
|
5223
5223
|
};
|
|
5224
5224
|
return mn(
|
|
5225
5225
|
[e, t],
|
|
5226
|
-
([_, E], [
|
|
5227
|
-
JSON.stringify(_) !== JSON.stringify(
|
|
5226
|
+
([_, E], [k, V]) => {
|
|
5227
|
+
JSON.stringify(_) !== JSON.stringify(k) && R(_ || {}, k || {}), JSON.stringify(E) !== JSON.stringify(V) && R(E || {}, e.value || {});
|
|
5228
5228
|
},
|
|
5229
5229
|
{
|
|
5230
5230
|
deep: !0,
|
|
@@ -5253,7 +5253,7 @@ const Gl = (e) => {
|
|
|
5253
5253
|
isServerSideFilter: c,
|
|
5254
5254
|
stagedFilterModel: t,
|
|
5255
5255
|
setFilterSelectedValues: x,
|
|
5256
|
-
setFilterValueSearchText:
|
|
5256
|
+
setFilterValueSearchText: M,
|
|
5257
5257
|
tableSearchFilterModel: n,
|
|
5258
5258
|
tableSearchFilterModelEmpty: p,
|
|
5259
5259
|
tableSearchHandler: u
|
|
@@ -5275,7 +5275,7 @@ const Gl = (e) => {
|
|
|
5275
5275
|
isServerSideFilter: v,
|
|
5276
5276
|
setFilterValueSearchText: g,
|
|
5277
5277
|
setFilterSelectedValues: S
|
|
5278
|
-
} = il(), { computedFocuses: m, removeFocus: T, computedFocusType: A } = rl(), w = be(To, $(!1)), x = be(Fo, $(!1)), D = be(ol, $(!1)),
|
|
5278
|
+
} = il(), { computedFocuses: m, removeFocus: T, computedFocusType: A } = rl(), w = be(To, $(!1)), x = be(Fo, $(!1)), D = be(ol, $(!1)), M = $([]), R = $([]), _ = $(!1), E = $(""), k = h(() => t.value.field || ""), V = h(() => t.value.filter || ""), G = h(() => t.value.headerName || ""), Y = h(() => n?.value === "vertical"), re = h(() => Ta(t.value)), he = h(() => Eo(t.value)), ae = h(() => Nd(t.value)), xe = h(() => Me(t.value).filterOptionsSortDescription), H = h(() => Me(t.value).filterOptionsSortTooltip), ne = h(() => !Me(t.value).filterSearch), q = h(() => Me(t.value).emptyFilterResultsRenderer), W = h(() => Me(t.value).filterOptionsRenderer), X = h(() => Me(t.value).filterHeaderRenderer), Te = h(() => Me(t.value).filterFooterRenderer), Ve = h(() => he.value ? M.value.length >= he.value : !1), Ue = h(() => R.value.filter((K) => K != null && !M.value.includes(K))), je = h(() => R.value.length === 1 && R.value[0] === null && M.value.length === 0), Z = () => Object.entries(u.value).filter(([K]) => K !== k.value).reduce((K, [, J]) => Math.max(K, J), 0), Se = (K = !1) => {
|
|
5279
5279
|
let J = [];
|
|
5280
5280
|
const de = Me(t.value), ge = de.aggregateFields && de.aggregateFields.length > 0;
|
|
5281
5281
|
if (D.value && o.value) {
|
|
@@ -5286,21 +5286,21 @@ const Gl = (e) => {
|
|
|
5286
5286
|
J.push(...We);
|
|
5287
5287
|
}
|
|
5288
5288
|
else
|
|
5289
|
-
J = kt(
|
|
5289
|
+
J = kt(k.value, ye);
|
|
5290
5290
|
} else
|
|
5291
5291
|
J = Cl(t.value, r.value);
|
|
5292
|
-
K ?
|
|
5293
|
-
/* @__PURE__ */ new Set([...y(
|
|
5292
|
+
K ? M.value = J : M.value = Array.from(
|
|
5293
|
+
/* @__PURE__ */ new Set([...y(k.value), ...J])
|
|
5294
5294
|
);
|
|
5295
5295
|
}, Ie = (K) => K.sort((J, de) => {
|
|
5296
|
-
const ge =
|
|
5296
|
+
const ge = M.value.includes(J), ye = M.value.includes(de);
|
|
5297
5297
|
return ge && !ye ? -1 : !ge && ye ? 1 : 0;
|
|
5298
5298
|
}), qe = async (K = !1, J = !1) => {
|
|
5299
5299
|
if (!o.value) return;
|
|
5300
5300
|
if (D.value) {
|
|
5301
|
-
const We = Z() || 0, we = c.value[
|
|
5301
|
+
const We = Z() || 0, we = c.value[k.value] || 0, ve = K && d.value[k.value] !== !0 && We >= we;
|
|
5302
5302
|
if (v.value && (J || ve)) {
|
|
5303
|
-
const Ke = o.value.getColumn(
|
|
5303
|
+
const Ke = o.value.getColumn(k.value);
|
|
5304
5304
|
if (Ke) {
|
|
5305
5305
|
const Ge = await a(
|
|
5306
5306
|
o.value,
|
|
@@ -5315,10 +5315,10 @@ const Gl = (e) => {
|
|
|
5315
5315
|
}
|
|
5316
5316
|
const de = await Xd(o.value, t.value);
|
|
5317
5317
|
if (!de) return;
|
|
5318
|
-
const ge = Z() || 0, ye = c.value[
|
|
5318
|
+
const ge = Z() || 0, ye = c.value[k.value] || 0, Ne = K && d.value[k.value] !== !0 && ge >= ye;
|
|
5319
5319
|
v.value && (J || Ne) && de.refreshFilterValues(), R.value = Ie(de.getFilterValues());
|
|
5320
5320
|
}, at = (K) => {
|
|
5321
|
-
const J = p(
|
|
5321
|
+
const J = p(k.value, K);
|
|
5322
5322
|
let de = re.value;
|
|
5323
5323
|
if (J?.colField && Sn(t.value)) {
|
|
5324
5324
|
const ge = o.value?.getColumnDef(J?.colField);
|
|
@@ -5328,12 +5328,12 @@ const Gl = (e) => {
|
|
|
5328
5328
|
value: K,
|
|
5329
5329
|
context: J
|
|
5330
5330
|
}) : J?.label || K;
|
|
5331
|
-
}, mt = (K) => je.value || p(
|
|
5332
|
-
const J = [...
|
|
5331
|
+
}, mt = (K) => je.value || p(k.value, K)?.isSelectable === !1 ? !0 : ae.value ? !1 : Ve.value && !M.value.includes(K), ot = (K) => !K || !o.value ? "" : o.value.getColumnDef(K)?.headerName || K, St = h(() => {
|
|
5332
|
+
const J = [...M.value.filter(
|
|
5333
5333
|
(ge) => ge != null && ge !== "" && !R.value.includes(ge)
|
|
5334
5334
|
), ...R.value];
|
|
5335
5335
|
return J.filter((ge, ye) => J.indexOf(ge) === ye).filter((ge) => ge != null && ge !== "").map((ge) => {
|
|
5336
|
-
const ye = p(
|
|
5336
|
+
const ye = p(k.value, ge);
|
|
5337
5337
|
let Ne = xe.value ? "suggestions" : null;
|
|
5338
5338
|
ye?.isPreference && (Ne = "preferences");
|
|
5339
5339
|
let We = null;
|
|
@@ -5351,8 +5351,8 @@ const Gl = (e) => {
|
|
|
5351
5351
|
};
|
|
5352
5352
|
});
|
|
5353
5353
|
}), wt = h({
|
|
5354
|
-
get: () =>
|
|
5355
|
-
const J = p(
|
|
5354
|
+
get: () => M.value.map((K) => {
|
|
5355
|
+
const J = p(k.value, K), de = J?.colField ? ot(J.colField) : void 0;
|
|
5356
5356
|
return {
|
|
5357
5357
|
id: K,
|
|
5358
5358
|
text: at(K),
|
|
@@ -5361,22 +5361,22 @@ const Gl = (e) => {
|
|
|
5361
5361
|
};
|
|
5362
5362
|
}),
|
|
5363
5363
|
set: (K) => {
|
|
5364
|
-
|
|
5365
|
-
!
|
|
5364
|
+
M.value = K.map((J) => J.id), Be(), m.value.forEach((J) => {
|
|
5365
|
+
!M.value.includes(J) && A.value === k.value && T(J);
|
|
5366
5366
|
}), l?.();
|
|
5367
5367
|
}
|
|
5368
5368
|
}), rt = (K) => {
|
|
5369
5369
|
const J = {};
|
|
5370
5370
|
for (const de of K) {
|
|
5371
5371
|
if (de === null) continue;
|
|
5372
|
-
const ye = p(
|
|
5372
|
+
const ye = p(k.value, de)?.colField || k.value;
|
|
5373
5373
|
J[ye] || (J[ye] = []), J[ye].push(de);
|
|
5374
5374
|
}
|
|
5375
5375
|
return J;
|
|
5376
5376
|
}, Be = async (K, J) => {
|
|
5377
5377
|
if (!o.value) return;
|
|
5378
5378
|
if (K !== void 0 && J !== void 0) {
|
|
5379
|
-
const we = K ||
|
|
5379
|
+
const we = K || k.value, ve = J;
|
|
5380
5380
|
if (D.value) {
|
|
5381
5381
|
const Ge = Xt(we, ve || []);
|
|
5382
5382
|
if (Y.value) {
|
|
@@ -5402,7 +5402,7 @@ const Gl = (e) => {
|
|
|
5402
5402
|
});
|
|
5403
5403
|
return;
|
|
5404
5404
|
}
|
|
5405
|
-
const de = rt(
|
|
5405
|
+
const de = rt(M.value), ge = Me(t.value), ye = ge.aggregateFields && ge.aggregateFields.length > 0;
|
|
5406
5406
|
if (D.value) {
|
|
5407
5407
|
let we = Y.value ? i.value : o.value.getAdvancedFilterModel();
|
|
5408
5408
|
if (ye) {
|
|
@@ -5429,42 +5429,42 @@ const Gl = (e) => {
|
|
|
5429
5429
|
} : we = Ge;
|
|
5430
5430
|
}
|
|
5431
5431
|
} else {
|
|
5432
|
-
const ve =
|
|
5433
|
-
we = Yt(we, Ke,
|
|
5432
|
+
const ve = M.value.length > 0 ? M.value : null, Ke = Xt(k.value, ve || []);
|
|
5433
|
+
we = Yt(we, Ke, k.value);
|
|
5434
5434
|
}
|
|
5435
5435
|
Y.value ? i.value = we : o.value.setAdvancedFilterModel(we);
|
|
5436
5436
|
return;
|
|
5437
5437
|
}
|
|
5438
|
-
const Ne =
|
|
5438
|
+
const Ne = M.value.length > 0 ? M.value : null;
|
|
5439
5439
|
if (Y.value) {
|
|
5440
5440
|
const we = await Rn(o.value, t.value, Ne);
|
|
5441
5441
|
i.value = {
|
|
5442
5442
|
...i.value,
|
|
5443
|
-
[
|
|
5443
|
+
[k.value]: we
|
|
5444
5444
|
};
|
|
5445
5445
|
return;
|
|
5446
5446
|
}
|
|
5447
5447
|
const We = await Rn(o.value, t.value, Ne);
|
|
5448
|
-
o.value.setColumnFilterModel(
|
|
5448
|
+
o.value.setColumnFilterModel(k.value, We).then(() => {
|
|
5449
5449
|
o.value && o.value.onFilterChanged();
|
|
5450
5450
|
});
|
|
5451
5451
|
}, Je = (K, J) => {
|
|
5452
|
-
K && ae.value ?
|
|
5452
|
+
K && ae.value ? M.value = [K] : K && !M.value.includes(K) && (M.value = [...M.value, K]), J && J !== k.value ? Be(J, [K]) : Be(), l?.();
|
|
5453
5453
|
}, Ft = (K, J) => {
|
|
5454
|
-
|
|
5454
|
+
M.value = M.value.filter((de) => de !== K), J && J !== k.value ? Be(J, null) : Be(), l?.();
|
|
5455
5455
|
}, ht = () => {
|
|
5456
5456
|
E.value = "";
|
|
5457
5457
|
};
|
|
5458
5458
|
return oe(
|
|
5459
5459
|
() => u.value,
|
|
5460
5460
|
() => {
|
|
5461
|
-
Z() > (c.value[
|
|
5461
|
+
Z() > (c.value[k.value] || 0) && qe(!0);
|
|
5462
5462
|
},
|
|
5463
5463
|
{ deep: !0 }
|
|
5464
5464
|
), mn(
|
|
5465
|
-
() => d.value[
|
|
5465
|
+
() => d.value[k.value],
|
|
5466
5466
|
() => {
|
|
5467
|
-
const K = d.value[
|
|
5467
|
+
const K = d.value[k.value];
|
|
5468
5468
|
_.value && !K ? (qe(), _.value = !1) : K && (_.value = !0);
|
|
5469
5469
|
},
|
|
5470
5470
|
{ deep: !0 }
|
|
@@ -5482,18 +5482,18 @@ const Gl = (e) => {
|
|
|
5482
5482
|
de.push(...Ne);
|
|
5483
5483
|
}
|
|
5484
5484
|
else
|
|
5485
|
-
de = kt(
|
|
5486
|
-
|
|
5485
|
+
de = kt(k.value, ge);
|
|
5486
|
+
M.value = de;
|
|
5487
5487
|
return;
|
|
5488
5488
|
}
|
|
5489
5489
|
if (V.value === "agSetColumnFilter") {
|
|
5490
5490
|
const K = i.value;
|
|
5491
|
-
|
|
5491
|
+
M.value = K?.[k.value]?.values || [];
|
|
5492
5492
|
} else if (V.value === "agMultiColumnFilter") {
|
|
5493
|
-
const J = i.value?.[
|
|
5493
|
+
const J = i.value?.[k.value]?.filterModels?.find(
|
|
5494
5494
|
(de) => de && de.filterType === "set"
|
|
5495
5495
|
);
|
|
5496
|
-
|
|
5496
|
+
M.value = J?.values || [];
|
|
5497
5497
|
} else
|
|
5498
5498
|
console.error(`Staged filter model update for filter type ${V.value} is not yet supported.`);
|
|
5499
5499
|
}
|
|
@@ -5512,19 +5512,19 @@ const Gl = (e) => {
|
|
|
5512
5512
|
ye.push(...ve);
|
|
5513
5513
|
}
|
|
5514
5514
|
else
|
|
5515
|
-
ye = kt(
|
|
5516
|
-
const We =
|
|
5515
|
+
ye = kt(k.value, Ne);
|
|
5516
|
+
const We = M.value.some((we) => we !== null && !ye.includes(we));
|
|
5517
5517
|
Se(We);
|
|
5518
5518
|
return;
|
|
5519
5519
|
}
|
|
5520
|
-
const K = Cl(t.value, r.value), J =
|
|
5520
|
+
const K = Cl(t.value, r.value), J = M.value.some((de) => !K.includes(de));
|
|
5521
5521
|
Se(J);
|
|
5522
5522
|
},
|
|
5523
5523
|
{ deep: !0 }
|
|
5524
5524
|
), oe(
|
|
5525
5525
|
() => s.value,
|
|
5526
5526
|
() => {
|
|
5527
|
-
|
|
5527
|
+
M.value = [];
|
|
5528
5528
|
}
|
|
5529
5529
|
), oe(
|
|
5530
5530
|
() => x.value,
|
|
@@ -5534,28 +5534,28 @@ const Gl = (e) => {
|
|
|
5534
5534
|
}, 2e3) : await qe(!0), Se();
|
|
5535
5535
|
}
|
|
5536
5536
|
), oe(
|
|
5537
|
-
() =>
|
|
5537
|
+
() => M.value,
|
|
5538
5538
|
(K) => {
|
|
5539
|
-
S(
|
|
5539
|
+
S(k.value, K);
|
|
5540
5540
|
}
|
|
5541
5541
|
), mn(
|
|
5542
5542
|
() => E.value,
|
|
5543
5543
|
async (K) => {
|
|
5544
|
-
g(
|
|
5544
|
+
g(k.value, K), await qe(!0, !0);
|
|
5545
5545
|
},
|
|
5546
5546
|
{ debounce: 300 }
|
|
5547
5547
|
), lt(() => {
|
|
5548
5548
|
Se();
|
|
5549
5549
|
}), {
|
|
5550
5550
|
// State
|
|
5551
|
-
selectedValues:
|
|
5551
|
+
selectedValues: M,
|
|
5552
5552
|
filterValues: R,
|
|
5553
5553
|
isLoading: _,
|
|
5554
5554
|
filterSearchText: E,
|
|
5555
5555
|
rowsLoading: w,
|
|
5556
5556
|
gridApi: o,
|
|
5557
5557
|
// Computed
|
|
5558
|
-
filterField:
|
|
5558
|
+
filterField: k,
|
|
5559
5559
|
filterType: V,
|
|
5560
5560
|
filterDisplayName: G,
|
|
5561
5561
|
isInFilterPanel: Y,
|
|
@@ -5640,11 +5640,11 @@ const Gl = (e) => {
|
|
|
5640
5640
|
filterOptionsSortTooltip: x,
|
|
5641
5641
|
// Methods
|
|
5642
5642
|
filterValueContext: D,
|
|
5643
|
-
formatDisplayValue:
|
|
5643
|
+
formatDisplayValue: M,
|
|
5644
5644
|
getLatestFilterValues: R,
|
|
5645
5645
|
addSelectedValue: _,
|
|
5646
5646
|
removeSelectedValue: E,
|
|
5647
|
-
handleDropdownClosed:
|
|
5647
|
+
handleDropdownClosed: k,
|
|
5648
5648
|
getColDisplayNameForField: V
|
|
5649
5649
|
} = l1({
|
|
5650
5650
|
filterColDef: jl(n, "filterColDef"),
|
|
@@ -5673,7 +5673,7 @@ const Gl = (e) => {
|
|
|
5673
5673
|
}), H = (q) => {
|
|
5674
5674
|
E(q), Y(q, u.value) && ae() && re(q);
|
|
5675
5675
|
}, ne = () => {
|
|
5676
|
-
|
|
5676
|
+
k(), l("filter-closed");
|
|
5677
5677
|
};
|
|
5678
5678
|
return (q, W) => (f(), F(fe, null, [
|
|
5679
5679
|
P("div", null, [
|
|
@@ -5683,7 +5683,7 @@ const Gl = (e) => {
|
|
|
5683
5683
|
style: { "max-width": "100%", "line-height": "1rem" }
|
|
5684
5684
|
}, [
|
|
5685
5685
|
Q(vl, {
|
|
5686
|
-
label: O(
|
|
5686
|
+
label: O(M)(X) || "",
|
|
5687
5687
|
showClear: !O(Y)(X, O(u)) || O(ae)(),
|
|
5688
5688
|
onHandleClose: (Te) => H(X)
|
|
5689
5689
|
}, null, 8, ["label", "showClear", "onHandleClose"])
|
|
@@ -5828,7 +5828,7 @@ const Gl = (e) => {
|
|
|
5828
5828
|
}, [
|
|
5829
5829
|
Q(O(ru), {
|
|
5830
5830
|
disabled: O(a),
|
|
5831
|
-
label: O(
|
|
5831
|
+
label: O(M)(X) || "",
|
|
5832
5832
|
onHandleClick: (Te) => O(_)(X, O(D)(O(u), X)?.colField)
|
|
5833
5833
|
}, null, 8, ["disabled", "label", "onHandleClick"])
|
|
5834
5834
|
], 2))), 128))
|
|
@@ -5859,31 +5859,31 @@ const Gl = (e) => {
|
|
|
5859
5859
|
},
|
|
5860
5860
|
emits: ["handle-settings-icon"],
|
|
5861
5861
|
setup(e) {
|
|
5862
|
-
const t = be(Gt, $(null)), n = be(So, $([])), l = be(Co, $(null)), o = be(ol, $(!1)), a = e, { filterModelCleared: r, stagedFilterModel: i, filterModel: s } = il(), u = $(!1), c = $(!1), d = $(""), p = h(() => n.value.flatMap((
|
|
5862
|
+
const t = be(Gt, $(null)), n = be(So, $([])), l = be(Co, $(null)), o = be(ol, $(!1)), a = e, { filterModelCleared: r, stagedFilterModel: i, filterModel: s } = il(), u = $(!1), c = $(!1), d = $(""), p = h(() => n.value.flatMap((k) => Me(k)?.aggregateFields || [])), y = h(() => n.value.filter((V) => zo(V) && !p.value.includes(V.field || "")).sort((V, G) => {
|
|
5863
5863
|
const Y = Sn(V), re = Sn(G);
|
|
5864
5864
|
return Y && !re ? -1 : !Y && re ? 1 : 0;
|
|
5865
5865
|
})), v = h(() => y.value), g = h(() => {
|
|
5866
|
-
const
|
|
5867
|
-
return !
|
|
5866
|
+
const k = d.value?.trim().toLowerCase() || "";
|
|
5867
|
+
return !k || k === "" ? v.value : n.value.filter((V) => {
|
|
5868
5868
|
const G = V.headerName?.toLowerCase() || V.field?.toLowerCase();
|
|
5869
|
-
return G ? G.includes(
|
|
5869
|
+
return G ? G.includes(k) : !1;
|
|
5870
5870
|
});
|
|
5871
5871
|
}), S = h(() => {
|
|
5872
5872
|
const V = [...y.value].slice(0, a.maxHorizontalFilters);
|
|
5873
5873
|
return l.value ? [...V.slice(0, a.maxHorizontalFilters - 1), l.value] : V;
|
|
5874
|
-
}), m = (
|
|
5875
|
-
if (!
|
|
5876
|
-
const G =
|
|
5874
|
+
}), m = (k, V) => {
|
|
5875
|
+
if (!k || typeof k != "object") return;
|
|
5876
|
+
const G = k;
|
|
5877
5877
|
if (G.filterType && G.filterType !== "join" && G.colId) {
|
|
5878
5878
|
V.add(G.colId);
|
|
5879
5879
|
return;
|
|
5880
5880
|
}
|
|
5881
5881
|
G.filterType === "join" && Array.isArray(G.conditions) && G.conditions.forEach((Y) => m(Y, V));
|
|
5882
5882
|
}, T = h(() => {
|
|
5883
|
-
const
|
|
5883
|
+
const k = s.value;
|
|
5884
5884
|
if (o.value && t.value) {
|
|
5885
5885
|
const G = /* @__PURE__ */ new Set();
|
|
5886
|
-
return m(
|
|
5886
|
+
return m(k, G), G.size;
|
|
5887
5887
|
}
|
|
5888
5888
|
const V = s.value || {};
|
|
5889
5889
|
return Object.keys(V).length;
|
|
@@ -5891,7 +5891,7 @@ const Gl = (e) => {
|
|
|
5891
5891
|
A.value = !0;
|
|
5892
5892
|
}, x = () => {
|
|
5893
5893
|
t.value && (A.value = !1, o.value ? i.value = t.value.getAdvancedFilterModel() : i.value = t.value.getFilterModel(), u.value = !0);
|
|
5894
|
-
}, { clearAllFocuses: D } = rl(),
|
|
5894
|
+
}, { clearAllFocuses: D } = rl(), M = () => {
|
|
5895
5895
|
t.value && (i.value = null, o.value ? t.value.setAdvancedFilterModel(null) : (t.value.setFilterModel(null), t.value.onFilterChanged()), r.value += 1, D(), c.value = !1);
|
|
5896
5896
|
}, R = () => {
|
|
5897
5897
|
u.value = !1, d.value = "";
|
|
@@ -5900,7 +5900,7 @@ const Gl = (e) => {
|
|
|
5900
5900
|
}, E = () => {
|
|
5901
5901
|
A.value && t.value && (o.value ? t.value.setAdvancedFilterModel(i.value) : (t.value.setFilterModel(i.value), t.value.onFilterChanged())), R();
|
|
5902
5902
|
};
|
|
5903
|
-
return (
|
|
5903
|
+
return (k, V) => (f(), F(fe, null, [
|
|
5904
5904
|
P("div", p1, [
|
|
5905
5905
|
(f(!0), F(fe, null, Qe(S.value, (G) => (f(), F(fe, {
|
|
5906
5906
|
key: G.field
|
|
@@ -5912,7 +5912,7 @@ const Gl = (e) => {
|
|
|
5912
5912
|
"focusable-columns": a.focusableColumns,
|
|
5913
5913
|
"focus-text": a.focusText,
|
|
5914
5914
|
filterColDef: G,
|
|
5915
|
-
onHandleSettingsIcon: V[0] || (V[0] = (Y) =>
|
|
5915
|
+
onHandleSettingsIcon: V[0] || (V[0] = (Y) => k.$emit("handle-settings-icon", Y))
|
|
5916
5916
|
}, null, 8, ["enable-focus-view", "display-preferences-icon", "focusable-columns", "focus-text", "filterColDef"])) : N("", !0)
|
|
5917
5917
|
], 64))), 128)),
|
|
5918
5918
|
P("div", v1, [
|
|
@@ -5966,7 +5966,7 @@ const Gl = (e) => {
|
|
|
5966
5966
|
P("div", S1, [
|
|
5967
5967
|
P("button", {
|
|
5968
5968
|
class: "pv-button-ghost",
|
|
5969
|
-
onClick: V[5] || (V[5] = (G) =>
|
|
5969
|
+
onClick: V[5] || (V[5] = (G) => M())
|
|
5970
5970
|
}, "Clear All"),
|
|
5971
5971
|
P("div", w1, [
|
|
5972
5972
|
Q(O($e), {
|
|
@@ -6011,7 +6011,7 @@ const Gl = (e) => {
|
|
|
6011
6011
|
"focusable-columns": a.focusableColumns,
|
|
6012
6012
|
"focus-text": a.focusText,
|
|
6013
6013
|
onFilterSelectionChanged: w,
|
|
6014
|
-
onHandleSettingsIcon: V[4] || (V[4] = (re) =>
|
|
6014
|
+
onHandleSettingsIcon: V[4] || (V[4] = (re) => k.$emit("handle-settings-icon", re))
|
|
6015
6015
|
}, null, 8, ["enable-focus-view", "filterColDef", "display-preferences-icon", "focusable-columns", "focus-text"])) : N("", !0)
|
|
6016
6016
|
])
|
|
6017
6017
|
])
|
|
@@ -6043,7 +6043,7 @@ const Gl = (e) => {
|
|
|
6043
6043
|
label: "Clear All Filters",
|
|
6044
6044
|
variant: "primary",
|
|
6045
6045
|
size: "lg",
|
|
6046
|
-
onClick:
|
|
6046
|
+
onClick: M
|
|
6047
6047
|
})
|
|
6048
6048
|
])
|
|
6049
6049
|
]),
|
|
@@ -6509,7 +6509,7 @@ const Gl = (e) => {
|
|
|
6509
6509
|
C.success({ rowData: [] }), D.value = !0;
|
|
6510
6510
|
return;
|
|
6511
6511
|
}
|
|
6512
|
-
|
|
6512
|
+
M.value = !0;
|
|
6513
6513
|
const I = C.success, z = C.fail, ue = C.request.groupKeys?.length || 0, b = C.request.rowGroupCols?.length || 0, L = ue === b;
|
|
6514
6514
|
let B = !1;
|
|
6515
6515
|
const U = ae.value;
|
|
@@ -6591,7 +6591,7 @@ const Gl = (e) => {
|
|
|
6591
6591
|
C.request.filterModel = Yd(T, ee, U);
|
|
6592
6592
|
}
|
|
6593
6593
|
C.success = (ee) => {
|
|
6594
|
-
if (
|
|
6594
|
+
if (M.value = !1, a.enableFocusView && Ve.value.length > 0 && Te.value && ee.rowData) {
|
|
6595
6595
|
const ce = Fa(ee.rowData, Te.value, Ve.value);
|
|
6596
6596
|
if (ce) {
|
|
6597
6597
|
ee.rowData = ce, I(ee);
|
|
@@ -6600,7 +6600,7 @@ const Gl = (e) => {
|
|
|
6600
6600
|
}
|
|
6601
6601
|
I(ee);
|
|
6602
6602
|
}, C.fail = () => {
|
|
6603
|
-
|
|
6603
|
+
M.value = !1, z();
|
|
6604
6604
|
}, a.serverSideRowHandler?.(C);
|
|
6605
6605
|
}
|
|
6606
6606
|
} : null, d = "filterValuesSetHandler" in a && a.filterValuesSetHandler ? async (C) => {
|
|
@@ -6689,7 +6689,7 @@ const Gl = (e) => {
|
|
|
6689
6689
|
a.initialGridState,
|
|
6690
6690
|
T,
|
|
6691
6691
|
a.enableAdvancedFilter
|
|
6692
|
-
), w = $(null), x = $([]), D = $(!1),
|
|
6692
|
+
), w = $(null), x = $([]), D = $(!1), M = $(!1), R = h(() => {
|
|
6693
6693
|
if (x.value.length > 0) {
|
|
6694
6694
|
const C = x.value[0], I = T.find((b) => b.field === C), z = he.value;
|
|
6695
6695
|
let ue = !z;
|
|
@@ -6697,10 +6697,10 @@ const Gl = (e) => {
|
|
|
6697
6697
|
return I.headerName;
|
|
6698
6698
|
}
|
|
6699
6699
|
return null;
|
|
6700
|
-
}), _ = h(() => G.filterModelEmpty.value && a.requireFiltersToShowData ? !1 : R.value === null), E = h(() => R.value ? `Select at least one value for "${R.value}" to view data.` : "Select a filter to view data."),
|
|
6700
|
+
}), _ = h(() => G.filterModelEmpty.value && a.requireFiltersToShowData ? !1 : R.value === null), E = h(() => R.value ? `Select at least one value for "${R.value}" to view data.` : "Select a filter to view data."), k = Qn(null), V = $([]), G = il(), Y = be(Kn, null), re = Y || ql(), he = G.filterModel, ae = G.tableSearchFilterModel, xe = G.filterValueMap, H = G.filterValueSelectedMetadataMap, ne = G.fetchFilterValues, q = G.filterStoreHandler, W = G.tableSearchHandler;
|
|
6701
6701
|
q.value = a.filterValuesSetHandler, W.value = a.tableSearchHandler, xe.value = a.initialFilterValueMap || {};
|
|
6702
6702
|
const X = $(null), Te = h(() => re?.computedFocusType.value || null), Ve = h(() => re?.computedFocuses.value || []), Ue = h(() => T.filter((C) => C.filter)), je = h(() => T.filter((C) => C.enableRowGroup)), Z = h(() => T.filter((C) => C.aggFunc)), Se = $(null), Ie = $({}), qe = $(1), at = $(0);
|
|
6703
|
-
Fe(El, G), Fe(Kn, re), Fe(xo, V), Fe(Gt,
|
|
6703
|
+
Fe(El, G), Fe(Kn, re), Fe(xo, V), Fe(Gt, k), Fe(pd, X), Fe(Co, w), Fe(So, Ue), Fe(al, je), Fe(_l, x), Fe(wo, Se), Fe(Nl, Ie), Fe(Fo, D), Fe(To, M), Fe(ko, qe), Fe(Mo, at);
|
|
6704
6704
|
const mt = h(() => a.enableAdvancedFilter);
|
|
6705
6705
|
Fe(ol, mt);
|
|
6706
6706
|
const ot = h(() => !a.enableFocusView && !a.rowData || a.enableFocusView && !Ve.value.length && !Te.value ? a.rowData : Fa(a.rowData, Te.value, Ve.value));
|
|
@@ -6710,37 +6710,37 @@ const Gl = (e) => {
|
|
|
6710
6710
|
s("focus-update", { filterField: Te.value, focuses: C });
|
|
6711
6711
|
}
|
|
6712
6712
|
), oe(u, (C) => {
|
|
6713
|
-
if (!
|
|
6713
|
+
if (!k.value) return;
|
|
6714
6714
|
const I = T.filter((z) => z.context?.devOnly).map((z) => z.field).filter(Boolean);
|
|
6715
|
-
I.length > 0 &&
|
|
6715
|
+
I.length > 0 && k.value.setColumnsVisible(I, C);
|
|
6716
6716
|
});
|
|
6717
6717
|
const St = (C) => {
|
|
6718
|
-
|
|
6718
|
+
k.value = C.api;
|
|
6719
6719
|
const I = a.leftPinnedColumnName ?? (x.value.length ? x.value[0] : null), z = [];
|
|
6720
6720
|
a.hideAllRowGroupedColumns && x.value.forEach((ue) => z.push(ue)), I && (Se.value = C.api.getColumn(I), z.push(I)), A && Mn(A), C.api.setColumnsVisible([...z], !1), X.value = C.api.getAllGridColumns(), qe.value = C.api.paginationGetCurrentPage() + 1, at.value = C.api.paginationGetTotalPages(), s("grid-ready", C);
|
|
6721
6721
|
}, wt = (C) => {
|
|
6722
|
-
if (
|
|
6722
|
+
if (k.value) {
|
|
6723
6723
|
const I = J();
|
|
6724
|
-
Oa(he.value, I) || (he.value = I, s("filter-changed", C));
|
|
6724
|
+
Oa(he.value, I) || (he.value = I, D.value && s("filter-changed", C));
|
|
6725
6725
|
}
|
|
6726
6726
|
}, rt = (C) => {
|
|
6727
6727
|
V.value = C.api?.getState()?.sort?.sortModel || [], D.value && s("sort-changed", C);
|
|
6728
6728
|
}, Be = (C) => C.getColId() && C.getColId().includes("ag-Grid-AutoColumn"), Je = $(!1), Ft = async (C) => {
|
|
6729
|
-
if (!
|
|
6729
|
+
if (!k.value) {
|
|
6730
6730
|
console.error("Grid API not available");
|
|
6731
6731
|
return;
|
|
6732
6732
|
}
|
|
6733
6733
|
if (!c)
|
|
6734
6734
|
return;
|
|
6735
6735
|
const I = C || { route: [], purge: !0 };
|
|
6736
|
-
|
|
6736
|
+
k.value.refreshServerSide(I);
|
|
6737
6737
|
}, ht = () => H.value, K = async () => {
|
|
6738
|
-
if (Je.value = !0, !
|
|
6738
|
+
if (Je.value = !0, !k.value)
|
|
6739
6739
|
return console.error("Grid API not available"), Je.value = !1, null;
|
|
6740
6740
|
try {
|
|
6741
|
-
const C = a.serverSideCsvHandler, I =
|
|
6741
|
+
const C = a.serverSideCsvHandler, I = k.value?.getState(), z = {
|
|
6742
6742
|
rowGroupCols: [],
|
|
6743
|
-
valueCols:
|
|
6743
|
+
valueCols: k.value?.getValueColumns().map((b) => ({
|
|
6744
6744
|
id: b.getId(),
|
|
6745
6745
|
field: b.getColDef().field,
|
|
6746
6746
|
aggFunc: typeof b.getColDef().aggFunc == "string" ? b.getColDef().aggFunc : void 0,
|
|
@@ -6758,7 +6758,7 @@ const Gl = (e) => {
|
|
|
6758
6758
|
const b = {
|
|
6759
6759
|
request: z,
|
|
6760
6760
|
parentNode: {},
|
|
6761
|
-
api:
|
|
6761
|
+
api: k.value,
|
|
6762
6762
|
context: void 0,
|
|
6763
6763
|
success: () => {
|
|
6764
6764
|
},
|
|
@@ -6769,13 +6769,13 @@ const Gl = (e) => {
|
|
|
6769
6769
|
}
|
|
6770
6770
|
const ue = a.serverSideRowHandler;
|
|
6771
6771
|
return ue ? await new Promise((b, L) => {
|
|
6772
|
-
const B =
|
|
6772
|
+
const B = k.value?.getState(), U = {
|
|
6773
6773
|
request: z,
|
|
6774
6774
|
parentNode: {},
|
|
6775
|
-
api:
|
|
6775
|
+
api: k.value,
|
|
6776
6776
|
context: void 0,
|
|
6777
6777
|
success: (me) => {
|
|
6778
|
-
const ee =
|
|
6778
|
+
const ee = k.value?.getRowGroupColumns().map((Oe) => Oe.getColDef().field).filter((Oe) => !!Oe) || [], ce = k.value?.getAllDisplayedColumns().map((Oe) => Oe.getColDef().field).filter((Oe) => !!Oe) || [], ie = k.value?.getValueColumns().map((Oe) => Oe.getColDef().field).filter((Oe) => !!Oe) || [], Ce = Array.from(/* @__PURE__ */ new Set([...ee, ...ce, ...ie])), ke = me.rowData.map((Oe) => {
|
|
6779
6779
|
const At = {};
|
|
6780
6780
|
return Ce.forEach((De) => {
|
|
6781
6781
|
const On = Oe[De];
|
|
@@ -6789,11 +6789,11 @@ const Gl = (e) => {
|
|
|
6789
6789
|
}
|
|
6790
6790
|
};
|
|
6791
6791
|
ue(U, !0);
|
|
6792
|
-
}) : (console.warn("Client-side export does not return CSV string"), Je.value = !1,
|
|
6792
|
+
}) : (console.warn("Client-side export does not return CSV string"), Je.value = !1, k.value.exportDataAsCsv(), null);
|
|
6793
6793
|
} catch (C) {
|
|
6794
6794
|
return console.error("CSV export failed", C), Je.value = !1, null;
|
|
6795
6795
|
}
|
|
6796
|
-
}, J = () =>
|
|
6796
|
+
}, J = () => k.value ? a.enableAdvancedFilter ? k.value.getAdvancedFilterModel() : k.value.getFilterModel() : null;
|
|
6797
6797
|
t({
|
|
6798
6798
|
getCsvData: K,
|
|
6799
6799
|
refreshData: Ft,
|
|
@@ -6803,12 +6803,12 @@ const Gl = (e) => {
|
|
|
6803
6803
|
rowGroupColumnFields: x,
|
|
6804
6804
|
getPvFilterModel: J,
|
|
6805
6805
|
setPvFilterModel: (C) => {
|
|
6806
|
-
if (!
|
|
6806
|
+
if (!k.value)
|
|
6807
6807
|
return;
|
|
6808
6808
|
const I = Sl(C);
|
|
6809
6809
|
if (a.enableAdvancedFilter) {
|
|
6810
6810
|
const z = I ? qo(C) : C;
|
|
6811
|
-
|
|
6811
|
+
k.value.setAdvancedFilterModel(z);
|
|
6812
6812
|
} else {
|
|
6813
6813
|
if (!I) {
|
|
6814
6814
|
console.warn(
|
|
@@ -6816,7 +6816,7 @@ const Gl = (e) => {
|
|
|
6816
6816
|
);
|
|
6817
6817
|
return;
|
|
6818
6818
|
}
|
|
6819
|
-
|
|
6819
|
+
k.value.setFilterModel(C);
|
|
6820
6820
|
}
|
|
6821
6821
|
}
|
|
6822
6822
|
});
|
|
@@ -6871,7 +6871,7 @@ const Gl = (e) => {
|
|
|
6871
6871
|
displayCount: a.displayGroupCount,
|
|
6872
6872
|
formattedValue: I.valueFormatted,
|
|
6873
6873
|
rowNode: I.node,
|
|
6874
|
-
api:
|
|
6874
|
+
api: k.value,
|
|
6875
6875
|
focusText: a.focusText
|
|
6876
6876
|
})
|
|
6877
6877
|
}
|
|
@@ -6915,7 +6915,7 @@ const Gl = (e) => {
|
|
|
6915
6915
|
}, A && (he.value = (a.enableAdvancedFilter ? A.filter?.advancedFilterModel : A.filter?.filterModel) || null, x.value = A.rowGroup?.groupColIds || []);
|
|
6916
6916
|
});
|
|
6917
6917
|
const Mn = (C) => {
|
|
6918
|
-
const I =
|
|
6918
|
+
const I = k.value;
|
|
6919
6919
|
if (!I) return;
|
|
6920
6920
|
const z = C.filter?.filterModel || null, ue = C.rowGroup?.groupColIds || null, b = C.columnVisibility || null;
|
|
6921
6921
|
z && !Oa(z, I.getFilterModel()) && I.setFilterModel(z), a.isTableGrouped && ue && !_n(ue, x.value) && I.setRowGroupColumns(ue), b?.hiddenColIds && I.setColumnsVisible(b.hiddenColIds, !1);
|
|
@@ -7197,8 +7197,8 @@ const Gl = (e) => {
|
|
|
7197
7197
|
let x = Array.from(i.value.children).map((R) => R.id);
|
|
7198
7198
|
const D = x.findIndex((R) => R === on);
|
|
7199
7199
|
D !== -1 && (x = x.slice(0, D)), x = x.filter((R) => !R.startsWith("placeholder-"));
|
|
7200
|
-
const
|
|
7201
|
-
n.value =
|
|
7200
|
+
const M = x.map((R) => t.options.find((_) => _.id === R) || null).filter(Boolean);
|
|
7201
|
+
n.value = M.slice(0, t.activeOptionLimit || 1 / 0);
|
|
7202
7202
|
};
|
|
7203
7203
|
lt(() => {
|
|
7204
7204
|
i.value && (u = new Ba(i.value, {
|
|
@@ -7212,8 +7212,8 @@ const Gl = (e) => {
|
|
|
7212
7212
|
const D = x.related;
|
|
7213
7213
|
if (D?.id === on || D?.id?.startsWith("placeholder-"))
|
|
7214
7214
|
return !1;
|
|
7215
|
-
const
|
|
7216
|
-
return
|
|
7215
|
+
const M = t.options.find((R) => R.id === x.dragged.id);
|
|
7216
|
+
return M && g(M);
|
|
7217
7217
|
},
|
|
7218
7218
|
onEnd: () => {
|
|
7219
7219
|
c = null, d();
|
|
@@ -7261,49 +7261,49 @@ const Gl = (e) => {
|
|
|
7261
7261
|
ref: i,
|
|
7262
7262
|
role: "list"
|
|
7263
7263
|
}, [
|
|
7264
|
-
(f(!0), F(fe, null, Qe(r.value, (
|
|
7265
|
-
key:
|
|
7266
|
-
id:
|
|
7264
|
+
(f(!0), F(fe, null, Qe(r.value, (M) => (f(), F("li", {
|
|
7265
|
+
key: M.id,
|
|
7266
|
+
id: M.id,
|
|
7267
7267
|
class: "pv-stack-4"
|
|
7268
7268
|
}, [
|
|
7269
|
-
|
|
7269
|
+
M.id === on ? (f(), F("div", e4, [
|
|
7270
7270
|
P("div", {
|
|
7271
7271
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
7272
7272
|
"data-label": S.value ? `Maximum of ${t.activeOptionLimit}` : ""
|
|
7273
7273
|
}, null, 8, t4)
|
|
7274
|
-
])) :
|
|
7274
|
+
])) : M.id.includes(Ra) ? (f(), F("div", {
|
|
7275
7275
|
key: 1,
|
|
7276
7276
|
class: "placeholder-zone",
|
|
7277
7277
|
onDragover: D[0] || (D[0] = (R) => p(R)),
|
|
7278
7278
|
onDragleave: D[1] || (D[1] = (R) => y(R)),
|
|
7279
|
-
onDrop: (R) => v(R, parseInt(
|
|
7279
|
+
onDrop: (R) => v(R, parseInt(M.id.split("-")[1]) + 1)
|
|
7280
7280
|
}, [
|
|
7281
7281
|
P("div", l4, [
|
|
7282
7282
|
P("span", a4, te(t.placeholderText), 1)
|
|
7283
7283
|
])
|
|
7284
7284
|
], 40, n4)) : (f(), F("div", {
|
|
7285
7285
|
key: 2,
|
|
7286
|
-
class: se(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !g(
|
|
7287
|
-
style: He(A(
|
|
7286
|
+
class: se(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !g(M) && S.value ? "pv-menu-item-disabled" : ""]),
|
|
7287
|
+
style: He(A(M))
|
|
7288
7288
|
}, [
|
|
7289
7289
|
P("div", o4, [
|
|
7290
7290
|
Q(Le, {
|
|
7291
|
-
class: se(g(
|
|
7291
|
+
class: se(g(M) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7292
7292
|
name: "reorder"
|
|
7293
7293
|
}, null, 8, ["class"]),
|
|
7294
|
-
|
|
7294
|
+
M.icon ? (f(), j(Le, {
|
|
7295
7295
|
key: 0,
|
|
7296
|
-
class: se(g(
|
|
7297
|
-
name:
|
|
7296
|
+
class: se(g(M) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7297
|
+
name: M.icon
|
|
7298
7298
|
}, null, 8, ["class", "name"])) : N("", !0),
|
|
7299
|
-
P("span", r4, te(
|
|
7299
|
+
P("span", r4, te(M.text), 1)
|
|
7300
7300
|
]),
|
|
7301
|
-
T(
|
|
7301
|
+
T(M) ? (f(), F("div", i4)) : (f(), j(O($e), {
|
|
7302
7302
|
key: 0,
|
|
7303
|
-
"left-icon": g(
|
|
7303
|
+
"left-icon": g(M) ? "remove-circle" : "add-circle",
|
|
7304
7304
|
variant: "ghost",
|
|
7305
|
-
style: He(w(
|
|
7306
|
-
onClick: (R) => m(
|
|
7305
|
+
style: He(w(M)),
|
|
7306
|
+
onClick: (R) => m(M)
|
|
7307
7307
|
}, null, 8, ["left-icon", "style", "onClick"]))
|
|
7308
7308
|
], 6))
|
|
7309
7309
|
], 8, J1))), 128))
|
|
@@ -7482,7 +7482,7 @@ const v4 = {
|
|
|
7482
7482
|
label: ne.label,
|
|
7483
7483
|
value: ne.value
|
|
7484
7484
|
})) : H;
|
|
7485
|
-
}),
|
|
7485
|
+
}), M = h(() => u.value ? (y.value.length > 1 ? ["bar_stacked", "line", "column_stacked", "area"] : ["bar", "line", "column", "area"]).includes(u.value?.id) : void 0);
|
|
7486
7486
|
oe(c, (H) => {
|
|
7487
7487
|
if (!u.value) return;
|
|
7488
7488
|
const ne = u.value, q = ne?.id.endsWith("_stacked"), W = H.find((X) => X.id === ne.id);
|
|
@@ -7509,13 +7509,13 @@ const v4 = {
|
|
|
7509
7509
|
}))), E = h(() => w.value.map((H) => ({
|
|
7510
7510
|
id: H.value,
|
|
7511
7511
|
text: H.label
|
|
7512
|
-
}))),
|
|
7512
|
+
}))), k = h(() => v.value.map((H) => ({
|
|
7513
7513
|
id: H.field || "",
|
|
7514
7514
|
text: H.headerName || H.field || "",
|
|
7515
7515
|
icon: Gl(H.context?.dataType || null) || "circle-chevron-down"
|
|
7516
7516
|
}))), V = $([]), G = (H) => {
|
|
7517
7517
|
const ne = V.value.map((q) => q.id);
|
|
7518
|
-
(H.length !== ne.length || !H.every((q) => ne.includes(q))) && (V.value = H.map((q) =>
|
|
7518
|
+
(H.length !== ne.length || !H.every((q) => ne.includes(q))) && (V.value = H.map((q) => k.value.find((W) => W.id === q)).filter(Boolean));
|
|
7519
7519
|
};
|
|
7520
7520
|
oe(
|
|
7521
7521
|
y,
|
|
@@ -7523,7 +7523,7 @@ const v4 = {
|
|
|
7523
7523
|
G(H);
|
|
7524
7524
|
},
|
|
7525
7525
|
{ immediate: !0 }
|
|
7526
|
-
), oe(
|
|
7526
|
+
), oe(k, () => {
|
|
7527
7527
|
G(y.value);
|
|
7528
7528
|
}), oe(
|
|
7529
7529
|
V,
|
|
@@ -7565,12 +7565,12 @@ const v4 = {
|
|
|
7565
7565
|
label: "X Axis",
|
|
7566
7566
|
icon: "align-end-horizontal",
|
|
7567
7567
|
allowDeselect: !1,
|
|
7568
|
-
availableOptions:
|
|
7568
|
+
availableOptions: k.value,
|
|
7569
7569
|
...X ? {
|
|
7570
7570
|
activeOptions: V,
|
|
7571
7571
|
activeOptionLimit: t.rowGroupLimit
|
|
7572
7572
|
} : {
|
|
7573
|
-
currentOption:
|
|
7573
|
+
currentOption: k.value.find((Z) => Z.id === y.value[0]),
|
|
7574
7574
|
updateSelectedOption: (Z) => {
|
|
7575
7575
|
y.value = Z ? [Z] : [];
|
|
7576
7576
|
}
|
|
@@ -7582,7 +7582,7 @@ const v4 = {
|
|
|
7582
7582
|
allowDeselect: !0,
|
|
7583
7583
|
availableOptions: p.value,
|
|
7584
7584
|
currentOption: p.value.find((Z) => Z.id === d.value?.id),
|
|
7585
|
-
disabled: !
|
|
7585
|
+
disabled: !M.value,
|
|
7586
7586
|
disabledReason: "Sorting is not available for this chart type",
|
|
7587
7587
|
updateSelectedOption: (Z) => {
|
|
7588
7588
|
const Se = p.value.find((Ie) => Ie.id === Z);
|
|
@@ -7606,7 +7606,7 @@ const v4 = {
|
|
|
7606
7606
|
};
|
|
7607
7607
|
_.value.length > 1 && H.push(ne), E.value.length > 0 && !W.secondaryYAxis?.hidden && H.push(q);
|
|
7608
7608
|
const je = X ? 2 : 1;
|
|
7609
|
-
return
|
|
7609
|
+
return k.value.length >= je && H.push(Te), c.value.length > 1 && H.push(Ue), p.value.length > 0 && H.push(Ve), H.filter((Z) => t.chartConfigOptions ? t.chartConfigOptions.includes(Z.value) : !0);
|
|
7610
7610
|
});
|
|
7611
7611
|
oe(s, (H) => {
|
|
7612
7612
|
H && (a.value = H);
|
|
@@ -7960,10 +7960,10 @@ const v4 = {
|
|
|
7960
7960
|
focusRequired: l.focusRequired
|
|
7961
7961
|
});
|
|
7962
7962
|
Fe(Kn, x);
|
|
7963
|
-
const { setFilterSelectedValues: D } = w,
|
|
7963
|
+
const { setFilterSelectedValues: D } = w, M = $(!1), R = $(l.enableGroupingToggle ? l.isTableGrouped : !0), _ = h(() => Pt.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && w.filterModelEmpty.value)), E = h(() => x?.computedFocusType.value || null), k = h(() => x?.computedFocuses.value || []), V = (b) => {
|
|
7964
7964
|
a.value = b.api, R.value || a.value?.setRowGroupColumns([]), ye(b.api), o("grid-ready", b);
|
|
7965
7965
|
}, G = (b) => {
|
|
7966
|
-
|
|
7966
|
+
M.value = !0, o("first-data-rendered", b);
|
|
7967
7967
|
}, Y = (b) => {
|
|
7968
7968
|
const L = v.value, B = b.api.getRowGroupColumns().map((U) => U.getColId());
|
|
7969
7969
|
if (R.value && JSON.stringify(L) !== JSON.stringify(B)) {
|
|
@@ -7977,7 +7977,7 @@ const v4 = {
|
|
|
7977
7977
|
}
|
|
7978
7978
|
o("column-row-group-changed", b);
|
|
7979
7979
|
}, re = async (b) => {
|
|
7980
|
-
ye(b.api),
|
|
7980
|
+
ye(b.api), o("filter-changed", b);
|
|
7981
7981
|
};
|
|
7982
7982
|
oe(
|
|
7983
7983
|
() => v.value,
|
|
@@ -8305,7 +8305,7 @@ const v4 = {
|
|
|
8305
8305
|
if (l.serverSideChartHandler) {
|
|
8306
8306
|
let ee = r?.value?.getPvFilterModel() || {};
|
|
8307
8307
|
const ce = a.value?.getColumnDefs() || [];
|
|
8308
|
-
if (!
|
|
8308
|
+
if (!M.value && l.initialGridState) {
|
|
8309
8309
|
const De = xl(l.initialGridState, ce, l.enableAdvancedFilter);
|
|
8310
8310
|
ee = (l.enableAdvancedFilter ? De?.filter?.advancedFilterModel : De?.filter?.filterModel) || {};
|
|
8311
8311
|
}
|
|
@@ -8391,8 +8391,8 @@ const v4 = {
|
|
|
8391
8391
|
{ [g.value]: "" },
|
|
8392
8392
|
b[0],
|
|
8393
8393
|
{ [g.value]: " " }
|
|
8394
|
-
]), l.enableFocusView && b &&
|
|
8395
|
-
const B = b?.filter((me) =>
|
|
8394
|
+
]), l.enableFocusView && b && k.value.length > 0 && E.value) {
|
|
8395
|
+
const B = b?.filter((me) => k.value.includes(me[g.value])), U = b?.filter((me) => !k.value.includes(me[g.value]));
|
|
8396
8396
|
b = [...B || [], { [g.value]: pl }, ...U || []];
|
|
8397
8397
|
}
|
|
8398
8398
|
return b;
|
|
@@ -8405,7 +8405,7 @@ const v4 = {
|
|
|
8405
8405
|
}), zt = h(() => Ie.value?.fieldValues?.length || 0), nn = h(() => {
|
|
8406
8406
|
const me = 0.25 * Math.exp(-0.12 * Tt.value);
|
|
8407
8407
|
return Math.min(Math.max(me, 0.05), 0.75);
|
|
8408
|
-
}), Mn = h(() => zt.value > 5 ? 0.5 : 1), sl = h(() => zt.value > 5 ? 0.25 : 0.1), ul = h(() => !ve.value || ve.value?.length === 0 ? !0 : Ye.value === -1 / 0 || Be.value === !0 && Ye.value === 0), Pt = h(() => l.enableFocusView && E.value &&
|
|
8408
|
+
}), Mn = h(() => zt.value > 5 ? 0.5 : 1), sl = h(() => zt.value > 5 ? 0.25 : 0.1), ul = h(() => !ve.value || ve.value?.length === 0 ? !0 : Ye.value === -1 / 0 || Be.value === !0 && Ye.value === 0), Pt = h(() => l.enableFocusView && E.value && k.value.length === 0 && l.percentOfFocusViewYKey && Z.value && Z.value === l.percentOfFocusViewYKey), ln = h(() => {
|
|
8409
8409
|
if (v.value.length === 0)
|
|
8410
8410
|
return "No groups selected. Select at least one group to display data.";
|
|
8411
8411
|
if (Pt.value) {
|
|
@@ -8459,7 +8459,7 @@ const v4 = {
|
|
|
8459
8459
|
let Ce = ce.value;
|
|
8460
8460
|
const ke = ae(g.value);
|
|
8461
8461
|
typeof ke == "function" && (Ce = ke(ce));
|
|
8462
|
-
const Ae = l.enableFocusView &&
|
|
8462
|
+
const Ae = l.enableFocusView && k.value.includes(ce.value) ? ` (${l.focusText})` : "";
|
|
8463
8463
|
if (typeof Ce == "string" && Ce.length + Ae.length > ie) {
|
|
8464
8464
|
const Oe = ie - Ae.length - 3;
|
|
8465
8465
|
return Ce.substring(0, Oe) + "..." + Ae;
|