@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,5 +1,5 @@
|
|
|
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, isRef as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onBeforeUpdate as T, onMounted as E, onScopeDispose 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, isRef as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onBeforeUpdate as T, onMounted as E, onScopeDispose as ee, onUnmounted as D, openBlock as O, provide as k, reactive as A, readonly as j, ref as M, renderList as te, renderSlot as N, resolveComponent as ne, resolveDynamicComponent as re, shallowRef as P, toDisplayString as F, toValue as I, unref as L, useAttrs as ie, useId as ae, useModel as oe, useSlots as R, useTemplateRef as se, vModelCheckbox as ce, vModelText as le, vShow as ue, watch as z, watchEffect as de, withCtx as B, withDirectives as fe, withModifiers as pe } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var me = Object.defineProperty, he = Object.getOwnPropertyDescriptor, ge = Object.getOwnPropertyNames, _e = Object.prototype.hasOwnProperty, ve = (e, t) => {
|
|
5
5
|
let n = {};
|
|
@@ -18,7 +18,7 @@ var me = Object.defineProperty, he = Object.getOwnPropertyDescriptor, ge = Objec
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
|
|
20
20
|
function xe(e) {
|
|
21
|
-
return m() ? (
|
|
21
|
+
return m() ? (ee(e), !0) : !1;
|
|
22
22
|
}
|
|
23
23
|
var Se = typeof window < "u" && typeof document < "u";
|
|
24
24
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -43,7 +43,7 @@ function Ae(e, t = {}) {
|
|
|
43
43
|
clearTimeout(e), i(), i = Ee;
|
|
44
44
|
}, o;
|
|
45
45
|
return (s) => {
|
|
46
|
-
let c =
|
|
46
|
+
let c = I(e), l = I(t.maxWait);
|
|
47
47
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
48
48
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
49
49
|
n && a(n), r = void 0, e(o());
|
|
@@ -68,18 +68,18 @@ function Pe(e, t = !0, n) {
|
|
|
68
68
|
}
|
|
69
69
|
/* @__NO_SIDE_EFFECTS__ */
|
|
70
70
|
function Fe(e = !1, t = {}) {
|
|
71
|
-
let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = _(e), a =
|
|
71
|
+
let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = _(e), a = P(e);
|
|
72
72
|
function o(e) {
|
|
73
73
|
if (arguments.length) return a.value = e, a.value;
|
|
74
74
|
{
|
|
75
|
-
let e =
|
|
76
|
-
return a.value = a.value === e ?
|
|
75
|
+
let e = I(n);
|
|
76
|
+
return a.value = a.value === e ? I(r) : e, a.value;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return i ? o : [a, o];
|
|
80
80
|
}
|
|
81
81
|
function Ie(e, t, n) {
|
|
82
|
-
return
|
|
82
|
+
return z(e, t, {
|
|
83
83
|
...n,
|
|
84
84
|
immediate: !0
|
|
85
85
|
});
|
|
@@ -89,20 +89,20 @@ function Ie(e, t, n) {
|
|
|
89
89
|
var Le = Se ? window : void 0, Re = Se ? window.document : void 0;
|
|
90
90
|
Se && window.navigator, Se && window.location;
|
|
91
91
|
function ze(e) {
|
|
92
|
-
let t =
|
|
92
|
+
let t = I(e);
|
|
93
93
|
return t?.$el ?? t;
|
|
94
94
|
}
|
|
95
95
|
function Be(...e) {
|
|
96
96
|
let t = [], n = () => {
|
|
97
97
|
t.forEach((e) => e()), t.length = 0;
|
|
98
98
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
99
|
-
let t = je(
|
|
99
|
+
let t = je(I(e[0])).filter((e) => e != null);
|
|
100
100
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
101
101
|
}), o = Ie(() => [
|
|
102
102
|
a.value?.map((e) => ze(e)) ?? [Le].filter((e) => e != null),
|
|
103
|
-
je(
|
|
104
|
-
je(
|
|
105
|
-
|
|
103
|
+
je(I(a.value ? e[1] : e[0])),
|
|
104
|
+
je(L(a.value ? e[2] : e[1])),
|
|
105
|
+
I(a.value ? e[3] : e[2])
|
|
106
106
|
], ([e, r, a, o]) => {
|
|
107
107
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
108
108
|
let s = Te(o) ? { ...o } : o;
|
|
@@ -125,7 +125,7 @@ function He(e, t, n = {}) {
|
|
|
125
125
|
let e = { passive: !0 };
|
|
126
126
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", Ee, e)), r.document.documentElement.addEventListener("click", Ee, e);
|
|
127
127
|
}
|
|
128
|
-
let c = !0, l = (e) =>
|
|
128
|
+
let c = !0, l = (e) => I(i).some((t) => {
|
|
129
129
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
130
130
|
{
|
|
131
131
|
let n = ze(t);
|
|
@@ -133,11 +133,11 @@ function He(e, t, n = {}) {
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
function u(e) {
|
|
136
|
-
let t =
|
|
136
|
+
let t = I(e);
|
|
137
137
|
return t && t.$.subTree.shapeFlag === 16;
|
|
138
138
|
}
|
|
139
139
|
function d(e, t) {
|
|
140
|
-
let n =
|
|
140
|
+
let n = I(e), r = n.$.subTree && n.$.subTree.children;
|
|
141
141
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
142
142
|
}
|
|
143
143
|
let f = (n) => {
|
|
@@ -181,7 +181,7 @@ function He(e, t, n = {}) {
|
|
|
181
181
|
}
|
|
182
182
|
/* @__NO_SIDE_EFFECTS__ */
|
|
183
183
|
function Ue() {
|
|
184
|
-
let e =
|
|
184
|
+
let e = P(!1), t = p();
|
|
185
185
|
return t && E(() => {
|
|
186
186
|
e.value = !0;
|
|
187
187
|
}, t), e;
|
|
@@ -194,8 +194,8 @@ function We(e) {
|
|
|
194
194
|
function Ge(e, t, n = {}) {
|
|
195
195
|
let { window: i = Le, ...a } = n, o, s = /* @__PURE__ */ We(() => i && "MutationObserver" in i), c = () => {
|
|
196
196
|
o &&= (o.disconnect(), void 0);
|
|
197
|
-
}, l =
|
|
198
|
-
let t = je(
|
|
197
|
+
}, l = z(r(() => {
|
|
198
|
+
let t = je(I(e)).map(ze).filter(Ce);
|
|
199
199
|
return new Set(t);
|
|
200
200
|
}), (e) => {
|
|
201
201
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -216,7 +216,7 @@ function Ke(e, t, n = {}) {
|
|
|
216
216
|
if (!r || !i) return Ee;
|
|
217
217
|
let o, s = (e) => {
|
|
218
218
|
o?.(), o = e;
|
|
219
|
-
}, c =
|
|
219
|
+
}, c = de(() => {
|
|
220
220
|
let n = ze(e);
|
|
221
221
|
if (n) {
|
|
222
222
|
let { stop: e } = Ge(i, (e) => {
|
|
@@ -241,14 +241,14 @@ function Je(...e) {
|
|
|
241
241
|
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]);
|
|
242
242
|
let { target: i = Le, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = qe(t);
|
|
243
243
|
return Be(i, a, (e) => {
|
|
244
|
-
e.repeat &&
|
|
244
|
+
e.repeat && I(s) || c(e) && n(e);
|
|
245
245
|
}, o);
|
|
246
246
|
}
|
|
247
247
|
function Ye(e, t, n = {}) {
|
|
248
248
|
let { window: i = Le, ...a } = n, o, s = /* @__PURE__ */ We(() => i && "ResizeObserver" in i), c = () => {
|
|
249
249
|
o &&= (o.disconnect(), void 0);
|
|
250
|
-
}, l =
|
|
251
|
-
let t =
|
|
250
|
+
}, l = z(r(() => {
|
|
251
|
+
let t = I(e);
|
|
252
252
|
return Array.isArray(t) ? t.map((e) => ze(e)) : [ze(t)];
|
|
253
253
|
}), (e) => {
|
|
254
254
|
if (c(), s.value && i) {
|
|
@@ -267,7 +267,7 @@ function Ye(e, t, n = {}) {
|
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
269
|
function Xe(e, t = {}) {
|
|
270
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
270
|
+
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = P(0), c = P(0), l = P(0), u = P(0), d = P(0), f = P(0), p = P(0), m = P(0);
|
|
271
271
|
function h() {
|
|
272
272
|
let t = ze(e);
|
|
273
273
|
if (!t) {
|
|
@@ -280,7 +280,7 @@ function Xe(e, t = {}) {
|
|
|
280
280
|
function g() {
|
|
281
281
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
282
282
|
}
|
|
283
|
-
return Ye(e, g),
|
|
283
|
+
return Ye(e, g), z(() => ze(e), (e) => !e && g()), Ge(e, g, { attributeFilter: ["style", "class"] }), i && Be("scroll", g, {
|
|
284
284
|
capture: !0,
|
|
285
285
|
passive: !0
|
|
286
286
|
}), r && Be("resize", g, { passive: !0 }), Pe(() => {
|
|
@@ -298,7 +298,7 @@ function Xe(e, t = {}) {
|
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
function Ze(e, t = {}) {
|
|
301
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Le } = t, s =
|
|
301
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Le } = t, s = P(!1), c, l = (e) => {
|
|
302
302
|
let t = e ? n : i;
|
|
303
303
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
304
304
|
};
|
|
@@ -330,7 +330,7 @@ var Qe = /* @__PURE__ */ d({
|
|
|
330
330
|
dark: "pv-spinner-dark",
|
|
331
331
|
white: "pv-spinner-light"
|
|
332
332
|
};
|
|
333
|
-
return (r, i) => (
|
|
333
|
+
return (r, i) => (O(), o("div", {
|
|
334
334
|
"data-testid": "pv-spinner",
|
|
335
335
|
class: x(n[e.variant]),
|
|
336
336
|
style: C({ "--size": t[e.size] })
|
|
@@ -344,7 +344,7 @@ var Qe = /* @__PURE__ */ d({
|
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region src/web-components/utils.ts
|
|
346
346
|
function nt() {
|
|
347
|
-
let e =
|
|
347
|
+
let e = M(!1), t = p()?.root || {};
|
|
348
348
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
349
349
|
}
|
|
350
350
|
//#endregion
|
|
@@ -371,11 +371,11 @@ var rt = {
|
|
|
371
371
|
size: { type: null }
|
|
372
372
|
},
|
|
373
373
|
setup(e) {
|
|
374
|
-
let t = e, n = nt(), i =
|
|
374
|
+
let t = e, n = nt(), i = M(null), a = r(() => ({
|
|
375
375
|
"pv-icon": !0,
|
|
376
376
|
[`pv-icon-${t.size}`]: t.size != null && it.includes(t.size)
|
|
377
377
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
378
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (
|
|
378
|
+
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (O(), o("svg", {
|
|
379
379
|
"data-testid": "pv-icon",
|
|
380
380
|
"aria-hidden": "true",
|
|
381
381
|
class: x(a.value)
|
|
@@ -415,10 +415,10 @@ var rt = {
|
|
|
415
415
|
"pv-surface": t.variant == "ghost",
|
|
416
416
|
"pv-rounded": t.rounded
|
|
417
417
|
}));
|
|
418
|
-
return (e, t) => (
|
|
418
|
+
return (e, t) => (O(), o("div", {
|
|
419
419
|
class: x(i.value),
|
|
420
420
|
"data-testid": "pv-counter-badge"
|
|
421
|
-
},
|
|
421
|
+
}, F(n.value), 3));
|
|
422
422
|
}
|
|
423
423
|
}), ct = ".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%}", lt = (e, t) => {
|
|
424
424
|
let n = e.__vccOpts || e;
|
|
@@ -464,33 +464,33 @@ var rt = {
|
|
|
464
464
|
let t = tt(n.size);
|
|
465
465
|
return t && e.push(t), e;
|
|
466
466
|
});
|
|
467
|
-
return (n, r) => (
|
|
467
|
+
return (n, r) => (O(), o("button", {
|
|
468
468
|
type: "button",
|
|
469
469
|
class: x(c.value),
|
|
470
470
|
disabled: e.disabled,
|
|
471
471
|
"aria-label": s.value,
|
|
472
472
|
"data-testid": "pv-button"
|
|
473
|
-
}, [e.loading ? (
|
|
473
|
+
}, [e.loading ? (O(), i(Qe, {
|
|
474
474
|
key: 0,
|
|
475
475
|
size: "sm"
|
|
476
|
-
})) : (
|
|
477
|
-
e.leftCounterBadge ? (
|
|
476
|
+
})) : (O(), o(t, { key: 1 }, [
|
|
477
|
+
e.leftCounterBadge ? (O(), i(ut, {
|
|
478
478
|
key: 0,
|
|
479
479
|
value: e.leftCounterBadge,
|
|
480
480
|
variant: "tertiary"
|
|
481
481
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
482
|
-
e.leftIcon ? (
|
|
482
|
+
e.leftIcon ? (O(), i(ot, {
|
|
483
483
|
key: 1,
|
|
484
484
|
name: e.leftIcon,
|
|
485
485
|
"data-testid": "pv-button-left-icon"
|
|
486
486
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
487
|
-
e.label ? (
|
|
488
|
-
e.rightCounterBadge ? (
|
|
487
|
+
e.label ? (O(), o("span", ft, F(e.label), 1)) : a("v-if", !0),
|
|
488
|
+
e.rightCounterBadge ? (O(), i(ut, {
|
|
489
489
|
key: 3,
|
|
490
490
|
value: e.rightCounterBadge,
|
|
491
491
|
variant: "tertiary"
|
|
492
492
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
493
|
-
e.rightIcon ? (
|
|
493
|
+
e.rightIcon ? (O(), i(ot, {
|
|
494
494
|
key: 4,
|
|
495
495
|
name: e.rightIcon,
|
|
496
496
|
"data-testid": "pv-button-right-icon"
|
|
@@ -515,7 +515,7 @@ var rt = {
|
|
|
515
515
|
],
|
|
516
516
|
setup(e) {
|
|
517
517
|
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
518
|
-
return (n, r) => (
|
|
518
|
+
return (n, r) => (O(), o("div", mt, [e.variant === "select-clear" ? (O(), o(t, { key: 0 }, [u(pt, {
|
|
519
519
|
variant: "ghost",
|
|
520
520
|
"data-testid": "pv-select-menu-item-select-all",
|
|
521
521
|
"data-dd-action-name": i.value,
|
|
@@ -529,7 +529,7 @@ var rt = {
|
|
|
529
529
|
"data-dd-action-name": s.value,
|
|
530
530
|
onClick: r[1] ||= (e) => n.$emit("handle-clear-all"),
|
|
531
531
|
disabled: e.disabled
|
|
532
|
-
}, null, 8, ["data-dd-action-name", "disabled"])], 64)) : e.variant === "cancel-confirm" ? (
|
|
532
|
+
}, null, 8, ["data-dd-action-name", "disabled"])], 64)) : e.variant === "cancel-confirm" ? (O(), o(t, { key: 1 }, [u(pt, {
|
|
533
533
|
label: "Cancel",
|
|
534
534
|
variant: "ghost",
|
|
535
535
|
"data-testid": "pv-select-menu-item-cancel",
|
|
@@ -571,7 +571,7 @@ var rt = {
|
|
|
571
571
|
}),
|
|
572
572
|
emits: ["update:modelValue"],
|
|
573
573
|
setup(e, { expose: t }) {
|
|
574
|
-
let n = e, i =
|
|
574
|
+
let n = e, i = se("search-input"), c = oe(e, "modelValue"), l = r(() => ({
|
|
575
575
|
"pv-input-search": !0,
|
|
576
576
|
"pv-full-width": !0,
|
|
577
577
|
"pv-input-padded-end": !0,
|
|
@@ -582,7 +582,7 @@ var rt = {
|
|
|
582
582
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
583
583
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
584
584
|
});
|
|
585
|
-
}), t({ input: i }), (t, n) => (
|
|
585
|
+
}), t({ input: i }), (t, n) => (O(), o("div", gt, [fe(s("input", {
|
|
586
586
|
ref: "search-input",
|
|
587
587
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
588
588
|
"data-testid": "pv-search-input",
|
|
@@ -590,7 +590,7 @@ var rt = {
|
|
|
590
590
|
disabled: e.disabled,
|
|
591
591
|
class: x(l.value),
|
|
592
592
|
placeholder: e.placeholder
|
|
593
|
-
}, null, 10, _t), [[
|
|
593
|
+
}, null, 10, _t), [[le, c.value]]), e.displayShortcut ? (O(), o("kbd", vt, F(yt))) : a("v-if", !0)]));
|
|
594
594
|
}
|
|
595
595
|
}), [["styles", [".pv-input-search[data-v-9e0c84d9]{display:block}"]], ["__scopeId", "data-v-9e0c84d9"]]), xt = {
|
|
596
596
|
class: "pv-flex",
|
|
@@ -610,13 +610,13 @@ var rt = {
|
|
|
610
610
|
srcPathOverride: { type: String }
|
|
611
611
|
},
|
|
612
612
|
setup(e) {
|
|
613
|
-
let t = e, n =
|
|
613
|
+
let t = e, n = M(!0), i = r(() => rt[t.size] || "32px"), a = r(() => ({
|
|
614
614
|
"pv-icon": n.value,
|
|
615
615
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
616
616
|
})), c = r(() => ({ width: i.value })), l = r(() => `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg`), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
617
|
-
return
|
|
617
|
+
return z(u, () => {
|
|
618
618
|
n.value = !0;
|
|
619
|
-
}), (e, t) => (
|
|
619
|
+
}), (e, t) => (O(), o("div", xt, [n.value ? (O(), o("div", {
|
|
620
620
|
key: 0,
|
|
621
621
|
class: x(a.value),
|
|
622
622
|
style: C(c.value)
|
|
@@ -624,7 +624,7 @@ var rt = {
|
|
|
624
624
|
src: u.value,
|
|
625
625
|
alt: "",
|
|
626
626
|
onError: t[0] ||= (e) => n.value = !1
|
|
627
|
-
}, null, 40, St)], 6)) : (
|
|
627
|
+
}, null, 40, St)], 6)) : (O(), o("div", {
|
|
628
628
|
key: 1,
|
|
629
629
|
class: x(a.value)
|
|
630
630
|
}, null, 2))]));
|
|
@@ -660,16 +660,16 @@ var rt = {
|
|
|
660
660
|
xl: 20,
|
|
661
661
|
"2x": 20
|
|
662
662
|
};
|
|
663
|
-
return (s, c) => (
|
|
663
|
+
return (s, c) => (O(), o("div", {
|
|
664
664
|
class: x(n[e.size]),
|
|
665
665
|
"data-testid": "pv-avatar",
|
|
666
666
|
"data-style": e.variant,
|
|
667
667
|
"data-shape": e.shape
|
|
668
|
-
}, [e.icon ? (
|
|
668
|
+
}, [e.icon ? (O(), i(ot, {
|
|
669
669
|
key: 0,
|
|
670
670
|
name: e.icon,
|
|
671
671
|
size: r[e.size]
|
|
672
|
-
}, null, 8, ["name", "size"])) : e.initials ? (
|
|
672
|
+
}, null, 8, ["name", "size"])) : e.initials ? (O(), o(t, { key: 1 }, [l(F(e.initials), 1)], 64)) : e.image ? (O(), o("img", {
|
|
673
673
|
key: 2,
|
|
674
674
|
src: e.image,
|
|
675
675
|
alt: e.alt ?? ""
|
|
@@ -707,18 +707,18 @@ function Mt(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r =
|
|
|
707
707
|
return a ? At(a, t, r) : Ot(e, t, r);
|
|
708
708
|
}
|
|
709
709
|
function Nt(e, t = {}) {
|
|
710
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = nt(), l = i ??
|
|
710
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = nt(), l = i ?? R(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = M(d());
|
|
711
711
|
T(() => {
|
|
712
712
|
f.value = d();
|
|
713
713
|
});
|
|
714
|
-
let p =
|
|
714
|
+
let p = M(!1), m = null, h = null, g = () => {
|
|
715
715
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
716
716
|
}, _ = () => {
|
|
717
717
|
if (!c.value) {
|
|
718
718
|
p.value = !1;
|
|
719
719
|
return;
|
|
720
720
|
}
|
|
721
|
-
let t =
|
|
721
|
+
let t = L(n);
|
|
722
722
|
if (!t) {
|
|
723
723
|
p.value = !1;
|
|
724
724
|
return;
|
|
@@ -730,7 +730,7 @@ function Nt(e, t = {}) {
|
|
|
730
730
|
}, v = () => {
|
|
731
731
|
if (!c.value) return;
|
|
732
732
|
g();
|
|
733
|
-
let t =
|
|
733
|
+
let t = L(n);
|
|
734
734
|
if (!t) {
|
|
735
735
|
p.value = !1;
|
|
736
736
|
return;
|
|
@@ -743,7 +743,7 @@ function Nt(e, t = {}) {
|
|
|
743
743
|
characterData: !0
|
|
744
744
|
}));
|
|
745
745
|
};
|
|
746
|
-
return E(v), w(g),
|
|
746
|
+
return E(v), w(g), z(() => L(n), () => {
|
|
747
747
|
c.value && v();
|
|
748
748
|
}), {
|
|
749
749
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -788,10 +788,10 @@ var Pt = [
|
|
|
788
788
|
}
|
|
789
789
|
},
|
|
790
790
|
setup(e) {
|
|
791
|
-
let t = e, n =
|
|
791
|
+
let t = e, n = se("rootRef"), { present: i } = Nt("tooltip-content", { host: r(() => {
|
|
792
792
|
let e = n.value?.getRootNode();
|
|
793
793
|
return e instanceof ShadowRoot ? e.host : null;
|
|
794
|
-
}) }), s = r(() => t.delay > 0), c =
|
|
794
|
+
}) }), s = r(() => t.delay > 0), c = M(!1), l = M(!1), u, d = () => {
|
|
795
795
|
u && clearTimeout(u), u = void 0;
|
|
796
796
|
}, f = r(() => !s.value || c.value || l.value), p = () => {
|
|
797
797
|
s.value && (d(), u = setTimeout(() => {
|
|
@@ -804,28 +804,28 @@ var Pt = [
|
|
|
804
804
|
}, g = () => {
|
|
805
805
|
s.value && (c.value = !1);
|
|
806
806
|
};
|
|
807
|
-
return w(d), (t, r) => (
|
|
807
|
+
return w(d), (t, r) => (O(), o("div", {
|
|
808
808
|
ref_key: "rootRef",
|
|
809
809
|
ref: n,
|
|
810
810
|
"data-testid": "pv-tooltip",
|
|
811
811
|
class: x([{
|
|
812
|
-
"pv-tooltip":
|
|
813
|
-
"pv-tooltip-small":
|
|
812
|
+
"pv-tooltip": L(i),
|
|
813
|
+
"pv-tooltip-small": L(i) && e.size === "sm"
|
|
814
814
|
}]),
|
|
815
815
|
"data-position": e.tooltipPosition,
|
|
816
816
|
"data-style": e.variant === "white" ? "white" : "dark",
|
|
817
817
|
"data-static": e.disableInteractive ? !0 : void 0,
|
|
818
|
-
"aria-labelledby":
|
|
818
|
+
"aria-labelledby": L(i) ? e.ariaLabelledBy : void 0,
|
|
819
819
|
onMouseenter: p,
|
|
820
820
|
onMouseleave: m,
|
|
821
821
|
onFocusin: h,
|
|
822
822
|
onFocusout: g
|
|
823
|
-
}, [
|
|
823
|
+
}, [N(t.$slots, "label"), L(i) ? fe((O(), o("div", {
|
|
824
824
|
key: 0,
|
|
825
825
|
role: "tooltip",
|
|
826
826
|
id: e.ariaLabelledBy,
|
|
827
827
|
"data-testid": "pv-tooltip-content"
|
|
828
|
-
}, [
|
|
828
|
+
}, [N(t.$slots, "tooltip-content")], 8, Ft)), [[ue, f.value]]) : a("v-if", !0)], 42, Pt));
|
|
829
829
|
}
|
|
830
830
|
}), Lt = ["disabled"], Rt = { class: "pv-flex pv-select-button-trigger-content" }, zt = {
|
|
831
831
|
key: 0,
|
|
@@ -889,34 +889,34 @@ var Pt = [
|
|
|
889
889
|
selected: !0
|
|
890
890
|
};
|
|
891
891
|
});
|
|
892
|
-
return (n, r) => (
|
|
892
|
+
return (n, r) => (O(), o("button", {
|
|
893
893
|
"data-testid": "pv-multi-select-button-trigger",
|
|
894
894
|
class: x(c.value),
|
|
895
895
|
style: { "--flex-gap": "0.25rem" },
|
|
896
896
|
disabled: e.disabled || e.isLoading
|
|
897
897
|
}, [
|
|
898
898
|
s("div", Rt, [
|
|
899
|
-
e.prefixLabel ? (
|
|
900
|
-
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (
|
|
899
|
+
e.prefixLabel ? (O(), o("p", zt, F(e.prefixLabel), 1)) : a("v-if", !0),
|
|
900
|
+
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (O(), i(ut, {
|
|
901
901
|
key: 1,
|
|
902
902
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
903
903
|
value: e.counterValue,
|
|
904
904
|
variant: e.counterBadgeVariant,
|
|
905
905
|
size: "sm"
|
|
906
906
|
}, null, 8, ["value", "variant"])) : a("v-if", !0),
|
|
907
|
-
!e.isLoading && e.renderer && m.value ? (
|
|
908
|
-
e.icon ? (
|
|
907
|
+
!e.isLoading && e.renderer && m.value ? (O(), i(re(e.renderer), S(y({ key: 2 }, m.value)), null, 16)) : (O(), o(t, { key: 3 }, [
|
|
908
|
+
e.icon ? (O(), i(ot, {
|
|
909
909
|
key: 0,
|
|
910
910
|
"data-testid": "pv-multi-select-button-icon",
|
|
911
911
|
name: e.icon,
|
|
912
912
|
size: f.value
|
|
913
913
|
}, null, 8, ["name", "size"])) : a("v-if", !0),
|
|
914
|
-
e.companyLogo ? (
|
|
914
|
+
e.companyLogo ? (O(), i(Ct, {
|
|
915
915
|
key: 1,
|
|
916
916
|
name: e.companyLogo,
|
|
917
917
|
size: "sm"
|
|
918
918
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
919
|
-
e.avatar ? (
|
|
919
|
+
e.avatar ? (O(), i(Et, {
|
|
920
920
|
key: 2,
|
|
921
921
|
class: "pv-select-button-trigger-avatar",
|
|
922
922
|
"data-testid": "pv-multi-select-button-avatar",
|
|
@@ -932,20 +932,20 @@ var Pt = [
|
|
|
932
932
|
"shape",
|
|
933
933
|
"size"
|
|
934
934
|
])) : a("v-if", !0),
|
|
935
|
-
e.isLoading || e.label ? (
|
|
935
|
+
e.isLoading || e.label ? (O(), o("span", {
|
|
936
936
|
key: 3,
|
|
937
937
|
class: "pv-text-body-md pv-text-regular pv-truncate pv-select-button-trigger-label",
|
|
938
938
|
title: p.value
|
|
939
|
-
},
|
|
939
|
+
}, F(p.value), 9, Bt)) : a("v-if", !0)
|
|
940
940
|
], 64)),
|
|
941
|
-
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (
|
|
941
|
+
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (O(), i(ut, {
|
|
942
942
|
key: 4,
|
|
943
943
|
"data-testid": "pv-multi-select-right-counter-badge",
|
|
944
944
|
value: e.counterValue,
|
|
945
945
|
variant: e.counterBadgeVariant,
|
|
946
946
|
size: "sm"
|
|
947
947
|
}, null, 8, ["value", "variant"])) : a("v-if", !0),
|
|
948
|
-
e.counterStyle === "secondary" && (e.counterValue ?? 0) >= 2 ? (
|
|
948
|
+
e.counterStyle === "secondary" && (e.counterValue ?? 0) >= 2 ? (O(), i(ut, {
|
|
949
949
|
key: 5,
|
|
950
950
|
"data-testid": "pv-multi-select-secondary-counter-badge",
|
|
951
951
|
prefix: "+",
|
|
@@ -954,28 +954,28 @@ var Pt = [
|
|
|
954
954
|
size: "sm"
|
|
955
955
|
}, null, 8, ["value"])) : a("v-if", !0)
|
|
956
956
|
]),
|
|
957
|
-
e.showDropdown ? (
|
|
957
|
+
e.showDropdown ? (O(), i(ot, {
|
|
958
958
|
key: 0,
|
|
959
959
|
name: e.open ? "chevron-up" : "chevron-down"
|
|
960
960
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
961
|
-
e.showClear ? (
|
|
961
|
+
e.showClear ? (O(), i(It, {
|
|
962
962
|
key: 1,
|
|
963
963
|
size: "sm",
|
|
964
964
|
variant: "dark",
|
|
965
965
|
"tooltip-position": "top-left"
|
|
966
966
|
}, {
|
|
967
|
-
label:
|
|
967
|
+
label: B(() => [u(ot, {
|
|
968
968
|
name: "close",
|
|
969
969
|
onClick: r[0] ||= pe((e) => n.$emit("handle-clear"), ["stop"])
|
|
970
970
|
})]),
|
|
971
|
-
"tooltip-content":
|
|
971
|
+
"tooltip-content": B(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
972
972
|
_: 1
|
|
973
973
|
})) : a("v-if", !0)
|
|
974
974
|
], 10, Lt));
|
|
975
975
|
}
|
|
976
976
|
}), [["styles", [".pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}"]], ["__scopeId", "data-v-da9865ad"]]), Ht = {}, Ut = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
|
|
977
977
|
function Wt(e, t) {
|
|
978
|
-
return
|
|
978
|
+
return O(), o("div", Ut, "No Results Found");
|
|
979
979
|
}
|
|
980
980
|
var Gt = /* @__PURE__ */ lt(Ht, [["render", Wt]]), Kt = Math.min, qt = Math.max, Jt = Math.round, Yt = Math.floor, Xt = (e) => ({
|
|
981
981
|
x: e,
|
|
@@ -1889,8 +1889,8 @@ function Yr(e, t, n = !0) {
|
|
|
1889
1889
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
1890
1890
|
var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
1891
1891
|
let n = t.root.value;
|
|
1892
|
-
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n)) : !1;
|
|
1893
|
-
}, Qr = (e) => (
|
|
1892
|
+
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
1893
|
+
}, Qr = (e) => (D(() => Xr.delete(e)), (t) => {
|
|
1894
1894
|
if (!t) {
|
|
1895
1895
|
Xr.delete(e);
|
|
1896
1896
|
return;
|
|
@@ -1916,6 +1916,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
1916
1916
|
type: Boolean,
|
|
1917
1917
|
default: !1
|
|
1918
1918
|
},
|
|
1919
|
+
hoverTarget: { type: String },
|
|
1919
1920
|
disableInteractive: {
|
|
1920
1921
|
type: Boolean,
|
|
1921
1922
|
default: !1
|
|
@@ -1968,17 +1969,18 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
1968
1969
|
}),
|
|
1969
1970
|
emits: ["update:modelValue"],
|
|
1970
1971
|
setup(e) {
|
|
1971
|
-
let t = e, c =
|
|
1972
|
+
let t = e, c = oe(e, "modelValue"), l = p(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: f } = Nt("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" && [
|
|
1972
1973
|
"anchor-name: --pv-anchor",
|
|
1973
1974
|
"position-area: bottom",
|
|
1974
1975
|
"position-try-fallbacks: flip-block",
|
|
1975
1976
|
"position-visibility: anchors-visible",
|
|
1976
1977
|
`anchor-scope: ${ei}`
|
|
1977
|
-
].every((e) => CSS.supports(e)), g =
|
|
1978
|
+
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), y = M(null), x = M(null), S = r(() => t.hoverTarget && v.value?.closest(t.hoverTarget) || v.value), w = Ze(S), T = Ze(x), ee = M(!1), k = M(!1), A = M(!1), j = Qr({
|
|
1978
1979
|
root: _,
|
|
1979
1980
|
floating: x,
|
|
1980
|
-
|
|
1981
|
-
|
|
1981
|
+
hoverArea: r(() => t.hoverTarget ? S.value : null),
|
|
1982
|
+
close: () => t.disableClickOutsideToClose ? !1 : (pe(), !0)
|
|
1983
|
+
}), te = {
|
|
1982
1984
|
"top-center": "top",
|
|
1983
1985
|
"bottom-center": "bottom",
|
|
1984
1986
|
"center-left": "left",
|
|
@@ -1989,7 +1991,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
1989
1991
|
"top-right": "top-end",
|
|
1990
1992
|
"bottom-left": "bottom-start",
|
|
1991
1993
|
"bottom-right": "bottom-end"
|
|
1992
|
-
},
|
|
1994
|
+
}, ne = {
|
|
1993
1995
|
"top-center": {
|
|
1994
1996
|
area: "top",
|
|
1995
1997
|
margin: "margin-block-end"
|
|
@@ -2030,142 +2032,142 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2030
2032
|
area: "bottom span-left",
|
|
2031
2033
|
margin: "margin-block-start"
|
|
2032
2034
|
}
|
|
2033
|
-
},
|
|
2035
|
+
}, re = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), P = r(() => ({
|
|
2034
2036
|
width: "fit-content",
|
|
2035
2037
|
...h ? { "anchor-scope": ei } : void 0,
|
|
2036
2038
|
...t.cssCustomProperties
|
|
2037
2039
|
})), F = r(() => h ? { "anchor-name": ei } : void 0), I = r(() => {
|
|
2038
|
-
let e =
|
|
2040
|
+
let e = ne[t.position];
|
|
2039
2041
|
return {
|
|
2040
2042
|
"position-anchor": ei,
|
|
2041
2043
|
"position-area": e.area,
|
|
2042
2044
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
2043
2045
|
[e.margin]: `${t.offset ?? 0}px`
|
|
2044
2046
|
};
|
|
2045
|
-
}),
|
|
2047
|
+
}), ie = () => {}, ae = () => ({});
|
|
2046
2048
|
if (!h) {
|
|
2047
2049
|
let e = [];
|
|
2048
2050
|
t.disableAutoPlacement || e.push(Mr({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Ar(t.offset));
|
|
2049
2051
|
let n = Ur(y, x, {
|
|
2050
|
-
placement:
|
|
2052
|
+
placement: te[t.position],
|
|
2051
2053
|
strategy: t.positioningStrategy,
|
|
2052
2054
|
middleware: e
|
|
2053
2055
|
});
|
|
2054
|
-
|
|
2056
|
+
ie = n.update, ae = () => n.floatingStyles.value;
|
|
2055
2057
|
let i = Xe(y), a = /* @__PURE__ */ Ne(() => {
|
|
2056
|
-
c.value &&
|
|
2058
|
+
c.value && ie();
|
|
2057
2059
|
}, 5);
|
|
2058
|
-
|
|
2060
|
+
z([
|
|
2059
2061
|
i.top,
|
|
2060
2062
|
i.left,
|
|
2061
2063
|
i.width,
|
|
2062
2064
|
i.height
|
|
2063
2065
|
], a), He(_, () => {
|
|
2064
|
-
t.disableClickOutsideToClose ||
|
|
2066
|
+
t.disableClickOutsideToClose || B(!1);
|
|
2065
2067
|
}, { ignore: r(() => [
|
|
2066
2068
|
x.value,
|
|
2067
2069
|
".p-datepicker-panel",
|
|
2068
2070
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
2069
2071
|
]) });
|
|
2070
2072
|
}
|
|
2071
|
-
let
|
|
2072
|
-
...
|
|
2073
|
+
let R = r(() => ({
|
|
2074
|
+
...ae(),
|
|
2073
2075
|
zIndex: t.zIndex
|
|
2074
|
-
})),
|
|
2075
|
-
|
|
2076
|
-
}, ce = () => {
|
|
2077
|
-
oe && clearTimeout(oe), oe = void 0;
|
|
2078
|
-
}, ue = (e) => {
|
|
2079
|
-
se(), ce(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? z = setTimeout(() => {
|
|
2080
|
-
c.value = !0, z = void 0;
|
|
2081
|
-
}, t.delay) : c.value = e);
|
|
2076
|
+
})), se, ce, le = () => {
|
|
2077
|
+
se && clearTimeout(se), se = void 0;
|
|
2082
2078
|
}, de = () => {
|
|
2083
|
-
|
|
2079
|
+
ce && clearTimeout(ce), ce = void 0;
|
|
2080
|
+
}, B = (e) => {
|
|
2081
|
+
le(), de(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? se = setTimeout(() => {
|
|
2082
|
+
c.value = !0, se = void 0;
|
|
2083
|
+
}, t.delay) : c.value = e);
|
|
2084
2084
|
}, pe = () => {
|
|
2085
|
+
le(), de(), c.value = !1;
|
|
2086
|
+
}, me = () => {
|
|
2085
2087
|
let e = x.value;
|
|
2086
2088
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
2087
|
-
},
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2089
|
+
}, he = r(() => !!c.value && (T.value || k.value)), ge = r(() => !t.showOnHover || A.value ? !1 : t.disableInteractive ? w.value || ee.value : w.value || ee.value || he.value);
|
|
2090
|
+
z([
|
|
2091
|
+
w,
|
|
2092
|
+
ee,
|
|
2093
|
+
k
|
|
2092
2094
|
], ([e, t, n]) => {
|
|
2093
2095
|
!e && !t && !n && (A.value = !1);
|
|
2094
2096
|
});
|
|
2095
|
-
let
|
|
2096
|
-
|
|
2097
|
-
},
|
|
2098
|
-
|
|
2099
|
-
}, ve = () => {
|
|
2100
|
-
D.value = !1;
|
|
2097
|
+
let _e = ({ target: e }) => {
|
|
2098
|
+
ee.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
2099
|
+
}, ve = ({ target: e }) => {
|
|
2100
|
+
k.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
2101
2101
|
}, ye = () => {
|
|
2102
|
+
k.value = !1;
|
|
2103
|
+
}, be = () => {
|
|
2102
2104
|
if (t.showOnHover) {
|
|
2103
2105
|
if (t.disableClickOutsideToClose) return;
|
|
2104
|
-
if (!c.value && !
|
|
2105
|
-
A.value = !1,
|
|
2106
|
+
if (!c.value && !se && t.enableClickToggle) {
|
|
2107
|
+
A.value = !1, B(!0);
|
|
2106
2108
|
return;
|
|
2107
2109
|
}
|
|
2108
|
-
A.value = !0,
|
|
2110
|
+
A.value = !0, pe();
|
|
2109
2111
|
return;
|
|
2110
2112
|
}
|
|
2111
|
-
|
|
2112
|
-
},
|
|
2113
|
+
B(se ? !1 : !c.value);
|
|
2114
|
+
}, xe = (e) => {
|
|
2113
2115
|
let t = e.newState === "open";
|
|
2114
2116
|
c.value !== t && (c.value = t);
|
|
2115
|
-
},
|
|
2116
|
-
h &&
|
|
2117
|
+
}, Se = (e) => {
|
|
2118
|
+
h && re.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), B(!1));
|
|
2117
2119
|
};
|
|
2118
|
-
return
|
|
2120
|
+
return z(c, async (e) => {
|
|
2119
2121
|
if (t.showOnHover && t.enableGroupSync && j(!!e), !h) {
|
|
2120
|
-
e &&
|
|
2122
|
+
e && ie();
|
|
2121
2123
|
return;
|
|
2122
2124
|
}
|
|
2123
|
-
await b(),
|
|
2124
|
-
}),
|
|
2125
|
+
await b(), me();
|
|
2126
|
+
}), z(ge, (e) => {
|
|
2125
2127
|
if (t.showOnHover) {
|
|
2126
2128
|
if (e) {
|
|
2127
|
-
|
|
2129
|
+
B(!0);
|
|
2128
2130
|
return;
|
|
2129
2131
|
}
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
}, t.closeDelay)) :
|
|
2132
|
+
le(), t.closeDelay > 0 ? (de(), ce = setTimeout(() => {
|
|
2133
|
+
ce = void 0, ge.value || B(!1);
|
|
2134
|
+
}, t.closeDelay)) : B(!1);
|
|
2133
2135
|
}
|
|
2134
|
-
}),
|
|
2135
|
-
e ? h && c.value && b(
|
|
2136
|
+
}), z(m, (e) => {
|
|
2137
|
+
e ? h && c.value && b(me) : pe();
|
|
2136
2138
|
}), E(() => {
|
|
2137
|
-
y.value = v.value, g.value = !0, c.value && b(() => h ?
|
|
2138
|
-
}),
|
|
2139
|
-
|
|
2140
|
-
}),
|
|
2139
|
+
y.value = v.value, g.value = !0, c.value && b(() => h ? me() : ie());
|
|
2140
|
+
}), D(() => {
|
|
2141
|
+
le(), de();
|
|
2142
|
+
}), z(() => t.disabled, (e) => {
|
|
2141
2143
|
if (!e) {
|
|
2142
|
-
|
|
2144
|
+
ge.value && B(!0);
|
|
2143
2145
|
return;
|
|
2144
2146
|
}
|
|
2145
|
-
|
|
2146
|
-
}), (r, l) => (
|
|
2147
|
+
ee.value &&= !1, k.value &&= !1, B(!1);
|
|
2148
|
+
}), (r, l) => (O(), o("div", {
|
|
2147
2149
|
ref_key: "root",
|
|
2148
2150
|
ref: _,
|
|
2149
|
-
style: C(
|
|
2150
|
-
onKeydown:
|
|
2151
|
+
style: C(P.value),
|
|
2152
|
+
onKeydown: Se
|
|
2151
2153
|
}, [s("div", {
|
|
2152
2154
|
ref_key: "triggerWrapper",
|
|
2153
2155
|
ref: v,
|
|
2154
2156
|
style: C(F.value),
|
|
2155
|
-
onClick:
|
|
2156
|
-
onFocusin:
|
|
2157
|
-
onFocusout: l[0] ||= (e) =>
|
|
2158
|
-
}, [
|
|
2157
|
+
onClick: be,
|
|
2158
|
+
onFocusin: _e,
|
|
2159
|
+
onFocusout: l[0] ||= (e) => ee.value = !1
|
|
2160
|
+
}, [N(r.$slots, "trigger")], 36), g.value && L(h) && m.value ? (O(), o("div", {
|
|
2159
2161
|
key: 0,
|
|
2160
2162
|
ref_key: "floating",
|
|
2161
2163
|
ref: x,
|
|
2162
2164
|
class: "pv-floating pv-floating-native",
|
|
2163
|
-
popover:
|
|
2165
|
+
popover: re.value,
|
|
2164
2166
|
style: C(I.value),
|
|
2165
|
-
onToggle:
|
|
2166
|
-
onFocusin:
|
|
2167
|
-
onFocusout:
|
|
2168
|
-
}, [e.disabled ? a("v-if", !0) :
|
|
2167
|
+
onToggle: xe,
|
|
2168
|
+
onFocusin: ve,
|
|
2169
|
+
onFocusout: ye
|
|
2170
|
+
}, [e.disabled ? a("v-if", !0) : N(r.$slots, "content", { key: 0 })], 44, $r)) : m.value ? (O(), i(n, {
|
|
2169
2171
|
key: 1,
|
|
2170
2172
|
to: e.teleportLocation,
|
|
2171
2173
|
disabled: !t.useTeleport || e.disabled
|
|
@@ -2173,10 +2175,10 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2173
2175
|
ref_key: "floating",
|
|
2174
2176
|
ref: x,
|
|
2175
2177
|
class: "pv-floating",
|
|
2176
|
-
style: C(
|
|
2177
|
-
onFocusin:
|
|
2178
|
-
onFocusout:
|
|
2179
|
-
}, [
|
|
2178
|
+
style: C(R.value),
|
|
2179
|
+
onFocusin: ve,
|
|
2180
|
+
onFocusout: ye
|
|
2181
|
+
}, [N(r.$slots, "content")], 36), [[ue, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
2180
2182
|
}
|
|
2181
2183
|
}), ni = ["data-variant"], ri = /* @__PURE__ */ d({
|
|
2182
2184
|
__name: "PvTooltipV2",
|
|
@@ -2201,6 +2203,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2201
2203
|
type: Boolean,
|
|
2202
2204
|
default: !0
|
|
2203
2205
|
},
|
|
2206
|
+
hoverTarget: { type: String },
|
|
2204
2207
|
disableInteractive: {
|
|
2205
2208
|
type: Boolean,
|
|
2206
2209
|
default: !1
|
|
@@ -2223,16 +2226,16 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2223
2226
|
},
|
|
2224
2227
|
setup(e) {
|
|
2225
2228
|
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 } = Nt("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
2226
|
-
return (t, n) => (
|
|
2227
|
-
trigger:
|
|
2229
|
+
return (t, n) => (O(), i(ti, S(h(t.$props)), c({
|
|
2230
|
+
trigger: B(() => [N(t.$slots, "trigger", {}, () => [s("p", null, F(e.label), 1)])]),
|
|
2228
2231
|
_: 2
|
|
2229
2232
|
}, [f.value ? {
|
|
2230
2233
|
name: "content",
|
|
2231
|
-
fn:
|
|
2234
|
+
fn: B(() => [s("div", {
|
|
2232
2235
|
class: x(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
2233
2236
|
role: "tooltip",
|
|
2234
2237
|
"data-variant": e.variant
|
|
2235
|
-
}, [
|
|
2238
|
+
}, [N(t.$slots, "content", {}, () => [l(F(e.description), 1)])], 10, ni)]),
|
|
2236
2239
|
key: "0"
|
|
2237
2240
|
} : void 0]), 1040));
|
|
2238
2241
|
}
|
|
@@ -2284,7 +2287,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2284
2287
|
config: { type: Object }
|
|
2285
2288
|
},
|
|
2286
2289
|
setup(e) {
|
|
2287
|
-
let n = e, c =
|
|
2290
|
+
let n = e, c = M(null), l = M(null), d = r(() => n.menuOptionConfig?.size === "lg" ? "sm" : "lg"), f = r(() => n.menuOptionConfig?.size === "xl" ? 20 : void 0), p = r(() => n.subText || null), m = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), h = (e, t, n) => {
|
|
2288
2291
|
let r = n;
|
|
2289
2292
|
if (r === void 0) {
|
|
2290
2293
|
if (!t) return [];
|
|
@@ -2312,7 +2315,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2312
2315
|
};
|
|
2313
2316
|
return E(() => {
|
|
2314
2317
|
_();
|
|
2315
|
-
}),
|
|
2318
|
+
}), z(() => [
|
|
2316
2319
|
n.queryText,
|
|
2317
2320
|
n.text,
|
|
2318
2321
|
n.subText,
|
|
@@ -2323,8 +2326,8 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2323
2326
|
}, {
|
|
2324
2327
|
flush: "post",
|
|
2325
2328
|
deep: !0
|
|
2326
|
-
}), (n, r) => (
|
|
2327
|
-
e.avatar ? (
|
|
2329
|
+
}), (n, r) => (O(), o(t, null, [
|
|
2330
|
+
e.avatar ? (O(), i(Et, {
|
|
2328
2331
|
key: 0,
|
|
2329
2332
|
initials: e.avatar.initials,
|
|
2330
2333
|
image: e.avatar.image,
|
|
@@ -2338,7 +2341,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2338
2341
|
"shape",
|
|
2339
2342
|
"size"
|
|
2340
2343
|
])) : a("v-if", !0),
|
|
2341
|
-
e.icon ? (
|
|
2344
|
+
e.icon ? (O(), i(ot, {
|
|
2342
2345
|
key: 1,
|
|
2343
2346
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
2344
2347
|
name: e.icon,
|
|
@@ -2348,7 +2351,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2348
2351
|
"name",
|
|
2349
2352
|
"size"
|
|
2350
2353
|
])) : a("v-if", !0),
|
|
2351
|
-
e.companyName ? (
|
|
2354
|
+
e.companyName ? (O(), i(Ct, {
|
|
2352
2355
|
key: 2,
|
|
2353
2356
|
name: e.companyName,
|
|
2354
2357
|
size: "sm"
|
|
@@ -2359,11 +2362,11 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2359
2362
|
}, [s("span", {
|
|
2360
2363
|
ref_key: "mainText",
|
|
2361
2364
|
ref: c
|
|
2362
|
-
},
|
|
2365
|
+
}, F(e.text), 513), e.subduedText ? (O(), o("span", {
|
|
2363
2366
|
key: 0,
|
|
2364
2367
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
2365
2368
|
style: { "padding-left": "4px" }
|
|
2366
|
-
},
|
|
2369
|
+
}, F(e.subduedText), 3)) : a("v-if", !0)], 8, ai), p.value ? (O(), o("span", {
|
|
2367
2370
|
key: 0,
|
|
2368
2371
|
ref_key: "subText",
|
|
2369
2372
|
ref: l,
|
|
@@ -2374,12 +2377,12 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2374
2377
|
{ "pv-text-subdued": !e.disabled }
|
|
2375
2378
|
]),
|
|
2376
2379
|
title: e.hoverTitle ?? p.value
|
|
2377
|
-
},
|
|
2378
|
-
e.secondaryLoading ? (
|
|
2380
|
+
}, F(p.value), 11, oi)) : a("v-if", !0)]),
|
|
2381
|
+
e.secondaryLoading ? (O(), i(Qe, {
|
|
2379
2382
|
key: 3,
|
|
2380
2383
|
size: "xs",
|
|
2381
2384
|
variant: "dark"
|
|
2382
|
-
})) : e.secondaryIcon ? (
|
|
2385
|
+
})) : e.secondaryIcon ? (O(), i(ot, {
|
|
2383
2386
|
key: 4,
|
|
2384
2387
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
2385
2388
|
name: e.secondaryIcon,
|
|
@@ -2388,7 +2391,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2388
2391
|
"class",
|
|
2389
2392
|
"name",
|
|
2390
2393
|
"size"
|
|
2391
|
-
])) : e.description ? (
|
|
2394
|
+
])) : e.description ? (O(), i(ri, {
|
|
2392
2395
|
key: 5,
|
|
2393
2396
|
variant: "dark",
|
|
2394
2397
|
position: "top-center",
|
|
@@ -2397,19 +2400,19 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2397
2400
|
disableInteractive: !0,
|
|
2398
2401
|
style: { "pointer-events": "auto" }
|
|
2399
2402
|
}, {
|
|
2400
|
-
trigger:
|
|
2403
|
+
trigger: B(() => [a(" stop the click so reading the description doesn't also toggle the option "), u(ot, {
|
|
2401
2404
|
size: 12,
|
|
2402
2405
|
name: "info-circle",
|
|
2403
2406
|
class: "pv-text-subdued",
|
|
2404
2407
|
onClick: r[0] ||= pe(() => {}, ["stop", "prevent"])
|
|
2405
2408
|
})]),
|
|
2406
|
-
content:
|
|
2409
|
+
content: B(() => [s("div", si, F(e.description), 1)]),
|
|
2407
2410
|
_: 1
|
|
2408
|
-
})) : e.secondaryText && typeof e.secondaryText == "number" ? (
|
|
2411
|
+
})) : e.secondaryText && typeof e.secondaryText == "number" ? (O(), i(ut, {
|
|
2409
2412
|
key: 6,
|
|
2410
2413
|
value: e.secondaryText,
|
|
2411
2414
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
2412
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (
|
|
2415
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (O(), o("span", ci, F(e.secondaryText), 1)) : a("v-if", !0)
|
|
2413
2416
|
], 64));
|
|
2414
2417
|
}
|
|
2415
2418
|
}), ui = ["for"], di = { key: 0 }, fi = [
|
|
@@ -2443,22 +2446,22 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2443
2446
|
}),
|
|
2444
2447
|
emits: ["update:modelValue"],
|
|
2445
2448
|
setup(e) {
|
|
2446
|
-
let t = e.id ??
|
|
2447
|
-
return (r, i) => (
|
|
2448
|
-
for:
|
|
2449
|
+
let t = e.id ?? ae(), n = oe(e, "modelValue");
|
|
2450
|
+
return (r, i) => (O(), o("label", {
|
|
2451
|
+
for: L(t),
|
|
2449
2452
|
class: x(["pv-label pv-switch pv-label-hover", {
|
|
2450
2453
|
"pv-input-small": e.size === "md",
|
|
2451
2454
|
"pv-input-xsmall": e.size === "sm",
|
|
2452
2455
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
2453
2456
|
}])
|
|
2454
|
-
}, [e.label ? (
|
|
2457
|
+
}, [e.label ? (O(), o("span", di, F(e.label), 1)) : a("v-if", !0), fe(s("input", {
|
|
2455
2458
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
2456
2459
|
disabled: e.disabled,
|
|
2457
2460
|
"aria-label": e.ariaLabel,
|
|
2458
2461
|
type: "checkbox",
|
|
2459
2462
|
role: "switch",
|
|
2460
|
-
id:
|
|
2461
|
-
}, null, 8, fi), [[
|
|
2463
|
+
id: L(t)
|
|
2464
|
+
}, null, 8, fi), [[ce, n.value]])], 10, ui));
|
|
2462
2465
|
}
|
|
2463
2466
|
}), [["styles", [".pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}"]], ["__scopeId", "data-v-73e6d2b2"]]), mi = ["aria-label", "disabled"], hi = /* @__PURE__ */ d({
|
|
2464
2467
|
__name: "PvActionButton",
|
|
@@ -2492,12 +2495,12 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2492
2495
|
}, o = (e) => {
|
|
2493
2496
|
n.disabled || r("click", e);
|
|
2494
2497
|
};
|
|
2495
|
-
return (t, n) => (
|
|
2498
|
+
return (t, n) => (O(), i(ri, {
|
|
2496
2499
|
position: e.tooltipPosition,
|
|
2497
2500
|
"disable-interactive": !0,
|
|
2498
2501
|
"use-teleport": !0
|
|
2499
2502
|
}, c({
|
|
2500
|
-
trigger:
|
|
2503
|
+
trigger: B(() => [s("button", {
|
|
2501
2504
|
type: "button",
|
|
2502
2505
|
class: x(["pv-button-link-tertiary", { "pv-action-button-reveal-on-hover": !e.alwaysShow }]),
|
|
2503
2506
|
style: { "--button-icon-only-padding": "0px" },
|
|
@@ -2511,7 +2514,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2511
2514
|
_: 2
|
|
2512
2515
|
}, [e.tooltipText ? {
|
|
2513
2516
|
name: "content",
|
|
2514
|
-
fn:
|
|
2517
|
+
fn: B(() => [l(F(e.tooltipText), 1)]),
|
|
2515
2518
|
key: "0"
|
|
2516
2519
|
} : void 0]), 1032, ["position"]));
|
|
2517
2520
|
}
|
|
@@ -2529,7 +2532,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2529
2532
|
}), p = r(() => typeof n.action.tooltipText == "function" ? n.action.tooltipText(n.option) : n.action.tooltipText), m = r(() => (typeof n.action.interactive == "function" ? n.action.interactive(n.option) : n.action.interactive) ?? !0), h = r(() => typeof n.action.alwaysShow == "function" ? n.action.alwaysShow(n.option) : n.action.alwaysShow), g = () => {
|
|
2530
2533
|
m.value && !f.value && n.action.action?.(n.option);
|
|
2531
2534
|
};
|
|
2532
|
-
return (e, n) => m.value ? (
|
|
2535
|
+
return (e, n) => m.value ? (O(), i(hi, {
|
|
2533
2536
|
key: 0,
|
|
2534
2537
|
icon: d.value,
|
|
2535
2538
|
"tooltip-text": p.value ?? "",
|
|
@@ -2542,11 +2545,11 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2542
2545
|
"tooltip-text",
|
|
2543
2546
|
"disabled",
|
|
2544
2547
|
"always-show"
|
|
2545
|
-
])) : (
|
|
2548
|
+
])) : (O(), o(t, { key: 1 }, [a(" Non-interactive actions render as an informational icon rather than a button. "), u(ri, {
|
|
2546
2549
|
"disable-interactive": !0,
|
|
2547
2550
|
"use-teleport": !0
|
|
2548
2551
|
}, c({
|
|
2549
|
-
trigger:
|
|
2552
|
+
trigger: B(() => [a(" Stop propagation so the icon does not toggle the surrounding menu item's selection. "), s("span", {
|
|
2550
2553
|
class: x(["pv-text-brand", { "pv-action-button-reveal-on-hover": !h.value }]),
|
|
2551
2554
|
role: "img",
|
|
2552
2555
|
"aria-label": p.value,
|
|
@@ -2555,7 +2558,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2555
2558
|
_: 2
|
|
2556
2559
|
}, [p.value ? {
|
|
2557
2560
|
name: "content",
|
|
2558
|
-
fn:
|
|
2561
|
+
fn: B(() => [l(F(p.value), 1)]),
|
|
2559
2562
|
key: "0"
|
|
2560
2563
|
} : void 0]), 1024)], 2112));
|
|
2561
2564
|
}
|
|
@@ -2612,7 +2615,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2612
2615
|
},
|
|
2613
2616
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2614
2617
|
setup(e, { emit: t }) {
|
|
2615
|
-
let n = e, c =
|
|
2618
|
+
let n = e, c = se("inputRef"), l = g(vi, void 0), d = g(yi, M(!1)), f = g(Si, void 0), m = g(Ci, void 0), h = g(bi, r(() => !1)), _ = r(() => {
|
|
2616
2619
|
if (!d.value || !Wr(n)) return [];
|
|
2617
2620
|
let e = n.children ? Gr(n.children) : [];
|
|
2618
2621
|
if (f?.value) {
|
|
@@ -2646,46 +2649,46 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2646
2649
|
icon: n.menuOptionConfig?.variant === "icon" ? n.icon : void 0,
|
|
2647
2650
|
companyName: n.menuOptionConfig?.variant === "company" ? n.companyName || n.text : void 0
|
|
2648
2651
|
};
|
|
2649
|
-
}), E = r(() => n.action ?? n.menuOptionConfig?.action),
|
|
2652
|
+
}), E = r(() => n.action ?? n.menuOptionConfig?.action), ee = r(() => {
|
|
2650
2653
|
let e = n.menuOptionConfig?.variant;
|
|
2651
2654
|
return e !== "checkbox" && e !== "radio";
|
|
2652
|
-
}),
|
|
2653
|
-
n.disabled || (
|
|
2655
|
+
}), D = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${D.value}-${p()?.uid}`, A = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), j = r(() => `pv-menu${n.menuOptionConfig?.variant === "checkbox" ? "-checkbox" : n.menuOptionConfig?.variant === "radio" ? "-radio" : ""}-item`), te = t, N = (e) => {
|
|
2656
|
+
n.disabled || (te("handle-selected", {
|
|
2654
2657
|
option: { ...n },
|
|
2655
2658
|
event: e
|
|
2656
2659
|
}), b(() => {
|
|
2657
2660
|
c.value && (c.value.checked = v.value, c.value.indeterminate = S.value);
|
|
2658
2661
|
}));
|
|
2659
|
-
},
|
|
2662
|
+
}, ne = (e) => {
|
|
2660
2663
|
if (!h.value) return;
|
|
2661
2664
|
let t = e.target.closest("a, button, input, select, textarea, [contenteditable], [role='button'], [role='checkbox'], [role='link'], [role='radio'], [role='switch']");
|
|
2662
|
-
t && t !== e.currentTarget && t !== c.value || (e.preventDefault(),
|
|
2665
|
+
t && t !== e.currentTarget && t !== c.value || (e.preventDefault(), N(e));
|
|
2663
2666
|
};
|
|
2664
|
-
return (t, r) => (
|
|
2667
|
+
return (t, r) => (O(), o("label", y(t.$attrs, {
|
|
2665
2668
|
class: ["pv-label pv-label-hover pv-flex pv-full-width pv-stack-4 pv-inset-square-8", C.value],
|
|
2666
2669
|
style: [w.value, {
|
|
2667
2670
|
cursor: "pointer",
|
|
2668
2671
|
paddingTop: e.subText ? "4px" : void 0,
|
|
2669
2672
|
paddingBottom: e.subText ? "4px" : void 0
|
|
2670
2673
|
}],
|
|
2671
|
-
"data-testid":
|
|
2672
|
-
onClick:
|
|
2674
|
+
"data-testid": j.value,
|
|
2675
|
+
onClick: ne
|
|
2673
2676
|
}), [
|
|
2674
2677
|
s("input", {
|
|
2675
2678
|
ref_key: "inputRef",
|
|
2676
2679
|
ref: c,
|
|
2677
|
-
hidden:
|
|
2678
|
-
type:
|
|
2679
|
-
name:
|
|
2680
|
+
hidden: ee.value,
|
|
2681
|
+
type: D.value,
|
|
2682
|
+
name: k,
|
|
2680
2683
|
checked: v.value,
|
|
2681
2684
|
indeterminate: S.value,
|
|
2682
|
-
class: x(
|
|
2683
|
-
tabindex:
|
|
2684
|
-
"aria-hidden":
|
|
2685
|
+
class: x(A.value),
|
|
2686
|
+
tabindex: L(h) ? -1 : void 0,
|
|
2687
|
+
"aria-hidden": L(h) ? !0 : void 0,
|
|
2685
2688
|
disabled: e.disabled,
|
|
2686
|
-
onChange: r[0] ||= (e) =>
|
|
2689
|
+
onChange: r[0] ||= (e) => L(h) ? void 0 : N(e)
|
|
2687
2690
|
}, null, 42, Oi),
|
|
2688
|
-
e.menuOptionConfig?.renderer ? (
|
|
2691
|
+
e.menuOptionConfig?.renderer ? (O(), i(re(e.menuOptionConfig?.renderer), y({ key: 0 }, T.value, { selected: v.value }), null, 16, ["selected"])) : (O(), i(li, y({ key: 1 }, T.value, {
|
|
2689
2692
|
menuOptionConfig: e.menuOptionConfig,
|
|
2690
2693
|
queryText: e.queryText,
|
|
2691
2694
|
highlightSearchText: e.highlightSearchText
|
|
@@ -2694,12 +2697,12 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2694
2697
|
"queryText",
|
|
2695
2698
|
"highlightSearchText"
|
|
2696
2699
|
])),
|
|
2697
|
-
e.menuOptionConfig?.variant === "checkmark" && v.value ? (
|
|
2700
|
+
e.menuOptionConfig?.variant === "checkmark" && v.value ? (O(), i(ot, {
|
|
2698
2701
|
key: 2,
|
|
2699
2702
|
name: "check",
|
|
2700
2703
|
class: "pv-text-success"
|
|
2701
2704
|
})) : a("v-if", !0),
|
|
2702
|
-
e.menuOptionConfig?.variant === "toggle" ? (
|
|
2705
|
+
e.menuOptionConfig?.variant === "toggle" ? (O(), i(pi, {
|
|
2703
2706
|
key: 3,
|
|
2704
2707
|
modelValue: v.value,
|
|
2705
2708
|
ariaLabel: n.text || "Toggle",
|
|
@@ -2707,7 +2710,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2707
2710
|
hideCheckIcon: "",
|
|
2708
2711
|
style: { "pointer-events": "none" }
|
|
2709
2712
|
}, null, 8, ["modelValue", "ariaLabel"])) : a("v-if", !0),
|
|
2710
|
-
E.value ? (
|
|
2713
|
+
E.value ? (O(), o("span", ki, [u(_i, {
|
|
2711
2714
|
action: E.value,
|
|
2712
2715
|
option: n,
|
|
2713
2716
|
disabled: e.disabled
|
|
@@ -2716,13 +2719,13 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2716
2719
|
"option",
|
|
2717
2720
|
"disabled"
|
|
2718
2721
|
])])) : a("v-if", !0),
|
|
2719
|
-
e.showChevron ? (
|
|
2722
|
+
e.showChevron ? (O(), o("button", {
|
|
2720
2723
|
key: 5,
|
|
2721
2724
|
type: "button",
|
|
2722
2725
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2723
2726
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2724
2727
|
"aria-expanded": e.expanded,
|
|
2725
|
-
onClick: r[1] ||= pe((e) =>
|
|
2728
|
+
onClick: r[1] ||= pe((e) => te("toggle-expanded"), ["prevent", "stop"])
|
|
2726
2729
|
}, [u(ot, {
|
|
2727
2730
|
name: e.chevronIcon ?? "chevron-right",
|
|
2728
2731
|
size: 12
|
|
@@ -2773,7 +2776,7 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2773
2776
|
}),
|
|
2774
2777
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2775
2778
|
setup(e, { emit: n }) {
|
|
2776
|
-
let i = e, s = g(vi, void 0), c =
|
|
2779
|
+
let i = e, s = g(vi, void 0), c = oe(e, "selectedIds"), l = g(Ei, M(!1)), d = g(Ti, M(!1)), f = g(bi, r(() => !1)), p = ie(), m = r(() => {
|
|
2777
2780
|
if (!f.value) return {};
|
|
2778
2781
|
let e = new Set([
|
|
2779
2782
|
"aria-checked",
|
|
@@ -2790,12 +2793,12 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2790
2793
|
"tabindex"
|
|
2791
2794
|
]);
|
|
2792
2795
|
return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
|
|
2793
|
-
}), h = g(Ci, void 0), _ = g(wi, void 0), v =
|
|
2794
|
-
|
|
2796
|
+
}), h = g(Ci, void 0), _ = g(wi, void 0), v = M(i.defaultExpanded ?? !1);
|
|
2797
|
+
z(() => i.defaultExpanded, (e) => {
|
|
2795
2798
|
e && (v.value = !0);
|
|
2796
2799
|
});
|
|
2797
|
-
let b =
|
|
2798
|
-
|
|
2800
|
+
let b = M(!1), S = M(!1), w = M(i.children ?? []), T = M(/* @__PURE__ */ new Set());
|
|
2801
|
+
z(() => i.children, (e) => {
|
|
2799
2802
|
if (!e) {
|
|
2800
2803
|
w.value = [];
|
|
2801
2804
|
return;
|
|
@@ -2805,16 +2808,16 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2805
2808
|
});
|
|
2806
2809
|
let E = () => {
|
|
2807
2810
|
v.value = !v.value;
|
|
2808
|
-
},
|
|
2811
|
+
}, ee = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), D = r(() => {
|
|
2809
2812
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
2810
2813
|
return f.value && delete r.selectedIds, r;
|
|
2811
|
-
}),
|
|
2814
|
+
}), k = r(() => Wr({
|
|
2812
2815
|
...i,
|
|
2813
2816
|
children: w.value
|
|
2814
|
-
}) && i.level < Pi),
|
|
2817
|
+
}) && i.level < Pi), A = r(() => k.value ? l.value ? v.value : !0 : !1), j = r(() => v.value ? "chevron-down" : "chevron-right"), N = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), re = n, P = r(() => S.value || i.totalChildCount == null ? !1 : i.totalChildCount > w.value.length), F = async () => {
|
|
2815
2818
|
if (b.value) return;
|
|
2816
2819
|
if (!i.handleSeeMore) {
|
|
2817
|
-
|
|
2820
|
+
re("see-more", {
|
|
2818
2821
|
parentId: i.id,
|
|
2819
2822
|
offset: w.value.length
|
|
2820
2823
|
});
|
|
@@ -2846,8 +2849,8 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2846
2849
|
} finally {
|
|
2847
2850
|
b.value = !1;
|
|
2848
2851
|
}
|
|
2849
|
-
},
|
|
2850
|
-
if (l.value &&
|
|
2852
|
+
}, I = (e) => {
|
|
2853
|
+
if (l.value && k.value && e.option.id === i.id && !d.value) {
|
|
2851
2854
|
E();
|
|
2852
2855
|
return;
|
|
2853
2856
|
}
|
|
@@ -2855,26 +2858,26 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2855
2858
|
let t = c.value.indexOf(e.option.id);
|
|
2856
2859
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2857
2860
|
}
|
|
2858
|
-
|
|
2859
|
-
},
|
|
2860
|
-
|
|
2861
|
+
re("handle-selected", e);
|
|
2862
|
+
}, ae = (e) => {
|
|
2863
|
+
re("handle-selected", e);
|
|
2861
2864
|
};
|
|
2862
2865
|
return (n, r) => {
|
|
2863
|
-
let s =
|
|
2864
|
-
return
|
|
2865
|
-
...
|
|
2866
|
+
let s = ne("PvMenuItem", !0);
|
|
2867
|
+
return O(), o(t, null, [u(ji, y({
|
|
2868
|
+
...D.value,
|
|
2866
2869
|
...m.value
|
|
2867
2870
|
}, {
|
|
2868
2871
|
children: w.value,
|
|
2869
2872
|
menuOptionConfig: e.config,
|
|
2870
2873
|
queryText: e.queryText,
|
|
2871
2874
|
highlightSearchText: e.highlightSearchText,
|
|
2872
|
-
showChevron:
|
|
2873
|
-
chevronIcon:
|
|
2875
|
+
showChevron: L(l) && k.value,
|
|
2876
|
+
chevronIcon: j.value,
|
|
2874
2877
|
expanded: v.value,
|
|
2875
|
-
onHandleSelected:
|
|
2878
|
+
onHandleSelected: I,
|
|
2876
2879
|
onToggleExpanded: E,
|
|
2877
|
-
selected:
|
|
2880
|
+
selected: N(i)
|
|
2878
2881
|
}), null, 16, [
|
|
2879
2882
|
"children",
|
|
2880
2883
|
"menuOptionConfig",
|
|
@@ -2884,13 +2887,13 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2884
2887
|
"chevronIcon",
|
|
2885
2888
|
"expanded",
|
|
2886
2889
|
"selected"
|
|
2887
|
-
]),
|
|
2890
|
+
]), A.value ? (O(), o("ul", {
|
|
2888
2891
|
key: 0,
|
|
2889
2892
|
role: "list",
|
|
2890
|
-
style: C(
|
|
2891
|
-
}, [(
|
|
2893
|
+
style: C(ee.value)
|
|
2894
|
+
}, [(O(!0), o(t, null, te(w.value, (t) => (O(), o("li", {
|
|
2892
2895
|
key: t.id,
|
|
2893
|
-
"data-active":
|
|
2896
|
+
"data-active": N(t) ? "true" : null,
|
|
2894
2897
|
class: x(e.itemClass)
|
|
2895
2898
|
}, [u(s, y({ ref_for: !0 }, t, {
|
|
2896
2899
|
disabled: i.disabled || t.disabled,
|
|
@@ -2900,8 +2903,8 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2900
2903
|
queryText: e.queryText,
|
|
2901
2904
|
highlightSearchText: e.highlightSearchText,
|
|
2902
2905
|
level: e.level + 1,
|
|
2903
|
-
onHandleSelected:
|
|
2904
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2906
|
+
onHandleSelected: ae,
|
|
2907
|
+
onSeeMore: r[1] ||= (e) => re("see-more", e)
|
|
2905
2908
|
}), null, 16, [
|
|
2906
2909
|
"disabled",
|
|
2907
2910
|
"selectedIds",
|
|
@@ -2909,13 +2912,13 @@ var Xr = /* @__PURE__ */ new Set(), Zr = (e, t) => {
|
|
|
2909
2912
|
"queryText",
|
|
2910
2913
|
"highlightSearchText",
|
|
2911
2914
|
"level"
|
|
2912
|
-
])], 10, Mi))), 128)),
|
|
2915
|
+
])], 10, Mi))), 128)), P.value ? (O(), o("li", Ni, [u(pt, {
|
|
2913
2916
|
class: "pv-text-brand",
|
|
2914
2917
|
variant: "ghost",
|
|
2915
2918
|
label: "See more",
|
|
2916
2919
|
loading: b.value,
|
|
2917
2920
|
"data-testid": "pv-menu-item-see-more",
|
|
2918
|
-
onClick:
|
|
2921
|
+
onClick: F
|
|
2919
2922
|
}, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
|
|
2920
2923
|
};
|
|
2921
2924
|
}
|
|
@@ -3681,21 +3684,21 @@ Z.prototype = {
|
|
|
3681
3684
|
if (n = b, i = G(n), Co(Y, t, K, r, n, i, e, !1) !== !1) return g(), t.insertBefore(K, b), q = t, v(), _(!0);
|
|
3682
3685
|
} else if (n.parentNode === t) {
|
|
3683
3686
|
i = G(n);
|
|
3684
|
-
var x = 0, S, C = K.parentNode !== t, w = !ho(K.animated && K.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = ca(n, "top", "top") || ca(K, "top", "top"),
|
|
3687
|
+
var x = 0, S, C = K.parentNode !== t, w = !ho(K.animated && K.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = ca(n, "top", "top") || ca(K, "top", "top"), ee = E ? E.scrollTop : void 0;
|
|
3685
3688
|
$a !== n && (S = i[T], to = !1, no = !w && o.invertSwap || C), x = Oo(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, no, $a === n);
|
|
3686
|
-
var
|
|
3689
|
+
var D;
|
|
3687
3690
|
if (x !== 0) {
|
|
3688
|
-
var
|
|
3691
|
+
var O = da(K);
|
|
3689
3692
|
do
|
|
3690
|
-
|
|
3691
|
-
while (
|
|
3693
|
+
O -= x, D = q.children[O];
|
|
3694
|
+
while (D && (W(D, "display") === "none" || D === J));
|
|
3692
3695
|
}
|
|
3693
|
-
if (x === 0 ||
|
|
3696
|
+
if (x === 0 || D === n) return _(!1);
|
|
3694
3697
|
$a = n, eo = x;
|
|
3695
|
-
var
|
|
3696
|
-
|
|
3697
|
-
var
|
|
3698
|
-
if (
|
|
3698
|
+
var k = n.nextElementSibling, A = !1;
|
|
3699
|
+
A = x === 1;
|
|
3700
|
+
var j = Co(Y, t, K, r, n, i, e, A);
|
|
3701
|
+
if (j !== !1) return (j === 1 || j === -1) && (A = j === 1), oo = !0, setTimeout(To, 30), g(), A && !k ? t.appendChild(K) : n.parentNode.insertBefore(K, A ? k : n), E && ba(E, 0, ee - E.scrollTop), q = K.parentNode, S !== void 0 && !no && (ro = Math.abs(S - G(n)[T])), v(), _(!0);
|
|
3699
3702
|
}
|
|
3700
3703
|
if (t.contains(K)) return _(!1);
|
|
3701
3704
|
}
|
|
@@ -3984,11 +3987,11 @@ var Wo = va(function(e, t, n, r) {
|
|
|
3984
3987
|
Fo !== n && (Fo = n, Ho(), Po = t.scroll, u = t.scrollFn, Po === !0 && (Po = ma(n, !0)));
|
|
3985
3988
|
var d = 0, f = Po;
|
|
3986
3989
|
do {
|
|
3987
|
-
var p = f, m = G(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = W(p), E = p.scrollLeft,
|
|
3990
|
+
var p = f, m = G(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = W(p), E = p.scrollLeft, ee = p.scrollTop;
|
|
3988
3991
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
3989
|
-
var
|
|
3990
|
-
if (!Q[d]) for (var
|
|
3991
|
-
(Q[d].vx !=
|
|
3992
|
+
var D = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), O = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
|
|
3993
|
+
if (!Q[d]) for (var k = 0; k <= d; k++) Q[k] || (Q[k] = {});
|
|
3994
|
+
(Q[d].vx != D || Q[d].vy != O || Q[d].el !== p) && (Q[d].el = p, Q[d].vx = D, Q[d].vy = O, clearInterval(Q[d].pid), (D != 0 || O != 0) && (l = !0, Q[d].pid = setInterval(function() {
|
|
3992
3995
|
r && this.layer === 0 && Z.active._onTouchMove(zo);
|
|
3993
3996
|
var t = Q[this.layer].vy ? Q[this.layer].vy * s : 0, n = Q[this.layer].vx ? Q[this.layer].vx * s : 0;
|
|
3994
3997
|
typeof u == "function" && u.call(Z.dragged.parentNode[Ca], n, t, e, zo, Q[this.layer].el) !== "continue" || ba(Q[this.layer].el, n, t);
|
|
@@ -4062,7 +4065,7 @@ function Xo(e) {
|
|
|
4062
4065
|
}
|
|
4063
4066
|
function Zo(e, t, n, r = null) {
|
|
4064
4067
|
r != null && (Xo(r.item), Yo(r.from, r.item, t));
|
|
4065
|
-
let i = _(e), a = i ? [...
|
|
4068
|
+
let i = _(e), a = i ? [...I(e)] : I(e);
|
|
4066
4069
|
if (n >= 0 && n < a.length) {
|
|
4067
4070
|
let r = a.splice(t, 1)[0];
|
|
4068
4071
|
b(() => {
|
|
@@ -4107,32 +4110,32 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4107
4110
|
},
|
|
4108
4111
|
emits: ["list-order-updated"],
|
|
4109
4112
|
setup(e, { expose: n, emit: i }) {
|
|
4110
|
-
let a =
|
|
4113
|
+
let a = M(null), c = se("popoverList"), l = e, u = i;
|
|
4111
4114
|
l.isSortable && l.isList && Jo(c, [], {
|
|
4112
4115
|
animation: 150,
|
|
4113
4116
|
onUpdate: () => {
|
|
4114
4117
|
u("list-order-updated", Array.from(c.value?.children || []).map((e) => e.id));
|
|
4115
4118
|
}
|
|
4116
4119
|
});
|
|
4117
|
-
let d =
|
|
4118
|
-
return n({ popoverRoot: a }), (n, r) => (
|
|
4120
|
+
let d = R(), f = r(() => !!(d.header || d.footer));
|
|
4121
|
+
return n({ popoverRoot: a }), (n, r) => (O(), o("div", {
|
|
4119
4122
|
ref_key: "popoverRoot",
|
|
4120
4123
|
ref: a,
|
|
4121
4124
|
class: x(["pv-popover", { "pv-popover-pinned-sections": e.isList && f.value }]),
|
|
4122
4125
|
"data-testid": "pv-popover",
|
|
4123
4126
|
"data-align": e.alignment,
|
|
4124
4127
|
style: C(e.cssCustomProperties)
|
|
4125
|
-
}, [e.isList ? (
|
|
4126
|
-
|
|
4128
|
+
}, [e.isList ? (O(), o(t, { key: 0 }, [
|
|
4129
|
+
N(n.$slots, "header", {}, void 0, !0),
|
|
4127
4130
|
s("ul", {
|
|
4128
4131
|
id: e.listId,
|
|
4129
4132
|
ref: "popoverList",
|
|
4130
4133
|
role: e.listRole,
|
|
4131
4134
|
class: x(["pv-popover-list", e.listClass]),
|
|
4132
4135
|
style: C(e.cssCustomListProperties)
|
|
4133
|
-
}, [
|
|
4134
|
-
|
|
4135
|
-
], 64)) :
|
|
4136
|
+
}, [N(n.$slots, "default", {}, void 0, !0)], 14, $o),
|
|
4137
|
+
N(n.$slots, "footer", {}, void 0, !0)
|
|
4138
|
+
], 64)) : N(n.$slots, "default", { key: 1 }, void 0, !0)], 14, Qo));
|
|
4136
4139
|
}
|
|
4137
4140
|
}), [["styles", [".pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}"]], ["__scopeId", "data-v-fe6e9c6a"]]), ts = ["role"], ns = [
|
|
4138
4141
|
"data-active",
|
|
@@ -4171,7 +4174,7 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4171
4174
|
}),
|
|
4172
4175
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedItems", "update:expandedOptionId"]),
|
|
4173
4176
|
setup(e, { emit: c }) {
|
|
4174
|
-
let l = e, d = c, f =
|
|
4177
|
+
let l = e, d = c, f = oe(e, "selectedItems"), p = oe(e, "expandedOptionId"), m = ae(), h = M(null), _ = M(null), v = M(null), S = M(null), { floatingStyles: w, update: T } = Ur(S, v, {
|
|
4175
4178
|
middleware: [
|
|
4176
4179
|
Ar(4),
|
|
4177
4180
|
Mr(),
|
|
@@ -4182,81 +4185,81 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4182
4185
|
whileElementsMounted: kr
|
|
4183
4186
|
}), E = () => {
|
|
4184
4187
|
p.value !== void 0 && (p.value = void 0);
|
|
4185
|
-
},
|
|
4188
|
+
}, ee = () => {
|
|
4186
4189
|
let e = p.value;
|
|
4187
4190
|
E(), e && b(() => Me(e));
|
|
4188
|
-
},
|
|
4189
|
-
|
|
4191
|
+
}, D = [...g(xi, []), m];
|
|
4192
|
+
k(xi, D), He(h, (e) => {
|
|
4190
4193
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(m) || E();
|
|
4191
4194
|
}, { ignore: [v] });
|
|
4192
|
-
let
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
+
let A = P(f.value);
|
|
4196
|
+
z(f, (e) => {
|
|
4197
|
+
A.value = e;
|
|
4195
4198
|
});
|
|
4196
|
-
let
|
|
4197
|
-
|
|
4199
|
+
let j, ne = (e) => {
|
|
4200
|
+
j = e, f.value = e;
|
|
4198
4201
|
};
|
|
4199
|
-
|
|
4200
|
-
e !==
|
|
4201
|
-
}),
|
|
4202
|
-
let
|
|
4203
|
-
|
|
4204
|
-
let
|
|
4202
|
+
z(A, (e) => {
|
|
4203
|
+
e !== j && e !== f.value && ne(e);
|
|
4204
|
+
}), k(vi, A), k(bi, r(() => l.childrenDisplay === "popover"));
|
|
4205
|
+
let re = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
4206
|
+
k(yi, re);
|
|
4207
|
+
let F = g(Si, void 0), I = g(Ti, M(!1)), ie = g(Ci, void 0), R = g(wi, void 0), se = r(() => l.singleSelect || l.config?.variant === "radio"), ce = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), le = (e, t, n = !1, r = !0) => {
|
|
4205
4208
|
let i = !r || p.value !== e.id;
|
|
4206
4209
|
p.value = i ? e.id : void 0, i && (S.value = t, b(() => {
|
|
4207
4210
|
T(), n && Ae(_.value ?? document.getElementById(m), 0);
|
|
4208
4211
|
}));
|
|
4209
|
-
},
|
|
4212
|
+
}, de = (e, t = !1) => {
|
|
4210
4213
|
if (l.readOnly) return;
|
|
4211
4214
|
let n = (!t && l.childrenDisplay === "popover" ? l.options.find((t) => t.id === e.option.id) : void 0) ?? e.option;
|
|
4212
4215
|
if (l.childrenDisplay === "popover" && !t && n.children?.length) {
|
|
4213
4216
|
let t = e.event.currentTarget?.closest("li");
|
|
4214
|
-
t &&
|
|
4217
|
+
t && le(n, t);
|
|
4215
4218
|
return;
|
|
4216
4219
|
}
|
|
4217
4220
|
let r;
|
|
4218
|
-
if (
|
|
4221
|
+
if (re.value && Wr(n)) {
|
|
4219
4222
|
let e;
|
|
4220
|
-
if (
|
|
4221
|
-
let t =
|
|
4223
|
+
if (I.value && F?.value) {
|
|
4224
|
+
let t = F.value.get(n.id);
|
|
4222
4225
|
e = Kr(t?.children ? Gr(t.children) : [], n.children ? Gr(n.children) : []);
|
|
4223
4226
|
} else e = n.children ? Gr(n.children) : [];
|
|
4224
|
-
let t = e.map((e) => e.id), i =
|
|
4225
|
-
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e],
|
|
4226
|
-
let e = new Set(
|
|
4227
|
-
a ? e.delete(n.id) : e.add(n.id),
|
|
4227
|
+
let t = e.map((e) => e.id), i = A.value, a = (ie?.value?.has(n.id) ?? !1) || t.some((e) => i.some((t) => t.id === e));
|
|
4228
|
+
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e], ie?.value) {
|
|
4229
|
+
let e = new Set(ie.value);
|
|
4230
|
+
a ? e.delete(n.id) : e.add(n.id), ie.value = e;
|
|
4228
4231
|
}
|
|
4229
|
-
if (
|
|
4230
|
-
let e = new Map(
|
|
4231
|
-
e.delete(n.id),
|
|
4232
|
+
if (R?.value?.has(n.id)) {
|
|
4233
|
+
let e = new Map(R.value);
|
|
4234
|
+
e.delete(n.id), R.value = e;
|
|
4232
4235
|
}
|
|
4233
|
-
} else if (
|
|
4236
|
+
} else if (se.value) r = A.value.length === 1 && A.value[0].id === n.id ? l.disableDeselect ? A.value : [] : [n];
|
|
4234
4237
|
else {
|
|
4235
|
-
let e =
|
|
4236
|
-
if (r = e > -1 ? [...
|
|
4238
|
+
let e = A.value.findIndex((e) => e.id === n.id);
|
|
4239
|
+
if (r = e > -1 ? [...A.value.slice(0, e), ...A.value.slice(e + 1)] : [...A.value, n], re.value && ie?.value && R?.value) {
|
|
4237
4240
|
let t = e > -1;
|
|
4238
|
-
for (let e of
|
|
4239
|
-
let r =
|
|
4241
|
+
for (let e of ie.value) {
|
|
4242
|
+
let r = F?.value?.get(e)?.children ?? l.options.find((t) => t.id === e)?.children;
|
|
4240
4243
|
if (!r || !(Gr(r).some((e) => e.id === n.id) || l.options.find((t) => t.id === e)?.children?.some((e) => e.id === n.id))) continue;
|
|
4241
|
-
let i = new Map(
|
|
4242
|
-
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e),
|
|
4244
|
+
let i = new Map(R.value), a = new Set(i.get(e) ?? []);
|
|
4245
|
+
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e), R.value = i;
|
|
4243
4246
|
break;
|
|
4244
4247
|
}
|
|
4245
4248
|
}
|
|
4246
4249
|
}
|
|
4247
|
-
|
|
4250
|
+
A.value = r, ne(r), !t && l.childrenDisplay === "popover" && (p.value = void 0), d("handle-selected", l.childrenDisplay === "popover" ? {
|
|
4248
4251
|
...e,
|
|
4249
4252
|
option: n
|
|
4250
4253
|
} : e);
|
|
4251
4254
|
}, pe = (e) => {
|
|
4252
|
-
let t =
|
|
4255
|
+
let t = ce.value;
|
|
4253
4256
|
if (!t) return;
|
|
4254
4257
|
let n = t.children?.find((t) => t.id === e.option.id) ?? e.option;
|
|
4255
|
-
|
|
4258
|
+
de({
|
|
4256
4259
|
...e,
|
|
4257
4260
|
option: n
|
|
4258
4261
|
}, !0), p.value = void 0, b(() => Me(t.id));
|
|
4259
|
-
}, me = r(() => new Set(
|
|
4262
|
+
}, me = r(() => new Set(A.value.map((e) => e.id))), he = (e) => {
|
|
4260
4263
|
for (let t of e) {
|
|
4261
4264
|
if (me.value.has(t.id)) return t;
|
|
4262
4265
|
let e = t.children?.length ? he(t.children) : void 0;
|
|
@@ -4276,14 +4279,14 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4276
4279
|
...e,
|
|
4277
4280
|
children: void 0,
|
|
4278
4281
|
totalChildCount: void 0
|
|
4279
|
-
}), ve = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, ye = (e) => me.value.has(e.id) ||
|
|
4282
|
+
}), ve = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, ye = (e) => me.value.has(e.id) || re.value && ie?.value?.has(e.id) || (re.value || l.childrenDisplay === "popover") && e.children?.length && he(e.children) ? !0 : null, be = (e) => {
|
|
4280
4283
|
let t = e.config?.variant ?? l.config?.variant;
|
|
4281
|
-
return
|
|
4282
|
-
}, xe = (e) => be(e) === "menuitem" ? void 0 : !!ye(e), Se = (e) => e.children?.length && !l.highlightParentItems ? null : be(e) !== "menuitemcheckbox" && ye(e) || p.value === e.id ? !0 : null, Ce = (e) => be(e) !== "menuitemcheckbox" && me.value.has(e.id) ? !0 : null, we = (e, t) => !!(!t || me.value.has(e.id) ||
|
|
4284
|
+
return se.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
4285
|
+
}, xe = (e) => be(e) === "menuitem" ? void 0 : !!ye(e), Se = (e) => e.children?.length && !l.highlightParentItems ? null : be(e) !== "menuitemcheckbox" && ye(e) || p.value === e.id ? !0 : null, Ce = (e) => be(e) !== "menuitemcheckbox" && me.value.has(e.id) ? !0 : null, we = (e, t) => !!(!t || me.value.has(e.id) || ie?.value?.has(e.id) || e.children?.length && he(e.children)), Te = M(), Ee = M(), De = r(() => {
|
|
4283
4286
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && we(e, l.isLoading)).map((e) => e.id);
|
|
4284
4287
|
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(ss), Te.value && e.includes(Te.value) ? Te.value : e[0];
|
|
4285
4288
|
}), Oe = r(() => {
|
|
4286
|
-
let e =
|
|
4289
|
+
let e = ce.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
4287
4290
|
return e.some((e) => e.id === Ee.value) ? Ee.value : e[0]?.id;
|
|
4288
4291
|
}), ke = (e) => {
|
|
4289
4292
|
let t = Array.from(e?.querySelectorAll("li[role='none'] > [role^='menuitem']:not([aria-disabled='true'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
|
|
@@ -4297,7 +4300,7 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4297
4300
|
}, Me = (e) => {
|
|
4298
4301
|
ke(h.value).find((t) => t.dataset.optionId === e)?.focus();
|
|
4299
4302
|
};
|
|
4300
|
-
|
|
4303
|
+
z([p, () => !!ce.value], ([e]) => {
|
|
4301
4304
|
Ee.value = void 0, e && b(() => {
|
|
4302
4305
|
let t = Array.from(h.value?.children ?? []).find((t) => t.dataset.optionId === e);
|
|
4303
4306
|
t && (S.value = t, T());
|
|
@@ -4315,11 +4318,11 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4315
4318
|
if (!(e.target !== e.currentTarget || Ne(e, h.value))) switch (e.key) {
|
|
4316
4319
|
case "ArrowRight":
|
|
4317
4320
|
if (!t.children?.length) break;
|
|
4318
|
-
e.preventDefault(),
|
|
4321
|
+
e.preventDefault(), le(t, e.currentTarget, !0, !1);
|
|
4319
4322
|
break;
|
|
4320
4323
|
case "Enter":
|
|
4321
4324
|
case " ":
|
|
4322
|
-
e.preventDefault(), t.children?.length ?
|
|
4325
|
+
e.preventDefault(), t.children?.length ? le(t, e.currentTarget, !0, !1) : de({
|
|
4323
4326
|
event: e,
|
|
4324
4327
|
option: t
|
|
4325
4328
|
});
|
|
@@ -4364,12 +4367,12 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4364
4367
|
break;
|
|
4365
4368
|
}
|
|
4366
4369
|
};
|
|
4367
|
-
return (r, c) => (
|
|
4370
|
+
return (r, c) => (O(), o(t, null, [s("ul", y({
|
|
4368
4371
|
ref_key: "rootMenuRef",
|
|
4369
4372
|
ref: h,
|
|
4370
4373
|
role: e.childrenDisplay === "popover" ? "menu" : "list",
|
|
4371
4374
|
class: "pv-popover-list"
|
|
4372
|
-
}, r.$attrs), [(
|
|
4375
|
+
}, r.$attrs), [(O(!0), o(t, null, te(e.options, (t) => fe((O(), o("li", {
|
|
4373
4376
|
key: t.id,
|
|
4374
4377
|
"data-active": Se(t),
|
|
4375
4378
|
"data-option-id": t.id,
|
|
@@ -4378,7 +4381,7 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4378
4381
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4379
4382
|
}, [u(Fi, y({ ref_for: !0 }, ge(t), {
|
|
4380
4383
|
"aria-checked": e.childrenDisplay === "popover" ? xe(t) : void 0,
|
|
4381
|
-
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ?
|
|
4384
|
+
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? L(m) : void 0,
|
|
4382
4385
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
4383
4386
|
"aria-expanded": e.childrenDisplay === "popover" && t.children?.length ? p.value === t.id : void 0,
|
|
4384
4387
|
"aria-haspopup": e.childrenDisplay === "popover" && t.children?.length ? t.popoverRole ?? "menu" : void 0,
|
|
@@ -4393,7 +4396,7 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4393
4396
|
tabindex: e.childrenDisplay === "popover" ? De.value === t.id ? 0 : -1 : void 0,
|
|
4394
4397
|
onFocus: (e) => Te.value = t.id,
|
|
4395
4398
|
onKeydown: (n) => e.childrenDisplay === "popover" ? Pe(n, t) : void 0,
|
|
4396
|
-
onHandleSelected:
|
|
4399
|
+
onHandleSelected: de,
|
|
4397
4400
|
onSeeMore: c[0] ||= (e) => d("see-more", e)
|
|
4398
4401
|
}), null, 16, [
|
|
4399
4402
|
"aria-checked",
|
|
@@ -4412,7 +4415,7 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4412
4415
|
"tabindex",
|
|
4413
4416
|
"onFocus",
|
|
4414
4417
|
"onKeydown"
|
|
4415
|
-
])], 10, ns)), [[
|
|
4418
|
+
])], 10, ns)), [[ue, we(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (O(), o("li", {
|
|
4416
4419
|
key: 0,
|
|
4417
4420
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4418
4421
|
}, [u(pt, {
|
|
@@ -4432,15 +4435,15 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4432
4435
|
"disabled",
|
|
4433
4436
|
"role",
|
|
4434
4437
|
"tabindex"
|
|
4435
|
-
])], 8, rs)) : a("v-if", !0)], 16, ts), e.childrenDisplay === "popover" &&
|
|
4438
|
+
])], 8, rs)) : a("v-if", !0)], 16, ts), e.childrenDisplay === "popover" && ce.value ? (O(), i(n, {
|
|
4436
4439
|
key: 0,
|
|
4437
4440
|
to: "body"
|
|
4438
4441
|
}, [s("div", {
|
|
4439
4442
|
ref_key: "nestedMenuPopoverRef",
|
|
4440
4443
|
ref: v,
|
|
4441
4444
|
class: "pv-menu-popover",
|
|
4442
|
-
"data-pv-menu-ancestors":
|
|
4443
|
-
style: C(
|
|
4445
|
+
"data-pv-menu-ancestors": D.join(" "),
|
|
4446
|
+
style: C(L(w))
|
|
4444
4447
|
}, [u(es, {
|
|
4445
4448
|
class: "pv-scrollbar-visible",
|
|
4446
4449
|
"css-custom-properties": {
|
|
@@ -4449,18 +4452,18 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4449
4452
|
maxWidth: "calc(100vw - 16px)"
|
|
4450
4453
|
}
|
|
4451
4454
|
}, {
|
|
4452
|
-
default:
|
|
4453
|
-
option:
|
|
4454
|
-
popoverId:
|
|
4455
|
-
close:
|
|
4455
|
+
default: B(() => [N(r.$slots, "popover", {
|
|
4456
|
+
option: ce.value,
|
|
4457
|
+
popoverId: L(m),
|
|
4458
|
+
close: ee
|
|
4456
4459
|
}, () => [s("ul", {
|
|
4457
|
-
id:
|
|
4460
|
+
id: L(m),
|
|
4458
4461
|
ref_key: "nestedMenuRef",
|
|
4459
4462
|
ref: _,
|
|
4460
|
-
"aria-label": `${
|
|
4463
|
+
"aria-label": `${ce.value.text} options`,
|
|
4461
4464
|
class: "pv-popover-list",
|
|
4462
4465
|
role: "menu"
|
|
4463
|
-
}, [(
|
|
4466
|
+
}, [(O(!0), o(t, null, te(ce.value.children, (t) => (O(), o("li", {
|
|
4464
4467
|
key: t.id,
|
|
4465
4468
|
"data-active": Ce(t),
|
|
4466
4469
|
"data-option-id": t.id,
|
|
@@ -4500,7 +4503,7 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4500
4503
|
_: 3
|
|
4501
4504
|
})], 12, is)])) : a("v-if", !0)], 64));
|
|
4502
4505
|
}
|
|
4503
|
-
}), [["styles", [".pv-menu-popover[data-v-
|
|
4506
|
+
}), [["styles", [".pv-menu-popover[data-v-951d1d02]{z-index:50}.pv-popover-list>li[data-v-951d1d02]:last-child>.pv-label{margin-block-end:0}[data-v-951d1d02] .pv-menu-nested:after{content:\"\";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}"]], ["__scopeId", "data-v-951d1d02"]]), ls = ["data-dd-action-name"], us = {
|
|
4504
4507
|
key: 1,
|
|
4505
4508
|
class: "pv-inset-square-8"
|
|
4506
4509
|
}, ds = {
|
|
@@ -4651,8 +4654,8 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4651
4654
|
for (let r of n) e.set(r.id, r), r.children?.length && t(r.children);
|
|
4652
4655
|
};
|
|
4653
4656
|
return t(c.options), e;
|
|
4654
|
-
}), f =
|
|
4655
|
-
|
|
4657
|
+
}), f = P(/* @__PURE__ */ new Set()), p = P(/* @__PURE__ */ new Map());
|
|
4658
|
+
k(Si, d), k(Ci, f), k(wi, p), k(Ti, r(() => c.parentSelectsAllChildren)), k(Ei, r(() => !!c.enableChildExpansion));
|
|
4656
4659
|
let m = n, g = r(() => {
|
|
4657
4660
|
let e = /* @__PURE__ */ new Map();
|
|
4658
4661
|
for (let [t, n] of d.value) Wr(n) && e.set(t, n.children ? Gr(n.children) : []);
|
|
@@ -4674,26 +4677,26 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4674
4677
|
state: "deselected"
|
|
4675
4678
|
}))), t.push(r);
|
|
4676
4679
|
}
|
|
4677
|
-
for (let n of
|
|
4680
|
+
for (let n of R.value) e.has(n.id) || t.push({
|
|
4678
4681
|
id: n.id,
|
|
4679
4682
|
state: "selected"
|
|
4680
4683
|
});
|
|
4681
4684
|
return t;
|
|
4682
4685
|
}, x = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
4683
4686
|
let e = c.additionalCounter ?? 0;
|
|
4684
|
-
if (c.enableCascadeSelection && c.countSelectedParents &&
|
|
4685
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
4686
|
-
let t = new Set(
|
|
4687
|
+
if (c.enableCascadeSelection && c.countSelectedParents && M.value?.length) return Jr(M.value) + e;
|
|
4688
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return R.value.length + e;
|
|
4689
|
+
let t = new Set(R.value.map((e) => e.id));
|
|
4687
4690
|
return qr(c.options, t) + e;
|
|
4688
|
-
}), T = r(() =>
|
|
4691
|
+
}), T = r(() => R.value.length > 0 ? !0 : c.enableCascadeSelection && M.value?.length ? M.value.some((e) => e.state === "selected") : !1), E = (e) => {
|
|
4689
4692
|
m("see-more", e ?? {});
|
|
4690
|
-
},
|
|
4691
|
-
|
|
4692
|
-
}, re = () => {
|
|
4693
|
-
ne.value && (M.value = z.value, N.value = v());
|
|
4693
|
+
}, ee = se("searchInputRef"), [D, A] = /* @__PURE__ */ Fe(c.defaultOpen), j = oe(e, "modelValue"), M = oe(e, "selectionState"), ne = oe(e, "searchInput"), re = r(() => c.menuActionsVariant === "cancel-confirm"), I = (e) => {
|
|
4694
|
+
R.value = e, re.value || (j.value = e, M.value = v());
|
|
4694
4695
|
}, ie = () => {
|
|
4695
|
-
|
|
4696
|
-
},
|
|
4696
|
+
re.value && (j.value = R.value, M.value = v());
|
|
4697
|
+
}, ae = () => {
|
|
4698
|
+
re.value && (R.value = j.value);
|
|
4699
|
+
}, R = P(j.value), ce = (e) => d.value.get(e), le = (e) => {
|
|
4697
4700
|
if (!c.enableCascadeSelection || !e) return;
|
|
4698
4701
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
4699
4702
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -4709,39 +4712,39 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4709
4712
|
for (let t of i) e.has(t.id) || a(t, t.id);
|
|
4710
4713
|
continue;
|
|
4711
4714
|
}
|
|
4712
|
-
a(
|
|
4715
|
+
a(ce(r.id), r.id);
|
|
4713
4716
|
}
|
|
4714
|
-
f.value = t, p.value = n,
|
|
4715
|
-
},
|
|
4716
|
-
get: () =>
|
|
4717
|
+
f.value = t, p.value = n, R.value = r;
|
|
4718
|
+
}, ue = r({
|
|
4719
|
+
get: () => R.value,
|
|
4717
4720
|
set: (e) => {
|
|
4718
|
-
|
|
4721
|
+
I(e);
|
|
4719
4722
|
}
|
|
4720
|
-
}),
|
|
4721
|
-
|
|
4723
|
+
}), de = () => {
|
|
4724
|
+
ne.value = "", D.value = !1;
|
|
4722
4725
|
}, fe = r(() => {
|
|
4723
4726
|
let e = c.size === "lg" ? 24 : 30;
|
|
4724
4727
|
return c.overlayTrigger ? -e : void 0;
|
|
4725
4728
|
});
|
|
4726
|
-
|
|
4727
|
-
if (c.enableCascadeSelection &&
|
|
4728
|
-
|
|
4729
|
+
z(() => j.value, (e) => {
|
|
4730
|
+
if (c.enableCascadeSelection && M.value?.length && e.length === 0) {
|
|
4731
|
+
le(M.value);
|
|
4729
4732
|
return;
|
|
4730
4733
|
}
|
|
4731
|
-
|
|
4732
|
-
}),
|
|
4733
|
-
|
|
4734
|
+
R.value = e;
|
|
4735
|
+
}), z(() => [M.value, c.options], () => {
|
|
4736
|
+
le(M.value);
|
|
4734
4737
|
}, {
|
|
4735
4738
|
deep: !0,
|
|
4736
4739
|
immediate: !0
|
|
4737
|
-
}),
|
|
4738
|
-
e ? (
|
|
4739
|
-
c.overlayTrigger && !c.disableSearchInput &&
|
|
4740
|
-
})) : (
|
|
4740
|
+
}), z(D, (e) => {
|
|
4741
|
+
e ? (ae(), b(() => {
|
|
4742
|
+
c.overlayTrigger && !c.disableSearchInput && ee.value?.input?.focus(), m("dropdown-open");
|
|
4743
|
+
})) : (ae(), m("dropdown-closed"));
|
|
4741
4744
|
});
|
|
4742
4745
|
let pe = r(() => {
|
|
4743
|
-
if (
|
|
4744
|
-
let e =
|
|
4746
|
+
if (ne.value === "") return c.options;
|
|
4747
|
+
let e = ne.value.toLocaleLowerCase();
|
|
4745
4748
|
return c.enableCascadeSelection ? Yr(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
4746
4749
|
}), me = () => {
|
|
4747
4750
|
if (c.enableCascadeSelection) {
|
|
@@ -4751,13 +4754,13 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4751
4754
|
t(pe.value), f.value = e, p.value = /* @__PURE__ */ new Map();
|
|
4752
4755
|
}
|
|
4753
4756
|
let e = c.enableCascadeSelection ? Gr(pe.value) : pe.value;
|
|
4754
|
-
m("select-all", e.length),
|
|
4757
|
+
m("select-all", e.length), I(e);
|
|
4755
4758
|
}, he = () => {
|
|
4756
|
-
m("clear-all",
|
|
4759
|
+
m("clear-all", R.value.length), f.value = /* @__PURE__ */ new Set(), p.value = /* @__PURE__ */ new Map(), I([]);
|
|
4757
4760
|
}, ge = () => {
|
|
4758
|
-
|
|
4761
|
+
ae(), de();
|
|
4759
4762
|
}, _e = () => {
|
|
4760
|
-
|
|
4763
|
+
ie(), de();
|
|
4761
4764
|
}, ve = r(() => {
|
|
4762
4765
|
if (!c.groupings) return;
|
|
4763
4766
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -4770,24 +4773,24 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4770
4773
|
}
|
|
4771
4774
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
4772
4775
|
return Array.from(e.entries());
|
|
4773
|
-
}), ye = r(() => c.groupings &&
|
|
4776
|
+
}), ye = r(() => c.groupings && ne.value === ""), be = r(() => ({
|
|
4774
4777
|
...c,
|
|
4775
|
-
selectedItems:
|
|
4776
|
-
searchInput:
|
|
4778
|
+
selectedItems: j.value,
|
|
4779
|
+
searchInput: ne.value,
|
|
4777
4780
|
slotContext: c.slotContext,
|
|
4778
|
-
isOpen:
|
|
4781
|
+
isOpen: D.value,
|
|
4779
4782
|
isLoading: c.isLoading
|
|
4780
|
-
})), xe = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), Se = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), Ce =
|
|
4783
|
+
})), xe = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), Se = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), Ce = se("popoverContentRef"), we = r(() => {
|
|
4781
4784
|
let e = Ce.value?.getRootNode();
|
|
4782
4785
|
return e instanceof ShadowRoot ? e.host : null;
|
|
4783
4786
|
}), { present: Te } = Nt("header", { host: we }), { present: Ee } = Nt("no-results", { host: we }), { present: De } = Nt("footer", { host: we });
|
|
4784
4787
|
return Je("Escape", () => {
|
|
4785
|
-
|
|
4786
|
-
}), (n, r) => (
|
|
4787
|
-
modelValue:
|
|
4788
|
-
"onUpdate:modelValue": r[4] ||= (e) => _(
|
|
4788
|
+
D.value && de();
|
|
4789
|
+
}), (n, r) => (O(), i(ti, y({
|
|
4790
|
+
modelValue: L(D),
|
|
4791
|
+
"onUpdate:modelValue": r[4] ||= (e) => _(D) ? D.value = e : null
|
|
4789
4792
|
}, e.popoverProperties, { offset: fe.value }), {
|
|
4790
|
-
trigger:
|
|
4793
|
+
trigger: B(() => [u(Vt, {
|
|
4791
4794
|
ref: "select-button-trigger-ref",
|
|
4792
4795
|
variant: e.variant,
|
|
4793
4796
|
size: e.size,
|
|
@@ -4799,13 +4802,13 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4799
4802
|
companyLogo: e.companyLogo,
|
|
4800
4803
|
showClear: !e.disableClearIcon && T.value && !e.disabled,
|
|
4801
4804
|
showDropdown: !e.disableDropdownIcon && (e.disabled || !(T.value && !e.disableClearIcon)),
|
|
4802
|
-
open:
|
|
4805
|
+
open: L(D),
|
|
4803
4806
|
"counter-value": w.value,
|
|
4804
4807
|
"counter-style": e.counterStyle,
|
|
4805
|
-
"selected-items":
|
|
4808
|
+
"selected-items": R.value,
|
|
4806
4809
|
"data-dd-action-name": xe.value,
|
|
4807
4810
|
onHandleClear: he,
|
|
4808
|
-
onHandleToggleDropdown: r[0] ||= (e) =>
|
|
4811
|
+
onHandleToggleDropdown: r[0] ||= (e) => L(A)()
|
|
4809
4812
|
}, null, 8, [
|
|
4810
4813
|
"variant",
|
|
4811
4814
|
"size",
|
|
@@ -4823,7 +4826,7 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4823
4826
|
"selected-items",
|
|
4824
4827
|
"data-dd-action-name"
|
|
4825
4828
|
])]),
|
|
4826
|
-
content:
|
|
4829
|
+
content: B(() => [s("div", {
|
|
4827
4830
|
ref_key: "popoverContentRef",
|
|
4828
4831
|
ref: Ce,
|
|
4829
4832
|
class: "pv-popover",
|
|
@@ -4833,27 +4836,27 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4833
4836
|
...e.popoverCssProperties
|
|
4834
4837
|
})
|
|
4835
4838
|
}, [
|
|
4836
|
-
e.disableSearchInput ? a("v-if", !0) : (
|
|
4839
|
+
e.disableSearchInput ? a("v-if", !0) : (O(), o("div", {
|
|
4837
4840
|
key: 0,
|
|
4838
4841
|
class: "pv-inset-square-8 pv-border-bottom",
|
|
4839
4842
|
"data-dd-action-name": Se.value
|
|
4840
4843
|
}, [u(bt, {
|
|
4841
4844
|
ref: "searchInputRef",
|
|
4842
|
-
"model-value":
|
|
4843
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
4845
|
+
"model-value": ne.value,
|
|
4846
|
+
"onUpdate:modelValue": r[1] ||= (e) => ne.value = e,
|
|
4844
4847
|
class: "pv-stack-4",
|
|
4845
4848
|
placeholder: e.searchPlaceholder
|
|
4846
4849
|
}, null, 8, ["model-value", "placeholder"])], 8, ls)),
|
|
4847
|
-
n.$slots.header ||
|
|
4848
|
-
pe.value.length > 0 ? (
|
|
4849
|
-
n.$slots[t] ?
|
|
4850
|
+
n.$slots.header || L(Te) ? (O(), o("div", us, [N(n.$slots, "header", S(h(be.value)))])) : a("v-if", !0),
|
|
4851
|
+
pe.value.length > 0 ? (O(), o(t, { key: 2 }, [ye.value ? (O(!0), o(t, { key: 0 }, te(ve.value, ([t, i], s) => (O(), o("div", { key: t }, [
|
|
4852
|
+
n.$slots[t] ? N(n.$slots, t, { key: 0 }) : t === "other" ? a("v-if", !0) : (O(), o("span", ds, F(t), 1)),
|
|
4850
4853
|
u(cs, {
|
|
4851
|
-
selectedItems:
|
|
4852
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
4854
|
+
selectedItems: ue.value,
|
|
4855
|
+
"onUpdate:selectedItems": r[2] ||= (e) => ue.value = e,
|
|
4853
4856
|
options: i,
|
|
4854
4857
|
config: l.value,
|
|
4855
4858
|
singleSelect: e.singleSelect,
|
|
4856
|
-
queryText: e.highlightSearchText ?
|
|
4859
|
+
queryText: e.highlightSearchText ? ne.value : null,
|
|
4857
4860
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
4858
4861
|
itemClass: "pv-stack-4",
|
|
4859
4862
|
isLoading: e.isLoading,
|
|
@@ -4873,15 +4876,15 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4873
4876
|
"enableCascadeSelection",
|
|
4874
4877
|
"hasMoreOptions"
|
|
4875
4878
|
]),
|
|
4876
|
-
ve.value && s !== ve.value.length - 1 ? (
|
|
4877
|
-
]))), 128)) : (
|
|
4879
|
+
ve.value && s !== ve.value.length - 1 ? (O(), o("div", fs)) : a("v-if", !0)
|
|
4880
|
+
]))), 128)) : (O(), i(cs, {
|
|
4878
4881
|
key: 1,
|
|
4879
|
-
selectedItems:
|
|
4880
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
4882
|
+
selectedItems: ue.value,
|
|
4883
|
+
"onUpdate:selectedItems": r[3] ||= (e) => ue.value = e,
|
|
4881
4884
|
options: pe.value,
|
|
4882
4885
|
config: l.value,
|
|
4883
4886
|
singleSelect: e.singleSelect,
|
|
4884
|
-
queryText: e.highlightSearchText ?
|
|
4887
|
+
queryText: e.highlightSearchText ? ne.value : null,
|
|
4885
4888
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
4886
4889
|
itemClass: "pv-stack-4",
|
|
4887
4890
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
@@ -4899,9 +4902,9 @@ var Qo = ["data-align"], $o = ["id", "role"], es = /* @__PURE__ */ lt(/* @__PURE
|
|
|
4899
4902
|
"isSeeMoreLoading",
|
|
4900
4903
|
"hasMoreOptions"
|
|
4901
4904
|
]))], 64)) : a("v-if", !0),
|
|
4902
|
-
e.isLoading ? (
|
|
4905
|
+
e.isLoading ? (O(), o("div", ps, [u(Qe, { variant: "dark" }), e.loadingText ? (O(), o("span", ms, F(e.loadingText), 1)) : a("v-if", !0)])) : pe.value.length === 0 ? (O(), o(t, { key: 4 }, [L(Ee) ? N(n.$slots, "no-results", S(y({ key: 0 }, be.value))) : (O(), i(Gt, { key: 1 }))], 64)) : a("v-if", !0),
|
|
4903
4906
|
a(" Only when there is something to put in it, or a bordered empty bar is left behind. "),
|
|
4904
|
-
|
|
4907
|
+
L(De) || e.menuActionsVariant ? (O(), o("div", hs, [L(De) ? N(n.$slots, "footer", S(y({ key: 0 }, be.value))) : a("v-if", !0), e.menuActionsVariant ? (O(), i(ht, {
|
|
4905
4908
|
key: 1,
|
|
4906
4909
|
variant: e.menuActionsVariant,
|
|
4907
4910
|
disabled: e.isLoading,
|
|
@@ -5252,15 +5255,15 @@ var _c = {
|
|
|
5252
5255
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
5253
5256
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
5254
5257
|
if ($(a) && o.transform !== "strict") {
|
|
5255
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Qs(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Qs(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Qs(x, ["dark"]), w = y || {}, { dark: T } = w, E = Qs(w, ["dark"]),
|
|
5256
|
-
s = this.transformCSS(e,
|
|
5257
|
-
...
|
|
5258
|
-
...
|
|
5259
|
-
...
|
|
5260
|
-
])], d = `${this.transformCSS(e, `${
|
|
5261
|
-
...
|
|
5262
|
-
...
|
|
5263
|
-
...
|
|
5258
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Qs(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Qs(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Qs(x, ["dark"]), w = y || {}, { dark: T } = w, E = Qs(w, ["dark"]), ee = $(t) ? this._toVariables({ primitive: t }, o) : {}, D = $(_) ? this._toVariables({ semantic: _ }, o) : {}, O = $(C) ? this._toVariables({ light: C }, o) : {}, k = $(S) ? this._toVariables({ dark: S }, o) : {}, A = $(b) ? this._toVariables({ semantic: b }, o) : {}, j = $(E) ? this._toVariables({ light: E }, o) : {}, M = $(T) ? this._toVariables({ dark: T }, o) : {}, [te, N] = [ee.declarations ?? "", ee.tokens], [ne, re] = [D.declarations ?? "", D.tokens || []], [P, F] = [O.declarations ?? "", O.tokens || []], [I, L] = [k.declarations ?? "", k.tokens || []], [ie, ae] = [A.declarations ?? "", A.tokens || []], [oe, R] = [j.declarations ?? "", j.tokens || []], [se, ce] = [M.declarations ?? "", M.tokens || []];
|
|
5259
|
+
s = this.transformCSS(e, te, "light", "variable", o, r, i), c = N, l = `${this.transformCSS(e, `${ne}${P}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${I}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
5260
|
+
...re,
|
|
5261
|
+
...F,
|
|
5262
|
+
...L
|
|
5263
|
+
])], d = `${this.transformCSS(e, `${ie}${oe}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${se}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
5264
|
+
...ae,
|
|
5265
|
+
...R,
|
|
5266
|
+
...ce
|
|
5264
5267
|
])], p = Os(a.css, { dt: pc });
|
|
5265
5268
|
}
|
|
5266
5269
|
return {
|
|
@@ -5286,11 +5289,11 @@ var _c = {
|
|
|
5286
5289
|
"colorScheme",
|
|
5287
5290
|
"extend",
|
|
5288
5291
|
"css"
|
|
5289
|
-
]), h = f || {}, { colorScheme: g } = h, _ = Qs(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Qs(v, ["dark"]), x = g || {}, { dark: S } = x, C = Qs(x, ["dark"]), w = $(m) ? this._toVariables({ [r]: Xs(Xs({}, m), _) }, n) : {}, T = $(b) ? this._toVariables({ [r]: Xs(Xs({}, b), C) }, n) : {}, E = $(y) ? this._toVariables({ [r]: Xs(Xs({}, y), S) }, n) : {}, [
|
|
5290
|
-
s = `${this.transformCSS(r, `${
|
|
5291
|
-
...
|
|
5292
|
-
...
|
|
5293
|
-
...
|
|
5292
|
+
]), h = f || {}, { colorScheme: g } = h, _ = Qs(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Qs(v, ["dark"]), x = g || {}, { dark: S } = x, C = Qs(x, ["dark"]), w = $(m) ? this._toVariables({ [r]: Xs(Xs({}, m), _) }, n) : {}, T = $(b) ? this._toVariables({ [r]: Xs(Xs({}, b), C) }, n) : {}, E = $(y) ? this._toVariables({ [r]: Xs(Xs({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, j] = [E.declarations ?? "", E.tokens || []];
|
|
5293
|
+
s = `${this.transformCSS(r, `${ee}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, A, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
5294
|
+
...D,
|
|
5295
|
+
...k,
|
|
5296
|
+
...j
|
|
5294
5297
|
])], l = Os(p, { dt: pc });
|
|
5295
5298
|
}
|
|
5296
5299
|
return {
|
|
@@ -5649,32 +5652,32 @@ function Ec(e) {
|
|
|
5649
5652
|
}
|
|
5650
5653
|
var Dc = 0;
|
|
5651
5654
|
function Oc(e) {
|
|
5652
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
5655
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = M(!1), r = M(e), i = M(null), a = Vs() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Dc}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, D = t.props, O = D === void 0 ? {} : D, k = function() {}, A = function(t) {
|
|
5653
5656
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5654
5657
|
if (s) {
|
|
5655
|
-
var o = Sc(Sc({},
|
|
5658
|
+
var o = Sc(Sc({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
5656
5659
|
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, Bs(i.value, {
|
|
5657
5660
|
type: "text/css",
|
|
5658
5661
|
id: l,
|
|
5659
5662
|
media: _,
|
|
5660
5663
|
nonce: u
|
|
5661
5664
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), Hs(i.value, "data-primevue-style-id", c), Bs(i.value, o), i.value.onload = function(e) {
|
|
5662
|
-
return
|
|
5663
|
-
}, C?.(c)), !n.value && (
|
|
5665
|
+
return ee?.(e, { name: c });
|
|
5666
|
+
}, C?.(c)), !n.value && (k = z(r, function(e) {
|
|
5664
5667
|
i.value.textContent = e, T?.(c);
|
|
5665
5668
|
}, { immediate: !0 }), n.value = !0);
|
|
5666
5669
|
}
|
|
5667
5670
|
};
|
|
5668
|
-
return l && !d && Ec(
|
|
5671
|
+
return l && !d && Ec(A), {
|
|
5669
5672
|
id: h,
|
|
5670
5673
|
name: p,
|
|
5671
5674
|
el: i,
|
|
5672
5675
|
css: r,
|
|
5673
5676
|
unload: function() {
|
|
5674
|
-
!s || !n.value || (
|
|
5677
|
+
!s || !n.value || (k(), Rs(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
5675
5678
|
},
|
|
5676
|
-
load:
|
|
5677
|
-
isLoaded:
|
|
5679
|
+
load: A,
|
|
5680
|
+
isLoaded: j(n)
|
|
5678
5681
|
};
|
|
5679
5682
|
}
|
|
5680
5683
|
//#endregion
|
|
@@ -6152,7 +6155,7 @@ var el = {
|
|
|
6152
6155
|
csp: { nonce: void 0 }
|
|
6153
6156
|
}, tl = Symbol();
|
|
6154
6157
|
function nl(e, t) {
|
|
6155
|
-
var n = { config:
|
|
6158
|
+
var n = { config: A(t) };
|
|
6156
6159
|
return e.config.globalProperties.$primevue = n, e.provide(tl, n), il(), al(e, n), n;
|
|
6157
6160
|
}
|
|
6158
6161
|
var rl = [];
|
|
@@ -6162,7 +6165,7 @@ function il() {
|
|
|
6162
6165
|
}), rl = [];
|
|
6163
6166
|
}
|
|
6164
6167
|
function al(e, t) {
|
|
6165
|
-
var n =
|
|
6168
|
+
var n = M(!1), r = function() {
|
|
6166
6169
|
if (t.config?.theme !== "none" && !vc.isStyleNameLoaded("common")) {
|
|
6167
6170
|
var e, n = Kc.getCommonTheme?.call(Kc) || {}, r = n.primitive, i = n.semantic, a = n.global, o = n.style, s = { nonce: (e = t.config) == null || (e = e.csp) == null ? void 0 : e.nonce };
|
|
6168
6171
|
Kc.load(r?.css, Xc({ name: "primitive-variables" }, s)), Kc.load(i?.css, Xc({ name: "semantic-variables" }, s)), Kc.load(a?.css, Xc({ name: "global-variables" }, s)), Kc.loadStyle(Xc({ name: "global-style" }, s), o), vc.setLoadedStyleName("common");
|
|
@@ -6171,7 +6174,7 @@ function al(e, t) {
|
|
|
6171
6174
|
$s.on("theme:change", function(t) {
|
|
6172
6175
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
6173
6176
|
});
|
|
6174
|
-
var i =
|
|
6177
|
+
var i = z(t.config, function(e, t) {
|
|
6175
6178
|
qc.emit("config:change", {
|
|
6176
6179
|
newValue: e,
|
|
6177
6180
|
oldValue: t
|
|
@@ -6179,7 +6182,7 @@ function al(e, t) {
|
|
|
6179
6182
|
}, {
|
|
6180
6183
|
immediate: !0,
|
|
6181
6184
|
deep: !0
|
|
6182
|
-
}), a =
|
|
6185
|
+
}), a = z(function() {
|
|
6183
6186
|
return t.config.ripple;
|
|
6184
6187
|
}, function(e, t) {
|
|
6185
6188
|
qc.emit("config:ripple:change", {
|
|
@@ -6189,7 +6192,7 @@ function al(e, t) {
|
|
|
6189
6192
|
}, {
|
|
6190
6193
|
immediate: !0,
|
|
6191
6194
|
deep: !0
|
|
6192
|
-
}), o =
|
|
6195
|
+
}), o = z(function() {
|
|
6193
6196
|
return t.config.theme;
|
|
6194
6197
|
}, function(e, i) {
|
|
6195
6198
|
n.value || vc.setTheme(e), t.config.unstyled || r(), n.value = !1, qc.emit("config:theme:change", {
|
|
@@ -6199,7 +6202,7 @@ function al(e, t) {
|
|
|
6199
6202
|
}, {
|
|
6200
6203
|
immediate: !0,
|
|
6201
6204
|
deep: !1
|
|
6202
|
-
}), s =
|
|
6205
|
+
}), s = z(function() {
|
|
6203
6206
|
return t.config.unstyled;
|
|
6204
6207
|
}, function(e, n) {
|
|
6205
6208
|
!e && t.config.theme && r(), qc.emit("config:unstyled:change", {
|