energy-components 1.6.0 → 1.7.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.
Files changed (47) hide show
  1. package/dist/components/accordion.es.js +1 -1
  2. package/dist/components/button.es.js +17 -17
  3. package/dist/components/checkbox.es.js +1 -1
  4. package/dist/components/dropdown.es.js +1 -1
  5. package/dist/components/filterChip.es.js +1 -1
  6. package/dist/components/{icon-svg-DGp2yHJn.js → icon-svg-BmDOQ0kL.js} +42 -26
  7. package/dist/components/iconList.es.js +1 -1
  8. package/dist/components/iconSvg.es.js +1 -1
  9. package/dist/components/index.es.js +1 -1
  10. package/dist/components/infoBox.es.js +1 -1
  11. package/dist/components/link.es.js +1 -1
  12. package/dist/components/modal.es.js +1 -1
  13. package/dist/components/pagination.es.js +32 -21
  14. package/dist/components/persistentToast.es.js +1 -1
  15. package/dist/components/quantitySelector.es.js +1 -1
  16. package/dist/components/radioButton.es.js +1 -1
  17. package/dist/components/selectionChip.es.js +1 -1
  18. package/dist/components/sidedrawer.es.js +41 -29
  19. package/dist/components/style/button.css +1 -1
  20. package/dist/components/style/dropdown.css +1 -1
  21. package/dist/components/style/icon-svg.css +1 -1
  22. package/dist/components/style/pagination.css +1 -1
  23. package/dist/components/style/sidedrawer.css +1 -1
  24. package/dist/components/style/tabBar.css +1 -1
  25. package/dist/components/style/tablepaginatedcomponent.css +1 -1
  26. package/dist/components/style/tooltip.css +1 -1
  27. package/dist/components/switch.es.js +1 -1
  28. package/dist/components/tabBar.es.js +5 -3
  29. package/dist/components/tablepaginatedcomponent.es.js +46 -44
  30. package/dist/components/tableslotedcomponent.es.js +1 -1
  31. package/dist/components/tag.es.js +1 -1
  32. package/dist/components/textArea.es.js +1 -1
  33. package/dist/components/textField.es.js +1 -1
  34. package/dist/components/tooltip.es.js +179 -175
  35. package/dist/energy-components.es.js +2885 -2838
  36. package/dist/energy-components.umd.js +1 -1
  37. package/dist/style.css +1 -1
  38. package/dist/types/src/components/buttons/button/button.vue.d.ts +2 -2
  39. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +19 -0
  40. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -2
  41. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +1 -1
  42. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +2 -2
  43. package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +15 -0
  44. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +17 -0
  45. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +1 -0
  46. package/dist/types/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +3 -3
@@ -1,15 +1,15 @@
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-DGp2yHJn.js";
3
- import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { unref as at, defineComponent as Ft, toRefs as Ht, ref as U, computed as jt, openBlock as bt, createElementBlock as vt, createElementVNode as Z, renderSlot as At, normalizeClass as Rt, toDisplayString as Ct, createVNode as It, createCommentVNode as Yt, createTextVNode as zt } from "vue";
2
+ import { R as Xt } from "./icon-svg-BmDOQ0kL.js";
3
+ import { _ as Kt } 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,
6
6
  y: t
7
- }), Kt = {
7
+ }), qt = {
8
8
  left: "right",
9
9
  right: "left",
10
10
  bottom: "top",
11
11
  top: "bottom"
12
- }, qt = {
12
+ }, Gt = {
13
13
  start: "end",
14
14
  end: "start"
15
15
  };
@@ -37,20 +37,20 @@ function z(t) {
37
37
  function pt(t) {
38
38
  return Dt(z(t));
39
39
  }
40
- function Gt(t, e, o) {
40
+ function Jt(t, e, o) {
41
41
  o === void 0 && (o = !1);
42
42
  const n = Q(t), i = pt(t), r = mt(i);
43
43
  let s = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
44
44
  return e.reference[r] > e.floating[r] && (s = ot(s)), [s, ot(s)];
45
45
  }
46
- function Jt(t) {
46
+ function Qt(t) {
47
47
  const e = ot(t);
48
48
  return [ut(t), e, ut(e)];
49
49
  }
50
50
  function ut(t) {
51
- return t.replace(/start|end/g, (e) => qt[e]);
51
+ return t.replace(/start|end/g, (e) => Gt[e]);
52
52
  }
53
- function Qt(t, e, o) {
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 Qt(t, e, o) {
63
63
  return [];
64
64
  }
65
65
  }
66
- function Ut(t, e, o, n) {
66
+ function Zt(t, e, o, n) {
67
67
  const i = Q(t);
68
- let r = Qt(j(t), o === "start", n);
68
+ let r = Ut(j(t), o === "start", n);
69
69
  return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ut)))), r;
70
70
  }
