@turquoisehealth/pit-viper 2.266.0 → 2.266.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/manifest.json +2 -2
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +20 -3
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +503 -453
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +323 -307
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +20 -3
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +18 -2
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +18 -2
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +18 -2
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +20 -3
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +422 -406
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +18 -2
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +476 -460
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +346 -330
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +18 -2
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +18 -2
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +260 -244
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +589 -573
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +688 -672
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +430 -414
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +624 -608
- package/pv-components/dist/web/pv-components.iife.js +39 -39
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-fbb619aa]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-fbb619aa]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-fbb619aa]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-fbb619aa]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-fbb619aa]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-fbb619aa]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-fbb619aa]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-fbb619aa]{text-align:center;opacity:1;background-color:var(--color-background-body,white);z-index:4;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-widget[data-v-3af31f33]{box-sizing:border-box;flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.pv-chart-widget--constrained[data-v-3af31f33]{overflow:hidden}.pv-chart-widget__chart-area[data-v-3af31f33]{flex:auto;width:100%;min-height:0;position:relative;overflow:hidden}.pv-chart-widget__chart-scroll[data-v-3af31f33]{width:100%;height:100%;min-height:0}.pv-chart-widget__chart-content[data-v-3af31f33]{height:100%;min-height:100%}.pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}.pv-menu-popover[data-v-951d1d02]{z-index:50}.pv-popover-list>li[data-v-951d1d02]:last-child>.pv-label{margin-block-end:0}[data-v-951d1d02] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.pv-map-chart[data-v-95164932]{flex-direction:column;width:100%;height:100%;display:flex}.pv-map-chart__header[data-v-95164932]{flex:none}.pv-map-chart__chart[data-v-95164932]{flex:auto;min-height:0}.pv-data-widget[data-v-9118bfea]{box-sizing:border-box;width:100%;min-width:0;min-height:0}.pv-data-widget--constrained[data-v-9118bfea]{flex-direction:column;display:flex;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__body[data-v-9118bfea]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.pv-data-widget__table-container[data-v-9118bfea]{min-height:0}.pv-data-widget__below-table[data-v-9118bfea]{margin-top:16px}.pv-data-widget--constrained .pv-data-widget__table-container[data-v-9118bfea]{flex:auto}.pv-data-widget--constrained .pv-data-widget__below-table[data-v-9118bfea]{flex:none}.pv-data-widget__chart-scroll[data-v-9118bfea]{width:100%;min-height:0;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__chart-scroll[data-v-9118bfea]{flex:auto}.pv-data-widget__chart-content[data-v-9118bfea]{min-height:100%}.pv-select[data-v-a13ab0e8]{padding-top:4px;padding-bottom:4px}.dots-button[data-v-92e78cd3]{background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-table-row-number{text-align:center;padding:8px 12px 8px 0}.pv-filter-panel-collapsible[data-v-a59c5643]{contain:inline-size;flex:1 1 0;position:relative}.pv-filter-panel-item[data-v-a59c5643]{flex-shrink:0}.pv-filter-panel-item-collapsed[data-v-a59c5643]{pointer-events:none;visibility:hidden;width:max-content;position:absolute;top:0;left:0}.pv-details-no-carat>summary[data-v-a59c5643]{cursor:default;background-image:none}.pv-table-row-number[data-v-a6fadb75]{text-align:center;padding:8px 12px 8px 0}.pv-pivot-group-header{--flex-gap:0;justify-content:center;min-width:0;padding-top:4px}.pv-pivot-group-header__name{-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;line-height:1.25;display:-webkit-box;overflow:hidden}[data-v-21e451cd] .pv-legacy-chart-menu-nested:after{content:"›";margin-left:auto}[data-v-21e451cd] .pv-legacy-chart-option{min-width:150px;max-width:225px}.pv-chart-config-popover{width:max-content;max-width:500px}.pv-data-table-with-chart__chart-scroll{contain:inline-size;width:100%;min-height:0;overflow:hidden}.pv-data-table-with-chart__chart-content{min-height:100%}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.pv-data-table-with-chart__crossline-tooltip.ag-charts-tooltip{border-radius:4px;box-shadow:0 0 8px #0000001f}.ag-charts-floating-toolbar{display:none!important}
|
|
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
|
-
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 ee, toDisplayString as P, toHandlers as F, toRaw as I, toRef as L, toValue as R, unref as z, useAttrs as B, useId as te, useModel as V, useSlots as ne, useTemplateRef as re, vModelCheckbox as ie, vModelText as H, vShow as U, watch as W, withCtx as G, withDirectives as ae, withKeys as K, withModifiers as
|
|
4
|
-
import { onClickOutside as
|
|
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 ee, toDisplayString as P, toHandlers as F, toRaw as I, toRef as L, toValue as R, unref as z, useAttrs as B, useId as te, useModel as V, useSlots as ne, useTemplateRef as re, vModelCheckbox as ie, vModelText as H, vShow as U, watch as W, withCtx as G, withDirectives as ae, withKeys as K, withModifiers as q } from "vue";
|
|
4
|
+
import { onClickOutside as oe, onKeyStroke as se, toRef as J, useDebounceFn as ce, useElementBounding as le, useElementHover as Y, useElementSize as ue, useResizeObserver as X, useToggle as de, useWindowSize as fe, watchDebounced as pe } from "@vueuse/core";
|
|
5
5
|
import { useSortable as me } from "@vueuse/integrations/useSortable.mjs";
|
|
6
6
|
import { AgGridVue as he } from "ag-grid-vue3";
|
|
7
7
|
import { CellStyleModule as ge, CheckboxEditorModule as _e, ClientSideRowModelModule as ve, ColumnApiModule as ye, ColumnAutoSizeModule as be, CsvExportModule as xe, CustomEditorModule as Se, CustomFilterModule as Ce, DateEditorModule as we, EventApiModule as Te, GridStateModule as Ee, LargeTextEditorModule as De, NumberEditorModule as Oe, PaginationModule as ke, QuickFilterModule as Ae, RowApiModule as je, RowStyleModule as Z, ScrollApiModule as Q, SelectEditorModule as Me, TextEditorModule as Ne, TextFilterModule as Pe, UndoRedoEditModule as Fe, themeQuartz as Ie } from "ag-grid-community";
|
|
@@ -543,7 +543,7 @@ var Xt = { style: { position: "relative" } }, Zt = {
|
|
|
543
543
|
},
|
|
544
544
|
emits: ["series-visibility-change"],
|
|
545
545
|
setup(e, { expose: t, emit: n }) {
|
|
546
|
-
let i = e, c = n, l = k(null), d = k(null), f = k(null), { width: p } =
|
|
546
|
+
let i = e, c = n, l = k(null), d = k(null), f = k(null), { width: p } = ue(l), { height: m } = ue(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(() => Dn(i.options, {
|
|
547
547
|
dataLimit: i.dataLimit,
|
|
548
548
|
showAxes: i.showAxes
|
|
549
549
|
})), b = r(() => Cn(v.value)), S = r(() => wn(v.value)), C = r(() => mn({
|
|
@@ -1816,11 +1816,11 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
1816
1816
|
"position-try-fallbacks: flip-block",
|
|
1817
1817
|
"position-visibility: anchors-visible",
|
|
1818
1818
|
`anchor-scope: ${ca}`
|
|
1819
|
-
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C = r(() => t.hoverTarget && y.value?.closest(t.hoverTarget) || y.value), w =
|
|
1819
|
+
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C = r(() => t.hoverTarget && y.value?.closest(t.hoverTarget) || y.value), w = Y(C), O = Y(S), A = k(!1), M = k(!1), N = k(!1), ee = oa({
|
|
1820
1820
|
root: _,
|
|
1821
1821
|
floating: S,
|
|
1822
1822
|
hoverArea: r(() => t.hoverTarget ? C.value : null),
|
|
1823
|
-
close: () => t.disableClickOutsideToClose ? !1 : (
|
|
1823
|
+
close: () => t.disableClickOutsideToClose ? !1 : (se(), !0)
|
|
1824
1824
|
}), P = {
|
|
1825
1825
|
"top-center": "top",
|
|
1826
1826
|
"bottom-center": "bottom",
|
|
@@ -1895,7 +1895,7 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
1895
1895
|
middleware: e
|
|
1896
1896
|
});
|
|
1897
1897
|
te = n.update, ne = () => n.floatingStyles.value;
|
|
1898
|
-
let i =
|
|
1898
|
+
let i = le(b), a = ce(() => {
|
|
1899
1899
|
c.value && te();
|
|
1900
1900
|
}, 5);
|
|
1901
1901
|
W([
|
|
@@ -1903,8 +1903,8 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
1903
1903
|
i.left,
|
|
1904
1904
|
i.width,
|
|
1905
1905
|
i.height
|
|
1906
|
-
], a),
|
|
1907
|
-
t.disableClickOutsideToClose ||
|
|
1906
|
+
], a), oe(_, () => {
|
|
1907
|
+
t.disableClickOutsideToClose || q(!1);
|
|
1908
1908
|
}, { ignore: r(() => [
|
|
1909
1909
|
S.value,
|
|
1910
1910
|
".p-datepicker-panel",
|
|
@@ -1918,16 +1918,16 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
1918
1918
|
ie && clearTimeout(ie), ie = void 0;
|
|
1919
1919
|
}, K = () => {
|
|
1920
1920
|
H && clearTimeout(H), H = void 0;
|
|
1921
|
-
},
|
|
1921
|
+
}, q = (e) => {
|
|
1922
1922
|
G(), K(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? ie = setTimeout(() => {
|
|
1923
1923
|
c.value = !0, ie = void 0;
|
|
1924
1924
|
}, t.delay) : c.value = e);
|
|
1925
|
-
},
|
|
1925
|
+
}, se = () => {
|
|
1926
1926
|
G(), K(), c.value = !1;
|
|
1927
|
-
},
|
|
1927
|
+
}, J = () => {
|
|
1928
1928
|
let e = S.value;
|
|
1929
1929
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1930
|
-
},
|
|
1930
|
+
}, ue = r(() => !!c.value && (O.value || M.value)), X = r(() => !t.showOnHover || N.value ? !1 : t.disableInteractive ? w.value || A.value : w.value || A.value || ue.value);
|
|
1931
1931
|
W([
|
|
1932
1932
|
w,
|
|
1933
1933
|
A,
|
|
@@ -1935,7 +1935,7 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
1935
1935
|
], ([e, t, n]) => {
|
|
1936
1936
|
!e && !t && !n && (N.value = !1);
|
|
1937
1937
|
});
|
|
1938
|
-
let
|
|
1938
|
+
let de = ({ target: e }) => {
|
|
1939
1939
|
A.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1940
1940
|
}, fe = ({ target: e }) => {
|
|
1941
1941
|
M.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
@@ -1945,47 +1945,61 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
1945
1945
|
if (t.showOnHover) {
|
|
1946
1946
|
if (t.disableClickOutsideToClose) return;
|
|
1947
1947
|
if (!c.value && !ie && t.enableClickToggle) {
|
|
1948
|
-
N.value = !1,
|
|
1948
|
+
N.value = !1, q(!0);
|
|
1949
1949
|
return;
|
|
1950
1950
|
}
|
|
1951
|
-
N.value = !0,
|
|
1951
|
+
N.value = !0, se();
|
|
1952
1952
|
return;
|
|
1953
1953
|
}
|
|
1954
|
-
|
|
1954
|
+
q(ie ? !1 : !c.value);
|
|
1955
1955
|
}, he = (e) => {
|
|
1956
1956
|
let t = e.newState === "open";
|
|
1957
1957
|
c.value !== t && (c.value = t);
|
|
1958
1958
|
}, ge = (e) => {
|
|
1959
|
-
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(),
|
|
1959
|
+
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), q(!1));
|
|
1960
|
+
}, _e = (e) => e ? Array.from(e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")) : [], ve = r(() => t.useTeleport && !h && t.showOnHover && !t.disabled), ye = (e) => {
|
|
1961
|
+
if (!ve.value || e.key !== "Tab" || e.shiftKey || !c.value) return;
|
|
1962
|
+
let [t] = _e(S.value);
|
|
1963
|
+
t && (e.preventDefault(), M.value = !0, t.focus());
|
|
1964
|
+
}, be = (e) => {
|
|
1965
|
+
if (!ve.value) return;
|
|
1966
|
+
let [t] = _e(y.value);
|
|
1967
|
+
if (e.key === "Escape") {
|
|
1968
|
+
e.preventDefault(), e.stopPropagation(), N.value = !0, se(), t?.focus();
|
|
1969
|
+
return;
|
|
1970
|
+
}
|
|
1971
|
+
if (e.key !== "Tab") return;
|
|
1972
|
+
let n = _e(S.value);
|
|
1973
|
+
e.shiftKey && document.activeElement === n[0] ? (e.preventDefault(), t?.focus()) : !e.shiftKey && document.activeElement === n[n.length - 1] && (N.value = !0, se(), t?.focus());
|
|
1960
1974
|
};
|
|
1961
1975
|
return W(c, async (e) => {
|
|
1962
1976
|
if (t.showOnHover && t.enableGroupSync && ee(!!e), !h) {
|
|
1963
1977
|
e && te();
|
|
1964
1978
|
return;
|
|
1965
1979
|
}
|
|
1966
|
-
await v(),
|
|
1967
|
-
}), W(
|
|
1980
|
+
await v(), J();
|
|
1981
|
+
}), W(X, (e) => {
|
|
1968
1982
|
if (t.showOnHover) {
|
|
1969
1983
|
if (e) {
|
|
1970
|
-
|
|
1984
|
+
q(!0);
|
|
1971
1985
|
return;
|
|
1972
1986
|
}
|
|
1973
1987
|
G(), t.closeDelay > 0 ? (K(), H = setTimeout(() => {
|
|
1974
|
-
H = void 0,
|
|
1975
|
-
}, t.closeDelay)) :
|
|
1988
|
+
H = void 0, X.value || q(!1);
|
|
1989
|
+
}, t.closeDelay)) : q(!1);
|
|
1976
1990
|
}
|
|
1977
1991
|
}), W(m, (e) => {
|
|
1978
|
-
e ? h && c.value && v(
|
|
1992
|
+
e ? h && c.value && v(J) : se();
|
|
1979
1993
|
}), T(() => {
|
|
1980
|
-
b.value = y.value, g.value = !0, c.value && v(() => h ?
|
|
1994
|
+
b.value = y.value, g.value = !0, c.value && v(() => h ? J() : te());
|
|
1981
1995
|
}), E(() => {
|
|
1982
1996
|
G(), K();
|
|
1983
1997
|
}), W(() => t.disabled, (e) => {
|
|
1984
1998
|
if (!e) {
|
|
1985
|
-
|
|
1999
|
+
X.value && q(!0);
|
|
1986
2000
|
return;
|
|
1987
2001
|
}
|
|
1988
|
-
A.value &&= !1, M.value &&= !1,
|
|
2002
|
+
A.value &&= !1, M.value &&= !1, q(!1);
|
|
1989
2003
|
}), (r, l) => (D(), o("div", {
|
|
1990
2004
|
ref_key: "root",
|
|
1991
2005
|
ref: _,
|
|
@@ -1996,8 +2010,9 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
1996
2010
|
ref: y,
|
|
1997
2011
|
style: x(R.value),
|
|
1998
2012
|
onClick: me,
|
|
1999
|
-
onFocusin:
|
|
2000
|
-
onFocusout: l[0] ||= (e) => A.value = !1
|
|
2013
|
+
onFocusin: de,
|
|
2014
|
+
onFocusout: l[0] ||= (e) => A.value = !1,
|
|
2015
|
+
onKeydown: ye
|
|
2001
2016
|
}, [j(r.$slots, "trigger")], 36), g.value && z(h) && m.value ? (D(), o("div", {
|
|
2002
2017
|
key: 0,
|
|
2003
2018
|
ref_key: "floating",
|
|
@@ -2018,7 +2033,8 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
2018
2033
|
class: "pv-floating",
|
|
2019
2034
|
style: x(re.value),
|
|
2020
2035
|
onFocusin: fe,
|
|
2021
|
-
onFocusout: pe
|
|
2036
|
+
onFocusout: pe,
|
|
2037
|
+
onKeydown: be
|
|
2022
2038
|
}, [j(r.$slots, "content")], 36), [[U, c.value]])], 8, ["to", "disabled"])) : a("", !0)], 36));
|
|
2023
2039
|
}
|
|
2024
2040
|
}), ua = ["data-variant"], da = /* @__PURE__ */ d({
|
|
@@ -5048,7 +5064,7 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
5048
5064
|
"pv-input-small": n.size === "lg"
|
|
5049
5065
|
}));
|
|
5050
5066
|
return T(() => {
|
|
5051
|
-
n.displayShortcut &&
|
|
5067
|
+
n.displayShortcut && se(Ma, (e) => {
|
|
5052
5068
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
5053
5069
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
5054
5070
|
});
|
|
@@ -5321,7 +5337,7 @@ var ia = /* @__PURE__ */ new Set(), aa = (e, t) => {
|
|
|
5321
5337
|
}, {
|
|
5322
5338
|
label: G(() => [u(Jn, {
|
|
5323
5339
|
name: "close",
|
|
5324
|
-
onClick: r[0] ||=
|
|
5340
|
+
onClick: r[0] ||= q((e) => n.$emit("handle-clear"), ["stop"])
|
|
5325
5341
|
})]),
|
|
5326
5342
|
"tooltip-content": G(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
5327
5343
|
_: 1
|
|
@@ -5558,7 +5574,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
5558
5574
|
size: 12,
|
|
5559
5575
|
name: "info-circle",
|
|
5560
5576
|
class: "pv-text-subdued",
|
|
5561
|
-
onClick: r[0] ||=
|
|
5577
|
+
onClick: r[0] ||= q(() => {}, ["stop", "prevent"])
|
|
5562
5578
|
})]),
|
|
5563
5579
|
content: G(() => [s("div", oo, P(e.description), 1)]),
|
|
5564
5580
|
_: 1
|
|
@@ -5651,7 +5667,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
5651
5667
|
style: { "--button-icon-only-padding": "0px" },
|
|
5652
5668
|
"aria-label": e.tooltipText,
|
|
5653
5669
|
disabled: e.disabled,
|
|
5654
|
-
onClick:
|
|
5670
|
+
onClick: q(o, ["stop"])
|
|
5655
5671
|
}, [u(Jn, {
|
|
5656
5672
|
name: e.icon,
|
|
5657
5673
|
size: a[e.size]
|
|
@@ -5699,7 +5715,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
5699
5715
|
class: y(["pv-text-brand", { "pv-action-button-reveal-on-hover": !f.value }]),
|
|
5700
5716
|
role: "img",
|
|
5701
5717
|
"aria-label": o.value,
|
|
5702
|
-
onClick: t[0] ||=
|
|
5718
|
+
onClick: t[0] ||= q(() => {}, ["stop"])
|
|
5703
5719
|
}, [u(Jn, { name: n.value }, null, 8, ["name"])], 10, go)]),
|
|
5704
5720
|
_: 2
|
|
5705
5721
|
}, [o.value ? {
|
|
@@ -5871,7 +5887,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
5871
5887
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
5872
5888
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
5873
5889
|
"aria-expanded": e.expanded,
|
|
5874
|
-
onClick: r[1] ||=
|
|
5890
|
+
onClick: r[1] ||= q((e) => P("toggle-expanded"), ["prevent", "stop"])
|
|
5875
5891
|
}, [u(Jn, {
|
|
5876
5892
|
name: e.chevronIcon ?? "chevron-right",
|
|
5877
5893
|
size: 12
|
|
@@ -6161,7 +6177,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6161
6177
|
let e = p.value;
|
|
6162
6178
|
E(), e && v(() => Ce(e));
|
|
6163
6179
|
}, N = [...m(xo, []), h];
|
|
6164
|
-
O(xo, N),
|
|
6180
|
+
O(xo, N), oe(g, (e) => {
|
|
6165
6181
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(h) || E();
|
|
6166
6182
|
}, { ignore: [S] });
|
|
6167
6183
|
let P = ee(f.value);
|
|
@@ -6181,7 +6197,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6181
6197
|
p.value = i ? e.id : void 0, i && (C.value = t, v(() => {
|
|
6182
6198
|
T(), n && xe(b.value ?? document.getElementById(h), 0);
|
|
6183
6199
|
}));
|
|
6184
|
-
},
|
|
6200
|
+
}, q = (e, t = !1) => {
|
|
6185
6201
|
if (l.readOnly) return;
|
|
6186
6202
|
let n = (!t && l.childrenDisplay === "popover" ? l.options.find((t) => t.id === e.option.id) : void 0) ?? e.option;
|
|
6187
6203
|
if (l.childrenDisplay === "popover" && !t && n.children?.length) {
|
|
@@ -6223,23 +6239,23 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6223
6239
|
...e,
|
|
6224
6240
|
option: n
|
|
6225
6241
|
} : e);
|
|
6226
|
-
},
|
|
6242
|
+
}, se = (e) => {
|
|
6227
6243
|
let t = H.value;
|
|
6228
6244
|
if (!t) return;
|
|
6229
6245
|
let n = t.children?.find((t) => t.id === e.option.id) ?? e.option;
|
|
6230
|
-
|
|
6246
|
+
q({
|
|
6231
6247
|
...e,
|
|
6232
6248
|
option: n
|
|
6233
6249
|
}, !0), p.value = void 0, v(() => Ce(t.id));
|
|
6234
|
-
},
|
|
6250
|
+
}, J = r(() => new Set(P.value.map((e) => e.id))), ce = (e) => {
|
|
6235
6251
|
for (let t of e) {
|
|
6236
|
-
if (
|
|
6237
|
-
let e = t.children?.length ?
|
|
6252
|
+
if (J.value.has(t.id)) return t;
|
|
6253
|
+
let e = t.children?.length ? ce(t.children) : void 0;
|
|
6238
6254
|
if (e) return e;
|
|
6239
6255
|
}
|
|
6240
|
-
},
|
|
6256
|
+
}, le = (e) => {
|
|
6241
6257
|
if (l.childrenDisplay !== "popover" || !e.children?.length) return e;
|
|
6242
|
-
let t =
|
|
6258
|
+
let t = ce(e.children);
|
|
6243
6259
|
return {
|
|
6244
6260
|
...e,
|
|
6245
6261
|
children: void 0,
|
|
@@ -6247,14 +6263,14 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6247
6263
|
subText: t?.text ?? e.subText,
|
|
6248
6264
|
totalChildCount: void 0
|
|
6249
6265
|
};
|
|
6250
|
-
},
|
|
6266
|
+
}, Y = (e) => ({
|
|
6251
6267
|
...e,
|
|
6252
6268
|
children: void 0,
|
|
6253
6269
|
totalChildCount: void 0
|
|
6254
|
-
}),
|
|
6270
|
+
}), ue = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, X = (e) => J.value.has(e.id) || L.value && ne?.value?.has(e.id) || (L.value || l.childrenDisplay === "popover") && e.children?.length && ce(e.children) ? !0 : null, de = (e) => {
|
|
6255
6271
|
let t = e.config?.variant ?? l.config?.variant;
|
|
6256
6272
|
return ie.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
6257
|
-
}, fe = (e) =>
|
|
6273
|
+
}, fe = (e) => de(e) === "menuitem" ? void 0 : !!X(e), pe = (e) => e.children?.length && !l.highlightParentItems ? null : de(e) !== "menuitemcheckbox" && X(e) || p.value === e.id ? !0 : null, me = (e) => de(e) !== "menuitemcheckbox" && J.value.has(e.id) ? !0 : null, he = (e, t) => !!(!t || J.value.has(e.id) || ne?.value?.has(e.id) || e.children?.length && ce(e.children)), ge = k(), _e = k(), ve = r(() => {
|
|
6258
6274
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && he(e, l.isLoading)).map((e) => e.id);
|
|
6259
6275
|
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Go), ge.value && e.includes(ge.value) ? ge.value : e[0];
|
|
6260
6276
|
}), ye = r(() => {
|
|
@@ -6294,7 +6310,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6294
6310
|
break;
|
|
6295
6311
|
case "Enter":
|
|
6296
6312
|
case " ":
|
|
6297
|
-
e.preventDefault(), t.children?.length ? K(t, e.currentTarget, !0, !1) :
|
|
6313
|
+
e.preventDefault(), t.children?.length ? K(t, e.currentTarget, !0, !1) : q({
|
|
6298
6314
|
event: e,
|
|
6299
6315
|
option: t
|
|
6300
6316
|
});
|
|
@@ -6329,7 +6345,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6329
6345
|
}
|
|
6330
6346
|
case "Enter":
|
|
6331
6347
|
case " ":
|
|
6332
|
-
e.preventDefault(),
|
|
6348
|
+
e.preventDefault(), se({
|
|
6333
6349
|
event: e,
|
|
6334
6350
|
option: t
|
|
6335
6351
|
});
|
|
@@ -6351,7 +6367,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6351
6367
|
"data-testid": e.itemTestId,
|
|
6352
6368
|
class: y(e.itemClass),
|
|
6353
6369
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
6354
|
-
}, [u(Fo, _({ ref_for: !0 },
|
|
6370
|
+
}, [u(Fo, _({ ref_for: !0 }, le(t), {
|
|
6355
6371
|
"aria-checked": e.childrenDisplay === "popover" ? fe(t) : void 0,
|
|
6356
6372
|
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? z(h) : void 0,
|
|
6357
6373
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
@@ -6361,14 +6377,14 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6361
6377
|
"data-dd-action-name": t.rumActionName,
|
|
6362
6378
|
"data-option-id": t.id,
|
|
6363
6379
|
disabled: l.readOnly || t.disabled,
|
|
6364
|
-
config:
|
|
6380
|
+
config: ue(t),
|
|
6365
6381
|
itemClass: e.itemClass,
|
|
6366
6382
|
queryText: e.queryText,
|
|
6367
|
-
role: e.childrenDisplay === "popover" ?
|
|
6383
|
+
role: e.childrenDisplay === "popover" ? de(t) : void 0,
|
|
6368
6384
|
tabindex: e.childrenDisplay === "popover" ? ve.value === t.id ? 0 : -1 : void 0,
|
|
6369
6385
|
onFocus: (e) => ge.value = t.id,
|
|
6370
6386
|
onKeydown: (n) => e.childrenDisplay === "popover" ? Te(n, t) : void 0,
|
|
6371
|
-
onHandleSelected:
|
|
6387
|
+
onHandleSelected: q,
|
|
6372
6388
|
onSeeMore: c[0] ||= (e) => d("see-more", e)
|
|
6373
6389
|
}), null, 16, [
|
|
6374
6390
|
"aria-checked",
|
|
@@ -6441,21 +6457,21 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6441
6457
|
"data-option-id": t.id,
|
|
6442
6458
|
class: y(e.itemClass),
|
|
6443
6459
|
role: "none"
|
|
6444
|
-
}, [u(Fo, _({ ref_for: !0 },
|
|
6460
|
+
}, [u(Fo, _({ ref_for: !0 }, Y(t), {
|
|
6445
6461
|
"aria-checked": fe(t),
|
|
6446
6462
|
"aria-disabled": l.readOnly || t.disabled ? "true" : void 0,
|
|
6447
6463
|
"data-active": me(t),
|
|
6448
6464
|
"data-dd-action-name": t.rumActionName,
|
|
6449
6465
|
"data-option-id": t.id,
|
|
6450
6466
|
disabled: l.readOnly || t.disabled,
|
|
6451
|
-
config:
|
|
6467
|
+
config: ue(t),
|
|
6452
6468
|
itemClass: e.itemClass,
|
|
6453
6469
|
queryText: e.queryText,
|
|
6454
|
-
role:
|
|
6470
|
+
role: de(t),
|
|
6455
6471
|
tabindex: ye.value === t.id ? 0 : -1,
|
|
6456
6472
|
onFocus: (e) => _e.value = t.id,
|
|
6457
6473
|
onKeydown: (e) => De(e, t),
|
|
6458
|
-
onHandleSelected:
|
|
6474
|
+
onHandleSelected: se,
|
|
6459
6475
|
onSeeMore: c[4] ||= (e) => d("see-more", e)
|
|
6460
6476
|
}), null, 16, [
|
|
6461
6477
|
"aria-checked",
|
|
@@ -6538,7 +6554,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6538
6554
|
variant: n.optionsVariant,
|
|
6539
6555
|
counterBadgeVariant: n.counterBadgeVariant,
|
|
6540
6556
|
size: n.size
|
|
6541
|
-
})), d = t, [f] =
|
|
6557
|
+
})), d = t, [f] = de(n.defaultOpen), p = V(e, "modelValue"), m = V(e, "searchInput");
|
|
6542
6558
|
W(f, (e) => {
|
|
6543
6559
|
d(e ? "dropdown-open" : "dropdown-closed");
|
|
6544
6560
|
});
|
|
@@ -6572,7 +6588,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
6572
6588
|
}, E = () => {
|
|
6573
6589
|
f.value = !1, m.value = "";
|
|
6574
6590
|
};
|
|
6575
|
-
return
|
|
6591
|
+
return se("Escape", () => {
|
|
6576
6592
|
f.value && E();
|
|
6577
6593
|
}), (t, n) => (D(), i(la, _({
|
|
6578
6594
|
modelValue: z(f),
|
|
@@ -7591,7 +7607,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
7591
7607
|
dataRows: v.value,
|
|
7592
7608
|
mapColumn: N.value,
|
|
7593
7609
|
seriesColumn: E.value
|
|
7594
|
-
})), ae = r(() => gc(W.value, E.value?.field)), K = r(() => _c(E.value)),
|
|
7610
|
+
})), ae = r(() => gc(W.value, E.value?.field)), K = r(() => _c(E.value)), q = r(() => vc({
|
|
7595
7611
|
aggregatedCategoryChartData: U.value,
|
|
7596
7612
|
categoryColumn: T.value,
|
|
7597
7613
|
dataLimit: n.dataLimit,
|
|
@@ -7612,25 +7628,25 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
7612
7628
|
useDisplayDataRows: n.chartData !== void 0,
|
|
7613
7629
|
xKey: n.xKey,
|
|
7614
7630
|
yKey: n.yKey
|
|
7615
|
-
})),
|
|
7631
|
+
})), oe = r(() => Cn(q.value)), se = r(() => wn(q.value)), J = r(() => mn({
|
|
7616
7632
|
baseMinHeight: n.minHeight,
|
|
7617
|
-
dataCount:
|
|
7633
|
+
dataCount: oe.value,
|
|
7618
7634
|
enableChartScrolling: n.enableChartScrolling,
|
|
7619
|
-
isHorizontalScrollingChart:
|
|
7620
|
-
})),
|
|
7635
|
+
isHorizontalScrollingChart: se.value
|
|
7636
|
+
})), ce = r(() => {
|
|
7621
7637
|
let e = hn({
|
|
7622
7638
|
enableChartScrolling: n.enableChartScrolling,
|
|
7623
|
-
isHorizontalScrollingChart:
|
|
7639
|
+
isHorizontalScrollingChart: se.value
|
|
7624
7640
|
});
|
|
7625
|
-
if (e) return
|
|
7641
|
+
if (e) return se.value ? {
|
|
7626
7642
|
...e,
|
|
7627
7643
|
maxHeight: `${n.minHeight}px`
|
|
7628
7644
|
} : e;
|
|
7629
|
-
}),
|
|
7630
|
-
chartMinHeight:
|
|
7631
|
-
dataCount:
|
|
7645
|
+
}), le = r(() => gn({
|
|
7646
|
+
chartMinHeight: J.value,
|
|
7647
|
+
dataCount: oe.value,
|
|
7632
7648
|
enableChartScrolling: n.enableChartScrolling,
|
|
7633
|
-
isHorizontalScrollingChart:
|
|
7649
|
+
isHorizontalScrollingChart: se.value,
|
|
7634
7650
|
minContentWidth: 320
|
|
7635
7651
|
}));
|
|
7636
7652
|
return (n, r) => (D(), i(Bn, {
|
|
@@ -7679,14 +7695,14 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
7679
7695
|
])], 4)) : (D(), o("div", {
|
|
7680
7696
|
key: 2,
|
|
7681
7697
|
class: y(["pv-data-widget__chart-scroll", { "pv-data-widget__chart-scroll--enabled pv-scrollbar-visible": e.enableChartScrolling }]),
|
|
7682
|
-
style: x(
|
|
7698
|
+
style: x(ce.value)
|
|
7683
7699
|
}, [s("div", {
|
|
7684
7700
|
class: "pv-data-widget__chart-content",
|
|
7685
|
-
style: x(
|
|
7701
|
+
style: x(le.value)
|
|
7686
7702
|
}, [u(ln, {
|
|
7687
|
-
options:
|
|
7703
|
+
options: q.value,
|
|
7688
7704
|
isLoading: e.chartLoading,
|
|
7689
|
-
minHeight:
|
|
7705
|
+
minHeight: J.value
|
|
7690
7706
|
}, null, 8, [
|
|
7691
7707
|
"options",
|
|
7692
7708
|
"isLoading",
|
|
@@ -7883,7 +7899,7 @@ var io = ["title"], ao = ["title"], oo = { style: {
|
|
|
7883
7899
|
size: c.value,
|
|
7884
7900
|
name: "close",
|
|
7885
7901
|
"data-dd-action-name": e.rumRemoveActionName,
|
|
7886
|
-
onClick: r[0] ||=
|
|
7902
|
+
onClick: r[0] ||= q((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
7887
7903
|
}, null, 8, ["size", "data-dd-action-name"])) : a("", !0)
|
|
7888
7904
|
], 14, Dc));
|
|
7889
7905
|
}
|
|
@@ -8130,7 +8146,7 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8130
8146
|
t = t.host ? t.host.parentNode : t.parentNode;
|
|
8131
8147
|
}
|
|
8132
8148
|
return null;
|
|
8133
|
-
}, f = r(() => c.value?.parentElement ?? null), { height: p, width: m } =
|
|
8149
|
+
}, f = r(() => c.value?.parentElement ?? null), { height: p, width: m } = ue(f), { height: h, width: g } = fe({
|
|
8134
8150
|
initialWidth: 0,
|
|
8135
8151
|
initialHeight: 0
|
|
8136
8152
|
}), y = () => {
|
|
@@ -8310,7 +8326,7 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8310
8326
|
let r = e, c = n, l = re("sidePanel"), { width: d } = fe({ initialWidth: 0 }), f = V(e, "searchInput"), p = V(e, "width"), m = V(e, "modelValue"), h = () => {
|
|
8311
8327
|
l?.value?.removeAttribute("open"), m.value = !1;
|
|
8312
8328
|
}, g = () => {
|
|
8313
|
-
l.value &&
|
|
8329
|
+
l.value && oe(l.value, () => {
|
|
8314
8330
|
m.value && (c("click-outside"), h());
|
|
8315
8331
|
}, { ignore: [".pv-click-outside-ignore"] });
|
|
8316
8332
|
};
|
|
@@ -8318,7 +8334,7 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8318
8334
|
m.value && l?.value?.setAttribute("open", "true"), r.closeOnClickOutside && g();
|
|
8319
8335
|
}), W(() => m.value, () => {
|
|
8320
8336
|
m.value ? l?.value?.setAttribute("open", "true") : l?.value?.removeAttribute("open");
|
|
8321
|
-
}),
|
|
8337
|
+
}), se("Escape", () => {
|
|
8322
8338
|
l.value && m.value && h();
|
|
8323
8339
|
}), (n, c) => (D(), o("div", {
|
|
8324
8340
|
class: y(["pv-drawer pv-surface", { "pv-resizable": e.resizable }]),
|
|
@@ -8571,7 +8587,7 @@ var tl = {
|
|
|
8571
8587
|
return to(c.options, t) + e;
|
|
8572
8588
|
}), E = r(() => H.value.length > 0 ? !0 : c.enableCascadeSelection && L.value?.length ? L.value.some((e) => e.state === "selected") : !1), k = (e) => {
|
|
8573
8589
|
g("see-more", e ?? {});
|
|
8574
|
-
}, M = re("searchInputRef"), [N, F] =
|
|
8590
|
+
}, M = re("searchInputRef"), [N, F] = de(c.defaultOpen), I = V(e, "modelValue"), L = V(e, "selectionState"), R = V(e, "searchInput"), B = r(() => c.menuActionsVariant === "cancel-confirm"), te = (e) => {
|
|
8575
8591
|
H.value = e, B.value || (I.value = e, L.value = C());
|
|
8576
8592
|
}, ne = () => {
|
|
8577
8593
|
B.value && (I.value = H.value, L.value = C());
|
|
@@ -8601,9 +8617,9 @@ var tl = {
|
|
|
8601
8617
|
set: (e) => {
|
|
8602
8618
|
te(e);
|
|
8603
8619
|
}
|
|
8604
|
-
}),
|
|
8620
|
+
}), q = () => {
|
|
8605
8621
|
R.value = "", N.value = !1;
|
|
8606
|
-
},
|
|
8622
|
+
}, oe = r(() => {
|
|
8607
8623
|
let e = c.size === "lg" ? 24 : 30;
|
|
8608
8624
|
return c.overlayTrigger ? -e : void 0;
|
|
8609
8625
|
});
|
|
@@ -8623,26 +8639,26 @@ var tl = {
|
|
|
8623
8639
|
c.overlayTrigger && !c.disableSearchInput && M.value?.input?.focus(), g("dropdown-open");
|
|
8624
8640
|
})) : (ie(), g("dropdown-closed"));
|
|
8625
8641
|
});
|
|
8626
|
-
let
|
|
8642
|
+
let J = r(() => {
|
|
8627
8643
|
if (R.value === "") return c.options;
|
|
8628
8644
|
let e = R.value.toLocaleLowerCase();
|
|
8629
8645
|
return c.enableCascadeSelection ? ro(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
8630
|
-
}),
|
|
8646
|
+
}), ce = () => {
|
|
8631
8647
|
if (c.enableCascadeSelection) {
|
|
8632
8648
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
8633
8649
|
for (let r of n) Qa(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
8634
8650
|
};
|
|
8635
|
-
t(
|
|
8651
|
+
t(J.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
8636
8652
|
}
|
|
8637
|
-
let e = c.enableCascadeSelection ? $a(
|
|
8653
|
+
let e = c.enableCascadeSelection ? $a(J.value) : J.value;
|
|
8638
8654
|
g("select-all", e.length), te(e);
|
|
8639
|
-
},
|
|
8655
|
+
}, le = () => {
|
|
8640
8656
|
g("clear-all", H.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), te([]);
|
|
8641
|
-
},
|
|
8642
|
-
ie(),
|
|
8643
|
-
},
|
|
8644
|
-
ne(),
|
|
8645
|
-
},
|
|
8657
|
+
}, Y = () => {
|
|
8658
|
+
ie(), q();
|
|
8659
|
+
}, ue = () => {
|
|
8660
|
+
ne(), q();
|
|
8661
|
+
}, X = r(() => {
|
|
8646
8662
|
if (!c.groupings) return;
|
|
8647
8663
|
let e = /* @__PURE__ */ new Map();
|
|
8648
8664
|
c.groupings.forEach((t) => {
|
|
@@ -8660,17 +8676,18 @@ var tl = {
|
|
|
8660
8676
|
searchInput: R.value,
|
|
8661
8677
|
slotContext: c.slotContext,
|
|
8662
8678
|
isOpen: N.value,
|
|
8663
|
-
isLoading: c.isLoading
|
|
8679
|
+
isLoading: c.isLoading,
|
|
8680
|
+
filteredOptionCount: J.value.length
|
|
8664
8681
|
})), 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 = re("popoverContentRef"), _e = r(() => {
|
|
8665
8682
|
let e = ge.value?.getRootNode();
|
|
8666
8683
|
return e instanceof ShadowRoot ? e.host : null;
|
|
8667
8684
|
}), { present: ve } = ra("header", { host: _e }), { present: ye } = ra("no-results", { host: _e }), { present: be } = ra("footer", { host: _e });
|
|
8668
|
-
return
|
|
8669
|
-
N.value &&
|
|
8685
|
+
return se("Escape", () => {
|
|
8686
|
+
N.value && q();
|
|
8670
8687
|
}), (n, r) => (D(), i(la, _({
|
|
8671
8688
|
modelValue: z(N),
|
|
8672
8689
|
"onUpdate:modelValue": r[4] ||= (e) => h(N) ? N.value = e : null
|
|
8673
|
-
}, e.popoverProperties, { offset:
|
|
8690
|
+
}, e.popoverProperties, { offset: oe.value }), {
|
|
8674
8691
|
trigger: G(() => [u(qa, {
|
|
8675
8692
|
ref: "select-button-trigger-ref",
|
|
8676
8693
|
variant: e.variant,
|
|
@@ -8688,7 +8705,7 @@ var tl = {
|
|
|
8688
8705
|
"counter-style": e.counterStyle,
|
|
8689
8706
|
"selected-items": H.value,
|
|
8690
8707
|
"data-dd-action-name": me.value,
|
|
8691
|
-
onHandleClear:
|
|
8708
|
+
onHandleClear: le,
|
|
8692
8709
|
onHandleToggleDropdown: r[0] ||= (e) => z(F)()
|
|
8693
8710
|
}, null, 8, [
|
|
8694
8711
|
"variant",
|
|
@@ -8729,7 +8746,7 @@ var tl = {
|
|
|
8729
8746
|
placeholder: e.searchPlaceholder
|
|
8730
8747
|
}, null, 8, ["model-value", "placeholder"])], 8, rl)),
|
|
8731
8748
|
n.$slots.header || z(ve) ? (D(), o("div", il, [j(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
8732
|
-
|
|
8749
|
+
J.value.length > 0 ? (D(), o(t, { key: 2 }, [fe.value ? (D(!0), o(t, { key: 0 }, A(X.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
8733
8750
|
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", al, P(t), 1)),
|
|
8734
8751
|
u(Ko, {
|
|
8735
8752
|
selectedItems: K.value,
|
|
@@ -8743,7 +8760,7 @@ var tl = {
|
|
|
8743
8760
|
isLoading: e.isLoading,
|
|
8744
8761
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
8745
8762
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
8746
|
-
hasMoreOptions: s ===
|
|
8763
|
+
hasMoreOptions: s === X.value.length - 1 && w.value && !e.isLoading,
|
|
8747
8764
|
onSeeMore: k
|
|
8748
8765
|
}, null, 8, [
|
|
8749
8766
|
"selectedItems",
|
|
@@ -8757,12 +8774,12 @@ var tl = {
|
|
|
8757
8774
|
"enableCascadeSelection",
|
|
8758
8775
|
"hasMoreOptions"
|
|
8759
8776
|
]),
|
|
8760
|
-
|
|
8777
|
+
X.value && s !== X.value.length - 1 ? (D(), o("div", ol)) : a("", !0)
|
|
8761
8778
|
]))), 128)) : (D(), i(Ko, {
|
|
8762
8779
|
key: 1,
|
|
8763
8780
|
selectedItems: K.value,
|
|
8764
8781
|
"onUpdate:selectedItems": r[3] ||= (e) => K.value = e,
|
|
8765
|
-
options:
|
|
8782
|
+
options: J.value,
|
|
8766
8783
|
config: l.value,
|
|
8767
8784
|
singleSelect: e.singleSelect,
|
|
8768
8785
|
queryText: e.highlightSearchText ? R.value : null,
|
|
@@ -8783,7 +8800,7 @@ var tl = {
|
|
|
8783
8800
|
"isSeeMoreLoading",
|
|
8784
8801
|
"hasMoreOptions"
|
|
8785
8802
|
]))], 64)) : a("", !0),
|
|
8786
|
-
e.isLoading ? (D(), o("div", sl, [u(Ot, { variant: "dark" }), e.loadingText ? (D(), o("span", cl, P(e.loadingText), 1)) : a("", !0)])) :
|
|
8803
|
+
e.isLoading ? (D(), o("div", sl, [u(Ot, { variant: "dark" }), e.loadingText ? (D(), o("span", cl, P(e.loadingText), 1)) : a("", !0)])) : J.value.length === 0 ? (D(), o(t, { key: 4 }, [z(ye) ? j(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (D(), i(Za, { key: 1 }))], 64)) : a("", !0),
|
|
8787
8804
|
z(be) || e.menuActionsVariant ? (D(), o("div", {
|
|
8788
8805
|
key: 5,
|
|
8789
8806
|
class: y(["pv-sticky pv-surface pv-border-top pv-inset-square-8", { "pv-flow-8": e.footerPosition === "below-actions" }]),
|
|
@@ -8798,10 +8815,10 @@ var tl = {
|
|
|
8798
8815
|
variant: e.menuActionsVariant,
|
|
8799
8816
|
disabled: e.isLoading,
|
|
8800
8817
|
rumFilterName: e.rumFilterName,
|
|
8801
|
-
onHandleClearAll:
|
|
8802
|
-
onHandleSelectAll:
|
|
8803
|
-
onHandleCancel:
|
|
8804
|
-
onHandleConfirm:
|
|
8818
|
+
onHandleClearAll: le,
|
|
8819
|
+
onHandleSelectAll: ce,
|
|
8820
|
+
onHandleCancel: Y,
|
|
8821
|
+
onHandleConfirm: ue
|
|
8805
8822
|
}, null, 8, [
|
|
8806
8823
|
"variant",
|
|
8807
8824
|
"disabled",
|
|
@@ -9581,21 +9598,21 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9581
9598
|
width: "100%",
|
|
9582
9599
|
maxWidth: "100%",
|
|
9583
9600
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
9584
|
-
}, f = re("search-input"), p = V(e, "searchText"), m = V(e, "query"), h = V(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = uu(), C = k(!1), w = k(!1), T = k(!1), E = ne(), O = r(() => !!(E.header || E.footer || E.empty)), M = te(), N = `${M}-options`, ee = (e) => `${M}-option-${e}`, F = (e) => `${M}-group-${e}`, I = r(() =>
|
|
9601
|
+
}, f = re("search-input"), p = V(e, "searchText"), m = V(e, "query"), h = V(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = uu(), C = k(!1), w = k(!1), T = k(!1), E = ne(), O = r(() => !!(E.header || E.footer || E.empty)), M = te(), N = `${M}-options`, ee = (e) => `${M}-option-${e}`, F = (e) => `${M}-group-${e}`, I = r(() => oe.value.length > 0 || n.optionsLoading || O.value), L = r(() => m.value === null ? n.placeholder : ""), R = k(null), B = r(() => R.value !== null && R.value !== "" && !w.value), ie = () => {
|
|
9585
9602
|
m.value = null, p.value = "", R.value = null, T.value = !1;
|
|
9586
9603
|
};
|
|
9587
|
-
|
|
9588
|
-
let t =
|
|
9604
|
+
se("Enter", (e) => {
|
|
9605
|
+
let t = ue.value;
|
|
9589
9606
|
if (t) {
|
|
9590
9607
|
e.preventDefault(), he(t);
|
|
9591
9608
|
return;
|
|
9592
9609
|
}
|
|
9593
9610
|
n.enableCustomOptionsInput && p.value.trim() && K();
|
|
9594
|
-
}, { target: f }),
|
|
9595
|
-
|
|
9596
|
-
}, { target: f }),
|
|
9597
|
-
C.value && (C.value = !1,
|
|
9598
|
-
}, { target: f }),
|
|
9611
|
+
}, { target: f }), se(["ArrowDown", "ArrowUp"], (e) => {
|
|
9612
|
+
ce.value.length !== 0 && (e.preventDefault(), C.value = !0, fe(e.key === "ArrowDown" ? 1 : -1));
|
|
9613
|
+
}, { target: f }), se("Escape", () => {
|
|
9614
|
+
C.value && (C.value = !1, Y.value = -1);
|
|
9615
|
+
}, { target: f }), se("Backspace", () => {
|
|
9599
9616
|
if (p.value !== "") return;
|
|
9600
9617
|
let e = m.value?.queryTerms;
|
|
9601
9618
|
if (!e || e.length === 0) return;
|
|
@@ -9612,58 +9629,58 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9612
9629
|
text: p.value,
|
|
9613
9630
|
queryTerm: { queryText: p.value }
|
|
9614
9631
|
}), ve());
|
|
9615
|
-
},
|
|
9632
|
+
}, q = (e) => {
|
|
9616
9633
|
let t = e?.queryDisplayField || e?.queryField;
|
|
9617
9634
|
if (t) return e?.exactMatch ? t : `Search in ${t}`;
|
|
9618
|
-
},
|
|
9635
|
+
}, oe = r(() => {
|
|
9619
9636
|
if (!h.value || h.value.length === 0) return [];
|
|
9620
9637
|
let e = h.value;
|
|
9621
9638
|
return n.processor === "field-only" && (e = h.value.filter((e) => e.queryTerm?.queryField)), m.value && (e = e.filter((e) => !b(m.value, e))), e.map((e) => ({
|
|
9622
9639
|
...e,
|
|
9623
|
-
subText: e.subText ??
|
|
9640
|
+
subText: e.subText ?? q(e.queryTerm),
|
|
9624
9641
|
searchText: p.value,
|
|
9625
9642
|
context: e.queryTerm
|
|
9626
9643
|
}));
|
|
9627
|
-
}),
|
|
9644
|
+
}), J = r(() => {
|
|
9628
9645
|
let e = /* @__PURE__ */ new Map();
|
|
9629
|
-
for (let t of
|
|
9646
|
+
for (let t of oe.value) {
|
|
9630
9647
|
let n = t.groupingLabel ?? "", r = e.get(n);
|
|
9631
9648
|
r ? r.push(t) : e.set(n, [t]);
|
|
9632
9649
|
}
|
|
9633
9650
|
return Array.from(e.entries());
|
|
9634
|
-
}),
|
|
9651
|
+
}), ce = r(() => J.value.flatMap(([, e]) => e)), le = r(() => new Map(ce.value.map((e, t) => [e, t]))), Y = k(-1), ue = r(() => {
|
|
9635
9652
|
if (!C.value) return null;
|
|
9636
|
-
let e =
|
|
9653
|
+
let e = ce.value[Y.value] ?? null;
|
|
9637
9654
|
return e?.disabled ? null : e;
|
|
9638
|
-
}),
|
|
9655
|
+
}), X = r(() => ue.value ? ee(Y.value) : void 0), de = (e) => {
|
|
9639
9656
|
v(() => {
|
|
9640
9657
|
document.getElementById(ee(e))?.scrollIntoView?.({ block: "nearest" });
|
|
9641
9658
|
});
|
|
9642
9659
|
}, fe = (e) => {
|
|
9643
|
-
let t =
|
|
9660
|
+
let t = ce.value, n = t.length;
|
|
9644
9661
|
if (n === 0) return;
|
|
9645
|
-
let r =
|
|
9662
|
+
let r = Y.value === -1 ? e > 0 ? -1 : 0 : Y.value;
|
|
9646
9663
|
for (let i = 1; i <= n; i++) {
|
|
9647
9664
|
let a = ((r + e * i) % n + n) % n;
|
|
9648
9665
|
if (!t[a].disabled) {
|
|
9649
|
-
|
|
9666
|
+
Y.value = a, de(a);
|
|
9650
9667
|
return;
|
|
9651
9668
|
}
|
|
9652
9669
|
}
|
|
9653
9670
|
}, pe = (e) => {
|
|
9654
|
-
e.disabled || (
|
|
9671
|
+
e.disabled || (Y.value = le.value.get(e) ?? -1);
|
|
9655
9672
|
};
|
|
9656
|
-
W([
|
|
9657
|
-
|
|
9673
|
+
W([ce, p], () => {
|
|
9674
|
+
Y.value = -1;
|
|
9658
9675
|
}), W([
|
|
9659
|
-
|
|
9676
|
+
oe,
|
|
9660
9677
|
p,
|
|
9661
9678
|
() => n.optionsLoading
|
|
9662
9679
|
], ([e, t, n]) => {
|
|
9663
9680
|
t && t.length > 0 && (e.length > 0 || n || O.value) ? C.value = !0 : (!t || t.length === 0) && (C.value = !1);
|
|
9664
9681
|
}, { immediate: !0 });
|
|
9665
9682
|
let me = () => {
|
|
9666
|
-
n.enableCustomOptionsInput && K(),
|
|
9683
|
+
n.enableCustomOptionsInput && K(), Y.value = -1, C.value = !1, w.value = !1, T.value = !1;
|
|
9667
9684
|
}, he = (e) => {
|
|
9668
9685
|
try {
|
|
9669
9686
|
let t = {
|
|
@@ -9724,7 +9741,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9724
9741
|
"aria-autocomplete": "list",
|
|
9725
9742
|
"aria-expanded": I.value && C.value,
|
|
9726
9743
|
"aria-controls": N,
|
|
9727
|
-
"aria-activedescendant":
|
|
9744
|
+
"aria-activedescendant": X.value,
|
|
9728
9745
|
disabled: e.disabled,
|
|
9729
9746
|
placeholder: L.value,
|
|
9730
9747
|
"data-invalid": B.value ? "true" : void 0,
|
|
@@ -9749,18 +9766,18 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9749
9766
|
listId: N,
|
|
9750
9767
|
listRole: "listbox"
|
|
9751
9768
|
}, c({
|
|
9752
|
-
default: G(() => [e.optionsLoading ? (D(), o("div", _u, [u(Ot, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [
|
|
9769
|
+
default: G(() => [e.optionsLoading ? (D(), o("div", _u, [u(Ot, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [oe.value.length > 0 ? (D(!0), o(t, { key: 0 }, A(J.value, ([e, n], r) => (D(), o(t, { key: e }, [e ? (D(), o("li", {
|
|
9753
9770
|
key: 0,
|
|
9754
9771
|
id: F(r),
|
|
9755
9772
|
role: "presentation",
|
|
9756
9773
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
9757
9774
|
}, P(e), 9, mu)) : a("", !0), (D(!0), o(t, null, A(n, (t) => (D(), o("li", {
|
|
9758
9775
|
key: `${e}-${t.id}`,
|
|
9759
|
-
id: ee(
|
|
9776
|
+
id: ee(le.value.get(t) ?? -1),
|
|
9760
9777
|
role: "option",
|
|
9761
|
-
"aria-selected": t ===
|
|
9778
|
+
"aria-selected": t === ue.value,
|
|
9762
9779
|
"aria-describedby": e ? F(r) : void 0,
|
|
9763
|
-
class: y({ "pv-query-builder-option-active": t ===
|
|
9780
|
+
class: y({ "pv-query-builder-option-active": t === ue.value }),
|
|
9764
9781
|
onMouseenter: (e) => pe(t)
|
|
9765
9782
|
}, [u(Fo, _({ ref_for: !0 }, t, {
|
|
9766
9783
|
config: l,
|
|
@@ -9988,7 +10005,7 @@ var dd = /* @__PURE__ */ cn(cd, [["render", ud]]), fd = ["innerHTML"], pd = { ke
|
|
|
9988
10005
|
__name: "GroupedCellRenderer",
|
|
9989
10006
|
props: { params: {} },
|
|
9990
10007
|
setup(e) {
|
|
9991
|
-
let n = e, i = m(Mu, k([])), c = m(Nu, k(null)), d = m(Pu, k({})), f =
|
|
10008
|
+
let n = e, i = m(Mu, k([])), c = m(Nu, k(null)), d = m(Pu, k({})), f = J(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
9992
10009
|
let e = f.value.data;
|
|
9993
10010
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
9994
10011
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -10652,14 +10669,14 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10652
10669
|
return;
|
|
10653
10670
|
}
|
|
10654
10671
|
M.value[e] = t - 1;
|
|
10655
|
-
}, K = /* @__PURE__ */ new Set(),
|
|
10656
|
-
let n = t ?
|
|
10672
|
+
}, K = /* @__PURE__ */ new Set(), q = /* @__PURE__ */ new Set(), oe = (e, t = !1) => {
|
|
10673
|
+
let n = t ? q : K;
|
|
10657
10674
|
e.forEach((e) => n.add(e));
|
|
10658
|
-
},
|
|
10659
|
-
|
|
10660
|
-
},
|
|
10661
|
-
|
|
10662
|
-
},
|
|
10675
|
+
}, se = () => {
|
|
10676
|
+
q.forEach((e) => K.add(e)), q.clear();
|
|
10677
|
+
}, J = () => {
|
|
10678
|
+
q.clear();
|
|
10679
|
+
}, ce = (e) => {
|
|
10663
10680
|
let t = new Set(e);
|
|
10664
10681
|
for (let n of e) {
|
|
10665
10682
|
let e = A.value[n] || [];
|
|
@@ -10667,9 +10684,9 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10667
10684
|
}
|
|
10668
10685
|
for (let e of t) w.value[e] = !1;
|
|
10669
10686
|
for (let e of j.value) t.has(e) || (w.value[e] = !0);
|
|
10670
|
-
},
|
|
10687
|
+
}, le = e.initStagedFilterSelections, Y = e.clearStagedFilterSelections, ue = (e) => N.value[e] || [], X = (e, t) => {
|
|
10671
10688
|
N.value[e] = t;
|
|
10672
|
-
},
|
|
10689
|
+
}, de = (e) => {
|
|
10673
10690
|
t.value = e;
|
|
10674
10691
|
}, fe = (e) => {
|
|
10675
10692
|
(!e || t.value === e) && (t.value = null);
|
|
@@ -10706,7 +10723,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10706
10723
|
};
|
|
10707
10724
|
return pe(n, (e, t) => {
|
|
10708
10725
|
let n = ye(e, t);
|
|
10709
|
-
K.forEach((e) => n.add(e)), K.clear(), n.size > 0 &&
|
|
10726
|
+
K.forEach((e) => n.add(e)), K.clear(), n.size > 0 && ce(n);
|
|
10710
10727
|
}, {
|
|
10711
10728
|
deep: !0,
|
|
10712
10729
|
debounce: 200,
|
|
@@ -10745,21 +10762,21 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10745
10762
|
refreshFiltersInBackground: E,
|
|
10746
10763
|
stageFilterChangesUntilDropdownCloses: D,
|
|
10747
10764
|
filterSearchMinLength: O,
|
|
10748
|
-
markOtherFieldsStale:
|
|
10749
|
-
noteFilterModelChange:
|
|
10750
|
-
commitStagedFilterModelChanges:
|
|
10751
|
-
clearStagedFilterModelChanges:
|
|
10765
|
+
markOtherFieldsStale: ce,
|
|
10766
|
+
noteFilterModelChange: oe,
|
|
10767
|
+
commitStagedFilterModelChanges: se,
|
|
10768
|
+
clearStagedFilterModelChanges: J,
|
|
10752
10769
|
aggregateFieldMap: A,
|
|
10753
10770
|
registerAggregateField: W,
|
|
10754
10771
|
registeredFilterFields: j,
|
|
10755
10772
|
registerFilterField: G,
|
|
10756
10773
|
unregisterFilterField: ae,
|
|
10757
10774
|
stagedSelectedValuesMap: N,
|
|
10758
|
-
initStagedSelectedValues:
|
|
10759
|
-
clearStagedSelectedValues:
|
|
10760
|
-
getStagedSelectedValues:
|
|
10761
|
-
setStagedSelectedValues:
|
|
10762
|
-
registerFilterController:
|
|
10775
|
+
initStagedSelectedValues: le,
|
|
10776
|
+
clearStagedSelectedValues: Y,
|
|
10777
|
+
getStagedSelectedValues: ue,
|
|
10778
|
+
setStagedSelectedValues: X,
|
|
10779
|
+
registerFilterController: de,
|
|
10763
10780
|
unregisterFilterController: fe,
|
|
10764
10781
|
getFilterModel: me,
|
|
10765
10782
|
applyFilterModel: he,
|
|
@@ -10777,27 +10794,27 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10777
10794
|
return e;
|
|
10778
10795
|
}, bf = (e) => {
|
|
10779
10796
|
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c = xu(), l = m(Du, k(null)), u = vf(), { 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: ee, registerFilterField: P, unregisterFilterField: F, getStagedSelectedValues: I, setStagedSelectedValues: L, filterValueSearchTextMap: R, filterValuesHasMoreMap: z, filterValuesTotalCountMap: B } = u, { computedFocuses: te, removeFocus: V, computedFocusType: ne } = gd(), re = m(Iu, k(!1)), ie = m(Fu, k(!1)), H = m(Zu, k(!1)), U = r({
|
|
10780
|
-
get: () =>
|
|
10797
|
+
get: () => de.value ? I(Y.value) : b(Y.value),
|
|
10781
10798
|
set: (e) => {
|
|
10782
|
-
|
|
10799
|
+
de.value ? L(Y.value, e) : C(Y.value, e);
|
|
10783
10800
|
}
|
|
10784
10801
|
}), G = r(() => {
|
|
10785
|
-
let e = w(
|
|
10802
|
+
let e = w(Y.value);
|
|
10786
10803
|
if (fe.value && he.value.length > 0) {
|
|
10787
10804
|
let t = new Set(e), n = he.value.filter((e) => t.has(e)), r = new Set(he.value), i = e.filter((e) => !r.has(e));
|
|
10788
10805
|
return [...n, ...i];
|
|
10789
10806
|
}
|
|
10790
10807
|
return Be(e);
|
|
10791
|
-
}), ae = r(() => _.value[
|
|
10792
|
-
get: () => R.value[
|
|
10793
|
-
set: (e) => S(
|
|
10794
|
-
}),
|
|
10795
|
-
let e =
|
|
10808
|
+
}), ae = r(() => _.value[Y.value] ?? !1), K = r(() => A.value || Ts(t.value).prefetchFilterValues === !0), q = r(() => (o?.value ?? !1) && (s?.value ?? !1) && U.value.length === 0 && Ne.value.length === 0), oe = r(() => o?.value ?? !1), se = r(() => oe.value && (s?.value ?? !1)), J = r({
|
|
10809
|
+
get: () => R.value[Y.value] ?? "",
|
|
10810
|
+
set: (e) => S(Y.value, e)
|
|
10811
|
+
}), ce = r(() => Ts(t.value).filterSearchMinLength ?? M.value), le = r(() => {
|
|
10812
|
+
let e = ce.value ?? 0, t = J.value?.length ?? 0;
|
|
10796
10813
|
return e > 0 && t > 0 && t < e;
|
|
10797
|
-
}),
|
|
10814
|
+
}), Y = r(() => t.value.field || ""), ue = r(() => t.value.filter || ""), X = r(() => t.value.headerName || ""), de = r(() => n?.value === "vertical"), fe = k(!1), me = k(!1), he = k([]), ge = r(() => Es(t.value)), _e = r(() => Ds(t.value)), ve = r(() => Os(t.value)), ye = r(() => Ts(t.value).filterOptionsSortDescription), be = r(() => Ts(t.value).filterOptionsSortTooltip), xe = r(() => {
|
|
10798
10815
|
let e = Ts(t.value).filterSearch;
|
|
10799
10816
|
return typeof e == "boolean" ? e : Ts(t.value).dataType !== ys.Boolean;
|
|
10800
|
-
}), Se = r(() => Ts(t.value).emptyFilterResultsRenderer), Ce = r(() => Ts(t.value).filterOptionsLoadingText), we = r(() => Ts(t.value).filterOptionsRenderer), Te = r(() => Ts(t.value).filterHeaderRenderer), Ee = r(() => Ts(t.value).filterFooterRenderer), De = r(() => Ts(t.value).filterFooterPosition), Oe = r(() => _e.value ? U.value.length >= _e.value : !1), ke = r(() => G.value.filter((e) => e != null && !U.value.includes(e))), Ae = r(() =>
|
|
10817
|
+
}), Se = r(() => Ts(t.value).emptyFilterResultsRenderer), Ce = r(() => Ts(t.value).filterOptionsLoadingText), we = r(() => Ts(t.value).filterOptionsRenderer), Te = r(() => Ts(t.value).filterHeaderRenderer), Ee = r(() => Ts(t.value).filterFooterRenderer), De = r(() => Ts(t.value).filterFooterPosition), Oe = r(() => _e.value ? U.value.length >= _e.value : !1), ke = r(() => G.value.filter((e) => e != null && !U.value.includes(e))), Ae = r(() => oe.value ? void 0 : B.value[Y.value]), je = r(() => oe.value ? !1 : z.value[Y.value]), Z = r(() => Ps(t.value)), Q = () => new Set([Y.value, ...Ms(t.value)]), Me = (e, t) => {
|
|
10801
10818
|
let n = new Set(e), r = new Set(t);
|
|
10802
10819
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
10803
10820
|
}, Ne = k([]), Pe = k("[]"), Fe = r(() => G.value.length === 1 && G.value[0] === null && U.value.length === 0), Ie = (e = !1) => {
|
|
@@ -10805,9 +10822,9 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10805
10822
|
let n = [];
|
|
10806
10823
|
if (H.value && l.value) {
|
|
10807
10824
|
let e = l.value.getAdvancedFilterModel();
|
|
10808
|
-
n = af(
|
|
10825
|
+
n = af(Y.value, e);
|
|
10809
10826
|
} else n = Yd(t.value, p.value);
|
|
10810
|
-
e ? U.value = n : U.value = Array.from(new Set([...b(
|
|
10827
|
+
e ? U.value = n : U.value = Array.from(new Set([...b(Y.value), ...n]));
|
|
10811
10828
|
}, Le = (e) => {
|
|
10812
10829
|
let t = (n) => {
|
|
10813
10830
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
@@ -10822,15 +10839,15 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10822
10839
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
10823
10840
|
}), $ = async (e = !1, n = !1) => {
|
|
10824
10841
|
if (!l.value) return;
|
|
10825
|
-
let r = O.value[
|
|
10842
|
+
let r = O.value[Y.value] ?? !1, i = _.value[Y.value] !== !0, a = (w(Y.value) || []).length === 0, o = e && i && (r || n || a);
|
|
10826
10843
|
if (H.value) {
|
|
10827
10844
|
if (x.value && o) {
|
|
10828
10845
|
let e = await d(t.value, {
|
|
10829
10846
|
api: l.value,
|
|
10830
10847
|
filterModel: p.value ?? void 0,
|
|
10831
|
-
useStaged:
|
|
10848
|
+
useStaged: de.value
|
|
10832
10849
|
});
|
|
10833
|
-
D(
|
|
10850
|
+
D(Y.value, e), O.value[Y.value] = !1, Lt();
|
|
10834
10851
|
}
|
|
10835
10852
|
return;
|
|
10836
10853
|
}
|
|
@@ -10840,10 +10857,10 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10840
10857
|
s.refreshFilterValues();
|
|
10841
10858
|
return;
|
|
10842
10859
|
}
|
|
10843
|
-
D(
|
|
10860
|
+
D(Y.value, s.getFilterValues()), O.value[Y.value] = !1;
|
|
10844
10861
|
}
|
|
10845
10862
|
}, Ve = (e) => {
|
|
10846
|
-
let t = y(
|
|
10863
|
+
let t = y(Y.value, e);
|
|
10847
10864
|
return !t && Z.value && e && (t = st(e)), t;
|
|
10848
10865
|
}, He = (e) => e?.field ?? e?.colField, Ue = (e) => e?.rawValue == null ? e?.metadata?.rawValue == null ? e ? $e(e.value).value : null : e.metadata.rawValue : e.rawValue, We = (e, t) => t?.rawValue == null ? t?.metadata?.rawValue == null ? e : t.metadata.rawValue : t.rawValue, Ge = (e, t) => {
|
|
10849
10866
|
if (!e || !t || e.label && e.rawValue == null && e.metadata?.rawValue == null) return e;
|
|
@@ -10869,16 +10886,16 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10869
10886
|
return i?.length ? t == null ? !0 : !i.some((e) => t.metadata?.[e] != null) : !1;
|
|
10870
10887
|
}
|
|
10871
10888
|
if (!Ts(t.value).metadataDisplayFields?.length) return !1;
|
|
10872
|
-
let r = y(
|
|
10889
|
+
let r = y(Y.value, e);
|
|
10873
10890
|
return r == null || r.label == null;
|
|
10874
|
-
}, Ye = (e) => Fe.value || y(
|
|
10891
|
+
}, Ye = (e) => Fe.value || y(Y.value, e)?.isSelectable === !1 ? !0 : ve.value ? !1 : Oe.value && !U.value.includes(e), Xe = (e) => e ? l.value && l.value.getColumnDef(e)?.headerName || e : "", Ze = (e, n, r) => eu({
|
|
10875
10892
|
fallbackSubText: n,
|
|
10876
10893
|
getDisplayName: Xe,
|
|
10877
10894
|
matchedField: e?.matchedField,
|
|
10878
10895
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
10879
10896
|
primaryText: r,
|
|
10880
10897
|
showPrefix: Ts(t.value).showSearchMatchSubTextPrefix !== !1
|
|
10881
|
-
}), Qe = r(() => Ql(
|
|
10898
|
+
}), Qe = r(() => Ql(Y.value, Ts(t.value).queryColIds, (e) => e === Y.value && X.value || Xe(e))), $e = (e) => {
|
|
10882
10899
|
if (!e.startsWith("__")) return { value: e };
|
|
10883
10900
|
let t = e.slice(2).split("__");
|
|
10884
10901
|
return t.length < 2 ? { value: e } : {
|
|
@@ -10888,7 +10905,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10888
10905
|
}, et = (e) => Gl(e, rt()), tt = (e) => {
|
|
10889
10906
|
let t = $e(e.value), n = { ...e };
|
|
10890
10907
|
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(tt)), n;
|
|
10891
|
-
}, nt = r(() => [...u.filterValueMap.value[
|
|
10908
|
+
}, nt = r(() => [...u.filterValueMap.value[Y.value] || [], ...u.filterValueSelectedMetadataMap.value[Y.value] || []].map((e) => e && tt(e))), rt = () => nt.value, it = (e, t) => {
|
|
10892
10909
|
for (let n of e) {
|
|
10893
10910
|
if (!n) continue;
|
|
10894
10911
|
if (t(n)) return n;
|
|
@@ -10940,14 +10957,14 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10940
10957
|
return r?.children?.length ? r : at(n, e.id) || (r && He(r) === Ns(t.value) ? r : ct(e.id) || r);
|
|
10941
10958
|
}, ut = (e) => {
|
|
10942
10959
|
if (!Z.value) return;
|
|
10943
|
-
let t = u.filterValueSelectedMetadataMap.value[
|
|
10960
|
+
let t = u.filterValueSelectedMetadataMap.value[Y.value] || [], n = /* @__PURE__ */ new Map();
|
|
10944
10961
|
for (let e of t) e && n.set(e.value, e);
|
|
10945
10962
|
for (let t of e) {
|
|
10946
10963
|
if (t.state !== "selected") continue;
|
|
10947
10964
|
let e = lt(t);
|
|
10948
10965
|
e && n.set(e.value, e);
|
|
10949
10966
|
}
|
|
10950
|
-
u.filterValueSelectedMetadataMap.value[
|
|
10967
|
+
u.filterValueSelectedMetadataMap.value[Y.value] = [...n.values()];
|
|
10951
10968
|
}, dt = () => {
|
|
10952
10969
|
let e = /* @__PURE__ */ new Set();
|
|
10953
10970
|
for (let t of Ne.value) {
|
|
@@ -10957,7 +10974,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10957
10974
|
}
|
|
10958
10975
|
return [...e].filter((e) => !G.value.includes(e));
|
|
10959
10976
|
}, ft = (e) => {
|
|
10960
|
-
let n = y(
|
|
10977
|
+
let n = y(Y.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = ye.value ? "suggestions" : null;
|
|
10961
10978
|
n?.isPreference && (i = "preferences");
|
|
10962
10979
|
let a = null, o = qe(e) || "", s = n?.matchedValue;
|
|
10963
10980
|
s ? a = Ze(n, n?.subText, o) : n?.subText ? a = n.subText : He(n) && Z.value && !r && (a = Xe(He(n)));
|
|
@@ -10985,9 +11002,9 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10985
11002
|
let r = Math.max(n?.offset ?? 0, a), o = await u.filterStoreHandler.value({
|
|
10986
11003
|
api: l.value,
|
|
10987
11004
|
colDef: t.value,
|
|
10988
|
-
field:
|
|
11005
|
+
field: Y.value,
|
|
10989
11006
|
filterModel: p.value ?? void 0,
|
|
10990
|
-
query:
|
|
11007
|
+
query: J.value || void 0,
|
|
10991
11008
|
offset: r,
|
|
10992
11009
|
parentId: i,
|
|
10993
11010
|
reason: "child-load-more"
|
|
@@ -11017,7 +11034,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11017
11034
|
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Je(e)).map(ft);
|
|
11018
11035
|
}), mt = (e) => {
|
|
11019
11036
|
let t = e.children;
|
|
11020
|
-
t?.length && (t = t.filter((t) => !
|
|
11037
|
+
t?.length && (t = t.filter((t) => !se.value || ze(t, e.id)).map((e) => mt(e)));
|
|
11021
11038
|
let n = (e.children ?? []).some((t) => ze(t, e.id));
|
|
11022
11039
|
return {
|
|
11023
11040
|
...e,
|
|
@@ -11029,10 +11046,10 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11029
11046
|
};
|
|
11030
11047
|
}, ht = (e) => Z.value ? ze(e, null) : U.value.includes(e.id), gt = r(() => {
|
|
11031
11048
|
let e = pt.value;
|
|
11032
|
-
return
|
|
11049
|
+
return oe.value ? e.filter((e) => !se.value || ht(e)).map((e) => mt(e)) : e;
|
|
11033
11050
|
}), _t = r({
|
|
11034
11051
|
get: () => Z.value ? [] : U.value.map((e) => {
|
|
11035
|
-
let t = y(
|
|
11052
|
+
let t = y(Y.value, e), n = He(t), r = n ? Xe(n) : void 0;
|
|
11036
11053
|
return {
|
|
11037
11054
|
id: e,
|
|
11038
11055
|
text: qe(e),
|
|
@@ -11042,7 +11059,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11042
11059
|
}),
|
|
11043
11060
|
set: (e) => {
|
|
11044
11061
|
if (Z.value) {
|
|
11045
|
-
if (e.length === 0 && !fe.value && j.value && !
|
|
11062
|
+
if (e.length === 0 && !fe.value && j.value && !de.value) {
|
|
11046
11063
|
Pt([]);
|
|
11047
11064
|
return;
|
|
11048
11065
|
}
|
|
@@ -11059,25 +11076,25 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11059
11076
|
let e = new Set(t), r = new Set(n);
|
|
11060
11077
|
for (let t of r) e.has(t) || wt(t, "select", "click", r.size);
|
|
11061
11078
|
for (let t of e) r.has(t) || wt(t, "deselect", "click", r.size);
|
|
11062
|
-
}), U.value = n, (e.length === 0 && !fe.value || !j.value ||
|
|
11063
|
-
!U.value.includes(e) && ne.value ===
|
|
11079
|
+
}), U.value = n, (e.length === 0 && !fe.value || !j.value || de.value) && (yt(), te.value.forEach((e) => {
|
|
11080
|
+
!U.value.includes(e) && ne.value === Y.value && V(e);
|
|
11064
11081
|
})), i?.();
|
|
11065
11082
|
}
|
|
11066
11083
|
}), vt = (e) => {
|
|
11067
11084
|
let t = {};
|
|
11068
11085
|
for (let n of e) {
|
|
11069
11086
|
if (n === null) continue;
|
|
11070
|
-
let e = He(y(
|
|
11087
|
+
let e = He(y(Y.value, n)) || Y.value;
|
|
11071
11088
|
t[e] || (t[e] = []), t[e].push(n);
|
|
11072
11089
|
}
|
|
11073
11090
|
return t;
|
|
11074
11091
|
}, yt = async (e, n, r) => {
|
|
11075
11092
|
if (!l.value) return;
|
|
11076
11093
|
if (e !== void 0 && n !== void 0) {
|
|
11077
|
-
let r = e ||
|
|
11094
|
+
let r = e || Y.value, i = new Set([Y.value, r]), a = n;
|
|
11078
11095
|
if (H.value) {
|
|
11079
11096
|
let e = Id(r, a || []);
|
|
11080
|
-
if (
|
|
11097
|
+
if (de.value) {
|
|
11081
11098
|
let t = h.value, n = nf(t, e, r);
|
|
11082
11099
|
N(i, !0), h.value = n;
|
|
11083
11100
|
return;
|
|
@@ -11088,7 +11105,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11088
11105
|
});
|
|
11089
11106
|
return;
|
|
11090
11107
|
}
|
|
11091
|
-
if (
|
|
11108
|
+
if (de.value) {
|
|
11092
11109
|
let e = await Jd(l.value, t.value, a);
|
|
11093
11110
|
N(i, !0), h.value = {
|
|
11094
11111
|
...h.value,
|
|
@@ -11104,7 +11121,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11104
11121
|
}
|
|
11105
11122
|
let i = vt(U.value), o = Ts(t.value);
|
|
11106
11123
|
if (H.value) {
|
|
11107
|
-
let e =
|
|
11124
|
+
let e = de.value ? h.value : l.value.getAdvancedFilterModel(), n = e, s = /* @__PURE__ */ new Set();
|
|
11108
11125
|
if (Z.value) {
|
|
11109
11126
|
let e = Ms(t.value), r = [];
|
|
11110
11127
|
for (let t of e) {
|
|
@@ -11128,8 +11145,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11128
11145
|
} : e;
|
|
11129
11146
|
}
|
|
11130
11147
|
} else {
|
|
11131
|
-
let t = U.value.length > 0 ? U.value : null, r = Id(
|
|
11132
|
-
n = nf(n, r,
|
|
11148
|
+
let t = U.value.length > 0 ? U.value : null, r = Id(Y.value, t || []);
|
|
11149
|
+
n = nf(n, r, Y.value);
|
|
11133
11150
|
let i = !1;
|
|
11134
11151
|
if (a?.value) {
|
|
11135
11152
|
let e = o.filterGroup?.fields ?? [];
|
|
@@ -11141,11 +11158,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11141
11158
|
n = nf(n, r, t);
|
|
11142
11159
|
}
|
|
11143
11160
|
}
|
|
11144
|
-
let c = U.value.filter((e) => e !== null), l = af(
|
|
11161
|
+
let c = U.value.filter((e) => e !== null), l = af(Y.value, e), u = new Set(l), d = new Set(c);
|
|
11145
11162
|
if (!(u.size !== d.size || c.some((e) => !u.has(e))) && !i) return;
|
|
11146
11163
|
}
|
|
11147
11164
|
if (r?.skipIfUnchanged && tf(e, n)) return;
|
|
11148
|
-
if (N(Z.value ? Q() : new Set([
|
|
11165
|
+
if (N(Z.value ? Q() : new Set([Y.value, ...s]), de.value), de.value) h.value = n;
|
|
11149
11166
|
else {
|
|
11150
11167
|
let e = n;
|
|
11151
11168
|
v(() => {
|
|
@@ -11159,34 +11176,34 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11159
11176
|
let e = Yd(t.value, l.value.getFilterModel());
|
|
11160
11177
|
if (Me(U.value, e)) return;
|
|
11161
11178
|
}
|
|
11162
|
-
if (
|
|
11179
|
+
if (de.value) {
|
|
11163
11180
|
let e = await Jd(l.value, t.value, s);
|
|
11164
|
-
N(new Set([
|
|
11181
|
+
N(new Set([Y.value]), !0), h.value = {
|
|
11165
11182
|
...h.value,
|
|
11166
|
-
[
|
|
11183
|
+
[Y.value]: e
|
|
11167
11184
|
};
|
|
11168
11185
|
return;
|
|
11169
11186
|
}
|
|
11170
11187
|
let c = await Jd(l.value, t.value, s);
|
|
11171
|
-
N(new Set([
|
|
11188
|
+
N(new Set([Y.value])), l.value.setColumnFilterModel(Y.value, c).then(() => {
|
|
11172
11189
|
l.value && l.value.onFilterChanged();
|
|
11173
11190
|
});
|
|
11174
|
-
}, bt = r(() =>
|
|
11191
|
+
}, bt = r(() => de.value ? "all_filters_drawer" : "horizontal"), xt = !1, St = (e, t) => {
|
|
11175
11192
|
xt = !0;
|
|
11176
|
-
let n =
|
|
11193
|
+
let n = J.value || "";
|
|
11177
11194
|
Cu(() => {
|
|
11178
11195
|
Su("filter_bulk_action", {
|
|
11179
|
-
filter_name:
|
|
11180
|
-
filter_field:
|
|
11196
|
+
filter_name: X.value,
|
|
11197
|
+
filter_field: Y.value,
|
|
11181
11198
|
action: e,
|
|
11182
11199
|
value_count: t,
|
|
11183
11200
|
location: bt.value,
|
|
11184
11201
|
search_query: n
|
|
11185
11202
|
}, c());
|
|
11186
11203
|
});
|
|
11187
|
-
}, Ct = (e) => !Z.value || e == null ?
|
|
11204
|
+
}, Ct = (e) => !Z.value || e == null ? Y.value : He(Ve(e)) || ($e(e).field ?? Y.value), wt = (e, t, n, r) => {
|
|
11188
11205
|
Su("filter_option_selected", {
|
|
11189
|
-
filter_name:
|
|
11206
|
+
filter_name: X.value,
|
|
11190
11207
|
filter_field: Ct(e),
|
|
11191
11208
|
selected_value: qe(e),
|
|
11192
11209
|
selected_value_id: e,
|
|
@@ -11194,7 +11211,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11194
11211
|
source: n,
|
|
11195
11212
|
current_selection_count: r,
|
|
11196
11213
|
location: bt.value,
|
|
11197
|
-
search_query:
|
|
11214
|
+
search_query: J.value || ""
|
|
11198
11215
|
}, c());
|
|
11199
11216
|
}, Tt = (e) => {
|
|
11200
11217
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
@@ -11227,7 +11244,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11227
11244
|
}), Ot = (e, n, r = "click") => {
|
|
11228
11245
|
let a = null;
|
|
11229
11246
|
if (Z.value && e) {
|
|
11230
|
-
let r = n || Ms(t.value)[0] ||
|
|
11247
|
+
let r = n || Ms(t.value)[0] || Y.value;
|
|
11231
11248
|
a = e.startsWith("__") ? e : ot(r, e) || e;
|
|
11232
11249
|
}
|
|
11233
11250
|
let o = e != null && (U.value.includes(e) || a != null && Le(a)), s = U.value.slice();
|
|
@@ -11241,7 +11258,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11241
11258
|
a != null && (Ne.value.find((e) => e.id === a) || (Ne.value = [...Ne.value, {
|
|
11242
11259
|
id: a,
|
|
11243
11260
|
state: "selected"
|
|
11244
|
-
}])), (!j.value ||
|
|
11261
|
+
}])), (!j.value || de.value) && (Z.value && e ? Pt(Ne.value) : n && n !== Y.value ? yt(n, [e]) : yt()), i?.();
|
|
11245
11262
|
}, kt = (e, n, r = "click") => {
|
|
11246
11263
|
let a = U.value.includes(e);
|
|
11247
11264
|
if (U.value = U.value.filter((t) => t !== e), e != null && a) {
|
|
@@ -11251,14 +11268,14 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11251
11268
|
});
|
|
11252
11269
|
}
|
|
11253
11270
|
if (Z.value && e) {
|
|
11254
|
-
let r = n || Ms(t.value)[0] ||
|
|
11271
|
+
let r = n || Ms(t.value)[0] || Y.value, i = e.startsWith("__") ? e : ot(r, e) || e;
|
|
11255
11272
|
Ne.value = Ne.value.filter((e) => e.id !== i);
|
|
11256
11273
|
}
|
|
11257
|
-
(!j.value ||
|
|
11274
|
+
(!j.value || de.value) && (Z.value && e ? Pt(Ne.value) : n && n !== Y.value ? yt(n, null) : yt()), i?.();
|
|
11258
11275
|
}, At = () => {
|
|
11259
|
-
he.value = Be(w(
|
|
11276
|
+
he.value = Be(w(Y.value)), fe.value = !0;
|
|
11260
11277
|
}, jt = () => {
|
|
11261
|
-
fe.value = !1, he.value = [],
|
|
11278
|
+
fe.value = !1, he.value = [], J.value = "", xt = !1, !o?.value && j.value && !de.value && (Z.value ? Pt(Ne.value, { skipIfUnchanged: !0 }) : yt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
11262
11279
|
}, Mt = async (e) => {
|
|
11263
11280
|
if (!l.value) return;
|
|
11264
11281
|
let n = G.value.length, r = !e.parentId;
|
|
@@ -11269,7 +11286,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11269
11286
|
filterModel: p.value ?? void 0,
|
|
11270
11287
|
offset: e.offset ?? n,
|
|
11271
11288
|
parentId: e.parentId,
|
|
11272
|
-
useStaged:
|
|
11289
|
+
useStaged: de.value
|
|
11273
11290
|
});
|
|
11274
11291
|
} finally {
|
|
11275
11292
|
r && (me.value = !1);
|
|
@@ -11284,16 +11301,16 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11284
11301
|
let r = JSON.stringify(e);
|
|
11285
11302
|
if (n?.skipIfUnchanged && r === Pe.value) return Ne.value = e, !1;
|
|
11286
11303
|
if (Ne.value = e, ut(e), Ms(t.value).length === 0) return !1;
|
|
11287
|
-
let a =
|
|
11304
|
+
let a = de.value ? h.value : l.value.getAdvancedFilterModel(), o = Nt(e, a);
|
|
11288
11305
|
if (n?.skipIfUnchanged && tf(a, o)) return Pe.value = r, !1;
|
|
11289
|
-
if (
|
|
11306
|
+
if (de.value) h.value = o;
|
|
11290
11307
|
else {
|
|
11291
11308
|
let e = o;
|
|
11292
11309
|
v(() => {
|
|
11293
11310
|
l.value?.setAdvancedFilterModel(e);
|
|
11294
11311
|
});
|
|
11295
11312
|
}
|
|
11296
|
-
return Pe.value = r, N(Q(),
|
|
11313
|
+
return Pe.value = r, N(Q(), de.value), i?.(), !0;
|
|
11297
11314
|
}, Ft = (e) => {
|
|
11298
11315
|
if (!Z.value || !Ms(t.value).length) return;
|
|
11299
11316
|
let n = Zl({
|
|
@@ -11309,11 +11326,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11309
11326
|
!Z.value || !H.value || It() && Ft(p.value);
|
|
11310
11327
|
};
|
|
11311
11328
|
W(Ne, (e) => {
|
|
11312
|
-
Z.value && (ut(e), !(j.value && !
|
|
11313
|
-
}, { deep: !0 }), W(() => O.value[
|
|
11314
|
-
!e || fe.value ||
|
|
11329
|
+
Z.value && (ut(e), !(j.value && !de.value) && Pt(e));
|
|
11330
|
+
}, { deep: !0 }), W(() => O.value[Y.value], (e) => {
|
|
11331
|
+
!e || fe.value || q.value || K.value && $(!0);
|
|
11315
11332
|
}), W(() => h.value, () => {
|
|
11316
|
-
if (
|
|
11333
|
+
if (de.value) {
|
|
11317
11334
|
if (H.value) {
|
|
11318
11335
|
let e = [], n = h.value;
|
|
11319
11336
|
if (Z.value) {
|
|
@@ -11322,20 +11339,20 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11322
11339
|
let r = af(t, n);
|
|
11323
11340
|
e.push(...r);
|
|
11324
11341
|
}
|
|
11325
|
-
} else e = af(
|
|
11342
|
+
} else e = af(Y.value, n);
|
|
11326
11343
|
U.value = e;
|
|
11327
11344
|
return;
|
|
11328
11345
|
}
|
|
11329
|
-
|
|
11346
|
+
ue.value === "agSetColumnFilter" ? U.value = h.value?.[Y.value]?.values || [] : ue.value === "agMultiColumnFilter" ? U.value = h.value?.[Y.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${ue.value} is not yet supported.`);
|
|
11330
11347
|
}
|
|
11331
11348
|
}), W(() => p.value, () => {
|
|
11332
|
-
if (
|
|
11349
|
+
if (de.value) return;
|
|
11333
11350
|
if (Z.value) {
|
|
11334
11351
|
H.value && Ft(p.value);
|
|
11335
11352
|
return;
|
|
11336
11353
|
}
|
|
11337
11354
|
if (H.value) {
|
|
11338
|
-
let e = p.value, t = af(
|
|
11355
|
+
let e = p.value, t = af(Y.value, e);
|
|
11339
11356
|
Ie(U.value.some((e) => e !== null && !t.includes(e)));
|
|
11340
11357
|
return;
|
|
11341
11358
|
}
|
|
@@ -11344,15 +11361,15 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11344
11361
|
}, { deep: !0 }), W(() => g.value, () => {
|
|
11345
11362
|
U.value = [], Ne.value = [], Pe.value = "[]";
|
|
11346
11363
|
}), W(() => l.value, (e) => {
|
|
11347
|
-
e && x.value && !fe.value && (O.value[
|
|
11364
|
+
e && x.value && !fe.value && (O.value[Y.value] = !0);
|
|
11348
11365
|
}, { immediate: !0 }), W(() => ie.value, async () => {
|
|
11349
|
-
K.value && !
|
|
11366
|
+
K.value && !q.value && !fe.value && (de.value ? setTimeout(async () => {
|
|
11350
11367
|
fe.value || await $(!0);
|
|
11351
11368
|
}, 2e3) : await $(!0)), Ie();
|
|
11352
|
-
}), pe(() =>
|
|
11369
|
+
}), pe(() => J.value, async () => {
|
|
11353
11370
|
if (fe.value) {
|
|
11354
|
-
if (
|
|
11355
|
-
f(
|
|
11371
|
+
if (le.value) {
|
|
11372
|
+
f(Y.value);
|
|
11356
11373
|
return;
|
|
11357
11374
|
}
|
|
11358
11375
|
await $(!0, !0);
|
|
@@ -11364,16 +11381,16 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11364
11381
|
}, zt = (e) => {
|
|
11365
11382
|
Cu(() => {
|
|
11366
11383
|
Su("filter_search", {
|
|
11367
|
-
filter_name:
|
|
11368
|
-
filter_field:
|
|
11384
|
+
filter_name: X.value,
|
|
11385
|
+
filter_field: Y.value,
|
|
11369
11386
|
query: e,
|
|
11370
11387
|
result_count: Rt(e),
|
|
11371
11388
|
location: bt.value
|
|
11372
11389
|
}, c());
|
|
11373
11390
|
});
|
|
11374
11391
|
}, Bt = null;
|
|
11375
|
-
return pe(() =>
|
|
11376
|
-
if (!e ||
|
|
11392
|
+
return pe(() => J.value, (e) => {
|
|
11393
|
+
if (!e || J.value !== e || le.value) {
|
|
11377
11394
|
Bt = null;
|
|
11378
11395
|
return;
|
|
11379
11396
|
}
|
|
@@ -11385,11 +11402,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11385
11402
|
}, { debounce: 500 }), W(() => ae.value, (e) => {
|
|
11386
11403
|
if (e || Bt == null) return;
|
|
11387
11404
|
let t = Bt;
|
|
11388
|
-
Bt = null,
|
|
11405
|
+
Bt = null, J.value === t && zt(t);
|
|
11389
11406
|
}), T(() => {
|
|
11390
|
-
P(
|
|
11407
|
+
P(Y.value);
|
|
11391
11408
|
let e = Ms(t.value);
|
|
11392
|
-
if (e.length && ee(
|
|
11409
|
+
if (e.length && ee(Y.value, e), Ie(), Z.value && H.value && Ft(p.value), o?.value && x.value && l.value) {
|
|
11393
11410
|
let e = Z.value || (Ts(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && H.value ? Ms(t.value).some((e) => af(e, p.value).length > 0) : U.value.length > 0;
|
|
11394
11411
|
e && n && d(t.value, {
|
|
11395
11412
|
api: l.value,
|
|
@@ -11398,21 +11415,21 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11398
11415
|
}
|
|
11399
11416
|
Z.value || Ts(t.value).metadataDisplayFields?.length && U.value.some((e) => Je(e)) && $(!0, !0);
|
|
11400
11417
|
}), E(() => {
|
|
11401
|
-
F(
|
|
11418
|
+
F(Y.value), j.value && !de.value && (Z.value ? Pt(Ne.value, { skipIfUnchanged: !0 }) : yt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
11402
11419
|
}), {
|
|
11403
11420
|
selectedValues: U,
|
|
11404
11421
|
filterValues: G,
|
|
11405
11422
|
isLoading: ae,
|
|
11406
11423
|
isSeeMoreLoading: me,
|
|
11407
|
-
filterSearchText:
|
|
11408
|
-
filterSearchMinLength:
|
|
11409
|
-
belowFilterSearchMinLength:
|
|
11424
|
+
filterSearchText: J,
|
|
11425
|
+
filterSearchMinLength: ce,
|
|
11426
|
+
belowFilterSearchMinLength: le,
|
|
11410
11427
|
rowsLoading: re,
|
|
11411
11428
|
gridApi: l,
|
|
11412
|
-
filterField:
|
|
11413
|
-
filterType:
|
|
11414
|
-
filterDisplayName:
|
|
11415
|
-
isInFilterPanel:
|
|
11429
|
+
filterField: Y,
|
|
11430
|
+
filterType: ue,
|
|
11431
|
+
filterDisplayName: X,
|
|
11432
|
+
isInFilterPanel: de,
|
|
11416
11433
|
maxSelectableValues: _e,
|
|
11417
11434
|
isSingleSelect: ve,
|
|
11418
11435
|
selectionLimitReached: Oe,
|
|
@@ -11691,7 +11708,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11691
11708
|
"handle-settings-icon"
|
|
11692
11709
|
],
|
|
11693
11710
|
setup(e, { emit: n }) {
|
|
11694
|
-
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: ee, filterField: F, filterDisplayName: I, isInFilterPanel: R, isSingleSelect: B, suggestedValues: te, displayedFilterValues: V, selectedFilterValues: ne, showSearchBar: re, filterSearchPlaceholder: ie, emptyFilterResultsRenderer: H, filterOptionsLoadingText: U, filterOptionsRenderer: W, filterHeaderRenderer: ae, filterFooterRenderer: K, filterFooterPosition:
|
|
11711
|
+
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: ee, filterField: F, filterDisplayName: I, isInFilterPanel: R, isSingleSelect: B, suggestedValues: te, displayedFilterValues: V, selectedFilterValues: ne, showSearchBar: re, filterSearchPlaceholder: ie, emptyFilterResultsRenderer: H, filterOptionsLoadingText: U, filterOptionsRenderer: W, filterHeaderRenderer: ae, filterFooterRenderer: K, filterFooterPosition: q, filterOptionsSortDescription: oe, filterOptionsSortTooltip: se, filterValueContext: J, formatDisplayValue: ce, resolvedFilterValueContext: le, isUnresolvedMetadataValue: Y, getLatestFilterValues: ue, addSelectedValue: X, removeSelectedValue: de, recordBulkAction: fe, rumLocation: pe, handleDropdownOpen: me, handleDropdownClosed: he, handleSeeMore: ge, getColDisplayNameForField: _e, hasMoreOptions: ve, totalOptionCount: ye, isAggregate: be, cascadeSelectionState: xe, cascadeSelectionStateModel: Se } = bf({
|
|
11695
11712
|
filterColDef: L(d, "filterColDef"),
|
|
11696
11713
|
filterStyle: L(d, "filterStyle"),
|
|
11697
11714
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
@@ -11716,7 +11733,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11716
11733
|
return n && !Oe() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
11717
11734
|
},
|
|
11718
11735
|
action: (e) => {
|
|
11719
|
-
e && !C.value.includes(e.id) &&
|
|
11736
|
+
e && !C.value.includes(e.id) && X(e.id, e.context?.colField);
|
|
11720
11737
|
let t = e.context?.colField || F.value;
|
|
11721
11738
|
we(be.value ? ke(e) : e.id, t);
|
|
11722
11739
|
},
|
|
@@ -11728,7 +11745,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11728
11745
|
}), je = (e) => {
|
|
11729
11746
|
if (!e) return null;
|
|
11730
11747
|
if (!be.value) return e;
|
|
11731
|
-
let t =
|
|
11748
|
+
let t = le(e);
|
|
11732
11749
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
11733
11750
|
if (e.startsWith("__")) {
|
|
11734
11751
|
let t = e.slice(2).split("__");
|
|
@@ -11736,8 +11753,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11736
11753
|
}
|
|
11737
11754
|
return e;
|
|
11738
11755
|
}, Z = (e) => {
|
|
11739
|
-
|
|
11740
|
-
let t =
|
|
11756
|
+
de(e, void 0, "remove_chip");
|
|
11757
|
+
let t = le(e)?.colField || F.value, n = je(e);
|
|
11741
11758
|
Te(n, t) && Oe() && Ee(n);
|
|
11742
11759
|
}, Q = m(Zu, k(!1)), Me = r(() => !!Ts(d.filterColDef).filterGroup && Q.value), Ne = null, Pe = null, Fe = () => {
|
|
11743
11760
|
try {
|
|
@@ -11746,7 +11763,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11746
11763
|
return null;
|
|
11747
11764
|
}
|
|
11748
11765
|
}, Ie = () => {
|
|
11749
|
-
Ne = Date.now(), Pe = Fe(), me(),
|
|
11766
|
+
Ne = Date.now(), Pe = Fe(), me(), ue(!0);
|
|
11750
11767
|
}, Le = () => {
|
|
11751
11768
|
let e = Ne == null ? 0 : Date.now() - Ne;
|
|
11752
11769
|
Ne = null;
|
|
@@ -11766,11 +11783,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11766
11783
|
he(), f("filter-closed");
|
|
11767
11784
|
});
|
|
11768
11785
|
}, Re = (e) => {
|
|
11769
|
-
let t =
|
|
11786
|
+
let t = le(e)?.colField || F.value;
|
|
11770
11787
|
return Te(je(e), t);
|
|
11771
11788
|
}, ze = r(() => S.value > 0 ? !0 : be.value ? xe.value.length > 0 : C.value.length > 0);
|
|
11772
|
-
return (n, r) => (D(), o(t, null, [s("div", null, [z(R) && z(C).length > 0 ? (D(), o("ul", Ef, [(D(!0), o(t, null, A(z(C), (n) => (D(), o(t, { key: `${z(I)}-${n}` }, [z(
|
|
11773
|
-
label: z(
|
|
11789
|
+
return (n, r) => (D(), o(t, null, [s("div", null, [z(R) && z(C).length > 0 ? (D(), o("ul", Ef, [(D(!0), o(t, null, A(z(C), (n) => (D(), o(t, { key: `${z(I)}-${n}` }, [z(Y)(n) ? a("", !0) : (D(), o("li", Df, [u(Oc, {
|
|
11790
|
+
label: z(ce)(n) || "",
|
|
11774
11791
|
showClear: !e.readOnly && (!Re(n) || z(Oe)()),
|
|
11775
11792
|
disabled: e.readOnly,
|
|
11776
11793
|
onHandleClose: (e) => Z(n)
|
|
@@ -11796,7 +11813,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11796
11813
|
counterPosition: !z(R) && ze.value ? void 0 : "none",
|
|
11797
11814
|
singleSelect: z(B),
|
|
11798
11815
|
menuActionsVariant: e.readOnly || z(B) ? null : "select-clear",
|
|
11799
|
-
footerPosition: z(
|
|
11816
|
+
footerPosition: z(q),
|
|
11800
11817
|
disableSearchInput: e.readOnly || !z(re),
|
|
11801
11818
|
searchPlaceholder: z(ie),
|
|
11802
11819
|
overlayTrigger: z(R),
|
|
@@ -11855,11 +11872,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11855
11872
|
"use-teleport": !0,
|
|
11856
11873
|
style: { "--max-width": "200px" }
|
|
11857
11874
|
}, c({
|
|
11858
|
-
trigger: G(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", z(
|
|
11875
|
+
trigger: G(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", z(se) ? "pv-set-filter-suggested-title-label" : ""]) }, P(z(oe)), 3)]),
|
|
11859
11876
|
_: 2
|
|
11860
|
-
}, [z(
|
|
11877
|
+
}, [z(se) ? {
|
|
11861
11878
|
name: "content",
|
|
11862
|
-
fn: G(() => [l(P(z(
|
|
11879
|
+
fn: G(() => [l(P(z(se)), 1)]),
|
|
11863
11880
|
key: "0"
|
|
11864
11881
|
} : void 0]), 1024)])]),
|
|
11865
11882
|
_: 2
|
|
@@ -11897,11 +11914,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11897
11914
|
"use-teleport": !0,
|
|
11898
11915
|
style: { "--max-width": "200px" }
|
|
11899
11916
|
}, c({
|
|
11900
|
-
trigger: G(() => [s("li", Pf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", z(
|
|
11917
|
+
trigger: G(() => [s("li", Pf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", z(se) ? "pv-set-filter-suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
11901
11918
|
_: 2
|
|
11902
|
-
}, [z(
|
|
11919
|
+
}, [z(se) ? {
|
|
11903
11920
|
name: "content",
|
|
11904
|
-
fn: G(() => [l(P(z(
|
|
11921
|
+
fn: G(() => [l(P(z(se)), 1)]),
|
|
11905
11922
|
key: "0"
|
|
11906
11923
|
} : void 0]), 1024), (D(!0), o(t, null, A(z(te).filter((e) => e !== "" && e != null).slice(0, Ff), (e) => (D(), o("li", {
|
|
11907
11924
|
key: `${z(I)}-${e}-suggest`,
|
|
@@ -11912,8 +11929,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11912
11929
|
}
|
|
11913
11930
|
}, [u(z(Bc), {
|
|
11914
11931
|
disabled: z(w),
|
|
11915
|
-
label: z(
|
|
11916
|
-
onHandleClick: (t) => z(
|
|
11932
|
+
label: z(ce)(e) || "",
|
|
11933
|
+
onHandleClick: (t) => z(X)(e, z(J)(z(F), e)?.colField)
|
|
11917
11934
|
}, null, 8, [
|
|
11918
11935
|
"disabled",
|
|
11919
11936
|
"label",
|
|
@@ -11978,7 +11995,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11978
11995
|
let n = Ps(e) ? Ms(e) : [e.field || ""];
|
|
11979
11996
|
if (p.value) {
|
|
11980
11997
|
let e = /* @__PURE__ */ new Set();
|
|
11981
|
-
return
|
|
11998
|
+
return de(t, e), n.some((t) => e.has(t));
|
|
11982
11999
|
}
|
|
11983
12000
|
let r = t;
|
|
11984
12001
|
return n.some((e) => !!r[e]);
|
|
@@ -11994,51 +12011,51 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11994
12011
|
}), re = r(() => {
|
|
11995
12012
|
let e = te.value, t = Math.max(0, h.maxHorizontalFilters), n = e.slice(0, t), r = f.value;
|
|
11996
12013
|
return !r || n.some((e) => e.field === r.field) ? n : [...e.filter((e) => e.field !== r.field).slice(0, Math.max(0, t - 1)), r];
|
|
11997
|
-
}), ie = r(() => !h.wrapHorizontalFilters && h.enableVerticalPanel), H = k(null), U = k(null), W = /* @__PURE__ */ new Map(), ae = k(!1), K = k(0),
|
|
12014
|
+
}), ie = r(() => !h.wrapHorizontalFilters && h.enableVerticalPanel), H = k(null), U = k(null), W = /* @__PURE__ */ new Map(), ae = k(!1), K = k(0), q = k(0), oe = k(0), se = k({}), J = null, ce = null, le = () => {
|
|
11998
12015
|
let e = H.value;
|
|
11999
12016
|
if (!e) return;
|
|
12000
|
-
ae.value = e.getClientRects().length > 0, K.value = e.clientWidth,
|
|
12017
|
+
ae.value = e.getClientRects().length > 0, K.value = e.clientWidth, q.value = parseFloat(getComputedStyle(e).columnGap) || 0, oe.value = U.value?.getBoundingClientRect().width ?? 0;
|
|
12001
12018
|
let t = {};
|
|
12002
12019
|
W.forEach((e, n) => {
|
|
12003
12020
|
t[n] = e.getBoundingClientRect().width;
|
|
12004
|
-
}),
|
|
12005
|
-
},
|
|
12006
|
-
|
|
12007
|
-
|
|
12021
|
+
}), se.value = t;
|
|
12022
|
+
}, Y = () => {
|
|
12023
|
+
ce === null && (ce = requestAnimationFrame(() => {
|
|
12024
|
+
ce = null, le();
|
|
12008
12025
|
}));
|
|
12009
|
-
},
|
|
12026
|
+
}, ue = (e, t) => {
|
|
12010
12027
|
let n = W.get(e);
|
|
12011
|
-
n !== t && (n && (
|
|
12028
|
+
n !== t && (n && (J?.unobserve(n), W.delete(e)), t instanceof HTMLElement && (W.set(e, t), J?.observe(t)));
|
|
12012
12029
|
};
|
|
12013
12030
|
T(() => {
|
|
12014
|
-
typeof ResizeObserver > "u" || (
|
|
12031
|
+
typeof ResizeObserver > "u" || (J = new ResizeObserver(Y), H.value && J.observe(H.value), U.value && J.observe(U.value), W.forEach((e) => J?.observe(e)));
|
|
12015
12032
|
}), C(() => {
|
|
12016
|
-
|
|
12033
|
+
J?.disconnect(), J = null, ce !== null && cancelAnimationFrame(ce), ce = null;
|
|
12017
12034
|
});
|
|
12018
|
-
let
|
|
12035
|
+
let X = r(() => {
|
|
12019
12036
|
let e = re.value.map((e) => e.field || ""), t = f.value ? e.indexOf(f.value.field || "") : -1;
|
|
12020
12037
|
if (!ie.value || !ae.value) return new Set(e);
|
|
12021
12038
|
let n = Rf({
|
|
12022
|
-
itemWidths: e.map((e) =>
|
|
12039
|
+
itemWidths: e.map((e) => se.value[e] ?? 0),
|
|
12023
12040
|
containerWidth: K.value,
|
|
12024
|
-
trailingWidth:
|
|
12025
|
-
gap:
|
|
12041
|
+
trailingWidth: oe.value,
|
|
12042
|
+
gap: q.value,
|
|
12026
12043
|
pinnedIndex: t >= 0 ? t : void 0
|
|
12027
12044
|
});
|
|
12028
12045
|
return new Set(e.filter((e, t) => n.has(t)));
|
|
12029
|
-
}),
|
|
12046
|
+
}), de = (e, t) => {
|
|
12030
12047
|
if (!e || typeof e != "object") return;
|
|
12031
12048
|
let n = e;
|
|
12032
12049
|
if (n.filterType && n.filterType !== "join" && n.colId) {
|
|
12033
12050
|
t.add(n.colId);
|
|
12034
12051
|
return;
|
|
12035
12052
|
}
|
|
12036
|
-
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) =>
|
|
12053
|
+
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => de(e, t));
|
|
12037
12054
|
}, fe = r(() => {
|
|
12038
12055
|
let e = v.value;
|
|
12039
12056
|
if (p.value && c.value) {
|
|
12040
12057
|
let t = /* @__PURE__ */ new Set();
|
|
12041
|
-
return
|
|
12058
|
+
return de(e, t), t.size;
|
|
12042
12059
|
}
|
|
12043
12060
|
let t = v.value || {};
|
|
12044
12061
|
return Object.keys(t).length;
|
|
@@ -12078,7 +12095,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12078
12095
|
ref_key: "filterRowRef",
|
|
12079
12096
|
ref: H,
|
|
12080
12097
|
class: y(["pv-flex", { "pv-filter-panel-collapsible": ie.value }]),
|
|
12081
|
-
style: x(ie.value ? { minWidth: `${
|
|
12098
|
+
style: x(ie.value ? { minWidth: `${oe.value}px` } : {
|
|
12082
12099
|
"--flex-wrap": "wrap",
|
|
12083
12100
|
maxWidth: "100%"
|
|
12084
12101
|
})
|
|
@@ -12086,9 +12103,9 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12086
12103
|
(D(!0), o(t, null, A(re.value, (r) => (D(), o(t, { key: r.field }, [z(c) ? (D(), o("div", {
|
|
12087
12104
|
key: 0,
|
|
12088
12105
|
ref_for: !0,
|
|
12089
|
-
ref: (e) =>
|
|
12090
|
-
class: y(["pv-filter-panel-item", { "pv-filter-panel-item-collapsed": !
|
|
12091
|
-
inert: !
|
|
12106
|
+
ref: (e) => ue(r.field || "", e),
|
|
12107
|
+
class: y(["pv-filter-panel-item", { "pv-filter-panel-item-collapsed": !X.value.has(r.field || "") }]),
|
|
12108
|
+
inert: !X.value.has(r.field || "") || void 0
|
|
12092
12109
|
}, [u(If, {
|
|
12093
12110
|
"enable-focus-view": h.enableFocusView,
|
|
12094
12111
|
"display-preferences-icon": h.displayPreferencesIcon,
|
|
@@ -12235,23 +12252,33 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12235
12252
|
}), [["__scopeId", "data-v-a59c5643"]]), Zf = { key: 2 }, Qf = { style: {
|
|
12236
12253
|
"max-width": "220px",
|
|
12237
12254
|
"white-space": "normal",
|
|
12238
|
-
"overflow-wrap": "break-word"
|
|
12255
|
+
"overflow-wrap": "break-word",
|
|
12256
|
+
"text-align": "left"
|
|
12239
12257
|
} }, $f = {
|
|
12240
12258
|
key: 0,
|
|
12241
12259
|
class: "pv-flex ag-header-actions"
|
|
12242
12260
|
}, ep = /* @__PURE__ */ d({
|
|
12243
12261
|
__name: "HeaderCellRenderer",
|
|
12244
12262
|
props: { params: {} },
|
|
12245
|
-
setup(e, { expose:
|
|
12246
|
-
let
|
|
12247
|
-
let e =
|
|
12263
|
+
setup(e, { expose: n }) {
|
|
12264
|
+
let c = m(Eu, k([])), d = m(Mu, k([])), f = e, p = k(!1), h = k(!1), g = k(null), _ = k(null), v = k(null), b = k(null), C = r(() => {
|
|
12265
|
+
let [e, t] = (v.value ?? "").split("{link}");
|
|
12266
|
+
return t === void 0 ? {
|
|
12267
|
+
before: `${e} `,
|
|
12268
|
+
after: ""
|
|
12269
|
+
} : {
|
|
12270
|
+
before: e,
|
|
12271
|
+
after: t
|
|
12272
|
+
};
|
|
12273
|
+
}), w = k(null), T = k(!1), E = r(() => {
|
|
12274
|
+
let e = f.params.column.getColDef();
|
|
12248
12275
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
12249
|
-
}),
|
|
12250
|
-
if (!
|
|
12251
|
-
let e =
|
|
12276
|
+
}), O = r(() => {
|
|
12277
|
+
if (!c.value || c.value.length === 0) return "";
|
|
12278
|
+
let e = c.value.find((e) => e.colId === f.params.column.getColId()), t = e ? e.sort : "";
|
|
12252
12279
|
return t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "";
|
|
12253
|
-
}),
|
|
12254
|
-
let e =
|
|
12280
|
+
}), A = r(() => As(f.params.column.getColDef())), j = r(() => {
|
|
12281
|
+
let e = f.params.column.getColDef(), t = e.allowedAggFuncs;
|
|
12255
12282
|
if (!t || t.length <= 1) return [];
|
|
12256
12283
|
let n = Ts(e), r = n.aggFuncDisplayNameMap || {}, i = n.aggFuncDescriptionMap || {};
|
|
12257
12284
|
return t.map((e) => ({
|
|
@@ -12259,115 +12286,138 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12259
12286
|
text: r[e] || e,
|
|
12260
12287
|
description: i[e]
|
|
12261
12288
|
}));
|
|
12262
|
-
}),
|
|
12289
|
+
}), M = r(() => j.value.length > 1), N = k(), ee = (e) => {
|
|
12263
12290
|
let t = e.column.getAggFunc();
|
|
12264
|
-
|
|
12265
|
-
},
|
|
12291
|
+
N.value = j.value.find((e) => e.id === t) || j.value[0];
|
|
12292
|
+
}, F = r(() => ["ag-custom-header-cell pv-flex pv-full-width pv-space-between", { "ag-custom-header-cell-with-agg-selector": z.value }]), I = r(() => ({
|
|
12266
12293
|
useTeleport: !0,
|
|
12267
|
-
position:
|
|
12294
|
+
position: A.value ? "bottom-right" : "bottom-left",
|
|
12268
12295
|
cssCustomProperties: {
|
|
12269
12296
|
width: "100%",
|
|
12270
12297
|
height: "100%"
|
|
12271
12298
|
}
|
|
12272
|
-
})),
|
|
12299
|
+
})), L = r(() => {
|
|
12273
12300
|
let e = {};
|
|
12274
|
-
return
|
|
12275
|
-
}),
|
|
12276
|
-
|
|
12277
|
-
},
|
|
12278
|
-
|
|
12279
|
-
},
|
|
12280
|
-
|
|
12301
|
+
return h.value && (e.cursor = "pointer", e["flex-direction"] = A.value ? "row-reverse" : "row"), A.value && (e["--flex-justify"] = "flex-end"), e;
|
|
12302
|
+
}), R = r(() => T.value ? { opacity: 1 } : {}), z = r(() => f.params.column.getColDef().pivotValueColumn ? !1 : M.value && d.value.length > 0), B = () => {
|
|
12303
|
+
T.value = !1;
|
|
12304
|
+
}, te = () => {
|
|
12305
|
+
T.value = !0, w.value && f.params.showColumnMenu(w.value, B);
|
|
12306
|
+
}, V = (e) => {
|
|
12307
|
+
p.value = e.enableFilterButton, h.value = e.enableSorting || !1, g.value = e.displayName;
|
|
12281
12308
|
let t = e.column.getColDef().context?.dataType;
|
|
12282
|
-
e.api?.isPivotMode?.() ? (
|
|
12283
|
-
},
|
|
12284
|
-
|
|
12309
|
+
e.api?.isPivotMode?.() ? (_.value = null, t === ys.Currency && !g.value.includes("$") && (g.value = `${g.value} ($)`)) : (_.value = bs(t), g.value = xs(g.value, t)), v.value = e.column.getColDef().context?.headerTooltip ?? null, b.value = e.column.getColDef().context?.headerTooltipLink ?? null;
|
|
12310
|
+
}, ne = () => {
|
|
12311
|
+
h.value && f.params.progressSort(!1);
|
|
12285
12312
|
};
|
|
12286
|
-
W(
|
|
12313
|
+
W(N, (e) => {
|
|
12287
12314
|
if (!e) return;
|
|
12288
|
-
let t =
|
|
12315
|
+
let t = f.params.column.getAggFunc();
|
|
12289
12316
|
if (e.id === t) return;
|
|
12290
|
-
let n =
|
|
12317
|
+
let n = f.params.api, r = f.params.column.getColId();
|
|
12291
12318
|
n.applyColumnState({ state: [{
|
|
12292
12319
|
colId: r,
|
|
12293
12320
|
aggFunc: e.id
|
|
12294
12321
|
}] });
|
|
12295
12322
|
}), S(() => {
|
|
12296
|
-
|
|
12323
|
+
M.value && ee(f.params), V(f.params);
|
|
12297
12324
|
});
|
|
12298
|
-
function
|
|
12299
|
-
return
|
|
12325
|
+
function re(e) {
|
|
12326
|
+
return V(e), M.value && ee(e), !0;
|
|
12300
12327
|
}
|
|
12301
|
-
return
|
|
12302
|
-
class: y(
|
|
12303
|
-
style: x(
|
|
12304
|
-
onClick:
|
|
12328
|
+
return n({ refresh: re }), (e, n) => (D(), o("div", {
|
|
12329
|
+
class: y(F.value),
|
|
12330
|
+
style: x(L.value),
|
|
12331
|
+
onClick: ne
|
|
12305
12332
|
}, [s("div", {
|
|
12306
|
-
class: y(["pv-flex pv-full-width", { "pv-text-right":
|
|
12307
|
-
style: x(
|
|
12333
|
+
class: y(["pv-flex pv-full-width", { "pv-text-right": A.value }]),
|
|
12334
|
+
style: x(A.value ? { "--flex-justify": "flex-end" } : {})
|
|
12308
12335
|
}, [
|
|
12309
|
-
|
|
12336
|
+
_.value && !z.value ? (D(), i(Jn, {
|
|
12310
12337
|
key: 0,
|
|
12311
|
-
name:
|
|
12338
|
+
name: _.value,
|
|
12312
12339
|
class: "pv-text-tertiary"
|
|
12313
12340
|
}, null, 8, ["name"])) : a("", !0),
|
|
12314
|
-
|
|
12341
|
+
z.value ? (D(), i(Yo, {
|
|
12315
12342
|
key: 1,
|
|
12316
|
-
modelValue:
|
|
12317
|
-
"onUpdate:modelValue":
|
|
12343
|
+
modelValue: N.value,
|
|
12344
|
+
"onUpdate:modelValue": n[0] ||= (e) => N.value = e,
|
|
12318
12345
|
class: "ag-header-agg-func-selector",
|
|
12319
|
-
options:
|
|
12346
|
+
options: j.value,
|
|
12320
12347
|
disableSearchInput: !0,
|
|
12321
12348
|
disableDeselect: !0,
|
|
12322
|
-
popoverProperties:
|
|
12349
|
+
popoverProperties: I.value,
|
|
12323
12350
|
popoverCssProperties: { width: "auto" },
|
|
12324
12351
|
variant: "ghost",
|
|
12325
12352
|
size: "lg",
|
|
12326
|
-
icon:
|
|
12327
|
-
label:
|
|
12353
|
+
icon: _.value || void 0,
|
|
12354
|
+
label: g.value || "",
|
|
12328
12355
|
staticLabel: !0,
|
|
12329
|
-
onClick:
|
|
12356
|
+
onClick: n[1] ||= q(() => {}, ["stop"])
|
|
12330
12357
|
}, null, 8, [
|
|
12331
12358
|
"modelValue",
|
|
12332
12359
|
"options",
|
|
12333
12360
|
"popoverProperties",
|
|
12334
12361
|
"icon",
|
|
12335
12362
|
"label"
|
|
12336
|
-
])) : (D(), o("p", Zf, P(
|
|
12337
|
-
|
|
12363
|
+
])) : (D(), o("p", Zf, P(g.value), 1)),
|
|
12364
|
+
v.value ? (D(), i(da, {
|
|
12338
12365
|
key: 3,
|
|
12339
12366
|
variant: "white",
|
|
12340
12367
|
position: "top-center",
|
|
12341
12368
|
disableAutoPlacement: !0,
|
|
12342
12369
|
useTeleport: !0,
|
|
12343
12370
|
showOnHover: !0,
|
|
12344
|
-
disableInteractive: !
|
|
12371
|
+
disableInteractive: !b.value,
|
|
12345
12372
|
style: { "pointer-events": "auto" }
|
|
12346
12373
|
}, {
|
|
12347
|
-
trigger: G(() => [
|
|
12374
|
+
trigger: G(() => [b.value ? (D(), i(Qn, {
|
|
12375
|
+
key: 0,
|
|
12376
|
+
variant: "ghost",
|
|
12377
|
+
size: "md",
|
|
12378
|
+
"left-icon": "info-circle",
|
|
12379
|
+
ariaLabel: `More information about ${g.value}`,
|
|
12380
|
+
onClick: n[2] ||= q(() => {}, ["stop"])
|
|
12381
|
+
}, null, 8, ["ariaLabel"])) : (D(), i(Jn, {
|
|
12382
|
+
key: 1,
|
|
12348
12383
|
size: 12,
|
|
12349
12384
|
name: "info-circle",
|
|
12350
12385
|
class: "pv-text-subdued",
|
|
12351
|
-
onClick:
|
|
12352
|
-
})]),
|
|
12353
|
-
content: G(() => [s("div", Qf,
|
|
12386
|
+
onClick: n[3] ||= q(() => {}, ["stop"])
|
|
12387
|
+
}))]),
|
|
12388
|
+
content: G(() => [s("div", Qf, [b.value ? (D(), o(t, { key: 0 }, [
|
|
12389
|
+
l(P(C.value.before), 1),
|
|
12390
|
+
s("button", {
|
|
12391
|
+
type: "button",
|
|
12392
|
+
style: {
|
|
12393
|
+
background: "none",
|
|
12394
|
+
border: "0",
|
|
12395
|
+
padding: "0",
|
|
12396
|
+
cursor: "pointer",
|
|
12397
|
+
"text-decoration": "underline",
|
|
12398
|
+
color: "var(--color-background-brand, #36c5ba)"
|
|
12399
|
+
},
|
|
12400
|
+
onClick: n[4] ||= q((e) => b.value.onClick(), ["stop"])
|
|
12401
|
+
}, P(b.value.label), 1),
|
|
12402
|
+
l(P(C.value.after), 1)
|
|
12403
|
+
], 64)) : (D(), o(t, { key: 1 }, [l(P(v.value), 1)], 64))])]),
|
|
12354
12404
|
_: 1
|
|
12355
|
-
})) : a("", !0),
|
|
12356
|
-
|
|
12405
|
+
}, 8, ["disableInteractive"])) : a("", !0),
|
|
12406
|
+
h.value && O.value !== "" ? (D(), i(Jn, {
|
|
12357
12407
|
key: 4,
|
|
12358
|
-
name:
|
|
12408
|
+
name: O.value
|
|
12359
12409
|
}, null, 8, ["name"])) : a("", !0)
|
|
12360
|
-
], 6),
|
|
12410
|
+
], 6), E.value ? (D(), o("div", $f, [s("div", {
|
|
12361
12411
|
ref_key: "menuButton",
|
|
12362
|
-
ref:
|
|
12412
|
+
ref: w,
|
|
12363
12413
|
class: "ag-header-cell-menu-button",
|
|
12364
|
-
style: x(
|
|
12414
|
+
style: x(R.value)
|
|
12365
12415
|
}, [u(Qn, {
|
|
12366
12416
|
size: "md",
|
|
12367
12417
|
variant: "ghost",
|
|
12368
12418
|
"left-icon": "menu",
|
|
12369
12419
|
ariaLabel: "Column menu",
|
|
12370
|
-
onClick:
|
|
12420
|
+
onClick: q(te, ["stop", "prevent"])
|
|
12371
12421
|
})], 4)])) : a("", !0)], 6));
|
|
12372
12422
|
}
|
|
12373
12423
|
}), tp = {
|
|
@@ -12456,7 +12506,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12456
12506
|
class: "pv-icon-24"
|
|
12457
12507
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", op, [s("button", {
|
|
12458
12508
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
12459
|
-
onClick:
|
|
12509
|
+
onClick: q(i, ["prevent"]),
|
|
12460
12510
|
disabled: r.value
|
|
12461
12511
|
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, sp)])]));
|
|
12462
12512
|
}
|
|
@@ -12479,7 +12529,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12479
12529
|
])], 2));
|
|
12480
12530
|
}
|
|
12481
12531
|
}), up = (e, t) => e.value?.querySelector(t) ?? null, dp = (e) => {
|
|
12482
|
-
let t = ee(null), n = ee(null), i = ee(null), a = k(0), o = (e) =>
|
|
12532
|
+
let t = ee(null), n = ee(null), i = ee(null), a = k(0), o = (e) => ue(e, void 0, { box: "border-box" }).height, s = o(t), c = o(n), l = o(i);
|
|
12483
12533
|
return {
|
|
12484
12534
|
contentHeight: r(() => {
|
|
12485
12535
|
if (!s.value) return;
|
|
@@ -12493,7 +12543,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12493
12543
|
};
|
|
12494
12544
|
}, fp = (e, t) => {
|
|
12495
12545
|
let n = ee(null), r = k(t);
|
|
12496
|
-
return
|
|
12546
|
+
return X(n, () => {
|
|
12497
12547
|
let t = up(e, ".ag-pinned-left-header .ag-header-cell");
|
|
12498
12548
|
!t || !e.value || (r.value = Math.round(t.getBoundingClientRect().top - e.value.getBoundingClientRect().top));
|
|
12499
12549
|
}), {
|
|
@@ -13063,7 +13113,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13063
13113
|
return !t.group || !n ? !1 : Ht.value.some((e) => {
|
|
13064
13114
|
if (e.field === n) return !0;
|
|
13065
13115
|
});
|
|
13066
|
-
},
|
|
13116
|
+
}, q = (() => {
|
|
13067
13117
|
let e = {
|
|
13068
13118
|
suppressHeaderFilterButton: !f.enableInlineFilters,
|
|
13069
13119
|
editable: !1,
|
|
@@ -13091,11 +13141,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13091
13141
|
}
|
|
13092
13142
|
};
|
|
13093
13143
|
return f.defaultColDefOverrides && Object.assign(e, f.defaultColDefOverrides), e;
|
|
13094
|
-
})(),
|
|
13144
|
+
})(), oe = k(void 0), se = r(() => (e) => {
|
|
13095
13145
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
13096
13146
|
let t = [];
|
|
13097
13147
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
13098
|
-
}),
|
|
13148
|
+
}), J = {
|
|
13099
13149
|
name: "Column Filter",
|
|
13100
13150
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
13101
13151
|
action: function(e) {
|
|
@@ -13106,7 +13156,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13106
13156
|
Wn.value?.openHorizontalFilter(t) || Wn.value?.isHorizontalFilterCollapsed(t) && Wn.value.openVerticalDrawer();
|
|
13107
13157
|
});
|
|
13108
13158
|
}
|
|
13109
|
-
},
|
|
13159
|
+
}, ce = (e) => !e.node?.group && e.data != null && e.value != null && e.value !== "", le = (e, t) => {
|
|
13110
13160
|
if (!e) return null;
|
|
13111
13161
|
let n = { ...e }, r = t, i = Ms(e);
|
|
13112
13162
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -13117,21 +13167,21 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13117
13167
|
}
|
|
13118
13168
|
if (r.isCellClickable && (n.cellClassRules = {
|
|
13119
13169
|
...n.cellClassRules,
|
|
13120
|
-
"pv-data-table-cell-clickable":
|
|
13121
|
-
}, !n.tooltipField && !n.tooltipValueGetter && (n.tooltipValueGetter = (e) =>
|
|
13170
|
+
"pv-data-table-cell-clickable": ce
|
|
13171
|
+
}, !n.tooltipField && !n.tooltipValueGetter && (n.tooltipValueGetter = (e) => ce(e) ? "Click to view details" : void 0)), f.enableAdvancedFilter) {
|
|
13122
13172
|
let t = e.headerValueGetter;
|
|
13123
13173
|
n.headerValueGetter = (e) => e.location === "advancedFilter" ? n.colId || n.field || "" : t && typeof t == "function" ? t(e) : t && typeof t == "string" ? t : n.headerName || n.field || "";
|
|
13124
13174
|
}
|
|
13125
13175
|
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Bt(e, r.dataType) : r.dataType === ys.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Rt(e, r.valueDecimals || 0) : r.dataType === ys.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Lt(e, r.valueDecimals || 0) : r.dataType === ys.Integer && !e.valueFormatter ? n.valueFormatter = zt : r.dataType === ys.Tag && !e.cellRenderer && (n.cellRenderer = bp), n;
|
|
13126
|
-
},
|
|
13176
|
+
}, Y = (e) => e.colId || e.field || "", ue = (e, t = () => null) => (f.colDefs ?? []).map((e, t) => ({
|
|
13127
13177
|
colDef: e,
|
|
13128
13178
|
index: t
|
|
13129
|
-
})).filter(({ colDef: t }) => e(t)).sort((e, n) => (t(e.colDef) ?? e.index) - (t(n.colDef) ?? n.index) || e.index - n.index).map(({ colDef: e }) =>
|
|
13130
|
-
rowGroupCols:
|
|
13131
|
-
pivotCols:
|
|
13132
|
-
valueCols:
|
|
13133
|
-
} : null,
|
|
13134
|
-
let n = Pt.value ===
|
|
13179
|
+
})).filter(({ colDef: t }) => e(t)).sort((e, n) => (t(e.colDef) ?? e.index) - (t(n.colDef) ?? n.index) || e.index - n.index).map(({ colDef: e }) => Y(e)), X = V ? {
|
|
13180
|
+
rowGroupCols: ue((e) => !!e.rowGroup, (e) => e.rowGroupIndex ?? null),
|
|
13181
|
+
pivotCols: ue((e) => !!e.pivot && !e.rowGroup, (e) => e.pivotIndex ?? null),
|
|
13182
|
+
valueCols: ue((e) => !!e.aggFunc && !e.rowGroup && !e.pivot && e.enableValue !== !1)
|
|
13183
|
+
} : null, de = (e) => e ? f.colDefs?.find((t) => Y(t) === e) : void 0, fe = (e) => de(e)?.context, me = (e) => de(e)?.field ?? e, Ie = (e, t) => {
|
|
13184
|
+
let n = Pt.value === X?.pivotCols[0] ? Ft.value : [], r = [...f.pivotValueOrder ?? [], ...n].map(String), i = (e) => {
|
|
13135
13185
|
let t = r.indexOf(String(e));
|
|
13136
13186
|
return t === -1 ? r.length : t;
|
|
13137
13187
|
};
|
|
@@ -13140,7 +13190,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13140
13190
|
...t,
|
|
13141
13191
|
data: t.node.allLeafChildren?.[0]?.data
|
|
13142
13192
|
}) : e, rt = (e) => {
|
|
13143
|
-
let t =
|
|
13193
|
+
let t = X, n = Y(e), r = t.rowGroupCols.indexOf(n), i = t.pivotCols.indexOf(n), a = t.valueCols.includes(n);
|
|
13144
13194
|
return {
|
|
13145
13195
|
...e,
|
|
13146
13196
|
valueFormatter: r === -1 ? e.valueFormatter : nt(e.valueFormatter),
|
|
@@ -13156,7 +13206,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13156
13206
|
let t = { ...e };
|
|
13157
13207
|
(ie || V) && H && Gd(e) && (t = Kd(e, H));
|
|
13158
13208
|
let n = e.context;
|
|
13159
|
-
return n && (t =
|
|
13209
|
+
return n && (t = le(t, n)), t;
|
|
13160
13210
|
}).filter((e) => e != null) || [], at = {
|
|
13161
13211
|
colId: "__pv_pivot_total__",
|
|
13162
13212
|
headerName: "",
|
|
@@ -13164,7 +13214,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13164
13214
|
rowGroupIndex: 0,
|
|
13165
13215
|
suppressColumnsToolPanel: !0,
|
|
13166
13216
|
valueGetter: () => f.pivotTotalLabel
|
|
13167
|
-
}, ot = V ? [...it.map(rt), ...
|
|
13217
|
+
}, ot = V ? [...it.map(rt), ...X?.rowGroupCols.length ? [] : [at]] : it, st = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
13168
13218
|
for (let e of ot) for (let t of Ms(e)) st.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
13169
13219
|
let lt = ot.some((e) => e.context?.visibilityState !== void 0), ut = (e) => {
|
|
13170
13220
|
if (!V || !e) return e;
|
|
@@ -13207,12 +13257,12 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13207
13257
|
let Nt = k(null), Pt = r(() => wt?.computedFocusType.value || null), Ft = r(() => wt?.computedFocuses.value || []), It = r(() => ot.filter((e) => e.filter)), Vt = r(() => ot.filter((e) => e.enableRowGroup)), Ht = r(() => it.filter((e) => e.aggFunc)), Ut = k(null), Wt = k({}), Gt = k(1), Kt = k(0);
|
|
13208
13258
|
O(wu, St), O(Tu, wt), O(Eu, xt), O(Du, bt), O(Ou, Nt), O(ku, ft), O(Au, It), O(ju, Vt), O(Mu, pt), O(Nu, Ut), O(Pu, Wt), O(Fu, mt), O(Iu, ht), O(Lu, Gt), O(Ru, Kt), O(Zu, r(() => f.enableAdvancedFilter));
|
|
13209
13259
|
let qt = ee(void 0), Jt = r(() => {
|
|
13210
|
-
let e =
|
|
13260
|
+
let e = X?.pivotCols[0], t = e && me(e), n = qt.value ?? f.rowData;
|
|
13211
13261
|
if (!t || !n) return /* @__PURE__ */ new Map();
|
|
13212
13262
|
let r = Array.from(new Set(n.map((e) => String(e[t]))));
|
|
13213
13263
|
return new Map(r.sort(Ie).map((e, t) => [e, t]));
|
|
13214
13264
|
}), Yt = (e, t) => {
|
|
13215
|
-
let n =
|
|
13265
|
+
let n = de(e);
|
|
13216
13266
|
return {
|
|
13217
13267
|
id: e,
|
|
13218
13268
|
field: n?.field ?? e,
|
|
@@ -13227,7 +13277,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13227
13277
|
conditions: [e, t]
|
|
13228
13278
|
} : t : Wd(ot, e, t);
|
|
13229
13279
|
}, Zt = 0, Qt = async () => {
|
|
13230
|
-
if (!
|
|
13280
|
+
if (!X || !f.serverSidePivotHandler) return;
|
|
13231
13281
|
let e = ++Zt;
|
|
13232
13282
|
if (!vt.value) {
|
|
13233
13283
|
qt.value = [], mt.value = !0;
|
|
@@ -13236,8 +13286,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13236
13286
|
ht.value = !0;
|
|
13237
13287
|
try {
|
|
13238
13288
|
let t = await f.serverSidePivotHandler({
|
|
13239
|
-
rowGroupCols: [...
|
|
13240
|
-
valueCols:
|
|
13289
|
+
rowGroupCols: [...X.rowGroupCols, ...X.pivotCols].map((e) => Yt(e, !1)),
|
|
13290
|
+
valueCols: X.valueCols.map((e) => Yt(e, !0)),
|
|
13241
13291
|
filterModel: Xt(Tt.value),
|
|
13242
13292
|
endRow: f.pivotRowLimit
|
|
13243
13293
|
});
|
|
@@ -13260,8 +13310,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13260
13310
|
top: 0,
|
|
13261
13311
|
left: 0,
|
|
13262
13312
|
visibility: "hidden"
|
|
13263
|
-
} : void 0), nn = (e) => (qt.value ?? f.rowData)?.find((t) => e.every((e, n) => String(t[me(
|
|
13264
|
-
let r = ot.find((t) =>
|
|
13313
|
+
} : void 0), nn = (e) => (qt.value ?? f.rowData)?.find((t) => e.every((e, n) => String(t[me(X.pivotCols[n])]) === String(e))), rn = (e, t, n) => {
|
|
13314
|
+
let r = ot.find((t) => Y(t) === e);
|
|
13265
13315
|
if (typeof r?.valueFormatter == "function") return r.valueFormatter({
|
|
13266
13316
|
value: t,
|
|
13267
13317
|
data: n,
|
|
@@ -13269,7 +13319,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13269
13319
|
node: null
|
|
13270
13320
|
}) || void 0;
|
|
13271
13321
|
}, an = (e) => {
|
|
13272
|
-
let t = e.pivotKeys ?? [], n = t.at(-1), r =
|
|
13322
|
+
let t = e.pivotKeys ?? [], n = t.at(-1), r = X?.pivotCols[t.length - 1], i = n == null ? void 0 : String(n), a = nn(t), { headerName: o, ...s } = i != null && fe(r)?.pivotGroupHeader?.({
|
|
13273
13323
|
value: i,
|
|
13274
13324
|
data: a,
|
|
13275
13325
|
focused: Pt.value === r && Ft.value.map(String).includes(i)
|
|
@@ -13472,7 +13522,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13472
13522
|
innerRenderer: Dd,
|
|
13473
13523
|
innerRendererParams: (e) => ({
|
|
13474
13524
|
plainLabel: V,
|
|
13475
|
-
boldLabel: V && !
|
|
13525
|
+
boldLabel: V && !X?.rowGroupCols.length,
|
|
13476
13526
|
displayBaseAggregationsOnly: f.displayBaseAggregationsOnly,
|
|
13477
13527
|
displayRowNumber: f.displayRowNumber,
|
|
13478
13528
|
displayCount: f.displayGroupCount,
|
|
@@ -13514,14 +13564,14 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13514
13564
|
S(() => {
|
|
13515
13565
|
Un.value = document.querySelector("body");
|
|
13516
13566
|
let e = Array.isArray(f.rowData) && f.rowData.length > 0, t = typeof f.serverSideRowHandler == "function", n = typeof f.filterValuesSetHandler == "function";
|
|
13517
|
-
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."),
|
|
13567
|
+
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."), oe.value = (e) => {
|
|
13518
13568
|
let t = [
|
|
13519
13569
|
"sortAscending",
|
|
13520
13570
|
"sortDescending",
|
|
13521
13571
|
"sortUnSort",
|
|
13522
13572
|
"rowUnGroup"
|
|
13523
13573
|
], n = e.column && hn(e.column) ? Ut.value : e.column;
|
|
13524
|
-
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0,
|
|
13574
|
+
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, J), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
13525
13575
|
}, dt && (Tt.value = (f.enableAdvancedFilter ? dt.filter?.advancedFilterModel : dt.filter?.filterModel) || null, pt.value = dt.rowGroup?.groupColIds || []);
|
|
13526
13576
|
});
|
|
13527
13577
|
let zn = (e) => {
|
|
@@ -13699,11 +13749,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13699
13749
|
autoGroupColumnDef: Pn.value,
|
|
13700
13750
|
columnDefs: z(ot),
|
|
13701
13751
|
debug: e.debugMode,
|
|
13702
|
-
defaultColDef: z(
|
|
13752
|
+
defaultColDef: z(q),
|
|
13703
13753
|
fullWidthCellRenderer: jn.value,
|
|
13704
13754
|
getChildCount: An,
|
|
13705
|
-
getContextMenuItems:
|
|
13706
|
-
getMainMenuItems:
|
|
13755
|
+
getContextMenuItems: se.value,
|
|
13756
|
+
getMainMenuItems: oe.value,
|
|
13707
13757
|
getRowClass: Ln,
|
|
13708
13758
|
getRowStyle: In,
|
|
13709
13759
|
groupDefaultExpanded: Hn.value,
|
|
@@ -13958,7 +14008,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13958
14008
|
class: "pv-inset-square-8",
|
|
13959
14009
|
role: "dialog",
|
|
13960
14010
|
"aria-label": "Column options",
|
|
13961
|
-
onKeydown: r[3] ||= K(
|
|
14011
|
+
onKeydown: r[3] ||= K(q((e) => b.value = null, ["stop"]), ["esc"])
|
|
13962
14012
|
}, [r[5] ||= s("p", {
|
|
13963
14013
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
13964
14014
|
style: {
|
|
@@ -14223,10 +14273,10 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14223
14273
|
let H = m(zu, k("")), U = r(() => l.chartFilter && l.chartFilter.options ? l.chartFilter.options.map((e) => ({
|
|
14224
14274
|
label: e.label,
|
|
14225
14275
|
value: e.value
|
|
14226
|
-
})) : []),
|
|
14276
|
+
})) : []), oe = r(() => {
|
|
14227
14277
|
let e = j.value[0];
|
|
14228
14278
|
return e ? Us(M.value.find((t) => t.field === e)) : !1;
|
|
14229
|
-
}),
|
|
14279
|
+
}), se = r(() => {
|
|
14230
14280
|
if (w.value) return (j.value.length > 1 ? [
|
|
14231
14281
|
"bar_stacked",
|
|
14232
14282
|
"line",
|
|
@@ -14255,13 +14305,13 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14255
14305
|
}
|
|
14256
14306
|
w.value = e[0];
|
|
14257
14307
|
});
|
|
14258
|
-
let
|
|
14308
|
+
let J = (e, t) => {
|
|
14259
14309
|
for (let n of e) {
|
|
14260
14310
|
if (n.id === t) return n;
|
|
14261
|
-
let e = n.children ?
|
|
14311
|
+
let e = n.children ? J(n.children, t) : void 0;
|
|
14262
14312
|
if (e) return e;
|
|
14263
14313
|
}
|
|
14264
|
-
},
|
|
14314
|
+
}, ce = (e) => e.flatMap((e) => e.children?.length ? ce(e.children) : e), le = (e) => {
|
|
14265
14315
|
switch (e) {
|
|
14266
14316
|
case "y-axis": return "Select Y Axis metric";
|
|
14267
14317
|
case "secondary-y-axis": return "Select Metric Overlay";
|
|
@@ -14270,42 +14320,42 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14270
14320
|
case "sort": return "Select Chart Sort";
|
|
14271
14321
|
default: return;
|
|
14272
14322
|
}
|
|
14273
|
-
},
|
|
14323
|
+
}, Y = xu(), ue = (e) => e === "secondary-y-axis" ? "metric-overlay" : e, X = (e, t, n = "select") => {
|
|
14274
14324
|
if (!t) return;
|
|
14275
|
-
let r = Z.value.find((t) => t.value === e), i = r?.availableOptions ?
|
|
14325
|
+
let r = Z.value.find((t) => t.value === e), i = r?.availableOptions ? J(r.availableOptions, t) : void 0;
|
|
14276
14326
|
Su("chart_option_selected", {
|
|
14277
|
-
panel:
|
|
14327
|
+
panel: ue(e),
|
|
14278
14328
|
selected_value: i?.text ?? t,
|
|
14279
14329
|
selected_value_id: t,
|
|
14280
14330
|
action: n
|
|
14281
|
-
},
|
|
14282
|
-
},
|
|
14331
|
+
}, Y());
|
|
14332
|
+
}, de = (e, t) => {
|
|
14283
14333
|
let n = new Set(e.activeOptionIds);
|
|
14284
14334
|
e.updateSelectedOptions?.(t), Cu(() => {
|
|
14285
|
-
for (let r of t) n.has(r.id) ||
|
|
14335
|
+
for (let r of t) n.has(r.id) || X(e.value, r.id);
|
|
14286
14336
|
});
|
|
14287
14337
|
}, fe = (e, t) => {
|
|
14288
|
-
e.updateSelectedOption?.(t?.id || ""), Cu(() =>
|
|
14338
|
+
e.updateSelectedOption?.(t?.id || ""), Cu(() => X(e.value, t?.id));
|
|
14289
14339
|
}, pe = (e, t) => {
|
|
14290
14340
|
let n = t.option;
|
|
14291
14341
|
if (e.isMultiSelect) {
|
|
14292
14342
|
let t = new Set(e.activeOptionIds ?? []), r = new Set(t);
|
|
14293
|
-
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(
|
|
14343
|
+
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) || Cu(() => X(e.value, n.id));
|
|
14294
14344
|
return;
|
|
14295
14345
|
}
|
|
14296
|
-
e.updateSelectedOption?.(n.id), Cu(() =>
|
|
14346
|
+
e.updateSelectedOption?.(n.id), Cu(() => X(e.value, n.id));
|
|
14297
14347
|
}, me = (e, t) => {
|
|
14298
14348
|
let n = e.activeOptions?.value ?? [];
|
|
14299
14349
|
e.activeOptions && (e.activeOptions.value = t), Cu(() => {
|
|
14300
14350
|
let r = n.map((e) => e.id), i = t.map((e) => e.id), a = new Set(r), o = new Set(i);
|
|
14301
|
-
for (let n of t) a.has(n.id) ||
|
|
14302
|
-
for (let t of n) o.has(t.id) ||
|
|
14351
|
+
for (let n of t) a.has(n.id) || X(e.value, n.id, "select");
|
|
14352
|
+
for (let t of n) o.has(t.id) || X(e.value, t.id, "deselect");
|
|
14303
14353
|
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") && Su("chart_option_selected", {
|
|
14304
|
-
panel:
|
|
14354
|
+
panel: ue(e.value),
|
|
14305
14355
|
selected_value: t.map((e) => e.text).join(", "),
|
|
14306
14356
|
selected_value_id: i.join(","),
|
|
14307
14357
|
action: "reorder"
|
|
14308
|
-
},
|
|
14358
|
+
}, Y());
|
|
14309
14359
|
});
|
|
14310
14360
|
}, he = (e, t) => `chart-series-agg-func:${encodeURIComponent(e)}:${encodeURIComponent(t)}`, ge = (e) => `chart-series-agg-func-group:${encodeURIComponent(e)}`, _e = r(() => w.value?.id === "line" ? l.percentOfFocusViewYKey : void 0), ve = (e, t, n) => {
|
|
14311
14361
|
let r = !!e && t === e;
|
|
@@ -14368,11 +14418,11 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14368
14418
|
}), xe = (e, t, n) => {
|
|
14369
14419
|
if (!n) return;
|
|
14370
14420
|
let r = t.find((e) => e.value === n || e.aggFuncOptions?.some((e) => e.seriesValue === n));
|
|
14371
|
-
if (!r?.aggFuncOptions?.length || !r.columnField) return
|
|
14421
|
+
if (!r?.aggFuncOptions?.length || !r.columnField) return J(e, n);
|
|
14372
14422
|
let i = r.aggFuncOptions.find((e) => e.aggFunc === r.activeAggFunc) ?? r.aggFuncOptions.find((e) => e.seriesValue === n) ?? r.aggFuncOptions[0];
|
|
14373
|
-
return i ?
|
|
14423
|
+
return i ? J(e, he(r.columnField, i.aggFunc)) : void 0;
|
|
14374
14424
|
}, Se = (e, t) => {
|
|
14375
|
-
let n =
|
|
14425
|
+
let n = J(e, t), r = n?.context;
|
|
14376
14426
|
return {
|
|
14377
14427
|
aggFunc: r?.aggFunc,
|
|
14378
14428
|
columnField: r?.columnField,
|
|
@@ -14439,8 +14489,8 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14439
14489
|
allowDeselect: !0,
|
|
14440
14490
|
availableOptions: O.value,
|
|
14441
14491
|
currentOption: O.value.find((e) => e.id === E.value?.id),
|
|
14442
|
-
disabled:
|
|
14443
|
-
disabledReason:
|
|
14492
|
+
disabled: oe.value || !se.value,
|
|
14493
|
+
disabledReason: oe.value ? "Dates are always sorted oldest to newest" : "Sorting is not available for this chart type",
|
|
14444
14494
|
updateSelectedOption: (e) => {
|
|
14445
14495
|
let t = O.value.find((t) => t.id === e);
|
|
14446
14496
|
if (!t || !E) {
|
|
@@ -14530,7 +14580,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14530
14580
|
icon: e.icon,
|
|
14531
14581
|
disabled: e.disabled,
|
|
14532
14582
|
hoverTitle: e.disabledReason,
|
|
14533
|
-
rumActionName:
|
|
14583
|
+
rumActionName: le(e.value),
|
|
14534
14584
|
popoverRole: e.isSortableList ? "dialog" : "menu",
|
|
14535
14585
|
children: e.availableOptions,
|
|
14536
14586
|
config: {
|
|
@@ -14551,11 +14601,11 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14551
14601
|
if (!t?.isMultiSelect) return;
|
|
14552
14602
|
let n = new Set(t.activeOptionIds ?? []);
|
|
14553
14603
|
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))), Cu(() => {
|
|
14554
|
-
for (let r of e) n.has(r) ||
|
|
14604
|
+
for (let r of e) n.has(r) || X(t.value, r);
|
|
14555
14605
|
});
|
|
14556
14606
|
}, Le = (e) => {
|
|
14557
14607
|
let t = Q.value;
|
|
14558
|
-
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Cu(() =>
|
|
14608
|
+
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Cu(() => X(t.value, e.id)));
|
|
14559
14609
|
}, Re = (e) => {
|
|
14560
14610
|
let t = Q.value;
|
|
14561
14611
|
return !t || t.isMultiSelect ? null : t.currentOption?.id === e.id ? !0 : null;
|
|
@@ -14596,7 +14646,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14596
14646
|
"aria-label": `${Q.value.label} options`,
|
|
14597
14647
|
class: "pv-chart-config-popover pv-inset-square-8",
|
|
14598
14648
|
role: "dialog",
|
|
14599
|
-
onKeydown: K(
|
|
14649
|
+
onKeydown: K(q(n, ["stop"]), ["esc"])
|
|
14600
14650
|
}, [r[6] ||= s("p", {
|
|
14601
14651
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
14602
14652
|
style: {
|
|
@@ -14629,7 +14679,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14629
14679
|
readOnly: e.readOnly,
|
|
14630
14680
|
childrenDisplay: "popover",
|
|
14631
14681
|
itemClass: "pv-chart-option pv-flex",
|
|
14632
|
-
onKeydown: K(
|
|
14682
|
+
onKeydown: K(q(n, ["stop"]), ["esc"]),
|
|
14633
14683
|
onHandleSelected: r[2] ||= (e) => pe(Q.value, e)
|
|
14634
14684
|
}, null, 8, [
|
|
14635
14685
|
"id",
|
|
@@ -14662,7 +14712,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14662
14712
|
id: `pv-chart-config-${t.value}`,
|
|
14663
14713
|
key: t.value,
|
|
14664
14714
|
"data-active": S.value === t.value ? !0 : null,
|
|
14665
|
-
"data-dd-action-name":
|
|
14715
|
+
"data-dd-action-name": le(t.value),
|
|
14666
14716
|
onMouseenter: (e) => t.disabled ? null : Be(t.value),
|
|
14667
14717
|
onClick: (e) => t.disabled ? null : Be(t.value)
|
|
14668
14718
|
}, [u(da, {
|
|
@@ -14706,12 +14756,12 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14706
14756
|
label: n.label,
|
|
14707
14757
|
prefixLabel: n.prefixLabel,
|
|
14708
14758
|
modelValue: n.availableOptions.filter((e) => n.activeOptionIds.has(e.id)),
|
|
14709
|
-
"onUpdate:modelValue": (e) =>
|
|
14759
|
+
"onUpdate:modelValue": (e) => de(n, e),
|
|
14710
14760
|
options: n.availableOptions,
|
|
14711
14761
|
disableSearchInput: !0,
|
|
14712
14762
|
disabled: n.disabled || e.readOnly,
|
|
14713
14763
|
optionsVariant: "checkbox",
|
|
14714
|
-
rumActionName:
|
|
14764
|
+
rumActionName: le(n.value)
|
|
14715
14765
|
}, null, 8, [
|
|
14716
14766
|
"label",
|
|
14717
14767
|
"prefixLabel",
|
|
@@ -14732,7 +14782,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14732
14782
|
disabled: n.disabled || e.readOnly,
|
|
14733
14783
|
optionsVariant: "icon",
|
|
14734
14784
|
childrenDisplay: f.value ? "popover" : "inline",
|
|
14735
|
-
rumActionName:
|
|
14785
|
+
rumActionName: le(n.value)
|
|
14736
14786
|
}, null, 8, [
|
|
14737
14787
|
"label",
|
|
14738
14788
|
"prefixLabel",
|
|
@@ -15269,7 +15319,7 @@ var jm = { style: {
|
|
|
15269
15319
|
value: t
|
|
15270
15320
|
};
|
|
15271
15321
|
});
|
|
15272
|
-
}),
|
|
15322
|
+
}), q = r(() => d.enableCombinedChartConfigPanel && d.enableNestedChartConfigPanel ? K.value.reduce((e, t) => e + (t.aggFuncOptions?.length || 1), 0) : K.value.length), oe = r(() => {
|
|
15273
15323
|
let e = h.value?.availableAggFuncColumns || [], t = new Set(R.value);
|
|
15274
15324
|
return e.filter((e) => Ls(e)).map((e) => {
|
|
15275
15325
|
let n = ne(e), r = e.field || "";
|
|
@@ -15286,7 +15336,7 @@ var jm = { style: {
|
|
|
15286
15336
|
value: Rs(r, n, t)
|
|
15287
15337
|
};
|
|
15288
15338
|
});
|
|
15289
|
-
}),
|
|
15339
|
+
}), se = (e, t) => e.find((e) => e.value === t || e.aggFuncOptions?.some((e) => e.seriesValue === t)), J = r(() => (h.value?.availableAggFuncColumns || []).filter((e) => {
|
|
15290
15340
|
let t = Ts(e);
|
|
15291
15341
|
return t.chartOnSecondaryAxes === !0 && t.hideFromCharting === !0;
|
|
15292
15342
|
}).map((e) => {
|
|
@@ -15297,22 +15347,22 @@ var jm = { style: {
|
|
|
15297
15347
|
formatter: n.valueFormatter,
|
|
15298
15348
|
dataType: n.context?.dataType
|
|
15299
15349
|
};
|
|
15300
|
-
})),
|
|
15301
|
-
O(wu,
|
|
15302
|
-
let
|
|
15350
|
+
})), ce = d.filterStore || vf();
|
|
15351
|
+
O(wu, ce);
|
|
15352
|
+
let le = hd({
|
|
15303
15353
|
focusType: d.initialFocusData?.focusType,
|
|
15304
15354
|
focuses: d.initialFocusData?.focuses || [],
|
|
15305
15355
|
focusRequired: d.focusRequired
|
|
15306
15356
|
}, d.allFieldsAreFocusable);
|
|
15307
|
-
O(Tu,
|
|
15308
|
-
let { setFilterSelectedValues:
|
|
15309
|
-
O(Fu,
|
|
15310
|
-
let
|
|
15357
|
+
O(Tu, le);
|
|
15358
|
+
let { setFilterSelectedValues: Y } = ce, ue = k(!1);
|
|
15359
|
+
O(Fu, ue);
|
|
15360
|
+
let X = k(d.isTableGrouped), de = (e) => {
|
|
15311
15361
|
p("table-overlay-change", e);
|
|
15312
|
-
}, fe = r(() => dn.value ? !1 : !!(d.emptyChartFilterRenderer && d.requireFiltersToShowData &&
|
|
15362
|
+
}, fe = r(() => dn.value ? !1 : !!(d.emptyChartFilterRenderer && d.requireFiltersToShowData && ce.filterModelEmpty.value)), pe = r(() => le?.computedFocusType.value || null), me = r(() => le?.computedFocuses.value || []), he = (e) => {
|
|
15313
15363
|
H.value || (V.value = Object.fromEntries(e.getValueColumns().map((e) => [e.getColId(), e.getAggFunc()]).filter((e) => typeof e[1] == "string")));
|
|
15314
15364
|
}, ge = k(null), _e = (e) => {
|
|
15315
|
-
m.value = e.api, he(e.api), !
|
|
15365
|
+
m.value = e.api, he(e.api), !X.value && !H.value && m.value?.setRowGroupColumns([]), d.tableConfigOptions?.enableColumnConfiguration && (ge.value = e.api.getAllGridColumns().map((e) => e.getColId())), Et(e.api), p("grid-ready", e);
|
|
15316
15366
|
}, ve = (e) => {
|
|
15317
15367
|
ge.value = e.orderedColIds, p("chart-state-changed", {
|
|
15318
15368
|
api: m.value,
|
|
@@ -15334,8 +15384,8 @@ var jm = { style: {
|
|
|
15334
15384
|
oldState: { orderedColIds: ge.value }
|
|
15335
15385
|
}), ge.value = t;
|
|
15336
15386
|
}, be = (e) => {
|
|
15337
|
-
let t =
|
|
15338
|
-
he(e.api), t?.columnField && Ve.value && (Ve.value =
|
|
15387
|
+
let t = se(oe.value, Ve.value), n = He.value.map((e) => se(oe.value, e)?.columnField).filter((e) => !!e);
|
|
15388
|
+
he(e.api), t?.columnField && Ve.value && (Ve.value = oe.value.find((e) => e.columnField === t.columnField)?.value), n.length > 0 && (He.value = n.map((e) => oe.value.find((t) => t.columnField === e)?.value).filter((e) => !!e)), Je.value = 0, Et(e.api), p("column-value-changed", e);
|
|
15339
15389
|
}, xe = (e) => {
|
|
15340
15390
|
let t = m.value;
|
|
15341
15391
|
if (H.value) {
|
|
@@ -15354,7 +15404,7 @@ var jm = { style: {
|
|
|
15354
15404
|
}, Ce = (e) => {
|
|
15355
15405
|
if (H.value) return;
|
|
15356
15406
|
let t = R.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
15357
|
-
if (
|
|
15407
|
+
if (X.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
15358
15408
|
let t = Fe.value;
|
|
15359
15409
|
if (n.length > Ie.value) {
|
|
15360
15410
|
let t = n.slice(0, Ie.value);
|
|
@@ -15364,10 +15414,10 @@ var jm = { style: {
|
|
|
15364
15414
|
}
|
|
15365
15415
|
p("column-row-group-changed", e);
|
|
15366
15416
|
}, we = async (e) => {
|
|
15367
|
-
Je.value = 0, Et(e.api),
|
|
15417
|
+
Je.value = 0, Et(e.api), ue.value && p("filter-changed", e);
|
|
15368
15418
|
};
|
|
15369
15419
|
W(() => R.value, () => {
|
|
15370
|
-
if (!H.value) if (
|
|
15420
|
+
if (!H.value) if (X.value) {
|
|
15371
15421
|
if (!m.value) return;
|
|
15372
15422
|
let e = m.value.getRowGroupColumns().map((e) => e.getColId());
|
|
15373
15423
|
JSON.stringify(e) !== JSON.stringify(R.value) && v(() => {
|
|
@@ -15378,7 +15428,7 @@ var jm = { style: {
|
|
|
15378
15428
|
});
|
|
15379
15429
|
if (!d.allFieldsAreFocusable) {
|
|
15380
15430
|
let e = Fe.value.supportsFocusView && B.value || null;
|
|
15381
|
-
|
|
15431
|
+
le.setFocusType(e);
|
|
15382
15432
|
}
|
|
15383
15433
|
m.value && (Je.value = 0, Et(m.value));
|
|
15384
15434
|
});
|
|
@@ -15436,20 +15486,20 @@ var jm = { style: {
|
|
|
15436
15486
|
text: "Descending",
|
|
15437
15487
|
id: "desc",
|
|
15438
15488
|
icon: "arrow-down-narrow-wide"
|
|
15439
|
-
}]), ze = k([]), Be = k([]), $ = k(d.yKey), Ve = k(
|
|
15489
|
+
}]), ze = k([]), Be = k([]), $ = k(d.yKey), Ve = k(oe.value[0]?.value), He = k([]), Ue = r(() => d.multiSelectMetricOverlay === !0), We = r(() => d.suppressMetricOverlays ? [] : Ue.value ? He.value : Ve.value ? [Ve.value] : []);
|
|
15440
15490
|
W(() => d.lockedRowGroupOptions.map((e) => e.id), (e, t) => {
|
|
15441
15491
|
let n = e ?? [], r = (t ?? []).filter((e) => !n.includes(e)), i = R.value.filter((e) => !r.includes(e));
|
|
15442
15492
|
n.every((e) => i.includes(e)) && i.length === R.value.length || (R.value = [...n, ...i.filter((e) => !n.includes(e))].slice(0, Math.max(Ie.value, n.length)));
|
|
15443
15493
|
});
|
|
15444
15494
|
let Ge = !1;
|
|
15445
|
-
W(
|
|
15495
|
+
W(oe, (e) => {
|
|
15446
15496
|
if (Ge || !Ue.value || !d.initialSecondaryYKeys?.length || e.length === 0) return;
|
|
15447
15497
|
Ge = !0;
|
|
15448
15498
|
let t = new Set(d.initialSecondaryYKeys);
|
|
15449
15499
|
He.value = e.filter((e) => t.has(e.columnField ?? "") || t.has(e.value)).map((e) => e.value);
|
|
15450
15500
|
}, { immediate: !0 });
|
|
15451
15501
|
let Ke = r(() => d.crosslineOverlayGroups ?? []), qe = k(null), Je = k(d.initialStackValuesPageIndex ?? 0), Ye = k(null), Xe = k(Re.value.find((e) => e.id === d.initialSort || "")), Ze = k("");
|
|
15452
|
-
O(Du, m), O(zu, Ze), O(ju, Le), O(Bu, R), O(Vu, Z), O(Hu, Re), O(Uu, Q), O(Wu, Xe), O(Gu, $), O(Ku, K), O(qu, Ve), O(Yu, He), O(Ju,
|
|
15502
|
+
O(Du, m), O(zu, Ze), O(ju, Le), O(Bu, R), O(Vu, Z), O(Hu, Re), O(Uu, Q), O(Wu, Xe), O(Gu, $), O(Ku, K), O(qu, Ve), O(Yu, He), O(Ju, oe), O(Xu, Ue), O($u, Ke), W(ke, (e) => {
|
|
15453
15503
|
e && Xe.value && (Xe.value = void 0);
|
|
15454
15504
|
}, { immediate: !0 });
|
|
15455
15505
|
let Qe = (e) => {
|
|
@@ -15473,7 +15523,7 @@ var jm = { style: {
|
|
|
15473
15523
|
}), W(Ze, (e) => {
|
|
15474
15524
|
if (d.chartFilter && m.value) {
|
|
15475
15525
|
let t = d.chartFilter.colId, n = d.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
15476
|
-
n && n.length === 0 && (n = null),
|
|
15526
|
+
n && n.length === 0 && (n = null), Y(t, n || []);
|
|
15477
15527
|
let r = Fd({
|
|
15478
15528
|
filterType: "set",
|
|
15479
15529
|
values: n
|
|
@@ -15483,7 +15533,7 @@ var jm = { style: {
|
|
|
15483
15533
|
});
|
|
15484
15534
|
}
|
|
15485
15535
|
});
|
|
15486
|
-
let et = (e) => e?.label ?? "", tt = r(() => et(
|
|
15536
|
+
let et = (e) => e?.label ?? "", tt = r(() => et(se(K.value, $.value))), nt = r(() => {
|
|
15487
15537
|
let e = Ye.value;
|
|
15488
15538
|
if (!e) return null;
|
|
15489
15539
|
let t = De(qe.value?.fieldName)?.headerName || "values", n = tt.value || "value", r = d.stackValuesPageSize || e.total, i = Je.value * r + 1;
|
|
@@ -15499,11 +15549,11 @@ var jm = { style: {
|
|
|
15499
15549
|
}), it = (e) => {
|
|
15500
15550
|
!m.value || e === Je.value || (Je.value = e, p("stack-values-page-changed", e), Et(m.value));
|
|
15501
15551
|
}, at = (e) => {
|
|
15502
|
-
let t =
|
|
15552
|
+
let t = se(oe.value, e);
|
|
15503
15553
|
if (De(t?.columnField ?? e)?.context?.chartOverlayOnPrimaryAxis !== !0) return !1;
|
|
15504
|
-
let n =
|
|
15554
|
+
let n = se(K.value, $.value);
|
|
15505
15555
|
return t?.dataType != null && t.dataType === n?.dataType;
|
|
15506
|
-
}, ot = r(() => We.value.filter((e) => !at(e))), st = r(() => We.value.filter((e) => at(e))), lt = r(() => ot.value.map((e) => et(
|
|
15556
|
+
}, ot = r(() => We.value.filter((e) => !at(e))), st = r(() => We.value.filter((e) => at(e))), lt = r(() => ot.value.map((e) => et(se(oe.value, e))).filter(Boolean).join(", ")), ut = r(() => Fe.value.isHorizontal === !0), dt = r(() => d.secondaryChartType === "line" && !ut.value ? "line" : "scatter"), ft = r(() => R.value.length > 1), pt = r(() => !Q.value || K.value.length === 0 ? [] : Fe.value.seriesFamily === "pie" ? Ct.value : St.value), mt = r(() => Q.value?.id === "histogram" ? !1 : d.showSeriesLabels), ht = r(() => Q.value?.id.includes("stacked")), gt = r(() => R.value.length > 1), yt = r(() => Q.value?.id === "histogram" && At.value && At.value.length > 0 && typeof At.value[0]?.bucketMin == "number" && typeof At.value[0]?.bucketMax == "number"), bt = "primary-series", xt = r(() => {
|
|
15507
15557
|
let e = ft.value ? qe.value?.fieldValues.length ?? 0 : 1, t = ft.value ? "grouped" : "flat";
|
|
15508
15558
|
return `${Q.value?.id ?? "chart"}-${t}-${e}`;
|
|
15509
15559
|
}), St = r(() => {
|
|
@@ -15577,7 +15627,7 @@ var jm = { style: {
|
|
|
15577
15627
|
}))), We.value.length > 0) {
|
|
15578
15628
|
let t = De(B.value)?.context?.metadataDisplayFields?.[0] || B.value, r = dt.value;
|
|
15579
15629
|
for (let i of We.value) {
|
|
15580
|
-
let a =
|
|
15630
|
+
let a = se(oe.value, i), o = et(a), s = e ? `${i}${vs}` : i, c = Cm(B.value, t, s, o, ut.value), l = (Wt.value ?? []).filter((e) => e[s] != null).length, u = {
|
|
15581
15631
|
type: r,
|
|
15582
15632
|
id: Ue.value ? `metric-overlay-${i}` : "metric-overlay",
|
|
15583
15633
|
data: Wt.value,
|
|
@@ -15716,7 +15766,7 @@ var jm = { style: {
|
|
|
15716
15766
|
newState: { chartCategoryFields: e },
|
|
15717
15767
|
oldState: { chartCategoryFields: t }
|
|
15718
15768
|
});
|
|
15719
|
-
}), W(
|
|
15769
|
+
}), W(X, (e, t) => {
|
|
15720
15770
|
p("chart-state-changed", {
|
|
15721
15771
|
api: m.value,
|
|
15722
15772
|
newState: { tableGrouped: e },
|
|
@@ -15727,10 +15777,10 @@ var jm = { style: {
|
|
|
15727
15777
|
}), W(() => d.initialFocusData, (e, t) => {
|
|
15728
15778
|
if (!(ct(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
15729
15779
|
if (!e?.focusType) {
|
|
15730
|
-
|
|
15780
|
+
le.setFocuses([]);
|
|
15731
15781
|
return;
|
|
15732
15782
|
}
|
|
15733
|
-
|
|
15783
|
+
le.setFocusType(e?.focusType), le.setFocuses(e?.focuses ?? []);
|
|
15734
15784
|
}
|
|
15735
15785
|
}, { deep: !0 });
|
|
15736
15786
|
let wt = () => {
|
|
@@ -15741,7 +15791,7 @@ var jm = { style: {
|
|
|
15741
15791
|
return;
|
|
15742
15792
|
}
|
|
15743
15793
|
if (t) {
|
|
15744
|
-
let n = d.metricOverlayWithRowGroups ? [...
|
|
15794
|
+
let n = d.metricOverlayWithRowGroups ? [...J.value, ...oe.value] : J.value, { stackedData: r, uniqueFieldValues: i, totalStackValueCount: a, stackValuesPageCount: o, stackValuesPageIndex: s } = Xs(e, B.value, t, Dt.value, n, $.value, d.stackValuesPageSize, Je.value);
|
|
15745
15795
|
Be.value = r, qe.value = {
|
|
15746
15796
|
fieldName: t,
|
|
15747
15797
|
fieldValues: i
|
|
@@ -15753,9 +15803,9 @@ var jm = { style: {
|
|
|
15753
15803
|
ze.value = e;
|
|
15754
15804
|
}, Et = (e) => {
|
|
15755
15805
|
let t = ++I.value, n = R.value.length;
|
|
15756
|
-
if (wt(), F.value = !1, n === 0 || K.value.length === 0 || d.requireFiltersToShowData &&
|
|
15806
|
+
if (wt(), F.value = !1, n === 0 || K.value.length === 0 || d.requireFiltersToShowData && ce.filterModelEmpty.value) return;
|
|
15757
15807
|
if (d.serverSideChartHandler) {
|
|
15758
|
-
let e =
|
|
15808
|
+
let e = ce.filterModel.value, n = m.value?.getColumnDefs() || [];
|
|
15759
15809
|
if (e === null && d.initialGridState) {
|
|
15760
15810
|
let t = Rd(d.initialGridState, n, d.enableAdvancedFilter);
|
|
15761
15811
|
e = (d.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
@@ -15800,7 +15850,7 @@ var jm = { style: {
|
|
|
15800
15850
|
} : null;
|
|
15801
15851
|
} else Be.value = [], qe.value = null, Ye.value = null;
|
|
15802
15852
|
}, Dt = r(() => {
|
|
15803
|
-
let e = K.value, t =
|
|
15853
|
+
let e = K.value, t = oe.value;
|
|
15804
15854
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
15805
15855
|
}), Ot = (e) => {
|
|
15806
15856
|
let t = { [e.field]: e.key };
|
|
@@ -15948,7 +15998,7 @@ var jm = { style: {
|
|
|
15948
15998
|
chartDataEmpty: un.value,
|
|
15949
15999
|
missingFocusText: d.missingFocusText,
|
|
15950
16000
|
yAxisName: tt.value,
|
|
15951
|
-
yAxisOptionCount:
|
|
16001
|
+
yAxisOptionCount: q.value
|
|
15952
16002
|
})), _n = r(() => R.value.length > 0 && (dn.value || d.focusRequired && me.value.length === 0) && !d.missingFocusText), vn = r(() => dn.value || fe.value || !d.isLoading && pn.value !== ""), yn = r(() => {
|
|
15953
16003
|
let e = {};
|
|
15954
16004
|
e.overlays = { noData: { text: "" } };
|
|
@@ -16026,7 +16076,7 @@ var jm = { style: {
|
|
|
16026
16076
|
}).filter((e) => e !== null)
|
|
16027
16077
|
});
|
|
16028
16078
|
}
|
|
16029
|
-
let s = ot.value.length > 0, c = ot.value.map((e) =>
|
|
16079
|
+
let s = ot.value.length > 0, c = ot.value.map((e) => se(oe.value, e)?.secondaryAxisMax).filter((e) => typeof e == "number"), l = s && c.length > 0 ? Math.max(...c) : void 0, u = s && Number.isFinite(nn.value) && nn.value < 0, f = s && Number.isFinite(rn.value) && rn.value < 0, p = u || f, m = s ? zs(Math.max(Zt.value, $t.value), 5) : 0, h = s ? l ?? zs(Qt.value, 5) : 0, g = s && !p && m > 0 && h > 0, _ = g && d.fitPrimaryAxisToLineData && Q.value?.id === "line" ? Vs(Math.min(tn.value.min, en.value), Math.max(tn.value.max, $t.value), 5) : null;
|
|
16030
16080
|
if (o.push({
|
|
16031
16081
|
type: "number",
|
|
16032
16082
|
keys: r,
|
|
@@ -16091,7 +16141,7 @@ var jm = { style: {
|
|
|
16091
16141
|
}), bn = r(() => F.value || d.isLoading && (!At.value || At.value.length === 0)), xn = r(() => dn.value || !fe.value && !d.isLoading && pn.value !== ""), Sn = (e) => {
|
|
16092
16142
|
C.value = e, p("chart-collapsed", e);
|
|
16093
16143
|
}, Cn = (e) => {
|
|
16094
|
-
H.value || m.value && (m.value.setRowGroupColumns(e ? R.value : []),
|
|
16144
|
+
H.value || m.value && (m.value.setRowGroupColumns(e ? R.value : []), X.value = e);
|
|
16095
16145
|
};
|
|
16096
16146
|
function wn(e) {
|
|
16097
16147
|
return e?.hydrate ? h.value?.getFilterValueSelectedMetadataMap({ hydrate: !0 }) : h.value?.getFilterValueSelectedMetadataMap();
|
|
@@ -16107,7 +16157,7 @@ var jm = { style: {
|
|
|
16107
16157
|
}), S(() => {
|
|
16108
16158
|
if (d.initialGridState) {
|
|
16109
16159
|
let e = d.initialGridState.rowGroup?.groupColIds || [];
|
|
16110
|
-
R.value = e, !d.allFieldsAreFocusable && e.length > 0 &&
|
|
16160
|
+
R.value = e, !d.allFieldsAreFocusable && e.length > 0 && le.setFocusType(e[0]);
|
|
16111
16161
|
}
|
|
16112
16162
|
}), T(async () => {
|
|
16113
16163
|
await v(), E.value = d.filterPanelAboveChart;
|
|
@@ -16272,7 +16322,7 @@ var jm = { style: {
|
|
|
16272
16322
|
pivot: H.value,
|
|
16273
16323
|
filterTeleportLocation: E.value ? `#${w}` : void 0,
|
|
16274
16324
|
wrapHorizontalFilters: d.wrapHorizontalFilters,
|
|
16275
|
-
pagination: e.pagination || !
|
|
16325
|
+
pagination: e.pagination || !X.value,
|
|
16276
16326
|
onColumnRowGroupChanged: Ce,
|
|
16277
16327
|
onColumnValueChanged: be,
|
|
16278
16328
|
onGridReady: _e,
|
|
@@ -16287,16 +16337,16 @@ var jm = { style: {
|
|
|
16287
16337
|
}), {
|
|
16288
16338
|
"top-slot": G(() => [e.enableGroupingToggle && !H.value ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(qp, {
|
|
16289
16339
|
key: 0,
|
|
16290
|
-
groupedModeEnabled:
|
|
16340
|
+
groupedModeEnabled: X.value,
|
|
16291
16341
|
tableConfigOptions: d.tableConfigOptions,
|
|
16292
16342
|
onToggleGroup: Cn,
|
|
16293
|
-
onTableOverlayChange:
|
|
16343
|
+
onTableOverlayChange: de,
|
|
16294
16344
|
onColumnConfigChange: ve
|
|
16295
16345
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (D(), i(Qn, {
|
|
16296
16346
|
key: 1,
|
|
16297
|
-
leftIcon:
|
|
16298
|
-
label:
|
|
16299
|
-
onClick: r[5] ||= (e) => Cn(!
|
|
16347
|
+
leftIcon: X.value ? "ungroup" : "group",
|
|
16348
|
+
label: X.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
16349
|
+
onClick: r[5] ||= (e) => Cn(!X.value),
|
|
16300
16350
|
variant: "secondary",
|
|
16301
16351
|
size: "lg"
|
|
16302
16352
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), j(n.$slots, "top-slot")]),
|