@turquoisehealth/pit-viper 2.181.0 → 2.181.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +528 -507
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
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-1ce1cb53]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-1ce1cb53]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-1ce1cb53]{background-color:#e0e5e4}.pv-text-secondary[data-v-1ce1cb53]{color:#4b595c}.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-6a2265bf]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-6a2265bf]{opacity:1}.pv-menu-item-disabled[data-v-c54482c5]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-c54482c5]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-c54482c5]:hover,&[data-v-c54482c5]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-c54482c5]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-c54482c5]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-toggle[data-v-c54482c5]{cursor:pointer;color:inherit;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;margin-left:auto;padding:4px;display:flex}.pv-menu-item-expand-toggle[data-v-c54482c5]:hover{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-fe24a346]{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-fe24a346]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-fe24a346]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-fe24a346]: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-4858a6da]:hover{color:#16696d}.suggested-title-label[data-v-4858a6da]:hover{color:#0d5256;text-decoration:underline}.ag-custom-header-cell[data-v-9a0f71b4]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-9a0f71b4]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-9a0f71b4],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-9a0f71b4]{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-ee6b788e]{color:#89989b}.pv-button-placeholder[data-v-ee6b788e]{width:24px;height:24px}.pv-sort-option[data-v-ee6b788e]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-ee6b788e]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-ee6b788e]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-ee6b788e]{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-ee6b788e]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-ee6b788e]{display:flex}.sort-divider[data-v-ee6b788e]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-ee6b788e]: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-23fdba3f]:after{content:"›"}.pv-tooltip a[data-v-23fdba3f]{color:inherit}.pv-chart-option[data-v-23fdba3f]{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, useModel as L, useSlots as
|
|
4
|
-
import { AgCharts as
|
|
5
|
-
import { LicenseManager 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, useModel as L, useSlots as ee, useTemplateRef as te, vModelCheckbox as R, vModelText as z, vShow as ne, watch as B, withCtx as V, withDirectives as H, withModifiers as U } from "vue";
|
|
4
|
+
import { AgCharts as W } from "ag-charts-vue3";
|
|
5
|
+
import { LicenseManager as G } from "ag-charts-enterprise";
|
|
6
6
|
import { AgGridVue as re } from "ag-grid-vue3";
|
|
7
|
-
import { CellStyleModule as ie, CheckboxEditorModule as ae, ClientSideRowModelModule as oe, ColumnApiModule as se, CsvExportModule as ce, CustomEditorModule as le, CustomFilterModule as ue, DateEditorModule as de, EventApiModule as
|
|
7
|
+
import { CellStyleModule as ie, CheckboxEditorModule as ae, ClientSideRowModelModule as oe, ColumnApiModule as se, CsvExportModule as ce, CustomEditorModule as le, CustomFilterModule as ue, DateEditorModule as de, EventApiModule as K, GridStateModule as fe, LargeTextEditorModule as pe, ModuleRegistry as me, NumberEditorModule as he, PaginationModule as ge, QuickFilterModule as _e, RowApiModule as ve, RowStyleModule as q, ScrollApiModule as ye, SelectEditorModule as be, TextEditorModule as xe, TextFilterModule as Se, UndoRedoEditModule as Ce, themeQuartz as we } from "ag-grid-community";
|
|
8
8
|
import { AdvancedFilterModule as Te, CellSelectionModule as Ee, ClientSideRowModelApiModule as De, ClipboardModule as Oe, ColumnMenuModule as ke, ContextMenuModule as Ae, LicenseManager as je, MultiFilterModule as Me, RenderApiModule as Ne, RichSelectModule as Pe, RowGroupingModule as Fe, RowSelectionModule as Ie, ServerSideRowModelApiModule as Le, ServerSideRowModelModule as Re, SetFilterModule as ze, TooltipModule as Be, ValidationModule as Ve } from "ag-grid-enterprise";
|
|
9
9
|
import { onClickOutside as He, onKeyStroke as Ue, toRef as J, useDebounceFn as Y, useElementBounding as We, useElementHover as Ge, useToggle as Ke, watchDebounced as qe } from "@vueuse/core";
|
|
10
10
|
import Je from "papaparse";
|
|
@@ -229,7 +229,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
229
229
|
emits: ["series-visibility-change"],
|
|
230
230
|
setup(e, { expose: n, emit: c }) {
|
|
231
231
|
let l = e, d = c;
|
|
232
|
-
|
|
232
|
+
G.setLicenseKey(Ut);
|
|
233
233
|
let f = O(null), p = O({}), m = () => {
|
|
234
234
|
if (!f.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
235
235
|
let e = f.value.$el;
|
|
@@ -337,7 +337,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
337
337
|
width: e?.width,
|
|
338
338
|
height: e?.height
|
|
339
339
|
}) }), (n, r) => (E(), o("div", Nt, [
|
|
340
|
-
u(I(
|
|
340
|
+
u(I(W), {
|
|
341
341
|
ref_key: "chartRef",
|
|
342
342
|
ref: f,
|
|
343
343
|
style: x([{ height: "100%" }, g.value ? "" : `min-height: ${e.minHeight}px`]),
|
|
@@ -374,7 +374,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
374
374
|
},
|
|
375
375
|
emits: ["list-order-updated"],
|
|
376
376
|
setup(e, { expose: t, emit: n }) {
|
|
377
|
-
let r = O(null), i =
|
|
377
|
+
let r = O(null), i = te("popoverList"), a = e, s = n;
|
|
378
378
|
return a.isSortable && a.isList && Ye(i, [], {
|
|
379
379
|
animation: 150,
|
|
380
380
|
onUpdate: () => {
|
|
@@ -443,7 +443,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
443
443
|
}, C = () => {
|
|
444
444
|
p.value = !1;
|
|
445
445
|
};
|
|
446
|
-
t({ closeDropdown: C }),
|
|
446
|
+
t({ closeDropdown: C }), B(p, (e) => {
|
|
447
447
|
e ? v(() => {
|
|
448
448
|
b(), f("dropdown-open");
|
|
449
449
|
}) : f("dropdown-closed");
|
|
@@ -455,7 +455,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
455
455
|
zIndex: 10,
|
|
456
456
|
...d.popoverCssProperties
|
|
457
457
|
} : d.popoverCssProperties);
|
|
458
|
-
return (t, r) =>
|
|
458
|
+
return (t, r) => H((E(), o("div", Yt, [s("button", {
|
|
459
459
|
ref_key: "triggerRef",
|
|
460
460
|
ref: m,
|
|
461
461
|
class: y({
|
|
@@ -478,7 +478,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
478
478
|
isSortable: e.isSortable,
|
|
479
479
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
480
480
|
}, {
|
|
481
|
-
default:
|
|
481
|
+
default: V(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span", Zt, "Loading...")) : a("", !0)], !0)]),
|
|
482
482
|
_: 3
|
|
483
483
|
}, 8, [
|
|
484
484
|
"class",
|
|
@@ -640,7 +640,7 @@ function pn(e, t) {
|
|
|
640
640
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
641
641
|
}
|
|
642
642
|
function mn(e, t = {}) {
|
|
643
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = $t(), l = i ??
|
|
643
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = $t(), l = i ?? ee(), u = r(() => c.value || !l ? !1 : !!l[e === "default" || e === "" ? "default" : e]), d = O(!1), f = null, p = null, m = () => {
|
|
644
644
|
f &&= (f.disconnect(), null), p &&= (p.removeEventListener("slotchange", h), null);
|
|
645
645
|
}, h = () => {
|
|
646
646
|
if (!c.value) {
|
|
@@ -674,7 +674,7 @@ function mn(e, t = {}) {
|
|
|
674
674
|
characterData: !0
|
|
675
675
|
}));
|
|
676
676
|
};
|
|
677
|
-
return w(g), C(m),
|
|
677
|
+
return w(g), C(m), B(() => I(n), () => {
|
|
678
678
|
c.value && g();
|
|
679
679
|
}), {
|
|
680
680
|
present: r(() => c.value ? d.value : u.value),
|
|
@@ -777,7 +777,7 @@ var hn = [
|
|
|
777
777
|
"data-testid": "pv-tag-close-icon",
|
|
778
778
|
size: 12,
|
|
779
779
|
name: "close",
|
|
780
|
-
onClick: r[0] ||=
|
|
780
|
+
onClick: r[0] ||= U((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
781
781
|
})) : a("", !0)
|
|
782
782
|
], 14, vn));
|
|
783
783
|
}
|
|
@@ -1593,13 +1593,13 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1593
1593
|
strategy: t.positioningStrategy,
|
|
1594
1594
|
middleware: h
|
|
1595
1595
|
});
|
|
1596
|
-
|
|
1596
|
+
B(c, (e) => {
|
|
1597
1597
|
e && u.value && d.value && _();
|
|
1598
1598
|
});
|
|
1599
1599
|
let v = We(u), y = Y(() => {
|
|
1600
1600
|
c.value && _();
|
|
1601
1601
|
}, 5);
|
|
1602
|
-
|
|
1602
|
+
B([
|
|
1603
1603
|
v.top,
|
|
1604
1604
|
v.left,
|
|
1605
1605
|
v.width,
|
|
@@ -1618,9 +1618,9 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1618
1618
|
}, k = () => {
|
|
1619
1619
|
t.disableClickOutsideToClose || S(!1);
|
|
1620
1620
|
};
|
|
1621
|
-
return
|
|
1621
|
+
return B(T, (e) => {
|
|
1622
1622
|
t.showOnHover && S(e);
|
|
1623
|
-
}), (r, u) =>
|
|
1623
|
+
}), (r, u) => H((E(), o("div", ui, [s("div", {
|
|
1624
1624
|
ref_key: "triggerWrapper",
|
|
1625
1625
|
ref: l,
|
|
1626
1626
|
onClick: D
|
|
@@ -1628,12 +1628,12 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1628
1628
|
key: 0,
|
|
1629
1629
|
to: e.teleportLocation,
|
|
1630
1630
|
disabled: !t.useTeleport
|
|
1631
|
-
}, [
|
|
1631
|
+
}, [H(s("div", {
|
|
1632
1632
|
class: "pv-floating",
|
|
1633
1633
|
ref_key: "floating",
|
|
1634
1634
|
ref: d,
|
|
1635
1635
|
style: x(b.value)
|
|
1636
|
-
}, [A(r.$slots, "content")], 4), [[
|
|
1636
|
+
}, [A(r.$slots, "content")], 4), [[ne, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[I(Xe), [k, { ignore: C.value }]]]);
|
|
1637
1637
|
}
|
|
1638
1638
|
}), fi = /* @__PURE__ */ d({
|
|
1639
1639
|
__name: "PvSegmentedControl",
|
|
@@ -1655,7 +1655,7 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1655
1655
|
position: "bottom-right",
|
|
1656
1656
|
style: { width: "100%" }
|
|
1657
1657
|
}, c({
|
|
1658
|
-
trigger:
|
|
1658
|
+
trigger: V(() => [u(I(X), {
|
|
1659
1659
|
class: y(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1660
1660
|
variant: "ghost",
|
|
1661
1661
|
label: e.label,
|
|
@@ -1676,7 +1676,7 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1676
1676
|
_: 2
|
|
1677
1677
|
}, [e.disabledReason ? {
|
|
1678
1678
|
name: "content",
|
|
1679
|
-
fn:
|
|
1679
|
+
fn: V(() => [l(P(e.disabledReason), 1)]),
|
|
1680
1680
|
key: "0"
|
|
1681
1681
|
} : void 0]), 1024))), 128))], 2));
|
|
1682
1682
|
}
|
|
@@ -1700,7 +1700,7 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1700
1700
|
"pv-icon": n.value,
|
|
1701
1701
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1702
1702
|
})), c = r(() => ({ width: i.value })), l = r(() => t.toCamelCase ? Ze(t.name) + ".svg" : t.name + ".svg"), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
1703
|
-
return
|
|
1703
|
+
return B(u, () => {
|
|
1704
1704
|
n.value = !0;
|
|
1705
1705
|
}), (e, t) => (E(), o("div", pi, [n.value ? (E(), o("div", {
|
|
1706
1706
|
key: 0,
|
|
@@ -1747,8 +1747,8 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1747
1747
|
}),
|
|
1748
1748
|
emits: ["update:modelValue"],
|
|
1749
1749
|
setup(e) {
|
|
1750
|
-
let t = e, n =
|
|
1751
|
-
|
|
1750
|
+
let t = e, n = te("dialog"), r = L(e, "modelValue");
|
|
1751
|
+
B(() => r.value, () => {
|
|
1752
1752
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
1753
1753
|
});
|
|
1754
1754
|
let i = () => {
|
|
@@ -1837,7 +1837,7 @@ var Ci = [
|
|
|
1837
1837
|
}),
|
|
1838
1838
|
emits: ["update:modelValue"],
|
|
1839
1839
|
setup(e, { expose: t }) {
|
|
1840
|
-
let n = e, i =
|
|
1840
|
+
let n = e, i = te("search-input"), c = L(e, "modelValue"), l = r(() => ({
|
|
1841
1841
|
"pv-input-search": !0,
|
|
1842
1842
|
"pv-full-width": !0,
|
|
1843
1843
|
"pv-input-padded-end": !0
|
|
@@ -1847,7 +1847,7 @@ var Ci = [
|
|
|
1847
1847
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
1848
1848
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
1849
1849
|
});
|
|
1850
|
-
}), t({ input: i }), (t, n) => (E(), o("div", Ei, [
|
|
1850
|
+
}), t({ input: i }), (t, n) => (E(), o("div", Ei, [H(s("input", {
|
|
1851
1851
|
ref: "search-input",
|
|
1852
1852
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1853
1853
|
"data-testid": "pv-search-input",
|
|
@@ -1855,7 +1855,7 @@ var Ci = [
|
|
|
1855
1855
|
disabled: e.disabled,
|
|
1856
1856
|
class: y(l.value),
|
|
1857
1857
|
placeholder: e.placeholder
|
|
1858
|
-
}, null, 10, Di), [[
|
|
1858
|
+
}, null, 10, Di), [[z, c.value]]), e.displayShortcut ? (E(), o("kbd", Oi, P(ki))) : a("", !0)]));
|
|
1859
1859
|
}
|
|
1860
1860
|
});
|
|
1861
1861
|
Qe.extend(tt), Qe.extend($e), Qe.extend(et);
|
|
@@ -1906,7 +1906,7 @@ var ji = {
|
|
|
1906
1906
|
}),
|
|
1907
1907
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
1908
1908
|
setup(e, { emit: n }) {
|
|
1909
|
-
let r = e, i = n, c =
|
|
1909
|
+
let r = e, i = n, c = te("sidePanel"), l = L(e, "searchInput"), d = L(e, "modelValue");
|
|
1910
1910
|
w(() => {
|
|
1911
1911
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && f();
|
|
1912
1912
|
});
|
|
@@ -1917,7 +1917,7 @@ var ji = {
|
|
|
1917
1917
|
}, p = () => {
|
|
1918
1918
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
1919
1919
|
};
|
|
1920
|
-
return
|
|
1920
|
+
return B(() => d.value, () => {
|
|
1921
1921
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
1922
1922
|
}), Ue("Escape", () => {
|
|
1923
1923
|
c.value && d.value && p();
|
|
@@ -1975,11 +1975,11 @@ var ji = {
|
|
|
1975
1975
|
},
|
|
1976
1976
|
setup(e) {
|
|
1977
1977
|
return (t, n) => (E(), i(I(di), b(p(t.$props)), c({
|
|
1978
|
-
trigger:
|
|
1978
|
+
trigger: V(() => [A(t.$slots, "trigger", {}, () => [s("p", null, P(e.label), 1)])]),
|
|
1979
1979
|
_: 2
|
|
1980
1980
|
}, [t.$slots.content || e.description ? {
|
|
1981
1981
|
name: "content",
|
|
1982
|
-
fn:
|
|
1982
|
+
fn: V(() => [s("div", {
|
|
1983
1983
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1984
1984
|
role: "tooltip",
|
|
1985
1985
|
"data-variant": e.variant
|
|
@@ -2111,11 +2111,11 @@ var ji = {
|
|
|
2111
2111
|
variant: "dark",
|
|
2112
2112
|
"tooltip-position": "top-left"
|
|
2113
2113
|
}, {
|
|
2114
|
-
label:
|
|
2114
|
+
label: V(() => [u(rn, {
|
|
2115
2115
|
name: "close",
|
|
2116
|
-
onClick: r[0] ||=
|
|
2116
|
+
onClick: r[0] ||= U((e) => t.$emit("handle-clear"), ["stop"])
|
|
2117
2117
|
})]),
|
|
2118
|
-
"tooltip-content":
|
|
2118
|
+
"tooltip-content": V(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
2119
2119
|
_: 1
|
|
2120
2120
|
})) : a("", !0)
|
|
2121
2121
|
], 10, Wi));
|
|
@@ -2205,7 +2205,7 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2205
2205
|
};
|
|
2206
2206
|
return w(() => {
|
|
2207
2207
|
p();
|
|
2208
|
-
}),
|
|
2208
|
+
}), B(() => n.queryText, () => {
|
|
2209
2209
|
p();
|
|
2210
2210
|
}), (n, r) => (E(), o(t, null, [
|
|
2211
2211
|
e.avatar ? (E(), i(ta, {
|
|
@@ -2284,13 +2284,13 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2284
2284
|
"pv-input-xsmall": e.size === "sm",
|
|
2285
2285
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
2286
2286
|
}])
|
|
2287
|
-
}, [e.label ? (E(), o("span", ca, P(e.label), 1)) : a("", !0),
|
|
2287
|
+
}, [e.label ? (E(), o("span", ca, P(e.label), 1)) : a("", !0), H(s("input", {
|
|
2288
2288
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
2289
2289
|
disabled: e.disabled,
|
|
2290
2290
|
type: "checkbox",
|
|
2291
2291
|
role: "switch",
|
|
2292
2292
|
id: e.id
|
|
2293
|
-
}, null, 8, la), [[
|
|
2293
|
+
}, null, 8, la), [[R, t.value]])], 10, sa));
|
|
2294
2294
|
}
|
|
2295
2295
|
}), [["__scopeId", "data-v-26a92f7e"]]), da = /* @__PURE__ */ Gt(/* @__PURE__ */ d({
|
|
2296
2296
|
__name: "PvMenuItemAction",
|
|
@@ -2303,11 +2303,11 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2303
2303
|
a.value || t.action.action(t.option);
|
|
2304
2304
|
};
|
|
2305
2305
|
return (e, t) => (E(), i(_n, { disableInteractive: !0 }, c({
|
|
2306
|
-
label:
|
|
2306
|
+
label: V(() => [u(I(X), {
|
|
2307
2307
|
variant: "ghost",
|
|
2308
2308
|
class: y(["pv-text-brand", { "pv-menu-action-button": !s.value }]),
|
|
2309
2309
|
leftIcon: n.value,
|
|
2310
|
-
onClick:
|
|
2310
|
+
onClick: U(d, ["stop"]),
|
|
2311
2311
|
disabled: a.value
|
|
2312
2312
|
}, null, 8, [
|
|
2313
2313
|
"leftIcon",
|
|
@@ -2317,7 +2317,7 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2317
2317
|
_: 2
|
|
2318
2318
|
}, [o.value ? {
|
|
2319
2319
|
name: "tooltip-content",
|
|
2320
|
-
fn:
|
|
2320
|
+
fn: V(() => [l(P(o.value), 1)]),
|
|
2321
2321
|
key: "0"
|
|
2322
2322
|
} : void 0]), 1024));
|
|
2323
2323
|
}
|
|
@@ -2398,7 +2398,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2398
2398
|
},
|
|
2399
2399
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2400
2400
|
setup(e, { emit: t }) {
|
|
2401
|
-
let n = e, c =
|
|
2401
|
+
let n = e, c = te("inputRef"), l = m(ga, void 0), d = m(_a, O(!1)), p = m(va, void 0), h = m(ya, void 0), g = r(() => {
|
|
2402
2402
|
if (!d.value || !n.children?.length) return [];
|
|
2403
2403
|
let e = fa(n.children);
|
|
2404
2404
|
if (p?.value) {
|
|
@@ -2493,7 +2493,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2493
2493
|
class: "pv-menu-item-expand-toggle",
|
|
2494
2494
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2495
2495
|
"aria-expanded": e.expanded,
|
|
2496
|
-
onClick: r[0] ||=
|
|
2496
|
+
onClick: r[0] ||= U((e) => F("toggle-expanded"), ["prevent", "stop"])
|
|
2497
2497
|
}, [u(rn, {
|
|
2498
2498
|
name: e.chevronIcon ?? "chevron-right",
|
|
2499
2499
|
size: 12
|
|
@@ -2533,7 +2533,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2533
2533
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2534
2534
|
setup(e, { emit: n }) {
|
|
2535
2535
|
let i = e, s = m(ga, void 0), c = L(e, "selectedIds"), l = m(Sa, O(!1)), d = m(ya, void 0), f = m(ba, void 0), p = O(i.defaultExpanded ?? !1), h = O(!1), g = O(i.children ?? []), v = O(/* @__PURE__ */ new Set());
|
|
2536
|
-
|
|
2536
|
+
B(() => i.children, (e) => {
|
|
2537
2537
|
if (!e) {
|
|
2538
2538
|
g.value = [];
|
|
2539
2539
|
return;
|
|
@@ -2656,9 +2656,9 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2656
2656
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
2657
2657
|
setup(e, { emit: n }) {
|
|
2658
2658
|
let i = e, s = n, c = L(e, "selectedItems"), l = N(c.value);
|
|
2659
|
-
|
|
2659
|
+
B(c, (e) => {
|
|
2660
2660
|
l.value = e;
|
|
2661
|
-
}),
|
|
2661
|
+
}), B(l, (e) => {
|
|
2662
2662
|
e !== c.value && (c.value = e);
|
|
2663
2663
|
}), D(ga, l), D(_a, r(() => !!i.enableCascadeSelection));
|
|
2664
2664
|
let d = m(va, void 0), f = m(xa, O(!1)), p = m(ya, void 0), h = m(ba, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
@@ -2694,7 +2694,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2694
2694
|
}
|
|
2695
2695
|
l.value = n, c.value = n, s("handle-selected", e);
|
|
2696
2696
|
}, b = (e) => l.value.some((t) => t.id === e.id) ? !0 : null, x = (e, t) => t ? b(e) === !0 : !0;
|
|
2697
|
-
return (n, r) => (E(), o("ul", ja, [(E(!0), o(t, null, k(e.options, (t) =>
|
|
2697
|
+
return (n, r) => (E(), o("ul", ja, [(E(!0), o(t, null, k(e.options, (t) => H((E(), o("li", {
|
|
2698
2698
|
key: t.id,
|
|
2699
2699
|
"data-active": b(t),
|
|
2700
2700
|
"data-testid": e.itemTestId,
|
|
@@ -2709,7 +2709,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2709
2709
|
"config",
|
|
2710
2710
|
"itemClass",
|
|
2711
2711
|
"queryText"
|
|
2712
|
-
])], 10, Ma)), [[
|
|
2712
|
+
])], 10, Ma)), [[ne, x(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (E(), o("li", Na, [u(X, {
|
|
2713
2713
|
class: "pv-text-brand",
|
|
2714
2714
|
variant: "ghost",
|
|
2715
2715
|
label: "See more",
|
|
@@ -2843,42 +2843,42 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2843
2843
|
}
|
|
2844
2844
|
return {
|
|
2845
2845
|
selectedParentIds: [...f.value],
|
|
2846
|
-
selectedChildrenIds:
|
|
2846
|
+
selectedChildrenIds: W.value.filter((t) => !e.has(t.id)).map((e) => e.id),
|
|
2847
2847
|
deselectedChildrenIds: [...m.value.values()].flatMap((e) => [...e])
|
|
2848
2848
|
};
|
|
2849
2849
|
}, C = r(() => c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length), w = r(() => {
|
|
2850
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
2851
|
-
let e = new Set(
|
|
2850
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length;
|
|
2851
|
+
let e = new Set(W.value.map((e) => e.id));
|
|
2852
2852
|
return ma(c.options, e);
|
|
2853
2853
|
}), T = (e) => {
|
|
2854
2854
|
g("see-more", e ?? {});
|
|
2855
|
-
}, O =
|
|
2856
|
-
|
|
2857
|
-
},
|
|
2858
|
-
|
|
2859
|
-
},
|
|
2860
|
-
|
|
2861
|
-
},
|
|
2862
|
-
get: () =>
|
|
2855
|
+
}, O = te("searchInputRef"), [j, M] = Ke(c.defaultOpen), F = L(e, "modelValue"), ee = L(e, "selectionState"), R = L(e, "searchInput"), z = r(() => c.menuActionsVariant === "cancel-confirm"), ne = (e) => {
|
|
2856
|
+
W.value = e, z.value || (F.value = e, ee.value = S());
|
|
2857
|
+
}, H = () => {
|
|
2858
|
+
z.value && (F.value = W.value, ee.value = S());
|
|
2859
|
+
}, U = () => {
|
|
2860
|
+
z.value && (W.value = F.value);
|
|
2861
|
+
}, W = N(F.value), G = r({
|
|
2862
|
+
get: () => W.value,
|
|
2863
2863
|
set: (e) => {
|
|
2864
|
-
|
|
2864
|
+
ne(e);
|
|
2865
2865
|
}
|
|
2866
2866
|
}), re = () => {
|
|
2867
|
-
|
|
2867
|
+
R.value = "", j.value = !1;
|
|
2868
2868
|
}, ie = r(() => {
|
|
2869
2869
|
let e = c.size === "lg" ? 24 : 30;
|
|
2870
2870
|
return c.overlayTrigger ? -e : void 0;
|
|
2871
2871
|
});
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
}),
|
|
2875
|
-
e ? (
|
|
2872
|
+
B(() => F.value, (e) => {
|
|
2873
|
+
W.value = e;
|
|
2874
|
+
}), B(j, (e) => {
|
|
2875
|
+
e ? (U(), v(() => {
|
|
2876
2876
|
c.overlayTrigger && !c.disableSearchInput && O.value?.input?.focus(), g("dropdown-open");
|
|
2877
|
-
})) : (
|
|
2877
|
+
})) : (U(), g("dropdown-closed"));
|
|
2878
2878
|
});
|
|
2879
2879
|
let ae = r(() => {
|
|
2880
|
-
if (
|
|
2881
|
-
let e =
|
|
2880
|
+
if (R.value === "") return c.options;
|
|
2881
|
+
let e = R.value.toLocaleLowerCase();
|
|
2882
2882
|
return c.enableCascadeSelection ? ha(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
2883
2883
|
}), oe = () => {
|
|
2884
2884
|
if (c.enableCascadeSelection) {
|
|
@@ -2887,13 +2887,13 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2887
2887
|
};
|
|
2888
2888
|
t(c.options), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
2889
2889
|
}
|
|
2890
|
-
|
|
2890
|
+
ne(c.enableCascadeSelection ? fa(ae.value) : ae.value);
|
|
2891
2891
|
}, se = () => {
|
|
2892
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(),
|
|
2892
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), ne([]);
|
|
2893
2893
|
}, ce = () => {
|
|
2894
|
-
|
|
2894
|
+
U(), re();
|
|
2895
2895
|
}, le = () => {
|
|
2896
|
-
|
|
2896
|
+
H(), re();
|
|
2897
2897
|
}, ue = r(() => {
|
|
2898
2898
|
if (!c.groupings) return;
|
|
2899
2899
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -2906,10 +2906,10 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2906
2906
|
}
|
|
2907
2907
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
2908
2908
|
return Array.from(e.entries());
|
|
2909
|
-
}), de = r(() => c.groupings &&
|
|
2909
|
+
}), de = r(() => c.groupings && R.value === ""), K = r(() => ({
|
|
2910
2910
|
...c,
|
|
2911
2911
|
selectedItems: F.value,
|
|
2912
|
-
searchInput:
|
|
2912
|
+
searchInput: R.value,
|
|
2913
2913
|
slotContext: c.slotContext,
|
|
2914
2914
|
isOpen: j.value,
|
|
2915
2915
|
isLoading: c.isLoading
|
|
@@ -2920,7 +2920,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2920
2920
|
modelValue: I(j),
|
|
2921
2921
|
"onUpdate:modelValue": r[4] ||= (e) => h(j) ? j.value = e : null
|
|
2922
2922
|
}, e.popoverProperties, { offset: ie.value }), {
|
|
2923
|
-
trigger:
|
|
2923
|
+
trigger: V(() => [u(Ji, {
|
|
2924
2924
|
ref: "select-button-trigger-ref",
|
|
2925
2925
|
variant: e.variant,
|
|
2926
2926
|
size: e.size,
|
|
@@ -2930,8 +2930,8 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2930
2930
|
label: e.label,
|
|
2931
2931
|
icon: e.icon,
|
|
2932
2932
|
companyLogo: e.companyLogo,
|
|
2933
|
-
showClear: !e.disableClearIcon &&
|
|
2934
|
-
showDropdown: !e.disableDropdownIcon &&
|
|
2933
|
+
showClear: !e.disableClearIcon && W.value.length > 0,
|
|
2934
|
+
showDropdown: !e.disableDropdownIcon && W.value.length === 0,
|
|
2935
2935
|
open: I(j),
|
|
2936
2936
|
"counter-value": w.value,
|
|
2937
2937
|
onHandleClear: se,
|
|
@@ -2950,7 +2950,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2950
2950
|
"open",
|
|
2951
2951
|
"counter-value"
|
|
2952
2952
|
])]),
|
|
2953
|
-
content:
|
|
2953
|
+
content: V(() => [s("div", {
|
|
2954
2954
|
class: "pv-popover",
|
|
2955
2955
|
"data-test-id": "pv-popover",
|
|
2956
2956
|
style: x({
|
|
@@ -2960,20 +2960,20 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2960
2960
|
}, [
|
|
2961
2961
|
e.disableSearchInput ? a("", !0) : (E(), o("div", Fa, [u(Ai, {
|
|
2962
2962
|
ref: "searchInputRef",
|
|
2963
|
-
"model-value":
|
|
2964
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
2963
|
+
"model-value": R.value,
|
|
2964
|
+
"onUpdate:modelValue": r[1] ||= (e) => R.value = e,
|
|
2965
2965
|
class: "pv-stack-4",
|
|
2966
2966
|
placeholder: e.searchPlaceholder
|
|
2967
2967
|
}, null, 8, ["model-value", "placeholder"])])),
|
|
2968
|
-
n.$slots.header ? (E(), o("div", Ia, [A(n.$slots, "header", b(p(
|
|
2968
|
+
n.$slots.header ? (E(), o("div", Ia, [A(n.$slots, "header", b(p(K.value)))])) : a("", !0),
|
|
2969
2969
|
ae.value.length > 0 ? (E(), o(t, { key: 2 }, [de.value ? (E(!0), o(t, { key: 0 }, k(ue.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
2970
2970
|
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", La, P(t), 1)),
|
|
2971
2971
|
u(Pa, {
|
|
2972
|
-
selectedItems:
|
|
2973
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
2972
|
+
selectedItems: G.value,
|
|
2973
|
+
"onUpdate:selectedItems": r[2] ||= (e) => G.value = e,
|
|
2974
2974
|
options: i,
|
|
2975
2975
|
config: l.value,
|
|
2976
|
-
queryText: e.highlightSearchText ?
|
|
2976
|
+
queryText: e.highlightSearchText ? R.value : null,
|
|
2977
2977
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
2978
2978
|
itemClass: "pv-stack-4",
|
|
2979
2979
|
isLoading: e.isLoading,
|
|
@@ -2993,11 +2993,11 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2993
2993
|
ue.value && s !== ue.value.length - 1 ? (E(), o("div", Ra)) : a("", !0)
|
|
2994
2994
|
]))), 128)) : (E(), i(Pa, {
|
|
2995
2995
|
key: 1,
|
|
2996
|
-
selectedItems:
|
|
2997
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
2996
|
+
selectedItems: G.value,
|
|
2997
|
+
"onUpdate:selectedItems": r[3] ||= (e) => G.value = e,
|
|
2998
2998
|
options: ae.value,
|
|
2999
2999
|
config: l.value,
|
|
3000
|
-
queryText: e.highlightSearchText ?
|
|
3000
|
+
queryText: e.highlightSearchText ? R.value : null,
|
|
3001
3001
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3002
3002
|
itemClass: "pv-stack-4",
|
|
3003
3003
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
@@ -3012,8 +3012,8 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3012
3012
|
"enableCascadeSelection",
|
|
3013
3013
|
"hasMoreOptions"
|
|
3014
3014
|
]))], 64)) : a("", !0),
|
|
3015
|
-
e.isLoading ? (E(), o("div", za, [u(_t, { variant: "dark" })])) : ae.value.length === 0 ? (E(), o(t, { key: 4 }, [n.$slots["no-results"] ? A(n.$slots, "no-results", b(_({ key: 0 },
|
|
3016
|
-
s("div", Ba, [n.$slots.footer ? A(n.$slots, "footer", b(_({ key: 0 },
|
|
3015
|
+
e.isLoading ? (E(), o("div", za, [u(_t, { variant: "dark" })])) : ae.value.length === 0 ? (E(), o(t, { key: 4 }, [n.$slots["no-results"] ? A(n.$slots, "no-results", b(_({ key: 0 }, K.value))) : (E(), i(Qi, { key: 1 }))], 64)) : a("", !0),
|
|
3016
|
+
s("div", Ba, [n.$slots.footer ? A(n.$slots, "footer", b(_({ key: 0 }, K.value))) : a("", !0), e.menuActionsVariant ? (E(), i(Ui, {
|
|
3017
3017
|
key: 1,
|
|
3018
3018
|
variant: e.menuActionsVariant,
|
|
3019
3019
|
disabled: e.isLoading,
|
|
@@ -3078,7 +3078,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3078
3078
|
variant: n.optionsVariant,
|
|
3079
3079
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3080
3080
|
})), l = t, [d] = Ke(n.defaultOpen), f = L(e, "modelValue"), p = L(e, "searchInput");
|
|
3081
|
-
|
|
3081
|
+
B(d, (e) => {
|
|
3082
3082
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
3083
3083
|
});
|
|
3084
3084
|
let m = r(() => f.value && f.value.text ? f.value.text : n.label), g = r(() => {
|
|
@@ -3119,7 +3119,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3119
3119
|
modelValue: I(d),
|
|
3120
3120
|
"onUpdate:modelValue": n[2] ||= (e) => h(d) ? d.value = e : null
|
|
3121
3121
|
}, e.popoverProperties), {
|
|
3122
|
-
trigger:
|
|
3122
|
+
trigger: V(() => [u(Ji, {
|
|
3123
3123
|
class: "pv-full-width",
|
|
3124
3124
|
ref: "select-button-trigger-ref",
|
|
3125
3125
|
variant: e.variant,
|
|
@@ -3153,7 +3153,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3153
3153
|
"counter-badge-variant",
|
|
3154
3154
|
"isLoading"
|
|
3155
3155
|
])]),
|
|
3156
|
-
content:
|
|
3156
|
+
content: V(() => [s("div", {
|
|
3157
3157
|
class: "pv-popover",
|
|
3158
3158
|
"data-test-id": "pv-popover",
|
|
3159
3159
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
@@ -3345,7 +3345,7 @@ var Wa = () => {
|
|
|
3345
3345
|
"update:options"
|
|
3346
3346
|
],
|
|
3347
3347
|
setup(e) {
|
|
3348
|
-
let n = e, c = { renderer: Ya }, l =
|
|
3348
|
+
let n = e, c = { renderer: Ya }, l = te("search-input"), d = L(e, "searchText"), f = L(e, "query"), p = L(e, "options"), { addQueryOption: m, containsQueryOption: h } = Wa(), 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 = () => {
|
|
3349
3349
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
3350
3350
|
};
|
|
3351
3351
|
n.enableCustomOptionsInput && Ue("Enter", () => {
|
|
@@ -3356,7 +3356,7 @@ var Wa = () => {
|
|
|
3356
3356
|
id: d.value.trim(),
|
|
3357
3357
|
text: d.value,
|
|
3358
3358
|
queryTerm: { queryText: d.value }
|
|
3359
|
-
}),
|
|
3359
|
+
}), ee());
|
|
3360
3360
|
}, A = r(() => {
|
|
3361
3361
|
if (!p.value || p.value.length === 0) return [];
|
|
3362
3362
|
let e = p.value;
|
|
@@ -3369,7 +3369,7 @@ var Wa = () => {
|
|
|
3369
3369
|
context: e.queryTerm
|
|
3370
3370
|
}));
|
|
3371
3371
|
});
|
|
3372
|
-
|
|
3372
|
+
B([
|
|
3373
3373
|
A,
|
|
3374
3374
|
d,
|
|
3375
3375
|
() => n.optionsLoading
|
|
@@ -3386,7 +3386,7 @@ var Wa = () => {
|
|
|
3386
3386
|
queryTerm: e.context,
|
|
3387
3387
|
icon: e.icon
|
|
3388
3388
|
};
|
|
3389
|
-
f.value = m(f.value, t),
|
|
3389
|
+
f.value = m(f.value, t), ee();
|
|
3390
3390
|
} catch (e) {
|
|
3391
3391
|
console.error("Error adding query option:", e);
|
|
3392
3392
|
} finally {
|
|
@@ -3400,10 +3400,10 @@ var Wa = () => {
|
|
|
3400
3400
|
function F(e) {
|
|
3401
3401
|
e.type === "focus" ? (v.value = !0, g.value = !0) : e.type;
|
|
3402
3402
|
}
|
|
3403
|
-
let
|
|
3403
|
+
let ee = () => {
|
|
3404
3404
|
d.value = "";
|
|
3405
3405
|
};
|
|
3406
|
-
return (n, r) =>
|
|
3406
|
+
return (n, r) => H((E(), o("div", {
|
|
3407
3407
|
ref: "query-builder-input",
|
|
3408
3408
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
3409
3409
|
onFocus: F,
|
|
@@ -3429,7 +3429,7 @@ var Wa = () => {
|
|
|
3429
3429
|
"modelValue",
|
|
3430
3430
|
"wrap-content",
|
|
3431
3431
|
"query-term-display-limit"
|
|
3432
|
-
]),
|
|
3432
|
+
]), H(s("input", {
|
|
3433
3433
|
"onUpdate:modelValue": r[2] ||= (e) => d.value = e,
|
|
3434
3434
|
ref: "search-input",
|
|
3435
3435
|
"data-testid": "pv-search-input",
|
|
@@ -3439,7 +3439,7 @@ var Wa = () => {
|
|
|
3439
3439
|
"data-invalid": w.value ? "true" : void 0,
|
|
3440
3440
|
onFocus: F,
|
|
3441
3441
|
onBlur: F
|
|
3442
|
-
}, null, 40, Za), [[
|
|
3442
|
+
}, null, 40, Za), [[z, d.value]])], 4),
|
|
3443
3443
|
f.value && !e.hideClearButton ? (E(), i(I(X), {
|
|
3444
3444
|
key: 1,
|
|
3445
3445
|
variant: "ghost",
|
|
@@ -3457,7 +3457,7 @@ var Wa = () => {
|
|
|
3457
3457
|
},
|
|
3458
3458
|
isList: !0
|
|
3459
3459
|
}, {
|
|
3460
|
-
default:
|
|
3460
|
+
default: V(() => [e.optionsLoading ? (E(), o("div", $a, [u(I(_t), { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(Aa, _({
|
|
3461
3461
|
key: `${t}-${e.searchText}`,
|
|
3462
3462
|
ref_for: !0
|
|
3463
3463
|
}, e, {
|
|
@@ -3489,7 +3489,7 @@ var Wa = () => {
|
|
|
3489
3489
|
},
|
|
3490
3490
|
setup(e) {
|
|
3491
3491
|
let n = m(io, O(null)), c = m(co, O([])), l = m(lo, O([])), u = e;
|
|
3492
|
-
|
|
3492
|
+
B(l, () => {}, { deep: !0 });
|
|
3493
3493
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
3494
3494
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
3495
3495
|
}, 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(() => {
|
|
@@ -3520,12 +3520,12 @@ var Wa = () => {
|
|
|
3520
3520
|
class: y(p.value),
|
|
3521
3521
|
onListOrderUpdated: x
|
|
3522
3522
|
}, {
|
|
3523
|
-
trigger:
|
|
3523
|
+
trigger: V(() => [s("div", Ao, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), I(l).length > 0 ? (E(), i(I(cn), {
|
|
3524
3524
|
key: 0,
|
|
3525
3525
|
value: I(l).length,
|
|
3526
3526
|
variant: "tertiary"
|
|
3527
3527
|
}, null, 8, ["value"])) : a("", !0)])]),
|
|
3528
|
-
default:
|
|
3528
|
+
default: V(() => [(E(!0), o(t, null, k(v.value, (e, n) => (E(), o(t, { key: e.value }, [e.value === "divider" ? a("", !0) : (E(), o("li", {
|
|
3529
3529
|
key: 0,
|
|
3530
3530
|
id: b(e.value)
|
|
3531
3531
|
}, [s("label", { class: y(["pv-flex", { "pv-border-bottom": n + 1 === I(l).length }]) }, [
|
|
@@ -3647,13 +3647,13 @@ var Vo = /* @__PURE__ */ Gt(Ro, [["render", Bo]]), Ho = ["innerHTML"], Uo = { ke
|
|
|
3647
3647
|
tooltipPosition: "center-left",
|
|
3648
3648
|
size: "sm"
|
|
3649
3649
|
}, {
|
|
3650
|
-
label:
|
|
3650
|
+
label: V(() => [u(X, {
|
|
3651
3651
|
class: y(j.value + " pv-text-brand"),
|
|
3652
3652
|
variant: "ghost",
|
|
3653
3653
|
"left-icon": "focus",
|
|
3654
3654
|
onClick: r[0] ||= (e) => I(k)(I(f).key)
|
|
3655
3655
|
}, null, 8, ["class"])]),
|
|
3656
|
-
"tooltip-content":
|
|
3656
|
+
"tooltip-content": V(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
3657
3657
|
_: 1
|
|
3658
3658
|
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", $o, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
3659
3659
|
}
|
|
@@ -3685,14 +3685,14 @@ var Vo = /* @__PURE__ */ Gt(Ro, [["render", Bo]]), Ho = ["innerHTML"], Uo = { ke
|
|
|
3685
3685
|
"col-def": o.value,
|
|
3686
3686
|
"cell-params": e.params.cellParams
|
|
3687
3687
|
}, {
|
|
3688
|
-
default:
|
|
3688
|
+
default: V(() => [u(es, { params: e.params }, null, 8, ["params"])]),
|
|
3689
3689
|
_: 1
|
|
3690
3690
|
}, 8, ["col-def", "cell-params"])) : (E(), i(Wo, {
|
|
3691
3691
|
key: 1,
|
|
3692
3692
|
"col-def": s.value,
|
|
3693
3693
|
"cell-params": c.value
|
|
3694
3694
|
}, {
|
|
3695
|
-
default:
|
|
3695
|
+
default: V(() => [u(es, { params: e.params }, null, 8, ["params"])]),
|
|
3696
3696
|
_: 1
|
|
3697
3697
|
}, 8, ["col-def", "cell-params"]));
|
|
3698
3698
|
}
|
|
@@ -4181,45 +4181,56 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4181
4181
|
}), m = r(() => {
|
|
4182
4182
|
let e = n.value || {};
|
|
4183
4183
|
return Object.keys(e).length === 0;
|
|
4184
|
-
}), h = O({}), g = O({}), _ = O({}), v = O({}), y = O({}), b = O({}), x = O(!1), S = O(!1), C = O({}), w = O({}),
|
|
4185
|
-
let
|
|
4186
|
-
return Object.entries(
|
|
4184
|
+
}), h = O({}), g = O({}), _ = O({}), v = O({}), y = O({}), b = O({}), x = O(!1), S = O(!1), C = O({}), w = O(/* @__PURE__ */ new Set()), T = O({}), E = (e) => {
|
|
4185
|
+
let t = {};
|
|
4186
|
+
return e && Object.entries(e).forEach(([e, n]) => {
|
|
4187
|
+
t[e] = n;
|
|
4188
|
+
}), Object.entries(g.value).forEach(([e, n]) => {
|
|
4187
4189
|
let r = n.filter((e) => !!e);
|
|
4188
|
-
r.length > 0 && (e
|
|
4190
|
+
r.length > 0 && (t[e] = {
|
|
4189
4191
|
filterType: "set",
|
|
4190
4192
|
values: r
|
|
4191
4193
|
});
|
|
4192
|
-
}), e
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
}
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4194
|
+
}), Object.entries(T.value).forEach(([e, n]) => {
|
|
4195
|
+
let r = n.filter((e) => !!e);
|
|
4196
|
+
r.length > 0 ? t[e] = {
|
|
4197
|
+
filterType: "set",
|
|
4198
|
+
values: r
|
|
4199
|
+
} : delete t[e];
|
|
4200
|
+
}), t;
|
|
4201
|
+
}, D = async (n, r) => {
|
|
4202
|
+
let i = v.value[n.field] || void 0, s = g.value[n.field] || [], d = r?.filterModel;
|
|
4203
|
+
if (t.value != null) {
|
|
4204
|
+
let t = r?.filterModel ?? e.value ?? void 0;
|
|
4205
|
+
d = E(t && tc(t) ? t : void 0);
|
|
4206
|
+
}
|
|
4207
|
+
let f = {
|
|
4208
|
+
api: r?.api,
|
|
4209
|
+
colDef: n,
|
|
4210
|
+
filterModel: d,
|
|
4211
|
+
query: i,
|
|
4212
|
+
selectedValues: s,
|
|
4213
|
+
offset: r?.offset,
|
|
4214
|
+
parentId: r?.parentId
|
|
4215
|
+
}, p = n.field, m = (r?.offset ?? 0) > 0;
|
|
4216
|
+
m || (c.value[p] = !0);
|
|
4217
|
+
let _ = (o.value[p] || 0) + 1;
|
|
4218
|
+
o.value[p] = _;
|
|
4219
|
+
let x = s.map((e) => k(p, e) || {
|
|
4209
4220
|
value: e,
|
|
4210
4221
|
label: String(e)
|
|
4211
|
-
}),
|
|
4212
|
-
if (
|
|
4213
|
-
let
|
|
4214
|
-
return
|
|
4215
|
-
})),
|
|
4216
|
-
let e = (
|
|
4217
|
-
if (e && !t &&
|
|
4218
|
-
let e = h.value[
|
|
4219
|
-
|
|
4220
|
-
} else if (t &&
|
|
4221
|
-
let e = h.value[
|
|
4222
|
-
|
|
4222
|
+
}), S = await l.value?.(f), C;
|
|
4223
|
+
if (S && !Array.isArray(S) ? (C = S.values, u.value[p] = S.totalCount) : (C = S, u.value[p] = void 0), i && C && (C = C.map((e) => {
|
|
4224
|
+
let t = A(n, e);
|
|
4225
|
+
return e && t && (e.matchedField = e.matchedField ?? t.matchedField, e.matchedValue = e.matchedValue ?? t.matchedValue), e;
|
|
4226
|
+
})), _ === o.value[p]) {
|
|
4227
|
+
let e = (r?.offset ?? 0) > 0, t = !!r?.parentId;
|
|
4228
|
+
if (e && !t && C) {
|
|
4229
|
+
let e = h.value[p] || [];
|
|
4230
|
+
C = [...e, ...C.filter((t) => !e.some((e) => e?.value === t?.value))];
|
|
4231
|
+
} else if (t && C) {
|
|
4232
|
+
let e = h.value[p] || [], t = C.find((e) => e?.value === r.parentId);
|
|
4233
|
+
C = t ? e.map((e) => {
|
|
4223
4234
|
if (!e || e.value !== t.value) return e;
|
|
4224
4235
|
let n = e.children || [], r = t.children?.filter((e) => !n.some((t) => t.value === e.value)) || [];
|
|
4225
4236
|
return {
|
|
@@ -4228,16 +4239,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4228
4239
|
};
|
|
4229
4240
|
}) : e;
|
|
4230
4241
|
}
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
}),
|
|
4234
|
-
let
|
|
4235
|
-
return y.value[
|
|
4242
|
+
x.forEach((e) => {
|
|
4243
|
+
C?.some((t) => t?.value === e?.value) || C?.push(e);
|
|
4244
|
+
}), C && (h.value[p] = C);
|
|
4245
|
+
let n = C?.filter((e) => e != null).map((e) => e.value) || [], i = n.filter((e, t) => n.indexOf(e) === t);
|
|
4246
|
+
return y.value[p] = i, b.value[p] = !1, a.value[p] = Date.now(), m || (c.value[p] = !1), i;
|
|
4236
4247
|
} else return [];
|
|
4237
|
-
},
|
|
4248
|
+
}, k = (e, t) => {
|
|
4238
4249
|
let n = [...h.value[e] || [], ..._.value[e] || []];
|
|
4239
4250
|
return n ? n.find((e) => e?.value === t) : null;
|
|
4240
|
-
},
|
|
4251
|
+
}, A = (e, t) => {
|
|
4241
4252
|
if (!t) return {};
|
|
4242
4253
|
let n = $(e)?.queryColIds || [];
|
|
4243
4254
|
if (n.length === 0) return {};
|
|
@@ -4250,7 +4261,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4250
4261
|
};
|
|
4251
4262
|
}
|
|
4252
4263
|
return {};
|
|
4253
|
-
},
|
|
4264
|
+
}, j = (t, n) => {
|
|
4254
4265
|
g.value[t] = n;
|
|
4255
4266
|
let r = [], i = e.value;
|
|
4256
4267
|
if (tc(i)) {
|
|
@@ -4263,29 +4274,33 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4263
4274
|
r.push(...n);
|
|
4264
4275
|
let a = [];
|
|
4265
4276
|
return n.forEach((e) => {
|
|
4266
|
-
let n =
|
|
4277
|
+
let n = k(t, e);
|
|
4267
4278
|
n && a.push(n);
|
|
4268
4279
|
}), _.value[t] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4269
|
-
},
|
|
4280
|
+
}, M = (e) => g.value[e] || [], N = (e, t) => {
|
|
4270
4281
|
v.value[e] = t;
|
|
4271
|
-
},
|
|
4282
|
+
}, P = (e) => y.value[e] || [], F = (e, t) => {
|
|
4272
4283
|
y.value[e] = t;
|
|
4273
|
-
},
|
|
4284
|
+
}, I = (e, t) => {
|
|
4274
4285
|
C.value[e] = t;
|
|
4275
|
-
},
|
|
4286
|
+
}, L = (e) => {
|
|
4276
4287
|
let t = C.value[e] || [], n = Object.entries(C.value).find(([, t]) => t.includes(e))?.[0];
|
|
4277
4288
|
return [...t, ...n ? [n] : []];
|
|
4278
|
-
},
|
|
4289
|
+
}, ee = (e) => {
|
|
4290
|
+
w.value.add(e);
|
|
4291
|
+
}, te = (e) => {
|
|
4292
|
+
w.value.delete(e);
|
|
4293
|
+
}, R = (e) => {
|
|
4279
4294
|
let t = new Set(e);
|
|
4280
|
-
for (let n of e) for (let e of
|
|
4281
|
-
for (let e of
|
|
4282
|
-
}, R = () => {
|
|
4283
|
-
w.value = JSON.parse(JSON.stringify(g.value));
|
|
4295
|
+
for (let n of e) for (let e of L(n)) t.add(e);
|
|
4296
|
+
for (let e of w.value) t.has(e) || (b.value[e] = !0);
|
|
4284
4297
|
}, z = () => {
|
|
4285
|
-
|
|
4286
|
-
},
|
|
4287
|
-
|
|
4288
|
-
}, V = (e, t) => {
|
|
4298
|
+
T.value = JSON.parse(JSON.stringify(g.value));
|
|
4299
|
+
}, ne = () => {
|
|
4300
|
+
T.value = {};
|
|
4301
|
+
}, B = (e) => T.value[e] || [], V = (e, t) => {
|
|
4302
|
+
T.value[e] = t;
|
|
4303
|
+
}, H = (e, t) => {
|
|
4289
4304
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], a = t ? Object.keys(t) : [], o = r.filter((e) => a.includes(e));
|
|
4290
4305
|
[...r, ...a].filter((e) => !o.includes(e)).forEach((e) => n.add(e));
|
|
4291
4306
|
for (let r of o) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -4295,7 +4310,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4295
4310
|
};
|
|
4296
4311
|
return qe([e, t], ([t, n], [r, i]) => {
|
|
4297
4312
|
let a = /* @__PURE__ */ new Set();
|
|
4298
|
-
JSON.stringify(t) !== JSON.stringify(r) &&
|
|
4313
|
+
JSON.stringify(t) !== JSON.stringify(r) && H(t || {}, r || {}).forEach((e) => a.add(e)), JSON.stringify(n) !== JSON.stringify(i) && H(n || {}, e.value || {}).forEach((e) => a.add(e)), a.size > 0 && R(a);
|
|
4299
4314
|
}, {
|
|
4300
4315
|
deep: !0,
|
|
4301
4316
|
debounce: 200,
|
|
@@ -4310,69 +4325,72 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4310
4325
|
filterValueMap: h,
|
|
4311
4326
|
filterValueSelectedMetadataMap: _,
|
|
4312
4327
|
filterStoreHandler: l,
|
|
4313
|
-
fetchFilterValues:
|
|
4314
|
-
filterValueContext:
|
|
4328
|
+
fetchFilterValues: D,
|
|
4329
|
+
filterValueContext: k,
|
|
4315
4330
|
filterModelEmpty: p,
|
|
4316
|
-
getFilterSelectedValues:
|
|
4317
|
-
getSearchMatchDataFromFilterContext:
|
|
4331
|
+
getFilterSelectedValues: M,
|
|
4332
|
+
getSearchMatchDataFromFilterContext: A,
|
|
4318
4333
|
isServerSideFilter: f,
|
|
4319
4334
|
stagedFilterModel: t,
|
|
4320
|
-
setFilterSelectedValues:
|
|
4321
|
-
setFilterValueSearchText:
|
|
4335
|
+
setFilterSelectedValues: j,
|
|
4336
|
+
setFilterValueSearchText: N,
|
|
4322
4337
|
tableSearchFilterModel: n,
|
|
4323
4338
|
tableSearchFilterModelEmpty: m,
|
|
4324
4339
|
tableSearchHandler: d,
|
|
4325
4340
|
filterValuesMap: y,
|
|
4326
|
-
getFilterValues:
|
|
4327
|
-
setFilterValues:
|
|
4341
|
+
getFilterValues: P,
|
|
4342
|
+
setFilterValues: F,
|
|
4328
4343
|
filterStaleMap: b,
|
|
4329
4344
|
refreshFiltersInBackground: x,
|
|
4330
4345
|
stageFilterChangesUntilDropdownCloses: S,
|
|
4331
|
-
markOtherFieldsStale:
|
|
4346
|
+
markOtherFieldsStale: R,
|
|
4332
4347
|
aggregateFieldMap: C,
|
|
4333
|
-
registerAggregateField:
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4348
|
+
registerAggregateField: I,
|
|
4349
|
+
registeredFilterFields: w,
|
|
4350
|
+
registerFilterField: ee,
|
|
4351
|
+
unregisterFilterField: te,
|
|
4352
|
+
stagedSelectedValuesMap: T,
|
|
4353
|
+
initStagedSelectedValues: z,
|
|
4354
|
+
clearStagedSelectedValues: ne,
|
|
4355
|
+
getStagedSelectedValues: B,
|
|
4356
|
+
setStagedSelectedValues: V,
|
|
4339
4357
|
filterValueSearchTextMap: v,
|
|
4340
4358
|
filterValuesTotalCountMap: u
|
|
4341
4359
|
};
|
|
4342
4360
|
}, rc = () => m(to, null) || nc(), ic = (e) => {
|
|
4343
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i } = e, a = m(io, O(null)), o = rc(), { fetchFilterValues: s, filterModel: c, stagedFilterModel: l, filterModelCleared: u, filterValuesLoadingStatus: d, filterValueContext: f, getFilterSelectedValues: p, isServerSideFilter: h, setFilterValueSearchText: g, setFilterSelectedValues: _, getFilterValues: y, setFilterValues: b, filterStaleMap: x, refreshFiltersInBackground: S, stageFilterChangesUntilDropdownCloses: C, registerAggregateField: E,
|
|
4344
|
-
get: () =>
|
|
4361
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i } = e, a = m(io, O(null)), o = rc(), { fetchFilterValues: s, filterModel: c, stagedFilterModel: l, filterModelCleared: u, filterValuesLoadingStatus: d, filterValueContext: f, getFilterSelectedValues: p, isServerSideFilter: h, setFilterValueSearchText: g, setFilterSelectedValues: _, getFilterValues: y, setFilterValues: b, filterStaleMap: x, refreshFiltersInBackground: S, stageFilterChangesUntilDropdownCloses: C, registerAggregateField: E, registerFilterField: D, unregisterFilterField: k, getStagedSelectedValues: A, setStagedSelectedValues: j, filterValueSearchTextMap: M, filterValuesTotalCountMap: N } = o, { computedFocuses: P, removeFocus: F, computedFocusType: I } = Ko(), L = m(mo, O(!1)), ee = m(po, O(!1)), te = m(Do, O(!1)), R = r({
|
|
4362
|
+
get: () => G.value ? A(H.value) : p(H.value),
|
|
4345
4363
|
set: (e) => {
|
|
4346
|
-
|
|
4364
|
+
G.value ? j(H.value, e) : _(H.value, e);
|
|
4347
4365
|
}
|
|
4348
|
-
}), z = r(() =>
|
|
4349
|
-
get: () =>
|
|
4350
|
-
set: (e) => g(
|
|
4351
|
-
}),
|
|
4366
|
+
}), z = r(() => q(y(H.value))), ne = r(() => d.value[H.value] ?? !1), V = r({
|
|
4367
|
+
get: () => M.value[H.value] ?? "",
|
|
4368
|
+
set: (e) => g(H.value, e)
|
|
4369
|
+
}), H = r(() => t.value.field || ""), U = r(() => t.value.filter || ""), W = r(() => t.value.headerName || ""), G = r(() => n?.value === "vertical"), re = r(() => ms(t.value)), ie = r(() => hs(t.value)), ae = r(() => gs(t.value)), oe = r(() => $(t.value).filterOptionsSortDescription), se = r(() => $(t.value).filterOptionsSortTooltip), ce = r(() => !$(t.value).filterSearch), le = r(() => $(t.value).emptyFilterResultsRenderer), ue = r(() => $(t.value).filterOptionsRenderer), de = r(() => $(t.value).filterHeaderRenderer), K = r(() => $(t.value).filterFooterRenderer), fe = r(() => ie.value ? R.value.length >= ie.value : !1), pe = r(() => z.value.filter((e) => e != null && !R.value.includes(e))), me = r(() => N.value[H.value]), he = r(() => vs(t.value)), ge = O({
|
|
4352
4370
|
selectedParentIds: [],
|
|
4353
4371
|
selectedChildrenIds: [],
|
|
4354
4372
|
deselectedChildrenIds: []
|
|
4355
|
-
}),
|
|
4356
|
-
if (
|
|
4373
|
+
}), _e = r(() => z.value.length === 1 && z.value[0] === null && R.value.length === 0), ve = (e = !1) => {
|
|
4374
|
+
if (he.value) return;
|
|
4357
4375
|
let n = [];
|
|
4358
|
-
if (
|
|
4376
|
+
if (te.value && a.value) {
|
|
4359
4377
|
let e = a.value.getAdvancedFilterModel();
|
|
4360
|
-
n = Js(
|
|
4378
|
+
n = Js(H.value, e);
|
|
4361
4379
|
} else n = Vs(t.value, c.value);
|
|
4362
|
-
e ? R.value = n : R.value = Array.from(new Set([...p(
|
|
4363
|
-
},
|
|
4380
|
+
e ? R.value = n : R.value = Array.from(new Set([...p(H.value), ...n]));
|
|
4381
|
+
}, q = (e) => [...e].sort((e, t) => {
|
|
4364
4382
|
let n = R.value.includes(e), r = R.value.includes(t);
|
|
4365
4383
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
4366
|
-
}),
|
|
4384
|
+
}), ye = async (e = !1, n = !1) => {
|
|
4367
4385
|
if (!a.value) return;
|
|
4368
|
-
let r = x.value[
|
|
4369
|
-
if (
|
|
4386
|
+
let r = x.value[H.value] ?? !1, i = d.value[H.value] !== !0, o = e && i && (r || n);
|
|
4387
|
+
if (te.value) {
|
|
4370
4388
|
if (h.value && o) {
|
|
4371
4389
|
let e = await s(t.value, {
|
|
4372
4390
|
api: a.value,
|
|
4373
4391
|
filterModel: c.value ?? void 0
|
|
4374
4392
|
});
|
|
4375
|
-
b(
|
|
4393
|
+
b(H.value, e), x.value[H.value] = !1;
|
|
4376
4394
|
}
|
|
4377
4395
|
return;
|
|
4378
4396
|
}
|
|
@@ -4382,11 +4400,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4382
4400
|
l.refreshFilterValues();
|
|
4383
4401
|
return;
|
|
4384
4402
|
}
|
|
4385
|
-
b(
|
|
4403
|
+
b(H.value, l.getFilterValues()), x.value[H.value] = !1;
|
|
4386
4404
|
}
|
|
4387
|
-
},
|
|
4388
|
-
let t = f(
|
|
4389
|
-
if (t?.colField &&
|
|
4405
|
+
}, be = (e) => {
|
|
4406
|
+
let t = f(H.value, e), n = re.value;
|
|
4407
|
+
if (t?.colField && he.value) {
|
|
4390
4408
|
let e = a.value?.getColumnDef(t?.colField);
|
|
4391
4409
|
n = e ? ms(e) : n;
|
|
4392
4410
|
}
|
|
@@ -4394,22 +4412,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4394
4412
|
value: e,
|
|
4395
4413
|
context: t
|
|
4396
4414
|
}) : t?.label || e;
|
|
4397
|
-
},
|
|
4415
|
+
}, xe = (e) => {
|
|
4398
4416
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
4399
|
-
let n = f(
|
|
4417
|
+
let n = f(H.value, e);
|
|
4400
4418
|
return n == null || n.label == null;
|
|
4401
|
-
},
|
|
4402
|
-
let n = f(
|
|
4419
|
+
}, Se = (e) => _e.value || f(H.value, e)?.isSelectable === !1 ? !0 : ae.value ? !1 : fe.value && !R.value.includes(e), Ce = (e) => !e || !a.value ? "" : a.value.getColumnDef(e)?.headerName || e, we = (e) => {
|
|
4420
|
+
let n = f(H.value, e), r = (n?.children?.length ?? 0) > 0, i = oe.value ? "suggestions" : null;
|
|
4403
4421
|
n?.isPreference && (i = "preferences");
|
|
4404
|
-
let s = null, l = n?.matchedValue, u =
|
|
4405
|
-
l && u ? s = l ? `${u}: ${l}` : "" : n?.subText ? s = n.subText : n?.colField &&
|
|
4422
|
+
let s = null, l = n?.matchedValue, u = Ce(n?.matchedField);
|
|
4423
|
+
l && u ? s = l ? `${u}: ${l}` : "" : n?.subText ? s = n.subText : n?.colField && he.value && !r && (s = Ce(n?.colField));
|
|
4406
4424
|
let d, p, m;
|
|
4407
4425
|
if (r && (d = n.children.map((e) => ({
|
|
4408
4426
|
id: e.value,
|
|
4409
4427
|
text: e.label || e.value,
|
|
4410
4428
|
subText: e.subText,
|
|
4411
4429
|
subduedText: e.subduedText,
|
|
4412
|
-
disabled:
|
|
4430
|
+
disabled: Se(e.value),
|
|
4413
4431
|
context: e,
|
|
4414
4432
|
classList: ["option-label"]
|
|
4415
4433
|
})), p = n.totalChildCount, p && p > d.length && n.value != null)) {
|
|
@@ -4428,7 +4446,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4428
4446
|
text: e.label || e.value,
|
|
4429
4447
|
subText: e.subText,
|
|
4430
4448
|
subduedText: e.subduedText,
|
|
4431
|
-
disabled:
|
|
4449
|
+
disabled: Se(e.value),
|
|
4432
4450
|
context: e,
|
|
4433
4451
|
classList: ["option-label"]
|
|
4434
4452
|
}));
|
|
@@ -4436,51 +4454,53 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4436
4454
|
}
|
|
4437
4455
|
return {
|
|
4438
4456
|
id: e || "",
|
|
4439
|
-
text:
|
|
4457
|
+
text: be(e) || "",
|
|
4440
4458
|
searchText: l,
|
|
4441
4459
|
subduedText: n?.subduedText,
|
|
4442
4460
|
subText: s || void 0,
|
|
4443
4461
|
groupingLabel: i || "",
|
|
4444
|
-
disabled: r ? !1 :
|
|
4462
|
+
disabled: r ? !1 : Se(e),
|
|
4445
4463
|
context: n || { value: e || "" },
|
|
4446
4464
|
classList: ["option-label"],
|
|
4447
4465
|
children: d,
|
|
4448
4466
|
totalChildCount: p,
|
|
4449
4467
|
handleSeeMore: m
|
|
4450
4468
|
};
|
|
4451
|
-
},
|
|
4452
|
-
let e = [...
|
|
4453
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
4454
|
-
}),
|
|
4469
|
+
}, Te = r(() => {
|
|
4470
|
+
let e = [...he.value ? [] : R.value.filter((e) => e != null && e !== "" && !z.value.includes(e)), ...z.value];
|
|
4471
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !xe(e)).map(we);
|
|
4472
|
+
}), Ee = r({
|
|
4455
4473
|
get: () => R.value.map((e) => {
|
|
4456
|
-
let t = f(
|
|
4474
|
+
let t = f(H.value, e), n = t?.colField ? Ce(t.colField) : void 0;
|
|
4457
4475
|
return {
|
|
4458
4476
|
id: e,
|
|
4459
|
-
text:
|
|
4477
|
+
text: be(e),
|
|
4460
4478
|
subText: n,
|
|
4461
4479
|
context: t || { value: e || "" }
|
|
4462
4480
|
};
|
|
4463
4481
|
}),
|
|
4464
4482
|
set: (e) => {
|
|
4465
|
-
R.value = e.map((e) => e.id)
|
|
4466
|
-
|
|
4483
|
+
R.value = e.map((e) => e.id);
|
|
4484
|
+
let t = e.length === 0;
|
|
4485
|
+
!he.value && (t || !C.value || G.value) && (Oe(), P.value.forEach((e) => {
|
|
4486
|
+
!R.value.includes(e) && I.value === H.value && F(e);
|
|
4467
4487
|
})), i?.();
|
|
4468
4488
|
}
|
|
4469
|
-
}),
|
|
4489
|
+
}), De = (e) => {
|
|
4470
4490
|
let t = {};
|
|
4471
4491
|
for (let n of e) {
|
|
4472
4492
|
if (n === null) continue;
|
|
4473
|
-
let e = f(
|
|
4493
|
+
let e = f(H.value, n)?.colField || H.value;
|
|
4474
4494
|
t[e] || (t[e] = []), t[e].push(n);
|
|
4475
4495
|
}
|
|
4476
4496
|
return t;
|
|
4477
|
-
},
|
|
4497
|
+
}, Oe = async (e, n) => {
|
|
4478
4498
|
if (!a.value) return;
|
|
4479
4499
|
if (e !== void 0 && n !== void 0) {
|
|
4480
|
-
let r = e ||
|
|
4481
|
-
if (
|
|
4500
|
+
let r = e || H.value, i = n;
|
|
4501
|
+
if (te.value) {
|
|
4482
4502
|
let e = Os(r, i || []);
|
|
4483
|
-
if (
|
|
4503
|
+
if (G.value) {
|
|
4484
4504
|
let t = l.value;
|
|
4485
4505
|
l.value = Ks(t, e, r);
|
|
4486
4506
|
return;
|
|
@@ -4491,7 +4511,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4491
4511
|
});
|
|
4492
4512
|
return;
|
|
4493
4513
|
}
|
|
4494
|
-
if (
|
|
4514
|
+
if (G.value) {
|
|
4495
4515
|
let e = await Bs(a.value, t.value, i);
|
|
4496
4516
|
l.value = {
|
|
4497
4517
|
...l.value,
|
|
@@ -4505,10 +4525,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4505
4525
|
});
|
|
4506
4526
|
return;
|
|
4507
4527
|
}
|
|
4508
|
-
let r =
|
|
4509
|
-
if (
|
|
4510
|
-
let e =
|
|
4511
|
-
if (
|
|
4528
|
+
let r = De(R.value), i = $(t.value);
|
|
4529
|
+
if (te.value) {
|
|
4530
|
+
let e = G.value ? l.value : a.value.getAdvancedFilterModel();
|
|
4531
|
+
if (he.value) {
|
|
4512
4532
|
let t = i.aggregateFields, n = [];
|
|
4513
4533
|
for (let e of t) {
|
|
4514
4534
|
let t = r[e] || [];
|
|
@@ -4531,10 +4551,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4531
4551
|
} : t;
|
|
4532
4552
|
}
|
|
4533
4553
|
} else {
|
|
4534
|
-
let t = R.value.length > 0 ? R.value : null, n = Os(
|
|
4535
|
-
e = Ks(e, n,
|
|
4554
|
+
let t = R.value.length > 0 ? R.value : null, n = Os(H.value, t || []);
|
|
4555
|
+
e = Ks(e, n, H.value);
|
|
4536
4556
|
}
|
|
4537
|
-
if (
|
|
4557
|
+
if (G.value) l.value = e;
|
|
4538
4558
|
else {
|
|
4539
4559
|
let t = e;
|
|
4540
4560
|
v(() => {
|
|
@@ -4544,25 +4564,25 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4544
4564
|
return;
|
|
4545
4565
|
}
|
|
4546
4566
|
let o = R.value.length > 0 ? R.value : null;
|
|
4547
|
-
if (
|
|
4567
|
+
if (G.value) {
|
|
4548
4568
|
let e = await Bs(a.value, t.value, o);
|
|
4549
4569
|
l.value = {
|
|
4550
4570
|
...l.value,
|
|
4551
|
-
[
|
|
4571
|
+
[H.value]: e
|
|
4552
4572
|
};
|
|
4553
4573
|
return;
|
|
4554
4574
|
}
|
|
4555
4575
|
let s = await Bs(a.value, t.value, o);
|
|
4556
|
-
a.value.setColumnFilterModel(
|
|
4576
|
+
a.value.setColumnFilterModel(H.value, s).then(() => {
|
|
4557
4577
|
a.value && a.value.onFilterChanged();
|
|
4558
4578
|
});
|
|
4559
|
-
},
|
|
4560
|
-
e &&
|
|
4561
|
-
},
|
|
4562
|
-
R.value = R.value.filter((t) => t !== e), (!C.value ||
|
|
4563
|
-
},
|
|
4564
|
-
|
|
4565
|
-
},
|
|
4579
|
+
}, ke = (e, t) => {
|
|
4580
|
+
e && ae.value ? R.value = [e] : e && !R.value.includes(e) && (R.value = [...R.value, e]), (!C.value || G.value) && (t && t !== H.value ? Oe(t, [e]) : Oe()), i?.();
|
|
4581
|
+
}, Ae = (e, t) => {
|
|
4582
|
+
R.value = R.value.filter((t) => t !== e), (!C.value || G.value) && (t && t !== H.value ? Oe(t, null) : Oe()), i?.();
|
|
4583
|
+
}, je = () => {
|
|
4584
|
+
V.value = "", C.value && !G.value && (he.value ? Ne(ge.value) : Oe());
|
|
4585
|
+
}, Me = async (e) => {
|
|
4566
4586
|
if (!a.value) return;
|
|
4567
4587
|
let n = z.value.length;
|
|
4568
4588
|
await s(t.value, {
|
|
@@ -4571,9 +4591,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4571
4591
|
offset: n,
|
|
4572
4592
|
parentId: e.parentId
|
|
4573
4593
|
});
|
|
4574
|
-
},
|
|
4575
|
-
if (!a.value || !
|
|
4576
|
-
|
|
4594
|
+
}, Ne = (e) => {
|
|
4595
|
+
if (!a.value || !he.value) return;
|
|
4596
|
+
ge.value = e;
|
|
4577
4597
|
let n = $(t.value).aggregateFields || [], r = n[0];
|
|
4578
4598
|
if (!r) return;
|
|
4579
4599
|
let { selectedParentIds: o, selectedChildrenIds: s, deselectedChildrenIds: c } = e, u = [];
|
|
@@ -4594,7 +4614,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4594
4614
|
conditions: e
|
|
4595
4615
|
});
|
|
4596
4616
|
}
|
|
4597
|
-
let d = o.length > 0 || s.length > 0, f =
|
|
4617
|
+
let d = o.length > 0 || s.length > 0, f = G.value ? l.value : a.value.getAdvancedFilterModel();
|
|
4598
4618
|
for (let e of n) f = Ks(f, null, e);
|
|
4599
4619
|
if (d && u.length > 0) {
|
|
4600
4620
|
let e = u.length === 1 ? u[0] : {
|
|
@@ -4608,7 +4628,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4608
4628
|
conditions: [f, e]
|
|
4609
4629
|
} : e;
|
|
4610
4630
|
}
|
|
4611
|
-
if (
|
|
4631
|
+
if (G.value) l.value = f;
|
|
4612
4632
|
else {
|
|
4613
4633
|
let e = f;
|
|
4614
4634
|
v(() => {
|
|
@@ -4617,89 +4637,90 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4617
4637
|
}
|
|
4618
4638
|
i?.();
|
|
4619
4639
|
};
|
|
4620
|
-
return
|
|
4621
|
-
|
|
4622
|
-
}, { deep: !0 }),
|
|
4623
|
-
e && S.value &&
|
|
4624
|
-
}),
|
|
4625
|
-
if (
|
|
4626
|
-
if (
|
|
4640
|
+
return B(ge, (e) => {
|
|
4641
|
+
he.value && (C.value && !G.value || Ne(e));
|
|
4642
|
+
}, { deep: !0 }), B(() => x.value[H.value], (e) => {
|
|
4643
|
+
e && S.value && ye(!0);
|
|
4644
|
+
}), B(() => l.value, () => {
|
|
4645
|
+
if (G.value) {
|
|
4646
|
+
if (te.value) {
|
|
4627
4647
|
let e = [], n = l.value;
|
|
4628
|
-
if (
|
|
4648
|
+
if (he.value) {
|
|
4629
4649
|
let r = $(t.value);
|
|
4630
4650
|
for (let t of r.aggregateFields) {
|
|
4631
4651
|
let r = Js(t, n);
|
|
4632
4652
|
e.push(...r);
|
|
4633
4653
|
}
|
|
4634
|
-
} else e = Js(
|
|
4654
|
+
} else e = Js(H.value, n);
|
|
4635
4655
|
R.value = e;
|
|
4636
4656
|
return;
|
|
4637
4657
|
}
|
|
4638
|
-
U.value === "agSetColumnFilter" ? R.value = l.value?.[
|
|
4658
|
+
U.value === "agSetColumnFilter" ? R.value = l.value?.[H.value]?.values || [] : U.value === "agMultiColumnFilter" ? R.value = l.value?.[H.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${U.value} is not yet supported.`);
|
|
4639
4659
|
}
|
|
4640
|
-
}),
|
|
4641
|
-
if (
|
|
4642
|
-
if (
|
|
4643
|
-
let e = c.value, t = Js(
|
|
4644
|
-
|
|
4660
|
+
}), B(() => c.value, () => {
|
|
4661
|
+
if (G.value || he.value) return;
|
|
4662
|
+
if (te.value) {
|
|
4663
|
+
let e = c.value, t = Js(H.value, e);
|
|
4664
|
+
ve(R.value.some((e) => e !== null && !t.includes(e)));
|
|
4645
4665
|
return;
|
|
4646
4666
|
}
|
|
4647
4667
|
let e = Vs(t.value, c.value);
|
|
4648
|
-
|
|
4649
|
-
}, { deep: !0 }),
|
|
4668
|
+
ve(R.value.some((t) => !e.includes(t)));
|
|
4669
|
+
}, { deep: !0 }), B(() => u.value, () => {
|
|
4650
4670
|
R.value = [];
|
|
4651
|
-
}),
|
|
4652
|
-
e && h.value && (x.value[
|
|
4653
|
-
}, { immediate: !0 }),
|
|
4654
|
-
S.value && (
|
|
4655
|
-
await
|
|
4656
|
-
}, 2e3) : await
|
|
4657
|
-
}), qe(() =>
|
|
4658
|
-
await
|
|
4671
|
+
}), B(() => a.value, (e) => {
|
|
4672
|
+
e && h.value && (x.value[H.value] = !0);
|
|
4673
|
+
}, { immediate: !0 }), B(() => ee.value, async () => {
|
|
4674
|
+
S.value && (G.value ? setTimeout(async () => {
|
|
4675
|
+
await ye(!0);
|
|
4676
|
+
}, 2e3) : await ye(!0)), ve();
|
|
4677
|
+
}), qe(() => V.value, async () => {
|
|
4678
|
+
await ye(!0, !0);
|
|
4659
4679
|
}, { debounce: 300 }), w(() => {
|
|
4680
|
+
D(H.value);
|
|
4660
4681
|
let e = $(t.value);
|
|
4661
|
-
e.aggregateFields?.length && E(
|
|
4682
|
+
e.aggregateFields?.length && E(H.value, e.aggregateFields), ve(), he.value || $(t.value).metadataDisplayFields?.length && R.value.some((e) => xe(e)) && ye(!0, !0);
|
|
4662
4683
|
}), T(() => {
|
|
4663
|
-
C.value && !
|
|
4684
|
+
k(H.value), C.value && !G.value && (he.value ? Ne(ge.value) : Oe());
|
|
4664
4685
|
}), {
|
|
4665
4686
|
selectedValues: R,
|
|
4666
4687
|
filterValues: z,
|
|
4667
|
-
isLoading:
|
|
4668
|
-
filterSearchText:
|
|
4669
|
-
rowsLoading:
|
|
4688
|
+
isLoading: ne,
|
|
4689
|
+
filterSearchText: V,
|
|
4690
|
+
rowsLoading: L,
|
|
4670
4691
|
gridApi: a,
|
|
4671
|
-
filterField:
|
|
4692
|
+
filterField: H,
|
|
4672
4693
|
filterType: U,
|
|
4673
|
-
filterDisplayName:
|
|
4674
|
-
isInFilterPanel:
|
|
4675
|
-
maxSelectableValues:
|
|
4676
|
-
isSingleSelect:
|
|
4677
|
-
selectionLimitReached:
|
|
4678
|
-
suggestedValues:
|
|
4679
|
-
displayedFilterValues:
|
|
4680
|
-
selectedFilterValues:
|
|
4681
|
-
showSearchBar:
|
|
4682
|
-
emptyFilterResultsRenderer:
|
|
4683
|
-
filterOptionsRenderer:
|
|
4684
|
-
filterHeaderRenderer:
|
|
4685
|
-
filterFooterRenderer:
|
|
4686
|
-
filterOptionsSortDescription:
|
|
4687
|
-
filterOptionsSortTooltip:
|
|
4688
|
-
totalOptionCount:
|
|
4689
|
-
isAggregate:
|
|
4690
|
-
cascadeSelectionState:
|
|
4694
|
+
filterDisplayName: W,
|
|
4695
|
+
isInFilterPanel: G,
|
|
4696
|
+
maxSelectableValues: ie,
|
|
4697
|
+
isSingleSelect: ae,
|
|
4698
|
+
selectionLimitReached: fe,
|
|
4699
|
+
suggestedValues: pe,
|
|
4700
|
+
displayedFilterValues: Te,
|
|
4701
|
+
selectedFilterValues: Ee,
|
|
4702
|
+
showSearchBar: ce,
|
|
4703
|
+
emptyFilterResultsRenderer: le,
|
|
4704
|
+
filterOptionsRenderer: ue,
|
|
4705
|
+
filterHeaderRenderer: de,
|
|
4706
|
+
filterFooterRenderer: K,
|
|
4707
|
+
filterOptionsSortDescription: oe,
|
|
4708
|
+
filterOptionsSortTooltip: se,
|
|
4709
|
+
totalOptionCount: me,
|
|
4710
|
+
isAggregate: he,
|
|
4711
|
+
cascadeSelectionState: ge,
|
|
4691
4712
|
filterValueContext: f,
|
|
4692
|
-
formatDisplayValue:
|
|
4693
|
-
isUnresolvedMetadataValue:
|
|
4694
|
-
getLatestFilterValues:
|
|
4695
|
-
addSelectedValue:
|
|
4696
|
-
removeSelectedValue:
|
|
4697
|
-
handleDropdownClosed:
|
|
4698
|
-
handleSeeMore:
|
|
4699
|
-
handleCascadeSelectionState:
|
|
4700
|
-
getColDisplayNameForField:
|
|
4701
|
-
disableFilterValue:
|
|
4702
|
-
updateFilterModelWithSelectedValues:
|
|
4713
|
+
formatDisplayValue: be,
|
|
4714
|
+
isUnresolvedMetadataValue: xe,
|
|
4715
|
+
getLatestFilterValues: ye,
|
|
4716
|
+
addSelectedValue: ke,
|
|
4717
|
+
removeSelectedValue: Ae,
|
|
4718
|
+
handleDropdownClosed: je,
|
|
4719
|
+
handleSeeMore: Me,
|
|
4720
|
+
handleCascadeSelectionState: Ne,
|
|
4721
|
+
getColDisplayNameForField: Ce,
|
|
4722
|
+
disableFilterValue: Se,
|
|
4723
|
+
updateFilterModelWithSelectedValues: Oe
|
|
4703
4724
|
};
|
|
4704
4725
|
}, ac = {
|
|
4705
4726
|
key: 0,
|
|
@@ -4756,11 +4777,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4756
4777
|
"handle-settings-icon"
|
|
4757
4778
|
],
|
|
4758
4779
|
setup(e, { emit: n }) {
|
|
4759
|
-
let d = e, f = n, { selectedValues: m, isLoading: g, filterSearchText: _, rowsLoading: v, gridApi: x, filterField: S, filterDisplayName: C, isInFilterPanel: w, suggestedValues: T, displayedFilterValues: D, selectedFilterValues: O, showSearchBar: A, emptyFilterResultsRenderer: j, filterOptionsRenderer: N, filterHeaderRenderer: L, filterFooterRenderer:
|
|
4780
|
+
let d = e, f = n, { selectedValues: m, isLoading: g, filterSearchText: _, rowsLoading: v, gridApi: x, filterField: S, filterDisplayName: C, isInFilterPanel: w, suggestedValues: T, displayedFilterValues: D, selectedFilterValues: O, showSearchBar: A, emptyFilterResultsRenderer: j, filterOptionsRenderer: N, filterHeaderRenderer: L, filterFooterRenderer: ee, filterOptionsSortDescription: te, filterOptionsSortTooltip: R, filterValueContext: z, formatDisplayValue: ne, isUnresolvedMetadataValue: B, getLatestFilterValues: H, addSelectedValue: U, removeSelectedValue: W, handleDropdownClosed: G, handleSeeMore: re, getColDisplayNameForField: ie, totalOptionCount: ae, isAggregate: oe, cascadeSelectionState: se } = ic({
|
|
4760
4781
|
filterColDef: F(d, "filterColDef"),
|
|
4761
4782
|
filterStyle: F(d, "filterStyle"),
|
|
4762
4783
|
onSelectionChanged: () => f("filter-selection-changed")
|
|
4763
|
-
}), { handleFocusUpdate: ce, isFocused: le, removeFocus: ue, isFocusable: de, canRemoveFocus:
|
|
4784
|
+
}), { handleFocusUpdate: ce, isFocused: le, removeFocus: ue, isFocusable: de, canRemoveFocus: K } = Ko(), fe = r(() => {
|
|
4764
4785
|
if (de(vs(d.filterColDef) ? $(d.filterColDef)?.aggregateFields || [] : [S.value])) return {
|
|
4765
4786
|
icon: "focus",
|
|
4766
4787
|
isDisabled: (e) => !de([e.context?.colField || S.value]),
|
|
@@ -4768,10 +4789,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4768
4789
|
let t = e.context?.colField || S.value;
|
|
4769
4790
|
if (!de([t])) return `Group by ${ie(t)} to enable ${d.focusText}`;
|
|
4770
4791
|
let n = le(e.id, t);
|
|
4771
|
-
return n && !
|
|
4792
|
+
return n && !K() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
4772
4793
|
},
|
|
4773
4794
|
action: (e) => {
|
|
4774
|
-
e && !m.value.includes(e.id) &&
|
|
4795
|
+
e && !m.value.includes(e.id) && U(e.id, e.context?.colField);
|
|
4775
4796
|
let t = e.context?.colField || S.value;
|
|
4776
4797
|
ce(e.id, t);
|
|
4777
4798
|
},
|
|
@@ -4780,15 +4801,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4780
4801
|
return le(e.id, t);
|
|
4781
4802
|
}
|
|
4782
4803
|
};
|
|
4783
|
-
}),
|
|
4784
|
-
|
|
4804
|
+
}), pe = (e) => {
|
|
4805
|
+
W(e), le(e, z(S.value, e)?.colField || S.value) && K() && ue(e);
|
|
4785
4806
|
}, me = () => {
|
|
4786
|
-
|
|
4787
|
-
}, he = (e) => le(e,
|
|
4788
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(w) ? (E(), o("ul", ac, [(E(!0), o(t, null, k(I(m), (e) => (E(), o(t, { key: `${I(C)}-${e}` }, [I(
|
|
4789
|
-
label: I(
|
|
4790
|
-
showClear: !he(e) || I(
|
|
4791
|
-
onHandleClose: (t) =>
|
|
4807
|
+
G(), f("filter-closed");
|
|
4808
|
+
}, he = (e) => le(e, z(S.value, e)?.colField || S.value);
|
|
4809
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(w) ? (E(), o("ul", ac, [(E(!0), o(t, null, k(I(m), (e) => (E(), o(t, { key: `${I(C)}-${e}` }, [I(B)(e) ? a("", !0) : (E(), o("li", oc, [u(yn, {
|
|
4810
|
+
label: I(ne)(e) || "",
|
|
4811
|
+
showClear: !he(e) || I(K)(),
|
|
4812
|
+
onHandleClose: (t) => pe(e)
|
|
4792
4813
|
}, null, 8, [
|
|
4793
4814
|
"label",
|
|
4794
4815
|
"showClear",
|
|
@@ -4812,7 +4833,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4812
4833
|
overlayTrigger: I(w),
|
|
4813
4834
|
options: I(D),
|
|
4814
4835
|
optionsRenderer: I(N),
|
|
4815
|
-
optionsAction:
|
|
4836
|
+
optionsAction: fe.value,
|
|
4816
4837
|
popoverCssProperties: {
|
|
4817
4838
|
maxHeight: "400px",
|
|
4818
4839
|
maxWidth: I(w) ? "300px" : "400px",
|
|
@@ -4834,52 +4855,52 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4834
4855
|
filterColDef: e.filterColDef,
|
|
4835
4856
|
rowsLoading: I(v)
|
|
4836
4857
|
},
|
|
4837
|
-
onDropdownOpen: r[4] ||= (e) => I(
|
|
4858
|
+
onDropdownOpen: r[4] ||= (e) => I(H)(!0),
|
|
4838
4859
|
onDropdownClosed: me,
|
|
4839
4860
|
onSeeMore: I(re)
|
|
4840
4861
|
}, c({
|
|
4841
|
-
preferences:
|
|
4862
|
+
preferences: V(() => [s("div", sc, [r[6] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(_n), {
|
|
4842
4863
|
variant: "dark",
|
|
4843
4864
|
size: "sm"
|
|
4844
4865
|
}, {
|
|
4845
|
-
label:
|
|
4866
|
+
label: V(() => [u(X, {
|
|
4846
4867
|
size: "md",
|
|
4847
4868
|
variant: "ghost",
|
|
4848
4869
|
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(C)),
|
|
4849
4870
|
"right-icon": "sliders-horizontal"
|
|
4850
4871
|
})]),
|
|
4851
|
-
"tooltip-content":
|
|
4872
|
+
"tooltip-content": V(() => [...r[5] ||= [l(" Open Preferences ", -1)]]),
|
|
4852
4873
|
_: 1
|
|
4853
4874
|
})])]),
|
|
4854
|
-
suggestions:
|
|
4875
|
+
suggestions: V(() => [s("div", cc, [u(I(_n), {
|
|
4855
4876
|
variant: "dark",
|
|
4856
4877
|
disableInteractive: !0,
|
|
4857
4878
|
"tooltip-position": "top-left",
|
|
4858
4879
|
size: "sm",
|
|
4859
4880
|
style: { "--max-width": "200px" }
|
|
4860
4881
|
}, c({
|
|
4861
|
-
label:
|
|
4882
|
+
label: V(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(R) ? "suggested-title-label" : ""]) }, P(I(te)), 3)]),
|
|
4862
4883
|
_: 2
|
|
4863
|
-
}, [I(
|
|
4884
|
+
}, [I(R) ? {
|
|
4864
4885
|
name: "tooltip-content",
|
|
4865
|
-
fn:
|
|
4886
|
+
fn: V(() => [l(P(I(R)), 1)]),
|
|
4866
4887
|
key: "0"
|
|
4867
4888
|
} : void 0]), 1024)])]),
|
|
4868
4889
|
_: 2
|
|
4869
4890
|
}, [
|
|
4870
4891
|
I(L) ? {
|
|
4871
4892
|
name: "header",
|
|
4872
|
-
fn:
|
|
4893
|
+
fn: V((e) => [(E(), i(M(I(L)), b(p(e)), null, 16))]),
|
|
4873
4894
|
key: "0"
|
|
4874
4895
|
} : void 0,
|
|
4875
4896
|
I(j) ? {
|
|
4876
4897
|
name: "no-results",
|
|
4877
|
-
fn:
|
|
4898
|
+
fn: V((e) => [(E(), i(M(I(j)), b(p(e)), null, 16))]),
|
|
4878
4899
|
key: "1"
|
|
4879
4900
|
} : void 0,
|
|
4880
|
-
I(
|
|
4901
|
+
I(ee) ? {
|
|
4881
4902
|
name: "footer",
|
|
4882
|
-
fn:
|
|
4903
|
+
fn: V((e) => [(E(), i(M(I(ee)), b(p(e)), null, 16))]),
|
|
4883
4904
|
key: "2"
|
|
4884
4905
|
} : void 0
|
|
4885
4906
|
]), 1032, /* @__PURE__ */ "modelValue.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.hideParentOnChildQueryMatch.slotContext.onSeeMore".split("."))]), I(w) ? (E(), o("div", lc, [I(T).length > 0 ? (E(), o("div", uc, [s("ul", dc, [u(I(_n), {
|
|
@@ -4889,11 +4910,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4889
4910
|
size: "sm",
|
|
4890
4911
|
style: { "--max-width": "200px" }
|
|
4891
4912
|
}, c({
|
|
4892
|
-
label:
|
|
4913
|
+
label: V(() => [s("li", fc, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(R) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
4893
4914
|
_: 2
|
|
4894
|
-
}, [I(
|
|
4915
|
+
}, [I(R) ? {
|
|
4895
4916
|
name: "tooltip-content",
|
|
4896
|
-
fn:
|
|
4917
|
+
fn: V(() => [l(P(I(R)), 1)]),
|
|
4897
4918
|
key: "0"
|
|
4898
4919
|
} : void 0]), 1024), (E(!0), o(t, null, k(I(T).filter((e) => e !== "" && e != null).slice(0, pc), (e) => (E(), o("li", {
|
|
4899
4920
|
key: `${I(C)}-${e}-suggest`,
|
|
@@ -4904,8 +4925,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4904
4925
|
}
|
|
4905
4926
|
}, [u(I(Ti), {
|
|
4906
4927
|
disabled: I(g),
|
|
4907
|
-
label: I(
|
|
4908
|
-
onHandleClick: (t) => I(
|
|
4928
|
+
label: I(ne)(e) || "",
|
|
4929
|
+
onHandleClick: (t) => I(U)(e, I(z)(I(S), e)?.colField)
|
|
4909
4930
|
}, null, 8, [
|
|
4910
4931
|
"disabled",
|
|
4911
4932
|
"label",
|
|
@@ -4967,7 +4988,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4967
4988
|
return;
|
|
4968
4989
|
}
|
|
4969
4990
|
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => L(e, t));
|
|
4970
|
-
},
|
|
4991
|
+
}, ee = r(() => {
|
|
4971
4992
|
let e = _.value;
|
|
4972
4993
|
if (f.value && n.value) {
|
|
4973
4994
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -4975,11 +4996,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4975
4996
|
}
|
|
4976
4997
|
let t = _.value || {};
|
|
4977
4998
|
return Object.keys(t).length;
|
|
4978
|
-
}),
|
|
4979
|
-
|
|
4980
|
-
},
|
|
4999
|
+
}), te = O(!1), R = () => {
|
|
5000
|
+
te.value = !0;
|
|
5001
|
+
}, z = () => {
|
|
4981
5002
|
if (n.value) {
|
|
4982
|
-
|
|
5003
|
+
te.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
4983
5004
|
for (let e of M.value) {
|
|
4984
5005
|
let t = e.field;
|
|
4985
5006
|
if (!t) continue;
|
|
@@ -4990,14 +5011,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4990
5011
|
});
|
|
4991
5012
|
}
|
|
4992
5013
|
}
|
|
4993
|
-
}, { clearAllFocuses:
|
|
4994
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
4995
|
-
},
|
|
5014
|
+
}, { clearAllFocuses: ne } = Ko(), B = () => {
|
|
5015
|
+
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, ne(), T.value = !1);
|
|
5016
|
+
}, H = () => {
|
|
4996
5017
|
w.value = !1, D.value = "";
|
|
5018
|
+
}, U = () => {
|
|
5019
|
+
b(), H();
|
|
4997
5020
|
}, W = () => {
|
|
4998
|
-
b(), te();
|
|
4999
|
-
}, G = () => {
|
|
5000
|
-
b(), z.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), te();
|
|
5021
|
+
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), H();
|
|
5001
5022
|
};
|
|
5002
5023
|
return (e, r) => (E(), o(t, null, [s("div", hc, [
|
|
5003
5024
|
(E(!0), o(t, null, k(F.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(mc, {
|
|
@@ -5016,19 +5037,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5016
5037
|
s("div", gc, [p.enableVerticalPanel ? (E(), i(I(X), {
|
|
5017
5038
|
key: 0,
|
|
5018
5039
|
label: "All Filters",
|
|
5019
|
-
onClick:
|
|
5040
|
+
onClick: z,
|
|
5020
5041
|
variant: "ghost",
|
|
5021
5042
|
"left-icon": "filter"
|
|
5022
|
-
})) : a("", !0),
|
|
5043
|
+
})) : a("", !0), ee.value > 0 ? (E(), o("button", {
|
|
5023
5044
|
key: 1,
|
|
5024
5045
|
class: "pv-button-ghost",
|
|
5025
5046
|
onClick: r[1] ||= (e) => T.value = !0
|
|
5026
5047
|
}, [
|
|
5027
5048
|
u(I(rn), { name: "close" }),
|
|
5028
5049
|
r[12] ||= l(" Clear All Filters ", -1),
|
|
5029
|
-
|
|
5050
|
+
ee.value > 0 ? (E(), i(I(cn), {
|
|
5030
5051
|
key: 0,
|
|
5031
|
-
value:
|
|
5052
|
+
value: ee.value,
|
|
5032
5053
|
variant: "tertiary"
|
|
5033
5054
|
}, null, 8, ["value"])) : a("", !0)
|
|
5034
5055
|
])) : a("", !0)]),
|
|
@@ -5038,39 +5059,39 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5038
5059
|
"onUpdate:modelValue": r[8] ||= (e) => w.value = e,
|
|
5039
5060
|
class: "pv-drawer pv-surface",
|
|
5040
5061
|
"close-on-click-outside": !0,
|
|
5041
|
-
onClickOutside: r[9] ||= (e) =>
|
|
5062
|
+
onClickOutside: r[9] ||= (e) => W(),
|
|
5042
5063
|
style: {
|
|
5043
5064
|
"max-width": "450px",
|
|
5044
5065
|
"z-index": "10"
|
|
5045
5066
|
}
|
|
5046
5067
|
}, {
|
|
5047
|
-
header:
|
|
5068
|
+
header: V(() => [s("div", _c, [s("p", vc, "All Filters (" + P(M.value.length) + ")", 1), s("button", {
|
|
5048
5069
|
class: "pv-button-ghost",
|
|
5049
|
-
onClick: r[2] ||= (e) =>
|
|
5070
|
+
onClick: r[2] ||= (e) => U()
|
|
5050
5071
|
}, [u(I(rn), { name: "close" })])]), u(I(Ai), {
|
|
5051
5072
|
modelValue: D.value,
|
|
5052
5073
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
5053
5074
|
placeholder: "Search Filters"
|
|
5054
5075
|
}, null, 8, ["modelValue"])]),
|
|
5055
|
-
footer:
|
|
5076
|
+
footer: V(() => [s("div", wc, [s("button", {
|
|
5056
5077
|
class: "pv-button-ghost",
|
|
5057
|
-
onClick: r[5] ||= (e) =>
|
|
5078
|
+
onClick: r[5] ||= (e) => B()
|
|
5058
5079
|
}, "Clear All"), s("div", Tc, [u(I(X), {
|
|
5059
5080
|
variant: "ghost",
|
|
5060
5081
|
label: "Cancel",
|
|
5061
|
-
onClick: r[6] ||= (e) =>
|
|
5062
|
-
}),
|
|
5082
|
+
onClick: r[6] ||= (e) => U()
|
|
5083
|
+
}), te.value ? (E(), i(I(X), {
|
|
5063
5084
|
key: 0,
|
|
5064
5085
|
variant: "primary",
|
|
5065
5086
|
label: "Apply",
|
|
5066
|
-
onClick: r[7] ||= (e) =>
|
|
5087
|
+
onClick: r[7] ||= (e) => W()
|
|
5067
5088
|
})) : (E(), i(I(X), {
|
|
5068
5089
|
key: 1,
|
|
5069
5090
|
variant: "primary",
|
|
5070
5091
|
label: "No Changes",
|
|
5071
5092
|
disabled: ""
|
|
5072
5093
|
}))])])]),
|
|
5073
|
-
default:
|
|
5094
|
+
default: V(() => [s("div", yc, [s("div", bc, [(E(!0), o(t, null, k(N.value, (t, c) => (E(), o("div", {
|
|
5074
5095
|
key: t.field,
|
|
5075
5096
|
class: y([{ "pv-border-bottom": c < N.value.length - 1 }, "pv-stack-12"])
|
|
5076
5097
|
}, [s("details", xc, [s("summary", Sc, [s("span", Cc, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(mc, {
|
|
@@ -5080,7 +5101,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5080
5101
|
filterColDef: t,
|
|
5081
5102
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
5082
5103
|
"focus-text": p.focusText,
|
|
5083
|
-
onFilterSelectionChanged:
|
|
5104
|
+
onFilterSelectionChanged: R,
|
|
5084
5105
|
onHandleSettingsIcon: r[4] ||= (t) => e.$emit("handle-settings-icon", t)
|
|
5085
5106
|
}, null, 8, [
|
|
5086
5107
|
"enable-focus-view",
|
|
@@ -5096,8 +5117,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5096
5117
|
header: "Clear All Filters",
|
|
5097
5118
|
style: { top: "50%" }
|
|
5098
5119
|
}, {
|
|
5099
|
-
body:
|
|
5100
|
-
footer:
|
|
5120
|
+
body: V(() => [...r[13] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
5121
|
+
footer: V(() => [s("div", Ec, [u(I(X), {
|
|
5101
5122
|
label: "Cancel",
|
|
5102
5123
|
variant: "secondary",
|
|
5103
5124
|
size: "lg",
|
|
@@ -5106,7 +5127,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5106
5127
|
label: "Clear All Filters",
|
|
5107
5128
|
variant: "primary",
|
|
5108
5129
|
size: "lg",
|
|
5109
|
-
onClick:
|
|
5130
|
+
onClick: B
|
|
5110
5131
|
})])]),
|
|
5111
5132
|
_: 1
|
|
5112
5133
|
}, 8, ["modelValue"])], 64));
|
|
@@ -5145,7 +5166,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5145
5166
|
}, I = () => {
|
|
5146
5167
|
f.value && l.params.progressSort(!1);
|
|
5147
5168
|
};
|
|
5148
|
-
|
|
5169
|
+
B(D, (e) => {
|
|
5149
5170
|
if (!e) return;
|
|
5150
5171
|
let t = l.params.column.getAggFunc();
|
|
5151
5172
|
if (e.id === t) return;
|
|
@@ -5189,7 +5210,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5189
5210
|
variant: "ghost",
|
|
5190
5211
|
size: "lg",
|
|
5191
5212
|
label: p.value || "",
|
|
5192
|
-
onClick: t[1] ||=
|
|
5213
|
+
onClick: t[1] ||= U(() => {}, ["stop"])
|
|
5193
5214
|
}, null, 8, [
|
|
5194
5215
|
"modelValue",
|
|
5195
5216
|
"options",
|
|
@@ -5208,7 +5229,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5208
5229
|
size: "md",
|
|
5209
5230
|
variant: "ghost",
|
|
5210
5231
|
"left-icon": "menu",
|
|
5211
|
-
onClick:
|
|
5232
|
+
onClick: U(N, ["stop", "prevent"])
|
|
5212
5233
|
})], 4)])) : a("", !0)], 4));
|
|
5213
5234
|
}
|
|
5214
5235
|
}), [["__scopeId", "data-v-9a0f71b4"]]), jc = {
|
|
@@ -5277,7 +5298,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5277
5298
|
class: "pv-icon-24"
|
|
5278
5299
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Ic, [s("button", {
|
|
5279
5300
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
5280
|
-
onClick:
|
|
5301
|
+
onClick: U(i, ["prevent"]),
|
|
5281
5302
|
disabled: r.value
|
|
5282
5303
|
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Lc)])]));
|
|
5283
5304
|
}
|
|
@@ -5288,7 +5309,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5288
5309
|
__name: "PaginationPanel",
|
|
5289
5310
|
props: { panelSize: { default: "xl" } },
|
|
5290
5311
|
setup(e) {
|
|
5291
|
-
me.registerModules([
|
|
5312
|
+
me.registerModules([K]);
|
|
5292
5313
|
let n = m(io, O(null)), a = m(ho, O(1)), s = m(go, O(0)), c = e, l = r(() => {
|
|
5293
5314
|
let e = s.value, t = a.value;
|
|
5294
5315
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
@@ -5636,7 +5657,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5636
5657
|
Ae,
|
|
5637
5658
|
ce,
|
|
5638
5659
|
ue,
|
|
5639
|
-
|
|
5660
|
+
fe,
|
|
5640
5661
|
Me,
|
|
5641
5662
|
ye,
|
|
5642
5663
|
Re,
|
|
@@ -5655,7 +5676,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5655
5676
|
Ce,
|
|
5656
5677
|
ae,
|
|
5657
5678
|
be,
|
|
5658
|
-
|
|
5679
|
+
pe,
|
|
5659
5680
|
he,
|
|
5660
5681
|
de,
|
|
5661
5682
|
le,
|
|
@@ -5667,7 +5688,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5667
5688
|
let p = r(() => f.layout ? {} : {
|
|
5668
5689
|
height: f.containerHeight,
|
|
5669
5690
|
minHeight: f.containerMinHeight
|
|
5670
|
-
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme :
|
|
5691
|
+
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : K.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", C = r(() => h.value ? f.theme : Pc[g.value]), w = c, T = O(!1), k = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
5671
5692
|
if (!Ue.value) {
|
|
5672
5693
|
e.success({ rowData: [] }), me.value = !0;
|
|
5673
5694
|
return;
|
|
@@ -5736,7 +5757,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5736
5757
|
} : e.request.filterModel = s;
|
|
5737
5758
|
} else {
|
|
5738
5759
|
let t = e.request.filterModel;
|
|
5739
|
-
e.request.filterModel = Is(
|
|
5760
|
+
e.request.filterModel = Is(z, t, s);
|
|
5740
5761
|
}
|
|
5741
5762
|
e.success = (e) => {
|
|
5742
5763
|
if (we.value = !1, f.enableFocusView && ot.value.length > 0 && at.value && e.rowData) {
|
|
@@ -5752,7 +5773,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5752
5773
|
}, f.serverSideRowHandler?.(e);
|
|
5753
5774
|
} } : null, j = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
5754
5775
|
let t = [], n = { ...Xe.value };
|
|
5755
|
-
t = !me.value &&
|
|
5776
|
+
t = !me.value && W ? Vs(e.colDef, n) : await et(e.colDef, {
|
|
5756
5777
|
api: e.api,
|
|
5757
5778
|
filterModel: n
|
|
5758
5779
|
}), e.success([...t, ""]);
|
|
@@ -5779,7 +5800,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5779
5800
|
component: Cs,
|
|
5780
5801
|
params: e
|
|
5781
5802
|
};
|
|
5782
|
-
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber &&
|
|
5803
|
+
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && K.value.length === 0) {
|
|
5783
5804
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
5784
5805
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
5785
5806
|
component: Wc,
|
|
@@ -5789,23 +5810,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5789
5810
|
}
|
|
5790
5811
|
};
|
|
5791
5812
|
return f.defaultColDefOverrides && Object.assign(e, f.defaultColDefOverrides), e;
|
|
5792
|
-
})(), L = O(void 0),
|
|
5813
|
+
})(), L = O(void 0), ee = r(() => (e) => {
|
|
5793
5814
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
5794
5815
|
let t = [];
|
|
5795
5816
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
5796
|
-
}),
|
|
5817
|
+
}), te = {
|
|
5797
5818
|
name: "Column Filter",
|
|
5798
5819
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
5799
5820
|
action: function(e) {
|
|
5800
5821
|
let t = e.column?.getColId();
|
|
5801
5822
|
if (e.column && vt(e.column) && (t = ut.value?.getColId() || ""), !Pt(t)) {
|
|
5802
5823
|
let n = e.api.getColumn(t)?.getColDef();
|
|
5803
|
-
n && (
|
|
5824
|
+
n && (G.value = n, v(() => {
|
|
5804
5825
|
Pt(t);
|
|
5805
5826
|
}));
|
|
5806
5827
|
}
|
|
5807
5828
|
}
|
|
5808
|
-
},
|
|
5829
|
+
}, R = (e, t) => {
|
|
5809
5830
|
if (!e) return null;
|
|
5810
5831
|
let n = { ...e };
|
|
5811
5832
|
if (t.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -5819,19 +5840,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5819
5840
|
n.headerValueGetter = (e) => e.location === "advancedFilter" ? n.colId || n.field || "" : t && typeof t == "function" ? t(e) : t && typeof t == "string" ? t : n.headerName || n.field || "";
|
|
5820
5841
|
}
|
|
5821
5842
|
return t.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => wt(e, t.dataType) : t.dataType === Q.Percent && !e.valueFormatter ? n.valueFormatter = (e) => St(e, t.valueDecimals || 0) : t.dataType === Q.Currency && !e.valueFormatter ? n.valueFormatter = (e) => xt(e, t.valueDecimals || 0) : t.dataType === Q.Integer && !e.valueFormatter ? n.valueFormatter = Ct : t.dataType === Q.Tag && !e.cellRenderer && (n.cellRenderer = Hc), n;
|
|
5822
|
-
},
|
|
5843
|
+
}, z = f.colDefs?.map((e) => {
|
|
5823
5844
|
let t = { ...e };
|
|
5824
5845
|
k && j && Ls(e) && (t = Rs(e, j));
|
|
5825
5846
|
let n = e.context;
|
|
5826
|
-
return n && (t =
|
|
5827
|
-
}).filter((e) => e != null) || [],
|
|
5828
|
-
for (let e of
|
|
5847
|
+
return n && (t = R(t, n)), t;
|
|
5848
|
+
}).filter((e) => e != null) || [], U = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
5849
|
+
for (let e of z) {
|
|
5829
5850
|
let t = e.context;
|
|
5830
|
-
if (t?.aggregateFields) for (let n of t.aggregateFields)
|
|
5851
|
+
if (t?.aggregateFields) for (let n of t.aggregateFields) U.has(n) || console.warn(`aggregateFields references "${n}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
5831
5852
|
}
|
|
5832
|
-
let
|
|
5833
|
-
if (
|
|
5834
|
-
let e =
|
|
5853
|
+
let W = As(f.initialGridState, z, f.enableAdvancedFilter), G = O(null), K = O([]), me = m(po, O(!1)), we = O(!1), He = r(() => {
|
|
5854
|
+
if (K.value.length > 0) {
|
|
5855
|
+
let e = K.value[0], t = z.find((t) => t.field === e), n = Xe.value, r = !n;
|
|
5835
5856
|
if (!r && tc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
5836
5857
|
}
|
|
5837
5858
|
return null;
|
|
@@ -5845,27 +5866,27 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5845
5866
|
deep: !0,
|
|
5846
5867
|
debounce: 250
|
|
5847
5868
|
});
|
|
5848
|
-
let it = O(null), at = r(() => Ye?.computedFocusType.value || null), ot = r(() => Ye?.computedFocuses.value || []), st = r(() =>
|
|
5849
|
-
D(to, Ge), D(no, Ye), D(ro, We), D(io, Y), D(ao, it), D(oo,
|
|
5869
|
+
let it = O(null), at = r(() => Ye?.computedFocusType.value || null), ot = r(() => Ye?.computedFocuses.value || []), st = r(() => z.filter((e) => e.filter)), ct = r(() => z.filter((e) => e.enableRowGroup)), lt = r(() => z.filter((e) => e.aggFunc)), ut = O(null), dt = O({}), ft = O(1), pt = O(0);
|
|
5870
|
+
D(to, Ge), D(no, Ye), D(ro, We), D(io, Y), D(ao, it), D(oo, G), D(so, st), D(co, ct), D(lo, K), D(uo, ut), D(fo, dt), D(po, me), D(mo, we), D(ho, ft), D(go, pt), D(Do, r(() => f.enableAdvancedFilter));
|
|
5850
5871
|
let mt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ot.value.length && !at.value ? f.rowData : ps(f.rowData, at.value, ot.value));
|
|
5851
|
-
|
|
5872
|
+
B(() => ot.value, (e) => {
|
|
5852
5873
|
w("focus-update", {
|
|
5853
5874
|
filterField: at.value,
|
|
5854
5875
|
focuses: e
|
|
5855
5876
|
});
|
|
5856
|
-
}),
|
|
5877
|
+
}), B(T, (e) => {
|
|
5857
5878
|
if (!Y.value) return;
|
|
5858
|
-
let t =
|
|
5879
|
+
let t = z.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
5859
5880
|
t.length > 0 && Y.value.setColumnsVisible(t, e);
|
|
5860
5881
|
});
|
|
5861
5882
|
let ht = (e) => {
|
|
5862
5883
|
Y.value = e.api;
|
|
5863
|
-
let t =
|
|
5864
|
-
if (f.hideAllRowGroupedColumns &&
|
|
5884
|
+
let t = K.value.find((e) => !z.find((t) => t.field === e)?.hide), n = !t && K.value.length > 0 ? z.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
5885
|
+
if (f.hideAllRowGroupedColumns && K.value.forEach((e) => i.push(e)), r) {
|
|
5865
5886
|
let t = e.api.getColumn(r);
|
|
5866
5887
|
ut.value = t, i.push(r), Rt(t?.getColDef());
|
|
5867
5888
|
}
|
|
5868
|
-
|
|
5889
|
+
W && Vt(W), e.api.setColumnsVisible([...i], !1), it.value = e.api.getAllGridColumns(), ft.value = e.api.paginationGetCurrentPage() + 1, pt.value = e.api.paginationGetTotalPages(), w("grid-ready", e);
|
|
5869
5890
|
}, gt = (e) => {
|
|
5870
5891
|
if (Y.value) {
|
|
5871
5892
|
let t = Dt();
|
|
@@ -5950,7 +5971,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5950
5971
|
getFilterValueSelectedMetadataMap: Tt,
|
|
5951
5972
|
availableRowGroupColumns: ct,
|
|
5952
5973
|
availableAggFuncColumns: lt,
|
|
5953
|
-
rowGroupColumnFields:
|
|
5974
|
+
rowGroupColumnFields: K,
|
|
5954
5975
|
getPvFilterModel: Dt,
|
|
5955
5976
|
setPvFilterModel: (e) => {
|
|
5956
5977
|
if (!Y.value) return;
|
|
@@ -5971,13 +5992,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5971
5992
|
v(() => {
|
|
5972
5993
|
let t = ut.value, n = e.api.getRowGroupColumns(), r = n.length > 0, i;
|
|
5973
5994
|
if (r && f.leftPinnedColumnName && (i = e.api.getColumn(f.leftPinnedColumnName || "")), r && !f.leftPinnedColumnName && (i = n.find((e) => !e.getColDef().hide), !i)) {
|
|
5974
|
-
let t =
|
|
5995
|
+
let t = z.find((e) => !e.hide && !e.rowGroup)?.field;
|
|
5975
5996
|
t && (i = e.api.getColumn(t));
|
|
5976
5997
|
}
|
|
5977
5998
|
i ? (ut.value = i, Rt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (ut.value = null, Rt(null));
|
|
5978
5999
|
let a = t?.getColId();
|
|
5979
|
-
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)),
|
|
5980
|
-
let e =
|
|
6000
|
+
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)), K.value = [...n].map((e) => e.getColId()), f.enableFocusView && !Ke) {
|
|
6001
|
+
let e = K.value.length > 0 ? K.value[0] : null;
|
|
5981
6002
|
Ye.setFocusType(e);
|
|
5982
6003
|
}
|
|
5983
6004
|
me.value && w("column-row-group-changed", e);
|
|
@@ -6058,24 +6079,24 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6058
6079
|
"sortUnSort",
|
|
6059
6080
|
"rowUnGroup"
|
|
6060
6081
|
], n = e.column && vt(e.column) ? ut.value : e.column;
|
|
6061
|
-
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0,
|
|
6062
|
-
},
|
|
6082
|
+
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, te), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
6083
|
+
}, W && (Xe.value = (f.enableAdvancedFilter ? W.filter?.advancedFilterModel : W.filter?.filterModel) || null, K.value = W.rowGroup?.groupColIds || []);
|
|
6063
6084
|
});
|
|
6064
6085
|
let Vt = (e) => {
|
|
6065
6086
|
let t = Y.value;
|
|
6066
6087
|
if (!t) return;
|
|
6067
6088
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
6068
|
-
n && !Gs(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !nt(r,
|
|
6089
|
+
n && !Gs(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !nt(r, K.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
6069
6090
|
};
|
|
6070
|
-
|
|
6091
|
+
B(() => f.initialGridState, () => {
|
|
6071
6092
|
if (f.initialGridState) {
|
|
6072
|
-
let e = As(f.initialGridState,
|
|
6093
|
+
let e = As(f.initialGridState, z, f.enableAdvancedFilter);
|
|
6073
6094
|
e && Vt(e);
|
|
6074
6095
|
}
|
|
6075
6096
|
}, { deep: !0 });
|
|
6076
6097
|
let Ht = (e) => {
|
|
6077
6098
|
me.value = !0, w("first-data-rendered", e);
|
|
6078
|
-
}, Ut = (e) => k ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level ===
|
|
6099
|
+
}, Ut = (e) => k ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level === K.value.length - 2 : !1, Wt = r(() => {
|
|
6079
6100
|
if (!k) return f.groupDefaultExpanded;
|
|
6080
6101
|
}), Gt = O(null), Kt = O(null);
|
|
6081
6102
|
return (t, r) => (E(), o("div", {
|
|
@@ -6093,15 +6114,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6093
6114
|
"--flex-justify": "flex-end"
|
|
6094
6115
|
}
|
|
6095
6116
|
}, {
|
|
6096
|
-
trigger:
|
|
6117
|
+
trigger: V(() => [u(I(X), {
|
|
6097
6118
|
"left-icon": "flask-conical",
|
|
6098
6119
|
variant: T.value ? "primary" : "secondary",
|
|
6099
6120
|
onClick: r[0] ||= (e) => T.value = !T.value
|
|
6100
6121
|
}, null, 8, ["variant"])]),
|
|
6101
|
-
content:
|
|
6122
|
+
content: V(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
6102
6123
|
_: 1
|
|
6103
6124
|
})) : a("", !0),
|
|
6104
|
-
|
|
6125
|
+
H(s("div", Yc, [s("div", Xc, [(E(), i(n, {
|
|
6105
6126
|
to: e.filterTeleportLocation,
|
|
6106
6127
|
disabled: !e.filterTeleportLocation
|
|
6107
6128
|
}, [st.value.length > 0 && !f.enableInlineFilters ? (E(), i(Dc, {
|
|
@@ -6127,12 +6148,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6127
6148
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Rc, {
|
|
6128
6149
|
key: 1,
|
|
6129
6150
|
getCsvData: Et
|
|
6130
|
-
})) : a("", !0)])])], 512), [[
|
|
6131
|
-
|
|
6151
|
+
})) : a("", !0)])])], 512), [[ne, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
6152
|
+
H(s("div", {
|
|
6132
6153
|
ref_key: "advancedFilterParentElement",
|
|
6133
6154
|
ref: Kt,
|
|
6134
6155
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
6135
|
-
}, null, 2), [[
|
|
6156
|
+
}, null, 2), [[ne, T.value && e.enableAdvancedFilter]]),
|
|
6136
6157
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
6137
6158
|
key: 1,
|
|
6138
6159
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
@@ -6183,16 +6204,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6183
6204
|
onUndoStarted: r[10] ||= (e) => w("undo-started", e),
|
|
6184
6205
|
aggFuncs: Bt,
|
|
6185
6206
|
autoGroupColumnDef: Lt.value,
|
|
6186
|
-
columnDefs: I(
|
|
6207
|
+
columnDefs: I(z),
|
|
6187
6208
|
debug: e.debugMode,
|
|
6188
6209
|
defaultColDef: I(F),
|
|
6189
6210
|
getChildCount: Nt,
|
|
6190
|
-
getContextMenuItems:
|
|
6211
|
+
getContextMenuItems: ee.value,
|
|
6191
6212
|
getMainMenuItems: L.value,
|
|
6192
6213
|
getRowStyle: zt,
|
|
6193
6214
|
groupDefaultExpanded: Wt.value,
|
|
6194
6215
|
groupDisplayType: "singleColumn",
|
|
6195
|
-
initialState: I(
|
|
6216
|
+
initialState: I(W) || void 0,
|
|
6196
6217
|
isGroupOpenByDefault: I(k) ? void 0 : f.isClientSideGroupOpenByDefault,
|
|
6197
6218
|
isServerSideGroupOpenByDefault: Ut,
|
|
6198
6219
|
includeHiddenColumnsInAdvancedFilter: !0,
|
|
@@ -6329,7 +6350,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6329
6350
|
l,
|
|
6330
6351
|
...n.options.filter((t) => !e.has(t.id))
|
|
6331
6352
|
];
|
|
6332
|
-
}), m =
|
|
6353
|
+
}), m = te("sortableListRef"), h = te("containerRef"), g = null, _ = null, v = () => {
|
|
6333
6354
|
if (!m.value) return;
|
|
6334
6355
|
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === fl);
|
|
6335
6356
|
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);
|
|
@@ -6544,12 +6565,12 @@ var Sl = {
|
|
|
6544
6565
|
disableInteractive: !0,
|
|
6545
6566
|
style: { "pointer-events": "auto" }
|
|
6546
6567
|
}, {
|
|
6547
|
-
trigger:
|
|
6568
|
+
trigger: V(() => [u(I(rn), {
|
|
6548
6569
|
size: 12,
|
|
6549
6570
|
name: "info-circle",
|
|
6550
6571
|
class: "pv-text-subdued"
|
|
6551
6572
|
})]),
|
|
6552
|
-
content:
|
|
6573
|
+
content: V(() => [s("div", wl, P(e.context.description), 1)]),
|
|
6553
6574
|
_: 1
|
|
6554
6575
|
})) : a("", !0)]));
|
|
6555
6576
|
}
|
|
@@ -6587,14 +6608,14 @@ var Sl = {
|
|
|
6587
6608
|
}), g = O(!1), _ = O(void 0), v = O(null), b = m(xo, O(void 0)), S = m(yo, O([])), C = m(So, O(void 0)), w = m(bo, O([])), T = m(vo, O([])), D = m(co, O([])), A = r(() => xl(b.value?.id || "")), j = r(() => {
|
|
6588
6609
|
let e = b.value?.id ?? "";
|
|
6589
6610
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
6590
|
-
}), M = m(Co, O("")), N = m(wo, O([])), F = m(To, O(void 0)), L = m(Eo, O([])),
|
|
6591
|
-
|
|
6611
|
+
}), M = m(Co, O("")), N = m(wo, O([])), F = m(To, O(void 0)), L = m(Eo, O([])), ee = m(Oo, O(/* @__PURE__ */ new Set())), te = m(ko, O([]));
|
|
6612
|
+
B(j, (e) => {
|
|
6592
6613
|
e && F.value && (F.value = void 0);
|
|
6593
6614
|
}, { immediate: !0 });
|
|
6594
|
-
let
|
|
6615
|
+
let R = m(_o, O("")), z = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
6595
6616
|
label: e.label,
|
|
6596
6617
|
value: e.value
|
|
6597
|
-
})) : []),
|
|
6618
|
+
})) : []), ne = r(() => {
|
|
6598
6619
|
if (b.value) return (T.value.length > 1 ? [
|
|
6599
6620
|
"bar_stacked",
|
|
6600
6621
|
"line",
|
|
@@ -6607,7 +6628,7 @@ var Sl = {
|
|
|
6607
6628
|
"area"
|
|
6608
6629
|
]).includes(b.value?.id);
|
|
6609
6630
|
});
|
|
6610
|
-
|
|
6631
|
+
B(S, (e) => {
|
|
6611
6632
|
if (!b.value) return;
|
|
6612
6633
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
6613
6634
|
if (r) {
|
|
@@ -6623,14 +6644,14 @@ var Sl = {
|
|
|
6623
6644
|
}
|
|
6624
6645
|
b.value = e[0];
|
|
6625
6646
|
});
|
|
6626
|
-
function
|
|
6647
|
+
function U(e) {
|
|
6627
6648
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
6628
6649
|
}
|
|
6629
|
-
let
|
|
6650
|
+
let W = r(() => N.value.map((e) => ({
|
|
6630
6651
|
id: e.value,
|
|
6631
6652
|
text: e.label,
|
|
6632
6653
|
context: e.description ? { description: e.description } : void 0
|
|
6633
|
-
}))),
|
|
6654
|
+
}))), G = r(() => L.value.map((e) => ({
|
|
6634
6655
|
id: e.value,
|
|
6635
6656
|
text: e.label
|
|
6636
6657
|
}))), re = r(() => D.value.map((e) => ({
|
|
@@ -6649,8 +6670,8 @@ var Sl = {
|
|
|
6649
6670
|
prefixLabel: "Y Axis",
|
|
6650
6671
|
icon: "chart-bar-decreasing",
|
|
6651
6672
|
allowDeselect: !1,
|
|
6652
|
-
availableOptions:
|
|
6653
|
-
currentOption:
|
|
6673
|
+
availableOptions: W.value,
|
|
6674
|
+
currentOption: W.value.find((e) => e.id === M.value),
|
|
6654
6675
|
updateSelectedOption: (e) => {
|
|
6655
6676
|
M && e !== M.value && (M.value = e);
|
|
6656
6677
|
}
|
|
@@ -6677,7 +6698,7 @@ var Sl = {
|
|
|
6677
6698
|
allowDeselect: !0,
|
|
6678
6699
|
availableOptions: w.value,
|
|
6679
6700
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
6680
|
-
disabled: !
|
|
6701
|
+
disabled: !ne.value,
|
|
6681
6702
|
disabledReason: "Sorting is not available for this chart type",
|
|
6682
6703
|
updateSelectedOption: (e) => {
|
|
6683
6704
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -6699,7 +6720,7 @@ var Sl = {
|
|
|
6699
6720
|
t && b && (b.value = t);
|
|
6700
6721
|
}
|
|
6701
6722
|
};
|
|
6702
|
-
if (
|
|
6723
|
+
if (W.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && G.value.length > 0) {
|
|
6703
6724
|
let t = {
|
|
6704
6725
|
value: "secondary-y-axis",
|
|
6705
6726
|
label: "Metric Overlay",
|
|
@@ -6708,15 +6729,15 @@ var Sl = {
|
|
|
6708
6729
|
allowDeselect: !0,
|
|
6709
6730
|
disabled: j.value,
|
|
6710
6731
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
6711
|
-
availableOptions:
|
|
6712
|
-
currentOption:
|
|
6732
|
+
availableOptions: G.value,
|
|
6733
|
+
currentOption: G.value.find((e) => e.id === F?.value),
|
|
6713
6734
|
updateSelectedOption: (e) => {
|
|
6714
6735
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
6715
6736
|
}
|
|
6716
6737
|
};
|
|
6717
6738
|
t && e.push(t);
|
|
6718
|
-
} else if (
|
|
6719
|
-
let t =
|
|
6739
|
+
} else if (te.value.length > 0) {
|
|
6740
|
+
let t = te.value.map((e) => ({
|
|
6720
6741
|
id: e.id,
|
|
6721
6742
|
text: e.label,
|
|
6722
6743
|
disabled: e.disabled,
|
|
@@ -6728,11 +6749,11 @@ var Sl = {
|
|
|
6728
6749
|
icon: "chart-line",
|
|
6729
6750
|
allowDeselect: !0,
|
|
6730
6751
|
availableOptions: t,
|
|
6731
|
-
activeOptionIds:
|
|
6732
|
-
currentOption: t.find((e) =>
|
|
6752
|
+
activeOptionIds: ee.value,
|
|
6753
|
+
currentOption: t.find((e) => ee.value.has(e.id)),
|
|
6733
6754
|
updateSelectedOption: (e) => {
|
|
6734
|
-
let t = new Set(
|
|
6735
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
6755
|
+
let t = new Set(ee.value);
|
|
6756
|
+
t.has(e) ? t.delete(e) : t.add(e), ee.value = t;
|
|
6736
6757
|
}
|
|
6737
6758
|
};
|
|
6738
6759
|
n && e.push(n);
|
|
@@ -6740,7 +6761,7 @@ var Sl = {
|
|
|
6740
6761
|
let c = i ? 2 : 1;
|
|
6741
6762
|
return re.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);
|
|
6742
6763
|
});
|
|
6743
|
-
|
|
6764
|
+
B(v, (e) => {
|
|
6744
6765
|
e && (p.value = e);
|
|
6745
6766
|
});
|
|
6746
6767
|
let oe = r(() => _.value && ae.value.find((e) => e.value === _.value) || null), se = (e) => {
|
|
@@ -6753,7 +6774,7 @@ var Sl = {
|
|
|
6753
6774
|
}, ue = () => {
|
|
6754
6775
|
_.value = void 0;
|
|
6755
6776
|
};
|
|
6756
|
-
return (n, r) => (E(), o(t, null, [s("div", El, [s("div", null, [
|
|
6777
|
+
return (n, r) => (E(), o(t, null, [s("div", El, [s("div", null, [H((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Dl, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(Ji, {
|
|
6757
6778
|
open: g.value,
|
|
6758
6779
|
label: "Chart Configuration",
|
|
6759
6780
|
icon: "chart-area",
|
|
@@ -6768,7 +6789,7 @@ var Sl = {
|
|
|
6768
6789
|
},
|
|
6769
6790
|
isList: !0
|
|
6770
6791
|
}, {
|
|
6771
|
-
default:
|
|
6792
|
+
default: V(() => [r[3] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
6772
6793
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
6773
6794
|
style: {
|
|
6774
6795
|
"padding-top": "4px",
|
|
@@ -6785,7 +6806,7 @@ var Sl = {
|
|
|
6785
6806
|
class: "pv-full-width",
|
|
6786
6807
|
variant: "dark"
|
|
6787
6808
|
}, c({
|
|
6788
|
-
label:
|
|
6809
|
+
label: V(() => [u(Aa, {
|
|
6789
6810
|
config: { variant: "icon" },
|
|
6790
6811
|
disabled: e.disabled,
|
|
6791
6812
|
id: e.value,
|
|
@@ -6801,7 +6822,7 @@ var Sl = {
|
|
|
6801
6822
|
_: 2
|
|
6802
6823
|
}, [e.disabled && e.disabledReason ? {
|
|
6803
6824
|
name: "tooltip-content",
|
|
6804
|
-
fn:
|
|
6825
|
+
fn: V(() => [s("div", Al, P(e.disabledReason), 1)]),
|
|
6805
6826
|
key: "0"
|
|
6806
6827
|
} : void 0]), 1024)], 40, kl))), 128))])]),
|
|
6807
6828
|
_: 1
|
|
@@ -6810,9 +6831,9 @@ var Sl = {
|
|
|
6810
6831
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
6811
6832
|
}, [e.chartFilter ? (E(), i(fi, {
|
|
6812
6833
|
key: 0,
|
|
6813
|
-
options:
|
|
6814
|
-
modelValue: I(
|
|
6815
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
6834
|
+
options: z.value,
|
|
6835
|
+
modelValue: I(R),
|
|
6836
|
+
"onUpdate:modelValue": r[1] ||= (e) => h(R) ? R.value = e : null
|
|
6816
6837
|
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", jl, [(E(!0), o(t, null, k(ae.value, (e) => (E(), o(t, { key: e.value }, [e.isSortableList ? a("", !0) : (E(), i(Ua, {
|
|
6817
6838
|
key: 0,
|
|
6818
6839
|
label: e.label,
|
|
@@ -6843,7 +6864,7 @@ var Sl = {
|
|
|
6843
6864
|
},
|
|
6844
6865
|
isList: !0
|
|
6845
6866
|
}, {
|
|
6846
|
-
default:
|
|
6867
|
+
default: V(() => [oe.value ? (E(), o(t, { key: 0 }, [oe.value.isSortableList ? (E(), o(t, { key: 0 }, [r[4] ||= s("p", {
|
|
6847
6868
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
6848
6869
|
style: {
|
|
6849
6870
|
"padding-left": "2px",
|
|
@@ -6864,7 +6885,7 @@ var Sl = {
|
|
|
6864
6885
|
"data-active": se(e)
|
|
6865
6886
|
}, [u(Aa, {
|
|
6866
6887
|
id: e.id,
|
|
6867
|
-
config:
|
|
6888
|
+
config: U(e) ? { renderer: Tl } : { variant: "icon" },
|
|
6868
6889
|
text: e.text,
|
|
6869
6890
|
icon: e.icon,
|
|
6870
6891
|
context: e.context,
|
|
@@ -7118,7 +7139,7 @@ var Sl = {
|
|
|
7118
7139
|
],
|
|
7119
7140
|
setup(e, { expose: t, emit: n }) {
|
|
7120
7141
|
let c = e, l = n, d = O(null), p = O(null), m = O(null), h = O(c.initialChartCollapsed ?? !1), g = "filter-panel-" + f()?.uid, b = O(!1), x = O(!1), C = O(0), T = r(() => p.value?.availableRowGroupColumns || []), k = O([]), A = r(() => k.value.length > 0 ? k.value[0] : ""), j = (e) => $(e).chartSeriesDisplayName || e.headerName || e.field || "", N = r(() => {
|
|
7121
|
-
let e =
|
|
7142
|
+
let e = pe.value;
|
|
7122
7143
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
7123
7144
|
label: "Count",
|
|
7124
7145
|
value: e.yAxis.defaultValue
|
|
@@ -7160,22 +7181,22 @@ var Sl = {
|
|
|
7160
7181
|
};
|
|
7161
7182
|
})), L = nc();
|
|
7162
7183
|
D(to, L);
|
|
7163
|
-
let
|
|
7184
|
+
let ee = Go({
|
|
7164
7185
|
focusType: c.initialFocusData?.focusType,
|
|
7165
7186
|
focuses: c.initialFocusData?.focuses || [],
|
|
7166
7187
|
focusRequired: c.focusRequired
|
|
7167
7188
|
}, c.allFieldsAreFocusable);
|
|
7168
|
-
D(no,
|
|
7169
|
-
let { setFilterSelectedValues:
|
|
7170
|
-
D(po,
|
|
7171
|
-
let
|
|
7172
|
-
d.value = e.api,
|
|
7173
|
-
},
|
|
7189
|
+
D(no, ee);
|
|
7190
|
+
let { setFilterSelectedValues: te } = L, R = O(!1);
|
|
7191
|
+
D(po, R);
|
|
7192
|
+
let z = O(c.isTableGrouped), ne = r(() => Qe.value ? !1 : !!(c.emptyChartFilterRenderer && c.requireFiltersToShowData && L.filterModelEmpty.value)), H = r(() => ee?.computedFocusType.value || null), U = r(() => ee?.computedFocuses.value || []), W = (e) => {
|
|
7193
|
+
d.value = e.api, z.value || d.value?.setRowGroupColumns([]), Be(e.api), l("grid-ready", e);
|
|
7194
|
+
}, G = (e) => {
|
|
7174
7195
|
l("first-data-rendered", e);
|
|
7175
7196
|
}, re = (e) => {
|
|
7176
7197
|
let t = k.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
7177
|
-
if (
|
|
7178
|
-
let t =
|
|
7198
|
+
if (z.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
7199
|
+
let t = pe.value;
|
|
7179
7200
|
if (n.length > me.value) {
|
|
7180
7201
|
let t = n.slice(0, me.value);
|
|
7181
7202
|
k.value = t, e.api.setRowGroupColumns(t);
|
|
@@ -7184,10 +7205,10 @@ var Sl = {
|
|
|
7184
7205
|
}
|
|
7185
7206
|
l("column-row-group-changed", e);
|
|
7186
7207
|
}, ie = async (e) => {
|
|
7187
|
-
Be(e.api),
|
|
7208
|
+
Be(e.api), R.value && l("filter-changed", e);
|
|
7188
7209
|
};
|
|
7189
|
-
|
|
7190
|
-
if (
|
|
7210
|
+
B(() => k.value, () => {
|
|
7211
|
+
if (z.value) {
|
|
7191
7212
|
if (!d.value) return;
|
|
7192
7213
|
let e = d.value.getRowGroupColumns().map((e) => e.getColId());
|
|
7193
7214
|
JSON.stringify(e) !== JSON.stringify(k.value) && v(() => {
|
|
@@ -7197,8 +7218,8 @@ var Sl = {
|
|
|
7197
7218
|
d?.value?.setRowGroupColumns([]);
|
|
7198
7219
|
});
|
|
7199
7220
|
if (!c.allFieldsAreFocusable) {
|
|
7200
|
-
let e =
|
|
7201
|
-
|
|
7221
|
+
let e = pe.value.supportsFocusView && A.value || null;
|
|
7222
|
+
ee.setFocusType(e);
|
|
7202
7223
|
}
|
|
7203
7224
|
d.value && Be(d.value);
|
|
7204
7225
|
});
|
|
@@ -7225,8 +7246,8 @@ var Sl = {
|
|
|
7225
7246
|
}, se = (e) => !e || !d.value ? null : d.value?.getColumnDef(e), ce = (e, t) => {
|
|
7226
7247
|
let n = se(A.value);
|
|
7227
7248
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
7228
|
-
}, le = r(() => [...k.value.length > 1 ? ls : cs, us].filter((e) => c.enabledChartTypes?.includes(e.id))), ue = O(void 0), de = O(void 0),
|
|
7229
|
-
let e =
|
|
7249
|
+
}, le = r(() => [...k.value.length > 1 ? ls : cs, us].filter((e) => c.enabledChartTypes?.includes(e.id))), ue = O(void 0), de = O(void 0), K = O(void 0), fe = !1, pe = r(() => xl(ue.value?.id || "")), me = r(() => Math.min(pe.value.rowGroupLimit, c.rowGroupLimit)), he = r(() => {
|
|
7250
|
+
let e = pe.value.xAxis.filterColumns;
|
|
7230
7251
|
return e ? e(T.value) : T.value;
|
|
7231
7252
|
}), ge = O([{
|
|
7232
7253
|
text: "Ascending",
|
|
@@ -7241,15 +7262,15 @@ var Sl = {
|
|
|
7241
7262
|
let Ee = (e) => {
|
|
7242
7263
|
ue.value = le.value.find((t) => t.id === e) ?? le.value[0];
|
|
7243
7264
|
};
|
|
7244
|
-
|
|
7245
|
-
let e = Fe.value, t = e !==
|
|
7246
|
-
|
|
7247
|
-
}),
|
|
7265
|
+
B(() => le.value, () => {
|
|
7266
|
+
let e = Fe.value, t = e !== fe, n = xl(ue.value?.id || ""), r = le.value.some((e) => e.id === ue.value?.id);
|
|
7267
|
+
fe = e, !(r && (!t || !n.storeBeforeChange)) && Ee((e ? K?.value : de?.value) ?? c.chartType);
|
|
7268
|
+
}), B(() => c.chartType, (e) => Ee(e)), B(() => c.yKey, (e) => {
|
|
7248
7269
|
e !== q.value && (q.value = e);
|
|
7249
|
-
}),
|
|
7270
|
+
}), B(Te, (e) => {
|
|
7250
7271
|
if (c.chartFilter && d.value) {
|
|
7251
7272
|
let t = c.chartFilter.colId, n = c.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
7252
|
-
n && n.length === 0 && (n = null),
|
|
7273
|
+
n && n.length === 0 && (n = null), te(t, n || []);
|
|
7253
7274
|
let r = Ds({
|
|
7254
7275
|
filterType: "set",
|
|
7255
7276
|
values: n
|
|
@@ -7265,8 +7286,8 @@ var Sl = {
|
|
|
7265
7286
|
}), Oe = r(() => F.value.find((e) => e.value === ye.value)), ke = r(() => {
|
|
7266
7287
|
let e = F.value.find((e) => e.value === ye.value);
|
|
7267
7288
|
return e ? e.label : "";
|
|
7268
|
-
}), Ae = r(() =>
|
|
7269
|
-
let e = Pe.value, t =
|
|
7289
|
+
}), Ae = r(() => pe.value.isHorizontal === !0), je = r(() => k.value.length > 1), Me = r(() => !ue.value || N.value.length === 0 ? [] : pe.value.seriesFamily === "pie" ? Le.value : Ie.value), Ne = r(() => c.showSeriesLabels), Pe = r(() => ue.value?.id.includes("stacked")), Fe = r(() => k.value.length > 1), Ie = r(() => {
|
|
7290
|
+
let e = Pe.value, t = pe.value.agChartType, n = [], r = oe(q.value, !0), i = oe(Ce.value?.fieldName, !0);
|
|
7270
7291
|
if (je.value) Ce.value?.fieldValues.forEach((a) => {
|
|
7271
7292
|
let o = {
|
|
7272
7293
|
type: t,
|
|
@@ -7315,7 +7336,7 @@ var Sl = {
|
|
|
7315
7336
|
if (n = n.map((e) => ({
|
|
7316
7337
|
...e,
|
|
7317
7338
|
...a
|
|
7318
|
-
})),
|
|
7339
|
+
})), pe.value.yAxis.defaultValue === "groupedRecordCount" && (n = n.map((e) => ({
|
|
7319
7340
|
...e,
|
|
7320
7341
|
tooltip: { renderer: (e) => {
|
|
7321
7342
|
let t = String(e.datum[e.xKey] ?? ""), n = e.datum.bucketMin, r = e.datum.bucketMax;
|
|
@@ -7399,20 +7420,20 @@ var Sl = {
|
|
|
7399
7420
|
legendItemKey: A.value,
|
|
7400
7421
|
angleKey: q.value
|
|
7401
7422
|
}]);
|
|
7402
|
-
|
|
7423
|
+
B(q, (e, t) => {
|
|
7403
7424
|
l("chart-state-changed", {
|
|
7404
7425
|
api: d.value,
|
|
7405
7426
|
newState: { seriesField: e },
|
|
7406
7427
|
oldState: { seriesField: t }
|
|
7407
7428
|
});
|
|
7408
|
-
}),
|
|
7429
|
+
}), B(ye, (e, t) => {
|
|
7409
7430
|
l("chart-state-changed", {
|
|
7410
7431
|
api: d.value,
|
|
7411
7432
|
newState: { secondarySeriesField: e },
|
|
7412
7433
|
oldState: { secondarySeriesField: t }
|
|
7413
7434
|
});
|
|
7414
|
-
}),
|
|
7415
|
-
e?.id && xl(e.id).storeBeforeChange && (Fe.value ?
|
|
7435
|
+
}), B(ue, (e, t) => {
|
|
7436
|
+
e?.id && xl(e.id).storeBeforeChange && (Fe.value ? K.value = e.id : de.value = e.id);
|
|
7416
7437
|
let n = xl(e?.id || ""), r = xl(t?.id || "");
|
|
7417
7438
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (k.value = []), n.yAxis.defaultValue ? q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
7418
7439
|
c.yKey ? q.value = c.yKey : N.value.length > 0 && (q.value = N.value[0].value);
|
|
@@ -7421,40 +7442,40 @@ var Sl = {
|
|
|
7421
7442
|
newState: { chartType: e?.id },
|
|
7422
7443
|
oldState: { chartType: t?.id }
|
|
7423
7444
|
});
|
|
7424
|
-
}),
|
|
7445
|
+
}), B(he, (e) => {
|
|
7425
7446
|
if (e.length === 1 && k.value.length === 0) {
|
|
7426
7447
|
let t = e[0].field;
|
|
7427
7448
|
t && (k.value = [t]);
|
|
7428
7449
|
}
|
|
7429
|
-
}),
|
|
7450
|
+
}), B(N, (e) => {
|
|
7430
7451
|
e.length === 1 && !q.value && (q.value = e[0].value);
|
|
7431
|
-
}),
|
|
7452
|
+
}), B(we, (e, t) => {
|
|
7432
7453
|
l("chart-state-changed", {
|
|
7433
7454
|
api: d.value,
|
|
7434
7455
|
newState: { chartSort: e?.id },
|
|
7435
7456
|
oldState: { chartSort: t?.id }
|
|
7436
7457
|
});
|
|
7437
|
-
}),
|
|
7458
|
+
}), B(k, (e, t) => {
|
|
7438
7459
|
l("chart-state-changed", {
|
|
7439
7460
|
api: d.value,
|
|
7440
7461
|
newState: { chartCategoryFields: e },
|
|
7441
7462
|
oldState: { chartCategoryFields: t }
|
|
7442
7463
|
});
|
|
7443
|
-
}),
|
|
7464
|
+
}), B(z, (e, t) => {
|
|
7444
7465
|
l("chart-state-changed", {
|
|
7445
7466
|
api: d.value,
|
|
7446
7467
|
newState: { tableGrouped: e },
|
|
7447
7468
|
oldState: { tableGrouped: t }
|
|
7448
7469
|
});
|
|
7449
|
-
}),
|
|
7470
|
+
}), B(() => c.isTableGrouped, (e, t) => {
|
|
7450
7471
|
!d.value || e === t || !c.enableGroupingToggle || ot(e);
|
|
7451
|
-
}),
|
|
7472
|
+
}), B(() => c.initialFocusData, (e, t) => {
|
|
7452
7473
|
if (!(nt(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
7453
7474
|
if (!e?.focusType) {
|
|
7454
|
-
|
|
7475
|
+
ee.setFocuses([]);
|
|
7455
7476
|
return;
|
|
7456
7477
|
}
|
|
7457
|
-
|
|
7478
|
+
ee.setFocusType(e?.focusType), ee.setFocuses(e?.focuses ?? []);
|
|
7458
7479
|
}
|
|
7459
7480
|
}, { deep: !0 });
|
|
7460
7481
|
let Re = () => {
|
|
@@ -7548,8 +7569,8 @@ var Sl = {
|
|
|
7548
7569
|
{ [A.value]: "" },
|
|
7549
7570
|
e[0],
|
|
7550
7571
|
{ [A.value]: " " }
|
|
7551
|
-
]), c.enableFocusView && e &&
|
|
7552
|
-
let t = e?.filter((e) =>
|
|
7572
|
+
]), c.enableFocusView && e && U.value.length > 0 && H.value) {
|
|
7573
|
+
let t = e?.filter((e) => U.value.includes(e[A.value])), n = e?.filter((e) => !U.value.includes(e[A.value]));
|
|
7553
7574
|
e = [
|
|
7554
7575
|
...t || [],
|
|
7555
7576
|
{ [A.value]: ds },
|
|
@@ -7579,11 +7600,11 @@ var Sl = {
|
|
|
7579
7600
|
}), Ge = r(() => J.value?.length || 0), Ke = r(() => zl(je.value ? ve.value : J.value, q.value, je.value)), qe = r(() => Ce.value?.fieldValues?.length || 0), Je = r(() => {
|
|
7580
7601
|
let e = .25 * Math.exp(-.12 * Ge.value);
|
|
7581
7602
|
return Math.min(Math.max(e, .05), .75);
|
|
7582
|
-
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !J.value || J.value?.length === 0 ? !0 : Ke.value === -Infinity || je.value === !0 && Ke.value === 0), Qe = r(() => !!(c.enableFocusView &&
|
|
7583
|
-
let e = se(
|
|
7603
|
+
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !J.value || J.value?.length === 0 ? !0 : Ke.value === -Infinity || je.value === !0 && Ke.value === 0), Qe = r(() => !!(c.enableFocusView && H.value && U.value.length === 0 && c.percentOfFocusViewYKey && q.value && q.value === c.percentOfFocusViewYKey)), $e = r(() => {
|
|
7604
|
+
let e = se(H.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
7584
7605
|
return Fl({
|
|
7585
7606
|
currentRowGroupColumnsLength: k.value.length,
|
|
7586
|
-
shouldShowFocusOverlayText: Qe.value || c.focusRequired &&
|
|
7607
|
+
shouldShowFocusOverlayText: Qe.value || c.focusRequired && U.value.length === 0,
|
|
7587
7608
|
chartDataEmpty: Ze.value,
|
|
7588
7609
|
missingFocusText: c.missingFocusText,
|
|
7589
7610
|
displayGroupByName: t
|
|
@@ -7609,7 +7630,7 @@ var Sl = {
|
|
|
7609
7630
|
if (!ye.value) return [];
|
|
7610
7631
|
let e = ye.value;
|
|
7611
7632
|
return Pe.value ? [`${e}${fs}`] : je.value ? Ce.value?.fieldValues.map((t) => Il(e, String(t))) || [] : [e];
|
|
7612
|
-
})(), r =
|
|
7633
|
+
})(), r = pe.value.xAxis.hideLabel === !0, i = ue.value?.id === "histogram" && J.value && J.value.length > 0 && typeof J.value[0]?.bucketMin == "number" && typeof J.value[0]?.bucketMax == "number", a = [];
|
|
7613
7634
|
if (a.push({
|
|
7614
7635
|
type: "category",
|
|
7615
7636
|
keys: [A.value],
|
|
@@ -7632,7 +7653,7 @@ var Sl = {
|
|
|
7632
7653
|
if (e.value === "--SEPARATOR--") return "";
|
|
7633
7654
|
let t = e.value, n = oe(A.value);
|
|
7634
7655
|
typeof n == "function" && (t = n(e));
|
|
7635
|
-
let r = c.enableFocusView &&
|
|
7656
|
+
let r = c.enableFocusView && U.value.includes(e.value) ? ` (${c.focusText})` : "";
|
|
7636
7657
|
if (typeof t == "string" && t.length + r.length > 35 && !e.context?.tooltip) {
|
|
7637
7658
|
let e = 35 - r.length - 3;
|
|
7638
7659
|
return t.substring(0, e) + "..." + r;
|
|
@@ -7709,10 +7730,10 @@ var Sl = {
|
|
|
7709
7730
|
});
|
|
7710
7731
|
}
|
|
7711
7732
|
return e.axes = a, e.series = Me.value, e;
|
|
7712
|
-
}), rt = r(() => x.value || c.isLoading && (!J.value || J.value.length === 0)), it = r(() => Qe.value || !
|
|
7733
|
+
}), rt = r(() => x.value || c.isLoading && (!J.value || J.value.length === 0)), it = r(() => Qe.value || !ne.value && !c.isLoading && $e.value !== ""), at = (e) => {
|
|
7713
7734
|
h.value = e, l("chart-collapsed", e);
|
|
7714
7735
|
}, ot = (e) => {
|
|
7715
|
-
d.value && (d.value.setRowGroupColumns(e ? k.value : []),
|
|
7736
|
+
d.value && (d.value.setRowGroupColumns(e ? k.value : []), z.value = e);
|
|
7716
7737
|
};
|
|
7717
7738
|
return t({
|
|
7718
7739
|
getChartImageDataURL: (e) => m.value?.getChartImageDataURL(e),
|
|
@@ -7722,7 +7743,7 @@ var Sl = {
|
|
|
7722
7743
|
}), S(() => {
|
|
7723
7744
|
if (c.initialGridState) {
|
|
7724
7745
|
let e = c.initialGridState.rowGroup?.groupColIds || [];
|
|
7725
|
-
k.value = e, !c.allFieldsAreFocusable && e.length > 0 &&
|
|
7746
|
+
k.value = e, !c.allFieldsAreFocusable && e.length > 0 && ee.setFocusType(e[0]);
|
|
7726
7747
|
}
|
|
7727
7748
|
}), w(async () => {
|
|
7728
7749
|
await v(), b.value = c.filterPanelAboveChart;
|
|
@@ -7778,30 +7799,30 @@ var Sl = {
|
|
|
7778
7799
|
"isLoading",
|
|
7779
7800
|
"options",
|
|
7780
7801
|
"enableFocusView"
|
|
7781
|
-
]), s("div", Wl, [
|
|
7802
|
+
]), s("div", Wl, [ne.value ? (E(), o("div", Gl, [(E(), i(M(e.emptyChartFilterRenderer)))])) : it.value ? (E(), o("p", Kl, P($e.value), 1)) : a("", !0)])])], 2)
|
|
7782
7803
|
])),
|
|
7783
7804
|
u(tl, _({
|
|
7784
7805
|
ref_key: "pvDataTableRef",
|
|
7785
7806
|
ref: p
|
|
7786
7807
|
}, t.$props, {
|
|
7787
7808
|
filterTeleportLocation: b.value ? `#${g}` : void 0,
|
|
7788
|
-
pagination: e.pagination || !
|
|
7809
|
+
pagination: e.pagination || !z.value,
|
|
7789
7810
|
onColumnRowGroupChanged: re,
|
|
7790
|
-
onGridReady:
|
|
7811
|
+
onGridReady: W,
|
|
7791
7812
|
onFilterChanged: ie,
|
|
7792
7813
|
onSortChanged: n[3] ||= (e) => l("sort-changed", e),
|
|
7793
7814
|
onFilterOpened: n[4] ||= (e) => l("filter-opened", e),
|
|
7794
|
-
onFirstDataRendered:
|
|
7815
|
+
onFirstDataRendered: G,
|
|
7795
7816
|
onColumnMoved: n[5] ||= (e) => l("column-moved", e),
|
|
7796
7817
|
onColumnResized: n[6] ||= (e) => l("column-resized", e),
|
|
7797
7818
|
onHandleSettingsIcon: n[7] ||= (e) => l("handle-settings-icon", e),
|
|
7798
7819
|
onFocusUpdate: n[8] ||= (e) => l("focus-update", e)
|
|
7799
7820
|
}), {
|
|
7800
|
-
"top-slot":
|
|
7821
|
+
"top-slot": V(() => [e.enableGroupingToggle ? (E(), i(X, {
|
|
7801
7822
|
key: 0,
|
|
7802
|
-
leftIcon:
|
|
7803
|
-
label:
|
|
7804
|
-
onClick: n[2] ||= (e) => ot(!
|
|
7823
|
+
leftIcon: z.value ? "ungroup" : "group",
|
|
7824
|
+
label: z.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
7825
|
+
onClick: n[2] ||= (e) => ot(!z.value),
|
|
7805
7826
|
variant: "secondary",
|
|
7806
7827
|
size: "lg"
|
|
7807
7828
|
}, null, 8, ["leftIcon", "label"])) : a("", !0)]),
|
|
@@ -10730,9 +10751,9 @@ var Sl = {
|
|
|
10730
10751
|
id: e
|
|
10731
10752
|
}));
|
|
10732
10753
|
});
|
|
10733
|
-
return
|
|
10754
|
+
return B(n, (e) => {
|
|
10734
10755
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
10735
|
-
}),
|
|
10756
|
+
}), B(t, (e) => {
|
|
10736
10757
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
10737
10758
|
}), (e, t) => (E(), i(Ua, {
|
|
10738
10759
|
style: { width: "125px" },
|
|
@@ -10786,7 +10807,7 @@ var Sl = {
|
|
|
10786
10807
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
10787
10808
|
setup(e, { emit: n }) {
|
|
10788
10809
|
let i = e, a = L(e, "chartData"), c = L(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } = au(), 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]));
|
|
10789
|
-
|
|
10810
|
+
B(c, (e) => {
|
|
10790
10811
|
l("region-selection-changed", { region: e });
|
|
10791
10812
|
});
|
|
10792
10813
|
let g = r(() => (c.value, {
|