energy-components 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/breadcrumbs.es.js +2 -3
- package/dist/components/button.es.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/directAccess.es.js +1 -1
- package/dist/components/dragAndDrop.es.js +1 -1
- package/dist/components/dropdown.es.js +132 -118
- package/dist/components/fileUploadItem.es.js +1 -1
- package/dist/components/filterChip.es.js +1 -1
- package/dist/components/icon-svg-DuzOdbk1.js +15905 -0
- 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 +1 -1
- package/dist/components/multiselect.es.js +73 -65
- package/dist/components/multiselectcontentwrapper.es.js +25 -22
- package/dist/components/persistentToast.es.js +1 -1
- package/dist/components/progressBar.es.js +1 -1
- package/dist/components/quantitySelector.es.js +1 -1
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/selectionChip.es.js +1 -1
- package/dist/components/sidedrawer.es.js +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/multiselectcontentwrapper.css +1 -1
- package/dist/components/style/tag.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 +1 -1
- package/dist/components/tableslotedcomponent.es.js +1 -1
- package/dist/components/tag.es.js +15 -15
- package/dist/components/textArea.es.js +1 -1
- package/dist/components/textField.es.js +64 -53
- package/dist/components/tooltip.es.js +293 -295
- package/dist/energy-components.es.js +14751 -9660
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +1 -1
- package/dist/types/src/components/input/dropdown/Multiselect/MultiselectContentWrapper.vue.d.ts +9 -2
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +27 -4
- package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +1 -1
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +17 -0
- package/dist/types/src/setupTests.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
- package/dist/components/icon-svg-_WCkLP8-.js +0 -10847
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
import { R as
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/tooltip.css';const
|
|
1
|
+
import { unref as at, defineComponent as Ft, toRefs as Ht, ref as U, computed as jt, createElementBlock as vt, openBlock as bt, createElementVNode as Z, renderSlot as At, normalizeClass as Ct, createCommentVNode as It, createVNode as Yt, toDisplayString as Rt, createTextVNode as zt } from "vue";
|
|
2
|
+
import { R as Xt } from "./icon-svg-DuzOdbk1.js";
|
|
3
|
+
import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/tooltip.css';const X = Math.min, S = Math.max, nt = Math.round, $ = (t) => ({
|
|
5
5
|
x: t,
|
|
6
6
|
y: t
|
|
7
|
-
}),
|
|
7
|
+
}), qt = {
|
|
8
8
|
left: "right",
|
|
9
9
|
right: "left",
|
|
10
10
|
bottom: "top",
|
|
11
11
|
top: "bottom"
|
|
12
|
-
},
|
|
12
|
+
}, Gt = {
|
|
13
13
|
start: "end",
|
|
14
14
|
end: "start"
|
|
15
15
|
};
|
|
16
|
-
function
|
|
17
|
-
return
|
|
16
|
+
function ft(t, e, o) {
|
|
17
|
+
return S(t, X(e, o));
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function J(t, e) {
|
|
20
20
|
return typeof t == "function" ? t(e) : t;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function I(t) {
|
|
23
23
|
return t.split("-")[0];
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Q(t) {
|
|
26
26
|
return t.split("-")[1];
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Dt(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
|
|
35
|
-
return ["top", "bottom"].includes(
|
|
34
|
+
function V(t) {
|
|
35
|
+
return ["top", "bottom"].includes(I(t)) ? "y" : "x";
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return
|
|
37
|
+
function pt(t) {
|
|
38
|
+
return Dt(V(t));
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Jt(t, e, o) {
|
|
41
41
|
o === void 0 && (o = !1);
|
|
42
|
-
const n =
|
|
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
|
-
return e.reference[r] > e.floating[r] && (s =
|
|
44
|
+
return e.reference[r] > e.floating[r] && (s = ot(s)), [s, ot(s)];
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const e =
|
|
48
|
-
return [
|
|
46
|
+
function Qt(t) {
|
|
47
|
+
const e = ot(t);
|
|
48
|
+
return [ut(t), e, ut(e)];
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return t.replace(/start|end/g, (e) =>
|
|
50
|
+
function ut(t) {
|
|
51
|
+
return t.replace(/start|end/g, (e) => Gt[e]);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ut(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 Zt(t, e, o) {
|
|
|
63
63
|
return [];
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const i =
|
|
68
|
-
let r =
|
|
69
|
-
return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(
|
|
66
|
+
function Zt(t, e, o, n) {
|
|
67
|
+
const i = Q(t);
|
|
68
|
+
let r = Ut(I(t), o === "start", n);
|
|
69
|
+
return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ut)))), r;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
71
|
+
function ot(t) {
|
|
72
|
+
return t.replace(/left|right|bottom|top/g, (e) => qt[e]);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function te(t) {
|
|
75
75
|
return {
|
|
76
76
|
top: 0,
|
|
77
77
|
right: 0,
|
|
@@ -80,15 +80,15 @@ function ee(t) {
|
|
|
80
80
|
...t
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return typeof t != "number" ?
|
|
83
|
+
function Lt(t) {
|
|
84
|
+
return typeof t != "number" ? te(t) : {
|
|
85
85
|
top: t,
|
|
86
86
|
right: t,
|
|
87
87
|
bottom: t,
|
|
88
88
|
left: t
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function it(t) {
|
|
92
92
|
const {
|
|
93
93
|
x: e,
|
|
94
94
|
y: o,
|
|
@@ -106,12 +106,12 @@ function st(t) {
|
|
|
106
106
|
y: o
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Ot(t, e, o) {
|
|
110
110
|
let {
|
|
111
111
|
reference: n,
|
|
112
112
|
floating: i
|
|
113
113
|
} = t;
|
|
114
|
-
const r =
|
|
114
|
+
const r = V(e), s = pt(e), l = mt(s), c = I(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":
|
|
@@ -144,7 +144,7 @@ function St(t, e, o) {
|
|
|
144
144
|
y: n.y
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
switch (
|
|
147
|
+
switch (Q(e)) {
|
|
148
148
|
case "start":
|
|
149
149
|
d[s] -= p * (o && a ? -1 : 1);
|
|
150
150
|
break;
|
|
@@ -154,7 +154,7 @@ function St(t, e, o) {
|
|
|
154
154
|
}
|
|
155
155
|
return d;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const ee = async (t, e, o) => {
|
|
158
158
|
const {
|
|
159
159
|
placement: n = "bottom",
|
|
160
160
|
strategy: i = "absolute",
|
|
@@ -168,7 +168,7 @@ const ne = async (t, e, o) => {
|
|
|
168
168
|
}), {
|
|
169
169
|
x: f,
|
|
170
170
|
y: u
|
|
171
|
-
} =
|
|
171
|
+
} = Ot(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,
|
|
@@ -205,7 +205,7 @@ const ne = async (t, e, o) => {
|
|
|
205
205
|
}) : v.rects), {
|
|
206
206
|
x: f,
|
|
207
207
|
y: u
|
|
208
|
-
} =
|
|
208
|
+
} = Ot(a, p, c)), g = -1);
|
|
209
209
|
}
|
|
210
210
|
return {
|
|
211
211
|
x: f,
|
|
@@ -215,7 +215,7 @@ const ne = 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 ht(t, e) {
|
|
|
231
231
|
elementContext: u = "floating",
|
|
232
232
|
altBoundary: p = !1,
|
|
233
233
|
padding: d = 0
|
|
234
|
-
} =
|
|
234
|
+
} = J(e, t), m = Lt(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,
|
|
@@ -247,7 +247,7 @@ async function ht(t, e) {
|
|
|
247
247
|
} : {
|
|
248
248
|
x: 1,
|
|
249
249
|
y: 1
|
|
250
|
-
}, v =
|
|
250
|
+
}, v = it(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
251
251
|
elements: l,
|
|
252
252
|
rect: x,
|
|
253
253
|
offsetParent: y,
|
|
@@ -260,7 +260,7 @@ async function ht(t, e) {
|
|
|
260
260
|
right: (v.right - w.right + m.right) / b.x
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const ne = (t) => ({
|
|
264
264
|
name: "arrow",
|
|
265
265
|
options: t,
|
|
266
266
|
async fn(e) {
|
|
@@ -275,29 +275,29 @@ const oe = (t) => ({
|
|
|
275
275
|
} = e, {
|
|
276
276
|
element: a,
|
|
277
277
|
padding: f = 0
|
|
278
|
-
} =
|
|
278
|
+
} = J(t, e) || {};
|
|
279
279
|
if (a == null)
|
|
280
280
|
return {};
|
|
281
|
-
const u =
|
|
281
|
+
const u = Lt(f), p = {
|
|
282
282
|
x: o,
|
|
283
283
|
y: n
|
|
284
|
-
}, d =
|
|
285
|
-
let
|
|
286
|
-
(!
|
|
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", b = r.reference[m] + r.reference[d] - p[d] - r.floating[m], v = p[d] - r.reference[d], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
|
|
285
|
+
let C = E ? E[y] : 0;
|
|
286
|
+
(!C || !await (s.isElement == null ? void 0 : s.isElement(E))) && (C = l.floating[y] || r.floating[m]);
|
|
287
|
+
const W = b / 2 - v / 2, P = C / 2 - g[m] / 2 - 1, O = X(u[w], P), F = X(u[x], P), k = O, H = C - g[m] - F, A = C / 2 - g[m] / 2 + W, z = ft(k, A, H), M = !c.arrow && Q(i) != null && A !== z && r.reference[m] / 2 - (A < k ? O : F) - g[m] / 2 < 0, _ = M ? A < k ? A - k : A - H : 0;
|
|
288
288
|
return {
|
|
289
|
-
[d]: p[d] +
|
|
289
|
+
[d]: p[d] + _,
|
|
290
290
|
data: {
|
|
291
|
-
[d]:
|
|
292
|
-
centerOffset:
|
|
293
|
-
...
|
|
294
|
-
alignmentOffset:
|
|
291
|
+
[d]: z,
|
|
292
|
+
centerOffset: A - z - _,
|
|
293
|
+
...M && {
|
|
294
|
+
alignmentOffset: _
|
|
295
295
|
}
|
|
296
296
|
},
|
|
297
|
-
reset:
|
|
297
|
+
reset: M
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
}),
|
|
300
|
+
}), oe = function(t) {
|
|
301
301
|
return t === void 0 && (t = {}), {
|
|
302
302
|
name: "flip",
|
|
303
303
|
options: t,
|
|
@@ -318,62 +318,60 @@ const oe = (t) => ({
|
|
|
318
318
|
fallbackAxisSideDirection: m = "none",
|
|
319
319
|
flipAlignment: g = !0,
|
|
320
320
|
...h
|
|
321
|
-
} =
|
|
321
|
+
} = J(t, e);
|
|
322
322
|
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
323
323
|
return {};
|
|
324
|
-
const w =
|
|
325
|
-
!p &&
|
|
326
|
-
const
|
|
327
|
-
let
|
|
328
|
-
if (f &&
|
|
329
|
-
const
|
|
330
|
-
|
|
324
|
+
const w = I(i), x = V(l), y = I(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), v = p || (y || !g ? [ot(l)] : Qt(l)), E = m !== "none";
|
|
325
|
+
!p && E && v.push(...Zt(l, g, m, b));
|
|
326
|
+
const C = [l, ...v], W = await gt(e, h), P = [];
|
|
327
|
+
let O = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
328
|
+
if (f && P.push(W[w]), u) {
|
|
329
|
+
const A = Jt(i, s, b);
|
|
330
|
+
P.push(W[A[0]], W[A[1]]);
|
|
331
331
|
}
|
|
332
|
-
if (
|
|
332
|
+
if (O = [...O, {
|
|
333
333
|
placement: i,
|
|
334
|
-
overflows:
|
|
335
|
-
}], !
|
|
336
|
-
var
|
|
337
|
-
const
|
|
338
|
-
if (
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
let W = (E = C.filter((H) => H.overflows[0] <= 0).sort((H, k) => H.overflows[1] - k.overflows[1])[0]) == null ? void 0 : E.placement;
|
|
353
|
-
if (!W)
|
|
334
|
+
overflows: P
|
|
335
|
+
}], !P.every((A) => A <= 0)) {
|
|
336
|
+
var F, k;
|
|
337
|
+
const A = (((F = r.flip) == null ? void 0 : F.index) || 0) + 1, z = C[A];
|
|
338
|
+
if (z && (!(u === "alignment" ? x !== V(z) : !1) || // We leave the current main axis only if every placement on that axis
|
|
339
|
+
// overflows the main axis.
|
|
340
|
+
O.every((T) => T.overflows[0] > 0 && V(T.placement) === x)))
|
|
341
|
+
return {
|
|
342
|
+
data: {
|
|
343
|
+
index: A,
|
|
344
|
+
overflows: O
|
|
345
|
+
},
|
|
346
|
+
reset: {
|
|
347
|
+
placement: z
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
let M = (k = O.filter((_) => _.overflows[0] <= 0).sort((_, T) => _.overflows[1] - T.overflows[1])[0]) == null ? void 0 : k.placement;
|
|
351
|
+
if (!M)
|
|
354
352
|
switch (d) {
|
|
355
353
|
case "bestFit": {
|
|
356
|
-
var
|
|
357
|
-
const
|
|
358
|
-
if (
|
|
359
|
-
const j =
|
|
354
|
+
var H;
|
|
355
|
+
const _ = (H = O.filter((T) => {
|
|
356
|
+
if (E) {
|
|
357
|
+
const j = V(T.placement);
|
|
360
358
|
return j === x || // Create a bias to the `y` side axis due to horizontal
|
|
361
359
|
// reading directions favoring greater width.
|
|
362
360
|
j === "y";
|
|
363
361
|
}
|
|
364
362
|
return !0;
|
|
365
|
-
}).map((
|
|
366
|
-
|
|
363
|
+
}).map((T) => [T.placement, T.overflows.filter((j) => j > 0).reduce((j, Bt) => j + Bt, 0)]).sort((T, j) => T[1] - j[1])[0]) == null ? void 0 : H[0];
|
|
364
|
+
_ && (M = _);
|
|
367
365
|
break;
|
|
368
366
|
}
|
|
369
367
|
case "initialPlacement":
|
|
370
|
-
|
|
368
|
+
M = l;
|
|
371
369
|
break;
|
|
372
370
|
}
|
|
373
|
-
if (i !==
|
|
371
|
+
if (i !== M)
|
|
374
372
|
return {
|
|
375
373
|
reset: {
|
|
376
|
-
placement:
|
|
374
|
+
placement: M
|
|
377
375
|
}
|
|
378
376
|
};
|
|
379
377
|
}
|
|
@@ -381,12 +379,12 @@ const oe = (t) => ({
|
|
|
381
379
|
}
|
|
382
380
|
};
|
|
383
381
|
};
|
|
384
|
-
async function
|
|
382
|
+
async function ie(t, e) {
|
|
385
383
|
const {
|
|
386
384
|
placement: o,
|
|
387
385
|
platform: n,
|
|
388
386
|
elements: i
|
|
389
|
-
} = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s =
|
|
387
|
+
} = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = I(o), l = Q(o), c = V(o) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, u = J(e, t);
|
|
390
388
|
let {
|
|
391
389
|
mainAxis: p,
|
|
392
390
|
crossAxis: d,
|
|
@@ -408,7 +406,7 @@ async function se(t, e) {
|
|
|
408
406
|
y: d * f
|
|
409
407
|
};
|
|
410
408
|
}
|
|
411
|
-
const
|
|
409
|
+
const se = function(t) {
|
|
412
410
|
return t === void 0 && (t = 0), {
|
|
413
411
|
name: "offset",
|
|
414
412
|
options: t,
|
|
@@ -419,7 +417,7 @@ const re = function(t) {
|
|
|
419
417
|
y: r,
|
|
420
418
|
placement: s,
|
|
421
419
|
middlewareData: l
|
|
422
|
-
} = e, c = await
|
|
420
|
+
} = e, c = await ie(e, t);
|
|
423
421
|
return s === ((o = l.offset) == null ? void 0 : o.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
|
|
424
422
|
x: i + c.x,
|
|
425
423
|
y: r + c.y,
|
|
@@ -430,7 +428,7 @@ const re = function(t) {
|
|
|
430
428
|
};
|
|
431
429
|
}
|
|
432
430
|
};
|
|
433
|
-
},
|
|
431
|
+
}, re = function(t) {
|
|
434
432
|
return t === void 0 && (t = {}), {
|
|
435
433
|
name: "shift",
|
|
436
434
|
options: t,
|
|
@@ -455,18 +453,18 @@ const re = function(t) {
|
|
|
455
453
|
}
|
|
456
454
|
},
|
|
457
455
|
...c
|
|
458
|
-
} =
|
|
456
|
+
} = J(t, e), a = {
|
|
459
457
|
x: o,
|
|
460
458
|
y: n
|
|
461
|
-
}, f = await
|
|
459
|
+
}, f = await gt(e, c), u = V(I(i)), p = Dt(u);
|
|
462
460
|
let d = a[p], m = a[u];
|
|
463
461
|
if (r) {
|
|
464
462
|
const h = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", x = d + f[h], y = d - f[w];
|
|
465
|
-
d =
|
|
463
|
+
d = ft(x, d, y);
|
|
466
464
|
}
|
|
467
465
|
if (s) {
|
|
468
466
|
const h = u === "y" ? "top" : "left", w = u === "y" ? "bottom" : "right", x = m + f[h], y = m - f[w];
|
|
469
|
-
m =
|
|
467
|
+
m = ft(x, m, y);
|
|
470
468
|
}
|
|
471
469
|
const g = l.fn({
|
|
472
470
|
...e,
|
|
@@ -486,7 +484,7 @@ const re = function(t) {
|
|
|
486
484
|
};
|
|
487
485
|
}
|
|
488
486
|
};
|
|
489
|
-
},
|
|
487
|
+
}, le = function(t) {
|
|
490
488
|
return t === void 0 && (t = {}), {
|
|
491
489
|
name: "size",
|
|
492
490
|
options: t,
|
|
@@ -501,25 +499,25 @@ const re = function(t) {
|
|
|
501
499
|
apply: c = () => {
|
|
502
500
|
},
|
|
503
501
|
...a
|
|
504
|
-
} =
|
|
502
|
+
} = J(t, e), f = await gt(e, a), u = I(i), p = Q(i), d = V(i) === "y", {
|
|
505
503
|
width: m,
|
|
506
504
|
height: g
|
|
507
505
|
} = r.floating;
|
|
508
506
|
let h, w;
|
|
509
507
|
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");
|
|
510
|
-
const x = g - f.top - f.bottom, y = m - f.left - f.right, b =
|
|
511
|
-
let
|
|
512
|
-
if ((o = e.middlewareData.shift) != null && o.enabled.x && (
|
|
513
|
-
const
|
|
514
|
-
d ?
|
|
508
|
+
const x = g - f.top - f.bottom, y = m - f.left - f.right, b = X(g - f[h], x), v = X(m - f[w], y), E = !e.middlewareData.shift;
|
|
509
|
+
let C = b, W = v;
|
|
510
|
+
if ((o = e.middlewareData.shift) != null && o.enabled.x && (W = y), (n = e.middlewareData.shift) != null && n.enabled.y && (C = x), E && !p) {
|
|
511
|
+
const O = S(f.left, 0), F = S(f.right, 0), k = S(f.top, 0), H = S(f.bottom, 0);
|
|
512
|
+
d ? W = m - 2 * (O !== 0 || F !== 0 ? O + F : S(f.left, f.right)) : C = g - 2 * (k !== 0 || H !== 0 ? k + H : S(f.top, f.bottom));
|
|
515
513
|
}
|
|
516
514
|
await c({
|
|
517
515
|
...e,
|
|
518
|
-
availableWidth:
|
|
519
|
-
availableHeight:
|
|
516
|
+
availableWidth: W,
|
|
517
|
+
availableHeight: C
|
|
520
518
|
});
|
|
521
|
-
const
|
|
522
|
-
return m !==
|
|
519
|
+
const P = await s.getDimensions(l.floating);
|
|
520
|
+
return m !== P.width || g !== P.height ? {
|
|
523
521
|
reset: {
|
|
524
522
|
rects: !0
|
|
525
523
|
}
|
|
@@ -527,45 +525,45 @@ const re = function(t) {
|
|
|
527
525
|
}
|
|
528
526
|
};
|
|
529
527
|
};
|
|
530
|
-
function
|
|
528
|
+
function st() {
|
|
531
529
|
return typeof window < "u";
|
|
532
530
|
}
|
|
533
|
-
function
|
|
534
|
-
return
|
|
531
|
+
function K(t) {
|
|
532
|
+
return ht(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
535
533
|
}
|
|
536
534
|
function R(t) {
|
|
537
535
|
var e;
|
|
538
536
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
539
537
|
}
|
|
540
|
-
function
|
|
538
|
+
function B(t) {
|
|
541
539
|
var e;
|
|
542
|
-
return (e = (
|
|
540
|
+
return (e = (ht(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
543
541
|
}
|
|
544
|
-
function
|
|
545
|
-
return
|
|
542
|
+
function ht(t) {
|
|
543
|
+
return st() ? t instanceof Node || t instanceof R(t).Node : !1;
|
|
546
544
|
}
|
|
547
|
-
function
|
|
548
|
-
return
|
|
545
|
+
function D(t) {
|
|
546
|
+
return st() ? t instanceof Element || t instanceof R(t).Element : !1;
|
|
549
547
|
}
|
|
550
|
-
function
|
|
551
|
-
return
|
|
548
|
+
function N(t) {
|
|
549
|
+
return st() ? t instanceof HTMLElement || t instanceof R(t).HTMLElement : !1;
|
|
552
550
|
}
|
|
553
|
-
function
|
|
554
|
-
return !
|
|
551
|
+
function St(t) {
|
|
552
|
+
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
|
|
555
553
|
}
|
|
556
|
-
function
|
|
554
|
+
function et(t) {
|
|
557
555
|
const {
|
|
558
556
|
overflow: e,
|
|
559
557
|
overflowX: o,
|
|
560
558
|
overflowY: n,
|
|
561
559
|
display: i
|
|
562
|
-
} =
|
|
560
|
+
} = L(t);
|
|
563
561
|
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
|
|
564
562
|
}
|
|
565
|
-
function
|
|
566
|
-
return ["table", "td", "th"].includes(
|
|
563
|
+
function ce(t) {
|
|
564
|
+
return ["table", "td", "th"].includes(K(t));
|
|
567
565
|
}
|
|
568
|
-
function
|
|
566
|
+
function rt(t) {
|
|
569
567
|
return [":popover-open", ":modal"].some((e) => {
|
|
570
568
|
try {
|
|
571
569
|
return t.matches(e);
|
|
@@ -574,32 +572,32 @@ function lt(t) {
|
|
|
574
572
|
}
|
|
575
573
|
});
|
|
576
574
|
}
|
|
577
|
-
function
|
|
578
|
-
const e =
|
|
575
|
+
function wt(t) {
|
|
576
|
+
const e = xt(), o = D(t) ? L(t) : t;
|
|
579
577
|
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));
|
|
580
578
|
}
|
|
581
|
-
function
|
|
582
|
-
let e =
|
|
583
|
-
for (;
|
|
584
|
-
if (
|
|
579
|
+
function ae(t) {
|
|
580
|
+
let e = Y(t);
|
|
581
|
+
for (; N(e) && !G(e); ) {
|
|
582
|
+
if (wt(e))
|
|
585
583
|
return e;
|
|
586
|
-
if (
|
|
584
|
+
if (rt(e))
|
|
587
585
|
return null;
|
|
588
|
-
e =
|
|
586
|
+
e = Y(e);
|
|
589
587
|
}
|
|
590
588
|
return null;
|
|
591
589
|
}
|
|
592
|
-
function
|
|
590
|
+
function xt() {
|
|
593
591
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
594
592
|
}
|
|
595
|
-
function
|
|
596
|
-
return ["html", "body", "#document"].includes(
|
|
593
|
+
function G(t) {
|
|
594
|
+
return ["html", "body", "#document"].includes(K(t));
|
|
597
595
|
}
|
|
598
|
-
function
|
|
596
|
+
function L(t) {
|
|
599
597
|
return R(t).getComputedStyle(t);
|
|
600
598
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
599
|
+
function lt(t) {
|
|
600
|
+
return D(t) ? {
|
|
603
601
|
scrollLeft: t.scrollLeft,
|
|
604
602
|
scrollTop: t.scrollTop
|
|
605
603
|
} : {
|
|
@@ -607,125 +605,125 @@ function ct(t) {
|
|
|
607
605
|
scrollTop: t.scrollY
|
|
608
606
|
};
|
|
609
607
|
}
|
|
610
|
-
function
|
|
611
|
-
if (
|
|
608
|
+
function Y(t) {
|
|
609
|
+
if (K(t) === "html")
|
|
612
610
|
return t;
|
|
613
611
|
const e = (
|
|
614
612
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
615
613
|
t.assignedSlot || // DOM Element detected.
|
|
616
614
|
t.parentNode || // ShadowRoot detected.
|
|
617
|
-
|
|
618
|
-
|
|
615
|
+
St(t) && t.host || // Fallback.
|
|
616
|
+
B(t)
|
|
619
617
|
);
|
|
620
|
-
return
|
|
618
|
+
return St(e) ? e.host : e;
|
|
621
619
|
}
|
|
622
|
-
function
|
|
623
|
-
const e =
|
|
624
|
-
return
|
|
620
|
+
function Et(t) {
|
|
621
|
+
const e = Y(t);
|
|
622
|
+
return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : N(e) && et(e) ? e : Et(e);
|
|
625
623
|
}
|
|
626
|
-
function
|
|
624
|
+
function Pt(t, e, o) {
|
|
627
625
|
var n;
|
|
628
626
|
e === void 0 && (e = []);
|
|
629
|
-
const i =
|
|
630
|
-
return r ? (
|
|
627
|
+
const i = Et(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = R(i);
|
|
628
|
+
return r ? (dt(s), e.concat(s, s.visualViewport || [], et(i) ? i : [], [])) : e.concat(i, Pt(i, []));
|
|
631
629
|
}
|
|
632
|
-
function
|
|
630
|
+
function dt(t) {
|
|
633
631
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
634
632
|
}
|
|
635
|
-
function
|
|
636
|
-
const e =
|
|
633
|
+
function kt(t) {
|
|
634
|
+
const e = L(t);
|
|
637
635
|
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
638
|
-
const i =
|
|
636
|
+
const i = N(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, l = nt(o) !== r || nt(n) !== s;
|
|
639
637
|
return l && (o = r, n = s), {
|
|
640
638
|
width: o,
|
|
641
639
|
height: n,
|
|
642
640
|
$: l
|
|
643
641
|
};
|
|
644
642
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
643
|
+
function $t(t) {
|
|
644
|
+
return D(t) ? t : t.contextElement;
|
|
647
645
|
}
|
|
648
|
-
function
|
|
649
|
-
const e =
|
|
650
|
-
if (!
|
|
646
|
+
function q(t) {
|
|
647
|
+
const e = $t(t);
|
|
648
|
+
if (!N(e))
|
|
651
649
|
return $(1);
|
|
652
650
|
const o = e.getBoundingClientRect(), {
|
|
653
651
|
width: n,
|
|
654
652
|
height: i,
|
|
655
653
|
$: r
|
|
656
|
-
} =
|
|
657
|
-
let s = (r ?
|
|
654
|
+
} = kt(e);
|
|
655
|
+
let s = (r ? nt(o.width) : o.width) / n, l = (r ? nt(o.height) : o.height) / i;
|
|
658
656
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
659
657
|
x: s,
|
|
660
658
|
y: l
|
|
661
659
|
};
|
|
662
660
|
}
|
|
663
|
-
const
|
|
661
|
+
const fe = /* @__PURE__ */ $(0);
|
|
664
662
|
function Nt(t) {
|
|
665
663
|
const e = R(t);
|
|
666
|
-
return !
|
|
664
|
+
return !xt() || !e.visualViewport ? fe : {
|
|
667
665
|
x: e.visualViewport.offsetLeft,
|
|
668
666
|
y: e.visualViewport.offsetTop
|
|
669
667
|
};
|
|
670
668
|
}
|
|
671
|
-
function
|
|
669
|
+
function ue(t, e, o) {
|
|
672
670
|
return e === void 0 && (e = !1), !o || e && o !== R(t) ? !1 : e;
|
|
673
671
|
}
|
|
674
|
-
function
|
|
672
|
+
function tt(t, e, o, n) {
|
|
675
673
|
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
676
|
-
const i = t.getBoundingClientRect(), r =
|
|
674
|
+
const i = t.getBoundingClientRect(), r = $t(t);
|
|
677
675
|
let s = $(1);
|
|
678
|
-
e && (n ?
|
|
679
|
-
const l =
|
|
676
|
+
e && (n ? D(n) && (s = q(n)) : s = q(t));
|
|
677
|
+
const l = ue(r, o, n) ? Nt(r) : $(0);
|
|
680
678
|
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
679
|
if (r) {
|
|
682
|
-
const p = R(r), d = n &&
|
|
683
|
-
let m = p, g =
|
|
680
|
+
const p = R(r), d = n && D(n) ? R(n) : n;
|
|
681
|
+
let m = p, g = dt(m);
|
|
684
682
|
for (; g && n && d !== m; ) {
|
|
685
|
-
const h =
|
|
686
|
-
c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += b, m = R(g), g =
|
|
683
|
+
const h = q(g), w = g.getBoundingClientRect(), x = L(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, b = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
|
|
684
|
+
c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += b, m = R(g), g = dt(m);
|
|
687
685
|
}
|
|
688
686
|
}
|
|
689
|
-
return
|
|
687
|
+
return it({
|
|
690
688
|
width: f,
|
|
691
689
|
height: u,
|
|
692
690
|
x: c,
|
|
693
691
|
y: a
|
|
694
692
|
});
|
|
695
693
|
}
|
|
696
|
-
function
|
|
697
|
-
const o =
|
|
698
|
-
return e ? e.left + o :
|
|
694
|
+
function yt(t, e) {
|
|
695
|
+
const o = lt(t).scrollLeft;
|
|
696
|
+
return e ? e.left + o : tt(B(t)).left + o;
|
|
699
697
|
}
|
|
700
698
|
function Wt(t, e, o) {
|
|
701
699
|
o === void 0 && (o = !1);
|
|
702
700
|
const n = t.getBoundingClientRect(), i = n.left + e.scrollLeft - (o ? 0 : (
|
|
703
701
|
// RTL <body> scrollbar.
|
|
704
|
-
|
|
702
|
+
yt(t, n)
|
|
705
703
|
)), r = n.top + e.scrollTop;
|
|
706
704
|
return {
|
|
707
705
|
x: i,
|
|
708
706
|
y: r
|
|
709
707
|
};
|
|
710
708
|
}
|
|
711
|
-
function
|
|
709
|
+
function de(t) {
|
|
712
710
|
let {
|
|
713
711
|
elements: e,
|
|
714
712
|
rect: o,
|
|
715
713
|
offsetParent: n,
|
|
716
714
|
strategy: i
|
|
717
715
|
} = t;
|
|
718
|
-
const r = i === "fixed", s =
|
|
716
|
+
const r = i === "fixed", s = B(n), l = e ? rt(e.floating) : !1;
|
|
719
717
|
if (n === s || l && r)
|
|
720
718
|
return o;
|
|
721
719
|
let c = {
|
|
722
720
|
scrollLeft: 0,
|
|
723
721
|
scrollTop: 0
|
|
724
722
|
}, a = $(1);
|
|
725
|
-
const f = $(0), u =
|
|
726
|
-
if ((u || !u && !r) && ((
|
|
727
|
-
const d =
|
|
728
|
-
a =
|
|
723
|
+
const f = $(0), u = N(n);
|
|
724
|
+
if ((u || !u && !r) && ((K(n) !== "body" || et(s)) && (c = lt(n)), N(n))) {
|
|
725
|
+
const d = tt(n);
|
|
726
|
+
a = q(n), f.x = d.x + n.clientLeft, f.y = d.y + n.clientTop;
|
|
729
727
|
}
|
|
730
728
|
const p = s && !u && !r ? Wt(s, c, !0) : $(0);
|
|
731
729
|
return {
|
|
@@ -735,26 +733,26 @@ function me(t) {
|
|
|
735
733
|
y: o.y * a.y - c.scrollTop * a.y + f.y + p.y
|
|
736
734
|
};
|
|
737
735
|
}
|
|
738
|
-
function
|
|
736
|
+
function me(t) {
|
|
739
737
|
return Array.from(t.getClientRects());
|
|
740
738
|
}
|
|
741
|
-
function
|
|
742
|
-
const e =
|
|
743
|
-
let s = -o.scrollLeft +
|
|
739
|
+
function pe(t) {
|
|
740
|
+
const e = B(t), o = lt(t), n = t.ownerDocument.body, i = S(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = S(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
741
|
+
let s = -o.scrollLeft + yt(t);
|
|
744
742
|
const l = -o.scrollTop;
|
|
745
|
-
return
|
|
743
|
+
return L(n).direction === "rtl" && (s += S(e.clientWidth, n.clientWidth) - i), {
|
|
746
744
|
width: i,
|
|
747
745
|
height: r,
|
|
748
746
|
x: s,
|
|
749
747
|
y: l
|
|
750
748
|
};
|
|
751
749
|
}
|
|
752
|
-
function
|
|
753
|
-
const o = R(t), n =
|
|
750
|
+
function ge(t, e) {
|
|
751
|
+
const o = R(t), n = B(t), i = o.visualViewport;
|
|
754
752
|
let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
|
|
755
753
|
if (i) {
|
|
756
754
|
r = i.width, s = i.height;
|
|
757
|
-
const a =
|
|
755
|
+
const a = xt();
|
|
758
756
|
(!a || a && e === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
|
|
759
757
|
}
|
|
760
758
|
return {
|
|
@@ -764,8 +762,8 @@ function he(t, e) {
|
|
|
764
762
|
y: c
|
|
765
763
|
};
|
|
766
764
|
}
|
|
767
|
-
function
|
|
768
|
-
const o =
|
|
765
|
+
function he(t, e) {
|
|
766
|
+
const o = tt(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = N(t) ? q(t) : $(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, c = i * r.x, a = n * r.y;
|
|
769
767
|
return {
|
|
770
768
|
width: s,
|
|
771
769
|
height: l,
|
|
@@ -776,11 +774,11 @@ function we(t, e) {
|
|
|
776
774
|
function _t(t, e, o) {
|
|
777
775
|
let n;
|
|
778
776
|
if (e === "viewport")
|
|
779
|
-
n =
|
|
777
|
+
n = ge(t, o);
|
|
780
778
|
else if (e === "document")
|
|
781
|
-
n =
|
|
782
|
-
else if (
|
|
783
|
-
n =
|
|
779
|
+
n = pe(B(t));
|
|
780
|
+
else if (D(e))
|
|
781
|
+
n = he(e, o);
|
|
784
782
|
else {
|
|
785
783
|
const i = Nt(t);
|
|
786
784
|
n = {
|
|
@@ -790,35 +788,35 @@ function _t(t, e, o) {
|
|
|
790
788
|
height: e.height
|
|
791
789
|
};
|
|
792
790
|
}
|
|
793
|
-
return
|
|
791
|
+
return it(n);
|
|
794
792
|
}
|
|
795
|
-
function
|
|
796
|
-
const o =
|
|
797
|
-
return o === e || !
|
|
793
|
+
function Mt(t, e) {
|
|
794
|
+
const o = Y(t);
|
|
795
|
+
return o === e || !D(o) || G(o) ? !1 : L(o).position === "fixed" || Mt(o, e);
|
|
798
796
|
}
|
|
799
|
-
function
|
|
797
|
+
function we(t, e) {
|
|
800
798
|
const o = e.get(t);
|
|
801
799
|
if (o)
|
|
802
800
|
return o;
|
|
803
|
-
let n =
|
|
804
|
-
const r =
|
|
805
|
-
let s = r ?
|
|
806
|
-
for (;
|
|
807
|
-
const l =
|
|
808
|
-
!c && l.position === "fixed" && (i = null), (r ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) ||
|
|
801
|
+
let n = Pt(t, []).filter((l) => D(l) && K(l) !== "body"), i = null;
|
|
802
|
+
const r = L(t).position === "fixed";
|
|
803
|
+
let s = r ? Y(t) : t;
|
|
804
|
+
for (; D(s) && !G(s); ) {
|
|
805
|
+
const l = L(s), c = wt(s);
|
|
806
|
+
!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 = Y(s);
|
|
809
807
|
}
|
|
810
808
|
return e.set(t, n), n;
|
|
811
809
|
}
|
|
812
|
-
function
|
|
810
|
+
function xe(t) {
|
|
813
811
|
let {
|
|
814
812
|
element: e,
|
|
815
813
|
boundary: o,
|
|
816
814
|
rootBoundary: n,
|
|
817
815
|
strategy: i
|
|
818
816
|
} = t;
|
|
819
|
-
const s = [...o === "clippingAncestors" ?
|
|
817
|
+
const s = [...o === "clippingAncestors" ? rt(e) ? [] : we(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
|
|
820
818
|
const u = _t(e, f, i);
|
|
821
|
-
return a.top =
|
|
819
|
+
return a.top = S(u.top, a.top), a.right = X(u.right, a.right), a.bottom = X(u.bottom, a.bottom), a.left = S(u.left, a.left), a;
|
|
822
820
|
}, _t(e, l, i));
|
|
823
821
|
return {
|
|
824
822
|
width: c.right - c.left,
|
|
@@ -827,29 +825,29 @@ function ye(t) {
|
|
|
827
825
|
y: c.top
|
|
828
826
|
};
|
|
829
827
|
}
|
|
830
|
-
function
|
|
828
|
+
function ye(t) {
|
|
831
829
|
const {
|
|
832
830
|
width: e,
|
|
833
831
|
height: o
|
|
834
|
-
} =
|
|
832
|
+
} = kt(t);
|
|
835
833
|
return {
|
|
836
834
|
width: e,
|
|
837
835
|
height: o
|
|
838
836
|
};
|
|
839
837
|
}
|
|
840
|
-
function
|
|
841
|
-
const n =
|
|
838
|
+
function ve(t, e, o) {
|
|
839
|
+
const n = N(e), i = B(e), r = o === "fixed", s = tt(t, !0, r, e);
|
|
842
840
|
let l = {
|
|
843
841
|
scrollLeft: 0,
|
|
844
842
|
scrollTop: 0
|
|
845
843
|
};
|
|
846
844
|
const c = $(0);
|
|
847
845
|
function a() {
|
|
848
|
-
c.x =
|
|
846
|
+
c.x = yt(i);
|
|
849
847
|
}
|
|
850
848
|
if (n || !n && !r)
|
|
851
|
-
if ((
|
|
852
|
-
const d =
|
|
849
|
+
if ((K(e) !== "body" || et(i)) && (l = lt(e)), n) {
|
|
850
|
+
const d = tt(e, !0, r, e);
|
|
853
851
|
c.x = d.x + e.clientLeft, c.y = d.y + e.clientTop;
|
|
854
852
|
} else i && a();
|
|
855
853
|
r && !n && i && a();
|
|
@@ -861,39 +859,39 @@ function be(t, e, o) {
|
|
|
861
859
|
height: s.height
|
|
862
860
|
};
|
|
863
861
|
}
|
|
864
|
-
function
|
|
865
|
-
return
|
|
862
|
+
function ct(t) {
|
|
863
|
+
return L(t).position === "static";
|
|
866
864
|
}
|
|
867
|
-
function
|
|
868
|
-
if (!
|
|
865
|
+
function Tt(t, e) {
|
|
866
|
+
if (!N(t) || L(t).position === "fixed")
|
|
869
867
|
return null;
|
|
870
868
|
if (e)
|
|
871
869
|
return e(t);
|
|
872
870
|
let o = t.offsetParent;
|
|
873
|
-
return
|
|
871
|
+
return B(t) === o && (o = o.ownerDocument.body), o;
|
|
874
872
|
}
|
|
875
|
-
function
|
|
873
|
+
function Vt(t, e) {
|
|
876
874
|
const o = R(t);
|
|
877
|
-
if (
|
|
875
|
+
if (rt(t))
|
|
878
876
|
return o;
|
|
879
|
-
if (!
|
|
880
|
-
let i =
|
|
881
|
-
for (; i && !
|
|
882
|
-
if (
|
|
877
|
+
if (!N(t)) {
|
|
878
|
+
let i = Y(t);
|
|
879
|
+
for (; i && !G(i); ) {
|
|
880
|
+
if (D(i) && !ct(i))
|
|
883
881
|
return i;
|
|
884
|
-
i =
|
|
882
|
+
i = Y(i);
|
|
885
883
|
}
|
|
886
884
|
return o;
|
|
887
885
|
}
|
|
888
|
-
let n =
|
|
889
|
-
for (; n &&
|
|
890
|
-
n =
|
|
891
|
-
return n &&
|
|
886
|
+
let n = Tt(t, e);
|
|
887
|
+
for (; n && ce(n) && ct(n); )
|
|
888
|
+
n = Tt(n, e);
|
|
889
|
+
return n && G(n) && ct(n) && !wt(n) ? o : n || ae(t) || o;
|
|
892
890
|
}
|
|
893
|
-
const
|
|
894
|
-
const e = this.getOffsetParent ||
|
|
891
|
+
const be = async function(t) {
|
|
892
|
+
const e = this.getOffsetParent || Vt, o = this.getDimensions, n = await o(t.floating);
|
|
895
893
|
return {
|
|
896
|
-
reference:
|
|
894
|
+
reference: ve(t.reference, await e(t.floating), t.strategy),
|
|
897
895
|
floating: {
|
|
898
896
|
x: 0,
|
|
899
897
|
y: 0,
|
|
@@ -902,21 +900,21 @@ const Ae = async function(t) {
|
|
|
902
900
|
}
|
|
903
901
|
};
|
|
904
902
|
};
|
|
905
|
-
function
|
|
906
|
-
return
|
|
903
|
+
function Ae(t) {
|
|
904
|
+
return L(t).direction === "rtl";
|
|
907
905
|
}
|
|
908
906
|
const Ce = {
|
|
909
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
910
|
-
getDocumentElement:
|
|
911
|
-
getClippingRect:
|
|
912
|
-
getOffsetParent:
|
|
913
|
-
getElementRects:
|
|
914
|
-
getClientRects:
|
|
915
|
-
getDimensions:
|
|
916
|
-
getScale:
|
|
917
|
-
isElement:
|
|
918
|
-
isRTL:
|
|
919
|
-
},
|
|
907
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: de,
|
|
908
|
+
getDocumentElement: B,
|
|
909
|
+
getClippingRect: xe,
|
|
910
|
+
getOffsetParent: Vt,
|
|
911
|
+
getElementRects: be,
|
|
912
|
+
getClientRects: me,
|
|
913
|
+
getDimensions: ye,
|
|
914
|
+
getScale: q,
|
|
915
|
+
isElement: D,
|
|
916
|
+
isRTL: Ae
|
|
917
|
+
}, Re = se, Oe = re, Se = oe, _e = le, Te = ne, De = (t, e, o) => {
|
|
920
918
|
const n = /* @__PURE__ */ new Map(), i = {
|
|
921
919
|
platform: Ce,
|
|
922
920
|
...o
|
|
@@ -924,41 +922,41 @@ const Ce = {
|
|
|
924
922
|
...i.platform,
|
|
925
923
|
_c: n
|
|
926
924
|
};
|
|
927
|
-
return
|
|
925
|
+
return ee(t, e, {
|
|
928
926
|
...i,
|
|
929
927
|
platform: r
|
|
930
928
|
});
|
|
931
929
|
};
|
|
932
|
-
function
|
|
930
|
+
function Le(t) {
|
|
933
931
|
return t != null && typeof t == "object" && "$el" in t;
|
|
934
932
|
}
|
|
935
|
-
function
|
|
936
|
-
if (
|
|
933
|
+
function Ee(t) {
|
|
934
|
+
if (Le(t)) {
|
|
937
935
|
const e = t.$el;
|
|
938
|
-
return
|
|
936
|
+
return ht(e) && K(e) === "#comment" ? null : e;
|
|
939
937
|
}
|
|
940
938
|
return t;
|
|
941
939
|
}
|
|
942
|
-
function
|
|
943
|
-
return typeof t == "function" ? t() :
|
|
940
|
+
function Pe(t) {
|
|
941
|
+
return typeof t == "function" ? t() : at(t);
|
|
944
942
|
}
|
|
945
|
-
function
|
|
943
|
+
function ke(t) {
|
|
946
944
|
return {
|
|
947
945
|
name: "arrow",
|
|
948
946
|
options: t,
|
|
949
947
|
fn(e) {
|
|
950
|
-
const o = Pe(
|
|
951
|
-
return o == null ? {} :
|
|
948
|
+
const o = Ee(Pe(t.element));
|
|
949
|
+
return o == null ? {} : Te({
|
|
952
950
|
element: o,
|
|
953
951
|
padding: t.padding
|
|
954
952
|
}).fn(e);
|
|
955
953
|
}
|
|
956
954
|
};
|
|
957
955
|
}
|
|
958
|
-
const
|
|
956
|
+
const $e = { class: "rds-e-tooltip" }, Ne = {
|
|
959
957
|
key: 0,
|
|
960
958
|
class: "rds-e-tooltip__header"
|
|
961
|
-
}, We = { class: "rds-e-tooltip__title" },
|
|
959
|
+
}, We = { class: "rds-e-tooltip__title" }, Me = { class: "rds-e-tooltip__content" }, Ve = /* @__PURE__ */ Ft({
|
|
962
960
|
__name: "tooltip",
|
|
963
961
|
props: {
|
|
964
962
|
/**
|
|
@@ -1005,26 +1003,26 @@ const Me = { class: "rds-e-tooltip" }, Ne = {
|
|
|
1005
1003
|
}
|
|
1006
1004
|
},
|
|
1007
1005
|
setup(t) {
|
|
1008
|
-
const e = t, { large: o, fullWidth: n, title: i } =
|
|
1009
|
-
const { x: m, y: g, middlewareData: h, placement: w } = await
|
|
1006
|
+
const e = t, { large: o, fullWidth: n, title: i } = Ht(e), r = U(), s = U(), l = U(), c = U(!0), a = U(""), f = async () => {
|
|
1007
|
+
const { x: m, y: g, middlewareData: h, placement: w } = await De(
|
|
1010
1008
|
r.value,
|
|
1011
1009
|
s.value,
|
|
1012
1010
|
{
|
|
1013
1011
|
placement: e.placement,
|
|
1014
1012
|
middleware: [
|
|
1015
|
-
|
|
1016
|
-
Te(),
|
|
1013
|
+
Re(e.offsetSpace),
|
|
1017
1014
|
Se(),
|
|
1015
|
+
Oe(),
|
|
1018
1016
|
_e({
|
|
1019
|
-
apply({ availableHeight: v, availableWidth:
|
|
1020
|
-
Object.assign(
|
|
1021
|
-
maxWidth: n.value ? `${Math.max(0,
|
|
1017
|
+
apply({ availableHeight: v, availableWidth: E, elements: C }) {
|
|
1018
|
+
Object.assign(C.floating.style, {
|
|
1019
|
+
maxWidth: n.value ? `${Math.max(0, E)}px` : "380px",
|
|
1022
1020
|
width: "max-content",
|
|
1023
1021
|
maxHeight: `${Math.max(0, v)}px`
|
|
1024
1022
|
});
|
|
1025
1023
|
}
|
|
1026
1024
|
}),
|
|
1027
|
-
|
|
1025
|
+
ke({
|
|
1028
1026
|
element: l.value,
|
|
1029
1027
|
padding: o.value ? 16 : 8
|
|
1030
1028
|
})
|
|
@@ -1052,9 +1050,9 @@ const Me = { class: "rds-e-tooltip" }, Ne = {
|
|
|
1052
1050
|
i != null && i.value || (c.value = !0);
|
|
1053
1051
|
}, p = () => {
|
|
1054
1052
|
c.value = !1, f();
|
|
1055
|
-
}, d =
|
|
1056
|
-
return (m, g) => (
|
|
1057
|
-
|
|
1053
|
+
}, d = jt(() => `rds-e-tooltip__tooltip ${c.value ? "rds-e-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-e-tooltip__tooltip--large " : ""}`);
|
|
1054
|
+
return (m, g) => (bt(), vt("div", $e, [
|
|
1055
|
+
Z("div", {
|
|
1058
1056
|
ref_key: "referenceRef",
|
|
1059
1057
|
ref: r,
|
|
1060
1058
|
class: "rds-e-tooltip__trigger",
|
|
@@ -1063,28 +1061,28 @@ const Me = { class: "rds-e-tooltip" }, Ne = {
|
|
|
1063
1061
|
onMouseenter: p,
|
|
1064
1062
|
onMouseleave: u
|
|
1065
1063
|
}, [
|
|
1066
|
-
|
|
1064
|
+
At(m.$slots, "default", {}, void 0, !0)
|
|
1067
1065
|
], 544),
|
|
1068
|
-
|
|
1066
|
+
Z("div", {
|
|
1069
1067
|
ref_key: "floatingRef",
|
|
1070
1068
|
ref: s,
|
|
1071
1069
|
class: Ct(d.value)
|
|
1072
1070
|
}, [
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1071
|
+
at(i) ? (bt(), vt("div", Ne, [
|
|
1072
|
+
Z("h3", We, Rt(at(i)), 1),
|
|
1073
|
+
Yt(Xt, {
|
|
1076
1074
|
name: "close",
|
|
1077
1075
|
"aria-hidden": "true",
|
|
1078
1076
|
class: "rds-e-tooltip__icon",
|
|
1079
1077
|
onClick: g[0] || (g[0] = (h) => c.value = !c.value)
|
|
1080
1078
|
})
|
|
1081
|
-
])) :
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1079
|
+
])) : It("", !0),
|
|
1080
|
+
Z("div", Me, [
|
|
1081
|
+
At(m.$slots, "tooltip-content", {}, () => [
|
|
1082
|
+
zt(Rt(t.content), 1)
|
|
1085
1083
|
], !0)
|
|
1086
1084
|
]),
|
|
1087
|
-
|
|
1085
|
+
Z("div", {
|
|
1088
1086
|
ref_key: "arrowRef",
|
|
1089
1087
|
ref: l,
|
|
1090
1088
|
class: Ct(["rds-e-tooltip__tooltip-arrow", a.value])
|
|
@@ -1092,7 +1090,7 @@ const Me = { class: "rds-e-tooltip" }, Ne = {
|
|
|
1092
1090
|
], 2)
|
|
1093
1091
|
]));
|
|
1094
1092
|
}
|
|
1095
|
-
}),
|
|
1093
|
+
}), je = /* @__PURE__ */ Kt(Ve, [["__scopeId", "data-v-b36c3878"]]);
|
|
1096
1094
|
export {
|
|
1097
|
-
|
|
1095
|
+
je as default
|
|
1098
1096
|
};
|