energy-components 1.2.0 → 1.4.0-beta.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/button.es.js +11 -11
- package/dist/components/checkbox.es.js +7 -7
- package/dist/components/datepicker.es.js +2 -2
- package/dist/components/dropdown.es.js +11 -11
- package/dist/components/{icon-svg-GoL3_ayS.js → icon-svg-u9BWBbvW.js} +1 -1
- package/dist/components/iconList.es.js +5 -5
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +83 -74
- package/dist/components/infoBox.es.js +8 -8
- package/dist/components/link.es.js +15 -15
- package/dist/components/modal.es.js +12 -12
- package/dist/components/persistentToast.es.js +5 -5
- package/dist/components/quantitySelector.es.js +69 -86
- package/dist/components/radioButton.es.js +16 -16
- package/dist/components/selectionChip.es.js +87 -0
- package/dist/components/sidedrawer.es.js +85 -0
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/overlay.css +1 -1
- package/dist/components/style/quantitySelector.css +1 -1
- package/dist/components/style/selectionChip.css +1 -0
- package/dist/components/style/sidedrawer.css +1 -0
- package/dist/components/style/switch.css +1 -1
- package/dist/components/style/textArea.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/toggle.css +1 -0
- package/dist/components/switch.es.js +40 -36
- package/dist/components/tabBar.es.js +12 -12
- package/dist/components/tag.es.js +5 -5
- package/dist/components/textArea.es.js +64 -57
- package/dist/components/textField.es.js +91 -77
- package/dist/components/toggle.es.js +53 -0
- package/dist/components/tooltip.es.js +61 -61
- package/dist/energy-components.es.js +4081 -3862
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +1 -1
- package/dist/types/src/components/index.d.ts +3 -0
- package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +24 -19
- package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +120 -0
- package/dist/types/src/components/input/switch/switch.vue.d.ts +12 -3
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +8 -0
- package/dist/types/src/components/input/toggle/toggle.vue.d.ts +41 -0
- package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +75 -0
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +1 -1
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
2
|
-
import {
|
|
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 Rt, createVNode as It, createCommentVNode as Yt } from "vue";
|
|
2
|
+
import { R as zt } from "./icon-svg-u9BWBbvW.js";
|
|
3
3
|
import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './style/tooltip.css';const Y = Math.min, O = Math.max, nt = Math.round, k = (t) => ({
|
|
5
5
|
x: t,
|
|
@@ -25,7 +25,7 @@ function j(t) {
|
|
|
25
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
31
|
function mt(t) {
|
|
@@ -35,7 +35,7 @@ function z(t) {
|
|
|
35
35
|
return ["top", "bottom"].includes(j(t)) ? "y" : "x";
|
|
36
36
|
}
|
|
37
37
|
function pt(t) {
|
|
38
|
-
return
|
|
38
|
+
return Dt(z(t));
|
|
39
39
|
}
|
|
40
40
|
function Gt(t, e, o) {
|
|
41
41
|
o === void 0 && (o = !1);
|
|
@@ -80,7 +80,7 @@ function Zt(t) {
|
|
|
80
80
|
...t
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Tt(t) {
|
|
84
84
|
return typeof t != "number" ? Zt(t) : {
|
|
85
85
|
top: t,
|
|
86
86
|
right: t,
|
|
@@ -106,7 +106,7 @@ function it(t) {
|
|
|
106
106
|
y: o
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Ct(t, e, o) {
|
|
110
110
|
let {
|
|
111
111
|
reference: n,
|
|
112
112
|
floating: i
|
|
@@ -168,7 +168,7 @@ const te = async (t, e, o) => {
|
|
|
168
168
|
}), {
|
|
169
169
|
x: f,
|
|
170
170
|
y: u
|
|
171
|
-
} =
|
|
171
|
+
} = Ct(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 te = async (t, e, o) => {
|
|
|
205
205
|
}) : b.rects), {
|
|
206
206
|
x: f,
|
|
207
207
|
y: u
|
|
208
|
-
} =
|
|
208
|
+
} = Ct(a, p, c)), g = -1);
|
|
209
209
|
}
|
|
210
210
|
return {
|
|
211
211
|
x: f,
|
|
@@ -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
|
-
} = J(e, t), m =
|
|
234
|
+
} = J(e, t), m = Tt(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,
|
|
@@ -278,13 +278,13 @@ const ee = (t) => ({
|
|
|
278
278
|
} = J(t, e) || {};
|
|
279
279
|
if (a == null)
|
|
280
280
|
return {};
|
|
281
|
-
const u =
|
|
281
|
+
const u = Tt(f), p = {
|
|
282
282
|
x: o,
|
|
283
283
|
y: n
|
|
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],
|
|
285
|
-
let
|
|
286
|
-
(!
|
|
287
|
-
const W = v / 2 - b / 2, E =
|
|
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], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
|
|
285
|
+
let R = T ? T[y] : 0;
|
|
286
|
+
(!R || !await (s.isElement == null ? void 0 : s.isElement(T))) && (R = l.floating[y] || r.floating[m]);
|
|
287
|
+
const W = v / 2 - b / 2, E = R / 2 - g[m] / 2 - 1, _ = Y(u[w], E), B = Y(u[x], E), L = _, V = R - g[m] - B, A = R / 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
289
|
[d]: p[d] + P,
|
|
290
290
|
data: {
|
|
@@ -321,9 +321,9 @@ const ee = (t) => ({
|
|
|
321
321
|
} = J(t, e);
|
|
322
322
|
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
323
323
|
return {};
|
|
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)),
|
|
325
|
-
!p &&
|
|
326
|
-
const
|
|
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)), T = m !== "none";
|
|
325
|
+
!p && T && b.push(...Ut(l, g, m, v));
|
|
326
|
+
const R = [l, ...b], W = await gt(e, h), E = [];
|
|
327
327
|
let _ = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
328
328
|
if (f && E.push(W[w]), u) {
|
|
329
329
|
const A = Gt(i, s, v);
|
|
@@ -334,7 +334,7 @@ const ee = (t) => ({
|
|
|
334
334
|
overflows: E
|
|
335
335
|
}], !E.every((A) => A <= 0)) {
|
|
336
336
|
var B, L;
|
|
337
|
-
const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K =
|
|
337
|
+
const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K = R[A];
|
|
338
338
|
if (K)
|
|
339
339
|
return {
|
|
340
340
|
data: {
|
|
@@ -351,7 +351,7 @@ const ee = (t) => ({
|
|
|
351
351
|
case "bestFit": {
|
|
352
352
|
var V;
|
|
353
353
|
const P = (V = _.filter((F) => {
|
|
354
|
-
if (
|
|
354
|
+
if (T) {
|
|
355
355
|
const H = z(F.placement);
|
|
356
356
|
return H === x || // Create a bias to the `y` side axis due to horizontal
|
|
357
357
|
// reading directions favoring greater width.
|
|
@@ -454,7 +454,7 @@ const ie = function(t) {
|
|
|
454
454
|
} = J(t, e), a = {
|
|
455
455
|
x: o,
|
|
456
456
|
y: n
|
|
457
|
-
}, f = await gt(e, c), u = z(j(i)), p =
|
|
457
|
+
}, f = await gt(e, c), u = z(j(i)), p = Dt(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];
|
|
@@ -503,16 +503,16 @@ const ie = function(t) {
|
|
|
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, v = Y(g - f[h], x), b = Y(m - f[w], y),
|
|
507
|
-
let
|
|
508
|
-
if ((o = e.middlewareData.shift) != null && o.enabled.x && (W = y), (n = e.middlewareData.shift) != null && n.enabled.y && (
|
|
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), T = !e.middlewareData.shift;
|
|
507
|
+
let R = v, W = b;
|
|
508
|
+
if ((o = e.middlewareData.shift) != null && o.enabled.x && (W = y), (n = e.middlewareData.shift) != null && n.enabled.y && (R = x), T && !p) {
|
|
509
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)) :
|
|
510
|
+
d ? W = m - 2 * (_ !== 0 || B !== 0 ? _ + B : O(f.left, f.right)) : R = g - 2 * (L !== 0 || V !== 0 ? L + V : O(f.top, f.bottom));
|
|
511
511
|
}
|
|
512
512
|
await c({
|
|
513
513
|
...e,
|
|
514
514
|
availableWidth: W,
|
|
515
|
-
availableHeight:
|
|
515
|
+
availableHeight: R
|
|
516
516
|
});
|
|
517
517
|
const E = await s.getDimensions(l.floating);
|
|
518
518
|
return m !== E.width || g !== E.height ? {
|
|
@@ -529,7 +529,7 @@ function st() {
|
|
|
529
529
|
function X(t) {
|
|
530
530
|
return ht(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function C(t) {
|
|
533
533
|
var e;
|
|
534
534
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
535
535
|
}
|
|
@@ -538,16 +538,16 @@ function N(t) {
|
|
|
538
538
|
return (e = (ht(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
539
539
|
}
|
|
540
540
|
function ht(t) {
|
|
541
|
-
return st() ? t instanceof Node || t instanceof
|
|
541
|
+
return st() ? t instanceof Node || t instanceof C(t).Node : !1;
|
|
542
542
|
}
|
|
543
543
|
function S(t) {
|
|
544
|
-
return st() ? t instanceof Element || t instanceof
|
|
544
|
+
return st() ? t instanceof Element || t instanceof C(t).Element : !1;
|
|
545
545
|
}
|
|
546
546
|
function $(t) {
|
|
547
|
-
return st() ? t instanceof HTMLElement || t instanceof
|
|
547
|
+
return st() ? t instanceof HTMLElement || t instanceof C(t).HTMLElement : !1;
|
|
548
548
|
}
|
|
549
549
|
function Ot(t) {
|
|
550
|
-
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof
|
|
550
|
+
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof C(t).ShadowRoot;
|
|
551
551
|
}
|
|
552
552
|
function et(t) {
|
|
553
553
|
const {
|
|
@@ -555,7 +555,7 @@ function et(t) {
|
|
|
555
555
|
overflowX: o,
|
|
556
556
|
overflowY: n,
|
|
557
557
|
display: i
|
|
558
|
-
} =
|
|
558
|
+
} = D(t);
|
|
559
559
|
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
|
|
560
560
|
}
|
|
561
561
|
function le(t) {
|
|
@@ -571,7 +571,7 @@ function rt(t) {
|
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
573
|
function wt(t) {
|
|
574
|
-
const e = xt(), o = S(t) ?
|
|
574
|
+
const e = xt(), o = S(t) ? D(t) : t;
|
|
575
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
577
|
function ce(t) {
|
|
@@ -591,8 +591,8 @@ function xt() {
|
|
|
591
591
|
function G(t) {
|
|
592
592
|
return ["html", "body", "#document"].includes(X(t));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
function D(t) {
|
|
595
|
+
return C(t).getComputedStyle(t);
|
|
596
596
|
}
|
|
597
597
|
function lt(t) {
|
|
598
598
|
return S(t) ? {
|
|
@@ -622,14 +622,14 @@ function Et(t) {
|
|
|
622
622
|
function Lt(t, e, o) {
|
|
623
623
|
var n;
|
|
624
624
|
e === void 0 && (e = []);
|
|
625
|
-
const i = Et(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s =
|
|
625
|
+
const i = Et(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = C(i);
|
|
626
626
|
return r ? (dt(s), e.concat(s, s.visualViewport || [], et(i) ? i : [], [])) : e.concat(i, Lt(i, []));
|
|
627
627
|
}
|
|
628
628
|
function dt(t) {
|
|
629
629
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
630
630
|
}
|
|
631
631
|
function Pt(t) {
|
|
632
|
-
const e =
|
|
632
|
+
const e = D(t);
|
|
633
633
|
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
634
634
|
const i = $(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, l = nt(o) !== r || nt(n) !== s;
|
|
635
635
|
return l && (o = r, n = s), {
|
|
@@ -658,14 +658,14 @@ function q(t) {
|
|
|
658
658
|
}
|
|
659
659
|
const ae = /* @__PURE__ */ k(0);
|
|
660
660
|
function $t(t) {
|
|
661
|
-
const e =
|
|
661
|
+
const e = C(t);
|
|
662
662
|
return !xt() || !e.visualViewport ? ae : {
|
|
663
663
|
x: e.visualViewport.offsetLeft,
|
|
664
664
|
y: e.visualViewport.offsetTop
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
667
|
function fe(t, e, o) {
|
|
668
|
-
return e === void 0 && (e = !1), !o || e && o !==
|
|
668
|
+
return e === void 0 && (e = !1), !o || e && o !== C(t) ? !1 : e;
|
|
669
669
|
}
|
|
670
670
|
function tt(t, e, o, n) {
|
|
671
671
|
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
@@ -675,11 +675,11 @@ function tt(t, e, o, n) {
|
|
|
675
675
|
const l = fe(r, o, n) ? $t(r) : k(0);
|
|
676
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;
|
|
677
677
|
if (r) {
|
|
678
|
-
const p =
|
|
678
|
+
const p = C(r), d = n && S(n) ? C(n) : n;
|
|
679
679
|
let m = p, g = dt(m);
|
|
680
680
|
for (; g && n && d !== m; ) {
|
|
681
|
-
const h = q(g), w = g.getBoundingClientRect(), x =
|
|
682
|
-
c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += v, m =
|
|
681
|
+
const h = q(g), w = g.getBoundingClientRect(), x = D(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 = C(g), g = dt(m);
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
return it({
|
|
@@ -738,7 +738,7 @@ function me(t) {
|
|
|
738
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);
|
|
739
739
|
let s = -o.scrollLeft + yt(t);
|
|
740
740
|
const l = -o.scrollTop;
|
|
741
|
-
return
|
|
741
|
+
return D(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
|
|
742
742
|
width: i,
|
|
743
743
|
height: r,
|
|
744
744
|
x: s,
|
|
@@ -746,7 +746,7 @@ function me(t) {
|
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
function pe(t, e) {
|
|
749
|
-
const o =
|
|
749
|
+
const o = C(t), n = N(t), i = o.visualViewport;
|
|
750
750
|
let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
|
|
751
751
|
if (i) {
|
|
752
752
|
r = i.width, s = i.height;
|
|
@@ -790,17 +790,17 @@ function _t(t, e, o) {
|
|
|
790
790
|
}
|
|
791
791
|
function Mt(t, e) {
|
|
792
792
|
const o = I(t);
|
|
793
|
-
return o === e || !S(o) || G(o) ? !1 :
|
|
793
|
+
return o === e || !S(o) || G(o) ? !1 : D(o).position === "fixed" || Mt(o, e);
|
|
794
794
|
}
|
|
795
795
|
function he(t, e) {
|
|
796
796
|
const o = e.get(t);
|
|
797
797
|
if (o)
|
|
798
798
|
return o;
|
|
799
799
|
let n = Lt(t, []).filter((l) => S(l) && X(l) !== "body"), i = null;
|
|
800
|
-
const r =
|
|
800
|
+
const r = D(t).position === "fixed";
|
|
801
801
|
let s = r ? I(t) : t;
|
|
802
802
|
for (; S(s) && !G(s); ) {
|
|
803
|
-
const l =
|
|
803
|
+
const l = D(s), c = wt(s);
|
|
804
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);
|
|
805
805
|
}
|
|
806
806
|
return e.set(t, n), n;
|
|
@@ -854,10 +854,10 @@ function ye(t, e, o) {
|
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
856
|
function ct(t) {
|
|
857
|
-
return
|
|
857
|
+
return D(t).position === "static";
|
|
858
858
|
}
|
|
859
859
|
function St(t, e) {
|
|
860
|
-
if (!$(t) ||
|
|
860
|
+
if (!$(t) || D(t).position === "fixed")
|
|
861
861
|
return null;
|
|
862
862
|
if (e)
|
|
863
863
|
return e(t);
|
|
@@ -865,7 +865,7 @@ function St(t, e) {
|
|
|
865
865
|
return N(t) === o && (o = o.ownerDocument.body), o;
|
|
866
866
|
}
|
|
867
867
|
function Nt(t, e) {
|
|
868
|
-
const o =
|
|
868
|
+
const o = C(t);
|
|
869
869
|
if (rt(t))
|
|
870
870
|
return o;
|
|
871
871
|
if (!$(t)) {
|
|
@@ -895,7 +895,7 @@ const be = async function(t) {
|
|
|
895
895
|
};
|
|
896
896
|
};
|
|
897
897
|
function ve(t) {
|
|
898
|
-
return
|
|
898
|
+
return D(t).direction === "rtl";
|
|
899
899
|
}
|
|
900
900
|
const Ae = {
|
|
901
901
|
convertOffsetParentRelativeRectToViewportRelativeRect: ue,
|
|
@@ -908,7 +908,7 @@ const Ae = {
|
|
|
908
908
|
getScale: q,
|
|
909
909
|
isElement: S,
|
|
910
910
|
isRTL: ve
|
|
911
|
-
},
|
|
911
|
+
}, Re = ie, Ce = se, Oe = ne, _e = re, Se = ee, De = (t, e, o) => {
|
|
912
912
|
const n = /* @__PURE__ */ new Map(), i = {
|
|
913
913
|
platform: Ae,
|
|
914
914
|
...o
|
|
@@ -921,11 +921,11 @@ const Ae = {
|
|
|
921
921
|
platform: r
|
|
922
922
|
});
|
|
923
923
|
};
|
|
924
|
-
function
|
|
924
|
+
function Te(t) {
|
|
925
925
|
return t != null && typeof t == "object" && "$el" in t;
|
|
926
926
|
}
|
|
927
927
|
function Ee(t) {
|
|
928
|
-
if (
|
|
928
|
+
if (Te(t)) {
|
|
929
929
|
const e = t.$el;
|
|
930
930
|
return ht(e) && X(e) === "#comment" ? null : e;
|
|
931
931
|
}
|
|
@@ -998,19 +998,19 @@ const ke = { class: "rds-e-tooltip" }, $e = {
|
|
|
998
998
|
},
|
|
999
999
|
setup(t) {
|
|
1000
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
|
|
1001
|
+
const { x: m, y: g, middlewareData: h, placement: w } = await De(
|
|
1002
1002
|
r.value,
|
|
1003
1003
|
s.value,
|
|
1004
1004
|
{
|
|
1005
1005
|
placement: e.placement,
|
|
1006
1006
|
middleware: [
|
|
1007
|
-
|
|
1007
|
+
Re(e.offsetSpace),
|
|
1008
1008
|
Oe(),
|
|
1009
|
-
|
|
1009
|
+
Ce(),
|
|
1010
1010
|
_e({
|
|
1011
|
-
apply({ availableHeight: b, availableWidth:
|
|
1012
|
-
Object.assign(
|
|
1013
|
-
maxWidth: n.value ? `${Math.max(0,
|
|
1011
|
+
apply({ availableHeight: b, availableWidth: T, elements: R }) {
|
|
1012
|
+
Object.assign(R.floating.style, {
|
|
1013
|
+
maxWidth: n.value ? `${Math.max(0, T)}px` : "380px",
|
|
1014
1014
|
width: "max-content",
|
|
1015
1015
|
maxHeight: `${Math.max(0, b)}px`
|
|
1016
1016
|
});
|
|
@@ -1063,7 +1063,7 @@ const ke = { class: "rds-e-tooltip" }, $e = {
|
|
|
1063
1063
|
class: At(d.value)
|
|
1064
1064
|
}, [
|
|
1065
1065
|
at(i) ? (bt(), vt("div", $e, [
|
|
1066
|
-
Z("h3", We,
|
|
1066
|
+
Z("h3", We, Rt(at(i)), 1),
|
|
1067
1067
|
It(zt, {
|
|
1068
1068
|
name: "close",
|
|
1069
1069
|
"aria-hidden": "true",
|
|
@@ -1071,7 +1071,7 @@ const ke = { class: "rds-e-tooltip" }, $e = {
|
|
|
1071
1071
|
onClick: g[0] || (g[0] = (h) => c.value = !c.value)
|
|
1072
1072
|
})
|
|
1073
1073
|
])) : Yt("", !0),
|
|
1074
|
-
Z("div", Me,
|
|
1074
|
+
Z("div", Me, Rt(t.content), 1),
|
|
1075
1075
|
Z("div", {
|
|
1076
1076
|
ref_key: "arrowRef",
|
|
1077
1077
|
ref: l,
|