@covalent/components 10.4.0-beta.3 → 11.0.0-beta.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/{_commonjsHelpers-HP5nalso.mjs → _commonjsHelpers-B52_cu2H.mjs} +3 -3
- package/_commonjsHelpers-DGT2Y9Xa.js +1 -0
- package/action-ribbon.js +5 -5
- package/action-ribbon.mjs +33 -33
- package/alert.js +5 -5
- package/alert.mjs +48 -48
- package/app-shell.js +1 -1
- package/app-shell.mjs +7 -7
- package/async-directive-JqUnzsgG.mjs +66 -0
- package/async-directive-X7VhNdG3.js +5 -0
- package/badge.js +1 -1
- package/badge.mjs +4 -4
- package/{base-element-5ZU-p99q.js → base-element-DP9GZic2.js} +1 -1
- package/{base-element-CzNmpVoz.mjs → base-element-DUJkJh_y.mjs} +1 -1
- package/button.js +2 -2
- package/button.mjs +26 -26
- package/card.js +8 -8
- package/card.mjs +39 -39
- package/check-list-item.js +8 -8
- package/check-list-item.mjs +34 -34
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -15
- package/{chip-DmwMNZYy.js → chip-BjFvUMom.js} +44 -44
- package/chip-set.js +5 -5
- package/chip-set.mjs +126 -126
- package/{chip-tQfbvpbh.mjs → chip-vV-teZYv.mjs} +412 -408
- package/chip.js +1 -1
- package/chip.mjs +2 -2
- package/circular-progress.js +15 -15
- package/circular-progress.mjs +25 -25
- package/class-map-DPUylGZM.mjs +36 -0
- package/class-map-DTzB8z-1.js +5 -0
- package/{code-editor-CryBkPGy.js → code-editor-Bu3qtyEg.js} +110 -110
- package/{code-editor-XU5DhFbC.mjs → code-editor-CPpojoPe.mjs} +5423 -5477
- package/code-editor.js +1 -1
- package/code-editor.mjs +2 -2
- package/code-snippet.js +11 -11
- package/code-snippet.mjs +2611 -2641
- package/{dialog-DMqDMT_N.js → dialog-BShWbhKq.js} +9 -9
- package/{dialog-BodJc4rc.mjs → dialog-ChTd6dnt.mjs} +186 -186
- package/dialog.js +1 -1
- package/dialog.mjs +2 -2
- package/directive-C7oCP5Bh.js +5 -0
- package/directive-helpers-C-un5pST.js +5 -0
- package/directive-helpers-DS-VuBZD.mjs +11 -0
- package/{directive-B76A7YXI.mjs → directive-oAbCiebi.mjs} +4 -4
- package/drawer.js +2 -2
- package/drawer.mjs +14 -14
- package/empty-state.js +1 -1
- package/empty-state.mjs +6 -6
- package/{event-options-D44mpm5S.mjs → event-options-C7DvXRgq.mjs} +1 -1
- package/{event-options-IG-2g8HU.js → event-options-DD382x85.js} +1 -1
- package/expansion-panel-item.js +1 -1
- package/expansion-panel-item.mjs +3 -3
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +5 -5
- package/focused-page.js +1 -1
- package/focused-page.mjs +7 -7
- package/form-element-BSAsNxWv.js +5 -0
- package/form-element-QkRofWU9.mjs +50 -0
- package/formfield.js +7 -7
- package/formfield.mjs +45 -45
- package/{foundation-sIsx2I_x.js → foundation-CySCCTUE.js} +2 -2
- package/{foundation-D6JHa7Lg.mjs → foundation-PL3XY-m_.mjs} +4 -4
- package/{foundation-aT_gy6X8.js → foundation-pgmPu2iJ.js} +1 -1
- package/{foundation-BYhAXCW_.mjs → foundation-qQ4jzaAu.mjs} +15 -17
- package/full-screen-dialog.js +2 -2
- package/full-screen-dialog.mjs +10 -10
- package/{html-DW6Y8eLM.mjs → html-DC72jQvb.mjs} +1 -1
- package/{html-CEiNqoVv.js → html-wWghN8cA.js} +1 -1
- package/icon-button-toggle.js +6 -6
- package/icon-button-toggle.mjs +34 -34
- package/icon-button.js +5 -5
- package/icon-button.mjs +36 -36
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +7 -7
- package/icon-lockup.js +5 -5
- package/icon-lockup.mjs +4 -4
- package/icon-radio-toggle.js +1 -1
- package/icon-radio-toggle.mjs +13 -13
- package/icon.js +1 -1
- package/icon.mjs +13 -13
- package/{if-defined-B7G84qob.js → if-defined-CZCqOAYs.js} +1 -1
- package/{if-defined-DN7whKwy.mjs → if-defined-DGrxuPYz.mjs} +1 -1
- package/index.d.ts +0 -1
- package/index.js +1 -10
- package/index.mjs +112 -450
- package/inert.esm-CknhJysw.mjs +645 -0
- package/inert.esm-D2PJKL9E.js +28 -0
- package/{javascript-DzJ0FiwJ.mjs → javascript-C_a5TwhW.mjs} +1 -1
- package/{javascript-vVCDG6Rm.js → javascript-cY8cX08V.js} +1 -1
- package/linear-progress.js +7 -7
- package/linear-progress.mjs +32 -32
- package/{list-item-BIuZJQpK.mjs → list-item-CK66f3gK.mjs} +1 -1
- package/{list-item-V8RaZO6L.js → list-item-LcvIn8Xz.js} +1 -1
- package/list-item.js +7 -7
- package/list-item.mjs +21 -21
- package/list.js +3 -3
- package/list.mjs +16 -16
- package/menu.js +3 -3
- package/menu.mjs +16 -16
- package/{mwc-checkbox.css-CNoj0V14.mjs → mwc-checkbox.css-2vEWGIGy.mjs} +28 -28
- package/{mwc-checkbox.css-BV3dyB4C.js → mwc-checkbox.css-u49MHsHT.js} +1 -1
- package/{mwc-drawer-base-C96HTnbC.mjs → mwc-drawer-base-BKjve51A.mjs} +11 -11
- package/{mwc-drawer-base-BIn51sQu.js → mwc-drawer-base-C2YS_KZk.js} +3 -3
- package/{mwc-icon-Xgr698ax.js → mwc-icon-BUzuM0iB.js} +1 -1
- package/{mwc-icon-DTCUplqR.mjs → mwc-icon-CU54ISyR.mjs} +2 -2
- package/{mwc-icon-button.css-DOVWWyjA.js → mwc-icon-button.css-BzElD_JI.js} +1 -1
- package/{mwc-icon-button.css-DJiDOS0_.mjs → mwc-icon-button.css-DosQIdlt.mjs} +1 -1
- package/{mwc-line-ripple-directive-TO37-41n.mjs → mwc-line-ripple-directive-D6JvHdq9.mjs} +35 -34
- package/{mwc-line-ripple-directive-r80jluoU.js → mwc-line-ripple-directive-DBy5sTfo.js} +4 -4
- package/{mwc-list-item.css-Cg9onxQ-.mjs → mwc-list-item.css-BfvtPwr2.mjs} +10 -10
- package/{mwc-list-item.css-CO1JlA8e.js → mwc-list-item.css-Bib8TVz5.js} +10 -10
- package/{mwc-list.css-C_-DVEme.mjs → mwc-list.css-CnoVmMrq.mjs} +100 -100
- package/{mwc-list.css-Deg9oBaO.js → mwc-list.css-DWV8pw-x.js} +1 -1
- package/{mwc-menu.css-Dvr-f3_T.js → mwc-menu.css-D3EFugOg.js} +18 -18
- package/{mwc-menu.css-qpZxKN-g.mjs → mwc-menu.css-zLJoUMUW.mjs} +303 -303
- package/{mwc-radio.css-BiHC1R8I.mjs → mwc-radio.css-6ufegTtG.mjs} +8 -8
- package/{mwc-radio.css-DjO4Rn44.js → mwc-radio.css-BWiWreTh.js} +1 -1
- package/{mwc-slider.css-Deh1__Ar.mjs → mwc-slider.css-Cq4ygmy4.mjs} +277 -288
- package/{mwc-slider.css-DFOaS04S.js → mwc-slider.css-DytByuJk.js} +13 -13
- package/{mwc-tab.css-sq5suZKe.js → mwc-tab.css-CrjUDOft.js} +11 -11
- package/{mwc-tab.css-2UrPKkNg.mjs → mwc-tab.css-DUOF704w.mjs} +31 -31
- package/{mwc-top-app-bar-base-BIZGhVtM.mjs → mwc-top-app-bar-base-CY0I98Qf.mjs} +21 -21
- package/{mwc-top-app-bar-base-DUdOcIjS.js → mwc-top-app-bar-base-Gxaye-WD.js} +3 -3
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +13 -13
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +23 -23
- package/package.json +3 -8
- package/{property-BRKnMYJe.js → property-DYTC_2-m.js} +1 -1
- package/{python-CddQNZH2.mjs → python-3XbrQbry.mjs} +1 -1
- package/{python-DnfGbG5q.js → python-C-jtMxm_.js} +1 -1
- package/query-CDOd1Kwm.mjs +15 -0
- package/query-Dv2F3m_t.js +5 -0
- package/query-assigned-elements-8EurZY45.js +31 -0
- package/query-assigned-elements-D930kELM.mjs +591 -0
- package/query-assigned-nodes-BAfLwxmx.js +5 -0
- package/query-assigned-nodes-Dof2CSLU.mjs +17 -0
- package/radio-list-item.js +9 -9
- package/radio-list-item.mjs +28 -28
- package/radio.js +1 -1
- package/radio.mjs +15 -15
- package/{ripple-handlers-BAdg-fJB.mjs → ripple-handlers-BzwD98Ty.mjs} +71 -71
- package/{ripple-handlers-BDmOLx8c.js → ripple-handlers-C7an-EE1.js} +5 -5
- package/select.js +15 -15
- package/select.mjs +166 -167
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +8 -8
- package/slider-range.js +5 -5
- package/slider-range.mjs +43 -43
- package/slider.js +2 -2
- package/slider.mjs +19 -19
- package/snackbar.js +11 -11
- package/snackbar.mjs +54 -54
- package/{state-Csv4sdJA.js → state-C3HoXfoa.js} +1 -1
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +6 -6
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +17 -17
- package/status-header.js +5 -5
- package/status-header.mjs +34 -34
- package/style-map-D2TR7M-D.mjs +42 -0
- package/style-map-DOMuf9Fg.js +5 -0
- package/switch.js +5 -5
- package/switch.mjs +42 -42
- package/tab-bar.js +11 -11
- package/tab-bar.mjs +98 -98
- package/tab.js +1 -1
- package/tab.mjs +13 -13
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +9 -9
- package/textarea.js +6 -6
- package/textarea.mjs +29 -29
- package/{textfield-bHWjhOOq.js → textfield-Byf2gP_G.js} +31 -31
- package/{textfield-i_Whj47J.mjs → textfield-vzZ-4E3g.mjs} +102 -102
- package/textfield.js +3 -3
- package/textfield.mjs +17 -17
- package/theme/prebuilt/dark-theme.css +1 -1
- package/theme/prebuilt/light-theme.css +1 -1
- package/toolbar.js +1 -1
- package/toolbar.mjs +4 -4
- package/tooltip.js +3 -3
- package/tooltip.mjs +54 -55
- package/{top-app-bar-CZ5ILmAf.mjs → top-app-bar-BQ88Rom5.mjs} +1 -1
- package/top-app-bar-fixed.js +8 -8
- package/top-app-bar-fixed.mjs +40 -40
- package/{top-app-bar-UVbXY1md.js → top-app-bar-lbNkmJbQ.js} +1 -1
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +18 -18
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +4 -4
- package/tree-list.js +4 -4
- package/tree-list.mjs +22 -22
- package/tslib.es6-pPsSiLLK.mjs +75 -0
- package/{typescript-BRw9OFm1.js → typescript-CNfpftAV.js} +1 -1
- package/{typescript-CdlgcZ3y.mjs → typescript-Dj6mne2e.mjs} +1 -1
- package/typography.js +1 -1
- package/typography.mjs +3 -3
- package/_commonjsHelpers-6jR-N8xe.js +0 -1
- package/async-directive-2AOdKBUW.mjs +0 -66
- package/async-directive-DZ3MjSIj.js +0 -5
- package/class-map-BHl5MHd7.mjs +0 -36
- package/class-map-PsUYVqvf.js +0 -5
- package/directive-C_VV3qwo.js +0 -5
- package/directive-helpers-6HCt_-zj.mjs +0 -11
- package/directive-helpers-BnUMbYHh.js +0 -5
- package/form-element--PS8uSRI.js +0 -5
- package/form-element-Dn0Lerng.mjs +0 -50
- package/icon/_icon-list.d.ts +0 -3
- package/icon/icon-demo.d.ts +0 -13
- package/inert.esm-C8R-X3j4.mjs +0 -639
- package/inert.esm-t-228rpY.js +0 -28
- package/query-BvlE-gMJ.js +0 -5
- package/query-DSO61t36.mjs +0 -15
- package/query-assigned-elements-BQszEgac.js +0 -31
- package/query-assigned-elements-DhyCP_2z.mjs +0 -591
- package/query-assigned-nodes-9DFnkxV8.js +0 -5
- package/query-assigned-nodes-B-jCihdA.mjs +0 -17
- package/style-map-3QfsA_1O.js +0 -5
- package/style-map-QxIETvrs.mjs +0 -42
- package/theme/prebuilt/dark-theme.css.map +0 -1
- package/theme/prebuilt/light-theme.css.map +0 -1
- package/tslib.es6-CISSdiiH.mjs +0 -75
- /package/{style.css → covalent.css} +0 -0
@@ -0,0 +1,591 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2019 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/
|
6
|
+
const U = window, W = U.ShadowRoot && (U.ShadyCSS === void 0 || U.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, q = Symbol(), K = /* @__PURE__ */ new WeakMap();
|
7
|
+
let nt = class {
|
8
|
+
constructor(t, e, s) {
|
9
|
+
if (this._$cssResult$ = !0, s !== q) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
10
|
+
this.cssText = t, this.t = e;
|
11
|
+
}
|
12
|
+
get styleSheet() {
|
13
|
+
let t = this.o;
|
14
|
+
const e = this.t;
|
15
|
+
if (W && t === void 0) {
|
16
|
+
const s = e !== void 0 && e.length === 1;
|
17
|
+
s && (t = K.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && K.set(e, t));
|
18
|
+
}
|
19
|
+
return t;
|
20
|
+
}
|
21
|
+
toString() {
|
22
|
+
return this.cssText;
|
23
|
+
}
|
24
|
+
};
|
25
|
+
const ct = (n) => new nt(typeof n == "string" ? n : n + "", void 0, q), Pt = (n, ...t) => {
|
26
|
+
const e = n.length === 1 ? n[0] : t.reduce((s, i, o) => s + ((r) => {
|
27
|
+
if (r._$cssResult$ === !0) return r.cssText;
|
28
|
+
if (typeof r == "number") return r;
|
29
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
30
|
+
})(i) + n[o + 1], n[0]);
|
31
|
+
return new nt(e, n, q);
|
32
|
+
}, ut = (n, t) => {
|
33
|
+
W ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
34
|
+
const s = document.createElement("style"), i = U.litNonce;
|
35
|
+
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, n.appendChild(s);
|
36
|
+
});
|
37
|
+
}, Z = W ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
38
|
+
let e = "";
|
39
|
+
for (const s of t.cssRules) e += s.cssText;
|
40
|
+
return ct(e);
|
41
|
+
})(n) : n;
|
42
|
+
/**
|
43
|
+
* @license
|
44
|
+
* Copyright 2017 Google LLC
|
45
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
46
|
+
*/
|
47
|
+
var k;
|
48
|
+
const N = window, J = N.trustedTypes, pt = J ? J.emptyScript : "", F = N.reactiveElementPolyfillSupport, z = { toAttribute(n, t) {
|
49
|
+
switch (t) {
|
50
|
+
case Boolean:
|
51
|
+
n = n ? pt : null;
|
52
|
+
break;
|
53
|
+
case Object:
|
54
|
+
case Array:
|
55
|
+
n = n == null ? n : JSON.stringify(n);
|
56
|
+
}
|
57
|
+
return n;
|
58
|
+
}, fromAttribute(n, t) {
|
59
|
+
let e = n;
|
60
|
+
switch (t) {
|
61
|
+
case Boolean:
|
62
|
+
e = n !== null;
|
63
|
+
break;
|
64
|
+
case Number:
|
65
|
+
e = n === null ? null : Number(n);
|
66
|
+
break;
|
67
|
+
case Object:
|
68
|
+
case Array:
|
69
|
+
try {
|
70
|
+
e = JSON.parse(n);
|
71
|
+
} catch {
|
72
|
+
e = null;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
return e;
|
76
|
+
} }, rt = (n, t) => t !== n && (t == t || n == n), R = { attribute: !0, type: String, converter: z, reflect: !1, hasChanged: rt }, I = "finalized";
|
77
|
+
let m = class extends HTMLElement {
|
78
|
+
constructor() {
|
79
|
+
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
|
80
|
+
}
|
81
|
+
static addInitializer(t) {
|
82
|
+
var e;
|
83
|
+
this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
|
84
|
+
}
|
85
|
+
static get observedAttributes() {
|
86
|
+
this.finalize();
|
87
|
+
const t = [];
|
88
|
+
return this.elementProperties.forEach((e, s) => {
|
89
|
+
const i = this._$Ep(s, e);
|
90
|
+
i !== void 0 && (this._$Ev.set(i, s), t.push(i));
|
91
|
+
}), t;
|
92
|
+
}
|
93
|
+
static createProperty(t, e = R) {
|
94
|
+
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
95
|
+
const s = typeof t == "symbol" ? Symbol() : "__" + t, i = this.getPropertyDescriptor(t, s, e);
|
96
|
+
i !== void 0 && Object.defineProperty(this.prototype, t, i);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
static getPropertyDescriptor(t, e, s) {
|
100
|
+
return { get() {
|
101
|
+
return this[e];
|
102
|
+
}, set(i) {
|
103
|
+
const o = this[t];
|
104
|
+
this[e] = i, this.requestUpdate(t, o, s);
|
105
|
+
}, configurable: !0, enumerable: !0 };
|
106
|
+
}
|
107
|
+
static getPropertyOptions(t) {
|
108
|
+
return this.elementProperties.get(t) || R;
|
109
|
+
}
|
110
|
+
static finalize() {
|
111
|
+
if (this.hasOwnProperty(I)) return !1;
|
112
|
+
this[I] = !0;
|
113
|
+
const t = Object.getPrototypeOf(this);
|
114
|
+
if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
115
|
+
const e = this.properties, s = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
|
116
|
+
for (const i of s) this.createProperty(i, e[i]);
|
117
|
+
}
|
118
|
+
return this.elementStyles = this.finalizeStyles(this.styles), !0;
|
119
|
+
}
|
120
|
+
static finalizeStyles(t) {
|
121
|
+
const e = [];
|
122
|
+
if (Array.isArray(t)) {
|
123
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
124
|
+
for (const i of s) e.unshift(Z(i));
|
125
|
+
} else t !== void 0 && e.push(Z(t));
|
126
|
+
return e;
|
127
|
+
}
|
128
|
+
static _$Ep(t, e) {
|
129
|
+
const s = e.attribute;
|
130
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
131
|
+
}
|
132
|
+
_$Eu() {
|
133
|
+
var t;
|
134
|
+
this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));
|
135
|
+
}
|
136
|
+
addController(t) {
|
137
|
+
var e, s;
|
138
|
+
((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((s = t.hostConnected) === null || s === void 0 || s.call(t));
|
139
|
+
}
|
140
|
+
removeController(t) {
|
141
|
+
var e;
|
142
|
+
(e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
|
143
|
+
}
|
144
|
+
_$Eg() {
|
145
|
+
this.constructor.elementProperties.forEach((t, e) => {
|
146
|
+
this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
|
147
|
+
});
|
148
|
+
}
|
149
|
+
createRenderRoot() {
|
150
|
+
var t;
|
151
|
+
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
152
|
+
return ut(e, this.constructor.elementStyles), e;
|
153
|
+
}
|
154
|
+
connectedCallback() {
|
155
|
+
var t;
|
156
|
+
this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
|
157
|
+
var s;
|
158
|
+
return (s = e.hostConnected) === null || s === void 0 ? void 0 : s.call(e);
|
159
|
+
});
|
160
|
+
}
|
161
|
+
enableUpdating(t) {
|
162
|
+
}
|
163
|
+
disconnectedCallback() {
|
164
|
+
var t;
|
165
|
+
(t = this._$ES) === null || t === void 0 || t.forEach((e) => {
|
166
|
+
var s;
|
167
|
+
return (s = e.hostDisconnected) === null || s === void 0 ? void 0 : s.call(e);
|
168
|
+
});
|
169
|
+
}
|
170
|
+
attributeChangedCallback(t, e, s) {
|
171
|
+
this._$AK(t, s);
|
172
|
+
}
|
173
|
+
_$EO(t, e, s = R) {
|
174
|
+
var i;
|
175
|
+
const o = this.constructor._$Ep(t, s);
|
176
|
+
if (o !== void 0 && s.reflect === !0) {
|
177
|
+
const r = (((i = s.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? s.converter : z).toAttribute(e, s.type);
|
178
|
+
this._$El = t, r == null ? this.removeAttribute(o) : this.setAttribute(o, r), this._$El = null;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
_$AK(t, e) {
|
182
|
+
var s;
|
183
|
+
const i = this.constructor, o = i._$Ev.get(t);
|
184
|
+
if (o !== void 0 && this._$El !== o) {
|
185
|
+
const r = i.getPropertyOptions(o), a = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((s = r.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? r.converter : z;
|
186
|
+
this._$El = o, this[o] = a.fromAttribute(e, r.type), this._$El = null;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
requestUpdate(t, e, s) {
|
190
|
+
let i = !0;
|
191
|
+
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || rt)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : i = !1), !this.isUpdatePending && i && (this._$E_ = this._$Ej());
|
192
|
+
}
|
193
|
+
async _$Ej() {
|
194
|
+
this.isUpdatePending = !0;
|
195
|
+
try {
|
196
|
+
await this._$E_;
|
197
|
+
} catch (e) {
|
198
|
+
Promise.reject(e);
|
199
|
+
}
|
200
|
+
const t = this.scheduleUpdate();
|
201
|
+
return t != null && await t, !this.isUpdatePending;
|
202
|
+
}
|
203
|
+
scheduleUpdate() {
|
204
|
+
return this.performUpdate();
|
205
|
+
}
|
206
|
+
performUpdate() {
|
207
|
+
var t;
|
208
|
+
if (!this.isUpdatePending) return;
|
209
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((i, o) => this[o] = i), this._$Ei = void 0);
|
210
|
+
let e = !1;
|
211
|
+
const s = this._$AL;
|
212
|
+
try {
|
213
|
+
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$ES) === null || t === void 0 || t.forEach((i) => {
|
214
|
+
var o;
|
215
|
+
return (o = i.hostUpdate) === null || o === void 0 ? void 0 : o.call(i);
|
216
|
+
}), this.update(s)) : this._$Ek();
|
217
|
+
} catch (i) {
|
218
|
+
throw e = !1, this._$Ek(), i;
|
219
|
+
}
|
220
|
+
e && this._$AE(s);
|
221
|
+
}
|
222
|
+
willUpdate(t) {
|
223
|
+
}
|
224
|
+
_$AE(t) {
|
225
|
+
var e;
|
226
|
+
(e = this._$ES) === null || e === void 0 || e.forEach((s) => {
|
227
|
+
var i;
|
228
|
+
return (i = s.hostUpdated) === null || i === void 0 ? void 0 : i.call(s);
|
229
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
230
|
+
}
|
231
|
+
_$Ek() {
|
232
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
233
|
+
}
|
234
|
+
get updateComplete() {
|
235
|
+
return this.getUpdateComplete();
|
236
|
+
}
|
237
|
+
getUpdateComplete() {
|
238
|
+
return this._$E_;
|
239
|
+
}
|
240
|
+
shouldUpdate(t) {
|
241
|
+
return !0;
|
242
|
+
}
|
243
|
+
update(t) {
|
244
|
+
this._$EC !== void 0 && (this._$EC.forEach((e, s) => this._$EO(s, this[s], e)), this._$EC = void 0), this._$Ek();
|
245
|
+
}
|
246
|
+
updated(t) {
|
247
|
+
}
|
248
|
+
firstUpdated(t) {
|
249
|
+
}
|
250
|
+
};
|
251
|
+
m[I] = !0, m.elementProperties = /* @__PURE__ */ new Map(), m.elementStyles = [], m.shadowRootOptions = { mode: "open" }, F == null || F({ ReactiveElement: m }), ((k = N.reactiveElementVersions) !== null && k !== void 0 ? k : N.reactiveElementVersions = []).push("1.6.3");
|
252
|
+
/**
|
253
|
+
* @license
|
254
|
+
* Copyright 2017 Google LLC
|
255
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
256
|
+
*/
|
257
|
+
var M;
|
258
|
+
const T = window, y = T.trustedTypes, G = y ? y.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, V = "$lit$", v = `lit$${(Math.random() + "").slice(9)}$`, ot = "?" + v, $t = `<${ot}>`, A = document, b = () => A.createComment(""), C = (n) => n === null || typeof n != "object" && typeof n != "function", lt = Array.isArray, vt = (n) => lt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", L = `[
|
259
|
+
\f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Q = /-->/g, X = />/g, _ = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
|
260
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Y = /'/g, tt = /"/g, ht = /^(?:script|style|textarea|title)$/i, _t = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Ht = _t(1), g = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), et = /* @__PURE__ */ new WeakMap(), f = A.createTreeWalker(A, 129, null, !1);
|
261
|
+
function at(n, t) {
|
262
|
+
if (!Array.isArray(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
263
|
+
return G !== void 0 ? G.createHTML(t) : t;
|
264
|
+
}
|
265
|
+
const ft = (n, t) => {
|
266
|
+
const e = n.length - 1, s = [];
|
267
|
+
let i, o = t === 2 ? "<svg>" : "", r = S;
|
268
|
+
for (let a = 0; a < e; a++) {
|
269
|
+
const l = n[a];
|
270
|
+
let h, d, c = -1, p = 0;
|
271
|
+
for (; p < l.length && (r.lastIndex = p, d = r.exec(l), d !== null); ) p = r.lastIndex, r === S ? d[1] === "!--" ? r = Q : d[1] !== void 0 ? r = X : d[2] !== void 0 ? (ht.test(d[2]) && (i = RegExp("</" + d[2], "g")), r = _) : d[3] !== void 0 && (r = _) : r === _ ? d[0] === ">" ? (r = i ?? S, c = -1) : d[1] === void 0 ? c = -2 : (c = r.lastIndex - d[2].length, h = d[1], r = d[3] === void 0 ? _ : d[3] === '"' ? tt : Y) : r === tt || r === Y ? r = _ : r === Q || r === X ? r = S : (r = _, i = void 0);
|
272
|
+
const $ = r === _ && n[a + 1].startsWith("/>") ? " " : "";
|
273
|
+
o += r === S ? l + $t : c >= 0 ? (s.push(h), l.slice(0, c) + V + l.slice(c) + v + $) : l + v + (c === -2 ? (s.push(void 0), a) : $);
|
274
|
+
}
|
275
|
+
return [at(n, o + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
276
|
+
};
|
277
|
+
class w {
|
278
|
+
constructor({ strings: t, _$litType$: e }, s) {
|
279
|
+
let i;
|
280
|
+
this.parts = [];
|
281
|
+
let o = 0, r = 0;
|
282
|
+
const a = t.length - 1, l = this.parts, [h, d] = ft(t, e);
|
283
|
+
if (this.el = w.createElement(h, s), f.currentNode = this.el.content, e === 2) {
|
284
|
+
const c = this.el.content, p = c.firstChild;
|
285
|
+
p.remove(), c.append(...p.childNodes);
|
286
|
+
}
|
287
|
+
for (; (i = f.nextNode()) !== null && l.length < a; ) {
|
288
|
+
if (i.nodeType === 1) {
|
289
|
+
if (i.hasAttributes()) {
|
290
|
+
const c = [];
|
291
|
+
for (const p of i.getAttributeNames()) if (p.endsWith(V) || p.startsWith(v)) {
|
292
|
+
const $ = d[r++];
|
293
|
+
if (c.push(p), $ !== void 0) {
|
294
|
+
const dt = i.getAttribute($.toLowerCase() + V).split(v), P = /([.?@])?(.*)/.exec($);
|
295
|
+
l.push({ type: 1, index: o, name: P[2], strings: dt, ctor: P[1] === "." ? mt : P[1] === "?" ? gt : P[1] === "@" ? Et : O });
|
296
|
+
} else l.push({ type: 6, index: o });
|
297
|
+
}
|
298
|
+
for (const p of c) i.removeAttribute(p);
|
299
|
+
}
|
300
|
+
if (ht.test(i.tagName)) {
|
301
|
+
const c = i.textContent.split(v), p = c.length - 1;
|
302
|
+
if (p > 0) {
|
303
|
+
i.textContent = y ? y.emptyScript : "";
|
304
|
+
for (let $ = 0; $ < p; $++) i.append(c[$], b()), f.nextNode(), l.push({ type: 2, index: ++o });
|
305
|
+
i.append(c[p], b());
|
306
|
+
}
|
307
|
+
}
|
308
|
+
} else if (i.nodeType === 8) if (i.data === ot) l.push({ type: 2, index: o });
|
309
|
+
else {
|
310
|
+
let c = -1;
|
311
|
+
for (; (c = i.data.indexOf(v, c + 1)) !== -1; ) l.push({ type: 7, index: o }), c += v.length - 1;
|
312
|
+
}
|
313
|
+
o++;
|
314
|
+
}
|
315
|
+
}
|
316
|
+
static createElement(t, e) {
|
317
|
+
const s = A.createElement("template");
|
318
|
+
return s.innerHTML = t, s;
|
319
|
+
}
|
320
|
+
}
|
321
|
+
function E(n, t, e = n, s) {
|
322
|
+
var i, o, r, a;
|
323
|
+
if (t === g) return t;
|
324
|
+
let l = s !== void 0 ? (i = e._$Co) === null || i === void 0 ? void 0 : i[s] : e._$Cl;
|
325
|
+
const h = C(t) ? void 0 : t._$litDirective$;
|
326
|
+
return (l == null ? void 0 : l.constructor) !== h && ((o = l == null ? void 0 : l._$AO) === null || o === void 0 || o.call(l, !1), h === void 0 ? l = void 0 : (l = new h(n), l._$AT(n, e, s)), s !== void 0 ? ((r = (a = e)._$Co) !== null && r !== void 0 ? r : a._$Co = [])[s] = l : e._$Cl = l), l !== void 0 && (t = E(n, l._$AS(n, t.values), l, s)), t;
|
327
|
+
}
|
328
|
+
class At {
|
329
|
+
constructor(t, e) {
|
330
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
331
|
+
}
|
332
|
+
get parentNode() {
|
333
|
+
return this._$AM.parentNode;
|
334
|
+
}
|
335
|
+
get _$AU() {
|
336
|
+
return this._$AM._$AU;
|
337
|
+
}
|
338
|
+
u(t) {
|
339
|
+
var e;
|
340
|
+
const { el: { content: s }, parts: i } = this._$AD, o = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : A).importNode(s, !0);
|
341
|
+
f.currentNode = o;
|
342
|
+
let r = f.nextNode(), a = 0, l = 0, h = i[0];
|
343
|
+
for (; h !== void 0; ) {
|
344
|
+
if (a === h.index) {
|
345
|
+
let d;
|
346
|
+
h.type === 2 ? d = new x(r, r.nextSibling, this, t) : h.type === 1 ? d = new h.ctor(r, h.name, h.strings, this, t) : h.type === 6 && (d = new St(r, this, t)), this._$AV.push(d), h = i[++l];
|
347
|
+
}
|
348
|
+
a !== (h == null ? void 0 : h.index) && (r = f.nextNode(), a++);
|
349
|
+
}
|
350
|
+
return f.currentNode = A, o;
|
351
|
+
}
|
352
|
+
v(t) {
|
353
|
+
let e = 0;
|
354
|
+
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
355
|
+
}
|
356
|
+
}
|
357
|
+
class x {
|
358
|
+
constructor(t, e, s, i) {
|
359
|
+
var o;
|
360
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cp = (o = i == null ? void 0 : i.isConnected) === null || o === void 0 || o;
|
361
|
+
}
|
362
|
+
get _$AU() {
|
363
|
+
var t, e;
|
364
|
+
return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
|
365
|
+
}
|
366
|
+
get parentNode() {
|
367
|
+
let t = this._$AA.parentNode;
|
368
|
+
const e = this._$AM;
|
369
|
+
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
370
|
+
}
|
371
|
+
get startNode() {
|
372
|
+
return this._$AA;
|
373
|
+
}
|
374
|
+
get endNode() {
|
375
|
+
return this._$AB;
|
376
|
+
}
|
377
|
+
_$AI(t, e = this) {
|
378
|
+
t = E(this, t, e), C(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== g && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : vt(t) ? this.T(t) : this._(t);
|
379
|
+
}
|
380
|
+
k(t) {
|
381
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
382
|
+
}
|
383
|
+
$(t) {
|
384
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
385
|
+
}
|
386
|
+
_(t) {
|
387
|
+
this._$AH !== u && C(this._$AH) ? this._$AA.nextSibling.data = t : this.$(A.createTextNode(t)), this._$AH = t;
|
388
|
+
}
|
389
|
+
g(t) {
|
390
|
+
var e;
|
391
|
+
const { values: s, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = w.createElement(at(i.h, i.h[0]), this.options)), i);
|
392
|
+
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === o) this._$AH.v(s);
|
393
|
+
else {
|
394
|
+
const r = new At(o, this), a = r.u(this.options);
|
395
|
+
r.v(s), this.$(a), this._$AH = r;
|
396
|
+
}
|
397
|
+
}
|
398
|
+
_$AC(t) {
|
399
|
+
let e = et.get(t.strings);
|
400
|
+
return e === void 0 && et.set(t.strings, e = new w(t)), e;
|
401
|
+
}
|
402
|
+
T(t) {
|
403
|
+
lt(this._$AH) || (this._$AH = [], this._$AR());
|
404
|
+
const e = this._$AH;
|
405
|
+
let s, i = 0;
|
406
|
+
for (const o of t) i === e.length ? e.push(s = new x(this.k(b()), this.k(b()), this, this.options)) : s = e[i], s._$AI(o), i++;
|
407
|
+
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
408
|
+
}
|
409
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
410
|
+
var s;
|
411
|
+
for ((s = this._$AP) === null || s === void 0 || s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
412
|
+
const i = t.nextSibling;
|
413
|
+
t.remove(), t = i;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
setConnected(t) {
|
417
|
+
var e;
|
418
|
+
this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
419
|
+
}
|
420
|
+
}
|
421
|
+
class O {
|
422
|
+
constructor(t, e, s, i, o) {
|
423
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = u;
|
424
|
+
}
|
425
|
+
get tagName() {
|
426
|
+
return this.element.tagName;
|
427
|
+
}
|
428
|
+
get _$AU() {
|
429
|
+
return this._$AM._$AU;
|
430
|
+
}
|
431
|
+
_$AI(t, e = this, s, i) {
|
432
|
+
const o = this.strings;
|
433
|
+
let r = !1;
|
434
|
+
if (o === void 0) t = E(this, t, e, 0), r = !C(t) || t !== this._$AH && t !== g, r && (this._$AH = t);
|
435
|
+
else {
|
436
|
+
const a = t;
|
437
|
+
let l, h;
|
438
|
+
for (t = o[0], l = 0; l < o.length - 1; l++) h = E(this, a[s + l], e, l), h === g && (h = this._$AH[l]), r || (r = !C(h) || h !== this._$AH[l]), h === u ? t = u : t !== u && (t += (h ?? "") + o[l + 1]), this._$AH[l] = h;
|
439
|
+
}
|
440
|
+
r && !i && this.j(t);
|
441
|
+
}
|
442
|
+
j(t) {
|
443
|
+
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
444
|
+
}
|
445
|
+
}
|
446
|
+
class mt extends O {
|
447
|
+
constructor() {
|
448
|
+
super(...arguments), this.type = 3;
|
449
|
+
}
|
450
|
+
j(t) {
|
451
|
+
this.element[this.name] = t === u ? void 0 : t;
|
452
|
+
}
|
453
|
+
}
|
454
|
+
const yt = y ? y.emptyScript : "";
|
455
|
+
class gt extends O {
|
456
|
+
constructor() {
|
457
|
+
super(...arguments), this.type = 4;
|
458
|
+
}
|
459
|
+
j(t) {
|
460
|
+
t && t !== u ? this.element.setAttribute(this.name, yt) : this.element.removeAttribute(this.name);
|
461
|
+
}
|
462
|
+
}
|
463
|
+
class Et extends O {
|
464
|
+
constructor(t, e, s, i, o) {
|
465
|
+
super(t, e, s, i, o), this.type = 5;
|
466
|
+
}
|
467
|
+
_$AI(t, e = this) {
|
468
|
+
var s;
|
469
|
+
if ((t = (s = E(this, t, e, 0)) !== null && s !== void 0 ? s : u) === g) return;
|
470
|
+
const i = this._$AH, o = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== u && (i === u || o);
|
471
|
+
o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
472
|
+
}
|
473
|
+
handleEvent(t) {
|
474
|
+
var e, s;
|
475
|
+
typeof this._$AH == "function" ? this._$AH.call((s = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
|
476
|
+
}
|
477
|
+
}
|
478
|
+
class St {
|
479
|
+
constructor(t, e, s) {
|
480
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
481
|
+
}
|
482
|
+
get _$AU() {
|
483
|
+
return this._$AM._$AU;
|
484
|
+
}
|
485
|
+
_$AI(t) {
|
486
|
+
E(this, t);
|
487
|
+
}
|
488
|
+
}
|
489
|
+
const st = T.litHtmlPolyfillSupport;
|
490
|
+
st == null || st(w, x), ((M = T.litHtmlVersions) !== null && M !== void 0 ? M : T.litHtmlVersions = []).push("2.8.0");
|
491
|
+
const bt = (n, t, e) => {
|
492
|
+
var s, i;
|
493
|
+
const o = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : t;
|
494
|
+
let r = o._$litPart$;
|
495
|
+
if (r === void 0) {
|
496
|
+
const a = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : null;
|
497
|
+
o._$litPart$ = r = new x(t.insertBefore(b(), a), a, void 0, e ?? {});
|
498
|
+
}
|
499
|
+
return r._$AI(n), r;
|
500
|
+
};
|
501
|
+
/**
|
502
|
+
* @license
|
503
|
+
* Copyright 2017 Google LLC
|
504
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
505
|
+
*/
|
506
|
+
var j, B;
|
507
|
+
class H extends m {
|
508
|
+
constructor() {
|
509
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
510
|
+
}
|
511
|
+
createRenderRoot() {
|
512
|
+
var t, e;
|
513
|
+
const s = super.createRenderRoot();
|
514
|
+
return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = s.firstChild), s;
|
515
|
+
}
|
516
|
+
update(t) {
|
517
|
+
const e = this.render();
|
518
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = bt(e, this.renderRoot, this.renderOptions);
|
519
|
+
}
|
520
|
+
connectedCallback() {
|
521
|
+
var t;
|
522
|
+
super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
|
523
|
+
}
|
524
|
+
disconnectedCallback() {
|
525
|
+
var t;
|
526
|
+
super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
|
527
|
+
}
|
528
|
+
render() {
|
529
|
+
return g;
|
530
|
+
}
|
531
|
+
}
|
532
|
+
H.finalized = !0, H._$litElement$ = !0, (j = globalThis.litElementHydrateSupport) === null || j === void 0 || j.call(globalThis, { LitElement: H });
|
533
|
+
const it = globalThis.litElementPolyfillSupport;
|
534
|
+
it == null || it({ LitElement: H });
|
535
|
+
((B = globalThis.litElementVersions) !== null && B !== void 0 ? B : globalThis.litElementVersions = []).push("3.3.3");
|
536
|
+
/**
|
537
|
+
* @license
|
538
|
+
* Copyright 2017 Google LLC
|
539
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
540
|
+
*/
|
541
|
+
const Nt = (n) => (t) => typeof t == "function" ? ((e, s) => (customElements.define(e, s), s))(n, t) : ((e, s) => {
|
542
|
+
const { kind: i, elements: o } = s;
|
543
|
+
return { kind: i, elements: o, finisher(r) {
|
544
|
+
customElements.define(e, r);
|
545
|
+
} };
|
546
|
+
})(n, t);
|
547
|
+
/**
|
548
|
+
* @license
|
549
|
+
* Copyright 2017 Google LLC
|
550
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
551
|
+
*/
|
552
|
+
const Ct = ({ finisher: n, descriptor: t }) => (e, s) => {
|
553
|
+
var i;
|
554
|
+
if (s === void 0) {
|
555
|
+
const o = (i = e.originalKey) !== null && i !== void 0 ? i : e.key, r = t != null ? { kind: "method", placement: "prototype", key: o, descriptor: t(e.key) } : { ...e, key: o };
|
556
|
+
return n != null && (r.finisher = function(a) {
|
557
|
+
n(a, o);
|
558
|
+
}), r;
|
559
|
+
}
|
560
|
+
{
|
561
|
+
const o = e.constructor;
|
562
|
+
t !== void 0 && Object.defineProperty(e, s, t(s)), n == null || n(o, s);
|
563
|
+
}
|
564
|
+
};
|
565
|
+
/**
|
566
|
+
* @license
|
567
|
+
* Copyright 2021 Google LLC
|
568
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
569
|
+
*/
|
570
|
+
var D;
|
571
|
+
const wt = ((D = window.HTMLSlotElement) === null || D === void 0 ? void 0 : D.prototype.assignedElements) != null ? (n, t) => n.assignedElements(t) : (n, t) => n.assignedNodes(t).filter((e) => e.nodeType === Node.ELEMENT_NODE);
|
572
|
+
function Tt(n) {
|
573
|
+
const { slot: t, selector: e } = n ?? {};
|
574
|
+
return Ct({ descriptor: (s) => ({ get() {
|
575
|
+
var i;
|
576
|
+
const o = "slot" + (t ? `[name=${t}]` : ":not([name])"), r = (i = this.renderRoot) === null || i === void 0 ? void 0 : i.querySelector(o), a = r != null ? wt(r, n) : [];
|
577
|
+
return e ? a.filter((l) => l.matches(e)) : a;
|
578
|
+
}, enumerable: !0, configurable: !0 }) });
|
579
|
+
}
|
580
|
+
export {
|
581
|
+
u as A,
|
582
|
+
bt as D,
|
583
|
+
g as T,
|
584
|
+
Nt as e,
|
585
|
+
Pt as i,
|
586
|
+
Tt as l,
|
587
|
+
Ct as o,
|
588
|
+
ct as r,
|
589
|
+
H as s,
|
590
|
+
Ht as x
|
591
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";const i=require("./query-assigned-elements-8EurZY45.js");/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/function d(e,r,s){let o,t=e;return typeof e=="object"?(t=e.slot,o=e):o={flatten:r},s?i.l({slot:t,flatten:r,selector:s}):i.o({descriptor:a=>({get(){var n,l;const c="slot"+(t?`[name=${t}]`:":not([name])"),u=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(c);return(l=u==null?void 0:u.assignedNodes(o))!==null&&l!==void 0?l:[]},enumerable:!0,configurable:!0})})}exports.o=d;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { o as a, l as d } from "./query-assigned-elements-D930kELM.mjs";
|
2
|
+
/**
|
3
|
+
* @license
|
4
|
+
* Copyright 2017 Google LLC
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
+
*/
|
7
|
+
function m(e, n, s) {
|
8
|
+
let o, t = e;
|
9
|
+
return typeof e == "object" ? (t = e.slot, o = e) : o = { flatten: n }, s ? d({ slot: t, flatten: n, selector: s }) : a({ descriptor: (c) => ({ get() {
|
10
|
+
var l, r;
|
11
|
+
const i = "slot" + (t ? `[name=${t}]` : ":not([name])"), u = (l = this.renderRoot) === null || l === void 0 ? void 0 : l.querySelector(i);
|
12
|
+
return (r = u == null ? void 0 : u.assignedNodes(o)) !== null && r !== void 0 ? r : [];
|
13
|
+
}, enumerable: !0, configurable: !0 }) });
|
14
|
+
}
|
15
|
+
export {
|
16
|
+
m as o
|
17
|
+
};
|
package/radio-list-item.js
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./tslib.es6-CHeFCc6E.js"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./tslib.es6-CHeFCc6E.js"),t=require("./query-assigned-elements-8EurZY45.js"),p=require("./mwc-radio.css-BWiWreTh.js"),m=require("./property-DYTC_2-m.js"),u=require("./query-Dv2F3m_t.js"),g=require("./class-map-DTzB8z-1.js"),f=require("./if-defined-CZCqOAYs.js"),_=require("./mwc-list-item.css-Bib8TVz5.js"),h=require("./list-item-LcvIn8Xz.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2018 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
5
|
-
*/let
|
5
|
+
*/let n=class extends p.RadioBase{};n.styles=[p.styles];n=c.__decorate([t.e("mwc-radio")],n);/**
|
6
6
|
* @license
|
7
7
|
* Copyright 2020 Google LLC
|
8
8
|
* SPDX-License-Identifier: Apache-2.0
|
9
|
-
*/class
|
9
|
+
*/class l extends _.ListItemBase{constructor(){super(...arguments),this.left=!1,this.graphic="control",this._changeFromClick=!1}render(){const s={"mdc-deprecated-list-item__graphic":this.left,"mdc-deprecated-list-item__meta":!this.left},e=this.renderText(),o=this.graphic&&this.graphic!=="control"&&!this.left?this.renderGraphic():t.x``,i=this.hasMeta&&this.left?this.renderMeta():t.x``,a=this.renderRipple();return t.x`
|
10
10
|
${a}
|
11
|
-
${
|
11
|
+
${o}
|
12
12
|
${this.left?"":e}
|
13
13
|
<mwc-radio
|
14
14
|
global
|
15
|
-
class=${
|
15
|
+
class=${g.o(s)}
|
16
16
|
tabindex=${this.tabindex}
|
17
|
-
name=${
|
17
|
+
name=${f.l(this.group===null?void 0:this.group)}
|
18
18
|
.checked=${this.selected}
|
19
19
|
?disabled=${this.disabled}
|
20
20
|
@checked=${this.onChange}>
|
21
21
|
</mwc-radio>
|
22
22
|
${this.left?e:""}
|
23
|
-
${
|
24
|
-
${
|
25
|
-
`];exports.CovalentRadioListItem=
|
23
|
+
${i}`}onClick(){this._changeFromClick=!0,super.onClick()}async onChange(s){const e=s.target;this.selected===e.checked||(this._skipPropRequest=!0,this.selected=e.checked,await this.updateComplete,this._skipPropRequest=!1,this._changeFromClick||this.fireRequestSelected(this.selected,"interaction")),this._changeFromClick=!1}}c.__decorate([u.i("slot")],l.prototype,"slotElement",void 0);c.__decorate([u.i("mwc-radio")],l.prototype,"radioElement",void 0);c.__decorate([m.n({type:Boolean})],l.prototype,"left",void 0);c.__decorate([m.n({type:String,reflect:!0})],l.prototype,"graphic",void 0);var v=Object.getOwnPropertyDescriptor,y=(r,s,e,o)=>{for(var i=o>1?void 0:o?v(s,e):s,a=r.length-1,d;a>=0;a--)(d=r[a])&&(i=d(i)||i);return i};exports.CovalentRadioListItem=class extends l{};exports.CovalentRadioListItem.styles=[_.styles,h.styles,t.i`
|
24
|
+
${t.r(h.covalentStyles)}
|
25
|
+
`];exports.CovalentRadioListItem=y([t.e("cv-radio-list-item")],exports.CovalentRadioListItem);const C=exports.CovalentRadioListItem;exports.default=C;
|