@turquoisehealth/pit-viper 2.252.0 → 2.252.1
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-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +73 -70
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +415 -412
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +226 -223
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1735 -1732
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +356 -353
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +650 -647
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1241 -1238
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +421 -418
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +108 -106
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +70 -67
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +343 -340
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +146 -143
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +805 -802
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +362 -359
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +694 -692
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +736 -734
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +177 -174
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +227 -224
- package/pv-components/dist/web/pv-components.iife.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -14,72 +14,72 @@ var se = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, le = Objec
|
|
|
14
14
|
enumerable: !(r = ce(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
}, pe = (e, t, n) => (fe(e, t, "default"), n && fe(n, t, "default")), me = Math.min,
|
|
17
|
+
}, pe = (e, t, n) => (fe(e, t, "default"), n && fe(n, t, "default")), me = Math.min, he = Math.max, N = Math.round, P = (e) => ({
|
|
18
18
|
x: e,
|
|
19
19
|
y: e
|
|
20
|
-
}),
|
|
20
|
+
}), ge = {
|
|
21
21
|
left: "right",
|
|
22
22
|
right: "left",
|
|
23
23
|
bottom: "top",
|
|
24
24
|
top: "bottom"
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function _e(e, t) {
|
|
27
27
|
return typeof e == "function" ? e(t) : e;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function F(e) {
|
|
30
30
|
return e.split("-")[0];
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ve(e) {
|
|
33
33
|
return e.split("-")[1];
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ye(e) {
|
|
36
36
|
return e === "x" ? "y" : "x";
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function be(e) {
|
|
39
39
|
return e === "y" ? "height" : "width";
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function I(e) {
|
|
42
42
|
let t = e[0];
|
|
43
43
|
return t === "t" || t === "b" ? "y" : "x";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
45
|
+
function xe(e) {
|
|
46
|
+
return ye(I(e));
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Se(e, t, n) {
|
|
49
49
|
n === void 0 && (n = !1);
|
|
50
|
-
let r =
|
|
51
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
50
|
+
let r = ve(e), i = xe(e), a = be(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
51
|
+
return t.reference[a] > t.floating[a] && (o = je(o)), [o, je(o)];
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
let t =
|
|
53
|
+
function Ce(e) {
|
|
54
|
+
let t = je(e);
|
|
55
55
|
return [
|
|
56
|
-
|
|
56
|
+
we(e),
|
|
57
57
|
t,
|
|
58
|
-
|
|
58
|
+
we(t)
|
|
59
59
|
];
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function we(e) {
|
|
62
62
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
function
|
|
64
|
+
var Te = ["left", "right"], Ee = ["right", "left"], De = ["top", "bottom"], Oe = ["bottom", "top"];
|
|
65
|
+
function ke(e, t, n) {
|
|
66
66
|
switch (e) {
|
|
67
67
|
case "top":
|
|
68
|
-
case "bottom": return n ? t ?
|
|
68
|
+
case "bottom": return n ? t ? Ee : Te : t ? Te : Ee;
|
|
69
69
|
case "left":
|
|
70
|
-
case "right": return t ?
|
|
70
|
+
case "right": return t ? De : Oe;
|
|
71
71
|
default: return [];
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
let i =
|
|
76
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
77
|
-
}
|
|
78
|
-
function Ae(e) {
|
|
79
|
-
let t = L(e);
|
|
80
|
-
return he[t] + e.slice(t.length);
|
|
74
|
+
function Ae(e, t, n, r) {
|
|
75
|
+
let i = ve(e), a = ke(F(e), n === "start", r);
|
|
76
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(we)))), a;
|
|
81
77
|
}
|
|
82
78
|
function je(e) {
|
|
79
|
+
let t = F(e);
|
|
80
|
+
return ge[t] + e.slice(t.length);
|
|
81
|
+
}
|
|
82
|
+
function Me(e) {
|
|
83
83
|
return {
|
|
84
84
|
top: 0,
|
|
85
85
|
right: 0,
|
|
@@ -88,15 +88,15 @@ function je(e) {
|
|
|
88
88
|
...e
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ne(e) {
|
|
92
92
|
return typeof e == "number" ? {
|
|
93
93
|
top: e,
|
|
94
94
|
right: e,
|
|
95
95
|
bottom: e,
|
|
96
96
|
left: e
|
|
97
|
-
} :
|
|
97
|
+
} : Me(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Pe(e) {
|
|
100
100
|
let { x: t, y: n, width: r, height: i } = e;
|
|
101
101
|
return {
|
|
102
102
|
width: r,
|
|
@@ -111,8 +111,8 @@ function Ne(e) {
|
|
|
111
111
|
}
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
114
|
-
function
|
|
115
|
-
let { reference: r, floating: i } = e, a =
|
|
114
|
+
function Fe(e, t, n) {
|
|
115
|
+
let { reference: r, floating: i } = e, a = I(t), o = xe(t), s = be(o), c = F(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;
|
|
116
116
|
switch (c) {
|
|
117
117
|
case "top":
|
|
118
118
|
p = {
|
|
@@ -143,7 +143,7 @@ function Pe(e, t, n) {
|
|
|
143
143
|
y: r.y
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
switch (
|
|
146
|
+
switch (ve(t)) {
|
|
147
147
|
case "start":
|
|
148
148
|
p[o] -= f * (n && l ? -1 : 1);
|
|
149
149
|
break;
|
|
@@ -153,9 +153,9 @@ function Pe(e, t, n) {
|
|
|
153
153
|
}
|
|
154
154
|
return p;
|
|
155
155
|
}
|
|
156
|
-
async function
|
|
156
|
+
async function Ie(e, t) {
|
|
157
157
|
t === void 0 && (t = {});
|
|
158
|
-
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 } =
|
|
158
|
+
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 } = _e(t, e), p = Ne(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Pe(await i.getClippingRect({
|
|
159
159
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
160
160
|
boundary: c,
|
|
161
161
|
rootBoundary: l,
|
|
@@ -168,7 +168,7 @@ async function Fe(e, t) {
|
|
|
168
168
|
} : 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(_)) || {
|
|
169
169
|
x: 1,
|
|
170
170
|
y: 1
|
|
171
|
-
}, y =
|
|
171
|
+
}, y = Pe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
172
172
|
elements: o,
|
|
173
173
|
rect: g,
|
|
174
174
|
offsetParent: _,
|
|
@@ -181,15 +181,15 @@ async function Fe(e, t) {
|
|
|
181
181
|
right: (y.right - h.right + p.right) / v.x
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
var
|
|
184
|
+
var Le = 50, Re = async (e, t, n) => {
|
|
185
185
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
186
186
|
...o,
|
|
187
|
-
detectOverflow:
|
|
187
|
+
detectOverflow: Ie
|
|
188
188
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
189
189
|
reference: e,
|
|
190
190
|
floating: t,
|
|
191
191
|
strategy: i
|
|
192
|
-
}), { x: u, y: d } =
|
|
192
|
+
}), { x: u, y: d } = Fe(l, r, c), f = r, p = 0, m = {};
|
|
193
193
|
for (let n = 0; n < a.length; n++) {
|
|
194
194
|
let h = a[n];
|
|
195
195
|
if (!h) continue;
|
|
@@ -210,11 +210,11 @@ var Ie = 50, Le = async (e, t, n) => {
|
|
|
210
210
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
211
211
|
...m[g],
|
|
212
212
|
...b
|
|
213
|
-
}, x && p <
|
|
213
|
+
}, x && p < Le && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
214
214
|
reference: e,
|
|
215
215
|
floating: t,
|
|
216
216
|
strategy: i
|
|
217
|
-
}) : x.rects), {x: u, y: d} =
|
|
217
|
+
}) : x.rects), {x: u, y: d} = Fe(l, f, c)), n = -1);
|
|
218
218
|
}
|
|
219
219
|
return {
|
|
220
220
|
x: u,
|
|
@@ -223,19 +223,19 @@ var Ie = 50, Le = async (e, t, n) => {
|
|
|
223
223
|
strategy: i,
|
|
224
224
|
middlewareData: m
|
|
225
225
|
};
|
|
226
|
-
},
|
|
226
|
+
}, ze = function(e) {
|
|
227
227
|
return e === void 0 && (e = {}), {
|
|
228
228
|
name: "flip",
|
|
229
229
|
options: e,
|
|
230
230
|
async fn(t) {
|
|
231
231
|
var n;
|
|
232
|
-
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 } =
|
|
232
|
+
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 } = _e(e, t);
|
|
233
233
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
234
|
-
let g =
|
|
235
|
-
!d && x && b.push(...
|
|
234
|
+
let g = F(r), _ = I(o), v = F(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [je(o)] : Ce(o)), x = p !== "none";
|
|
235
|
+
!d && x && b.push(...Ae(o, m, p, y));
|
|
236
236
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
237
237
|
if (l && w.push(C[g]), u) {
|
|
238
|
-
let e =
|
|
238
|
+
let e = Se(r, a, y);
|
|
239
239
|
w.push(C[e[0]], C[e[1]]);
|
|
240
240
|
}
|
|
241
241
|
if (T = [...T, {
|
|
@@ -243,7 +243,7 @@ var Ie = 50, Le = async (e, t, n) => {
|
|
|
243
243
|
overflows: w
|
|
244
244
|
}], !w.every((e) => e <= 0)) {
|
|
245
245
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
246
|
-
if (t && (!(u === "alignment" && _ !==
|
|
246
|
+
if (t && (!(u === "alignment" && _ !== I(t)) || T.every((e) => I(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
247
247
|
data: {
|
|
248
248
|
index: e,
|
|
249
249
|
overflows: T
|
|
@@ -255,7 +255,7 @@ var Ie = 50, Le = async (e, t, n) => {
|
|
|
255
255
|
case "bestFit": {
|
|
256
256
|
let e = T.filter((e) => {
|
|
257
257
|
if (x) {
|
|
258
|
-
let t =
|
|
258
|
+
let t = I(e.placement);
|
|
259
259
|
return t === _ || t === "y";
|
|
260
260
|
}
|
|
261
261
|
return !0;
|
|
@@ -272,9 +272,9 @@ var Ie = 50, Le = async (e, t, n) => {
|
|
|
272
272
|
return {};
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
},
|
|
276
|
-
async function
|
|
277
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
275
|
+
}, Be = /* @__PURE__ */ new Set(["left", "top"]);
|
|
276
|
+
async function Ve(e, t) {
|
|
277
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = F(n), s = ve(n), c = I(n) === "y", l = Be.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = _e(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
278
278
|
mainAxis: d,
|
|
279
279
|
crossAxis: 0,
|
|
280
280
|
alignmentAxis: null
|
|
@@ -291,13 +291,13 @@ async function Be(e, t) {
|
|
|
291
291
|
y: p * u
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
|
-
var
|
|
294
|
+
var He = function(e) {
|
|
295
295
|
return e === void 0 && (e = 0), {
|
|
296
296
|
name: "offset",
|
|
297
297
|
options: e,
|
|
298
298
|
async fn(t) {
|
|
299
299
|
var n;
|
|
300
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
300
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Ve(t, e);
|
|
301
301
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
302
302
|
x: r + s.x,
|
|
303
303
|
y: i + s.y,
|
|
@@ -311,39 +311,39 @@ var Ve = function(e) {
|
|
|
311
311
|
};
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region ../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
314
|
-
function
|
|
314
|
+
function Ue() {
|
|
315
315
|
return typeof window < "u";
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
return
|
|
317
|
+
function We(e) {
|
|
318
|
+
return Ge(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function L(e) {
|
|
321
321
|
var t;
|
|
322
322
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
return ((
|
|
326
|
-
}
|
|
327
|
-
function We(e) {
|
|
328
|
-
return He() ? e instanceof Node || e instanceof R(e).Node : !1;
|
|
324
|
+
function R(e) {
|
|
325
|
+
return ((Ge(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
329
326
|
}
|
|
330
|
-
function
|
|
331
|
-
return
|
|
327
|
+
function Ge(e) {
|
|
328
|
+
return Ue() ? e instanceof Node || e instanceof L(e).Node : !1;
|
|
332
329
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
330
|
+
function z(e) {
|
|
331
|
+
return Ue() ? e instanceof Element || e instanceof L(e).Element : !1;
|
|
335
332
|
}
|
|
336
|
-
function
|
|
337
|
-
return
|
|
333
|
+
function B(e) {
|
|
334
|
+
return Ue() ? e instanceof HTMLElement || e instanceof L(e).HTMLElement : !1;
|
|
338
335
|
}
|
|
339
336
|
function Ke(e) {
|
|
340
|
-
|
|
341
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
337
|
+
return !Ue() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof L(e).ShadowRoot;
|
|
342
338
|
}
|
|
343
339
|
function qe(e) {
|
|
344
|
-
|
|
340
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = V(e);
|
|
341
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
345
342
|
}
|
|
346
343
|
function Je(e) {
|
|
344
|
+
return /^(table|td|th)$/.test(We(e));
|
|
345
|
+
}
|
|
346
|
+
function Ye(e) {
|
|
347
347
|
try {
|
|
348
348
|
if (e.matches(":popover-open")) return !0;
|
|
349
349
|
} catch {}
|
|
@@ -353,31 +353,31 @@ function Je(e) {
|
|
|
353
353
|
return !1;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
var
|
|
357
|
-
function $e(e) {
|
|
358
|
-
let t = B(e) ? H(e) : e;
|
|
359
|
-
return Ze(t.transform) || Ze(t.translate) || Ze(t.scale) || Ze(t.rotate) || Ze(t.perspective) || !tt() && (Ze(t.backdropFilter) || Ze(t.filter)) || Ye.test(t.willChange || "") || Xe.test(t.contain || "");
|
|
360
|
-
}
|
|
356
|
+
var Xe = /transform|translate|scale|rotate|perspective|filter/, Ze = /paint|layout|strict|content/, Qe = (e) => !!e && e !== "none", $e;
|
|
361
357
|
function et(e) {
|
|
362
|
-
let t =
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
358
|
+
let t = z(e) ? V(e) : e;
|
|
359
|
+
return Qe(t.transform) || Qe(t.translate) || Qe(t.scale) || Qe(t.rotate) || Qe(t.perspective) || !nt() && (Qe(t.backdropFilter) || Qe(t.filter)) || Xe.test(t.willChange || "") || Ze.test(t.contain || "");
|
|
360
|
+
}
|
|
361
|
+
function tt(e) {
|
|
362
|
+
let t = H(e);
|
|
363
|
+
for (; B(t) && !rt(t);) {
|
|
364
|
+
if (et(t)) return t;
|
|
365
|
+
if (Ye(t)) return null;
|
|
366
|
+
t = H(t);
|
|
367
367
|
}
|
|
368
368
|
return null;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return
|
|
370
|
+
function nt() {
|
|
371
|
+
return $e ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), $e;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
return /^(html|body|#document)$/.test(
|
|
373
|
+
function rt(e) {
|
|
374
|
+
return /^(html|body|#document)$/.test(We(e));
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
376
|
+
function V(e) {
|
|
377
|
+
return L(e).getComputedStyle(e);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
379
|
+
function it(e) {
|
|
380
|
+
return z(e) ? {
|
|
381
381
|
scrollLeft: e.scrollLeft,
|
|
382
382
|
scrollTop: e.scrollTop
|
|
383
383
|
} : {
|
|
@@ -385,21 +385,21 @@ function rt(e) {
|
|
|
385
385
|
scrollTop: e.scrollY
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
if (
|
|
390
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
391
|
-
return
|
|
388
|
+
function H(e) {
|
|
389
|
+
if (We(e) === "html") return e;
|
|
390
|
+
let t = e.assignedSlot || e.parentNode || Ke(e) && e.host || R(e);
|
|
391
|
+
return Ke(t) ? t.host : t;
|
|
392
392
|
}
|
|
393
393
|
function at(e) {
|
|
394
|
-
let t =
|
|
395
|
-
return
|
|
394
|
+
let t = H(e);
|
|
395
|
+
return rt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : B(t) && qe(t) ? t : at(t);
|
|
396
396
|
}
|
|
397
397
|
function ot(e, t, n) {
|
|
398
398
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
399
|
-
let r = at(e), i = r === e.ownerDocument?.body, a =
|
|
399
|
+
let r = at(e), i = r === e.ownerDocument?.body, a = L(r);
|
|
400
400
|
if (i) {
|
|
401
401
|
let e = st(a);
|
|
402
|
-
return t.concat(a, a.visualViewport || [],
|
|
402
|
+
return t.concat(a, a.visualViewport || [], qe(r) ? r : [], e && n ? ot(e) : []);
|
|
403
403
|
} else return t.concat(r, ot(r, [], n));
|
|
404
404
|
}
|
|
405
405
|
function st(e) {
|
|
@@ -408,7 +408,7 @@ function st(e) {
|
|
|
408
408
|
//#endregion
|
|
409
409
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
410
410
|
function ct(e) {
|
|
411
|
-
let t =
|
|
411
|
+
let t = V(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = B(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = N(n) !== a || N(r) !== o;
|
|
412
412
|
return s && (n = a, r = o), {
|
|
413
413
|
width: n,
|
|
414
414
|
height: r,
|
|
@@ -416,41 +416,41 @@ function ct(e) {
|
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
418
|
function lt(e) {
|
|
419
|
-
return
|
|
419
|
+
return z(e) ? e : e.contextElement;
|
|
420
420
|
}
|
|
421
421
|
function ut(e) {
|
|
422
422
|
let t = lt(e);
|
|
423
|
-
if (!
|
|
424
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = ct(t), o = (a ?
|
|
423
|
+
if (!B(t)) return P(1);
|
|
424
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = ct(t), o = (a ? N(n.width) : n.width) / r, s = (a ? N(n.height) : n.height) / i;
|
|
425
425
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
426
426
|
x: o,
|
|
427
427
|
y: s
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
|
-
var dt = /* @__PURE__ */
|
|
430
|
+
var dt = /* @__PURE__ */ P(0);
|
|
431
431
|
function ft(e) {
|
|
432
|
-
let t =
|
|
433
|
-
return !
|
|
432
|
+
let t = L(e);
|
|
433
|
+
return !nt() || !t.visualViewport ? dt : {
|
|
434
434
|
x: t.visualViewport.offsetLeft,
|
|
435
435
|
y: t.visualViewport.offsetTop
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
function pt(e, t, n) {
|
|
439
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
439
|
+
return t === void 0 && (t = !1), !n || t && n !== L(e) ? !1 : t;
|
|
440
440
|
}
|
|
441
441
|
function mt(e, t, n, r) {
|
|
442
442
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
443
|
-
let i = e.getBoundingClientRect(), a = lt(e), o =
|
|
444
|
-
t && (r ?
|
|
445
|
-
let s = pt(a, n, r) ? ft(a) :
|
|
443
|
+
let i = e.getBoundingClientRect(), a = lt(e), o = P(1);
|
|
444
|
+
t && (r ? z(r) && (o = ut(r)) : o = ut(e));
|
|
445
|
+
let s = pt(a, n, r) ? ft(a) : P(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;
|
|
446
446
|
if (a) {
|
|
447
|
-
let e =
|
|
447
|
+
let e = L(a), t = r && z(r) ? L(r) : r, n = e, i = st(n);
|
|
448
448
|
for (; i && r && t !== n;) {
|
|
449
|
-
let e = ut(i), t = i.getBoundingClientRect(), r =
|
|
450
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
449
|
+
let e = ut(i), t = i.getBoundingClientRect(), r = V(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
450
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = L(i), i = st(n);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
return
|
|
453
|
+
return Pe({
|
|
454
454
|
width: u,
|
|
455
455
|
height: d,
|
|
456
456
|
x: c,
|
|
@@ -458,8 +458,8 @@ function mt(e, t, n, r) {
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
function ht(e, t) {
|
|
461
|
-
let n =
|
|
462
|
-
return t ? t.left + n : mt(
|
|
461
|
+
let n = it(e).scrollLeft;
|
|
462
|
+
return t ? t.left + n : mt(R(e)).left + n;
|
|
463
463
|
}
|
|
464
464
|
function gt(e, t) {
|
|
465
465
|
let n = e.getBoundingClientRect();
|
|
@@ -469,17 +469,17 @@ function gt(e, t) {
|
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
function _t(e) {
|
|
472
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
472
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = R(r), s = t ? Ye(t.floating) : !1;
|
|
473
473
|
if (r === o || s && a) return n;
|
|
474
474
|
let c = {
|
|
475
475
|
scrollLeft: 0,
|
|
476
476
|
scrollTop: 0
|
|
477
|
-
}, l =
|
|
478
|
-
if ((d || !d && !a) && ((
|
|
477
|
+
}, l = P(1), u = P(0), d = B(r);
|
|
478
|
+
if ((d || !d && !a) && ((We(r) !== "body" || qe(o)) && (c = it(r)), d)) {
|
|
479
479
|
let e = mt(r);
|
|
480
480
|
l = ut(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
481
481
|
}
|
|
482
|
-
let f = o && !d && !a ? gt(o, c) :
|
|
482
|
+
let f = o && !d && !a ? gt(o, c) : P(0);
|
|
483
483
|
return {
|
|
484
484
|
width: n.width * l.x,
|
|
485
485
|
height: n.height * l.y,
|
|
@@ -491,8 +491,8 @@ function vt(e) {
|
|
|
491
491
|
return Array.from(e.getClientRects());
|
|
492
492
|
}
|
|
493
493
|
function yt(e) {
|
|
494
|
-
let t =
|
|
495
|
-
return
|
|
494
|
+
let t = R(e), n = it(e), r = e.ownerDocument.body, i = he(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = he(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ht(e), s = -n.scrollTop;
|
|
495
|
+
return V(r).direction === "rtl" && (o += he(t.clientWidth, r.clientWidth) - i), {
|
|
496
496
|
width: i,
|
|
497
497
|
height: a,
|
|
498
498
|
x: o,
|
|
@@ -501,10 +501,10 @@ function yt(e) {
|
|
|
501
501
|
}
|
|
502
502
|
var bt = 25;
|
|
503
503
|
function xt(e, t) {
|
|
504
|
-
let n =
|
|
504
|
+
let n = L(e), r = R(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
505
505
|
if (i) {
|
|
506
506
|
a = i.width, o = i.height;
|
|
507
|
-
let e =
|
|
507
|
+
let e = nt();
|
|
508
508
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
509
509
|
}
|
|
510
510
|
let l = ht(r);
|
|
@@ -520,7 +520,7 @@ function xt(e, t) {
|
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
function St(e, t) {
|
|
523
|
-
let n = mt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a =
|
|
523
|
+
let n = mt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = B(e) ? ut(e) : P(1);
|
|
524
524
|
return {
|
|
525
525
|
width: e.clientWidth * a.x,
|
|
526
526
|
height: e.clientHeight * a.y,
|
|
@@ -531,8 +531,8 @@ function St(e, t) {
|
|
|
531
531
|
function Ct(e, t, n) {
|
|
532
532
|
let r;
|
|
533
533
|
if (t === "viewport") r = xt(e, n);
|
|
534
|
-
else if (t === "document") r = yt(
|
|
535
|
-
else if (
|
|
534
|
+
else if (t === "document") r = yt(R(e));
|
|
535
|
+
else if (z(t)) r = St(t, n);
|
|
536
536
|
else {
|
|
537
537
|
let n = ft(e);
|
|
538
538
|
r = {
|
|
@@ -542,27 +542,27 @@ function Ct(e, t, n) {
|
|
|
542
542
|
height: t.height
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
return
|
|
545
|
+
return Pe(r);
|
|
546
546
|
}
|
|
547
547
|
function wt(e, t) {
|
|
548
|
-
let n =
|
|
549
|
-
return n === t || !
|
|
548
|
+
let n = H(e);
|
|
549
|
+
return n === t || !z(n) || rt(n) ? !1 : V(n).position === "fixed" || wt(n, t);
|
|
550
550
|
}
|
|
551
551
|
function Tt(e, t) {
|
|
552
552
|
let n = t.get(e);
|
|
553
553
|
if (n) return n;
|
|
554
|
-
let r = ot(e, [], !1).filter((e) =>
|
|
555
|
-
for (;
|
|
556
|
-
let t =
|
|
557
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
554
|
+
let r = ot(e, [], !1).filter((e) => z(e) && We(e) !== "body"), i = null, a = V(e).position === "fixed", o = a ? H(e) : e;
|
|
555
|
+
for (; z(o) && !rt(o);) {
|
|
556
|
+
let t = V(o), n = et(o);
|
|
557
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || qe(o) && !n && wt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = H(o);
|
|
558
558
|
}
|
|
559
559
|
return t.set(e, r), r;
|
|
560
560
|
}
|
|
561
561
|
function Et(e) {
|
|
562
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
562
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Ye(t) ? [] : Tt(t, this._c) : [].concat(n), r], o = Ct(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
563
563
|
for (let e = 1; e < a.length; e++) {
|
|
564
564
|
let n = Ct(t, a[e], i);
|
|
565
|
-
s =
|
|
565
|
+
s = he(n.top, s), c = me(n.right, c), l = me(n.bottom, l), u = he(n.left, u);
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
568
568
|
width: c - u,
|
|
@@ -579,19 +579,19 @@ function Dt(e) {
|
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
581
|
function Ot(e, t, n) {
|
|
582
|
-
let r =
|
|
582
|
+
let r = B(t), i = R(t), a = n === "fixed", o = mt(e, !0, a, t), s = {
|
|
583
583
|
scrollLeft: 0,
|
|
584
584
|
scrollTop: 0
|
|
585
|
-
}, c =
|
|
585
|
+
}, c = P(0);
|
|
586
586
|
function l() {
|
|
587
587
|
c.x = ht(i);
|
|
588
588
|
}
|
|
589
|
-
if (r || !r && !a) if ((
|
|
589
|
+
if (r || !r && !a) if ((We(t) !== "body" || qe(i)) && (s = it(t)), r) {
|
|
590
590
|
let e = mt(t, !0, a, t);
|
|
591
591
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
592
592
|
} else i && l();
|
|
593
593
|
a && !r && i && l();
|
|
594
|
-
let u = i && !r && !a ? gt(i, s) :
|
|
594
|
+
let u = i && !r && !a ? gt(i, s) : P(0);
|
|
595
595
|
return {
|
|
596
596
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
597
597
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -600,28 +600,28 @@ function Ot(e, t, n) {
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
function kt(e) {
|
|
603
|
-
return
|
|
603
|
+
return V(e).position === "static";
|
|
604
604
|
}
|
|
605
605
|
function At(e, t) {
|
|
606
|
-
if (!
|
|
606
|
+
if (!B(e) || V(e).position === "fixed") return null;
|
|
607
607
|
if (t) return t(e);
|
|
608
608
|
let n = e.offsetParent;
|
|
609
|
-
return
|
|
609
|
+
return R(e) === n && (n = n.ownerDocument.body), n;
|
|
610
610
|
}
|
|
611
611
|
function jt(e, t) {
|
|
612
|
-
let n =
|
|
613
|
-
if (
|
|
614
|
-
if (!
|
|
615
|
-
let t =
|
|
616
|
-
for (; t && !
|
|
617
|
-
if (
|
|
618
|
-
t =
|
|
612
|
+
let n = L(e);
|
|
613
|
+
if (Ye(e)) return n;
|
|
614
|
+
if (!B(e)) {
|
|
615
|
+
let t = H(e);
|
|
616
|
+
for (; t && !rt(t);) {
|
|
617
|
+
if (z(t) && !kt(t)) return t;
|
|
618
|
+
t = H(t);
|
|
619
619
|
}
|
|
620
620
|
return n;
|
|
621
621
|
}
|
|
622
622
|
let r = At(e, t);
|
|
623
|
-
for (; r &&
|
|
624
|
-
return r &&
|
|
623
|
+
for (; r && Je(r) && kt(r);) r = At(r, t);
|
|
624
|
+
return r && rt(r) && kt(r) && !et(r) ? n : r || tt(e) || n;
|
|
625
625
|
}
|
|
626
626
|
var Mt = async function(e) {
|
|
627
627
|
let t = this.getOffsetParent || jt, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -636,20 +636,20 @@ var Mt = async function(e) {
|
|
|
636
636
|
};
|
|
637
637
|
};
|
|
638
638
|
function Nt(e) {
|
|
639
|
-
return
|
|
639
|
+
return V(e).direction === "rtl";
|
|
640
640
|
}
|
|
641
641
|
var Pt = {
|
|
642
642
|
convertOffsetParentRelativeRectToViewportRelativeRect: _t,
|
|
643
|
-
getDocumentElement:
|
|
643
|
+
getDocumentElement: R,
|
|
644
644
|
getClippingRect: Et,
|
|
645
645
|
getOffsetParent: jt,
|
|
646
646
|
getElementRects: Mt,
|
|
647
647
|
getClientRects: vt,
|
|
648
648
|
getDimensions: Dt,
|
|
649
649
|
getScale: ut,
|
|
650
|
-
isElement:
|
|
650
|
+
isElement: z,
|
|
651
651
|
isRTL: Nt
|
|
652
|
-
}, Ft =
|
|
652
|
+
}, Ft = He, It = ze, Lt = (e, t, n) => {
|
|
653
653
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
654
654
|
platform: Pt,
|
|
655
655
|
...n
|
|
@@ -657,7 +657,7 @@ var Pt = {
|
|
|
657
657
|
...i.platform,
|
|
658
658
|
_c: r
|
|
659
659
|
};
|
|
660
|
-
return
|
|
660
|
+
return Re(e, t, {
|
|
661
661
|
...i,
|
|
662
662
|
platform: a
|
|
663
663
|
});
|
|
@@ -691,7 +691,7 @@ function Ht(e) {
|
|
|
691
691
|
function Ut(e) {
|
|
692
692
|
if (Ht(e)) {
|
|
693
693
|
let t = e.$el;
|
|
694
|
-
return
|
|
694
|
+
return Ge(t) && We(t) === "#comment" ? null : t;
|
|
695
695
|
}
|
|
696
696
|
return e;
|
|
697
697
|
}
|
|
@@ -1120,7 +1120,7 @@ function Dn(e, t = {}) {
|
|
|
1120
1120
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
1121
1121
|
var On = /* @__PURE__ */ new Set(), kn = (e, t) => {
|
|
1122
1122
|
let n = t.root.value;
|
|
1123
|
-
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n)) : !1;
|
|
1123
|
+
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
1124
1124
|
}, An = (e) => (C(() => On.delete(e)), (t) => {
|
|
1125
1125
|
if (!t) {
|
|
1126
1126
|
On.delete(e);
|
|
@@ -1147,6 +1147,7 @@ var On = /* @__PURE__ */ new Set(), kn = (e, t) => {
|
|
|
1147
1147
|
type: Boolean,
|
|
1148
1148
|
default: !1
|
|
1149
1149
|
},
|
|
1150
|
+
hoverTarget: { type: String },
|
|
1150
1151
|
disableInteractive: {
|
|
1151
1152
|
type: Boolean,
|
|
1152
1153
|
default: !1
|
|
@@ -1205,11 +1206,12 @@ var On = /* @__PURE__ */ new Set(), kn = (e, t) => {
|
|
|
1205
1206
|
"position-try-fallbacks: flip-block",
|
|
1206
1207
|
"position-visibility: anchors-visible",
|
|
1207
1208
|
`anchor-scope: ${Mn}`
|
|
1208
|
-
].every((e) => CSS.supports(e)), _ = E(!1), y = E(null), b = E(null), S = E(null), T = E(null), ee =
|
|
1209
|
+
].every((e) => CSS.supports(e)), _ = E(!1), y = E(null), b = E(null), S = E(null), T = E(null), ee = n(() => s.hoverTarget && b.value?.closest(s.hoverTarget) || b.value), O = yn(ee), k = yn(T), A = E(!1), ne = E(!1), ie = E(!1), ae = An({
|
|
1209
1210
|
root: y,
|
|
1210
1211
|
floating: T,
|
|
1211
|
-
|
|
1212
|
-
|
|
1212
|
+
hoverArea: n(() => s.hoverTarget ? ee.value : null),
|
|
1213
|
+
close: () => s.disableClickOutsideToClose ? !1 : (ve(), !0)
|
|
1214
|
+
}), se = {
|
|
1213
1215
|
"top-center": "top",
|
|
1214
1216
|
"bottom-center": "bottom",
|
|
1215
1217
|
"center-left": "left",
|
|
@@ -1220,7 +1222,7 @@ var On = /* @__PURE__ */ new Set(), kn = (e, t) => {
|
|
|
1220
1222
|
"top-right": "top-end",
|
|
1221
1223
|
"bottom-left": "bottom-start",
|
|
1222
1224
|
"bottom-right": "bottom-end"
|
|
1223
|
-
},
|
|
1225
|
+
}, ce = {
|
|
1224
1226
|
"top-center": {
|
|
1225
1227
|
area: "top",
|
|
1226
1228
|
margin: "margin-block-end"
|
|
@@ -1261,30 +1263,30 @@ var On = /* @__PURE__ */ new Set(), kn = (e, t) => {
|
|
|
1261
1263
|
area: "bottom span-left",
|
|
1262
1264
|
margin: "margin-block-start"
|
|
1263
1265
|
}
|
|
1264
|
-
},
|
|
1266
|
+
}, le = n(() => s.showOnHover || s.disableClickOutsideToClose ? "manual" : "auto"), ue = n(() => ({
|
|
1265
1267
|
width: "fit-content",
|
|
1266
1268
|
...g ? { "anchor-scope": Mn } : void 0,
|
|
1267
1269
|
...s.cssCustomProperties
|
|
1268
|
-
})),
|
|
1269
|
-
let e =
|
|
1270
|
+
})), de = n(() => g ? { "anchor-name": Mn } : void 0), fe = n(() => {
|
|
1271
|
+
let e = ce[s.position];
|
|
1270
1272
|
return {
|
|
1271
1273
|
"position-anchor": Mn,
|
|
1272
1274
|
"position-area": e.area,
|
|
1273
1275
|
"position-try-fallbacks": s.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1274
1276
|
[e.margin]: `${s.offset ?? 0}px`
|
|
1275
1277
|
};
|
|
1276
|
-
}),
|
|
1278
|
+
}), pe = () => {}, me = () => ({});
|
|
1277
1279
|
if (!g) {
|
|
1278
1280
|
let e = [];
|
|
1279
1281
|
s.disableAutoPlacement || e.push(It({ fallbackStrategy: "initialPlacement" })), s.offset && e.push(Ft(s.offset));
|
|
1280
1282
|
let t = qt(S, T, {
|
|
1281
|
-
placement:
|
|
1283
|
+
placement: se[s.position],
|
|
1282
1284
|
strategy: s.positioningStrategy,
|
|
1283
1285
|
middleware: e
|
|
1284
1286
|
});
|
|
1285
|
-
|
|
1287
|
+
pe = t.update, me = () => t.floatingStyles.value;
|
|
1286
1288
|
let r = vn(S), i = /* @__PURE__ */ on(() => {
|
|
1287
|
-
c.value &&
|
|
1289
|
+
c.value && pe();
|
|
1288
1290
|
}, 5);
|
|
1289
1291
|
M([
|
|
1290
1292
|
r.top,
|
|
@@ -1292,110 +1294,110 @@ var On = /* @__PURE__ */ new Set(), kn = (e, t) => {
|
|
|
1292
1294
|
r.width,
|
|
1293
1295
|
r.height
|
|
1294
1296
|
], i), fn(y, () => {
|
|
1295
|
-
s.disableClickOutsideToClose ||
|
|
1297
|
+
s.disableClickOutsideToClose || F(!1);
|
|
1296
1298
|
}, { ignore: n(() => [
|
|
1297
1299
|
T.value,
|
|
1298
1300
|
".p-datepicker-panel",
|
|
1299
1301
|
...s.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1300
1302
|
]) });
|
|
1301
1303
|
}
|
|
1302
|
-
let
|
|
1303
|
-
...
|
|
1304
|
+
let he = n(() => ({
|
|
1305
|
+
...me(),
|
|
1304
1306
|
zIndex: s.zIndex
|
|
1305
|
-
})), N, P,
|
|
1307
|
+
})), N, P, ge = () => {
|
|
1306
1308
|
N && clearTimeout(N), N = void 0;
|
|
1307
|
-
},
|
|
1309
|
+
}, _e = () => {
|
|
1308
1310
|
P && clearTimeout(P), P = void 0;
|
|
1309
|
-
},
|
|
1310
|
-
|
|
1311
|
+
}, F = (e) => {
|
|
1312
|
+
ge(), _e(), !(e && (s.disabled || !m.value)) && (e && s.delay > 0 && (s.showOnHover || !g) ? N = setTimeout(() => {
|
|
1311
1313
|
c.value = !0, N = void 0;
|
|
1312
1314
|
}, s.delay) : c.value = e);
|
|
1313
|
-
},
|
|
1314
|
-
|
|
1315
|
-
},
|
|
1315
|
+
}, ve = () => {
|
|
1316
|
+
ge(), _e(), c.value = !1;
|
|
1317
|
+
}, ye = () => {
|
|
1316
1318
|
let e = T.value;
|
|
1317
1319
|
!e || !_.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1318
|
-
},
|
|
1320
|
+
}, be = n(() => !!c.value && (k.value || ne.value)), I = n(() => !s.showOnHover || ie.value ? !1 : s.disableInteractive ? O.value || A.value : O.value || A.value || be.value);
|
|
1319
1321
|
M([
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1322
|
+
O,
|
|
1323
|
+
A,
|
|
1324
|
+
ne
|
|
1323
1325
|
], ([e, t, n]) => {
|
|
1324
|
-
!e && !t && !n && (
|
|
1326
|
+
!e && !t && !n && (ie.value = !1);
|
|
1325
1327
|
});
|
|
1326
|
-
let
|
|
1327
|
-
k.value = !s.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1328
|
-
}, be = ({ target: e }) => {
|
|
1328
|
+
let xe = ({ target: e }) => {
|
|
1329
1329
|
A.value = !s.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1330
|
-
},
|
|
1331
|
-
|
|
1332
|
-
},
|
|
1330
|
+
}, Se = ({ target: e }) => {
|
|
1331
|
+
ne.value = !s.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1332
|
+
}, Ce = () => {
|
|
1333
|
+
ne.value = !1;
|
|
1334
|
+
}, we = () => {
|
|
1333
1335
|
if (s.showOnHover) {
|
|
1334
1336
|
if (s.disableClickOutsideToClose) return;
|
|
1335
1337
|
if (!c.value && !N && s.enableClickToggle) {
|
|
1336
|
-
|
|
1338
|
+
ie.value = !1, F(!0);
|
|
1337
1339
|
return;
|
|
1338
1340
|
}
|
|
1339
|
-
|
|
1341
|
+
ie.value = !0, ve();
|
|
1340
1342
|
return;
|
|
1341
1343
|
}
|
|
1342
|
-
|
|
1343
|
-
},
|
|
1344
|
+
F(N ? !1 : !c.value);
|
|
1345
|
+
}, Te = (e) => {
|
|
1344
1346
|
let t = e.newState === "open";
|
|
1345
1347
|
c.value !== t && (c.value = t);
|
|
1346
|
-
},
|
|
1347
|
-
g &&
|
|
1348
|
+
}, Ee = (e) => {
|
|
1349
|
+
g && le.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), F(!1));
|
|
1348
1350
|
};
|
|
1349
1351
|
return M(c, async (e) => {
|
|
1350
|
-
if (s.showOnHover && s.enableGroupSync &&
|
|
1351
|
-
e &&
|
|
1352
|
+
if (s.showOnHover && s.enableGroupSync && ae(!!e), !g) {
|
|
1353
|
+
e && pe();
|
|
1352
1354
|
return;
|
|
1353
1355
|
}
|
|
1354
|
-
await h(),
|
|
1355
|
-
}), M(
|
|
1356
|
+
await h(), ye();
|
|
1357
|
+
}), M(I, (e) => {
|
|
1356
1358
|
if (s.showOnHover) {
|
|
1357
1359
|
if (e) {
|
|
1358
|
-
|
|
1360
|
+
F(!0);
|
|
1359
1361
|
return;
|
|
1360
1362
|
}
|
|
1361
|
-
|
|
1362
|
-
P = void 0,
|
|
1363
|
-
}, s.closeDelay)) :
|
|
1363
|
+
ge(), s.closeDelay > 0 ? (_e(), P = setTimeout(() => {
|
|
1364
|
+
P = void 0, I.value || F(!1);
|
|
1365
|
+
}, s.closeDelay)) : F(!1);
|
|
1364
1366
|
}
|
|
1365
1367
|
}), M(m, (e) => {
|
|
1366
|
-
e ? g && c.value && h(
|
|
1368
|
+
e ? g && c.value && h(ye) : ve();
|
|
1367
1369
|
}), x(() => {
|
|
1368
|
-
S.value = b.value, _.value = !0, c.value && h(() => g ?
|
|
1370
|
+
S.value = b.value, _.value = !0, c.value && h(() => g ? ye() : pe());
|
|
1369
1371
|
}), C(() => {
|
|
1370
|
-
|
|
1372
|
+
ge(), _e();
|
|
1371
1373
|
}), M(() => s.disabled, (e) => {
|
|
1372
1374
|
if (!e) {
|
|
1373
|
-
|
|
1375
|
+
I.value && F(!0);
|
|
1374
1376
|
return;
|
|
1375
1377
|
}
|
|
1376
|
-
|
|
1378
|
+
A.value &&= !1, ne.value &&= !1, F(!1);
|
|
1377
1379
|
}), (n, l) => (w(), a("div", {
|
|
1378
1380
|
ref_key: "root",
|
|
1379
1381
|
ref: y,
|
|
1380
|
-
style: v(
|
|
1381
|
-
onKeydown:
|
|
1382
|
+
style: v(ue.value),
|
|
1383
|
+
onKeydown: Ee
|
|
1382
1384
|
}, [o("div", {
|
|
1383
1385
|
ref_key: "triggerWrapper",
|
|
1384
1386
|
ref: b,
|
|
1385
|
-
style: v(
|
|
1386
|
-
onClick:
|
|
1387
|
-
onFocusin:
|
|
1388
|
-
onFocusout: l[0] ||= (e) =>
|
|
1387
|
+
style: v(de.value),
|
|
1388
|
+
onClick: we,
|
|
1389
|
+
onFocusin: xe,
|
|
1390
|
+
onFocusout: l[0] ||= (e) => A.value = !1
|
|
1389
1391
|
}, [D(n.$slots, "trigger")], 36), _.value && j(g) && m.value ? (w(), a("div", {
|
|
1390
1392
|
key: 0,
|
|
1391
1393
|
ref_key: "floating",
|
|
1392
1394
|
ref: T,
|
|
1393
1395
|
class: "pv-floating pv-floating-native",
|
|
1394
|
-
popover:
|
|
1395
|
-
style: v(
|
|
1396
|
-
onToggle:
|
|
1397
|
-
onFocusin:
|
|
1398
|
-
onFocusout:
|
|
1396
|
+
popover: le.value,
|
|
1397
|
+
style: v(fe.value),
|
|
1398
|
+
onToggle: Te,
|
|
1399
|
+
onFocusin: Se,
|
|
1400
|
+
onFocusout: Ce
|
|
1399
1401
|
}, [e.disabled ? i("v-if", !0) : D(n.$slots, "content", { key: 0 })], 44, jn)) : m.value ? (w(), r(t, {
|
|
1400
1402
|
key: 1,
|
|
1401
1403
|
to: e.teleportLocation,
|
|
@@ -1404,9 +1406,9 @@ var On = /* @__PURE__ */ new Set(), kn = (e, t) => {
|
|
|
1404
1406
|
ref_key: "floating",
|
|
1405
1407
|
ref: T,
|
|
1406
1408
|
class: "pv-floating",
|
|
1407
|
-
style: v(
|
|
1408
|
-
onFocusin:
|
|
1409
|
-
onFocusout:
|
|
1409
|
+
style: v(he.value),
|
|
1410
|
+
onFocusin: Se,
|
|
1411
|
+
onFocusout: Ce
|
|
1410
1412
|
}, [D(n.$slots, "content")], 36), [[re, c.value]])], 8, ["to", "disabled"])) : i("v-if", !0)], 36));
|
|
1411
1413
|
}
|
|
1412
1414
|
}), Pn = ["data-variant"], Fn = /* @__PURE__ */ l({
|
|
@@ -1432,6 +1434,7 @@ var On = /* @__PURE__ */ new Set(), kn = (e, t) => {
|
|
|
1432
1434
|
type: Boolean,
|
|
1433
1435
|
default: !0
|
|
1434
1436
|
},
|
|
1437
|
+
hoverTarget: { type: String },
|
|
1435
1438
|
disableInteractive: {
|
|
1436
1439
|
type: Boolean,
|
|
1437
1440
|
default: !1
|