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