@record-evolution/widget-navbar 1.0.8 → 1.0.10
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/README.md +7 -5
- package/dist/themes/chalk.json +395 -0
- package/dist/themes/light.json +368 -0
- package/dist/themes/vintage.json +376 -0
- package/dist/widget-navbar.js +291 -510
- package/dist/widget-navbar.js.map +1 -1
- package/package.json +8 -9
- package/src/definition-schema.d.ts +20 -20
- package/src/widget-navbar.ts +3 -1
- package/dist/src/definition-schema.d.ts +0 -70
- package/dist/src/definition-schema.json +0 -104
- package/dist/src/widget-navbar.ts +0 -172
- /package/dist/{src/default-data.json → default-data.json} +0 -0
package/dist/widget-navbar.js
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
/* @
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2019 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/
|
|
7
|
-
const Y = globalThis, ut = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vt = Symbol(), wt = /* @__PURE__ */ new WeakMap();
|
|
1
|
+
const Y = globalThis, ut = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vt = /* @__PURE__ */ Symbol(), wt = /* @__PURE__ */ new WeakMap();
|
|
8
2
|
let Ut = class {
|
|
9
|
-
constructor(t, e,
|
|
10
|
-
if (this._$cssResult$ = !0,
|
|
3
|
+
constructor(t, e, i) {
|
|
4
|
+
if (this._$cssResult$ = !0, i !== vt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11
5
|
this.cssText = t, this.t = e;
|
|
12
6
|
}
|
|
13
7
|
get styleSheet() {
|
|
14
8
|
let t = this.o;
|
|
15
9
|
const e = this.t;
|
|
16
10
|
if (ut && t === void 0) {
|
|
17
|
-
const
|
|
18
|
-
|
|
11
|
+
const i = e !== void 0 && e.length === 1;
|
|
12
|
+
i && (t = wt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && wt.set(e, t));
|
|
19
13
|
}
|
|
20
14
|
return t;
|
|
21
15
|
}
|
|
@@ -24,32 +18,27 @@ let Ut = class {
|
|
|
24
18
|
}
|
|
25
19
|
};
|
|
26
20
|
const ee = (s) => new Ut(typeof s == "string" ? s : s + "", void 0, vt), $ = (s, ...t) => {
|
|
27
|
-
const e = s.length === 1 ? s[0] : t.reduce(((
|
|
21
|
+
const e = s.length === 1 ? s[0] : t.reduce(((i, r, o) => i + ((a) => {
|
|
28
22
|
if (a._$cssResult$ === !0) return a.cssText;
|
|
29
23
|
if (typeof a == "number") return a;
|
|
30
24
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + a + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
31
|
-
})(
|
|
25
|
+
})(r) + s[o + 1]), s[0]);
|
|
32
26
|
return new Ut(e, s, vt);
|
|
33
|
-
},
|
|
27
|
+
}, ie = (s, t) => {
|
|
34
28
|
if (ut) s.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
|
|
35
29
|
else for (const e of t) {
|
|
36
|
-
const
|
|
37
|
-
|
|
30
|
+
const i = document.createElement("style"), r = Y.litNonce;
|
|
31
|
+
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
|
38
32
|
}
|
|
39
33
|
}, Ct = ut ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
40
34
|
let e = "";
|
|
41
|
-
for (const
|
|
35
|
+
for (const i of t.cssRules) e += i.cssText;
|
|
42
36
|
return ee(e);
|
|
43
37
|
})(s) : s;
|
|
44
|
-
|
|
45
|
-
* @license
|
|
46
|
-
* Copyright 2017 Google LLC
|
|
47
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/
|
|
49
|
-
const { is: ie, defineProperty: se, getOwnPropertyDescriptor: oe, getOwnPropertyNames: ae, getOwnPropertySymbols: ne, getPrototypeOf: ce } = Object, J = globalThis, Et = J.trustedTypes, le = Et ? Et.emptyScript : "", de = J.reactiveElementPolyfillSupport, U = (s, t) => s, Z = { toAttribute(s, t) {
|
|
38
|
+
const { is: re, defineProperty: se, getOwnPropertyDescriptor: oe, getOwnPropertyNames: ae, getOwnPropertySymbols: ne, getPrototypeOf: le } = Object, J = globalThis, Et = J.trustedTypes, ce = Et ? Et.emptyScript : "", de = J.reactiveElementPolyfillSupport, U = (s, t) => s, Z = { toAttribute(s, t) {
|
|
50
39
|
switch (t) {
|
|
51
40
|
case Boolean:
|
|
52
|
-
s = s ?
|
|
41
|
+
s = s ? ce : null;
|
|
53
42
|
break;
|
|
54
43
|
case Object:
|
|
55
44
|
case Array:
|
|
@@ -74,8 +63,8 @@ const { is: ie, defineProperty: se, getOwnPropertyDescriptor: oe, getOwnProperty
|
|
|
74
63
|
}
|
|
75
64
|
}
|
|
76
65
|
return e;
|
|
77
|
-
} }, mt = (s, t) => !
|
|
78
|
-
Symbol.metadata ??= Symbol("metadata"), J.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
66
|
+
} }, mt = (s, t) => !re(s, t), St = { attribute: !0, type: String, converter: Z, reflect: !1, useDefault: !1, hasChanged: mt };
|
|
67
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), J.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
79
68
|
let k = class extends HTMLElement {
|
|
80
69
|
static addInitializer(t) {
|
|
81
70
|
this._$Ei(), (this.l ??= []).push(t);
|
|
@@ -85,19 +74,19 @@ let k = class extends HTMLElement {
|
|
|
85
74
|
}
|
|
86
75
|
static createProperty(t, e = St) {
|
|
87
76
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
88
|
-
const
|
|
89
|
-
|
|
77
|
+
const i = /* @__PURE__ */ Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
|
78
|
+
r !== void 0 && se(this.prototype, t, r);
|
|
90
79
|
}
|
|
91
80
|
}
|
|
92
|
-
static getPropertyDescriptor(t, e,
|
|
93
|
-
const { get:
|
|
81
|
+
static getPropertyDescriptor(t, e, i) {
|
|
82
|
+
const { get: r, set: o } = oe(this.prototype, t) ?? { get() {
|
|
94
83
|
return this[e];
|
|
95
84
|
}, set(a) {
|
|
96
85
|
this[e] = a;
|
|
97
86
|
} };
|
|
98
|
-
return { get:
|
|
99
|
-
const
|
|
100
|
-
o?.call(this, a), this.requestUpdate(t,
|
|
87
|
+
return { get: r, set(a) {
|
|
88
|
+
const l = r?.call(this);
|
|
89
|
+
o?.call(this, a), this.requestUpdate(t, l, i);
|
|
101
90
|
}, configurable: !0, enumerable: !0 };
|
|
102
91
|
}
|
|
103
92
|
static getPropertyOptions(t) {
|
|
@@ -105,38 +94,38 @@ let k = class extends HTMLElement {
|
|
|
105
94
|
}
|
|
106
95
|
static _$Ei() {
|
|
107
96
|
if (this.hasOwnProperty(U("elementProperties"))) return;
|
|
108
|
-
const t =
|
|
97
|
+
const t = le(this);
|
|
109
98
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
110
99
|
}
|
|
111
100
|
static finalize() {
|
|
112
101
|
if (this.hasOwnProperty(U("finalized"))) return;
|
|
113
102
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
|
|
114
|
-
const e = this.properties,
|
|
115
|
-
for (const
|
|
103
|
+
const e = this.properties, i = [...ae(e), ...ne(e)];
|
|
104
|
+
for (const r of i) this.createProperty(r, e[r]);
|
|
116
105
|
}
|
|
117
106
|
const t = this[Symbol.metadata];
|
|
118
107
|
if (t !== null) {
|
|
119
108
|
const e = litPropertyMetadata.get(t);
|
|
120
|
-
if (e !== void 0) for (const [
|
|
109
|
+
if (e !== void 0) for (const [i, r] of e) this.elementProperties.set(i, r);
|
|
121
110
|
}
|
|
122
111
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
123
|
-
for (const [e,
|
|
124
|
-
const
|
|
125
|
-
|
|
112
|
+
for (const [e, i] of this.elementProperties) {
|
|
113
|
+
const r = this._$Eu(e, i);
|
|
114
|
+
r !== void 0 && this._$Eh.set(r, e);
|
|
126
115
|
}
|
|
127
116
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
128
117
|
}
|
|
129
118
|
static finalizeStyles(t) {
|
|
130
119
|
const e = [];
|
|
131
120
|
if (Array.isArray(t)) {
|
|
132
|
-
const
|
|
133
|
-
for (const
|
|
121
|
+
const i = new Set(t.flat(1 / 0).reverse());
|
|
122
|
+
for (const r of i) e.unshift(Ct(r));
|
|
134
123
|
} else t !== void 0 && e.push(Ct(t));
|
|
135
124
|
return e;
|
|
136
125
|
}
|
|
137
126
|
static _$Eu(t, e) {
|
|
138
|
-
const
|
|
139
|
-
return
|
|
127
|
+
const i = e.attribute;
|
|
128
|
+
return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
140
129
|
}
|
|
141
130
|
constructor() {
|
|
142
131
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -152,12 +141,12 @@ let k = class extends HTMLElement {
|
|
|
152
141
|
}
|
|
153
142
|
_$E_() {
|
|
154
143
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
155
|
-
for (const
|
|
144
|
+
for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
156
145
|
t.size > 0 && (this._$Ep = t);
|
|
157
146
|
}
|
|
158
147
|
createRenderRoot() {
|
|
159
148
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
160
|
-
return
|
|
149
|
+
return ie(t, this.constructor.elementStyles), t;
|
|
161
150
|
}
|
|
162
151
|
connectedCallback() {
|
|
163
152
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((t) => t.hostConnected?.()));
|
|
@@ -167,35 +156,35 @@ let k = class extends HTMLElement {
|
|
|
167
156
|
disconnectedCallback() {
|
|
168
157
|
this._$EO?.forEach(((t) => t.hostDisconnected?.()));
|
|
169
158
|
}
|
|
170
|
-
attributeChangedCallback(t, e,
|
|
171
|
-
this._$AK(t,
|
|
159
|
+
attributeChangedCallback(t, e, i) {
|
|
160
|
+
this._$AK(t, i);
|
|
172
161
|
}
|
|
173
162
|
_$ET(t, e) {
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
176
|
-
const o = (
|
|
177
|
-
this._$Em = t, o == null ? this.removeAttribute(
|
|
163
|
+
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
|
164
|
+
if (r !== void 0 && i.reflect === !0) {
|
|
165
|
+
const o = (i.converter?.toAttribute !== void 0 ? i.converter : Z).toAttribute(e, i.type);
|
|
166
|
+
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
|
178
167
|
}
|
|
179
168
|
}
|
|
180
169
|
_$AK(t, e) {
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
const o =
|
|
184
|
-
this._$Em =
|
|
185
|
-
const
|
|
186
|
-
this[
|
|
170
|
+
const i = this.constructor, r = i._$Eh.get(t);
|
|
171
|
+
if (r !== void 0 && this._$Em !== r) {
|
|
172
|
+
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : Z;
|
|
173
|
+
this._$Em = r;
|
|
174
|
+
const l = a.fromAttribute(e, o.type);
|
|
175
|
+
this[r] = l ?? this._$Ej?.get(r) ?? l, this._$Em = null;
|
|
187
176
|
}
|
|
188
177
|
}
|
|
189
|
-
requestUpdate(t, e,
|
|
178
|
+
requestUpdate(t, e, i) {
|
|
190
179
|
if (t !== void 0) {
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
193
|
-
this.C(t, e,
|
|
180
|
+
const r = this.constructor, o = this[t];
|
|
181
|
+
if (i ??= r.getPropertyOptions(t), !((i.hasChanged ?? mt)(o, e) || i.useDefault && i.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(r._$Eu(t, i)))) return;
|
|
182
|
+
this.C(t, e, i);
|
|
194
183
|
}
|
|
195
184
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
196
185
|
}
|
|
197
|
-
C(t, e, { useDefault:
|
|
198
|
-
|
|
186
|
+
C(t, e, { useDefault: i, reflect: r, wrapped: o }, a) {
|
|
187
|
+
i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, a ?? e ?? this[t]), o !== !0 || a !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), r === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
|
|
199
188
|
}
|
|
200
189
|
async _$EP() {
|
|
201
190
|
this.isUpdatePending = !0;
|
|
@@ -214,21 +203,21 @@ let k = class extends HTMLElement {
|
|
|
214
203
|
if (!this.isUpdatePending) return;
|
|
215
204
|
if (!this.hasUpdated) {
|
|
216
205
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
217
|
-
for (const [
|
|
206
|
+
for (const [r, o] of this._$Ep) this[r] = o;
|
|
218
207
|
this._$Ep = void 0;
|
|
219
208
|
}
|
|
220
|
-
const
|
|
221
|
-
if (
|
|
222
|
-
const { wrapped: a } = o,
|
|
223
|
-
a !== !0 || this._$AL.has(
|
|
209
|
+
const i = this.constructor.elementProperties;
|
|
210
|
+
if (i.size > 0) for (const [r, o] of i) {
|
|
211
|
+
const { wrapped: a } = o, l = this[r];
|
|
212
|
+
a !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, o, l);
|
|
224
213
|
}
|
|
225
214
|
}
|
|
226
215
|
let t = !1;
|
|
227
216
|
const e = this._$AL;
|
|
228
217
|
try {
|
|
229
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach(((
|
|
230
|
-
} catch (
|
|
231
|
-
throw t = !1, this._$EM(),
|
|
218
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach(((i) => i.hostUpdate?.())), this.update(e)) : this._$EM();
|
|
219
|
+
} catch (i) {
|
|
220
|
+
throw t = !1, this._$EM(), i;
|
|
232
221
|
}
|
|
233
222
|
t && this._$AE(e);
|
|
234
223
|
}
|
|
@@ -258,72 +247,67 @@ let k = class extends HTMLElement {
|
|
|
258
247
|
}
|
|
259
248
|
};
|
|
260
249
|
k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[U("elementProperties")] = /* @__PURE__ */ new Map(), k[U("finalized")] = /* @__PURE__ */ new Map(), de?.({ ReactiveElement: k }), (J.reactiveElementVersions ??= []).push("2.1.1");
|
|
261
|
-
|
|
262
|
-
*
|
|
263
|
-
|
|
264
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
265
|
-
*/
|
|
266
|
-
const bt = globalThis, X = bt.trustedTypes, Tt = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ht = "$lit$", w = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + w, he = `<${Lt}>`, R = document, H = () => R.createComment(""), L = (s) => s === null || typeof s != "object" && typeof s != "function", yt = Array.isArray, pe = (s) => yt(s) || typeof s?.[Symbol.iterator] == "function", it = `[
|
|
267
|
-
\f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, It = /-->/g, Pt = />/g, T = RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
|
|
268
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Rt = /'/g, kt = /"/g, Bt = /^(?:script|style|textarea|title)$/i, fe = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), A = fe(1), C = Symbol.for("lit-noChange"), v = Symbol.for("lit-nothing"), Ot = /* @__PURE__ */ new WeakMap(), P = R.createTreeWalker(R, 129);
|
|
250
|
+
const bt = globalThis, X = bt.trustedTypes, Tt = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ht = "$lit$", w = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + w, he = `<${Lt}>`, R = document, H = () => R.createComment(""), L = (s) => s === null || typeof s != "object" && typeof s != "function", yt = Array.isArray, pe = (s) => yt(s) || typeof s?.[Symbol.iterator] == "function", rt = `[
|
|
251
|
+
\f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, It = /-->/g, Pt = />/g, T = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Rt = /'/g, kt = /"/g, Bt = /^(?:script|style|textarea|title)$/i, fe = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), A = fe(1), C = /* @__PURE__ */ Symbol.for("lit-noChange"), v = /* @__PURE__ */ Symbol.for("lit-nothing"), Ot = /* @__PURE__ */ new WeakMap(), P = R.createTreeWalker(R, 129);
|
|
269
253
|
function Ft(s, t) {
|
|
270
254
|
if (!yt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
271
255
|
return Tt !== void 0 ? Tt.createHTML(t) : t;
|
|
272
256
|
}
|
|
273
257
|
const ue = (s, t) => {
|
|
274
|
-
const e = s.length - 1,
|
|
275
|
-
let
|
|
276
|
-
for (let
|
|
277
|
-
const n = s[
|
|
278
|
-
let d, p,
|
|
279
|
-
for (; f < n.length && (a.lastIndex = f, p = a.exec(n), p !== null); ) f = a.lastIndex, a === z ? p[1] === "!--" ? a = It : p[1] !== void 0 ? a = Pt : p[2] !== void 0 ? (Bt.test(p[2]) && (
|
|
280
|
-
const u = a === T && s[
|
|
281
|
-
o += a === z ? n + he :
|
|
282
|
-
}
|
|
283
|
-
return [Ft(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")),
|
|
258
|
+
const e = s.length - 1, i = [];
|
|
259
|
+
let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", a = z;
|
|
260
|
+
for (let l = 0; l < e; l++) {
|
|
261
|
+
const n = s[l];
|
|
262
|
+
let d, p, c = -1, f = 0;
|
|
263
|
+
for (; f < n.length && (a.lastIndex = f, p = a.exec(n), p !== null); ) f = a.lastIndex, a === z ? p[1] === "!--" ? a = It : p[1] !== void 0 ? a = Pt : p[2] !== void 0 ? (Bt.test(p[2]) && (r = RegExp("</" + p[2], "g")), a = T) : p[3] !== void 0 && (a = T) : a === T ? p[0] === ">" ? (a = r ?? z, c = -1) : p[1] === void 0 ? c = -2 : (c = a.lastIndex - p[2].length, d = p[1], a = p[3] === void 0 ? T : p[3] === '"' ? kt : Rt) : a === kt || a === Rt ? a = T : a === It || a === Pt ? a = z : (a = T, r = void 0);
|
|
264
|
+
const u = a === T && s[l + 1].startsWith("/>") ? " " : "";
|
|
265
|
+
o += a === z ? n + he : c >= 0 ? (i.push(d), n.slice(0, c) + Ht + n.slice(c) + w + u) : n + w + (c === -2 ? l : u);
|
|
266
|
+
}
|
|
267
|
+
return [Ft(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
284
268
|
};
|
|
285
269
|
class B {
|
|
286
|
-
constructor({ strings: t, _$litType$: e },
|
|
287
|
-
let
|
|
270
|
+
constructor({ strings: t, _$litType$: e }, i) {
|
|
271
|
+
let r;
|
|
288
272
|
this.parts = [];
|
|
289
273
|
let o = 0, a = 0;
|
|
290
|
-
const
|
|
291
|
-
if (this.el = B.createElement(d,
|
|
292
|
-
const
|
|
293
|
-
|
|
274
|
+
const l = t.length - 1, n = this.parts, [d, p] = ue(t, e);
|
|
275
|
+
if (this.el = B.createElement(d, i), P.currentNode = this.el.content, e === 2 || e === 3) {
|
|
276
|
+
const c = this.el.content.firstChild;
|
|
277
|
+
c.replaceWith(...c.childNodes);
|
|
294
278
|
}
|
|
295
|
-
for (; (
|
|
296
|
-
if (
|
|
297
|
-
if (
|
|
298
|
-
const f = p[a++], u =
|
|
299
|
-
n.push({ type: 1, index: o, name: b[2], strings: u, ctor: b[1] === "." ? me : b[1] === "?" ? be : b[1] === "@" ? ye : Q }),
|
|
300
|
-
} else
|
|
301
|
-
if (Bt.test(
|
|
302
|
-
const
|
|
279
|
+
for (; (r = P.nextNode()) !== null && n.length < l; ) {
|
|
280
|
+
if (r.nodeType === 1) {
|
|
281
|
+
if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(Ht)) {
|
|
282
|
+
const f = p[a++], u = r.getAttribute(c).split(w), b = /([.?@])?(.*)/.exec(f);
|
|
283
|
+
n.push({ type: 1, index: o, name: b[2], strings: u, ctor: b[1] === "." ? me : b[1] === "?" ? be : b[1] === "@" ? ye : Q }), r.removeAttribute(c);
|
|
284
|
+
} else c.startsWith(w) && (n.push({ type: 6, index: o }), r.removeAttribute(c));
|
|
285
|
+
if (Bt.test(r.tagName)) {
|
|
286
|
+
const c = r.textContent.split(w), f = c.length - 1;
|
|
303
287
|
if (f > 0) {
|
|
304
|
-
|
|
305
|
-
for (let u = 0; u < f; u++)
|
|
306
|
-
|
|
288
|
+
r.textContent = X ? X.emptyScript : "";
|
|
289
|
+
for (let u = 0; u < f; u++) r.append(c[u], H()), P.nextNode(), n.push({ type: 2, index: ++o });
|
|
290
|
+
r.append(c[f], H());
|
|
307
291
|
}
|
|
308
292
|
}
|
|
309
|
-
} else if (
|
|
293
|
+
} else if (r.nodeType === 8) if (r.data === Lt) n.push({ type: 2, index: o });
|
|
310
294
|
else {
|
|
311
|
-
let
|
|
312
|
-
for (; (
|
|
295
|
+
let c = -1;
|
|
296
|
+
for (; (c = r.data.indexOf(w, c + 1)) !== -1; ) n.push({ type: 7, index: o }), c += w.length - 1;
|
|
313
297
|
}
|
|
314
298
|
o++;
|
|
315
299
|
}
|
|
316
300
|
}
|
|
317
301
|
static createElement(t, e) {
|
|
318
|
-
const
|
|
319
|
-
return
|
|
302
|
+
const i = R.createElement("template");
|
|
303
|
+
return i.innerHTML = t, i;
|
|
320
304
|
}
|
|
321
305
|
}
|
|
322
|
-
function O(s, t, e = s,
|
|
306
|
+
function O(s, t, e = s, i) {
|
|
323
307
|
if (t === C) return t;
|
|
324
|
-
let
|
|
308
|
+
let r = i !== void 0 ? e._$Co?.[i] : e._$Cl;
|
|
325
309
|
const o = L(t) ? void 0 : t._$litDirective$;
|
|
326
|
-
return
|
|
310
|
+
return r?.constructor !== o && (r?._$AO?.(!1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ??= [])[i] = r : e._$Cl = r), r !== void 0 && (t = O(s, r._$AS(s, t.values), r, i)), t;
|
|
327
311
|
}
|
|
328
312
|
let ve = class {
|
|
329
313
|
constructor(t, e) {
|
|
@@ -336,29 +320,29 @@ let ve = class {
|
|
|
336
320
|
return this._$AM._$AU;
|
|
337
321
|
}
|
|
338
322
|
u(t) {
|
|
339
|
-
const { el: { content: e }, parts:
|
|
340
|
-
P.currentNode =
|
|
341
|
-
let o = P.nextNode(), a = 0,
|
|
323
|
+
const { el: { content: e }, parts: i } = this._$AD, r = (t?.creationScope ?? R).importNode(e, !0);
|
|
324
|
+
P.currentNode = r;
|
|
325
|
+
let o = P.nextNode(), a = 0, l = 0, n = i[0];
|
|
342
326
|
for (; n !== void 0; ) {
|
|
343
327
|
if (a === n.index) {
|
|
344
328
|
let d;
|
|
345
|
-
n.type === 2 ? d = new M(o, o.nextSibling, this, t) : n.type === 1 ? d = new n.ctor(o, n.name, n.strings, this, t) : n.type === 6 && (d = new ge(o, this, t)), this._$AV.push(d), n =
|
|
329
|
+
n.type === 2 ? d = new M(o, o.nextSibling, this, t) : n.type === 1 ? d = new n.ctor(o, n.name, n.strings, this, t) : n.type === 6 && (d = new ge(o, this, t)), this._$AV.push(d), n = i[++l];
|
|
346
330
|
}
|
|
347
331
|
a !== n?.index && (o = P.nextNode(), a++);
|
|
348
332
|
}
|
|
349
|
-
return P.currentNode = R,
|
|
333
|
+
return P.currentNode = R, r;
|
|
350
334
|
}
|
|
351
335
|
p(t) {
|
|
352
336
|
let e = 0;
|
|
353
|
-
for (const
|
|
337
|
+
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
354
338
|
}
|
|
355
339
|
};
|
|
356
340
|
class M {
|
|
357
341
|
get _$AU() {
|
|
358
342
|
return this._$AM?._$AU ?? this._$Cv;
|
|
359
343
|
}
|
|
360
|
-
constructor(t, e,
|
|
361
|
-
this.type = 2, this._$AH = v, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM =
|
|
344
|
+
constructor(t, e, i, r) {
|
|
345
|
+
this.type = 2, this._$AH = v, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = r?.isConnected ?? !0;
|
|
362
346
|
}
|
|
363
347
|
get parentNode() {
|
|
364
348
|
let t = this._$AA.parentNode;
|
|
@@ -384,10 +368,10 @@ class M {
|
|
|
384
368
|
this._$AH !== v && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(R.createTextNode(t)), this._$AH = t;
|
|
385
369
|
}
|
|
386
370
|
$(t) {
|
|
387
|
-
const { values: e, _$litType$:
|
|
388
|
-
if (this._$AH?._$AD ===
|
|
371
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = B.createElement(Ft(i.h, i.h[0]), this.options)), i);
|
|
372
|
+
if (this._$AH?._$AD === r) this._$AH.p(e);
|
|
389
373
|
else {
|
|
390
|
-
const o = new ve(
|
|
374
|
+
const o = new ve(r, this), a = o.u(this.options);
|
|
391
375
|
o.p(e), this.T(a), this._$AH = o;
|
|
392
376
|
}
|
|
393
377
|
}
|
|
@@ -398,14 +382,14 @@ class M {
|
|
|
398
382
|
k(t) {
|
|
399
383
|
yt(this._$AH) || (this._$AH = [], this._$AR());
|
|
400
384
|
const e = this._$AH;
|
|
401
|
-
let
|
|
402
|
-
for (const o of t)
|
|
403
|
-
|
|
385
|
+
let i, r = 0;
|
|
386
|
+
for (const o of t) r === e.length ? e.push(i = new M(this.O(H()), this.O(H()), this, this.options)) : i = e[r], i._$AI(o), r++;
|
|
387
|
+
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
|
404
388
|
}
|
|
405
389
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
406
390
|
for (this._$AP?.(!1, !0, e); t !== this._$AB; ) {
|
|
407
|
-
const
|
|
408
|
-
t.remove(), t =
|
|
391
|
+
const i = t.nextSibling;
|
|
392
|
+
t.remove(), t = i;
|
|
409
393
|
}
|
|
410
394
|
}
|
|
411
395
|
setConnected(t) {
|
|
@@ -419,19 +403,19 @@ class Q {
|
|
|
419
403
|
get _$AU() {
|
|
420
404
|
return this._$AM._$AU;
|
|
421
405
|
}
|
|
422
|
-
constructor(t, e,
|
|
423
|
-
this.type = 1, this._$AH = v, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
|
406
|
+
constructor(t, e, i, r, o) {
|
|
407
|
+
this.type = 1, this._$AH = v, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = v;
|
|
424
408
|
}
|
|
425
|
-
_$AI(t, e = this,
|
|
409
|
+
_$AI(t, e = this, i, r) {
|
|
426
410
|
const o = this.strings;
|
|
427
411
|
let a = !1;
|
|
428
412
|
if (o === void 0) t = O(this, t, e, 0), a = !L(t) || t !== this._$AH && t !== C, a && (this._$AH = t);
|
|
429
413
|
else {
|
|
430
|
-
const
|
|
414
|
+
const l = t;
|
|
431
415
|
let n, d;
|
|
432
|
-
for (t = o[0], n = 0; n < o.length - 1; n++) d = O(this,
|
|
416
|
+
for (t = o[0], n = 0; n < o.length - 1; n++) d = O(this, l[i + n], e, n), d === C && (d = this._$AH[n]), a ||= !L(d) || d !== this._$AH[n], d === v ? t = v : t !== v && (t += (d ?? "") + o[n + 1]), this._$AH[n] = d;
|
|
433
417
|
}
|
|
434
|
-
a && !
|
|
418
|
+
a && !r && this.j(t);
|
|
435
419
|
}
|
|
436
420
|
j(t) {
|
|
437
421
|
t === v ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
@@ -454,21 +438,21 @@ class be extends Q {
|
|
|
454
438
|
}
|
|
455
439
|
}
|
|
456
440
|
class ye extends Q {
|
|
457
|
-
constructor(t, e,
|
|
458
|
-
super(t, e,
|
|
441
|
+
constructor(t, e, i, r, o) {
|
|
442
|
+
super(t, e, i, r, o), this.type = 5;
|
|
459
443
|
}
|
|
460
444
|
_$AI(t, e = this) {
|
|
461
445
|
if ((t = O(this, t, e, 0) ?? v) === C) return;
|
|
462
|
-
const
|
|
463
|
-
|
|
446
|
+
const i = this._$AH, r = t === v && i !== v || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== v && (i === v || r);
|
|
447
|
+
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
464
448
|
}
|
|
465
449
|
handleEvent(t) {
|
|
466
450
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
467
451
|
}
|
|
468
452
|
}
|
|
469
453
|
class ge {
|
|
470
|
-
constructor(t, e,
|
|
471
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
454
|
+
constructor(t, e, i) {
|
|
455
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
472
456
|
}
|
|
473
457
|
get _$AU() {
|
|
474
458
|
return this._$AM._$AU;
|
|
@@ -480,19 +464,14 @@ class ge {
|
|
|
480
464
|
const _e = { I: M }, $e = bt.litHtmlPolyfillSupport;
|
|
481
465
|
$e?.(B, M), (bt.litHtmlVersions ??= []).push("3.3.1");
|
|
482
466
|
const xe = (s, t, e) => {
|
|
483
|
-
const
|
|
484
|
-
let
|
|
485
|
-
if (
|
|
467
|
+
const i = e?.renderBefore ?? t;
|
|
468
|
+
let r = i._$litPart$;
|
|
469
|
+
if (r === void 0) {
|
|
486
470
|
const o = e?.renderBefore ?? null;
|
|
487
|
-
|
|
471
|
+
i._$litPart$ = r = new M(t.insertBefore(H(), o), o, void 0, e ?? {});
|
|
488
472
|
}
|
|
489
|
-
return
|
|
473
|
+
return r._$AI(s), r;
|
|
490
474
|
};
|
|
491
|
-
/**
|
|
492
|
-
* @license
|
|
493
|
-
* Copyright 2017 Google LLC
|
|
494
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
495
|
-
*/
|
|
496
475
|
const gt = globalThis;
|
|
497
476
|
let g = class extends k {
|
|
498
477
|
constructor() {
|
|
@@ -520,107 +499,67 @@ g._$litElement$ = !0, g.finalized = !0, gt.litElementHydrateSupport?.({ LitEleme
|
|
|
520
499
|
const Ae = gt.litElementPolyfillSupport;
|
|
521
500
|
Ae?.({ LitElement: g });
|
|
522
501
|
(gt.litElementVersions ??= []).push("4.2.1");
|
|
523
|
-
/**
|
|
524
|
-
* @license
|
|
525
|
-
* Copyright 2017 Google LLC
|
|
526
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
527
|
-
*/
|
|
528
502
|
const S = (s) => (t, e) => {
|
|
529
503
|
e !== void 0 ? e.addInitializer((() => {
|
|
530
504
|
customElements.define(s, t);
|
|
531
505
|
})) : customElements.define(s, t);
|
|
532
506
|
};
|
|
533
|
-
/**
|
|
534
|
-
* @license
|
|
535
|
-
* Copyright 2017 Google LLC
|
|
536
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
537
|
-
*/
|
|
538
507
|
const we = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: mt }, Ce = (s = we, t, e) => {
|
|
539
|
-
const { kind:
|
|
540
|
-
let o = globalThis.litPropertyMetadata.get(
|
|
541
|
-
if (o === void 0 && globalThis.litPropertyMetadata.set(
|
|
508
|
+
const { kind: i, metadata: r } = e;
|
|
509
|
+
let o = globalThis.litPropertyMetadata.get(r);
|
|
510
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), i === "setter" && ((s = Object.create(s)).wrapped = !0), o.set(e.name, s), i === "accessor") {
|
|
542
511
|
const { name: a } = e;
|
|
543
|
-
return { set(
|
|
512
|
+
return { set(l) {
|
|
544
513
|
const n = t.get.call(this);
|
|
545
|
-
t.set.call(this,
|
|
546
|
-
}, init(
|
|
547
|
-
return
|
|
514
|
+
t.set.call(this, l), this.requestUpdate(a, n, s);
|
|
515
|
+
}, init(l) {
|
|
516
|
+
return l !== void 0 && this.C(a, void 0, s, l), l;
|
|
548
517
|
} };
|
|
549
518
|
}
|
|
550
|
-
if (
|
|
519
|
+
if (i === "setter") {
|
|
551
520
|
const { name: a } = e;
|
|
552
|
-
return function(
|
|
521
|
+
return function(l) {
|
|
553
522
|
const n = this[a];
|
|
554
|
-
t.call(this,
|
|
523
|
+
t.call(this, l), this.requestUpdate(a, n, s);
|
|
555
524
|
};
|
|
556
525
|
}
|
|
557
|
-
throw Error("Unsupported decorator location: " +
|
|
526
|
+
throw Error("Unsupported decorator location: " + i);
|
|
558
527
|
};
|
|
559
528
|
function m(s) {
|
|
560
|
-
return (t, e) => typeof e == "object" ? Ce(s, t, e) : ((
|
|
561
|
-
const a =
|
|
562
|
-
return
|
|
529
|
+
return (t, e) => typeof e == "object" ? Ce(s, t, e) : ((i, r, o) => {
|
|
530
|
+
const a = r.hasOwnProperty(o);
|
|
531
|
+
return r.constructor.createProperty(o, i), a ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
|
563
532
|
})(s, t, e);
|
|
564
533
|
}
|
|
565
|
-
/**
|
|
566
|
-
* @license
|
|
567
|
-
* Copyright 2017 Google LLC
|
|
568
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
569
|
-
*/
|
|
570
534
|
function F(s) {
|
|
571
535
|
return m({ ...s, state: !0, attribute: !1 });
|
|
572
536
|
}
|
|
573
|
-
/**
|
|
574
|
-
* @license
|
|
575
|
-
* Copyright 2017 Google LLC
|
|
576
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
577
|
-
*/
|
|
578
537
|
const _t = (s, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(s, t, e), e);
|
|
579
|
-
/**
|
|
580
|
-
* @license
|
|
581
|
-
* Copyright 2017 Google LLC
|
|
582
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
583
|
-
*/
|
|
584
538
|
function tt(s, t) {
|
|
585
|
-
return (e,
|
|
539
|
+
return (e, i, r) => {
|
|
586
540
|
const o = (a) => a.renderRoot?.querySelector(s) ?? null;
|
|
587
|
-
return _t(e,
|
|
541
|
+
return _t(e, i, { get() {
|
|
588
542
|
return o(this);
|
|
589
543
|
} });
|
|
590
544
|
};
|
|
591
545
|
}
|
|
592
|
-
/**
|
|
593
|
-
* @license
|
|
594
|
-
* Copyright 2021 Google LLC
|
|
595
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
596
|
-
*/
|
|
597
546
|
function jt(s) {
|
|
598
547
|
return (t, e) => {
|
|
599
|
-
const { slot:
|
|
548
|
+
const { slot: i, selector: r } = s ?? {}, o = "slot" + (i ? `[name=${i}]` : ":not([name])");
|
|
600
549
|
return _t(t, e, { get() {
|
|
601
|
-
const a = this.renderRoot?.querySelector(o),
|
|
602
|
-
return
|
|
550
|
+
const a = this.renderRoot?.querySelector(o), l = a?.assignedElements(s) ?? [];
|
|
551
|
+
return r === void 0 ? l : l.filter(((n) => n.matches(r)));
|
|
603
552
|
} });
|
|
604
553
|
};
|
|
605
554
|
}
|
|
606
|
-
/**
|
|
607
|
-
* @license
|
|
608
|
-
* Copyright 2017 Google LLC
|
|
609
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
610
|
-
*/
|
|
611
555
|
function Ee(s) {
|
|
612
556
|
return (t, e) => {
|
|
613
|
-
const { slot:
|
|
557
|
+
const { slot: i } = s ?? {}, r = "slot" + (i ? `[name=${i}]` : ":not([name])");
|
|
614
558
|
return _t(t, e, { get() {
|
|
615
|
-
return this.renderRoot?.querySelector(
|
|
559
|
+
return this.renderRoot?.querySelector(r)?.assignedNodes(s) ?? [];
|
|
616
560
|
} });
|
|
617
561
|
};
|
|
618
562
|
}
|
|
619
|
-
/**
|
|
620
|
-
* @license
|
|
621
|
-
* Copyright 2017 Google LLC
|
|
622
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
623
|
-
*/
|
|
624
563
|
const Wt = { ATTRIBUTE: 1, CHILD: 2 }, Vt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
|
625
564
|
class Gt {
|
|
626
565
|
constructor(t) {
|
|
@@ -628,8 +567,8 @@ class Gt {
|
|
|
628
567
|
get _$AU() {
|
|
629
568
|
return this._$AM._$AU;
|
|
630
569
|
}
|
|
631
|
-
_$AT(t, e,
|
|
632
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
570
|
+
_$AT(t, e, i) {
|
|
571
|
+
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
|
633
572
|
}
|
|
634
573
|
_$AS(t, e) {
|
|
635
574
|
return this.update(t, e);
|
|
@@ -638,27 +577,22 @@ class Gt {
|
|
|
638
577
|
return this.render(...e);
|
|
639
578
|
}
|
|
640
579
|
}
|
|
641
|
-
/**
|
|
642
|
-
* @license
|
|
643
|
-
* Copyright 2020 Google LLC
|
|
644
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
645
|
-
*/
|
|
646
580
|
const { I: Se } = _e, Mt = () => document.createComment(""), D = (s, t, e) => {
|
|
647
|
-
const
|
|
581
|
+
const i = s._$AA.parentNode, r = t === void 0 ? s._$AB : t._$AA;
|
|
648
582
|
if (e === void 0) {
|
|
649
|
-
const o =
|
|
583
|
+
const o = i.insertBefore(Mt(), r), a = i.insertBefore(Mt(), r);
|
|
650
584
|
e = new Se(o, a, s, s.options);
|
|
651
585
|
} else {
|
|
652
|
-
const o = e._$AB.nextSibling, a = e._$AM,
|
|
653
|
-
if (
|
|
586
|
+
const o = e._$AB.nextSibling, a = e._$AM, l = a !== s;
|
|
587
|
+
if (l) {
|
|
654
588
|
let n;
|
|
655
589
|
e._$AQ?.(s), e._$AM = s, e._$AP !== void 0 && (n = s._$AU) !== a._$AU && e._$AP(n);
|
|
656
590
|
}
|
|
657
|
-
if (o !==
|
|
591
|
+
if (o !== r || l) {
|
|
658
592
|
let n = e._$AA;
|
|
659
593
|
for (; n !== o; ) {
|
|
660
594
|
const d = n.nextSibling;
|
|
661
|
-
|
|
595
|
+
i.insertBefore(n, r), n = d;
|
|
662
596
|
}
|
|
663
597
|
}
|
|
664
598
|
}
|
|
@@ -666,72 +600,62 @@ const { I: Se } = _e, Mt = () => document.createComment(""), D = (s, t, e) => {
|
|
|
666
600
|
}, I = (s, t, e = s) => (s._$AI(t, e), s), Te = {}, Ie = (s, t = Te) => s._$AH = t, Pe = (s) => s._$AH, st = (s) => {
|
|
667
601
|
s._$AR(), s._$AA.remove();
|
|
668
602
|
};
|
|
669
|
-
/**
|
|
670
|
-
* @license
|
|
671
|
-
* Copyright 2017 Google LLC
|
|
672
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
673
|
-
*/
|
|
674
603
|
const Nt = (s, t, e) => {
|
|
675
|
-
const
|
|
676
|
-
for (let
|
|
677
|
-
return
|
|
604
|
+
const i = /* @__PURE__ */ new Map();
|
|
605
|
+
for (let r = t; r <= e; r++) i.set(s[r], r);
|
|
606
|
+
return i;
|
|
678
607
|
}, Re = Vt(class extends Gt {
|
|
679
608
|
constructor(s) {
|
|
680
609
|
if (super(s), s.type !== Wt.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
681
610
|
}
|
|
682
611
|
dt(s, t, e) {
|
|
683
|
-
let
|
|
684
|
-
e === void 0 ? e = t : t !== void 0 && (
|
|
685
|
-
const
|
|
612
|
+
let i;
|
|
613
|
+
e === void 0 ? e = t : t !== void 0 && (i = t);
|
|
614
|
+
const r = [], o = [];
|
|
686
615
|
let a = 0;
|
|
687
|
-
for (const
|
|
688
|
-
return { values: o, keys:
|
|
616
|
+
for (const l of s) r[a] = i ? i(l, a) : a, o[a] = e(l, a), a++;
|
|
617
|
+
return { values: o, keys: r };
|
|
689
618
|
}
|
|
690
619
|
render(s, t, e) {
|
|
691
620
|
return this.dt(s, t, e).values;
|
|
692
621
|
}
|
|
693
|
-
update(s, [t, e,
|
|
694
|
-
const
|
|
695
|
-
if (!Array.isArray(
|
|
696
|
-
const
|
|
697
|
-
let d, p,
|
|
698
|
-
for (;
|
|
699
|
-
else if (
|
|
700
|
-
else if (c
|
|
701
|
-
else if (
|
|
702
|
-
else if (c
|
|
703
|
-
else if (
|
|
704
|
-
else if (d === void 0 && (d = Nt(a, u, b), p = Nt(
|
|
705
|
-
const x = p.get(a[u]),
|
|
706
|
-
if (
|
|
707
|
-
const At = D(s,
|
|
622
|
+
update(s, [t, e, i]) {
|
|
623
|
+
const r = Pe(s), { values: o, keys: a } = this.dt(t, e, i);
|
|
624
|
+
if (!Array.isArray(r)) return this.ut = a, o;
|
|
625
|
+
const l = this.ut ??= [], n = [];
|
|
626
|
+
let d, p, c = 0, f = r.length - 1, u = 0, b = o.length - 1;
|
|
627
|
+
for (; c <= f && u <= b; ) if (r[c] === null) c++;
|
|
628
|
+
else if (r[f] === null) f--;
|
|
629
|
+
else if (l[c] === a[u]) n[u] = I(r[c], o[u]), c++, u++;
|
|
630
|
+
else if (l[f] === a[b]) n[b] = I(r[f], o[b]), f--, b--;
|
|
631
|
+
else if (l[c] === a[b]) n[b] = I(r[c], o[b]), D(s, n[b + 1], r[c]), c++, b--;
|
|
632
|
+
else if (l[f] === a[u]) n[u] = I(r[f], o[u]), D(s, r[c], r[f]), f--, u++;
|
|
633
|
+
else if (d === void 0 && (d = Nt(a, u, b), p = Nt(l, c, f)), d.has(l[c])) if (d.has(l[f])) {
|
|
634
|
+
const x = p.get(a[u]), it = x !== void 0 ? r[x] : null;
|
|
635
|
+
if (it === null) {
|
|
636
|
+
const At = D(s, r[c]);
|
|
708
637
|
I(At, o[u]), n[u] = At;
|
|
709
|
-
} else n[u] = I(
|
|
638
|
+
} else n[u] = I(it, o[u]), D(s, r[c], it), r[x] = null;
|
|
710
639
|
u++;
|
|
711
|
-
} else st(
|
|
712
|
-
else st(
|
|
640
|
+
} else st(r[f]), f--;
|
|
641
|
+
else st(r[c]), c++;
|
|
713
642
|
for (; u <= b; ) {
|
|
714
643
|
const x = D(s, n[b + 1]);
|
|
715
644
|
I(x, o[u]), n[u++] = x;
|
|
716
645
|
}
|
|
717
|
-
for (;
|
|
718
|
-
const x =
|
|
646
|
+
for (; c <= f; ) {
|
|
647
|
+
const x = r[c++];
|
|
719
648
|
x !== null && st(x);
|
|
720
649
|
}
|
|
721
650
|
return this.ut = a, Ie(s, n), C;
|
|
722
651
|
}
|
|
723
652
|
});
|
|
724
|
-
function h(s, t, e,
|
|
725
|
-
var
|
|
726
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(s, t, e,
|
|
727
|
-
else for (var
|
|
728
|
-
return
|
|
653
|
+
function h(s, t, e, i) {
|
|
654
|
+
var r = arguments.length, o = r < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, e) : i, a;
|
|
655
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(s, t, e, i);
|
|
656
|
+
else for (var l = s.length - 1; l >= 0; l--) (a = s[l]) && (o = (r < 3 ? a(o) : r > 3 ? a(t, e, o) : a(t, e)) || o);
|
|
657
|
+
return r > 3 && o && Object.defineProperty(t, e, o), o;
|
|
729
658
|
}
|
|
730
|
-
/**
|
|
731
|
-
* @license
|
|
732
|
-
* Copyright 2022 Google LLC
|
|
733
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
734
|
-
*/
|
|
735
659
|
class ke extends g {
|
|
736
660
|
render() {
|
|
737
661
|
return A`<slot></slot>`;
|
|
@@ -744,29 +668,14 @@ class ke extends g {
|
|
|
744
668
|
this.setAttribute("aria-hidden", "true");
|
|
745
669
|
}
|
|
746
670
|
}
|
|
747
|
-
/**
|
|
748
|
-
* @license
|
|
749
|
-
* Copyright 2024 Google LLC
|
|
750
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
751
|
-
*/
|
|
752
671
|
const Oe = $`:host{font-size:var(--mdif4-icon-size, 24px);width:var(--mdif4-icon-size, 24px);height:var(--mdif4-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--mdif4-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
|
|
753
672
|
`;
|
|
754
|
-
/**
|
|
755
|
-
* @license
|
|
756
|
-
* Copyright 2022 Google LLC
|
|
757
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
758
|
-
*/
|
|
759
673
|
let at = class extends ke {
|
|
760
674
|
};
|
|
761
675
|
at.styles = [Oe];
|
|
762
676
|
at = h([
|
|
763
677
|
S("mdif4-icon")
|
|
764
678
|
], at);
|
|
765
|
-
/**
|
|
766
|
-
* @license
|
|
767
|
-
* Copyright 2023 Google LLC
|
|
768
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
769
|
-
*/
|
|
770
679
|
class et extends g {
|
|
771
680
|
constructor() {
|
|
772
681
|
super(...arguments), this.inset = !1, this.insetStart = !1, this.insetEnd = !1;
|
|
@@ -781,29 +690,14 @@ h([
|
|
|
781
690
|
h([
|
|
782
691
|
m({ type: Boolean, reflect: !0, attribute: "inset-end" })
|
|
783
692
|
], et.prototype, "insetEnd", void 0);
|
|
784
|
-
/**
|
|
785
|
-
* @license
|
|
786
|
-
* Copyright 2024 Google LLC
|
|
787
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
788
|
-
*/
|
|
789
693
|
const Me = $`:host{box-sizing:border-box;color:var(--mdif4-divider-color, var(--mdif4-sys-color-outline-variant, #cac4d0));display:flex;height:var(--mdif4-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}
|
|
790
694
|
`;
|
|
791
|
-
/**
|
|
792
|
-
* @license
|
|
793
|
-
* Copyright 2023 Google LLC
|
|
794
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
795
|
-
*/
|
|
796
695
|
let nt = class extends et {
|
|
797
696
|
};
|
|
798
697
|
nt.styles = [Me];
|
|
799
698
|
nt = h([
|
|
800
699
|
S("mdif4-divider")
|
|
801
700
|
], nt);
|
|
802
|
-
/**
|
|
803
|
-
* @license
|
|
804
|
-
* Copyright 2022 Google LLC
|
|
805
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
806
|
-
*/
|
|
807
701
|
class Ne extends g {
|
|
808
702
|
connectedCallback() {
|
|
809
703
|
super.connectedCallback(), this.setAttribute("aria-hidden", "true");
|
|
@@ -812,30 +706,15 @@ class Ne extends g {
|
|
|
812
706
|
return A`<span class="shadow"></span>`;
|
|
813
707
|
}
|
|
814
708
|
}
|
|
815
|
-
/**
|
|
816
|
-
* @license
|
|
817
|
-
* Copyright 2024 Google LLC
|
|
818
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
819
|
-
*/
|
|
820
709
|
const ze = $`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--mdif4-elevation-level, 0);--_shadow-color: var(--mdif4-elevation-shadow-color, var(--mdif4-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}
|
|
821
710
|
`;
|
|
822
|
-
|
|
823
|
-
* @license
|
|
824
|
-
* Copyright 2022 Google LLC
|
|
825
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
826
|
-
*/
|
|
827
|
-
let ct = class extends Ne {
|
|
711
|
+
let lt = class extends Ne {
|
|
828
712
|
};
|
|
829
|
-
|
|
830
|
-
|
|
713
|
+
lt.styles = [ze];
|
|
714
|
+
lt = h([
|
|
831
715
|
S("mdif4-elevation")
|
|
832
|
-
],
|
|
833
|
-
|
|
834
|
-
* @license
|
|
835
|
-
* Copyright 2023 Google LLC
|
|
836
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
837
|
-
*/
|
|
838
|
-
const Kt = Symbol("attachableController");
|
|
716
|
+
], lt);
|
|
717
|
+
const Kt = /* @__PURE__ */ Symbol("attachableController");
|
|
839
718
|
let qt;
|
|
840
719
|
qt = new MutationObserver((s) => {
|
|
841
720
|
for (const t of s)
|
|
@@ -883,11 +762,6 @@ class Yt {
|
|
|
883
762
|
this.onControlChange(this.currentControl, t), this.currentControl = t;
|
|
884
763
|
}
|
|
885
764
|
}
|
|
886
|
-
/**
|
|
887
|
-
* @license
|
|
888
|
-
* Copyright 2021 Google LLC
|
|
889
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
890
|
-
*/
|
|
891
765
|
const De = ["focusin", "focusout", "pointerdown"];
|
|
892
766
|
class $t extends g {
|
|
893
767
|
constructor() {
|
|
@@ -932,8 +806,8 @@ class $t extends g {
|
|
|
932
806
|
}
|
|
933
807
|
}
|
|
934
808
|
onControlChange(t, e) {
|
|
935
|
-
for (const
|
|
936
|
-
t?.removeEventListener(
|
|
809
|
+
for (const i of De)
|
|
810
|
+
t?.removeEventListener(i, this), e?.addEventListener(i, this);
|
|
937
811
|
}
|
|
938
812
|
update(t) {
|
|
939
813
|
t.has("visible") && this.dispatchEvent(new Event("visibility-changed")), super.update(t);
|
|
@@ -945,30 +819,15 @@ h([
|
|
|
945
819
|
h([
|
|
946
820
|
m({ type: Boolean, reflect: !0 })
|
|
947
821
|
], $t.prototype, "inward", void 0);
|
|
948
|
-
const zt = Symbol("handledByFocusRing");
|
|
949
|
-
/**
|
|
950
|
-
* @license
|
|
951
|
-
* Copyright 2024 Google LLC
|
|
952
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
953
|
-
*/
|
|
822
|
+
const zt = /* @__PURE__ */ Symbol("handledByFocusRing");
|
|
954
823
|
const Ue = $`:host{animation-delay:0s,calc(var(--mdif4-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--mdif4-focus-ring-duration, 600ms)*.25),calc(var(--mdif4-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--mdif4-focus-ring-color, var(--mdif4-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--mdif4-focus-ring-shape-end-end, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) + var(--mdif4-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--mdif4-focus-ring-shape-end-start, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) + var(--mdif4-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--mdif4-focus-ring-shape-start-end, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) + var(--mdif4-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--mdif4-focus-ring-shape-start-start, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) + var(--mdif4-focus-ring-outward-offset, 2px));inset:calc(-1*var(--mdif4-focus-ring-outward-offset, 2px));outline:var(--mdif4-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--mdif4-focus-ring-shape-end-end, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) - var(--mdif4-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--mdif4-focus-ring-shape-end-start, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) - var(--mdif4-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--mdif4-focus-ring-shape-start-end, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) - var(--mdif4-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--mdif4-focus-ring-shape-start-start, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) - var(--mdif4-focus-ring-inward-offset, 0px));border:var(--mdif4-focus-ring-width, 3px) solid currentColor;inset:var(--mdif4-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--mdif4-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--mdif4-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--mdif4-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--mdif4-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
|
|
955
824
|
`;
|
|
956
|
-
|
|
957
|
-
* @license
|
|
958
|
-
* Copyright 2021 Google LLC
|
|
959
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
960
|
-
*/
|
|
961
|
-
let lt = class extends $t {
|
|
825
|
+
let ct = class extends $t {
|
|
962
826
|
};
|
|
963
|
-
|
|
964
|
-
|
|
827
|
+
ct.styles = [Ue];
|
|
828
|
+
ct = h([
|
|
965
829
|
S("mdif4-focus-ring")
|
|
966
|
-
],
|
|
967
|
-
/**
|
|
968
|
-
* @license
|
|
969
|
-
* Copyright 2018 Google LLC
|
|
970
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
971
|
-
*/
|
|
830
|
+
], ct);
|
|
972
831
|
const Zt = Vt(class extends Gt {
|
|
973
832
|
constructor(s) {
|
|
974
833
|
if (super(s), s.type !== Wt.ATTRIBUTE || s.name !== "class" || s.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -978,33 +837,23 @@ const Zt = Vt(class extends Gt {
|
|
|
978
837
|
}
|
|
979
838
|
update(s, [t]) {
|
|
980
839
|
if (this.st === void 0) {
|
|
981
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter(((
|
|
982
|
-
for (const
|
|
840
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter(((i) => i !== ""))));
|
|
841
|
+
for (const i in t) t[i] && !this.nt?.has(i) && this.st.add(i);
|
|
983
842
|
return this.render(t);
|
|
984
843
|
}
|
|
985
844
|
const e = s.element.classList;
|
|
986
|
-
for (const
|
|
987
|
-
for (const
|
|
988
|
-
const
|
|
989
|
-
|
|
845
|
+
for (const i of this.st) i in t || (e.remove(i), this.st.delete(i));
|
|
846
|
+
for (const i in t) {
|
|
847
|
+
const r = !!t[i];
|
|
848
|
+
r === this.st.has(i) || this.nt?.has(i) || (r ? (e.add(i), this.st.add(i)) : (e.remove(i), this.st.delete(i)));
|
|
990
849
|
}
|
|
991
850
|
return C;
|
|
992
851
|
}
|
|
993
852
|
});
|
|
994
|
-
/**
|
|
995
|
-
* @license
|
|
996
|
-
* Copyright 2021 Google LLC
|
|
997
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
998
|
-
*/
|
|
999
853
|
const Xt = {
|
|
1000
854
|
STANDARD: "cubic-bezier(0.2, 0, 0, 1)",
|
|
1001
855
|
EMPHASIZED: "cubic-bezier(.3,0,0,1)"
|
|
1002
856
|
};
|
|
1003
|
-
/**
|
|
1004
|
-
* @license
|
|
1005
|
-
* Copyright 2022 Google LLC
|
|
1006
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1007
|
-
*/
|
|
1008
857
|
const He = 450, Dt = 225, Le = 0.2, Be = 10, Fe = 75, je = 0.35, We = "::after", Ve = "forwards";
|
|
1009
858
|
var y;
|
|
1010
859
|
(function(s) {
|
|
@@ -1107,27 +956,27 @@ class j extends g {
|
|
|
1107
956
|
this.disabled || this.endPressAnimation();
|
|
1108
957
|
}
|
|
1109
958
|
determineRippleSize() {
|
|
1110
|
-
const { height: t, width: e } = this.getBoundingClientRect(),
|
|
959
|
+
const { height: t, width: e } = this.getBoundingClientRect(), i = Math.max(t, e), r = Math.max(je * i, Fe), o = this.currentCSSZoom ?? 1, a = Math.floor(i * Le / o), n = Math.sqrt(e ** 2 + t ** 2) + Be;
|
|
1111
960
|
this.initialSize = a;
|
|
1112
|
-
const d = (n +
|
|
961
|
+
const d = (n + r) / a;
|
|
1113
962
|
this.rippleScale = `${d / o}`, this.rippleSize = `${a}px`;
|
|
1114
963
|
}
|
|
1115
964
|
getNormalizedPointerEventCoords(t) {
|
|
1116
|
-
const { scrollX: e, scrollY:
|
|
965
|
+
const { scrollX: e, scrollY: i } = window, { left: r, top: o } = this.getBoundingClientRect(), a = e + r, l = i + o, { pageX: n, pageY: d } = t, p = this.currentCSSZoom ?? 1;
|
|
1117
966
|
return {
|
|
1118
967
|
x: (n - a) / p,
|
|
1119
|
-
y: (d -
|
|
968
|
+
y: (d - l) / p
|
|
1120
969
|
};
|
|
1121
970
|
}
|
|
1122
971
|
getTranslationCoordinates(t) {
|
|
1123
|
-
const { height: e, width:
|
|
1124
|
-
x: (
|
|
1125
|
-
y: (e /
|
|
972
|
+
const { height: e, width: i } = this.getBoundingClientRect(), r = this.currentCSSZoom ?? 1, o = {
|
|
973
|
+
x: (i / r - this.initialSize) / 2,
|
|
974
|
+
y: (e / r - this.initialSize) / 2
|
|
1126
975
|
};
|
|
1127
976
|
let a;
|
|
1128
977
|
return t instanceof PointerEvent ? a = this.getNormalizedPointerEventCoords(t) : a = {
|
|
1129
|
-
x:
|
|
1130
|
-
y: e /
|
|
978
|
+
x: i / r / 2,
|
|
979
|
+
y: e / r / 2
|
|
1131
980
|
}, a = {
|
|
1132
981
|
x: a.x - this.initialSize / 2,
|
|
1133
982
|
y: a.y - this.initialSize / 2
|
|
@@ -1137,14 +986,14 @@ class j extends g {
|
|
|
1137
986
|
if (!this.mdRoot)
|
|
1138
987
|
return;
|
|
1139
988
|
this.pressed = !0, this.growAnimation?.cancel(), this.determineRippleSize();
|
|
1140
|
-
const { startPoint: e, endPoint:
|
|
989
|
+
const { startPoint: e, endPoint: i } = this.getTranslationCoordinates(t), r = `${e.x}px, ${e.y}px`, o = `${i.x}px, ${i.y}px`;
|
|
1141
990
|
this.growAnimation = this.mdRoot.animate({
|
|
1142
991
|
top: [0, 0],
|
|
1143
992
|
left: [0, 0],
|
|
1144
993
|
height: [this.rippleSize, this.rippleSize],
|
|
1145
994
|
width: [this.rippleSize, this.rippleSize],
|
|
1146
995
|
transform: [
|
|
1147
|
-
`translate(${
|
|
996
|
+
`translate(${r}) scale(1)`,
|
|
1148
997
|
`translate(${o}) scale(${this.rippleScale})`
|
|
1149
998
|
]
|
|
1150
999
|
}, {
|
|
@@ -1162,8 +1011,8 @@ class j extends g {
|
|
|
1162
1011
|
this.pressed = !1;
|
|
1163
1012
|
return;
|
|
1164
1013
|
}
|
|
1165
|
-
await new Promise((
|
|
1166
|
-
setTimeout(
|
|
1014
|
+
await new Promise((i) => {
|
|
1015
|
+
setTimeout(i, Dt - e);
|
|
1167
1016
|
}), this.growAnimation === t && (this.pressed = !1);
|
|
1168
1017
|
}
|
|
1169
1018
|
/**
|
|
@@ -1214,8 +1063,8 @@ class j extends g {
|
|
|
1214
1063
|
}
|
|
1215
1064
|
}
|
|
1216
1065
|
onControlChange(t, e) {
|
|
1217
|
-
for (const
|
|
1218
|
-
t?.removeEventListener(
|
|
1066
|
+
for (const i of Ge)
|
|
1067
|
+
t?.removeEventListener(i, this), e?.addEventListener(i, this);
|
|
1219
1068
|
}
|
|
1220
1069
|
}
|
|
1221
1070
|
h([
|
|
@@ -1230,35 +1079,20 @@ h([
|
|
|
1230
1079
|
h([
|
|
1231
1080
|
tt(".surface")
|
|
1232
1081
|
], j.prototype, "mdRoot", void 0);
|
|
1233
|
-
/**
|
|
1234
|
-
* @license
|
|
1235
|
-
* Copyright 2024 Google LLC
|
|
1236
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1237
|
-
*/
|
|
1238
1082
|
const Ye = $`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--mdif4-ripple-hover-color, var(--mdif4-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--mdif4-ripple-pressed-color, var(--mdif4-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--mdif4-ripple-hover-color, var(--mdif4-sys-color-on-surface, #1d1b20));opacity:var(--mdif4-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--mdif4-ripple-pressed-opacity, 0.12);transition-duration:105ms}
|
|
1239
1083
|
`;
|
|
1240
|
-
/**
|
|
1241
|
-
* @license
|
|
1242
|
-
* Copyright 2022 Google LLC
|
|
1243
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1244
|
-
*/
|
|
1245
1084
|
let dt = class extends j {
|
|
1246
1085
|
};
|
|
1247
1086
|
dt.styles = [Ye];
|
|
1248
1087
|
dt = h([
|
|
1249
1088
|
S("mdif4-ripple")
|
|
1250
1089
|
], dt);
|
|
1251
|
-
|
|
1252
|
-
* @license
|
|
1253
|
-
* Copyright 2023 Google LLC
|
|
1254
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1255
|
-
*/
|
|
1256
|
-
const V = Symbol("isFocusable"), ot = Symbol("privateIsFocusable"), G = Symbol("externalTabIndex"), K = Symbol("isUpdatingTabIndex"), q = Symbol("updateTabIndex");
|
|
1090
|
+
const V = /* @__PURE__ */ Symbol("isFocusable"), ot = /* @__PURE__ */ Symbol("privateIsFocusable"), G = /* @__PURE__ */ Symbol("externalTabIndex"), K = /* @__PURE__ */ Symbol("isUpdatingTabIndex"), q = /* @__PURE__ */ Symbol("updateTabIndex");
|
|
1257
1091
|
function Ze(s) {
|
|
1258
|
-
var t, e,
|
|
1259
|
-
class
|
|
1092
|
+
var t, e, i;
|
|
1093
|
+
class r extends s {
|
|
1260
1094
|
constructor() {
|
|
1261
|
-
super(...arguments), this[t] = !0, this[e] = null, this[
|
|
1095
|
+
super(...arguments), this[t] = !0, this[e] = null, this[i] = !1;
|
|
1262
1096
|
}
|
|
1263
1097
|
get [V]() {
|
|
1264
1098
|
return this[ot];
|
|
@@ -1269,12 +1103,12 @@ function Ze(s) {
|
|
|
1269
1103
|
connectedCallback() {
|
|
1270
1104
|
super.connectedCallback(), this[q]();
|
|
1271
1105
|
}
|
|
1272
|
-
attributeChangedCallback(a,
|
|
1106
|
+
attributeChangedCallback(a, l, n) {
|
|
1273
1107
|
if (a !== "tabindex") {
|
|
1274
|
-
super.attributeChangedCallback(a,
|
|
1108
|
+
super.attributeChangedCallback(a, l, n);
|
|
1275
1109
|
return;
|
|
1276
1110
|
}
|
|
1277
|
-
if (this.requestUpdate("tabIndex", Number(
|
|
1111
|
+
if (this.requestUpdate("tabIndex", Number(l ?? -1)), !this[K]) {
|
|
1278
1112
|
if (!this.hasAttribute("tabindex")) {
|
|
1279
1113
|
this[G] = null, this[q]();
|
|
1280
1114
|
return;
|
|
@@ -1282,21 +1116,16 @@ function Ze(s) {
|
|
|
1282
1116
|
this[G] = this.tabIndex;
|
|
1283
1117
|
}
|
|
1284
1118
|
}
|
|
1285
|
-
[(t = ot, e = G,
|
|
1286
|
-
const a = this[V] ? 0 : -1,
|
|
1287
|
-
this[K] = !0, this.tabIndex =
|
|
1119
|
+
[(t = ot, e = G, i = K, q)]() {
|
|
1120
|
+
const a = this[V] ? 0 : -1, l = this[G] ?? a;
|
|
1121
|
+
this[K] = !0, this.tabIndex = l, this[K] = !1;
|
|
1288
1122
|
}
|
|
1289
1123
|
}
|
|
1290
1124
|
return h([
|
|
1291
1125
|
m({ noAccessor: !0 })
|
|
1292
|
-
],
|
|
1126
|
+
], r.prototype, "tabIndex", void 0), r;
|
|
1293
1127
|
}
|
|
1294
|
-
|
|
1295
|
-
* @license
|
|
1296
|
-
* Copyright 2023 Google LLC
|
|
1297
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1298
|
-
*/
|
|
1299
|
-
const Jt = Symbol("animateIndicator"), Xe = Ze(g);
|
|
1128
|
+
const Jt = /* @__PURE__ */ Symbol("animateIndicator"), Xe = Ze(g);
|
|
1300
1129
|
class _ extends Xe {
|
|
1301
1130
|
/**
|
|
1302
1131
|
* @deprecated use `active`
|
|
@@ -1348,8 +1177,8 @@ class _ extends Xe {
|
|
|
1348
1177
|
[Jt](t) {
|
|
1349
1178
|
if (!this.indicator)
|
|
1350
1179
|
return;
|
|
1351
|
-
this.indicator.getAnimations().forEach((
|
|
1352
|
-
|
|
1180
|
+
this.indicator.getAnimations().forEach((i) => {
|
|
1181
|
+
i.cancel();
|
|
1353
1182
|
});
|
|
1354
1183
|
const e = this.getKeyframes(t);
|
|
1355
1184
|
e !== null && this.indicator.animate(e, {
|
|
@@ -1361,8 +1190,8 @@ class _ extends Xe {
|
|
|
1361
1190
|
const e = Je();
|
|
1362
1191
|
if (!this.active)
|
|
1363
1192
|
return e ? [{ opacity: 1 }, { transform: "none" }] : null;
|
|
1364
|
-
const
|
|
1365
|
-
return !e && o !== void 0 && n !== void 0 && !isNaN(p) ?
|
|
1193
|
+
const i = {}, r = t.indicator?.getBoundingClientRect() ?? {}, o = r.left, a = r.width, l = this.indicator.getBoundingClientRect(), n = l.left, d = l.width, p = a / d;
|
|
1194
|
+
return !e && o !== void 0 && n !== void 0 && !isNaN(p) ? i.transform = `translateX(${(o - n).toFixed(4)}px) scaleX(${p.toFixed(4)})` : i.opacity = 0, [i, { transform: "none" }];
|
|
1366
1195
|
}
|
|
1367
1196
|
handleSlotChange() {
|
|
1368
1197
|
this.iconOnly = !1;
|
|
@@ -1407,11 +1236,6 @@ h([
|
|
|
1407
1236
|
function Je() {
|
|
1408
1237
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1409
1238
|
}
|
|
1410
|
-
/**
|
|
1411
|
-
* @license
|
|
1412
|
-
* Copyright 2023 Google LLC
|
|
1413
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1414
|
-
*/
|
|
1415
1239
|
class N extends g {
|
|
1416
1240
|
/**
|
|
1417
1241
|
* The currently selected tab, `null` only when there are no tab children.
|
|
@@ -1434,8 +1258,8 @@ class N extends g {
|
|
|
1434
1258
|
}
|
|
1435
1259
|
set activeTabIndex(t) {
|
|
1436
1260
|
const e = () => {
|
|
1437
|
-
const
|
|
1438
|
-
|
|
1261
|
+
const i = this.tabs[t];
|
|
1262
|
+
i && this.activateTab(i);
|
|
1439
1263
|
};
|
|
1440
1264
|
if (!this.slotElement) {
|
|
1441
1265
|
this.updateComplete.then(e);
|
|
@@ -1465,8 +1289,8 @@ class N extends g {
|
|
|
1465
1289
|
return;
|
|
1466
1290
|
for (const f of this.tabs)
|
|
1467
1291
|
await f.updateComplete;
|
|
1468
|
-
const
|
|
1469
|
-
this.tabsScrollerElement.scrollTo({ behavior:
|
|
1292
|
+
const i = t.offsetLeft, r = t.offsetWidth, o = this.scrollLeft, a = this.offsetWidth, l = 48, n = i - l, d = i + r - a + l, p = Math.min(n, Math.max(d, o)), c = this.focusedTab ? "auto" : "instant";
|
|
1293
|
+
this.tabsScrollerElement.scrollTo({ behavior: c, top: 0, left: p });
|
|
1470
1294
|
}
|
|
1471
1295
|
render() {
|
|
1472
1296
|
return A`
|
|
@@ -1483,17 +1307,17 @@ class N extends g {
|
|
|
1483
1307
|
await 0, !(t.defaultPrevented || !Qe(e) || e.active) && this.activateTab(e);
|
|
1484
1308
|
}
|
|
1485
1309
|
activateTab(t) {
|
|
1486
|
-
const { tabs: e } = this,
|
|
1487
|
-
if (!(!e.includes(t) ||
|
|
1488
|
-
for (const
|
|
1489
|
-
|
|
1490
|
-
if (
|
|
1310
|
+
const { tabs: e } = this, i = this.activeTab;
|
|
1311
|
+
if (!(!e.includes(t) || i === t)) {
|
|
1312
|
+
for (const r of e)
|
|
1313
|
+
r.active = r === t;
|
|
1314
|
+
if (i) {
|
|
1491
1315
|
if (!this.dispatchEvent(new Event("change", { bubbles: !0, cancelable: !0 }))) {
|
|
1492
1316
|
for (const o of e)
|
|
1493
|
-
o.active = o ===
|
|
1317
|
+
o.active = o === i;
|
|
1494
1318
|
return;
|
|
1495
1319
|
}
|
|
1496
|
-
t[Jt](
|
|
1320
|
+
t[Jt](i);
|
|
1497
1321
|
}
|
|
1498
1322
|
this.updateFocusableTab(t), this.scrollToTab(t);
|
|
1499
1323
|
}
|
|
@@ -1505,26 +1329,26 @@ class N extends g {
|
|
|
1505
1329
|
// focus item on keydown and optionally select it
|
|
1506
1330
|
async handleKeydown(t) {
|
|
1507
1331
|
await 0;
|
|
1508
|
-
const e = t.key === "ArrowLeft",
|
|
1509
|
-
if (t.defaultPrevented || !e && !
|
|
1332
|
+
const e = t.key === "ArrowLeft", i = t.key === "ArrowRight", r = t.key === "Home", o = t.key === "End";
|
|
1333
|
+
if (t.defaultPrevented || !e && !i && !r && !o)
|
|
1510
1334
|
return;
|
|
1511
1335
|
const { tabs: a } = this;
|
|
1512
1336
|
if (a.length < 2)
|
|
1513
1337
|
return;
|
|
1514
1338
|
t.preventDefault();
|
|
1515
|
-
let
|
|
1516
|
-
if (
|
|
1517
|
-
|
|
1339
|
+
let l;
|
|
1340
|
+
if (r || o)
|
|
1341
|
+
l = r ? 0 : a.length - 1;
|
|
1518
1342
|
else {
|
|
1519
|
-
const p = getComputedStyle(this).direction === "rtl" ? e :
|
|
1520
|
-
if (!
|
|
1521
|
-
|
|
1343
|
+
const p = getComputedStyle(this).direction === "rtl" ? e : i, { focusedTab: c } = this;
|
|
1344
|
+
if (!c)
|
|
1345
|
+
l = p ? 0 : a.length - 1;
|
|
1522
1346
|
else {
|
|
1523
|
-
const f = this.tabs.indexOf(
|
|
1524
|
-
|
|
1347
|
+
const f = this.tabs.indexOf(c);
|
|
1348
|
+
l = p ? f + 1 : f - 1, l >= a.length ? l = 0 : l < 0 && (l = a.length - 1);
|
|
1525
1349
|
}
|
|
1526
1350
|
}
|
|
1527
|
-
const n = a[
|
|
1351
|
+
const n = a[l];
|
|
1528
1352
|
n.focus(), this.autoActivate ? this.activateTab(n) : this.updateFocusableTab(n);
|
|
1529
1353
|
}
|
|
1530
1354
|
// scroll to item on keyup.
|
|
@@ -1560,29 +1384,14 @@ h([
|
|
|
1560
1384
|
function Qe(s) {
|
|
1561
1385
|
return s instanceof HTMLElement && s.hasAttribute("mdif4-tab");
|
|
1562
1386
|
}
|
|
1563
|
-
|
|
1564
|
-
* @license
|
|
1565
|
-
* Copyright 2024 Google LLC
|
|
1566
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1567
|
-
*/
|
|
1568
|
-
const tr = $`:host{box-sizing:border-box;display:flex;flex-direction:column;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;position:relative}:host([hidden]){display:none}:host::-webkit-scrollbar{display:none}.tabs{align-items:end;display:flex;height:100%;overflow:inherit;scroll-behavior:inherit;scrollbar-width:inherit;justify-content:space-between;width:100%}::slotted(*){flex:1}::slotted([active]){z-index:1}
|
|
1387
|
+
const ti = $`:host{box-sizing:border-box;display:flex;flex-direction:column;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;position:relative}:host([hidden]){display:none}:host::-webkit-scrollbar{display:none}.tabs{align-items:end;display:flex;height:100%;overflow:inherit;scroll-behavior:inherit;scrollbar-width:inherit;justify-content:space-between;width:100%}::slotted(*){flex:1}::slotted([active]){z-index:1}
|
|
1569
1388
|
`;
|
|
1570
|
-
/**
|
|
1571
|
-
* @license
|
|
1572
|
-
* Copyright 2023 Google LLC
|
|
1573
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1574
|
-
*/
|
|
1575
1389
|
let ht = class extends N {
|
|
1576
1390
|
};
|
|
1577
|
-
ht.styles = [
|
|
1391
|
+
ht.styles = [ti];
|
|
1578
1392
|
ht = h([
|
|
1579
1393
|
S("mdif4-tabs")
|
|
1580
1394
|
], ht);
|
|
1581
|
-
/**
|
|
1582
|
-
* @license
|
|
1583
|
-
* Copyright 2023 Google LLC
|
|
1584
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1585
|
-
*/
|
|
1586
1395
|
class Qt extends _ {
|
|
1587
1396
|
constructor() {
|
|
1588
1397
|
super(...arguments), this.inlineIcon = !1;
|
|
@@ -1597,67 +1406,37 @@ class Qt extends _ {
|
|
|
1597
1406
|
h([
|
|
1598
1407
|
m({ type: Boolean, attribute: "inline-icon" })
|
|
1599
1408
|
], Qt.prototype, "inlineIcon", void 0);
|
|
1600
|
-
|
|
1601
|
-
* @license
|
|
1602
|
-
* Copyright 2024 Google LLC
|
|
1603
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1604
|
-
*/
|
|
1605
|
-
const er = $`:host{--_active-indicator-color: var(--mdif4-primary-tab-active-indicator-color, var(--mdif4-sys-color-primary, #6750a4));--_active-indicator-height: var(--mdif4-primary-tab-active-indicator-height, 3px);--_active-indicator-shape: var(--mdif4-primary-tab-active-indicator-shape, 3px 3px 0px 0px);--_active-hover-state-layer-color: var(--mdif4-primary-tab-active-hover-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-state-layer-opacity: var(--mdif4-primary-tab-active-hover-state-layer-opacity, 0.08);--_active-pressed-state-layer-color: var(--mdif4-primary-tab-active-pressed-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-state-layer-opacity: var(--mdif4-primary-tab-active-pressed-state-layer-opacity, 0.12);--_container-color: var(--mdif4-primary-tab-container-color, var(--mdif4-sys-color-surface, #fef7ff));--_container-elevation: var(--mdif4-primary-tab-container-elevation, 0);--_container-height: var(--mdif4-primary-tab-container-height, 48px);--_with-icon-and-label-text-container-height: var(--mdif4-primary-tab-with-icon-and-label-text-container-height, 64px);--_hover-state-layer-color: var(--mdif4-primary-tab-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--mdif4-primary-tab-hover-state-layer-opacity, 0.08);--_pressed-state-layer-color: var(--mdif4-primary-tab-pressed-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--mdif4-primary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--mdif4-primary-tab-active-focus-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-icon-color: var(--mdif4-primary-tab-active-hover-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-icon-color: var(--mdif4-primary-tab-active-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-icon-color: var(--mdif4-primary-tab-active-pressed-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_icon-size: var(--mdif4-primary-tab-icon-size, 24px);--_focus-icon-color: var(--mdif4-primary-tab-focus-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--mdif4-primary-tab-hover-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_icon-color: var(--mdif4-primary-tab-icon-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--mdif4-primary-tab-pressed-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_label-text-font: var(--mdif4-primary-tab-label-text-font, var(--mdif4-sys-typescale-title-small-font, var(--mdif4-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--mdif4-primary-tab-label-text-line-height, var(--mdif4-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--mdif4-primary-tab-label-text-size, var(--mdif4-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--mdif4-primary-tab-label-text-weight, var(--mdif4-sys-typescale-title-small-weight, var(--mdif4-ref-typeface-weight-medium, 500)));--_active-focus-label-text-color: var(--mdif4-primary-tab-active-focus-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-label-text-color: var(--mdif4-primary-tab-active-hover-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-label-text-color: var(--mdif4-primary-tab-active-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-label-text-color: var(--mdif4-primary-tab-active-pressed-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_focus-label-text-color: var(--mdif4-primary-tab-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--mdif4-primary-tab-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_label-text-color: var(--mdif4-primary-tab-label-text-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-label-text-color: var(--mdif4-primary-tab-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--mdif4-primary-tab-container-shape-start-start, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--mdif4-primary-tab-container-shape-start-end, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--mdif4-primary-tab-container-shape-end-end, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--mdif4-primary-tab-container-shape-end-start, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)))}.content.stacked{flex-direction:column;gap:2px}.content.stacked.has-icon.has-label{height:var(--_with-icon-and-label-text-container-height)}
|
|
1409
|
+
const ei = $`:host{--_active-indicator-color: var(--mdif4-primary-tab-active-indicator-color, var(--mdif4-sys-color-primary, #6750a4));--_active-indicator-height: var(--mdif4-primary-tab-active-indicator-height, 3px);--_active-indicator-shape: var(--mdif4-primary-tab-active-indicator-shape, 3px 3px 0px 0px);--_active-hover-state-layer-color: var(--mdif4-primary-tab-active-hover-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-state-layer-opacity: var(--mdif4-primary-tab-active-hover-state-layer-opacity, 0.08);--_active-pressed-state-layer-color: var(--mdif4-primary-tab-active-pressed-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-state-layer-opacity: var(--mdif4-primary-tab-active-pressed-state-layer-opacity, 0.12);--_container-color: var(--mdif4-primary-tab-container-color, var(--mdif4-sys-color-surface, #fef7ff));--_container-elevation: var(--mdif4-primary-tab-container-elevation, 0);--_container-height: var(--mdif4-primary-tab-container-height, 48px);--_with-icon-and-label-text-container-height: var(--mdif4-primary-tab-with-icon-and-label-text-container-height, 64px);--_hover-state-layer-color: var(--mdif4-primary-tab-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--mdif4-primary-tab-hover-state-layer-opacity, 0.08);--_pressed-state-layer-color: var(--mdif4-primary-tab-pressed-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--mdif4-primary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--mdif4-primary-tab-active-focus-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-icon-color: var(--mdif4-primary-tab-active-hover-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-icon-color: var(--mdif4-primary-tab-active-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-icon-color: var(--mdif4-primary-tab-active-pressed-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_icon-size: var(--mdif4-primary-tab-icon-size, 24px);--_focus-icon-color: var(--mdif4-primary-tab-focus-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--mdif4-primary-tab-hover-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_icon-color: var(--mdif4-primary-tab-icon-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--mdif4-primary-tab-pressed-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_label-text-font: var(--mdif4-primary-tab-label-text-font, var(--mdif4-sys-typescale-title-small-font, var(--mdif4-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--mdif4-primary-tab-label-text-line-height, var(--mdif4-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--mdif4-primary-tab-label-text-size, var(--mdif4-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--mdif4-primary-tab-label-text-weight, var(--mdif4-sys-typescale-title-small-weight, var(--mdif4-ref-typeface-weight-medium, 500)));--_active-focus-label-text-color: var(--mdif4-primary-tab-active-focus-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-label-text-color: var(--mdif4-primary-tab-active-hover-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-label-text-color: var(--mdif4-primary-tab-active-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-label-text-color: var(--mdif4-primary-tab-active-pressed-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_focus-label-text-color: var(--mdif4-primary-tab-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--mdif4-primary-tab-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_label-text-color: var(--mdif4-primary-tab-label-text-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-label-text-color: var(--mdif4-primary-tab-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--mdif4-primary-tab-container-shape-start-start, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--mdif4-primary-tab-container-shape-start-end, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--mdif4-primary-tab-container-shape-end-end, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--mdif4-primary-tab-container-shape-end-start, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)))}.content.stacked{flex-direction:column;gap:2px}.content.stacked.has-icon.has-label{height:var(--_with-icon-and-label-text-container-height)}
|
|
1606
1410
|
`;
|
|
1607
|
-
/**
|
|
1608
|
-
* @license
|
|
1609
|
-
* Copyright 2024 Google LLC
|
|
1610
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1611
|
-
*/
|
|
1612
1411
|
const te = $`:host{display:inline-flex;align-items:center;justify-content:center;outline:none;padding:0 16px;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:middle;user-select:none;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);color:var(--_label-text-color);z-index:0;--mdif4-ripple-hover-color: var(--_hover-state-layer-color);--mdif4-ripple-hover-opacity: var(--_hover-state-layer-opacity);--mdif4-ripple-pressed-color: var(--_pressed-state-layer-color);--mdif4-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);--mdif4-elevation-level: var(--_container-elevation)}mdif4-focus-ring{--mdif4-focus-ring-shape: 8px}:host([active]) mdif4-focus-ring{margin-bottom:calc(var(--_active-indicator-height) + 1px)}.button::before{background:var(--_container-color);content:"";inset:0;position:absolute;z-index:-1}.button::before,mdif4-ripple,mdif4-elevation{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start)}.content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;height:var(--_container-height);gap:8px}.indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_active-indicator-color);border-radius:var(--_active-indicator-shape);height:var(--_active-indicator-height);inset:auto 0 0 0;opacity:0}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_icon-color);font-size:var(--_icon-size);width:var(--_icon-size);height:var(--_icon-size)}:host(:hover){color:var(--_hover-label-text-color);cursor:pointer}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus){color:var(--_focus-label-text-color)}:host(:focus) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active){color:var(--_pressed-label-text-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([active]) .indicator{opacity:1}:host([active]){color:var(--_active-label-text-color);--mdif4-ripple-hover-color: var(--_active-hover-state-layer-color);--mdif4-ripple-hover-opacity: var(--_active-hover-state-layer-opacity);--mdif4-ripple-pressed-color: var(--_active-pressed-state-layer-color);--mdif4-ripple-pressed-opacity: var(--_active-pressed-state-layer-opacity)}:host([active]) ::slotted([slot=icon]){color:var(--_active-icon-color)}:host([active]:hover){color:var(--_active-hover-label-text-color)}:host([active]:hover) ::slotted([slot=icon]){color:var(--_active-hover-icon-color)}:host([active]:focus){color:var(--_active-focus-label-text-color)}:host([active]:focus) ::slotted([slot=icon]){color:var(--_active-focus-icon-color)}:host([active]:active){color:var(--_active-pressed-label-text-color)}:host([active]:active) ::slotted([slot=icon]){color:var(--_active-pressed-icon-color)}:host,::slotted(*){white-space:nowrap}@media(forced-colors: active){.indicator{background:CanvasText}}
|
|
1613
1412
|
`;
|
|
1614
|
-
/**
|
|
1615
|
-
* @license
|
|
1616
|
-
* Copyright 2023 Google LLC
|
|
1617
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1618
|
-
*/
|
|
1619
1413
|
let pt = class extends Qt {
|
|
1620
1414
|
};
|
|
1621
|
-
pt.styles = [te,
|
|
1415
|
+
pt.styles = [te, ei];
|
|
1622
1416
|
pt = h([
|
|
1623
1417
|
S("mdif4-primary-tab")
|
|
1624
1418
|
], pt);
|
|
1625
|
-
|
|
1626
|
-
* @license
|
|
1627
|
-
* Copyright 2023 Google LLC
|
|
1628
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1629
|
-
*/
|
|
1630
|
-
class rr extends _ {
|
|
1419
|
+
class ii extends _ {
|
|
1631
1420
|
constructor() {
|
|
1632
1421
|
super(...arguments), this.fullWidthIndicator = !0;
|
|
1633
1422
|
}
|
|
1634
1423
|
}
|
|
1635
|
-
|
|
1636
|
-
* @license
|
|
1637
|
-
* Copyright 2024 Google LLC
|
|
1638
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1639
|
-
*/
|
|
1640
|
-
const ir = $`:host{--_active-indicator-color: var(--mdif4-secondary-tab-active-indicator-color, var(--mdif4-sys-color-primary, #6750a4));--_active-indicator-height: var(--mdif4-secondary-tab-active-indicator-height, 2px);--_active-label-text-color: var(--mdif4-secondary-tab-active-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-color: var(--mdif4-secondary-tab-container-color, var(--mdif4-sys-color-surface, #fef7ff));--_container-elevation: var(--mdif4-secondary-tab-container-elevation, 0);--_container-height: var(--mdif4-secondary-tab-container-height, 48px);--_focus-label-text-color: var(--mdif4-secondary-tab-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--mdif4-secondary-tab-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--mdif4-secondary-tab-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--mdif4-secondary-tab-hover-state-layer-opacity, 0.08);--_label-text-font: var(--mdif4-secondary-tab-label-text-font, var(--mdif4-sys-typescale-title-small-font, var(--mdif4-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--mdif4-secondary-tab-label-text-line-height, var(--mdif4-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--mdif4-secondary-tab-label-text-size, var(--mdif4-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--mdif4-secondary-tab-label-text-weight, var(--mdif4-sys-typescale-title-small-weight, var(--mdif4-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--mdif4-secondary-tab-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--mdif4-secondary-tab-pressed-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--mdif4-secondary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--mdif4-secondary-tab-active-focus-icon-color, );--_active-focus-label-text-color: var(--mdif4-secondary-tab-active-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-icon-color: var(--mdif4-secondary-tab-active-hover-icon-color, );--_active-hover-label-text-color: var(--mdif4-secondary-tab-active-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-color: var(--mdif4-secondary-tab-active-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-opacity: var(--mdif4-secondary-tab-active-hover-state-layer-opacity, 0.08);--_active-icon-color: var(--mdif4-secondary-tab-active-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-indicator-shape: var(--mdif4-secondary-tab-active-indicator-shape, 0);--_active-pressed-icon-color: var(--mdif4-secondary-tab-active-pressed-icon-color, );--_active-pressed-label-text-color: var(--mdif4-secondary-tab-active-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-color: var(--mdif4-secondary-tab-active-pressed-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-opacity: var(--mdif4-secondary-tab-active-pressed-state-layer-opacity, 0.12);--_label-text-color: var(--mdif4-secondary-tab-label-text-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_focus-icon-color: var(--mdif4-secondary-tab-focus-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--mdif4-secondary-tab-hover-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_icon-size: var(--mdif4-secondary-tab-icon-size, 24px);--_icon-color: var(--mdif4-secondary-tab-icon-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--mdif4-secondary-tab-pressed-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--mdif4-secondary-tab-container-shape-start-start, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--mdif4-secondary-tab-container-shape-start-end, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--mdif4-secondary-tab-container-shape-end-end, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--mdif4-secondary-tab-container-shape-end-start, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)))}
|
|
1424
|
+
const ri = $`:host{--_active-indicator-color: var(--mdif4-secondary-tab-active-indicator-color, var(--mdif4-sys-color-primary, #6750a4));--_active-indicator-height: var(--mdif4-secondary-tab-active-indicator-height, 2px);--_active-label-text-color: var(--mdif4-secondary-tab-active-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-color: var(--mdif4-secondary-tab-container-color, var(--mdif4-sys-color-surface, #fef7ff));--_container-elevation: var(--mdif4-secondary-tab-container-elevation, 0);--_container-height: var(--mdif4-secondary-tab-container-height, 48px);--_focus-label-text-color: var(--mdif4-secondary-tab-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--mdif4-secondary-tab-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--mdif4-secondary-tab-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--mdif4-secondary-tab-hover-state-layer-opacity, 0.08);--_label-text-font: var(--mdif4-secondary-tab-label-text-font, var(--mdif4-sys-typescale-title-small-font, var(--mdif4-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--mdif4-secondary-tab-label-text-line-height, var(--mdif4-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--mdif4-secondary-tab-label-text-size, var(--mdif4-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--mdif4-secondary-tab-label-text-weight, var(--mdif4-sys-typescale-title-small-weight, var(--mdif4-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--mdif4-secondary-tab-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--mdif4-secondary-tab-pressed-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--mdif4-secondary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--mdif4-secondary-tab-active-focus-icon-color, );--_active-focus-label-text-color: var(--mdif4-secondary-tab-active-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-icon-color: var(--mdif4-secondary-tab-active-hover-icon-color, );--_active-hover-label-text-color: var(--mdif4-secondary-tab-active-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-color: var(--mdif4-secondary-tab-active-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-opacity: var(--mdif4-secondary-tab-active-hover-state-layer-opacity, 0.08);--_active-icon-color: var(--mdif4-secondary-tab-active-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-indicator-shape: var(--mdif4-secondary-tab-active-indicator-shape, 0);--_active-pressed-icon-color: var(--mdif4-secondary-tab-active-pressed-icon-color, );--_active-pressed-label-text-color: var(--mdif4-secondary-tab-active-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-color: var(--mdif4-secondary-tab-active-pressed-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-opacity: var(--mdif4-secondary-tab-active-pressed-state-layer-opacity, 0.12);--_label-text-color: var(--mdif4-secondary-tab-label-text-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_focus-icon-color: var(--mdif4-secondary-tab-focus-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--mdif4-secondary-tab-hover-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_icon-size: var(--mdif4-secondary-tab-icon-size, 24px);--_icon-color: var(--mdif4-secondary-tab-icon-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--mdif4-secondary-tab-pressed-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--mdif4-secondary-tab-container-shape-start-start, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--mdif4-secondary-tab-container-shape-start-end, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--mdif4-secondary-tab-container-shape-end-end, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--mdif4-secondary-tab-container-shape-end-start, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)))}
|
|
1641
1425
|
`;
|
|
1642
|
-
|
|
1643
|
-
* @license
|
|
1644
|
-
* Copyright 2023 Google LLC
|
|
1645
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1646
|
-
*/
|
|
1647
|
-
let ft = class extends rr {
|
|
1426
|
+
let ft = class extends ii {
|
|
1648
1427
|
};
|
|
1649
|
-
ft.styles = [te,
|
|
1428
|
+
ft.styles = [te, ri];
|
|
1650
1429
|
ft = h([
|
|
1651
1430
|
S("mdif4-secondary-tab")
|
|
1652
1431
|
], ft);
|
|
1653
|
-
var
|
|
1654
|
-
for (var
|
|
1655
|
-
(a = s[o]) && (
|
|
1656
|
-
return
|
|
1432
|
+
var si = Object.defineProperty, W = (s, t, e, i) => {
|
|
1433
|
+
for (var r = void 0, o = s.length - 1, a; o >= 0; o--)
|
|
1434
|
+
(a = s[o]) && (r = a(t, e, r) || r);
|
|
1435
|
+
return r && si(t, e, r), r;
|
|
1657
1436
|
};
|
|
1658
1437
|
const xt = class xt extends g {
|
|
1659
1438
|
constructor() {
|
|
1660
|
-
super(...arguments), this.version = "1.0.
|
|
1439
|
+
super(...arguments), this.version = "1.0.10";
|
|
1661
1440
|
}
|
|
1662
1441
|
update(t) {
|
|
1663
1442
|
t.has("theme") && this.registerTheme(this.theme), super.update(t);
|
|
@@ -1666,8 +1445,8 @@ const xt = class xt extends g {
|
|
|
1666
1445
|
this.registerTheme(this.theme);
|
|
1667
1446
|
}
|
|
1668
1447
|
registerTheme(t) {
|
|
1669
|
-
const e = getComputedStyle(this).getPropertyValue("--re-text-color").trim(),
|
|
1670
|
-
this.themeBgColor =
|
|
1448
|
+
const e = getComputedStyle(this).getPropertyValue("--re-text-color").trim(), i = getComputedStyle(this).getPropertyValue("--re-tile-background-color").trim();
|
|
1449
|
+
this.themeBgColor = i || this.theme?.theme_object?.backgroundColor, this.themeTitleColor = e || this.theme?.theme_object?.title?.textStyle?.color;
|
|
1671
1450
|
}
|
|
1672
1451
|
handleNavItemClick(t) {
|
|
1673
1452
|
const e = new CustomEvent("nav-submit", {
|
|
@@ -1688,15 +1467,15 @@ const xt = class xt extends g {
|
|
|
1688
1467
|
}
|
|
1689
1468
|
matchesRoute(t) {
|
|
1690
1469
|
if (t === void 0) return !1;
|
|
1691
|
-
const e = this.trimRoute(decodeURIComponent(this.route || "/")),
|
|
1692
|
-
return t.startsWith("/") ? e.startsWith(
|
|
1470
|
+
const e = this.trimRoute(decodeURIComponent(this.route || "/")), i = this.trimRoute(t);
|
|
1471
|
+
return t.startsWith("/") ? e.startsWith(i) : e.endsWith(i) || e === i;
|
|
1693
1472
|
}
|
|
1694
1473
|
render() {
|
|
1695
|
-
const t = this.inputData?.style?.fontSize ?? 16, e = (this.inputData?.style?.fontSize ?? 16) * 1.5,
|
|
1474
|
+
const t = this.inputData?.style?.fontSize ?? 16, e = (this.inputData?.style?.fontSize ?? 16) * 1.5, i = this.inputData?.style?.color || this.themeTitleColor || "black", r = this.inputData?.style?.backgroundColor || this.themeBgColor || "white";
|
|
1696
1475
|
return A`
|
|
1697
1476
|
<div
|
|
1698
1477
|
class="wrapper"
|
|
1699
|
-
style="background-color: ${
|
|
1478
|
+
style="background-color: ${r}; color: ${i};
|
|
1700
1479
|
font-weight: ${this.inputData?.style?.fontWeight};
|
|
1701
1480
|
font-size: ${t}px;"
|
|
1702
1481
|
>
|
|
@@ -1704,7 +1483,7 @@ const xt = class xt extends g {
|
|
|
1704
1483
|
class="paging"
|
|
1705
1484
|
style=${this.inputData?.route ? "cursor: pointer" : ""}
|
|
1706
1485
|
?active=${this.inputData?.title}
|
|
1707
|
-
@click=${() => this.handleNavItemClick(this.addSlashes(this.inputData
|
|
1486
|
+
@click=${() => this.handleNavItemClick(this.addSlashes(this.inputData))}
|
|
1708
1487
|
>
|
|
1709
1488
|
${this.inputData?.title}
|
|
1710
1489
|
</h2>
|
|
@@ -1716,14 +1495,14 @@ const xt = class xt extends g {
|
|
|
1716
1495
|
<mdif4-secondary-tab
|
|
1717
1496
|
?active=${this.matchesRoute(this.addSlashes(o))}
|
|
1718
1497
|
style="font-size: ${t}px;
|
|
1719
|
-
--mdif4-secondary-tab-container-color: ${
|
|
1720
|
-
color: ${
|
|
1498
|
+
--mdif4-secondary-tab-container-color: ${r};
|
|
1499
|
+
color: ${i};"
|
|
1721
1500
|
@click=${() => this.handleNavItemClick(this.addSlashes(o))}
|
|
1722
1501
|
>
|
|
1723
1502
|
${o.iconName ? A`
|
|
1724
1503
|
<mdif4-icon
|
|
1725
1504
|
slot="icon"
|
|
1726
|
-
style="font-size: ${e}px;width: ${e}px;color: ${
|
|
1505
|
+
style="font-size: ${e}px;width: ${e}px;color: ${i}"
|
|
1727
1506
|
>
|
|
1728
1507
|
${o.iconName}
|
|
1729
1508
|
</mdif4-icon>
|
|
@@ -1770,6 +1549,8 @@ xt.styles = $`
|
|
|
1770
1549
|
margin: 0;
|
|
1771
1550
|
padding: 0px;
|
|
1772
1551
|
font-size: 1.2em;
|
|
1552
|
+
line-height: 2.5;
|
|
1553
|
+
height: 48px;
|
|
1773
1554
|
}
|
|
1774
1555
|
`;
|
|
1775
1556
|
let E = xt;
|
|
@@ -1788,7 +1569,7 @@ W([
|
|
|
1788
1569
|
W([
|
|
1789
1570
|
F()
|
|
1790
1571
|
], E.prototype, "themeTitleColor");
|
|
1791
|
-
window.customElements.define("widget-navbar-1.0.
|
|
1572
|
+
window.customElements.define("widget-navbar-1.0.10", E);
|
|
1792
1573
|
export {
|
|
1793
1574
|
E as WidgetNavbar
|
|
1794
1575
|
};
|