@turquoisehealth/pit-viper 2.267.0 → 2.268.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/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-header-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 +24 -5
- 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-header/pv-header.js +38 -32
- 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
|
}
|
|
@@ -8136,7 +8152,7 @@ var Bc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Vc =
|
|
|
8136
8152
|
t = t.host ? t.host.parentNode : t.parentNode;
|
|
8137
8153
|
}
|
|
8138
8154
|
return null;
|
|
8139
|
-
}, f = r(() => c.value?.parentElement ?? null), { height: p, width: m } =
|
|
8155
|
+
}, f = r(() => c.value?.parentElement ?? null), { height: p, width: m } = ue(f), { height: h, width: g } = fe({
|
|
8140
8156
|
initialWidth: 0,
|
|
8141
8157
|
initialHeight: 0
|
|
8142
8158
|
}), y = () => {
|
|
@@ -8316,7 +8332,7 @@ var Bc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Vc =
|
|
|
8316
8332
|
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 = () => {
|
|
8317
8333
|
l?.value?.removeAttribute("open"), m.value = !1;
|
|
8318
8334
|
}, g = () => {
|
|
8319
|
-
l.value &&
|
|
8335
|
+
l.value && oe(l.value, () => {
|
|
8320
8336
|
m.value && (c("click-outside"), h());
|
|
8321
8337
|
}, { ignore: [".pv-click-outside-ignore"] });
|
|
8322
8338
|
};
|
|
@@ -8324,7 +8340,7 @@ var Bc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Vc =
|
|
|
8324
8340
|
m.value && l?.value?.setAttribute("open", "true"), r.closeOnClickOutside && g();
|
|
8325
8341
|
}), W(() => m.value, () => {
|
|
8326
8342
|
m.value ? l?.value?.setAttribute("open", "true") : l?.value?.removeAttribute("open");
|
|
8327
|
-
}),
|
|
8343
|
+
}), se("Escape", () => {
|
|
8328
8344
|
l.value && m.value && h();
|
|
8329
8345
|
}), (n, c) => (D(), o("div", {
|
|
8330
8346
|
class: y(["pv-drawer pv-surface", { "pv-resizable": e.resizable }]),
|
|
@@ -8577,7 +8593,7 @@ var el = {
|
|
|
8577
8593
|
return to(c.options, t) + e;
|
|
8578
8594
|
}), E = r(() => H.value.length > 0 ? !0 : c.enableCascadeSelection && L.value?.length ? L.value.some((e) => e.state === "selected") : !1), k = (e) => {
|
|
8579
8595
|
g("see-more", e ?? {});
|
|
8580
|
-
}, M = re("searchInputRef"), [N, F] =
|
|
8596
|
+
}, 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) => {
|
|
8581
8597
|
H.value = e, B.value || (I.value = e, L.value = C());
|
|
8582
8598
|
}, ne = () => {
|
|
8583
8599
|
B.value && (I.value = H.value, L.value = C());
|
|
@@ -8607,9 +8623,9 @@ var el = {
|
|
|
8607
8623
|
set: (e) => {
|
|
8608
8624
|
te(e);
|
|
8609
8625
|
}
|
|
8610
|
-
}),
|
|
8626
|
+
}), q = () => {
|
|
8611
8627
|
R.value = "", N.value = !1;
|
|
8612
|
-
},
|
|
8628
|
+
}, oe = r(() => {
|
|
8613
8629
|
let e = c.size === "lg" ? 24 : 30;
|
|
8614
8630
|
return c.overlayTrigger ? -e : void 0;
|
|
8615
8631
|
});
|
|
@@ -8629,26 +8645,26 @@ var el = {
|
|
|
8629
8645
|
c.overlayTrigger && !c.disableSearchInput && M.value?.input?.focus(), g("dropdown-open");
|
|
8630
8646
|
})) : (ie(), g("dropdown-closed"));
|
|
8631
8647
|
});
|
|
8632
|
-
let
|
|
8648
|
+
let J = r(() => {
|
|
8633
8649
|
if (R.value === "") return c.options;
|
|
8634
8650
|
let e = R.value.toLocaleLowerCase();
|
|
8635
8651
|
return c.enableCascadeSelection ? ro(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
8636
|
-
}),
|
|
8652
|
+
}), ce = () => {
|
|
8637
8653
|
if (c.enableCascadeSelection) {
|
|
8638
8654
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
8639
8655
|
for (let r of n) Qa(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
8640
8656
|
};
|
|
8641
|
-
t(
|
|
8657
|
+
t(J.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
8642
8658
|
}
|
|
8643
|
-
let e = c.enableCascadeSelection ? $a(
|
|
8659
|
+
let e = c.enableCascadeSelection ? $a(J.value) : J.value;
|
|
8644
8660
|
g("select-all", e.length), te(e);
|
|
8645
|
-
},
|
|
8661
|
+
}, le = () => {
|
|
8646
8662
|
g("clear-all", H.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), te([]);
|
|
8647
|
-
},
|
|
8648
|
-
ie(),
|
|
8649
|
-
},
|
|
8650
|
-
ne(),
|
|
8651
|
-
},
|
|
8663
|
+
}, Y = () => {
|
|
8664
|
+
ie(), q();
|
|
8665
|
+
}, ue = () => {
|
|
8666
|
+
ne(), q();
|
|
8667
|
+
}, X = r(() => {
|
|
8652
8668
|
if (!c.groupings) return;
|
|
8653
8669
|
let e = /* @__PURE__ */ new Map();
|
|
8654
8670
|
c.groupings.forEach((t) => {
|
|
@@ -8666,17 +8682,18 @@ var el = {
|
|
|
8666
8682
|
searchInput: R.value,
|
|
8667
8683
|
slotContext: c.slotContext,
|
|
8668
8684
|
isOpen: N.value,
|
|
8669
|
-
isLoading: c.isLoading
|
|
8685
|
+
isLoading: c.isLoading,
|
|
8686
|
+
filteredOptionCount: J.value.length
|
|
8670
8687
|
})), 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(() => {
|
|
8671
8688
|
let e = ge.value?.getRootNode();
|
|
8672
8689
|
return e instanceof ShadowRoot ? e.host : null;
|
|
8673
8690
|
}), { present: ve } = ra("header", { host: _e }), { present: ye } = ra("no-results", { host: _e }), { present: be } = ra("footer", { host: _e });
|
|
8674
|
-
return
|
|
8675
|
-
N.value &&
|
|
8691
|
+
return se("Escape", () => {
|
|
8692
|
+
N.value && q();
|
|
8676
8693
|
}), (n, r) => (D(), i(la, _({
|
|
8677
8694
|
modelValue: z(N),
|
|
8678
8695
|
"onUpdate:modelValue": r[4] ||= (e) => h(N) ? N.value = e : null
|
|
8679
|
-
}, e.popoverProperties, { offset:
|
|
8696
|
+
}, e.popoverProperties, { offset: oe.value }), {
|
|
8680
8697
|
trigger: G(() => [u(qa, {
|
|
8681
8698
|
ref: "select-button-trigger-ref",
|
|
8682
8699
|
variant: e.variant,
|
|
@@ -8694,7 +8711,7 @@ var el = {
|
|
|
8694
8711
|
"counter-style": e.counterStyle,
|
|
8695
8712
|
"selected-items": H.value,
|
|
8696
8713
|
"data-dd-action-name": me.value,
|
|
8697
|
-
onHandleClear:
|
|
8714
|
+
onHandleClear: le,
|
|
8698
8715
|
onHandleToggleDropdown: r[0] ||= (e) => z(F)()
|
|
8699
8716
|
}, null, 8, [
|
|
8700
8717
|
"variant",
|
|
@@ -8735,7 +8752,7 @@ var el = {
|
|
|
8735
8752
|
placeholder: e.searchPlaceholder
|
|
8736
8753
|
}, null, 8, ["model-value", "placeholder"])], 8, nl)),
|
|
8737
8754
|
n.$slots.header || z(ve) ? (D(), o("div", rl, [j(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
8738
|
-
|
|
8755
|
+
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 }, [
|
|
8739
8756
|
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", il, P(t), 1)),
|
|
8740
8757
|
u(Ko, {
|
|
8741
8758
|
selectedItems: K.value,
|
|
@@ -8749,7 +8766,7 @@ var el = {
|
|
|
8749
8766
|
isLoading: e.isLoading,
|
|
8750
8767
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
8751
8768
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
8752
|
-
hasMoreOptions: s ===
|
|
8769
|
+
hasMoreOptions: s === X.value.length - 1 && w.value && !e.isLoading,
|
|
8753
8770
|
onSeeMore: k
|
|
8754
8771
|
}, null, 8, [
|
|
8755
8772
|
"selectedItems",
|
|
@@ -8763,12 +8780,12 @@ var el = {
|
|
|
8763
8780
|
"enableCascadeSelection",
|
|
8764
8781
|
"hasMoreOptions"
|
|
8765
8782
|
]),
|
|
8766
|
-
|
|
8783
|
+
X.value && s !== X.value.length - 1 ? (D(), o("div", al)) : a("", !0)
|
|
8767
8784
|
]))), 128)) : (D(), i(Ko, {
|
|
8768
8785
|
key: 1,
|
|
8769
8786
|
selectedItems: K.value,
|
|
8770
8787
|
"onUpdate:selectedItems": r[3] ||= (e) => K.value = e,
|
|
8771
|
-
options:
|
|
8788
|
+
options: J.value,
|
|
8772
8789
|
config: l.value,
|
|
8773
8790
|
singleSelect: e.singleSelect,
|
|
8774
8791
|
queryText: e.highlightSearchText ? R.value : null,
|
|
@@ -8789,7 +8806,7 @@ var el = {
|
|
|
8789
8806
|
"isSeeMoreLoading",
|
|
8790
8807
|
"hasMoreOptions"
|
|
8791
8808
|
]))], 64)) : a("", !0),
|
|
8792
|
-
e.isLoading ? (D(), o("div", ol, [u(Ot, { variant: "dark" }), e.loadingText ? (D(), o("span", sl, P(e.loadingText), 1)) : a("", !0)])) :
|
|
8809
|
+
e.isLoading ? (D(), o("div", ol, [u(Ot, { variant: "dark" }), e.loadingText ? (D(), o("span", sl, 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),
|
|
8793
8810
|
z(be) || e.menuActionsVariant ? (D(), o("div", {
|
|
8794
8811
|
key: 5,
|
|
8795
8812
|
class: y(["pv-sticky pv-surface pv-border-top pv-inset-square-8", { "pv-flow-8": e.footerPosition === "below-actions" }]),
|
|
@@ -8804,10 +8821,10 @@ var el = {
|
|
|
8804
8821
|
variant: e.menuActionsVariant,
|
|
8805
8822
|
disabled: e.isLoading,
|
|
8806
8823
|
rumFilterName: e.rumFilterName,
|
|
8807
|
-
onHandleClearAll:
|
|
8808
|
-
onHandleSelectAll:
|
|
8809
|
-
onHandleCancel:
|
|
8810
|
-
onHandleConfirm:
|
|
8824
|
+
onHandleClearAll: le,
|
|
8825
|
+
onHandleSelectAll: ce,
|
|
8826
|
+
onHandleCancel: Y,
|
|
8827
|
+
onHandleConfirm: ue
|
|
8811
8828
|
}, null, 8, [
|
|
8812
8829
|
"variant",
|
|
8813
8830
|
"disabled",
|
|
@@ -9587,21 +9604,21 @@ var Ol = "__pv_filter_panel_scoped_value__", kl = (e) => typeof e == "object" &&
|
|
|
9587
9604
|
width: "100%",
|
|
9588
9605
|
maxWidth: "100%",
|
|
9589
9606
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
9590
|
-
}, f = re("search-input"), p = V(e, "searchText"), m = V(e, "query"), h = V(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = lu(), 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(() =>
|
|
9607
|
+
}, f = re("search-input"), p = V(e, "searchText"), m = V(e, "query"), h = V(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = lu(), 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 = () => {
|
|
9591
9608
|
m.value = null, p.value = "", R.value = null, T.value = !1;
|
|
9592
9609
|
};
|
|
9593
|
-
|
|
9594
|
-
let t =
|
|
9610
|
+
se("Enter", (e) => {
|
|
9611
|
+
let t = ue.value;
|
|
9595
9612
|
if (t) {
|
|
9596
9613
|
e.preventDefault(), he(t);
|
|
9597
9614
|
return;
|
|
9598
9615
|
}
|
|
9599
9616
|
n.enableCustomOptionsInput && p.value.trim() && K();
|
|
9600
|
-
}, { target: f }),
|
|
9601
|
-
|
|
9602
|
-
}, { target: f }),
|
|
9603
|
-
C.value && (C.value = !1,
|
|
9604
|
-
}, { target: f }),
|
|
9617
|
+
}, { target: f }), se(["ArrowDown", "ArrowUp"], (e) => {
|
|
9618
|
+
ce.value.length !== 0 && (e.preventDefault(), C.value = !0, fe(e.key === "ArrowDown" ? 1 : -1));
|
|
9619
|
+
}, { target: f }), se("Escape", () => {
|
|
9620
|
+
C.value && (C.value = !1, Y.value = -1);
|
|
9621
|
+
}, { target: f }), se("Backspace", () => {
|
|
9605
9622
|
if (p.value !== "") return;
|
|
9606
9623
|
let e = m.value?.queryTerms;
|
|
9607
9624
|
if (!e || e.length === 0) return;
|
|
@@ -9618,58 +9635,58 @@ var Ol = "__pv_filter_panel_scoped_value__", kl = (e) => typeof e == "object" &&
|
|
|
9618
9635
|
text: p.value,
|
|
9619
9636
|
queryTerm: { queryText: p.value }
|
|
9620
9637
|
}), ve());
|
|
9621
|
-
},
|
|
9638
|
+
}, q = (e) => {
|
|
9622
9639
|
let t = e?.queryDisplayField || e?.queryField;
|
|
9623
9640
|
if (t) return e?.exactMatch ? t : `Search in ${t}`;
|
|
9624
|
-
},
|
|
9641
|
+
}, oe = r(() => {
|
|
9625
9642
|
if (!h.value || h.value.length === 0) return [];
|
|
9626
9643
|
let e = h.value;
|
|
9627
9644
|
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) => ({
|
|
9628
9645
|
...e,
|
|
9629
|
-
subText: e.subText ??
|
|
9646
|
+
subText: e.subText ?? q(e.queryTerm),
|
|
9630
9647
|
searchText: p.value,
|
|
9631
9648
|
context: e.queryTerm
|
|
9632
9649
|
}));
|
|
9633
|
-
}),
|
|
9650
|
+
}), J = r(() => {
|
|
9634
9651
|
let e = /* @__PURE__ */ new Map();
|
|
9635
|
-
for (let t of
|
|
9652
|
+
for (let t of oe.value) {
|
|
9636
9653
|
let n = t.groupingLabel ?? "", r = e.get(n);
|
|
9637
9654
|
r ? r.push(t) : e.set(n, [t]);
|
|
9638
9655
|
}
|
|
9639
9656
|
return Array.from(e.entries());
|
|
9640
|
-
}),
|
|
9657
|
+
}), ce = r(() => J.value.flatMap(([, e]) => e)), le = r(() => new Map(ce.value.map((e, t) => [e, t]))), Y = k(-1), ue = r(() => {
|
|
9641
9658
|
if (!C.value) return null;
|
|
9642
|
-
let e =
|
|
9659
|
+
let e = ce.value[Y.value] ?? null;
|
|
9643
9660
|
return e?.disabled ? null : e;
|
|
9644
|
-
}),
|
|
9661
|
+
}), X = r(() => ue.value ? ee(Y.value) : void 0), de = (e) => {
|
|
9645
9662
|
v(() => {
|
|
9646
9663
|
document.getElementById(ee(e))?.scrollIntoView?.({ block: "nearest" });
|
|
9647
9664
|
});
|
|
9648
9665
|
}, fe = (e) => {
|
|
9649
|
-
let t =
|
|
9666
|
+
let t = ce.value, n = t.length;
|
|
9650
9667
|
if (n === 0) return;
|
|
9651
|
-
let r =
|
|
9668
|
+
let r = Y.value === -1 ? e > 0 ? -1 : 0 : Y.value;
|
|
9652
9669
|
for (let i = 1; i <= n; i++) {
|
|
9653
9670
|
let a = ((r + e * i) % n + n) % n;
|
|
9654
9671
|
if (!t[a].disabled) {
|
|
9655
|
-
|
|
9672
|
+
Y.value = a, de(a);
|
|
9656
9673
|
return;
|
|
9657
9674
|
}
|
|
9658
9675
|
}
|
|
9659
9676
|
}, pe = (e) => {
|
|
9660
|
-
e.disabled || (
|
|
9677
|
+
e.disabled || (Y.value = le.value.get(e) ?? -1);
|
|
9661
9678
|
};
|
|
9662
|
-
W([
|
|
9663
|
-
|
|
9679
|
+
W([ce, p], () => {
|
|
9680
|
+
Y.value = -1;
|
|
9664
9681
|
}), W([
|
|
9665
|
-
|
|
9682
|
+
oe,
|
|
9666
9683
|
p,
|
|
9667
9684
|
() => n.optionsLoading
|
|
9668
9685
|
], ([e, t, n]) => {
|
|
9669
9686
|
t && t.length > 0 && (e.length > 0 || n || O.value) ? C.value = !0 : (!t || t.length === 0) && (C.value = !1);
|
|
9670
9687
|
}, { immediate: !0 });
|
|
9671
9688
|
let me = () => {
|
|
9672
|
-
n.enableCustomOptionsInput && K(),
|
|
9689
|
+
n.enableCustomOptionsInput && K(), Y.value = -1, C.value = !1, w.value = !1, T.value = !1;
|
|
9673
9690
|
}, he = (e) => {
|
|
9674
9691
|
try {
|
|
9675
9692
|
let t = {
|
|
@@ -9730,7 +9747,7 @@ var Ol = "__pv_filter_panel_scoped_value__", kl = (e) => typeof e == "object" &&
|
|
|
9730
9747
|
"aria-autocomplete": "list",
|
|
9731
9748
|
"aria-expanded": I.value && C.value,
|
|
9732
9749
|
"aria-controls": N,
|
|
9733
|
-
"aria-activedescendant":
|
|
9750
|
+
"aria-activedescendant": X.value,
|
|
9734
9751
|
disabled: e.disabled,
|
|
9735
9752
|
placeholder: L.value,
|
|
9736
9753
|
"data-invalid": B.value ? "true" : void 0,
|
|
@@ -9755,18 +9772,18 @@ var Ol = "__pv_filter_panel_scoped_value__", kl = (e) => typeof e == "object" &&
|
|
|
9755
9772
|
listId: N,
|
|
9756
9773
|
listRole: "listbox"
|
|
9757
9774
|
}, c({
|
|
9758
|
-
default: G(() => [e.optionsLoading ? (D(), o("div", gu, [u(Ot, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [
|
|
9775
|
+
default: G(() => [e.optionsLoading ? (D(), o("div", gu, [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", {
|
|
9759
9776
|
key: 0,
|
|
9760
9777
|
id: F(r),
|
|
9761
9778
|
role: "presentation",
|
|
9762
9779
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
9763
9780
|
}, P(e), 9, pu)) : a("", !0), (D(!0), o(t, null, A(n, (t) => (D(), o("li", {
|
|
9764
9781
|
key: `${e}-${t.id}`,
|
|
9765
|
-
id: ee(
|
|
9782
|
+
id: ee(le.value.get(t) ?? -1),
|
|
9766
9783
|
role: "option",
|
|
9767
|
-
"aria-selected": t ===
|
|
9784
|
+
"aria-selected": t === ue.value,
|
|
9768
9785
|
"aria-describedby": e ? F(r) : void 0,
|
|
9769
|
-
class: y({ "pv-query-builder-option-active": t ===
|
|
9786
|
+
class: y({ "pv-query-builder-option-active": t === ue.value }),
|
|
9770
9787
|
onMouseenter: (e) => pe(t)
|
|
9771
9788
|
}, [u(Fo, _({ ref_for: !0 }, t, {
|
|
9772
9789
|
config: l,
|
|
@@ -9994,7 +10011,7 @@ var ud = /* @__PURE__ */ cn(sd, [["render", ld]]), dd = ["innerHTML"], fd = { ke
|
|
|
9994
10011
|
__name: "GroupedCellRenderer",
|
|
9995
10012
|
props: { params: {} },
|
|
9996
10013
|
setup(e) {
|
|
9997
|
-
let n = e, i = m(ju, k([])), c = m(Mu, k(null)), d = m(Nu, k({})), f =
|
|
10014
|
+
let n = e, i = m(ju, k([])), c = m(Mu, k(null)), d = m(Nu, 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(() => {
|
|
9998
10015
|
let e = f.value.data;
|
|
9999
10016
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
10000
10017
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -10658,14 +10675,14 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10658
10675
|
return;
|
|
10659
10676
|
}
|
|
10660
10677
|
M.value[e] = t - 1;
|
|
10661
|
-
}, K = /* @__PURE__ */ new Set(),
|
|
10662
|
-
let n = t ?
|
|
10678
|
+
}, K = /* @__PURE__ */ new Set(), q = /* @__PURE__ */ new Set(), oe = (e, t = !1) => {
|
|
10679
|
+
let n = t ? q : K;
|
|
10663
10680
|
e.forEach((e) => n.add(e));
|
|
10664
|
-
},
|
|
10665
|
-
|
|
10666
|
-
},
|
|
10667
|
-
|
|
10668
|
-
},
|
|
10681
|
+
}, se = () => {
|
|
10682
|
+
q.forEach((e) => K.add(e)), q.clear();
|
|
10683
|
+
}, J = () => {
|
|
10684
|
+
q.clear();
|
|
10685
|
+
}, ce = (e) => {
|
|
10669
10686
|
let t = new Set(e);
|
|
10670
10687
|
for (let n of e) {
|
|
10671
10688
|
let e = A.value[n] || [];
|
|
@@ -10673,9 +10690,9 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10673
10690
|
}
|
|
10674
10691
|
for (let e of t) w.value[e] = !1;
|
|
10675
10692
|
for (let e of j.value) t.has(e) || (w.value[e] = !0);
|
|
10676
|
-
},
|
|
10693
|
+
}, le = e.initStagedFilterSelections, Y = e.clearStagedFilterSelections, ue = (e) => N.value[e] || [], X = (e, t) => {
|
|
10677
10694
|
N.value[e] = t;
|
|
10678
|
-
},
|
|
10695
|
+
}, de = (e) => {
|
|
10679
10696
|
t.value = e;
|
|
10680
10697
|
}, fe = (e) => {
|
|
10681
10698
|
(!e || t.value === e) && (t.value = null);
|
|
@@ -10712,7 +10729,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10712
10729
|
};
|
|
10713
10730
|
return pe(n, (e, t) => {
|
|
10714
10731
|
let n = ye(e, t);
|
|
10715
|
-
K.forEach((e) => n.add(e)), K.clear(), n.size > 0 &&
|
|
10732
|
+
K.forEach((e) => n.add(e)), K.clear(), n.size > 0 && ce(n);
|
|
10716
10733
|
}, {
|
|
10717
10734
|
deep: !0,
|
|
10718
10735
|
debounce: 200,
|
|
@@ -10751,21 +10768,21 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10751
10768
|
refreshFiltersInBackground: E,
|
|
10752
10769
|
stageFilterChangesUntilDropdownCloses: D,
|
|
10753
10770
|
filterSearchMinLength: O,
|
|
10754
|
-
markOtherFieldsStale:
|
|
10755
|
-
noteFilterModelChange:
|
|
10756
|
-
commitStagedFilterModelChanges:
|
|
10757
|
-
clearStagedFilterModelChanges:
|
|
10771
|
+
markOtherFieldsStale: ce,
|
|
10772
|
+
noteFilterModelChange: oe,
|
|
10773
|
+
commitStagedFilterModelChanges: se,
|
|
10774
|
+
clearStagedFilterModelChanges: J,
|
|
10758
10775
|
aggregateFieldMap: A,
|
|
10759
10776
|
registerAggregateField: W,
|
|
10760
10777
|
registeredFilterFields: j,
|
|
10761
10778
|
registerFilterField: G,
|
|
10762
10779
|
unregisterFilterField: ae,
|
|
10763
10780
|
stagedSelectedValuesMap: N,
|
|
10764
|
-
initStagedSelectedValues:
|
|
10765
|
-
clearStagedSelectedValues:
|
|
10766
|
-
getStagedSelectedValues:
|
|
10767
|
-
setStagedSelectedValues:
|
|
10768
|
-
registerFilterController:
|
|
10781
|
+
initStagedSelectedValues: le,
|
|
10782
|
+
clearStagedSelectedValues: Y,
|
|
10783
|
+
getStagedSelectedValues: ue,
|
|
10784
|
+
setStagedSelectedValues: X,
|
|
10785
|
+
registerFilterController: de,
|
|
10769
10786
|
unregisterFilterController: fe,
|
|
10770
10787
|
getFilterModel: me,
|
|
10771
10788
|
applyFilterModel: he,
|
|
@@ -10783,27 +10800,27 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10783
10800
|
return e;
|
|
10784
10801
|
}, yf = (e) => {
|
|
10785
10802
|
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c = bu(), l = m(Eu, k(null)), u = _f(), { 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 } = hd(), re = m(Fu, k(!1)), ie = m(Pu, k(!1)), H = m(Xu, k(!1)), U = r({
|
|
10786
|
-
get: () =>
|
|
10803
|
+
get: () => de.value ? I(Y.value) : b(Y.value),
|
|
10787
10804
|
set: (e) => {
|
|
10788
|
-
|
|
10805
|
+
de.value ? L(Y.value, e) : C(Y.value, e);
|
|
10789
10806
|
}
|
|
10790
10807
|
}), G = r(() => {
|
|
10791
|
-
let e = w(
|
|
10808
|
+
let e = w(Y.value);
|
|
10792
10809
|
if (fe.value && he.value.length > 0) {
|
|
10793
10810
|
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));
|
|
10794
10811
|
return [...n, ...i];
|
|
10795
10812
|
}
|
|
10796
10813
|
return Be(e);
|
|
10797
|
-
}), ae = r(() => _.value[
|
|
10798
|
-
get: () => R.value[
|
|
10799
|
-
set: (e) => S(
|
|
10800
|
-
}),
|
|
10801
|
-
let e =
|
|
10814
|
+
}), 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({
|
|
10815
|
+
get: () => R.value[Y.value] ?? "",
|
|
10816
|
+
set: (e) => S(Y.value, e)
|
|
10817
|
+
}), ce = r(() => Ts(t.value).filterSearchMinLength ?? M.value), le = r(() => {
|
|
10818
|
+
let e = ce.value ?? 0, t = J.value?.length ?? 0;
|
|
10802
10819
|
return e > 0 && t > 0 && t < e;
|
|
10803
|
-
}),
|
|
10820
|
+
}), 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(() => {
|
|
10804
10821
|
let e = Ts(t.value).filterSearch;
|
|
10805
10822
|
return typeof e == "boolean" ? e : Ts(t.value).dataType !== ys.Boolean;
|
|
10806
|
-
}), 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(() =>
|
|
10823
|
+
}), 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) => {
|
|
10807
10824
|
let n = new Set(e), r = new Set(t);
|
|
10808
10825
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
10809
10826
|
}, Ne = k([]), Pe = k("[]"), Fe = r(() => G.value.length === 1 && G.value[0] === null && U.value.length === 0), Ie = (e = !1) => {
|
|
@@ -10811,9 +10828,9 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10811
10828
|
let n = [];
|
|
10812
10829
|
if (H.value && l.value) {
|
|
10813
10830
|
let e = l.value.getAdvancedFilterModel();
|
|
10814
|
-
n = rf(
|
|
10831
|
+
n = rf(Y.value, e);
|
|
10815
10832
|
} else n = Jd(t.value, p.value);
|
|
10816
|
-
e ? U.value = n : U.value = Array.from(new Set([...b(
|
|
10833
|
+
e ? U.value = n : U.value = Array.from(new Set([...b(Y.value), ...n]));
|
|
10817
10834
|
}, Le = (e) => {
|
|
10818
10835
|
let t = (n) => {
|
|
10819
10836
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
@@ -10828,15 +10845,15 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10828
10845
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
10829
10846
|
}), $ = async (e = !1, n = !1) => {
|
|
10830
10847
|
if (!l.value) return;
|
|
10831
|
-
let r = O.value[
|
|
10848
|
+
let r = O.value[Y.value] ?? !1, i = _.value[Y.value] !== !0, a = (w(Y.value) || []).length === 0, o = e && i && (r || n || a);
|
|
10832
10849
|
if (H.value) {
|
|
10833
10850
|
if (x.value && o) {
|
|
10834
10851
|
let e = await d(t.value, {
|
|
10835
10852
|
api: l.value,
|
|
10836
10853
|
filterModel: p.value ?? void 0,
|
|
10837
|
-
useStaged:
|
|
10854
|
+
useStaged: de.value
|
|
10838
10855
|
});
|
|
10839
|
-
D(
|
|
10856
|
+
D(Y.value, e), O.value[Y.value] = !1, Lt();
|
|
10840
10857
|
}
|
|
10841
10858
|
return;
|
|
10842
10859
|
}
|
|
@@ -10846,10 +10863,10 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10846
10863
|
s.refreshFilterValues();
|
|
10847
10864
|
return;
|
|
10848
10865
|
}
|
|
10849
|
-
D(
|
|
10866
|
+
D(Y.value, s.getFilterValues()), O.value[Y.value] = !1;
|
|
10850
10867
|
}
|
|
10851
10868
|
}, Ve = (e) => {
|
|
10852
|
-
let t = y(
|
|
10869
|
+
let t = y(Y.value, e);
|
|
10853
10870
|
return !t && Z.value && e && (t = st(e)), t;
|
|
10854
10871
|
}, 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) => {
|
|
10855
10872
|
if (!e || !t || e.label && e.rawValue == null && e.metadata?.rawValue == null) return e;
|
|
@@ -10875,16 +10892,16 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10875
10892
|
return i?.length ? t == null ? !0 : !i.some((e) => t.metadata?.[e] != null) : !1;
|
|
10876
10893
|
}
|
|
10877
10894
|
if (!Ts(t.value).metadataDisplayFields?.length) return !1;
|
|
10878
|
-
let r = y(
|
|
10895
|
+
let r = y(Y.value, e);
|
|
10879
10896
|
return r == null || r.label == null;
|
|
10880
|
-
}, Ye = (e) => Fe.value || y(
|
|
10897
|
+
}, 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) => $l({
|
|
10881
10898
|
fallbackSubText: n,
|
|
10882
10899
|
getDisplayName: Xe,
|
|
10883
10900
|
matchedField: e?.matchedField,
|
|
10884
10901
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
10885
10902
|
primaryText: r,
|
|
10886
10903
|
showPrefix: Ts(t.value).showSearchMatchSubTextPrefix !== !1
|
|
10887
|
-
}), Qe = r(() => Zl(
|
|
10904
|
+
}), Qe = r(() => Zl(Y.value, Ts(t.value).queryColIds, (e) => e === Y.value && X.value || Xe(e))), $e = (e) => {
|
|
10888
10905
|
if (!e.startsWith("__")) return { value: e };
|
|
10889
10906
|
let t = e.slice(2).split("__");
|
|
10890
10907
|
return t.length < 2 ? { value: e } : {
|
|
@@ -10894,7 +10911,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10894
10911
|
}, et = (e) => Wl(e, rt()), tt = (e) => {
|
|
10895
10912
|
let t = $e(e.value), n = { ...e };
|
|
10896
10913
|
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;
|
|
10897
|
-
}, nt = r(() => [...u.filterValueMap.value[
|
|
10914
|
+
}, nt = r(() => [...u.filterValueMap.value[Y.value] || [], ...u.filterValueSelectedMetadataMap.value[Y.value] || []].map((e) => e && tt(e))), rt = () => nt.value, it = (e, t) => {
|
|
10898
10915
|
for (let n of e) {
|
|
10899
10916
|
if (!n) continue;
|
|
10900
10917
|
if (t(n)) return n;
|
|
@@ -10946,14 +10963,14 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10946
10963
|
return r?.children?.length ? r : at(n, e.id) || (r && He(r) === Ns(t.value) ? r : ct(e.id) || r);
|
|
10947
10964
|
}, ut = (e) => {
|
|
10948
10965
|
if (!Z.value) return;
|
|
10949
|
-
let t = u.filterValueSelectedMetadataMap.value[
|
|
10966
|
+
let t = u.filterValueSelectedMetadataMap.value[Y.value] || [], n = /* @__PURE__ */ new Map();
|
|
10950
10967
|
for (let e of t) e && n.set(e.value, e);
|
|
10951
10968
|
for (let t of e) {
|
|
10952
10969
|
if (t.state !== "selected") continue;
|
|
10953
10970
|
let e = lt(t);
|
|
10954
10971
|
e && n.set(e.value, e);
|
|
10955
10972
|
}
|
|
10956
|
-
u.filterValueSelectedMetadataMap.value[
|
|
10973
|
+
u.filterValueSelectedMetadataMap.value[Y.value] = [...n.values()];
|
|
10957
10974
|
}, dt = () => {
|
|
10958
10975
|
let e = /* @__PURE__ */ new Set();
|
|
10959
10976
|
for (let t of Ne.value) {
|
|
@@ -10963,7 +10980,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10963
10980
|
}
|
|
10964
10981
|
return [...e].filter((e) => !G.value.includes(e));
|
|
10965
10982
|
}, ft = (e) => {
|
|
10966
|
-
let n = y(
|
|
10983
|
+
let n = y(Y.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = ye.value ? "suggestions" : null;
|
|
10967
10984
|
n?.isPreference && (i = "preferences");
|
|
10968
10985
|
let a = null, o = qe(e) || "", s = n?.matchedValue;
|
|
10969
10986
|
s ? a = Ze(n, n?.subText, o) : n?.subText ? a = n.subText : He(n) && Z.value && !r && (a = Xe(He(n)));
|
|
@@ -10991,9 +11008,9 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
10991
11008
|
let r = Math.max(n?.offset ?? 0, a), o = await u.filterStoreHandler.value({
|
|
10992
11009
|
api: l.value,
|
|
10993
11010
|
colDef: t.value,
|
|
10994
|
-
field:
|
|
11011
|
+
field: Y.value,
|
|
10995
11012
|
filterModel: p.value ?? void 0,
|
|
10996
|
-
query:
|
|
11013
|
+
query: J.value || void 0,
|
|
10997
11014
|
offset: r,
|
|
10998
11015
|
parentId: i,
|
|
10999
11016
|
reason: "child-load-more"
|
|
@@ -11023,7 +11040,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11023
11040
|
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Je(e)).map(ft);
|
|
11024
11041
|
}), mt = (e) => {
|
|
11025
11042
|
let t = e.children;
|
|
11026
|
-
t?.length && (t = t.filter((t) => !
|
|
11043
|
+
t?.length && (t = t.filter((t) => !se.value || ze(t, e.id)).map((e) => mt(e)));
|
|
11027
11044
|
let n = (e.children ?? []).some((t) => ze(t, e.id));
|
|
11028
11045
|
return {
|
|
11029
11046
|
...e,
|
|
@@ -11035,10 +11052,10 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11035
11052
|
};
|
|
11036
11053
|
}, ht = (e) => Z.value ? ze(e, null) : U.value.includes(e.id), gt = r(() => {
|
|
11037
11054
|
let e = pt.value;
|
|
11038
|
-
return
|
|
11055
|
+
return oe.value ? e.filter((e) => !se.value || ht(e)).map((e) => mt(e)) : e;
|
|
11039
11056
|
}), _t = r({
|
|
11040
11057
|
get: () => Z.value ? [] : U.value.map((e) => {
|
|
11041
|
-
let t = y(
|
|
11058
|
+
let t = y(Y.value, e), n = He(t), r = n ? Xe(n) : void 0;
|
|
11042
11059
|
return {
|
|
11043
11060
|
id: e,
|
|
11044
11061
|
text: qe(e),
|
|
@@ -11048,7 +11065,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11048
11065
|
}),
|
|
11049
11066
|
set: (e) => {
|
|
11050
11067
|
if (Z.value) {
|
|
11051
|
-
if (e.length === 0 && !fe.value && j.value && !
|
|
11068
|
+
if (e.length === 0 && !fe.value && j.value && !de.value) {
|
|
11052
11069
|
Pt([]);
|
|
11053
11070
|
return;
|
|
11054
11071
|
}
|
|
@@ -11065,25 +11082,25 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11065
11082
|
let e = new Set(t), r = new Set(n);
|
|
11066
11083
|
for (let t of r) e.has(t) || wt(t, "select", "click", r.size);
|
|
11067
11084
|
for (let t of e) r.has(t) || wt(t, "deselect", "click", r.size);
|
|
11068
|
-
}), U.value = n, (e.length === 0 && !fe.value || !j.value ||
|
|
11069
|
-
!U.value.includes(e) && ne.value ===
|
|
11085
|
+
}), U.value = n, (e.length === 0 && !fe.value || !j.value || de.value) && (yt(), te.value.forEach((e) => {
|
|
11086
|
+
!U.value.includes(e) && ne.value === Y.value && V(e);
|
|
11070
11087
|
})), i?.();
|
|
11071
11088
|
}
|
|
11072
11089
|
}), vt = (e) => {
|
|
11073
11090
|
let t = {};
|
|
11074
11091
|
for (let n of e) {
|
|
11075
11092
|
if (n === null) continue;
|
|
11076
|
-
let e = He(y(
|
|
11093
|
+
let e = He(y(Y.value, n)) || Y.value;
|
|
11077
11094
|
t[e] || (t[e] = []), t[e].push(n);
|
|
11078
11095
|
}
|
|
11079
11096
|
return t;
|
|
11080
11097
|
}, yt = async (e, n, r) => {
|
|
11081
11098
|
if (!l.value) return;
|
|
11082
11099
|
if (e !== void 0 && n !== void 0) {
|
|
11083
|
-
let r = e ||
|
|
11100
|
+
let r = e || Y.value, i = new Set([Y.value, r]), a = n;
|
|
11084
11101
|
if (H.value) {
|
|
11085
11102
|
let e = Fd(r, a || []);
|
|
11086
|
-
if (
|
|
11103
|
+
if (de.value) {
|
|
11087
11104
|
let t = h.value, n = tf(t, e, r);
|
|
11088
11105
|
N(i, !0), h.value = n;
|
|
11089
11106
|
return;
|
|
@@ -11094,7 +11111,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11094
11111
|
});
|
|
11095
11112
|
return;
|
|
11096
11113
|
}
|
|
11097
|
-
if (
|
|
11114
|
+
if (de.value) {
|
|
11098
11115
|
let e = await qd(l.value, t.value, a);
|
|
11099
11116
|
N(i, !0), h.value = {
|
|
11100
11117
|
...h.value,
|
|
@@ -11110,7 +11127,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11110
11127
|
}
|
|
11111
11128
|
let i = vt(U.value), o = Ts(t.value);
|
|
11112
11129
|
if (H.value) {
|
|
11113
|
-
let e =
|
|
11130
|
+
let e = de.value ? h.value : l.value.getAdvancedFilterModel(), n = e, s = /* @__PURE__ */ new Set();
|
|
11114
11131
|
if (Z.value) {
|
|
11115
11132
|
let e = Ms(t.value), r = [];
|
|
11116
11133
|
for (let t of e) {
|
|
@@ -11134,8 +11151,8 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11134
11151
|
} : e;
|
|
11135
11152
|
}
|
|
11136
11153
|
} else {
|
|
11137
|
-
let t = U.value.length > 0 ? U.value : null, r = Fd(
|
|
11138
|
-
n = tf(n, r,
|
|
11154
|
+
let t = U.value.length > 0 ? U.value : null, r = Fd(Y.value, t || []);
|
|
11155
|
+
n = tf(n, r, Y.value);
|
|
11139
11156
|
let i = !1;
|
|
11140
11157
|
if (a?.value) {
|
|
11141
11158
|
let e = o.filterGroup?.fields ?? [];
|
|
@@ -11147,11 +11164,11 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11147
11164
|
n = tf(n, r, t);
|
|
11148
11165
|
}
|
|
11149
11166
|
}
|
|
11150
|
-
let c = U.value.filter((e) => e !== null), l = rf(
|
|
11167
|
+
let c = U.value.filter((e) => e !== null), l = rf(Y.value, e), u = new Set(l), d = new Set(c);
|
|
11151
11168
|
if (!(u.size !== d.size || c.some((e) => !u.has(e))) && !i) return;
|
|
11152
11169
|
}
|
|
11153
11170
|
if (r?.skipIfUnchanged && ef(e, n)) return;
|
|
11154
|
-
if (N(Z.value ? Q() : new Set([
|
|
11171
|
+
if (N(Z.value ? Q() : new Set([Y.value, ...s]), de.value), de.value) h.value = n;
|
|
11155
11172
|
else {
|
|
11156
11173
|
let e = n;
|
|
11157
11174
|
v(() => {
|
|
@@ -11165,34 +11182,34 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11165
11182
|
let e = Jd(t.value, l.value.getFilterModel());
|
|
11166
11183
|
if (Me(U.value, e)) return;
|
|
11167
11184
|
}
|
|
11168
|
-
if (
|
|
11185
|
+
if (de.value) {
|
|
11169
11186
|
let e = await qd(l.value, t.value, s);
|
|
11170
|
-
N(new Set([
|
|
11187
|
+
N(new Set([Y.value]), !0), h.value = {
|
|
11171
11188
|
...h.value,
|
|
11172
|
-
[
|
|
11189
|
+
[Y.value]: e
|
|
11173
11190
|
};
|
|
11174
11191
|
return;
|
|
11175
11192
|
}
|
|
11176
11193
|
let c = await qd(l.value, t.value, s);
|
|
11177
|
-
N(new Set([
|
|
11194
|
+
N(new Set([Y.value])), l.value.setColumnFilterModel(Y.value, c).then(() => {
|
|
11178
11195
|
l.value && l.value.onFilterChanged();
|
|
11179
11196
|
});
|
|
11180
|
-
}, bt = r(() =>
|
|
11197
|
+
}, bt = r(() => de.value ? "all_filters_drawer" : "horizontal"), xt = !1, St = (e, t) => {
|
|
11181
11198
|
xt = !0;
|
|
11182
|
-
let n =
|
|
11199
|
+
let n = J.value || "";
|
|
11183
11200
|
Su(() => {
|
|
11184
11201
|
xu("filter_bulk_action", {
|
|
11185
|
-
filter_name:
|
|
11186
|
-
filter_field:
|
|
11202
|
+
filter_name: X.value,
|
|
11203
|
+
filter_field: Y.value,
|
|
11187
11204
|
action: e,
|
|
11188
11205
|
value_count: t,
|
|
11189
11206
|
location: bt.value,
|
|
11190
11207
|
search_query: n
|
|
11191
11208
|
}, c());
|
|
11192
11209
|
});
|
|
11193
|
-
}, Ct = (e) => !Z.value || e == null ?
|
|
11210
|
+
}, Ct = (e) => !Z.value || e == null ? Y.value : He(Ve(e)) || ($e(e).field ?? Y.value), wt = (e, t, n, r) => {
|
|
11194
11211
|
xu("filter_option_selected", {
|
|
11195
|
-
filter_name:
|
|
11212
|
+
filter_name: X.value,
|
|
11196
11213
|
filter_field: Ct(e),
|
|
11197
11214
|
selected_value: qe(e),
|
|
11198
11215
|
selected_value_id: e,
|
|
@@ -11200,7 +11217,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11200
11217
|
source: n,
|
|
11201
11218
|
current_selection_count: r,
|
|
11202
11219
|
location: bt.value,
|
|
11203
|
-
search_query:
|
|
11220
|
+
search_query: J.value || ""
|
|
11204
11221
|
}, c());
|
|
11205
11222
|
}, Tt = (e) => {
|
|
11206
11223
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
@@ -11233,7 +11250,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11233
11250
|
}), Ot = (e, n, r = "click") => {
|
|
11234
11251
|
let a = null;
|
|
11235
11252
|
if (Z.value && e) {
|
|
11236
|
-
let r = n || Ms(t.value)[0] ||
|
|
11253
|
+
let r = n || Ms(t.value)[0] || Y.value;
|
|
11237
11254
|
a = e.startsWith("__") ? e : ot(r, e) || e;
|
|
11238
11255
|
}
|
|
11239
11256
|
let o = e != null && (U.value.includes(e) || a != null && Le(a)), s = U.value.slice();
|
|
@@ -11247,7 +11264,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11247
11264
|
a != null && (Ne.value.find((e) => e.id === a) || (Ne.value = [...Ne.value, {
|
|
11248
11265
|
id: a,
|
|
11249
11266
|
state: "selected"
|
|
11250
|
-
}])), (!j.value ||
|
|
11267
|
+
}])), (!j.value || de.value) && (Z.value && e ? Pt(Ne.value) : n && n !== Y.value ? yt(n, [e]) : yt()), i?.();
|
|
11251
11268
|
}, kt = (e, n, r = "click") => {
|
|
11252
11269
|
let a = U.value.includes(e);
|
|
11253
11270
|
if (U.value = U.value.filter((t) => t !== e), e != null && a) {
|
|
@@ -11257,14 +11274,14 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11257
11274
|
});
|
|
11258
11275
|
}
|
|
11259
11276
|
if (Z.value && e) {
|
|
11260
|
-
let r = n || Ms(t.value)[0] ||
|
|
11277
|
+
let r = n || Ms(t.value)[0] || Y.value, i = e.startsWith("__") ? e : ot(r, e) || e;
|
|
11261
11278
|
Ne.value = Ne.value.filter((e) => e.id !== i);
|
|
11262
11279
|
}
|
|
11263
|
-
(!j.value ||
|
|
11280
|
+
(!j.value || de.value) && (Z.value && e ? Pt(Ne.value) : n && n !== Y.value ? yt(n, null) : yt()), i?.();
|
|
11264
11281
|
}, At = () => {
|
|
11265
|
-
he.value = Be(w(
|
|
11282
|
+
he.value = Be(w(Y.value)), fe.value = !0;
|
|
11266
11283
|
}, jt = () => {
|
|
11267
|
-
fe.value = !1, he.value = [],
|
|
11284
|
+
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 }));
|
|
11268
11285
|
}, Mt = async (e) => {
|
|
11269
11286
|
if (!l.value) return;
|
|
11270
11287
|
let n = G.value.length, r = !e.parentId;
|
|
@@ -11275,7 +11292,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11275
11292
|
filterModel: p.value ?? void 0,
|
|
11276
11293
|
offset: e.offset ?? n,
|
|
11277
11294
|
parentId: e.parentId,
|
|
11278
|
-
useStaged:
|
|
11295
|
+
useStaged: de.value
|
|
11279
11296
|
});
|
|
11280
11297
|
} finally {
|
|
11281
11298
|
r && (me.value = !1);
|
|
@@ -11290,16 +11307,16 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11290
11307
|
let r = JSON.stringify(e);
|
|
11291
11308
|
if (n?.skipIfUnchanged && r === Pe.value) return Ne.value = e, !1;
|
|
11292
11309
|
if (Ne.value = e, ut(e), Ms(t.value).length === 0) return !1;
|
|
11293
|
-
let a =
|
|
11310
|
+
let a = de.value ? h.value : l.value.getAdvancedFilterModel(), o = Nt(e, a);
|
|
11294
11311
|
if (n?.skipIfUnchanged && ef(a, o)) return Pe.value = r, !1;
|
|
11295
|
-
if (
|
|
11312
|
+
if (de.value) h.value = o;
|
|
11296
11313
|
else {
|
|
11297
11314
|
let e = o;
|
|
11298
11315
|
v(() => {
|
|
11299
11316
|
l.value?.setAdvancedFilterModel(e);
|
|
11300
11317
|
});
|
|
11301
11318
|
}
|
|
11302
|
-
return Pe.value = r, N(Q(),
|
|
11319
|
+
return Pe.value = r, N(Q(), de.value), i?.(), !0;
|
|
11303
11320
|
}, Ft = (e) => {
|
|
11304
11321
|
if (!Z.value || !Ms(t.value).length) return;
|
|
11305
11322
|
let n = Xl({
|
|
@@ -11315,11 +11332,11 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11315
11332
|
!Z.value || !H.value || It() && Ft(p.value);
|
|
11316
11333
|
};
|
|
11317
11334
|
W(Ne, (e) => {
|
|
11318
|
-
Z.value && (ut(e), !(j.value && !
|
|
11319
|
-
}, { deep: !0 }), W(() => O.value[
|
|
11320
|
-
!e || fe.value ||
|
|
11335
|
+
Z.value && (ut(e), !(j.value && !de.value) && Pt(e));
|
|
11336
|
+
}, { deep: !0 }), W(() => O.value[Y.value], (e) => {
|
|
11337
|
+
!e || fe.value || q.value || K.value && $(!0);
|
|
11321
11338
|
}), W(() => h.value, () => {
|
|
11322
|
-
if (
|
|
11339
|
+
if (de.value) {
|
|
11323
11340
|
if (H.value) {
|
|
11324
11341
|
let e = [], n = h.value;
|
|
11325
11342
|
if (Z.value) {
|
|
@@ -11328,20 +11345,20 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11328
11345
|
let r = rf(t, n);
|
|
11329
11346
|
e.push(...r);
|
|
11330
11347
|
}
|
|
11331
|
-
} else e = rf(
|
|
11348
|
+
} else e = rf(Y.value, n);
|
|
11332
11349
|
U.value = e;
|
|
11333
11350
|
return;
|
|
11334
11351
|
}
|
|
11335
|
-
|
|
11352
|
+
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.`);
|
|
11336
11353
|
}
|
|
11337
11354
|
}), W(() => p.value, () => {
|
|
11338
|
-
if (
|
|
11355
|
+
if (de.value) return;
|
|
11339
11356
|
if (Z.value) {
|
|
11340
11357
|
H.value && Ft(p.value);
|
|
11341
11358
|
return;
|
|
11342
11359
|
}
|
|
11343
11360
|
if (H.value) {
|
|
11344
|
-
let e = p.value, t = rf(
|
|
11361
|
+
let e = p.value, t = rf(Y.value, e);
|
|
11345
11362
|
Ie(U.value.some((e) => e !== null && !t.includes(e)));
|
|
11346
11363
|
return;
|
|
11347
11364
|
}
|
|
@@ -11350,15 +11367,15 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11350
11367
|
}, { deep: !0 }), W(() => g.value, () => {
|
|
11351
11368
|
U.value = [], Ne.value = [], Pe.value = "[]";
|
|
11352
11369
|
}), W(() => l.value, (e) => {
|
|
11353
|
-
e && x.value && !fe.value && (O.value[
|
|
11370
|
+
e && x.value && !fe.value && (O.value[Y.value] = !0);
|
|
11354
11371
|
}, { immediate: !0 }), W(() => ie.value, async () => {
|
|
11355
|
-
K.value && !
|
|
11372
|
+
K.value && !q.value && !fe.value && (de.value ? setTimeout(async () => {
|
|
11356
11373
|
fe.value || await $(!0);
|
|
11357
11374
|
}, 2e3) : await $(!0)), Ie();
|
|
11358
|
-
}), pe(() =>
|
|
11375
|
+
}), pe(() => J.value, async () => {
|
|
11359
11376
|
if (fe.value) {
|
|
11360
|
-
if (
|
|
11361
|
-
f(
|
|
11377
|
+
if (le.value) {
|
|
11378
|
+
f(Y.value);
|
|
11362
11379
|
return;
|
|
11363
11380
|
}
|
|
11364
11381
|
await $(!0, !0);
|
|
@@ -11370,16 +11387,16 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11370
11387
|
}, zt = (e) => {
|
|
11371
11388
|
Su(() => {
|
|
11372
11389
|
xu("filter_search", {
|
|
11373
|
-
filter_name:
|
|
11374
|
-
filter_field:
|
|
11390
|
+
filter_name: X.value,
|
|
11391
|
+
filter_field: Y.value,
|
|
11375
11392
|
query: e,
|
|
11376
11393
|
result_count: Rt(e),
|
|
11377
11394
|
location: bt.value
|
|
11378
11395
|
}, c());
|
|
11379
11396
|
});
|
|
11380
11397
|
}, Bt = null;
|
|
11381
|
-
return pe(() =>
|
|
11382
|
-
if (!e ||
|
|
11398
|
+
return pe(() => J.value, (e) => {
|
|
11399
|
+
if (!e || J.value !== e || le.value) {
|
|
11383
11400
|
Bt = null;
|
|
11384
11401
|
return;
|
|
11385
11402
|
}
|
|
@@ -11391,11 +11408,11 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11391
11408
|
}, { debounce: 500 }), W(() => ae.value, (e) => {
|
|
11392
11409
|
if (e || Bt == null) return;
|
|
11393
11410
|
let t = Bt;
|
|
11394
|
-
Bt = null,
|
|
11411
|
+
Bt = null, J.value === t && zt(t);
|
|
11395
11412
|
}), T(() => {
|
|
11396
|
-
P(
|
|
11413
|
+
P(Y.value);
|
|
11397
11414
|
let e = Ms(t.value);
|
|
11398
|
-
if (e.length && ee(
|
|
11415
|
+
if (e.length && ee(Y.value, e), Ie(), Z.value && H.value && Ft(p.value), o?.value && x.value && l.value) {
|
|
11399
11416
|
let e = Z.value || (Ts(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && H.value ? Ms(t.value).some((e) => rf(e, p.value).length > 0) : U.value.length > 0;
|
|
11400
11417
|
e && n && d(t.value, {
|
|
11401
11418
|
api: l.value,
|
|
@@ -11404,21 +11421,21 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11404
11421
|
}
|
|
11405
11422
|
Z.value || Ts(t.value).metadataDisplayFields?.length && U.value.some((e) => Je(e)) && $(!0, !0);
|
|
11406
11423
|
}), E(() => {
|
|
11407
|
-
F(
|
|
11424
|
+
F(Y.value), j.value && !de.value && (Z.value ? Pt(Ne.value, { skipIfUnchanged: !0 }) : yt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
11408
11425
|
}), {
|
|
11409
11426
|
selectedValues: U,
|
|
11410
11427
|
filterValues: G,
|
|
11411
11428
|
isLoading: ae,
|
|
11412
11429
|
isSeeMoreLoading: me,
|
|
11413
|
-
filterSearchText:
|
|
11414
|
-
filterSearchMinLength:
|
|
11415
|
-
belowFilterSearchMinLength:
|
|
11430
|
+
filterSearchText: J,
|
|
11431
|
+
filterSearchMinLength: ce,
|
|
11432
|
+
belowFilterSearchMinLength: le,
|
|
11416
11433
|
rowsLoading: re,
|
|
11417
11434
|
gridApi: l,
|
|
11418
|
-
filterField:
|
|
11419
|
-
filterType:
|
|
11420
|
-
filterDisplayName:
|
|
11421
|
-
isInFilterPanel:
|
|
11435
|
+
filterField: Y,
|
|
11436
|
+
filterType: ue,
|
|
11437
|
+
filterDisplayName: X,
|
|
11438
|
+
isInFilterPanel: de,
|
|
11422
11439
|
maxSelectableValues: _e,
|
|
11423
11440
|
isSingleSelect: ve,
|
|
11424
11441
|
selectionLimitReached: Oe,
|
|
@@ -11697,7 +11714,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11697
11714
|
"handle-settings-icon"
|
|
11698
11715
|
],
|
|
11699
11716
|
setup(e, { emit: n }) {
|
|
11700
|
-
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:
|
|
11717
|
+
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 } = yf({
|
|
11701
11718
|
filterColDef: L(d, "filterColDef"),
|
|
11702
11719
|
filterStyle: L(d, "filterStyle"),
|
|
11703
11720
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
@@ -11722,7 +11739,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11722
11739
|
return n && !Oe() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
11723
11740
|
},
|
|
11724
11741
|
action: (e) => {
|
|
11725
|
-
e && !C.value.includes(e.id) &&
|
|
11742
|
+
e && !C.value.includes(e.id) && X(e.id, e.context?.colField);
|
|
11726
11743
|
let t = e.context?.colField || F.value;
|
|
11727
11744
|
we(be.value ? ke(e) : e.id, t);
|
|
11728
11745
|
},
|
|
@@ -11734,7 +11751,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11734
11751
|
}), je = (e) => {
|
|
11735
11752
|
if (!e) return null;
|
|
11736
11753
|
if (!be.value) return e;
|
|
11737
|
-
let t =
|
|
11754
|
+
let t = le(e);
|
|
11738
11755
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
11739
11756
|
if (e.startsWith("__")) {
|
|
11740
11757
|
let t = e.slice(2).split("__");
|
|
@@ -11742,8 +11759,8 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11742
11759
|
}
|
|
11743
11760
|
return e;
|
|
11744
11761
|
}, Z = (e) => {
|
|
11745
|
-
|
|
11746
|
-
let t =
|
|
11762
|
+
de(e, void 0, "remove_chip");
|
|
11763
|
+
let t = le(e)?.colField || F.value, n = je(e);
|
|
11747
11764
|
Te(n, t) && Oe() && Ee(n);
|
|
11748
11765
|
}, Q = m(Xu, k(!1)), Me = r(() => !!Ts(d.filterColDef).filterGroup && Q.value), Ne = null, Pe = null, Fe = () => {
|
|
11749
11766
|
try {
|
|
@@ -11752,7 +11769,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11752
11769
|
return null;
|
|
11753
11770
|
}
|
|
11754
11771
|
}, Ie = () => {
|
|
11755
|
-
Ne = Date.now(), Pe = Fe(), me(),
|
|
11772
|
+
Ne = Date.now(), Pe = Fe(), me(), ue(!0);
|
|
11756
11773
|
}, Le = () => {
|
|
11757
11774
|
let e = Ne == null ? 0 : Date.now() - Ne;
|
|
11758
11775
|
Ne = null;
|
|
@@ -11772,11 +11789,11 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11772
11789
|
he(), f("filter-closed");
|
|
11773
11790
|
});
|
|
11774
11791
|
}, Re = (e) => {
|
|
11775
|
-
let t =
|
|
11792
|
+
let t = le(e)?.colField || F.value;
|
|
11776
11793
|
return Te(je(e), t);
|
|
11777
11794
|
}, ze = r(() => S.value > 0 ? !0 : be.value ? xe.value.length > 0 : C.value.length > 0);
|
|
11778
|
-
return (n, r) => (D(), o(t, null, [s("div", null, [z(R) && z(C).length > 0 ? (D(), o("ul", Tf, [(D(!0), o(t, null, A(z(C), (n) => (D(), o(t, { key: `${z(I)}-${n}` }, [z(
|
|
11779
|
-
label: z(
|
|
11795
|
+
return (n, r) => (D(), o(t, null, [s("div", null, [z(R) && z(C).length > 0 ? (D(), o("ul", Tf, [(D(!0), o(t, null, A(z(C), (n) => (D(), o(t, { key: `${z(I)}-${n}` }, [z(Y)(n) ? a("", !0) : (D(), o("li", Ef, [u(Oc, {
|
|
11796
|
+
label: z(ce)(n) || "",
|
|
11780
11797
|
showClear: !e.readOnly && (!Re(n) || z(Oe)()),
|
|
11781
11798
|
disabled: e.readOnly,
|
|
11782
11799
|
onHandleClose: (e) => Z(n)
|
|
@@ -11802,7 +11819,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11802
11819
|
counterPosition: !z(R) && ze.value ? void 0 : "none",
|
|
11803
11820
|
singleSelect: z(B),
|
|
11804
11821
|
menuActionsVariant: e.readOnly || z(B) ? null : "select-clear",
|
|
11805
|
-
footerPosition: z(
|
|
11822
|
+
footerPosition: z(q),
|
|
11806
11823
|
disableSearchInput: e.readOnly || !z(re),
|
|
11807
11824
|
searchPlaceholder: z(ie),
|
|
11808
11825
|
overlayTrigger: z(R),
|
|
@@ -11861,11 +11878,11 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11861
11878
|
"use-teleport": !0,
|
|
11862
11879
|
style: { "--max-width": "200px" }
|
|
11863
11880
|
}, c({
|
|
11864
|
-
trigger: G(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", z(
|
|
11881
|
+
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)]),
|
|
11865
11882
|
_: 2
|
|
11866
|
-
}, [z(
|
|
11883
|
+
}, [z(se) ? {
|
|
11867
11884
|
name: "content",
|
|
11868
|
-
fn: G(() => [l(P(z(
|
|
11885
|
+
fn: G(() => [l(P(z(se)), 1)]),
|
|
11869
11886
|
key: "0"
|
|
11870
11887
|
} : void 0]), 1024)])]),
|
|
11871
11888
|
_: 2
|
|
@@ -11903,11 +11920,11 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11903
11920
|
"use-teleport": !0,
|
|
11904
11921
|
style: { "--max-width": "200px" }
|
|
11905
11922
|
}, c({
|
|
11906
|
-
trigger: G(() => [s("li", Nf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", z(
|
|
11923
|
+
trigger: G(() => [s("li", Nf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", z(se) ? "pv-set-filter-suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
11907
11924
|
_: 2
|
|
11908
|
-
}, [z(
|
|
11925
|
+
}, [z(se) ? {
|
|
11909
11926
|
name: "content",
|
|
11910
|
-
fn: G(() => [l(P(z(
|
|
11927
|
+
fn: G(() => [l(P(z(se)), 1)]),
|
|
11911
11928
|
key: "0"
|
|
11912
11929
|
} : void 0]), 1024), (D(!0), o(t, null, A(z(te).filter((e) => e !== "" && e != null).slice(0, Pf), (e) => (D(), o("li", {
|
|
11913
11930
|
key: `${z(I)}-${e}-suggest`,
|
|
@@ -11918,8 +11935,8 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11918
11935
|
}
|
|
11919
11936
|
}, [u(z(zc), {
|
|
11920
11937
|
disabled: z(w),
|
|
11921
|
-
label: z(
|
|
11922
|
-
onHandleClick: (t) => z(
|
|
11938
|
+
label: z(ce)(e) || "",
|
|
11939
|
+
onHandleClick: (t) => z(X)(e, z(J)(z(F), e)?.colField)
|
|
11923
11940
|
}, null, 8, [
|
|
11924
11941
|
"disabled",
|
|
11925
11942
|
"label",
|
|
@@ -11984,7 +12001,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
11984
12001
|
let n = Ps(e) ? Ms(e) : [e.field || ""];
|
|
11985
12002
|
if (p.value) {
|
|
11986
12003
|
let e = /* @__PURE__ */ new Set();
|
|
11987
|
-
return
|
|
12004
|
+
return de(t, e), n.some((t) => e.has(t));
|
|
11988
12005
|
}
|
|
11989
12006
|
let r = t;
|
|
11990
12007
|
return n.some((e) => !!r[e]);
|
|
@@ -12000,51 +12017,51 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
12000
12017
|
}), re = r(() => {
|
|
12001
12018
|
let e = te.value, t = Math.max(0, h.maxHorizontalFilters), n = e.slice(0, t), r = f.value;
|
|
12002
12019
|
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];
|
|
12003
|
-
}), ie = r(() => !h.wrapHorizontalFilters && h.enableVerticalPanel), H = k(null), U = k(null), W = /* @__PURE__ */ new Map(), ae = k(!1), K = k(0),
|
|
12020
|
+
}), 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 = () => {
|
|
12004
12021
|
let e = H.value;
|
|
12005
12022
|
if (!e) return;
|
|
12006
|
-
ae.value = e.getClientRects().length > 0, K.value = e.clientWidth,
|
|
12023
|
+
ae.value = e.getClientRects().length > 0, K.value = e.clientWidth, q.value = parseFloat(getComputedStyle(e).columnGap) || 0, oe.value = U.value?.getBoundingClientRect().width ?? 0;
|
|
12007
12024
|
let t = {};
|
|
12008
12025
|
W.forEach((e, n) => {
|
|
12009
12026
|
t[n] = e.getBoundingClientRect().width;
|
|
12010
|
-
}),
|
|
12011
|
-
},
|
|
12012
|
-
|
|
12013
|
-
|
|
12027
|
+
}), se.value = t;
|
|
12028
|
+
}, Y = () => {
|
|
12029
|
+
ce === null && (ce = requestAnimationFrame(() => {
|
|
12030
|
+
ce = null, le();
|
|
12014
12031
|
}));
|
|
12015
|
-
},
|
|
12032
|
+
}, ue = (e, t) => {
|
|
12016
12033
|
let n = W.get(e);
|
|
12017
|
-
n !== t && (n && (
|
|
12034
|
+
n !== t && (n && (J?.unobserve(n), W.delete(e)), t instanceof HTMLElement && (W.set(e, t), J?.observe(t)));
|
|
12018
12035
|
};
|
|
12019
12036
|
T(() => {
|
|
12020
|
-
typeof ResizeObserver > "u" || (
|
|
12037
|
+
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)));
|
|
12021
12038
|
}), C(() => {
|
|
12022
|
-
|
|
12039
|
+
J?.disconnect(), J = null, ce !== null && cancelAnimationFrame(ce), ce = null;
|
|
12023
12040
|
});
|
|
12024
|
-
let
|
|
12041
|
+
let X = r(() => {
|
|
12025
12042
|
let e = re.value.map((e) => e.field || ""), t = f.value ? e.indexOf(f.value.field || "") : -1;
|
|
12026
12043
|
if (!ie.value || !ae.value) return new Set(e);
|
|
12027
12044
|
let n = Lf({
|
|
12028
|
-
itemWidths: e.map((e) =>
|
|
12045
|
+
itemWidths: e.map((e) => se.value[e] ?? 0),
|
|
12029
12046
|
containerWidth: K.value,
|
|
12030
|
-
trailingWidth:
|
|
12031
|
-
gap:
|
|
12047
|
+
trailingWidth: oe.value,
|
|
12048
|
+
gap: q.value,
|
|
12032
12049
|
pinnedIndex: t >= 0 ? t : void 0
|
|
12033
12050
|
});
|
|
12034
12051
|
return new Set(e.filter((e, t) => n.has(t)));
|
|
12035
|
-
}),
|
|
12052
|
+
}), de = (e, t) => {
|
|
12036
12053
|
if (!e || typeof e != "object") return;
|
|
12037
12054
|
let n = e;
|
|
12038
12055
|
if (n.filterType && n.filterType !== "join" && n.colId) {
|
|
12039
12056
|
t.add(n.colId);
|
|
12040
12057
|
return;
|
|
12041
12058
|
}
|
|
12042
|
-
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) =>
|
|
12059
|
+
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => de(e, t));
|
|
12043
12060
|
}, fe = r(() => {
|
|
12044
12061
|
let e = v.value;
|
|
12045
12062
|
if (p.value && c.value) {
|
|
12046
12063
|
let t = /* @__PURE__ */ new Set();
|
|
12047
|
-
return
|
|
12064
|
+
return de(e, t), t.size;
|
|
12048
12065
|
}
|
|
12049
12066
|
let t = v.value || {};
|
|
12050
12067
|
return Object.keys(t).length;
|
|
@@ -12084,7 +12101,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
12084
12101
|
ref_key: "filterRowRef",
|
|
12085
12102
|
ref: H,
|
|
12086
12103
|
class: y(["pv-flex", { "pv-filter-panel-collapsible": ie.value }]),
|
|
12087
|
-
style: x(ie.value ? { minWidth: `${
|
|
12104
|
+
style: x(ie.value ? { minWidth: `${oe.value}px` } : {
|
|
12088
12105
|
"--flex-wrap": "wrap",
|
|
12089
12106
|
maxWidth: "100%"
|
|
12090
12107
|
})
|
|
@@ -12092,9 +12109,9 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
12092
12109
|
(D(!0), o(t, null, A(re.value, (r) => (D(), o(t, { key: r.field }, [z(c) ? (D(), o("div", {
|
|
12093
12110
|
key: 0,
|
|
12094
12111
|
ref_for: !0,
|
|
12095
|
-
ref: (e) =>
|
|
12096
|
-
class: y(["pv-filter-panel-item", { "pv-filter-panel-item-collapsed": !
|
|
12097
|
-
inert: !
|
|
12112
|
+
ref: (e) => ue(r.field || "", e),
|
|
12113
|
+
class: y(["pv-filter-panel-item", { "pv-filter-panel-item-collapsed": !X.value.has(r.field || "") }]),
|
|
12114
|
+
inert: !X.value.has(r.field || "") || void 0
|
|
12098
12115
|
}, [u(Ff, {
|
|
12099
12116
|
"enable-focus-view": h.enableFocusView,
|
|
12100
12117
|
"display-preferences-icon": h.displayPreferencesIcon,
|
|
@@ -12241,23 +12258,33 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
12241
12258
|
}), [["__scopeId", "data-v-a59c5643"]]), Xf = { key: 2 }, Zf = { style: {
|
|
12242
12259
|
"max-width": "220px",
|
|
12243
12260
|
"white-space": "normal",
|
|
12244
|
-
"overflow-wrap": "break-word"
|
|
12261
|
+
"overflow-wrap": "break-word",
|
|
12262
|
+
"text-align": "left"
|
|
12245
12263
|
} }, Qf = {
|
|
12246
12264
|
key: 0,
|
|
12247
12265
|
class: "pv-flex ag-header-actions"
|
|
12248
12266
|
}, $f = /* @__PURE__ */ d({
|
|
12249
12267
|
__name: "HeaderCellRenderer",
|
|
12250
12268
|
props: { params: {} },
|
|
12251
|
-
setup(e, { expose:
|
|
12252
|
-
let
|
|
12253
|
-
let e =
|
|
12269
|
+
setup(e, { expose: n }) {
|
|
12270
|
+
let c = m(Tu, k([])), d = m(ju, k([])), f = e, p = k(!1), h = k(!1), g = k(null), _ = k(null), v = k(null), b = k(null), C = r(() => {
|
|
12271
|
+
let [e, t] = (v.value ?? "").split("{link}");
|
|
12272
|
+
return t === void 0 ? {
|
|
12273
|
+
before: `${e} `,
|
|
12274
|
+
after: ""
|
|
12275
|
+
} : {
|
|
12276
|
+
before: e,
|
|
12277
|
+
after: t
|
|
12278
|
+
};
|
|
12279
|
+
}), w = k(null), T = k(!1), E = r(() => {
|
|
12280
|
+
let e = f.params.column.getColDef();
|
|
12254
12281
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
12255
|
-
}),
|
|
12256
|
-
if (!
|
|
12257
|
-
let e =
|
|
12282
|
+
}), O = r(() => {
|
|
12283
|
+
if (!c.value || c.value.length === 0) return "";
|
|
12284
|
+
let e = c.value.find((e) => e.colId === f.params.column.getColId()), t = e ? e.sort : "";
|
|
12258
12285
|
return t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "";
|
|
12259
|
-
}),
|
|
12260
|
-
let e =
|
|
12286
|
+
}), A = r(() => As(f.params.column.getColDef())), j = r(() => {
|
|
12287
|
+
let e = f.params.column.getColDef(), t = e.allowedAggFuncs;
|
|
12261
12288
|
if (!t || t.length <= 1) return [];
|
|
12262
12289
|
let n = Ts(e), r = n.aggFuncDisplayNameMap || {}, i = n.aggFuncDescriptionMap || {};
|
|
12263
12290
|
return t.map((e) => ({
|
|
@@ -12265,115 +12292,138 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
12265
12292
|
text: r[e] || e,
|
|
12266
12293
|
description: i[e]
|
|
12267
12294
|
}));
|
|
12268
|
-
}),
|
|
12295
|
+
}), M = r(() => j.value.length > 1), N = k(), ee = (e) => {
|
|
12269
12296
|
let t = e.column.getAggFunc();
|
|
12270
|
-
|
|
12271
|
-
},
|
|
12297
|
+
N.value = j.value.find((e) => e.id === t) || j.value[0];
|
|
12298
|
+
}, 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(() => ({
|
|
12272
12299
|
useTeleport: !0,
|
|
12273
|
-
position:
|
|
12300
|
+
position: A.value ? "bottom-right" : "bottom-left",
|
|
12274
12301
|
cssCustomProperties: {
|
|
12275
12302
|
width: "100%",
|
|
12276
12303
|
height: "100%"
|
|
12277
12304
|
}
|
|
12278
|
-
})),
|
|
12305
|
+
})), L = r(() => {
|
|
12279
12306
|
let e = {};
|
|
12280
|
-
return
|
|
12281
|
-
}),
|
|
12282
|
-
|
|
12283
|
-
},
|
|
12284
|
-
|
|
12285
|
-
},
|
|
12286
|
-
|
|
12307
|
+
return h.value && (e.cursor = "pointer", e["flex-direction"] = A.value ? "row-reverse" : "row"), A.value && (e["--flex-justify"] = "flex-end"), e;
|
|
12308
|
+
}), R = r(() => T.value ? { opacity: 1 } : {}), z = r(() => f.params.column.getColDef().pivotValueColumn ? !1 : M.value && d.value.length > 0), B = () => {
|
|
12309
|
+
T.value = !1;
|
|
12310
|
+
}, te = () => {
|
|
12311
|
+
T.value = !0, w.value && f.params.showColumnMenu(w.value, B);
|
|
12312
|
+
}, V = (e) => {
|
|
12313
|
+
p.value = e.enableFilterButton, h.value = e.enableSorting || !1, g.value = e.displayName;
|
|
12287
12314
|
let t = e.column.getColDef().context?.dataType;
|
|
12288
|
-
e.api?.isPivotMode?.() ? (
|
|
12289
|
-
},
|
|
12290
|
-
|
|
12315
|
+
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;
|
|
12316
|
+
}, ne = () => {
|
|
12317
|
+
h.value && f.params.progressSort(!1);
|
|
12291
12318
|
};
|
|
12292
|
-
W(
|
|
12319
|
+
W(N, (e) => {
|
|
12293
12320
|
if (!e) return;
|
|
12294
|
-
let t =
|
|
12321
|
+
let t = f.params.column.getAggFunc();
|
|
12295
12322
|
if (e.id === t) return;
|
|
12296
|
-
let n =
|
|
12323
|
+
let n = f.params.api, r = f.params.column.getColId();
|
|
12297
12324
|
n.applyColumnState({ state: [{
|
|
12298
12325
|
colId: r,
|
|
12299
12326
|
aggFunc: e.id
|
|
12300
12327
|
}] });
|
|
12301
12328
|
}), S(() => {
|
|
12302
|
-
|
|
12329
|
+
M.value && ee(f.params), V(f.params);
|
|
12303
12330
|
});
|
|
12304
|
-
function
|
|
12305
|
-
return
|
|
12331
|
+
function re(e) {
|
|
12332
|
+
return V(e), M.value && ee(e), !0;
|
|
12306
12333
|
}
|
|
12307
|
-
return
|
|
12308
|
-
class: y(
|
|
12309
|
-
style: x(
|
|
12310
|
-
onClick:
|
|
12334
|
+
return n({ refresh: re }), (e, n) => (D(), o("div", {
|
|
12335
|
+
class: y(F.value),
|
|
12336
|
+
style: x(L.value),
|
|
12337
|
+
onClick: ne
|
|
12311
12338
|
}, [s("div", {
|
|
12312
|
-
class: y(["pv-flex pv-full-width", { "pv-text-right":
|
|
12313
|
-
style: x(
|
|
12339
|
+
class: y(["pv-flex pv-full-width", { "pv-text-right": A.value }]),
|
|
12340
|
+
style: x(A.value ? { "--flex-justify": "flex-end" } : {})
|
|
12314
12341
|
}, [
|
|
12315
|
-
|
|
12342
|
+
_.value && !z.value ? (D(), i(Jn, {
|
|
12316
12343
|
key: 0,
|
|
12317
|
-
name:
|
|
12344
|
+
name: _.value,
|
|
12318
12345
|
class: "pv-text-tertiary"
|
|
12319
12346
|
}, null, 8, ["name"])) : a("", !0),
|
|
12320
|
-
|
|
12347
|
+
z.value ? (D(), i(Yo, {
|
|
12321
12348
|
key: 1,
|
|
12322
|
-
modelValue:
|
|
12323
|
-
"onUpdate:modelValue":
|
|
12349
|
+
modelValue: N.value,
|
|
12350
|
+
"onUpdate:modelValue": n[0] ||= (e) => N.value = e,
|
|
12324
12351
|
class: "ag-header-agg-func-selector",
|
|
12325
|
-
options:
|
|
12352
|
+
options: j.value,
|
|
12326
12353
|
disableSearchInput: !0,
|
|
12327
12354
|
disableDeselect: !0,
|
|
12328
|
-
popoverProperties:
|
|
12355
|
+
popoverProperties: I.value,
|
|
12329
12356
|
popoverCssProperties: { width: "auto" },
|
|
12330
12357
|
variant: "ghost",
|
|
12331
12358
|
size: "lg",
|
|
12332
|
-
icon:
|
|
12333
|
-
label:
|
|
12359
|
+
icon: _.value || void 0,
|
|
12360
|
+
label: g.value || "",
|
|
12334
12361
|
staticLabel: !0,
|
|
12335
|
-
onClick:
|
|
12362
|
+
onClick: n[1] ||= q(() => {}, ["stop"])
|
|
12336
12363
|
}, null, 8, [
|
|
12337
12364
|
"modelValue",
|
|
12338
12365
|
"options",
|
|
12339
12366
|
"popoverProperties",
|
|
12340
12367
|
"icon",
|
|
12341
12368
|
"label"
|
|
12342
|
-
])) : (D(), o("p", Xf, P(
|
|
12343
|
-
|
|
12369
|
+
])) : (D(), o("p", Xf, P(g.value), 1)),
|
|
12370
|
+
v.value ? (D(), i(da, {
|
|
12344
12371
|
key: 3,
|
|
12345
12372
|
variant: "white",
|
|
12346
12373
|
position: "top-center",
|
|
12347
12374
|
disableAutoPlacement: !0,
|
|
12348
12375
|
useTeleport: !0,
|
|
12349
12376
|
showOnHover: !0,
|
|
12350
|
-
disableInteractive: !
|
|
12377
|
+
disableInteractive: !b.value,
|
|
12351
12378
|
style: { "pointer-events": "auto" }
|
|
12352
12379
|
}, {
|
|
12353
|
-
trigger: G(() => [
|
|
12380
|
+
trigger: G(() => [b.value ? (D(), i(Qn, {
|
|
12381
|
+
key: 0,
|
|
12382
|
+
variant: "ghost",
|
|
12383
|
+
size: "md",
|
|
12384
|
+
"left-icon": "info-circle",
|
|
12385
|
+
ariaLabel: `More information about ${g.value}`,
|
|
12386
|
+
onClick: n[2] ||= q(() => {}, ["stop"])
|
|
12387
|
+
}, null, 8, ["ariaLabel"])) : (D(), i(Jn, {
|
|
12388
|
+
key: 1,
|
|
12354
12389
|
size: 12,
|
|
12355
12390
|
name: "info-circle",
|
|
12356
12391
|
class: "pv-text-subdued",
|
|
12357
|
-
onClick:
|
|
12358
|
-
})]),
|
|
12359
|
-
content: G(() => [s("div", Zf,
|
|
12392
|
+
onClick: n[3] ||= q(() => {}, ["stop"])
|
|
12393
|
+
}))]),
|
|
12394
|
+
content: G(() => [s("div", Zf, [b.value ? (D(), o(t, { key: 0 }, [
|
|
12395
|
+
l(P(C.value.before), 1),
|
|
12396
|
+
s("button", {
|
|
12397
|
+
type: "button",
|
|
12398
|
+
style: {
|
|
12399
|
+
background: "none",
|
|
12400
|
+
border: "0",
|
|
12401
|
+
padding: "0",
|
|
12402
|
+
cursor: "pointer",
|
|
12403
|
+
"text-decoration": "underline",
|
|
12404
|
+
color: "var(--color-background-brand, #36c5ba)"
|
|
12405
|
+
},
|
|
12406
|
+
onClick: n[4] ||= q((e) => b.value.onClick(), ["stop"])
|
|
12407
|
+
}, P(b.value.label), 1),
|
|
12408
|
+
l(P(C.value.after), 1)
|
|
12409
|
+
], 64)) : (D(), o(t, { key: 1 }, [l(P(v.value), 1)], 64))])]),
|
|
12360
12410
|
_: 1
|
|
12361
|
-
})) : a("", !0),
|
|
12362
|
-
|
|
12411
|
+
}, 8, ["disableInteractive"])) : a("", !0),
|
|
12412
|
+
h.value && O.value !== "" ? (D(), i(Jn, {
|
|
12363
12413
|
key: 4,
|
|
12364
|
-
name:
|
|
12414
|
+
name: O.value
|
|
12365
12415
|
}, null, 8, ["name"])) : a("", !0)
|
|
12366
|
-
], 6),
|
|
12416
|
+
], 6), E.value ? (D(), o("div", Qf, [s("div", {
|
|
12367
12417
|
ref_key: "menuButton",
|
|
12368
|
-
ref:
|
|
12418
|
+
ref: w,
|
|
12369
12419
|
class: "ag-header-cell-menu-button",
|
|
12370
|
-
style: x(
|
|
12420
|
+
style: x(R.value)
|
|
12371
12421
|
}, [u(Qn, {
|
|
12372
12422
|
size: "md",
|
|
12373
12423
|
variant: "ghost",
|
|
12374
12424
|
"left-icon": "menu",
|
|
12375
12425
|
ariaLabel: "Column menu",
|
|
12376
|
-
onClick:
|
|
12426
|
+
onClick: q(te, ["stop", "prevent"])
|
|
12377
12427
|
})], 4)])) : a("", !0)], 6));
|
|
12378
12428
|
}
|
|
12379
12429
|
}), ep = {
|
|
@@ -12462,7 +12512,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
12462
12512
|
class: "pv-icon-24"
|
|
12463
12513
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", ap, [s("button", {
|
|
12464
12514
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
12465
|
-
onClick:
|
|
12515
|
+
onClick: q(i, ["prevent"]),
|
|
12466
12516
|
disabled: r.value
|
|
12467
12517
|
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, op)])]));
|
|
12468
12518
|
}
|
|
@@ -12485,7 +12535,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
12485
12535
|
])], 2));
|
|
12486
12536
|
}
|
|
12487
12537
|
}), lp = (e, t) => e.value?.querySelector(t) ?? null, up = (e) => {
|
|
12488
|
-
let t = ee(null), n = ee(null), i = ee(null), a = k(0), o = (e) =>
|
|
12538
|
+
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);
|
|
12489
12539
|
return {
|
|
12490
12540
|
contentHeight: r(() => {
|
|
12491
12541
|
if (!s.value) return;
|
|
@@ -12499,7 +12549,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
12499
12549
|
};
|
|
12500
12550
|
}, dp = (e, t) => {
|
|
12501
12551
|
let n = ee(null), r = k(t);
|
|
12502
|
-
return
|
|
12552
|
+
return X(n, () => {
|
|
12503
12553
|
let t = lp(e, ".ag-pinned-left-header .ag-header-cell");
|
|
12504
12554
|
!t || !e.value || (r.value = Math.round(t.getBoundingClientRect().top - e.value.getBoundingClientRect().top));
|
|
12505
12555
|
}), {
|
|
@@ -13069,7 +13119,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13069
13119
|
return !t.group || !n ? !1 : Ht.value.some((e) => {
|
|
13070
13120
|
if (e.field === n) return !0;
|
|
13071
13121
|
});
|
|
13072
|
-
},
|
|
13122
|
+
}, q = (() => {
|
|
13073
13123
|
let e = {
|
|
13074
13124
|
suppressHeaderFilterButton: !f.enableInlineFilters,
|
|
13075
13125
|
editable: !1,
|
|
@@ -13097,11 +13147,11 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13097
13147
|
}
|
|
13098
13148
|
};
|
|
13099
13149
|
return f.defaultColDefOverrides && Object.assign(e, f.defaultColDefOverrides), e;
|
|
13100
|
-
})(),
|
|
13150
|
+
})(), oe = k(void 0), se = r(() => (e) => {
|
|
13101
13151
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
13102
13152
|
let t = [];
|
|
13103
13153
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
13104
|
-
}),
|
|
13154
|
+
}), J = {
|
|
13105
13155
|
name: "Column Filter",
|
|
13106
13156
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
13107
13157
|
action: function(e) {
|
|
@@ -13112,7 +13162,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13112
13162
|
Wn.value?.openHorizontalFilter(t) || Wn.value?.isHorizontalFilterCollapsed(t) && Wn.value.openVerticalDrawer();
|
|
13113
13163
|
});
|
|
13114
13164
|
}
|
|
13115
|
-
},
|
|
13165
|
+
}, ce = (e) => !e.node?.group && e.data != null && e.value != null && e.value !== "", le = (e, t) => {
|
|
13116
13166
|
if (!e) return null;
|
|
13117
13167
|
let n = { ...e }, r = t, i = Ms(e);
|
|
13118
13168
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -13123,21 +13173,21 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13123
13173
|
}
|
|
13124
13174
|
if (r.isCellClickable && (n.cellClassRules = {
|
|
13125
13175
|
...n.cellClassRules,
|
|
13126
|
-
"pv-data-table-cell-clickable":
|
|
13127
|
-
}, !n.tooltipField && !n.tooltipValueGetter && (n.tooltipValueGetter = (e) =>
|
|
13176
|
+
"pv-data-table-cell-clickable": ce
|
|
13177
|
+
}, !n.tooltipField && !n.tooltipValueGetter && (n.tooltipValueGetter = (e) => ce(e) ? "Click to view details" : void 0)), f.enableAdvancedFilter) {
|
|
13128
13178
|
let t = e.headerValueGetter;
|
|
13129
13179
|
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 || "";
|
|
13130
13180
|
}
|
|
13131
13181
|
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 = yp), n;
|
|
13132
|
-
},
|
|
13182
|
+
}, Y = (e) => e.colId || e.field || "", ue = (e, t = () => null) => (f.colDefs ?? []).map((e, t) => ({
|
|
13133
13183
|
colDef: e,
|
|
13134
13184
|
index: t
|
|
13135
|
-
})).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 }) =>
|
|
13136
|
-
rowGroupCols:
|
|
13137
|
-
pivotCols:
|
|
13138
|
-
valueCols:
|
|
13139
|
-
} : null,
|
|
13140
|
-
let n = Pt.value ===
|
|
13185
|
+
})).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 ? {
|
|
13186
|
+
rowGroupCols: ue((e) => !!e.rowGroup, (e) => e.rowGroupIndex ?? null),
|
|
13187
|
+
pivotCols: ue((e) => !!e.pivot && !e.rowGroup, (e) => e.pivotIndex ?? null),
|
|
13188
|
+
valueCols: ue((e) => !!e.aggFunc && !e.rowGroup && !e.pivot && e.enableValue !== !1)
|
|
13189
|
+
} : 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) => {
|
|
13190
|
+
let n = Pt.value === X?.pivotCols[0] ? Ft.value : [], r = [...f.pivotValueOrder ?? [], ...n].map(String), i = (e) => {
|
|
13141
13191
|
let t = r.indexOf(String(e));
|
|
13142
13192
|
return t === -1 ? r.length : t;
|
|
13143
13193
|
};
|
|
@@ -13146,7 +13196,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13146
13196
|
...t,
|
|
13147
13197
|
data: t.node.allLeafChildren?.[0]?.data
|
|
13148
13198
|
}) : e, rt = (e) => {
|
|
13149
|
-
let t =
|
|
13199
|
+
let t = X, n = Y(e), r = t.rowGroupCols.indexOf(n), i = t.pivotCols.indexOf(n), a = t.valueCols.includes(n);
|
|
13150
13200
|
return {
|
|
13151
13201
|
...e,
|
|
13152
13202
|
valueFormatter: r === -1 ? e.valueFormatter : nt(e.valueFormatter),
|
|
@@ -13162,7 +13212,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13162
13212
|
let t = { ...e };
|
|
13163
13213
|
(ie || V) && H && Wd(e) && (t = Gd(e, H));
|
|
13164
13214
|
let n = e.context;
|
|
13165
|
-
return n && (t =
|
|
13215
|
+
return n && (t = le(t, n)), t;
|
|
13166
13216
|
}).filter((e) => e != null) || [], at = {
|
|
13167
13217
|
colId: "__pv_pivot_total__",
|
|
13168
13218
|
headerName: "",
|
|
@@ -13170,7 +13220,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13170
13220
|
rowGroupIndex: 0,
|
|
13171
13221
|
suppressColumnsToolPanel: !0,
|
|
13172
13222
|
valueGetter: () => f.pivotTotalLabel
|
|
13173
|
-
}, ot = V ? [...it.map(rt), ...
|
|
13223
|
+
}, ot = V ? [...it.map(rt), ...X?.rowGroupCols.length ? [] : [at]] : it, st = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
13174
13224
|
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.`);
|
|
13175
13225
|
let lt = ot.some((e) => e.context?.visibilityState !== void 0), ut = (e) => {
|
|
13176
13226
|
if (!V || !e) return e;
|
|
@@ -13213,12 +13263,12 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13213
13263
|
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);
|
|
13214
13264
|
O(Cu, St), O(wu, wt), O(Tu, xt), O(Eu, bt), O(Du, Nt), O(Ou, ft), O(ku, It), O(Au, Vt), O(ju, pt), O(Mu, Ut), O(Nu, Wt), O(Pu, mt), O(Fu, ht), O(Iu, Gt), O(Lu, Kt), O(Xu, r(() => f.enableAdvancedFilter));
|
|
13215
13265
|
let qt = ee(void 0), Jt = r(() => {
|
|
13216
|
-
let e =
|
|
13266
|
+
let e = X?.pivotCols[0], t = e && me(e), n = qt.value ?? f.rowData;
|
|
13217
13267
|
if (!t || !n) return /* @__PURE__ */ new Map();
|
|
13218
13268
|
let r = Array.from(new Set(n.map((e) => String(e[t]))));
|
|
13219
13269
|
return new Map(r.sort(Ie).map((e, t) => [e, t]));
|
|
13220
13270
|
}), Yt = (e, t) => {
|
|
13221
|
-
let n =
|
|
13271
|
+
let n = de(e);
|
|
13222
13272
|
return {
|
|
13223
13273
|
id: e,
|
|
13224
13274
|
field: n?.field ?? e,
|
|
@@ -13233,7 +13283,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13233
13283
|
conditions: [e, t]
|
|
13234
13284
|
} : t : Ud(ot, e, t);
|
|
13235
13285
|
}, Zt = 0, Qt = async () => {
|
|
13236
|
-
if (!
|
|
13286
|
+
if (!X || !f.serverSidePivotHandler) return;
|
|
13237
13287
|
let e = ++Zt;
|
|
13238
13288
|
if (!vt.value) {
|
|
13239
13289
|
qt.value = [], mt.value = !0;
|
|
@@ -13242,8 +13292,8 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13242
13292
|
ht.value = !0;
|
|
13243
13293
|
try {
|
|
13244
13294
|
let t = await f.serverSidePivotHandler({
|
|
13245
|
-
rowGroupCols: [...
|
|
13246
|
-
valueCols:
|
|
13295
|
+
rowGroupCols: [...X.rowGroupCols, ...X.pivotCols].map((e) => Yt(e, !1)),
|
|
13296
|
+
valueCols: X.valueCols.map((e) => Yt(e, !0)),
|
|
13247
13297
|
filterModel: Xt(Tt.value),
|
|
13248
13298
|
endRow: f.pivotRowLimit
|
|
13249
13299
|
});
|
|
@@ -13266,8 +13316,8 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13266
13316
|
top: 0,
|
|
13267
13317
|
left: 0,
|
|
13268
13318
|
visibility: "hidden"
|
|
13269
|
-
} : void 0), nn = (e) => (qt.value ?? f.rowData)?.find((t) => e.every((e, n) => String(t[me(
|
|
13270
|
-
let r = ot.find((t) =>
|
|
13319
|
+
} : 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) => {
|
|
13320
|
+
let r = ot.find((t) => Y(t) === e);
|
|
13271
13321
|
if (typeof r?.valueFormatter == "function") return r.valueFormatter({
|
|
13272
13322
|
value: t,
|
|
13273
13323
|
data: n,
|
|
@@ -13275,7 +13325,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13275
13325
|
node: null
|
|
13276
13326
|
}) || void 0;
|
|
13277
13327
|
}, an = (e) => {
|
|
13278
|
-
let t = e.pivotKeys ?? [], n = t.at(-1), r =
|
|
13328
|
+
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?.({
|
|
13279
13329
|
value: i,
|
|
13280
13330
|
data: a,
|
|
13281
13331
|
focused: Pt.value === r && Ft.value.map(String).includes(i)
|
|
@@ -13478,7 +13528,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13478
13528
|
innerRenderer: Ed,
|
|
13479
13529
|
innerRendererParams: (e) => ({
|
|
13480
13530
|
plainLabel: V,
|
|
13481
|
-
boldLabel: V && !
|
|
13531
|
+
boldLabel: V && !X?.rowGroupCols.length,
|
|
13482
13532
|
displayBaseAggregationsOnly: f.displayBaseAggregationsOnly,
|
|
13483
13533
|
displayRowNumber: f.displayRowNumber,
|
|
13484
13534
|
displayCount: f.displayGroupCount,
|
|
@@ -13520,14 +13570,14 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13520
13570
|
S(() => {
|
|
13521
13571
|
Un.value = document.querySelector("body");
|
|
13522
13572
|
let e = Array.isArray(f.rowData) && f.rowData.length > 0, t = typeof f.serverSideRowHandler == "function", n = typeof f.filterValuesSetHandler == "function";
|
|
13523
|
-
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."),
|
|
13573
|
+
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."), oe.value = (e) => {
|
|
13524
13574
|
let t = [
|
|
13525
13575
|
"sortAscending",
|
|
13526
13576
|
"sortDescending",
|
|
13527
13577
|
"sortUnSort",
|
|
13528
13578
|
"rowUnGroup"
|
|
13529
13579
|
], n = e.column && hn(e.column) ? Ut.value : e.column;
|
|
13530
|
-
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0,
|
|
13580
|
+
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, J), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
13531
13581
|
}, dt && (Tt.value = (f.enableAdvancedFilter ? dt.filter?.advancedFilterModel : dt.filter?.filterModel) || null, pt.value = dt.rowGroup?.groupColIds || []);
|
|
13532
13582
|
});
|
|
13533
13583
|
let zn = (e) => {
|
|
@@ -13705,11 +13755,11 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13705
13755
|
autoGroupColumnDef: Pn.value,
|
|
13706
13756
|
columnDefs: z(ot),
|
|
13707
13757
|
debug: e.debugMode,
|
|
13708
|
-
defaultColDef: z(
|
|
13758
|
+
defaultColDef: z(q),
|
|
13709
13759
|
fullWidthCellRenderer: jn.value,
|
|
13710
13760
|
getChildCount: An,
|
|
13711
|
-
getContextMenuItems:
|
|
13712
|
-
getMainMenuItems:
|
|
13761
|
+
getContextMenuItems: se.value,
|
|
13762
|
+
getMainMenuItems: oe.value,
|
|
13713
13763
|
getRowClass: Ln,
|
|
13714
13764
|
getRowStyle: In,
|
|
13715
13765
|
groupDefaultExpanded: Hn.value,
|
|
@@ -13964,7 +14014,7 @@ var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv
|
|
|
13964
14014
|
class: "pv-inset-square-8",
|
|
13965
14015
|
role: "dialog",
|
|
13966
14016
|
"aria-label": "Column options",
|
|
13967
|
-
onKeydown: r[3] ||= K(
|
|
14017
|
+
onKeydown: r[3] ||= K(q((e) => b.value = null, ["stop"]), ["esc"])
|
|
13968
14018
|
}, [r[5] ||= s("p", {
|
|
13969
14019
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
13970
14020
|
style: {
|
|
@@ -14229,10 +14279,10 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14229
14279
|
let H = m(Ru, k("")), U = r(() => l.chartFilter && l.chartFilter.options ? l.chartFilter.options.map((e) => ({
|
|
14230
14280
|
label: e.label,
|
|
14231
14281
|
value: e.value
|
|
14232
|
-
})) : []),
|
|
14282
|
+
})) : []), oe = r(() => {
|
|
14233
14283
|
let e = j.value[0];
|
|
14234
14284
|
return e ? Us(M.value.find((t) => t.field === e)) : !1;
|
|
14235
|
-
}),
|
|
14285
|
+
}), se = r(() => {
|
|
14236
14286
|
if (w.value) return (j.value.length > 1 ? [
|
|
14237
14287
|
"bar_stacked",
|
|
14238
14288
|
"line",
|
|
@@ -14261,13 +14311,13 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14261
14311
|
}
|
|
14262
14312
|
w.value = e[0];
|
|
14263
14313
|
});
|
|
14264
|
-
let
|
|
14314
|
+
let J = (e, t) => {
|
|
14265
14315
|
for (let n of e) {
|
|
14266
14316
|
if (n.id === t) return n;
|
|
14267
|
-
let e = n.children ?
|
|
14317
|
+
let e = n.children ? J(n.children, t) : void 0;
|
|
14268
14318
|
if (e) return e;
|
|
14269
14319
|
}
|
|
14270
|
-
},
|
|
14320
|
+
}, ce = (e) => e.flatMap((e) => e.children?.length ? ce(e.children) : e), le = (e) => {
|
|
14271
14321
|
switch (e) {
|
|
14272
14322
|
case "y-axis": return "Select Y Axis metric";
|
|
14273
14323
|
case "secondary-y-axis": return "Select Metric Overlay";
|
|
@@ -14276,42 +14326,42 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14276
14326
|
case "sort": return "Select Chart Sort";
|
|
14277
14327
|
default: return;
|
|
14278
14328
|
}
|
|
14279
|
-
},
|
|
14329
|
+
}, Y = bu(), ue = (e) => e === "secondary-y-axis" ? "metric-overlay" : e, X = (e, t, n = "select") => {
|
|
14280
14330
|
if (!t) return;
|
|
14281
|
-
let r = Z.value.find((t) => t.value === e), i = r?.availableOptions ?
|
|
14331
|
+
let r = Z.value.find((t) => t.value === e), i = r?.availableOptions ? J(r.availableOptions, t) : void 0;
|
|
14282
14332
|
xu("chart_option_selected", {
|
|
14283
|
-
panel:
|
|
14333
|
+
panel: ue(e),
|
|
14284
14334
|
selected_value: i?.text ?? t,
|
|
14285
14335
|
selected_value_id: t,
|
|
14286
14336
|
action: n
|
|
14287
|
-
},
|
|
14288
|
-
},
|
|
14337
|
+
}, Y());
|
|
14338
|
+
}, de = (e, t) => {
|
|
14289
14339
|
let n = new Set(e.activeOptionIds);
|
|
14290
14340
|
e.updateSelectedOptions?.(t), Su(() => {
|
|
14291
|
-
for (let r of t) n.has(r.id) ||
|
|
14341
|
+
for (let r of t) n.has(r.id) || X(e.value, r.id);
|
|
14292
14342
|
});
|
|
14293
14343
|
}, fe = (e, t) => {
|
|
14294
|
-
e.updateSelectedOption?.(t?.id || ""), Su(() =>
|
|
14344
|
+
e.updateSelectedOption?.(t?.id || ""), Su(() => X(e.value, t?.id));
|
|
14295
14345
|
}, pe = (e, t) => {
|
|
14296
14346
|
let n = t.option;
|
|
14297
14347
|
if (e.isMultiSelect) {
|
|
14298
14348
|
let t = new Set(e.activeOptionIds ?? []), r = new Set(t);
|
|
14299
|
-
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(
|
|
14349
|
+
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) || Su(() => X(e.value, n.id));
|
|
14300
14350
|
return;
|
|
14301
14351
|
}
|
|
14302
|
-
e.updateSelectedOption?.(n.id), Su(() =>
|
|
14352
|
+
e.updateSelectedOption?.(n.id), Su(() => X(e.value, n.id));
|
|
14303
14353
|
}, me = (e, t) => {
|
|
14304
14354
|
let n = e.activeOptions?.value ?? [];
|
|
14305
14355
|
e.activeOptions && (e.activeOptions.value = t), Su(() => {
|
|
14306
14356
|
let r = n.map((e) => e.id), i = t.map((e) => e.id), a = new Set(r), o = new Set(i);
|
|
14307
|
-
for (let n of t) a.has(n.id) ||
|
|
14308
|
-
for (let t of n) o.has(t.id) ||
|
|
14357
|
+
for (let n of t) a.has(n.id) || X(e.value, n.id, "select");
|
|
14358
|
+
for (let t of n) o.has(t.id) || X(e.value, t.id, "deselect");
|
|
14309
14359
|
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") && xu("chart_option_selected", {
|
|
14310
|
-
panel:
|
|
14360
|
+
panel: ue(e.value),
|
|
14311
14361
|
selected_value: t.map((e) => e.text).join(", "),
|
|
14312
14362
|
selected_value_id: i.join(","),
|
|
14313
14363
|
action: "reorder"
|
|
14314
|
-
},
|
|
14364
|
+
}, Y());
|
|
14315
14365
|
});
|
|
14316
14366
|
}, 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) => {
|
|
14317
14367
|
let r = !!e && t === e;
|
|
@@ -14374,11 +14424,11 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14374
14424
|
}), xe = (e, t, n) => {
|
|
14375
14425
|
if (!n) return;
|
|
14376
14426
|
let r = t.find((e) => e.value === n || e.aggFuncOptions?.some((e) => e.seriesValue === n));
|
|
14377
|
-
if (!r?.aggFuncOptions?.length || !r.columnField) return
|
|
14427
|
+
if (!r?.aggFuncOptions?.length || !r.columnField) return J(e, n);
|
|
14378
14428
|
let i = r.aggFuncOptions.find((e) => e.aggFunc === r.activeAggFunc) ?? r.aggFuncOptions.find((e) => e.seriesValue === n) ?? r.aggFuncOptions[0];
|
|
14379
|
-
return i ?
|
|
14429
|
+
return i ? J(e, he(r.columnField, i.aggFunc)) : void 0;
|
|
14380
14430
|
}, Se = (e, t) => {
|
|
14381
|
-
let n =
|
|
14431
|
+
let n = J(e, t), r = n?.context;
|
|
14382
14432
|
return {
|
|
14383
14433
|
aggFunc: r?.aggFunc,
|
|
14384
14434
|
columnField: r?.columnField,
|
|
@@ -14445,8 +14495,8 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14445
14495
|
allowDeselect: !0,
|
|
14446
14496
|
availableOptions: O.value,
|
|
14447
14497
|
currentOption: O.value.find((e) => e.id === E.value?.id),
|
|
14448
|
-
disabled:
|
|
14449
|
-
disabledReason:
|
|
14498
|
+
disabled: oe.value || !se.value,
|
|
14499
|
+
disabledReason: oe.value ? "Dates are always sorted oldest to newest" : "Sorting is not available for this chart type",
|
|
14450
14500
|
updateSelectedOption: (e) => {
|
|
14451
14501
|
let t = O.value.find((t) => t.id === e);
|
|
14452
14502
|
if (!t || !E) {
|
|
@@ -14536,7 +14586,7 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14536
14586
|
icon: e.icon,
|
|
14537
14587
|
disabled: e.disabled,
|
|
14538
14588
|
hoverTitle: e.disabledReason,
|
|
14539
|
-
rumActionName:
|
|
14589
|
+
rumActionName: le(e.value),
|
|
14540
14590
|
popoverRole: e.isSortableList ? "dialog" : "menu",
|
|
14541
14591
|
children: e.availableOptions,
|
|
14542
14592
|
config: {
|
|
@@ -14557,11 +14607,11 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14557
14607
|
if (!t?.isMultiSelect) return;
|
|
14558
14608
|
let n = new Set(t.activeOptionIds ?? []);
|
|
14559
14609
|
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))), Su(() => {
|
|
14560
|
-
for (let r of e) n.has(r) ||
|
|
14610
|
+
for (let r of e) n.has(r) || X(t.value, r);
|
|
14561
14611
|
});
|
|
14562
14612
|
}, Le = (e) => {
|
|
14563
14613
|
let t = Q.value;
|
|
14564
|
-
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Su(() =>
|
|
14614
|
+
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Su(() => X(t.value, e.id)));
|
|
14565
14615
|
}, Re = (e) => {
|
|
14566
14616
|
let t = Q.value;
|
|
14567
14617
|
return !t || t.isMultiSelect ? null : t.currentOption?.id === e.id ? !0 : null;
|
|
@@ -14602,7 +14652,7 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14602
14652
|
"aria-label": `${Q.value.label} options`,
|
|
14603
14653
|
class: "pv-chart-config-popover pv-inset-square-8",
|
|
14604
14654
|
role: "dialog",
|
|
14605
|
-
onKeydown: K(
|
|
14655
|
+
onKeydown: K(q(n, ["stop"]), ["esc"])
|
|
14606
14656
|
}, [r[6] ||= s("p", {
|
|
14607
14657
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
14608
14658
|
style: {
|
|
@@ -14635,7 +14685,7 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14635
14685
|
readOnly: e.readOnly,
|
|
14636
14686
|
childrenDisplay: "popover",
|
|
14637
14687
|
itemClass: "pv-chart-option pv-flex",
|
|
14638
|
-
onKeydown: K(
|
|
14688
|
+
onKeydown: K(q(n, ["stop"]), ["esc"]),
|
|
14639
14689
|
onHandleSelected: r[2] ||= (e) => pe(Q.value, e)
|
|
14640
14690
|
}, null, 8, [
|
|
14641
14691
|
"id",
|
|
@@ -14668,7 +14718,7 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14668
14718
|
id: `pv-chart-config-${t.value}`,
|
|
14669
14719
|
key: t.value,
|
|
14670
14720
|
"data-active": S.value === t.value ? !0 : null,
|
|
14671
|
-
"data-dd-action-name":
|
|
14721
|
+
"data-dd-action-name": le(t.value),
|
|
14672
14722
|
onMouseenter: (e) => t.disabled ? null : Be(t.value),
|
|
14673
14723
|
onClick: (e) => t.disabled ? null : Be(t.value)
|
|
14674
14724
|
}, [u(da, {
|
|
@@ -14712,12 +14762,12 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14712
14762
|
label: n.label,
|
|
14713
14763
|
prefixLabel: n.prefixLabel,
|
|
14714
14764
|
modelValue: n.availableOptions.filter((e) => n.activeOptionIds.has(e.id)),
|
|
14715
|
-
"onUpdate:modelValue": (e) =>
|
|
14765
|
+
"onUpdate:modelValue": (e) => de(n, e),
|
|
14716
14766
|
options: n.availableOptions,
|
|
14717
14767
|
disableSearchInput: !0,
|
|
14718
14768
|
disabled: n.disabled || e.readOnly,
|
|
14719
14769
|
optionsVariant: "checkbox",
|
|
14720
|
-
rumActionName:
|
|
14770
|
+
rumActionName: le(n.value)
|
|
14721
14771
|
}, null, 8, [
|
|
14722
14772
|
"label",
|
|
14723
14773
|
"prefixLabel",
|
|
@@ -14738,7 +14788,7 @@ var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex
|
|
|
14738
14788
|
disabled: n.disabled || e.readOnly,
|
|
14739
14789
|
optionsVariant: "icon",
|
|
14740
14790
|
childrenDisplay: f.value ? "popover" : "inline",
|
|
14741
|
-
rumActionName:
|
|
14791
|
+
rumActionName: le(n.value)
|
|
14742
14792
|
}, null, 8, [
|
|
14743
14793
|
"label",
|
|
14744
14794
|
"prefixLabel",
|
|
@@ -15275,7 +15325,7 @@ var Am = { style: {
|
|
|
15275
15325
|
value: t
|
|
15276
15326
|
};
|
|
15277
15327
|
});
|
|
15278
|
-
}),
|
|
15328
|
+
}), q = r(() => d.enableCombinedChartConfigPanel && d.enableNestedChartConfigPanel ? K.value.reduce((e, t) => e + (t.aggFuncOptions?.length || 1), 0) : K.value.length), oe = r(() => {
|
|
15279
15329
|
let e = h.value?.availableAggFuncColumns || [], t = new Set(R.value);
|
|
15280
15330
|
return e.filter((e) => Ls(e)).map((e) => {
|
|
15281
15331
|
let n = ne(e), r = e.field || "";
|
|
@@ -15292,7 +15342,7 @@ var Am = { style: {
|
|
|
15292
15342
|
value: Rs(r, n, t)
|
|
15293
15343
|
};
|
|
15294
15344
|
});
|
|
15295
|
-
}),
|
|
15345
|
+
}), se = (e, t) => e.find((e) => e.value === t || e.aggFuncOptions?.some((e) => e.seriesValue === t)), J = r(() => (h.value?.availableAggFuncColumns || []).filter((e) => {
|
|
15296
15346
|
let t = Ts(e);
|
|
15297
15347
|
return t.chartOnSecondaryAxes === !0 && t.hideFromCharting === !0;
|
|
15298
15348
|
}).map((e) => {
|
|
@@ -15303,22 +15353,22 @@ var Am = { style: {
|
|
|
15303
15353
|
formatter: n.valueFormatter,
|
|
15304
15354
|
dataType: n.context?.dataType
|
|
15305
15355
|
};
|
|
15306
|
-
})),
|
|
15307
|
-
O(Cu,
|
|
15308
|
-
let
|
|
15356
|
+
})), ce = d.filterStore || _f();
|
|
15357
|
+
O(Cu, ce);
|
|
15358
|
+
let le = md({
|
|
15309
15359
|
focusType: d.initialFocusData?.focusType,
|
|
15310
15360
|
focuses: d.initialFocusData?.focuses || [],
|
|
15311
15361
|
focusRequired: d.focusRequired
|
|
15312
15362
|
}, d.allFieldsAreFocusable);
|
|
15313
|
-
O(wu,
|
|
15314
|
-
let { setFilterSelectedValues:
|
|
15315
|
-
O(Pu,
|
|
15316
|
-
let
|
|
15363
|
+
O(wu, le);
|
|
15364
|
+
let { setFilterSelectedValues: Y } = ce, ue = k(!1);
|
|
15365
|
+
O(Pu, ue);
|
|
15366
|
+
let X = k(d.isTableGrouped), de = (e) => {
|
|
15317
15367
|
p("table-overlay-change", e);
|
|
15318
|
-
}, fe = r(() => dn.value ? !1 : !!(d.emptyChartFilterRenderer && d.requireFiltersToShowData &&
|
|
15368
|
+
}, 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) => {
|
|
15319
15369
|
H.value || (V.value = Object.fromEntries(e.getValueColumns().map((e) => [e.getColId(), e.getAggFunc()]).filter((e) => typeof e[1] == "string")));
|
|
15320
15370
|
}, ge = k(null), _e = (e) => {
|
|
15321
|
-
m.value = e.api, he(e.api), !
|
|
15371
|
+
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);
|
|
15322
15372
|
}, ve = (e) => {
|
|
15323
15373
|
ge.value = e.orderedColIds, p("chart-state-changed", {
|
|
15324
15374
|
api: m.value,
|
|
@@ -15340,8 +15390,8 @@ var Am = { style: {
|
|
|
15340
15390
|
oldState: { orderedColIds: ge.value }
|
|
15341
15391
|
}), ge.value = t;
|
|
15342
15392
|
}, be = (e) => {
|
|
15343
|
-
let t =
|
|
15344
|
-
he(e.api), t?.columnField && Ve.value && (Ve.value =
|
|
15393
|
+
let t = se(oe.value, Ve.value), n = He.value.map((e) => se(oe.value, e)?.columnField).filter((e) => !!e);
|
|
15394
|
+
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);
|
|
15345
15395
|
}, xe = (e) => {
|
|
15346
15396
|
let t = m.value;
|
|
15347
15397
|
if (H.value) {
|
|
@@ -15360,7 +15410,7 @@ var Am = { style: {
|
|
|
15360
15410
|
}, Ce = (e) => {
|
|
15361
15411
|
if (H.value) return;
|
|
15362
15412
|
let t = R.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
15363
|
-
if (
|
|
15413
|
+
if (X.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
15364
15414
|
let t = Fe.value;
|
|
15365
15415
|
if (n.length > Ie.value) {
|
|
15366
15416
|
let t = n.slice(0, Ie.value);
|
|
@@ -15370,10 +15420,10 @@ var Am = { style: {
|
|
|
15370
15420
|
}
|
|
15371
15421
|
p("column-row-group-changed", e);
|
|
15372
15422
|
}, we = async (e) => {
|
|
15373
|
-
Je.value = 0, Et(e.api),
|
|
15423
|
+
Je.value = 0, Et(e.api), ue.value && p("filter-changed", e);
|
|
15374
15424
|
};
|
|
15375
15425
|
W(() => R.value, () => {
|
|
15376
|
-
if (!H.value) if (
|
|
15426
|
+
if (!H.value) if (X.value) {
|
|
15377
15427
|
if (!m.value) return;
|
|
15378
15428
|
let e = m.value.getRowGroupColumns().map((e) => e.getColId());
|
|
15379
15429
|
JSON.stringify(e) !== JSON.stringify(R.value) && v(() => {
|
|
@@ -15384,7 +15434,7 @@ var Am = { style: {
|
|
|
15384
15434
|
});
|
|
15385
15435
|
if (!d.allFieldsAreFocusable) {
|
|
15386
15436
|
let e = Fe.value.supportsFocusView && B.value || null;
|
|
15387
|
-
|
|
15437
|
+
le.setFocusType(e);
|
|
15388
15438
|
}
|
|
15389
15439
|
m.value && (Je.value = 0, Et(m.value));
|
|
15390
15440
|
});
|
|
@@ -15442,20 +15492,20 @@ var Am = { style: {
|
|
|
15442
15492
|
text: "Descending",
|
|
15443
15493
|
id: "desc",
|
|
15444
15494
|
icon: "arrow-down-narrow-wide"
|
|
15445
|
-
}]), ze = k([]), Be = k([]), $ = k(d.yKey), Ve = k(
|
|
15495
|
+
}]), 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] : []);
|
|
15446
15496
|
W(() => d.lockedRowGroupOptions.map((e) => e.id), (e, t) => {
|
|
15447
15497
|
let n = e ?? [], r = (t ?? []).filter((e) => !n.includes(e)), i = R.value.filter((e) => !r.includes(e));
|
|
15448
15498
|
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)));
|
|
15449
15499
|
});
|
|
15450
15500
|
let Ge = !1;
|
|
15451
|
-
W(
|
|
15501
|
+
W(oe, (e) => {
|
|
15452
15502
|
if (Ge || !Ue.value || !d.initialSecondaryYKeys?.length || e.length === 0) return;
|
|
15453
15503
|
Ge = !0;
|
|
15454
15504
|
let t = new Set(d.initialSecondaryYKeys);
|
|
15455
15505
|
He.value = e.filter((e) => t.has(e.columnField ?? "") || t.has(e.value)).map((e) => e.value);
|
|
15456
15506
|
}, { immediate: !0 });
|
|
15457
15507
|
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("");
|
|
15458
|
-
O(Eu, m), O(Ru, Ze), O(Au, Le), O(zu, R), O(Bu, Z), O(Vu, Re), O(Hu, Q), O(Uu, Xe), O(Wu, $), O(Gu, K), O(Ku, Ve), O(Ju, He), O(qu,
|
|
15508
|
+
O(Eu, m), O(Ru, Ze), O(Au, Le), O(zu, R), O(Bu, Z), O(Vu, Re), O(Hu, Q), O(Uu, Xe), O(Wu, $), O(Gu, K), O(Ku, Ve), O(Ju, He), O(qu, oe), O(Yu, Ue), O(Qu, Ke), W(ke, (e) => {
|
|
15459
15509
|
e && Xe.value && (Xe.value = void 0);
|
|
15460
15510
|
}, { immediate: !0 });
|
|
15461
15511
|
let Qe = (e) => {
|
|
@@ -15479,7 +15529,7 @@ var Am = { style: {
|
|
|
15479
15529
|
}), W(Ze, (e) => {
|
|
15480
15530
|
if (d.chartFilter && m.value) {
|
|
15481
15531
|
let t = d.chartFilter.colId, n = d.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
15482
|
-
n && n.length === 0 && (n = null),
|
|
15532
|
+
n && n.length === 0 && (n = null), Y(t, n || []);
|
|
15483
15533
|
let r = Pd({
|
|
15484
15534
|
filterType: "set",
|
|
15485
15535
|
values: n
|
|
@@ -15489,7 +15539,7 @@ var Am = { style: {
|
|
|
15489
15539
|
});
|
|
15490
15540
|
}
|
|
15491
15541
|
});
|
|
15492
|
-
let et = (e) => e?.label ?? "", tt = r(() => et(
|
|
15542
|
+
let et = (e) => e?.label ?? "", tt = r(() => et(se(K.value, $.value))), nt = r(() => {
|
|
15493
15543
|
let e = Ye.value;
|
|
15494
15544
|
if (!e) return null;
|
|
15495
15545
|
let t = De(qe.value?.fieldName)?.headerName || "values", n = tt.value || "value", r = d.stackValuesPageSize || e.total, i = Je.value * r + 1;
|
|
@@ -15505,11 +15555,11 @@ var Am = { style: {
|
|
|
15505
15555
|
}), it = (e) => {
|
|
15506
15556
|
!m.value || e === Je.value || (Je.value = e, p("stack-values-page-changed", e), Et(m.value));
|
|
15507
15557
|
}, at = (e) => {
|
|
15508
|
-
let t =
|
|
15558
|
+
let t = se(oe.value, e);
|
|
15509
15559
|
if (De(t?.columnField ?? e)?.context?.chartOverlayOnPrimaryAxis !== !0) return !1;
|
|
15510
|
-
let n =
|
|
15560
|
+
let n = se(K.value, $.value);
|
|
15511
15561
|
return t?.dataType != null && t.dataType === n?.dataType;
|
|
15512
|
-
}, ot = r(() => We.value.filter((e) => !at(e))), st = r(() => We.value.filter((e) => at(e))), lt = r(() => ot.value.map((e) => et(
|
|
15562
|
+
}, 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(() => {
|
|
15513
15563
|
let e = ft.value ? qe.value?.fieldValues.length ?? 0 : 1, t = ft.value ? "grouped" : "flat";
|
|
15514
15564
|
return `${Q.value?.id ?? "chart"}-${t}-${e}`;
|
|
15515
15565
|
}), St = r(() => {
|
|
@@ -15583,7 +15633,7 @@ var Am = { style: {
|
|
|
15583
15633
|
}))), We.value.length > 0) {
|
|
15584
15634
|
let t = De(B.value)?.context?.metadataDisplayFields?.[0] || B.value, r = dt.value;
|
|
15585
15635
|
for (let i of We.value) {
|
|
15586
|
-
let a =
|
|
15636
|
+
let a = se(oe.value, i), o = et(a), s = e ? `${i}${vs}` : i, c = Sm(B.value, t, s, o, ut.value), l = (Wt.value ?? []).filter((e) => e[s] != null).length, u = {
|
|
15587
15637
|
type: r,
|
|
15588
15638
|
id: Ue.value ? `metric-overlay-${i}` : "metric-overlay",
|
|
15589
15639
|
data: Wt.value,
|
|
@@ -15722,7 +15772,7 @@ var Am = { style: {
|
|
|
15722
15772
|
newState: { chartCategoryFields: e },
|
|
15723
15773
|
oldState: { chartCategoryFields: t }
|
|
15724
15774
|
});
|
|
15725
|
-
}), W(
|
|
15775
|
+
}), W(X, (e, t) => {
|
|
15726
15776
|
p("chart-state-changed", {
|
|
15727
15777
|
api: m.value,
|
|
15728
15778
|
newState: { tableGrouped: e },
|
|
@@ -15733,10 +15783,10 @@ var Am = { style: {
|
|
|
15733
15783
|
}), W(() => d.initialFocusData, (e, t) => {
|
|
15734
15784
|
if (!(ct(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
15735
15785
|
if (!e?.focusType) {
|
|
15736
|
-
|
|
15786
|
+
le.setFocuses([]);
|
|
15737
15787
|
return;
|
|
15738
15788
|
}
|
|
15739
|
-
|
|
15789
|
+
le.setFocusType(e?.focusType), le.setFocuses(e?.focuses ?? []);
|
|
15740
15790
|
}
|
|
15741
15791
|
}, { deep: !0 });
|
|
15742
15792
|
let wt = () => {
|
|
@@ -15747,7 +15797,7 @@ var Am = { style: {
|
|
|
15747
15797
|
return;
|
|
15748
15798
|
}
|
|
15749
15799
|
if (t) {
|
|
15750
|
-
let n = d.metricOverlayWithRowGroups ? [...
|
|
15800
|
+
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);
|
|
15751
15801
|
Be.value = r, qe.value = {
|
|
15752
15802
|
fieldName: t,
|
|
15753
15803
|
fieldValues: i
|
|
@@ -15759,9 +15809,9 @@ var Am = { style: {
|
|
|
15759
15809
|
ze.value = e;
|
|
15760
15810
|
}, Et = (e) => {
|
|
15761
15811
|
let t = ++I.value, n = R.value.length;
|
|
15762
|
-
if (wt(), F.value = !1, n === 0 || K.value.length === 0 || d.requireFiltersToShowData &&
|
|
15812
|
+
if (wt(), F.value = !1, n === 0 || K.value.length === 0 || d.requireFiltersToShowData && ce.filterModelEmpty.value) return;
|
|
15763
15813
|
if (d.serverSideChartHandler) {
|
|
15764
|
-
let e =
|
|
15814
|
+
let e = ce.filterModel.value, n = m.value?.getColumnDefs() || [];
|
|
15765
15815
|
if (e === null && d.initialGridState) {
|
|
15766
15816
|
let t = Ld(d.initialGridState, n, d.enableAdvancedFilter);
|
|
15767
15817
|
e = (d.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
@@ -15806,7 +15856,7 @@ var Am = { style: {
|
|
|
15806
15856
|
} : null;
|
|
15807
15857
|
} else Be.value = [], qe.value = null, Ye.value = null;
|
|
15808
15858
|
}, Dt = r(() => {
|
|
15809
|
-
let e = K.value, t =
|
|
15859
|
+
let e = K.value, t = oe.value;
|
|
15810
15860
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
15811
15861
|
}), Ot = (e) => {
|
|
15812
15862
|
let t = { [e.field]: e.key };
|
|
@@ -15954,7 +16004,7 @@ var Am = { style: {
|
|
|
15954
16004
|
chartDataEmpty: un.value,
|
|
15955
16005
|
missingFocusText: d.missingFocusText,
|
|
15956
16006
|
yAxisName: tt.value,
|
|
15957
|
-
yAxisOptionCount:
|
|
16007
|
+
yAxisOptionCount: q.value
|
|
15958
16008
|
})), _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(() => {
|
|
15959
16009
|
let e = {};
|
|
15960
16010
|
e.overlays = { noData: { text: "" } };
|
|
@@ -16032,7 +16082,7 @@ var Am = { style: {
|
|
|
16032
16082
|
}).filter((e) => e !== null)
|
|
16033
16083
|
});
|
|
16034
16084
|
}
|
|
16035
|
-
let s = ot.value.length > 0, c = ot.value.map((e) =>
|
|
16085
|
+
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;
|
|
16036
16086
|
if (o.push({
|
|
16037
16087
|
type: "number",
|
|
16038
16088
|
keys: r,
|
|
@@ -16097,7 +16147,7 @@ var Am = { style: {
|
|
|
16097
16147
|
}), bn = r(() => F.value || d.isLoading && (!At.value || At.value.length === 0)), xn = r(() => dn.value || !fe.value && !d.isLoading && pn.value !== ""), Sn = (e) => {
|
|
16098
16148
|
C.value = e, p("chart-collapsed", e);
|
|
16099
16149
|
}, Cn = (e) => {
|
|
16100
|
-
H.value || m.value && (m.value.setRowGroupColumns(e ? R.value : []),
|
|
16150
|
+
H.value || m.value && (m.value.setRowGroupColumns(e ? R.value : []), X.value = e);
|
|
16101
16151
|
};
|
|
16102
16152
|
function wn(e) {
|
|
16103
16153
|
return e?.hydrate ? h.value?.getFilterValueSelectedMetadataMap({ hydrate: !0 }) : h.value?.getFilterValueSelectedMetadataMap();
|
|
@@ -16113,7 +16163,7 @@ var Am = { style: {
|
|
|
16113
16163
|
}), S(() => {
|
|
16114
16164
|
if (d.initialGridState) {
|
|
16115
16165
|
let e = d.initialGridState.rowGroup?.groupColIds || [];
|
|
16116
|
-
R.value = e, !d.allFieldsAreFocusable && e.length > 0 &&
|
|
16166
|
+
R.value = e, !d.allFieldsAreFocusable && e.length > 0 && le.setFocusType(e[0]);
|
|
16117
16167
|
}
|
|
16118
16168
|
}), T(async () => {
|
|
16119
16169
|
await v(), E.value = d.filterPanelAboveChart;
|
|
@@ -16278,7 +16328,7 @@ var Am = { style: {
|
|
|
16278
16328
|
pivot: H.value,
|
|
16279
16329
|
filterTeleportLocation: E.value ? `#${w}` : void 0,
|
|
16280
16330
|
wrapHorizontalFilters: d.wrapHorizontalFilters,
|
|
16281
|
-
pagination: e.pagination || !
|
|
16331
|
+
pagination: e.pagination || !X.value,
|
|
16282
16332
|
onColumnRowGroupChanged: Ce,
|
|
16283
16333
|
onColumnValueChanged: be,
|
|
16284
16334
|
onGridReady: _e,
|
|
@@ -16293,16 +16343,16 @@ var Am = { style: {
|
|
|
16293
16343
|
}), {
|
|
16294
16344
|
"top-slot": G(() => [e.enableGroupingToggle && !H.value ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(Kp, {
|
|
16295
16345
|
key: 0,
|
|
16296
|
-
groupedModeEnabled:
|
|
16346
|
+
groupedModeEnabled: X.value,
|
|
16297
16347
|
tableConfigOptions: d.tableConfigOptions,
|
|
16298
16348
|
onToggleGroup: Cn,
|
|
16299
|
-
onTableOverlayChange:
|
|
16349
|
+
onTableOverlayChange: de,
|
|
16300
16350
|
onColumnConfigChange: ve
|
|
16301
16351
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (D(), i(Qn, {
|
|
16302
16352
|
key: 1,
|
|
16303
|
-
leftIcon:
|
|
16304
|
-
label:
|
|
16305
|
-
onClick: r[5] ||= (e) => Cn(!
|
|
16353
|
+
leftIcon: X.value ? "ungroup" : "group",
|
|
16354
|
+
label: X.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
16355
|
+
onClick: r[5] ||= (e) => Cn(!X.value),
|
|
16306
16356
|
variant: "secondary",
|
|
16307
16357
|
size: "lg"
|
|
16308
16358
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), j(n.$slots, "top-slot")]),
|