energy-components 1.1.2 → 1.1.3
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/dist/components/accordion.es.js +11 -11
- package/dist/components/button.es.js +1 -1
- package/dist/components/card.es.js +21 -9
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/datepicker.es.js +2008 -2008
- package/dist/components/dropdown.es.js +97 -97
- package/dist/components/{icon-svg-CEZ-L3iv.js → icon-svg-GoL3_ayS.js} +699 -665
- package/dist/components/iconList.es.js +1 -1
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +1 -1
- package/dist/components/infoBox.es.js +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/modal.es.js +28 -26
- package/dist/components/multiselect.es.js +2 -2
- package/dist/components/overlay.es.js +3 -3
- package/dist/components/persistentToast.es.js +8 -8
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/sidebar.es.js +11 -11
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/card.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/tag.css +1 -1
- package/dist/components/style/textArea.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabBar.es.js +27 -27
- package/dist/components/tag.es.js +1 -1
- package/dist/components/textArea.es.js +75 -75
- package/dist/components/textField.es.js +11 -11
- package/dist/components/tooltip.es.js +255 -252
- package/dist/energy-components.es.js +3751 -3700
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +4 -4
- package/dist/types/src/components/buttons/button/button.vue.d.ts +11 -18
- package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +4 -4
- package/dist/types/src/components/content/accordion/accordion.vue.d.ts +20 -24
- package/dist/types/src/components/content/acordion-group/accordion-group.vue.d.ts +8 -15
- package/dist/types/src/components/content/card/card.vue.d.ts +26 -15
- package/dist/types/src/components/content/divider/divider.vue.d.ts +4 -4
- package/dist/types/src/components/content/tag/tag.vue.d.ts +4 -4
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +7 -4
- package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +7 -4
- package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +13 -19
- package/dist/types/src/components/icon-svg/icon-list.vue.d.ts +1 -1
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +4 -4
- package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +13 -20
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +26 -36
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +4 -4
- package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +13 -20
- package/dist/types/src/components/input/switch/switch.vue.d.ts +13 -19
- package/dist/types/src/components/input/text-area/text-area.vue.d.ts +16 -25
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +15 -23
- package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +16 -21
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +6 -6
- package/dist/types/src/components/navigation/link/link.vue.d.ts +11 -17
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +6 -6
- package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +24 -27
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +92 -58
- package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +11 -18
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +19 -22
- package/dist/types/src/composables/breakpoints.d.ts +1 -1
- package/dist/types/src/helpers/mobileMockup.vue.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { unref as at, defineComponent as
|
|
2
|
-
import { I as
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/tooltip.css';const
|
|
1
|
+
import { unref as at, defineComponent as Vt, toRefs as Ft, ref as U, computed as Ht, openBlock as bt, createElementBlock as vt, createElementVNode as Z, renderSlot as jt, normalizeClass as At, toDisplayString as Ct, createVNode as It, createCommentVNode as Yt } from "vue";
|
|
2
|
+
import { I as zt } from "./icon-svg-GoL3_ayS.js";
|
|
3
|
+
import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/tooltip.css';const Y = Math.min, O = Math.max, nt = Math.round, k = (t) => ({
|
|
5
5
|
x: t,
|
|
6
6
|
y: t
|
|
7
|
-
}),
|
|
7
|
+
}), Kt = {
|
|
8
8
|
left: "right",
|
|
9
9
|
right: "left",
|
|
10
10
|
bottom: "top",
|
|
11
11
|
top: "bottom"
|
|
12
|
-
},
|
|
12
|
+
}, qt = {
|
|
13
13
|
start: "end",
|
|
14
14
|
end: "start"
|
|
15
15
|
};
|
|
16
16
|
function ft(t, e, o) {
|
|
17
|
-
return O(t,
|
|
17
|
+
return O(t, Y(e, o));
|
|
18
18
|
}
|
|
19
19
|
function J(t, e) {
|
|
20
20
|
return typeof t == "function" ? t(e) : t;
|
|
@@ -28,29 +28,29 @@ function Q(t) {
|
|
|
28
28
|
function Tt(t) {
|
|
29
29
|
return t === "x" ? "y" : "x";
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function mt(t) {
|
|
32
32
|
return t === "y" ? "height" : "width";
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function z(t) {
|
|
35
35
|
return ["top", "bottom"].includes(j(t)) ? "y" : "x";
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return Tt(
|
|
37
|
+
function pt(t) {
|
|
38
|
+
return Tt(z(t));
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Gt(t, e, o) {
|
|
41
41
|
o === void 0 && (o = !1);
|
|
42
|
-
const n = Q(t), i =
|
|
42
|
+
const n = Q(t), i = pt(t), r = mt(i);
|
|
43
43
|
let s = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
44
44
|
return e.reference[r] > e.floating[r] && (s = ot(s)), [s, ot(s)];
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Jt(t) {
|
|
47
47
|
const e = ot(t);
|
|
48
48
|
return [ut(t), e, ut(e)];
|
|
49
49
|
}
|
|
50
50
|
function ut(t) {
|
|
51
|
-
return t.replace(/start|end/g, (e) =>
|
|
51
|
+
return t.replace(/start|end/g, (e) => qt[e]);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Qt(t, e, o) {
|
|
54
54
|
const n = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
|
|
55
55
|
switch (t) {
|
|
56
56
|
case "top":
|
|
@@ -63,15 +63,15 @@ function Jt(t, e, o) {
|
|
|
63
63
|
return [];
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Ut(t, e, o, n) {
|
|
67
67
|
const i = Q(t);
|
|
68
|
-
let r =
|
|
68
|
+
let r = Qt(j(t), o === "start", n);
|
|
69
69
|
return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ut)))), r;
|
|
70
70
|
}
|
|
71
71
|
function ot(t) {
|
|
72
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
72
|
+
return t.replace(/left|right|bottom|top/g, (e) => Kt[e]);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Zt(t) {
|
|
75
75
|
return {
|
|
76
76
|
top: 0,
|
|
77
77
|
right: 0,
|
|
@@ -80,8 +80,8 @@ function Ut(t) {
|
|
|
80
80
|
...t
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return typeof t != "number" ?
|
|
83
|
+
function Dt(t) {
|
|
84
|
+
return typeof t != "number" ? Zt(t) : {
|
|
85
85
|
top: t,
|
|
86
86
|
right: t,
|
|
87
87
|
bottom: t,
|
|
@@ -106,12 +106,12 @@ function it(t) {
|
|
|
106
106
|
y: o
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Rt(t, e, o) {
|
|
110
110
|
let {
|
|
111
111
|
reference: n,
|
|
112
112
|
floating: i
|
|
113
113
|
} = t;
|
|
114
|
-
const r =
|
|
114
|
+
const r = z(e), s = pt(e), l = mt(s), c = j(e), a = r === "y", f = n.x + n.width / 2 - i.width / 2, u = n.y + n.height / 2 - i.height / 2, p = n[l] / 2 - i[l] / 2;
|
|
115
115
|
let d;
|
|
116
116
|
switch (c) {
|
|
117
117
|
case "top":
|
|
@@ -154,7 +154,7 @@ function Ot(t, e, o) {
|
|
|
154
154
|
}
|
|
155
155
|
return d;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const te = async (t, e, o) => {
|
|
158
158
|
const {
|
|
159
159
|
placement: n = "bottom",
|
|
160
160
|
strategy: i = "absolute",
|
|
@@ -168,7 +168,7 @@ const Zt = async (t, e, o) => {
|
|
|
168
168
|
}), {
|
|
169
169
|
x: f,
|
|
170
170
|
y: u
|
|
171
|
-
} =
|
|
171
|
+
} = Rt(a, n, c), p = n, d = {}, m = 0;
|
|
172
172
|
for (let g = 0; g < l.length; g++) {
|
|
173
173
|
const {
|
|
174
174
|
name: h,
|
|
@@ -176,8 +176,8 @@ const Zt = async (t, e, o) => {
|
|
|
176
176
|
} = l[g], {
|
|
177
177
|
x,
|
|
178
178
|
y,
|
|
179
|
-
data:
|
|
180
|
-
reset:
|
|
179
|
+
data: v,
|
|
180
|
+
reset: b
|
|
181
181
|
} = await w({
|
|
182
182
|
x: f,
|
|
183
183
|
y: u,
|
|
@@ -196,16 +196,16 @@ const Zt = async (t, e, o) => {
|
|
|
196
196
|
...d,
|
|
197
197
|
[h]: {
|
|
198
198
|
...d[h],
|
|
199
|
-
...
|
|
199
|
+
...v
|
|
200
200
|
}
|
|
201
|
-
},
|
|
201
|
+
}, b && m <= 50 && (m++, typeof b == "object" && (b.placement && (p = b.placement), b.rects && (a = b.rects === !0 ? await s.getElementRects({
|
|
202
202
|
reference: t,
|
|
203
203
|
floating: e,
|
|
204
204
|
strategy: i
|
|
205
|
-
}) :
|
|
205
|
+
}) : b.rects), {
|
|
206
206
|
x: f,
|
|
207
207
|
y: u
|
|
208
|
-
} =
|
|
208
|
+
} = Rt(a, p, c)), g = -1);
|
|
209
209
|
}
|
|
210
210
|
return {
|
|
211
211
|
x: f,
|
|
@@ -215,7 +215,7 @@ const Zt = async (t, e, o) => {
|
|
|
215
215
|
middlewareData: d
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
|
-
async function
|
|
218
|
+
async function gt(t, e) {
|
|
219
219
|
var o;
|
|
220
220
|
e === void 0 && (e = {});
|
|
221
221
|
const {
|
|
@@ -231,7 +231,7 @@ async function wt(t, e) {
|
|
|
231
231
|
elementContext: u = "floating",
|
|
232
232
|
altBoundary: p = !1,
|
|
233
233
|
padding: d = 0
|
|
234
|
-
} = J(e, t), m =
|
|
234
|
+
} = J(e, t), m = Dt(d), h = l[p ? u === "floating" ? "reference" : "floating" : u], w = it(await r.getClippingRect({
|
|
235
235
|
element: (o = await (r.isElement == null ? void 0 : r.isElement(h))) == null || o ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
|
|
236
236
|
boundary: a,
|
|
237
237
|
rootBoundary: f,
|
|
@@ -241,26 +241,26 @@ async function wt(t, e) {
|
|
|
241
241
|
y: i,
|
|
242
242
|
width: s.floating.width,
|
|
243
243
|
height: s.floating.height
|
|
244
|
-
} : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)),
|
|
244
|
+
} : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), v = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
|
|
245
245
|
x: 1,
|
|
246
246
|
y: 1
|
|
247
247
|
} : {
|
|
248
248
|
x: 1,
|
|
249
249
|
y: 1
|
|
250
|
-
},
|
|
250
|
+
}, b = it(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
251
251
|
elements: l,
|
|
252
252
|
rect: x,
|
|
253
253
|
offsetParent: y,
|
|
254
254
|
strategy: c
|
|
255
255
|
}) : x);
|
|
256
256
|
return {
|
|
257
|
-
top: (w.top -
|
|
258
|
-
bottom: (
|
|
259
|
-
left: (w.left -
|
|
260
|
-
right: (
|
|
257
|
+
top: (w.top - b.top + m.top) / v.y,
|
|
258
|
+
bottom: (b.bottom - w.bottom + m.bottom) / v.y,
|
|
259
|
+
left: (w.left - b.left + m.left) / v.x,
|
|
260
|
+
right: (b.right - w.right + m.right) / v.x
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const ee = (t) => ({
|
|
264
264
|
name: "arrow",
|
|
265
265
|
options: t,
|
|
266
266
|
async fn(e) {
|
|
@@ -278,26 +278,26 @@ const te = (t) => ({
|
|
|
278
278
|
} = J(t, e) || {};
|
|
279
279
|
if (a == null)
|
|
280
280
|
return {};
|
|
281
|
-
const u =
|
|
281
|
+
const u = Dt(f), p = {
|
|
282
282
|
x: o,
|
|
283
283
|
y: n
|
|
284
|
-
}, d =
|
|
285
|
-
let C =
|
|
286
|
-
(!C || !await (s.isElement == null ? void 0 : s.isElement(
|
|
287
|
-
const
|
|
284
|
+
}, d = pt(i), m = mt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", v = r.reference[m] + r.reference[d] - p[d] - r.floating[m], b = p[d] - r.reference[d], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
|
|
285
|
+
let C = D ? D[y] : 0;
|
|
286
|
+
(!C || !await (s.isElement == null ? void 0 : s.isElement(D))) && (C = l.floating[y] || r.floating[m]);
|
|
287
|
+
const W = v / 2 - b / 2, E = C / 2 - g[m] / 2 - 1, _ = Y(u[w], E), B = Y(u[x], E), L = _, V = C - g[m] - B, A = C / 2 - g[m] / 2 + W, K = ft(L, A, V), M = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < L ? _ : B) - g[m] / 2 < 0, P = M ? A < L ? A - L : A - V : 0;
|
|
288
288
|
return {
|
|
289
|
-
[d]: p[d] +
|
|
289
|
+
[d]: p[d] + P,
|
|
290
290
|
data: {
|
|
291
291
|
[d]: K,
|
|
292
|
-
centerOffset: A - K -
|
|
293
|
-
...
|
|
294
|
-
alignmentOffset:
|
|
292
|
+
centerOffset: A - K - P,
|
|
293
|
+
...M && {
|
|
294
|
+
alignmentOffset: P
|
|
295
295
|
}
|
|
296
296
|
},
|
|
297
|
-
reset:
|
|
297
|
+
reset: M
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
}),
|
|
300
|
+
}), ne = function(t) {
|
|
301
301
|
return t === void 0 && (t = {}), {
|
|
302
302
|
name: "flip",
|
|
303
303
|
options: t,
|
|
@@ -321,55 +321,55 @@ const te = (t) => ({
|
|
|
321
321
|
} = J(t, e);
|
|
322
322
|
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
323
323
|
return {};
|
|
324
|
-
const w = j(i), x =
|
|
325
|
-
!p &&
|
|
326
|
-
const C = [l, ...
|
|
327
|
-
let
|
|
328
|
-
if (f && E.push(
|
|
329
|
-
const A =
|
|
330
|
-
E.push(
|
|
324
|
+
const w = j(i), x = z(l), y = j(l) === l, v = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), b = p || (y || !g ? [ot(l)] : Jt(l)), D = m !== "none";
|
|
325
|
+
!p && D && b.push(...Ut(l, g, m, v));
|
|
326
|
+
const C = [l, ...b], W = await gt(e, h), E = [];
|
|
327
|
+
let _ = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
328
|
+
if (f && E.push(W[w]), u) {
|
|
329
|
+
const A = Gt(i, s, v);
|
|
330
|
+
E.push(W[A[0]], W[A[1]]);
|
|
331
331
|
}
|
|
332
|
-
if (
|
|
332
|
+
if (_ = [..._, {
|
|
333
333
|
placement: i,
|
|
334
334
|
overflows: E
|
|
335
335
|
}], !E.every((A) => A <= 0)) {
|
|
336
|
-
var B,
|
|
336
|
+
var B, L;
|
|
337
337
|
const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K = C[A];
|
|
338
338
|
if (K)
|
|
339
339
|
return {
|
|
340
340
|
data: {
|
|
341
341
|
index: A,
|
|
342
|
-
overflows:
|
|
342
|
+
overflows: _
|
|
343
343
|
},
|
|
344
344
|
reset: {
|
|
345
345
|
placement: K
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
|
-
let
|
|
349
|
-
if (!
|
|
348
|
+
let M = (L = _.filter((P) => P.overflows[0] <= 0).sort((P, F) => P.overflows[1] - F.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
349
|
+
if (!M)
|
|
350
350
|
switch (d) {
|
|
351
351
|
case "bestFit": {
|
|
352
|
-
var
|
|
353
|
-
const
|
|
354
|
-
if (
|
|
355
|
-
const
|
|
356
|
-
return
|
|
352
|
+
var V;
|
|
353
|
+
const P = (V = _.filter((F) => {
|
|
354
|
+
if (D) {
|
|
355
|
+
const H = z(F.placement);
|
|
356
|
+
return H === x || // Create a bias to the `y` side axis due to horizontal
|
|
357
357
|
// reading directions favoring greater width.
|
|
358
|
-
|
|
358
|
+
H === "y";
|
|
359
359
|
}
|
|
360
360
|
return !0;
|
|
361
|
-
}).map((
|
|
362
|
-
|
|
361
|
+
}).map((F) => [F.placement, F.overflows.filter((H) => H > 0).reduce((H, Bt) => H + Bt, 0)]).sort((F, H) => F[1] - H[1])[0]) == null ? void 0 : V[0];
|
|
362
|
+
P && (M = P);
|
|
363
363
|
break;
|
|
364
364
|
}
|
|
365
365
|
case "initialPlacement":
|
|
366
|
-
|
|
366
|
+
M = l;
|
|
367
367
|
break;
|
|
368
368
|
}
|
|
369
|
-
if (i !==
|
|
369
|
+
if (i !== M)
|
|
370
370
|
return {
|
|
371
371
|
reset: {
|
|
372
|
-
placement:
|
|
372
|
+
placement: M
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
}
|
|
@@ -377,12 +377,12 @@ const te = (t) => ({
|
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
};
|
|
380
|
-
async function
|
|
380
|
+
async function oe(t, e) {
|
|
381
381
|
const {
|
|
382
382
|
placement: o,
|
|
383
383
|
platform: n,
|
|
384
384
|
elements: i
|
|
385
|
-
} = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = j(o), l = Q(o), c =
|
|
385
|
+
} = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = j(o), l = Q(o), c = z(o) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, u = J(e, t);
|
|
386
386
|
let {
|
|
387
387
|
mainAxis: p,
|
|
388
388
|
crossAxis: d,
|
|
@@ -404,7 +404,7 @@ async function ne(t, e) {
|
|
|
404
404
|
y: d * f
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
|
-
const
|
|
407
|
+
const ie = function(t) {
|
|
408
408
|
return t === void 0 && (t = 0), {
|
|
409
409
|
name: "offset",
|
|
410
410
|
options: t,
|
|
@@ -415,7 +415,7 @@ const oe = function(t) {
|
|
|
415
415
|
y: r,
|
|
416
416
|
placement: s,
|
|
417
417
|
middlewareData: l
|
|
418
|
-
} = e, c = await
|
|
418
|
+
} = e, c = await oe(e, t);
|
|
419
419
|
return s === ((o = l.offset) == null ? void 0 : o.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
|
|
420
420
|
x: i + c.x,
|
|
421
421
|
y: r + c.y,
|
|
@@ -426,7 +426,7 @@ const oe = function(t) {
|
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
|
-
},
|
|
429
|
+
}, se = function(t) {
|
|
430
430
|
return t === void 0 && (t = {}), {
|
|
431
431
|
name: "shift",
|
|
432
432
|
options: t,
|
|
@@ -454,7 +454,7 @@ const oe = function(t) {
|
|
|
454
454
|
} = J(t, e), a = {
|
|
455
455
|
x: o,
|
|
456
456
|
y: n
|
|
457
|
-
}, f = await
|
|
457
|
+
}, f = await gt(e, c), u = z(j(i)), p = Tt(u);
|
|
458
458
|
let d = a[p], m = a[u];
|
|
459
459
|
if (r) {
|
|
460
460
|
const h = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", x = d + f[h], y = d - f[w];
|
|
@@ -482,7 +482,7 @@ const oe = function(t) {
|
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
|
-
},
|
|
485
|
+
}, re = function(t) {
|
|
486
486
|
return t === void 0 && (t = {}), {
|
|
487
487
|
name: "size",
|
|
488
488
|
options: t,
|
|
@@ -497,21 +497,21 @@ const oe = function(t) {
|
|
|
497
497
|
apply: c = () => {
|
|
498
498
|
},
|
|
499
499
|
...a
|
|
500
|
-
} = J(t, e), f = await
|
|
500
|
+
} = J(t, e), f = await gt(e, a), u = j(i), p = Q(i), d = z(i) === "y", {
|
|
501
501
|
width: m,
|
|
502
502
|
height: g
|
|
503
503
|
} = r.floating;
|
|
504
504
|
let h, w;
|
|
505
505
|
u === "top" || u === "bottom" ? (h = u, w = p === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (w = u, h = p === "end" ? "top" : "bottom");
|
|
506
|
-
const x = g - f.top - f.bottom, y = m - f.left - f.right,
|
|
507
|
-
let C =
|
|
508
|
-
if ((o = e.middlewareData.shift) != null && o.enabled.x && (
|
|
509
|
-
const
|
|
510
|
-
d ?
|
|
506
|
+
const x = g - f.top - f.bottom, y = m - f.left - f.right, v = Y(g - f[h], x), b = Y(m - f[w], y), D = !e.middlewareData.shift;
|
|
507
|
+
let C = v, W = b;
|
|
508
|
+
if ((o = e.middlewareData.shift) != null && o.enabled.x && (W = y), (n = e.middlewareData.shift) != null && n.enabled.y && (C = x), D && !p) {
|
|
509
|
+
const _ = O(f.left, 0), B = O(f.right, 0), L = O(f.top, 0), V = O(f.bottom, 0);
|
|
510
|
+
d ? W = m - 2 * (_ !== 0 || B !== 0 ? _ + B : O(f.left, f.right)) : C = g - 2 * (L !== 0 || V !== 0 ? L + V : O(f.top, f.bottom));
|
|
511
511
|
}
|
|
512
512
|
await c({
|
|
513
513
|
...e,
|
|
514
|
-
availableWidth:
|
|
514
|
+
availableWidth: W,
|
|
515
515
|
availableHeight: C
|
|
516
516
|
});
|
|
517
517
|
const E = await s.getDimensions(l.floating);
|
|
@@ -526,8 +526,8 @@ const oe = function(t) {
|
|
|
526
526
|
function st() {
|
|
527
527
|
return typeof window < "u";
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
return
|
|
529
|
+
function X(t) {
|
|
530
|
+
return ht(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
531
531
|
}
|
|
532
532
|
function R(t) {
|
|
533
533
|
var e;
|
|
@@ -535,18 +535,18 @@ function R(t) {
|
|
|
535
535
|
}
|
|
536
536
|
function N(t) {
|
|
537
537
|
var e;
|
|
538
|
-
return (e = (
|
|
538
|
+
return (e = (ht(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function ht(t) {
|
|
541
541
|
return st() ? t instanceof Node || t instanceof R(t).Node : !1;
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function S(t) {
|
|
544
544
|
return st() ? t instanceof Element || t instanceof R(t).Element : !1;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function $(t) {
|
|
547
547
|
return st() ? t instanceof HTMLElement || t instanceof R(t).HTMLElement : !1;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Ot(t) {
|
|
550
550
|
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
|
|
551
551
|
}
|
|
552
552
|
function et(t) {
|
|
@@ -555,11 +555,11 @@ function et(t) {
|
|
|
555
555
|
overflowX: o,
|
|
556
556
|
overflowY: n,
|
|
557
557
|
display: i
|
|
558
|
-
} =
|
|
558
|
+
} = T(t);
|
|
559
559
|
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
return ["table", "td", "th"].includes(
|
|
561
|
+
function le(t) {
|
|
562
|
+
return ["table", "td", "th"].includes(X(t));
|
|
563
563
|
}
|
|
564
564
|
function rt(t) {
|
|
565
565
|
return [":popover-open", ":modal"].some((e) => {
|
|
@@ -570,32 +570,32 @@ function rt(t) {
|
|
|
570
570
|
}
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
const e =
|
|
575
|
-
return
|
|
573
|
+
function wt(t) {
|
|
574
|
+
const e = xt(), o = S(t) ? T(t) : t;
|
|
575
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
let e =
|
|
579
|
-
for (;
|
|
580
|
-
if (
|
|
577
|
+
function ce(t) {
|
|
578
|
+
let e = I(t);
|
|
579
|
+
for (; $(e) && !G(e); ) {
|
|
580
|
+
if (wt(e))
|
|
581
581
|
return e;
|
|
582
582
|
if (rt(e))
|
|
583
583
|
return null;
|
|
584
|
-
e =
|
|
584
|
+
e = I(e);
|
|
585
585
|
}
|
|
586
586
|
return null;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function xt() {
|
|
589
589
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
590
590
|
}
|
|
591
591
|
function G(t) {
|
|
592
|
-
return ["html", "body", "#document"].includes(
|
|
592
|
+
return ["html", "body", "#document"].includes(X(t));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function T(t) {
|
|
595
595
|
return R(t).getComputedStyle(t);
|
|
596
596
|
}
|
|
597
597
|
function lt(t) {
|
|
598
|
-
return
|
|
598
|
+
return S(t) ? {
|
|
599
599
|
scrollLeft: t.scrollLeft,
|
|
600
600
|
scrollTop: t.scrollTop
|
|
601
601
|
} : {
|
|
@@ -603,39 +603,35 @@ function lt(t) {
|
|
|
603
603
|
scrollTop: t.scrollY
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
if (
|
|
606
|
+
function I(t) {
|
|
607
|
+
if (X(t) === "html")
|
|
608
608
|
return t;
|
|
609
609
|
const e = (
|
|
610
610
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
611
611
|
t.assignedSlot || // DOM Element detected.
|
|
612
612
|
t.parentNode || // ShadowRoot detected.
|
|
613
|
-
|
|
613
|
+
Ot(t) && t.host || // Fallback.
|
|
614
614
|
N(t)
|
|
615
615
|
);
|
|
616
|
-
return
|
|
616
|
+
return Ot(e) ? e.host : e;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
const e =
|
|
620
|
-
return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
618
|
+
function Et(t) {
|
|
619
|
+
const e = I(t);
|
|
620
|
+
return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : $(e) && et(e) ? e : Et(e);
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Lt(t, e, o) {
|
|
623
623
|
var n;
|
|
624
|
-
e === void 0 && (e = [])
|
|
625
|
-
const i =
|
|
626
|
-
|
|
627
|
-
const l = mt(s);
|
|
628
|
-
return e.concat(s, s.visualViewport || [], et(i) ? i : [], l && o ? dt(l) : []);
|
|
629
|
-
}
|
|
630
|
-
return e.concat(i, dt(i, [], o));
|
|
624
|
+
e === void 0 && (e = []);
|
|
625
|
+
const i = Et(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = R(i);
|
|
626
|
+
return r ? (dt(s), e.concat(s, s.visualViewport || [], et(i) ? i : [], [])) : e.concat(i, Lt(i, []));
|
|
631
627
|
}
|
|
632
|
-
function
|
|
628
|
+
function dt(t) {
|
|
633
629
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
634
630
|
}
|
|
635
|
-
function
|
|
636
|
-
const e =
|
|
631
|
+
function Pt(t) {
|
|
632
|
+
const e = T(t);
|
|
637
633
|
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
638
|
-
const i =
|
|
634
|
+
const i = $(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, l = nt(o) !== r || nt(n) !== s;
|
|
639
635
|
return l && (o = r, n = s), {
|
|
640
636
|
width: o,
|
|
641
637
|
height: n,
|
|
@@ -643,47 +639,47 @@ function Lt(t) {
|
|
|
643
639
|
};
|
|
644
640
|
}
|
|
645
641
|
function kt(t) {
|
|
646
|
-
return
|
|
642
|
+
return S(t) ? t : t.contextElement;
|
|
647
643
|
}
|
|
648
644
|
function q(t) {
|
|
649
645
|
const e = kt(t);
|
|
650
|
-
if (
|
|
651
|
-
return
|
|
646
|
+
if (!$(e))
|
|
647
|
+
return k(1);
|
|
652
648
|
const o = e.getBoundingClientRect(), {
|
|
653
649
|
width: n,
|
|
654
650
|
height: i,
|
|
655
651
|
$: r
|
|
656
|
-
} =
|
|
652
|
+
} = Pt(e);
|
|
657
653
|
let s = (r ? nt(o.width) : o.width) / n, l = (r ? nt(o.height) : o.height) / i;
|
|
658
654
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
659
655
|
x: s,
|
|
660
656
|
y: l
|
|
661
657
|
};
|
|
662
658
|
}
|
|
663
|
-
const
|
|
659
|
+
const ae = /* @__PURE__ */ k(0);
|
|
664
660
|
function $t(t) {
|
|
665
661
|
const e = R(t);
|
|
666
|
-
return !
|
|
662
|
+
return !xt() || !e.visualViewport ? ae : {
|
|
667
663
|
x: e.visualViewport.offsetLeft,
|
|
668
664
|
y: e.visualViewport.offsetTop
|
|
669
665
|
};
|
|
670
666
|
}
|
|
671
|
-
function
|
|
667
|
+
function fe(t, e, o) {
|
|
672
668
|
return e === void 0 && (e = !1), !o || e && o !== R(t) ? !1 : e;
|
|
673
669
|
}
|
|
674
670
|
function tt(t, e, o, n) {
|
|
675
671
|
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
676
672
|
const i = t.getBoundingClientRect(), r = kt(t);
|
|
677
|
-
let s =
|
|
678
|
-
e && (n ?
|
|
679
|
-
const l =
|
|
673
|
+
let s = k(1);
|
|
674
|
+
e && (n ? S(n) && (s = q(n)) : s = q(t));
|
|
675
|
+
const l = fe(r, o, n) ? $t(r) : k(0);
|
|
680
676
|
let c = (i.left + l.x) / s.x, a = (i.top + l.y) / s.y, f = i.width / s.x, u = i.height / s.y;
|
|
681
677
|
if (r) {
|
|
682
|
-
const p = R(r), d = n &&
|
|
683
|
-
let m = p, g =
|
|
678
|
+
const p = R(r), d = n && S(n) ? R(n) : n;
|
|
679
|
+
let m = p, g = dt(m);
|
|
684
680
|
for (; g && n && d !== m; ) {
|
|
685
|
-
const h = q(g), w = g.getBoundingClientRect(), x =
|
|
686
|
-
c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a +=
|
|
681
|
+
const h = q(g), w = g.getBoundingClientRect(), x = T(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, v = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
|
|
682
|
+
c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += v, m = R(g), g = dt(m);
|
|
687
683
|
}
|
|
688
684
|
}
|
|
689
685
|
return it({
|
|
@@ -693,7 +689,22 @@ function tt(t, e, o, n) {
|
|
|
693
689
|
y: a
|
|
694
690
|
});
|
|
695
691
|
}
|
|
696
|
-
function
|
|
692
|
+
function yt(t, e) {
|
|
693
|
+
const o = lt(t).scrollLeft;
|
|
694
|
+
return e ? e.left + o : tt(N(t)).left + o;
|
|
695
|
+
}
|
|
696
|
+
function Wt(t, e, o) {
|
|
697
|
+
o === void 0 && (o = !1);
|
|
698
|
+
const n = t.getBoundingClientRect(), i = n.left + e.scrollLeft - (o ? 0 : (
|
|
699
|
+
// RTL <body> scrollbar.
|
|
700
|
+
yt(t, n)
|
|
701
|
+
)), r = n.top + e.scrollTop;
|
|
702
|
+
return {
|
|
703
|
+
x: i,
|
|
704
|
+
y: r
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
function ue(t) {
|
|
697
708
|
let {
|
|
698
709
|
elements: e,
|
|
699
710
|
rect: o,
|
|
@@ -706,43 +717,40 @@ function fe(t) {
|
|
|
706
717
|
let c = {
|
|
707
718
|
scrollLeft: 0,
|
|
708
719
|
scrollTop: 0
|
|
709
|
-
}, a =
|
|
710
|
-
const f =
|
|
711
|
-
if ((u || !u && !r) && ((
|
|
712
|
-
const
|
|
713
|
-
a = q(n), f.x =
|
|
720
|
+
}, a = k(1);
|
|
721
|
+
const f = k(0), u = $(n);
|
|
722
|
+
if ((u || !u && !r) && ((X(n) !== "body" || et(s)) && (c = lt(n)), $(n))) {
|
|
723
|
+
const d = tt(n);
|
|
724
|
+
a = q(n), f.x = d.x + n.clientLeft, f.y = d.y + n.clientTop;
|
|
714
725
|
}
|
|
726
|
+
const p = s && !u && !r ? Wt(s, c, !0) : k(0);
|
|
715
727
|
return {
|
|
716
728
|
width: o.width * a.x,
|
|
717
729
|
height: o.height * a.y,
|
|
718
|
-
x: o.x * a.x - c.scrollLeft * a.x + f.x,
|
|
719
|
-
y: o.y * a.y - c.scrollTop * a.y + f.y
|
|
730
|
+
x: o.x * a.x - c.scrollLeft * a.x + f.x + p.x,
|
|
731
|
+
y: o.y * a.y - c.scrollTop * a.y + f.y + p.y
|
|
720
732
|
};
|
|
721
733
|
}
|
|
722
|
-
function
|
|
734
|
+
function de(t) {
|
|
723
735
|
return Array.from(t.getClientRects());
|
|
724
736
|
}
|
|
725
|
-
function
|
|
726
|
-
const o = lt(t).scrollLeft;
|
|
727
|
-
return e ? e.left + o : tt(N(t)).left + o;
|
|
728
|
-
}
|
|
729
|
-
function de(t) {
|
|
737
|
+
function me(t) {
|
|
730
738
|
const e = N(t), o = lt(t), n = t.ownerDocument.body, i = O(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = O(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
731
|
-
let s = -o.scrollLeft +
|
|
739
|
+
let s = -o.scrollLeft + yt(t);
|
|
732
740
|
const l = -o.scrollTop;
|
|
733
|
-
return
|
|
741
|
+
return T(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
|
|
734
742
|
width: i,
|
|
735
743
|
height: r,
|
|
736
744
|
x: s,
|
|
737
745
|
y: l
|
|
738
746
|
};
|
|
739
747
|
}
|
|
740
|
-
function
|
|
748
|
+
function pe(t, e) {
|
|
741
749
|
const o = R(t), n = N(t), i = o.visualViewport;
|
|
742
750
|
let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
|
|
743
751
|
if (i) {
|
|
744
752
|
r = i.width, s = i.height;
|
|
745
|
-
const a =
|
|
753
|
+
const a = xt();
|
|
746
754
|
(!a || a && e === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
|
|
747
755
|
}
|
|
748
756
|
return {
|
|
@@ -752,8 +760,8 @@ function me(t, e) {
|
|
|
752
760
|
y: c
|
|
753
761
|
};
|
|
754
762
|
}
|
|
755
|
-
function
|
|
756
|
-
const o = tt(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r =
|
|
763
|
+
function ge(t, e) {
|
|
764
|
+
const o = tt(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = $(t) ? q(t) : k(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, c = i * r.x, a = n * r.y;
|
|
757
765
|
return {
|
|
758
766
|
width: s,
|
|
759
767
|
height: l,
|
|
@@ -764,48 +772,49 @@ function pe(t, e) {
|
|
|
764
772
|
function _t(t, e, o) {
|
|
765
773
|
let n;
|
|
766
774
|
if (e === "viewport")
|
|
767
|
-
n =
|
|
775
|
+
n = pe(t, o);
|
|
768
776
|
else if (e === "document")
|
|
769
|
-
n =
|
|
770
|
-
else if (
|
|
771
|
-
n =
|
|
777
|
+
n = me(N(t));
|
|
778
|
+
else if (S(e))
|
|
779
|
+
n = ge(e, o);
|
|
772
780
|
else {
|
|
773
781
|
const i = $t(t);
|
|
774
782
|
n = {
|
|
775
|
-
...e,
|
|
776
783
|
x: e.x - i.x,
|
|
777
|
-
y: e.y - i.y
|
|
784
|
+
y: e.y - i.y,
|
|
785
|
+
width: e.width,
|
|
786
|
+
height: e.height
|
|
778
787
|
};
|
|
779
788
|
}
|
|
780
789
|
return it(n);
|
|
781
790
|
}
|
|
782
|
-
function
|
|
783
|
-
const o =
|
|
784
|
-
return o === e || !
|
|
791
|
+
function Mt(t, e) {
|
|
792
|
+
const o = I(t);
|
|
793
|
+
return o === e || !S(o) || G(o) ? !1 : T(o).position === "fixed" || Mt(o, e);
|
|
785
794
|
}
|
|
786
|
-
function
|
|
795
|
+
function he(t, e) {
|
|
787
796
|
const o = e.get(t);
|
|
788
797
|
if (o)
|
|
789
798
|
return o;
|
|
790
|
-
let n =
|
|
791
|
-
const r =
|
|
792
|
-
let s = r ?
|
|
793
|
-
for (;
|
|
794
|
-
const l =
|
|
795
|
-
!c && l.position === "fixed" && (i = null), (r ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || et(s) && !c &&
|
|
799
|
+
let n = Lt(t, []).filter((l) => S(l) && X(l) !== "body"), i = null;
|
|
800
|
+
const r = T(t).position === "fixed";
|
|
801
|
+
let s = r ? I(t) : t;
|
|
802
|
+
for (; S(s) && !G(s); ) {
|
|
803
|
+
const l = T(s), c = wt(s);
|
|
804
|
+
!c && l.position === "fixed" && (i = null), (r ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || et(s) && !c && Mt(t, s)) ? n = n.filter((f) => f !== s) : i = l, s = I(s);
|
|
796
805
|
}
|
|
797
806
|
return e.set(t, n), n;
|
|
798
807
|
}
|
|
799
|
-
function
|
|
808
|
+
function we(t) {
|
|
800
809
|
let {
|
|
801
810
|
element: e,
|
|
802
811
|
boundary: o,
|
|
803
812
|
rootBoundary: n,
|
|
804
813
|
strategy: i
|
|
805
814
|
} = t;
|
|
806
|
-
const s = [...o === "clippingAncestors" ? rt(e) ? [] :
|
|
815
|
+
const s = [...o === "clippingAncestors" ? rt(e) ? [] : he(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
|
|
807
816
|
const u = _t(e, f, i);
|
|
808
|
-
return a.top = O(u.top, a.top), a.right =
|
|
817
|
+
return a.top = O(u.top, a.top), a.right = Y(u.right, a.right), a.bottom = Y(u.bottom, a.bottom), a.left = O(u.left, a.left), a;
|
|
809
818
|
}, _t(e, l, i));
|
|
810
819
|
return {
|
|
811
820
|
width: c.right - c.left,
|
|
@@ -814,47 +823,41 @@ function he(t) {
|
|
|
814
823
|
y: c.top
|
|
815
824
|
};
|
|
816
825
|
}
|
|
817
|
-
function
|
|
826
|
+
function xe(t) {
|
|
818
827
|
const {
|
|
819
828
|
width: e,
|
|
820
829
|
height: o
|
|
821
|
-
} =
|
|
830
|
+
} = Pt(t);
|
|
822
831
|
return {
|
|
823
832
|
width: e,
|
|
824
833
|
height: o
|
|
825
834
|
};
|
|
826
835
|
}
|
|
827
|
-
function
|
|
828
|
-
const n =
|
|
836
|
+
function ye(t, e, o) {
|
|
837
|
+
const n = $(e), i = N(e), r = o === "fixed", s = tt(t, !0, r, e);
|
|
829
838
|
let l = {
|
|
830
839
|
scrollLeft: 0,
|
|
831
840
|
scrollTop: 0
|
|
832
841
|
};
|
|
833
|
-
const c =
|
|
842
|
+
const c = k(0);
|
|
834
843
|
if (n || !n && !r)
|
|
835
|
-
if ((
|
|
836
|
-
const
|
|
837
|
-
c.x =
|
|
838
|
-
} else i && (c.x =
|
|
839
|
-
|
|
840
|
-
if (i && !n && !r) {
|
|
841
|
-
const d = i.getBoundingClientRect();
|
|
842
|
-
f = d.top + l.scrollTop, a = d.left + l.scrollLeft - // RTL <body> scrollbar.
|
|
843
|
-
pt(i, d);
|
|
844
|
-
}
|
|
845
|
-
const u = s.left + l.scrollLeft - c.x - a, p = s.top + l.scrollTop - c.y - f;
|
|
844
|
+
if ((X(e) !== "body" || et(i)) && (l = lt(e)), n) {
|
|
845
|
+
const p = tt(e, !0, r, e);
|
|
846
|
+
c.x = p.x + e.clientLeft, c.y = p.y + e.clientTop;
|
|
847
|
+
} else i && (c.x = yt(i));
|
|
848
|
+
const a = i && !n && !r ? Wt(i, l) : k(0), f = s.left + l.scrollLeft - c.x - a.x, u = s.top + l.scrollTop - c.y - a.y;
|
|
846
849
|
return {
|
|
847
|
-
x:
|
|
848
|
-
y:
|
|
850
|
+
x: f,
|
|
851
|
+
y: u,
|
|
849
852
|
width: s.width,
|
|
850
853
|
height: s.height
|
|
851
854
|
};
|
|
852
855
|
}
|
|
853
856
|
function ct(t) {
|
|
854
|
-
return
|
|
857
|
+
return T(t).position === "static";
|
|
855
858
|
}
|
|
856
|
-
function
|
|
857
|
-
if (
|
|
859
|
+
function St(t, e) {
|
|
860
|
+
if (!$(t) || T(t).position === "fixed")
|
|
858
861
|
return null;
|
|
859
862
|
if (e)
|
|
860
863
|
return e(t);
|
|
@@ -865,24 +868,24 @@ function Nt(t, e) {
|
|
|
865
868
|
const o = R(t);
|
|
866
869
|
if (rt(t))
|
|
867
870
|
return o;
|
|
868
|
-
if (
|
|
869
|
-
let i =
|
|
871
|
+
if (!$(t)) {
|
|
872
|
+
let i = I(t);
|
|
870
873
|
for (; i && !G(i); ) {
|
|
871
|
-
if (
|
|
874
|
+
if (S(i) && !ct(i))
|
|
872
875
|
return i;
|
|
873
|
-
i =
|
|
876
|
+
i = I(i);
|
|
874
877
|
}
|
|
875
878
|
return o;
|
|
876
879
|
}
|
|
877
|
-
let n =
|
|
878
|
-
for (; n &&
|
|
879
|
-
n =
|
|
880
|
-
return n && G(n) && ct(n) && !
|
|
880
|
+
let n = St(t, e);
|
|
881
|
+
for (; n && le(n) && ct(n); )
|
|
882
|
+
n = St(n, e);
|
|
883
|
+
return n && G(n) && ct(n) && !wt(n) ? o : n || ce(t) || o;
|
|
881
884
|
}
|
|
882
|
-
const
|
|
885
|
+
const be = async function(t) {
|
|
883
886
|
const e = this.getOffsetParent || Nt, o = this.getDimensions, n = await o(t.floating);
|
|
884
887
|
return {
|
|
885
|
-
reference:
|
|
888
|
+
reference: ye(t.reference, await e(t.floating), t.strategy),
|
|
886
889
|
floating: {
|
|
887
890
|
x: 0,
|
|
888
891
|
y: 0,
|
|
@@ -892,28 +895,28 @@ const ye = async function(t) {
|
|
|
892
895
|
};
|
|
893
896
|
};
|
|
894
897
|
function ve(t) {
|
|
895
|
-
return
|
|
898
|
+
return T(t).direction === "rtl";
|
|
896
899
|
}
|
|
897
|
-
const
|
|
898
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
900
|
+
const Ae = {
|
|
901
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ue,
|
|
899
902
|
getDocumentElement: N,
|
|
900
|
-
getClippingRect:
|
|
903
|
+
getClippingRect: we,
|
|
901
904
|
getOffsetParent: Nt,
|
|
902
|
-
getElementRects:
|
|
903
|
-
getClientRects:
|
|
904
|
-
getDimensions:
|
|
905
|
+
getElementRects: be,
|
|
906
|
+
getClientRects: de,
|
|
907
|
+
getDimensions: xe,
|
|
905
908
|
getScale: q,
|
|
906
|
-
isElement:
|
|
909
|
+
isElement: S,
|
|
907
910
|
isRTL: ve
|
|
908
|
-
},
|
|
911
|
+
}, Ce = ie, Re = se, Oe = ne, _e = re, Se = ee, Te = (t, e, o) => {
|
|
909
912
|
const n = /* @__PURE__ */ new Map(), i = {
|
|
910
|
-
platform:
|
|
913
|
+
platform: Ae,
|
|
911
914
|
...o
|
|
912
915
|
}, r = {
|
|
913
916
|
...i.platform,
|
|
914
917
|
_c: n
|
|
915
918
|
};
|
|
916
|
-
return
|
|
919
|
+
return te(t, e, {
|
|
917
920
|
...i,
|
|
918
921
|
platform: r
|
|
919
922
|
});
|
|
@@ -921,14 +924,14 @@ const be = {
|
|
|
921
924
|
function De(t) {
|
|
922
925
|
return t != null && typeof t == "object" && "$el" in t;
|
|
923
926
|
}
|
|
924
|
-
function
|
|
927
|
+
function Ee(t) {
|
|
925
928
|
if (De(t)) {
|
|
926
929
|
const e = t.$el;
|
|
927
|
-
return
|
|
930
|
+
return ht(e) && X(e) === "#comment" ? null : e;
|
|
928
931
|
}
|
|
929
932
|
return t;
|
|
930
933
|
}
|
|
931
|
-
function
|
|
934
|
+
function Le(t) {
|
|
932
935
|
return typeof t == "function" ? t() : at(t);
|
|
933
936
|
}
|
|
934
937
|
function Pe(t) {
|
|
@@ -936,7 +939,7 @@ function Pe(t) {
|
|
|
936
939
|
name: "arrow",
|
|
937
940
|
options: t,
|
|
938
941
|
fn(e) {
|
|
939
|
-
const o =
|
|
942
|
+
const o = Ee(Le(t.element));
|
|
940
943
|
return o == null ? {} : Se({
|
|
941
944
|
element: o,
|
|
942
945
|
padding: t.padding
|
|
@@ -944,10 +947,10 @@ function Pe(t) {
|
|
|
944
947
|
}
|
|
945
948
|
};
|
|
946
949
|
}
|
|
947
|
-
const
|
|
950
|
+
const ke = { class: "rds-e-tooltip" }, $e = {
|
|
948
951
|
key: 0,
|
|
949
952
|
class: "rds-e-tooltip__header"
|
|
950
|
-
},
|
|
953
|
+
}, We = { class: "rds-e-tooltip__title" }, Me = { class: "rds-e-tooltip__content" }, Ne = /* @__PURE__ */ Vt({
|
|
951
954
|
__name: "tooltip",
|
|
952
955
|
props: {
|
|
953
956
|
/**
|
|
@@ -994,22 +997,22 @@ const Le = { class: "rds-e-tooltip" }, ke = {
|
|
|
994
997
|
}
|
|
995
998
|
},
|
|
996
999
|
setup(t) {
|
|
997
|
-
const e = t, { large: o, fullWidth: n, title: i } =
|
|
998
|
-
const { x: m, y: g, middlewareData: h, placement: w } = await
|
|
1000
|
+
const e = t, { large: o, fullWidth: n, title: i } = Ft(e), r = U(), s = U(), l = U(), c = U(!0), a = U(""), f = async () => {
|
|
1001
|
+
const { x: m, y: g, middlewareData: h, placement: w } = await Te(
|
|
999
1002
|
r.value,
|
|
1000
1003
|
s.value,
|
|
1001
1004
|
{
|
|
1002
1005
|
placement: e.placement,
|
|
1003
1006
|
middleware: [
|
|
1004
|
-
|
|
1007
|
+
Ce(e.offsetSpace),
|
|
1008
|
+
Oe(),
|
|
1005
1009
|
Re(),
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
apply({ availableHeight: v, availableWidth: T, elements: C }) {
|
|
1010
|
+
_e({
|
|
1011
|
+
apply({ availableHeight: b, availableWidth: D, elements: C }) {
|
|
1009
1012
|
Object.assign(C.floating.style, {
|
|
1010
|
-
maxWidth: n.value ? `${Math.max(0,
|
|
1013
|
+
maxWidth: n.value ? `${Math.max(0, D)}px` : "380px",
|
|
1011
1014
|
width: "max-content",
|
|
1012
|
-
maxHeight: `${Math.max(0,
|
|
1015
|
+
maxHeight: `${Math.max(0, b)}px`
|
|
1013
1016
|
});
|
|
1014
1017
|
}
|
|
1015
1018
|
}),
|
|
@@ -1024,7 +1027,7 @@ const Le = { class: "rds-e-tooltip" }, ke = {
|
|
|
1024
1027
|
left: `${m}px`,
|
|
1025
1028
|
top: `${g}px`
|
|
1026
1029
|
});
|
|
1027
|
-
const { x, y } = h.arrow,
|
|
1030
|
+
const { x, y } = h.arrow, v = {
|
|
1028
1031
|
left: "right",
|
|
1029
1032
|
right: "left",
|
|
1030
1033
|
bottom: "top",
|
|
@@ -1035,14 +1038,14 @@ const Le = { class: "rds-e-tooltip" }, ke = {
|
|
|
1035
1038
|
top: y != null ? `${y}px` : "",
|
|
1036
1039
|
bottom: "",
|
|
1037
1040
|
right: "",
|
|
1038
|
-
[
|
|
1041
|
+
[v[w.split("-")[0]]]: "-4px"
|
|
1039
1042
|
});
|
|
1040
1043
|
}, u = () => {
|
|
1041
1044
|
i != null && i.value || (c.value = !0);
|
|
1042
1045
|
}, p = () => {
|
|
1043
1046
|
c.value = !1, f();
|
|
1044
|
-
}, d =
|
|
1045
|
-
return (m, g) => (bt(),
|
|
1047
|
+
}, d = Ht(() => `rds-e-tooltip__tooltip ${c.value ? "rds-e-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-e-tooltip__tooltip--large " : ""}`);
|
|
1048
|
+
return (m, g) => (bt(), vt("div", ke, [
|
|
1046
1049
|
Z("div", {
|
|
1047
1050
|
ref_key: "referenceRef",
|
|
1048
1051
|
ref: r,
|
|
@@ -1052,32 +1055,32 @@ const Le = { class: "rds-e-tooltip" }, ke = {
|
|
|
1052
1055
|
onMouseenter: p,
|
|
1053
1056
|
onMouseleave: u
|
|
1054
1057
|
}, [
|
|
1055
|
-
|
|
1058
|
+
jt(m.$slots, "default", {}, void 0, !0)
|
|
1056
1059
|
], 544),
|
|
1057
1060
|
Z("div", {
|
|
1058
1061
|
ref_key: "floatingRef",
|
|
1059
1062
|
ref: s,
|
|
1060
|
-
class:
|
|
1063
|
+
class: At(d.value)
|
|
1061
1064
|
}, [
|
|
1062
|
-
at(i) ? (bt(),
|
|
1063
|
-
Z("h3",
|
|
1064
|
-
|
|
1065
|
+
at(i) ? (bt(), vt("div", $e, [
|
|
1066
|
+
Z("h3", We, Ct(at(i)), 1),
|
|
1067
|
+
It(zt, {
|
|
1065
1068
|
name: "close",
|
|
1066
1069
|
"aria-hidden": "true",
|
|
1067
1070
|
class: "rds-e-tooltip__icon",
|
|
1068
1071
|
onClick: g[0] || (g[0] = (h) => c.value = !c.value)
|
|
1069
1072
|
})
|
|
1070
1073
|
])) : Yt("", !0),
|
|
1071
|
-
Z("div",
|
|
1074
|
+
Z("div", Me, Ct(t.content), 1),
|
|
1072
1075
|
Z("div", {
|
|
1073
1076
|
ref_key: "arrowRef",
|
|
1074
1077
|
ref: l,
|
|
1075
|
-
class:
|
|
1078
|
+
class: At(["rds-e-tooltip__tooltip-arrow", a.value])
|
|
1076
1079
|
}, null, 2)
|
|
1077
1080
|
], 2)
|
|
1078
1081
|
]));
|
|
1079
1082
|
}
|
|
1080
|
-
}),
|
|
1083
|
+
}), He = /* @__PURE__ */ Xt(Ne, [["__scopeId", "data-v-064513ce"]]);
|
|
1081
1084
|
export {
|
|
1082
|
-
|
|
1085
|
+
He as default
|
|
1083
1086
|
};
|