@covalent/components 8.5.0 → 8.5.2
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/nav-list-item.js +3 -3
- package/nav-list-item.mjs +8 -8
- package/package.json +1 -1
- package/style.css +1 -1
- package/theme/dark-theme.css +1 -0
- package/theme/dark-theme.css.map +1 -0
- package/theme/light-theme.css +1 -0
- package/theme/light-theme.css.map +1 -0
- package/tooltip.js +2 -2
- package/tooltip.mjs +69 -69
package/tooltip.mjs
CHANGED
@@ -70,7 +70,7 @@ var U;
|
|
70
70
|
(function(i) {
|
71
71
|
i[i.BOUNDED = 0] = "BOUNDED", i[i.UNBOUNDED = 1] = "UNBOUNDED";
|
72
72
|
})(U || (U = {}));
|
73
|
-
var
|
73
|
+
var c = {
|
74
74
|
LEFT: "left",
|
75
75
|
RIGHT: "right",
|
76
76
|
CENTER: "center",
|
@@ -124,11 +124,11 @@ var J = {
|
|
124
124
|
standard: "transition"
|
125
125
|
}
|
126
126
|
};
|
127
|
-
function
|
127
|
+
function ct(i) {
|
128
128
|
return !!i.document && typeof i.document.createElement == "function";
|
129
129
|
}
|
130
130
|
function Q(i, o) {
|
131
|
-
if (
|
131
|
+
if (ct(i) && o in J) {
|
132
132
|
var t = i.document.createElement("div"), r = J[o], e = r.standard, n = r.prefixed, a = e in t.style;
|
133
133
|
return a ? e : n;
|
134
134
|
}
|
@@ -156,7 +156,7 @@ function Q(i, o) {
|
|
156
156
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
157
157
|
* THE SOFTWARE.
|
158
158
|
*/
|
159
|
-
var
|
159
|
+
var ht = S.RICH, G = S.SHOWN, z = S.SHOWING, V = S.SHOWING_TRANSITION, M = S.HIDE, k = S.HIDE_TRANSITION, pt = S.MULTILINE_TOOLTIP, K;
|
160
160
|
(function(i) {
|
161
161
|
i.POLL_ANCHOR = "poll_anchor";
|
162
162
|
})(K || (K = {}));
|
@@ -278,7 +278,7 @@ var Z = typeof window < "u", ut = (
|
|
278
278
|
enumerable: !1,
|
279
279
|
configurable: !0
|
280
280
|
}), o.prototype.init = function() {
|
281
|
-
this.richTooltip = this.adapter.hasClass(
|
281
|
+
this.richTooltip = this.adapter.hasClass(ht), this.persistentTooltip = this.adapter.getAttribute(W.PERSISTENT) === "true", this.interactiveTooltip = !!this.adapter.getAnchorAttribute(W.ARIA_EXPANDED) && this.adapter.getAnchorAttribute(W.ARIA_HASPOPUP) === "dialog", this.hasCaret = this.richTooltip && this.adapter.getAttribute(W.HAS_CARET) === "true";
|
282
282
|
}, o.prototype.isShown = function() {
|
283
283
|
return this.tooltipShown;
|
284
284
|
}, o.prototype.isRich = function() {
|
@@ -351,8 +351,8 @@ var Z = typeof window < "u", ut = (
|
|
351
351
|
var d = a.value;
|
352
352
|
d();
|
353
353
|
}
|
354
|
-
} catch (
|
355
|
-
t = { error:
|
354
|
+
} catch (h) {
|
355
|
+
t = { error: h };
|
356
356
|
} finally {
|
357
357
|
try {
|
358
358
|
a && !a.done && (r = n.return) && r.call(n);
|
@@ -412,7 +412,7 @@ var Z = typeof window < "u", ut = (
|
|
412
412
|
}, o.prototype.positionRichTooltip = function() {
|
413
413
|
var t, r, e, n;
|
414
414
|
this.adapter.setStyleProperty("width", ""), this.adapter.setStyleProperty("left", "-" + _.RICH_MAX_WIDTH + "px");
|
415
|
-
var a = Number(this.adapter.getComputedStyleProperty("width").slice(0, -2)), d = isFinite(a) ? a : _.RICH_MAX_WIDTH,
|
415
|
+
var a = Number(this.adapter.getComputedStyleProperty("width").slice(0, -2)), d = isFinite(a) ? a : _.RICH_MAX_WIDTH, h = Math.max(this.adapter.getViewportWidth() - 2 * _.MIN_VIEWPORT_TOOLTIP_THRESHOLD, _.MIN_WIDTH), s = Math.min(h, d);
|
416
416
|
this.adapter.setStyleProperty("width", s + "px");
|
417
417
|
var l = this.hasCaret ? this.calculateTooltipWithCaretStyles(this.anchorRect) : this.calculateTooltipStyles(this.anchorRect), T = l.top, y = l.yTransformOrigin, v = l.left, f = l.xTransformOrigin, E = Z ? Q(window, "transform") : "transform";
|
418
418
|
this.adapter.setSurfaceAnimationStyleProperty(E + "-origin", f + " " + y);
|
@@ -429,32 +429,32 @@ var Z = typeof window < "u", ut = (
|
|
429
429
|
xTransformOrigin: n.xTransformOrigin
|
430
430
|
};
|
431
431
|
}, o.prototype.calculateXTooltipDistance = function(t, r) {
|
432
|
-
var e = !this.adapter.isRTL(), n, a, d,
|
432
|
+
var e = !this.adapter.isRTL(), n, a, d, h, s, l, T;
|
433
433
|
if (this.richTooltip)
|
434
|
-
n = e ? t.left - r : t.right, a = e ? t.right : t.left - r, l = e ?
|
434
|
+
n = e ? t.left - r : t.right, a = e ? t.right : t.left - r, l = e ? c.RIGHT : c.LEFT, T = e ? c.LEFT : c.RIGHT;
|
435
435
|
else {
|
436
436
|
n = e ? t.left : t.right - r, a = e ? t.right - r : t.left, d = t.left + (t.width - r) / 2;
|
437
437
|
var y = t.left - (r + this.anchorGap), v = t.right + this.anchorGap;
|
438
|
-
|
438
|
+
h = e ? y : v, s = e ? v : y, l = e ? c.LEFT : c.RIGHT, T = e ? c.RIGHT : c.LEFT;
|
439
439
|
}
|
440
440
|
var f = [n, d, a];
|
441
|
-
this.xTooltipPos === D.SIDE_START ? f.push(
|
441
|
+
this.xTooltipPos === D.SIDE_START ? f.push(h) : this.xTooltipPos === D.SIDE_END && f.push(s);
|
442
442
|
var E = this.richTooltip ? this.determineValidPositionOptions(n, a) : this.determineValidPositionOptions.apply(this, $([], q(f)));
|
443
443
|
if (this.xTooltipPos === D.START && E.has(n))
|
444
444
|
return { distance: n, xTransformOrigin: l };
|
445
445
|
if (this.xTooltipPos === D.END && E.has(a))
|
446
446
|
return { distance: a, xTransformOrigin: T };
|
447
447
|
if (this.xTooltipPos === D.CENTER && E.has(d))
|
448
|
-
return { distance: d, xTransformOrigin:
|
449
|
-
if (this.xTooltipPos === D.SIDE_START && E.has(
|
450
|
-
return { distance:
|
448
|
+
return { distance: d, xTransformOrigin: c.CENTER };
|
449
|
+
if (this.xTooltipPos === D.SIDE_START && E.has(h))
|
450
|
+
return { distance: h, xTransformOrigin: T };
|
451
451
|
if (this.xTooltipPos === D.SIDE_END && E.has(s))
|
452
452
|
return { distance: s, xTransformOrigin: l };
|
453
453
|
var g = this.richTooltip ? [
|
454
454
|
{ distance: a, xTransformOrigin: T },
|
455
455
|
{ distance: n, xTransformOrigin: l }
|
456
456
|
] : [
|
457
|
-
{ distance: d, xTransformOrigin:
|
457
|
+
{ distance: d, xTransformOrigin: c.CENTER },
|
458
458
|
{ distance: n, xTransformOrigin: l },
|
459
459
|
{ distance: a, xTransformOrigin: T }
|
460
460
|
], m = g.find(function(H) {
|
@@ -466,16 +466,16 @@ var Z = typeof window < "u", ut = (
|
|
466
466
|
if (t.left < 0)
|
467
467
|
return {
|
468
468
|
distance: this.minViewportTooltipThreshold,
|
469
|
-
xTransformOrigin:
|
469
|
+
xTransformOrigin: c.LEFT
|
470
470
|
};
|
471
471
|
var w = this.adapter.getViewportWidth(), I = w - (r + this.minViewportTooltipThreshold);
|
472
|
-
return { distance: I, xTransformOrigin:
|
472
|
+
return { distance: I, xTransformOrigin: c.RIGHT };
|
473
473
|
}, o.prototype.determineValidPositionOptions = function() {
|
474
474
|
for (var t, r, e = [], n = 0; n < arguments.length; n++)
|
475
475
|
e[n] = arguments[n];
|
476
476
|
var a = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
477
477
|
try {
|
478
|
-
for (var
|
478
|
+
for (var h = x(e), s = h.next(); !s.done; s = h.next()) {
|
479
479
|
var l = s.value;
|
480
480
|
this.positionHonorsViewportThreshold(l) ? a.add(l) : this.positionDoesntCollideWithViewport(l) && d.add(l);
|
481
481
|
}
|
@@ -483,7 +483,7 @@ var Z = typeof window < "u", ut = (
|
|
483
483
|
t = { error: T };
|
484
484
|
} finally {
|
485
485
|
try {
|
486
|
-
s && !s.done && (r =
|
486
|
+
s && !s.done && (r = h.return) && r.call(h);
|
487
487
|
} finally {
|
488
488
|
if (t)
|
489
489
|
throw t.error;
|
@@ -497,16 +497,16 @@ var Z = typeof window < "u", ut = (
|
|
497
497
|
var r = this.adapter.getViewportWidth(), e = this.adapter.getTooltipSize().width;
|
498
498
|
return t + e <= r && t >= 0;
|
499
499
|
}, o.prototype.calculateYTooltipDistance = function(t, r) {
|
500
|
-
var e = t.bottom + this.anchorGap, n = t.top - (this.anchorGap + r), a = t.top + t.height / 2, d = a - r / 2,
|
501
|
-
this.yTooltipPos === N.SIDE &&
|
502
|
-
var s = this.determineValidYPositionOptions.apply(this, $([], q(
|
503
|
-
return this.yTooltipPos === N.ABOVE && s.has(n) ? { distance: n, yTransformOrigin:
|
500
|
+
var e = t.bottom + this.anchorGap, n = t.top - (this.anchorGap + r), a = t.top + t.height / 2, d = a - r / 2, h = [n, e];
|
501
|
+
this.yTooltipPos === N.SIDE && h.push(d);
|
502
|
+
var s = this.determineValidYPositionOptions.apply(this, $([], q(h)));
|
503
|
+
return this.yTooltipPos === N.ABOVE && s.has(n) ? { distance: n, yTransformOrigin: c.BOTTOM } : this.yTooltipPos === N.BELOW && s.has(e) ? { distance: e, yTransformOrigin: c.TOP } : this.yTooltipPos === N.SIDE && s.has(d) ? { distance: d, yTransformOrigin: c.CENTER } : s.has(e) ? { distance: e, yTransformOrigin: c.TOP } : s.has(n) ? { distance: n, yTransformOrigin: c.BOTTOM } : { distance: e, yTransformOrigin: c.TOP };
|
504
504
|
}, o.prototype.determineValidYPositionOptions = function() {
|
505
505
|
for (var t, r, e = [], n = 0; n < arguments.length; n++)
|
506
506
|
e[n] = arguments[n];
|
507
507
|
var a = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
508
508
|
try {
|
509
|
-
for (var
|
509
|
+
for (var h = x(e), s = h.next(); !s.done; s = h.next()) {
|
510
510
|
var l = s.value;
|
511
511
|
this.yPositionHonorsViewportThreshold(l) ? a.add(l) : this.yPositionDoesntCollideWithViewport(l) && d.add(l);
|
512
512
|
}
|
@@ -514,7 +514,7 @@ var Z = typeof window < "u", ut = (
|
|
514
514
|
t = { error: T };
|
515
515
|
} finally {
|
516
516
|
try {
|
517
|
-
s && !s.done && (r =
|
517
|
+
s && !s.done && (r = h.return) && r.call(h);
|
518
518
|
} finally {
|
519
519
|
if (t)
|
520
520
|
throw t.error;
|
@@ -532,7 +532,7 @@ var Z = typeof window < "u", ut = (
|
|
532
532
|
var r = this.adapter.getTooltipCaretBoundingRect();
|
533
533
|
if (!t || !r)
|
534
534
|
return { position: p.DETECTED, top: 0, left: 0 };
|
535
|
-
var e = r.width / _.ANIMATION_SCALE, n = r.height / _.ANIMATION_SCALE / 2, a = this.adapter.getTooltipSize(), d = this.calculateYWithCaretDistanceOptions(t, a.height, { caretWidth: e, caretHeight: n }),
|
535
|
+
var e = r.width / _.ANIMATION_SCALE, n = r.height / _.ANIMATION_SCALE / 2, a = this.adapter.getTooltipSize(), d = this.calculateYWithCaretDistanceOptions(t, a.height, { caretWidth: e, caretHeight: n }), h = this.calculateXWithCaretDistanceOptions(t, a.width, { caretWidth: e, caretHeight: n }), s = this.validateTooltipWithCaretDistances(d, h);
|
536
536
|
s.size < 1 && (s = this.generateBackupPositionOption(t, a, { caretWidth: e, caretHeight: n }));
|
537
537
|
var l = this.determineTooltipWithCaretDistance(s), T = l.position, y = l.xDistance, v = l.yDistance, f = this.setCaretPositionStyles(T, { caretWidth: e, caretHeight: n }), E = f.yTransformOrigin, g = f.xTransformOrigin;
|
538
538
|
return {
|
@@ -542,7 +542,7 @@ var Z = typeof window < "u", ut = (
|
|
542
542
|
left: y
|
543
543
|
};
|
544
544
|
}, o.prototype.calculateXWithCaretDistanceOptions = function(t, r, e) {
|
545
|
-
var n = e.caretWidth, a = e.caretHeight, d = !this.adapter.isRTL(),
|
545
|
+
var n = e.caretWidth, a = e.caretHeight, d = !this.adapter.isRTL(), h = t.left + t.width / 2, s = t.left - (r + this.anchorGap + a), l = t.right + this.anchorGap + a, T = d ? s : l, y = d ? l : s, v = h - (_.CARET_INDENTATION + n / 2), f = h - (r - _.CARET_INDENTATION - n / 2), E = d ? v : f, g = d ? f : v, m = h - r / 2, w = /* @__PURE__ */ new Map([
|
546
546
|
[u.START, E],
|
547
547
|
[u.CENTER, m],
|
548
548
|
[u.END, g],
|
@@ -551,9 +551,9 @@ var Z = typeof window < "u", ut = (
|
|
551
551
|
]);
|
552
552
|
return w;
|
553
553
|
}, o.prototype.calculateYWithCaretDistanceOptions = function(t, r, e) {
|
554
|
-
var n = e.caretWidth, a = e.caretHeight, d = t.top + t.height / 2,
|
554
|
+
var n = e.caretWidth, a = e.caretHeight, d = t.top + t.height / 2, h = t.bottom + this.anchorGap + a, s = t.top - (this.anchorGap + r + a), l = d - (_.CARET_INDENTATION + n / 2), T = d - r / 2, y = d - (r - _.CARET_INDENTATION - n / 2), v = /* @__PURE__ */ new Map([
|
555
555
|
[O.ABOVE, s],
|
556
|
-
[O.BELOW,
|
556
|
+
[O.BELOW, h],
|
557
557
|
[O.SIDE_TOP, l],
|
558
558
|
[O.SIDE_CENTER, T],
|
559
559
|
[O.SIDE_BOTTOM, y]
|
@@ -566,7 +566,7 @@ var Z = typeof window < "u", ut = (
|
|
566
566
|
t.top + t.height < 0 || t.bottom - t.height >= r || (t.top !== this.anchorRect.top || t.left !== this.anchorRect.left || t.height !== this.anchorRect.height || t.width !== this.anchorRect.width) && (this.anchorRect = t, this.parentRect = this.adapter.getParentBoundingRect(), this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip());
|
567
567
|
}
|
568
568
|
}, o.prototype.validateTooltipWithCaretDistances = function(t, r) {
|
569
|
-
var e, n, a, d,
|
569
|
+
var e, n, a, d, h, s, l = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map([
|
570
570
|
[
|
571
571
|
O.ABOVE,
|
572
572
|
[
|
@@ -620,7 +620,7 @@ var Z = typeof window < "u", ut = (
|
|
620
620
|
}
|
621
621
|
if (this.yPositionDoesntCollideWithViewport(g))
|
622
622
|
try {
|
623
|
-
for (var B = (
|
623
|
+
for (var B = (h = void 0, x(y.get(E))), L = B.next(); !L.done; L = B.next()) {
|
624
624
|
var I = L.value, H = r.get(I);
|
625
625
|
if (this.positionDoesntCollideWithViewport(H)) {
|
626
626
|
var b = this.caretPositionOptionsMapping(I, E);
|
@@ -628,13 +628,13 @@ var Z = typeof window < "u", ut = (
|
|
628
628
|
}
|
629
629
|
}
|
630
630
|
} catch (P) {
|
631
|
-
|
631
|
+
h = { error: P };
|
632
632
|
} finally {
|
633
633
|
try {
|
634
634
|
L && !L.done && (s = B.return) && s.call(B);
|
635
635
|
} finally {
|
636
|
-
if (
|
637
|
-
throw
|
636
|
+
if (h)
|
637
|
+
throw h.error;
|
638
638
|
}
|
639
639
|
}
|
640
640
|
}
|
@@ -654,8 +654,8 @@ var Z = typeof window < "u", ut = (
|
|
654
654
|
if (t.left < 0)
|
655
655
|
a = this.minViewportTooltipThreshold + e.caretHeight, d = n ? u.END : u.START;
|
656
656
|
else {
|
657
|
-
var
|
658
|
-
a =
|
657
|
+
var h = this.adapter.getViewportWidth();
|
658
|
+
a = h - (r.width + this.minViewportTooltipThreshold + e.caretHeight), d = n ? u.START : u.END;
|
659
659
|
}
|
660
660
|
var s, l;
|
661
661
|
if (t.top < 0)
|
@@ -739,8 +739,8 @@ var Z = typeof window < "u", ut = (
|
|
739
739
|
if (!a)
|
740
740
|
return { yTransformOrigin: 0, xTransformOrigin: 0 };
|
741
741
|
this.adapter.clearTooltipCaretStyles(), this.adapter.setTooltipCaretStyle(a.yAlignment, a.yAxisPx), this.adapter.setTooltipCaretStyle(a.xAlignment, a.xAxisPx);
|
742
|
-
var d = a.skew * (Math.PI / 180),
|
743
|
-
this.adapter.setTooltipCaretStyle("transform", "rotate(" + a.rotation + "deg) skewY(" + a.skew + "deg) scaleX(" +
|
742
|
+
var d = a.skew * (Math.PI / 180), h = Math.cos(d);
|
743
|
+
this.adapter.setTooltipCaretStyle("transform", "rotate(" + a.rotation + "deg) skewY(" + a.skew + "deg) scaleX(" + h + ")"), this.adapter.setTooltipCaretStyle("transform-origin", a.xAlignment + " " + a.yAlignment);
|
744
744
|
try {
|
745
745
|
for (var s = x(a.caretCorners), l = s.next(); !l.done; l = s.next()) {
|
746
746
|
var T = l.value;
|
@@ -763,12 +763,12 @@ var Z = typeof window < "u", ut = (
|
|
763
763
|
}, o.prototype.calculateCaretPositionOnTooltip = function(t, r) {
|
764
764
|
var e = !this.adapter.isRTL(), n = this.adapter.getComputedStyleProperty("width"), a = this.adapter.getComputedStyleProperty("height");
|
765
765
|
if (!(!n || !a || !r)) {
|
766
|
-
var d = "calc((" + n + " - " + r.caretWidth + "px) / 2)",
|
766
|
+
var d = "calc((" + n + " - " + r.caretWidth + "px) / 2)", h = "calc((" + a + " - " + r.caretWidth + "px) / 2)", s = "0", l = _.CARET_INDENTATION + "px", T = "calc(" + n + " - " + l + ")", y = "calc(" + a + " - " + l + ")", v = 35, f = Math.abs(90 - v), E = ["border-bottom-right-radius", "border-top-left-radius"], g = ["border-bottom-left-radius", "border-top-right-radius"], m = 20;
|
767
767
|
switch (t) {
|
768
768
|
case p.BELOW_CENTER:
|
769
769
|
return {
|
770
|
-
yAlignment:
|
771
|
-
xAlignment:
|
770
|
+
yAlignment: c.TOP,
|
771
|
+
xAlignment: c.LEFT,
|
772
772
|
yAxisPx: s,
|
773
773
|
xAxisPx: d,
|
774
774
|
rotation: -1 * v,
|
@@ -779,8 +779,8 @@ var Z = typeof window < "u", ut = (
|
|
779
779
|
};
|
780
780
|
case p.BELOW_END:
|
781
781
|
return {
|
782
|
-
yAlignment:
|
783
|
-
xAlignment: e ?
|
782
|
+
yAlignment: c.TOP,
|
783
|
+
xAlignment: e ? c.RIGHT : c.LEFT,
|
784
784
|
yAxisPx: s,
|
785
785
|
xAxisPx: l,
|
786
786
|
rotation: e ? v : -1 * v,
|
@@ -791,8 +791,8 @@ var Z = typeof window < "u", ut = (
|
|
791
791
|
};
|
792
792
|
case p.BELOW_START:
|
793
793
|
return {
|
794
|
-
yAlignment:
|
795
|
-
xAlignment: e ?
|
794
|
+
yAlignment: c.TOP,
|
795
|
+
xAlignment: e ? c.LEFT : c.RIGHT,
|
796
796
|
yAxisPx: s,
|
797
797
|
xAxisPx: l,
|
798
798
|
rotation: e ? -1 * v : v,
|
@@ -803,8 +803,8 @@ var Z = typeof window < "u", ut = (
|
|
803
803
|
};
|
804
804
|
case p.TOP_SIDE_END:
|
805
805
|
return {
|
806
|
-
yAlignment:
|
807
|
-
xAlignment: e ?
|
806
|
+
yAlignment: c.TOP,
|
807
|
+
xAlignment: e ? c.LEFT : c.RIGHT,
|
808
808
|
yAxisPx: l,
|
809
809
|
xAxisPx: s,
|
810
810
|
rotation: e ? f : -1 * f,
|
@@ -815,20 +815,20 @@ var Z = typeof window < "u", ut = (
|
|
815
815
|
};
|
816
816
|
case p.CENTER_SIDE_END:
|
817
817
|
return {
|
818
|
-
yAlignment:
|
819
|
-
xAlignment: e ?
|
820
|
-
yAxisPx:
|
818
|
+
yAlignment: c.TOP,
|
819
|
+
xAlignment: e ? c.LEFT : c.RIGHT,
|
820
|
+
yAxisPx: h,
|
821
821
|
xAxisPx: s,
|
822
822
|
rotation: e ? f : -1 * f,
|
823
823
|
skew: e ? -1 * m : m,
|
824
824
|
xTransformOrigin: e ? s : n,
|
825
|
-
yTransformOrigin:
|
825
|
+
yTransformOrigin: h,
|
826
826
|
caretCorners: e ? E : g
|
827
827
|
};
|
828
828
|
case p.BOTTOM_SIDE_END:
|
829
829
|
return {
|
830
|
-
yAlignment:
|
831
|
-
xAlignment: e ?
|
830
|
+
yAlignment: c.BOTTOM,
|
831
|
+
xAlignment: e ? c.LEFT : c.RIGHT,
|
832
832
|
yAxisPx: l,
|
833
833
|
xAxisPx: s,
|
834
834
|
rotation: e ? -1 * f : f,
|
@@ -839,8 +839,8 @@ var Z = typeof window < "u", ut = (
|
|
839
839
|
};
|
840
840
|
case p.TOP_SIDE_START:
|
841
841
|
return {
|
842
|
-
yAlignment:
|
843
|
-
xAlignment: e ?
|
842
|
+
yAlignment: c.TOP,
|
843
|
+
xAlignment: e ? c.RIGHT : c.LEFT,
|
844
844
|
yAxisPx: l,
|
845
845
|
xAxisPx: s,
|
846
846
|
rotation: e ? -1 * f : f,
|
@@ -851,20 +851,20 @@ var Z = typeof window < "u", ut = (
|
|
851
851
|
};
|
852
852
|
case p.CENTER_SIDE_START:
|
853
853
|
return {
|
854
|
-
yAlignment:
|
855
|
-
xAlignment: e ?
|
856
|
-
yAxisPx:
|
854
|
+
yAlignment: c.TOP,
|
855
|
+
xAlignment: e ? c.RIGHT : c.LEFT,
|
856
|
+
yAxisPx: h,
|
857
857
|
xAxisPx: s,
|
858
858
|
rotation: e ? -1 * f : f,
|
859
859
|
skew: e ? m : -1 * m,
|
860
860
|
xTransformOrigin: e ? n : s,
|
861
|
-
yTransformOrigin:
|
861
|
+
yTransformOrigin: h,
|
862
862
|
caretCorners: e ? g : E
|
863
863
|
};
|
864
864
|
case p.BOTTOM_SIDE_START:
|
865
865
|
return {
|
866
|
-
yAlignment:
|
867
|
-
xAlignment: e ?
|
866
|
+
yAlignment: c.BOTTOM,
|
867
|
+
xAlignment: e ? c.RIGHT : c.LEFT,
|
868
868
|
yAxisPx: l,
|
869
869
|
xAxisPx: s,
|
870
870
|
rotation: e ? f : -1 * f,
|
@@ -875,8 +875,8 @@ var Z = typeof window < "u", ut = (
|
|
875
875
|
};
|
876
876
|
case p.ABOVE_CENTER:
|
877
877
|
return {
|
878
|
-
yAlignment:
|
879
|
-
xAlignment:
|
878
|
+
yAlignment: c.BOTTOM,
|
879
|
+
xAlignment: c.LEFT,
|
880
880
|
yAxisPx: s,
|
881
881
|
xAxisPx: d,
|
882
882
|
rotation: v,
|
@@ -887,8 +887,8 @@ var Z = typeof window < "u", ut = (
|
|
887
887
|
};
|
888
888
|
case p.ABOVE_END:
|
889
889
|
return {
|
890
|
-
yAlignment:
|
891
|
-
xAlignment: e ?
|
890
|
+
yAlignment: c.BOTTOM,
|
891
|
+
xAlignment: e ? c.RIGHT : c.LEFT,
|
892
892
|
yAxisPx: s,
|
893
893
|
xAxisPx: l,
|
894
894
|
rotation: e ? -1 * v : v,
|
@@ -900,8 +900,8 @@ var Z = typeof window < "u", ut = (
|
|
900
900
|
default:
|
901
901
|
case p.ABOVE_START:
|
902
902
|
return {
|
903
|
-
yAlignment:
|
904
|
-
xAlignment: e ?
|
903
|
+
yAlignment: c.BOTTOM,
|
904
|
+
xAlignment: e ? c.LEFT : c.RIGHT,
|
905
905
|
yAxisPx: s,
|
906
906
|
xAxisPx: l,
|
907
907
|
rotation: e ? v : -1 * v,
|
@@ -948,7 +948,7 @@ var Z = typeof window < "u", ut = (
|
|
948
948
|
}, o;
|
949
949
|
}(dt)
|
950
950
|
);
|
951
|
-
const mt = `.mdc-tooltip__surface,.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-tooltip__surface{color:#fff;color:var(--mdc-theme-text-primary-on-dark, white)}.mdc-tooltip__surface{background-color:#0009}.mdc-tooltip__title{color:#000000de;color:var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, .87))}.mdc-tooltip__content{color:#0009}.mdc-tooltip__content-link{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tooltip__interactive-content{overflow-x:unset;overflow-y:auto}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:#fff}.mdc-tooltip__surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-tooltip--rich .mdc-tooltip__surface{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-radius:4px;line-height:20px}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__surface .mdc-tooltip__title{display:block;margin-top:0;line-height:20px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-subtitle2-font-size, .875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-tooltip__surface .mdc-tooltip__title:before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-tooltip__surface .mdc-tooltip__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity .15s 0ms cubic-bezier(0,0,.2,1),transform .15s 0ms cubic-bezier(0,0,.2,1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface:before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:184px;margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:304px;align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;outline:1px solid transparent;z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-
|
951
|
+
const mt = `.mdc-tooltip__surface,.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-tooltip__surface{color:#fff;color:var(--mdc-theme-text-primary-on-dark, white)}.mdc-tooltip__surface{background-color:#0009}.mdc-tooltip__title{color:#000000de;color:var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, .87))}.mdc-tooltip__content{color:#0009}.mdc-tooltip__content-link{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tooltip__interactive-content{overflow-x:unset;overflow-y:auto}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:#fff}.mdc-tooltip__surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-tooltip--rich .mdc-tooltip__surface{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-radius:4px;line-height:20px}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__surface .mdc-tooltip__title{display:block;margin-top:0;line-height:20px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-subtitle2-font-size, .875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-tooltip__surface .mdc-tooltip__title:before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-tooltip__surface .mdc-tooltip__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity .15s 0ms cubic-bezier(0,0,.2,1),transform .15s 0ms cubic-bezier(0,0,.2,1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface:before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:184px;margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:304px;align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;outline:1px solid transparent;z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:var(--cov-theme-surface-container)}.mdc-tooltip .mdc-tooltip__title,.mdc-tooltip .mdc-tooltip__content{color:var(--cv-theme-on-surface-variant)}.mdc-tooltip .mdc-tooltip__content-link{color:var(--mdc-theme-accent)}
|
952
952
|
`;
|
953
953
|
var Tt = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, R = (i, o, t, r) => {
|
954
954
|
for (var e = r > 1 ? void 0 : r ? ft(o, t) : o, n = i.length - 1, a; n >= 0; n--)
|