@turquoisehealth/pit-viper 2.194.3-dev.0 → 2.194.3-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +0 -5
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +0 -16
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +790 -817
- 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 ee, useModel as L, useSlots as R, useTemplateRef as z, vModelCheckbox as te, vModelText as ne, vShow as B, watch as V, withCtx as H, withDirectives as U, withModifiers as re } 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 G } from "ag-charts-enterprise";
|
|
6
|
+
import { AgGridVue as ie } from "ag-grid-vue3";
|
|
7
|
+
import { CellStyleModule as ae, CheckboxEditorModule as K, ClientSideRowModelModule as oe, ColumnApiModule as se, CsvExportModule as ce, CustomEditorModule as le, CustomFilterModule as ue, DateEditorModule as de, EventApiModule as q, GridStateModule as fe, LargeTextEditorModule as pe, ModuleRegistry as me, NumberEditorModule as he, PaginationModule as ge, QuickFilterModule as _e, RowApiModule as ve, RowStyleModule as ye, ScrollApiModule as be, SelectEditorModule as J, TextEditorModule as Y, TextFilterModule as xe, UndoRedoEditModule as Se, themeQuartz as X } from "ag-grid-community";
|
|
8
|
+
import { AdvancedFilterModule as Ce, CellSelectionModule as we, ClientSideRowModelApiModule as Te, ClipboardModule as Ee, ColumnMenuModule as De, ContextMenuModule as Oe, LicenseManager as ke, MultiFilterModule as Ae, RenderApiModule as je, RichSelectModule as Me, RowGroupingModule as Ne, RowSelectionModule as Pe, ServerSideRowModelApiModule as Fe, ServerSideRowModelModule as Ie, SetFilterModule as Le, TooltipModule as Re, ValidationModule as ze } from "ag-grid-enterprise";
|
|
9
|
+
import { onClickOutside as Be, onKeyStroke as Ve, toRef as He, useDebounceFn as Z, useElementBounding as Q, 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
|
+
G.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 = z("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 }), V(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) => U((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: H(() => [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 ?? R(), 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), V(() => 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] ||= re((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 = L(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
|
+
V(c, (e) => {
|
|
1623
1623
|
e && u.value && d.value && _();
|
|
1624
1624
|
});
|
|
1625
|
-
let v =
|
|
1625
|
+
let v = Q(u), y = Z(() => {
|
|
1626
1626
|
c.value && _();
|
|
1627
1627
|
}, 5);
|
|
1628
|
-
|
|
1628
|
+
V([
|
|
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 V(j, (e) => {
|
|
1656
1656
|
t.showOnHover && D(e);
|
|
1657
1657
|
}), T(() => {
|
|
1658
1658
|
C();
|
|
1659
|
-
}), (r, u) =>
|
|
1659
|
+
}), (r, u) => U((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
|
+
}, [U(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), [[B, 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: H(() => [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: H(() => [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 = L(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: H(() => [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: H(() => [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 V(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 = z("dialog"), r = L(e, "modelValue");
|
|
1825
|
+
V(() => 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 = z("search-input"), c = L(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 && Ve(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, [U(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 = z("sidePanel"), l = L(e, "searchInput"), d = L(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 && Be(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 V(() => d.value, () => {
|
|
1994
1994
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
1995
|
-
}),
|
|
1995
|
+
}), Ve("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: H(() => [u(sn, {
|
|
2227
2227
|
name: "close",
|
|
2228
|
-
onClick: r[0] ||=
|
|
2228
|
+
onClick: r[0] ||= re((e) => n.$emit("handle-clear"), ["stop"])
|
|
2229
2229
|
})]),
|
|
2230
|
-
"tooltip-content":
|
|
2230
|
+
"tooltip-content": H(() => [...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
|
+
}), V(() => 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 ?? ee(), n = L(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), U(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: H(() => [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: re(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: H(() => [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 = z("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] ||= re((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 = L(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
|
+
V(() => 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, ee = r(() => v.value || i.totalChildCount == null ? !1 : i.totalChildCount > b.value.length), R = 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
|
+
}, z = (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: z,
|
|
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) => U((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)), [[B, !i.disabled || P(t)]])), 128)), ee.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: R
|
|
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 = L(e, "selectedItems"), l = N(c.value);
|
|
2783
|
+
V(c, (e) => {
|
|
2784
2784
|
l.value = e;
|
|
2785
|
-
}),
|
|
2785
|
+
}), V(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) => U((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)), [[B, 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 && R.value?.length) return da(R.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 && R.value?.length ? R.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
3007
3007
|
g("see-more", e ?? {});
|
|
3008
|
-
}, j =
|
|
3009
|
-
W.value = e, ne.value || (
|
|
3010
|
-
}, H = () => {
|
|
3011
|
-
ne.value && (L.value = W.value, z.value = S());
|
|
3008
|
+
}, j = z("searchInputRef"), [M, F] = We(c.defaultOpen), ee = L(e, "modelValue"), R = L(e, "selectionState"), te = L(e, "searchInput"), ne = r(() => c.menuActionsVariant === "cancel-confirm"), B = (e) => {
|
|
3009
|
+
W.value = e, ne.value || (ee.value = e, R.value = S());
|
|
3012
3010
|
}, U = () => {
|
|
3013
|
-
ne.value && (
|
|
3014
|
-
},
|
|
3011
|
+
ne.value && (ee.value = W.value, R.value = S());
|
|
3012
|
+
}, re = () => {
|
|
3013
|
+
ne.value && (W.value = ee.value);
|
|
3014
|
+
}, W = N(ee.value), G = (e) => d.value.get(e), ie = (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(G(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 || B(e);
|
|
3037
3037
|
}
|
|
3038
|
-
}),
|
|
3038
|
+
}), K = () => {
|
|
3039
3039
|
te.value = "", M.value = !1;
|
|
3040
|
-
},
|
|
3040
|
+
}, oe = 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
|
+
V(() => ee.value, (e) => {
|
|
3045
|
+
if (c.enableCascadeSelection && R.value?.length && e.length === 0) {
|
|
3046
|
+
ie(R.value);
|
|
3047
3047
|
return;
|
|
3048
3048
|
}
|
|
3049
3049
|
W.value = e;
|
|
3050
|
-
}),
|
|
3051
|
-
|
|
3050
|
+
}), V(() => [R.value, c.options], () => {
|
|
3051
|
+
ie(R.value);
|
|
3052
3052
|
}, {
|
|
3053
3053
|
deep: !0,
|
|
3054
3054
|
immediate: !0
|
|
3055
|
-
}),
|
|
3056
|
-
e ? (
|
|
3055
|
+
}), V(M, (e) => {
|
|
3056
|
+
e ? (re(), v(() => {
|
|
3057
3057
|
c.overlayTrigger && !c.disableSearchInput && j.value?.input?.focus(), g("dropdown-open");
|
|
3058
|
-
})) : (
|
|
3058
|
+
})) : (re(), g("dropdown-closed"));
|
|
3059
3059
|
});
|
|
3060
|
-
let
|
|
3060
|
+
let se = 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
|
+
}), ce = () => {
|
|
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(se.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3070
3070
|
}
|
|
3071
|
-
|
|
3072
|
-
}, ce = () => {
|
|
3073
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), re([]);
|
|
3071
|
+
B(c.enableCascadeSelection ? ca(se.value) : se.value);
|
|
3074
3072
|
}, le = () => {
|
|
3075
|
-
|
|
3073
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), B([]);
|
|
3076
3074
|
}, ue = () => {
|
|
3077
|
-
|
|
3078
|
-
},
|
|
3075
|
+
re(), K();
|
|
3076
|
+
}, de = () => {
|
|
3077
|
+
U(), K();
|
|
3078
|
+
}, q = 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
|
+
}), fe = r(() => c.groupings && te.value === ""), pe = r(() => ({
|
|
3091
3091
|
...c,
|
|
3092
|
-
selectedItems:
|
|
3092
|
+
selectedItems: ee.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
|
+
})), me = z("popoverContentRef"), he = r(() => {
|
|
3098
|
+
let e = me.value?.getRootNode();
|
|
3099
3099
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3100
|
-
}), { present:
|
|
3101
|
-
return
|
|
3102
|
-
M.value &&
|
|
3100
|
+
}), { present: ge } = vn("header", { host: he }), { present: _e } = vn("no-results", { host: he }), { present: ve } = vn("footer", { host: he });
|
|
3101
|
+
return Ve("Escape", () => {
|
|
3102
|
+
M.value && K();
|
|
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: oe.value }), {
|
|
3107
|
+
trigger: H(() => [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: le,
|
|
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: H(() => [s("div", {
|
|
3142
3142
|
ref_key: "popoverContentRef",
|
|
3143
|
-
ref:
|
|
3143
|
+
ref: me,
|
|
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(ge) ? (E(), o("div", Ua, [A(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
3164
|
+
se.value.length > 0 ? (E(), o(t, { key: 2 }, [fe.value ? (E(!0), o(t, { key: 0 }, k(q.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 === q.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
|
+
q.value && s !== q.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: se.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" })])) : se.value.length === 0 ? (E(), o(t, { key: 4 }, [I(_e) ? A(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (E(), i(oa, { key: 1 }))], 64)) : a("", !0),
|
|
3219
|
+
s("div", qa, [I(ve) ? A(n.$slots, "footer", b(_({ key: 0 }, pe.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: le,
|
|
3224
|
+
onHandleSelectAll: ce,
|
|
3225
|
+
onHandleCancel: ue,
|
|
3226
|
+
onHandleConfirm: de
|
|
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 = L(e, "modelValue"), p = L(e, "searchInput");
|
|
3284
|
+
V(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 Ve("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: H(() => [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: H(() => [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 = L(e, "modelValue"), c = L(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 = z("search-input"), d = L(e, "searchText"), f = L(e, "query"), p = L(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 && Ve("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
|
+
}), ee());
|
|
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
|
+
V([
|
|
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), ee();
|
|
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 ee = () => {
|
|
3616
3616
|
d.value = "";
|
|
3617
3617
|
};
|
|
3618
|
-
return (n, r) =>
|
|
3618
|
+
return (n, r) => U((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
|
+
]), U(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: H(() => [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
|
+
V(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: H(() => [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: H(() => [(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 = He(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: H(() => [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": H(() => [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: H(() => [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: H(() => [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) => I(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 = ee(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,29 +4488,7 @@ 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 =
|
|
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) => {
|
|
4491
|
+
}, I = (e, t) => {
|
|
4514
4492
|
let n = [..._.value[e] || [], ...y.value[e] || []], r = (e, t) => {
|
|
4515
4493
|
let n = /* @__PURE__ */ new Map();
|
|
4516
4494
|
for (let t of e.children || []) n.set(t.value, t);
|
|
@@ -4531,7 +4509,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4531
4509
|
}
|
|
4532
4510
|
};
|
|
4533
4511
|
return o(n);
|
|
4534
|
-
},
|
|
4512
|
+
}, ee = (e, t) => {
|
|
4535
4513
|
if (!t) return {};
|
|
4536
4514
|
let n = $(e)?.queryColIds || [];
|
|
4537
4515
|
if (n.length === 0) return {};
|
|
@@ -4544,7 +4522,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4544
4522
|
};
|
|
4545
4523
|
}
|
|
4546
4524
|
return {};
|
|
4547
|
-
},
|
|
4525
|
+
}, L = (e, n) => {
|
|
4548
4526
|
v.value[e] = n;
|
|
4549
4527
|
let r = [], i = t.value;
|
|
4550
4528
|
if (hc(i)) {
|
|
@@ -4557,12 +4535,12 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4557
4535
|
r.push(...n);
|
|
4558
4536
|
let a = [];
|
|
4559
4537
|
return n.forEach((t) => {
|
|
4560
|
-
let n =
|
|
4538
|
+
let n = I(e, t);
|
|
4561
4539
|
n && a.push(n);
|
|
4562
4540
|
}), y.value[e] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4563
|
-
},
|
|
4541
|
+
}, R = (e) => v.value[e] || [], z = (e, t) => {
|
|
4564
4542
|
b.value[e] = t;
|
|
4565
|
-
},
|
|
4543
|
+
}, te = (e) => x.value[e] || [], ne = (e, t) => {
|
|
4566
4544
|
x.value[e] = t;
|
|
4567
4545
|
}, B = (e, t) => {
|
|
4568
4546
|
T.value[e] = t;
|
|
@@ -4583,17 +4561,17 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4583
4561
|
for (let n of e) t.add(n);
|
|
4584
4562
|
}
|
|
4585
4563
|
for (let e of E.value) t.has(e) || (S.value[e] = !0);
|
|
4586
|
-
},
|
|
4564
|
+
}, re = () => {
|
|
4587
4565
|
k.value = JSON.parse(JSON.stringify(v.value));
|
|
4588
|
-
},
|
|
4566
|
+
}, W = () => {
|
|
4589
4567
|
k.value = {};
|
|
4590
|
-
}, G = (e) => k.value[e] || [],
|
|
4568
|
+
}, G = (e) => k.value[e] || [], ie = (e, t) => {
|
|
4591
4569
|
k.value[e] = t;
|
|
4592
|
-
},
|
|
4570
|
+
}, ae = (t) => {
|
|
4593
4571
|
e.value = t;
|
|
4594
4572
|
}, K = (t) => {
|
|
4595
4573
|
(!t || e.value === t) && (e.value = null);
|
|
4596
|
-
},
|
|
4574
|
+
}, oe = () => e.value?.getFilterModel() ?? t.value, se = (n) => {
|
|
4597
4575
|
let r = e.value?.setFilterModel(n);
|
|
4598
4576
|
(!e.value || r === !1) && (t.value = n);
|
|
4599
4577
|
}, ce = (t) => {
|
|
@@ -4626,21 +4604,20 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4626
4604
|
filterValueSelectedMetadataMap: y,
|
|
4627
4605
|
filterStoreHandler: u,
|
|
4628
4606
|
fetchFilterValues: F,
|
|
4629
|
-
|
|
4630
|
-
filterValueContext: L,
|
|
4607
|
+
filterValueContext: I,
|
|
4631
4608
|
filterModelEmpty: h,
|
|
4632
|
-
getFilterSelectedValues:
|
|
4633
|
-
getSearchMatchDataFromFilterContext:
|
|
4609
|
+
getFilterSelectedValues: R,
|
|
4610
|
+
getSearchMatchDataFromFilterContext: ee,
|
|
4634
4611
|
isServerSideFilter: m,
|
|
4635
4612
|
stagedFilterModel: n,
|
|
4636
|
-
setFilterSelectedValues:
|
|
4637
|
-
setFilterValueSearchText:
|
|
4613
|
+
setFilterSelectedValues: L,
|
|
4614
|
+
setFilterValueSearchText: z,
|
|
4638
4615
|
tableSearchFilterModel: i,
|
|
4639
4616
|
tableSearchFilterModelEmpty: g,
|
|
4640
4617
|
tableSearchHandler: p,
|
|
4641
4618
|
filterValuesMap: x,
|
|
4642
|
-
getFilterValues:
|
|
4643
|
-
setFilterValues:
|
|
4619
|
+
getFilterValues: te,
|
|
4620
|
+
setFilterValues: ne,
|
|
4644
4621
|
filterStaleMap: S,
|
|
4645
4622
|
refreshFiltersInBackground: C,
|
|
4646
4623
|
stageFilterChangesUntilDropdownCloses: w,
|
|
@@ -4651,13 +4628,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4651
4628
|
registerFilterField: V,
|
|
4652
4629
|
unregisterFilterField: H,
|
|
4653
4630
|
stagedSelectedValuesMap: k,
|
|
4654
|
-
initStagedSelectedValues:
|
|
4655
|
-
clearStagedSelectedValues:
|
|
4631
|
+
initStagedSelectedValues: re,
|
|
4632
|
+
clearStagedSelectedValues: W,
|
|
4656
4633
|
getStagedSelectedValues: G,
|
|
4657
|
-
setStagedSelectedValues:
|
|
4658
|
-
registerFilterController:
|
|
4634
|
+
setStagedSelectedValues: ie,
|
|
4635
|
+
registerFilterController: ae,
|
|
4659
4636
|
unregisterFilterController: K,
|
|
4660
|
-
getFilterModel:
|
|
4637
|
+
getFilterModel: oe,
|
|
4661
4638
|
applyFilterModel: se,
|
|
4662
4639
|
applyTableSearchFilterModel: ce,
|
|
4663
4640
|
refreshData: le,
|
|
@@ -4672,66 +4649,66 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4672
4649
|
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().");
|
|
4673
4650
|
return e;
|
|
4674
4651
|
}, xc = (e) => {
|
|
4675
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(fo, O(null)), c = yc(), { fetchFilterValues: l,
|
|
4676
|
-
get: () => K.value ?
|
|
4652
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(fo, O(null)), c = yc(), { fetchFilterValues: l, filterModel: u, stagedFilterModel: d, filterModelCleared: f, filterValuesLoadingStatus: p, filterValueContext: h, getFilterSelectedValues: g, isServerSideFilter: _, setFilterValueSearchText: y, setFilterSelectedValues: b, getFilterValues: x, setFilterValues: S, filterStaleMap: C, refreshFiltersInBackground: E, stageFilterChangesUntilDropdownCloses: D, markOtherFieldsStale: k, registerAggregateField: A, registerFilterField: j, unregisterFilterField: M, getStagedSelectedValues: N, setStagedSelectedValues: P, filterValueSearchTextMap: F, filterValuesHasMoreMap: I, filterValuesTotalCountMap: ee } = c, { computedFocuses: L, removeFocus: R, computedFocusType: z } = $o(), te = m(xo, O(!1)), ne = m(bo, O(!1)), B = m(Po, O(!1)), H = r({
|
|
4653
|
+
get: () => K.value ? N(G.value) : g(G.value),
|
|
4677
4654
|
set: (e) => {
|
|
4678
|
-
K.value ?
|
|
4655
|
+
K.value ? P(G.value, e) : b(G.value, e);
|
|
4679
4656
|
}
|
|
4680
4657
|
}), U = r(() => {
|
|
4681
|
-
let e =
|
|
4682
|
-
if (
|
|
4658
|
+
let e = x(G.value);
|
|
4659
|
+
if (oe.value && ce.value.length > 0) {
|
|
4683
4660
|
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));
|
|
4684
4661
|
return [...n, ...i];
|
|
4685
4662
|
}
|
|
4686
4663
|
return Ee(e);
|
|
4687
|
-
}),
|
|
4688
|
-
get: () =>
|
|
4689
|
-
set: (e) =>
|
|
4690
|
-
}), G = r(() => t.value.field || ""),
|
|
4664
|
+
}), re = r(() => p.value[G.value] ?? !1), W = r({
|
|
4665
|
+
get: () => F.value[G.value] ?? "",
|
|
4666
|
+
set: (e) => y(G.value, e)
|
|
4667
|
+
}), G = r(() => t.value.field || ""), ie = r(() => t.value.filter || ""), ae = r(() => t.value.headerName || ""), K = r(() => n?.value === "vertical"), oe = O(!1), se = O(!1), ce = O([]), le = r(() => Ss(t.value)), ue = r(() => Cs(t.value)), de = r(() => ws(t.value)), q = 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))), be = r(() => ee.value[G.value]), J = r(() => I.value[G.value]), Y = r(() => As(t.value)), xe = () => new Set([G.value, ...Ds(t.value)]), Se = (e, t) => {
|
|
4691
4668
|
let n = new Set(e), r = new Set(t);
|
|
4692
4669
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
4693
|
-
},
|
|
4694
|
-
if (
|
|
4670
|
+
}, X = O([]), Ce = r(() => U.value.length === 1 && U.value[0] === null && H.value.length === 0), we = (e = !1) => {
|
|
4671
|
+
if (Y.value) return;
|
|
4695
4672
|
let n = [];
|
|
4696
|
-
if (
|
|
4673
|
+
if (B.value && s.value) {
|
|
4697
4674
|
let e = s.value.getAdvancedFilterModel();
|
|
4698
4675
|
n = cc(G.value, e);
|
|
4699
|
-
} else n = $s(t.value,
|
|
4700
|
-
e ? H.value = n : H.value = Array.from(new Set([...
|
|
4676
|
+
} else n = $s(t.value, u.value);
|
|
4677
|
+
e ? H.value = n : H.value = Array.from(new Set([...g(G.value), ...n]));
|
|
4701
4678
|
}, Te = (e) => {
|
|
4702
4679
|
let t = (n) => {
|
|
4703
4680
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
4704
4681
|
return !1;
|
|
4705
4682
|
};
|
|
4706
|
-
return t(
|
|
4683
|
+
return t(X.value);
|
|
4707
4684
|
}, Ee = (e) => [...e].sort((e, t) => {
|
|
4708
4685
|
let n = H.value.includes(e) || Te(e), r = H.value.includes(t) || Te(t);
|
|
4709
4686
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
4710
4687
|
}), De = async (e = !1, n = !1) => {
|
|
4711
4688
|
if (!s.value || o?.value) return;
|
|
4712
|
-
let r =
|
|
4713
|
-
if (
|
|
4714
|
-
if (
|
|
4689
|
+
let r = C.value[G.value] ?? !1, i = p.value[G.value] !== !0, a = (x(G.value) || []).length === 0, c = e && i && (r || n || a);
|
|
4690
|
+
if (B.value) {
|
|
4691
|
+
if (_.value && c) {
|
|
4715
4692
|
let e = await l(t.value, {
|
|
4716
4693
|
api: s.value,
|
|
4717
|
-
filterModel:
|
|
4694
|
+
filterModel: u.value ?? void 0,
|
|
4718
4695
|
useStaged: K.value
|
|
4719
4696
|
});
|
|
4720
|
-
|
|
4697
|
+
S(G.value, e), C.value[G.value] = !1, ct();
|
|
4721
4698
|
}
|
|
4722
4699
|
return;
|
|
4723
4700
|
}
|
|
4724
|
-
let
|
|
4725
|
-
if (
|
|
4726
|
-
if (
|
|
4727
|
-
|
|
4701
|
+
let d = await Zs(s.value, t.value);
|
|
4702
|
+
if (d) {
|
|
4703
|
+
if (_.value && c) {
|
|
4704
|
+
d.refreshFilterValues();
|
|
4728
4705
|
return;
|
|
4729
4706
|
}
|
|
4730
|
-
|
|
4707
|
+
S(G.value, d.getFilterValues()), C.value[G.value] = !1;
|
|
4731
4708
|
}
|
|
4732
4709
|
}, Oe = (e) => {
|
|
4733
|
-
let t =
|
|
4734
|
-
return !t &&
|
|
4710
|
+
let t = h(G.value, e);
|
|
4711
|
+
return !t && Y.value && e && (t = He(e)), t;
|
|
4735
4712
|
}, ke = (e, t) => t?.metadata?.rawValue == null ? e : t.metadata.rawValue, Ae = (e, t) => {
|
|
4736
4713
|
if (!e || !t || e.label && e.metadata?.rawValue == null) return e;
|
|
4737
4714
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
@@ -4741,7 +4718,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4741
4718
|
} : e;
|
|
4742
4719
|
}, je = (e, t) => {
|
|
4743
4720
|
let n = le.value, r = t;
|
|
4744
|
-
if (t?.colField &&
|
|
4721
|
+
if (t?.colField && Y.value) {
|
|
4745
4722
|
let e = s.value?.getColumnDef(t?.colField);
|
|
4746
4723
|
n = e ? Ss(e) ?? n : n, r = Ae(t, e ?? void 0);
|
|
4747
4724
|
}
|
|
@@ -4751,9 +4728,9 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4751
4728
|
}) : r?.label || e;
|
|
4752
4729
|
}, Me = (e) => je(e, Oe(e)), Ne = (e) => {
|
|
4753
4730
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
4754
|
-
let n =
|
|
4731
|
+
let n = h(G.value, e);
|
|
4755
4732
|
return n == null || n.label == null;
|
|
4756
|
-
}, Pe = (e) => Ce.value ||
|
|
4733
|
+
}, Pe = (e) => Ce.value || h(G.value, e)?.isSelectable === !1 ? !0 : de.value ? !1 : ve.value && !H.value.includes(e), Fe = (e) => !e || !s.value ? "" : s.value.getColumnDef(e)?.headerName || e, Ie = (e) => {
|
|
4757
4734
|
if (!e.startsWith("__")) return { value: e };
|
|
4758
4735
|
let t = e.slice(2).split("__");
|
|
4759
4736
|
return t.length < 2 ? { value: e } : {
|
|
@@ -4761,7 +4738,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4761
4738
|
value: t[1]
|
|
4762
4739
|
};
|
|
4763
4740
|
}, Le = (e) => {
|
|
4764
|
-
let t =
|
|
4741
|
+
let t = h(G.value, e), n = t?.metadata?.rawValue;
|
|
4765
4742
|
return t?.colField && n != null ? {
|
|
4766
4743
|
field: t.colField,
|
|
4767
4744
|
value: String(n)
|
|
@@ -4798,7 +4775,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4798
4775
|
if (t) return t;
|
|
4799
4776
|
}
|
|
4800
4777
|
return `__${e}__${t}`;
|
|
4801
|
-
},
|
|
4778
|
+
}, He = (e) => {
|
|
4802
4779
|
let t = (n) => {
|
|
4803
4780
|
if (n) {
|
|
4804
4781
|
if ((n.metadata?.rawValue == null ? Ie(n.value).value : String(n.metadata.rawValue)) === e) return n;
|
|
@@ -4812,7 +4789,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4812
4789
|
let n = t(e);
|
|
4813
4790
|
if (n) return n;
|
|
4814
4791
|
}
|
|
4815
|
-
},
|
|
4792
|
+
}, Z = (e) => {
|
|
4816
4793
|
let t = e.startsWith("__") ? e.slice(2).split("__") : [];
|
|
4817
4794
|
if (t.length < 4) return;
|
|
4818
4795
|
let n = t[0], r = t[1], i = t[2], a = t.slice(3).join("__");
|
|
@@ -4831,34 +4808,34 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4831
4808
|
}],
|
|
4832
4809
|
totalChildCount: 1
|
|
4833
4810
|
};
|
|
4834
|
-
},
|
|
4811
|
+
}, Q = (e) => {
|
|
4835
4812
|
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 :
|
|
4837
|
-
},
|
|
4838
|
-
if (!
|
|
4813
|
+
return r?.children?.length ? r : Be(n, e.id) || (r && r.colField === ks(t.value) ? r : Z(e.id) || r);
|
|
4814
|
+
}, Ue = (e) => {
|
|
4815
|
+
if (!Y.value) return;
|
|
4839
4816
|
let t = c.filterValueSelectedMetadataMap.value[G.value] || [], n = /* @__PURE__ */ new Map();
|
|
4840
4817
|
for (let e of t) e && n.set(e.value, e);
|
|
4841
4818
|
for (let t of e) {
|
|
4842
4819
|
if (t.state !== "selected") continue;
|
|
4843
|
-
let e =
|
|
4820
|
+
let e = Q(t);
|
|
4844
4821
|
e && n.set(e.value, e);
|
|
4845
4822
|
}
|
|
4846
4823
|
c.filterValueSelectedMetadataMap.value[G.value] = [...n.values()];
|
|
4847
|
-
},
|
|
4824
|
+
}, We = () => {
|
|
4848
4825
|
let e = /* @__PURE__ */ new Set();
|
|
4849
|
-
for (let t of
|
|
4826
|
+
for (let t of X.value) {
|
|
4850
4827
|
if (t.state !== "selected") continue;
|
|
4851
|
-
let n =
|
|
4828
|
+
let n = Q(t);
|
|
4852
4829
|
n && e.add(n.value);
|
|
4853
4830
|
}
|
|
4854
4831
|
return [...e].filter((e) => !U.value.includes(e));
|
|
4855
|
-
},
|
|
4856
|
-
let n =
|
|
4832
|
+
}, Ke = (e) => {
|
|
4833
|
+
let n = h(G.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = q.value ? "suggestions" : null;
|
|
4857
4834
|
n?.isPreference && (i = "preferences");
|
|
4858
4835
|
let a = null, o = n?.matchedValue, l = Fe(n?.matchedField);
|
|
4859
|
-
o && l ? a = o ? `${l}: ${o}` : "" : n?.subText ? a = n.subText : n?.colField &&
|
|
4860
|
-
let
|
|
4861
|
-
if (r && (
|
|
4836
|
+
o && l ? a = o ? `${l}: ${o}` : "" : n?.subText ? a = n.subText : n?.colField && Y.value && !r && (a = Fe(n?.colField));
|
|
4837
|
+
let d, f, p;
|
|
4838
|
+
if (r && (d = (n.children ?? []).map((e) => ({
|
|
4862
4839
|
...e.menuOption,
|
|
4863
4840
|
id: e.value,
|
|
4864
4841
|
text: je(e.value, e) || "",
|
|
@@ -4867,14 +4844,14 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4867
4844
|
disabled: e.menuOption?.disabled ?? Pe(e.value),
|
|
4868
4845
|
context: e,
|
|
4869
4846
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
4870
|
-
})), f = n.totalChildCount, f && f >
|
|
4847
|
+
})), f = n.totalChildCount, f && f > d.length && n.value != null)) {
|
|
4871
4848
|
let e = n.value;
|
|
4872
4849
|
p = async (n) => {
|
|
4873
4850
|
if (!s.value || !c.filterStoreHandler.value) return;
|
|
4874
|
-
let r = n?.offset ??
|
|
4851
|
+
let r = n?.offset ?? d.length, i = await c.filterStoreHandler.value({
|
|
4875
4852
|
api: s.value,
|
|
4876
4853
|
colDef: t.value,
|
|
4877
|
-
filterModel:
|
|
4854
|
+
filterModel: u.value ?? void 0,
|
|
4878
4855
|
offset: r,
|
|
4879
4856
|
parentId: e
|
|
4880
4857
|
});
|
|
@@ -4901,16 +4878,16 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4901
4878
|
disabled: n?.menuOption?.disabled ?? (r ? !1 : Pe(e)),
|
|
4902
4879
|
context: n || { value: e || "" },
|
|
4903
4880
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
4904
|
-
children:
|
|
4881
|
+
children: d,
|
|
4905
4882
|
totalChildCount: f,
|
|
4906
4883
|
handleSeeMore: p
|
|
4907
4884
|
};
|
|
4908
|
-
},
|
|
4909
|
-
let e = [...
|
|
4910
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ne(e)).map(
|
|
4911
|
-
}),
|
|
4912
|
-
get: () =>
|
|
4913
|
-
let t =
|
|
4885
|
+
}, qe = r(() => {
|
|
4886
|
+
let e = [...Y.value ? We() : H.value.filter((e) => e != null && e !== "" && !U.value.includes(e)), ...U.value];
|
|
4887
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ne(e)).map(Ke);
|
|
4888
|
+
}), Je = r({
|
|
4889
|
+
get: () => Y.value ? [] : H.value.map((e) => {
|
|
4890
|
+
let t = h(G.value, e), n = t?.colField ? Fe(t.colField) : void 0;
|
|
4914
4891
|
return {
|
|
4915
4892
|
id: e,
|
|
4916
4893
|
text: Me(e),
|
|
@@ -4919,47 +4896,47 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4919
4896
|
};
|
|
4920
4897
|
}),
|
|
4921
4898
|
set: (e) => {
|
|
4922
|
-
if (
|
|
4923
|
-
if (e.length === 0 && !
|
|
4924
|
-
|
|
4899
|
+
if (Y.value) {
|
|
4900
|
+
if (e.length === 0 && !oe.value && D.value && !K.value) {
|
|
4901
|
+
it([]);
|
|
4925
4902
|
return;
|
|
4926
4903
|
}
|
|
4927
4904
|
i?.();
|
|
4928
4905
|
return;
|
|
4929
4906
|
}
|
|
4930
|
-
H.value = e.map((e) => e.id), (e.length === 0 && !
|
|
4931
|
-
!H.value.includes(e) &&
|
|
4907
|
+
H.value = e.map((e) => e.id), (e.length === 0 && !oe.value || !D.value || K.value) && (Xe(), L.value.forEach((e) => {
|
|
4908
|
+
!H.value.includes(e) && z.value === G.value && R(e);
|
|
4932
4909
|
})), i?.();
|
|
4933
4910
|
}
|
|
4934
|
-
}),
|
|
4911
|
+
}), Ye = (e) => {
|
|
4935
4912
|
let t = {};
|
|
4936
4913
|
for (let n of e) {
|
|
4937
4914
|
if (n === null) continue;
|
|
4938
|
-
let e =
|
|
4915
|
+
let e = h(G.value, n)?.colField || G.value;
|
|
4939
4916
|
t[e] || (t[e] = []), t[e].push(n);
|
|
4940
4917
|
}
|
|
4941
4918
|
return t;
|
|
4942
|
-
},
|
|
4919
|
+
}, Xe = async (e, n, r) => {
|
|
4943
4920
|
if (!s.value) return;
|
|
4944
4921
|
if (e !== void 0 && n !== void 0) {
|
|
4945
4922
|
let r = e || G.value, i = n;
|
|
4946
|
-
if (
|
|
4923
|
+
if (B.value) {
|
|
4947
4924
|
let e = Bs(r, i || []);
|
|
4948
4925
|
if (K.value) {
|
|
4949
|
-
let t =
|
|
4950
|
-
|
|
4926
|
+
let t = d.value;
|
|
4927
|
+
d.value = oc(t, e, r), k(new Set([r]));
|
|
4951
4928
|
return;
|
|
4952
4929
|
}
|
|
4953
4930
|
let t = oc(s.value.getAdvancedFilterModel(), e, r);
|
|
4954
4931
|
v(() => {
|
|
4955
4932
|
s.value?.setAdvancedFilterModel(t);
|
|
4956
|
-
}),
|
|
4933
|
+
}), k(new Set([r]));
|
|
4957
4934
|
return;
|
|
4958
4935
|
}
|
|
4959
4936
|
if (K.value) {
|
|
4960
4937
|
let e = await Qs(s.value, t.value, i);
|
|
4961
|
-
|
|
4962
|
-
...
|
|
4938
|
+
d.value = {
|
|
4939
|
+
...d.value,
|
|
4963
4940
|
[r]: e
|
|
4964
4941
|
};
|
|
4965
4942
|
return;
|
|
@@ -4970,10 +4947,10 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
4970
4947
|
});
|
|
4971
4948
|
return;
|
|
4972
4949
|
}
|
|
4973
|
-
let i =
|
|
4974
|
-
if (
|
|
4975
|
-
let e = K.value ?
|
|
4976
|
-
if (
|
|
4950
|
+
let i = Ye(H.value), o = $(t.value);
|
|
4951
|
+
if (B.value) {
|
|
4952
|
+
let e = K.value ? d.value : s.value.getAdvancedFilterModel(), n = e;
|
|
4953
|
+
if (Y.value) {
|
|
4977
4954
|
let e = Ds(t.value), r = [];
|
|
4978
4955
|
for (let t of e) {
|
|
4979
4956
|
let e = i[t] || [];
|
|
@@ -5013,13 +4990,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5013
4990
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
5014
4991
|
}
|
|
5015
4992
|
if (r?.skipIfUnchanged && ac(e, n)) return;
|
|
5016
|
-
let c =
|
|
5017
|
-
if (K.value)
|
|
4993
|
+
let c = Y.value ? xe() : new Set([G.value]);
|
|
4994
|
+
if (K.value) d.value = n, k(c);
|
|
5018
4995
|
else {
|
|
5019
4996
|
let e = n;
|
|
5020
4997
|
v(() => {
|
|
5021
4998
|
s.value?.setAdvancedFilterModel(e);
|
|
5022
|
-
}),
|
|
4999
|
+
}), k(c);
|
|
5023
5000
|
}
|
|
5024
5001
|
return;
|
|
5025
5002
|
}
|
|
@@ -5030,8 +5007,8 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5030
5007
|
}
|
|
5031
5008
|
if (K.value) {
|
|
5032
5009
|
let e = await Qs(s.value, t.value, c);
|
|
5033
|
-
|
|
5034
|
-
...
|
|
5010
|
+
d.value = {
|
|
5011
|
+
...d.value,
|
|
5035
5012
|
[G.value]: e
|
|
5036
5013
|
};
|
|
5037
5014
|
return;
|
|
@@ -5040,33 +5017,33 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5040
5017
|
s.value.setColumnFilterModel(G.value, l).then(() => {
|
|
5041
5018
|
s.value && s.value.onFilterChanged();
|
|
5042
5019
|
});
|
|
5043
|
-
},
|
|
5044
|
-
if (e &&
|
|
5020
|
+
}, Ze = (e, n) => {
|
|
5021
|
+
if (e && de.value ? H.value = [e] : e && !H.value.includes(e) && (H.value = [...H.value, e]), Y.value && e) {
|
|
5045
5022
|
let r = n || Ds(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ve(r, e) || e;
|
|
5046
|
-
|
|
5023
|
+
X.value.find((e) => e.id === i) || (X.value = [...X.value, {
|
|
5047
5024
|
id: i,
|
|
5048
5025
|
state: "selected"
|
|
5049
5026
|
}]);
|
|
5050
5027
|
}
|
|
5051
|
-
(!
|
|
5052
|
-
},
|
|
5053
|
-
if (H.value = H.value.filter((t) => t !== e),
|
|
5028
|
+
(!D.value || K.value) && (Y.value && e ? it(X.value) : n && n !== G.value ? Xe(n, [e]) : Xe()), i?.();
|
|
5029
|
+
}, Qe = (e, n) => {
|
|
5030
|
+
if (H.value = H.value.filter((t) => t !== e), Y.value && e) {
|
|
5054
5031
|
let r = n || Ds(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ve(r, e) || e;
|
|
5055
|
-
|
|
5032
|
+
X.value = X.value.filter((e) => e.id !== i);
|
|
5056
5033
|
}
|
|
5057
|
-
(!
|
|
5034
|
+
(!D.value || K.value) && (Y.value && e ? it(X.value) : n && n !== G.value ? Xe(n, null) : Xe()), i?.();
|
|
5035
|
+
}, $e = () => {
|
|
5036
|
+
ce.value = Ee(x(G.value)), oe.value = !0;
|
|
5058
5037
|
}, et = () => {
|
|
5059
|
-
ce.value =
|
|
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) => {
|
|
5038
|
+
oe.value = !1, ce.value = [], W.value = "", !o?.value && D.value && !K.value && (Y.value ? it(X.value, { skipIfUnchanged: !0 }) : Xe(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5039
|
+
}, tt = async (e) => {
|
|
5063
5040
|
if (!s.value) return;
|
|
5064
5041
|
let n = U.value.length, r = !e.parentId;
|
|
5065
5042
|
r && (se.value = !0);
|
|
5066
5043
|
try {
|
|
5067
5044
|
await l(t.value, {
|
|
5068
5045
|
api: s.value,
|
|
5069
|
-
filterModel:
|
|
5046
|
+
filterModel: u.value ?? void 0,
|
|
5070
5047
|
offset: e.offset ?? n,
|
|
5071
5048
|
parentId: e.parentId,
|
|
5072
5049
|
useStaged: K.value
|
|
@@ -5074,7 +5051,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5074
5051
|
} finally {
|
|
5075
5052
|
r && (se.value = !1);
|
|
5076
5053
|
}
|
|
5077
|
-
},
|
|
5054
|
+
}, nt = (e) => {
|
|
5078
5055
|
if (e.state !== "selected") return null;
|
|
5079
5056
|
let { field: t, value: n } = Le(e.id);
|
|
5080
5057
|
if (!t) return null;
|
|
@@ -5099,10 +5076,10 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5099
5076
|
type: "AND",
|
|
5100
5077
|
conditions: r
|
|
5101
5078
|
};
|
|
5102
|
-
},
|
|
5079
|
+
}, rt = (e, n) => {
|
|
5103
5080
|
let r = Ds(t.value);
|
|
5104
5081
|
if (r.length === 0) return n;
|
|
5105
|
-
let i = e.map(
|
|
5082
|
+
let i = e.map(nt).filter((e) => !!e), a = n;
|
|
5106
5083
|
for (let e of r) a = oc(a, null, e);
|
|
5107
5084
|
if (i.length === 0) return a;
|
|
5108
5085
|
let o = i.length === 1 ? i[0] : {
|
|
@@ -5115,25 +5092,25 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5115
5092
|
type: "AND",
|
|
5116
5093
|
conditions: [a, o]
|
|
5117
5094
|
} : o;
|
|
5118
|
-
},
|
|
5119
|
-
if (!s.value || !
|
|
5120
|
-
let r = K.value ?
|
|
5095
|
+
}, it = (e, n) => {
|
|
5096
|
+
if (!s.value || !Y.value || (X.value = e, Ue(e), Ds(t.value).length === 0)) return !1;
|
|
5097
|
+
let r = K.value ? d.value : s.value.getAdvancedFilterModel(), a = rt(e, r);
|
|
5121
5098
|
if (n?.skipIfUnchanged && ac(r, a)) return !1;
|
|
5122
|
-
if (K.value)
|
|
5099
|
+
if (K.value) d.value = a;
|
|
5123
5100
|
else {
|
|
5124
5101
|
let e = a;
|
|
5125
5102
|
v(() => {
|
|
5126
5103
|
s.value?.setAdvancedFilterModel(e);
|
|
5127
5104
|
});
|
|
5128
5105
|
}
|
|
5129
|
-
return
|
|
5130
|
-
},
|
|
5106
|
+
return k(xe()), i?.(), !0;
|
|
5107
|
+
}, at = (e, n) => {
|
|
5131
5108
|
if (!e) return [];
|
|
5132
5109
|
if (e.filterType === "join") {
|
|
5133
5110
|
let r = e.conditions || [];
|
|
5134
5111
|
if (e.type === "AND") {
|
|
5135
5112
|
let e = r.find((e) => e.filterType !== "join" && n.has(e.colId) && e.type === "equals" && !Os($(t.value).aggregateFieldHierarchy).includes(e.colId));
|
|
5136
|
-
return r.flatMap((t) =>
|
|
5113
|
+
return r.flatMap((t) => at(t, n).map((t) => ({
|
|
5137
5114
|
...t,
|
|
5138
5115
|
parentEquals: t.parentEquals || (e ? {
|
|
5139
5116
|
colId: e.colId,
|
|
@@ -5141,7 +5118,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5141
5118
|
} : void 0)
|
|
5142
5119
|
})));
|
|
5143
5120
|
}
|
|
5144
|
-
return r.flatMap((e) =>
|
|
5121
|
+
return r.flatMap((e) => at(e, n));
|
|
5145
5122
|
}
|
|
5146
5123
|
let r = e;
|
|
5147
5124
|
return r.colId && n.has(r.colId) ? [{
|
|
@@ -5149,11 +5126,11 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5149
5126
|
type: r.type,
|
|
5150
5127
|
filter: r.filter
|
|
5151
5128
|
}] : [];
|
|
5152
|
-
},
|
|
5153
|
-
if (!
|
|
5129
|
+
}, ot = (e) => {
|
|
5130
|
+
if (!Y.value) return;
|
|
5154
5131
|
let n = Ds(t.value);
|
|
5155
5132
|
if (!n.length) return;
|
|
5156
|
-
let r = ks(t.value), i =
|
|
5133
|
+
let r = ks(t.value), i = at(e, new Set(n)), a = /* @__PURE__ */ new Map();
|
|
5157
5134
|
for (let e of i) {
|
|
5158
5135
|
if (!e.filter) continue;
|
|
5159
5136
|
let t = Ve(e.colId, String(e.filter));
|
|
@@ -5179,22 +5156,22 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5179
5156
|
}
|
|
5180
5157
|
}
|
|
5181
5158
|
let o = [...a.values()];
|
|
5182
|
-
JSON.stringify(
|
|
5183
|
-
},
|
|
5159
|
+
JSON.stringify(X.value) !== JSON.stringify(o) && (X.value = o), Ue(o);
|
|
5160
|
+
}, st = () => Y.value ? X.value.some((e) => {
|
|
5184
5161
|
let { field: t, value: n } = Le(e.id);
|
|
5185
5162
|
return t ? Ve(t, n) !== e.id : !1;
|
|
5186
|
-
}) : !1,
|
|
5187
|
-
!
|
|
5163
|
+
}) : !1, ct = () => {
|
|
5164
|
+
!Y.value || !B.value || st() && ot(u.value);
|
|
5188
5165
|
};
|
|
5189
|
-
return
|
|
5190
|
-
|
|
5191
|
-
}, { deep: !0 }),
|
|
5192
|
-
e &&
|
|
5193
|
-
}),
|
|
5166
|
+
return V(X, (e) => {
|
|
5167
|
+
Y.value && (Ue(e), !(D.value && !K.value) && it(e));
|
|
5168
|
+
}, { deep: !0 }), V(() => C.value[G.value], (e) => {
|
|
5169
|
+
e && E.value && De(!0);
|
|
5170
|
+
}), V(() => d.value, () => {
|
|
5194
5171
|
if (K.value) {
|
|
5195
|
-
if (
|
|
5196
|
-
let e = [], n =
|
|
5197
|
-
if (
|
|
5172
|
+
if (B.value) {
|
|
5173
|
+
let e = [], n = d.value;
|
|
5174
|
+
if (Y.value) {
|
|
5198
5175
|
let r = Ds(t.value);
|
|
5199
5176
|
for (let t of r) {
|
|
5200
5177
|
let r = cc(t, n);
|
|
@@ -5204,91 +5181,87 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5204
5181
|
H.value = e;
|
|
5205
5182
|
return;
|
|
5206
5183
|
}
|
|
5207
|
-
|
|
5184
|
+
ie.value === "agSetColumnFilter" ? H.value = d.value?.[G.value]?.values || [] : ie.value === "agMultiColumnFilter" ? H.value = d.value?.[G.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${ie.value} is not yet supported.`);
|
|
5208
5185
|
}
|
|
5209
|
-
}),
|
|
5186
|
+
}), V(() => u.value, () => {
|
|
5210
5187
|
if (K.value) return;
|
|
5211
|
-
if (
|
|
5212
|
-
|
|
5188
|
+
if (Y.value) {
|
|
5189
|
+
B.value && ot(u.value);
|
|
5213
5190
|
return;
|
|
5214
5191
|
}
|
|
5215
|
-
if (
|
|
5216
|
-
let e =
|
|
5192
|
+
if (B.value) {
|
|
5193
|
+
let e = u.value, t = cc(G.value, e);
|
|
5217
5194
|
we(H.value.some((e) => e !== null && !t.includes(e)));
|
|
5218
5195
|
return;
|
|
5219
5196
|
}
|
|
5220
|
-
let e = $s(t.value,
|
|
5197
|
+
let e = $s(t.value, u.value);
|
|
5221
5198
|
we(H.value.some((t) => !e.includes(t)));
|
|
5222
|
-
}, { deep: !0 }),
|
|
5223
|
-
H.value = [],
|
|
5224
|
-
}),
|
|
5225
|
-
e &&
|
|
5226
|
-
}, { immediate: !0 }),
|
|
5227
|
-
|
|
5199
|
+
}, { deep: !0 }), V(() => f.value, () => {
|
|
5200
|
+
H.value = [], X.value = [];
|
|
5201
|
+
}), V(() => s.value, (e) => {
|
|
5202
|
+
e && _.value && (C.value[G.value] = !0);
|
|
5203
|
+
}, { immediate: !0 }), V(() => ne.value, async () => {
|
|
5204
|
+
E.value && (K.value ? setTimeout(async () => {
|
|
5228
5205
|
await De(!0);
|
|
5229
5206
|
}, 2e3) : await De(!0)), we();
|
|
5230
|
-
}), Ge(() =>
|
|
5207
|
+
}), Ge(() => W.value, async () => {
|
|
5231
5208
|
await De(!0, !0);
|
|
5232
5209
|
}, { debounce: 300 }), w(() => {
|
|
5233
|
-
|
|
5210
|
+
j(G.value);
|
|
5234
5211
|
let e = Ds(t.value);
|
|
5235
|
-
if (e.length &&
|
|
5236
|
-
let e =
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
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
|
|
5212
|
+
if (e.length && A(G.value, e), we(), Y.value && B.value && ot(u.value), o?.value && _.value && s.value) {
|
|
5213
|
+
let e = Y.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Y.value && B.value ? Ds(t.value).some((e) => cc(e, u.value).length > 0) : H.value.length > 0;
|
|
5214
|
+
e && n && l(t.value, {
|
|
5215
|
+
api: s.value,
|
|
5216
|
+
filterModel: u.value ?? void 0
|
|
5244
5217
|
});
|
|
5245
5218
|
}
|
|
5246
|
-
|
|
5219
|
+
Y.value || $(t.value).metadataDisplayFields?.length && H.value.some((e) => Ne(e)) && De(!0, !0);
|
|
5247
5220
|
}), T(() => {
|
|
5248
|
-
|
|
5221
|
+
M(G.value), D.value && !K.value && (Y.value ? it(X.value, { skipIfUnchanged: !0 }) : Xe(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5249
5222
|
}), {
|
|
5250
5223
|
selectedValues: H,
|
|
5251
5224
|
filterValues: U,
|
|
5252
|
-
isLoading:
|
|
5225
|
+
isLoading: re,
|
|
5253
5226
|
isSeeMoreLoading: se,
|
|
5254
|
-
filterSearchText:
|
|
5255
|
-
rowsLoading:
|
|
5227
|
+
filterSearchText: W,
|
|
5228
|
+
rowsLoading: te,
|
|
5256
5229
|
gridApi: s,
|
|
5257
5230
|
filterField: G,
|
|
5258
|
-
filterType:
|
|
5259
|
-
filterDisplayName:
|
|
5231
|
+
filterType: ie,
|
|
5232
|
+
filterDisplayName: ae,
|
|
5260
5233
|
isInFilterPanel: K,
|
|
5261
5234
|
maxSelectableValues: ue,
|
|
5262
|
-
isSingleSelect:
|
|
5235
|
+
isSingleSelect: de,
|
|
5263
5236
|
selectionLimitReached: ve,
|
|
5264
5237
|
suggestedValues: ye,
|
|
5265
|
-
displayedFilterValues:
|
|
5266
|
-
selectedFilterValues:
|
|
5238
|
+
displayedFilterValues: qe,
|
|
5239
|
+
selectedFilterValues: Je,
|
|
5267
5240
|
showSearchBar: pe,
|
|
5268
5241
|
emptyFilterResultsRenderer: me,
|
|
5269
5242
|
filterOptionsRenderer: he,
|
|
5270
5243
|
filterHeaderRenderer: ge,
|
|
5271
5244
|
filterFooterRenderer: _e,
|
|
5272
|
-
filterOptionsSortDescription:
|
|
5245
|
+
filterOptionsSortDescription: q,
|
|
5273
5246
|
filterOptionsSortTooltip: fe,
|
|
5274
|
-
totalOptionCount:
|
|
5275
|
-
hasMoreOptions:
|
|
5276
|
-
isAggregate:
|
|
5277
|
-
cascadeSelectionState:
|
|
5278
|
-
filterValueContext:
|
|
5247
|
+
totalOptionCount: be,
|
|
5248
|
+
hasMoreOptions: J,
|
|
5249
|
+
isAggregate: Y,
|
|
5250
|
+
cascadeSelectionState: X,
|
|
5251
|
+
filterValueContext: h,
|
|
5279
5252
|
formatDisplayValue: Me,
|
|
5280
5253
|
resolvedFilterValueContext: Oe,
|
|
5281
5254
|
isUnresolvedMetadataValue: Ne,
|
|
5282
5255
|
getLatestFilterValues: De,
|
|
5283
|
-
addSelectedValue:
|
|
5284
|
-
removeSelectedValue:
|
|
5285
|
-
handleDropdownOpen:
|
|
5286
|
-
handleDropdownClosed:
|
|
5287
|
-
handleSeeMore:
|
|
5288
|
-
handleCascadeSelectionState:
|
|
5256
|
+
addSelectedValue: Ze,
|
|
5257
|
+
removeSelectedValue: Qe,
|
|
5258
|
+
handleDropdownOpen: $e,
|
|
5259
|
+
handleDropdownClosed: et,
|
|
5260
|
+
handleSeeMore: tt,
|
|
5261
|
+
handleCascadeSelectionState: it,
|
|
5289
5262
|
getColDisplayNameForField: Fe,
|
|
5290
5263
|
disableFilterValue: Pe,
|
|
5291
|
-
updateFilterModelWithSelectedValues:
|
|
5264
|
+
updateFilterModelWithSelectedValues: Xe
|
|
5292
5265
|
};
|
|
5293
5266
|
}, Sc = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
5294
5267
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
@@ -5381,7 +5354,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5381
5354
|
v(() => {
|
|
5382
5355
|
c.value?.setAdvancedFilterModel(n);
|
|
5383
5356
|
}), h(new Set([e]));
|
|
5384
|
-
},
|
|
5357
|
+
}, ee = () => {
|
|
5385
5358
|
if (!c.value) return;
|
|
5386
5359
|
let e = C.value.fields.filter((e) => !b.value.has(e));
|
|
5387
5360
|
if (g.value) {
|
|
@@ -5393,7 +5366,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5393
5366
|
n.size > 0 && (v(() => {
|
|
5394
5367
|
c.value?.setAdvancedFilterModel(t);
|
|
5395
5368
|
}), h(n));
|
|
5396
|
-
},
|
|
5369
|
+
}, L = () => {
|
|
5397
5370
|
if (!c.value) return;
|
|
5398
5371
|
if (g.value) {
|
|
5399
5372
|
for (let e of C.value.fields) _.value.delete(e);
|
|
@@ -5404,12 +5377,12 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5404
5377
|
v(() => {
|
|
5405
5378
|
c.value?.setAdvancedFilterModel(e);
|
|
5406
5379
|
}), h(t);
|
|
5407
|
-
},
|
|
5380
|
+
}, R = () => {
|
|
5408
5381
|
x.value = !1;
|
|
5409
|
-
},
|
|
5382
|
+
}, z = () => {
|
|
5410
5383
|
x.value ||= (A.value = S.value, D(), P(), !0);
|
|
5411
5384
|
};
|
|
5412
|
-
|
|
5385
|
+
V(f, () => {
|
|
5413
5386
|
if (!(g.value && x.value)) {
|
|
5414
5387
|
_.value.clear();
|
|
5415
5388
|
for (let e of C.value.fields) M(e) && _.value.add(e);
|
|
@@ -5420,23 +5393,23 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5420
5393
|
label: N(e),
|
|
5421
5394
|
isSelected: _.value.has(e),
|
|
5422
5395
|
isAvailable: !b.value.has(e)
|
|
5423
|
-
}))),
|
|
5396
|
+
}))), B = r(() => te.value ? ne.value.filter((e) => e.isSelected) : ne.value);
|
|
5424
5397
|
T(() => {
|
|
5425
5398
|
x.value = !1, _.value.clear(), b.value.clear();
|
|
5426
5399
|
});
|
|
5427
|
-
let
|
|
5400
|
+
let re = r(() => _.value.size);
|
|
5428
5401
|
return n({
|
|
5429
5402
|
openForTest: () => {
|
|
5430
5403
|
P(), x.value = !0;
|
|
5431
5404
|
},
|
|
5432
5405
|
selectedValues: _
|
|
5433
|
-
}), (e, n) =>
|
|
5406
|
+
}), (e, n) => U((E(), o("div", {
|
|
5434
5407
|
ref_key: "triggerWrapper",
|
|
5435
5408
|
ref: S,
|
|
5436
5409
|
style: { "padding-bottom": "4px" },
|
|
5437
5410
|
class: "pv-border-bottom",
|
|
5438
|
-
onMouseenter:
|
|
5439
|
-
onClick:
|
|
5411
|
+
onMouseenter: z,
|
|
5412
|
+
onClick: z
|
|
5440
5413
|
}, [u(La, {
|
|
5441
5414
|
config: {
|
|
5442
5415
|
variant: "icon",
|
|
@@ -5445,7 +5418,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5445
5418
|
id: C.value.label,
|
|
5446
5419
|
text: C.value.label,
|
|
5447
5420
|
"class-list": ["pv-menu-nested"],
|
|
5448
|
-
"secondary-text":
|
|
5421
|
+
"secondary-text": re.value || void 0
|
|
5449
5422
|
}, null, 8, [
|
|
5450
5423
|
"id",
|
|
5451
5424
|
"text",
|
|
@@ -5459,8 +5432,8 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5459
5432
|
...I(w)
|
|
5460
5433
|
}
|
|
5461
5434
|
}, {
|
|
5462
|
-
default:
|
|
5463
|
-
x.value &&
|
|
5435
|
+
default: H(() => [
|
|
5436
|
+
x.value && B.value.length > 0 ? (E(), o("ul", Cc, [(E(!0), o(t, null, k(B.value, (e) => (E(), o(t, { key: e.field }, [e.isAvailable ? (E(), o("li", {
|
|
5464
5437
|
key: 0,
|
|
5465
5438
|
"data-active": e.isSelected ? "true" : null
|
|
5466
5439
|
}, [u(La, {
|
|
@@ -5482,14 +5455,14 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5482
5455
|
"disable-interactive": !0,
|
|
5483
5456
|
style: { width: "100%" }
|
|
5484
5457
|
}, {
|
|
5485
|
-
label:
|
|
5458
|
+
label: H(() => [u(La, {
|
|
5486
5459
|
config: { variant: "checkbox" },
|
|
5487
5460
|
id: e.field,
|
|
5488
5461
|
text: e.label,
|
|
5489
5462
|
disabled: !0,
|
|
5490
5463
|
"class-list": ["pv-chart-option pv-flex"]
|
|
5491
5464
|
}, null, 8, ["id", "text"])]),
|
|
5492
|
-
"tooltip-content":
|
|
5465
|
+
"tooltip-content": H(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
5493
5466
|
_: 2
|
|
5494
5467
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
5495
5468
|
x.value && te.value ? (E(), o("div", Ec, [u(bt, { variant: "dark" })])) : a("", !0),
|
|
@@ -5499,12 +5472,12 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5499
5472
|
style: { "padding-top": "8px" },
|
|
5500
5473
|
variant: "select-clear",
|
|
5501
5474
|
disabled: te.value,
|
|
5502
|
-
onHandleSelectAll:
|
|
5503
|
-
onHandleClearAll:
|
|
5475
|
+
onHandleSelectAll: ee,
|
|
5476
|
+
onHandleClearAll: L
|
|
5504
5477
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
5505
5478
|
]),
|
|
5506
5479
|
_: 1
|
|
5507
|
-
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Je), [
|
|
5480
|
+
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Je), [R, { ignore: [".pv-popover"] }]]]);
|
|
5508
5481
|
}
|
|
5509
5482
|
}), Oc = {
|
|
5510
5483
|
key: 0,
|
|
@@ -5565,68 +5538,68 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5565
5538
|
"handle-settings-icon"
|
|
5566
5539
|
],
|
|
5567
5540
|
setup(e, { emit: n }) {
|
|
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:
|
|
5541
|
+
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: ee, isInFilterPanel: L, suggestedValues: R, displayedFilterValues: z, selectedFilterValues: te, showSearchBar: ne, emptyFilterResultsRenderer: B, filterOptionsRenderer: V, filterHeaderRenderer: U, filterFooterRenderer: re, filterOptionsSortDescription: W, filterOptionsSortTooltip: G, filterValueContext: ie, formatDisplayValue: ae, resolvedFilterValueContext: K, isUnresolvedMetadataValue: oe, getLatestFilterValues: se, addSelectedValue: ce, removeSelectedValue: le, handleDropdownOpen: ue, handleDropdownClosed: de, handleSeeMore: q, getColDisplayNameForField: fe, hasMoreOptions: pe, totalOptionCount: me, isAggregate: he, cascadeSelectionState: ge } = xc({
|
|
5569
5542
|
filterColDef: F(d, "filterColDef"),
|
|
5570
5543
|
filterStyle: F(d, "filterStyle"),
|
|
5571
5544
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
5572
5545
|
filterGroupStagedFields: x,
|
|
5573
5546
|
readOnly: F(d, "readOnly")
|
|
5574
|
-
}), { handleFocusUpdate:
|
|
5547
|
+
}), { handleFocusUpdate: _e, isFocused: ve, removeFocus: ye, isFocusable: be, canRemoveFocus: J } = $o(), Y = (e) => {
|
|
5575
5548
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
5576
5549
|
if (e.id.startsWith("__")) {
|
|
5577
5550
|
let t = e.id.slice(2).split("__");
|
|
5578
5551
|
if (t.length >= 2) return t[1];
|
|
5579
5552
|
}
|
|
5580
5553
|
return e.id;
|
|
5581
|
-
},
|
|
5582
|
-
if (
|
|
5554
|
+
}, xe = r(() => {
|
|
5555
|
+
if (be(As(d.filterColDef) ? Ds(d.filterColDef) : [N.value])) return {
|
|
5583
5556
|
icon: "focus",
|
|
5584
|
-
isDisabled: (e) => !
|
|
5557
|
+
isDisabled: (e) => !be([e.context?.colField || N.value]),
|
|
5585
5558
|
tooltipText: (e) => {
|
|
5586
5559
|
let t = e.context?.colField || N.value;
|
|
5587
|
-
if (!
|
|
5588
|
-
let n =
|
|
5589
|
-
return n && !
|
|
5560
|
+
if (!be([t])) return `Group by ${fe(t)} to enable ${d.focusText}`;
|
|
5561
|
+
let n = ve(he.value ? Y(e) : e.id, t);
|
|
5562
|
+
return n && !J() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
5590
5563
|
},
|
|
5591
5564
|
action: (e) => {
|
|
5592
|
-
e && !C.value.includes(e.id) &&
|
|
5565
|
+
e && !C.value.includes(e.id) && ce(e.id, e.context?.colField);
|
|
5593
5566
|
let t = e.context?.colField || N.value;
|
|
5594
|
-
|
|
5567
|
+
_e(he.value ? Y(e) : e.id, t);
|
|
5595
5568
|
},
|
|
5596
5569
|
alwaysShow: (e) => {
|
|
5597
5570
|
let t = e.context?.colField || N.value;
|
|
5598
|
-
return
|
|
5571
|
+
return ve(he.value ? Y(e) : e.id, t);
|
|
5599
5572
|
}
|
|
5600
5573
|
};
|
|
5601
|
-
}),
|
|
5574
|
+
}), Se = (e) => {
|
|
5602
5575
|
if (!e) return null;
|
|
5603
|
-
if (!
|
|
5604
|
-
let t =
|
|
5576
|
+
if (!he.value) return e;
|
|
5577
|
+
let t = K(e);
|
|
5605
5578
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
5606
5579
|
if (e.startsWith("__")) {
|
|
5607
5580
|
let t = e.slice(2).split("__");
|
|
5608
5581
|
if (t.length >= 2) return t[1];
|
|
5609
5582
|
}
|
|
5610
5583
|
return e;
|
|
5611
|
-
},
|
|
5612
|
-
|
|
5613
|
-
let t =
|
|
5614
|
-
|
|
5615
|
-
},
|
|
5616
|
-
|
|
5617
|
-
},
|
|
5584
|
+
}, X = (e) => {
|
|
5585
|
+
le(e);
|
|
5586
|
+
let t = K(e)?.colField || N.value, n = Se(e);
|
|
5587
|
+
ve(n, t) && J() && ye(n);
|
|
5588
|
+
}, Ce = m(Po, O(!1)), we = r(() => !!$(d.filterColDef).filterGroup && Ce.value), Te = () => {
|
|
5589
|
+
ue(), se(!0);
|
|
5590
|
+
}, Ee = () => {
|
|
5618
5591
|
v(() => {
|
|
5619
|
-
|
|
5592
|
+
de(), f("filter-closed");
|
|
5620
5593
|
});
|
|
5621
|
-
},
|
|
5622
|
-
let t =
|
|
5623
|
-
return
|
|
5624
|
-
},
|
|
5625
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(
|
|
5594
|
+
}, De = (e) => {
|
|
5595
|
+
let t = K(e)?.colField || N.value;
|
|
5596
|
+
return ve(Se(e), t);
|
|
5597
|
+
}, Oe = r(() => S.value > 0 ? !0 : he.value ? ge.value.length > 0 : C.value.length > 0);
|
|
5598
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(L) && I(C).length > 0 ? (E(), o("ul", Oc, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(ee)}-${n}` }, [I(oe)(n) ? a("", !0) : (E(), o("li", kc, [u(Cn, {
|
|
5626
5599
|
label: I(ae)(n) || "",
|
|
5627
|
-
showClear: !e.readOnly && (!
|
|
5600
|
+
showClear: !e.readOnly && (!De(n) || I(J)()),
|
|
5628
5601
|
disabled: e.readOnly,
|
|
5629
|
-
onHandleClose: (e) =>
|
|
5602
|
+
onHandleClose: (e) => X(n)
|
|
5630
5603
|
}, null, 8, [
|
|
5631
5604
|
"label",
|
|
5632
5605
|
"showClear",
|
|
@@ -5638,63 +5611,63 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5638
5611
|
readOnly: e.readOnly,
|
|
5639
5612
|
searchInput: I(D),
|
|
5640
5613
|
"onUpdate:searchInput": r[2] ||= (e) => h(D) ? D.value = e : null,
|
|
5641
|
-
selectionState: I(
|
|
5642
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
5643
|
-
"data-horizontal-filter-field": I(
|
|
5644
|
-
label: I(
|
|
5614
|
+
selectionState: I(ge),
|
|
5615
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(ge) ? ge.value = e : null,
|
|
5616
|
+
"data-horizontal-filter-field": I(L) ? void 0 : I(N),
|
|
5617
|
+
label: I(L) ? "" : I(ee),
|
|
5645
5618
|
highlightSearchText: !0,
|
|
5646
|
-
icon: I(
|
|
5647
|
-
variant: I(
|
|
5648
|
-
counterPosition: !I(
|
|
5649
|
-
showClear: !I(
|
|
5619
|
+
icon: I(L) && !e.readOnly ? "add-circle" : void 0,
|
|
5620
|
+
variant: I(L) ? "ghost" : "secondary",
|
|
5621
|
+
counterPosition: !I(L) && Oe.value ? void 0 : "none",
|
|
5622
|
+
showClear: !I(L),
|
|
5650
5623
|
showSearchInput: I(ne),
|
|
5651
|
-
showDropdown: !I(
|
|
5652
|
-
overlayTrigger: I(
|
|
5653
|
-
options: I(
|
|
5654
|
-
optionsRenderer: I(
|
|
5655
|
-
optionsAction:
|
|
5624
|
+
showDropdown: !I(L),
|
|
5625
|
+
overlayTrigger: I(L),
|
|
5626
|
+
options: I(z),
|
|
5627
|
+
optionsRenderer: I(V),
|
|
5628
|
+
optionsAction: xe.value,
|
|
5656
5629
|
popoverCssProperties: {
|
|
5657
5630
|
maxHeight: "400px",
|
|
5658
|
-
maxWidth: I(
|
|
5631
|
+
maxWidth: I(L) ? "300px" : "400px",
|
|
5659
5632
|
overflowX: "auto",
|
|
5660
5633
|
width: "auto"
|
|
5661
5634
|
},
|
|
5662
|
-
disableClearIcon: !!I(
|
|
5663
|
-
disableDropdownIcon: !!I(
|
|
5635
|
+
disableClearIcon: !!I(L) || e.readOnly,
|
|
5636
|
+
disableDropdownIcon: !!I(L),
|
|
5664
5637
|
groupings: ["preferences", "suggestions"],
|
|
5665
5638
|
isLoading: I(w),
|
|
5666
5639
|
isSeeMoreLoading: I(T),
|
|
5667
|
-
hasMoreOptions: I(
|
|
5668
|
-
totalOptionCount: I(
|
|
5669
|
-
enableCascadeSelection: I(
|
|
5670
|
-
enableChildExpansion: I(
|
|
5671
|
-
parentSelectsAllChildren: I(
|
|
5672
|
-
countSelectedParents: I(
|
|
5640
|
+
hasMoreOptions: I(pe),
|
|
5641
|
+
totalOptionCount: I(me),
|
|
5642
|
+
enableCascadeSelection: I(he),
|
|
5643
|
+
enableChildExpansion: I(he),
|
|
5644
|
+
parentSelectsAllChildren: I(he),
|
|
5645
|
+
countSelectedParents: I(he),
|
|
5673
5646
|
additionalCounter: S.value,
|
|
5674
5647
|
slotContext: {
|
|
5675
5648
|
gridApi: I(j),
|
|
5676
5649
|
filterColDef: e.filterColDef,
|
|
5677
5650
|
rowsLoading: I(A)
|
|
5678
5651
|
},
|
|
5679
|
-
onDropdownOpen:
|
|
5680
|
-
onDropdownClosed:
|
|
5681
|
-
onSeeMore: I(
|
|
5652
|
+
onDropdownOpen: Te,
|
|
5653
|
+
onDropdownClosed: Ee,
|
|
5654
|
+
onSeeMore: I(q)
|
|
5682
5655
|
}, c({
|
|
5683
|
-
preferences:
|
|
5656
|
+
preferences: H(() => [s("div", Ac, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(vi), {
|
|
5684
5657
|
variant: "dark",
|
|
5685
5658
|
size: "sm",
|
|
5686
5659
|
"use-teleport": !0
|
|
5687
5660
|
}, {
|
|
5688
|
-
trigger:
|
|
5661
|
+
trigger: H(() => [u(mn, {
|
|
5689
5662
|
size: "md",
|
|
5690
5663
|
variant: "ghost",
|
|
5691
|
-
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(
|
|
5664
|
+
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(ee)),
|
|
5692
5665
|
"right-icon": "sliders-horizontal"
|
|
5693
5666
|
})]),
|
|
5694
|
-
content:
|
|
5667
|
+
content: H(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
5695
5668
|
_: 1
|
|
5696
5669
|
})])]),
|
|
5697
|
-
suggestions:
|
|
5670
|
+
suggestions: H(() => [s("div", jc, [u(I(vi), {
|
|
5698
5671
|
variant: "dark",
|
|
5699
5672
|
disableInteractive: !0,
|
|
5700
5673
|
position: "top-left",
|
|
@@ -5702,37 +5675,37 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5702
5675
|
"use-teleport": !0,
|
|
5703
5676
|
style: { "--max-width": "200px" }
|
|
5704
5677
|
}, c({
|
|
5705
|
-
trigger:
|
|
5678
|
+
trigger: H(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(G) ? "suggested-title-label" : ""]) }, P(I(W)), 3)]),
|
|
5706
5679
|
_: 2
|
|
5707
|
-
}, [I(
|
|
5680
|
+
}, [I(G) ? {
|
|
5708
5681
|
name: "content",
|
|
5709
|
-
fn:
|
|
5682
|
+
fn: H(() => [l(P(I(G)), 1)]),
|
|
5710
5683
|
key: "0"
|
|
5711
5684
|
} : void 0]), 1024)])]),
|
|
5712
5685
|
_: 2
|
|
5713
5686
|
}, [
|
|
5714
|
-
I(
|
|
5687
|
+
I(U) || we.value ? {
|
|
5715
5688
|
name: "header",
|
|
5716
|
-
fn:
|
|
5689
|
+
fn: H((t) => [we.value ? (E(), i(Dc, {
|
|
5717
5690
|
key: 0,
|
|
5718
5691
|
ref_key: "filterGroupMenuRef",
|
|
5719
5692
|
ref: g,
|
|
5720
5693
|
class: "pv-stack-8",
|
|
5721
5694
|
"filter-col-def": e.filterColDef
|
|
5722
|
-
}, null, 8, ["filter-col-def"])) : a("", !0), I(
|
|
5695
|
+
}, null, 8, ["filter-col-def"])) : a("", !0), I(U) ? (E(), i(M(I(U)), b(_({ key: 1 }, t)), null, 16)) : a("", !0)]),
|
|
5723
5696
|
key: "0"
|
|
5724
5697
|
} : void 0,
|
|
5725
|
-
I(
|
|
5698
|
+
I(B) ? {
|
|
5726
5699
|
name: "no-results",
|
|
5727
|
-
fn:
|
|
5700
|
+
fn: H((e) => [(E(), i(M(I(B)), b(p(e)), null, 16))]),
|
|
5728
5701
|
key: "1"
|
|
5729
5702
|
} : void 0,
|
|
5730
|
-
I(
|
|
5703
|
+
I(re) ? {
|
|
5731
5704
|
name: "footer",
|
|
5732
|
-
fn:
|
|
5705
|
+
fn: H((e) => [(E(), i(M(I(re)), b(p(e)), null, 16))]),
|
|
5733
5706
|
key: "2"
|
|
5734
5707
|
} : void 0
|
|
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(
|
|
5708
|
+
]), 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(L) && !e.readOnly ? (E(), o("div", Mc, [I(R).length > 0 ? (E(), o("div", Nc, [s("ul", Pc, [u(I(vi), {
|
|
5736
5709
|
variant: "dark",
|
|
5737
5710
|
disableInteractive: !0,
|
|
5738
5711
|
position: "bottom-left",
|
|
@@ -5740,14 +5713,14 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5740
5713
|
"use-teleport": !0,
|
|
5741
5714
|
style: { "--max-width": "200px" }
|
|
5742
5715
|
}, c({
|
|
5743
|
-
trigger:
|
|
5716
|
+
trigger: H(() => [s("li", Fc, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(G) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
5744
5717
|
_: 2
|
|
5745
|
-
}, [I(
|
|
5718
|
+
}, [I(G) ? {
|
|
5746
5719
|
name: "content",
|
|
5747
|
-
fn:
|
|
5720
|
+
fn: H(() => [l(P(I(G)), 1)]),
|
|
5748
5721
|
key: "0"
|
|
5749
|
-
} : void 0]), 1024), (E(!0), o(t, null, k(I(
|
|
5750
|
-
key: `${I(
|
|
5722
|
+
} : void 0]), 1024), (E(!0), o(t, null, k(I(R).filter((e) => e !== "" && e != null).slice(0, Ic), (e) => (E(), o("li", {
|
|
5723
|
+
key: `${I(ee)}-${e}-suggest`,
|
|
5751
5724
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
5752
5725
|
style: {
|
|
5753
5726
|
"max-width": "100%",
|
|
@@ -5756,7 +5729,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5756
5729
|
}, [u(I(Mi), {
|
|
5757
5730
|
disabled: I(w),
|
|
5758
5731
|
label: I(ae)(e) || "",
|
|
5759
|
-
onHandleClick: (t) => I(
|
|
5732
|
+
onHandleClick: (t) => I(ce)(e, I(ie)(I(N), e)?.colField)
|
|
5760
5733
|
}, null, 8, [
|
|
5761
5734
|
"disabled",
|
|
5762
5735
|
"label",
|
|
@@ -5808,41 +5781,41 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5808
5781
|
let n = As(e) ? Ds(e) : [e.field || ""];
|
|
5809
5782
|
if (f.value) {
|
|
5810
5783
|
let e = /* @__PURE__ */ new Set();
|
|
5811
|
-
return
|
|
5784
|
+
return R(t, e), n.some((t) => e.has(t));
|
|
5812
5785
|
}
|
|
5813
5786
|
let r = t;
|
|
5814
5787
|
return n.some((e) => !!r[e]);
|
|
5815
5788
|
}, 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) => {
|
|
5816
5789
|
let n = As(e), r = As(t);
|
|
5817
5790
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
5818
|
-
})), F = r(() => N.value),
|
|
5791
|
+
})), F = r(() => N.value), ee = r(() => {
|
|
5819
5792
|
let e = D.value?.trim().toLowerCase() || "";
|
|
5820
5793
|
return !e || e === "" ? F.value : c.value.filter((t) => {
|
|
5821
5794
|
let n = t.headerName?.toLowerCase() || t.field?.toLowerCase();
|
|
5822
5795
|
return n ? n.includes(e) : !1;
|
|
5823
5796
|
});
|
|
5824
|
-
}),
|
|
5797
|
+
}), L = r(() => {
|
|
5825
5798
|
let e = [...N.value].slice(0, p.maxHorizontalFilters);
|
|
5826
5799
|
return d.value ? [...e.slice(0, p.maxHorizontalFilters - 1), d.value] : e;
|
|
5827
|
-
}),
|
|
5800
|
+
}), R = (e, t) => {
|
|
5828
5801
|
if (!e || typeof e != "object") return;
|
|
5829
5802
|
let n = e;
|
|
5830
5803
|
if (n.filterType && n.filterType !== "join" && n.colId) {
|
|
5831
5804
|
t.add(n.colId);
|
|
5832
5805
|
return;
|
|
5833
5806
|
}
|
|
5834
|
-
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) =>
|
|
5835
|
-
},
|
|
5807
|
+
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => R(e, t));
|
|
5808
|
+
}, z = r(() => {
|
|
5836
5809
|
let e = _.value;
|
|
5837
5810
|
if (f.value && n.value) {
|
|
5838
5811
|
let t = /* @__PURE__ */ new Set();
|
|
5839
|
-
return
|
|
5812
|
+
return R(e, t), t.size;
|
|
5840
5813
|
}
|
|
5841
5814
|
let t = _.value || {};
|
|
5842
5815
|
return Object.keys(t).length;
|
|
5843
5816
|
}), te = O(!1), ne = () => {
|
|
5844
5817
|
te.value = !0;
|
|
5845
|
-
},
|
|
5818
|
+
}, B = () => {
|
|
5846
5819
|
if (n.value) {
|
|
5847
5820
|
te.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
5848
5821
|
for (let e of F.value) {
|
|
@@ -5856,17 +5829,17 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5856
5829
|
});
|
|
5857
5830
|
}
|
|
5858
5831
|
}
|
|
5859
|
-
}, { clearAllFocuses:
|
|
5860
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
5861
|
-
},
|
|
5832
|
+
}, { clearAllFocuses: V } = $o(), U = () => {
|
|
5833
|
+
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, V(), T.value = !1);
|
|
5834
|
+
}, re = () => {
|
|
5862
5835
|
w.value = !1, D.value = "";
|
|
5863
5836
|
}, W = () => {
|
|
5864
|
-
b(), g.value = null,
|
|
5865
|
-
},
|
|
5866
|
-
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null,
|
|
5837
|
+
b(), g.value = null, re();
|
|
5838
|
+
}, G = () => {
|
|
5839
|
+
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, re();
|
|
5867
5840
|
};
|
|
5868
5841
|
return (e, r) => (E(), o(t, null, [s("div", Rc, [
|
|
5869
|
-
(E(!0), o(t, null, k(
|
|
5842
|
+
(E(!0), o(t, null, k(L.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(Lc, {
|
|
5870
5843
|
key: 0,
|
|
5871
5844
|
"enable-focus-view": p.enableFocusView,
|
|
5872
5845
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -5884,19 +5857,19 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5884
5857
|
s("div", zc, [p.enableVerticalPanel ? (E(), i(I(mn), {
|
|
5885
5858
|
key: 0,
|
|
5886
5859
|
label: "All Filters",
|
|
5887
|
-
onClick:
|
|
5860
|
+
onClick: B,
|
|
5888
5861
|
variant: "ghost",
|
|
5889
5862
|
"left-icon": "filter"
|
|
5890
|
-
})) : a("", !0),
|
|
5863
|
+
})) : a("", !0), z.value > 0 && !p.readOnly ? (E(), o("button", {
|
|
5891
5864
|
key: 1,
|
|
5892
5865
|
class: "pv-button-ghost",
|
|
5893
5866
|
onClick: r[1] ||= (e) => T.value = !0
|
|
5894
5867
|
}, [
|
|
5895
5868
|
u(I(sn), { name: "close" }),
|
|
5896
5869
|
r[13] ||= l(" Clear All Filters ", -1),
|
|
5897
|
-
|
|
5870
|
+
z.value > 0 ? (E(), i(I(dn), {
|
|
5898
5871
|
key: 0,
|
|
5899
|
-
value:
|
|
5872
|
+
value: z.value,
|
|
5900
5873
|
variant: "tertiary"
|
|
5901
5874
|
}, null, 8, ["value"])) : a("", !0)
|
|
5902
5875
|
])) : a("", !0)]),
|
|
@@ -5906,13 +5879,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5906
5879
|
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
5907
5880
|
class: "pv-drawer pv-surface",
|
|
5908
5881
|
"close-on-click-outside": !0,
|
|
5909
|
-
onClickOutside: r[10] ||= (e) =>
|
|
5882
|
+
onClickOutside: r[10] ||= (e) => G(),
|
|
5910
5883
|
style: {
|
|
5911
5884
|
"max-width": "450px",
|
|
5912
5885
|
"z-index": "10"
|
|
5913
5886
|
}
|
|
5914
5887
|
}, {
|
|
5915
|
-
header:
|
|
5888
|
+
header: H(() => [s("div", Bc, [s("p", Vc, "All Filters (" + P(F.value.length) + ")", 1), s("button", {
|
|
5916
5889
|
class: "pv-button-ghost",
|
|
5917
5890
|
"aria-label": "Close",
|
|
5918
5891
|
onClick: r[2] ||= (e) => W()
|
|
@@ -5921,14 +5894,14 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5921
5894
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
5922
5895
|
placeholder: "Search Filters"
|
|
5923
5896
|
}, null, 8, ["modelValue"])]),
|
|
5924
|
-
footer:
|
|
5897
|
+
footer: H(() => [s("div", qc, [p.readOnly ? (E(), i(I(mn), {
|
|
5925
5898
|
key: 1,
|
|
5926
5899
|
variant: "ghost",
|
|
5927
5900
|
label: "Close",
|
|
5928
5901
|
onClick: r[8] ||= (e) => W()
|
|
5929
5902
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
5930
5903
|
class: "pv-button-ghost",
|
|
5931
|
-
onClick: r[5] ||= (e) =>
|
|
5904
|
+
onClick: r[5] ||= (e) => U()
|
|
5932
5905
|
}, "Clear All"), s("div", Jc, [u(I(mn), {
|
|
5933
5906
|
variant: "ghost",
|
|
5934
5907
|
label: "Cancel",
|
|
@@ -5937,16 +5910,16 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5937
5910
|
key: 0,
|
|
5938
5911
|
variant: "primary",
|
|
5939
5912
|
label: "Apply",
|
|
5940
|
-
onClick: r[7] ||= (e) =>
|
|
5913
|
+
onClick: r[7] ||= (e) => G()
|
|
5941
5914
|
})) : (E(), i(I(mn), {
|
|
5942
5915
|
key: 1,
|
|
5943
5916
|
variant: "primary",
|
|
5944
5917
|
label: "No Changes",
|
|
5945
5918
|
disabled: ""
|
|
5946
5919
|
}))])], 64))])]),
|
|
5947
|
-
default:
|
|
5920
|
+
default: H(() => [s("div", Hc, [s("div", Uc, [(E(!0), o(t, null, k(ee.value, (t, c) => (E(), o("div", {
|
|
5948
5921
|
key: t.field,
|
|
5949
|
-
class: y([{ "pv-border-bottom": c <
|
|
5922
|
+
class: y([{ "pv-border-bottom": c < ee.value.length - 1 }, "pv-stack-12"])
|
|
5950
5923
|
}, [s("details", Wc, [s("summary", Gc, [s("span", Kc, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(Lc, {
|
|
5951
5924
|
key: 0,
|
|
5952
5925
|
"filter-style": "vertical",
|
|
@@ -5972,8 +5945,8 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5972
5945
|
header: "Clear All Filters",
|
|
5973
5946
|
style: { top: "50%" }
|
|
5974
5947
|
}, {
|
|
5975
|
-
body:
|
|
5976
|
-
footer:
|
|
5948
|
+
body: H(() => [...r[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
5949
|
+
footer: H(() => [s("div", Yc, [u(I(mn), {
|
|
5977
5950
|
label: "Cancel",
|
|
5978
5951
|
variant: "secondary",
|
|
5979
5952
|
size: "lg",
|
|
@@ -5982,7 +5955,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
5982
5955
|
label: "Clear All Filters",
|
|
5983
5956
|
variant: "primary",
|
|
5984
5957
|
size: "lg",
|
|
5985
|
-
onClick:
|
|
5958
|
+
onClick: U
|
|
5986
5959
|
})])]),
|
|
5987
5960
|
_: 1
|
|
5988
5961
|
}, 8, ["modelValue"])], 64));
|
|
@@ -6021,7 +5994,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6021
5994
|
}, I = () => {
|
|
6022
5995
|
f.value && l.params.progressSort(!1);
|
|
6023
5996
|
};
|
|
6024
|
-
|
|
5997
|
+
V(D, (e) => {
|
|
6025
5998
|
if (!e) return;
|
|
6026
5999
|
let t = l.params.column.getAggFunc();
|
|
6027
6000
|
if (e.id === t) return;
|
|
@@ -6037,10 +6010,10 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6037
6010
|
}
|
|
6038
6011
|
F(l.params);
|
|
6039
6012
|
});
|
|
6040
|
-
function
|
|
6013
|
+
function ee(e) {
|
|
6041
6014
|
return F(e), !0;
|
|
6042
6015
|
}
|
|
6043
|
-
return t({ refresh:
|
|
6016
|
+
return t({ refresh: ee }), (e, t) => (E(), o("div", {
|
|
6044
6017
|
class: "ag-custom-header-cell pv-flex pv-full-width pv-space-between",
|
|
6045
6018
|
style: x(k.value),
|
|
6046
6019
|
onClick: I
|
|
@@ -6065,7 +6038,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6065
6038
|
variant: "ghost",
|
|
6066
6039
|
size: "lg",
|
|
6067
6040
|
label: p.value || "",
|
|
6068
|
-
onClick: t[1] ||=
|
|
6041
|
+
onClick: t[1] ||= re(() => {}, ["stop"])
|
|
6069
6042
|
}, null, 8, [
|
|
6070
6043
|
"modelValue",
|
|
6071
6044
|
"options",
|
|
@@ -6085,7 +6058,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6085
6058
|
variant: "ghost",
|
|
6086
6059
|
"left-icon": "menu",
|
|
6087
6060
|
ariaLabel: "Column menu",
|
|
6088
|
-
onClick:
|
|
6061
|
+
onClick: re(N, ["stop", "prevent"])
|
|
6089
6062
|
})], 4)])) : a("", !0)], 4));
|
|
6090
6063
|
}
|
|
6091
6064
|
}), [["__scopeId", "data-v-385ad98a"]]), el = {
|
|
@@ -6103,13 +6076,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6103
6076
|
rangeSelectionBorderStyle: "solid",
|
|
6104
6077
|
menuBackgroundColor: "white",
|
|
6105
6078
|
accentColor: "#36C5BA"
|
|
6106
|
-
}, tl =
|
|
6079
|
+
}, tl = X.withParams({
|
|
6107
6080
|
...el,
|
|
6108
6081
|
headerRowBorder: !0,
|
|
6109
6082
|
rowHoverColor: "#F7F8F8",
|
|
6110
6083
|
wrapperBorder: !0,
|
|
6111
6084
|
wrapperBorderRadius: "8px"
|
|
6112
|
-
}), nl =
|
|
6085
|
+
}), nl = X.withParams({
|
|
6113
6086
|
...el,
|
|
6114
6087
|
headerRowBorder: !1,
|
|
6115
6088
|
rowHoverColor: "transparent",
|
|
@@ -6120,7 +6093,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6120
6093
|
rowHeight: "50px"
|
|
6121
6094
|
}), rl = {
|
|
6122
6095
|
"pv-data-table-base": tl,
|
|
6123
|
-
"pv-data-table-grouped":
|
|
6096
|
+
"pv-data-table-grouped": X.withParams({
|
|
6124
6097
|
...el,
|
|
6125
6098
|
headerRowBorder: !0,
|
|
6126
6099
|
rowHoverColor: "#F7F8F8",
|
|
@@ -6154,7 +6127,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6154
6127
|
class: "pv-icon-24"
|
|
6155
6128
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", al, [s("button", {
|
|
6156
6129
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
6157
|
-
onClick:
|
|
6130
|
+
onClick: re(i, ["prevent"]),
|
|
6158
6131
|
disabled: r.value
|
|
6159
6132
|
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, ol)])]));
|
|
6160
6133
|
}
|
|
@@ -6165,7 +6138,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6165
6138
|
__name: "PaginationPanel",
|
|
6166
6139
|
props: { panelSize: { default: "xl" } },
|
|
6167
6140
|
setup(e) {
|
|
6168
|
-
|
|
6141
|
+
me.registerModules([q]);
|
|
6169
6142
|
let n = m(fo, O(null)), a = m(So, O(1)), s = m(Co, O(0)), c = e, l = r(() => {
|
|
6170
6143
|
let e = s.value, t = a.value;
|
|
6171
6144
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
@@ -6509,54 +6482,54 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6509
6482
|
],
|
|
6510
6483
|
setup(e, { expose: t, emit: c }) {
|
|
6511
6484
|
let d = [
|
|
6512
|
-
Z,
|
|
6513
6485
|
Ce,
|
|
6514
|
-
ae,
|
|
6515
6486
|
we,
|
|
6516
|
-
|
|
6487
|
+
ae,
|
|
6517
6488
|
Te,
|
|
6518
|
-
|
|
6489
|
+
oe,
|
|
6519
6490
|
Ee,
|
|
6520
|
-
De,
|
|
6521
6491
|
se,
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
Pe,
|
|
6528
|
-
Ie,
|
|
6529
|
-
X,
|
|
6492
|
+
De,
|
|
6493
|
+
Oe,
|
|
6494
|
+
ce,
|
|
6495
|
+
ue,
|
|
6496
|
+
fe,
|
|
6530
6497
|
Ae,
|
|
6531
|
-
_e,
|
|
6532
|
-
Me,
|
|
6533
|
-
Ne,
|
|
6534
|
-
ve,
|
|
6535
|
-
he,
|
|
6536
|
-
ge,
|
|
6537
|
-
Le,
|
|
6538
6498
|
be,
|
|
6499
|
+
Ie,
|
|
6500
|
+
Fe,
|
|
6501
|
+
Le,
|
|
6539
6502
|
xe,
|
|
6540
|
-
|
|
6503
|
+
je,
|
|
6504
|
+
ve,
|
|
6505
|
+
Ne,
|
|
6506
|
+
Pe,
|
|
6507
|
+
ye,
|
|
6508
|
+
ge,
|
|
6509
|
+
_e,
|
|
6510
|
+
Re,
|
|
6541
6511
|
Y,
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6512
|
+
Se,
|
|
6513
|
+
K,
|
|
6514
|
+
J,
|
|
6515
|
+
pe,
|
|
6516
|
+
he,
|
|
6517
|
+
de,
|
|
6518
|
+
le,
|
|
6519
|
+
Me
|
|
6547
6520
|
];
|
|
6548
|
-
|
|
6521
|
+
ke.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");
|
|
6549
6522
|
let f = e;
|
|
6550
|
-
f.debugMode && d.push(
|
|
6523
|
+
f.debugMode && d.push(ze);
|
|
6551
6524
|
let p = r(() => f.layout ? {} : {
|
|
6552
6525
|
height: f.containerHeight,
|
|
6553
6526
|
minHeight: f.containerMinHeight
|
|
6554
|
-
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme :
|
|
6555
|
-
if (!
|
|
6556
|
-
e.success({ rowData: [] }),
|
|
6527
|
+
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : q.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) => {
|
|
6528
|
+
if (!Ve.value) {
|
|
6529
|
+
e.success({ rowData: [] }), me.value = !0;
|
|
6557
6530
|
return;
|
|
6558
6531
|
}
|
|
6559
|
-
|
|
6532
|
+
X.value = !0;
|
|
6560
6533
|
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;
|
|
6561
6534
|
if (i > 0 && r === 0) {
|
|
6562
6535
|
let t = e.request.rowGroupCols[0].id;
|
|
@@ -6623,7 +6596,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6623
6596
|
e.request.filterModel = Js(ne, t, s);
|
|
6624
6597
|
}
|
|
6625
6598
|
e.success = (e) => {
|
|
6626
|
-
if (
|
|
6599
|
+
if (X.value = !1, f.enableFocusView && at.value.length > 0 && it.value && e.rowData) {
|
|
6627
6600
|
let n = xs(e.rowData, it.value, at.value);
|
|
6628
6601
|
if (n) {
|
|
6629
6602
|
e.rowData = n, t(e);
|
|
@@ -6632,11 +6605,11 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6632
6605
|
}
|
|
6633
6606
|
t(e);
|
|
6634
6607
|
}, e.fail = () => {
|
|
6635
|
-
|
|
6608
|
+
X.value = !1, n();
|
|
6636
6609
|
}, f.serverSideRowHandler?.(e);
|
|
6637
6610
|
} } : null, M = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
6638
6611
|
let t = [], n = { ...Je.value };
|
|
6639
|
-
t = !
|
|
6612
|
+
t = !me.value && W ? uc(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await et(e.colDef, {
|
|
6640
6613
|
api: e.api,
|
|
6641
6614
|
filterModel: n,
|
|
6642
6615
|
useStaged: !1
|
|
@@ -6646,7 +6619,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6646
6619
|
return !t.group || !n ? !1 : ct.value.some((e) => {
|
|
6647
6620
|
if (e.field === n) return !0;
|
|
6648
6621
|
});
|
|
6649
|
-
},
|
|
6622
|
+
}, ee = (() => {
|
|
6650
6623
|
let e = {
|
|
6651
6624
|
suppressHeaderFilterButton: !f.enableInlineFilters,
|
|
6652
6625
|
editable: !1,
|
|
@@ -6664,7 +6637,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6664
6637
|
component: Fs,
|
|
6665
6638
|
params: e
|
|
6666
6639
|
};
|
|
6667
|
-
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber &&
|
|
6640
|
+
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && q.value.length === 0) {
|
|
6668
6641
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
6669
6642
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
6670
6643
|
component: pl,
|
|
@@ -6674,18 +6647,18 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6674
6647
|
}
|
|
6675
6648
|
};
|
|
6676
6649
|
return f.defaultColDefOverrides && Object.assign(e, f.defaultColDefOverrides), e;
|
|
6677
|
-
})(),
|
|
6650
|
+
})(), L = O(void 0), R = r(() => (e) => {
|
|
6678
6651
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
6679
6652
|
let t = [];
|
|
6680
6653
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
6681
|
-
}),
|
|
6654
|
+
}), z = {
|
|
6682
6655
|
name: "Column Filter",
|
|
6683
6656
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
6684
6657
|
action: function(e) {
|
|
6685
6658
|
let t = e.column?.getColId();
|
|
6686
6659
|
if (e.column && _t(e.column) && (t = lt.value?.getColId() || ""), !It(t)) {
|
|
6687
6660
|
let n = e.api.getColumn(t)?.getColDef();
|
|
6688
|
-
n && (
|
|
6661
|
+
n && (G.value = n, v(() => {
|
|
6689
6662
|
It(t);
|
|
6690
6663
|
}));
|
|
6691
6664
|
}
|
|
@@ -6709,15 +6682,15 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6709
6682
|
j && M && Ys(e) && (t = Xs(e, M));
|
|
6710
6683
|
let n = e.context;
|
|
6711
6684
|
return n && (t = te(t, n)), t;
|
|
6712
|
-
}).filter((e) => e != null) || [],
|
|
6713
|
-
for (let e of ne) for (let t of Ds(e))
|
|
6714
|
-
let W = Hs(f.initialGridState, ne, f.enableAdvancedFilter),
|
|
6715
|
-
if (
|
|
6716
|
-
let e =
|
|
6685
|
+
}).filter((e) => e != null) || [], re = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
6686
|
+
for (let e of ne) for (let t of Ds(e)) re.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
6687
|
+
let W = Hs(f.initialGridState, ne, f.enableAdvancedFilter), G = O(null), q = O([]), me = m(bo, O(!1)), X = O(!1), Be = r(() => {
|
|
6688
|
+
if (q.value.length > 0) {
|
|
6689
|
+
let e = q.value[0], t = ne.find((t) => t.field === e), n = Je.value, r = !n;
|
|
6717
6690
|
if (!r && hc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
6718
6691
|
}
|
|
6719
6692
|
return null;
|
|
6720
|
-
}),
|
|
6693
|
+
}), Ve = r(() => Ue.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : Be.value === null), He = r(() => Be.value ? `Select at least one value for "${Be.value}" to view data.` : "Select a filter to view data."), Z = N(null), Q = 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;
|
|
6721
6694
|
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], () => {
|
|
6722
6695
|
T("filter-metadata-changed", {
|
|
6723
6696
|
filterValueMap: Xe.value,
|
|
@@ -6728,35 +6701,35 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6728
6701
|
debounce: 250
|
|
6729
6702
|
});
|
|
6730
6703
|
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);
|
|
6731
|
-
D(co, Ue), D(lo, qe), D(uo,
|
|
6704
|
+
D(co, Ue), D(lo, qe), D(uo, Q), D(fo, Z), D(po, rt), D(mo, G), D(ho, ot), D(go, st), D(_o, q), D(vo, lt), D(yo, ut), D(bo, me), D(xo, X), D(So, dt), D(Co, ft), D(Po, r(() => f.enableAdvancedFilter));
|
|
6732
6705
|
let pt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !at.value.length && !it.value ? f.rowData : xs(f.rowData, it.value, at.value));
|
|
6733
|
-
|
|
6706
|
+
V(() => at.value, (e) => {
|
|
6734
6707
|
T("focus-update", {
|
|
6735
6708
|
filterField: it.value,
|
|
6736
6709
|
focuses: e
|
|
6737
6710
|
});
|
|
6738
|
-
}),
|
|
6739
|
-
if (!
|
|
6711
|
+
}), V(k, (e) => {
|
|
6712
|
+
if (!Z.value) return;
|
|
6740
6713
|
let t = ne.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
6741
|
-
t.length > 0 &&
|
|
6714
|
+
t.length > 0 && Z.value.setColumnsVisible(t, e);
|
|
6742
6715
|
});
|
|
6743
6716
|
let mt = (e) => {
|
|
6744
|
-
|
|
6745
|
-
let t =
|
|
6746
|
-
if (f.hideAllRowGroupedColumns &&
|
|
6717
|
+
Z.value = e.api;
|
|
6718
|
+
let t = q.value.find((e) => !ne.find((t) => t.field === e)?.hide), n = !t && q.value.length > 0 ? ne.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
6719
|
+
if (f.hideAllRowGroupedColumns && q.value.forEach((e) => i.push(e)), r) {
|
|
6747
6720
|
let t = e.api.getColumn(r);
|
|
6748
6721
|
lt.value = t, i.push(r), Bt(t?.getColDef());
|
|
6749
6722
|
}
|
|
6750
6723
|
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);
|
|
6751
6724
|
}, ht = (e) => {
|
|
6752
|
-
if (
|
|
6725
|
+
if (Z.value) {
|
|
6753
6726
|
let t = St();
|
|
6754
6727
|
ac(Je.value, t) || (Je.value = t, T("filter-changed", e));
|
|
6755
6728
|
}
|
|
6756
6729
|
}, gt = (e) => {
|
|
6757
|
-
|
|
6730
|
+
Q.value = e.api?.getState()?.sort?.sortModel || [], me.value && T("sort-changed", e);
|
|
6758
6731
|
}, _t = (e) => e.getColId() && e.getColId().includes("ag-Grid-AutoColumn"), vt = O(!1), yt = async (e) => {
|
|
6759
|
-
if (!
|
|
6732
|
+
if (!Z.value) {
|
|
6760
6733
|
console.error("Grid API not available");
|
|
6761
6734
|
return;
|
|
6762
6735
|
}
|
|
@@ -6765,13 +6738,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6765
6738
|
route: [],
|
|
6766
6739
|
purge: !0
|
|
6767
6740
|
};
|
|
6768
|
-
|
|
6741
|
+
Z.value.refreshServerSide(t);
|
|
6769
6742
|
}, bt = () => Qe.value, xt = async () => {
|
|
6770
|
-
if (vt.value = !0, !
|
|
6743
|
+
if (vt.value = !0, !Z.value) return console.error("Grid API not available"), vt.value = !1, null;
|
|
6771
6744
|
try {
|
|
6772
|
-
let e = f.serverSideCsvHandler, t =
|
|
6745
|
+
let e = f.serverSideCsvHandler, t = Z.value?.getState(), n = {
|
|
6773
6746
|
rowGroupCols: [],
|
|
6774
|
-
valueCols:
|
|
6747
|
+
valueCols: Z.value?.getValueColumns().map((e) => ({
|
|
6775
6748
|
id: e.getId(),
|
|
6776
6749
|
field: e.getColDef().field,
|
|
6777
6750
|
aggFunc: typeof e.getColDef().aggFunc == "string" ? e.getColDef().aggFunc : void 0,
|
|
@@ -6789,7 +6762,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6789
6762
|
let e = {
|
|
6790
6763
|
request: n,
|
|
6791
6764
|
parentNode: {},
|
|
6792
|
-
api:
|
|
6765
|
+
api: Z.value,
|
|
6793
6766
|
context: void 0,
|
|
6794
6767
|
success: () => {},
|
|
6795
6768
|
fail: () => {}
|
|
@@ -6798,13 +6771,13 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6798
6771
|
}
|
|
6799
6772
|
let r = f.serverSideRowHandler;
|
|
6800
6773
|
return r ? await new Promise((e, t) => {
|
|
6801
|
-
|
|
6774
|
+
Z.value?.getState(), r({
|
|
6802
6775
|
request: n,
|
|
6803
6776
|
parentNode: {},
|
|
6804
|
-
api:
|
|
6777
|
+
api: Z.value,
|
|
6805
6778
|
context: void 0,
|
|
6806
6779
|
success: (t) => {
|
|
6807
|
-
let n =
|
|
6780
|
+
let n = Z.value?.getRowGroupColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], r = Z.value?.getAllDisplayedColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], i = Z.value?.getValueColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], a = Array.from(new Set([
|
|
6808
6781
|
...n,
|
|
6809
6782
|
...r,
|
|
6810
6783
|
...i
|
|
@@ -6821,21 +6794,21 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6821
6794
|
vt.value = !1, t("CSV export failed.");
|
|
6822
6795
|
}
|
|
6823
6796
|
}, !0);
|
|
6824
|
-
}) : (console.warn("Client-side export does not return CSV string"), vt.value = !1,
|
|
6797
|
+
}) : (console.warn("Client-side export does not return CSV string"), vt.value = !1, Z.value.exportDataAsCsv(), null);
|
|
6825
6798
|
} catch (e) {
|
|
6826
6799
|
return console.error("CSV export failed", e), vt.value = !1, null;
|
|
6827
6800
|
}
|
|
6828
|
-
}, St = () =>
|
|
6829
|
-
if (!
|
|
6801
|
+
}, St = () => Z.value ? f.enableAdvancedFilter ? Z.value.getAdvancedFilterModel() : Z.value.getFilterModel() : Je.value, Ct = (e) => {
|
|
6802
|
+
if (!Z.value) return !1;
|
|
6830
6803
|
if (f.enableAdvancedFilter) {
|
|
6831
6804
|
let t = e && hc(e) ? Vs(e) : e;
|
|
6832
|
-
|
|
6805
|
+
Z.value.setAdvancedFilterModel(t);
|
|
6833
6806
|
} else {
|
|
6834
6807
|
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;
|
|
6835
|
-
|
|
6808
|
+
Z.value.setFilterModel(e);
|
|
6836
6809
|
}
|
|
6837
6810
|
return !0;
|
|
6838
|
-
}, Ot = (e) => (Ye.value = e,
|
|
6811
|
+
}, Ot = (e) => (Ye.value = e, Z.value ? (Z.value.onFilterChanged(), j && Z.value.refreshServerSide({ purge: !0 }), !0) : !1), kt = {
|
|
6839
6812
|
getFilterModel: St,
|
|
6840
6813
|
refreshData: yt,
|
|
6841
6814
|
setFilterModel: Ct,
|
|
@@ -6849,7 +6822,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6849
6822
|
getFilterValueSelectedMetadataMap: bt,
|
|
6850
6823
|
availableRowGroupColumns: st,
|
|
6851
6824
|
availableAggFuncColumns: ct,
|
|
6852
|
-
rowGroupColumnFields:
|
|
6825
|
+
rowGroupColumnFields: q,
|
|
6853
6826
|
getPvFilterModel: St,
|
|
6854
6827
|
setPvFilterModel: Ct
|
|
6855
6828
|
});
|
|
@@ -6862,11 +6835,11 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6862
6835
|
}
|
|
6863
6836
|
i ? (lt.value = i, Bt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (lt.value = null, Bt(null));
|
|
6864
6837
|
let a = t?.getColId();
|
|
6865
|
-
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)),
|
|
6866
|
-
let e =
|
|
6838
|
+
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)), q.value = [...n].map((e) => e.getColId()), f.enableFocusView && !We) {
|
|
6839
|
+
let e = q.value.length > 0 ? q.value[0] : null;
|
|
6867
6840
|
qe.setFocusType(e);
|
|
6868
6841
|
}
|
|
6869
|
-
|
|
6842
|
+
me.value && T("column-row-group-changed", e);
|
|
6870
6843
|
});
|
|
6871
6844
|
}, jt = (e) => {
|
|
6872
6845
|
let t = e.column?.getColId() || "";
|
|
@@ -6877,7 +6850,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6877
6850
|
}, Mt = (e) => {
|
|
6878
6851
|
f.enableExpandOnRowClick && e.node.group && e.node.setExpanded(!e.node.expanded), T("row-clicked", e);
|
|
6879
6852
|
}, Nt = (e) => {
|
|
6880
|
-
e.finished && (rt.value = e.api.getAllGridColumns()),
|
|
6853
|
+
e.finished && (rt.value = e.api.getAllGridColumns()), me.value && T("column-moved", e);
|
|
6881
6854
|
}, Pt = (e) => {
|
|
6882
6855
|
e.api && (dt.value = e.api.paginationGetCurrentPage() + 1, ft.value = e.api.paginationGetTotalPages());
|
|
6883
6856
|
}, Ft = (e) => "allChildrenRowCount" in e && e.allChildrenRowCount || 0, It = (e) => {
|
|
@@ -6904,7 +6877,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6904
6877
|
displayCount: f.displayGroupCount,
|
|
6905
6878
|
formattedValue: e.valueFormatted,
|
|
6906
6879
|
rowNode: e.node,
|
|
6907
|
-
api:
|
|
6880
|
+
api: Z.value,
|
|
6908
6881
|
focusText: f.focusText,
|
|
6909
6882
|
cellParams: e
|
|
6910
6883
|
})
|
|
@@ -6937,31 +6910,31 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6937
6910
|
S(() => {
|
|
6938
6911
|
qt.value = document.querySelector("body");
|
|
6939
6912
|
let e = Array.isArray(f.rowData) && f.rowData.length > 0, t = typeof f.serverSideRowHandler == "function", n = typeof f.filterValuesSetHandler == "function";
|
|
6940
|
-
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."),
|
|
6913
|
+
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."), L.value = (e) => {
|
|
6941
6914
|
let t = [
|
|
6942
6915
|
"sortAscending",
|
|
6943
6916
|
"sortDescending",
|
|
6944
6917
|
"sortUnSort",
|
|
6945
6918
|
"rowUnGroup"
|
|
6946
6919
|
], n = e.column && _t(e.column) ? lt.value : e.column;
|
|
6947
|
-
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0,
|
|
6948
|
-
}, W && (Je.value = (f.enableAdvancedFilter ? W.filter?.advancedFilterModel : W.filter?.filterModel) || null,
|
|
6920
|
+
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, z), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
6921
|
+
}, W && (Je.value = (f.enableAdvancedFilter ? W.filter?.advancedFilterModel : W.filter?.filterModel) || null, q.value = W.rowGroup?.groupColIds || []);
|
|
6949
6922
|
});
|
|
6950
6923
|
let Ut = (e) => {
|
|
6951
|
-
let t =
|
|
6924
|
+
let t = Z.value;
|
|
6952
6925
|
if (!t) return;
|
|
6953
6926
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
6954
|
-
n && !ac(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !$e(r,
|
|
6927
|
+
n && !ac(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !$e(r, q.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
6955
6928
|
};
|
|
6956
|
-
|
|
6929
|
+
V(() => f.initialGridState, () => {
|
|
6957
6930
|
if (f.initialGridState) {
|
|
6958
6931
|
let e = Hs(f.initialGridState, ne, f.enableAdvancedFilter);
|
|
6959
6932
|
e && Ut(e);
|
|
6960
6933
|
}
|
|
6961
6934
|
}, { deep: !0 });
|
|
6962
6935
|
let Wt = (e) => {
|
|
6963
|
-
|
|
6964
|
-
}, Gt = (e) => j ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level ===
|
|
6936
|
+
me.value = !0, T("first-data-rendered", e);
|
|
6937
|
+
}, Gt = (e) => j ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level === q.value.length - 2 : !1, Kt = r(() => {
|
|
6965
6938
|
if (!j) return f.groupDefaultExpanded;
|
|
6966
6939
|
}), qt = O(null), Jt = O(null);
|
|
6967
6940
|
return (t, r) => (E(), o("div", {
|
|
@@ -6979,16 +6952,16 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
6979
6952
|
"--flex-justify": "flex-end"
|
|
6980
6953
|
}
|
|
6981
6954
|
}, {
|
|
6982
|
-
trigger:
|
|
6955
|
+
trigger: H(() => [u(I(mn), {
|
|
6983
6956
|
"left-icon": "flask-conical",
|
|
6984
6957
|
ariaLabel: "Toggle dev mode",
|
|
6985
6958
|
variant: k.value ? "primary" : "secondary",
|
|
6986
6959
|
onClick: r[0] ||= (e) => k.value = !k.value
|
|
6987
6960
|
}, null, 8, ["variant"])]),
|
|
6988
|
-
content:
|
|
6961
|
+
content: H(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
6989
6962
|
_: 1
|
|
6990
6963
|
})) : a("", !0),
|
|
6991
|
-
|
|
6964
|
+
U(s("div", vl, [s("div", yl, [(E(), i(n, {
|
|
6992
6965
|
to: e.filterTeleportLocation,
|
|
6993
6966
|
disabled: !e.filterTeleportLocation
|
|
6994
6967
|
}, [ot.value.length > 0 && !f.enableInlineFilters ? (E(), i(Xc, {
|
|
@@ -7016,19 +6989,19 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7016
6989
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(sl, {
|
|
7017
6990
|
key: 1,
|
|
7018
6991
|
getCsvData: xt
|
|
7019
|
-
})) : a("", !0)])])], 512), [[
|
|
7020
|
-
|
|
6992
|
+
})) : a("", !0)])])], 512), [[B, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
6993
|
+
U(s("div", {
|
|
7021
6994
|
ref_key: "advancedFilterParentElement",
|
|
7022
6995
|
ref: Jt,
|
|
7023
6996
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
7024
|
-
}, null, 2), [[
|
|
6997
|
+
}, null, 2), [[B, k.value && e.enableAdvancedFilter]]),
|
|
7025
6998
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
7026
6999
|
key: 1,
|
|
7027
7000
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
7028
7001
|
}, [s("div", xl, [e.enableTableSearch ? (E(), i(ml, {
|
|
7029
7002
|
key: 0,
|
|
7030
7003
|
placeholder: e.tableSearchPlaceholder,
|
|
7031
|
-
disabled: !
|
|
7004
|
+
disabled: !Ve.value,
|
|
7032
7005
|
"search-style": e.tableSearchStyle
|
|
7033
7006
|
}, null, 8, [
|
|
7034
7007
|
"placeholder",
|
|
@@ -7043,7 +7016,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7043
7016
|
"min-height": "0",
|
|
7044
7017
|
"overflow-x": "hidden"
|
|
7045
7018
|
}
|
|
7046
|
-
}, [u(I(
|
|
7019
|
+
}, [u(I(ie), _({
|
|
7047
7020
|
ref: "gridRef",
|
|
7048
7021
|
class: ["pv-data-table", I(b)],
|
|
7049
7022
|
style: [{
|
|
@@ -7074,10 +7047,10 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7074
7047
|
autoGroupColumnDef: zt.value,
|
|
7075
7048
|
columnDefs: I(ne),
|
|
7076
7049
|
debug: e.debugMode,
|
|
7077
|
-
defaultColDef: I(
|
|
7050
|
+
defaultColDef: I(ee),
|
|
7078
7051
|
getChildCount: Ft,
|
|
7079
|
-
getContextMenuItems:
|
|
7080
|
-
getMainMenuItems:
|
|
7052
|
+
getContextMenuItems: R.value,
|
|
7053
|
+
getMainMenuItems: L.value,
|
|
7081
7054
|
getRowStyle: Vt,
|
|
7082
7055
|
groupDefaultExpanded: Kt.value,
|
|
7083
7056
|
groupDisplayType: "singleColumn",
|
|
@@ -7121,7 +7094,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7121
7094
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
7122
7095
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
7123
7096
|
advancedFilterParent: Jt.value
|
|
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 && !
|
|
7097
|
+
}), 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 && !Ve.value ? (E(), o("div", Sl, [s("p", Cl, P(He.value), 1)])) : a("", !0)], 2),
|
|
7125
7098
|
e.pagination ? (E(), i(ll, { key: 2 })) : a("", !0)
|
|
7126
7099
|
], 4));
|
|
7127
7100
|
}
|
|
@@ -7163,7 +7136,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7163
7136
|
},
|
|
7164
7137
|
useTeleport: !0
|
|
7165
7138
|
}), m = O(!1), h = O(!1), g = O(null);
|
|
7166
|
-
|
|
7139
|
+
V(g, (e) => {
|
|
7167
7140
|
e && (p.value = e);
|
|
7168
7141
|
});
|
|
7169
7142
|
let _ = r(() => (i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => ({
|
|
@@ -7171,7 +7144,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7171
7144
|
text: e.title,
|
|
7172
7145
|
context: { rightIcon: e.icon }
|
|
7173
7146
|
}))), v = r(() => _.value.length > 0), b = O((i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => e.field));
|
|
7174
|
-
|
|
7147
|
+
V(b, (e) => {
|
|
7175
7148
|
c("table-overlay-change", e);
|
|
7176
7149
|
}, { immediate: !0 });
|
|
7177
7150
|
let x = () => {
|
|
@@ -7181,7 +7154,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7181
7154
|
}, C = () => {
|
|
7182
7155
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
7183
7156
|
};
|
|
7184
|
-
return (n, r) => (E(), o(t, null, [
|
|
7157
|
+
return (n, r) => (E(), o(t, null, [U((E(), o("div", Ol, [u(na, {
|
|
7185
7158
|
open: m.value,
|
|
7186
7159
|
label: "Table Configuration",
|
|
7187
7160
|
icon: "settings",
|
|
@@ -7196,7 +7169,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7196
7169
|
alignment: "right",
|
|
7197
7170
|
isList: !0
|
|
7198
7171
|
}, {
|
|
7199
|
-
default:
|
|
7172
|
+
default: H(() => [r[3] ||= s("div", { class: "pv-border-bottom" }, [s("p", {
|
|
7200
7173
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
7201
7174
|
style: {
|
|
7202
7175
|
"padding-top": "4px",
|
|
@@ -7235,7 +7208,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7235
7208
|
},
|
|
7236
7209
|
isList: !0
|
|
7237
7210
|
}, {
|
|
7238
|
-
default:
|
|
7211
|
+
default: H(() => [s("ul", Ml, [(E(!0), o(t, null, k(_.value, (e) => (E(), o("li", { key: e.id }, [u(La, {
|
|
7239
7212
|
id: e.id,
|
|
7240
7213
|
config: {
|
|
7241
7214
|
variant: "checkbox",
|
|
@@ -7281,7 +7254,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7281
7254
|
}),
|
|
7282
7255
|
emits: ["update:modelValue"],
|
|
7283
7256
|
setup(e) {
|
|
7284
|
-
let n = e, c =
|
|
7257
|
+
let n = e, c = L(e, "modelValue"), l = {
|
|
7285
7258
|
id: Ul,
|
|
7286
7259
|
text: "",
|
|
7287
7260
|
disabled: !0
|
|
@@ -7298,7 +7271,7 @@ var us = /* @__PURE__ */ function(e) {
|
|
|
7298
7271
|
l,
|
|
7299
7272
|
...n.options.filter((t) => !e.has(t.id))
|
|
7300
7273
|
];
|
|
7301
|
-
}), m =
|
|
7274
|
+
}), m = z("sortableListRef"), h = z("containerRef"), g = null, _ = null, v = () => {
|
|
7302
7275
|
if (!m.value) return;
|
|
7303
7276
|
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === Ul);
|
|
7304
7277
|
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);
|
|
@@ -7515,12 +7488,12 @@ var $l = {
|
|
|
7515
7488
|
disableInteractive: !0,
|
|
7516
7489
|
style: { "pointer-events": "auto" }
|
|
7517
7490
|
}, {
|
|
7518
|
-
trigger:
|
|
7491
|
+
trigger: H(() => [u(I(sn), {
|
|
7519
7492
|
size: 12,
|
|
7520
7493
|
name: "info-circle",
|
|
7521
7494
|
class: "pv-text-subdued"
|
|
7522
7495
|
})]),
|
|
7523
|
-
content:
|
|
7496
|
+
content: H(() => [s("div", tu, P(e.context.description), 1)]),
|
|
7524
7497
|
_: 1
|
|
7525
7498
|
})) : a("", !0)]));
|
|
7526
7499
|
}
|
|
@@ -7558,21 +7531,21 @@ var $l = {
|
|
|
7558
7531
|
}), 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(() => {
|
|
7559
7532
|
let e = b.value?.id ?? "";
|
|
7560
7533
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
7561
|
-
}), M = m(Ao, O("")), N = m(jo, O([])), F = m(Mo, O(void 0)),
|
|
7534
|
+
}), M = m(Ao, O("")), N = m(jo, O([])), F = m(Mo, O(void 0)), ee = m(No, O([])), L = m(Fo, O(/* @__PURE__ */ new Set())), R = m(Io, O([])), z = r(() => R.value.filter((e) => L.value.has(e.id)).map((e) => ({
|
|
7562
7535
|
id: e.id,
|
|
7563
7536
|
text: e.label,
|
|
7564
7537
|
disabled: e.disabled,
|
|
7565
7538
|
context: e.disabledReason ? { description: e.disabledReason } : void 0
|
|
7566
7539
|
}))), te = (e) => {
|
|
7567
|
-
|
|
7540
|
+
L.value = new Set(e.map((e) => e.id));
|
|
7568
7541
|
};
|
|
7569
|
-
|
|
7542
|
+
V(j, (e) => {
|
|
7570
7543
|
e && F.value && (F.value = void 0);
|
|
7571
7544
|
}, { immediate: !0 });
|
|
7572
|
-
let ne = m(wo, O("")),
|
|
7545
|
+
let ne = m(wo, O("")), B = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
7573
7546
|
label: e.label,
|
|
7574
7547
|
value: e.value
|
|
7575
|
-
})) : []),
|
|
7548
|
+
})) : []), re = r(() => {
|
|
7576
7549
|
if (b.value) return (T.value.length > 1 ? [
|
|
7577
7550
|
"bar_stacked",
|
|
7578
7551
|
"line",
|
|
@@ -7585,7 +7558,7 @@ var $l = {
|
|
|
7585
7558
|
"area"
|
|
7586
7559
|
]).includes(b.value?.id);
|
|
7587
7560
|
});
|
|
7588
|
-
|
|
7561
|
+
V(S, (e) => {
|
|
7589
7562
|
if (!b.value) return;
|
|
7590
7563
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
7591
7564
|
if (r) {
|
|
@@ -7604,31 +7577,31 @@ var $l = {
|
|
|
7604
7577
|
function W(e) {
|
|
7605
7578
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
7606
7579
|
}
|
|
7607
|
-
let
|
|
7580
|
+
let G = r(() => N.value.map((e) => ({
|
|
7608
7581
|
id: e.value,
|
|
7609
7582
|
text: e.label,
|
|
7610
7583
|
context: e.description ? { description: e.description } : void 0
|
|
7611
|
-
}))),
|
|
7584
|
+
}))), ie = r(() => ee.value.map((e) => ({
|
|
7612
7585
|
id: e.value,
|
|
7613
7586
|
text: e.label
|
|
7614
7587
|
}))), ae = r(() => D.value.map((e) => ({
|
|
7615
7588
|
id: e.field || "",
|
|
7616
7589
|
text: e.headerName || e.field || "",
|
|
7617
7590
|
icon: ds(e.context?.dataType || null) || "circle-chevron-down"
|
|
7618
|
-
}))),
|
|
7591
|
+
}))), K = r({
|
|
7619
7592
|
get: () => T.value.map((e) => ae.value.find((t) => t.id === e)).filter(Boolean),
|
|
7620
7593
|
set: (e) => {
|
|
7621
7594
|
T.value = e.map((e) => e.id);
|
|
7622
7595
|
}
|
|
7623
|
-
}),
|
|
7596
|
+
}), oe = r(() => {
|
|
7624
7597
|
let e = [], t = {
|
|
7625
7598
|
value: "y-axis",
|
|
7626
7599
|
label: "Y Axis",
|
|
7627
7600
|
prefixLabel: "Y Axis",
|
|
7628
7601
|
icon: "chart-bar-decreasing",
|
|
7629
7602
|
allowDeselect: !1,
|
|
7630
|
-
availableOptions:
|
|
7631
|
-
currentOption:
|
|
7603
|
+
availableOptions: G.value,
|
|
7604
|
+
currentOption: G.value.find((e) => e.id === M.value),
|
|
7632
7605
|
updateSelectedOption: (e) => {
|
|
7633
7606
|
M && e !== M.value && (M.value = e);
|
|
7634
7607
|
}
|
|
@@ -7640,7 +7613,7 @@ var $l = {
|
|
|
7640
7613
|
allowDeselect: !1,
|
|
7641
7614
|
availableOptions: ae.value,
|
|
7642
7615
|
...i ? {
|
|
7643
|
-
activeOptions:
|
|
7616
|
+
activeOptions: K,
|
|
7644
7617
|
activeOptionLimit: n.rowGroupLimit
|
|
7645
7618
|
} : {
|
|
7646
7619
|
currentOption: ae.value.find((e) => e.id === T.value[0]),
|
|
@@ -7655,7 +7628,7 @@ var $l = {
|
|
|
7655
7628
|
allowDeselect: !0,
|
|
7656
7629
|
availableOptions: w.value,
|
|
7657
7630
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
7658
|
-
disabled: !
|
|
7631
|
+
disabled: !re.value,
|
|
7659
7632
|
disabledReason: "Sorting is not available for this chart type",
|
|
7660
7633
|
updateSelectedOption: (e) => {
|
|
7661
7634
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -7677,7 +7650,7 @@ var $l = {
|
|
|
7677
7650
|
t && b && (b.value = t);
|
|
7678
7651
|
}
|
|
7679
7652
|
};
|
|
7680
|
-
if (
|
|
7653
|
+
if (G.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && ie.value.length > 0) {
|
|
7681
7654
|
let t = {
|
|
7682
7655
|
value: "secondary-y-axis",
|
|
7683
7656
|
label: "Metric Overlay",
|
|
@@ -7686,15 +7659,15 @@ var $l = {
|
|
|
7686
7659
|
allowDeselect: !0,
|
|
7687
7660
|
disabled: j.value,
|
|
7688
7661
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
7689
|
-
availableOptions:
|
|
7690
|
-
currentOption:
|
|
7662
|
+
availableOptions: ie.value,
|
|
7663
|
+
currentOption: ie.value.find((e) => e.id === F?.value),
|
|
7691
7664
|
updateSelectedOption: (e) => {
|
|
7692
7665
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
7693
7666
|
}
|
|
7694
7667
|
};
|
|
7695
7668
|
t && e.push(t);
|
|
7696
|
-
} else if (
|
|
7697
|
-
let t =
|
|
7669
|
+
} else if (R.value.length > 0) {
|
|
7670
|
+
let t = R.value.map((e) => ({
|
|
7698
7671
|
id: e.id,
|
|
7699
7672
|
text: e.label,
|
|
7700
7673
|
disabled: e.disabled,
|
|
@@ -7707,9 +7680,9 @@ var $l = {
|
|
|
7707
7680
|
allowDeselect: !0,
|
|
7708
7681
|
isMultiSelect: !0,
|
|
7709
7682
|
availableOptions: t,
|
|
7710
|
-
activeOptionIds:
|
|
7711
|
-
activeOptions:
|
|
7712
|
-
currentOption: t.find((e) =>
|
|
7683
|
+
activeOptionIds: L.value,
|
|
7684
|
+
activeOptions: z,
|
|
7685
|
+
currentOption: t.find((e) => L.value.has(e.id)),
|
|
7713
7686
|
updateSelectedOptions: te
|
|
7714
7687
|
};
|
|
7715
7688
|
n && e.push(n);
|
|
@@ -7717,28 +7690,28 @@ var $l = {
|
|
|
7717
7690
|
let c = i ? 2 : 1;
|
|
7718
7691
|
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);
|
|
7719
7692
|
});
|
|
7720
|
-
|
|
7693
|
+
V(v, (e) => {
|
|
7721
7694
|
e && (p.value = e);
|
|
7722
7695
|
});
|
|
7723
|
-
let
|
|
7724
|
-
let t =
|
|
7696
|
+
let se = r(() => _.value && oe.value.find((e) => e.value === _.value) || null), ce = (e) => {
|
|
7697
|
+
let t = se.value;
|
|
7725
7698
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
7726
|
-
},
|
|
7699
|
+
}, le = (e) => se.value?.isMultiSelect ? null : ce(e), ue = (e) => se.value?.isMultiSelect ? {
|
|
7727
7700
|
variant: "checkbox",
|
|
7728
7701
|
renderer: nu
|
|
7729
|
-
} : W(e) ? { renderer: nu } : { variant: "icon" },
|
|
7702
|
+
} : W(e) ? { renderer: nu } : { variant: "icon" }, de = (e) => {
|
|
7730
7703
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
7731
|
-
},
|
|
7704
|
+
}, q = () => {
|
|
7732
7705
|
g.value = !1, _.value = void 0;
|
|
7733
|
-
},
|
|
7706
|
+
}, fe = () => {
|
|
7734
7707
|
_.value = void 0;
|
|
7735
7708
|
};
|
|
7736
|
-
return (n, r) => (E(), o(t, null, [s("div", ru, [s("div", null, [
|
|
7709
|
+
return (n, r) => (E(), o(t, null, [s("div", ru, [s("div", null, [U((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, {
|
|
7737
7710
|
open: g.value,
|
|
7738
7711
|
label: "Chart Configuration",
|
|
7739
7712
|
icon: "chart-area",
|
|
7740
7713
|
onClick: r[0] ||= (e) => g.value = !g.value,
|
|
7741
|
-
onHandleToggleDropdown:
|
|
7714
|
+
onHandleToggleDropdown: fe
|
|
7742
7715
|
}, null, 8, ["open"]), u(Zt, {
|
|
7743
7716
|
class: y({ "pv-hide": !g.value }),
|
|
7744
7717
|
"css-custom-properties": {
|
|
@@ -7748,18 +7721,18 @@ var $l = {
|
|
|
7748
7721
|
},
|
|
7749
7722
|
isList: !0
|
|
7750
7723
|
}, {
|
|
7751
|
-
default:
|
|
7724
|
+
default: H(() => [r[4] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
7752
7725
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
7753
7726
|
style: {
|
|
7754
7727
|
"padding-top": "4px",
|
|
7755
7728
|
"padding-bottom": "12px"
|
|
7756
7729
|
}
|
|
7757
|
-
}, " Chart Configuration ")], -1), s("ul", au, [(E(!0), o(t, null, k(
|
|
7730
|
+
}, " Chart Configuration ")], -1), s("ul", au, [(E(!0), o(t, null, k(oe.value, (e) => (E(), o("li", {
|
|
7758
7731
|
id: `pv-chart-config-${e.value}`,
|
|
7759
7732
|
key: e.value,
|
|
7760
7733
|
"data-active": _.value === e.value ? !0 : null,
|
|
7761
|
-
onMouseenter: (t) => e.disabled ? null :
|
|
7762
|
-
onClick: (t) => e.disabled ? null :
|
|
7734
|
+
onMouseenter: (t) => e.disabled ? null : de(e.value),
|
|
7735
|
+
onClick: (t) => e.disabled ? null : de(e.value)
|
|
7763
7736
|
}, [u(I(vi), {
|
|
7764
7737
|
disableInteractive: !0,
|
|
7765
7738
|
useTeleport: !0,
|
|
@@ -7767,7 +7740,7 @@ var $l = {
|
|
|
7767
7740
|
style: { width: "100%" },
|
|
7768
7741
|
variant: "white"
|
|
7769
7742
|
}, c({
|
|
7770
|
-
trigger:
|
|
7743
|
+
trigger: H(() => [u(La, {
|
|
7771
7744
|
config: { variant: "icon" },
|
|
7772
7745
|
disabled: e.disabled,
|
|
7773
7746
|
id: e.value,
|
|
@@ -7784,19 +7757,19 @@ var $l = {
|
|
|
7784
7757
|
_: 2
|
|
7785
7758
|
}, [e.disabled && e.disabledReason ? {
|
|
7786
7759
|
name: "content",
|
|
7787
|
-
fn:
|
|
7760
|
+
fn: H(() => [s("div", su, P(e.disabledReason), 1)]),
|
|
7788
7761
|
key: "0"
|
|
7789
7762
|
} : void 0]), 1024)], 40, ou))), 128))])]),
|
|
7790
7763
|
_: 1
|
|
7791
|
-
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Je), [
|
|
7764
|
+
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Je), [q, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
7792
7765
|
class: "pv-flex pv-space-between",
|
|
7793
7766
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
7794
7767
|
}, [e.chartFilter ? (E(), i(yi, {
|
|
7795
7768
|
key: 0,
|
|
7796
|
-
options:
|
|
7769
|
+
options: B.value,
|
|
7797
7770
|
modelValue: I(ne),
|
|
7798
7771
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null
|
|
7799
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", cu, [(E(!0), o(t, null, k(
|
|
7772
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", cu, [(E(!0), o(t, null, k(oe.value, (e) => (E(), o(t, { key: e.value }, [e.isMultiSelect && e.activeOptions && e.activeOptionIds ? (E(), i(Ja, {
|
|
7800
7773
|
key: 0,
|
|
7801
7774
|
label: e.label,
|
|
7802
7775
|
prefixLabel: e.prefixLabel,
|
|
@@ -7844,37 +7817,37 @@ var $l = {
|
|
|
7844
7817
|
},
|
|
7845
7818
|
isList: !0
|
|
7846
7819
|
}, {
|
|
7847
|
-
default:
|
|
7820
|
+
default: H(() => [se.value ? (E(), o(t, { key: 0 }, [se.value.isSortableList ? (E(), o(t, { key: 0 }, [r[5] ||= s("p", {
|
|
7848
7821
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
7849
7822
|
style: {
|
|
7850
7823
|
"padding-left": "2px",
|
|
7851
7824
|
"padding-bottom": "6px"
|
|
7852
7825
|
}
|
|
7853
7826
|
}, " Viewing ", -1), u(Gl, {
|
|
7854
|
-
modelValue:
|
|
7855
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
7856
|
-
options:
|
|
7857
|
-
activeOptionLimit:
|
|
7827
|
+
modelValue: se.value.activeOptions.value,
|
|
7828
|
+
"onUpdate:modelValue": r[2] ||= (e) => se.value.activeOptions.value = e,
|
|
7829
|
+
options: se.value.availableOptions || [],
|
|
7830
|
+
activeOptionLimit: se.value.activeOptionLimit,
|
|
7858
7831
|
placeholderText: "Add to X Axis"
|
|
7859
7832
|
}, null, 8, [
|
|
7860
7833
|
"modelValue",
|
|
7861
7834
|
"options",
|
|
7862
7835
|
"activeOptionLimit"
|
|
7863
|
-
])], 64)) : (E(), o("ul", lu, [(E(!0), o(t, null, k(
|
|
7836
|
+
])], 64)) : (E(), o("ul", lu, [(E(!0), o(t, null, k(se.value.availableOptions, (e) => (E(), o("li", {
|
|
7864
7837
|
key: e.id,
|
|
7865
|
-
"data-active":
|
|
7838
|
+
"data-active": le(e)
|
|
7866
7839
|
}, [u(La, {
|
|
7867
7840
|
id: e.id,
|
|
7868
|
-
config:
|
|
7841
|
+
config: ue(e),
|
|
7869
7842
|
text: e.text,
|
|
7870
7843
|
icon: e.icon,
|
|
7871
7844
|
context: e.context,
|
|
7872
7845
|
disabled: e.disabled,
|
|
7873
|
-
selectedIds:
|
|
7846
|
+
selectedIds: se.value.isMultiSelect ? [...I(L)] : [],
|
|
7874
7847
|
"onUpdate:selectedIds": r[3] ||= (e) => {
|
|
7875
|
-
|
|
7848
|
+
se.value?.updateSelectedOptions?.([...se.value?.availableOptions.filter((t) => e.includes(t.id))]);
|
|
7876
7849
|
},
|
|
7877
|
-
onHandleSelected: (t) =>
|
|
7850
|
+
onHandleSelected: (t) => se.value.updateSelectedOption?.(e.id),
|
|
7878
7851
|
"class-list": ["pv-chart-option pv-flex"]
|
|
7879
7852
|
}, null, 8, [
|
|
7880
7853
|
"id",
|
|
@@ -8149,7 +8122,7 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8149
8122
|
],
|
|
8150
8123
|
setup(e, { expose: n, emit: c }) {
|
|
8151
8124
|
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(() => {
|
|
8152
|
-
let e =
|
|
8125
|
+
let e = he.value;
|
|
8153
8126
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
8154
8127
|
label: "Count",
|
|
8155
8128
|
value: e.yAxis.defaultValue
|
|
@@ -8166,7 +8139,7 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8166
8139
|
description: n.context?.chartSeriesDescription
|
|
8167
8140
|
};
|
|
8168
8141
|
});
|
|
8169
|
-
}),
|
|
8142
|
+
}), ee = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
8170
8143
|
let t = $(e);
|
|
8171
8144
|
return t.chartOnSecondaryAxes === !0 && !t.hideFromCharting;
|
|
8172
8145
|
}).map((e) => {
|
|
@@ -8178,7 +8151,7 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8178
8151
|
dataType: n.context?.dataType,
|
|
8179
8152
|
tooltipRenderer: n.context?.customTooltipRenderer
|
|
8180
8153
|
};
|
|
8181
|
-
})),
|
|
8154
|
+
})), L = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
8182
8155
|
let t = $(e);
|
|
8183
8156
|
return t.chartOnSecondaryAxes === !0 && t.hideFromCharting === !0;
|
|
8184
8157
|
}).map((e) => {
|
|
@@ -8189,38 +8162,38 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8189
8162
|
formatter: n.valueFormatter,
|
|
8190
8163
|
dataType: n.context?.dataType
|
|
8191
8164
|
};
|
|
8192
|
-
})),
|
|
8193
|
-
D(co,
|
|
8194
|
-
let
|
|
8165
|
+
})), R = l.filterStore || yc();
|
|
8166
|
+
D(co, R);
|
|
8167
|
+
let z = Qo({
|
|
8195
8168
|
focusType: l.initialFocusData?.focusType,
|
|
8196
8169
|
focuses: l.initialFocusData?.focuses || [],
|
|
8197
8170
|
focusRequired: l.focusRequired
|
|
8198
8171
|
}, l.allFieldsAreFocusable);
|
|
8199
|
-
D(lo,
|
|
8200
|
-
let { setFilterSelectedValues: te } =
|
|
8172
|
+
D(lo, z);
|
|
8173
|
+
let { setFilterSelectedValues: te } = R, ne = O(!1);
|
|
8201
8174
|
D(bo, ne);
|
|
8202
|
-
let
|
|
8175
|
+
let B = O(l.isTableGrouped), U = (e) => {
|
|
8203
8176
|
d("table-overlay-change", e);
|
|
8204
|
-
},
|
|
8205
|
-
p.value = e.api,
|
|
8177
|
+
}, re = r(() => Qe.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && R.filterModelEmpty.value)), W = r(() => z?.computedFocusType.value || null), G = r(() => z?.computedFocuses.value || []), ie = (e) => {
|
|
8178
|
+
p.value = e.api, B.value || p.value?.setRowGroupColumns([]), Be(e.api), d("grid-ready", e);
|
|
8206
8179
|
}, ae = (e) => {
|
|
8207
8180
|
d("first-data-rendered", e);
|
|
8208
|
-
},
|
|
8181
|
+
}, K = (e) => {
|
|
8209
8182
|
let t = j.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
8210
|
-
if (
|
|
8211
|
-
let t =
|
|
8212
|
-
if (n.length >
|
|
8213
|
-
let t = n.slice(0,
|
|
8183
|
+
if (B.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
8184
|
+
let t = he.value;
|
|
8185
|
+
if (n.length > ge.value) {
|
|
8186
|
+
let t = n.slice(0, ge.value);
|
|
8214
8187
|
j.value = t, e.api.setRowGroupColumns(t);
|
|
8215
8188
|
} else j.value = n;
|
|
8216
|
-
t.yAxis.defaultValue && (
|
|
8189
|
+
t.yAxis.defaultValue && (J.value = t.yAxis.defaultValue);
|
|
8217
8190
|
}
|
|
8218
8191
|
d("column-row-group-changed", e);
|
|
8219
|
-
},
|
|
8220
|
-
|
|
8192
|
+
}, oe = async (e) => {
|
|
8193
|
+
Be(e.api), ne.value && d("filter-changed", e);
|
|
8221
8194
|
};
|
|
8222
|
-
|
|
8223
|
-
if (
|
|
8195
|
+
V(() => j.value, () => {
|
|
8196
|
+
if (B.value) {
|
|
8224
8197
|
if (!p.value) return;
|
|
8225
8198
|
let e = p.value.getRowGroupColumns().map((e) => e.getColId());
|
|
8226
8199
|
JSON.stringify(e) !== JSON.stringify(j.value) && v(() => {
|
|
@@ -8230,18 +8203,18 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8230
8203
|
p?.value?.setRowGroupColumns([]);
|
|
8231
8204
|
});
|
|
8232
8205
|
if (!l.allFieldsAreFocusable) {
|
|
8233
|
-
let e =
|
|
8234
|
-
|
|
8206
|
+
let e = he.value.supportsFocusView && N.value || null;
|
|
8207
|
+
z.setFocusType(e);
|
|
8235
8208
|
}
|
|
8236
|
-
p.value &&
|
|
8209
|
+
p.value && Be(p.value);
|
|
8237
8210
|
});
|
|
8238
|
-
function
|
|
8211
|
+
function se(e, t, n = !0) {
|
|
8239
8212
|
return (r) => {
|
|
8240
|
-
if (r.data =
|
|
8241
|
-
let i = "", a =
|
|
8213
|
+
if (r.data = ye.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
8214
|
+
let i = "", a = le(e);
|
|
8242
8215
|
if (l.truncateLabelValues && n && a && Ts(a) && !isNaN(Number(r.value))) {
|
|
8243
|
-
if (
|
|
8244
|
-
let e = r.datum?.[N.value], t =
|
|
8216
|
+
if (Pe.value) {
|
|
8217
|
+
let e = r.datum?.[N.value], t = be.value?.find((t) => t[N.value] === e)?.[`${J.value}_sort_total`] || Infinity;
|
|
8245
8218
|
if (r.value / t < .05) return "";
|
|
8246
8219
|
}
|
|
8247
8220
|
let { newValue: e, newSuffix: t } = ms(r.value, us.Percent === $(a).dataType, Ke.value);
|
|
@@ -8251,17 +8224,17 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8251
8224
|
return t && (o = t(r)), o + i;
|
|
8252
8225
|
};
|
|
8253
8226
|
}
|
|
8254
|
-
let
|
|
8227
|
+
let ce = (e, t = !1) => {
|
|
8255
8228
|
if (!e) return;
|
|
8256
|
-
let n =
|
|
8257
|
-
return n && typeof n.valueFormatter == "function" ?
|
|
8258
|
-
},
|
|
8259
|
-
let n =
|
|
8229
|
+
let n = le(e);
|
|
8230
|
+
return n && typeof n.valueFormatter == "function" ? se(e, n.valueFormatter, t) : se(e, null, t);
|
|
8231
|
+
}, le = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), ue = (e, t) => {
|
|
8232
|
+
let n = le(N.value);
|
|
8260
8233
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
8261
|
-
},
|
|
8262
|
-
let e =
|
|
8234
|
+
}, de = r(() => [...j.value.length > 1 ? _s : gs, vs].filter((e) => l.enabledChartTypes?.includes(e.id))), q = O(void 0), fe = O(void 0), pe = O(void 0), me = !1, he = r(() => Ql(q.value?.id || "")), ge = r(() => Math.min(he.value.rowGroupLimit, l.rowGroupLimit)), _e = r(() => {
|
|
8235
|
+
let e = he.value.xAxis.filterColumns;
|
|
8263
8236
|
return e ? e(k.value) : k.value;
|
|
8264
|
-
}),
|
|
8237
|
+
}), ve = O([{
|
|
8265
8238
|
text: "Ascending",
|
|
8266
8239
|
id: "asc",
|
|
8267
8240
|
icon: "arrow-up-wide-narrow"
|
|
@@ -8269,46 +8242,46 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8269
8242
|
text: "Descending",
|
|
8270
8243
|
id: "desc",
|
|
8271
8244
|
icon: "arrow-down-narrow-wide"
|
|
8272
|
-
}]),
|
|
8273
|
-
D(fo, p), D(wo,
|
|
8274
|
-
let
|
|
8275
|
-
|
|
8245
|
+
}]), ye = O([]), be = O([]), J = O(l.yKey), Y = O(ee.value[0]?.value), xe = r(() => l.crosslineOverlayGroups ?? []), Se = O(new Set(xe.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), X = r(() => xe.value.filter((e) => Se.value.has(e.id)).flatMap((e) => e.overlays)), Ce = O(null), we = O(ve.value.find((e) => e.id === l.initialSort || "")), Te = O("");
|
|
8246
|
+
D(fo, p), D(wo, Te), D(go, _e), D(To, j), D(Eo, de), D(Do, ve), D(Oo, q), D(ko, we), D(Ao, J), D(jo, I), D(Mo, Y), D(No, ee), D(Fo, Se), D(Io, xe);
|
|
8247
|
+
let Ee = (e) => {
|
|
8248
|
+
q.value = de.value.find((t) => t.id === e) ?? de.value[0];
|
|
8276
8249
|
};
|
|
8277
|
-
|
|
8278
|
-
let e =
|
|
8279
|
-
|
|
8280
|
-
}),
|
|
8281
|
-
e !==
|
|
8282
|
-
}),
|
|
8250
|
+
V(() => de.value, () => {
|
|
8251
|
+
let e = Fe.value, t = e !== me, n = Ql(q.value?.id || ""), r = de.value.some((e) => e.id === q.value?.id);
|
|
8252
|
+
me = e, !(r && (!t || !n.storeBeforeChange)) && Ee((e ? pe?.value : fe?.value) ?? l.chartType);
|
|
8253
|
+
}), V(() => l.chartType, (e) => Ee(e)), V(() => l.yKey, (e) => {
|
|
8254
|
+
e !== J.value && (J.value = e);
|
|
8255
|
+
}), V(Te, (e) => {
|
|
8283
8256
|
if (l.chartFilter && p.value) {
|
|
8284
8257
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
8285
8258
|
n && n.length === 0 && (n = null), te(t, n || []);
|
|
8286
8259
|
let r = zs({
|
|
8287
8260
|
filterType: "set",
|
|
8288
8261
|
values: n
|
|
8289
|
-
},
|
|
8262
|
+
}, le(t));
|
|
8290
8263
|
p.value.setColumnFilterModel(t, r).then(() => {
|
|
8291
8264
|
p.value?.onFilterChanged();
|
|
8292
8265
|
});
|
|
8293
8266
|
}
|
|
8294
8267
|
});
|
|
8295
|
-
let
|
|
8296
|
-
let e = I.value.find((e) => e.value ===
|
|
8268
|
+
let De = r(() => {
|
|
8269
|
+
let e = I.value.find((e) => e.value === J.value);
|
|
8297
8270
|
return e ? e.label : "";
|
|
8298
|
-
}),
|
|
8299
|
-
let e =
|
|
8271
|
+
}), Oe = r(() => ee.value.find((e) => e.value === Y.value)), ke = r(() => {
|
|
8272
|
+
let e = ee.value.find((e) => e.value === Y.value);
|
|
8300
8273
|
return e ? e.label : "";
|
|
8301
|
-
}),
|
|
8302
|
-
let e =
|
|
8303
|
-
if (
|
|
8274
|
+
}), Ae = r(() => he.value.isHorizontal === !0), je = r(() => j.value.length > 1), Me = r(() => !q.value || I.value.length === 0 ? [] : he.value.seriesFamily === "pie" ? Le.value : Ie.value), Ne = r(() => l.showSeriesLabels), Pe = r(() => q.value?.id.includes("stacked")), Fe = r(() => j.value.length > 1), Ie = r(() => {
|
|
8275
|
+
let e = Pe.value, t = he.value.agChartType, n = [], r = ce(J.value, !0), i = ce(Ce.value?.fieldName, !0);
|
|
8276
|
+
if (je.value) Ce.value?.fieldValues.forEach((a) => {
|
|
8304
8277
|
let o = {
|
|
8305
8278
|
type: t,
|
|
8306
8279
|
xKey: N.value,
|
|
8307
|
-
yKey: mu(
|
|
8280
|
+
yKey: mu(J.value, a),
|
|
8308
8281
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
8309
8282
|
stacked: e,
|
|
8310
8283
|
label: {
|
|
8311
|
-
enabled:
|
|
8284
|
+
enabled: Ne.value,
|
|
8312
8285
|
color: e ? "white" : "black",
|
|
8313
8286
|
fontFamily: "Inter",
|
|
8314
8287
|
padding: 5,
|
|
@@ -8323,10 +8296,10 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8323
8296
|
let e = {
|
|
8324
8297
|
type: t,
|
|
8325
8298
|
xKey: N.value,
|
|
8326
|
-
yKey:
|
|
8327
|
-
yName:
|
|
8299
|
+
yKey: J.value,
|
|
8300
|
+
yName: De.value,
|
|
8328
8301
|
label: {
|
|
8329
|
-
enabled:
|
|
8302
|
+
enabled: Ne.value,
|
|
8330
8303
|
color: "black",
|
|
8331
8304
|
fontFamily: "Inter",
|
|
8332
8305
|
padding: 5,
|
|
@@ -8340,7 +8313,7 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8340
8313
|
let a = {};
|
|
8341
8314
|
if (t === "bar") {
|
|
8342
8315
|
let e = a;
|
|
8343
|
-
e.direction =
|
|
8316
|
+
e.direction = Ae.value ? "horizontal" : "vertical", a = e;
|
|
8344
8317
|
} else if (t === "line" || t === "area") {
|
|
8345
8318
|
let e = a;
|
|
8346
8319
|
e.connectMissingData = !0, a = e;
|
|
@@ -8348,39 +8321,39 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8348
8321
|
if (n = n.map((e) => ({
|
|
8349
8322
|
...e,
|
|
8350
8323
|
...a
|
|
8351
|
-
})),
|
|
8324
|
+
})), he.value.yAxis.defaultValue === "groupedRecordCount" && (n = n.map((e) => ({
|
|
8352
8325
|
...e,
|
|
8353
8326
|
tooltip: { renderer: (e) => {
|
|
8354
8327
|
let t = String(e.datum[e.xKey] ?? ""), n = e.datum.bucketMin, r = e.datum.bucketMax;
|
|
8355
|
-
return typeof n == "number" && typeof r == "number" && (t =
|
|
8328
|
+
return typeof n == "number" && typeof r == "number" && (t = ue(n, r)), {
|
|
8356
8329
|
title: t,
|
|
8357
8330
|
content: `Count: ${e.datum[e.yKey]}`
|
|
8358
8331
|
};
|
|
8359
8332
|
} }
|
|
8360
|
-
}))),
|
|
8333
|
+
}))), Y.value) {
|
|
8361
8334
|
let t;
|
|
8362
|
-
t = e ? `${
|
|
8363
|
-
let r =
|
|
8335
|
+
t = e ? `${Y.value}_sort_total` : Y.value;
|
|
8336
|
+
let r = le(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = fu(N.value, r, t, ke.value, Ae.value), a = {
|
|
8364
8337
|
type: "scatter",
|
|
8365
8338
|
id: "metric-overlay",
|
|
8366
8339
|
data: We.value,
|
|
8367
8340
|
...i,
|
|
8368
8341
|
label: { enabled: !1 }
|
|
8369
8342
|
};
|
|
8370
|
-
if (
|
|
8371
|
-
let e =
|
|
8372
|
-
a.tooltip = { renderer:
|
|
8343
|
+
if (Oe.value?.tooltipRenderer) {
|
|
8344
|
+
let e = Oe.value.tooltipRenderer;
|
|
8345
|
+
a.tooltip = { renderer: Ae.value ? (n) => e({
|
|
8373
8346
|
...n,
|
|
8374
8347
|
xKey: N.value,
|
|
8375
8348
|
xName: r,
|
|
8376
8349
|
yKey: t,
|
|
8377
|
-
yName:
|
|
8350
|
+
yName: ke.value
|
|
8378
8351
|
}) : e };
|
|
8379
8352
|
}
|
|
8380
8353
|
n = [...n, a];
|
|
8381
8354
|
}
|
|
8382
|
-
if (
|
|
8383
|
-
let e =
|
|
8355
|
+
if (q.value?.id === "histogram" && Q.value && Q.value.length > 0 && typeof Q.value[0]?.bucketMin == "number" && typeof Q.value[0]?.bucketMax == "number" && X.value.length > 0 && Q.value) {
|
|
8356
|
+
let e = Q.value.length, t = Number.isFinite(Ke.value) ? Ke.value : 0, r = {
|
|
8384
8357
|
type: "scatter",
|
|
8385
8358
|
xKey: "__dummy_x__",
|
|
8386
8359
|
yKey: "__dummy_y__",
|
|
@@ -8398,16 +8371,16 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8398
8371
|
type: "scatter",
|
|
8399
8372
|
xKey: "__dummy_x__",
|
|
8400
8373
|
yKey: "__dummy_y__",
|
|
8401
|
-
data:
|
|
8402
|
-
let t = tt(e.value,
|
|
8374
|
+
data: X.value.flatMap((e) => {
|
|
8375
|
+
let t = tt(e.value, Q.value || []);
|
|
8403
8376
|
if (t === null) return [];
|
|
8404
|
-
let n = Number.isFinite(Ke.value) ? Ke.value : 0, r =
|
|
8377
|
+
let n = Number.isFinite(Ke.value) ? Ke.value : 0, r = ce(j.value?.[0]), i = typeof r == "function" ? r({ value: e.value }) : e.value;
|
|
8405
8378
|
return Array.from({ length: 30 }, (r, a) => ({
|
|
8406
8379
|
value: i,
|
|
8407
8380
|
__dummy_x__: t,
|
|
8408
8381
|
__dummy_y__: n / 29 * a,
|
|
8409
8382
|
__dummy_overlay_label__: e.label,
|
|
8410
|
-
[
|
|
8383
|
+
[J.value]: n
|
|
8411
8384
|
}));
|
|
8412
8385
|
}),
|
|
8413
8386
|
size: 15,
|
|
@@ -8434,101 +8407,101 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8434
8407
|
];
|
|
8435
8408
|
}
|
|
8436
8409
|
return n;
|
|
8437
|
-
}),
|
|
8410
|
+
}), Le = r(() => I.value.length === 0 ? [] : [{
|
|
8438
8411
|
type: "pie",
|
|
8439
8412
|
legendItemKey: N.value,
|
|
8440
|
-
angleKey:
|
|
8413
|
+
angleKey: J.value
|
|
8441
8414
|
}]);
|
|
8442
|
-
|
|
8415
|
+
V(J, (e, t) => {
|
|
8443
8416
|
d("chart-state-changed", {
|
|
8444
8417
|
api: p.value,
|
|
8445
8418
|
newState: { seriesField: e },
|
|
8446
8419
|
oldState: { seriesField: t }
|
|
8447
8420
|
});
|
|
8448
|
-
}),
|
|
8421
|
+
}), V(Y, (e, t) => {
|
|
8449
8422
|
d("chart-state-changed", {
|
|
8450
8423
|
api: p.value,
|
|
8451
8424
|
newState: { secondarySeriesField: e },
|
|
8452
8425
|
oldState: { secondarySeriesField: t }
|
|
8453
8426
|
});
|
|
8454
|
-
}),
|
|
8455
|
-
e?.id && Ql(e.id).storeBeforeChange && (
|
|
8427
|
+
}), V(q, (e, t) => {
|
|
8428
|
+
e?.id && Ql(e.id).storeBeforeChange && (Fe.value ? pe.value = e.id : fe.value = e.id);
|
|
8456
8429
|
let n = Ql(e?.id || ""), r = Ql(t?.id || "");
|
|
8457
|
-
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ?
|
|
8458
|
-
l.yKey ?
|
|
8430
|
+
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ? J.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
8431
|
+
l.yKey ? J.value = l.yKey : I.value.length > 0 && (J.value = I.value[0].value);
|
|
8459
8432
|
}), d("chart-state-changed", {
|
|
8460
8433
|
api: p.value,
|
|
8461
8434
|
newState: { chartType: e?.id },
|
|
8462
8435
|
oldState: { chartType: t?.id }
|
|
8463
8436
|
});
|
|
8464
|
-
}),
|
|
8437
|
+
}), V(_e, (e) => {
|
|
8465
8438
|
if (e.length === 1 && j.value.length === 0) {
|
|
8466
8439
|
let t = e[0].field;
|
|
8467
8440
|
t && (j.value = [t]);
|
|
8468
8441
|
}
|
|
8469
|
-
}),
|
|
8470
|
-
e.length === 1 && !
|
|
8471
|
-
}),
|
|
8442
|
+
}), V(I, (e) => {
|
|
8443
|
+
e.length === 1 && !J.value && (J.value = e[0].value);
|
|
8444
|
+
}), V(we, (e, t) => {
|
|
8472
8445
|
d("chart-state-changed", {
|
|
8473
8446
|
api: p.value,
|
|
8474
8447
|
newState: { chartSort: e?.id },
|
|
8475
8448
|
oldState: { chartSort: t?.id }
|
|
8476
8449
|
});
|
|
8477
|
-
}),
|
|
8450
|
+
}), V(j, (e, t) => {
|
|
8478
8451
|
d("chart-state-changed", {
|
|
8479
8452
|
api: p.value,
|
|
8480
8453
|
newState: { chartCategoryFields: e },
|
|
8481
8454
|
oldState: { chartCategoryFields: t }
|
|
8482
8455
|
});
|
|
8483
|
-
}), B
|
|
8456
|
+
}), V(B, (e, t) => {
|
|
8484
8457
|
d("chart-state-changed", {
|
|
8485
8458
|
api: p.value,
|
|
8486
8459
|
newState: { tableGrouped: e },
|
|
8487
8460
|
oldState: { tableGrouped: t }
|
|
8488
8461
|
});
|
|
8489
|
-
}),
|
|
8462
|
+
}), V(() => l.isTableGrouped, (e, t) => {
|
|
8490
8463
|
!p.value || e === t || !l.enableGroupingToggle || st(e);
|
|
8491
|
-
}),
|
|
8464
|
+
}), V(() => l.initialFocusData, (e, t) => {
|
|
8492
8465
|
if (!($e(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
8493
8466
|
if (!e?.focusType) {
|
|
8494
|
-
|
|
8467
|
+
z.setFocuses([]);
|
|
8495
8468
|
return;
|
|
8496
8469
|
}
|
|
8497
|
-
|
|
8470
|
+
z.setFocusType(e?.focusType), z.setFocuses(e?.focuses ?? []);
|
|
8498
8471
|
}
|
|
8499
8472
|
}, { deep: !0 });
|
|
8500
|
-
let
|
|
8501
|
-
|
|
8502
|
-
},
|
|
8473
|
+
let Re = () => {
|
|
8474
|
+
ye.value = [], be.value = [], Ce.value = null;
|
|
8475
|
+
}, ze = (e, t) => {
|
|
8503
8476
|
if (!e || e.length === 0) {
|
|
8504
|
-
|
|
8477
|
+
Re();
|
|
8505
8478
|
return;
|
|
8506
8479
|
}
|
|
8507
8480
|
if (t) {
|
|
8508
|
-
let { stackedData: n, uniqueFieldValues: r } = gu(e, N.value, t,
|
|
8509
|
-
|
|
8481
|
+
let { stackedData: n, uniqueFieldValues: r } = gu(e, N.value, t, Ve.value, L.value);
|
|
8482
|
+
be.value = n, Ce.value = {
|
|
8510
8483
|
fieldName: t,
|
|
8511
8484
|
fieldValues: r
|
|
8512
8485
|
};
|
|
8513
|
-
} else
|
|
8514
|
-
|
|
8515
|
-
},
|
|
8486
|
+
} else be.value = [], Ce.value = null;
|
|
8487
|
+
ye.value = e;
|
|
8488
|
+
}, Be = (e) => {
|
|
8516
8489
|
let t = ++T.value, n = j.value.length;
|
|
8517
|
-
if (
|
|
8490
|
+
if (Re(), C.value = !1, n === 0 || I.value.length === 0 || l.requireFiltersToShowData && R.filterModelEmpty.value) return;
|
|
8518
8491
|
if (l.serverSideChartHandler) {
|
|
8519
|
-
let e =
|
|
8492
|
+
let e = R.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
8520
8493
|
if (e === null && l.initialGridState) {
|
|
8521
8494
|
let t = Hs(l.initialGridState, n, l.enableAdvancedFilter);
|
|
8522
8495
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
8523
8496
|
}
|
|
8524
8497
|
e ||= {};
|
|
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() ===
|
|
8498
|
+
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() === J.value || i.has(e.getColId())), o = {
|
|
8526
8499
|
rowGroupCols: r || [],
|
|
8527
8500
|
valueCols: Ms(a || []),
|
|
8528
8501
|
filterModel: e
|
|
8529
8502
|
};
|
|
8530
8503
|
C.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
8531
|
-
t === T.value && (
|
|
8504
|
+
t === T.value && (ze(e.data, e.stackField), C.value = !1);
|
|
8532
8505
|
}).catch((e) => {
|
|
8533
8506
|
t === T.value && (console.error("Chart handler error:", e), C.value = !1);
|
|
8534
8507
|
});
|
|
@@ -8539,27 +8512,27 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8539
8512
|
if (e.forEachNodeAfterFilterAndSort((e) => {
|
|
8540
8513
|
if (e.group && e.level === 0) {
|
|
8541
8514
|
if (j.value.length > 1) {
|
|
8542
|
-
let { rowData: t, fieldValues: n } =
|
|
8515
|
+
let { rowData: t, fieldValues: n } = Z(e, e.childrenAfterFilter?.filter((e) => e.level === 1 && e.aggData) || []);
|
|
8543
8516
|
a = a.union(n), i?.push(t);
|
|
8544
8517
|
}
|
|
8545
|
-
let t =
|
|
8518
|
+
let t = He(e);
|
|
8546
8519
|
r?.push(t);
|
|
8547
8520
|
}
|
|
8548
|
-
}),
|
|
8521
|
+
}), ye.value = r, j.value.length > 1 && i && i.length > 0) {
|
|
8549
8522
|
let e = j.value[1] || "";
|
|
8550
|
-
|
|
8523
|
+
be.value = i, Ce.value = {
|
|
8551
8524
|
fieldName: e,
|
|
8552
8525
|
fieldValues: Array.from(a)
|
|
8553
8526
|
};
|
|
8554
|
-
} else
|
|
8555
|
-
},
|
|
8556
|
-
let e = I.value, t =
|
|
8527
|
+
} else be.value = [], Ce.value = null;
|
|
8528
|
+
}, Ve = r(() => {
|
|
8529
|
+
let e = I.value, t = ee.value;
|
|
8557
8530
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
8558
|
-
}),
|
|
8531
|
+
}), He = (e) => {
|
|
8559
8532
|
let t = { [e.field]: e.key };
|
|
8560
|
-
for (let n of
|
|
8533
|
+
for (let n of Ve.value) !e.aggData || !e.aggData[n.value] || (t[n.value] = e.aggData[n.value]?.value ?? e.aggData[n.value]);
|
|
8561
8534
|
return t;
|
|
8562
|
-
},
|
|
8535
|
+
}, Z = (e, t) => {
|
|
8563
8536
|
let n = /* @__PURE__ */ new Set(), r = { [e.field]: e.key }, i = 0;
|
|
8564
8537
|
for (let a of I.value) t.forEach((t) => {
|
|
8565
8538
|
let o = t.key;
|
|
@@ -8576,18 +8549,18 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8576
8549
|
rowData: r,
|
|
8577
8550
|
fieldValues: n
|
|
8578
8551
|
};
|
|
8579
|
-
},
|
|
8580
|
-
let e =
|
|
8581
|
-
if (
|
|
8582
|
-
let n =
|
|
8552
|
+
}, Q = r(() => {
|
|
8553
|
+
let e = je.value ? be.value : ye.value, t = null;
|
|
8554
|
+
if (we.value && (t = je.value ? `${J.value}${bs}` : J.value), t && e && we.value) {
|
|
8555
|
+
let n = we.value?.id.includes("desc") ? -1 : 1;
|
|
8583
8556
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
8584
8557
|
}
|
|
8585
8558
|
if (e && e.length === 1 && (e = [
|
|
8586
8559
|
{ [N.value]: "" },
|
|
8587
8560
|
e[0],
|
|
8588
8561
|
{ [N.value]: " " }
|
|
8589
|
-
]), l.enableFocusView && e &&
|
|
8590
|
-
let t = e?.filter((e) =>
|
|
8562
|
+
]), l.enableFocusView && e && G.value.length > 0 && W.value) {
|
|
8563
|
+
let t = e?.filter((e) => G.value.includes(e[N.value])), n = e?.filter((e) => !G.value.includes(e[N.value]));
|
|
8591
8564
|
e = [
|
|
8592
8565
|
...t || [],
|
|
8593
8566
|
{ [N.value]: ys },
|
|
@@ -8596,14 +8569,14 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8596
8569
|
}
|
|
8597
8570
|
return e;
|
|
8598
8571
|
}), Ue = new Set(["", " "]), We = r(() => {
|
|
8599
|
-
let e = (
|
|
8572
|
+
let e = (Q.value ?? []).filter((e) => {
|
|
8600
8573
|
let t = e?.[N.value];
|
|
8601
8574
|
return !Ue.has(String(t));
|
|
8602
|
-
}), t =
|
|
8603
|
-
if (!
|
|
8604
|
-
let n =
|
|
8575
|
+
}), t = Y.value;
|
|
8576
|
+
if (!je.value || !t || !Ce.value) return e;
|
|
8577
|
+
let n = le(t);
|
|
8605
8578
|
if ((typeof n?.aggFunc == "string" ? n.aggFunc : "") === "sum") return e;
|
|
8606
|
-
let r = `${t}${bs}`, i =
|
|
8579
|
+
let r = `${t}${bs}`, i = Ce.value.fieldValues;
|
|
8607
8580
|
return e.map((e) => {
|
|
8608
8581
|
let n = e[r];
|
|
8609
8582
|
if (typeof n != "number") return e;
|
|
@@ -8614,14 +8587,14 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8614
8587
|
[r]: a > 0 ? n / a : null
|
|
8615
8588
|
};
|
|
8616
8589
|
});
|
|
8617
|
-
}), Ge = r(() =>
|
|
8590
|
+
}), Ge = r(() => Q.value?.length || 0), Ke = r(() => _u(je.value ? be.value : Q.value, J.value, je.value)), qe = r(() => Ce.value?.fieldValues?.length || 0), Je = r(() => {
|
|
8618
8591
|
let e = .25 * Math.exp(-.12 * Ge.value);
|
|
8619
8592
|
return Math.min(Math.max(e, .05), .75);
|
|
8620
|
-
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !
|
|
8621
|
-
let e =
|
|
8593
|
+
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !Q.value || Q.value?.length === 0 ? !0 : Ke.value === -Infinity || je.value === !0 && Ke.value === 0), Qe = r(() => !!(l.enableFocusView && W.value && G.value.length === 0 && l.percentOfFocusViewYKey && J.value && J.value === l.percentOfFocusViewYKey)), et = r(() => {
|
|
8594
|
+
let e = le(W.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
8622
8595
|
return pu({
|
|
8623
8596
|
currentRowGroupColumnsLength: j.value.length,
|
|
8624
|
-
shouldShowFocusOverlayText: Qe.value || l.focusRequired &&
|
|
8597
|
+
shouldShowFocusOverlayText: Qe.value || l.focusRequired && G.value.length === 0,
|
|
8625
8598
|
chartDataEmpty: Ze.value,
|
|
8626
8599
|
missingFocusText: l.missingFocusText,
|
|
8627
8600
|
displayGroupByName: t
|
|
@@ -8636,22 +8609,22 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8636
8609
|
}
|
|
8637
8610
|
}
|
|
8638
8611
|
return null;
|
|
8639
|
-
}, nt = r(() => Qe.value ||
|
|
8612
|
+
}, nt = r(() => Qe.value || re.value || !l.isLoading && et.value !== ""), rt = r(() => {
|
|
8640
8613
|
let e = {};
|
|
8641
|
-
e.overlays = { noData: { text: "" } }, e.data = nt.value ? [] :
|
|
8614
|
+
e.overlays = { noData: { text: "" } }, e.data = nt.value ? [] : Q.value, e.legend = {
|
|
8642
8615
|
toggleSeries: !1,
|
|
8643
8616
|
preventHidingAll: !0,
|
|
8644
8617
|
enabled: j.value.length > 1
|
|
8645
8618
|
};
|
|
8646
|
-
let t =
|
|
8647
|
-
if (!
|
|
8648
|
-
let e =
|
|
8649
|
-
return
|
|
8650
|
-
})(), r =
|
|
8619
|
+
let t = je.value ? Ce.value?.fieldValues.map((e) => mu(J.value, e)) || [] : J.value ? [J.value] : [], n = (() => {
|
|
8620
|
+
if (!Y.value) return [];
|
|
8621
|
+
let e = Y.value;
|
|
8622
|
+
return Pe.value ? [`${e}${bs}`] : je.value ? Ce.value?.fieldValues.map((t) => mu(e, String(t))) || [] : [e];
|
|
8623
|
+
})(), r = he.value.xAxis.hideLabel === !0, i = q.value?.id === "histogram" && Q.value && Q.value.length > 0 && typeof Q.value[0]?.bucketMin == "number" && typeof Q.value[0]?.bucketMax == "number", a = [];
|
|
8651
8624
|
if (a.push({
|
|
8652
8625
|
type: "category",
|
|
8653
8626
|
keys: [N.value],
|
|
8654
|
-
position:
|
|
8627
|
+
position: Ae.value ? "left" : "bottom",
|
|
8655
8628
|
crossLines: [{
|
|
8656
8629
|
type: "line",
|
|
8657
8630
|
value: ys,
|
|
@@ -8668,9 +8641,9 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8668
8641
|
wrapping: "never",
|
|
8669
8642
|
formatter: r ? () => "" : (e) => {
|
|
8670
8643
|
if (e.value === "--SEPARATOR--") return "";
|
|
8671
|
-
let t = e.value, n =
|
|
8644
|
+
let t = e.value, n = ce(N.value);
|
|
8672
8645
|
typeof n == "function" && (t = n(e));
|
|
8673
|
-
let r = l.enableFocusView &&
|
|
8646
|
+
let r = l.enableFocusView && G.value.includes(e.value) ? ` (${l.focusText})` : "";
|
|
8674
8647
|
if (typeof t == "string" && t.length + r.length > 50 && !e.context?.tooltip) {
|
|
8675
8648
|
let e = 50 - r.length - 3;
|
|
8676
8649
|
return t.substring(0, e) + "..." + r;
|
|
@@ -8681,12 +8654,12 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8681
8654
|
paddingInner: Je.value,
|
|
8682
8655
|
paddingOuter: Ye.value,
|
|
8683
8656
|
groupPaddingInner: Xe.value
|
|
8684
|
-
}), i &&
|
|
8685
|
-
let e =
|
|
8657
|
+
}), i && X.value.length > 0) {
|
|
8658
|
+
let e = Q.value?.length || 1;
|
|
8686
8659
|
a.push({
|
|
8687
8660
|
type: "number",
|
|
8688
8661
|
keys: ["__dummy_x__"],
|
|
8689
|
-
position:
|
|
8662
|
+
position: Ae.value ? "left" : "bottom",
|
|
8690
8663
|
crosshair: { enabled: !1 },
|
|
8691
8664
|
min: -1,
|
|
8692
8665
|
max: e + 1,
|
|
@@ -8695,9 +8668,9 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8695
8668
|
tick: { enabled: !1 },
|
|
8696
8669
|
line: { enabled: !1 },
|
|
8697
8670
|
gridLine: { enabled: !1 },
|
|
8698
|
-
crossLines:
|
|
8699
|
-
if (!
|
|
8700
|
-
let t = tt(e.value,
|
|
8671
|
+
crossLines: X.value.map((e) => {
|
|
8672
|
+
if (!Q.value) return null;
|
|
8673
|
+
let t = tt(e.value, Q.value);
|
|
8701
8674
|
return t == null ? null : {
|
|
8702
8675
|
type: "line",
|
|
8703
8676
|
value: t,
|
|
@@ -8712,25 +8685,25 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8712
8685
|
if (a.push({
|
|
8713
8686
|
type: "number",
|
|
8714
8687
|
keys: t,
|
|
8715
|
-
position:
|
|
8716
|
-
label: { formatter:
|
|
8688
|
+
position: Ae.value ? "bottom" : "left",
|
|
8689
|
+
label: { formatter: ce(J.value) },
|
|
8717
8690
|
title: {
|
|
8718
8691
|
enabled: !0,
|
|
8719
|
-
text:
|
|
8692
|
+
text: De.value
|
|
8720
8693
|
}
|
|
8721
|
-
}),
|
|
8694
|
+
}), Y.value && a.push({
|
|
8722
8695
|
type: "number",
|
|
8723
8696
|
keys: n,
|
|
8724
|
-
position:
|
|
8697
|
+
position: Ae.value ? "top" : "right",
|
|
8725
8698
|
crosshair: { enabled: !1 },
|
|
8726
8699
|
min: 0,
|
|
8727
8700
|
label: { color: ut },
|
|
8728
8701
|
title: {
|
|
8729
8702
|
enabled: !0,
|
|
8730
|
-
text:
|
|
8703
|
+
text: ke.value,
|
|
8731
8704
|
color: ut
|
|
8732
8705
|
}
|
|
8733
|
-
}), i &&
|
|
8706
|
+
}), i && X.value.length > 0) {
|
|
8734
8707
|
let e = Number.isFinite(Ke.value) ? Ke.value : 0;
|
|
8735
8708
|
a.push({
|
|
8736
8709
|
type: "number",
|
|
@@ -8746,23 +8719,23 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8746
8719
|
gridLine: { enabled: !1 }
|
|
8747
8720
|
});
|
|
8748
8721
|
}
|
|
8749
|
-
return e.axes = a, e.series =
|
|
8750
|
-
}), it = r(() => C.value || l.isLoading && (!
|
|
8722
|
+
return e.axes = a, e.series = Me.value, e;
|
|
8723
|
+
}), it = r(() => C.value || l.isLoading && (!Q.value || Q.value.length === 0)), at = r(() => Qe.value || !re.value && !l.isLoading && et.value !== ""), ot = (e) => {
|
|
8751
8724
|
g.value = e, d("chart-collapsed", e);
|
|
8752
8725
|
}, st = (e) => {
|
|
8753
|
-
p.value && (p.value.setRowGroupColumns(e ? j.value : []),
|
|
8726
|
+
p.value && (p.value.setRowGroupColumns(e ? j.value : []), B.value = e);
|
|
8754
8727
|
};
|
|
8755
8728
|
return n({
|
|
8756
8729
|
getChartImageDataURL: (e) => h.value?.getChartImageDataURL(e),
|
|
8757
8730
|
getCsvData: () => m.value?.getCsvData(),
|
|
8758
|
-
refreshData: (e) => (p.value &&
|
|
8731
|
+
refreshData: (e) => (p.value && Be(p.value), m.value?.refreshData(e)),
|
|
8759
8732
|
getFilterValueSelectedMetadataMap: () => m.value?.getFilterValueSelectedMetadataMap(),
|
|
8760
8733
|
getPvFilterModel: () => m.value?.getPvFilterModel(),
|
|
8761
8734
|
setPvFilterModel: (e) => m.value?.setPvFilterModel(e)
|
|
8762
8735
|
}), S(() => {
|
|
8763
8736
|
if (l.initialGridState) {
|
|
8764
8737
|
let e = l.initialGridState.rowGroup?.groupColIds || [];
|
|
8765
|
-
j.value = e, !l.allFieldsAreFocusable && e.length > 0 &&
|
|
8738
|
+
j.value = e, !l.allFieldsAreFocusable && e.length > 0 && z.setFocusType(e[0]);
|
|
8766
8739
|
}
|
|
8767
8740
|
}), w(async () => {
|
|
8768
8741
|
await v(), x.value = l.filterPanelAboveChart;
|
|
@@ -8797,9 +8770,9 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8797
8770
|
onClick: r[1] ||= (e) => ot(!g.value)
|
|
8798
8771
|
})], 2),
|
|
8799
8772
|
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(du, {
|
|
8800
|
-
enablePanel:
|
|
8773
|
+
enablePanel: Q.value != null && Q.value.length > 0,
|
|
8801
8774
|
chartFilter: e.chartFilter,
|
|
8802
|
-
rowGroupLimit:
|
|
8775
|
+
rowGroupLimit: ge.value,
|
|
8803
8776
|
"use-combined-button": l.enableCombinedChartConfigPanel,
|
|
8804
8777
|
"chart-config-options": l.chartConfigPanelOptions
|
|
8805
8778
|
}, null, 8, [
|
|
@@ -8818,17 +8791,17 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8818
8791
|
"isLoading",
|
|
8819
8792
|
"options",
|
|
8820
8793
|
"enableFocusView"
|
|
8821
|
-
]), s("div", Su, [
|
|
8794
|
+
]), s("div", Su, [re.value ? (E(), o("div", Cu, [(E(), i(M(e.emptyChartFilterRenderer)))])) : at.value ? (E(), o("p", wu, P(et.value), 1)) : a("", !0)])])], 2)
|
|
8822
8795
|
])),
|
|
8823
8796
|
u(wl, _({
|
|
8824
8797
|
ref_key: "pvDataTableRef",
|
|
8825
8798
|
ref: m
|
|
8826
8799
|
}, n.$props, {
|
|
8827
8800
|
filterTeleportLocation: x.value ? `#${b}` : void 0,
|
|
8828
|
-
pagination: e.pagination || !
|
|
8829
|
-
onColumnRowGroupChanged:
|
|
8830
|
-
onGridReady:
|
|
8831
|
-
onFilterChanged:
|
|
8801
|
+
pagination: e.pagination || !B.value,
|
|
8802
|
+
onColumnRowGroupChanged: K,
|
|
8803
|
+
onGridReady: ie,
|
|
8804
|
+
onFilterChanged: oe,
|
|
8832
8805
|
onSortChanged: r[3] ||= (e) => d("sort-changed", e),
|
|
8833
8806
|
onFilterOpened: r[4] ||= (e) => d("filter-opened", e),
|
|
8834
8807
|
onFirstDataRendered: ae,
|
|
@@ -8837,17 +8810,17 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8837
8810
|
onHandleSettingsIcon: r[7] ||= (e) => d("handle-settings-icon", e),
|
|
8838
8811
|
onFocusUpdate: r[8] ||= (e) => d("focus-update", e)
|
|
8839
8812
|
}), {
|
|
8840
|
-
"top-slot":
|
|
8813
|
+
"top-slot": H(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(Nl, {
|
|
8841
8814
|
key: 0,
|
|
8842
|
-
groupedModeEnabled:
|
|
8815
|
+
groupedModeEnabled: B.value,
|
|
8843
8816
|
tableConfigOptions: l.tableConfigOptions,
|
|
8844
8817
|
onToggleGroup: st,
|
|
8845
|
-
onTableOverlayChange:
|
|
8818
|
+
onTableOverlayChange: U
|
|
8846
8819
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (E(), i(mn, {
|
|
8847
8820
|
key: 1,
|
|
8848
|
-
leftIcon:
|
|
8849
|
-
label:
|
|
8850
|
-
onClick: r[2] ||= (e) => st(!
|
|
8821
|
+
leftIcon: B.value ? "ungroup" : "group",
|
|
8822
|
+
label: B.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
8823
|
+
onClick: r[2] ||= (e) => st(!B.value),
|
|
8851
8824
|
variant: "secondary",
|
|
8852
8825
|
size: "lg"
|
|
8853
8826
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), A(n.$slots, "top-slot")]),
|
|
@@ -11769,16 +11742,16 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11769
11742
|
}),
|
|
11770
11743
|
emits: ["update:modelValue"],
|
|
11771
11744
|
setup(e) {
|
|
11772
|
-
let t =
|
|
11745
|
+
let t = L(e, "modelValue"), n = O(void 0), a = e, o = r(() => {
|
|
11773
11746
|
if (a.topologyType !== "state") throw Error(`Unsupported topology type for state selector: ${a.topologyType}`);
|
|
11774
11747
|
return (a.selectableRegions ? a.selectableRegions : Object.keys(Nu)).map((e) => ({
|
|
11775
11748
|
text: Au(e),
|
|
11776
11749
|
id: e
|
|
11777
11750
|
}));
|
|
11778
11751
|
});
|
|
11779
|
-
return
|
|
11752
|
+
return V(n, (e) => {
|
|
11780
11753
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
11781
|
-
}),
|
|
11754
|
+
}), V(t, (e) => {
|
|
11782
11755
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
11783
11756
|
}), (e, t) => (E(), i(Xa, {
|
|
11784
11757
|
style: { width: "125px" },
|
|
@@ -11831,8 +11804,8 @@ var pu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11831
11804
|
}),
|
|
11832
11805
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
11833
11806
|
setup(e, { emit: n }) {
|
|
11834
|
-
let i = e, a =
|
|
11835
|
-
|
|
11807
|
+
let i = e, a = L(e, "chartData"), c = L(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]));
|
|
11808
|
+
V(c, (e) => {
|
|
11836
11809
|
l("region-selection-changed", { region: e });
|
|
11837
11810
|
});
|
|
11838
11811
|
let g = r(() => (c.value, {
|