@turquoisehealth/pit-viper 2.130.1 → 2.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-date-picker-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvDatePicker/PvDatePicker.vue.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +171 -165
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +666 -662
- package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +2 -1
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +44 -44
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +498 -494
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +189 -185
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +331 -327
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +230 -225
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +510 -505
- package/pv-components/dist/web/pv-components.iife.js +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.pv-scatter-overlay[data-v-223abe26]{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-223abe26]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-223abe26]{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-223abe26]{grid-column:1;grid-row:1;align-items:flex-start;justify-content:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-223abe26]{grid-column:2;grid-row:1;align-items:flex-start;justify-content:flex-end;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-223abe26]{grid-column:1;grid-row:2;align-items:flex-end;justify-content:flex-start;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-223abe26]{grid-column:2;grid-row:2;align-items:flex-end;justify-content:flex-end;padding:5px}.pv-chart-loading[data-v-223abe26]{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-223abe26]{color:#16696d;animation:pulse-223abe26 1.5s infinite ease-in-out}@keyframes pulse-223abe26{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-action-button[data-v-a5579c11]{opacity:0;transition:opacity .2s ease}.pv-label:hover .pv-menu-action-button[data-v-a5579c11]{opacity:1}.pv-menu-item-disabled[data-v-96366136]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-96366136]{cursor:pointer}.pv-menu-item-disabled[data-v-ba7e1233]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-ba7e1233]{cursor:pointer}.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-45318291]: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-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-4b1b491e]{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-4b1b491e]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4b1b491e]{border:none;background:transparent;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4b1b491e]: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-8c82d8de]:after{content:"›"}.pv-tooltip a[data-v-8c82d8de]{color:inherit}.pv-chart-option[data-v-8c82d8de]{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(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { defineComponent as ee, createElementBlock as S, openBlock as d, normalizeStyle as Pe, normalizeClass as ae, ref as
|
|
2
|
+
import { defineComponent as ee, createElementBlock as S, openBlock as d, normalizeStyle as Pe, normalizeClass as ae, ref as O, onMounted as He, onUnmounted as ia, computed as h, createVNode as K, createCommentVNode as A, unref as G, Fragment as te, createElementVNode as P, createBlock as q, resolveDynamicComponent as pt, isRef as Tn, toValue as Sl, nextTick as wt, useTemplateRef as vt, renderSlot as xe, watch as ne, withDirectives as ze, createTextVNode as Le, Teleport as $n, withCtx as ue, getCurrentInstance as Yt, toDisplayString as J, withModifiers as nn, shallowRef as nl, getCurrentScope as go, onScopeDispose as bo, shallowReadonly as Pt, mergeModels as Te, useModel as we, vShow as ll, renderList as Oe, vModelText as al, readonly as Co, mergeProps as De, createSlots as gn, normalizeProps as Ct, inject as de, resolveComponent as xo, provide as ye, vModelDynamic as So, vModelCheckbox as wo, onBeforeUnmount as Fo, guardReactiveProps as qn, onBeforeMount as ol } from "vue";
|
|
3
3
|
import { AgCharts as ko } from "ag-charts-vue3";
|
|
4
4
|
import { LicenseManager as To } from "ag-charts-enterprise";
|
|
5
5
|
import { AgGridVue as $o } from "ag-grid-vue3";
|
|
@@ -217,18 +217,18 @@ const Mr = { style: { position: "relative" } }, Dr = {
|
|
|
217
217
|
setup(e, { expose: t, emit: n }) {
|
|
218
218
|
const l = e, o = n;
|
|
219
219
|
To.setLicenseKey(Nr);
|
|
220
|
-
const a =
|
|
220
|
+
const a = O(null), r = O({}), s = () => {
|
|
221
221
|
if (!a.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
222
222
|
const b = a.value.$el;
|
|
223
223
|
if (!b) return;
|
|
224
224
|
const w = b.querySelector(".ag-charts-series-area");
|
|
225
225
|
if (!w) return;
|
|
226
|
-
const
|
|
226
|
+
const R = w.getBoundingClientRect(), T = b.getBoundingClientRect(), k = l.options.seriesArea?.padding || { top: 0, right: 0, bottom: 0, left: 0 }, L = typeof k == "number" ? k : k.top || 0, C = typeof k == "number" ? k : k.right || 0, x = typeof k == "number" ? k : k.bottom || 0, $ = typeof k == "number" ? k : k.left || 0;
|
|
227
227
|
r.value = {
|
|
228
|
-
top: `${
|
|
229
|
-
left: `${
|
|
230
|
-
width: `${
|
|
231
|
-
height: `${
|
|
228
|
+
top: `${R.top - T.top - L}px`,
|
|
229
|
+
left: `${R.left - T.left - $}px`,
|
|
230
|
+
width: `${R.width + $ + C}px`,
|
|
231
|
+
height: `${R.height + L + x}px`
|
|
232
232
|
};
|
|
233
233
|
}, i = {
|
|
234
234
|
seriesVisibilityChange: (b) => {
|
|
@@ -240,68 +240,68 @@ const Mr = { style: { position: "relative" } }, Dr = {
|
|
|
240
240
|
}), ia(() => {
|
|
241
241
|
r.value = {};
|
|
242
242
|
});
|
|
243
|
-
const u =
|
|
243
|
+
const u = h(() => (F.value?.series || []).some((w) => w.type === "map-shape")), c = h(() => {
|
|
244
244
|
const b = F.value?.series || [];
|
|
245
245
|
let w = !1;
|
|
246
|
-
return b.forEach((
|
|
247
|
-
|
|
246
|
+
return b.forEach((R) => {
|
|
247
|
+
R.type === "bar" && R.direction === "horizontal" && (w = !0);
|
|
248
248
|
}), w;
|
|
249
|
-
}), f =
|
|
250
|
-
const w = b.xKey || "",
|
|
251
|
-
let L = String(
|
|
249
|
+
}), f = h(() => (F.value?.series || []).some((w) => w.type === "scatter")), p = (b) => {
|
|
250
|
+
const w = b.xKey || "", R = b.xName || b.datum[w], T = b.yKey, k = b.datum[T];
|
|
251
|
+
let L = String(R) || "";
|
|
252
252
|
const x = (F.value?.axes || []).find((Y) => Y.type === "category");
|
|
253
|
-
if (x && x.label && x.label.formatter && (L = x.label.formatter({ value:
|
|
253
|
+
if (x && x.label && x.label.formatter && (L = x.label.formatter({ value: R, datum: b.datum }) || L), k == null || k === Mt)
|
|
254
254
|
return {
|
|
255
255
|
heading: L,
|
|
256
256
|
data: []
|
|
257
257
|
};
|
|
258
|
-
let
|
|
259
|
-
const _ = F.value?.series?.find((Y) => Y.yKey ===
|
|
258
|
+
let $ = String(k) || "";
|
|
259
|
+
const _ = F.value?.series?.find((Y) => Y.yKey === T);
|
|
260
260
|
if (_ && _?.label?.formatter) {
|
|
261
261
|
const Y = _.label.formatter;
|
|
262
|
-
|
|
262
|
+
$ = Y({ value: k, datum: b.datum }) || formattedValue;
|
|
263
263
|
}
|
|
264
264
|
return {
|
|
265
265
|
heading: L,
|
|
266
266
|
data: [
|
|
267
267
|
{
|
|
268
268
|
label: b.yName,
|
|
269
|
-
value:
|
|
269
|
+
value: $
|
|
270
270
|
// Must be a string per ag-charts API
|
|
271
271
|
}
|
|
272
272
|
]
|
|
273
273
|
};
|
|
274
274
|
}, m = (b, w) => {
|
|
275
275
|
if (!b || !l.translateNullValues) return b;
|
|
276
|
-
const
|
|
276
|
+
const R = /* @__PURE__ */ new Set();
|
|
277
277
|
b.forEach((L) => {
|
|
278
|
-
Object.keys(L).forEach((C) =>
|
|
278
|
+
Object.keys(L).forEach((C) => R.add(C));
|
|
279
279
|
});
|
|
280
|
-
const
|
|
280
|
+
const T = [];
|
|
281
281
|
w?.forEach((L) => {
|
|
282
|
-
"yKey" in L && L.yKey &&
|
|
282
|
+
"yKey" in L && L.yKey && T.push(L.yKey);
|
|
283
283
|
});
|
|
284
284
|
const k = b.map((L) => {
|
|
285
285
|
const C = { ...L };
|
|
286
|
-
return
|
|
286
|
+
return R.forEach((x) => {
|
|
287
287
|
x in C ? C[x] === null && (C[x] = Mt) : C[x] = Mt;
|
|
288
288
|
}), C;
|
|
289
289
|
});
|
|
290
|
-
return
|
|
291
|
-
(L) =>
|
|
290
|
+
return T.length > 0 && k?.every(
|
|
291
|
+
(L) => T.every((C) => !(C in L) || L[C] === Mt || L[C] === null)
|
|
292
292
|
) ? [] : k;
|
|
293
293
|
}, v = (b) => b && b.map((w) => {
|
|
294
|
-
const
|
|
295
|
-
return
|
|
296
|
-
if (
|
|
294
|
+
const R = { ...w };
|
|
295
|
+
return R.tooltip || (R.tooltip = {}), R.tooltip.renderer || (R.tooltip.renderer = p), R.itemStyler || (R.itemStyler = (T) => {
|
|
296
|
+
if (T.yValue === Mt || T.yValue === null)
|
|
297
297
|
return { fill: "transparent", stroke: "transparent" };
|
|
298
|
-
}),
|
|
299
|
-
}),
|
|
298
|
+
}), R;
|
|
299
|
+
}), y = h(() => {
|
|
300
300
|
if (l.seriesFormatType === "currency")
|
|
301
301
|
return fa;
|
|
302
302
|
if (l.seriesFormatType === "percent")
|
|
303
303
|
return 0;
|
|
304
|
-
}), F =
|
|
304
|
+
}), F = h(() => {
|
|
305
305
|
const b = { ...l.options };
|
|
306
306
|
b.theme || (b.theme = Sr), b.data = m(b.data, b.series), b.series = v(b.series), b.overlays || (b.overlays = {
|
|
307
307
|
noData: {
|
|
@@ -319,12 +319,12 @@ const Mr = { style: { position: "relative" } }, Dr = {
|
|
|
319
319
|
type: "number",
|
|
320
320
|
position: c.value ? "bottom" : "left",
|
|
321
321
|
label: {
|
|
322
|
-
formatter:
|
|
322
|
+
formatter: y.value
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
]);
|
|
326
|
-
const
|
|
327
|
-
return
|
|
326
|
+
const R = (b.series || []).filter((k) => k.type === "scatter"), T = l.customChartProps?.scatter?.centerOnCoords;
|
|
327
|
+
return R.length > 0 && T && (T.x !== void 0 && T.x !== null && Or(b, T.x), T.y !== void 0 && T.y !== null && Pr(b, T.y)), b.contextMenu || (b.contextMenu = {
|
|
328
328
|
enabled: !1
|
|
329
329
|
}), b.listeners = {
|
|
330
330
|
...b.listeners || {},
|
|
@@ -433,7 +433,7 @@ const jr = ["data-align"], Ur = /* @__PURE__ */ ee({
|
|
|
433
433
|
},
|
|
434
434
|
emits: ["list-order-updated"],
|
|
435
435
|
setup(e, { expose: t, emit: n }) {
|
|
436
|
-
const l =
|
|
436
|
+
const l = O(null), o = vt("popoverList"), a = e, r = n;
|
|
437
437
|
return a.isSortable && a.isList && qr(o, [], {
|
|
438
438
|
animation: 150,
|
|
439
439
|
onUpdate: () => {
|
|
@@ -483,9 +483,9 @@ const jr = ["data-align"], Ur = /* @__PURE__ */ ee({
|
|
|
483
483
|
},
|
|
484
484
|
emits: ["dropdown-open", "dropdown-closed", "list-order-updated"],
|
|
485
485
|
setup(e, { expose: t, emit: n }) {
|
|
486
|
-
const l = e, o = n, a =
|
|
486
|
+
const l = e, o = n, a = O(l.defaultOpen), r = O(null), s = O(null), i = O(null), u = O(null), c = () => {
|
|
487
487
|
r.value && (i.value = r.value.getBoundingClientRect()), s.value?.popoverRoot && (u.value = s.value.popoverRoot.getBoundingClientRect());
|
|
488
|
-
}, f =
|
|
488
|
+
}, f = h(() => ({
|
|
489
489
|
"pv-hide": !a.value
|
|
490
490
|
})), p = (b) => {
|
|
491
491
|
a.value = !a.value;
|
|
@@ -499,11 +499,11 @@ const jr = ["data-align"], Ur = /* @__PURE__ */ ee({
|
|
|
499
499
|
c(), o("dropdown-open");
|
|
500
500
|
}) : o("dropdown-closed");
|
|
501
501
|
});
|
|
502
|
-
const v =
|
|
502
|
+
const v = h(() => !i.value || !u.value ? 0 : l.alignment === "right" || l.alignment === "top right" ? i.value.left + i.value.width - u.value.width : i.value.left), y = h(() => !i.value || !u.value ? 0 : l.alignment === "top" || l.alignment === "top right" ? i.value.top - u.value.height : i.value.top + window.scrollY + i.value.height), F = h(() => l.useTeleport ? {
|
|
503
503
|
...{
|
|
504
504
|
position: "absolute",
|
|
505
505
|
left: `${v.value}px`,
|
|
506
|
-
top: `${
|
|
506
|
+
top: `${y.value}px`,
|
|
507
507
|
zIndex: 10
|
|
508
508
|
},
|
|
509
509
|
...l.popoverCssProperties
|
|
@@ -533,7 +533,7 @@ const jr = ["data-align"], Ur = /* @__PURE__ */ ee({
|
|
|
533
533
|
alignment: e.alignment,
|
|
534
534
|
isList: e.isList,
|
|
535
535
|
isSortable: e.isSortable,
|
|
536
|
-
onListOrderUpdated: w[0] || (w[0] = (
|
|
536
|
+
onListOrderUpdated: w[0] || (w[0] = (R) => b.$emit("list-order-updated", R))
|
|
537
537
|
}, {
|
|
538
538
|
default: ue(() => [
|
|
539
539
|
xe(b.$slots, "default", {}, () => [
|
|
@@ -549,7 +549,7 @@ const jr = ["data-align"], Ur = /* @__PURE__ */ ee({
|
|
|
549
549
|
}
|
|
550
550
|
}), Xr = /* @__PURE__ */ Ve(Zr, [["__scopeId", "data-v-79a7def3"]]);
|
|
551
551
|
function Jr() {
|
|
552
|
-
const e =
|
|
552
|
+
const e = O(!1), n = Yt()?.root || {};
|
|
553
553
|
return "isCE" in n && n.isCE === !0 && (e.value = !0), e;
|
|
554
554
|
}
|
|
555
555
|
const es = {
|
|
@@ -566,10 +566,10 @@ const es = {
|
|
|
566
566
|
size: {}
|
|
567
567
|
},
|
|
568
568
|
setup(e) {
|
|
569
|
-
const t = e, n = Jr(), l =
|
|
569
|
+
const t = e, n = Jr(), l = O(null), o = h(() => ({
|
|
570
570
|
"pv-icon": !0,
|
|
571
571
|
[`pv-icon-${t.size}`]: ts.includes(t.size)
|
|
572
|
-
})), a =
|
|
572
|
+
})), a = h(() => n.value && l.value ? `${l.value}#${t.name}` : `#${t.name}`);
|
|
573
573
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (l.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (r, s) => (d(), S("svg", {
|
|
574
574
|
"data-testid": "pv-icon",
|
|
575
575
|
"aria-hidden": "true",
|
|
@@ -598,7 +598,7 @@ const es = {
|
|
|
598
598
|
inverse: { type: Boolean, default: !1 }
|
|
599
599
|
},
|
|
600
600
|
setup(e) {
|
|
601
|
-
const t = e, n =
|
|
601
|
+
const t = e, n = h(() => {
|
|
602
602
|
const l = [];
|
|
603
603
|
t.inverse && ba.includes(t.variant) ? l.push(`pv-button-${t.variant}-inverse`) : l.push(`pv-button-${t.variant}`);
|
|
604
604
|
const o = Ca(t.size);
|
|
@@ -675,7 +675,7 @@ const es = {
|
|
|
675
675
|
maxValue: { default: 99 }
|
|
676
676
|
},
|
|
677
677
|
setup(e) {
|
|
678
|
-
const t = e, n =
|
|
678
|
+
const t = e, n = h(() => t.size == "md" ? "md" : (t.size == "sm", "sm")), l = h(() => t.maxValue && t.value && t.value > t.maxValue ? `${t.maxValue}+` : t.value != null ? `${t.prefix}${t.value}` : "-"), o = h(() => ({
|
|
679
679
|
"pv-inline-block pv-inset-square pv-radius pv-text-center": !0,
|
|
680
680
|
"pv-badge-md pv-text-body-md": n.value == "md",
|
|
681
681
|
"pv-badge-sm pv-text-body-sm": n.value == "sm",
|
|
@@ -702,7 +702,7 @@ const es = {
|
|
|
702
702
|
},
|
|
703
703
|
emits: ["handle-close", "handle-click"],
|
|
704
704
|
setup(e) {
|
|
705
|
-
const t = e, n =
|
|
705
|
+
const t = e, n = h(() => {
|
|
706
706
|
switch (t.size) {
|
|
707
707
|
case "lg":
|
|
708
708
|
return "pv-tag-lg";
|
|
@@ -711,7 +711,7 @@ const es = {
|
|
|
711
711
|
default:
|
|
712
712
|
return "";
|
|
713
713
|
}
|
|
714
|
-
}), l =
|
|
714
|
+
}), l = h(() => {
|
|
715
715
|
switch (t.variant) {
|
|
716
716
|
case "primary":
|
|
717
717
|
return "pv-tag-primary";
|
|
@@ -910,14 +910,14 @@ const ws = async (e, t, n) => {
|
|
|
910
910
|
x: c,
|
|
911
911
|
y: f
|
|
912
912
|
} = Ml(u, l, i), p = l, m = {}, v = 0;
|
|
913
|
-
for (let
|
|
913
|
+
for (let y = 0; y < s.length; y++) {
|
|
914
914
|
const {
|
|
915
915
|
name: F,
|
|
916
916
|
fn: b
|
|
917
|
-
} = s[
|
|
917
|
+
} = s[y], {
|
|
918
918
|
x: w,
|
|
919
|
-
y:
|
|
920
|
-
data:
|
|
919
|
+
y: R,
|
|
920
|
+
data: T,
|
|
921
921
|
reset: k
|
|
922
922
|
} = await b({
|
|
923
923
|
x: c,
|
|
@@ -933,11 +933,11 @@ const ws = async (e, t, n) => {
|
|
|
933
933
|
floating: t
|
|
934
934
|
}
|
|
935
935
|
});
|
|
936
|
-
c = w ?? c, f =
|
|
936
|
+
c = w ?? c, f = R ?? f, m = {
|
|
937
937
|
...m,
|
|
938
938
|
[F]: {
|
|
939
939
|
...m[F],
|
|
940
|
-
...
|
|
940
|
+
...T
|
|
941
941
|
}
|
|
942
942
|
}, k && v <= 50 && (v++, typeof k == "object" && (k.placement && (p = k.placement), k.rects && (u = k.rects === !0 ? await r.getElementRects({
|
|
943
943
|
reference: e,
|
|
@@ -946,7 +946,7 @@ const ws = async (e, t, n) => {
|
|
|
946
946
|
}) : k.rects), {
|
|
947
947
|
x: c,
|
|
948
948
|
y: f
|
|
949
|
-
} = Ml(u, p, i)),
|
|
949
|
+
} = Ml(u, p, i)), y = -1);
|
|
950
950
|
}
|
|
951
951
|
return {
|
|
952
952
|
x: c,
|
|
@@ -982,7 +982,7 @@ async function Fs(e, t) {
|
|
|
982
982
|
y: o,
|
|
983
983
|
width: r.floating.width,
|
|
984
984
|
height: r.floating.height
|
|
985
|
-
} : r.reference,
|
|
985
|
+
} : r.reference, R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), T = await (a.isElement == null ? void 0 : a.isElement(R)) ? await (a.getScale == null ? void 0 : a.getScale(R)) || {
|
|
986
986
|
x: 1,
|
|
987
987
|
y: 1
|
|
988
988
|
} : {
|
|
@@ -991,14 +991,14 @@ async function Fs(e, t) {
|
|
|
991
991
|
}, k = xn(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
992
992
|
elements: s,
|
|
993
993
|
rect: w,
|
|
994
|
-
offsetParent:
|
|
994
|
+
offsetParent: R,
|
|
995
995
|
strategy: i
|
|
996
996
|
}) : w);
|
|
997
997
|
return {
|
|
998
|
-
top: (b.top - k.top + v.top) /
|
|
999
|
-
bottom: (k.bottom - b.bottom + v.bottom) /
|
|
1000
|
-
left: (b.left - k.left + v.left) /
|
|
1001
|
-
right: (k.right - b.right + v.right) /
|
|
998
|
+
top: (b.top - k.top + v.top) / T.y,
|
|
999
|
+
bottom: (k.bottom - b.bottom + v.bottom) / T.y,
|
|
1000
|
+
left: (b.left - k.left + v.left) / T.x,
|
|
1001
|
+
right: (k.right - b.right + v.right) / T.x
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
const ks = function(e) {
|
|
@@ -1020,23 +1020,23 @@ const ks = function(e) {
|
|
|
1020
1020
|
fallbackPlacements: p,
|
|
1021
1021
|
fallbackStrategy: m = "bestFit",
|
|
1022
1022
|
fallbackAxisSideDirection: v = "none",
|
|
1023
|
-
flipAlignment:
|
|
1023
|
+
flipAlignment: y = !0,
|
|
1024
1024
|
...F
|
|
1025
1025
|
} = cl(e, t);
|
|
1026
1026
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
1027
1027
|
return {};
|
|
1028
|
-
const b = Vt(o), w = bt(s),
|
|
1029
|
-
!p && L && k.push(...Cs(s,
|
|
1030
|
-
const C = [s, ...k], x = await Fs(t, F),
|
|
1028
|
+
const b = Vt(o), w = bt(s), R = Vt(s) === s, T = await (i.isRTL == null ? void 0 : i.isRTL(u.floating)), k = p || (R || !y ? [Cn(s)] : hs(s)), L = v !== "none";
|
|
1029
|
+
!p && L && k.push(...Cs(s, y, v, T));
|
|
1030
|
+
const C = [s, ...k], x = await Fs(t, F), $ = [];
|
|
1031
1031
|
let H = ((l = a.flip) == null ? void 0 : l.overflows) || [];
|
|
1032
|
-
if (c &&
|
|
1033
|
-
const U = ms(o, r,
|
|
1034
|
-
|
|
1032
|
+
if (c && $.push(x[b]), f) {
|
|
1033
|
+
const U = ms(o, r, T);
|
|
1034
|
+
$.push(x[U[0]], x[U[1]]);
|
|
1035
1035
|
}
|
|
1036
1036
|
if (H = [...H, {
|
|
1037
1037
|
placement: o,
|
|
1038
|
-
overflows:
|
|
1039
|
-
}],
|
|
1038
|
+
overflows: $
|
|
1039
|
+
}], !$.every((U) => U <= 0)) {
|
|
1040
1040
|
var _, Y;
|
|
1041
1041
|
const U = (((_ = a.flip) == null ? void 0 : _.index) || 0) + 1, ve = C[U];
|
|
1042
1042
|
if (ve && (!(f === "alignment" ? w !== bt(ve) : !1) || // We leave the current main axis only if every placement on that axis
|
|
@@ -1291,10 +1291,10 @@ function Xt(e, t, n, l) {
|
|
|
1291
1291
|
let i = (o.left + s.x) / r.x, u = (o.top + s.y) / r.y, c = o.width / r.x, f = o.height / r.y;
|
|
1292
1292
|
if (a) {
|
|
1293
1293
|
const p = Ge(a), m = l && Ye(l) ? Ge(l) : l;
|
|
1294
|
-
let v = p,
|
|
1295
|
-
for (;
|
|
1296
|
-
const F = Lt(
|
|
1297
|
-
i *= F.x, u *= F.y, c *= F.x, f *= F.y, i +=
|
|
1294
|
+
let v = p, y = Yn(v);
|
|
1295
|
+
for (; y && l && m !== v; ) {
|
|
1296
|
+
const F = Lt(y), b = y.getBoundingClientRect(), w = Qe(y), R = b.left + (y.clientLeft + parseFloat(w.paddingLeft)) * F.x, T = b.top + (y.clientTop + parseFloat(w.paddingTop)) * F.y;
|
|
1297
|
+
i *= F.x, u *= F.y, c *= F.x, f *= F.y, i += R, u += T, v = Ge(y), y = Yn(v);
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
return xn({
|
|
@@ -1565,19 +1565,19 @@ function Il(e, t) {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
function li(e, t, n) {
|
|
1567
1567
|
n === void 0 && (n = {});
|
|
1568
|
-
const l = n.whileElementsMounted, o =
|
|
1568
|
+
const l = n.whileElementsMounted, o = h(() => {
|
|
1569
1569
|
var C;
|
|
1570
1570
|
return (C = Gt(n.open)) != null ? C : !0;
|
|
1571
|
-
}), a =
|
|
1571
|
+
}), a = h(() => Gt(n.middleware)), r = h(() => {
|
|
1572
1572
|
var C;
|
|
1573
1573
|
return (C = Gt(n.placement)) != null ? C : "bottom";
|
|
1574
|
-
}), s =
|
|
1574
|
+
}), s = h(() => {
|
|
1575
1575
|
var C;
|
|
1576
1576
|
return (C = Gt(n.strategy)) != null ? C : "absolute";
|
|
1577
|
-
}), i =
|
|
1577
|
+
}), i = h(() => {
|
|
1578
1578
|
var C;
|
|
1579
1579
|
return (C = Gt(n.transform)) != null ? C : !0;
|
|
1580
|
-
}), u =
|
|
1580
|
+
}), u = h(() => Al(e.value)), c = h(() => Al(t.value)), f = O(0), p = O(0), m = O(s.value), v = O(r.value), y = nl({}), F = O(!1), b = h(() => {
|
|
1581
1581
|
const C = {
|
|
1582
1582
|
position: m.value,
|
|
1583
1583
|
left: "0",
|
|
@@ -1585,21 +1585,21 @@ function li(e, t, n) {
|
|
|
1585
1585
|
};
|
|
1586
1586
|
if (!c.value)
|
|
1587
1587
|
return C;
|
|
1588
|
-
const x = Il(c.value, f.value),
|
|
1588
|
+
const x = Il(c.value, f.value), $ = Il(c.value, p.value);
|
|
1589
1589
|
return i.value ? {
|
|
1590
1590
|
...C,
|
|
1591
|
-
transform: "translate(" + x + "px, " +
|
|
1591
|
+
transform: "translate(" + x + "px, " + $ + "px)",
|
|
1592
1592
|
...Da(c.value) >= 1.5 && {
|
|
1593
1593
|
willChange: "transform"
|
|
1594
1594
|
}
|
|
1595
1595
|
} : {
|
|
1596
1596
|
position: m.value,
|
|
1597
1597
|
left: x + "px",
|
|
1598
|
-
top:
|
|
1598
|
+
top: $ + "px"
|
|
1599
1599
|
};
|
|
1600
1600
|
});
|
|
1601
1601
|
let w;
|
|
1602
|
-
function
|
|
1602
|
+
function R() {
|
|
1603
1603
|
if (u.value == null || c.value == null)
|
|
1604
1604
|
return;
|
|
1605
1605
|
const C = o.value;
|
|
@@ -1608,40 +1608,40 @@ function li(e, t, n) {
|
|
|
1608
1608
|
placement: r.value,
|
|
1609
1609
|
strategy: s.value
|
|
1610
1610
|
}).then((x) => {
|
|
1611
|
-
f.value = x.x, p.value = x.y, m.value = x.strategy, v.value = x.placement,
|
|
1611
|
+
f.value = x.x, p.value = x.y, m.value = x.strategy, v.value = x.placement, y.value = x.middlewareData, F.value = C !== !1;
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function T() {
|
|
1615
1615
|
typeof w == "function" && (w(), w = void 0);
|
|
1616
1616
|
}
|
|
1617
1617
|
function k() {
|
|
1618
|
-
if (
|
|
1619
|
-
|
|
1618
|
+
if (T(), l === void 0) {
|
|
1619
|
+
R();
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
1622
|
if (u.value != null && c.value != null) {
|
|
1623
|
-
w = l(u.value, c.value,
|
|
1623
|
+
w = l(u.value, c.value, R);
|
|
1624
1624
|
return;
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
1627
|
function L() {
|
|
1628
1628
|
o.value || (F.value = !1);
|
|
1629
1629
|
}
|
|
1630
|
-
return ne([a, r, s, o],
|
|
1630
|
+
return ne([a, r, s, o], R, {
|
|
1631
1631
|
flush: "sync"
|
|
1632
1632
|
}), ne([u, c], k, {
|
|
1633
1633
|
flush: "sync"
|
|
1634
1634
|
}), ne(o, L, {
|
|
1635
1635
|
flush: "sync"
|
|
1636
|
-
}), go() && bo(
|
|
1636
|
+
}), go() && bo(T), {
|
|
1637
1637
|
x: Pt(f),
|
|
1638
1638
|
y: Pt(p),
|
|
1639
1639
|
strategy: Pt(m),
|
|
1640
1640
|
placement: Pt(v),
|
|
1641
|
-
middlewareData: Pt(
|
|
1641
|
+
middlewareData: Pt(y),
|
|
1642
1642
|
isPositioned: Pt(F),
|
|
1643
1643
|
floatingStyles: b,
|
|
1644
|
-
update:
|
|
1644
|
+
update: R
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
1647
|
const ai = { style: { width: "fit-content" } }, Ra = /* @__PURE__ */ ee({
|
|
@@ -1657,14 +1657,15 @@ const ai = { style: { width: "fit-content" } }, Ra = /* @__PURE__ */ ee({
|
|
|
1657
1657
|
delay: { default: 25 },
|
|
1658
1658
|
zIndex: { default: 10 },
|
|
1659
1659
|
teleportLocation: { default: "body" },
|
|
1660
|
-
offset: {}
|
|
1660
|
+
offset: {},
|
|
1661
|
+
ignoreClickOutsideClasses: {}
|
|
1661
1662
|
}, {
|
|
1662
1663
|
modelValue: { type: Boolean },
|
|
1663
1664
|
modelModifiers: {}
|
|
1664
1665
|
}),
|
|
1665
1666
|
emits: ["update:modelValue"],
|
|
1666
1667
|
setup(e) {
|
|
1667
|
-
const t = e, n = we(e, "modelValue"), l =
|
|
1668
|
+
const t = e, n = we(e, "modelValue"), l = O(null), o = O(null), a = O(null), r = wl(l), s = wl(a), i = {
|
|
1668
1669
|
"top-center": "top",
|
|
1669
1670
|
"bottom-center": "bottom",
|
|
1670
1671
|
"center-left": "left",
|
|
@@ -1688,37 +1689,40 @@ const ai = { style: { width: "fit-content" } }, Ra = /* @__PURE__ */ ee({
|
|
|
1688
1689
|
strategy: t.positioningStrategy,
|
|
1689
1690
|
middleware: u
|
|
1690
1691
|
});
|
|
1691
|
-
ne(n, (
|
|
1692
|
-
|
|
1692
|
+
ne(n, (T) => {
|
|
1693
|
+
T && o.value && a.value && f();
|
|
1693
1694
|
});
|
|
1694
1695
|
const p = vr(o), m = Fl(() => {
|
|
1695
1696
|
n.value && f();
|
|
1696
1697
|
}, 5);
|
|
1697
1698
|
ne([p.top, p.left, p.width, p.height], m);
|
|
1698
|
-
const v =
|
|
1699
|
+
const v = h(() => ({
|
|
1699
1700
|
...c.value,
|
|
1700
1701
|
zIndex: t.zIndex ?? 10
|
|
1701
|
-
})),
|
|
1702
|
-
(
|
|
1703
|
-
n.value =
|
|
1702
|
+
})), y = Fl(
|
|
1703
|
+
(T) => {
|
|
1704
|
+
n.value = T;
|
|
1704
1705
|
},
|
|
1705
1706
|
() => t.delay
|
|
1706
|
-
), F =
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1707
|
+
), F = h(() => {
|
|
1708
|
+
const T = [".pv-floating", ".p-datepicker-panel"];
|
|
1709
|
+
return t.ignoreClickOutsideClasses && T.push(...t.ignoreClickOutsideClasses.map((k) => `.${k}`)), T;
|
|
1710
|
+
}), b = h(() => t.showOnHover ? t.disableInteractive ? r.value : r.value || s.value : !1), w = () => {
|
|
1711
|
+
t.showOnHover || y(!n.value);
|
|
1712
|
+
}, R = () => {
|
|
1713
|
+
t.disableClickOutsideToClose || y(!1);
|
|
1710
1714
|
};
|
|
1711
|
-
return ne(
|
|
1712
|
-
t.showOnHover &&
|
|
1713
|
-
}), (
|
|
1715
|
+
return ne(b, (T) => {
|
|
1716
|
+
t.showOnHover && y(T);
|
|
1717
|
+
}), (T, k) => ze((d(), S("div", ai, [
|
|
1714
1718
|
P("div", {
|
|
1715
1719
|
ref_key: "triggerWrapper",
|
|
1716
1720
|
ref: l,
|
|
1717
|
-
onClick:
|
|
1721
|
+
onClick: w
|
|
1718
1722
|
}, [
|
|
1719
|
-
xe(
|
|
1723
|
+
xe(T.$slots, "trigger")
|
|
1720
1724
|
], 512),
|
|
1721
|
-
|
|
1725
|
+
T.$slots.content ? (d(), q($n, {
|
|
1722
1726
|
key: 0,
|
|
1723
1727
|
to: e.teleportLocation,
|
|
1724
1728
|
disabled: !t.useTeleport
|
|
@@ -1729,13 +1733,13 @@ const ai = { style: { width: "fit-content" } }, Ra = /* @__PURE__ */ ee({
|
|
|
1729
1733
|
ref: a,
|
|
1730
1734
|
style: Pe(v.value)
|
|
1731
1735
|
}, [
|
|
1732
|
-
xe(
|
|
1736
|
+
xe(T.$slots, "content")
|
|
1733
1737
|
], 4), [
|
|
1734
1738
|
[ll, n.value]
|
|
1735
1739
|
])
|
|
1736
1740
|
], 8, ["to", "disabled"])) : A("", !0)
|
|
1737
1741
|
])), [
|
|
1738
|
-
[G(On), [
|
|
1742
|
+
[G(On), [R, { ignore: F.value }]]
|
|
1739
1743
|
]);
|
|
1740
1744
|
}
|
|
1741
1745
|
}), oi = ["onClick", "data-active"], ri = /* @__PURE__ */ ee({
|
|
@@ -1808,12 +1812,12 @@ const di = {
|
|
|
1808
1812
|
toCamelCase: { type: Boolean, default: !0 }
|
|
1809
1813
|
},
|
|
1810
1814
|
setup(e) {
|
|
1811
|
-
const t = e, n =
|
|
1815
|
+
const t = e, n = O(!0), l = h(() => es[t.size] || "32px"), o = h(() => ({
|
|
1812
1816
|
"pv-icon": n.value,
|
|
1813
1817
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1814
|
-
})), a =
|
|
1818
|
+
})), a = h(() => ({
|
|
1815
1819
|
width: l.value
|
|
1816
|
-
})), r =
|
|
1820
|
+
})), r = h(() => t.toCamelCase ? ci(t.name) + ".svg" : t.name + ".svg"), s = h(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${r.value}`);
|
|
1817
1821
|
return ne(s, () => {
|
|
1818
1822
|
n.value = !0;
|
|
1819
1823
|
}), (i, u) => (d(), S("div", di, [
|
|
@@ -1901,7 +1905,7 @@ const wi = ["data-style", "disabled", "title"], Fi = { class: "pv-truncate" }, k
|
|
|
1901
1905
|
},
|
|
1902
1906
|
emits: ["handle-click"],
|
|
1903
1907
|
setup(e) {
|
|
1904
|
-
const t = e, n =
|
|
1908
|
+
const t = e, n = h(() => {
|
|
1905
1909
|
switch (t.size) {
|
|
1906
1910
|
case "lg":
|
|
1907
1911
|
return "pv-tag-lg";
|
|
@@ -1945,7 +1949,7 @@ const wi = ["data-style", "disabled", "title"], Fi = { class: "pv-truncate" }, k
|
|
|
1945
1949
|
}),
|
|
1946
1950
|
emits: ["update:modelValue"],
|
|
1947
1951
|
setup(e, { expose: t }) {
|
|
1948
|
-
const n = e, l = vt("search-input"), o = we(e, "modelValue"), a =
|
|
1952
|
+
const n = e, l = vt("search-input"), o = we(e, "modelValue"), a = h(() => ({
|
|
1949
1953
|
"pv-input-search": !0,
|
|
1950
1954
|
"pv-full-width": !0,
|
|
1951
1955
|
"pv-input-padded-end": !0
|
|
@@ -2171,12 +2175,12 @@ function Ki(e, t = {}) {
|
|
|
2171
2175
|
for (; i.length; ) {
|
|
2172
2176
|
let { node: c, path: f } = i.pop();
|
|
2173
2177
|
for (let p in c) {
|
|
2174
|
-
let m = c[p], v = Ni(m),
|
|
2175
|
-
if (Ut(v)) i.push({ node: v, path:
|
|
2178
|
+
let m = c[p], v = Ni(m), y = xt(p, a) ? Zn(f) : Zn(f, Aa(p));
|
|
2179
|
+
if (Ut(v)) i.push({ node: v, path: y });
|
|
2176
2180
|
else {
|
|
2177
|
-
let F = Na(
|
|
2181
|
+
let F = Na(y), b = Ga(v, y, l, [a]);
|
|
2178
2182
|
zi(s, F, b);
|
|
2179
|
-
let w =
|
|
2183
|
+
let w = y;
|
|
2180
2184
|
l && w.startsWith(l + "-") && (w = w.slice(l.length + 1)), r.push(w.replace(/-/g, "."));
|
|
2181
2185
|
}
|
|
2182
2186
|
}
|
|
@@ -2204,21 +2208,21 @@ var je = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
2204
2208
|
return Ki(e, { prefix: t?.prefix });
|
|
2205
2209
|
}, getCommon({ name: e = "", theme: t = {}, params: n, set: l, defaults: o }) {
|
|
2206
2210
|
var a, r, s, i, u, c, f;
|
|
2207
|
-
let { preset: p, options: m } = t, v,
|
|
2211
|
+
let { preset: p, options: m } = t, v, y, F, b, w, R, T;
|
|
2208
2212
|
if (Fe(p) && m.transform !== "strict") {
|
|
2209
|
-
let { primitive: k, semantic: L, extend: C } = p, x = L || {}, { colorScheme:
|
|
2210
|
-
v = this.transformCSS(e, Me, "light", "variable", m, l, o),
|
|
2213
|
+
let { primitive: k, semantic: L, extend: C } = p, x = L || {}, { colorScheme: $ } = x, H = it(x, ["colorScheme"]), _ = C || {}, { colorScheme: Y } = _, N = it(_, ["colorScheme"]), U = $ || {}, { dark: ve } = U, ce = it(U, ["dark"]), E = Y || {}, { dark: W } = E, I = it(E, ["dark"]), se = Fe(k) ? this._toVariables({ primitive: k }, m) : {}, ge = Fe(H) ? this._toVariables({ semantic: H }, m) : {}, me = Fe(ce) ? this._toVariables({ light: ce }, m) : {}, Q = Fe(ve) ? this._toVariables({ dark: ve }, m) : {}, pe = Fe(N) ? this._toVariables({ semantic: N }, m) : {}, Se = Fe(I) ? this._toVariables({ light: I }, m) : {}, Be = Fe(W) ? this._toVariables({ dark: W }, m) : {}, [Me, ot] = [(a = se.declarations) != null ? a : "", se.tokens], [Ke, Ze] = [(r = ge.declarations) != null ? r : "", ge.tokens || []], [rt, Xe] = [(s = me.declarations) != null ? s : "", me.tokens || []], [_e, ht] = [(i = Q.declarations) != null ? i : "", Q.tokens || []], [st, Ae] = [(u = pe.declarations) != null ? u : "", pe.tokens || []], [Je, ct] = [(c = Se.declarations) != null ? c : "", Se.tokens || []], [et, dt] = [(f = Be.declarations) != null ? f : "", Be.tokens || []];
|
|
2214
|
+
v = this.transformCSS(e, Me, "light", "variable", m, l, o), y = ot;
|
|
2211
2215
|
let yt = this.transformCSS(e, `${Ke}${rt}`, "light", "variable", m, l, o), j = this.transformCSS(e, `${_e}`, "dark", "variable", m, l, o);
|
|
2212
2216
|
F = `${yt}${j}`, b = [.../* @__PURE__ */ new Set([...Ze, ...Xe, ...ht])];
|
|
2213
2217
|
let Z = this.transformCSS(e, `${st}${Je}color-scheme:light`, "light", "variable", m, l, o), le = this.transformCSS(e, `${et}color-scheme:dark`, "dark", "variable", m, l, o);
|
|
2214
|
-
w = `${Z}${le}`,
|
|
2218
|
+
w = `${Z}${le}`, R = [.../* @__PURE__ */ new Set([...Ae, ...ct, ...dt])], T = ft(p.css, { dt: St });
|
|
2215
2219
|
}
|
|
2216
|
-
return { primitive: { css: v, tokens:
|
|
2220
|
+
return { primitive: { css: v, tokens: y }, semantic: { css: F, tokens: b }, global: { css: w, tokens: R }, style: T };
|
|
2217
2221
|
}, getPreset({ name: e = "", preset: t = {}, options: n, params: l, set: o, defaults: a, selector: r }) {
|
|
2218
2222
|
var s, i, u;
|
|
2219
2223
|
let c, f, p;
|
|
2220
2224
|
if (Fe(t) && n.transform !== "strict") {
|
|
2221
|
-
let m = e.replace("-directive", ""), v = t, { colorScheme:
|
|
2225
|
+
let m = e.replace("-directive", ""), v = t, { colorScheme: y, extend: F, css: b } = v, w = it(v, ["colorScheme", "extend", "css"]), R = F || {}, { colorScheme: T } = R, k = it(R, ["colorScheme"]), L = y || {}, { dark: C } = L, x = it(L, ["dark"]), $ = T || {}, { dark: H } = $, _ = it($, ["dark"]), Y = Fe(w) ? this._toVariables({ [m]: Ue(Ue({}, w), k) }, n) : {}, N = Fe(x) ? this._toVariables({ [m]: Ue(Ue({}, x), _) }, n) : {}, U = Fe(C) ? this._toVariables({ [m]: Ue(Ue({}, C), H) }, n) : {}, [ve, ce] = [(s = Y.declarations) != null ? s : "", Y.tokens || []], [E, W] = [(i = N.declarations) != null ? i : "", N.tokens || []], [I, se] = [(u = U.declarations) != null ? u : "", U.tokens || []], ge = this.transformCSS(m, `${ve}${E}`, "light", "variable", n, o, a, r), me = this.transformCSS(m, I, "dark", "variable", n, o, a, r);
|
|
2222
2226
|
c = `${ge}${me}`, f = [.../* @__PURE__ */ new Set([...ce, ...W, ...se])], p = ft(b, { dt: St });
|
|
2223
2227
|
}
|
|
2224
2228
|
return { css: c, tokens: f, style: p };
|
|
@@ -2259,9 +2263,9 @@ var je = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
2259
2263
|
if (typeof this.value == "string" && Jt.test(this.value)) {
|
|
2260
2264
|
let f = this.value.trim().replace(Jt, (p) => {
|
|
2261
2265
|
var m;
|
|
2262
|
-
let v = p.slice(1, -1),
|
|
2263
|
-
if (!
|
|
2264
|
-
let F =
|
|
2266
|
+
let v = p.slice(1, -1), y = this.tokens[v];
|
|
2267
|
+
if (!y) return console.warn(`Token not found for path: ${v}`), "__UNRESOLVED__";
|
|
2268
|
+
let F = y.computed(s, i, u);
|
|
2265
2269
|
return Array.isArray(F) && F.length === 2 ? `light-dark(${F[0].value},${F[1].value})` : (m = F?.value) != null ? m : "__UNRESOLVED__";
|
|
2266
2270
|
});
|
|
2267
2271
|
c = _a.test(f.replace(Ea, "0")) ? `calc(${f})` : f;
|
|
@@ -2270,13 +2274,13 @@ var je = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
2270
2274
|
}, r = (s, i, u) => {
|
|
2271
2275
|
Object.entries(s).forEach(([c, f]) => {
|
|
2272
2276
|
let p = xt(c, t.variable.excludedKeyRegex) ? i : i ? `${i}.${El(c)}` : El(c), m = u ? `${u}.${c}` : c;
|
|
2273
|
-
Ut(f) ? r(f, p, m) : (o[p] || (o[p] = { paths: [], computed: (v,
|
|
2274
|
-
if (o[p].paths.length === 1) return o[p].paths[0].computed(o[p].paths[0].scheme,
|
|
2277
|
+
Ut(f) ? r(f, p, m) : (o[p] || (o[p] = { paths: [], computed: (v, y = {}, F = []) => {
|
|
2278
|
+
if (o[p].paths.length === 1) return o[p].paths[0].computed(o[p].paths[0].scheme, y.binding, F);
|
|
2275
2279
|
if (v && v !== "none") for (let b = 0; b < o[p].paths.length; b++) {
|
|
2276
2280
|
let w = o[p].paths[b];
|
|
2277
|
-
if (w.scheme === v) return w.computed(v,
|
|
2281
|
+
if (w.scheme === v) return w.computed(v, y.binding, F);
|
|
2278
2282
|
}
|
|
2279
|
-
return o[p].paths.map((b) => b.computed(b.scheme,
|
|
2283
|
+
return o[p].paths.map((b) => b.computed(b.scheme, y[b.scheme], F));
|
|
2280
2284
|
} }), o[p].paths.push({ path: m, value: f, scheme: m.includes("colorScheme.light") ? "light" : m.includes("colorScheme.dark") ? "dark" : "none", computed: a, tokens: o }));
|
|
2281
2285
|
});
|
|
2282
2286
|
};
|
|
@@ -2546,11 +2550,11 @@ function Qi(e) {
|
|
|
2546
2550
|
}
|
|
2547
2551
|
var Zi = 0;
|
|
2548
2552
|
function Xi(e) {
|
|
2549
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
2553
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = O(!1), l = O(e), o = O(null), a = Di() ? window.document : void 0, r = t.document, s = r === void 0 ? a : r, i = t.immediate, u = i === void 0 ? !0 : i, c = t.manual, f = c === void 0 ? !1 : c, p = t.name, m = p === void 0 ? "style_".concat(++Zi) : p, v = t.id, y = v === void 0 ? void 0 : v, F = t.media, b = F === void 0 ? void 0 : F, w = t.nonce, R = w === void 0 ? void 0 : w, T = t.first, k = T === void 0 ? !1 : T, L = t.onMounted, C = L === void 0 ? void 0 : L, x = t.onUpdated, $ = x === void 0 ? void 0 : x, H = t.onLoad, _ = H === void 0 ? void 0 : H, Y = t.props, N = Y === void 0 ? {} : Y, U = function() {
|
|
2550
2554
|
}, ve = function(W) {
|
|
2551
2555
|
var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2552
2556
|
if (s) {
|
|
2553
|
-
var se = Gl(Gl({}, N), I), ge = se.name || m, me = se.id ||
|
|
2557
|
+
var se = Gl(Gl({}, N), I), ge = se.name || m, me = se.id || y, Q = se.nonce || R;
|
|
2554
2558
|
o.value = s.querySelector('style[data-primevue-style-id="'.concat(ge, '"]')) || s.getElementById(me) || s.createElement("style"), o.value.isConnected || (l.value = W || e, Qn(o.value, {
|
|
2555
2559
|
type: "text/css",
|
|
2556
2560
|
id: me,
|
|
@@ -2561,7 +2565,7 @@ function Xi(e) {
|
|
|
2561
2565
|
name: ge
|
|
2562
2566
|
});
|
|
2563
2567
|
}, C?.(ge)), !n.value && (U = ne(l, function(pe) {
|
|
2564
|
-
o.value.textContent = pe,
|
|
2568
|
+
o.value.textContent = pe, $?.(ge);
|
|
2565
2569
|
}, {
|
|
2566
2570
|
immediate: !0
|
|
2567
2571
|
}), n.value = !0);
|
|
@@ -2570,7 +2574,7 @@ function Xi(e) {
|
|
|
2570
2574
|
!s || !n.value || (U(), Mi(o.value) && s.head.removeChild(o.value), n.value = !1, o.value = null);
|
|
2571
2575
|
};
|
|
2572
2576
|
return u && !f && Qi(ve), {
|
|
2573
|
-
id:
|
|
2577
|
+
id: y,
|
|
2574
2578
|
name: m,
|
|
2575
2579
|
el: o,
|
|
2576
2580
|
css: l,
|
|
@@ -2783,51 +2787,51 @@ function cu() {
|
|
|
2783
2787
|
var n = "minute", l = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
|
|
2784
2788
|
return function(a, r, s) {
|
|
2785
2789
|
var i = r.prototype;
|
|
2786
|
-
s.utc = function(
|
|
2787
|
-
var F = { date:
|
|
2790
|
+
s.utc = function(y) {
|
|
2791
|
+
var F = { date: y, utc: !0, args: arguments };
|
|
2788
2792
|
return new r(F);
|
|
2789
|
-
}, i.utc = function(
|
|
2793
|
+
}, i.utc = function(y) {
|
|
2790
2794
|
var F = s(this.toDate(), { locale: this.$L, utc: !0 });
|
|
2791
|
-
return
|
|
2795
|
+
return y ? F.add(this.utcOffset(), n) : F;
|
|
2792
2796
|
}, i.local = function() {
|
|
2793
2797
|
return s(this.toDate(), { locale: this.$L, utc: !1 });
|
|
2794
2798
|
};
|
|
2795
2799
|
var u = i.parse;
|
|
2796
|
-
i.parse = function(
|
|
2797
|
-
|
|
2800
|
+
i.parse = function(y) {
|
|
2801
|
+
y.utc && (this.$u = !0), this.$utils().u(y.$offset) || (this.$offset = y.$offset), u.call(this, y);
|
|
2798
2802
|
};
|
|
2799
2803
|
var c = i.init;
|
|
2800
2804
|
i.init = function() {
|
|
2801
2805
|
if (this.$u) {
|
|
2802
|
-
var
|
|
2803
|
-
this.$y =
|
|
2806
|
+
var y = this.$d;
|
|
2807
|
+
this.$y = y.getUTCFullYear(), this.$M = y.getUTCMonth(), this.$D = y.getUTCDate(), this.$W = y.getUTCDay(), this.$H = y.getUTCHours(), this.$m = y.getUTCMinutes(), this.$s = y.getUTCSeconds(), this.$ms = y.getUTCMilliseconds();
|
|
2804
2808
|
} else c.call(this);
|
|
2805
2809
|
};
|
|
2806
2810
|
var f = i.utcOffset;
|
|
2807
|
-
i.utcOffset = function(
|
|
2811
|
+
i.utcOffset = function(y, F) {
|
|
2808
2812
|
var b = this.$utils().u;
|
|
2809
|
-
if (b(
|
|
2810
|
-
if (typeof
|
|
2813
|
+
if (b(y)) return this.$u ? 0 : b(this.$offset) ? f.call(this) : this.$offset;
|
|
2814
|
+
if (typeof y == "string" && (y = (function(k) {
|
|
2811
2815
|
k === void 0 && (k = "");
|
|
2812
2816
|
var L = k.match(l);
|
|
2813
2817
|
if (!L) return null;
|
|
2814
|
-
var C = ("" + L[0]).match(o) || ["-", 0, 0], x = C[0],
|
|
2815
|
-
return
|
|
2816
|
-
})(
|
|
2817
|
-
var w = Math.abs(
|
|
2818
|
+
var C = ("" + L[0]).match(o) || ["-", 0, 0], x = C[0], $ = 60 * +C[1] + +C[2];
|
|
2819
|
+
return $ === 0 ? 0 : x === "+" ? $ : -$;
|
|
2820
|
+
})(y), y === null)) return this;
|
|
2821
|
+
var w = Math.abs(y) <= 16 ? 60 * y : y;
|
|
2818
2822
|
if (w === 0) return this.utc(F);
|
|
2819
|
-
var
|
|
2820
|
-
if (F) return
|
|
2821
|
-
var
|
|
2822
|
-
return (
|
|
2823
|
+
var R = this.clone();
|
|
2824
|
+
if (F) return R.$offset = w, R.$u = !1, R;
|
|
2825
|
+
var T = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
2826
|
+
return (R = this.local().add(w + T, n)).$offset = w, R.$x.$localOffset = T, R;
|
|
2823
2827
|
};
|
|
2824
2828
|
var p = i.format;
|
|
2825
|
-
i.format = function(
|
|
2826
|
-
var F =
|
|
2829
|
+
i.format = function(y) {
|
|
2830
|
+
var F = y || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
2827
2831
|
return p.call(this, F);
|
|
2828
2832
|
}, i.valueOf = function() {
|
|
2829
|
-
var
|
|
2830
|
-
return this.$d.valueOf() - 6e4 *
|
|
2833
|
+
var y = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
2834
|
+
return this.$d.valueOf() - 6e4 * y;
|
|
2831
2835
|
}, i.isUTC = function() {
|
|
2832
2836
|
return !!this.$u;
|
|
2833
2837
|
}, i.toISOString = function() {
|
|
@@ -2836,14 +2840,14 @@ function cu() {
|
|
|
2836
2840
|
return this.toDate().toUTCString();
|
|
2837
2841
|
};
|
|
2838
2842
|
var m = i.toDate;
|
|
2839
|
-
i.toDate = function(
|
|
2840
|
-
return
|
|
2843
|
+
i.toDate = function(y) {
|
|
2844
|
+
return y === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : m.call(this);
|
|
2841
2845
|
};
|
|
2842
2846
|
var v = i.diff;
|
|
2843
|
-
i.diff = function(
|
|
2844
|
-
if (
|
|
2845
|
-
var w = this.local(),
|
|
2846
|
-
return v.call(w,
|
|
2847
|
+
i.diff = function(y, F, b) {
|
|
2848
|
+
if (y && this.$u === y.$u) return v.call(this, y, F, b);
|
|
2849
|
+
var w = this.local(), R = s(y).local();
|
|
2850
|
+
return v.call(w, R, F, b);
|
|
2847
2851
|
};
|
|
2848
2852
|
};
|
|
2849
2853
|
}));
|
|
@@ -2861,32 +2865,32 @@ function vu() {
|
|
|
2861
2865
|
return function(o, a, r) {
|
|
2862
2866
|
var s, i = function(p, m, v) {
|
|
2863
2867
|
v === void 0 && (v = {});
|
|
2864
|
-
var
|
|
2868
|
+
var y = new Date(p), F = (function(b, w) {
|
|
2865
2869
|
w === void 0 && (w = {});
|
|
2866
|
-
var
|
|
2867
|
-
return k || (k = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: b, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName:
|
|
2870
|
+
var R = w.timeZoneName || "short", T = b + "|" + R, k = l[T];
|
|
2871
|
+
return k || (k = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: b, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: R }), l[T] = k), k;
|
|
2868
2872
|
})(m, v);
|
|
2869
|
-
return F.formatToParts(
|
|
2873
|
+
return F.formatToParts(y);
|
|
2870
2874
|
}, u = function(p, m) {
|
|
2871
|
-
for (var v = i(p, m),
|
|
2872
|
-
var b = v[F], w = b.type,
|
|
2873
|
-
|
|
2875
|
+
for (var v = i(p, m), y = [], F = 0; F < v.length; F += 1) {
|
|
2876
|
+
var b = v[F], w = b.type, R = b.value, T = n[w];
|
|
2877
|
+
T >= 0 && (y[T] = parseInt(R, 10));
|
|
2874
2878
|
}
|
|
2875
|
-
var k =
|
|
2879
|
+
var k = y[3], L = k === 24 ? 0 : k, C = y[0] + "-" + y[1] + "-" + y[2] + " " + L + ":" + y[4] + ":" + y[5] + ":000", x = +p;
|
|
2876
2880
|
return (r.utc(C).valueOf() - (x -= x % 1e3)) / 6e4;
|
|
2877
2881
|
}, c = a.prototype;
|
|
2878
2882
|
c.tz = function(p, m) {
|
|
2879
2883
|
p === void 0 && (p = s);
|
|
2880
|
-
var v,
|
|
2881
|
-
if (!Number(
|
|
2882
|
-
else if (v = r(b, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(
|
|
2883
|
-
var
|
|
2884
|
-
v = v.add(
|
|
2884
|
+
var v, y = this.utcOffset(), F = this.toDate(), b = F.toLocaleString("en-US", { timeZone: p }), w = Math.round((F - new Date(b)) / 1e3 / 60), R = 15 * -Math.round(F.getTimezoneOffset() / 15) - w;
|
|
2885
|
+
if (!Number(R)) v = this.utcOffset(0, m);
|
|
2886
|
+
else if (v = r(b, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(R, !0), m) {
|
|
2887
|
+
var T = v.utcOffset();
|
|
2888
|
+
v = v.add(y - T, "minute");
|
|
2885
2889
|
}
|
|
2886
2890
|
return v.$x.$timezone = p, v;
|
|
2887
2891
|
}, c.offsetName = function(p) {
|
|
2888
|
-
var m = this.$x.$timezone || r.tz.guess(), v = i(this.valueOf(), m, { timeZoneName: p }).find((function(
|
|
2889
|
-
return
|
|
2892
|
+
var m = this.$x.$timezone || r.tz.guess(), v = i(this.valueOf(), m, { timeZoneName: p }).find((function(y) {
|
|
2893
|
+
return y.type.toLowerCase() === "timezonename";
|
|
2890
2894
|
}));
|
|
2891
2895
|
return v && v.value;
|
|
2892
2896
|
};
|
|
@@ -2896,14 +2900,14 @@ function vu() {
|
|
|
2896
2900
|
var v = r(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
2897
2901
|
return f.call(v, p, m).tz(this.$x.$timezone, !0);
|
|
2898
2902
|
}, r.tz = function(p, m, v) {
|
|
2899
|
-
var
|
|
2903
|
+
var y = v && m, F = v || m || s, b = u(+r(), F);
|
|
2900
2904
|
if (typeof p != "string") return r(p).tz(F);
|
|
2901
2905
|
var w = (function(L, C, x) {
|
|
2902
|
-
var
|
|
2903
|
-
if (C === H) return [
|
|
2904
|
-
var _ = u(
|
|
2905
|
-
return H === _ ? [
|
|
2906
|
-
})(r.utc(p,
|
|
2906
|
+
var $ = L - 60 * C * 1e3, H = u($, x);
|
|
2907
|
+
if (C === H) return [$, C];
|
|
2908
|
+
var _ = u($ -= 60 * (H - C) * 1e3, x);
|
|
2909
|
+
return H === _ ? [$, H] : [L - 60 * Math.min(H, _) * 1e3, Math.max(H, _)];
|
|
2910
|
+
})(r.utc(p, y).valueOf(), b, F), R = w[0], T = w[1], k = r(R).utcOffset(T);
|
|
2907
2911
|
return k.$x.$timezone = F, k;
|
|
2908
2912
|
}, r.tz.guess = function() {
|
|
2909
2913
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -3139,7 +3143,7 @@ const xu = {
|
|
|
3139
3143
|
},
|
|
3140
3144
|
emits: ["handle-clear"],
|
|
3141
3145
|
setup(e) {
|
|
3142
|
-
const t = e, n =
|
|
3146
|
+
const t = e, n = h(() => {
|
|
3143
3147
|
const l = ["pv-flex", "pv-space-between"];
|
|
3144
3148
|
t.inverse && ba.includes(t.variant) ? l.push(`pv-button-${t.variant}-inverse`) : l.push(`pv-button-${t.variant}`);
|
|
3145
3149
|
const o = Ca(t.size);
|
|
@@ -3277,7 +3281,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3277
3281
|
children: {}
|
|
3278
3282
|
},
|
|
3279
3283
|
setup(e) {
|
|
3280
|
-
const t = e, n =
|
|
3284
|
+
const t = e, n = O(null), l = O(null), o = h(() => t.subText || null), a = (i) => i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), r = (i, u, c) => {
|
|
3281
3285
|
const f = a(c), p = new RegExp(`(${f})`, "gi");
|
|
3282
3286
|
i.innerHTML = u.replace(
|
|
3283
3287
|
p,
|
|
@@ -3342,7 +3346,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3342
3346
|
option: {}
|
|
3343
3347
|
},
|
|
3344
3348
|
setup(e) {
|
|
3345
|
-
const t = e, n =
|
|
3349
|
+
const t = e, n = h(() => typeof t.action.icon == "function" ? t.action.icon(t.option) : t.action.icon), l = h(() => typeof t.action.isDisabled == "function" ? t.action.isDisabled(t.option) : t.action.isDisabled), o = h(() => typeof t.action.tooltipText == "function" ? t.action.tooltipText(t.option) : t.action.tooltipText), a = h(() => typeof t.action.alwaysShow == "function" ? t.action.alwaysShow(t.option) : t.action.alwaysShow), r = () => {
|
|
3346
3350
|
l.value || t.action.action(t.option);
|
|
3347
3351
|
};
|
|
3348
3352
|
return (s, i) => (d(), q(Ft, { interactive: !1 }, gn({
|
|
@@ -3390,15 +3394,15 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3390
3394
|
},
|
|
3391
3395
|
emits: ["handle-selected"],
|
|
3392
3396
|
setup(e, { emit: t }) {
|
|
3393
|
-
const n = e, l =
|
|
3397
|
+
const n = e, l = h(() => {
|
|
3394
3398
|
const p = n.classList ? [...n.classList] : [];
|
|
3395
3399
|
return n.disabled ? p.push("pv-menu-item-disabled") : p.push("pv-menu-item"), p;
|
|
3396
|
-
}), o =
|
|
3400
|
+
}), o = h(() => ({
|
|
3397
3401
|
...n,
|
|
3398
3402
|
avatar: n.menuOptionConfig?.variant === "avatar" ? n.avatar : void 0,
|
|
3399
3403
|
icon: n.menuOptionConfig?.variant === "icon" ? n.icon : void 0,
|
|
3400
3404
|
companyName: n.menuOptionConfig?.variant === "company" ? n.companyName || n.text : void 0
|
|
3401
|
-
})), a =
|
|
3405
|
+
})), a = h(() => n.menuOptionConfig?.variant !== "checkbox" && n.menuOptionConfig?.variant !== "radio"), r = h(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), s = `${r.value}-${Yt()?.uid}`, i = h(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), u = h(() => `pv-menu${n.menuOptionConfig?.variant === "checkbox" ? "-checkbox" : n.menuOptionConfig?.variant === "radio" ? "-radio" : ""}-item`), c = t, f = (p) => {
|
|
3402
3406
|
if (n.disabled)
|
|
3403
3407
|
return;
|
|
3404
3408
|
const m = {
|
|
@@ -3460,7 +3464,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3460
3464
|
},
|
|
3461
3465
|
emits: ["handle-selected"],
|
|
3462
3466
|
setup(e) {
|
|
3463
|
-
const t = e, n = de("selectedItems", null), l = de("selectedItem", null), o =
|
|
3467
|
+
const t = e, n = de("selectedItems", null), l = de("selectedItem", null), o = h(() => ({ paddingLeft: `${t.level * 12 + 12}px` })), a = h(() => t.children && t.children.length > 0 && t.level < tc), r = (s) => n && Array.isArray(n.value) ? n.value.some((i) => i.id === s.id) : l && l.value ? l.value.id === s.id : !1;
|
|
3464
3468
|
return (s, i) => {
|
|
3465
3469
|
const u = xo("PvMenuItem", !0);
|
|
3466
3470
|
return d(), S(te, null, [
|
|
@@ -3561,12 +3565,12 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3561
3565
|
}),
|
|
3562
3566
|
emits: /* @__PURE__ */ Te(["dropdown-open", "dropdown-closed"], ["update:modelValue", "update:searchInput"]),
|
|
3563
3567
|
setup(e, { emit: t }) {
|
|
3564
|
-
const n = e, l =
|
|
3568
|
+
const n = e, l = h(() => ({
|
|
3565
3569
|
renderer: n.optionsRenderer,
|
|
3566
3570
|
action: n.optionsAction,
|
|
3567
3571
|
variant: n.optionsVariant,
|
|
3568
3572
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3569
|
-
})), o = t, a = vt("searchInputRef"), [r, s] = ca(n.defaultOpen), i = we(e, "modelValue"), u = we(e, "searchInput"), c =
|
|
3573
|
+
})), o = t, a = vt("searchInputRef"), [r, s] = ca(n.defaultOpen), i = we(e, "modelValue"), u = we(e, "searchInput"), c = h(() => n.menuActionsVariant === "cancel-confirm"), f = (_) => {
|
|
3570
3574
|
v.value = _, c.value || (i.value = _);
|
|
3571
3575
|
}, p = () => {
|
|
3572
3576
|
c.value && (i.value = v.value);
|
|
@@ -3574,9 +3578,9 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3574
3578
|
c.value && (v.value = i.value);
|
|
3575
3579
|
}, v = nl(i.value);
|
|
3576
3580
|
ye("selectedItems", v);
|
|
3577
|
-
const
|
|
3581
|
+
const y = () => {
|
|
3578
3582
|
u.value = "", r.value = !1;
|
|
3579
|
-
}, F =
|
|
3583
|
+
}, F = h(() => {
|
|
3580
3584
|
const _ = n.size === "lg" ? 24 : 30;
|
|
3581
3585
|
return n.overlayTrigger ? -_ : void 0;
|
|
3582
3586
|
});
|
|
@@ -3590,7 +3594,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3590
3594
|
n.overlayTrigger && !n.disableSearchInput && a.value?.input?.focus(), o("dropdown-open");
|
|
3591
3595
|
})) : (m(), o("dropdown-closed"));
|
|
3592
3596
|
});
|
|
3593
|
-
const b =
|
|
3597
|
+
const b = h(() => {
|
|
3594
3598
|
if (u.value === "") return n.options;
|
|
3595
3599
|
const _ = u.value.toLocaleLowerCase();
|
|
3596
3600
|
return n.options.filter(
|
|
@@ -3600,15 +3604,15 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3600
3604
|
const Y = _.option, N = v.value, U = N.findIndex((ce) => ce.id === Y.id);
|
|
3601
3605
|
let ve;
|
|
3602
3606
|
U > -1 ? ve = [...N.slice(0, U), ...N.slice(U + 1)] : ve = [...N, { ...Y }], f(ve);
|
|
3603
|
-
},
|
|
3607
|
+
}, R = () => {
|
|
3604
3608
|
f(b.value);
|
|
3605
|
-
},
|
|
3609
|
+
}, T = () => {
|
|
3606
3610
|
f([]);
|
|
3607
3611
|
}, k = () => {
|
|
3608
|
-
m(),
|
|
3612
|
+
m(), y();
|
|
3609
3613
|
}, L = () => {
|
|
3610
|
-
p(),
|
|
3611
|
-
}, C =
|
|
3614
|
+
p(), y();
|
|
3615
|
+
}, C = h(() => {
|
|
3612
3616
|
if (!n.groupings) return;
|
|
3613
3617
|
const _ = /* @__PURE__ */ new Map();
|
|
3614
3618
|
n.groupings.forEach((Y) => {
|
|
@@ -3621,7 +3625,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3621
3625
|
for (const [Y, N] of _)
|
|
3622
3626
|
N.length === 0 && _.delete(Y);
|
|
3623
3627
|
return Array.from(_.entries());
|
|
3624
|
-
}), x =
|
|
3628
|
+
}), x = h(() => n.groupings && u.value === ""), $ = (_) => v.value.some((Y) => Y.id === _.id) ? !0 : null, H = h(() => ({
|
|
3625
3629
|
...n,
|
|
3626
3630
|
selectedItems: i.value,
|
|
3627
3631
|
searchInput: u.value,
|
|
@@ -3630,7 +3634,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3630
3634
|
isLoading: n.isLoading
|
|
3631
3635
|
}));
|
|
3632
3636
|
return ln("Escape", () => {
|
|
3633
|
-
r.value &&
|
|
3637
|
+
r.value && y();
|
|
3634
3638
|
}), (_, Y) => (d(), q(G(Ra), De({
|
|
3635
3639
|
modelValue: G(r),
|
|
3636
3640
|
"onUpdate:modelValue": Y[2] || (Y[2] = (N) => Tn(r) ? r.value = N : null)
|
|
@@ -3650,7 +3654,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3650
3654
|
showDropdown: !e.disableDropdownIcon && v.value.length === 0,
|
|
3651
3655
|
open: G(r),
|
|
3652
3656
|
"counter-value": v.value.length,
|
|
3653
|
-
onHandleClear:
|
|
3657
|
+
onHandleClear: T,
|
|
3654
3658
|
onHandleToggleDropdown: Y[0] || (Y[0] = (N) => G(s)())
|
|
3655
3659
|
}, null, 8, ["variant", "size", "disabled", "counterPosition", "prefixLabel", "label", "icon", "companyLogo", "showClear", "showDropdown", "open", "counter-value"])
|
|
3656
3660
|
]),
|
|
@@ -3678,7 +3682,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3678
3682
|
P("ul", rc, [
|
|
3679
3683
|
(d(!0), S(te, null, Oe(U, (ce) => ze((d(), S("li", {
|
|
3680
3684
|
key: ce.id,
|
|
3681
|
-
"data-active":
|
|
3685
|
+
"data-active": $(ce),
|
|
3682
3686
|
"data-testid": `pv-multiselect-${N}-item`,
|
|
3683
3687
|
class: "pv-stack-4"
|
|
3684
3688
|
}, [
|
|
@@ -3688,7 +3692,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3688
3692
|
onHandleSelected: w
|
|
3689
3693
|
}), null, 16, ["config", "queryText"])
|
|
3690
3694
|
], 8, sc)), [
|
|
3691
|
-
[ll,
|
|
3695
|
+
[ll, $(ce) || !e.isLoading]
|
|
3692
3696
|
])), 128))
|
|
3693
3697
|
]),
|
|
3694
3698
|
C.value && ve !== C.value.length - 1 ? (d(), S("div", ic)) : A("", !0)
|
|
@@ -3718,8 +3722,8 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3718
3722
|
key: 1,
|
|
3719
3723
|
variant: e.menuActionsVariant,
|
|
3720
3724
|
disabled: e.isLoading,
|
|
3721
|
-
onHandleClearAll:
|
|
3722
|
-
onHandleSelectAll:
|
|
3725
|
+
onHandleClearAll: T,
|
|
3726
|
+
onHandleSelectAll: R,
|
|
3723
3727
|
onHandleCancel: k,
|
|
3724
3728
|
onHandleConfirm: L
|
|
3725
3729
|
}, null, 8, ["variant", "disabled"])) : A("", !0)
|
|
@@ -3770,7 +3774,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3770
3774
|
}),
|
|
3771
3775
|
emits: /* @__PURE__ */ Te(["dropdown-open", "dropdown-closed"], ["update:modelValue", "update:searchInput"]),
|
|
3772
3776
|
setup(e, { emit: t }) {
|
|
3773
|
-
const n = e, l =
|
|
3777
|
+
const n = e, l = h(() => ({
|
|
3774
3778
|
renderer: n.optionsRenderer,
|
|
3775
3779
|
action: n.optionsAction,
|
|
3776
3780
|
variant: n.optionsVariant,
|
|
@@ -3778,33 +3782,33 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3778
3782
|
})), o = t, [a] = ca(n.defaultOpen), r = we(e, "modelValue");
|
|
3779
3783
|
ye("selectedItem", r);
|
|
3780
3784
|
const s = we(e, "searchInput");
|
|
3781
|
-
ne(a, (
|
|
3782
|
-
o(
|
|
3785
|
+
ne(a, (y) => {
|
|
3786
|
+
o(y ? "dropdown-open" : "dropdown-closed");
|
|
3783
3787
|
});
|
|
3784
|
-
const i =
|
|
3788
|
+
const i = h(() => r.value && r.value.text ? r.value.text : n.label), u = h(() => {
|
|
3785
3789
|
if (r.value && r.value.icon)
|
|
3786
3790
|
return r.value.icon;
|
|
3787
|
-
}), c =
|
|
3791
|
+
}), c = h(() => {
|
|
3788
3792
|
if (r.value && r.value.companyName)
|
|
3789
3793
|
return r.value.companyName;
|
|
3790
|
-
}), f =
|
|
3791
|
-
const
|
|
3792
|
-
if (!
|
|
3794
|
+
}), f = h(() => {
|
|
3795
|
+
const y = s.value.trim().toLowerCase();
|
|
3796
|
+
if (!y) return n.options;
|
|
3793
3797
|
const F = (b) => {
|
|
3794
3798
|
const w = [];
|
|
3795
|
-
for (const
|
|
3796
|
-
const
|
|
3797
|
-
|
|
3798
|
-
...
|
|
3799
|
-
searchText:
|
|
3799
|
+
for (const R of b) {
|
|
3800
|
+
const T = R.text.toLowerCase().includes(y) || R.searchText?.toLowerCase().includes(y), k = F(R.children || []);
|
|
3801
|
+
T ? w.push({
|
|
3802
|
+
...R,
|
|
3803
|
+
searchText: y,
|
|
3800
3804
|
children: k
|
|
3801
3805
|
}) : w.push(...k);
|
|
3802
3806
|
}
|
|
3803
3807
|
return w;
|
|
3804
3808
|
};
|
|
3805
3809
|
return F(n.options);
|
|
3806
|
-
}), p = (
|
|
3807
|
-
const F =
|
|
3810
|
+
}), p = (y) => {
|
|
3811
|
+
const F = y.option;
|
|
3808
3812
|
if (n.optionsVariant === "radio" || n.disableDeselect) {
|
|
3809
3813
|
r.value = F, v();
|
|
3810
3814
|
return;
|
|
@@ -3817,7 +3821,7 @@ const Ha = /* @__PURE__ */ Ve(Iu, [["render", _u]]), Eu = ["data-style"], Nu = [
|
|
|
3817
3821
|
};
|
|
3818
3822
|
return ln("Escape", () => {
|
|
3819
3823
|
a.value && v();
|
|
3820
|
-
}), (
|
|
3824
|
+
}), (y, F) => (d(), q(G(Ra), De({
|
|
3821
3825
|
modelValue: G(a),
|
|
3822
3826
|
"onUpdate:modelValue": F[1] || (F[1] = (b) => Tn(a) ? a.value = b : null)
|
|
3823
3827
|
}, e.popoverProperties), {
|
|
@@ -3903,7 +3907,7 @@ const yl = Symbol("FilterStoreKey"), wn = Symbol("FocusStoreKey"), ja = Symbol("
|
|
|
3903
3907
|
enableFocusView: { type: Boolean }
|
|
3904
3908
|
},
|
|
3905
3909
|
setup(e) {
|
|
3906
|
-
const t = de($t,
|
|
3910
|
+
const t = de($t, O(null)), n = de(An, O([])), l = de(gl, O([])), o = e;
|
|
3907
3911
|
ne(
|
|
3908
3912
|
l,
|
|
3909
3913
|
// Directly watch the ref
|
|
@@ -3912,19 +3916,19 @@ const yl = Symbol("FilterStoreKey"), wn = Symbol("FocusStoreKey"), ja = Symbol("
|
|
|
3912
3916
|
{ deep: !0 }
|
|
3913
3917
|
// Enables deep watching
|
|
3914
3918
|
);
|
|
3915
|
-
const a = (v) => l.value.includes(v || ""), r = (v,
|
|
3916
|
-
t.value && (
|
|
3917
|
-
}, s =
|
|
3919
|
+
const a = (v) => l.value.includes(v || ""), r = (v, y) => {
|
|
3920
|
+
t.value && (y ? t.value.addRowGroupColumns([v]) : t.value.removeRowGroupColumns([v]));
|
|
3921
|
+
}, s = h(() => ({
|
|
3918
3922
|
"pv-hide": n.value.length === 0
|
|
3919
|
-
})), i =
|
|
3920
|
-
(v) => n.value.find((
|
|
3921
|
-
).filter((v) => v !== void 0)), c =
|
|
3923
|
+
})), i = h(() => o.rowGroupLimit ? l.value.length >= o.rowGroupLimit : !1), u = h(() => l.value.map(
|
|
3924
|
+
(v) => n.value.find((y) => y.field === v)
|
|
3925
|
+
).filter((v) => v !== void 0)), c = h(() => n.value.filter(
|
|
3922
3926
|
(v) => !l.value.includes(v.field)
|
|
3923
|
-
)), f =
|
|
3927
|
+
)), f = h(() => {
|
|
3924
3928
|
const v = {
|
|
3925
3929
|
label: "",
|
|
3926
3930
|
value: "divider"
|
|
3927
|
-
},
|
|
3931
|
+
}, y = u.value.map(
|
|
3928
3932
|
(b) => ({
|
|
3929
3933
|
label: b.headerName,
|
|
3930
3934
|
value: b.field
|
|
@@ -3935,14 +3939,14 @@ const yl = Symbol("FilterStoreKey"), wn = Symbol("FocusStoreKey"), ja = Symbol("
|
|
|
3935
3939
|
value: b.field
|
|
3936
3940
|
})
|
|
3937
3941
|
);
|
|
3938
|
-
return [...
|
|
3942
|
+
return [...y, v, ...F];
|
|
3939
3943
|
}), p = (v) => `group-by-list-item-${v}`, m = (v) => {
|
|
3940
|
-
const
|
|
3944
|
+
const y = v.findIndex((w) => w === "divider"), b = v.slice(0, y).slice(0, o.rowGroupLimit).map(
|
|
3941
3945
|
(w) => w.replace("group-by-list-item-", "")
|
|
3942
3946
|
);
|
|
3943
3947
|
t.value && t.value.setRowGroupColumns(b);
|
|
3944
3948
|
};
|
|
3945
|
-
return (v,
|
|
3949
|
+
return (v, y) => (d(), q(Xr, {
|
|
3946
3950
|
isList: !0,
|
|
3947
3951
|
isSortable: !0,
|
|
3948
3952
|
popoverCssProperties: { width: "auto" },
|
|
@@ -3952,7 +3956,7 @@ const yl = Symbol("FilterStoreKey"), wn = Symbol("FocusStoreKey"), ja = Symbol("
|
|
|
3952
3956
|
}, {
|
|
3953
3957
|
trigger: ue(() => [
|
|
3954
3958
|
P("div", kc, [
|
|
3955
|
-
|
|
3959
|
+
y[0] || (y[0] = P("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1)),
|
|
3956
3960
|
G(l).length > 0 ? (d(), q(G(Zt), {
|
|
3957
3961
|
key: 0,
|
|
3958
3962
|
value: G(l).length,
|
|
@@ -4003,7 +4007,7 @@ function Ac(e, t) {
|
|
|
4003
4007
|
return d(), S("div", Vc);
|
|
4004
4008
|
}
|
|
4005
4009
|
const Ic = /* @__PURE__ */ Ve(Lc, [["render", Ac]]), Cl = (e = null) => {
|
|
4006
|
-
const t =
|
|
4010
|
+
const t = O(e?.focuses || []), n = O(e?.focusType || null), l = h(() => t.value), o = h(() => n.value), a = (p) => {
|
|
4007
4011
|
p !== n.value && (n.value = p || null, t.value = []);
|
|
4008
4012
|
}, r = (p) => {
|
|
4009
4013
|
t.value = p;
|
|
@@ -4041,34 +4045,34 @@ const Ic = /* @__PURE__ */ Ve(Lc, [["render", Ac]]), Cl = (e = null) => {
|
|
|
4041
4045
|
params: {}
|
|
4042
4046
|
},
|
|
4043
4047
|
setup(e) {
|
|
4044
|
-
const t = e, n = de(gl,
|
|
4045
|
-
value:
|
|
4048
|
+
const t = e, n = de(gl, O([])), l = de(Ya, O(null)), o = de(bl, O({})), a = hr(t.params, "rowNode"), r = h(() => !t.params.displayBaseAggregationsOnly || a.value.level === n.value.length - 1), s = h(() => t.params.rowNode.group), i = (w, R) => w ? w({
|
|
4049
|
+
value: R,
|
|
4046
4050
|
data: a.value.data,
|
|
4047
4051
|
node: a.value,
|
|
4048
4052
|
api: t.params.api
|
|
4049
|
-
}) :
|
|
4053
|
+
}) : R, u = h(() => {
|
|
4050
4054
|
if (!l.value) return "";
|
|
4051
|
-
const w = l.value.getColId() || "",
|
|
4052
|
-
return w &&
|
|
4053
|
-
}), c =
|
|
4054
|
-
const w = a.value.rowIndex,
|
|
4055
|
-
return w != null &&
|
|
4055
|
+
const w = l.value.getColId() || "", R = l.value.getColDef().valueFormatter, T = a.value;
|
|
4056
|
+
return w && T && T.data && w in T.data ? i(R, T.data[w]) : "";
|
|
4057
|
+
}), c = h(() => a.value.data && a.value.data.groupedRecordCount ? a.value.data.groupedRecordCount || 0 : a.value.allChildrenCount || 0), f = h(() => {
|
|
4058
|
+
const w = a.value.rowIndex, R = a.value.parent?.rowIndex;
|
|
4059
|
+
return w != null && R != null ? w - R : null;
|
|
4056
4060
|
}), p = (w) => {
|
|
4057
|
-
const
|
|
4058
|
-
|
|
4059
|
-
}, { isFocused: m, computedFocuses: v, removeFocus:
|
|
4061
|
+
const R = w.node.expanded, T = w.node.rowIndex;
|
|
4062
|
+
T != null && (o.value[T] = R);
|
|
4063
|
+
}, { isFocused: m, computedFocuses: v, removeFocus: y } = In(), F = h(() => m(a.value.key, a.value.field) ? "pv-flex" : ""), b = h(() => {
|
|
4060
4064
|
const w = v.value;
|
|
4061
4065
|
return a.value.key && w.includes(a.value.key);
|
|
4062
4066
|
});
|
|
4063
4067
|
return He(() => {
|
|
4064
|
-
const w = a.value,
|
|
4065
|
-
|
|
4068
|
+
const w = a.value, R = w.rowIndex, T = w.expanded;
|
|
4069
|
+
R != null && (o.value[R] = T), a.value.addEventListener("expandedChanged", p);
|
|
4066
4070
|
}), Fo(() => {
|
|
4067
4071
|
const w = a.value;
|
|
4068
4072
|
a.value.removeEventListener("expandedChanged", p);
|
|
4069
|
-
const
|
|
4070
|
-
|
|
4071
|
-
}), (w,
|
|
4073
|
+
const R = w.rowIndex;
|
|
4074
|
+
R != null && (o.value[R] = !1);
|
|
4075
|
+
}), (w, R) => (d(), S(te, null, [
|
|
4072
4076
|
s.value ? (d(), S("div", {
|
|
4073
4077
|
key: 0,
|
|
4074
4078
|
class: ae(F.value)
|
|
@@ -4093,10 +4097,10 @@ const Ic = /* @__PURE__ */ Ve(Lc, [["render", Ac]]), Cl = (e = null) => {
|
|
|
4093
4097
|
class: ae(F.value + " pv-text-brand"),
|
|
4094
4098
|
variant: "ghost",
|
|
4095
4099
|
"left-icon": "focus",
|
|
4096
|
-
onClick:
|
|
4100
|
+
onClick: R[0] || (R[0] = (T) => G(y)(G(a).key))
|
|
4097
4101
|
}, null, 8, ["class"])
|
|
4098
4102
|
]),
|
|
4099
|
-
"tooltip-content": ue(() => [...
|
|
4103
|
+
"tooltip-content": ue(() => [...R[1] || (R[1] = [
|
|
4100
4104
|
P("span", null, " Remove Focus ", -1)
|
|
4101
4105
|
])]),
|
|
4102
4106
|
_: 1
|
|
@@ -4380,7 +4384,7 @@ const xl = (e) => {
|
|
|
4380
4384
|
params: {}
|
|
4381
4385
|
},
|
|
4382
4386
|
setup(e) {
|
|
4383
|
-
const t = e, n = de(bl,
|
|
4387
|
+
const t = e, n = de(bl, O({})), l = h(() => {
|
|
4384
4388
|
const f = t.params.column?.getColDef(), p = $e(f).aggFuncDisplayName;
|
|
4385
4389
|
return p || (t.params.column?.getAggFunc() || "agg").toLowerCase();
|
|
4386
4390
|
}), o = () => {
|
|
@@ -4389,13 +4393,13 @@ const xl = (e) => {
|
|
|
4389
4393
|
const p = !r.value;
|
|
4390
4394
|
f.setRowNodeExpanded(t.params.node, p), a.value && (n.value[a.value] = p);
|
|
4391
4395
|
}
|
|
4392
|
-
}, a =
|
|
4396
|
+
}, a = h(() => t.params.node?.rowIndex), r = h(() => {
|
|
4393
4397
|
let f = !1;
|
|
4394
4398
|
return a.value != null && (f = a.value in n.value ? n.value[a.value] : !1), f;
|
|
4395
|
-
}), s =
|
|
4399
|
+
}), s = h(() => r.value ? "chevron-down" : "chevron-right"), i = h(() => _t(t.params.column?.getColDef())), u = h(() => {
|
|
4396
4400
|
const f = t.params.column?.getColDef(), p = t.params.valueFormatted || t.params.value || "";
|
|
4397
4401
|
return f && _t(f) ? p.toLocaleString() : p;
|
|
4398
|
-
}), c =
|
|
4402
|
+
}), c = h(() => ({
|
|
4399
4403
|
"flex-direction": i.value ? "row-reverse" : "row",
|
|
4400
4404
|
"--flex-justify": "space-between"
|
|
4401
4405
|
}));
|
|
@@ -4419,19 +4423,19 @@ const xl = (e) => {
|
|
|
4419
4423
|
], 4));
|
|
4420
4424
|
}
|
|
4421
4425
|
}), fo = () => {
|
|
4422
|
-
const e =
|
|
4426
|
+
const e = O({}), t = O(null), n = O(null), l = O({}), o = O({}), a = O({}), r = O(0), s = O({}), i = O(void 0), u = O(void 0), c = h(() => i.value != null), f = O({}), p = O({}), m = O({}), v = O({}), y = () => {
|
|
4423
4427
|
const L = {};
|
|
4424
4428
|
return Object.entries(p.value).forEach(([C, x]) => {
|
|
4425
|
-
const
|
|
4426
|
-
|
|
4429
|
+
const $ = x.filter((H) => !!H);
|
|
4430
|
+
$.length > 0 && (L[C] = {
|
|
4427
4431
|
filterType: "set",
|
|
4428
|
-
values:
|
|
4432
|
+
values: $
|
|
4429
4433
|
});
|
|
4430
4434
|
}), L;
|
|
4431
|
-
}, F = async (L, C, x,
|
|
4435
|
+
}, F = async (L, C, x, $) => {
|
|
4432
4436
|
const H = v.value[C.field] || void 0, _ = p.value[C.field] || [];
|
|
4433
|
-
let Y =
|
|
4434
|
-
t.value != null && (Y =
|
|
4437
|
+
let Y = $;
|
|
4438
|
+
t.value != null && (Y = y());
|
|
4435
4439
|
const N = {
|
|
4436
4440
|
api: L,
|
|
4437
4441
|
colDef: C,
|
|
@@ -4466,7 +4470,7 @@ const xl = (e) => {
|
|
|
4466
4470
|
...f.value[L] || [],
|
|
4467
4471
|
...m.value[L] || []
|
|
4468
4472
|
];
|
|
4469
|
-
return x ? x.find((
|
|
4473
|
+
return x ? x.find(($) => $?.value === C) : null;
|
|
4470
4474
|
}, w = (L, C) => {
|
|
4471
4475
|
p.value[L] = C;
|
|
4472
4476
|
const x = [];
|
|
@@ -4475,16 +4479,16 @@ const xl = (e) => {
|
|
|
4475
4479
|
x.push(...H);
|
|
4476
4480
|
}
|
|
4477
4481
|
x.push(...C);
|
|
4478
|
-
const
|
|
4482
|
+
const $ = [];
|
|
4479
4483
|
return C.forEach((H) => {
|
|
4480
4484
|
const _ = b(L, H);
|
|
4481
|
-
_ &&
|
|
4482
|
-
}), m.value[L] =
|
|
4483
|
-
},
|
|
4485
|
+
_ && $.push(_);
|
|
4486
|
+
}), m.value[L] = $, x.filter((H, _) => x.indexOf(H) === _);
|
|
4487
|
+
}, R = (L) => p.value[L] || [], T = (L, C) => {
|
|
4484
4488
|
v.value[L] = C;
|
|
4485
4489
|
}, k = (L, C) => {
|
|
4486
|
-
const x = /* @__PURE__ */ new Set(),
|
|
4487
|
-
[
|
|
4490
|
+
const x = /* @__PURE__ */ new Set(), $ = L ? Object.keys(L) : [], H = C ? Object.keys(C) : [], _ = $.filter((U) => H.includes(U));
|
|
4491
|
+
[...$, ...H].filter((U) => !_.includes(U)).forEach((U) => x.add(U));
|
|
4488
4492
|
for (const U of _)
|
|
4489
4493
|
JSON.stringify(L?.[U]) !== JSON.stringify(C?.[U]) && x.add(U);
|
|
4490
4494
|
const N = Date.now();
|
|
@@ -4493,8 +4497,8 @@ const xl = (e) => {
|
|
|
4493
4497
|
};
|
|
4494
4498
|
return Qt(
|
|
4495
4499
|
[e, t],
|
|
4496
|
-
([L, C], [x,
|
|
4497
|
-
JSON.stringify(L) !== JSON.stringify(x) && k(L || {}, x || {}), JSON.stringify(C) !== JSON.stringify(
|
|
4500
|
+
([L, C], [x, $]) => {
|
|
4501
|
+
JSON.stringify(L) !== JSON.stringify(x) && k(L || {}, x || {}), JSON.stringify(C) !== JSON.stringify($) && k(C || {}, e.value || {});
|
|
4498
4502
|
},
|
|
4499
4503
|
{
|
|
4500
4504
|
deep: !0,
|
|
@@ -4517,11 +4521,11 @@ const xl = (e) => {
|
|
|
4517
4521
|
filterStoreHandler: i,
|
|
4518
4522
|
fetchFilterValues: F,
|
|
4519
4523
|
filterValueContext: b,
|
|
4520
|
-
getFilterSelectedValues:
|
|
4524
|
+
getFilterSelectedValues: R,
|
|
4521
4525
|
isServerSideFilter: c,
|
|
4522
4526
|
stagedFilterModel: t,
|
|
4523
4527
|
setFilterSelectedValues: w,
|
|
4524
|
-
setFilterValueSearchText:
|
|
4528
|
+
setFilterValueSearchText: T,
|
|
4525
4529
|
tableSearchFilterModel: n,
|
|
4526
4530
|
tableSearchHandler: u
|
|
4527
4531
|
};
|
|
@@ -4609,7 +4613,7 @@ const xl = (e) => {
|
|
|
4609
4613
|
},
|
|
4610
4614
|
emits: ["filter-selection-changed", "filter-closed", "handle-settings-icon"],
|
|
4611
4615
|
setup(e, { emit: t }) {
|
|
4612
|
-
const n = e, l = t, o = de($t,
|
|
4616
|
+
const n = e, l = t, o = de($t, O(null)), {
|
|
4613
4617
|
filterModel: a,
|
|
4614
4618
|
stagedFilterModel: r,
|
|
4615
4619
|
filterModelCleared: s,
|
|
@@ -4620,61 +4624,61 @@ const xl = (e) => {
|
|
|
4620
4624
|
getFilterSelectedValues: p,
|
|
4621
4625
|
isServerSideFilter: m,
|
|
4622
4626
|
setFilterValueSearchText: v,
|
|
4623
|
-
setFilterSelectedValues:
|
|
4624
|
-
} = Bn(), { computedFocuses: F, handleFocusUpdate: b, isFocused: w, removeFocus:
|
|
4627
|
+
setFilterSelectedValues: y
|
|
4628
|
+
} = Bn(), { computedFocuses: F, handleFocusUpdate: b, isFocused: w, removeFocus: R, computedFocusType: T, shouldShowFocusButton: k } = In(), L = de(Qa, O(!1)), C = O([]), x = O([]), $ = h(() => n.filterColDef.field || ""), H = h(() => n.filterColDef.filter || ""), _ = h(() => n.filterColDef.headerName || ""), Y = O(!1), N = h(() => n.filterStyle == "vertical"), U = h(() => Wc(n.filterColDef)), ve = O(""), ce = () => Object.entries(i.value).filter(([j, Z]) => j !== $.value).reduce((j, [Z, le]) => Math.max(j, le), 0), E = (j = !1) => {
|
|
4625
4629
|
const Z = el(n.filterColDef, a.value);
|
|
4626
4630
|
j ? C.value = Z : C.value = Array.from(
|
|
4627
|
-
/* @__PURE__ */ new Set([...p(
|
|
4631
|
+
/* @__PURE__ */ new Set([...p($.value), ...Z])
|
|
4628
4632
|
);
|
|
4629
4633
|
}, W = async (j = !1, Z = !1) => {
|
|
4630
4634
|
if (!o.value) return;
|
|
4631
4635
|
const le = await po(o.value, n.filterColDef);
|
|
4632
4636
|
if (!le) return;
|
|
4633
|
-
const qe = ce() || 0, Re = u.value[
|
|
4637
|
+
const qe = ce() || 0, Re = u.value[$.value] || 0, Et = j && c.value[$.value] !== !0 && qe >= Re;
|
|
4634
4638
|
m.value && (Z || Et) && le.refreshFilterValues(), x.value = I(le.getFilterValues());
|
|
4635
4639
|
}, I = (j) => j.sort((Z, le) => {
|
|
4636
4640
|
const qe = C.value.includes(Z), Re = C.value.includes(le);
|
|
4637
4641
|
return qe && !Re ? -1 : !qe && Re ? 1 : 0;
|
|
4638
4642
|
}), se = (j) => {
|
|
4639
|
-
const Z = f(
|
|
4643
|
+
const Z = f($.value, j);
|
|
4640
4644
|
return U.value ? U.value({
|
|
4641
4645
|
value: j,
|
|
4642
4646
|
context: Z
|
|
4643
4647
|
}) : j;
|
|
4644
|
-
}, ge =
|
|
4648
|
+
}, ge = h(() => co(n.filterColDef)), me = h(() => Yc(n.filterColDef)), Q = h(() => $e(n.filterColDef).filterOptionsSortDescription), pe = h(() => $e(n.filterColDef).filterOptionsSortTooltip), Se = h(() => !$e(n.filterColDef).filterSearch), Be = h(() => $e(n.filterColDef).emptyFilterResultsRenderer), Me = h(() => $e(n.filterColDef).filterOptionsRenderer), ot = h(() => $e(n.filterColDef).filterHeaderRenderer), Ke = h(() => $e(n.filterColDef).filterFooterRenderer), Ze = h(() => ge.value ? C.value.length >= ge.value : !1), rt = h(() => x.value.filter((j) => j != null && !C.value.includes(j))), Xe = h(() => x.value.length === 1 && x.value[0] === null && C.value.length === 0), _e = (j) => Xe.value || f($.value, j)?.isSelectable === !1 ? !0 : me.value ? !1 : Ze.value && !C.value.includes(j), ht = h(() => k($.value) ? id : Me.value), st = h(() => x.value.filter((Z, le) => x.value.indexOf(Z) === le).filter((Z) => Z != null && Z !== "").map((Z) => {
|
|
4645
4649
|
let le = Q.value ? "suggestions" : null;
|
|
4646
|
-
return f(
|
|
4650
|
+
return f($.value, Z)?.isPreference && (le = "preferences"), {
|
|
4647
4651
|
id: Z || "",
|
|
4648
4652
|
text: se(Z) || "",
|
|
4649
4653
|
groupingLabel: le || "",
|
|
4650
4654
|
disabled: _e(Z),
|
|
4651
4655
|
context: {
|
|
4652
|
-
filterField:
|
|
4656
|
+
filterField: $.value,
|
|
4653
4657
|
onFocusUpdate: dt
|
|
4654
4658
|
},
|
|
4655
4659
|
classList: ["option-label"]
|
|
4656
4660
|
};
|
|
4657
|
-
})), Ae =
|
|
4661
|
+
})), Ae = h({
|
|
4658
4662
|
get: () => C.value.map((j) => ({
|
|
4659
4663
|
id: j,
|
|
4660
4664
|
text: se(j)
|
|
4661
4665
|
})),
|
|
4662
4666
|
set: (j) => {
|
|
4663
4667
|
C.value = j.map((Z) => Z.id), et(), F.value.forEach((Z) => {
|
|
4664
|
-
!C.value.includes(Z) &&
|
|
4668
|
+
!C.value.includes(Z) && T.value === $.value && R(Z);
|
|
4665
4669
|
}), l("filter-selection-changed");
|
|
4666
4670
|
}
|
|
4667
4671
|
});
|
|
4668
4672
|
ne(
|
|
4669
4673
|
() => i.value,
|
|
4670
4674
|
() => {
|
|
4671
|
-
ce() > (u.value[
|
|
4675
|
+
ce() > (u.value[$.value] || 0) && W(!0);
|
|
4672
4676
|
},
|
|
4673
4677
|
{ deep: !0 }
|
|
4674
4678
|
), Qt(
|
|
4675
|
-
() => c.value[
|
|
4679
|
+
() => c.value[$.value],
|
|
4676
4680
|
() => {
|
|
4677
|
-
const j = c.value[
|
|
4681
|
+
const j = c.value[$.value];
|
|
4678
4682
|
Y.value && !j ? (W(), Y.value = !1) : j && (Y.value = !0);
|
|
4679
4683
|
},
|
|
4680
4684
|
{ deep: !0 }
|
|
@@ -4683,9 +4687,9 @@ const xl = (e) => {
|
|
|
4683
4687
|
() => {
|
|
4684
4688
|
if (N.value)
|
|
4685
4689
|
if (H.value === "agSetColumnFilter")
|
|
4686
|
-
C.value = r.value?.[
|
|
4690
|
+
C.value = r.value?.[$.value]?.values || [];
|
|
4687
4691
|
else if (H.value === "agMultiColumnFilter") {
|
|
4688
|
-
const j = r.value?.[
|
|
4692
|
+
const j = r.value?.[$.value]?.filterModels?.find(
|
|
4689
4693
|
(Z) => Z && Z.filterType === "set"
|
|
4690
4694
|
);
|
|
4691
4695
|
C.value = j?.values || [];
|
|
@@ -4713,19 +4717,19 @@ const xl = (e) => {
|
|
|
4713
4717
|
), ne(
|
|
4714
4718
|
() => C.value,
|
|
4715
4719
|
(j) => {
|
|
4716
|
-
|
|
4720
|
+
y($.value, j);
|
|
4717
4721
|
}
|
|
4718
4722
|
), Qt(
|
|
4719
4723
|
() => ve.value,
|
|
4720
4724
|
async (j) => {
|
|
4721
|
-
v(
|
|
4725
|
+
v($.value, j), await W(!0, !0);
|
|
4722
4726
|
},
|
|
4723
4727
|
{ debounce: 300 }
|
|
4724
4728
|
);
|
|
4725
4729
|
const Je = (j) => {
|
|
4726
4730
|
j && me.value ? C.value = [j] : j && !C.value.includes(j) && (C.value = [...C.value, j]), et(), l("filter-selection-changed");
|
|
4727
4731
|
}, ct = (j) => {
|
|
4728
|
-
C.value = C.value.filter((Z) => Z !== j), et(), l("filter-selection-changed"), w(j,
|
|
4732
|
+
C.value = C.value.filter((Z) => Z !== j), et(), l("filter-selection-changed"), w(j, $.value) && R(j);
|
|
4729
4733
|
}, et = async () => {
|
|
4730
4734
|
if (!o.value) return;
|
|
4731
4735
|
const j = C.value.length > 0 ? C.value : null;
|
|
@@ -4733,12 +4737,12 @@ const xl = (e) => {
|
|
|
4733
4737
|
const le = await na(o.value, n.filterColDef, j);
|
|
4734
4738
|
r.value = {
|
|
4735
4739
|
...r.value,
|
|
4736
|
-
[
|
|
4740
|
+
[$.value]: le
|
|
4737
4741
|
};
|
|
4738
4742
|
return;
|
|
4739
4743
|
}
|
|
4740
4744
|
const Z = await na(o.value, n.filterColDef, j);
|
|
4741
|
-
o.value.setColumnFilterModel(
|
|
4745
|
+
o.value.setColumnFilterModel($.value, Z).then(() => {
|
|
4742
4746
|
o.value && o.value.onFilterChanged();
|
|
4743
4747
|
});
|
|
4744
4748
|
}, dt = (j) => {
|
|
@@ -4767,7 +4771,7 @@ const xl = (e) => {
|
|
|
4767
4771
|
"onUpdate:modelValue": Z[1] || (Z[1] = (le) => Ae.value = le),
|
|
4768
4772
|
searchInput: ve.value,
|
|
4769
4773
|
"onUpdate:searchInput": Z[2] || (Z[2] = (le) => ve.value = le),
|
|
4770
|
-
"data-horizontal-filter-field": N.value ? void 0 :
|
|
4774
|
+
"data-horizontal-filter-field": N.value ? void 0 : $.value,
|
|
4771
4775
|
label: N.value ? "" : _.value,
|
|
4772
4776
|
icon: N.value ? "add-circle" : void 0,
|
|
4773
4777
|
variant: N.value ? "ghost" : "secondary",
|
|
@@ -4910,42 +4914,42 @@ const xl = (e) => {
|
|
|
4910
4914
|
},
|
|
4911
4915
|
emits: ["handle-settings-icon"],
|
|
4912
4916
|
setup(e) {
|
|
4913
|
-
const t = de($t,
|
|
4917
|
+
const t = de($t, O(null)), n = de(Wa, O([])), l = de(Ua, O(null)), o = e, { filterModelCleared: a, stagedFilterModel: r, filterModel: s } = Bn(), i = O(!1), u = O(!1), c = O(""), f = h(() => n.value.filter((C) => Jn(C))), p = h(() => {
|
|
4914
4918
|
const C = c.value?.trim().toLowerCase() || "";
|
|
4915
4919
|
return !C || C === "" ? f.value : n.value.filter((x) => {
|
|
4916
|
-
const
|
|
4917
|
-
return
|
|
4920
|
+
const $ = x.headerName?.toLowerCase() || x.field?.toLowerCase();
|
|
4921
|
+
return $ ? $.includes(C) : !1;
|
|
4918
4922
|
});
|
|
4919
|
-
}), m =
|
|
4920
|
-
const x = [...n.value.filter((
|
|
4923
|
+
}), m = h(() => {
|
|
4924
|
+
const x = [...n.value.filter(($) => Jn($))].slice(0, o.maxHorizontalFilters);
|
|
4921
4925
|
return l.value ? [...x.slice(0, o.maxHorizontalFilters - 1), l.value] : x;
|
|
4922
|
-
}), v =
|
|
4926
|
+
}), v = h(() => {
|
|
4923
4927
|
const C = s.value || {};
|
|
4924
4928
|
return Object.keys(C).length;
|
|
4925
|
-
}),
|
|
4926
|
-
|
|
4929
|
+
}), y = O(!1), F = () => {
|
|
4930
|
+
y.value = !0;
|
|
4927
4931
|
}, b = () => {
|
|
4928
|
-
t.value && (
|
|
4929
|
-
}, { clearAllFocuses: w } = In(),
|
|
4932
|
+
t.value && (y.value = !1, r.value = t.value.getFilterModel(), i.value = !0);
|
|
4933
|
+
}, { clearAllFocuses: w } = In(), R = () => {
|
|
4930
4934
|
r.value = null, t.value && (t.value.setFilterModel(null), t.value.onFilterChanged(), a.value += 1, w(), u.value = !1);
|
|
4931
|
-
},
|
|
4935
|
+
}, T = () => {
|
|
4932
4936
|
i.value = !1, c.value = "";
|
|
4933
4937
|
}, k = () => {
|
|
4934
|
-
|
|
4938
|
+
T();
|
|
4935
4939
|
}, L = () => {
|
|
4936
|
-
|
|
4940
|
+
y.value && t.value && (t.value.setFilterModel(r.value), t.value.onFilterChanged()), T();
|
|
4937
4941
|
};
|
|
4938
4942
|
return (C, x) => (d(), S(te, null, [
|
|
4939
4943
|
P("div", bd, [
|
|
4940
|
-
(d(!0), S(te, null, Oe(m.value, (
|
|
4941
|
-
key:
|
|
4944
|
+
(d(!0), S(te, null, Oe(m.value, ($) => (d(), S(te, {
|
|
4945
|
+
key: $.field
|
|
4942
4946
|
}, [
|
|
4943
4947
|
G(t) ? (d(), q(oa, {
|
|
4944
4948
|
key: 0,
|
|
4945
4949
|
"enable-focus-view": o.enableFocusView,
|
|
4946
4950
|
"display-preferences-icon": o.displayPreferencesIcon,
|
|
4947
4951
|
"focusable-columns": o.focusableColumns,
|
|
4948
|
-
filterColDef:
|
|
4952
|
+
filterColDef: $,
|
|
4949
4953
|
onHandleSettingsIcon: x[0] || (x[0] = (H) => C.$emit("handle-settings-icon", H))
|
|
4950
4954
|
}, null, 8, ["enable-focus-view", "display-preferences-icon", "focusable-columns", "filterColDef"])) : A("", !0)
|
|
4951
4955
|
], 64))), 128)),
|
|
@@ -4960,7 +4964,7 @@ const xl = (e) => {
|
|
|
4960
4964
|
v.value > 0 ? (d(), S("button", {
|
|
4961
4965
|
key: 1,
|
|
4962
4966
|
class: "pv-button-ghost",
|
|
4963
|
-
onClick: x[1] || (x[1] = (
|
|
4967
|
+
onClick: x[1] || (x[1] = ($) => u.value = !0)
|
|
4964
4968
|
}, [
|
|
4965
4969
|
K(G(Ce), { name: "close" }),
|
|
4966
4970
|
x[12] || (x[12] = Le(" Clear All Filters ", -1)),
|
|
@@ -4974,10 +4978,10 @@ const xl = (e) => {
|
|
|
4974
4978
|
o.enableVerticalPanel ? (d(), q(G(Pu), {
|
|
4975
4979
|
key: 0,
|
|
4976
4980
|
modelValue: i.value,
|
|
4977
|
-
"onUpdate:modelValue": x[8] || (x[8] = (
|
|
4981
|
+
"onUpdate:modelValue": x[8] || (x[8] = ($) => i.value = $),
|
|
4978
4982
|
class: "pv-drawer pv-surface",
|
|
4979
4983
|
"close-on-click-outside": !0,
|
|
4980
|
-
onClickOutside: x[9] || (x[9] = (
|
|
4984
|
+
onClickOutside: x[9] || (x[9] = ($) => L()),
|
|
4981
4985
|
style: { "max-width": "450px", "z-index": "10" }
|
|
4982
4986
|
}, {
|
|
4983
4987
|
header: ue(() => [
|
|
@@ -4985,14 +4989,14 @@ const xl = (e) => {
|
|
|
4985
4989
|
P("p", Sd, "All Filters (" + J(f.value.length) + ")", 1),
|
|
4986
4990
|
P("button", {
|
|
4987
4991
|
class: "pv-button-ghost",
|
|
4988
|
-
onClick: x[2] || (x[2] = (
|
|
4992
|
+
onClick: x[2] || (x[2] = ($) => k())
|
|
4989
4993
|
}, [
|
|
4990
4994
|
K(G(Ce), { name: "close" })
|
|
4991
4995
|
])
|
|
4992
4996
|
]),
|
|
4993
4997
|
K(G(on), {
|
|
4994
4998
|
modelValue: c.value,
|
|
4995
|
-
"onUpdate:modelValue": x[3] || (x[3] = (
|
|
4999
|
+
"onUpdate:modelValue": x[3] || (x[3] = ($) => c.value = $),
|
|
4996
5000
|
placeholder: "Search Filters"
|
|
4997
5001
|
}, null, 8, ["modelValue"])
|
|
4998
5002
|
]),
|
|
@@ -5000,19 +5004,19 @@ const xl = (e) => {
|
|
|
5000
5004
|
P("div", Od, [
|
|
5001
5005
|
P("button", {
|
|
5002
5006
|
class: "pv-button-ghost",
|
|
5003
|
-
onClick: x[5] || (x[5] = (
|
|
5007
|
+
onClick: x[5] || (x[5] = ($) => R())
|
|
5004
5008
|
}, "Clear All"),
|
|
5005
5009
|
P("div", Pd, [
|
|
5006
5010
|
K(G(be), {
|
|
5007
5011
|
variant: "ghost",
|
|
5008
5012
|
label: "Cancel",
|
|
5009
|
-
onClick: x[6] || (x[6] = (
|
|
5013
|
+
onClick: x[6] || (x[6] = ($) => k())
|
|
5010
5014
|
}),
|
|
5011
|
-
|
|
5015
|
+
y.value ? (d(), q(G(be), {
|
|
5012
5016
|
key: 0,
|
|
5013
5017
|
variant: "primary",
|
|
5014
5018
|
label: "Apply",
|
|
5015
|
-
onClick: x[7] || (x[7] = (
|
|
5019
|
+
onClick: x[7] || (x[7] = ($) => L())
|
|
5016
5020
|
})) : (d(), q(G(be), {
|
|
5017
5021
|
key: 1,
|
|
5018
5022
|
variant: "primary",
|
|
@@ -5025,22 +5029,22 @@ const xl = (e) => {
|
|
|
5025
5029
|
default: ue(() => [
|
|
5026
5030
|
P("div", wd, [
|
|
5027
5031
|
P("div", Fd, [
|
|
5028
|
-
(d(!0), S(te, null, Oe(p.value, (
|
|
5029
|
-
key:
|
|
5032
|
+
(d(!0), S(te, null, Oe(p.value, ($, H) => (d(), S("div", {
|
|
5033
|
+
key: $.field,
|
|
5030
5034
|
class: ae([{
|
|
5031
5035
|
"pv-border-bottom": H < p.value.length - 1
|
|
5032
5036
|
}, "pv-stack-12"])
|
|
5033
5037
|
}, [
|
|
5034
5038
|
P("details", kd, [
|
|
5035
5039
|
P("summary", Td, [
|
|
5036
|
-
P("span", $d, J(
|
|
5040
|
+
P("span", $d, J($.headerName), 1)
|
|
5037
5041
|
]),
|
|
5038
5042
|
P("div", null, [
|
|
5039
5043
|
G(t) ? (d(), q(oa, {
|
|
5040
5044
|
key: 0,
|
|
5041
5045
|
"filter-style": "vertical",
|
|
5042
5046
|
"enable-focus-view": o.enableFocusView,
|
|
5043
|
-
filterColDef:
|
|
5047
|
+
filterColDef: $,
|
|
5044
5048
|
"display-preferences-icon": o.displayPreferencesIcon,
|
|
5045
5049
|
"focusable-columns": o.focusableColumns,
|
|
5046
5050
|
onFilterSelectionChanged: F,
|
|
@@ -5057,7 +5061,7 @@ const xl = (e) => {
|
|
|
5057
5061
|
]),
|
|
5058
5062
|
K(G(bi), {
|
|
5059
5063
|
modelValue: u.value,
|
|
5060
|
-
"onUpdate:modelValue": x[11] || (x[11] = (
|
|
5064
|
+
"onUpdate:modelValue": x[11] || (x[11] = ($) => u.value = $),
|
|
5061
5065
|
header: "Clear All Filters",
|
|
5062
5066
|
style: { top: "50%" }
|
|
5063
5067
|
}, {
|
|
@@ -5070,13 +5074,13 @@ const xl = (e) => {
|
|
|
5070
5074
|
label: "Cancel",
|
|
5071
5075
|
variant: "secondary",
|
|
5072
5076
|
size: "lg",
|
|
5073
|
-
onClick: x[10] || (x[10] = (
|
|
5077
|
+
onClick: x[10] || (x[10] = ($) => u.value = !1)
|
|
5074
5078
|
}),
|
|
5075
5079
|
K(G(be), {
|
|
5076
5080
|
label: "Clear All Filters",
|
|
5077
5081
|
variant: "primary",
|
|
5078
5082
|
size: "lg",
|
|
5079
|
-
onClick:
|
|
5083
|
+
onClick: R
|
|
5080
5084
|
})
|
|
5081
5085
|
])
|
|
5082
5086
|
]),
|
|
@@ -5093,33 +5097,33 @@ const xl = (e) => {
|
|
|
5093
5097
|
params: {}
|
|
5094
5098
|
},
|
|
5095
5099
|
setup(e, { expose: t }) {
|
|
5096
|
-
const n = de(ja,
|
|
5097
|
-
const
|
|
5098
|
-
return
|
|
5099
|
-
}), f =
|
|
5100
|
+
const n = de(ja, O([])), l = e, o = O(!1), a = O(!1), r = O(null), s = O(null), i = O(null), u = O(!1), c = h(() => {
|
|
5101
|
+
const T = l.params.column.getColDef();
|
|
5102
|
+
return T.sortable || T.filter || T.enableRowGroup;
|
|
5103
|
+
}), f = h(() => {
|
|
5100
5104
|
if (!n.value || n.value.length === 0)
|
|
5101
5105
|
return "";
|
|
5102
|
-
const
|
|
5106
|
+
const T = n.value.find((L) => L.colId === l.params.column.getColId()), k = T ? T.sort : "";
|
|
5103
5107
|
return k === "asc" ? "arrow-up" : k === "desc" ? "arrow-down" : "";
|
|
5104
|
-
}), p =
|
|
5105
|
-
const
|
|
5106
|
-
return a.value && (
|
|
5107
|
-
}), v =
|
|
5108
|
+
}), p = h(() => _t(l.params.column.getColDef())), m = h(() => {
|
|
5109
|
+
const T = {};
|
|
5110
|
+
return a.value && (T.cursor = "pointer", T["flex-direction"] = p.value ? "row-reverse" : "row"), T;
|
|
5111
|
+
}), v = h(() => u.value ? { opacity: 1 } : {}), y = () => {
|
|
5108
5112
|
u.value = !1;
|
|
5109
5113
|
}, F = () => {
|
|
5110
|
-
u.value = !0, i.value && l.params.showColumnMenu(i.value,
|
|
5111
|
-
}, b = (
|
|
5112
|
-
o.value =
|
|
5114
|
+
u.value = !0, i.value && l.params.showColumnMenu(i.value, y);
|
|
5115
|
+
}, b = (T) => {
|
|
5116
|
+
o.value = T.enableFilterButton, a.value = T.enableSorting || !1, r.value = T.displayName, s.value = xl(T.column.getColDef().context?.dataType), r.value = Kc(r.value, T.column.getColDef().context?.dataType);
|
|
5113
5117
|
}, w = () => {
|
|
5114
5118
|
a.value && l.params.progressSort(!1);
|
|
5115
5119
|
};
|
|
5116
5120
|
ol(() => {
|
|
5117
5121
|
b(l.params);
|
|
5118
5122
|
});
|
|
5119
|
-
function
|
|
5120
|
-
return b(
|
|
5123
|
+
function R(T) {
|
|
5124
|
+
return b(T), !0;
|
|
5121
5125
|
}
|
|
5122
|
-
return t({ refresh:
|
|
5126
|
+
return t({ refresh: R }), (T, k) => (d(), S("div", {
|
|
5123
5127
|
class: "ag-custom-header-cell pv-flex pv-full-width pv-space-between",
|
|
5124
5128
|
style: Pe(m.value),
|
|
5125
5129
|
onClick: w
|
|
@@ -5202,7 +5206,7 @@ const xl = (e) => {
|
|
|
5202
5206
|
getCsvData: { type: Function }
|
|
5203
5207
|
},
|
|
5204
5208
|
setup(e) {
|
|
5205
|
-
const t = e, n =
|
|
5209
|
+
const t = e, n = O(!1);
|
|
5206
5210
|
async function l() {
|
|
5207
5211
|
n.value = !0;
|
|
5208
5212
|
const o = await t.getCsvData();
|
|
@@ -5251,7 +5255,7 @@ const xl = (e) => {
|
|
|
5251
5255
|
},
|
|
5252
5256
|
setup(e) {
|
|
5253
5257
|
Oo.registerModules([Po]);
|
|
5254
|
-
const t = de($t,
|
|
5258
|
+
const t = de($t, O(null)), n = de(Za, O(1)), l = de(Xa, O(0)), o = e, a = h(() => {
|
|
5255
5259
|
const u = l.value, c = n.value;
|
|
5256
5260
|
if (u <= 7)
|
|
5257
5261
|
return Array.from({ length: u }, (p, m) => m + 1);
|
|
@@ -5301,7 +5305,7 @@ const xl = (e) => {
|
|
|
5301
5305
|
params: {}
|
|
5302
5306
|
},
|
|
5303
5307
|
setup(e) {
|
|
5304
|
-
const t = e, n =
|
|
5308
|
+
const t = e, n = h(() => {
|
|
5305
5309
|
const l = t.params.valueFormatted || t.params.value || "";
|
|
5306
5310
|
return l.trim() === "" ? null : l;
|
|
5307
5311
|
});
|
|
@@ -5316,7 +5320,7 @@ const xl = (e) => {
|
|
|
5316
5320
|
params: {}
|
|
5317
5321
|
},
|
|
5318
5322
|
setup(e) {
|
|
5319
|
-
const t = e, n =
|
|
5323
|
+
const t = e, n = h(() => (t.params.node?.rowIndex || 0) + 1), l = h(() => {
|
|
5320
5324
|
const o = t.params.column?.getColDef(), a = t.params.valueFormatted || t.params.value;
|
|
5321
5325
|
return o && _t(o) ? a.toLocaleString() : a;
|
|
5322
5326
|
});
|
|
@@ -5351,7 +5355,7 @@ const xl = (e) => {
|
|
|
5351
5355
|
useTeleport: { type: Boolean, default: !1 }
|
|
5352
5356
|
},
|
|
5353
5357
|
setup(e, { expose: t }) {
|
|
5354
|
-
const n =
|
|
5358
|
+
const n = O(null);
|
|
5355
5359
|
return t({
|
|
5356
5360
|
popoverRef: n
|
|
5357
5361
|
}), (l, o) => (d(), q($n, {
|
|
@@ -5404,7 +5408,7 @@ const xl = (e) => {
|
|
|
5404
5408
|
children: {}
|
|
5405
5409
|
},
|
|
5406
5410
|
setup(e) {
|
|
5407
|
-
const t = e, n =
|
|
5411
|
+
const t = e, n = h(() => t.context), l = O(null), o = h(() => n.value?.exactMatch || !1), a = h(() => t.text), r = h(() => t.searchText || ""), s = h(() => n.value?.queryDisplayField), i = h(() => {
|
|
5408
5412
|
const u = t.icon || "search";
|
|
5409
5413
|
return o.value ? u : "search";
|
|
5410
5414
|
});
|
|
@@ -5442,10 +5446,10 @@ const xl = (e) => {
|
|
|
5442
5446
|
}),
|
|
5443
5447
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
5444
5448
|
setup(e) {
|
|
5445
|
-
const t = e, n = we(e, "modelValue"), l = we(e, "wrap-content"), { removeQueryOption: o } = vo(), a =
|
|
5449
|
+
const t = e, n = we(e, "modelValue"), l = we(e, "wrap-content"), { removeQueryOption: o } = vo(), a = h(() => {
|
|
5446
5450
|
const c = n.value?.queryTerms || [];
|
|
5447
5451
|
return l.value ? c : c.slice(0, t.queryTermDisplayLimit);
|
|
5448
|
-
}), r =
|
|
5452
|
+
}), r = h(() => {
|
|
5449
5453
|
const c = n.value?.queryTerms.length || 0, f = a.value.length;
|
|
5450
5454
|
return c - f;
|
|
5451
5455
|
}), s = (c) => c.queryField && !c.exactMatch ? `${c.queryDisplayField || c.queryField}: '${c.queryText}'` : c.queryText || "", i = (c) => c.exactMatch ? "primary" : "tertiary", u = (c) => {
|
|
@@ -5509,7 +5513,7 @@ const xl = (e) => {
|
|
|
5509
5513
|
setup(e) {
|
|
5510
5514
|
const t = e, n = {
|
|
5511
5515
|
renderer: Xd
|
|
5512
|
-
}, l = vt("search-input"), o = we(e, "searchText"), a = we(e, "query"), r = we(e, "options"), { addQueryOption: s, containsQueryOption: i } = vo(), u =
|
|
5516
|
+
}, l = vt("search-input"), o = we(e, "searchText"), a = we(e, "query"), r = we(e, "options"), { addQueryOption: s, containsQueryOption: i } = vo(), u = O(!1), c = O(!1), f = O(!1), p = h(() => a.value !== null ? "" : t.placeholder), m = O(null), v = h(() => m.value !== null && m.value !== "" && !c.value), y = () => {
|
|
5513
5517
|
a.value = null, o.value = "", m.value = null, f.value = !1;
|
|
5514
5518
|
};
|
|
5515
5519
|
t.enableCustomOptionsInput && ln(
|
|
@@ -5527,7 +5531,7 @@ const xl = (e) => {
|
|
|
5527
5531
|
queryText: o.value
|
|
5528
5532
|
}
|
|
5529
5533
|
}), L());
|
|
5530
|
-
}, b =
|
|
5534
|
+
}, b = h(() => {
|
|
5531
5535
|
if (!r.value || r.value.length === 0)
|
|
5532
5536
|
return [];
|
|
5533
5537
|
let C = r.value;
|
|
@@ -5541,7 +5545,7 @@ const xl = (e) => {
|
|
|
5541
5545
|
}));
|
|
5542
5546
|
}), w = () => {
|
|
5543
5547
|
t.enableCustomOptionsInput && F(), u.value = !1, c.value = !1, f.value = !1;
|
|
5544
|
-
},
|
|
5548
|
+
}, R = (C) => {
|
|
5545
5549
|
try {
|
|
5546
5550
|
const x = {
|
|
5547
5551
|
id: C.id,
|
|
@@ -5556,7 +5560,7 @@ const xl = (e) => {
|
|
|
5556
5560
|
u.value = !1, c.value = !1;
|
|
5557
5561
|
}
|
|
5558
5562
|
};
|
|
5559
|
-
function
|
|
5563
|
+
function T(C) {
|
|
5560
5564
|
const x = C.target;
|
|
5561
5565
|
x.isContentEditable || x.closest('[contenteditable="true"]') || x.tagName === "BUTTON" || x.tagName === "SVG" || x.closest("button") || l.value?.focus();
|
|
5562
5566
|
}
|
|
@@ -5570,7 +5574,7 @@ const xl = (e) => {
|
|
|
5570
5574
|
ref: "query-builder-input",
|
|
5571
5575
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
5572
5576
|
onFocus: k,
|
|
5573
|
-
onClick:
|
|
5577
|
+
onClick: T
|
|
5574
5578
|
}, [
|
|
5575
5579
|
e.hideSearchIcon ? A("", !0) : (d(), q(Ce, {
|
|
5576
5580
|
key: 0,
|
|
@@ -5582,13 +5586,13 @@ const xl = (e) => {
|
|
|
5582
5586
|
}, [
|
|
5583
5587
|
K(Jd, {
|
|
5584
5588
|
modelValue: a.value,
|
|
5585
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
5589
|
+
"onUpdate:modelValue": x[0] || (x[0] = ($) => a.value = $),
|
|
5586
5590
|
"wrap-content": f.value,
|
|
5587
|
-
"onUpdate:wrapContent": x[1] || (x[1] = (
|
|
5591
|
+
"onUpdate:wrapContent": x[1] || (x[1] = ($) => f.value = $),
|
|
5588
5592
|
"query-term-display-limit": e.queryTermDisplayLimit
|
|
5589
5593
|
}, null, 8, ["modelValue", "wrap-content", "query-term-display-limit"]),
|
|
5590
5594
|
ze(P("input", {
|
|
5591
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
5595
|
+
"onUpdate:modelValue": x[2] || (x[2] = ($) => o.value = $),
|
|
5592
5596
|
ref: "search-input",
|
|
5593
5597
|
"data-testid": "pv-search-input",
|
|
5594
5598
|
type: "text",
|
|
@@ -5606,7 +5610,7 @@ const xl = (e) => {
|
|
|
5606
5610
|
variant: "ghost",
|
|
5607
5611
|
leftIcon: "close",
|
|
5608
5612
|
size: "md",
|
|
5609
|
-
onClick:
|
|
5613
|
+
onClick: y
|
|
5610
5614
|
})) : A("", !0),
|
|
5611
5615
|
v.value ? (d(), S("p", t1, J(m.value), 1)) : A("", !0),
|
|
5612
5616
|
b.value.length > 0 || e.optionsLoading ? (d(), q(tl, {
|
|
@@ -5617,11 +5621,11 @@ const xl = (e) => {
|
|
|
5617
5621
|
default: ue(() => [
|
|
5618
5622
|
e.optionsLoading ? (d(), S("div", n1, [
|
|
5619
5623
|
K(G(Pn), { variant: "dark" })
|
|
5620
|
-
])) : (d(!0), S(te, { key: 0 }, Oe(b.value, (
|
|
5621
|
-
key: `${H}-${
|
|
5624
|
+
])) : (d(!0), S(te, { key: 0 }, Oe(b.value, ($, H) => (d(), q(Bt, De({
|
|
5625
|
+
key: `${H}-${$.searchText}`,
|
|
5622
5626
|
ref_for: !0
|
|
5623
|
-
},
|
|
5624
|
-
onHandleSelected: (_) =>
|
|
5627
|
+
}, $, {
|
|
5628
|
+
onHandleSelected: (_) => R($),
|
|
5625
5629
|
config: n
|
|
5626
5630
|
}), null, 16, ["onHandleSelected"]))), 128))
|
|
5627
5631
|
]),
|
|
@@ -5638,7 +5642,7 @@ const xl = (e) => {
|
|
|
5638
5642
|
searchStyle: {}
|
|
5639
5643
|
},
|
|
5640
5644
|
setup(e) {
|
|
5641
|
-
const t = e, n =
|
|
5645
|
+
const t = e, n = O(null), l = O(""), o = O([]), a = O(!1), r = de($t, O(null)), { isServerSideFilter: s, filterModel: i, tableSearchFilterModel: u, tableSearchHandler: c } = Bn(), f = (v) => {
|
|
5642
5646
|
r?.value && (s.value ? console.error("Server-side filtering with table free text search is not yet supported.") : r.value.setGridOption("quickFilterText", v));
|
|
5643
5647
|
}, p = (v) => {
|
|
5644
5648
|
if (r?.value) {
|
|
@@ -5654,20 +5658,20 @@ const xl = (e) => {
|
|
|
5654
5658
|
return;
|
|
5655
5659
|
}
|
|
5656
5660
|
if (!r?.value || !c?.value) return;
|
|
5657
|
-
const
|
|
5661
|
+
const y = {
|
|
5658
5662
|
api: r.value,
|
|
5659
5663
|
query: v,
|
|
5660
5664
|
filterModel: i.value
|
|
5661
5665
|
};
|
|
5662
5666
|
a.value = !0;
|
|
5663
|
-
const b = (await c.value?.(
|
|
5667
|
+
const b = (await c.value?.(y))?.filter((w) => w !== null) || [];
|
|
5664
5668
|
o.value = b.map((w) => {
|
|
5665
|
-
let
|
|
5666
|
-
const
|
|
5667
|
-
return
|
|
5669
|
+
let R = "search";
|
|
5670
|
+
const T = r.value?.getColumnDef(w.queryField || "");
|
|
5671
|
+
return T && (R = xl(T.context?.dataType || null) || "search"), {
|
|
5668
5672
|
id: `${w.queryField}-${w.queryText}`,
|
|
5669
5673
|
text: w.queryText,
|
|
5670
|
-
icon:
|
|
5674
|
+
icon: R,
|
|
5671
5675
|
queryTerm: w
|
|
5672
5676
|
};
|
|
5673
5677
|
}), a.value = !1;
|
|
@@ -5691,21 +5695,21 @@ const xl = (e) => {
|
|
|
5691
5695
|
immediate: !0,
|
|
5692
5696
|
deep: !0
|
|
5693
5697
|
}
|
|
5694
|
-
), (v,
|
|
5698
|
+
), (v, y) => e.searchStyle === "query-builder" ? (d(), q(a1, {
|
|
5695
5699
|
key: 0,
|
|
5696
5700
|
placeholder: e.placeholder,
|
|
5697
5701
|
"search-text": l.value,
|
|
5698
|
-
"onUpdate:searchText":
|
|
5702
|
+
"onUpdate:searchText": y[0] || (y[0] = (F) => l.value = F),
|
|
5699
5703
|
query: n.value,
|
|
5700
|
-
"onUpdate:query":
|
|
5704
|
+
"onUpdate:query": y[1] || (y[1] = (F) => n.value = F),
|
|
5701
5705
|
options: o.value,
|
|
5702
|
-
"onUpdate:options":
|
|
5706
|
+
"onUpdate:options": y[2] || (y[2] = (F) => o.value = F),
|
|
5703
5707
|
"options-loading": a.value
|
|
5704
5708
|
}, null, 8, ["placeholder", "search-text", "query", "options", "options-loading"])) : (d(), q(G(on), {
|
|
5705
5709
|
key: 1,
|
|
5706
5710
|
placeholder: e.placeholder,
|
|
5707
5711
|
modelValue: l.value,
|
|
5708
|
-
"onUpdate:modelValue":
|
|
5712
|
+
"onUpdate:modelValue": y[3] || (y[3] = (F) => l.value = F)
|
|
5709
5713
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
5710
5714
|
}
|
|
5711
5715
|
}), r1 = {
|
|
@@ -5830,18 +5834,18 @@ const xl = (e) => {
|
|
|
5830
5834
|
Uo.setLicenseKey("Using_this_{AG_Grid}_Enterprise_key_{AG-065231}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Grid}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{16_August_2025}____[v3]_[01]_MTc1NTI5ODgwMDAwMA==c042c2db0e82c322692ccb41e7b58f3e");
|
|
5831
5835
|
const a = e;
|
|
5832
5836
|
a.debugMode && l.push(ir);
|
|
5833
|
-
const r =
|
|
5837
|
+
const r = h(() => ({
|
|
5834
5838
|
height: a.containerHeight,
|
|
5835
5839
|
minHeight: a.containerMinHeight
|
|
5836
|
-
})), s =
|
|
5837
|
-
getRows: (
|
|
5840
|
+
})), s = h(() => a.theme ? a.theme : T.value.length > 0 ? Ad : Vd), i = n, u = "serverSideRowHandler" in a && a.serverSideRowHandler ? {
|
|
5841
|
+
getRows: (D) => {
|
|
5838
5842
|
if (!C.value) {
|
|
5839
|
-
|
|
5843
|
+
D.success({ rowData: [] }), k.value = !0;
|
|
5840
5844
|
return;
|
|
5841
5845
|
}
|
|
5842
|
-
const V =
|
|
5846
|
+
const V = D.success, z = D.request.groupKeys?.length || 0, ie = D.request.rowGroupCols?.length || 0, g = I.value || {}, M = z === ie;
|
|
5843
5847
|
let B = !1;
|
|
5844
|
-
ie > 0 && z === 0 && (B =
|
|
5848
|
+
ie > 0 && z === 0 && (B = D.request.rowGroupCols[0].id in g), (M || B) && Object.keys(g).length > 0 && (D.request.filterModel = Jc(b, D.request.filterModel, g)), D.success = (oe) => {
|
|
5845
5849
|
if (a.enableFocusView && Q.value.length > 0 && me.value && oe.rowData) {
|
|
5846
5850
|
const fe = ta(oe.rowData, me.value, Q.value);
|
|
5847
5851
|
if (fe) {
|
|
@@ -5850,20 +5854,20 @@ const xl = (e) => {
|
|
|
5850
5854
|
}
|
|
5851
5855
|
}
|
|
5852
5856
|
V(oe);
|
|
5853
|
-
}, a.serverSideRowHandler?.(
|
|
5857
|
+
}, a.serverSideRowHandler?.(D);
|
|
5854
5858
|
}
|
|
5855
|
-
} : null, c = "filterValuesSetHandler" in a && a.filterValuesSetHandler ? async (
|
|
5859
|
+
} : null, c = "filterValuesSetHandler" in a && a.filterValuesSetHandler ? async (D) => {
|
|
5856
5860
|
let V = [];
|
|
5857
5861
|
const z = { ...U.value };
|
|
5858
|
-
!k.value && w ? V = el(
|
|
5859
|
-
} : null, f = (
|
|
5860
|
-
const V =
|
|
5862
|
+
!k.value && w ? V = el(D.colDef, z) : V = await E(D.api, D.colDef, D.column, z), D.success([...V, ""]);
|
|
5863
|
+
} : null, f = (D) => {
|
|
5864
|
+
const V = D.node, z = D.column?.getColId();
|
|
5861
5865
|
return !V.group || !z ? !1 : Be.value.some((ie) => {
|
|
5862
5866
|
if (ie.field === z)
|
|
5863
5867
|
return !0;
|
|
5864
5868
|
});
|
|
5865
5869
|
}, p = (() => {
|
|
5866
|
-
const
|
|
5870
|
+
const D = {
|
|
5867
5871
|
suppressHeaderFilterButton: !a.enableInlineFilters,
|
|
5868
5872
|
editable: !1,
|
|
5869
5873
|
sortable: !0,
|
|
@@ -5881,9 +5885,9 @@ const xl = (e) => {
|
|
|
5881
5885
|
component: ld,
|
|
5882
5886
|
params: V
|
|
5883
5887
|
};
|
|
5884
|
-
if (!V.column?.getColDef().cellRenderer && a.displayRowNumber &&
|
|
5888
|
+
if (!V.column?.getColDef().cellRenderer && a.displayRowNumber && T.value.length === 0) {
|
|
5885
5889
|
const z = V.api.getAllDisplayedColumns() || [], ie = V.column;
|
|
5886
|
-
if (z.findIndex((
|
|
5890
|
+
if (z.findIndex((M) => M === ie) === 0)
|
|
5887
5891
|
return {
|
|
5888
5892
|
component: jd,
|
|
5889
5893
|
params: V
|
|
@@ -5891,77 +5895,77 @@ const xl = (e) => {
|
|
|
5891
5895
|
}
|
|
5892
5896
|
}
|
|
5893
5897
|
};
|
|
5894
|
-
return a.defaultColDefOverrides && Object.assign(
|
|
5895
|
-
})(), m =
|
|
5898
|
+
return a.defaultColDefOverrides && Object.assign(D, a.defaultColDefOverrides), D;
|
|
5899
|
+
})(), m = O(void 0), v = h(() => (D) => {
|
|
5896
5900
|
if (a.getContextMenuItems)
|
|
5897
|
-
return a.getContextMenuItems(
|
|
5901
|
+
return a.getContextMenuItems(D);
|
|
5898
5902
|
const V = [];
|
|
5899
5903
|
return V.push("copy"), a.suppressCutToClipboard || V.push("cut"), a.suppressClipboardPaste || V.push("paste"), V;
|
|
5900
|
-
}),
|
|
5904
|
+
}), y = {
|
|
5901
5905
|
name: "Column Filter",
|
|
5902
5906
|
icon: '<span class="ag-icon ag-icon-filter"></span>',
|
|
5903
|
-
action: function(
|
|
5904
|
-
let V =
|
|
5905
|
-
if (
|
|
5906
|
-
const ie =
|
|
5907
|
-
ie && (
|
|
5907
|
+
action: function(D) {
|
|
5908
|
+
let V = D.column?.getColId();
|
|
5909
|
+
if (D.column && st(D.column) && (V = Me.value?.getColId() || ""), !qe(V)) {
|
|
5910
|
+
const ie = D.api.getColumn(V)?.getColDef();
|
|
5911
|
+
ie && (R.value = ie, wt(() => {
|
|
5908
5912
|
qe(V);
|
|
5909
5913
|
}));
|
|
5910
5914
|
}
|
|
5911
5915
|
}
|
|
5912
|
-
}, F = (
|
|
5913
|
-
const z = { ...
|
|
5914
|
-
return V.isArrayField && !
|
|
5915
|
-
}, b = a.colDefs?.map((
|
|
5916
|
-
let V = { ...
|
|
5917
|
-
u && c && Jn(
|
|
5918
|
-
const z =
|
|
5916
|
+
}, F = (D, V) => {
|
|
5917
|
+
const z = { ...D };
|
|
5918
|
+
return V.isArrayField && !D.valueFormatter ? z.valueFormatter = (ie) => kr(ie, V.dataType) : V.dataType === We.Percent && !D.valueFormatter ? z.valueFormatter = (ie) => wr(ie, V.valueDecimals || 0) : V.dataType === We.Currency && !D.valueFormatter ? z.valueFormatter = (ie) => fa(ie, V.valueDecimals || 0) : V.dataType === We.Integer && !D.valueFormatter ? z.valueFormatter = Fr : V.dataType === We.Tag && !D.cellRenderer && (z.cellRenderer = zd), z;
|
|
5919
|
+
}, b = a.colDefs?.map((D) => {
|
|
5920
|
+
let V = { ...D };
|
|
5921
|
+
u && c && Jn(D) && (V = ed(D, c));
|
|
5922
|
+
const z = D.context;
|
|
5919
5923
|
return z && (V = F(V, z)), V;
|
|
5920
|
-
}) || [], w = Xn(a.initialGridState, b),
|
|
5921
|
-
if (
|
|
5922
|
-
const
|
|
5923
|
-
if ((!U.value || !U.value[
|
|
5924
|
+
}) || [], w = Xn(a.initialGridState, b), R = O(null), T = O([]), k = O(!1), L = h(() => {
|
|
5925
|
+
if (T.value.length > 0) {
|
|
5926
|
+
const D = T.value[0], V = b.find((ie) => ie.field === D);
|
|
5927
|
+
if ((!U.value || !U.value[D]) && V?.context?.filterRequiredToGroup)
|
|
5924
5928
|
return V.headerName;
|
|
5925
5929
|
}
|
|
5926
5930
|
return null;
|
|
5927
|
-
}), C =
|
|
5931
|
+
}), C = h(() => (!U.value || Object.keys(U.value).length === 0) && a.requireFiltersToShowData ? !1 : L.value === null), x = h(() => L.value ? `Select at least one value for "${L.value}" to view data.` : "Select a filter to view data."), $ = nl(null), H = O([]), _ = Bn(), Y = de(wn, null), N = Y || Cl(), U = _.filterModel, ve = _.filterValueMap, ce = _.filterValueSelectedMetadataMap, E = _.fetchFilterValues, W = _.filterStoreHandler, I = _.tableSearchFilterModel, se = _.tableSearchHandler;
|
|
5928
5932
|
W.value = a.filterValuesSetHandler, se.value = a.tableSearchHandler, ve.value = a.initialFilterValueMap || {};
|
|
5929
|
-
const ge =
|
|
5930
|
-
ye(yl, _), ye(wn, N), ye(ja, H), ye($t,
|
|
5931
|
-
const rt =
|
|
5933
|
+
const ge = O(null), me = h(() => N?.computedFocusType.value || null), Q = h(() => N?.computedFocuses.value || []), pe = h(() => b.filter((D) => D.filter)), Se = h(() => b.filter((D) => D.enableRowGroup)), Be = h(() => b.filter((D) => D.aggFunc)), Me = O(null), ot = O({}), Ke = O(1), Ze = O(0);
|
|
5934
|
+
ye(yl, _), ye(wn, N), ye(ja, H), ye($t, $), ye(Fc, ge), ye(Ua, R), ye(Wa, pe), ye(An, Se), ye(gl, T), ye(Ya, Me), ye(bl, ot), ye(Qa, k), ye(Za, Ke), ye(Xa, Ze);
|
|
5935
|
+
const rt = h(() => !a.enableFocusView && !a.rowData || a.enableFocusView && !Q.value.length && !me.value ? a.rowData : ta(a.rowData, me.value, Q.value));
|
|
5932
5936
|
ne(
|
|
5933
5937
|
() => Q.value,
|
|
5934
|
-
(
|
|
5935
|
-
i("focus-update", { filterField: me.value, focuses:
|
|
5938
|
+
(D) => {
|
|
5939
|
+
i("focus-update", { filterField: me.value, focuses: D });
|
|
5936
5940
|
}
|
|
5937
5941
|
);
|
|
5938
|
-
const Xe = (
|
|
5939
|
-
|
|
5940
|
-
const V = a.leftPinnedColumnName ?? (
|
|
5941
|
-
a.hideAllRowGroupedColumns &&
|
|
5942
|
-
}, _e = (
|
|
5943
|
-
if (
|
|
5944
|
-
const V =
|
|
5945
|
-
la(U.value, V) || (U.value = V, k.value && i("filter-changed",
|
|
5942
|
+
const Xe = (D) => {
|
|
5943
|
+
$.value = D.api;
|
|
5944
|
+
const V = a.leftPinnedColumnName ?? (T.value.length ? T.value[0] : null), z = [];
|
|
5945
|
+
a.hideAllRowGroupedColumns && T.value.forEach((ie) => z.push(ie)), V && (Me.value = D.api.getColumn(V), z.push(V)), w && rn(w), D.api.setColumnsVisible([...z], !1), ge.value = D.api.getAllGridColumns(), Ke.value = D.api.paginationGetCurrentPage() + 1, Ze.value = D.api.paginationGetTotalPages(), i("grid-ready", D);
|
|
5946
|
+
}, _e = (D) => {
|
|
5947
|
+
if ($.value) {
|
|
5948
|
+
const V = D.api.getFilterModel();
|
|
5949
|
+
la(U.value, V) || (U.value = V, k.value && i("filter-changed", D));
|
|
5946
5950
|
}
|
|
5947
|
-
}, ht = (
|
|
5948
|
-
H.value =
|
|
5949
|
-
}, st = (
|
|
5950
|
-
if (
|
|
5951
|
+
}, ht = (D) => {
|
|
5952
|
+
H.value = D.api?.getState()?.sort?.sortModel || [], k.value && i("sort-changed", D);
|
|
5953
|
+
}, st = (D) => D.getColId() && D.getColId().includes("ag-Grid-AutoColumn"), Ae = O(!1), Je = async (D) => {
|
|
5954
|
+
if (!$.value) {
|
|
5951
5955
|
console.error("Grid API not available");
|
|
5952
5956
|
return;
|
|
5953
5957
|
}
|
|
5954
5958
|
if (!u)
|
|
5955
5959
|
return;
|
|
5956
|
-
const V =
|
|
5957
|
-
|
|
5960
|
+
const V = D || { route: [], purge: !0 };
|
|
5961
|
+
$.value.refreshServerSide(V);
|
|
5958
5962
|
}, ct = () => ce.value, et = async () => {
|
|
5959
|
-
if (Ae.value = !0,
|
|
5963
|
+
if (Ae.value = !0, !$.value)
|
|
5960
5964
|
return console.error("Grid API not available"), Ae.value = !1, null;
|
|
5961
5965
|
try {
|
|
5962
|
-
const
|
|
5966
|
+
const D = a.serverSideCsvHandler, V = $.value?.getState(), z = {
|
|
5963
5967
|
rowGroupCols: [],
|
|
5964
|
-
valueCols:
|
|
5968
|
+
valueCols: $.value?.getValueColumns().map((g) => ({
|
|
5965
5969
|
id: g.getId(),
|
|
5966
5970
|
field: g.getColDef().field,
|
|
5967
5971
|
aggFunc: typeof g.getColDef().aggFunc == "string" ? g.getColDef().aggFunc : void 0,
|
|
@@ -5975,11 +5979,11 @@ const xl = (e) => {
|
|
|
5975
5979
|
startRow: 0,
|
|
5976
5980
|
endRow: a.csvRowLimit
|
|
5977
5981
|
};
|
|
5978
|
-
if (
|
|
5982
|
+
if (D) {
|
|
5979
5983
|
const g = {
|
|
5980
5984
|
request: z,
|
|
5981
5985
|
parentNode: {},
|
|
5982
|
-
api:
|
|
5986
|
+
api: $.value,
|
|
5983
5987
|
context: void 0,
|
|
5984
5988
|
success: () => {
|
|
5985
5989
|
},
|
|
@@ -5989,14 +5993,14 @@ const xl = (e) => {
|
|
|
5989
5993
|
return await a.serverSideCsvHandler(g), Ae.value = !1, null;
|
|
5990
5994
|
}
|
|
5991
5995
|
const ie = a.serverSideRowHandler;
|
|
5992
|
-
return ie ? await new Promise((g,
|
|
5993
|
-
const B =
|
|
5996
|
+
return ie ? await new Promise((g, M) => {
|
|
5997
|
+
const B = $.value?.getState(), X = {
|
|
5994
5998
|
request: z,
|
|
5995
5999
|
parentNode: {},
|
|
5996
|
-
api:
|
|
6000
|
+
api: $.value,
|
|
5997
6001
|
context: void 0,
|
|
5998
6002
|
success: (oe) => {
|
|
5999
|
-
const fe =
|
|
6003
|
+
const fe = $.value?.getRowGroupColumns().map((he) => he.getColDef().field).filter((he) => !!he) || [], re = $.value?.getAllDisplayedColumns().map((he) => he.getColDef().field).filter((he) => !!he) || [], ke = $.value?.getValueColumns().map((he) => he.getColDef().field).filter((he) => !!he) || [], Ie = Array.from(/* @__PURE__ */ new Set([...fe, ...re, ...ke])), Ee = oe.rowData.map((he) => {
|
|
6000
6004
|
const cn = {};
|
|
6001
6005
|
return Ie.forEach((Gn) => {
|
|
6002
6006
|
const dn = he[Gn];
|
|
@@ -6006,13 +6010,13 @@ const xl = (e) => {
|
|
|
6006
6010
|
Ae.value = !1, g(nt);
|
|
6007
6011
|
},
|
|
6008
6012
|
fail: () => {
|
|
6009
|
-
Ae.value = !1,
|
|
6013
|
+
Ae.value = !1, M("CSV export failed.");
|
|
6010
6014
|
}
|
|
6011
6015
|
};
|
|
6012
6016
|
ie(X, !0);
|
|
6013
|
-
}) : (console.warn("Client-side export does not return CSV string"), Ae.value = !1,
|
|
6014
|
-
} catch (
|
|
6015
|
-
return console.error("CSV export failed",
|
|
6017
|
+
}) : (console.warn("Client-side export does not return CSV string"), Ae.value = !1, $.value.exportDataAsCsv(), null);
|
|
6018
|
+
} catch (D) {
|
|
6019
|
+
return console.error("CSV export failed", D), Ae.value = !1, null;
|
|
6016
6020
|
}
|
|
6017
6021
|
};
|
|
6018
6022
|
t({
|
|
@@ -6021,44 +6025,44 @@ const xl = (e) => {
|
|
|
6021
6025
|
getFilterValueSelectedMetadataMap: ct,
|
|
6022
6026
|
availableRowGroupColumns: Se,
|
|
6023
6027
|
availableAggFuncColumns: Be,
|
|
6024
|
-
rowGroupColumnFields:
|
|
6028
|
+
rowGroupColumnFields: T
|
|
6025
6029
|
});
|
|
6026
|
-
const dt = (
|
|
6030
|
+
const dt = (D) => {
|
|
6027
6031
|
wt(() => {
|
|
6028
|
-
const V = Me.value, z =
|
|
6032
|
+
const V = Me.value, z = D.api.getRowGroupColumns(), ie = z.length > 0;
|
|
6029
6033
|
let g;
|
|
6030
|
-
ie && a.leftPinnedColumnName && (g =
|
|
6034
|
+
ie && a.leftPinnedColumnName && (g = D.api.getColumn(a.leftPinnedColumnName || "")), ie && !a.leftPinnedColumnName && (g = z[0]), g ? (Me.value = g, tt.value.headerName = g.getColDef().headerName, tt.value.headerComponent = a.enableInlineFilters ? void 0 : ra, tt.value.context = {
|
|
6031
6035
|
dataType: Me.value?.getColDef().context?.dataType || null
|
|
6032
|
-
},
|
|
6033
|
-
const
|
|
6034
|
-
if ((!g ||
|
|
6035
|
-
const B =
|
|
6036
|
+
}, D.api.setColumnsVisible([g.getColId()], !1)) : (Me.value = null, tt.value.headerName = "", tt.value.headerComponent = void 0, tt.value.context = null);
|
|
6037
|
+
const M = V?.getColId();
|
|
6038
|
+
if ((!g || M !== g.getColId()) && D.api.setColumnsVisible([M || ""], !0), T.value = [...z].map((B) => B.getColId()), a.enableFocusView && !Y) {
|
|
6039
|
+
const B = T.value.length > 0 ? T.value[0] : null;
|
|
6036
6040
|
N.setFocusType(B);
|
|
6037
6041
|
}
|
|
6038
|
-
k.value && i("column-row-group-changed",
|
|
6042
|
+
k.value && i("column-row-group-changed", D);
|
|
6039
6043
|
});
|
|
6040
|
-
}, yt = (
|
|
6041
|
-
const V =
|
|
6044
|
+
}, yt = (D) => {
|
|
6045
|
+
const V = D.column?.getColId() || "";
|
|
6042
6046
|
if (V === Me.value?.getColId()) {
|
|
6043
|
-
|
|
6047
|
+
D.api.setColumnsVisible([V], !1);
|
|
6044
6048
|
return;
|
|
6045
6049
|
}
|
|
6046
|
-
}, j = (
|
|
6047
|
-
|
|
6048
|
-
}, Z = (
|
|
6049
|
-
|
|
6050
|
-
}, le = (
|
|
6051
|
-
const V = document.querySelector(`[data-horizontal-filter-field="${
|
|
6050
|
+
}, j = (D) => {
|
|
6051
|
+
D.finished && (ge.value = D.api.getAllGridColumns()), k.value && i("column-moved", D);
|
|
6052
|
+
}, Z = (D) => {
|
|
6053
|
+
D.api && (Ke.value = D.api.paginationGetCurrentPage() + 1, Ze.value = D.api.paginationGetTotalPages());
|
|
6054
|
+
}, le = (D) => "allChildrenRowCount" in D && D.allChildrenRowCount || 0, qe = (D) => {
|
|
6055
|
+
const V = document.querySelector(`[data-horizontal-filter-field="${D}"]`);
|
|
6052
6056
|
if (V) {
|
|
6053
6057
|
const z = V.querySelector("button");
|
|
6054
6058
|
if (z)
|
|
6055
6059
|
return z.click(), !0;
|
|
6056
6060
|
}
|
|
6057
6061
|
return !1;
|
|
6058
|
-
}, Re =
|
|
6062
|
+
}, Re = O(Ic), Et = O({
|
|
6059
6063
|
loadingMessage: "One moment please..."
|
|
6060
6064
|
}), Nt = (() => {
|
|
6061
|
-
const
|
|
6065
|
+
const D = {
|
|
6062
6066
|
headerName: "",
|
|
6063
6067
|
minWidth: 200,
|
|
6064
6068
|
suppressMovable: !0,
|
|
@@ -6074,25 +6078,25 @@ const xl = (e) => {
|
|
|
6074
6078
|
displayCount: a.displayGroupCount,
|
|
6075
6079
|
formattedValue: V.valueFormatted,
|
|
6076
6080
|
rowNode: V.node,
|
|
6077
|
-
api:
|
|
6081
|
+
api: $.value
|
|
6078
6082
|
})
|
|
6079
6083
|
}
|
|
6080
6084
|
};
|
|
6081
|
-
return a.autoGroupColumnDefOverrides && Object.assign(
|
|
6082
|
-
})(), tt =
|
|
6083
|
-
if (
|
|
6085
|
+
return a.autoGroupColumnDefOverrides && Object.assign(D, a.autoGroupColumnDefOverrides), D;
|
|
6086
|
+
})(), tt = O(Nt), _n = (D) => {
|
|
6087
|
+
if (D.node.group)
|
|
6084
6088
|
return { backgroundColor: "#F7F8F8" };
|
|
6085
6089
|
}, En = {
|
|
6086
|
-
Median: (
|
|
6087
|
-
const V =
|
|
6088
|
-
if (
|
|
6090
|
+
Median: (D) => {
|
|
6091
|
+
const V = D.values;
|
|
6092
|
+
if (D.rowNode.leafGroup) {
|
|
6089
6093
|
const g = Xl(V);
|
|
6090
6094
|
return {
|
|
6091
6095
|
values: V,
|
|
6092
6096
|
value: g
|
|
6093
6097
|
};
|
|
6094
6098
|
}
|
|
6095
|
-
const z =
|
|
6099
|
+
const z = D.values.flatMap((g) => g.values || []), ie = Xl(z);
|
|
6096
6100
|
return {
|
|
6097
6101
|
values: z,
|
|
6098
6102
|
value: ie
|
|
@@ -6101,8 +6105,8 @@ const xl = (e) => {
|
|
|
6101
6105
|
};
|
|
6102
6106
|
ol(() => {
|
|
6103
6107
|
un.value = document.querySelector("body");
|
|
6104
|
-
const
|
|
6105
|
-
(
|
|
6108
|
+
const D = Array.isArray(a.rowData) && a.rowData.length > 0, V = typeof a.serverSideRowHandler == "function", z = typeof a.filterValuesSetHandler == "function";
|
|
6109
|
+
(D && V || D && z) && console.warn(
|
|
6106
6110
|
"Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."
|
|
6107
6111
|
), m.value = (ie) => {
|
|
6108
6112
|
const g = [
|
|
@@ -6112,33 +6116,33 @@ const xl = (e) => {
|
|
|
6112
6116
|
// "rowGroup", - disabling this until we can figure out how to selectively disable it once max groups have been reached
|
|
6113
6117
|
"rowUnGroup",
|
|
6114
6118
|
"valueAggSubMenu"
|
|
6115
|
-
],
|
|
6116
|
-
return !a.enableInlineFilters &&
|
|
6117
|
-
}, w && (U.value = w.filter?.filterModel || null,
|
|
6119
|
+
], M = ie.column && st(ie.column) ? Me.value : ie.column;
|
|
6120
|
+
return !a.enableInlineFilters && M && M.getColDef().filter && g.splice(2, 0, y), g.filter((B) => typeof B == "string" ? ie.defaultItems.includes(B) : !0);
|
|
6121
|
+
}, w && (U.value = w.filter?.filterModel || null, T.value = w.rowGroup?.groupColIds || []);
|
|
6118
6122
|
});
|
|
6119
|
-
const rn = (
|
|
6120
|
-
const V =
|
|
6123
|
+
const rn = (D) => {
|
|
6124
|
+
const V = $.value;
|
|
6121
6125
|
if (!V) return;
|
|
6122
|
-
const z =
|
|
6123
|
-
z && !la(z, V.getFilterModel()) && V.setFilterModel(z), a.isTableGrouped && ie && !sl(ie,
|
|
6126
|
+
const z = D.filter?.filterModel || null, ie = D.rowGroup?.groupColIds || null, g = D.columnVisibility || null;
|
|
6127
|
+
z && !la(z, V.getFilterModel()) && V.setFilterModel(z), a.isTableGrouped && ie && !sl(ie, T.value) && V.setRowGroupColumns(ie), g?.hiddenColIds && V.setColumnsVisible(g.hiddenColIds, !1);
|
|
6124
6128
|
};
|
|
6125
6129
|
ne(
|
|
6126
6130
|
() => a.initialGridState,
|
|
6127
6131
|
() => {
|
|
6128
6132
|
if (a.initialGridState) {
|
|
6129
|
-
const
|
|
6130
|
-
|
|
6133
|
+
const D = Xn(a.initialGridState, b);
|
|
6134
|
+
D && rn(D);
|
|
6131
6135
|
}
|
|
6132
6136
|
},
|
|
6133
6137
|
{ deep: !0 }
|
|
6134
6138
|
);
|
|
6135
|
-
const Nn = (
|
|
6136
|
-
k.value = !0, i("first-data-rendered",
|
|
6137
|
-
}, Ot = (
|
|
6139
|
+
const Nn = (D) => {
|
|
6140
|
+
k.value = !0, i("first-data-rendered", D);
|
|
6141
|
+
}, Ot = (D) => u ? a.isServerSideGroupOpenByDefault ? a.isServerSideGroupOpenByDefault(D) : D.rowNode.level === T.value.length - 2 : !1, sn = h(() => {
|
|
6138
6142
|
if (!u)
|
|
6139
6143
|
return a.groupDefaultExpanded;
|
|
6140
|
-
}), un =
|
|
6141
|
-
return (
|
|
6144
|
+
}), un = O(null);
|
|
6145
|
+
return (D, V) => (d(), S("div", {
|
|
6142
6146
|
class: "pv-full-width",
|
|
6143
6147
|
style: Pe(r.value)
|
|
6144
6148
|
}, [
|
|
@@ -6154,7 +6158,7 @@ const xl = (e) => {
|
|
|
6154
6158
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
6155
6159
|
"display-preferences-icon": e.displayPreferencesIcon,
|
|
6156
6160
|
"focusable-columns": e.focusableColumns,
|
|
6157
|
-
onHandleSettingsIcon: V[0] || (V[0] = (z) =>
|
|
6161
|
+
onHandleSettingsIcon: V[0] || (V[0] = (z) => D.$emit("handle-settings-icon", z)),
|
|
6158
6162
|
"max-horizontal-filters": a.maxHorizontalFilters
|
|
6159
6163
|
}, null, 8, ["enable-focus-view", "enable-vertical-panel", "display-preferences-icon", "focusable-columns", "max-horizontal-filters"])) : A("", !0)
|
|
6160
6164
|
], 8, ["to", "disabled"])),
|
|
@@ -6185,7 +6189,7 @@ const xl = (e) => {
|
|
|
6185
6189
|
"search-style": e.tableSearchStyle
|
|
6186
6190
|
}, null, 8, ["placeholder", "disabled", "search-style"])) : A("", !0)
|
|
6187
6191
|
]),
|
|
6188
|
-
xe(
|
|
6192
|
+
xe(D.$slots, "top-slot")
|
|
6189
6193
|
], 2)) : A("", !0),
|
|
6190
6194
|
P("div", {
|
|
6191
6195
|
class: ae(["pv-relative pv-stack-8", e.hideTable ? "pv-hide" : ""]),
|
|
@@ -6273,7 +6277,7 @@ const xl = (e) => {
|
|
|
6273
6277
|
useTeleport: t = !0,
|
|
6274
6278
|
popoverCssProperties: n
|
|
6275
6279
|
} = {}) => {
|
|
6276
|
-
const l =
|
|
6280
|
+
const l = O(null), o = O(null), a = O(null), r = O(null), s = (p) => {
|
|
6277
6281
|
let m = p.parentElement;
|
|
6278
6282
|
for (; m && m !== document.body; ) {
|
|
6279
6283
|
if (window.getComputedStyle(m).position !== "static")
|
|
@@ -6281,7 +6285,7 @@ const xl = (e) => {
|
|
|
6281
6285
|
m = m.parentElement;
|
|
6282
6286
|
}
|
|
6283
6287
|
return null;
|
|
6284
|
-
}, i =
|
|
6288
|
+
}, i = h(() => {
|
|
6285
6289
|
if (!l.value || !o.value || !r.value?.popoverRoot) return 0;
|
|
6286
6290
|
let p = l.value.left + window.scrollX;
|
|
6287
6291
|
(e === "right" || e === "top right") && (p = l.value.left + l.value.width + window.scrollX);
|
|
@@ -6291,7 +6295,7 @@ const xl = (e) => {
|
|
|
6291
6295
|
p -= v.left + window.scrollX - m.scrollLeft;
|
|
6292
6296
|
}
|
|
6293
6297
|
return p;
|
|
6294
|
-
}), u =
|
|
6298
|
+
}), u = h(() => {
|
|
6295
6299
|
if (!l.value || !o.value || !r.value?.popoverRoot) return 0;
|
|
6296
6300
|
let p = l.value.top + window.scrollY;
|
|
6297
6301
|
e === "top" || e === "top right" || (p += l.value.height);
|
|
@@ -6301,7 +6305,7 @@ const xl = (e) => {
|
|
|
6301
6305
|
p -= v.top + window.scrollY - m.scrollTop;
|
|
6302
6306
|
}
|
|
6303
6307
|
return p;
|
|
6304
|
-
}), c =
|
|
6308
|
+
}), c = h(() => {
|
|
6305
6309
|
if (!t)
|
|
6306
6310
|
return n;
|
|
6307
6311
|
const p = {
|
|
@@ -6351,12 +6355,12 @@ const xl = (e) => {
|
|
|
6351
6355
|
id: qt,
|
|
6352
6356
|
text: "",
|
|
6353
6357
|
disabled: !0
|
|
6354
|
-
}, o =
|
|
6358
|
+
}, o = h(() => t.activeOptionLimit ? Math.max(0, t.activeOptionLimit - n.value.length) : 0), a = h(() => !t.showPlaceholders || o.value === 0 ? [] : Array.from({ length: o.value }, (k, L) => ({
|
|
6355
6359
|
id: `${sa}${L}`,
|
|
6356
6360
|
text: "",
|
|
6357
6361
|
disabled: !0,
|
|
6358
6362
|
isPlaceholder: !0
|
|
6359
|
-
}))), r =
|
|
6363
|
+
}))), r = h(() => {
|
|
6360
6364
|
const k = new Set(n.value.map((L) => L.id));
|
|
6361
6365
|
return [
|
|
6362
6366
|
...n.value,
|
|
@@ -6371,7 +6375,7 @@ const xl = (e) => {
|
|
|
6371
6375
|
let k = Array.from(s.value.children).map((x) => x.id);
|
|
6372
6376
|
const L = k.findIndex((x) => x === qt);
|
|
6373
6377
|
L !== -1 && (k = k.slice(0, L)), k = k.filter((x) => !x.startsWith("placeholder-"));
|
|
6374
|
-
const C = k.map((x) => t.options.find((
|
|
6378
|
+
const C = k.map((x) => t.options.find(($) => $.id === x) || null).filter(Boolean);
|
|
6375
6379
|
n.value = C.slice(0, t.activeOptionLimit || 1 / 0);
|
|
6376
6380
|
};
|
|
6377
6381
|
He(() => {
|
|
@@ -6387,7 +6391,7 @@ const xl = (e) => {
|
|
|
6387
6391
|
if (L?.id === qt || L?.id?.startsWith("placeholder-"))
|
|
6388
6392
|
return !1;
|
|
6389
6393
|
const C = t.options.find((x) => x.id === k.dragged.id);
|
|
6390
|
-
return C &&
|
|
6394
|
+
return C && y(C);
|
|
6391
6395
|
},
|
|
6392
6396
|
onEnd: () => {
|
|
6393
6397
|
c = null, f();
|
|
@@ -6403,28 +6407,28 @@ const xl = (e) => {
|
|
|
6403
6407
|
k.currentTarget.classList.remove("placeholder-drag-over");
|
|
6404
6408
|
}, v = (k, L) => {
|
|
6405
6409
|
if (k.preventDefault(), k.currentTarget.classList.remove("placeholder-drag-over"), c) {
|
|
6406
|
-
const x = c.id,
|
|
6407
|
-
if (
|
|
6410
|
+
const x = c.id, $ = t.options.find((H) => H.id === x);
|
|
6411
|
+
if ($ && !y($)) {
|
|
6408
6412
|
const H = [...n.value];
|
|
6409
|
-
H.splice(L - 1, 0,
|
|
6413
|
+
H.splice(L - 1, 0, $), n.value = H.slice(0, t.activeOptionLimit || 1 / 0), c.parentNode && c.parentNode.removeChild(c);
|
|
6410
6414
|
}
|
|
6411
6415
|
}
|
|
6412
|
-
},
|
|
6413
|
-
if (
|
|
6416
|
+
}, y = (k) => n.value.some((L) => L.id === k.id), F = h(() => t.activeOptionLimit ? n.value.length >= t.activeOptionLimit : !1), b = (k) => {
|
|
6417
|
+
if (y(k))
|
|
6414
6418
|
n.value = n.value.filter((L) => L.id !== k.id);
|
|
6415
6419
|
else {
|
|
6416
6420
|
if (t.activeOptionLimit && n.value.length >= t.activeOptionLimit)
|
|
6417
6421
|
return;
|
|
6418
6422
|
n.value = n.value.concat([k]);
|
|
6419
6423
|
}
|
|
6420
|
-
}, w = (k) => !
|
|
6424
|
+
}, w = (k) => !y(k) && t.activeOptionLimit && n.value.length >= t.activeOptionLimit || k.disabled, R = (k) => {
|
|
6421
6425
|
const L = {
|
|
6422
6426
|
padding: "4px 8px"
|
|
6423
6427
|
};
|
|
6424
|
-
return
|
|
6425
|
-
},
|
|
6428
|
+
return y(k) && (L.backgroundColor = "#E4F8F6", L.borderColor = "#16696D"), L;
|
|
6429
|
+
}, T = (k) => {
|
|
6426
6430
|
const L = {};
|
|
6427
|
-
return w(k) && (L.backgroundColor = "transparent"), !
|
|
6431
|
+
return w(k) && (L.backgroundColor = "transparent"), !y(k) && !w(k) ? L.color = "#16696D" : L.color = "#89989B", L;
|
|
6428
6432
|
};
|
|
6429
6433
|
return (k, L) => (d(), S("div", {
|
|
6430
6434
|
ref_key: "containerRef",
|
|
@@ -6457,26 +6461,26 @@ const xl = (e) => {
|
|
|
6457
6461
|
])
|
|
6458
6462
|
], 40, C1)) : (d(), S("div", {
|
|
6459
6463
|
key: 2,
|
|
6460
|
-
class: ae(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !
|
|
6461
|
-
style: Pe(
|
|
6464
|
+
class: ae(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !y(C) && F.value ? "pv-menu-item-disabled" : ""]),
|
|
6465
|
+
style: Pe(R(C))
|
|
6462
6466
|
}, [
|
|
6463
6467
|
P("div", w1, [
|
|
6464
6468
|
K(Ce, {
|
|
6465
|
-
class: ae(
|
|
6469
|
+
class: ae(y(C) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
6466
6470
|
name: "reorder"
|
|
6467
6471
|
}, null, 8, ["class"]),
|
|
6468
6472
|
C.icon ? (d(), q(Ce, {
|
|
6469
6473
|
key: 0,
|
|
6470
|
-
class: ae(
|
|
6474
|
+
class: ae(y(C) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
6471
6475
|
name: C.icon
|
|
6472
6476
|
}, null, 8, ["class", "name"])) : A("", !0),
|
|
6473
6477
|
P("span", F1, J(C.text), 1)
|
|
6474
6478
|
]),
|
|
6475
6479
|
w(C) ? (d(), S("div", k1)) : (d(), q(G(be), {
|
|
6476
6480
|
key: 0,
|
|
6477
|
-
"left-icon":
|
|
6481
|
+
"left-icon": y(C) ? "remove-circle" : "add-circle",
|
|
6478
6482
|
variant: "ghost",
|
|
6479
|
-
style: Pe(
|
|
6483
|
+
style: Pe(T(C)),
|
|
6480
6484
|
onClick: (x) => b(C)
|
|
6481
6485
|
}, null, 8, ["left-icon", "style", "onClick"]))
|
|
6482
6486
|
], 6))
|
|
@@ -6510,24 +6514,24 @@ const xl = (e) => {
|
|
|
6510
6514
|
maxHeight: "900px"
|
|
6511
6515
|
},
|
|
6512
6516
|
useTeleport: !0
|
|
6513
|
-
}), r =
|
|
6517
|
+
}), r = O(!1), s = O(void 0), i = O(null), u = de(lo, O(void 0)), c = de(to, O([])), f = de(ao, O(void 0)), p = de(no, O([])), m = de(eo, O([])), v = de(An, O([])), y = h(() => {
|
|
6514
6518
|
const E = u.value?.id ?? "";
|
|
6515
6519
|
return m.value.length > 1 && !E.endsWith("_stacked");
|
|
6516
|
-
}), F = de(oo,
|
|
6520
|
+
}), F = de(oo, O("")), b = de(ro, O([])), w = de(so, O(void 0)), R = de(io, O([]));
|
|
6517
6521
|
ne(
|
|
6518
|
-
|
|
6522
|
+
y,
|
|
6519
6523
|
(E) => {
|
|
6520
6524
|
E && w.value && (w.value = void 0);
|
|
6521
6525
|
},
|
|
6522
6526
|
{ immediate: !0 }
|
|
6523
6527
|
);
|
|
6524
|
-
const
|
|
6528
|
+
const T = de(Ja, O("")), k = h(() => {
|
|
6525
6529
|
const E = [];
|
|
6526
6530
|
return t.chartFilter && t.chartFilter.options ? t.chartFilter.options.map((W) => ({
|
|
6527
6531
|
label: W.label,
|
|
6528
6532
|
value: W.value
|
|
6529
6533
|
})) : E;
|
|
6530
|
-
}), L =
|
|
6534
|
+
}), L = h(() => u.value ? (m.value.length > 1 ? ["bar_stacked", "line", "column_stacked", "area"] : ["bar", "line", "column", "area"]).includes(u.value?.id) : void 0);
|
|
6531
6535
|
ne(c, (E) => {
|
|
6532
6536
|
if (!u.value) return;
|
|
6533
6537
|
const W = u.value, I = W?.id.endsWith("_stacked"), se = E.find((ge) => ge.id === W.id);
|
|
@@ -6544,19 +6548,19 @@ const xl = (e) => {
|
|
|
6544
6548
|
}
|
|
6545
6549
|
u.value = E[0];
|
|
6546
6550
|
});
|
|
6547
|
-
const C =
|
|
6551
|
+
const C = h(() => b.value.map((E) => ({
|
|
6548
6552
|
id: E.value,
|
|
6549
6553
|
text: E.label
|
|
6550
|
-
}))), x =
|
|
6554
|
+
}))), x = h(() => R.value.map((E) => ({
|
|
6551
6555
|
id: E.value,
|
|
6552
6556
|
text: E.label
|
|
6553
|
-
}))),
|
|
6557
|
+
}))), $ = h(() => v.value.map((E) => ({
|
|
6554
6558
|
id: E.field || "",
|
|
6555
6559
|
text: E.headerName || E.field || "",
|
|
6556
6560
|
icon: xl(E.context?.dataType || null) || "circle-chevron-down"
|
|
6557
|
-
}))), H =
|
|
6561
|
+
}))), H = O([]), _ = (E) => {
|
|
6558
6562
|
const W = H.value.map((I) => I.id);
|
|
6559
|
-
(E.length !== W.length || !E.every((I) => W.includes(I))) && (H.value = E.map((I) =>
|
|
6563
|
+
(E.length !== W.length || !E.every((I) => W.includes(I))) && (H.value = E.map((I) => $.value.find((se) => se.id === I)).filter(Boolean));
|
|
6560
6564
|
};
|
|
6561
6565
|
ne(
|
|
6562
6566
|
m,
|
|
@@ -6564,7 +6568,7 @@ const xl = (e) => {
|
|
|
6564
6568
|
_(E);
|
|
6565
6569
|
},
|
|
6566
6570
|
{ immediate: !0 }
|
|
6567
|
-
), ne(
|
|
6571
|
+
), ne($, () => {
|
|
6568
6572
|
_(m.value);
|
|
6569
6573
|
}), ne(
|
|
6570
6574
|
H,
|
|
@@ -6573,7 +6577,7 @@ const xl = (e) => {
|
|
|
6573
6577
|
},
|
|
6574
6578
|
{ deep: !0 }
|
|
6575
6579
|
);
|
|
6576
|
-
const Y =
|
|
6580
|
+
const Y = h(() => {
|
|
6577
6581
|
const E = [], W = {
|
|
6578
6582
|
value: "y-axis",
|
|
6579
6583
|
label: "Y Axis",
|
|
@@ -6591,7 +6595,7 @@ const xl = (e) => {
|
|
|
6591
6595
|
prefixLabel: "Metric Overlay",
|
|
6592
6596
|
icon: "chart-line",
|
|
6593
6597
|
allowDeselect: !0,
|
|
6594
|
-
disabled:
|
|
6598
|
+
disabled: y.value,
|
|
6595
6599
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
6596
6600
|
availableOptions: x.value,
|
|
6597
6601
|
currentOption: x.value.find(
|
|
@@ -6606,7 +6610,7 @@ const xl = (e) => {
|
|
|
6606
6610
|
label: "X Axis",
|
|
6607
6611
|
icon: "align-end-horizontal",
|
|
6608
6612
|
allowDeselect: !1,
|
|
6609
|
-
availableOptions:
|
|
6613
|
+
availableOptions: $.value,
|
|
6610
6614
|
activeOptions: H,
|
|
6611
6615
|
activeOptionLimit: t.rowGroupLimit
|
|
6612
6616
|
}, ge = {
|
|
@@ -6638,12 +6642,12 @@ const xl = (e) => {
|
|
|
6638
6642
|
pe && u && (u.value = pe);
|
|
6639
6643
|
}
|
|
6640
6644
|
};
|
|
6641
|
-
return C.value.length > 1 && E.push(W), x.value.length > 0 && E.push(I),
|
|
6645
|
+
return C.value.length > 1 && E.push(W), x.value.length > 0 && E.push(I), $.value.length > 1 && E.push(se), c.value.length > 1 && E.push(me), p.value.length > 0 && E.push(ge), E.filter((Q) => t.chartConfigOptions ? t.chartConfigOptions.includes(Q.value) : !0);
|
|
6642
6646
|
});
|
|
6643
6647
|
ne(i, (E) => {
|
|
6644
6648
|
E?.popoverRef && (a.value = E?.popoverRef);
|
|
6645
6649
|
});
|
|
6646
|
-
const N =
|
|
6650
|
+
const N = h(() => s.value && Y.value.find((E) => E.value === s.value) || null), U = (E) => {
|
|
6647
6651
|
s.value = E, o.value = document.getElementById(`pv-chart-config-${E}`), l();
|
|
6648
6652
|
}, ve = () => {
|
|
6649
6653
|
r.value = !1, s.value = void 0;
|
|
@@ -6730,8 +6734,8 @@ const xl = (e) => {
|
|
|
6730
6734
|
e.chartFilter ? (d(), q(ri, {
|
|
6731
6735
|
key: 0,
|
|
6732
6736
|
options: k.value,
|
|
6733
|
-
modelValue: G(
|
|
6734
|
-
"onUpdate:modelValue": W[1] || (W[1] = (I) => Tn(
|
|
6737
|
+
modelValue: G(T),
|
|
6738
|
+
"onUpdate:modelValue": W[1] || (W[1] = (I) => Tn(T) ? T.value = I : null)
|
|
6735
6739
|
}, null, 8, ["options", "modelValue"])) : A("", !0),
|
|
6736
6740
|
e.useCombinedButton ? A("", !0) : (d(), S("div", L1, [
|
|
6737
6741
|
(d(!0), S(te, null, Oe(Y.value, (I) => (d(), S(te, {
|
|
@@ -6862,14 +6866,14 @@ const xl = (e) => {
|
|
|
6862
6866
|
i[c][p] = `${c}-${f}`;
|
|
6863
6867
|
for (const m of l) {
|
|
6864
6868
|
const v = m.value;
|
|
6865
|
-
let
|
|
6866
|
-
c in i && `${v}_sort_total` in i[c] && (
|
|
6869
|
+
let y = 0;
|
|
6870
|
+
c in i && `${v}_sort_total` in i[c] && (y = i[c][`${v}_sort_total`]);
|
|
6867
6871
|
const F = u[v];
|
|
6868
6872
|
if (a.add(f), n && F) {
|
|
6869
6873
|
const b = F ?? 0;
|
|
6870
|
-
i[c][Ht(v, f)] = b,
|
|
6874
|
+
i[c][Ht(v, f)] = b, y = y + b;
|
|
6871
6875
|
}
|
|
6872
|
-
i[c][`${v}${Rt}`] =
|
|
6876
|
+
i[c][`${v}${Rt}`] = y;
|
|
6873
6877
|
}
|
|
6874
6878
|
for (const m of o)
|
|
6875
6879
|
i[c][m.value] = u[m.value];
|
|
@@ -6984,22 +6988,22 @@ const xl = (e) => {
|
|
|
6984
6988
|
},
|
|
6985
6989
|
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"],
|
|
6986
6990
|
setup(e, { expose: t, emit: n }) {
|
|
6987
|
-
const l = e, o = n, a =
|
|
6988
|
-
const B = $e(
|
|
6991
|
+
const l = e, o = n, a = O(null), r = O(null), s = O(null), i = O(l.initialChartCollapsed ?? !1), u = "filter-panel-" + Yt()?.uid, c = O(!1), f = O(!1), p = O(0), m = h(() => (r.value?.availableRowGroupColumns || []).filter((M) => $e(M).hideFromCharting !== !0)), v = O([]), y = h(() => v.value.length > 0 ? v.value[0] : ""), F = (g) => $e(g).chartSeriesDisplayName || g.headerName || g.field || "", b = h(() => (r.value?.availableAggFuncColumns || []).filter((M) => {
|
|
6992
|
+
const B = $e(M);
|
|
6989
6993
|
return !B.hideFromCharting && !B.chartOnSecondaryAxes;
|
|
6990
|
-
}).map((
|
|
6991
|
-
const B =
|
|
6994
|
+
}).map((M) => {
|
|
6995
|
+
const B = M.field, X = M;
|
|
6992
6996
|
return {
|
|
6993
6997
|
label: F(X),
|
|
6994
6998
|
value: B || "",
|
|
6995
6999
|
formatter: X.valueFormatter,
|
|
6996
7000
|
dataType: X.context?.dataType
|
|
6997
7001
|
};
|
|
6998
|
-
})), w =
|
|
6999
|
-
const B = $e(
|
|
7002
|
+
})), w = h(() => (r.value?.availableAggFuncColumns || []).filter((M) => {
|
|
7003
|
+
const B = $e(M);
|
|
7000
7004
|
return B.chartOnSecondaryAxes === !0 && !B.hideFromCharting;
|
|
7001
|
-
}).map((
|
|
7002
|
-
const B =
|
|
7005
|
+
}).map((M) => {
|
|
7006
|
+
const B = M.field, X = M;
|
|
7003
7007
|
return {
|
|
7004
7008
|
label: F(X),
|
|
7005
7009
|
value: B || "",
|
|
@@ -7007,36 +7011,36 @@ const xl = (e) => {
|
|
|
7007
7011
|
dataType: X.context?.dataType,
|
|
7008
7012
|
tooltipRenderer: X.context?.customTooltipRenderer
|
|
7009
7013
|
};
|
|
7010
|
-
})),
|
|
7011
|
-
const B = $e(
|
|
7014
|
+
})), R = h(() => (r.value?.availableAggFuncColumns || []).filter((M) => {
|
|
7015
|
+
const B = $e(M);
|
|
7012
7016
|
return B.chartOnSecondaryAxes === !0 && B.hideFromCharting === !0;
|
|
7013
|
-
}).map((
|
|
7014
|
-
const B =
|
|
7017
|
+
}).map((M) => {
|
|
7018
|
+
const B = M.field, X = M;
|
|
7015
7019
|
return {
|
|
7016
7020
|
label: F(X),
|
|
7017
7021
|
value: B || "",
|
|
7018
7022
|
formatter: X.valueFormatter,
|
|
7019
7023
|
dataType: X.context?.dataType
|
|
7020
7024
|
};
|
|
7021
|
-
})),
|
|
7022
|
-
ye(yl,
|
|
7025
|
+
})), T = fo();
|
|
7026
|
+
ye(yl, T);
|
|
7023
7027
|
const k = Cl({
|
|
7024
7028
|
focusType: l.initialFocusData?.focusType,
|
|
7025
7029
|
focuses: l.initialFocusData?.focuses || []
|
|
7026
7030
|
});
|
|
7027
7031
|
ye(wn, k);
|
|
7028
|
-
const { setFilterSelectedValues: L } =
|
|
7032
|
+
const { setFilterSelectedValues: L } = T, C = O(!1), x = O(l.enableGroupingToggle ? l.isTableGrouped : !0), $ = h(() => k?.computedFocusType.value || null), H = h(() => k?.computedFocuses.value || []), _ = (g) => {
|
|
7029
7033
|
a.value = g.api, x.value || a.value?.setRowGroupColumns([]), j(g.api), o("grid-ready", g);
|
|
7030
7034
|
}, Y = (g) => {
|
|
7031
7035
|
C.value = !0, o("first-data-rendered", g);
|
|
7032
7036
|
}, N = (g) => {
|
|
7033
|
-
const
|
|
7034
|
-
x.value && JSON.stringify(
|
|
7037
|
+
const M = v.value, B = g.api.getRowGroupColumns().map((X) => X.getColId());
|
|
7038
|
+
x.value && JSON.stringify(M) !== JSON.stringify(B) && (v.value = B), o("column-row-group-changed", g);
|
|
7035
7039
|
}, U = async (g) => {
|
|
7036
7040
|
if (l.chartFilter) {
|
|
7037
|
-
const
|
|
7038
|
-
if (!
|
|
7039
|
-
const X = (await po(g.api,
|
|
7041
|
+
const M = E(l.chartFilter.colId);
|
|
7042
|
+
if (!M) return;
|
|
7043
|
+
const X = (await po(g.api, M))?.getModel()?.values || null;
|
|
7040
7044
|
Me.value = X?.[0] || "";
|
|
7041
7045
|
}
|
|
7042
7046
|
j(g.api), o("filter-changed", g);
|
|
@@ -7046,15 +7050,15 @@ const xl = (e) => {
|
|
|
7046
7050
|
() => {
|
|
7047
7051
|
if (x.value) {
|
|
7048
7052
|
if (!a.value) return;
|
|
7049
|
-
const
|
|
7050
|
-
JSON.stringify(
|
|
7053
|
+
const M = a.value.getRowGroupColumns().map((B) => B.getColId());
|
|
7054
|
+
JSON.stringify(M) !== JSON.stringify(v.value) && a.value?.setRowGroupColumns(v.value);
|
|
7051
7055
|
} else
|
|
7052
7056
|
a?.value?.setRowGroupColumns([]);
|
|
7053
7057
|
const g = v.value.length > 0 ? v.value[0] : null;
|
|
7054
7058
|
k.setFocusType(g), a.value && j(a.value);
|
|
7055
7059
|
}
|
|
7056
7060
|
);
|
|
7057
|
-
function ve(g,
|
|
7061
|
+
function ve(g, M, B = !0) {
|
|
7058
7062
|
return (X) => {
|
|
7059
7063
|
if (X.data = ge.value?.find((Ie) => Ie[g] === X.value), X.value === Mt)
|
|
7060
7064
|
return "";
|
|
@@ -7062,7 +7066,7 @@ const xl = (e) => {
|
|
|
7062
7066
|
const fe = E(g);
|
|
7063
7067
|
if (l.truncateLabelValues && B && fe && _t(fe) && !isNaN(Number(X.value))) {
|
|
7064
7068
|
if (Je.value) {
|
|
7065
|
-
const nt = X.datum?.[
|
|
7069
|
+
const nt = X.datum?.[y.value], cn = me.value?.find((dn) => dn[y.value] === nt)?.[`${Q.value}${Rt}`] || 1 / 0;
|
|
7066
7070
|
if (X.value / cn < 0.05)
|
|
7067
7071
|
return "";
|
|
7068
7072
|
}
|
|
@@ -7074,14 +7078,14 @@ const xl = (e) => {
|
|
|
7074
7078
|
X.value = Ie, oe = Ee;
|
|
7075
7079
|
}
|
|
7076
7080
|
let ke = X.value;
|
|
7077
|
-
return
|
|
7081
|
+
return M && (ke = M(X)), ke + oe;
|
|
7078
7082
|
};
|
|
7079
7083
|
}
|
|
7080
|
-
const ce = (g,
|
|
7084
|
+
const ce = (g, M = !1) => {
|
|
7081
7085
|
if (!g) return;
|
|
7082
7086
|
const B = E(g);
|
|
7083
|
-
return B && typeof B.valueFormatter == "function" ? ve(g, B.valueFormatter,
|
|
7084
|
-
}, E = (g) => !g || !a.value ? null : a.value?.getColumnDef(g), W =
|
|
7087
|
+
return B && typeof B.valueFormatter == "function" ? ve(g, B.valueFormatter, M) : ve(g, null, M);
|
|
7088
|
+
}, E = (g) => !g || !a.value ? null : a.value?.getColumnDef(g), W = h(() => (v.value.length > 1 ? E1 : _1).filter((M) => l.enabledChartTypes?.includes(M.id))), I = O(void 0), se = O([
|
|
7085
7089
|
{
|
|
7086
7090
|
text: "Ascending",
|
|
7087
7091
|
id: "asc",
|
|
@@ -7092,11 +7096,11 @@ const xl = (e) => {
|
|
|
7092
7096
|
id: "desc",
|
|
7093
7097
|
icon: "arrow-down-narrow-wide"
|
|
7094
7098
|
}
|
|
7095
|
-
]), ge =
|
|
7099
|
+
]), ge = O([]), me = O([]), Q = O(l.yKey), pe = O(w.value[0]?.value), Se = O(null), Be = O(se.value.find((g) => g.id === l.initialSort || "")), Me = O("");
|
|
7096
7100
|
ye($t, a), ye(Ja, Me), ye(An, m), ye(eo, v), ye(to, W), ye(no, se), ye(lo, I), ye(ao, Be), ye(oo, Q), ye(ro, b), ye(so, pe), ye(io, w);
|
|
7097
7101
|
const ot = (g) => {
|
|
7098
|
-
const
|
|
7099
|
-
|
|
7102
|
+
const M = W.value.find((B) => B.id === g);
|
|
7103
|
+
M ? I.value = M : I.value = W.value[0];
|
|
7100
7104
|
};
|
|
7101
7105
|
ne(
|
|
7102
7106
|
() => W.value,
|
|
@@ -7111,40 +7115,40 @@ const xl = (e) => {
|
|
|
7111
7115
|
}
|
|
7112
7116
|
), ne(Me, (g) => {
|
|
7113
7117
|
if (l.chartFilter && a.value) {
|
|
7114
|
-
const
|
|
7118
|
+
const M = l.chartFilter.colId;
|
|
7115
7119
|
let B = l.chartFilter.options.find((fe) => fe.value === g)?.filterValues || null;
|
|
7116
|
-
B && B.length === 0 && (B = null), L(
|
|
7120
|
+
B && B.length === 0 && (B = null), L(M, B || []);
|
|
7117
7121
|
const oe = uo({
|
|
7118
7122
|
filterType: "set",
|
|
7119
7123
|
values: B
|
|
7120
|
-
}, E(
|
|
7121
|
-
a.value.setColumnFilterModel(
|
|
7124
|
+
}, E(M));
|
|
7125
|
+
a.value.setColumnFilterModel(M, oe).then(() => {
|
|
7122
7126
|
a.value?.onFilterChanged();
|
|
7123
7127
|
});
|
|
7124
7128
|
}
|
|
7125
7129
|
});
|
|
7126
|
-
const Ke =
|
|
7127
|
-
const g = b.value.find((
|
|
7130
|
+
const Ke = h(() => {
|
|
7131
|
+
const g = b.value.find((M) => M.value === Q.value);
|
|
7128
7132
|
return g ? g.label : "";
|
|
7129
|
-
}), Ze =
|
|
7130
|
-
const g = w.value.find((
|
|
7133
|
+
}), Ze = h(() => w.value.find((M) => M.value === pe.value)), rt = h(() => {
|
|
7134
|
+
const g = w.value.find((M) => M.value === pe.value);
|
|
7131
7135
|
return g ? g.label : "";
|
|
7132
|
-
}), Xe =
|
|
7136
|
+
}), Xe = h(() => I.value?.id.includes("bar")), _e = h(() => v.value.length > 1), ht = h(() => {
|
|
7133
7137
|
if (!I.value)
|
|
7134
7138
|
return [];
|
|
7135
7139
|
if (b.value.length === 0)
|
|
7136
7140
|
return [];
|
|
7137
7141
|
const g = Ae.value ? "bar" : I.value?.id || "";
|
|
7138
7142
|
return ["bar", "line", "area"].includes(g) ? ct.value : g === "pie" ? et.value : (console.error("Unsupported chart type", g), ct.value);
|
|
7139
|
-
}), st =
|
|
7140
|
-
const g = Je.value,
|
|
7143
|
+
}), st = h(() => l.showSeriesLabels), Ae = h(() => I.value?.id.includes("column") || I.value?.id.includes("bar")), Je = h(() => I.value?.id.includes("stacked")), ct = h(() => {
|
|
7144
|
+
const g = Je.value, M = Ae.value ? "bar" : I.value?.id;
|
|
7141
7145
|
let B = [];
|
|
7142
7146
|
const X = ce(Q.value, !0), oe = ce(Se.value?.fieldName, !0);
|
|
7143
7147
|
if (_e.value)
|
|
7144
7148
|
Se.value?.fieldValues.forEach((ke) => {
|
|
7145
7149
|
const Ie = {
|
|
7146
|
-
type:
|
|
7147
|
-
xKey:
|
|
7150
|
+
type: M,
|
|
7151
|
+
xKey: y.value,
|
|
7148
7152
|
yKey: Ht(Q.value, ke),
|
|
7149
7153
|
yName: typeof oe == "function" ? oe({ value: ke }) : ke,
|
|
7150
7154
|
stacked: g,
|
|
@@ -7162,8 +7166,8 @@ const xl = (e) => {
|
|
|
7162
7166
|
});
|
|
7163
7167
|
else {
|
|
7164
7168
|
const re = {
|
|
7165
|
-
type:
|
|
7166
|
-
xKey:
|
|
7169
|
+
type: M,
|
|
7170
|
+
xKey: y.value,
|
|
7167
7171
|
yKey: Q.value,
|
|
7168
7172
|
yName: Ke.value,
|
|
7169
7173
|
label: {
|
|
@@ -7179,10 +7183,10 @@ const xl = (e) => {
|
|
|
7179
7183
|
B.push(re);
|
|
7180
7184
|
}
|
|
7181
7185
|
let fe = {};
|
|
7182
|
-
if (
|
|
7186
|
+
if (M === "column" || M === "bar") {
|
|
7183
7187
|
const re = fe;
|
|
7184
7188
|
re.direction = Xe.value ? "horizontal" : "vertical", fe = re;
|
|
7185
|
-
} else if (
|
|
7189
|
+
} else if (M === "line" || M === "area") {
|
|
7186
7190
|
const re = fe;
|
|
7187
7191
|
re.connectMissingData = !0, fe = re;
|
|
7188
7192
|
}
|
|
@@ -7193,9 +7197,9 @@ const xl = (e) => {
|
|
|
7193
7197
|
ce(pe.value, !0);
|
|
7194
7198
|
let re;
|
|
7195
7199
|
g ? re = `${pe.value}_sort_total` : re = pe.value;
|
|
7196
|
-
const Ie = E(
|
|
7200
|
+
const Ie = E(y.value)?.context?.metadataDisplayFields?.[0] || y.value, Ee = {
|
|
7197
7201
|
type: "scatter",
|
|
7198
|
-
xKey:
|
|
7202
|
+
xKey: y.value,
|
|
7199
7203
|
xName: Ie,
|
|
7200
7204
|
yKey: re,
|
|
7201
7205
|
yName: rt.value,
|
|
@@ -7208,80 +7212,80 @@ const xl = (e) => {
|
|
|
7208
7212
|
}), B = [...B, Ee];
|
|
7209
7213
|
}
|
|
7210
7214
|
return B;
|
|
7211
|
-
}), et =
|
|
7215
|
+
}), et = h(() => b.value.length === 0 ? [] : [{
|
|
7212
7216
|
type: "pie",
|
|
7213
|
-
legendItemKey:
|
|
7217
|
+
legendItemKey: y.value,
|
|
7214
7218
|
angleKey: Q.value
|
|
7215
7219
|
}]);
|
|
7216
|
-
ne(Q, (g,
|
|
7220
|
+
ne(Q, (g, M) => {
|
|
7217
7221
|
o("chart-state-changed", {
|
|
7218
7222
|
api: a.value,
|
|
7219
7223
|
newState: {
|
|
7220
7224
|
seriesField: g
|
|
7221
7225
|
},
|
|
7222
7226
|
oldState: {
|
|
7223
|
-
seriesField:
|
|
7227
|
+
seriesField: M
|
|
7224
7228
|
}
|
|
7225
7229
|
});
|
|
7226
|
-
}), ne(pe, (g,
|
|
7230
|
+
}), ne(pe, (g, M) => {
|
|
7227
7231
|
o("chart-state-changed", {
|
|
7228
7232
|
api: a.value,
|
|
7229
7233
|
newState: {
|
|
7230
7234
|
secondarySeriesField: g
|
|
7231
7235
|
},
|
|
7232
7236
|
oldState: {
|
|
7233
|
-
secondarySeriesField:
|
|
7237
|
+
secondarySeriesField: M
|
|
7234
7238
|
}
|
|
7235
7239
|
});
|
|
7236
|
-
}), ne(I, (g,
|
|
7240
|
+
}), ne(I, (g, M) => {
|
|
7237
7241
|
o("chart-state-changed", {
|
|
7238
7242
|
api: a.value,
|
|
7239
7243
|
newState: {
|
|
7240
7244
|
chartType: g?.id
|
|
7241
7245
|
},
|
|
7242
7246
|
oldState: {
|
|
7243
|
-
chartType:
|
|
7247
|
+
chartType: M?.id
|
|
7244
7248
|
}
|
|
7245
7249
|
});
|
|
7246
|
-
}), ne(Be, (g,
|
|
7250
|
+
}), ne(Be, (g, M) => {
|
|
7247
7251
|
o("chart-state-changed", {
|
|
7248
7252
|
api: a.value,
|
|
7249
7253
|
newState: {
|
|
7250
7254
|
chartSort: g?.id
|
|
7251
7255
|
},
|
|
7252
7256
|
oldState: {
|
|
7253
|
-
chartSort:
|
|
7257
|
+
chartSort: M?.id
|
|
7254
7258
|
}
|
|
7255
7259
|
});
|
|
7256
|
-
}), ne(v, (g,
|
|
7260
|
+
}), ne(v, (g, M) => {
|
|
7257
7261
|
o("chart-state-changed", {
|
|
7258
7262
|
api: a.value,
|
|
7259
7263
|
newState: {
|
|
7260
7264
|
chartCategoryFields: g
|
|
7261
7265
|
},
|
|
7262
7266
|
oldState: {
|
|
7263
|
-
chartCategoryFields:
|
|
7267
|
+
chartCategoryFields: M
|
|
7264
7268
|
}
|
|
7265
7269
|
});
|
|
7266
|
-
}), ne(x, (g,
|
|
7270
|
+
}), ne(x, (g, M) => {
|
|
7267
7271
|
o("chart-state-changed", {
|
|
7268
7272
|
api: a.value,
|
|
7269
7273
|
newState: {
|
|
7270
7274
|
tableGrouped: g
|
|
7271
7275
|
},
|
|
7272
7276
|
oldState: {
|
|
7273
|
-
tableGrouped:
|
|
7277
|
+
tableGrouped: M
|
|
7274
7278
|
}
|
|
7275
7279
|
});
|
|
7276
7280
|
}), ne(
|
|
7277
7281
|
() => l.isTableGrouped,
|
|
7278
|
-
(g,
|
|
7279
|
-
!a.value || g ===
|
|
7282
|
+
(g, M) => {
|
|
7283
|
+
!a.value || g === M || !l.enableGroupingToggle || ie(g);
|
|
7280
7284
|
}
|
|
7281
7285
|
), ne(
|
|
7282
7286
|
() => l.initialFocusData,
|
|
7283
|
-
(g,
|
|
7284
|
-
if (!(sl(g?.focuses,
|
|
7287
|
+
(g, M) => {
|
|
7288
|
+
if (!(sl(g?.focuses, M?.focuses) && g?.focusType == M?.focusType)) {
|
|
7285
7289
|
if (!g?.focusType) {
|
|
7286
7290
|
k.setFocuses([]);
|
|
7287
7291
|
return;
|
|
@@ -7293,31 +7297,31 @@ const xl = (e) => {
|
|
|
7293
7297
|
);
|
|
7294
7298
|
const dt = () => {
|
|
7295
7299
|
ge.value = [], me.value = [], Se.value = null;
|
|
7296
|
-
}, yt = (g,
|
|
7300
|
+
}, yt = (g, M) => {
|
|
7297
7301
|
if (!g || g.length === 0) {
|
|
7298
7302
|
dt();
|
|
7299
7303
|
return;
|
|
7300
7304
|
}
|
|
7301
|
-
if (
|
|
7305
|
+
if (M) {
|
|
7302
7306
|
const { stackedData: B, uniqueFieldValues: X } = N1(
|
|
7303
7307
|
g,
|
|
7304
|
-
|
|
7305
|
-
|
|
7308
|
+
y.value,
|
|
7309
|
+
M,
|
|
7306
7310
|
Z.value,
|
|
7307
|
-
|
|
7311
|
+
R.value
|
|
7308
7312
|
);
|
|
7309
7313
|
me.value = B, Se.value = {
|
|
7310
|
-
fieldName:
|
|
7314
|
+
fieldName: M,
|
|
7311
7315
|
fieldValues: X
|
|
7312
7316
|
};
|
|
7313
7317
|
} else
|
|
7314
7318
|
me.value = [], Se.value = null;
|
|
7315
7319
|
ge.value = g;
|
|
7316
7320
|
}, j = (g) => {
|
|
7317
|
-
const
|
|
7318
|
-
if (dt(),
|
|
7321
|
+
const M = v.value.length;
|
|
7322
|
+
if (dt(), M === 0 || b.value.length === 0)
|
|
7319
7323
|
return;
|
|
7320
|
-
const B =
|
|
7324
|
+
const B = T.filterModel.value || {};
|
|
7321
7325
|
if (l.requireFiltersToShowData && Object.keys(B).length === 0)
|
|
7322
7326
|
return;
|
|
7323
7327
|
if (l.serverSideChartHandler) {
|
|
@@ -7358,23 +7362,23 @@ const xl = (e) => {
|
|
|
7358
7362
|
};
|
|
7359
7363
|
} else
|
|
7360
7364
|
me.value = [], Se.value = null;
|
|
7361
|
-
}, Z =
|
|
7362
|
-
const g = b.value,
|
|
7363
|
-
return [...new Map([...
|
|
7365
|
+
}, Z = h(() => {
|
|
7366
|
+
const g = b.value, M = w.value;
|
|
7367
|
+
return [...new Map([...M, ...g].map((B) => [B.value, B])).values()];
|
|
7364
7368
|
}), le = (g) => {
|
|
7365
|
-
const
|
|
7369
|
+
const M = {
|
|
7366
7370
|
[g.field]: g.key
|
|
7367
7371
|
};
|
|
7368
7372
|
for (const B of Z.value)
|
|
7369
|
-
!g.aggData || !g.aggData[B.value] || (
|
|
7370
|
-
return
|
|
7371
|
-
}, qe = (g,
|
|
7373
|
+
!g.aggData || !g.aggData[B.value] || (M[B.value] = g.aggData[B.value]?.value ?? g.aggData[B.value]);
|
|
7374
|
+
return M;
|
|
7375
|
+
}, qe = (g, M) => {
|
|
7372
7376
|
const B = /* @__PURE__ */ new Set(), X = {
|
|
7373
7377
|
[g.field]: g.key
|
|
7374
7378
|
};
|
|
7375
7379
|
let oe = 0;
|
|
7376
7380
|
for (const fe of b.value)
|
|
7377
|
-
|
|
7381
|
+
M.forEach((re) => {
|
|
7378
7382
|
const ke = re.key;
|
|
7379
7383
|
B.add(ke);
|
|
7380
7384
|
const Ie = re.aggData;
|
|
@@ -7389,40 +7393,40 @@ const xl = (e) => {
|
|
|
7389
7393
|
rowData: X,
|
|
7390
7394
|
fieldValues: B
|
|
7391
7395
|
};
|
|
7392
|
-
}, Re =
|
|
7393
|
-
let g = _e.value ? me.value : ge.value,
|
|
7394
|
-
if (Be.value && (
|
|
7396
|
+
}, Re = h(() => {
|
|
7397
|
+
let g = _e.value ? me.value : ge.value, M = null;
|
|
7398
|
+
if (Be.value && (M = _e.value ? `${Q.value}${Rt}` : Q.value), M && g && Be.value) {
|
|
7395
7399
|
const B = Be.value?.id.includes("desc") ? -1 : 1;
|
|
7396
7400
|
g = [...g].sort((X, oe) => {
|
|
7397
|
-
const fe = X[
|
|
7401
|
+
const fe = X[M] || 0, re = oe[M] || 0;
|
|
7398
7402
|
return (fe - re) * B;
|
|
7399
7403
|
});
|
|
7400
7404
|
}
|
|
7401
7405
|
if (g && g.length === 1 && (g = [
|
|
7402
|
-
{ [
|
|
7406
|
+
{ [y.value]: "" },
|
|
7403
7407
|
g[0],
|
|
7404
|
-
{ [
|
|
7405
|
-
]), l.enableFocusView && g && H.value.length > 0 &&
|
|
7406
|
-
const B = g?.filter((oe) => H.value.includes(oe[
|
|
7407
|
-
g = [...B || [], { [
|
|
7408
|
+
{ [y.value]: " " }
|
|
7409
|
+
]), l.enableFocusView && g && H.value.length > 0 && $.value) {
|
|
7410
|
+
const B = g?.filter((oe) => H.value.includes(oe[y.value])), X = g?.filter((oe) => !H.value.includes(oe[y.value]));
|
|
7411
|
+
g = [...B || [], { [y.value]: jn }, ...X || []];
|
|
7408
7412
|
}
|
|
7409
7413
|
return g;
|
|
7410
|
-
}), Et =
|
|
7414
|
+
}), Et = h(() => Re.value?.length || 0), Nt = h(() => {
|
|
7411
7415
|
const g = _e.value ? me.value : Re.value;
|
|
7412
7416
|
return G1(g, Q.value, _e.value);
|
|
7413
|
-
}), tt =
|
|
7417
|
+
}), tt = h(() => Se.value?.fieldValues?.length || 0), _n = h(() => {
|
|
7414
7418
|
const oe = 0.25 * Math.exp(-0.12 * Et.value);
|
|
7415
7419
|
return Math.min(Math.max(oe, 0.05), 0.75);
|
|
7416
|
-
}), En =
|
|
7420
|
+
}), En = h(() => tt.value > 5 ? 0.5 : 1), rn = h(() => tt.value > 5 ? 0.25 : 0.1), Nn = h(() => !Re.value || Re.value?.length === 0 ? !0 : Nt.value === -1 / 0 || _e.value === !0 && Nt.value === 0), Ot = h(() => l.enableFocusView && $.value && H.value.length === 0 && l.percentOfFocusViewYKey && Q.value && Q.value === l.percentOfFocusViewYKey), sn = h(() => {
|
|
7417
7421
|
if (v.value.length === 0)
|
|
7418
7422
|
return "No groups selected. Select at least one group to display data.";
|
|
7419
7423
|
if (Ot.value) {
|
|
7420
|
-
const g = E(
|
|
7421
|
-
return (l.focusableColumns || []).includes(
|
|
7424
|
+
const g = E($.value || ""), M = g?.headerName || g?.field || "Compare Field";
|
|
7425
|
+
return (l.focusableColumns || []).includes(y.value) ? `Focus ${M} to view Visualization` : `Cannot focus on ${M}`;
|
|
7422
7426
|
} else if (Nn.value)
|
|
7423
7427
|
return va;
|
|
7424
7428
|
return "";
|
|
7425
|
-
}), un =
|
|
7429
|
+
}), un = h(() => {
|
|
7426
7430
|
const g = {};
|
|
7427
7431
|
g.overlays = {
|
|
7428
7432
|
noData: {
|
|
@@ -7433,7 +7437,7 @@ const xl = (e) => {
|
|
|
7433
7437
|
preventHidingAll: !0,
|
|
7434
7438
|
enabled: v.value.length > 1
|
|
7435
7439
|
};
|
|
7436
|
-
const
|
|
7440
|
+
const M = _e.value ? Se.value?.fieldValues.map((oe) => Ht(Q.value, oe)) || [] : Q.value ? [Q.value] : [], B = (() => {
|
|
7437
7441
|
if (!pe.value)
|
|
7438
7442
|
return [];
|
|
7439
7443
|
const oe = pe.value;
|
|
@@ -7464,7 +7468,7 @@ const xl = (e) => {
|
|
|
7464
7468
|
return "";
|
|
7465
7469
|
const fe = 35;
|
|
7466
7470
|
let re = oe.value;
|
|
7467
|
-
const ke = ce(
|
|
7471
|
+
const ke = ce(y.value);
|
|
7468
7472
|
return typeof ke == "function" && (re = ke(oe)), typeof re == "string" && re.length > fe ? re.substring(0, fe) + "..." : re;
|
|
7469
7473
|
}
|
|
7470
7474
|
},
|
|
@@ -7474,7 +7478,7 @@ const xl = (e) => {
|
|
|
7474
7478
|
},
|
|
7475
7479
|
{
|
|
7476
7480
|
type: "number",
|
|
7477
|
-
keys:
|
|
7481
|
+
keys: M,
|
|
7478
7482
|
position: Xe.value ? "bottom" : "left",
|
|
7479
7483
|
label: {
|
|
7480
7484
|
formatter: ce(Q.value)
|
|
@@ -7499,7 +7503,7 @@ const xl = (e) => {
|
|
|
7499
7503
|
color: Kt
|
|
7500
7504
|
}
|
|
7501
7505
|
}), g.axes = X, g.series = ht.value, g;
|
|
7502
|
-
}),
|
|
7506
|
+
}), D = h(() => f.value || l.isLoading && (!Re.value || Re.value.length === 0)), V = h(() => Ot.value || !l.isLoading && sn.value !== ""), z = (g) => {
|
|
7503
7507
|
i.value = g, o("chart-collapsed", g);
|
|
7504
7508
|
}, ie = (g) => {
|
|
7505
7509
|
a.value && (a.value.setRowGroupColumns(g ? v.value : []), x.value = g);
|
|
@@ -7516,7 +7520,7 @@ const xl = (e) => {
|
|
|
7516
7520
|
}
|
|
7517
7521
|
}), He(async () => {
|
|
7518
7522
|
await wt(), c.value = l.filterPanelAboveChart;
|
|
7519
|
-
}), (g,
|
|
7523
|
+
}), (g, M) => (d(), S("div", q1, [
|
|
7520
7524
|
P("div", {
|
|
7521
7525
|
class: "pv-stack-16",
|
|
7522
7526
|
id: u
|
|
@@ -7527,7 +7531,7 @@ const xl = (e) => {
|
|
|
7527
7531
|
label: "Collapse",
|
|
7528
7532
|
style: { float: "right", "margin-left": "0.5rem" },
|
|
7529
7533
|
variant: "secondary",
|
|
7530
|
-
onClick:
|
|
7534
|
+
onClick: M[0] || (M[0] = (B) => z(!i.value)),
|
|
7531
7535
|
class: ae(e.hideChart || i.value ? "pv-hide" : "")
|
|
7532
7536
|
}, null, 8, ["class"]),
|
|
7533
7537
|
P("div", {
|
|
@@ -7539,7 +7543,7 @@ const xl = (e) => {
|
|
|
7539
7543
|
size: 20,
|
|
7540
7544
|
class: "pv-text-subdued"
|
|
7541
7545
|
}),
|
|
7542
|
-
|
|
7546
|
+
M[9] || (M[9] = P("p", {
|
|
7543
7547
|
class: "pv-text-body-md pv-text-primary",
|
|
7544
7548
|
style: { "font-weight": "500" }
|
|
7545
7549
|
}, "Expand to see chart", -1))
|
|
@@ -7548,7 +7552,7 @@ const xl = (e) => {
|
|
|
7548
7552
|
rightIcon: "chevron-selector",
|
|
7549
7553
|
label: "Expand",
|
|
7550
7554
|
variant: "secondary",
|
|
7551
|
-
onClick:
|
|
7555
|
+
onClick: M[1] || (M[1] = (B) => z(!i.value))
|
|
7552
7556
|
})
|
|
7553
7557
|
], 2),
|
|
7554
7558
|
P("div", {
|
|
@@ -7565,13 +7569,13 @@ const xl = (e) => {
|
|
|
7565
7569
|
K(ya, {
|
|
7566
7570
|
ref_key: "pvChartRef",
|
|
7567
7571
|
ref: s,
|
|
7568
|
-
isLoading:
|
|
7572
|
+
isLoading: D.value,
|
|
7569
7573
|
options: un.value,
|
|
7570
7574
|
enableFocusView: e.enableFocusView
|
|
7571
7575
|
}, null, 8, ["isLoading", "options", "enableFocusView"]),
|
|
7572
7576
|
V.value ? (d(), S("p", j1, [
|
|
7573
7577
|
Ot.value ? (d(), S(te, { key: 0 }, [
|
|
7574
|
-
|
|
7578
|
+
M[10] || (M[10] = Le(" Select ", -1)),
|
|
7575
7579
|
K(Ce, { name: "focus" })
|
|
7576
7580
|
], 64)) : A("", !0),
|
|
7577
7581
|
Le(" " + J(sn.value), 1)
|
|
@@ -7588,20 +7592,20 @@ const xl = (e) => {
|
|
|
7588
7592
|
onColumnRowGroupChanged: N,
|
|
7589
7593
|
onGridReady: _,
|
|
7590
7594
|
onFilterChanged: U,
|
|
7591
|
-
onSortChanged:
|
|
7592
|
-
onFilterOpened:
|
|
7595
|
+
onSortChanged: M[3] || (M[3] = (B) => o("sort-changed", B)),
|
|
7596
|
+
onFilterOpened: M[4] || (M[4] = (B) => o("filter-opened", B)),
|
|
7593
7597
|
onFirstDataRendered: Y,
|
|
7594
|
-
onColumnMoved:
|
|
7595
|
-
onColumnResized:
|
|
7596
|
-
onHandleSettingsIcon:
|
|
7597
|
-
onFocusUpdate:
|
|
7598
|
+
onColumnMoved: M[5] || (M[5] = (B) => o("column-moved", B)),
|
|
7599
|
+
onColumnResized: M[6] || (M[6] = (B) => o("column-resized", B)),
|
|
7600
|
+
onHandleSettingsIcon: M[7] || (M[7] = (B) => o("handle-settings-icon", B)),
|
|
7601
|
+
onFocusUpdate: M[8] || (M[8] = (B) => o("focus-update", B))
|
|
7598
7602
|
}), {
|
|
7599
7603
|
"top-slot": ue(() => [
|
|
7600
7604
|
e.enableGroupingToggle ? (d(), q(be, {
|
|
7601
7605
|
key: 0,
|
|
7602
7606
|
leftIcon: x.value ? "ungroup" : "group",
|
|
7603
7607
|
label: x.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
7604
|
-
onClick:
|
|
7608
|
+
onClick: M[2] || (M[2] = (B) => ie(!x.value)),
|
|
7605
7609
|
variant: "secondary",
|
|
7606
7610
|
size: "lg"
|
|
7607
7611
|
}, null, 8, ["leftIcon", "label"])) : A("", !0)
|
|
@@ -10786,7 +10790,7 @@ const xl = (e) => {
|
|
|
10786
10790
|
}),
|
|
10787
10791
|
emits: ["update:modelValue"],
|
|
10788
10792
|
setup(e) {
|
|
10789
|
-
const t = we(e, "modelValue"), n =
|
|
10793
|
+
const t = we(e, "modelValue"), n = O(void 0), l = e, o = h(() => {
|
|
10790
10794
|
if (l.topologyType !== "state")
|
|
10791
10795
|
throw new Error(`Unsupported topology type for state selector: ${l.topologyType}`);
|
|
10792
10796
|
return (l.selectableRegions ? l.selectableRegions : Object.keys(yo)).map((r) => ({
|
|
@@ -10840,19 +10844,19 @@ const xl = (e) => {
|
|
|
10840
10844
|
}),
|
|
10841
10845
|
emits: /* @__PURE__ */ Te(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
10842
10846
|
setup(e, { emit: t }) {
|
|
10843
|
-
const n = e, l = we(e, "chartData"), o = we(e, "selectedRegion"), a = t, { getTopologyObject: r, buildMapData: s } = t4(), i =
|
|
10847
|
+
const n = e, l = we(e, "chartData"), o = we(e, "selectedRegion"), a = t, { getTopologyObject: r, buildMapData: s } = t4(), i = h(() => r(n.mapType)), u = h(() => s(
|
|
10844
10848
|
l.value,
|
|
10845
10849
|
n.mapType,
|
|
10846
10850
|
n.seriesKey,
|
|
10847
10851
|
n.gradientLegendMin,
|
|
10848
10852
|
n.gradientLegendMax
|
|
10849
|
-
)), c =
|
|
10853
|
+
)), c = h(() => u.value.filter((p) => p[n.mapType] !== Fn && p[n.mapType] !== kn).map((p) => p[n.mapType]));
|
|
10850
10854
|
ne(o, (p) => {
|
|
10851
10855
|
a("region-selection-changed", {
|
|
10852
10856
|
region: p
|
|
10853
10857
|
});
|
|
10854
10858
|
});
|
|
10855
|
-
const f =
|
|
10859
|
+
const f = h(() => (o.value, {
|
|
10856
10860
|
data: u.value,
|
|
10857
10861
|
topology: i.value,
|
|
10858
10862
|
series: [
|