@eodash/eodash 5.0.0-alpha.2.6 → 5.0.0-alpha.2.7
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/core/client/composables/DefineWidgets.js +1 -1
- package/core/client/composables/index.js +11 -0
- package/core/client/eodash.js +15 -2
- package/core/client/store/Actions.js +8 -0
- package/core/client/types.d.ts +6 -1
- package/core/client/utils/index.js +12 -0
- package/dist/client/{DashboardLayout-BuDcv6LM.js → DashboardLayout-Cbci3g7o.js} +2 -2
- package/dist/client/{DynamicWebComponent-BEP4rVce.js → DynamicWebComponent-DzmQ3Fr3.js} +2 -2
- package/dist/client/EodashDatePicker-SP5bYISd.js +252 -0
- package/dist/client/{EodashItemFilter-BElmgrST.js → EodashItemFilter-B9Tf2TBw.js} +2 -2
- package/dist/client/{EodashMap-DXyOgcEd.js → EodashMap-D_znzmX7.js} +5 -5
- package/dist/client/EodashMapBtns-BOKugQ88.js +37 -0
- package/dist/client/ExportState-D7m9s4T8.js +558 -0
- package/dist/client/{Footer-CoPx6UXQ.js → Footer-C2uV1-zu.js} +11 -11
- package/dist/client/Header-C2ROtxo_.js +350 -0
- package/dist/client/{IframeWrapper-2w2ye0zM.js → IframeWrapper-Wwou4pwf.js} +1 -1
- package/dist/client/{MobileLayout-C9OVcP12.js → MobileLayout-DR27Ctiz.js} +6 -6
- package/dist/client/PopUp-bPGAY43o.js +300 -0
- package/dist/client/VImg-swqiqth2.js +291 -0
- package/dist/client/{VMain-Dm43jd43.js → VMain-Bu1bPjvK.js} +2 -2
- package/dist/client/VOverlay-D_MKJ4vQ.js +967 -0
- package/dist/client/{WidgetsContainer-BS87sLqk.js → WidgetsContainer-CpxYT8YI.js} +1 -1
- package/dist/client/{asWebComponent-CpQUVi2N.js → asWebComponent-DeaU3QoK.js} +5939 -5713
- package/dist/client/{decoder-CP4lv0Kb-BHrv68IA.js → decoder-CP4lv0Kb-nokx54iM.js} +1 -1
- package/dist/client/eo-dash.js +4 -4
- package/dist/client/{eodashSTAC-Q7kbX1Gy.js → eodashSTAC-CFQuZ_cI.js} +1 -1
- package/dist/client/{forwardRefs-BVFQ82G4.js → forwardRefs-D0a135Tc.js} +35 -33
- package/dist/client/{index-dOzyv_xR.js → index-CoqcWt6E.js} +4 -4
- package/dist/client/{lerc-DzVumYtB-rm1Xco54.js → lerc-DzVumYtB-B3rx9xzz.js} +1 -1
- package/dist/client/{ssrBoot-L9KejErM.js → ssrBoot-C-inWOiD.js} +1 -1
- package/dist/client/style.css +2 -2
- package/dist/client/{transition-DCePIwYR.js → transition-C8le0YwQ.js} +3 -3
- package/package.json +2 -2
- package/widgets/EodashMapBtns.vue +34 -0
- package/widgets/ExportState.vue +112 -0
- package/widgets/PopUp.vue +40 -0
- package/dist/client/EodashDatePicker-oFb1zt5E.js +0 -1211
- package/dist/client/Header-C-zX31Ys.js +0 -635
|
@@ -0,0 +1,967 @@
|
|
|
1
|
+
import { bc as Oe, bd as Pe, p as G, r as I, L as W, ap as se, w as L, be as F, bf as Ie, bg as de, bh as te, bi as ne, bj as me, c as O, D as ce, bk as Ve, bl as ye, C as M, al as ge, aq as ue, bm as pe, bn as We, b7 as Ce, x as Ae, bo as he, d as V, bp as qe, s as U, H as je, Z as $e, bq as Te, q as ze, as as Ye, br as Ue, bs as Ge, e as Xe, ac as Ze, h as Ke, g as Qe, y as Je, i as et, j as tt, Q as nt, R as ot, ad as at, an as rt, bt as it, a as lt, b as D, bu as st, t as ct, B as ut, v as ft, F as vt, ab as dt, bv as mt } from "./asWebComponent-DeaU3QoK.js";
|
|
2
|
+
import { g as yt, B as oe, e as be, n as gt, m as ht, u as bt, b as wt, a as Et, s as St } from "./forwardRefs-D0a135Tc.js";
|
|
3
|
+
import { m as xt, M as kt } from "./transition-C8le0YwQ.js";
|
|
4
|
+
const Z = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function Ot(e, t) {
|
|
6
|
+
Object.keys(t).forEach((n) => {
|
|
7
|
+
if (Oe(n)) {
|
|
8
|
+
const o = Pe(n), r = Z.get(e);
|
|
9
|
+
if (t[n] == null)
|
|
10
|
+
r?.forEach((l) => {
|
|
11
|
+
const [a, s] = l;
|
|
12
|
+
a === o && (e.removeEventListener(o, s), r.delete(l));
|
|
13
|
+
});
|
|
14
|
+
else if (!r || ![...r].some((l) => l[0] === o && l[1] === t[n])) {
|
|
15
|
+
e.addEventListener(o, t[n]);
|
|
16
|
+
const l = r || /* @__PURE__ */ new Set();
|
|
17
|
+
l.add([o, t[n]]), Z.has(e) || Z.set(e, l);
|
|
18
|
+
}
|
|
19
|
+
} else
|
|
20
|
+
t[n] == null ? e.removeAttribute(n) : e.setAttribute(n, t[n]);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function Pt(e, t) {
|
|
24
|
+
Object.keys(t).forEach((n) => {
|
|
25
|
+
if (Oe(n)) {
|
|
26
|
+
const o = Pe(n), r = Z.get(e);
|
|
27
|
+
r?.forEach((l) => {
|
|
28
|
+
const [a, s] = l;
|
|
29
|
+
a === o && (e.removeEventListener(o, s), r.delete(l));
|
|
30
|
+
});
|
|
31
|
+
} else
|
|
32
|
+
e.removeAttribute(n);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function Le(e) {
|
|
36
|
+
if (typeof e.getRootNode != "function") {
|
|
37
|
+
for (; e.parentNode; ) e = e.parentNode;
|
|
38
|
+
return e !== document ? null : document;
|
|
39
|
+
}
|
|
40
|
+
const t = e.getRootNode();
|
|
41
|
+
return t !== document && t.getRootNode({
|
|
42
|
+
composed: !0
|
|
43
|
+
}) !== document ? null : t;
|
|
44
|
+
}
|
|
45
|
+
function pt(e) {
|
|
46
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
47
|
+
for (; e; ) {
|
|
48
|
+
if (t ? Ct(e) : fe(e)) return e;
|
|
49
|
+
e = e.parentElement;
|
|
50
|
+
}
|
|
51
|
+
return document.scrollingElement;
|
|
52
|
+
}
|
|
53
|
+
function K(e, t) {
|
|
54
|
+
const n = [];
|
|
55
|
+
if (t && e && !t.contains(e)) return n;
|
|
56
|
+
for (; e && (fe(e) && n.push(e), e !== t); )
|
|
57
|
+
e = e.parentElement;
|
|
58
|
+
return n;
|
|
59
|
+
}
|
|
60
|
+
function fe(e) {
|
|
61
|
+
if (!e || e.nodeType !== Node.ELEMENT_NODE) return !1;
|
|
62
|
+
const t = window.getComputedStyle(e);
|
|
63
|
+
return t.overflowY === "scroll" || t.overflowY === "auto" && e.scrollHeight > e.clientHeight;
|
|
64
|
+
}
|
|
65
|
+
function Ct(e) {
|
|
66
|
+
if (!e || e.nodeType !== Node.ELEMENT_NODE) return !1;
|
|
67
|
+
const t = window.getComputedStyle(e);
|
|
68
|
+
return ["scroll", "auto"].includes(t.overflowY);
|
|
69
|
+
}
|
|
70
|
+
function At(e) {
|
|
71
|
+
for (; e; ) {
|
|
72
|
+
if (window.getComputedStyle(e).position === "fixed")
|
|
73
|
+
return !0;
|
|
74
|
+
e = e.offsetParent;
|
|
75
|
+
}
|
|
76
|
+
return !1;
|
|
77
|
+
}
|
|
78
|
+
function Tt() {
|
|
79
|
+
return !0;
|
|
80
|
+
}
|
|
81
|
+
function Re(e, t, n) {
|
|
82
|
+
if (!e || Be(e, n) === !1) return !1;
|
|
83
|
+
const o = Le(t);
|
|
84
|
+
if (typeof ShadowRoot < "u" && o instanceof ShadowRoot && o.host === e.target) return !1;
|
|
85
|
+
const r = (typeof n.value == "object" && n.value.include || (() => []))();
|
|
86
|
+
return r.push(t), !r.some((l) => l?.contains(e.target));
|
|
87
|
+
}
|
|
88
|
+
function Be(e, t) {
|
|
89
|
+
return (typeof t.value == "object" && t.value.closeConditional || Tt)(e);
|
|
90
|
+
}
|
|
91
|
+
function Lt(e, t, n) {
|
|
92
|
+
const o = typeof n.value == "function" ? n.value : n.value.handler;
|
|
93
|
+
t._clickOutside.lastMousedownWasOutside && Re(e, t, n) && setTimeout(() => {
|
|
94
|
+
Be(e, n) && o && o(e);
|
|
95
|
+
}, 0);
|
|
96
|
+
}
|
|
97
|
+
function we(e, t) {
|
|
98
|
+
const n = Le(e);
|
|
99
|
+
t(document), typeof ShadowRoot < "u" && n instanceof ShadowRoot && t(n);
|
|
100
|
+
}
|
|
101
|
+
const Rt = {
|
|
102
|
+
// [data-app] may not be found
|
|
103
|
+
// if using bind, inserted makes
|
|
104
|
+
// sure that the root element is
|
|
105
|
+
// available, iOS does not support
|
|
106
|
+
// clicks on body
|
|
107
|
+
mounted(e, t) {
|
|
108
|
+
const n = (r) => Lt(r, e, t), o = (r) => {
|
|
109
|
+
e._clickOutside.lastMousedownWasOutside = Re(r, e, t);
|
|
110
|
+
};
|
|
111
|
+
we(e, (r) => {
|
|
112
|
+
r.addEventListener("click", n, !0), r.addEventListener("mousedown", o, !0);
|
|
113
|
+
}), e._clickOutside || (e._clickOutside = {
|
|
114
|
+
lastMousedownWasOutside: !1
|
|
115
|
+
}), e._clickOutside[t.instance.$.uid] = {
|
|
116
|
+
onClick: n,
|
|
117
|
+
onMousedown: o
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
unmounted(e, t) {
|
|
121
|
+
e._clickOutside && (we(e, (n) => {
|
|
122
|
+
if (!n || !e._clickOutside?.[t.instance.$.uid]) return;
|
|
123
|
+
const {
|
|
124
|
+
onClick: o,
|
|
125
|
+
onMousedown: r
|
|
126
|
+
} = e._clickOutside[t.instance.$.uid];
|
|
127
|
+
n.removeEventListener("click", o, !0), n.removeEventListener("mousedown", r, !0);
|
|
128
|
+
}), delete e._clickOutside[t.instance.$.uid]);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
function ae(e, t) {
|
|
132
|
+
return {
|
|
133
|
+
x: e.x + t.x,
|
|
134
|
+
y: e.y + t.y
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function Bt(e, t) {
|
|
138
|
+
return {
|
|
139
|
+
x: e.x - t.x,
|
|
140
|
+
y: e.y - t.y
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function Ee(e, t) {
|
|
144
|
+
if (e.side === "top" || e.side === "bottom") {
|
|
145
|
+
const {
|
|
146
|
+
side: n,
|
|
147
|
+
align: o
|
|
148
|
+
} = e, r = o === "left" ? 0 : o === "center" ? t.width / 2 : o === "right" ? t.width : o, l = n === "top" ? 0 : n === "bottom" ? t.height : n;
|
|
149
|
+
return ae({
|
|
150
|
+
x: r,
|
|
151
|
+
y: l
|
|
152
|
+
}, t);
|
|
153
|
+
} else if (e.side === "left" || e.side === "right") {
|
|
154
|
+
const {
|
|
155
|
+
side: n,
|
|
156
|
+
align: o
|
|
157
|
+
} = e, r = n === "left" ? 0 : n === "right" ? t.width : n, l = o === "top" ? 0 : o === "center" ? t.height / 2 : o === "bottom" ? t.height : o;
|
|
158
|
+
return ae({
|
|
159
|
+
x: r,
|
|
160
|
+
y: l
|
|
161
|
+
}, t);
|
|
162
|
+
}
|
|
163
|
+
return ae({
|
|
164
|
+
x: t.width / 2,
|
|
165
|
+
y: t.height / 2
|
|
166
|
+
}, t);
|
|
167
|
+
}
|
|
168
|
+
const Me = {
|
|
169
|
+
static: Nt,
|
|
170
|
+
// specific viewport position, usually centered
|
|
171
|
+
connected: Ht
|
|
172
|
+
// connected to a certain element
|
|
173
|
+
}, Mt = G({
|
|
174
|
+
locationStrategy: {
|
|
175
|
+
type: [String, Function],
|
|
176
|
+
default: "static",
|
|
177
|
+
validator: (e) => typeof e == "function" || e in Me
|
|
178
|
+
},
|
|
179
|
+
location: {
|
|
180
|
+
type: String,
|
|
181
|
+
default: "bottom"
|
|
182
|
+
},
|
|
183
|
+
origin: {
|
|
184
|
+
type: String,
|
|
185
|
+
default: "auto"
|
|
186
|
+
},
|
|
187
|
+
offset: [Number, String, Array]
|
|
188
|
+
}, "VOverlay-location-strategies");
|
|
189
|
+
function Ft(e, t) {
|
|
190
|
+
const n = I({}), o = I();
|
|
191
|
+
W && se(() => !!(t.isActive.value && e.locationStrategy), (l) => {
|
|
192
|
+
L(() => e.locationStrategy, l), F(() => {
|
|
193
|
+
window.removeEventListener("resize", r), o.value = void 0;
|
|
194
|
+
}), window.addEventListener("resize", r, {
|
|
195
|
+
passive: !0
|
|
196
|
+
}), typeof e.locationStrategy == "function" ? o.value = e.locationStrategy(t, e, n)?.updateLocation : o.value = Me[e.locationStrategy](t, e, n)?.updateLocation;
|
|
197
|
+
});
|
|
198
|
+
function r(l) {
|
|
199
|
+
o.value?.(l);
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
contentStyles: n,
|
|
203
|
+
updateLocation: o
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function Nt() {
|
|
207
|
+
}
|
|
208
|
+
function _t(e, t) {
|
|
209
|
+
t ? e.style.removeProperty("left") : e.style.removeProperty("right");
|
|
210
|
+
const n = gt(e);
|
|
211
|
+
return t ? n.x += parseFloat(e.style.right || 0) : n.x -= parseFloat(e.style.left || 0), n.y -= parseFloat(e.style.top || 0), n;
|
|
212
|
+
}
|
|
213
|
+
function Ht(e, t, n) {
|
|
214
|
+
(Array.isArray(e.target.value) || At(e.target.value)) && Object.assign(n.value, {
|
|
215
|
+
position: "fixed",
|
|
216
|
+
top: 0,
|
|
217
|
+
[e.isRtl.value ? "right" : "left"]: 0
|
|
218
|
+
});
|
|
219
|
+
const {
|
|
220
|
+
preferredAnchor: r,
|
|
221
|
+
preferredOrigin: l
|
|
222
|
+
} = Ie(() => {
|
|
223
|
+
const u = de(t.location, e.isRtl.value), c = t.origin === "overlap" ? u : t.origin === "auto" ? te(u) : de(t.origin, e.isRtl.value);
|
|
224
|
+
return u.side === c.side && u.align === ne(c).align ? {
|
|
225
|
+
preferredAnchor: me(u),
|
|
226
|
+
preferredOrigin: me(c)
|
|
227
|
+
} : {
|
|
228
|
+
preferredAnchor: u,
|
|
229
|
+
preferredOrigin: c
|
|
230
|
+
};
|
|
231
|
+
}), [a, s, v, d] = ["minWidth", "minHeight", "maxWidth", "maxHeight"].map((u) => O(() => {
|
|
232
|
+
const c = parseFloat(t[u]);
|
|
233
|
+
return isNaN(c) ? 1 / 0 : c;
|
|
234
|
+
})), y = O(() => {
|
|
235
|
+
if (Array.isArray(t.offset))
|
|
236
|
+
return t.offset;
|
|
237
|
+
if (typeof t.offset == "string") {
|
|
238
|
+
const u = t.offset.split(" ").map(parseFloat);
|
|
239
|
+
return u.length < 2 && u.push(0), u;
|
|
240
|
+
}
|
|
241
|
+
return typeof t.offset == "number" ? [t.offset, 0] : [0, 0];
|
|
242
|
+
});
|
|
243
|
+
let C = !1;
|
|
244
|
+
const P = new ResizeObserver(() => {
|
|
245
|
+
C && S();
|
|
246
|
+
});
|
|
247
|
+
L([e.target, e.contentEl], (u, c) => {
|
|
248
|
+
let [x, T] = u, [g, h] = c;
|
|
249
|
+
g && !Array.isArray(g) && P.unobserve(g), x && !Array.isArray(x) && P.observe(x), h && P.unobserve(h), T && P.observe(T);
|
|
250
|
+
}, {
|
|
251
|
+
immediate: !0
|
|
252
|
+
}), F(() => {
|
|
253
|
+
P.disconnect();
|
|
254
|
+
});
|
|
255
|
+
function S() {
|
|
256
|
+
if (C = !1, requestAnimationFrame(() => C = !0), !e.target.value || !e.contentEl.value) return;
|
|
257
|
+
const u = yt(e.target.value), c = _t(e.contentEl.value, e.isRtl.value), x = K(e.contentEl.value), T = 12;
|
|
258
|
+
x.length || (x.push(document.documentElement), e.contentEl.value.style.top && e.contentEl.value.style.left || (c.x -= parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x") || 0), c.y -= parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y") || 0)));
|
|
259
|
+
const g = x.reduce((w, b) => {
|
|
260
|
+
const f = b.getBoundingClientRect(), m = new oe({
|
|
261
|
+
x: b === document.documentElement ? 0 : f.x,
|
|
262
|
+
y: b === document.documentElement ? 0 : f.y,
|
|
263
|
+
width: b.clientWidth,
|
|
264
|
+
height: b.clientHeight
|
|
265
|
+
});
|
|
266
|
+
return w ? new oe({
|
|
267
|
+
x: Math.max(w.left, m.left),
|
|
268
|
+
y: Math.max(w.top, m.top),
|
|
269
|
+
width: Math.min(w.right, m.right) - Math.max(w.left, m.left),
|
|
270
|
+
height: Math.min(w.bottom, m.bottom) - Math.max(w.top, m.top)
|
|
271
|
+
}) : m;
|
|
272
|
+
}, void 0);
|
|
273
|
+
g.x += T, g.y += T, g.width -= T * 2, g.height -= T * 2;
|
|
274
|
+
let h = {
|
|
275
|
+
anchor: r.value,
|
|
276
|
+
origin: l.value
|
|
277
|
+
};
|
|
278
|
+
function N(w) {
|
|
279
|
+
const b = new oe(c), f = Ee(w.anchor, u), m = Ee(w.origin, b);
|
|
280
|
+
let {
|
|
281
|
+
x: k,
|
|
282
|
+
y: B
|
|
283
|
+
} = Bt(f, m);
|
|
284
|
+
switch (w.anchor.side) {
|
|
285
|
+
case "top":
|
|
286
|
+
B -= y.value[0];
|
|
287
|
+
break;
|
|
288
|
+
case "bottom":
|
|
289
|
+
B += y.value[0];
|
|
290
|
+
break;
|
|
291
|
+
case "left":
|
|
292
|
+
k -= y.value[0];
|
|
293
|
+
break;
|
|
294
|
+
case "right":
|
|
295
|
+
k += y.value[0];
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
switch (w.anchor.align) {
|
|
299
|
+
case "top":
|
|
300
|
+
B -= y.value[1];
|
|
301
|
+
break;
|
|
302
|
+
case "bottom":
|
|
303
|
+
B += y.value[1];
|
|
304
|
+
break;
|
|
305
|
+
case "left":
|
|
306
|
+
k -= y.value[1];
|
|
307
|
+
break;
|
|
308
|
+
case "right":
|
|
309
|
+
k += y.value[1];
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
return b.x += k, b.y += B, b.width = Math.min(b.width, v.value), b.height = Math.min(b.height, d.value), {
|
|
313
|
+
overflows: be(b, g),
|
|
314
|
+
x: k,
|
|
315
|
+
y: B
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
let R = 0, A = 0;
|
|
319
|
+
const i = {
|
|
320
|
+
x: 0,
|
|
321
|
+
y: 0
|
|
322
|
+
}, _ = {
|
|
323
|
+
x: !1,
|
|
324
|
+
y: !1
|
|
325
|
+
};
|
|
326
|
+
let z = -1;
|
|
327
|
+
for (; ; ) {
|
|
328
|
+
if (z++ > 10) {
|
|
329
|
+
Ve("Infinite loop detected in connectedLocationStrategy");
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
const {
|
|
333
|
+
x: w,
|
|
334
|
+
y: b,
|
|
335
|
+
overflows: f
|
|
336
|
+
} = N(h);
|
|
337
|
+
R += w, A += b, c.x += w, c.y += b;
|
|
338
|
+
{
|
|
339
|
+
const m = ye(h.anchor), k = f.x.before || f.x.after, B = f.y.before || f.y.after;
|
|
340
|
+
let q = !1;
|
|
341
|
+
if (["x", "y"].forEach((p) => {
|
|
342
|
+
if (p === "x" && k && !_.x || p === "y" && B && !_.y) {
|
|
343
|
+
const H = {
|
|
344
|
+
anchor: {
|
|
345
|
+
...h.anchor
|
|
346
|
+
},
|
|
347
|
+
origin: {
|
|
348
|
+
...h.origin
|
|
349
|
+
}
|
|
350
|
+
}, j = p === "x" ? m === "y" ? ne : te : m === "y" ? te : ne;
|
|
351
|
+
H.anchor = j(H.anchor), H.origin = j(H.origin);
|
|
352
|
+
const {
|
|
353
|
+
overflows: $
|
|
354
|
+
} = N(H);
|
|
355
|
+
($[p].before <= f[p].before && $[p].after <= f[p].after || $[p].before + $[p].after < (f[p].before + f[p].after) / 2) && (h = H, q = _[p] = !0);
|
|
356
|
+
}
|
|
357
|
+
}), q) continue;
|
|
358
|
+
}
|
|
359
|
+
f.x.before && (R += f.x.before, c.x += f.x.before), f.x.after && (R -= f.x.after, c.x -= f.x.after), f.y.before && (A += f.y.before, c.y += f.y.before), f.y.after && (A -= f.y.after, c.y -= f.y.after);
|
|
360
|
+
{
|
|
361
|
+
const m = be(c, g);
|
|
362
|
+
i.x = g.width - m.x.before - m.x.after, i.y = g.height - m.y.before - m.y.after, R += m.x.before, c.x += m.x.before, A += m.y.before, c.y += m.y.before;
|
|
363
|
+
}
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
const J = ye(h.anchor);
|
|
367
|
+
return Object.assign(n.value, {
|
|
368
|
+
"--v-overlay-anchor-origin": `${h.anchor.side} ${h.anchor.align}`,
|
|
369
|
+
transformOrigin: `${h.origin.side} ${h.origin.align}`,
|
|
370
|
+
// transform: `translate(${pixelRound(x)}px, ${pixelRound(y)}px)`,
|
|
371
|
+
top: M(re(A)),
|
|
372
|
+
left: e.isRtl.value ? void 0 : M(re(R)),
|
|
373
|
+
right: e.isRtl.value ? M(re(-R)) : void 0,
|
|
374
|
+
minWidth: M(J === "y" ? Math.min(a.value, u.width) : a.value),
|
|
375
|
+
maxWidth: M(Se(ge(i.x, a.value === 1 / 0 ? 0 : a.value, v.value))),
|
|
376
|
+
maxHeight: M(Se(ge(i.y, s.value === 1 / 0 ? 0 : s.value, d.value)))
|
|
377
|
+
}), {
|
|
378
|
+
available: i,
|
|
379
|
+
contentBox: c
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
return L(() => [r.value, l.value, t.offset, t.minWidth, t.minHeight, t.maxWidth, t.maxHeight], () => S()), ce(() => {
|
|
383
|
+
const u = S();
|
|
384
|
+
if (!u) return;
|
|
385
|
+
const {
|
|
386
|
+
available: c,
|
|
387
|
+
contentBox: x
|
|
388
|
+
} = u;
|
|
389
|
+
x.height > c.y && requestAnimationFrame(() => {
|
|
390
|
+
S(), requestAnimationFrame(() => {
|
|
391
|
+
S();
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
}), {
|
|
395
|
+
updateLocation: S
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
function re(e) {
|
|
399
|
+
return Math.round(e * devicePixelRatio) / devicePixelRatio;
|
|
400
|
+
}
|
|
401
|
+
function Se(e) {
|
|
402
|
+
return Math.ceil(e * devicePixelRatio) / devicePixelRatio;
|
|
403
|
+
}
|
|
404
|
+
let ie = !0;
|
|
405
|
+
const Q = [];
|
|
406
|
+
function Dt(e) {
|
|
407
|
+
!ie || Q.length ? (Q.push(e), le()) : (ie = !1, e(), le());
|
|
408
|
+
}
|
|
409
|
+
let xe = -1;
|
|
410
|
+
function le() {
|
|
411
|
+
cancelAnimationFrame(xe), xe = requestAnimationFrame(() => {
|
|
412
|
+
const e = Q.shift();
|
|
413
|
+
e && e(), Q.length ? le() : ie = !0;
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
const Fe = {
|
|
417
|
+
none: null,
|
|
418
|
+
close: Wt,
|
|
419
|
+
block: qt,
|
|
420
|
+
reposition: jt
|
|
421
|
+
}, It = G({
|
|
422
|
+
scrollStrategy: {
|
|
423
|
+
type: [String, Function],
|
|
424
|
+
default: "block",
|
|
425
|
+
validator: (e) => typeof e == "function" || e in Fe
|
|
426
|
+
}
|
|
427
|
+
}, "VOverlay-scroll-strategies");
|
|
428
|
+
function Vt(e, t) {
|
|
429
|
+
if (!W) return;
|
|
430
|
+
let n;
|
|
431
|
+
ue(async () => {
|
|
432
|
+
n?.stop(), t.isActive.value && e.scrollStrategy && (n = pe(), await new Promise((o) => setTimeout(o)), n.active && n.run(() => {
|
|
433
|
+
typeof e.scrollStrategy == "function" ? e.scrollStrategy(t, e, n) : Fe[e.scrollStrategy]?.(t, e, n);
|
|
434
|
+
}));
|
|
435
|
+
}), F(() => {
|
|
436
|
+
n?.stop();
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
function Wt(e) {
|
|
440
|
+
function t(n) {
|
|
441
|
+
e.isActive.value = !1;
|
|
442
|
+
}
|
|
443
|
+
Ne(e.targetEl.value ?? e.contentEl.value, t);
|
|
444
|
+
}
|
|
445
|
+
function qt(e, t) {
|
|
446
|
+
const n = e.root.value?.offsetParent, o = [.../* @__PURE__ */ new Set([...K(e.targetEl.value, t.contained ? n : void 0), ...K(e.contentEl.value, t.contained ? n : void 0)])].filter((a) => !a.classList.contains("v-overlay-scroll-blocked")), r = window.innerWidth - document.documentElement.offsetWidth, l = ((a) => fe(a) && a)(n || document.documentElement);
|
|
447
|
+
l && e.root.value.classList.add("v-overlay--scroll-blocked"), o.forEach((a, s) => {
|
|
448
|
+
a.style.setProperty("--v-body-scroll-x", M(-a.scrollLeft)), a.style.setProperty("--v-body-scroll-y", M(-a.scrollTop)), a !== document.documentElement && a.style.setProperty("--v-scrollbar-offset", M(r)), a.classList.add("v-overlay-scroll-blocked");
|
|
449
|
+
}), F(() => {
|
|
450
|
+
o.forEach((a, s) => {
|
|
451
|
+
const v = parseFloat(a.style.getPropertyValue("--v-body-scroll-x")), d = parseFloat(a.style.getPropertyValue("--v-body-scroll-y")), y = a.style.scrollBehavior;
|
|
452
|
+
a.style.scrollBehavior = "auto", a.style.removeProperty("--v-body-scroll-x"), a.style.removeProperty("--v-body-scroll-y"), a.style.removeProperty("--v-scrollbar-offset"), a.classList.remove("v-overlay-scroll-blocked"), a.scrollLeft = -v, a.scrollTop = -d, a.style.scrollBehavior = y;
|
|
453
|
+
}), l && e.root.value.classList.remove("v-overlay--scroll-blocked");
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
function jt(e, t, n) {
|
|
457
|
+
let o = !1, r = -1, l = -1;
|
|
458
|
+
function a(s) {
|
|
459
|
+
Dt(() => {
|
|
460
|
+
const v = performance.now();
|
|
461
|
+
e.updateLocation.value?.(s), o = (performance.now() - v) / (1e3 / 60) > 2;
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
l = (typeof requestIdleCallback > "u" ? (s) => s() : requestIdleCallback)(() => {
|
|
465
|
+
n.run(() => {
|
|
466
|
+
Ne(e.targetEl.value ?? e.contentEl.value, (s) => {
|
|
467
|
+
o ? (cancelAnimationFrame(r), r = requestAnimationFrame(() => {
|
|
468
|
+
r = requestAnimationFrame(() => {
|
|
469
|
+
a(s);
|
|
470
|
+
});
|
|
471
|
+
})) : a(s);
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
}), F(() => {
|
|
475
|
+
typeof cancelIdleCallback < "u" && cancelIdleCallback(l), cancelAnimationFrame(r);
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
function Ne(e, t) {
|
|
479
|
+
const n = [document, ...K(e)];
|
|
480
|
+
n.forEach((o) => {
|
|
481
|
+
o.addEventListener("scroll", t, {
|
|
482
|
+
passive: !0
|
|
483
|
+
});
|
|
484
|
+
}), F(() => {
|
|
485
|
+
n.forEach((o) => {
|
|
486
|
+
o.removeEventListener("scroll", t);
|
|
487
|
+
});
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
const $t = Symbol.for("vuetify:v-menu"), zt = G({
|
|
491
|
+
closeDelay: [Number, String],
|
|
492
|
+
openDelay: [Number, String]
|
|
493
|
+
}, "delay");
|
|
494
|
+
function Yt(e, t) {
|
|
495
|
+
let n = () => {
|
|
496
|
+
};
|
|
497
|
+
function o(a) {
|
|
498
|
+
n?.();
|
|
499
|
+
const s = Number(a ? e.openDelay : e.closeDelay);
|
|
500
|
+
return new Promise((v) => {
|
|
501
|
+
n = We(s, () => {
|
|
502
|
+
t?.(a), v(a);
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
function r() {
|
|
507
|
+
return o(!0);
|
|
508
|
+
}
|
|
509
|
+
function l() {
|
|
510
|
+
return o(!1);
|
|
511
|
+
}
|
|
512
|
+
return {
|
|
513
|
+
clearDelay: n,
|
|
514
|
+
runOpenDelay: r,
|
|
515
|
+
runCloseDelay: l
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
const Ut = G({
|
|
519
|
+
target: [String, Object],
|
|
520
|
+
activator: [String, Object],
|
|
521
|
+
activatorProps: {
|
|
522
|
+
type: Object,
|
|
523
|
+
default: () => ({})
|
|
524
|
+
},
|
|
525
|
+
openOnClick: {
|
|
526
|
+
type: Boolean,
|
|
527
|
+
default: void 0
|
|
528
|
+
},
|
|
529
|
+
openOnHover: Boolean,
|
|
530
|
+
openOnFocus: {
|
|
531
|
+
type: Boolean,
|
|
532
|
+
default: void 0
|
|
533
|
+
},
|
|
534
|
+
closeOnContentClick: Boolean,
|
|
535
|
+
...zt()
|
|
536
|
+
}, "VOverlay-activator");
|
|
537
|
+
function Gt(e, t) {
|
|
538
|
+
let {
|
|
539
|
+
isActive: n,
|
|
540
|
+
isTop: o
|
|
541
|
+
} = t;
|
|
542
|
+
const r = Ce("useActivator"), l = I();
|
|
543
|
+
let a = !1, s = !1, v = !0;
|
|
544
|
+
const d = O(() => e.openOnFocus || e.openOnFocus == null && e.openOnHover), y = O(() => e.openOnClick || e.openOnClick == null && !e.openOnHover && !d.value), {
|
|
545
|
+
runOpenDelay: C,
|
|
546
|
+
runCloseDelay: P
|
|
547
|
+
} = Yt(e, (i) => {
|
|
548
|
+
i === (e.openOnHover && a || d.value && s) && !(e.openOnHover && n.value && !o.value) && (n.value !== i && (v = !0), n.value = i);
|
|
549
|
+
}), S = I(), u = {
|
|
550
|
+
onClick: (i) => {
|
|
551
|
+
i.stopPropagation(), l.value = i.currentTarget || i.target, n.value || (S.value = [i.clientX, i.clientY]), n.value = !n.value;
|
|
552
|
+
},
|
|
553
|
+
onMouseenter: (i) => {
|
|
554
|
+
i.sourceCapabilities?.firesTouchEvents || (a = !0, l.value = i.currentTarget || i.target, C());
|
|
555
|
+
},
|
|
556
|
+
onMouseleave: (i) => {
|
|
557
|
+
a = !1, P();
|
|
558
|
+
},
|
|
559
|
+
onFocus: (i) => {
|
|
560
|
+
qe(i.target, ":focus-visible") !== !1 && (s = !0, i.stopPropagation(), l.value = i.currentTarget || i.target, C());
|
|
561
|
+
},
|
|
562
|
+
onBlur: (i) => {
|
|
563
|
+
s = !1, i.stopPropagation(), P();
|
|
564
|
+
}
|
|
565
|
+
}, c = O(() => {
|
|
566
|
+
const i = {};
|
|
567
|
+
return y.value && (i.onClick = u.onClick), e.openOnHover && (i.onMouseenter = u.onMouseenter, i.onMouseleave = u.onMouseleave), d.value && (i.onFocus = u.onFocus, i.onBlur = u.onBlur), i;
|
|
568
|
+
}), x = O(() => {
|
|
569
|
+
const i = {};
|
|
570
|
+
if (e.openOnHover && (i.onMouseenter = () => {
|
|
571
|
+
a = !0, C();
|
|
572
|
+
}, i.onMouseleave = () => {
|
|
573
|
+
a = !1, P();
|
|
574
|
+
}), d.value && (i.onFocusin = () => {
|
|
575
|
+
s = !0, C();
|
|
576
|
+
}, i.onFocusout = () => {
|
|
577
|
+
s = !1, P();
|
|
578
|
+
}), e.closeOnContentClick) {
|
|
579
|
+
const _ = Ae($t, null);
|
|
580
|
+
i.onClick = () => {
|
|
581
|
+
n.value = !1, _?.closeParents();
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
return i;
|
|
585
|
+
}), T = O(() => {
|
|
586
|
+
const i = {};
|
|
587
|
+
return e.openOnHover && (i.onMouseenter = () => {
|
|
588
|
+
v && (a = !0, v = !1, C());
|
|
589
|
+
}, i.onMouseleave = () => {
|
|
590
|
+
a = !1, P();
|
|
591
|
+
}), i;
|
|
592
|
+
});
|
|
593
|
+
L(o, (i) => {
|
|
594
|
+
i && (e.openOnHover && !a && (!d.value || !s) || d.value && !s && (!e.openOnHover || !a)) && (n.value = !1);
|
|
595
|
+
}), L(n, (i) => {
|
|
596
|
+
i || setTimeout(() => {
|
|
597
|
+
S.value = void 0;
|
|
598
|
+
});
|
|
599
|
+
}, {
|
|
600
|
+
flush: "post"
|
|
601
|
+
});
|
|
602
|
+
const g = he();
|
|
603
|
+
ue(() => {
|
|
604
|
+
g.value && ce(() => {
|
|
605
|
+
l.value = g.el;
|
|
606
|
+
});
|
|
607
|
+
});
|
|
608
|
+
const h = he(), N = O(() => e.target === "cursor" && S.value ? S.value : h.value ? h.el : _e(e.target, r) || l.value), R = O(() => Array.isArray(N.value) ? void 0 : N.value);
|
|
609
|
+
let A;
|
|
610
|
+
return L(() => !!e.activator, (i) => {
|
|
611
|
+
i && W ? (A = pe(), A.run(() => {
|
|
612
|
+
Xt(e, r, {
|
|
613
|
+
activatorEl: l,
|
|
614
|
+
activatorEvents: c
|
|
615
|
+
});
|
|
616
|
+
})) : A && A.stop();
|
|
617
|
+
}, {
|
|
618
|
+
flush: "post",
|
|
619
|
+
immediate: !0
|
|
620
|
+
}), F(() => {
|
|
621
|
+
A?.stop();
|
|
622
|
+
}), {
|
|
623
|
+
activatorEl: l,
|
|
624
|
+
activatorRef: g,
|
|
625
|
+
target: N,
|
|
626
|
+
targetEl: R,
|
|
627
|
+
targetRef: h,
|
|
628
|
+
activatorEvents: c,
|
|
629
|
+
contentEvents: x,
|
|
630
|
+
scrimEvents: T
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
function Xt(e, t, n) {
|
|
634
|
+
let {
|
|
635
|
+
activatorEl: o,
|
|
636
|
+
activatorEvents: r
|
|
637
|
+
} = n;
|
|
638
|
+
L(() => e.activator, (v, d) => {
|
|
639
|
+
if (d && v !== d) {
|
|
640
|
+
const y = s(d);
|
|
641
|
+
y && a(y);
|
|
642
|
+
}
|
|
643
|
+
v && ce(() => l());
|
|
644
|
+
}, {
|
|
645
|
+
immediate: !0
|
|
646
|
+
}), L(() => e.activatorProps, () => {
|
|
647
|
+
l();
|
|
648
|
+
}), F(() => {
|
|
649
|
+
a();
|
|
650
|
+
});
|
|
651
|
+
function l() {
|
|
652
|
+
let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : s(), d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.activatorProps;
|
|
653
|
+
v && Ot(v, V(r.value, d));
|
|
654
|
+
}
|
|
655
|
+
function a() {
|
|
656
|
+
let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : s(), d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.activatorProps;
|
|
657
|
+
v && Pt(v, V(r.value, d));
|
|
658
|
+
}
|
|
659
|
+
function s() {
|
|
660
|
+
let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : e.activator;
|
|
661
|
+
const d = _e(v, t);
|
|
662
|
+
return o.value = d?.nodeType === Node.ELEMENT_NODE ? d : void 0, o.value;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
function _e(e, t) {
|
|
666
|
+
if (!e) return;
|
|
667
|
+
let n;
|
|
668
|
+
if (e === "parent") {
|
|
669
|
+
let o = t?.proxy?.$el?.parentNode;
|
|
670
|
+
for (; o?.hasAttribute("data-no-activator"); )
|
|
671
|
+
o = o.parentNode;
|
|
672
|
+
n = o;
|
|
673
|
+
} else typeof e == "string" ? n = document.querySelector(e) : "$el" in e ? n = e.$el : n = e;
|
|
674
|
+
return n;
|
|
675
|
+
}
|
|
676
|
+
function Zt() {
|
|
677
|
+
if (!W) return U(!1);
|
|
678
|
+
const {
|
|
679
|
+
ssr: e
|
|
680
|
+
} = je();
|
|
681
|
+
if (e) {
|
|
682
|
+
const t = U(!1);
|
|
683
|
+
return $e(() => {
|
|
684
|
+
t.value = !0;
|
|
685
|
+
}), t;
|
|
686
|
+
} else
|
|
687
|
+
return U(!0);
|
|
688
|
+
}
|
|
689
|
+
const ke = Symbol.for("vuetify:stack"), Y = Te([]);
|
|
690
|
+
function Kt(e, t, n) {
|
|
691
|
+
const o = Ce("useStack"), r = !n, l = Ae(ke, void 0), a = Te({
|
|
692
|
+
activeChildren: /* @__PURE__ */ new Set()
|
|
693
|
+
});
|
|
694
|
+
ze(ke, a);
|
|
695
|
+
const s = U(+t.value);
|
|
696
|
+
se(e, () => {
|
|
697
|
+
const y = Y.at(-1)?.[1];
|
|
698
|
+
s.value = y ? y + 10 : +t.value, r && Y.push([o.uid, s.value]), l?.activeChildren.add(o.uid), F(() => {
|
|
699
|
+
if (r) {
|
|
700
|
+
const C = Ue(Y).findIndex((P) => P[0] === o.uid);
|
|
701
|
+
Y.splice(C, 1);
|
|
702
|
+
}
|
|
703
|
+
l?.activeChildren.delete(o.uid);
|
|
704
|
+
});
|
|
705
|
+
});
|
|
706
|
+
const v = U(!0);
|
|
707
|
+
r && ue(() => {
|
|
708
|
+
const y = Y.at(-1)?.[0] === o.uid;
|
|
709
|
+
setTimeout(() => v.value = y);
|
|
710
|
+
});
|
|
711
|
+
const d = O(() => !a.activeChildren.size);
|
|
712
|
+
return {
|
|
713
|
+
globalTop: Ye(v),
|
|
714
|
+
localTop: d,
|
|
715
|
+
stackStyles: O(() => ({
|
|
716
|
+
zIndex: s.value
|
|
717
|
+
}))
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
function Qt(e) {
|
|
721
|
+
return {
|
|
722
|
+
teleportTarget: O(() => {
|
|
723
|
+
const n = e.value;
|
|
724
|
+
if (n === !0 || !W) return;
|
|
725
|
+
const o = n === !1 ? document.body : typeof n == "string" ? document.querySelector(n) : n;
|
|
726
|
+
if (o == null) {
|
|
727
|
+
Ge(`Unable to locate target ${n}`);
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
let r = o.querySelector(":scope > .v-overlay-container");
|
|
731
|
+
return r || (r = document.createElement("div"), r.className = "v-overlay-container", o.appendChild(r)), r;
|
|
732
|
+
})
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
function Jt(e) {
|
|
736
|
+
const {
|
|
737
|
+
modelValue: t,
|
|
738
|
+
color: n,
|
|
739
|
+
...o
|
|
740
|
+
} = e;
|
|
741
|
+
return D(dt, {
|
|
742
|
+
name: "fade-transition",
|
|
743
|
+
appear: !0
|
|
744
|
+
}, {
|
|
745
|
+
default: () => [e.modelValue && D("div", V({
|
|
746
|
+
class: ["v-overlay__scrim", e.color.backgroundColorClasses.value],
|
|
747
|
+
style: e.color.backgroundColorStyles.value
|
|
748
|
+
}, o), null)]
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
const en = G({
|
|
752
|
+
absolute: Boolean,
|
|
753
|
+
attach: [Boolean, String, Object],
|
|
754
|
+
closeOnBack: {
|
|
755
|
+
type: Boolean,
|
|
756
|
+
default: !0
|
|
757
|
+
},
|
|
758
|
+
contained: Boolean,
|
|
759
|
+
contentClass: null,
|
|
760
|
+
contentProps: null,
|
|
761
|
+
disabled: Boolean,
|
|
762
|
+
opacity: [Number, String],
|
|
763
|
+
noClickAnimation: Boolean,
|
|
764
|
+
modelValue: Boolean,
|
|
765
|
+
persistent: Boolean,
|
|
766
|
+
scrim: {
|
|
767
|
+
type: [Boolean, String],
|
|
768
|
+
default: !0
|
|
769
|
+
},
|
|
770
|
+
zIndex: {
|
|
771
|
+
type: [Number, String],
|
|
772
|
+
default: 2e3
|
|
773
|
+
},
|
|
774
|
+
...Ut(),
|
|
775
|
+
...Xe(),
|
|
776
|
+
...Ze(),
|
|
777
|
+
...ht(),
|
|
778
|
+
...Mt(),
|
|
779
|
+
...It(),
|
|
780
|
+
...Ke(),
|
|
781
|
+
...xt()
|
|
782
|
+
}, "VOverlay"), an = Qe()({
|
|
783
|
+
name: "VOverlay",
|
|
784
|
+
directives: {
|
|
785
|
+
ClickOutside: Rt
|
|
786
|
+
},
|
|
787
|
+
inheritAttrs: !1,
|
|
788
|
+
props: {
|
|
789
|
+
_disableGlobalStack: Boolean,
|
|
790
|
+
...en()
|
|
791
|
+
},
|
|
792
|
+
emits: {
|
|
793
|
+
"click:outside": (e) => !0,
|
|
794
|
+
"update:modelValue": (e) => !0,
|
|
795
|
+
afterEnter: () => !0,
|
|
796
|
+
afterLeave: () => !0
|
|
797
|
+
},
|
|
798
|
+
setup(e, t) {
|
|
799
|
+
let {
|
|
800
|
+
slots: n,
|
|
801
|
+
attrs: o,
|
|
802
|
+
emit: r
|
|
803
|
+
} = t;
|
|
804
|
+
const l = Je(e, "modelValue"), a = O({
|
|
805
|
+
get: () => l.value,
|
|
806
|
+
set: (E) => {
|
|
807
|
+
E && e.disabled || (l.value = E);
|
|
808
|
+
}
|
|
809
|
+
}), {
|
|
810
|
+
themeClasses: s
|
|
811
|
+
} = et(e), {
|
|
812
|
+
rtlClasses: v,
|
|
813
|
+
isRtl: d
|
|
814
|
+
} = tt(), {
|
|
815
|
+
hasContent: y,
|
|
816
|
+
onAfterLeave: C
|
|
817
|
+
} = bt(e, a), P = nt(O(() => typeof e.scrim == "string" ? e.scrim : null)), {
|
|
818
|
+
globalTop: S,
|
|
819
|
+
localTop: u,
|
|
820
|
+
stackStyles: c
|
|
821
|
+
} = Kt(a, ot(e, "zIndex"), e._disableGlobalStack), {
|
|
822
|
+
activatorEl: x,
|
|
823
|
+
activatorRef: T,
|
|
824
|
+
target: g,
|
|
825
|
+
targetEl: h,
|
|
826
|
+
targetRef: N,
|
|
827
|
+
activatorEvents: R,
|
|
828
|
+
contentEvents: A,
|
|
829
|
+
scrimEvents: i
|
|
830
|
+
} = Gt(e, {
|
|
831
|
+
isActive: a,
|
|
832
|
+
isTop: u
|
|
833
|
+
}), _ = O(() => x?.value?.getRootNode()), {
|
|
834
|
+
teleportTarget: z
|
|
835
|
+
} = Qt(O(() => e.attach || e.contained || _.value instanceof ShadowRoot ? _.value : !1)), {
|
|
836
|
+
dimensionStyles: J
|
|
837
|
+
} = at(e), w = Zt(), {
|
|
838
|
+
scopeId: b
|
|
839
|
+
} = wt();
|
|
840
|
+
L(() => e.disabled, (E) => {
|
|
841
|
+
E && (a.value = !1);
|
|
842
|
+
});
|
|
843
|
+
const f = I(), m = I(), k = I(), {
|
|
844
|
+
contentStyles: B,
|
|
845
|
+
updateLocation: q
|
|
846
|
+
} = Ft(e, {
|
|
847
|
+
isRtl: d,
|
|
848
|
+
contentEl: k,
|
|
849
|
+
target: g,
|
|
850
|
+
isActive: a
|
|
851
|
+
});
|
|
852
|
+
Vt(e, {
|
|
853
|
+
root: f,
|
|
854
|
+
contentEl: k,
|
|
855
|
+
targetEl: h,
|
|
856
|
+
isActive: a,
|
|
857
|
+
updateLocation: q
|
|
858
|
+
});
|
|
859
|
+
function p(E) {
|
|
860
|
+
r("click:outside", E), e.persistent ? X() : a.value = !1;
|
|
861
|
+
}
|
|
862
|
+
function H(E) {
|
|
863
|
+
return a.value && S.value && // If using scrim, only close if clicking on it rather than anything opened on top
|
|
864
|
+
(!e.scrim || E.target === m.value);
|
|
865
|
+
}
|
|
866
|
+
W && L(a, (E) => {
|
|
867
|
+
E ? window.addEventListener("keydown", j) : window.removeEventListener("keydown", j);
|
|
868
|
+
}, {
|
|
869
|
+
immediate: !0
|
|
870
|
+
}), rt(() => {
|
|
871
|
+
W && window.removeEventListener("keydown", j);
|
|
872
|
+
});
|
|
873
|
+
function j(E) {
|
|
874
|
+
E.key === "Escape" && S.value && (e.persistent ? X() : (a.value = !1, k.value?.contains(document.activeElement) && x.value?.focus()));
|
|
875
|
+
}
|
|
876
|
+
const $ = it();
|
|
877
|
+
se(() => e.closeOnBack, () => {
|
|
878
|
+
mt($, (E) => {
|
|
879
|
+
S.value && a.value ? (E(!1), e.persistent ? X() : a.value = !1) : E();
|
|
880
|
+
});
|
|
881
|
+
});
|
|
882
|
+
const ve = I();
|
|
883
|
+
L(() => a.value && (e.absolute || e.contained) && z.value == null, (E) => {
|
|
884
|
+
if (E) {
|
|
885
|
+
const ee = pt(f.value);
|
|
886
|
+
ee && ee !== document.scrollingElement && (ve.value = ee.scrollTop);
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
function X() {
|
|
890
|
+
e.noClickAnimation || k.value && Et(k.value, [{
|
|
891
|
+
transformOrigin: "center"
|
|
892
|
+
}, {
|
|
893
|
+
transform: "scale(1.03)"
|
|
894
|
+
}, {
|
|
895
|
+
transformOrigin: "center"
|
|
896
|
+
}], {
|
|
897
|
+
duration: 150,
|
|
898
|
+
easing: St
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
function He() {
|
|
902
|
+
r("afterEnter");
|
|
903
|
+
}
|
|
904
|
+
function De() {
|
|
905
|
+
C(), r("afterLeave");
|
|
906
|
+
}
|
|
907
|
+
return lt(() => D(vt, null, [n.activator?.({
|
|
908
|
+
isActive: a.value,
|
|
909
|
+
targetRef: N,
|
|
910
|
+
props: V({
|
|
911
|
+
ref: T
|
|
912
|
+
}, R.value, e.activatorProps)
|
|
913
|
+
}), w.value && y.value && D(st, {
|
|
914
|
+
disabled: !z.value,
|
|
915
|
+
to: z.value
|
|
916
|
+
}, {
|
|
917
|
+
default: () => [D("div", V({
|
|
918
|
+
class: ["v-overlay", {
|
|
919
|
+
"v-overlay--absolute": e.absolute || e.contained,
|
|
920
|
+
"v-overlay--active": a.value,
|
|
921
|
+
"v-overlay--contained": e.contained
|
|
922
|
+
}, s.value, v.value, e.class],
|
|
923
|
+
style: [c.value, {
|
|
924
|
+
"--v-overlay-opacity": e.opacity,
|
|
925
|
+
top: M(ve.value)
|
|
926
|
+
}, e.style],
|
|
927
|
+
ref: f
|
|
928
|
+
}, b, o), [D(Jt, V({
|
|
929
|
+
color: P,
|
|
930
|
+
modelValue: a.value && !!e.scrim,
|
|
931
|
+
ref: m
|
|
932
|
+
}, i.value), null), D(kt, {
|
|
933
|
+
appear: !0,
|
|
934
|
+
persisted: !0,
|
|
935
|
+
transition: e.transition,
|
|
936
|
+
target: g.value,
|
|
937
|
+
onAfterEnter: He,
|
|
938
|
+
onAfterLeave: De
|
|
939
|
+
}, {
|
|
940
|
+
default: () => [ct(D("div", V({
|
|
941
|
+
ref: k,
|
|
942
|
+
class: ["v-overlay__content", e.contentClass],
|
|
943
|
+
style: [J.value, B.value]
|
|
944
|
+
}, A.value, e.contentProps), [n.default?.({
|
|
945
|
+
isActive: a
|
|
946
|
+
})]), [[ut, a.value], [ft("click-outside"), {
|
|
947
|
+
handler: p,
|
|
948
|
+
closeConditional: H,
|
|
949
|
+
include: () => [x.value]
|
|
950
|
+
}]])]
|
|
951
|
+
})])]
|
|
952
|
+
})])), {
|
|
953
|
+
activatorEl: x,
|
|
954
|
+
scrimEl: m,
|
|
955
|
+
target: g,
|
|
956
|
+
animateClick: X,
|
|
957
|
+
contentEl: k,
|
|
958
|
+
globalTop: S,
|
|
959
|
+
localTop: u,
|
|
960
|
+
updateLocation: q
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
export {
|
|
965
|
+
an as V,
|
|
966
|
+
en as m
|
|
967
|
+
};
|