@turquoisehealth/pit-viper 2.252.0 → 2.253.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/_site/assets/css/pit-viper-a11y.css +27 -7
- package/_site/assets/css/pit-viper-consumer.css +27 -7
- package/_site/assets/css/pit-viper-v2-scoped.css +25 -7
- package/_site/assets/css/pit-viper-v2.css +27 -7
- package/_site/assets/css/pit-viper.css +27 -7
- 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-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-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-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-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/ai/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/ai/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
- package/pv-components/dist/vue/ai/components/base/PvTabs/types.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
- package/pv-components/dist/vue/base/components/base/PvTabs/types.d.ts +4 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1023 -929
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/horizontalFilterFit.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +9 -2
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2398 -2357
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +226 -223
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +5 -3
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1735 -1732
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +356 -353
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +650 -647
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1241 -1238
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +421 -418
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +108 -106
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +70 -67
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +343 -340
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +146 -143
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +805 -802
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +362 -359
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +694 -692
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +1312 -1185
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +177 -174
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +227 -224
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as D, onUpdated as O, openBlock as k, reactive as A, readonly as j, ref as M, renderList as N, renderSlot as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as D, onUpdated as O, openBlock as k, reactive as A, readonly as j, ref as M, renderList as N, renderSlot as ee, resolveDynamicComponent as P, shallowReactive as F, shallowRef as I, toDisplayString as L, toValue as R, unref as z, useAttrs as te, useId as ne, useModel as re, useSlots as B, useTemplateRef as ie, vModelCheckbox as ae, vModelText as V, vShow as oe, watch as H, watchEffect as se, withCtx as U, withDirectives as ce, withKeys as W, withModifiers as le } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, G = Object.getOwnPropertyNames, K = Object.prototype.hasOwnProperty, fe = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) ue(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
10
|
+
return t || ue(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
11
|
}, pe = (e, t, n, r) => {
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = G(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !K.call(e, s) && s !== n && ue(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = de(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
17
|
}, me = (e, t, n) => (pe(e, t, "default"), n && pe(n, t, "default")), he = /* @__PURE__ */ d({
|
|
@@ -119,7 +119,7 @@ var ve = [
|
|
|
119
119
|
return (e, t) => (k(), o("div", {
|
|
120
120
|
class: b(i.value),
|
|
121
121
|
"data-testid": "pv-counter-badge"
|
|
122
|
-
},
|
|
122
|
+
}, L(n.value), 3));
|
|
123
123
|
}
|
|
124
124
|
}), Se = ".pv-badge-md[data-v-c578e86e]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-c578e86e]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-c578e86e]{border-radius:50%}", Ce = (e, t) => {
|
|
125
125
|
let n = e.__vccOpts || e;
|
|
@@ -185,7 +185,7 @@ var ve = [
|
|
|
185
185
|
name: e.leftIcon,
|
|
186
186
|
"data-testid": "pv-button-left-icon"
|
|
187
187
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
188
|
-
e.label ? (k(), o("span", Ee,
|
|
188
|
+
e.label ? (k(), o("span", Ee, L(e.label), 1)) : a("v-if", !0),
|
|
189
189
|
e.rightCounterBadge ? (k(), i(we, {
|
|
190
190
|
key: 3,
|
|
191
191
|
value: e.rightCounterBadge,
|
|
@@ -236,8 +236,8 @@ var ve = [
|
|
|
236
236
|
}),
|
|
237
237
|
emits: ["update:modelValue"],
|
|
238
238
|
setup(e) {
|
|
239
|
-
let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i =
|
|
240
|
-
|
|
239
|
+
let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i = ie("dialog"), c = re(e, "modelValue");
|
|
240
|
+
H(() => c.value, () => {
|
|
241
241
|
c.value ? i.value?.showModal() : i.value?.close();
|
|
242
242
|
});
|
|
243
243
|
let l = () => {
|
|
@@ -251,7 +251,7 @@ var ve = [
|
|
|
251
251
|
style: S(n.value),
|
|
252
252
|
onClose: l,
|
|
253
253
|
onClick: u
|
|
254
|
-
}, [s("div", De, [e.hideHeader ? a("v-if", !0) : (k(), o("div", Oe, [s("span", X,
|
|
254
|
+
}, [s("div", De, [e.hideHeader ? a("v-if", !0) : (k(), o("div", Oe, [s("span", X, L(e.header), 1), e.subheader ? (k(), o("span", ke, L(e.subheader), 1)) : a("v-if", !0)])), ee(t.$slots, "body")]), e.hideFooter ? a("v-if", !0) : (k(), o("div", Ae, [ee(t.$slots, "footer")]))], 36));
|
|
255
255
|
}
|
|
256
256
|
});
|
|
257
257
|
//#endregion
|
|
@@ -283,7 +283,7 @@ function He(e, t = {}) {
|
|
|
283
283
|
clearTimeout(e), i(), i = Le;
|
|
284
284
|
}, o;
|
|
285
285
|
return (s) => {
|
|
286
|
-
let c =
|
|
286
|
+
let c = R(e), l = R(t.maxWait);
|
|
287
287
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
288
288
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
289
289
|
n && a(n), r = void 0, e(o());
|
|
@@ -305,7 +305,7 @@ function Ge(e, t = 200, n = {}) {
|
|
|
305
305
|
}
|
|
306
306
|
function Ke(e, t, n = {}) {
|
|
307
307
|
let { eventFilter: r = Ve, ...i } = n;
|
|
308
|
-
return
|
|
308
|
+
return H(e, Be(r, t), i);
|
|
309
309
|
}
|
|
310
310
|
function qe(e, t = !0, n) {
|
|
311
311
|
We(n) ? T(e, n) : t ? e() : y(e);
|
|
@@ -318,7 +318,7 @@ function Je(e, t, n = {}) {
|
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
function Ye(e, t, n) {
|
|
321
|
-
return
|
|
321
|
+
return H(e, t, {
|
|
322
322
|
...n,
|
|
323
323
|
immediate: !0
|
|
324
324
|
});
|
|
@@ -328,20 +328,20 @@ function Ye(e, t, n) {
|
|
|
328
328
|
var Xe = Ne ? window : void 0;
|
|
329
329
|
Ne && window.document, Ne && window.navigator, Ne && window.location;
|
|
330
330
|
function Z(e) {
|
|
331
|
-
let t =
|
|
331
|
+
let t = R(e);
|
|
332
332
|
return t?.$el ?? t;
|
|
333
333
|
}
|
|
334
334
|
function Ze(...e) {
|
|
335
335
|
let t = [], n = () => {
|
|
336
336
|
t.forEach((e) => e()), t.length = 0;
|
|
337
337
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
338
|
-
let t = Ue(
|
|
338
|
+
let t = Ue(R(e[0])).filter((e) => e != null);
|
|
339
339
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
340
340
|
}), o = Ye(() => [
|
|
341
341
|
a.value?.map((e) => Z(e)) ?? [Xe].filter((e) => e != null),
|
|
342
|
-
Ue(
|
|
343
|
-
Ue(
|
|
344
|
-
|
|
342
|
+
Ue(R(a.value ? e[1] : e[0])),
|
|
343
|
+
Ue(z(a.value ? e[2] : e[1])),
|
|
344
|
+
R(a.value ? e[3] : e[2])
|
|
345
345
|
], ([e, r, a, o]) => {
|
|
346
346
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
347
347
|
let s = Ie(o) ? { ...o } : o;
|
|
@@ -364,7 +364,7 @@ function $e(e, t, n = {}) {
|
|
|
364
364
|
let e = { passive: !0 };
|
|
365
365
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", Le, e)), r.document.documentElement.addEventListener("click", Le, e);
|
|
366
366
|
}
|
|
367
|
-
let c = !0, l = (e) =>
|
|
367
|
+
let c = !0, l = (e) => R(i).some((t) => {
|
|
368
368
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
369
369
|
{
|
|
370
370
|
let n = Z(t);
|
|
@@ -372,11 +372,11 @@ function $e(e, t, n = {}) {
|
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
function u(e) {
|
|
375
|
-
let t =
|
|
375
|
+
let t = R(e);
|
|
376
376
|
return t && t.$.subTree.shapeFlag === 16;
|
|
377
377
|
}
|
|
378
378
|
function d(e, t) {
|
|
379
|
-
let n =
|
|
379
|
+
let n = R(e), r = n.$.subTree && n.$.subTree.children;
|
|
380
380
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
381
381
|
}
|
|
382
382
|
let f = (n) => {
|
|
@@ -420,7 +420,7 @@ function $e(e, t, n = {}) {
|
|
|
420
420
|
}
|
|
421
421
|
/* @__NO_SIDE_EFFECTS__ */
|
|
422
422
|
function et() {
|
|
423
|
-
let e =
|
|
423
|
+
let e = I(!1), t = p();
|
|
424
424
|
return t && T(() => {
|
|
425
425
|
e.value = !0;
|
|
426
426
|
}, t), e;
|
|
@@ -433,8 +433,8 @@ function tt(e) {
|
|
|
433
433
|
function nt(e, t, n = {}) {
|
|
434
434
|
let { window: i = Xe, ...a } = n, o, s = /* @__PURE__ */ tt(() => i && "MutationObserver" in i), c = () => {
|
|
435
435
|
o &&= (o.disconnect(), void 0);
|
|
436
|
-
}, l =
|
|
437
|
-
let t = Ue(
|
|
436
|
+
}, l = H(r(() => {
|
|
437
|
+
let t = Ue(R(e)).map(Z).filter(Pe);
|
|
438
438
|
return new Set(t);
|
|
439
439
|
}), (e) => {
|
|
440
440
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -455,7 +455,7 @@ function rt(e, t, n = {}) {
|
|
|
455
455
|
if (!r || !i) return Le;
|
|
456
456
|
let o, s = (e) => {
|
|
457
457
|
o?.(), o = e;
|
|
458
|
-
}, c =
|
|
458
|
+
}, c = se(() => {
|
|
459
459
|
let n = Z(e);
|
|
460
460
|
if (n) {
|
|
461
461
|
let { stop: e } = nt(i, (e) => {
|
|
@@ -480,14 +480,14 @@ function at(...e) {
|
|
|
480
480
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
481
481
|
let { target: i = Xe, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = it(t);
|
|
482
482
|
return Ze(i, a, (e) => {
|
|
483
|
-
e.repeat &&
|
|
483
|
+
e.repeat && R(s) || c(e) && n(e);
|
|
484
484
|
}, o);
|
|
485
485
|
}
|
|
486
486
|
function ot(e, t, n = {}) {
|
|
487
487
|
let { window: i = Xe, ...a } = n, o, s = /* @__PURE__ */ tt(() => i && "ResizeObserver" in i), c = () => {
|
|
488
488
|
o &&= (o.disconnect(), void 0);
|
|
489
|
-
}, l =
|
|
490
|
-
let t =
|
|
489
|
+
}, l = H(r(() => {
|
|
490
|
+
let t = R(e);
|
|
491
491
|
return Array.isArray(t) ? t.map((e) => Z(e)) : [Z(t)];
|
|
492
492
|
}), (e) => {
|
|
493
493
|
if (c(), s.value && i) {
|
|
@@ -506,7 +506,7 @@ function ot(e, t, n = {}) {
|
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
508
|
function st(e, t = {}) {
|
|
509
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
509
|
+
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = I(0), c = I(0), l = I(0), u = I(0), d = I(0), f = I(0), p = I(0), m = I(0);
|
|
510
510
|
function h() {
|
|
511
511
|
let t = Z(e);
|
|
512
512
|
if (!t) {
|
|
@@ -519,7 +519,7 @@ function st(e, t = {}) {
|
|
|
519
519
|
function g() {
|
|
520
520
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
521
521
|
}
|
|
522
|
-
return ot(e, g),
|
|
522
|
+
return ot(e, g), H(() => Z(e), (e) => !e && g()), nt(e, g, { attributeFilter: ["style", "class"] }), i && Ze("scroll", g, {
|
|
523
523
|
capture: !0,
|
|
524
524
|
passive: !0
|
|
525
525
|
}), r && Ze("resize", g, { passive: !0 }), qe(() => {
|
|
@@ -537,7 +537,7 @@ function st(e, t = {}) {
|
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
539
|
function ct(e, t = {}) {
|
|
540
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Xe } = t, s =
|
|
540
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Xe } = t, s = I(!1), c, l = (e) => {
|
|
541
541
|
let t = e ? n : i;
|
|
542
542
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
543
543
|
};
|
|
@@ -574,7 +574,7 @@ var lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
|
574
574
|
}),
|
|
575
575
|
emits: ["update:modelValue"],
|
|
576
576
|
setup(e, { expose: t }) {
|
|
577
|
-
let n = e, i =
|
|
577
|
+
let n = e, i = ie("search-input"), c = re(e, "modelValue"), l = r(() => ({
|
|
578
578
|
"pv-input-search": !0,
|
|
579
579
|
"pv-full-width": !0,
|
|
580
580
|
"pv-input-padded-end": !0,
|
|
@@ -585,7 +585,7 @@ var lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
|
585
585
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
586
586
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
587
587
|
});
|
|
588
|
-
}), t({ input: i }), (t, n) => (k(), o("div", lt, [
|
|
588
|
+
}), t({ input: i }), (t, n) => (k(), o("div", lt, [ce(s("input", {
|
|
589
589
|
ref: "search-input",
|
|
590
590
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
591
591
|
"data-testid": "pv-search-input",
|
|
@@ -593,7 +593,7 @@ var lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
|
593
593
|
disabled: e.disabled,
|
|
594
594
|
class: b(l.value),
|
|
595
595
|
placeholder: e.placeholder
|
|
596
|
-
}, null, 10, ut), [[
|
|
596
|
+
}, null, 10, ut), [[V, c.value]]), e.displayShortcut ? (k(), o("kbd", dt, L(ft))) : a("v-if", !0)]));
|
|
597
597
|
}
|
|
598
598
|
}), [["styles", [".pv-input-search[data-v-9e0c84d9]{display:block}"]], ["__scopeId", "data-v-9e0c84d9"]]), mt = Math.min, ht = Math.max, gt = Math.round, _t = (e) => ({
|
|
599
599
|
x: e,
|
|
@@ -1380,7 +1380,7 @@ function ur(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r =
|
|
|
1380
1380
|
return a ? cr(a, t, r) : or(e, t, r);
|
|
1381
1381
|
}
|
|
1382
1382
|
function dr(e, t = {}) {
|
|
1383
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = _e(), l = i ??
|
|
1383
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = _e(), l = i ?? B(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = M(d());
|
|
1384
1384
|
w(() => {
|
|
1385
1385
|
f.value = d();
|
|
1386
1386
|
});
|
|
@@ -1391,7 +1391,7 @@ function dr(e, t = {}) {
|
|
|
1391
1391
|
p.value = !1;
|
|
1392
1392
|
return;
|
|
1393
1393
|
}
|
|
1394
|
-
let t =
|
|
1394
|
+
let t = z(n);
|
|
1395
1395
|
if (!t) {
|
|
1396
1396
|
p.value = !1;
|
|
1397
1397
|
return;
|
|
@@ -1403,7 +1403,7 @@ function dr(e, t = {}) {
|
|
|
1403
1403
|
}, v = () => {
|
|
1404
1404
|
if (!c.value) return;
|
|
1405
1405
|
g();
|
|
1406
|
-
let t =
|
|
1406
|
+
let t = z(n);
|
|
1407
1407
|
if (!t) {
|
|
1408
1408
|
p.value = !1;
|
|
1409
1409
|
return;
|
|
@@ -1416,7 +1416,7 @@ function dr(e, t = {}) {
|
|
|
1416
1416
|
characterData: !0
|
|
1417
1417
|
}));
|
|
1418
1418
|
};
|
|
1419
|
-
return T(v), C(g),
|
|
1419
|
+
return T(v), C(g), H(() => z(n), () => {
|
|
1420
1420
|
c.value && v();
|
|
1421
1421
|
}), {
|
|
1422
1422
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1429,7 +1429,7 @@ function dr(e, t = {}) {
|
|
|
1429
1429
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
1430
1430
|
var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
1431
1431
|
let n = t.root.value;
|
|
1432
|
-
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n)) : !1;
|
|
1432
|
+
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
1433
1433
|
}, mr = (e) => (D(() => fr.delete(e)), (t) => {
|
|
1434
1434
|
if (!t) {
|
|
1435
1435
|
fr.delete(e);
|
|
@@ -1456,6 +1456,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1456
1456
|
type: Boolean,
|
|
1457
1457
|
default: !1
|
|
1458
1458
|
},
|
|
1459
|
+
hoverTarget: { type: String },
|
|
1459
1460
|
disableInteractive: {
|
|
1460
1461
|
type: Boolean,
|
|
1461
1462
|
default: !1
|
|
@@ -1508,17 +1509,18 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1508
1509
|
}),
|
|
1509
1510
|
emits: ["update:modelValue"],
|
|
1510
1511
|
setup(e) {
|
|
1511
|
-
let t = e, c =
|
|
1512
|
+
let t = e, c = re(e, "modelValue"), l = p(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: f } = dr("content", { host: u }), m = r(() => u ? f.value : d.value), h = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
|
|
1512
1513
|
"anchor-name: --pv-anchor",
|
|
1513
1514
|
"position-area: bottom",
|
|
1514
1515
|
"position-try-fallbacks: flip-block",
|
|
1515
1516
|
"position-visibility: anchors-visible",
|
|
1516
1517
|
`anchor-scope: ${gr}`
|
|
1517
|
-
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), b = M(null), x = M(null), C =
|
|
1518
|
+
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), b = M(null), x = M(null), C = r(() => t.hoverTarget && v.value?.closest(t.hoverTarget) || v.value), w = ct(C), E = ct(x), O = M(!1), A = M(!1), j = M(!1), N = mr({
|
|
1518
1519
|
root: _,
|
|
1519
1520
|
floating: x,
|
|
1520
|
-
|
|
1521
|
-
|
|
1521
|
+
hoverArea: r(() => t.hoverTarget ? C.value : null),
|
|
1522
|
+
close: () => t.disableClickOutsideToClose ? !1 : (le(), !0)
|
|
1523
|
+
}), P = {
|
|
1522
1524
|
"top-center": "top",
|
|
1523
1525
|
"bottom-center": "bottom",
|
|
1524
1526
|
"center-left": "left",
|
|
@@ -1574,7 +1576,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1574
1576
|
width: "fit-content",
|
|
1575
1577
|
...h ? { "anchor-scope": gr } : void 0,
|
|
1576
1578
|
...t.cssCustomProperties
|
|
1577
|
-
})), R = r(() => h ? { "anchor-name": gr } : void 0),
|
|
1579
|
+
})), R = r(() => h ? { "anchor-name": gr } : void 0), te = r(() => {
|
|
1578
1580
|
let e = F[t.position];
|
|
1579
1581
|
return {
|
|
1580
1582
|
"position-anchor": gr,
|
|
@@ -1582,141 +1584,141 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1582
1584
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1583
1585
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1584
1586
|
};
|
|
1585
|
-
}),
|
|
1587
|
+
}), ne = () => {}, B = () => ({});
|
|
1586
1588
|
if (!h) {
|
|
1587
1589
|
let e = [];
|
|
1588
1590
|
t.disableAutoPlacement || e.push(qn({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Kn(t.offset));
|
|
1589
1591
|
let n = ir(b, x, {
|
|
1590
|
-
placement:
|
|
1592
|
+
placement: P[t.position],
|
|
1591
1593
|
strategy: t.positioningStrategy,
|
|
1592
1594
|
middleware: e
|
|
1593
1595
|
});
|
|
1594
|
-
|
|
1596
|
+
ne = n.update, B = () => n.floatingStyles.value;
|
|
1595
1597
|
let i = st(b), a = /* @__PURE__ */ Ge(() => {
|
|
1596
|
-
c.value &&
|
|
1598
|
+
c.value && ne();
|
|
1597
1599
|
}, 5);
|
|
1598
|
-
|
|
1600
|
+
H([
|
|
1599
1601
|
i.top,
|
|
1600
1602
|
i.left,
|
|
1601
1603
|
i.width,
|
|
1602
1604
|
i.height
|
|
1603
1605
|
], a), $e(_, () => {
|
|
1604
|
-
t.disableClickOutsideToClose ||
|
|
1606
|
+
t.disableClickOutsideToClose || W(!1);
|
|
1605
1607
|
}, { ignore: r(() => [
|
|
1606
1608
|
x.value,
|
|
1607
1609
|
".p-datepicker-panel",
|
|
1608
1610
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1609
1611
|
]) });
|
|
1610
1612
|
}
|
|
1611
|
-
let
|
|
1612
|
-
...
|
|
1613
|
+
let ie = r(() => ({
|
|
1614
|
+
...B(),
|
|
1613
1615
|
zIndex: t.zIndex
|
|
1614
|
-
})),
|
|
1615
|
-
|
|
1616
|
-
},
|
|
1617
|
-
|
|
1618
|
-
},
|
|
1619
|
-
|
|
1620
|
-
c.value = !0,
|
|
1616
|
+
})), ae, V, se = () => {
|
|
1617
|
+
ae && clearTimeout(ae), ae = void 0;
|
|
1618
|
+
}, U = () => {
|
|
1619
|
+
V && clearTimeout(V), V = void 0;
|
|
1620
|
+
}, W = (e) => {
|
|
1621
|
+
se(), U(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? ae = setTimeout(() => {
|
|
1622
|
+
c.value = !0, ae = void 0;
|
|
1621
1623
|
}, t.delay) : c.value = e);
|
|
1622
|
-
},
|
|
1623
|
-
|
|
1624
|
-
},
|
|
1624
|
+
}, le = () => {
|
|
1625
|
+
se(), U(), c.value = !1;
|
|
1626
|
+
}, ue = () => {
|
|
1625
1627
|
let e = x.value;
|
|
1626
1628
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1627
|
-
},
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1629
|
+
}, de = r(() => !!c.value && (E.value || A.value)), G = r(() => !t.showOnHover || j.value ? !1 : t.disableInteractive ? w.value || O.value : w.value || O.value || de.value);
|
|
1630
|
+
H([
|
|
1631
|
+
w,
|
|
1632
|
+
O,
|
|
1633
|
+
A
|
|
1632
1634
|
], ([e, t, n]) => {
|
|
1633
|
-
!e && !t && !n && (
|
|
1635
|
+
!e && !t && !n && (j.value = !1);
|
|
1634
1636
|
});
|
|
1635
|
-
let
|
|
1636
|
-
E.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1637
|
-
}, K = ({ target: e }) => {
|
|
1637
|
+
let K = ({ target: e }) => {
|
|
1638
1638
|
O.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1639
|
-
}, fe = () => {
|
|
1640
|
-
|
|
1639
|
+
}, fe = ({ target: e }) => {
|
|
1640
|
+
A.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1641
1641
|
}, pe = () => {
|
|
1642
|
+
A.value = !1;
|
|
1643
|
+
}, me = () => {
|
|
1642
1644
|
if (t.showOnHover) {
|
|
1643
1645
|
if (t.disableClickOutsideToClose) return;
|
|
1644
|
-
if (!c.value && !
|
|
1645
|
-
|
|
1646
|
+
if (!c.value && !ae && t.enableClickToggle) {
|
|
1647
|
+
j.value = !1, W(!0);
|
|
1646
1648
|
return;
|
|
1647
1649
|
}
|
|
1648
|
-
|
|
1650
|
+
j.value = !0, le();
|
|
1649
1651
|
return;
|
|
1650
1652
|
}
|
|
1651
|
-
|
|
1652
|
-
},
|
|
1653
|
+
W(ae ? !1 : !c.value);
|
|
1654
|
+
}, he = (e) => {
|
|
1653
1655
|
let t = e.newState === "open";
|
|
1654
1656
|
c.value !== t && (c.value = t);
|
|
1655
|
-
},
|
|
1656
|
-
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(),
|
|
1657
|
+
}, q = (e) => {
|
|
1658
|
+
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), W(!1));
|
|
1657
1659
|
};
|
|
1658
|
-
return
|
|
1659
|
-
if (t.showOnHover && t.enableGroupSync &&
|
|
1660
|
-
e &&
|
|
1660
|
+
return H(c, async (e) => {
|
|
1661
|
+
if (t.showOnHover && t.enableGroupSync && N(!!e), !h) {
|
|
1662
|
+
e && ne();
|
|
1661
1663
|
return;
|
|
1662
1664
|
}
|
|
1663
|
-
await y(),
|
|
1664
|
-
}),
|
|
1665
|
+
await y(), ue();
|
|
1666
|
+
}), H(G, (e) => {
|
|
1665
1667
|
if (t.showOnHover) {
|
|
1666
1668
|
if (e) {
|
|
1667
|
-
|
|
1669
|
+
W(!0);
|
|
1668
1670
|
return;
|
|
1669
1671
|
}
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
}, t.closeDelay)) :
|
|
1672
|
+
se(), t.closeDelay > 0 ? (U(), V = setTimeout(() => {
|
|
1673
|
+
V = void 0, G.value || W(!1);
|
|
1674
|
+
}, t.closeDelay)) : W(!1);
|
|
1673
1675
|
}
|
|
1674
|
-
}),
|
|
1675
|
-
e ? h && c.value && y(
|
|
1676
|
+
}), H(m, (e) => {
|
|
1677
|
+
e ? h && c.value && y(ue) : le();
|
|
1676
1678
|
}), T(() => {
|
|
1677
|
-
b.value = v.value, g.value = !0, c.value && y(() => h ?
|
|
1679
|
+
b.value = v.value, g.value = !0, c.value && y(() => h ? ue() : ne());
|
|
1678
1680
|
}), D(() => {
|
|
1679
|
-
|
|
1680
|
-
}),
|
|
1681
|
+
se(), U();
|
|
1682
|
+
}), H(() => t.disabled, (e) => {
|
|
1681
1683
|
if (!e) {
|
|
1682
|
-
|
|
1684
|
+
G.value && W(!0);
|
|
1683
1685
|
return;
|
|
1684
1686
|
}
|
|
1685
|
-
|
|
1687
|
+
O.value &&= !1, A.value &&= !1, W(!1);
|
|
1686
1688
|
}), (r, l) => (k(), o("div", {
|
|
1687
1689
|
ref_key: "root",
|
|
1688
1690
|
ref: _,
|
|
1689
1691
|
style: S(L.value),
|
|
1690
|
-
onKeydown:
|
|
1692
|
+
onKeydown: q
|
|
1691
1693
|
}, [s("div", {
|
|
1692
1694
|
ref_key: "triggerWrapper",
|
|
1693
1695
|
ref: v,
|
|
1694
1696
|
style: S(R.value),
|
|
1695
|
-
onClick:
|
|
1696
|
-
onFocusin:
|
|
1697
|
-
onFocusout: l[0] ||= (e) =>
|
|
1698
|
-
}, [
|
|
1697
|
+
onClick: me,
|
|
1698
|
+
onFocusin: K,
|
|
1699
|
+
onFocusout: l[0] ||= (e) => O.value = !1
|
|
1700
|
+
}, [ee(r.$slots, "trigger")], 36), g.value && z(h) && m.value ? (k(), o("div", {
|
|
1699
1701
|
key: 0,
|
|
1700
1702
|
ref_key: "floating",
|
|
1701
1703
|
ref: x,
|
|
1702
1704
|
class: "pv-floating pv-floating-native",
|
|
1703
1705
|
popover: I.value,
|
|
1704
|
-
style: S(
|
|
1705
|
-
onToggle:
|
|
1706
|
-
onFocusin:
|
|
1707
|
-
onFocusout:
|
|
1708
|
-
}, [e.disabled ? a("v-if", !0) :
|
|
1706
|
+
style: S(te.value),
|
|
1707
|
+
onToggle: he,
|
|
1708
|
+
onFocusin: fe,
|
|
1709
|
+
onFocusout: pe
|
|
1710
|
+
}, [e.disabled ? a("v-if", !0) : ee(r.$slots, "content", { key: 0 })], 44, hr)) : m.value ? (k(), i(n, {
|
|
1709
1711
|
key: 1,
|
|
1710
1712
|
to: e.teleportLocation,
|
|
1711
1713
|
disabled: !t.useTeleport || e.disabled
|
|
1712
|
-
}, [
|
|
1714
|
+
}, [ce(s("div", {
|
|
1713
1715
|
ref_key: "floating",
|
|
1714
1716
|
ref: x,
|
|
1715
1717
|
class: "pv-floating",
|
|
1716
|
-
style: S(
|
|
1717
|
-
onFocusin:
|
|
1718
|
-
onFocusout:
|
|
1719
|
-
}, [
|
|
1718
|
+
style: S(ie.value),
|
|
1719
|
+
onFocusin: fe,
|
|
1720
|
+
onFocusout: pe
|
|
1721
|
+
}, [ee(r.$slots, "content")], 36), [[oe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1720
1722
|
}
|
|
1721
1723
|
}), vr = ["data-variant"], yr = /* @__PURE__ */ d({
|
|
1722
1724
|
__name: "PvTooltipV2",
|
|
@@ -1741,6 +1743,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1741
1743
|
type: Boolean,
|
|
1742
1744
|
default: !0
|
|
1743
1745
|
},
|
|
1746
|
+
hoverTarget: { type: String },
|
|
1744
1747
|
disableInteractive: {
|
|
1745
1748
|
type: Boolean,
|
|
1746
1749
|
default: !1
|
|
@@ -1764,15 +1767,15 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1764
1767
|
setup(e) {
|
|
1765
1768
|
let t = e, n = p(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = dr("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
1766
1769
|
return (t, n) => (k(), i(_r, x(h(t.$props)), c({
|
|
1767
|
-
trigger:
|
|
1770
|
+
trigger: U(() => [ee(t.$slots, "trigger", {}, () => [s("p", null, L(e.label), 1)])]),
|
|
1768
1771
|
_: 2
|
|
1769
1772
|
}, [f.value ? {
|
|
1770
1773
|
name: "content",
|
|
1771
|
-
fn:
|
|
1774
|
+
fn: U(() => [s("div", {
|
|
1772
1775
|
class: b(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1773
1776
|
role: "tooltip",
|
|
1774
1777
|
"data-variant": e.variant
|
|
1775
|
-
}, [
|
|
1778
|
+
}, [ee(t.$slots, "content", {}, () => [l(L(e.description), 1)])], 10, vr)]),
|
|
1776
1779
|
key: "0"
|
|
1777
1780
|
} : void 0]), 1040));
|
|
1778
1781
|
}
|
|
@@ -1793,7 +1796,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1793
1796
|
}),
|
|
1794
1797
|
emits: ["update:modelValue"],
|
|
1795
1798
|
setup(e) {
|
|
1796
|
-
let n =
|
|
1799
|
+
let n = re(e, "modelValue"), r = (e) => {
|
|
1797
1800
|
e.disabled || (n.value = e.value);
|
|
1798
1801
|
};
|
|
1799
1802
|
return (a, s) => (k(), o("div", { class: b(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(k(!0), o(t, null, N(e.options, (e) => (k(), i(yr, {
|
|
@@ -1802,7 +1805,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1802
1805
|
position: "bottom-right",
|
|
1803
1806
|
style: { width: "100%" }
|
|
1804
1807
|
}, c({
|
|
1805
|
-
trigger:
|
|
1808
|
+
trigger: U(() => [u(Y, {
|
|
1806
1809
|
class: b(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1807
1810
|
variant: "ghost",
|
|
1808
1811
|
label: e.label,
|
|
@@ -1825,7 +1828,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1825
1828
|
_: 2
|
|
1826
1829
|
}, [e.disabledReason ? {
|
|
1827
1830
|
name: "content",
|
|
1828
|
-
fn:
|
|
1831
|
+
fn: U(() => [l(L(e.disabledReason), 1)]),
|
|
1829
1832
|
key: "0"
|
|
1830
1833
|
} : void 0]), 1024))), 128))], 2));
|
|
1831
1834
|
}
|
|
@@ -1872,7 +1875,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1872
1875
|
name: e.icon,
|
|
1873
1876
|
size: 12,
|
|
1874
1877
|
class: b(e.iconClasses)
|
|
1875
|
-
}, null, 8, ["name", "class"])) : a("v-if", !0), s("span", Sr,
|
|
1878
|
+
}, null, 8, ["name", "class"])) : a("v-if", !0), s("span", Sr, L(e.label), 1)], 10, xr));
|
|
1876
1879
|
}
|
|
1877
1880
|
}), wr = [
|
|
1878
1881
|
"aria-label",
|
|
@@ -1890,8 +1893,8 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1890
1893
|
}),
|
|
1891
1894
|
emits: ["update:modelValue"],
|
|
1892
1895
|
setup(e) {
|
|
1893
|
-
let t =
|
|
1894
|
-
return (n, r) =>
|
|
1896
|
+
let t = re(e, "modelValue");
|
|
1897
|
+
return (n, r) => ce((k(), o("input", {
|
|
1895
1898
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
1896
1899
|
class: "pv-checkbox",
|
|
1897
1900
|
type: "checkbox",
|
|
@@ -1899,7 +1902,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1899
1902
|
"aria-label": e.ariaLabel,
|
|
1900
1903
|
disabled: e.disabled,
|
|
1901
1904
|
indeterminate: e.indeterminate
|
|
1902
|
-
}, null, 8, wr)), [[
|
|
1905
|
+
}, null, 8, wr)), [[ae, t.value]]);
|
|
1903
1906
|
}
|
|
1904
1907
|
}), Er = {
|
|
1905
1908
|
key: 0,
|
|
@@ -2055,7 +2058,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2055
2058
|
}),
|
|
2056
2059
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
2057
2060
|
setup(e) {
|
|
2058
|
-
let t = e, n =
|
|
2061
|
+
let t = e, n = re(e, "modelValue"), c = re(e, "rangeValue"), l = te(), u = ne(), d = `${u}-max`, f = `${u}-min`, p = M(""), m = M(""), h = M(null), g = M(null), _ = M(!1), y = M(null), x = null, w = null, T = (e) => typeof e == "number" && Number.isFinite(e), E = (e) => T(e) ? e : null, D = (e) => {
|
|
2059
2062
|
let t = e.trim();
|
|
2060
2063
|
if (t === "") return null;
|
|
2061
2064
|
let n = Number(t.replace(/[^0-9.\-]/g, ""));
|
|
@@ -2067,22 +2070,22 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2067
2070
|
}, j = r(() => new Intl.NumberFormat("en-US", {
|
|
2068
2071
|
maximumFractionDigits: A(),
|
|
2069
2072
|
minimumFractionDigits: 0
|
|
2070
|
-
})), N = (e) => j.value.format(e),
|
|
2073
|
+
})), N = (e) => j.value.format(e), ee = (e) => N(e), P = (e) => {
|
|
2071
2074
|
let n = N(e);
|
|
2072
2075
|
return t.dataType === "currency" ? `$${n}` : t.dataType === "percent" ? `${n}%` : n;
|
|
2073
|
-
},
|
|
2076
|
+
}, F = r(() => t.scale === "log"), I = r(() => E(t.step)), R = r(() => E(t.sliderStep)), B = r(() => I.value !== null && I.value > 0 ? I.value : 0), ie = r(() => R.value !== null && R.value > 0 ? Math.max(R.value, B.value) : B.value), ae = r(() => B.value > 0 ? String(B.value) : "any"), V = r(() => F.value ? "1" : ie.value > 0 ? String(ie.value) : "any"), oe = r(() => I.value === null ? 1 : I.value > 0 ? I.value : 0), se = r(() => R.value !== null && R.value > 0 ? Math.max(R.value, oe.value) : oe.value), U = r(() => F.value ? "1" : se.value > 0 ? String(se.value) : "any"), ce = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), le = (e) => e.min > 0 ? 0 : 1 - e.min, ue = (e, t) => {
|
|
2074
2077
|
if (t.max === t.min) return 0;
|
|
2075
|
-
if (!
|
|
2076
|
-
let n =
|
|
2078
|
+
if (!F.value) return (e - t.min) / (t.max - t.min);
|
|
2079
|
+
let n = le(t), r = Math.log(t.min + n), i = Math.log(t.max + n);
|
|
2077
2080
|
if (i === r) return 0;
|
|
2078
2081
|
let a = Math.max(t.min, Math.min(t.max, e));
|
|
2079
2082
|
return (Math.log(a + n) - r) / (i - r);
|
|
2080
|
-
},
|
|
2083
|
+
}, de = (e, t) => {
|
|
2081
2084
|
let n = Math.max(0, Math.min(1, e));
|
|
2082
|
-
if (!
|
|
2083
|
-
let r =
|
|
2085
|
+
if (!F.value) return t.min + n * (t.max - t.min);
|
|
2086
|
+
let r = le(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
|
|
2084
2087
|
return Math.exp(i + n * (a - i)) - r;
|
|
2085
|
-
},
|
|
2088
|
+
}, G = (e, t) => Math.max(0, Math.min(100, ue(e, t) * 100)), K = r(() => {
|
|
2086
2089
|
let e = E(t.min) ?? Lr, n = E(t.max) ?? Rr;
|
|
2087
2090
|
return e > n ? {
|
|
2088
2091
|
max: e,
|
|
@@ -2094,8 +2097,8 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2094
2097
|
max: n,
|
|
2095
2098
|
min: e
|
|
2096
2099
|
};
|
|
2097
|
-
}), fe = r(() => E(n.value) ?? K.value.min), pe = r(() =>
|
|
2098
|
-
"--range-track-color":
|
|
2100
|
+
}), fe = r(() => E(n.value) ?? K.value.min), pe = r(() => G(fe.value, K.value)), me = r(() => ({
|
|
2101
|
+
"--range-track-color": ce.value,
|
|
2099
2102
|
"--value": `${pe.value}%`
|
|
2100
2103
|
})), he = r(() => ({ left: `${pe.value}%` })), q = (e) => {
|
|
2101
2104
|
if (!Number.isFinite(e)) return 0;
|
|
@@ -2107,31 +2110,31 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2107
2110
|
return t.split(".")[1]?.length ?? 0;
|
|
2108
2111
|
}, J = r(() => {
|
|
2109
2112
|
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Lr, r ?? Lr, i ?? Lr), o = n ?? Math.max(Rr, r ?? Rr, i ?? Rr);
|
|
2110
|
-
return a > o && ([a, o] = [o, a]), a === o && (o = a + (
|
|
2113
|
+
return a > o && ([a, o] = [o, a]), a === o && (o = a + (B.value > 0 ? B.value : 1)), {
|
|
2111
2114
|
max: o,
|
|
2112
2115
|
min: a
|
|
2113
2116
|
};
|
|
2114
2117
|
}), ge = (e) => Math.max(J.value.min, Math.min(J.value.max, e)), _e = r(() => {
|
|
2115
2118
|
let e = Math.max(q(J.value.min), q(J.value.max));
|
|
2116
|
-
return
|
|
2119
|
+
return B.value <= 0 ? Math.max(6, e) : Math.max(e, q(B.value));
|
|
2117
2120
|
}), ve = (e) => {
|
|
2118
2121
|
let t = Math.min(20, _e.value);
|
|
2119
2122
|
return ge(Number(e.toFixed(t)));
|
|
2120
2123
|
}, ye = (e, t) => {
|
|
2121
2124
|
let n = 10 ** -Math.min(A(), 1), r = Math.abs(e), i = r < 1 ? 0 : 10 ** Math.floor(Math.log10(r)) / 100;
|
|
2122
2125
|
return Math.max(i, n, t);
|
|
2123
|
-
}, xe = (e, t) =>
|
|
2126
|
+
}, xe = (e, t) => F.value ? ye(e, t) : t, Se = r(() => {
|
|
2124
2127
|
if (t.allowMinMaxEqual) return 0;
|
|
2125
2128
|
let e = J.value.max - J.value.min;
|
|
2126
2129
|
if (e <= 0) return 0;
|
|
2127
|
-
let n = Math.max(e / 1e6, 10 ** -_e.value), r =
|
|
2130
|
+
let n = Math.max(e / 1e6, 10 ** -_e.value), r = B.value > 0 ? B.value : n;
|
|
2128
2131
|
return Math.min(r, e);
|
|
2129
2132
|
}), Ce = (e, t, n = "nearest") => {
|
|
2130
2133
|
let r = ge(e);
|
|
2131
2134
|
if (t <= 0) return ve(r);
|
|
2132
|
-
let i =
|
|
2135
|
+
let i = F.value ? 0 : J.value.min, a = (r - i) / t;
|
|
2133
2136
|
return ve((n === "down" ? Math.floor(a) : n === "up" ? Math.ceil(a) : Math.round(a)) * t + i);
|
|
2134
|
-
}, we = (e, t = "nearest") => Ce(e, xe(e,
|
|
2137
|
+
}, we = (e, t = "nearest") => Ce(e, xe(e, B.value), t), Te = (e, t = "nearest") => we(Ce(e, xe(e, ie.value), t), t), Ee = (e) => Ce(e, B.value), De = (e, t, n = !0) => {
|
|
2135
2138
|
let r = Math.max(J.value.min, t - Se.value), i = Math.min(e, r);
|
|
2136
2139
|
return n ? we(i, "down") : ve(i);
|
|
2137
2140
|
}, Oe = (e, t, n = !0) => {
|
|
@@ -2143,11 +2146,11 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2143
2146
|
max: Math.max(n, r),
|
|
2144
2147
|
min: Math.min(n, r)
|
|
2145
2148
|
};
|
|
2146
|
-
}), ke = r(() =>
|
|
2147
|
-
"--range-track-color":
|
|
2149
|
+
}), ke = r(() => G(X.value.min, J.value)), Ae = r(() => G(X.value.max, J.value)), je = r(() => ({
|
|
2150
|
+
"--range-track-color": ce.value,
|
|
2148
2151
|
"--value-max": `${Ae.value}%`,
|
|
2149
2152
|
"--value-min": `${ke.value}%`
|
|
2150
|
-
})), Me = r(() => ({ left: `${ke.value}%` })), Ne = r(() => ({ left: `${Ae.value}%` })), Pe = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Fe = (e, t) =>
|
|
2153
|
+
})), Me = r(() => ({ left: `${ke.value}%` })), Ne = r(() => ({ left: `${Ae.value}%` })), Pe = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Fe = (e, t) => F.value ? Math.round(ue(e, t) * zr) : e, Ie = (e, t) => F.value ? de(e / zr, t) : e, Le = r(() => F.value ? 0 : J.value.min), Re = r(() => F.value ? zr : J.value.max), ze = r(() => Fe(X.value.min, J.value)), Be = r(() => Fe(X.value.max, J.value)), Ve = r(() => F.value ? 0 : K.value.min), He = r(() => F.value ? zr : K.value.max), Ue = r(() => Fe(fe.value, K.value)), We = r(() => Math.max(ee(J.value.min).length, ee(J.value.max).length, 3)), Ge = r(() => {
|
|
2151
2154
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
2152
2155
|
return {
|
|
2153
2156
|
"--flex-align": "stretch",
|
|
@@ -2181,9 +2184,9 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2181
2184
|
}, nt = (e, t) => {
|
|
2182
2185
|
let n = Math.max(K.value.min, Math.min(K.value.max, e));
|
|
2183
2186
|
if (t <= 0) return n;
|
|
2184
|
-
let r =
|
|
2187
|
+
let r = F.value ? 0 : K.value.min, i = (n - r) / t, a = Number((Math.round(i) * t + r).toFixed(20));
|
|
2185
2188
|
return Math.max(K.value.min, Math.min(K.value.max, a));
|
|
2186
|
-
}, rt = (e) => nt(e, xe(e,
|
|
2189
|
+
}, rt = (e) => nt(e, xe(e, oe.value)), it = (e) => rt(nt(e, xe(e, se.value))), at = () => {
|
|
2187
2190
|
t.disabled || (_.value = !0, et(), window.addEventListener("pointerup", tt), w = () => window.removeEventListener("pointerup", tt));
|
|
2188
2191
|
}, ot = (e) => {
|
|
2189
2192
|
n.value = it(Ie(Number(e.target.value), K.value));
|
|
@@ -2192,7 +2195,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2192
2195
|
}, ct = (e) => {
|
|
2193
2196
|
Qe("max"), Xe(Te(Ie(Number(e.target.value), J.value)));
|
|
2194
2197
|
}, lt = (e, n) => {
|
|
2195
|
-
if (!
|
|
2198
|
+
if (!F.value || t.disabled) return;
|
|
2196
2199
|
let r = J.value, i = n === "min" ? X.value.min : X.value.max;
|
|
2197
2200
|
if (e.key === "Home" || e.key === "End") {
|
|
2198
2201
|
e.preventDefault(), Qe(n), Z(n, e.key === "Home" ? r.min : r.max, !1);
|
|
@@ -2201,10 +2204,10 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2201
2204
|
let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
|
|
2202
2205
|
if (!a && !o) return;
|
|
2203
2206
|
e.preventDefault();
|
|
2204
|
-
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = Te(ue(
|
|
2205
|
-
l === i && (l = i + s * xe(i,
|
|
2207
|
+
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = Te(de(ue(i, r) + s * Vr * c, r), a ? "up" : "down");
|
|
2208
|
+
l === i && (l = i + s * xe(i, ie.value)), Qe(n), Z(n, l, !1);
|
|
2206
2209
|
}, ut = () => {
|
|
2207
|
-
g.value !== "min" && (m.value =
|
|
2210
|
+
g.value !== "min" && (m.value = ee(X.value.min)), g.value !== "max" && (p.value = ee(X.value.max));
|
|
2208
2211
|
}, dt = (e) => {
|
|
2209
2212
|
let t = D(e === "min" ? m.value : p.value);
|
|
2210
2213
|
Z(e, t === null ? e === "min" ? J.value.min : J.value.max : Ee(t), !1);
|
|
@@ -2220,7 +2223,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2220
2223
|
e.preventDefault(), dt(t), e.target.blur();
|
|
2221
2224
|
}, _t = (e) => {
|
|
2222
2225
|
let t = y.value?.getBoundingClientRect();
|
|
2223
|
-
return !t || t.width <= 0 ? null : Te(
|
|
2226
|
+
return !t || t.width <= 0 ? null : Te(de(Math.max(0, Math.min(1, (e - t.left) / t.width)), J.value));
|
|
2224
2227
|
}, vt = (e) => {
|
|
2225
2228
|
let n = _t(e);
|
|
2226
2229
|
if (n === null) return;
|
|
@@ -2244,20 +2247,20 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2244
2247
|
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", bt);
|
|
2245
2248
|
}, e.preventDefault();
|
|
2246
2249
|
};
|
|
2247
|
-
return
|
|
2250
|
+
return H([X, J], ut, { immediate: !0 }), C(() => {
|
|
2248
2251
|
yt(), et();
|
|
2249
2252
|
}), (n, r) => e.mode === "single" ? (k(), o("div", Er, [e.showValueTooltips && _.value ? (k(), o("span", {
|
|
2250
2253
|
key: 0,
|
|
2251
2254
|
class: "pv-range-tooltip",
|
|
2252
2255
|
style: S(he.value)
|
|
2253
|
-
},
|
|
2256
|
+
}, L(P(fe.value)), 5)) : a("v-if", !0), s("input", v({ id: z(u) }, z(l), {
|
|
2254
2257
|
"aria-label": e.ariaLabel,
|
|
2255
|
-
"aria-valuetext":
|
|
2258
|
+
"aria-valuetext": P(fe.value),
|
|
2256
2259
|
class: ["pv-range", `pv-range-${t.size}`],
|
|
2257
2260
|
disabled: e.disabled,
|
|
2258
2261
|
max: He.value,
|
|
2259
2262
|
min: Ve.value,
|
|
2260
|
-
step:
|
|
2263
|
+
step: U.value,
|
|
2261
2264
|
style: me.value,
|
|
2262
2265
|
type: "range",
|
|
2263
2266
|
value: Ue.value,
|
|
@@ -2265,7 +2268,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2265
2268
|
onInput: ot,
|
|
2266
2269
|
onPointerdown: at,
|
|
2267
2270
|
onPointerup: tt
|
|
2268
|
-
}), null, 16, Dr)])) : (k(), o("div", v({ key: 1 },
|
|
2271
|
+
}), null, 16, Dr)])) : (k(), o("div", v({ key: 1 }, z(l), {
|
|
2269
2272
|
class: "pv-flex-vertical",
|
|
2270
2273
|
"data-testid": "pv-range-dual",
|
|
2271
2274
|
role: "group",
|
|
@@ -2275,7 +2278,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2275
2278
|
"--flex-gap": "0"
|
|
2276
2279
|
}
|
|
2277
2280
|
}), [
|
|
2278
|
-
e.showBoundLabels ? (k(), o("div", kr, [s("span", null,
|
|
2281
|
+
e.showBoundLabels ? (k(), o("div", kr, [s("span", null, L(P(J.value.min)), 1), s("span", null, L(P(J.value.max)), 1)])) : a("v-if", !0),
|
|
2279
2282
|
s("div", {
|
|
2280
2283
|
ref_key: "sliderRef",
|
|
2281
2284
|
ref: y,
|
|
@@ -2288,21 +2291,21 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2288
2291
|
key: 0,
|
|
2289
2292
|
class: "pv-range-dual-tooltip",
|
|
2290
2293
|
style: S(Me.value)
|
|
2291
|
-
},
|
|
2294
|
+
}, L(P(X.value.min)), 5)) : a("v-if", !0),
|
|
2292
2295
|
e.showValueTooltips && h.value === "max" ? (k(), o("span", {
|
|
2293
2296
|
key: 1,
|
|
2294
2297
|
class: "pv-range-dual-tooltip",
|
|
2295
2298
|
style: S(Ne.value)
|
|
2296
|
-
},
|
|
2299
|
+
}, L(P(X.value.max)), 5)) : a("v-if", !0),
|
|
2297
2300
|
s("input", {
|
|
2298
2301
|
class: "pv-range pv-range-dual-native pv-range-dual-native-min",
|
|
2299
2302
|
type: "range",
|
|
2300
2303
|
"aria-label": `${e.label} minimum`,
|
|
2301
|
-
"aria-valuetext":
|
|
2304
|
+
"aria-valuetext": P(X.value.min),
|
|
2302
2305
|
disabled: e.disabled,
|
|
2303
2306
|
max: Re.value,
|
|
2304
2307
|
min: Le.value,
|
|
2305
|
-
step:
|
|
2308
|
+
step: V.value,
|
|
2306
2309
|
value: ze.value,
|
|
2307
2310
|
onBlur: Ze,
|
|
2308
2311
|
onChange: Ze,
|
|
@@ -2315,11 +2318,11 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2315
2318
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
2316
2319
|
type: "range",
|
|
2317
2320
|
"aria-label": `${e.label} maximum`,
|
|
2318
|
-
"aria-valuetext":
|
|
2321
|
+
"aria-valuetext": P(X.value.max),
|
|
2319
2322
|
disabled: e.disabled,
|
|
2320
2323
|
max: Re.value,
|
|
2321
2324
|
min: Le.value,
|
|
2322
|
-
step:
|
|
2325
|
+
step: V.value,
|
|
2323
2326
|
value: Be.value,
|
|
2324
2327
|
onBlur: Ze,
|
|
2325
2328
|
onChange: Ze,
|
|
@@ -2334,7 +2337,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2334
2337
|
class: "pv-flex-vertical pv-range-input-label",
|
|
2335
2338
|
for: f,
|
|
2336
2339
|
style: S(Ge.value)
|
|
2337
|
-
}, [s("span", Nr,
|
|
2340
|
+
}, [s("span", Nr, L(e.minLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (k(), i(be, {
|
|
2338
2341
|
key: 0,
|
|
2339
2342
|
class: "pv-range-input-icon",
|
|
2340
2343
|
name: e.inputIcon
|
|
@@ -2344,19 +2347,19 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2344
2347
|
disabled: e.disabled,
|
|
2345
2348
|
inputmode: "decimal",
|
|
2346
2349
|
placeholder: "Min",
|
|
2347
|
-
step:
|
|
2350
|
+
step: ae.value,
|
|
2348
2351
|
type: "text",
|
|
2349
2352
|
value: m.value,
|
|
2350
2353
|
onBlur: r[4] ||= (e) => ht("min"),
|
|
2351
2354
|
onFocus: r[5] ||= (e) => mt("min"),
|
|
2352
2355
|
onInput: ft,
|
|
2353
|
-
onKeydown: r[6] ||=
|
|
2356
|
+
onKeydown: r[6] ||= W((e) => gt(e, "min"), ["enter"])
|
|
2354
2357
|
}, null, 40, Pr)], 2)], 4),
|
|
2355
2358
|
s("label", {
|
|
2356
2359
|
class: "pv-flex-vertical pv-range-input-label",
|
|
2357
2360
|
for: d,
|
|
2358
2361
|
style: S(Ge.value)
|
|
2359
|
-
}, [s("span", Fr,
|
|
2362
|
+
}, [s("span", Fr, L(e.maxLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (k(), i(be, {
|
|
2360
2363
|
key: 0,
|
|
2361
2364
|
class: "pv-range-input-icon",
|
|
2362
2365
|
name: e.inputIcon
|
|
@@ -2366,13 +2369,13 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2366
2369
|
disabled: e.disabled,
|
|
2367
2370
|
inputmode: "decimal",
|
|
2368
2371
|
placeholder: "Max",
|
|
2369
|
-
step:
|
|
2372
|
+
step: ae.value,
|
|
2370
2373
|
type: "text",
|
|
2371
2374
|
value: p.value,
|
|
2372
2375
|
onBlur: r[7] ||= (e) => ht("max"),
|
|
2373
2376
|
onFocus: r[8] ||= (e) => mt("max"),
|
|
2374
2377
|
onInput: pt,
|
|
2375
|
-
onKeydown: r[9] ||=
|
|
2378
|
+
onKeydown: r[9] ||= W((e) => gt(e, "max"), ["enter"])
|
|
2376
2379
|
}, null, 40, Ir)], 2)], 4),
|
|
2377
2380
|
e.showClear && Pe.value ? (k(), i(Y, {
|
|
2378
2381
|
key: 0,
|
|
@@ -2463,7 +2466,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2463
2466
|
},
|
|
2464
2467
|
emits: ["focus-value", "toggle-value"],
|
|
2465
2468
|
setup(e, { emit: t }) {
|
|
2466
|
-
let n = e, c = t, u =
|
|
2469
|
+
let n = e, c = t, u = B(), d = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), f = r(() => !n.renderer && (d.value || !!u["result-count"])), p = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), m = r(() => ({
|
|
2467
2470
|
disabled: n.disabled,
|
|
2468
2471
|
highlightSearchText: !0,
|
|
2469
2472
|
id: n.value,
|
|
@@ -2511,12 +2514,12 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2511
2514
|
"indeterminate",
|
|
2512
2515
|
"modelValue"
|
|
2513
2516
|
])),
|
|
2514
|
-
e.renderer ? (k(), i(
|
|
2515
|
-
s("span", Gr,
|
|
2516
|
-
e.subduedText ? (k(), o("span", Kr,
|
|
2517
|
-
e.subText ? (k(), o("span", qr,
|
|
2517
|
+
e.renderer ? (k(), i(P(e.renderer), x(v({ key: 2 }, m.value)), null, 16)) : (k(), o("span", Wr, [
|
|
2518
|
+
s("span", Gr, L(e.label), 1),
|
|
2519
|
+
e.subduedText ? (k(), o("span", Kr, L(e.subduedText), 1)) : a("v-if", !0),
|
|
2520
|
+
e.subText ? (k(), o("span", qr, L(e.subText), 1)) : a("v-if", !0)
|
|
2518
2521
|
])),
|
|
2519
|
-
f.value ? (k(), o("span", Jr, [
|
|
2522
|
+
f.value ? (k(), o("span", Jr, [ee(t.$slots, "result-count", {}, () => [l("(" + L(e.resultCount) + ")", 1)], !0)])) : a("v-if", !0),
|
|
2520
2523
|
e.showFocusAction ? (k(), i(Y, {
|
|
2521
2524
|
key: 5,
|
|
2522
2525
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -2524,7 +2527,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2524
2527
|
leftIcon: "focus",
|
|
2525
2528
|
size: "md",
|
|
2526
2529
|
variant: e.isFocused ? "primary" : "ghost",
|
|
2527
|
-
onClick:
|
|
2530
|
+
onClick: le(_, ["stop", "prevent"])
|
|
2528
2531
|
}, null, 8, [
|
|
2529
2532
|
"ariaLabel",
|
|
2530
2533
|
"disabled",
|
|
@@ -2983,22 +2986,22 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2983
2986
|
"search-change"
|
|
2984
2987
|
],
|
|
2985
2988
|
setup(e, { emit: n }) {
|
|
2986
|
-
let c = e, d = n, f = M(null), p = M({}), m = M(0), h =
|
|
2989
|
+
let c = e, d = n, f = M(null), p = M({}), m = M(0), h = ne(), g = M(c.filter.searchQuery ?? ""), _ = M(va), y = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), b = r(() => c.filter.valueLabels?.false ?? "No"), C = r(() => c.filter.options ?? []), w = r(() => [...c.filter.knownOptions ?? [], ...C.value]), T = r(() => c.filter.type ?? "value"), E = r(() => T.value === "value"), D = r(() => E.value && c.filter.isAggregate === !0), O = r(() => c.filter.aggregateSelectionState ?? []), A = r(() => g.value.trim().toLowerCase()), j = r(() => c.filter.selectedValues ?? []), ee = r(() => new Set(j.value)), F = r(() => c.filter.valueLabels?.true ?? "Yes"), I = r(() => c.filter.filterOptionsSortDescription || "Suggested"), R = r(() => c.filter.disabled === !0 || c.disableWhileLoading && c.filter.isLoading === !0), te = r(() => {
|
|
2987
2990
|
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
2988
2991
|
return t && !n ? [{
|
|
2989
|
-
label:
|
|
2992
|
+
label: F.value,
|
|
2990
2993
|
value: !0
|
|
2991
2994
|
}] : n && !t ? [{
|
|
2992
2995
|
label: b.value,
|
|
2993
2996
|
value: !1
|
|
2994
2997
|
}] : [{
|
|
2995
|
-
label:
|
|
2998
|
+
label: F.value,
|
|
2996
2999
|
value: !0
|
|
2997
3000
|
}, {
|
|
2998
3001
|
label: b.value,
|
|
2999
3002
|
value: !1
|
|
3000
3003
|
}];
|
|
3001
|
-
}),
|
|
3004
|
+
}), re = (e) => {
|
|
3002
3005
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
3003
3006
|
return [
|
|
3004
3007
|
e.value,
|
|
@@ -3008,32 +3011,32 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3008
3011
|
e.matchedValue,
|
|
3009
3012
|
e.matchedField
|
|
3010
3013
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
3011
|
-
},
|
|
3014
|
+
}, B = r(() => T.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : T.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : T.value === "exists" ? c.filter.existsValue ? 1 : void 0 : D.value ? Yi(O.value) || void 0 : j.value.length || void 0), ie = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), ae = (e, t = 0) => e.flatMap((e) => [
|
|
3012
3015
|
{
|
|
3013
3016
|
depth: t,
|
|
3014
3017
|
kind: "option",
|
|
3015
3018
|
option: e
|
|
3016
3019
|
},
|
|
3017
|
-
...e.children?.length ?
|
|
3018
|
-
...
|
|
3020
|
+
...e.children?.length ? ae(e.children, t + 1) : [],
|
|
3021
|
+
...ie(e) ? [{
|
|
3019
3022
|
depth: t + 1,
|
|
3020
3023
|
kind: "child-load-more",
|
|
3021
3024
|
parent: e
|
|
3022
3025
|
}] : []
|
|
3023
|
-
]),
|
|
3024
|
-
let e =
|
|
3025
|
-
return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" &&
|
|
3026
|
-
}),
|
|
3026
|
+
]), V = r(() => {
|
|
3027
|
+
let e = ae(C.value), t = A.value;
|
|
3028
|
+
return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" && re(e.option).includes(t));
|
|
3029
|
+
}), oe = r(() => D.value || c.filter.singleSelect ? [] : j.value.map((e) => p.value[e] ?? {
|
|
3027
3030
|
label: e,
|
|
3028
3031
|
value: e
|
|
3029
|
-
})),
|
|
3032
|
+
})), ce = M([]), W = r(() => new Set(ce.value)), le = r(() => ce.value.map((e) => p.value[e] ?? {
|
|
3030
3033
|
label: e,
|
|
3031
3034
|
value: e
|
|
3032
|
-
})),
|
|
3033
|
-
|
|
3035
|
+
})), ue = r(() => C.value.length > 0 || le.value.length > 0), de = r(() => E.value && c.filter.isOpen && c.filter.isLoading === !0 && ue.value), G = () => {
|
|
3036
|
+
ce.value = D.value || c.filter.singleSelect ? [] : [...j.value];
|
|
3034
3037
|
};
|
|
3035
|
-
|
|
3036
|
-
let K = r(() => D.value || c.filter.singleSelect ?
|
|
3038
|
+
G();
|
|
3039
|
+
let K = r(() => D.value || c.filter.singleSelect ? V.value : V.value.filter((e) => e.kind === "child-load-more" || !W.value.has(e.option.value))), fe = r(() => K.value.length > _.value), pe = r(() => fe.value || c.filter.hasMore), me = r(() => K.value.slice(0, _.value)), q = r(() => D.value ? Ki({
|
|
3037
3040
|
options: w.value,
|
|
3038
3041
|
state: O.value
|
|
3039
3042
|
}) : /* @__PURE__ */ new Map()), J = (e) => ai(e, c.filter.colDef), ge = (e) => oi(e), _e = (e) => D.value ? q.value.get(e.value) ?? {
|
|
@@ -3041,7 +3044,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3041
3044
|
selected: !1
|
|
3042
3045
|
} : {
|
|
3043
3046
|
indeterminate: !1,
|
|
3044
|
-
selected:
|
|
3047
|
+
selected: ee.value.has(e.value)
|
|
3045
3048
|
}, ve = (e) => _e(e).selected, ye = (e) => _e(e).indeterminate, xe = (e) => pi(e) ?? e.value, Se = (e) => mi(e, c.filter.key), Ce = (e) => {
|
|
3046
3049
|
let t = Se(e), n = xe(e);
|
|
3047
3050
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
@@ -3049,17 +3052,17 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3049
3052
|
...e.menuOption ?? {},
|
|
3050
3053
|
children: e.children?.map(Te),
|
|
3051
3054
|
context: e,
|
|
3052
|
-
disabled:
|
|
3055
|
+
disabled: R.value || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
3053
3056
|
id: e.value,
|
|
3054
|
-
searchText:
|
|
3057
|
+
searchText: re(e),
|
|
3055
3058
|
secondaryText: ge(e),
|
|
3056
3059
|
subText: e.subText,
|
|
3057
3060
|
subduedText: e.subduedText,
|
|
3058
3061
|
text: J(e),
|
|
3059
3062
|
totalChildCount: e.totalChildCount
|
|
3060
|
-
}), Ee = r(() => C.value.map(Te)), De = r(() =>
|
|
3063
|
+
}), Ee = r(() => C.value.map(Te)), De = r(() => oe.value.map(Te)), Oe = r(() => ({
|
|
3061
3064
|
colDef: c.filter.colDef,
|
|
3062
|
-
disabled:
|
|
3065
|
+
disabled: R.value,
|
|
3063
3066
|
filter: c.filter,
|
|
3064
3067
|
isLoading: c.filter.isLoading,
|
|
3065
3068
|
isOpen: c.filter.isOpen,
|
|
@@ -3071,29 +3074,29 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3071
3074
|
rowsLoading: c.filter.isLoading
|
|
3072
3075
|
}
|
|
3073
3076
|
})), X = () => {
|
|
3074
|
-
|
|
3077
|
+
R.value || (fe.value ? _.value += va : c.filter.hasMore && d("load-more", g.value.trim()));
|
|
3075
3078
|
}, ke = (e) => {
|
|
3076
|
-
|
|
3079
|
+
R.value || d("load-more", g.value.trim(), e.value);
|
|
3077
3080
|
}, Ae = (e) => {
|
|
3078
3081
|
let t = e.target;
|
|
3079
3082
|
d("open-change", t.open);
|
|
3080
3083
|
}, je = (e) => {
|
|
3081
|
-
|
|
3084
|
+
R.value || d("filter-change", {
|
|
3082
3085
|
type: "boolean",
|
|
3083
3086
|
value: e
|
|
3084
3087
|
});
|
|
3085
3088
|
}, Me = (e) => {
|
|
3086
|
-
|
|
3089
|
+
R.value || d("filter-change", {
|
|
3087
3090
|
type: "exists",
|
|
3088
3091
|
value: e === !0
|
|
3089
3092
|
});
|
|
3090
3093
|
}, Ne = (e) => {
|
|
3091
|
-
|
|
3094
|
+
R.value || d("filter-change", {
|
|
3092
3095
|
type: "range",
|
|
3093
3096
|
value: e
|
|
3094
3097
|
});
|
|
3095
3098
|
}, Pe = (e, t) => {
|
|
3096
|
-
if (!
|
|
3099
|
+
if (!R.value) {
|
|
3097
3100
|
if (D.value) {
|
|
3098
3101
|
d("filter-change", {
|
|
3099
3102
|
type: "aggregate-selection",
|
|
@@ -3114,17 +3117,17 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3114
3117
|
});
|
|
3115
3118
|
}
|
|
3116
3119
|
}, Fe = (e) => {
|
|
3117
|
-
|
|
3120
|
+
R.value || d("focus-change", Se(e), xe(e), e);
|
|
3118
3121
|
}, Ie = (e, t) => {
|
|
3119
|
-
|
|
3122
|
+
R.value || d("filter-change", {
|
|
3120
3123
|
field: e,
|
|
3121
3124
|
type: "boolean",
|
|
3122
3125
|
value: t ? null : !0
|
|
3123
3126
|
});
|
|
3124
3127
|
}, Le = () => {
|
|
3125
|
-
|
|
3128
|
+
R.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
3126
3129
|
};
|
|
3127
|
-
|
|
3130
|
+
H([g, () => c.filter.key], () => {
|
|
3128
3131
|
_.value = va;
|
|
3129
3132
|
});
|
|
3130
3133
|
let Re = () => {
|
|
@@ -3132,17 +3135,17 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3132
3135
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
3133
3136
|
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - ya)));
|
|
3134
3137
|
};
|
|
3135
|
-
return
|
|
3138
|
+
return H(w, () => {
|
|
3136
3139
|
c.filter.isOpen && Re();
|
|
3137
|
-
}, { immediate: !0 }),
|
|
3140
|
+
}, { immediate: !0 }), H(C, () => {
|
|
3138
3141
|
!c.filter.isOpen || !f.value || (m.value = Math.max(m.value, f.value.offsetHeight));
|
|
3139
|
-
}),
|
|
3140
|
-
e ? (Re(),
|
|
3141
|
-
}),
|
|
3142
|
+
}), H(() => c.filter.isOpen, (e) => {
|
|
3143
|
+
e ? (Re(), G()) : (p.value = {}, m.value = 0);
|
|
3144
|
+
}), se(() => {
|
|
3142
3145
|
if (!c.filter.isOpen || D.value || c.filter.singleSelect) return;
|
|
3143
|
-
let e = new Set(me.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = j.value.filter((t) => !
|
|
3144
|
-
t.length && (
|
|
3145
|
-
}),
|
|
3146
|
+
let e = new Set(me.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = j.value.filter((t) => !W.value.has(t) && !e.has(t));
|
|
3147
|
+
t.length && (ce.value = [...ce.value, ...t]);
|
|
3148
|
+
}), H(() => c.filter.searchQuery, (e) => {
|
|
3146
3149
|
let t = e ?? "";
|
|
3147
3150
|
t !== g.value && (g.value = t);
|
|
3148
3151
|
}), Je(g, (e) => {
|
|
@@ -3163,14 +3166,14 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3163
3166
|
class: "pv-text-subdued",
|
|
3164
3167
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
3165
3168
|
}, null, 8, ["name"]),
|
|
3166
|
-
s("span", null,
|
|
3167
|
-
|
|
3169
|
+
s("span", null, L(e.filter.label), 1),
|
|
3170
|
+
B.value ? (k(), i(we, {
|
|
3168
3171
|
key: 0,
|
|
3169
|
-
value:
|
|
3172
|
+
value: B.value,
|
|
3170
3173
|
size: "sm",
|
|
3171
3174
|
variant: "secondary"
|
|
3172
3175
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
3173
|
-
|
|
3176
|
+
de.value ? (k(), o("span", Qi, [u(he, { size: "sm" }), s("span", $i, L(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("v-if", !0)
|
|
3174
3177
|
]), s("div", {
|
|
3175
3178
|
ref_key: "filterContent",
|
|
3176
3179
|
ref: f,
|
|
@@ -3184,7 +3187,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3184
3187
|
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (k(), o("div", ta, [
|
|
3185
3188
|
e.filter.filterGroupOptions?.length ? (k(), o("div", na, [(k(!0), o(t, null, N(e.filter.filterGroupOptions, (e) => (k(), i(Y, {
|
|
3186
3189
|
key: e.field,
|
|
3187
|
-
disabled:
|
|
3190
|
+
disabled: R.value,
|
|
3188
3191
|
label: e.label,
|
|
3189
3192
|
size: "md",
|
|
3190
3193
|
variant: e.isActive ? "primary" : "secondary",
|
|
@@ -3197,13 +3200,13 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3197
3200
|
]))), 128))])) : a("v-if", !0),
|
|
3198
3201
|
e.filter.displayPreferencesIcon ? (k(), o("div", ra, [u(Y, {
|
|
3199
3202
|
ariaLabel: "Open preferences",
|
|
3200
|
-
disabled:
|
|
3203
|
+
disabled: R.value,
|
|
3201
3204
|
leftIcon: "sliders-horizontal",
|
|
3202
3205
|
size: "md",
|
|
3203
3206
|
variant: "ghost",
|
|
3204
3207
|
onClick: Le
|
|
3205
3208
|
}, null, 8, ["disabled"])])) : a("v-if", !0),
|
|
3206
|
-
e.filter.filterHeaderRenderer ? (k(), i(
|
|
3209
|
+
e.filter.filterHeaderRenderer ? (k(), i(P(e.filter.filterHeaderRenderer), x(v({ key: 2 }, Oe.value)), null, 16)) : a("v-if", !0)
|
|
3207
3210
|
])) : a("v-if", !0),
|
|
3208
3211
|
e.filter.hideSearch ? a("v-if", !0) : (k(), i(pt, {
|
|
3209
3212
|
key: 1,
|
|
@@ -3217,15 +3220,15 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3217
3220
|
"disabled",
|
|
3218
3221
|
"placeholder"
|
|
3219
3222
|
])),
|
|
3220
|
-
|
|
3223
|
+
le.value.length ? (k(), o("div", ia, [(k(!0), o(t, null, N(le.value, (t) => (k(), i(Yr, {
|
|
3221
3224
|
key: t.value,
|
|
3222
3225
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
3223
|
-
disabled:
|
|
3226
|
+
disabled: R.value || t.isSelectable === !1,
|
|
3224
3227
|
"focus-text": e.filter.focusText,
|
|
3225
3228
|
"is-focused": Ce(t),
|
|
3226
3229
|
indeterminate: ye(t),
|
|
3227
3230
|
label: J(t),
|
|
3228
|
-
name:
|
|
3231
|
+
name: z(h),
|
|
3229
3232
|
"query-text": g.value,
|
|
3230
3233
|
renderer: e.filter.filterOptionsRenderer,
|
|
3231
3234
|
"result-count": ge(t),
|
|
@@ -3255,8 +3258,8 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3255
3258
|
"onFocusValue",
|
|
3256
3259
|
"onToggleValue"
|
|
3257
3260
|
]))), 128))])) : a("v-if", !0),
|
|
3258
|
-
e.filter.isLoading && !
|
|
3259
|
-
!A.value && !C.value.length && !
|
|
3261
|
+
e.filter.isLoading && !ue.value ? (k(), o("div", aa, [u(he, { size: "sm" }), e.filter.loadingText ? (k(), o("span", oa, L(e.filter.loadingText), 1)) : a("v-if", !0)])) : (k(), o(t, { key: 4 }, [
|
|
3262
|
+
!A.value && !C.value.length && !le.value.length && !pe.value ? (k(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (k(), i(P(e.filter.emptyResultsRenderer), v({ key: 0 }, Oe.value, { "empty-reason": "no-values" }), null, 16)) : (k(), o("p", sa, "No values available."))], 64)) : !V.value.length && !le.value.length && !pe.value ? (k(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (k(), i(P(e.filter.emptyResultsRenderer), v({ key: 0 }, Oe.value, { "empty-reason": "no-matches" }), null, 16)) : (k(), o("p", ca, "No matching values."))], 64)) : a("v-if", !0),
|
|
3260
3263
|
K.value.length || pe.value ? (k(), o("div", la, [
|
|
3261
3264
|
K.value.length && !e.filter.hideOptionsSortDescription ? (k(), o("div", ua, [e.filter.filterOptionsSortTooltip ? (k(), i(yr, {
|
|
3262
3265
|
key: 0,
|
|
@@ -3267,20 +3270,20 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3267
3270
|
"use-teleport": !0,
|
|
3268
3271
|
style: { "--max-width": "200px" }
|
|
3269
3272
|
}, {
|
|
3270
|
-
trigger:
|
|
3271
|
-
content:
|
|
3273
|
+
trigger: U(() => [s("p", da, L(I.value), 1)]),
|
|
3274
|
+
content: U(() => [l(L(e.filter.filterOptionsSortTooltip), 1)]),
|
|
3272
3275
|
_: 1
|
|
3273
|
-
})) : (k(), o("p", fa,
|
|
3276
|
+
})) : (k(), o("p", fa, L(I.value), 1))])) : a("v-if", !0),
|
|
3274
3277
|
(k(!0), o(t, null, N(me.value, (n) => (k(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (k(), i(Yr, {
|
|
3275
3278
|
key: 0,
|
|
3276
3279
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
3277
3280
|
depth: n.depth,
|
|
3278
|
-
disabled:
|
|
3281
|
+
disabled: R.value || n.option.isSelectable === !1,
|
|
3279
3282
|
"focus-text": e.filter.focusText,
|
|
3280
3283
|
"is-focused": Ce(n.option),
|
|
3281
3284
|
indeterminate: ye(n.option),
|
|
3282
3285
|
label: J(n.option),
|
|
3283
|
-
name:
|
|
3286
|
+
name: z(h),
|
|
3284
3287
|
"query-text": g.value,
|
|
3285
3288
|
renderer: e.filter.filterOptionsRenderer,
|
|
3286
3289
|
"result-count": ge(n.option),
|
|
@@ -3313,7 +3316,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3313
3316
|
])) : (k(), i(Y, {
|
|
3314
3317
|
key: 1,
|
|
3315
3318
|
class: "pv-text-brand",
|
|
3316
|
-
disabled:
|
|
3319
|
+
disabled: R.value || e.filter.isLoadingMore,
|
|
3317
3320
|
label: "See more",
|
|
3318
3321
|
style: S({
|
|
3319
3322
|
marginLeft: `${n.depth * 1.25}rem`,
|
|
@@ -3329,21 +3332,21 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3329
3332
|
pe.value ? (k(), i(Y, {
|
|
3330
3333
|
key: 1,
|
|
3331
3334
|
class: "pv-text-brand",
|
|
3332
|
-
disabled:
|
|
3335
|
+
disabled: R.value || e.filter.isLoadingMore,
|
|
3333
3336
|
label: "See more",
|
|
3334
3337
|
style: { width: "fit-content" },
|
|
3335
3338
|
variant: "ghost",
|
|
3336
3339
|
onClick: X
|
|
3337
3340
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
3338
3341
|
])) : a("v-if", !0),
|
|
3339
|
-
e.filter.filterFooterRenderer ? (k(), i(
|
|
3342
|
+
e.filter.filterFooterRenderer ? (k(), i(P(e.filter.filterFooterRenderer), x(v({ key: 3 }, Oe.value)), null, 16)) : a("v-if", !0)
|
|
3340
3343
|
], 64))
|
|
3341
3344
|
], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (k(), i(Hr, {
|
|
3342
3345
|
key: 1,
|
|
3343
3346
|
mode: "dual",
|
|
3344
3347
|
rangeValue: e.filter.rangeValue,
|
|
3345
3348
|
"data-type": e.filter.dataType,
|
|
3346
|
-
disabled:
|
|
3349
|
+
disabled: R.value,
|
|
3347
3350
|
"input-icon": e.filter.rangeInputIcon,
|
|
3348
3351
|
label: e.filter.label,
|
|
3349
3352
|
max: e.filter.rangeMax,
|
|
@@ -3365,9 +3368,9 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3365
3368
|
"slider-step",
|
|
3366
3369
|
"step",
|
|
3367
3370
|
"value-decimals"
|
|
3368
|
-
])) : T.value === "range" ? (k(), o("p", pa, " Range filters require minimum and maximum bounds. ")) : T.value === "boolean" ? (k(), o("div", ma, [s("div", ha, [(k(!0), o(t, null, N(
|
|
3371
|
+
])) : T.value === "range" ? (k(), o("p", pa, " Range filters require minimum and maximum bounds. ")) : T.value === "boolean" ? (k(), o("div", ma, [s("div", ha, [(k(!0), o(t, null, N(te.value, (t) => (k(), i(Y, {
|
|
3369
3372
|
key: String(t.value),
|
|
3370
|
-
disabled:
|
|
3373
|
+
disabled: R.value,
|
|
3371
3374
|
label: t.label,
|
|
3372
3375
|
variant: e.filter.booleanValue === t.value ? "primary" : "secondary",
|
|
3373
3376
|
onClick: (n) => je(e.filter.booleanValue === t.value ? null : t.value)
|
|
@@ -3379,15 +3382,15 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3379
3382
|
]))), 128))]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (k(), i(Y, {
|
|
3380
3383
|
key: 0,
|
|
3381
3384
|
class: "pv-text-brand",
|
|
3382
|
-
disabled:
|
|
3385
|
+
disabled: R.value,
|
|
3383
3386
|
label: "Clear",
|
|
3384
3387
|
variant: "ghost",
|
|
3385
3388
|
onClick: r[1] ||= (e) => je(null)
|
|
3386
3389
|
}, null, 8, ["disabled"])) : a("v-if", !0)])) : T.value === "exists" ? (k(), o("label", ga, [u(Tr, {
|
|
3387
|
-
disabled:
|
|
3390
|
+
disabled: R.value,
|
|
3388
3391
|
modelValue: e.filter.existsValue ?? !1,
|
|
3389
3392
|
"onUpdate:modelValue": Me
|
|
3390
|
-
}, null, 8, ["disabled", "modelValue"]), s("span", _a,
|
|
3393
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", _a, L(y.value), 1)])) : a("v-if", !0)], 12, ea)], 40, Xi));
|
|
3391
3394
|
}
|
|
3392
3395
|
}), [["styles", ["summary[data-v-ea25a679]{background-image:none;padding-right:2px}[data-v-ea25a679] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-ea25a679]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel-refresh-status[data-v-ea25a679]{margin-left:auto;display:inline-flex}"]], ["__scopeId", "data-v-ea25a679"]]), xa = ["data-style"], Sa = /* @__PURE__ */ d({
|
|
3393
3396
|
__name: "PvTag",
|
|
@@ -3449,14 +3452,14 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3449
3452
|
name: e.icon,
|
|
3450
3453
|
size: 12
|
|
3451
3454
|
}, null, 8, ["class", "name"])) : a("v-if", !0),
|
|
3452
|
-
s("span", { class: b(["pv-truncate", { "pv-underline-dotted": e.spine }]) },
|
|
3455
|
+
s("span", { class: b(["pv-truncate", { "pv-underline-dotted": e.spine }]) }, L(e.label), 3),
|
|
3453
3456
|
e.showClear ? (k(), i(be, {
|
|
3454
3457
|
key: 1,
|
|
3455
3458
|
"data-testid": "pv-tag-close-icon",
|
|
3456
3459
|
size: 12,
|
|
3457
3460
|
name: "close",
|
|
3458
3461
|
"data-dd-action-name": e.rumRemoveActionName,
|
|
3459
|
-
onClick: r[0] ||=
|
|
3462
|
+
onClick: r[0] ||= le((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
3460
3463
|
}, null, 8, ["data-dd-action-name"])) : a("v-if", !0)
|
|
3461
3464
|
], 14, xa));
|
|
3462
3465
|
}
|
|
@@ -3524,7 +3527,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3524
3527
|
"--flex-gap": "12px",
|
|
3525
3528
|
"padding-bottom": "12px"
|
|
3526
3529
|
}
|
|
3527
|
-
}, [s("span", Ta,
|
|
3530
|
+
}, [s("span", Ta, L(e.label), 1), s("div", Ea, [(k(!0), o(t, null, N(e.values, (t) => (k(), i(Sa, {
|
|
3528
3531
|
key: `${e.key}-${t.value}`,
|
|
3529
3532
|
label: t.label,
|
|
3530
3533
|
showClear: d(e),
|
|
@@ -3541,7 +3544,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3541
3544
|
"--flex-gap": "12px",
|
|
3542
3545
|
"padding-bottom": "12px"
|
|
3543
3546
|
}
|
|
3544
|
-
}, [s("span", Da,
|
|
3547
|
+
}, [s("span", Da, L(n.label), 1), s("div", Oa, [(k(!0), o(t, null, N(n.values, (t) => (k(), i(Sa, {
|
|
3545
3548
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
3546
3549
|
label: t.label,
|
|
3547
3550
|
showClear: !e.readOnly,
|
|
@@ -3628,7 +3631,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3628
3631
|
ref_key: "contentContainer",
|
|
3629
3632
|
ref: l,
|
|
3630
3633
|
class: "pv-horizontal-scroller-content"
|
|
3631
|
-
}, [
|
|
3634
|
+
}, [ee(t.$slots, "default")], 512)], 10, Ma),
|
|
3632
3635
|
s("div", { class: b(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
3633
3636
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
3634
3637
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -3690,7 +3693,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3690
3693
|
}),
|
|
3691
3694
|
emits: ["update:modelValue"],
|
|
3692
3695
|
setup(e) {
|
|
3693
|
-
let n = e, c =
|
|
3696
|
+
let n = e, c = re(e, "modelValue"), l = r(() => {
|
|
3694
3697
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
3695
3698
|
for (let r of n.filters) r.category && (e.add(r.category), t.includes(r.category) || t.push(r.category));
|
|
3696
3699
|
let r = (n.categoryOrder ?? []).filter((t) => e.has(t)), i = new Set(r), a = t.filter((e) => !i.has(e));
|
|
@@ -3698,7 +3701,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3698
3701
|
}), d = (e) => {
|
|
3699
3702
|
c.value = e;
|
|
3700
3703
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
3701
|
-
return
|
|
3704
|
+
return H(l, (e) => {
|
|
3702
3705
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
3703
3706
|
}, { immediate: !0 }), (n, r) => l.value.length ? (k(), o("div", Fa, [u(Pa, {
|
|
3704
3707
|
ariaLabel: "Filter categories",
|
|
@@ -3709,7 +3712,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3709
3712
|
rightAriaLabel: "Scroll filter categories right",
|
|
3710
3713
|
showFades: ""
|
|
3711
3714
|
}, {
|
|
3712
|
-
default:
|
|
3715
|
+
default: U(() => [s("div", Ia, [u(Y, {
|
|
3713
3716
|
label: e.allCategoriesLabel,
|
|
3714
3717
|
variant: f(null),
|
|
3715
3718
|
onClick: r[0] ||= (e) => d(null)
|
|
@@ -4281,7 +4284,7 @@ var yo = (e, t, n) => {
|
|
|
4281
4284
|
"exists"
|
|
4282
4285
|
]);
|
|
4283
4286
|
function Cs(e, t, n) {
|
|
4284
|
-
let i = p(), a = M(t.value), o = _s(), s = vs(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), u =
|
|
4287
|
+
let i = p(), a = M(t.value), o = _s(), s = vs(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), u = F(/* @__PURE__ */ new Map()), d = r(() => !!(e.filterStore ?? s)), f = r(() => !d.value && !!e.filterOptionsHandler), m = r(() => e.filterStore ?? s ?? o), h = r(() => m.value === o), g = r(() => d.value || f.value), _ = r(() => e.filterModelType ?? m.value?.filterModelType.value), v = r(() => _.value ?? "advanced"), y = r(() => {
|
|
4285
4288
|
let n = m.value;
|
|
4286
4289
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? a.value : t.value;
|
|
4287
4290
|
}), b = r(() => es(y.value, v.value)), x = (e, t) => {
|
|
@@ -4298,9 +4301,9 @@ function Cs(e, t, n) {
|
|
|
4298
4301
|
}
|
|
4299
4302
|
x(t, n);
|
|
4300
4303
|
};
|
|
4301
|
-
|
|
4304
|
+
H(() => e.filterOptionsHandler, (e) => {
|
|
4302
4305
|
o.setFilterOptionsHandler(e);
|
|
4303
|
-
}, { immediate: !0 }),
|
|
4306
|
+
}, { immediate: !0 }), H([
|
|
4304
4307
|
() => e.filterOptions,
|
|
4305
4308
|
h,
|
|
4306
4309
|
() => e.filterOptionsHandler
|
|
@@ -4309,7 +4312,7 @@ function Cs(e, t, n) {
|
|
|
4309
4312
|
}, {
|
|
4310
4313
|
deep: !0,
|
|
4311
4314
|
immediate: !0
|
|
4312
|
-
}),
|
|
4315
|
+
}), H([
|
|
4313
4316
|
() => e.filterHasMoreMap,
|
|
4314
4317
|
h,
|
|
4315
4318
|
() => e.filterOptionsHandler
|
|
@@ -4318,7 +4321,7 @@ function Cs(e, t, n) {
|
|
|
4318
4321
|
}, {
|
|
4319
4322
|
deep: !0,
|
|
4320
4323
|
immediate: !0
|
|
4321
|
-
}),
|
|
4324
|
+
}), H([
|
|
4322
4325
|
() => e.filterLoadingMap,
|
|
4323
4326
|
h,
|
|
4324
4327
|
() => e.filterOptionsHandler
|
|
@@ -4327,7 +4330,7 @@ function Cs(e, t, n) {
|
|
|
4327
4330
|
}, {
|
|
4328
4331
|
deep: !0,
|
|
4329
4332
|
immediate: !0
|
|
4330
|
-
}),
|
|
4333
|
+
}), H([
|
|
4331
4334
|
() => e.filterLoadingMoreMap,
|
|
4332
4335
|
h,
|
|
4333
4336
|
() => e.filterOptionsHandler
|
|
@@ -4336,7 +4339,7 @@ function Cs(e, t, n) {
|
|
|
4336
4339
|
}, {
|
|
4337
4340
|
deep: !0,
|
|
4338
4341
|
immediate: !0
|
|
4339
|
-
}),
|
|
4342
|
+
}), H([
|
|
4340
4343
|
() => e.filterSearchQueries,
|
|
4341
4344
|
h,
|
|
4342
4345
|
() => e.filterOptionsHandler
|
|
@@ -4345,7 +4348,7 @@ function Cs(e, t, n) {
|
|
|
4345
4348
|
}, {
|
|
4346
4349
|
deep: !0,
|
|
4347
4350
|
immediate: !0
|
|
4348
|
-
}),
|
|
4351
|
+
}), H([
|
|
4349
4352
|
t,
|
|
4350
4353
|
h,
|
|
4351
4354
|
() => e.staged
|
|
@@ -4354,7 +4357,7 @@ function Cs(e, t, n) {
|
|
|
4354
4357
|
}, {
|
|
4355
4358
|
deep: !0,
|
|
4356
4359
|
immediate: !0
|
|
4357
|
-
}),
|
|
4360
|
+
}), H([() => e.staged, m], ([e]) => {
|
|
4358
4361
|
if (e) {
|
|
4359
4362
|
a.value = t.value;
|
|
4360
4363
|
let e = m.value;
|
|
@@ -4373,7 +4376,7 @@ function Cs(e, t, n) {
|
|
|
4373
4376
|
let t = D(e);
|
|
4374
4377
|
v.value === "advanced" && !t && T("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), v.value === "regular" && t && T("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
4375
4378
|
};
|
|
4376
|
-
|
|
4379
|
+
se(() => {
|
|
4377
4380
|
w("filterModel", !!((e.filterStore || s) && t.value !== null)), w("filterOptions", Object.keys(e.filterOptions).length > 0), w("filterLoadingMap", Object.keys(e.filterLoadingMap).length > 0), w("filterLoadingMoreMap", Object.keys(e.filterLoadingMoreMap).length > 0), w("filterHasMoreMap", Object.keys(e.filterHasMoreMap).length > 0), w("filterSearchQueries", Object.keys(e.filterSearchQueries).length > 0), w("filterOptionsHandler", !!(e.filterStore && e.filterOptionsHandler));
|
|
4378
4381
|
let n = !!((e.filterStore || s) && y.value !== null);
|
|
4379
4382
|
import.meta.env?.DEV && !_.value && y.value !== null && !D(y.value) && (E() || n) && T("missing-filter-model-type", "PvFilterPanel: filterModelType was not provided by props or filterStore; defaulting to \"advanced\".");
|
|
@@ -4384,47 +4387,47 @@ function Cs(e, t, n) {
|
|
|
4384
4387
|
if (t.filterPanelRange) return "range";
|
|
4385
4388
|
if (t.dataType === "boolean") return "boolean";
|
|
4386
4389
|
if (e.filter) return "value";
|
|
4387
|
-
},
|
|
4390
|
+
}, ee = (e) => N(e) ?? "value", P = (e) => k(e).filterPanelCategory ?? null, I = (e) => {
|
|
4388
4391
|
let t = k(e).filterPanelValueLabels;
|
|
4389
4392
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
4390
|
-
},
|
|
4393
|
+
}, L = (t) => {
|
|
4391
4394
|
let n = k(t), r = A(t);
|
|
4392
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 &&
|
|
4393
|
-
},
|
|
4395
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && oe.value.has(r) ? !1 : !!N(t);
|
|
4396
|
+
}, R = (e) => (m.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), z = (t) => {
|
|
4394
4397
|
let n = m.value;
|
|
4395
4398
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
4396
|
-
},
|
|
4399
|
+
}, te = (e) => m.value.filterHasMoreMap.value[e] ?? !1, ne = (e) => m.value.filterLoadingMap.value[e] ?? !1, re = (e) => m.value.filterLoadingMoreMap.value[e] ?? !1, B = (e) => m.value.filterSearchQueries.value[e] ?? "", ie = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
4397
4400
|
label: e.label,
|
|
4398
4401
|
value: e.filter.value
|
|
4399
|
-
}]),
|
|
4400
|
-
...
|
|
4401
|
-
...
|
|
4402
|
-
...
|
|
4403
|
-
],
|
|
4402
|
+
}]), ae = (e) => [
|
|
4403
|
+
...ie(e),
|
|
4404
|
+
...R(e),
|
|
4405
|
+
...z(e)
|
|
4406
|
+
], V = (e) => {
|
|
4404
4407
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
4405
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
4408
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(V) : [];
|
|
4406
4409
|
return n ? [n, ...r] : r;
|
|
4407
|
-
},
|
|
4410
|
+
}, oe = r(() => {
|
|
4408
4411
|
let t = /* @__PURE__ */ new Set();
|
|
4409
4412
|
for (let n of e.colDefs) {
|
|
4410
4413
|
let e = k(n);
|
|
4411
4414
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
4412
|
-
for (let n of
|
|
4415
|
+
for (let n of V(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
4413
4416
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
4414
4417
|
}
|
|
4415
4418
|
return t;
|
|
4416
|
-
}),
|
|
4417
|
-
let t = A(e), n = k(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i =
|
|
4419
|
+
}), U = (e) => {
|
|
4420
|
+
let t = A(e), n = k(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = V(n.aggregateFieldHierarchy);
|
|
4418
4421
|
return Array.from(new Set([
|
|
4419
4422
|
t,
|
|
4420
4423
|
...r,
|
|
4421
4424
|
...i
|
|
4422
4425
|
].filter(Boolean)));
|
|
4423
|
-
},
|
|
4426
|
+
}, ce = (e) => v.value === "advanced" && wi(e), W = (e, t) => ce(e) ? Pi({
|
|
4424
4427
|
colDef: e,
|
|
4425
4428
|
model: y.value,
|
|
4426
4429
|
options: t
|
|
4427
|
-
}) : new Map(
|
|
4430
|
+
}) : new Map(U(e).map((e) => [e, b.value.get(e)?.values ?? []])), le = (e, t, n, r) => {
|
|
4428
4431
|
let i = /* @__PURE__ */ new Set();
|
|
4429
4432
|
for (let t of hi(r)) for (let [r, a] of n) for (let n of a) gi(t, r, n, e) && i.add(`${r}:${n}`);
|
|
4430
4433
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
@@ -4433,14 +4436,14 @@ function Cs(e, t, n) {
|
|
|
4433
4436
|
metadata: { rawValue: n },
|
|
4434
4437
|
value: t === e ? n : fi(t, n)
|
|
4435
4438
|
}]));
|
|
4436
|
-
},
|
|
4439
|
+
}, ue = (e, t, n) => {
|
|
4437
4440
|
let r = /* @__PURE__ */ new Set();
|
|
4438
4441
|
for (let i of hi(n)) {
|
|
4439
4442
|
let n = mi(i, e), a = pi(i);
|
|
4440
4443
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
4441
4444
|
}
|
|
4442
4445
|
return Array.from(r);
|
|
4443
|
-
},
|
|
4446
|
+
}, de = (t) => Object.fromEntries(U(t).map((t) => [t, e.focusedValues[t] ?? []])), G = (t) => e.colDefs.find((e) => A(e) === t || e.field === t || e.colId === t), K = (e) => G(e)?.headerName ?? e, fe = (e) => {
|
|
4444
4447
|
let t = k(e);
|
|
4445
4448
|
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : yo(A(e), t.queryColIds, K);
|
|
4446
4449
|
}, pe = (e, t) => xo({
|
|
@@ -4459,11 +4462,11 @@ function Cs(e, t, n) {
|
|
|
4459
4462
|
if (t?.fields.length) return t.fields.map((e) => ({
|
|
4460
4463
|
field: e,
|
|
4461
4464
|
isActive: b.value.get(e)?.booleanValue === !0,
|
|
4462
|
-
label:
|
|
4465
|
+
label: G(e)?.headerName ?? e
|
|
4463
4466
|
}));
|
|
4464
|
-
}, q = (e) => ge.value.find((t) => t.key === e) ?? ge.value.find((t) =>
|
|
4465
|
-
let n = A(t), r = k(t), i =
|
|
4466
|
-
category:
|
|
4467
|
+
}, q = (e) => ge.value.find((t) => t.key === e) ?? ge.value.find((t) => U(t.colDef).includes(e)), J = (e, t, n) => hi(q(e)?.knownOptions ?? []).find((r) => r.value === n || gi(r, t, n, e)), ge = r(() => e.colDefs.filter(L).map((t) => {
|
|
4468
|
+
let n = A(t), r = k(t), i = ee(t), a = me(R(n), t), o = me(ae(n), t), s = {
|
|
4469
|
+
category: P(t),
|
|
4467
4470
|
clientFiltering: r.filterOptionsClientFiltering !== !1,
|
|
4468
4471
|
colDef: t,
|
|
4469
4472
|
controlled: r.filterPanelControlled === !0,
|
|
@@ -4485,12 +4488,12 @@ function Cs(e, t, n) {
|
|
|
4485
4488
|
hideOptionsSortDescription: r.filterPanelHideOptionsSortDescription,
|
|
4486
4489
|
hideSearch: r.filterPanelHideSearch,
|
|
4487
4490
|
focusedValues: e.focusedValues[n] ?? [],
|
|
4488
|
-
focusedValuesByField:
|
|
4489
|
-
hasMore:
|
|
4490
|
-
isAggregate:
|
|
4491
|
-
isFocusable: e.enableFocusView && (!e.focusableFields.length ||
|
|
4492
|
-
isLoading:
|
|
4493
|
-
isLoadingMore:
|
|
4491
|
+
focusedValuesByField: de(t),
|
|
4492
|
+
hasMore: te(n),
|
|
4493
|
+
isAggregate: ce(t),
|
|
4494
|
+
isFocusable: e.enableFocusView && (!e.focusableFields.length || U(t).some((t) => e.focusableFields.includes(t))),
|
|
4495
|
+
isLoading: ne(n),
|
|
4496
|
+
isLoadingMore: re(n),
|
|
4494
4497
|
isOpen: !1,
|
|
4495
4498
|
key: n,
|
|
4496
4499
|
knownOptions: o,
|
|
@@ -4503,11 +4506,11 @@ function Cs(e, t, n) {
|
|
|
4503
4506
|
rangeSliderStep: j(r.filterPanelRange?.sliderStep),
|
|
4504
4507
|
rangeStep: j(r.filterPanelRange?.step),
|
|
4505
4508
|
searchPlaceholder: fe(t),
|
|
4506
|
-
searchQuery:
|
|
4509
|
+
searchQuery: B(n) ?? "",
|
|
4507
4510
|
singleSelect: r.filterPanelSingleSelect === !0,
|
|
4508
4511
|
type: i,
|
|
4509
4512
|
valueDecimals: r.valueDecimals ?? null,
|
|
4510
|
-
valueLabels:
|
|
4513
|
+
valueLabels: I(t)
|
|
4511
4514
|
};
|
|
4512
4515
|
if (i === "range") return {
|
|
4513
4516
|
...s,
|
|
@@ -4524,7 +4527,7 @@ function Cs(e, t, n) {
|
|
|
4524
4527
|
...s,
|
|
4525
4528
|
existsValue: b.value.get(n)?.existsValue ?? !1
|
|
4526
4529
|
};
|
|
4527
|
-
let c = o, l = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, l]]) :
|
|
4530
|
+
let c = o, l = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, l]]) : W(t, c), f = le(n, t, d, c), p = [...c, ...f], m = ce(t) ? Ni({
|
|
4528
4531
|
colDef: t,
|
|
4529
4532
|
model: y.value,
|
|
4530
4533
|
options: p
|
|
@@ -4534,7 +4537,7 @@ function Cs(e, t, n) {
|
|
|
4534
4537
|
aggregateSelectionState: m,
|
|
4535
4538
|
knownOptions: p,
|
|
4536
4539
|
options: a,
|
|
4537
|
-
selectedValues: s.controlled ? l : m ? m.flatMap((e) => e.state === "selected" ? [e.id] : []) :
|
|
4540
|
+
selectedValues: s.controlled ? l : m ? m.flatMap((e) => e.state === "selected" ? [e.id] : []) : ue(n, d, p)
|
|
4538
4541
|
};
|
|
4539
4542
|
})), _e = r(() => ge.value.flatMap((e) => {
|
|
4540
4543
|
if (e.controlled) return [];
|
|
@@ -4597,9 +4600,9 @@ function Cs(e, t, n) {
|
|
|
4597
4600
|
if (e) {
|
|
4598
4601
|
n.add(e);
|
|
4599
4602
|
let t = q(e);
|
|
4600
|
-
t && (n.add(t.key),
|
|
4603
|
+
t && (n.add(t.key), U(t.colDef).forEach((e) => n.add(e)));
|
|
4601
4604
|
}
|
|
4602
|
-
for (let r of ge.value) r.type === "value" && (e && (n.has(r.key) ||
|
|
4605
|
+
for (let r of ge.value) r.type === "value" && (e && (n.has(r.key) || U(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
|
|
4603
4606
|
}, Y = (r, i, o, c) => {
|
|
4604
4607
|
O(r);
|
|
4605
4608
|
let l = y.value, u = m.value;
|
|
@@ -4693,7 +4696,7 @@ function Cs(e, t, n) {
|
|
|
4693
4696
|
Le(e, t.value);
|
|
4694
4697
|
return;
|
|
4695
4698
|
}
|
|
4696
|
-
let n = t.field ?? e, r =
|
|
4699
|
+
let n = t.field ?? e, r = G(n) ?? q(e)?.colDef;
|
|
4697
4700
|
if (t.type === "value") {
|
|
4698
4701
|
let r = q(e), i = J(e, n, t.value);
|
|
4699
4702
|
if (r?.isAggregate && i) {
|
|
@@ -4723,7 +4726,7 @@ function Cs(e, t, n) {
|
|
|
4723
4726
|
}, Be = (e, t, n, r) => {
|
|
4724
4727
|
let i = m.value;
|
|
4725
4728
|
if (!ze(e, t, n, r) || !i) return;
|
|
4726
|
-
let a = Array.from(new Set([...
|
|
4729
|
+
let a = Array.from(new Set([...W(e.colDef, e.knownOptions ?? []).values()].flat()));
|
|
4727
4730
|
i.fetchFilterOptions({
|
|
4728
4731
|
colDef: e.colDef,
|
|
4729
4732
|
field: e.key,
|
|
@@ -4776,7 +4779,7 @@ function Cs(e, t, n) {
|
|
|
4776
4779
|
n("controlled-change", t, l, s.colDef);
|
|
4777
4780
|
return;
|
|
4778
4781
|
}
|
|
4779
|
-
we(t, r, l, a ? o : void 0), Y(ss(y.value, r, l, v.value,
|
|
4782
|
+
we(t, r, l, a ? o : void 0), Y(ss(y.value, r, l, v.value, G(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
4780
4783
|
};
|
|
4781
4784
|
return {
|
|
4782
4785
|
resolvedFilters: ge,
|
|
@@ -4789,7 +4792,7 @@ function Cs(e, t, n) {
|
|
|
4789
4792
|
activeFilterModel: y,
|
|
4790
4793
|
effectiveFilterStore: m,
|
|
4791
4794
|
findResolvedFilter: q,
|
|
4792
|
-
getRepresentedFields:
|
|
4795
|
+
getRepresentedFields: U,
|
|
4793
4796
|
activateFilter: qe,
|
|
4794
4797
|
applyStagedFilters: Pe,
|
|
4795
4798
|
cancelStagedFilters: Fe,
|
|
@@ -4814,15 +4817,15 @@ function Cs(e, t, n) {
|
|
|
4814
4817
|
removeAppliedFilter: (e, t, n) => {
|
|
4815
4818
|
let r = n ?? q(e)?.type ?? "value";
|
|
4816
4819
|
if (r === "range" || !n && t === ys) {
|
|
4817
|
-
Y(os(y.value, e, null, null, v.value,
|
|
4820
|
+
Y(os(y.value, e, null, null, v.value, G(e) ?? q(e)?.colDef), "remove-filter", e, "range");
|
|
4818
4821
|
return;
|
|
4819
4822
|
}
|
|
4820
4823
|
if (r === "boolean" || !n && t === bs) {
|
|
4821
|
-
Y(is(y.value, e, null, v.value, "boolean",
|
|
4824
|
+
Y(is(y.value, e, null, v.value, "boolean", G(e) ?? q(e)?.colDef), "remove-filter", e, "boolean");
|
|
4822
4825
|
return;
|
|
4823
4826
|
}
|
|
4824
4827
|
if (r === "exists" || !n && t === xs) {
|
|
4825
|
-
Y(as(y.value, e, !1, "text", v.value,
|
|
4828
|
+
Y(as(y.value, e, !1, "text", v.value, G(e) ?? q(e)?.colDef), "remove-filter", e, "exists");
|
|
4826
4829
|
return;
|
|
4827
4830
|
}
|
|
4828
4831
|
let i = q(e);
|
|
@@ -4837,7 +4840,7 @@ function Cs(e, t, n) {
|
|
|
4837
4840
|
return;
|
|
4838
4841
|
}
|
|
4839
4842
|
let a = (b.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
4840
|
-
we(q(e)?.key ?? e, e, a), Y(ss(y.value, e, a, v.value,
|
|
4843
|
+
we(q(e)?.key ?? e, e, a), Y(ss(y.value, e, a, v.value, G(e) ?? q(e)?.colDef), "remove-filter", e, "value");
|
|
4841
4844
|
},
|
|
4842
4845
|
setFacetSelections: Ye,
|
|
4843
4846
|
usesHandlerFacets: Je
|
|
@@ -5030,13 +5033,13 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5030
5033
|
"suggestion-click"
|
|
5031
5034
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
5032
5035
|
setup(e, { emit: n }) {
|
|
5033
|
-
let c = e, l =
|
|
5034
|
-
|
|
5035
|
-
e && (
|
|
5036
|
-
}),
|
|
5037
|
-
e !== null && (
|
|
5036
|
+
let c = e, l = re(e, "filterModel"), d = re(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: x, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: D, removeAppliedFilter: O } = Cs(c, l, f), A = M("filters"), j = M({}), P = M(null), F = M(!1), I = M(!1), R = M(""), te = r(() => c.enableFilterSearch ? R.value.trim().toLowerCase() : ""), ne = r(() => te.value.length > 0), B = (e) => e.label.toLowerCase().includes(te.value);
|
|
5037
|
+
H(ne, (e) => {
|
|
5038
|
+
e && (P.value = null);
|
|
5039
|
+
}), H(P, (e) => {
|
|
5040
|
+
e !== null && (R.value = "");
|
|
5038
5041
|
});
|
|
5039
|
-
let
|
|
5042
|
+
let ie = (e) => e.colDef.context?.filterCollapsedByDefault === !0, ae = r(() => ne.value ? p.value.filter(B) : P.value === null ? p.value : p.value.filter((e) => e.category === P.value)), V = r(() => ae.value.filter((e) => !ie(e))), se = r(() => ae.value.filter(ie)), W = r(() => P.value !== null), le = r(() => W.value || ne.value || F.value ? [...V.value, ...se.value] : V.value), ue = r(() => ne.value ? "No filters match your search." : "No filters in this category."), de = r(() => `${F.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), G = r(() => A.value === "filters" && !W.value && !ne.value && se.value.length > 0), K = r(() => c.externalFilters.filter((e) => e.values.length > 0)), fe = r(() => K.value.filter((e) => e.removable !== !1)), pe = r(() => K.value.reduce((e, t) => e + t.values.length, 0)), me = r(() => fe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => h.value + pe.value), q = r(() => g.value || me.value > 0), J = r(() => !c.readOnly && (q.value || c.staged)), ge = r(() => le.value.map((e) => ({
|
|
5040
5043
|
...e,
|
|
5041
5044
|
isOpen: j.value[e.key] ?? e.isOpen ?? !1
|
|
5042
5045
|
}))), _e = r(() => [{
|
|
@@ -5056,13 +5059,13 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5056
5059
|
}, be = (e, t) => {
|
|
5057
5060
|
j.value[e.key] = t, f("open-change", e.key, t, e.colDef), t && v(e);
|
|
5058
5061
|
}, xe = () => {
|
|
5059
|
-
|
|
5062
|
+
I.value = !1;
|
|
5060
5063
|
}, Se = () => {
|
|
5061
5064
|
g.value && x(), fe.value.forEach((e) => {
|
|
5062
5065
|
e.values.forEach((t) => f("remove-external-filter", e.key, t.value));
|
|
5063
|
-
}),
|
|
5066
|
+
}), I.value = !1;
|
|
5064
5067
|
}, Ce = () => {
|
|
5065
|
-
|
|
5068
|
+
I.value = !0;
|
|
5066
5069
|
};
|
|
5067
5070
|
return (n, r) => (k(), o(t, null, [d.value ? a("v-if", !0) : (k(), o("div", {
|
|
5068
5071
|
key: 0,
|
|
@@ -5086,47 +5089,47 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5086
5089
|
variant: "secondary",
|
|
5087
5090
|
onClick: r[0] ||= (e) => d.value = !0
|
|
5088
5091
|
}))]),
|
|
5089
|
-
s("div", Es, [
|
|
5090
|
-
!e.readOnly &&
|
|
5091
|
-
key:
|
|
5092
|
+
s("div", Es, [ce(s("div", Ds, [
|
|
5093
|
+
!e.readOnly && z(_).length ? (k(), o("section", Os, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", ks, [(k(!0), o(t, null, N(z(_), (e) => (k(), i(Cr, {
|
|
5094
|
+
key: z(C)(e),
|
|
5092
5095
|
icon: e.icon,
|
|
5093
5096
|
"icon-classes": e.iconClasses,
|
|
5094
5097
|
label: e.label,
|
|
5095
|
-
onHandleClick: () =>
|
|
5098
|
+
onHandleClick: () => z(D)(e)
|
|
5096
5099
|
}, null, 8, [
|
|
5097
5100
|
"icon",
|
|
5098
5101
|
"icon-classes",
|
|
5099
5102
|
"label",
|
|
5100
5103
|
"onHandleClick"
|
|
5101
5104
|
]))), 128))])])) : a("v-if", !0),
|
|
5102
|
-
|
|
5105
|
+
ee(n.$slots, "suggestions", {}, void 0, !0),
|
|
5103
5106
|
u(La, {
|
|
5104
|
-
modelValue:
|
|
5105
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
5107
|
+
modelValue: P.value,
|
|
5108
|
+
"onUpdate:modelValue": r[1] ||= (e) => P.value = e,
|
|
5106
5109
|
"all-categories-label": e.allCategoriesLabel,
|
|
5107
5110
|
"category-order": e.categoryOrder,
|
|
5108
|
-
filters:
|
|
5111
|
+
filters: z(p)
|
|
5109
5112
|
}, null, 8, [
|
|
5110
5113
|
"modelValue",
|
|
5111
5114
|
"all-categories-label",
|
|
5112
5115
|
"category-order",
|
|
5113
5116
|
"filters"
|
|
5114
5117
|
]),
|
|
5115
|
-
e.enableFilterSearch &&
|
|
5116
|
-
modelValue:
|
|
5117
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
5118
|
+
e.enableFilterSearch && z(p).length ? (k(), o("div", As, [u(pt, {
|
|
5119
|
+
modelValue: R.value,
|
|
5120
|
+
"onUpdate:modelValue": r[2] ||= (e) => R.value = e,
|
|
5118
5121
|
placeholder: e.filterSearchPlaceholder
|
|
5119
5122
|
}, null, 8, ["modelValue", "placeholder"])])) : a("v-if", !0),
|
|
5120
|
-
|
|
5123
|
+
z(p).length ? ae.value.length ? (k(), o("div", Ns, [(k(!0), o(t, null, N(ge.value, (t) => (k(), i(ba, {
|
|
5121
5124
|
key: t.key,
|
|
5122
5125
|
"disable-while-loading": e.disableWhileLoading,
|
|
5123
5126
|
filter: t,
|
|
5124
|
-
onFilterChange: (e) =>
|
|
5127
|
+
onFilterChange: (e) => z(w)(t.key, e),
|
|
5125
5128
|
onFocusChange: r[3] ||= (e, t, n) => f("focus-change", e, t, n),
|
|
5126
5129
|
onHandleSettingsIcon: r[4] ||= (e, t) => f("handle-settings-icon", e, t),
|
|
5127
|
-
onLoadMore: (e, n) =>
|
|
5130
|
+
onLoadMore: (e, n) => z(T)(t, e, n),
|
|
5128
5131
|
onOpenChange: (e) => be(t, e),
|
|
5129
|
-
onSearchChange: (e) =>
|
|
5132
|
+
onSearchChange: (e) => z(E)(t, e)
|
|
5130
5133
|
}, null, 8, [
|
|
5131
5134
|
"disable-while-loading",
|
|
5132
5135
|
"filter",
|
|
@@ -5134,27 +5137,27 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5134
5137
|
"onLoadMore",
|
|
5135
5138
|
"onOpenChange",
|
|
5136
5139
|
"onSearchChange"
|
|
5137
|
-
]))), 128)),
|
|
5140
|
+
]))), 128)), G.value ? (k(), i(Y, {
|
|
5138
5141
|
key: 0,
|
|
5139
5142
|
class: "pv-filter-panel-collapsed-filters-toggle pv-text-brand",
|
|
5140
|
-
label:
|
|
5143
|
+
label: de.value,
|
|
5141
5144
|
variant: "ghost",
|
|
5142
|
-
onClick: r[5] ||= (e) =>
|
|
5143
|
-
}, null, 8, ["label"])) : a("v-if", !0)])) : (k(), o("div", Ms,
|
|
5144
|
-
], 512), [[
|
|
5145
|
-
"applied-count":
|
|
5146
|
-
"applied-groups":
|
|
5145
|
+
onClick: r[5] ||= (e) => F.value = !F.value
|
|
5146
|
+
}, null, 8, ["label"])) : a("v-if", !0)])) : (k(), o("div", Ms, L(ue.value), 1)) : (k(), o("div", js, " No filters available. "))
|
|
5147
|
+
], 512), [[oe, A.value === "filters"]]), ce(u(Aa, {
|
|
5148
|
+
"applied-count": z(h),
|
|
5149
|
+
"applied-groups": z(m),
|
|
5147
5150
|
"external-filters": K.value,
|
|
5148
5151
|
"read-only": e.readOnly,
|
|
5149
5152
|
onRemoveExternalFilter: r[6] ||= (e, t) => f("remove-external-filter", e, t),
|
|
5150
|
-
onRemoveFilter:
|
|
5153
|
+
onRemoveFilter: z(O)
|
|
5151
5154
|
}, null, 8, [
|
|
5152
5155
|
"applied-count",
|
|
5153
5156
|
"applied-groups",
|
|
5154
5157
|
"external-filters",
|
|
5155
5158
|
"read-only",
|
|
5156
5159
|
"onRemoveFilter"
|
|
5157
|
-
]), [[
|
|
5160
|
+
]), [[oe, A.value === "applied"]])]),
|
|
5158
5161
|
J.value ? (k(), o("div", Ps, [s("div", Fs, [q.value && !e.readOnly ? (k(), i(Y, {
|
|
5159
5162
|
key: 0,
|
|
5160
5163
|
class: "pv-text-brand",
|
|
@@ -5164,20 +5167,20 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5164
5167
|
}, null, 8, ["label"])) : a("v-if", !0), e.staged && !e.readOnly ? (k(), o(t, { key: 1 }, [u(Y, {
|
|
5165
5168
|
label: e.cancelLabel,
|
|
5166
5169
|
variant: "ghost",
|
|
5167
|
-
onClick:
|
|
5170
|
+
onClick: z(b)
|
|
5168
5171
|
}, null, 8, ["label", "onClick"]), u(Y, {
|
|
5169
5172
|
label: e.applyLabel,
|
|
5170
5173
|
variant: "primary",
|
|
5171
|
-
onClick:
|
|
5174
|
+
onClick: z(y)
|
|
5172
5175
|
}, null, 8, ["label", "onClick"])], 64)) : a("v-if", !0)])])) : a("v-if", !0)
|
|
5173
5176
|
], 12, ws)), u(je, {
|
|
5174
|
-
modelValue:
|
|
5175
|
-
"onUpdate:modelValue": r[7] ||= (e) =>
|
|
5177
|
+
modelValue: I.value,
|
|
5178
|
+
"onUpdate:modelValue": r[7] ||= (e) => I.value = e,
|
|
5176
5179
|
header: e.clearAllHeader,
|
|
5177
5180
|
style: { "--max-width": "440px" }
|
|
5178
5181
|
}, {
|
|
5179
|
-
body:
|
|
5180
|
-
footer:
|
|
5182
|
+
body: U(() => [s("p", Is, L(e.clearAllBody), 1)]),
|
|
5183
|
+
footer: U(() => [s("div", Ls, [u(Y, {
|
|
5181
5184
|
label: e.cancelLabel,
|
|
5182
5185
|
variant: "ghost",
|
|
5183
5186
|
onClick: xe
|
|
@@ -5522,15 +5525,15 @@ var zc = {
|
|
|
5522
5525
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
5523
5526
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
5524
5527
|
if ($(a) && o.transform !== "strict") {
|
|
5525
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = bc(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = bc(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = bc(x, ["dark"]), w = y || {}, { dark: T } = w, E = bc(w, ["dark"]), D = $(t) ? this._toVariables({ primitive: t }, o) : {}, O = $(_) ? this._toVariables({ semantic: _ }, o) : {}, k = $(C) ? this._toVariables({ light: C }, o) : {}, A = $(S) ? this._toVariables({ dark: S }, o) : {}, j = $(b) ? this._toVariables({ semantic: b }, o) : {}, M = $(E) ? this._toVariables({ light: E }, o) : {}, N = $(T) ? this._toVariables({ dark: T }, o) : {}, [
|
|
5526
|
-
s = this.transformCSS(e,
|
|
5527
|
-
...
|
|
5528
|
-
...
|
|
5529
|
-
...
|
|
5530
|
-
])], d = `${this.transformCSS(e, `${
|
|
5531
|
-
...
|
|
5532
|
-
...
|
|
5533
|
-
...
|
|
5528
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = bc(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = bc(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = bc(x, ["dark"]), w = y || {}, { dark: T } = w, E = bc(w, ["dark"]), D = $(t) ? this._toVariables({ primitive: t }, o) : {}, O = $(_) ? this._toVariables({ semantic: _ }, o) : {}, k = $(C) ? this._toVariables({ light: C }, o) : {}, A = $(S) ? this._toVariables({ dark: S }, o) : {}, j = $(b) ? this._toVariables({ semantic: b }, o) : {}, M = $(E) ? this._toVariables({ light: E }, o) : {}, N = $(T) ? this._toVariables({ dark: T }, o) : {}, [ee, P] = [D.declarations ?? "", D.tokens], [F, I] = [O.declarations ?? "", O.tokens || []], [L, R] = [k.declarations ?? "", k.tokens || []], [z, te] = [A.declarations ?? "", A.tokens || []], [ne, re] = [j.declarations ?? "", j.tokens || []], [B, ie] = [M.declarations ?? "", M.tokens || []], [ae, V] = [N.declarations ?? "", N.tokens || []];
|
|
5529
|
+
s = this.transformCSS(e, ee, "light", "variable", o, r, i), c = P, l = `${this.transformCSS(e, `${F}${L}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${z}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
5530
|
+
...I,
|
|
5531
|
+
...R,
|
|
5532
|
+
...te
|
|
5533
|
+
])], d = `${this.transformCSS(e, `${ne}${B}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ae}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
5534
|
+
...re,
|
|
5535
|
+
...ie,
|
|
5536
|
+
...V
|
|
5534
5537
|
])], p = Xs(a.css, { dt: Fc });
|
|
5535
5538
|
}
|
|
5536
5539
|
return {
|
|
@@ -5930,7 +5933,7 @@ function Xc(e) {
|
|
|
5930
5933
|
nonce: u
|
|
5931
5934
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), uc(i.value, "data-primevue-style-id", c), cc(i.value, o), i.value.onload = function(e) {
|
|
5932
5935
|
return D?.(e, { name: c });
|
|
5933
|
-
}, C?.(c)), !n.value && (A =
|
|
5936
|
+
}, C?.(c)), !n.value && (A = H(r, function(e) {
|
|
5934
5937
|
i.value.textContent = e, T?.(c);
|
|
5935
5938
|
}, { immediate: !0 }), n.value = !0);
|
|
5936
5939
|
}
|
|
@@ -6441,7 +6444,7 @@ function Dl(e, t) {
|
|
|
6441
6444
|
xc.on("theme:change", function(t) {
|
|
6442
6445
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
6443
6446
|
});
|
|
6444
|
-
var i =
|
|
6447
|
+
var i = H(t.config, function(e, t) {
|
|
6445
6448
|
hl.emit("config:change", {
|
|
6446
6449
|
newValue: e,
|
|
6447
6450
|
oldValue: t
|
|
@@ -6449,7 +6452,7 @@ function Dl(e, t) {
|
|
|
6449
6452
|
}, {
|
|
6450
6453
|
immediate: !0,
|
|
6451
6454
|
deep: !0
|
|
6452
|
-
}), a =
|
|
6455
|
+
}), a = H(function() {
|
|
6453
6456
|
return t.config.ripple;
|
|
6454
6457
|
}, function(e, t) {
|
|
6455
6458
|
hl.emit("config:ripple:change", {
|
|
@@ -6459,7 +6462,7 @@ function Dl(e, t) {
|
|
|
6459
6462
|
}, {
|
|
6460
6463
|
immediate: !0,
|
|
6461
6464
|
deep: !0
|
|
6462
|
-
}), o =
|
|
6465
|
+
}), o = H(function() {
|
|
6463
6466
|
return t.config.theme;
|
|
6464
6467
|
}, function(e, i) {
|
|
6465
6468
|
n.value || Bc.setTheme(e), t.config.unstyled || r(), n.value = !1, hl.emit("config:theme:change", {
|
|
@@ -6469,7 +6472,7 @@ function Dl(e, t) {
|
|
|
6469
6472
|
}, {
|
|
6470
6473
|
immediate: !0,
|
|
6471
6474
|
deep: !1
|
|
6472
|
-
}), s =
|
|
6475
|
+
}), s = H(function() {
|
|
6473
6476
|
return t.config.unstyled;
|
|
6474
6477
|
}, function(e, n) {
|
|
6475
6478
|
!e && t.config.theme && r(), hl.emit("config:unstyled:change", {
|