@turquoisehealth/pit-viper 2.122.1-dev.2 → 2.122.1-dev.3
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/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +167 -162
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +561 -554
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +39 -34
- package/pv-components/dist/web/pv-components.iife.js +7 -7
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.pv-scatter-overlay[data-v-06119505]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:2;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.pv-scatter-quadrant[data-v-06119505]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-06119505]{background:#8080801a;padding:8px;border-radius:4px;font-size:12px;font-weight:600;color:#666;pointer-events:all;max-width:calc(100% - 10px);max-height:calc(100% - 10px);overflow:auto}.pv-scatter-quadrant-top-left[data-v-06119505]{grid-column:1;grid-row:1;align-items:flex-start;justify-content:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-06119505]{grid-column:2;grid-row:1;align-items:flex-start;justify-content:flex-end;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-06119505]{grid-column:1;grid-row:2;align-items:flex-end;justify-content:flex-start;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-06119505]{grid-column:2;grid-row:2;align-items:flex-end;justify-content:flex-end;padding:5px}.pv-chart-loading[data-v-06119505]{position:absolute;text-align:center;justify-content:center;align-items:center;top:0;left:0;width:100%;height:100%;opacity:1;background-color:#fff;z-index:4}.pv-chart-loading-icon[data-v-06119505]{color:#16696d;animation:pulse-06119505 1.5s infinite ease-in-out}@keyframes pulse-06119505{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-cda1af8c]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:transparent;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-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}.pv-menu-item-disabled[data-v-20ca2990]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-20ca2990]{cursor:pointer}.pv-radio[data-v-bf2ac90c]:not(:disabled):focus-visible:checked,.pv-radio[data-v-bf2ac90c]:not(:disabled):focus-visible:indeterminate,.pv-radio[data-v-bf2ac90c]:not(:disabled):hover:checked,.pv-radio[data-v-bf2ac90c]:not(:disabled):hover:indeterminate{background-color:transparent}.pv-table-row-count{position:absolute;right:12px;top:6px;opacity:1;background-color:#f7f8f8;transition:opacity .3s ease}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{padding:8px 12px 8px 0;text-align:center;color:#89989b}.focus-button{opacity:0;transition:opacity .2s ease;position:absolute;right:0;top:50%;transform:translateY(-50%)}.option-label:hover .focus-button{opacity:1;background-color:#e8f2f4}.suggested-label[data-v-
|
|
2
|
-
import { defineComponent as Z, createElementBlock as x, openBlock as c, normalizeStyle as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.pv-scatter-overlay[data-v-06119505]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:2;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.pv-scatter-quadrant[data-v-06119505]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-06119505]{background:#8080801a;padding:8px;border-radius:4px;font-size:12px;font-weight:600;color:#666;pointer-events:all;max-width:calc(100% - 10px);max-height:calc(100% - 10px);overflow:auto}.pv-scatter-quadrant-top-left[data-v-06119505]{grid-column:1;grid-row:1;align-items:flex-start;justify-content:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-06119505]{grid-column:2;grid-row:1;align-items:flex-start;justify-content:flex-end;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-06119505]{grid-column:1;grid-row:2;align-items:flex-end;justify-content:flex-start;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-06119505]{grid-column:2;grid-row:2;align-items:flex-end;justify-content:flex-end;padding:5px}.pv-chart-loading[data-v-06119505]{position:absolute;text-align:center;justify-content:center;align-items:center;top:0;left:0;width:100%;height:100%;opacity:1;background-color:#fff;z-index:4}.pv-chart-loading-icon[data-v-06119505]{color:#16696d;animation:pulse-06119505 1.5s infinite ease-in-out}@keyframes pulse-06119505{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-cda1af8c]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:transparent;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-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}.pv-menu-item-disabled[data-v-20ca2990]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-20ca2990]{cursor:pointer}.pv-radio[data-v-bf2ac90c]:not(:disabled):focus-visible:checked,.pv-radio[data-v-bf2ac90c]:not(:disabled):focus-visible:indeterminate,.pv-radio[data-v-bf2ac90c]:not(:disabled):hover:checked,.pv-radio[data-v-bf2ac90c]:not(:disabled):hover:indeterminate{background-color:transparent}.pv-table-row-count{position:absolute;right:12px;top:6px;opacity:1;background-color:#f7f8f8;transition:opacity .3s ease}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{padding:8px 12px 8px 0;text-align:center;color:#89989b}.focus-button{opacity:0;transition:opacity .2s ease;position:absolute;right:0;top:50%;transform:translateY(-50%)}.option-label:hover .focus-button{opacity:1;background-color:#e8f2f4}.suggested-label[data-v-b3ce078a]:hover{color:#16696d}.ag-custom-header-cell[data-v-58d16af9]{height:100%;align-items:center}.ag-header-actions .ag-header-cell-menu-button[data-v-58d16af9]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-58d16af9]{opacity:1}.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-58d16af9]{opacity:1}.pv-table-row-number[data-v-686928ce]{padding:8px 12px 8px 0;text-align:center;color:#89989b}.pv-text-tertiary[data-v-cf726c87]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-6daa0cc5]{display:flex;align-items:center;position:relative;width:100%;background:#f7f8f8;padding:.25rem;border-radius:.5rem;border:2px solid transparent;font-size:.75rem;min-height:2.25rem;cursor:text}.pv-query-builder-input[data-v-6daa0cc5]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-6daa0cc5]{border:none;background:transparent;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-6daa0cc5]:focus-within{border:2px solid #36c5ba}.pv-table-overlay{position:absolute;z-index:2;background:#fff;width:100%;height:calc(100% - 40px);top:80px;pointer-events:none}.ag-header-cell-resize{border:none!important}.ag-row-group-leaf-indent{padding-left:7px;margin-left:0}.ag-custom-loading-cell{width:100%;height:40%;margin:15px;background-color:#ccc;border-radius:4px}.ag-group-value{width:100%}.ag-menu-option:hover{background-color:#f7f8f8}.ag-menu-option-shortcut{color:#89989b}.ag-menu-option:active{background-color:#e8f2f4}.ag-menu-option-text{font-family:Inter,sans-serif}.pv-text-tertiary[data-v-08e3ce8f]{color:#89989b}.pv-button-placeholder[data-v-08e3ce8f]{height:24px;width:24px}.pv-sort-option[data-v-08e3ce8f]{--flex-gap: 4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-08e3ce8f]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-08e3ce8f]{transition:background-color .2s ease}.pv-placeholder-dropzone[data-v-08e3ce8f]{padding:8px 4px;border-style:dashed!important;border-color:#e3e7ea!important;justify-content:center;align-items:center;transition:all .2s ease}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-08e3ce8f]{border-color:#16696d!important;background:#f0f9f9}.sort-divider-container[data-v-08e3ce8f]{display:flex}.sort-divider[data-v-08e3ce8f]{position:relative;border-top:1px solid #e3e7ea;margin:1rem 0;flex:1}.sort-divider[data-v-08e3ce8f]:after{content:attr(data-label);display:inline-block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;padding:0 .5em;font-size:inherit;white-space:nowrap}.pv-menu-nested[data-v-d7a9941d]:after{content:"›"}.pv-tooltip a[data-v-d7a9941d]{color:inherit}.pv-chart-option[data-v-d7a9941d]{min-width:150px;max-width:225px}.pv-chart-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.ag-charts-tooltip{background-color:#fffffff2}.ag-charts-floating-toolbar{display:none!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { defineComponent as Z, createElementBlock as x, openBlock as c, normalizeStyle as Se, normalizeClass as oe, ref as P, onMounted as Je, onUnmounted as ca, computed as b, createVNode as j, createCommentVNode as I, unref as q, Fragment as te, createElementVNode as O, createBlock as z, resolveDynamicComponent as We, isRef as Sn, toValue as wl, nextTick as wt, useTemplateRef as ft, renderSlot as ge, watch as ae, withDirectives as He, createTextVNode as Be, Teleport as Fn, withCtx as ce, getCurrentInstance as Yt, toDisplayString as Y, withModifiers as kn, shallowRef as da, getCurrentScope as xo, onScopeDispose as Co, shallowReadonly as Pt, mergeModels as Fe, useModel as xe, vShow as nl, renderList as $e, vModelText as ll, readonly as wo, mergeProps as Ye, normalizeProps as Rt, resolveComponent as So, vModelDynamic as Fo, vModelCheckbox as ko, inject as ve, onBeforeUnmount as $o, createSlots as Kn, guardReactiveProps as Gn, onBeforeMount as al, provide as he } from "vue";
|
|
3
3
|
import { AgCharts as To } from "ag-charts-vue3";
|
|
4
4
|
import { LicenseManager as Po } from "ag-charts-enterprise";
|
|
5
5
|
import { AgGridVue as Oo } from "ag-grid-vue3";
|
|
6
|
-
import { themeQuartz as pa, ModuleRegistry as Mo, EventApiModule as Do, CellStyleModule as Ro, ClientSideRowModelModule as Lo, ColumnApiModule as Vo, CsvExportModule as
|
|
6
|
+
import { themeQuartz as pa, ModuleRegistry as Mo, EventApiModule as Do, CellStyleModule as Ro, ClientSideRowModelModule as Lo, ColumnApiModule as Vo, CsvExportModule as Io, GridStateModule as Ao, TextFilterModule as Bo, RowStyleModule as Eo, PaginationModule as No, QuickFilterModule as Go, TextEditorModule as zo, UndoRedoEditModule as Ho, CheckboxEditorModule as qo, SelectEditorModule as _o, LargeTextEditorModule as Ko, NumberEditorModule as jo, DateEditorModule as Uo, CustomEditorModule as Wo } from "ag-grid-community";
|
|
7
7
|
import { LicenseManager as Yo, CellSelectionModule as Qo, ClientSideRowModelApiModule as Zo, ClipboardModule as Xo, ColumnMenuModule as Jo, ContextMenuModule as er, MultiFilterModule as tr, ServerSideRowModelModule as nr, ServerSideRowModelApiModule as lr, SetFilterModule as ar, RenderApiModule as or, RowGroupingModule as rr, RowSelectionModule as sr, TooltipModule as ir, RichSelectModule as ur, ValidationModule as cr } from "ag-grid-enterprise";
|
|
8
8
|
import dr from "papaparse";
|
|
9
|
-
import { defaultDocument as pr, tryOnMounted as vr, tryOnScopeDispose as fr, unrefElement as mr, useElementHover as
|
|
9
|
+
import { defaultDocument as pr, tryOnMounted as vr, tryOnScopeDispose as fr, unrefElement as mr, useElementHover as Sl, useElementBounding as hr, useDebounceFn as Fl, onKeyStroke as tn, onClickOutside as yr, useToggle as va, toRef as gr, watchDebounced as Qt } from "@vueuse/core";
|
|
10
10
|
import fa from "sortablejs";
|
|
11
11
|
import { vOnClickOutside as $n } from "@vueuse/components";
|
|
12
12
|
import ol from "dayjs";
|
|
13
13
|
import "primevue";
|
|
14
14
|
import "vuedraggable";
|
|
15
15
|
import { isEqual as rl } from "es-toolkit";
|
|
16
|
-
const br = ["#009999CC", "#16696D", "#FF7A4E", "#C97AEB", "#F2AD0D", "#7C8AF4", "#95C54C"], Kt = "#7C8AF4", xr = "#FFFFFF", Cr = 12, kl = 4,
|
|
16
|
+
const br = ["#009999CC", "#16696D", "#FF7A4E", "#C97AEB", "#F2AD0D", "#7C8AF4", "#95C54C"], Kt = "#7C8AF4", xr = "#FFFFFF", Cr = 12, kl = 4, wr = {
|
|
17
17
|
common: {
|
|
18
18
|
title: {
|
|
19
19
|
enabled: !1
|
|
@@ -77,15 +77,15 @@ const br = ["#009999CC", "#16696D", "#FF7A4E", "#C97AEB", "#F2AD0D", "#7C8AF4",
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
},
|
|
80
|
+
}, Sr = {
|
|
81
81
|
fontFamily: "Inter, sans-serif",
|
|
82
82
|
chromeFontFamily: "Inter, sans-serif"
|
|
83
83
|
}, Fr = {
|
|
84
84
|
palette: {
|
|
85
85
|
fills: br
|
|
86
86
|
},
|
|
87
|
-
overrides:
|
|
88
|
-
params:
|
|
87
|
+
overrides: wr,
|
|
88
|
+
params: Sr
|
|
89
89
|
}, Tn = /* @__PURE__ */ Z({
|
|
90
90
|
__name: "PvSpinner",
|
|
91
91
|
props: {
|
|
@@ -107,7 +107,7 @@ const br = ["#009999CC", "#16696D", "#FF7A4E", "#C97AEB", "#F2AD0D", "#7C8AF4",
|
|
|
107
107
|
return (l, o) => (c(), x("div", {
|
|
108
108
|
"data-testid": "pv-spinner",
|
|
109
109
|
class: oe(n[e.variant]),
|
|
110
|
-
style:
|
|
110
|
+
style: Se({ "--size": t[e.size] })
|
|
111
111
|
}, null, 6));
|
|
112
112
|
}
|
|
113
113
|
});
|
|
@@ -202,7 +202,7 @@ function Dr(e, t) {
|
|
|
202
202
|
const Rr = { style: { position: "relative" } }, Lr = {
|
|
203
203
|
key: 0,
|
|
204
204
|
class: "pv-flex pv-chart-loading"
|
|
205
|
-
}, Vr = { class: "pv-scatter-quadrant pv-scatter-quadrant-top-left" },
|
|
205
|
+
}, Vr = { class: "pv-scatter-quadrant pv-scatter-quadrant-top-left" }, Ir = { class: "pv-scatter-quadrant-box" }, Ar = { class: "pv-scatter-quadrant pv-scatter-quadrant-top-right" }, Br = { class: "pv-scatter-quadrant-box" }, Er = { class: "pv-scatter-quadrant pv-scatter-quadrant-bottom-left" }, Nr = { class: "pv-scatter-quadrant-box" }, Gr = { class: "pv-scatter-quadrant pv-scatter-quadrant-bottom-right" }, zr = { class: "pv-scatter-quadrant-box" }, Hr = "Using_this_{AG_Charts}_Enterprise_key_{AG-087886}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Charts}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{9_May_2026}____[v3]_[02]_MTc3ODI4MTIwMDAwMA==b240799c3daa50107bb7f3adff911d8f", qr = /* @__PURE__ */ Z({
|
|
206
206
|
__name: "PvChart",
|
|
207
207
|
props: {
|
|
208
208
|
options: {},
|
|
@@ -221,13 +221,13 @@ const Rr = { style: { position: "relative" } }, Lr = {
|
|
|
221
221
|
if (!a.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
222
222
|
const C = a.value.$el;
|
|
223
223
|
if (!C) return;
|
|
224
|
-
const
|
|
225
|
-
if (!
|
|
226
|
-
const R =
|
|
224
|
+
const S = C.querySelector(".ag-charts-series-area");
|
|
225
|
+
if (!S) return;
|
|
226
|
+
const R = S.getBoundingClientRect(), T = C.getBoundingClientRect(), D = l.options.seriesArea?.padding || { top: 0, right: 0, bottom: 0, left: 0 }, M = typeof D == "number" ? D : D.top || 0, g = typeof D == "number" ? D : D.right || 0, F = typeof D == "number" ? D : D.bottom || 0, w = typeof D == "number" ? D : D.left || 0;
|
|
227
227
|
r.value = {
|
|
228
228
|
top: `${R.top - T.top - M}px`,
|
|
229
|
-
left: `${R.left - T.left -
|
|
230
|
-
width: `${R.width +
|
|
229
|
+
left: `${R.left - T.left - w}px`,
|
|
230
|
+
width: `${R.width + w + g}px`,
|
|
231
231
|
height: `${R.height + M + F}px`
|
|
232
232
|
};
|
|
233
233
|
}, i = {
|
|
@@ -240,14 +240,14 @@ const Rr = { style: { position: "relative" } }, Lr = {
|
|
|
240
240
|
}), ca(() => {
|
|
241
241
|
r.value = {};
|
|
242
242
|
});
|
|
243
|
-
const u = b(() => (k.value?.series || []).some((
|
|
243
|
+
const u = b(() => (k.value?.series || []).some((S) => S.type === "map-shape")), d = b(() => {
|
|
244
244
|
const C = k.value?.series || [];
|
|
245
|
-
let
|
|
245
|
+
let S = !1;
|
|
246
246
|
return C.forEach((R) => {
|
|
247
|
-
R.type === "bar" && R.direction === "horizontal" && (
|
|
248
|
-
}),
|
|
249
|
-
}), m = b(() => (k.value?.series || []).some((
|
|
250
|
-
const
|
|
247
|
+
R.type === "bar" && R.direction === "horizontal" && (S = !0);
|
|
248
|
+
}), S;
|
|
249
|
+
}), m = b(() => (k.value?.series || []).some((S) => S.type === "scatter")), p = (C) => {
|
|
250
|
+
const S = C.xKey || "", R = C.xName || C.datum[S], T = C.yKey, D = C.datum[T];
|
|
251
251
|
let M = String(R) || "";
|
|
252
252
|
const F = (k.value?.axes || []).find((ee) => ee.type === "category");
|
|
253
253
|
if (F && F.label && F.label.formatter && (M = F.label.formatter({ value: R, datum: C.datum }) || M), D == null || D === Ot)
|
|
@@ -255,30 +255,30 @@ const Rr = { style: { position: "relative" } }, Lr = {
|
|
|
255
255
|
heading: M,
|
|
256
256
|
data: []
|
|
257
257
|
};
|
|
258
|
-
let
|
|
258
|
+
let w = String(D) || "";
|
|
259
259
|
const N = k.value?.series?.find((ee) => ee.yKey === T);
|
|
260
260
|
if (N && N?.label?.formatter) {
|
|
261
261
|
const ee = N.label.formatter;
|
|
262
|
-
|
|
262
|
+
w = ee({ value: D, datum: C.datum }) || formattedValue;
|
|
263
263
|
}
|
|
264
264
|
return {
|
|
265
265
|
heading: M,
|
|
266
266
|
data: [
|
|
267
267
|
{
|
|
268
268
|
label: C.yName,
|
|
269
|
-
value:
|
|
269
|
+
value: w
|
|
270
270
|
// Must be a string per ag-charts API
|
|
271
271
|
}
|
|
272
272
|
]
|
|
273
273
|
};
|
|
274
|
-
}, v = (C,
|
|
274
|
+
}, v = (C, S) => {
|
|
275
275
|
if (!C || !l.translateNullValues) return C;
|
|
276
276
|
const R = /* @__PURE__ */ new Set();
|
|
277
277
|
C.forEach((M) => {
|
|
278
278
|
Object.keys(M).forEach((g) => R.add(g));
|
|
279
279
|
});
|
|
280
280
|
const T = [];
|
|
281
|
-
|
|
281
|
+
S?.forEach((M) => {
|
|
282
282
|
"yKey" in M && M.yKey && T.push(M.yKey);
|
|
283
283
|
});
|
|
284
284
|
const D = C.map((M) => {
|
|
@@ -290,8 +290,8 @@ const Rr = { style: { position: "relative" } }, Lr = {
|
|
|
290
290
|
return D?.every(
|
|
291
291
|
(M) => T.every((g) => !(g in M) || M[g] === Ot || M[g] === null)
|
|
292
292
|
) ? [] : D;
|
|
293
|
-
}, f = (C) => C && C.map((
|
|
294
|
-
const R = { ...
|
|
293
|
+
}, f = (C) => C && C.map((S) => {
|
|
294
|
+
const R = { ...S };
|
|
295
295
|
return R.tooltip || (R.tooltip = {}), R.tooltip.renderer || (R.tooltip.renderer = p), R.itemStyler || (R.itemStyler = (T) => {
|
|
296
296
|
if (T.yValue === Ot || T.yValue === null)
|
|
297
297
|
return { fill: "transparent", stroke: "transparent" };
|
|
@@ -336,28 +336,28 @@ const Rr = { style: { position: "relative" } }, Lr = {
|
|
|
336
336
|
width: C?.width,
|
|
337
337
|
height: C?.height
|
|
338
338
|
})
|
|
339
|
-
}), (C,
|
|
339
|
+
}), (C, S) => (c(), x("div", Rr, [
|
|
340
340
|
j(q(To), {
|
|
341
341
|
ref_key: "chartRef",
|
|
342
342
|
ref: a,
|
|
343
|
-
style:
|
|
343
|
+
style: Se([{ height: "100%" }, u.value ? "" : `min-height: ${e.minHeight}px`]),
|
|
344
344
|
options: k.value
|
|
345
345
|
}, null, 8, ["style", "options"]),
|
|
346
346
|
e.isLoading ? (c(), x("div", Lr, [
|
|
347
347
|
j(Tn, { size: "xl" })
|
|
348
|
-
])) :
|
|
348
|
+
])) : I("", !0),
|
|
349
349
|
m.value && e.customChartProps?.scatter ? (c(), x(te, { key: 1 }, [
|
|
350
350
|
e.customChartProps?.scatter?.quadrantRenderer ? (c(), x("div", {
|
|
351
351
|
key: 0,
|
|
352
352
|
class: "pv-scatter-overlay",
|
|
353
|
-
style:
|
|
353
|
+
style: Se(r.value)
|
|
354
354
|
}, [
|
|
355
355
|
O("div", Vr, [
|
|
356
|
-
O("div",
|
|
356
|
+
O("div", Ir, [
|
|
357
357
|
(c(), z(We(e.customChartProps.scatter.quadrantRenderer), { quadrant: "topLeft" }))
|
|
358
358
|
])
|
|
359
359
|
]),
|
|
360
|
-
O("div",
|
|
360
|
+
O("div", Ar, [
|
|
361
361
|
O("div", Br, [
|
|
362
362
|
(c(), z(We(e.customChartProps.scatter.quadrantRenderer), { quadrant: "topRight" }))
|
|
363
363
|
])
|
|
@@ -372,8 +372,8 @@ const Rr = { style: { position: "relative" } }, Lr = {
|
|
|
372
372
|
(c(), z(We(e.customChartProps.scatter.quadrantRenderer), { quadrant: "bottomRight" }))
|
|
373
373
|
])
|
|
374
374
|
])
|
|
375
|
-
], 4)) :
|
|
376
|
-
], 64)) :
|
|
375
|
+
], 4)) : I("", !0)
|
|
376
|
+
], 64)) : I("", !0)
|
|
377
377
|
]));
|
|
378
378
|
}
|
|
379
379
|
}), Ve = (e, t) => {
|
|
@@ -414,10 +414,10 @@ function jr(e) {
|
|
|
414
414
|
}
|
|
415
415
|
function Ur(e, t, n, l = null) {
|
|
416
416
|
l != null && (jr(l.item), Kr(l.from, l.item, t));
|
|
417
|
-
const o =
|
|
417
|
+
const o = Sn(e), a = o ? [...wl(e)] : wl(e);
|
|
418
418
|
if (n >= 0 && n < a.length) {
|
|
419
419
|
const r = a.splice(t, 1)[0];
|
|
420
|
-
|
|
420
|
+
wt(() => {
|
|
421
421
|
a.splice(n, 0, r), o && (e.value = a);
|
|
422
422
|
});
|
|
423
423
|
}
|
|
@@ -448,14 +448,14 @@ const Wr = ["data-align"], Yr = /* @__PURE__ */ Z({
|
|
|
448
448
|
class: "pv-popover",
|
|
449
449
|
"data-testid": "pv-popover",
|
|
450
450
|
"data-align": e.alignment,
|
|
451
|
-
style:
|
|
451
|
+
style: Se(e.cssCustomProperties)
|
|
452
452
|
}, [
|
|
453
453
|
e.isList ? (c(), x("ul", {
|
|
454
454
|
key: 0,
|
|
455
455
|
ref: "popoverList",
|
|
456
456
|
role: "list",
|
|
457
457
|
class: "pv-popover-list",
|
|
458
|
-
style:
|
|
458
|
+
style: Se(e.cssCustomListProperties)
|
|
459
459
|
}, [
|
|
460
460
|
ge(s.$slots, "default", {}, void 0, !0)
|
|
461
461
|
], 4)) : ge(s.$slots, "default", { key: 1 }, void 0, !0)
|
|
@@ -495,7 +495,7 @@ const Wr = ["data-align"], Yr = /* @__PURE__ */ Z({
|
|
|
495
495
|
t({
|
|
496
496
|
closeDropdown: v
|
|
497
497
|
}), ae(a, (C) => {
|
|
498
|
-
C ?
|
|
498
|
+
C ? wt(() => {
|
|
499
499
|
d(), o("dropdown-open");
|
|
500
500
|
}) : o("dropdown-closed");
|
|
501
501
|
});
|
|
@@ -508,7 +508,7 @@ const Wr = ["data-align"], Yr = /* @__PURE__ */ Z({
|
|
|
508
508
|
},
|
|
509
509
|
...l.popoverCssProperties
|
|
510
510
|
} : l.popoverCssProperties);
|
|
511
|
-
return (C,
|
|
511
|
+
return (C, S) => He((c(), x("div", Qr, [
|
|
512
512
|
O("button", {
|
|
513
513
|
ref_key: "triggerRef",
|
|
514
514
|
ref: r,
|
|
@@ -518,7 +518,7 @@ const Wr = ["data-align"], Yr = /* @__PURE__ */ Z({
|
|
|
518
518
|
disabled: e.disabled
|
|
519
519
|
}, [
|
|
520
520
|
ge(C.$slots, "trigger", {}, () => [
|
|
521
|
-
|
|
521
|
+
S[1] || (S[1] = Be("Open", -1))
|
|
522
522
|
], !0)
|
|
523
523
|
], 10, Zr),
|
|
524
524
|
(c(), z(Fn, {
|
|
@@ -533,11 +533,11 @@ const Wr = ["data-align"], Yr = /* @__PURE__ */ Z({
|
|
|
533
533
|
alignment: e.alignment,
|
|
534
534
|
isList: e.isList,
|
|
535
535
|
isSortable: e.isSortable,
|
|
536
|
-
onListOrderUpdated:
|
|
536
|
+
onListOrderUpdated: S[0] || (S[0] = (R) => C.$emit("list-order-updated", R))
|
|
537
537
|
}, {
|
|
538
538
|
default: ce(() => [
|
|
539
539
|
ge(C.$slots, "default", {}, () => [
|
|
540
|
-
e.isLoading ? (c(), x("span", Xr, "Loading...")) :
|
|
540
|
+
e.isLoading ? (c(), x("span", Xr, "Loading...")) : I("", !0)
|
|
541
541
|
], !0)
|
|
542
542
|
]),
|
|
543
543
|
_: 3
|
|
@@ -578,11 +578,11 @@ const ns = {
|
|
|
578
578
|
O("use", { "xlink:href": a.value }, null, 8, as)
|
|
579
579
|
], 2));
|
|
580
580
|
}
|
|
581
|
-
}),
|
|
581
|
+
}), wa = ["ghost"], $l = {
|
|
582
582
|
md: "pv-button-small",
|
|
583
583
|
lg: void 0,
|
|
584
584
|
xl: "pv-button-large"
|
|
585
|
-
},
|
|
585
|
+
}, Sa = (e) => e == null || !$l.hasOwnProperty(e) ? null : $l[e] || null, os = ["disabled"], rs = {
|
|
586
586
|
key: 1,
|
|
587
587
|
"data-testid": "pv-button-label"
|
|
588
588
|
}, ye = /* @__PURE__ */ Z({
|
|
@@ -600,8 +600,8 @@ const ns = {
|
|
|
600
600
|
setup(e) {
|
|
601
601
|
const t = e, n = b(() => {
|
|
602
602
|
const l = [];
|
|
603
|
-
t.inverse &&
|
|
604
|
-
const o =
|
|
603
|
+
t.inverse && wa.includes(t.variant) ? l.push(`pv-button-${t.variant}-inverse`) : l.push(`pv-button-${t.variant}`);
|
|
604
|
+
const o = Sa(t.size);
|
|
605
605
|
return o && l.push(o), l;
|
|
606
606
|
});
|
|
607
607
|
return (l, o) => (c(), x("button", {
|
|
@@ -618,13 +618,13 @@ const ns = {
|
|
|
618
618
|
key: 0,
|
|
619
619
|
name: e.leftIcon,
|
|
620
620
|
"data-testid": "pv-button-left-icon"
|
|
621
|
-
}, null, 8, ["name"])) :
|
|
622
|
-
e.label ? (c(), x("span", rs, Y(e.label), 1)) :
|
|
621
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
622
|
+
e.label ? (c(), x("span", rs, Y(e.label), 1)) : I("", !0),
|
|
623
623
|
e.rightIcon ? (c(), z(be, {
|
|
624
624
|
key: 2,
|
|
625
625
|
name: e.rightIcon,
|
|
626
626
|
"data-testid": "pv-button-right-icon"
|
|
627
|
-
}, null, 8, ["name"])) :
|
|
627
|
+
}, null, 8, ["name"])) : I("", !0)
|
|
628
628
|
], 64))
|
|
629
629
|
], 10, os));
|
|
630
630
|
}
|
|
@@ -690,7 +690,7 @@ const ns = {
|
|
|
690
690
|
"data-testid": "pv-counter-badge"
|
|
691
691
|
}, Y(l.value), 3));
|
|
692
692
|
}
|
|
693
|
-
}),
|
|
693
|
+
}), St = /* @__PURE__ */ Ve(cs, [["__scopeId", "data-v-fc3c1104"]]), ds = ["data-style"], ps = { class: "pv-truncate" }, jn = /* @__PURE__ */ Z({
|
|
694
694
|
__name: "PvTag",
|
|
695
695
|
props: {
|
|
696
696
|
size: { default: "md" },
|
|
@@ -733,7 +733,7 @@ const ns = {
|
|
|
733
733
|
"data-testid": "pv-tag-icon",
|
|
734
734
|
name: e.icon,
|
|
735
735
|
size: 12
|
|
736
|
-
}, null, 8, ["name"])) :
|
|
736
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
737
737
|
O("span", ps, Y(e.label), 1),
|
|
738
738
|
e.showClear ? (c(), z(be, {
|
|
739
739
|
key: 1,
|
|
@@ -741,7 +741,7 @@ const ns = {
|
|
|
741
741
|
size: 12,
|
|
742
742
|
name: "close",
|
|
743
743
|
onClick: a[0] || (a[0] = kn((r) => o.$emit("handle-close", e.label), ["stop"]))
|
|
744
|
-
})) :
|
|
744
|
+
})) : I("", !0)
|
|
745
745
|
], 10, ds));
|
|
746
746
|
}
|
|
747
747
|
}), Tl = Math.min, jt = Math.max, hn = Math.round, lt = (e) => ({
|
|
@@ -759,7 +759,7 @@ const ns = {
|
|
|
759
759
|
function ul(e, t) {
|
|
760
760
|
return typeof e == "function" ? e(t) : e;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function It(e) {
|
|
763
763
|
return e.split("-")[0];
|
|
764
764
|
}
|
|
765
765
|
function Pn(e) {
|
|
@@ -773,7 +773,7 @@ function Fa(e) {
|
|
|
773
773
|
}
|
|
774
774
|
const hs = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
775
775
|
function bt(e) {
|
|
776
|
-
return hs.has(
|
|
776
|
+
return hs.has(It(e)) ? "y" : "x";
|
|
777
777
|
}
|
|
778
778
|
function ka(e) {
|
|
779
779
|
return ms(bt(e));
|
|
@@ -804,15 +804,15 @@ function Cs(e, t, n) {
|
|
|
804
804
|
return [];
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function ws(e, t, n, l) {
|
|
808
808
|
const o = Pn(e);
|
|
809
|
-
let a = Cs(
|
|
809
|
+
let a = Cs(It(e), n === "start", l);
|
|
810
810
|
return o && (a = a.map((r) => r + "-" + o), t && (a = a.concat(a.map(Un)))), a;
|
|
811
811
|
}
|
|
812
812
|
function yn(e) {
|
|
813
813
|
return e.replace(/left|right|bottom|top/g, (t) => vs[t]);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function Ss(e) {
|
|
816
816
|
return {
|
|
817
817
|
top: 0,
|
|
818
818
|
right: 0,
|
|
@@ -822,7 +822,7 @@ function ws(e) {
|
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
824
|
function Fs(e) {
|
|
825
|
-
return typeof e != "number" ?
|
|
825
|
+
return typeof e != "number" ? Ss(e) : {
|
|
826
826
|
top: e,
|
|
827
827
|
right: e,
|
|
828
828
|
bottom: e,
|
|
@@ -852,7 +852,7 @@ function Ml(e, t, n) {
|
|
|
852
852
|
reference: l,
|
|
853
853
|
floating: o
|
|
854
854
|
} = e;
|
|
855
|
-
const a = bt(t), r = ka(t), s = Fa(r), i =
|
|
855
|
+
const a = bt(t), r = ka(t), s = Fa(r), i = It(t), u = a === "y", d = l.x + l.width / 2 - o.width / 2, m = l.y + l.height / 2 - o.height / 2, p = l[s] / 2 - o[s] / 2;
|
|
856
856
|
let v;
|
|
857
857
|
switch (i) {
|
|
858
858
|
case "top":
|
|
@@ -915,7 +915,7 @@ const ks = async (e, t, n) => {
|
|
|
915
915
|
name: k,
|
|
916
916
|
fn: C
|
|
917
917
|
} = s[h], {
|
|
918
|
-
x:
|
|
918
|
+
x: S,
|
|
919
919
|
y: R,
|
|
920
920
|
data: T,
|
|
921
921
|
reset: D
|
|
@@ -933,7 +933,7 @@ const ks = async (e, t, n) => {
|
|
|
933
933
|
floating: t
|
|
934
934
|
}
|
|
935
935
|
});
|
|
936
|
-
d =
|
|
936
|
+
d = S ?? d, m = R ?? m, v = {
|
|
937
937
|
...v,
|
|
938
938
|
[k]: {
|
|
939
939
|
...v[k],
|
|
@@ -977,7 +977,7 @@ async function $s(e, t) {
|
|
|
977
977
|
boundary: u,
|
|
978
978
|
rootBoundary: d,
|
|
979
979
|
strategy: i
|
|
980
|
-
})),
|
|
980
|
+
})), S = m === "floating" ? {
|
|
981
981
|
x: l,
|
|
982
982
|
y: o,
|
|
983
983
|
width: r.floating.width,
|
|
@@ -990,10 +990,10 @@ async function $s(e, t) {
|
|
|
990
990
|
y: 1
|
|
991
991
|
}, D = gn(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
992
992
|
elements: s,
|
|
993
|
-
rect:
|
|
993
|
+
rect: S,
|
|
994
994
|
offsetParent: R,
|
|
995
995
|
strategy: i
|
|
996
|
-
}) :
|
|
996
|
+
}) : S);
|
|
997
997
|
return {
|
|
998
998
|
top: (C.top - D.top + f.top) / T.y,
|
|
999
999
|
bottom: (D.bottom - C.bottom + f.bottom) / T.y,
|
|
@@ -1025,23 +1025,23 @@ const Ts = function(e) {
|
|
|
1025
1025
|
} = ul(e, t);
|
|
1026
1026
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
1027
1027
|
return {};
|
|
1028
|
-
const C =
|
|
1029
|
-
!p && M && D.push(...
|
|
1030
|
-
const g = [s, ...D], F = await $s(t, k),
|
|
1028
|
+
const C = It(o), S = bt(s), R = It(s) === s, T = await (i.isRTL == null ? void 0 : i.isRTL(u.floating)), D = p || (R || !h ? [yn(s)] : gs(s)), M = f !== "none";
|
|
1029
|
+
!p && M && D.push(...ws(s, h, f, T));
|
|
1030
|
+
const g = [s, ...D], F = await $s(t, k), w = [];
|
|
1031
1031
|
let E = ((l = a.flip) == null ? void 0 : l.overflows) || [];
|
|
1032
|
-
if (d &&
|
|
1032
|
+
if (d && w.push(F[C]), m) {
|
|
1033
1033
|
const U = ys(o, r, T);
|
|
1034
|
-
|
|
1034
|
+
w.push(F[U[0]], F[U[1]]);
|
|
1035
1035
|
}
|
|
1036
1036
|
if (E = [...E, {
|
|
1037
1037
|
placement: o,
|
|
1038
|
-
overflows:
|
|
1039
|
-
}], !
|
|
1038
|
+
overflows: w
|
|
1039
|
+
}], !w.every((U) => U <= 0)) {
|
|
1040
1040
|
var N, ee;
|
|
1041
1041
|
const U = (((N = a.flip) == null ? void 0 : N.index) || 0) + 1, pe = g[U];
|
|
1042
|
-
if (pe && (!(m === "alignment" ?
|
|
1042
|
+
if (pe && (!(m === "alignment" ? S !== bt(pe) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1043
1043
|
// overflows the main axis.
|
|
1044
|
-
E.every((H) => bt(H.placement) ===
|
|
1044
|
+
E.every((H) => bt(H.placement) === S ? H.overflows[0] > 0 : !0)))
|
|
1045
1045
|
return {
|
|
1046
1046
|
data: {
|
|
1047
1047
|
index: U,
|
|
@@ -1059,7 +1059,7 @@ const Ts = function(e) {
|
|
|
1059
1059
|
const G = (X = E.filter((H) => {
|
|
1060
1060
|
if (M) {
|
|
1061
1061
|
const B = bt(H.placement);
|
|
1062
|
-
return B ===
|
|
1062
|
+
return B === S || // Create a bias to the `y` side axis due to horizontal
|
|
1063
1063
|
// reading directions favoring greater width.
|
|
1064
1064
|
B === "y";
|
|
1065
1065
|
}
|
|
@@ -1088,7 +1088,7 @@ async function Os(e, t) {
|
|
|
1088
1088
|
placement: n,
|
|
1089
1089
|
platform: l,
|
|
1090
1090
|
elements: o
|
|
1091
|
-
} = e, a = await (l.isRTL == null ? void 0 : l.isRTL(o.floating)), r =
|
|
1091
|
+
} = e, a = await (l.isRTL == null ? void 0 : l.isRTL(o.floating)), r = It(n), s = Pn(n), i = bt(n) === "y", u = Ps.has(r) ? -1 : 1, d = a && i ? -1 : 1, m = ul(t, e);
|
|
1092
1092
|
let {
|
|
1093
1093
|
mainAxis: p,
|
|
1094
1094
|
crossAxis: v,
|
|
@@ -1183,14 +1183,14 @@ function Mn(e) {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
});
|
|
1185
1185
|
}
|
|
1186
|
-
const
|
|
1186
|
+
const Is = ["transform", "translate", "scale", "rotate", "perspective"], As = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Bs = ["paint", "layout", "strict", "content"];
|
|
1187
1187
|
function dl(e) {
|
|
1188
1188
|
const t = pl(), n = Ze(e) ? Xe(e) : e;
|
|
1189
|
-
return
|
|
1189
|
+
return Is.some((l) => n[l] ? n[l] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || As.some((l) => (n.willChange || "").includes(l)) || Bs.some((l) => (n.contain || "").includes(l));
|
|
1190
1190
|
}
|
|
1191
1191
|
function Es(e) {
|
|
1192
1192
|
let t = mt(e);
|
|
1193
|
-
for (; at(t) && !
|
|
1193
|
+
for (; at(t) && !At(t); ) {
|
|
1194
1194
|
if (dl(t))
|
|
1195
1195
|
return t;
|
|
1196
1196
|
if (Mn(t))
|
|
@@ -1203,7 +1203,7 @@ function pl() {
|
|
|
1203
1203
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1204
1204
|
}
|
|
1205
1205
|
const Ns = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
1206
|
-
function
|
|
1206
|
+
function At(e) {
|
|
1207
1207
|
return Ns.has(kt(e));
|
|
1208
1208
|
}
|
|
1209
1209
|
function Xe(e) {
|
|
@@ -1232,7 +1232,7 @@ function mt(e) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
function $a(e) {
|
|
1234
1234
|
const t = mt(e);
|
|
1235
|
-
return
|
|
1235
|
+
return At(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : at(t) && nn(t) ? t : $a(t);
|
|
1236
1236
|
}
|
|
1237
1237
|
function Ta(e, t, n) {
|
|
1238
1238
|
var l;
|
|
@@ -1293,7 +1293,7 @@ function Zt(e, t, n, l) {
|
|
|
1293
1293
|
const p = Ne(a), v = l && Ze(l) ? Ne(l) : l;
|
|
1294
1294
|
let f = p, h = Wn(f);
|
|
1295
1295
|
for (; h && l && v !== f; ) {
|
|
1296
|
-
const k = Lt(h), C = h.getBoundingClientRect(),
|
|
1296
|
+
const k = Lt(h), C = h.getBoundingClientRect(), S = Xe(h), R = C.left + (h.clientLeft + parseFloat(S.paddingLeft)) * k.x, T = C.top + (h.clientTop + parseFloat(S.paddingTop)) * k.y;
|
|
1297
1297
|
i *= k.x, u *= k.y, d *= k.x, m *= k.y, i += R, u += T, f = Ne(h), h = Wn(f);
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
@@ -1408,7 +1408,7 @@ function Ll(e, t, n) {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
function Ra(e, t) {
|
|
1410
1410
|
const n = mt(e);
|
|
1411
|
-
return n === t || !Ze(n) ||
|
|
1411
|
+
return n === t || !Ze(n) || At(n) ? !1 : Xe(n).position === "fixed" || Ra(n, t);
|
|
1412
1412
|
}
|
|
1413
1413
|
function Ws(e, t) {
|
|
1414
1414
|
const n = t.get(e);
|
|
@@ -1417,7 +1417,7 @@ function Ws(e, t) {
|
|
|
1417
1417
|
let l = Ta(e, []).filter((s) => Ze(s) && kt(s) !== "body"), o = null;
|
|
1418
1418
|
const a = Xe(e).position === "fixed";
|
|
1419
1419
|
let r = a ? mt(e) : e;
|
|
1420
|
-
for (; Ze(r) && !
|
|
1420
|
+
for (; Ze(r) && !At(r); ) {
|
|
1421
1421
|
const s = Xe(r), i = dl(r);
|
|
1422
1422
|
!i && s.position === "fixed" && (o = null), (a ? !i && !o : !i && s.position === "static" && !!o && js.has(o.position) || nn(r) && !i && Ra(e, r)) ? l = l.filter((d) => d !== r) : o = s, r = mt(r);
|
|
1423
1423
|
}
|
|
@@ -1492,7 +1492,7 @@ function La(e, t) {
|
|
|
1492
1492
|
return n;
|
|
1493
1493
|
if (!at(e)) {
|
|
1494
1494
|
let o = mt(e);
|
|
1495
|
-
for (; o && !
|
|
1495
|
+
for (; o && !At(o); ) {
|
|
1496
1496
|
if (Ze(o) && !zn(o))
|
|
1497
1497
|
return o;
|
|
1498
1498
|
o = mt(o);
|
|
@@ -1502,7 +1502,7 @@ function La(e, t) {
|
|
|
1502
1502
|
let l = Vl(e, t);
|
|
1503
1503
|
for (; l && Ls(l) && zn(l); )
|
|
1504
1504
|
l = Vl(l, t);
|
|
1505
|
-
return l &&
|
|
1505
|
+
return l && At(l) && zn(l) && !dl(l) ? n : l || Es(e) || n;
|
|
1506
1506
|
}
|
|
1507
1507
|
const Xs = async function(e) {
|
|
1508
1508
|
const t = this.getOffsetParent || La, n = this.getDimensions, l = await n(e.floating);
|
|
@@ -1546,7 +1546,7 @@ const ei = {
|
|
|
1546
1546
|
function ai(e) {
|
|
1547
1547
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function Il(e) {
|
|
1550
1550
|
if (ai(e)) {
|
|
1551
1551
|
const t = e.$el;
|
|
1552
1552
|
return cl(t) && kt(t) === "#comment" ? null : t;
|
|
@@ -1559,7 +1559,7 @@ function zt(e) {
|
|
|
1559
1559
|
function Va(e) {
|
|
1560
1560
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Al(e, t) {
|
|
1563
1563
|
const n = Va(e);
|
|
1564
1564
|
return Math.round(t * n) / n;
|
|
1565
1565
|
}
|
|
@@ -1577,7 +1577,7 @@ function oi(e, t, n) {
|
|
|
1577
1577
|
}), i = b(() => {
|
|
1578
1578
|
var g;
|
|
1579
1579
|
return (g = zt(n.transform)) != null ? g : !0;
|
|
1580
|
-
}), u = b(() =>
|
|
1580
|
+
}), u = b(() => Il(e.value)), d = b(() => Il(t.value)), m = P(0), p = P(0), v = P(s.value), f = P(r.value), h = da({}), k = P(!1), C = b(() => {
|
|
1581
1581
|
const g = {
|
|
1582
1582
|
position: v.value,
|
|
1583
1583
|
left: "0",
|
|
@@ -1585,20 +1585,20 @@ function oi(e, t, n) {
|
|
|
1585
1585
|
};
|
|
1586
1586
|
if (!d.value)
|
|
1587
1587
|
return g;
|
|
1588
|
-
const F =
|
|
1588
|
+
const F = Al(d.value, m.value), w = Al(d.value, p.value);
|
|
1589
1589
|
return i.value ? {
|
|
1590
1590
|
...g,
|
|
1591
|
-
transform: "translate(" + F + "px, " +
|
|
1591
|
+
transform: "translate(" + F + "px, " + w + "px)",
|
|
1592
1592
|
...Va(d.value) >= 1.5 && {
|
|
1593
1593
|
willChange: "transform"
|
|
1594
1594
|
}
|
|
1595
1595
|
} : {
|
|
1596
1596
|
position: v.value,
|
|
1597
1597
|
left: F + "px",
|
|
1598
|
-
top:
|
|
1598
|
+
top: w + "px"
|
|
1599
1599
|
};
|
|
1600
1600
|
});
|
|
1601
|
-
let
|
|
1601
|
+
let S;
|
|
1602
1602
|
function R() {
|
|
1603
1603
|
if (u.value == null || d.value == null)
|
|
1604
1604
|
return;
|
|
@@ -1612,7 +1612,7 @@ function oi(e, t, n) {
|
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
1614
1614
|
function T() {
|
|
1615
|
-
typeof
|
|
1615
|
+
typeof S == "function" && (S(), S = void 0);
|
|
1616
1616
|
}
|
|
1617
1617
|
function D() {
|
|
1618
1618
|
if (T(), l === void 0) {
|
|
@@ -1620,7 +1620,7 @@ function oi(e, t, n) {
|
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
1622
|
if (u.value != null && d.value != null) {
|
|
1623
|
-
|
|
1623
|
+
S = l(u.value, d.value, R);
|
|
1624
1624
|
return;
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
@@ -1644,7 +1644,7 @@ function oi(e, t, n) {
|
|
|
1644
1644
|
update: R
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
|
-
const ri = { style: { width: "fit-content" } },
|
|
1647
|
+
const ri = { style: { width: "fit-content" } }, Ia = /* @__PURE__ */ Z({
|
|
1648
1648
|
__name: "PvPopoverV2",
|
|
1649
1649
|
props: /* @__PURE__ */ Fe({
|
|
1650
1650
|
disableAutoPlacement: { type: Boolean, default: !1 },
|
|
@@ -1664,7 +1664,7 @@ const ri = { style: { width: "fit-content" } }, Aa = /* @__PURE__ */ Z({
|
|
|
1664
1664
|
}),
|
|
1665
1665
|
emits: ["update:modelValue"],
|
|
1666
1666
|
setup(e) {
|
|
1667
|
-
const t = e, n = xe(e, "modelValue"), l = P(null), o = P(null), a = P(null), r =
|
|
1667
|
+
const t = e, n = xe(e, "modelValue"), l = P(null), o = P(null), a = P(null), r = Sl(l), s = Sl(a), i = {
|
|
1668
1668
|
"top-center": "top",
|
|
1669
1669
|
"bottom-center": "bottom",
|
|
1670
1670
|
"center-left": "left",
|
|
@@ -1705,7 +1705,7 @@ const ri = { style: { width: "fit-content" } }, Aa = /* @__PURE__ */ Z({
|
|
|
1705
1705
|
() => t.delay
|
|
1706
1706
|
), k = b(() => t.showOnHover ? t.disableInteractive ? r.value : r.value || s.value : !1), C = () => {
|
|
1707
1707
|
t.showOnHover || h(!n.value);
|
|
1708
|
-
},
|
|
1708
|
+
}, S = () => {
|
|
1709
1709
|
t.disableClickOutsideToClose || h(!1);
|
|
1710
1710
|
};
|
|
1711
1711
|
return ae(k, (R) => {
|
|
@@ -1727,15 +1727,15 @@ const ri = { style: { width: "fit-content" } }, Aa = /* @__PURE__ */ Z({
|
|
|
1727
1727
|
class: "pv-floating",
|
|
1728
1728
|
ref_key: "floating",
|
|
1729
1729
|
ref: a,
|
|
1730
|
-
style:
|
|
1730
|
+
style: Se(f.value)
|
|
1731
1731
|
}, [
|
|
1732
1732
|
ge(R.$slots, "content")
|
|
1733
1733
|
], 4), [
|
|
1734
1734
|
[nl, n.value]
|
|
1735
1735
|
])
|
|
1736
|
-
], 8, ["to", "disabled"])) :
|
|
1736
|
+
], 8, ["to", "disabled"])) : I("", !0)
|
|
1737
1737
|
])), [
|
|
1738
|
-
[q($n), [
|
|
1738
|
+
[q($n), [S, { ignore: [".pv-floating"] }]]
|
|
1739
1739
|
]);
|
|
1740
1740
|
}
|
|
1741
1741
|
}), si = ["onClick", "data-active"], ii = /* @__PURE__ */ Z({
|
|
@@ -1769,14 +1769,14 @@ const ri = { style: { width: "fit-content" } }, Aa = /* @__PURE__ */ Z({
|
|
|
1769
1769
|
a.iconPosition == "left" && a.icon ? (c(), z(be, {
|
|
1770
1770
|
key: 0,
|
|
1771
1771
|
name: a.icon
|
|
1772
|
-
}, null, 8, ["name"])) :
|
|
1772
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
1773
1773
|
a.label ? (c(), x(te, { key: 1 }, [
|
|
1774
1774
|
Be(Y(a.label), 1)
|
|
1775
|
-
], 64)) :
|
|
1775
|
+
], 64)) : I("", !0),
|
|
1776
1776
|
a.iconPosition == "right" && a.icon ? (c(), z(be, {
|
|
1777
1777
|
key: 2,
|
|
1778
1778
|
name: a.icon
|
|
1779
|
-
}, null, 8, ["name"])) :
|
|
1779
|
+
}, null, 8, ["name"])) : I("", !0)
|
|
1780
1780
|
], 8, si))), 128))
|
|
1781
1781
|
], 2));
|
|
1782
1782
|
}
|
|
@@ -1798,7 +1798,7 @@ function pi(e) {
|
|
|
1798
1798
|
const vi = {
|
|
1799
1799
|
class: "pv-flex",
|
|
1800
1800
|
"data-testid": "pv-company-logo"
|
|
1801
|
-
}, fi = ["src"],
|
|
1801
|
+
}, fi = ["src"], Aa = /* @__PURE__ */ Z({
|
|
1802
1802
|
__name: "PvCompanyLogo",
|
|
1803
1803
|
props: {
|
|
1804
1804
|
basePath: { default: "https://static-assets.turquoise.health/shared-logos/prd/payers" },
|
|
@@ -1820,7 +1820,7 @@ const vi = {
|
|
|
1820
1820
|
n.value ? (c(), x("div", {
|
|
1821
1821
|
key: 0,
|
|
1822
1822
|
class: oe(o.value),
|
|
1823
|
-
style:
|
|
1823
|
+
style: Se(a.value)
|
|
1824
1824
|
}, [
|
|
1825
1825
|
O("img", {
|
|
1826
1826
|
src: s.value,
|
|
@@ -1877,18 +1877,18 @@ const vi = {
|
|
|
1877
1877
|
O("div", hi, [
|
|
1878
1878
|
O("div", yi, [
|
|
1879
1879
|
O("span", gi, Y(e.header), 1),
|
|
1880
|
-
e.subheader ? (c(), x("span", bi, Y(e.subheader), 1)) :
|
|
1880
|
+
e.subheader ? (c(), x("span", bi, Y(e.subheader), 1)) : I("", !0)
|
|
1881
1881
|
]),
|
|
1882
1882
|
ge(a.$slots, "body")
|
|
1883
1883
|
]),
|
|
1884
|
-
e.hideFooter ?
|
|
1884
|
+
e.hideFooter ? I("", !0) : (c(), x("div", xi, [
|
|
1885
1885
|
ge(a.$slots, "footer")
|
|
1886
1886
|
]))
|
|
1887
1887
|
], 40, mi));
|
|
1888
1888
|
}
|
|
1889
1889
|
});
|
|
1890
1890
|
var pn = /* @__PURE__ */ ((e) => (e.Vertical = "Vertical", e.Horizontal = "Horizontal", e))(pn || {}), qt = /* @__PURE__ */ ((e) => (e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e))(qt || {});
|
|
1891
|
-
const
|
|
1891
|
+
const wi = ["title"], Si = ["title"], Fi = { class: "pv-flex" };
|
|
1892
1892
|
qt.Primary, pn.Horizontal;
|
|
1893
1893
|
const ki = ["data-style", "disabled", "title"], $i = { class: "pv-truncate" }, Ti = /* @__PURE__ */ Z({
|
|
1894
1894
|
__name: "PvSuggestionTag",
|
|
@@ -1925,7 +1925,7 @@ const ki = ["data-style", "disabled", "title"], $i = { class: "pv-truncate" }, T
|
|
|
1925
1925
|
"data-testid": "pv-suggestion-tag-icon",
|
|
1926
1926
|
name: "expand",
|
|
1927
1927
|
size: 12
|
|
1928
|
-
})) :
|
|
1928
|
+
})) : I("", !0),
|
|
1929
1929
|
O("span", $i, Y(e.label), 1)
|
|
1930
1930
|
], 10, ki));
|
|
1931
1931
|
}
|
|
@@ -1967,7 +1967,7 @@ const ki = ["data-style", "disabled", "title"], $i = { class: "pv-truncate" }, T
|
|
|
1967
1967
|
}, null, 10, Oi), [
|
|
1968
1968
|
[ll, o.value]
|
|
1969
1969
|
]),
|
|
1970
|
-
e.displayShortcut ? (c(), x("kbd", Mi, Y(Bl))) :
|
|
1970
|
+
e.displayShortcut ? (c(), x("kbd", Mi, Y(Bl))) : I("", !0)
|
|
1971
1971
|
]));
|
|
1972
1972
|
}
|
|
1973
1973
|
});
|
|
@@ -2015,7 +2015,7 @@ function Li() {
|
|
|
2015
2015
|
function Vi(e, t = "", n) {
|
|
2016
2016
|
Ba(e) && n !== null && n !== void 0 && e.setAttribute(t, n);
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function Ii() {
|
|
2019
2019
|
let e = /* @__PURE__ */ new Map();
|
|
2020
2020
|
return { on(t, n) {
|
|
2021
2021
|
let l = e.get(t);
|
|
@@ -2035,7 +2035,7 @@ function Ai() {
|
|
|
2035
2035
|
function vl(e) {
|
|
2036
2036
|
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2038
|
+
function Ai(e) {
|
|
2039
2039
|
return typeof e == "function" && "call" in e && "apply" in e;
|
|
2040
2040
|
}
|
|
2041
2041
|
function Ce(e) {
|
|
@@ -2045,7 +2045,7 @@ function Ut(e, t = !0) {
|
|
|
2045
2045
|
return e instanceof Object && e.constructor === Object && (t || Object.keys(e).length !== 0);
|
|
2046
2046
|
}
|
|
2047
2047
|
function vt(e, ...t) {
|
|
2048
|
-
return
|
|
2048
|
+
return Ai(e) ? e(...t) : e;
|
|
2049
2049
|
}
|
|
2050
2050
|
function Bt(e, t = !0) {
|
|
2051
2051
|
return typeof e == "string" && (t || e !== "");
|
|
@@ -2075,7 +2075,7 @@ var Ei = Object.defineProperty, Ni = Object.defineProperties, Gi = Object.getOwn
|
|
|
2075
2075
|
for (var l in e) Na.call(e, l) && t.indexOf(l) < 0 && (n[l] = e[l]);
|
|
2076
2076
|
if (e != null && bn) for (var l of bn(e)) t.indexOf(l) < 0 && Ga.call(e, l) && (n[l] = e[l]);
|
|
2077
2077
|
return n;
|
|
2078
|
-
}, zi =
|
|
2078
|
+
}, zi = Ii(), gt = zi, Xt = /{([^}]*)}/g, za = /(\d+\s+[\+\-\*\/]\s+\d+)/g, Ha = /var\([^)]+\)/g;
|
|
2079
2079
|
function Nl(e) {
|
|
2080
2080
|
return Bt(e) ? e.replace(/[A-Z]/g, (t, n) => n === 0 ? t : "." + t.toLowerCase()).toLowerCase() : e;
|
|
2081
2081
|
}
|
|
@@ -2176,8 +2176,8 @@ function Ui(e, t = {}) {
|
|
|
2176
2176
|
else {
|
|
2177
2177
|
let k = qa(h), C = _a(f, h, l, [a]);
|
|
2178
2178
|
Ki(s, k, C);
|
|
2179
|
-
let
|
|
2180
|
-
l &&
|
|
2179
|
+
let S = h;
|
|
2180
|
+
l && S.startsWith(l + "-") && (S = S.slice(l.length + 1)), r.push(S.replace(/-/g, "."));
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
2183
|
}
|
|
@@ -2204,21 +2204,21 @@ var Ke = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
2204
2204
|
return Ui(e, { prefix: t?.prefix });
|
|
2205
2205
|
}, getCommon({ name: e = "", theme: t = {}, params: n, set: l, defaults: o }) {
|
|
2206
2206
|
var a, r, s, i, u, d, m;
|
|
2207
|
-
let { preset: p, options: v } = t, f, h, k, C,
|
|
2207
|
+
let { preset: p, options: v } = t, f, h, k, C, S, R, T;
|
|
2208
2208
|
if (Ce(p) && v.transform !== "strict") {
|
|
2209
|
-
let { primitive: D, semantic: M, extend: g } = p, F = M || {}, { colorScheme:
|
|
2209
|
+
let { primitive: D, semantic: M, extend: g } = p, F = M || {}, { colorScheme: w } = F, E = ut(F, ["colorScheme"]), N = g || {}, { colorScheme: ee } = N, X = ut(N, ["colorScheme"]), U = w || {}, { dark: pe } = U, me = ut(U, ["dark"]), G = ee || {}, { dark: H } = G, B = ut(G, ["dark"]), re = Ce(D) ? this._toVariables({ primitive: D }, v) : {}, de = Ce(E) ? this._toVariables({ semantic: E }, v) : {}, se = Ce(me) ? this._toVariables({ light: me }, v) : {}, J = Ce(pe) ? this._toVariables({ dark: pe }, v) : {}, fe = Ce(X) ? this._toVariables({ semantic: X }, v) : {}, Te = Ce(B) ? this._toVariables({ light: B }, v) : {}, Ge = Ce(H) ? this._toVariables({ dark: H }, v) : {}, [Oe, ot] = [(a = re.declarations) != null ? a : "", re.tokens], [qe, et] = [(r = de.declarations) != null ? r : "", de.tokens || []], [_e, Ie] = [(s = se.declarations) != null ? s : "", se.tokens || []], [ht, dt] = [(i = J.declarations) != null ? i : "", J.tokens || []], [tt, Me] = [(u = fe.declarations) != null ? u : "", fe.tokens || []], [pt, rt] = [(d = Te.declarations) != null ? d : "", Te.tokens || []], [st, yt] = [(m = Ge.declarations) != null ? m : "", Ge.tokens || []];
|
|
2210
2210
|
f = this.transformCSS(e, Oe, "light", "variable", v, l, o), h = ot;
|
|
2211
2211
|
let K = this.transformCSS(e, `${qe}${_e}`, "light", "variable", v, l, o), Q = this.transformCSS(e, `${ht}`, "dark", "variable", v, l, o);
|
|
2212
|
-
k = `${K}${Q}`, C = [.../* @__PURE__ */ new Set([...et, ...
|
|
2212
|
+
k = `${K}${Q}`, C = [.../* @__PURE__ */ new Set([...et, ...Ie, ...dt])];
|
|
2213
2213
|
let ne = this.transformCSS(e, `${tt}${pt}color-scheme:light`, "light", "variable", v, l, o), ze = this.transformCSS(e, `${st}color-scheme:dark`, "dark", "variable", v, l, o);
|
|
2214
|
-
|
|
2214
|
+
S = `${ne}${ze}`, R = [.../* @__PURE__ */ new Set([...Me, ...rt, ...yt])], T = vt(p.css, { dt: Ct });
|
|
2215
2215
|
}
|
|
2216
|
-
return { primitive: { css: f, tokens: h }, semantic: { css: k, tokens: C }, global: { css:
|
|
2216
|
+
return { primitive: { css: f, tokens: h }, semantic: { css: k, tokens: C }, global: { css: S, tokens: R }, style: T };
|
|
2217
2217
|
}, getPreset({ name: e = "", preset: t = {}, options: n, params: l, set: o, defaults: a, selector: r }) {
|
|
2218
2218
|
var s, i, u;
|
|
2219
2219
|
let d, m, p;
|
|
2220
2220
|
if (Ce(t) && n.transform !== "strict") {
|
|
2221
|
-
let v = e.replace("-directive", ""), f = t, { colorScheme: h, extend: k, css: C } = f,
|
|
2221
|
+
let v = e.replace("-directive", ""), f = t, { colorScheme: h, extend: k, css: C } = f, S = ut(f, ["colorScheme", "extend", "css"]), R = k || {}, { colorScheme: T } = R, D = ut(R, ["colorScheme"]), M = h || {}, { dark: g } = M, F = ut(M, ["dark"]), w = T || {}, { dark: E } = w, N = ut(w, ["dark"]), ee = Ce(S) ? this._toVariables({ [v]: je(je({}, S), D) }, n) : {}, X = Ce(F) ? this._toVariables({ [v]: je(je({}, F), N) }, n) : {}, U = Ce(g) ? this._toVariables({ [v]: je(je({}, g), E) }, n) : {}, [pe, me] = [(s = ee.declarations) != null ? s : "", ee.tokens || []], [G, H] = [(i = X.declarations) != null ? i : "", X.tokens || []], [B, re] = [(u = U.declarations) != null ? u : "", U.tokens || []], de = this.transformCSS(v, `${pe}${G}`, "light", "variable", n, o, a, r), se = this.transformCSS(v, B, "dark", "variable", n, o, a, r);
|
|
2222
2222
|
d = `${de}${se}`, m = [.../* @__PURE__ */ new Set([...me, ...H, ...re])], p = vt(C, { dt: Ct });
|
|
2223
2223
|
}
|
|
2224
2224
|
return { css: d, tokens: m, style: p };
|
|
@@ -2273,8 +2273,8 @@ var Ke = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
2273
2273
|
Ut(m) ? r(m, p, v) : (o[p] || (o[p] = { paths: [], computed: (f, h = {}, k = []) => {
|
|
2274
2274
|
if (o[p].paths.length === 1) return o[p].paths[0].computed(o[p].paths[0].scheme, h.binding, k);
|
|
2275
2275
|
if (f && f !== "none") for (let C = 0; C < o[p].paths.length; C++) {
|
|
2276
|
-
let
|
|
2277
|
-
if (
|
|
2276
|
+
let S = o[p].paths[C];
|
|
2277
|
+
if (S.scheme === f) return S.computed(f, h.binding, k);
|
|
2278
2278
|
}
|
|
2279
2279
|
return o[p].paths.map((C) => C.computed(C.scheme, h[C.scheme], k));
|
|
2280
2280
|
} }), o[p].paths.push({ path: v, value: m, scheme: v.includes("colorScheme.light") ? "light" : v.includes("colorScheme.dark") ? "dark" : "none", computed: a, tokens: o }));
|
|
@@ -2542,11 +2542,11 @@ function Zi(e, t) {
|
|
|
2542
2542
|
}
|
|
2543
2543
|
function Xi(e) {
|
|
2544
2544
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
2545
|
-
Yt() && Yt().components ? Je(e) : t ? e() :
|
|
2545
|
+
Yt() && Yt().components ? Je(e) : t ? e() : wt(e);
|
|
2546
2546
|
}
|
|
2547
2547
|
var Ji = 0;
|
|
2548
2548
|
function eu(e) {
|
|
2549
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = P(!1), l = P(e), o = P(null), a = Li() ? window.document : void 0, r = t.document, s = r === void 0 ? a : r, i = t.immediate, u = i === void 0 ? !0 : i, d = t.manual, m = d === void 0 ? !1 : d, p = t.name, v = p === void 0 ? "style_".concat(++Ji) : p, f = t.id, h = f === void 0 ? void 0 : f, k = t.media, C = k === void 0 ? void 0 : k,
|
|
2549
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = P(!1), l = P(e), o = P(null), a = Li() ? window.document : void 0, r = t.document, s = r === void 0 ? a : r, i = t.immediate, u = i === void 0 ? !0 : i, d = t.manual, m = d === void 0 ? !1 : d, p = t.name, v = p === void 0 ? "style_".concat(++Ji) : p, f = t.id, h = f === void 0 ? void 0 : f, k = t.media, C = k === void 0 ? void 0 : k, S = t.nonce, R = S === void 0 ? void 0 : S, T = t.first, D = T === void 0 ? !1 : T, M = t.onMounted, g = M === void 0 ? void 0 : M, F = t.onUpdated, w = F === void 0 ? void 0 : F, E = t.onLoad, N = E === void 0 ? void 0 : E, ee = t.props, X = ee === void 0 ? {} : ee, U = function() {
|
|
2550
2550
|
}, pe = function(H) {
|
|
2551
2551
|
var B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2552
2552
|
if (s) {
|
|
@@ -2561,7 +2561,7 @@ function eu(e) {
|
|
|
2561
2561
|
name: de
|
|
2562
2562
|
});
|
|
2563
2563
|
}, g?.(de)), !n.value && (U = ae(l, function(fe) {
|
|
2564
|
-
o.value.textContent = fe,
|
|
2564
|
+
o.value.textContent = fe, w?.(de);
|
|
2565
2565
|
}, {
|
|
2566
2566
|
immediate: !0
|
|
2567
2567
|
}), n.value = !0);
|
|
@@ -2576,7 +2576,7 @@ function eu(e) {
|
|
|
2576
2576
|
css: l,
|
|
2577
2577
|
unload: me,
|
|
2578
2578
|
load: pe,
|
|
2579
|
-
isLoaded:
|
|
2579
|
+
isLoaded: wo(n)
|
|
2580
2580
|
};
|
|
2581
2581
|
}
|
|
2582
2582
|
function en(e) {
|
|
@@ -2811,15 +2811,15 @@ function pu() {
|
|
|
2811
2811
|
D === void 0 && (D = "");
|
|
2812
2812
|
var M = D.match(l);
|
|
2813
2813
|
if (!M) return null;
|
|
2814
|
-
var g = ("" + M[0]).match(o) || ["-", 0, 0], F = g[0],
|
|
2815
|
-
return
|
|
2814
|
+
var g = ("" + M[0]).match(o) || ["-", 0, 0], F = g[0], w = 60 * +g[1] + +g[2];
|
|
2815
|
+
return w === 0 ? 0 : F === "+" ? w : -w;
|
|
2816
2816
|
})(h), h === null)) return this;
|
|
2817
|
-
var
|
|
2818
|
-
if (
|
|
2817
|
+
var S = Math.abs(h) <= 16 ? 60 * h : h;
|
|
2818
|
+
if (S === 0) return this.utc(k);
|
|
2819
2819
|
var R = this.clone();
|
|
2820
|
-
if (k) return R.$offset =
|
|
2820
|
+
if (k) return R.$offset = S, R.$u = !1, R;
|
|
2821
2821
|
var T = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
2822
|
-
return (R = this.local().add(
|
|
2822
|
+
return (R = this.local().add(S + T, n)).$offset = S, R.$x.$localOffset = T, R;
|
|
2823
2823
|
};
|
|
2824
2824
|
var p = i.format;
|
|
2825
2825
|
i.format = function(h) {
|
|
@@ -2842,8 +2842,8 @@ function pu() {
|
|
|
2842
2842
|
var f = i.diff;
|
|
2843
2843
|
i.diff = function(h, k, C) {
|
|
2844
2844
|
if (h && this.$u === h.$u) return f.call(this, h, k, C);
|
|
2845
|
-
var
|
|
2846
|
-
return f.call(
|
|
2845
|
+
var S = this.local(), R = s(h).local();
|
|
2846
|
+
return f.call(S, R, k, C);
|
|
2847
2847
|
};
|
|
2848
2848
|
};
|
|
2849
2849
|
}));
|
|
@@ -2861,15 +2861,15 @@ function hu() {
|
|
|
2861
2861
|
return function(o, a, r) {
|
|
2862
2862
|
var s, i = function(p, v, f) {
|
|
2863
2863
|
f === void 0 && (f = {});
|
|
2864
|
-
var h = new Date(p), k = (function(C,
|
|
2865
|
-
|
|
2866
|
-
var R =
|
|
2864
|
+
var h = new Date(p), k = (function(C, S) {
|
|
2865
|
+
S === void 0 && (S = {});
|
|
2866
|
+
var R = S.timeZoneName || "short", T = C + "|" + R, D = l[T];
|
|
2867
2867
|
return D || (D = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: C, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: R }), l[T] = D), D;
|
|
2868
2868
|
})(v, f);
|
|
2869
2869
|
return k.formatToParts(h);
|
|
2870
2870
|
}, u = function(p, v) {
|
|
2871
2871
|
for (var f = i(p, v), h = [], k = 0; k < f.length; k += 1) {
|
|
2872
|
-
var C = f[k],
|
|
2872
|
+
var C = f[k], S = C.type, R = C.value, T = n[S];
|
|
2873
2873
|
T >= 0 && (h[T] = parseInt(R, 10));
|
|
2874
2874
|
}
|
|
2875
2875
|
var D = h[3], M = D === 24 ? 0 : D, g = h[0] + "-" + h[1] + "-" + h[2] + " " + M + ":" + h[4] + ":" + h[5] + ":000", F = +p;
|
|
@@ -2877,7 +2877,7 @@ function hu() {
|
|
|
2877
2877
|
}, d = a.prototype;
|
|
2878
2878
|
d.tz = function(p, v) {
|
|
2879
2879
|
p === void 0 && (p = s);
|
|
2880
|
-
var f, h = this.utcOffset(), k = this.toDate(), C = k.toLocaleString("en-US", { timeZone: p }),
|
|
2880
|
+
var f, h = this.utcOffset(), k = this.toDate(), C = k.toLocaleString("en-US", { timeZone: p }), S = Math.round((k - new Date(C)) / 1e3 / 60), R = 15 * -Math.round(k.getTimezoneOffset() / 15) - S;
|
|
2881
2881
|
if (!Number(R)) f = this.utcOffset(0, v);
|
|
2882
2882
|
else if (f = r(C, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(R, !0), v) {
|
|
2883
2883
|
var T = f.utcOffset();
|
|
@@ -2898,12 +2898,12 @@ function hu() {
|
|
|
2898
2898
|
}, r.tz = function(p, v, f) {
|
|
2899
2899
|
var h = f && v, k = f || v || s, C = u(+r(), k);
|
|
2900
2900
|
if (typeof p != "string") return r(p).tz(k);
|
|
2901
|
-
var
|
|
2902
|
-
var
|
|
2903
|
-
if (g === E) return [
|
|
2904
|
-
var N = u(
|
|
2905
|
-
return E === N ? [
|
|
2906
|
-
})(r.utc(p, h).valueOf(), C, k), R =
|
|
2901
|
+
var S = (function(M, g, F) {
|
|
2902
|
+
var w = M - 60 * g * 1e3, E = u(w, F);
|
|
2903
|
+
if (g === E) return [w, g];
|
|
2904
|
+
var N = u(w -= 60 * (E - g) * 1e3, F);
|
|
2905
|
+
return E === N ? [w, E] : [M - 60 * Math.min(E, N) * 1e3, Math.max(E, N)];
|
|
2906
|
+
})(r.utc(p, h).valueOf(), C, k), R = S[0], T = S[1], D = r(R).utcOffset(T);
|
|
2907
2907
|
return D.$x.$timezone = k, D;
|
|
2908
2908
|
}, r.tz.guess = function() {
|
|
2909
2909
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -2967,11 +2967,11 @@ function xu() {
|
|
|
2967
2967
|
})(mn)), mn.exports;
|
|
2968
2968
|
}
|
|
2969
2969
|
var Cu = xu();
|
|
2970
|
-
const
|
|
2971
|
-
ol.extend(
|
|
2970
|
+
const wu = /* @__PURE__ */ fl(Cu);
|
|
2971
|
+
ol.extend(wu);
|
|
2972
2972
|
ol.extend(fu);
|
|
2973
2973
|
ol.extend(gu);
|
|
2974
|
-
const
|
|
2974
|
+
const Su = {
|
|
2975
2975
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
2976
2976
|
style: { "flex-shrink": "0" }
|
|
2977
2977
|
}, Fu = {
|
|
@@ -3037,7 +3037,7 @@ const wu = {
|
|
|
3037
3037
|
"data-testid": "pv-drawer",
|
|
3038
3038
|
style: { display: "flex", "flex-direction": "column", height: "100%" }
|
|
3039
3039
|
}, [
|
|
3040
|
-
O("div",
|
|
3040
|
+
O("div", Su, [
|
|
3041
3041
|
u.$slots.header ? ge(u.$slots, "header", { key: 0 }) : (c(), x(te, { key: 1 }, [
|
|
3042
3042
|
O("div", Fu, [
|
|
3043
3043
|
O("div", ku, [
|
|
@@ -3050,7 +3050,7 @@ const wu = {
|
|
|
3050
3050
|
variant: "ghost"
|
|
3051
3051
|
})
|
|
3052
3052
|
]),
|
|
3053
|
-
e.subheader ? (c(), x("span", Tu, Y(e.subheader), 1)) :
|
|
3053
|
+
e.subheader ? (c(), x("span", Tu, Y(e.subheader), 1)) : I("", !0)
|
|
3054
3054
|
]),
|
|
3055
3055
|
e.showSearchbar && a.value !== void 0 ? (c(), x("div", Pu, [
|
|
3056
3056
|
j(ln, Ye({
|
|
@@ -3058,7 +3058,7 @@ const wu = {
|
|
|
3058
3058
|
modelValue: a.value,
|
|
3059
3059
|
"onUpdate:modelValue": d[0] || (d[0] = (m) => a.value = m)
|
|
3060
3060
|
}, n.searchInputProps), null, 16, ["modelValue"])
|
|
3061
|
-
])) :
|
|
3061
|
+
])) : I("", !0)
|
|
3062
3062
|
], 64))
|
|
3063
3063
|
]),
|
|
3064
3064
|
O("div", Ou, [
|
|
@@ -3066,7 +3066,7 @@ const wu = {
|
|
|
3066
3066
|
]),
|
|
3067
3067
|
u.$slots.footer ? (c(), x("div", Mu, [
|
|
3068
3068
|
ge(u.$slots, "footer")
|
|
3069
|
-
])) :
|
|
3069
|
+
])) : I("", !0)
|
|
3070
3070
|
], 512));
|
|
3071
3071
|
}
|
|
3072
3072
|
}), Ru = {
|
|
@@ -3110,10 +3110,10 @@ const wu = {
|
|
|
3110
3110
|
onClick: n[3] || (n[3] = (l) => t.$emit("handle-confirm")),
|
|
3111
3111
|
disabled: e.disabled
|
|
3112
3112
|
}, null, 8, ["disabled"])
|
|
3113
|
-
], 64)) :
|
|
3113
|
+
], 64)) : I("", !0)
|
|
3114
3114
|
]));
|
|
3115
3115
|
}
|
|
3116
|
-
}), Vu = ["disabled"],
|
|
3116
|
+
}), Vu = ["disabled"], Iu = { class: "pv-flex" }, Au = {
|
|
3117
3117
|
key: 0,
|
|
3118
3118
|
"data-testid": "pv-select-prefix-label",
|
|
3119
3119
|
class: "pv-border-right",
|
|
@@ -3141,8 +3141,8 @@ const wu = {
|
|
|
3141
3141
|
setup(e) {
|
|
3142
3142
|
const t = e, n = b(() => {
|
|
3143
3143
|
const l = ["pv-flex", "pv-space-between"];
|
|
3144
|
-
t.inverse &&
|
|
3145
|
-
const o =
|
|
3144
|
+
t.inverse && wa.includes(t.variant) ? l.push(`pv-button-${t.variant}-inverse`) : l.push(`pv-button-${t.variant}`);
|
|
3145
|
+
const o = Sa(t.size);
|
|
3146
3146
|
return o && l.push(o), l;
|
|
3147
3147
|
});
|
|
3148
3148
|
return (l, o) => (c(), x("button", {
|
|
@@ -3151,38 +3151,38 @@ const wu = {
|
|
|
3151
3151
|
style: { "--flex-gap": "0.25rem" },
|
|
3152
3152
|
disabled: e.disabled || e.isLoading
|
|
3153
3153
|
}, [
|
|
3154
|
-
O("div",
|
|
3155
|
-
e.prefixLabel ? (c(), x("p",
|
|
3156
|
-
e.counterPosition === "left" && e.counterValue ? (c(), z(
|
|
3154
|
+
O("div", Iu, [
|
|
3155
|
+
e.prefixLabel ? (c(), x("p", Au, Y(e.prefixLabel), 1)) : I("", !0),
|
|
3156
|
+
e.counterPosition === "left" && e.counterValue ? (c(), z(St, {
|
|
3157
3157
|
key: 1,
|
|
3158
3158
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
3159
3159
|
value: e.counterValue,
|
|
3160
3160
|
variant: e.counterBadgeVariant,
|
|
3161
3161
|
size: "sm"
|
|
3162
|
-
}, null, 8, ["value", "variant"])) :
|
|
3162
|
+
}, null, 8, ["value", "variant"])) : I("", !0),
|
|
3163
3163
|
e.icon ? (c(), z(be, {
|
|
3164
3164
|
key: 2,
|
|
3165
3165
|
"data-testid": "pv-multi-select-button-icon",
|
|
3166
3166
|
name: e.icon
|
|
3167
|
-
}, null, 8, ["name"])) :
|
|
3168
|
-
e.companyLogo ? (c(), z(
|
|
3167
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
3168
|
+
e.companyLogo ? (c(), z(Aa, {
|
|
3169
3169
|
key: 3,
|
|
3170
3170
|
name: e.companyLogo,
|
|
3171
3171
|
size: "sm"
|
|
3172
|
-
}, null, 8, ["name"])) :
|
|
3173
|
-
e.isLoading || e.label ? (c(), x("span", Bu, Y(e.isLoading ? "Loading..." : e.label), 1)) :
|
|
3174
|
-
e.counterPosition === "right" && e.counterValue ? (c(), z(
|
|
3172
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
3173
|
+
e.isLoading || e.label ? (c(), x("span", Bu, Y(e.isLoading ? "Loading..." : e.label), 1)) : I("", !0),
|
|
3174
|
+
e.counterPosition === "right" && e.counterValue ? (c(), z(St, {
|
|
3175
3175
|
key: 5,
|
|
3176
3176
|
"data-testid": "pv-multi-select-right-counter-badge",
|
|
3177
3177
|
value: e.counterValue,
|
|
3178
3178
|
variant: e.counterBadgeVariant,
|
|
3179
3179
|
size: "sm"
|
|
3180
|
-
}, null, 8, ["value", "variant"])) :
|
|
3180
|
+
}, null, 8, ["value", "variant"])) : I("", !0)
|
|
3181
3181
|
]),
|
|
3182
3182
|
e.showDropdown ? (c(), z(be, {
|
|
3183
3183
|
key: 0,
|
|
3184
3184
|
name: e.open ? "chevron-up" : "chevron-down"
|
|
3185
|
-
}, null, 8, ["name"])) :
|
|
3185
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
3186
3186
|
e.showClear ? (c(), z(Vt, {
|
|
3187
3187
|
key: 1,
|
|
3188
3188
|
size: "sm",
|
|
@@ -3199,7 +3199,7 @@ const wu = {
|
|
|
3199
3199
|
Be(" Clear Selections ", -1)
|
|
3200
3200
|
])]),
|
|
3201
3201
|
_: 1
|
|
3202
|
-
})) :
|
|
3202
|
+
})) : I("", !0)
|
|
3203
3203
|
], 10, Vu));
|
|
3204
3204
|
}
|
|
3205
3205
|
}), Eu = {}, Nu = { class: "pv-text-subdued pv-text-center pv-text-body-md" };
|
|
@@ -3230,7 +3230,7 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3230
3230
|
], 64)) : e.image ? (c(), x("img", {
|
|
3231
3231
|
key: 1,
|
|
3232
3232
|
src: e.image
|
|
3233
|
-
}, null, 8, zu)) :
|
|
3233
|
+
}, null, 8, zu)) : I("", !0)
|
|
3234
3234
|
], 2));
|
|
3235
3235
|
}
|
|
3236
3236
|
}), qu = {
|
|
@@ -3266,7 +3266,7 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3266
3266
|
return (l, o) => (c(), x("a", {
|
|
3267
3267
|
class: oe(["pv-flex", n.value]),
|
|
3268
3268
|
"data-testid": "pv-menu-item",
|
|
3269
|
-
style:
|
|
3269
|
+
style: Se(e.disabled ? "color: #7D898D;" : ""),
|
|
3270
3270
|
role: "button",
|
|
3271
3271
|
onClick: o[0] || (o[0] = (a) => e.disabled ? null : l.$emit("handle-selected"))
|
|
3272
3272
|
}, [
|
|
@@ -3276,17 +3276,17 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3276
3276
|
initials: e.avatar.initials,
|
|
3277
3277
|
image: e.avatar.image,
|
|
3278
3278
|
size: "lg"
|
|
3279
|
-
}, null, 8, ["initials", "image"])) :
|
|
3279
|
+
}, null, 8, ["initials", "image"])) : I("", !0),
|
|
3280
3280
|
e.icon ? (c(), z(be, {
|
|
3281
3281
|
key: 1,
|
|
3282
3282
|
class: "pv-text-subdued",
|
|
3283
3283
|
name: e.icon
|
|
3284
|
-
}, null, 8, ["name"])) :
|
|
3285
|
-
e.companyName ? (c(), z(
|
|
3284
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
3285
|
+
e.companyName ? (c(), z(Aa, {
|
|
3286
3286
|
key: 2,
|
|
3287
3287
|
name: e.companyName,
|
|
3288
3288
|
size: "sm"
|
|
3289
|
-
}, null, 8, ["name"])) :
|
|
3289
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
3290
3290
|
O("div", qu, [
|
|
3291
3291
|
O("span", {
|
|
3292
3292
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
@@ -3296,13 +3296,13 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3296
3296
|
key: 0,
|
|
3297
3297
|
class: "pv-text-body-xs pv-text-subdued pv-full-width pv-truncate",
|
|
3298
3298
|
title: e.subText
|
|
3299
|
-
}, Y(e.subText), 9, Ku)) :
|
|
3299
|
+
}, Y(e.subText), 9, Ku)) : I("", !0)
|
|
3300
3300
|
]),
|
|
3301
|
-
e.secondaryText && typeof e.secondaryText == "number" ? (c(), z(
|
|
3301
|
+
e.secondaryText && typeof e.secondaryText == "number" ? (c(), z(St, {
|
|
3302
3302
|
key: 3,
|
|
3303
3303
|
value: e.secondaryText,
|
|
3304
3304
|
variant: e.counterBadgeVariant
|
|
3305
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (c(), x("span", ju, Y(e.secondaryText), 1)) :
|
|
3305
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (c(), x("span", ju, Y(e.secondaryText), 1)) : I("", !0)
|
|
3306
3306
|
], 64))
|
|
3307
3307
|
], 6));
|
|
3308
3308
|
}
|
|
@@ -3352,13 +3352,13 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3352
3352
|
key: 0,
|
|
3353
3353
|
class: "pv-text-body-xs pv-text-subdued pv-full-width pv-truncate",
|
|
3354
3354
|
title: e.subText
|
|
3355
|
-
}, Y(e.subText), 9, Zu)) :
|
|
3355
|
+
}, Y(e.subText), 9, Zu)) : I("", !0)
|
|
3356
3356
|
]),
|
|
3357
|
-
e.secondaryText && typeof e.secondaryText == "number" ? (c(), z(
|
|
3357
|
+
e.secondaryText && typeof e.secondaryText == "number" ? (c(), z(St, {
|
|
3358
3358
|
key: 0,
|
|
3359
3359
|
value: e.secondaryText,
|
|
3360
3360
|
variant: e.counterBadgeVariant
|
|
3361
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (c(), x("span", Xu, Y(e.secondaryText), 1)) :
|
|
3361
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (c(), x("span", Xu, Y(e.secondaryText), 1)) : I("", !0)
|
|
3362
3362
|
], 64))
|
|
3363
3363
|
], 2));
|
|
3364
3364
|
}
|
|
@@ -3458,8 +3458,8 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3458
3458
|
}),
|
|
3459
3459
|
emits: /* @__PURE__ */ Fe(["dropdown-open", "dropdown-closed"], ["update:modelValue", "update:searchInput"]),
|
|
3460
3460
|
setup(e, { emit: t }) {
|
|
3461
|
-
const n = e, l = t, o = ft("searchInputRef"), [a, r] = va(n.defaultOpen), s = xe(e, "modelValue"), i = xe(e, "searchInput"), u = b(() => n.menuActionsVariant === "cancel-confirm"), d = (
|
|
3462
|
-
v.value =
|
|
3461
|
+
const n = e, l = t, o = ft("searchInputRef"), [a, r] = va(n.defaultOpen), s = xe(e, "modelValue"), i = xe(e, "searchInput"), u = b(() => n.menuActionsVariant === "cancel-confirm"), d = (w) => {
|
|
3462
|
+
v.value = w, u.value || (s.value = w);
|
|
3463
3463
|
}, m = () => {
|
|
3464
3464
|
u.value && (s.value = v.value);
|
|
3465
3465
|
}, p = () => {
|
|
@@ -3467,26 +3467,31 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3467
3467
|
}, v = P(s.value), f = () => {
|
|
3468
3468
|
i.value = "", a.value = !1;
|
|
3469
3469
|
}, h = b(() => {
|
|
3470
|
-
const
|
|
3471
|
-
return n.overlayTrigger ? -
|
|
3470
|
+
const w = n.size === "lg" ? 24 : 30;
|
|
3471
|
+
return n.overlayTrigger ? -w : void 0;
|
|
3472
3472
|
});
|
|
3473
|
-
ae(
|
|
3474
|
-
|
|
3473
|
+
ae(
|
|
3474
|
+
() => s.value,
|
|
3475
|
+
(w) => {
|
|
3476
|
+
v.value = w;
|
|
3477
|
+
}
|
|
3478
|
+
), ae(a, (w) => {
|
|
3479
|
+
w ? (p(), wt(() => {
|
|
3475
3480
|
n.overlayTrigger && !n.disableSearchInput && o.value?.input?.focus(), l("dropdown-open");
|
|
3476
3481
|
})) : (m(), l("dropdown-closed"));
|
|
3477
3482
|
});
|
|
3478
3483
|
const k = b(() => i.value === "" ? n.options : n.options.filter(
|
|
3479
|
-
(
|
|
3480
|
-
)), C = (
|
|
3481
|
-
const E = v.value, N = E.findIndex((X) => X.id ===
|
|
3484
|
+
(w) => w.text.toLocaleLowerCase().includes(i.value.toLocaleLowerCase())
|
|
3485
|
+
)), C = (w) => {
|
|
3486
|
+
const E = v.value, N = E.findIndex((X) => X.id === w.id);
|
|
3482
3487
|
let ee;
|
|
3483
|
-
N > -1 ? ee = [...E.slice(0, N), ...E.slice(N + 1)] : ee = [...E, { ...
|
|
3484
|
-
},
|
|
3485
|
-
const
|
|
3488
|
+
N > -1 ? ee = [...E.slice(0, N), ...E.slice(N + 1)] : ee = [...E, { ...w }], d(ee);
|
|
3489
|
+
}, S = () => {
|
|
3490
|
+
const w = k.value.map((E) => ({
|
|
3486
3491
|
id: E.id,
|
|
3487
3492
|
text: E.text
|
|
3488
3493
|
}));
|
|
3489
|
-
d(
|
|
3494
|
+
d(w);
|
|
3490
3495
|
}, R = () => {
|
|
3491
3496
|
d([]);
|
|
3492
3497
|
}, T = () => {
|
|
@@ -3495,23 +3500,23 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3495
3500
|
m(), f();
|
|
3496
3501
|
}, M = b(() => {
|
|
3497
3502
|
if (!n.groupings) return;
|
|
3498
|
-
const
|
|
3503
|
+
const w = /* @__PURE__ */ new Map();
|
|
3499
3504
|
n.groupings.forEach((E) => {
|
|
3500
|
-
|
|
3501
|
-
}),
|
|
3505
|
+
w.set(E, []);
|
|
3506
|
+
}), w.set("other", []);
|
|
3502
3507
|
for (const E of n.options) {
|
|
3503
|
-
const N = E.groupingLabel, ee = N &&
|
|
3504
|
-
|
|
3508
|
+
const N = E.groupingLabel, ee = N && w.has(N) ? N : "other";
|
|
3509
|
+
w.get(ee).push(E);
|
|
3505
3510
|
}
|
|
3506
|
-
for (const [E, N] of
|
|
3507
|
-
N.length === 0 &&
|
|
3508
|
-
return Array.from(
|
|
3509
|
-
}), g = b(() => n.groupings && i.value === ""), F = (
|
|
3511
|
+
for (const [E, N] of w)
|
|
3512
|
+
N.length === 0 && w.delete(E);
|
|
3513
|
+
return Array.from(w.entries());
|
|
3514
|
+
}), g = b(() => n.groupings && i.value === ""), F = (w) => v.value.some((E) => E.id === w.id) ? !0 : null;
|
|
3510
3515
|
return tn("Escape", () => {
|
|
3511
3516
|
a.value && f();
|
|
3512
|
-
}), (
|
|
3517
|
+
}), (w, E) => (c(), z(q(Ia), Ye({
|
|
3513
3518
|
modelValue: q(a),
|
|
3514
|
-
"onUpdate:modelValue": E[2] || (E[2] = (N) =>
|
|
3519
|
+
"onUpdate:modelValue": E[2] || (E[2] = (N) => Sn(a) ? a.value = N : null)
|
|
3515
3520
|
}, e.popoverProperties, { offset: h.value }), {
|
|
3516
3521
|
trigger: ce(() => [
|
|
3517
3522
|
j(ml, {
|
|
@@ -3536,9 +3541,9 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3536
3541
|
O("div", {
|
|
3537
3542
|
class: "pv-popover",
|
|
3538
3543
|
"data-test-id": "pv-popover",
|
|
3539
|
-
style:
|
|
3544
|
+
style: Se(e.popoverCssProperties)
|
|
3540
3545
|
}, [
|
|
3541
|
-
e.disableSearchInput ?
|
|
3546
|
+
e.disableSearchInput ? I("", !0) : (c(), x("div", ec, [
|
|
3542
3547
|
j(ln, {
|
|
3543
3548
|
ref: "searchInputRef",
|
|
3544
3549
|
"model-value": i.value,
|
|
@@ -3548,14 +3553,14 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3548
3553
|
}, null, 8, ["model-value", "placeholder"])
|
|
3549
3554
|
])),
|
|
3550
3555
|
O("div", tc, [
|
|
3551
|
-
|
|
3556
|
+
w.$slots.header ? ge(w.$slots, "header", Ye({ key: 0 }, w.$props, {
|
|
3552
3557
|
selectedItems: s.value,
|
|
3553
3558
|
searchInput: i.value
|
|
3554
|
-
})) :
|
|
3559
|
+
})) : I("", !0)
|
|
3555
3560
|
]),
|
|
3556
3561
|
k.value.length > 0 ? (c(), x(te, { key: 1 }, [
|
|
3557
3562
|
g.value ? (c(!0), x(te, { key: 0 }, $e(M.value, ([N, ee], X) => (c(), x("div", { key: N }, [
|
|
3558
|
-
|
|
3563
|
+
w.$slots[N] ? ge(w.$slots, N, { key: 0 }) : N !== "other" ? (c(), x("span", nc, Y(N), 1)) : I("", !0),
|
|
3559
3564
|
O("ul", lc, [
|
|
3560
3565
|
(c(!0), x(te, null, $e(ee, (U) => He((c(), x("li", {
|
|
3561
3566
|
key: U.id,
|
|
@@ -3573,7 +3578,7 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3573
3578
|
[nl, F(U) || !e.isLoading]
|
|
3574
3579
|
])), 128))
|
|
3575
3580
|
]),
|
|
3576
|
-
M.value && X !== M.value.length - 1 ? (c(), x("div", oc)) :
|
|
3581
|
+
M.value && X !== M.value.length - 1 ? (c(), x("div", oc)) : I("", !0)
|
|
3577
3582
|
]))), 128)) : (c(), x("ul", rc, [
|
|
3578
3583
|
(c(!0), x(te, null, $e(k.value, (N) => (c(), x("li", {
|
|
3579
3584
|
key: N.id,
|
|
@@ -3588,26 +3593,26 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3588
3593
|
}, null, 8, ["options-variant", "selected", "option"])
|
|
3589
3594
|
], 8, sc))), 128))
|
|
3590
3595
|
]))
|
|
3591
|
-
], 64)) :
|
|
3596
|
+
], 64)) : I("", !0),
|
|
3592
3597
|
e.isLoading ? (c(), x("div", ic, [
|
|
3593
3598
|
j(Tn, { variant: "dark" })
|
|
3594
3599
|
])) : k.value.length === 0 ? (c(), x(te, { key: 3 }, [
|
|
3595
|
-
|
|
3596
|
-
], 64)) :
|
|
3600
|
+
w.$slots["no-results"] ? ge(w.$slots, "no-results", Rt(Ye({ key: 0 }, w.$props))) : (c(), z(Ua, { key: 1 }))
|
|
3601
|
+
], 64)) : I("", !0),
|
|
3597
3602
|
O("div", uc, [
|
|
3598
|
-
|
|
3603
|
+
w.$slots.footer ? ge(w.$slots, "footer", Ye({ key: 0 }, w.$props, {
|
|
3599
3604
|
selectedItems: s.value,
|
|
3600
3605
|
searchInput: i.value
|
|
3601
|
-
})) :
|
|
3606
|
+
})) : I("", !0),
|
|
3602
3607
|
e.menuActionsVariant ? (c(), z(Lu, {
|
|
3603
3608
|
key: 1,
|
|
3604
3609
|
variant: e.menuActionsVariant,
|
|
3605
3610
|
disabled: e.isLoading,
|
|
3606
3611
|
onHandleClearAll: R,
|
|
3607
|
-
onHandleSelectAll:
|
|
3612
|
+
onHandleSelectAll: S,
|
|
3608
3613
|
onHandleCancel: T,
|
|
3609
3614
|
onHandleConfirm: D
|
|
3610
|
-
}, null, 8, ["variant", "disabled"])) :
|
|
3615
|
+
}, null, 8, ["variant", "disabled"])) : I("", !0)
|
|
3611
3616
|
])
|
|
3612
3617
|
], 4)
|
|
3613
3618
|
]),
|
|
@@ -3654,13 +3659,13 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3654
3659
|
key: 0,
|
|
3655
3660
|
class: "pv-text-body-xs pv-text-subdued pv-full-width pv-truncate",
|
|
3656
3661
|
title: e.subText
|
|
3657
|
-
}, Y(e.subText), 9, mc)) :
|
|
3662
|
+
}, Y(e.subText), 9, mc)) : I("", !0)
|
|
3658
3663
|
]),
|
|
3659
|
-
e.secondaryText && typeof e.secondaryText == "number" ? (c(), z(
|
|
3664
|
+
e.secondaryText && typeof e.secondaryText == "number" ? (c(), z(St, {
|
|
3660
3665
|
key: 0,
|
|
3661
3666
|
value: e.secondaryText,
|
|
3662
3667
|
variant: e.counterBadgeVariant
|
|
3663
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (c(), x("span", hc, Y(e.secondaryText), 1)) :
|
|
3668
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (c(), x("span", hc, Y(e.secondaryText), 1)) : I("", !0)
|
|
3664
3669
|
]));
|
|
3665
3670
|
}
|
|
3666
3671
|
}), gc = /* @__PURE__ */ Ve(yc, [["__scopeId", "data-v-bf2ac90c"]]), bc = ["data-active"], xc = /* @__PURE__ */ Z({
|
|
@@ -3682,7 +3687,7 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3682
3687
|
avatar: Qe
|
|
3683
3688
|
}, n = e, l = b(() => ({ paddingLeft: `${n.level * 12 + 12}px` })), o = b(() => n.option.children && n.option.children.length > 0 && n.level < 3);
|
|
3684
3689
|
return (a, r) => {
|
|
3685
|
-
const s =
|
|
3690
|
+
const s = So("PvSelectMenuItem", !0);
|
|
3686
3691
|
return c(), x(te, null, [
|
|
3687
3692
|
(c(), z(We(t[e.optionsVariant]), {
|
|
3688
3693
|
id: e.option.id,
|
|
@@ -3701,7 +3706,7 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3701
3706
|
o.value ? (c(), x("ul", {
|
|
3702
3707
|
key: 0,
|
|
3703
3708
|
role: "list",
|
|
3704
|
-
style:
|
|
3709
|
+
style: Se(l.value)
|
|
3705
3710
|
}, [
|
|
3706
3711
|
(c(!0), x(te, null, $e(e.option.children, (i) => (c(), x("li", {
|
|
3707
3712
|
key: i.id,
|
|
@@ -3716,18 +3721,18 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3716
3721
|
onHandleSelectItem: r[1] || (r[1] = (u) => a.$emit("handle-select-item", u))
|
|
3717
3722
|
}, null, 8, ["counter-badge-variant", "options-variant", "option", "selected-item", "level"])
|
|
3718
3723
|
], 8, bc))), 128))
|
|
3719
|
-
], 4)) :
|
|
3724
|
+
], 4)) : I("", !0)
|
|
3720
3725
|
], 64);
|
|
3721
3726
|
};
|
|
3722
3727
|
}
|
|
3723
3728
|
}), Cc = {
|
|
3724
3729
|
key: 0,
|
|
3725
3730
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
3726
|
-
},
|
|
3731
|
+
}, wc = {
|
|
3727
3732
|
key: 1,
|
|
3728
3733
|
role: "list",
|
|
3729
3734
|
class: "pv-popover-list"
|
|
3730
|
-
},
|
|
3735
|
+
}, Sc = ["data-active"], Wa = /* @__PURE__ */ Z({
|
|
3731
3736
|
__name: "PvSelectButton",
|
|
3732
3737
|
props: /* @__PURE__ */ Fe({
|
|
3733
3738
|
defaultOpen: { type: Boolean },
|
|
@@ -3773,10 +3778,10 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3773
3778
|
if (!f) return n.options;
|
|
3774
3779
|
const h = (k) => {
|
|
3775
3780
|
const C = [];
|
|
3776
|
-
for (const
|
|
3777
|
-
const R =
|
|
3781
|
+
for (const S of k) {
|
|
3782
|
+
const R = S.text.toLowerCase().includes(f), T = h(S.children || []);
|
|
3778
3783
|
R ? C.push({
|
|
3779
|
-
...
|
|
3784
|
+
...S,
|
|
3780
3785
|
searchText: f,
|
|
3781
3786
|
children: T
|
|
3782
3787
|
}) : C.push(...T);
|
|
@@ -3797,9 +3802,9 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3797
3802
|
};
|
|
3798
3803
|
return tn("Escape", () => {
|
|
3799
3804
|
o.value && v();
|
|
3800
|
-
}), (f, h) => (c(), z(q(
|
|
3805
|
+
}), (f, h) => (c(), z(q(Ia), Ye({
|
|
3801
3806
|
modelValue: q(o),
|
|
3802
|
-
"onUpdate:modelValue": h[1] || (h[1] = (k) =>
|
|
3807
|
+
"onUpdate:modelValue": h[1] || (h[1] = (k) => Sn(o) ? o.value = k : null)
|
|
3803
3808
|
}, e.popoverProperties), {
|
|
3804
3809
|
trigger: ce(() => [
|
|
3805
3810
|
j(ml, {
|
|
@@ -3827,9 +3832,9 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3827
3832
|
O("div", {
|
|
3828
3833
|
class: "pv-popover",
|
|
3829
3834
|
"data-test-id": "pv-popover",
|
|
3830
|
-
style:
|
|
3835
|
+
style: Se([e.popoverCssProperties, { position: "unset" }])
|
|
3831
3836
|
}, [
|
|
3832
|
-
e.disableSearchInput ?
|
|
3837
|
+
e.disableSearchInput ? I("", !0) : (c(), x("div", Cc, [
|
|
3833
3838
|
j(ln, {
|
|
3834
3839
|
"model-value": r.value,
|
|
3835
3840
|
"onUpdate:modelValue": h[0] || (h[0] = (k) => r.value = k),
|
|
@@ -3837,7 +3842,7 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3837
3842
|
placeholder: e.searchPlaceholder
|
|
3838
3843
|
}, null, 8, ["model-value", "placeholder"])
|
|
3839
3844
|
])),
|
|
3840
|
-
d.value.length > 0 ? (c(), x("ul",
|
|
3845
|
+
d.value.length > 0 ? (c(), x("ul", wc, [
|
|
3841
3846
|
(c(!0), x(te, null, $e(d.value, (k) => (c(), x("li", {
|
|
3842
3847
|
key: k.id,
|
|
3843
3848
|
"data-active": a.value?.id === k.id ? !0 : null
|
|
@@ -3849,7 +3854,7 @@ const Ua = /* @__PURE__ */ Ve(Eu, [["render", Gu]]), zu = ["src"], Hu = /* @__PU
|
|
|
3849
3854
|
"selected-item": a.value,
|
|
3850
3855
|
onHandleSelectItem: m
|
|
3851
3856
|
}, null, 8, ["counter-badge-variant", "options-variant", "option", "selected-item"])
|
|
3852
|
-
], 8,
|
|
3857
|
+
], 8, Sc))), 128))
|
|
3853
3858
|
])) : (c(), z(Ua, { key: 2 }))
|
|
3854
3859
|
], 4)
|
|
3855
3860
|
]),
|
|
@@ -3873,7 +3878,7 @@ const hl = Symbol("FilterStoreKey"), xn = Symbol("FocusStoreKey"), Ya = Symbol("
|
|
|
3873
3878
|
}, Lc = ["id"], Vc = {
|
|
3874
3879
|
key: 1,
|
|
3875
3880
|
style: { "padding-left": "16px" }
|
|
3876
|
-
},
|
|
3881
|
+
}, Ic = ["checked", "disabled", "onChange"], Ac = { class: "pv-text-body-md" }, Bc = { key: 2 }, Ec = {
|
|
3877
3882
|
key: 0,
|
|
3878
3883
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
3879
3884
|
}, Nc = /* @__PURE__ */ Z({
|
|
@@ -3917,8 +3922,8 @@ const hl = Symbol("FilterStoreKey"), xn = Symbol("FocusStoreKey"), Ya = Symbol("
|
|
|
3917
3922
|
);
|
|
3918
3923
|
return [...h, f, ...k];
|
|
3919
3924
|
}), p = (f) => `group-by-list-item-${f}`, v = (f) => {
|
|
3920
|
-
const h = f.findIndex((
|
|
3921
|
-
(
|
|
3925
|
+
const h = f.findIndex((S) => S === "divider"), C = f.slice(0, h).slice(0, o.rowGroupLimit).map(
|
|
3926
|
+
(S) => S.replace("group-by-list-item-", "")
|
|
3922
3927
|
);
|
|
3923
3928
|
t.value && t.value.setRowGroupColumns(C);
|
|
3924
3929
|
};
|
|
@@ -3933,11 +3938,11 @@ const hl = Symbol("FilterStoreKey"), xn = Symbol("FocusStoreKey"), Ya = Symbol("
|
|
|
3933
3938
|
trigger: ce(() => [
|
|
3934
3939
|
O("div", Rc, [
|
|
3935
3940
|
h[0] || (h[0] = O("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1)),
|
|
3936
|
-
q(l).length > 0 ? (c(), z(q(
|
|
3941
|
+
q(l).length > 0 ? (c(), z(q(St), {
|
|
3937
3942
|
key: 0,
|
|
3938
3943
|
value: q(l).length,
|
|
3939
3944
|
variant: "tertiary"
|
|
3940
|
-
}, null, 8, ["value"])) :
|
|
3945
|
+
}, null, 8, ["value"])) : I("", !0)
|
|
3941
3946
|
])
|
|
3942
3947
|
]),
|
|
3943
3948
|
default: ce(() => [
|
|
@@ -3963,17 +3968,17 @@ const hl = Symbol("FilterStoreKey"), xn = Symbol("FocusStoreKey"), Ya = Symbol("
|
|
|
3963
3968
|
class: "pv-checkbox",
|
|
3964
3969
|
checked: a(k.value),
|
|
3965
3970
|
disabled: !a(k.value) && i.value,
|
|
3966
|
-
onChange: (
|
|
3971
|
+
onChange: (S) => r(
|
|
3967
3972
|
k.value,
|
|
3968
|
-
|
|
3973
|
+
S.target.checked
|
|
3969
3974
|
)
|
|
3970
|
-
}, null, 40,
|
|
3971
|
-
O("span",
|
|
3972
|
-
a(k.value) ? (c(), x("sup", Bc, Y(C + 1), 1)) :
|
|
3975
|
+
}, null, 40, Ic),
|
|
3976
|
+
O("span", Ac, Y(k.label), 1),
|
|
3977
|
+
a(k.value) ? (c(), x("sup", Bc, Y(C + 1), 1)) : I("", !0)
|
|
3973
3978
|
], 2)
|
|
3974
|
-
], 8, Lc)) :
|
|
3979
|
+
], 8, Lc)) : I("", !0)
|
|
3975
3980
|
], 64))), 128)),
|
|
3976
|
-
i.value ? (c(), x("p", Ec, " Supports " + Y(e.rowGroupLimit) + " compare levels ", 1)) :
|
|
3981
|
+
i.value ? (c(), x("p", Ec, " Supports " + Y(e.rowGroupLimit) + " compare levels ", 1)) : I("", !0)
|
|
3977
3982
|
]),
|
|
3978
3983
|
_: 1
|
|
3979
3984
|
}, 8, ["class"]));
|
|
@@ -4021,34 +4026,34 @@ const qc = /* @__PURE__ */ Ve(Gc, [["render", Hc]]), bl = (e = null) => {
|
|
|
4021
4026
|
params: {}
|
|
4022
4027
|
},
|
|
4023
4028
|
setup(e) {
|
|
4024
|
-
const t = e, n = ve(yl, P([])), l = ve(Xa, P(null)), o = ve(gl, P({})), a = gr(t.params, "rowNode"), r = b(() => !t.params.displayBaseAggregationsOnly || a.value.level === n.value.length - 1), s = b(() => t.params.rowNode.group), i = (
|
|
4029
|
+
const t = e, n = ve(yl, P([])), l = ve(Xa, P(null)), o = ve(gl, P({})), a = gr(t.params, "rowNode"), r = b(() => !t.params.displayBaseAggregationsOnly || a.value.level === n.value.length - 1), s = b(() => t.params.rowNode.group), i = (S, R) => S ? S({
|
|
4025
4030
|
value: R,
|
|
4026
4031
|
data: a.value.data,
|
|
4027
4032
|
node: a.value,
|
|
4028
4033
|
api: t.params.api
|
|
4029
4034
|
}) : R, u = b(() => {
|
|
4030
4035
|
if (!l.value) return "";
|
|
4031
|
-
const
|
|
4032
|
-
return
|
|
4036
|
+
const S = l.value.getColId() || "", R = l.value.getColDef().valueFormatter, T = a.value;
|
|
4037
|
+
return S && T && T.data && S in T.data ? i(R, T.data[S]) : "";
|
|
4033
4038
|
}), d = b(() => a.value.data && a.value.data.groupedRecordCount ? a.value.data.groupedRecordCount || 0 : a.value.allChildrenCount || 0), m = b(() => {
|
|
4034
|
-
const
|
|
4035
|
-
return
|
|
4036
|
-
}), p = (
|
|
4037
|
-
const R =
|
|
4039
|
+
const S = a.value.rowIndex, R = a.value.parent?.rowIndex;
|
|
4040
|
+
return S != null && R != null ? S - R : null;
|
|
4041
|
+
}), p = (S) => {
|
|
4042
|
+
const R = S.node.expanded, T = S.node.rowIndex;
|
|
4038
4043
|
T != null && (o.value[T] = R);
|
|
4039
4044
|
}, { isFocused: v, computedFocuses: f, removeFocus: h } = Vn(), k = b(() => v(a.value.key, a.value.field) ? "pv-flex" : ""), C = b(() => {
|
|
4040
|
-
const
|
|
4041
|
-
return a.value.key &&
|
|
4045
|
+
const S = f.value;
|
|
4046
|
+
return a.value.key && S.includes(a.value.key);
|
|
4042
4047
|
});
|
|
4043
4048
|
return Je(() => {
|
|
4044
|
-
const
|
|
4049
|
+
const S = a.value, R = S.rowIndex, T = S.expanded;
|
|
4045
4050
|
R != null && (o.value[R] = T), a.value.addEventListener("expandedChanged", p);
|
|
4046
4051
|
}), $o(() => {
|
|
4047
|
-
const
|
|
4052
|
+
const S = a.value;
|
|
4048
4053
|
a.value.removeEventListener("expandedChanged", p);
|
|
4049
|
-
const R =
|
|
4054
|
+
const R = S.rowIndex;
|
|
4050
4055
|
R != null && (o.value[R] = !1);
|
|
4051
|
-
}), (
|
|
4056
|
+
}), (S, R) => (c(), x(te, null, [
|
|
4052
4057
|
s.value ? (c(), x("div", {
|
|
4053
4058
|
key: 0,
|
|
4054
4059
|
class: oe(k.value)
|
|
@@ -4056,7 +4061,7 @@ const qc = /* @__PURE__ */ Ve(Gc, [["render", Hc]]), bl = (e = null) => {
|
|
|
4056
4061
|
O("div", _c, [
|
|
4057
4062
|
O("p", Kc, [
|
|
4058
4063
|
Be(Y(q(a).rowGroupColumn?.getColDef().headerName) + " ", 1),
|
|
4059
|
-
e.params.displayCount && r.value && d.value > 0 ? (c(), x("span", jc, " (" + Y(d.value.toLocaleString()) + ") ", 1)) :
|
|
4064
|
+
e.params.displayCount && r.value && d.value > 0 ? (c(), x("span", jc, " (" + Y(d.value.toLocaleString()) + ") ", 1)) : I("", !0)
|
|
4060
4065
|
]),
|
|
4061
4066
|
O("div", Uc, [
|
|
4062
4067
|
O("p", Wc, Y(e.params.formattedValue || e.params.rowNode.key), 1)
|
|
@@ -4081,11 +4086,11 @@ const qc = /* @__PURE__ */ Ve(Gc, [["render", Hc]]), bl = (e = null) => {
|
|
|
4081
4086
|
])]),
|
|
4082
4087
|
_: 1
|
|
4083
4088
|
})
|
|
4084
|
-
])) :
|
|
4085
|
-
], 2)) :
|
|
4089
|
+
])) : I("", !0)
|
|
4090
|
+
], 2)) : I("", !0),
|
|
4086
4091
|
O("div", null, [
|
|
4087
4092
|
O("p", null, [
|
|
4088
|
-
e.params.displayRowNumber && m.value ? (c(), x("span", Qc, Y(m.value), 1)) :
|
|
4093
|
+
e.params.displayRowNumber && m.value ? (c(), x("span", Qc, Y(m.value), 1)) : I("", !0),
|
|
4089
4094
|
Be(" " + Y(u.value), 1)
|
|
4090
4095
|
])
|
|
4091
4096
|
])
|
|
@@ -4382,7 +4387,7 @@ const xl = (e) => {
|
|
|
4382
4387
|
return Je(() => {
|
|
4383
4388
|
t.params.node.expanded && a.value && (n.value[a.value] = !0);
|
|
4384
4389
|
}), (m, p) => (c(), x("div", {
|
|
4385
|
-
style:
|
|
4390
|
+
style: Se(d.value),
|
|
4386
4391
|
class: "pv-flex",
|
|
4387
4392
|
ondblclick: o
|
|
4388
4393
|
}, [
|
|
@@ -4402,15 +4407,15 @@ const xl = (e) => {
|
|
|
4402
4407
|
const e = P({}), t = P(null), n = P(null), l = P({}), o = P({}), a = P({}), r = P(0), s = P({}), i = P(void 0), u = P(void 0), d = b(() => i.value != null), m = P({}), p = P({}), v = P({}), f = P({}), h = () => {
|
|
4403
4408
|
const M = {};
|
|
4404
4409
|
return Object.entries(p.value).forEach(([g, F]) => {
|
|
4405
|
-
const
|
|
4406
|
-
|
|
4410
|
+
const w = F.filter((E) => !!E);
|
|
4411
|
+
w.length > 0 && (M[g] = {
|
|
4407
4412
|
filterType: "set",
|
|
4408
|
-
values:
|
|
4413
|
+
values: w
|
|
4409
4414
|
});
|
|
4410
4415
|
}), M;
|
|
4411
|
-
}, k = async (M, g, F,
|
|
4416
|
+
}, k = async (M, g, F, w) => {
|
|
4412
4417
|
const E = f.value[g.field] || void 0, N = p.value[g.field] || [];
|
|
4413
|
-
let ee =
|
|
4418
|
+
let ee = w;
|
|
4414
4419
|
t.value != null && (ee = h());
|
|
4415
4420
|
const X = {
|
|
4416
4421
|
api: M,
|
|
@@ -4446,8 +4451,8 @@ const xl = (e) => {
|
|
|
4446
4451
|
...m.value[M] || [],
|
|
4447
4452
|
...v.value[M] || []
|
|
4448
4453
|
];
|
|
4449
|
-
return F ? F.find((
|
|
4450
|
-
},
|
|
4454
|
+
return F ? F.find((w) => w?.value === g) : null;
|
|
4455
|
+
}, S = (M, g) => {
|
|
4451
4456
|
p.value[M] = g;
|
|
4452
4457
|
const F = [];
|
|
4453
4458
|
if (e.value && e.value[M]?.values) {
|
|
@@ -4455,16 +4460,16 @@ const xl = (e) => {
|
|
|
4455
4460
|
F.push(...E);
|
|
4456
4461
|
}
|
|
4457
4462
|
F.push(...g);
|
|
4458
|
-
const
|
|
4463
|
+
const w = [];
|
|
4459
4464
|
return g.forEach((E) => {
|
|
4460
4465
|
const N = C(M, E);
|
|
4461
|
-
N &&
|
|
4462
|
-
}), v.value[M] =
|
|
4466
|
+
N && w.push(N);
|
|
4467
|
+
}), v.value[M] = w, F.filter((E, N) => F.indexOf(E) === N);
|
|
4463
4468
|
}, R = (M) => p.value[M] || [], T = (M, g) => {
|
|
4464
4469
|
f.value[M] = g;
|
|
4465
4470
|
}, D = (M, g) => {
|
|
4466
|
-
const F = /* @__PURE__ */ new Set(),
|
|
4467
|
-
[...
|
|
4471
|
+
const F = /* @__PURE__ */ new Set(), w = M ? Object.keys(M) : [], E = g ? Object.keys(g) : [], N = w.filter((U) => E.includes(U));
|
|
4472
|
+
[...w, ...E].filter((U) => !N.includes(U)).forEach((U) => F.add(U));
|
|
4468
4473
|
for (const U of N)
|
|
4469
4474
|
JSON.stringify(M?.[U]) !== JSON.stringify(g?.[U]) && F.add(U);
|
|
4470
4475
|
const X = Date.now();
|
|
@@ -4473,8 +4478,8 @@ const xl = (e) => {
|
|
|
4473
4478
|
};
|
|
4474
4479
|
return Qt(
|
|
4475
4480
|
[e, t],
|
|
4476
|
-
([M, g], [F,
|
|
4477
|
-
JSON.stringify(M) !== JSON.stringify(F) && D(M || {}, F || {}), JSON.stringify(g) !== JSON.stringify(
|
|
4481
|
+
([M, g], [F, w]) => {
|
|
4482
|
+
JSON.stringify(M) !== JSON.stringify(F) && D(M || {}, F || {}), JSON.stringify(g) !== JSON.stringify(w) && D(g || {}, e.value || {});
|
|
4478
4483
|
},
|
|
4479
4484
|
{
|
|
4480
4485
|
deep: !0,
|
|
@@ -4500,12 +4505,12 @@ const xl = (e) => {
|
|
|
4500
4505
|
getFilterSelectedValues: R,
|
|
4501
4506
|
isServerSideFilter: d,
|
|
4502
4507
|
stagedFilterModel: t,
|
|
4503
|
-
setFilterSelectedValues:
|
|
4508
|
+
setFilterSelectedValues: S,
|
|
4504
4509
|
setFilterValueSearchText: T,
|
|
4505
4510
|
tableSearchFilterModel: n,
|
|
4506
4511
|
tableSearchHandler: u
|
|
4507
4512
|
};
|
|
4508
|
-
},
|
|
4513
|
+
}, In = () => {
|
|
4509
4514
|
const e = ve(hl, null);
|
|
4510
4515
|
return e || mo();
|
|
4511
4516
|
}, cd = ["title"], dd = { class: "pv-truncate" }, pd = { key: 0 }, vd = { key: 1 }, fd = /* @__PURE__ */ Z({
|
|
@@ -4572,7 +4577,7 @@ const xl = (e) => {
|
|
|
4572
4577
|
role: "list",
|
|
4573
4578
|
class: "pv-flex",
|
|
4574
4579
|
style: { "--flex-wrap": "wrap", "max-width": "100%" }
|
|
4575
|
-
},
|
|
4580
|
+
}, wd = 4, Sd = /* @__PURE__ */ Z({
|
|
4576
4581
|
__name: "SetFilter",
|
|
4577
4582
|
props: {
|
|
4578
4583
|
enableFocusView: { type: Boolean, default: !1 },
|
|
@@ -4595,36 +4600,36 @@ const xl = (e) => {
|
|
|
4595
4600
|
isServerSideFilter: v,
|
|
4596
4601
|
setFilterValueSearchText: f,
|
|
4597
4602
|
setFilterSelectedValues: h
|
|
4598
|
-
} =
|
|
4603
|
+
} = In(), { computedFocuses: k, handleFocusUpdate: C, isFocused: S, removeFocus: R, computedFocusType: T, shouldShowFocusButton: D } = Vn(), M = ve(Ja, P(!1)), g = P([]), F = P([]), w = b(() => n.filterColDef.field || ""), E = b(() => n.filterColDef.filter || ""), N = b(() => n.filterColDef.headerName || ""), ee = P(!1), X = b(() => n.filterStyle == "vertical"), U = b(() => td(n.filterColDef)), pe = P(""), me = () => Object.entries(i.value).filter(([K, Q]) => K !== w.value).reduce((K, [Q, ne]) => Math.max(K, ne), 0), G = (K = !1) => {
|
|
4599
4604
|
const Q = el(n.filterColDef, a.value);
|
|
4600
4605
|
K ? g.value = Q : g.value = Array.from(
|
|
4601
|
-
/* @__PURE__ */ new Set([...p(
|
|
4606
|
+
/* @__PURE__ */ new Set([...p(w.value), ...Q])
|
|
4602
4607
|
);
|
|
4603
4608
|
}, H = async (K = !1, Q = !1) => {
|
|
4604
4609
|
if (!o.value) return;
|
|
4605
4610
|
const ne = await fo(o.value, n.filterColDef);
|
|
4606
4611
|
if (!ne) return;
|
|
4607
|
-
const ze = me() || 0, Pe = u.value[
|
|
4612
|
+
const ze = me() || 0, Pe = u.value[w.value] || 0, Nt = K && d.value[w.value] !== !0 && ze >= Pe;
|
|
4608
4613
|
v.value && (Q || Nt) && ne.refreshFilterValues(), F.value = B(ne.getFilterValues());
|
|
4609
4614
|
}, B = (K) => K.sort((Q, ne) => {
|
|
4610
4615
|
const ze = g.value.includes(Q), Pe = g.value.includes(ne);
|
|
4611
4616
|
return ze && !Pe ? -1 : !ze && Pe ? 1 : 0;
|
|
4612
4617
|
}), re = (K) => {
|
|
4613
|
-
const Q = m(
|
|
4618
|
+
const Q = m(w.value, K);
|
|
4614
4619
|
return U.value ? U.value({
|
|
4615
4620
|
value: K,
|
|
4616
4621
|
context: Q
|
|
4617
4622
|
}) : K;
|
|
4618
|
-
}, de = b(() => Xn(n.filterColDef)), se = b(() => la(n.filterColDef)), J = b(() => Xn(n.filterColDef)), fe = b(() => la(n.filterColDef)), Te = b(() => !Le(n.filterColDef).filterSearch), Ge = b(() => Le(n.filterColDef).emptyFilterResultsRenderer), Oe = b(() => Le(n.filterColDef).filterOptionsRenderer), ot = b(() => Le(n.filterColDef).filterHeaderRenderer), qe = b(() => Le(n.filterColDef).filterFooterRenderer), et = b(() => de.value ? g.value.length >= de.value : !1), _e = b(() => F.value.filter((K) => K != null && !g.value.includes(K))),
|
|
4623
|
+
}, de = b(() => Xn(n.filterColDef)), se = b(() => la(n.filterColDef)), J = b(() => Xn(n.filterColDef)), fe = b(() => la(n.filterColDef)), Te = b(() => !Le(n.filterColDef).filterSearch), Ge = b(() => Le(n.filterColDef).emptyFilterResultsRenderer), Oe = b(() => Le(n.filterColDef).filterOptionsRenderer), ot = b(() => Le(n.filterColDef).filterHeaderRenderer), qe = b(() => Le(n.filterColDef).filterFooterRenderer), et = b(() => de.value ? g.value.length >= de.value : !1), _e = b(() => F.value.filter((K) => K != null && !g.value.includes(K))), Ie = b(() => F.value.length === 1 && F.value[0] === null && g.value.length === 0), ht = (K) => Ie.value || m(w.value, K)?.isSelectable === !1 ? !0 : se.value ? !1 : et.value && !g.value.includes(K), dt = b(() => F.value.filter((Q, ne) => F.value.indexOf(Q) === ne).filter((Q) => Q != null && Q !== "").map((Q) => {
|
|
4619
4624
|
let ne = J.value ? "suggestions" : null;
|
|
4620
|
-
return m(
|
|
4625
|
+
return m(w.value, Q)?.isPreference && (ne = "preferences"), {
|
|
4621
4626
|
id: Q,
|
|
4622
4627
|
text: re(Q),
|
|
4623
4628
|
groupingLabel: ne,
|
|
4624
4629
|
disabled: ht(Q),
|
|
4625
|
-
renderer: D(
|
|
4630
|
+
renderer: D(w.value) ? fd : Oe.value,
|
|
4626
4631
|
rendererProps: {
|
|
4627
|
-
filterField:
|
|
4632
|
+
filterField: w.value,
|
|
4628
4633
|
onFocusUpdate: st
|
|
4629
4634
|
},
|
|
4630
4635
|
classList: ["option-label"]
|
|
@@ -4636,20 +4641,20 @@ const xl = (e) => {
|
|
|
4636
4641
|
})),
|
|
4637
4642
|
set: (K) => {
|
|
4638
4643
|
g.value = K.map((Q) => Q.id), rt(), k.value.forEach((Q) => {
|
|
4639
|
-
!g.value.includes(Q) && T.value ===
|
|
4644
|
+
!g.value.includes(Q) && T.value === w.value && R(Q);
|
|
4640
4645
|
}), l("filter-selection-changed");
|
|
4641
4646
|
}
|
|
4642
4647
|
});
|
|
4643
4648
|
ae(
|
|
4644
4649
|
() => i.value,
|
|
4645
4650
|
() => {
|
|
4646
|
-
me() > (u.value[
|
|
4651
|
+
me() > (u.value[w.value] || 0) && H(!0);
|
|
4647
4652
|
},
|
|
4648
4653
|
{ deep: !0 }
|
|
4649
4654
|
), Qt(
|
|
4650
|
-
() => d.value[
|
|
4655
|
+
() => d.value[w.value],
|
|
4651
4656
|
() => {
|
|
4652
|
-
const K = d.value[
|
|
4657
|
+
const K = d.value[w.value];
|
|
4653
4658
|
ee.value && !K ? (H(), ee.value = !1) : K && (ee.value = !0);
|
|
4654
4659
|
},
|
|
4655
4660
|
{ deep: !0 }
|
|
@@ -4658,9 +4663,9 @@ const xl = (e) => {
|
|
|
4658
4663
|
() => {
|
|
4659
4664
|
if (X.value)
|
|
4660
4665
|
if (E.value === "agSetColumnFilter")
|
|
4661
|
-
g.value = r.value?.[
|
|
4666
|
+
g.value = r.value?.[w.value]?.values || [];
|
|
4662
4667
|
else if (E.value === "agMultiColumnFilter") {
|
|
4663
|
-
const K = r.value?.[
|
|
4668
|
+
const K = r.value?.[w.value]?.filterModels?.find(
|
|
4664
4669
|
(Q) => Q && Q.filterType === "set"
|
|
4665
4670
|
);
|
|
4666
4671
|
g.value = K?.values || [];
|
|
@@ -4688,19 +4693,19 @@ const xl = (e) => {
|
|
|
4688
4693
|
), ae(
|
|
4689
4694
|
() => g.value,
|
|
4690
4695
|
(K) => {
|
|
4691
|
-
h(
|
|
4696
|
+
h(w.value, K);
|
|
4692
4697
|
}
|
|
4693
4698
|
), Qt(
|
|
4694
4699
|
() => pe.value,
|
|
4695
4700
|
async (K) => {
|
|
4696
|
-
f(
|
|
4701
|
+
f(w.value, K), await H(!0, !0);
|
|
4697
4702
|
},
|
|
4698
4703
|
{ debounce: 300 }
|
|
4699
4704
|
);
|
|
4700
4705
|
const Me = (K) => {
|
|
4701
4706
|
K && se.value ? g.value = [K] : K && !g.value.includes(K) && (g.value = [...g.value, K]), rt(), l("filter-selection-changed");
|
|
4702
4707
|
}, pt = (K) => {
|
|
4703
|
-
g.value = g.value.filter((Q) => Q !== K), rt(), l("filter-selection-changed"),
|
|
4708
|
+
g.value = g.value.filter((Q) => Q !== K), rt(), l("filter-selection-changed"), S(K, w.value) && R(K);
|
|
4704
4709
|
}, rt = async () => {
|
|
4705
4710
|
if (!o.value) return;
|
|
4706
4711
|
const K = g.value.length > 0 ? g.value : null;
|
|
@@ -4708,12 +4713,12 @@ const xl = (e) => {
|
|
|
4708
4713
|
const ne = await aa(o.value, n.filterColDef, K);
|
|
4709
4714
|
r.value = {
|
|
4710
4715
|
...r.value,
|
|
4711
|
-
[
|
|
4716
|
+
[w.value]: ne
|
|
4712
4717
|
};
|
|
4713
4718
|
return;
|
|
4714
4719
|
}
|
|
4715
4720
|
const Q = await aa(o.value, n.filterColDef, K);
|
|
4716
|
-
o.value.setColumnFilterModel(
|
|
4721
|
+
o.value.setColumnFilterModel(w.value, Q).then(() => {
|
|
4717
4722
|
o.value && o.value.onFilterChanged();
|
|
4718
4723
|
});
|
|
4719
4724
|
}, st = (K) => {
|
|
@@ -4736,13 +4741,13 @@ const xl = (e) => {
|
|
|
4736
4741
|
onHandleClose: (ze) => pt(ne)
|
|
4737
4742
|
}, null, 8, ["label", "onHandleClose"])
|
|
4738
4743
|
]))), 128))
|
|
4739
|
-
])) :
|
|
4744
|
+
])) : I("", !0),
|
|
4740
4745
|
j(q(cc), {
|
|
4741
4746
|
modelValue: tt.value,
|
|
4742
4747
|
"onUpdate:modelValue": Q[1] || (Q[1] = (ne) => tt.value = ne),
|
|
4743
4748
|
searchInput: pe.value,
|
|
4744
4749
|
"onUpdate:searchInput": Q[2] || (Q[2] = (ne) => pe.value = ne),
|
|
4745
|
-
"data-horizontal-filter-field": X.value ? void 0 :
|
|
4750
|
+
"data-horizontal-filter-field": X.value ? void 0 : w.value,
|
|
4746
4751
|
label: X.value ? "" : N.value,
|
|
4747
4752
|
icon: X.value ? "add-circle" : void 0,
|
|
4748
4753
|
variant: X.value ? "ghost" : "secondary",
|
|
@@ -4758,6 +4763,8 @@ const xl = (e) => {
|
|
|
4758
4763
|
overflowX: "auto",
|
|
4759
4764
|
width: "auto"
|
|
4760
4765
|
},
|
|
4766
|
+
disableClearIcon: !!X.value,
|
|
4767
|
+
disableDropdownIcon: !!X.value,
|
|
4761
4768
|
groupings: ["preferences", "suggestions"],
|
|
4762
4769
|
isLoading: ee.value,
|
|
4763
4770
|
onDropdownOpen: Q[3] || (Q[3] = (ne) => H(!0)),
|
|
@@ -4835,7 +4842,7 @@ const xl = (e) => {
|
|
|
4835
4842
|
]),
|
|
4836
4843
|
key: "2"
|
|
4837
4844
|
} : void 0
|
|
4838
|
-
]), 1032, ["modelValue", "searchInput", "data-horizontal-filter-field", "label", "icon", "variant", "counterPosition", "showClear", "showSearchInput", "showDropdown", "overlayTrigger", "options", "popoverCssProperties", "isLoading"])
|
|
4845
|
+
]), 1032, ["modelValue", "searchInput", "data-horizontal-filter-field", "label", "icon", "variant", "counterPosition", "showClear", "showSearchInput", "showDropdown", "overlayTrigger", "options", "popoverCssProperties", "disableClearIcon", "disableDropdownIcon", "isLoading"])
|
|
4839
4846
|
]),
|
|
4840
4847
|
X.value ? (c(), x("div", bd, [
|
|
4841
4848
|
_e.value.length > 0 ? (c(), x("div", xd, [
|
|
@@ -4843,7 +4850,7 @@ const xl = (e) => {
|
|
|
4843
4850
|
Q[6] || (Q[6] = O("li", null, [
|
|
4844
4851
|
O("p", { class: "pv-text-subdued pv-text-body-md" }, "Suggested:")
|
|
4845
4852
|
], -1)),
|
|
4846
|
-
(c(!0), x(te, null, $e(_e.value.filter((ne) => ne !== "" && ne != null).slice(0,
|
|
4853
|
+
(c(!0), x(te, null, $e(_e.value.filter((ne) => ne !== "" && ne != null).slice(0, wd), (ne) => (c(), x("li", {
|
|
4847
4854
|
key: `${N.value}-${ne}-suggest`,
|
|
4848
4855
|
class: oe(ee.value ? "pv-shimmer" : ""),
|
|
4849
4856
|
style: { "max-width": "100%", "line-height": "1rem" }
|
|
@@ -4855,21 +4862,21 @@ const xl = (e) => {
|
|
|
4855
4862
|
}, null, 8, ["disabled", "label", "onHandleClick"])
|
|
4856
4863
|
], 2))), 128))
|
|
4857
4864
|
])
|
|
4858
|
-
])) :
|
|
4859
|
-
])) :
|
|
4865
|
+
])) : I("", !0)
|
|
4866
|
+
])) : I("", !0)
|
|
4860
4867
|
], 64));
|
|
4861
4868
|
}
|
|
4862
|
-
}), sa = /* @__PURE__ */ Ve(
|
|
4869
|
+
}), sa = /* @__PURE__ */ Ve(Sd, [["__scopeId", "data-v-b3ce078a"]]), Fd = { class: "pv-flex" }, kd = { class: "pv-flex" }, $d = { class: "pv-flex pv-space-between pv-stack-8" }, Td = { class: "pv-text-title-lg" }, Pd = {
|
|
4863
4870
|
id: "filter-vertical-drawer",
|
|
4864
4871
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
4865
4872
|
style: { height: "100%" }
|
|
4866
4873
|
}, Od = { class: "pv-full-width" }, Md = {
|
|
4867
4874
|
class: "pv-details pv-stack-12",
|
|
4868
4875
|
open: ""
|
|
4869
|
-
}, Dd = { class: "pv-flex pv-full-width" }, Rd = { class: "pv-text-title-lg" }, Ld = { class: "pv-flex pv-space-between" }, Vd = { class: "pv-flex" },
|
|
4876
|
+
}, Dd = { class: "pv-flex pv-full-width" }, Rd = { class: "pv-text-title-lg" }, Ld = { class: "pv-flex pv-space-between" }, Vd = { class: "pv-flex" }, Id = {
|
|
4870
4877
|
class: "pv-flex",
|
|
4871
4878
|
style: { "--flex-justify": "end", "--flex-gap": "8px", "margin-top": "auto" }
|
|
4872
|
-
},
|
|
4879
|
+
}, Ad = /* @__PURE__ */ Z({
|
|
4873
4880
|
__name: "FilterPanel",
|
|
4874
4881
|
props: {
|
|
4875
4882
|
enableFocusView: { type: Boolean, default: !1 },
|
|
@@ -4880,14 +4887,14 @@ const xl = (e) => {
|
|
|
4880
4887
|
},
|
|
4881
4888
|
emits: ["handle-settings-icon"],
|
|
4882
4889
|
setup(e) {
|
|
4883
|
-
const t = ve($t, P(null)), n = ve(Za, P([])), l = ve(Qa, P(null)), o = e, { filterModelCleared: a, stagedFilterModel: r, filterModel: s } =
|
|
4890
|
+
const t = ve($t, P(null)), n = ve(Za, P([])), l = ve(Qa, P(null)), o = e, { filterModelCleared: a, stagedFilterModel: r, filterModel: s } = In(), i = P(!1), u = P(!1), d = P(""), m = b(() => n.value.filter((g) => Jn(g))), p = b(() => {
|
|
4884
4891
|
const g = d.value?.trim().toLowerCase() || "";
|
|
4885
4892
|
return !g || g === "" ? m.value : n.value.filter((F) => {
|
|
4886
|
-
const
|
|
4887
|
-
return
|
|
4893
|
+
const w = F.headerName?.toLowerCase() || F.field?.toLowerCase();
|
|
4894
|
+
return w ? w.includes(g) : !1;
|
|
4888
4895
|
});
|
|
4889
4896
|
}), v = b(() => {
|
|
4890
|
-
const F = [...n.value.filter((
|
|
4897
|
+
const F = [...n.value.filter((w) => Jn(w))].slice(0, o.maxHorizontalFilters);
|
|
4891
4898
|
return l.value ? [...F.slice(0, o.maxHorizontalFilters - 1), l.value] : F;
|
|
4892
4899
|
}), f = b(() => {
|
|
4893
4900
|
const g = s.value || {};
|
|
@@ -4896,8 +4903,8 @@ const xl = (e) => {
|
|
|
4896
4903
|
h.value = !0;
|
|
4897
4904
|
}, C = () => {
|
|
4898
4905
|
t.value && (h.value = !1, r.value = t.value.getFilterModel(), i.value = !0);
|
|
4899
|
-
}, { clearAllFocuses:
|
|
4900
|
-
r.value = null, t.value && (t.value.setFilterModel(null), t.value.onFilterChanged(), a.value += 1,
|
|
4906
|
+
}, { clearAllFocuses: S } = Vn(), R = () => {
|
|
4907
|
+
r.value = null, t.value && (t.value.setFilterModel(null), t.value.onFilterChanged(), a.value += 1, S(), u.value = !1);
|
|
4901
4908
|
}, T = () => {
|
|
4902
4909
|
i.value = !1, d.value = "";
|
|
4903
4910
|
}, D = () => {
|
|
@@ -4907,17 +4914,17 @@ const xl = (e) => {
|
|
|
4907
4914
|
};
|
|
4908
4915
|
return (g, F) => (c(), x(te, null, [
|
|
4909
4916
|
O("div", Fd, [
|
|
4910
|
-
(c(!0), x(te, null, $e(v.value, (
|
|
4911
|
-
key:
|
|
4917
|
+
(c(!0), x(te, null, $e(v.value, (w) => (c(), x(te, {
|
|
4918
|
+
key: w.field
|
|
4912
4919
|
}, [
|
|
4913
4920
|
q(t) ? (c(), z(sa, {
|
|
4914
4921
|
key: 0,
|
|
4915
4922
|
"enable-focus-view": o.enableFocusView,
|
|
4916
4923
|
"display-preferences-icon": o.displayPreferencesIcon,
|
|
4917
4924
|
"focusable-columns": o.focusableColumns,
|
|
4918
|
-
filterColDef:
|
|
4925
|
+
filterColDef: w,
|
|
4919
4926
|
onHandleSettingsIcon: F[0] || (F[0] = (E) => g.$emit("handle-settings-icon", E))
|
|
4920
|
-
}, null, 8, ["enable-focus-view", "display-preferences-icon", "focusable-columns", "filterColDef"])) :
|
|
4927
|
+
}, null, 8, ["enable-focus-view", "display-preferences-icon", "focusable-columns", "filterColDef"])) : I("", !0)
|
|
4921
4928
|
], 64))), 128)),
|
|
4922
4929
|
O("div", kd, [
|
|
4923
4930
|
o.enableVerticalPanel ? (c(), z(q(ye), {
|
|
@@ -4926,28 +4933,28 @@ const xl = (e) => {
|
|
|
4926
4933
|
onClick: C,
|
|
4927
4934
|
variant: "ghost",
|
|
4928
4935
|
"left-icon": "filter"
|
|
4929
|
-
})) :
|
|
4936
|
+
})) : I("", !0),
|
|
4930
4937
|
f.value > 0 ? (c(), x("button", {
|
|
4931
4938
|
key: 1,
|
|
4932
4939
|
class: "pv-button-ghost",
|
|
4933
|
-
onClick: F[1] || (F[1] = (
|
|
4940
|
+
onClick: F[1] || (F[1] = (w) => u.value = !0)
|
|
4934
4941
|
}, [
|
|
4935
4942
|
j(q(be), { name: "close" }),
|
|
4936
4943
|
F[12] || (F[12] = Be(" Clear All Filters ", -1)),
|
|
4937
|
-
f.value > 0 ? (c(), z(q(
|
|
4944
|
+
f.value > 0 ? (c(), z(q(St), {
|
|
4938
4945
|
key: 0,
|
|
4939
4946
|
value: f.value,
|
|
4940
4947
|
variant: "tertiary"
|
|
4941
|
-
}, null, 8, ["value"])) :
|
|
4942
|
-
])) :
|
|
4948
|
+
}, null, 8, ["value"])) : I("", !0)
|
|
4949
|
+
])) : I("", !0)
|
|
4943
4950
|
]),
|
|
4944
4951
|
o.enableVerticalPanel ? (c(), z(q(Du), {
|
|
4945
4952
|
key: 0,
|
|
4946
4953
|
modelValue: i.value,
|
|
4947
|
-
"onUpdate:modelValue": F[8] || (F[8] = (
|
|
4954
|
+
"onUpdate:modelValue": F[8] || (F[8] = (w) => i.value = w),
|
|
4948
4955
|
class: "pv-drawer pv-surface",
|
|
4949
4956
|
"close-on-click-outside": !0,
|
|
4950
|
-
onClickOutside: F[9] || (F[9] = (
|
|
4957
|
+
onClickOutside: F[9] || (F[9] = (w) => M()),
|
|
4951
4958
|
style: { "max-width": "450px", "z-index": "10" }
|
|
4952
4959
|
}, {
|
|
4953
4960
|
header: ce(() => [
|
|
@@ -4955,14 +4962,14 @@ const xl = (e) => {
|
|
|
4955
4962
|
O("p", Td, "All Filters (" + Y(m.value.length) + ")", 1),
|
|
4956
4963
|
O("button", {
|
|
4957
4964
|
class: "pv-button-ghost",
|
|
4958
|
-
onClick: F[2] || (F[2] = (
|
|
4965
|
+
onClick: F[2] || (F[2] = (w) => D())
|
|
4959
4966
|
}, [
|
|
4960
4967
|
j(q(be), { name: "close" })
|
|
4961
4968
|
])
|
|
4962
4969
|
]),
|
|
4963
4970
|
j(q(ln), {
|
|
4964
4971
|
modelValue: d.value,
|
|
4965
|
-
"onUpdate:modelValue": F[3] || (F[3] = (
|
|
4972
|
+
"onUpdate:modelValue": F[3] || (F[3] = (w) => d.value = w),
|
|
4966
4973
|
placeholder: "Search Filters"
|
|
4967
4974
|
}, null, 8, ["modelValue"])
|
|
4968
4975
|
]),
|
|
@@ -4970,19 +4977,19 @@ const xl = (e) => {
|
|
|
4970
4977
|
O("div", Ld, [
|
|
4971
4978
|
O("button", {
|
|
4972
4979
|
class: "pv-button-ghost",
|
|
4973
|
-
onClick: F[5] || (F[5] = (
|
|
4980
|
+
onClick: F[5] || (F[5] = (w) => R())
|
|
4974
4981
|
}, "Clear All"),
|
|
4975
4982
|
O("div", Vd, [
|
|
4976
4983
|
j(q(ye), {
|
|
4977
4984
|
variant: "ghost",
|
|
4978
4985
|
label: "Cancel",
|
|
4979
|
-
onClick: F[6] || (F[6] = (
|
|
4986
|
+
onClick: F[6] || (F[6] = (w) => D())
|
|
4980
4987
|
}),
|
|
4981
4988
|
h.value ? (c(), z(q(ye), {
|
|
4982
4989
|
key: 0,
|
|
4983
4990
|
variant: "primary",
|
|
4984
4991
|
label: "Apply",
|
|
4985
|
-
onClick: F[7] || (F[7] = (
|
|
4992
|
+
onClick: F[7] || (F[7] = (w) => M())
|
|
4986
4993
|
})) : (c(), z(q(ye), {
|
|
4987
4994
|
key: 1,
|
|
4988
4995
|
variant: "primary",
|
|
@@ -4995,27 +5002,27 @@ const xl = (e) => {
|
|
|
4995
5002
|
default: ce(() => [
|
|
4996
5003
|
O("div", Pd, [
|
|
4997
5004
|
O("div", Od, [
|
|
4998
|
-
(c(!0), x(te, null, $e(p.value, (
|
|
4999
|
-
key:
|
|
5005
|
+
(c(!0), x(te, null, $e(p.value, (w, E) => (c(), x("div", {
|
|
5006
|
+
key: w.field,
|
|
5000
5007
|
class: oe([{
|
|
5001
5008
|
"pv-border-bottom": E < p.value.length - 1
|
|
5002
5009
|
}, "pv-stack-12"])
|
|
5003
5010
|
}, [
|
|
5004
5011
|
O("details", Md, [
|
|
5005
5012
|
O("summary", Dd, [
|
|
5006
|
-
O("span", Rd, Y(
|
|
5013
|
+
O("span", Rd, Y(w.headerName), 1)
|
|
5007
5014
|
]),
|
|
5008
5015
|
O("div", null, [
|
|
5009
5016
|
q(t) ? (c(), z(sa, {
|
|
5010
5017
|
key: 0,
|
|
5011
5018
|
"filter-style": "vertical",
|
|
5012
5019
|
"enable-focus-view": o.enableFocusView,
|
|
5013
|
-
filterColDef:
|
|
5020
|
+
filterColDef: w,
|
|
5014
5021
|
"display-preferences-icon": o.displayPreferencesIcon,
|
|
5015
5022
|
"focusable-columns": o.focusableColumns,
|
|
5016
5023
|
onFilterSelectionChanged: k,
|
|
5017
5024
|
onHandleSettingsIcon: F[4] || (F[4] = (N) => g.$emit("handle-settings-icon", N))
|
|
5018
|
-
}, null, 8, ["enable-focus-view", "filterColDef", "display-preferences-icon", "focusable-columns"])) :
|
|
5025
|
+
}, null, 8, ["enable-focus-view", "filterColDef", "display-preferences-icon", "focusable-columns"])) : I("", !0)
|
|
5019
5026
|
])
|
|
5020
5027
|
])
|
|
5021
5028
|
], 2))), 128))
|
|
@@ -5023,11 +5030,11 @@ const xl = (e) => {
|
|
|
5023
5030
|
])
|
|
5024
5031
|
]),
|
|
5025
5032
|
_: 1
|
|
5026
|
-
}, 8, ["modelValue"])) :
|
|
5033
|
+
}, 8, ["modelValue"])) : I("", !0)
|
|
5027
5034
|
]),
|
|
5028
5035
|
j(q(Ci), {
|
|
5029
5036
|
modelValue: u.value,
|
|
5030
|
-
"onUpdate:modelValue": F[11] || (F[11] = (
|
|
5037
|
+
"onUpdate:modelValue": F[11] || (F[11] = (w) => u.value = w),
|
|
5031
5038
|
header: "Clear All Filters",
|
|
5032
5039
|
style: { top: "50%" }
|
|
5033
5040
|
}, {
|
|
@@ -5035,12 +5042,12 @@ const xl = (e) => {
|
|
|
5035
5042
|
O("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)
|
|
5036
5043
|
])]),
|
|
5037
5044
|
footer: ce(() => [
|
|
5038
|
-
O("div",
|
|
5045
|
+
O("div", Id, [
|
|
5039
5046
|
j(q(ye), {
|
|
5040
5047
|
label: "Cancel",
|
|
5041
5048
|
variant: "secondary",
|
|
5042
5049
|
size: "lg",
|
|
5043
|
-
onClick: F[10] || (F[10] = (
|
|
5050
|
+
onClick: F[10] || (F[10] = (w) => u.value = !1)
|
|
5044
5051
|
}),
|
|
5045
5052
|
j(q(ye), {
|
|
5046
5053
|
label: "Clear All Filters",
|
|
@@ -5080,7 +5087,7 @@ const xl = (e) => {
|
|
|
5080
5087
|
u.value = !0, i.value && l.params.showColumnMenu(i.value, h);
|
|
5081
5088
|
}, C = (T) => {
|
|
5082
5089
|
o.value = T.enableFilterButton, a.value = T.enableSorting || !1, r.value = T.displayName, s.value = xl(T.column.getColDef().context?.dataType), r.value = Xc(r.value, T.column.getColDef().context?.dataType);
|
|
5083
|
-
},
|
|
5090
|
+
}, S = () => {
|
|
5084
5091
|
a.value && l.params.progressSort(!1);
|
|
5085
5092
|
};
|
|
5086
5093
|
al(() => {
|
|
@@ -5091,8 +5098,8 @@ const xl = (e) => {
|
|
|
5091
5098
|
}
|
|
5092
5099
|
return t({ refresh: R }), (T, D) => (c(), x("div", {
|
|
5093
5100
|
class: "ag-custom-header-cell pv-flex pv-full-width pv-space-between",
|
|
5094
|
-
style:
|
|
5095
|
-
onClick:
|
|
5101
|
+
style: Se(v.value),
|
|
5102
|
+
onClick: S
|
|
5096
5103
|
}, [
|
|
5097
5104
|
O("div", {
|
|
5098
5105
|
class: oe(["pv-flex", { "pv-text-right": p.value }])
|
|
@@ -5101,19 +5108,19 @@ const xl = (e) => {
|
|
|
5101
5108
|
key: 0,
|
|
5102
5109
|
name: s.value,
|
|
5103
5110
|
class: "pv-text-subdued"
|
|
5104
|
-
}, null, 8, ["name"])) :
|
|
5111
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
5105
5112
|
O("p", null, Y(r.value), 1),
|
|
5106
5113
|
a.value && m.value !== "" ? (c(), z(be, {
|
|
5107
5114
|
key: 1,
|
|
5108
5115
|
name: m.value
|
|
5109
|
-
}, null, 8, ["name"])) :
|
|
5116
|
+
}, null, 8, ["name"])) : I("", !0)
|
|
5110
5117
|
], 2),
|
|
5111
5118
|
d.value ? (c(), x("div", Bd, [
|
|
5112
5119
|
O("div", {
|
|
5113
5120
|
ref_key: "menuButton",
|
|
5114
5121
|
ref: i,
|
|
5115
5122
|
class: "ag-header-cell-menu-button",
|
|
5116
|
-
style:
|
|
5123
|
+
style: Se(f.value)
|
|
5117
5124
|
}, [
|
|
5118
5125
|
j(ye, {
|
|
5119
5126
|
size: "xl",
|
|
@@ -5122,7 +5129,7 @@ const xl = (e) => {
|
|
|
5122
5129
|
onClick: kn(k, ["stop", "prevent"])
|
|
5123
5130
|
})
|
|
5124
5131
|
], 4)
|
|
5125
|
-
])) :
|
|
5132
|
+
])) : I("", !0)
|
|
5126
5133
|
], 4));
|
|
5127
5134
|
}
|
|
5128
5135
|
}), ia = /* @__PURE__ */ Ve(Ed, [["__scopeId", "data-v-58d16af9"]]), Nd = pa.withParams({
|
|
@@ -5275,7 +5282,7 @@ const xl = (e) => {
|
|
|
5275
5282
|
const l = t.params.valueFormatted || t.params.value || "";
|
|
5276
5283
|
return l.trim() === "" ? null : l;
|
|
5277
5284
|
});
|
|
5278
|
-
return (l, o) => n.value ? (c(), x("div", Ud, Y(n.value), 1)) :
|
|
5285
|
+
return (l, o) => n.value ? (c(), x("div", Ud, Y(n.value), 1)) : I("", !0);
|
|
5279
5286
|
}
|
|
5280
5287
|
}), Yd = {
|
|
5281
5288
|
key: 0,
|
|
@@ -5292,7 +5299,7 @@ const xl = (e) => {
|
|
|
5292
5299
|
});
|
|
5293
5300
|
return (o, a) => (c(), x("div", null, [
|
|
5294
5301
|
O("p", null, [
|
|
5295
|
-
n.value ? (c(), x("span", Yd, Y(n.value), 1)) :
|
|
5302
|
+
n.value ? (c(), x("span", Yd, Y(n.value), 1)) : I("", !0),
|
|
5296
5303
|
Be(" " + Y(l.value), 1)
|
|
5297
5304
|
])
|
|
5298
5305
|
]));
|
|
@@ -5393,9 +5400,9 @@ const xl = (e) => {
|
|
|
5393
5400
|
class: "pv-text-body-md"
|
|
5394
5401
|
}, Y(a.value), 513),
|
|
5395
5402
|
s.value ? (c(), x("p", Jd, [
|
|
5396
|
-
o.value ?
|
|
5403
|
+
o.value ? I("", !0) : (c(), x("span", e1, "Search in ")),
|
|
5397
5404
|
O("span", t1, Y(s.value), 1)
|
|
5398
|
-
])) :
|
|
5405
|
+
])) : I("", !0)
|
|
5399
5406
|
])
|
|
5400
5407
|
])
|
|
5401
5408
|
]));
|
|
@@ -5443,7 +5450,7 @@ const xl = (e) => {
|
|
|
5443
5450
|
key: 0,
|
|
5444
5451
|
label: `+${r.value}`,
|
|
5445
5452
|
onHandleClick: m[0] || (m[0] = (p) => l.value = !0)
|
|
5446
|
-
}, null, 8, ["label"])) :
|
|
5453
|
+
}, null, 8, ["label"])) : I("", !0)
|
|
5447
5454
|
], 64));
|
|
5448
5455
|
}
|
|
5449
5456
|
}), o1 = ["disabled", "placeholder", "data-invalid"], r1 = {
|
|
@@ -5505,7 +5512,7 @@ const xl = (e) => {
|
|
|
5505
5512
|
})), M;
|
|
5506
5513
|
}), C = () => {
|
|
5507
5514
|
t.enableCustomOptionsInput && h(), i.value = !1, u.value = !1, d.value = !1;
|
|
5508
|
-
},
|
|
5515
|
+
}, S = (M) => {
|
|
5509
5516
|
try {
|
|
5510
5517
|
o.value = r(o.value, M), D();
|
|
5511
5518
|
} catch (g) {
|
|
@@ -5530,13 +5537,13 @@ const xl = (e) => {
|
|
|
5530
5537
|
onFocus: T,
|
|
5531
5538
|
onClick: R
|
|
5532
5539
|
}, [
|
|
5533
|
-
e.hideSearchIcon ?
|
|
5540
|
+
e.hideSearchIcon ? I("", !0) : (c(), z(be, {
|
|
5534
5541
|
key: 0,
|
|
5535
5542
|
name: "search"
|
|
5536
5543
|
})),
|
|
5537
5544
|
O("div", {
|
|
5538
5545
|
class: "pv-flex pv-full-width pv-inset-inline pv-query-builder-input",
|
|
5539
|
-
style:
|
|
5546
|
+
style: Se([{ "--inset-size": "4px", "--flex-gap": "4px" }, e.enableWrapQueryTerms || d.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
5540
5547
|
}, [
|
|
5541
5548
|
j(a1, {
|
|
5542
5549
|
modelValue: o.value,
|
|
@@ -5565,8 +5572,8 @@ const xl = (e) => {
|
|
|
5565
5572
|
leftIcon: "close",
|
|
5566
5573
|
size: "md",
|
|
5567
5574
|
onClick: f
|
|
5568
|
-
})) :
|
|
5569
|
-
v.value ? (c(), x("p", r1, Y(p.value), 1)) :
|
|
5575
|
+
})) : I("", !0),
|
|
5576
|
+
v.value ? (c(), x("p", r1, Y(p.value), 1)) : I("", !0),
|
|
5570
5577
|
k.value.length > 0 || e.optionsLoading ? (c(), z(tl, {
|
|
5571
5578
|
key: 3,
|
|
5572
5579
|
open: i.value,
|
|
@@ -5575,8 +5582,8 @@ const xl = (e) => {
|
|
|
5575
5582
|
default: ce(() => [
|
|
5576
5583
|
e.optionsLoading ? (c(), x("div", s1, [
|
|
5577
5584
|
j(q(Tn), { variant: "dark" })
|
|
5578
|
-
])) : (c(!0), x(te, { key: 0 }, $e(k.value, (F,
|
|
5579
|
-
key: `${
|
|
5585
|
+
])) : (c(!0), x(te, { key: 0 }, $e(k.value, (F, w) => (c(), z(Qe, {
|
|
5586
|
+
key: `${w}-${F.searchText}`,
|
|
5580
5587
|
id: F.id,
|
|
5581
5588
|
text: F.text,
|
|
5582
5589
|
icon: F.icon,
|
|
@@ -5584,11 +5591,11 @@ const xl = (e) => {
|
|
|
5584
5591
|
renderer: l1,
|
|
5585
5592
|
"renderer-props": F.queryTerm,
|
|
5586
5593
|
"search-text": F.searchText,
|
|
5587
|
-
onHandleSelected: (E) =>
|
|
5594
|
+
onHandleSelected: (E) => S(F)
|
|
5588
5595
|
}, null, 8, ["id", "text", "icon", "disabled", "renderer-props", "search-text", "onHandleSelected"]))), 128))
|
|
5589
5596
|
]),
|
|
5590
5597
|
_: 1
|
|
5591
|
-
}, 8, ["open"])) :
|
|
5598
|
+
}, 8, ["open"])) : I("", !0)
|
|
5592
5599
|
], 32)), [
|
|
5593
5600
|
[q($n), C]
|
|
5594
5601
|
]);
|
|
@@ -5600,7 +5607,7 @@ const xl = (e) => {
|
|
|
5600
5607
|
searchStyle: {}
|
|
5601
5608
|
},
|
|
5602
5609
|
setup(e) {
|
|
5603
|
-
const t = e, n = P(null), l = P(""), o = P([]), a = P(!1), r = ve($t, P(null)), { isServerSideFilter: s, filterModel: i, tableSearchFilterModel: u, tableSearchHandler: d } =
|
|
5610
|
+
const t = e, n = P(null), l = P(""), o = P([]), a = P(!1), r = ve($t, P(null)), { isServerSideFilter: s, filterModel: i, tableSearchFilterModel: u, tableSearchHandler: d } = In(), m = (f) => {
|
|
5604
5611
|
r?.value && (s.value ? console.error("Server-side filtering with table free text search is not yet supported.") : r.value.setGridOption("quickFilterText", f));
|
|
5605
5612
|
}, p = (f) => {
|
|
5606
5613
|
if (r?.value) {
|
|
@@ -5622,15 +5629,15 @@ const xl = (e) => {
|
|
|
5622
5629
|
filterModel: i.value
|
|
5623
5630
|
};
|
|
5624
5631
|
a.value = !0;
|
|
5625
|
-
const C = (await d.value?.(h))?.filter((
|
|
5626
|
-
o.value = C.map((
|
|
5632
|
+
const C = (await d.value?.(h))?.filter((S) => S !== null) || [];
|
|
5633
|
+
o.value = C.map((S) => {
|
|
5627
5634
|
let R = "search";
|
|
5628
|
-
const T = r.value?.getColumnDef(
|
|
5635
|
+
const T = r.value?.getColumnDef(S.queryField || "");
|
|
5629
5636
|
return T && (R = xl(T.context?.dataType || null) || "search"), {
|
|
5630
|
-
id: `${
|
|
5631
|
-
text:
|
|
5637
|
+
id: `${S.queryField}-${S.queryText}`,
|
|
5638
|
+
text: S.queryText,
|
|
5632
5639
|
icon: R,
|
|
5633
|
-
queryTerm:
|
|
5640
|
+
queryTerm: S
|
|
5634
5641
|
};
|
|
5635
5642
|
}), a.value = !1;
|
|
5636
5643
|
};
|
|
@@ -5762,8 +5769,8 @@ const xl = (e) => {
|
|
|
5762
5769
|
Vo,
|
|
5763
5770
|
Jo,
|
|
5764
5771
|
er,
|
|
5765
|
-
Ao,
|
|
5766
5772
|
Io,
|
|
5773
|
+
Ao,
|
|
5767
5774
|
tr,
|
|
5768
5775
|
nr,
|
|
5769
5776
|
lr,
|
|
@@ -5798,9 +5805,9 @@ const xl = (e) => {
|
|
|
5798
5805
|
L.success({ rowData: [] }), D.value = !0;
|
|
5799
5806
|
return;
|
|
5800
5807
|
}
|
|
5801
|
-
const V = L.success, _ = L.request.groupKeys?.length || 0, y = L.request.rowGroupCols?.length || 0, $ = B.value || {},
|
|
5808
|
+
const V = L.success, _ = L.request.groupKeys?.length || 0, y = L.request.rowGroupCols?.length || 0, $ = B.value || {}, A = _ === y;
|
|
5802
5809
|
let W = !1;
|
|
5803
|
-
y > 0 && _ === 0 && (W = L.request.rowGroupCols[0].id in $), (
|
|
5810
|
+
y > 0 && _ === 0 && (W = L.request.rowGroupCols[0].id in $), (A || W) && Object.keys($).length > 0 && (L.request.filterModel = od(C, L.request.filterModel, $)), L.success = (ue) => {
|
|
5804
5811
|
if (a.enableFocusView && J.value.length > 0 && se.value && ue.rowData) {
|
|
5805
5812
|
const le = na(ue.rowData, se.value, J.value);
|
|
5806
5813
|
if (le) {
|
|
@@ -5814,7 +5821,7 @@ const xl = (e) => {
|
|
|
5814
5821
|
} : null, d = "filterValuesSetHandler" in a && a.filterValuesSetHandler ? async (L) => {
|
|
5815
5822
|
let V = [];
|
|
5816
5823
|
const _ = { ...U.value };
|
|
5817
|
-
!D.value &&
|
|
5824
|
+
!D.value && S ? V = el(L.colDef, _) : V = await G(L.api, L.colDef, L.column, _), L.success([...V, ""]);
|
|
5818
5825
|
} : null, m = (L) => {
|
|
5819
5826
|
const V = L.node, _ = L.column?.getColId();
|
|
5820
5827
|
return !V.group || !_ ? !1 : Ge.value.some((y) => {
|
|
@@ -5842,7 +5849,7 @@ const xl = (e) => {
|
|
|
5842
5849
|
};
|
|
5843
5850
|
if (!V.column?.getColDef().cellRenderer && a.displayRowNumber && T.value.length === 0) {
|
|
5844
5851
|
const _ = V.api.getAllDisplayedColumns() || [], y = V.column;
|
|
5845
|
-
if (_.findIndex((
|
|
5852
|
+
if (_.findIndex((A) => A === y) === 0)
|
|
5846
5853
|
return {
|
|
5847
5854
|
component: Zd,
|
|
5848
5855
|
params: V
|
|
@@ -5863,7 +5870,7 @@ const xl = (e) => {
|
|
|
5863
5870
|
let V = L.column?.getColId();
|
|
5864
5871
|
if (L.column && tt(L.column) && (V = Oe.value?.getColId() || ""), !Pe(V)) {
|
|
5865
5872
|
const y = L.api.getColumn(V)?.getColDef();
|
|
5866
|
-
y && (R.value = y,
|
|
5873
|
+
y && (R.value = y, wt(() => {
|
|
5867
5874
|
Pe(V);
|
|
5868
5875
|
}));
|
|
5869
5876
|
}
|
|
@@ -5876,17 +5883,17 @@ const xl = (e) => {
|
|
|
5876
5883
|
u && d && Jn(L) && (V = rd(L, d));
|
|
5877
5884
|
const _ = L.context;
|
|
5878
5885
|
return _ && (V = k(V, _)), V;
|
|
5879
|
-
}) || [],
|
|
5886
|
+
}) || [], S = Zn(a.initialGridState, C), R = P(null), T = P([]), D = P(!1), M = b(() => {
|
|
5880
5887
|
if (T.value.length > 0) {
|
|
5881
5888
|
const L = T.value[0], V = C.find((y) => y.field === L);
|
|
5882
5889
|
if ((!U.value || !U.value[L]) && V?.context?.filterRequiredToGroup)
|
|
5883
5890
|
return V.headerName;
|
|
5884
5891
|
}
|
|
5885
5892
|
return null;
|
|
5886
|
-
}), g = b(() => (!U.value || Object.keys(U.value).length === 0) && a.requireFiltersToShowData ? !1 : M.value === null), F = b(() => M.value ? `Select at least one value for "${M.value}" to view data.` : "Select a filter to view data."),
|
|
5893
|
+
}), g = b(() => (!U.value || Object.keys(U.value).length === 0) && a.requireFiltersToShowData ? !1 : M.value === null), F = b(() => M.value ? `Select at least one value for "${M.value}" to view data.` : "Select a filter to view data."), w = da(null), E = P([]), N = In(), ee = ve(xn, null), X = ee || bl(), U = N.filterModel, pe = N.filterValueMap, me = N.filterValueSelectedMetadataMap, G = N.fetchFilterValues, H = N.filterStoreHandler, B = N.tableSearchFilterModel, re = N.tableSearchHandler;
|
|
5887
5894
|
H.value = a.filterValuesSetHandler, re.value = a.tableSearchHandler, pe.value = a.initialFilterValueMap || {};
|
|
5888
5895
|
const de = P(null), se = b(() => X?.computedFocusType.value || null), J = b(() => X?.computedFocuses.value || []), fe = b(() => C.filter((L) => L.filter)), Te = b(() => C.filter((L) => L.enableRowGroup)), Ge = b(() => C.filter((L) => L.aggFunc)), Oe = P(null), ot = P({}), qe = P(1), et = P(0);
|
|
5889
|
-
he(hl, N), he(xn, X), he(Ya, E), he($t,
|
|
5896
|
+
he(hl, N), he(xn, X), he(Ya, E), he($t, w), he(Dc, de), he(Qa, R), he(Za, fe), he(Ln, Te), he(yl, T), he(Xa, Oe), he(gl, ot), he(Ja, D), he(eo, qe), he(to, et);
|
|
5890
5897
|
const _e = b(() => !a.enableFocusView && !a.rowData || a.enableFocusView && !J.value.length && !se.value ? a.rowData : na(a.rowData, se.value, J.value));
|
|
5891
5898
|
ae(
|
|
5892
5899
|
() => J.value,
|
|
@@ -5894,33 +5901,33 @@ const xl = (e) => {
|
|
|
5894
5901
|
i("focus-update", { filterField: se.value, focuses: L });
|
|
5895
5902
|
}
|
|
5896
5903
|
);
|
|
5897
|
-
const
|
|
5898
|
-
|
|
5904
|
+
const Ie = (L) => {
|
|
5905
|
+
w.value = L.api;
|
|
5899
5906
|
const V = a.leftPinnedColumnName ?? (T.value.length ? T.value[0] : null), _ = [];
|
|
5900
|
-
a.hideAllRowGroupedColumns && T.value.forEach((y) => _.push(y)), V && (Oe.value = L.api.getColumn(V), _.push(V)),
|
|
5907
|
+
a.hideAllRowGroupedColumns && T.value.forEach((y) => _.push(y)), V && (Oe.value = L.api.getColumn(V), _.push(V)), S && on(S), L.api.setColumnsVisible([..._], !1), de.value = L.api.getAllGridColumns(), qe.value = L.api.paginationGetCurrentPage() + 1, et.value = L.api.paginationGetTotalPages(), i("grid-ready", L);
|
|
5901
5908
|
}, ht = (L) => {
|
|
5902
|
-
if (
|
|
5909
|
+
if (w.value) {
|
|
5903
5910
|
const V = L.api.getFilterModel();
|
|
5904
5911
|
oa(U.value, V) || (U.value = V, D.value && i("filter-changed", L));
|
|
5905
5912
|
}
|
|
5906
5913
|
}, dt = (L) => {
|
|
5907
5914
|
E.value = L.api?.getState()?.sort?.sortModel || [], D.value && i("sort-changed", L);
|
|
5908
5915
|
}, tt = (L) => L.getColId() && L.getColId().includes("ag-Grid-AutoColumn"), Me = P(!1), pt = async (L) => {
|
|
5909
|
-
if (!
|
|
5916
|
+
if (!w.value) {
|
|
5910
5917
|
console.error("Grid API not available");
|
|
5911
5918
|
return;
|
|
5912
5919
|
}
|
|
5913
5920
|
if (!u)
|
|
5914
5921
|
return;
|
|
5915
5922
|
const V = L || { route: [], purge: !0 };
|
|
5916
|
-
|
|
5923
|
+
w.value.refreshServerSide(V);
|
|
5917
5924
|
}, rt = () => me.value, st = async () => {
|
|
5918
|
-
if (Me.value = !0, !
|
|
5925
|
+
if (Me.value = !0, !w.value)
|
|
5919
5926
|
return console.error("Grid API not available"), Me.value = !1, null;
|
|
5920
5927
|
try {
|
|
5921
|
-
const L = a.serverSideCsvHandler, V =
|
|
5928
|
+
const L = a.serverSideCsvHandler, V = w.value?.getState(), _ = {
|
|
5922
5929
|
rowGroupCols: [],
|
|
5923
|
-
valueCols:
|
|
5930
|
+
valueCols: w.value?.getValueColumns().map(($) => ({
|
|
5924
5931
|
id: $.getId(),
|
|
5925
5932
|
field: $.getColDef().field,
|
|
5926
5933
|
aggFunc: typeof $.getColDef().aggFunc == "string" ? $.getColDef().aggFunc : void 0,
|
|
@@ -5938,7 +5945,7 @@ const xl = (e) => {
|
|
|
5938
5945
|
const $ = {
|
|
5939
5946
|
request: _,
|
|
5940
5947
|
parentNode: {},
|
|
5941
|
-
api:
|
|
5948
|
+
api: w.value,
|
|
5942
5949
|
context: void 0,
|
|
5943
5950
|
success: () => {
|
|
5944
5951
|
},
|
|
@@ -5948,16 +5955,16 @@ const xl = (e) => {
|
|
|
5948
5955
|
return await a.serverSideCsvHandler($), Me.value = !1, null;
|
|
5949
5956
|
}
|
|
5950
5957
|
const y = a.serverSideRowHandler;
|
|
5951
|
-
return y ? await new Promise(($,
|
|
5952
|
-
const W =
|
|
5958
|
+
return y ? await new Promise(($, A) => {
|
|
5959
|
+
const W = w.value?.getState(), ie = {
|
|
5953
5960
|
request: _,
|
|
5954
5961
|
parentNode: {},
|
|
5955
|
-
api:
|
|
5962
|
+
api: w.value,
|
|
5956
5963
|
context: void 0,
|
|
5957
5964
|
success: (ue) => {
|
|
5958
|
-
const le =
|
|
5965
|
+
const le = w.value?.getRowGroupColumns().map((Re) => Re.getColDef().field).filter((Re) => !!Re) || [], we = w.value?.getAllDisplayedColumns().map((Re) => Re.getColDef().field).filter((Re) => !!Re) || [], De = w.value?.getValueColumns().map((Re) => Re.getColDef().field).filter((Re) => !!Re) || [], Ae = Array.from(/* @__PURE__ */ new Set([...le, ...we, ...De])), nt = ue.rowData.map((Re) => {
|
|
5959
5966
|
const Nn = {};
|
|
5960
|
-
return
|
|
5967
|
+
return Ae.forEach((un) => {
|
|
5961
5968
|
const Cl = Re[un];
|
|
5962
5969
|
Nn[un] = Cl != null ? String(Cl) : null;
|
|
5963
5970
|
}), Nn;
|
|
@@ -5965,11 +5972,11 @@ const xl = (e) => {
|
|
|
5965
5972
|
Me.value = !1, $(ke);
|
|
5966
5973
|
},
|
|
5967
5974
|
fail: () => {
|
|
5968
|
-
Me.value = !1,
|
|
5975
|
+
Me.value = !1, A("CSV export failed.");
|
|
5969
5976
|
}
|
|
5970
5977
|
};
|
|
5971
5978
|
y(ie, !0);
|
|
5972
|
-
}) : (console.warn("Client-side export does not return CSV string"), Me.value = !1,
|
|
5979
|
+
}) : (console.warn("Client-side export does not return CSV string"), Me.value = !1, w.value.exportDataAsCsv(), null);
|
|
5973
5980
|
} catch (L) {
|
|
5974
5981
|
return console.error("CSV export failed", L), Me.value = !1, null;
|
|
5975
5982
|
}
|
|
@@ -5983,14 +5990,14 @@ const xl = (e) => {
|
|
|
5983
5990
|
rowGroupColumnFields: T
|
|
5984
5991
|
});
|
|
5985
5992
|
const yt = (L) => {
|
|
5986
|
-
|
|
5993
|
+
wt(() => {
|
|
5987
5994
|
const V = Oe.value, _ = L.api.getRowGroupColumns(), y = _.length > 0;
|
|
5988
5995
|
let $;
|
|
5989
5996
|
y && a.leftPinnedColumnName && ($ = L.api.getColumn(a.leftPinnedColumnName || "")), y && !a.leftPinnedColumnName && ($ = _[0]), $ ? (Oe.value = $, it.value.headerName = $.getColDef().headerName, it.value.headerComponent = a.enableInlineFilters ? void 0 : ia, it.value.context = {
|
|
5990
5997
|
dataType: Oe.value?.getColDef().context?.dataType || null
|
|
5991
5998
|
}, L.api.setColumnsVisible([$.getColId()], !1)) : (Oe.value = null, it.value.headerName = "", it.value.headerComponent = void 0, it.value.context = null);
|
|
5992
|
-
const
|
|
5993
|
-
if ((!$ ||
|
|
5999
|
+
const A = V?.getColId();
|
|
6000
|
+
if ((!$ || A !== $.getColId()) && L.api.setColumnsVisible([A || ""], !0), T.value = [..._].map((W) => W.getColId()), a.enableFocusView && !ee) {
|
|
5994
6001
|
const W = T.value.length > 0 ? T.value[0] : null;
|
|
5995
6002
|
X.setFocusType(W);
|
|
5996
6003
|
}
|
|
@@ -6033,12 +6040,12 @@ const xl = (e) => {
|
|
|
6033
6040
|
displayCount: a.displayGroupCount,
|
|
6034
6041
|
formattedValue: V.valueFormatted,
|
|
6035
6042
|
rowNode: V.node,
|
|
6036
|
-
api:
|
|
6043
|
+
api: w.value
|
|
6037
6044
|
})
|
|
6038
6045
|
}
|
|
6039
6046
|
};
|
|
6040
6047
|
return a.autoGroupColumnDefOverrides && Object.assign(L, a.autoGroupColumnDefOverrides), L;
|
|
6041
|
-
})(), it = P(an),
|
|
6048
|
+
})(), it = P(an), An = (L) => {
|
|
6042
6049
|
if (L.node.group)
|
|
6043
6050
|
return { backgroundColor: "#F7F8F8" };
|
|
6044
6051
|
}, Bn = {
|
|
@@ -6071,12 +6078,12 @@ const xl = (e) => {
|
|
|
6071
6078
|
// "rowGroup", - disabling this until we can figure out how to selectively disable it once max groups have been reached
|
|
6072
6079
|
"rowUnGroup",
|
|
6073
6080
|
"valueAggSubMenu"
|
|
6074
|
-
],
|
|
6075
|
-
return !a.enableInlineFilters &&
|
|
6076
|
-
},
|
|
6081
|
+
], A = y.column && tt(y.column) ? Oe.value : y.column;
|
|
6082
|
+
return !a.enableInlineFilters && A && A.getColDef().filter && $.splice(2, 0, h), $.filter((W) => typeof W == "string" ? y.defaultItems.includes(W) : !0);
|
|
6083
|
+
}, S && (U.value = S.filter?.filterModel || null, T.value = S.rowGroup?.groupColIds || []);
|
|
6077
6084
|
});
|
|
6078
6085
|
const on = (L) => {
|
|
6079
|
-
const V =
|
|
6086
|
+
const V = w.value;
|
|
6080
6087
|
if (!V) return;
|
|
6081
6088
|
const _ = L.filter?.filterModel || null, y = L.rowGroup?.groupColIds || null, $ = L.columnVisibility || null;
|
|
6082
6089
|
_ && !oa(_, V.getFilterModel()) && V.setFilterModel(_), a.isTableGrouped && y && !rl(y, T.value) && V.setRowGroupColumns(y), $?.hiddenColIds && V.setColumnsVisible($.hiddenColIds, !1);
|
|
@@ -6099,7 +6106,7 @@ const xl = (e) => {
|
|
|
6099
6106
|
}), sn = P(null);
|
|
6100
6107
|
return (L, V) => (c(), x("div", {
|
|
6101
6108
|
class: "pv-full-width",
|
|
6102
|
-
style:
|
|
6109
|
+
style: Se(r.value)
|
|
6103
6110
|
}, [
|
|
6104
6111
|
He(O("div", f1, [
|
|
6105
6112
|
O("div", m1, [
|
|
@@ -6107,7 +6114,7 @@ const xl = (e) => {
|
|
|
6107
6114
|
to: e.filterTeleportLocation,
|
|
6108
6115
|
disabled: !e.filterTeleportLocation
|
|
6109
6116
|
}, [
|
|
6110
|
-
fe.value.length > 0 && !a.enableInlineFilters ? (c(), z(
|
|
6117
|
+
fe.value.length > 0 && !a.enableInlineFilters ? (c(), z(Ad, {
|
|
6111
6118
|
key: 0,
|
|
6112
6119
|
"enable-focus-view": e.enableFocusView,
|
|
6113
6120
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -6115,18 +6122,18 @@ const xl = (e) => {
|
|
|
6115
6122
|
"focusable-columns": e.focusableColumns,
|
|
6116
6123
|
onHandleSettingsIcon: V[0] || (V[0] = (_) => L.$emit("handle-settings-icon", _)),
|
|
6117
6124
|
"max-horizontal-filters": a.maxHorizontalFilters
|
|
6118
|
-
}, null, 8, ["enable-focus-view", "enable-vertical-panel", "display-preferences-icon", "focusable-columns", "max-horizontal-filters"])) :
|
|
6125
|
+
}, null, 8, ["enable-focus-view", "enable-vertical-panel", "display-preferences-icon", "focusable-columns", "max-horizontal-filters"])) : I("", !0)
|
|
6119
6126
|
], 8, ["to", "disabled"])),
|
|
6120
6127
|
O("div", h1, [
|
|
6121
6128
|
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (c(), z(Nc, {
|
|
6122
6129
|
key: 0,
|
|
6123
6130
|
rowGroupLimit: e.rowGroupLimit,
|
|
6124
6131
|
enableFocusView: e.enableFocusView
|
|
6125
|
-
}, null, 8, ["rowGroupLimit", "enableFocusView"])) :
|
|
6132
|
+
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : I("", !0),
|
|
6126
6133
|
e.enableCsvExport ? (c(), z(_d, {
|
|
6127
6134
|
key: 1,
|
|
6128
6135
|
getCsvData: st
|
|
6129
|
-
})) :
|
|
6136
|
+
})) : I("", !0)
|
|
6130
6137
|
])
|
|
6131
6138
|
])
|
|
6132
6139
|
], 512), [
|
|
@@ -6142,10 +6149,10 @@ const xl = (e) => {
|
|
|
6142
6149
|
placeholder: e.tableSearchPlaceholder,
|
|
6143
6150
|
disabled: !g.value,
|
|
6144
6151
|
"search-style": e.tableSearchStyle
|
|
6145
|
-
}, null, 8, ["placeholder", "disabled", "search-style"])) :
|
|
6152
|
+
}, null, 8, ["placeholder", "disabled", "search-style"])) : I("", !0)
|
|
6146
6153
|
]),
|
|
6147
6154
|
ge(L.$slots, "top-slot")
|
|
6148
|
-
], 2)) :
|
|
6155
|
+
], 2)) : I("", !0),
|
|
6149
6156
|
O("div", {
|
|
6150
6157
|
class: oe(["pv-relative pv-stack-8", e.hideTable ? "pv-hide" : ""]),
|
|
6151
6158
|
style: { width: "100%", height: "100%", "border-bottom": "1px solid #d2d7db" }
|
|
@@ -6161,7 +6168,7 @@ const xl = (e) => {
|
|
|
6161
6168
|
onFilterChanged: ht,
|
|
6162
6169
|
onFilterOpened: V[2] || (V[2] = (_) => i("filter-opened", _)),
|
|
6163
6170
|
onFirstDataRendered: Tt,
|
|
6164
|
-
onGridReady:
|
|
6171
|
+
onGridReady: Ie,
|
|
6165
6172
|
onPaginationChanged: ne,
|
|
6166
6173
|
onRedoEnded: V[3] || (V[3] = (_) => i("redo-ended", _)),
|
|
6167
6174
|
onRedoStarted: V[4] || (V[4] = (_) => i("redo-started", _)),
|
|
@@ -6179,10 +6186,10 @@ const xl = (e) => {
|
|
|
6179
6186
|
getChildCount: ze,
|
|
6180
6187
|
getContextMenuItems: f.value,
|
|
6181
6188
|
getMainMenuItems: v.value,
|
|
6182
|
-
getRowStyle:
|
|
6189
|
+
getRowStyle: An,
|
|
6183
6190
|
groupDefaultExpanded: En.value,
|
|
6184
6191
|
groupDisplayType: "singleColumn",
|
|
6185
|
-
initialState: q(
|
|
6192
|
+
initialState: q(S) || void 0,
|
|
6186
6193
|
isGroupOpenByDefault: q(u) ? void 0 : a.isClientSideGroupOpenByDefault,
|
|
6187
6194
|
isServerSideGroupOpenByDefault: rn,
|
|
6188
6195
|
loading: q(u) ? !1 : e.isLoading,
|
|
@@ -6219,9 +6226,9 @@ const xl = (e) => {
|
|
|
6219
6226
|
}), null, 16, ["style", "autoGroupColumnDef", "columnDefs", "debug", "defaultColDef", "getContextMenuItems", "getMainMenuItems", "groupDefaultExpanded", "initialState", "isGroupOpenByDefault", "loading", "loadingCellRenderer", "loadingCellRendererParams", "maxConcurrentDatasourceRequests", "maintainColumnOrder", "popupParent", "rowData", "rowHeight", "rowModelType", "rowSelection", "serverSideInitialRowCount", "theme", "pagination", "paginationPageSize", "tooltip-show-delay", "tooltip-hide-delay", "cellSelection", "copyHeadersToClipboard", "suppressClipboardPaste", "suppressCutToClipboard", "undoRedoCellEditing", "undoRedoCellEditingLimit"]),
|
|
6220
6227
|
!e.isLoading && !g.value ? (c(), x("div", g1, [
|
|
6221
6228
|
O("p", b1, Y(F.value), 1)
|
|
6222
|
-
])) :
|
|
6229
|
+
])) : I("", !0)
|
|
6223
6230
|
], 2),
|
|
6224
|
-
e.pagination ? (c(), z(jd, { key: 1 })) :
|
|
6231
|
+
e.pagination ? (c(), z(jd, { key: 1 })) : I("", !0)
|
|
6225
6232
|
], 4));
|
|
6226
6233
|
}
|
|
6227
6234
|
}), C1 = ({
|
|
@@ -6281,7 +6288,7 @@ const xl = (e) => {
|
|
|
6281
6288
|
a.value && (l.value = a.value.getBoundingClientRect()), r.value?.popoverRoot && (o.value = r.value.popoverRoot.getBoundingClientRect());
|
|
6282
6289
|
}
|
|
6283
6290
|
};
|
|
6284
|
-
},
|
|
6291
|
+
}, w1 = ["id"], S1 = {
|
|
6285
6292
|
key: 0,
|
|
6286
6293
|
class: "sort-divider-container"
|
|
6287
6294
|
}, F1 = ["data-label"], k1 = ["onDrop"], $1 = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, T1 = { class: "pv-text-body-sm pv-text-tertiary" }, P1 = { class: "pv-flex pv-full-width pv-sort-option" }, O1 = { class: "pv-text-body-sm" }, M1 = {
|
|
@@ -6327,7 +6334,7 @@ const xl = (e) => {
|
|
|
6327
6334
|
let D = Array.from(s.value.children).map((F) => F.id);
|
|
6328
6335
|
const M = D.findIndex((F) => F === Ht);
|
|
6329
6336
|
M !== -1 && (D = D.slice(0, M)), D = D.filter((F) => !F.startsWith("placeholder-"));
|
|
6330
|
-
const g = D.map((F) => t.options.find((
|
|
6337
|
+
const g = D.map((F) => t.options.find((w) => w.id === F) || null).filter(Boolean);
|
|
6331
6338
|
n.value = g.slice(0, t.activeOptionLimit || 1 / 0);
|
|
6332
6339
|
};
|
|
6333
6340
|
Je(() => {
|
|
@@ -6359,10 +6366,10 @@ const xl = (e) => {
|
|
|
6359
6366
|
D.currentTarget.classList.remove("placeholder-drag-over");
|
|
6360
6367
|
}, f = (D, M) => {
|
|
6361
6368
|
if (D.preventDefault(), D.currentTarget.classList.remove("placeholder-drag-over"), d) {
|
|
6362
|
-
const F = d.id,
|
|
6363
|
-
if (
|
|
6369
|
+
const F = d.id, w = t.options.find((E) => E.id === F);
|
|
6370
|
+
if (w && !h(w)) {
|
|
6364
6371
|
const E = [...n.value];
|
|
6365
|
-
E.splice(M - 1, 0,
|
|
6372
|
+
E.splice(M - 1, 0, w), n.value = E.slice(0, t.activeOptionLimit || 1 / 0), d.parentNode && d.parentNode.removeChild(d);
|
|
6366
6373
|
}
|
|
6367
6374
|
}
|
|
6368
6375
|
}, h = (D) => n.value.some((M) => M.id === D.id), k = b(() => t.activeOptionLimit ? n.value.length >= t.activeOptionLimit : !1), C = (D) => {
|
|
@@ -6373,14 +6380,14 @@ const xl = (e) => {
|
|
|
6373
6380
|
return;
|
|
6374
6381
|
n.value = n.value.concat([D]);
|
|
6375
6382
|
}
|
|
6376
|
-
},
|
|
6383
|
+
}, S = (D) => !h(D) && t.activeOptionLimit && n.value.length >= t.activeOptionLimit || D.disabled, R = (D) => {
|
|
6377
6384
|
const M = {
|
|
6378
6385
|
padding: "4px 8px"
|
|
6379
6386
|
};
|
|
6380
6387
|
return h(D) && (M.backgroundColor = "#E4F8F6", M.borderColor = "#16696D"), M;
|
|
6381
6388
|
}, T = (D) => {
|
|
6382
6389
|
const M = {};
|
|
6383
|
-
return
|
|
6390
|
+
return S(D) && (M.backgroundColor = "transparent"), !h(D) && !S(D) ? M.color = "#16696D" : M.color = "#89989B", M;
|
|
6384
6391
|
};
|
|
6385
6392
|
return (D, M) => (c(), x("div", {
|
|
6386
6393
|
ref_key: "containerRef",
|
|
@@ -6396,7 +6403,7 @@ const xl = (e) => {
|
|
|
6396
6403
|
id: g.id,
|
|
6397
6404
|
class: "pv-stack-4"
|
|
6398
6405
|
}, [
|
|
6399
|
-
g.id === Ht ? (c(), x("div",
|
|
6406
|
+
g.id === Ht ? (c(), x("div", S1, [
|
|
6400
6407
|
O("div", {
|
|
6401
6408
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
6402
6409
|
"data-label": k.value ? `Maximum of ${t.activeOptionLimit}` : ""
|
|
@@ -6414,7 +6421,7 @@ const xl = (e) => {
|
|
|
6414
6421
|
], 40, k1)) : (c(), x("div", {
|
|
6415
6422
|
key: 2,
|
|
6416
6423
|
class: oe(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !h(g) && k.value ? "pv-menu-item-disabled" : ""]),
|
|
6417
|
-
style:
|
|
6424
|
+
style: Se(R(g))
|
|
6418
6425
|
}, [
|
|
6419
6426
|
O("div", P1, [
|
|
6420
6427
|
j(be, {
|
|
@@ -6425,25 +6432,25 @@ const xl = (e) => {
|
|
|
6425
6432
|
key: 0,
|
|
6426
6433
|
class: oe(h(g) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
6427
6434
|
name: g.icon
|
|
6428
|
-
}, null, 8, ["class", "name"])) :
|
|
6435
|
+
}, null, 8, ["class", "name"])) : I("", !0),
|
|
6429
6436
|
O("span", O1, Y(g.text), 1)
|
|
6430
6437
|
]),
|
|
6431
|
-
|
|
6438
|
+
S(g) ? (c(), x("div", M1)) : (c(), z(q(ye), {
|
|
6432
6439
|
key: 0,
|
|
6433
6440
|
"left-icon": h(g) ? "remove-circle" : "add-circle",
|
|
6434
6441
|
variant: "ghost",
|
|
6435
|
-
style:
|
|
6442
|
+
style: Se(T(g)),
|
|
6436
6443
|
onClick: (F) => C(g)
|
|
6437
6444
|
}, null, 8, ["left-icon", "style", "onClick"]))
|
|
6438
6445
|
], 6))
|
|
6439
|
-
], 8,
|
|
6446
|
+
], 8, w1))), 128))
|
|
6440
6447
|
], 512)
|
|
6441
6448
|
], 512));
|
|
6442
6449
|
}
|
|
6443
|
-
}), R1 = /* @__PURE__ */ Ve(D1, [["__scopeId", "data-v-08e3ce8f"]]), L1 = { class: "pv-stack-16 pv-chart-options-panel" }, V1 = { class: "pv-flex pv-relative" },
|
|
6450
|
+
}), R1 = /* @__PURE__ */ Ve(D1, [["__scopeId", "data-v-08e3ce8f"]]), L1 = { class: "pv-stack-16 pv-chart-options-panel" }, V1 = { class: "pv-flex pv-relative" }, I1 = {
|
|
6444
6451
|
role: "list",
|
|
6445
6452
|
class: "pv-relative"
|
|
6446
|
-
},
|
|
6453
|
+
}, A1 = ["id", "data-active", "onMouseenter", "onClick"], B1 = { style: { "max-width": "100px" } }, E1 = {
|
|
6447
6454
|
key: 1,
|
|
6448
6455
|
class: "pv-flex"
|
|
6449
6456
|
}, N1 = {
|
|
@@ -6469,11 +6476,11 @@ const xl = (e) => {
|
|
|
6469
6476
|
}), r = P(!1), s = P(void 0), i = P(null), u = ve(ro, P(void 0)), d = ve(ao, P([])), m = ve(so, P(void 0)), p = ve(oo, P([])), v = ve(lo, P([])), f = ve(Ln, P([])), h = b(() => {
|
|
6470
6477
|
const G = u.value?.id ?? "";
|
|
6471
6478
|
return v.value.length > 1 && !G.endsWith("_stacked");
|
|
6472
|
-
}), k = ve(io, P("")), C = ve(uo, P([])),
|
|
6479
|
+
}), k = ve(io, P("")), C = ve(uo, P([])), S = ve(co, P(void 0)), R = ve(po, P([]));
|
|
6473
6480
|
ae(
|
|
6474
6481
|
h,
|
|
6475
6482
|
(G) => {
|
|
6476
|
-
G &&
|
|
6483
|
+
G && S.value && (S.value = void 0);
|
|
6477
6484
|
},
|
|
6478
6485
|
{ immediate: !0 }
|
|
6479
6486
|
);
|
|
@@ -6506,13 +6513,13 @@ const xl = (e) => {
|
|
|
6506
6513
|
}))), F = b(() => R.value.map((G) => ({
|
|
6507
6514
|
id: G.value,
|
|
6508
6515
|
text: G.label
|
|
6509
|
-
}))),
|
|
6516
|
+
}))), w = b(() => f.value.map((G) => ({
|
|
6510
6517
|
id: G.field || "",
|
|
6511
6518
|
text: G.headerName || G.field || "",
|
|
6512
6519
|
icon: xl(G.context?.dataType || null) || "circle-chevron-down"
|
|
6513
6520
|
}))), E = P([]), N = (G) => {
|
|
6514
6521
|
const H = E.value.map((B) => B.id);
|
|
6515
|
-
(G.length !== H.length || !G.every((B) => H.includes(B))) && (E.value = G.map((B) =>
|
|
6522
|
+
(G.length !== H.length || !G.every((B) => H.includes(B))) && (E.value = G.map((B) => w.value.find((re) => re.id === B)).filter(Boolean));
|
|
6516
6523
|
};
|
|
6517
6524
|
ae(
|
|
6518
6525
|
v,
|
|
@@ -6520,7 +6527,7 @@ const xl = (e) => {
|
|
|
6520
6527
|
N(G);
|
|
6521
6528
|
},
|
|
6522
6529
|
{ immediate: !0 }
|
|
6523
|
-
), ae(
|
|
6530
|
+
), ae(w, () => {
|
|
6524
6531
|
N(v.value);
|
|
6525
6532
|
}), ae(
|
|
6526
6533
|
E,
|
|
@@ -6551,10 +6558,10 @@ const xl = (e) => {
|
|
|
6551
6558
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
6552
6559
|
availableOptions: F.value,
|
|
6553
6560
|
currentOption: F.value.find(
|
|
6554
|
-
(J) => J.id ===
|
|
6561
|
+
(J) => J.id === S?.value
|
|
6555
6562
|
),
|
|
6556
6563
|
updateSelectedOption: (J) => {
|
|
6557
|
-
|
|
6564
|
+
S && (!J || S.value === J ? S.value = void 0 : S.value = J);
|
|
6558
6565
|
}
|
|
6559
6566
|
}, re = {
|
|
6560
6567
|
isSortableList: !0,
|
|
@@ -6562,7 +6569,7 @@ const xl = (e) => {
|
|
|
6562
6569
|
label: "X Axis",
|
|
6563
6570
|
icon: "align-end-horizontal",
|
|
6564
6571
|
allowDeselect: !1,
|
|
6565
|
-
availableOptions:
|
|
6572
|
+
availableOptions: w.value,
|
|
6566
6573
|
activeOptions: E,
|
|
6567
6574
|
activeOptionLimit: t.rowGroupLimit
|
|
6568
6575
|
}, de = {
|
|
@@ -6594,7 +6601,7 @@ const xl = (e) => {
|
|
|
6594
6601
|
fe && u && (u.value = fe);
|
|
6595
6602
|
}
|
|
6596
6603
|
};
|
|
6597
|
-
return g.value.length > 1 && G.push(H), F.value.length > 0 && G.push(B),
|
|
6604
|
+
return g.value.length > 1 && G.push(H), F.value.length > 0 && G.push(B), w.value.length > 1 && G.push(re), d.value.length > 1 && G.push(se), p.value.length > 0 && G.push(de), G.filter((J) => t.chartConfigOptions ? t.chartConfigOptions.includes(J.value) : !0);
|
|
6598
6605
|
});
|
|
6599
6606
|
ae(i, (G) => {
|
|
6600
6607
|
G?.popoverRef && (a.value = G?.popoverRef);
|
|
@@ -6632,7 +6639,7 @@ const xl = (e) => {
|
|
|
6632
6639
|
style: { "padding-top": "4px", "padding-bottom": "12px" }
|
|
6633
6640
|
}, " Chart Configuration ")
|
|
6634
6641
|
], -1)),
|
|
6635
|
-
O("ul",
|
|
6642
|
+
O("ul", I1, [
|
|
6636
6643
|
(c(!0), x(te, null, $e(ee.value, (B) => (c(), x("li", {
|
|
6637
6644
|
id: `pv-chart-config-${B.value}`,
|
|
6638
6645
|
key: B.value,
|
|
@@ -6664,12 +6671,12 @@ const xl = (e) => {
|
|
|
6664
6671
|
key: "0"
|
|
6665
6672
|
} : void 0
|
|
6666
6673
|
]), 1024)
|
|
6667
|
-
], 40,
|
|
6674
|
+
], 40, A1))), 128))
|
|
6668
6675
|
])
|
|
6669
6676
|
]),
|
|
6670
6677
|
_: 1
|
|
6671
6678
|
}, 8, ["open"])
|
|
6672
|
-
], 64)) :
|
|
6679
|
+
], 64)) : I("", !0)
|
|
6673
6680
|
])
|
|
6674
6681
|
], 2)), [
|
|
6675
6682
|
[q($n), [
|
|
@@ -6681,19 +6688,19 @@ const xl = (e) => {
|
|
|
6681
6688
|
]),
|
|
6682
6689
|
O("div", {
|
|
6683
6690
|
class: "pv-flex pv-space-between",
|
|
6684
|
-
style:
|
|
6691
|
+
style: Se(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
6685
6692
|
}, [
|
|
6686
6693
|
e.chartFilter ? (c(), z(ii, {
|
|
6687
6694
|
key: 0,
|
|
6688
6695
|
options: D.value,
|
|
6689
6696
|
modelValue: q(T),
|
|
6690
|
-
"onUpdate:modelValue": H[1] || (H[1] = (B) =>
|
|
6691
|
-
}, null, 8, ["options", "modelValue"])) :
|
|
6692
|
-
e.useCombinedButton ?
|
|
6697
|
+
"onUpdate:modelValue": H[1] || (H[1] = (B) => Sn(T) ? T.value = B : null)
|
|
6698
|
+
}, null, 8, ["options", "modelValue"])) : I("", !0),
|
|
6699
|
+
e.useCombinedButton ? I("", !0) : (c(), x("div", E1, [
|
|
6693
6700
|
(c(!0), x(te, null, $e(ee.value, (B) => (c(), x(te, {
|
|
6694
6701
|
key: B.value
|
|
6695
6702
|
}, [
|
|
6696
|
-
B.isSortableList ?
|
|
6703
|
+
B.isSortableList ? I("", !0) : (c(), z(Wa, {
|
|
6697
6704
|
key: 0,
|
|
6698
6705
|
label: B.label,
|
|
6699
6706
|
prefixLabel: B.prefixLabel,
|
|
@@ -6746,7 +6753,7 @@ const xl = (e) => {
|
|
|
6746
6753
|
}, null, 8, ["text", "icon", "onClick"])
|
|
6747
6754
|
], 8, G1))), 128))
|
|
6748
6755
|
]))
|
|
6749
|
-
], 64)) :
|
|
6756
|
+
], 64)) : I("", !0)
|
|
6750
6757
|
]),
|
|
6751
6758
|
_: 1
|
|
6752
6759
|
}, 8, ["open", "popover-position-style"])
|
|
@@ -6936,24 +6943,24 @@ const xl = (e) => {
|
|
|
6936
6943
|
emits: ["chart-state-changed", "column-moved", "column-resized", "column-row-group-changed", "grid-ready", "filter-changed", "sort-changed", "filter-opened", "first-data-rendered", "handle-settings-icon", "focus-update", "chart-collapsed"],
|
|
6937
6944
|
setup(e, { expose: t, emit: n }) {
|
|
6938
6945
|
const l = e, o = n, a = P(null), r = P(null), s = P(null), i = P(l.initialChartCollapsed ?? !1), u = "filter-panel-" + Yt()?.uid, d = P(!1), m = P(!1), p = P(0), v = b(() => (r.value?.availableRowGroupColumns || []).filter(($) => Le($).hideFromCharting !== !0)), f = P([]), h = b(() => f.value.length > 0 ? f.value[0] : ""), k = (y) => Le(y).chartSeriesDisplayName || y.headerName || y.field || "", C = b(() => (r.value?.availableAggFuncColumns || []).filter(($) => {
|
|
6939
|
-
const
|
|
6940
|
-
return !
|
|
6946
|
+
const A = Le($);
|
|
6947
|
+
return !A.hideFromCharting && !A.chartOnSecondaryAxes;
|
|
6941
6948
|
}).map(($) => {
|
|
6942
|
-
const
|
|
6949
|
+
const A = $.field, W = $;
|
|
6943
6950
|
return {
|
|
6944
6951
|
label: k(W),
|
|
6945
|
-
value:
|
|
6952
|
+
value: A || "",
|
|
6946
6953
|
formatter: W.valueFormatter,
|
|
6947
6954
|
dataType: W.context?.dataType
|
|
6948
6955
|
};
|
|
6949
|
-
})),
|
|
6950
|
-
const
|
|
6951
|
-
return
|
|
6956
|
+
})), S = b(() => (r.value?.availableAggFuncColumns || []).filter(($) => {
|
|
6957
|
+
const A = Le($);
|
|
6958
|
+
return A.chartOnSecondaryAxes === !0 && !A.hideFromCharting;
|
|
6952
6959
|
}).map(($) => {
|
|
6953
|
-
const
|
|
6960
|
+
const A = $.field, W = $;
|
|
6954
6961
|
return {
|
|
6955
6962
|
label: k(W),
|
|
6956
|
-
value:
|
|
6963
|
+
value: A || "",
|
|
6957
6964
|
formatter: W.valueFormatter,
|
|
6958
6965
|
dataType: W.context?.dataType,
|
|
6959
6966
|
tooltipRenderer: W.context?.customTooltipRenderer
|
|
@@ -6965,13 +6972,13 @@ const xl = (e) => {
|
|
|
6965
6972
|
focuses: l.initialFocusData?.focuses || []
|
|
6966
6973
|
});
|
|
6967
6974
|
he(xn, T);
|
|
6968
|
-
const { setFilterSelectedValues: D } = R, M = P(!1), g = P(l.enableGroupingToggle ? l.isTableGrouped : !0), F = b(() => T?.computedFocusType.value || null),
|
|
6975
|
+
const { setFilterSelectedValues: D } = R, M = P(!1), g = P(l.enableGroupingToggle ? l.isTableGrouped : !0), F = b(() => T?.computedFocusType.value || null), w = b(() => T?.computedFocuses.value || []), E = (y) => {
|
|
6969
6976
|
a.value = y.api, g.value || a.value?.setRowGroupColumns([]), K(y.api), o("grid-ready", y);
|
|
6970
6977
|
}, N = (y) => {
|
|
6971
6978
|
M.value = !0, o("first-data-rendered", y);
|
|
6972
6979
|
}, ee = (y) => {
|
|
6973
|
-
const $ = f.value,
|
|
6974
|
-
g.value && JSON.stringify($) !== JSON.stringify(
|
|
6980
|
+
const $ = f.value, A = y.api.getRowGroupColumns().map((W) => W.getColId());
|
|
6981
|
+
g.value && JSON.stringify($) !== JSON.stringify(A) && (f.value = A), o("column-row-group-changed", y);
|
|
6975
6982
|
}, X = async (y) => {
|
|
6976
6983
|
if (l.chartFilter) {
|
|
6977
6984
|
const $ = me(l.chartFilter.colId);
|
|
@@ -6986,7 +6993,7 @@ const xl = (e) => {
|
|
|
6986
6993
|
() => {
|
|
6987
6994
|
if (g.value) {
|
|
6988
6995
|
if (!a.value) return;
|
|
6989
|
-
const $ = a.value.getRowGroupColumns().map((
|
|
6996
|
+
const $ = a.value.getRowGroupColumns().map((A) => A.getColId());
|
|
6990
6997
|
JSON.stringify($) !== JSON.stringify(f.value) && a.value?.setRowGroupColumns(f.value);
|
|
6991
6998
|
} else
|
|
6992
6999
|
a?.value?.setRowGroupColumns([]);
|
|
@@ -6994,33 +7001,33 @@ const xl = (e) => {
|
|
|
6994
7001
|
T.setFocusType(y), a.value && K(a.value);
|
|
6995
7002
|
}
|
|
6996
7003
|
);
|
|
6997
|
-
function U(y, $,
|
|
7004
|
+
function U(y, $, A = !0) {
|
|
6998
7005
|
return (W) => {
|
|
6999
7006
|
if (W.data = re.value?.find((De) => De[y] === W.value), W.value === Ot)
|
|
7000
7007
|
return "";
|
|
7001
7008
|
let ie = "";
|
|
7002
7009
|
const ue = me(y);
|
|
7003
|
-
if (l.truncateLabelValues &&
|
|
7010
|
+
if (l.truncateLabelValues && A && ue && Et(ue) && !isNaN(Number(W.value))) {
|
|
7004
7011
|
if (Me.value) {
|
|
7005
7012
|
const nt = W.datum?.[h.value], Re = de.value?.find((un) => un[h.value] === nt)?.[`${se.value}${Dt}`] || 1 / 0;
|
|
7006
7013
|
if (W.value / Re < 0.05)
|
|
7007
7014
|
return "";
|
|
7008
7015
|
}
|
|
7009
|
-
const { newValue: De, newSuffix:
|
|
7016
|
+
const { newValue: De, newSuffix: Ae } = Jc(
|
|
7010
7017
|
W.value,
|
|
7011
7018
|
Ue.Percent === Le(ue).dataType,
|
|
7012
7019
|
Gt.value
|
|
7013
7020
|
);
|
|
7014
|
-
W.value = De, ie =
|
|
7021
|
+
W.value = De, ie = Ae;
|
|
7015
7022
|
}
|
|
7016
|
-
let
|
|
7017
|
-
return $ && (
|
|
7023
|
+
let we = W.value;
|
|
7024
|
+
return $ && (we = $(W)), we + ie;
|
|
7018
7025
|
};
|
|
7019
7026
|
}
|
|
7020
7027
|
const pe = (y, $ = !1) => {
|
|
7021
7028
|
if (!y) return;
|
|
7022
|
-
const
|
|
7023
|
-
return
|
|
7029
|
+
const A = me(y);
|
|
7030
|
+
return A && typeof A.valueFormatter == "function" ? U(y, A.valueFormatter, $) : U(y, null, $);
|
|
7024
7031
|
}, me = (y) => !y || !a.value ? null : a.value?.getColumnDef(y), G = b(() => (f.value.length > 1 ? _1 : q1).filter(($) => l.enabledChartTypes?.includes($.id))), H = P(void 0), B = P([
|
|
7025
7032
|
{
|
|
7026
7033
|
text: "Ascending",
|
|
@@ -7032,10 +7039,10 @@ const xl = (e) => {
|
|
|
7032
7039
|
id: "desc",
|
|
7033
7040
|
icon: "arrow-down-narrow-wide"
|
|
7034
7041
|
}
|
|
7035
|
-
]), re = P([]), de = P([]), se = P(l.yKey), J = P(
|
|
7036
|
-
he($t, a), he(no, Ge), he(Ln, v), he(lo, f), he(ao, G), he(oo, B), he(ro, H), he(so, Te), he(io, se), he(uo, C), he(co, J), he(po,
|
|
7042
|
+
]), re = P([]), de = P([]), se = P(l.yKey), J = P(S.value[0]?.value), fe = P(null), Te = P(B.value.find((y) => y.id === l.initialSort || "")), Ge = P("");
|
|
7043
|
+
he($t, a), he(no, Ge), he(Ln, v), he(lo, f), he(ao, G), he(oo, B), he(ro, H), he(so, Te), he(io, se), he(uo, C), he(co, J), he(po, S);
|
|
7037
7044
|
const Oe = (y) => {
|
|
7038
|
-
const $ = G.value.find((
|
|
7045
|
+
const $ = G.value.find((A) => A.id === y);
|
|
7039
7046
|
$ ? H.value = $ : H.value = G.value[0];
|
|
7040
7047
|
};
|
|
7041
7048
|
ae(
|
|
@@ -7052,11 +7059,11 @@ const xl = (e) => {
|
|
|
7052
7059
|
), ae(Ge, (y) => {
|
|
7053
7060
|
if (l.chartFilter && a.value) {
|
|
7054
7061
|
const $ = l.chartFilter.colId;
|
|
7055
|
-
let
|
|
7056
|
-
|
|
7062
|
+
let A = l.chartFilter.options.find((ue) => ue.value === y)?.filterValues || null;
|
|
7063
|
+
A && A.length === 0 && (A = null), D($, A || []);
|
|
7057
7064
|
const ie = vo({
|
|
7058
7065
|
filterType: "set",
|
|
7059
|
-
values:
|
|
7066
|
+
values: A
|
|
7060
7067
|
}, me($));
|
|
7061
7068
|
a.value.setColumnFilterModel($, ie).then(() => {
|
|
7062
7069
|
a.value?.onFilterChanged();
|
|
@@ -7066,10 +7073,10 @@ const xl = (e) => {
|
|
|
7066
7073
|
const ot = b(() => {
|
|
7067
7074
|
const y = C.value.find(($) => $.value === se.value);
|
|
7068
7075
|
return y ? y.label : "";
|
|
7069
|
-
}), qe = b(() =>
|
|
7070
|
-
const y =
|
|
7076
|
+
}), qe = b(() => S.value.find(($) => $.value === J.value)), et = b(() => {
|
|
7077
|
+
const y = S.value.find(($) => $.value === J.value);
|
|
7071
7078
|
return y ? y.label : "";
|
|
7072
|
-
}), _e = b(() => H.value?.id.includes("bar")),
|
|
7079
|
+
}), _e = b(() => H.value?.id.includes("bar")), Ie = b(() => f.value.length > 1), ht = b(() => {
|
|
7073
7080
|
if (!H.value)
|
|
7074
7081
|
return [];
|
|
7075
7082
|
if (C.value.length === 0)
|
|
@@ -7078,15 +7085,15 @@ const xl = (e) => {
|
|
|
7078
7085
|
return ["bar", "line", "area"].includes(y) ? pt.value : y === "pie" ? rt.value : (console.error("Unsupported chart type", y), pt.value);
|
|
7079
7086
|
}), dt = b(() => l.showSeriesLabels), tt = b(() => H.value?.id.includes("column") || H.value?.id.includes("bar")), Me = b(() => H.value?.id.includes("stacked")), pt = b(() => {
|
|
7080
7087
|
const y = Me.value, $ = tt.value ? "bar" : H.value?.id;
|
|
7081
|
-
let
|
|
7088
|
+
let A = [];
|
|
7082
7089
|
const W = pe(se.value, !0), ie = pe(fe.value?.fieldName, !0);
|
|
7083
|
-
if (
|
|
7084
|
-
fe.value?.fieldValues.forEach((
|
|
7090
|
+
if (Ie.value)
|
|
7091
|
+
fe.value?.fieldValues.forEach((we) => {
|
|
7085
7092
|
const De = {
|
|
7086
7093
|
type: $,
|
|
7087
7094
|
xKey: h.value,
|
|
7088
|
-
yKey: _t(se.value,
|
|
7089
|
-
yName: typeof ie == "function" ? ie({ value:
|
|
7095
|
+
yKey: _t(se.value, we),
|
|
7096
|
+
yName: typeof ie == "function" ? ie({ value: we }) : we,
|
|
7090
7097
|
stacked: y,
|
|
7091
7098
|
label: {
|
|
7092
7099
|
enabled: dt.value,
|
|
@@ -7098,7 +7105,7 @@ const xl = (e) => {
|
|
|
7098
7105
|
formatter: W
|
|
7099
7106
|
}
|
|
7100
7107
|
};
|
|
7101
|
-
|
|
7108
|
+
A.push(De);
|
|
7102
7109
|
});
|
|
7103
7110
|
else {
|
|
7104
7111
|
const le = {
|
|
@@ -7116,7 +7123,7 @@ const xl = (e) => {
|
|
|
7116
7123
|
formatter: W
|
|
7117
7124
|
}
|
|
7118
7125
|
};
|
|
7119
|
-
|
|
7126
|
+
A.push(le);
|
|
7120
7127
|
}
|
|
7121
7128
|
let ue = {};
|
|
7122
7129
|
if ($ === "column" || $ === "bar") {
|
|
@@ -7126,14 +7133,14 @@ const xl = (e) => {
|
|
|
7126
7133
|
const le = ue;
|
|
7127
7134
|
le.connectMissingData = !0, ue = le;
|
|
7128
7135
|
}
|
|
7129
|
-
if (
|
|
7136
|
+
if (A = A.map((le) => ({
|
|
7130
7137
|
...le,
|
|
7131
7138
|
...ue
|
|
7132
7139
|
})), J.value) {
|
|
7133
7140
|
pe(J.value, !0);
|
|
7134
7141
|
let le;
|
|
7135
7142
|
y ? le = `${J.value}_sort_total` : le = J.value;
|
|
7136
|
-
const De = me(h.value)?.context?.metadataDisplayFields?.[0] || h.value,
|
|
7143
|
+
const De = me(h.value)?.context?.metadataDisplayFields?.[0] || h.value, Ae = {
|
|
7137
7144
|
type: "scatter",
|
|
7138
7145
|
xKey: h.value,
|
|
7139
7146
|
xName: De,
|
|
@@ -7143,11 +7150,11 @@ const xl = (e) => {
|
|
|
7143
7150
|
enabled: !1
|
|
7144
7151
|
}
|
|
7145
7152
|
};
|
|
7146
|
-
qe.value?.tooltipRenderer && (
|
|
7153
|
+
qe.value?.tooltipRenderer && (Ae.tooltip = {
|
|
7147
7154
|
renderer: qe.value?.tooltipRenderer
|
|
7148
|
-
}),
|
|
7155
|
+
}), A = [...A, Ae];
|
|
7149
7156
|
}
|
|
7150
|
-
return
|
|
7157
|
+
return A;
|
|
7151
7158
|
}), rt = b(() => C.value.length === 0 ? [] : [{
|
|
7152
7159
|
type: "pie",
|
|
7153
7160
|
legendItemKey: h.value,
|
|
@@ -7239,13 +7246,13 @@ const xl = (e) => {
|
|
|
7239
7246
|
return;
|
|
7240
7247
|
}
|
|
7241
7248
|
if ($) {
|
|
7242
|
-
const { stackedData:
|
|
7249
|
+
const { stackedData: A, uniqueFieldValues: W } = K1(
|
|
7243
7250
|
y,
|
|
7244
7251
|
h.value,
|
|
7245
7252
|
$,
|
|
7246
7253
|
Q.value
|
|
7247
7254
|
);
|
|
7248
|
-
de.value =
|
|
7255
|
+
de.value = A, fe.value = {
|
|
7249
7256
|
fieldName: $,
|
|
7250
7257
|
fieldValues: W
|
|
7251
7258
|
};
|
|
@@ -7256,21 +7263,21 @@ const xl = (e) => {
|
|
|
7256
7263
|
const $ = f.value.length;
|
|
7257
7264
|
if (st(), $ === 0 || C.value.length === 0)
|
|
7258
7265
|
return;
|
|
7259
|
-
const
|
|
7260
|
-
if (l.requireFiltersToShowData && Object.keys(
|
|
7266
|
+
const A = R.filterModel.value || {};
|
|
7267
|
+
if (l.requireFiltersToShowData && Object.keys(A).length === 0)
|
|
7261
7268
|
return;
|
|
7262
7269
|
if (l.serverSideChartHandler) {
|
|
7263
7270
|
let le = { ...a.value?.getFilterModel() || {} };
|
|
7264
|
-
const
|
|
7265
|
-
!M.value && l.initialGridState && Object.keys(le).length === 0 && (le = Zn(l.initialGridState,
|
|
7266
|
-
const De = f.value.map((ke) => a.value?.getColumn(ke)).filter((ke) => ke !== void 0),
|
|
7271
|
+
const we = a.value?.getColumnDefs() || [];
|
|
7272
|
+
!M.value && l.initialGridState && Object.keys(le).length === 0 && (le = Zn(l.initialGridState, we)?.filter?.filterModel || {});
|
|
7273
|
+
const De = f.value.map((ke) => a.value?.getColumn(ke)).filter((ke) => ke !== void 0), Ae = {
|
|
7267
7274
|
rowGroupCols: ra(De || []),
|
|
7268
7275
|
valueCols: ra(a.value?.getValueColumns() || []),
|
|
7269
7276
|
filterModel: le
|
|
7270
7277
|
};
|
|
7271
7278
|
m.value = !0;
|
|
7272
7279
|
const nt = ++p.value;
|
|
7273
|
-
l.serverSideChartHandler(
|
|
7280
|
+
l.serverSideChartHandler(Ae).then((ke) => {
|
|
7274
7281
|
nt === p.value && (yt(ke.data, ke.stackField), m.value = !1);
|
|
7275
7282
|
}).catch((ke) => {
|
|
7276
7283
|
nt === p.value && (console.error("Chart handler error:", ke), m.value = !1);
|
|
@@ -7283,11 +7290,11 @@ const xl = (e) => {
|
|
|
7283
7290
|
if (y.forEachNodeAfterFilterAndSort((le) => {
|
|
7284
7291
|
if (le.group && le.level === 0) {
|
|
7285
7292
|
if (f.value.length > 1) {
|
|
7286
|
-
const De = le.childrenAfterFilter?.filter((ke) => ke.level === 1 && ke.aggData) || [], { rowData:
|
|
7287
|
-
ue = ue.union(nt), ie?.push(
|
|
7293
|
+
const De = le.childrenAfterFilter?.filter((ke) => ke.level === 1 && ke.aggData) || [], { rowData: Ae, fieldValues: nt } = ze(le, De);
|
|
7294
|
+
ue = ue.union(nt), ie?.push(Ae);
|
|
7288
7295
|
}
|
|
7289
|
-
const
|
|
7290
|
-
W?.push(
|
|
7296
|
+
const we = ne(le);
|
|
7297
|
+
W?.push(we);
|
|
7291
7298
|
}
|
|
7292
7299
|
}), re.value = W, f.value.length > 1 && ie && ie.length > 0) {
|
|
7293
7300
|
const le = f.value[1] || "";
|
|
@@ -7298,61 +7305,61 @@ const xl = (e) => {
|
|
|
7298
7305
|
} else
|
|
7299
7306
|
de.value = [], fe.value = null;
|
|
7300
7307
|
}, Q = b(() => {
|
|
7301
|
-
const y = C.value, $ =
|
|
7302
|
-
return [...new Map([...$, ...y].map((
|
|
7308
|
+
const y = C.value, $ = S.value;
|
|
7309
|
+
return [...new Map([...$, ...y].map((A) => [A.value, A])).values()];
|
|
7303
7310
|
}), ne = (y) => {
|
|
7304
7311
|
const $ = {
|
|
7305
7312
|
[y.field]: y.key
|
|
7306
7313
|
};
|
|
7307
|
-
for (const
|
|
7308
|
-
!y.aggData || !y.aggData[
|
|
7314
|
+
for (const A of Q.value)
|
|
7315
|
+
!y.aggData || !y.aggData[A.value] || ($[A.value] = y.aggData[A.value]?.value ?? y.aggData[A.value]);
|
|
7309
7316
|
return $;
|
|
7310
7317
|
}, ze = (y, $) => {
|
|
7311
|
-
const
|
|
7318
|
+
const A = /* @__PURE__ */ new Set(), W = {
|
|
7312
7319
|
[y.field]: y.key
|
|
7313
7320
|
};
|
|
7314
7321
|
let ie = 0;
|
|
7315
7322
|
for (const ue of C.value)
|
|
7316
7323
|
$.forEach((le) => {
|
|
7317
|
-
const
|
|
7318
|
-
|
|
7324
|
+
const we = le.key;
|
|
7325
|
+
A.add(we);
|
|
7319
7326
|
const De = le.aggData;
|
|
7320
|
-
if (
|
|
7321
|
-
const
|
|
7322
|
-
W[nt] = `${y.key}-${
|
|
7327
|
+
if (we && De) {
|
|
7328
|
+
const Ae = String(we), nt = yo(Ae);
|
|
7329
|
+
W[nt] = `${y.key}-${Ae}`;
|
|
7323
7330
|
const ke = le.aggData[ue.value]?.value ?? le.aggData[ue.value];
|
|
7324
|
-
W[_t(ue.value,
|
|
7331
|
+
W[_t(ue.value, Ae)] = ke, ie = ie + ke;
|
|
7325
7332
|
}
|
|
7326
7333
|
}), W[`${ue.value}${Dt}`] = ie;
|
|
7327
7334
|
return {
|
|
7328
7335
|
rowData: W,
|
|
7329
|
-
fieldValues:
|
|
7336
|
+
fieldValues: A
|
|
7330
7337
|
};
|
|
7331
7338
|
}, Pe = b(() => {
|
|
7332
|
-
let y =
|
|
7333
|
-
if (Te.value && ($ =
|
|
7334
|
-
const
|
|
7339
|
+
let y = Ie.value ? de.value : re.value, $ = null;
|
|
7340
|
+
if (Te.value && ($ = Ie.value ? `${se.value}${Dt}` : se.value), $ && y && Te.value) {
|
|
7341
|
+
const A = Te.value?.id.includes("desc") ? -1 : 1;
|
|
7335
7342
|
y = [...y].sort((W, ie) => {
|
|
7336
7343
|
const ue = W[$] || 0, le = ie[$] || 0;
|
|
7337
|
-
return (ue - le) *
|
|
7344
|
+
return (ue - le) * A;
|
|
7338
7345
|
});
|
|
7339
7346
|
}
|
|
7340
7347
|
if (y && y.length === 1 && (y = [
|
|
7341
7348
|
{ [h.value]: "" },
|
|
7342
7349
|
y[0],
|
|
7343
7350
|
{ [h.value]: " " }
|
|
7344
|
-
]), l.enableFocusView && y &&
|
|
7345
|
-
const
|
|
7346
|
-
y = [...
|
|
7351
|
+
]), l.enableFocusView && y && w.value.length > 0 && F.value) {
|
|
7352
|
+
const A = y?.filter((ie) => w.value.includes(ie[h.value])), W = y?.filter((ie) => !w.value.includes(ie[h.value]));
|
|
7353
|
+
y = [...A || [], { [h.value]: _n }, ...W || []];
|
|
7347
7354
|
}
|
|
7348
7355
|
return y;
|
|
7349
7356
|
}), Nt = b(() => Pe.value?.length || 0), Gt = b(() => {
|
|
7350
|
-
const y =
|
|
7351
|
-
return j1(y, se.value,
|
|
7357
|
+
const y = Ie.value ? de.value : Pe.value;
|
|
7358
|
+
return j1(y, se.value, Ie.value);
|
|
7352
7359
|
}), an = b(() => fe.value?.fieldValues?.length || 0), it = b(() => {
|
|
7353
7360
|
const ie = 0.25 * Math.exp(-0.12 * Nt.value);
|
|
7354
7361
|
return Math.min(Math.max(ie, 0.05), 0.75);
|
|
7355
|
-
}),
|
|
7362
|
+
}), An = b(() => an.value > 5 ? 0.5 : 1), Bn = b(() => an.value > 5 ? 0.25 : 0.1), on = b(() => !Pe.value || Pe.value?.length === 0 ? !0 : Gt.value === -1 / 0 || Ie.value === !0 && Gt.value === 0), Tt = b(() => l.enableFocusView && F.value && w.value.length === 0 && l.percentOfFocusViewYKey && se.value && se.value === l.percentOfFocusViewYKey), rn = b(() => {
|
|
7356
7363
|
if (f.value.length === 0)
|
|
7357
7364
|
return "No groups selected. Select at least one group to display data.";
|
|
7358
7365
|
if (Tt.value) {
|
|
@@ -7372,11 +7379,11 @@ const xl = (e) => {
|
|
|
7372
7379
|
preventHidingAll: !0,
|
|
7373
7380
|
enabled: f.value.length > 1
|
|
7374
7381
|
};
|
|
7375
|
-
const $ =
|
|
7382
|
+
const $ = Ie.value ? fe.value?.fieldValues.map((ie) => _t(se.value, ie)) || [] : se.value ? [se.value] : [], A = (() => {
|
|
7376
7383
|
if (!J.value)
|
|
7377
7384
|
return [];
|
|
7378
7385
|
const ie = J.value;
|
|
7379
|
-
return Me.value ? [`${ie}${Dt}`] :
|
|
7386
|
+
return Me.value ? [`${ie}${Dt}`] : Ie.value ? fe.value?.fieldValues.map(
|
|
7380
7387
|
(ue) => _t(ie, String(ue))
|
|
7381
7388
|
) || [] : [ie];
|
|
7382
7389
|
})(), W = [
|
|
@@ -7403,12 +7410,12 @@ const xl = (e) => {
|
|
|
7403
7410
|
return "";
|
|
7404
7411
|
const ue = 35;
|
|
7405
7412
|
let le = ie.value;
|
|
7406
|
-
const
|
|
7407
|
-
return typeof
|
|
7413
|
+
const we = pe(h.value);
|
|
7414
|
+
return typeof we == "function" && (le = we(ie)), typeof le == "string" && le.length > ue ? le.substring(0, ue) + "..." : le;
|
|
7408
7415
|
}
|
|
7409
7416
|
},
|
|
7410
7417
|
paddingInner: it.value,
|
|
7411
|
-
paddingOuter:
|
|
7418
|
+
paddingOuter: An.value,
|
|
7412
7419
|
groupPaddingInner: Bn.value
|
|
7413
7420
|
},
|
|
7414
7421
|
{
|
|
@@ -7426,7 +7433,7 @@ const xl = (e) => {
|
|
|
7426
7433
|
];
|
|
7427
7434
|
return J.value && W.push({
|
|
7428
7435
|
type: "number",
|
|
7429
|
-
keys:
|
|
7436
|
+
keys: A,
|
|
7430
7437
|
position: _e.value ? "top" : "right",
|
|
7431
7438
|
label: {
|
|
7432
7439
|
formatter: pe(J.value),
|
|
@@ -7454,19 +7461,19 @@ const xl = (e) => {
|
|
|
7454
7461
|
f.value = y, y.length > 0 && T.setFocusType(y[0]);
|
|
7455
7462
|
}
|
|
7456
7463
|
}), Je(async () => {
|
|
7457
|
-
await
|
|
7464
|
+
await wt(), d.value = l.filterPanelAboveChart;
|
|
7458
7465
|
}), (y, $) => (c(), x("div", U1, [
|
|
7459
7466
|
O("div", {
|
|
7460
7467
|
class: "pv-stack-16",
|
|
7461
7468
|
id: u
|
|
7462
7469
|
}),
|
|
7463
|
-
e.hideChart ?
|
|
7470
|
+
e.hideChart ? I("", !0) : (c(), x("div", W1, [
|
|
7464
7471
|
j(ye, {
|
|
7465
7472
|
rightIcon: "chevrons-down-up",
|
|
7466
7473
|
label: "Collapse",
|
|
7467
7474
|
style: { float: "right", "margin-left": "0.5rem" },
|
|
7468
7475
|
variant: "secondary",
|
|
7469
|
-
onClick: $[0] || ($[0] = (
|
|
7476
|
+
onClick: $[0] || ($[0] = (A) => V(!i.value)),
|
|
7470
7477
|
class: oe(e.hideChart || i.value ? "pv-hide" : "")
|
|
7471
7478
|
}, null, 8, ["class"]),
|
|
7472
7479
|
O("div", {
|
|
@@ -7487,7 +7494,7 @@ const xl = (e) => {
|
|
|
7487
7494
|
rightIcon: "chevron-selector",
|
|
7488
7495
|
label: "Expand",
|
|
7489
7496
|
variant: "secondary",
|
|
7490
|
-
onClick: $[1] || ($[1] = (
|
|
7497
|
+
onClick: $[1] || ($[1] = (A) => V(!i.value))
|
|
7491
7498
|
})
|
|
7492
7499
|
], 2),
|
|
7493
7500
|
O("div", {
|
|
@@ -7512,9 +7519,9 @@ const xl = (e) => {
|
|
|
7512
7519
|
Tt.value ? (c(), x(te, { key: 0 }, [
|
|
7513
7520
|
$[10] || ($[10] = Be(" Select ", -1)),
|
|
7514
7521
|
j(be, { name: "focus" })
|
|
7515
|
-
], 64)) :
|
|
7522
|
+
], 64)) : I("", !0),
|
|
7516
7523
|
Be(" " + Y(rn.value), 1)
|
|
7517
|
-
])) :
|
|
7524
|
+
])) : I("", !0)
|
|
7518
7525
|
])
|
|
7519
7526
|
], 2)
|
|
7520
7527
|
])),
|
|
@@ -7527,23 +7534,23 @@ const xl = (e) => {
|
|
|
7527
7534
|
onColumnRowGroupChanged: ee,
|
|
7528
7535
|
onGridReady: E,
|
|
7529
7536
|
onFilterChanged: X,
|
|
7530
|
-
onSortChanged: $[3] || ($[3] = (
|
|
7531
|
-
onFilterOpened: $[4] || ($[4] = (
|
|
7537
|
+
onSortChanged: $[3] || ($[3] = (A) => o("sort-changed", A)),
|
|
7538
|
+
onFilterOpened: $[4] || ($[4] = (A) => o("filter-opened", A)),
|
|
7532
7539
|
onFirstDataRendered: N,
|
|
7533
|
-
onColumnMoved: $[5] || ($[5] = (
|
|
7534
|
-
onColumnResized: $[6] || ($[6] = (
|
|
7535
|
-
onHandleSettingsIcon: $[7] || ($[7] = (
|
|
7536
|
-
onFocusUpdate: $[8] || ($[8] = (
|
|
7540
|
+
onColumnMoved: $[5] || ($[5] = (A) => o("column-moved", A)),
|
|
7541
|
+
onColumnResized: $[6] || ($[6] = (A) => o("column-resized", A)),
|
|
7542
|
+
onHandleSettingsIcon: $[7] || ($[7] = (A) => o("handle-settings-icon", A)),
|
|
7543
|
+
onFocusUpdate: $[8] || ($[8] = (A) => o("focus-update", A))
|
|
7537
7544
|
}), {
|
|
7538
7545
|
"top-slot": ce(() => [
|
|
7539
7546
|
e.enableGroupingToggle ? (c(), z(ye, {
|
|
7540
7547
|
key: 0,
|
|
7541
7548
|
leftIcon: g.value ? "ungroup" : "group",
|
|
7542
7549
|
label: g.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
7543
|
-
onClick: $[2] || ($[2] = (
|
|
7550
|
+
onClick: $[2] || ($[2] = (A) => _(!g.value)),
|
|
7544
7551
|
variant: "secondary",
|
|
7545
7552
|
size: "lg"
|
|
7546
|
-
}, null, 8, ["leftIcon", "label"])) :
|
|
7553
|
+
}, null, 8, ["leftIcon", "label"])) : I("", !0)
|
|
7547
7554
|
]),
|
|
7548
7555
|
_: 1
|
|
7549
7556
|
}, 16, ["filterTeleportLocation", "pagination"])
|
|
@@ -8250,7 +8257,7 @@ const xl = (e) => {
|
|
|
8250
8257
|
]
|
|
8251
8258
|
]
|
|
8252
8259
|
}
|
|
8253
|
-
}, Cn = "_FeatureMin",
|
|
8260
|
+
}, Cn = "_FeatureMin", wn = "_FeatureMax", go = (e) => bo[e] || e, e4 = J1, t4 = X1, bo = {
|
|
8254
8261
|
AL: "Alabama",
|
|
8255
8262
|
AK: "Alaska",
|
|
8256
8263
|
AZ: "Arizona",
|
|
@@ -8328,7 +8335,7 @@ const xl = (e) => {
|
|
|
8328
8335
|
]
|
|
8329
8336
|
]
|
|
8330
8337
|
},
|
|
8331
|
-
properties: { name:
|
|
8338
|
+
properties: { name: wn }
|
|
8332
8339
|
},
|
|
8333
8340
|
{
|
|
8334
8341
|
type: "Feature",
|
|
@@ -10664,9 +10671,9 @@ const xl = (e) => {
|
|
|
10664
10671
|
[n]: l,
|
|
10665
10672
|
name: Cn
|
|
10666
10673
|
}), r.push({
|
|
10667
|
-
[t]:
|
|
10674
|
+
[t]: wn,
|
|
10668
10675
|
[n]: o,
|
|
10669
|
-
name:
|
|
10676
|
+
name: wn
|
|
10670
10677
|
}), r;
|
|
10671
10678
|
}, o4 = (e) => {
|
|
10672
10679
|
const t = l4[e];
|
|
@@ -10785,7 +10792,7 @@ const xl = (e) => {
|
|
|
10785
10792
|
n.seriesKey,
|
|
10786
10793
|
n.gradientLegendMin,
|
|
10787
10794
|
n.gradientLegendMax
|
|
10788
|
-
)), d = b(() => u.value.filter((p) => p[n.mapType] !== Cn && p[n.mapType] !==
|
|
10795
|
+
)), d = b(() => u.value.filter((p) => p[n.mapType] !== Cn && p[n.mapType] !== wn).map((p) => p[n.mapType]));
|
|
10789
10796
|
ae(o, (p) => {
|
|
10790
10797
|
a("region-selection-changed", {
|
|
10791
10798
|
region: p
|