@turquoisehealth/pit-viper 2.130.2-dev.0 → 2.132.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/components/base/PvDatePicker/PvDatePicker.vue.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +663 -659
- 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
|
-
(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-468640d9]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-468640d9]{cursor:pointer}.pv-menu-item-disabled[data-v-9c8b69cd]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-9c8b69cd]{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}.suggested-label[data-v-
|
|
2
|
-
import { defineComponent as ne, createElementBlock as x, openBlock as d, normalizeStyle as Pe, normalizeClass as se, ref as
|
|
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-468640d9]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-468640d9]{cursor:pointer}.pv-menu-item-disabled[data-v-9c8b69cd]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-9c8b69cd]{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}.suggested-label[data-v-a6ef6c71]: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 ne, createElementBlock as x, openBlock as d, normalizeStyle as Pe, normalizeClass as se, ref as P, onMounted as Ke, onUnmounted as ua, computed as v, createVNode as U, createCommentVNode as I, unref as z, Fragment as oe, createElementVNode as M, createBlock as q, resolveDynamicComponent as vt, isRef as Tn, toValue as Sl, nextTick as Tt, useTemplateRef as ht, renderSlot as Ce, watch as re, withDirectives as He, createTextVNode as Le, Teleport as $n, withCtx as pe, getCurrentInstance as Qt, toDisplayString as te, withModifiers as ln, shallowRef as el, getCurrentScope as xo, onScopeDispose as So, shallowReadonly as Dt, mergeModels as Te, useModel as Fe, vShow as tl, renderList as Oe, vModelText as nl, readonly as wo, mergeProps as Me, createSlots as gn, normalizeProps as wt, inject as de, resolveComponent as Fo, provide as ve, vModelDynamic as ko, vModelCheckbox as To, onBeforeUnmount as $o, guardReactiveProps as Gn, onBeforeMount as ll } from "vue";
|
|
3
3
|
import { AgCharts as Oo } from "ag-charts-vue3";
|
|
4
4
|
import { LicenseManager as Po } from "ag-charts-enterprise";
|
|
5
5
|
import { AgGridVue as Mo } from "ag-grid-vue3";
|
|
@@ -217,18 +217,18 @@ const Vr = { style: { position: "relative" } }, Ar = {
|
|
|
217
217
|
setup(e, { expose: t, emit: n }) {
|
|
218
218
|
const l = e, o = n;
|
|
219
219
|
Po.setLicenseKey(Hr);
|
|
220
|
-
const a =
|
|
220
|
+
const a = P(null), r = P({}), s = () => {
|
|
221
221
|
if (!a.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
222
222
|
const g = a.value.$el;
|
|
223
223
|
if (!g) return;
|
|
224
224
|
const S = g.querySelector(".ag-charts-series-area");
|
|
225
225
|
if (!S) return;
|
|
226
|
-
const
|
|
226
|
+
const R = S.getBoundingClientRect(), T = g.getBoundingClientRect(), k = l.options.seriesArea?.padding || { top: 0, right: 0, bottom: 0, left: 0 }, _ = typeof k == "number" ? k : k.top || 0, $ = typeof k == "number" ? k : k.right || 0, C = typeof k == "number" ? k : k.bottom || 0, V = 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 - _}px`,
|
|
229
|
+
left: `${R.left - T.left - V}px`,
|
|
230
|
+
width: `${R.width + V + $}px`,
|
|
231
|
+
height: `${R.height + _ + C}px`
|
|
232
232
|
};
|
|
233
233
|
}, i = {
|
|
234
234
|
seriesVisibilityChange: (g) => {
|
|
@@ -240,23 +240,23 @@ const Vr = { style: { position: "relative" } }, Ar = {
|
|
|
240
240
|
}), ua(() => {
|
|
241
241
|
r.value = {};
|
|
242
242
|
});
|
|
243
|
-
const u =
|
|
243
|
+
const u = v(() => (F.value?.series || []).some((S) => S.type === "map-shape")), c = v(() => {
|
|
244
244
|
const g = F.value?.series || [];
|
|
245
245
|
let S = !1;
|
|
246
|
-
return g.forEach((
|
|
247
|
-
|
|
246
|
+
return g.forEach((R) => {
|
|
247
|
+
R.type === "bar" && R.direction === "horizontal" && (S = !0);
|
|
248
248
|
}), S;
|
|
249
|
-
}), f =
|
|
250
|
-
const S = g.xKey || "",
|
|
251
|
-
let _ = String(
|
|
249
|
+
}), f = v(() => (F.value?.series || []).some((S) => S.type === "scatter")), p = (g) => {
|
|
250
|
+
const S = g.xKey || "", R = g.xName || g.datum[S], T = g.yKey, k = g.datum[T];
|
|
251
|
+
let _ = String(R) || "";
|
|
252
252
|
const C = (F.value?.axes || []).find((N) => N.type === "category");
|
|
253
|
-
if (C && C.label && C.label.formatter && (_ = C.label.formatter({ value:
|
|
253
|
+
if (C && C.label && C.label.formatter && (_ = C.label.formatter({ value: R, datum: g.datum }) || _), k == null || k === Rt)
|
|
254
254
|
return {
|
|
255
255
|
heading: _,
|
|
256
256
|
data: []
|
|
257
257
|
};
|
|
258
258
|
let V = String(k) || "";
|
|
259
|
-
const L = F.value?.series?.find((N) => N.yKey ===
|
|
259
|
+
const L = F.value?.series?.find((N) => N.yKey === T);
|
|
260
260
|
if (L && L?.label?.formatter) {
|
|
261
261
|
const N = L.label.formatter;
|
|
262
262
|
V = N({ value: k, datum: g.datum }) || formattedValue;
|
|
@@ -271,39 +271,39 @@ const Vr = { style: { position: "relative" } }, Ar = {
|
|
|
271
271
|
}
|
|
272
272
|
]
|
|
273
273
|
};
|
|
274
|
-
},
|
|
274
|
+
}, m = (g, S) => {
|
|
275
275
|
if (!g || !l.translateNullValues) return g;
|
|
276
|
-
const
|
|
276
|
+
const R = /* @__PURE__ */ new Set();
|
|
277
277
|
g.forEach((_) => {
|
|
278
|
-
Object.keys(_).forEach((
|
|
278
|
+
Object.keys(_).forEach(($) => R.add($));
|
|
279
279
|
});
|
|
280
|
-
const
|
|
280
|
+
const T = [];
|
|
281
281
|
S?.forEach((_) => {
|
|
282
|
-
"yKey" in _ && _.yKey &&
|
|
282
|
+
"yKey" in _ && _.yKey && T.push(_.yKey);
|
|
283
283
|
});
|
|
284
284
|
const k = g.map((_) => {
|
|
285
|
-
const
|
|
286
|
-
return
|
|
287
|
-
C in
|
|
288
|
-
}),
|
|
285
|
+
const $ = { ..._ };
|
|
286
|
+
return R.forEach((C) => {
|
|
287
|
+
C in $ ? $[C] === null && ($[C] = Rt) : $[C] = Rt;
|
|
288
|
+
}), $;
|
|
289
289
|
});
|
|
290
|
-
return
|
|
291
|
-
(_) =>
|
|
290
|
+
return T.length > 0 && k?.every(
|
|
291
|
+
(_) => T.every(($) => !($ in _) || _[$] === Rt || _[$] === null)
|
|
292
292
|
) ? [] : k;
|
|
293
293
|
}, h = (g) => g && g.map((S) => {
|
|
294
|
-
const
|
|
295
|
-
return
|
|
296
|
-
if (
|
|
294
|
+
const R = { ...S };
|
|
295
|
+
return R.tooltip || (R.tooltip = {}), R.tooltip.renderer || (R.tooltip.renderer = p), R.itemStyler || (R.itemStyler = (T) => {
|
|
296
|
+
if (T.yValue === Rt || T.yValue === null)
|
|
297
297
|
return { fill: "transparent", stroke: "transparent" };
|
|
298
|
-
}),
|
|
299
|
-
}), y =
|
|
298
|
+
}), R;
|
|
299
|
+
}), y = v(() => {
|
|
300
300
|
if (l.seriesFormatType === "currency")
|
|
301
301
|
return va;
|
|
302
302
|
if (l.seriesFormatType === "percent")
|
|
303
303
|
return 0;
|
|
304
|
-
}), F =
|
|
304
|
+
}), F = v(() => {
|
|
305
305
|
const g = { ...l.options };
|
|
306
|
-
g.theme || (g.theme = Tr), g.data =
|
|
306
|
+
g.theme || (g.theme = Tr), g.data = m(g.data, g.series), g.series = h(g.series), g.overlays || (g.overlays = {
|
|
307
307
|
noData: {
|
|
308
308
|
text: ma
|
|
309
309
|
},
|
|
@@ -323,8 +323,8 @@ const Vr = { style: { position: "relative" } }, Ar = {
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
]);
|
|
326
|
-
const
|
|
327
|
-
return
|
|
326
|
+
const R = (g.series || []).filter((k) => k.type === "scatter"), T = l.customChartProps?.scatter?.centerOnCoords;
|
|
327
|
+
return R.length > 0 && T && (T.x !== void 0 && T.x !== null && Rr(g, T.x), T.y !== void 0 && T.y !== null && Lr(g, T.y)), g.contextMenu || (g.contextMenu = {
|
|
328
328
|
enabled: !1
|
|
329
329
|
}), g.listeners = {
|
|
330
330
|
...g.listeners || {},
|
|
@@ -433,7 +433,7 @@ const Qr = ["data-align"], Zr = /* @__PURE__ */ ne({
|
|
|
433
433
|
},
|
|
434
434
|
emits: ["list-order-updated"],
|
|
435
435
|
setup(e, { expose: t, emit: n }) {
|
|
436
|
-
const l =
|
|
436
|
+
const l = P(null), o = ht("popoverList"), a = e, r = n;
|
|
437
437
|
return a.isSortable && a.isList && jr(o, [], {
|
|
438
438
|
animation: 150,
|
|
439
439
|
onUpdate: () => {
|
|
@@ -483,23 +483,23 @@ const Qr = ["data-align"], Zr = /* @__PURE__ */ ne({
|
|
|
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 = P(l.defaultOpen), r = P(null), s = P(null), i = P(null), u = P(null), c = () => {
|
|
487
487
|
r.value && (i.value = r.value.getBoundingClientRect()), s.value?.popoverRoot && (u.value = s.value.popoverRoot.getBoundingClientRect());
|
|
488
|
-
}, f =
|
|
488
|
+
}, f = v(() => ({
|
|
489
489
|
"pv-hide": !a.value
|
|
490
490
|
})), p = (g) => {
|
|
491
491
|
a.value = !a.value;
|
|
492
|
-
},
|
|
492
|
+
}, m = () => {
|
|
493
493
|
a.value = !1;
|
|
494
494
|
};
|
|
495
495
|
t({
|
|
496
|
-
closeDropdown:
|
|
496
|
+
closeDropdown: m
|
|
497
497
|
}), re(a, (g) => {
|
|
498
498
|
g ? Tt(() => {
|
|
499
499
|
c(), o("dropdown-open");
|
|
500
500
|
}) : o("dropdown-closed");
|
|
501
501
|
});
|
|
502
|
-
const h =
|
|
502
|
+
const h = v(() => !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 = v(() => !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 = v(() => l.useTeleport ? {
|
|
503
503
|
...{
|
|
504
504
|
position: "absolute",
|
|
505
505
|
left: `${h.value}px`,
|
|
@@ -533,7 +533,7 @@ const Qr = ["data-align"], Zr = /* @__PURE__ */ ne({
|
|
|
533
533
|
alignment: e.alignment,
|
|
534
534
|
isList: e.isList,
|
|
535
535
|
isSortable: e.isSortable,
|
|
536
|
-
onListOrderUpdated: S[0] || (S[0] = (
|
|
536
|
+
onListOrderUpdated: S[0] || (S[0] = (R) => g.$emit("list-order-updated", R))
|
|
537
537
|
}, {
|
|
538
538
|
default: pe(() => [
|
|
539
539
|
Ce(g.$slots, "default", {}, () => [
|
|
@@ -544,12 +544,12 @@ const Qr = ["data-align"], Zr = /* @__PURE__ */ ne({
|
|
|
544
544
|
}, 8, ["class", "css-custom-properties", "alignment", "isList", "isSortable"])
|
|
545
545
|
], 8, ["to", "disabled"]))
|
|
546
546
|
])), [
|
|
547
|
-
[z(On),
|
|
547
|
+
[z(On), m]
|
|
548
548
|
]);
|
|
549
549
|
}
|
|
550
550
|
}), ns = /* @__PURE__ */ Ve(ts, [["__scopeId", "data-v-79a7def3"]]);
|
|
551
551
|
function ls() {
|
|
552
|
-
const e =
|
|
552
|
+
const e = P(!1), n = Qt()?.root || {};
|
|
553
553
|
return "isCE" in n && n.isCE === !0 && (e.value = !0), e;
|
|
554
554
|
}
|
|
555
555
|
const as = {
|
|
@@ -566,10 +566,10 @@ const as = {
|
|
|
566
566
|
size: {}
|
|
567
567
|
},
|
|
568
568
|
setup(e) {
|
|
569
|
-
const t = e, n = ls(), l =
|
|
569
|
+
const t = e, n = ls(), l = P(null), o = v(() => ({
|
|
570
570
|
"pv-icon": !0,
|
|
571
571
|
[`pv-icon-${t.size}`]: os.includes(t.size)
|
|
572
|
-
})), a =
|
|
572
|
+
})), a = v(() => 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(), x("svg", {
|
|
574
574
|
"data-testid": "pv-icon",
|
|
575
575
|
"aria-hidden": "true",
|
|
@@ -598,7 +598,7 @@ const as = {
|
|
|
598
598
|
inverse: { type: Boolean, default: !1 }
|
|
599
599
|
},
|
|
600
600
|
setup(e) {
|
|
601
|
-
const t = e, n =
|
|
601
|
+
const t = e, n = v(() => {
|
|
602
602
|
const l = [];
|
|
603
603
|
t.inverse && Ca.includes(t.variant) ? l.push(`pv-button-${t.variant}-inverse`) : l.push(`pv-button-${t.variant}`);
|
|
604
604
|
const o = xa(t.size);
|
|
@@ -675,7 +675,7 @@ const as = {
|
|
|
675
675
|
maxValue: { default: 99 }
|
|
676
676
|
},
|
|
677
677
|
setup(e) {
|
|
678
|
-
const t = e, n =
|
|
678
|
+
const t = e, n = v(() => t.size == "md" ? "md" : (t.size == "sm", "sm")), l = v(() => t.maxValue && t.value && t.value > t.maxValue ? `${t.maxValue}+` : t.value != null ? `${t.prefix}${t.value}` : "-"), o = v(() => ({
|
|
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 as = {
|
|
|
702
702
|
},
|
|
703
703
|
emits: ["handle-close", "handle-click"],
|
|
704
704
|
setup(e) {
|
|
705
|
-
const t = e, n =
|
|
705
|
+
const t = e, n = v(() => {
|
|
706
706
|
switch (t.size) {
|
|
707
707
|
case "lg":
|
|
708
708
|
return "pv-tag-lg";
|
|
@@ -711,7 +711,7 @@ const as = {
|
|
|
711
711
|
default:
|
|
712
712
|
return "";
|
|
713
713
|
}
|
|
714
|
-
}), l =
|
|
714
|
+
}), l = v(() => {
|
|
715
715
|
switch (t.variant) {
|
|
716
716
|
case "primary":
|
|
717
717
|
return "pv-tag-primary";
|
|
@@ -853,47 +853,47 @@ function Ml(e, t, n) {
|
|
|
853
853
|
floating: o
|
|
854
854
|
} = e;
|
|
855
855
|
const a = St(t), r = wa(t), s = Sa(r), i = Bt(t), u = a === "y", c = l.x + l.width / 2 - o.width / 2, f = l.y + l.height / 2 - o.height / 2, p = l[s] / 2 - o[s] / 2;
|
|
856
|
-
let
|
|
856
|
+
let m;
|
|
857
857
|
switch (i) {
|
|
858
858
|
case "top":
|
|
859
|
-
|
|
859
|
+
m = {
|
|
860
860
|
x: c,
|
|
861
861
|
y: l.y - o.height
|
|
862
862
|
};
|
|
863
863
|
break;
|
|
864
864
|
case "bottom":
|
|
865
|
-
|
|
865
|
+
m = {
|
|
866
866
|
x: c,
|
|
867
867
|
y: l.y + l.height
|
|
868
868
|
};
|
|
869
869
|
break;
|
|
870
870
|
case "right":
|
|
871
|
-
|
|
871
|
+
m = {
|
|
872
872
|
x: l.x + l.width,
|
|
873
873
|
y: f
|
|
874
874
|
};
|
|
875
875
|
break;
|
|
876
876
|
case "left":
|
|
877
|
-
|
|
877
|
+
m = {
|
|
878
878
|
x: l.x - o.width,
|
|
879
879
|
y: f
|
|
880
880
|
};
|
|
881
881
|
break;
|
|
882
882
|
default:
|
|
883
|
-
|
|
883
|
+
m = {
|
|
884
884
|
x: l.x,
|
|
885
885
|
y: l.y
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
888
|
switch (Mn(t)) {
|
|
889
889
|
case "start":
|
|
890
|
-
|
|
890
|
+
m[r] -= p * (n && u ? -1 : 1);
|
|
891
891
|
break;
|
|
892
892
|
case "end":
|
|
893
|
-
|
|
893
|
+
m[r] += p * (n && u ? -1 : 1);
|
|
894
894
|
break;
|
|
895
895
|
}
|
|
896
|
-
return
|
|
896
|
+
return m;
|
|
897
897
|
}
|
|
898
898
|
const $s = async (e, t, n) => {
|
|
899
899
|
const {
|
|
@@ -909,15 +909,15 @@ const $s = async (e, t, n) => {
|
|
|
909
909
|
}), {
|
|
910
910
|
x: c,
|
|
911
911
|
y: f
|
|
912
|
-
} = Ml(u, l, i), p = l,
|
|
912
|
+
} = Ml(u, l, i), p = l, m = {}, h = 0;
|
|
913
913
|
for (let y = 0; y < s.length; y++) {
|
|
914
914
|
const {
|
|
915
915
|
name: F,
|
|
916
916
|
fn: g
|
|
917
917
|
} = s[y], {
|
|
918
918
|
x: S,
|
|
919
|
-
y:
|
|
920
|
-
data:
|
|
919
|
+
y: R,
|
|
920
|
+
data: T,
|
|
921
921
|
reset: k
|
|
922
922
|
} = await g({
|
|
923
923
|
x: c,
|
|
@@ -925,7 +925,7 @@ const $s = async (e, t, n) => {
|
|
|
925
925
|
initialPlacement: l,
|
|
926
926
|
placement: p,
|
|
927
927
|
strategy: o,
|
|
928
|
-
middlewareData:
|
|
928
|
+
middlewareData: m,
|
|
929
929
|
rects: u,
|
|
930
930
|
platform: r,
|
|
931
931
|
elements: {
|
|
@@ -933,11 +933,11 @@ const $s = async (e, t, n) => {
|
|
|
933
933
|
floating: t
|
|
934
934
|
}
|
|
935
935
|
});
|
|
936
|
-
c = S ?? c, f =
|
|
937
|
-
...
|
|
936
|
+
c = S ?? c, f = R ?? f, m = {
|
|
937
|
+
...m,
|
|
938
938
|
[F]: {
|
|
939
|
-
...
|
|
940
|
-
...
|
|
939
|
+
...m[F],
|
|
940
|
+
...T
|
|
941
941
|
}
|
|
942
942
|
}, k && h <= 50 && (h++, typeof k == "object" && (k.placement && (p = k.placement), k.rects && (u = k.rects === !0 ? await r.getElementRects({
|
|
943
943
|
reference: e,
|
|
@@ -953,7 +953,7 @@ const $s = async (e, t, n) => {
|
|
|
953
953
|
y: f,
|
|
954
954
|
placement: p,
|
|
955
955
|
strategy: o,
|
|
956
|
-
middlewareData:
|
|
956
|
+
middlewareData: m
|
|
957
957
|
};
|
|
958
958
|
};
|
|
959
959
|
async function Os(e, t) {
|
|
@@ -971,8 +971,8 @@ async function Os(e, t) {
|
|
|
971
971
|
rootBoundary: c = "viewport",
|
|
972
972
|
elementContext: f = "floating",
|
|
973
973
|
altBoundary: p = !1,
|
|
974
|
-
padding:
|
|
975
|
-
} = il(t, e), h = Ts(
|
|
974
|
+
padding: m = 0
|
|
975
|
+
} = il(t, e), h = Ts(m), F = s[p ? f === "floating" ? "reference" : "floating" : f], g = xn(await a.getClippingRect({
|
|
976
976
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(F))) == null || n ? F : F.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
977
977
|
boundary: u,
|
|
978
978
|
rootBoundary: c,
|
|
@@ -982,7 +982,7 @@ async function Os(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 Os(e, t) {
|
|
|
991
991
|
}, k = xn(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
992
992
|
elements: s,
|
|
993
993
|
rect: S,
|
|
994
|
-
offsetParent:
|
|
994
|
+
offsetParent: R,
|
|
995
995
|
strategy: i
|
|
996
996
|
}) : S);
|
|
997
997
|
return {
|
|
998
|
-
top: (g.top - k.top + h.top) /
|
|
999
|
-
bottom: (k.bottom - g.bottom + h.bottom) /
|
|
1000
|
-
left: (g.left - k.left + h.left) /
|
|
1001
|
-
right: (k.right - g.right + h.right) /
|
|
998
|
+
top: (g.top - k.top + h.top) / T.y,
|
|
999
|
+
bottom: (k.bottom - g.bottom + h.bottom) / T.y,
|
|
1000
|
+
left: (g.left - k.left + h.left) / T.x,
|
|
1001
|
+
right: (k.right - g.right + h.right) / T.x
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
const Ps = function(e) {
|
|
@@ -1018,45 +1018,45 @@ const Ps = function(e) {
|
|
|
1018
1018
|
mainAxis: c = !0,
|
|
1019
1019
|
crossAxis: f = !0,
|
|
1020
1020
|
fallbackPlacements: p,
|
|
1021
|
-
fallbackStrategy:
|
|
1021
|
+
fallbackStrategy: m = "bestFit",
|
|
1022
1022
|
fallbackAxisSideDirection: h = "none",
|
|
1023
1023
|
flipAlignment: y = !0,
|
|
1024
1024
|
...F
|
|
1025
1025
|
} = il(e, t);
|
|
1026
1026
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
1027
1027
|
return {};
|
|
1028
|
-
const g = Bt(o), S = St(s),
|
|
1029
|
-
!p && _ && k.push(...Fs(s, y, h,
|
|
1030
|
-
const
|
|
1031
|
-
let
|
|
1028
|
+
const g = Bt(o), S = St(s), R = Bt(s) === s, T = await (i.isRTL == null ? void 0 : i.isRTL(u.floating)), k = p || (R || !y ? [Cn(s)] : Cs(s)), _ = h !== "none";
|
|
1029
|
+
!p && _ && k.push(...Fs(s, y, h, T));
|
|
1030
|
+
const $ = [s, ...k], C = await Os(t, F), V = [];
|
|
1031
|
+
let O = ((l = a.flip) == null ? void 0 : l.overflows) || [];
|
|
1032
1032
|
if (c && V.push(C[g]), f) {
|
|
1033
|
-
const X = bs(o, r,
|
|
1033
|
+
const X = bs(o, r, T);
|
|
1034
1034
|
V.push(C[X[0]], C[X[1]]);
|
|
1035
1035
|
}
|
|
1036
|
-
if (
|
|
1036
|
+
if (O = [...O, {
|
|
1037
1037
|
placement: o,
|
|
1038
1038
|
overflows: V
|
|
1039
1039
|
}], !V.every((X) => X <= 0)) {
|
|
1040
1040
|
var L, N;
|
|
1041
|
-
const X = (((L = a.flip) == null ? void 0 : L.index) || 0) + 1, ee =
|
|
1041
|
+
const X = (((L = a.flip) == null ? void 0 : L.index) || 0) + 1, ee = $[X];
|
|
1042
1042
|
if (ee && (!(f === "alignment" ? S !== St(ee) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1043
1043
|
// overflows the main axis.
|
|
1044
|
-
|
|
1044
|
+
O.every((W) => St(W.placement) === S ? W.overflows[0] > 0 : !0)))
|
|
1045
1045
|
return {
|
|
1046
1046
|
data: {
|
|
1047
1047
|
index: X,
|
|
1048
|
-
overflows:
|
|
1048
|
+
overflows: O
|
|
1049
1049
|
},
|
|
1050
1050
|
reset: {
|
|
1051
1051
|
placement: ee
|
|
1052
1052
|
}
|
|
1053
1053
|
};
|
|
1054
|
-
let ue = (N =
|
|
1054
|
+
let ue = (N = O.filter((G) => G.overflows[0] <= 0).sort((G, W) => G.overflows[1] - W.overflows[1])[0]) == null ? void 0 : N.placement;
|
|
1055
1055
|
if (!ue)
|
|
1056
|
-
switch (
|
|
1056
|
+
switch (m) {
|
|
1057
1057
|
case "bestFit": {
|
|
1058
1058
|
var K;
|
|
1059
|
-
const G = (K =
|
|
1059
|
+
const G = (K = O.filter((W) => {
|
|
1060
1060
|
if (_) {
|
|
1061
1061
|
const B = St(W.placement);
|
|
1062
1062
|
return B === S || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -1091,7 +1091,7 @@ async function Ds(e, t) {
|
|
|
1091
1091
|
} = e, a = await (l.isRTL == null ? void 0 : l.isRTL(o.floating)), r = Bt(n), s = Mn(n), i = St(n) === "y", u = Ms.has(r) ? -1 : 1, c = a && i ? -1 : 1, f = il(t, e);
|
|
1092
1092
|
let {
|
|
1093
1093
|
mainAxis: p,
|
|
1094
|
-
crossAxis:
|
|
1094
|
+
crossAxis: m,
|
|
1095
1095
|
alignmentAxis: h
|
|
1096
1096
|
} = typeof f == "number" ? {
|
|
1097
1097
|
mainAxis: f,
|
|
@@ -1102,12 +1102,12 @@ async function Ds(e, t) {
|
|
|
1102
1102
|
crossAxis: f.crossAxis || 0,
|
|
1103
1103
|
alignmentAxis: f.alignmentAxis
|
|
1104
1104
|
};
|
|
1105
|
-
return s && typeof h == "number" && (
|
|
1106
|
-
x:
|
|
1105
|
+
return s && typeof h == "number" && (m = s === "end" ? h * -1 : h), i ? {
|
|
1106
|
+
x: m * c,
|
|
1107
1107
|
y: p * u
|
|
1108
1108
|
} : {
|
|
1109
1109
|
x: p * u,
|
|
1110
|
-
y:
|
|
1110
|
+
y: m * c
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
1113
|
const Rs = function(e) {
|
|
@@ -1290,11 +1290,11 @@ function Jt(e, t, n, l) {
|
|
|
1290
1290
|
const s = zs(a, n, l) ? Oa(a) : ot(0);
|
|
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
|
-
const p = qe(a),
|
|
1293
|
+
const p = qe(a), m = l && Je(l) ? qe(l) : l;
|
|
1294
1294
|
let h = p, y = Wn(h);
|
|
1295
|
-
for (; y && l &&
|
|
1296
|
-
const F = At(y), g = y.getBoundingClientRect(), S = et(y),
|
|
1297
|
-
i *= F.x, u *= F.y, c *= F.x, f *= F.y, i +=
|
|
1295
|
+
for (; y && l && m !== h; ) {
|
|
1296
|
+
const F = At(y), g = y.getBoundingClientRect(), S = et(y), R = g.left + (y.clientLeft + parseFloat(S.paddingLeft)) * F.x, T = g.top + (y.clientTop + parseFloat(S.paddingTop)) * F.y;
|
|
1297
|
+
i *= F.x, u *= F.y, c *= F.x, f *= F.y, i += R, u += T, h = qe(y), y = Wn(h);
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
return xn({
|
|
@@ -1331,8 +1331,8 @@ function Hs(e) {
|
|
|
1331
1331
|
}, u = ot(1);
|
|
1332
1332
|
const c = ot(0), f = rt(l);
|
|
1333
1333
|
if ((f || !f && !a) && ((Ot(l) !== "body" || on(r)) && (i = Ln(l)), rt(l))) {
|
|
1334
|
-
const
|
|
1335
|
-
u = At(l), c.x =
|
|
1334
|
+
const m = Jt(l);
|
|
1335
|
+
u = At(l), c.x = m.x + l.clientLeft, c.y = m.y + l.clientTop;
|
|
1336
1336
|
}
|
|
1337
1337
|
const p = r && !f && !a ? Pa(r, i) : ot(0);
|
|
1338
1338
|
return {
|
|
@@ -1367,7 +1367,7 @@ function Us(e, t) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
const u = Vn(l);
|
|
1369
1369
|
if (u <= 0) {
|
|
1370
|
-
const c = l.ownerDocument, f = c.body, p = getComputedStyle(f),
|
|
1370
|
+
const c = l.ownerDocument, f = c.body, p = getComputedStyle(f), m = c.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, h = Math.abs(l.clientWidth - f.clientWidth - m);
|
|
1371
1371
|
h <= Rl && (a -= h);
|
|
1372
1372
|
} else u <= Rl && (a += u);
|
|
1373
1373
|
return {
|
|
@@ -1463,8 +1463,8 @@ function Js(e, t, n) {
|
|
|
1463
1463
|
}
|
|
1464
1464
|
if (l || !l && !a)
|
|
1465
1465
|
if ((Ot(t) !== "body" || on(o)) && (s = Ln(t)), l) {
|
|
1466
|
-
const
|
|
1467
|
-
i.x =
|
|
1466
|
+
const m = Jt(t, !0, a, t);
|
|
1467
|
+
i.x = m.x + t.clientLeft, i.y = m.y + t.clientTop;
|
|
1468
1468
|
} else o && u();
|
|
1469
1469
|
a && !l && o && u();
|
|
1470
1470
|
const c = o && !l && !a ? Pa(o, s) : ot(0), f = r.left + s.scrollLeft - i.x - c.x, p = r.top + s.scrollTop - i.y - c.y;
|
|
@@ -1565,83 +1565,83 @@ function Il(e, t) {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
function si(e, t, n) {
|
|
1567
1567
|
n === void 0 && (n = {});
|
|
1568
|
-
const l = n.whileElementsMounted, o =
|
|
1569
|
-
var
|
|
1570
|
-
return (
|
|
1571
|
-
}), a =
|
|
1572
|
-
var
|
|
1573
|
-
return (
|
|
1574
|
-
}), s =
|
|
1575
|
-
var
|
|
1576
|
-
return (
|
|
1577
|
-
}), i =
|
|
1578
|
-
var
|
|
1579
|
-
return (
|
|
1580
|
-
}), u =
|
|
1581
|
-
const
|
|
1582
|
-
position:
|
|
1568
|
+
const l = n.whileElementsMounted, o = v(() => {
|
|
1569
|
+
var $;
|
|
1570
|
+
return ($ = qt(n.open)) != null ? $ : !0;
|
|
1571
|
+
}), a = v(() => qt(n.middleware)), r = v(() => {
|
|
1572
|
+
var $;
|
|
1573
|
+
return ($ = qt(n.placement)) != null ? $ : "bottom";
|
|
1574
|
+
}), s = v(() => {
|
|
1575
|
+
var $;
|
|
1576
|
+
return ($ = qt(n.strategy)) != null ? $ : "absolute";
|
|
1577
|
+
}), i = v(() => {
|
|
1578
|
+
var $;
|
|
1579
|
+
return ($ = qt(n.transform)) != null ? $ : !0;
|
|
1580
|
+
}), u = v(() => Al(e.value)), c = v(() => Al(t.value)), f = P(0), p = P(0), m = P(s.value), h = P(r.value), y = el({}), F = P(!1), g = v(() => {
|
|
1581
|
+
const $ = {
|
|
1582
|
+
position: m.value,
|
|
1583
1583
|
left: "0",
|
|
1584
1584
|
top: "0"
|
|
1585
1585
|
};
|
|
1586
1586
|
if (!c.value)
|
|
1587
|
-
return
|
|
1587
|
+
return $;
|
|
1588
1588
|
const C = Il(c.value, f.value), V = Il(c.value, p.value);
|
|
1589
1589
|
return i.value ? {
|
|
1590
|
-
|
|
1590
|
+
...$,
|
|
1591
1591
|
transform: "translate(" + C + "px, " + V + "px)",
|
|
1592
1592
|
...Ra(c.value) >= 1.5 && {
|
|
1593
1593
|
willChange: "transform"
|
|
1594
1594
|
}
|
|
1595
1595
|
} : {
|
|
1596
|
-
position:
|
|
1596
|
+
position: m.value,
|
|
1597
1597
|
left: C + "px",
|
|
1598
1598
|
top: V + "px"
|
|
1599
1599
|
};
|
|
1600
1600
|
});
|
|
1601
1601
|
let S;
|
|
1602
|
-
function
|
|
1602
|
+
function R() {
|
|
1603
1603
|
if (u.value == null || c.value == null)
|
|
1604
1604
|
return;
|
|
1605
|
-
const
|
|
1605
|
+
const $ = o.value;
|
|
1606
1606
|
oi(u.value, c.value, {
|
|
1607
1607
|
middleware: a.value,
|
|
1608
1608
|
placement: r.value,
|
|
1609
1609
|
strategy: s.value
|
|
1610
1610
|
}).then((C) => {
|
|
1611
|
-
f.value = C.x, p.value = C.y,
|
|
1611
|
+
f.value = C.x, p.value = C.y, m.value = C.strategy, h.value = C.placement, y.value = C.middlewareData, F.value = $ !== !1;
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function T() {
|
|
1615
1615
|
typeof S == "function" && (S(), S = 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
|
-
S = l(u.value, c.value,
|
|
1623
|
+
S = l(u.value, c.value, R);
|
|
1624
1624
|
return;
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
1627
|
function _() {
|
|
1628
1628
|
o.value || (F.value = !1);
|
|
1629
1629
|
}
|
|
1630
|
-
return re([a, r, s, o],
|
|
1630
|
+
return re([a, r, s, o], R, {
|
|
1631
1631
|
flush: "sync"
|
|
1632
1632
|
}), re([u, c], k, {
|
|
1633
1633
|
flush: "sync"
|
|
1634
1634
|
}), re(o, _, {
|
|
1635
1635
|
flush: "sync"
|
|
1636
|
-
}), xo() && So(
|
|
1636
|
+
}), xo() && So(T), {
|
|
1637
1637
|
x: Dt(f),
|
|
1638
1638
|
y: Dt(p),
|
|
1639
|
-
strategy: Dt(
|
|
1639
|
+
strategy: Dt(m),
|
|
1640
1640
|
placement: Dt(h),
|
|
1641
1641
|
middlewareData: Dt(y),
|
|
1642
1642
|
isPositioned: Dt(F),
|
|
1643
1643
|
floatingStyles: g,
|
|
1644
|
-
update:
|
|
1644
|
+
update: R
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
1647
|
const ii = { style: { width: "fit-content" } }, La = /* @__PURE__ */ ne({
|
|
@@ -1657,14 +1657,15 @@ const ii = { style: { width: "fit-content" } }, La = /* @__PURE__ */ ne({
|
|
|
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 = Fe(e, "modelValue"), l =
|
|
1668
|
+
const t = e, n = Fe(e, "modelValue"), l = P(null), o = P(null), a = P(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 ii = { style: { width: "fit-content" } }, La = /* @__PURE__ */ ne({
|
|
|
1688
1689
|
strategy: t.positioningStrategy,
|
|
1689
1690
|
middleware: u
|
|
1690
1691
|
});
|
|
1691
|
-
re(n, (
|
|
1692
|
-
|
|
1692
|
+
re(n, (T) => {
|
|
1693
|
+
T && o.value && a.value && f();
|
|
1693
1694
|
});
|
|
1694
|
-
const p = gr(o),
|
|
1695
|
+
const p = gr(o), m = Fl(() => {
|
|
1695
1696
|
n.value && f();
|
|
1696
1697
|
}, 5);
|
|
1697
|
-
re([p.top, p.left, p.width, p.height],
|
|
1698
|
-
const h =
|
|
1698
|
+
re([p.top, p.left, p.width, p.height], m);
|
|
1699
|
+
const h = v(() => ({
|
|
1699
1700
|
...c.value,
|
|
1700
1701
|
zIndex: t.zIndex ?? 10
|
|
1701
1702
|
})), y = Fl(
|
|
1702
|
-
(
|
|
1703
|
-
n.value =
|
|
1703
|
+
(T) => {
|
|
1704
|
+
n.value = T;
|
|
1704
1705
|
},
|
|
1705
1706
|
() => t.delay
|
|
1706
|
-
), F =
|
|
1707
|
+
), F = v(() => {
|
|
1708
|
+
const T = [".pv-floating", ".p-datepicker-panel"];
|
|
1709
|
+
return t.ignoreClickOutsideClasses && T.push(...t.ignoreClickOutsideClasses.map((k) => `.${k}`)), T;
|
|
1710
|
+
}), g = v(() => t.showOnHover ? t.disableInteractive ? r.value : r.value || s.value : !1), S = () => {
|
|
1707
1711
|
t.showOnHover || y(!n.value);
|
|
1708
|
-
},
|
|
1712
|
+
}, R = () => {
|
|
1709
1713
|
t.disableClickOutsideToClose || y(!1);
|
|
1710
1714
|
};
|
|
1711
|
-
return re(
|
|
1712
|
-
t.showOnHover && y(
|
|
1713
|
-
}), (
|
|
1715
|
+
return re(g, (T) => {
|
|
1716
|
+
t.showOnHover && y(T);
|
|
1717
|
+
}), (T, k) => He((d(), x("div", ii, [
|
|
1714
1718
|
M("div", {
|
|
1715
1719
|
ref_key: "triggerWrapper",
|
|
1716
1720
|
ref: l,
|
|
1717
|
-
onClick:
|
|
1721
|
+
onClick: S
|
|
1718
1722
|
}, [
|
|
1719
|
-
Ce(
|
|
1723
|
+
Ce(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 ii = { style: { width: "fit-content" } }, La = /* @__PURE__ */ ne({
|
|
|
1729
1733
|
ref: a,
|
|
1730
1734
|
style: Pe(h.value)
|
|
1731
1735
|
}, [
|
|
1732
|
-
Ce(
|
|
1736
|
+
Ce(T.$slots, "content")
|
|
1733
1737
|
], 4), [
|
|
1734
1738
|
[tl, n.value]
|
|
1735
1739
|
])
|
|
1736
1740
|
], 8, ["to", "disabled"])) : I("", !0)
|
|
1737
1741
|
])), [
|
|
1738
|
-
[z(On), [
|
|
1742
|
+
[z(On), [R, { ignore: F.value }]]
|
|
1739
1743
|
]);
|
|
1740
1744
|
}
|
|
1741
1745
|
}), ui = ["onClick", "data-active"], ci = /* @__PURE__ */ ne({
|
|
@@ -1808,12 +1812,12 @@ const mi = {
|
|
|
1808
1812
|
toCamelCase: { type: Boolean, default: !0 }
|
|
1809
1813
|
},
|
|
1810
1814
|
setup(e) {
|
|
1811
|
-
const t = e, n =
|
|
1815
|
+
const t = e, n = P(!0), l = v(() => as[t.size] || "32px"), o = v(() => ({
|
|
1812
1816
|
"pv-icon": n.value,
|
|
1813
1817
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1814
|
-
})), a =
|
|
1818
|
+
})), a = v(() => ({
|
|
1815
1819
|
width: l.value
|
|
1816
|
-
})), r =
|
|
1820
|
+
})), r = v(() => t.toCamelCase ? vi(t.name) + ".svg" : t.name + ".svg"), s = v(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${r.value}`);
|
|
1817
1821
|
return re(s, () => {
|
|
1818
1822
|
n.value = !0;
|
|
1819
1823
|
}), (i, u) => (d(), x("div", mi, [
|
|
@@ -1901,7 +1905,7 @@ const $i = ["data-style", "disabled", "title"], Oi = { class: "pv-truncate" }, P
|
|
|
1901
1905
|
},
|
|
1902
1906
|
emits: ["handle-click"],
|
|
1903
1907
|
setup(e) {
|
|
1904
|
-
const t = e, n =
|
|
1908
|
+
const t = e, n = v(() => {
|
|
1905
1909
|
switch (t.size) {
|
|
1906
1910
|
case "lg":
|
|
1907
1911
|
return "pv-tag-lg";
|
|
@@ -1945,7 +1949,7 @@ const $i = ["data-style", "disabled", "title"], Oi = { class: "pv-truncate" }, P
|
|
|
1945
1949
|
}),
|
|
1946
1950
|
emits: ["update:modelValue"],
|
|
1947
1951
|
setup(e, { expose: t }) {
|
|
1948
|
-
const n = e, l = ht("search-input"), o = Fe(e, "modelValue"), a =
|
|
1952
|
+
const n = e, l = ht("search-input"), o = Fe(e, "modelValue"), a = v(() => ({
|
|
1949
1953
|
"pv-input-search": !0,
|
|
1950
1954
|
"pv-full-width": !0,
|
|
1951
1955
|
"pv-input-padded-end": !0
|
|
@@ -1994,7 +1998,7 @@ function Yn(e, t = {}) {
|
|
|
1994
1998
|
let c = typeof u;
|
|
1995
1999
|
if (c === "string" || c === "number") i.push(u);
|
|
1996
2000
|
else if (c === "object") {
|
|
1997
|
-
let f = Array.isArray(u) ? n(l, u) : Object.entries(u).map(([p,
|
|
2001
|
+
let f = Array.isArray(u) ? n(l, u) : Object.entries(u).map(([p, m]) => l === "style" && (m || m === 0) ? `${p.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}:${m}` : m ? p : void 0);
|
|
1998
2002
|
i = f.length ? i.concat(f.filter((p) => !!p)) : i;
|
|
1999
2003
|
}
|
|
2000
2004
|
}
|
|
@@ -2120,13 +2124,13 @@ function za(e, t) {
|
|
|
2120
2124
|
function n(r, s) {
|
|
2121
2125
|
let i = [], u = 0, c = "", f = null, p = 0;
|
|
2122
2126
|
for (; u <= r.length; ) {
|
|
2123
|
-
let
|
|
2124
|
-
if ((
|
|
2127
|
+
let m = r[u];
|
|
2128
|
+
if ((m === '"' || m === "'" || m === "`") && r[u - 1] !== "\\" && (f = f === m ? null : m), !f && (m === "(" && p++, m === ")" && p--, (m === "," || u === r.length) && p === 0)) {
|
|
2125
2129
|
let h = c.trim();
|
|
2126
2130
|
h.startsWith("dt(") ? i.push(za(h, s)) : i.push(l(h)), c = "", u++;
|
|
2127
2131
|
continue;
|
|
2128
2132
|
}
|
|
2129
|
-
|
|
2133
|
+
m !== void 0 && (c += m), u++;
|
|
2130
2134
|
}
|
|
2131
2135
|
return i;
|
|
2132
2136
|
}
|
|
@@ -2171,7 +2175,7 @@ function Yi(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
|
|
2178
|
+
let m = c[p], h = Hi(m), y = Ft(p, a) ? Qn(f) : Qn(f, Ia(p));
|
|
2175
2179
|
if (Wt(h)) i.push({ node: h, path: y });
|
|
2176
2180
|
else {
|
|
2177
2181
|
let F = Ga(y), g = qa(h, y, l, [a]);
|
|
@@ -2204,21 +2208,21 @@ var Qe = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
2204
2208
|
return Yi(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:
|
|
2208
|
-
if (ke(p) &&
|
|
2209
|
-
let { primitive: k, semantic: _, extend:
|
|
2210
|
-
h = this.transformCSS(e, je, "light", "variable",
|
|
2211
|
-
let ct = this.transformCSS(e, `${st}${tt}`, "light", "variable",
|
|
2211
|
+
let { preset: p, options: m } = t, h, y, F, g, S, R, T;
|
|
2212
|
+
if (ke(p) && m.transform !== "strict") {
|
|
2213
|
+
let { primitive: k, semantic: _, extend: $ } = p, C = _ || {}, { colorScheme: V } = C, O = dt(C, ["colorScheme"]), L = $ || {}, { colorScheme: N } = L, K = dt(L, ["colorScheme"]), X = V || {}, { dark: ee } = X, ue = dt(X, ["dark"]), G = N || {}, { dark: W } = G, B = dt(G, ["dark"]), ae = ke(k) ? this._toVariables({ primitive: k }, m) : {}, fe = ke(O) ? this._toVariables({ semantic: O }, m) : {}, he = ke(ue) ? this._toVariables({ light: ue }, m) : {}, J = ke(ee) ? this._toVariables({ dark: ee }, m) : {}, ce = ke(K) ? this._toVariables({ semantic: K }, m) : {}, xe = ke(B) ? this._toVariables({ light: B }, m) : {}, Ee = ke(W) ? this._toVariables({ dark: W }, m) : {}, [je, De] = [(a = ae.declarations) != null ? a : "", ae.tokens], [st, Ue] = [(r = fe.declarations) != null ? r : "", fe.tokens || []], [tt, We] = [(s = he.declarations) != null ? s : "", he.tokens || []], [Be, gt] = [(i = J.declarations) != null ? i : "", J.tokens || []], [ft, it] = [(u = ce.declarations) != null ? u : "", ce.tokens || []], [Re, ut] = [(c = xe.declarations) != null ? c : "", xe.tokens || []], [bt, Ye] = [(f = Ee.declarations) != null ? f : "", Ee.tokens || []];
|
|
2214
|
+
h = this.transformCSS(e, je, "light", "variable", m, l, o), y = De;
|
|
2215
|
+
let ct = this.transformCSS(e, `${st}${tt}`, "light", "variable", m, l, o), nt = this.transformCSS(e, `${Be}`, "dark", "variable", m, l, o);
|
|
2212
2216
|
F = `${ct}${nt}`, g = [.../* @__PURE__ */ new Set([...Ue, ...We, ...gt])];
|
|
2213
|
-
let j = this.transformCSS(e, `${ft}${Re}color-scheme:light`, "light", "variable",
|
|
2214
|
-
S = `${j}${Z}`,
|
|
2217
|
+
let j = this.transformCSS(e, `${ft}${Re}color-scheme:light`, "light", "variable", m, l, o), Z = this.transformCSS(e, `${bt}color-scheme:dark`, "dark", "variable", m, l, o);
|
|
2218
|
+
S = `${j}${Z}`, R = [.../* @__PURE__ */ new Set([...it, ...ut, ...Ye])], T = mt(p.css, { dt: kt });
|
|
2215
2219
|
}
|
|
2216
|
-
return { primitive: { css: h, tokens: y }, semantic: { css: F, tokens: g }, global: { css: S, tokens:
|
|
2220
|
+
return { primitive: { css: h, tokens: y }, semantic: { css: F, tokens: g }, global: { css: S, 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 (ke(t) && n.transform !== "strict") {
|
|
2221
|
-
let
|
|
2225
|
+
let m = e.replace("-directive", ""), h = t, { colorScheme: y, extend: F, css: g } = h, S = dt(h, ["colorScheme", "extend", "css"]), R = F || {}, { colorScheme: T } = R, k = dt(R, ["colorScheme"]), _ = y || {}, { dark: $ } = _, C = dt(_, ["dark"]), V = T || {}, { dark: O } = V, L = dt(V, ["dark"]), N = ke(S) ? this._toVariables({ [m]: Ze(Ze({}, S), k) }, n) : {}, K = ke(C) ? this._toVariables({ [m]: Ze(Ze({}, C), L) }, n) : {}, X = ke($) ? this._toVariables({ [m]: Ze(Ze({}, $), O) }, n) : {}, [ee, ue] = [(s = N.declarations) != null ? s : "", N.tokens || []], [G, W] = [(i = K.declarations) != null ? i : "", K.tokens || []], [B, ae] = [(u = X.declarations) != null ? u : "", X.tokens || []], fe = this.transformCSS(m, `${ee}${G}`, "light", "variable", n, o, a, r), he = this.transformCSS(m, B, "dark", "variable", n, o, a, r);
|
|
2222
2226
|
c = `${fe}${he}`, f = [.../* @__PURE__ */ new Set([...ue, ...W, ...ae])], p = mt(g, { dt: kt });
|
|
2223
2227
|
}
|
|
2224
2228
|
return { css: c, tokens: f, style: p };
|
|
@@ -2258,26 +2262,26 @@ var Qe = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
2258
2262
|
let c = this.value;
|
|
2259
2263
|
if (typeof this.value == "string" && en.test(this.value)) {
|
|
2260
2264
|
let f = this.value.trim().replace(en, (p) => {
|
|
2261
|
-
var
|
|
2265
|
+
var m;
|
|
2262
2266
|
let h = p.slice(1, -1), y = this.tokens[h];
|
|
2263
2267
|
if (!y) return console.warn(`Token not found for path: ${h}`), "__UNRESOLVED__";
|
|
2264
2268
|
let F = y.computed(s, i, u);
|
|
2265
|
-
return Array.isArray(F) && F.length === 2 ? `light-dark(${F[0].value},${F[1].value})` : (
|
|
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 = Ea.test(f.replace(Na, "0")) ? `calc(${f})` : f;
|
|
2268
2272
|
}
|
|
2269
2273
|
return pl(i.binding) && delete i.binding, u.pop(), { colorScheme: s, path: this.path, paths: i, value: c.includes("__UNRESOLVED__") ? void 0 : c };
|
|
2270
2274
|
}, r = (s, i, u) => {
|
|
2271
2275
|
Object.entries(s).forEach(([c, f]) => {
|
|
2272
|
-
let p = Ft(c, t.variable.excludedKeyRegex) ? i : i ? `${i}.${El(c)}` : El(c),
|
|
2273
|
-
Wt(f) ? r(f, p,
|
|
2276
|
+
let p = Ft(c, t.variable.excludedKeyRegex) ? i : i ? `${i}.${El(c)}` : El(c), m = u ? `${u}.${c}` : c;
|
|
2277
|
+
Wt(f) ? r(f, p, m) : (o[p] || (o[p] = { paths: [], computed: (h, y = {}, F = []) => {
|
|
2274
2278
|
if (o[p].paths.length === 1) return o[p].paths[0].computed(o[p].paths[0].scheme, y.binding, F);
|
|
2275
2279
|
if (h && h !== "none") for (let g = 0; g < o[p].paths.length; g++) {
|
|
2276
2280
|
let S = o[p].paths[g];
|
|
2277
2281
|
if (S.scheme === h) return S.computed(h, y.binding, F);
|
|
2278
2282
|
}
|
|
2279
2283
|
return o[p].paths.map((g) => g.computed(g.scheme, y[g.scheme], F));
|
|
2280
|
-
} }), o[p].paths.push({ path:
|
|
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
|
};
|
|
2283
2287
|
return r(e, n, l), o;
|
|
@@ -2546,11 +2550,11 @@ function eu(e) {
|
|
|
2546
2550
|
}
|
|
2547
2551
|
var tu = 0;
|
|
2548
2552
|
function nu(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 = P(!1), l = P(e), o = P(null), a = Ai() ? 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(++tu) : p, h = t.id, y = h === void 0 ? void 0 : h, F = t.media, g = F === void 0 ? void 0 : F, S = t.nonce, R = S === void 0 ? void 0 : S, T = t.first, k = T === void 0 ? !1 : T, _ = t.onMounted, $ = _ === void 0 ? void 0 : _, C = t.onUpdated, V = C === void 0 ? void 0 : C, O = t.onLoad, L = O === void 0 ? void 0 : O, N = t.props, K = N === void 0 ? {} : N, X = function() {
|
|
2550
2554
|
}, ee = function(W) {
|
|
2551
2555
|
var B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2552
2556
|
if (s) {
|
|
2553
|
-
var ae = Gl(Gl({}, K), B), fe = ae.name ||
|
|
2557
|
+
var ae = Gl(Gl({}, K), B), fe = ae.name || m, he = ae.id || y, J = ae.nonce || R;
|
|
2554
2558
|
o.value = s.querySelector('style[data-primevue-style-id="'.concat(fe, '"]')) || s.getElementById(he) || s.createElement("style"), o.value.isConnected || (l.value = W || e, Yn(o.value, {
|
|
2555
2559
|
type: "text/css",
|
|
2556
2560
|
id: he,
|
|
@@ -2560,7 +2564,7 @@ function nu(e) {
|
|
|
2560
2564
|
return L?.(ce, {
|
|
2561
2565
|
name: fe
|
|
2562
2566
|
});
|
|
2563
|
-
},
|
|
2567
|
+
}, $?.(fe)), !n.value && (X = re(l, function(ce) {
|
|
2564
2568
|
o.value.textContent = ce, V?.(fe);
|
|
2565
2569
|
}, {
|
|
2566
2570
|
immediate: !0
|
|
@@ -2571,7 +2575,7 @@ function nu(e) {
|
|
|
2571
2575
|
};
|
|
2572
2576
|
return u && !f && eu(ee), {
|
|
2573
2577
|
id: y,
|
|
2574
|
-
name:
|
|
2578
|
+
name: m,
|
|
2575
2579
|
el: o,
|
|
2576
2580
|
css: l,
|
|
2577
2581
|
unload: ue,
|
|
@@ -2811,15 +2815,15 @@ function vu() {
|
|
|
2811
2815
|
k === void 0 && (k = "");
|
|
2812
2816
|
var _ = k.match(l);
|
|
2813
2817
|
if (!_) return null;
|
|
2814
|
-
var
|
|
2818
|
+
var $ = ("" + _[0]).match(o) || ["-", 0, 0], C = $[0], V = 60 * +$[1] + +$[2];
|
|
2815
2819
|
return V === 0 ? 0 : C === "+" ? V : -V;
|
|
2816
2820
|
})(y), y === null)) return this;
|
|
2817
2821
|
var S = Math.abs(y) <= 16 ? 60 * y : y;
|
|
2818
2822
|
if (S === 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 = S, R.$u = !1, R;
|
|
2825
|
+
var T = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
2826
|
+
return (R = this.local().add(S + T, n)).$offset = S, R.$x.$localOffset = T, R;
|
|
2823
2827
|
};
|
|
2824
2828
|
var p = i.format;
|
|
2825
2829
|
i.format = function(y) {
|
|
@@ -2835,15 +2839,15 @@ function vu() {
|
|
|
2835
2839
|
}, i.toString = function() {
|
|
2836
2840
|
return this.toDate().toUTCString();
|
|
2837
2841
|
};
|
|
2838
|
-
var
|
|
2842
|
+
var m = i.toDate;
|
|
2839
2843
|
i.toDate = function(y) {
|
|
2840
|
-
return y === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
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 h = i.diff;
|
|
2843
2847
|
i.diff = function(y, F, g) {
|
|
2844
2848
|
if (y && this.$u === y.$u) return h.call(this, y, F, g);
|
|
2845
|
-
var S = this.local(),
|
|
2846
|
-
return h.call(S,
|
|
2849
|
+
var S = this.local(), R = s(y).local();
|
|
2850
|
+
return h.call(S, R, F, g);
|
|
2847
2851
|
};
|
|
2848
2852
|
};
|
|
2849
2853
|
}));
|
|
@@ -2859,51 +2863,51 @@ function gu() {
|
|
|
2859
2863
|
})(yu, (function() {
|
|
2860
2864
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, l = {};
|
|
2861
2865
|
return function(o, a, r) {
|
|
2862
|
-
var s, i = function(p,
|
|
2866
|
+
var s, i = function(p, m, h) {
|
|
2863
2867
|
h === void 0 && (h = {});
|
|
2864
2868
|
var y = new Date(p), F = (function(g, S) {
|
|
2865
2869
|
S === void 0 && (S = {});
|
|
2866
|
-
var
|
|
2867
|
-
return k || (k = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: g, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName:
|
|
2868
|
-
})(
|
|
2870
|
+
var R = S.timeZoneName || "short", T = g + "|" + R, k = l[T];
|
|
2871
|
+
return k || (k = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: g, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: R }), l[T] = k), k;
|
|
2872
|
+
})(m, h);
|
|
2869
2873
|
return F.formatToParts(y);
|
|
2870
|
-
}, u = function(p,
|
|
2871
|
-
for (var h = i(p,
|
|
2872
|
-
var g = h[F], S = g.type,
|
|
2873
|
-
|
|
2874
|
+
}, u = function(p, m) {
|
|
2875
|
+
for (var h = i(p, m), y = [], F = 0; F < h.length; F += 1) {
|
|
2876
|
+
var g = h[F], S = g.type, R = g.value, T = n[S];
|
|
2877
|
+
T >= 0 && (y[T] = parseInt(R, 10));
|
|
2874
2878
|
}
|
|
2875
|
-
var k = y[3], _ = k === 24 ? 0 : k,
|
|
2876
|
-
return (r.utc(
|
|
2879
|
+
var k = y[3], _ = k === 24 ? 0 : k, $ = y[0] + "-" + y[1] + "-" + y[2] + " " + _ + ":" + y[4] + ":" + y[5] + ":000", C = +p;
|
|
2880
|
+
return (r.utc($).valueOf() - (C -= C % 1e3)) / 6e4;
|
|
2877
2881
|
}, c = a.prototype;
|
|
2878
|
-
c.tz = function(p,
|
|
2882
|
+
c.tz = function(p, m) {
|
|
2879
2883
|
p === void 0 && (p = s);
|
|
2880
|
-
var h, y = this.utcOffset(), F = this.toDate(), g = F.toLocaleString("en-US", { timeZone: p }), S = Math.round((F - new Date(g)) / 1e3 / 60),
|
|
2881
|
-
if (!Number(
|
|
2882
|
-
else if (h = r(g, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(
|
|
2883
|
-
var
|
|
2884
|
-
h = h.add(y -
|
|
2884
|
+
var h, y = this.utcOffset(), F = this.toDate(), g = F.toLocaleString("en-US", { timeZone: p }), S = Math.round((F - new Date(g)) / 1e3 / 60), R = 15 * -Math.round(F.getTimezoneOffset() / 15) - S;
|
|
2885
|
+
if (!Number(R)) h = this.utcOffset(0, m);
|
|
2886
|
+
else if (h = r(g, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(R, !0), m) {
|
|
2887
|
+
var T = h.utcOffset();
|
|
2888
|
+
h = h.add(y - T, "minute");
|
|
2885
2889
|
}
|
|
2886
2890
|
return h.$x.$timezone = p, h;
|
|
2887
2891
|
}, c.offsetName = function(p) {
|
|
2888
|
-
var
|
|
2892
|
+
var m = this.$x.$timezone || r.tz.guess(), h = i(this.valueOf(), m, { timeZoneName: p }).find((function(y) {
|
|
2889
2893
|
return y.type.toLowerCase() === "timezonename";
|
|
2890
2894
|
}));
|
|
2891
2895
|
return h && h.value;
|
|
2892
2896
|
};
|
|
2893
2897
|
var f = c.startOf;
|
|
2894
|
-
c.startOf = function(p,
|
|
2895
|
-
if (!this.$x || !this.$x.$timezone) return f.call(this, p,
|
|
2898
|
+
c.startOf = function(p, m) {
|
|
2899
|
+
if (!this.$x || !this.$x.$timezone) return f.call(this, p, m);
|
|
2896
2900
|
var h = r(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
2897
|
-
return f.call(h, p,
|
|
2898
|
-
}, r.tz = function(p,
|
|
2899
|
-
var y = h &&
|
|
2901
|
+
return f.call(h, p, m).tz(this.$x.$timezone, !0);
|
|
2902
|
+
}, r.tz = function(p, m, h) {
|
|
2903
|
+
var y = h && m, F = h || m || s, g = u(+r(), F);
|
|
2900
2904
|
if (typeof p != "string") return r(p).tz(F);
|
|
2901
|
-
var S = (function(_,
|
|
2902
|
-
var V = _ - 60 *
|
|
2903
|
-
if (
|
|
2904
|
-
var L = u(V -= 60 * (
|
|
2905
|
-
return
|
|
2906
|
-
})(r.utc(p, y).valueOf(), g, F),
|
|
2905
|
+
var S = (function(_, $, C) {
|
|
2906
|
+
var V = _ - 60 * $ * 1e3, O = u(V, C);
|
|
2907
|
+
if ($ === O) return [V, $];
|
|
2908
|
+
var L = u(V -= 60 * (O - $) * 1e3, C);
|
|
2909
|
+
return O === L ? [V, O] : [_ - 60 * Math.min(O, L) * 1e3, Math.max(O, L)];
|
|
2910
|
+
})(r.utc(p, y).valueOf(), g, F), R = S[0], T = S[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 ku = {
|
|
|
3139
3143
|
},
|
|
3140
3144
|
emits: ["handle-clear"],
|
|
3141
3145
|
setup(e) {
|
|
3142
|
-
const t = e, n =
|
|
3146
|
+
const t = e, n = v(() => {
|
|
3143
3147
|
const l = ["pv-flex", "pv-space-between"];
|
|
3144
3148
|
t.inverse && Ca.includes(t.variant) ? l.push(`pv-button-${t.variant}-inverse`) : l.push(`pv-button-${t.variant}`);
|
|
3145
3149
|
const o = xa(t.size);
|
|
@@ -3277,7 +3281,7 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3277
3281
|
children: {}
|
|
3278
3282
|
},
|
|
3279
3283
|
setup(e) {
|
|
3280
|
-
const t = e, n =
|
|
3284
|
+
const t = e, n = P(null), l = P(null), o = v(() => 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 Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3342
3346
|
option: {}
|
|
3343
3347
|
},
|
|
3344
3348
|
setup(e) {
|
|
3345
|
-
const t = e, n =
|
|
3349
|
+
const t = e, n = v(() => typeof t.action.icon == "function" ? t.action.icon(t.option) : t.action.icon), l = v(() => typeof t.action.isDisabled == "function" ? t.action.isDisabled(t.option) : t.action.isDisabled), o = v(() => typeof t.action.tooltipText == "function" ? t.action.tooltipText(t.option) : t.action.tooltipText), a = v(() => 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(It, { interactive: !1 }, gn({
|
|
@@ -3390,26 +3394,26 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3390
3394
|
},
|
|
3391
3395
|
emits: ["handle-selected"],
|
|
3392
3396
|
setup(e, { emit: t }) {
|
|
3393
|
-
const n = e, l =
|
|
3397
|
+
const n = e, l = v(() => {
|
|
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 = v(() => ({
|
|
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 = v(() => n.menuOptionConfig?.variant !== "checkbox" && n.menuOptionConfig?.variant !== "radio"), r = v(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), s = `${r.value}-${Qt()?.uid}`, i = v(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), u = v(() => `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
|
-
const
|
|
3408
|
+
const m = {
|
|
3405
3409
|
...n
|
|
3406
3410
|
};
|
|
3407
3411
|
c("handle-selected", {
|
|
3408
|
-
option:
|
|
3412
|
+
option: m,
|
|
3409
3413
|
event: p
|
|
3410
3414
|
});
|
|
3411
3415
|
};
|
|
3412
|
-
return (p,
|
|
3416
|
+
return (p, m) => (d(), x("label", {
|
|
3413
3417
|
class: se(["pv-label pv-label-hover pv-flex", l.value]),
|
|
3414
3418
|
"data-testid": u.value,
|
|
3415
3419
|
style: { cursor: "pointer" }
|
|
@@ -3460,7 +3464,7 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
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 = v(() => ({ paddingLeft: `${t.level * 12 + 12}px` })), a = v(() => t.children && t.children.length > 0 && t.level < oc), 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 = Fo("PvMenuItem", !0);
|
|
3466
3470
|
return d(), x(oe, null, [
|
|
@@ -3561,22 +3565,22 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
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 = v(() => ({
|
|
3565
3569
|
renderer: n.optionsRenderer,
|
|
3566
3570
|
action: n.optionsAction,
|
|
3567
3571
|
variant: n.optionsVariant,
|
|
3568
3572
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3569
|
-
})), o = t, a = ht("searchInputRef"), [r, s] = da(n.defaultOpen), i = Fe(e, "modelValue"), u = Fe(e, "searchInput"), c =
|
|
3573
|
+
})), o = t, a = ht("searchInputRef"), [r, s] = da(n.defaultOpen), i = Fe(e, "modelValue"), u = Fe(e, "searchInput"), c = v(() => n.menuActionsVariant === "cancel-confirm"), f = (L) => {
|
|
3570
3574
|
h.value = L, c.value || (i.value = L);
|
|
3571
3575
|
}, p = () => {
|
|
3572
3576
|
c.value && (i.value = h.value);
|
|
3573
|
-
},
|
|
3577
|
+
}, m = () => {
|
|
3574
3578
|
c.value && (h.value = i.value);
|
|
3575
3579
|
}, h = el(i.value);
|
|
3576
3580
|
ve("selectedItems", h);
|
|
3577
3581
|
const y = () => {
|
|
3578
3582
|
u.value = "", r.value = !1;
|
|
3579
|
-
}, F =
|
|
3583
|
+
}, F = v(() => {
|
|
3580
3584
|
const L = n.size === "lg" ? 24 : 30;
|
|
3581
3585
|
return n.overlayTrigger ? -L : void 0;
|
|
3582
3586
|
});
|
|
@@ -3586,11 +3590,11 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3586
3590
|
h.value = L;
|
|
3587
3591
|
}
|
|
3588
3592
|
), re(r, (L) => {
|
|
3589
|
-
L ? (
|
|
3593
|
+
L ? (m(), Tt(() => {
|
|
3590
3594
|
n.overlayTrigger && !n.disableSearchInput && a.value?.input?.focus(), o("dropdown-open");
|
|
3591
|
-
})) : (
|
|
3595
|
+
})) : (m(), o("dropdown-closed"));
|
|
3592
3596
|
});
|
|
3593
|
-
const g =
|
|
3597
|
+
const g = v(() => {
|
|
3594
3598
|
if (u.value === "") return n.options;
|
|
3595
3599
|
const L = u.value.toLocaleLowerCase();
|
|
3596
3600
|
return n.options.filter(
|
|
@@ -3600,15 +3604,15 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3600
3604
|
const N = L.option, K = h.value, X = K.findIndex((ue) => ue.id === N.id);
|
|
3601
3605
|
let ee;
|
|
3602
3606
|
X > -1 ? ee = [...K.slice(0, X), ...K.slice(X + 1)] : ee = [...K, { ...N }], f(ee);
|
|
3603
|
-
},
|
|
3607
|
+
}, R = () => {
|
|
3604
3608
|
f(g.value);
|
|
3605
|
-
},
|
|
3609
|
+
}, T = () => {
|
|
3606
3610
|
f([]);
|
|
3607
3611
|
}, k = () => {
|
|
3608
|
-
|
|
3612
|
+
m(), y();
|
|
3609
3613
|
}, _ = () => {
|
|
3610
3614
|
p(), y();
|
|
3611
|
-
},
|
|
3615
|
+
}, $ = v(() => {
|
|
3612
3616
|
if (!n.groupings) return;
|
|
3613
3617
|
const L = /* @__PURE__ */ new Map();
|
|
3614
3618
|
n.groupings.forEach((N) => {
|
|
@@ -3621,7 +3625,7 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3621
3625
|
for (const [N, K] of L)
|
|
3622
3626
|
K.length === 0 && L.delete(N);
|
|
3623
3627
|
return Array.from(L.entries());
|
|
3624
|
-
}), C =
|
|
3628
|
+
}), C = v(() => n.groupings && u.value === ""), V = (L) => h.value.some((N) => N.id === L.id) ? !0 : null, O = v(() => ({
|
|
3625
3629
|
...n,
|
|
3626
3630
|
selectedItems: i.value,
|
|
3627
3631
|
searchInput: u.value,
|
|
@@ -3650,7 +3654,7 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3650
3654
|
showDropdown: !e.disableDropdownIcon && h.value.length === 0,
|
|
3651
3655
|
open: z(r),
|
|
3652
3656
|
"counter-value": h.value.length,
|
|
3653
|
-
onHandleClear:
|
|
3657
|
+
onHandleClear: T,
|
|
3654
3658
|
onHandleToggleDropdown: N[0] || (N[0] = (K) => z(s)())
|
|
3655
3659
|
}, null, 8, ["variant", "size", "disabled", "counterPosition", "prefixLabel", "label", "icon", "companyLogo", "showClear", "showDropdown", "open", "counter-value"])
|
|
3656
3660
|
]),
|
|
@@ -3670,10 +3674,10 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3670
3674
|
}, null, 8, ["model-value", "placeholder"])
|
|
3671
3675
|
])),
|
|
3672
3676
|
M("div", ic, [
|
|
3673
|
-
L.$slots.header ? Ce(L.$slots, "header", wt(Me({ key: 0 },
|
|
3677
|
+
L.$slots.header ? Ce(L.$slots, "header", wt(Me({ key: 0 }, O.value))) : I("", !0)
|
|
3674
3678
|
]),
|
|
3675
3679
|
g.value.length > 0 ? (d(), x(oe, { key: 1 }, [
|
|
3676
|
-
C.value ? (d(!0), x(oe, { key: 0 }, Oe(
|
|
3680
|
+
C.value ? (d(!0), x(oe, { key: 0 }, Oe($.value, ([K, X], ee) => (d(), x("div", { key: K }, [
|
|
3677
3681
|
L.$slots[K] ? Ce(L.$slots, K, { key: 0 }) : K !== "other" ? (d(), x("span", uc, te(K), 1)) : I("", !0),
|
|
3678
3682
|
M("ul", cc, [
|
|
3679
3683
|
(d(!0), x(oe, null, Oe(X, (ue) => He((d(), x("li", {
|
|
@@ -3691,7 +3695,7 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3691
3695
|
[tl, V(ue) || !e.isLoading]
|
|
3692
3696
|
])), 128))
|
|
3693
3697
|
]),
|
|
3694
|
-
|
|
3698
|
+
$.value && ee !== $.value.length - 1 ? (d(), x("div", pc)) : I("", !0)
|
|
3695
3699
|
]))), 128)) : (d(), x("ul", fc, [
|
|
3696
3700
|
(d(!0), x(oe, null, Oe(g.value, (K) => (d(), x("li", {
|
|
3697
3701
|
key: K.id,
|
|
@@ -3710,16 +3714,16 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3710
3714
|
e.isLoading ? (d(), x("div", mc, [
|
|
3711
3715
|
U(Pn, { variant: "dark" })
|
|
3712
3716
|
])) : g.value.length === 0 ? (d(), x(oe, { key: 3 }, [
|
|
3713
|
-
L.$slots["no-results"] ? Ce(L.$slots, "no-results", wt(Me({ key: 0 },
|
|
3717
|
+
L.$slots["no-results"] ? Ce(L.$slots, "no-results", wt(Me({ key: 0 }, O.value))) : (d(), q(Ka, { key: 1 }))
|
|
3714
3718
|
], 64)) : I("", !0),
|
|
3715
3719
|
M("div", hc, [
|
|
3716
|
-
L.$slots.footer ? Ce(L.$slots, "footer", wt(Me({ key: 0 },
|
|
3720
|
+
L.$slots.footer ? Ce(L.$slots, "footer", wt(Me({ key: 0 }, O.value))) : I("", !0),
|
|
3717
3721
|
e.menuActionsVariant ? (d(), q(Au, {
|
|
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: _
|
|
3725
3729
|
}, null, 8, ["variant", "disabled"])) : I("", !0)
|
|
@@ -3770,7 +3774,7 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
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 = v(() => ({
|
|
3774
3778
|
renderer: n.optionsRenderer,
|
|
3775
3779
|
action: n.optionsAction,
|
|
3776
3780
|
variant: n.optionsVariant,
|
|
@@ -3781,21 +3785,21 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3781
3785
|
re(a, (y) => {
|
|
3782
3786
|
o(y ? "dropdown-open" : "dropdown-closed");
|
|
3783
3787
|
});
|
|
3784
|
-
const i =
|
|
3788
|
+
const i = v(() => r.value && r.value.text ? r.value.text : n.label), u = v(() => {
|
|
3785
3789
|
if (r.value && r.value.icon)
|
|
3786
3790
|
return r.value.icon;
|
|
3787
|
-
}), c =
|
|
3791
|
+
}), c = v(() => {
|
|
3788
3792
|
if (r.value && r.value.companyName)
|
|
3789
3793
|
return r.value.companyName;
|
|
3790
|
-
}), f =
|
|
3794
|
+
}), f = v(() => {
|
|
3791
3795
|
const y = s.value.trim().toLowerCase();
|
|
3792
3796
|
if (!y) return n.options;
|
|
3793
3797
|
const F = (g) => {
|
|
3794
3798
|
const S = [];
|
|
3795
|
-
for (const
|
|
3796
|
-
const
|
|
3797
|
-
|
|
3798
|
-
...
|
|
3799
|
+
for (const R of g) {
|
|
3800
|
+
const T = R.text.toLowerCase().includes(y) || R.searchText?.toLowerCase().includes(y), k = F(R.children || []);
|
|
3801
|
+
T ? S.push({
|
|
3802
|
+
...R,
|
|
3799
3803
|
searchText: y,
|
|
3800
3804
|
children: k
|
|
3801
3805
|
}) : S.push(...k);
|
|
@@ -3810,7 +3814,7 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3810
3814
|
return;
|
|
3811
3815
|
}
|
|
3812
3816
|
r.value?.id === F.id ? r.value = void 0 : r.value = F, h();
|
|
3813
|
-
},
|
|
3817
|
+
}, m = () => {
|
|
3814
3818
|
r.value = void 0;
|
|
3815
3819
|
}, h = () => {
|
|
3816
3820
|
a.value = !1, s.value = "";
|
|
@@ -3840,7 +3844,7 @@ const Ka = /* @__PURE__ */ Ve(Nu, [["render", qu]]), zu = ["data-style"], Hu = [
|
|
|
3840
3844
|
"counter-value": r.value?.secondaryText && typeof r.value.secondaryText == "number" ? r.value.secondaryText : void 0,
|
|
3841
3845
|
"counter-badge-variant": e.counterBadgeVariant,
|
|
3842
3846
|
isLoading: e.isLoading,
|
|
3843
|
-
onHandleClear:
|
|
3847
|
+
onHandleClear: m
|
|
3844
3848
|
}, null, 8, ["variant", "inverse", "size", "disabled", "prefixLabel", "label", "icon", "companyLogo", "open", "counter-position", "counter-value", "counter-badge-variant", "isLoading"])
|
|
3845
3849
|
]),
|
|
3846
3850
|
content: pe(() => [
|
|
@@ -3903,7 +3907,7 @@ const ml = Symbol("FilterStoreKey"), wn = Symbol("FocusStoreKey"), Ua = Symbol("
|
|
|
3903
3907
|
enableFocusView: { type: Boolean }
|
|
3904
3908
|
},
|
|
3905
3909
|
setup(e) {
|
|
3906
|
-
const t = de(Pt,
|
|
3910
|
+
const t = de(Pt, P(null)), n = de(An, P([])), l = de(hl, P([])), o = e;
|
|
3907
3911
|
re(
|
|
3908
3912
|
l,
|
|
3909
3913
|
// Directly watch the ref
|
|
@@ -3914,13 +3918,13 @@ const ml = Symbol("FilterStoreKey"), wn = Symbol("FocusStoreKey"), Ua = Symbol("
|
|
|
3914
3918
|
);
|
|
3915
3919
|
const a = (h) => l.value.includes(h || ""), r = (h, y) => {
|
|
3916
3920
|
t.value && (y ? t.value.addRowGroupColumns([h]) : t.value.removeRowGroupColumns([h]));
|
|
3917
|
-
}, s =
|
|
3921
|
+
}, s = v(() => ({
|
|
3918
3922
|
"pv-hide": n.value.length === 0
|
|
3919
|
-
})), i =
|
|
3923
|
+
})), i = v(() => o.rowGroupLimit ? l.value.length >= o.rowGroupLimit : !1), u = v(() => l.value.map(
|
|
3920
3924
|
(h) => n.value.find((y) => y.field === h)
|
|
3921
|
-
).filter((h) => h !== void 0)), c =
|
|
3925
|
+
).filter((h) => h !== void 0)), c = v(() => n.value.filter(
|
|
3922
3926
|
(h) => !l.value.includes(h.field)
|
|
3923
|
-
)), f =
|
|
3927
|
+
)), f = v(() => {
|
|
3924
3928
|
const h = {
|
|
3925
3929
|
label: "",
|
|
3926
3930
|
value: "divider"
|
|
@@ -3936,7 +3940,7 @@ const ml = Symbol("FilterStoreKey"), wn = Symbol("FocusStoreKey"), Ua = Symbol("
|
|
|
3936
3940
|
})
|
|
3937
3941
|
);
|
|
3938
3942
|
return [...y, h, ...F];
|
|
3939
|
-
}), p = (h) => `group-by-list-item-${h}`,
|
|
3943
|
+
}), p = (h) => `group-by-list-item-${h}`, m = (h) => {
|
|
3940
3944
|
const y = h.findIndex((S) => S === "divider"), g = h.slice(0, y).slice(0, o.rowGroupLimit).map(
|
|
3941
3945
|
(S) => S.replace("group-by-list-item-", "")
|
|
3942
3946
|
);
|
|
@@ -3948,7 +3952,7 @@ const ml = Symbol("FilterStoreKey"), wn = Symbol("FocusStoreKey"), Ua = Symbol("
|
|
|
3948
3952
|
popoverCssProperties: { width: "auto" },
|
|
3949
3953
|
alignment: "right",
|
|
3950
3954
|
class: se(s.value),
|
|
3951
|
-
onListOrderUpdated:
|
|
3955
|
+
onListOrderUpdated: m
|
|
3952
3956
|
}, {
|
|
3953
3957
|
trigger: pe(() => [
|
|
3954
3958
|
M("div", Pc, [
|
|
@@ -4003,12 +4007,12 @@ function Ec(e, t) {
|
|
|
4003
4007
|
return d(), x("div", _c);
|
|
4004
4008
|
}
|
|
4005
4009
|
const Nc = /* @__PURE__ */ Ve(Bc, [["render", Ec]]), gl = (e = null) => {
|
|
4006
|
-
const t =
|
|
4010
|
+
const t = P(e?.focuses || []), n = P(e?.focusType || null), l = v(() => t.value), o = v(() => n.value), a = (p) => {
|
|
4007
4011
|
p !== n.value && (n.value = p || null, t.value = []);
|
|
4008
4012
|
}, r = (p) => {
|
|
4009
4013
|
t.value = p;
|
|
4010
|
-
}, s = (p) => n.value !== null && p.includes(n.value), i = (p,
|
|
4011
|
-
t.value = t.value.filter((
|
|
4014
|
+
}, s = (p) => n.value !== null && p.includes(n.value), i = (p, m) => !p || !m ? !1 : t.value.includes(p) && n.value === m, u = (p) => {
|
|
4015
|
+
t.value = t.value.filter((m) => m !== p);
|
|
4012
4016
|
};
|
|
4013
4017
|
return {
|
|
4014
4018
|
computedFocuses: l,
|
|
@@ -4041,34 +4045,34 @@ const Nc = /* @__PURE__ */ Ve(Bc, [["render", Ec]]), gl = (e = null) => {
|
|
|
4041
4045
|
params: {}
|
|
4042
4046
|
},
|
|
4043
4047
|
setup(e) {
|
|
4044
|
-
const t = e, n = de(hl,
|
|
4045
|
-
value:
|
|
4048
|
+
const t = e, n = de(hl, P([])), l = de(Qa, P(null)), o = de(yl, P({})), a = Cr(t.params, "rowNode"), r = v(() => !t.params.displayBaseAggregationsOnly || a.value.level === n.value.length - 1), s = v(() => t.params.rowNode.group), i = (S, R) => S ? S({
|
|
4049
|
+
value: R,
|
|
4046
4050
|
data: a.value.data,
|
|
4047
4051
|
node: a.value,
|
|
4048
4052
|
api: t.params.api
|
|
4049
|
-
}) :
|
|
4053
|
+
}) : R, u = v(() => {
|
|
4050
4054
|
if (!l.value) return "";
|
|
4051
|
-
const S = l.value.getColId() || "",
|
|
4052
|
-
return S &&
|
|
4053
|
-
}), c =
|
|
4054
|
-
const S = a.value.rowIndex,
|
|
4055
|
-
return S != null &&
|
|
4055
|
+
const S = l.value.getColId() || "", R = l.value.getColDef().valueFormatter, T = a.value;
|
|
4056
|
+
return S && T && T.data && S in T.data ? i(R, T.data[S]) : "";
|
|
4057
|
+
}), c = v(() => a.value.data && a.value.data.groupedRecordCount ? a.value.data.groupedRecordCount || 0 : a.value.allChildrenCount || 0), f = v(() => {
|
|
4058
|
+
const S = a.value.rowIndex, R = a.value.parent?.rowIndex;
|
|
4059
|
+
return S != null && R != null ? S - R : null;
|
|
4056
4060
|
}), p = (S) => {
|
|
4057
|
-
const
|
|
4058
|
-
|
|
4059
|
-
}, { isFocused:
|
|
4061
|
+
const R = S.node.expanded, T = S.node.rowIndex;
|
|
4062
|
+
T != null && (o.value[T] = R);
|
|
4063
|
+
}, { isFocused: m, computedFocuses: h, removeFocus: y } = bl(), F = v(() => m(a.value.key, a.value.field) ? "pv-flex" : ""), g = v(() => {
|
|
4060
4064
|
const S = h.value;
|
|
4061
4065
|
return a.value.key && S.includes(a.value.key);
|
|
4062
4066
|
});
|
|
4063
4067
|
return Ke(() => {
|
|
4064
|
-
const S = a.value,
|
|
4065
|
-
|
|
4068
|
+
const S = a.value, R = S.rowIndex, T = S.expanded;
|
|
4069
|
+
R != null && (o.value[R] = T), a.value.addEventListener("expandedChanged", p);
|
|
4066
4070
|
}), $o(() => {
|
|
4067
4071
|
const S = a.value;
|
|
4068
4072
|
a.value.removeEventListener("expandedChanged", p);
|
|
4069
|
-
const
|
|
4070
|
-
|
|
4071
|
-
}), (S,
|
|
4073
|
+
const R = S.rowIndex;
|
|
4074
|
+
R != null && (o.value[R] = !1);
|
|
4075
|
+
}), (S, R) => (d(), x(oe, null, [
|
|
4072
4076
|
s.value ? (d(), x("div", {
|
|
4073
4077
|
key: 0,
|
|
4074
4078
|
class: se(F.value)
|
|
@@ -4093,10 +4097,10 @@ const Nc = /* @__PURE__ */ Ve(Bc, [["render", Ec]]), gl = (e = null) => {
|
|
|
4093
4097
|
class: se(F.value + " pv-text-brand"),
|
|
4094
4098
|
variant: "ghost",
|
|
4095
4099
|
"left-icon": "focus",
|
|
4096
|
-
onClick:
|
|
4100
|
+
onClick: R[0] || (R[0] = (T) => z(y)(z(a).key))
|
|
4097
4101
|
}, null, 8, ["class"])
|
|
4098
4102
|
]),
|
|
4099
|
-
"tooltip-content": pe(() => [...
|
|
4103
|
+
"tooltip-content": pe(() => [...R[1] || (R[1] = [
|
|
4100
4104
|
M("span", null, " Remove Focus ", -1)
|
|
4101
4105
|
])]),
|
|
4102
4106
|
_: 1
|
|
@@ -4383,7 +4387,7 @@ const Cl = (e) => {
|
|
|
4383
4387
|
params: {}
|
|
4384
4388
|
},
|
|
4385
4389
|
setup(e) {
|
|
4386
|
-
const t = e, n = de(yl,
|
|
4390
|
+
const t = e, n = de(yl, P({})), l = v(() => {
|
|
4387
4391
|
const f = t.params.column?.getColDef(), p = we(f).aggFuncDisplayName;
|
|
4388
4392
|
return p || (t.params.column?.getAggFunc() || "agg").toLowerCase();
|
|
4389
4393
|
}), o = () => {
|
|
@@ -4392,13 +4396,13 @@ const Cl = (e) => {
|
|
|
4392
4396
|
const p = !r.value;
|
|
4393
4397
|
f.setRowNodeExpanded(t.params.node, p), a.value && (n.value[a.value] = p);
|
|
4394
4398
|
}
|
|
4395
|
-
}, a =
|
|
4399
|
+
}, a = v(() => t.params.node?.rowIndex), r = v(() => {
|
|
4396
4400
|
let f = !1;
|
|
4397
4401
|
return a.value != null && (f = a.value in n.value ? n.value[a.value] : !1), f;
|
|
4398
|
-
}), s =
|
|
4402
|
+
}), s = v(() => r.value ? "chevron-down" : "chevron-right"), i = v(() => Gt(t.params.column?.getColDef())), u = v(() => {
|
|
4399
4403
|
const f = t.params.column?.getColDef(), p = t.params.valueFormatted || t.params.value || "";
|
|
4400
4404
|
return f && Gt(f) ? p.toLocaleString() : p;
|
|
4401
|
-
}), c =
|
|
4405
|
+
}), c = v(() => ({
|
|
4402
4406
|
"flex-direction": i.value ? "row-reverse" : "row",
|
|
4403
4407
|
"--flex-justify": "space-between"
|
|
4404
4408
|
}));
|
|
@@ -4422,21 +4426,21 @@ const Cl = (e) => {
|
|
|
4422
4426
|
], 4));
|
|
4423
4427
|
}
|
|
4424
4428
|
}), ho = () => {
|
|
4425
|
-
const e =
|
|
4426
|
-
const
|
|
4429
|
+
const e = P({}), t = P(null), n = P(null), l = P({}), o = P({}), a = P({}), r = P(0), s = P({}), i = P(void 0), u = P(void 0), c = v(() => i.value != null), f = P({}), p = P({}), m = P({}), h = P({}), y = () => {
|
|
4430
|
+
const $ = {};
|
|
4427
4431
|
return Object.entries(p.value).forEach(([C, V]) => {
|
|
4428
|
-
const
|
|
4429
|
-
|
|
4432
|
+
const O = V.filter((L) => !!L);
|
|
4433
|
+
O.length > 0 && ($[C] = {
|
|
4430
4434
|
filterType: "set",
|
|
4431
|
-
values:
|
|
4435
|
+
values: O
|
|
4432
4436
|
});
|
|
4433
|
-
}),
|
|
4434
|
-
}, F = async (
|
|
4437
|
+
}), $;
|
|
4438
|
+
}, F = async ($, C, V, O) => {
|
|
4435
4439
|
const L = h.value[C.field] || void 0, N = p.value[C.field] || [];
|
|
4436
|
-
let K =
|
|
4440
|
+
let K = O;
|
|
4437
4441
|
t.value != null && (K = y());
|
|
4438
4442
|
const X = {
|
|
4439
|
-
api:
|
|
4443
|
+
api: $,
|
|
4440
4444
|
colDef: C,
|
|
4441
4445
|
column: V,
|
|
4442
4446
|
filterModel: K,
|
|
@@ -4462,17 +4466,17 @@ const Cl = (e) => {
|
|
|
4462
4466
|
return o.value[ee] = Date.now(), s.value[ee] = !1, B.filter((ae, fe) => B.indexOf(ae) === fe);
|
|
4463
4467
|
} else
|
|
4464
4468
|
return [];
|
|
4465
|
-
}, g = (
|
|
4469
|
+
}, g = ($, C) => {
|
|
4466
4470
|
const V = [
|
|
4467
|
-
...f.value[
|
|
4468
|
-
...
|
|
4471
|
+
...f.value[$] || [],
|
|
4472
|
+
...m.value[$] || []
|
|
4469
4473
|
];
|
|
4470
|
-
return V ? V.find((
|
|
4471
|
-
}, S = (
|
|
4474
|
+
return V ? V.find((O) => O?.value === C) : null;
|
|
4475
|
+
}, S = ($, C) => {
|
|
4472
4476
|
if (!C) return {};
|
|
4473
|
-
const
|
|
4474
|
-
if (
|
|
4475
|
-
for (const L of
|
|
4477
|
+
const O = we($)?.queryColIds || [];
|
|
4478
|
+
if (O.length === 0) return {};
|
|
4479
|
+
for (const L of O) {
|
|
4476
4480
|
const N = C.metadata ? C.metadata[L] : void 0;
|
|
4477
4481
|
if (N !== void 0)
|
|
4478
4482
|
return {
|
|
@@ -4481,34 +4485,34 @@ const Cl = (e) => {
|
|
|
4481
4485
|
};
|
|
4482
4486
|
}
|
|
4483
4487
|
return {};
|
|
4484
|
-
},
|
|
4485
|
-
p.value[
|
|
4488
|
+
}, R = ($, C) => {
|
|
4489
|
+
p.value[$] = C;
|
|
4486
4490
|
const V = [];
|
|
4487
|
-
if (e.value && e.value[
|
|
4488
|
-
const L = e.value[
|
|
4491
|
+
if (e.value && e.value[$]?.values) {
|
|
4492
|
+
const L = e.value[$].values || [];
|
|
4489
4493
|
V.push(...L);
|
|
4490
4494
|
}
|
|
4491
4495
|
V.push(...C);
|
|
4492
|
-
const
|
|
4496
|
+
const O = [];
|
|
4493
4497
|
return C.forEach((L) => {
|
|
4494
|
-
const N = g(
|
|
4495
|
-
N &&
|
|
4496
|
-
}),
|
|
4497
|
-
},
|
|
4498
|
-
h.value[
|
|
4499
|
-
}, _ = (
|
|
4500
|
-
const V = /* @__PURE__ */ new Set(),
|
|
4501
|
-
[
|
|
4498
|
+
const N = g($, L);
|
|
4499
|
+
N && O.push(N);
|
|
4500
|
+
}), m.value[$] = O, V.filter((L, N) => V.indexOf(L) === N);
|
|
4501
|
+
}, T = ($) => p.value[$] || [], k = ($, C) => {
|
|
4502
|
+
h.value[$] = C;
|
|
4503
|
+
}, _ = ($, C) => {
|
|
4504
|
+
const V = /* @__PURE__ */ new Set(), O = $ ? Object.keys($) : [], L = C ? Object.keys(C) : [], N = O.filter((ee) => L.includes(ee));
|
|
4505
|
+
[...O, ...L].filter((ee) => !N.includes(ee)).forEach((ee) => V.add(ee));
|
|
4502
4506
|
for (const ee of N)
|
|
4503
|
-
JSON.stringify(
|
|
4507
|
+
JSON.stringify($?.[ee]) !== JSON.stringify(C?.[ee]) && V.add(ee);
|
|
4504
4508
|
const X = Date.now();
|
|
4505
4509
|
for (const ee of Array.from(V))
|
|
4506
4510
|
l.value[ee] = X;
|
|
4507
4511
|
};
|
|
4508
4512
|
return Zt(
|
|
4509
4513
|
[e, t],
|
|
4510
|
-
([
|
|
4511
|
-
JSON.stringify(
|
|
4514
|
+
([$, C], [V, O]) => {
|
|
4515
|
+
JSON.stringify($) !== JSON.stringify(V) && _($ || {}, V || {}), JSON.stringify(C) !== JSON.stringify(O) && _(C || {}, e.value || {});
|
|
4512
4516
|
},
|
|
4513
4517
|
{
|
|
4514
4518
|
deep: !0,
|
|
@@ -4527,15 +4531,15 @@ const Cl = (e) => {
|
|
|
4527
4531
|
filterModelCleared: r,
|
|
4528
4532
|
filterValuesLoadingStatus: s,
|
|
4529
4533
|
filterValueMap: f,
|
|
4530
|
-
filterValueSelectedMetadataMap:
|
|
4534
|
+
filterValueSelectedMetadataMap: m,
|
|
4531
4535
|
filterStoreHandler: i,
|
|
4532
4536
|
fetchFilterValues: F,
|
|
4533
4537
|
filterValueContext: g,
|
|
4534
|
-
getFilterSelectedValues:
|
|
4538
|
+
getFilterSelectedValues: T,
|
|
4535
4539
|
getSearchMatchDataFromFilterContext: S,
|
|
4536
4540
|
isServerSideFilter: c,
|
|
4537
4541
|
stagedFilterModel: t,
|
|
4538
|
-
setFilterSelectedValues:
|
|
4542
|
+
setFilterSelectedValues: R,
|
|
4539
4543
|
setFilterValueSearchText: k,
|
|
4540
4544
|
tableSearchFilterModel: n,
|
|
4541
4545
|
tableSearchHandler: u
|
|
@@ -4576,7 +4580,7 @@ const Cl = (e) => {
|
|
|
4576
4580
|
},
|
|
4577
4581
|
emits: ["filter-selection-changed", "filter-closed", "handle-settings-icon"],
|
|
4578
4582
|
setup(e, { emit: t }) {
|
|
4579
|
-
const n = e, l = t, o = de(Pt,
|
|
4583
|
+
const n = e, l = t, o = de(Pt, P(null)), {
|
|
4580
4584
|
filterModel: a,
|
|
4581
4585
|
stagedFilterModel: r,
|
|
4582
4586
|
filterModelCleared: s,
|
|
@@ -4585,48 +4589,48 @@ const Cl = (e) => {
|
|
|
4585
4589
|
filterValuesLoadingStatus: c,
|
|
4586
4590
|
filterValueContext: f,
|
|
4587
4591
|
getFilterSelectedValues: p,
|
|
4588
|
-
isServerSideFilter:
|
|
4592
|
+
isServerSideFilter: m,
|
|
4589
4593
|
setFilterValueSearchText: h,
|
|
4590
4594
|
setFilterSelectedValues: y
|
|
4591
|
-
} = In(), { computedFocuses: F, handleFocusUpdate: g, isFocused: S, removeFocus:
|
|
4595
|
+
} = In(), { computedFocuses: F, handleFocusUpdate: g, isFocused: S, removeFocus: R, computedFocusType: T, isFocusable: k } = bl(), _ = de(Xa, P(!1)), $ = de(Za, P(!1)), C = P([]), V = P([]), O = v(() => n.filterColDef.field || ""), L = v(() => n.filterColDef.filter || ""), N = v(() => n.filterColDef.headerName || ""), K = P(!1), X = v(() => n.filterStyle == "vertical"), ee = v(() => Xc(n.filterColDef)), ue = P(""), G = () => Object.entries(i.value).filter(([j, Z]) => j !== O.value).reduce((j, [Z, Q]) => Math.max(j, Q), 0), W = (j = !1) => {
|
|
4592
4596
|
const Z = Xn(n.filterColDef, a.value);
|
|
4593
4597
|
j ? C.value = Z : C.value = Array.from(
|
|
4594
|
-
/* @__PURE__ */ new Set([...p(
|
|
4598
|
+
/* @__PURE__ */ new Set([...p(O.value), ...Z])
|
|
4595
4599
|
);
|
|
4596
4600
|
}, B = async (j = !1, Z = !1) => {
|
|
4597
4601
|
if (!o.value) return;
|
|
4598
4602
|
const Q = await mo(o.value, n.filterColDef);
|
|
4599
4603
|
if (!Q) return;
|
|
4600
|
-
const ye = G() || 0, Ne = u.value[
|
|
4601
|
-
|
|
4604
|
+
const ye = G() || 0, Ne = u.value[O.value] || 0, ze = j && c.value[O.value] !== !0 && ye >= Ne;
|
|
4605
|
+
m.value && (Z || ze) && Q.refreshFilterValues(), V.value = ae(Q.getFilterValues());
|
|
4602
4606
|
}, ae = (j) => j.sort((Z, Q) => {
|
|
4603
4607
|
const ye = C.value.includes(Z), Ne = C.value.includes(Q);
|
|
4604
4608
|
return ye && !Ne ? -1 : !ye && Ne ? 1 : 0;
|
|
4605
4609
|
}), fe = (j) => {
|
|
4606
|
-
const Z = f(
|
|
4610
|
+
const Z = f(O.value, j);
|
|
4607
4611
|
return ee.value ? ee.value({
|
|
4608
4612
|
value: j,
|
|
4609
4613
|
context: Z
|
|
4610
4614
|
}) : Z?.label || j;
|
|
4611
|
-
}, he =
|
|
4612
|
-
const j = na(n.filterColDef) ? we(n.filterColDef)?.aggregateFields || [] : [
|
|
4615
|
+
}, he = v(() => fo(n.filterColDef)), J = v(() => Jc(n.filterColDef)), ce = v(() => we(n.filterColDef).filterOptionsSortDescription), xe = v(() => we(n.filterColDef).filterOptionsSortTooltip), Ee = v(() => !we(n.filterColDef).filterSearch), je = v(() => we(n.filterColDef).emptyFilterResultsRenderer), De = v(() => we(n.filterColDef).filterOptionsRenderer), st = v(() => we(n.filterColDef).filterHeaderRenderer), Ue = v(() => we(n.filterColDef).filterFooterRenderer), tt = v(() => he.value ? C.value.length >= he.value : !1), We = v(() => V.value.filter((j) => j != null && !C.value.includes(j))), Be = v(() => V.value.length === 1 && V.value[0] === null && C.value.length === 0), gt = (j) => Be.value || f(O.value, j)?.isSelectable === !1 ? !0 : J.value ? !1 : tt.value && !C.value.includes(j), ft = v(() => {
|
|
4616
|
+
const j = na(n.filterColDef) ? we(n.filterColDef)?.aggregateFields || [] : [O.value];
|
|
4613
4617
|
return k(j) ? {
|
|
4614
4618
|
icon: "focus",
|
|
4615
4619
|
isDisabled: (Q) => {
|
|
4616
|
-
const ye = Q.context?.colField ||
|
|
4620
|
+
const ye = Q.context?.colField || O.value;
|
|
4617
4621
|
return !k([ye]);
|
|
4618
4622
|
},
|
|
4619
4623
|
tooltipText: (Q) => {
|
|
4620
|
-
const ye = Q.context?.colField ||
|
|
4621
|
-
return k([ye]) ? S(Q.id,
|
|
4624
|
+
const ye = Q.context?.colField || O.value;
|
|
4625
|
+
return k([ye]) ? S(Q.id, O.value) ? "Remove Focus" : "Select as Focus" : `Group by ${Ye(ye)} to enable focus`;
|
|
4622
4626
|
},
|
|
4623
4627
|
action: (Q) => {
|
|
4624
4628
|
Q && !C.value.includes(Q.id) && ut(Q.id), g(Q.id);
|
|
4625
4629
|
},
|
|
4626
|
-
alwaysShow: (Q) => S(Q.id,
|
|
4630
|
+
alwaysShow: (Q) => S(Q.id, O.value)
|
|
4627
4631
|
} : void 0;
|
|
4628
|
-
}), it =
|
|
4629
|
-
const Q = f(
|
|
4632
|
+
}), it = v(() => V.value.filter((Z, Q) => V.value.indexOf(Z) === Q).filter((Z) => Z != null && Z !== "").map((Z) => {
|
|
4633
|
+
const Q = f(O.value, Z);
|
|
4630
4634
|
let ye = ce.value ? "suggestions" : null;
|
|
4631
4635
|
Q?.isPreference && (ye = "preferences");
|
|
4632
4636
|
let Ne = null;
|
|
@@ -4642,27 +4646,27 @@ const Cl = (e) => {
|
|
|
4642
4646
|
context: Q || { value: Z || "" },
|
|
4643
4647
|
classList: ["option-label"]
|
|
4644
4648
|
};
|
|
4645
|
-
})), Re =
|
|
4649
|
+
})), Re = v({
|
|
4646
4650
|
get: () => C.value.map((j) => ({
|
|
4647
4651
|
id: j,
|
|
4648
4652
|
text: fe(j)
|
|
4649
4653
|
})),
|
|
4650
4654
|
set: (j) => {
|
|
4651
4655
|
C.value = j.map((Z) => Z.id), ct(), F.value.forEach((Z) => {
|
|
4652
|
-
!C.value.includes(Z) &&
|
|
4656
|
+
!C.value.includes(Z) && T.value === O.value && R(Z);
|
|
4653
4657
|
}), l("filter-selection-changed");
|
|
4654
4658
|
}
|
|
4655
4659
|
});
|
|
4656
4660
|
re(
|
|
4657
4661
|
() => i.value,
|
|
4658
4662
|
() => {
|
|
4659
|
-
G() > (u.value[
|
|
4663
|
+
G() > (u.value[O.value] || 0) && B(!0);
|
|
4660
4664
|
},
|
|
4661
4665
|
{ deep: !0 }
|
|
4662
4666
|
), Zt(
|
|
4663
|
-
() => c.value[
|
|
4667
|
+
() => c.value[O.value],
|
|
4664
4668
|
() => {
|
|
4665
|
-
const j = c.value[
|
|
4669
|
+
const j = c.value[O.value];
|
|
4666
4670
|
K.value && !j ? (B(), K.value = !1) : j && (K.value = !0);
|
|
4667
4671
|
},
|
|
4668
4672
|
{ deep: !0 }
|
|
@@ -4671,9 +4675,9 @@ const Cl = (e) => {
|
|
|
4671
4675
|
() => {
|
|
4672
4676
|
if (X.value)
|
|
4673
4677
|
if (L.value === "agSetColumnFilter")
|
|
4674
|
-
C.value = r.value?.[
|
|
4678
|
+
C.value = r.value?.[O.value]?.values || [];
|
|
4675
4679
|
else if (L.value === "agMultiColumnFilter") {
|
|
4676
|
-
const j = r.value?.[
|
|
4680
|
+
const j = r.value?.[O.value]?.filterModels?.find(
|
|
4677
4681
|
(Z) => Z && Z.filterType === "set"
|
|
4678
4682
|
);
|
|
4679
4683
|
C.value = j?.values || [];
|
|
@@ -4692,7 +4696,7 @@ const Cl = (e) => {
|
|
|
4692
4696
|
C.value = [];
|
|
4693
4697
|
}
|
|
4694
4698
|
), re(
|
|
4695
|
-
() =>
|
|
4699
|
+
() => $.value,
|
|
4696
4700
|
async () => {
|
|
4697
4701
|
X.value ? setTimeout(async () => {
|
|
4698
4702
|
await B(!0);
|
|
@@ -4701,19 +4705,19 @@ const Cl = (e) => {
|
|
|
4701
4705
|
), re(
|
|
4702
4706
|
() => C.value,
|
|
4703
4707
|
(j) => {
|
|
4704
|
-
y(
|
|
4708
|
+
y(O.value, j);
|
|
4705
4709
|
}
|
|
4706
4710
|
), Zt(
|
|
4707
4711
|
() => ue.value,
|
|
4708
4712
|
async (j) => {
|
|
4709
|
-
h(
|
|
4713
|
+
h(O.value, j), await B(!0, !0);
|
|
4710
4714
|
},
|
|
4711
4715
|
{ debounce: 300 }
|
|
4712
4716
|
);
|
|
4713
4717
|
const ut = (j) => {
|
|
4714
4718
|
j && J.value ? C.value = [j] : j && !C.value.includes(j) && (C.value = [...C.value, j]), ct(), l("filter-selection-changed");
|
|
4715
4719
|
}, bt = (j) => {
|
|
4716
|
-
C.value = C.value.filter((Z) => Z !== j), ct(), l("filter-selection-changed"), S(j,
|
|
4720
|
+
C.value = C.value.filter((Z) => Z !== j), ct(), l("filter-selection-changed"), S(j, O.value) && R(j);
|
|
4717
4721
|
}, Ye = (j) => !j || !o.value ? "" : o.value.getColumnDef(j)?.headerName || j, ct = async () => {
|
|
4718
4722
|
if (!o.value) return;
|
|
4719
4723
|
const j = C.value.length > 0 ? C.value : null;
|
|
@@ -4721,12 +4725,12 @@ const Cl = (e) => {
|
|
|
4721
4725
|
const Q = await la(o.value, n.filterColDef, j);
|
|
4722
4726
|
r.value = {
|
|
4723
4727
|
...r.value,
|
|
4724
|
-
[
|
|
4728
|
+
[O.value]: Q
|
|
4725
4729
|
};
|
|
4726
4730
|
return;
|
|
4727
4731
|
}
|
|
4728
4732
|
const Z = await la(o.value, n.filterColDef, j);
|
|
4729
|
-
o.value.setColumnFilterModel(
|
|
4733
|
+
o.value.setColumnFilterModel(O.value, Z).then(() => {
|
|
4730
4734
|
o.value && o.value.onFilterChanged();
|
|
4731
4735
|
});
|
|
4732
4736
|
}, nt = () => {
|
|
@@ -4753,7 +4757,7 @@ const Cl = (e) => {
|
|
|
4753
4757
|
"onUpdate:modelValue": Z[1] || (Z[1] = (Q) => Re.value = Q),
|
|
4754
4758
|
searchInput: ue.value,
|
|
4755
4759
|
"onUpdate:searchInput": Z[2] || (Z[2] = (Q) => ue.value = Q),
|
|
4756
|
-
"data-horizontal-filter-field": X.value ? void 0 :
|
|
4760
|
+
"data-horizontal-filter-field": X.value ? void 0 : O.value,
|
|
4757
4761
|
label: X.value ? "" : N.value,
|
|
4758
4762
|
highlightSearchText: !0,
|
|
4759
4763
|
icon: X.value ? "add-circle" : void 0,
|
|
@@ -4878,7 +4882,7 @@ const Cl = (e) => {
|
|
|
4878
4882
|
])) : I("", !0)
|
|
4879
4883
|
], 64));
|
|
4880
4884
|
}
|
|
4881
|
-
}), ra = /* @__PURE__ */ Ve(yd, [["__scopeId", "data-v-
|
|
4885
|
+
}), ra = /* @__PURE__ */ Ve(yd, [["__scopeId", "data-v-a6ef6c71"]]), gd = { class: "pv-flex" }, bd = { class: "pv-flex" }, Cd = { class: "pv-flex pv-space-between pv-stack-8" }, xd = { class: "pv-text-title-lg" }, Sd = {
|
|
4882
4886
|
id: "filter-vertical-drawer",
|
|
4883
4887
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
4884
4888
|
style: { height: "100%" }
|
|
@@ -4899,32 +4903,32 @@ const Cl = (e) => {
|
|
|
4899
4903
|
},
|
|
4900
4904
|
emits: ["handle-settings-icon"],
|
|
4901
4905
|
setup(e) {
|
|
4902
|
-
const t = de(Pt,
|
|
4906
|
+
const t = de(Pt, P(null)), n = de(Ya, P([])), l = de(Wa, P(null)), o = e, { filterModelCleared: a, stagedFilterModel: r, filterModel: s } = In(), i = P(!1), u = P(!1), c = P(""), f = v(() => n.value.flatMap((V) => we(V)?.aggregateFields || [])), p = v(() => n.value.filter((V) => vo(V) && !f.value.includes(V.field || ""))), m = v(() => p.value), h = v(() => {
|
|
4903
4907
|
const V = c.value?.trim().toLowerCase() || "";
|
|
4904
|
-
return !V || V === "" ?
|
|
4905
|
-
const L =
|
|
4908
|
+
return !V || V === "" ? m.value : n.value.filter((O) => {
|
|
4909
|
+
const L = O.headerName?.toLowerCase() || O.field?.toLowerCase();
|
|
4906
4910
|
return L ? L.includes(V) : !1;
|
|
4907
4911
|
});
|
|
4908
|
-
}), y =
|
|
4909
|
-
const
|
|
4910
|
-
return l.value ? [
|
|
4911
|
-
}), F =
|
|
4912
|
+
}), y = v(() => {
|
|
4913
|
+
const O = [...p.value].slice(0, o.maxHorizontalFilters);
|
|
4914
|
+
return l.value ? [...O.slice(0, o.maxHorizontalFilters - 1), l.value] : O;
|
|
4915
|
+
}), F = v(() => {
|
|
4912
4916
|
const V = s.value || {};
|
|
4913
4917
|
return Object.keys(V).length;
|
|
4914
|
-
}), g =
|
|
4918
|
+
}), g = P(!1), S = () => {
|
|
4915
4919
|
g.value = !0;
|
|
4916
|
-
},
|
|
4920
|
+
}, R = () => {
|
|
4917
4921
|
t.value && (g.value = !1, r.value = t.value.getFilterModel(), i.value = !0);
|
|
4918
|
-
}, { clearAllFocuses:
|
|
4919
|
-
r.value = null, t.value && (t.value.setFilterModel(null), t.value.onFilterChanged(), a.value += 1,
|
|
4922
|
+
}, { clearAllFocuses: T } = bl(), k = () => {
|
|
4923
|
+
r.value = null, t.value && (t.value.setFilterModel(null), t.value.onFilterChanged(), a.value += 1, T(), u.value = !1);
|
|
4920
4924
|
}, _ = () => {
|
|
4921
4925
|
i.value = !1, c.value = "";
|
|
4922
|
-
},
|
|
4926
|
+
}, $ = () => {
|
|
4923
4927
|
_();
|
|
4924
4928
|
}, C = () => {
|
|
4925
4929
|
g.value && t.value && (t.value.setFilterModel(r.value), t.value.onFilterChanged()), _();
|
|
4926
4930
|
};
|
|
4927
|
-
return (V,
|
|
4931
|
+
return (V, O) => (d(), x(oe, null, [
|
|
4928
4932
|
M("div", gd, [
|
|
4929
4933
|
(d(!0), x(oe, null, Oe(y.value, (L) => (d(), x(oe, {
|
|
4930
4934
|
key: L.field
|
|
@@ -4935,24 +4939,24 @@ const Cl = (e) => {
|
|
|
4935
4939
|
"display-preferences-icon": o.displayPreferencesIcon,
|
|
4936
4940
|
"focusable-columns": o.focusableColumns,
|
|
4937
4941
|
filterColDef: L,
|
|
4938
|
-
onHandleSettingsIcon:
|
|
4942
|
+
onHandleSettingsIcon: O[0] || (O[0] = (N) => V.$emit("handle-settings-icon", N))
|
|
4939
4943
|
}, null, 8, ["enable-focus-view", "display-preferences-icon", "focusable-columns", "filterColDef"])) : I("", !0)
|
|
4940
4944
|
], 64))), 128)),
|
|
4941
4945
|
M("div", bd, [
|
|
4942
4946
|
o.enableVerticalPanel ? (d(), q(z(be), {
|
|
4943
4947
|
key: 0,
|
|
4944
4948
|
label: "All Filters",
|
|
4945
|
-
onClick:
|
|
4949
|
+
onClick: R,
|
|
4946
4950
|
variant: "ghost",
|
|
4947
4951
|
"left-icon": "filter"
|
|
4948
4952
|
})) : I("", !0),
|
|
4949
4953
|
F.value > 0 ? (d(), x("button", {
|
|
4950
4954
|
key: 1,
|
|
4951
4955
|
class: "pv-button-ghost",
|
|
4952
|
-
onClick:
|
|
4956
|
+
onClick: O[1] || (O[1] = (L) => u.value = !0)
|
|
4953
4957
|
}, [
|
|
4954
4958
|
U(z(ge), { name: "close" }),
|
|
4955
|
-
|
|
4959
|
+
O[12] || (O[12] = Le(" Clear All Filters ", -1)),
|
|
4956
4960
|
F.value > 0 ? (d(), q(z(Xt), {
|
|
4957
4961
|
key: 0,
|
|
4958
4962
|
value: F.value,
|
|
@@ -4963,25 +4967,25 @@ const Cl = (e) => {
|
|
|
4963
4967
|
o.enableVerticalPanel ? (d(), q(z(Lu), {
|
|
4964
4968
|
key: 0,
|
|
4965
4969
|
modelValue: i.value,
|
|
4966
|
-
"onUpdate:modelValue":
|
|
4970
|
+
"onUpdate:modelValue": O[8] || (O[8] = (L) => i.value = L),
|
|
4967
4971
|
class: "pv-drawer pv-surface",
|
|
4968
4972
|
"close-on-click-outside": !0,
|
|
4969
|
-
onClickOutside:
|
|
4973
|
+
onClickOutside: O[9] || (O[9] = (L) => C()),
|
|
4970
4974
|
style: { "max-width": "450px", "z-index": "10" }
|
|
4971
4975
|
}, {
|
|
4972
4976
|
header: pe(() => [
|
|
4973
4977
|
M("div", Cd, [
|
|
4974
|
-
M("p", xd, "All Filters (" + te(
|
|
4978
|
+
M("p", xd, "All Filters (" + te(m.value.length) + ")", 1),
|
|
4975
4979
|
M("button", {
|
|
4976
4980
|
class: "pv-button-ghost",
|
|
4977
|
-
onClick:
|
|
4981
|
+
onClick: O[2] || (O[2] = (L) => $())
|
|
4978
4982
|
}, [
|
|
4979
4983
|
U(z(ge), { name: "close" })
|
|
4980
4984
|
])
|
|
4981
4985
|
]),
|
|
4982
4986
|
U(z(rn), {
|
|
4983
4987
|
modelValue: c.value,
|
|
4984
|
-
"onUpdate:modelValue":
|
|
4988
|
+
"onUpdate:modelValue": O[3] || (O[3] = (L) => c.value = L),
|
|
4985
4989
|
placeholder: "Search Filters"
|
|
4986
4990
|
}, null, 8, ["modelValue"])
|
|
4987
4991
|
]),
|
|
@@ -4989,19 +4993,19 @@ const Cl = (e) => {
|
|
|
4989
4993
|
M("div", $d, [
|
|
4990
4994
|
M("button", {
|
|
4991
4995
|
class: "pv-button-ghost",
|
|
4992
|
-
onClick:
|
|
4996
|
+
onClick: O[5] || (O[5] = (L) => k())
|
|
4993
4997
|
}, "Clear All"),
|
|
4994
4998
|
M("div", Od, [
|
|
4995
4999
|
U(z(be), {
|
|
4996
5000
|
variant: "ghost",
|
|
4997
5001
|
label: "Cancel",
|
|
4998
|
-
onClick:
|
|
5002
|
+
onClick: O[6] || (O[6] = (L) => $())
|
|
4999
5003
|
}),
|
|
5000
5004
|
g.value ? (d(), q(z(be), {
|
|
5001
5005
|
key: 0,
|
|
5002
5006
|
variant: "primary",
|
|
5003
5007
|
label: "Apply",
|
|
5004
|
-
onClick:
|
|
5008
|
+
onClick: O[7] || (O[7] = (L) => C())
|
|
5005
5009
|
})) : (d(), q(z(be), {
|
|
5006
5010
|
key: 1,
|
|
5007
5011
|
variant: "primary",
|
|
@@ -5033,7 +5037,7 @@ const Cl = (e) => {
|
|
|
5033
5037
|
"display-preferences-icon": o.displayPreferencesIcon,
|
|
5034
5038
|
"focusable-columns": o.focusableColumns,
|
|
5035
5039
|
onFilterSelectionChanged: S,
|
|
5036
|
-
onHandleSettingsIcon:
|
|
5040
|
+
onHandleSettingsIcon: O[4] || (O[4] = (K) => V.$emit("handle-settings-icon", K))
|
|
5037
5041
|
}, null, 8, ["enable-focus-view", "filterColDef", "display-preferences-icon", "focusable-columns"])) : I("", !0)
|
|
5038
5042
|
])
|
|
5039
5043
|
])
|
|
@@ -5046,11 +5050,11 @@ const Cl = (e) => {
|
|
|
5046
5050
|
]),
|
|
5047
5051
|
U(z(wi), {
|
|
5048
5052
|
modelValue: u.value,
|
|
5049
|
-
"onUpdate:modelValue":
|
|
5053
|
+
"onUpdate:modelValue": O[11] || (O[11] = (L) => u.value = L),
|
|
5050
5054
|
header: "Clear All Filters",
|
|
5051
5055
|
style: { top: "50%" }
|
|
5052
5056
|
}, {
|
|
5053
|
-
body: pe(() => [
|
|
5057
|
+
body: pe(() => [...O[13] || (O[13] = [
|
|
5054
5058
|
M("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)
|
|
5055
5059
|
])]),
|
|
5056
5060
|
footer: pe(() => [
|
|
@@ -5059,7 +5063,7 @@ const Cl = (e) => {
|
|
|
5059
5063
|
label: "Cancel",
|
|
5060
5064
|
variant: "secondary",
|
|
5061
5065
|
size: "lg",
|
|
5062
|
-
onClick:
|
|
5066
|
+
onClick: O[10] || (O[10] = (L) => u.value = !1)
|
|
5063
5067
|
}),
|
|
5064
5068
|
U(z(be), {
|
|
5065
5069
|
label: "Clear All Filters",
|
|
@@ -5082,35 +5086,35 @@ const Cl = (e) => {
|
|
|
5082
5086
|
params: {}
|
|
5083
5087
|
},
|
|
5084
5088
|
setup(e, { expose: t }) {
|
|
5085
|
-
const n = de(Ua,
|
|
5086
|
-
const
|
|
5087
|
-
return
|
|
5088
|
-
}), f =
|
|
5089
|
+
const n = de(Ua, P([])), l = e, o = P(!1), a = P(!1), r = P(null), s = P(null), i = P(null), u = P(!1), c = v(() => {
|
|
5090
|
+
const T = l.params.column.getColDef();
|
|
5091
|
+
return T.sortable || T.filter || T.enableRowGroup;
|
|
5092
|
+
}), f = v(() => {
|
|
5089
5093
|
if (!n.value || n.value.length === 0)
|
|
5090
5094
|
return "";
|
|
5091
|
-
const
|
|
5095
|
+
const T = n.value.find((_) => _.colId === l.params.column.getColId()), k = T ? T.sort : "";
|
|
5092
5096
|
return k === "asc" ? "arrow-up" : k === "desc" ? "arrow-down" : "";
|
|
5093
|
-
}), p =
|
|
5094
|
-
const
|
|
5095
|
-
return a.value && (
|
|
5096
|
-
}), h =
|
|
5097
|
+
}), p = v(() => Gt(l.params.column.getColDef())), m = v(() => {
|
|
5098
|
+
const T = {};
|
|
5099
|
+
return a.value && (T.cursor = "pointer", T["flex-direction"] = p.value ? "row-reverse" : "row"), T;
|
|
5100
|
+
}), h = v(() => u.value ? { opacity: 1 } : {}), y = () => {
|
|
5097
5101
|
u.value = !1;
|
|
5098
5102
|
}, F = () => {
|
|
5099
5103
|
u.value = !0, i.value && l.params.showColumnMenu(i.value, y);
|
|
5100
|
-
}, g = (
|
|
5101
|
-
o.value =
|
|
5104
|
+
}, g = (T) => {
|
|
5105
|
+
o.value = T.enableFilterButton, a.value = T.enableSorting || !1, r.value = T.displayName, s.value = Cl(T.column.getColDef().context?.dataType), r.value = Yc(r.value, T.column.getColDef().context?.dataType);
|
|
5102
5106
|
}, S = () => {
|
|
5103
5107
|
a.value && l.params.progressSort(!1);
|
|
5104
5108
|
};
|
|
5105
5109
|
ll(() => {
|
|
5106
5110
|
g(l.params);
|
|
5107
5111
|
});
|
|
5108
|
-
function
|
|
5109
|
-
return g(
|
|
5112
|
+
function R(T) {
|
|
5113
|
+
return g(T), !0;
|
|
5110
5114
|
}
|
|
5111
|
-
return t({ refresh:
|
|
5115
|
+
return t({ refresh: R }), (T, k) => (d(), x("div", {
|
|
5112
5116
|
class: "ag-custom-header-cell pv-flex pv-full-width pv-space-between",
|
|
5113
|
-
style: Pe(
|
|
5117
|
+
style: Pe(m.value),
|
|
5114
5118
|
onClick: S
|
|
5115
5119
|
}, [
|
|
5116
5120
|
M("div", {
|
|
@@ -5191,7 +5195,7 @@ const Cl = (e) => {
|
|
|
5191
5195
|
getCsvData: { type: Function }
|
|
5192
5196
|
},
|
|
5193
5197
|
setup(e) {
|
|
5194
|
-
const t = e, n =
|
|
5198
|
+
const t = e, n = P(!1);
|
|
5195
5199
|
async function l() {
|
|
5196
5200
|
n.value = !0;
|
|
5197
5201
|
const o = await t.getCsvData();
|
|
@@ -5240,10 +5244,10 @@ const Cl = (e) => {
|
|
|
5240
5244
|
},
|
|
5241
5245
|
setup(e) {
|
|
5242
5246
|
Do.registerModules([Ro]);
|
|
5243
|
-
const t = de(Pt,
|
|
5247
|
+
const t = de(Pt, P(null)), n = de(Ja, P(1)), l = de(eo, P(0)), o = e, a = v(() => {
|
|
5244
5248
|
const u = l.value, c = n.value;
|
|
5245
5249
|
if (u <= 7)
|
|
5246
|
-
return Array.from({ length: u }, (p,
|
|
5250
|
+
return Array.from({ length: u }, (p, m) => m + 1);
|
|
5247
5251
|
const f = [];
|
|
5248
5252
|
return c <= 4 ? f.push(1, 2, 3, 4, 5, "...", u) : c >= u - 3 ? f.push(1, "...", u - 4, u - 3, u - 2, u - 1, u) : f.push(1, "...", c - 1, c, c + 1, "...", u), f;
|
|
5249
5253
|
}), r = () => {
|
|
@@ -5290,7 +5294,7 @@ const Cl = (e) => {
|
|
|
5290
5294
|
params: {}
|
|
5291
5295
|
},
|
|
5292
5296
|
setup(e) {
|
|
5293
|
-
const t = e, n =
|
|
5297
|
+
const t = e, n = v(() => {
|
|
5294
5298
|
const l = t.params.valueFormatted || t.params.value || "";
|
|
5295
5299
|
return l.trim() === "" ? null : l;
|
|
5296
5300
|
});
|
|
@@ -5305,7 +5309,7 @@ const Cl = (e) => {
|
|
|
5305
5309
|
params: {}
|
|
5306
5310
|
},
|
|
5307
5311
|
setup(e) {
|
|
5308
|
-
const t = e, n =
|
|
5312
|
+
const t = e, n = v(() => (t.params.node?.rowIndex || 0) + 1), l = v(() => {
|
|
5309
5313
|
const o = t.params.column?.getColDef(), a = t.params.valueFormatted || t.params.value;
|
|
5310
5314
|
return o && Gt(o) ? a.toLocaleString() : a;
|
|
5311
5315
|
});
|
|
@@ -5340,7 +5344,7 @@ const Cl = (e) => {
|
|
|
5340
5344
|
useTeleport: { type: Boolean, default: !1 }
|
|
5341
5345
|
},
|
|
5342
5346
|
setup(e, { expose: t }) {
|
|
5343
|
-
const n =
|
|
5347
|
+
const n = P(null);
|
|
5344
5348
|
return t({
|
|
5345
5349
|
popoverRef: n
|
|
5346
5350
|
}), (l, o) => (d(), q($n, {
|
|
@@ -5393,7 +5397,7 @@ const Cl = (e) => {
|
|
|
5393
5397
|
children: {}
|
|
5394
5398
|
},
|
|
5395
5399
|
setup(e) {
|
|
5396
|
-
const t = e, n =
|
|
5400
|
+
const t = e, n = v(() => t.context), l = P(null), o = v(() => n.value?.exactMatch || !1), a = v(() => t.text), r = v(() => t.searchText || ""), s = v(() => n.value?.queryDisplayField), i = v(() => {
|
|
5397
5401
|
const u = t.icon || "search";
|
|
5398
5402
|
return o.value ? u : "search";
|
|
5399
5403
|
});
|
|
@@ -5431,10 +5435,10 @@ const Cl = (e) => {
|
|
|
5431
5435
|
}),
|
|
5432
5436
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
5433
5437
|
setup(e) {
|
|
5434
|
-
const t = e, n = Fe(e, "modelValue"), l = Fe(e, "wrap-content"), { removeQueryOption: o } = yo(), a =
|
|
5438
|
+
const t = e, n = Fe(e, "modelValue"), l = Fe(e, "wrap-content"), { removeQueryOption: o } = yo(), a = v(() => {
|
|
5435
5439
|
const c = n.value?.queryTerms || [];
|
|
5436
5440
|
return l.value ? c : c.slice(0, t.queryTermDisplayLimit);
|
|
5437
|
-
}), r =
|
|
5441
|
+
}), r = v(() => {
|
|
5438
5442
|
const c = n.value?.queryTerms.length || 0, f = a.value.length;
|
|
5439
5443
|
return c - f;
|
|
5440
5444
|
}), s = (c) => c.queryField && !c.exactMatch ? `${c.queryDisplayField || c.queryField}: '${c.queryText}'` : c.queryText || "", i = (c) => c.exactMatch ? "primary" : "tertiary", u = (c) => {
|
|
@@ -5451,8 +5455,8 @@ const Cl = (e) => {
|
|
|
5451
5455
|
o(n.value, f);
|
|
5452
5456
|
};
|
|
5453
5457
|
return (c, f) => (d(), x(oe, null, [
|
|
5454
|
-
(d(!0), x(oe, null, Oe(a.value, (p,
|
|
5455
|
-
key: `${
|
|
5458
|
+
(d(!0), x(oe, null, Oe(a.value, (p, m) => (d(), q(z(jn), {
|
|
5459
|
+
key: `${m}-${p.queryText}`,
|
|
5456
5460
|
variant: i(p),
|
|
5457
5461
|
label: s(p),
|
|
5458
5462
|
"show-clear": !0,
|
|
@@ -5498,8 +5502,8 @@ const Cl = (e) => {
|
|
|
5498
5502
|
setup(e) {
|
|
5499
5503
|
const t = e, n = {
|
|
5500
5504
|
renderer: Zd
|
|
5501
|
-
}, l = ht("search-input"), o = Fe(e, "searchText"), a = Fe(e, "query"), r = Fe(e, "options"), { addQueryOption: s, containsQueryOption: i } = yo(), u =
|
|
5502
|
-
a.value = null, o.value = "",
|
|
5505
|
+
}, l = ht("search-input"), o = Fe(e, "searchText"), a = Fe(e, "query"), r = Fe(e, "options"), { addQueryOption: s, containsQueryOption: i } = yo(), u = P(!1), c = P(!1), f = P(!1), p = v(() => a.value !== null ? "" : t.placeholder), m = P(null), h = v(() => m.value !== null && m.value !== "" && !c.value), y = () => {
|
|
5506
|
+
a.value = null, o.value = "", m.value = null, f.value = !1;
|
|
5503
5507
|
};
|
|
5504
5508
|
t.enableCustomOptionsInput && an(
|
|
5505
5509
|
"Enter",
|
|
@@ -5516,11 +5520,11 @@ const Cl = (e) => {
|
|
|
5516
5520
|
queryText: o.value
|
|
5517
5521
|
}
|
|
5518
5522
|
}), _());
|
|
5519
|
-
}, g =
|
|
5523
|
+
}, g = v(() => {
|
|
5520
5524
|
if (!r.value || r.value.length === 0)
|
|
5521
5525
|
return [];
|
|
5522
|
-
let
|
|
5523
|
-
return t.processor === "field-only" && (
|
|
5526
|
+
let $ = r.value;
|
|
5527
|
+
return t.processor === "field-only" && ($ = r.value.filter((C) => C.queryTerm?.queryField)), a.value && ($ = $.filter((C) => !i(a.value, C))), $.map((C) => ({
|
|
5524
5528
|
id: C.id,
|
|
5525
5529
|
text: C.text,
|
|
5526
5530
|
icon: C.icon,
|
|
@@ -5530,13 +5534,13 @@ const Cl = (e) => {
|
|
|
5530
5534
|
}));
|
|
5531
5535
|
}), S = () => {
|
|
5532
5536
|
t.enableCustomOptionsInput && F(), u.value = !1, c.value = !1, f.value = !1;
|
|
5533
|
-
},
|
|
5537
|
+
}, R = ($) => {
|
|
5534
5538
|
try {
|
|
5535
5539
|
const C = {
|
|
5536
|
-
id:
|
|
5537
|
-
text:
|
|
5538
|
-
queryTerm:
|
|
5539
|
-
icon:
|
|
5540
|
+
id: $.id,
|
|
5541
|
+
text: $.text,
|
|
5542
|
+
queryTerm: $.context,
|
|
5543
|
+
icon: $.icon
|
|
5540
5544
|
};
|
|
5541
5545
|
a.value = s(a.value, C), _();
|
|
5542
5546
|
} catch (C) {
|
|
@@ -5545,21 +5549,21 @@ const Cl = (e) => {
|
|
|
5545
5549
|
u.value = !1, c.value = !1;
|
|
5546
5550
|
}
|
|
5547
5551
|
};
|
|
5548
|
-
function
|
|
5549
|
-
const C =
|
|
5552
|
+
function T($) {
|
|
5553
|
+
const C = $.target;
|
|
5550
5554
|
C.isContentEditable || C.closest('[contenteditable="true"]') || C.tagName === "BUTTON" || C.tagName === "SVG" || C.closest("button") || l.value?.focus();
|
|
5551
5555
|
}
|
|
5552
|
-
function k(
|
|
5553
|
-
|
|
5556
|
+
function k($) {
|
|
5557
|
+
$.type === "focus" ? (c.value = !0, u.value = !0) : $.type;
|
|
5554
5558
|
}
|
|
5555
5559
|
const _ = () => {
|
|
5556
5560
|
o.value = "";
|
|
5557
5561
|
};
|
|
5558
|
-
return (
|
|
5562
|
+
return ($, C) => He((d(), x("div", {
|
|
5559
5563
|
ref: "query-builder-input",
|
|
5560
5564
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
5561
5565
|
onFocus: k,
|
|
5562
|
-
onClick:
|
|
5566
|
+
onClick: T
|
|
5563
5567
|
}, [
|
|
5564
5568
|
e.hideSearchIcon ? I("", !0) : (d(), q(ge, {
|
|
5565
5569
|
key: 0,
|
|
@@ -5597,7 +5601,7 @@ const Cl = (e) => {
|
|
|
5597
5601
|
size: "md",
|
|
5598
5602
|
onClick: y
|
|
5599
5603
|
})) : I("", !0),
|
|
5600
|
-
h.value ? (d(), x("p", e1, te(
|
|
5604
|
+
h.value ? (d(), x("p", e1, te(m.value), 1)) : I("", !0),
|
|
5601
5605
|
g.value.length > 0 || e.optionsLoading ? (d(), q(Jn, {
|
|
5602
5606
|
key: 3,
|
|
5603
5607
|
open: u.value,
|
|
@@ -5606,11 +5610,11 @@ const Cl = (e) => {
|
|
|
5606
5610
|
default: pe(() => [
|
|
5607
5611
|
e.optionsLoading ? (d(), x("div", t1, [
|
|
5608
5612
|
U(z(Pn), { variant: "dark" })
|
|
5609
|
-
])) : (d(!0), x(oe, { key: 0 }, Oe(g.value, (V,
|
|
5610
|
-
key: `${
|
|
5613
|
+
])) : (d(!0), x(oe, { key: 0 }, Oe(g.value, (V, O) => (d(), q(Nt, Me({
|
|
5614
|
+
key: `${O}-${V.searchText}`,
|
|
5611
5615
|
ref_for: !0
|
|
5612
5616
|
}, V, {
|
|
5613
|
-
onHandleSelected: (L) =>
|
|
5617
|
+
onHandleSelected: (L) => R(V),
|
|
5614
5618
|
config: n
|
|
5615
5619
|
}), null, 16, ["onHandleSelected"]))), 128))
|
|
5616
5620
|
]),
|
|
@@ -5627,7 +5631,7 @@ const Cl = (e) => {
|
|
|
5627
5631
|
searchStyle: {}
|
|
5628
5632
|
},
|
|
5629
5633
|
setup(e) {
|
|
5630
|
-
const t = e, n =
|
|
5634
|
+
const t = e, n = P(null), l = P(""), o = P([]), a = P(!1), r = de(Pt, P(null)), { isServerSideFilter: s, filterModel: i, tableSearchFilterModel: u, tableSearchHandler: c } = In(), f = (h) => {
|
|
5631
5635
|
r?.value && (s.value ? console.error("Server-side filtering with table free text search is not yet supported.") : r.value.setGridOption("quickFilterText", h));
|
|
5632
5636
|
}, p = (h) => {
|
|
5633
5637
|
if (r?.value) {
|
|
@@ -5637,7 +5641,7 @@ const Cl = (e) => {
|
|
|
5637
5641
|
}
|
|
5638
5642
|
u.value = ed(h), r.value?.onFilterChanged(), r.value?.refreshServerSide({ purge: !0 });
|
|
5639
5643
|
}
|
|
5640
|
-
},
|
|
5644
|
+
}, m = async (h) => {
|
|
5641
5645
|
if (!h || h.length < 2) {
|
|
5642
5646
|
o.value = [];
|
|
5643
5647
|
return;
|
|
@@ -5651,12 +5655,12 @@ const Cl = (e) => {
|
|
|
5651
5655
|
a.value = !0;
|
|
5652
5656
|
const g = (await c.value?.(y))?.filter((S) => S !== null) || [];
|
|
5653
5657
|
o.value = g.map((S) => {
|
|
5654
|
-
let
|
|
5655
|
-
const
|
|
5656
|
-
return
|
|
5658
|
+
let R = "search";
|
|
5659
|
+
const T = r.value?.getColumnDef(S.queryField || "");
|
|
5660
|
+
return T && (R = Cl(T.context?.dataType || null) || "search"), {
|
|
5657
5661
|
id: `${S.queryField}-${S.queryText}`,
|
|
5658
5662
|
text: S.queryText,
|
|
5659
|
-
icon:
|
|
5663
|
+
icon: R,
|
|
5660
5664
|
queryTerm: S
|
|
5661
5665
|
};
|
|
5662
5666
|
}), a.value = !1;
|
|
@@ -5664,7 +5668,7 @@ const Cl = (e) => {
|
|
|
5664
5668
|
return Zt(
|
|
5665
5669
|
l,
|
|
5666
5670
|
(h) => {
|
|
5667
|
-
t.searchStyle === "query-builder" ?
|
|
5671
|
+
t.searchStyle === "query-builder" ? m(h) : t.searchStyle === "text" && f(h);
|
|
5668
5672
|
},
|
|
5669
5673
|
{
|
|
5670
5674
|
debounce: 300,
|
|
@@ -5820,19 +5824,19 @@ const Cl = (e) => {
|
|
|
5820
5824
|
Zo.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");
|
|
5821
5825
|
const a = e;
|
|
5822
5826
|
a.debugMode && l.push(pr);
|
|
5823
|
-
const r =
|
|
5827
|
+
const r = v(() => ({
|
|
5824
5828
|
height: a.containerHeight,
|
|
5825
5829
|
minHeight: a.containerMinHeight
|
|
5826
|
-
})), s =
|
|
5827
|
-
getRows: (
|
|
5830
|
+
})), s = v(() => a.theme ? a.theme : T.value.length > 0 ? Vd : Ld), i = n, u = "serverSideRowHandler" in a && a.serverSideRowHandler ? {
|
|
5831
|
+
getRows: (D) => {
|
|
5828
5832
|
if (!C.value) {
|
|
5829
|
-
|
|
5833
|
+
D.success({ rowData: [] }), k.value = !0;
|
|
5830
5834
|
return;
|
|
5831
5835
|
}
|
|
5832
5836
|
_.value = !0;
|
|
5833
|
-
const A =
|
|
5837
|
+
const A = D.success, H = D.fail, b = D.request.groupKeys?.length || 0, w = D.request.rowGroupCols?.length || 0, E = ae.value || {}, Y = b === w;
|
|
5834
5838
|
let ie = !1;
|
|
5835
|
-
w > 0 && b === 0 && (ie =
|
|
5839
|
+
w > 0 && b === 0 && (ie = D.request.rowGroupCols[0].id in E), (Y || ie) && Object.keys(E).length > 0 && (D.request.filterModel = ld(g, D.request.filterModel, E)), D.success = (le) => {
|
|
5836
5840
|
if (_.value = !1, a.enableFocusView && ce.value.length > 0 && J.value && le.rowData) {
|
|
5837
5841
|
const Se = ta(le.rowData, J.value, ce.value);
|
|
5838
5842
|
if (Se) {
|
|
@@ -5841,22 +5845,22 @@ const Cl = (e) => {
|
|
|
5841
5845
|
}
|
|
5842
5846
|
}
|
|
5843
5847
|
A(le);
|
|
5844
|
-
},
|
|
5848
|
+
}, D.fail = () => {
|
|
5845
5849
|
_.value = !1, H();
|
|
5846
|
-
}, a.serverSideRowHandler?.(
|
|
5850
|
+
}, a.serverSideRowHandler?.(D);
|
|
5847
5851
|
}
|
|
5848
|
-
} : null, c = "filterValuesSetHandler" in a && a.filterValuesSetHandler ? async (
|
|
5852
|
+
} : null, c = "filterValuesSetHandler" in a && a.filterValuesSetHandler ? async (D) => {
|
|
5849
5853
|
let A = [];
|
|
5850
5854
|
const H = { ...ee.value };
|
|
5851
|
-
!k.value && S ? A = Xn(
|
|
5852
|
-
} : null, f = (
|
|
5853
|
-
const A =
|
|
5855
|
+
!k.value && S ? A = Xn(D.colDef, H) : A = await W(D.api, D.colDef, D.column, H), D.success([...A, ""]);
|
|
5856
|
+
} : null, f = (D) => {
|
|
5857
|
+
const A = D.node, H = D.column?.getColId();
|
|
5854
5858
|
return !A.group || !H ? !1 : je.value.some((b) => {
|
|
5855
5859
|
if (b.field === H)
|
|
5856
5860
|
return !0;
|
|
5857
5861
|
});
|
|
5858
5862
|
}, p = (() => {
|
|
5859
|
-
const
|
|
5863
|
+
const D = {
|
|
5860
5864
|
suppressHeaderFilterButton: !a.enableInlineFilters,
|
|
5861
5865
|
editable: !1,
|
|
5862
5866
|
sortable: !0,
|
|
@@ -5874,7 +5878,7 @@ const Cl = (e) => {
|
|
|
5874
5878
|
component: sd,
|
|
5875
5879
|
params: A
|
|
5876
5880
|
};
|
|
5877
|
-
if (!A.column?.getColDef().cellRenderer && a.displayRowNumber &&
|
|
5881
|
+
if (!A.column?.getColDef().cellRenderer && a.displayRowNumber && T.value.length === 0) {
|
|
5878
5882
|
const H = A.api.getAllDisplayedColumns() || [], b = A.column;
|
|
5879
5883
|
if (H.findIndex((E) => E === b) === 0)
|
|
5880
5884
|
return {
|
|
@@ -5884,77 +5888,77 @@ const Cl = (e) => {
|
|
|
5884
5888
|
}
|
|
5885
5889
|
}
|
|
5886
5890
|
};
|
|
5887
|
-
return a.defaultColDefOverrides && Object.assign(
|
|
5888
|
-
})(),
|
|
5891
|
+
return a.defaultColDefOverrides && Object.assign(D, a.defaultColDefOverrides), D;
|
|
5892
|
+
})(), m = P(void 0), h = v(() => (D) => {
|
|
5889
5893
|
if (a.getContextMenuItems)
|
|
5890
|
-
return a.getContextMenuItems(
|
|
5894
|
+
return a.getContextMenuItems(D);
|
|
5891
5895
|
const A = [];
|
|
5892
5896
|
return A.push("copy"), a.suppressCutToClipboard || A.push("cut"), a.suppressClipboardPaste || A.push("paste"), A;
|
|
5893
5897
|
}), y = {
|
|
5894
5898
|
name: "Column Filter",
|
|
5895
5899
|
icon: '<span class="ag-icon ag-icon-filter"></span>',
|
|
5896
|
-
action: function(
|
|
5897
|
-
let A =
|
|
5898
|
-
if (
|
|
5899
|
-
const b =
|
|
5900
|
-
b && (
|
|
5900
|
+
action: function(D) {
|
|
5901
|
+
let A = D.column?.getColId();
|
|
5902
|
+
if (D.column && it(D.column) && (A = De.value?.getColId() || ""), !ye(A)) {
|
|
5903
|
+
const b = D.api.getColumn(A)?.getColDef();
|
|
5904
|
+
b && (R.value = b, Tt(() => {
|
|
5901
5905
|
ye(A);
|
|
5902
5906
|
}));
|
|
5903
5907
|
}
|
|
5904
5908
|
}
|
|
5905
|
-
}, F = (
|
|
5906
|
-
const H = { ...
|
|
5907
|
-
return A.aggregateFields && A.aggregateFields.length > 0 && (H.hide = !0), A.isArrayField && !
|
|
5908
|
-
}, g = a.colDefs?.map((
|
|
5909
|
-
let A = { ...
|
|
5910
|
-
u && c && vo(
|
|
5911
|
-
const H =
|
|
5909
|
+
}, F = (D, A) => {
|
|
5910
|
+
const H = { ...D };
|
|
5911
|
+
return A.aggregateFields && A.aggregateFields.length > 0 && (H.hide = !0), A.isArrayField && !D.valueFormatter ? H.valueFormatter = (b) => Pr(b, A.dataType) : A.dataType === Xe.Percent && !D.valueFormatter ? H.valueFormatter = (b) => $r(b, A.valueDecimals || 0) : A.dataType === Xe.Currency && !D.valueFormatter ? H.valueFormatter = (b) => va(b, A.valueDecimals || 0) : A.dataType === Xe.Integer && !D.valueFormatter ? H.valueFormatter = Or : A.dataType === Xe.Tag && !D.cellRenderer && (H.cellRenderer = qd), H;
|
|
5912
|
+
}, g = a.colDefs?.map((D) => {
|
|
5913
|
+
let A = { ...D };
|
|
5914
|
+
u && c && vo(D) && (A = ad(D, c));
|
|
5915
|
+
const H = D.context;
|
|
5912
5916
|
return H && (A = F(A, H)), A;
|
|
5913
|
-
}) || [], S = Zn(a.initialGridState, g),
|
|
5914
|
-
if (
|
|
5915
|
-
const
|
|
5916
|
-
if ((!ee.value || !ee.value[
|
|
5917
|
+
}) || [], S = Zn(a.initialGridState, g), R = P(null), T = P([]), k = P(!1), _ = P(!1), $ = v(() => {
|
|
5918
|
+
if (T.value.length > 0) {
|
|
5919
|
+
const D = T.value[0], A = g.find((b) => b.field === D);
|
|
5920
|
+
if ((!ee.value || !ee.value[D]) && A?.context?.filterRequiredToGroup)
|
|
5917
5921
|
return A.headerName;
|
|
5918
5922
|
}
|
|
5919
5923
|
return null;
|
|
5920
|
-
}), C =
|
|
5924
|
+
}), C = v(() => (!ee.value || Object.keys(ee.value).length === 0) && a.requireFiltersToShowData ? !1 : $.value === null), V = v(() => $.value ? `Select at least one value for "${$.value}" to view data.` : "Select a filter to view data."), O = el(null), L = P([]), N = In(), K = de(wn, null), X = K || gl(), ee = N.filterModel, ue = N.filterValueMap, G = N.filterValueSelectedMetadataMap, W = N.fetchFilterValues, B = N.filterStoreHandler, ae = N.tableSearchFilterModel, fe = N.tableSearchHandler;
|
|
5921
5925
|
B.value = a.filterValuesSetHandler, fe.value = a.tableSearchHandler, ue.value = a.initialFilterValueMap || {};
|
|
5922
|
-
const he =
|
|
5923
|
-
ve(ml, N), ve(wn, X), ve(Ua, L), ve(Pt,
|
|
5924
|
-
const We =
|
|
5926
|
+
const he = P(null), J = v(() => X?.computedFocusType.value || null), ce = v(() => X?.computedFocuses.value || []), xe = v(() => g.filter((D) => D.filter)), Ee = v(() => g.filter((D) => D.enableRowGroup)), je = v(() => g.filter((D) => D.aggFunc)), De = P(null), st = P({}), Ue = P(1), tt = P(0);
|
|
5927
|
+
ve(ml, N), ve(wn, X), ve(Ua, L), ve(Pt, O), ve(Oc, he), ve(Wa, R), ve(Ya, xe), ve(An, Ee), ve(hl, T), ve(Qa, De), ve(yl, st), ve(Za, k), ve(Xa, _), ve(Ja, Ue), ve(eo, tt);
|
|
5928
|
+
const We = v(() => !a.enableFocusView && !a.rowData || a.enableFocusView && !ce.value.length && !J.value ? a.rowData : ta(a.rowData, J.value, ce.value));
|
|
5925
5929
|
re(
|
|
5926
5930
|
() => ce.value,
|
|
5927
|
-
(
|
|
5928
|
-
i("focus-update", { filterField: J.value, focuses:
|
|
5931
|
+
(D) => {
|
|
5932
|
+
i("focus-update", { filterField: J.value, focuses: D });
|
|
5929
5933
|
}
|
|
5930
5934
|
);
|
|
5931
|
-
const Be = (
|
|
5932
|
-
|
|
5933
|
-
const A = a.leftPinnedColumnName ?? (
|
|
5934
|
-
a.hideAllRowGroupedColumns &&
|
|
5935
|
-
}, gt = (
|
|
5936
|
-
if (
|
|
5937
|
-
const A =
|
|
5938
|
-
aa(ee.value, A) || (ee.value = A, k.value && i("filter-changed",
|
|
5935
|
+
const Be = (D) => {
|
|
5936
|
+
O.value = D.api;
|
|
5937
|
+
const A = a.leftPinnedColumnName ?? (T.value.length ? T.value[0] : null), H = [];
|
|
5938
|
+
a.hideAllRowGroupedColumns && T.value.forEach((b) => H.push(b)), A && (De.value = D.api.getColumn(A), H.push(A)), S && sn(S), D.api.setColumnsVisible([...H], !1), he.value = D.api.getAllGridColumns(), Ue.value = D.api.paginationGetCurrentPage() + 1, tt.value = D.api.paginationGetTotalPages(), i("grid-ready", D);
|
|
5939
|
+
}, gt = (D) => {
|
|
5940
|
+
if (O.value) {
|
|
5941
|
+
const A = D.api.getFilterModel();
|
|
5942
|
+
aa(ee.value, A) || (ee.value = A, k.value && i("filter-changed", D));
|
|
5939
5943
|
}
|
|
5940
|
-
}, ft = (
|
|
5941
|
-
L.value =
|
|
5942
|
-
}, it = (
|
|
5943
|
-
if (
|
|
5944
|
+
}, ft = (D) => {
|
|
5945
|
+
L.value = D.api?.getState()?.sort?.sortModel || [], k.value && i("sort-changed", D);
|
|
5946
|
+
}, it = (D) => D.getColId() && D.getColId().includes("ag-Grid-AutoColumn"), Re = P(!1), ut = async (D) => {
|
|
5947
|
+
if (!O.value) {
|
|
5944
5948
|
console.error("Grid API not available");
|
|
5945
5949
|
return;
|
|
5946
5950
|
}
|
|
5947
5951
|
if (!u)
|
|
5948
5952
|
return;
|
|
5949
|
-
const A =
|
|
5950
|
-
|
|
5953
|
+
const A = D || { route: [], purge: !0 };
|
|
5954
|
+
O.value.refreshServerSide(A);
|
|
5951
5955
|
}, bt = () => G.value, Ye = async () => {
|
|
5952
|
-
if (Re.value = !0,
|
|
5956
|
+
if (Re.value = !0, !O.value)
|
|
5953
5957
|
return console.error("Grid API not available"), Re.value = !1, null;
|
|
5954
5958
|
try {
|
|
5955
|
-
const
|
|
5959
|
+
const D = a.serverSideCsvHandler, A = O.value?.getState(), H = {
|
|
5956
5960
|
rowGroupCols: [],
|
|
5957
|
-
valueCols:
|
|
5961
|
+
valueCols: O.value?.getValueColumns().map((w) => ({
|
|
5958
5962
|
id: w.getId(),
|
|
5959
5963
|
field: w.getColDef().field,
|
|
5960
5964
|
aggFunc: typeof w.getColDef().aggFunc == "string" ? w.getColDef().aggFunc : void 0,
|
|
@@ -5968,11 +5972,11 @@ const Cl = (e) => {
|
|
|
5968
5972
|
startRow: 0,
|
|
5969
5973
|
endRow: a.csvRowLimit
|
|
5970
5974
|
};
|
|
5971
|
-
if (
|
|
5975
|
+
if (D) {
|
|
5972
5976
|
const w = {
|
|
5973
5977
|
request: H,
|
|
5974
5978
|
parentNode: {},
|
|
5975
|
-
api:
|
|
5979
|
+
api: O.value,
|
|
5976
5980
|
context: void 0,
|
|
5977
5981
|
success: () => {
|
|
5978
5982
|
},
|
|
@@ -5983,13 +5987,13 @@ const Cl = (e) => {
|
|
|
5983
5987
|
}
|
|
5984
5988
|
const b = a.serverSideRowHandler;
|
|
5985
5989
|
return b ? await new Promise((w, E) => {
|
|
5986
|
-
const Y =
|
|
5990
|
+
const Y = O.value?.getState(), ie = {
|
|
5987
5991
|
request: H,
|
|
5988
5992
|
parentNode: {},
|
|
5989
|
-
api:
|
|
5993
|
+
api: O.value,
|
|
5990
5994
|
context: void 0,
|
|
5991
5995
|
success: (me) => {
|
|
5992
|
-
const le =
|
|
5996
|
+
const le = O.value?.getRowGroupColumns().map((Ie) => Ie.getColDef().field).filter((Ie) => !!Ie) || [], Se = O.value?.getAllDisplayedColumns().map((Ie) => Ie.getColDef().field).filter((Ie) => !!Ie) || [], Ae = O.value?.getValueColumns().map((Ie) => Ie.getColDef().field).filter((Ie) => !!Ie) || [], _e = Array.from(/* @__PURE__ */ new Set([...le, ...Se, ...Ae])), at = me.rowData.map((Ie) => {
|
|
5993
5997
|
const Nn = {};
|
|
5994
5998
|
return _e.forEach((dn) => {
|
|
5995
5999
|
const xl = Ie[dn];
|
|
@@ -6003,9 +6007,9 @@ const Cl = (e) => {
|
|
|
6003
6007
|
}
|
|
6004
6008
|
};
|
|
6005
6009
|
b(ie, !0);
|
|
6006
|
-
}) : (console.warn("Client-side export does not return CSV string"), Re.value = !1,
|
|
6007
|
-
} catch (
|
|
6008
|
-
return console.error("CSV export failed",
|
|
6010
|
+
}) : (console.warn("Client-side export does not return CSV string"), Re.value = !1, O.value.exportDataAsCsv(), null);
|
|
6011
|
+
} catch (D) {
|
|
6012
|
+
return console.error("CSV export failed", D), Re.value = !1, null;
|
|
6009
6013
|
}
|
|
6010
6014
|
};
|
|
6011
6015
|
t({
|
|
@@ -6014,44 +6018,44 @@ const Cl = (e) => {
|
|
|
6014
6018
|
getFilterValueSelectedMetadataMap: bt,
|
|
6015
6019
|
availableRowGroupColumns: Ee,
|
|
6016
6020
|
availableAggFuncColumns: je,
|
|
6017
|
-
rowGroupColumnFields:
|
|
6021
|
+
rowGroupColumnFields: T
|
|
6018
6022
|
});
|
|
6019
|
-
const ct = (
|
|
6023
|
+
const ct = (D) => {
|
|
6020
6024
|
Tt(() => {
|
|
6021
|
-
const A = De.value, H =
|
|
6025
|
+
const A = De.value, H = D.api.getRowGroupColumns(), b = H.length > 0;
|
|
6022
6026
|
let w;
|
|
6023
|
-
b && a.leftPinnedColumnName && (w =
|
|
6027
|
+
b && a.leftPinnedColumnName && (w = D.api.getColumn(a.leftPinnedColumnName || "")), b && !a.leftPinnedColumnName && (w = H[0]), w ? (De.value = w, lt.value.headerName = w.getColDef().headerName, lt.value.headerComponent = a.enableInlineFilters ? void 0 : sa, lt.value.context = {
|
|
6024
6028
|
dataType: De.value?.getColDef().context?.dataType || null
|
|
6025
|
-
},
|
|
6029
|
+
}, D.api.setColumnsVisible([w.getColId()], !1)) : (De.value = null, lt.value.headerName = "", lt.value.headerComponent = void 0, lt.value.context = null);
|
|
6026
6030
|
const E = A?.getColId();
|
|
6027
|
-
if ((!w || E !== w.getColId()) &&
|
|
6028
|
-
const Y =
|
|
6031
|
+
if ((!w || E !== w.getColId()) && D.api.setColumnsVisible([E || ""], !0), T.value = [...H].map((Y) => Y.getColId()), a.enableFocusView && !K) {
|
|
6032
|
+
const Y = T.value.length > 0 ? T.value[0] : null;
|
|
6029
6033
|
X.setFocusType(Y);
|
|
6030
6034
|
}
|
|
6031
|
-
k.value && i("column-row-group-changed",
|
|
6035
|
+
k.value && i("column-row-group-changed", D);
|
|
6032
6036
|
});
|
|
6033
|
-
}, nt = (
|
|
6034
|
-
const A =
|
|
6037
|
+
}, nt = (D) => {
|
|
6038
|
+
const A = D.column?.getColId() || "";
|
|
6035
6039
|
if (A === De.value?.getColId()) {
|
|
6036
|
-
|
|
6040
|
+
D.api.setColumnsVisible([A], !1);
|
|
6037
6041
|
return;
|
|
6038
6042
|
}
|
|
6039
|
-
}, j = (
|
|
6040
|
-
|
|
6041
|
-
}, Z = (
|
|
6042
|
-
|
|
6043
|
-
}, Q = (
|
|
6044
|
-
const A = document.querySelector(`[data-horizontal-filter-field="${
|
|
6043
|
+
}, j = (D) => {
|
|
6044
|
+
D.finished && (he.value = D.api.getAllGridColumns()), k.value && i("column-moved", D);
|
|
6045
|
+
}, Z = (D) => {
|
|
6046
|
+
D.api && (Ue.value = D.api.paginationGetCurrentPage() + 1, tt.value = D.api.paginationGetTotalPages());
|
|
6047
|
+
}, Q = (D) => "allChildrenRowCount" in D && D.allChildrenRowCount || 0, ye = (D) => {
|
|
6048
|
+
const A = document.querySelector(`[data-horizontal-filter-field="${D}"]`);
|
|
6045
6049
|
if (A) {
|
|
6046
6050
|
const H = A.querySelector("button");
|
|
6047
6051
|
if (H)
|
|
6048
6052
|
return H.click(), !0;
|
|
6049
6053
|
}
|
|
6050
6054
|
return !1;
|
|
6051
|
-
}, Ne =
|
|
6055
|
+
}, Ne = P(Nc), ze = P({
|
|
6052
6056
|
loadingMessage: "One moment please..."
|
|
6053
6057
|
}), Ct = (() => {
|
|
6054
|
-
const
|
|
6058
|
+
const D = {
|
|
6055
6059
|
headerName: "",
|
|
6056
6060
|
minWidth: 200,
|
|
6057
6061
|
suppressMovable: !0,
|
|
@@ -6067,25 +6071,25 @@ const Cl = (e) => {
|
|
|
6067
6071
|
displayCount: a.displayGroupCount,
|
|
6068
6072
|
formattedValue: A.valueFormatted,
|
|
6069
6073
|
rowNode: A.node,
|
|
6070
|
-
api:
|
|
6074
|
+
api: O.value
|
|
6071
6075
|
})
|
|
6072
6076
|
}
|
|
6073
6077
|
};
|
|
6074
|
-
return a.autoGroupColumnDefOverrides && Object.assign(
|
|
6075
|
-
})(), lt =
|
|
6076
|
-
if (
|
|
6078
|
+
return a.autoGroupColumnDefOverrides && Object.assign(D, a.autoGroupColumnDefOverrides), D;
|
|
6079
|
+
})(), lt = P(Ct), Bn = (D) => {
|
|
6080
|
+
if (D.node.group)
|
|
6077
6081
|
return { backgroundColor: "#F7F8F8" };
|
|
6078
6082
|
}, _n = {
|
|
6079
|
-
Median: (
|
|
6080
|
-
const A =
|
|
6081
|
-
if (
|
|
6083
|
+
Median: (D) => {
|
|
6084
|
+
const A = D.values;
|
|
6085
|
+
if (D.rowNode.leafGroup) {
|
|
6082
6086
|
const w = Xl(A);
|
|
6083
6087
|
return {
|
|
6084
6088
|
values: A,
|
|
6085
6089
|
value: w
|
|
6086
6090
|
};
|
|
6087
6091
|
}
|
|
6088
|
-
const H =
|
|
6092
|
+
const H = D.values.flatMap((w) => w.values || []), b = Xl(H);
|
|
6089
6093
|
return {
|
|
6090
6094
|
values: H,
|
|
6091
6095
|
value: b
|
|
@@ -6094,10 +6098,10 @@ const Cl = (e) => {
|
|
|
6094
6098
|
};
|
|
6095
6099
|
ll(() => {
|
|
6096
6100
|
cn.value = document.querySelector("body");
|
|
6097
|
-
const
|
|
6098
|
-
(
|
|
6101
|
+
const D = Array.isArray(a.rowData) && a.rowData.length > 0, A = typeof a.serverSideRowHandler == "function", H = typeof a.filterValuesSetHandler == "function";
|
|
6102
|
+
(D && A || D && H) && console.warn(
|
|
6099
6103
|
"Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."
|
|
6100
|
-
),
|
|
6104
|
+
), m.value = (b) => {
|
|
6101
6105
|
const w = [
|
|
6102
6106
|
"sortAscending",
|
|
6103
6107
|
"sortDescending",
|
|
@@ -6107,31 +6111,31 @@ const Cl = (e) => {
|
|
|
6107
6111
|
"valueAggSubMenu"
|
|
6108
6112
|
], E = b.column && it(b.column) ? De.value : b.column;
|
|
6109
6113
|
return !a.enableInlineFilters && E && E.getColDef().filter && w.splice(2, 0, y), w.filter((Y) => typeof Y == "string" ? b.defaultItems.includes(Y) : !0);
|
|
6110
|
-
}, S && (ee.value = S.filter?.filterModel || null,
|
|
6114
|
+
}, S && (ee.value = S.filter?.filterModel || null, T.value = S.rowGroup?.groupColIds || []);
|
|
6111
6115
|
});
|
|
6112
|
-
const sn = (
|
|
6113
|
-
const A =
|
|
6116
|
+
const sn = (D) => {
|
|
6117
|
+
const A = O.value;
|
|
6114
6118
|
if (!A) return;
|
|
6115
|
-
const H =
|
|
6116
|
-
H && !aa(H, A.getFilterModel()) && A.setFilterModel(H), a.isTableGrouped && b && !ol(b,
|
|
6119
|
+
const H = D.filter?.filterModel || null, b = D.rowGroup?.groupColIds || null, w = D.columnVisibility || null;
|
|
6120
|
+
H && !aa(H, A.getFilterModel()) && A.setFilterModel(H), a.isTableGrouped && b && !ol(b, T.value) && A.setRowGroupColumns(b), w?.hiddenColIds && A.setColumnsVisible(w.hiddenColIds, !1);
|
|
6117
6121
|
};
|
|
6118
6122
|
re(
|
|
6119
6123
|
() => a.initialGridState,
|
|
6120
6124
|
() => {
|
|
6121
6125
|
if (a.initialGridState) {
|
|
6122
|
-
const
|
|
6123
|
-
|
|
6126
|
+
const D = Zn(a.initialGridState, g);
|
|
6127
|
+
D && sn(D);
|
|
6124
6128
|
}
|
|
6125
6129
|
},
|
|
6126
6130
|
{ deep: !0 }
|
|
6127
6131
|
);
|
|
6128
|
-
const Mt = (
|
|
6129
|
-
k.value = !0, i("first-data-rendered",
|
|
6130
|
-
}, un = (
|
|
6132
|
+
const Mt = (D) => {
|
|
6133
|
+
k.value = !0, i("first-data-rendered", D);
|
|
6134
|
+
}, un = (D) => u ? a.isServerSideGroupOpenByDefault ? a.isServerSideGroupOpenByDefault(D) : D.rowNode.level === T.value.length - 2 : !1, En = v(() => {
|
|
6131
6135
|
if (!u)
|
|
6132
6136
|
return a.groupDefaultExpanded;
|
|
6133
|
-
}), cn =
|
|
6134
|
-
return (
|
|
6137
|
+
}), cn = P(null);
|
|
6138
|
+
return (D, A) => (d(), x("div", {
|
|
6135
6139
|
class: "pv-full-width",
|
|
6136
6140
|
style: Pe(r.value)
|
|
6137
6141
|
}, [
|
|
@@ -6147,7 +6151,7 @@ const Cl = (e) => {
|
|
|
6147
6151
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
6148
6152
|
"display-preferences-icon": e.displayPreferencesIcon,
|
|
6149
6153
|
"focusable-columns": e.focusableColumns,
|
|
6150
|
-
onHandleSettingsIcon: A[0] || (A[0] = (H) =>
|
|
6154
|
+
onHandleSettingsIcon: A[0] || (A[0] = (H) => D.$emit("handle-settings-icon", H)),
|
|
6151
6155
|
"max-horizontal-filters": a.maxHorizontalFilters
|
|
6152
6156
|
}, null, 8, ["enable-focus-view", "enable-vertical-panel", "display-preferences-icon", "focusable-columns", "max-horizontal-filters"])) : I("", !0)
|
|
6153
6157
|
], 8, ["to", "disabled"])),
|
|
@@ -6178,7 +6182,7 @@ const Cl = (e) => {
|
|
|
6178
6182
|
"search-style": e.tableSearchStyle
|
|
6179
6183
|
}, null, 8, ["placeholder", "disabled", "search-style"])) : I("", !0)
|
|
6180
6184
|
]),
|
|
6181
|
-
Ce(
|
|
6185
|
+
Ce(D.$slots, "top-slot")
|
|
6182
6186
|
], 2)) : I("", !0),
|
|
6183
6187
|
M("div", {
|
|
6184
6188
|
class: se(["pv-relative pv-stack-8", e.hideTable ? "pv-hide" : ""]),
|
|
@@ -6212,7 +6216,7 @@ const Cl = (e) => {
|
|
|
6212
6216
|
defaultColDef: z(p),
|
|
6213
6217
|
getChildCount: Q,
|
|
6214
6218
|
getContextMenuItems: h.value,
|
|
6215
|
-
getMainMenuItems:
|
|
6219
|
+
getMainMenuItems: m.value,
|
|
6216
6220
|
getRowStyle: Bn,
|
|
6217
6221
|
groupDefaultExpanded: En.value,
|
|
6218
6222
|
groupDisplayType: "singleColumn",
|
|
@@ -6266,35 +6270,35 @@ const Cl = (e) => {
|
|
|
6266
6270
|
useTeleport: t = !0,
|
|
6267
6271
|
popoverCssProperties: n
|
|
6268
6272
|
} = {}) => {
|
|
6269
|
-
const l =
|
|
6270
|
-
let
|
|
6271
|
-
for (;
|
|
6272
|
-
if (window.getComputedStyle(
|
|
6273
|
-
return
|
|
6274
|
-
|
|
6273
|
+
const l = P(null), o = P(null), a = P(null), r = P(null), s = (p) => {
|
|
6274
|
+
let m = p.parentElement;
|
|
6275
|
+
for (; m && m !== document.body; ) {
|
|
6276
|
+
if (window.getComputedStyle(m).position !== "static")
|
|
6277
|
+
return m;
|
|
6278
|
+
m = m.parentElement;
|
|
6275
6279
|
}
|
|
6276
6280
|
return null;
|
|
6277
|
-
}, i =
|
|
6281
|
+
}, i = v(() => {
|
|
6278
6282
|
if (!l.value || !o.value || !r.value?.popoverRoot) return 0;
|
|
6279
6283
|
let p = l.value.left + window.scrollX;
|
|
6280
6284
|
(e === "right" || e === "top right") && (p = l.value.left + l.value.width + window.scrollX);
|
|
6281
|
-
const
|
|
6282
|
-
if (
|
|
6283
|
-
const h =
|
|
6284
|
-
p -= h.left + window.scrollX -
|
|
6285
|
+
const m = s(r.value.popoverRoot);
|
|
6286
|
+
if (m) {
|
|
6287
|
+
const h = m.getBoundingClientRect();
|
|
6288
|
+
p -= h.left + window.scrollX - m.scrollLeft;
|
|
6285
6289
|
}
|
|
6286
6290
|
return p;
|
|
6287
|
-
}), u =
|
|
6291
|
+
}), u = v(() => {
|
|
6288
6292
|
if (!l.value || !o.value || !r.value?.popoverRoot) return 0;
|
|
6289
6293
|
let p = l.value.top + window.scrollY;
|
|
6290
6294
|
e === "top" || e === "top right" || (p += l.value.height);
|
|
6291
|
-
const
|
|
6292
|
-
if (
|
|
6293
|
-
const h =
|
|
6294
|
-
p -= h.top + window.scrollY -
|
|
6295
|
+
const m = s(r.value.popoverRoot);
|
|
6296
|
+
if (m) {
|
|
6297
|
+
const h = m.getBoundingClientRect();
|
|
6298
|
+
p -= h.top + window.scrollY - m.scrollTop;
|
|
6295
6299
|
}
|
|
6296
6300
|
return p;
|
|
6297
|
-
}), c =
|
|
6301
|
+
}), c = v(() => {
|
|
6298
6302
|
if (!t)
|
|
6299
6303
|
return n;
|
|
6300
6304
|
const p = {
|
|
@@ -6344,12 +6348,12 @@ const Cl = (e) => {
|
|
|
6344
6348
|
id: zt,
|
|
6345
6349
|
text: "",
|
|
6346
6350
|
disabled: !0
|
|
6347
|
-
}, o =
|
|
6351
|
+
}, o = v(() => t.activeOptionLimit ? Math.max(0, t.activeOptionLimit - n.value.length) : 0), a = v(() => !t.showPlaceholders || o.value === 0 ? [] : Array.from({ length: o.value }, (k, _) => ({
|
|
6348
6352
|
id: `${ia}${_}`,
|
|
6349
6353
|
text: "",
|
|
6350
6354
|
disabled: !0,
|
|
6351
6355
|
isPlaceholder: !0
|
|
6352
|
-
}))), r =
|
|
6356
|
+
}))), r = v(() => {
|
|
6353
6357
|
const k = new Set(n.value.map((_) => _.id));
|
|
6354
6358
|
return [
|
|
6355
6359
|
...n.value,
|
|
@@ -6364,8 +6368,8 @@ const Cl = (e) => {
|
|
|
6364
6368
|
let k = Array.from(s.value.children).map((C) => C.id);
|
|
6365
6369
|
const _ = k.findIndex((C) => C === zt);
|
|
6366
6370
|
_ !== -1 && (k = k.slice(0, _)), k = k.filter((C) => !C.startsWith("placeholder-"));
|
|
6367
|
-
const
|
|
6368
|
-
n.value =
|
|
6371
|
+
const $ = k.map((C) => t.options.find((V) => V.id === C) || null).filter(Boolean);
|
|
6372
|
+
n.value = $.slice(0, t.activeOptionLimit || 1 / 0);
|
|
6369
6373
|
};
|
|
6370
6374
|
Ke(() => {
|
|
6371
6375
|
s.value && (u = new pa(s.value, {
|
|
@@ -6379,8 +6383,8 @@ const Cl = (e) => {
|
|
|
6379
6383
|
const _ = k.related;
|
|
6380
6384
|
if (_?.id === zt || _?.id?.startsWith("placeholder-"))
|
|
6381
6385
|
return !1;
|
|
6382
|
-
const
|
|
6383
|
-
return
|
|
6386
|
+
const $ = t.options.find((C) => C.id === k.dragged.id);
|
|
6387
|
+
return $ && y($);
|
|
6384
6388
|
},
|
|
6385
6389
|
onEnd: () => {
|
|
6386
6390
|
c = null, f();
|
|
@@ -6392,17 +6396,17 @@ const Cl = (e) => {
|
|
|
6392
6396
|
});
|
|
6393
6397
|
const p = (k) => {
|
|
6394
6398
|
k.preventDefault(), c && k.currentTarget.classList.add("placeholder-drag-over");
|
|
6395
|
-
},
|
|
6399
|
+
}, m = (k) => {
|
|
6396
6400
|
k.currentTarget.classList.remove("placeholder-drag-over");
|
|
6397
6401
|
}, h = (k, _) => {
|
|
6398
6402
|
if (k.preventDefault(), k.currentTarget.classList.remove("placeholder-drag-over"), c) {
|
|
6399
|
-
const C = c.id, V = t.options.find((
|
|
6403
|
+
const C = c.id, V = t.options.find((O) => O.id === C);
|
|
6400
6404
|
if (V && !y(V)) {
|
|
6401
|
-
const
|
|
6402
|
-
|
|
6405
|
+
const O = [...n.value];
|
|
6406
|
+
O.splice(_ - 1, 0, V), n.value = O.slice(0, t.activeOptionLimit || 1 / 0), c.parentNode && c.parentNode.removeChild(c);
|
|
6403
6407
|
}
|
|
6404
6408
|
}
|
|
6405
|
-
}, y = (k) => n.value.some((_) => _.id === k.id), F =
|
|
6409
|
+
}, y = (k) => n.value.some((_) => _.id === k.id), F = v(() => t.activeOptionLimit ? n.value.length >= t.activeOptionLimit : !1), g = (k) => {
|
|
6406
6410
|
if (y(k))
|
|
6407
6411
|
n.value = n.value.filter((_) => _.id !== k.id);
|
|
6408
6412
|
else {
|
|
@@ -6410,12 +6414,12 @@ const Cl = (e) => {
|
|
|
6410
6414
|
return;
|
|
6411
6415
|
n.value = n.value.concat([k]);
|
|
6412
6416
|
}
|
|
6413
|
-
}, S = (k) => !y(k) && t.activeOptionLimit && n.value.length >= t.activeOptionLimit || k.disabled,
|
|
6417
|
+
}, S = (k) => !y(k) && t.activeOptionLimit && n.value.length >= t.activeOptionLimit || k.disabled, R = (k) => {
|
|
6414
6418
|
const _ = {
|
|
6415
6419
|
padding: "4px 8px"
|
|
6416
6420
|
};
|
|
6417
6421
|
return y(k) && (_.backgroundColor = "#E4F8F6", _.borderColor = "#16696D"), _;
|
|
6418
|
-
},
|
|
6422
|
+
}, T = (k) => {
|
|
6419
6423
|
const _ = {};
|
|
6420
6424
|
return S(k) && (_.backgroundColor = "transparent"), !y(k) && !S(k) ? _.color = "#16696D" : _.color = "#89989B", _;
|
|
6421
6425
|
};
|
|
@@ -6428,49 +6432,49 @@ const Cl = (e) => {
|
|
|
6428
6432
|
ref: s,
|
|
6429
6433
|
role: "list"
|
|
6430
6434
|
}, [
|
|
6431
|
-
(d(!0), x(oe, null, Oe(r.value, (
|
|
6432
|
-
key:
|
|
6433
|
-
id:
|
|
6435
|
+
(d(!0), x(oe, null, Oe(r.value, ($) => (d(), x("li", {
|
|
6436
|
+
key: $.id,
|
|
6437
|
+
id: $.id,
|
|
6434
6438
|
class: "pv-stack-4"
|
|
6435
6439
|
}, [
|
|
6436
|
-
|
|
6440
|
+
$.id === zt ? (d(), x("div", y1, [
|
|
6437
6441
|
M("div", {
|
|
6438
6442
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
6439
6443
|
"data-label": F.value ? `Maximum of ${t.activeOptionLimit}` : ""
|
|
6440
6444
|
}, null, 8, g1)
|
|
6441
|
-
])) :
|
|
6445
|
+
])) : $.id.includes(ia) ? (d(), x("div", {
|
|
6442
6446
|
key: 1,
|
|
6443
6447
|
class: "placeholder-zone",
|
|
6444
6448
|
onDragover: _[0] || (_[0] = (C) => p(C)),
|
|
6445
|
-
onDragleave: _[1] || (_[1] = (C) =>
|
|
6446
|
-
onDrop: (C) => h(C, parseInt(
|
|
6449
|
+
onDragleave: _[1] || (_[1] = (C) => m(C)),
|
|
6450
|
+
onDrop: (C) => h(C, parseInt($.id.split("-")[1]) + 1)
|
|
6447
6451
|
}, [
|
|
6448
6452
|
M("div", C1, [
|
|
6449
6453
|
M("span", x1, te(t.placeholderText), 1)
|
|
6450
6454
|
])
|
|
6451
6455
|
], 40, b1)) : (d(), x("div", {
|
|
6452
6456
|
key: 2,
|
|
6453
|
-
class: se(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !y(
|
|
6454
|
-
style: Pe(
|
|
6457
|
+
class: se(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !y($) && F.value ? "pv-menu-item-disabled" : ""]),
|
|
6458
|
+
style: Pe(R($))
|
|
6455
6459
|
}, [
|
|
6456
6460
|
M("div", S1, [
|
|
6457
6461
|
U(ge, {
|
|
6458
|
-
class: se(y(
|
|
6462
|
+
class: se(y($) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
6459
6463
|
name: "reorder"
|
|
6460
6464
|
}, null, 8, ["class"]),
|
|
6461
|
-
|
|
6465
|
+
$.icon ? (d(), q(ge, {
|
|
6462
6466
|
key: 0,
|
|
6463
|
-
class: se(y(
|
|
6464
|
-
name:
|
|
6467
|
+
class: se(y($) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
6468
|
+
name: $.icon
|
|
6465
6469
|
}, null, 8, ["class", "name"])) : I("", !0),
|
|
6466
|
-
M("span", w1, te(
|
|
6470
|
+
M("span", w1, te($.text), 1)
|
|
6467
6471
|
]),
|
|
6468
|
-
S(
|
|
6472
|
+
S($) ? (d(), x("div", F1)) : (d(), q(z(be), {
|
|
6469
6473
|
key: 0,
|
|
6470
|
-
"left-icon": y(
|
|
6474
|
+
"left-icon": y($) ? "remove-circle" : "add-circle",
|
|
6471
6475
|
variant: "ghost",
|
|
6472
|
-
style: Pe(
|
|
6473
|
-
onClick: (C) => g(
|
|
6476
|
+
style: Pe(T($)),
|
|
6477
|
+
onClick: (C) => g($)
|
|
6474
6478
|
}, null, 8, ["left-icon", "style", "onClick"]))
|
|
6475
6479
|
], 6))
|
|
6476
6480
|
], 8, h1))), 128))
|
|
@@ -6503,10 +6507,10 @@ const Cl = (e) => {
|
|
|
6503
6507
|
maxHeight: "900px"
|
|
6504
6508
|
},
|
|
6505
6509
|
useTeleport: !0
|
|
6506
|
-
}), r =
|
|
6510
|
+
}), r = P(!1), s = P(void 0), i = P(null), u = de(oo, P(void 0)), c = de(lo, P([])), f = de(ro, P(void 0)), p = de(ao, P([])), m = de(no, P([])), h = de(An, P([])), y = v(() => {
|
|
6507
6511
|
const G = u.value?.id ?? "";
|
|
6508
|
-
return
|
|
6509
|
-
}), F = de(so,
|
|
6512
|
+
return m.value.length > 1 && !G.endsWith("_stacked");
|
|
6513
|
+
}), F = de(so, P("")), g = de(io, P([])), S = de(uo, P(void 0)), R = de(co, P([]));
|
|
6510
6514
|
re(
|
|
6511
6515
|
y,
|
|
6512
6516
|
(G) => {
|
|
@@ -6514,13 +6518,13 @@ const Cl = (e) => {
|
|
|
6514
6518
|
},
|
|
6515
6519
|
{ immediate: !0 }
|
|
6516
6520
|
);
|
|
6517
|
-
const
|
|
6521
|
+
const T = de(to, P("")), k = v(() => {
|
|
6518
6522
|
const G = [];
|
|
6519
6523
|
return t.chartFilter && t.chartFilter.options ? t.chartFilter.options.map((W) => ({
|
|
6520
6524
|
label: W.label,
|
|
6521
6525
|
value: W.value
|
|
6522
6526
|
})) : G;
|
|
6523
|
-
}), _ =
|
|
6527
|
+
}), _ = v(() => u.value ? (m.value.length > 1 ? ["bar_stacked", "line", "column_stacked", "area"] : ["bar", "line", "column", "area"]).includes(u.value?.id) : void 0);
|
|
6524
6528
|
re(c, (G) => {
|
|
6525
6529
|
if (!u.value) return;
|
|
6526
6530
|
const W = u.value, B = W?.id.endsWith("_stacked"), ae = G.find((fe) => fe.id === W.id);
|
|
@@ -6537,44 +6541,44 @@ const Cl = (e) => {
|
|
|
6537
6541
|
}
|
|
6538
6542
|
u.value = G[0];
|
|
6539
6543
|
});
|
|
6540
|
-
const
|
|
6544
|
+
const $ = v(() => g.value.map((G) => ({
|
|
6541
6545
|
id: G.value,
|
|
6542
6546
|
text: G.label
|
|
6543
|
-
}))), C =
|
|
6547
|
+
}))), C = v(() => R.value.map((G) => ({
|
|
6544
6548
|
id: G.value,
|
|
6545
6549
|
text: G.label
|
|
6546
|
-
}))), V =
|
|
6550
|
+
}))), V = v(() => h.value.map((G) => ({
|
|
6547
6551
|
id: G.field || "",
|
|
6548
6552
|
text: G.headerName || G.field || "",
|
|
6549
6553
|
icon: Cl(G.context?.dataType || null) || "circle-chevron-down"
|
|
6550
|
-
}))),
|
|
6551
|
-
const W =
|
|
6552
|
-
(G.length !== W.length || !G.every((B) => W.includes(B))) && (
|
|
6554
|
+
}))), O = P([]), L = (G) => {
|
|
6555
|
+
const W = O.value.map((B) => B.id);
|
|
6556
|
+
(G.length !== W.length || !G.every((B) => W.includes(B))) && (O.value = G.map((B) => V.value.find((ae) => ae.id === B)).filter(Boolean));
|
|
6553
6557
|
};
|
|
6554
6558
|
re(
|
|
6555
|
-
|
|
6559
|
+
m,
|
|
6556
6560
|
(G) => {
|
|
6557
6561
|
L(G);
|
|
6558
6562
|
},
|
|
6559
6563
|
{ immediate: !0 }
|
|
6560
6564
|
), re(V, () => {
|
|
6561
|
-
L(
|
|
6565
|
+
L(m.value);
|
|
6562
6566
|
}), re(
|
|
6563
|
-
|
|
6567
|
+
O,
|
|
6564
6568
|
(G) => {
|
|
6565
|
-
|
|
6569
|
+
m.value = G.map((W) => W.id);
|
|
6566
6570
|
},
|
|
6567
6571
|
{ deep: !0 }
|
|
6568
6572
|
);
|
|
6569
|
-
const N =
|
|
6573
|
+
const N = v(() => {
|
|
6570
6574
|
const G = [], W = {
|
|
6571
6575
|
value: "y-axis",
|
|
6572
6576
|
label: "Y Axis",
|
|
6573
6577
|
prefixLabel: "Y Axis",
|
|
6574
6578
|
icon: "chart-bar-decreasing",
|
|
6575
6579
|
allowDeselect: !1,
|
|
6576
|
-
availableOptions:
|
|
6577
|
-
currentOption:
|
|
6580
|
+
availableOptions: $.value,
|
|
6581
|
+
currentOption: $.value.find((J) => J.id === F.value),
|
|
6578
6582
|
updateSelectedOption: (J) => {
|
|
6579
6583
|
F && J !== F.value && (F.value = J);
|
|
6580
6584
|
}
|
|
@@ -6600,7 +6604,7 @@ const Cl = (e) => {
|
|
|
6600
6604
|
icon: "align-end-horizontal",
|
|
6601
6605
|
allowDeselect: !1,
|
|
6602
6606
|
availableOptions: V.value,
|
|
6603
|
-
activeOptions:
|
|
6607
|
+
activeOptions: O,
|
|
6604
6608
|
activeOptionLimit: t.rowGroupLimit
|
|
6605
6609
|
}, fe = {
|
|
6606
6610
|
value: "sort",
|
|
@@ -6631,12 +6635,12 @@ const Cl = (e) => {
|
|
|
6631
6635
|
ce && u && (u.value = ce);
|
|
6632
6636
|
}
|
|
6633
6637
|
};
|
|
6634
|
-
return
|
|
6638
|
+
return $.value.length > 1 && G.push(W), C.value.length > 0 && G.push(B), V.value.length > 1 && G.push(ae), c.value.length > 1 && G.push(he), p.value.length > 0 && G.push(fe), G.filter((J) => t.chartConfigOptions ? t.chartConfigOptions.includes(J.value) : !0);
|
|
6635
6639
|
});
|
|
6636
6640
|
re(i, (G) => {
|
|
6637
6641
|
G?.popoverRef && (a.value = G?.popoverRef);
|
|
6638
6642
|
});
|
|
6639
|
-
const K =
|
|
6643
|
+
const K = v(() => s.value && N.value.find((G) => G.value === s.value) || null), X = (G) => {
|
|
6640
6644
|
s.value = G, o.value = document.getElementById(`pv-chart-config-${G}`), l();
|
|
6641
6645
|
}, ee = () => {
|
|
6642
6646
|
r.value = !1, s.value = void 0;
|
|
@@ -6723,8 +6727,8 @@ const Cl = (e) => {
|
|
|
6723
6727
|
e.chartFilter ? (d(), q(ci, {
|
|
6724
6728
|
key: 0,
|
|
6725
6729
|
options: k.value,
|
|
6726
|
-
modelValue: z(
|
|
6727
|
-
"onUpdate:modelValue": W[1] || (W[1] = (B) => Tn(
|
|
6730
|
+
modelValue: z(T),
|
|
6731
|
+
"onUpdate:modelValue": W[1] || (W[1] = (B) => Tn(T) ? T.value = B : null)
|
|
6728
6732
|
}, null, 8, ["options", "modelValue"])) : I("", !0),
|
|
6729
6733
|
e.useCombinedButton ? I("", !0) : (d(), x("div", R1, [
|
|
6730
6734
|
(d(!0), x(oe, null, Oe(N.value, (B) => (d(), x(oe, {
|
|
@@ -6853,8 +6857,8 @@ const Cl = (e) => {
|
|
|
6853
6857
|
i[c] || (i[c] = {});
|
|
6854
6858
|
const f = u[n], p = go(f);
|
|
6855
6859
|
i[c][p] = `${c}-${f}`;
|
|
6856
|
-
for (const
|
|
6857
|
-
const h =
|
|
6860
|
+
for (const m of l) {
|
|
6861
|
+
const h = m.value;
|
|
6858
6862
|
let y = 0;
|
|
6859
6863
|
c in i && `${h}_sort_total` in i[c] && (y = i[c][`${h}_sort_total`]);
|
|
6860
6864
|
const F = u[h];
|
|
@@ -6864,8 +6868,8 @@ const Cl = (e) => {
|
|
|
6864
6868
|
}
|
|
6865
6869
|
i[c][`${h}${Vt}`] = y;
|
|
6866
6870
|
}
|
|
6867
|
-
for (const
|
|
6868
|
-
i[c][
|
|
6871
|
+
for (const m of o)
|
|
6872
|
+
i[c][m.value] = u[m.value];
|
|
6869
6873
|
return i;
|
|
6870
6874
|
},
|
|
6871
6875
|
{}
|
|
@@ -6977,7 +6981,7 @@ const Cl = (e) => {
|
|
|
6977
6981
|
},
|
|
6978
6982
|
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"],
|
|
6979
6983
|
setup(e, { expose: t, emit: n }) {
|
|
6980
|
-
const l = e, o = n, a =
|
|
6984
|
+
const l = e, o = n, a = P(null), r = P(null), s = P(null), i = P(l.initialChartCollapsed ?? !1), u = "filter-panel-" + Qt()?.uid, c = P(!1), f = P(!1), p = P(0), m = v(() => (r.value?.availableRowGroupColumns || []).filter((w) => we(w).hideFromCharting !== !0)), h = P([]), y = v(() => h.value.length > 0 ? h.value[0] : ""), F = (b) => we(b).chartSeriesDisplayName || b.headerName || b.field || "", g = v(() => (r.value?.availableAggFuncColumns || []).filter((w) => {
|
|
6981
6985
|
const E = we(w);
|
|
6982
6986
|
return !E.hideFromCharting && !E.chartOnSecondaryAxes;
|
|
6983
6987
|
}).map((w) => {
|
|
@@ -6988,7 +6992,7 @@ const Cl = (e) => {
|
|
|
6988
6992
|
formatter: Y.valueFormatter,
|
|
6989
6993
|
dataType: Y.context?.dataType
|
|
6990
6994
|
};
|
|
6991
|
-
})), S =
|
|
6995
|
+
})), S = v(() => (r.value?.availableAggFuncColumns || []).filter((w) => {
|
|
6992
6996
|
const E = we(w);
|
|
6993
6997
|
return E.chartOnSecondaryAxes === !0 && !E.hideFromCharting;
|
|
6994
6998
|
}).map((w) => {
|
|
@@ -7000,7 +7004,7 @@ const Cl = (e) => {
|
|
|
7000
7004
|
dataType: Y.context?.dataType,
|
|
7001
7005
|
tooltipRenderer: Y.context?.customTooltipRenderer
|
|
7002
7006
|
};
|
|
7003
|
-
})),
|
|
7007
|
+
})), R = v(() => (r.value?.availableAggFuncColumns || []).filter((w) => {
|
|
7004
7008
|
const E = we(w);
|
|
7005
7009
|
return E.chartOnSecondaryAxes === !0 && E.hideFromCharting === !0;
|
|
7006
7010
|
}).map((w) => {
|
|
@@ -7011,17 +7015,17 @@ const Cl = (e) => {
|
|
|
7011
7015
|
formatter: Y.valueFormatter,
|
|
7012
7016
|
dataType: Y.context?.dataType
|
|
7013
7017
|
};
|
|
7014
|
-
})),
|
|
7015
|
-
ve(ml,
|
|
7018
|
+
})), T = ho();
|
|
7019
|
+
ve(ml, T);
|
|
7016
7020
|
const k = gl({
|
|
7017
7021
|
focusType: l.initialFocusData?.focusType,
|
|
7018
7022
|
focuses: l.initialFocusData?.focuses || []
|
|
7019
7023
|
});
|
|
7020
7024
|
ve(wn, k);
|
|
7021
|
-
const { setFilterSelectedValues: _ } =
|
|
7025
|
+
const { setFilterSelectedValues: _ } = T, $ = P(!1), C = P(l.enableGroupingToggle ? l.isTableGrouped : !0), V = v(() => k?.computedFocusType.value || null), O = v(() => k?.computedFocuses.value || []), L = (b) => {
|
|
7022
7026
|
a.value = b.api, C.value || a.value?.setRowGroupColumns([]), nt(b.api), o("grid-ready", b);
|
|
7023
7027
|
}, N = (b) => {
|
|
7024
|
-
|
|
7028
|
+
$.value = !0, o("first-data-rendered", b);
|
|
7025
7029
|
}, K = (b) => {
|
|
7026
7030
|
const w = h.value, E = b.api.getRowGroupColumns().map((Y) => Y.getColId());
|
|
7027
7031
|
C.value && JSON.stringify(w) !== JSON.stringify(E) && (h.value = E), o("column-row-group-changed", b);
|
|
@@ -7074,7 +7078,7 @@ const Cl = (e) => {
|
|
|
7074
7078
|
if (!b) return;
|
|
7075
7079
|
const E = G(b);
|
|
7076
7080
|
return E && typeof E.valueFormatter == "function" ? ee(b, E.valueFormatter, w) : ee(b, null, w);
|
|
7077
|
-
}, G = (b) => !b || !a.value ? null : a.value?.getColumnDef(b), W =
|
|
7081
|
+
}, G = (b) => !b || !a.value ? null : a.value?.getColumnDef(b), W = v(() => (h.value.length > 1 ? _1 : B1).filter((w) => l.enabledChartTypes?.includes(w.id))), B = P(void 0), ae = P([
|
|
7078
7082
|
{
|
|
7079
7083
|
text: "Ascending",
|
|
7080
7084
|
id: "asc",
|
|
@@ -7085,8 +7089,8 @@ const Cl = (e) => {
|
|
|
7085
7089
|
id: "desc",
|
|
7086
7090
|
icon: "arrow-down-narrow-wide"
|
|
7087
7091
|
}
|
|
7088
|
-
]), fe =
|
|
7089
|
-
ve(Pt, a), ve(to, je), ve(An,
|
|
7092
|
+
]), fe = P([]), he = P([]), J = P(l.yKey), ce = P(S.value[0]?.value), xe = P(null), Ee = P(ae.value.find((b) => b.id === l.initialSort || "")), je = P("");
|
|
7093
|
+
ve(Pt, a), ve(to, je), ve(An, m), ve(no, h), ve(lo, W), ve(ao, ae), ve(oo, B), ve(ro, Ee), ve(so, J), ve(io, g), ve(uo, ce), ve(co, S);
|
|
7090
7094
|
const De = (b) => {
|
|
7091
7095
|
const w = W.value.find((E) => E.id === b);
|
|
7092
7096
|
w ? B.value = w : B.value = W.value[0];
|
|
@@ -7116,20 +7120,20 @@ const Cl = (e) => {
|
|
|
7116
7120
|
});
|
|
7117
7121
|
}
|
|
7118
7122
|
});
|
|
7119
|
-
const st =
|
|
7123
|
+
const st = v(() => {
|
|
7120
7124
|
const b = g.value.find((w) => w.value === J.value);
|
|
7121
7125
|
return b ? b.label : "";
|
|
7122
|
-
}), Ue =
|
|
7126
|
+
}), Ue = v(() => S.value.find((w) => w.value === ce.value)), tt = v(() => {
|
|
7123
7127
|
const b = S.value.find((w) => w.value === ce.value);
|
|
7124
7128
|
return b ? b.label : "";
|
|
7125
|
-
}), We =
|
|
7129
|
+
}), We = v(() => B.value?.id.includes("bar")), Be = v(() => h.value.length > 1), gt = v(() => {
|
|
7126
7130
|
if (!B.value)
|
|
7127
7131
|
return [];
|
|
7128
7132
|
if (g.value.length === 0)
|
|
7129
7133
|
return [];
|
|
7130
7134
|
const b = it.value ? "bar" : B.value?.id || "";
|
|
7131
7135
|
return ["bar", "line", "area"].includes(b) ? ut.value : b === "pie" ? bt.value : (console.error("Unsupported chart type", b), ut.value);
|
|
7132
|
-
}), ft =
|
|
7136
|
+
}), ft = v(() => l.showSeriesLabels), it = v(() => B.value?.id.includes("column") || B.value?.id.includes("bar")), Re = v(() => B.value?.id.includes("stacked")), ut = v(() => {
|
|
7133
7137
|
const b = Re.value, w = it.value ? "bar" : B.value?.id;
|
|
7134
7138
|
let E = [];
|
|
7135
7139
|
const Y = ue(J.value, !0), ie = ue(xe.value?.fieldName, !0);
|
|
@@ -7201,7 +7205,7 @@ const Cl = (e) => {
|
|
|
7201
7205
|
}), E = [...E, _e];
|
|
7202
7206
|
}
|
|
7203
7207
|
return E;
|
|
7204
|
-
}), bt =
|
|
7208
|
+
}), bt = v(() => g.value.length === 0 ? [] : [{
|
|
7205
7209
|
type: "pie",
|
|
7206
7210
|
legendItemKey: y.value,
|
|
7207
7211
|
angleKey: J.value
|
|
@@ -7297,7 +7301,7 @@ const Cl = (e) => {
|
|
|
7297
7301
|
y.value,
|
|
7298
7302
|
w,
|
|
7299
7303
|
j.value,
|
|
7300
|
-
|
|
7304
|
+
R.value
|
|
7301
7305
|
);
|
|
7302
7306
|
he.value = E, xe.value = {
|
|
7303
7307
|
fieldName: w,
|
|
@@ -7310,13 +7314,13 @@ const Cl = (e) => {
|
|
|
7310
7314
|
const w = h.value.length;
|
|
7311
7315
|
if (Ye(), w === 0 || g.value.length === 0)
|
|
7312
7316
|
return;
|
|
7313
|
-
const E =
|
|
7317
|
+
const E = T.filterModel.value || {};
|
|
7314
7318
|
if (l.requireFiltersToShowData && Object.keys(E).length === 0)
|
|
7315
7319
|
return;
|
|
7316
7320
|
if (l.serverSideChartHandler) {
|
|
7317
7321
|
let le = { ...a.value?.getFilterModel() || {} };
|
|
7318
7322
|
const Se = a.value?.getColumnDefs() || [];
|
|
7319
|
-
|
|
7323
|
+
!$.value && l.initialGridState && Object.keys(le).length === 0 && (le = Zn(l.initialGridState, Se)?.filter?.filterModel || {});
|
|
7320
7324
|
const Ae = h.value.map(($e) => a.value?.getColumn($e)).filter(($e) => $e !== void 0), _e = {
|
|
7321
7325
|
rowGroupCols: oa(Ae || []),
|
|
7322
7326
|
valueCols: oa(a.value?.getValueColumns() || []),
|
|
@@ -7351,7 +7355,7 @@ const Cl = (e) => {
|
|
|
7351
7355
|
};
|
|
7352
7356
|
} else
|
|
7353
7357
|
he.value = [], xe.value = null;
|
|
7354
|
-
}, j =
|
|
7358
|
+
}, j = v(() => {
|
|
7355
7359
|
const b = g.value, w = S.value;
|
|
7356
7360
|
return [...new Map([...w, ...b].map((E) => [E.value, E])).values()];
|
|
7357
7361
|
}), Z = (b) => {
|
|
@@ -7382,7 +7386,7 @@ const Cl = (e) => {
|
|
|
7382
7386
|
rowData: Y,
|
|
7383
7387
|
fieldValues: E
|
|
7384
7388
|
};
|
|
7385
|
-
}, ye =
|
|
7389
|
+
}, ye = v(() => {
|
|
7386
7390
|
let b = Be.value ? he.value : fe.value, w = null;
|
|
7387
7391
|
if (Ee.value && (w = Be.value ? `${J.value}${Vt}` : J.value), w && b && Ee.value) {
|
|
7388
7392
|
const E = Ee.value?.id.includes("desc") ? -1 : 1;
|
|
@@ -7395,18 +7399,18 @@ const Cl = (e) => {
|
|
|
7395
7399
|
{ [y.value]: "" },
|
|
7396
7400
|
b[0],
|
|
7397
7401
|
{ [y.value]: " " }
|
|
7398
|
-
]), l.enableFocusView && b &&
|
|
7399
|
-
const E = b?.filter((ie) =>
|
|
7402
|
+
]), l.enableFocusView && b && O.value.length > 0 && V.value) {
|
|
7403
|
+
const E = b?.filter((ie) => O.value.includes(ie[y.value])), Y = b?.filter((ie) => !O.value.includes(ie[y.value]));
|
|
7400
7404
|
b = [...E || [], { [y.value]: Kn }, ...Y || []];
|
|
7401
7405
|
}
|
|
7402
7406
|
return b;
|
|
7403
|
-
}), Ne =
|
|
7407
|
+
}), Ne = v(() => ye.value?.length || 0), ze = v(() => {
|
|
7404
7408
|
const b = Be.value ? he.value : ye.value;
|
|
7405
7409
|
return N1(b, J.value, Be.value);
|
|
7406
|
-
}), Ct =
|
|
7410
|
+
}), Ct = v(() => xe.value?.fieldValues?.length || 0), lt = v(() => {
|
|
7407
7411
|
const ie = 0.25 * Math.exp(-0.12 * Ne.value);
|
|
7408
7412
|
return Math.min(Math.max(ie, 0.05), 0.75);
|
|
7409
|
-
}), Bn =
|
|
7413
|
+
}), Bn = v(() => Ct.value > 5 ? 0.5 : 1), _n = v(() => Ct.value > 5 ? 0.25 : 0.1), sn = v(() => !ye.value || ye.value?.length === 0 ? !0 : ze.value === -1 / 0 || Be.value === !0 && ze.value === 0), Mt = v(() => l.enableFocusView && V.value && O.value.length === 0 && l.percentOfFocusViewYKey && J.value && J.value === l.percentOfFocusViewYKey), un = v(() => {
|
|
7410
7414
|
if (h.value.length === 0)
|
|
7411
7415
|
return "No groups selected. Select at least one group to display data.";
|
|
7412
7416
|
if (Mt.value) {
|
|
@@ -7415,7 +7419,7 @@ const Cl = (e) => {
|
|
|
7415
7419
|
} else if (sn.value)
|
|
7416
7420
|
return ma;
|
|
7417
7421
|
return "";
|
|
7418
|
-
}), En =
|
|
7422
|
+
}), En = v(() => {
|
|
7419
7423
|
const b = {};
|
|
7420
7424
|
b.overlays = {
|
|
7421
7425
|
noData: {
|
|
@@ -7492,7 +7496,7 @@ const Cl = (e) => {
|
|
|
7492
7496
|
color: jt
|
|
7493
7497
|
}
|
|
7494
7498
|
}), b.axes = Y, b.series = gt.value, b;
|
|
7495
|
-
}), cn =
|
|
7499
|
+
}), cn = v(() => f.value || l.isLoading && (!ye.value || ye.value.length === 0)), D = v(() => Mt.value || !l.isLoading && un.value !== ""), A = (b) => {
|
|
7496
7500
|
i.value = b, o("chart-collapsed", b);
|
|
7497
7501
|
}, H = (b) => {
|
|
7498
7502
|
a.value && (a.value.setRowGroupColumns(b ? h.value : []), C.value = b);
|
|
@@ -7562,7 +7566,7 @@ const Cl = (e) => {
|
|
|
7562
7566
|
options: En.value,
|
|
7563
7567
|
enableFocusView: e.enableFocusView
|
|
7564
7568
|
}, null, 8, ["isLoading", "options", "enableFocusView"]),
|
|
7565
|
-
|
|
7569
|
+
D.value ? (d(), x("p", K1, [
|
|
7566
7570
|
Mt.value ? (d(), x(oe, { key: 0 }, [
|
|
7567
7571
|
w[10] || (w[10] = Le(" Select ", -1)),
|
|
7568
7572
|
U(ge, { name: "focus" })
|
|
@@ -10779,7 +10783,7 @@ const Cl = (e) => {
|
|
|
10779
10783
|
}),
|
|
10780
10784
|
emits: ["update:modelValue"],
|
|
10781
10785
|
setup(e) {
|
|
10782
|
-
const t = Fe(e, "modelValue"), n =
|
|
10786
|
+
const t = Fe(e, "modelValue"), n = P(void 0), l = e, o = v(() => {
|
|
10783
10787
|
if (l.topologyType !== "state")
|
|
10784
10788
|
throw new Error(`Unsupported topology type for state selector: ${l.topologyType}`);
|
|
10785
10789
|
return (l.selectableRegions ? l.selectableRegions : Object.keys(Co)).map((r) => ({
|
|
@@ -10833,19 +10837,19 @@ const Cl = (e) => {
|
|
|
10833
10837
|
}),
|
|
10834
10838
|
emits: /* @__PURE__ */ Te(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
10835
10839
|
setup(e, { emit: t }) {
|
|
10836
|
-
const n = e, l = Fe(e, "chartData"), o = Fe(e, "selectedRegion"), a = t, { getTopologyObject: r, buildMapData: s } = e4(), i =
|
|
10840
|
+
const n = e, l = Fe(e, "chartData"), o = Fe(e, "selectedRegion"), a = t, { getTopologyObject: r, buildMapData: s } = e4(), i = v(() => r(n.mapType)), u = v(() => s(
|
|
10837
10841
|
l.value,
|
|
10838
10842
|
n.mapType,
|
|
10839
10843
|
n.seriesKey,
|
|
10840
10844
|
n.gradientLegendMin,
|
|
10841
10845
|
n.gradientLegendMax
|
|
10842
|
-
)), c =
|
|
10846
|
+
)), c = v(() => u.value.filter((p) => p[n.mapType] !== Fn && p[n.mapType] !== kn).map((p) => p[n.mapType]));
|
|
10843
10847
|
re(o, (p) => {
|
|
10844
10848
|
a("region-selection-changed", {
|
|
10845
10849
|
region: p
|
|
10846
10850
|
});
|
|
10847
10851
|
});
|
|
10848
|
-
const f =
|
|
10852
|
+
const f = v(() => (o.value, {
|
|
10849
10853
|
data: u.value,
|
|
10850
10854
|
topology: i.value,
|
|
10851
10855
|
series: [
|
|
@@ -10855,22 +10859,22 @@ const Cl = (e) => {
|
|
|
10855
10859
|
colorKey: n.seriesKey,
|
|
10856
10860
|
colorRange: ["#CCF5F1", "#B0E8E4", "#6FD6CE", "#36C5BA", "#218C88", "#16696D", "#02363D"],
|
|
10857
10861
|
tooltip: {
|
|
10858
|
-
renderer: n.tooltipRenderer ? n.tooltipRenderer : ({ datum:
|
|
10862
|
+
renderer: n.tooltipRenderer ? n.tooltipRenderer : ({ datum: m }) => ({
|
|
10859
10863
|
data: [
|
|
10860
10864
|
{
|
|
10861
10865
|
label: n.seriesKey,
|
|
10862
|
-
value: n.seriesValueFormatter(
|
|
10866
|
+
value: n.seriesValueFormatter(m[n.seriesKey])
|
|
10863
10867
|
}
|
|
10864
10868
|
]
|
|
10865
10869
|
})
|
|
10866
10870
|
},
|
|
10867
10871
|
listeners: {
|
|
10868
|
-
seriesNodeClick: (
|
|
10869
|
-
const h =
|
|
10872
|
+
seriesNodeClick: (m) => {
|
|
10873
|
+
const h = m.datum[n.mapType];
|
|
10870
10874
|
o.value === h ? o.value = "" : o.value = h;
|
|
10871
10875
|
}
|
|
10872
10876
|
},
|
|
10873
|
-
itemStyler: (
|
|
10877
|
+
itemStyler: (m) => o.value == null || o.value === "" ? {} : m.datum[n.mapType] === o.value ? { stroke: "#4B595C", strokeWidth: 2, strokeOpacity: 1 } : { fillOpacity: 0.25, strokeOpacity: 0.1 }
|
|
10874
10878
|
},
|
|
10875
10879
|
{
|
|
10876
10880
|
type: "map-shape-background"
|
|
@@ -10885,11 +10889,11 @@ const Cl = (e) => {
|
|
|
10885
10889
|
enabled: !1
|
|
10886
10890
|
}
|
|
10887
10891
|
}));
|
|
10888
|
-
return (p,
|
|
10892
|
+
return (p, m) => (d(), x(oe, null, [
|
|
10889
10893
|
M("div", r4, [
|
|
10890
10894
|
U(o4, {
|
|
10891
10895
|
modelValue: o.value,
|
|
10892
|
-
"onUpdate:modelValue":
|
|
10896
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => o.value = h),
|
|
10893
10897
|
"selectable-regions": c.value,
|
|
10894
10898
|
"topology-type": e.mapType
|
|
10895
10899
|
}, null, 8, ["modelValue", "selectable-regions", "topology-type"]),
|