@warp-ds/elements 1.0.0-alpha.18 → 1.0.0-alpha.19
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/index.js +76 -83
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var w = (r, o, e) => (ft(r, typeof o != "symbol" ? o + "" : o, e), e), wt = (r,
|
|
|
4
4
|
if (!o.has(r))
|
|
5
5
|
throw TypeError("Cannot " + e);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
7
|
+
var H = (r, o, e) => (wt(r, o, "read from private field"), e ? e.call(r) : o.get(r)), Fo = (r, o, e) => {
|
|
8
8
|
if (o.has(r))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
o instanceof WeakSet ? o.add(r) : o.set(r, e);
|
|
@@ -374,7 +374,7 @@ This is probably caused by illegal octal escape sequences.`), {
|
|
|
374
374
|
_$litType$: r,
|
|
375
375
|
strings: o,
|
|
376
376
|
values: e
|
|
377
|
-
}), h = Be(Ne), K = Be(Do),
|
|
377
|
+
}), h = Be(Ne), K = Be(Do), I = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), pe = /* @__PURE__ */ new WeakMap(), lo = go.createTreeWalker(go, 129, null, !1);
|
|
378
378
|
let ro = er;
|
|
379
379
|
const Ue = (r, o) => {
|
|
380
380
|
const e = r.length - 1, t = [];
|
|
@@ -497,7 +497,7 @@ class zo {
|
|
|
497
497
|
}
|
|
498
498
|
function eo(r, o, e = r, t) {
|
|
499
499
|
var a, c, i, l;
|
|
500
|
-
if (o ===
|
|
500
|
+
if (o === I)
|
|
501
501
|
return o;
|
|
502
502
|
let n = t !== void 0 ? (a = e.__directives) === null || a === void 0 ? void 0 : a[t] : e.__directive;
|
|
503
503
|
const d = yo(o) ? void 0 : o._$litDirective$;
|
|
@@ -571,7 +571,7 @@ class ho {
|
|
|
571
571
|
end: this._$endNode,
|
|
572
572
|
parent: this._$parent,
|
|
573
573
|
options: this.options
|
|
574
|
-
}), this._$clear()), this._$committedValue = k) : o !== this._$committedValue && o !==
|
|
574
|
+
}), this._$clear()), this._$committedValue = k) : o !== this._$committedValue && o !== I && this._commitText(o);
|
|
575
575
|
else if (o._$litType$ !== void 0)
|
|
576
576
|
this._commitTemplateResult(o);
|
|
577
577
|
else if (o.nodeType !== void 0) {
|
|
@@ -699,13 +699,13 @@ class Ro {
|
|
|
699
699
|
const c = this.strings;
|
|
700
700
|
let i = !1;
|
|
701
701
|
if (c === void 0)
|
|
702
|
-
o = eo(this, o, e, 0), i = !yo(o) || o !== this._$committedValue && o !==
|
|
702
|
+
o = eo(this, o, e, 0), i = !yo(o) || o !== this._$committedValue && o !== I, i && (this._$committedValue = o);
|
|
703
703
|
else {
|
|
704
704
|
const l = o;
|
|
705
705
|
o = c[0];
|
|
706
706
|
let n, d;
|
|
707
707
|
for (n = 0; n < c.length - 1; n++)
|
|
708
|
-
d = eo(this, l[t + n], e, n), d ===
|
|
708
|
+
d = eo(this, l[t + n], e, n), d === I && (d = this._$committedValue[n]), i || (i = !yo(d) || d !== this._$committedValue[n]), d === k ? o = k : o !== k && (o += (d != null ? d : "") + c[n + 1]), this._$committedValue[n] = d;
|
|
709
709
|
}
|
|
710
710
|
i && !a && this._commitValue(o);
|
|
711
711
|
}
|
|
@@ -755,7 +755,7 @@ class De extends Ro {
|
|
|
755
755
|
}
|
|
756
756
|
_$setValue(o, e = this) {
|
|
757
757
|
var t;
|
|
758
|
-
if (o = (t = eo(this, o, e, 0)) !== null && t !== void 0 ? t : k, o ===
|
|
758
|
+
if (o = (t = eo(this, o, e, 0)) !== null && t !== void 0 ? t : k, o === I)
|
|
759
759
|
return;
|
|
760
760
|
const a = this._$committedValue, c = o === k && a !== k || o.capture !== a.capture || o.once !== a.once || o.passive !== a.passive, i = o !== k && (a === k || c);
|
|
761
761
|
p == null || p({
|
|
@@ -871,7 +871,7 @@ class $ extends L {
|
|
|
871
871
|
super.disconnectedCallback(), (o = this.__childPart) === null || o === void 0 || o.setConnected(!1);
|
|
872
872
|
}
|
|
873
873
|
render() {
|
|
874
|
-
return
|
|
874
|
+
return I;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
$.finalized = !0;
|
|
@@ -892,7 +892,7 @@ $.finalize = function() {
|
|
|
892
892
|
};
|
|
893
893
|
(($r = globalThis.litElementVersions) !== null && $r !== void 0 ? $r : globalThis.litElementVersions = []).push("3.3.1");
|
|
894
894
|
globalThis.litElementVersions.length > 1 && Qr("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
|
|
895
|
-
const
|
|
895
|
+
const N = {
|
|
896
896
|
base: "border-2 relative",
|
|
897
897
|
tooltip: "i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",
|
|
898
898
|
callout: "i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",
|
|
@@ -905,7 +905,7 @@ const H = {
|
|
|
905
905
|
arrowTooltip: "i-bg-$color-tooltip-background i-border-$color-tooltip-background",
|
|
906
906
|
arrowCallout: "i-bg-$color-callout-background i-border-$color-callout-border",
|
|
907
907
|
arrowPopover: "i-bg-$color-popover-background i-border-$color-popover-background"
|
|
908
|
-
},
|
|
908
|
+
}, Z = {
|
|
909
909
|
box: "group block relative break-words last:mb-0 p-16 rounded-8",
|
|
910
910
|
bleed: "-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",
|
|
911
911
|
info: "i-bg-$color-box-info-background",
|
|
@@ -941,17 +941,17 @@ const H = {
|
|
|
941
941
|
toastIconLoading: "animate-bounce",
|
|
942
942
|
toastContent: "self-center mr-8 py-4 last:mb-0",
|
|
943
943
|
toastClose: "ml-auto p-[8px]"
|
|
944
|
-
}, Nt = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",
|
|
944
|
+
}, Nt = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", B = {
|
|
945
945
|
expandable: "will-change-height",
|
|
946
946
|
expandableTitle: "font-bold i-text-$color-expandable-title-text",
|
|
947
|
-
expandableBox: "i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 " +
|
|
948
|
-
expandableBleed:
|
|
947
|
+
expandableBox: "i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 " + Z.box,
|
|
948
|
+
expandableBleed: Z.bleed,
|
|
949
949
|
chevron: "inline-block align-middle transform transition-transform transition-gpu i-text-$color-expandable-icon",
|
|
950
950
|
chevronNonBox: "relative left-8",
|
|
951
951
|
chevronBox: "absolute right-16",
|
|
952
952
|
chevronExpanded: "-rotate-180",
|
|
953
953
|
button: Nt + " hover:underline focus:underline",
|
|
954
|
-
buttonBox: "w-full text-left relative inline-flex! items-center " +
|
|
954
|
+
buttonBox: "w-full text-left relative inline-flex! items-center " + Z.box
|
|
955
955
|
}, R = {
|
|
956
956
|
buttonSecondary: "py-10 px-14 border-2 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",
|
|
957
957
|
buttonPrimary: "py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover! active:i-bg-$color-button-primary-background-active",
|
|
@@ -2262,7 +2262,7 @@ class Jt extends ee {
|
|
|
2262
2262
|
const l = !!e[i];
|
|
2263
2263
|
l !== this._previousClasses.has(i) && !(!((a = this._staticClasses) === null || a === void 0) && a.has(i)) && (l ? (c.add(i), this._previousClasses.add(i)) : (c.remove(i), this._previousClasses.delete(i)));
|
|
2264
2264
|
}
|
|
2265
|
-
return
|
|
2265
|
+
return I;
|
|
2266
2266
|
}
|
|
2267
2267
|
}
|
|
2268
2268
|
const Ke = re(Jt), Qt = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
@@ -4553,7 +4553,7 @@ class te extends ee {
|
|
|
4553
4553
|
render(o) {
|
|
4554
4554
|
if (o === k || o == null)
|
|
4555
4555
|
return this._templateResult = void 0, this._value = o;
|
|
4556
|
-
if (o ===
|
|
4556
|
+
if (o === I)
|
|
4557
4557
|
return o;
|
|
4558
4558
|
if (typeof o != "string")
|
|
4559
4559
|
throw new Error(`${this.constructor.directiveName}() called with a non-string value`);
|
|
@@ -4581,10 +4581,10 @@ class Tr extends Eo($) {
|
|
|
4581
4581
|
this._options = this.innerHTML;
|
|
4582
4582
|
}
|
|
4583
4583
|
render() {
|
|
4584
|
-
return h`<div class="${
|
|
4584
|
+
return h`<div class="${H(this, rr, Je)}">
|
|
4585
4585
|
${Bo(
|
|
4586
4586
|
this.label,
|
|
4587
|
-
() => h`<label for="${
|
|
4587
|
+
() => h`<label for="${H(this, no, Uo)}">
|
|
4588
4588
|
${this.label}
|
|
4589
4589
|
${Bo(
|
|
4590
4590
|
this.optional,
|
|
@@ -4594,18 +4594,18 @@ class Tr extends Eo($) {
|
|
|
4594
4594
|
)}
|
|
4595
4595
|
<div class="input--select__wrap">
|
|
4596
4596
|
<select
|
|
4597
|
-
id="${
|
|
4597
|
+
id="${H(this, no, Uo)}"
|
|
4598
4598
|
?autofocus=${this.autoFocus}
|
|
4599
|
-
aria-describedby="${z(
|
|
4599
|
+
aria-describedby="${z(H(this, bo, Zo))}"
|
|
4600
4600
|
aria-invalid="${z(this.invalid)}"
|
|
4601
|
-
aria-errormessage="${z(this.invalid &&
|
|
4601
|
+
aria-errormessage="${z(this.invalid && H(this, bo, Zo))}"
|
|
4602
4602
|
>
|
|
4603
4603
|
${Ge(this._options)}
|
|
4604
4604
|
</select>
|
|
4605
4605
|
</div>
|
|
4606
4606
|
${Bo(
|
|
4607
4607
|
this.always || this.invalid,
|
|
4608
|
-
() => h`<div id="${
|
|
4608
|
+
() => h`<div id="${H(this, bo, Zo)}" class="input__sub-text">${this.hint}</div>`
|
|
4609
4609
|
)}
|
|
4610
4610
|
</div>`;
|
|
4611
4611
|
}
|
|
@@ -4617,7 +4617,7 @@ rr = new WeakSet(), Je = function() {
|
|
|
4617
4617
|
}, no = new WeakSet(), Uo = function() {
|
|
4618
4618
|
return "select_id";
|
|
4619
4619
|
}, bo = new WeakSet(), Zo = function() {
|
|
4620
|
-
return this.hint ? `${
|
|
4620
|
+
return this.hint ? `${H(this, no, Uo)}__hint` : void 0;
|
|
4621
4621
|
}, w(Tr, "properties", {
|
|
4622
4622
|
autoFocus: { type: Boolean, reflect: !0 },
|
|
4623
4623
|
invalid: { type: Boolean, reflect: !0 },
|
|
@@ -5676,11 +5676,11 @@ customElements.get("w-select") || customElements.define("w-select", Tr);
|
|
|
5676
5676
|
class Mr extends $ {
|
|
5677
5677
|
get _class() {
|
|
5678
5678
|
return j({
|
|
5679
|
-
[
|
|
5680
|
-
[
|
|
5681
|
-
[
|
|
5682
|
-
[
|
|
5683
|
-
[
|
|
5679
|
+
[Z.box]: !0,
|
|
5680
|
+
[Z.bleed]: this.bleed,
|
|
5681
|
+
[Z.info]: this.info,
|
|
5682
|
+
[Z.neutral]: this.neutral,
|
|
5683
|
+
[Z.bordered]: this.bordered
|
|
5684
5684
|
});
|
|
5685
5685
|
}
|
|
5686
5686
|
render() {
|
|
@@ -9092,14 +9092,14 @@ customElements.get("w-toast") || customElements.define("w-toast", Or);
|
|
|
9092
9092
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9093
9093
|
*/
|
|
9094
9094
|
var _r, Sr;
|
|
9095
|
-
const { _ChildPart: ha } = Xt,
|
|
9095
|
+
const { _ChildPart: ha } = Xt, U = ((_r = window.ShadyDOM) === null || _r === void 0 ? void 0 : _r.inUse) && ((Sr = window.ShadyDOM) === null || Sr === void 0 ? void 0 : Sr.noPatch) === !0 ? window.ShadyDOM.wrap : (r) => r, ye = () => document.createComment(""), xo = (r, o, e) => {
|
|
9096
9096
|
var t;
|
|
9097
|
-
const a =
|
|
9097
|
+
const a = U(r._$startNode).parentNode, c = o === void 0 ? r._$endNode : o._$startNode;
|
|
9098
9098
|
if (e === void 0) {
|
|
9099
|
-
const i =
|
|
9099
|
+
const i = U(a).insertBefore(ye(), c), l = U(a).insertBefore(ye(), c);
|
|
9100
9100
|
e = new ha(i, l, r, r.options);
|
|
9101
9101
|
} else {
|
|
9102
|
-
const i =
|
|
9102
|
+
const i = U(e._$endNode).nextSibling, l = e._$parent, n = l !== r;
|
|
9103
9103
|
if (n) {
|
|
9104
9104
|
(t = e._$reparentDisconnectables) === null || t === void 0 || t.call(e, r), e._$parent = r;
|
|
9105
9105
|
let d;
|
|
@@ -9108,8 +9108,8 @@ const { _ChildPart: ha } = Xt, B = ((_r = window.ShadyDOM) === null || _r === vo
|
|
|
9108
9108
|
if (i !== c || n) {
|
|
9109
9109
|
let d = e._$startNode;
|
|
9110
9110
|
for (; d !== i; ) {
|
|
9111
|
-
const u =
|
|
9112
|
-
|
|
9111
|
+
const u = U(d).nextSibling;
|
|
9112
|
+
U(a).insertBefore(d, c), d = u;
|
|
9113
9113
|
}
|
|
9114
9114
|
}
|
|
9115
9115
|
}
|
|
@@ -9118,10 +9118,10 @@ const { _ChildPart: ha } = Xt, B = ((_r = window.ShadyDOM) === null || _r === vo
|
|
|
9118
9118
|
var o;
|
|
9119
9119
|
(o = r._$notifyConnectionChanged) === null || o === void 0 || o.call(r, !1, !0);
|
|
9120
9120
|
let e = r._$startNode;
|
|
9121
|
-
const t =
|
|
9121
|
+
const t = U(r._$endNode).nextSibling;
|
|
9122
9122
|
for (; e !== t; ) {
|
|
9123
|
-
const a =
|
|
9124
|
-
|
|
9123
|
+
const a = U(e).nextSibling;
|
|
9124
|
+
U(e).remove(), e = a;
|
|
9125
9125
|
}
|
|
9126
9126
|
};
|
|
9127
9127
|
/**
|
|
@@ -9196,7 +9196,7 @@ class fa extends ee {
|
|
|
9196
9196
|
const x = i[b++];
|
|
9197
9197
|
x !== null && Cr(x);
|
|
9198
9198
|
}
|
|
9199
|
-
return this._itemKeys = n, pa(o, u),
|
|
9199
|
+
return this._itemKeys = n, pa(o, u), I;
|
|
9200
9200
|
}
|
|
9201
9201
|
}
|
|
9202
9202
|
const at = re(fa);
|
|
@@ -11892,7 +11892,7 @@ const Aa = function(r) {
|
|
|
11892
11892
|
function lt(r) {
|
|
11893
11893
|
return r && r.document && r.location && r.alert && r.setInterval;
|
|
11894
11894
|
}
|
|
11895
|
-
function
|
|
11895
|
+
function D(r) {
|
|
11896
11896
|
if (r == null)
|
|
11897
11897
|
return window;
|
|
11898
11898
|
if (!lt(r)) {
|
|
@@ -11902,9 +11902,9 @@ function V(r) {
|
|
|
11902
11902
|
return r;
|
|
11903
11903
|
}
|
|
11904
11904
|
function Po(r) {
|
|
11905
|
-
return
|
|
11905
|
+
return D(r).getComputedStyle(r);
|
|
11906
11906
|
}
|
|
11907
|
-
function
|
|
11907
|
+
function V(r) {
|
|
11908
11908
|
return lt(r) ? "" : r ? (r.nodeName || "").toLowerCase() : "";
|
|
11909
11909
|
}
|
|
11910
11910
|
function nt() {
|
|
@@ -11912,18 +11912,18 @@ function nt() {
|
|
|
11912
11912
|
return r != null && r.brands ? r.brands.map((o) => o.brand + "/" + o.version).join(" ") : navigator.userAgent;
|
|
11913
11913
|
}
|
|
11914
11914
|
function Y(r) {
|
|
11915
|
-
return r instanceof
|
|
11915
|
+
return r instanceof D(r).HTMLElement;
|
|
11916
11916
|
}
|
|
11917
11917
|
function uo(r) {
|
|
11918
|
-
return r instanceof
|
|
11918
|
+
return r instanceof D(r).Element;
|
|
11919
11919
|
}
|
|
11920
11920
|
function Pa(r) {
|
|
11921
|
-
return r instanceof
|
|
11921
|
+
return r instanceof D(r).Node;
|
|
11922
11922
|
}
|
|
11923
11923
|
function ce(r) {
|
|
11924
11924
|
if (typeof ShadowRoot > "u")
|
|
11925
11925
|
return !1;
|
|
11926
|
-
const o =
|
|
11926
|
+
const o = D(r).ShadowRoot;
|
|
11927
11927
|
return r instanceof o || r instanceof ShadowRoot;
|
|
11928
11928
|
}
|
|
11929
11929
|
function ar(r) {
|
|
@@ -11935,7 +11935,7 @@ function ar(r) {
|
|
|
11935
11935
|
return /auto|scroll|overlay|hidden/.test(o + t + e);
|
|
11936
11936
|
}
|
|
11937
11937
|
function Ta(r) {
|
|
11938
|
-
return ["table", "td", "th"].includes(
|
|
11938
|
+
return ["table", "td", "th"].includes(V(r));
|
|
11939
11939
|
}
|
|
11940
11940
|
function dt(r) {
|
|
11941
11941
|
const o = /firefox/i.test(nt()), e = Po(r);
|
|
@@ -11951,7 +11951,7 @@ function to(r, o, e) {
|
|
|
11951
11951
|
const l = r.getBoundingClientRect();
|
|
11952
11952
|
let n = 1, d = 1;
|
|
11953
11953
|
o && Y(r) && (n = r.offsetWidth > 0 && Jo(l.width) / r.offsetWidth || 1, d = r.offsetHeight > 0 && Jo(l.height) / r.offsetHeight || 1);
|
|
11954
|
-
const u = uo(r) ?
|
|
11954
|
+
const u = uo(r) ? D(r) : window, s = !bt() && e, g = (l.left + (s && (t = (a = u.visualViewport) == null ? void 0 : a.offsetLeft) != null ? t : 0)) / n, b = (l.top + (s && (c = (i = u.visualViewport) == null ? void 0 : i.offsetTop) != null ? c : 0)) / d, v = l.width / n, m = l.height / d;
|
|
11955
11955
|
return {
|
|
11956
11956
|
width: v,
|
|
11957
11957
|
height: m,
|
|
@@ -11997,7 +11997,7 @@ function Fa(r, o, e) {
|
|
|
11997
11997
|
y: 0
|
|
11998
11998
|
};
|
|
11999
11999
|
if (t || !t && e !== "fixed")
|
|
12000
|
-
if ((
|
|
12000
|
+
if ((V(o) !== "body" || ar(a)) && (i = ir(o)), Y(o)) {
|
|
12001
12001
|
const n = to(o, !0);
|
|
12002
12002
|
l.x = n.x + o.clientLeft, l.y = n.y + o.clientTop;
|
|
12003
12003
|
} else
|
|
@@ -12010,14 +12010,14 @@ function Fa(r, o, e) {
|
|
|
12010
12010
|
};
|
|
12011
12011
|
}
|
|
12012
12012
|
function gt(r) {
|
|
12013
|
-
return
|
|
12013
|
+
return V(r) === "html" ? r : r.assignedSlot || r.parentNode || (ce(r) ? r.host : null) || G(r);
|
|
12014
12014
|
}
|
|
12015
12015
|
function qe(r) {
|
|
12016
12016
|
return !Y(r) || getComputedStyle(r).position === "fixed" ? null : r.offsetParent;
|
|
12017
12017
|
}
|
|
12018
12018
|
function Oa(r) {
|
|
12019
12019
|
let o = gt(r);
|
|
12020
|
-
for (ce(o) && (o = o.host); Y(o) && !["html", "body"].includes(
|
|
12020
|
+
for (ce(o) && (o = o.host); Y(o) && !["html", "body"].includes(V(o)); ) {
|
|
12021
12021
|
if (dt(o))
|
|
12022
12022
|
return o;
|
|
12023
12023
|
o = o.parentNode;
|
|
@@ -12025,11 +12025,11 @@ function Oa(r) {
|
|
|
12025
12025
|
return null;
|
|
12026
12026
|
}
|
|
12027
12027
|
function Nr(r) {
|
|
12028
|
-
const o =
|
|
12028
|
+
const o = D(r);
|
|
12029
12029
|
let e = qe(r);
|
|
12030
12030
|
for (; e && Ta(e) && getComputedStyle(e).position === "static"; )
|
|
12031
12031
|
e = qe(e);
|
|
12032
|
-
return e && (
|
|
12032
|
+
return e && (V(e) === "html" || V(e) === "body" && getComputedStyle(e).position === "static" && !dt(e)) ? o : e || Oa(r) || o;
|
|
12033
12033
|
}
|
|
12034
12034
|
function Re(r) {
|
|
12035
12035
|
if (Y(r))
|
|
@@ -12060,7 +12060,7 @@ function La(r) {
|
|
|
12060
12060
|
x: 0,
|
|
12061
12061
|
y: 0
|
|
12062
12062
|
};
|
|
12063
|
-
if ((a || !a && t !== "fixed") && ((
|
|
12063
|
+
if ((a || !a && t !== "fixed") && ((V(e) !== "body" || ar(c)) && (i = ir(e)), Y(e))) {
|
|
12064
12064
|
const n = to(e, !0);
|
|
12065
12065
|
l.x = n.x + e.clientLeft, l.y = n.y + e.clientTop;
|
|
12066
12066
|
}
|
|
@@ -12071,7 +12071,7 @@ function La(r) {
|
|
|
12071
12071
|
};
|
|
12072
12072
|
}
|
|
12073
12073
|
function Ya(r, o) {
|
|
12074
|
-
const e =
|
|
12074
|
+
const e = D(r), t = G(r), a = e.visualViewport;
|
|
12075
12075
|
let c = t.clientWidth, i = t.clientHeight, l = 0, n = 0;
|
|
12076
12076
|
if (a) {
|
|
12077
12077
|
c = a.width, i = a.height;
|
|
@@ -12099,12 +12099,12 @@ function Xa(r) {
|
|
|
12099
12099
|
}
|
|
12100
12100
|
function ut(r) {
|
|
12101
12101
|
const o = gt(r);
|
|
12102
|
-
return ["html", "body", "#document"].includes(
|
|
12102
|
+
return ["html", "body", "#document"].includes(V(o)) ? r.ownerDocument.body : Y(o) && ar(o) ? o : ut(o);
|
|
12103
12103
|
}
|
|
12104
12104
|
function ht(r, o) {
|
|
12105
12105
|
var e;
|
|
12106
12106
|
o === void 0 && (o = []);
|
|
12107
|
-
const t = ut(r), a = t === ((e = r.ownerDocument) == null ? void 0 : e.body), c =
|
|
12107
|
+
const t = ut(r), a = t === ((e = r.ownerDocument) == null ? void 0 : e.body), c = D(t), i = a ? [c].concat(c.visualViewport || [], ar(t) ? t : []) : t, l = o.concat(i);
|
|
12108
12108
|
return a ? l : l.concat(ht(i));
|
|
12109
12109
|
}
|
|
12110
12110
|
function Na(r, o) {
|
|
@@ -12139,7 +12139,7 @@ function Ee(r, o, e) {
|
|
|
12139
12139
|
}
|
|
12140
12140
|
function Ua(r) {
|
|
12141
12141
|
const o = ht(r), t = ["absolute", "fixed"].includes(Po(r).position) && Y(r) ? Nr(r) : r;
|
|
12142
|
-
return uo(t) ? o.filter((a) => uo(a) && Na(a, t) &&
|
|
12142
|
+
return uo(t) ? o.filter((a) => uo(a) && Na(a, t) && V(a) !== "body") : [];
|
|
12143
12143
|
}
|
|
12144
12144
|
function Za(r) {
|
|
12145
12145
|
let {
|
|
@@ -12287,22 +12287,19 @@ ${JSON.stringify(
|
|
|
12287
12287
|
}
|
|
12288
12288
|
get _wrapperClasses() {
|
|
12289
12289
|
return xe({
|
|
12290
|
-
[
|
|
12291
|
-
[
|
|
12292
|
-
[
|
|
12293
|
-
[
|
|
12290
|
+
[N.base]: !0,
|
|
12291
|
+
[N.tooltip]: this.tooltip,
|
|
12292
|
+
[N.callout]: this.callout,
|
|
12293
|
+
[N.popover]: this.popover
|
|
12294
12294
|
});
|
|
12295
12295
|
}
|
|
12296
12296
|
get _arrowClasses() {
|
|
12297
12297
|
return xe({
|
|
12298
|
-
[
|
|
12299
|
-
[
|
|
12300
|
-
[
|
|
12301
|
-
[
|
|
12302
|
-
[
|
|
12303
|
-
[H.arrowTooltip]: this.tooltip,
|
|
12304
|
-
[H.arrowCallout]: this.callout,
|
|
12305
|
-
[H.arrowPopover]: this.popover
|
|
12298
|
+
[N.arrowBase]: !0,
|
|
12299
|
+
[N[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase() + this._arrowDirection.slice(1)}`]]: !0,
|
|
12300
|
+
[N.arrowTooltip]: this.tooltip,
|
|
12301
|
+
[N.arrowCallout]: this.callout,
|
|
12302
|
+
[N.arrowPopover]: this.popover
|
|
12306
12303
|
});
|
|
12307
12304
|
}
|
|
12308
12305
|
get _arrowHtml() {
|
|
@@ -13184,13 +13181,9 @@ body:not(:-moz-handler-blocked) fieldset {
|
|
|
13184
13181
|
.inset-0{inset:0rem;}
|
|
13185
13182
|
.-bottom-\\[8px\\]{bottom:-8px;}
|
|
13186
13183
|
.-bottom-0{bottom:-0rem;}
|
|
13187
|
-
.-bottom-8{bottom:-0.8rem;}
|
|
13188
13184
|
.-left-\\[8px\\]{left:-8px;}
|
|
13189
|
-
.-left-8{left:-0.8rem;}
|
|
13190
13185
|
.-right-\\[8px\\]{right:-8px;}
|
|
13191
|
-
.-right-8{right:-0.8rem;}
|
|
13192
13186
|
.-top-\\[8px\\]{top:-8px;}
|
|
13193
|
-
.-top-8{top:-0.8rem;}
|
|
13194
13187
|
.before\\:bottom-0::before,
|
|
13195
13188
|
.bottom-0{bottom:0rem;}
|
|
13196
13189
|
.before\\:left-0::before,
|
|
@@ -14592,7 +14585,7 @@ class Zr extends Eo($) {
|
|
|
14592
14585
|
return h`<div
|
|
14593
14586
|
class=${j({
|
|
14594
14587
|
[this.contentClass || ""]: !0,
|
|
14595
|
-
[
|
|
14588
|
+
[Z.box + (this._hasTitle ? " pt-0" : "")]: this.box
|
|
14596
14589
|
})}
|
|
14597
14590
|
>
|
|
14598
14591
|
<slot></slot>
|
|
@@ -14601,9 +14594,9 @@ class Zr extends Eo($) {
|
|
|
14601
14594
|
render() {
|
|
14602
14595
|
return h` <div
|
|
14603
14596
|
class=${j({
|
|
14604
|
-
[
|
|
14605
|
-
[
|
|
14606
|
-
[
|
|
14597
|
+
[B.expandable]: !0,
|
|
14598
|
+
[B.expandableBox]: this.box,
|
|
14599
|
+
[B.expandableBleed]: this.bleed
|
|
14607
14600
|
})}
|
|
14608
14601
|
>
|
|
14609
14602
|
${this._hasTitle ? h`<w-unstyled-heading level=${this.headingLevel}>
|
|
@@ -14612,8 +14605,8 @@ class Zr extends Eo($) {
|
|
|
14612
14605
|
aria-expanded="${this.expanded}"
|
|
14613
14606
|
class=${j({
|
|
14614
14607
|
[this.buttonClass || ""]: !0,
|
|
14615
|
-
[
|
|
14616
|
-
[
|
|
14608
|
+
[B.button]: !0,
|
|
14609
|
+
[B.buttonBox]: this.box
|
|
14617
14610
|
})}
|
|
14618
14611
|
@click=${() => this.expanded = !this.expanded}
|
|
14619
14612
|
>
|
|
@@ -14621,10 +14614,10 @@ class Zr extends Eo($) {
|
|
|
14621
14614
|
${this.title ? h`<span class="h4">${this.title}</span>` : h`<slot name="title"></slot>`}
|
|
14622
14615
|
${this.noChevron ? "" : h`<div
|
|
14623
14616
|
class=${j({
|
|
14624
|
-
[
|
|
14625
|
-
[
|
|
14626
|
-
[
|
|
14627
|
-
[
|
|
14617
|
+
[B.chevron]: !0,
|
|
14618
|
+
[B.chevronExpanded]: this.expanded,
|
|
14619
|
+
[B.chevronBox]: this.box,
|
|
14620
|
+
[B.chevronNonBox]: !this.box
|
|
14628
14621
|
})}
|
|
14629
14622
|
>
|
|
14630
14623
|
<f-icon-chevron-down16></f-icon-chevron-down16>
|