@turquoisehealth/pit-viper 2.219.1-dev.0 → 2.220.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/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +1 -3
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +16 -8
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/useBenchmarkOverlays.d.ts +0 -5
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +6 -1
- package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1293 -1198
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +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
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
|
|
3
3
|
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeMount as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onUnmounted as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveComponent as M, resolveDynamicComponent as N, shallowRef as P, toDisplayString as F, toHandlers as I, toRef as L, unref as R, useAttrs as z, useId as B, useModel as V, useSlots as H, useTemplateRef as ee, vModelCheckbox as te, vModelText as ne, vShow as re, watch as U, withCtx as W, withDirectives as G, withKeys as ie, withModifiers as K } from "vue";
|
|
4
4
|
import { AgCharts as ae } from "ag-charts-vue3";
|
|
5
|
-
import { LicenseManager as
|
|
6
|
-
import { onClickOutside as
|
|
7
|
-
import { useSortable as
|
|
8
|
-
import { AgGridVue as
|
|
9
|
-
import { CellStyleModule as
|
|
5
|
+
import { LicenseManager as oe } from "ag-charts-enterprise";
|
|
6
|
+
import { onClickOutside as se, onKeyStroke as ce, toRef as q, useDebounceFn as le, useElementBounding as ue, useElementHover as J, useElementSize as de, useToggle as fe, watchDebounced as pe } from "@vueuse/core";
|
|
7
|
+
import { useSortable as Y } from "@vueuse/integrations/useSortable.mjs";
|
|
8
|
+
import { AgGridVue as me } from "ag-grid-vue3";
|
|
9
|
+
import { CellStyleModule as he, CheckboxEditorModule as ge, ClientSideRowModelModule as _e, ColumnApiModule as ve, ColumnAutoSizeModule as ye, CsvExportModule as be, CustomEditorModule as xe, CustomFilterModule as Se, DateEditorModule as Ce, EventApiModule as we, GridStateModule as Te, LargeTextEditorModule as Ee, ModuleRegistry as De, NumberEditorModule as Oe, PaginationModule as ke, QuickFilterModule as Ae, RowApiModule as X, RowStyleModule as je, ScrollApiModule as Me, SelectEditorModule as Z, TextEditorModule as Q, TextFilterModule as Ne, UndoRedoEditModule as Pe, themeQuartz as Fe } from "ag-grid-community";
|
|
10
10
|
import { AdvancedFilterModule as Ie, CellSelectionModule as Le, ClientSideRowModelApiModule as Re, ClipboardModule as ze, ColumnMenuModule as Be, ContextMenuModule as Ve, LicenseManager as He, MultiFilterModule as Ue, RenderApiModule as We, RichSelectModule as Ge, RowGroupingModule as Ke, RowSelectionModule as qe, ServerSideRowModelApiModule as Je, ServerSideRowModelModule as Ye, SetFilterModule as Xe, TooltipModule as Ze, ValidationModule as Qe } from "ag-grid-enterprise";
|
|
11
11
|
import $e from "papaparse";
|
|
12
12
|
import { vOnClickOutside as et } from "@vueuse/components";
|
|
@@ -250,7 +250,7 @@ var Ut = { style: { position: "relative" } }, Wt = {
|
|
|
250
250
|
emits: ["series-visibility-change"],
|
|
251
251
|
setup(e, { expose: n, emit: c }) {
|
|
252
252
|
let l = e, d = c;
|
|
253
|
-
|
|
253
|
+
oe.setLicenseKey($t);
|
|
254
254
|
let f = k(null), p = k({}), m = () => {
|
|
255
255
|
if (!f.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
256
256
|
let e = f.value.$el;
|
|
@@ -521,7 +521,7 @@ var Ut = { style: { position: "relative" } }, Wt = {
|
|
|
521
521
|
},
|
|
522
522
|
emits: ["series-visibility-change"],
|
|
523
523
|
setup(e, { expose: t, emit: n }) {
|
|
524
|
-
let i = e, c = n, l = k(null), d = k(null), f = k(null), { width: p } =
|
|
524
|
+
let i = e, c = n, l = k(null), d = k(null), f = k(null), { width: p } = de(l), { height: m } = de(d), h = r(() => p.value > 0 ? p.value : typeof window < "u" && window.innerWidth > 0 ? window.innerWidth : 800), g = r(() => h.value < 250 || i.miniChart === "always" ? !0 : i.miniChart === "auto" && h.value < 400), _ = r(() => Math.max(m.value, 200)), v = r(() => xn(i.options, {
|
|
525
525
|
dataLimit: i.dataLimit,
|
|
526
526
|
showAxes: i.showAxes
|
|
527
527
|
})), b = r(() => _n(v.value)), S = r(() => vn(v.value)), C = r(() => cn({
|
|
@@ -1728,7 +1728,7 @@ var Bi = ["popover"], Vi = "--pv-popover-v2-anchor", Hi = /* @__PURE__ */ tn(/*
|
|
|
1728
1728
|
"position-try-fallbacks: flip-block",
|
|
1729
1729
|
"position-visibility: anchors-visible",
|
|
1730
1730
|
`anchor-scope: ${Vi}`
|
|
1731
|
-
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C =
|
|
1731
|
+
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C = J(y), w = J(S), O = k(!1), A = {
|
|
1732
1732
|
"top-center": "top",
|
|
1733
1733
|
"bottom-center": "bottom",
|
|
1734
1734
|
"center-left": "left",
|
|
@@ -1792,7 +1792,7 @@ var Bi = ["popover"], Vi = "--pv-popover-v2-anchor", Hi = /* @__PURE__ */ tn(/*
|
|
|
1792
1792
|
middleware: e
|
|
1793
1793
|
});
|
|
1794
1794
|
L = n.update, z = () => n.floatingStyles.value;
|
|
1795
|
-
let i =
|
|
1795
|
+
let i = ue(b), a = le(() => {
|
|
1796
1796
|
c.value && L();
|
|
1797
1797
|
}, 5);
|
|
1798
1798
|
U([
|
|
@@ -1800,7 +1800,7 @@ var Bi = ["popover"], Vi = "--pv-popover-v2-anchor", Hi = /* @__PURE__ */ tn(/*
|
|
|
1800
1800
|
i.left,
|
|
1801
1801
|
i.width,
|
|
1802
1802
|
i.height
|
|
1803
|
-
], a),
|
|
1803
|
+
], a), se(_, () => {
|
|
1804
1804
|
t.disableClickOutsideToClose || W(!1);
|
|
1805
1805
|
}, { ignore: r(() => [
|
|
1806
1806
|
S.value,
|
|
@@ -1824,10 +1824,10 @@ var Bi = ["popover"], Vi = "--pv-popover-v2-anchor", Hi = /* @__PURE__ */ tn(/*
|
|
|
1824
1824
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1825
1825
|
}, K = r(() => t.showOnHover ? t.disableInteractive ? C.value || O.value : C.value || w.value || O.value : !1), ae = () => {
|
|
1826
1826
|
t.showOnHover || W(H ? !1 : !c.value);
|
|
1827
|
-
},
|
|
1827
|
+
}, oe = (e) => {
|
|
1828
1828
|
let t = e.newState === "open";
|
|
1829
1829
|
c.value !== t && (c.value = t);
|
|
1830
|
-
},
|
|
1830
|
+
}, ce = (e) => {
|
|
1831
1831
|
h && N.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), W(!1));
|
|
1832
1832
|
};
|
|
1833
1833
|
return U(c, async (e) => {
|
|
@@ -1858,7 +1858,7 @@ var Bi = ["popover"], Vi = "--pv-popover-v2-anchor", Hi = /* @__PURE__ */ tn(/*
|
|
|
1858
1858
|
ref_key: "root",
|
|
1859
1859
|
ref: _,
|
|
1860
1860
|
style: x(P.value),
|
|
1861
|
-
onKeydown:
|
|
1861
|
+
onKeydown: ce
|
|
1862
1862
|
}, [s("div", {
|
|
1863
1863
|
ref_key: "triggerWrapper",
|
|
1864
1864
|
ref: y,
|
|
@@ -1873,7 +1873,7 @@ var Bi = ["popover"], Vi = "--pv-popover-v2-anchor", Hi = /* @__PURE__ */ tn(/*
|
|
|
1873
1873
|
class: "pv-floating pv-floating-native",
|
|
1874
1874
|
popover: N.value,
|
|
1875
1875
|
style: x(I.value),
|
|
1876
|
-
onToggle:
|
|
1876
|
+
onToggle: oe
|
|
1877
1877
|
}, [e.disabled ? a("", !0) : j(r.$slots, "content", { key: 0 })], 44, Bi)) : m.value ? (D(), i(n, {
|
|
1878
1878
|
key: 1,
|
|
1879
1879
|
to: e.teleportLocation,
|
|
@@ -4907,7 +4907,7 @@ var Bi = ["popover"], Vi = "--pv-popover-v2-anchor", Hi = /* @__PURE__ */ tn(/*
|
|
|
4907
4907
|
"pv-input-padded-end": !0
|
|
4908
4908
|
}));
|
|
4909
4909
|
return T(() => {
|
|
4910
|
-
n.displayShortcut &&
|
|
4910
|
+
n.displayShortcut && ce(da, (e) => {
|
|
4911
4911
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
4912
4912
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
4913
4913
|
});
|
|
@@ -5822,7 +5822,7 @@ var La = {
|
|
|
5822
5822
|
emits: ["list-order-updated"],
|
|
5823
5823
|
setup(e, { expose: t, emit: n }) {
|
|
5824
5824
|
let r = k(null), i = ee("popoverList"), a = e, s = n;
|
|
5825
|
-
return a.isSortable && a.isList &&
|
|
5825
|
+
return a.isSortable && a.isList && Y(i, [], {
|
|
5826
5826
|
animation: 150,
|
|
5827
5827
|
onUpdate: () => {
|
|
5828
5828
|
s("list-order-updated", Array.from(i.value?.children || []).map((e) => e.id));
|
|
@@ -5889,9 +5889,9 @@ var La = {
|
|
|
5889
5889
|
p.value !== void 0 && (p.value = void 0);
|
|
5890
5890
|
}, M = () => {
|
|
5891
5891
|
let e = p.value;
|
|
5892
|
-
E(), e && v(() =>
|
|
5892
|
+
E(), e && v(() => we(e));
|
|
5893
5893
|
}, N = [...m($a, []), h];
|
|
5894
|
-
O($a, N),
|
|
5894
|
+
O($a, N), se(g, (e) => {
|
|
5895
5895
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(h) || E();
|
|
5896
5896
|
}, { ignore: [S] });
|
|
5897
5897
|
let F = P(f.value);
|
|
@@ -5909,9 +5909,9 @@ var La = {
|
|
|
5909
5909
|
let H = m(eo, void 0), ee = m(ro, k(!1)), te = m(to, void 0), ne = m(no, void 0), ie = r(() => l.singleSelect || l.config?.variant === "radio"), K = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), ae = (e, t, n = !1, r = !0) => {
|
|
5910
5910
|
let i = !r || p.value !== e.id;
|
|
5911
5911
|
p.value = i ? e.id : void 0, i && (C.value = t, v(() => {
|
|
5912
|
-
T(), n &&
|
|
5912
|
+
T(), n && Se(b.value ?? document.getElementById(h), 0);
|
|
5913
5913
|
}));
|
|
5914
|
-
},
|
|
5914
|
+
}, oe = (e, t = !1) => {
|
|
5915
5915
|
if (l.readOnly) return;
|
|
5916
5916
|
let n = (!t && l.childrenDisplay === "popover" ? l.options.find((t) => t.id === e.option.id) : void 0) ?? e.option;
|
|
5917
5917
|
if (l.childrenDisplay === "popover" && !t && n.children?.length) {
|
|
@@ -5953,23 +5953,23 @@ var La = {
|
|
|
5953
5953
|
...e,
|
|
5954
5954
|
option: n
|
|
5955
5955
|
} : e);
|
|
5956
|
-
},
|
|
5956
|
+
}, ce = (e) => {
|
|
5957
5957
|
let t = K.value;
|
|
5958
5958
|
if (!t) return;
|
|
5959
5959
|
let n = t.children?.find((t) => t.id === e.option.id) ?? e.option;
|
|
5960
|
-
|
|
5960
|
+
oe({
|
|
5961
5961
|
...e,
|
|
5962
5962
|
option: n
|
|
5963
|
-
}, !0), p.value = void 0, v(() =>
|
|
5964
|
-
},
|
|
5963
|
+
}, !0), p.value = void 0, v(() => we(t.id));
|
|
5964
|
+
}, q = r(() => new Set(F.value.map((e) => e.id))), le = (e) => {
|
|
5965
5965
|
for (let t of e) {
|
|
5966
|
-
if (
|
|
5967
|
-
let e = t.children?.length ?
|
|
5966
|
+
if (q.value.has(t.id)) return t;
|
|
5967
|
+
let e = t.children?.length ? le(t.children) : void 0;
|
|
5968
5968
|
if (e) return e;
|
|
5969
5969
|
}
|
|
5970
|
-
},
|
|
5970
|
+
}, ue = (e) => {
|
|
5971
5971
|
if (l.childrenDisplay !== "popover" || !e.children?.length) return e;
|
|
5972
|
-
let t =
|
|
5972
|
+
let t = le(e.children);
|
|
5973
5973
|
return {
|
|
5974
5974
|
...e,
|
|
5975
5975
|
children: void 0,
|
|
@@ -5977,54 +5977,54 @@ var La = {
|
|
|
5977
5977
|
subText: t?.text ?? e.subText,
|
|
5978
5978
|
totalChildCount: void 0
|
|
5979
5979
|
};
|
|
5980
|
-
},
|
|
5980
|
+
}, J = (e) => ({
|
|
5981
5981
|
...e,
|
|
5982
5982
|
children: void 0,
|
|
5983
5983
|
totalChildCount: void 0
|
|
5984
|
-
}),
|
|
5984
|
+
}), de = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, fe = (e) => q.value.has(e.id) || z.value && te?.value?.has(e.id) || (z.value || l.childrenDisplay === "popover") && e.children?.length && le(e.children) ? !0 : null, pe = (e) => {
|
|
5985
5985
|
let t = e.config?.variant ?? l.config?.variant;
|
|
5986
5986
|
return ie.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
5987
|
-
},
|
|
5988
|
-
let e = l.options.filter((e) => !l.readOnly && !e.disabled &&
|
|
5989
|
-
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Co),
|
|
5990
|
-
}),
|
|
5987
|
+
}, Y = (e) => pe(e) === "menuitem" ? void 0 : !!fe(e), me = (e) => e.children?.length && !l.highlightParentItems ? null : pe(e) !== "menuitemcheckbox" && fe(e) || p.value === e.id ? !0 : null, he = (e) => pe(e) !== "menuitemcheckbox" && q.value.has(e.id) ? !0 : null, ge = (e, t) => !!(!t || q.value.has(e.id) || te?.value?.has(e.id) || e.children?.length && le(e.children)), _e = k(), ve = k(), ye = r(() => {
|
|
5988
|
+
let e = l.options.filter((e) => !l.readOnly && !e.disabled && ge(e, l.isLoading)).map((e) => e.id);
|
|
5989
|
+
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Co), _e.value && e.includes(_e.value) ? _e.value : e[0];
|
|
5990
|
+
}), be = r(() => {
|
|
5991
5991
|
let e = K.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
5992
|
-
return e.some((e) => e.id ===
|
|
5993
|
-
}),
|
|
5992
|
+
return e.some((e) => e.id === ve.value) ? ve.value : e[0]?.id;
|
|
5993
|
+
}), xe = (e) => {
|
|
5994
5994
|
let t = Array.from(e?.querySelectorAll("li[role='none'] > [role^='menuitem']:not([aria-disabled='true'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
|
|
5995
5995
|
return t.length ? t : Array.from(e?.querySelectorAll("button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex='-1'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
|
|
5996
|
-
},
|
|
5997
|
-
let n =
|
|
5996
|
+
}, Se = (e, t) => {
|
|
5997
|
+
let n = xe(e);
|
|
5998
5998
|
n.length && n[(t + n.length) % n.length]?.focus();
|
|
5999
|
-
},
|
|
6000
|
-
let r =
|
|
5999
|
+
}, Ce = (e, t, n) => {
|
|
6000
|
+
let r = xe(e), i = r.indexOf(t);
|
|
6001
6001
|
!r.length || i < 0 || r[(i + n + r.length) % r.length]?.focus();
|
|
6002
|
-
},
|
|
6003
|
-
|
|
6002
|
+
}, we = (e) => {
|
|
6003
|
+
xe(g.value).find((t) => t.dataset.optionId === e)?.focus();
|
|
6004
6004
|
};
|
|
6005
6005
|
U(p, (e) => {
|
|
6006
|
-
|
|
6006
|
+
ve.value = void 0, e && v(() => {
|
|
6007
6007
|
let t = Array.from(g.value?.children ?? []).find((t) => t.dataset.optionId === e);
|
|
6008
6008
|
t && (C.value = t, T());
|
|
6009
6009
|
});
|
|
6010
6010
|
}, { immediate: !0 });
|
|
6011
|
-
let
|
|
6011
|
+
let Te = (e, t) => {
|
|
6012
6012
|
switch (e.key) {
|
|
6013
|
-
case "ArrowDown": return e.preventDefault(),
|
|
6014
|
-
case "ArrowUp": return e.preventDefault(),
|
|
6015
|
-
case "Home": return e.preventDefault(),
|
|
6016
|
-
case "End": return e.preventDefault(),
|
|
6013
|
+
case "ArrowDown": return e.preventDefault(), Ce(t, e.currentTarget, 1), !0;
|
|
6014
|
+
case "ArrowUp": return e.preventDefault(), Ce(t, e.currentTarget, -1), !0;
|
|
6015
|
+
case "Home": return e.preventDefault(), Se(t, 0), !0;
|
|
6016
|
+
case "End": return e.preventDefault(), Se(t, -1), !0;
|
|
6017
6017
|
default: return !1;
|
|
6018
6018
|
}
|
|
6019
|
-
},
|
|
6020
|
-
if (!(e.target !== e.currentTarget ||
|
|
6019
|
+
}, Ee = (e, t) => {
|
|
6020
|
+
if (!(e.target !== e.currentTarget || Te(e, g.value))) switch (e.key) {
|
|
6021
6021
|
case "ArrowRight":
|
|
6022
6022
|
if (!t.children?.length) break;
|
|
6023
6023
|
e.preventDefault(), ae(t, e.currentTarget, !0, !1);
|
|
6024
6024
|
break;
|
|
6025
6025
|
case "Enter":
|
|
6026
6026
|
case " ":
|
|
6027
|
-
e.preventDefault(), t.children?.length ? ae(t, e.currentTarget, !0, !1) :
|
|
6027
|
+
e.preventDefault(), t.children?.length ? ae(t, e.currentTarget, !0, !1) : oe({
|
|
6028
6028
|
event: e,
|
|
6029
6029
|
option: t
|
|
6030
6030
|
});
|
|
@@ -6037,8 +6037,8 @@ var La = {
|
|
|
6037
6037
|
p.value = void 0;
|
|
6038
6038
|
break;
|
|
6039
6039
|
}
|
|
6040
|
-
},
|
|
6041
|
-
if (!
|
|
6040
|
+
}, De = (e) => {
|
|
6041
|
+
if (!Te(e, g.value)) switch (e.key) {
|
|
6042
6042
|
case "Enter":
|
|
6043
6043
|
case " ":
|
|
6044
6044
|
e.preventDefault(), d("see-more", { parentId: void 0 });
|
|
@@ -6048,18 +6048,18 @@ var La = {
|
|
|
6048
6048
|
E();
|
|
6049
6049
|
break;
|
|
6050
6050
|
}
|
|
6051
|
-
},
|
|
6052
|
-
if (!(e.target !== e.currentTarget ||
|
|
6051
|
+
}, Oe = (e, t) => {
|
|
6052
|
+
if (!(e.target !== e.currentTarget || Te(e, b.value))) switch (e.key) {
|
|
6053
6053
|
case "ArrowLeft":
|
|
6054
6054
|
case "Escape": {
|
|
6055
6055
|
e.preventDefault(), e.key === "Escape" && e.stopPropagation();
|
|
6056
6056
|
let t = p.value;
|
|
6057
|
-
p.value = void 0, t && v(() =>
|
|
6057
|
+
p.value = void 0, t && v(() => we(t));
|
|
6058
6058
|
break;
|
|
6059
6059
|
}
|
|
6060
6060
|
case "Enter":
|
|
6061
6061
|
case " ":
|
|
6062
|
-
e.preventDefault(),
|
|
6062
|
+
e.preventDefault(), ce({
|
|
6063
6063
|
event: e,
|
|
6064
6064
|
option: t
|
|
6065
6065
|
});
|
|
@@ -6076,29 +6076,29 @@ var La = {
|
|
|
6076
6076
|
class: "pv-popover-list"
|
|
6077
6077
|
}, r.$attrs), [(D(!0), o(t, null, A(e.options, (t) => G((D(), o("li", {
|
|
6078
6078
|
key: t.id,
|
|
6079
|
-
"data-active":
|
|
6079
|
+
"data-active": me(t),
|
|
6080
6080
|
"data-option-id": t.id,
|
|
6081
6081
|
"data-testid": e.itemTestId,
|
|
6082
6082
|
class: y(e.itemClass),
|
|
6083
6083
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
6084
|
-
}, [u(mo, _({ ref_for: !0 },
|
|
6085
|
-
"aria-checked": e.childrenDisplay === "popover" ?
|
|
6084
|
+
}, [u(mo, _({ ref_for: !0 }, ue(t), {
|
|
6085
|
+
"aria-checked": e.childrenDisplay === "popover" ? Y(t) : void 0,
|
|
6086
6086
|
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? R(h) : void 0,
|
|
6087
6087
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
6088
6088
|
"aria-expanded": e.childrenDisplay === "popover" && t.children?.length ? p.value === t.id : void 0,
|
|
6089
6089
|
"aria-haspopup": e.childrenDisplay === "popover" && t.children?.length ? t.popoverRole ?? "menu" : void 0,
|
|
6090
|
-
"data-active":
|
|
6090
|
+
"data-active": me(t),
|
|
6091
6091
|
"data-dd-action-name": t.rumActionName,
|
|
6092
6092
|
"data-option-id": t.id,
|
|
6093
6093
|
disabled: l.readOnly || t.disabled,
|
|
6094
|
-
config:
|
|
6094
|
+
config: de(t),
|
|
6095
6095
|
itemClass: e.itemClass,
|
|
6096
6096
|
queryText: e.queryText,
|
|
6097
|
-
role: e.childrenDisplay === "popover" ?
|
|
6098
|
-
tabindex: e.childrenDisplay === "popover" ?
|
|
6099
|
-
onFocus: (e) =>
|
|
6100
|
-
onKeydown: (n) => e.childrenDisplay === "popover" ?
|
|
6101
|
-
onHandleSelected:
|
|
6097
|
+
role: e.childrenDisplay === "popover" ? pe(t) : void 0,
|
|
6098
|
+
tabindex: e.childrenDisplay === "popover" ? ye.value === t.id ? 0 : -1 : void 0,
|
|
6099
|
+
onFocus: (e) => _e.value = t.id,
|
|
6100
|
+
onKeydown: (n) => e.childrenDisplay === "popover" ? Ee(n, t) : void 0,
|
|
6101
|
+
onHandleSelected: oe,
|
|
6102
6102
|
onSeeMore: c[0] ||= (e) => d("see-more", e)
|
|
6103
6103
|
}), null, 16, [
|
|
6104
6104
|
"aria-checked",
|
|
@@ -6117,7 +6117,7 @@ var La = {
|
|
|
6117
6117
|
"tabindex",
|
|
6118
6118
|
"onFocus",
|
|
6119
6119
|
"onKeydown"
|
|
6120
|
-
])], 10, vo)), [[re,
|
|
6120
|
+
])], 10, vo)), [[re, ge(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (D(), o("li", {
|
|
6121
6121
|
key: 0,
|
|
6122
6122
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
6123
6123
|
}, [u(Ln, {
|
|
@@ -6127,10 +6127,10 @@ var La = {
|
|
|
6127
6127
|
loading: e.isSeeMoreLoading,
|
|
6128
6128
|
disabled: e.isSeeMoreLoading,
|
|
6129
6129
|
role: e.childrenDisplay === "popover" ? "menuitem" : void 0,
|
|
6130
|
-
tabindex: e.childrenDisplay === "popover" ?
|
|
6130
|
+
tabindex: e.childrenDisplay === "popover" ? ye.value === Co ? 0 : -1 : void 0,
|
|
6131
6131
|
"data-testid": "pv-menu-see-more",
|
|
6132
|
-
onFocus: c[1] ||= (e) =>
|
|
6133
|
-
onKeydown: c[2] ||= (t) => e.childrenDisplay === "popover" ?
|
|
6132
|
+
onFocus: c[1] ||= (e) => _e.value = Co,
|
|
6133
|
+
onKeydown: c[2] ||= (t) => e.childrenDisplay === "popover" ? De(t) : void 0,
|
|
6134
6134
|
onClick: c[3] ||= (e) => d("see-more", { parentId: void 0 })
|
|
6135
6135
|
}, null, 8, [
|
|
6136
6136
|
"loading",
|
|
@@ -6167,25 +6167,25 @@ var La = {
|
|
|
6167
6167
|
role: "menu"
|
|
6168
6168
|
}, [(D(!0), o(t, null, A(K.value.children, (t) => (D(), o("li", {
|
|
6169
6169
|
key: t.id,
|
|
6170
|
-
"data-active":
|
|
6170
|
+
"data-active": he(t),
|
|
6171
6171
|
"data-option-id": t.id,
|
|
6172
6172
|
class: y(e.itemClass),
|
|
6173
6173
|
role: "none"
|
|
6174
|
-
}, [u(mo, _({ ref_for: !0 },
|
|
6175
|
-
"aria-checked":
|
|
6174
|
+
}, [u(mo, _({ ref_for: !0 }, J(t), {
|
|
6175
|
+
"aria-checked": Y(t),
|
|
6176
6176
|
"aria-disabled": l.readOnly || t.disabled ? "true" : void 0,
|
|
6177
|
-
"data-active":
|
|
6177
|
+
"data-active": he(t),
|
|
6178
6178
|
"data-dd-action-name": t.rumActionName,
|
|
6179
6179
|
"data-option-id": t.id,
|
|
6180
6180
|
disabled: l.readOnly || t.disabled,
|
|
6181
|
-
config:
|
|
6181
|
+
config: de(t),
|
|
6182
6182
|
itemClass: e.itemClass,
|
|
6183
6183
|
queryText: e.queryText,
|
|
6184
|
-
role:
|
|
6185
|
-
tabindex:
|
|
6186
|
-
onFocus: (e) =>
|
|
6187
|
-
onKeydown: (e) =>
|
|
6188
|
-
onHandleSelected:
|
|
6184
|
+
role: pe(t),
|
|
6185
|
+
tabindex: be.value === t.id ? 0 : -1,
|
|
6186
|
+
onFocus: (e) => ve.value = t.id,
|
|
6187
|
+
onKeydown: (e) => Oe(e, t),
|
|
6188
|
+
onHandleSelected: ce,
|
|
6189
6189
|
onSeeMore: c[4] ||= (e) => d("see-more", e)
|
|
6190
6190
|
}), null, 16, [
|
|
6191
6191
|
"aria-checked",
|
|
@@ -6266,7 +6266,7 @@ var La = {
|
|
|
6266
6266
|
action: n.optionsAction,
|
|
6267
6267
|
variant: n.optionsVariant,
|
|
6268
6268
|
counterBadgeVariant: n.counterBadgeVariant
|
|
6269
|
-
})), d = t, [f] =
|
|
6269
|
+
})), d = t, [f] = fe(n.defaultOpen), p = V(e, "modelValue"), m = V(e, "searchInput");
|
|
6270
6270
|
U(f, (e) => {
|
|
6271
6271
|
d(e ? "dropdown-open" : "dropdown-closed");
|
|
6272
6272
|
});
|
|
@@ -6302,7 +6302,7 @@ var La = {
|
|
|
6302
6302
|
}, E = () => {
|
|
6303
6303
|
f.value = !1, m.value = "";
|
|
6304
6304
|
};
|
|
6305
|
-
return
|
|
6305
|
+
return ce("Escape", () => {
|
|
6306
6306
|
f.value && E();
|
|
6307
6307
|
}), (t, n) => (D(), i(Hi, _({
|
|
6308
6308
|
modelValue: R(f),
|
|
@@ -7208,7 +7208,7 @@ var La = {
|
|
|
7208
7208
|
dataRows: v.value,
|
|
7209
7209
|
mapColumn: N.value,
|
|
7210
7210
|
seriesColumn: E.value
|
|
7211
|
-
})), K = r(() => Vs(ie.value, E.value?.field)), ae = r(() => Hs(E.value)),
|
|
7211
|
+
})), K = r(() => Vs(ie.value, E.value?.field)), ae = r(() => Hs(E.value)), oe = r(() => Us({
|
|
7212
7212
|
aggregatedCategoryChartData: G.value,
|
|
7213
7213
|
categoryColumn: T.value,
|
|
7214
7214
|
dataLimit: n.dataLimit,
|
|
@@ -7229,25 +7229,25 @@ var La = {
|
|
|
7229
7229
|
useDisplayDataRows: n.chartData !== void 0,
|
|
7230
7230
|
xKey: n.xKey,
|
|
7231
7231
|
yKey: n.yKey
|
|
7232
|
-
})),
|
|
7232
|
+
})), se = r(() => _n(oe.value)), ce = r(() => vn(oe.value)), q = r(() => cn({
|
|
7233
7233
|
baseMinHeight: n.minHeight,
|
|
7234
|
-
dataCount:
|
|
7234
|
+
dataCount: se.value,
|
|
7235
7235
|
enableChartScrolling: n.enableChartScrolling,
|
|
7236
|
-
isHorizontalScrollingChart:
|
|
7237
|
-
})),
|
|
7236
|
+
isHorizontalScrollingChart: ce.value
|
|
7237
|
+
})), le = r(() => {
|
|
7238
7238
|
let e = ln({
|
|
7239
7239
|
enableChartScrolling: n.enableChartScrolling,
|
|
7240
|
-
isHorizontalScrollingChart:
|
|
7240
|
+
isHorizontalScrollingChart: ce.value
|
|
7241
7241
|
});
|
|
7242
|
-
if (e) return
|
|
7242
|
+
if (e) return ce.value ? {
|
|
7243
7243
|
...e,
|
|
7244
7244
|
maxHeight: `${n.minHeight}px`
|
|
7245
7245
|
} : e;
|
|
7246
|
-
}),
|
|
7247
|
-
chartMinHeight:
|
|
7248
|
-
dataCount:
|
|
7246
|
+
}), ue = r(() => un({
|
|
7247
|
+
chartMinHeight: q.value,
|
|
7248
|
+
dataCount: se.value,
|
|
7249
7249
|
enableChartScrolling: n.enableChartScrolling,
|
|
7250
|
-
isHorizontalScrollingChart:
|
|
7250
|
+
isHorizontalScrollingChart: ce.value,
|
|
7251
7251
|
minContentWidth: 320
|
|
7252
7252
|
}));
|
|
7253
7253
|
return (n, r) => (D(), i(Tn, {
|
|
@@ -7296,14 +7296,14 @@ var La = {
|
|
|
7296
7296
|
])], 4)) : (D(), o("div", {
|
|
7297
7297
|
key: 2,
|
|
7298
7298
|
class: y(["pv-data-widget__chart-scroll", { "pv-data-widget__chart-scroll--enabled pv-scrollbar-visible": e.enableChartScrolling }]),
|
|
7299
|
-
style: x(
|
|
7299
|
+
style: x(le.value)
|
|
7300
7300
|
}, [s("div", {
|
|
7301
7301
|
class: "pv-data-widget__chart-content",
|
|
7302
|
-
style: x(
|
|
7302
|
+
style: x(ue.value)
|
|
7303
7303
|
}, [u(nn, {
|
|
7304
|
-
options:
|
|
7304
|
+
options: oe.value,
|
|
7305
7305
|
isLoading: e.chartLoading,
|
|
7306
|
-
minHeight:
|
|
7306
|
+
minHeight: q.value
|
|
7307
7307
|
}, null, 8, [
|
|
7308
7308
|
"options",
|
|
7309
7309
|
"isLoading",
|
|
@@ -7651,7 +7651,7 @@ var uc = {
|
|
|
7651
7651
|
let r = e, i = n, c = ee("sidePanel"), l = V(e, "searchInput"), d = V(e, "modelValue"), f = () => {
|
|
7652
7652
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
7653
7653
|
}, p = () => {
|
|
7654
|
-
c.value &&
|
|
7654
|
+
c.value && se(c.value, () => {
|
|
7655
7655
|
d.value && (i("click-outside"), f());
|
|
7656
7656
|
}, { ignore: [".pv-click-outside-ignore"] });
|
|
7657
7657
|
};
|
|
@@ -7659,7 +7659,7 @@ var uc = {
|
|
|
7659
7659
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && p();
|
|
7660
7660
|
}), U(() => d.value, () => {
|
|
7661
7661
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
7662
|
-
}),
|
|
7662
|
+
}), ce("Escape", () => {
|
|
7663
7663
|
c.value && d.value && f();
|
|
7664
7664
|
}), (n, i) => (D(), o("div", {
|
|
7665
7665
|
class: "pv-drawer pv-surface",
|
|
@@ -7895,7 +7895,7 @@ var bc = {
|
|
|
7895
7895
|
return Pa(c.options, t) + e;
|
|
7896
7896
|
}), T = r(() => re.value.length > 0 ? !0 : c.enableCascadeSelection && L.value?.length ? L.value.some((e) => e.state === "selected") : !1), E = (e) => {
|
|
7897
7897
|
g("see-more", e ?? {});
|
|
7898
|
-
}, k = ee("searchInputRef"), [M, N] =
|
|
7898
|
+
}, k = ee("searchInputRef"), [M, N] = fe(c.defaultOpen), I = V(e, "modelValue"), L = V(e, "selectionState"), z = V(e, "searchInput"), B = r(() => c.menuActionsVariant === "cancel-confirm"), H = (e) => {
|
|
7899
7899
|
re.value = e, B.value || (I.value = e, L.value = S());
|
|
7900
7900
|
}, te = () => {
|
|
7901
7901
|
B.value && (I.value = re.value, L.value = S());
|
|
@@ -7927,7 +7927,7 @@ var bc = {
|
|
|
7927
7927
|
}
|
|
7928
7928
|
}), ae = () => {
|
|
7929
7929
|
z.value = "", M.value = !1;
|
|
7930
|
-
},
|
|
7930
|
+
}, oe = r(() => {
|
|
7931
7931
|
let e = c.size === "lg" ? 24 : 30;
|
|
7932
7932
|
return c.overlayTrigger ? -e : void 0;
|
|
7933
7933
|
});
|
|
@@ -7947,26 +7947,26 @@ var bc = {
|
|
|
7947
7947
|
c.overlayTrigger && !c.disableSearchInput && k.value?.input?.focus(), g("dropdown-open");
|
|
7948
7948
|
})) : (ne(), g("dropdown-closed"));
|
|
7949
7949
|
});
|
|
7950
|
-
let
|
|
7950
|
+
let se = r(() => {
|
|
7951
7951
|
if (z.value === "") return c.options;
|
|
7952
7952
|
let e = z.value.toLocaleLowerCase();
|
|
7953
7953
|
return c.enableCascadeSelection ? Ia(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
7954
|
-
}),
|
|
7954
|
+
}), q = () => {
|
|
7955
7955
|
if (c.enableCascadeSelection) {
|
|
7956
7956
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
7957
7957
|
for (let r of n) ja(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
7958
7958
|
};
|
|
7959
|
-
t(
|
|
7959
|
+
t(se.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
7960
7960
|
}
|
|
7961
|
-
let e = c.enableCascadeSelection ? Ma(
|
|
7961
|
+
let e = c.enableCascadeSelection ? Ma(se.value) : se.value;
|
|
7962
7962
|
g("select-all", e.length), H(e);
|
|
7963
|
-
}, ce = () => {
|
|
7964
|
-
g("clear-all", re.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), H([]);
|
|
7965
7963
|
}, le = () => {
|
|
7964
|
+
g("clear-all", re.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), H([]);
|
|
7965
|
+
}, ue = () => {
|
|
7966
7966
|
ne(), ae();
|
|
7967
|
-
},
|
|
7967
|
+
}, J = () => {
|
|
7968
7968
|
te(), ae();
|
|
7969
|
-
},
|
|
7969
|
+
}, de = r(() => {
|
|
7970
7970
|
if (!c.groupings) return;
|
|
7971
7971
|
let e = /* @__PURE__ */ new Map();
|
|
7972
7972
|
c.groupings.forEach((t) => {
|
|
@@ -7978,23 +7978,23 @@ var bc = {
|
|
|
7978
7978
|
}
|
|
7979
7979
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
7980
7980
|
return Array.from(e.entries());
|
|
7981
|
-
}),
|
|
7981
|
+
}), pe = r(() => c.groupings && z.value === ""), Y = r(() => ({
|
|
7982
7982
|
...c,
|
|
7983
7983
|
selectedItems: I.value,
|
|
7984
7984
|
searchInput: z.value,
|
|
7985
7985
|
slotContext: c.slotContext,
|
|
7986
7986
|
isOpen: M.value,
|
|
7987
7987
|
isLoading: c.isLoading
|
|
7988
|
-
})),
|
|
7989
|
-
let e =
|
|
7988
|
+
})), me = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), he = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), ge = ee("popoverContentRef"), _e = r(() => {
|
|
7989
|
+
let e = ge.value?.getRootNode();
|
|
7990
7990
|
return e instanceof ShadowRoot ? e.host : null;
|
|
7991
|
-
}), { present:
|
|
7992
|
-
return
|
|
7991
|
+
}), { present: ve } = zi("header", { host: _e }), { present: ye } = zi("no-results", { host: _e }), { present: be } = zi("footer", { host: _e });
|
|
7992
|
+
return ce("Escape", () => {
|
|
7993
7993
|
M.value && ae();
|
|
7994
7994
|
}), (n, r) => (D(), i(Hi, _({
|
|
7995
7995
|
modelValue: R(M),
|
|
7996
7996
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
7997
|
-
}, e.popoverProperties, { offset:
|
|
7997
|
+
}, e.popoverProperties, { offset: oe.value }), {
|
|
7998
7998
|
trigger: W(() => [u(Ea, {
|
|
7999
7999
|
ref: "select-button-trigger-ref",
|
|
8000
8000
|
variant: e.variant,
|
|
@@ -8011,8 +8011,8 @@ var bc = {
|
|
|
8011
8011
|
"counter-value": w.value,
|
|
8012
8012
|
"counter-style": e.counterStyle,
|
|
8013
8013
|
"selected-items": re.value,
|
|
8014
|
-
"data-dd-action-name":
|
|
8015
|
-
onHandleClear:
|
|
8014
|
+
"data-dd-action-name": me.value,
|
|
8015
|
+
onHandleClear: le,
|
|
8016
8016
|
onHandleToggleDropdown: r[0] ||= (e) => R(N)()
|
|
8017
8017
|
}, null, 8, [
|
|
8018
8018
|
"variant",
|
|
@@ -8033,7 +8033,7 @@ var bc = {
|
|
|
8033
8033
|
])]),
|
|
8034
8034
|
content: W(() => [s("div", {
|
|
8035
8035
|
ref_key: "popoverContentRef",
|
|
8036
|
-
ref:
|
|
8036
|
+
ref: ge,
|
|
8037
8037
|
class: "pv-popover",
|
|
8038
8038
|
"data-test-id": "pv-popover",
|
|
8039
8039
|
style: x({
|
|
@@ -8044,7 +8044,7 @@ var bc = {
|
|
|
8044
8044
|
e.disableSearchInput ? a("", !0) : (D(), o("div", {
|
|
8045
8045
|
key: 0,
|
|
8046
8046
|
class: "pv-inset-square-8 pv-border-bottom",
|
|
8047
|
-
"data-dd-action-name":
|
|
8047
|
+
"data-dd-action-name": he.value
|
|
8048
8048
|
}, [u(fa, {
|
|
8049
8049
|
ref: "searchInputRef",
|
|
8050
8050
|
"model-value": z.value,
|
|
@@ -8052,8 +8052,8 @@ var bc = {
|
|
|
8052
8052
|
class: "pv-stack-4",
|
|
8053
8053
|
placeholder: e.searchPlaceholder
|
|
8054
8054
|
}, null, 8, ["model-value", "placeholder"])], 8, Sc)),
|
|
8055
|
-
n.$slots.header || R(
|
|
8056
|
-
|
|
8055
|
+
n.$slots.header || R(ve) ? (D(), o("div", Cc, [j(n.$slots, "header", b(p(Y.value)))])) : a("", !0),
|
|
8056
|
+
se.value.length > 0 ? (D(), o(t, { key: 2 }, [pe.value ? (D(!0), o(t, { key: 0 }, A(de.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
8057
8057
|
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", wc, F(t), 1)),
|
|
8058
8058
|
u(wo, {
|
|
8059
8059
|
selectedItems: K.value,
|
|
@@ -8066,7 +8066,7 @@ var bc = {
|
|
|
8066
8066
|
isLoading: e.isLoading,
|
|
8067
8067
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
8068
8068
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
8069
|
-
hasMoreOptions: s ===
|
|
8069
|
+
hasMoreOptions: s === de.value.length - 1 && C.value && !e.isLoading,
|
|
8070
8070
|
onSeeMore: E
|
|
8071
8071
|
}, null, 8, [
|
|
8072
8072
|
"selectedItems",
|
|
@@ -8079,12 +8079,12 @@ var bc = {
|
|
|
8079
8079
|
"enableCascadeSelection",
|
|
8080
8080
|
"hasMoreOptions"
|
|
8081
8081
|
]),
|
|
8082
|
-
|
|
8082
|
+
de.value && s !== de.value.length - 1 ? (D(), o("div", Tc)) : a("", !0)
|
|
8083
8083
|
]))), 128)) : (D(), i(wo, {
|
|
8084
8084
|
key: 1,
|
|
8085
8085
|
selectedItems: K.value,
|
|
8086
8086
|
"onUpdate:selectedItems": r[3] ||= (e) => K.value = e,
|
|
8087
|
-
options:
|
|
8087
|
+
options: se.value,
|
|
8088
8088
|
config: l.value,
|
|
8089
8089
|
queryText: e.highlightSearchText ? z.value : null,
|
|
8090
8090
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
@@ -8103,16 +8103,16 @@ var bc = {
|
|
|
8103
8103
|
"isSeeMoreLoading",
|
|
8104
8104
|
"hasMoreOptions"
|
|
8105
8105
|
]))], 64)) : a("", !0),
|
|
8106
|
-
e.isLoading ? (D(), o("div", Ec, [u(Dt, { variant: "dark" })])) :
|
|
8107
|
-
s("div", Dc, [R(
|
|
8106
|
+
e.isLoading ? (D(), o("div", Ec, [u(Dt, { variant: "dark" })])) : se.value.length === 0 ? (D(), o(t, { key: 4 }, [R(ye) ? j(n.$slots, "no-results", b(_({ key: 0 }, Y.value))) : (D(), i(Aa, { key: 1 }))], 64)) : a("", !0),
|
|
8107
|
+
s("div", Dc, [R(be) ? j(n.$slots, "footer", b(_({ key: 0 }, Y.value))) : a("", !0), e.menuActionsVariant ? (D(), i(xc, {
|
|
8108
8108
|
key: 1,
|
|
8109
8109
|
variant: e.menuActionsVariant,
|
|
8110
8110
|
disabled: e.isLoading,
|
|
8111
8111
|
rumFilterName: e.rumFilterName,
|
|
8112
|
-
onHandleClearAll:
|
|
8113
|
-
onHandleSelectAll:
|
|
8114
|
-
onHandleCancel:
|
|
8115
|
-
onHandleConfirm:
|
|
8112
|
+
onHandleClearAll: le,
|
|
8113
|
+
onHandleSelectAll: q,
|
|
8114
|
+
onHandleCancel: ue,
|
|
8115
|
+
onHandleConfirm: J
|
|
8116
8116
|
}, null, 8, [
|
|
8117
8117
|
"variant",
|
|
8118
8118
|
"disabled",
|
|
@@ -8669,9 +8669,9 @@ var Ac = "__pv_filter_panel_scoped_value__", jc = (e) => typeof e == "object" &&
|
|
|
8669
8669
|
let n = e, c = { renderer: vl }, l = ee("search-input"), d = V(e, "searchText"), f = V(e, "query"), p = V(e, "options"), { addQueryOption: m, containsQueryOption: h, removeQueryOption: g } = dl(), v = k(!1), b = k(!1), S = k(!1), C = r(() => f.value === null ? n.placeholder : ""), w = k(null), T = r(() => w.value !== null && w.value !== "" && !b.value), E = () => {
|
|
8670
8670
|
f.value = null, d.value = "", w.value = null, S.value = !1;
|
|
8671
8671
|
};
|
|
8672
|
-
n.enableCustomOptionsInput &&
|
|
8672
|
+
n.enableCustomOptionsInput && ce("Enter", () => {
|
|
8673
8673
|
d.value.trim() && O();
|
|
8674
|
-
}, { target: l }),
|
|
8674
|
+
}, { target: l }), ce("Backspace", () => {
|
|
8675
8675
|
if (d.value !== "") return;
|
|
8676
8676
|
let e = f.value?.queryTerms;
|
|
8677
8677
|
if (!e || e.length === 0) return;
|
|
@@ -8958,7 +8958,7 @@ var pu = /* @__PURE__ */ tn(uu, [["render", fu]]), mu = ["innerHTML"], hu = { ke
|
|
|
8958
8958
|
__name: "GroupedCellRenderer",
|
|
8959
8959
|
props: { params: {} },
|
|
8960
8960
|
setup(e) {
|
|
8961
|
-
let n = e, i = m(Il, k([])), c = m(Ll, k(null)), d = m(Rl, k({})), f =
|
|
8961
|
+
let n = e, i = m(Il, k([])), c = m(Ll, k(null)), d = m(Rl, k({})), f = q(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
8962
8962
|
let e = f.value.data;
|
|
8963
8963
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
8964
8964
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -9619,14 +9619,14 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9619
9619
|
return;
|
|
9620
9620
|
}
|
|
9621
9621
|
M.value[e] = t - 1;
|
|
9622
|
-
}, ae = /* @__PURE__ */ new Set(),
|
|
9623
|
-
let n = t ?
|
|
9622
|
+
}, ae = /* @__PURE__ */ new Set(), oe = /* @__PURE__ */ new Set(), se = (e, t = !1) => {
|
|
9623
|
+
let n = t ? oe : ae;
|
|
9624
9624
|
e.forEach((e) => n.add(e));
|
|
9625
|
-
},
|
|
9626
|
-
|
|
9627
|
-
},
|
|
9628
|
-
|
|
9629
|
-
},
|
|
9625
|
+
}, ce = () => {
|
|
9626
|
+
oe.forEach((e) => ae.add(e)), oe.clear();
|
|
9627
|
+
}, q = () => {
|
|
9628
|
+
oe.clear();
|
|
9629
|
+
}, le = (e) => {
|
|
9630
9630
|
let t = new Set(e);
|
|
9631
9631
|
for (let n of e) {
|
|
9632
9632
|
let e = A.value[n] || [];
|
|
@@ -9634,19 +9634,19 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9634
9634
|
}
|
|
9635
9635
|
for (let e of t) w.value[e] = !1;
|
|
9636
9636
|
for (let e of j.value) t.has(e) || (w.value[e] = !0);
|
|
9637
|
-
},
|
|
9637
|
+
}, ue = e.initStagedFilterSelections, J = e.clearStagedFilterSelections, de = (e) => N.value[e] || [], fe = (e, t) => {
|
|
9638
9638
|
N.value[e] = t;
|
|
9639
|
-
},
|
|
9639
|
+
}, Y = (e) => {
|
|
9640
9640
|
t.value = e;
|
|
9641
|
-
},
|
|
9641
|
+
}, me = (e) => {
|
|
9642
9642
|
(!e || t.value === e) && (t.value = null);
|
|
9643
|
-
},
|
|
9643
|
+
}, he = () => t.value?.getFilterModel() ?? n.value, ge = (e) => {
|
|
9644
9644
|
let r = t.value?.setFilterModel(e);
|
|
9645
9645
|
(!t.value || r === !1) && (n.value = e);
|
|
9646
|
-
},
|
|
9646
|
+
}, _e = (e) => {
|
|
9647
9647
|
let n = t.value?.setTableSearchFilterModel(e);
|
|
9648
9648
|
(!t.value || n === !1) && (a.value = e);
|
|
9649
|
-
},
|
|
9649
|
+
}, ve = (e) => t.value?.refreshData(e), ye = (e) => {
|
|
9650
9650
|
let t = /* @__PURE__ */ new Map();
|
|
9651
9651
|
if (!e) return t;
|
|
9652
9652
|
if (pd(e)) {
|
|
@@ -9663,17 +9663,17 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9663
9663
|
return n(e), t.forEach((e) => e.sort()), t;
|
|
9664
9664
|
}
|
|
9665
9665
|
return Object.entries(e).forEach(([e, n]) => t.set(e, [JSON.stringify(n)])), t;
|
|
9666
|
-
},
|
|
9667
|
-
let n = /* @__PURE__ */ new Set(), r =
|
|
9666
|
+
}, be = (e, t) => {
|
|
9667
|
+
let n = /* @__PURE__ */ new Set(), r = ye(e), i = ye(t), a = new Set([...r.keys(), ...i.keys()]);
|
|
9668
9668
|
for (let e of a) JSON.stringify(r.get(e) ?? []) !== JSON.stringify(i.get(e) ?? []) && n.add(e);
|
|
9669
9669
|
n.size === 0 && JSON.stringify(e) !== JSON.stringify(t) && a.forEach((e) => n.add(e));
|
|
9670
9670
|
let s = Date.now();
|
|
9671
9671
|
for (let e of n) o.value[e] = s;
|
|
9672
9672
|
return n;
|
|
9673
9673
|
};
|
|
9674
|
-
return
|
|
9675
|
-
let n =
|
|
9676
|
-
ae.forEach((e) => n.add(e)), ae.clear(), n.size > 0 &&
|
|
9674
|
+
return pe(n, (e, t) => {
|
|
9675
|
+
let n = be(e, t);
|
|
9676
|
+
ae.forEach((e) => n.add(e)), ae.clear(), n.size > 0 && le(n);
|
|
9677
9677
|
}, {
|
|
9678
9678
|
deep: !0,
|
|
9679
9679
|
debounce: 200,
|
|
@@ -9712,26 +9712,26 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9712
9712
|
refreshFiltersInBackground: E,
|
|
9713
9713
|
stageFilterChangesUntilDropdownCloses: D,
|
|
9714
9714
|
filterSearchMinLength: O,
|
|
9715
|
-
markOtherFieldsStale:
|
|
9716
|
-
noteFilterModelChange:
|
|
9717
|
-
commitStagedFilterModelChanges:
|
|
9718
|
-
clearStagedFilterModelChanges:
|
|
9715
|
+
markOtherFieldsStale: le,
|
|
9716
|
+
noteFilterModelChange: se,
|
|
9717
|
+
commitStagedFilterModelChanges: ce,
|
|
9718
|
+
clearStagedFilterModelChanges: q,
|
|
9719
9719
|
aggregateFieldMap: A,
|
|
9720
9720
|
registerAggregateField: G,
|
|
9721
9721
|
registeredFilterFields: j,
|
|
9722
9722
|
registerFilterField: ie,
|
|
9723
9723
|
unregisterFilterField: K,
|
|
9724
9724
|
stagedSelectedValuesMap: N,
|
|
9725
|
-
initStagedSelectedValues:
|
|
9726
|
-
clearStagedSelectedValues:
|
|
9727
|
-
getStagedSelectedValues:
|
|
9728
|
-
setStagedSelectedValues:
|
|
9729
|
-
registerFilterController:
|
|
9730
|
-
unregisterFilterController:
|
|
9731
|
-
getFilterModel:
|
|
9732
|
-
applyFilterModel:
|
|
9733
|
-
applyTableSearchFilterModel:
|
|
9734
|
-
refreshData:
|
|
9725
|
+
initStagedSelectedValues: ue,
|
|
9726
|
+
clearStagedSelectedValues: J,
|
|
9727
|
+
getStagedSelectedValues: de,
|
|
9728
|
+
setStagedSelectedValues: fe,
|
|
9729
|
+
registerFilterController: Y,
|
|
9730
|
+
unregisterFilterController: me,
|
|
9731
|
+
getFilterModel: he,
|
|
9732
|
+
applyFilterModel: ge,
|
|
9733
|
+
applyTableSearchFilterModel: _e,
|
|
9734
|
+
refreshData: ve,
|
|
9735
9735
|
filterValueSearchTextMap: S,
|
|
9736
9736
|
filterValuesHasMoreMap: f,
|
|
9737
9737
|
filterValuesTotalCountMap: p
|
|
@@ -9744,60 +9744,60 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9744
9744
|
return e;
|
|
9745
9745
|
}, xd = (e) => {
|
|
9746
9746
|
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c = Tl(), l = m(jl, k(null)), u = yd(), { fetchFilterValues: d, invalidateFilterRequest: f, filterModel: p, stagedFilterModel: h, filterModelCleared: g, filterValuesLoadingStatus: _, filterValueContext: y, getFilterSelectedValues: b, isServerSideFilter: x, setFilterValueSearchText: S, setFilterSelectedValues: C, getFilterValues: w, setFilterValues: D, filterStaleMap: O, refreshFiltersInBackground: A, stageFilterChangesUntilDropdownCloses: j, filterSearchMinLength: M, noteFilterModelChange: N, registerAggregateField: P, registerFilterField: F, unregisterFilterField: I, getStagedSelectedValues: L, setStagedSelectedValues: R, filterValueSearchTextMap: z, filterValuesHasMoreMap: B, filterValuesTotalCountMap: V } = u, { computedFocuses: H, removeFocus: ee, computedFocusType: te } = vu(), ne = m(Bl, k(!1)), re = m(zl, k(!1)), W = m($l, k(!1)), G = r({
|
|
9747
|
-
get: () =>
|
|
9747
|
+
get: () => Y.value ? L(J.value) : b(J.value),
|
|
9748
9748
|
set: (e) => {
|
|
9749
|
-
|
|
9749
|
+
Y.value ? R(J.value, e) : C(J.value, e);
|
|
9750
9750
|
}
|
|
9751
9751
|
}), ie = r(() => {
|
|
9752
|
-
let e = w(
|
|
9753
|
-
if (
|
|
9754
|
-
let t = new Set(e), n =
|
|
9752
|
+
let e = w(J.value);
|
|
9753
|
+
if (me.value && ge.value.length > 0) {
|
|
9754
|
+
let t = new Set(e), n = ge.value.filter((e) => t.has(e)), r = new Set(ge.value), i = e.filter((e) => !r.has(e));
|
|
9755
9755
|
return [...n, ...i];
|
|
9756
9756
|
}
|
|
9757
9757
|
return Re(e);
|
|
9758
|
-
}), K = r(() => _.value[
|
|
9759
|
-
get: () => z.value[
|
|
9760
|
-
set: (e) => S(
|
|
9761
|
-
}),
|
|
9762
|
-
let e =
|
|
9758
|
+
}), K = r(() => _.value[J.value] ?? !1), ae = r(() => A.value || $(t.value).prefetchFilterValues === !0), oe = r(() => (o?.value ?? !1) && (s?.value ?? !1) && G.value.length === 0 && Z.value.length === 0), se = r(() => o?.value ?? !1), ce = r(() => se.value && (s?.value ?? !1)), q = r({
|
|
9759
|
+
get: () => z.value[J.value] ?? "",
|
|
9760
|
+
set: (e) => S(J.value, e)
|
|
9761
|
+
}), le = r(() => $(t.value).filterSearchMinLength ?? M.value), ue = r(() => {
|
|
9762
|
+
let e = le.value ?? 0, t = q.value?.length ?? 0;
|
|
9763
9763
|
return e > 0 && t > 0 && t < e;
|
|
9764
|
-
}),
|
|
9764
|
+
}), J = r(() => t.value.field || ""), de = r(() => t.value.filter || ""), fe = r(() => t.value.headerName || ""), Y = r(() => n?.value === "vertical"), me = k(!1), he = k(!1), ge = k([]), _e = r(() => ns(t.value)), ve = r(() => rs(t.value)), ye = r(() => is(t.value)), be = r(() => $(t.value).filterOptionsSortDescription), xe = r(() => $(t.value).filterOptionsSortTooltip), Se = r(() => {
|
|
9765
9765
|
let e = $(t.value).filterSearch;
|
|
9766
9766
|
return typeof e == "boolean" ? e : $(t.value).dataType !== Xo.Boolean;
|
|
9767
|
-
}),
|
|
9767
|
+
}), Ce = r(() => $(t.value).emptyFilterResultsRenderer), we = r(() => $(t.value).filterOptionsRenderer), Te = r(() => $(t.value).filterHeaderRenderer), Ee = r(() => $(t.value).filterFooterRenderer), De = r(() => ve.value ? G.value.length >= ve.value : !1), Oe = r(() => ie.value.filter((e) => e != null && !G.value.includes(e))), ke = r(() => se.value ? void 0 : V.value[J.value]), Ae = r(() => se.value ? !1 : B.value[J.value]), X = r(() => ls(t.value)), je = () => new Set([J.value, ...ss(t.value)]), Me = (e, t) => {
|
|
9768
9768
|
let n = new Set(e), r = new Set(t);
|
|
9769
9769
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
9770
|
-
},
|
|
9771
|
-
if (
|
|
9770
|
+
}, Z = k([]), Q = k("[]"), Ne = r(() => ie.value.length === 1 && ie.value[0] === null && G.value.length === 0), Pe = (e = !1) => {
|
|
9771
|
+
if (X.value) return;
|
|
9772
9772
|
let n = [];
|
|
9773
9773
|
if (W.value && l.value) {
|
|
9774
9774
|
let e = l.value.getAdvancedFilterModel();
|
|
9775
|
-
n = od(
|
|
9775
|
+
n = od(J.value, e);
|
|
9776
9776
|
} else n = Zu(t.value, p.value);
|
|
9777
|
-
e ? G.value = n : G.value = Array.from(new Set([...b(
|
|
9777
|
+
e ? G.value = n : G.value = Array.from(new Set([...b(J.value), ...n]));
|
|
9778
9778
|
}, Fe = (e) => {
|
|
9779
9779
|
let t = (n) => {
|
|
9780
9780
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
9781
9781
|
return !1;
|
|
9782
9782
|
};
|
|
9783
|
-
return t(
|
|
9783
|
+
return t(Z.value);
|
|
9784
9784
|
}, Ie = (e, t) => {
|
|
9785
|
-
let n =
|
|
9785
|
+
let n = Z.value.find((t) => t.id === String(e));
|
|
9786
9786
|
return n?.state === "selected" ? !n.children?.some((e) => e.id === String(t) && e.state === "deselected") : Fe(t);
|
|
9787
9787
|
}, Le = (e, t) => (t == null ? Fe(e.id) : Ie(t, e.id)) ? !0 : (e.children ?? []).some((t) => Le(t, e.id)), Re = (e) => [...e].sort((e, t) => {
|
|
9788
9788
|
let n = G.value.includes(e) || Fe(e), r = G.value.includes(t) || Fe(t);
|
|
9789
9789
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
9790
9790
|
}), ze = async (e = !1, n = !1) => {
|
|
9791
9791
|
if (!l.value) return;
|
|
9792
|
-
let r = O.value[
|
|
9792
|
+
let r = O.value[J.value] ?? !1, i = _.value[J.value] !== !0, a = (w(J.value) || []).length === 0, o = e && i && (r || n || a);
|
|
9793
9793
|
if (W.value) {
|
|
9794
9794
|
if (x.value && o) {
|
|
9795
9795
|
let e = await d(t.value, {
|
|
9796
9796
|
api: l.value,
|
|
9797
9797
|
filterModel: p.value ?? void 0,
|
|
9798
|
-
useStaged:
|
|
9798
|
+
useStaged: Y.value
|
|
9799
9799
|
});
|
|
9800
|
-
D(
|
|
9800
|
+
D(J.value, e), O.value[J.value] = !1, It();
|
|
9801
9801
|
}
|
|
9802
9802
|
return;
|
|
9803
9803
|
}
|
|
@@ -9807,11 +9807,11 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9807
9807
|
s.refreshFilterValues();
|
|
9808
9808
|
return;
|
|
9809
9809
|
}
|
|
9810
|
-
D(
|
|
9810
|
+
D(J.value, s.getFilterValues()), O.value[J.value] = !1;
|
|
9811
9811
|
}
|
|
9812
9812
|
}, Be = (e) => {
|
|
9813
|
-
let t = y(
|
|
9814
|
-
return !t &&
|
|
9813
|
+
let t = y(J.value, e);
|
|
9814
|
+
return !t && X.value && e && (t = ot(e)), t;
|
|
9815
9815
|
}, Ve = (e) => e?.field ?? e?.colField, He = (e) => e?.rawValue == null ? e?.metadata?.rawValue == null ? e ? Qe(e.value).value : null : e.metadata.rawValue : e.rawValue, Ue = (e, t) => t?.rawValue == null ? t?.metadata?.rawValue == null ? e : t.metadata.rawValue : t.rawValue, We = (e, t) => {
|
|
9816
9816
|
if (!e || !t || e.label && e.rawValue == null && e.metadata?.rawValue == null) return e;
|
|
9817
9817
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
@@ -9820,8 +9820,8 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9820
9820
|
label: String(e.metadata?.[n])
|
|
9821
9821
|
} : e;
|
|
9822
9822
|
}, Ge = (e, t) => {
|
|
9823
|
-
let n =
|
|
9824
|
-
if (i &&
|
|
9823
|
+
let n = _e.value, r = t, i = Ve(t);
|
|
9824
|
+
if (i && X.value) {
|
|
9825
9825
|
let e = l.value?.getColumnDef(i);
|
|
9826
9826
|
n = e ? ns(e) ?? n : n, r = We(t, e ?? void 0);
|
|
9827
9827
|
}
|
|
@@ -9831,21 +9831,21 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9831
9831
|
}) : r?.label || e;
|
|
9832
9832
|
}, Ke = (e) => Ge(e, Be(e)), qe = (e, n) => {
|
|
9833
9833
|
if (e == null) return !1;
|
|
9834
|
-
if (
|
|
9834
|
+
if (X.value) {
|
|
9835
9835
|
let t = n ?? Be(e), r = Ve(t) ?? Qe(e).field, i = $(r ? l.value?.getColumnDef(r) : void 0).metadataDisplayFields;
|
|
9836
9836
|
return i?.length ? t == null ? !0 : !i.some((e) => t.metadata?.[e] != null) : !1;
|
|
9837
9837
|
}
|
|
9838
9838
|
if (!$(t.value).metadataDisplayFields?.length) return !1;
|
|
9839
|
-
let r = y(
|
|
9839
|
+
let r = y(J.value, e);
|
|
9840
9840
|
return r == null || r.label == null;
|
|
9841
|
-
}, Je = (e) => Ne.value || y(
|
|
9841
|
+
}, Je = (e) => Ne.value || y(J.value, e)?.isSelectable === !1 ? !0 : ye.value ? !1 : De.value && !G.value.includes(e), Ye = (e) => e ? l.value && l.value.getColumnDef(e)?.headerName || e : "", Xe = (e, n, r) => tl({
|
|
9842
9842
|
fallbackSubText: n,
|
|
9843
9843
|
getDisplayName: Ye,
|
|
9844
9844
|
matchedField: e?.matchedField,
|
|
9845
9845
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
9846
9846
|
primaryText: r,
|
|
9847
9847
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
9848
|
-
}), Ze = r(() => $c(
|
|
9848
|
+
}), Ze = r(() => $c(J.value, $(t.value).queryColIds, (e) => e === J.value && fe.value || Ye(e))), Qe = (e) => {
|
|
9849
9849
|
if (!e.startsWith("__")) return { value: e };
|
|
9850
9850
|
let t = e.slice(2).split("__");
|
|
9851
9851
|
return t.length < 2 ? { value: e } : {
|
|
@@ -9855,7 +9855,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9855
9855
|
}, $e = (e) => Kc(e, nt()), et = (e) => {
|
|
9856
9856
|
let t = Qe(e.value), n = { ...e };
|
|
9857
9857
|
return !n.field && !n.colField && t.field && (n.field = t.field), n.rawValue == null && n.metadata?.rawValue == null && t.field && (n.rawValue = t.value), e.children?.length && (n.children = e.children.map(et)), n;
|
|
9858
|
-
}, tt = r(() => [...u.filterValueMap.value[
|
|
9858
|
+
}, tt = r(() => [...u.filterValueMap.value[J.value] || [], ...u.filterValueSelectedMetadataMap.value[J.value] || []].map((e) => e && et(e))), nt = () => tt.value, rt = (e, t) => {
|
|
9859
9859
|
for (let n of e) {
|
|
9860
9860
|
if (!n) continue;
|
|
9861
9861
|
if (t(n)) return n;
|
|
@@ -9906,28 +9906,28 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9906
9906
|
let n = nt(), r = rt(n, (t) => t.value === e.id);
|
|
9907
9907
|
return r?.children?.length ? r : it(n, e.id) || (r && Ve(r) === cs(t.value) ? r : st(e.id) || r);
|
|
9908
9908
|
}, lt = (e) => {
|
|
9909
|
-
if (!
|
|
9910
|
-
let t = u.filterValueSelectedMetadataMap.value[
|
|
9909
|
+
if (!X.value) return;
|
|
9910
|
+
let t = u.filterValueSelectedMetadataMap.value[J.value] || [], n = /* @__PURE__ */ new Map();
|
|
9911
9911
|
for (let e of t) e && n.set(e.value, e);
|
|
9912
9912
|
for (let t of e) {
|
|
9913
9913
|
if (t.state !== "selected") continue;
|
|
9914
9914
|
let e = ct(t);
|
|
9915
9915
|
e && n.set(e.value, e);
|
|
9916
9916
|
}
|
|
9917
|
-
u.filterValueSelectedMetadataMap.value[
|
|
9917
|
+
u.filterValueSelectedMetadataMap.value[J.value] = [...n.values()];
|
|
9918
9918
|
}, ut = () => {
|
|
9919
9919
|
let e = /* @__PURE__ */ new Set();
|
|
9920
|
-
for (let t of
|
|
9920
|
+
for (let t of Z.value) {
|
|
9921
9921
|
if (t.state !== "selected") continue;
|
|
9922
9922
|
let n = ct(t);
|
|
9923
9923
|
n && e.add(n.value);
|
|
9924
9924
|
}
|
|
9925
9925
|
return [...e].filter((e) => !ie.value.includes(e));
|
|
9926
9926
|
}, dt = (e) => {
|
|
9927
|
-
let n = y(
|
|
9927
|
+
let n = y(J.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = be.value ? "suggestions" : null;
|
|
9928
9928
|
n?.isPreference && (i = "preferences");
|
|
9929
9929
|
let a = null, o = Ke(e) || "", s = n?.matchedValue;
|
|
9930
|
-
s ? a = Xe(n, n?.subText, o) : n?.subText ? a = n.subText : Ve(n) &&
|
|
9930
|
+
s ? a = Xe(n, n?.subText, o) : n?.subText ? a = n.subText : Ve(n) && X.value && !r && (a = Ye(Ve(n)));
|
|
9931
9931
|
let c, d, f;
|
|
9932
9932
|
if (r) {
|
|
9933
9933
|
let e = (e) => {
|
|
@@ -9952,9 +9952,9 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9952
9952
|
let r = Math.max(n?.offset ?? 0, a), o = await u.filterStoreHandler.value({
|
|
9953
9953
|
api: l.value,
|
|
9954
9954
|
colDef: t.value,
|
|
9955
|
-
field:
|
|
9955
|
+
field: J.value,
|
|
9956
9956
|
filterModel: p.value ?? void 0,
|
|
9957
|
-
query:
|
|
9957
|
+
query: q.value || void 0,
|
|
9958
9958
|
offset: r,
|
|
9959
9959
|
parentId: i,
|
|
9960
9960
|
reason: "child-load-more"
|
|
@@ -9980,11 +9980,11 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9980
9980
|
handleSeeMore: f
|
|
9981
9981
|
};
|
|
9982
9982
|
}, ft = r(() => {
|
|
9983
|
-
let e = [...
|
|
9983
|
+
let e = [...X.value ? ut() : G.value.filter((e) => e != null && e !== "" && !ie.value.includes(e)), ...ie.value];
|
|
9984
9984
|
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !qe(e)).map(dt);
|
|
9985
9985
|
}), pt = (e) => {
|
|
9986
9986
|
let t = e.children;
|
|
9987
|
-
t?.length && (t = t.filter((t) => !
|
|
9987
|
+
t?.length && (t = t.filter((t) => !ce.value || Le(t, e.id)).map((e) => pt(e)));
|
|
9988
9988
|
let n = (e.children ?? []).some((t) => Le(t, e.id));
|
|
9989
9989
|
return {
|
|
9990
9990
|
...e,
|
|
@@ -9994,12 +9994,12 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
9994
9994
|
handleSeeMore: void 0,
|
|
9995
9995
|
...n ? { defaultExpanded: !0 } : {}
|
|
9996
9996
|
};
|
|
9997
|
-
}, mt = (e) =>
|
|
9997
|
+
}, mt = (e) => X.value ? Le(e, null) : G.value.includes(e.id), ht = r(() => {
|
|
9998
9998
|
let e = ft.value;
|
|
9999
|
-
return
|
|
9999
|
+
return se.value ? e.filter((e) => !ce.value || mt(e)).map((e) => pt(e)) : e;
|
|
10000
10000
|
}), gt = r({
|
|
10001
|
-
get: () =>
|
|
10002
|
-
let t = y(
|
|
10001
|
+
get: () => X.value ? [] : G.value.map((e) => {
|
|
10002
|
+
let t = y(J.value, e), n = Ve(t), r = n ? Ye(n) : void 0;
|
|
10003
10003
|
return {
|
|
10004
10004
|
id: e,
|
|
10005
10005
|
text: Ke(e),
|
|
@@ -10008,8 +10008,8 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10008
10008
|
};
|
|
10009
10009
|
}),
|
|
10010
10010
|
set: (e) => {
|
|
10011
|
-
if (
|
|
10012
|
-
if (e.length === 0 && !
|
|
10011
|
+
if (X.value) {
|
|
10012
|
+
if (e.length === 0 && !me.value && j.value && !Y.value) {
|
|
10013
10013
|
Nt([]);
|
|
10014
10014
|
return;
|
|
10015
10015
|
}
|
|
@@ -10021,25 +10021,25 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10021
10021
|
let e = new Set(t), r = new Set(n);
|
|
10022
10022
|
for (let t of r) e.has(t) || Ct(t, "select", "click", r.size);
|
|
10023
10023
|
for (let t of e) r.has(t) || Ct(t, "deselect", "click", r.size);
|
|
10024
|
-
}), G.value = n, (e.length === 0 && !
|
|
10025
|
-
!G.value.includes(e) && te.value ===
|
|
10024
|
+
}), G.value = n, (e.length === 0 && !me.value || !j.value || Y.value) && (vt(), H.value.forEach((e) => {
|
|
10025
|
+
!G.value.includes(e) && te.value === J.value && ee(e);
|
|
10026
10026
|
})), i?.();
|
|
10027
10027
|
}
|
|
10028
10028
|
}), _t = (e) => {
|
|
10029
10029
|
let t = {};
|
|
10030
10030
|
for (let n of e) {
|
|
10031
10031
|
if (n === null) continue;
|
|
10032
|
-
let e = Ve(y(
|
|
10032
|
+
let e = Ve(y(J.value, n)) || J.value;
|
|
10033
10033
|
t[e] || (t[e] = []), t[e].push(n);
|
|
10034
10034
|
}
|
|
10035
10035
|
return t;
|
|
10036
10036
|
}, vt = async (e, n, r) => {
|
|
10037
10037
|
if (!l.value) return;
|
|
10038
10038
|
if (e !== void 0 && n !== void 0) {
|
|
10039
|
-
let r = e ||
|
|
10039
|
+
let r = e || J.value, i = new Set([J.value, r]), a = n;
|
|
10040
10040
|
if (W.value) {
|
|
10041
10041
|
let e = Ru(r, a || []);
|
|
10042
|
-
if (
|
|
10042
|
+
if (Y.value) {
|
|
10043
10043
|
let t = h.value, n = id(t, e, r);
|
|
10044
10044
|
N(i, !0), h.value = n;
|
|
10045
10045
|
return;
|
|
@@ -10050,7 +10050,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10050
10050
|
});
|
|
10051
10051
|
return;
|
|
10052
10052
|
}
|
|
10053
|
-
if (
|
|
10053
|
+
if (Y.value) {
|
|
10054
10054
|
let e = await Xu(l.value, t.value, a);
|
|
10055
10055
|
N(i, !0), h.value = {
|
|
10056
10056
|
...h.value,
|
|
@@ -10066,8 +10066,8 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10066
10066
|
}
|
|
10067
10067
|
let i = _t(G.value), o = $(t.value);
|
|
10068
10068
|
if (W.value) {
|
|
10069
|
-
let e =
|
|
10070
|
-
if (
|
|
10069
|
+
let e = Y.value ? h.value : l.value.getAdvancedFilterModel(), n = e, s = /* @__PURE__ */ new Set();
|
|
10070
|
+
if (X.value) {
|
|
10071
10071
|
let e = ss(t.value), r = [];
|
|
10072
10072
|
for (let t of e) {
|
|
10073
10073
|
let e = i[t] || [];
|
|
@@ -10090,8 +10090,8 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10090
10090
|
} : e;
|
|
10091
10091
|
}
|
|
10092
10092
|
} else {
|
|
10093
|
-
let t = G.value.length > 0 ? G.value : null, r = Ru(
|
|
10094
|
-
n = id(n, r,
|
|
10093
|
+
let t = G.value.length > 0 ? G.value : null, r = Ru(J.value, t || []);
|
|
10094
|
+
n = id(n, r, J.value);
|
|
10095
10095
|
let i = !1;
|
|
10096
10096
|
if (a?.value) {
|
|
10097
10097
|
let e = o.filterGroup?.fields ?? [];
|
|
@@ -10103,11 +10103,11 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10103
10103
|
n = id(n, r, t);
|
|
10104
10104
|
}
|
|
10105
10105
|
}
|
|
10106
|
-
let c = G.value.filter((e) => e !== null), l = od(
|
|
10106
|
+
let c = G.value.filter((e) => e !== null), l = od(J.value, e), u = new Set(l), d = new Set(c);
|
|
10107
10107
|
if (!(u.size !== d.size || c.some((e) => !u.has(e))) && !i) return;
|
|
10108
10108
|
}
|
|
10109
10109
|
if (r?.skipIfUnchanged && rd(e, n)) return;
|
|
10110
|
-
if (N(
|
|
10110
|
+
if (N(X.value ? je() : new Set([J.value, ...s]), Y.value), Y.value) h.value = n;
|
|
10111
10111
|
else {
|
|
10112
10112
|
let e = n;
|
|
10113
10113
|
v(() => {
|
|
@@ -10119,36 +10119,36 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10119
10119
|
let s = G.value.length > 0 ? G.value : null;
|
|
10120
10120
|
if (r?.skipIfUnchanged) {
|
|
10121
10121
|
let e = Zu(t.value, l.value.getFilterModel());
|
|
10122
|
-
if (
|
|
10122
|
+
if (Me(G.value, e)) return;
|
|
10123
10123
|
}
|
|
10124
|
-
if (
|
|
10124
|
+
if (Y.value) {
|
|
10125
10125
|
let e = await Xu(l.value, t.value, s);
|
|
10126
|
-
N(new Set([
|
|
10126
|
+
N(new Set([J.value]), !0), h.value = {
|
|
10127
10127
|
...h.value,
|
|
10128
|
-
[
|
|
10128
|
+
[J.value]: e
|
|
10129
10129
|
};
|
|
10130
10130
|
return;
|
|
10131
10131
|
}
|
|
10132
10132
|
let c = await Xu(l.value, t.value, s);
|
|
10133
|
-
N(new Set([
|
|
10133
|
+
N(new Set([J.value])), l.value.setColumnFilterModel(J.value, c).then(() => {
|
|
10134
10134
|
l.value && l.value.onFilterChanged();
|
|
10135
10135
|
});
|
|
10136
|
-
}, yt = r(() =>
|
|
10136
|
+
}, yt = r(() => Y.value ? "all_filters_drawer" : "horizontal"), bt = !1, xt = (e, t) => {
|
|
10137
10137
|
bt = !0;
|
|
10138
|
-
let n =
|
|
10138
|
+
let n = q.value || "";
|
|
10139
10139
|
Dl(() => {
|
|
10140
10140
|
El("filter_bulk_action", {
|
|
10141
|
-
filter_name:
|
|
10142
|
-
filter_field:
|
|
10141
|
+
filter_name: fe.value,
|
|
10142
|
+
filter_field: J.value,
|
|
10143
10143
|
action: e,
|
|
10144
10144
|
value_count: t,
|
|
10145
10145
|
location: yt.value,
|
|
10146
10146
|
search_query: n
|
|
10147
10147
|
}, c());
|
|
10148
10148
|
});
|
|
10149
|
-
}, St = (e) => !
|
|
10149
|
+
}, St = (e) => !X.value || e == null ? J.value : Ve(Be(e)) || (Qe(e).field ?? J.value), Ct = (e, t, n, r) => {
|
|
10150
10150
|
El("filter_option_selected", {
|
|
10151
|
-
filter_name:
|
|
10151
|
+
filter_name: fe.value,
|
|
10152
10152
|
filter_field: St(e),
|
|
10153
10153
|
selected_value: Ke(e),
|
|
10154
10154
|
selected_value_id: e,
|
|
@@ -10156,7 +10156,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10156
10156
|
source: n,
|
|
10157
10157
|
current_selection_count: r,
|
|
10158
10158
|
location: yt.value,
|
|
10159
|
-
search_query:
|
|
10159
|
+
search_query: q.value || ""
|
|
10160
10160
|
}, c());
|
|
10161
10161
|
}, wt = (e) => {
|
|
10162
10162
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
@@ -10178,32 +10178,32 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10178
10178
|
for (let [t, i] of n.deselectedChildren) !r.deselectedChildren.has(t) && r.selected.has(i) && Ct(t, "select", "click", e);
|
|
10179
10179
|
});
|
|
10180
10180
|
}, Et = r({
|
|
10181
|
-
get: () =>
|
|
10181
|
+
get: () => Z.value,
|
|
10182
10182
|
set: (e) => {
|
|
10183
|
-
if (
|
|
10183
|
+
if (X.value) {
|
|
10184
10184
|
let t = bt;
|
|
10185
|
-
bt = !1, t || Tt(
|
|
10185
|
+
bt = !1, t || Tt(Z.value, e);
|
|
10186
10186
|
}
|
|
10187
|
-
|
|
10187
|
+
Z.value = e;
|
|
10188
10188
|
}
|
|
10189
10189
|
}), Dt = (e, n, r = "click") => {
|
|
10190
10190
|
let a = null;
|
|
10191
|
-
if (
|
|
10192
|
-
let r = n || ss(t.value)[0] ||
|
|
10191
|
+
if (X.value && e) {
|
|
10192
|
+
let r = n || ss(t.value)[0] || J.value;
|
|
10193
10193
|
a = e.startsWith("__") ? e : at(r, e) || e;
|
|
10194
10194
|
}
|
|
10195
10195
|
let o = e != null && (G.value.includes(e) || a != null && Fe(a)), s = G.value.slice();
|
|
10196
|
-
if (e &&
|
|
10197
|
-
let t = G.value.length, n =
|
|
10196
|
+
if (e && ye.value ? G.value = [e] : e && !o && (G.value = [...G.value, e]), e != null && !o) {
|
|
10197
|
+
let t = G.value.length, n = ye.value;
|
|
10198
10198
|
Dl(() => {
|
|
10199
10199
|
if (n) for (let n of s) n !== e && Ct(n, "deselect", r, t);
|
|
10200
10200
|
Ct(e, "select", r, t);
|
|
10201
10201
|
});
|
|
10202
10202
|
}
|
|
10203
|
-
a != null && (
|
|
10203
|
+
a != null && (Z.value.find((e) => e.id === a) || (Z.value = [...Z.value, {
|
|
10204
10204
|
id: a,
|
|
10205
10205
|
state: "selected"
|
|
10206
|
-
}])), (!j.value ||
|
|
10206
|
+
}])), (!j.value || Y.value) && (X.value && e ? Nt(Z.value) : n && n !== J.value ? vt(n, [e]) : vt()), i?.();
|
|
10207
10207
|
}, Ot = (e, n, r = "click") => {
|
|
10208
10208
|
let a = G.value.includes(e);
|
|
10209
10209
|
if (G.value = G.value.filter((t) => t !== e), e != null && a) {
|
|
@@ -10212,29 +10212,29 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10212
10212
|
Ct(e, "deselect", r, t);
|
|
10213
10213
|
});
|
|
10214
10214
|
}
|
|
10215
|
-
if (
|
|
10216
|
-
let r = n || ss(t.value)[0] ||
|
|
10217
|
-
|
|
10215
|
+
if (X.value && e) {
|
|
10216
|
+
let r = n || ss(t.value)[0] || J.value, i = e.startsWith("__") ? e : at(r, e) || e;
|
|
10217
|
+
Z.value = Z.value.filter((e) => e.id !== i);
|
|
10218
10218
|
}
|
|
10219
|
-
(!j.value ||
|
|
10219
|
+
(!j.value || Y.value) && (X.value && e ? Nt(Z.value) : n && n !== J.value ? vt(n, null) : vt()), i?.();
|
|
10220
10220
|
}, kt = () => {
|
|
10221
|
-
|
|
10221
|
+
ge.value = Re(w(J.value)), me.value = !0;
|
|
10222
10222
|
}, At = () => {
|
|
10223
|
-
|
|
10223
|
+
me.value = !1, ge.value = [], q.value = "", bt = !1, !o?.value && j.value && !Y.value && (X.value ? Nt(Z.value, { skipIfUnchanged: !0 }) : vt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
10224
10224
|
}, jt = async (e) => {
|
|
10225
10225
|
if (!l.value) return;
|
|
10226
10226
|
let n = ie.value.length, r = !e.parentId;
|
|
10227
|
-
r && (
|
|
10227
|
+
r && (he.value = !0);
|
|
10228
10228
|
try {
|
|
10229
10229
|
await d(t.value, {
|
|
10230
10230
|
api: l.value,
|
|
10231
10231
|
filterModel: p.value ?? void 0,
|
|
10232
10232
|
offset: e.offset ?? n,
|
|
10233
10233
|
parentId: e.parentId,
|
|
10234
|
-
useStaged:
|
|
10234
|
+
useStaged: Y.value
|
|
10235
10235
|
});
|
|
10236
10236
|
} finally {
|
|
10237
|
-
r && (
|
|
10237
|
+
r && (he.value = !1);
|
|
10238
10238
|
}
|
|
10239
10239
|
}, Mt = (e, n) => Xc({
|
|
10240
10240
|
baseModel: n,
|
|
@@ -10242,79 +10242,79 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10242
10242
|
options: nt(),
|
|
10243
10243
|
state: e
|
|
10244
10244
|
}), Nt = (e, n) => {
|
|
10245
|
-
if (!l.value || !
|
|
10245
|
+
if (!l.value || !X.value) return !1;
|
|
10246
10246
|
let r = JSON.stringify(e);
|
|
10247
|
-
if (n?.skipIfUnchanged && r ===
|
|
10248
|
-
if (
|
|
10249
|
-
let a =
|
|
10250
|
-
if (n?.skipIfUnchanged && rd(a, o)) return
|
|
10251
|
-
if (
|
|
10247
|
+
if (n?.skipIfUnchanged && r === Q.value) return Z.value = e, !1;
|
|
10248
|
+
if (Z.value = e, lt(e), ss(t.value).length === 0) return !1;
|
|
10249
|
+
let a = Y.value ? h.value : l.value.getAdvancedFilterModel(), o = Mt(e, a);
|
|
10250
|
+
if (n?.skipIfUnchanged && rd(a, o)) return Q.value = r, !1;
|
|
10251
|
+
if (Y.value) h.value = o;
|
|
10252
10252
|
else {
|
|
10253
10253
|
let e = o;
|
|
10254
10254
|
v(() => {
|
|
10255
10255
|
l.value?.setAdvancedFilterModel(e);
|
|
10256
10256
|
});
|
|
10257
10257
|
}
|
|
10258
|
-
return
|
|
10258
|
+
return Q.value = r, N(je(), Y.value), i?.(), !0;
|
|
10259
10259
|
}, Pt = (e) => {
|
|
10260
|
-
if (!
|
|
10260
|
+
if (!X.value || !ss(t.value).length) return;
|
|
10261
10261
|
let n = Qc({
|
|
10262
10262
|
colDef: t.value,
|
|
10263
10263
|
model: e,
|
|
10264
10264
|
options: nt()
|
|
10265
10265
|
}), r = JSON.stringify(n);
|
|
10266
|
-
JSON.stringify(
|
|
10267
|
-
}, Ft = () =>
|
|
10266
|
+
JSON.stringify(Z.value) !== r && (Z.value = n), Q.value = r, lt(n);
|
|
10267
|
+
}, Ft = () => X.value ? Z.value.some((e) => {
|
|
10268
10268
|
let { field: t, value: n } = $e(e.id);
|
|
10269
10269
|
return t ? at(t, n) !== e.id : !1;
|
|
10270
10270
|
}) : !1, It = () => {
|
|
10271
|
-
!
|
|
10271
|
+
!X.value || !W.value || Ft() && Pt(p.value);
|
|
10272
10272
|
};
|
|
10273
|
-
U(
|
|
10274
|
-
|
|
10275
|
-
}, { deep: !0 }), U(() => O.value[
|
|
10276
|
-
!e ||
|
|
10273
|
+
U(Z, (e) => {
|
|
10274
|
+
X.value && (lt(e), !(j.value && !Y.value) && Nt(e));
|
|
10275
|
+
}, { deep: !0 }), U(() => O.value[J.value], (e) => {
|
|
10276
|
+
!e || me.value || oe.value || ae.value && ze(!0);
|
|
10277
10277
|
}), U(() => h.value, () => {
|
|
10278
|
-
if (
|
|
10278
|
+
if (Y.value) {
|
|
10279
10279
|
if (W.value) {
|
|
10280
10280
|
let e = [], n = h.value;
|
|
10281
|
-
if (
|
|
10281
|
+
if (X.value) {
|
|
10282
10282
|
let r = ss(t.value);
|
|
10283
10283
|
for (let t of r) {
|
|
10284
10284
|
let r = od(t, n);
|
|
10285
10285
|
e.push(...r);
|
|
10286
10286
|
}
|
|
10287
|
-
} else e = od(
|
|
10287
|
+
} else e = od(J.value, n);
|
|
10288
10288
|
G.value = e;
|
|
10289
10289
|
return;
|
|
10290
10290
|
}
|
|
10291
|
-
|
|
10291
|
+
de.value === "agSetColumnFilter" ? G.value = h.value?.[J.value]?.values || [] : de.value === "agMultiColumnFilter" ? G.value = h.value?.[J.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${de.value} is not yet supported.`);
|
|
10292
10292
|
}
|
|
10293
10293
|
}), U(() => p.value, () => {
|
|
10294
|
-
if (
|
|
10295
|
-
if (
|
|
10294
|
+
if (Y.value) return;
|
|
10295
|
+
if (X.value) {
|
|
10296
10296
|
W.value && Pt(p.value);
|
|
10297
10297
|
return;
|
|
10298
10298
|
}
|
|
10299
10299
|
if (W.value) {
|
|
10300
|
-
let e = p.value, t = od(
|
|
10300
|
+
let e = p.value, t = od(J.value, e);
|
|
10301
10301
|
Pe(G.value.some((e) => e !== null && !t.includes(e)));
|
|
10302
10302
|
return;
|
|
10303
10303
|
}
|
|
10304
10304
|
let e = Zu(t.value, p.value);
|
|
10305
10305
|
Pe(G.value.some((t) => !e.includes(t)));
|
|
10306
10306
|
}, { deep: !0 }), U(() => g.value, () => {
|
|
10307
|
-
G.value = [],
|
|
10307
|
+
G.value = [], Z.value = [], Q.value = "[]";
|
|
10308
10308
|
}), U(() => l.value, (e) => {
|
|
10309
|
-
e && x.value && !
|
|
10309
|
+
e && x.value && !me.value && (O.value[J.value] = !0);
|
|
10310
10310
|
}, { immediate: !0 }), U(() => re.value, async () => {
|
|
10311
|
-
ae.value && !
|
|
10312
|
-
|
|
10311
|
+
ae.value && !oe.value && !me.value && (Y.value ? setTimeout(async () => {
|
|
10312
|
+
me.value || await ze(!0);
|
|
10313
10313
|
}, 2e3) : await ze(!0)), Pe();
|
|
10314
|
-
}),
|
|
10315
|
-
if (
|
|
10316
|
-
if (
|
|
10317
|
-
f(
|
|
10314
|
+
}), pe(() => q.value, async () => {
|
|
10315
|
+
if (me.value) {
|
|
10316
|
+
if (ue.value) {
|
|
10317
|
+
f(J.value);
|
|
10318
10318
|
return;
|
|
10319
10319
|
}
|
|
10320
10320
|
await ze(!0, !0);
|
|
@@ -10322,20 +10322,20 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10322
10322
|
}, { debounce: 300 });
|
|
10323
10323
|
let Lt = (e) => {
|
|
10324
10324
|
let t = e.toLocaleLowerCase(), n = ht.value;
|
|
10325
|
-
return
|
|
10325
|
+
return X.value ? Ia(n, t, !0).length : n.filter((e) => e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)).length;
|
|
10326
10326
|
}, Rt = (e) => {
|
|
10327
10327
|
Dl(() => {
|
|
10328
10328
|
El("filter_search", {
|
|
10329
|
-
filter_name:
|
|
10330
|
-
filter_field:
|
|
10329
|
+
filter_name: fe.value,
|
|
10330
|
+
filter_field: J.value,
|
|
10331
10331
|
query: e,
|
|
10332
10332
|
result_count: Lt(e),
|
|
10333
10333
|
location: yt.value
|
|
10334
10334
|
}, c());
|
|
10335
10335
|
});
|
|
10336
10336
|
}, zt = null;
|
|
10337
|
-
return
|
|
10338
|
-
if (!e ||
|
|
10337
|
+
return pe(() => q.value, (e) => {
|
|
10338
|
+
if (!e || q.value !== e || ue.value) {
|
|
10339
10339
|
zt = null;
|
|
10340
10340
|
return;
|
|
10341
10341
|
}
|
|
@@ -10347,52 +10347,52 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10347
10347
|
}, { debounce: 500 }), U(() => K.value, (e) => {
|
|
10348
10348
|
if (e || zt == null) return;
|
|
10349
10349
|
let t = zt;
|
|
10350
|
-
zt = null,
|
|
10350
|
+
zt = null, q.value === t && Rt(t);
|
|
10351
10351
|
}), T(() => {
|
|
10352
|
-
F(
|
|
10352
|
+
F(J.value);
|
|
10353
10353
|
let e = ss(t.value);
|
|
10354
|
-
if (e.length && P(
|
|
10355
|
-
let e =
|
|
10354
|
+
if (e.length && P(J.value, e), Pe(), X.value && W.value && Pt(p.value), o?.value && x.value && l.value) {
|
|
10355
|
+
let e = X.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = X.value && W.value ? ss(t.value).some((e) => od(e, p.value).length > 0) : G.value.length > 0;
|
|
10356
10356
|
e && n && d(t.value, {
|
|
10357
10357
|
api: l.value,
|
|
10358
10358
|
filterModel: p.value ?? void 0
|
|
10359
10359
|
});
|
|
10360
10360
|
}
|
|
10361
|
-
|
|
10361
|
+
X.value || $(t.value).metadataDisplayFields?.length && G.value.some((e) => qe(e)) && ze(!0, !0);
|
|
10362
10362
|
}), E(() => {
|
|
10363
|
-
I(
|
|
10363
|
+
I(J.value), j.value && !Y.value && (X.value ? Nt(Z.value, { skipIfUnchanged: !0 }) : vt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
10364
10364
|
}), {
|
|
10365
10365
|
selectedValues: G,
|
|
10366
10366
|
filterValues: ie,
|
|
10367
10367
|
isLoading: K,
|
|
10368
|
-
isSeeMoreLoading:
|
|
10369
|
-
filterSearchText:
|
|
10370
|
-
filterSearchMinLength:
|
|
10371
|
-
belowFilterSearchMinLength:
|
|
10368
|
+
isSeeMoreLoading: he,
|
|
10369
|
+
filterSearchText: q,
|
|
10370
|
+
filterSearchMinLength: le,
|
|
10371
|
+
belowFilterSearchMinLength: ue,
|
|
10372
10372
|
rowsLoading: ne,
|
|
10373
10373
|
gridApi: l,
|
|
10374
|
-
filterField:
|
|
10375
|
-
filterType:
|
|
10376
|
-
filterDisplayName:
|
|
10377
|
-
isInFilterPanel:
|
|
10378
|
-
maxSelectableValues:
|
|
10379
|
-
isSingleSelect:
|
|
10380
|
-
selectionLimitReached:
|
|
10381
|
-
suggestedValues:
|
|
10374
|
+
filterField: J,
|
|
10375
|
+
filterType: de,
|
|
10376
|
+
filterDisplayName: fe,
|
|
10377
|
+
isInFilterPanel: Y,
|
|
10378
|
+
maxSelectableValues: ve,
|
|
10379
|
+
isSingleSelect: ye,
|
|
10380
|
+
selectionLimitReached: De,
|
|
10381
|
+
suggestedValues: Oe,
|
|
10382
10382
|
displayedFilterValues: ht,
|
|
10383
10383
|
selectedFilterValues: gt,
|
|
10384
|
-
showSearchBar:
|
|
10384
|
+
showSearchBar: Se,
|
|
10385
10385
|
filterSearchPlaceholder: Ze,
|
|
10386
|
-
emptyFilterResultsRenderer:
|
|
10387
|
-
filterOptionsRenderer:
|
|
10388
|
-
filterHeaderRenderer:
|
|
10389
|
-
filterFooterRenderer:
|
|
10390
|
-
filterOptionsSortDescription:
|
|
10391
|
-
filterOptionsSortTooltip:
|
|
10392
|
-
totalOptionCount:
|
|
10393
|
-
hasMoreOptions:
|
|
10394
|
-
isAggregate:
|
|
10395
|
-
cascadeSelectionState:
|
|
10386
|
+
emptyFilterResultsRenderer: Ce,
|
|
10387
|
+
filterOptionsRenderer: we,
|
|
10388
|
+
filterHeaderRenderer: Te,
|
|
10389
|
+
filterFooterRenderer: Ee,
|
|
10390
|
+
filterOptionsSortDescription: be,
|
|
10391
|
+
filterOptionsSortTooltip: xe,
|
|
10392
|
+
totalOptionCount: ke,
|
|
10393
|
+
hasMoreOptions: Ae,
|
|
10394
|
+
isAggregate: X,
|
|
10395
|
+
cascadeSelectionState: Z,
|
|
10396
10396
|
cascadeSelectionStateModel: Et,
|
|
10397
10397
|
filterValueContext: y,
|
|
10398
10398
|
formatDisplayValue: Ke,
|
|
@@ -10702,67 +10702,67 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10702
10702
|
"handle-settings-icon"
|
|
10703
10703
|
],
|
|
10704
10704
|
setup(e, { emit: n }) {
|
|
10705
|
-
let d = e, f = n, g = k(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: E, filterSearchMinLength: O, belowFilterSearchMinLength: j, rowsLoading: M, gridApi: P, filterField: I, filterDisplayName: z, isInFilterPanel: B, suggestedValues: V, displayedFilterValues: H, selectedFilterValues: ee, showSearchBar: te, filterSearchPlaceholder: ne, emptyFilterResultsRenderer: re, filterOptionsRenderer: U, filterHeaderRenderer: G, filterFooterRenderer: ie, filterOptionsSortDescription: K, filterOptionsSortTooltip: ae, filterValueContext:
|
|
10705
|
+
let d = e, f = n, g = k(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: E, filterSearchMinLength: O, belowFilterSearchMinLength: j, rowsLoading: M, gridApi: P, filterField: I, filterDisplayName: z, isInFilterPanel: B, suggestedValues: V, displayedFilterValues: H, selectedFilterValues: ee, showSearchBar: te, filterSearchPlaceholder: ne, emptyFilterResultsRenderer: re, filterOptionsRenderer: U, filterHeaderRenderer: G, filterFooterRenderer: ie, filterOptionsSortDescription: K, filterOptionsSortTooltip: ae, filterValueContext: oe, formatDisplayValue: se, resolvedFilterValueContext: ce, isUnresolvedMetadataValue: q, getLatestFilterValues: le, addSelectedValue: ue, removeSelectedValue: J, recordBulkAction: de, rumLocation: fe, handleDropdownOpen: pe, handleDropdownClosed: Y, handleSeeMore: me, getColDisplayNameForField: he, hasMoreOptions: ge, totalOptionCount: _e, isAggregate: ve, cascadeSelectionState: ye, cascadeSelectionStateModel: be } = xd({
|
|
10706
10706
|
filterColDef: L(d, "filterColDef"),
|
|
10707
10707
|
filterStyle: L(d, "filterStyle"),
|
|
10708
10708
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
10709
10709
|
filterGroupStagedFields: x,
|
|
10710
10710
|
readOnly: L(d, "readOnly"),
|
|
10711
10711
|
disableUnselected: L(d, "disableUnselected")
|
|
10712
|
-
}),
|
|
10712
|
+
}), xe = Tl(), { handleFocusUpdate: Se, isFocused: Ce, removeFocus: we, isFocusable: Te, canRemoveFocus: Ee } = vu(), De = (e) => {
|
|
10713
10713
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
10714
10714
|
if (e.id.startsWith("__")) {
|
|
10715
10715
|
let t = e.id.slice(2).split("__");
|
|
10716
10716
|
if (t.length >= 2) return t[1];
|
|
10717
10717
|
}
|
|
10718
10718
|
return e.id;
|
|
10719
|
-
},
|
|
10720
|
-
if (
|
|
10719
|
+
}, Oe = r(() => {
|
|
10720
|
+
if (Te(ls(d.filterColDef) ? ss(d.filterColDef) : [I.value])) return {
|
|
10721
10721
|
icon: "focus",
|
|
10722
|
-
isDisabled: (e) => !
|
|
10722
|
+
isDisabled: (e) => !Te([e.context?.colField || I.value]),
|
|
10723
10723
|
tooltipText: (e) => {
|
|
10724
10724
|
let t = e.context?.colField || I.value;
|
|
10725
|
-
if (!
|
|
10726
|
-
let n =
|
|
10727
|
-
return n && !
|
|
10725
|
+
if (!Te([t])) return `Group by ${he(t)} to enable ${d.focusText}`;
|
|
10726
|
+
let n = Ce(ve.value ? De(e) : e.id, t);
|
|
10727
|
+
return n && !Ee() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
10728
10728
|
},
|
|
10729
10729
|
action: (e) => {
|
|
10730
|
-
e && !C.value.includes(e.id) &&
|
|
10730
|
+
e && !C.value.includes(e.id) && ue(e.id, e.context?.colField);
|
|
10731
10731
|
let t = e.context?.colField || I.value;
|
|
10732
|
-
|
|
10732
|
+
Se(ve.value ? De(e) : e.id, t);
|
|
10733
10733
|
},
|
|
10734
10734
|
alwaysShow: (e) => {
|
|
10735
10735
|
let t = e.context?.colField || I.value;
|
|
10736
|
-
return
|
|
10736
|
+
return Ce(ve.value ? De(e) : e.id, t);
|
|
10737
10737
|
}
|
|
10738
10738
|
};
|
|
10739
|
-
}),
|
|
10739
|
+
}), ke = (e) => {
|
|
10740
10740
|
if (!e) return null;
|
|
10741
|
-
if (!
|
|
10742
|
-
let t =
|
|
10741
|
+
if (!ve.value) return e;
|
|
10742
|
+
let t = ce(e);
|
|
10743
10743
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
10744
10744
|
if (e.startsWith("__")) {
|
|
10745
10745
|
let t = e.slice(2).split("__");
|
|
10746
10746
|
if (t.length >= 2) return t[1];
|
|
10747
10747
|
}
|
|
10748
10748
|
return e;
|
|
10749
|
-
},
|
|
10750
|
-
|
|
10751
|
-
let t =
|
|
10752
|
-
|
|
10753
|
-
},
|
|
10749
|
+
}, Ae = (e) => {
|
|
10750
|
+
J(e, void 0, "remove_chip");
|
|
10751
|
+
let t = ce(e)?.colField || I.value, n = ke(e);
|
|
10752
|
+
Ce(n, t) && Ee() && we(n);
|
|
10753
|
+
}, X = m($l, k(!1)), je = r(() => !!$(d.filterColDef).filterGroup && X.value), Me = null, Z = null, Q = () => {
|
|
10754
10754
|
try {
|
|
10755
|
-
return
|
|
10755
|
+
return ve.value ? JSON.stringify(ye.value) : JSON.stringify([...C.value].sort());
|
|
10756
10756
|
} catch {
|
|
10757
10757
|
return null;
|
|
10758
10758
|
}
|
|
10759
10759
|
}, Ne = () => {
|
|
10760
|
-
|
|
10760
|
+
Me = Date.now(), Z = Q(), pe(), le(!0);
|
|
10761
10761
|
}, Pe = () => {
|
|
10762
|
-
let e =
|
|
10763
|
-
|
|
10764
|
-
let t =
|
|
10765
|
-
|
|
10762
|
+
let e = Me == null ? 0 : Date.now() - Me;
|
|
10763
|
+
Me = null;
|
|
10764
|
+
let t = Q(), n = Z != null && t != null && Z !== t;
|
|
10765
|
+
Z = null;
|
|
10766
10766
|
let r = C.value.length;
|
|
10767
10767
|
Dl(() => {
|
|
10768
10768
|
El("filter_dropdown_closed", {
|
|
@@ -10771,20 +10771,20 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10771
10771
|
selection_count: r,
|
|
10772
10772
|
selection_changed: n,
|
|
10773
10773
|
dwell_ms: e,
|
|
10774
|
-
location:
|
|
10775
|
-
},
|
|
10774
|
+
location: fe.value
|
|
10775
|
+
}, xe());
|
|
10776
10776
|
}), v(() => {
|
|
10777
|
-
|
|
10777
|
+
Y(), f("filter-closed");
|
|
10778
10778
|
});
|
|
10779
10779
|
}, Fe = (e) => {
|
|
10780
|
-
let t =
|
|
10781
|
-
return
|
|
10782
|
-
}, Ie = r(() => S.value > 0 ? !0 :
|
|
10783
|
-
return (n, r) => (D(), o(t, null, [s("div", null, [R(B) && R(C).length > 0 ? (D(), o("ul", Od, [(D(!0), o(t, null, A(R(C), (n) => (D(), o(t, { key: `${R(z)}-${n}` }, [R(
|
|
10784
|
-
label: R(
|
|
10785
|
-
showClear: !e.readOnly && (!Fe(n) || R(
|
|
10780
|
+
let t = ce(e)?.colField || I.value;
|
|
10781
|
+
return Ce(ke(e), t);
|
|
10782
|
+
}, Ie = r(() => S.value > 0 ? !0 : ve.value ? ye.value.length > 0 : C.value.length > 0);
|
|
10783
|
+
return (n, r) => (D(), o(t, null, [s("div", null, [R(B) && R(C).length > 0 ? (D(), o("ul", Od, [(D(!0), o(t, null, A(R(C), (n) => (D(), o(t, { key: `${R(z)}-${n}` }, [R(q)(n) ? a("", !0) : (D(), o("li", kd, [u($s, {
|
|
10784
|
+
label: R(se)(n) || "",
|
|
10785
|
+
showClear: !e.readOnly && (!Fe(n) || R(Ee)()),
|
|
10786
10786
|
disabled: e.readOnly,
|
|
10787
|
-
onHandleClose: (e) =>
|
|
10787
|
+
onHandleClose: (e) => Ae(n)
|
|
10788
10788
|
}, null, 8, [
|
|
10789
10789
|
"label",
|
|
10790
10790
|
"showClear",
|
|
@@ -10796,8 +10796,8 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10796
10796
|
disabled: !R(B) && e.readOnly && e.disableUnselected && !Ie.value,
|
|
10797
10797
|
searchInput: R(E),
|
|
10798
10798
|
"onUpdate:searchInput": r[2] ||= (e) => h(E) ? E.value = e : null,
|
|
10799
|
-
selectionState: R(
|
|
10800
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
10799
|
+
selectionState: R(be),
|
|
10800
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(be) ? be.value = e : null,
|
|
10801
10801
|
"data-horizontal-filter-field": R(B) ? void 0 : R(I),
|
|
10802
10802
|
label: R(B) ? "" : R(z),
|
|
10803
10803
|
rumFilterName: R(z),
|
|
@@ -10811,7 +10811,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10811
10811
|
overlayTrigger: R(B),
|
|
10812
10812
|
options: R(H),
|
|
10813
10813
|
optionsRenderer: R(U),
|
|
10814
|
-
optionsAction:
|
|
10814
|
+
optionsAction: Oe.value,
|
|
10815
10815
|
popoverCssProperties: {
|
|
10816
10816
|
maxHeight: "400px",
|
|
10817
10817
|
maxWidth: R(B) ? "300px" : "400px",
|
|
@@ -10823,12 +10823,12 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10823
10823
|
groupings: ["preferences", "suggestions"],
|
|
10824
10824
|
isLoading: R(w),
|
|
10825
10825
|
isSeeMoreLoading: R(T),
|
|
10826
|
-
hasMoreOptions: R(
|
|
10827
|
-
totalOptionCount: R(
|
|
10828
|
-
enableCascadeSelection: R(
|
|
10829
|
-
enableChildExpansion: R(
|
|
10830
|
-
parentSelectsAllChildren: R(
|
|
10831
|
-
countSelectedParents: R(
|
|
10826
|
+
hasMoreOptions: R(ge),
|
|
10827
|
+
totalOptionCount: R(_e),
|
|
10828
|
+
enableCascadeSelection: R(ve),
|
|
10829
|
+
enableChildExpansion: R(ve),
|
|
10830
|
+
parentSelectsAllChildren: R(ve),
|
|
10831
|
+
countSelectedParents: R(ve),
|
|
10832
10832
|
additionalCounter: S.value,
|
|
10833
10833
|
slotContext: {
|
|
10834
10834
|
gridApi: R(P),
|
|
@@ -10837,9 +10837,9 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10837
10837
|
},
|
|
10838
10838
|
onDropdownOpen: Ne,
|
|
10839
10839
|
onDropdownClosed: Pe,
|
|
10840
|
-
onSeeMore: R(
|
|
10841
|
-
onSelectAll: r[4] ||= (e) => R(
|
|
10842
|
-
onClearAll: r[5] ||= (e) => R(
|
|
10840
|
+
onSeeMore: R(me),
|
|
10841
|
+
onSelectAll: r[4] ||= (e) => R(de)("select_all", e),
|
|
10842
|
+
onClearAll: r[5] ||= (e) => R(de)("clear_all", e)
|
|
10843
10843
|
}, c({
|
|
10844
10844
|
preferences: W(() => [s("div", jd, [r[7] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(R(Wi), {
|
|
10845
10845
|
variant: "dark",
|
|
@@ -10872,11 +10872,11 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10872
10872
|
} : void 0]), 1024)])]),
|
|
10873
10873
|
_: 2
|
|
10874
10874
|
}, [
|
|
10875
|
-
R(G) ||
|
|
10875
|
+
R(G) || je.value || R(j) ? {
|
|
10876
10876
|
name: "header",
|
|
10877
10877
|
fn: W((t) => [
|
|
10878
10878
|
R(j) ? (D(), o("p", Ad, " Type " + F(R(O)) + " or more characters to search ", 1)) : a("", !0),
|
|
10879
|
-
|
|
10879
|
+
je.value ? (D(), i(Dd, {
|
|
10880
10880
|
key: 1,
|
|
10881
10881
|
ref_key: "filterGroupMenuRef",
|
|
10882
10882
|
ref: g,
|
|
@@ -10920,8 +10920,8 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
10920
10920
|
}
|
|
10921
10921
|
}, [u(R(lc), {
|
|
10922
10922
|
disabled: R(w),
|
|
10923
|
-
label: R(
|
|
10924
|
-
onHandleClick: (t) => R(
|
|
10923
|
+
label: R(se)(e) || "",
|
|
10924
|
+
onHandleClick: (t) => R(ue)(e, R(oe)(R(I), e)?.colField)
|
|
10925
10925
|
}, null, 8, [
|
|
10926
10926
|
"disabled",
|
|
10927
10927
|
"label",
|
|
@@ -11032,7 +11032,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11032
11032
|
O.value = !1, M.value = "";
|
|
11033
11033
|
}, ae = () => {
|
|
11034
11034
|
b(), C(), g.value = null, K();
|
|
11035
|
-
},
|
|
11035
|
+
}, oe = () => {
|
|
11036
11036
|
b(), ne.value && n.value && (S(), f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, K();
|
|
11037
11037
|
};
|
|
11038
11038
|
return (r, c) => (D(), o(t, null, [s("div", {
|
|
@@ -11084,7 +11084,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11084
11084
|
"onUpdate:modelValue": c[9] ||= (e) => O.value = e,
|
|
11085
11085
|
class: "pv-drawer pv-surface",
|
|
11086
11086
|
"close-on-click-outside": !0,
|
|
11087
|
-
onClickOutside: c[10] ||= (e) =>
|
|
11087
|
+
onClickOutside: c[10] ||= (e) => oe(),
|
|
11088
11088
|
style: {
|
|
11089
11089
|
"max-width": "450px",
|
|
11090
11090
|
"z-index": "10"
|
|
@@ -11118,7 +11118,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11118
11118
|
variant: "primary",
|
|
11119
11119
|
label: "Apply",
|
|
11120
11120
|
"data-dd-action-name": "Apply filters",
|
|
11121
|
-
onClick: c[7] ||= (e) =>
|
|
11121
|
+
onClick: c[7] ||= (e) => oe()
|
|
11122
11122
|
})) : (D(), i(R(Ln), {
|
|
11123
11123
|
key: 1,
|
|
11124
11124
|
variant: "primary",
|
|
@@ -11381,7 +11381,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11381
11381
|
__name: "PaginationPanel",
|
|
11382
11382
|
props: { panelSize: { default: "xl" } },
|
|
11383
11383
|
setup(e) {
|
|
11384
|
-
|
|
11384
|
+
De.registerModules([we]);
|
|
11385
11385
|
let n = m(jl, k(null)), a = m(Vl, k(1)), s = m(Hl, k(0)), c = e, l = r(() => {
|
|
11386
11386
|
let e = s.value, t = a.value;
|
|
11387
11387
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
@@ -11510,12 +11510,12 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11510
11510
|
};
|
|
11511
11511
|
}), o.value = !1;
|
|
11512
11512
|
};
|
|
11513
|
-
return
|
|
11513
|
+
return pe(r, (e) => {
|
|
11514
11514
|
t.searchStyle === "query-builder" ? _(e) : t.searchStyle === "text" && h(e);
|
|
11515
11515
|
}, {
|
|
11516
11516
|
debounce: 300,
|
|
11517
11517
|
immediate: !0
|
|
11518
|
-
}),
|
|
11518
|
+
}), pe(n, (e) => {
|
|
11519
11519
|
t.searchStyle === "query-builder" && g(e);
|
|
11520
11520
|
}, {
|
|
11521
11521
|
debounce: 300,
|
|
@@ -11756,39 +11756,39 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11756
11756
|
let d = [
|
|
11757
11757
|
Ie,
|
|
11758
11758
|
Le,
|
|
11759
|
-
pe,
|
|
11760
|
-
Re,
|
|
11761
11759
|
he,
|
|
11762
|
-
|
|
11763
|
-
ge,
|
|
11760
|
+
Re,
|
|
11764
11761
|
_e,
|
|
11762
|
+
ze,
|
|
11763
|
+
ve,
|
|
11764
|
+
ye,
|
|
11765
11765
|
Be,
|
|
11766
11766
|
Ve,
|
|
11767
|
-
ve,
|
|
11768
11767
|
be,
|
|
11769
|
-
|
|
11768
|
+
Se,
|
|
11769
|
+
Te,
|
|
11770
11770
|
Ue,
|
|
11771
|
-
|
|
11771
|
+
Me,
|
|
11772
11772
|
Ye,
|
|
11773
11773
|
Je,
|
|
11774
11774
|
Xe,
|
|
11775
11775
|
Ne,
|
|
11776
11776
|
We,
|
|
11777
|
-
|
|
11777
|
+
X,
|
|
11778
11778
|
Ke,
|
|
11779
11779
|
qe,
|
|
11780
|
+
je,
|
|
11780
11781
|
ke,
|
|
11781
|
-
|
|
11782
|
-
Oe,
|
|
11782
|
+
Ae,
|
|
11783
11783
|
Ze,
|
|
11784
|
-
|
|
11784
|
+
Q,
|
|
11785
11785
|
Pe,
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
we,
|
|
11786
|
+
ge,
|
|
11787
|
+
Z,
|
|
11789
11788
|
Ee,
|
|
11789
|
+
Oe,
|
|
11790
|
+
Ce,
|
|
11790
11791
|
xe,
|
|
11791
|
-
ye,
|
|
11792
11792
|
Ge
|
|
11793
11793
|
];
|
|
11794
11794
|
He.setLicenseKey("Using_this_{AG_Grid}_Enterprise_key_{AG-084011}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Grid}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{16_August_2026}____[v3]_[01]_MTc4NjgzNDgwMDAwMA==3bfdb2557ede1aa3533ccbd05785addb");
|
|
@@ -11797,7 +11797,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11797
11797
|
let h = r(() => f.layout ? {} : {
|
|
11798
11798
|
height: f.containerHeight,
|
|
11799
11799
|
minHeight: f.containerMinHeight
|
|
11800
|
-
}), g = r(() => f.theme != null && typeof f.theme != "string"), w = r(() => f.theme && typeof f.theme == "string" ? f.theme :
|
|
11800
|
+
}), g = r(() => f.theme != null && typeof f.theme != "string"), w = r(() => f.theme && typeof f.theme == "string" ? f.theme : q.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), T = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", E = r(() => g.value ? f.theme : af[w.value]), A = c, M = k(!1), N = (e) => {
|
|
11801
11801
|
let t = ss(e), n = e.context;
|
|
11802
11802
|
return Array.from(new Set([
|
|
11803
11803
|
...t,
|
|
@@ -11809,12 +11809,12 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11809
11809
|
let n = K.find((e) => cs(e) === t);
|
|
11810
11810
|
return !!n && N(n).some((t) => Gu(e, t));
|
|
11811
11811
|
}, L = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
11812
|
-
if (!
|
|
11813
|
-
e.success({ rowData: [] }),
|
|
11812
|
+
if (!de.value) {
|
|
11813
|
+
e.success({ rowData: [] }), le.value = !0;
|
|
11814
11814
|
return;
|
|
11815
11815
|
}
|
|
11816
|
-
|
|
11817
|
-
let t = e.success, n = e.fail, r = e.request.groupKeys?.length || 0, i = e.request.rowGroupCols?.length || 0, a = r === i, o = !1, s =
|
|
11816
|
+
ue.value = !0;
|
|
11817
|
+
let t = e.success, n = e.fail, r = e.request.groupKeys?.length || 0, i = e.request.rowGroupCols?.length || 0, a = r === i, o = !1, s = nt.value;
|
|
11818
11818
|
if (i > 0 && r === 0) {
|
|
11819
11819
|
let t = e.request.rowGroupCols[0].id;
|
|
11820
11820
|
o = I(s, t);
|
|
@@ -11868,7 +11868,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11868
11868
|
e.request.groupKeys = e.request.groupKeys.filter((t, n) => e.request.rowGroupCols?.[n]?.aggFunc !== Ro), e.request.rowGroupCols = e.request.rowGroupCols.filter((e) => e.aggFunc !== Ro);
|
|
11869
11869
|
}
|
|
11870
11870
|
}
|
|
11871
|
-
if (e.request.rowGroupCols?.length === 0 ? e.request.valueCols = [] : e.request.valueCols = e.request.valueCols?.filter((t) => !e.request.rowGroupCols?.some((e) => e.id === t.id)), (a || o) && !
|
|
11871
|
+
if (e.request.rowGroupCols?.length === 0 ? e.request.valueCols = [] : e.request.valueCols = e.request.valueCols?.filter((t) => !e.request.rowGroupCols?.some((e) => e.id === t.id)), (a || o) && !De.tableSearchFilterModelEmpty.value) if (f.enableAdvancedFilter) {
|
|
11872
11872
|
let t = e.request.filterModel;
|
|
11873
11873
|
t ? e.request.filterModel = {
|
|
11874
11874
|
filterType: "join",
|
|
@@ -11880,8 +11880,8 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11880
11880
|
e.request.filterModel = Ku(K, t, s);
|
|
11881
11881
|
}
|
|
11882
11882
|
e.success = (e) => {
|
|
11883
|
-
if (
|
|
11884
|
-
let n = ts(e.rowData,
|
|
11883
|
+
if (ue.value = !1, f.enableFocusView && ft.value.length > 0 && dt.value && e.rowData) {
|
|
11884
|
+
let n = ts(e.rowData, dt.value, ft.value);
|
|
11885
11885
|
if (n) {
|
|
11886
11886
|
e.rowData = n, t(e);
|
|
11887
11887
|
return;
|
|
@@ -11889,18 +11889,18 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11889
11889
|
}
|
|
11890
11890
|
t(e);
|
|
11891
11891
|
}, e.fail = () => {
|
|
11892
|
-
|
|
11892
|
+
ue.value = !1, n();
|
|
11893
11893
|
}, f.serverSideRowHandler?.(e);
|
|
11894
11894
|
} } : null, z = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
11895
|
-
let t = [], n = { ...
|
|
11896
|
-
t = !
|
|
11895
|
+
let t = [], n = { ...tt.value };
|
|
11896
|
+
t = !le.value && se ? cd(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await st(e.colDef, {
|
|
11897
11897
|
api: e.api,
|
|
11898
11898
|
filterModel: n,
|
|
11899
11899
|
useStaged: !1
|
|
11900
11900
|
}), e.success([...t, ""]);
|
|
11901
11901
|
} : null, B = (e) => {
|
|
11902
11902
|
let t = e.node, n = e.column?.getColId();
|
|
11903
|
-
return !t.group || !n ? !1 :
|
|
11903
|
+
return !t.group || !n ? !1 : ht.value.some((e) => {
|
|
11904
11904
|
if (e.field === n) return !0;
|
|
11905
11905
|
});
|
|
11906
11906
|
}, V = (() => {
|
|
@@ -11915,13 +11915,13 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11915
11915
|
headerComponent: f.enableInlineFilters ? void 0 : ef,
|
|
11916
11916
|
cellDataType: !1,
|
|
11917
11917
|
tooltipComponent: bf,
|
|
11918
|
-
cellClass: (e) =>
|
|
11918
|
+
cellClass: (e) => wt(e.column) ? "" : as(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
11919
11919
|
cellRendererSelector: (e) => {
|
|
11920
11920
|
if (B(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
11921
11921
|
component: Nu,
|
|
11922
11922
|
params: e
|
|
11923
11923
|
};
|
|
11924
|
-
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber &&
|
|
11924
|
+
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && q.value.length === 0) {
|
|
11925
11925
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
11926
11926
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
11927
11927
|
component: hf,
|
|
@@ -11940,10 +11940,10 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11940
11940
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
11941
11941
|
action: function(e) {
|
|
11942
11942
|
let t = e.column?.getColId();
|
|
11943
|
-
if (e.column &&
|
|
11943
|
+
if (e.column && wt(e.column) && (t = gt.value?.getColId() || ""), !Wt(t)) {
|
|
11944
11944
|
let n = e.api.getColumn(t)?.getColDef();
|
|
11945
|
-
n && (
|
|
11946
|
-
|
|
11945
|
+
n && (ce.value = n, v(() => {
|
|
11946
|
+
Wt(t);
|
|
11947
11947
|
}));
|
|
11948
11948
|
}
|
|
11949
11949
|
}
|
|
@@ -11971,70 +11971,70 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
11971
11971
|
return n && (t = ie(t, n)), t;
|
|
11972
11972
|
}).filter((e) => e != null) || [], ae = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
11973
11973
|
for (let e of K) for (let t of ss(e)) ae.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
11974
|
-
let
|
|
11975
|
-
if (
|
|
11976
|
-
let e =
|
|
11974
|
+
let oe = K.some((e) => e.context?.visibilityState !== void 0), se = Bu(f.initialGridState, K, f.enableAdvancedFilter), ce = k(null), q = k([]), le = m(zl, k(!1)), ue = k(!1), J = r(() => {
|
|
11975
|
+
if (q.value.length > 0) {
|
|
11976
|
+
let e = q.value[0], t = K.find((t) => t.field === e), n = tt.value, r = !n;
|
|
11977
11977
|
if (!r && md(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
11978
11978
|
}
|
|
11979
11979
|
return null;
|
|
11980
|
-
}),
|
|
11981
|
-
if (
|
|
11980
|
+
}), de = r(() => De.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : J.value === null), fe = r(() => J.value ? `Select at least one value for "${J.value}" to view data.` : "Select a filter to view data."), Y = P(null), we = k([]), De = f.filterStore || yd(), Fe = m(kl, null), et = Fe || _u(null, f.allFieldsAreFocusable), tt = De.filterModel, nt = De.tableSearchFilterModel, rt = De.filterValueMap, it = De.filterValuesMap, at = De.filterValueSelectedMetadataMap, st = De.fetchFilterValues, ct = De.filterStoreHandler, lt = De.tableSearchHandler;
|
|
11981
|
+
if (ct.value = f.filterValuesSetHandler, ct.value) {
|
|
11982
11982
|
let e = (e) => ({
|
|
11983
|
-
hasMore:
|
|
11984
|
-
totalCount:
|
|
11985
|
-
values:
|
|
11983
|
+
hasMore: De.filterHasMoreMap.value[e],
|
|
11984
|
+
totalCount: De.filterTotalCountMap.value[e],
|
|
11985
|
+
values: De.filterOptionsMap.value[e] ?? []
|
|
11986
11986
|
});
|
|
11987
|
-
|
|
11988
|
-
let n =
|
|
11987
|
+
De.setFilterOptionsHandler(async (t) => {
|
|
11988
|
+
let n = ct.value;
|
|
11989
11989
|
return n ? await n({
|
|
11990
11990
|
...t,
|
|
11991
|
-
api:
|
|
11991
|
+
api: Y.value ?? void 0,
|
|
11992
11992
|
colDef: t.colDef,
|
|
11993
11993
|
filterModel: t.filterModel
|
|
11994
11994
|
}) ?? e(t.field) : e(t.field);
|
|
11995
11995
|
});
|
|
11996
11996
|
}
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
}),
|
|
11997
|
+
lt.value = f.tableSearchHandler, rt.value = f.initialFilterValueMap || {}, it.value = Object.fromEntries(Object.entries(f.initialFilterValueMap || {}).map(([e, t]) => [e, t.filter((e) => e != null).map((e) => e.value)])), at.value = f.initialFilterValueSelectedMetadataMap || {}, De.refreshFiltersInBackground.value = f.refreshFiltersInBackground ?? !1, De.stageFilterChangesUntilDropdownCloses.value = f.stageFilterChangesUntilDropdownCloses ?? !1, De.filterSearchMinLength.value = f.filterSearchMinLength, De.filterModelType.value = f.enableAdvancedFilter ? "advanced" : "regular", U(() => f.enableAdvancedFilter, (e) => {
|
|
11998
|
+
De.filterModelType.value = e ? "advanced" : "regular";
|
|
11999
|
+
}), pe([rt, at], () => {
|
|
12000
12000
|
A("filter-metadata-changed", {
|
|
12001
|
-
filterValueMap:
|
|
12002
|
-
filterValueSelectedMetadataMap:
|
|
12001
|
+
filterValueMap: rt.value,
|
|
12002
|
+
filterValueSelectedMetadataMap: at.value
|
|
12003
12003
|
});
|
|
12004
12004
|
}, {
|
|
12005
12005
|
deep: !0,
|
|
12006
12006
|
debounce: 250
|
|
12007
12007
|
});
|
|
12008
|
-
let
|
|
12009
|
-
O(Ol,
|
|
12010
|
-
let
|
|
12011
|
-
U(() =>
|
|
12008
|
+
let ut = k(null), dt = r(() => et?.computedFocusType.value || null), ft = r(() => et?.computedFocuses.value || []), pt = r(() => K.filter((e) => e.filter)), mt = r(() => K.filter((e) => e.enableRowGroup)), ht = r(() => K.filter((e) => e.aggFunc)), gt = k(null), _t = k({}), vt = k(1), yt = k(0);
|
|
12009
|
+
O(Ol, De), O(kl, et), O(Al, we), O(jl, Y), O(Ml, ut), O(Nl, ce), O(Pl, pt), O(Fl, mt), O(Il, q), O(Ll, gt), O(Rl, _t), O(zl, le), O(Bl, ue), O(Vl, vt), O(Hl, yt), O($l, r(() => f.enableAdvancedFilter));
|
|
12010
|
+
let bt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ft.value.length && !dt.value ? f.rowData : ts(f.rowData, dt.value, ft.value));
|
|
12011
|
+
U(() => ft.value, (e) => {
|
|
12012
12012
|
A("focus-update", {
|
|
12013
|
-
filterField:
|
|
12013
|
+
filterField: dt.value,
|
|
12014
12014
|
focuses: e
|
|
12015
12015
|
});
|
|
12016
12016
|
}), U(M, (e) => {
|
|
12017
|
-
if (!
|
|
12017
|
+
if (!Y.value) return;
|
|
12018
12018
|
let t = K.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
12019
|
-
t.length > 0 &&
|
|
12019
|
+
t.length > 0 && Y.value.setColumnsVisible(t, e);
|
|
12020
12020
|
});
|
|
12021
|
-
let
|
|
12022
|
-
|
|
12023
|
-
let t =
|
|
12024
|
-
if (f.hideAllRowGroupedColumns &&
|
|
12021
|
+
let xt = (e) => {
|
|
12022
|
+
Y.value = e.api;
|
|
12023
|
+
let t = q.value.find((e) => !K.find((t) => t.field === e)?.hide), n = !t && q.value.length > 0 ? K.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
12024
|
+
if (f.hideAllRowGroupedColumns && q.value.forEach((e) => i.push(e)), r) {
|
|
12025
12025
|
let t = e.api.getColumn(r);
|
|
12026
|
-
|
|
12027
|
-
}
|
|
12028
|
-
q ? Zt(q) : et.value && kt(et.value), tt.value && At(tt.value), e.api.setColumnsVisible([...i], !1), lt.value = e.api.getAllGridColumns(), _t.value = e.api.paginationGetCurrentPage() + 1, vt.value = e.api.paginationGetTotalPages(), A("grid-ready", e);
|
|
12029
|
-
}, xt = (e) => {
|
|
12030
|
-
if (X.value) {
|
|
12031
|
-
let t = Ot();
|
|
12032
|
-
rd(et.value, t) || (et.value = t, A("filter-changed", e));
|
|
12026
|
+
gt.value = t, i.push(r), Jt(t?.getColDef());
|
|
12033
12027
|
}
|
|
12028
|
+
se ? Qt(se) : tt.value && At(tt.value), nt.value && Ft(nt.value), e.api.setColumnsVisible([...i], !1), ut.value = [...e.api.getAllGridColumns()], vt.value = e.api.paginationGetCurrentPage() + 1, yt.value = e.api.paginationGetTotalPages(), A("grid-ready", e);
|
|
12034
12029
|
}, St = (e) => {
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12030
|
+
if (Y.value) {
|
|
12031
|
+
let t = kt();
|
|
12032
|
+
rd(tt.value, t) || (tt.value = t, A("filter-changed", e));
|
|
12033
|
+
}
|
|
12034
|
+
}, Ct = (e) => {
|
|
12035
|
+
we.value = e.api?.getState()?.sort?.sortModel || [], le.value && A("sort-changed", e);
|
|
12036
|
+
}, wt = (e) => e.getColId() && e.getColId().includes("ag-Grid-AutoColumn"), Tt = k(!1), Et = async (e) => {
|
|
12037
|
+
if (!Y.value) {
|
|
12038
12038
|
console.error("Grid API not available");
|
|
12039
12039
|
return;
|
|
12040
12040
|
}
|
|
@@ -12043,23 +12043,23 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12043
12043
|
route: [],
|
|
12044
12044
|
purge: !0
|
|
12045
12045
|
};
|
|
12046
|
-
|
|
12046
|
+
Y.value.refreshServerSide(t);
|
|
12047
12047
|
};
|
|
12048
|
-
function
|
|
12049
|
-
return e?.hydrate ?
|
|
12048
|
+
function Dt(e) {
|
|
12049
|
+
return e?.hydrate ? De.hydrateSelectedFilterMetadata(K) : at.value;
|
|
12050
12050
|
}
|
|
12051
|
-
let
|
|
12052
|
-
if (
|
|
12051
|
+
let Ot = async () => {
|
|
12052
|
+
if (Tt.value = !0, !Y.value) return console.error("Grid API not available"), Tt.value = !1, null;
|
|
12053
12053
|
try {
|
|
12054
|
-
let e = f.serverSideCsvHandler, t =
|
|
12054
|
+
let e = f.serverSideCsvHandler, t = Y.value?.getState(), n = {
|
|
12055
12055
|
rowGroupCols: [],
|
|
12056
|
-
valueCols:
|
|
12056
|
+
valueCols: Y.value?.getValueColumns().map((e) => ({
|
|
12057
12057
|
id: e.getId(),
|
|
12058
12058
|
field: e.getColDef().field,
|
|
12059
12059
|
aggFunc: typeof e.getColDef().aggFunc == "string" ? e.getColDef().aggFunc : void 0,
|
|
12060
12060
|
displayName: e.getColDef().headerName || e.getColDef().field || ""
|
|
12061
12061
|
})) || [],
|
|
12062
|
-
filterModel:
|
|
12062
|
+
filterModel: kt(),
|
|
12063
12063
|
sortModel: t?.sort?.sortModel || [],
|
|
12064
12064
|
pivotCols: [],
|
|
12065
12065
|
pivotMode: !1,
|
|
@@ -12071,22 +12071,22 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12071
12071
|
let e = {
|
|
12072
12072
|
request: n,
|
|
12073
12073
|
parentNode: {},
|
|
12074
|
-
api:
|
|
12074
|
+
api: Y.value,
|
|
12075
12075
|
context: void 0,
|
|
12076
12076
|
success: () => {},
|
|
12077
12077
|
fail: () => {}
|
|
12078
12078
|
};
|
|
12079
|
-
return await f.serverSideCsvHandler(e),
|
|
12079
|
+
return await f.serverSideCsvHandler(e), Tt.value = !1, null;
|
|
12080
12080
|
}
|
|
12081
12081
|
let r = f.serverSideRowHandler;
|
|
12082
12082
|
return r ? await new Promise((e, t) => {
|
|
12083
|
-
|
|
12083
|
+
Y.value?.getState(), r({
|
|
12084
12084
|
request: n,
|
|
12085
12085
|
parentNode: {},
|
|
12086
|
-
api:
|
|
12086
|
+
api: Y.value,
|
|
12087
12087
|
context: void 0,
|
|
12088
12088
|
success: (t) => {
|
|
12089
|
-
let n =
|
|
12089
|
+
let n = Y.value?.getRowGroupColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], r = Y.value?.getAllDisplayedColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], i = Y.value?.getValueColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], a = Array.from(new Set([
|
|
12090
12090
|
...n,
|
|
12091
12091
|
...r,
|
|
12092
12092
|
...i
|
|
@@ -12097,81 +12097,81 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12097
12097
|
t[n] = r == null ? null : String(r);
|
|
12098
12098
|
}), t;
|
|
12099
12099
|
}), s = $e.unparse(o);
|
|
12100
|
-
|
|
12100
|
+
Tt.value = !1, e(s);
|
|
12101
12101
|
},
|
|
12102
12102
|
fail: () => {
|
|
12103
|
-
|
|
12103
|
+
Tt.value = !1, t("CSV export failed.");
|
|
12104
12104
|
}
|
|
12105
12105
|
}, !0);
|
|
12106
|
-
}) : (console.warn("Client-side export does not return CSV string"),
|
|
12106
|
+
}) : (console.warn("Client-side export does not return CSV string"), Tt.value = !1, Y.value.exportDataAsCsv(), null);
|
|
12107
12107
|
} catch (e) {
|
|
12108
|
-
return console.error("CSV export failed", e),
|
|
12108
|
+
return console.error("CSV export failed", e), Tt.value = !1, null;
|
|
12109
12109
|
}
|
|
12110
|
-
},
|
|
12111
|
-
if (!
|
|
12110
|
+
}, kt = () => Y.value ? f.enableAdvancedFilter ? Y.value.getAdvancedFilterModel() : Y.value.getFilterModel() : tt.value, At = (e) => {
|
|
12111
|
+
if (!Y.value) return !1;
|
|
12112
12112
|
if (f.enableAdvancedFilter) {
|
|
12113
12113
|
let t = e && md(e) ? zu(e) : e;
|
|
12114
|
-
|
|
12114
|
+
Y.value.setAdvancedFilterModel(t);
|
|
12115
12115
|
} else {
|
|
12116
12116
|
if (e && !md(e)) return console.warn("Attempting to set a non-regular filter model while advanced filtering is disabled. The filter model was not applied. Consider enabling advanced filtering for full functionality."), !1;
|
|
12117
|
-
|
|
12117
|
+
Y.value.setFilterModel(e);
|
|
12118
12118
|
}
|
|
12119
12119
|
return !0;
|
|
12120
|
-
},
|
|
12121
|
-
getFilterModel:
|
|
12122
|
-
refreshData:
|
|
12123
|
-
setFilterModel:
|
|
12124
|
-
setTableSearchFilterModel:
|
|
12120
|
+
}, Ft = (e) => (nt.value = e, Y.value ? (Y.value.onFilterChanged(), L && Y.value.refreshServerSide({ purge: !0 }), !0) : !1), It = {
|
|
12121
|
+
getFilterModel: kt,
|
|
12122
|
+
refreshData: Et,
|
|
12123
|
+
setFilterModel: At,
|
|
12124
|
+
setTableSearchFilterModel: Ft
|
|
12125
12125
|
};
|
|
12126
|
-
|
|
12127
|
-
|
|
12126
|
+
De.registerFilterController(It), C(() => {
|
|
12127
|
+
De.unregisterFilterController(It);
|
|
12128
12128
|
}), t({
|
|
12129
|
-
getCsvData:
|
|
12130
|
-
refreshData:
|
|
12131
|
-
getFilterValueSelectedMetadataMap:
|
|
12132
|
-
availableRowGroupColumns:
|
|
12133
|
-
availableAggFuncColumns:
|
|
12134
|
-
rowGroupColumnFields:
|
|
12135
|
-
getPvFilterModel:
|
|
12136
|
-
setPvFilterModel:
|
|
12129
|
+
getCsvData: Ot,
|
|
12130
|
+
refreshData: Et,
|
|
12131
|
+
getFilterValueSelectedMetadataMap: Dt,
|
|
12132
|
+
availableRowGroupColumns: mt,
|
|
12133
|
+
availableAggFuncColumns: ht,
|
|
12134
|
+
rowGroupColumnFields: q,
|
|
12135
|
+
getPvFilterModel: kt,
|
|
12136
|
+
setPvFilterModel: At
|
|
12137
12137
|
});
|
|
12138
|
-
let
|
|
12138
|
+
let Lt = (e) => {
|
|
12139
12139
|
e.api.refreshHeader(), A("column-value-changed", e);
|
|
12140
|
-
},
|
|
12140
|
+
}, Rt = (e) => {
|
|
12141
12141
|
v(() => {
|
|
12142
|
-
let t =
|
|
12142
|
+
let t = gt.value, n = e.api.getRowGroupColumns(), r = n.length > 0, i;
|
|
12143
12143
|
if (r && f.leftPinnedColumnName && (i = e.api.getColumn(f.leftPinnedColumnName || "")), r && !f.leftPinnedColumnName && (i = n.find((e) => !e.getColDef().hide), !i)) {
|
|
12144
12144
|
let t = K.find((e) => !e.hide && !e.rowGroup)?.field;
|
|
12145
12145
|
t && (i = e.api.getColumn(t));
|
|
12146
12146
|
}
|
|
12147
|
-
i ? (
|
|
12147
|
+
i ? (gt.value = i, Jt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (gt.value = null, Jt(null));
|
|
12148
12148
|
let a = t?.getColId();
|
|
12149
|
-
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)),
|
|
12150
|
-
let e =
|
|
12151
|
-
|
|
12149
|
+
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)), q.value = [...n].map((e) => e.getColId()), f.enableFocusView && !Fe) {
|
|
12150
|
+
let e = q.value.length > 0 ? q.value[0] : null;
|
|
12151
|
+
et.setFocusType(e);
|
|
12152
12152
|
}
|
|
12153
|
-
|
|
12153
|
+
le.value && A("column-row-group-changed", e);
|
|
12154
12154
|
});
|
|
12155
|
-
},
|
|
12155
|
+
}, zt = (e) => {
|
|
12156
12156
|
let t = e.column?.getColId() || "";
|
|
12157
|
-
if (t ===
|
|
12157
|
+
if (t === gt.value?.getColId()) {
|
|
12158
12158
|
e.api.setColumnsVisible([t], !1);
|
|
12159
12159
|
return;
|
|
12160
12160
|
}
|
|
12161
|
-
}, zt = (e) => {
|
|
12162
|
-
f.enableExpandOnRowClick && e.node.group && e.node.setExpanded(!e.node.expanded), A("row-clicked", e);
|
|
12163
12161
|
}, Bt = (e) => {
|
|
12164
|
-
|
|
12162
|
+
f.enableExpandOnRowClick && e.node.group && e.node.setExpanded(!e.node.expanded), A("row-clicked", e);
|
|
12165
12163
|
}, Vt = (e) => {
|
|
12166
|
-
e.
|
|
12167
|
-
}, Ht = (e) =>
|
|
12164
|
+
e.finished && (ut.value = [...e.api.getAllGridColumns()]), le.value && A("column-moved", e);
|
|
12165
|
+
}, Ht = (e) => {
|
|
12166
|
+
e.api && (vt.value = e.api.paginationGetCurrentPage() + 1, yt.value = e.api.paginationGetTotalPages());
|
|
12167
|
+
}, Ut = (e) => "allChildrenRowCount" in e && e.allChildrenRowCount || 0, Wt = (e) => {
|
|
12168
12168
|
let t = document.querySelector(`[data-horizontal-filter-field="${e}"]`);
|
|
12169
12169
|
if (t) {
|
|
12170
12170
|
let e = t.querySelector("button");
|
|
12171
12171
|
if (e) return e.click(), !0;
|
|
12172
12172
|
}
|
|
12173
12173
|
return !1;
|
|
12174
|
-
},
|
|
12174
|
+
}, Gt = k(pu), Kt = k({ loadingMessage: "One moment please..." }), qt = k((() => {
|
|
12175
12175
|
let e = {
|
|
12176
12176
|
headerName: "",
|
|
12177
12177
|
minWidth: 200,
|
|
@@ -12188,28 +12188,28 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12188
12188
|
displayCount: f.displayGroupCount,
|
|
12189
12189
|
formattedValue: e.valueFormatted,
|
|
12190
12190
|
rowNode: e.node,
|
|
12191
|
-
api:
|
|
12191
|
+
api: Y.value,
|
|
12192
12192
|
focusText: f.focusText,
|
|
12193
12193
|
cellParams: e
|
|
12194
12194
|
})
|
|
12195
12195
|
}
|
|
12196
12196
|
};
|
|
12197
12197
|
return f.autoGroupColumnDefOverrides && Object.assign(e, f.autoGroupColumnDefOverrides), e;
|
|
12198
|
-
})()),
|
|
12198
|
+
})()), Jt = (e) => {
|
|
12199
12199
|
if (!e) {
|
|
12200
|
-
|
|
12200
|
+
qt.value.headerName = "", qt.value.headerComponent = void 0, qt.value.context = null, qt.value.sortable = !1, qt.value.filter = void 0, qt.value.enableRowGroup = void 0;
|
|
12201
12201
|
return;
|
|
12202
12202
|
}
|
|
12203
|
-
|
|
12204
|
-
},
|
|
12203
|
+
qt.value.field = e.field, qt.value.headerName = e.headerName, qt.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : ef), qt.value.context = { dataType: e.context?.dataType || null }, qt.value.sortable = e.sortable, qt.value.filter = e.filter, qt.value.enableRowGroup = e.enableRowGroup, qt.value.onCellClicked = e.onCellClicked;
|
|
12204
|
+
}, Yt = (e) => {
|
|
12205
12205
|
if (e.node.group) return {
|
|
12206
12206
|
backgroundColor: "#F7F8F8",
|
|
12207
12207
|
...f.enableExpandOnRowClick ? { cursor: "pointer" } : {}
|
|
12208
12208
|
};
|
|
12209
|
-
},
|
|
12209
|
+
}, Xt = (e) => {
|
|
12210
12210
|
let t = e.node.rowIndex;
|
|
12211
12211
|
if (!(e.node.group || t == null)) return e.api.getDisplayedRowAtIndex(t + 1)?.group ? "pv-data-table-group-last-child" : void 0;
|
|
12212
|
-
},
|
|
12212
|
+
}, Zt = { Median: (e) => {
|
|
12213
12213
|
let t = e.values;
|
|
12214
12214
|
if (e.rowNode.leafGroup) return {
|
|
12215
12215
|
values: t,
|
|
@@ -12222,7 +12222,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12222
12222
|
};
|
|
12223
12223
|
} };
|
|
12224
12224
|
S(() => {
|
|
12225
|
-
|
|
12225
|
+
nn.value = document.querySelector("body");
|
|
12226
12226
|
let e = Array.isArray(f.rowData) && f.rowData.length > 0, t = typeof f.serverSideRowHandler == "function", n = typeof f.filterValuesSetHandler == "function";
|
|
12227
12227
|
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."), H.value = (e) => {
|
|
12228
12228
|
let t = [
|
|
@@ -12230,27 +12230,32 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12230
12230
|
"sortDescending",
|
|
12231
12231
|
"sortUnSort",
|
|
12232
12232
|
"rowUnGroup"
|
|
12233
|
-
], n = e.column &&
|
|
12233
|
+
], n = e.column && wt(e.column) ? gt.value : e.column;
|
|
12234
12234
|
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, te), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
12235
|
-
},
|
|
12235
|
+
}, se && (tt.value = (f.enableAdvancedFilter ? se.filter?.advancedFilterModel : se.filter?.filterModel) || null, q.value = se.rowGroup?.groupColIds || []);
|
|
12236
12236
|
});
|
|
12237
|
-
let
|
|
12238
|
-
let t =
|
|
12237
|
+
let Qt = (e) => {
|
|
12238
|
+
let t = Y.value;
|
|
12239
12239
|
if (!t) return;
|
|
12240
12240
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
12241
|
-
n && !rd(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !ot(r,
|
|
12241
|
+
n && !rd(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !ot(r, q.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
12242
|
+
let a = e.columnOrder?.orderedColIds;
|
|
12243
|
+
oe && a?.length && (ot(a, t.getAllGridColumns().map((e) => e.getColId())) || t.applyColumnState({
|
|
12244
|
+
state: a.map((e) => ({ colId: e })),
|
|
12245
|
+
applyOrder: !0
|
|
12246
|
+
}));
|
|
12242
12247
|
};
|
|
12243
12248
|
U(() => f.initialGridState, () => {
|
|
12244
12249
|
if (f.initialGridState) {
|
|
12245
12250
|
let e = Bu(f.initialGridState, K, f.enableAdvancedFilter);
|
|
12246
|
-
e &&
|
|
12251
|
+
e && Qt(e);
|
|
12247
12252
|
}
|
|
12248
12253
|
}, { deep: !0 });
|
|
12249
|
-
let
|
|
12250
|
-
|
|
12251
|
-
},
|
|
12254
|
+
let $t = (e) => {
|
|
12255
|
+
le.value = !0, A("first-data-rendered", e);
|
|
12256
|
+
}, en = (e) => L ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level === q.value.length - 2 : !1, tn = r(() => {
|
|
12252
12257
|
if (!L) return f.groupDefaultExpanded;
|
|
12253
|
-
}),
|
|
12258
|
+
}), nn = k(null), rn = k(null), { present: an } = zi("top-slot"), on = r(() => f.enableTopSlot && an.value), sn = r(() => on.value && f.tableSearchInline), cn = "42px", ln = r(() => [
|
|
12254
12259
|
f.tableSearchInline ? {
|
|
12255
12260
|
width: "360px",
|
|
12256
12261
|
maxWidth: "100%",
|
|
@@ -12259,15 +12264,15 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12259
12264
|
width: "40%",
|
|
12260
12265
|
maxWidth: "50%"
|
|
12261
12266
|
},
|
|
12262
|
-
|
|
12267
|
+
sn.value ? {
|
|
12263
12268
|
alignItems: "center",
|
|
12264
12269
|
display: "grid",
|
|
12265
|
-
minHeight:
|
|
12270
|
+
minHeight: cn
|
|
12266
12271
|
} : void 0,
|
|
12267
12272
|
f.customCssProperties?.tableSearchWrapper
|
|
12268
|
-
]),
|
|
12273
|
+
]), un = r(() => ({
|
|
12269
12274
|
placeholder: f.tableSearchPlaceholder,
|
|
12270
|
-
disabled: !
|
|
12275
|
+
disabled: !de.value,
|
|
12271
12276
|
searchStyle: f.tableSearchStyle
|
|
12272
12277
|
}));
|
|
12273
12278
|
return (t, r) => (D(), o("div", {
|
|
@@ -12296,17 +12301,17 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12296
12301
|
})) : a("", !0),
|
|
12297
12302
|
G(s("div", xf, [s("div", {
|
|
12298
12303
|
class: "pv-flex pv-space-between",
|
|
12299
|
-
style: x(
|
|
12304
|
+
style: x(sn.value ? "--flex-align: flex-start; --flex-wrap: wrap" : void 0)
|
|
12300
12305
|
}, [s("div", {
|
|
12301
12306
|
class: "pv-flex",
|
|
12302
|
-
style: x(
|
|
12307
|
+
style: x(sn.value ? "--flex-gap: 8px; --flex-wrap: wrap; flex: 1 1 0; min-width: 0" : "--flex-gap: 8px")
|
|
12303
12308
|
}, [e.enableTableSearch && e.tableSearchInline ? (D(), o("div", {
|
|
12304
12309
|
key: 0,
|
|
12305
|
-
style: x(
|
|
12306
|
-
}, [u(_f, b(p(
|
|
12310
|
+
style: x(ln.value)
|
|
12311
|
+
}, [u(_f, b(p(un.value)), null, 16)], 4)) : a("", !0), (D(), i(n, {
|
|
12307
12312
|
to: e.filterTeleportLocation,
|
|
12308
12313
|
disabled: !e.filterTeleportLocation
|
|
12309
|
-
}, [
|
|
12314
|
+
}, [pt.value.length > 0 && !f.enableInlineFilters ? (D(), i(Xd, {
|
|
12310
12315
|
key: 0,
|
|
12311
12316
|
"enable-focus-view": e.enableFocusView,
|
|
12312
12317
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -12317,7 +12322,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12317
12322
|
"max-horizontal-filters": f.maxHorizontalFilters,
|
|
12318
12323
|
"read-only": f.filterPanelReadOnly,
|
|
12319
12324
|
"disable-unselected-filters": f.disableUnselectedReadOnlyFilters,
|
|
12320
|
-
"wrap-horizontal-filters":
|
|
12325
|
+
"wrap-horizontal-filters": sn.value
|
|
12321
12326
|
}, null, 8, [
|
|
12322
12327
|
"enable-focus-view",
|
|
12323
12328
|
"enable-vertical-panel",
|
|
@@ -12330,9 +12335,9 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12330
12335
|
"wrap-horizontal-filters"
|
|
12331
12336
|
])) : a("", !0)], 8, ["to", "disabled"]))], 4), s("div", {
|
|
12332
12337
|
class: "pv-flex",
|
|
12333
|
-
style: x(
|
|
12338
|
+
style: x(sn.value ? {
|
|
12334
12339
|
"--flex-wrap": "wrap",
|
|
12335
|
-
minHeight:
|
|
12340
|
+
minHeight: cn
|
|
12336
12341
|
} : void 0)
|
|
12337
12342
|
}, [
|
|
12338
12343
|
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(lu, {
|
|
@@ -12342,25 +12347,25 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12342
12347
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0),
|
|
12343
12348
|
e.enableCsvExport ? (D(), i(lf, {
|
|
12344
12349
|
key: 1,
|
|
12345
|
-
getCsvData:
|
|
12350
|
+
getCsvData: Ot
|
|
12346
12351
|
})) : a("", !0),
|
|
12347
|
-
|
|
12352
|
+
sn.value ? (D(), o("div", {
|
|
12348
12353
|
key: 2,
|
|
12349
12354
|
class: y(e.hideTable ? "pv-hide" : "")
|
|
12350
12355
|
}, [j(t.$slots, "top-slot")], 2)) : a("", !0)
|
|
12351
|
-
], 4)], 4)], 512), [[re, e.enableGroupBySelector || !e.filterTeleportLocation || e.enableTableSearch && e.tableSearchInline ||
|
|
12356
|
+
], 4)], 4)], 512), [[re, e.enableGroupBySelector || !e.filterTeleportLocation || e.enableTableSearch && e.tableSearchInline || sn.value]]),
|
|
12352
12357
|
G(s("div", {
|
|
12353
12358
|
ref_key: "advancedFilterParentElement",
|
|
12354
|
-
ref:
|
|
12359
|
+
ref: rn,
|
|
12355
12360
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
12356
12361
|
}, null, 2), [[re, M.value && e.enableAdvancedFilter]]),
|
|
12357
|
-
!e.tableSearchInline && (e.enableTableSearch ||
|
|
12362
|
+
!e.tableSearchInline && (e.enableTableSearch || on.value) ? (D(), o("div", {
|
|
12358
12363
|
key: 1,
|
|
12359
12364
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
12360
12365
|
}, [e.enableTableSearch && !e.tableSearchInline ? (D(), o("div", {
|
|
12361
12366
|
key: 0,
|
|
12362
|
-
style: x(
|
|
12363
|
-
}, [u(_f, b(p(
|
|
12367
|
+
style: x(ln.value)
|
|
12368
|
+
}, [u(_f, b(p(un.value)), null, 16)], 4)) : a("", !0), on.value ? j(t.$slots, "top-slot", { key: 1 }) : a("", !0)], 2)) : a("", !0),
|
|
12364
12369
|
s("div", {
|
|
12365
12370
|
class: y(["pv-relative pv-stack-8", e.hideTable ? "pv-hide" : ""]),
|
|
12366
12371
|
style: {
|
|
@@ -12369,7 +12374,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12369
12374
|
"min-height": "0",
|
|
12370
12375
|
"overflow-x": "hidden"
|
|
12371
12376
|
}
|
|
12372
|
-
}, [u(R(
|
|
12377
|
+
}, [u(R(me), _({
|
|
12373
12378
|
ref: "gridRef",
|
|
12374
12379
|
class: ["pv-data-table", R(T)],
|
|
12375
12380
|
style: [{
|
|
@@ -12379,51 +12384,51 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12379
12384
|
domLayout: e.layout
|
|
12380
12385
|
}, R(L) ? { serverSideDatasource: R(L) } : {}, {
|
|
12381
12386
|
onCellValueChanged: r[2] ||= (e) => A("cell-value-changed", e),
|
|
12382
|
-
onColumnMoved:
|
|
12383
|
-
onColumnRowGroupChanged:
|
|
12384
|
-
onColumnValueChanged:
|
|
12385
|
-
onColumnVisible:
|
|
12386
|
-
onFilterChanged:
|
|
12387
|
+
onColumnMoved: Vt,
|
|
12388
|
+
onColumnRowGroupChanged: Rt,
|
|
12389
|
+
onColumnValueChanged: Lt,
|
|
12390
|
+
onColumnVisible: zt,
|
|
12391
|
+
onFilterChanged: St,
|
|
12387
12392
|
onFilterOpened: r[3] ||= (e) => A("filter-opened", e),
|
|
12388
|
-
onFirstDataRendered:
|
|
12389
|
-
onGridReady:
|
|
12390
|
-
onPaginationChanged:
|
|
12393
|
+
onFirstDataRendered: $t,
|
|
12394
|
+
onGridReady: xt,
|
|
12395
|
+
onPaginationChanged: Ht,
|
|
12391
12396
|
onRedoEnded: r[4] ||= (e) => A("redo-ended", e),
|
|
12392
12397
|
onRedoStarted: r[5] ||= (e) => A("redo-started", e),
|
|
12393
12398
|
onRowDataUpdated: r[6] ||= (e) => A("row-data-updated", e),
|
|
12394
|
-
onRowClicked:
|
|
12399
|
+
onRowClicked: Bt,
|
|
12395
12400
|
onRowSelected: r[7] ||= (e) => A("row-selected", e),
|
|
12396
12401
|
onSelectionChanged: r[8] ||= (e) => A("selection-changed", e),
|
|
12397
|
-
onSortChanged:
|
|
12402
|
+
onSortChanged: Ct,
|
|
12398
12403
|
onUndoEnded: r[9] ||= (e) => A("undo-ended", e),
|
|
12399
12404
|
onUndoStarted: r[10] ||= (e) => A("undo-started", e),
|
|
12400
|
-
aggFuncs:
|
|
12401
|
-
autoGroupColumnDef:
|
|
12405
|
+
aggFuncs: Zt,
|
|
12406
|
+
autoGroupColumnDef: qt.value,
|
|
12402
12407
|
columnDefs: R(K),
|
|
12403
12408
|
debug: e.debugMode,
|
|
12404
12409
|
defaultColDef: R(V),
|
|
12405
|
-
getChildCount:
|
|
12410
|
+
getChildCount: Ut,
|
|
12406
12411
|
getContextMenuItems: ee.value,
|
|
12407
12412
|
getMainMenuItems: H.value,
|
|
12408
|
-
getRowClass:
|
|
12409
|
-
getRowStyle:
|
|
12410
|
-
groupDefaultExpanded:
|
|
12413
|
+
getRowClass: Xt,
|
|
12414
|
+
getRowStyle: Yt,
|
|
12415
|
+
groupDefaultExpanded: tn.value,
|
|
12411
12416
|
groupDisplayType: "singleColumn",
|
|
12412
|
-
initialState: R(
|
|
12417
|
+
initialState: R(se) || void 0,
|
|
12413
12418
|
isGroupOpenByDefault: R(L) ? void 0 : f.isClientSideGroupOpenByDefault,
|
|
12414
|
-
isServerSideGroupOpenByDefault:
|
|
12419
|
+
isServerSideGroupOpenByDefault: en,
|
|
12415
12420
|
includeHiddenColumnsInAdvancedFilter: !0,
|
|
12416
12421
|
loading: R(L) ? !1 : e.isLoading,
|
|
12417
|
-
loadingCellRenderer:
|
|
12418
|
-
loadingCellRendererParams:
|
|
12422
|
+
loadingCellRenderer: Gt.value,
|
|
12423
|
+
loadingCellRendererParams: Kt.value,
|
|
12419
12424
|
maxConcurrentDatasourceRequests: R(L) ? -1 : void 0,
|
|
12420
12425
|
maintainColumnOrder: e.maintainColumnOrder,
|
|
12421
12426
|
modules: d,
|
|
12422
|
-
popupParent:
|
|
12427
|
+
popupParent: nn.value,
|
|
12423
12428
|
processCellForClipboard: e.processCellForClipboard,
|
|
12424
12429
|
processCellFromClipboard: e.processCellFromClipboard,
|
|
12425
12430
|
processDataFromClipboard: e.processDataFromClipboard,
|
|
12426
|
-
rowData:
|
|
12431
|
+
rowData: bt.value,
|
|
12427
12432
|
rowHeight: e.rowHeight,
|
|
12428
12433
|
rowModelType: R(L) ? "serverSide" : "clientSide",
|
|
12429
12434
|
rowSelection: e.rowSelection,
|
|
@@ -12448,15 +12453,158 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12448
12453
|
undoRedoCellEditing: e.undoRedoCellEditing,
|
|
12449
12454
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
12450
12455
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
12451
|
-
advancedFilterParent:
|
|
12452
|
-
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !
|
|
12456
|
+
advancedFilterParent: rn.value
|
|
12457
|
+
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !de.value ? (D(), o("div", Sf, [s("p", Cf, F(fe.value), 1)])) : a("", !0)], 2),
|
|
12453
12458
|
e.pagination ? (D(), i(df, { key: 2 })) : a("", !0)
|
|
12454
12459
|
], 4));
|
|
12455
12460
|
}
|
|
12456
|
-
}), Tf = {
|
|
12461
|
+
}), Tf = ["id"], Ef = {
|
|
12462
|
+
key: 0,
|
|
12463
|
+
class: "sort-divider-container"
|
|
12464
|
+
}, Df = ["data-label"], Of = ["onDrop"], kf = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, Af = { class: "pv-text-body-sm pv-text-tertiary" }, jf = { class: "pv-flex pv-full-width pv-sort-option" }, Mf = { class: "pv-text-body-sm" }, Nf = {
|
|
12465
|
+
key: 1,
|
|
12466
|
+
class: "pv-button-placeholder"
|
|
12467
|
+
}, Pf = "--divider--", Ff = "placeholder-", If = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
12468
|
+
__name: "PvSortableList",
|
|
12469
|
+
props: /* @__PURE__ */ g({
|
|
12470
|
+
options: { default: () => [] },
|
|
12471
|
+
activeOptionLimit: {},
|
|
12472
|
+
placeholderText: { default: "Add option" },
|
|
12473
|
+
showPlaceholders: {
|
|
12474
|
+
type: Boolean,
|
|
12475
|
+
default: !0
|
|
12476
|
+
}
|
|
12477
|
+
}, {
|
|
12478
|
+
modelValue: {
|
|
12479
|
+
required: !1,
|
|
12480
|
+
default: () => []
|
|
12481
|
+
},
|
|
12482
|
+
modelModifiers: {}
|
|
12483
|
+
}),
|
|
12484
|
+
emits: ["update:modelValue"],
|
|
12485
|
+
setup(e) {
|
|
12486
|
+
let n = e, c = V(e, "modelValue"), l = {
|
|
12487
|
+
id: Pf,
|
|
12488
|
+
text: "",
|
|
12489
|
+
disabled: !0
|
|
12490
|
+
}, d = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), f = r(() => !n.showPlaceholders || d.value === 0 ? [] : Array.from({ length: d.value }, (e, t) => ({
|
|
12491
|
+
id: `${Ff}${t}`,
|
|
12492
|
+
text: "",
|
|
12493
|
+
disabled: !0,
|
|
12494
|
+
isPlaceholder: !0
|
|
12495
|
+
}))), p = r(() => {
|
|
12496
|
+
let e = new Set(c.value.map((e) => e.id));
|
|
12497
|
+
return [
|
|
12498
|
+
...c.value,
|
|
12499
|
+
...f.value,
|
|
12500
|
+
l,
|
|
12501
|
+
...n.options.filter((t) => !e.has(t.id))
|
|
12502
|
+
];
|
|
12503
|
+
}), m = ee("sortableListRef"), h = ee("containerRef"), g = null, _ = null, v = () => {
|
|
12504
|
+
if (!m.value) return;
|
|
12505
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === Pf);
|
|
12506
|
+
t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith("placeholder-")), c.value = e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
12507
|
+
};
|
|
12508
|
+
T(() => {
|
|
12509
|
+
m.value && (g = new st(m.value, {
|
|
12510
|
+
animation: 200,
|
|
12511
|
+
filter: `#${Pf}, [id^="placeholder-"]`,
|
|
12512
|
+
dragoverBubble: !0,
|
|
12513
|
+
onStart: (e) => {
|
|
12514
|
+
_ = e.item;
|
|
12515
|
+
},
|
|
12516
|
+
onMove: (e) => {
|
|
12517
|
+
let t = e.related;
|
|
12518
|
+
if (t?.id === Pf || t?.id?.startsWith("placeholder-")) return !1;
|
|
12519
|
+
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
12520
|
+
return r && w(r);
|
|
12521
|
+
},
|
|
12522
|
+
onEnd: () => {
|
|
12523
|
+
_ = null, v();
|
|
12524
|
+
},
|
|
12525
|
+
onUpdate: v
|
|
12526
|
+
}));
|
|
12527
|
+
}), E(() => {
|
|
12528
|
+
g &&= (g.destroy(), null);
|
|
12529
|
+
});
|
|
12530
|
+
let b = (e) => {
|
|
12531
|
+
e.preventDefault(), _ && e.currentTarget.classList.add("placeholder-drag-over");
|
|
12532
|
+
}, S = (e) => {
|
|
12533
|
+
e.currentTarget.classList.remove("placeholder-drag-over");
|
|
12534
|
+
}, C = (e, t) => {
|
|
12535
|
+
if (e.preventDefault(), e.currentTarget.classList.remove("placeholder-drag-over"), _) {
|
|
12536
|
+
let e = _.id, r = n.options.find((t) => t.id === e);
|
|
12537
|
+
if (r && !w(r)) {
|
|
12538
|
+
let e = [...c.value];
|
|
12539
|
+
e.splice(t - 1, 0, r), c.value = e.slice(0, n.activeOptionLimit || Infinity), _.parentNode && _.parentNode.removeChild(_);
|
|
12540
|
+
}
|
|
12541
|
+
}
|
|
12542
|
+
}, w = (e) => c.value.some((t) => t.id === e.id), O = r(() => n.activeOptionLimit ? c.value.length >= n.activeOptionLimit : !1), k = (e) => {
|
|
12543
|
+
if (w(e)) c.value = c.value.filter((t) => t.id !== e.id);
|
|
12544
|
+
else {
|
|
12545
|
+
if (n.activeOptionLimit && c.value.length >= n.activeOptionLimit) return;
|
|
12546
|
+
c.value = c.value.concat([e]);
|
|
12547
|
+
}
|
|
12548
|
+
}, j = (e) => !w(e) && n.activeOptionLimit && c.value.length >= n.activeOptionLimit || e.disabled, M = (e) => {
|
|
12549
|
+
let t = { padding: "4px 8px" };
|
|
12550
|
+
return w(e) && (t.backgroundColor = "#E4F8F6", t.borderColor = "#16696D"), t;
|
|
12551
|
+
}, N = (e) => {
|
|
12552
|
+
let t = {};
|
|
12553
|
+
return j(e) && (t.backgroundColor = "transparent"), !w(e) && !j(e) ? t.color = "#16696D" : t.color = "#89989B", t;
|
|
12554
|
+
};
|
|
12555
|
+
return (e, r) => (D(), o("div", {
|
|
12556
|
+
ref_key: "containerRef",
|
|
12557
|
+
ref: h
|
|
12558
|
+
}, [s("ul", {
|
|
12559
|
+
ref_key: "sortableListRef",
|
|
12560
|
+
ref: m,
|
|
12561
|
+
role: "list"
|
|
12562
|
+
}, [(D(!0), o(t, null, A(p.value, (e) => (D(), o("li", {
|
|
12563
|
+
key: e.id,
|
|
12564
|
+
id: e.id,
|
|
12565
|
+
class: "pv-stack-4"
|
|
12566
|
+
}, [e.id === Pf ? (D(), o("div", Ef, [s("div", {
|
|
12567
|
+
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
12568
|
+
"data-label": O.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
12569
|
+
}, null, 8, Df)])) : e.id.includes(Ff) ? (D(), o("div", {
|
|
12570
|
+
key: 1,
|
|
12571
|
+
class: "placeholder-zone",
|
|
12572
|
+
onDragover: r[0] ||= (e) => b(e),
|
|
12573
|
+
onDragleave: r[1] ||= (e) => S(e),
|
|
12574
|
+
onDrop: (t) => C(t, parseInt(e.id.split("-")[1]) + 1)
|
|
12575
|
+
}, [s("div", kf, [s("span", Af, F(n.placeholderText), 1)])], 40, Of)) : (D(), o("div", {
|
|
12576
|
+
key: 2,
|
|
12577
|
+
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !w(e) && O.value ? "pv-menu-item-disabled" : ""]),
|
|
12578
|
+
style: x(M(e))
|
|
12579
|
+
}, [s("div", jf, [
|
|
12580
|
+
u(Nn, {
|
|
12581
|
+
class: y(w(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12582
|
+
name: "reorder"
|
|
12583
|
+
}, null, 8, ["class"]),
|
|
12584
|
+
e.icon ? (D(), i(Nn, {
|
|
12585
|
+
key: 0,
|
|
12586
|
+
class: y(w(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12587
|
+
name: e.icon
|
|
12588
|
+
}, null, 8, ["class", "name"])) : a("", !0),
|
|
12589
|
+
s("span", Mf, F(e.text), 1)
|
|
12590
|
+
]), j(e) ? (D(), o("div", Nf)) : (D(), i(Ln, {
|
|
12591
|
+
key: 0,
|
|
12592
|
+
"left-icon": w(e) ? "remove-circle" : "add-circle",
|
|
12593
|
+
ariaLabel: w(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
12594
|
+
variant: "ghost",
|
|
12595
|
+
style: x(N(e)),
|
|
12596
|
+
onClick: (t) => k(e)
|
|
12597
|
+
}, null, 8, [
|
|
12598
|
+
"left-icon",
|
|
12599
|
+
"ariaLabel",
|
|
12600
|
+
"style",
|
|
12601
|
+
"onClick"
|
|
12602
|
+
]))], 6))], 8, Tf))), 128))], 512)], 512));
|
|
12603
|
+
}
|
|
12604
|
+
}), [["__scopeId", "data-v-34615cd0"]]), Lf = {
|
|
12457
12605
|
class: "pv-flex pv-full-width pv-space-between",
|
|
12458
12606
|
style: { "white-space": "nowrap" }
|
|
12459
|
-
},
|
|
12607
|
+
}, Rf = { class: "pv-text-body-md" }, zf = /* @__PURE__ */ d({
|
|
12460
12608
|
inheritAttrs: !1,
|
|
12461
12609
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
12462
12610
|
props: {
|
|
@@ -12465,24 +12613,31 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12465
12613
|
context: {}
|
|
12466
12614
|
},
|
|
12467
12615
|
setup(e) {
|
|
12468
|
-
return (t, n) => (D(), o("div",
|
|
12616
|
+
return (t, n) => (D(), o("div", Lf, [s("span", Rf, F(e.text), 1), e.context?.rightIcon ? (D(), i(Nn, {
|
|
12469
12617
|
key: 0,
|
|
12470
12618
|
name: e.context.rightIcon,
|
|
12471
12619
|
class: "pv-text-subdued"
|
|
12472
12620
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
12473
12621
|
}
|
|
12474
|
-
}),
|
|
12622
|
+
}), Bf = { class: "pv-relative" }, Vf = {
|
|
12475
12623
|
role: "list",
|
|
12476
12624
|
class: "pv-relative"
|
|
12477
|
-
},
|
|
12625
|
+
}, Hf = ["data-active"], Uf = ["data-active"], Wf = { style: { cursor: "pointer" } }, Gf = {
|
|
12626
|
+
key: 0,
|
|
12627
|
+
role: "list"
|
|
12628
|
+
}, Kf = /* @__PURE__ */ d({
|
|
12478
12629
|
__name: "PvTableOptionsPanel",
|
|
12479
12630
|
props: {
|
|
12480
12631
|
groupedModeEnabled: { type: Boolean },
|
|
12481
12632
|
tableConfigOptions: {}
|
|
12482
12633
|
},
|
|
12483
|
-
emits: [
|
|
12634
|
+
emits: [
|
|
12635
|
+
"toggle-group",
|
|
12636
|
+
"table-overlay-change",
|
|
12637
|
+
"column-config-change"
|
|
12638
|
+
],
|
|
12484
12639
|
setup(e, { emit: n }) {
|
|
12485
|
-
let i = e, c = n, { popoverPositionStyle:
|
|
12640
|
+
let i = e, c = n, l = m(jl, P(null)), d = m(Ml, k(null)), f = m(Ll, k(null)), { popoverPositionStyle: p, updateRects: h, triggerRef: g, popoverRef: _ } = Sd({
|
|
12486
12641
|
alignment: "top",
|
|
12487
12642
|
popoverCssProperties: {
|
|
12488
12643
|
maxWidth: "300px",
|
|
@@ -12490,40 +12645,72 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12490
12645
|
transform: "translateX(-100%)"
|
|
12491
12646
|
},
|
|
12492
12647
|
useTeleport: !0
|
|
12493
|
-
}),
|
|
12494
|
-
U(
|
|
12495
|
-
e && (
|
|
12648
|
+
}), v = k(!1), b = k(null), x = k(null);
|
|
12649
|
+
U(x, (e) => {
|
|
12650
|
+
e && (_.value = e);
|
|
12496
12651
|
});
|
|
12497
|
-
let
|
|
12652
|
+
let S = r(() => (i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => ({
|
|
12498
12653
|
id: e.field,
|
|
12499
12654
|
text: e.title,
|
|
12500
12655
|
context: { rightIcon: e.icon }
|
|
12501
|
-
}))),
|
|
12502
|
-
U(
|
|
12656
|
+
}))), C = r(() => S.value.length > 0), w = k((i.tableConfigOptions?.tableOverlayOptions ?? []).filter((e) => e.defaultSelected !== !1).map((e) => e.field));
|
|
12657
|
+
U(w, (e) => {
|
|
12503
12658
|
c("table-overlay-change", e);
|
|
12504
12659
|
}, { immediate: !0 });
|
|
12505
|
-
let
|
|
12506
|
-
|
|
12507
|
-
},
|
|
12508
|
-
c("toggle-group", !i.groupedModeEnabled),
|
|
12509
|
-
},
|
|
12510
|
-
|
|
12511
|
-
},
|
|
12512
|
-
if (
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
return;
|
|
12516
|
-
}
|
|
12517
|
-
h.value = !0, f.value = document.getElementById("table-config-overlay"), d();
|
|
12660
|
+
let T = () => {
|
|
12661
|
+
v.value = !1, b.value = null;
|
|
12662
|
+
}, E = () => {
|
|
12663
|
+
c("toggle-group", !i.groupedModeEnabled), T();
|
|
12664
|
+
}, O = () => {
|
|
12665
|
+
v.value = !v.value, b.value = null;
|
|
12666
|
+
}, j = (e) => {
|
|
12667
|
+
if (b.value === e) {
|
|
12668
|
+
b.value = null;
|
|
12669
|
+
return;
|
|
12518
12670
|
}
|
|
12671
|
+
e === "columns" && B(), b.value = e, g.value = document.getElementById(`table-config-${e}`), h();
|
|
12672
|
+
}, M = r(() => f.value?.getColId() ?? null), N = r(() => (d.value ?? []).filter((e) => e.getColDef().context?.visibilityState === void 0 && e.getColId() !== M.value)), F = r(() => !!i.tableConfigOptions?.enableColumnConfiguration && N.value.length > 0), I = (e) => {
|
|
12673
|
+
let t = e.getColDef();
|
|
12674
|
+
return {
|
|
12675
|
+
id: e.getColId(),
|
|
12676
|
+
text: t.headerName || e.getColId(),
|
|
12677
|
+
icon: Zo(t.context?.dataType || null) || "circle-chevron-down"
|
|
12678
|
+
};
|
|
12679
|
+
}, L = r(() => N.value.map(I)), z = k([]), B = () => {
|
|
12680
|
+
z.value = N.value.filter((e) => e.isVisible()).map(I);
|
|
12681
|
+
};
|
|
12682
|
+
U(N, B);
|
|
12683
|
+
let V = (e) => {
|
|
12684
|
+
let t = e.getAllGridColumns();
|
|
12685
|
+
return {
|
|
12686
|
+
orderedColIds: t.map((e) => e.getColId()),
|
|
12687
|
+
hiddenColIds: t.filter((e) => !e.isVisible() && e.getColId() !== M.value).map((e) => e.getColId())
|
|
12688
|
+
};
|
|
12689
|
+
}, H = (e) => {
|
|
12690
|
+
let t = l.value;
|
|
12691
|
+
if (!t) return;
|
|
12692
|
+
let n = e.map((e) => String(e.id));
|
|
12693
|
+
if (ot(n, z.value.map((e) => String(e.id)))) return;
|
|
12694
|
+
let r = V(t), i = new Set(N.value.map((e) => e.getColId())), a = new Set(n), o = r.orderedColIds.filter((e) => i.has(e) && !a.has(e)), s = new Set(o), u = [...n, ...o], d = 0, f = r.orderedColIds.map((e) => i.has(e) ? u[d++] : e);
|
|
12695
|
+
t.applyColumnState({
|
|
12696
|
+
state: f.map((e) => i.has(e) ? {
|
|
12697
|
+
colId: e,
|
|
12698
|
+
hide: s.has(e)
|
|
12699
|
+
} : { colId: e }),
|
|
12700
|
+
applyOrder: !0
|
|
12701
|
+
}), B(), c("column-config-change", {
|
|
12702
|
+
...V(t),
|
|
12703
|
+
previousOrderedColIds: r.orderedColIds,
|
|
12704
|
+
previousHiddenColIds: r.hiddenColIds
|
|
12705
|
+
});
|
|
12519
12706
|
};
|
|
12520
|
-
return (n, r) => (D(), o(t, null, [G((D(), o("div",
|
|
12521
|
-
open:
|
|
12707
|
+
return (n, r) => (D(), o(t, null, [G((D(), o("div", Bf, [u(Ea, {
|
|
12708
|
+
open: v.value,
|
|
12522
12709
|
label: "Table Configuration",
|
|
12523
12710
|
icon: "settings",
|
|
12524
|
-
onClick:
|
|
12711
|
+
onClick: O
|
|
12525
12712
|
}, null, 8, ["open"]), u(go, {
|
|
12526
|
-
class: y({ "pv-hide": !
|
|
12713
|
+
class: y({ "pv-hide": !v.value }),
|
|
12527
12714
|
"css-custom-properties": {
|
|
12528
12715
|
minWidth: "240px",
|
|
12529
12716
|
zIndex: 5
|
|
@@ -12531,54 +12718,70 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12531
12718
|
alignment: "right",
|
|
12532
12719
|
isList: !0
|
|
12533
12720
|
}, {
|
|
12534
|
-
default: W(() => [r[
|
|
12721
|
+
default: W(() => [r[4] ||= s("div", { class: "pv-border-bottom" }, [s("p", {
|
|
12535
12722
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
12536
12723
|
style: {
|
|
12537
12724
|
"padding-top": "4px",
|
|
12538
12725
|
"padding-bottom": "12px"
|
|
12539
12726
|
}
|
|
12540
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12727
|
+
}, " Table Configuration ")], -1), s("ul", Vf, [
|
|
12728
|
+
C.value ? (D(), o("li", {
|
|
12729
|
+
key: 0,
|
|
12730
|
+
id: "table-config-overlay",
|
|
12731
|
+
"data-active": b.value === "overlay" ? !0 : null,
|
|
12732
|
+
style: { cursor: "pointer" }
|
|
12733
|
+
}, [u(mo, {
|
|
12734
|
+
config: { variant: "icon" },
|
|
12735
|
+
id: "table-config-overlay-item",
|
|
12736
|
+
text: "Table Overlay",
|
|
12737
|
+
icon: "layers-2",
|
|
12738
|
+
"class-list": ["pv-menu-nested", b.value === "overlay" ? "pv-menu-nested-active" : ""],
|
|
12739
|
+
onHandleSelected: r[0] ||= (e) => j("overlay")
|
|
12740
|
+
}, null, 8, ["class-list"])], 8, Hf)) : a("", !0),
|
|
12741
|
+
F.value ? (D(), o("li", {
|
|
12742
|
+
key: 1,
|
|
12743
|
+
id: "table-config-columns",
|
|
12744
|
+
"data-active": b.value === "columns" ? !0 : null,
|
|
12745
|
+
style: { cursor: "pointer" }
|
|
12746
|
+
}, [u(mo, {
|
|
12747
|
+
config: { variant: "icon" },
|
|
12748
|
+
id: "table-config-columns-item",
|
|
12749
|
+
text: "Columns",
|
|
12750
|
+
icon: "columns-3",
|
|
12751
|
+
"class-list": ["pv-menu-nested", b.value === "columns" ? "pv-menu-nested-active" : ""],
|
|
12752
|
+
onHandleSelected: r[1] ||= (e) => j("columns")
|
|
12753
|
+
}, null, 8, ["class-list"])], 8, Uf)) : a("", !0),
|
|
12754
|
+
s("li", Wf, [u(mo, {
|
|
12755
|
+
config: { variant: "icon" },
|
|
12756
|
+
id: "table-config-group-toggle",
|
|
12757
|
+
class: "pv-text-subdued",
|
|
12758
|
+
text: e.groupedModeEnabled ? "Ungroup Table" : "Group Table to Match Chart",
|
|
12759
|
+
icon: e.groupedModeEnabled ? "ungroup" : "group",
|
|
12760
|
+
onHandleSelected: E
|
|
12761
|
+
}, null, 8, ["text", "icon"])])
|
|
12762
|
+
])]),
|
|
12560
12763
|
_: 1
|
|
12561
|
-
}, 8, ["class"])])), [[R(et), [
|
|
12764
|
+
}, 8, ["class"])])), [[R(et), [T, { ignore: [".pv-popover"] }]]]), u(go, {
|
|
12562
12765
|
ref_key: "nestedMenuPopoverRef",
|
|
12563
|
-
ref:
|
|
12564
|
-
class: y({ "pv-hide": !(
|
|
12766
|
+
ref: x,
|
|
12767
|
+
class: y({ "pv-hide": !(v.value && b.value !== null) }),
|
|
12565
12768
|
"css-custom-properties": {
|
|
12566
12769
|
width: "auto",
|
|
12567
12770
|
maxWidth: "260px",
|
|
12568
|
-
...R(
|
|
12771
|
+
...R(p)
|
|
12569
12772
|
},
|
|
12570
|
-
isList:
|
|
12773
|
+
isList: b.value !== "columns"
|
|
12571
12774
|
}, {
|
|
12572
|
-
default: W(() => [
|
|
12775
|
+
default: W(() => [b.value === "overlay" ? (D(), o("ul", Gf, [(D(!0), o(t, null, A(S.value, (e) => (D(), o("li", { key: e.id }, [u(mo, {
|
|
12573
12776
|
id: e.id,
|
|
12574
12777
|
config: {
|
|
12575
12778
|
variant: "checkbox",
|
|
12576
|
-
renderer:
|
|
12779
|
+
renderer: zf
|
|
12577
12780
|
},
|
|
12578
12781
|
text: e.text,
|
|
12579
12782
|
context: e.context,
|
|
12580
|
-
selectedIds:
|
|
12581
|
-
"onUpdate:selectedIds": r[
|
|
12783
|
+
selectedIds: w.value,
|
|
12784
|
+
"onUpdate:selectedIds": r[2] ||= (e) => w.value = e,
|
|
12582
12785
|
"class-list": ["pv-table-overlay-option"]
|
|
12583
12786
|
}, null, 8, [
|
|
12584
12787
|
"id",
|
|
@@ -12586,22 +12789,43 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12586
12789
|
"text",
|
|
12587
12790
|
"context",
|
|
12588
12791
|
"selectedIds"
|
|
12589
|
-
])]))), 128))])
|
|
12792
|
+
])]))), 128))])) : b.value === "columns" ? (D(), o("div", {
|
|
12793
|
+
key: 1,
|
|
12794
|
+
class: "pv-inset-square-8",
|
|
12795
|
+
role: "dialog",
|
|
12796
|
+
"aria-label": "Column options",
|
|
12797
|
+
onKeydown: r[3] ||= ie(K((e) => b.value = null, ["stop"]), ["esc"])
|
|
12798
|
+
}, [r[5] ||= s("p", {
|
|
12799
|
+
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
12800
|
+
style: {
|
|
12801
|
+
"padding-left": "2px",
|
|
12802
|
+
"padding-bottom": "6px"
|
|
12803
|
+
}
|
|
12804
|
+
}, " Currently Viewing ", -1), u(If, {
|
|
12805
|
+
modelValue: z.value,
|
|
12806
|
+
options: L.value,
|
|
12807
|
+
showPlaceholders: !1,
|
|
12808
|
+
"onUpdate:modelValue": H
|
|
12809
|
+
}, null, 8, ["modelValue", "options"])], 32)) : a("", !0)]),
|
|
12590
12810
|
_: 1
|
|
12591
|
-
}, 8, [
|
|
12811
|
+
}, 8, [
|
|
12812
|
+
"class",
|
|
12813
|
+
"css-custom-properties",
|
|
12814
|
+
"isList"
|
|
12815
|
+
])], 64));
|
|
12592
12816
|
}
|
|
12593
|
-
}),
|
|
12817
|
+
}), qf = { class: "pv-chart-benchmark-chips pv-flex-vertical" }, Jf = ["data-group-name"], Yf = { class: "pv-chart-chip-section-label pv-chart-benchmark-chip-section-label" }, Xf = ["data-loading"], Zf = { class: "pv-chart-chip-label pv-flex-item" }, Qf = { class: "pv-chart-chip-value" }, $f = /* @__PURE__ */ d({
|
|
12594
12818
|
__name: "PvBenchmarkChips",
|
|
12595
12819
|
props: { sections: {} },
|
|
12596
12820
|
emits: ["chip-hover"],
|
|
12597
12821
|
setup(e, { emit: n }) {
|
|
12598
12822
|
let r = n;
|
|
12599
|
-
return (n, c) => (D(), o("div",
|
|
12823
|
+
return (n, c) => (D(), o("div", qf, [(D(!0), o(t, null, A(e.sections, (e) => (D(), o("div", {
|
|
12600
12824
|
key: e.groupName,
|
|
12601
12825
|
"data-testid": "chip-section",
|
|
12602
12826
|
"data-group-name": e.groupName,
|
|
12603
12827
|
class: "pv-flex-vertical"
|
|
12604
|
-
}, [s("p",
|
|
12828
|
+
}, [s("p", Yf, F(e.groupName), 1), (D(!0), o(t, null, A(e.chips, (e) => (D(), o("div", _({
|
|
12605
12829
|
key: e.key,
|
|
12606
12830
|
"data-testid": "benchmark-chip",
|
|
12607
12831
|
class: "pv-chart-benchmark-chip pv-flex pv-bordered pv-inset-square-8",
|
|
@@ -12628,8 +12852,8 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12628
12852
|
class: "pv-chart-benchmark-chip-accent",
|
|
12629
12853
|
style: x({ backgroundColor: e.color })
|
|
12630
12854
|
}, null, 4)) : a("", !0),
|
|
12631
|
-
s("span",
|
|
12632
|
-
s("span",
|
|
12855
|
+
s("span", Zf, F(e.label), 1),
|
|
12856
|
+
s("span", Qf, F(e.formattedValue), 1),
|
|
12633
12857
|
e.excludeFromCrossline ? (D(), i(R(Wi), {
|
|
12634
12858
|
key: 1,
|
|
12635
12859
|
"data-testid": "benchmark-chip-unit-mismatch-tooltip",
|
|
@@ -12652,159 +12876,16 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12652
12876
|
} }, " Shown in different units than the chart, so no line is drawn for this benchmark. ", -1)]]),
|
|
12653
12877
|
_: 1
|
|
12654
12878
|
})) : a("", !0)
|
|
12655
|
-
], 64))], 16,
|
|
12656
|
-
}
|
|
12657
|
-
}), Vf = ["id"], Hf = {
|
|
12658
|
-
key: 0,
|
|
12659
|
-
class: "sort-divider-container"
|
|
12660
|
-
}, Uf = ["data-label"], Wf = ["onDrop"], Gf = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, Kf = { class: "pv-text-body-sm pv-text-tertiary" }, qf = { class: "pv-flex pv-full-width pv-sort-option" }, Jf = { class: "pv-text-body-sm" }, Yf = {
|
|
12661
|
-
key: 1,
|
|
12662
|
-
class: "pv-button-placeholder"
|
|
12663
|
-
}, Xf = "--divider--", Zf = "placeholder-", Qf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
12664
|
-
__name: "PvSortableList",
|
|
12665
|
-
props: /* @__PURE__ */ g({
|
|
12666
|
-
options: { default: () => [] },
|
|
12667
|
-
activeOptionLimit: {},
|
|
12668
|
-
placeholderText: { default: "Add option" },
|
|
12669
|
-
showPlaceholders: {
|
|
12670
|
-
type: Boolean,
|
|
12671
|
-
default: !0
|
|
12672
|
-
}
|
|
12673
|
-
}, {
|
|
12674
|
-
modelValue: {
|
|
12675
|
-
required: !1,
|
|
12676
|
-
default: () => []
|
|
12677
|
-
},
|
|
12678
|
-
modelModifiers: {}
|
|
12679
|
-
}),
|
|
12680
|
-
emits: ["update:modelValue"],
|
|
12681
|
-
setup(e) {
|
|
12682
|
-
let n = e, c = V(e, "modelValue"), l = {
|
|
12683
|
-
id: Xf,
|
|
12684
|
-
text: "",
|
|
12685
|
-
disabled: !0
|
|
12686
|
-
}, d = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), f = r(() => !n.showPlaceholders || d.value === 0 ? [] : Array.from({ length: d.value }, (e, t) => ({
|
|
12687
|
-
id: `${Zf}${t}`,
|
|
12688
|
-
text: "",
|
|
12689
|
-
disabled: !0,
|
|
12690
|
-
isPlaceholder: !0
|
|
12691
|
-
}))), p = r(() => {
|
|
12692
|
-
let e = new Set(c.value.map((e) => e.id));
|
|
12693
|
-
return [
|
|
12694
|
-
...c.value,
|
|
12695
|
-
...f.value,
|
|
12696
|
-
l,
|
|
12697
|
-
...n.options.filter((t) => !e.has(t.id))
|
|
12698
|
-
];
|
|
12699
|
-
}), m = ee("sortableListRef"), h = ee("containerRef"), g = null, _ = null, v = () => {
|
|
12700
|
-
if (!m.value) return;
|
|
12701
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === Xf);
|
|
12702
|
-
t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith("placeholder-")), c.value = e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
12703
|
-
};
|
|
12704
|
-
T(() => {
|
|
12705
|
-
m.value && (g = new st(m.value, {
|
|
12706
|
-
animation: 200,
|
|
12707
|
-
filter: `#${Xf}, [id^="placeholder-"]`,
|
|
12708
|
-
dragoverBubble: !0,
|
|
12709
|
-
onStart: (e) => {
|
|
12710
|
-
_ = e.item;
|
|
12711
|
-
},
|
|
12712
|
-
onMove: (e) => {
|
|
12713
|
-
let t = e.related;
|
|
12714
|
-
if (t?.id === Xf || t?.id?.startsWith("placeholder-")) return !1;
|
|
12715
|
-
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
12716
|
-
return r && w(r);
|
|
12717
|
-
},
|
|
12718
|
-
onEnd: () => {
|
|
12719
|
-
_ = null, v();
|
|
12720
|
-
},
|
|
12721
|
-
onUpdate: v
|
|
12722
|
-
}));
|
|
12723
|
-
}), E(() => {
|
|
12724
|
-
g &&= (g.destroy(), null);
|
|
12725
|
-
});
|
|
12726
|
-
let b = (e) => {
|
|
12727
|
-
e.preventDefault(), _ && e.currentTarget.classList.add("placeholder-drag-over");
|
|
12728
|
-
}, S = (e) => {
|
|
12729
|
-
e.currentTarget.classList.remove("placeholder-drag-over");
|
|
12730
|
-
}, C = (e, t) => {
|
|
12731
|
-
if (e.preventDefault(), e.currentTarget.classList.remove("placeholder-drag-over"), _) {
|
|
12732
|
-
let e = _.id, r = n.options.find((t) => t.id === e);
|
|
12733
|
-
if (r && !w(r)) {
|
|
12734
|
-
let e = [...c.value];
|
|
12735
|
-
e.splice(t - 1, 0, r), c.value = e.slice(0, n.activeOptionLimit || Infinity), _.parentNode && _.parentNode.removeChild(_);
|
|
12736
|
-
}
|
|
12737
|
-
}
|
|
12738
|
-
}, w = (e) => c.value.some((t) => t.id === e.id), O = r(() => n.activeOptionLimit ? c.value.length >= n.activeOptionLimit : !1), k = (e) => {
|
|
12739
|
-
if (w(e)) c.value = c.value.filter((t) => t.id !== e.id);
|
|
12740
|
-
else {
|
|
12741
|
-
if (n.activeOptionLimit && c.value.length >= n.activeOptionLimit) return;
|
|
12742
|
-
c.value = c.value.concat([e]);
|
|
12743
|
-
}
|
|
12744
|
-
}, j = (e) => !w(e) && n.activeOptionLimit && c.value.length >= n.activeOptionLimit || e.disabled, M = (e) => {
|
|
12745
|
-
let t = { padding: "4px 8px" };
|
|
12746
|
-
return w(e) && (t.backgroundColor = "#E4F8F6", t.borderColor = "#16696D"), t;
|
|
12747
|
-
}, N = (e) => {
|
|
12748
|
-
let t = {};
|
|
12749
|
-
return j(e) && (t.backgroundColor = "transparent"), !w(e) && !j(e) ? t.color = "#16696D" : t.color = "#89989B", t;
|
|
12750
|
-
};
|
|
12751
|
-
return (e, r) => (D(), o("div", {
|
|
12752
|
-
ref_key: "containerRef",
|
|
12753
|
-
ref: h
|
|
12754
|
-
}, [s("ul", {
|
|
12755
|
-
ref_key: "sortableListRef",
|
|
12756
|
-
ref: m,
|
|
12757
|
-
role: "list"
|
|
12758
|
-
}, [(D(!0), o(t, null, A(p.value, (e) => (D(), o("li", {
|
|
12759
|
-
key: e.id,
|
|
12760
|
-
id: e.id,
|
|
12761
|
-
class: "pv-stack-4"
|
|
12762
|
-
}, [e.id === Xf ? (D(), o("div", Hf, [s("div", {
|
|
12763
|
-
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
12764
|
-
"data-label": O.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
12765
|
-
}, null, 8, Uf)])) : e.id.includes(Zf) ? (D(), o("div", {
|
|
12766
|
-
key: 1,
|
|
12767
|
-
class: "placeholder-zone",
|
|
12768
|
-
onDragover: r[0] ||= (e) => b(e),
|
|
12769
|
-
onDragleave: r[1] ||= (e) => S(e),
|
|
12770
|
-
onDrop: (t) => C(t, parseInt(e.id.split("-")[1]) + 1)
|
|
12771
|
-
}, [s("div", Gf, [s("span", Kf, F(n.placeholderText), 1)])], 40, Wf)) : (D(), o("div", {
|
|
12772
|
-
key: 2,
|
|
12773
|
-
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !w(e) && O.value ? "pv-menu-item-disabled" : ""]),
|
|
12774
|
-
style: x(M(e))
|
|
12775
|
-
}, [s("div", qf, [
|
|
12776
|
-
u(Nn, {
|
|
12777
|
-
class: y(w(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12778
|
-
name: "reorder"
|
|
12779
|
-
}, null, 8, ["class"]),
|
|
12780
|
-
e.icon ? (D(), i(Nn, {
|
|
12781
|
-
key: 0,
|
|
12782
|
-
class: y(w(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12783
|
-
name: e.icon
|
|
12784
|
-
}, null, 8, ["class", "name"])) : a("", !0),
|
|
12785
|
-
s("span", Jf, F(e.text), 1)
|
|
12786
|
-
]), j(e) ? (D(), o("div", Yf)) : (D(), i(Ln, {
|
|
12787
|
-
key: 0,
|
|
12788
|
-
"left-icon": w(e) ? "remove-circle" : "add-circle",
|
|
12789
|
-
ariaLabel: w(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
12790
|
-
variant: "ghost",
|
|
12791
|
-
style: x(N(e)),
|
|
12792
|
-
onClick: (t) => k(e)
|
|
12793
|
-
}, null, 8, [
|
|
12794
|
-
"left-icon",
|
|
12795
|
-
"ariaLabel",
|
|
12796
|
-
"style",
|
|
12797
|
-
"onClick"
|
|
12798
|
-
]))], 6))], 8, Vf))), 128))], 512)], 512));
|
|
12879
|
+
], 64))], 16, Xf))), 128))], 8, Jf))), 128))]));
|
|
12799
12880
|
}
|
|
12800
|
-
}),
|
|
12881
|
+
}), ep = (e) => e.field === "state" || $(e).dataType === Xo.Location, tp = (e) => e.filter(ep), np = (e, t, n) => {
|
|
12801
12882
|
if (!n || t.length === 0) return e;
|
|
12802
12883
|
let r = new Set(n(t).map((e) => e.field));
|
|
12803
12884
|
return e.filter((e) => r.has(e));
|
|
12804
|
-
},
|
|
12885
|
+
}, rp = (e) => e.filter((e) => !as(e)), ip = (e) => e.filter((e) => as(e)), ap = {
|
|
12805
12886
|
xAxis: {
|
|
12806
12887
|
selectMode: "sortable",
|
|
12807
|
-
filterColumns:
|
|
12888
|
+
filterColumns: rp
|
|
12808
12889
|
},
|
|
12809
12890
|
yAxis: {},
|
|
12810
12891
|
secondaryYAxis: {},
|
|
@@ -12813,16 +12894,16 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12813
12894
|
rowGroupLimit: 2,
|
|
12814
12895
|
supportsFocusView: !0,
|
|
12815
12896
|
storeBeforeChange: !0
|
|
12816
|
-
},
|
|
12897
|
+
}, op = [
|
|
12817
12898
|
{
|
|
12818
|
-
...
|
|
12899
|
+
...ap,
|
|
12819
12900
|
id: "column",
|
|
12820
12901
|
text: "Column",
|
|
12821
12902
|
icon: "chart-column",
|
|
12822
12903
|
agChartType: "bar"
|
|
12823
12904
|
},
|
|
12824
12905
|
{
|
|
12825
|
-
...
|
|
12906
|
+
...ap,
|
|
12826
12907
|
id: "bar",
|
|
12827
12908
|
text: "Bar",
|
|
12828
12909
|
icon: "chart-bar",
|
|
@@ -12830,28 +12911,28 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12830
12911
|
isHorizontal: !0
|
|
12831
12912
|
},
|
|
12832
12913
|
{
|
|
12833
|
-
...
|
|
12914
|
+
...ap,
|
|
12834
12915
|
id: "line",
|
|
12835
12916
|
text: "Line",
|
|
12836
12917
|
icon: "chart-line",
|
|
12837
12918
|
agChartType: "line"
|
|
12838
12919
|
},
|
|
12839
12920
|
{
|
|
12840
|
-
...
|
|
12921
|
+
...ap,
|
|
12841
12922
|
id: "area",
|
|
12842
12923
|
text: "Area",
|
|
12843
12924
|
icon: "chart-area",
|
|
12844
12925
|
agChartType: "area"
|
|
12845
12926
|
},
|
|
12846
12927
|
{
|
|
12847
|
-
...
|
|
12928
|
+
...ap,
|
|
12848
12929
|
id: "column_stacked",
|
|
12849
12930
|
text: "Stacked Column",
|
|
12850
12931
|
icon: "chart-column-stacked",
|
|
12851
12932
|
agChartType: "bar"
|
|
12852
12933
|
},
|
|
12853
12934
|
{
|
|
12854
|
-
...
|
|
12935
|
+
...ap,
|
|
12855
12936
|
id: "bar_stacked",
|
|
12856
12937
|
text: "Stacked Bar",
|
|
12857
12938
|
icon: "chart-bar-stacked",
|
|
@@ -12859,7 +12940,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12859
12940
|
isHorizontal: !0
|
|
12860
12941
|
},
|
|
12861
12942
|
{
|
|
12862
|
-
...
|
|
12943
|
+
...ap,
|
|
12863
12944
|
id: "pie",
|
|
12864
12945
|
text: "Pie",
|
|
12865
12946
|
icon: "chart-pie",
|
|
@@ -12873,7 +12954,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12873
12954
|
icon: "chart-column",
|
|
12874
12955
|
xAxis: {
|
|
12875
12956
|
selectMode: "single",
|
|
12876
|
-
filterColumns:
|
|
12957
|
+
filterColumns: ip,
|
|
12877
12958
|
hideLabel: !0
|
|
12878
12959
|
},
|
|
12879
12960
|
yAxis: {
|
|
@@ -12894,7 +12975,7 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12894
12975
|
icon: "map",
|
|
12895
12976
|
xAxis: {
|
|
12896
12977
|
selectMode: "single",
|
|
12897
|
-
filterColumns:
|
|
12978
|
+
filterColumns: tp,
|
|
12898
12979
|
hideLabel: !0
|
|
12899
12980
|
},
|
|
12900
12981
|
yAxis: {},
|
|
@@ -12906,26 +12987,26 @@ var ju = { style: { "line-height": "20px" } }, Mu = { class: "pv-text-subdued pv
|
|
|
12906
12987
|
supportsFocusView: !1,
|
|
12907
12988
|
storeBeforeChange: !1
|
|
12908
12989
|
}
|
|
12909
|
-
],
|
|
12910
|
-
function
|
|
12911
|
-
return
|
|
12990
|
+
], sp = new Map(op.map((e) => [e.id, e])), cp = sp.get("column");
|
|
12991
|
+
function lp(e) {
|
|
12992
|
+
return sp.get(e) || cp;
|
|
12912
12993
|
}
|
|
12913
12994
|
//#endregion
|
|
12914
12995
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
12915
|
-
var
|
|
12996
|
+
var up = {
|
|
12916
12997
|
class: "pv-full-width pv-flex",
|
|
12917
12998
|
style: { "--flex-gap": "8px" }
|
|
12918
|
-
},
|
|
12999
|
+
}, dp = {
|
|
12919
13000
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
12920
13001
|
style: {
|
|
12921
13002
|
"align-items": "flex-start",
|
|
12922
13003
|
"--flex-gap": "0"
|
|
12923
13004
|
}
|
|
12924
|
-
},
|
|
13005
|
+
}, fp = ["title"], pp = ["title"], mp = { style: {
|
|
12925
13006
|
"max-width": "220px",
|
|
12926
13007
|
"white-space": "normal",
|
|
12927
13008
|
"overflow-wrap": "break-word"
|
|
12928
|
-
} },
|
|
13009
|
+
} }, hp = /* @__PURE__ */ d({
|
|
12929
13010
|
inheritAttrs: !1,
|
|
12930
13011
|
__name: "PvChartOptionMenuItemRenderer",
|
|
12931
13012
|
props: {
|
|
@@ -12934,14 +13015,14 @@ var lp = {
|
|
|
12934
13015
|
text: {}
|
|
12935
13016
|
},
|
|
12936
13017
|
setup(e) {
|
|
12937
|
-
return (t, n) => (D(), o("div",
|
|
13018
|
+
return (t, n) => (D(), o("div", up, [s("div", dp, [s("span", {
|
|
12938
13019
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
12939
13020
|
title: e.text
|
|
12940
|
-
}, F(e.text), 9,
|
|
13021
|
+
}, F(e.text), 9, fp), e.subText ? (D(), o("span", {
|
|
12941
13022
|
key: 0,
|
|
12942
13023
|
class: "pv-text-body-xs pv-text-subdued pv-full-width pv-truncate",
|
|
12943
13024
|
title: e.subText
|
|
12944
|
-
}, F(e.subText), 9,
|
|
13025
|
+
}, F(e.subText), 9, pp)) : a("", !0)]), e.context?.description ? (D(), i(R(Wi), {
|
|
12945
13026
|
key: 0,
|
|
12946
13027
|
variant: "dark",
|
|
12947
13028
|
position: "center-right",
|
|
@@ -12955,34 +13036,34 @@ var lp = {
|
|
|
12955
13036
|
name: "info-circle",
|
|
12956
13037
|
class: "pv-text-subdued"
|
|
12957
13038
|
})]),
|
|
12958
|
-
content: W(() => [s("div",
|
|
13039
|
+
content: W(() => [s("div", mp, F(e.context.description), 1)]),
|
|
12959
13040
|
_: 1
|
|
12960
13041
|
})) : a("", !0)]));
|
|
12961
13042
|
}
|
|
12962
|
-
}),
|
|
13043
|
+
}), gp = { class: "pv-stack-16 pv-chart-options-panel" }, _p = { class: "pv-flex pv-relative" }, vp = [
|
|
12963
13044
|
"id",
|
|
12964
13045
|
"aria-label",
|
|
12965
13046
|
"onKeydown"
|
|
12966
|
-
],
|
|
13047
|
+
], yp = {
|
|
12967
13048
|
role: "list",
|
|
12968
13049
|
class: "pv-popover-list pv-relative"
|
|
12969
|
-
},
|
|
13050
|
+
}, bp = [
|
|
12970
13051
|
"id",
|
|
12971
13052
|
"data-active",
|
|
12972
13053
|
"data-dd-action-name",
|
|
12973
13054
|
"onMouseenter",
|
|
12974
13055
|
"onClick"
|
|
12975
|
-
],
|
|
13056
|
+
], xp = { style: { "max-width": "100px" } }, Sp = {
|
|
12976
13057
|
key: 1,
|
|
12977
13058
|
class: "pv-flex"
|
|
12978
|
-
},
|
|
13059
|
+
}, Cp = {
|
|
12979
13060
|
key: 0,
|
|
12980
13061
|
class: "pv-inset-square-8"
|
|
12981
|
-
},
|
|
13062
|
+
}, wp = {
|
|
12982
13063
|
key: 1,
|
|
12983
13064
|
role: "list",
|
|
12984
13065
|
class: "pv-popover-list"
|
|
12985
|
-
},
|
|
13066
|
+
}, Tp = ["data-active"], Ep = "This metric isn’t available with the selected chart type.", Dp = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
12986
13067
|
__name: "PvChartOptionsPanel",
|
|
12987
13068
|
props: {
|
|
12988
13069
|
enablePanel: { type: Boolean },
|
|
@@ -13006,7 +13087,7 @@ var lp = {
|
|
|
13006
13087
|
maxHeight: "900px"
|
|
13007
13088
|
},
|
|
13008
13089
|
useTeleport: !0
|
|
13009
|
-
}), b = k(!1), S = k(void 0), C = k(null), w = m(ql, k(void 0)), T = m(Gl, k([])), E = m(Jl, k(void 0)), O = m(Kl, k([])), j = m(Wl, k([])), M = m(Fl, k([])), N = r(() =>
|
|
13090
|
+
}), b = k(!1), S = k(void 0), C = k(null), w = m(ql, k(void 0)), T = m(Gl, k([])), E = m(Jl, k(void 0)), O = m(Kl, k([])), j = m(Wl, k([])), M = m(Fl, k([])), N = r(() => lp(w.value?.id || "")), P = r(() => {
|
|
13010
13091
|
let e = w.value?.id ?? "";
|
|
13011
13092
|
return j.value.length > 1 && !e.endsWith("_stacked");
|
|
13012
13093
|
}), I = m(Yl, k("")), L = m(Xl, k([])), z = m(Zl, k(void 0)), B = m(Ql, k([])), V = m(eu, k(/* @__PURE__ */ new Set())), H = m(tu, k([])), ee = r(() => H.value.filter((e) => V.value.has(e.id)).map((e) => ({
|
|
@@ -13026,7 +13107,7 @@ var lp = {
|
|
|
13026
13107
|
})) : []), ae = r(() => {
|
|
13027
13108
|
let e = j.value[0];
|
|
13028
13109
|
return e ? gs(M.value.find((t) => t.field === e)) : !1;
|
|
13029
|
-
}),
|
|
13110
|
+
}), oe = r(() => {
|
|
13030
13111
|
if (w.value) return (j.value.length > 1 ? [
|
|
13031
13112
|
"bar_stacked",
|
|
13032
13113
|
"line",
|
|
@@ -13055,13 +13136,13 @@ var lp = {
|
|
|
13055
13136
|
}
|
|
13056
13137
|
w.value = e[0];
|
|
13057
13138
|
});
|
|
13058
|
-
let
|
|
13139
|
+
let se = (e, t) => {
|
|
13059
13140
|
for (let n of e) {
|
|
13060
13141
|
if (n.id === t) return n;
|
|
13061
|
-
let e = n.children ?
|
|
13142
|
+
let e = n.children ? se(n.children, t) : void 0;
|
|
13062
13143
|
if (e) return e;
|
|
13063
13144
|
}
|
|
13064
|
-
},
|
|
13145
|
+
}, ce = (e) => e.flatMap((e) => e.children?.length ? ce(e.children) : e), q = (e) => {
|
|
13065
13146
|
switch (e) {
|
|
13066
13147
|
case "y-axis": return "Select Y Axis metric";
|
|
13067
13148
|
case "secondary-y-axis": return "Select Metric Overlay";
|
|
@@ -13070,76 +13151,76 @@ var lp = {
|
|
|
13070
13151
|
case "sort": return "Select Chart Sort";
|
|
13071
13152
|
default: return;
|
|
13072
13153
|
}
|
|
13073
|
-
},
|
|
13154
|
+
}, le = Tl(), ue = (e) => e === "secondary-y-axis" ? "metric-overlay" : e, J = (e, t, n = "select") => {
|
|
13074
13155
|
if (!t) return;
|
|
13075
|
-
let r =
|
|
13156
|
+
let r = ke.value.find((t) => t.value === e), i = r?.availableOptions ? se(r.availableOptions, t) : void 0;
|
|
13076
13157
|
El("chart_option_selected", {
|
|
13077
|
-
panel:
|
|
13158
|
+
panel: ue(e),
|
|
13078
13159
|
selected_value: i?.text ?? t,
|
|
13079
13160
|
selected_value_id: t,
|
|
13080
13161
|
action: n
|
|
13081
|
-
},
|
|
13082
|
-
},
|
|
13162
|
+
}, le());
|
|
13163
|
+
}, de = (e, t) => {
|
|
13083
13164
|
let n = new Set(e.activeOptionIds);
|
|
13084
13165
|
e.updateSelectedOptions?.(t), Dl(() => {
|
|
13085
|
-
for (let r of t) n.has(r.id) ||
|
|
13166
|
+
for (let r of t) n.has(r.id) || J(e.value, r.id);
|
|
13086
13167
|
});
|
|
13087
|
-
},
|
|
13088
|
-
e.updateSelectedOption?.(t?.id || ""), Dl(() =>
|
|
13089
|
-
},
|
|
13168
|
+
}, fe = (e, t) => {
|
|
13169
|
+
e.updateSelectedOption?.(t?.id || ""), Dl(() => J(e.value, t?.id));
|
|
13170
|
+
}, pe = (e, t) => {
|
|
13090
13171
|
let n = t.option;
|
|
13091
13172
|
if (e.isMultiSelect) {
|
|
13092
13173
|
let t = new Set(e.activeOptionIds ?? []), r = new Set(t);
|
|
13093
|
-
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(
|
|
13174
|
+
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(ce(e.availableOptions ?? []).filter((e) => r.has(e.id))), t.has(n.id) || Dl(() => J(e.value, n.id));
|
|
13094
13175
|
return;
|
|
13095
13176
|
}
|
|
13096
|
-
e.updateSelectedOption?.(n.id), Dl(() =>
|
|
13097
|
-
},
|
|
13177
|
+
e.updateSelectedOption?.(n.id), Dl(() => J(e.value, n.id));
|
|
13178
|
+
}, Y = (e, t) => {
|
|
13098
13179
|
let n = e.activeOptions?.value ?? [];
|
|
13099
13180
|
e.activeOptions && (e.activeOptions.value = t), Dl(() => {
|
|
13100
13181
|
let r = n.map((e) => e.id), i = t.map((e) => e.id), a = new Set(r), o = new Set(i);
|
|
13101
|
-
for (let n of t) a.has(n.id) ||
|
|
13102
|
-
for (let t of n) o.has(t.id) ||
|
|
13182
|
+
for (let n of t) a.has(n.id) || J(e.value, n.id, "select");
|
|
13183
|
+
for (let t of n) o.has(t.id) || J(e.value, t.id, "deselect");
|
|
13103
13184
|
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") && El("chart_option_selected", {
|
|
13104
|
-
panel:
|
|
13185
|
+
panel: ue(e.value),
|
|
13105
13186
|
selected_value: t.map((e) => e.text).join(", "),
|
|
13106
13187
|
selected_value_id: i.join(","),
|
|
13107
13188
|
action: "reorder"
|
|
13108
|
-
},
|
|
13189
|
+
}, le());
|
|
13109
13190
|
});
|
|
13110
|
-
},
|
|
13191
|
+
}, me = (e, t) => `chart-series-agg-func:${encodeURIComponent(e)}:${encodeURIComponent(t)}`, he = (e) => `chart-series-agg-func-group:${encodeURIComponent(e)}`, ge = (e) => e ? { renderer: hp } : { variant: "icon" }, _e = r(() => w.value?.id === "line" ? l.percentOfFocusViewYKey : void 0), ve = (e, t, n) => {
|
|
13111
13192
|
let r = !!e && t === e;
|
|
13112
13193
|
return {
|
|
13113
13194
|
disabled: r,
|
|
13114
|
-
description: r ?
|
|
13195
|
+
description: r ? Ep : n
|
|
13115
13196
|
};
|
|
13116
|
-
},
|
|
13197
|
+
}, ye = (e, t) => {
|
|
13117
13198
|
let n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
13118
13199
|
for (let a of e) {
|
|
13119
13200
|
let e = a.columnField;
|
|
13120
13201
|
if (!a.aggFuncOptions?.length || !e) {
|
|
13121
|
-
let { disabled: e, description: r } =
|
|
13202
|
+
let { disabled: e, description: r } = ve(t, a.value, a.description);
|
|
13122
13203
|
n.push({
|
|
13123
13204
|
id: a.value,
|
|
13124
13205
|
text: a.label,
|
|
13125
13206
|
disabled: e,
|
|
13126
13207
|
context: r ? { description: r } : void 0,
|
|
13127
|
-
config:
|
|
13208
|
+
config: ge(r)
|
|
13128
13209
|
});
|
|
13129
13210
|
continue;
|
|
13130
13211
|
}
|
|
13131
13212
|
for (let o of a.aggFuncOptions) {
|
|
13132
13213
|
let s = r.get(o.aggFunc);
|
|
13133
13214
|
s || (s = {
|
|
13134
|
-
id:
|
|
13215
|
+
id: he(o.aggFunc),
|
|
13135
13216
|
text: o.label,
|
|
13136
13217
|
context: o.description ? { description: o.description } : void 0,
|
|
13137
|
-
config:
|
|
13218
|
+
config: ge(o.description),
|
|
13138
13219
|
children: []
|
|
13139
13220
|
}, r.set(o.aggFunc, s), n.push(s)), o.order !== void 0 && !i.has(s.id) && i.set(s.id, o.order);
|
|
13140
|
-
let { disabled: c, description: l } =
|
|
13221
|
+
let { disabled: c, description: l } = ve(t, o.seriesValue ?? a.value, a.description);
|
|
13141
13222
|
s.children?.push({
|
|
13142
|
-
id:
|
|
13223
|
+
id: me(e, o.aggFunc),
|
|
13143
13224
|
text: a.label,
|
|
13144
13225
|
disabled: c,
|
|
13145
13226
|
context: {
|
|
@@ -13148,7 +13229,7 @@ var lp = {
|
|
|
13148
13229
|
description: l,
|
|
13149
13230
|
seriesValue: o.seriesValue
|
|
13150
13231
|
},
|
|
13151
|
-
config:
|
|
13232
|
+
config: ge(l)
|
|
13152
13233
|
});
|
|
13153
13234
|
}
|
|
13154
13235
|
}
|
|
@@ -13156,47 +13237,47 @@ var lp = {
|
|
|
13156
13237
|
let n = i.get(e.id), r = i.get(t.id);
|
|
13157
13238
|
return n === void 0 ? r === void 0 ? 0 : 1 : r === void 0 ? -1 : n - r;
|
|
13158
13239
|
});
|
|
13159
|
-
},
|
|
13160
|
-
let { disabled: n, description: r } =
|
|
13240
|
+
}, be = (e, t) => e.map((e) => {
|
|
13241
|
+
let { disabled: n, description: r } = ve(t, e.value, e.description);
|
|
13161
13242
|
return {
|
|
13162
13243
|
id: e.value,
|
|
13163
13244
|
text: e.label,
|
|
13164
13245
|
disabled: n,
|
|
13165
13246
|
context: r ? { description: r } : void 0
|
|
13166
13247
|
};
|
|
13167
|
-
}),
|
|
13248
|
+
}), xe = (e, t, n) => {
|
|
13168
13249
|
if (!n) return;
|
|
13169
13250
|
let r = t.find((e) => e.value === n || e.aggFuncOptions?.some((e) => e.seriesValue === n));
|
|
13170
|
-
if (!r?.aggFuncOptions?.length || !r.columnField) return
|
|
13251
|
+
if (!r?.aggFuncOptions?.length || !r.columnField) return se(e, n);
|
|
13171
13252
|
let i = r.aggFuncOptions.find((e) => e.aggFunc === r.activeAggFunc) ?? r.aggFuncOptions.find((e) => e.seriesValue === n) ?? r.aggFuncOptions[0];
|
|
13172
|
-
return i ?
|
|
13173
|
-
},
|
|
13174
|
-
let n =
|
|
13253
|
+
return i ? se(e, me(r.columnField, i.aggFunc)) : void 0;
|
|
13254
|
+
}, Se = (e, t) => {
|
|
13255
|
+
let n = se(e, t), r = n?.context;
|
|
13175
13256
|
return {
|
|
13176
13257
|
aggFunc: r?.aggFunc,
|
|
13177
13258
|
columnField: r?.columnField,
|
|
13178
13259
|
seriesValue: r?.seriesValue ?? n?.id
|
|
13179
13260
|
};
|
|
13180
|
-
},
|
|
13261
|
+
}, Ce = (e) => e.reduce((e, t) => e + (t.aggFuncOptions?.length || 1), 0), we = r(() => f.value ? ye(L.value, _e.value) : be(L.value, _e.value)), Te = r(() => f.value ? ye(B.value) : be(B.value)), Ee = r(() => f.value ? Ce(L.value) : L.value.length), De = r(() => M.value.map((e) => ({
|
|
13181
13262
|
id: e.field || "",
|
|
13182
13263
|
text: e.headerName || e.field || "",
|
|
13183
13264
|
icon: Zo(e.context?.dataType || null) || "circle-chevron-down"
|
|
13184
|
-
}))),
|
|
13185
|
-
get: () => j.value.map((e) =>
|
|
13265
|
+
}))), Oe = r({
|
|
13266
|
+
get: () => j.value.map((e) => De.value.find((t) => t.id === e)).filter(Boolean),
|
|
13186
13267
|
set: (e) => {
|
|
13187
13268
|
j.value = e.map((e) => e.id);
|
|
13188
13269
|
}
|
|
13189
|
-
}),
|
|
13270
|
+
}), ke = r(() => {
|
|
13190
13271
|
let e = [], t = {
|
|
13191
13272
|
value: "y-axis",
|
|
13192
13273
|
label: "Y Axis",
|
|
13193
13274
|
prefixLabel: "Y Axis",
|
|
13194
13275
|
icon: "chart-bar-decreasing",
|
|
13195
13276
|
allowDeselect: !1,
|
|
13196
|
-
availableOptions:
|
|
13197
|
-
currentOption:
|
|
13277
|
+
availableOptions: we.value,
|
|
13278
|
+
currentOption: xe(we.value, L.value, I.value),
|
|
13198
13279
|
updateSelectedOption: (e) => {
|
|
13199
|
-
let t =
|
|
13280
|
+
let t = Se(we.value, e);
|
|
13200
13281
|
t.seriesValue && (I.value = t.seriesValue, t.aggFunc && t.columnField && d("series-agg-func-selected", {
|
|
13201
13282
|
aggFunc: t.aggFunc,
|
|
13202
13283
|
columnField: t.columnField
|
|
@@ -13208,12 +13289,12 @@ var lp = {
|
|
|
13208
13289
|
label: "X Axis",
|
|
13209
13290
|
icon: "align-end-horizontal",
|
|
13210
13291
|
allowDeselect: !1,
|
|
13211
|
-
availableOptions:
|
|
13292
|
+
availableOptions: De.value,
|
|
13212
13293
|
...r ? {
|
|
13213
|
-
activeOptions:
|
|
13294
|
+
activeOptions: Oe,
|
|
13214
13295
|
activeOptionLimit: l.rowGroupLimit
|
|
13215
13296
|
} : {
|
|
13216
|
-
currentOption:
|
|
13297
|
+
currentOption: De.value.find((e) => e.id === j.value[0]),
|
|
13217
13298
|
updateSelectedOption: (e) => {
|
|
13218
13299
|
j.value = e ? [e] : [];
|
|
13219
13300
|
}
|
|
@@ -13225,7 +13306,7 @@ var lp = {
|
|
|
13225
13306
|
allowDeselect: !0,
|
|
13226
13307
|
availableOptions: O.value,
|
|
13227
13308
|
currentOption: O.value.find((e) => e.id === E.value?.id),
|
|
13228
|
-
disabled: ae.value || !
|
|
13309
|
+
disabled: ae.value || !oe.value,
|
|
13229
13310
|
disabledReason: ae.value ? "Dates are always sorted oldest to newest" : "Sorting is not available for this chart type",
|
|
13230
13311
|
updateSelectedOption: (e) => {
|
|
13231
13312
|
let t = O.value.find((t) => t.id === e);
|
|
@@ -13247,7 +13328,7 @@ var lp = {
|
|
|
13247
13328
|
t && w && (w.value = t);
|
|
13248
13329
|
}
|
|
13249
13330
|
};
|
|
13250
|
-
if (
|
|
13331
|
+
if (Ee.value > 1 && e.push(t), !n.secondaryYAxis?.hidden && Te.value.length > 0) {
|
|
13251
13332
|
let t = {
|
|
13252
13333
|
value: "secondary-y-axis",
|
|
13253
13334
|
label: "Metric Overlay",
|
|
@@ -13256,16 +13337,16 @@ var lp = {
|
|
|
13256
13337
|
allowDeselect: !0,
|
|
13257
13338
|
disabled: P.value,
|
|
13258
13339
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
13259
|
-
availableOptions:
|
|
13260
|
-
currentOption:
|
|
13340
|
+
availableOptions: Te.value,
|
|
13341
|
+
currentOption: xe(Te.value, B.value, z.value),
|
|
13261
13342
|
updateSelectedOption: (e) => {
|
|
13262
13343
|
if (!z) return;
|
|
13263
|
-
let t =
|
|
13344
|
+
let t = xe(Te.value, B.value, z.value);
|
|
13264
13345
|
if (!e || t?.id === e) {
|
|
13265
13346
|
z.value = void 0;
|
|
13266
13347
|
return;
|
|
13267
13348
|
}
|
|
13268
|
-
let n =
|
|
13349
|
+
let n = Se(Te.value, e);
|
|
13269
13350
|
z.value = n.seriesValue, n.aggFunc && n.columnField && d("series-agg-func-selected", {
|
|
13270
13351
|
aggFunc: n.aggFunc,
|
|
13271
13352
|
columnField: n.columnField
|
|
@@ -13295,15 +13376,15 @@ var lp = {
|
|
|
13295
13376
|
n && e.push(n);
|
|
13296
13377
|
}
|
|
13297
13378
|
let s = r ? 2 : 1;
|
|
13298
|
-
return
|
|
13299
|
-
}),
|
|
13379
|
+
return De.value.length >= s && e.push(i), T.value.length > 1 && e.push(o), O.value.length > 0 && e.push(a), e.filter((e) => l.chartConfigOptions ? l.chartConfigOptions.includes(e.value) : !0);
|
|
13380
|
+
}), Ae = r(() => S.value && ke.value.find((e) => e.value === S.value) || null), X = (e) => e.activeOptions ? e.activeOptions.value : e.currentOption ? [e.currentOption] : [], je = (e) => X(e).map((e) => e.text).join(", ") || void 0, Me = r(() => ke.value.map((e) => ({
|
|
13300
13381
|
id: e.value,
|
|
13301
13382
|
text: e.label,
|
|
13302
|
-
subText:
|
|
13383
|
+
subText: je(e),
|
|
13303
13384
|
icon: e.icon,
|
|
13304
13385
|
disabled: e.disabled,
|
|
13305
13386
|
hoverTitle: e.disabledReason,
|
|
13306
|
-
rumActionName:
|
|
13387
|
+
rumActionName: q(e.value),
|
|
13307
13388
|
popoverRole: e.isSortableList ? "dialog" : "menu",
|
|
13308
13389
|
children: e.availableOptions,
|
|
13309
13390
|
config: {
|
|
@@ -13315,37 +13396,37 @@ var lp = {
|
|
|
13315
13396
|
alwaysShow: !0
|
|
13316
13397
|
} } : {}
|
|
13317
13398
|
}
|
|
13318
|
-
}))),
|
|
13399
|
+
}))), Z = (e) => e.isMultiSelect ? {
|
|
13319
13400
|
variant: "checkbox",
|
|
13320
|
-
renderer:
|
|
13401
|
+
renderer: hp
|
|
13321
13402
|
} : { variant: "icon" };
|
|
13322
13403
|
U(C, (e) => {
|
|
13323
13404
|
e && (v.value = e);
|
|
13324
13405
|
});
|
|
13325
|
-
let
|
|
13326
|
-
let t =
|
|
13406
|
+
let Q = (e) => {
|
|
13407
|
+
let t = Ae.value;
|
|
13327
13408
|
if (!t?.isMultiSelect) return;
|
|
13328
13409
|
let n = new Set(V.value);
|
|
13329
13410
|
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))), Dl(() => {
|
|
13330
|
-
for (let r of e) n.has(r) ||
|
|
13411
|
+
for (let r of e) n.has(r) || J(t.value, r);
|
|
13331
13412
|
});
|
|
13332
13413
|
}, Ne = (e) => {
|
|
13333
|
-
let t =
|
|
13334
|
-
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Dl(() =>
|
|
13414
|
+
let t = Ae.value;
|
|
13415
|
+
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Dl(() => J(t.value, e.id)));
|
|
13335
13416
|
}, Pe = (e) => {
|
|
13336
|
-
let t =
|
|
13417
|
+
let t = Ae.value;
|
|
13337
13418
|
return !t || t.isMultiSelect ? null : t.currentOption?.id === e.id ? !0 : null;
|
|
13338
|
-
}, Fe = (e) =>
|
|
13419
|
+
}, Fe = (e) => Ae.value?.isMultiSelect ? {
|
|
13339
13420
|
variant: "checkbox",
|
|
13340
|
-
renderer:
|
|
13341
|
-
} : e.context && typeof e.context == "object" && "description" in e.context ? { renderer:
|
|
13421
|
+
renderer: hp
|
|
13422
|
+
} : e.context && typeof e.context == "object" && "description" in e.context ? { renderer: hp } : { variant: "icon" }, Ie = (e) => {
|
|
13342
13423
|
S.value = e, _.value = document.getElementById(`pv-chart-config-${e}`), g();
|
|
13343
13424
|
}, Le = () => {
|
|
13344
13425
|
b.value = !1, S.value = void 0;
|
|
13345
13426
|
}, Re = () => {
|
|
13346
13427
|
S.value = void 0;
|
|
13347
13428
|
};
|
|
13348
|
-
return (n, r) => (D(), o(t, null, [s("div",
|
|
13429
|
+
return (n, r) => (D(), o(t, null, [s("div", gp, [s("div", null, [G((D(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", _p, [e.useCombinedButton ? (D(), o(t, { key: 0 }, [u(Ea, {
|
|
13349
13430
|
open: b.value,
|
|
13350
13431
|
label: "Chart Configuration",
|
|
13351
13432
|
icon: "chart-area",
|
|
@@ -13371,14 +13452,14 @@ var lp = {
|
|
|
13371
13452
|
}, " Chart Configuration ")], -1), u(wo, {
|
|
13372
13453
|
expandedOptionId: S.value,
|
|
13373
13454
|
"onUpdate:expandedOptionId": r[3] ||= (e) => S.value = e,
|
|
13374
|
-
options:
|
|
13455
|
+
options: Me.value,
|
|
13375
13456
|
childrenDisplay: "popover",
|
|
13376
13457
|
readOnly: e.readOnly
|
|
13377
13458
|
}, {
|
|
13378
|
-
popover: W(({ popoverId: t, close: n }) => [
|
|
13459
|
+
popover: W(({ popoverId: t, close: n }) => [Ae.value?.isSortableList ? (D(), o("div", {
|
|
13379
13460
|
key: 0,
|
|
13380
13461
|
id: t,
|
|
13381
|
-
"aria-label": `${
|
|
13462
|
+
"aria-label": `${Ae.value.label} options`,
|
|
13382
13463
|
class: "pv-chart-config-popover pv-inset-square-8",
|
|
13383
13464
|
role: "dialog",
|
|
13384
13465
|
onKeydown: ie(K(n, ["stop"]), ["esc"])
|
|
@@ -13388,32 +13469,32 @@ var lp = {
|
|
|
13388
13469
|
"padding-left": "2px",
|
|
13389
13470
|
"padding-bottom": "6px"
|
|
13390
13471
|
}
|
|
13391
|
-
}, " Viewing ", -1), u(
|
|
13392
|
-
modelValue:
|
|
13393
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
13394
|
-
options:
|
|
13395
|
-
activeOptionLimit:
|
|
13472
|
+
}, " Viewing ", -1), u(If, {
|
|
13473
|
+
modelValue: Ae.value.activeOptions.value,
|
|
13474
|
+
"onUpdate:modelValue": r[1] ||= (e) => Y(Ae.value, e),
|
|
13475
|
+
options: Ae.value.availableOptions || [],
|
|
13476
|
+
activeOptionLimit: Ae.value.activeOptionLimit,
|
|
13396
13477
|
placeholderText: "Add to X Axis"
|
|
13397
13478
|
}, null, 8, [
|
|
13398
13479
|
"modelValue",
|
|
13399
13480
|
"options",
|
|
13400
13481
|
"activeOptionLimit"
|
|
13401
|
-
])], 40,
|
|
13482
|
+
])], 40, vp)) : Ae.value ? (D(), i(wo, {
|
|
13402
13483
|
key: 1,
|
|
13403
13484
|
id: t,
|
|
13404
|
-
"aria-label": `${
|
|
13485
|
+
"aria-label": `${Ae.value.label} options`,
|
|
13405
13486
|
class: "pv-chart-config-popover",
|
|
13406
|
-
options:
|
|
13407
|
-
selectedItems:
|
|
13408
|
-
config:
|
|
13409
|
-
singleSelect: !
|
|
13410
|
-
disableDeselect: !
|
|
13487
|
+
options: Ae.value.availableOptions || [],
|
|
13488
|
+
selectedItems: X(Ae.value),
|
|
13489
|
+
config: Z(Ae.value),
|
|
13490
|
+
singleSelect: !Ae.value.isMultiSelect,
|
|
13491
|
+
disableDeselect: !Ae.value.allowDeselect,
|
|
13411
13492
|
highlightParentItems: !1,
|
|
13412
13493
|
readOnly: e.readOnly,
|
|
13413
13494
|
childrenDisplay: "popover",
|
|
13414
13495
|
itemClass: "pv-chart-option pv-flex",
|
|
13415
13496
|
onKeydown: ie(K(n, ["stop"]), ["esc"]),
|
|
13416
|
-
onHandleSelected: r[2] ||= (e) =>
|
|
13497
|
+
onHandleSelected: r[2] ||= (e) => pe(Ae.value, e)
|
|
13417
13498
|
}, null, 8, [
|
|
13418
13499
|
"id",
|
|
13419
13500
|
"aria-label",
|
|
@@ -13447,11 +13528,11 @@ var lp = {
|
|
|
13447
13528
|
"padding-top": "4px",
|
|
13448
13529
|
"padding-bottom": "12px"
|
|
13449
13530
|
}
|
|
13450
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
13531
|
+
}, " Chart Configuration ")], -1), s("ul", yp, [(D(!0), o(t, null, A(ke.value, (t) => (D(), o("li", {
|
|
13451
13532
|
id: `pv-chart-config-${t.value}`,
|
|
13452
13533
|
key: t.value,
|
|
13453
13534
|
"data-active": S.value === t.value ? !0 : null,
|
|
13454
|
-
"data-dd-action-name":
|
|
13535
|
+
"data-dd-action-name": q(t.value),
|
|
13455
13536
|
onMouseenter: (e) => t.disabled ? null : Ie(t.value),
|
|
13456
13537
|
onClick: (e) => t.disabled ? null : Ie(t.value)
|
|
13457
13538
|
}, [u(R(Wi), {
|
|
@@ -13478,9 +13559,9 @@ var lp = {
|
|
|
13478
13559
|
_: 2
|
|
13479
13560
|
}, [t.disabled && t.disabledReason ? {
|
|
13480
13561
|
name: "content",
|
|
13481
|
-
fn: W(() => [s("div",
|
|
13562
|
+
fn: W(() => [s("div", xp, F(t.disabledReason), 1)]),
|
|
13482
13563
|
key: "0"
|
|
13483
|
-
} : void 0]), 1024)], 40,
|
|
13564
|
+
} : void 0]), 1024)], 40, bp))), 128))])]),
|
|
13484
13565
|
_: 1
|
|
13485
13566
|
}, 8, ["class"]))], 64)) : a("", !0)])], 2)), [[R(et), [Le, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
13486
13567
|
class: "pv-flex pv-space-between",
|
|
@@ -13490,18 +13571,18 @@ var lp = {
|
|
|
13490
13571
|
options: re.value,
|
|
13491
13572
|
modelValue: R(ne),
|
|
13492
13573
|
"onUpdate:modelValue": r[4] ||= (e) => h(ne) ? ne.value = e : null
|
|
13493
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div",
|
|
13574
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div", Sp, [(D(!0), o(t, null, A(ke.value, (n) => (D(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (D(), i(Oc, {
|
|
13494
13575
|
key: 0,
|
|
13495
13576
|
label: n.label,
|
|
13496
13577
|
prefixLabel: n.prefixLabel,
|
|
13497
13578
|
modelValue: n.availableOptions.filter((e) => n.activeOptionIds.has(e.id)),
|
|
13498
|
-
"onUpdate:modelValue": (e) =>
|
|
13579
|
+
"onUpdate:modelValue": (e) => de(n, e),
|
|
13499
13580
|
options: n.availableOptions,
|
|
13500
13581
|
disableSearchInput: !0,
|
|
13501
13582
|
disabled: n.disabled || e.readOnly,
|
|
13502
13583
|
optionsVariant: "checkbox",
|
|
13503
|
-
optionsRenderer:
|
|
13504
|
-
rumActionName:
|
|
13584
|
+
optionsRenderer: hp,
|
|
13585
|
+
rumActionName: q(n.value)
|
|
13505
13586
|
}, null, 8, [
|
|
13506
13587
|
"label",
|
|
13507
13588
|
"prefixLabel",
|
|
@@ -13515,14 +13596,14 @@ var lp = {
|
|
|
13515
13596
|
label: n.label,
|
|
13516
13597
|
prefixLabel: n.prefixLabel,
|
|
13517
13598
|
modelValue: n.currentOption,
|
|
13518
|
-
"onUpdate:modelValue": [(e) => n.currentOption = e, (e) =>
|
|
13599
|
+
"onUpdate:modelValue": [(e) => n.currentOption = e, (e) => fe(n, e)],
|
|
13519
13600
|
options: n.availableOptions,
|
|
13520
13601
|
disableSearchInput: !0,
|
|
13521
13602
|
disableDeselect: !n.allowDeselect,
|
|
13522
13603
|
disabled: n.disabled || e.readOnly,
|
|
13523
13604
|
optionsVariant: "icon",
|
|
13524
13605
|
childrenDisplay: f.value ? "popover" : "inline",
|
|
13525
|
-
rumActionName:
|
|
13606
|
+
rumActionName: q(n.value)
|
|
13526
13607
|
}, null, 8, [
|
|
13527
13608
|
"label",
|
|
13528
13609
|
"prefixLabel",
|
|
@@ -13544,23 +13625,23 @@ var lp = {
|
|
|
13544
13625
|
...R(p)
|
|
13545
13626
|
}
|
|
13546
13627
|
}, {
|
|
13547
|
-
default: W(() => [
|
|
13628
|
+
default: W(() => [Ae.value ? (D(), o(t, { key: 0 }, [Ae.value.isSortableList ? (D(), o("div", Cp, [r[9] ||= s("p", {
|
|
13548
13629
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
13549
13630
|
style: {
|
|
13550
13631
|
"padding-left": "2px",
|
|
13551
13632
|
"padding-bottom": "6px"
|
|
13552
13633
|
}
|
|
13553
|
-
}, " Viewing ", -1), u(
|
|
13554
|
-
modelValue:
|
|
13555
|
-
"onUpdate:modelValue": r[5] ||= (e) =>
|
|
13556
|
-
options:
|
|
13557
|
-
activeOptionLimit:
|
|
13634
|
+
}, " Viewing ", -1), u(If, {
|
|
13635
|
+
modelValue: Ae.value.activeOptions.value,
|
|
13636
|
+
"onUpdate:modelValue": r[5] ||= (e) => Y(Ae.value, e),
|
|
13637
|
+
options: Ae.value.availableOptions || [],
|
|
13638
|
+
activeOptionLimit: Ae.value.activeOptionLimit,
|
|
13558
13639
|
placeholderText: "Add to X Axis"
|
|
13559
13640
|
}, null, 8, [
|
|
13560
13641
|
"modelValue",
|
|
13561
13642
|
"options",
|
|
13562
13643
|
"activeOptionLimit"
|
|
13563
|
-
])])) : (D(), o("ul",
|
|
13644
|
+
])])) : (D(), o("ul", wp, [(D(!0), o(t, null, A(Ae.value.availableOptions, (t) => (D(), o("li", {
|
|
13564
13645
|
key: t.id,
|
|
13565
13646
|
"data-active": Pe(t)
|
|
13566
13647
|
}, [u(mo, {
|
|
@@ -13570,8 +13651,8 @@ var lp = {
|
|
|
13570
13651
|
icon: t.icon,
|
|
13571
13652
|
context: t.context,
|
|
13572
13653
|
disabled: t.disabled || e.readOnly,
|
|
13573
|
-
selectedIds:
|
|
13574
|
-
"onUpdate:selectedIds":
|
|
13654
|
+
selectedIds: Ae.value.isMultiSelect ? [...R(V)] : [],
|
|
13655
|
+
"onUpdate:selectedIds": Q,
|
|
13575
13656
|
onHandleSelected: (e) => Ne(t),
|
|
13576
13657
|
"class-list": ["pv-legacy-chart-option", "pv-flex"]
|
|
13577
13658
|
}, null, 8, [
|
|
@@ -13583,14 +13664,14 @@ var lp = {
|
|
|
13583
13664
|
"disabled",
|
|
13584
13665
|
"selectedIds",
|
|
13585
13666
|
"onHandleSelected"
|
|
13586
|
-
])], 8,
|
|
13667
|
+
])], 8, Tp))), 128))]))], 64)) : a("", !0)]),
|
|
13587
13668
|
_: 1
|
|
13588
13669
|
}, 8, ["class", "css-custom-properties"])) : a("", !0)], 64));
|
|
13589
13670
|
}
|
|
13590
13671
|
}), [["__scopeId", "data-v-144e816a"]]);
|
|
13591
13672
|
//#endregion
|
|
13592
13673
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
13593
|
-
function
|
|
13674
|
+
function Op(e, t, n, r, i) {
|
|
13594
13675
|
return i ? {
|
|
13595
13676
|
xKey: n,
|
|
13596
13677
|
xName: r,
|
|
@@ -13603,7 +13684,7 @@ function Dp(e, t, n, r, i) {
|
|
|
13603
13684
|
yName: r
|
|
13604
13685
|
};
|
|
13605
13686
|
}
|
|
13606
|
-
var
|
|
13687
|
+
var kp = (e, t) => {
|
|
13607
13688
|
if (t.length === 0) return null;
|
|
13608
13689
|
let n = Math.max(...t.map((e) => e.bucketMax));
|
|
13609
13690
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -13614,22 +13695,22 @@ var Op = (e, t) => {
|
|
|
13614
13695
|
}
|
|
13615
13696
|
}
|
|
13616
13697
|
return null;
|
|
13617
|
-
},
|
|
13698
|
+
}, Ap = (e, t) => {
|
|
13618
13699
|
let n = +!!t, r = e + n * 2, i = +!t;
|
|
13619
13700
|
return {
|
|
13620
13701
|
categoryPadOffset: n,
|
|
13621
13702
|
axisMin: 0 - i,
|
|
13622
13703
|
axisMax: r + i
|
|
13623
13704
|
};
|
|
13624
|
-
},
|
|
13705
|
+
}, jp = (e, t) => {
|
|
13625
13706
|
let { categoryPadOffset: n, axisMin: r, axisMax: i } = t;
|
|
13626
13707
|
return (e + n - r) / (i - r);
|
|
13627
|
-
},
|
|
13708
|
+
}, Mp = (e, t) => e.filter((e) => t.has(e.id)).flatMap((e) => e.overlays.filter((e) => !e.excludeFromCrossline).map((t) => ({
|
|
13628
13709
|
...t,
|
|
13629
13710
|
color: t.color ?? e.color,
|
|
13630
13711
|
formatValue: t.formatValue ?? e.formatValue,
|
|
13631
13712
|
key: `${e.id}-${t.label}`
|
|
13632
|
-
}))),
|
|
13713
|
+
}))), Np = (e, t, n) => {
|
|
13633
13714
|
let r = /* @__PURE__ */ new Map();
|
|
13634
13715
|
return e.filter((e) => !!(e.groupName && t.has(e.id))).forEach((e) => {
|
|
13635
13716
|
let t = r.get(e.groupName) ?? {
|
|
@@ -13651,32 +13732,28 @@ var Op = (e, t) => {
|
|
|
13651
13732
|
});
|
|
13652
13733
|
}), r.set(e.groupName, t);
|
|
13653
13734
|
}), [...r.values()];
|
|
13654
|
-
}
|
|
13735
|
+
};
|
|
13736
|
+
//#endregion
|
|
13737
|
+
//#region src/components/charts/PvDataTableWithChart/useBenchmarkOverlays.ts
|
|
13655
13738
|
function Pp(e) {
|
|
13656
|
-
let { crosslineOverlayGroups: t, useDistributionV2Styling: n, isHistogramWithBuckets: i, isHorizontalBarChart: a, computedChartData: o, pvChartRef: s, formatValue: c
|
|
13657
|
-
U(t, (e) => {
|
|
13658
|
-
let t = new Set(u.value), n = !1;
|
|
13659
|
-
for (let r of e) Np(r) && !d.get(r.id) && (t.add(r.id), n = !0);
|
|
13660
|
-
d = new Map(e.map((e) => [e.id, Np(e)])), n && (u.value = t);
|
|
13661
|
-
});
|
|
13662
|
-
let f = r(() => jp(t.value, u.value)), p = r(() => n.value ? Mp(t.value, u.value, c) : []), m = k(null);
|
|
13739
|
+
let { crosslineOverlayGroups: t, useDistributionV2Styling: n, isHistogramWithBuckets: i, isHorizontalBarChart: a, computedChartData: o, pvChartRef: s, formatValue: c } = e, l = k(new Set(t.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), u = r(() => Mp(t.value, l.value)), d = r(() => n.value ? Np(t.value, l.value, c) : []), f = k(null);
|
|
13663
13740
|
return {
|
|
13664
|
-
activeCrosslineOverlayGroups:
|
|
13665
|
-
resolvedCrosslineOverlays:
|
|
13666
|
-
chipSections:
|
|
13667
|
-
hoveredBenchmarkKey:
|
|
13741
|
+
activeCrosslineOverlayGroups: l,
|
|
13742
|
+
resolvedCrosslineOverlays: u,
|
|
13743
|
+
chipSections: d,
|
|
13744
|
+
hoveredBenchmarkKey: f,
|
|
13668
13745
|
hoveredCrosslineTooltip: r(() => {
|
|
13669
|
-
if (!
|
|
13670
|
-
let e =
|
|
13746
|
+
if (!f.value || !o.value) return null;
|
|
13747
|
+
let e = u.value.find((e) => e.key === f.value);
|
|
13671
13748
|
if (!e) return null;
|
|
13672
|
-
let t =
|
|
13749
|
+
let t = kp(e.value, o.value);
|
|
13673
13750
|
if (t == null) return null;
|
|
13674
13751
|
let r = (s.value?.$el)?.querySelector(".ag-charts-series-area")?.getBoundingClientRect();
|
|
13675
13752
|
if (!r) return null;
|
|
13676
|
-
let l =
|
|
13753
|
+
let l = jp(t, Ap(o.value.length || 1, i.value && n.value)), d = e.formatValue ? e.formatValue(e.value) : c(e.value);
|
|
13677
13754
|
return a.value ? {
|
|
13678
13755
|
label: e.label,
|
|
13679
|
-
value:
|
|
13756
|
+
value: d,
|
|
13680
13757
|
arrowClass: "ag-charts-tooltip--arrow-left",
|
|
13681
13758
|
style: {
|
|
13682
13759
|
"--left": `${r.left + 8}px`,
|
|
@@ -13686,7 +13763,7 @@ function Pp(e) {
|
|
|
13686
13763
|
}
|
|
13687
13764
|
} : {
|
|
13688
13765
|
label: e.label,
|
|
13689
|
-
value:
|
|
13766
|
+
value: d,
|
|
13690
13767
|
arrowClass: "ag-charts-tooltip--arrow-bottom",
|
|
13691
13768
|
style: {
|
|
13692
13769
|
"--left": `${r.left + l * r.width}px`,
|
|
@@ -13795,7 +13872,6 @@ var Fp = { style: {
|
|
|
13795
13872
|
tableConfigOptions: {},
|
|
13796
13873
|
customCssProperties: {},
|
|
13797
13874
|
crosslineOverlayGroups: {},
|
|
13798
|
-
initialActiveOverlayGroupIds: {},
|
|
13799
13875
|
colDefs: {},
|
|
13800
13876
|
rowData: {},
|
|
13801
13877
|
filterStore: {},
|
|
@@ -13924,8 +14000,7 @@ var Fp = { style: {
|
|
|
13924
14000
|
"handle-settings-icon",
|
|
13925
14001
|
"focus-update",
|
|
13926
14002
|
"chart-collapsed",
|
|
13927
|
-
"table-overlay-change"
|
|
13928
|
-
"active-overlay-group-ids-change"
|
|
14003
|
+
"table-overlay-change"
|
|
13929
14004
|
],
|
|
13930
14005
|
setup(e, { expose: n, emit: c }) {
|
|
13931
14006
|
let l = e, d = c, p = k(null), m = k(null), h = k(null), g = k(null), b = k(l.initialChartCollapsed ?? !1), C = "filter-panel-" + f()?.uid, w = k(!1), E = k(!1), A = k(0), M = r(() => m.value?.availableRowGroupColumns || []), P = k([]), I = r(() => P.value.length > 0 ? P.value[0] : ""), L = (e) => $(e).chartSeriesDisplayName || e.headerName || e.field || "", z = k({}), B = (e) => {
|
|
@@ -13942,7 +14017,7 @@ var Fp = { style: {
|
|
|
13942
14017
|
seriesValue: t(e)
|
|
13943
14018
|
}));
|
|
13944
14019
|
}, H = r(() => {
|
|
13945
|
-
let e =
|
|
14020
|
+
let e = ke.value;
|
|
13946
14021
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
13947
14022
|
label: "Count",
|
|
13948
14023
|
value: e.yAxis.defaultValue
|
|
@@ -14000,39 +14075,59 @@ var Fp = { style: {
|
|
|
14000
14075
|
O(kl, ie);
|
|
14001
14076
|
let { setFilterSelectedValues: K } = G, ae = k(!1);
|
|
14002
14077
|
O(zl, ae);
|
|
14003
|
-
let
|
|
14078
|
+
let oe = k(l.isTableGrouped), se = (e) => {
|
|
14004
14079
|
d("table-overlay-change", e);
|
|
14005
|
-
},
|
|
14080
|
+
}, ce = r(() => Lt.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && G.filterModelEmpty.value)), q = r(() => ie?.computedFocusType.value || null), le = r(() => ie?.computedFocuses.value || []), ue = (e) => {
|
|
14006
14081
|
z.value = Object.fromEntries(e.getValueColumns().map((e) => [e.getColId(), e.getAggFunc()]).filter((e) => typeof e[1] == "string"));
|
|
14082
|
+
}, J = k(null), de = (e) => {
|
|
14083
|
+
p.value = e.api, ue(e.api), oe.value || p.value?.setRowGroupColumns([]), l.tableConfigOptions?.enableColumnConfiguration && (J.value = e.api.getAllGridColumns().map((e) => e.getColId())), tt(e.api), d("grid-ready", e);
|
|
14084
|
+
}, fe = (e) => {
|
|
14085
|
+
J.value = e.orderedColIds, d("chart-state-changed", {
|
|
14086
|
+
api: p.value,
|
|
14087
|
+
newState: {
|
|
14088
|
+
orderedColIds: e.orderedColIds,
|
|
14089
|
+
hiddenColIds: e.hiddenColIds
|
|
14090
|
+
},
|
|
14091
|
+
oldState: {
|
|
14092
|
+
orderedColIds: e.previousOrderedColIds,
|
|
14093
|
+
hiddenColIds: e.previousHiddenColIds
|
|
14094
|
+
}
|
|
14095
|
+
});
|
|
14096
|
+
}, pe = (e) => {
|
|
14097
|
+
if (d("column-moved", e), !l.tableConfigOptions?.enableColumnConfiguration || !e.finished || e.source !== "uiColumnMoved") return;
|
|
14098
|
+
let t = e.api.getAllGridColumns().map((e) => e.getColId());
|
|
14099
|
+
d("chart-state-changed", {
|
|
14100
|
+
api: p.value,
|
|
14101
|
+
newState: { orderedColIds: t },
|
|
14102
|
+
oldState: { orderedColIds: J.value }
|
|
14103
|
+
}), J.value = t;
|
|
14007
14104
|
}, Y = (e) => {
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
le(e.api), t?.columnField && Ae.value && (Ae.value = te.value.find((e) => e.columnField === t.columnField)?.value), Qe(e.api), d("column-value-changed", e);
|
|
14012
|
-
}, X = (e) => {
|
|
14105
|
+
let t = ne(te.value, Ne.value);
|
|
14106
|
+
ue(e.api), t?.columnField && Ne.value && (Ne.value = te.value.find((e) => e.columnField === t.columnField)?.value), tt(e.api), d("column-value-changed", e);
|
|
14107
|
+
}, me = (e) => {
|
|
14013
14108
|
let t = p.value;
|
|
14014
14109
|
!t || t.getColumn(e.columnField)?.getAggFunc() === e.aggFunc || t.applyColumnState({ state: [{
|
|
14015
14110
|
colId: e.columnField,
|
|
14016
14111
|
aggFunc: e.aggFunc
|
|
14017
14112
|
}] });
|
|
14018
|
-
},
|
|
14113
|
+
}, he = (e) => {
|
|
14019
14114
|
d("first-data-rendered", e);
|
|
14020
|
-
},
|
|
14115
|
+
}, ge = (e) => {
|
|
14021
14116
|
let t = P.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
14022
|
-
if (
|
|
14023
|
-
let t =
|
|
14024
|
-
if (n.length >
|
|
14025
|
-
let t = n.slice(0,
|
|
14117
|
+
if (oe.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
14118
|
+
let t = ke.value;
|
|
14119
|
+
if (n.length > Ae.value) {
|
|
14120
|
+
let t = n.slice(0, Ae.value);
|
|
14026
14121
|
P.value = t, e.api.setRowGroupColumns(t);
|
|
14027
14122
|
} else P.value = n;
|
|
14028
|
-
t.yAxis.defaultValue && (
|
|
14123
|
+
t.yAxis.defaultValue && (Q.value = t.yAxis.defaultValue);
|
|
14029
14124
|
}
|
|
14030
14125
|
d("column-row-group-changed", e);
|
|
14031
|
-
},
|
|
14032
|
-
|
|
14126
|
+
}, _e = async (e) => {
|
|
14127
|
+
tt(e.api), ae.value && d("filter-changed", e);
|
|
14033
14128
|
};
|
|
14034
14129
|
U(() => P.value, () => {
|
|
14035
|
-
if (
|
|
14130
|
+
if (oe.value) {
|
|
14036
14131
|
if (!p.value) return;
|
|
14037
14132
|
let e = p.value.getRowGroupColumns().map((e) => e.getColId());
|
|
14038
14133
|
JSON.stringify(e) !== JSON.stringify(P.value) && v(() => {
|
|
@@ -14042,45 +14137,45 @@ var Fp = { style: {
|
|
|
14042
14137
|
p?.value?.setRowGroupColumns([]);
|
|
14043
14138
|
});
|
|
14044
14139
|
if (!l.allFieldsAreFocusable) {
|
|
14045
|
-
let e =
|
|
14140
|
+
let e = ke.value.supportsFocusView && I.value || null;
|
|
14046
14141
|
ie.setFocusType(e);
|
|
14047
14142
|
}
|
|
14048
|
-
p.value &&
|
|
14143
|
+
p.value && tt(p.value);
|
|
14049
14144
|
});
|
|
14050
|
-
function
|
|
14145
|
+
function ve(e, t, n = !0) {
|
|
14051
14146
|
return (r) => {
|
|
14052
|
-
if (r.data =
|
|
14053
|
-
let i = "", a =
|
|
14147
|
+
if (r.data = Me.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
14148
|
+
let i = "", a = be(e);
|
|
14054
14149
|
if (l.truncateLabelValues && n && a && as(a) && !isNaN(Number(r.value))) {
|
|
14055
|
-
if (
|
|
14056
|
-
let e = r.datum?.[I.value], t =
|
|
14150
|
+
if (Je.value) {
|
|
14151
|
+
let e = r.datum?.[I.value], t = Z.value?.find((t) => t[I.value] === e)?.[`${Q.value}_sort_total`] || Infinity;
|
|
14057
14152
|
if (r.value / t < .05) return "";
|
|
14058
14153
|
}
|
|
14059
|
-
let { newValue: e, newSuffix: t } = es(r.value, Xo.Percent === $(a).dataType,
|
|
14154
|
+
let { newValue: e, newSuffix: t } = es(r.value, Xo.Percent === $(a).dataType, Ot.value);
|
|
14060
14155
|
r.value = e, i = t;
|
|
14061
14156
|
}
|
|
14062
14157
|
let o = r.value;
|
|
14063
14158
|
return t && (o = t(r)), o + i;
|
|
14064
14159
|
};
|
|
14065
14160
|
}
|
|
14066
|
-
let
|
|
14161
|
+
let ye = (e, t = !1) => {
|
|
14067
14162
|
if (!e) return;
|
|
14068
|
-
let n =
|
|
14069
|
-
return n && typeof n.valueFormatter == "function" ?
|
|
14070
|
-
},
|
|
14071
|
-
let n =
|
|
14163
|
+
let n = be(e);
|
|
14164
|
+
return n && typeof n.valueFormatter == "function" ? ve(e, n.valueFormatter, t) : ve(e, null, t);
|
|
14165
|
+
}, be = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), xe = r(() => gs(be(I.value))), Se = (e, t) => {
|
|
14166
|
+
let n = be(I.value);
|
|
14072
14167
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
14073
|
-
},
|
|
14074
|
-
let t =
|
|
14168
|
+
}, Ce = (e) => {
|
|
14169
|
+
let t = be(I.value);
|
|
14075
14170
|
return t && typeof t.valueFormatter == "function" ? t.valueFormatter({ value: e }) : `${e}`;
|
|
14076
|
-
},
|
|
14171
|
+
}, we = r(() => [
|
|
14077
14172
|
...P.value.length > 1 ? Bo : zo,
|
|
14078
14173
|
Vo,
|
|
14079
14174
|
Ho
|
|
14080
|
-
].filter((e) => l.enabledChartTypes?.includes(e.id))),
|
|
14081
|
-
let e =
|
|
14175
|
+
].filter((e) => l.enabledChartTypes?.includes(e.id))), Te = k(void 0), Ee = k(void 0), De = k(void 0), Oe = !1, ke = r(() => lp(Te.value?.id || "")), Ae = r(() => Math.min(ke.value.rowGroupLimit, l.rowGroupLimit)), X = r(() => {
|
|
14176
|
+
let e = ke.value.xAxis.filterColumns;
|
|
14082
14177
|
return e ? e(M.value) : M.value;
|
|
14083
|
-
}),
|
|
14178
|
+
}), je = k([{
|
|
14084
14179
|
text: "Ascending",
|
|
14085
14180
|
id: "asc",
|
|
14086
14181
|
icon: "arrow-up-wide-narrow"
|
|
@@ -14088,50 +14183,50 @@ var Fp = { style: {
|
|
|
14088
14183
|
text: "Descending",
|
|
14089
14184
|
id: "desc",
|
|
14090
14185
|
icon: "arrow-down-narrow-wide"
|
|
14091
|
-
}]),
|
|
14092
|
-
O(jl, p), O(Ul,
|
|
14093
|
-
e &&
|
|
14186
|
+
}]), Me = k([]), Z = k([]), Q = k(l.yKey), Ne = k(te.value[0]?.value), Pe = r(() => l.crosslineOverlayGroups ?? []), Fe = k(null), Ie = k(je.value.find((e) => e.id === l.initialSort || "")), Le = k("");
|
|
14187
|
+
O(jl, p), O(Ul, Le), O(Fl, X), O(Wl, P), O(Gl, we), O(Kl, je), O(ql, Te), O(Jl, Ie), O(Yl, Q), O(Xl, H), O(Zl, Ne), O(Ql, te), O(tu, Pe), U(xe, (e) => {
|
|
14188
|
+
e && Ie.value && (Ie.value = void 0);
|
|
14094
14189
|
}, { immediate: !0 });
|
|
14095
|
-
let
|
|
14096
|
-
|
|
14097
|
-
},
|
|
14190
|
+
let Re = (e) => {
|
|
14191
|
+
Te.value = we.value.find((t) => t.id === e) ?? we.value[0];
|
|
14192
|
+
}, ze = (e) => {
|
|
14098
14193
|
let t = P.value.length, n = (e) => {
|
|
14099
|
-
let n =
|
|
14194
|
+
let n = lp(e.id);
|
|
14100
14195
|
return t <= Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14101
|
-
}, r =
|
|
14102
|
-
return r && n(r) ? r.id :
|
|
14196
|
+
}, r = we.value.find((t) => t.id === e);
|
|
14197
|
+
return r && n(r) ? r.id : we.value.find(n)?.id ?? we.value[0]?.id;
|
|
14103
14198
|
};
|
|
14104
|
-
U(() =>
|
|
14105
|
-
let e =
|
|
14106
|
-
if (
|
|
14107
|
-
let a =
|
|
14108
|
-
a &&
|
|
14109
|
-
}), U(() => l.chartType, (e) =>
|
|
14110
|
-
e !==
|
|
14111
|
-
}), U(
|
|
14199
|
+
U(() => we.value, () => {
|
|
14200
|
+
let e = Ye.value, t = e !== Oe, n = lp(Te.value?.id || ""), r = we.value.some((e) => e.id === Te.value?.id), i = P.value.length > Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14201
|
+
if (Oe = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
14202
|
+
let a = ze((e ? De?.value : Ee?.value) ?? l.chartType);
|
|
14203
|
+
a && Re(a);
|
|
14204
|
+
}), U(() => l.chartType, (e) => Re(e)), U(() => l.yKey, (e) => {
|
|
14205
|
+
e !== Q.value && (Q.value = e);
|
|
14206
|
+
}), U(Le, (e) => {
|
|
14112
14207
|
if (l.chartFilter && p.value) {
|
|
14113
14208
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
14114
14209
|
n && n.length === 0 && (n = null), K(t, n || []);
|
|
14115
14210
|
let r = Lu({
|
|
14116
14211
|
filterType: "set",
|
|
14117
14212
|
values: n
|
|
14118
|
-
},
|
|
14213
|
+
}, be(t));
|
|
14119
14214
|
p.value.setColumnFilterModel(t, r).then(() => {
|
|
14120
14215
|
p.value?.onFilterChanged();
|
|
14121
14216
|
});
|
|
14122
14217
|
}
|
|
14123
14218
|
});
|
|
14124
|
-
let
|
|
14125
|
-
let e =
|
|
14126
|
-
if (
|
|
14219
|
+
let Be = (e) => e?.label ?? "", Ve = r(() => Be(ne(H.value, Q.value))), He = r(() => ne(te.value, Ne.value)), Ue = r(() => Be(He.value)), We = r(() => ke.value.isHorizontal === !0), Ge = r(() => P.value.length > 1), Ke = r(() => !Te.value || H.value.length === 0 ? [] : ke.value.seriesFamily === "pie" ? Qe.value : Ze.value), qe = r(() => Te.value?.id === "histogram" && l.useDistributionV2Styling ? !1 : l.showSeriesLabels), Je = r(() => Te.value?.id.includes("stacked")), Ye = r(() => P.value.length > 1), Xe = r(() => Te.value?.id === "histogram" && at.value && at.value.length > 0 && typeof at.value[0]?.bucketMin == "number" && typeof at.value[0]?.bucketMax == "number"), Ze = r(() => {
|
|
14220
|
+
let e = Je.value, t = ke.value.agChartType, n = [], r = ye(Q.value, !0), i = ye(Fe.value?.fieldName, !0), a = (e) => t === "line" ? {} : { placement: e };
|
|
14221
|
+
if (Ge.value) Fe.value?.fieldValues.forEach((o) => {
|
|
14127
14222
|
let s = {
|
|
14128
14223
|
type: t,
|
|
14129
14224
|
xKey: I.value,
|
|
14130
|
-
yKey: ys(
|
|
14225
|
+
yKey: ys(Q.value, o),
|
|
14131
14226
|
yName: typeof i == "function" ? i({ value: o }) : o,
|
|
14132
14227
|
...t === "line" ? {} : { stacked: e },
|
|
14133
14228
|
label: {
|
|
14134
|
-
enabled:
|
|
14229
|
+
enabled: qe.value && t !== "line",
|
|
14135
14230
|
color: e ? "white" : "black",
|
|
14136
14231
|
fontFamily: "Inter",
|
|
14137
14232
|
padding: 5,
|
|
@@ -14146,10 +14241,10 @@ var Fp = { style: {
|
|
|
14146
14241
|
let e = {
|
|
14147
14242
|
type: t,
|
|
14148
14243
|
xKey: I.value,
|
|
14149
|
-
yKey:
|
|
14150
|
-
yName:
|
|
14244
|
+
yKey: Q.value,
|
|
14245
|
+
yName: Ve.value,
|
|
14151
14246
|
label: {
|
|
14152
|
-
enabled:
|
|
14247
|
+
enabled: qe.value,
|
|
14153
14248
|
color: "black",
|
|
14154
14249
|
fontFamily: "Inter",
|
|
14155
14250
|
padding: 5,
|
|
@@ -14163,12 +14258,12 @@ var Fp = { style: {
|
|
|
14163
14258
|
let o = {};
|
|
14164
14259
|
if (t === "bar") {
|
|
14165
14260
|
let e = o;
|
|
14166
|
-
e.direction =
|
|
14261
|
+
e.direction = We.value ? "horizontal" : "vertical", o = e;
|
|
14167
14262
|
} else if (t === "line" || t === "area") {
|
|
14168
14263
|
let e = o;
|
|
14169
14264
|
e.connectMissingData = !0, o = e;
|
|
14170
14265
|
}
|
|
14171
|
-
let s =
|
|
14266
|
+
let s = ut.value == null ? {} : {
|
|
14172
14267
|
fillOpacity: .3,
|
|
14173
14268
|
strokeOpacity: .3
|
|
14174
14269
|
};
|
|
@@ -14176,39 +14271,39 @@ var Fp = { style: {
|
|
|
14176
14271
|
...e,
|
|
14177
14272
|
...o,
|
|
14178
14273
|
...s
|
|
14179
|
-
})),
|
|
14274
|
+
})), ke.value.yAxis.defaultValue === "groupedRecordCount" && (n = n.map((e) => ({
|
|
14180
14275
|
...e,
|
|
14181
14276
|
tooltip: { renderer: (e) => {
|
|
14182
14277
|
let t = String(e.datum[e.xKey] ?? ""), n = e.datum.bucketMin, r = e.datum.bucketMax;
|
|
14183
|
-
return typeof n == "number" && typeof r == "number" && (t =
|
|
14278
|
+
return typeof n == "number" && typeof r == "number" && (t = Se(n, r)), {
|
|
14184
14279
|
title: t,
|
|
14185
14280
|
content: `Count: ${e.datum[e.yKey]}`
|
|
14186
14281
|
};
|
|
14187
14282
|
} }
|
|
14188
|
-
}))),
|
|
14283
|
+
}))), Ne.value) {
|
|
14189
14284
|
let t;
|
|
14190
|
-
t = e ? `${
|
|
14191
|
-
let r =
|
|
14285
|
+
t = e ? `${Ne.value}${Yo}` : Ne.value;
|
|
14286
|
+
let r = be(I.value)?.context?.metadataDisplayFields?.[0] || I.value, i = Op(I.value, r, t, Ue.value, We.value), a = {
|
|
14192
14287
|
type: "scatter",
|
|
14193
14288
|
id: "metric-overlay",
|
|
14194
|
-
data:
|
|
14289
|
+
data: xt.value,
|
|
14195
14290
|
...i,
|
|
14196
14291
|
label: { enabled: !1 }
|
|
14197
14292
|
};
|
|
14198
|
-
if (
|
|
14199
|
-
let e =
|
|
14200
|
-
a.tooltip = { renderer:
|
|
14293
|
+
if (He.value?.tooltipRenderer) {
|
|
14294
|
+
let e = He.value.tooltipRenderer;
|
|
14295
|
+
a.tooltip = { renderer: We.value ? (n) => e({
|
|
14201
14296
|
...n,
|
|
14202
14297
|
xKey: I.value,
|
|
14203
14298
|
xName: r,
|
|
14204
14299
|
yKey: t,
|
|
14205
|
-
yName:
|
|
14300
|
+
yName: Ue.value
|
|
14206
14301
|
}) : e };
|
|
14207
14302
|
}
|
|
14208
14303
|
n = [...n, a];
|
|
14209
14304
|
}
|
|
14210
|
-
if (
|
|
14211
|
-
let e =
|
|
14305
|
+
if (Xe.value && ct.value.length > 0 && at.value) {
|
|
14306
|
+
let e = at.value.length, t = Number.isFinite(Ot.value) ? Ot.value : 0, r = {
|
|
14212
14307
|
type: "scatter",
|
|
14213
14308
|
xKey: "__dummy_x__",
|
|
14214
14309
|
yKey: "__dummy_y__",
|
|
@@ -14222,20 +14317,20 @@ var Fp = { style: {
|
|
|
14222
14317
|
label: { enabled: !1 },
|
|
14223
14318
|
tooltip: { enabled: !1 },
|
|
14224
14319
|
visible: !1
|
|
14225
|
-
}, { categoryPadOffset: i } =
|
|
14320
|
+
}, { categoryPadOffset: i } = Ap(e, Xe.value && l.useDistributionV2Styling), a = {
|
|
14226
14321
|
type: "scatter",
|
|
14227
14322
|
xKey: "__dummy_x__",
|
|
14228
14323
|
yKey: "__dummy_y__",
|
|
14229
|
-
data:
|
|
14230
|
-
let t =
|
|
14324
|
+
data: ct.value.flatMap((e) => {
|
|
14325
|
+
let t = kp(e.value, at.value || []);
|
|
14231
14326
|
if (t === null) return [];
|
|
14232
|
-
let n = t + i, r = Number.isFinite(
|
|
14327
|
+
let n = t + i, r = Number.isFinite(Ot.value) ? Ot.value : 0, a = ye(P.value?.[0]), o = typeof a == "function" ? a({ value: e.value }) : e.value;
|
|
14233
14328
|
return Array.from({ length: 30 }, (t, i) => ({
|
|
14234
14329
|
value: o,
|
|
14235
14330
|
__dummy_x__: n,
|
|
14236
14331
|
__dummy_y__: r / 29 * i,
|
|
14237
14332
|
__dummy_overlay_label__: e.label,
|
|
14238
|
-
[
|
|
14333
|
+
[Q.value]: r
|
|
14239
14334
|
}));
|
|
14240
14335
|
}),
|
|
14241
14336
|
size: 15,
|
|
@@ -14265,41 +14360,41 @@ var Fp = { style: {
|
|
|
14265
14360
|
];
|
|
14266
14361
|
}
|
|
14267
14362
|
return n;
|
|
14268
|
-
}),
|
|
14363
|
+
}), Qe = r(() => H.value.length === 0 ? [] : [{
|
|
14269
14364
|
type: "pie",
|
|
14270
14365
|
legendItemKey: I.value,
|
|
14271
|
-
angleKey:
|
|
14366
|
+
angleKey: Q.value
|
|
14272
14367
|
}]);
|
|
14273
|
-
U(
|
|
14368
|
+
U(Q, (e, t) => {
|
|
14274
14369
|
d("chart-state-changed", {
|
|
14275
14370
|
api: p.value,
|
|
14276
14371
|
newState: { seriesField: e },
|
|
14277
14372
|
oldState: { seriesField: t }
|
|
14278
14373
|
});
|
|
14279
|
-
}), U(
|
|
14374
|
+
}), U(Ne, (e, t) => {
|
|
14280
14375
|
d("chart-state-changed", {
|
|
14281
14376
|
api: p.value,
|
|
14282
14377
|
newState: { secondarySeriesField: e },
|
|
14283
14378
|
oldState: { secondarySeriesField: t }
|
|
14284
14379
|
});
|
|
14285
|
-
}), U(
|
|
14286
|
-
e?.id &&
|
|
14287
|
-
let n =
|
|
14288
|
-
ot(i, P.value) || (P.value = i), n.yAxis.defaultValue ?
|
|
14289
|
-
l.yKey ?
|
|
14380
|
+
}), U(Te, (e, t) => {
|
|
14381
|
+
e?.id && lp(e.id).storeBeforeChange && (Ye.value ? De.value = e.id : Ee.value = e.id);
|
|
14382
|
+
let n = lp(e?.id || ""), r = lp(t?.id || ""), i = (n.xAxis.filterColumns === r.xAxis.filterColumns ? P.value : np(P.value, M.value, n.xAxis.filterColumns)).slice(0, Math.min(n.rowGroupLimit, l.rowGroupLimit));
|
|
14383
|
+
ot(i, P.value) || (P.value = i), n.yAxis.defaultValue ? Q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
14384
|
+
l.yKey ? Q.value = l.yKey : H.value.length > 0 && (Q.value = H.value[0].value);
|
|
14290
14385
|
}), d("chart-state-changed", {
|
|
14291
14386
|
api: p.value,
|
|
14292
14387
|
newState: { chartType: e?.id },
|
|
14293
14388
|
oldState: { chartType: t?.id }
|
|
14294
14389
|
});
|
|
14295
|
-
}), U(
|
|
14390
|
+
}), U(X, (e) => {
|
|
14296
14391
|
if (e.length === 1 && P.value.length === 0) {
|
|
14297
14392
|
let t = e[0].field;
|
|
14298
14393
|
t && (P.value = [t]);
|
|
14299
14394
|
}
|
|
14300
14395
|
}), U(H, (e) => {
|
|
14301
|
-
e.length === 1 && !
|
|
14302
|
-
}), U(
|
|
14396
|
+
e.length === 1 && !Q.value && (Q.value = e[0].value);
|
|
14397
|
+
}), U(Ie, (e, t) => {
|
|
14303
14398
|
d("chart-state-changed", {
|
|
14304
14399
|
api: p.value,
|
|
14305
14400
|
newState: { chartSort: e?.id },
|
|
@@ -14311,14 +14406,14 @@ var Fp = { style: {
|
|
|
14311
14406
|
newState: { chartCategoryFields: e },
|
|
14312
14407
|
oldState: { chartCategoryFields: t }
|
|
14313
14408
|
});
|
|
14314
|
-
}), U(
|
|
14409
|
+
}), U(oe, (e, t) => {
|
|
14315
14410
|
d("chart-state-changed", {
|
|
14316
14411
|
api: p.value,
|
|
14317
14412
|
newState: { tableGrouped: e },
|
|
14318
14413
|
oldState: { tableGrouped: t }
|
|
14319
14414
|
});
|
|
14320
14415
|
}), U(() => l.isTableGrouped, (e, t) => {
|
|
14321
|
-
!p.value || e === t || !l.enableGroupingToggle ||
|
|
14416
|
+
!p.value || e === t || !l.enableGroupingToggle || Wt(e);
|
|
14322
14417
|
}), U(() => l.initialFocusData, (e, t) => {
|
|
14323
14418
|
if (!(ot(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
14324
14419
|
if (!e?.focusType) {
|
|
@@ -14328,24 +14423,24 @@ var Fp = { style: {
|
|
|
14328
14423
|
ie.setFocusType(e?.focusType), ie.setFocuses(e?.focuses ?? []);
|
|
14329
14424
|
}
|
|
14330
14425
|
}, { deep: !0 });
|
|
14331
|
-
let
|
|
14332
|
-
|
|
14333
|
-
},
|
|
14426
|
+
let $e = () => {
|
|
14427
|
+
Me.value = [], Z.value = [], Fe.value = null;
|
|
14428
|
+
}, et = (e, t) => {
|
|
14334
14429
|
if (!e || e.length === 0) {
|
|
14335
|
-
|
|
14430
|
+
$e();
|
|
14336
14431
|
return;
|
|
14337
14432
|
}
|
|
14338
14433
|
if (t) {
|
|
14339
|
-
let { stackedData: n, uniqueFieldValues: r } = xs(e, I.value, t,
|
|
14340
|
-
|
|
14434
|
+
let { stackedData: n, uniqueFieldValues: r } = xs(e, I.value, t, nt.value, re.value);
|
|
14435
|
+
Z.value = n, Fe.value = {
|
|
14341
14436
|
fieldName: t,
|
|
14342
14437
|
fieldValues: r
|
|
14343
14438
|
};
|
|
14344
|
-
} else
|
|
14345
|
-
|
|
14346
|
-
},
|
|
14439
|
+
} else Z.value = [], Fe.value = null;
|
|
14440
|
+
Me.value = e;
|
|
14441
|
+
}, tt = (e) => {
|
|
14347
14442
|
let t = ++A.value, n = P.value.length;
|
|
14348
|
-
if (
|
|
14443
|
+
if ($e(), E.value = !1, n === 0 || H.value.length === 0 || l.requireFiltersToShowData && G.filterModelEmpty.value) return;
|
|
14349
14444
|
if (l.serverSideChartHandler) {
|
|
14350
14445
|
let e = G.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
14351
14446
|
if (e === null && l.initialGridState) {
|
|
@@ -14353,13 +14448,13 @@ var Fp = { style: {
|
|
|
14353
14448
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
14354
14449
|
}
|
|
14355
14450
|
e ||= {};
|
|
14356
|
-
let r = us(ds(P.value.map((e) => p.value?.getColumn(e)).filter((e) => e !== void 0)), n), i = new Set(n.filter((e) => $(e).chartOnSecondaryAxes === !0).map((e) => e.field).filter(Boolean)), a = p.value?.getValueColumns().filter((e) => e.getColId() ===
|
|
14451
|
+
let r = us(ds(P.value.map((e) => p.value?.getColumn(e)).filter((e) => e !== void 0)), n), i = new Set(n.filter((e) => $(e).chartOnSecondaryAxes === !0).map((e) => e.field).filter(Boolean)), a = p.value?.getValueColumns().filter((e) => e.getColId() === Q.value || i.has(e.getColId())), o = {
|
|
14357
14452
|
rowGroupCols: r || [],
|
|
14358
14453
|
valueCols: ds(a || []),
|
|
14359
14454
|
filterModel: e
|
|
14360
14455
|
};
|
|
14361
14456
|
E.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
14362
|
-
t === A.value && (
|
|
14457
|
+
t === A.value && (et(e.data, e.stackField), E.value = !1);
|
|
14363
14458
|
}).catch((e) => {
|
|
14364
14459
|
t === A.value && (console.error("Chart handler error:", e), E.value = !1);
|
|
14365
14460
|
});
|
|
@@ -14370,27 +14465,27 @@ var Fp = { style: {
|
|
|
14370
14465
|
if (e.forEachNodeAfterFilterAndSort((e) => {
|
|
14371
14466
|
if (e.group && e.level === 0) {
|
|
14372
14467
|
if (P.value.length > 1) {
|
|
14373
|
-
let { rowData: t, fieldValues: n } =
|
|
14468
|
+
let { rowData: t, fieldValues: n } = it(e, e.childrenAfterFilter?.filter((e) => e.level === 1 && e.aggData) || []);
|
|
14374
14469
|
a = a.union(n), i?.push(t);
|
|
14375
14470
|
}
|
|
14376
|
-
let t =
|
|
14471
|
+
let t = rt(e);
|
|
14377
14472
|
r?.push(t);
|
|
14378
14473
|
}
|
|
14379
|
-
}),
|
|
14474
|
+
}), Me.value = r, P.value.length > 1 && i && i.length > 0) {
|
|
14380
14475
|
let e = P.value[1] || "";
|
|
14381
|
-
|
|
14476
|
+
Z.value = i, Fe.value = {
|
|
14382
14477
|
fieldName: e,
|
|
14383
14478
|
fieldValues: Array.from(a)
|
|
14384
14479
|
};
|
|
14385
|
-
} else
|
|
14386
|
-
},
|
|
14480
|
+
} else Z.value = [], Fe.value = null;
|
|
14481
|
+
}, nt = r(() => {
|
|
14387
14482
|
let e = H.value, t = te.value;
|
|
14388
14483
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
14389
|
-
}),
|
|
14484
|
+
}), rt = (e) => {
|
|
14390
14485
|
let t = { [e.field]: e.key };
|
|
14391
|
-
for (let n of
|
|
14486
|
+
for (let n of nt.value) !e.aggData || !e.aggData[n.value] || (t[n.value] = e.aggData[n.value]?.value ?? e.aggData[n.value]);
|
|
14392
14487
|
return t;
|
|
14393
|
-
},
|
|
14488
|
+
}, it = (e, t) => {
|
|
14394
14489
|
let n = /* @__PURE__ */ new Set(), r = { [e.field]: e.key }, i = 0;
|
|
14395
14490
|
for (let a of H.value) t.forEach((t) => {
|
|
14396
14491
|
let o = t.key;
|
|
@@ -14407,15 +14502,15 @@ var Fp = { style: {
|
|
|
14407
14502
|
rowData: r,
|
|
14408
14503
|
fieldValues: n
|
|
14409
14504
|
};
|
|
14410
|
-
},
|
|
14411
|
-
let e =
|
|
14412
|
-
if (
|
|
14413
|
-
else if (t && e &&
|
|
14414
|
-
let n =
|
|
14505
|
+
}, at = r(() => {
|
|
14506
|
+
let e = Ge.value ? Z.value : Me.value, t = null;
|
|
14507
|
+
if (Ie.value && (t = Ge.value ? `${Q.value}${Yo}` : Q.value), xe.value) e = vs(e, I.value);
|
|
14508
|
+
else if (t && e && Ie.value) {
|
|
14509
|
+
let n = Ie.value?.id.includes("desc") ? -1 : 1;
|
|
14415
14510
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
14416
14511
|
}
|
|
14417
|
-
if (
|
|
14418
|
-
let t = e?.filter((e) =>
|
|
14512
|
+
if (ke.value.agChartType === "bar" && (e = Ss(e, I.value)), l.enableFocusView && e && le.value.length > 0 && q.value) {
|
|
14513
|
+
let t = e?.filter((e) => le.value.includes(e[I.value])), n = e?.filter((e) => !le.value.includes(e[I.value]));
|
|
14419
14514
|
e = [
|
|
14420
14515
|
...t || [],
|
|
14421
14516
|
{ [I.value]: Wo },
|
|
@@ -14423,37 +14518,36 @@ var Fp = { style: {
|
|
|
14423
14518
|
];
|
|
14424
14519
|
}
|
|
14425
14520
|
return e;
|
|
14426
|
-
}), { activeCrosslineOverlayGroups:
|
|
14427
|
-
crosslineOverlayGroups:
|
|
14521
|
+
}), { activeCrosslineOverlayGroups: st, resolvedCrosslineOverlays: ct, chipSections: lt, hoveredBenchmarkKey: ut, hoveredCrosslineTooltip: dt } = Pp({
|
|
14522
|
+
crosslineOverlayGroups: Pe,
|
|
14428
14523
|
useDistributionV2Styling: r(() => l.useDistributionV2Styling),
|
|
14429
|
-
isHistogramWithBuckets:
|
|
14430
|
-
isHorizontalBarChart:
|
|
14431
|
-
computedChartData:
|
|
14524
|
+
isHistogramWithBuckets: Xe,
|
|
14525
|
+
isHorizontalBarChart: We,
|
|
14526
|
+
computedChartData: at,
|
|
14432
14527
|
pvChartRef: h,
|
|
14433
14528
|
formatValue: (e) => {
|
|
14434
|
-
let t =
|
|
14529
|
+
let t = ye(P.value?.[0]);
|
|
14435
14530
|
return typeof t == "function" ? t({ value: e }) : e;
|
|
14436
|
-
}
|
|
14437
|
-
initialActiveOverlayGroupIds: r(() => l.initialActiveOverlayGroupIds)
|
|
14531
|
+
}
|
|
14438
14532
|
});
|
|
14439
|
-
O(eu,
|
|
14440
|
-
let
|
|
14441
|
-
let e = I.value, t =
|
|
14442
|
-
return !e || !t ? [] : (
|
|
14533
|
+
O(eu, st);
|
|
14534
|
+
let ft = new Set([qo, Jo]), pt = k(void 0), mt = r(() => Te.value?.id === "map"), ht = r(() => Q.value || H.value[0]?.value || "value"), gt = r(() => "600px"), vt = r(() => {
|
|
14535
|
+
let e = I.value, t = ht.value;
|
|
14536
|
+
return !e || !t ? [] : (at.value ?? []).filter((t) => {
|
|
14443
14537
|
let n = String(t?.[e] ?? "");
|
|
14444
|
-
return !
|
|
14538
|
+
return !ft.has(n) && n !== "--SEPARATOR--";
|
|
14445
14539
|
}).map((n) => ({
|
|
14446
14540
|
[Uo]: String(n[e] ?? ""),
|
|
14447
14541
|
[t]: Number(n[t] ?? 0)
|
|
14448
14542
|
}));
|
|
14449
|
-
}),
|
|
14450
|
-
let e =
|
|
14543
|
+
}), yt = r(() => {
|
|
14544
|
+
let e = ht.value;
|
|
14451
14545
|
if (!e) return {
|
|
14452
14546
|
min: 0,
|
|
14453
14547
|
max: 0
|
|
14454
14548
|
};
|
|
14455
14549
|
let t = !1, n = Infinity, r = -Infinity;
|
|
14456
|
-
return
|
|
14550
|
+
return vt.value.forEach((i) => {
|
|
14457
14551
|
let a = Number(i[e]);
|
|
14458
14552
|
Number.isFinite(a) && (t = !0, n = Math.min(n, a), r = Math.max(r, a));
|
|
14459
14553
|
}), t ? {
|
|
@@ -14463,18 +14557,18 @@ var Fp = { style: {
|
|
|
14463
14557
|
min: 0,
|
|
14464
14558
|
max: 0
|
|
14465
14559
|
};
|
|
14466
|
-
}),
|
|
14467
|
-
let e =
|
|
14560
|
+
}), bt = r(() => {
|
|
14561
|
+
let e = be(ht.value)?.valueFormatter;
|
|
14468
14562
|
return typeof e == "function" ? (t) => String(e({ value: t }) ?? t) : (e) => e.toLocaleString("en-US");
|
|
14469
|
-
}),
|
|
14470
|
-
let e = (
|
|
14563
|
+
}), xt = r(() => {
|
|
14564
|
+
let e = (at.value ?? []).filter((e) => {
|
|
14471
14565
|
let t = e?.[I.value];
|
|
14472
|
-
return !
|
|
14473
|
-
}), t =
|
|
14474
|
-
if (!
|
|
14475
|
-
let n =
|
|
14566
|
+
return !ft.has(String(t));
|
|
14567
|
+
}), t = Ne.value;
|
|
14568
|
+
if (!Ge.value || !t || !Fe.value) return e;
|
|
14569
|
+
let n = be(t);
|
|
14476
14570
|
if ((typeof n?.aggFunc == "string" ? n.aggFunc : "") === "sum") return e;
|
|
14477
|
-
let r = `${t}${Yo}`, i =
|
|
14571
|
+
let r = `${t}${Yo}`, i = Fe.value.fieldValues;
|
|
14478
14572
|
return e.map((e) => {
|
|
14479
14573
|
let n = e[r];
|
|
14480
14574
|
if (typeof n != "number") return e;
|
|
@@ -14485,73 +14579,73 @@ var Fp = { style: {
|
|
|
14485
14579
|
[r]: a > 0 ? n / a : null
|
|
14486
14580
|
};
|
|
14487
14581
|
});
|
|
14488
|
-
}),
|
|
14582
|
+
}), St = r(() => at.value?.length || 0), Ct = r(() => l.enableChartScrolling), wt = r(() => cn({
|
|
14489
14583
|
baseMinHeight: 450,
|
|
14490
|
-
dataCount:
|
|
14491
|
-
enableChartScrolling:
|
|
14492
|
-
isHorizontalScrollingChart:
|
|
14584
|
+
dataCount: St.value,
|
|
14585
|
+
enableChartScrolling: Ct.value,
|
|
14586
|
+
isHorizontalScrollingChart: We.value,
|
|
14493
14587
|
itemHeight: 64
|
|
14494
|
-
})),
|
|
14588
|
+
})), Tt = r(() => {
|
|
14495
14589
|
let e = ln({
|
|
14496
|
-
enableChartScrolling:
|
|
14497
|
-
isHorizontalScrollingChart:
|
|
14590
|
+
enableChartScrolling: Ct.value,
|
|
14591
|
+
isHorizontalScrollingChart: We.value
|
|
14498
14592
|
});
|
|
14499
|
-
if (e) return
|
|
14593
|
+
if (e) return We.value ? {
|
|
14500
14594
|
...e,
|
|
14501
14595
|
maxHeight: "450px"
|
|
14502
14596
|
} : e;
|
|
14503
|
-
}),
|
|
14504
|
-
chartMinHeight:
|
|
14505
|
-
dataCount:
|
|
14506
|
-
enableChartScrolling:
|
|
14507
|
-
isHorizontalScrollingChart:
|
|
14597
|
+
}), Et = r(() => un({
|
|
14598
|
+
chartMinHeight: wt.value,
|
|
14599
|
+
dataCount: St.value,
|
|
14600
|
+
enableChartScrolling: Ct.value,
|
|
14601
|
+
isHorizontalScrollingChart: We.value,
|
|
14508
14602
|
minContentWidth: 0,
|
|
14509
|
-
reserveWidth:
|
|
14510
|
-
})),
|
|
14511
|
-
let e = .25 * Math.exp(-.12 *
|
|
14603
|
+
reserveWidth: lt.value.length > 0 ? 255 : 0
|
|
14604
|
+
})), Dt = r(() => Ge.value ? Z.value : at.value), Ot = r(() => Cs(Dt.value, Q.value, Ge.value)), kt = r(() => Ne.value ? Cs(Dt.value, Ne.value, Ge.value) : -Infinity), At = r(() => ws(Dt.value, Q.value, Ge.value)), jt = r(() => Ne.value ? ws(Dt.value, Ne.value, Ge.value) : Infinity), Mt = r(() => Fe.value?.fieldValues?.length || 0), Nt = r(() => {
|
|
14605
|
+
let e = .25 * Math.exp(-.12 * St.value);
|
|
14512
14606
|
return Math.min(Math.max(e, .05), .75);
|
|
14513
|
-
}),
|
|
14514
|
-
let e =
|
|
14607
|
+
}), Pt = r(() => Mt.value > 5 ? .5 : 1), Ft = r(() => Mt.value > 5 ? .25 : .1), It = r(() => !at.value || at.value?.length === 0 ? !0 : Ot.value === -Infinity || Ge.value === !0 && Ot.value === 0), Lt = r(() => !!(l.enableFocusView && q.value && le.value.length === 0 && l.percentOfFocusViewYKey && Q.value && Q.value === l.percentOfFocusViewYKey)), Rt = r(() => {
|
|
14608
|
+
let e = be(q.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
14515
14609
|
return hs({
|
|
14516
14610
|
currentRowGroupColumnsLength: P.value.length,
|
|
14517
|
-
shouldShowFocusOverlayText:
|
|
14518
|
-
chartDataEmpty:
|
|
14611
|
+
shouldShowFocusOverlayText: Lt.value || l.focusRequired && le.value.length === 0,
|
|
14612
|
+
chartDataEmpty: It.value,
|
|
14519
14613
|
missingFocusText: l.missingFocusText,
|
|
14520
14614
|
displayGroupByName: t,
|
|
14521
|
-
yAxisName:
|
|
14615
|
+
yAxisName: Ve.value,
|
|
14522
14616
|
yAxisOptionCount: ee.value
|
|
14523
14617
|
});
|
|
14524
|
-
}),
|
|
14618
|
+
}), zt = r(() => Lt.value || ce.value || !l.isLoading && Rt.value !== ""), Bt = r(() => {
|
|
14525
14619
|
let e = {};
|
|
14526
14620
|
e.overlays = { noData: { text: "" } };
|
|
14527
|
-
let t =
|
|
14621
|
+
let t = Xe.value && l.useDistributionV2Styling, n = t ? [
|
|
14528
14622
|
{ [I.value]: Go },
|
|
14529
|
-
...
|
|
14623
|
+
...at.value ?? [],
|
|
14530
14624
|
{ [I.value]: Ko }
|
|
14531
|
-
] :
|
|
14532
|
-
e.data =
|
|
14625
|
+
] : at.value;
|
|
14626
|
+
e.data = zt.value ? [] : n, e.legend = {
|
|
14533
14627
|
toggleSeries: !1,
|
|
14534
14628
|
preventHidingAll: !0,
|
|
14535
14629
|
enabled: P.value.length > 1
|
|
14536
14630
|
};
|
|
14537
|
-
let r =
|
|
14538
|
-
if (!
|
|
14539
|
-
let e =
|
|
14540
|
-
return
|
|
14541
|
-
})(), a =
|
|
14631
|
+
let r = Ge.value ? Fe.value?.fieldValues.map((e) => ys(Q.value, e)) || [] : Q.value ? [Q.value] : [], i = (() => {
|
|
14632
|
+
if (!Ne.value) return [];
|
|
14633
|
+
let e = Ne.value;
|
|
14634
|
+
return Je.value ? [`${e}${Yo}`] : Ge.value ? Fe.value?.fieldValues.map((t) => ys(e, String(t))) || [] : [e];
|
|
14635
|
+
})(), a = ke.value.xAxis.hideLabel === !0 && !t, o = [];
|
|
14542
14636
|
if (o.push({
|
|
14543
14637
|
type: "category",
|
|
14544
14638
|
keys: [I.value],
|
|
14545
|
-
position:
|
|
14639
|
+
position: We.value ? "left" : "bottom",
|
|
14546
14640
|
crossLines: [{
|
|
14547
14641
|
type: "line",
|
|
14548
14642
|
value: Wo,
|
|
14549
14643
|
stroke: "#666666",
|
|
14550
14644
|
strokeWidth: 1,
|
|
14551
14645
|
lineDash: [4, 4],
|
|
14552
|
-
strokeOpacity:
|
|
14646
|
+
strokeOpacity: ut.value == null ? .7 : .15
|
|
14553
14647
|
}],
|
|
14554
|
-
line: { enabled: !
|
|
14648
|
+
line: { enabled: !Xe.value },
|
|
14555
14649
|
label: {
|
|
14556
14650
|
minSpacing: 10,
|
|
14557
14651
|
autoRotate: !0,
|
|
@@ -14561,23 +14655,23 @@ var Fp = { style: {
|
|
|
14561
14655
|
formatter: Ts({
|
|
14562
14656
|
hideLabel: a,
|
|
14563
14657
|
showDistributionRangeLabels: !!t,
|
|
14564
|
-
chartData:
|
|
14565
|
-
formatBucketBoundary:
|
|
14566
|
-
columnValueFormatter:
|
|
14658
|
+
chartData: at.value,
|
|
14659
|
+
formatBucketBoundary: Ce,
|
|
14660
|
+
columnValueFormatter: ye(I.value),
|
|
14567
14661
|
enableFocusView: l.enableFocusView,
|
|
14568
|
-
focuses:
|
|
14662
|
+
focuses: le.value,
|
|
14569
14663
|
focusText: l.focusText
|
|
14570
14664
|
})
|
|
14571
14665
|
},
|
|
14572
|
-
paddingInner:
|
|
14573
|
-
paddingOuter: t ? 0 :
|
|
14574
|
-
groupPaddingInner:
|
|
14575
|
-
}),
|
|
14576
|
-
let { categoryPadOffset: e, axisMin: n, axisMax: r } =
|
|
14666
|
+
paddingInner: Nt.value,
|
|
14667
|
+
paddingOuter: t ? 0 : Pt.value,
|
|
14668
|
+
groupPaddingInner: Ft.value
|
|
14669
|
+
}), Xe.value && ct.value.length > 0) {
|
|
14670
|
+
let { categoryPadOffset: e, axisMin: n, axisMax: r } = Ap(at.value?.length || 1, t);
|
|
14577
14671
|
o.push({
|
|
14578
14672
|
type: "number",
|
|
14579
14673
|
keys: ["__dummy_x__"],
|
|
14580
|
-
position:
|
|
14674
|
+
position: We.value ? "left" : "bottom",
|
|
14581
14675
|
crosshair: { enabled: !1 },
|
|
14582
14676
|
min: n,
|
|
14583
14677
|
max: r,
|
|
@@ -14586,11 +14680,11 @@ var Fp = { style: {
|
|
|
14586
14680
|
tick: { enabled: !1 },
|
|
14587
14681
|
line: { enabled: !1 },
|
|
14588
14682
|
gridLine: { enabled: !1 },
|
|
14589
|
-
crossLines:
|
|
14590
|
-
if (!
|
|
14591
|
-
let r =
|
|
14683
|
+
crossLines: ct.value.map((n) => {
|
|
14684
|
+
if (!at.value) return null;
|
|
14685
|
+
let r = kp(n.value, at.value);
|
|
14592
14686
|
if (r == null) return null;
|
|
14593
|
-
let i =
|
|
14687
|
+
let i = ut.value != null && n.key === ut.value, a = ut.value != null && !i;
|
|
14594
14688
|
return {
|
|
14595
14689
|
type: "line",
|
|
14596
14690
|
value: r + e,
|
|
@@ -14602,26 +14696,26 @@ var Fp = { style: {
|
|
|
14602
14696
|
}).filter((e) => e !== null)
|
|
14603
14697
|
});
|
|
14604
14698
|
}
|
|
14605
|
-
let s = !!
|
|
14699
|
+
let s = !!Ne.value, c = s ? He.value?.secondaryAxisMax : void 0, u = s && Number.isFinite(At.value) && At.value < 0, d = s && Number.isFinite(jt.value) && jt.value < 0, f = u || d, p = s ? ms(Ot.value, 5) : 0, m = s ? c ?? ms(kt.value, 5) : 0, h = s && !f && p > 0 && m > 0;
|
|
14606
14700
|
if (o.push({
|
|
14607
14701
|
type: "number",
|
|
14608
14702
|
keys: r,
|
|
14609
|
-
position:
|
|
14703
|
+
position: We.value ? "bottom" : "left",
|
|
14610
14704
|
...h ? {
|
|
14611
14705
|
min: 0,
|
|
14612
14706
|
max: p,
|
|
14613
14707
|
nice: !1,
|
|
14614
14708
|
interval: { step: p / 5 }
|
|
14615
14709
|
} : {},
|
|
14616
|
-
label: { formatter:
|
|
14710
|
+
label: { formatter: ye(Q.value) },
|
|
14617
14711
|
title: {
|
|
14618
14712
|
enabled: !0,
|
|
14619
|
-
text:
|
|
14713
|
+
text: Ve.value
|
|
14620
14714
|
}
|
|
14621
14715
|
}), s && o.push({
|
|
14622
14716
|
type: "number",
|
|
14623
14717
|
keys: i,
|
|
14624
|
-
position:
|
|
14718
|
+
position: We.value ? "top" : "right",
|
|
14625
14719
|
crosshair: { enabled: !1 },
|
|
14626
14720
|
...h ? {
|
|
14627
14721
|
min: 0,
|
|
@@ -14639,11 +14733,11 @@ var Fp = { style: {
|
|
|
14639
14733
|
label: { color: _t },
|
|
14640
14734
|
title: {
|
|
14641
14735
|
enabled: !0,
|
|
14642
|
-
text:
|
|
14736
|
+
text: Ue.value,
|
|
14643
14737
|
color: _t
|
|
14644
14738
|
}
|
|
14645
|
-
}),
|
|
14646
|
-
let e = Number.isFinite(
|
|
14739
|
+
}), Xe.value && ct.value.length > 0) {
|
|
14740
|
+
let e = Number.isFinite(Ot.value) ? Ot.value : 0;
|
|
14647
14741
|
o.push({
|
|
14648
14742
|
type: "number",
|
|
14649
14743
|
keys: ["__dummy_y__"],
|
|
@@ -14658,23 +14752,23 @@ var Fp = { style: {
|
|
|
14658
14752
|
gridLine: { enabled: !1 }
|
|
14659
14753
|
});
|
|
14660
14754
|
}
|
|
14661
|
-
return e.axes = o, e.series =
|
|
14662
|
-
}),
|
|
14755
|
+
return e.axes = o, e.series = Ke.value, e;
|
|
14756
|
+
}), Vt = r(() => E.value || l.isLoading && (!at.value || at.value.length === 0)), Ht = r(() => Lt.value || !ce.value && !l.isLoading && Rt.value !== ""), Ut = (e) => {
|
|
14663
14757
|
b.value = e, d("chart-collapsed", e);
|
|
14664
|
-
},
|
|
14665
|
-
p.value && (p.value.setRowGroupColumns(e ? P.value : []),
|
|
14758
|
+
}, Wt = (e) => {
|
|
14759
|
+
p.value && (p.value.setRowGroupColumns(e ? P.value : []), oe.value = e);
|
|
14666
14760
|
};
|
|
14667
|
-
function
|
|
14761
|
+
function Gt(e) {
|
|
14668
14762
|
return e?.hydrate ? m.value?.getFilterValueSelectedMetadataMap({ hydrate: !0 }) : m.value?.getFilterValueSelectedMetadataMap();
|
|
14669
14763
|
}
|
|
14670
14764
|
return n({
|
|
14671
|
-
getChartImageDataURL: (e) =>
|
|
14765
|
+
getChartImageDataURL: (e) => mt.value ? g.value?.getChartImageDataURL(e) : h.value?.getChartImageDataURL(e),
|
|
14672
14766
|
getCsvData: () => m.value?.getCsvData(),
|
|
14673
|
-
refreshData: (e) => (p.value &&
|
|
14674
|
-
getFilterValueSelectedMetadataMap:
|
|
14767
|
+
refreshData: (e) => (p.value && tt(p.value), m.value?.refreshData(e)),
|
|
14768
|
+
getFilterValueSelectedMetadataMap: Gt,
|
|
14675
14769
|
getPvFilterModel: () => m.value?.getPvFilterModel(),
|
|
14676
14770
|
setPvFilterModel: (e) => m.value?.setPvFilterModel(e),
|
|
14677
|
-
getChipSections: () =>
|
|
14771
|
+
getChipSections: () => lt.value
|
|
14678
14772
|
}), S(() => {
|
|
14679
14773
|
if (l.initialGridState) {
|
|
14680
14774
|
let e = l.initialGridState.rowGroup?.groupColIds || [];
|
|
@@ -14696,32 +14790,32 @@ var Fp = { style: {
|
|
|
14696
14790
|
"margin-left": "0.5rem"
|
|
14697
14791
|
},
|
|
14698
14792
|
variant: "secondary",
|
|
14699
|
-
onClick: r[0] ||= (e) =>
|
|
14793
|
+
onClick: r[0] ||= (e) => Ut(!b.value),
|
|
14700
14794
|
class: y(e.hideChart || b.value ? "pv-hide" : "")
|
|
14701
14795
|
}, null, 8, ["class"]),
|
|
14702
14796
|
s("div", { class: y(e.hideChart || !b.value ? "pv-hide" : "pv-space-between") }, [s("div", Lp, [u(Nn, {
|
|
14703
14797
|
name: "chart-line",
|
|
14704
14798
|
size: 20,
|
|
14705
14799
|
class: "pv-text-subdued"
|
|
14706
|
-
}), r[
|
|
14800
|
+
}), r[10] ||= s("p", {
|
|
14707
14801
|
class: "pv-text-body-md pv-text-primary",
|
|
14708
14802
|
style: { "font-weight": "500" }
|
|
14709
14803
|
}, "Expand to see chart", -1)]), u(Ln, {
|
|
14710
14804
|
rightIcon: "chevron-selector",
|
|
14711
14805
|
label: "Expand",
|
|
14712
14806
|
variant: "secondary",
|
|
14713
|
-
onClick: r[1] ||= (e) =>
|
|
14807
|
+
onClick: r[1] ||= (e) => Ut(!b.value)
|
|
14714
14808
|
})], 2),
|
|
14715
|
-
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(
|
|
14716
|
-
enablePanel:
|
|
14809
|
+
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(Dp, {
|
|
14810
|
+
enablePanel: at.value != null && at.value.length > 0,
|
|
14717
14811
|
chartFilter: e.chartFilter,
|
|
14718
|
-
rowGroupLimit:
|
|
14812
|
+
rowGroupLimit: Ae.value,
|
|
14719
14813
|
"use-combined-button": l.enableCombinedChartConfigPanel,
|
|
14720
14814
|
"use-nested-menu": l.enableNestedChartConfigPanel,
|
|
14721
14815
|
"chart-config-options": l.chartConfigPanelOptions,
|
|
14722
14816
|
"read-only": l.chartConfigPanelReadOnly,
|
|
14723
14817
|
"percent-of-focus-view-y-key": l.percentOfFocusViewYKey,
|
|
14724
|
-
onSeriesAggFuncSelected:
|
|
14818
|
+
onSeriesAggFuncSelected: me
|
|
14725
14819
|
}, null, 8, [
|
|
14726
14820
|
"enablePanel",
|
|
14727
14821
|
"chartFilter",
|
|
@@ -14731,29 +14825,29 @@ var Fp = { style: {
|
|
|
14731
14825
|
"chart-config-options",
|
|
14732
14826
|
"read-only",
|
|
14733
14827
|
"percent-of-focus-view-y-key"
|
|
14734
|
-
]), s("div", Rp, [R(
|
|
14828
|
+
]), s("div", Rp, [R(lt).length > 0 ? (D(), i($f, {
|
|
14735
14829
|
key: 0,
|
|
14736
|
-
sections: R(
|
|
14737
|
-
onChipHover: r[2] ||= (e) =>
|
|
14830
|
+
sections: R(lt),
|
|
14831
|
+
onChipHover: r[2] ||= (e) => ut.value = e
|
|
14738
14832
|
}, null, 8, ["sections"])) : a("", !0), s("div", {
|
|
14739
14833
|
class: "pv-relative pv-margin-auto pv-flex-item",
|
|
14740
|
-
style: x(
|
|
14741
|
-
}, [
|
|
14834
|
+
style: x(mt.value ? { height: gt.value } : void 0)
|
|
14835
|
+
}, [mt.value ? (D(), i(Ao, {
|
|
14742
14836
|
key: 0,
|
|
14743
14837
|
ref_key: "pvMapChartRef",
|
|
14744
14838
|
ref: g,
|
|
14745
|
-
selectedRegion:
|
|
14746
|
-
"onUpdate:selectedRegion": r[3] ||= (e) =>
|
|
14747
|
-
chartData:
|
|
14748
|
-
seriesKey:
|
|
14749
|
-
seriesLabel:
|
|
14839
|
+
selectedRegion: pt.value,
|
|
14840
|
+
"onUpdate:selectedRegion": r[3] ||= (e) => pt.value = e,
|
|
14841
|
+
chartData: vt.value,
|
|
14842
|
+
seriesKey: ht.value,
|
|
14843
|
+
seriesLabel: Ve.value,
|
|
14750
14844
|
clickable: !1,
|
|
14751
14845
|
displayRegionSelector: !1,
|
|
14752
|
-
gradientLegendMin:
|
|
14753
|
-
gradientLegendMax:
|
|
14754
|
-
seriesValueFormatter:
|
|
14755
|
-
isLoading:
|
|
14756
|
-
noDataMessage:
|
|
14846
|
+
gradientLegendMin: yt.value.min,
|
|
14847
|
+
gradientLegendMax: yt.value.max,
|
|
14848
|
+
seriesValueFormatter: bt.value,
|
|
14849
|
+
isLoading: Vt.value,
|
|
14850
|
+
noDataMessage: Rt.value
|
|
14757
14851
|
}, null, 8, [
|
|
14758
14852
|
"selectedRegion",
|
|
14759
14853
|
"chartData",
|
|
@@ -14766,59 +14860,60 @@ var Fp = { style: {
|
|
|
14766
14860
|
"noDataMessage"
|
|
14767
14861
|
])) : (D(), o("div", {
|
|
14768
14862
|
key: 1,
|
|
14769
|
-
class: y(["pv-data-table-with-chart__chart-scroll", { "pv-data-table-with-chart__chart-scroll--enabled pv-scrollbar-visible":
|
|
14770
|
-
style: x(
|
|
14863
|
+
class: y(["pv-data-table-with-chart__chart-scroll", { "pv-data-table-with-chart__chart-scroll--enabled pv-scrollbar-visible": Ct.value }]),
|
|
14864
|
+
style: x(Tt.value)
|
|
14771
14865
|
}, [s("div", {
|
|
14772
14866
|
class: "pv-data-table-with-chart__chart-content",
|
|
14773
|
-
style: x(
|
|
14867
|
+
style: x(Et.value)
|
|
14774
14868
|
}, [u(nn, {
|
|
14775
14869
|
ref_key: "pvChartRef",
|
|
14776
14870
|
ref: h,
|
|
14777
|
-
isLoading:
|
|
14778
|
-
options:
|
|
14871
|
+
isLoading: Vt.value,
|
|
14872
|
+
options: Bt.value,
|
|
14779
14873
|
enableFocusView: e.enableFocusView,
|
|
14780
|
-
minHeight:
|
|
14874
|
+
minHeight: wt.value
|
|
14781
14875
|
}, null, 8, [
|
|
14782
14876
|
"isLoading",
|
|
14783
14877
|
"options",
|
|
14784
14878
|
"enableFocusView",
|
|
14785
14879
|
"minHeight"
|
|
14786
|
-
]), R(
|
|
14880
|
+
]), R(dt) ? (D(), o("div", {
|
|
14787
14881
|
key: 0,
|
|
14788
|
-
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", R(
|
|
14882
|
+
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", R(dt).arrowClass]),
|
|
14789
14883
|
"data-variant": "white",
|
|
14790
|
-
style: x(R(
|
|
14791
|
-
}, [s("div", zp, [s("div", Bp, F(R(
|
|
14884
|
+
style: x(R(dt).style)
|
|
14885
|
+
}, [s("div", zp, [s("div", Bp, F(R(dt).label), 1), s("div", Vp, F(R(dt).value), 1)])], 6)) : a("", !0)], 4)], 6)), mt.value ? a("", !0) : (D(), o("div", Hp, [ce.value ? (D(), o("div", Up, [(D(), i(N(e.emptyChartFilterRenderer)))])) : Ht.value ? (D(), o("p", Wp, F(Rt.value), 1)) : a("", !0)]))], 4)])], 2)
|
|
14792
14886
|
])),
|
|
14793
14887
|
u(wf, _({
|
|
14794
14888
|
ref_key: "pvDataTableRef",
|
|
14795
14889
|
ref: m
|
|
14796
14890
|
}, n.$props, {
|
|
14797
14891
|
filterTeleportLocation: w.value ? `#${C}` : void 0,
|
|
14798
|
-
pagination: e.pagination || !
|
|
14799
|
-
onColumnRowGroupChanged:
|
|
14800
|
-
onColumnValueChanged:
|
|
14801
|
-
onGridReady:
|
|
14802
|
-
onFilterChanged:
|
|
14892
|
+
pagination: e.pagination || !oe.value,
|
|
14893
|
+
onColumnRowGroupChanged: ge,
|
|
14894
|
+
onColumnValueChanged: Y,
|
|
14895
|
+
onGridReady: de,
|
|
14896
|
+
onFilterChanged: _e,
|
|
14803
14897
|
onSortChanged: r[5] ||= (e) => d("sort-changed", e),
|
|
14804
14898
|
onFilterOpened: r[6] ||= (e) => d("filter-opened", e),
|
|
14805
|
-
onFirstDataRendered:
|
|
14806
|
-
onColumnMoved:
|
|
14807
|
-
onColumnResized: r[
|
|
14808
|
-
onHandleSettingsIcon: r[
|
|
14809
|
-
onFocusUpdate: r[
|
|
14899
|
+
onFirstDataRendered: he,
|
|
14900
|
+
onColumnMoved: pe,
|
|
14901
|
+
onColumnResized: r[7] ||= (e) => d("column-resized", e),
|
|
14902
|
+
onHandleSettingsIcon: r[8] ||= (e) => d("handle-settings-icon", e),
|
|
14903
|
+
onFocusUpdate: r[9] ||= (e) => d("focus-update", e)
|
|
14810
14904
|
}), {
|
|
14811
|
-
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(
|
|
14905
|
+
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(Kf, {
|
|
14812
14906
|
key: 0,
|
|
14813
|
-
groupedModeEnabled:
|
|
14907
|
+
groupedModeEnabled: oe.value,
|
|
14814
14908
|
tableConfigOptions: l.tableConfigOptions,
|
|
14815
|
-
onToggleGroup:
|
|
14816
|
-
onTableOverlayChange:
|
|
14909
|
+
onToggleGroup: Wt,
|
|
14910
|
+
onTableOverlayChange: se,
|
|
14911
|
+
onColumnConfigChange: fe
|
|
14817
14912
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (D(), i(Ln, {
|
|
14818
14913
|
key: 1,
|
|
14819
|
-
leftIcon:
|
|
14820
|
-
label:
|
|
14821
|
-
onClick: r[4] ||= (e) =>
|
|
14914
|
+
leftIcon: oe.value ? "ungroup" : "group",
|
|
14915
|
+
label: oe.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
14916
|
+
onClick: r[4] ||= (e) => Wt(!oe.value),
|
|
14822
14917
|
variant: "secondary",
|
|
14823
14918
|
size: "lg"
|
|
14824
14919
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), j(n.$slots, "top-slot")]),
|