@turquoisehealth/pit-viper 2.181.1 → 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 +485 -475
- 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,7 +4181,7 @@ 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({}),
|
|
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
4185
|
let t = {};
|
|
4186
4186
|
return e && Object.entries(e).forEach(([e, n]) => {
|
|
4187
4187
|
t[e] = n;
|
|
@@ -4191,18 +4191,18 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4191
4191
|
filterType: "set",
|
|
4192
4192
|
values: r
|
|
4193
4193
|
});
|
|
4194
|
-
}), Object.entries(
|
|
4194
|
+
}), Object.entries(T.value).forEach(([e, n]) => {
|
|
4195
4195
|
let r = n.filter((e) => !!e);
|
|
4196
4196
|
r.length > 0 ? t[e] = {
|
|
4197
4197
|
filterType: "set",
|
|
4198
4198
|
values: r
|
|
4199
4199
|
} : delete t[e];
|
|
4200
4200
|
}), t;
|
|
4201
|
-
},
|
|
4201
|
+
}, D = async (n, r) => {
|
|
4202
4202
|
let i = v.value[n.field] || void 0, s = g.value[n.field] || [], d = r?.filterModel;
|
|
4203
4203
|
if (t.value != null) {
|
|
4204
4204
|
let t = r?.filterModel ?? e.value ?? void 0;
|
|
4205
|
-
d =
|
|
4205
|
+
d = E(t && tc(t) ? t : void 0);
|
|
4206
4206
|
}
|
|
4207
4207
|
let f = {
|
|
4208
4208
|
api: r?.api,
|
|
@@ -4216,12 +4216,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4216
4216
|
m || (c.value[p] = !0);
|
|
4217
4217
|
let _ = (o.value[p] || 0) + 1;
|
|
4218
4218
|
o.value[p] = _;
|
|
4219
|
-
let x = s.map((e) =>
|
|
4219
|
+
let x = s.map((e) => k(p, e) || {
|
|
4220
4220
|
value: e,
|
|
4221
4221
|
label: String(e)
|
|
4222
4222
|
}), S = await l.value?.(f), C;
|
|
4223
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 =
|
|
4224
|
+
let t = A(n, e);
|
|
4225
4225
|
return e && t && (e.matchedField = e.matchedField ?? t.matchedField, e.matchedValue = e.matchedValue ?? t.matchedValue), e;
|
|
4226
4226
|
})), _ === o.value[p]) {
|
|
4227
4227
|
let e = (r?.offset ?? 0) > 0, t = !!r?.parentId;
|
|
@@ -4245,10 +4245,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4245
4245
|
let n = C?.filter((e) => e != null).map((e) => e.value) || [], i = n.filter((e, t) => n.indexOf(e) === t);
|
|
4246
4246
|
return y.value[p] = i, b.value[p] = !1, a.value[p] = Date.now(), m || (c.value[p] = !1), i;
|
|
4247
4247
|
} else return [];
|
|
4248
|
-
},
|
|
4248
|
+
}, k = (e, t) => {
|
|
4249
4249
|
let n = [...h.value[e] || [], ..._.value[e] || []];
|
|
4250
4250
|
return n ? n.find((e) => e?.value === t) : null;
|
|
4251
|
-
},
|
|
4251
|
+
}, A = (e, t) => {
|
|
4252
4252
|
if (!t) return {};
|
|
4253
4253
|
let n = $(e)?.queryColIds || [];
|
|
4254
4254
|
if (n.length === 0) return {};
|
|
@@ -4261,7 +4261,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4261
4261
|
};
|
|
4262
4262
|
}
|
|
4263
4263
|
return {};
|
|
4264
|
-
},
|
|
4264
|
+
}, j = (t, n) => {
|
|
4265
4265
|
g.value[t] = n;
|
|
4266
4266
|
let r = [], i = e.value;
|
|
4267
4267
|
if (tc(i)) {
|
|
@@ -4274,29 +4274,33 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4274
4274
|
r.push(...n);
|
|
4275
4275
|
let a = [];
|
|
4276
4276
|
return n.forEach((e) => {
|
|
4277
|
-
let n =
|
|
4277
|
+
let n = k(t, e);
|
|
4278
4278
|
n && a.push(n);
|
|
4279
4279
|
}), _.value[t] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4280
|
-
},
|
|
4280
|
+
}, M = (e) => g.value[e] || [], N = (e, t) => {
|
|
4281
4281
|
v.value[e] = t;
|
|
4282
|
-
},
|
|
4282
|
+
}, P = (e) => y.value[e] || [], F = (e, t) => {
|
|
4283
4283
|
y.value[e] = t;
|
|
4284
|
-
},
|
|
4284
|
+
}, I = (e, t) => {
|
|
4285
4285
|
C.value[e] = t;
|
|
4286
|
-
},
|
|
4286
|
+
}, L = (e) => {
|
|
4287
4287
|
let t = C.value[e] || [], n = Object.entries(C.value).find(([, t]) => t.includes(e))?.[0];
|
|
4288
4288
|
return [...t, ...n ? [n] : []];
|
|
4289
|
-
},
|
|
4289
|
+
}, ee = (e) => {
|
|
4290
|
+
w.value.add(e);
|
|
4291
|
+
}, te = (e) => {
|
|
4292
|
+
w.value.delete(e);
|
|
4293
|
+
}, R = (e) => {
|
|
4290
4294
|
let t = new Set(e);
|
|
4291
|
-
for (let n of e) for (let e of
|
|
4292
|
-
for (let e of
|
|
4293
|
-
}, R = () => {
|
|
4294
|
-
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);
|
|
4295
4297
|
}, z = () => {
|
|
4296
|
-
|
|
4297
|
-
},
|
|
4298
|
-
|
|
4299
|
-
}, 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) => {
|
|
4300
4304
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], a = t ? Object.keys(t) : [], o = r.filter((e) => a.includes(e));
|
|
4301
4305
|
[...r, ...a].filter((e) => !o.includes(e)).forEach((e) => n.add(e));
|
|
4302
4306
|
for (let r of o) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -4306,7 +4310,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4306
4310
|
};
|
|
4307
4311
|
return qe([e, t], ([t, n], [r, i]) => {
|
|
4308
4312
|
let a = /* @__PURE__ */ new Set();
|
|
4309
|
-
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);
|
|
4310
4314
|
}, {
|
|
4311
4315
|
deep: !0,
|
|
4312
4316
|
debounce: 200,
|
|
@@ -4321,69 +4325,72 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4321
4325
|
filterValueMap: h,
|
|
4322
4326
|
filterValueSelectedMetadataMap: _,
|
|
4323
4327
|
filterStoreHandler: l,
|
|
4324
|
-
fetchFilterValues:
|
|
4325
|
-
filterValueContext:
|
|
4328
|
+
fetchFilterValues: D,
|
|
4329
|
+
filterValueContext: k,
|
|
4326
4330
|
filterModelEmpty: p,
|
|
4327
|
-
getFilterSelectedValues:
|
|
4328
|
-
getSearchMatchDataFromFilterContext:
|
|
4331
|
+
getFilterSelectedValues: M,
|
|
4332
|
+
getSearchMatchDataFromFilterContext: A,
|
|
4329
4333
|
isServerSideFilter: f,
|
|
4330
4334
|
stagedFilterModel: t,
|
|
4331
|
-
setFilterSelectedValues:
|
|
4332
|
-
setFilterValueSearchText:
|
|
4335
|
+
setFilterSelectedValues: j,
|
|
4336
|
+
setFilterValueSearchText: N,
|
|
4333
4337
|
tableSearchFilterModel: n,
|
|
4334
4338
|
tableSearchFilterModelEmpty: m,
|
|
4335
4339
|
tableSearchHandler: d,
|
|
4336
4340
|
filterValuesMap: y,
|
|
4337
|
-
getFilterValues:
|
|
4338
|
-
setFilterValues:
|
|
4341
|
+
getFilterValues: P,
|
|
4342
|
+
setFilterValues: F,
|
|
4339
4343
|
filterStaleMap: b,
|
|
4340
4344
|
refreshFiltersInBackground: x,
|
|
4341
4345
|
stageFilterChangesUntilDropdownCloses: S,
|
|
4342
|
-
markOtherFieldsStale:
|
|
4346
|
+
markOtherFieldsStale: R,
|
|
4343
4347
|
aggregateFieldMap: C,
|
|
4344
|
-
registerAggregateField:
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
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,
|
|
4350
4357
|
filterValueSearchTextMap: v,
|
|
4351
4358
|
filterValuesTotalCountMap: u
|
|
4352
4359
|
};
|
|
4353
4360
|
}, rc = () => m(to, null) || nc(), ic = (e) => {
|
|
4354
|
-
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,
|
|
4355
|
-
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),
|
|
4356
4363
|
set: (e) => {
|
|
4357
|
-
|
|
4364
|
+
G.value ? j(H.value, e) : _(H.value, e);
|
|
4358
4365
|
}
|
|
4359
|
-
}), z = r(() =>
|
|
4360
|
-
get: () =>
|
|
4361
|
-
set: (e) => g(
|
|
4362
|
-
}),
|
|
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({
|
|
4363
4370
|
selectedParentIds: [],
|
|
4364
4371
|
selectedChildrenIds: [],
|
|
4365
4372
|
deselectedChildrenIds: []
|
|
4366
|
-
}),
|
|
4367
|
-
if (
|
|
4373
|
+
}), _e = r(() => z.value.length === 1 && z.value[0] === null && R.value.length === 0), ve = (e = !1) => {
|
|
4374
|
+
if (he.value) return;
|
|
4368
4375
|
let n = [];
|
|
4369
|
-
if (
|
|
4376
|
+
if (te.value && a.value) {
|
|
4370
4377
|
let e = a.value.getAdvancedFilterModel();
|
|
4371
|
-
n = Js(
|
|
4378
|
+
n = Js(H.value, e);
|
|
4372
4379
|
} else n = Vs(t.value, c.value);
|
|
4373
|
-
e ? R.value = n : R.value = Array.from(new Set([...p(
|
|
4374
|
-
},
|
|
4380
|
+
e ? R.value = n : R.value = Array.from(new Set([...p(H.value), ...n]));
|
|
4381
|
+
}, q = (e) => [...e].sort((e, t) => {
|
|
4375
4382
|
let n = R.value.includes(e), r = R.value.includes(t);
|
|
4376
4383
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
4377
|
-
}),
|
|
4384
|
+
}), ye = async (e = !1, n = !1) => {
|
|
4378
4385
|
if (!a.value) return;
|
|
4379
|
-
let r = x.value[
|
|
4380
|
-
if (
|
|
4386
|
+
let r = x.value[H.value] ?? !1, i = d.value[H.value] !== !0, o = e && i && (r || n);
|
|
4387
|
+
if (te.value) {
|
|
4381
4388
|
if (h.value && o) {
|
|
4382
4389
|
let e = await s(t.value, {
|
|
4383
4390
|
api: a.value,
|
|
4384
4391
|
filterModel: c.value ?? void 0
|
|
4385
4392
|
});
|
|
4386
|
-
b(
|
|
4393
|
+
b(H.value, e), x.value[H.value] = !1;
|
|
4387
4394
|
}
|
|
4388
4395
|
return;
|
|
4389
4396
|
}
|
|
@@ -4393,11 +4400,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4393
4400
|
l.refreshFilterValues();
|
|
4394
4401
|
return;
|
|
4395
4402
|
}
|
|
4396
|
-
b(
|
|
4403
|
+
b(H.value, l.getFilterValues()), x.value[H.value] = !1;
|
|
4397
4404
|
}
|
|
4398
|
-
},
|
|
4399
|
-
let t = f(
|
|
4400
|
-
if (t?.colField &&
|
|
4405
|
+
}, be = (e) => {
|
|
4406
|
+
let t = f(H.value, e), n = re.value;
|
|
4407
|
+
if (t?.colField && he.value) {
|
|
4401
4408
|
let e = a.value?.getColumnDef(t?.colField);
|
|
4402
4409
|
n = e ? ms(e) : n;
|
|
4403
4410
|
}
|
|
@@ -4405,22 +4412,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4405
4412
|
value: e,
|
|
4406
4413
|
context: t
|
|
4407
4414
|
}) : t?.label || e;
|
|
4408
|
-
},
|
|
4415
|
+
}, xe = (e) => {
|
|
4409
4416
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
4410
|
-
let n = f(
|
|
4417
|
+
let n = f(H.value, e);
|
|
4411
4418
|
return n == null || n.label == null;
|
|
4412
|
-
},
|
|
4413
|
-
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;
|
|
4414
4421
|
n?.isPreference && (i = "preferences");
|
|
4415
|
-
let s = null, l = n?.matchedValue, u =
|
|
4416
|
-
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));
|
|
4417
4424
|
let d, p, m;
|
|
4418
4425
|
if (r && (d = n.children.map((e) => ({
|
|
4419
4426
|
id: e.value,
|
|
4420
4427
|
text: e.label || e.value,
|
|
4421
4428
|
subText: e.subText,
|
|
4422
4429
|
subduedText: e.subduedText,
|
|
4423
|
-
disabled:
|
|
4430
|
+
disabled: Se(e.value),
|
|
4424
4431
|
context: e,
|
|
4425
4432
|
classList: ["option-label"]
|
|
4426
4433
|
})), p = n.totalChildCount, p && p > d.length && n.value != null)) {
|
|
@@ -4439,7 +4446,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4439
4446
|
text: e.label || e.value,
|
|
4440
4447
|
subText: e.subText,
|
|
4441
4448
|
subduedText: e.subduedText,
|
|
4442
|
-
disabled:
|
|
4449
|
+
disabled: Se(e.value),
|
|
4443
4450
|
context: e,
|
|
4444
4451
|
classList: ["option-label"]
|
|
4445
4452
|
}));
|
|
@@ -4447,51 +4454,53 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4447
4454
|
}
|
|
4448
4455
|
return {
|
|
4449
4456
|
id: e || "",
|
|
4450
|
-
text:
|
|
4457
|
+
text: be(e) || "",
|
|
4451
4458
|
searchText: l,
|
|
4452
4459
|
subduedText: n?.subduedText,
|
|
4453
4460
|
subText: s || void 0,
|
|
4454
4461
|
groupingLabel: i || "",
|
|
4455
|
-
disabled: r ? !1 :
|
|
4462
|
+
disabled: r ? !1 : Se(e),
|
|
4456
4463
|
context: n || { value: e || "" },
|
|
4457
4464
|
classList: ["option-label"],
|
|
4458
4465
|
children: d,
|
|
4459
4466
|
totalChildCount: p,
|
|
4460
4467
|
handleSeeMore: m
|
|
4461
4468
|
};
|
|
4462
|
-
},
|
|
4463
|
-
let e = [...
|
|
4464
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
4465
|
-
}),
|
|
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({
|
|
4466
4473
|
get: () => R.value.map((e) => {
|
|
4467
|
-
let t = f(
|
|
4474
|
+
let t = f(H.value, e), n = t?.colField ? Ce(t.colField) : void 0;
|
|
4468
4475
|
return {
|
|
4469
4476
|
id: e,
|
|
4470
|
-
text:
|
|
4477
|
+
text: be(e),
|
|
4471
4478
|
subText: n,
|
|
4472
4479
|
context: t || { value: e || "" }
|
|
4473
4480
|
};
|
|
4474
4481
|
}),
|
|
4475
4482
|
set: (e) => {
|
|
4476
|
-
R.value = e.map((e) => e.id)
|
|
4477
|
-
|
|
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);
|
|
4478
4487
|
})), i?.();
|
|
4479
4488
|
}
|
|
4480
|
-
}),
|
|
4489
|
+
}), De = (e) => {
|
|
4481
4490
|
let t = {};
|
|
4482
4491
|
for (let n of e) {
|
|
4483
4492
|
if (n === null) continue;
|
|
4484
|
-
let e = f(
|
|
4493
|
+
let e = f(H.value, n)?.colField || H.value;
|
|
4485
4494
|
t[e] || (t[e] = []), t[e].push(n);
|
|
4486
4495
|
}
|
|
4487
4496
|
return t;
|
|
4488
|
-
},
|
|
4497
|
+
}, Oe = async (e, n) => {
|
|
4489
4498
|
if (!a.value) return;
|
|
4490
4499
|
if (e !== void 0 && n !== void 0) {
|
|
4491
|
-
let r = e ||
|
|
4492
|
-
if (
|
|
4500
|
+
let r = e || H.value, i = n;
|
|
4501
|
+
if (te.value) {
|
|
4493
4502
|
let e = Os(r, i || []);
|
|
4494
|
-
if (
|
|
4503
|
+
if (G.value) {
|
|
4495
4504
|
let t = l.value;
|
|
4496
4505
|
l.value = Ks(t, e, r);
|
|
4497
4506
|
return;
|
|
@@ -4502,7 +4511,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4502
4511
|
});
|
|
4503
4512
|
return;
|
|
4504
4513
|
}
|
|
4505
|
-
if (
|
|
4514
|
+
if (G.value) {
|
|
4506
4515
|
let e = await Bs(a.value, t.value, i);
|
|
4507
4516
|
l.value = {
|
|
4508
4517
|
...l.value,
|
|
@@ -4516,10 +4525,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4516
4525
|
});
|
|
4517
4526
|
return;
|
|
4518
4527
|
}
|
|
4519
|
-
let r =
|
|
4520
|
-
if (
|
|
4521
|
-
let e =
|
|
4522
|
-
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) {
|
|
4523
4532
|
let t = i.aggregateFields, n = [];
|
|
4524
4533
|
for (let e of t) {
|
|
4525
4534
|
let t = r[e] || [];
|
|
@@ -4542,10 +4551,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4542
4551
|
} : t;
|
|
4543
4552
|
}
|
|
4544
4553
|
} else {
|
|
4545
|
-
let t = R.value.length > 0 ? R.value : null, n = Os(
|
|
4546
|
-
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);
|
|
4547
4556
|
}
|
|
4548
|
-
if (
|
|
4557
|
+
if (G.value) l.value = e;
|
|
4549
4558
|
else {
|
|
4550
4559
|
let t = e;
|
|
4551
4560
|
v(() => {
|
|
@@ -4555,25 +4564,25 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4555
4564
|
return;
|
|
4556
4565
|
}
|
|
4557
4566
|
let o = R.value.length > 0 ? R.value : null;
|
|
4558
|
-
if (
|
|
4567
|
+
if (G.value) {
|
|
4559
4568
|
let e = await Bs(a.value, t.value, o);
|
|
4560
4569
|
l.value = {
|
|
4561
4570
|
...l.value,
|
|
4562
|
-
[
|
|
4571
|
+
[H.value]: e
|
|
4563
4572
|
};
|
|
4564
4573
|
return;
|
|
4565
4574
|
}
|
|
4566
4575
|
let s = await Bs(a.value, t.value, o);
|
|
4567
|
-
a.value.setColumnFilterModel(
|
|
4576
|
+
a.value.setColumnFilterModel(H.value, s).then(() => {
|
|
4568
4577
|
a.value && a.value.onFilterChanged();
|
|
4569
4578
|
});
|
|
4570
|
-
},
|
|
4571
|
-
e &&
|
|
4572
|
-
},
|
|
4573
|
-
R.value = R.value.filter((t) => t !== e), (!C.value ||
|
|
4574
|
-
},
|
|
4575
|
-
|
|
4576
|
-
},
|
|
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) => {
|
|
4577
4586
|
if (!a.value) return;
|
|
4578
4587
|
let n = z.value.length;
|
|
4579
4588
|
await s(t.value, {
|
|
@@ -4582,9 +4591,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4582
4591
|
offset: n,
|
|
4583
4592
|
parentId: e.parentId
|
|
4584
4593
|
});
|
|
4585
|
-
},
|
|
4586
|
-
if (!a.value || !
|
|
4587
|
-
|
|
4594
|
+
}, Ne = (e) => {
|
|
4595
|
+
if (!a.value || !he.value) return;
|
|
4596
|
+
ge.value = e;
|
|
4588
4597
|
let n = $(t.value).aggregateFields || [], r = n[0];
|
|
4589
4598
|
if (!r) return;
|
|
4590
4599
|
let { selectedParentIds: o, selectedChildrenIds: s, deselectedChildrenIds: c } = e, u = [];
|
|
@@ -4605,7 +4614,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4605
4614
|
conditions: e
|
|
4606
4615
|
});
|
|
4607
4616
|
}
|
|
4608
|
-
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();
|
|
4609
4618
|
for (let e of n) f = Ks(f, null, e);
|
|
4610
4619
|
if (d && u.length > 0) {
|
|
4611
4620
|
let e = u.length === 1 ? u[0] : {
|
|
@@ -4619,7 +4628,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4619
4628
|
conditions: [f, e]
|
|
4620
4629
|
} : e;
|
|
4621
4630
|
}
|
|
4622
|
-
if (
|
|
4631
|
+
if (G.value) l.value = f;
|
|
4623
4632
|
else {
|
|
4624
4633
|
let e = f;
|
|
4625
4634
|
v(() => {
|
|
@@ -4628,89 +4637,90 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4628
4637
|
}
|
|
4629
4638
|
i?.();
|
|
4630
4639
|
};
|
|
4631
|
-
return
|
|
4632
|
-
|
|
4633
|
-
}, { deep: !0 }),
|
|
4634
|
-
e && S.value &&
|
|
4635
|
-
}),
|
|
4636
|
-
if (
|
|
4637
|
-
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) {
|
|
4638
4647
|
let e = [], n = l.value;
|
|
4639
|
-
if (
|
|
4648
|
+
if (he.value) {
|
|
4640
4649
|
let r = $(t.value);
|
|
4641
4650
|
for (let t of r.aggregateFields) {
|
|
4642
4651
|
let r = Js(t, n);
|
|
4643
4652
|
e.push(...r);
|
|
4644
4653
|
}
|
|
4645
|
-
} else e = Js(
|
|
4654
|
+
} else e = Js(H.value, n);
|
|
4646
4655
|
R.value = e;
|
|
4647
4656
|
return;
|
|
4648
4657
|
}
|
|
4649
|
-
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.`);
|
|
4650
4659
|
}
|
|
4651
|
-
}),
|
|
4652
|
-
if (
|
|
4653
|
-
if (
|
|
4654
|
-
let e = c.value, t = Js(
|
|
4655
|
-
|
|
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)));
|
|
4656
4665
|
return;
|
|
4657
4666
|
}
|
|
4658
4667
|
let e = Vs(t.value, c.value);
|
|
4659
|
-
|
|
4660
|
-
}, { deep: !0 }),
|
|
4668
|
+
ve(R.value.some((t) => !e.includes(t)));
|
|
4669
|
+
}, { deep: !0 }), B(() => u.value, () => {
|
|
4661
4670
|
R.value = [];
|
|
4662
|
-
}),
|
|
4663
|
-
e && h.value && (x.value[
|
|
4664
|
-
}, { immediate: !0 }),
|
|
4665
|
-
S.value && (
|
|
4666
|
-
await
|
|
4667
|
-
}, 2e3) : await
|
|
4668
|
-
}), qe(() =>
|
|
4669
|
-
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);
|
|
4670
4679
|
}, { debounce: 300 }), w(() => {
|
|
4680
|
+
D(H.value);
|
|
4671
4681
|
let e = $(t.value);
|
|
4672
|
-
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);
|
|
4673
4683
|
}), T(() => {
|
|
4674
|
-
C.value && !
|
|
4684
|
+
k(H.value), C.value && !G.value && (he.value ? Ne(ge.value) : Oe());
|
|
4675
4685
|
}), {
|
|
4676
4686
|
selectedValues: R,
|
|
4677
4687
|
filterValues: z,
|
|
4678
|
-
isLoading:
|
|
4679
|
-
filterSearchText:
|
|
4680
|
-
rowsLoading:
|
|
4688
|
+
isLoading: ne,
|
|
4689
|
+
filterSearchText: V,
|
|
4690
|
+
rowsLoading: L,
|
|
4681
4691
|
gridApi: a,
|
|
4682
|
-
filterField:
|
|
4692
|
+
filterField: H,
|
|
4683
4693
|
filterType: U,
|
|
4684
|
-
filterDisplayName:
|
|
4685
|
-
isInFilterPanel:
|
|
4686
|
-
maxSelectableValues:
|
|
4687
|
-
isSingleSelect:
|
|
4688
|
-
selectionLimitReached:
|
|
4689
|
-
suggestedValues:
|
|
4690
|
-
displayedFilterValues:
|
|
4691
|
-
selectedFilterValues:
|
|
4692
|
-
showSearchBar:
|
|
4693
|
-
emptyFilterResultsRenderer:
|
|
4694
|
-
filterOptionsRenderer:
|
|
4695
|
-
filterHeaderRenderer:
|
|
4696
|
-
filterFooterRenderer:
|
|
4697
|
-
filterOptionsSortDescription:
|
|
4698
|
-
filterOptionsSortTooltip:
|
|
4699
|
-
totalOptionCount:
|
|
4700
|
-
isAggregate:
|
|
4701
|
-
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,
|
|
4702
4712
|
filterValueContext: f,
|
|
4703
|
-
formatDisplayValue:
|
|
4704
|
-
isUnresolvedMetadataValue:
|
|
4705
|
-
getLatestFilterValues:
|
|
4706
|
-
addSelectedValue:
|
|
4707
|
-
removeSelectedValue:
|
|
4708
|
-
handleDropdownClosed:
|
|
4709
|
-
handleSeeMore:
|
|
4710
|
-
handleCascadeSelectionState:
|
|
4711
|
-
getColDisplayNameForField:
|
|
4712
|
-
disableFilterValue:
|
|
4713
|
-
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
|
|
4714
4724
|
};
|
|
4715
4725
|
}, ac = {
|
|
4716
4726
|
key: 0,
|
|
@@ -4767,11 +4777,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4767
4777
|
"handle-settings-icon"
|
|
4768
4778
|
],
|
|
4769
4779
|
setup(e, { emit: n }) {
|
|
4770
|
-
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({
|
|
4771
4781
|
filterColDef: F(d, "filterColDef"),
|
|
4772
4782
|
filterStyle: F(d, "filterStyle"),
|
|
4773
4783
|
onSelectionChanged: () => f("filter-selection-changed")
|
|
4774
|
-
}), { handleFocusUpdate: ce, isFocused: le, removeFocus: ue, isFocusable: de, canRemoveFocus:
|
|
4784
|
+
}), { handleFocusUpdate: ce, isFocused: le, removeFocus: ue, isFocusable: de, canRemoveFocus: K } = Ko(), fe = r(() => {
|
|
4775
4785
|
if (de(vs(d.filterColDef) ? $(d.filterColDef)?.aggregateFields || [] : [S.value])) return {
|
|
4776
4786
|
icon: "focus",
|
|
4777
4787
|
isDisabled: (e) => !de([e.context?.colField || S.value]),
|
|
@@ -4779,10 +4789,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4779
4789
|
let t = e.context?.colField || S.value;
|
|
4780
4790
|
if (!de([t])) return `Group by ${ie(t)} to enable ${d.focusText}`;
|
|
4781
4791
|
let n = le(e.id, t);
|
|
4782
|
-
return n && !
|
|
4792
|
+
return n && !K() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
4783
4793
|
},
|
|
4784
4794
|
action: (e) => {
|
|
4785
|
-
e && !m.value.includes(e.id) &&
|
|
4795
|
+
e && !m.value.includes(e.id) && U(e.id, e.context?.colField);
|
|
4786
4796
|
let t = e.context?.colField || S.value;
|
|
4787
4797
|
ce(e.id, t);
|
|
4788
4798
|
},
|
|
@@ -4791,15 +4801,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4791
4801
|
return le(e.id, t);
|
|
4792
4802
|
}
|
|
4793
4803
|
};
|
|
4794
|
-
}),
|
|
4795
|
-
|
|
4804
|
+
}), pe = (e) => {
|
|
4805
|
+
W(e), le(e, z(S.value, e)?.colField || S.value) && K() && ue(e);
|
|
4796
4806
|
}, me = () => {
|
|
4797
|
-
|
|
4798
|
-
}, he = (e) => le(e,
|
|
4799
|
-
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(
|
|
4800
|
-
label: I(
|
|
4801
|
-
showClear: !he(e) || I(
|
|
4802
|
-
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)
|
|
4803
4813
|
}, null, 8, [
|
|
4804
4814
|
"label",
|
|
4805
4815
|
"showClear",
|
|
@@ -4823,7 +4833,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4823
4833
|
overlayTrigger: I(w),
|
|
4824
4834
|
options: I(D),
|
|
4825
4835
|
optionsRenderer: I(N),
|
|
4826
|
-
optionsAction:
|
|
4836
|
+
optionsAction: fe.value,
|
|
4827
4837
|
popoverCssProperties: {
|
|
4828
4838
|
maxHeight: "400px",
|
|
4829
4839
|
maxWidth: I(w) ? "300px" : "400px",
|
|
@@ -4845,52 +4855,52 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4845
4855
|
filterColDef: e.filterColDef,
|
|
4846
4856
|
rowsLoading: I(v)
|
|
4847
4857
|
},
|
|
4848
|
-
onDropdownOpen: r[4] ||= (e) => I(
|
|
4858
|
+
onDropdownOpen: r[4] ||= (e) => I(H)(!0),
|
|
4849
4859
|
onDropdownClosed: me,
|
|
4850
4860
|
onSeeMore: I(re)
|
|
4851
4861
|
}, c({
|
|
4852
|
-
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), {
|
|
4853
4863
|
variant: "dark",
|
|
4854
4864
|
size: "sm"
|
|
4855
4865
|
}, {
|
|
4856
|
-
label:
|
|
4866
|
+
label: V(() => [u(X, {
|
|
4857
4867
|
size: "md",
|
|
4858
4868
|
variant: "ghost",
|
|
4859
4869
|
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(C)),
|
|
4860
4870
|
"right-icon": "sliders-horizontal"
|
|
4861
4871
|
})]),
|
|
4862
|
-
"tooltip-content":
|
|
4872
|
+
"tooltip-content": V(() => [...r[5] ||= [l(" Open Preferences ", -1)]]),
|
|
4863
4873
|
_: 1
|
|
4864
4874
|
})])]),
|
|
4865
|
-
suggestions:
|
|
4875
|
+
suggestions: V(() => [s("div", cc, [u(I(_n), {
|
|
4866
4876
|
variant: "dark",
|
|
4867
4877
|
disableInteractive: !0,
|
|
4868
4878
|
"tooltip-position": "top-left",
|
|
4869
4879
|
size: "sm",
|
|
4870
4880
|
style: { "--max-width": "200px" }
|
|
4871
4881
|
}, c({
|
|
4872
|
-
label:
|
|
4882
|
+
label: V(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(R) ? "suggested-title-label" : ""]) }, P(I(te)), 3)]),
|
|
4873
4883
|
_: 2
|
|
4874
|
-
}, [I(
|
|
4884
|
+
}, [I(R) ? {
|
|
4875
4885
|
name: "tooltip-content",
|
|
4876
|
-
fn:
|
|
4886
|
+
fn: V(() => [l(P(I(R)), 1)]),
|
|
4877
4887
|
key: "0"
|
|
4878
4888
|
} : void 0]), 1024)])]),
|
|
4879
4889
|
_: 2
|
|
4880
4890
|
}, [
|
|
4881
4891
|
I(L) ? {
|
|
4882
4892
|
name: "header",
|
|
4883
|
-
fn:
|
|
4893
|
+
fn: V((e) => [(E(), i(M(I(L)), b(p(e)), null, 16))]),
|
|
4884
4894
|
key: "0"
|
|
4885
4895
|
} : void 0,
|
|
4886
4896
|
I(j) ? {
|
|
4887
4897
|
name: "no-results",
|
|
4888
|
-
fn:
|
|
4898
|
+
fn: V((e) => [(E(), i(M(I(j)), b(p(e)), null, 16))]),
|
|
4889
4899
|
key: "1"
|
|
4890
4900
|
} : void 0,
|
|
4891
|
-
I(
|
|
4901
|
+
I(ee) ? {
|
|
4892
4902
|
name: "footer",
|
|
4893
|
-
fn:
|
|
4903
|
+
fn: V((e) => [(E(), i(M(I(ee)), b(p(e)), null, 16))]),
|
|
4894
4904
|
key: "2"
|
|
4895
4905
|
} : void 0
|
|
4896
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), {
|
|
@@ -4900,11 +4910,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4900
4910
|
size: "sm",
|
|
4901
4911
|
style: { "--max-width": "200px" }
|
|
4902
4912
|
}, c({
|
|
4903
|
-
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)])]),
|
|
4904
4914
|
_: 2
|
|
4905
|
-
}, [I(
|
|
4915
|
+
}, [I(R) ? {
|
|
4906
4916
|
name: "tooltip-content",
|
|
4907
|
-
fn:
|
|
4917
|
+
fn: V(() => [l(P(I(R)), 1)]),
|
|
4908
4918
|
key: "0"
|
|
4909
4919
|
} : void 0]), 1024), (E(!0), o(t, null, k(I(T).filter((e) => e !== "" && e != null).slice(0, pc), (e) => (E(), o("li", {
|
|
4910
4920
|
key: `${I(C)}-${e}-suggest`,
|
|
@@ -4915,8 +4925,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4915
4925
|
}
|
|
4916
4926
|
}, [u(I(Ti), {
|
|
4917
4927
|
disabled: I(g),
|
|
4918
|
-
label: I(
|
|
4919
|
-
onHandleClick: (t) => I(
|
|
4928
|
+
label: I(ne)(e) || "",
|
|
4929
|
+
onHandleClick: (t) => I(U)(e, I(z)(I(S), e)?.colField)
|
|
4920
4930
|
}, null, 8, [
|
|
4921
4931
|
"disabled",
|
|
4922
4932
|
"label",
|
|
@@ -4978,7 +4988,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4978
4988
|
return;
|
|
4979
4989
|
}
|
|
4980
4990
|
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => L(e, t));
|
|
4981
|
-
},
|
|
4991
|
+
}, ee = r(() => {
|
|
4982
4992
|
let e = _.value;
|
|
4983
4993
|
if (f.value && n.value) {
|
|
4984
4994
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -4986,11 +4996,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4986
4996
|
}
|
|
4987
4997
|
let t = _.value || {};
|
|
4988
4998
|
return Object.keys(t).length;
|
|
4989
|
-
}),
|
|
4990
|
-
|
|
4991
|
-
},
|
|
4999
|
+
}), te = O(!1), R = () => {
|
|
5000
|
+
te.value = !0;
|
|
5001
|
+
}, z = () => {
|
|
4992
5002
|
if (n.value) {
|
|
4993
|
-
|
|
5003
|
+
te.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
4994
5004
|
for (let e of M.value) {
|
|
4995
5005
|
let t = e.field;
|
|
4996
5006
|
if (!t) continue;
|
|
@@ -5001,14 +5011,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5001
5011
|
});
|
|
5002
5012
|
}
|
|
5003
5013
|
}
|
|
5004
|
-
}, { clearAllFocuses:
|
|
5005
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
5006
|
-
},
|
|
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 = () => {
|
|
5007
5017
|
w.value = !1, D.value = "";
|
|
5018
|
+
}, U = () => {
|
|
5019
|
+
b(), H();
|
|
5008
5020
|
}, W = () => {
|
|
5009
|
-
b(), te();
|
|
5010
|
-
}, G = () => {
|
|
5011
|
-
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();
|
|
5012
5022
|
};
|
|
5013
5023
|
return (e, r) => (E(), o(t, null, [s("div", hc, [
|
|
5014
5024
|
(E(!0), o(t, null, k(F.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(mc, {
|
|
@@ -5027,19 +5037,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5027
5037
|
s("div", gc, [p.enableVerticalPanel ? (E(), i(I(X), {
|
|
5028
5038
|
key: 0,
|
|
5029
5039
|
label: "All Filters",
|
|
5030
|
-
onClick:
|
|
5040
|
+
onClick: z,
|
|
5031
5041
|
variant: "ghost",
|
|
5032
5042
|
"left-icon": "filter"
|
|
5033
|
-
})) : a("", !0),
|
|
5043
|
+
})) : a("", !0), ee.value > 0 ? (E(), o("button", {
|
|
5034
5044
|
key: 1,
|
|
5035
5045
|
class: "pv-button-ghost",
|
|
5036
5046
|
onClick: r[1] ||= (e) => T.value = !0
|
|
5037
5047
|
}, [
|
|
5038
5048
|
u(I(rn), { name: "close" }),
|
|
5039
5049
|
r[12] ||= l(" Clear All Filters ", -1),
|
|
5040
|
-
|
|
5050
|
+
ee.value > 0 ? (E(), i(I(cn), {
|
|
5041
5051
|
key: 0,
|
|
5042
|
-
value:
|
|
5052
|
+
value: ee.value,
|
|
5043
5053
|
variant: "tertiary"
|
|
5044
5054
|
}, null, 8, ["value"])) : a("", !0)
|
|
5045
5055
|
])) : a("", !0)]),
|
|
@@ -5049,39 +5059,39 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5049
5059
|
"onUpdate:modelValue": r[8] ||= (e) => w.value = e,
|
|
5050
5060
|
class: "pv-drawer pv-surface",
|
|
5051
5061
|
"close-on-click-outside": !0,
|
|
5052
|
-
onClickOutside: r[9] ||= (e) =>
|
|
5062
|
+
onClickOutside: r[9] ||= (e) => W(),
|
|
5053
5063
|
style: {
|
|
5054
5064
|
"max-width": "450px",
|
|
5055
5065
|
"z-index": "10"
|
|
5056
5066
|
}
|
|
5057
5067
|
}, {
|
|
5058
|
-
header:
|
|
5068
|
+
header: V(() => [s("div", _c, [s("p", vc, "All Filters (" + P(M.value.length) + ")", 1), s("button", {
|
|
5059
5069
|
class: "pv-button-ghost",
|
|
5060
|
-
onClick: r[2] ||= (e) =>
|
|
5070
|
+
onClick: r[2] ||= (e) => U()
|
|
5061
5071
|
}, [u(I(rn), { name: "close" })])]), u(I(Ai), {
|
|
5062
5072
|
modelValue: D.value,
|
|
5063
5073
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
5064
5074
|
placeholder: "Search Filters"
|
|
5065
5075
|
}, null, 8, ["modelValue"])]),
|
|
5066
|
-
footer:
|
|
5076
|
+
footer: V(() => [s("div", wc, [s("button", {
|
|
5067
5077
|
class: "pv-button-ghost",
|
|
5068
|
-
onClick: r[5] ||= (e) =>
|
|
5078
|
+
onClick: r[5] ||= (e) => B()
|
|
5069
5079
|
}, "Clear All"), s("div", Tc, [u(I(X), {
|
|
5070
5080
|
variant: "ghost",
|
|
5071
5081
|
label: "Cancel",
|
|
5072
|
-
onClick: r[6] ||= (e) =>
|
|
5073
|
-
}),
|
|
5082
|
+
onClick: r[6] ||= (e) => U()
|
|
5083
|
+
}), te.value ? (E(), i(I(X), {
|
|
5074
5084
|
key: 0,
|
|
5075
5085
|
variant: "primary",
|
|
5076
5086
|
label: "Apply",
|
|
5077
|
-
onClick: r[7] ||= (e) =>
|
|
5087
|
+
onClick: r[7] ||= (e) => W()
|
|
5078
5088
|
})) : (E(), i(I(X), {
|
|
5079
5089
|
key: 1,
|
|
5080
5090
|
variant: "primary",
|
|
5081
5091
|
label: "No Changes",
|
|
5082
5092
|
disabled: ""
|
|
5083
5093
|
}))])])]),
|
|
5084
|
-
default:
|
|
5094
|
+
default: V(() => [s("div", yc, [s("div", bc, [(E(!0), o(t, null, k(N.value, (t, c) => (E(), o("div", {
|
|
5085
5095
|
key: t.field,
|
|
5086
5096
|
class: y([{ "pv-border-bottom": c < N.value.length - 1 }, "pv-stack-12"])
|
|
5087
5097
|
}, [s("details", xc, [s("summary", Sc, [s("span", Cc, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(mc, {
|
|
@@ -5091,7 +5101,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5091
5101
|
filterColDef: t,
|
|
5092
5102
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
5093
5103
|
"focus-text": p.focusText,
|
|
5094
|
-
onFilterSelectionChanged:
|
|
5104
|
+
onFilterSelectionChanged: R,
|
|
5095
5105
|
onHandleSettingsIcon: r[4] ||= (t) => e.$emit("handle-settings-icon", t)
|
|
5096
5106
|
}, null, 8, [
|
|
5097
5107
|
"enable-focus-view",
|
|
@@ -5107,8 +5117,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5107
5117
|
header: "Clear All Filters",
|
|
5108
5118
|
style: { top: "50%" }
|
|
5109
5119
|
}, {
|
|
5110
|
-
body:
|
|
5111
|
-
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), {
|
|
5112
5122
|
label: "Cancel",
|
|
5113
5123
|
variant: "secondary",
|
|
5114
5124
|
size: "lg",
|
|
@@ -5117,7 +5127,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5117
5127
|
label: "Clear All Filters",
|
|
5118
5128
|
variant: "primary",
|
|
5119
5129
|
size: "lg",
|
|
5120
|
-
onClick:
|
|
5130
|
+
onClick: B
|
|
5121
5131
|
})])]),
|
|
5122
5132
|
_: 1
|
|
5123
5133
|
}, 8, ["modelValue"])], 64));
|
|
@@ -5156,7 +5166,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5156
5166
|
}, I = () => {
|
|
5157
5167
|
f.value && l.params.progressSort(!1);
|
|
5158
5168
|
};
|
|
5159
|
-
|
|
5169
|
+
B(D, (e) => {
|
|
5160
5170
|
if (!e) return;
|
|
5161
5171
|
let t = l.params.column.getAggFunc();
|
|
5162
5172
|
if (e.id === t) return;
|
|
@@ -5200,7 +5210,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5200
5210
|
variant: "ghost",
|
|
5201
5211
|
size: "lg",
|
|
5202
5212
|
label: p.value || "",
|
|
5203
|
-
onClick: t[1] ||=
|
|
5213
|
+
onClick: t[1] ||= U(() => {}, ["stop"])
|
|
5204
5214
|
}, null, 8, [
|
|
5205
5215
|
"modelValue",
|
|
5206
5216
|
"options",
|
|
@@ -5219,7 +5229,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5219
5229
|
size: "md",
|
|
5220
5230
|
variant: "ghost",
|
|
5221
5231
|
"left-icon": "menu",
|
|
5222
|
-
onClick:
|
|
5232
|
+
onClick: U(N, ["stop", "prevent"])
|
|
5223
5233
|
})], 4)])) : a("", !0)], 4));
|
|
5224
5234
|
}
|
|
5225
5235
|
}), [["__scopeId", "data-v-9a0f71b4"]]), jc = {
|
|
@@ -5288,7 +5298,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5288
5298
|
class: "pv-icon-24"
|
|
5289
5299
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Ic, [s("button", {
|
|
5290
5300
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
5291
|
-
onClick:
|
|
5301
|
+
onClick: U(i, ["prevent"]),
|
|
5292
5302
|
disabled: r.value
|
|
5293
5303
|
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Lc)])]));
|
|
5294
5304
|
}
|
|
@@ -5299,7 +5309,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5299
5309
|
__name: "PaginationPanel",
|
|
5300
5310
|
props: { panelSize: { default: "xl" } },
|
|
5301
5311
|
setup(e) {
|
|
5302
|
-
me.registerModules([
|
|
5312
|
+
me.registerModules([K]);
|
|
5303
5313
|
let n = m(io, O(null)), a = m(ho, O(1)), s = m(go, O(0)), c = e, l = r(() => {
|
|
5304
5314
|
let e = s.value, t = a.value;
|
|
5305
5315
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
@@ -5647,7 +5657,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5647
5657
|
Ae,
|
|
5648
5658
|
ce,
|
|
5649
5659
|
ue,
|
|
5650
|
-
|
|
5660
|
+
fe,
|
|
5651
5661
|
Me,
|
|
5652
5662
|
ye,
|
|
5653
5663
|
Re,
|
|
@@ -5666,7 +5676,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5666
5676
|
Ce,
|
|
5667
5677
|
ae,
|
|
5668
5678
|
be,
|
|
5669
|
-
|
|
5679
|
+
pe,
|
|
5670
5680
|
he,
|
|
5671
5681
|
de,
|
|
5672
5682
|
le,
|
|
@@ -5678,7 +5688,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5678
5688
|
let p = r(() => f.layout ? {} : {
|
|
5679
5689
|
height: f.containerHeight,
|
|
5680
5690
|
minHeight: f.containerMinHeight
|
|
5681
|
-
}), 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) => {
|
|
5682
5692
|
if (!Ue.value) {
|
|
5683
5693
|
e.success({ rowData: [] }), me.value = !0;
|
|
5684
5694
|
return;
|
|
@@ -5747,7 +5757,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5747
5757
|
} : e.request.filterModel = s;
|
|
5748
5758
|
} else {
|
|
5749
5759
|
let t = e.request.filterModel;
|
|
5750
|
-
e.request.filterModel = Is(
|
|
5760
|
+
e.request.filterModel = Is(z, t, s);
|
|
5751
5761
|
}
|
|
5752
5762
|
e.success = (e) => {
|
|
5753
5763
|
if (we.value = !1, f.enableFocusView && ot.value.length > 0 && at.value && e.rowData) {
|
|
@@ -5763,7 +5773,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5763
5773
|
}, f.serverSideRowHandler?.(e);
|
|
5764
5774
|
} } : null, j = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
5765
5775
|
let t = [], n = { ...Xe.value };
|
|
5766
|
-
t = !me.value &&
|
|
5776
|
+
t = !me.value && W ? Vs(e.colDef, n) : await et(e.colDef, {
|
|
5767
5777
|
api: e.api,
|
|
5768
5778
|
filterModel: n
|
|
5769
5779
|
}), e.success([...t, ""]);
|
|
@@ -5790,7 +5800,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5790
5800
|
component: Cs,
|
|
5791
5801
|
params: e
|
|
5792
5802
|
};
|
|
5793
|
-
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber &&
|
|
5803
|
+
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && K.value.length === 0) {
|
|
5794
5804
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
5795
5805
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
5796
5806
|
component: Wc,
|
|
@@ -5800,23 +5810,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5800
5810
|
}
|
|
5801
5811
|
};
|
|
5802
5812
|
return f.defaultColDefOverrides && Object.assign(e, f.defaultColDefOverrides), e;
|
|
5803
|
-
})(), L = O(void 0),
|
|
5813
|
+
})(), L = O(void 0), ee = r(() => (e) => {
|
|
5804
5814
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
5805
5815
|
let t = [];
|
|
5806
5816
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
5807
|
-
}),
|
|
5817
|
+
}), te = {
|
|
5808
5818
|
name: "Column Filter",
|
|
5809
5819
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
5810
5820
|
action: function(e) {
|
|
5811
5821
|
let t = e.column?.getColId();
|
|
5812
5822
|
if (e.column && vt(e.column) && (t = ut.value?.getColId() || ""), !Pt(t)) {
|
|
5813
5823
|
let n = e.api.getColumn(t)?.getColDef();
|
|
5814
|
-
n && (
|
|
5824
|
+
n && (G.value = n, v(() => {
|
|
5815
5825
|
Pt(t);
|
|
5816
5826
|
}));
|
|
5817
5827
|
}
|
|
5818
5828
|
}
|
|
5819
|
-
},
|
|
5829
|
+
}, R = (e, t) => {
|
|
5820
5830
|
if (!e) return null;
|
|
5821
5831
|
let n = { ...e };
|
|
5822
5832
|
if (t.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -5830,19 +5840,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5830
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 || "";
|
|
5831
5841
|
}
|
|
5832
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;
|
|
5833
|
-
},
|
|
5843
|
+
}, z = f.colDefs?.map((e) => {
|
|
5834
5844
|
let t = { ...e };
|
|
5835
5845
|
k && j && Ls(e) && (t = Rs(e, j));
|
|
5836
5846
|
let n = e.context;
|
|
5837
|
-
return n && (t =
|
|
5838
|
-
}).filter((e) => e != null) || [],
|
|
5839
|
-
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) {
|
|
5840
5850
|
let t = e.context;
|
|
5841
|
-
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.`);
|
|
5842
5852
|
}
|
|
5843
|
-
let
|
|
5844
|
-
if (
|
|
5845
|
-
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;
|
|
5846
5856
|
if (!r && tc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
5847
5857
|
}
|
|
5848
5858
|
return null;
|
|
@@ -5856,27 +5866,27 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5856
5866
|
deep: !0,
|
|
5857
5867
|
debounce: 250
|
|
5858
5868
|
});
|
|
5859
|
-
let it = O(null), at = r(() => Ye?.computedFocusType.value || null), ot = r(() => Ye?.computedFocuses.value || []), st = r(() =>
|
|
5860
|
-
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));
|
|
5861
5871
|
let mt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ot.value.length && !at.value ? f.rowData : ps(f.rowData, at.value, ot.value));
|
|
5862
|
-
|
|
5872
|
+
B(() => ot.value, (e) => {
|
|
5863
5873
|
w("focus-update", {
|
|
5864
5874
|
filterField: at.value,
|
|
5865
5875
|
focuses: e
|
|
5866
5876
|
});
|
|
5867
|
-
}),
|
|
5877
|
+
}), B(T, (e) => {
|
|
5868
5878
|
if (!Y.value) return;
|
|
5869
|
-
let t =
|
|
5879
|
+
let t = z.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
5870
5880
|
t.length > 0 && Y.value.setColumnsVisible(t, e);
|
|
5871
5881
|
});
|
|
5872
5882
|
let ht = (e) => {
|
|
5873
5883
|
Y.value = e.api;
|
|
5874
|
-
let t =
|
|
5875
|
-
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) {
|
|
5876
5886
|
let t = e.api.getColumn(r);
|
|
5877
5887
|
ut.value = t, i.push(r), Rt(t?.getColDef());
|
|
5878
5888
|
}
|
|
5879
|
-
|
|
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);
|
|
5880
5890
|
}, gt = (e) => {
|
|
5881
5891
|
if (Y.value) {
|
|
5882
5892
|
let t = Dt();
|
|
@@ -5961,7 +5971,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5961
5971
|
getFilterValueSelectedMetadataMap: Tt,
|
|
5962
5972
|
availableRowGroupColumns: ct,
|
|
5963
5973
|
availableAggFuncColumns: lt,
|
|
5964
|
-
rowGroupColumnFields:
|
|
5974
|
+
rowGroupColumnFields: K,
|
|
5965
5975
|
getPvFilterModel: Dt,
|
|
5966
5976
|
setPvFilterModel: (e) => {
|
|
5967
5977
|
if (!Y.value) return;
|
|
@@ -5982,13 +5992,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5982
5992
|
v(() => {
|
|
5983
5993
|
let t = ut.value, n = e.api.getRowGroupColumns(), r = n.length > 0, i;
|
|
5984
5994
|
if (r && f.leftPinnedColumnName && (i = e.api.getColumn(f.leftPinnedColumnName || "")), r && !f.leftPinnedColumnName && (i = n.find((e) => !e.getColDef().hide), !i)) {
|
|
5985
|
-
let t =
|
|
5995
|
+
let t = z.find((e) => !e.hide && !e.rowGroup)?.field;
|
|
5986
5996
|
t && (i = e.api.getColumn(t));
|
|
5987
5997
|
}
|
|
5988
5998
|
i ? (ut.value = i, Rt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (ut.value = null, Rt(null));
|
|
5989
5999
|
let a = t?.getColId();
|
|
5990
|
-
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)),
|
|
5991
|
-
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;
|
|
5992
6002
|
Ye.setFocusType(e);
|
|
5993
6003
|
}
|
|
5994
6004
|
me.value && w("column-row-group-changed", e);
|
|
@@ -6069,24 +6079,24 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6069
6079
|
"sortUnSort",
|
|
6070
6080
|
"rowUnGroup"
|
|
6071
6081
|
], n = e.column && vt(e.column) ? ut.value : e.column;
|
|
6072
|
-
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0,
|
|
6073
|
-
},
|
|
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 || []);
|
|
6074
6084
|
});
|
|
6075
6085
|
let Vt = (e) => {
|
|
6076
6086
|
let t = Y.value;
|
|
6077
6087
|
if (!t) return;
|
|
6078
6088
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
6079
|
-
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);
|
|
6080
6090
|
};
|
|
6081
|
-
|
|
6091
|
+
B(() => f.initialGridState, () => {
|
|
6082
6092
|
if (f.initialGridState) {
|
|
6083
|
-
let e = As(f.initialGridState,
|
|
6093
|
+
let e = As(f.initialGridState, z, f.enableAdvancedFilter);
|
|
6084
6094
|
e && Vt(e);
|
|
6085
6095
|
}
|
|
6086
6096
|
}, { deep: !0 });
|
|
6087
6097
|
let Ht = (e) => {
|
|
6088
6098
|
me.value = !0, w("first-data-rendered", e);
|
|
6089
|
-
}, 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(() => {
|
|
6090
6100
|
if (!k) return f.groupDefaultExpanded;
|
|
6091
6101
|
}), Gt = O(null), Kt = O(null);
|
|
6092
6102
|
return (t, r) => (E(), o("div", {
|
|
@@ -6104,15 +6114,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6104
6114
|
"--flex-justify": "flex-end"
|
|
6105
6115
|
}
|
|
6106
6116
|
}, {
|
|
6107
|
-
trigger:
|
|
6117
|
+
trigger: V(() => [u(I(X), {
|
|
6108
6118
|
"left-icon": "flask-conical",
|
|
6109
6119
|
variant: T.value ? "primary" : "secondary",
|
|
6110
6120
|
onClick: r[0] ||= (e) => T.value = !T.value
|
|
6111
6121
|
}, null, 8, ["variant"])]),
|
|
6112
|
-
content:
|
|
6122
|
+
content: V(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
6113
6123
|
_: 1
|
|
6114
6124
|
})) : a("", !0),
|
|
6115
|
-
|
|
6125
|
+
H(s("div", Yc, [s("div", Xc, [(E(), i(n, {
|
|
6116
6126
|
to: e.filterTeleportLocation,
|
|
6117
6127
|
disabled: !e.filterTeleportLocation
|
|
6118
6128
|
}, [st.value.length > 0 && !f.enableInlineFilters ? (E(), i(Dc, {
|
|
@@ -6138,12 +6148,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6138
6148
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Rc, {
|
|
6139
6149
|
key: 1,
|
|
6140
6150
|
getCsvData: Et
|
|
6141
|
-
})) : a("", !0)])])], 512), [[
|
|
6142
|
-
|
|
6151
|
+
})) : a("", !0)])])], 512), [[ne, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
6152
|
+
H(s("div", {
|
|
6143
6153
|
ref_key: "advancedFilterParentElement",
|
|
6144
6154
|
ref: Kt,
|
|
6145
6155
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
6146
|
-
}, null, 2), [[
|
|
6156
|
+
}, null, 2), [[ne, T.value && e.enableAdvancedFilter]]),
|
|
6147
6157
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
6148
6158
|
key: 1,
|
|
6149
6159
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
@@ -6194,16 +6204,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6194
6204
|
onUndoStarted: r[10] ||= (e) => w("undo-started", e),
|
|
6195
6205
|
aggFuncs: Bt,
|
|
6196
6206
|
autoGroupColumnDef: Lt.value,
|
|
6197
|
-
columnDefs: I(
|
|
6207
|
+
columnDefs: I(z),
|
|
6198
6208
|
debug: e.debugMode,
|
|
6199
6209
|
defaultColDef: I(F),
|
|
6200
6210
|
getChildCount: Nt,
|
|
6201
|
-
getContextMenuItems:
|
|
6211
|
+
getContextMenuItems: ee.value,
|
|
6202
6212
|
getMainMenuItems: L.value,
|
|
6203
6213
|
getRowStyle: zt,
|
|
6204
6214
|
groupDefaultExpanded: Wt.value,
|
|
6205
6215
|
groupDisplayType: "singleColumn",
|
|
6206
|
-
initialState: I(
|
|
6216
|
+
initialState: I(W) || void 0,
|
|
6207
6217
|
isGroupOpenByDefault: I(k) ? void 0 : f.isClientSideGroupOpenByDefault,
|
|
6208
6218
|
isServerSideGroupOpenByDefault: Ut,
|
|
6209
6219
|
includeHiddenColumnsInAdvancedFilter: !0,
|
|
@@ -6340,7 +6350,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6340
6350
|
l,
|
|
6341
6351
|
...n.options.filter((t) => !e.has(t.id))
|
|
6342
6352
|
];
|
|
6343
|
-
}), m =
|
|
6353
|
+
}), m = te("sortableListRef"), h = te("containerRef"), g = null, _ = null, v = () => {
|
|
6344
6354
|
if (!m.value) return;
|
|
6345
6355
|
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === fl);
|
|
6346
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);
|
|
@@ -6555,12 +6565,12 @@ var Sl = {
|
|
|
6555
6565
|
disableInteractive: !0,
|
|
6556
6566
|
style: { "pointer-events": "auto" }
|
|
6557
6567
|
}, {
|
|
6558
|
-
trigger:
|
|
6568
|
+
trigger: V(() => [u(I(rn), {
|
|
6559
6569
|
size: 12,
|
|
6560
6570
|
name: "info-circle",
|
|
6561
6571
|
class: "pv-text-subdued"
|
|
6562
6572
|
})]),
|
|
6563
|
-
content:
|
|
6573
|
+
content: V(() => [s("div", wl, P(e.context.description), 1)]),
|
|
6564
6574
|
_: 1
|
|
6565
6575
|
})) : a("", !0)]));
|
|
6566
6576
|
}
|
|
@@ -6598,14 +6608,14 @@ var Sl = {
|
|
|
6598
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(() => {
|
|
6599
6609
|
let e = b.value?.id ?? "";
|
|
6600
6610
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
6601
|
-
}), M = m(Co, O("")), N = m(wo, O([])), F = m(To, O(void 0)), L = m(Eo, O([])),
|
|
6602
|
-
|
|
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) => {
|
|
6603
6613
|
e && F.value && (F.value = void 0);
|
|
6604
6614
|
}, { immediate: !0 });
|
|
6605
|
-
let
|
|
6615
|
+
let R = m(_o, O("")), z = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
6606
6616
|
label: e.label,
|
|
6607
6617
|
value: e.value
|
|
6608
|
-
})) : []),
|
|
6618
|
+
})) : []), ne = r(() => {
|
|
6609
6619
|
if (b.value) return (T.value.length > 1 ? [
|
|
6610
6620
|
"bar_stacked",
|
|
6611
6621
|
"line",
|
|
@@ -6618,7 +6628,7 @@ var Sl = {
|
|
|
6618
6628
|
"area"
|
|
6619
6629
|
]).includes(b.value?.id);
|
|
6620
6630
|
});
|
|
6621
|
-
|
|
6631
|
+
B(S, (e) => {
|
|
6622
6632
|
if (!b.value) return;
|
|
6623
6633
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
6624
6634
|
if (r) {
|
|
@@ -6634,14 +6644,14 @@ var Sl = {
|
|
|
6634
6644
|
}
|
|
6635
6645
|
b.value = e[0];
|
|
6636
6646
|
});
|
|
6637
|
-
function
|
|
6647
|
+
function U(e) {
|
|
6638
6648
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
6639
6649
|
}
|
|
6640
|
-
let
|
|
6650
|
+
let W = r(() => N.value.map((e) => ({
|
|
6641
6651
|
id: e.value,
|
|
6642
6652
|
text: e.label,
|
|
6643
6653
|
context: e.description ? { description: e.description } : void 0
|
|
6644
|
-
}))),
|
|
6654
|
+
}))), G = r(() => L.value.map((e) => ({
|
|
6645
6655
|
id: e.value,
|
|
6646
6656
|
text: e.label
|
|
6647
6657
|
}))), re = r(() => D.value.map((e) => ({
|
|
@@ -6660,8 +6670,8 @@ var Sl = {
|
|
|
6660
6670
|
prefixLabel: "Y Axis",
|
|
6661
6671
|
icon: "chart-bar-decreasing",
|
|
6662
6672
|
allowDeselect: !1,
|
|
6663
|
-
availableOptions:
|
|
6664
|
-
currentOption:
|
|
6673
|
+
availableOptions: W.value,
|
|
6674
|
+
currentOption: W.value.find((e) => e.id === M.value),
|
|
6665
6675
|
updateSelectedOption: (e) => {
|
|
6666
6676
|
M && e !== M.value && (M.value = e);
|
|
6667
6677
|
}
|
|
@@ -6688,7 +6698,7 @@ var Sl = {
|
|
|
6688
6698
|
allowDeselect: !0,
|
|
6689
6699
|
availableOptions: w.value,
|
|
6690
6700
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
6691
|
-
disabled: !
|
|
6701
|
+
disabled: !ne.value,
|
|
6692
6702
|
disabledReason: "Sorting is not available for this chart type",
|
|
6693
6703
|
updateSelectedOption: (e) => {
|
|
6694
6704
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -6710,7 +6720,7 @@ var Sl = {
|
|
|
6710
6720
|
t && b && (b.value = t);
|
|
6711
6721
|
}
|
|
6712
6722
|
};
|
|
6713
|
-
if (
|
|
6723
|
+
if (W.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && G.value.length > 0) {
|
|
6714
6724
|
let t = {
|
|
6715
6725
|
value: "secondary-y-axis",
|
|
6716
6726
|
label: "Metric Overlay",
|
|
@@ -6719,15 +6729,15 @@ var Sl = {
|
|
|
6719
6729
|
allowDeselect: !0,
|
|
6720
6730
|
disabled: j.value,
|
|
6721
6731
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
6722
|
-
availableOptions:
|
|
6723
|
-
currentOption:
|
|
6732
|
+
availableOptions: G.value,
|
|
6733
|
+
currentOption: G.value.find((e) => e.id === F?.value),
|
|
6724
6734
|
updateSelectedOption: (e) => {
|
|
6725
6735
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
6726
6736
|
}
|
|
6727
6737
|
};
|
|
6728
6738
|
t && e.push(t);
|
|
6729
|
-
} else if (
|
|
6730
|
-
let t =
|
|
6739
|
+
} else if (te.value.length > 0) {
|
|
6740
|
+
let t = te.value.map((e) => ({
|
|
6731
6741
|
id: e.id,
|
|
6732
6742
|
text: e.label,
|
|
6733
6743
|
disabled: e.disabled,
|
|
@@ -6739,11 +6749,11 @@ var Sl = {
|
|
|
6739
6749
|
icon: "chart-line",
|
|
6740
6750
|
allowDeselect: !0,
|
|
6741
6751
|
availableOptions: t,
|
|
6742
|
-
activeOptionIds:
|
|
6743
|
-
currentOption: t.find((e) =>
|
|
6752
|
+
activeOptionIds: ee.value,
|
|
6753
|
+
currentOption: t.find((e) => ee.value.has(e.id)),
|
|
6744
6754
|
updateSelectedOption: (e) => {
|
|
6745
|
-
let t = new Set(
|
|
6746
|
-
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;
|
|
6747
6757
|
}
|
|
6748
6758
|
};
|
|
6749
6759
|
n && e.push(n);
|
|
@@ -6751,7 +6761,7 @@ var Sl = {
|
|
|
6751
6761
|
let c = i ? 2 : 1;
|
|
6752
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);
|
|
6753
6763
|
});
|
|
6754
|
-
|
|
6764
|
+
B(v, (e) => {
|
|
6755
6765
|
e && (p.value = e);
|
|
6756
6766
|
});
|
|
6757
6767
|
let oe = r(() => _.value && ae.value.find((e) => e.value === _.value) || null), se = (e) => {
|
|
@@ -6764,7 +6774,7 @@ var Sl = {
|
|
|
6764
6774
|
}, ue = () => {
|
|
6765
6775
|
_.value = void 0;
|
|
6766
6776
|
};
|
|
6767
|
-
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, {
|
|
6768
6778
|
open: g.value,
|
|
6769
6779
|
label: "Chart Configuration",
|
|
6770
6780
|
icon: "chart-area",
|
|
@@ -6779,7 +6789,7 @@ var Sl = {
|
|
|
6779
6789
|
},
|
|
6780
6790
|
isList: !0
|
|
6781
6791
|
}, {
|
|
6782
|
-
default:
|
|
6792
|
+
default: V(() => [r[3] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
6783
6793
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
6784
6794
|
style: {
|
|
6785
6795
|
"padding-top": "4px",
|
|
@@ -6796,7 +6806,7 @@ var Sl = {
|
|
|
6796
6806
|
class: "pv-full-width",
|
|
6797
6807
|
variant: "dark"
|
|
6798
6808
|
}, c({
|
|
6799
|
-
label:
|
|
6809
|
+
label: V(() => [u(Aa, {
|
|
6800
6810
|
config: { variant: "icon" },
|
|
6801
6811
|
disabled: e.disabled,
|
|
6802
6812
|
id: e.value,
|
|
@@ -6812,7 +6822,7 @@ var Sl = {
|
|
|
6812
6822
|
_: 2
|
|
6813
6823
|
}, [e.disabled && e.disabledReason ? {
|
|
6814
6824
|
name: "tooltip-content",
|
|
6815
|
-
fn:
|
|
6825
|
+
fn: V(() => [s("div", Al, P(e.disabledReason), 1)]),
|
|
6816
6826
|
key: "0"
|
|
6817
6827
|
} : void 0]), 1024)], 40, kl))), 128))])]),
|
|
6818
6828
|
_: 1
|
|
@@ -6821,9 +6831,9 @@ var Sl = {
|
|
|
6821
6831
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
6822
6832
|
}, [e.chartFilter ? (E(), i(fi, {
|
|
6823
6833
|
key: 0,
|
|
6824
|
-
options:
|
|
6825
|
-
modelValue: I(
|
|
6826
|
-
"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
|
|
6827
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, {
|
|
6828
6838
|
key: 0,
|
|
6829
6839
|
label: e.label,
|
|
@@ -6854,7 +6864,7 @@ var Sl = {
|
|
|
6854
6864
|
},
|
|
6855
6865
|
isList: !0
|
|
6856
6866
|
}, {
|
|
6857
|
-
default:
|
|
6867
|
+
default: V(() => [oe.value ? (E(), o(t, { key: 0 }, [oe.value.isSortableList ? (E(), o(t, { key: 0 }, [r[4] ||= s("p", {
|
|
6858
6868
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
6859
6869
|
style: {
|
|
6860
6870
|
"padding-left": "2px",
|
|
@@ -6875,7 +6885,7 @@ var Sl = {
|
|
|
6875
6885
|
"data-active": se(e)
|
|
6876
6886
|
}, [u(Aa, {
|
|
6877
6887
|
id: e.id,
|
|
6878
|
-
config:
|
|
6888
|
+
config: U(e) ? { renderer: Tl } : { variant: "icon" },
|
|
6879
6889
|
text: e.text,
|
|
6880
6890
|
icon: e.icon,
|
|
6881
6891
|
context: e.context,
|
|
@@ -7129,7 +7139,7 @@ var Sl = {
|
|
|
7129
7139
|
],
|
|
7130
7140
|
setup(e, { expose: t, emit: n }) {
|
|
7131
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(() => {
|
|
7132
|
-
let e =
|
|
7142
|
+
let e = pe.value;
|
|
7133
7143
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
7134
7144
|
label: "Count",
|
|
7135
7145
|
value: e.yAxis.defaultValue
|
|
@@ -7171,22 +7181,22 @@ var Sl = {
|
|
|
7171
7181
|
};
|
|
7172
7182
|
})), L = nc();
|
|
7173
7183
|
D(to, L);
|
|
7174
|
-
let
|
|
7184
|
+
let ee = Go({
|
|
7175
7185
|
focusType: c.initialFocusData?.focusType,
|
|
7176
7186
|
focuses: c.initialFocusData?.focuses || [],
|
|
7177
7187
|
focusRequired: c.focusRequired
|
|
7178
7188
|
}, c.allFieldsAreFocusable);
|
|
7179
|
-
D(no,
|
|
7180
|
-
let { setFilterSelectedValues:
|
|
7181
|
-
D(po,
|
|
7182
|
-
let
|
|
7183
|
-
d.value = e.api,
|
|
7184
|
-
},
|
|
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) => {
|
|
7185
7195
|
l("first-data-rendered", e);
|
|
7186
7196
|
}, re = (e) => {
|
|
7187
7197
|
let t = k.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
7188
|
-
if (
|
|
7189
|
-
let t =
|
|
7198
|
+
if (z.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
7199
|
+
let t = pe.value;
|
|
7190
7200
|
if (n.length > me.value) {
|
|
7191
7201
|
let t = n.slice(0, me.value);
|
|
7192
7202
|
k.value = t, e.api.setRowGroupColumns(t);
|
|
@@ -7195,10 +7205,10 @@ var Sl = {
|
|
|
7195
7205
|
}
|
|
7196
7206
|
l("column-row-group-changed", e);
|
|
7197
7207
|
}, ie = async (e) => {
|
|
7198
|
-
Be(e.api),
|
|
7208
|
+
Be(e.api), R.value && l("filter-changed", e);
|
|
7199
7209
|
};
|
|
7200
|
-
|
|
7201
|
-
if (
|
|
7210
|
+
B(() => k.value, () => {
|
|
7211
|
+
if (z.value) {
|
|
7202
7212
|
if (!d.value) return;
|
|
7203
7213
|
let e = d.value.getRowGroupColumns().map((e) => e.getColId());
|
|
7204
7214
|
JSON.stringify(e) !== JSON.stringify(k.value) && v(() => {
|
|
@@ -7208,8 +7218,8 @@ var Sl = {
|
|
|
7208
7218
|
d?.value?.setRowGroupColumns([]);
|
|
7209
7219
|
});
|
|
7210
7220
|
if (!c.allFieldsAreFocusable) {
|
|
7211
|
-
let e =
|
|
7212
|
-
|
|
7221
|
+
let e = pe.value.supportsFocusView && A.value || null;
|
|
7222
|
+
ee.setFocusType(e);
|
|
7213
7223
|
}
|
|
7214
7224
|
d.value && Be(d.value);
|
|
7215
7225
|
});
|
|
@@ -7236,8 +7246,8 @@ var Sl = {
|
|
|
7236
7246
|
}, se = (e) => !e || !d.value ? null : d.value?.getColumnDef(e), ce = (e, t) => {
|
|
7237
7247
|
let n = se(A.value);
|
|
7238
7248
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
7239
|
-
}, le = r(() => [...k.value.length > 1 ? ls : cs, us].filter((e) => c.enabledChartTypes?.includes(e.id))), ue = O(void 0), de = O(void 0),
|
|
7240
|
-
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;
|
|
7241
7251
|
return e ? e(T.value) : T.value;
|
|
7242
7252
|
}), ge = O([{
|
|
7243
7253
|
text: "Ascending",
|
|
@@ -7252,15 +7262,15 @@ var Sl = {
|
|
|
7252
7262
|
let Ee = (e) => {
|
|
7253
7263
|
ue.value = le.value.find((t) => t.id === e) ?? le.value[0];
|
|
7254
7264
|
};
|
|
7255
|
-
|
|
7256
|
-
let e = Fe.value, t = e !==
|
|
7257
|
-
|
|
7258
|
-
}),
|
|
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) => {
|
|
7259
7269
|
e !== q.value && (q.value = e);
|
|
7260
|
-
}),
|
|
7270
|
+
}), B(Te, (e) => {
|
|
7261
7271
|
if (c.chartFilter && d.value) {
|
|
7262
7272
|
let t = c.chartFilter.colId, n = c.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
7263
|
-
n && n.length === 0 && (n = null),
|
|
7273
|
+
n && n.length === 0 && (n = null), te(t, n || []);
|
|
7264
7274
|
let r = Ds({
|
|
7265
7275
|
filterType: "set",
|
|
7266
7276
|
values: n
|
|
@@ -7276,8 +7286,8 @@ var Sl = {
|
|
|
7276
7286
|
}), Oe = r(() => F.value.find((e) => e.value === ye.value)), ke = r(() => {
|
|
7277
7287
|
let e = F.value.find((e) => e.value === ye.value);
|
|
7278
7288
|
return e ? e.label : "";
|
|
7279
|
-
}), Ae = r(() =>
|
|
7280
|
-
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);
|
|
7281
7291
|
if (je.value) Ce.value?.fieldValues.forEach((a) => {
|
|
7282
7292
|
let o = {
|
|
7283
7293
|
type: t,
|
|
@@ -7326,7 +7336,7 @@ var Sl = {
|
|
|
7326
7336
|
if (n = n.map((e) => ({
|
|
7327
7337
|
...e,
|
|
7328
7338
|
...a
|
|
7329
|
-
})),
|
|
7339
|
+
})), pe.value.yAxis.defaultValue === "groupedRecordCount" && (n = n.map((e) => ({
|
|
7330
7340
|
...e,
|
|
7331
7341
|
tooltip: { renderer: (e) => {
|
|
7332
7342
|
let t = String(e.datum[e.xKey] ?? ""), n = e.datum.bucketMin, r = e.datum.bucketMax;
|
|
@@ -7410,20 +7420,20 @@ var Sl = {
|
|
|
7410
7420
|
legendItemKey: A.value,
|
|
7411
7421
|
angleKey: q.value
|
|
7412
7422
|
}]);
|
|
7413
|
-
|
|
7423
|
+
B(q, (e, t) => {
|
|
7414
7424
|
l("chart-state-changed", {
|
|
7415
7425
|
api: d.value,
|
|
7416
7426
|
newState: { seriesField: e },
|
|
7417
7427
|
oldState: { seriesField: t }
|
|
7418
7428
|
});
|
|
7419
|
-
}),
|
|
7429
|
+
}), B(ye, (e, t) => {
|
|
7420
7430
|
l("chart-state-changed", {
|
|
7421
7431
|
api: d.value,
|
|
7422
7432
|
newState: { secondarySeriesField: e },
|
|
7423
7433
|
oldState: { secondarySeriesField: t }
|
|
7424
7434
|
});
|
|
7425
|
-
}),
|
|
7426
|
-
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);
|
|
7427
7437
|
let n = xl(e?.id || ""), r = xl(t?.id || "");
|
|
7428
7438
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (k.value = []), n.yAxis.defaultValue ? q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
7429
7439
|
c.yKey ? q.value = c.yKey : N.value.length > 0 && (q.value = N.value[0].value);
|
|
@@ -7432,40 +7442,40 @@ var Sl = {
|
|
|
7432
7442
|
newState: { chartType: e?.id },
|
|
7433
7443
|
oldState: { chartType: t?.id }
|
|
7434
7444
|
});
|
|
7435
|
-
}),
|
|
7445
|
+
}), B(he, (e) => {
|
|
7436
7446
|
if (e.length === 1 && k.value.length === 0) {
|
|
7437
7447
|
let t = e[0].field;
|
|
7438
7448
|
t && (k.value = [t]);
|
|
7439
7449
|
}
|
|
7440
|
-
}),
|
|
7450
|
+
}), B(N, (e) => {
|
|
7441
7451
|
e.length === 1 && !q.value && (q.value = e[0].value);
|
|
7442
|
-
}),
|
|
7452
|
+
}), B(we, (e, t) => {
|
|
7443
7453
|
l("chart-state-changed", {
|
|
7444
7454
|
api: d.value,
|
|
7445
7455
|
newState: { chartSort: e?.id },
|
|
7446
7456
|
oldState: { chartSort: t?.id }
|
|
7447
7457
|
});
|
|
7448
|
-
}),
|
|
7458
|
+
}), B(k, (e, t) => {
|
|
7449
7459
|
l("chart-state-changed", {
|
|
7450
7460
|
api: d.value,
|
|
7451
7461
|
newState: { chartCategoryFields: e },
|
|
7452
7462
|
oldState: { chartCategoryFields: t }
|
|
7453
7463
|
});
|
|
7454
|
-
}),
|
|
7464
|
+
}), B(z, (e, t) => {
|
|
7455
7465
|
l("chart-state-changed", {
|
|
7456
7466
|
api: d.value,
|
|
7457
7467
|
newState: { tableGrouped: e },
|
|
7458
7468
|
oldState: { tableGrouped: t }
|
|
7459
7469
|
});
|
|
7460
|
-
}),
|
|
7470
|
+
}), B(() => c.isTableGrouped, (e, t) => {
|
|
7461
7471
|
!d.value || e === t || !c.enableGroupingToggle || ot(e);
|
|
7462
|
-
}),
|
|
7472
|
+
}), B(() => c.initialFocusData, (e, t) => {
|
|
7463
7473
|
if (!(nt(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
7464
7474
|
if (!e?.focusType) {
|
|
7465
|
-
|
|
7475
|
+
ee.setFocuses([]);
|
|
7466
7476
|
return;
|
|
7467
7477
|
}
|
|
7468
|
-
|
|
7478
|
+
ee.setFocusType(e?.focusType), ee.setFocuses(e?.focuses ?? []);
|
|
7469
7479
|
}
|
|
7470
7480
|
}, { deep: !0 });
|
|
7471
7481
|
let Re = () => {
|
|
@@ -7559,8 +7569,8 @@ var Sl = {
|
|
|
7559
7569
|
{ [A.value]: "" },
|
|
7560
7570
|
e[0],
|
|
7561
7571
|
{ [A.value]: " " }
|
|
7562
|
-
]), c.enableFocusView && e &&
|
|
7563
|
-
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]));
|
|
7564
7574
|
e = [
|
|
7565
7575
|
...t || [],
|
|
7566
7576
|
{ [A.value]: ds },
|
|
@@ -7590,11 +7600,11 @@ var Sl = {
|
|
|
7590
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(() => {
|
|
7591
7601
|
let e = .25 * Math.exp(-.12 * Ge.value);
|
|
7592
7602
|
return Math.min(Math.max(e, .05), .75);
|
|
7593
|
-
}), 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 &&
|
|
7594
|
-
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";
|
|
7595
7605
|
return Fl({
|
|
7596
7606
|
currentRowGroupColumnsLength: k.value.length,
|
|
7597
|
-
shouldShowFocusOverlayText: Qe.value || c.focusRequired &&
|
|
7607
|
+
shouldShowFocusOverlayText: Qe.value || c.focusRequired && U.value.length === 0,
|
|
7598
7608
|
chartDataEmpty: Ze.value,
|
|
7599
7609
|
missingFocusText: c.missingFocusText,
|
|
7600
7610
|
displayGroupByName: t
|
|
@@ -7620,7 +7630,7 @@ var Sl = {
|
|
|
7620
7630
|
if (!ye.value) return [];
|
|
7621
7631
|
let e = ye.value;
|
|
7622
7632
|
return Pe.value ? [`${e}${fs}`] : je.value ? Ce.value?.fieldValues.map((t) => Il(e, String(t))) || [] : [e];
|
|
7623
|
-
})(), 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 = [];
|
|
7624
7634
|
if (a.push({
|
|
7625
7635
|
type: "category",
|
|
7626
7636
|
keys: [A.value],
|
|
@@ -7643,7 +7653,7 @@ var Sl = {
|
|
|
7643
7653
|
if (e.value === "--SEPARATOR--") return "";
|
|
7644
7654
|
let t = e.value, n = oe(A.value);
|
|
7645
7655
|
typeof n == "function" && (t = n(e));
|
|
7646
|
-
let r = c.enableFocusView &&
|
|
7656
|
+
let r = c.enableFocusView && U.value.includes(e.value) ? ` (${c.focusText})` : "";
|
|
7647
7657
|
if (typeof t == "string" && t.length + r.length > 35 && !e.context?.tooltip) {
|
|
7648
7658
|
let e = 35 - r.length - 3;
|
|
7649
7659
|
return t.substring(0, e) + "..." + r;
|
|
@@ -7720,10 +7730,10 @@ var Sl = {
|
|
|
7720
7730
|
});
|
|
7721
7731
|
}
|
|
7722
7732
|
return e.axes = a, e.series = Me.value, e;
|
|
7723
|
-
}), 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) => {
|
|
7724
7734
|
h.value = e, l("chart-collapsed", e);
|
|
7725
7735
|
}, ot = (e) => {
|
|
7726
|
-
d.value && (d.value.setRowGroupColumns(e ? k.value : []),
|
|
7736
|
+
d.value && (d.value.setRowGroupColumns(e ? k.value : []), z.value = e);
|
|
7727
7737
|
};
|
|
7728
7738
|
return t({
|
|
7729
7739
|
getChartImageDataURL: (e) => m.value?.getChartImageDataURL(e),
|
|
@@ -7733,7 +7743,7 @@ var Sl = {
|
|
|
7733
7743
|
}), S(() => {
|
|
7734
7744
|
if (c.initialGridState) {
|
|
7735
7745
|
let e = c.initialGridState.rowGroup?.groupColIds || [];
|
|
7736
|
-
k.value = e, !c.allFieldsAreFocusable && e.length > 0 &&
|
|
7746
|
+
k.value = e, !c.allFieldsAreFocusable && e.length > 0 && ee.setFocusType(e[0]);
|
|
7737
7747
|
}
|
|
7738
7748
|
}), w(async () => {
|
|
7739
7749
|
await v(), b.value = c.filterPanelAboveChart;
|
|
@@ -7789,30 +7799,30 @@ var Sl = {
|
|
|
7789
7799
|
"isLoading",
|
|
7790
7800
|
"options",
|
|
7791
7801
|
"enableFocusView"
|
|
7792
|
-
]), 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)
|
|
7793
7803
|
])),
|
|
7794
7804
|
u(tl, _({
|
|
7795
7805
|
ref_key: "pvDataTableRef",
|
|
7796
7806
|
ref: p
|
|
7797
7807
|
}, t.$props, {
|
|
7798
7808
|
filterTeleportLocation: b.value ? `#${g}` : void 0,
|
|
7799
|
-
pagination: e.pagination || !
|
|
7809
|
+
pagination: e.pagination || !z.value,
|
|
7800
7810
|
onColumnRowGroupChanged: re,
|
|
7801
|
-
onGridReady:
|
|
7811
|
+
onGridReady: W,
|
|
7802
7812
|
onFilterChanged: ie,
|
|
7803
7813
|
onSortChanged: n[3] ||= (e) => l("sort-changed", e),
|
|
7804
7814
|
onFilterOpened: n[4] ||= (e) => l("filter-opened", e),
|
|
7805
|
-
onFirstDataRendered:
|
|
7815
|
+
onFirstDataRendered: G,
|
|
7806
7816
|
onColumnMoved: n[5] ||= (e) => l("column-moved", e),
|
|
7807
7817
|
onColumnResized: n[6] ||= (e) => l("column-resized", e),
|
|
7808
7818
|
onHandleSettingsIcon: n[7] ||= (e) => l("handle-settings-icon", e),
|
|
7809
7819
|
onFocusUpdate: n[8] ||= (e) => l("focus-update", e)
|
|
7810
7820
|
}), {
|
|
7811
|
-
"top-slot":
|
|
7821
|
+
"top-slot": V(() => [e.enableGroupingToggle ? (E(), i(X, {
|
|
7812
7822
|
key: 0,
|
|
7813
|
-
leftIcon:
|
|
7814
|
-
label:
|
|
7815
|
-
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),
|
|
7816
7826
|
variant: "secondary",
|
|
7817
7827
|
size: "lg"
|
|
7818
7828
|
}, null, 8, ["leftIcon", "label"])) : a("", !0)]),
|
|
@@ -10741,9 +10751,9 @@ var Sl = {
|
|
|
10741
10751
|
id: e
|
|
10742
10752
|
}));
|
|
10743
10753
|
});
|
|
10744
|
-
return
|
|
10754
|
+
return B(n, (e) => {
|
|
10745
10755
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
10746
|
-
}),
|
|
10756
|
+
}), B(t, (e) => {
|
|
10747
10757
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
10748
10758
|
}), (e, t) => (E(), i(Ua, {
|
|
10749
10759
|
style: { width: "125px" },
|
|
@@ -10797,7 +10807,7 @@ var Sl = {
|
|
|
10797
10807
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
10798
10808
|
setup(e, { emit: n }) {
|
|
10799
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]));
|
|
10800
|
-
|
|
10810
|
+
B(c, (e) => {
|
|
10801
10811
|
l("region-selection-changed", { region: e });
|
|
10802
10812
|
});
|
|
10803
10813
|
let g = r(() => (c.value, {
|