71
71
  function ot(t) {
72
- return t.replace(/left|right|bottom|top/g, (e) => Kt[e]);
72
+ return t.replace(/left|right|bottom|top/g, (e) => qt[e]);
73
73
  }
74
- function Zt(t) {
74
+ function te(t) {
75
75
  return {
76
76
  top: 0,
77
77
  right: 0,
@@ -80,8 +80,8 @@ function Zt(t) {
80
80
  ...t
81
81
  };
82
82
  }
83
- function Tt(t) {
84
- return typeof t != "number" ? Zt(t) : {
83
+ function Et(t) {
84
+ return typeof t != "number" ? te(t) : {
85
85
  top: t,
86
86
  right: t,
87
87
  bottom: t,
@@ -106,7 +106,7 @@ function it(t) {
106
106
  y: o
107
107
  };
108
108
  }
109
- function Ct(t, e, o) {
109
+ function Ot(t, e, o) {
110
110
  let {
111
111
  reference: n,
112
112
  floating: i
@@ -154,7 +154,7 @@ function Ct(t, e, o) {
154
154
  }
155
155
  return d;
156
156
  }
157
- const te = async (t, e, o) => {
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 te = async (t, e, o) => {
168
168
  }), {
169
169
  x: f,
170
170
  y: u
171
- } = Ct(a, n, c), p = n, d = {}, m = 0;
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 te = async (t, e, o) => {
205
205
  }) : b.rects), {
206
206
  x: f,
207
207
  y: u
208
- } = Ct(a, p, c)), g = -1);
208
+ } = Ot(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 = Tt(d), h = l[p ? u === "floating" ? "reference" : "floating" : u], w = it(await r.getClippingRect({
234
+ } = J(e, t), m = Et(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,
@@ -260,7 +260,7 @@ async function gt(t, e) {
260
260
  right: (b.right - w.right + m.right) / v.x
261
261
  };
262
262
  }
263
- const ee = (t) => ({
263
+ const ne = (t) => ({
264
264
  name: "arrow",
265
265
  options: t,
266
266
  async fn(e) {
@@ -278,26 +278,26 @@ const ee = (t) => ({
278
278
  } = J(t, e) || {};
279
279
  if (a == null)
280
280
  return {};
281
- const u = Tt(f), p = {
281
+ const u = Et(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], 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;
284
+ }, d = pt(i), m = mt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", v = r.reference[m] + r.reference[d] - p[d] - r.floating[m], b = p[d] - r.reference[d], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
285
+ let R = D ? D[y] : 0;
286
+ (!R || !await (s.isElement == null ? void 0 : s.isElement(D))) && (R = l.floating[y] || r.floating[m]);
287
+ const N = v / 2 - b / 2, E = R / 2 - g[m] / 2 - 1, S = Y(u[w], E), V = Y(u[x], E), L = S, B = R - g[m] - V, A = R / 2 - g[m] / 2 + N, K = ft(L, A, B), W = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < L ? S : V) - g[m] / 2 < 0, P = W ? A < L ? A - L : A - B : 0;
288
288
  return {
289
289
  [d]: p[d] + P,
290
290
  data: {
291
291
  [d]: K,
292
292
  centerOffset: A - K - P,
293
- ...M && {
293
+ ...W && {
294
294
  alignmentOffset: P
295
295
  }
296
296
  },
297
- reset: M
297
+ reset: W
298
298
  };
299
299
  }
300
- }), ne = function(t) {
300
+ }), oe = function(t) {
301
301
  return t === void 0 && (t = {}), {
302
302
  name: "flip",
303
303
  options: t,
@@ -321,55 +321,55 @@ 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)), 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
- let _ = ((n = r.flip) == null ? void 0 : n.overflows) || [];
328
- if (f && E.push(W[w]), u) {
329
- const A = Gt(i, s, v);
330
- E.push(W[A[0]], W[A[1]]);
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)] : Qt(l)), D = m !== "none";
325
+ !p && D && b.push(...Zt(l, g, m, v));
326
+ const R = [l, ...b], N = await gt(e, h), E = [];
327
+ let S = ((n = r.flip) == null ? void 0 : n.overflows) || [];
328
+ if (f && E.push(N[w]), u) {
329
+ const A = Jt(i, s, v);
330
+ E.push(N[A[0]], N[A[1]]);
331
331
  }
332
- if (_ = [..._, {
332
+ if (S = [...S, {
333
333
  placement: i,
334
334
  overflows: E
335
335
  }], !E.every((A) => A <= 0)) {
336
- var B, L;
337
- const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K = R[A];
336
+ var V, L;
337
+ const A = (((V = r.flip) == null ? void 0 : V.index) || 0) + 1, K = R[A];
338
338
  if (K)
339
339
  return {
340
340
  data: {
341
341
  index: A,
342
- overflows: _
342
+ overflows: S
343
343
  },
344
344
  reset: {
345
345
  placement: K
346
346
  }
347
347
  };
348
- let M = (L = _.filter((P) => P.overflows[0] <= 0).sort((P, F) => P.overflows[1] - F.overflows[1])[0]) == null ? void 0 : L.placement;
349
- if (!M)
348
+ let W = (L = S.filter((P) => P.overflows[0] <= 0).sort((P, F) => P.overflows[1] - F.overflows[1])[0]) == null ? void 0 : L.placement;
349
+ if (!W)
350
350
  switch (d) {
351
351
  case "bestFit": {
352
- var V;
353
- const P = (V = _.filter((F) => {
354
- if (T) {
352
+ var B;
353
+ const P = (B = S.filter((F) => {
354
+ if (D) {
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.
358
358
  H === "y";
359
359
  }
360
360
  return !0;
361
- }).map((F) => [F.placement, F.overflows.filter((H) => H > 0).reduce((H, Bt) => H + Bt, 0)]).sort((F, H) => F[1] - H[1])[0]) == null ? void 0 : V[0];
362
- P && (M = P);
361
+ }).map((F) => [F.placement, F.overflows.filter((H) => H > 0).reduce((H, Bt) => H + Bt, 0)]).sort((F, H) => F[1] - H[1])[0]) == null ? void 0 : B[0];
362
+ P && (W = P);
363
363
  break;
364
364
  }
365
365
  case "initialPlacement":
366
- M = l;
366
+ W = l;
367
367
  break;
368
368
  }
369
- if (i !== M)
369
+ if (i !== W)
370
370
  return {
371
371
  reset: {
372
- placement: M
372
+ placement: W
373
373
  }
374
374
  };
375
375
  }
@@ -377,7 +377,7 @@ const ee = (t) => ({
377
377
  }
378
378
  };
379
379
  };
380
- async function oe(t, e) {
380
+ async function ie(t, e) {
381
381
  const {
382
382
  placement: o,
383
383
  platform: n,
@@ -404,7 +404,7 @@ async function oe(t, e) {
404
404
  y: d * f
405
405
  };
406
406
  }
407
- const ie = function(t) {
407
+ const se = function(t) {
408
408
  return t === void 0 && (t = 0), {
409
409
  name: "offset",
410
410
  options: t,
@@ -415,7 +415,7 @@ const ie = function(t) {
415
415
  y: r,
416
416
  placement: s,
417
417
  middlewareData: l
418
- } = e, c = await oe(e, t);
418
+ } = e, c = await ie(e, t);
419
419
  return s === ((o = l.offset) == null ? void 0 : o.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
420
420
  x: i + c.x,
421
421
  y: r + c.y,
@@ -426,7 +426,7 @@ const ie = function(t) {
426
426
  };
427
427
  }
428
428
  };
429
- }, se = function(t) {
429
+ }, re = function(t) {
430
430
  return t === void 0 && (t = {}), {
431
431
  name: "shift",
432
432
  options: t,
@@ -482,7 +482,7 @@ const ie = function(t) {
482
482
  };
483
483
  }
484
484
  };
485
- }, re = function(t) {
485
+ }, le = function(t) {
486
486
  return t === void 0 && (t = {}), {
487
487
  name: "size",
488
488
  options: t,
@@ -503,15 +503,15 @@ 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), 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
- 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)) : R = g - 2 * (L !== 0 || V !== 0 ? L + V : O(f.top, f.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), D = !e.middlewareData.shift;
507
+ let R = v, N = b;
508
+ if ((o = e.middlewareData.shift) != null && o.enabled.x && (N = y), (n = e.middlewareData.shift) != null && n.enabled.y && (R = x), D && !p) {
509
+ const S = O(f.left, 0), V = O(f.right, 0), L = O(f.top, 0), B = O(f.bottom, 0);
510
+ d ? N = m - 2 * (S !== 0 || V !== 0 ? S + V : O(f.left, f.right)) : R = g - 2 * (L !== 0 || B !== 0 ? L + B : O(f.top, f.bottom));
511
511
  }
512
512
  await c({
513
513
  ...e,
514
- availableWidth: W,
514
+ availableWidth: N,
515
515
  availableHeight: R
516
516
  });
517
517
  const E = await s.getDimensions(l.floating);
@@ -533,20 +533,20 @@ function C(t) {
533
533
  var e;
534
534
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
535
535
  }
536
- function N(t) {
536
+ function M(t) {
537
537
  var e;
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
541
  return st() ? t instanceof Node || t instanceof C(t).Node : !1;
542
542
  }
543
- function S(t) {
543
+ function _(t) {
544
544
  return st() ? t instanceof Element || t instanceof C(t).Element : !1;
545
545
  }
546
546
  function $(t) {
547
547
  return st() ? t instanceof HTMLElement || t instanceof C(t).HTMLElement : !1;
548
548
  }
549
- function Ot(t) {
549
+ function St(t) {
550
550
  return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof C(t).ShadowRoot;
551
551
  }
552
552
  function et(t) {
@@ -555,10 +555,10 @@ function et(t) {
555
555
  overflowX: o,
556
556
  overflowY: n,
557
557
  display: i
558
- } = D(t);
558
+ } = T(t);
559
559
  return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
560
560
  }
561
- function le(t) {
561
+ function ce(t) {
562
562
  return ["table", "td", "th"].includes(X(t));
563
563
  }
564
564
  function rt(t) {
@@ -571,10 +571,10 @@ function rt(t) {
571
571
  });
572
572
  }
573
573
  function wt(t) {
574
- const e = xt(), o = S(t) ? D(t) : t;
574
+ const e = xt(), o = _(t) ? T(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
- function ce(t) {
577
+ function ae(t) {
578
578
  let e = I(t);
579
579
  for (; $(e) && !G(e); ) {
580
580
  if (wt(e))
@@ -591,11 +591,11 @@ function xt() {
591
591
  function G(t) {
592
592
  return ["html", "body", "#document"].includes(X(t));
593
593
  }
594
- function D(t) {
594
+ function T(t) {
595
595
  return C(t).getComputedStyle(t);
596
596
  }
597
597
  function lt(t) {
598
- return S(t) ? {
598
+ return _(t) ? {
599
599
  scrollLeft: t.scrollLeft,
600
600
  scrollTop: t.scrollTop
601
601
  } : {
@@ -610,26 +610,26 @@ function I(t) {
610
610
  // Step into the shadow DOM of the parent of a slotted node.
611
611
  t.assignedSlot || // DOM Element detected.
612
612
  t.parentNode || // ShadowRoot detected.
613
- Ot(t) && t.host || // Fallback.
614
- N(t)
613
+ St(t) && t.host || // Fallback.
614
+ M(t)
615
615
  );
616
- return Ot(e) ? e.host : e;
616
+ return St(e) ? e.host : e;
617
617
  }
618
- function Et(t) {
618
+ function Lt(t) {
619
619
  const e = I(t);
620
- return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : $(e) && et(e) ? e : Et(e);
620
+ return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : $(e) && et(e) ? e : Lt(e);
621
621
  }
622
- function Lt(t, e, o) {
622
+ function Pt(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 = C(i);
626
- return r ? (dt(s), e.concat(s, s.visualViewport || [], et(i) ? i : [], [])) : e.concat(i, Lt(i, []));
625
+ const i = Lt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = C(i);
626
+ return r ? (dt(s), e.concat(s, s.visualViewport || [], et(i) ? i : [], [])) : e.concat(i, Pt(i, []));
627
627
  }
628
628
  function dt(t) {
629
629
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
630
630
  }
631
- function Pt(t) {
632
- const e = D(t);
631
+ function kt(t) {
632
+ const e = T(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), {
@@ -638,47 +638,47 @@ function Pt(t) {
638
638
  $: l
639
639
  };
640
640
  }
641
- function kt(t) {
642
- return S(t) ? t : t.contextElement;
641
+ function $t(t) {
642
+ return _(t) ? t : t.contextElement;
643
643
  }
644
644
  function q(t) {
645
- const e = kt(t);
645
+ const e = $t(t);
646
646
  if (!$(e))
647
647
  return k(1);
648
648
  const o = e.getBoundingClientRect(), {
649
649
  width: n,
650
650
  height: i,
651
651
  $: r
652
- } = Pt(e);
652
+ } = kt(e);
653
653
  let s = (r ? nt(o.width) : o.width) / n, l = (r ? nt(o.height) : o.height) / i;
654
654
  return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
655
655
  x: s,
656
656
  y: l
657
657
  };
658
658
  }
659
- const ae = /* @__PURE__ */ k(0);
660
- function $t(t) {
659
+ const fe = /* @__PURE__ */ k(0);
660
+ function Nt(t) {
661
661
  const e = C(t);
662
- return !xt() || !e.visualViewport ? ae : {
662
+ return !xt() || !e.visualViewport ? fe : {
663
663
  x: e.visualViewport.offsetLeft,
664
664
  y: e.visualViewport.offsetTop
665
665
  };
666
666
  }
667
- function fe(t, e, o) {
667
+ function ue(t, e, o) {
668
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);
672
- const i = t.getBoundingClientRect(), r = kt(t);
672
+ const i = t.getBoundingClientRect(), r = $t(t);
673
673
  let s = k(1);
674
- e && (n ? S(n) && (s = q(n)) : s = q(t));
675
- const l = fe(r, o, n) ? $t(r) : k(0);
674
+ e && (n ? _(n) && (s = q(n)) : s = q(t));
675
+ const l = ue(r, o, n) ? Nt(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 = C(r), d = n && S(n) ? C(n) : n;
678
+ const p = C(r), d = n && _(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 = D(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, v = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
681
+ const h = q(g), w = g.getBoundingClientRect(), x = T(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, v = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
682
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
  }
@@ -691,7 +691,7 @@ function tt(t, e, o, n) {
691
691
  }
692
692
  function yt(t, e) {
693
693
  const o = lt(t).scrollLeft;
694
- return e ? e.left + o : tt(N(t)).left + o;
694
+ return e ? e.left + o : tt(M(t)).left + o;
695
695
  }
696
696
  function Wt(t, e, o) {
697
697
  o === void 0 && (o = !1);
@@ -704,14 +704,14 @@ function Wt(t, e, o) {
704
704
  y: r
705
705
  };
706
706
  }
707
- function ue(t) {
707
+ function de(t) {
708
708
  let {
709
709
  elements: e,
710
710
  rect: o,
711
711
  offsetParent: n,
712
712
  strategy: i
713
713
  } = t;
714
- const r = i === "fixed", s = N(n), l = e ? rt(e.floating) : !1;
714
+ const r = i === "fixed", s = M(n), l = e ? rt(e.floating) : !1;
715
715
  if (n === s || l && r)
716
716
  return o;
717
717
  let c = {
@@ -731,22 +731,22 @@ function ue(t) {
731
731
  y: o.y * a.y - c.scrollTop * a.y + f.y + p.y
732
732
  };
733
733
  }
734
- function de(t) {
734
+ function me(t) {
735
735
  return Array.from(t.getClientRects());
736
736
  }
737
- function me(t) {
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);
737
+ function pe(t) {
738
+ const e = M(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 D(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
741
+ return T(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
742
742
  width: i,
743
743
  height: r,
744
744
  x: s,
745
745
  y: l
746
746
  };
747
747
  }
748
- function pe(t, e) {
749
- const o = C(t), n = N(t), i = o.visualViewport;
748
+ function ge(t, e) {
749
+ const o = C(t), n = M(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;
@@ -760,7 +760,7 @@ function pe(t, e) {
760
760
  y: c
761
761
  };
762
762
  }
763
- function ge(t, e) {
763
+ function he(t, e) {
764
764
  const o = tt(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = $(t) ? q(t) : k(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, c = i * r.x, a = n * r.y;
765
765
  return {
766
766
  width: s,
@@ -772,13 +772,13 @@ function ge(t, e) {
772
772
  function _t(t, e, o) {
773
773
  let n;
774
774
  if (e === "viewport")
775
- n = pe(t, o);
775
+ n = ge(t, o);
776
776
  else if (e === "document")
777
- n = me(N(t));
778
- else if (S(e))
779
- n = ge(e, o);
777
+ n = pe(M(t));
778
+ else if (_(e))
779
+ n = he(e, o);
780
780
  else {
781
- const i = $t(t);
781
+ const i = Nt(t);
782
782
  n = {
783
783
  x: e.x - i.x,
784
784
  y: e.y - i.y,
@@ -790,29 +790,29 @@ 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 : D(o).position === "fixed" || Mt(o, e);
793
+ return o === e || !_(o) || G(o) ? !1 : T(o).position === "fixed" || Mt(o, e);
794
794
  }
795
- function he(t, e) {
795
+ function we(t, e) {
796
796
  const o = e.get(t);
797
797
  if (o)
798
798
  return o;
799
- let n = Lt(t, []).filter((l) => S(l) && X(l) !== "body"), i = null;
800
- const r = D(t).position === "fixed";
799
+ let n = Pt(t, []).filter((l) => _(l) && X(l) !== "body"), i = null;
800
+ const r = T(t).position === "fixed";
801
801
  let s = r ? I(t) : t;
802
- for (; S(s) && !G(s); ) {
803
- const l = D(s), c = wt(s);
802
+ for (; _(s) && !G(s); ) {
803
+ const l = T(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;
807
807
  }
808
- function we(t) {
808
+ function xe(t) {
809
809
  let {
810
810
  element: e,
811
811
  boundary: o,
812
812
  rootBoundary: n,
813
813
  strategy: i
814
814
  } = t;
815
- const s = [...o === "clippingAncestors" ? rt(e) ? [] : he(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
815
+ const s = [...o === "clippingAncestors" ? rt(e) ? [] : we(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
816
816
  const u = _t(e, f, i);
817
817
  return a.top = O(u.top, a.top), a.right = Y(u.right, a.right), a.bottom = Y(u.bottom, a.bottom), a.left = O(u.left, a.left), a;
818
818
  }, _t(e, l, i));
@@ -823,18 +823,18 @@ function we(t) {
823
823
  y: c.top
824
824
  };
825
825
  }
826
- function xe(t) {
826
+ function ye(t) {
827
827
  const {
828
828
  width: e,
829
829
  height: o
830
- } = Pt(t);
830
+ } = kt(t);
831
831
  return {
832
832
  width: e,
833
833
  height: o
834
834
  };
835
835
  }
836
- function ye(t, e, o) {
837
- const n = $(e), i = N(e), r = o === "fixed", s = tt(t, !0, r, e);
836
+ function be(t, e, o) {
837
+ const n = $(e), i = M(e), r = o === "fixed", s = tt(t, !0, r, e);
838
838
  let l = {
839
839
  scrollLeft: 0,
840
840
  scrollTop: 0
@@ -854,38 +854,38 @@ function ye(t, e, o) {
854
854
  };
855
855
  }
856
856
  function ct(t) {
857
- return D(t).position === "static";
857
+ return T(t).position === "static";
858
858
  }
859
- function St(t, e) {
860
- if (!$(t) || D(t).position === "fixed")
859
+ function Tt(t, e) {
860
+ if (!$(t) || T(t).position === "fixed")
861
861
  return null;
862
862
  if (e)
863
863
  return e(t);
864
864
  let o = t.offsetParent;
865
- return N(t) === o && (o = o.ownerDocument.body), o;
865
+ return M(t) === o && (o = o.ownerDocument.body), o;
866
866
  }
867
- function Nt(t, e) {
867
+ function Vt(t, e) {
868
868
  const o = C(t);
869
869
  if (rt(t))
870
870
  return o;
871
871
  if (!$(t)) {
872
872
  let i = I(t);
873
873
  for (; i && !G(i); ) {
874
- if (S(i) && !ct(i))
874
+ if (_(i) && !ct(i))
875
875
  return i;
876
876
  i = I(i);
877
877
  }
878
878
  return o;
879
879
  }
880
- let n = St(t, e);
881
- for (; n && le(n) && ct(n); )
882
- n = St(n, e);
883
- return n && G(n) && ct(n) && !wt(n) ? o : n || ce(t) || o;
880
+ let n = Tt(t, e);
881
+ for (; n && ce(n) && ct(n); )
882
+ n = Tt(n, e);
883
+ return n && G(n) && ct(n) && !wt(n) ? o : n || ae(t) || o;
884
884
  }
885
- const be = async function(t) {
886
- const e = this.getOffsetParent || Nt, o = this.getDimensions, n = await o(t.floating);
885
+ const ve = async function(t) {
886
+ const e = this.getOffsetParent || Vt, o = this.getDimensions, n = await o(t.floating);
887
887
  return {
888
- reference: ye(t.reference, await e(t.floating), t.strategy),
888
+ reference: be(t.reference, await e(t.floating), t.strategy),
889
889
  floating: {
890
890
  x: 0,
891
891
  y: 0,
@@ -894,63 +894,63 @@ const be = async function(t) {
894
894
  }
895
895
  };
896
896
  };
897
- function ve(t) {
898
- return D(t).direction === "rtl";
899
- }
900
- const Ae = {
901
- convertOffsetParentRelativeRectToViewportRelativeRect: ue,
902
- getDocumentElement: N,
903
- getClippingRect: we,
904
- getOffsetParent: Nt,
905
- getElementRects: be,
906
- getClientRects: de,
907
- getDimensions: xe,
897
+ function Ae(t) {
898
+ return T(t).direction === "rtl";
899
+ }
900
+ const Re = {
901
+ convertOffsetParentRelativeRectToViewportRelativeRect: de,
902
+ getDocumentElement: M,
903
+ getClippingRect: xe,
904
+ getOffsetParent: Vt,
905
+ getElementRects: ve,
906
+ getClientRects: me,
907
+ getDimensions: ye,
908
908
  getScale: q,
909
- isElement: S,
910
- isRTL: ve
911
- }, Re = ie, Ce = se, Oe = ne, _e = re, Se = ee, De = (t, e, o) => {
909
+ isElement: _,
910
+ isRTL: Ae
911
+ }, Ce = se, Oe = re, Se = oe, _e = le, Te = ne, De = (t, e, o) => {
912
912
  const n = /* @__PURE__ */ new Map(), i = {
913
- platform: Ae,
913
+ platform: Re,
914
914
  ...o
915
915
  }, r = {
916
916
  ...i.platform,
917
917
  _c: n
918
918
  };
919
- return te(t, e, {
919
+ return ee(t, e, {
920
920
  ...i,
921
921
  platform: r
922
922
  });
923
923
  };
924
- function Te(t) {
924
+ function Ee(t) {
925
925
  return t != null && typeof t == "object" && "$el" in t;
926
926
  }
927
- function Ee(t) {
928
- if (Te(t)) {
927
+ function Le(t) {
928
+ if (Ee(t)) {
929
929
  const e = t.$el;
930
930
  return ht(e) && X(e) === "#comment" ? null : e;
931
931
  }
932
932
  return t;
933
933
  }
934
- function Le(t) {
934
+ function Pe(t) {
935
935
  return typeof t == "function" ? t() : at(t);
936
936
  }
937
- function Pe(t) {
937
+ function ke(t) {
938
938
  return {
939
939
  name: "arrow",
940
940
  options: t,
941
941
  fn(e) {
942
- const o = Ee(Le(t.element));
943
- return o == null ? {} : Se({
942
+ const o = Le(Pe(t.element));
943
+ return o == null ? {} : Te({
944
944
  element: o,
945
945
  padding: t.padding
946
946
  }).fn(e);
947
947
  }
948
948
  };
949
949
  }
950
- const ke = { class: "rds-e-tooltip" }, $e = {
950
+ const $e = { class: "rds-e-tooltip" }, Ne = {
951
951
  key: 0,
952
952
  class: "rds-e-tooltip__header"
953
- }, We = { class: "rds-e-tooltip__title" }, Me = { class: "rds-e-tooltip__content" }, Ne = /* @__PURE__ */ Vt({
953
+ }, We = { class: "rds-e-tooltip__title" }, Me = { class: "rds-e-tooltip__content" }, Ve = /* @__PURE__ */ Ft({
954
954
  __name: "tooltip",
955
955
  props: {
956
956
  /**
@@ -997,26 +997,26 @@ const ke = { class: "rds-e-tooltip" }, $e = {
997
997
  }
998
998
  },
999
999
  setup(t) {
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 () => {
1000
+ const e = t, { large: o, fullWidth: n, title: i } = Ht(e), r = U(), s = U(), l = U(), c = U(!0), a = U(""), f = async () => {
1001
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
- Re(e.offsetSpace),
1007
+ Ce(e.offsetSpace),
1008
+ Se(),
1008
1009
  Oe(),
1009
- Ce(),
1010
1010
  _e({
1011
- apply({ availableHeight: b, availableWidth: T, elements: R }) {
1011
+ apply({ availableHeight: b, availableWidth: D, elements: R }) {
1012
1012
  Object.assign(R.floating.style, {
1013
- maxWidth: n.value ? `${Math.max(0, T)}px` : "380px",
1013
+ maxWidth: n.value ? `${Math.max(0, D)}px` : "380px",
1014
1014
  width: "max-content",
1015
1015
  maxHeight: `${Math.max(0, b)}px`
1016
1016
  });
1017
1017
  }
1018
1018
  }),
1019
- Pe({
1019
+ ke({
1020
1020
  element: l.value,
1021
1021
  padding: o.value ? 16 : 8
1022
1022
  })
@@ -1044,8 +1044,8 @@ const ke = { class: "rds-e-tooltip" }, $e = {
1044
1044
  i != null && i.value || (c.value = !0);
1045
1045
  }, p = () => {
1046
1046
  c.value = !1, f();
1047
- }, d = Ht(() => `rds-e-tooltip__tooltip ${c.value ? "rds-e-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-e-tooltip__tooltip--large " : ""}`);
1048
- return (m, g) => (bt(), vt("div", ke, [
1047
+ }, d = jt(() => `rds-e-tooltip__tooltip ${c.value ? "rds-e-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-e-tooltip__tooltip--large " : ""}`);
1048
+ return (m, g) => (bt(), vt("div", $e, [
1049
1049
  Z("div", {
1050
1050
  ref_key: "referenceRef",
1051
1051
  ref: r,
@@ -1055,32 +1055,36 @@ const ke = { class: "rds-e-tooltip" }, $e = {
1055
1055
  onMouseenter: p,
1056
1056
  onMouseleave: u
1057
1057
  }, [
1058
- jt(m.$slots, "default", {}, void 0, !0)
1058
+ At(m.$slots, "default", {}, void 0, !0)
1059
1059
  ], 544),
1060
1060
  Z("div", {
1061
1061
  ref_key: "floatingRef",
1062
1062
  ref: s,
1063
- class: At(d.value)
1063
+ class: Rt(d.value)
1064
1064
  }, [
1065
- at(i) ? (bt(), vt("div", $e, [
1066
- Z("h3", We, Rt(at(i)), 1),
1067
- It(zt, {
1065
+ at(i) ? (bt(), vt("div", Ne, [
1066
+ Z("h3", We, Ct(at(i)), 1),
1067
+ It(Xt, {
1068
1068
  name: "close",
1069
1069
  "aria-hidden": "true",
1070
1070
  class: "rds-e-tooltip__icon",
1071
1071
  onClick: g[0] || (g[0] = (h) => c.value = !c.value)
1072
1072
  })
1073
1073
  ])) : Yt("", !0),
1074
- Z("div", Me, Rt(t.content), 1),
1074
+ Z("div", Me, [
1075
+ At(m.$slots, "tooltip-content", {}, () => [
1076
+ zt(Ct(t.content), 1)
1077
+ ], !0)
1078
+ ]),
1075
1079
  Z("div", {
1076
1080
  ref_key: "arrowRef",
1077
1081
  ref: l,
1078
- class: At(["rds-e-tooltip__tooltip-arrow", a.value])
1082
+ class: Rt(["rds-e-tooltip__tooltip-arrow", a.value])
1079
1083
  }, null, 2)
1080
1084
  ], 2)
1081
1085
  ]));
1082
1086
  }
1083
- }), He = /* @__PURE__ */ Xt(Ne, [["__scopeId", "data-v-064513ce"]]);
1087
+ }), je = /* @__PURE__ */ Kt(Ve, [["__scopeId", "data-v-b36c3878"]]);
1084
1088
  export {
1085
- He as default
1089
+ je as default
1086
1090
  };