@turquoisehealth/pit-viper 2.209.2 → 2.210.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-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-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +35 -21
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +35 -21
- 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 +426 -409
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +36 -20
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +589 -572
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +626 -609
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +49 -32
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +523 -506
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +399 -383
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +37 -20
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +620 -603
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +37 -20
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +519 -503
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +600 -583
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +124 -107
- package/pv-components/dist/web/pv-components.iife.js +16 -16
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
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 D, onUnmounted as O, openBlock as k, provide as A, reactive as j, readonly as M, ref as N, renderList as ee, renderSlot as P, resolveComponent as F, resolveDynamicComponent 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 D, onUnmounted as O, openBlock as k, provide as A, reactive as j, readonly as M, ref as N, renderList as ee, renderSlot as P, resolveComponent as F, resolveDynamicComponent as I, shallowRef as L, toDisplayString as R, toValue as z, unref as B, useId as te, useModel as ne, useSlots as re, useTemplateRef as ie, vModelCheckbox as V, vModelText as ae, vShow as oe, watch as H, watchEffect as se, withCtx as U, withDirectives as ce, withModifiers as le } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object.getOwnPropertyNames, pe = Object.prototype.hasOwnProperty, me = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) ue(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
11
|
-
},
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
10
|
+
return t || ue(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, he = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = fe(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !pe.call(e, s) && s !== n && ue(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = de(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, ge = (e, t, n) => (he(e, t, "default"), n && he(n, t, "default"));
|
|
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
|
-
function
|
|
20
|
+
function _e(e) {
|
|
21
21
|
return m() ? (D(e), !0) : !1;
|
|
22
22
|
}
|
|
23
|
-
var
|
|
23
|
+
var ve = typeof window < "u" && typeof document < "u";
|
|
24
24
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return
|
|
25
|
+
var ye = (e) => e != null, be = Object.prototype.toString, xe = (e) => be.call(e) === "[object Object]", Se = () => {}, Ce = /* @__PURE__ */ we();
|
|
26
|
+
function we() {
|
|
27
|
+
return ve && (window == null ? void 0 : window.navigator)?.userAgent && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || (window == null ? void 0 : window.navigator)?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Te(e, t) {
|
|
30
30
|
function n(...n) {
|
|
31
31
|
return new Promise((r, i) => {
|
|
32
32
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -38,12 +38,12 @@ function Ee(e, t) {
|
|
|
38
38
|
}
|
|
39
39
|
return n;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
let n, r, i =
|
|
43
|
-
clearTimeout(e), i(), i =
|
|
41
|
+
function Ee(e, t = {}) {
|
|
42
|
+
let n, r, i = Se, a = (e) => {
|
|
43
|
+
clearTimeout(e), i(), i = Se;
|
|
44
44
|
}, o;
|
|
45
45
|
return (s) => {
|
|
46
|
-
let c =
|
|
46
|
+
let c = z(e), l = z(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());
|
|
@@ -53,95 +53,95 @@ function De(e, t = {}) {
|
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function De(e) {
|
|
57
57
|
return Array.isArray(e) ? e : [e];
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Oe(e) {
|
|
60
60
|
return e || p();
|
|
61
61
|
}
|
|
62
62
|
/* @__NO_SIDE_EFFECTS__ */
|
|
63
|
-
function
|
|
64
|
-
return Ee(
|
|
63
|
+
function ke(e, t = 200, n = {}) {
|
|
64
|
+
return Te(Ee(t, n), e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
66
|
+
function Ae(e, t = !0, n) {
|
|
67
|
+
Oe(n) ? E(e, n) : t ? e() : b(e);
|
|
68
68
|
}
|
|
69
69
|
/* @__NO_SIDE_EFFECTS__ */
|
|
70
|
-
function
|
|
71
|
-
let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = _(e), a =
|
|
70
|
+
function je(e = !1, t = {}) {
|
|
71
|
+
let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = _(e), a = L(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 = z(n);
|
|
76
|
+
return a.value = a.value === e ? z(r) : e, a.value;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return i ? o : [a, o];
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function Me(e, t, n) {
|
|
82
|
+
return H(e, t, {
|
|
83
83
|
...n,
|
|
84
84
|
immediate: !0
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region ../node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
function
|
|
92
|
-
let t =
|
|
89
|
+
var Ne = ve ? window : void 0;
|
|
90
|
+
ve && window.document, ve && window.navigator, ve && window.location;
|
|
91
|
+
function W(e) {
|
|
92
|
+
let t = z(e);
|
|
93
93
|
return t?.$el ?? t;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Pe(...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 =
|
|
99
|
+
let t = De(z(e[0])).filter((e) => e != null);
|
|
100
100
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
101
|
-
}), o =
|
|
102
|
-
a.value?.map((e) =>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
}), o = Me(() => [
|
|
102
|
+
a.value?.map((e) => W(e)) ?? [Ne].filter((e) => e != null),
|
|
103
|
+
De(z(a.value ? e[1] : e[0])),
|
|
104
|
+
De(B(a.value ? e[2] : e[1])),
|
|
105
|
+
z(a.value ? e[3] : e[2])
|
|
106
106
|
], ([e, r, a, o]) => {
|
|
107
107
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
108
|
-
let s =
|
|
108
|
+
let s = xe(o) ? { ...o } : o;
|
|
109
109
|
t.push(...e.flatMap((e) => r.flatMap((t) => a.map((n) => i(e, t, n, s)))));
|
|
110
110
|
}, { flush: "post" });
|
|
111
|
-
return
|
|
111
|
+
return _e(n), () => {
|
|
112
112
|
o(), n();
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
var
|
|
116
|
-
function
|
|
117
|
-
let { window: r =
|
|
115
|
+
var Fe = !1;
|
|
116
|
+
function Ie(e, t, n = {}) {
|
|
117
|
+
let { window: r = Ne, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
118
118
|
if (!r) return s ? {
|
|
119
|
-
stop:
|
|
120
|
-
cancel:
|
|
121
|
-
trigger:
|
|
122
|
-
} :
|
|
123
|
-
if (
|
|
124
|
-
|
|
119
|
+
stop: Se,
|
|
120
|
+
cancel: Se,
|
|
121
|
+
trigger: Se
|
|
122
|
+
} : Se;
|
|
123
|
+
if (Ce && !Fe) {
|
|
124
|
+
Fe = !0;
|
|
125
125
|
let e = { passive: !0 };
|
|
126
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
126
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", Se, e)), r.document.documentElement.addEventListener("click", Se, e);
|
|
127
127
|
}
|
|
128
|
-
let c = !0, l = (e) =>
|
|
128
|
+
let c = !0, l = (e) => z(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
|
-
let n =
|
|
131
|
+
let n = W(t);
|
|
132
132
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
function u(e) {
|
|
136
|
-
let t =
|
|
136
|
+
let t = z(e);
|
|
137
137
|
return t && t.$.subTree.shapeFlag === 16;
|
|
138
138
|
}
|
|
139
139
|
function d(e, t) {
|
|
140
|
-
let n =
|
|
140
|
+
let n = z(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) => {
|
|
144
|
-
let r =
|
|
144
|
+
let r = W(e);
|
|
145
145
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
146
146
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
147
147
|
c = !0;
|
|
@@ -150,7 +150,7 @@ function Le(e, t, n = {}) {
|
|
|
150
150
|
t(n);
|
|
151
151
|
}
|
|
152
152
|
}, p = !1, m = [
|
|
153
|
-
|
|
153
|
+
Pe(r, "click", (e) => {
|
|
154
154
|
p || (p = !0, setTimeout(() => {
|
|
155
155
|
p = !1;
|
|
156
156
|
}, 0), f(e));
|
|
@@ -158,13 +158,13 @@ function Le(e, t, n = {}) {
|
|
|
158
158
|
passive: !0,
|
|
159
159
|
capture: a
|
|
160
160
|
}),
|
|
161
|
-
|
|
162
|
-
let n =
|
|
161
|
+
Pe(r, "pointerdown", (t) => {
|
|
162
|
+
let n = W(e);
|
|
163
163
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
164
164
|
}, { passive: !0 }),
|
|
165
|
-
o &&
|
|
165
|
+
o && Pe(r, "blur", (n) => {
|
|
166
166
|
setTimeout(() => {
|
|
167
|
-
let i =
|
|
167
|
+
let i = W(e);
|
|
168
168
|
r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
169
169
|
}, 0);
|
|
170
170
|
}, { passive: !0 })
|
|
@@ -180,22 +180,22 @@ function Le(e, t, n = {}) {
|
|
|
180
180
|
} : h;
|
|
181
181
|
}
|
|
182
182
|
/* @__NO_SIDE_EFFECTS__ */
|
|
183
|
-
function
|
|
184
|
-
let e =
|
|
183
|
+
function Le() {
|
|
184
|
+
let e = L(!1), t = p();
|
|
185
185
|
return t && E(() => {
|
|
186
186
|
e.value = !0;
|
|
187
187
|
}, t), e;
|
|
188
188
|
}
|
|
189
189
|
/* @__NO_SIDE_EFFECTS__ */
|
|
190
|
-
function
|
|
191
|
-
let t = /* @__PURE__ */
|
|
190
|
+
function Re(e) {
|
|
191
|
+
let t = /* @__PURE__ */ Le();
|
|
192
192
|
return r(() => (t.value, !!e()));
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
let { window: i =
|
|
194
|
+
function ze(e, t, n = {}) {
|
|
195
|
+
let { window: i = Ne, ...a } = n, o, s = /* @__PURE__ */ Re(() => i && "MutationObserver" in i), c = () => {
|
|
196
196
|
o &&= (o.disconnect(), void 0);
|
|
197
|
-
}, l =
|
|
198
|
-
let t =
|
|
197
|
+
}, l = H(r(() => {
|
|
198
|
+
let t = De(z(e)).map(W).filter(ye);
|
|
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)));
|
|
@@ -205,21 +205,21 @@ function Be(e, t, n = {}) {
|
|
|
205
205
|
}), u = () => o?.takeRecords(), d = () => {
|
|
206
206
|
l(), c();
|
|
207
207
|
};
|
|
208
|
-
return
|
|
208
|
+
return _e(d), {
|
|
209
209
|
isSupported: s,
|
|
210
210
|
stop: d,
|
|
211
211
|
takeRecords: u
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
let { window: r =
|
|
216
|
-
if (!r || !i) return
|
|
214
|
+
function Be(e, t, n = {}) {
|
|
215
|
+
let { window: r = Ne, document: i = r?.document, flush: a = "sync" } = n;
|
|
216
|
+
if (!r || !i) return Se;
|
|
217
217
|
let o, s = (e) => {
|
|
218
218
|
o?.(), o = e;
|
|
219
|
-
}, c =
|
|
220
|
-
let n =
|
|
219
|
+
}, c = se(() => {
|
|
220
|
+
let n = W(e);
|
|
221
221
|
if (n) {
|
|
222
|
-
let { stop: e } =
|
|
222
|
+
let { stop: e } = ze(i, (e) => {
|
|
223
223
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
224
224
|
}, {
|
|
225
225
|
window: r,
|
|
@@ -231,25 +231,25 @@ function Ve(e, t, n = {}) {
|
|
|
231
231
|
}, { flush: a }), l = () => {
|
|
232
232
|
c(), s();
|
|
233
233
|
};
|
|
234
|
-
return
|
|
234
|
+
return _e(l), l;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Ve(e) {
|
|
237
237
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function He(...e) {
|
|
240
240
|
let t, n, r = {};
|
|
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
|
-
let { target: i =
|
|
243
|
-
return
|
|
244
|
-
e.repeat &&
|
|
242
|
+
let { target: i = Ne, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = Ve(t);
|
|
243
|
+
return Pe(i, a, (e) => {
|
|
244
|
+
e.repeat && z(s) || c(e) && n(e);
|
|
245
245
|
}, o);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
let { window: i =
|
|
247
|
+
function Ue(e, t, n = {}) {
|
|
248
|
+
let { window: i = Ne, ...a } = n, o, s = /* @__PURE__ */ Re(() => i && "ResizeObserver" in i), c = () => {
|
|
249
249
|
o &&= (o.disconnect(), void 0);
|
|
250
|
-
}, l =
|
|
251
|
-
let t =
|
|
252
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
250
|
+
}, l = H(r(() => {
|
|
251
|
+
let t = z(e);
|
|
252
|
+
return Array.isArray(t) ? t.map((e) => W(e)) : [W(t)];
|
|
253
253
|
}), (e) => {
|
|
254
254
|
if (c(), s.value && i) {
|
|
255
255
|
o = new ResizeObserver(t);
|
|
@@ -261,15 +261,15 @@ function We(e, t, n = {}) {
|
|
|
261
261
|
}), u = () => {
|
|
262
262
|
c(), l();
|
|
263
263
|
};
|
|
264
|
-
return
|
|
264
|
+
return _e(u), {
|
|
265
265
|
isSupported: s,
|
|
266
266
|
stop: u
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
269
|
+
function We(e, t = {}) {
|
|
270
|
+
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = L(0), c = L(0), l = L(0), u = L(0), d = L(0), f = L(0), p = L(0), m = L(0);
|
|
271
271
|
function h() {
|
|
272
|
-
let t =
|
|
272
|
+
let t = W(e);
|
|
273
273
|
if (!t) {
|
|
274
274
|
n && (s.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0);
|
|
275
275
|
return;
|
|
@@ -280,10 +280,10 @@ function Ge(e, t = {}) {
|
|
|
280
280
|
function g() {
|
|
281
281
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
282
282
|
}
|
|
283
|
-
return
|
|
283
|
+
return Ue(e, g), H(() => W(e), (e) => !e && g()), ze(e, g, { attributeFilter: ["style", "class"] }), i && Pe("scroll", g, {
|
|
284
284
|
capture: !0,
|
|
285
285
|
passive: !0
|
|
286
|
-
}), r &&
|
|
286
|
+
}), r && Pe("resize", g, { passive: !0 }), Ae(() => {
|
|
287
287
|
a && g();
|
|
288
288
|
}), {
|
|
289
289
|
height: s,
|
|
@@ -297,16 +297,16 @@ function Ge(e, t = {}) {
|
|
|
297
297
|
update: g
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o =
|
|
300
|
+
function Ge(e, t = {}) {
|
|
301
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Ne } = t, s = L(!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
|
};
|
|
305
|
-
return o ? (
|
|
305
|
+
return o ? (Pe(e, "mouseenter", () => l(!0), { passive: !0 }), Pe(e, "mouseleave", () => l(!1), { passive: !0 }), a && Be(r(() => W(e)), () => l(!1)), s) : s;
|
|
306
306
|
}
|
|
307
307
|
//#endregion
|
|
308
308
|
//#region src/components/base/PvSpinner/PvSpinner.vue
|
|
309
|
-
var
|
|
309
|
+
var Ke = /* @__PURE__ */ d({
|
|
310
310
|
__name: "PvSpinner",
|
|
311
311
|
props: {
|
|
312
312
|
size: {
|
|
@@ -336,27 +336,27 @@ var qe = /* @__PURE__ */ d({
|
|
|
336
336
|
style: C({ "--size": t[e.size] })
|
|
337
337
|
}, null, 6));
|
|
338
338
|
}
|
|
339
|
-
}),
|
|
339
|
+
}), qe = ["ghost"], Je = {
|
|
340
340
|
md: "pv-button-small",
|
|
341
341
|
lg: void 0,
|
|
342
342
|
xl: "pv-button-large"
|
|
343
|
-
},
|
|
343
|
+
}, Ye = (e) => e == null || !Je.hasOwnProperty(e) ? null : Je[e] || null;
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region src/web-components/utils.ts
|
|
346
|
-
function
|
|
346
|
+
function Xe() {
|
|
347
347
|
let e = N(!1), t = p()?.root || {};
|
|
348
348
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
349
349
|
}
|
|
350
350
|
//#endregion
|
|
351
351
|
//#region src/components/base/baseProps.ts
|
|
352
|
-
var
|
|
352
|
+
var Ze = {
|
|
353
353
|
xs: "12px",
|
|
354
354
|
sm: "16px",
|
|
355
355
|
md: "20px",
|
|
356
356
|
lg: "24px",
|
|
357
357
|
xl: "32px",
|
|
358
358
|
"2x": "40px"
|
|
359
|
-
},
|
|
359
|
+
}, Qe = [
|
|
360
360
|
void 0,
|
|
361
361
|
10,
|
|
362
362
|
12,
|
|
@@ -364,24 +364,24 @@ var Qe = {
|
|
|
364
364
|
24,
|
|
365
365
|
32,
|
|
366
366
|
64
|
|
367
|
-
],
|
|
367
|
+
], $e = ["xlink:href"], G = /* @__PURE__ */ d({
|
|
368
368
|
__name: "PvIcon",
|
|
369
369
|
props: {
|
|
370
370
|
name: { type: String },
|
|
371
371
|
size: { type: null }
|
|
372
372
|
},
|
|
373
373
|
setup(e) {
|
|
374
|
-
let t = e, n =
|
|
374
|
+
let t = e, n = Xe(), i = N(null), a = r(() => ({
|
|
375
375
|
"pv-icon": !0,
|
|
376
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
376
|
+
[`pv-icon-${t.size}`]: t.size != null && Qe.includes(t.size)
|
|
377
377
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
378
378
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (k(), o("svg", {
|
|
379
379
|
"data-testid": "pv-icon",
|
|
380
380
|
"aria-hidden": "true",
|
|
381
381
|
class: x(a.value)
|
|
382
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
382
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, $e)], 2));
|
|
383
383
|
}
|
|
384
|
-
}),
|
|
384
|
+
}), et = /* @__PURE__ */ d({
|
|
385
385
|
__name: "PvCounterBadge",
|
|
386
386
|
props: {
|
|
387
387
|
maxValue: {
|
|
@@ -416,16 +416,16 @@ var Qe = {
|
|
|
416
416
|
return (e, t) => (k(), o("div", {
|
|
417
417
|
class: x(i.value),
|
|
418
418
|
"data-testid": "pv-counter-badge"
|
|
419
|
-
},
|
|
419
|
+
}, R(n.value), 3));
|
|
420
420
|
}
|
|
421
|
-
}),
|
|
421
|
+
}), tt = ".pv-badge-md[data-v-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}", nt = (e, t) => {
|
|
422
422
|
let n = e.__vccOpts || e;
|
|
423
423
|
for (let [e, r] of t) n[e] = r;
|
|
424
424
|
return n;
|
|
425
|
-
},
|
|
425
|
+
}, rt = /* @__PURE__ */ nt(et, [["styles", [tt]], ["__scopeId", "data-v-6a07eeec"]]), it = ["disabled", "aria-label"], at = {
|
|
426
426
|
key: 2,
|
|
427
427
|
"data-testid": "pv-button-label"
|
|
428
|
-
},
|
|
428
|
+
}, ot = /* @__PURE__ */ d({
|
|
429
429
|
__name: "PvButton",
|
|
430
430
|
props: {
|
|
431
431
|
variant: {
|
|
@@ -458,8 +458,8 @@ var Qe = {
|
|
|
458
458
|
setup(e) {
|
|
459
459
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
460
460
|
let e = [];
|
|
461
|
-
n.inverse &&
|
|
462
|
-
let t =
|
|
461
|
+
n.inverse && qe.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
462
|
+
let t = Ye(n.size);
|
|
463
463
|
return t && e.push(t), e;
|
|
464
464
|
});
|
|
465
465
|
return (n, r) => (k(), o("button", {
|
|
@@ -468,37 +468,37 @@ var Qe = {
|
|
|
468
468
|
disabled: e.disabled,
|
|
469
469
|
"aria-label": s.value,
|
|
470
470
|
"data-testid": "pv-button"
|
|
471
|
-
}, [e.loading ? (k(), i(
|
|
471
|
+
}, [e.loading ? (k(), i(Ke, {
|
|
472
472
|
key: 0,
|
|
473
473
|
size: "sm"
|
|
474
474
|
})) : (k(), o(t, { key: 1 }, [
|
|
475
|
-
e.leftCounterBadge ? (k(), i(
|
|
475
|
+
e.leftCounterBadge ? (k(), i(rt, {
|
|
476
476
|
key: 0,
|
|
477
477
|
value: e.leftCounterBadge,
|
|
478
478
|
variant: "tertiary"
|
|
479
479
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
480
|
-
e.leftIcon ? (k(), i(
|
|
480
|
+
e.leftIcon ? (k(), i(G, {
|
|
481
481
|
key: 1,
|
|
482
482
|
name: e.leftIcon,
|
|
483
483
|
"data-testid": "pv-button-left-icon"
|
|
484
484
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
485
|
-
e.label ? (k(), o("span",
|
|
486
|
-
e.rightCounterBadge ? (k(), i(
|
|
485
|
+
e.label ? (k(), o("span", at, R(e.label), 1)) : a("v-if", !0),
|
|
486
|
+
e.rightCounterBadge ? (k(), i(rt, {
|
|
487
487
|
key: 3,
|
|
488
488
|
value: e.rightCounterBadge,
|
|
489
489
|
variant: "tertiary"
|
|
490
490
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
491
|
-
e.rightIcon ? (k(), i(
|
|
491
|
+
e.rightIcon ? (k(), i(G, {
|
|
492
492
|
key: 4,
|
|
493
493
|
name: e.rightIcon,
|
|
494
494
|
"data-testid": "pv-button-right-icon"
|
|
495
495
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
496
|
-
], 64))], 10,
|
|
496
|
+
], 64))], 10, it));
|
|
497
497
|
}
|
|
498
|
-
}),
|
|
498
|
+
}), st = {
|
|
499
499
|
"data-testid": "pv-select-menu-control-panel",
|
|
500
500
|
class: "pv-flex pv-space-between"
|
|
501
|
-
},
|
|
501
|
+
}, ct = /* @__PURE__ */ d({
|
|
502
502
|
__name: "PvMenuControlPanel",
|
|
503
503
|
props: {
|
|
504
504
|
variant: { type: String },
|
|
@@ -513,38 +513,38 @@ var Qe = {
|
|
|
513
513
|
],
|
|
514
514
|
setup(e) {
|
|
515
515
|
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
516
|
-
return (n, r) => (k(), o("div",
|
|
516
|
+
return (n, r) => (k(), o("div", st, [e.variant === "select-clear" ? (k(), o(t, { key: 0 }, [u(ot, {
|
|
517
517
|
variant: "ghost",
|
|
518
518
|
"data-testid": "pv-select-menu-item-select-all",
|
|
519
519
|
"data-dd-action-name": i.value,
|
|
520
520
|
onClick: r[0] ||= (e) => n.$emit("handle-select-all"),
|
|
521
521
|
label: "Select All",
|
|
522
522
|
disabled: e.disabled
|
|
523
|
-
}, null, 8, ["data-dd-action-name", "disabled"]), u(
|
|
523
|
+
}, null, 8, ["data-dd-action-name", "disabled"]), u(ot, {
|
|
524
524
|
label: "Clear All",
|
|
525
525
|
variant: "ghost",
|
|
526
526
|
"data-testid": "pv-select-menu-item-clear-all",
|
|
527
527
|
"data-dd-action-name": s.value,
|
|
528
528
|
onClick: r[1] ||= (e) => n.$emit("handle-clear-all"),
|
|
529
529
|
disabled: e.disabled
|
|
530
|
-
}, null, 8, ["data-dd-action-name", "disabled"])], 64)) : e.variant === "cancel-confirm" ? (k(), o(t, { key: 1 }, [u(
|
|
530
|
+
}, null, 8, ["data-dd-action-name", "disabled"])], 64)) : e.variant === "cancel-confirm" ? (k(), o(t, { key: 1 }, [u(ot, {
|
|
531
531
|
label: "Cancel",
|
|
532
532
|
variant: "ghost",
|
|
533
533
|
"data-testid": "pv-select-menu-item-cancel",
|
|
534
534
|
onClick: r[2] ||= (e) => n.$emit("handle-cancel"),
|
|
535
535
|
disabled: e.disabled
|
|
536
|
-
}, null, 8, ["disabled"]), u(
|
|
536
|
+
}, null, 8, ["disabled"]), u(ot, {
|
|
537
537
|
label: "Confirm",
|
|
538
538
|
"data-testid": "pv-select-menu-item-confirm",
|
|
539
539
|
onClick: r[3] ||= (e) => n.$emit("handle-confirm"),
|
|
540
540
|
disabled: e.disabled
|
|
541
541
|
}, null, 8, ["disabled"])], 64)) : a("v-if", !0)]));
|
|
542
542
|
}
|
|
543
|
-
}),
|
|
543
|
+
}), lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
544
544
|
key: 0,
|
|
545
545
|
"data-testid": "pv-search-input-shortcut",
|
|
546
546
|
class: "pv-kbd"
|
|
547
|
-
},
|
|
547
|
+
}, ft = "/", pt = /* @__PURE__ */ d({
|
|
548
548
|
__name: "PvSearchInput",
|
|
549
549
|
props: /* @__PURE__ */ v({
|
|
550
550
|
placeholder: {
|
|
@@ -565,17 +565,17 @@ var Qe = {
|
|
|
565
565
|
}),
|
|
566
566
|
emits: ["update:modelValue"],
|
|
567
567
|
setup(e, { expose: t }) {
|
|
568
|
-
let n = e, i =
|
|
568
|
+
let n = e, i = ie("search-input"), c = ne(e, "modelValue"), l = r(() => ({
|
|
569
569
|
"pv-input-search": !0,
|
|
570
570
|
"pv-full-width": !0,
|
|
571
571
|
"pv-input-padded-end": !0
|
|
572
572
|
}));
|
|
573
573
|
return E(() => {
|
|
574
|
-
n.displayShortcut &&
|
|
574
|
+
n.displayShortcut && He(ft, (e) => {
|
|
575
575
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
576
576
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
577
577
|
});
|
|
578
|
-
}), t({ input: i }), (t, n) => (k(), o("div",
|
|
578
|
+
}), t({ input: i }), (t, n) => (k(), o("div", lt, [ce(s("input", {
|
|
579
579
|
ref: "search-input",
|
|
580
580
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
581
581
|
"data-testid": "pv-search-input",
|
|
@@ -583,12 +583,12 @@ var Qe = {
|
|
|
583
583
|
disabled: e.disabled,
|
|
584
584
|
class: x(l.value),
|
|
585
585
|
placeholder: e.placeholder
|
|
586
|
-
}, null, 10,
|
|
586
|
+
}, null, 10, ut), [[ae, c.value]]), e.displayShortcut ? (k(), o("kbd", dt, R(ft))) : a("v-if", !0)]));
|
|
587
587
|
}
|
|
588
|
-
}),
|
|
588
|
+
}), mt = {
|
|
589
589
|
class: "pv-flex",
|
|
590
590
|
"data-testid": "pv-company-logo"
|
|
591
|
-
},
|
|
591
|
+
}, ht = ["src"], gt = /* @__PURE__ */ d({
|
|
592
592
|
__name: "PvCompanyLogo",
|
|
593
593
|
props: {
|
|
594
594
|
basePath: {
|
|
@@ -603,13 +603,13 @@ var Qe = {
|
|
|
603
603
|
srcPathOverride: { type: String }
|
|
604
604
|
},
|
|
605
605
|
setup(e) {
|
|
606
|
-
let t = e, n = N(!0), i = r(() =>
|
|
606
|
+
let t = e, n = N(!0), i = r(() => Ze[t.size] || "32px"), a = r(() => ({
|
|
607
607
|
"pv-icon": n.value,
|
|
608
608
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
609
609
|
})), 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}`);
|
|
610
|
-
return
|
|
610
|
+
return H(u, () => {
|
|
611
611
|
n.value = !0;
|
|
612
|
-
}), (e, t) => (k(), o("div",
|
|
612
|
+
}), (e, t) => (k(), o("div", mt, [n.value ? (k(), o("div", {
|
|
613
613
|
key: 0,
|
|
614
614
|
class: x(a.value),
|
|
615
615
|
style: C(c.value)
|
|
@@ -617,12 +617,12 @@ var Qe = {
|
|
|
617
617
|
src: u.value,
|
|
618
618
|
alt: "",
|
|
619
619
|
onError: t[0] ||= (e) => n.value = !1
|
|
620
|
-
}, null, 40,
|
|
620
|
+
}, null, 40, ht)], 6)) : (k(), o("div", {
|
|
621
621
|
key: 1,
|
|
622
622
|
class: x(a.value)
|
|
623
623
|
}, null, 2))]));
|
|
624
624
|
}
|
|
625
|
-
}),
|
|
625
|
+
}), _t = ["data-style", "data-shape"], vt = ["src", "alt"], yt = /* @__PURE__ */ d({
|
|
626
626
|
__name: "PvAvatar",
|
|
627
627
|
props: {
|
|
628
628
|
alt: { type: String },
|
|
@@ -658,34 +658,34 @@ var Qe = {
|
|
|
658
658
|
"data-testid": "pv-avatar",
|
|
659
659
|
"data-style": e.variant,
|
|
660
660
|
"data-shape": e.shape
|
|
661
|
-
}, [e.icon ? (k(), i(
|
|
661
|
+
}, [e.icon ? (k(), i(G, {
|
|
662
662
|
key: 0,
|
|
663
663
|
name: e.icon,
|
|
664
664
|
size: r[e.size]
|
|
665
|
-
}, null, 8, ["name", "size"])) : e.initials ? (k(), o(t, { key: 1 }, [l(
|
|
665
|
+
}, null, 8, ["name", "size"])) : e.initials ? (k(), o(t, { key: 1 }, [l(R(e.initials), 1)], 64)) : e.image ? (k(), o("img", {
|
|
666
666
|
key: 2,
|
|
667
667
|
src: e.image,
|
|
668
668
|
alt: e.alt ?? ""
|
|
669
|
-
}, null, 8,
|
|
669
|
+
}, null, 8, vt)) : a("v-if", !0)], 10, _t));
|
|
670
670
|
}
|
|
671
671
|
});
|
|
672
672
|
//#endregion
|
|
673
673
|
//#region src/composables/useSlotPresence.ts
|
|
674
|
-
function
|
|
674
|
+
function bt(e, t) {
|
|
675
675
|
if (e.nodeType !== Node.TEXT_NODE) return !1;
|
|
676
676
|
let n = e.textContent ?? "";
|
|
677
677
|
return t ? n.length > 0 : n.trim().length > 0;
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function xt(e, t, n) {
|
|
680
680
|
let r = t === "default" ? "" : t, i = Array.from(e.childNodes);
|
|
681
|
-
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") :
|
|
681
|
+
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") : bt(e, n)) : i.some((e) => e.nodeType === Node.ELEMENT_NODE ? e.getAttribute("slot") === r : !1);
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function St(e, t) {
|
|
684
684
|
let n = e.shadowRoot;
|
|
685
685
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
687
|
+
function Ct(e, t = {}) {
|
|
688
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Xe(), l = i ?? re(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = N(d());
|
|
689
689
|
T(() => {
|
|
690
690
|
f.value = d();
|
|
691
691
|
});
|
|
@@ -696,26 +696,26 @@ function wt(e, t = {}) {
|
|
|
696
696
|
p.value = !1;
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
|
-
let t =
|
|
699
|
+
let t = B(n);
|
|
700
700
|
if (!t) {
|
|
701
701
|
p.value = !1;
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
|
-
let r = o ?
|
|
704
|
+
let r = o ? St(t, e) : null;
|
|
705
705
|
if (r) {
|
|
706
|
-
p.value = r.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
706
|
+
p.value = r.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : bt(e, s));
|
|
707
707
|
return;
|
|
708
708
|
}
|
|
709
|
-
p.value =
|
|
709
|
+
p.value = xt(t, e, s);
|
|
710
710
|
}, v = () => {
|
|
711
711
|
if (!c.value) return;
|
|
712
712
|
g();
|
|
713
|
-
let t =
|
|
713
|
+
let t = B(n);
|
|
714
714
|
if (!t) {
|
|
715
715
|
p.value = !1;
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
_(), o && (h =
|
|
718
|
+
_(), o && (h = St(t, e), h && h.addEventListener("slotchange", _)), a && (m = new MutationObserver(() => _()), m.observe(t, {
|
|
719
719
|
childList: !0,
|
|
720
720
|
subtree: !1,
|
|
721
721
|
attributes: !0,
|
|
@@ -723,7 +723,7 @@ function wt(e, t = {}) {
|
|
|
723
723
|
characterData: !0
|
|
724
724
|
}));
|
|
725
725
|
};
|
|
726
|
-
return E(v), w(g),
|
|
726
|
+
return E(v), w(g), H(() => B(n), () => {
|
|
727
727
|
c.value && v();
|
|
728
728
|
}), {
|
|
729
729
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -734,12 +734,12 @@ function wt(e, t = {}) {
|
|
|
734
734
|
}
|
|
735
735
|
//#endregion
|
|
736
736
|
//#region src/components/base/PvTooltip/PvTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
737
|
-
var
|
|
737
|
+
var wt = [
|
|
738
738
|
"data-position",
|
|
739
739
|
"data-style",
|
|
740
740
|
"data-static",
|
|
741
741
|
"aria-labelledby"
|
|
742
|
-
],
|
|
742
|
+
], Tt = ["id"], Et = /* @__PURE__ */ d({
|
|
743
743
|
__name: "PvTooltip",
|
|
744
744
|
props: {
|
|
745
745
|
variant: {
|
|
@@ -768,30 +768,30 @@ var Tt = [
|
|
|
768
768
|
}
|
|
769
769
|
},
|
|
770
770
|
setup(e) {
|
|
771
|
-
let { present: t } =
|
|
771
|
+
let { present: t } = Ct("tooltip-content");
|
|
772
772
|
return (n, r) => (k(), o("div", {
|
|
773
773
|
"data-testid": "pv-tooltip",
|
|
774
774
|
class: x([{
|
|
775
|
-
"pv-tooltip":
|
|
776
|
-
"pv-tooltip-small":
|
|
775
|
+
"pv-tooltip": B(t),
|
|
776
|
+
"pv-tooltip-small": B(t) && e.size === "sm"
|
|
777
777
|
}]),
|
|
778
778
|
"data-position": e.tooltipPosition,
|
|
779
779
|
"data-style": e.variant === "white" ? "white" : "dark",
|
|
780
780
|
"data-static": e.disableInteractive ? !0 : void 0,
|
|
781
|
-
"aria-labelledby":
|
|
782
|
-
}, [P(n.$slots, "label"),
|
|
781
|
+
"aria-labelledby": B(t) ? e.ariaLabelledBy : void 0
|
|
782
|
+
}, [P(n.$slots, "label"), B(t) ? (k(), o("div", {
|
|
783
783
|
key: 0,
|
|
784
784
|
role: "tooltip",
|
|
785
785
|
id: e.ariaLabelledBy,
|
|
786
786
|
"data-testid": "pv-tooltip-content"
|
|
787
|
-
}, [P(n.$slots, "tooltip-content")], 8,
|
|
787
|
+
}, [P(n.$slots, "tooltip-content")], 8, Tt)) : a("v-if", !0)], 10, wt));
|
|
788
788
|
}
|
|
789
|
-
}),
|
|
789
|
+
}), Dt = ["disabled"], Ot = { class: "pv-flex pv-select-button-trigger-content" }, kt = {
|
|
790
790
|
key: 0,
|
|
791
791
|
"data-testid": "pv-select-prefix-label",
|
|
792
792
|
class: "pv-border-right pv-text-quaternary",
|
|
793
793
|
style: { "padding-right": "4px" }
|
|
794
|
-
},
|
|
794
|
+
}, At = ["title"], jt = /* @__PURE__ */ nt(/* @__PURE__ */ d({
|
|
795
795
|
__name: "PvSelectButtonTrigger",
|
|
796
796
|
props: {
|
|
797
797
|
avatar: { type: Object },
|
|
@@ -836,8 +836,8 @@ var Tt = [
|
|
|
836
836
|
"pv-space-between",
|
|
837
837
|
"pv-full-width"
|
|
838
838
|
];
|
|
839
|
-
n.inverse &&
|
|
840
|
-
let t =
|
|
839
|
+
n.inverse && qe.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
840
|
+
let t = Ye(n.size);
|
|
841
841
|
return t && e.push(t), e;
|
|
842
842
|
}), d = r(() => n.isLoading ? "Loading..." : n.selectedItems && n.selectedItems.length > 0 && n.counterStyle === "secondary" ? n.selectedItems[0].text : n.label), f = r(() => {
|
|
843
843
|
if (n.selectedOption) return {
|
|
@@ -853,27 +853,27 @@ var Tt = [
|
|
|
853
853
|
style: { "--flex-gap": "0.25rem" },
|
|
854
854
|
disabled: e.disabled || e.isLoading
|
|
855
855
|
}, [
|
|
856
|
-
s("div",
|
|
857
|
-
e.prefixLabel ? (k(), o("p",
|
|
858
|
-
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (k(), i(
|
|
856
|
+
s("div", Ot, [
|
|
857
|
+
e.prefixLabel ? (k(), o("p", kt, R(e.prefixLabel), 1)) : a("v-if", !0),
|
|
858
|
+
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (k(), i(rt, {
|
|
859
859
|
key: 1,
|
|
860
860
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
861
861
|
value: e.counterValue,
|
|
862
862
|
variant: e.counterBadgeVariant,
|
|
863
863
|
size: "sm"
|
|
864
864
|
}, null, 8, ["value", "variant"])) : a("v-if", !0),
|
|
865
|
-
!e.isLoading && e.renderer && f.value ? (k(), i(
|
|
866
|
-
e.icon ? (k(), i(
|
|
865
|
+
!e.isLoading && e.renderer && f.value ? (k(), i(I(e.renderer), S(y({ key: 2 }, f.value)), null, 16)) : (k(), o(t, { key: 3 }, [
|
|
866
|
+
e.icon ? (k(), i(G, {
|
|
867
867
|
key: 0,
|
|
868
868
|
"data-testid": "pv-multi-select-button-icon",
|
|
869
869
|
name: e.icon
|
|
870
870
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
871
|
-
e.companyLogo ? (k(), i(
|
|
871
|
+
e.companyLogo ? (k(), i(gt, {
|
|
872
872
|
key: 1,
|
|
873
873
|
name: e.companyLogo,
|
|
874
874
|
size: "sm"
|
|
875
875
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
876
|
-
e.avatar ? (k(), i(
|
|
876
|
+
e.avatar ? (k(), i(yt, {
|
|
877
877
|
key: 2,
|
|
878
878
|
class: "pv-select-button-trigger-avatar",
|
|
879
879
|
"data-testid": "pv-multi-select-button-avatar",
|
|
@@ -892,16 +892,16 @@ var Tt = [
|
|
|
892
892
|
key: 3,
|
|
893
893
|
class: "pv-truncate pv-select-button-trigger-label",
|
|
894
894
|
title: d.value
|
|
895
|
-
},
|
|
895
|
+
}, R(d.value), 9, At)) : a("v-if", !0)
|
|
896
896
|
], 64)),
|
|
897
|
-
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (k(), i(
|
|
897
|
+
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (k(), i(rt, {
|
|
898
898
|
key: 4,
|
|
899
899
|
"data-testid": "pv-multi-select-right-counter-badge",
|
|
900
900
|
value: e.counterValue,
|
|
901
901
|
variant: e.counterBadgeVariant,
|
|
902
902
|
size: "sm"
|
|
903
903
|
}, null, 8, ["value", "variant"])) : a("v-if", !0),
|
|
904
|
-
e.counterStyle === "secondary" && (e.counterValue ?? 0) >= 2 ? (k(), i(
|
|
904
|
+
e.counterStyle === "secondary" && (e.counterValue ?? 0) >= 2 ? (k(), i(rt, {
|
|
905
905
|
key: 5,
|
|
906
906
|
"data-testid": "pv-multi-select-secondary-counter-badge",
|
|
907
907
|
prefix: "+",
|
|
@@ -910,43 +910,43 @@ var Tt = [
|
|
|
910
910
|
size: "sm"
|
|
911
911
|
}, null, 8, ["value"])) : a("v-if", !0)
|
|
912
912
|
]),
|
|
913
|
-
e.showDropdown ? (k(), i(
|
|
913
|
+
e.showDropdown ? (k(), i(G, {
|
|
914
914
|
key: 0,
|
|
915
915
|
name: e.open ? "chevron-up" : "chevron-down"
|
|
916
916
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
917
|
-
e.showClear ? (k(), i(
|
|
917
|
+
e.showClear ? (k(), i(Et, {
|
|
918
918
|
key: 1,
|
|
919
919
|
size: "sm",
|
|
920
920
|
variant: "dark",
|
|
921
921
|
"tooltip-position": "top-left"
|
|
922
922
|
}, {
|
|
923
|
-
label:
|
|
923
|
+
label: U(() => [u(G, {
|
|
924
924
|
name: "close",
|
|
925
|
-
onClick: r[0] ||=
|
|
925
|
+
onClick: r[0] ||= le((e) => n.$emit("handle-clear"), ["stop"])
|
|
926
926
|
})]),
|
|
927
|
-
"tooltip-content":
|
|
927
|
+
"tooltip-content": U(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
928
928
|
_: 1
|
|
929
929
|
})) : a("v-if", !0)
|
|
930
|
-
], 10,
|
|
930
|
+
], 10, Dt));
|
|
931
931
|
}
|
|
932
|
-
}), [["styles", [".pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}"]], ["__scopeId", "data-v-5b922a5f"]]),
|
|
933
|
-
function
|
|
934
|
-
return k(), o("div",
|
|
932
|
+
}), [["styles", [".pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}"]], ["__scopeId", "data-v-5b922a5f"]]), Mt = {}, Nt = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
|
|
933
|
+
function Pt(e, t) {
|
|
934
|
+
return k(), o("div", Nt, "No Results Found");
|
|
935
935
|
}
|
|
936
|
-
var
|
|
936
|
+
var Ft = /* @__PURE__ */ nt(Mt, [["render", Pt]]);
|
|
937
937
|
//#endregion
|
|
938
938
|
//#region src/components/base/PvMenu/cascadeUtils.ts
|
|
939
|
-
function
|
|
939
|
+
function It(e) {
|
|
940
940
|
return !!e.children?.length || (e.totalChildCount ?? 0) > 0;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
943
|
-
return e.flatMap((e) => e.children?.length ?
|
|
942
|
+
function Lt(e) {
|
|
943
|
+
return e.flatMap((e) => e.children?.length ? Lt(e.children) : (e.totalChildCount ?? 0) > 0 ? [] : [e]);
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Rt(e, t) {
|
|
946
946
|
let n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
947
947
|
return r.length > 0 ? [...e, ...r] : e;
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function zt(e, t) {
|
|
950
950
|
let n = (e) => {
|
|
951
951
|
let r = 0, i = 0, a = 0;
|
|
952
952
|
for (let o of e) if (o.children?.length) {
|
|
@@ -961,14 +961,14 @@ function Bt(e, t) {
|
|
|
961
961
|
};
|
|
962
962
|
return n(e).displayCount;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Bt(e) {
|
|
965
965
|
return e.filter((e) => e.state === "selected").length;
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function Vt(e, t, n = !0) {
|
|
968
968
|
return e.flatMap((e) => {
|
|
969
969
|
if (e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)) return [e];
|
|
970
970
|
if (e.children?.length) {
|
|
971
|
-
let r =
|
|
971
|
+
let r = Vt(e.children, t, n);
|
|
972
972
|
if (r.length) return n ? [{
|
|
973
973
|
...e,
|
|
974
974
|
children: r
|
|
@@ -979,16 +979,16 @@ function Ht(e, t, n = !0) {
|
|
|
979
979
|
}
|
|
980
980
|
//#endregion
|
|
981
981
|
//#region src/components/base/PvMenu/items/PvMenuBaseItem.vue?vue&type=script&setup=true&lang.ts
|
|
982
|
-
var
|
|
982
|
+
var Ht = {
|
|
983
983
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
984
984
|
style: {
|
|
985
985
|
"align-items": "flex-start",
|
|
986
986
|
"--flex-gap": "0"
|
|
987
987
|
}
|
|
988
|
-
},
|
|
988
|
+
}, Ut = ["title"], Wt = ["title"], Gt = {
|
|
989
989
|
key: 4,
|
|
990
990
|
class: "pv-text-subdued pv-text-body-md"
|
|
991
|
-
},
|
|
991
|
+
}, Kt = /* @__PURE__ */ d({
|
|
992
992
|
inheritAttrs: !1,
|
|
993
993
|
__name: "PvMenuBaseItem",
|
|
994
994
|
props: {
|
|
@@ -1027,10 +1027,10 @@ var Ut = {
|
|
|
1027
1027
|
};
|
|
1028
1028
|
return E(() => {
|
|
1029
1029
|
p();
|
|
1030
|
-
}),
|
|
1030
|
+
}), H(() => n.queryText, () => {
|
|
1031
1031
|
p();
|
|
1032
1032
|
}), (n, r) => (k(), o(t, null, [
|
|
1033
|
-
e.avatar ? (k(), i(
|
|
1033
|
+
e.avatar ? (k(), i(yt, {
|
|
1034
1034
|
key: 0,
|
|
1035
1035
|
initials: e.avatar.initials,
|
|
1036
1036
|
image: e.avatar.image,
|
|
@@ -1043,27 +1043,27 @@ var Ut = {
|
|
|
1043
1043
|
"variant",
|
|
1044
1044
|
"shape"
|
|
1045
1045
|
])) : a("v-if", !0),
|
|
1046
|
-
e.icon ? (k(), i(
|
|
1046
|
+
e.icon ? (k(), i(G, {
|
|
1047
1047
|
key: 1,
|
|
1048
1048
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
1049
1049
|
name: e.icon
|
|
1050
1050
|
}, null, 8, ["class", "name"])) : a("v-if", !0),
|
|
1051
|
-
e.companyName ? (k(), i(
|
|
1051
|
+
e.companyName ? (k(), i(gt, {
|
|
1052
1052
|
key: 2,
|
|
1053
1053
|
name: e.companyName,
|
|
1054
1054
|
size: "sm"
|
|
1055
1055
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
1056
|
-
s("div",
|
|
1056
|
+
s("div", Ht, [s("span", {
|
|
1057
1057
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
1058
1058
|
title: e.hoverTitle ?? e.text
|
|
1059
1059
|
}, [s("span", {
|
|
1060
1060
|
ref_key: "mainText",
|
|
1061
1061
|
ref: c
|
|
1062
|
-
},
|
|
1062
|
+
}, R(e.text), 513), e.subduedText ? (k(), o("span", {
|
|
1063
1063
|
key: 0,
|
|
1064
1064
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
1065
1065
|
style: { "padding-left": "4px" }
|
|
1066
|
-
},
|
|
1066
|
+
}, R(e.subduedText), 3)) : a("v-if", !0)], 8, Ut), u.value ? (k(), o("span", {
|
|
1067
1067
|
key: 0,
|
|
1068
1068
|
ref_key: "subText",
|
|
1069
1069
|
ref: l,
|
|
@@ -1074,19 +1074,19 @@ var Ut = {
|
|
|
1074
1074
|
{ "pv-text-subdued": !e.disabled }
|
|
1075
1075
|
]),
|
|
1076
1076
|
title: e.hoverTitle ?? u.value
|
|
1077
|
-
},
|
|
1078
|
-
e.secondaryText && typeof e.secondaryText == "number" ? (k(), i(
|
|
1077
|
+
}, R(u.value), 11, Wt)) : a("v-if", !0)]),
|
|
1078
|
+
e.secondaryText && typeof e.secondaryText == "number" ? (k(), i(rt, {
|
|
1079
1079
|
key: 3,
|
|
1080
1080
|
value: e.secondaryText,
|
|
1081
1081
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
1082
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (k(), o("span",
|
|
1082
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (k(), o("span", Gt, R(e.secondaryText), 1)) : a("v-if", !0)
|
|
1083
1083
|
], 64));
|
|
1084
1084
|
}
|
|
1085
|
-
}),
|
|
1085
|
+
}), qt = ["for"], Jt = { key: 0 }, Yt = [
|
|
1086
1086
|
"disabled",
|
|
1087
1087
|
"aria-label",
|
|
1088
1088
|
"id"
|
|
1089
|
-
],
|
|
1089
|
+
], Xt = /* @__PURE__ */ nt(/* @__PURE__ */ d({
|
|
1090
1090
|
__name: "PvSwitch",
|
|
1091
1091
|
props: /* @__PURE__ */ v({
|
|
1092
1092
|
size: {
|
|
@@ -1113,89 +1113,89 @@ var Ut = {
|
|
|
1113
1113
|
}),
|
|
1114
1114
|
emits: ["update:modelValue"],
|
|
1115
1115
|
setup(e) {
|
|
1116
|
-
let t = e.id ??
|
|
1116
|
+
let t = e.id ?? te(), n = ne(e, "modelValue");
|
|
1117
1117
|
return (r, i) => (k(), o("label", {
|
|
1118
|
-
for:
|
|
1118
|
+
for: B(t),
|
|
1119
1119
|
class: x(["pv-label pv-switch pv-label-hover", {
|
|
1120
1120
|
"pv-input-small": e.size === "md",
|
|
1121
1121
|
"pv-input-xsmall": e.size === "sm",
|
|
1122
1122
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
1123
1123
|
}])
|
|
1124
|
-
}, [e.label ? (k(), o("span",
|
|
1124
|
+
}, [e.label ? (k(), o("span", Jt, R(e.label), 1)) : a("v-if", !0), ce(s("input", {
|
|
1125
1125
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1126
1126
|
disabled: e.disabled,
|
|
1127
1127
|
"aria-label": e.ariaLabel,
|
|
1128
1128
|
type: "checkbox",
|
|
1129
1129
|
role: "switch",
|
|
1130
|
-
id:
|
|
1131
|
-
}, null, 8,
|
|
1130
|
+
id: B(t)
|
|
1131
|
+
}, null, 8, Yt), [[V, n.value]])], 10, qt));
|
|
1132
1132
|
}
|
|
1133
|
-
}), [["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"]]),
|
|
1133
|
+
}), [["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"]]), Zt = Math.min, Qt = Math.max, $t = Math.round, en = (e) => ({
|
|
1134
1134
|
x: e,
|
|
1135
1135
|
y: e
|
|
1136
|
-
}),
|
|
1136
|
+
}), tn = {
|
|
1137
1137
|
left: "right",
|
|
1138
1138
|
right: "left",
|
|
1139
1139
|
bottom: "top",
|
|
1140
1140
|
top: "bottom"
|
|
1141
1141
|
};
|
|
1142
|
-
function
|
|
1142
|
+
function nn(e, t) {
|
|
1143
1143
|
return typeof e == "function" ? e(t) : e;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function rn(e) {
|
|
1146
1146
|
return e.split("-")[0];
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function an(e) {
|
|
1149
1149
|
return e.split("-")[1];
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function on(e) {
|
|
1152
1152
|
return e === "x" ? "y" : "x";
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function sn(e) {
|
|
1155
1155
|
return e === "y" ? "height" : "width";
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function cn(e) {
|
|
1158
1158
|
let t = e[0];
|
|
1159
1159
|
return t === "t" || t === "b" ? "y" : "x";
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1162
|
-
return
|
|
1161
|
+
function ln(e) {
|
|
1162
|
+
return on(cn(e));
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function un(e, t, n) {
|
|
1165
1165
|
n === void 0 && (n = !1);
|
|
1166
|
-
let r =
|
|
1167
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
1166
|
+
let r = an(e), i = ln(e), a = sn(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1167
|
+
return t.reference[a] > t.floating[a] && (o = yn(o)), [o, yn(o)];
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1170
|
-
let t =
|
|
1169
|
+
function dn(e) {
|
|
1170
|
+
let t = yn(e);
|
|
1171
1171
|
return [
|
|
1172
|
-
|
|
1172
|
+
fn(e),
|
|
1173
1173
|
t,
|
|
1174
|
-
|
|
1174
|
+
fn(t)
|
|
1175
1175
|
];
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function fn(e) {
|
|
1178
1178
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
1179
1179
|
}
|
|
1180
|
-
var
|
|
1181
|
-
function
|
|
1180
|
+
var pn = ["left", "right"], mn = ["right", "left"], hn = ["top", "bottom"], gn = ["bottom", "top"];
|
|
1181
|
+
function _n(e, t, n) {
|
|
1182
1182
|
switch (e) {
|
|
1183
1183
|
case "top":
|
|
1184
|
-
case "bottom": return n ? t ?
|
|
1184
|
+
case "bottom": return n ? t ? mn : pn : t ? pn : mn;
|
|
1185
1185
|
case "left":
|
|
1186
|
-
case "right": return t ?
|
|
1186
|
+
case "right": return t ? hn : gn;
|
|
1187
1187
|
default: return [];
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1191
|
-
let i =
|
|
1192
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
1190
|
+
function vn(e, t, n, r) {
|
|
1191
|
+
let i = an(e), a = _n(rn(e), n === "start", r);
|
|
1192
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(fn)))), a;
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1195
|
-
let t =
|
|
1196
|
-
return
|
|
1194
|
+
function yn(e) {
|
|
1195
|
+
let t = rn(e);
|
|
1196
|
+
return tn[t] + e.slice(t.length);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function bn(e) {
|
|
1199
1199
|
return {
|
|
1200
1200
|
top: 0,
|
|
1201
1201
|
right: 0,
|
|
@@ -1204,15 +1204,15 @@ function xn(e) {
|
|
|
1204
1204
|
...e
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function xn(e) {
|
|
1208
1208
|
return typeof e == "number" ? {
|
|
1209
1209
|
top: e,
|
|
1210
1210
|
right: e,
|
|
1211
1211
|
bottom: e,
|
|
1212
1212
|
left: e
|
|
1213
|
-
} :
|
|
1213
|
+
} : bn(e);
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Sn(e) {
|
|
1216
1216
|
let { x: t, y: n, width: r, height: i } = e;
|
|
1217
1217
|
return {
|
|
1218
1218
|
width: r,
|
|
@@ -1227,8 +1227,8 @@ function Cn(e) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
//#endregion
|
|
1229
1229
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
1230
|
-
function
|
|
1231
|
-
let { reference: r, floating: i } = e, a =
|
|
1230
|
+
function Cn(e, t, n) {
|
|
1231
|
+
let { reference: r, floating: i } = e, a = cn(t), o = ln(t), s = sn(o), c = rn(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
1232
1232
|
switch (c) {
|
|
1233
1233
|
case "top":
|
|
1234
1234
|
p = {
|
|
@@ -1259,7 +1259,7 @@ function wn(e, t, n) {
|
|
|
1259
1259
|
y: r.y
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
|
-
switch (
|
|
1262
|
+
switch (an(t)) {
|
|
1263
1263
|
case "start":
|
|
1264
1264
|
p[o] -= f * (n && l ? -1 : 1);
|
|
1265
1265
|
break;
|
|
@@ -1269,9 +1269,9 @@ function wn(e, t, n) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
return p;
|
|
1271
1271
|
}
|
|
1272
|
-
async function
|
|
1272
|
+
async function wn(e, t) {
|
|
1273
1273
|
t === void 0 && (t = {});
|
|
1274
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
1274
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = nn(t, e), p = xn(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Sn(await i.getClippingRect({
|
|
1275
1275
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
1276
1276
|
boundary: c,
|
|
1277
1277
|
rootBoundary: l,
|
|
@@ -1284,7 +1284,7 @@ async function Tn(e, t) {
|
|
|
1284
1284
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
1285
1285
|
x: 1,
|
|
1286
1286
|
y: 1
|
|
1287
|
-
}, y =
|
|
1287
|
+
}, y = Sn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1288
1288
|
elements: o,
|
|
1289
1289
|
rect: g,
|
|
1290
1290
|
offsetParent: _,
|
|
@@ -1297,15 +1297,15 @@ async function Tn(e, t) {
|
|
|
1297
1297
|
right: (y.right - h.right + p.right) / v.x
|
|
1298
1298
|
};
|
|
1299
1299
|
}
|
|
1300
|
-
var
|
|
1300
|
+
var Tn = 50, En = async (e, t, n) => {
|
|
1301
1301
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
1302
1302
|
...o,
|
|
1303
|
-
detectOverflow:
|
|
1303
|
+
detectOverflow: wn
|
|
1304
1304
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
1305
1305
|
reference: e,
|
|
1306
1306
|
floating: t,
|
|
1307
1307
|
strategy: i
|
|
1308
|
-
}), { x: u, y: d } =
|
|
1308
|
+
}), { x: u, y: d } = Cn(l, r, c), f = r, p = 0, m = {};
|
|
1309
1309
|
for (let n = 0; n < a.length; n++) {
|
|
1310
1310
|
let h = a[n];
|
|
1311
1311
|
if (!h) continue;
|
|
@@ -1326,11 +1326,11 @@ var En = 50, Dn = async (e, t, n) => {
|
|
|
1326
1326
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
1327
1327
|
...m[g],
|
|
1328
1328
|
...b
|
|
1329
|
-
}, x && p <
|
|
1329
|
+
}, x && p < Tn && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
1330
1330
|
reference: e,
|
|
1331
1331
|
floating: t,
|
|
1332
1332
|
strategy: i
|
|
1333
|
-
}) : x.rects), {x: u, y: d} =
|
|
1333
|
+
}) : x.rects), {x: u, y: d} = Cn(l, f, c)), n = -1);
|
|
1334
1334
|
}
|
|
1335
1335
|
return {
|
|
1336
1336
|
x: u,
|
|
@@ -1339,19 +1339,19 @@ var En = 50, Dn = async (e, t, n) => {
|
|
|
1339
1339
|
strategy: i,
|
|
1340
1340
|
middlewareData: m
|
|
1341
1341
|
};
|
|
1342
|
-
},
|
|
1342
|
+
}, Dn = function(e) {
|
|
1343
1343
|
return e === void 0 && (e = {}), {
|
|
1344
1344
|
name: "flip",
|
|
1345
1345
|
options: e,
|
|
1346
1346
|
async fn(t) {
|
|
1347
1347
|
var n;
|
|
1348
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
1348
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = nn(e, t);
|
|
1349
1349
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
1350
|
-
let g =
|
|
1351
|
-
!d && x && b.push(...
|
|
1350
|
+
let g = rn(r), _ = cn(o), v = rn(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [yn(o)] : dn(o)), x = p !== "none";
|
|
1351
|
+
!d && x && b.push(...vn(o, m, p, y));
|
|
1352
1352
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
1353
1353
|
if (l && w.push(C[g]), u) {
|
|
1354
|
-
let e =
|
|
1354
|
+
let e = un(r, a, y);
|
|
1355
1355
|
w.push(C[e[0]], C[e[1]]);
|
|
1356
1356
|
}
|
|
1357
1357
|
if (T = [...T, {
|
|
@@ -1359,7 +1359,7 @@ var En = 50, Dn = async (e, t, n) => {
|
|
|
1359
1359
|
overflows: w
|
|
1360
1360
|
}], !w.every((e) => e <= 0)) {
|
|
1361
1361
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
1362
|
-
if (t && (!(u === "alignment" && _ !==
|
|
1362
|
+
if (t && (!(u === "alignment" && _ !== cn(t)) || T.every((e) => cn(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
1363
1363
|
data: {
|
|
1364
1364
|
index: e,
|
|
1365
1365
|
overflows: T
|
|
@@ -1371,7 +1371,7 @@ var En = 50, Dn = async (e, t, n) => {
|
|
|
1371
1371
|
case "bestFit": {
|
|
1372
1372
|
let e = T.filter((e) => {
|
|
1373
1373
|
if (x) {
|
|
1374
|
-
let t =
|
|
1374
|
+
let t = cn(e.placement);
|
|
1375
1375
|
return t === _ || t === "y";
|
|
1376
1376
|
}
|
|
1377
1377
|
return !0;
|
|
@@ -1388,9 +1388,9 @@ var En = 50, Dn = async (e, t, n) => {
|
|
|
1388
1388
|
return {};
|
|
1389
1389
|
}
|
|
1390
1390
|
};
|
|
1391
|
-
},
|
|
1392
|
-
async function
|
|
1393
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
1391
|
+
}, On = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1392
|
+
async function kn(e, t) {
|
|
1393
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = rn(n), s = an(n), c = cn(n) === "y", l = On.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = nn(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
1394
1394
|
mainAxis: d,
|
|
1395
1395
|
crossAxis: 0,
|
|
1396
1396
|
alignmentAxis: null
|
|
@@ -1407,13 +1407,13 @@ async function An(e, t) {
|
|
|
1407
1407
|
y: p * u
|
|
1408
1408
|
};
|
|
1409
1409
|
}
|
|
1410
|
-
var
|
|
1410
|
+
var An = function(e) {
|
|
1411
1411
|
return e === void 0 && (e = 0), {
|
|
1412
1412
|
name: "offset",
|
|
1413
1413
|
options: e,
|
|
1414
1414
|
async fn(t) {
|
|
1415
1415
|
var n;
|
|
1416
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
1416
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await kn(t, e);
|
|
1417
1417
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
1418
1418
|
x: r + s.x,
|
|
1419
1419
|
y: i + s.y,
|
|
@@ -1427,37 +1427,37 @@ var jn = function(e) {
|
|
|
1427
1427
|
};
|
|
1428
1428
|
//#endregion
|
|
1429
1429
|
//#region ../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
1430
|
-
function
|
|
1430
|
+
function jn() {
|
|
1431
1431
|
return typeof window < "u";
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1434
|
-
return
|
|
1433
|
+
function Mn(e) {
|
|
1434
|
+
return Pn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function K(e) {
|
|
1437
1437
|
var t;
|
|
1438
1438
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1439
1439
|
}
|
|
1440
|
+
function Nn(e) {
|
|
1441
|
+
return ((Pn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
1442
|
+
}
|
|
1440
1443
|
function Pn(e) {
|
|
1441
|
-
return (
|
|
1444
|
+
return jn() ? e instanceof Node || e instanceof K(e).Node : !1;
|
|
1442
1445
|
}
|
|
1443
1446
|
function Fn(e) {
|
|
1444
|
-
return
|
|
1445
|
-
}
|
|
1446
|
-
function K(e) {
|
|
1447
|
-
return Mn() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
1447
|
+
return jn() ? e instanceof Element || e instanceof K(e).Element : !1;
|
|
1448
1448
|
}
|
|
1449
1449
|
function In(e) {
|
|
1450
|
-
return
|
|
1450
|
+
return jn() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
|
|
1451
1451
|
}
|
|
1452
1452
|
function Ln(e) {
|
|
1453
|
-
return !
|
|
1453
|
+
return !jn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
|
|
1454
1454
|
}
|
|
1455
1455
|
function Rn(e) {
|
|
1456
1456
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = q(e);
|
|
1457
1457
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
1458
1458
|
}
|
|
1459
1459
|
function zn(e) {
|
|
1460
|
-
return /^(table|td|th)$/.test(
|
|
1460
|
+
return /^(table|td|th)$/.test(Mn(e));
|
|
1461
1461
|
}
|
|
1462
1462
|
function Bn(e) {
|
|
1463
1463
|
try {
|
|
@@ -1471,7 +1471,7 @@ function Bn(e) {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
var Vn = /transform|translate|scale|rotate|perspective|filter/, Hn = /paint|layout|strict|content/, Un = (e) => !!e && e !== "none", Wn;
|
|
1473
1473
|
function Gn(e) {
|
|
1474
|
-
let t =
|
|
1474
|
+
let t = Fn(e) ? q(e) : e;
|
|
1475
1475
|
return Un(t.transform) || Un(t.translate) || Un(t.scale) || Un(t.rotate) || Un(t.perspective) || !qn() && (Un(t.backdropFilter) || Un(t.filter)) || Vn.test(t.willChange || "") || Hn.test(t.contain || "");
|
|
1476
1476
|
}
|
|
1477
1477
|
function Kn(e) {
|
|
@@ -1487,13 +1487,13 @@ function qn() {
|
|
|
1487
1487
|
return Wn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Wn;
|
|
1488
1488
|
}
|
|
1489
1489
|
function Jn(e) {
|
|
1490
|
-
return /^(html|body|#document)$/.test(
|
|
1490
|
+
return /^(html|body|#document)$/.test(Mn(e));
|
|
1491
1491
|
}
|
|
1492
1492
|
function q(e) {
|
|
1493
|
-
return
|
|
1493
|
+
return K(e).getComputedStyle(e);
|
|
1494
1494
|
}
|
|
1495
1495
|
function Yn(e) {
|
|
1496
|
-
return
|
|
1496
|
+
return Fn(e) ? {
|
|
1497
1497
|
scrollLeft: e.scrollLeft,
|
|
1498
1498
|
scrollTop: e.scrollTop
|
|
1499
1499
|
} : {
|
|
@@ -1502,8 +1502,8 @@ function Yn(e) {
|
|
|
1502
1502
|
};
|
|
1503
1503
|
}
|
|
1504
1504
|
function Xn(e) {
|
|
1505
|
-
if (
|
|
1506
|
-
let t = e.assignedSlot || e.parentNode || Ln(e) && e.host ||
|
|
1505
|
+
if (Mn(e) === "html") return e;
|
|
1506
|
+
let t = e.assignedSlot || e.parentNode || Ln(e) && e.host || Nn(e);
|
|
1507
1507
|
return Ln(t) ? t.host : t;
|
|
1508
1508
|
}
|
|
1509
1509
|
function Zn(e) {
|
|
@@ -1512,7 +1512,7 @@ function Zn(e) {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
function Qn(e, t, n) {
|
|
1514
1514
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1515
|
-
let r = Zn(e), i = r === e.ownerDocument?.body, a =
|
|
1515
|
+
let r = Zn(e), i = r === e.ownerDocument?.body, a = K(r);
|
|
1516
1516
|
if (i) {
|
|
1517
1517
|
let e = $n(a);
|
|
1518
1518
|
return t.concat(a, a.visualViewport || [], Rn(r) ? r : [], e && n ? Qn(e) : []);
|
|
@@ -1524,7 +1524,7 @@ function $n(e) {
|
|
|
1524
1524
|
//#endregion
|
|
1525
1525
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1526
1526
|
function er(e) {
|
|
1527
|
-
let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = In(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
1527
|
+
let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = In(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = $t(n) !== a || $t(r) !== o;
|
|
1528
1528
|
return s && (n = a, r = o), {
|
|
1529
1529
|
width: n,
|
|
1530
1530
|
height: r,
|
|
@@ -1532,41 +1532,41 @@ function er(e) {
|
|
|
1532
1532
|
};
|
|
1533
1533
|
}
|
|
1534
1534
|
function tr(e) {
|
|
1535
|
-
return
|
|
1535
|
+
return Fn(e) ? e : e.contextElement;
|
|
1536
1536
|
}
|
|
1537
1537
|
function nr(e) {
|
|
1538
1538
|
let t = tr(e);
|
|
1539
|
-
if (!In(t)) return
|
|
1540
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = er(t), o = (a ?
|
|
1539
|
+
if (!In(t)) return en(1);
|
|
1540
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = er(t), o = (a ? $t(n.width) : n.width) / r, s = (a ? $t(n.height) : n.height) / i;
|
|
1541
1541
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
1542
1542
|
x: o,
|
|
1543
1543
|
y: s
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
1546
|
-
var rr = /* @__PURE__ */
|
|
1546
|
+
var rr = /* @__PURE__ */ en(0);
|
|
1547
1547
|
function ir(e) {
|
|
1548
|
-
let t =
|
|
1548
|
+
let t = K(e);
|
|
1549
1549
|
return !qn() || !t.visualViewport ? rr : {
|
|
1550
1550
|
x: t.visualViewport.offsetLeft,
|
|
1551
1551
|
y: t.visualViewport.offsetTop
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
1554
|
function ar(e, t, n) {
|
|
1555
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1555
|
+
return t === void 0 && (t = !1), !n || t && n !== K(e) ? !1 : t;
|
|
1556
1556
|
}
|
|
1557
1557
|
function or(e, t, n, r) {
|
|
1558
1558
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1559
|
-
let i = e.getBoundingClientRect(), a = tr(e), o =
|
|
1560
|
-
t && (r ?
|
|
1561
|
-
let s = ar(a, n, r) ? ir(a) :
|
|
1559
|
+
let i = e.getBoundingClientRect(), a = tr(e), o = en(1);
|
|
1560
|
+
t && (r ? Fn(r) && (o = nr(r)) : o = nr(e));
|
|
1561
|
+
let s = ar(a, n, r) ? ir(a) : en(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
1562
1562
|
if (a) {
|
|
1563
|
-
let e =
|
|
1563
|
+
let e = K(a), t = r && Fn(r) ? K(r) : r, n = e, i = $n(n);
|
|
1564
1564
|
for (; i && r && t !== n;) {
|
|
1565
1565
|
let e = nr(i), t = i.getBoundingClientRect(), r = q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
1566
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
1566
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i = $n(n);
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
|
-
return
|
|
1569
|
+
return Sn({
|
|
1570
1570
|
width: u,
|
|
1571
1571
|
height: d,
|
|
1572
1572
|
x: c,
|
|
@@ -1575,7 +1575,7 @@ function or(e, t, n, r) {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
function sr(e, t) {
|
|
1577
1577
|
let n = Yn(e).scrollLeft;
|
|
1578
|
-
return t ? t.left + n : or(
|
|
1578
|
+
return t ? t.left + n : or(Nn(e)).left + n;
|
|
1579
1579
|
}
|
|
1580
1580
|
function cr(e, t) {
|
|
1581
1581
|
let n = e.getBoundingClientRect();
|
|
@@ -1585,17 +1585,17 @@ function cr(e, t) {
|
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
1587
|
function lr(e) {
|
|
1588
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
1588
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Nn(r), s = t ? Bn(t.floating) : !1;
|
|
1589
1589
|
if (r === o || s && a) return n;
|
|
1590
1590
|
let c = {
|
|
1591
1591
|
scrollLeft: 0,
|
|
1592
1592
|
scrollTop: 0
|
|
1593
|
-
}, l =
|
|
1594
|
-
if ((d || !d && !a) && ((
|
|
1593
|
+
}, l = en(1), u = en(0), d = In(r);
|
|
1594
|
+
if ((d || !d && !a) && ((Mn(r) !== "body" || Rn(o)) && (c = Yn(r)), d)) {
|
|
1595
1595
|
let e = or(r);
|
|
1596
1596
|
l = nr(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1597
1597
|
}
|
|
1598
|
-
let f = o && !d && !a ? cr(o, c) :
|
|
1598
|
+
let f = o && !d && !a ? cr(o, c) : en(0);
|
|
1599
1599
|
return {
|
|
1600
1600
|
width: n.width * l.x,
|
|
1601
1601
|
height: n.height * l.y,
|
|
@@ -1607,8 +1607,8 @@ function ur(e) {
|
|
|
1607
1607
|
return Array.from(e.getClientRects());
|
|
1608
1608
|
}
|
|
1609
1609
|
function dr(e) {
|
|
1610
|
-
let t =
|
|
1611
|
-
return q(r).direction === "rtl" && (o +=
|
|
1610
|
+
let t = Nn(e), n = Yn(e), r = e.ownerDocument.body, i = Qt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Qt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + sr(e), s = -n.scrollTop;
|
|
1611
|
+
return q(r).direction === "rtl" && (o += Qt(t.clientWidth, r.clientWidth) - i), {
|
|
1612
1612
|
width: i,
|
|
1613
1613
|
height: a,
|
|
1614
1614
|
x: o,
|
|
@@ -1617,7 +1617,7 @@ function dr(e) {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
var fr = 25;
|
|
1619
1619
|
function pr(e, t) {
|
|
1620
|
-
let n =
|
|
1620
|
+
let n = K(e), r = Nn(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
1621
1621
|
if (i) {
|
|
1622
1622
|
a = i.width, o = i.height;
|
|
1623
1623
|
let e = qn();
|
|
@@ -1636,7 +1636,7 @@ function pr(e, t) {
|
|
|
1636
1636
|
};
|
|
1637
1637
|
}
|
|
1638
1638
|
function mr(e, t) {
|
|
1639
|
-
let n = or(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = In(e) ? nr(e) :
|
|
1639
|
+
let n = or(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = In(e) ? nr(e) : en(1);
|
|
1640
1640
|
return {
|
|
1641
1641
|
width: e.clientWidth * a.x,
|
|
1642
1642
|
height: e.clientHeight * a.y,
|
|
@@ -1647,8 +1647,8 @@ function mr(e, t) {
|
|
|
1647
1647
|
function hr(e, t, n) {
|
|
1648
1648
|
let r;
|
|
1649
1649
|
if (t === "viewport") r = pr(e, n);
|
|
1650
|
-
else if (t === "document") r = dr(
|
|
1651
|
-
else if (
|
|
1650
|
+
else if (t === "document") r = dr(Nn(e));
|
|
1651
|
+
else if (Fn(t)) r = mr(t, n);
|
|
1652
1652
|
else {
|
|
1653
1653
|
let n = ir(e);
|
|
1654
1654
|
r = {
|
|
@@ -1658,17 +1658,17 @@ function hr(e, t, n) {
|
|
|
1658
1658
|
height: t.height
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
return
|
|
1661
|
+
return Sn(r);
|
|
1662
1662
|
}
|
|
1663
1663
|
function gr(e, t) {
|
|
1664
1664
|
let n = Xn(e);
|
|
1665
|
-
return n === t || !
|
|
1665
|
+
return n === t || !Fn(n) || Jn(n) ? !1 : q(n).position === "fixed" || gr(n, t);
|
|
1666
1666
|
}
|
|
1667
1667
|
function _r(e, t) {
|
|
1668
1668
|
let n = t.get(e);
|
|
1669
1669
|
if (n) return n;
|
|
1670
|
-
let r = Qn(e, [], !1).filter((e) =>
|
|
1671
|
-
for (;
|
|
1670
|
+
let r = Qn(e, [], !1).filter((e) => Fn(e) && Mn(e) !== "body"), i = null, a = q(e).position === "fixed", o = a ? Xn(e) : e;
|
|
1671
|
+
for (; Fn(o) && !Jn(o);) {
|
|
1672
1672
|
let t = q(o), n = Gn(o);
|
|
1673
1673
|
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Rn(o) && !n && gr(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Xn(o);
|
|
1674
1674
|
}
|
|
@@ -1678,7 +1678,7 @@ function vr(e) {
|
|
|
1678
1678
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Bn(t) ? [] : _r(t, this._c) : [].concat(n), r], o = hr(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
1679
1679
|
for (let e = 1; e < a.length; e++) {
|
|
1680
1680
|
let n = hr(t, a[e], i);
|
|
1681
|
-
s =
|
|
1681
|
+
s = Qt(n.top, s), c = Zt(n.right, c), l = Zt(n.bottom, l), u = Qt(n.left, u);
|
|
1682
1682
|
}
|
|
1683
1683
|
return {
|
|
1684
1684
|
width: c - u,
|
|
@@ -1695,19 +1695,19 @@ function yr(e) {
|
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
1697
|
function br(e, t, n) {
|
|
1698
|
-
let r = In(t), i =
|
|
1698
|
+
let r = In(t), i = Nn(t), a = n === "fixed", o = or(e, !0, a, t), s = {
|
|
1699
1699
|
scrollLeft: 0,
|
|
1700
1700
|
scrollTop: 0
|
|
1701
|
-
}, c =
|
|
1701
|
+
}, c = en(0);
|
|
1702
1702
|
function l() {
|
|
1703
1703
|
c.x = sr(i);
|
|
1704
1704
|
}
|
|
1705
|
-
if (r || !r && !a) if ((
|
|
1705
|
+
if (r || !r && !a) if ((Mn(t) !== "body" || Rn(i)) && (s = Yn(t)), r) {
|
|
1706
1706
|
let e = or(t, !0, a, t);
|
|
1707
1707
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1708
1708
|
} else i && l();
|
|
1709
1709
|
a && !r && i && l();
|
|
1710
|
-
let u = i && !r && !a ? cr(i, s) :
|
|
1710
|
+
let u = i && !r && !a ? cr(i, s) : en(0);
|
|
1711
1711
|
return {
|
|
1712
1712
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1713
1713
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -1722,15 +1722,15 @@ function Sr(e, t) {
|
|
|
1722
1722
|
if (!In(e) || q(e).position === "fixed") return null;
|
|
1723
1723
|
if (t) return t(e);
|
|
1724
1724
|
let n = e.offsetParent;
|
|
1725
|
-
return
|
|
1725
|
+
return Nn(e) === n && (n = n.ownerDocument.body), n;
|
|
1726
1726
|
}
|
|
1727
1727
|
function Cr(e, t) {
|
|
1728
|
-
let n =
|
|
1728
|
+
let n = K(e);
|
|
1729
1729
|
if (Bn(e)) return n;
|
|
1730
1730
|
if (!In(e)) {
|
|
1731
1731
|
let t = Xn(e);
|
|
1732
1732
|
for (; t && !Jn(t);) {
|
|
1733
|
-
if (
|
|
1733
|
+
if (Fn(t) && !xr(t)) return t;
|
|
1734
1734
|
t = Xn(t);
|
|
1735
1735
|
}
|
|
1736
1736
|
return n;
|
|
@@ -1756,16 +1756,16 @@ function Tr(e) {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
var Er = {
|
|
1758
1758
|
convertOffsetParentRelativeRectToViewportRelativeRect: lr,
|
|
1759
|
-
getDocumentElement:
|
|
1759
|
+
getDocumentElement: Nn,
|
|
1760
1760
|
getClippingRect: vr,
|
|
1761
1761
|
getOffsetParent: Cr,
|
|
1762
1762
|
getElementRects: wr,
|
|
1763
1763
|
getClientRects: ur,
|
|
1764
1764
|
getDimensions: yr,
|
|
1765
1765
|
getScale: nr,
|
|
1766
|
-
isElement:
|
|
1766
|
+
isElement: Fn,
|
|
1767
1767
|
isRTL: Tr
|
|
1768
|
-
}, Dr =
|
|
1768
|
+
}, Dr = An, Or = Dn, kr = (e, t, n) => {
|
|
1769
1769
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
1770
1770
|
platform: Er,
|
|
1771
1771
|
...n
|
|
@@ -1773,11 +1773,11 @@ var Er = {
|
|
|
1773
1773
|
...i.platform,
|
|
1774
1774
|
_c: r
|
|
1775
1775
|
};
|
|
1776
|
-
return
|
|
1776
|
+
return En(e, t, {
|
|
1777
1777
|
...i,
|
|
1778
1778
|
platform: a
|
|
1779
1779
|
});
|
|
1780
|
-
}, J = /* @__PURE__ */
|
|
1780
|
+
}, J = /* @__PURE__ */ me({
|
|
1781
1781
|
Vue: () => e,
|
|
1782
1782
|
Vue2: () => void 0,
|
|
1783
1783
|
del: () => Nr,
|
|
@@ -1787,7 +1787,7 @@ var Er = {
|
|
|
1787
1787
|
set: () => Mr
|
|
1788
1788
|
});
|
|
1789
1789
|
import * as Ar from "vue";
|
|
1790
|
-
|
|
1790
|
+
ge(J, Ar);
|
|
1791
1791
|
function jr() {}
|
|
1792
1792
|
function Mr(e, t, n) {
|
|
1793
1793
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
@@ -1807,7 +1807,7 @@ function Pr(e) {
|
|
|
1807
1807
|
function Fr(e) {
|
|
1808
1808
|
if (Pr(e)) {
|
|
1809
1809
|
let t = e.$el;
|
|
1810
|
-
return
|
|
1810
|
+
return Pn(t) && Mn(t) === "#comment" ? null : t;
|
|
1811
1811
|
}
|
|
1812
1812
|
return e;
|
|
1813
1813
|
}
|
|
@@ -1886,7 +1886,7 @@ function zr(e, t, n) {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
//#endregion
|
|
1888
1888
|
//#region src/components/base/PvPopoverV2/PvPopoverV2.vue?vue&type=script&setup=true&lang.ts
|
|
1889
|
-
var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */
|
|
1889
|
+
var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ nt(/* @__PURE__ */ d({
|
|
1890
1890
|
__name: "PvPopoverV2",
|
|
1891
1891
|
props: /* @__PURE__ */ v({
|
|
1892
1892
|
disableAutoPlacement: {
|
|
@@ -1921,6 +1921,10 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
1921
1921
|
default: 25,
|
|
1922
1922
|
type: Number
|
|
1923
1923
|
},
|
|
1924
|
+
closeDelay: {
|
|
1925
|
+
default: 200,
|
|
1926
|
+
type: Number
|
|
1927
|
+
},
|
|
1924
1928
|
zIndex: {
|
|
1925
1929
|
default: 10,
|
|
1926
1930
|
type: Number
|
|
@@ -1937,12 +1941,12 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
1937
1941
|
}),
|
|
1938
1942
|
emits: ["update:modelValue"],
|
|
1939
1943
|
setup(e) {
|
|
1940
|
-
let t = e, c =
|
|
1944
|
+
let t = e, c = ne(e, "modelValue"), l = p(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: f } = Ct("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" && [
|
|
1941
1945
|
"anchor-name: --pv-anchor",
|
|
1942
1946
|
"position-area: bottom",
|
|
1943
1947
|
"position-try-fallbacks: flip-block",
|
|
1944
1948
|
"position-visibility: anchors-visible"
|
|
1945
|
-
].every((e) => CSS.supports(e)), g = N(!1), _ = N(null), v = N(null), y = N(null), x = N(null), S = N(""), w =
|
|
1949
|
+
].every((e) => CSS.supports(e)), g = N(!1), _ = N(null), v = N(null), y = N(null), x = N(null), S = N(""), w = Ge(v), T = Ge(x), D = N(!1), A = {
|
|
1946
1950
|
"top-center": "top",
|
|
1947
1951
|
"bottom-center": "bottom",
|
|
1948
1952
|
"center-left": "left",
|
|
@@ -1992,7 +1996,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
1992
1996
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1993
1997
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1994
1998
|
};
|
|
1995
|
-
}),
|
|
1999
|
+
}), I = () => {}, L = () => ({});
|
|
1996
2000
|
if (!h) {
|
|
1997
2001
|
let e = [];
|
|
1998
2002
|
t.disableAutoPlacement || e.push(Or({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Dr(t.offset));
|
|
@@ -2001,87 +2005,99 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2001
2005
|
strategy: t.positioningStrategy,
|
|
2002
2006
|
middleware: e
|
|
2003
2007
|
});
|
|
2004
|
-
|
|
2005
|
-
let i =
|
|
2006
|
-
c.value &&
|
|
2008
|
+
I = n.update, L = () => n.floatingStyles.value;
|
|
2009
|
+
let i = We(y), a = /* @__PURE__ */ ke(() => {
|
|
2010
|
+
c.value && I();
|
|
2007
2011
|
}, 5);
|
|
2008
|
-
|
|
2012
|
+
H([
|
|
2009
2013
|
i.top,
|
|
2010
2014
|
i.left,
|
|
2011
2015
|
i.width,
|
|
2012
2016
|
i.height
|
|
2013
|
-
], a),
|
|
2014
|
-
t.disableClickOutsideToClose ||
|
|
2017
|
+
], a), Ie(_, () => {
|
|
2018
|
+
t.disableClickOutsideToClose || V(!1);
|
|
2015
2019
|
}, { ignore: r(() => [
|
|
2016
2020
|
x.value,
|
|
2017
2021
|
".p-datepicker-panel",
|
|
2018
2022
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
2019
2023
|
]) });
|
|
2020
2024
|
}
|
|
2021
|
-
let
|
|
2022
|
-
...
|
|
2025
|
+
let R = r(() => ({
|
|
2026
|
+
...L(),
|
|
2023
2027
|
zIndex: t.zIndex
|
|
2024
|
-
})),
|
|
2025
|
-
|
|
2026
|
-
}, ie = (
|
|
2027
|
-
|
|
2028
|
-
|
|
2028
|
+
})), z, te, re = () => {
|
|
2029
|
+
z && clearTimeout(z), z = void 0;
|
|
2030
|
+
}, ie = () => {
|
|
2031
|
+
te && clearTimeout(te), te = void 0;
|
|
2032
|
+
}, V = (e) => {
|
|
2033
|
+
re(), ie(), !(e && !m.value) && (e && t.delay > 0 && (t.showOnHover || !h) ? z = setTimeout(() => {
|
|
2034
|
+
c.value = !0, z = void 0;
|
|
2029
2035
|
}, t.delay) : c.value = e);
|
|
2030
2036
|
}, ae = () => {
|
|
2031
2037
|
let e = x.value;
|
|
2032
2038
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
2033
|
-
},
|
|
2034
|
-
t.showOnHover ||
|
|
2035
|
-
},
|
|
2039
|
+
}, se = r(() => t.showOnHover ? t.disableInteractive ? w.value || D.value : w.value || T.value || D.value : !1), U = () => {
|
|
2040
|
+
t.showOnHover || V(z ? !1 : !c.value);
|
|
2041
|
+
}, le = (e) => {
|
|
2036
2042
|
let t = e.newState === "open";
|
|
2037
2043
|
c.value !== t && (c.value = t);
|
|
2038
|
-
},
|
|
2039
|
-
h && M.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(),
|
|
2044
|
+
}, ue = (e) => {
|
|
2045
|
+
h && M.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), V(!1));
|
|
2040
2046
|
};
|
|
2041
|
-
return
|
|
2047
|
+
return H(c, async (e) => {
|
|
2042
2048
|
if (!h) {
|
|
2043
|
-
e &&
|
|
2049
|
+
e && I();
|
|
2044
2050
|
return;
|
|
2045
2051
|
}
|
|
2046
2052
|
await b(), ae();
|
|
2047
|
-
}),
|
|
2048
|
-
t.showOnHover
|
|
2049
|
-
|
|
2050
|
-
|
|
2053
|
+
}), H(se, (e) => {
|
|
2054
|
+
if (t.showOnHover) {
|
|
2055
|
+
if (e) {
|
|
2056
|
+
V(!0);
|
|
2057
|
+
return;
|
|
2058
|
+
}
|
|
2059
|
+
re(), t.closeDelay > 0 ? (ie(), te = setTimeout(() => {
|
|
2060
|
+
te = void 0, se.value || V(!1);
|
|
2061
|
+
}, t.closeDelay)) : V(!1);
|
|
2062
|
+
}
|
|
2063
|
+
}), H(m, (e) => {
|
|
2064
|
+
e ? h && c.value && b(ae) : (re(), ie(), c.value = !1);
|
|
2051
2065
|
}), E(() => {
|
|
2052
|
-
y.value = v.value, h && (S.value = `--pv-popover-v2-${++Vr}`), g.value = !0, c.value && b(() => h ? ae() :
|
|
2053
|
-
}), O(
|
|
2066
|
+
y.value = v.value, h && (S.value = `--pv-popover-v2-${++Vr}`), g.value = !0, c.value && b(() => h ? ae() : I());
|
|
2067
|
+
}), O(() => {
|
|
2068
|
+
re(), ie();
|
|
2069
|
+
}), (r, l) => (k(), o("div", {
|
|
2054
2070
|
ref_key: "root",
|
|
2055
2071
|
ref: _,
|
|
2056
2072
|
style: { width: "fit-content" },
|
|
2057
|
-
onKeydown:
|
|
2073
|
+
onKeydown: ue
|
|
2058
2074
|
}, [s("div", {
|
|
2059
2075
|
ref_key: "triggerWrapper",
|
|
2060
2076
|
ref: v,
|
|
2061
2077
|
style: C(ee.value),
|
|
2062
|
-
onClick:
|
|
2078
|
+
onClick: U,
|
|
2063
2079
|
onFocusin: l[0] ||= (e) => D.value = !0,
|
|
2064
2080
|
onFocusout: l[1] ||= (e) => D.value = !1
|
|
2065
|
-
}, [P(r.$slots, "trigger")], 36), g.value &&
|
|
2081
|
+
}, [P(r.$slots, "trigger")], 36), g.value && B(h) && m.value ? (k(), o("div", {
|
|
2066
2082
|
key: 0,
|
|
2067
2083
|
ref_key: "floating",
|
|
2068
2084
|
ref: x,
|
|
2069
2085
|
class: "pv-floating pv-floating-native",
|
|
2070
2086
|
popover: M.value,
|
|
2071
2087
|
style: C(F.value),
|
|
2072
|
-
onToggle:
|
|
2088
|
+
onToggle: le
|
|
2073
2089
|
}, [P(r.$slots, "content")], 44, Br)) : m.value ? (k(), i(n, {
|
|
2074
2090
|
key: 1,
|
|
2075
2091
|
to: e.teleportLocation,
|
|
2076
2092
|
disabled: !t.useTeleport
|
|
2077
|
-
}, [
|
|
2093
|
+
}, [ce(s("div", {
|
|
2078
2094
|
ref_key: "floating",
|
|
2079
2095
|
ref: x,
|
|
2080
2096
|
class: "pv-floating",
|
|
2081
|
-
style: C(
|
|
2082
|
-
}, [P(r.$slots, "content")], 4), [[
|
|
2097
|
+
style: C(R.value)
|
|
2098
|
+
}, [P(r.$slots, "content")], 4), [[oe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 544));
|
|
2083
2099
|
}
|
|
2084
|
-
}), [["styles", [".pv-floating-native[data-v-
|
|
2100
|
+
}), [["styles", [".pv-floating-native[data-v-97886581]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-97886581]>.pv-popover,.pv-floating-native>slot[name=content][data-v-97886581]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-97886581"]]), Ur = ["data-variant"], Wr = /* @__PURE__ */ d({
|
|
2085
2101
|
__name: "PvTooltipV2",
|
|
2086
2102
|
props: {
|
|
2087
2103
|
variant: {
|
|
@@ -2114,23 +2130,24 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2114
2130
|
default: 0,
|
|
2115
2131
|
type: Number
|
|
2116
2132
|
},
|
|
2133
|
+
closeDelay: { type: Number },
|
|
2117
2134
|
zIndex: { type: Number },
|
|
2118
2135
|
teleportLocation: { type: String },
|
|
2119
2136
|
offset: { type: Number },
|
|
2120
2137
|
ignoreClickOutsideClasses: { type: Array }
|
|
2121
2138
|
},
|
|
2122
2139
|
setup(e) {
|
|
2123
|
-
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 } =
|
|
2140
|
+
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 } = Ct("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
2124
2141
|
return (t, n) => (k(), i(Hr, S(h(t.$props)), c({
|
|
2125
|
-
trigger:
|
|
2142
|
+
trigger: U(() => [P(t.$slots, "trigger", {}, () => [s("p", null, R(e.label), 1)])]),
|
|
2126
2143
|
_: 2
|
|
2127
2144
|
}, [f.value ? {
|
|
2128
2145
|
name: "content",
|
|
2129
|
-
fn:
|
|
2146
|
+
fn: U(() => [s("div", {
|
|
2130
2147
|
class: x(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
2131
2148
|
role: "tooltip",
|
|
2132
2149
|
"data-variant": e.variant
|
|
2133
|
-
}, [P(t.$slots, "content", {}, () => [l(
|
|
2150
|
+
}, [P(t.$slots, "content", {}, () => [l(R(e.description), 1)])], 10, Ur)]),
|
|
2134
2151
|
key: "0"
|
|
2135
2152
|
} : void 0]), 1040));
|
|
2136
2153
|
}
|
|
@@ -2171,25 +2188,25 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2171
2188
|
"disable-interactive": !0,
|
|
2172
2189
|
"use-teleport": !0
|
|
2173
2190
|
}, c({
|
|
2174
|
-
trigger:
|
|
2191
|
+
trigger: U(() => [s("button", {
|
|
2175
2192
|
type: "button",
|
|
2176
2193
|
class: x(["pv-button-link-tertiary", { "pv-action-button-reveal-on-hover": !e.alwaysShow }]),
|
|
2177
2194
|
style: { "--button-icon-only-padding": "0px" },
|
|
2178
2195
|
"aria-label": e.tooltipText,
|
|
2179
2196
|
disabled: e.disabled,
|
|
2180
|
-
onClick:
|
|
2181
|
-
}, [u(
|
|
2197
|
+
onClick: le(o, ["stop"])
|
|
2198
|
+
}, [u(G, {
|
|
2182
2199
|
name: e.icon,
|
|
2183
2200
|
size: a[e.size]
|
|
2184
2201
|
}, null, 8, ["name", "size"])], 10, Gr)]),
|
|
2185
2202
|
_: 2
|
|
2186
2203
|
}, [e.tooltipText ? {
|
|
2187
2204
|
name: "content",
|
|
2188
|
-
fn:
|
|
2205
|
+
fn: U(() => [l(R(e.tooltipText), 1)]),
|
|
2189
2206
|
key: "0"
|
|
2190
2207
|
} : void 0]), 1032, ["position"]));
|
|
2191
2208
|
}
|
|
2192
|
-
}), qr = ["aria-label"], Jr = /* @__PURE__ */
|
|
2209
|
+
}), qr = ["aria-label"], Jr = /* @__PURE__ */ nt(/* @__PURE__ */ d({
|
|
2193
2210
|
__name: "PvMenuItemAction",
|
|
2194
2211
|
props: {
|
|
2195
2212
|
action: { type: Object },
|
|
@@ -2216,16 +2233,16 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2216
2233
|
"disable-interactive": !0,
|
|
2217
2234
|
"use-teleport": !0
|
|
2218
2235
|
}, c({
|
|
2219
|
-
trigger:
|
|
2236
|
+
trigger: U(() => [a(" Stop propagation so the icon does not toggle the surrounding menu item's selection. "), s("span", {
|
|
2220
2237
|
class: x(["pv-text-brand", { "pv-action-button-reveal-on-hover": !h.value }]),
|
|
2221
2238
|
role: "img",
|
|
2222
2239
|
"aria-label": p.value,
|
|
2223
|
-
onClick: n[0] ||=
|
|
2224
|
-
}, [u(
|
|
2240
|
+
onClick: n[0] ||= le(() => {}, ["stop"])
|
|
2241
|
+
}, [u(G, { name: d.value }, null, 8, ["name"])], 10, qr)]),
|
|
2225
2242
|
_: 2
|
|
2226
2243
|
}, [p.value ? {
|
|
2227
2244
|
name: "content",
|
|
2228
|
-
fn:
|
|
2245
|
+
fn: U(() => [l(R(p.value), 1)]),
|
|
2229
2246
|
key: "0"
|
|
2230
2247
|
} : void 0]), 1024)], 2112));
|
|
2231
2248
|
}
|
|
@@ -2235,7 +2252,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2235
2252
|
"checked",
|
|
2236
2253
|
"indeterminate",
|
|
2237
2254
|
"disabled"
|
|
2238
|
-
], ii = ["aria-label", "aria-expanded"], ai = /* @__PURE__ */
|
|
2255
|
+
], ii = ["aria-label", "aria-expanded"], ai = /* @__PURE__ */ nt(/* @__PURE__ */ d({
|
|
2239
2256
|
__name: "PvMenuItemVariant",
|
|
2240
2257
|
props: {
|
|
2241
2258
|
selected: { type: Boolean },
|
|
@@ -2269,17 +2286,17 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2269
2286
|
},
|
|
2270
2287
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2271
2288
|
setup(e, { emit: t }) {
|
|
2272
|
-
let n = e, c =
|
|
2273
|
-
if (!d.value || !
|
|
2274
|
-
let e = n.children ?
|
|
2289
|
+
let n = e, c = ie("inputRef"), l = g(Yr, void 0), d = g(Xr, N(!1)), f = g(Zr, void 0), m = g(Qr, void 0), h = r(() => {
|
|
2290
|
+
if (!d.value || !It(n)) return [];
|
|
2291
|
+
let e = n.children ? Lt(n.children) : [];
|
|
2275
2292
|
if (f?.value) {
|
|
2276
2293
|
let t = f.value.get(n.id);
|
|
2277
|
-
return
|
|
2294
|
+
return Rt(t?.children ? Lt(t.children) : [], e);
|
|
2278
2295
|
}
|
|
2279
2296
|
return e;
|
|
2280
2297
|
}), _ = r(() => {
|
|
2281
2298
|
if (!l?.value) return n.selected ?? !1;
|
|
2282
|
-
if (d.value &&
|
|
2299
|
+
if (d.value && It(n)) {
|
|
2283
2300
|
let e = h.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
2284
2301
|
if (m?.value?.has(n.id) && r >= t) return !0;
|
|
2285
2302
|
let i = n.totalChildCount ?? t;
|
|
@@ -2287,7 +2304,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2287
2304
|
}
|
|
2288
2305
|
return l.value.some((e) => e.id === n.id);
|
|
2289
2306
|
}), v = r(() => {
|
|
2290
|
-
if (!l?.value || !d.value || !
|
|
2307
|
+
if (!l?.value || !d.value || !It(n)) return n.indeterminate ?? !1;
|
|
2291
2308
|
let e = h.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
2292
2309
|
if (m?.value?.has(n.id) && r >= t) return !1;
|
|
2293
2310
|
let i = n.totalChildCount ?? t;
|
|
@@ -2335,7 +2352,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2335
2352
|
disabled: e.disabled,
|
|
2336
2353
|
onChange: P
|
|
2337
2354
|
}, null, 42, ri),
|
|
2338
|
-
e.menuOptionConfig?.renderer ? (k(), i(
|
|
2355
|
+
e.menuOptionConfig?.renderer ? (k(), i(I(e.menuOptionConfig?.renderer), y({ key: 0 }, T.value, { selected: _.value }), null, 16, ["selected"])) : (k(), i(Kt, y({ key: 1 }, T.value, {
|
|
2339
2356
|
menuOptionConfig: e.menuOptionConfig,
|
|
2340
2357
|
queryText: e.queryText,
|
|
2341
2358
|
highlightSearchText: e.highlightSearchText
|
|
@@ -2344,12 +2361,12 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2344
2361
|
"queryText",
|
|
2345
2362
|
"highlightSearchText"
|
|
2346
2363
|
])),
|
|
2347
|
-
e.menuOptionConfig?.variant === "checkmark" && _.value ? (k(), i(
|
|
2364
|
+
e.menuOptionConfig?.variant === "checkmark" && _.value ? (k(), i(G, {
|
|
2348
2365
|
key: 2,
|
|
2349
2366
|
name: "check",
|
|
2350
2367
|
class: "pv-text-success"
|
|
2351
2368
|
})) : a("v-if", !0),
|
|
2352
|
-
e.menuOptionConfig?.variant === "toggle" ? (k(), i(
|
|
2369
|
+
e.menuOptionConfig?.variant === "toggle" ? (k(), i(Xt, {
|
|
2353
2370
|
key: 3,
|
|
2354
2371
|
modelValue: _.value,
|
|
2355
2372
|
ariaLabel: n.text || "Toggle",
|
|
@@ -2368,8 +2385,8 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2368
2385
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2369
2386
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2370
2387
|
"aria-expanded": e.expanded,
|
|
2371
|
-
onClick: r[0] ||=
|
|
2372
|
-
}, [u(
|
|
2388
|
+
onClick: r[0] ||= le((e) => ee("toggle-expanded"), ["prevent", "stop"])
|
|
2389
|
+
}, [u(G, {
|
|
2373
2390
|
name: e.chevronIcon ?? "chevron-right",
|
|
2374
2391
|
size: 12
|
|
2375
2392
|
}, null, 8, ["name"])], 8, ii)) : a("v-if", !0)
|
|
@@ -2412,12 +2429,12 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2412
2429
|
}),
|
|
2413
2430
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2414
2431
|
setup(e, { emit: n }) {
|
|
2415
|
-
let i = e, s = g(Yr, void 0), c =
|
|
2416
|
-
|
|
2432
|
+
let i = e, s = g(Yr, void 0), c = ne(e, "selectedIds"), l = g(ti, N(!1)), d = g(ei, N(!1)), f = g(Qr, void 0), p = g($r, void 0), m = N(i.defaultExpanded ?? !1);
|
|
2433
|
+
H(() => i.defaultExpanded, (e) => {
|
|
2417
2434
|
e && (m.value = !0);
|
|
2418
2435
|
});
|
|
2419
2436
|
let h = N(!1), _ = N(!1), v = N(i.children ?? []), b = N(/* @__PURE__ */ new Set());
|
|
2420
|
-
|
|
2437
|
+
H(() => i.children, (e) => {
|
|
2421
2438
|
if (!e) {
|
|
2422
2439
|
v.value = [];
|
|
2423
2440
|
return;
|
|
@@ -2430,7 +2447,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2430
2447
|
}, w = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
|
|
2431
2448
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
2432
2449
|
return r;
|
|
2433
|
-
}), E = r(() =>
|
|
2450
|
+
}), E = r(() => It({
|
|
2434
2451
|
...i,
|
|
2435
2452
|
children: v.value
|
|
2436
2453
|
}) && i.level < ci), D = r(() => E.value ? l.value ? m.value : !0 : !1), O = r(() => m.value ? "chevron-down" : "chevron-right"), A = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), j = n, M = r(() => _.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), P = async () => {
|
|
@@ -2468,7 +2485,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2468
2485
|
} finally {
|
|
2469
2486
|
h.value = !1;
|
|
2470
2487
|
}
|
|
2471
|
-
},
|
|
2488
|
+
}, I = (e) => {
|
|
2472
2489
|
if (l.value && E.value && e.option.id === i.id && !d.value) {
|
|
2473
2490
|
S();
|
|
2474
2491
|
return;
|
|
@@ -2478,7 +2495,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2478
2495
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2479
2496
|
}
|
|
2480
2497
|
j("handle-selected", e);
|
|
2481
|
-
},
|
|
2498
|
+
}, L = (e) => {
|
|
2482
2499
|
j("handle-selected", e);
|
|
2483
2500
|
};
|
|
2484
2501
|
return (n, r) => {
|
|
@@ -2488,10 +2505,10 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2488
2505
|
menuOptionConfig: e.config,
|
|
2489
2506
|
queryText: e.queryText,
|
|
2490
2507
|
highlightSearchText: e.highlightSearchText,
|
|
2491
|
-
showChevron:
|
|
2508
|
+
showChevron: B(l) && E.value,
|
|
2492
2509
|
chevronIcon: O.value,
|
|
2493
2510
|
expanded: m.value,
|
|
2494
|
-
onHandleSelected:
|
|
2511
|
+
onHandleSelected: I,
|
|
2495
2512
|
onToggleExpanded: S,
|
|
2496
2513
|
selected: A(i)
|
|
2497
2514
|
}), null, 16, [
|
|
@@ -2519,7 +2536,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2519
2536
|
queryText: e.queryText,
|
|
2520
2537
|
highlightSearchText: e.highlightSearchText,
|
|
2521
2538
|
level: e.level + 1,
|
|
2522
|
-
onHandleSelected:
|
|
2539
|
+
onHandleSelected: L,
|
|
2523
2540
|
onSeeMore: r[1] ||= (e) => j("see-more", e)
|
|
2524
2541
|
}), null, 16, [
|
|
2525
2542
|
"disabled",
|
|
@@ -2528,7 +2545,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2528
2545
|
"queryText",
|
|
2529
2546
|
"highlightSearchText",
|
|
2530
2547
|
"level"
|
|
2531
|
-
])], 10, oi))), 128)), M.value ? (k(), o("li", si, [u(
|
|
2548
|
+
])], 10, oi))), 128)), M.value ? (k(), o("li", si, [u(ot, {
|
|
2532
2549
|
class: "pv-text-brand",
|
|
2533
2550
|
variant: "ghost",
|
|
2534
2551
|
label: "See more",
|
|
@@ -2561,21 +2578,21 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2561
2578
|
}),
|
|
2562
2579
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
2563
2580
|
setup(e, { emit: n }) {
|
|
2564
|
-
let i = e, s = n, c =
|
|
2565
|
-
|
|
2581
|
+
let i = e, s = n, c = ne(e, "selectedItems"), l = L(c.value);
|
|
2582
|
+
H(c, (e) => {
|
|
2566
2583
|
l.value = e;
|
|
2567
|
-
}),
|
|
2584
|
+
}), H(l, (e) => {
|
|
2568
2585
|
e !== c.value && (c.value = e);
|
|
2569
2586
|
}), A(Yr, l), A(Xr, r(() => !!i.enableCascadeSelection));
|
|
2570
2587
|
let d = g(Zr, void 0), f = g(ei, N(!1)), p = g(Qr, void 0), m = g($r, void 0), h = r(() => i.singleSelect || i.config?.variant === "radio"), _ = (e) => {
|
|
2571
2588
|
if (i.readOnly) return;
|
|
2572
2589
|
let t = e.option, n;
|
|
2573
|
-
if (i.enableCascadeSelection &&
|
|
2590
|
+
if (i.enableCascadeSelection && It(t)) {
|
|
2574
2591
|
let e;
|
|
2575
2592
|
if (f.value && d?.value) {
|
|
2576
2593
|
let n = d.value.get(t.id);
|
|
2577
|
-
e =
|
|
2578
|
-
} else e = t.children ?
|
|
2594
|
+
e = Rt(n?.children ? Lt(n.children) : [], t.children ? Lt(t.children) : []);
|
|
2595
|
+
} else e = t.children ? Lt(t.children) : [];
|
|
2579
2596
|
let r = e.map((e) => e.id), i = l.value, a = (p?.value?.has(t.id) ?? !1) || r.some((e) => i.some((t) => t.id === e));
|
|
2580
2597
|
if (n = a ? i.filter((e) => !r.includes(e.id)) : [...i, ...e], p?.value) {
|
|
2581
2598
|
let e = new Set(p.value);
|
|
@@ -2592,7 +2609,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2592
2609
|
let n = e > -1;
|
|
2593
2610
|
for (let e of p.value) {
|
|
2594
2611
|
let r = d?.value?.get(e)?.children ?? i.options.find((t) => t.id === e)?.children;
|
|
2595
|
-
if (!r || !(
|
|
2612
|
+
if (!r || !(Lt(r).some((e) => e.id === t.id) || i.options.find((t) => t.id === e)?.children?.some((e) => e.id === t.id))) continue;
|
|
2596
2613
|
let a = new Map(m.value), o = new Set(a.get(e) ?? []);
|
|
2597
2614
|
n ? o.add(t.id) : o.delete(t.id), o.size > 0 ? a.set(e, o) : a.delete(e), m.value = a;
|
|
2598
2615
|
break;
|
|
@@ -2604,7 +2621,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2604
2621
|
for (let t of e) if (v.value.has(t.id) || t.children?.length && b(t.children)) return !0;
|
|
2605
2622
|
return !1;
|
|
2606
2623
|
}, S = (e) => v.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && b(e.children) ? !0 : null, C = (e, t) => !!(!t || v.value.has(e.id) || p?.value?.has(e.id) || e.children?.length && b(e.children));
|
|
2607
|
-
return (n, r) => (k(), o("ul", ui, [(k(!0), o(t, null, ee(e.options, (t) =>
|
|
2624
|
+
return (n, r) => (k(), o("ul", ui, [(k(!0), o(t, null, ee(e.options, (t) => ce((k(), o("li", {
|
|
2608
2625
|
key: t.id,
|
|
2609
2626
|
"data-active": S(t),
|
|
2610
2627
|
"data-testid": e.itemTestId,
|
|
@@ -2621,7 +2638,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2621
2638
|
"config",
|
|
2622
2639
|
"itemClass",
|
|
2623
2640
|
"queryText"
|
|
2624
|
-
])], 10, di)), [[
|
|
2641
|
+
])], 10, di)), [[oe, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (k(), o("li", fi, [u(ot, {
|
|
2625
2642
|
class: "pv-text-brand",
|
|
2626
2643
|
variant: "ghost",
|
|
2627
2644
|
label: "See more",
|
|
@@ -2775,11 +2792,11 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2775
2792
|
for (let r of n) e.set(r.id, r), r.children?.length && t(r.children);
|
|
2776
2793
|
};
|
|
2777
2794
|
return t(c.options), e;
|
|
2778
|
-
}), f =
|
|
2795
|
+
}), f = L(/* @__PURE__ */ new Set()), p = L(/* @__PURE__ */ new Map());
|
|
2779
2796
|
A(Zr, d), A(Qr, f), A($r, p), A(ei, r(() => c.parentSelectsAllChildren)), A(ti, r(() => !!c.enableChildExpansion));
|
|
2780
2797
|
let m = n, g = r(() => {
|
|
2781
2798
|
let e = /* @__PURE__ */ new Map();
|
|
2782
|
-
for (let [t, n] of d.value)
|
|
2799
|
+
for (let [t, n] of d.value) It(n) && e.set(t, n.children ? Lt(n.children) : []);
|
|
2783
2800
|
return e;
|
|
2784
2801
|
}), v = () => {
|
|
2785
2802
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -2798,26 +2815,26 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2798
2815
|
state: "deselected"
|
|
2799
2816
|
}))), t.push(r);
|
|
2800
2817
|
}
|
|
2801
|
-
for (let n of
|
|
2818
|
+
for (let n of V.value) e.has(n.id) || t.push({
|
|
2802
2819
|
id: n.id,
|
|
2803
2820
|
state: "selected"
|
|
2804
2821
|
});
|
|
2805
2822
|
return t;
|
|
2806
2823
|
}, x = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
2807
2824
|
let e = c.additionalCounter ?? 0;
|
|
2808
|
-
if (c.enableCascadeSelection && c.countSelectedParents && N.value?.length) return
|
|
2809
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
2810
|
-
let t = new Set(
|
|
2811
|
-
return
|
|
2812
|
-
}), T = r(() =>
|
|
2825
|
+
if (c.enableCascadeSelection && c.countSelectedParents && N.value?.length) return Bt(N.value) + e;
|
|
2826
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return V.value.length + e;
|
|
2827
|
+
let t = new Set(V.value.map((e) => e.id));
|
|
2828
|
+
return zt(c.options, t) + e;
|
|
2829
|
+
}), T = r(() => V.value.length > 0 ? !0 : c.enableCascadeSelection && N.value?.length ? N.value.some((e) => e.state === "selected") : !1), E = (e) => {
|
|
2813
2830
|
m("see-more", e ?? {});
|
|
2814
|
-
}, D =
|
|
2815
|
-
|
|
2816
|
-
},
|
|
2817
|
-
|
|
2818
|
-
},
|
|
2819
|
-
|
|
2820
|
-
},
|
|
2831
|
+
}, D = ie("searchInputRef"), [O, j] = /* @__PURE__ */ je(c.defaultOpen), M = ne(e, "modelValue"), N = ne(e, "selectionState"), F = ne(e, "searchInput"), I = r(() => c.menuActionsVariant === "cancel-confirm"), z = (e) => {
|
|
2832
|
+
V.value = e, I.value || (M.value = e, N.value = v());
|
|
2833
|
+
}, te = () => {
|
|
2834
|
+
I.value && (M.value = V.value, N.value = v());
|
|
2835
|
+
}, re = () => {
|
|
2836
|
+
I.value && (V.value = M.value);
|
|
2837
|
+
}, V = L(M.value), ae = (e) => d.value.get(e), oe = (e) => {
|
|
2821
2838
|
if (!c.enableCascadeSelection || !e) return;
|
|
2822
2839
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
2823
2840
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -2833,56 +2850,56 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2833
2850
|
for (let t of i) e.has(t.id) || a(t, t.id);
|
|
2834
2851
|
continue;
|
|
2835
2852
|
}
|
|
2836
|
-
a(
|
|
2853
|
+
a(ae(r.id), r.id);
|
|
2837
2854
|
}
|
|
2838
|
-
f.value = t, p.value = n,
|
|
2839
|
-
},
|
|
2840
|
-
get: () =>
|
|
2855
|
+
f.value = t, p.value = n, V.value = r;
|
|
2856
|
+
}, se = r({
|
|
2857
|
+
get: () => V.value,
|
|
2841
2858
|
set: (e) => {
|
|
2842
|
-
|
|
2859
|
+
z(e);
|
|
2843
2860
|
}
|
|
2844
|
-
}),
|
|
2861
|
+
}), ce = () => {
|
|
2845
2862
|
F.value = "", O.value = !1;
|
|
2846
|
-
},
|
|
2863
|
+
}, le = r(() => {
|
|
2847
2864
|
let e = c.size === "lg" ? 24 : 30;
|
|
2848
2865
|
return c.overlayTrigger ? -e : void 0;
|
|
2849
2866
|
});
|
|
2850
|
-
|
|
2867
|
+
H(() => M.value, (e) => {
|
|
2851
2868
|
if (c.enableCascadeSelection && N.value?.length && e.length === 0) {
|
|
2852
|
-
|
|
2869
|
+
oe(N.value);
|
|
2853
2870
|
return;
|
|
2854
2871
|
}
|
|
2855
|
-
|
|
2856
|
-
}),
|
|
2857
|
-
|
|
2872
|
+
V.value = e;
|
|
2873
|
+
}), H(() => [N.value, c.options], () => {
|
|
2874
|
+
oe(N.value);
|
|
2858
2875
|
}, {
|
|
2859
2876
|
deep: !0,
|
|
2860
2877
|
immediate: !0
|
|
2861
|
-
}),
|
|
2862
|
-
e ? (
|
|
2878
|
+
}), H(O, (e) => {
|
|
2879
|
+
e ? (re(), b(() => {
|
|
2863
2880
|
c.overlayTrigger && !c.disableSearchInput && D.value?.input?.focus(), m("dropdown-open");
|
|
2864
|
-
})) : (
|
|
2881
|
+
})) : (re(), m("dropdown-closed"));
|
|
2865
2882
|
});
|
|
2866
|
-
let
|
|
2883
|
+
let ue = r(() => {
|
|
2867
2884
|
if (F.value === "") return c.options;
|
|
2868
2885
|
let e = F.value.toLocaleLowerCase();
|
|
2869
|
-
return c.enableCascadeSelection ?
|
|
2870
|
-
}),
|
|
2886
|
+
return c.enableCascadeSelection ? Vt(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
2887
|
+
}), de = () => {
|
|
2871
2888
|
if (c.enableCascadeSelection) {
|
|
2872
2889
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
2873
|
-
for (let r of n)
|
|
2890
|
+
for (let r of n) It(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
2874
2891
|
};
|
|
2875
|
-
t(
|
|
2892
|
+
t(ue.value), f.value = e, p.value = /* @__PURE__ */ new Map();
|
|
2876
2893
|
}
|
|
2877
|
-
let e = c.enableCascadeSelection ?
|
|
2878
|
-
m("select-all", e.length),
|
|
2894
|
+
let e = c.enableCascadeSelection ? Lt(ue.value) : ue.value;
|
|
2895
|
+
m("select-all", e.length), z(e);
|
|
2896
|
+
}, fe = () => {
|
|
2897
|
+
m("clear-all", V.value.length), f.value = /* @__PURE__ */ new Set(), p.value = /* @__PURE__ */ new Map(), z([]);
|
|
2879
2898
|
}, pe = () => {
|
|
2880
|
-
|
|
2899
|
+
re(), ce();
|
|
2881
2900
|
}, me = () => {
|
|
2882
|
-
|
|
2883
|
-
}, he = () => {
|
|
2884
|
-
ne(), le();
|
|
2885
|
-
}, ge = r(() => {
|
|
2901
|
+
te(), ce();
|
|
2902
|
+
}, he = r(() => {
|
|
2886
2903
|
if (!c.groupings) return;
|
|
2887
2904
|
let e = /* @__PURE__ */ new Map();
|
|
2888
2905
|
c.groupings.forEach((t) => {
|
|
@@ -2894,24 +2911,24 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2894
2911
|
}
|
|
2895
2912
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
2896
2913
|
return Array.from(e.entries());
|
|
2897
|
-
}),
|
|
2914
|
+
}), ge = r(() => c.groupings && F.value === ""), _e = r(() => ({
|
|
2898
2915
|
...c,
|
|
2899
2916
|
selectedItems: M.value,
|
|
2900
2917
|
searchInput: F.value,
|
|
2901
2918
|
slotContext: c.slotContext,
|
|
2902
2919
|
isOpen: O.value,
|
|
2903
2920
|
isLoading: c.isLoading
|
|
2904
|
-
})),
|
|
2905
|
-
let e =
|
|
2921
|
+
})), ve = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), ye = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), be = ie("popoverContentRef"), xe = r(() => {
|
|
2922
|
+
let e = be.value?.getRootNode();
|
|
2906
2923
|
return e instanceof ShadowRoot ? e.host : null;
|
|
2907
|
-
}), { present:
|
|
2908
|
-
return
|
|
2909
|
-
O.value &&
|
|
2924
|
+
}), { present: Se } = Ct("header", { host: xe }), { present: Ce } = Ct("no-results", { host: xe }), { present: we } = Ct("footer", { host: xe });
|
|
2925
|
+
return He("Escape", () => {
|
|
2926
|
+
O.value && ce();
|
|
2910
2927
|
}), (n, r) => (k(), i(Hr, y({
|
|
2911
|
-
modelValue:
|
|
2928
|
+
modelValue: B(O),
|
|
2912
2929
|
"onUpdate:modelValue": r[4] ||= (e) => _(O) ? O.value = e : null
|
|
2913
|
-
}, e.popoverProperties, { offset:
|
|
2914
|
-
trigger:
|
|
2930
|
+
}, e.popoverProperties, { offset: le.value }), {
|
|
2931
|
+
trigger: U(() => [u(jt, {
|
|
2915
2932
|
ref: "select-button-trigger-ref",
|
|
2916
2933
|
variant: e.variant,
|
|
2917
2934
|
size: e.size,
|
|
@@ -2923,13 +2940,13 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2923
2940
|
companyLogo: e.companyLogo,
|
|
2924
2941
|
showClear: !e.disableClearIcon && T.value && !e.disabled,
|
|
2925
2942
|
showDropdown: !e.disableDropdownIcon && (e.disabled || !(T.value && !e.disableClearIcon)),
|
|
2926
|
-
open:
|
|
2943
|
+
open: B(O),
|
|
2927
2944
|
"counter-value": w.value,
|
|
2928
2945
|
"counter-style": e.counterStyle,
|
|
2929
|
-
"selected-items":
|
|
2930
|
-
"data-dd-action-name":
|
|
2931
|
-
onHandleClear:
|
|
2932
|
-
onHandleToggleDropdown: r[0] ||= (e) =>
|
|
2946
|
+
"selected-items": V.value,
|
|
2947
|
+
"data-dd-action-name": ve.value,
|
|
2948
|
+
onHandleClear: fe,
|
|
2949
|
+
onHandleToggleDropdown: r[0] ||= (e) => B(j)()
|
|
2933
2950
|
}, null, 8, [
|
|
2934
2951
|
"variant",
|
|
2935
2952
|
"size",
|
|
@@ -2947,9 +2964,9 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2947
2964
|
"selected-items",
|
|
2948
2965
|
"data-dd-action-name"
|
|
2949
2966
|
])]),
|
|
2950
|
-
content:
|
|
2967
|
+
content: U(() => [s("div", {
|
|
2951
2968
|
ref_key: "popoverContentRef",
|
|
2952
|
-
ref:
|
|
2969
|
+
ref: be,
|
|
2953
2970
|
class: "pv-popover",
|
|
2954
2971
|
"data-test-id": "pv-popover",
|
|
2955
2972
|
style: C({
|
|
@@ -2960,20 +2977,20 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2960
2977
|
e.disableSearchInput ? a("v-if", !0) : (k(), o("div", {
|
|
2961
2978
|
key: 0,
|
|
2962
2979
|
class: "pv-inset-square-8 pv-border-bottom",
|
|
2963
|
-
"data-dd-action-name":
|
|
2964
|
-
}, [u(
|
|
2980
|
+
"data-dd-action-name": ye.value
|
|
2981
|
+
}, [u(pt, {
|
|
2965
2982
|
ref: "searchInputRef",
|
|
2966
2983
|
"model-value": F.value,
|
|
2967
2984
|
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
2968
2985
|
class: "pv-stack-4",
|
|
2969
2986
|
placeholder: e.searchPlaceholder
|
|
2970
2987
|
}, null, 8, ["model-value", "placeholder"])], 8, mi)),
|
|
2971
|
-
n.$slots.header ||
|
|
2972
|
-
|
|
2973
|
-
n.$slots[t] ? P(n.$slots, t, { key: 0 }) : t === "other" ? a("v-if", !0) : (k(), o("span", gi,
|
|
2988
|
+
n.$slots.header || B(Se) ? (k(), o("div", hi, [P(n.$slots, "header", S(h(_e.value)))])) : a("v-if", !0),
|
|
2989
|
+
ue.value.length > 0 ? (k(), o(t, { key: 2 }, [ge.value ? (k(!0), o(t, { key: 0 }, ee(he.value, ([t, i], s) => (k(), o("div", { key: t }, [
|
|
2990
|
+
n.$slots[t] ? P(n.$slots, t, { key: 0 }) : t === "other" ? a("v-if", !0) : (k(), o("span", gi, R(t), 1)),
|
|
2974
2991
|
u(pi, {
|
|
2975
|
-
selectedItems:
|
|
2976
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
2992
|
+
selectedItems: se.value,
|
|
2993
|
+
"onUpdate:selectedItems": r[2] ||= (e) => se.value = e,
|
|
2977
2994
|
options: i,
|
|
2978
2995
|
config: l.value,
|
|
2979
2996
|
queryText: e.highlightSearchText ? F.value : null,
|
|
@@ -2982,7 +2999,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2982
2999
|
isLoading: e.isLoading,
|
|
2983
3000
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
2984
3001
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
2985
|
-
hasMoreOptions: s ===
|
|
3002
|
+
hasMoreOptions: s === he.value.length - 1 && x.value && !e.isLoading,
|
|
2986
3003
|
onSeeMore: E
|
|
2987
3004
|
}, null, 8, [
|
|
2988
3005
|
"selectedItems",
|
|
@@ -2995,12 +3012,12 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2995
3012
|
"enableCascadeSelection",
|
|
2996
3013
|
"hasMoreOptions"
|
|
2997
3014
|
]),
|
|
2998
|
-
|
|
3015
|
+
he.value && s !== he.value.length - 1 ? (k(), o("div", _i)) : a("v-if", !0)
|
|
2999
3016
|
]))), 128)) : (k(), i(pi, {
|
|
3000
3017
|
key: 1,
|
|
3001
|
-
selectedItems:
|
|
3002
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
3003
|
-
options:
|
|
3018
|
+
selectedItems: se.value,
|
|
3019
|
+
"onUpdate:selectedItems": r[3] ||= (e) => se.value = e,
|
|
3020
|
+
options: ue.value,
|
|
3004
3021
|
config: l.value,
|
|
3005
3022
|
queryText: e.highlightSearchText ? F.value : null,
|
|
3006
3023
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
@@ -3019,16 +3036,16 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
3019
3036
|
"isSeeMoreLoading",
|
|
3020
3037
|
"hasMoreOptions"
|
|
3021
3038
|
]))], 64)) : a("v-if", !0),
|
|
3022
|
-
e.isLoading ? (k(), o("div", vi, [u(
|
|
3023
|
-
s("div", yi, [
|
|
3039
|
+
e.isLoading ? (k(), o("div", vi, [u(Ke, { variant: "dark" })])) : ue.value.length === 0 ? (k(), o(t, { key: 4 }, [B(Ce) ? P(n.$slots, "no-results", S(y({ key: 0 }, _e.value))) : (k(), i(Ft, { key: 1 }))], 64)) : a("v-if", !0),
|
|
3040
|
+
s("div", yi, [B(we) ? P(n.$slots, "footer", S(y({ key: 0 }, _e.value))) : a("v-if", !0), e.menuActionsVariant ? (k(), i(ct, {
|
|
3024
3041
|
key: 1,
|
|
3025
3042
|
variant: e.menuActionsVariant,
|
|
3026
3043
|
disabled: e.isLoading,
|
|
3027
3044
|
rumFilterName: e.rumFilterName,
|
|
3028
|
-
onHandleClearAll:
|
|
3029
|
-
onHandleSelectAll:
|
|
3030
|
-
onHandleCancel:
|
|
3031
|
-
onHandleConfirm:
|
|
3045
|
+
onHandleClearAll: fe,
|
|
3046
|
+
onHandleSelectAll: de,
|
|
3047
|
+
onHandleCancel: pe,
|
|
3048
|
+
onHandleConfirm: me
|
|
3032
3049
|
}, null, 8, [
|
|
3033
3050
|
"variant",
|
|
3034
3051
|
"disabled",
|
|
@@ -3371,15 +3388,15 @@ var Q = {
|
|
|
3371
3388
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
3372
3389
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
3373
3390
|
if (Y(a) && o.transform !== "strict") {
|
|
3374
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ea(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ea(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ea(x, ["dark"]), w = y || {}, { dark: T } = w, E = ea(w, ["dark"]), D = Y(t) ? this._toVariables({ primitive: t }, o) : {}, O = Y(_) ? this._toVariables({ semantic: _ }, o) : {}, k = Y(C) ? this._toVariables({ light: C }, o) : {}, A = Y(S) ? this._toVariables({ dark: S }, o) : {}, j = Y(b) ? this._toVariables({ semantic: b }, o) : {}, M = Y(E) ? this._toVariables({ light: E }, o) : {}, N = Y(T) ? this._toVariables({ dark: T }, o) : {}, [ee, P] = [D.declarations ?? "", D.tokens], [F,
|
|
3375
|
-
s = this.transformCSS(e, ee, "light", "variable", o, r, i), c = P, l = `${this.transformCSS(e, `${F}${
|
|
3376
|
-
...
|
|
3377
|
-
...
|
|
3378
|
-
...
|
|
3379
|
-
])], d = `${this.transformCSS(e, `${
|
|
3380
|
-
...
|
|
3381
|
-
...
|
|
3382
|
-
...
|
|
3391
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ea(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ea(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ea(x, ["dark"]), w = y || {}, { dark: T } = w, E = ea(w, ["dark"]), D = Y(t) ? this._toVariables({ primitive: t }, o) : {}, O = Y(_) ? this._toVariables({ semantic: _ }, o) : {}, k = Y(C) ? this._toVariables({ light: C }, o) : {}, A = Y(S) ? this._toVariables({ dark: S }, o) : {}, j = Y(b) ? this._toVariables({ semantic: b }, o) : {}, M = Y(E) ? this._toVariables({ light: E }, o) : {}, N = Y(T) ? this._toVariables({ dark: T }, o) : {}, [ee, P] = [D.declarations ?? "", D.tokens], [F, I] = [O.declarations ?? "", O.tokens || []], [L, R] = [k.declarations ?? "", k.tokens || []], [z, B] = [A.declarations ?? "", A.tokens || []], [te, ne] = [j.declarations ?? "", j.tokens || []], [re, ie] = [M.declarations ?? "", M.tokens || []], [V, ae] = [N.declarations ?? "", N.tokens || []];
|
|
3392
|
+
s = this.transformCSS(e, ee, "light", "variable", o, r, i), c = P, l = `${this.transformCSS(e, `${F}${L}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${z}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
3393
|
+
...I,
|
|
3394
|
+
...R,
|
|
3395
|
+
...B
|
|
3396
|
+
])], d = `${this.transformCSS(e, `${te}${re}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${V}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
3397
|
+
...ne,
|
|
3398
|
+
...ie,
|
|
3399
|
+
...ae
|
|
3383
3400
|
])], p = Mi(a.css, { dt: ha });
|
|
3384
3401
|
}
|
|
3385
3402
|
return {
|
|
@@ -3779,7 +3796,7 @@ function Oa(e) {
|
|
|
3779
3796
|
nonce: u
|
|
3780
3797
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), Gi(i.value, "data-primevue-style-id", c), Ui(i.value, o), i.value.onload = function(e) {
|
|
3781
3798
|
return D?.(e, { name: c });
|
|
3782
|
-
}, C?.(c)), !n.value && (A =
|
|
3799
|
+
}, C?.(c)), !n.value && (A = H(r, function(e) {
|
|
3783
3800
|
i.value.textContent = e, T?.(c);
|
|
3784
3801
|
}, { immediate: !0 }), n.value = !0);
|
|
3785
3802
|
}
|
|
@@ -4290,7 +4307,7 @@ function ao(e, t) {
|
|
|
4290
4307
|
ta.on("theme:change", function(t) {
|
|
4291
4308
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
4292
4309
|
});
|
|
4293
|
-
var i =
|
|
4310
|
+
var i = H(t.config, function(e, t) {
|
|
4294
4311
|
qa.emit("config:change", {
|
|
4295
4312
|
newValue: e,
|
|
4296
4313
|
oldValue: t
|
|
@@ -4298,7 +4315,7 @@ function ao(e, t) {
|
|
|
4298
4315
|
}, {
|
|
4299
4316
|
immediate: !0,
|
|
4300
4317
|
deep: !0
|
|
4301
|
-
}), a =
|
|
4318
|
+
}), a = H(function() {
|
|
4302
4319
|
return t.config.ripple;
|
|
4303
4320
|
}, function(e, t) {
|
|
4304
4321
|
qa.emit("config:ripple:change", {
|
|
@@ -4308,7 +4325,7 @@ function ao(e, t) {
|
|
|
4308
4325
|
}, {
|
|
4309
4326
|
immediate: !0,
|
|
4310
4327
|
deep: !0
|
|
4311
|
-
}), o =
|
|
4328
|
+
}), o = H(function() {
|
|
4312
4329
|
return t.config.theme;
|
|
4313
4330
|
}, function(e, i) {
|
|
4314
4331
|
n.value || $.setTheme(e), t.config.unstyled || r(), n.value = !1, qa.emit("config:theme:change", {
|
|
@@ -4318,7 +4335,7 @@ function ao(e, t) {
|
|
|
4318
4335
|
}, {
|
|
4319
4336
|
immediate: !0,
|
|
4320
4337
|
deep: !1
|
|
4321
|
-
}), s =
|
|
4338
|
+
}), s = H(function() {
|
|
4322
4339
|
return t.config.unstyled;
|
|
4323
4340
|
}, function(e, n) {
|
|
4324
4341
|
!e && t.config.theme && r(), qa.emit("config:unstyled:change", {
|