@turquoisehealth/pit-viper 2.194.2 → 2.194.3-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +16 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +819 -785
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-4daeb5a1]{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-4daeb5a1]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-4daeb5a1]{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-4daeb5a1]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-4daeb5a1]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-4daeb5a1]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-4daeb5a1]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-4daeb5a1]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-4daeb5a1]{color:#16696d;animation:1.5s ease-in-out infinite pulse-4daeb5a1}@keyframes pulse-4daeb5a1{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-e19d6d09]{font-size:.5rem;font-weight:700}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-4505f3f4]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-4505f3f4]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-4505f3f4]:hover,&[data-v-4505f3f4]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-4505f3f4]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-4505f3f4]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-4505f3f4]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-4505f3f4]{pointer-events:auto;color:inherit}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-4decbec2]{cursor:text;background:#f7f8f8;border:2px solid #0000;border-radius:.5rem;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-4decbec2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4decbec2]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4decbec2]:focus-within{border:2px solid #36c5ba}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-e1991382]:hover{color:#16696d}.suggested-title-label[data-v-e1991382]:hover{color:#0d5256;text-decoration:underline}.ag-custom-header-cell[data-v-385ad98a]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a]{opacity:1}.pv-table-row-number[data-v-686928ce]{text-align:center;color:#89989b;padding:8px 12px 8px 0}.pv-table-overlay{z-index:2;pointer-events:none;background:#fff;width:100%;height:calc(100% - 40px);position:absolute;top:80px}.pv-data-table .ag-header-cell-resize{border:none!important}.pv-data-table .ag-cell-inline-editing .ag-cell-editor{height:100%!important}.pv-data-table .ag-rich-select-value{min-height:100%!important}.pv-data-table .ag-row-group-leaf-indent{margin-left:0;padding-left:7px}.pv-data-table .ag-custom-loading-cell{background-color:#ccc;border-radius:4px;width:100%;height:40%;margin:15px}.pv-data-table .ag-group-value{width:100%;height:100%}.pv-data-table .ag-row:not(.ag-row-group) .ag-cell-wrapper{align-items:stretch;height:100%}.pv-data-table .ag-menu-option:hover{background-color:#f7f8f8}.pv-data-table .ag-menu-option-shortcut{color:#89989b}.pv-data-table .ag-menu-option:active{background-color:#e8f2f4}.pv-data-table .ag-menu-option-text{font-family:Inter,sans-serif}.pv-data-table .ag-header-cell-menu-button:hover{box-shadow:unset!important}.pv-data-table .ag-button{border-radius:4px!important;padding:3px 8px!important;font-size:12px!important}.pv-data-table-grouped-card .ag-body-horizontal-scroll{display:none!important}.pv-data-table-grouped-card .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-grouped-card .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-data-table-grouped-card .ag-row-group-contracted{background:linear-gradient(#fff 5px,#f7f8f8 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded{background:linear-gradient(#fff 5px,#f7f8f8 5px)!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:5px!important}.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:0!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-wrapper,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-wrapper{align-items:center!important;height:100%!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-value,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-value{height:100%!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded){border-bottom:1px solid #e0e0e0!important;border-left:1px solid #e0e0e0!important;border-right:1px solid #e0e0e0!important}.pv-data-table-grouped-card .ag-row-group-contracted:after{content:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px;position:absolute;inset:5px 0}.pv-data-table-grouped-card .ag-row-group-expanded:after{content:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px 4px 0 0;position:absolute;inset:5px 0 0}.pv-data-table-grouped-card .ag-row-group-contracted:hover,.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px)!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded):hover{background-color:#f7f8f8!important}.pv-data-table-grouped-card .ag-group-value{height:100%}.pv-text-tertiary[data-v-34615cd0]{color:#89989b}.pv-button-placeholder[data-v-34615cd0]{width:24px;height:24px}.pv-sort-option[data-v-34615cd0]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-34615cd0]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-34615cd0]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-34615cd0]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:#e3e7ea!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-34615cd0]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-34615cd0]{display:flex}.sort-divider[data-v-34615cd0]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-34615cd0]:after{content:attr(data-label);font-size:inherit;white-space:nowrap;background:#fff;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pv-menu-nested[data-v-681e0d80]:after{content:"›"}[data-v-681e0d80] .pv-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}.pv-tooltip a[data-v-681e0d80]{color:inherit}.pv-chart-option[data-v-681e0d80]{min-width:150px;max-width:225px}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.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, onMounted as w, onUnmounted as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toRef as F, unref as I, useId 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, onMounted as w, onUnmounted as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toRef as F, unref as I, useId as L, useModel as R, useSlots as z, useTemplateRef as ee, vModelCheckbox as te, vModelText as ne, vShow as re, watch as B, withCtx as V, withDirectives as H, withModifiers as U } from "vue";
|
|
4
4
|
import { AgCharts as W } from "ag-charts-vue3";
|
|
5
|
-
import { LicenseManager as
|
|
6
|
-
import { AgGridVue as
|
|
7
|
-
import { CellStyleModule as ae, CheckboxEditorModule as
|
|
8
|
-
import { AdvancedFilterModule as
|
|
9
|
-
import { onClickOutside as
|
|
5
|
+
import { LicenseManager as ie } from "ag-charts-enterprise";
|
|
6
|
+
import { AgGridVue as G } from "ag-grid-vue3";
|
|
7
|
+
import { CellStyleModule as ae, CheckboxEditorModule as oe, ClientSideRowModelModule as K, ColumnApiModule as q, CsvExportModule as se, CustomEditorModule as ce, CustomFilterModule as le, DateEditorModule as ue, EventApiModule as J, GridStateModule as de, LargeTextEditorModule as fe, ModuleRegistry as pe, NumberEditorModule as me, PaginationModule as he, QuickFilterModule as ge, RowApiModule as _e, RowStyleModule as ve, ScrollApiModule as ye, SelectEditorModule as Y, TextEditorModule as be, TextFilterModule as X, UndoRedoEditModule as xe, themeQuartz as Se } from "ag-grid-community";
|
|
8
|
+
import { AdvancedFilterModule as Z, CellSelectionModule as Ce, ClientSideRowModelApiModule as we, ClipboardModule as Te, ColumnMenuModule as Ee, ContextMenuModule as De, LicenseManager as Oe, MultiFilterModule as ke, RenderApiModule as Ae, RichSelectModule as je, RowGroupingModule as Me, RowSelectionModule as Ne, ServerSideRowModelApiModule as Pe, ServerSideRowModelModule as Fe, SetFilterModule as Ie, TooltipModule as Le, ValidationModule as Re } from "ag-grid-enterprise";
|
|
9
|
+
import { onClickOutside as ze, onKeyStroke as Be, toRef as Ve, useDebounceFn as Q, useElementBounding as He, useElementHover as Ue, useToggle as We, watchDebounced as Ge } from "@vueuse/core";
|
|
10
10
|
import Ke from "papaparse";
|
|
11
11
|
import { useSortable as qe } from "@vueuse/integrations/useSortable.mjs";
|
|
12
12
|
import { vOnClickOutside as Je } from "@vueuse/components";
|
|
@@ -250,7 +250,7 @@ var It = { style: { position: "relative" } }, Lt = {
|
|
|
250
250
|
emits: ["series-visibility-change"],
|
|
251
251
|
setup(e, { expose: n, emit: c }) {
|
|
252
252
|
let l = e, d = c;
|
|
253
|
-
|
|
253
|
+
ie.setLicenseKey(Kt);
|
|
254
254
|
let f = O(null), p = O({}), m = () => {
|
|
255
255
|
if (!f.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
256
256
|
let e = f.value.$el;
|
|
@@ -395,7 +395,7 @@ var It = { style: { position: "relative" } }, Lt = {
|
|
|
395
395
|
},
|
|
396
396
|
emits: ["list-order-updated"],
|
|
397
397
|
setup(e, { expose: t, emit: n }) {
|
|
398
|
-
let r = O(null), i =
|
|
398
|
+
let r = O(null), i = ee("popoverList"), a = e, s = n;
|
|
399
399
|
return a.isSortable && a.isList && qe(i, [], {
|
|
400
400
|
animation: 150,
|
|
401
401
|
onUpdate: () => {
|
|
@@ -464,7 +464,7 @@ var It = { style: { position: "relative" } }, Lt = {
|
|
|
464
464
|
}, C = () => {
|
|
465
465
|
p.value = !1;
|
|
466
466
|
};
|
|
467
|
-
t({ closeDropdown: C }),
|
|
467
|
+
t({ closeDropdown: C }), B(p, (e) => {
|
|
468
468
|
e ? v(() => {
|
|
469
469
|
b(), f("dropdown-open");
|
|
470
470
|
}) : f("dropdown-closed");
|
|
@@ -476,7 +476,7 @@ var It = { style: { position: "relative" } }, Lt = {
|
|
|
476
476
|
zIndex: 10,
|
|
477
477
|
...d.popoverCssProperties
|
|
478
478
|
} : d.popoverCssProperties);
|
|
479
|
-
return (t, r) =>
|
|
479
|
+
return (t, r) => H((E(), o("div", Qt, [s("button", {
|
|
480
480
|
ref_key: "triggerRef",
|
|
481
481
|
ref: m,
|
|
482
482
|
class: y({
|
|
@@ -499,7 +499,7 @@ var It = { style: { position: "relative" } }, Lt = {
|
|
|
499
499
|
isSortable: e.isSortable,
|
|
500
500
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
501
501
|
}, {
|
|
502
|
-
default:
|
|
502
|
+
default: V(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span", en, "Loading...")) : a("", !0)], !0)]),
|
|
503
503
|
_: 3
|
|
504
504
|
}, 8, [
|
|
505
505
|
"class",
|
|
@@ -663,7 +663,7 @@ function _n(e, t) {
|
|
|
663
663
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
664
664
|
}
|
|
665
665
|
function vn(e, t = {}) {
|
|
666
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = nn(), l = i ??
|
|
666
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = nn(), l = i ?? z(), u = r(() => c.value || !l ? !1 : !!l[e === "default" || e === "" ? "default" : e]), d = O(!1), f = null, p = null, m = () => {
|
|
667
667
|
f &&= (f.disconnect(), null), p &&= (p.removeEventListener("slotchange", h), null);
|
|
668
668
|
}, h = () => {
|
|
669
669
|
if (!c.value) {
|
|
@@ -697,7 +697,7 @@ function vn(e, t = {}) {
|
|
|
697
697
|
characterData: !0
|
|
698
698
|
}));
|
|
699
699
|
};
|
|
700
|
-
return w(g), C(m),
|
|
700
|
+
return w(g), C(m), B(() => I(n), () => {
|
|
701
701
|
c.value && g();
|
|
702
702
|
}), {
|
|
703
703
|
present: r(() => c.value ? d.value : u.value),
|
|
@@ -803,7 +803,7 @@ var yn = [
|
|
|
803
803
|
"data-testid": "pv-tag-close-icon",
|
|
804
804
|
size: 12,
|
|
805
805
|
name: "close",
|
|
806
|
-
onClick: r[0] ||=
|
|
806
|
+
onClick: r[0] ||= U((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
807
807
|
})) : a("", !0)
|
|
808
808
|
], 14, Sn));
|
|
809
809
|
}
|
|
@@ -1599,7 +1599,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1599
1599
|
}),
|
|
1600
1600
|
emits: ["update:modelValue"],
|
|
1601
1601
|
setup(e) {
|
|
1602
|
-
let t = e, c =
|
|
1602
|
+
let t = e, c = R(e, "modelValue"), l = O(null), u = O(null), d = O(null), f = Ue(l), p = Ue(d), m = {
|
|
1603
1603
|
"top-center": "top",
|
|
1604
1604
|
"bottom-center": "bottom",
|
|
1605
1605
|
"center-left": "left",
|
|
@@ -1619,13 +1619,13 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1619
1619
|
strategy: t.positioningStrategy,
|
|
1620
1620
|
middleware: h
|
|
1621
1621
|
});
|
|
1622
|
-
|
|
1622
|
+
B(c, (e) => {
|
|
1623
1623
|
e && u.value && d.value && _();
|
|
1624
1624
|
});
|
|
1625
|
-
let v =
|
|
1625
|
+
let v = He(u), y = Q(() => {
|
|
1626
1626
|
c.value && _();
|
|
1627
1627
|
}, 5);
|
|
1628
|
-
|
|
1628
|
+
B([
|
|
1629
1629
|
v.top,
|
|
1630
1630
|
v.left,
|
|
1631
1631
|
v.width,
|
|
@@ -1652,11 +1652,11 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1652
1652
|
}, N = () => {
|
|
1653
1653
|
t.disableClickOutsideToClose || D(!1);
|
|
1654
1654
|
};
|
|
1655
|
-
return
|
|
1655
|
+
return B(j, (e) => {
|
|
1656
1656
|
t.showOnHover && D(e);
|
|
1657
1657
|
}), T(() => {
|
|
1658
1658
|
C();
|
|
1659
|
-
}), (r, u) =>
|
|
1659
|
+
}), (r, u) => H((E(), o("div", hi, [s("div", {
|
|
1660
1660
|
ref_key: "triggerWrapper",
|
|
1661
1661
|
ref: l,
|
|
1662
1662
|
onClick: M
|
|
@@ -1664,12 +1664,12 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
to: e.teleportLocation,
|
|
1666
1666
|
disabled: !t.useTeleport
|
|
1667
|
-
}, [
|
|
1667
|
+
}, [H(s("div", {
|
|
1668
1668
|
class: "pv-floating",
|
|
1669
1669
|
ref_key: "floating",
|
|
1670
1670
|
ref: d,
|
|
1671
1671
|
style: x(b.value)
|
|
1672
|
-
}, [A(r.$slots, "content")], 4), [[
|
|
1672
|
+
}, [A(r.$slots, "content")], 4), [[re, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[I(Je), [N, { ignore: k.value }]]]);
|
|
1673
1673
|
}
|
|
1674
1674
|
}), _i = ["data-variant"], vi = /* @__PURE__ */ d({
|
|
1675
1675
|
__name: "PvTooltipV2",
|
|
@@ -1699,11 +1699,11 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1699
1699
|
},
|
|
1700
1700
|
setup(e) {
|
|
1701
1701
|
return (t, n) => (E(), i(gi, b(p(t.$props)), c({
|
|
1702
|
-
trigger:
|
|
1702
|
+
trigger: V(() => [A(t.$slots, "trigger", {}, () => [s("p", null, P(e.label), 1)])]),
|
|
1703
1703
|
_: 2
|
|
1704
1704
|
}, [t.$slots.content || e.description ? {
|
|
1705
1705
|
name: "content",
|
|
1706
|
-
fn:
|
|
1706
|
+
fn: V(() => [s("div", {
|
|
1707
1707
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1708
1708
|
role: "tooltip",
|
|
1709
1709
|
"data-variant": e.variant
|
|
@@ -1722,7 +1722,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1722
1722
|
}),
|
|
1723
1723
|
emits: ["update:modelValue"],
|
|
1724
1724
|
setup(e) {
|
|
1725
|
-
let n =
|
|
1725
|
+
let n = R(e, "modelValue"), r = (e) => {
|
|
1726
1726
|
e.disabled || (n.value = e.value);
|
|
1727
1727
|
};
|
|
1728
1728
|
return (a, s) => (E(), o("div", { class: y(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(E(!0), o(t, null, k(e.options, (e) => (E(), i(vi, {
|
|
@@ -1731,7 +1731,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1731
1731
|
position: "bottom-right",
|
|
1732
1732
|
style: { width: "100%" }
|
|
1733
1733
|
}, c({
|
|
1734
|
-
trigger:
|
|
1734
|
+
trigger: V(() => [u(mn, {
|
|
1735
1735
|
class: y(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1736
1736
|
variant: "ghost",
|
|
1737
1737
|
label: e.label,
|
|
@@ -1754,7 +1754,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1754
1754
|
_: 2
|
|
1755
1755
|
}, [e.disabledReason ? {
|
|
1756
1756
|
name: "content",
|
|
1757
|
-
fn:
|
|
1757
|
+
fn: V(() => [l(P(e.disabledReason), 1)]),
|
|
1758
1758
|
key: "0"
|
|
1759
1759
|
} : void 0]), 1024))), 128))], 2));
|
|
1760
1760
|
}
|
|
@@ -1774,7 +1774,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1774
1774
|
"pv-icon": n.value,
|
|
1775
1775
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1776
1776
|
})), c = r(() => ({ width: i.value })), l = r(() => `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg`), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
1777
|
-
return
|
|
1777
|
+
return B(u, () => {
|
|
1778
1778
|
n.value = !0;
|
|
1779
1779
|
}), (e, t) => (E(), o("div", bi, [n.value ? (E(), o("div", {
|
|
1780
1780
|
key: 0,
|
|
@@ -1821,8 +1821,8 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1821
1821
|
}),
|
|
1822
1822
|
emits: ["update:modelValue"],
|
|
1823
1823
|
setup(e) {
|
|
1824
|
-
let t = e, n =
|
|
1825
|
-
|
|
1824
|
+
let t = e, n = ee("dialog"), r = R(e, "modelValue");
|
|
1825
|
+
B(() => r.value, () => {
|
|
1826
1826
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
1827
1827
|
});
|
|
1828
1828
|
let i = () => {
|
|
@@ -1910,17 +1910,17 @@ var Ai = [
|
|
|
1910
1910
|
}),
|
|
1911
1911
|
emits: ["update:modelValue"],
|
|
1912
1912
|
setup(e, { expose: t }) {
|
|
1913
|
-
let n = e, i =
|
|
1913
|
+
let n = e, i = ee("search-input"), c = R(e, "modelValue"), l = r(() => ({
|
|
1914
1914
|
"pv-input-search": !0,
|
|
1915
1915
|
"pv-full-width": !0,
|
|
1916
1916
|
"pv-input-padded-end": !0
|
|
1917
1917
|
}));
|
|
1918
1918
|
return w(() => {
|
|
1919
|
-
n.displayShortcut &&
|
|
1919
|
+
n.displayShortcut && Be(Ii, (e) => {
|
|
1920
1920
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
1921
1921
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
1922
1922
|
});
|
|
1923
|
-
}), t({ input: i }), (t, n) => (E(), o("div", Ni, [
|
|
1923
|
+
}), t({ input: i }), (t, n) => (E(), o("div", Ni, [H(s("input", {
|
|
1924
1924
|
ref: "search-input",
|
|
1925
1925
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1926
1926
|
"data-testid": "pv-search-input",
|
|
@@ -1979,20 +1979,20 @@ var Ri = {
|
|
|
1979
1979
|
}),
|
|
1980
1980
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
1981
1981
|
setup(e, { emit: n }) {
|
|
1982
|
-
let r = e, i = n, c =
|
|
1982
|
+
let r = e, i = n, c = ee("sidePanel"), l = R(e, "searchInput"), d = R(e, "modelValue");
|
|
1983
1983
|
w(() => {
|
|
1984
1984
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && f();
|
|
1985
1985
|
});
|
|
1986
1986
|
let f = () => {
|
|
1987
|
-
c.value &&
|
|
1987
|
+
c.value && ze(c.value, () => {
|
|
1988
1988
|
d.value && (i("click-outside"), p());
|
|
1989
1989
|
}, { ignore: [".pv-click-outside-ignore"] });
|
|
1990
1990
|
}, p = () => {
|
|
1991
1991
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
1992
1992
|
};
|
|
1993
|
-
return
|
|
1993
|
+
return B(() => d.value, () => {
|
|
1994
1994
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
1995
|
-
}),
|
|
1995
|
+
}), Be("Escape", () => {
|
|
1996
1996
|
c.value && d.value && p();
|
|
1997
1997
|
}), (n, i) => (E(), o("div", {
|
|
1998
1998
|
class: "pv-drawer pv-surface",
|
|
@@ -2223,11 +2223,11 @@ var Ri = {
|
|
|
2223
2223
|
variant: "dark",
|
|
2224
2224
|
"tooltip-position": "top-left"
|
|
2225
2225
|
}, {
|
|
2226
|
-
label:
|
|
2226
|
+
label: V(() => [u(sn, {
|
|
2227
2227
|
name: "close",
|
|
2228
|
-
onClick: r[0] ||=
|
|
2228
|
+
onClick: r[0] ||= U((e) => n.$emit("handle-clear"), ["stop"])
|
|
2229
2229
|
})]),
|
|
2230
|
-
"tooltip-content":
|
|
2230
|
+
"tooltip-content": V(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
2231
2231
|
_: 1
|
|
2232
2232
|
})) : a("", !0)
|
|
2233
2233
|
], 10, Qi));
|
|
@@ -2328,7 +2328,7 @@ var pa = {
|
|
|
2328
2328
|
};
|
|
2329
2329
|
return w(() => {
|
|
2330
2330
|
p();
|
|
2331
|
-
}),
|
|
2331
|
+
}), B(() => n.queryText, () => {
|
|
2332
2332
|
p();
|
|
2333
2333
|
}), (n, r) => (E(), o(t, null, [
|
|
2334
2334
|
e.avatar ? (E(), i(Zi, {
|
|
@@ -2411,7 +2411,7 @@ var pa = {
|
|
|
2411
2411
|
}),
|
|
2412
2412
|
emits: ["update:modelValue"],
|
|
2413
2413
|
setup(e) {
|
|
2414
|
-
let t = e.id ??
|
|
2414
|
+
let t = e.id ?? L(), n = R(e, "modelValue");
|
|
2415
2415
|
return (r, i) => (E(), o("label", {
|
|
2416
2416
|
for: I(t),
|
|
2417
2417
|
class: y(["pv-label pv-switch pv-label-hover", {
|
|
@@ -2419,7 +2419,7 @@ var pa = {
|
|
|
2419
2419
|
"pv-input-xsmall": e.size === "sm",
|
|
2420
2420
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
2421
2421
|
}])
|
|
2422
|
-
}, [e.label ? (E(), o("span", ya, P(e.label), 1)) : a("", !0),
|
|
2422
|
+
}, [e.label ? (E(), o("span", ya, P(e.label), 1)) : a("", !0), H(s("input", {
|
|
2423
2423
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
2424
2424
|
disabled: e.disabled,
|
|
2425
2425
|
"aria-label": e.ariaLabel,
|
|
@@ -2443,11 +2443,11 @@ var pa = {
|
|
|
2443
2443
|
useTeleport: !0,
|
|
2444
2444
|
variant: "white"
|
|
2445
2445
|
}, c({
|
|
2446
|
-
trigger:
|
|
2446
|
+
trigger: V(() => [u(mn, {
|
|
2447
2447
|
variant: "ghost",
|
|
2448
2448
|
class: y(["pv-text-brand", { "pv-menu-action-button": !l.value }]),
|
|
2449
2449
|
leftIcon: n.value,
|
|
2450
|
-
onClick:
|
|
2450
|
+
onClick: U(d, ["stop"]),
|
|
2451
2451
|
disabled: a.value
|
|
2452
2452
|
}, null, 8, [
|
|
2453
2453
|
"leftIcon",
|
|
@@ -2457,7 +2457,7 @@ var pa = {
|
|
|
2457
2457
|
_: 2
|
|
2458
2458
|
}, [o.value ? {
|
|
2459
2459
|
name: "content",
|
|
2460
|
-
fn:
|
|
2460
|
+
fn: V(() => [s("div", null, P(o.value), 1)]),
|
|
2461
2461
|
key: "0"
|
|
2462
2462
|
} : void 0]), 1024));
|
|
2463
2463
|
}
|
|
@@ -2499,7 +2499,7 @@ var pa = {
|
|
|
2499
2499
|
},
|
|
2500
2500
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2501
2501
|
setup(e, { emit: t }) {
|
|
2502
|
-
let n = e, c =
|
|
2502
|
+
let n = e, c = ee("inputRef"), l = m(Ca, void 0), d = m(wa, O(!1)), p = m(Ta, void 0), h = m(Ea, void 0), g = r(() => {
|
|
2503
2503
|
if (!d.value || !sa(n)) return [];
|
|
2504
2504
|
let e = n.children ? ca(n.children) : [];
|
|
2505
2505
|
if (p?.value) {
|
|
@@ -2595,7 +2595,7 @@ var pa = {
|
|
|
2595
2595
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2596
2596
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2597
2597
|
"aria-expanded": e.expanded,
|
|
2598
|
-
onClick: r[0] ||=
|
|
2598
|
+
onClick: r[0] ||= U((e) => F("toggle-expanded"), ["prevent", "stop"])
|
|
2599
2599
|
}, [u(sn, {
|
|
2600
2600
|
name: e.chevronIcon ?? "chevron-right",
|
|
2601
2601
|
size: 12
|
|
@@ -2634,8 +2634,8 @@ var pa = {
|
|
|
2634
2634
|
}),
|
|
2635
2635
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2636
2636
|
setup(e, { emit: n }) {
|
|
2637
|
-
let i = e, s = m(Ca, void 0), c =
|
|
2638
|
-
|
|
2637
|
+
let i = e, s = m(Ca, void 0), c = R(e, "selectedIds"), l = m(ka, O(!1)), d = m(Oa, O(!1)), f = m(Ea, void 0), p = m(Da, void 0), h = O(i.defaultExpanded ?? !1), g = O(!1), v = O(!1), b = O(i.children ?? []), S = O(/* @__PURE__ */ new Set());
|
|
2638
|
+
B(() => i.children, (e) => {
|
|
2639
2639
|
if (!e) {
|
|
2640
2640
|
b.value = [];
|
|
2641
2641
|
return;
|
|
@@ -2651,7 +2651,7 @@ var pa = {
|
|
|
2651
2651
|
}), D = r(() => sa({
|
|
2652
2652
|
...i,
|
|
2653
2653
|
children: b.value
|
|
2654
|
-
}) && i.level < Ia), A = r(() => D.value ? l.value ? h.value || !!i.disabled : !0 : !1), M = r(() => h.value ? "chevron-down" : "chevron-right"), N = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), P = (e) => N(e) ? !0 : f?.value?.has(i.id) ? !(p?.value?.get(i.id))?.has(e.id) : !1, F = n,
|
|
2654
|
+
}) && i.level < Ia), A = r(() => D.value ? l.value ? h.value || !!i.disabled : !0 : !1), M = r(() => h.value ? "chevron-down" : "chevron-right"), N = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), P = (e) => N(e) ? !0 : f?.value?.has(i.id) ? !(p?.value?.get(i.id))?.has(e.id) : !1, F = n, L = r(() => v.value || i.totalChildCount == null ? !1 : i.totalChildCount > b.value.length), z = async () => {
|
|
2655
2655
|
if (g.value) return;
|
|
2656
2656
|
if (!i.handleSeeMore) {
|
|
2657
2657
|
F("see-more", {
|
|
@@ -2686,7 +2686,7 @@ var pa = {
|
|
|
2686
2686
|
} finally {
|
|
2687
2687
|
g.value = !1;
|
|
2688
2688
|
}
|
|
2689
|
-
},
|
|
2689
|
+
}, ee = (e) => {
|
|
2690
2690
|
if (l.value && D.value && e.option.id === i.id && !d.value) {
|
|
2691
2691
|
C();
|
|
2692
2692
|
return;
|
|
@@ -2709,7 +2709,7 @@ var pa = {
|
|
|
2709
2709
|
showChevron: I(l) && D.value,
|
|
2710
2710
|
chevronIcon: M.value,
|
|
2711
2711
|
expanded: h.value,
|
|
2712
|
-
onHandleSelected:
|
|
2712
|
+
onHandleSelected: ee,
|
|
2713
2713
|
onToggleExpanded: C,
|
|
2714
2714
|
selected: N(i)
|
|
2715
2715
|
}), null, 16, [
|
|
@@ -2725,7 +2725,7 @@ var pa = {
|
|
|
2725
2725
|
key: 0,
|
|
2726
2726
|
role: "list",
|
|
2727
2727
|
style: x(w.value)
|
|
2728
|
-
}, [(E(!0), o(t, null, k(b.value, (t) =>
|
|
2728
|
+
}, [(E(!0), o(t, null, k(b.value, (t) => H((E(), o("li", {
|
|
2729
2729
|
key: t.id,
|
|
2730
2730
|
"data-active": N(t) ? "true" : null,
|
|
2731
2731
|
class: y(e.itemClass)
|
|
@@ -2746,13 +2746,13 @@ var pa = {
|
|
|
2746
2746
|
"queryText",
|
|
2747
2747
|
"highlightSearchText",
|
|
2748
2748
|
"level"
|
|
2749
|
-
])], 10, Pa)), [[
|
|
2749
|
+
])], 10, Pa)), [[re, !i.disabled || P(t)]])), 128)), L.value ? (E(), o("li", Fa, [u(mn, {
|
|
2750
2750
|
class: "pv-text-brand",
|
|
2751
2751
|
variant: "ghost",
|
|
2752
2752
|
label: "See more",
|
|
2753
2753
|
loading: g.value,
|
|
2754
2754
|
"data-testid": "pv-menu-item-see-more",
|
|
2755
|
-
onClick:
|
|
2755
|
+
onClick: z
|
|
2756
2756
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
2757
2757
|
};
|
|
2758
2758
|
}
|
|
@@ -2779,10 +2779,10 @@ var pa = {
|
|
|
2779
2779
|
}),
|
|
2780
2780
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
2781
2781
|
setup(e, { emit: n }) {
|
|
2782
|
-
let i = e, s = n, c =
|
|
2783
|
-
|
|
2782
|
+
let i = e, s = n, c = R(e, "selectedItems"), l = N(c.value);
|
|
2783
|
+
B(c, (e) => {
|
|
2784
2784
|
l.value = e;
|
|
2785
|
-
}),
|
|
2785
|
+
}), B(l, (e) => {
|
|
2786
2786
|
e !== c.value && (c.value = e);
|
|
2787
2787
|
}), D(Ca, l), D(wa, r(() => !!i.enableCascadeSelection));
|
|
2788
2788
|
let d = m(Ta, void 0), f = m(Oa, O(!1)), p = m(Ea, void 0), h = m(Da, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
@@ -2822,7 +2822,7 @@ var pa = {
|
|
|
2822
2822
|
for (let t of e) if (b.value.has(t.id) || t.children?.length && x(t.children)) return !0;
|
|
2823
2823
|
return !1;
|
|
2824
2824
|
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = (e, t) => !!(!t || b.value.has(e.id) || p?.value?.has(e.id) || e.children?.length && x(e.children));
|
|
2825
|
-
return (n, r) => (E(), o("ul", Ra, [(E(!0), o(t, null, k(e.options, (t) =>
|
|
2825
|
+
return (n, r) => (E(), o("ul", Ra, [(E(!0), o(t, null, k(e.options, (t) => H((E(), o("li", {
|
|
2826
2826
|
key: t.id,
|
|
2827
2827
|
"data-active": S(t),
|
|
2828
2828
|
"data-testid": e.itemTestId,
|
|
@@ -2839,7 +2839,7 @@ var pa = {
|
|
|
2839
2839
|
"config",
|
|
2840
2840
|
"itemClass",
|
|
2841
2841
|
"queryText"
|
|
2842
|
-
])], 10, za)), [[
|
|
2842
|
+
])], 10, za)), [[re, C(t, e.isLoading || i.readOnly)]])), 128)), e.hasMoreOptions && !i.readOnly ? (E(), o("li", Ba, [u(mn, {
|
|
2843
2843
|
class: "pv-text-brand",
|
|
2844
2844
|
variant: "ghost",
|
|
2845
2845
|
label: "See more",
|
|
@@ -2999,19 +2999,19 @@ var pa = {
|
|
|
2999
2999
|
return t;
|
|
3000
3000
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
3001
3001
|
let e = c.additionalCounter ?? 0;
|
|
3002
|
-
if (c.enableCascadeSelection && c.countSelectedParents &&
|
|
3002
|
+
if (c.enableCascadeSelection && c.countSelectedParents && z.value?.length) return da(z.value) + e;
|
|
3003
3003
|
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length + e;
|
|
3004
3004
|
let t = new Set(W.value.map((e) => e.id));
|
|
3005
3005
|
return ua(c.options, t) + e;
|
|
3006
|
-
}), T = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection &&
|
|
3006
|
+
}), T = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection && z.value?.length ? z.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
3007
3007
|
g("see-more", e ?? {});
|
|
3008
|
-
}, j =
|
|
3009
|
-
W.value = e, ne.value || (
|
|
3008
|
+
}, j = ee("searchInputRef"), [M, F] = We(c.defaultOpen), L = R(e, "modelValue"), z = R(e, "selectionState"), te = R(e, "searchInput"), ne = r(() => c.menuActionsVariant === "cancel-confirm"), re = (e) => {
|
|
3009
|
+
W.value = e, ne.value || (L.value = e, z.value = S());
|
|
3010
|
+
}, H = () => {
|
|
3011
|
+
ne.value && (L.value = W.value, z.value = S());
|
|
3010
3012
|
}, U = () => {
|
|
3011
|
-
ne.value && (
|
|
3012
|
-
},
|
|
3013
|
-
ne.value && (W.value = ee.value);
|
|
3014
|
-
}, W = N(ee.value), G = (e) => d.value.get(e), ie = (e) => {
|
|
3013
|
+
ne.value && (W.value = L.value);
|
|
3014
|
+
}, W = N(L.value), ie = (e) => d.value.get(e), G = (e) => {
|
|
3015
3015
|
if (!c.enableCascadeSelection || !e) return;
|
|
3016
3016
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
3017
3017
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -3027,55 +3027,55 @@ var pa = {
|
|
|
3027
3027
|
for (let t of i) e.has(t.id) || a(t, t.id);
|
|
3028
3028
|
continue;
|
|
3029
3029
|
}
|
|
3030
|
-
a(
|
|
3030
|
+
a(ie(r.id), r.id);
|
|
3031
3031
|
}
|
|
3032
3032
|
f.value = t, m.value = n, W.value = r;
|
|
3033
3033
|
}, ae = r({
|
|
3034
3034
|
get: () => W.value,
|
|
3035
3035
|
set: (e) => {
|
|
3036
|
-
c.readOnly ||
|
|
3036
|
+
c.readOnly || re(e);
|
|
3037
3037
|
}
|
|
3038
|
-
}),
|
|
3038
|
+
}), oe = () => {
|
|
3039
3039
|
te.value = "", M.value = !1;
|
|
3040
|
-
},
|
|
3040
|
+
}, K = r(() => {
|
|
3041
3041
|
let e = c.size === "lg" ? 24 : 30;
|
|
3042
3042
|
return c.overlayTrigger ? -e : void 0;
|
|
3043
3043
|
});
|
|
3044
|
-
|
|
3045
|
-
if (c.enableCascadeSelection &&
|
|
3046
|
-
|
|
3044
|
+
B(() => L.value, (e) => {
|
|
3045
|
+
if (c.enableCascadeSelection && z.value?.length && e.length === 0) {
|
|
3046
|
+
G(z.value);
|
|
3047
3047
|
return;
|
|
3048
3048
|
}
|
|
3049
3049
|
W.value = e;
|
|
3050
|
-
}),
|
|
3051
|
-
|
|
3050
|
+
}), B(() => [z.value, c.options], () => {
|
|
3051
|
+
G(z.value);
|
|
3052
3052
|
}, {
|
|
3053
3053
|
deep: !0,
|
|
3054
3054
|
immediate: !0
|
|
3055
|
-
}),
|
|
3056
|
-
e ? (
|
|
3055
|
+
}), B(M, (e) => {
|
|
3056
|
+
e ? (U(), v(() => {
|
|
3057
3057
|
c.overlayTrigger && !c.disableSearchInput && j.value?.input?.focus(), g("dropdown-open");
|
|
3058
|
-
})) : (
|
|
3058
|
+
})) : (U(), g("dropdown-closed"));
|
|
3059
3059
|
});
|
|
3060
|
-
let
|
|
3060
|
+
let q = r(() => {
|
|
3061
3061
|
if (te.value === "") return c.options;
|
|
3062
3062
|
let e = te.value.toLocaleLowerCase();
|
|
3063
3063
|
return c.enableCascadeSelection ? fa(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
3064
|
-
}),
|
|
3064
|
+
}), se = () => {
|
|
3065
3065
|
if (c.enableCascadeSelection) {
|
|
3066
3066
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
3067
3067
|
for (let r of n) sa(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
3068
3068
|
};
|
|
3069
|
-
t(
|
|
3069
|
+
t(q.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3070
3070
|
}
|
|
3071
|
-
|
|
3071
|
+
re(c.enableCascadeSelection ? ca(q.value) : q.value);
|
|
3072
|
+
}, ce = () => {
|
|
3073
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), re([]);
|
|
3072
3074
|
}, le = () => {
|
|
3073
|
-
|
|
3075
|
+
U(), oe();
|
|
3074
3076
|
}, ue = () => {
|
|
3075
|
-
|
|
3076
|
-
},
|
|
3077
|
-
U(), K();
|
|
3078
|
-
}, q = r(() => {
|
|
3077
|
+
H(), oe();
|
|
3078
|
+
}, J = r(() => {
|
|
3079
3079
|
if (!c.groupings) return;
|
|
3080
3080
|
let e = /* @__PURE__ */ new Map();
|
|
3081
3081
|
c.groupings.forEach((t) => {
|
|
@@ -3087,24 +3087,24 @@ var pa = {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
3089
3089
|
return Array.from(e.entries());
|
|
3090
|
-
}),
|
|
3090
|
+
}), de = r(() => c.groupings && te.value === ""), fe = r(() => ({
|
|
3091
3091
|
...c,
|
|
3092
|
-
selectedItems:
|
|
3092
|
+
selectedItems: L.value,
|
|
3093
3093
|
searchInput: te.value,
|
|
3094
3094
|
slotContext: c.slotContext,
|
|
3095
3095
|
isOpen: M.value,
|
|
3096
3096
|
isLoading: c.isLoading
|
|
3097
|
-
})),
|
|
3098
|
-
let e =
|
|
3097
|
+
})), pe = ee("popoverContentRef"), me = r(() => {
|
|
3098
|
+
let e = pe.value?.getRootNode();
|
|
3099
3099
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3100
|
-
}), { present:
|
|
3101
|
-
return
|
|
3102
|
-
M.value &&
|
|
3100
|
+
}), { present: he } = vn("header", { host: me }), { present: ge } = vn("no-results", { host: me }), { present: _e } = vn("footer", { host: me });
|
|
3101
|
+
return Be("Escape", () => {
|
|
3102
|
+
M.value && oe();
|
|
3103
3103
|
}), (n, r) => (E(), i(gi, _({
|
|
3104
3104
|
modelValue: I(M),
|
|
3105
3105
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
3106
|
-
}, e.popoverProperties, { offset:
|
|
3107
|
-
trigger:
|
|
3106
|
+
}, e.popoverProperties, { offset: K.value }), {
|
|
3107
|
+
trigger: V(() => [u(na, {
|
|
3108
3108
|
ref: "select-button-trigger-ref",
|
|
3109
3109
|
variant: e.variant,
|
|
3110
3110
|
size: e.size,
|
|
@@ -3120,7 +3120,7 @@ var pa = {
|
|
|
3120
3120
|
"counter-value": w.value,
|
|
3121
3121
|
"counter-style": e.counterStyle,
|
|
3122
3122
|
"selected-items": W.value,
|
|
3123
|
-
onHandleClear:
|
|
3123
|
+
onHandleClear: ce,
|
|
3124
3124
|
onHandleToggleDropdown: r[0] ||= (e) => I(F)()
|
|
3125
3125
|
}, null, 8, [
|
|
3126
3126
|
"variant",
|
|
@@ -3138,9 +3138,9 @@ var pa = {
|
|
|
3138
3138
|
"counter-style",
|
|
3139
3139
|
"selected-items"
|
|
3140
3140
|
])]),
|
|
3141
|
-
content:
|
|
3141
|
+
content: V(() => [s("div", {
|
|
3142
3142
|
ref_key: "popoverContentRef",
|
|
3143
|
-
ref:
|
|
3143
|
+
ref: pe,
|
|
3144
3144
|
class: "pv-popover",
|
|
3145
3145
|
"data-test-id": "pv-popover",
|
|
3146
3146
|
style: x({
|
|
@@ -3160,8 +3160,8 @@ var pa = {
|
|
|
3160
3160
|
"placeholder",
|
|
3161
3161
|
"disabled"
|
|
3162
3162
|
])])),
|
|
3163
|
-
I(
|
|
3164
|
-
|
|
3163
|
+
I(he) ? (E(), o("div", Ua, [A(n.$slots, "header", b(p(fe.value)))])) : a("", !0),
|
|
3164
|
+
q.value.length > 0 ? (E(), o(t, { key: 2 }, [de.value ? (E(!0), o(t, { key: 0 }, k(J.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
3165
3165
|
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", Wa, P(t), 1)),
|
|
3166
3166
|
u(Va, {
|
|
3167
3167
|
selectedItems: ae.value,
|
|
@@ -3174,7 +3174,7 @@ var pa = {
|
|
|
3174
3174
|
isLoading: e.isLoading,
|
|
3175
3175
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
3176
3176
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3177
|
-
hasMoreOptions: s ===
|
|
3177
|
+
hasMoreOptions: s === J.value.length - 1 && C.value && !e.isLoading,
|
|
3178
3178
|
readOnly: e.readOnly,
|
|
3179
3179
|
onSeeMore: O
|
|
3180
3180
|
}, null, 8, [
|
|
@@ -3189,12 +3189,12 @@ var pa = {
|
|
|
3189
3189
|
"hasMoreOptions",
|
|
3190
3190
|
"readOnly"
|
|
3191
3191
|
]),
|
|
3192
|
-
|
|
3192
|
+
J.value && s !== J.value.length - 1 ? (E(), o("div", Ga)) : a("", !0)
|
|
3193
3193
|
]))), 128)) : (E(), i(Va, {
|
|
3194
3194
|
key: 1,
|
|
3195
3195
|
selectedItems: ae.value,
|
|
3196
3196
|
"onUpdate:selectedItems": r[3] ||= (e) => ae.value = e,
|
|
3197
|
-
options:
|
|
3197
|
+
options: q.value,
|
|
3198
3198
|
config: l.value,
|
|
3199
3199
|
queryText: e.highlightSearchText ? te.value : null,
|
|
3200
3200
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
@@ -3215,15 +3215,15 @@ var pa = {
|
|
|
3215
3215
|
"hasMoreOptions",
|
|
3216
3216
|
"readOnly"
|
|
3217
3217
|
]))], 64)) : a("", !0),
|
|
3218
|
-
e.isLoading ? (E(), o("div", Ka, [u(bt, { variant: "dark" })])) :
|
|
3219
|
-
s("div", qa, [I(
|
|
3218
|
+
e.isLoading ? (E(), o("div", Ka, [u(bt, { variant: "dark" })])) : q.value.length === 0 ? (E(), o(t, { key: 4 }, [I(ge) ? A(n.$slots, "no-results", b(_({ key: 0 }, fe.value))) : (E(), i(oa, { key: 1 }))], 64)) : a("", !0),
|
|
3219
|
+
s("div", qa, [I(_e) ? A(n.$slots, "footer", b(_({ key: 0 }, fe.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(Ji, {
|
|
3220
3220
|
key: 1,
|
|
3221
3221
|
variant: e.menuActionsVariant,
|
|
3222
3222
|
disabled: e.isLoading,
|
|
3223
|
-
onHandleClearAll:
|
|
3224
|
-
onHandleSelectAll:
|
|
3225
|
-
onHandleCancel:
|
|
3226
|
-
onHandleConfirm:
|
|
3223
|
+
onHandleClearAll: ce,
|
|
3224
|
+
onHandleSelectAll: se,
|
|
3225
|
+
onHandleCancel: le,
|
|
3226
|
+
onHandleConfirm: ue
|
|
3227
3227
|
}, null, 8, ["variant", "disabled"])) : a("", !0)])
|
|
3228
3228
|
], 4)]),
|
|
3229
3229
|
_: 3
|
|
@@ -3280,8 +3280,8 @@ var pa = {
|
|
|
3280
3280
|
action: n.optionsAction,
|
|
3281
3281
|
variant: n.optionsVariant,
|
|
3282
3282
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3283
|
-
})), l = t, [d] = We(n.defaultOpen), f =
|
|
3284
|
-
|
|
3283
|
+
})), l = t, [d] = We(n.defaultOpen), f = R(e, "modelValue"), p = R(e, "searchInput");
|
|
3284
|
+
B(d, (e) => {
|
|
3285
3285
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
3286
3286
|
});
|
|
3287
3287
|
let m = r(() => f.value && f.value.text ? f.value.text : n.label), g = r(() => {
|
|
@@ -3316,13 +3316,13 @@ var pa = {
|
|
|
3316
3316
|
}, T = () => {
|
|
3317
3317
|
d.value = !1, p.value = "";
|
|
3318
3318
|
};
|
|
3319
|
-
return
|
|
3319
|
+
return Be("Escape", () => {
|
|
3320
3320
|
d.value && T();
|
|
3321
3321
|
}), (t, n) => (E(), i(gi, _({
|
|
3322
3322
|
modelValue: I(d),
|
|
3323
3323
|
"onUpdate:modelValue": n[2] ||= (e) => h(d) ? d.value = e : null
|
|
3324
3324
|
}, e.popoverProperties), {
|
|
3325
|
-
trigger:
|
|
3325
|
+
trigger: V(() => [u(na, {
|
|
3326
3326
|
class: "pv-full-width",
|
|
3327
3327
|
ref: "select-button-trigger-ref",
|
|
3328
3328
|
variant: e.variant,
|
|
@@ -3364,7 +3364,7 @@ var pa = {
|
|
|
3364
3364
|
"renderer",
|
|
3365
3365
|
"selectedOption"
|
|
3366
3366
|
])]),
|
|
3367
|
-
content:
|
|
3367
|
+
content: V(() => [s("div", {
|
|
3368
3368
|
class: "pv-popover",
|
|
3369
3369
|
"data-test-id": "pv-popover",
|
|
3370
3370
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
@@ -3467,7 +3467,7 @@ var Za = () => {
|
|
|
3467
3467
|
}),
|
|
3468
3468
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
3469
3469
|
setup(e) {
|
|
3470
|
-
let n = e, s =
|
|
3470
|
+
let n = e, s = R(e, "modelValue"), c = R(e, "wrap-content"), { removeQueryOption: l } = Za(), u = r(() => {
|
|
3471
3471
|
let e = s.value?.queryTerms || [];
|
|
3472
3472
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
3473
3473
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -3557,10 +3557,10 @@ var Za = () => {
|
|
|
3557
3557
|
"update:options"
|
|
3558
3558
|
],
|
|
3559
3559
|
setup(e) {
|
|
3560
|
-
let n = e, c = { renderer: no }, l =
|
|
3560
|
+
let n = e, c = { renderer: no }, l = ee("search-input"), d = R(e, "searchText"), f = R(e, "query"), p = R(e, "options"), { addQueryOption: m, containsQueryOption: h } = Za(), g = O(!1), v = O(!1), b = O(!1), S = r(() => f.value === null ? n.placeholder : ""), C = O(null), w = r(() => C.value !== null && C.value !== "" && !v.value), T = () => {
|
|
3561
3561
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
3562
3562
|
};
|
|
3563
|
-
n.enableCustomOptionsInput &&
|
|
3563
|
+
n.enableCustomOptionsInput && Be("Enter", () => {
|
|
3564
3564
|
d.value.trim() && D();
|
|
3565
3565
|
}, { target: l });
|
|
3566
3566
|
let D = () => {
|
|
@@ -3568,7 +3568,7 @@ var Za = () => {
|
|
|
3568
3568
|
id: d.value.trim(),
|
|
3569
3569
|
text: d.value,
|
|
3570
3570
|
queryTerm: { queryText: d.value }
|
|
3571
|
-
}),
|
|
3571
|
+
}), L());
|
|
3572
3572
|
}, A = r(() => {
|
|
3573
3573
|
if (!p.value || p.value.length === 0) return [];
|
|
3574
3574
|
let e = p.value;
|
|
@@ -3581,7 +3581,7 @@ var Za = () => {
|
|
|
3581
3581
|
context: e.queryTerm
|
|
3582
3582
|
}));
|
|
3583
3583
|
});
|
|
3584
|
-
|
|
3584
|
+
B([
|
|
3585
3585
|
A,
|
|
3586
3586
|
d,
|
|
3587
3587
|
() => n.optionsLoading
|
|
@@ -3598,7 +3598,7 @@ var Za = () => {
|
|
|
3598
3598
|
queryTerm: e.context,
|
|
3599
3599
|
icon: e.icon
|
|
3600
3600
|
};
|
|
3601
|
-
f.value = m(f.value, t),
|
|
3601
|
+
f.value = m(f.value, t), L();
|
|
3602
3602
|
} catch (e) {
|
|
3603
3603
|
console.error("Error adding query option:", e);
|
|
3604
3604
|
} finally {
|
|
@@ -3612,10 +3612,10 @@ var Za = () => {
|
|
|
3612
3612
|
function F(e) {
|
|
3613
3613
|
e.type === "focus" ? (v.value = !0, g.value = !0) : e.type;
|
|
3614
3614
|
}
|
|
3615
|
-
let
|
|
3615
|
+
let L = () => {
|
|
3616
3616
|
d.value = "";
|
|
3617
3617
|
};
|
|
3618
|
-
return (n, r) =>
|
|
3618
|
+
return (n, r) => H((E(), o("div", {
|
|
3619
3619
|
ref: "query-builder-input",
|
|
3620
3620
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
3621
3621
|
onFocus: F,
|
|
@@ -3641,7 +3641,7 @@ var Za = () => {
|
|
|
3641
3641
|
"modelValue",
|
|
3642
3642
|
"wrap-content",
|
|
3643
3643
|
"query-term-display-limit"
|
|
3644
|
-
]),
|
|
3644
|
+
]), H(s("input", {
|
|
3645
3645
|
"onUpdate:modelValue": r[2] ||= (e) => d.value = e,
|
|
3646
3646
|
ref: "search-input",
|
|
3647
3647
|
"data-testid": "pv-search-input",
|
|
@@ -3669,7 +3669,7 @@ var Za = () => {
|
|
|
3669
3669
|
},
|
|
3670
3670
|
isList: !0
|
|
3671
3671
|
}, {
|
|
3672
|
-
default:
|
|
3672
|
+
default: V(() => [e.optionsLoading ? (E(), o("div", oo, [u(bt, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(La, _({
|
|
3673
3673
|
key: `${t}-${e.searchText}`,
|
|
3674
3674
|
ref_for: !0
|
|
3675
3675
|
}, e, {
|
|
@@ -3701,7 +3701,7 @@ var Za = () => {
|
|
|
3701
3701
|
},
|
|
3702
3702
|
setup(e) {
|
|
3703
3703
|
let n = m(fo, O(null)), c = m(go, O([])), l = m(_o, O([])), u = e;
|
|
3704
|
-
|
|
3704
|
+
B(l, () => {}, { deep: !0 });
|
|
3705
3705
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
3706
3706
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
3707
3707
|
}, p = r(() => ({ "pv-hide": c.value.length === 0 })), h = r(() => u.rowGroupLimit ? l.value.length >= u.rowGroupLimit : !1), g = r(() => l.value.map((e) => c.value.find((t) => t.field === e)).filter((e) => e !== void 0)), _ = r(() => c.value.filter((e) => !l.value.includes(e.field))), v = r(() => {
|
|
@@ -3732,12 +3732,12 @@ var Za = () => {
|
|
|
3732
3732
|
class: y(p.value),
|
|
3733
3733
|
onListOrderUpdated: x
|
|
3734
3734
|
}, {
|
|
3735
|
-
trigger:
|
|
3735
|
+
trigger: V(() => [s("div", Lo, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), I(l).length > 0 ? (E(), i(I(dn), {
|
|
3736
3736
|
key: 0,
|
|
3737
3737
|
value: I(l).length,
|
|
3738
3738
|
variant: "tertiary"
|
|
3739
3739
|
}, null, 8, ["value"])) : a("", !0)])]),
|
|
3740
|
-
default:
|
|
3740
|
+
default: V(() => [(E(!0), o(t, null, k(v.value, (e, n) => (E(), o(t, { key: e.value }, [e.value === "divider" ? a("", !0) : (E(), o("li", {
|
|
3741
3741
|
key: 0,
|
|
3742
3742
|
id: b(e.value)
|
|
3743
3743
|
}, [s("label", { class: y(["pv-flex", { "pv-border-bottom": n + 1 === I(l).length }]) }, [
|
|
@@ -3817,7 +3817,7 @@ var Jo = /* @__PURE__ */ Jt(Go, [["render", qo]]), Yo = ["innerHTML"], Xo = { ke
|
|
|
3817
3817
|
__name: "GroupedCellRenderer",
|
|
3818
3818
|
props: { params: {} },
|
|
3819
3819
|
setup(e) {
|
|
3820
|
-
let n = e, i = m(_o, O([])), c = m(vo, O(null)), d = m(yo, O({})), f =
|
|
3820
|
+
let n = e, i = m(_o, O([])), c = m(vo, O(null)), d = m(yo, O({})), f = Ve(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
3821
3821
|
let e = f.value.data;
|
|
3822
3822
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
3823
3823
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -3859,14 +3859,14 @@ var Jo = /* @__PURE__ */ Jt(Go, [["render", qo]]), Yo = ["innerHTML"], Xo = { ke
|
|
|
3859
3859
|
tooltipPosition: "center-left",
|
|
3860
3860
|
size: "sm"
|
|
3861
3861
|
}, {
|
|
3862
|
-
label:
|
|
3862
|
+
label: V(() => [u(mn, {
|
|
3863
3863
|
class: y(j.value + " pv-text-brand"),
|
|
3864
3864
|
variant: "ghost",
|
|
3865
3865
|
"left-icon": "focus",
|
|
3866
3866
|
ariaLabel: "Remove focus",
|
|
3867
3867
|
onClick: r[0] ||= (e) => I(k)(I(f).key)
|
|
3868
3868
|
}, null, 8, ["class"])]),
|
|
3869
|
-
"tooltip-content":
|
|
3869
|
+
"tooltip-content": V(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
3870
3870
|
_: 1
|
|
3871
3871
|
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", os, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
3872
3872
|
}
|
|
@@ -3898,14 +3898,14 @@ var Jo = /* @__PURE__ */ Jt(Go, [["render", qo]]), Yo = ["innerHTML"], Xo = { ke
|
|
|
3898
3898
|
"col-def": o.value,
|
|
3899
3899
|
"cell-params": e.params.cellParams
|
|
3900
3900
|
}, {
|
|
3901
|
-
default:
|
|
3901
|
+
default: V(() => [u(ss, { params: e.params }, null, 8, ["params"])]),
|
|
3902
3902
|
_: 1
|
|
3903
3903
|
}, 8, ["col-def", "cell-params"])) : (E(), i(Zo, {
|
|
3904
3904
|
key: 1,
|
|
3905
3905
|
"col-def": s.value,
|
|
3906
3906
|
"cell-params": c.value
|
|
3907
3907
|
}, {
|
|
3908
|
-
default:
|
|
3908
|
+
default: V(() => [u(ss, { params: e.params }, null, 8, ["params"])]),
|
|
3909
3909
|
_: 1
|
|
3910
3910
|
}, 8, ["col-def", "cell-params"]));
|
|
3911
3911
|
}
|
|
@@ -4459,12 +4459,12 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4459
4459
|
h || (l.value[m] = !0);
|
|
4460
4460
|
let g = (s.value[m] || 0) + 1;
|
|
4461
4461
|
s.value[m] = g;
|
|
4462
|
-
let y = a.map((e) =>
|
|
4462
|
+
let y = a.map((e) => L(m, e) || {
|
|
4463
4463
|
value: e,
|
|
4464
4464
|
label: String(e)
|
|
4465
4465
|
}), C = await u.value?.(p), w;
|
|
4466
4466
|
if (C && !Array.isArray(C) ? (w = C.values, d.value[m] = C.hasMore, f.value[m] = C.totalCount) : (w = C, d.value[m] = void 0, f.value[m] = void 0), i && w && (w = w.map((t) => {
|
|
4467
|
-
let n =
|
|
4467
|
+
let n = R(e, t);
|
|
4468
4468
|
return t && n && (t.matchedField = t.matchedField ?? n.matchedField, t.matchedValue = t.matchedValue ?? n.matchedValue), t;
|
|
4469
4469
|
})), g === s.value[m]) {
|
|
4470
4470
|
let e = (r?.offset ?? 0) > 0, t = !!r?.parentId;
|
|
@@ -4488,7 +4488,29 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4488
4488
|
let n = w?.filter((e) => e != null).map((e) => e.value) || [], i = n.filter((e, t) => n.indexOf(e) === t);
|
|
4489
4489
|
return x.value[m] = i, S.value[m] = !1, o.value[m] = Date.now(), h || (l.value[m] = !1), i;
|
|
4490
4490
|
} else return [];
|
|
4491
|
-
}, I = (e, t) => {
|
|
4491
|
+
}, I = async (e, t, n) => {
|
|
4492
|
+
if (!u.value) return;
|
|
4493
|
+
let r = e.field;
|
|
4494
|
+
if (!(!r || t.length === 0)) {
|
|
4495
|
+
l.value[r] = !0;
|
|
4496
|
+
try {
|
|
4497
|
+
let i = await u.value({
|
|
4498
|
+
api: n?.api,
|
|
4499
|
+
colDef: e,
|
|
4500
|
+
filterModel: n?.filterModel,
|
|
4501
|
+
selectedValues: t,
|
|
4502
|
+
selectedValuesOnly: !0
|
|
4503
|
+
}), a = i && !Array.isArray(i) ? i.values : i;
|
|
4504
|
+
if (!a) return;
|
|
4505
|
+
let o = y.value[r] || [], s = /* @__PURE__ */ new Map();
|
|
4506
|
+
for (let e of o) e && s.set(e.value, e);
|
|
4507
|
+
for (let e of a) e && s.set(e.value, e);
|
|
4508
|
+
y.value[r] = [...s.values()];
|
|
4509
|
+
} finally {
|
|
4510
|
+
l.value[r] = !1;
|
|
4511
|
+
}
|
|
4512
|
+
}
|
|
4513
|
+
}, L = (e, t) => {
|
|
4492
4514
|
let n = [..._.value[e] || [], ...y.value[e] || []], r = (e, t) => {
|
|
4493
4515
|
let n = /* @__PURE__ */ new Map();
|
|
4494
4516
|
for (let t of e.children || []) n.set(t.value, t);
|
|
@@ -4509,7 +4531,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4509
4531
|
}
|
|
4510
4532
|
};
|
|
4511
4533
|
return o(n);
|
|
4512
|
-
},
|
|
4534
|
+
}, R = (e, t) => {
|
|
4513
4535
|
if (!t) return {};
|
|
4514
4536
|
let n = $(e)?.queryColIds || [];
|
|
4515
4537
|
if (n.length === 0) return {};
|
|
@@ -4522,7 +4544,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4522
4544
|
};
|
|
4523
4545
|
}
|
|
4524
4546
|
return {};
|
|
4525
|
-
},
|
|
4547
|
+
}, z = (e, n) => {
|
|
4526
4548
|
v.value[e] = n;
|
|
4527
4549
|
let r = [], i = t.value;
|
|
4528
4550
|
if (hc(i)) {
|
|
@@ -4535,12 +4557,12 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4535
4557
|
r.push(...n);
|
|
4536
4558
|
let a = [];
|
|
4537
4559
|
return n.forEach((t) => {
|
|
4538
|
-
let n =
|
|
4560
|
+
let n = L(e, t);
|
|
4539
4561
|
n && a.push(n);
|
|
4540
4562
|
}), y.value[e] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4541
|
-
},
|
|
4563
|
+
}, ee = (e) => v.value[e] || [], te = (e, t) => {
|
|
4542
4564
|
b.value[e] = t;
|
|
4543
|
-
},
|
|
4565
|
+
}, ne = (e) => x.value[e] || [], re = (e, t) => {
|
|
4544
4566
|
x.value[e] = t;
|
|
4545
4567
|
}, B = (e, t) => {
|
|
4546
4568
|
T.value[e] = t;
|
|
@@ -4561,17 +4583,17 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4561
4583
|
for (let n of e) t.add(n);
|
|
4562
4584
|
}
|
|
4563
4585
|
for (let e of E.value) t.has(e) || (S.value[e] = !0);
|
|
4564
|
-
}, re = () => {
|
|
4565
|
-
k.value = JSON.parse(JSON.stringify(v.value));
|
|
4566
4586
|
}, W = () => {
|
|
4587
|
+
k.value = JSON.parse(JSON.stringify(v.value));
|
|
4588
|
+
}, ie = () => {
|
|
4567
4589
|
k.value = {};
|
|
4568
|
-
}, G = (e) => k.value[e] || [],
|
|
4590
|
+
}, G = (e) => k.value[e] || [], ae = (e, t) => {
|
|
4569
4591
|
k.value[e] = t;
|
|
4570
|
-
},
|
|
4592
|
+
}, oe = (t) => {
|
|
4571
4593
|
e.value = t;
|
|
4572
4594
|
}, K = (t) => {
|
|
4573
4595
|
(!t || e.value === t) && (e.value = null);
|
|
4574
|
-
},
|
|
4596
|
+
}, q = () => e.value?.getFilterModel() ?? t.value, se = (n) => {
|
|
4575
4597
|
let r = e.value?.setFilterModel(n);
|
|
4576
4598
|
(!e.value || r === !1) && (t.value = n);
|
|
4577
4599
|
}, ce = (t) => {
|
|
@@ -4604,20 +4626,21 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4604
4626
|
filterValueSelectedMetadataMap: y,
|
|
4605
4627
|
filterStoreHandler: u,
|
|
4606
4628
|
fetchFilterValues: F,
|
|
4607
|
-
|
|
4629
|
+
fetchSelectedValueMetadata: I,
|
|
4630
|
+
filterValueContext: L,
|
|
4608
4631
|
filterModelEmpty: h,
|
|
4609
|
-
getFilterSelectedValues:
|
|
4610
|
-
getSearchMatchDataFromFilterContext:
|
|
4632
|
+
getFilterSelectedValues: ee,
|
|
4633
|
+
getSearchMatchDataFromFilterContext: R,
|
|
4611
4634
|
isServerSideFilter: m,
|
|
4612
4635
|
stagedFilterModel: n,
|
|
4613
|
-
setFilterSelectedValues:
|
|
4614
|
-
setFilterValueSearchText:
|
|
4636
|
+
setFilterSelectedValues: z,
|
|
4637
|
+
setFilterValueSearchText: te,
|
|
4615
4638
|
tableSearchFilterModel: i,
|
|
4616
4639
|
tableSearchFilterModelEmpty: g,
|
|
4617
4640
|
tableSearchHandler: p,
|
|
4618
4641
|
filterValuesMap: x,
|
|
4619
|
-
getFilterValues:
|
|
4620
|
-
setFilterValues:
|
|
4642
|
+
getFilterValues: ne,
|
|
4643
|
+
setFilterValues: re,
|
|
4621
4644
|
filterStaleMap: S,
|
|
4622
4645
|
refreshFiltersInBackground: C,
|
|
4623
4646
|
stageFilterChangesUntilDropdownCloses: w,
|
|
@@ -4628,13 +4651,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4628
4651
|
registerFilterField: V,
|
|
4629
4652
|
unregisterFilterField: H,
|
|
4630
4653
|
stagedSelectedValuesMap: k,
|
|
4631
|
-
initStagedSelectedValues:
|
|
4632
|
-
clearStagedSelectedValues:
|
|
4654
|
+
initStagedSelectedValues: W,
|
|
4655
|
+
clearStagedSelectedValues: ie,
|
|
4633
4656
|
getStagedSelectedValues: G,
|
|
4634
|
-
setStagedSelectedValues:
|
|
4635
|
-
registerFilterController:
|
|
4657
|
+
setStagedSelectedValues: ae,
|
|
4658
|
+
registerFilterController: oe,
|
|
4636
4659
|
unregisterFilterController: K,
|
|
4637
|
-
getFilterModel:
|
|
4660
|
+
getFilterModel: q,
|
|
4638
4661
|
applyFilterModel: se,
|
|
4639
4662
|
applyTableSearchFilterModel: ce,
|
|
4640
4663
|
refreshData: le,
|
|
@@ -4649,66 +4672,66 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4649
4672
|
if (!e) throw Error("No PvDataTable filter store was provided. Create one with createPvDataTableFilterStore() and pass it to PvDataTable/PvDataTableWithChart or provide it with providePvDataTableFilterStore().");
|
|
4650
4673
|
return e;
|
|
4651
4674
|
}, xc = (e) => {
|
|
4652
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(fo, O(null)), c = yc(), { fetchFilterValues: l,
|
|
4653
|
-
get: () => K.value ?
|
|
4675
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(fo, O(null)), c = yc(), { fetchFilterValues: l, fetchSelectedValueMetadata: u, filterModel: d, stagedFilterModel: f, filterModelCleared: p, filterValuesLoadingStatus: h, filterValueContext: g, getFilterSelectedValues: _, isServerSideFilter: y, setFilterValueSearchText: b, setFilterSelectedValues: x, getFilterValues: S, setFilterValues: C, filterStaleMap: E, refreshFiltersInBackground: D, stageFilterChangesUntilDropdownCloses: k, markOtherFieldsStale: A, registerAggregateField: j, registerFilterField: M, unregisterFilterField: N, getStagedSelectedValues: P, setStagedSelectedValues: F, filterValueSearchTextMap: I, filterValuesHasMoreMap: L, filterValuesTotalCountMap: R } = c, { computedFocuses: z, removeFocus: ee, computedFocusType: te } = $o(), ne = m(xo, O(!1)), re = m(bo, O(!1)), V = m(Po, O(!1)), H = r({
|
|
4676
|
+
get: () => K.value ? P(G.value) : _(G.value),
|
|
4654
4677
|
set: (e) => {
|
|
4655
|
-
K.value ?
|
|
4678
|
+
K.value ? F(G.value, e) : x(G.value, e);
|
|
4656
4679
|
}
|
|
4657
4680
|
}), U = r(() => {
|
|
4658
|
-
let e =
|
|
4659
|
-
if (
|
|
4681
|
+
let e = S(G.value);
|
|
4682
|
+
if (q.value && ce.value.length > 0) {
|
|
4660
4683
|
let t = new Set(e), n = ce.value.filter((e) => t.has(e)), r = new Set(ce.value), i = e.filter((e) => !r.has(e));
|
|
4661
4684
|
return [...n, ...i];
|
|
4662
4685
|
}
|
|
4663
4686
|
return Ee(e);
|
|
4664
|
-
}),
|
|
4665
|
-
get: () =>
|
|
4666
|
-
set: (e) =>
|
|
4667
|
-
}), G = r(() => t.value.field || ""),
|
|
4687
|
+
}), W = r(() => h.value[G.value] ?? !1), ie = r({
|
|
4688
|
+
get: () => I.value[G.value] ?? "",
|
|
4689
|
+
set: (e) => b(G.value, e)
|
|
4690
|
+
}), G = r(() => t.value.field || ""), ae = r(() => t.value.filter || ""), oe = r(() => t.value.headerName || ""), K = r(() => n?.value === "vertical"), q = O(!1), se = O(!1), ce = O([]), le = r(() => Ss(t.value)), ue = r(() => Cs(t.value)), J = r(() => ws(t.value)), de = r(() => $(t.value).filterOptionsSortDescription), fe = r(() => $(t.value).filterOptionsSortTooltip), pe = r(() => !$(t.value).filterSearch), me = r(() => $(t.value).emptyFilterResultsRenderer), he = r(() => $(t.value).filterOptionsRenderer), ge = r(() => $(t.value).filterHeaderRenderer), _e = r(() => $(t.value).filterFooterRenderer), ve = r(() => ue.value ? H.value.length >= ue.value : !1), ye = r(() => U.value.filter((e) => e != null && !H.value.includes(e))), Y = r(() => R.value[G.value]), be = r(() => L.value[G.value]), X = r(() => As(t.value)), xe = () => new Set([G.value, ...Ds(t.value)]), Se = (e, t) => {
|
|
4668
4691
|
let n = new Set(e), r = new Set(t);
|
|
4669
4692
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
4670
|
-
},
|
|
4671
|
-
if (
|
|
4693
|
+
}, Z = O([]), Ce = r(() => U.value.length === 1 && U.value[0] === null && H.value.length === 0), we = (e = !1) => {
|
|
4694
|
+
if (X.value) return;
|
|
4672
4695
|
let n = [];
|
|
4673
|
-
if (
|
|
4696
|
+
if (V.value && s.value) {
|
|
4674
4697
|
let e = s.value.getAdvancedFilterModel();
|
|
4675
4698
|
n = cc(G.value, e);
|
|
4676
|
-
} else n = $s(t.value,
|
|
4677
|
-
e ? H.value = n : H.value = Array.from(new Set([...
|
|
4699
|
+
} else n = $s(t.value, d.value);
|
|
4700
|
+
e ? H.value = n : H.value = Array.from(new Set([..._(G.value), ...n]));
|
|
4678
4701
|
}, Te = (e) => {
|
|
4679
4702
|
let t = (n) => {
|
|
4680
4703
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
4681
4704
|
return !1;
|
|
4682
4705
|
};
|
|
4683
|
-
return t(
|
|
4706
|
+
return t(Z.value);
|
|
4684
4707
|
}, Ee = (e) => [...e].sort((e, t) => {
|
|
4685
4708
|
let n = H.value.includes(e) || Te(e), r = H.value.includes(t) || Te(t);
|
|
4686
4709
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
4687
4710
|
}), De = async (e = !1, n = !1) => {
|
|
4688
4711
|
if (!s.value || o?.value) return;
|
|
4689
|
-
let r =
|
|
4690
|
-
if (
|
|
4691
|
-
if (
|
|
4712
|
+
let r = E.value[G.value] ?? !1, i = h.value[G.value] !== !0, a = (S(G.value) || []).length === 0, c = e && i && (r || n || a);
|
|
4713
|
+
if (V.value) {
|
|
4714
|
+
if (y.value && c) {
|
|
4692
4715
|
let e = await l(t.value, {
|
|
4693
4716
|
api: s.value,
|
|
4694
|
-
filterModel:
|
|
4717
|
+
filterModel: d.value ?? void 0,
|
|
4695
4718
|
useStaged: K.value
|
|
4696
4719
|
});
|
|
4697
|
-
|
|
4720
|
+
C(G.value, e), E.value[G.value] = !1, lt();
|
|
4698
4721
|
}
|
|
4699
4722
|
return;
|
|
4700
4723
|
}
|
|
4701
|
-
let
|
|
4702
|
-
if (
|
|
4703
|
-
if (
|
|
4704
|
-
|
|
4724
|
+
let u = await Zs(s.value, t.value);
|
|
4725
|
+
if (u) {
|
|
4726
|
+
if (y.value && c) {
|
|
4727
|
+
u.refreshFilterValues();
|
|
4705
4728
|
return;
|
|
4706
4729
|
}
|
|
4707
|
-
|
|
4730
|
+
C(G.value, u.getFilterValues()), E.value[G.value] = !1;
|
|
4708
4731
|
}
|
|
4709
4732
|
}, Oe = (e) => {
|
|
4710
|
-
let t =
|
|
4711
|
-
return !t &&
|
|
4733
|
+
let t = g(G.value, e);
|
|
4734
|
+
return !t && X.value && e && (t = Q(e)), t;
|
|
4712
4735
|
}, ke = (e, t) => t?.metadata?.rawValue == null ? e : t.metadata.rawValue, Ae = (e, t) => {
|
|
4713
4736
|
if (!e || !t || e.label && e.metadata?.rawValue == null) return e;
|
|
4714
4737
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
@@ -4718,7 +4741,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4718
4741
|
} : e;
|
|
4719
4742
|
}, je = (e, t) => {
|
|
4720
4743
|
let n = le.value, r = t;
|
|
4721
|
-
if (t?.colField &&
|
|
4744
|
+
if (t?.colField && X.value) {
|
|
4722
4745
|
let e = s.value?.getColumnDef(t?.colField);
|
|
4723
4746
|
n = e ? Ss(e) ?? n : n, r = Ae(t, e ?? void 0);
|
|
4724
4747
|
}
|
|
@@ -4728,9 +4751,9 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4728
4751
|
}) : r?.label || e;
|
|
4729
4752
|
}, Me = (e) => je(e, Oe(e)), Ne = (e) => {
|
|
4730
4753
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
4731
|
-
let n =
|
|
4754
|
+
let n = g(G.value, e);
|
|
4732
4755
|
return n == null || n.label == null;
|
|
4733
|
-
}, Pe = (e) => Ce.value ||
|
|
4756
|
+
}, Pe = (e) => Ce.value || g(G.value, e)?.isSelectable === !1 ? !0 : J.value ? !1 : ve.value && !H.value.includes(e), Fe = (e) => !e || !s.value ? "" : s.value.getColumnDef(e)?.headerName || e, Ie = (e) => {
|
|
4734
4757
|
if (!e.startsWith("__")) return { value: e };
|
|
4735
4758
|
let t = e.slice(2).split("__");
|
|
4736
4759
|
return t.length < 2 ? { value: e } : {
|
|
@@ -4738,7 +4761,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4738
4761
|
value: t[1]
|
|
4739
4762
|
};
|
|
4740
4763
|
}, Le = (e) => {
|
|
4741
|
-
let t =
|
|
4764
|
+
let t = g(G.value, e), n = t?.metadata?.rawValue;
|
|
4742
4765
|
return t?.colField && n != null ? {
|
|
4743
4766
|
field: t.colField,
|
|
4744
4767
|
value: String(n)
|
|
@@ -4775,7 +4798,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4775
4798
|
if (t) return t;
|
|
4776
4799
|
}
|
|
4777
4800
|
return `__${e}__${t}`;
|
|
4778
|
-
},
|
|
4801
|
+
}, Q = (e) => {
|
|
4779
4802
|
let t = (n) => {
|
|
4780
4803
|
if (n) {
|
|
4781
4804
|
if ((n.metadata?.rawValue == null ? Ie(n.value).value : String(n.metadata.rawValue)) === e) return n;
|
|
@@ -4789,7 +4812,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4789
4812
|
let n = t(e);
|
|
4790
4813
|
if (n) return n;
|
|
4791
4814
|
}
|
|
4792
|
-
},
|
|
4815
|
+
}, He = (e) => {
|
|
4793
4816
|
let t = e.startsWith("__") ? e.slice(2).split("__") : [];
|
|
4794
4817
|
if (t.length < 4) return;
|
|
4795
4818
|
let n = t[0], r = t[1], i = t[2], a = t.slice(3).join("__");
|
|
@@ -4808,34 +4831,34 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4808
4831
|
}],
|
|
4809
4832
|
totalChildCount: 1
|
|
4810
4833
|
};
|
|
4811
|
-
}, Q = (e) => {
|
|
4812
|
-
let n = Re(), r = ze(n, (t) => t.value === e.id);
|
|
4813
|
-
return r?.children?.length ? r : Be(n, e.id) || (r && r.colField === ks(t.value) ? r : Z(e.id) || r);
|
|
4814
4834
|
}, Ue = (e) => {
|
|
4815
|
-
|
|
4835
|
+
let n = Re(), r = ze(n, (t) => t.value === e.id);
|
|
4836
|
+
return r?.children?.length ? r : Be(n, e.id) || (r && r.colField === ks(t.value) ? r : He(e.id) || r);
|
|
4837
|
+
}, We = (e) => {
|
|
4838
|
+
if (!X.value) return;
|
|
4816
4839
|
let t = c.filterValueSelectedMetadataMap.value[G.value] || [], n = /* @__PURE__ */ new Map();
|
|
4817
4840
|
for (let e of t) e && n.set(e.value, e);
|
|
4818
4841
|
for (let t of e) {
|
|
4819
4842
|
if (t.state !== "selected") continue;
|
|
4820
|
-
let e =
|
|
4843
|
+
let e = Ue(t);
|
|
4821
4844
|
e && n.set(e.value, e);
|
|
4822
4845
|
}
|
|
4823
4846
|
c.filterValueSelectedMetadataMap.value[G.value] = [...n.values()];
|
|
4824
|
-
},
|
|
4847
|
+
}, Ke = () => {
|
|
4825
4848
|
let e = /* @__PURE__ */ new Set();
|
|
4826
|
-
for (let t of
|
|
4849
|
+
for (let t of Z.value) {
|
|
4827
4850
|
if (t.state !== "selected") continue;
|
|
4828
|
-
let n =
|
|
4851
|
+
let n = Ue(t);
|
|
4829
4852
|
n && e.add(n.value);
|
|
4830
4853
|
}
|
|
4831
4854
|
return [...e].filter((e) => !U.value.includes(e));
|
|
4832
|
-
},
|
|
4833
|
-
let n =
|
|
4855
|
+
}, qe = (e) => {
|
|
4856
|
+
let n = g(G.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = de.value ? "suggestions" : null;
|
|
4834
4857
|
n?.isPreference && (i = "preferences");
|
|
4835
4858
|
let a = null, o = n?.matchedValue, l = Fe(n?.matchedField);
|
|
4836
|
-
o && l ? a = o ? `${l}: ${o}` : "" : n?.subText ? a = n.subText : n?.colField &&
|
|
4837
|
-
let
|
|
4838
|
-
if (r && (
|
|
4859
|
+
o && l ? a = o ? `${l}: ${o}` : "" : n?.subText ? a = n.subText : n?.colField && X.value && !r && (a = Fe(n?.colField));
|
|
4860
|
+
let u, f, p;
|
|
4861
|
+
if (r && (u = (n.children ?? []).map((e) => ({
|
|
4839
4862
|
...e.menuOption,
|
|
4840
4863
|
id: e.value,
|
|
4841
4864
|
text: je(e.value, e) || "",
|
|
@@ -4844,14 +4867,14 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4844
4867
|
disabled: e.menuOption?.disabled ?? Pe(e.value),
|
|
4845
4868
|
context: e,
|
|
4846
4869
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
4847
|
-
})), f = n.totalChildCount, f && f >
|
|
4870
|
+
})), f = n.totalChildCount, f && f > u.length && n.value != null)) {
|
|
4848
4871
|
let e = n.value;
|
|
4849
4872
|
p = async (n) => {
|
|
4850
4873
|
if (!s.value || !c.filterStoreHandler.value) return;
|
|
4851
|
-
let r = n?.offset ??
|
|
4874
|
+
let r = n?.offset ?? u.length, i = await c.filterStoreHandler.value({
|
|
4852
4875
|
api: s.value,
|
|
4853
4876
|
colDef: t.value,
|
|
4854
|
-
filterModel:
|
|
4877
|
+
filterModel: d.value ?? void 0,
|
|
4855
4878
|
offset: r,
|
|
4856
4879
|
parentId: e
|
|
4857
4880
|
});
|
|
@@ -4878,16 +4901,16 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4878
4901
|
disabled: n?.menuOption?.disabled ?? (r ? !1 : Pe(e)),
|
|
4879
4902
|
context: n || { value: e || "" },
|
|
4880
4903
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
4881
|
-
children:
|
|
4904
|
+
children: u,
|
|
4882
4905
|
totalChildCount: f,
|
|
4883
4906
|
handleSeeMore: p
|
|
4884
4907
|
};
|
|
4885
|
-
},
|
|
4886
|
-
let e = [...
|
|
4887
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ne(e)).map(
|
|
4888
|
-
}),
|
|
4889
|
-
get: () =>
|
|
4890
|
-
let t =
|
|
4908
|
+
}, Je = r(() => {
|
|
4909
|
+
let e = [...X.value ? Ke() : H.value.filter((e) => e != null && e !== "" && !U.value.includes(e)), ...U.value];
|
|
4910
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ne(e)).map(qe);
|
|
4911
|
+
}), Ye = r({
|
|
4912
|
+
get: () => X.value ? [] : H.value.map((e) => {
|
|
4913
|
+
let t = g(G.value, e), n = t?.colField ? Fe(t.colField) : void 0;
|
|
4891
4914
|
return {
|
|
4892
4915
|
id: e,
|
|
4893
4916
|
text: Me(e),
|
|
@@ -4896,47 +4919,47 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4896
4919
|
};
|
|
4897
4920
|
}),
|
|
4898
4921
|
set: (e) => {
|
|
4899
|
-
if (
|
|
4900
|
-
if (e.length === 0 && !
|
|
4901
|
-
|
|
4922
|
+
if (X.value) {
|
|
4923
|
+
if (e.length === 0 && !q.value && k.value && !K.value) {
|
|
4924
|
+
at([]);
|
|
4902
4925
|
return;
|
|
4903
4926
|
}
|
|
4904
4927
|
i?.();
|
|
4905
4928
|
return;
|
|
4906
4929
|
}
|
|
4907
|
-
H.value = e.map((e) => e.id), (e.length === 0 && !
|
|
4908
|
-
!H.value.includes(e) &&
|
|
4930
|
+
H.value = e.map((e) => e.id), (e.length === 0 && !q.value || !k.value || K.value) && (Ze(), z.value.forEach((e) => {
|
|
4931
|
+
!H.value.includes(e) && te.value === G.value && ee(e);
|
|
4909
4932
|
})), i?.();
|
|
4910
4933
|
}
|
|
4911
|
-
}),
|
|
4934
|
+
}), Xe = (e) => {
|
|
4912
4935
|
let t = {};
|
|
4913
4936
|
for (let n of e) {
|
|
4914
4937
|
if (n === null) continue;
|
|
4915
|
-
let e =
|
|
4938
|
+
let e = g(G.value, n)?.colField || G.value;
|
|
4916
4939
|
t[e] || (t[e] = []), t[e].push(n);
|
|
4917
4940
|
}
|
|
4918
4941
|
return t;
|
|
4919
|
-
},
|
|
4942
|
+
}, Ze = async (e, n, r) => {
|
|
4920
4943
|
if (!s.value) return;
|
|
4921
4944
|
if (e !== void 0 && n !== void 0) {
|
|
4922
4945
|
let r = e || G.value, i = n;
|
|
4923
|
-
if (
|
|
4946
|
+
if (V.value) {
|
|
4924
4947
|
let e = Bs(r, i || []);
|
|
4925
4948
|
if (K.value) {
|
|
4926
|
-
let t =
|
|
4927
|
-
|
|
4949
|
+
let t = f.value;
|
|
4950
|
+
f.value = oc(t, e, r), A(new Set([r]));
|
|
4928
4951
|
return;
|
|
4929
4952
|
}
|
|
4930
4953
|
let t = oc(s.value.getAdvancedFilterModel(), e, r);
|
|
4931
4954
|
v(() => {
|
|
4932
4955
|
s.value?.setAdvancedFilterModel(t);
|
|
4933
|
-
}),
|
|
4956
|
+
}), A(new Set([r]));
|
|
4934
4957
|
return;
|
|
4935
4958
|
}
|
|
4936
4959
|
if (K.value) {
|
|
4937
4960
|
let e = await Qs(s.value, t.value, i);
|
|
4938
|
-
|
|
4939
|
-
...
|
|
4961
|
+
f.value = {
|
|
4962
|
+
...f.value,
|
|
4940
4963
|
[r]: e
|
|
4941
4964
|
};
|
|
4942
4965
|
return;
|
|
@@ -4947,10 +4970,10 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4947
4970
|
});
|
|
4948
4971
|
return;
|
|
4949
4972
|
}
|
|
4950
|
-
let i =
|
|
4951
|
-
if (
|
|
4952
|
-
let e = K.value ?
|
|
4953
|
-
if (
|
|
4973
|
+
let i = Xe(H.value), o = $(t.value);
|
|
4974
|
+
if (V.value) {
|
|
4975
|
+
let e = K.value ? f.value : s.value.getAdvancedFilterModel(), n = e;
|
|
4976
|
+
if (X.value) {
|
|
4954
4977
|
let e = Ds(t.value), r = [];
|
|
4955
4978
|
for (let t of e) {
|
|
4956
4979
|
let e = i[t] || [];
|
|
@@ -4990,13 +5013,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4990
5013
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
4991
5014
|
}
|
|
4992
5015
|
if (r?.skipIfUnchanged && ac(e, n)) return;
|
|
4993
|
-
let c =
|
|
4994
|
-
if (K.value)
|
|
5016
|
+
let c = X.value ? xe() : new Set([G.value]);
|
|
5017
|
+
if (K.value) f.value = n, A(c);
|
|
4995
5018
|
else {
|
|
4996
5019
|
let e = n;
|
|
4997
5020
|
v(() => {
|
|
4998
5021
|
s.value?.setAdvancedFilterModel(e);
|
|
4999
|
-
}),
|
|
5022
|
+
}), A(c);
|
|
5000
5023
|
}
|
|
5001
5024
|
return;
|
|
5002
5025
|
}
|
|
@@ -5007,8 +5030,8 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5007
5030
|
}
|
|
5008
5031
|
if (K.value) {
|
|
5009
5032
|
let e = await Qs(s.value, t.value, c);
|
|
5010
|
-
|
|
5011
|
-
...
|
|
5033
|
+
f.value = {
|
|
5034
|
+
...f.value,
|
|
5012
5035
|
[G.value]: e
|
|
5013
5036
|
};
|
|
5014
5037
|
return;
|
|
@@ -5017,33 +5040,33 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5017
5040
|
s.value.setColumnFilterModel(G.value, l).then(() => {
|
|
5018
5041
|
s.value && s.value.onFilterChanged();
|
|
5019
5042
|
});
|
|
5020
|
-
},
|
|
5021
|
-
if (e &&
|
|
5043
|
+
}, Qe = (e, n) => {
|
|
5044
|
+
if (e && J.value ? H.value = [e] : e && !H.value.includes(e) && (H.value = [...H.value, e]), X.value && e) {
|
|
5022
5045
|
let r = n || Ds(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ve(r, e) || e;
|
|
5023
|
-
|
|
5046
|
+
Z.value.find((e) => e.id === i) || (Z.value = [...Z.value, {
|
|
5024
5047
|
id: i,
|
|
5025
5048
|
state: "selected"
|
|
5026
5049
|
}]);
|
|
5027
5050
|
}
|
|
5028
|
-
(!
|
|
5029
|
-
},
|
|
5030
|
-
if (H.value = H.value.filter((t) => t !== e),
|
|
5051
|
+
(!k.value || K.value) && (X.value && e ? at(Z.value) : n && n !== G.value ? Ze(n, [e]) : Ze()), i?.();
|
|
5052
|
+
}, $e = (e, n) => {
|
|
5053
|
+
if (H.value = H.value.filter((t) => t !== e), X.value && e) {
|
|
5031
5054
|
let r = n || Ds(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ve(r, e) || e;
|
|
5032
|
-
|
|
5055
|
+
Z.value = Z.value.filter((e) => e.id !== i);
|
|
5033
5056
|
}
|
|
5034
|
-
(!
|
|
5035
|
-
}, $e = () => {
|
|
5036
|
-
ce.value = Ee(x(G.value)), oe.value = !0;
|
|
5057
|
+
(!k.value || K.value) && (X.value && e ? at(Z.value) : n && n !== G.value ? Ze(n, null) : Ze()), i?.();
|
|
5037
5058
|
}, et = () => {
|
|
5038
|
-
|
|
5039
|
-
}, tt =
|
|
5059
|
+
ce.value = Ee(S(G.value)), q.value = !0;
|
|
5060
|
+
}, tt = () => {
|
|
5061
|
+
q.value = !1, ce.value = [], ie.value = "", !o?.value && k.value && !K.value && (X.value ? at(Z.value, { skipIfUnchanged: !0 }) : Ze(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5062
|
+
}, nt = async (e) => {
|
|
5040
5063
|
if (!s.value) return;
|
|
5041
5064
|
let n = U.value.length, r = !e.parentId;
|
|
5042
5065
|
r && (se.value = !0);
|
|
5043
5066
|
try {
|
|
5044
5067
|
await l(t.value, {
|
|
5045
5068
|
api: s.value,
|
|
5046
|
-
filterModel:
|
|
5069
|
+
filterModel: d.value ?? void 0,
|
|
5047
5070
|
offset: e.offset ?? n,
|
|
5048
5071
|
parentId: e.parentId,
|
|
5049
5072
|
useStaged: K.value
|
|
@@ -5051,7 +5074,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5051
5074
|
} finally {
|
|
5052
5075
|
r && (se.value = !1);
|
|
5053
5076
|
}
|
|
5054
|
-
},
|
|
5077
|
+
}, rt = (e) => {
|
|
5055
5078
|
if (e.state !== "selected") return null;
|
|
5056
5079
|
let { field: t, value: n } = Le(e.id);
|
|
5057
5080
|
if (!t) return null;
|
|
@@ -5076,10 +5099,10 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5076
5099
|
type: "AND",
|
|
5077
5100
|
conditions: r
|
|
5078
5101
|
};
|
|
5079
|
-
},
|
|
5102
|
+
}, it = (e, n) => {
|
|
5080
5103
|
let r = Ds(t.value);
|
|
5081
5104
|
if (r.length === 0) return n;
|
|
5082
|
-
let i = e.map(
|
|
5105
|
+
let i = e.map(rt).filter((e) => !!e), a = n;
|
|
5083
5106
|
for (let e of r) a = oc(a, null, e);
|
|
5084
5107
|
if (i.length === 0) return a;
|
|
5085
5108
|
let o = i.length === 1 ? i[0] : {
|
|
@@ -5092,25 +5115,25 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5092
5115
|
type: "AND",
|
|
5093
5116
|
conditions: [a, o]
|
|
5094
5117
|
} : o;
|
|
5095
|
-
},
|
|
5096
|
-
if (!s.value || !
|
|
5097
|
-
let r = K.value ?
|
|
5118
|
+
}, at = (e, n) => {
|
|
5119
|
+
if (!s.value || !X.value || (Z.value = e, We(e), Ds(t.value).length === 0)) return !1;
|
|
5120
|
+
let r = K.value ? f.value : s.value.getAdvancedFilterModel(), a = it(e, r);
|
|
5098
5121
|
if (n?.skipIfUnchanged && ac(r, a)) return !1;
|
|
5099
|
-
if (K.value)
|
|
5122
|
+
if (K.value) f.value = a;
|
|
5100
5123
|
else {
|
|
5101
5124
|
let e = a;
|
|
5102
5125
|
v(() => {
|
|
5103
5126
|
s.value?.setAdvancedFilterModel(e);
|
|
5104
5127
|
});
|
|
5105
5128
|
}
|
|
5106
|
-
return
|
|
5107
|
-
},
|
|
5129
|
+
return A(xe()), i?.(), !0;
|
|
5130
|
+
}, ot = (e, n) => {
|
|
5108
5131
|
if (!e) return [];
|
|
5109
5132
|
if (e.filterType === "join") {
|
|
5110
5133
|
let r = e.conditions || [];
|
|
5111
5134
|
if (e.type === "AND") {
|
|
5112
5135
|
let e = r.find((e) => e.filterType !== "join" && n.has(e.colId) && e.type === "equals" && !Os($(t.value).aggregateFieldHierarchy).includes(e.colId));
|
|
5113
|
-
return r.flatMap((t) =>
|
|
5136
|
+
return r.flatMap((t) => ot(t, n).map((t) => ({
|
|
5114
5137
|
...t,
|
|
5115
5138
|
parentEquals: t.parentEquals || (e ? {
|
|
5116
5139
|
colId: e.colId,
|
|
@@ -5118,7 +5141,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5118
5141
|
} : void 0)
|
|
5119
5142
|
})));
|
|
5120
5143
|
}
|
|
5121
|
-
return r.flatMap((e) =>
|
|
5144
|
+
return r.flatMap((e) => ot(e, n));
|
|
5122
5145
|
}
|
|
5123
5146
|
let r = e;
|
|
5124
5147
|
return r.colId && n.has(r.colId) ? [{
|
|
@@ -5126,11 +5149,11 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5126
5149
|
type: r.type,
|
|
5127
5150
|
filter: r.filter
|
|
5128
5151
|
}] : [];
|
|
5129
|
-
},
|
|
5130
|
-
if (!
|
|
5152
|
+
}, st = (e) => {
|
|
5153
|
+
if (!X.value) return;
|
|
5131
5154
|
let n = Ds(t.value);
|
|
5132
5155
|
if (!n.length) return;
|
|
5133
|
-
let r = ks(t.value), i =
|
|
5156
|
+
let r = ks(t.value), i = ot(e, new Set(n)), a = /* @__PURE__ */ new Map();
|
|
5134
5157
|
for (let e of i) {
|
|
5135
5158
|
if (!e.filter) continue;
|
|
5136
5159
|
let t = Ve(e.colId, String(e.filter));
|
|
@@ -5156,22 +5179,22 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5156
5179
|
}
|
|
5157
5180
|
}
|
|
5158
5181
|
let o = [...a.values()];
|
|
5159
|
-
JSON.stringify(
|
|
5160
|
-
},
|
|
5182
|
+
JSON.stringify(Z.value) !== JSON.stringify(o) && (Z.value = o), We(o);
|
|
5183
|
+
}, ct = () => X.value ? Z.value.some((e) => {
|
|
5161
5184
|
let { field: t, value: n } = Le(e.id);
|
|
5162
5185
|
return t ? Ve(t, n) !== e.id : !1;
|
|
5163
|
-
}) : !1,
|
|
5164
|
-
!
|
|
5186
|
+
}) : !1, lt = () => {
|
|
5187
|
+
!X.value || !V.value || ct() && st(d.value);
|
|
5165
5188
|
};
|
|
5166
|
-
return
|
|
5167
|
-
|
|
5168
|
-
}, { deep: !0 }),
|
|
5169
|
-
e &&
|
|
5170
|
-
}),
|
|
5189
|
+
return B(Z, (e) => {
|
|
5190
|
+
X.value && (We(e), !(k.value && !K.value) && at(e));
|
|
5191
|
+
}, { deep: !0 }), B(() => E.value[G.value], (e) => {
|
|
5192
|
+
e && D.value && De(!0);
|
|
5193
|
+
}), B(() => f.value, () => {
|
|
5171
5194
|
if (K.value) {
|
|
5172
|
-
if (
|
|
5173
|
-
let e = [], n =
|
|
5174
|
-
if (
|
|
5195
|
+
if (V.value) {
|
|
5196
|
+
let e = [], n = f.value;
|
|
5197
|
+
if (X.value) {
|
|
5175
5198
|
let r = Ds(t.value);
|
|
5176
5199
|
for (let t of r) {
|
|
5177
5200
|
let r = cc(t, n);
|
|
@@ -5181,80 +5204,91 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5181
5204
|
H.value = e;
|
|
5182
5205
|
return;
|
|
5183
5206
|
}
|
|
5184
|
-
|
|
5207
|
+
ae.value === "agSetColumnFilter" ? H.value = f.value?.[G.value]?.values || [] : ae.value === "agMultiColumnFilter" ? H.value = f.value?.[G.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${ae.value} is not yet supported.`);
|
|
5185
5208
|
}
|
|
5186
|
-
}),
|
|
5209
|
+
}), B(() => d.value, () => {
|
|
5187
5210
|
if (K.value) return;
|
|
5188
|
-
if (
|
|
5189
|
-
|
|
5211
|
+
if (X.value) {
|
|
5212
|
+
V.value && st(d.value);
|
|
5190
5213
|
return;
|
|
5191
5214
|
}
|
|
5192
|
-
if (
|
|
5193
|
-
let e =
|
|
5215
|
+
if (V.value) {
|
|
5216
|
+
let e = d.value, t = cc(G.value, e);
|
|
5194
5217
|
we(H.value.some((e) => e !== null && !t.includes(e)));
|
|
5195
5218
|
return;
|
|
5196
5219
|
}
|
|
5197
|
-
let e = $s(t.value,
|
|
5220
|
+
let e = $s(t.value, d.value);
|
|
5198
5221
|
we(H.value.some((t) => !e.includes(t)));
|
|
5199
|
-
}, { deep: !0 }),
|
|
5200
|
-
H.value = [],
|
|
5201
|
-
}),
|
|
5202
|
-
e &&
|
|
5203
|
-
}, { immediate: !0 }),
|
|
5204
|
-
|
|
5222
|
+
}, { deep: !0 }), B(() => p.value, () => {
|
|
5223
|
+
H.value = [], Z.value = [];
|
|
5224
|
+
}), B(() => s.value, (e) => {
|
|
5225
|
+
e && y.value && (E.value[G.value] = !0);
|
|
5226
|
+
}, { immediate: !0 }), B(() => re.value, async () => {
|
|
5227
|
+
D.value && (K.value ? setTimeout(async () => {
|
|
5205
5228
|
await De(!0);
|
|
5206
5229
|
}, 2e3) : await De(!0)), we();
|
|
5207
|
-
}), Ge(() =>
|
|
5230
|
+
}), Ge(() => ie.value, async () => {
|
|
5208
5231
|
await De(!0, !0);
|
|
5209
5232
|
}, { debounce: 300 }), w(() => {
|
|
5210
|
-
|
|
5233
|
+
M(G.value);
|
|
5211
5234
|
let e = Ds(t.value);
|
|
5212
|
-
e.length &&
|
|
5235
|
+
if (e.length && j(G.value, e), we(), X.value && V.value && st(d.value), o?.value && y.value && (X.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0)) {
|
|
5236
|
+
let e = [];
|
|
5237
|
+
if (X.value && V.value) {
|
|
5238
|
+
let n = d.value;
|
|
5239
|
+
for (let r of Ds(t.value)) e.push(...cc(r, n));
|
|
5240
|
+
} else e = [...H.value];
|
|
5241
|
+
e.length > 0 && u(t.value, e, {
|
|
5242
|
+
api: s.value ?? void 0,
|
|
5243
|
+
filterModel: d.value ?? void 0
|
|
5244
|
+
});
|
|
5245
|
+
}
|
|
5246
|
+
X.value || $(t.value).metadataDisplayFields?.length && H.value.some((e) => Ne(e)) && De(!0, !0);
|
|
5213
5247
|
}), T(() => {
|
|
5214
|
-
|
|
5248
|
+
N(G.value), k.value && !K.value && (X.value ? at(Z.value, { skipIfUnchanged: !0 }) : Ze(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5215
5249
|
}), {
|
|
5216
5250
|
selectedValues: H,
|
|
5217
5251
|
filterValues: U,
|
|
5218
|
-
isLoading:
|
|
5252
|
+
isLoading: W,
|
|
5219
5253
|
isSeeMoreLoading: se,
|
|
5220
|
-
filterSearchText:
|
|
5221
|
-
rowsLoading:
|
|
5254
|
+
filterSearchText: ie,
|
|
5255
|
+
rowsLoading: ne,
|
|
5222
5256
|
gridApi: s,
|
|
5223
5257
|
filterField: G,
|
|
5224
|
-
filterType:
|
|
5225
|
-
filterDisplayName:
|
|
5258
|
+
filterType: ae,
|
|
5259
|
+
filterDisplayName: oe,
|
|
5226
5260
|
isInFilterPanel: K,
|
|
5227
5261
|
maxSelectableValues: ue,
|
|
5228
|
-
isSingleSelect:
|
|
5262
|
+
isSingleSelect: J,
|
|
5229
5263
|
selectionLimitReached: ve,
|
|
5230
5264
|
suggestedValues: ye,
|
|
5231
|
-
displayedFilterValues:
|
|
5232
|
-
selectedFilterValues:
|
|
5265
|
+
displayedFilterValues: Je,
|
|
5266
|
+
selectedFilterValues: Ye,
|
|
5233
5267
|
showSearchBar: pe,
|
|
5234
5268
|
emptyFilterResultsRenderer: me,
|
|
5235
5269
|
filterOptionsRenderer: he,
|
|
5236
5270
|
filterHeaderRenderer: ge,
|
|
5237
5271
|
filterFooterRenderer: _e,
|
|
5238
|
-
filterOptionsSortDescription:
|
|
5272
|
+
filterOptionsSortDescription: de,
|
|
5239
5273
|
filterOptionsSortTooltip: fe,
|
|
5240
|
-
totalOptionCount:
|
|
5241
|
-
hasMoreOptions:
|
|
5242
|
-
isAggregate:
|
|
5243
|
-
cascadeSelectionState:
|
|
5244
|
-
filterValueContext:
|
|
5274
|
+
totalOptionCount: Y,
|
|
5275
|
+
hasMoreOptions: be,
|
|
5276
|
+
isAggregate: X,
|
|
5277
|
+
cascadeSelectionState: Z,
|
|
5278
|
+
filterValueContext: g,
|
|
5245
5279
|
formatDisplayValue: Me,
|
|
5246
5280
|
resolvedFilterValueContext: Oe,
|
|
5247
5281
|
isUnresolvedMetadataValue: Ne,
|
|
5248
5282
|
getLatestFilterValues: De,
|
|
5249
|
-
addSelectedValue:
|
|
5250
|
-
removeSelectedValue:
|
|
5251
|
-
handleDropdownOpen:
|
|
5252
|
-
handleDropdownClosed:
|
|
5253
|
-
handleSeeMore:
|
|
5254
|
-
handleCascadeSelectionState:
|
|
5283
|
+
addSelectedValue: Qe,
|
|
5284
|
+
removeSelectedValue: $e,
|
|
5285
|
+
handleDropdownOpen: et,
|
|
5286
|
+
handleDropdownClosed: tt,
|
|
5287
|
+
handleSeeMore: nt,
|
|
5288
|
+
handleCascadeSelectionState: at,
|
|
5255
5289
|
getColDisplayNameForField: Fe,
|
|
5256
5290
|
disableFilterValue: Pe,
|
|
5257
|
-
updateFilterModelWithSelectedValues:
|
|
5291
|
+
updateFilterModelWithSelectedValues: Ze
|
|
5258
5292
|
};
|
|
5259
5293
|
}, Sc = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
5260
5294
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
@@ -5347,7 +5381,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5347
5381
|
v(() => {
|
|
5348
5382
|
c.value?.setAdvancedFilterModel(n);
|
|
5349
5383
|
}), h(new Set([e]));
|
|
5350
|
-
},
|
|
5384
|
+
}, L = () => {
|
|
5351
5385
|
if (!c.value) return;
|
|
5352
5386
|
let e = C.value.fields.filter((e) => !b.value.has(e));
|
|
5353
5387
|
if (g.value) {
|
|
@@ -5359,7 +5393,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5359
5393
|
n.size > 0 && (v(() => {
|
|
5360
5394
|
c.value?.setAdvancedFilterModel(t);
|
|
5361
5395
|
}), h(n));
|
|
5362
|
-
},
|
|
5396
|
+
}, R = () => {
|
|
5363
5397
|
if (!c.value) return;
|
|
5364
5398
|
if (g.value) {
|
|
5365
5399
|
for (let e of C.value.fields) _.value.delete(e);
|
|
@@ -5370,12 +5404,12 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5370
5404
|
v(() => {
|
|
5371
5405
|
c.value?.setAdvancedFilterModel(e);
|
|
5372
5406
|
}), h(t);
|
|
5373
|
-
}, R = () => {
|
|
5374
|
-
x.value = !1;
|
|
5375
5407
|
}, z = () => {
|
|
5408
|
+
x.value = !1;
|
|
5409
|
+
}, ee = () => {
|
|
5376
5410
|
x.value ||= (A.value = S.value, D(), P(), !0);
|
|
5377
5411
|
};
|
|
5378
|
-
|
|
5412
|
+
B(f, () => {
|
|
5379
5413
|
if (!(g.value && x.value)) {
|
|
5380
5414
|
_.value.clear();
|
|
5381
5415
|
for (let e of C.value.fields) M(e) && _.value.add(e);
|
|
@@ -5386,23 +5420,23 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5386
5420
|
label: N(e),
|
|
5387
5421
|
isSelected: _.value.has(e),
|
|
5388
5422
|
isAvailable: !b.value.has(e)
|
|
5389
|
-
}))),
|
|
5423
|
+
}))), re = r(() => te.value ? ne.value.filter((e) => e.isSelected) : ne.value);
|
|
5390
5424
|
T(() => {
|
|
5391
5425
|
x.value = !1, _.value.clear(), b.value.clear();
|
|
5392
5426
|
});
|
|
5393
|
-
let
|
|
5427
|
+
let U = r(() => _.value.size);
|
|
5394
5428
|
return n({
|
|
5395
5429
|
openForTest: () => {
|
|
5396
5430
|
P(), x.value = !0;
|
|
5397
5431
|
},
|
|
5398
5432
|
selectedValues: _
|
|
5399
|
-
}), (e, n) =>
|
|
5433
|
+
}), (e, n) => H((E(), o("div", {
|
|
5400
5434
|
ref_key: "triggerWrapper",
|
|
5401
5435
|
ref: S,
|
|
5402
5436
|
style: { "padding-bottom": "4px" },
|
|
5403
5437
|
class: "pv-border-bottom",
|
|
5404
|
-
onMouseenter:
|
|
5405
|
-
onClick:
|
|
5438
|
+
onMouseenter: ee,
|
|
5439
|
+
onClick: ee
|
|
5406
5440
|
}, [u(La, {
|
|
5407
5441
|
config: {
|
|
5408
5442
|
variant: "icon",
|
|
@@ -5411,7 +5445,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5411
5445
|
id: C.value.label,
|
|
5412
5446
|
text: C.value.label,
|
|
5413
5447
|
"class-list": ["pv-menu-nested"],
|
|
5414
|
-
"secondary-text":
|
|
5448
|
+
"secondary-text": U.value || void 0
|
|
5415
5449
|
}, null, 8, [
|
|
5416
5450
|
"id",
|
|
5417
5451
|
"text",
|
|
@@ -5425,8 +5459,8 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5425
5459
|
...I(w)
|
|
5426
5460
|
}
|
|
5427
5461
|
}, {
|
|
5428
|
-
default:
|
|
5429
|
-
x.value &&
|
|
5462
|
+
default: V(() => [
|
|
5463
|
+
x.value && re.value.length > 0 ? (E(), o("ul", Cc, [(E(!0), o(t, null, k(re.value, (e) => (E(), o(t, { key: e.field }, [e.isAvailable ? (E(), o("li", {
|
|
5430
5464
|
key: 0,
|
|
5431
5465
|
"data-active": e.isSelected ? "true" : null
|
|
5432
5466
|
}, [u(La, {
|
|
@@ -5448,14 +5482,14 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5448
5482
|
"disable-interactive": !0,
|
|
5449
5483
|
style: { width: "100%" }
|
|
5450
5484
|
}, {
|
|
5451
|
-
label:
|
|
5485
|
+
label: V(() => [u(La, {
|
|
5452
5486
|
config: { variant: "checkbox" },
|
|
5453
5487
|
id: e.field,
|
|
5454
5488
|
text: e.label,
|
|
5455
5489
|
disabled: !0,
|
|
5456
5490
|
"class-list": ["pv-chart-option pv-flex"]
|
|
5457
5491
|
}, null, 8, ["id", "text"])]),
|
|
5458
|
-
"tooltip-content":
|
|
5492
|
+
"tooltip-content": V(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
5459
5493
|
_: 2
|
|
5460
5494
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
5461
5495
|
x.value && te.value ? (E(), o("div", Ec, [u(bt, { variant: "dark" })])) : a("", !0),
|
|
@@ -5465,12 +5499,12 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5465
5499
|
style: { "padding-top": "8px" },
|
|
5466
5500
|
variant: "select-clear",
|
|
5467
5501
|
disabled: te.value,
|
|
5468
|
-
onHandleSelectAll:
|
|
5469
|
-
onHandleClearAll:
|
|
5502
|
+
onHandleSelectAll: L,
|
|
5503
|
+
onHandleClearAll: R
|
|
5470
5504
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
5471
5505
|
]),
|
|
5472
5506
|
_: 1
|
|
5473
|
-
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Je), [
|
|
5507
|
+
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Je), [z, { ignore: [".pv-popover"] }]]]);
|
|
5474
5508
|
}
|
|
5475
5509
|
}), Oc = {
|
|
5476
5510
|
key: 0,
|
|
@@ -5531,68 +5565,68 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5531
5565
|
"handle-settings-icon"
|
|
5532
5566
|
],
|
|
5533
5567
|
setup(e, { emit: n }) {
|
|
5534
|
-
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, rowsLoading: A, gridApi: j, filterField: N, filterDisplayName:
|
|
5568
|
+
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, rowsLoading: A, gridApi: j, filterField: N, filterDisplayName: L, isInFilterPanel: R, suggestedValues: z, displayedFilterValues: ee, selectedFilterValues: te, showSearchBar: ne, emptyFilterResultsRenderer: re, filterOptionsRenderer: B, filterHeaderRenderer: H, filterFooterRenderer: U, filterOptionsSortDescription: W, filterOptionsSortTooltip: ie, filterValueContext: G, formatDisplayValue: ae, resolvedFilterValueContext: oe, isUnresolvedMetadataValue: K, getLatestFilterValues: q, addSelectedValue: se, removeSelectedValue: ce, handleDropdownOpen: le, handleDropdownClosed: ue, handleSeeMore: J, getColDisplayNameForField: de, hasMoreOptions: fe, totalOptionCount: pe, isAggregate: me, cascadeSelectionState: he } = xc({
|
|
5535
5569
|
filterColDef: F(d, "filterColDef"),
|
|
5536
5570
|
filterStyle: F(d, "filterStyle"),
|
|
5537
5571
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
5538
5572
|
filterGroupStagedFields: x,
|
|
5539
5573
|
readOnly: F(d, "readOnly")
|
|
5540
|
-
}), { handleFocusUpdate:
|
|
5574
|
+
}), { handleFocusUpdate: ge, isFocused: _e, removeFocus: ve, isFocusable: ye, canRemoveFocus: Y } = $o(), be = (e) => {
|
|
5541
5575
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
5542
5576
|
if (e.id.startsWith("__")) {
|
|
5543
5577
|
let t = e.id.slice(2).split("__");
|
|
5544
5578
|
if (t.length >= 2) return t[1];
|
|
5545
5579
|
}
|
|
5546
5580
|
return e.id;
|
|
5547
|
-
},
|
|
5548
|
-
if (
|
|
5581
|
+
}, X = r(() => {
|
|
5582
|
+
if (ye(As(d.filterColDef) ? Ds(d.filterColDef) : [N.value])) return {
|
|
5549
5583
|
icon: "focus",
|
|
5550
|
-
isDisabled: (e) => !
|
|
5584
|
+
isDisabled: (e) => !ye([e.context?.colField || N.value]),
|
|
5551
5585
|
tooltipText: (e) => {
|
|
5552
5586
|
let t = e.context?.colField || N.value;
|
|
5553
|
-
if (!
|
|
5554
|
-
let n =
|
|
5555
|
-
return n && !
|
|
5587
|
+
if (!ye([t])) return `Group by ${de(t)} to enable ${d.focusText}`;
|
|
5588
|
+
let n = _e(me.value ? be(e) : e.id, t);
|
|
5589
|
+
return n && !Y() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
5556
5590
|
},
|
|
5557
5591
|
action: (e) => {
|
|
5558
|
-
e && !C.value.includes(e.id) &&
|
|
5592
|
+
e && !C.value.includes(e.id) && se(e.id, e.context?.colField);
|
|
5559
5593
|
let t = e.context?.colField || N.value;
|
|
5560
|
-
|
|
5594
|
+
ge(me.value ? be(e) : e.id, t);
|
|
5561
5595
|
},
|
|
5562
5596
|
alwaysShow: (e) => {
|
|
5563
5597
|
let t = e.context?.colField || N.value;
|
|
5564
|
-
return
|
|
5598
|
+
return _e(me.value ? be(e) : e.id, t);
|
|
5565
5599
|
}
|
|
5566
5600
|
};
|
|
5567
|
-
}),
|
|
5601
|
+
}), xe = (e) => {
|
|
5568
5602
|
if (!e) return null;
|
|
5569
|
-
if (!
|
|
5570
|
-
let t =
|
|
5603
|
+
if (!me.value) return e;
|
|
5604
|
+
let t = oe(e);
|
|
5571
5605
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
5572
5606
|
if (e.startsWith("__")) {
|
|
5573
5607
|
let t = e.slice(2).split("__");
|
|
5574
5608
|
if (t.length >= 2) return t[1];
|
|
5575
5609
|
}
|
|
5576
5610
|
return e;
|
|
5577
|
-
},
|
|
5578
|
-
|
|
5579
|
-
let t =
|
|
5580
|
-
|
|
5581
|
-
},
|
|
5582
|
-
|
|
5583
|
-
},
|
|
5611
|
+
}, Se = (e) => {
|
|
5612
|
+
ce(e);
|
|
5613
|
+
let t = oe(e)?.colField || N.value, n = xe(e);
|
|
5614
|
+
_e(n, t) && Y() && ve(n);
|
|
5615
|
+
}, Z = m(Po, O(!1)), Ce = r(() => !!$(d.filterColDef).filterGroup && Z.value), we = () => {
|
|
5616
|
+
le(), q(!0);
|
|
5617
|
+
}, Te = () => {
|
|
5584
5618
|
v(() => {
|
|
5585
|
-
|
|
5619
|
+
ue(), f("filter-closed");
|
|
5586
5620
|
});
|
|
5587
|
-
},
|
|
5588
|
-
let t =
|
|
5589
|
-
return
|
|
5590
|
-
},
|
|
5591
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(
|
|
5621
|
+
}, Ee = (e) => {
|
|
5622
|
+
let t = oe(e)?.colField || N.value;
|
|
5623
|
+
return _e(xe(e), t);
|
|
5624
|
+
}, De = r(() => S.value > 0 ? !0 : me.value ? he.value.length > 0 : C.value.length > 0);
|
|
5625
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(R) && I(C).length > 0 ? (E(), o("ul", Oc, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(L)}-${n}` }, [I(K)(n) ? a("", !0) : (E(), o("li", kc, [u(Cn, {
|
|
5592
5626
|
label: I(ae)(n) || "",
|
|
5593
|
-
showClear: !e.readOnly && (!
|
|
5627
|
+
showClear: !e.readOnly && (!Ee(n) || I(Y)()),
|
|
5594
5628
|
disabled: e.readOnly,
|
|
5595
|
-
onHandleClose: (e) =>
|
|
5629
|
+
onHandleClose: (e) => Se(n)
|
|
5596
5630
|
}, null, 8, [
|
|
5597
5631
|
"label",
|
|
5598
5632
|
"showClear",
|
|
@@ -5604,63 +5638,63 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5604
5638
|
readOnly: e.readOnly,
|
|
5605
5639
|
searchInput: I(D),
|
|
5606
5640
|
"onUpdate:searchInput": r[2] ||= (e) => h(D) ? D.value = e : null,
|
|
5607
|
-
selectionState: I(
|
|
5608
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
5609
|
-
"data-horizontal-filter-field": I(
|
|
5610
|
-
label: I(
|
|
5641
|
+
selectionState: I(he),
|
|
5642
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(he) ? he.value = e : null,
|
|
5643
|
+
"data-horizontal-filter-field": I(R) ? void 0 : I(N),
|
|
5644
|
+
label: I(R) ? "" : I(L),
|
|
5611
5645
|
highlightSearchText: !0,
|
|
5612
|
-
icon: I(
|
|
5613
|
-
variant: I(
|
|
5614
|
-
counterPosition: !I(
|
|
5615
|
-
showClear: !I(
|
|
5646
|
+
icon: I(R) && !e.readOnly ? "add-circle" : void 0,
|
|
5647
|
+
variant: I(R) ? "ghost" : "secondary",
|
|
5648
|
+
counterPosition: !I(R) && De.value ? void 0 : "none",
|
|
5649
|
+
showClear: !I(R),
|
|
5616
5650
|
showSearchInput: I(ne),
|
|
5617
|
-
showDropdown: !I(
|
|
5618
|
-
overlayTrigger: I(
|
|
5619
|
-
options: I(
|
|
5620
|
-
optionsRenderer: I(
|
|
5621
|
-
optionsAction:
|
|
5651
|
+
showDropdown: !I(R),
|
|
5652
|
+
overlayTrigger: I(R),
|
|
5653
|
+
options: I(ee),
|
|
5654
|
+
optionsRenderer: I(B),
|
|
5655
|
+
optionsAction: X.value,
|
|
5622
5656
|
popoverCssProperties: {
|
|
5623
5657
|
maxHeight: "400px",
|
|
5624
|
-
maxWidth: I(
|
|
5658
|
+
maxWidth: I(R) ? "300px" : "400px",
|
|
5625
5659
|
overflowX: "auto",
|
|
5626
5660
|
width: "auto"
|
|
5627
5661
|
},
|
|
5628
|
-
disableClearIcon: !!I(
|
|
5629
|
-
disableDropdownIcon: !!I(
|
|
5662
|
+
disableClearIcon: !!I(R) || e.readOnly,
|
|
5663
|
+
disableDropdownIcon: !!I(R),
|
|
5630
5664
|
groupings: ["preferences", "suggestions"],
|
|
5631
5665
|
isLoading: I(w),
|
|
5632
5666
|
isSeeMoreLoading: I(T),
|
|
5633
|
-
hasMoreOptions: I(
|
|
5634
|
-
totalOptionCount: I(
|
|
5635
|
-
enableCascadeSelection: I(
|
|
5636
|
-
enableChildExpansion: I(
|
|
5637
|
-
parentSelectsAllChildren: I(
|
|
5638
|
-
countSelectedParents: I(
|
|
5667
|
+
hasMoreOptions: I(fe),
|
|
5668
|
+
totalOptionCount: I(pe),
|
|
5669
|
+
enableCascadeSelection: I(me),
|
|
5670
|
+
enableChildExpansion: I(me),
|
|
5671
|
+
parentSelectsAllChildren: I(me),
|
|
5672
|
+
countSelectedParents: I(me),
|
|
5639
5673
|
additionalCounter: S.value,
|
|
5640
5674
|
slotContext: {
|
|
5641
5675
|
gridApi: I(j),
|
|
5642
5676
|
filterColDef: e.filterColDef,
|
|
5643
5677
|
rowsLoading: I(A)
|
|
5644
5678
|
},
|
|
5645
|
-
onDropdownOpen:
|
|
5646
|
-
onDropdownClosed:
|
|
5647
|
-
onSeeMore: I(
|
|
5679
|
+
onDropdownOpen: we,
|
|
5680
|
+
onDropdownClosed: Te,
|
|
5681
|
+
onSeeMore: I(J)
|
|
5648
5682
|
}, c({
|
|
5649
|
-
preferences:
|
|
5683
|
+
preferences: V(() => [s("div", Ac, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(vi), {
|
|
5650
5684
|
variant: "dark",
|
|
5651
5685
|
size: "sm",
|
|
5652
5686
|
"use-teleport": !0
|
|
5653
5687
|
}, {
|
|
5654
|
-
trigger:
|
|
5688
|
+
trigger: V(() => [u(mn, {
|
|
5655
5689
|
size: "md",
|
|
5656
5690
|
variant: "ghost",
|
|
5657
|
-
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(
|
|
5691
|
+
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(L)),
|
|
5658
5692
|
"right-icon": "sliders-horizontal"
|
|
5659
5693
|
})]),
|
|
5660
|
-
content:
|
|
5694
|
+
content: V(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
5661
5695
|
_: 1
|
|
5662
5696
|
})])]),
|
|
5663
|
-
suggestions:
|
|
5697
|
+
suggestions: V(() => [s("div", jc, [u(I(vi), {
|
|
5664
5698
|
variant: "dark",
|
|
5665
5699
|
disableInteractive: !0,
|
|
5666
5700
|
position: "top-left",
|
|
@@ -5668,37 +5702,37 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5668
5702
|
"use-teleport": !0,
|
|
5669
5703
|
style: { "--max-width": "200px" }
|
|
5670
5704
|
}, c({
|
|
5671
|
-
trigger:
|
|
5705
|
+
trigger: V(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(ie) ? "suggested-title-label" : ""]) }, P(I(W)), 3)]),
|
|
5672
5706
|
_: 2
|
|
5673
|
-
}, [I(
|
|
5707
|
+
}, [I(ie) ? {
|
|
5674
5708
|
name: "content",
|
|
5675
|
-
fn:
|
|
5709
|
+
fn: V(() => [l(P(I(ie)), 1)]),
|
|
5676
5710
|
key: "0"
|
|
5677
5711
|
} : void 0]), 1024)])]),
|
|
5678
5712
|
_: 2
|
|
5679
5713
|
}, [
|
|
5680
|
-
I(
|
|
5714
|
+
I(H) || Ce.value ? {
|
|
5681
5715
|
name: "header",
|
|
5682
|
-
fn:
|
|
5716
|
+
fn: V((t) => [Ce.value ? (E(), i(Dc, {
|
|
5683
5717
|
key: 0,
|
|
5684
5718
|
ref_key: "filterGroupMenuRef",
|
|
5685
5719
|
ref: g,
|
|
5686
5720
|
class: "pv-stack-8",
|
|
5687
5721
|
"filter-col-def": e.filterColDef
|
|
5688
|
-
}, null, 8, ["filter-col-def"])) : a("", !0), I(
|
|
5722
|
+
}, null, 8, ["filter-col-def"])) : a("", !0), I(H) ? (E(), i(M(I(H)), b(_({ key: 1 }, t)), null, 16)) : a("", !0)]),
|
|
5689
5723
|
key: "0"
|
|
5690
5724
|
} : void 0,
|
|
5691
|
-
I(
|
|
5725
|
+
I(re) ? {
|
|
5692
5726
|
name: "no-results",
|
|
5693
|
-
fn:
|
|
5727
|
+
fn: V((e) => [(E(), i(M(I(re)), b(p(e)), null, 16))]),
|
|
5694
5728
|
key: "1"
|
|
5695
5729
|
} : void 0,
|
|
5696
|
-
I(
|
|
5730
|
+
I(U) ? {
|
|
5697
5731
|
name: "footer",
|
|
5698
|
-
fn:
|
|
5732
|
+
fn: V((e) => [(E(), i(M(I(U)), b(p(e)), null, 16))]),
|
|
5699
5733
|
key: "2"
|
|
5700
5734
|
} : void 0
|
|
5701
|
-
]), 1032, /* @__PURE__ */ "modelValue.readOnly.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(
|
|
5735
|
+
]), 1032, /* @__PURE__ */ "modelValue.readOnly.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(R) && !e.readOnly ? (E(), o("div", Mc, [I(z).length > 0 ? (E(), o("div", Nc, [s("ul", Pc, [u(I(vi), {
|
|
5702
5736
|
variant: "dark",
|
|
5703
5737
|
disableInteractive: !0,
|
|
5704
5738
|
position: "bottom-left",
|
|
@@ -5706,14 +5740,14 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5706
5740
|
"use-teleport": !0,
|
|
5707
5741
|
style: { "--max-width": "200px" }
|
|
5708
5742
|
}, c({
|
|
5709
|
-
trigger:
|
|
5743
|
+
trigger: V(() => [s("li", Fc, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(ie) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
5710
5744
|
_: 2
|
|
5711
|
-
}, [I(
|
|
5745
|
+
}, [I(ie) ? {
|
|
5712
5746
|
name: "content",
|
|
5713
|
-
fn:
|
|
5747
|
+
fn: V(() => [l(P(I(ie)), 1)]),
|
|
5714
5748
|
key: "0"
|
|
5715
|
-
} : void 0]), 1024), (E(!0), o(t, null, k(I(
|
|
5716
|
-
key: `${I(
|
|
5749
|
+
} : void 0]), 1024), (E(!0), o(t, null, k(I(z).filter((e) => e !== "" && e != null).slice(0, Ic), (e) => (E(), o("li", {
|
|
5750
|
+
key: `${I(L)}-${e}-suggest`,
|
|
5717
5751
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
5718
5752
|
style: {
|
|
5719
5753
|
"max-width": "100%",
|
|
@@ -5722,7 +5756,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5722
5756
|
}, [u(I(Mi), {
|
|
5723
5757
|
disabled: I(w),
|
|
5724
5758
|
label: I(ae)(e) || "",
|
|
5725
|
-
onHandleClick: (t) => I(
|
|
5759
|
+
onHandleClick: (t) => I(se)(e, I(G)(I(N), e)?.colField)
|
|
5726
5760
|
}, null, 8, [
|
|
5727
5761
|
"disabled",
|
|
5728
5762
|
"label",
|
|
@@ -5774,41 +5808,41 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5774
5808
|
let n = As(e) ? Ds(e) : [e.field || ""];
|
|
5775
5809
|
if (f.value) {
|
|
5776
5810
|
let e = /* @__PURE__ */ new Set();
|
|
5777
|
-
return
|
|
5811
|
+
return z(t, e), n.some((t) => e.has(t));
|
|
5778
5812
|
}
|
|
5779
5813
|
let r = t;
|
|
5780
5814
|
return n.some((e) => !!r[e]);
|
|
5781
5815
|
}, N = r(() => c.value.filter((e) => Ys(e) && !A.value.includes(e.field || "") && !j.value.includes(e.field || "") && (!p.readOnly || M(e))).sort((e, t) => {
|
|
5782
5816
|
let n = As(e), r = As(t);
|
|
5783
5817
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
5784
|
-
})), F = r(() => N.value),
|
|
5818
|
+
})), F = r(() => N.value), L = r(() => {
|
|
5785
5819
|
let e = D.value?.trim().toLowerCase() || "";
|
|
5786
5820
|
return !e || e === "" ? F.value : c.value.filter((t) => {
|
|
5787
5821
|
let n = t.headerName?.toLowerCase() || t.field?.toLowerCase();
|
|
5788
5822
|
return n ? n.includes(e) : !1;
|
|
5789
5823
|
});
|
|
5790
|
-
}),
|
|
5824
|
+
}), R = r(() => {
|
|
5791
5825
|
let e = [...N.value].slice(0, p.maxHorizontalFilters);
|
|
5792
5826
|
return d.value ? [...e.slice(0, p.maxHorizontalFilters - 1), d.value] : e;
|
|
5793
|
-
}),
|
|
5827
|
+
}), z = (e, t) => {
|
|
5794
5828
|
if (!e || typeof e != "object") return;
|
|
5795
5829
|
let n = e;
|
|
5796
5830
|
if (n.filterType && n.filterType !== "join" && n.colId) {
|
|
5797
5831
|
t.add(n.colId);
|
|
5798
5832
|
return;
|
|
5799
5833
|
}
|
|
5800
|
-
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) =>
|
|
5801
|
-
},
|
|
5834
|
+
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => z(e, t));
|
|
5835
|
+
}, ee = r(() => {
|
|
5802
5836
|
let e = _.value;
|
|
5803
5837
|
if (f.value && n.value) {
|
|
5804
5838
|
let t = /* @__PURE__ */ new Set();
|
|
5805
|
-
return
|
|
5839
|
+
return z(e, t), t.size;
|
|
5806
5840
|
}
|
|
5807
5841
|
let t = _.value || {};
|
|
5808
5842
|
return Object.keys(t).length;
|
|
5809
5843
|
}), te = O(!1), ne = () => {
|
|
5810
5844
|
te.value = !0;
|
|
5811
|
-
},
|
|
5845
|
+
}, re = () => {
|
|
5812
5846
|
if (n.value) {
|
|
5813
5847
|
te.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
5814
5848
|
for (let e of F.value) {
|
|
@@ -5822,17 +5856,17 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5822
5856
|
});
|
|
5823
5857
|
}
|
|
5824
5858
|
}
|
|
5825
|
-
}, { clearAllFocuses:
|
|
5826
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
5827
|
-
},
|
|
5859
|
+
}, { clearAllFocuses: B } = $o(), H = () => {
|
|
5860
|
+
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, B(), T.value = !1);
|
|
5861
|
+
}, U = () => {
|
|
5828
5862
|
w.value = !1, D.value = "";
|
|
5829
5863
|
}, W = () => {
|
|
5830
|
-
b(), g.value = null,
|
|
5831
|
-
},
|
|
5832
|
-
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null,
|
|
5864
|
+
b(), g.value = null, U();
|
|
5865
|
+
}, ie = () => {
|
|
5866
|
+
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, U();
|
|
5833
5867
|
};
|
|
5834
5868
|
return (e, r) => (E(), o(t, null, [s("div", Rc, [
|
|
5835
|
-
(E(!0), o(t, null, k(
|
|
5869
|
+
(E(!0), o(t, null, k(R.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(Lc, {
|
|
5836
5870
|
key: 0,
|
|
5837
5871
|
"enable-focus-view": p.enableFocusView,
|
|
5838
5872
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -5850,19 +5884,19 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5850
5884
|
s("div", zc, [p.enableVerticalPanel ? (E(), i(I(mn), {
|
|
5851
5885
|
key: 0,
|
|
5852
5886
|
label: "All Filters",
|
|
5853
|
-
onClick:
|
|
5887
|
+
onClick: re,
|
|
5854
5888
|
variant: "ghost",
|
|
5855
5889
|
"left-icon": "filter"
|
|
5856
|
-
})) : a("", !0),
|
|
5890
|
+
})) : a("", !0), ee.value > 0 && !p.readOnly ? (E(), o("button", {
|
|
5857
5891
|
key: 1,
|
|
5858
5892
|
class: "pv-button-ghost",
|
|
5859
5893
|
onClick: r[1] ||= (e) => T.value = !0
|
|
5860
5894
|
}, [
|
|
5861
5895
|
u(I(sn), { name: "close" }),
|
|
5862
5896
|
r[13] ||= l(" Clear All Filters ", -1),
|
|
5863
|
-
|
|
5897
|
+
ee.value > 0 ? (E(), i(I(dn), {
|
|
5864
5898
|
key: 0,
|
|
5865
|
-
value:
|
|
5899
|
+
value: ee.value,
|
|
5866
5900
|
variant: "tertiary"
|
|
5867
5901
|
}, null, 8, ["value"])) : a("", !0)
|
|
5868
5902
|
])) : a("", !0)]),
|
|
@@ -5872,13 +5906,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5872
5906
|
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
5873
5907
|
class: "pv-drawer pv-surface",
|
|
5874
5908
|
"close-on-click-outside": !0,
|
|
5875
|
-
onClickOutside: r[10] ||= (e) =>
|
|
5909
|
+
onClickOutside: r[10] ||= (e) => ie(),
|
|
5876
5910
|
style: {
|
|
5877
5911
|
"max-width": "450px",
|
|
5878
5912
|
"z-index": "10"
|
|
5879
5913
|
}
|
|
5880
5914
|
}, {
|
|
5881
|
-
header:
|
|
5915
|
+
header: V(() => [s("div", Bc, [s("p", Vc, "All Filters (" + P(F.value.length) + ")", 1), s("button", {
|
|
5882
5916
|
class: "pv-button-ghost",
|
|
5883
5917
|
"aria-label": "Close",
|
|
5884
5918
|
onClick: r[2] ||= (e) => W()
|
|
@@ -5887,14 +5921,14 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5887
5921
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
5888
5922
|
placeholder: "Search Filters"
|
|
5889
5923
|
}, null, 8, ["modelValue"])]),
|
|
5890
|
-
footer:
|
|
5924
|
+
footer: V(() => [s("div", qc, [p.readOnly ? (E(), i(I(mn), {
|
|
5891
5925
|
key: 1,
|
|
5892
5926
|
variant: "ghost",
|
|
5893
5927
|
label: "Close",
|
|
5894
5928
|
onClick: r[8] ||= (e) => W()
|
|
5895
5929
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
5896
5930
|
class: "pv-button-ghost",
|
|
5897
|
-
onClick: r[5] ||= (e) =>
|
|
5931
|
+
onClick: r[5] ||= (e) => H()
|
|
5898
5932
|
}, "Clear All"), s("div", Jc, [u(I(mn), {
|
|
5899
5933
|
variant: "ghost",
|
|
5900
5934
|
label: "Cancel",
|
|
@@ -5903,16 +5937,16 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5903
5937
|
key: 0,
|
|
5904
5938
|
variant: "primary",
|
|
5905
5939
|
label: "Apply",
|
|
5906
|
-
onClick: r[7] ||= (e) =>
|
|
5940
|
+
onClick: r[7] ||= (e) => ie()
|
|
5907
5941
|
})) : (E(), i(I(mn), {
|
|
5908
5942
|
key: 1,
|
|
5909
5943
|
variant: "primary",
|
|
5910
5944
|
label: "No Changes",
|
|
5911
5945
|
disabled: ""
|
|
5912
5946
|
}))])], 64))])]),
|
|
5913
|
-
default:
|
|
5947
|
+
default: V(() => [s("div", Hc, [s("div", Uc, [(E(!0), o(t, null, k(L.value, (t, c) => (E(), o("div", {
|
|
5914
5948
|
key: t.field,
|
|
5915
|
-
class: y([{ "pv-border-bottom": c <
|
|
5949
|
+
class: y([{ "pv-border-bottom": c < L.value.length - 1 }, "pv-stack-12"])
|
|
5916
5950
|
}, [s("details", Wc, [s("summary", Gc, [s("span", Kc, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(Lc, {
|
|
5917
5951
|
key: 0,
|
|
5918
5952
|
"filter-style": "vertical",
|
|
@@ -5938,8 +5972,8 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5938
5972
|
header: "Clear All Filters",
|
|
5939
5973
|
style: { top: "50%" }
|
|
5940
5974
|
}, {
|
|
5941
|
-
body:
|
|
5942
|
-
footer:
|
|
5975
|
+
body: V(() => [...r[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
5976
|
+
footer: V(() => [s("div", Yc, [u(I(mn), {
|
|
5943
5977
|
label: "Cancel",
|
|
5944
5978
|
variant: "secondary",
|
|
5945
5979
|
size: "lg",
|
|
@@ -5948,7 +5982,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5948
5982
|
label: "Clear All Filters",
|
|
5949
5983
|
variant: "primary",
|
|
5950
5984
|
size: "lg",
|
|
5951
|
-
onClick:
|
|
5985
|
+
onClick: H
|
|
5952
5986
|
})])]),
|
|
5953
5987
|
_: 1
|
|
5954
5988
|
}, 8, ["modelValue"])], 64));
|
|
@@ -5987,7 +6021,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5987
6021
|
}, I = () => {
|
|
5988
6022
|
f.value && l.params.progressSort(!1);
|
|
5989
6023
|
};
|
|
5990
|
-
|
|
6024
|
+
B(D, (e) => {
|
|
5991
6025
|
if (!e) return;
|
|
5992
6026
|
let t = l.params.column.getAggFunc();
|
|
5993
6027
|
if (e.id === t) return;
|
|
@@ -6003,10 +6037,10 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6003
6037
|
}
|
|
6004
6038
|
F(l.params);
|
|
6005
6039
|
});
|
|
6006
|
-
function
|
|
6040
|
+
function L(e) {
|
|
6007
6041
|
return F(e), !0;
|
|
6008
6042
|
}
|
|
6009
|
-
return t({ refresh:
|
|
6043
|
+
return t({ refresh: L }), (e, t) => (E(), o("div", {
|
|
6010
6044
|
class: "ag-custom-header-cell pv-flex pv-full-width pv-space-between",
|
|
6011
6045
|
style: x(k.value),
|
|
6012
6046
|
onClick: I
|
|
@@ -6031,7 +6065,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6031
6065
|
variant: "ghost",
|
|
6032
6066
|
size: "lg",
|
|
6033
6067
|
label: p.value || "",
|
|
6034
|
-
onClick: t[1] ||=
|
|
6068
|
+
onClick: t[1] ||= U(() => {}, ["stop"])
|
|
6035
6069
|
}, null, 8, [
|
|
6036
6070
|
"modelValue",
|
|
6037
6071
|
"options",
|
|
@@ -6051,7 +6085,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6051
6085
|
variant: "ghost",
|
|
6052
6086
|
"left-icon": "menu",
|
|
6053
6087
|
ariaLabel: "Column menu",
|
|
6054
|
-
onClick:
|
|
6088
|
+
onClick: U(N, ["stop", "prevent"])
|
|
6055
6089
|
})], 4)])) : a("", !0)], 4));
|
|
6056
6090
|
}
|
|
6057
6091
|
}), [["__scopeId", "data-v-385ad98a"]]), el = {
|
|
@@ -6069,13 +6103,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6069
6103
|
rangeSelectionBorderStyle: "solid",
|
|
6070
6104
|
menuBackgroundColor: "white",
|
|
6071
6105
|
accentColor: "#36C5BA"
|
|
6072
|
-
}, tl =
|
|
6106
|
+
}, tl = Se.withParams({
|
|
6073
6107
|
...el,
|
|
6074
6108
|
headerRowBorder: !0,
|
|
6075
6109
|
rowHoverColor: "#F7F8F8",
|
|
6076
6110
|
wrapperBorder: !0,
|
|
6077
6111
|
wrapperBorderRadius: "8px"
|
|
6078
|
-
}), nl =
|
|
6112
|
+
}), nl = Se.withParams({
|
|
6079
6113
|
...el,
|
|
6080
6114
|
headerRowBorder: !1,
|
|
6081
6115
|
rowHoverColor: "transparent",
|
|
@@ -6086,7 +6120,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6086
6120
|
rowHeight: "50px"
|
|
6087
6121
|
}), rl = {
|
|
6088
6122
|
"pv-data-table-base": tl,
|
|
6089
|
-
"pv-data-table-grouped":
|
|
6123
|
+
"pv-data-table-grouped": Se.withParams({
|
|
6090
6124
|
...el,
|
|
6091
6125
|
headerRowBorder: !0,
|
|
6092
6126
|
rowHoverColor: "#F7F8F8",
|
|
@@ -6120,7 +6154,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6120
6154
|
class: "pv-icon-24"
|
|
6121
6155
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", al, [s("button", {
|
|
6122
6156
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
6123
|
-
onClick:
|
|
6157
|
+
onClick: U(i, ["prevent"]),
|
|
6124
6158
|
disabled: r.value
|
|
6125
6159
|
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, ol)])]));
|
|
6126
6160
|
}
|
|
@@ -6131,7 +6165,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6131
6165
|
__name: "PaginationPanel",
|
|
6132
6166
|
props: { panelSize: { default: "xl" } },
|
|
6133
6167
|
setup(e) {
|
|
6134
|
-
|
|
6168
|
+
pe.registerModules([J]);
|
|
6135
6169
|
let n = m(fo, O(null)), a = m(So, O(1)), s = m(Co, O(0)), c = e, l = r(() => {
|
|
6136
6170
|
let e = s.value, t = a.value;
|
|
6137
6171
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
@@ -6475,54 +6509,54 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6475
6509
|
],
|
|
6476
6510
|
setup(e, { expose: t, emit: c }) {
|
|
6477
6511
|
let d = [
|
|
6512
|
+
Z,
|
|
6478
6513
|
Ce,
|
|
6479
|
-
we,
|
|
6480
6514
|
ae,
|
|
6515
|
+
we,
|
|
6516
|
+
K,
|
|
6481
6517
|
Te,
|
|
6482
|
-
|
|
6518
|
+
q,
|
|
6483
6519
|
Ee,
|
|
6484
|
-
se,
|
|
6485
6520
|
De,
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
be,
|
|
6492
|
-
Ie,
|
|
6521
|
+
se,
|
|
6522
|
+
le,
|
|
6523
|
+
de,
|
|
6524
|
+
ke,
|
|
6525
|
+
ye,
|
|
6493
6526
|
Fe,
|
|
6494
|
-
Le,
|
|
6495
|
-
xe,
|
|
6496
|
-
je,
|
|
6497
|
-
ve,
|
|
6498
|
-
Ne,
|
|
6499
6527
|
Pe,
|
|
6500
|
-
|
|
6501
|
-
|
|
6528
|
+
Ie,
|
|
6529
|
+
X,
|
|
6530
|
+
Ae,
|
|
6502
6531
|
_e,
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
K,
|
|
6507
|
-
J,
|
|
6508
|
-
pe,
|
|
6532
|
+
Me,
|
|
6533
|
+
Ne,
|
|
6534
|
+
ve,
|
|
6509
6535
|
he,
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6536
|
+
ge,
|
|
6537
|
+
Le,
|
|
6538
|
+
be,
|
|
6539
|
+
xe,
|
|
6540
|
+
oe,
|
|
6541
|
+
Y,
|
|
6542
|
+
fe,
|
|
6543
|
+
me,
|
|
6544
|
+
ue,
|
|
6545
|
+
ce,
|
|
6546
|
+
je
|
|
6513
6547
|
];
|
|
6514
|
-
|
|
6548
|
+
Oe.setLicenseKey("Using_this_{AG_Grid}_Enterprise_key_{AG-084011}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Grid}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{16_August_2026}____[v3]_[01]_MTc4NjgzNDgwMDAwMA==3bfdb2557ede1aa3533ccbd05785addb");
|
|
6515
6549
|
let f = e;
|
|
6516
|
-
f.debugMode && d.push(
|
|
6550
|
+
f.debugMode && d.push(Re);
|
|
6517
6551
|
let p = r(() => f.layout ? {} : {
|
|
6518
6552
|
height: f.containerHeight,
|
|
6519
6553
|
minHeight: f.containerMinHeight
|
|
6520
|
-
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme :
|
|
6521
|
-
if (!
|
|
6522
|
-
e.success({ rowData: [] }),
|
|
6554
|
+
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : J.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", w = r(() => h.value ? f.theme : rl[g.value]), T = c, k = O(!1), j = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
6555
|
+
if (!Be.value) {
|
|
6556
|
+
e.success({ rowData: [] }), pe.value = !0;
|
|
6523
6557
|
return;
|
|
6524
6558
|
}
|
|
6525
|
-
|
|
6559
|
+
Se.value = !0;
|
|
6526
6560
|
let t = e.success, n = e.fail, r = e.request.groupKeys?.length || 0, i = e.request.rowGroupCols?.length || 0, a = r === i, o = !1, s = Ye.value;
|
|
6527
6561
|
if (i > 0 && r === 0) {
|
|
6528
6562
|
let t = e.request.rowGroupCols[0].id;
|
|
@@ -6589,7 +6623,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6589
6623
|
e.request.filterModel = Js(ne, t, s);
|
|
6590
6624
|
}
|
|
6591
6625
|
e.success = (e) => {
|
|
6592
|
-
if (
|
|
6626
|
+
if (Se.value = !1, f.enableFocusView && at.value.length > 0 && it.value && e.rowData) {
|
|
6593
6627
|
let n = xs(e.rowData, it.value, at.value);
|
|
6594
6628
|
if (n) {
|
|
6595
6629
|
e.rowData = n, t(e);
|
|
@@ -6598,11 +6632,11 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6598
6632
|
}
|
|
6599
6633
|
t(e);
|
|
6600
6634
|
}, e.fail = () => {
|
|
6601
|
-
|
|
6635
|
+
Se.value = !1, n();
|
|
6602
6636
|
}, f.serverSideRowHandler?.(e);
|
|
6603
6637
|
} } : null, M = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
6604
6638
|
let t = [], n = { ...Je.value };
|
|
6605
|
-
t = !
|
|
6639
|
+
t = !pe.value && W ? uc(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await et(e.colDef, {
|
|
6606
6640
|
api: e.api,
|
|
6607
6641
|
filterModel: n,
|
|
6608
6642
|
useStaged: !1
|
|
@@ -6612,7 +6646,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6612
6646
|
return !t.group || !n ? !1 : ct.value.some((e) => {
|
|
6613
6647
|
if (e.field === n) return !0;
|
|
6614
6648
|
});
|
|
6615
|
-
},
|
|
6649
|
+
}, L = (() => {
|
|
6616
6650
|
let e = {
|
|
6617
6651
|
suppressHeaderFilterButton: !f.enableInlineFilters,
|
|
6618
6652
|
editable: !1,
|
|
@@ -6630,7 +6664,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6630
6664
|
component: Fs,
|
|
6631
6665
|
params: e
|
|
6632
6666
|
};
|
|
6633
|
-
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber &&
|
|
6667
|
+
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && J.value.length === 0) {
|
|
6634
6668
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
6635
6669
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
6636
6670
|
component: pl,
|
|
@@ -6640,18 +6674,18 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6640
6674
|
}
|
|
6641
6675
|
};
|
|
6642
6676
|
return f.defaultColDefOverrides && Object.assign(e, f.defaultColDefOverrides), e;
|
|
6643
|
-
})(),
|
|
6677
|
+
})(), R = O(void 0), z = r(() => (e) => {
|
|
6644
6678
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
6645
6679
|
let t = [];
|
|
6646
6680
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
6647
|
-
}),
|
|
6681
|
+
}), ee = {
|
|
6648
6682
|
name: "Column Filter",
|
|
6649
6683
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
6650
6684
|
action: function(e) {
|
|
6651
6685
|
let t = e.column?.getColId();
|
|
6652
6686
|
if (e.column && _t(e.column) && (t = lt.value?.getColId() || ""), !It(t)) {
|
|
6653
6687
|
let n = e.api.getColumn(t)?.getColDef();
|
|
6654
|
-
n && (
|
|
6688
|
+
n && (ie.value = n, v(() => {
|
|
6655
6689
|
It(t);
|
|
6656
6690
|
}));
|
|
6657
6691
|
}
|
|
@@ -6675,15 +6709,15 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6675
6709
|
j && M && Ys(e) && (t = Xs(e, M));
|
|
6676
6710
|
let n = e.context;
|
|
6677
6711
|
return n && (t = te(t, n)), t;
|
|
6678
|
-
}).filter((e) => e != null) || [],
|
|
6679
|
-
for (let e of ne) for (let t of Ds(e))
|
|
6680
|
-
let W = Hs(f.initialGridState, ne, f.enableAdvancedFilter),
|
|
6681
|
-
if (
|
|
6682
|
-
let e =
|
|
6712
|
+
}).filter((e) => e != null) || [], U = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
6713
|
+
for (let e of ne) for (let t of Ds(e)) U.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
6714
|
+
let W = Hs(f.initialGridState, ne, f.enableAdvancedFilter), ie = O(null), J = O([]), pe = m(bo, O(!1)), Se = O(!1), ze = r(() => {
|
|
6715
|
+
if (J.value.length > 0) {
|
|
6716
|
+
let e = J.value[0], t = ne.find((t) => t.field === e), n = Je.value, r = !n;
|
|
6683
6717
|
if (!r && hc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
6684
6718
|
}
|
|
6685
6719
|
return null;
|
|
6686
|
-
}),
|
|
6720
|
+
}), Be = r(() => Ue.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : ze.value === null), Ve = r(() => ze.value ? `Select at least one value for "${ze.value}" to view data.` : "Select a filter to view data."), Q = N(null), He = O([]), Ue = f.filterStore || yc(), We = m(lo, null), qe = We || Qo(null, f.allFieldsAreFocusable), Je = Ue.filterModel, Ye = Ue.tableSearchFilterModel, Xe = Ue.filterValueMap, Ze = Ue.filterValuesMap, Qe = Ue.filterValueSelectedMetadataMap, et = Ue.fetchFilterValues, tt = Ue.filterStoreHandler, nt = Ue.tableSearchHandler;
|
|
6687
6721
|
tt.value = f.filterValuesSetHandler, nt.value = f.tableSearchHandler, Xe.value = f.initialFilterValueMap || {}, Ze.value = Object.fromEntries(Object.entries(f.initialFilterValueMap || {}).map(([e, t]) => [e, t.filter((e) => e != null).map((e) => e.value)])), Qe.value = f.initialFilterValueSelectedMetadataMap || {}, Ue.refreshFiltersInBackground.value = f.refreshFiltersInBackground ?? !1, Ue.stageFilterChangesUntilDropdownCloses.value = f.stageFilterChangesUntilDropdownCloses ?? !1, Ge([Xe, Qe], () => {
|
|
6688
6722
|
T("filter-metadata-changed", {
|
|
6689
6723
|
filterValueMap: Xe.value,
|
|
@@ -6694,35 +6728,35 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6694
6728
|
debounce: 250
|
|
6695
6729
|
});
|
|
6696
6730
|
let rt = O(null), it = r(() => qe?.computedFocusType.value || null), at = r(() => qe?.computedFocuses.value || []), ot = r(() => ne.filter((e) => e.filter)), st = r(() => ne.filter((e) => e.enableRowGroup)), ct = r(() => ne.filter((e) => e.aggFunc)), lt = O(null), ut = O({}), dt = O(1), ft = O(0);
|
|
6697
|
-
D(co, Ue), D(lo, qe), D(uo,
|
|
6731
|
+
D(co, Ue), D(lo, qe), D(uo, He), D(fo, Q), D(po, rt), D(mo, ie), D(ho, ot), D(go, st), D(_o, J), D(vo, lt), D(yo, ut), D(bo, pe), D(xo, Se), D(So, dt), D(Co, ft), D(Po, r(() => f.enableAdvancedFilter));
|
|
6698
6732
|
let pt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !at.value.length && !it.value ? f.rowData : xs(f.rowData, it.value, at.value));
|
|
6699
|
-
|
|
6733
|
+
B(() => at.value, (e) => {
|
|
6700
6734
|
T("focus-update", {
|
|
6701
6735
|
filterField: it.value,
|
|
6702
6736
|
focuses: e
|
|
6703
6737
|
});
|
|
6704
|
-
}),
|
|
6705
|
-
if (!
|
|
6738
|
+
}), B(k, (e) => {
|
|
6739
|
+
if (!Q.value) return;
|
|
6706
6740
|
let t = ne.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
6707
|
-
t.length > 0 &&
|
|
6741
|
+
t.length > 0 && Q.value.setColumnsVisible(t, e);
|
|
6708
6742
|
});
|
|
6709
6743
|
let mt = (e) => {
|
|
6710
|
-
|
|
6711
|
-
let t =
|
|
6712
|
-
if (f.hideAllRowGroupedColumns &&
|
|
6744
|
+
Q.value = e.api;
|
|
6745
|
+
let t = J.value.find((e) => !ne.find((t) => t.field === e)?.hide), n = !t && J.value.length > 0 ? ne.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
6746
|
+
if (f.hideAllRowGroupedColumns && J.value.forEach((e) => i.push(e)), r) {
|
|
6713
6747
|
let t = e.api.getColumn(r);
|
|
6714
6748
|
lt.value = t, i.push(r), Bt(t?.getColDef());
|
|
6715
6749
|
}
|
|
6716
6750
|
W ? Ut(W) : Je.value && Ct(Je.value), Ye.value && Ot(Ye.value), e.api.setColumnsVisible([...i], !1), rt.value = e.api.getAllGridColumns(), dt.value = e.api.paginationGetCurrentPage() + 1, ft.value = e.api.paginationGetTotalPages(), T("grid-ready", e);
|
|
6717
6751
|
}, ht = (e) => {
|
|
6718
|
-
if (
|
|
6752
|
+
if (Q.value) {
|
|
6719
6753
|
let t = St();
|
|
6720
6754
|
ac(Je.value, t) || (Je.value = t, T("filter-changed", e));
|
|
6721
6755
|
}
|
|
6722
6756
|
}, gt = (e) => {
|
|
6723
|
-
|
|
6757
|
+
He.value = e.api?.getState()?.sort?.sortModel || [], pe.value && T("sort-changed", e);
|
|
6724
6758
|
}, _t = (e) => e.getColId() && e.getColId().includes("ag-Grid-AutoColumn"), vt = O(!1), yt = async (e) => {
|
|
6725
|
-
if (!
|
|
6759
|
+
if (!Q.value) {
|
|
6726
6760
|
console.error("Grid API not available");
|
|
6727
6761
|
return;
|
|
6728
6762
|
}
|
|
@@ -6731,13 +6765,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6731
6765
|
route: [],
|
|
6732
6766
|
purge: !0
|
|
6733
6767
|
};
|
|
6734
|
-
|
|
6768
|
+
Q.value.refreshServerSide(t);
|
|
6735
6769
|
}, bt = () => Qe.value, xt = async () => {
|
|
6736
|
-
if (vt.value = !0, !
|
|
6770
|
+
if (vt.value = !0, !Q.value) return console.error("Grid API not available"), vt.value = !1, null;
|
|
6737
6771
|
try {
|
|
6738
|
-
let e = f.serverSideCsvHandler, t =
|
|
6772
|
+
let e = f.serverSideCsvHandler, t = Q.value?.getState(), n = {
|
|
6739
6773
|
rowGroupCols: [],
|
|
6740
|
-
valueCols:
|
|
6774
|
+
valueCols: Q.value?.getValueColumns().map((e) => ({
|
|
6741
6775
|
id: e.getId(),
|
|
6742
6776
|
field: e.getColDef().field,
|
|
6743
6777
|
aggFunc: typeof e.getColDef().aggFunc == "string" ? e.getColDef().aggFunc : void 0,
|
|
@@ -6755,7 +6789,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6755
6789
|
let e = {
|
|
6756
6790
|
request: n,
|
|
6757
6791
|
parentNode: {},
|
|
6758
|
-
api:
|
|
6792
|
+
api: Q.value,
|
|
6759
6793
|
context: void 0,
|
|
6760
6794
|
success: () => {},
|
|
6761
6795
|
fail: () => {}
|
|
@@ -6764,13 +6798,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6764
6798
|
}
|
|
6765
6799
|
let r = f.serverSideRowHandler;
|
|
6766
6800
|
return r ? await new Promise((e, t) => {
|
|
6767
|
-
|
|
6801
|
+
Q.value?.getState(), r({
|
|
6768
6802
|
request: n,
|
|
6769
6803
|
parentNode: {},
|
|
6770
|
-
api:
|
|
6804
|
+
api: Q.value,
|
|
6771
6805
|
context: void 0,
|
|
6772
6806
|
success: (t) => {
|
|
6773
|
-
let n =
|
|
6807
|
+
let n = Q.value?.getRowGroupColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], r = Q.value?.getAllDisplayedColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], i = Q.value?.getValueColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], a = Array.from(new Set([
|
|
6774
6808
|
...n,
|
|
6775
6809
|
...r,
|
|
6776
6810
|
...i
|
|
@@ -6787,21 +6821,21 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6787
6821
|
vt.value = !1, t("CSV export failed.");
|
|
6788
6822
|
}
|
|
6789
6823
|
}, !0);
|
|
6790
|
-
}) : (console.warn("Client-side export does not return CSV string"), vt.value = !1,
|
|
6824
|
+
}) : (console.warn("Client-side export does not return CSV string"), vt.value = !1, Q.value.exportDataAsCsv(), null);
|
|
6791
6825
|
} catch (e) {
|
|
6792
6826
|
return console.error("CSV export failed", e), vt.value = !1, null;
|
|
6793
6827
|
}
|
|
6794
|
-
}, St = () =>
|
|
6795
|
-
if (!
|
|
6828
|
+
}, St = () => Q.value ? f.enableAdvancedFilter ? Q.value.getAdvancedFilterModel() : Q.value.getFilterModel() : Je.value, Ct = (e) => {
|
|
6829
|
+
if (!Q.value) return !1;
|
|
6796
6830
|
if (f.enableAdvancedFilter) {
|
|
6797
6831
|
let t = e && hc(e) ? Vs(e) : e;
|
|
6798
|
-
|
|
6832
|
+
Q.value.setAdvancedFilterModel(t);
|
|
6799
6833
|
} else {
|
|
6800
6834
|
if (e && !hc(e)) return console.warn("Attempting to set a non-regular filter model while advanced filtering is disabled. The filter model was not applied. Consider enabling advanced filtering for full functionality."), !1;
|
|
6801
|
-
|
|
6835
|
+
Q.value.setFilterModel(e);
|
|
6802
6836
|
}
|
|
6803
6837
|
return !0;
|
|
6804
|
-
}, Ot = (e) => (Ye.value = e,
|
|
6838
|
+
}, Ot = (e) => (Ye.value = e, Q.value ? (Q.value.onFilterChanged(), j && Q.value.refreshServerSide({ purge: !0 }), !0) : !1), kt = {
|
|
6805
6839
|
getFilterModel: St,
|
|
6806
6840
|
refreshData: yt,
|
|
6807
6841
|
setFilterModel: Ct,
|
|
@@ -6815,7 +6849,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6815
6849
|
getFilterValueSelectedMetadataMap: bt,
|
|
6816
6850
|
availableRowGroupColumns: st,
|
|
6817
6851
|
availableAggFuncColumns: ct,
|
|
6818
|
-
rowGroupColumnFields:
|
|
6852
|
+
rowGroupColumnFields: J,
|
|
6819
6853
|
getPvFilterModel: St,
|
|
6820
6854
|
setPvFilterModel: Ct
|
|
6821
6855
|
});
|
|
@@ -6828,11 +6862,11 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6828
6862
|
}
|
|
6829
6863
|
i ? (lt.value = i, Bt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (lt.value = null, Bt(null));
|
|
6830
6864
|
let a = t?.getColId();
|
|
6831
|
-
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)),
|
|
6832
|
-
let e =
|
|
6865
|
+
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)), J.value = [...n].map((e) => e.getColId()), f.enableFocusView && !We) {
|
|
6866
|
+
let e = J.value.length > 0 ? J.value[0] : null;
|
|
6833
6867
|
qe.setFocusType(e);
|
|
6834
6868
|
}
|
|
6835
|
-
|
|
6869
|
+
pe.value && T("column-row-group-changed", e);
|
|
6836
6870
|
});
|
|
6837
6871
|
}, jt = (e) => {
|
|
6838
6872
|
let t = e.column?.getColId() || "";
|
|
@@ -6843,7 +6877,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6843
6877
|
}, Mt = (e) => {
|
|
6844
6878
|
f.enableExpandOnRowClick && e.node.group && e.node.setExpanded(!e.node.expanded), T("row-clicked", e);
|
|
6845
6879
|
}, Nt = (e) => {
|
|
6846
|
-
e.finished && (rt.value = e.api.getAllGridColumns()),
|
|
6880
|
+
e.finished && (rt.value = e.api.getAllGridColumns()), pe.value && T("column-moved", e);
|
|
6847
6881
|
}, Pt = (e) => {
|
|
6848
6882
|
e.api && (dt.value = e.api.paginationGetCurrentPage() + 1, ft.value = e.api.paginationGetTotalPages());
|
|
6849
6883
|
}, Ft = (e) => "allChildrenRowCount" in e && e.allChildrenRowCount || 0, It = (e) => {
|
|
@@ -6870,7 +6904,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6870
6904
|
displayCount: f.displayGroupCount,
|
|
6871
6905
|
formattedValue: e.valueFormatted,
|
|
6872
6906
|
rowNode: e.node,
|
|
6873
|
-
api:
|
|
6907
|
+
api: Q.value,
|
|
6874
6908
|
focusText: f.focusText,
|
|
6875
6909
|
cellParams: e
|
|
6876
6910
|
})
|
|
@@ -6903,31 +6937,31 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6903
6937
|
S(() => {
|
|
6904
6938
|
qt.value = document.querySelector("body");
|
|
6905
6939
|
let e = Array.isArray(f.rowData) && f.rowData.length > 0, t = typeof f.serverSideRowHandler == "function", n = typeof f.filterValuesSetHandler == "function";
|
|
6906
|
-
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."),
|
|
6940
|
+
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."), R.value = (e) => {
|
|
6907
6941
|
let t = [
|
|
6908
6942
|
"sortAscending",
|
|
6909
6943
|
"sortDescending",
|
|
6910
6944
|
"sortUnSort",
|
|
6911
6945
|
"rowUnGroup"
|
|
6912
6946
|
], n = e.column && _t(e.column) ? lt.value : e.column;
|
|
6913
|
-
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0,
|
|
6914
|
-
}, W && (Je.value = (f.enableAdvancedFilter ? W.filter?.advancedFilterModel : W.filter?.filterModel) || null,
|
|
6947
|
+
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, ee), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
6948
|
+
}, W && (Je.value = (f.enableAdvancedFilter ? W.filter?.advancedFilterModel : W.filter?.filterModel) || null, J.value = W.rowGroup?.groupColIds || []);
|
|
6915
6949
|
});
|
|
6916
6950
|
let Ut = (e) => {
|
|
6917
|
-
let t =
|
|
6951
|
+
let t = Q.value;
|
|
6918
6952
|
if (!t) return;
|
|
6919
6953
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
6920
|
-
n && !ac(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !$e(r,
|
|
6954
|
+
n && !ac(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !$e(r, J.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
6921
6955
|
};
|
|
6922
|
-
|
|
6956
|
+
B(() => f.initialGridState, () => {
|
|
6923
6957
|
if (f.initialGridState) {
|
|
6924
6958
|
let e = Hs(f.initialGridState, ne, f.enableAdvancedFilter);
|
|
6925
6959
|
e && Ut(e);
|
|
6926
6960
|
}
|
|
6927
6961
|
}, { deep: !0 });
|
|
6928
6962
|
let Wt = (e) => {
|
|
6929
|
-
|
|
6930
|
-
}, Gt = (e) => j ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level ===
|
|
6963
|
+
pe.value = !0, T("first-data-rendered", e);
|
|
6964
|
+
}, Gt = (e) => j ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level === J.value.length - 2 : !1, Kt = r(() => {
|
|
6931
6965
|
if (!j) return f.groupDefaultExpanded;
|
|
6932
6966
|
}), qt = O(null), Jt = O(null);
|
|
6933
6967
|
return (t, r) => (E(), o("div", {
|
|
@@ -6945,16 +6979,16 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6945
6979
|
"--flex-justify": "flex-end"
|
|
6946
6980
|
}
|
|
6947
6981
|
}, {
|
|
6948
|
-
trigger:
|
|
6982
|
+
trigger: V(() => [u(I(mn), {
|
|
6949
6983
|
"left-icon": "flask-conical",
|
|
6950
6984
|
ariaLabel: "Toggle dev mode",
|
|
6951
6985
|
variant: k.value ? "primary" : "secondary",
|
|
6952
6986
|
onClick: r[0] ||= (e) => k.value = !k.value
|
|
6953
6987
|
}, null, 8, ["variant"])]),
|
|
6954
|
-
content:
|
|
6988
|
+
content: V(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
6955
6989
|
_: 1
|
|
6956
6990
|
})) : a("", !0),
|
|
6957
|
-
|
|
6991
|
+
H(s("div", vl, [s("div", yl, [(E(), i(n, {
|
|
6958
6992
|
to: e.filterTeleportLocation,
|
|
6959
6993
|
disabled: !e.filterTeleportLocation
|
|
6960
6994
|
}, [ot.value.length > 0 && !f.enableInlineFilters ? (E(), i(Xc, {
|
|
@@ -6982,19 +7016,19 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6982
7016
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(sl, {
|
|
6983
7017
|
key: 1,
|
|
6984
7018
|
getCsvData: xt
|
|
6985
|
-
})) : a("", !0)])])], 512), [[
|
|
6986
|
-
|
|
7019
|
+
})) : a("", !0)])])], 512), [[re, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
7020
|
+
H(s("div", {
|
|
6987
7021
|
ref_key: "advancedFilterParentElement",
|
|
6988
7022
|
ref: Jt,
|
|
6989
7023
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
6990
|
-
}, null, 2), [[
|
|
7024
|
+
}, null, 2), [[re, k.value && e.enableAdvancedFilter]]),
|
|
6991
7025
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
6992
7026
|
key: 1,
|
|
6993
7027
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
6994
7028
|
}, [s("div", xl, [e.enableTableSearch ? (E(), i(ml, {
|
|
6995
7029
|
key: 0,
|
|
6996
7030
|
placeholder: e.tableSearchPlaceholder,
|
|
6997
|
-
disabled: !
|
|
7031
|
+
disabled: !Be.value,
|
|
6998
7032
|
"search-style": e.tableSearchStyle
|
|
6999
7033
|
}, null, 8, [
|
|
7000
7034
|
"placeholder",
|
|
@@ -7009,7 +7043,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7009
7043
|
"min-height": "0",
|
|
7010
7044
|
"overflow-x": "hidden"
|
|
7011
7045
|
}
|
|
7012
|
-
}, [u(I(
|
|
7046
|
+
}, [u(I(G), _({
|
|
7013
7047
|
ref: "gridRef",
|
|
7014
7048
|
class: ["pv-data-table", I(b)],
|
|
7015
7049
|
style: [{
|
|
@@ -7040,10 +7074,10 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7040
7074
|
autoGroupColumnDef: zt.value,
|
|
7041
7075
|
columnDefs: I(ne),
|
|
7042
7076
|
debug: e.debugMode,
|
|
7043
|
-
defaultColDef: I(
|
|
7077
|
+
defaultColDef: I(L),
|
|
7044
7078
|
getChildCount: Ft,
|
|
7045
|
-
getContextMenuItems:
|
|
7046
|
-
getMainMenuItems:
|
|
7079
|
+
getContextMenuItems: z.value,
|
|
7080
|
+
getMainMenuItems: R.value,
|
|
7047
7081
|
getRowStyle: Vt,
|
|
7048
7082
|
groupDefaultExpanded: Kt.value,
|
|
7049
7083
|
groupDisplayType: "singleColumn",
|
|
@@ -7087,7 +7121,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7087
7121
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
7088
7122
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
7089
7123
|
advancedFilterParent: Jt.value
|
|
7090
|
-
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !
|
|
7124
|
+
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !Be.value ? (E(), o("div", Sl, [s("p", Cl, P(Ve.value), 1)])) : a("", !0)], 2),
|
|
7091
7125
|
e.pagination ? (E(), i(ll, { key: 2 })) : a("", !0)
|
|
7092
7126
|
], 4));
|
|
7093
7127
|
}
|
|
@@ -7129,7 +7163,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7129
7163
|
},
|
|
7130
7164
|
useTeleport: !0
|
|
7131
7165
|
}), m = O(!1), h = O(!1), g = O(null);
|
|
7132
|
-
|
|
7166
|
+
B(g, (e) => {
|
|
7133
7167
|
e && (p.value = e);
|
|
7134
7168
|
});
|
|
7135
7169
|
let _ = r(() => (i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => ({
|
|
@@ -7137,7 +7171,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7137
7171
|
text: e.title,
|
|
7138
7172
|
context: { rightIcon: e.icon }
|
|
7139
7173
|
}))), v = r(() => _.value.length > 0), b = O((i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => e.field));
|
|
7140
|
-
|
|
7174
|
+
B(b, (e) => {
|
|
7141
7175
|
c("table-overlay-change", e);
|
|
7142
7176
|
}, { immediate: !0 });
|
|
7143
7177
|
let x = () => {
|
|
@@ -7147,7 +7181,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7147
7181
|
}, C = () => {
|
|
7148
7182
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
7149
7183
|
};
|
|
7150
|
-
return (n, r) => (E(), o(t, null, [
|
|
7184
|
+
return (n, r) => (E(), o(t, null, [H((E(), o("div", Ol, [u(na, {
|
|
7151
7185
|
open: m.value,
|
|
7152
7186
|
label: "Table Configuration",
|
|
7153
7187
|
icon: "settings",
|
|
@@ -7162,7 +7196,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7162
7196
|
alignment: "right",
|
|
7163
7197
|
isList: !0
|
|
7164
7198
|
}, {
|
|
7165
|
-
default:
|
|
7199
|
+
default: V(() => [r[3] ||= s("div", { class: "pv-border-bottom" }, [s("p", {
|
|
7166
7200
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
7167
7201
|
style: {
|
|
7168
7202
|
"padding-top": "4px",
|
|
@@ -7201,7 +7235,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7201
7235
|
},
|
|
7202
7236
|
isList: !0
|
|
7203
7237
|
}, {
|
|
7204
|
-
default:
|
|
7238
|
+
default: V(() => [s("ul", Ml, [(E(!0), o(t, null, k(_.value, (e) => (E(), o("li", { key: e.id }, [u(La, {
|
|
7205
7239
|
id: e.id,
|
|
7206
7240
|
config: {
|
|
7207
7241
|
variant: "checkbox",
|
|
@@ -7247,7 +7281,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7247
7281
|
}),
|
|
7248
7282
|
emits: ["update:modelValue"],
|
|
7249
7283
|
setup(e) {
|
|
7250
|
-
let n = e, c =
|
|
7284
|
+
let n = e, c = R(e, "modelValue"), l = {
|
|
7251
7285
|
id: Ul,
|
|
7252
7286
|
text: "",
|
|
7253
7287
|
disabled: !0
|
|
@@ -7264,7 +7298,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7264
7298
|
l,
|
|
7265
7299
|
...n.options.filter((t) => !e.has(t.id))
|
|
7266
7300
|
];
|
|
7267
|
-
}), m =
|
|
7301
|
+
}), m = ee("sortableListRef"), h = ee("containerRef"), g = null, _ = null, v = () => {
|
|
7268
7302
|
if (!m.value) return;
|
|
7269
7303
|
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === Ul);
|
|
7270
7304
|
t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith("placeholder-")), c.value = e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
@@ -7481,12 +7515,12 @@ var $l = {
|
|
|
7481
7515
|
disableInteractive: !0,
|
|
7482
7516
|
style: { "pointer-events": "auto" }
|
|
7483
7517
|
}, {
|
|
7484
|
-
trigger:
|
|
7518
|
+
trigger: V(() => [u(I(sn), {
|
|
7485
7519
|
size: 12,
|
|
7486
7520
|
name: "info-circle",
|
|
7487
7521
|
class: "pv-text-subdued"
|
|
7488
7522
|
})]),
|
|
7489
|
-
content:
|
|
7523
|
+
content: V(() => [s("div", tu, P(e.context.description), 1)]),
|
|
7490
7524
|
_: 1
|
|
7491
7525
|
})) : a("", !0)]));
|
|
7492
7526
|
}
|
|
@@ -7524,21 +7558,21 @@ var $l = {
|
|
|
7524
7558
|
}), g = O(!1), _ = O(void 0), v = O(null), b = m(Oo, O(void 0)), S = m(Eo, O([])), C = m(ko, O(void 0)), w = m(Do, O([])), T = m(To, O([])), D = m(go, O([])), A = r(() => Ql(b.value?.id || "")), j = r(() => {
|
|
7525
7559
|
let e = b.value?.id ?? "";
|
|
7526
7560
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
7527
|
-
}), M = m(Ao, O("")), N = m(jo, O([])), F = m(Mo, O(void 0)),
|
|
7561
|
+
}), M = m(Ao, O("")), N = m(jo, O([])), F = m(Mo, O(void 0)), L = m(No, O([])), R = m(Fo, O(/* @__PURE__ */ new Set())), z = m(Io, O([])), ee = r(() => z.value.filter((e) => R.value.has(e.id)).map((e) => ({
|
|
7528
7562
|
id: e.id,
|
|
7529
7563
|
text: e.label,
|
|
7530
7564
|
disabled: e.disabled,
|
|
7531
7565
|
context: e.disabledReason ? { description: e.disabledReason } : void 0
|
|
7532
7566
|
}))), te = (e) => {
|
|
7533
|
-
|
|
7567
|
+
R.value = new Set(e.map((e) => e.id));
|
|
7534
7568
|
};
|
|
7535
|
-
|
|
7569
|
+
B(j, (e) => {
|
|
7536
7570
|
e && F.value && (F.value = void 0);
|
|
7537
7571
|
}, { immediate: !0 });
|
|
7538
|
-
let ne = m(wo, O("")),
|
|
7572
|
+
let ne = m(wo, O("")), re = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
7539
7573
|
label: e.label,
|
|
7540
7574
|
value: e.value
|
|
7541
|
-
})) : []),
|
|
7575
|
+
})) : []), U = r(() => {
|
|
7542
7576
|
if (b.value) return (T.value.length > 1 ? [
|
|
7543
7577
|
"bar_stacked",
|
|
7544
7578
|
"line",
|
|
@@ -7551,7 +7585,7 @@ var $l = {
|
|
|
7551
7585
|
"area"
|
|
7552
7586
|
]).includes(b.value?.id);
|
|
7553
7587
|
});
|
|
7554
|
-
|
|
7588
|
+
B(S, (e) => {
|
|
7555
7589
|
if (!b.value) return;
|
|
7556
7590
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
7557
7591
|
if (r) {
|
|
@@ -7570,31 +7604,31 @@ var $l = {
|
|
|
7570
7604
|
function W(e) {
|
|
7571
7605
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
7572
7606
|
}
|
|
7573
|
-
let
|
|
7607
|
+
let ie = r(() => N.value.map((e) => ({
|
|
7574
7608
|
id: e.value,
|
|
7575
7609
|
text: e.label,
|
|
7576
7610
|
context: e.description ? { description: e.description } : void 0
|
|
7577
|
-
}))),
|
|
7611
|
+
}))), G = r(() => L.value.map((e) => ({
|
|
7578
7612
|
id: e.value,
|
|
7579
7613
|
text: e.label
|
|
7580
7614
|
}))), ae = r(() => D.value.map((e) => ({
|
|
7581
7615
|
id: e.field || "",
|
|
7582
7616
|
text: e.headerName || e.field || "",
|
|
7583
7617
|
icon: ds(e.context?.dataType || null) || "circle-chevron-down"
|
|
7584
|
-
}))),
|
|
7618
|
+
}))), oe = r({
|
|
7585
7619
|
get: () => T.value.map((e) => ae.value.find((t) => t.id === e)).filter(Boolean),
|
|
7586
7620
|
set: (e) => {
|
|
7587
7621
|
T.value = e.map((e) => e.id);
|
|
7588
7622
|
}
|
|
7589
|
-
}),
|
|
7623
|
+
}), K = r(() => {
|
|
7590
7624
|
let e = [], t = {
|
|
7591
7625
|
value: "y-axis",
|
|
7592
7626
|
label: "Y Axis",
|
|
7593
7627
|
prefixLabel: "Y Axis",
|
|
7594
7628
|
icon: "chart-bar-decreasing",
|
|
7595
7629
|
allowDeselect: !1,
|
|
7596
|
-
availableOptions:
|
|
7597
|
-
currentOption:
|
|
7630
|
+
availableOptions: ie.value,
|
|
7631
|
+
currentOption: ie.value.find((e) => e.id === M.value),
|
|
7598
7632
|
updateSelectedOption: (e) => {
|
|
7599
7633
|
M && e !== M.value && (M.value = e);
|
|
7600
7634
|
}
|
|
@@ -7606,7 +7640,7 @@ var $l = {
|
|
|
7606
7640
|
allowDeselect: !1,
|
|
7607
7641
|
availableOptions: ae.value,
|
|
7608
7642
|
...i ? {
|
|
7609
|
-
activeOptions:
|
|
7643
|
+
activeOptions: oe,
|
|
7610
7644
|
activeOptionLimit: n.rowGroupLimit
|
|
7611
7645
|
} : {
|
|
7612
7646
|
currentOption: ae.value.find((e) => e.id === T.value[0]),
|
|
@@ -7621,7 +7655,7 @@ var $l = {
|
|
|
7621
7655
|
allowDeselect: !0,
|
|
7622
7656
|
availableOptions: w.value,
|
|
7623
7657
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
7624
|
-
disabled: !
|
|
7658
|
+
disabled: !U.value,
|
|
7625
7659
|
disabledReason: "Sorting is not available for this chart type",
|
|
7626
7660
|
updateSelectedOption: (e) => {
|
|
7627
7661
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -7643,7 +7677,7 @@ var $l = {
|
|
|
7643
7677
|
t && b && (b.value = t);
|
|
7644
7678
|
}
|
|
7645
7679
|
};
|
|
7646
|
-
if (
|
|
7680
|
+
if (ie.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && G.value.length > 0) {
|
|
7647
7681
|
let t = {
|
|
7648
7682
|
value: "secondary-y-axis",
|
|
7649
7683
|
label: "Metric Overlay",
|
|
@@ -7652,15 +7686,15 @@ var $l = {
|
|
|
7652
7686
|
allowDeselect: !0,
|
|
7653
7687
|
disabled: j.value,
|
|
7654
7688
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
7655
|
-
availableOptions:
|
|
7656
|
-
currentOption:
|
|
7689
|
+
availableOptions: G.value,
|
|
7690
|
+
currentOption: G.value.find((e) => e.id === F?.value),
|
|
7657
7691
|
updateSelectedOption: (e) => {
|
|
7658
7692
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
7659
7693
|
}
|
|
7660
7694
|
};
|
|
7661
7695
|
t && e.push(t);
|
|
7662
|
-
} else if (
|
|
7663
|
-
let t =
|
|
7696
|
+
} else if (z.value.length > 0) {
|
|
7697
|
+
let t = z.value.map((e) => ({
|
|
7664
7698
|
id: e.id,
|
|
7665
7699
|
text: e.label,
|
|
7666
7700
|
disabled: e.disabled,
|
|
@@ -7673,9 +7707,9 @@ var $l = {
|
|
|
7673
7707
|
allowDeselect: !0,
|
|
7674
7708
|
isMultiSelect: !0,
|
|
7675
7709
|
availableOptions: t,
|
|
7676
|
-
activeOptionIds:
|
|
7677
|
-
activeOptions:
|
|
7678
|
-
currentOption: t.find((e) =>
|
|
7710
|
+
activeOptionIds: R.value,
|
|
7711
|
+
activeOptions: ee,
|
|
7712
|
+
currentOption: t.find((e) => R.value.has(e.id)),
|
|
7679
7713
|
updateSelectedOptions: te
|
|
7680
7714
|
};
|
|
7681
7715
|
n && e.push(n);
|
|
@@ -7683,28 +7717,28 @@ var $l = {
|
|
|
7683
7717
|
let c = i ? 2 : 1;
|
|
7684
7718
|
return ae.value.length >= c && e.push(a), S.value.length > 1 && e.push(s), w.value.length > 0 && e.push(o), e.filter((e) => n.chartConfigOptions ? n.chartConfigOptions.includes(e.value) : !0);
|
|
7685
7719
|
});
|
|
7686
|
-
|
|
7720
|
+
B(v, (e) => {
|
|
7687
7721
|
e && (p.value = e);
|
|
7688
7722
|
});
|
|
7689
|
-
let
|
|
7690
|
-
let t =
|
|
7723
|
+
let q = r(() => _.value && K.value.find((e) => e.value === _.value) || null), se = (e) => {
|
|
7724
|
+
let t = q.value;
|
|
7691
7725
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
7692
|
-
},
|
|
7726
|
+
}, ce = (e) => q.value?.isMultiSelect ? null : se(e), le = (e) => q.value?.isMultiSelect ? {
|
|
7693
7727
|
variant: "checkbox",
|
|
7694
7728
|
renderer: nu
|
|
7695
|
-
} : W(e) ? { renderer: nu } : { variant: "icon" },
|
|
7729
|
+
} : W(e) ? { renderer: nu } : { variant: "icon" }, ue = (e) => {
|
|
7696
7730
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
7697
|
-
},
|
|
7731
|
+
}, J = () => {
|
|
7698
7732
|
g.value = !1, _.value = void 0;
|
|
7699
|
-
},
|
|
7733
|
+
}, de = () => {
|
|
7700
7734
|
_.value = void 0;
|
|
7701
7735
|
};
|
|
7702
|
-
return (n, r) => (E(), o(t, null, [s("div", ru, [s("div", null, [
|
|
7736
|
+
return (n, r) => (E(), o(t, null, [s("div", ru, [s("div", null, [H((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", iu, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(na, {
|
|
7703
7737
|
open: g.value,
|
|
7704
7738
|
label: "Chart Configuration",
|
|
7705
7739
|
icon: "chart-area",
|
|
7706
7740
|
onClick: r[0] ||= (e) => g.value = !g.value,
|
|
7707
|
-
onHandleToggleDropdown:
|
|
7741
|
+
onHandleToggleDropdown: de
|
|
7708
7742
|
}, null, 8, ["open"]), u(Zt, {
|
|
7709
7743
|
class: y({ "pv-hide": !g.value }),
|
|
7710
7744
|
"css-custom-properties": {
|
|
@@ -7714,18 +7748,18 @@ var $l = {
|
|
|
7714
7748
|
},
|
|
7715
7749
|
isList: !0
|
|
7716
7750
|
}, {
|
|
7717
|
-
default:
|
|
7751
|
+
default: V(() => [r[4] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
7718
7752
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
7719
7753
|
style: {
|
|
7720
7754
|
"padding-top": "4px",
|
|
7721
7755
|
"padding-bottom": "12px"
|
|
7722
7756
|
}
|
|
7723
|
-
}, " Chart Configuration ")], -1), s("ul", au, [(E(!0), o(t, null, k(
|
|
7757
|
+
}, " Chart Configuration ")], -1), s("ul", au, [(E(!0), o(t, null, k(K.value, (e) => (E(), o("li", {
|
|
7724
7758
|
id: `pv-chart-config-${e.value}`,
|
|
7725
7759
|
key: e.value,
|
|
7726
7760
|
"data-active": _.value === e.value ? !0 : null,
|
|
7727
|
-
onMouseenter: (t) => e.disabled ? null :
|
|
7728
|
-
onClick: (t) => e.disabled ? null :
|
|
7761
|
+
onMouseenter: (t) => e.disabled ? null : ue(e.value),
|
|
7762
|
+
onClick: (t) => e.disabled ? null : ue(e.value)
|
|
7729
7763
|
}, [u(I(vi), {
|
|
7730
7764
|
disableInteractive: !0,
|
|
7731
7765
|
useTeleport: !0,
|
|
@@ -7733,7 +7767,7 @@ var $l = {
|
|
|
7733
7767
|
style: { width: "100%" },
|
|
7734
7768
|
variant: "white"
|
|
7735
7769
|
}, c({
|
|
7736
|
-
trigger:
|
|
7770
|
+
trigger: V(() => [u(La, {
|
|
7737
7771
|
config: { variant: "icon" },
|
|
7738
7772
|
disabled: e.disabled,
|
|
7739
7773
|
id: e.value,
|
|
@@ -7750,19 +7784,19 @@ var $l = {
|
|
|
7750
7784
|
_: 2
|
|
7751
7785
|
}, [e.disabled && e.disabledReason ? {
|
|
7752
7786
|
name: "content",
|
|
7753
|
-
fn:
|
|
7787
|
+
fn: V(() => [s("div", su, P(e.disabledReason), 1)]),
|
|
7754
7788
|
key: "0"
|
|
7755
7789
|
} : void 0]), 1024)], 40, ou))), 128))])]),
|
|
7756
7790
|
_: 1
|
|
7757
|
-
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Je), [
|
|
7791
|
+
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Je), [J, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
7758
7792
|
class: "pv-flex pv-space-between",
|
|
7759
7793
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
7760
7794
|
}, [e.chartFilter ? (E(), i(yi, {
|
|
7761
7795
|
key: 0,
|
|
7762
|
-
options:
|
|
7796
|
+
options: re.value,
|
|
7763
7797
|
modelValue: I(ne),
|
|
7764
7798
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null
|
|
7765
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", cu, [(E(!0), o(t, null, k(
|
|
7799
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", cu, [(E(!0), o(t, null, k(K.value, (e) => (E(), o(t, { key: e.value }, [e.isMultiSelect && e.activeOptions && e.activeOptionIds ? (E(), i(Ja, {
|
|
7766
7800
|
key: 0,
|
|
7767
7801
|
label: e.label,
|
|
7768
7802
|
prefixLabel: e.prefixLabel,
|
|
@@ -7810,37 +7844,37 @@ var $l = {
|
|
|
7810
7844
|
},
|
|
7811
7845
|
isList: !0
|
|
7812
7846
|
}, {
|
|
7813
|
-
default:
|
|
7847
|
+
default: V(() => [q.value ? (E(), o(t, { key: 0 }, [q.value.isSortableList ? (E(), o(t, { key: 0 }, [r[5] ||= s("p", {
|
|
7814
7848
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
7815
7849
|
style: {
|
|
7816
7850
|
"padding-left": "2px",
|
|
7817
7851
|
"padding-bottom": "6px"
|
|
7818
7852
|
}
|
|
7819
7853
|
}, " Viewing ", -1), u(Gl, {
|
|
7820
|
-
modelValue:
|
|
7821
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
7822
|
-
options:
|
|
7823
|
-
activeOptionLimit:
|
|
7854
|
+
modelValue: q.value.activeOptions.value,
|
|
7855
|
+
"onUpdate:modelValue": r[2] ||= (e) => q.value.activeOptions.value = e,
|
|
7856
|
+
options: q.value.availableOptions || [],
|
|
7857
|
+
activeOptionLimit: q.value.activeOptionLimit,
|
|
7824
7858
|
placeholderText: "Add to X Axis"
|
|
7825
7859
|
}, null, 8, [
|
|
7826
7860
|
"modelValue",
|
|
7827
7861
|
"options",
|
|
7828
7862
|
"activeOptionLimit"
|
|
7829
|
-
])], 64)) : (E(), o("ul", lu, [(E(!0), o(t, null, k(
|
|
7863
|
+
])], 64)) : (E(), o("ul", lu, [(E(!0), o(t, null, k(q.value.availableOptions, (e) => (E(), o("li", {
|
|
7830
7864
|
key: e.id,
|
|
7831
|
-
"data-active":
|
|
7865
|
+
"data-active": ce(e)
|
|
7832
7866
|
}, [u(La, {
|
|
7833
7867
|
id: e.id,
|
|
7834
|
-
config:
|
|
7868
|
+
config: le(e),
|
|
7835
7869
|
text: e.text,
|
|
7836
7870
|
icon: e.icon,
|
|
7837
7871
|
context: e.context,
|
|
7838
7872
|
disabled: e.disabled,
|
|
7839
|
-
selectedIds:
|
|
7873
|
+
selectedIds: q.value.isMultiSelect ? [...I(R)] : [],
|
|
7840
7874
|
"onUpdate:selectedIds": r[3] ||= (e) => {
|
|
7841
|
-
|
|
7875
|
+
q.value?.updateSelectedOptions?.([...q.value?.availableOptions.filter((t) => e.includes(t.id))]);
|
|
7842
7876
|
},
|
|
7843
|
-
onHandleSelected: (t) =>
|
|
7877
|
+
onHandleSelected: (t) => q.value.updateSelectedOption?.(e.id),
|
|
7844
7878
|
"class-list": ["pv-chart-option pv-flex"]
|
|
7845
7879
|
}, null, 8, [
|
|
7846
7880
|
"id",
|
|
@@ -8115,7 +8149,7 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8115
8149
|
],
|
|
8116
8150
|
setup(e, { expose: n, emit: c }) {
|
|
8117
8151
|
let l = e, d = c, p = O(null), m = O(null), h = O(null), g = O(l.initialChartCollapsed ?? !1), b = "filter-panel-" + f()?.uid, x = O(!1), C = O(!1), T = O(0), k = r(() => m.value?.availableRowGroupColumns || []), j = O([]), N = r(() => j.value.length > 0 ? j.value[0] : ""), F = (e) => $(e).chartSeriesDisplayName || e.headerName || e.field || "", I = r(() => {
|
|
8118
|
-
let e =
|
|
8152
|
+
let e = me.value;
|
|
8119
8153
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
8120
8154
|
label: "Count",
|
|
8121
8155
|
value: e.yAxis.defaultValue
|
|
@@ -8132,7 +8166,7 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8132
8166
|
description: n.context?.chartSeriesDescription
|
|
8133
8167
|
};
|
|
8134
8168
|
});
|
|
8135
|
-
}),
|
|
8169
|
+
}), L = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
8136
8170
|
let t = $(e);
|
|
8137
8171
|
return t.chartOnSecondaryAxes === !0 && !t.hideFromCharting;
|
|
8138
8172
|
}).map((e) => {
|
|
@@ -8144,7 +8178,7 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8144
8178
|
dataType: n.context?.dataType,
|
|
8145
8179
|
tooltipRenderer: n.context?.customTooltipRenderer
|
|
8146
8180
|
};
|
|
8147
|
-
})),
|
|
8181
|
+
})), R = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
8148
8182
|
let t = $(e);
|
|
8149
8183
|
return t.chartOnSecondaryAxes === !0 && t.hideFromCharting === !0;
|
|
8150
8184
|
}).map((e) => {
|
|
@@ -8155,38 +8189,38 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8155
8189
|
formatter: n.valueFormatter,
|
|
8156
8190
|
dataType: n.context?.dataType
|
|
8157
8191
|
};
|
|
8158
|
-
})),
|
|
8159
|
-
D(co,
|
|
8160
|
-
let
|
|
8192
|
+
})), z = l.filterStore || yc();
|
|
8193
|
+
D(co, z);
|
|
8194
|
+
let ee = Qo({
|
|
8161
8195
|
focusType: l.initialFocusData?.focusType,
|
|
8162
8196
|
focuses: l.initialFocusData?.focuses || [],
|
|
8163
8197
|
focusRequired: l.focusRequired
|
|
8164
8198
|
}, l.allFieldsAreFocusable);
|
|
8165
|
-
D(lo,
|
|
8166
|
-
let { setFilterSelectedValues: te } =
|
|
8199
|
+
D(lo, ee);
|
|
8200
|
+
let { setFilterSelectedValues: te } = z, ne = O(!1);
|
|
8167
8201
|
D(bo, ne);
|
|
8168
|
-
let
|
|
8202
|
+
let re = O(l.isTableGrouped), H = (e) => {
|
|
8169
8203
|
d("table-overlay-change", e);
|
|
8170
|
-
},
|
|
8171
|
-
p.value = e.api,
|
|
8204
|
+
}, U = r(() => Qe.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && z.filterModelEmpty.value)), W = r(() => ee?.computedFocusType.value || null), ie = r(() => ee?.computedFocuses.value || []), G = (e) => {
|
|
8205
|
+
p.value = e.api, re.value || p.value?.setRowGroupColumns([]), ze(e.api), d("grid-ready", e);
|
|
8172
8206
|
}, ae = (e) => {
|
|
8173
8207
|
d("first-data-rendered", e);
|
|
8174
|
-
},
|
|
8208
|
+
}, oe = (e) => {
|
|
8175
8209
|
let t = j.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
8176
|
-
if (
|
|
8177
|
-
let t =
|
|
8178
|
-
if (n.length >
|
|
8179
|
-
let t = n.slice(0,
|
|
8210
|
+
if (re.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
8211
|
+
let t = me.value;
|
|
8212
|
+
if (n.length > he.value) {
|
|
8213
|
+
let t = n.slice(0, he.value);
|
|
8180
8214
|
j.value = t, e.api.setRowGroupColumns(t);
|
|
8181
8215
|
} else j.value = n;
|
|
8182
|
-
t.yAxis.defaultValue && (
|
|
8216
|
+
t.yAxis.defaultValue && (Y.value = t.yAxis.defaultValue);
|
|
8183
8217
|
}
|
|
8184
8218
|
d("column-row-group-changed", e);
|
|
8185
|
-
},
|
|
8186
|
-
|
|
8219
|
+
}, K = async (e) => {
|
|
8220
|
+
ze(e.api), ne.value && d("filter-changed", e);
|
|
8187
8221
|
};
|
|
8188
|
-
|
|
8189
|
-
if (
|
|
8222
|
+
B(() => j.value, () => {
|
|
8223
|
+
if (re.value) {
|
|
8190
8224
|
if (!p.value) return;
|
|
8191
8225
|
let e = p.value.getRowGroupColumns().map((e) => e.getColId());
|
|
8192
8226
|
JSON.stringify(e) !== JSON.stringify(j.value) && v(() => {
|
|
@@ -8196,18 +8230,18 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8196
8230
|
p?.value?.setRowGroupColumns([]);
|
|
8197
8231
|
});
|
|
8198
8232
|
if (!l.allFieldsAreFocusable) {
|
|
8199
|
-
let e =
|
|
8200
|
-
|
|
8233
|
+
let e = me.value.supportsFocusView && N.value || null;
|
|
8234
|
+
ee.setFocusType(e);
|
|
8201
8235
|
}
|
|
8202
|
-
p.value &&
|
|
8236
|
+
p.value && ze(p.value);
|
|
8203
8237
|
});
|
|
8204
|
-
function
|
|
8238
|
+
function q(e, t, n = !0) {
|
|
8205
8239
|
return (r) => {
|
|
8206
|
-
if (r.data =
|
|
8207
|
-
let i = "", a =
|
|
8240
|
+
if (r.data = ve.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
8241
|
+
let i = "", a = ce(e);
|
|
8208
8242
|
if (l.truncateLabelValues && n && a && Ts(a) && !isNaN(Number(r.value))) {
|
|
8209
|
-
if (
|
|
8210
|
-
let e = r.datum?.[N.value], t =
|
|
8243
|
+
if (Ne.value) {
|
|
8244
|
+
let e = r.datum?.[N.value], t = ye.value?.find((t) => t[N.value] === e)?.[`${Y.value}_sort_total`] || Infinity;
|
|
8211
8245
|
if (r.value / t < .05) return "";
|
|
8212
8246
|
}
|
|
8213
8247
|
let { newValue: e, newSuffix: t } = ms(r.value, us.Percent === $(a).dataType, Ke.value);
|
|
@@ -8217,17 +8251,17 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8217
8251
|
return t && (o = t(r)), o + i;
|
|
8218
8252
|
};
|
|
8219
8253
|
}
|
|
8220
|
-
let
|
|
8254
|
+
let se = (e, t = !1) => {
|
|
8221
8255
|
if (!e) return;
|
|
8222
|
-
let n =
|
|
8223
|
-
return n && typeof n.valueFormatter == "function" ?
|
|
8224
|
-
},
|
|
8225
|
-
let n =
|
|
8256
|
+
let n = ce(e);
|
|
8257
|
+
return n && typeof n.valueFormatter == "function" ? q(e, n.valueFormatter, t) : q(e, null, t);
|
|
8258
|
+
}, ce = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), le = (e, t) => {
|
|
8259
|
+
let n = ce(N.value);
|
|
8226
8260
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
8227
|
-
},
|
|
8228
|
-
let e =
|
|
8261
|
+
}, ue = r(() => [...j.value.length > 1 ? _s : gs, vs].filter((e) => l.enabledChartTypes?.includes(e.id))), J = O(void 0), de = O(void 0), fe = O(void 0), pe = !1, me = r(() => Ql(J.value?.id || "")), he = r(() => Math.min(me.value.rowGroupLimit, l.rowGroupLimit)), ge = r(() => {
|
|
8262
|
+
let e = me.value.xAxis.filterColumns;
|
|
8229
8263
|
return e ? e(k.value) : k.value;
|
|
8230
|
-
}),
|
|
8264
|
+
}), _e = O([{
|
|
8231
8265
|
text: "Ascending",
|
|
8232
8266
|
id: "asc",
|
|
8233
8267
|
icon: "arrow-up-wide-narrow"
|
|
@@ -8235,46 +8269,46 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8235
8269
|
text: "Descending",
|
|
8236
8270
|
id: "desc",
|
|
8237
8271
|
icon: "arrow-down-narrow-wide"
|
|
8238
|
-
}]),
|
|
8239
|
-
D(fo, p), D(wo,
|
|
8240
|
-
let
|
|
8241
|
-
|
|
8272
|
+
}]), ve = O([]), ye = O([]), Y = O(l.yKey), be = O(L.value[0]?.value), X = r(() => l.crosslineOverlayGroups ?? []), xe = O(new Set(X.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), Se = r(() => X.value.filter((e) => xe.value.has(e.id)).flatMap((e) => e.overlays)), Z = O(null), Ce = O(_e.value.find((e) => e.id === l.initialSort || "")), we = O("");
|
|
8273
|
+
D(fo, p), D(wo, we), D(go, ge), D(To, j), D(Eo, ue), D(Do, _e), D(Oo, J), D(ko, Ce), D(Ao, Y), D(jo, I), D(Mo, be), D(No, L), D(Fo, xe), D(Io, X);
|
|
8274
|
+
let Te = (e) => {
|
|
8275
|
+
J.value = ue.value.find((t) => t.id === e) ?? ue.value[0];
|
|
8242
8276
|
};
|
|
8243
|
-
|
|
8244
|
-
let e =
|
|
8245
|
-
|
|
8246
|
-
}),
|
|
8247
|
-
e !==
|
|
8248
|
-
}),
|
|
8277
|
+
B(() => ue.value, () => {
|
|
8278
|
+
let e = Pe.value, t = e !== pe, n = Ql(J.value?.id || ""), r = ue.value.some((e) => e.id === J.value?.id);
|
|
8279
|
+
pe = e, !(r && (!t || !n.storeBeforeChange)) && Te((e ? fe?.value : de?.value) ?? l.chartType);
|
|
8280
|
+
}), B(() => l.chartType, (e) => Te(e)), B(() => l.yKey, (e) => {
|
|
8281
|
+
e !== Y.value && (Y.value = e);
|
|
8282
|
+
}), B(we, (e) => {
|
|
8249
8283
|
if (l.chartFilter && p.value) {
|
|
8250
8284
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
8251
8285
|
n && n.length === 0 && (n = null), te(t, n || []);
|
|
8252
8286
|
let r = zs({
|
|
8253
8287
|
filterType: "set",
|
|
8254
8288
|
values: n
|
|
8255
|
-
},
|
|
8289
|
+
}, ce(t));
|
|
8256
8290
|
p.value.setColumnFilterModel(t, r).then(() => {
|
|
8257
8291
|
p.value?.onFilterChanged();
|
|
8258
8292
|
});
|
|
8259
8293
|
}
|
|
8260
8294
|
});
|
|
8261
|
-
let
|
|
8262
|
-
let e = I.value.find((e) => e.value ===
|
|
8295
|
+
let Ee = r(() => {
|
|
8296
|
+
let e = I.value.find((e) => e.value === Y.value);
|
|
8263
8297
|
return e ? e.label : "";
|
|
8264
|
-
}),
|
|
8265
|
-
let e =
|
|
8298
|
+
}), De = r(() => L.value.find((e) => e.value === be.value)), Oe = r(() => {
|
|
8299
|
+
let e = L.value.find((e) => e.value === be.value);
|
|
8266
8300
|
return e ? e.label : "";
|
|
8267
|
-
}),
|
|
8268
|
-
let e =
|
|
8269
|
-
if (
|
|
8301
|
+
}), ke = r(() => me.value.isHorizontal === !0), Ae = r(() => j.value.length > 1), je = r(() => !J.value || I.value.length === 0 ? [] : me.value.seriesFamily === "pie" ? Ie.value : Fe.value), Me = r(() => l.showSeriesLabels), Ne = r(() => J.value?.id.includes("stacked")), Pe = r(() => j.value.length > 1), Fe = r(() => {
|
|
8302
|
+
let e = Ne.value, t = me.value.agChartType, n = [], r = se(Y.value, !0), i = se(Z.value?.fieldName, !0);
|
|
8303
|
+
if (Ae.value) Z.value?.fieldValues.forEach((a) => {
|
|
8270
8304
|
let o = {
|
|
8271
8305
|
type: t,
|
|
8272
8306
|
xKey: N.value,
|
|
8273
|
-
yKey: mu(
|
|
8307
|
+
yKey: mu(Y.value, a),
|
|
8274
8308
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
8275
8309
|
stacked: e,
|
|
8276
8310
|
label: {
|
|
8277
|
-
enabled:
|
|
8311
|
+
enabled: Me.value,
|
|
8278
8312
|
color: e ? "white" : "black",
|
|
8279
8313
|
fontFamily: "Inter",
|
|
8280
8314
|
padding: 5,
|
|
@@ -8289,10 +8323,10 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8289
8323
|
let e = {
|
|
8290
8324
|
type: t,
|
|
8291
8325
|
xKey: N.value,
|
|
8292
|
-
yKey:
|
|
8293
|
-
yName:
|
|
8326
|
+
yKey: Y.value,
|
|
8327
|
+
yName: Ee.value,
|
|
8294
8328
|
label: {
|
|
8295
|
-
enabled:
|
|
8329
|
+
enabled: Me.value,
|
|
8296
8330
|
color: "black",
|
|
8297
8331
|
fontFamily: "Inter",
|
|
8298
8332
|
padding: 5,
|
|
@@ -8306,7 +8340,7 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8306
8340
|
let a = {};
|
|
8307
8341
|
if (t === "bar") {
|
|
8308
8342
|
let e = a;
|
|
8309
|
-
e.direction =
|
|
8343
|
+
e.direction = ke.value ? "horizontal" : "vertical", a = e;
|
|
8310
8344
|
} else if (t === "line" || t === "area") {
|
|
8311
8345
|
let e = a;
|
|
8312
8346
|
e.connectMissingData = !0, a = e;
|
|
@@ -8314,39 +8348,39 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8314
8348
|
if (n = n.map((e) => ({
|
|
8315
8349
|
...e,
|
|
8316
8350
|
...a
|
|
8317
|
-
})),
|
|
8351
|
+
})), me.value.yAxis.defaultValue === "groupedRecordCount" && (n = n.map((e) => ({
|
|
8318
8352
|
...e,
|
|
8319
8353
|
tooltip: { renderer: (e) => {
|
|
8320
8354
|
let t = String(e.datum[e.xKey] ?? ""), n = e.datum.bucketMin, r = e.datum.bucketMax;
|
|
8321
|
-
return typeof n == "number" && typeof r == "number" && (t =
|
|
8355
|
+
return typeof n == "number" && typeof r == "number" && (t = le(n, r)), {
|
|
8322
8356
|
title: t,
|
|
8323
8357
|
content: `Count: ${e.datum[e.yKey]}`
|
|
8324
8358
|
};
|
|
8325
8359
|
} }
|
|
8326
|
-
}))),
|
|
8360
|
+
}))), be.value) {
|
|
8327
8361
|
let t;
|
|
8328
|
-
t = e ? `${
|
|
8329
|
-
let r =
|
|
8362
|
+
t = e ? `${be.value}_sort_total` : be.value;
|
|
8363
|
+
let r = ce(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = fu(N.value, r, t, Oe.value, ke.value), a = {
|
|
8330
8364
|
type: "scatter",
|
|
8331
8365
|
id: "metric-overlay",
|
|
8332
8366
|
data: We.value,
|
|
8333
8367
|
...i,
|
|
8334
8368
|
label: { enabled: !1 }
|
|
8335
8369
|
};
|
|
8336
|
-
if (
|
|
8337
|
-
let e =
|
|
8338
|
-
a.tooltip = { renderer:
|
|
8370
|
+
if (De.value?.tooltipRenderer) {
|
|
8371
|
+
let e = De.value.tooltipRenderer;
|
|
8372
|
+
a.tooltip = { renderer: ke.value ? (n) => e({
|
|
8339
8373
|
...n,
|
|
8340
8374
|
xKey: N.value,
|
|
8341
8375
|
xName: r,
|
|
8342
8376
|
yKey: t,
|
|
8343
|
-
yName:
|
|
8377
|
+
yName: Oe.value
|
|
8344
8378
|
}) : e };
|
|
8345
8379
|
}
|
|
8346
8380
|
n = [...n, a];
|
|
8347
8381
|
}
|
|
8348
|
-
if (
|
|
8349
|
-
let e =
|
|
8382
|
+
if (J.value?.id === "histogram" && He.value && He.value.length > 0 && typeof He.value[0]?.bucketMin == "number" && typeof He.value[0]?.bucketMax == "number" && Se.value.length > 0 && He.value) {
|
|
8383
|
+
let e = He.value.length, t = Number.isFinite(Ke.value) ? Ke.value : 0, r = {
|
|
8350
8384
|
type: "scatter",
|
|
8351
8385
|
xKey: "__dummy_x__",
|
|
8352
8386
|
yKey: "__dummy_y__",
|
|
@@ -8364,16 +8398,16 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8364
8398
|
type: "scatter",
|
|
8365
8399
|
xKey: "__dummy_x__",
|
|
8366
8400
|
yKey: "__dummy_y__",
|
|
8367
|
-
data:
|
|
8368
|
-
let t = tt(e.value,
|
|
8401
|
+
data: Se.value.flatMap((e) => {
|
|
8402
|
+
let t = tt(e.value, He.value || []);
|
|
8369
8403
|
if (t === null) return [];
|
|
8370
|
-
let n = Number.isFinite(Ke.value) ? Ke.value : 0, r =
|
|
8404
|
+
let n = Number.isFinite(Ke.value) ? Ke.value : 0, r = se(j.value?.[0]), i = typeof r == "function" ? r({ value: e.value }) : e.value;
|
|
8371
8405
|
return Array.from({ length: 30 }, (r, a) => ({
|
|
8372
8406
|
value: i,
|
|
8373
8407
|
__dummy_x__: t,
|
|
8374
8408
|
__dummy_y__: n / 29 * a,
|
|
8375
8409
|
__dummy_overlay_label__: e.label,
|
|
8376
|
-
[
|
|
8410
|
+
[Y.value]: n
|
|
8377
8411
|
}));
|
|
8378
8412
|
}),
|
|
8379
8413
|
size: 15,
|
|
@@ -8400,101 +8434,101 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8400
8434
|
];
|
|
8401
8435
|
}
|
|
8402
8436
|
return n;
|
|
8403
|
-
}),
|
|
8437
|
+
}), Ie = r(() => I.value.length === 0 ? [] : [{
|
|
8404
8438
|
type: "pie",
|
|
8405
8439
|
legendItemKey: N.value,
|
|
8406
|
-
angleKey:
|
|
8440
|
+
angleKey: Y.value
|
|
8407
8441
|
}]);
|
|
8408
|
-
|
|
8442
|
+
B(Y, (e, t) => {
|
|
8409
8443
|
d("chart-state-changed", {
|
|
8410
8444
|
api: p.value,
|
|
8411
8445
|
newState: { seriesField: e },
|
|
8412
8446
|
oldState: { seriesField: t }
|
|
8413
8447
|
});
|
|
8414
|
-
}),
|
|
8448
|
+
}), B(be, (e, t) => {
|
|
8415
8449
|
d("chart-state-changed", {
|
|
8416
8450
|
api: p.value,
|
|
8417
8451
|
newState: { secondarySeriesField: e },
|
|
8418
8452
|
oldState: { secondarySeriesField: t }
|
|
8419
8453
|
});
|
|
8420
|
-
}),
|
|
8421
|
-
e?.id && Ql(e.id).storeBeforeChange && (
|
|
8454
|
+
}), B(J, (e, t) => {
|
|
8455
|
+
e?.id && Ql(e.id).storeBeforeChange && (Pe.value ? fe.value = e.id : de.value = e.id);
|
|
8422
8456
|
let n = Ql(e?.id || ""), r = Ql(t?.id || "");
|
|
8423
|
-
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ?
|
|
8424
|
-
l.yKey ?
|
|
8457
|
+
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ? Y.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
8458
|
+
l.yKey ? Y.value = l.yKey : I.value.length > 0 && (Y.value = I.value[0].value);
|
|
8425
8459
|
}), d("chart-state-changed", {
|
|
8426
8460
|
api: p.value,
|
|
8427
8461
|
newState: { chartType: e?.id },
|
|
8428
8462
|
oldState: { chartType: t?.id }
|
|
8429
8463
|
});
|
|
8430
|
-
}),
|
|
8464
|
+
}), B(ge, (e) => {
|
|
8431
8465
|
if (e.length === 1 && j.value.length === 0) {
|
|
8432
8466
|
let t = e[0].field;
|
|
8433
8467
|
t && (j.value = [t]);
|
|
8434
8468
|
}
|
|
8435
|
-
}),
|
|
8436
|
-
e.length === 1 && !
|
|
8437
|
-
}),
|
|
8469
|
+
}), B(I, (e) => {
|
|
8470
|
+
e.length === 1 && !Y.value && (Y.value = e[0].value);
|
|
8471
|
+
}), B(Ce, (e, t) => {
|
|
8438
8472
|
d("chart-state-changed", {
|
|
8439
8473
|
api: p.value,
|
|
8440
8474
|
newState: { chartSort: e?.id },
|
|
8441
8475
|
oldState: { chartSort: t?.id }
|
|
8442
8476
|
});
|
|
8443
|
-
}),
|
|
8477
|
+
}), B(j, (e, t) => {
|
|
8444
8478
|
d("chart-state-changed", {
|
|
8445
8479
|
api: p.value,
|
|
8446
8480
|
newState: { chartCategoryFields: e },
|
|
8447
8481
|
oldState: { chartCategoryFields: t }
|
|
8448
8482
|
});
|
|
8449
|
-
}),
|
|
8483
|
+
}), B(re, (e, t) => {
|
|
8450
8484
|
d("chart-state-changed", {
|
|
8451
8485
|
api: p.value,
|
|
8452
8486
|
newState: { tableGrouped: e },
|
|
8453
8487
|
oldState: { tableGrouped: t }
|
|
8454
8488
|
});
|
|
8455
|
-
}),
|
|
8489
|
+
}), B(() => l.isTableGrouped, (e, t) => {
|
|
8456
8490
|
!p.value || e === t || !l.enableGroupingToggle || st(e);
|
|
8457
|
-
}),
|
|
8491
|
+
}), B(() => l.initialFocusData, (e, t) => {
|
|
8458
8492
|
if (!($e(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
8459
8493
|
if (!e?.focusType) {
|
|
8460
|
-
|
|
8494
|
+
ee.setFocuses([]);
|
|
8461
8495
|
return;
|
|
8462
8496
|
}
|
|
8463
|
-
|
|
8497
|
+
ee.setFocusType(e?.focusType), ee.setFocuses(e?.focuses ?? []);
|
|
8464
8498
|
}
|
|
8465
8499
|
}, { deep: !0 });
|
|
8466
|
-
let
|
|
8467
|
-
|
|
8468
|
-
},
|
|
8500
|
+
let Le = () => {
|
|
8501
|
+
ve.value = [], ye.value = [], Z.value = null;
|
|
8502
|
+
}, Re = (e, t) => {
|
|
8469
8503
|
if (!e || e.length === 0) {
|
|
8470
|
-
|
|
8504
|
+
Le();
|
|
8471
8505
|
return;
|
|
8472
8506
|
}
|
|
8473
8507
|
if (t) {
|
|
8474
|
-
let { stackedData: n, uniqueFieldValues: r } = gu(e, N.value, t,
|
|
8475
|
-
|
|
8508
|
+
let { stackedData: n, uniqueFieldValues: r } = gu(e, N.value, t, Be.value, R.value);
|
|
8509
|
+
ye.value = n, Z.value = {
|
|
8476
8510
|
fieldName: t,
|
|
8477
8511
|
fieldValues: r
|
|
8478
8512
|
};
|
|
8479
|
-
} else
|
|
8480
|
-
|
|
8481
|
-
},
|
|
8513
|
+
} else ye.value = [], Z.value = null;
|
|
8514
|
+
ve.value = e;
|
|
8515
|
+
}, ze = (e) => {
|
|
8482
8516
|
let t = ++T.value, n = j.value.length;
|
|
8483
|
-
if (
|
|
8517
|
+
if (Le(), C.value = !1, n === 0 || I.value.length === 0 || l.requireFiltersToShowData && z.filterModelEmpty.value) return;
|
|
8484
8518
|
if (l.serverSideChartHandler) {
|
|
8485
|
-
let e =
|
|
8519
|
+
let e = z.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
8486
8520
|
if (e === null && l.initialGridState) {
|
|
8487
8521
|
let t = Hs(l.initialGridState, n, l.enableAdvancedFilter);
|
|
8488
8522
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
8489
8523
|
}
|
|
8490
8524
|
e ||= {};
|
|
8491
|
-
let r = js(Ms(j.value.map((e) => p.value?.getColumn(e)).filter((e) => e !== void 0)), n), i = new Set(n.filter((e) => $(e).chartOnSecondaryAxes === !0).map((e) => e.field).filter(Boolean)), a = p.value?.getValueColumns().filter((e) => e.getColId() ===
|
|
8525
|
+
let r = js(Ms(j.value.map((e) => p.value?.getColumn(e)).filter((e) => e !== void 0)), n), i = new Set(n.filter((e) => $(e).chartOnSecondaryAxes === !0).map((e) => e.field).filter(Boolean)), a = p.value?.getValueColumns().filter((e) => e.getColId() === Y.value || i.has(e.getColId())), o = {
|
|
8492
8526
|
rowGroupCols: r || [],
|
|
8493
8527
|
valueCols: Ms(a || []),
|
|
8494
8528
|
filterModel: e
|
|
8495
8529
|
};
|
|
8496
8530
|
C.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
8497
|
-
t === T.value && (
|
|
8531
|
+
t === T.value && (Re(e.data, e.stackField), C.value = !1);
|
|
8498
8532
|
}).catch((e) => {
|
|
8499
8533
|
t === T.value && (console.error("Chart handler error:", e), C.value = !1);
|
|
8500
8534
|
});
|
|
@@ -8505,27 +8539,27 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8505
8539
|
if (e.forEachNodeAfterFilterAndSort((e) => {
|
|
8506
8540
|
if (e.group && e.level === 0) {
|
|
8507
8541
|
if (j.value.length > 1) {
|
|
8508
|
-
let { rowData: t, fieldValues: n } =
|
|
8542
|
+
let { rowData: t, fieldValues: n } = Q(e, e.childrenAfterFilter?.filter((e) => e.level === 1 && e.aggData) || []);
|
|
8509
8543
|
a = a.union(n), i?.push(t);
|
|
8510
8544
|
}
|
|
8511
|
-
let t =
|
|
8545
|
+
let t = Ve(e);
|
|
8512
8546
|
r?.push(t);
|
|
8513
8547
|
}
|
|
8514
|
-
}),
|
|
8548
|
+
}), ve.value = r, j.value.length > 1 && i && i.length > 0) {
|
|
8515
8549
|
let e = j.value[1] || "";
|
|
8516
|
-
|
|
8550
|
+
ye.value = i, Z.value = {
|
|
8517
8551
|
fieldName: e,
|
|
8518
8552
|
fieldValues: Array.from(a)
|
|
8519
8553
|
};
|
|
8520
|
-
} else
|
|
8521
|
-
},
|
|
8522
|
-
let e = I.value, t =
|
|
8554
|
+
} else ye.value = [], Z.value = null;
|
|
8555
|
+
}, Be = r(() => {
|
|
8556
|
+
let e = I.value, t = L.value;
|
|
8523
8557
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
8524
|
-
}),
|
|
8558
|
+
}), Ve = (e) => {
|
|
8525
8559
|
let t = { [e.field]: e.key };
|
|
8526
|
-
for (let n of
|
|
8560
|
+
for (let n of Be.value) !e.aggData || !e.aggData[n.value] || (t[n.value] = e.aggData[n.value]?.value ?? e.aggData[n.value]);
|
|
8527
8561
|
return t;
|
|
8528
|
-
},
|
|
8562
|
+
}, Q = (e, t) => {
|
|
8529
8563
|
let n = /* @__PURE__ */ new Set(), r = { [e.field]: e.key }, i = 0;
|
|
8530
8564
|
for (let a of I.value) t.forEach((t) => {
|
|
8531
8565
|
let o = t.key;
|
|
@@ -8542,18 +8576,18 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8542
8576
|
rowData: r,
|
|
8543
8577
|
fieldValues: n
|
|
8544
8578
|
};
|
|
8545
|
-
},
|
|
8546
|
-
let e =
|
|
8547
|
-
if (
|
|
8548
|
-
let n =
|
|
8579
|
+
}, He = r(() => {
|
|
8580
|
+
let e = Ae.value ? ye.value : ve.value, t = null;
|
|
8581
|
+
if (Ce.value && (t = Ae.value ? `${Y.value}${bs}` : Y.value), t && e && Ce.value) {
|
|
8582
|
+
let n = Ce.value?.id.includes("desc") ? -1 : 1;
|
|
8549
8583
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
8550
8584
|
}
|
|
8551
8585
|
if (e && e.length === 1 && (e = [
|
|
8552
8586
|
{ [N.value]: "" },
|
|
8553
8587
|
e[0],
|
|
8554
8588
|
{ [N.value]: " " }
|
|
8555
|
-
]), l.enableFocusView && e &&
|
|
8556
|
-
let t = e?.filter((e) =>
|
|
8589
|
+
]), l.enableFocusView && e && ie.value.length > 0 && W.value) {
|
|
8590
|
+
let t = e?.filter((e) => ie.value.includes(e[N.value])), n = e?.filter((e) => !ie.value.includes(e[N.value]));
|
|
8557
8591
|
e = [
|
|
8558
8592
|
...t || [],
|
|
8559
8593
|
{ [N.value]: ys },
|
|
@@ -8562,14 +8596,14 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8562
8596
|
}
|
|
8563
8597
|
return e;
|
|
8564
8598
|
}), Ue = new Set(["", " "]), We = r(() => {
|
|
8565
|
-
let e = (
|
|
8599
|
+
let e = (He.value ?? []).filter((e) => {
|
|
8566
8600
|
let t = e?.[N.value];
|
|
8567
8601
|
return !Ue.has(String(t));
|
|
8568
|
-
}), t =
|
|
8569
|
-
if (!
|
|
8570
|
-
let n =
|
|
8602
|
+
}), t = be.value;
|
|
8603
|
+
if (!Ae.value || !t || !Z.value) return e;
|
|
8604
|
+
let n = ce(t);
|
|
8571
8605
|
if ((typeof n?.aggFunc == "string" ? n.aggFunc : "") === "sum") return e;
|
|
8572
|
-
let r = `${t}${bs}`, i =
|
|
8606
|
+
let r = `${t}${bs}`, i = Z.value.fieldValues;
|
|
8573
8607
|
return e.map((e) => {
|
|
8574
8608
|
let n = e[r];
|
|
8575
8609
|
if (typeof n != "number") return e;
|
|
@@ -8580,14 +8614,14 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8580
8614
|
[r]: a > 0 ? n / a : null
|
|
8581
8615
|
};
|
|
8582
8616
|
});
|
|
8583
|
-
}), Ge = r(() =>
|
|
8617
|
+
}), Ge = r(() => He.value?.length || 0), Ke = r(() => _u(Ae.value ? ye.value : He.value, Y.value, Ae.value)), qe = r(() => Z.value?.fieldValues?.length || 0), Je = r(() => {
|
|
8584
8618
|
let e = .25 * Math.exp(-.12 * Ge.value);
|
|
8585
8619
|
return Math.min(Math.max(e, .05), .75);
|
|
8586
|
-
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !
|
|
8587
|
-
let e =
|
|
8620
|
+
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !He.value || He.value?.length === 0 ? !0 : Ke.value === -Infinity || Ae.value === !0 && Ke.value === 0), Qe = r(() => !!(l.enableFocusView && W.value && ie.value.length === 0 && l.percentOfFocusViewYKey && Y.value && Y.value === l.percentOfFocusViewYKey)), et = r(() => {
|
|
8621
|
+
let e = ce(W.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
8588
8622
|
return pu({
|
|
8589
8623
|
currentRowGroupColumnsLength: j.value.length,
|
|
8590
|
-
shouldShowFocusOverlayText: Qe.value || l.focusRequired &&
|
|
8624
|
+
shouldShowFocusOverlayText: Qe.value || l.focusRequired && ie.value.length === 0,
|
|
8591
8625
|
chartDataEmpty: Ze.value,
|
|
8592
8626
|
missingFocusText: l.missingFocusText,
|
|
8593
8627
|
displayGroupByName: t
|
|
@@ -8602,22 +8636,22 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8602
8636
|
}
|
|
8603
8637
|
}
|
|
8604
8638
|
return null;
|
|
8605
|
-
}, nt = r(() => Qe.value ||
|
|
8639
|
+
}, nt = r(() => Qe.value || U.value || !l.isLoading && et.value !== ""), rt = r(() => {
|
|
8606
8640
|
let e = {};
|
|
8607
|
-
e.overlays = { noData: { text: "" } }, e.data = nt.value ? [] :
|
|
8641
|
+
e.overlays = { noData: { text: "" } }, e.data = nt.value ? [] : He.value, e.legend = {
|
|
8608
8642
|
toggleSeries: !1,
|
|
8609
8643
|
preventHidingAll: !0,
|
|
8610
8644
|
enabled: j.value.length > 1
|
|
8611
8645
|
};
|
|
8612
|
-
let t =
|
|
8613
|
-
if (!
|
|
8614
|
-
let e =
|
|
8615
|
-
return
|
|
8616
|
-
})(), r =
|
|
8646
|
+
let t = Ae.value ? Z.value?.fieldValues.map((e) => mu(Y.value, e)) || [] : Y.value ? [Y.value] : [], n = (() => {
|
|
8647
|
+
if (!be.value) return [];
|
|
8648
|
+
let e = be.value;
|
|
8649
|
+
return Ne.value ? [`${e}${bs}`] : Ae.value ? Z.value?.fieldValues.map((t) => mu(e, String(t))) || [] : [e];
|
|
8650
|
+
})(), r = me.value.xAxis.hideLabel === !0, i = J.value?.id === "histogram" && He.value && He.value.length > 0 && typeof He.value[0]?.bucketMin == "number" && typeof He.value[0]?.bucketMax == "number", a = [];
|
|
8617
8651
|
if (a.push({
|
|
8618
8652
|
type: "category",
|
|
8619
8653
|
keys: [N.value],
|
|
8620
|
-
position:
|
|
8654
|
+
position: ke.value ? "left" : "bottom",
|
|
8621
8655
|
crossLines: [{
|
|
8622
8656
|
type: "line",
|
|
8623
8657
|
value: ys,
|
|
@@ -8634,9 +8668,9 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8634
8668
|
wrapping: "never",
|
|
8635
8669
|
formatter: r ? () => "" : (e) => {
|
|
8636
8670
|
if (e.value === "--SEPARATOR--") return "";
|
|
8637
|
-
let t = e.value, n =
|
|
8671
|
+
let t = e.value, n = se(N.value);
|
|
8638
8672
|
typeof n == "function" && (t = n(e));
|
|
8639
|
-
let r = l.enableFocusView &&
|
|
8673
|
+
let r = l.enableFocusView && ie.value.includes(e.value) ? ` (${l.focusText})` : "";
|
|
8640
8674
|
if (typeof t == "string" && t.length + r.length > 50 && !e.context?.tooltip) {
|
|
8641
8675
|
let e = 50 - r.length - 3;
|
|
8642
8676
|
return t.substring(0, e) + "..." + r;
|
|
@@ -8647,12 +8681,12 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8647
8681
|
paddingInner: Je.value,
|
|
8648
8682
|
paddingOuter: Ye.value,
|
|
8649
8683
|
groupPaddingInner: Xe.value
|
|
8650
|
-
}), i &&
|
|
8651
|
-
let e =
|
|
8684
|
+
}), i && Se.value.length > 0) {
|
|
8685
|
+
let e = He.value?.length || 1;
|
|
8652
8686
|
a.push({
|
|
8653
8687
|
type: "number",
|
|
8654
8688
|
keys: ["__dummy_x__"],
|
|
8655
|
-
position:
|
|
8689
|
+
position: ke.value ? "left" : "bottom",
|
|
8656
8690
|
crosshair: { enabled: !1 },
|
|
8657
8691
|
min: -1,
|
|
8658
8692
|
max: e + 1,
|
|
@@ -8661,9 +8695,9 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8661
8695
|
tick: { enabled: !1 },
|
|
8662
8696
|
line: { enabled: !1 },
|
|
8663
8697
|
gridLine: { enabled: !1 },
|
|
8664
|
-
crossLines:
|
|
8665
|
-
if (!
|
|
8666
|
-
let t = tt(e.value,
|
|
8698
|
+
crossLines: Se.value.map((e) => {
|
|
8699
|
+
if (!He.value) return null;
|
|
8700
|
+
let t = tt(e.value, He.value);
|
|
8667
8701
|
return t == null ? null : {
|
|
8668
8702
|
type: "line",
|
|
8669
8703
|
value: t,
|
|
@@ -8678,25 +8712,25 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8678
8712
|
if (a.push({
|
|
8679
8713
|
type: "number",
|
|
8680
8714
|
keys: t,
|
|
8681
|
-
position:
|
|
8682
|
-
label: { formatter:
|
|
8715
|
+
position: ke.value ? "bottom" : "left",
|
|
8716
|
+
label: { formatter: se(Y.value) },
|
|
8683
8717
|
title: {
|
|
8684
8718
|
enabled: !0,
|
|
8685
|
-
text:
|
|
8719
|
+
text: Ee.value
|
|
8686
8720
|
}
|
|
8687
|
-
}),
|
|
8721
|
+
}), be.value && a.push({
|
|
8688
8722
|
type: "number",
|
|
8689
8723
|
keys: n,
|
|
8690
|
-
position:
|
|
8724
|
+
position: ke.value ? "top" : "right",
|
|
8691
8725
|
crosshair: { enabled: !1 },
|
|
8692
8726
|
min: 0,
|
|
8693
8727
|
label: { color: ut },
|
|
8694
8728
|
title: {
|
|
8695
8729
|
enabled: !0,
|
|
8696
|
-
text:
|
|
8730
|
+
text: Oe.value,
|
|
8697
8731
|
color: ut
|
|
8698
8732
|
}
|
|
8699
|
-
}), i &&
|
|
8733
|
+
}), i && Se.value.length > 0) {
|
|
8700
8734
|
let e = Number.isFinite(Ke.value) ? Ke.value : 0;
|
|
8701
8735
|
a.push({
|
|
8702
8736
|
type: "number",
|
|
@@ -8712,23 +8746,23 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8712
8746
|
gridLine: { enabled: !1 }
|
|
8713
8747
|
});
|
|
8714
8748
|
}
|
|
8715
|
-
return e.axes = a, e.series =
|
|
8716
|
-
}), it = r(() => C.value || l.isLoading && (!
|
|
8749
|
+
return e.axes = a, e.series = je.value, e;
|
|
8750
|
+
}), it = r(() => C.value || l.isLoading && (!He.value || He.value.length === 0)), at = r(() => Qe.value || !U.value && !l.isLoading && et.value !== ""), ot = (e) => {
|
|
8717
8751
|
g.value = e, d("chart-collapsed", e);
|
|
8718
8752
|
}, st = (e) => {
|
|
8719
|
-
p.value && (p.value.setRowGroupColumns(e ? j.value : []),
|
|
8753
|
+
p.value && (p.value.setRowGroupColumns(e ? j.value : []), re.value = e);
|
|
8720
8754
|
};
|
|
8721
8755
|
return n({
|
|
8722
8756
|
getChartImageDataURL: (e) => h.value?.getChartImageDataURL(e),
|
|
8723
8757
|
getCsvData: () => m.value?.getCsvData(),
|
|
8724
|
-
refreshData: (e) => (p.value &&
|
|
8758
|
+
refreshData: (e) => (p.value && ze(p.value), m.value?.refreshData(e)),
|
|
8725
8759
|
getFilterValueSelectedMetadataMap: () => m.value?.getFilterValueSelectedMetadataMap(),
|
|
8726
8760
|
getPvFilterModel: () => m.value?.getPvFilterModel(),
|
|
8727
8761
|
setPvFilterModel: (e) => m.value?.setPvFilterModel(e)
|
|
8728
8762
|
}), S(() => {
|
|
8729
8763
|
if (l.initialGridState) {
|
|
8730
8764
|
let e = l.initialGridState.rowGroup?.groupColIds || [];
|
|
8731
|
-
j.value = e, !l.allFieldsAreFocusable && e.length > 0 &&
|
|
8765
|
+
j.value = e, !l.allFieldsAreFocusable && e.length > 0 && ee.setFocusType(e[0]);
|
|
8732
8766
|
}
|
|
8733
8767
|
}), w(async () => {
|
|
8734
8768
|
await v(), x.value = l.filterPanelAboveChart;
|
|
@@ -8763,9 +8797,9 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8763
8797
|
onClick: r[1] ||= (e) => ot(!g.value)
|
|
8764
8798
|
})], 2),
|
|
8765
8799
|
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(du, {
|
|
8766
|
-
enablePanel:
|
|
8800
|
+
enablePanel: He.value != null && He.value.length > 0,
|
|
8767
8801
|
chartFilter: e.chartFilter,
|
|
8768
|
-
rowGroupLimit:
|
|
8802
|
+
rowGroupLimit: he.value,
|
|
8769
8803
|
"use-combined-button": l.enableCombinedChartConfigPanel,
|
|
8770
8804
|
"chart-config-options": l.chartConfigPanelOptions
|
|
8771
8805
|
}, null, 8, [
|
|
@@ -8784,17 +8818,17 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8784
8818
|
"isLoading",
|
|
8785
8819
|
"options",
|
|
8786
8820
|
"enableFocusView"
|
|
8787
|
-
]), s("div", Su, [
|
|
8821
|
+
]), s("div", Su, [U.value ? (E(), o("div", Cu, [(E(), i(M(e.emptyChartFilterRenderer)))])) : at.value ? (E(), o("p", wu, P(et.value), 1)) : a("", !0)])])], 2)
|
|
8788
8822
|
])),
|
|
8789
8823
|
u(wl, _({
|
|
8790
8824
|
ref_key: "pvDataTableRef",
|
|
8791
8825
|
ref: m
|
|
8792
8826
|
}, n.$props, {
|
|
8793
8827
|
filterTeleportLocation: x.value ? `#${b}` : void 0,
|
|
8794
|
-
pagination: e.pagination || !
|
|
8795
|
-
onColumnRowGroupChanged:
|
|
8796
|
-
onGridReady:
|
|
8797
|
-
onFilterChanged:
|
|
8828
|
+
pagination: e.pagination || !re.value,
|
|
8829
|
+
onColumnRowGroupChanged: oe,
|
|
8830
|
+
onGridReady: G,
|
|
8831
|
+
onFilterChanged: K,
|
|
8798
8832
|
onSortChanged: r[3] ||= (e) => d("sort-changed", e),
|
|
8799
8833
|
onFilterOpened: r[4] ||= (e) => d("filter-opened", e),
|
|
8800
8834
|
onFirstDataRendered: ae,
|
|
@@ -8803,17 +8837,17 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8803
8837
|
onHandleSettingsIcon: r[7] ||= (e) => d("handle-settings-icon", e),
|
|
8804
8838
|
onFocusUpdate: r[8] ||= (e) => d("focus-update", e)
|
|
8805
8839
|
}), {
|
|
8806
|
-
"top-slot":
|
|
8840
|
+
"top-slot": V(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(Nl, {
|
|
8807
8841
|
key: 0,
|
|
8808
|
-
groupedModeEnabled:
|
|
8842
|
+
groupedModeEnabled: re.value,
|
|
8809
8843
|
tableConfigOptions: l.tableConfigOptions,
|
|
8810
8844
|
onToggleGroup: st,
|
|
8811
|
-
onTableOverlayChange:
|
|
8845
|
+
onTableOverlayChange: H
|
|
8812
8846
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (E(), i(mn, {
|
|
8813
8847
|
key: 1,
|
|
8814
|
-
leftIcon:
|
|
8815
|
-
label:
|
|
8816
|
-
onClick: r[2] ||= (e) => st(!
|
|
8848
|
+
leftIcon: re.value ? "ungroup" : "group",
|
|
8849
|
+
label: re.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
8850
|
+
onClick: r[2] ||= (e) => st(!re.value),
|
|
8817
8851
|
variant: "secondary",
|
|
8818
8852
|
size: "lg"
|
|
8819
8853
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), A(n.$slots, "top-slot")]),
|
|
@@ -11735,16 +11769,16 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11735
11769
|
}),
|
|
11736
11770
|
emits: ["update:modelValue"],
|
|
11737
11771
|
setup(e) {
|
|
11738
|
-
let t =
|
|
11772
|
+
let t = R(e, "modelValue"), n = O(void 0), a = e, o = r(() => {
|
|
11739
11773
|
if (a.topologyType !== "state") throw Error(`Unsupported topology type for state selector: ${a.topologyType}`);
|
|
11740
11774
|
return (a.selectableRegions ? a.selectableRegions : Object.keys(Nu)).map((e) => ({
|
|
11741
11775
|
text: Au(e),
|
|
11742
11776
|
id: e
|
|
11743
11777
|
}));
|
|
11744
11778
|
});
|
|
11745
|
-
return
|
|
11779
|
+
return B(n, (e) => {
|
|
11746
11780
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
11747
|
-
}),
|
|
11781
|
+
}), B(t, (e) => {
|
|
11748
11782
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
11749
11783
|
}), (e, t) => (E(), i(Xa, {
|
|
11750
11784
|
style: { width: "125px" },
|
|
@@ -11797,8 +11831,8 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11797
11831
|
}),
|
|
11798
11832
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
11799
11833
|
setup(e, { emit: n }) {
|
|
11800
|
-
let i = e, a =
|
|
11801
|
-
|
|
11834
|
+
let i = e, a = R(e, "chartData"), c = R(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } = Lu(), p = r(() => d(i.mapType)), m = r(() => f(a.value, i.mapType, i.seriesKey, i.gradientLegendMin, i.gradientLegendMax)), h = r(() => m.value.filter((e) => e[i.mapType] !== "_FeatureMin" && e[i.mapType] !== "_FeatureMax").map((e) => e[i.mapType]));
|
|
11835
|
+
B(c, (e) => {
|
|
11802
11836
|
l("region-selection-changed", { region: e });
|
|
11803
11837
|
});
|
|
11804
11838
|
let g = r(() => (c.value, {
|