@openvoxproject/voxblocks 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -9
- package/dist/cdn/voxblocks.css +1 -1
- package/dist/cdn/voxblocks.js +1784 -1180
- package/dist/types/components/alert/vox-alert.d.ts +2 -1
- package/dist/types/components/callout/vox-callout.d.ts +2 -1
- package/dist/types/components/header/vox-header.d.ts +9 -1
- package/dist/types/components/icon/icon-paths.d.ts +30 -0
- package/dist/types/components/icon/vox-icon.d.ts +22 -0
- package/dist/types/components/link-hub/vox-link-hub.d.ts +3 -0
- package/dist/types/components/sidenav/vox-sidenav.d.ts +16 -0
- package/dist/types/components/toc/vox-toc.d.ts +43 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/voxblocks.css +1 -1
- package/dist/voxblocks.js +1436 -832
- package/package.json +9 -6
- package/src/components/alert/vox-alert.ts +41 -1
- package/src/components/callout/vox-callout.ts +53 -3
- package/src/components/card/vox-card.ts +5 -0
- package/src/components/header/vox-header.ts +132 -7
- package/src/components/icon/icon-paths.ts +287 -0
- package/src/components/icon/vox-icon.ts +78 -0
- package/src/components/link-hub/vox-link-hub.ts +21 -0
- package/src/components/sidenav/vox-sidenav.ts +148 -3
- package/src/components/toc/vox-toc.ts +140 -0
- package/src/index.ts +6 -0
- package/src/styles/utilities.css +158 -0
- package/src/tokens/palette.css +95 -0
package/dist/cdn/voxblocks.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
8
|
-
constructor(e, o,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
6
|
+
const Ie = globalThis, _t = Ie.ShadowRoot && (Ie.ShadyCSS === void 0 || Ie.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ct = Symbol(), It = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let oo = class {
|
|
8
|
+
constructor(e, o, s) {
|
|
9
|
+
if (this._$cssResult$ = !0, s !== Ct) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = e, this.t = o;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let e = this.o;
|
|
14
14
|
const o = this.t;
|
|
15
|
-
if (
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
if (_t && e === void 0) {
|
|
16
|
+
const s = o !== void 0 && o.length === 1;
|
|
17
|
+
s && (e = It.get(o)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && It.set(o, e));
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
@@ -22,59 +22,59 @@ let Gt = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
const o =
|
|
25
|
+
const yo = (r) => new oo(typeof r == "string" ? r : r + "", void 0, Ct), d = (r, ...e) => {
|
|
26
|
+
const o = r.length === 1 ? r[0] : e.reduce((s, t, a) => s + ((i) => {
|
|
27
27
|
if (i._$cssResult$ === !0) return i.cssText;
|
|
28
28
|
if (typeof i == "number") return i;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(t) +
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
30
|
+
})(t) + r[a + 1], r[0]);
|
|
31
|
+
return new oo(o, r, Ct);
|
|
32
|
+
}, mo = (r, e) => {
|
|
33
|
+
if (_t) r.adoptedStyleSheets = e.map((o) => o instanceof CSSStyleSheet ? o : o.styleSheet);
|
|
34
34
|
else for (const o of e) {
|
|
35
|
-
const
|
|
36
|
-
t !== void 0 &&
|
|
35
|
+
const s = document.createElement("style"), t = Ie.litNonce;
|
|
36
|
+
t !== void 0 && s.setAttribute("nonce", t), s.textContent = o.cssText, r.appendChild(s);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, qt = _t ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
|
|
39
39
|
let o = "";
|
|
40
|
-
for (const
|
|
41
|
-
return
|
|
42
|
-
})(
|
|
40
|
+
for (const s of e.cssRules) o += s.cssText;
|
|
41
|
+
return yo(o);
|
|
42
|
+
})(r) : r;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: $o, defineProperty: wo, getOwnPropertyDescriptor: _o, getOwnPropertyNames: Co, getOwnPropertySymbols: Oo, getPrototypeOf: Mo } = Object, M = globalThis, Ft = M.trustedTypes, Po = Ft ? Ft.emptyScript : "", pt = M.reactiveElementPolyfillSupport, se = (r, e) => r, qe = { toAttribute(r, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
|
|
51
|
+
r = r ? Po : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
55
|
-
|
|
55
|
+
r = r == null ? r : JSON.stringify(r);
|
|
56
56
|
}
|
|
57
|
-
return
|
|
58
|
-
}, fromAttribute(
|
|
59
|
-
let o =
|
|
57
|
+
return r;
|
|
58
|
+
}, fromAttribute(r, e) {
|
|
59
|
+
let o = r;
|
|
60
60
|
switch (e) {
|
|
61
61
|
case Boolean:
|
|
62
|
-
o =
|
|
62
|
+
o = r !== null;
|
|
63
63
|
break;
|
|
64
64
|
case Number:
|
|
65
|
-
o =
|
|
65
|
+
o = r === null ? null : Number(r);
|
|
66
66
|
break;
|
|
67
67
|
case Object:
|
|
68
68
|
case Array:
|
|
69
69
|
try {
|
|
70
|
-
o = JSON.parse(
|
|
70
|
+
o = JSON.parse(r);
|
|
71
71
|
} catch {
|
|
72
72
|
o = null;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return o;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
76
|
+
} }, Ot = (r, e) => !$o(r, e), Zt = { attribute: !0, type: String, converter: qe, reflect: !1, useDefault: !1, hasChanged: Ot };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), M.litPropertyMetadata ?? (M.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let q = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
@@ -82,45 +82,45 @@ let q = class extends HTMLElement {
|
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(e, o =
|
|
85
|
+
static createProperty(e, o = Zt) {
|
|
86
86
|
if (o.state && (o.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((o = Object.create(o)).wrapped = !0), this.elementProperties.set(e, o), !o.noAccessor) {
|
|
87
|
-
const
|
|
88
|
-
t !== void 0 &&
|
|
87
|
+
const s = Symbol(), t = this.getPropertyDescriptor(e, s, o);
|
|
88
|
+
t !== void 0 && wo(this.prototype, e, t);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(e, o,
|
|
92
|
-
const { get: t, set: a } =
|
|
91
|
+
static getPropertyDescriptor(e, o, s) {
|
|
92
|
+
const { get: t, set: a } = _o(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[o];
|
|
94
94
|
}, set(i) {
|
|
95
95
|
this[o] = i;
|
|
96
96
|
} };
|
|
97
97
|
return { get: t, set(i) {
|
|
98
|
-
const
|
|
99
|
-
a == null || a.call(this, i), this.requestUpdate(e,
|
|
98
|
+
const u = t == null ? void 0 : t.call(this);
|
|
99
|
+
a == null || a.call(this, i), this.requestUpdate(e, u, s);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(e) {
|
|
103
|
-
return this.elementProperties.get(e) ??
|
|
103
|
+
return this.elementProperties.get(e) ?? Zt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const e =
|
|
106
|
+
if (this.hasOwnProperty(se("elementProperties"))) return;
|
|
107
|
+
const e = Mo(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const o = this.properties,
|
|
114
|
-
for (const t of
|
|
111
|
+
if (this.hasOwnProperty(se("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(se("properties"))) {
|
|
113
|
+
const o = this.properties, s = [...Co(o), ...Oo(o)];
|
|
114
|
+
for (const t of s) this.createProperty(t, o[t]);
|
|
115
115
|
}
|
|
116
116
|
const e = this[Symbol.metadata];
|
|
117
117
|
if (e !== null) {
|
|
118
118
|
const o = litPropertyMetadata.get(e);
|
|
119
|
-
if (o !== void 0) for (const [
|
|
119
|
+
if (o !== void 0) for (const [s, t] of o) this.elementProperties.set(s, t);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [o,
|
|
123
|
-
const t = this._$Eu(o,
|
|
122
|
+
for (const [o, s] of this.elementProperties) {
|
|
123
|
+
const t = this._$Eu(o, s);
|
|
124
124
|
t !== void 0 && this._$Eh.set(t, o);
|
|
125
125
|
}
|
|
126
126
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
@@ -128,14 +128,14 @@ let q = class extends HTMLElement {
|
|
|
128
128
|
static finalizeStyles(e) {
|
|
129
129
|
const o = [];
|
|
130
130
|
if (Array.isArray(e)) {
|
|
131
|
-
const
|
|
132
|
-
for (const t of
|
|
133
|
-
} else e !== void 0 && o.push(
|
|
131
|
+
const s = new Set(e.flat(1 / 0).reverse());
|
|
132
|
+
for (const t of s) o.unshift(qt(t));
|
|
133
|
+
} else e !== void 0 && o.push(qt(e));
|
|
134
134
|
return o;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(e, o) {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
137
|
+
const s = o.attribute;
|
|
138
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof e == "string" ? e.toLowerCase() : void 0;
|
|
139
139
|
}
|
|
140
140
|
constructor() {
|
|
141
141
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -154,18 +154,18 @@ let q = class extends HTMLElement {
|
|
|
154
154
|
}
|
|
155
155
|
_$E_() {
|
|
156
156
|
const e = /* @__PURE__ */ new Map(), o = this.constructor.elementProperties;
|
|
157
|
-
for (const
|
|
157
|
+
for (const s of o.keys()) this.hasOwnProperty(s) && (e.set(s, this[s]), delete this[s]);
|
|
158
158
|
e.size > 0 && (this._$Ep = e);
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return mo(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
166
166
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((o) => {
|
|
167
|
-
var
|
|
168
|
-
return (
|
|
167
|
+
var s;
|
|
168
|
+
return (s = o.hostConnected) == null ? void 0 : s.call(o);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(e) {
|
|
@@ -173,42 +173,42 @@ let q = class extends HTMLElement {
|
|
|
173
173
|
disconnectedCallback() {
|
|
174
174
|
var e;
|
|
175
175
|
(e = this._$EO) == null || e.forEach((o) => {
|
|
176
|
-
var
|
|
177
|
-
return (
|
|
176
|
+
var s;
|
|
177
|
+
return (s = o.hostDisconnected) == null ? void 0 : s.call(o);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(e, o,
|
|
181
|
-
this._$AK(e,
|
|
180
|
+
attributeChangedCallback(e, o, s) {
|
|
181
|
+
this._$AK(e, s);
|
|
182
182
|
}
|
|
183
183
|
_$ET(e, o) {
|
|
184
184
|
var a;
|
|
185
|
-
const
|
|
186
|
-
if (t !== void 0 &&
|
|
187
|
-
const i = (((a =
|
|
185
|
+
const s = this.constructor.elementProperties.get(e), t = this.constructor._$Eu(e, s);
|
|
186
|
+
if (t !== void 0 && s.reflect === !0) {
|
|
187
|
+
const i = (((a = s.converter) == null ? void 0 : a.toAttribute) !== void 0 ? s.converter : qe).toAttribute(o, s.type);
|
|
188
188
|
this._$Em = e, i == null ? this.removeAttribute(t) : this.setAttribute(t, i), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(e, o) {
|
|
192
192
|
var a, i;
|
|
193
|
-
const
|
|
193
|
+
const s = this.constructor, t = s._$Eh.get(e);
|
|
194
194
|
if (t !== void 0 && this._$Em !== t) {
|
|
195
|
-
const
|
|
195
|
+
const u = s.getPropertyOptions(t), v = typeof u.converter == "function" ? { fromAttribute: u.converter } : ((a = u.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? u.converter : qe;
|
|
196
196
|
this._$Em = t;
|
|
197
|
-
const
|
|
198
|
-
this[t] =
|
|
197
|
+
const f = v.fromAttribute(o, u.type);
|
|
198
|
+
this[t] = f ?? ((i = this._$Ej) == null ? void 0 : i.get(t)) ?? f, this._$Em = null;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
requestUpdate(e, o,
|
|
201
|
+
requestUpdate(e, o, s, t = !1, a) {
|
|
202
202
|
var i;
|
|
203
203
|
if (e !== void 0) {
|
|
204
|
-
const
|
|
205
|
-
if (t === !1 && (a = this[e]),
|
|
206
|
-
this.C(e, o,
|
|
204
|
+
const u = this.constructor;
|
|
205
|
+
if (t === !1 && (a = this[e]), s ?? (s = u.getPropertyOptions(e)), !((s.hasChanged ?? Ot)(a, o) || s.useDefault && s.reflect && a === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(u._$Eu(e, s)))) return;
|
|
206
|
+
this.C(e, o, s);
|
|
207
207
|
}
|
|
208
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
209
209
|
}
|
|
210
|
-
C(e, o, { useDefault:
|
|
211
|
-
|
|
210
|
+
C(e, o, { useDefault: s, reflect: t, wrapped: a }, i) {
|
|
211
|
+
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, i ?? o ?? this[e]), a !== !0 || i !== void 0) || (this._$AL.has(e) || (this.hasUpdated || s || (o = void 0), this._$AL.set(e, o)), t === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
|
|
212
212
|
}
|
|
213
213
|
async _$EP() {
|
|
214
214
|
this.isUpdatePending = !0;
|
|
@@ -224,7 +224,7 @@ let q = class extends HTMLElement {
|
|
|
224
224
|
return this.performUpdate();
|
|
225
225
|
}
|
|
226
226
|
performUpdate() {
|
|
227
|
-
var
|
|
227
|
+
var s;
|
|
228
228
|
if (!this.isUpdatePending) return;
|
|
229
229
|
if (!this.hasUpdated) {
|
|
230
230
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
@@ -233,14 +233,14 @@ let q = class extends HTMLElement {
|
|
|
233
233
|
}
|
|
234
234
|
const t = this.constructor.elementProperties;
|
|
235
235
|
if (t.size > 0) for (const [a, i] of t) {
|
|
236
|
-
const { wrapped:
|
|
237
|
-
|
|
236
|
+
const { wrapped: u } = i, v = this[a];
|
|
237
|
+
u !== !0 || this._$AL.has(a) || v === void 0 || this.C(a, void 0, i, v);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
let e = !1;
|
|
241
241
|
const o = this._$AL;
|
|
242
242
|
try {
|
|
243
|
-
e = this.shouldUpdate(o), e ? (this.willUpdate(o), (
|
|
243
|
+
e = this.shouldUpdate(o), e ? (this.willUpdate(o), (s = this._$EO) == null || s.forEach((t) => {
|
|
244
244
|
var a;
|
|
245
245
|
return (a = t.hostUpdate) == null ? void 0 : a.call(t);
|
|
246
246
|
}), this.update(o)) : this._$EM();
|
|
@@ -253,9 +253,9 @@ let q = class extends HTMLElement {
|
|
|
253
253
|
}
|
|
254
254
|
_$AE(e) {
|
|
255
255
|
var o;
|
|
256
|
-
(o = this._$EO) == null || o.forEach((
|
|
256
|
+
(o = this._$EO) == null || o.forEach((s) => {
|
|
257
257
|
var t;
|
|
258
|
-
return (t =
|
|
258
|
+
return (t = s.hostUpdated) == null ? void 0 : t.call(s);
|
|
259
259
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
260
260
|
}
|
|
261
261
|
_$EM() {
|
|
@@ -278,76 +278,76 @@ let q = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(e) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[
|
|
281
|
+
q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[se("elementProperties")] = /* @__PURE__ */ new Map(), q[se("finalized")] = /* @__PURE__ */ new Map(), pt == null || pt({ ReactiveElement: q }), (M.reactiveElementVersions ?? (M.reactiveElementVersions = [])).push("2.1.2");
|
|
282
282
|
/**
|
|
283
283
|
* @license
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const
|
|
288
|
-
\f\r]`,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
292
|
-
return
|
|
287
|
+
const ae = globalThis, Kt = (r) => r, Fe = ae.trustedTypes, Gt = Fe ? Fe.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ro = "$lit$", O = `lit$${Math.random().toFixed(9).slice(2)}$`, so = "?" + O, Ao = `<${so}>`, V = document, ie = () => V.createComment(""), ne = (r) => r === null || typeof r != "object" && typeof r != "function", Mt = Array.isArray, ko = (r) => Mt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", vt = `[
|
|
288
|
+
\f\r]`, re = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Wt = /-->/g, Xt = />/g, k = RegExp(`>|${vt}(?:([^\\s"'>=/]+)(${vt}*=${vt}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Jt = /"/g, ao = /^(?:script|style|textarea|title)$/i, io = (r) => (e, ...o) => ({ _$litType$: r, strings: e, values: o }), c = io(1), l = io(2), m = Symbol.for("lit-noChange"), x = Symbol.for("lit-nothing"), Qt = /* @__PURE__ */ new WeakMap(), E = V.createTreeWalker(V, 129);
|
|
290
|
+
function no(r, e) {
|
|
291
|
+
if (!Mt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return Gt !== void 0 ? Gt.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
295
|
-
const o =
|
|
296
|
-
let t, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", i =
|
|
297
|
-
for (let
|
|
298
|
-
const
|
|
299
|
-
let
|
|
300
|
-
for (;
|
|
301
|
-
const
|
|
302
|
-
a += i ===
|
|
303
|
-
}
|
|
304
|
-
return [
|
|
294
|
+
const Lo = (r, e) => {
|
|
295
|
+
const o = r.length - 1, s = [];
|
|
296
|
+
let t, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", i = re;
|
|
297
|
+
for (let u = 0; u < o; u++) {
|
|
298
|
+
const v = r[u];
|
|
299
|
+
let f, b, g = -1, w = 0;
|
|
300
|
+
for (; w < v.length && (i.lastIndex = w, b = i.exec(v), b !== null); ) w = i.lastIndex, i === re ? b[1] === "!--" ? i = Wt : b[1] !== void 0 ? i = Xt : b[2] !== void 0 ? (ao.test(b[2]) && (t = RegExp("</" + b[2], "g")), i = k) : b[3] !== void 0 && (i = k) : i === k ? b[0] === ">" ? (i = t ?? re, g = -1) : b[1] === void 0 ? g = -2 : (g = i.lastIndex - b[2].length, f = b[1], i = b[3] === void 0 ? k : b[3] === '"' ? Jt : Yt) : i === Jt || i === Yt ? i = k : i === Wt || i === Xt ? i = re : (i = k, t = void 0);
|
|
301
|
+
const C = i === k && r[u + 1].startsWith("/>") ? " " : "";
|
|
302
|
+
a += i === re ? v + Ao : g >= 0 ? (s.push(f), v.slice(0, g) + ro + v.slice(g) + O + C) : v + O + (g === -2 ? u : C);
|
|
303
|
+
}
|
|
304
|
+
return [no(r, a + (r[o] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
|
|
305
305
|
};
|
|
306
|
-
class
|
|
307
|
-
constructor({ strings: e, _$litType$: o },
|
|
306
|
+
class le {
|
|
307
|
+
constructor({ strings: e, _$litType$: o }, s) {
|
|
308
308
|
let t;
|
|
309
309
|
this.parts = [];
|
|
310
310
|
let a = 0, i = 0;
|
|
311
|
-
const
|
|
312
|
-
if (this.el =
|
|
313
|
-
const
|
|
314
|
-
|
|
311
|
+
const u = e.length - 1, v = this.parts, [f, b] = Lo(e, o);
|
|
312
|
+
if (this.el = le.createElement(f, s), E.currentNode = this.el.content, o === 2 || o === 3) {
|
|
313
|
+
const g = this.el.content.firstChild;
|
|
314
|
+
g.replaceWith(...g.childNodes);
|
|
315
315
|
}
|
|
316
|
-
for (; (t =
|
|
316
|
+
for (; (t = E.nextNode()) !== null && v.length < u; ) {
|
|
317
317
|
if (t.nodeType === 1) {
|
|
318
|
-
if (t.hasAttributes()) for (const
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
} else
|
|
322
|
-
if (
|
|
323
|
-
const
|
|
324
|
-
if (
|
|
325
|
-
t.textContent =
|
|
326
|
-
for (let
|
|
327
|
-
t.append(
|
|
318
|
+
if (t.hasAttributes()) for (const g of t.getAttributeNames()) if (g.endsWith(ro)) {
|
|
319
|
+
const w = b[i++], C = t.getAttribute(g).split(O), Re = /([.?@])?(.*)/.exec(w);
|
|
320
|
+
v.push({ type: 1, index: a, name: Re[2], strings: C, ctor: Re[1] === "." ? So : Re[1] === "?" ? Vo : Re[1] === "@" ? jo : ot }), t.removeAttribute(g);
|
|
321
|
+
} else g.startsWith(O) && (v.push({ type: 6, index: a }), t.removeAttribute(g));
|
|
322
|
+
if (ao.test(t.tagName)) {
|
|
323
|
+
const g = t.textContent.split(O), w = g.length - 1;
|
|
324
|
+
if (w > 0) {
|
|
325
|
+
t.textContent = Fe ? Fe.emptyScript : "";
|
|
326
|
+
for (let C = 0; C < w; C++) t.append(g[C], ie()), E.nextNode(), v.push({ type: 2, index: ++a });
|
|
327
|
+
t.append(g[w], ie());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (t.nodeType === 8) if (t.data ===
|
|
330
|
+
} else if (t.nodeType === 8) if (t.data === so) v.push({ type: 2, index: a });
|
|
331
331
|
else {
|
|
332
|
-
let
|
|
333
|
-
for (; (
|
|
332
|
+
let g = -1;
|
|
333
|
+
for (; (g = t.data.indexOf(O, g + 1)) !== -1; ) v.push({ type: 7, index: a }), g += O.length - 1;
|
|
334
334
|
}
|
|
335
335
|
a++;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
static createElement(e, o) {
|
|
339
|
-
const
|
|
340
|
-
return
|
|
339
|
+
const s = V.createElement("template");
|
|
340
|
+
return s.innerHTML = e, s;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
var i,
|
|
343
|
+
function F(r, e, o = r, s) {
|
|
344
|
+
var i, u;
|
|
345
345
|
if (e === m) return e;
|
|
346
|
-
let t =
|
|
347
|
-
const a =
|
|
348
|
-
return (t == null ? void 0 : t.constructor) !== a && ((
|
|
346
|
+
let t = s !== void 0 ? (i = o._$Co) == null ? void 0 : i[s] : o._$Cl;
|
|
347
|
+
const a = ne(e) ? void 0 : e._$litDirective$;
|
|
348
|
+
return (t == null ? void 0 : t.constructor) !== a && ((u = t == null ? void 0 : t._$AO) == null || u.call(t, !1), a === void 0 ? t = void 0 : (t = new a(r), t._$AT(r, o, s)), s !== void 0 ? (o._$Co ?? (o._$Co = []))[s] = t : o._$Cl = t), t !== void 0 && (e = F(r, t._$AS(r, e.values), t, s)), e;
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class Eo {
|
|
351
351
|
constructor(e, o) {
|
|
352
352
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = o;
|
|
353
353
|
}
|
|
@@ -358,30 +358,30 @@ class Po {
|
|
|
358
358
|
return this._$AM._$AU;
|
|
359
359
|
}
|
|
360
360
|
u(e) {
|
|
361
|
-
const { el: { content: o }, parts:
|
|
362
|
-
|
|
363
|
-
let a =
|
|
364
|
-
for (;
|
|
365
|
-
if (i ===
|
|
366
|
-
let
|
|
367
|
-
|
|
361
|
+
const { el: { content: o }, parts: s } = this._$AD, t = ((e == null ? void 0 : e.creationScope) ?? V).importNode(o, !0);
|
|
362
|
+
E.currentNode = t;
|
|
363
|
+
let a = E.nextNode(), i = 0, u = 0, v = s[0];
|
|
364
|
+
for (; v !== void 0; ) {
|
|
365
|
+
if (i === v.index) {
|
|
366
|
+
let f;
|
|
367
|
+
v.type === 2 ? f = new Le(a, a.nextSibling, this, e) : v.type === 1 ? f = new v.ctor(a, v.name, v.strings, this, e) : v.type === 6 && (f = new Do(a, this, e)), this._$AV.push(f), v = s[++u];
|
|
368
368
|
}
|
|
369
|
-
i !== (
|
|
369
|
+
i !== (v == null ? void 0 : v.index) && (a = E.nextNode(), i++);
|
|
370
370
|
}
|
|
371
|
-
return
|
|
371
|
+
return E.currentNode = V, t;
|
|
372
372
|
}
|
|
373
373
|
p(e) {
|
|
374
374
|
let o = 0;
|
|
375
|
-
for (const
|
|
375
|
+
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, o), o += s.strings.length - 2) : s._$AI(e[o])), o++;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
class
|
|
378
|
+
class Le {
|
|
379
379
|
get _$AU() {
|
|
380
380
|
var e;
|
|
381
381
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
382
382
|
}
|
|
383
|
-
constructor(e, o,
|
|
384
|
-
this.type = 2, this._$AH =
|
|
383
|
+
constructor(e, o, s, t) {
|
|
384
|
+
this.type = 2, this._$AH = x, this._$AN = void 0, this._$AA = e, this._$AB = o, this._$AM = s, this.options = t, this._$Cv = (t == null ? void 0 : t.isConnected) ?? !0;
|
|
385
385
|
}
|
|
386
386
|
get parentNode() {
|
|
387
387
|
let e = this._$AA.parentNode;
|
|
@@ -395,7 +395,7 @@ class Oe {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(e, o = this) {
|
|
398
|
-
e =
|
|
398
|
+
e = F(this, e, o), ne(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== m && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ko(e) ? this.k(e) : this._(e);
|
|
399
399
|
}
|
|
400
400
|
O(e) {
|
|
401
401
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -404,33 +404,33 @@ class Oe {
|
|
|
404
404
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
405
405
|
}
|
|
406
406
|
_(e) {
|
|
407
|
-
this._$AH !==
|
|
407
|
+
this._$AH !== x && ne(this._$AH) ? this._$AA.nextSibling.data = e : this.T(V.createTextNode(e)), this._$AH = e;
|
|
408
408
|
}
|
|
409
409
|
$(e) {
|
|
410
410
|
var a;
|
|
411
|
-
const { values: o, _$litType$:
|
|
411
|
+
const { values: o, _$litType$: s } = e, t = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = le.createElement(no(s.h, s.h[0]), this.options)), s);
|
|
412
412
|
if (((a = this._$AH) == null ? void 0 : a._$AD) === t) this._$AH.p(o);
|
|
413
413
|
else {
|
|
414
|
-
const i = new
|
|
415
|
-
i.p(o), this.T(
|
|
414
|
+
const i = new Eo(t, this), u = i.u(this.options);
|
|
415
|
+
i.p(o), this.T(u), this._$AH = i;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
_$AC(e) {
|
|
419
|
-
let o =
|
|
420
|
-
return o === void 0 &&
|
|
419
|
+
let o = Qt.get(e.strings);
|
|
420
|
+
return o === void 0 && Qt.set(e.strings, o = new le(e)), o;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
|
-
|
|
423
|
+
Mt(this._$AH) || (this._$AH = [], this._$AR());
|
|
424
424
|
const o = this._$AH;
|
|
425
|
-
let
|
|
426
|
-
for (const a of e) t === o.length ? o.push(
|
|
427
|
-
t < o.length && (this._$AR(
|
|
425
|
+
let s, t = 0;
|
|
426
|
+
for (const a of e) t === o.length ? o.push(s = new Le(this.O(ie()), this.O(ie()), this, this.options)) : s = o[t], s._$AI(a), t++;
|
|
427
|
+
t < o.length && (this._$AR(s && s._$AB.nextSibling, t), o.length = t);
|
|
428
428
|
}
|
|
429
429
|
_$AR(e = this._$AA.nextSibling, o) {
|
|
430
|
-
var
|
|
431
|
-
for ((
|
|
432
|
-
const t =
|
|
433
|
-
|
|
430
|
+
var s;
|
|
431
|
+
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, o); e !== this._$AB; ) {
|
|
432
|
+
const t = Kt(e).nextSibling;
|
|
433
|
+
Kt(e).remove(), e = t;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
setConnected(e) {
|
|
@@ -438,89 +438,89 @@ class Oe {
|
|
|
438
438
|
this._$AM === void 0 && (this._$Cv = e, (o = this._$AP) == null || o.call(this, e));
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class ot {
|
|
442
442
|
get tagName() {
|
|
443
443
|
return this.element.tagName;
|
|
444
444
|
}
|
|
445
445
|
get _$AU() {
|
|
446
446
|
return this._$AM._$AU;
|
|
447
447
|
}
|
|
448
|
-
constructor(e, o,
|
|
449
|
-
this.type = 1, this._$AH =
|
|
448
|
+
constructor(e, o, s, t, a) {
|
|
449
|
+
this.type = 1, this._$AH = x, this._$AN = void 0, this.element = e, this.name = o, this._$AM = t, this.options = a, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = x;
|
|
450
450
|
}
|
|
451
|
-
_$AI(e, o = this,
|
|
451
|
+
_$AI(e, o = this, s, t) {
|
|
452
452
|
const a = this.strings;
|
|
453
453
|
let i = !1;
|
|
454
|
-
if (a === void 0) e =
|
|
454
|
+
if (a === void 0) e = F(this, e, o, 0), i = !ne(e) || e !== this._$AH && e !== m, i && (this._$AH = e);
|
|
455
455
|
else {
|
|
456
|
-
const
|
|
457
|
-
let
|
|
458
|
-
for (e = a[0],
|
|
456
|
+
const u = e;
|
|
457
|
+
let v, f;
|
|
458
|
+
for (e = a[0], v = 0; v < a.length - 1; v++) f = F(this, u[s + v], o, v), f === m && (f = this._$AH[v]), i || (i = !ne(f) || f !== this._$AH[v]), f === x ? e = x : e !== x && (e += (f ?? "") + a[v + 1]), this._$AH[v] = f;
|
|
459
459
|
}
|
|
460
460
|
i && !t && this.j(e);
|
|
461
461
|
}
|
|
462
462
|
j(e) {
|
|
463
|
-
e ===
|
|
463
|
+
e === x ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class
|
|
466
|
+
class So extends ot {
|
|
467
467
|
constructor() {
|
|
468
468
|
super(...arguments), this.type = 3;
|
|
469
469
|
}
|
|
470
470
|
j(e) {
|
|
471
|
-
this.element[this.name] = e ===
|
|
471
|
+
this.element[this.name] = e === x ? void 0 : e;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class Vo extends ot {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
478
478
|
j(e) {
|
|
479
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
479
|
+
this.element.toggleAttribute(this.name, !!e && e !== x);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
483
|
-
constructor(e, o,
|
|
484
|
-
super(e, o,
|
|
482
|
+
class jo extends ot {
|
|
483
|
+
constructor(e, o, s, t, a) {
|
|
484
|
+
super(e, o, s, t, a), this.type = 5;
|
|
485
485
|
}
|
|
486
486
|
_$AI(e, o = this) {
|
|
487
|
-
if ((e =
|
|
488
|
-
const
|
|
489
|
-
t && this.element.removeEventListener(this.name, this,
|
|
487
|
+
if ((e = F(this, e, o, 0) ?? x) === m) return;
|
|
488
|
+
const s = this._$AH, t = e === x && s !== x || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, a = e !== x && (s === x || t);
|
|
489
|
+
t && this.element.removeEventListener(this.name, this, s), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
490
490
|
}
|
|
491
491
|
handleEvent(e) {
|
|
492
492
|
var o;
|
|
493
493
|
typeof this._$AH == "function" ? this._$AH.call(((o = this.options) == null ? void 0 : o.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
class
|
|
497
|
-
constructor(e, o,
|
|
498
|
-
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = o, this.options =
|
|
496
|
+
class Do {
|
|
497
|
+
constructor(e, o, s) {
|
|
498
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = o, this.options = s;
|
|
499
499
|
}
|
|
500
500
|
get _$AU() {
|
|
501
501
|
return this._$AM._$AU;
|
|
502
502
|
}
|
|
503
503
|
_$AI(e) {
|
|
504
|
-
|
|
504
|
+
F(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
const
|
|
511
|
-
let t =
|
|
507
|
+
const ut = ae.litHtmlPolyfillSupport;
|
|
508
|
+
ut == null || ut(le, Le), (ae.litHtmlVersions ?? (ae.litHtmlVersions = [])).push("3.3.3");
|
|
509
|
+
const Ho = (r, e, o) => {
|
|
510
|
+
const s = (o == null ? void 0 : o.renderBefore) ?? e;
|
|
511
|
+
let t = s._$litPart$;
|
|
512
512
|
if (t === void 0) {
|
|
513
513
|
const a = (o == null ? void 0 : o.renderBefore) ?? null;
|
|
514
|
-
|
|
514
|
+
s._$litPart$ = t = new Le(e.insertBefore(ie(), a), a, void 0, o ?? {});
|
|
515
515
|
}
|
|
516
|
-
return t._$AI(
|
|
516
|
+
return t._$AI(r), t;
|
|
517
517
|
};
|
|
518
518
|
/**
|
|
519
519
|
* @license
|
|
520
520
|
* Copyright 2017 Google LLC
|
|
521
521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
522
522
|
*/
|
|
523
|
-
const
|
|
523
|
+
const S = globalThis;
|
|
524
524
|
let p = class extends q {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -532,7 +532,7 @@ let p = class extends q {
|
|
|
532
532
|
}
|
|
533
533
|
update(e) {
|
|
534
534
|
const o = this.render();
|
|
535
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
535
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Ho(o, this.renderRoot, this.renderOptions);
|
|
536
536
|
}
|
|
537
537
|
connectedCallback() {
|
|
538
538
|
var e;
|
|
@@ -546,79 +546,79 @@ let p = class extends q {
|
|
|
546
546
|
return m;
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
var
|
|
550
|
-
p._$litElement$ = !0, p.finalized = !0, (
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
(
|
|
549
|
+
var to;
|
|
550
|
+
p._$litElement$ = !0, p.finalized = !0, (to = S.litElementHydrateSupport) == null || to.call(S, { LitElement: p });
|
|
551
|
+
const xt = S.litElementPolyfillSupport;
|
|
552
|
+
xt == null || xt({ LitElement: p });
|
|
553
|
+
(S.litElementVersions ?? (S.litElementVersions = [])).push("4.2.2");
|
|
554
554
|
/**
|
|
555
555
|
* @license
|
|
556
556
|
* Copyright 2017 Google LLC
|
|
557
557
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
558
558
|
*/
|
|
559
|
-
const
|
|
559
|
+
const h = (r) => (e, o) => {
|
|
560
560
|
o !== void 0 ? o.addInitializer(() => {
|
|
561
|
-
customElements.define(
|
|
562
|
-
}) : customElements.define(
|
|
561
|
+
customElements.define(r, e);
|
|
562
|
+
}) : customElements.define(r, e);
|
|
563
563
|
};
|
|
564
564
|
/**
|
|
565
565
|
* @license
|
|
566
566
|
* Copyright 2017 Google LLC
|
|
567
567
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
568
568
|
*/
|
|
569
|
-
const
|
|
570
|
-
const { kind:
|
|
569
|
+
const zo = { attribute: !0, type: String, converter: qe, reflect: !1, hasChanged: Ot }, To = (r = zo, e, o) => {
|
|
570
|
+
const { kind: s, metadata: t } = o;
|
|
571
571
|
let a = globalThis.litPropertyMetadata.get(t);
|
|
572
|
-
if (a === void 0 && globalThis.litPropertyMetadata.set(t, a = /* @__PURE__ */ new Map()),
|
|
572
|
+
if (a === void 0 && globalThis.litPropertyMetadata.set(t, a = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), a.set(o.name, r), s === "accessor") {
|
|
573
573
|
const { name: i } = o;
|
|
574
|
-
return { set(
|
|
575
|
-
const
|
|
576
|
-
e.set.call(this,
|
|
577
|
-
}, init(
|
|
578
|
-
return
|
|
574
|
+
return { set(u) {
|
|
575
|
+
const v = e.get.call(this);
|
|
576
|
+
e.set.call(this, u), this.requestUpdate(i, v, r, !0, u);
|
|
577
|
+
}, init(u) {
|
|
578
|
+
return u !== void 0 && this.C(i, void 0, r, u), u;
|
|
579
579
|
} };
|
|
580
580
|
}
|
|
581
|
-
if (
|
|
581
|
+
if (s === "setter") {
|
|
582
582
|
const { name: i } = o;
|
|
583
|
-
return function(
|
|
584
|
-
const
|
|
585
|
-
e.call(this,
|
|
583
|
+
return function(u) {
|
|
584
|
+
const v = this[i];
|
|
585
|
+
e.call(this, u), this.requestUpdate(i, v, r, !0, u);
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
throw Error("Unsupported decorator location: " +
|
|
588
|
+
throw Error("Unsupported decorator location: " + s);
|
|
589
589
|
};
|
|
590
|
-
function n(
|
|
591
|
-
return (e, o) => typeof o == "object" ?
|
|
590
|
+
function n(r) {
|
|
591
|
+
return (e, o) => typeof o == "object" ? To(r, e, o) : ((s, t, a) => {
|
|
592
592
|
const i = t.hasOwnProperty(a);
|
|
593
|
-
return t.constructor.createProperty(a,
|
|
594
|
-
})(
|
|
593
|
+
return t.constructor.createProperty(a, s), i ? Object.getOwnPropertyDescriptor(t, a) : void 0;
|
|
594
|
+
})(r, e, o);
|
|
595
595
|
}
|
|
596
596
|
/**
|
|
597
597
|
* @license
|
|
598
598
|
* Copyright 2017 Google LLC
|
|
599
599
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
600
600
|
*/
|
|
601
|
-
function
|
|
602
|
-
return n({ ...
|
|
601
|
+
function rt(r) {
|
|
602
|
+
return n({ ...r, state: !0, attribute: !1 });
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
605
605
|
* @license
|
|
606
606
|
* Copyright 2017 Google LLC
|
|
607
607
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
608
608
|
*/
|
|
609
|
-
const
|
|
609
|
+
const Bo = (r, e, o) => (o.configurable = !0, o.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, o), o);
|
|
610
610
|
/**
|
|
611
611
|
* @license
|
|
612
612
|
* Copyright 2017 Google LLC
|
|
613
613
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
614
614
|
*/
|
|
615
|
-
function
|
|
616
|
-
return (o,
|
|
615
|
+
function Pt(r, e) {
|
|
616
|
+
return (o, s, t) => {
|
|
617
617
|
const a = (i) => {
|
|
618
|
-
var
|
|
619
|
-
return ((
|
|
618
|
+
var u;
|
|
619
|
+
return ((u = i.renderRoot) == null ? void 0 : u.querySelector(r)) ?? null;
|
|
620
620
|
};
|
|
621
|
-
return
|
|
621
|
+
return Bo(o, s, { get() {
|
|
622
622
|
return a(this);
|
|
623
623
|
} });
|
|
624
624
|
};
|
|
@@ -628,15 +628,15 @@ function bt(s, e) {
|
|
|
628
628
|
* Copyright 2017 Google LLC
|
|
629
629
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
630
630
|
*/
|
|
631
|
-
const
|
|
632
|
-
class
|
|
631
|
+
const L = { ATTRIBUTE: 1, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, lo = (r) => (...e) => ({ _$litDirective$: r, values: e });
|
|
632
|
+
class co {
|
|
633
633
|
constructor(e) {
|
|
634
634
|
}
|
|
635
635
|
get _$AU() {
|
|
636
636
|
return this._$AM._$AU;
|
|
637
637
|
}
|
|
638
|
-
_$AT(e, o,
|
|
639
|
-
this._$Ct = e, this._$AM = o, this._$Ci =
|
|
638
|
+
_$AT(e, o, s) {
|
|
639
|
+
this._$Ct = e, this._$AM = o, this._$Ci = s;
|
|
640
640
|
}
|
|
641
641
|
_$AS(e, o) {
|
|
642
642
|
return this.update(e, o);
|
|
@@ -650,22 +650,22 @@ class to {
|
|
|
650
650
|
* Copyright 2018 Google LLC
|
|
651
651
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
652
652
|
*/
|
|
653
|
-
const
|
|
654
|
-
constructor(
|
|
653
|
+
const No = lo(class extends co {
|
|
654
|
+
constructor(r) {
|
|
655
655
|
var e;
|
|
656
|
-
if (super(
|
|
656
|
+
if (super(r), r.type !== L.ATTRIBUTE || r.name !== "class" || ((e = r.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
657
657
|
}
|
|
658
|
-
render(
|
|
659
|
-
return " " + Object.keys(
|
|
658
|
+
render(r) {
|
|
659
|
+
return " " + Object.keys(r).filter((e) => r[e]).join(" ") + " ";
|
|
660
660
|
}
|
|
661
|
-
update(
|
|
662
|
-
var
|
|
661
|
+
update(r, [e]) {
|
|
662
|
+
var s, t;
|
|
663
663
|
if (this.st === void 0) {
|
|
664
|
-
this.st = /* @__PURE__ */ new Set(),
|
|
665
|
-
for (const a in e) e[a] && !((
|
|
664
|
+
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((a) => a !== "")));
|
|
665
|
+
for (const a in e) e[a] && !((s = this.nt) != null && s.has(a)) && this.st.add(a);
|
|
666
666
|
return this.render(e);
|
|
667
667
|
}
|
|
668
|
-
const o =
|
|
668
|
+
const o = r.element.classList;
|
|
669
669
|
for (const a of this.st) a in e || (o.remove(a), this.st.delete(a));
|
|
670
670
|
for (const a in e) {
|
|
671
671
|
const i = !!e[a];
|
|
@@ -679,39 +679,39 @@ const zo = eo(class extends to {
|
|
|
679
679
|
* Copyright 2018 Google LLC
|
|
680
680
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
681
681
|
*/
|
|
682
|
-
const
|
|
683
|
-
var
|
|
684
|
-
for (var t =
|
|
685
|
-
(i =
|
|
686
|
-
return
|
|
682
|
+
const Z = (r) => r ?? x;
|
|
683
|
+
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, R = (r, e, o, s) => {
|
|
684
|
+
for (var t = s > 1 ? void 0 : s ? Uo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
685
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
686
|
+
return s && t && Ro(e, o, t), t;
|
|
687
687
|
};
|
|
688
|
-
let
|
|
688
|
+
let _ = class extends p {
|
|
689
689
|
constructor() {
|
|
690
690
|
super(...arguments), this.variant = "brand", this.size = "md", this.type = "button", this.disabled = !1;
|
|
691
691
|
}
|
|
692
692
|
render() {
|
|
693
|
-
const
|
|
693
|
+
const r = No({
|
|
694
694
|
button: !0,
|
|
695
695
|
[this.variant]: !0,
|
|
696
696
|
[this.size]: !0
|
|
697
697
|
});
|
|
698
|
-
return this.href !== void 0 && !this.disabled ?
|
|
698
|
+
return this.href !== void 0 && !this.disabled ? c`
|
|
699
699
|
<a
|
|
700
|
-
class=${
|
|
700
|
+
class=${r}
|
|
701
701
|
href=${this.href}
|
|
702
|
-
target=${
|
|
703
|
-
rel=${
|
|
702
|
+
target=${Z(this.target)}
|
|
703
|
+
rel=${Z(this.target === "_blank" ? "noreferrer" : void 0)}
|
|
704
704
|
>
|
|
705
705
|
<slot></slot>
|
|
706
706
|
</a>
|
|
707
|
-
` :
|
|
708
|
-
<button class=${
|
|
707
|
+
` : c`
|
|
708
|
+
<button class=${r} type=${this.type} ?disabled=${this.disabled}>
|
|
709
709
|
<slot></slot>
|
|
710
710
|
</button>
|
|
711
711
|
`;
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
|
-
|
|
714
|
+
_.styles = d`
|
|
715
715
|
:host {
|
|
716
716
|
display: inline-block;
|
|
717
717
|
}
|
|
@@ -819,38 +819,38 @@ $.styles = c`
|
|
|
819
819
|
border-radius: 0 var(--vox-radius-md) var(--vox-radius-md) 0;
|
|
820
820
|
}
|
|
821
821
|
`;
|
|
822
|
-
|
|
822
|
+
R([
|
|
823
823
|
n()
|
|
824
|
-
],
|
|
825
|
-
|
|
824
|
+
], _.prototype, "variant", 2);
|
|
825
|
+
R([
|
|
826
826
|
n()
|
|
827
|
-
],
|
|
828
|
-
|
|
827
|
+
], _.prototype, "size", 2);
|
|
828
|
+
R([
|
|
829
829
|
n()
|
|
830
|
-
],
|
|
831
|
-
|
|
830
|
+
], _.prototype, "href", 2);
|
|
831
|
+
R([
|
|
832
832
|
n()
|
|
833
|
-
],
|
|
834
|
-
|
|
833
|
+
], _.prototype, "target", 2);
|
|
834
|
+
R([
|
|
835
835
|
n()
|
|
836
|
-
],
|
|
837
|
-
|
|
836
|
+
], _.prototype, "type", 2);
|
|
837
|
+
R([
|
|
838
838
|
n({ type: Boolean, reflect: !0 })
|
|
839
|
-
],
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
],
|
|
843
|
-
var
|
|
844
|
-
for (var t =
|
|
845
|
-
(i =
|
|
846
|
-
return
|
|
839
|
+
], _.prototype, "disabled", 2);
|
|
840
|
+
_ = R([
|
|
841
|
+
h("vox-button")
|
|
842
|
+
], _);
|
|
843
|
+
var Io = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, At = (r, e, o, s) => {
|
|
844
|
+
for (var t = s > 1 ? void 0 : s ? qo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
845
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
846
|
+
return s && t && Io(e, o, t), t;
|
|
847
847
|
};
|
|
848
|
-
let
|
|
848
|
+
let ce = class extends p {
|
|
849
849
|
constructor() {
|
|
850
850
|
super(...arguments), this.href = "#";
|
|
851
851
|
}
|
|
852
852
|
render() {
|
|
853
|
-
return
|
|
853
|
+
return c`
|
|
854
854
|
<a href=${this.href} target=${this.target ?? ""}>
|
|
855
855
|
<slot></slot>
|
|
856
856
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
@@ -861,7 +861,7 @@ let se = class extends p {
|
|
|
861
861
|
`;
|
|
862
862
|
}
|
|
863
863
|
};
|
|
864
|
-
|
|
864
|
+
ce.styles = d`
|
|
865
865
|
:host {
|
|
866
866
|
display: inline-block;
|
|
867
867
|
font-family: var(--vox-font-family-base);
|
|
@@ -898,60 +898,60 @@ se.styles = c`
|
|
|
898
898
|
transform: translateX(3px);
|
|
899
899
|
}
|
|
900
900
|
`;
|
|
901
|
-
|
|
901
|
+
At([
|
|
902
902
|
n()
|
|
903
|
-
],
|
|
904
|
-
|
|
903
|
+
], ce.prototype, "href", 2);
|
|
904
|
+
At([
|
|
905
905
|
n()
|
|
906
|
-
],
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
],
|
|
910
|
-
var
|
|
911
|
-
for (var t =
|
|
912
|
-
(i =
|
|
913
|
-
return
|
|
906
|
+
], ce.prototype, "target", 2);
|
|
907
|
+
ce = At([
|
|
908
|
+
h("vox-cta")
|
|
909
|
+
], ce);
|
|
910
|
+
var Fo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, st = (r, e, o, s) => {
|
|
911
|
+
for (var t = s > 1 ? void 0 : s ? Zo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
912
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
913
|
+
return s && t && Fo(e, o, t), t;
|
|
914
914
|
};
|
|
915
|
-
const
|
|
916
|
-
let
|
|
915
|
+
const eo = "vox-theme", Ue = "data-vox-theme";
|
|
916
|
+
let K = class extends p {
|
|
917
917
|
constructor() {
|
|
918
|
-
super(...arguments), this.lightLabel = "Switch to dark theme", this.darkLabel = "Switch to light theme", this.dark = !1, this.media = window.matchMedia("(prefers-color-scheme: dark)"), this.handleSystemChange = (
|
|
919
|
-
localStorage.getItem(
|
|
918
|
+
super(...arguments), this.lightLabel = "Switch to dark theme", this.darkLabel = "Switch to light theme", this.dark = !1, this.media = window.matchMedia("(prefers-color-scheme: dark)"), this.handleSystemChange = (r) => {
|
|
919
|
+
localStorage.getItem(eo) || document.documentElement.setAttribute(Ue, r.matches ? "dark" : "light");
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
922
|
connectedCallback() {
|
|
923
923
|
super.connectedCallback(), this.syncFromDocument(), this.observer = new MutationObserver(() => this.syncFromDocument()), this.observer.observe(document.documentElement, {
|
|
924
924
|
attributes: !0,
|
|
925
|
-
attributeFilter: [
|
|
925
|
+
attributeFilter: [Ue]
|
|
926
926
|
}), this.media.addEventListener("change", this.handleSystemChange);
|
|
927
927
|
}
|
|
928
928
|
disconnectedCallback() {
|
|
929
|
-
var
|
|
930
|
-
super.disconnectedCallback(), (
|
|
929
|
+
var r;
|
|
930
|
+
super.disconnectedCallback(), (r = this.observer) == null || r.disconnect(), this.media.removeEventListener("change", this.handleSystemChange);
|
|
931
931
|
}
|
|
932
932
|
syncFromDocument() {
|
|
933
|
-
const
|
|
934
|
-
this.dark =
|
|
933
|
+
const r = document.documentElement.getAttribute(Ue) === "dark";
|
|
934
|
+
this.dark = r, this.toggleAttribute("dark", r);
|
|
935
935
|
}
|
|
936
936
|
handleClick() {
|
|
937
|
-
const
|
|
938
|
-
document.documentElement.setAttribute(
|
|
937
|
+
const r = this.dark ? "light" : "dark";
|
|
938
|
+
document.documentElement.setAttribute(Ue, r), localStorage.setItem(eo, r), this.dispatchEvent(
|
|
939
939
|
new CustomEvent("vox-theme-change", {
|
|
940
|
-
detail: { theme:
|
|
940
|
+
detail: { theme: r },
|
|
941
941
|
bubbles: !0,
|
|
942
942
|
composed: !0
|
|
943
943
|
})
|
|
944
944
|
);
|
|
945
945
|
}
|
|
946
946
|
render() {
|
|
947
|
-
const
|
|
948
|
-
return
|
|
947
|
+
const r = this.dark ? this.darkLabel : this.lightLabel;
|
|
948
|
+
return c`
|
|
949
949
|
<button
|
|
950
950
|
type="button"
|
|
951
951
|
role="switch"
|
|
952
952
|
aria-checked=${this.dark}
|
|
953
|
-
aria-label=${
|
|
954
|
-
title=${
|
|
953
|
+
aria-label=${r}
|
|
954
|
+
title=${r}
|
|
955
955
|
@click=${this.handleClick}
|
|
956
956
|
>
|
|
957
957
|
<span class="track">
|
|
@@ -968,7 +968,7 @@ let F = class extends p {
|
|
|
968
968
|
`;
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
|
-
|
|
971
|
+
K.styles = d`
|
|
972
972
|
:host {
|
|
973
973
|
display: inline-flex;
|
|
974
974
|
}
|
|
@@ -1027,24 +1027,183 @@ F.styles = c`
|
|
|
1027
1027
|
transform: translateX(20px);
|
|
1028
1028
|
}
|
|
1029
1029
|
`;
|
|
1030
|
-
|
|
1030
|
+
st([
|
|
1031
1031
|
n({ attribute: "light-label" })
|
|
1032
|
-
],
|
|
1033
|
-
|
|
1032
|
+
], K.prototype, "lightLabel", 2);
|
|
1033
|
+
st([
|
|
1034
1034
|
n({ attribute: "dark-label" })
|
|
1035
|
-
],
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
],
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
],
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1035
|
+
], K.prototype, "darkLabel", 2);
|
|
1036
|
+
st([
|
|
1037
|
+
rt()
|
|
1038
|
+
], K.prototype, "dark", 2);
|
|
1039
|
+
K = st([
|
|
1040
|
+
h("vox-theme-toggle")
|
|
1041
|
+
], K);
|
|
1042
|
+
const j = {
|
|
1043
|
+
// Phase 1: shared UI baseline -----------------------------------------
|
|
1044
|
+
search: l`<circle cx="21" cy="21" r="13"/><path d="M30.5 30.5 L41 41"/>`,
|
|
1045
|
+
close: l`<path d="M14 14 L34 34 M34 14 L14 34"/>`,
|
|
1046
|
+
menu: l`<path d="M8 14 H40 M8 24 H40 M8 34 H40"/>`,
|
|
1047
|
+
"chevron-up": l`<path d="M14 28 L24 18 L34 28"/>`,
|
|
1048
|
+
"chevron-down": l`<path d="M14 20 L24 30 L34 20"/>`,
|
|
1049
|
+
"chevron-left": l`<path d="M28 14 L18 24 L28 34"/>`,
|
|
1050
|
+
"chevron-right": l`<path d="M20 14 L30 24 L20 34"/>`,
|
|
1051
|
+
"external-link": l`<path d="M36 26 V38 A4 4 0 0 1 32 42 H10 A4 4 0 0 1 6 38 V16 A4 4 0 0 1 10 12 H22"/><path d="M30 6 H42 V18"/><path d="M20 28 L42 6"/>`,
|
|
1052
|
+
copy: l`<rect x="8" y="14" width="24" height="24" rx="3"/><path d="M16 14 V10 A2 2 0 0 1 18 8 H38 A2 2 0 0 1 40 10 V30 A2 2 0 0 1 38 32 H34"/>`,
|
|
1053
|
+
check: l`<path d="M10 25 L20 35 L38 13"/>`,
|
|
1054
|
+
warning: l`<path d="M24 8 L44 40 H4 Z"/><path d="M24 20 V28"/><circle cx="24" cy="34" r="1.6" fill="currentColor" stroke="none"/>`,
|
|
1055
|
+
info: l`<circle cx="24" cy="24" r="17"/><path d="M24 22 V33"/><circle cx="24" cy="15.5" r="1.8" fill="currentColor" stroke="none"/>`,
|
|
1056
|
+
add: l`<path d="M24 10 V38 M10 24 H38"/>`,
|
|
1057
|
+
remove: l`<path d="M10 24 H38"/>`,
|
|
1058
|
+
edit: l`<path d="M30 8 L40 18 L18 40 L7 41 L8 30 Z"/><path d="M26 12 L36 22"/>`,
|
|
1059
|
+
delete: l`<path d="M10 14 H38"/><path d="M17 14 V9 A2 2 0 0 1 19 7 H29 A2 2 0 0 1 31 9 V14"/><path d="M13 14 L15 40 A2 2 0 0 0 17 42 H31 A2 2 0 0 0 33 40 L35 14"/><path d="M20 21 V35 M28 21 V35"/>`,
|
|
1060
|
+
filter: l`<path d="M6 10 H42 L28 26 V38 L20 42 V26 Z"/>`,
|
|
1061
|
+
sort: l`<path d="M14 30 V10 M14 10 L8 16 M14 10 L20 16"/><path d="M34 18 V38 M34 38 L28 32 M34 38 L40 32"/>`,
|
|
1062
|
+
calendar: l`<rect x="6" y="10" width="36" height="32" rx="3"/><path d="M6 20 H42"/><path d="M15 6 V14 M33 6 V14"/><circle cx="15" cy="28" r="1.6" fill="currentColor" stroke="none"/><circle cx="24" cy="28" r="1.6" fill="currentColor" stroke="none"/><circle cx="33" cy="28" r="1.6" fill="currentColor" stroke="none"/>`,
|
|
1063
|
+
clock: l`<circle cx="24" cy="24" r="17"/><path d="M24 14 V24 L32 29"/>`,
|
|
1064
|
+
person: l`<circle cx="24" cy="16" r="8"/><path d="M8 42 C8 31 15 26 24 26 C33 26 40 31 40 42"/>`,
|
|
1065
|
+
people: l`<circle cx="17" cy="16" r="7"/><circle cx="33" cy="18" r="6"/><path d="M4 41 C4 31 10 27 17 27 C21 27 24 28.3 26.3 30.5"/><path d="M24 41 C24 32 29 28 37 28 C43 28 44 32 44 41"/>`,
|
|
1066
|
+
lock: l`<rect x="10" y="21" width="28" height="21" rx="3"/><path d="M16 21 V15 A8 8 0 0 1 32 15 V21"/><circle cx="24" cy="31" r="2.2" fill="currentColor" stroke="none"/>`,
|
|
1067
|
+
eye: l`<path d="M4 24 C10 12 20 8 24 8 C28 8 38 12 44 24 C38 36 28 40 24 40 C20 40 10 36 4 24 Z"/><circle cx="24" cy="24" r="6"/>`,
|
|
1068
|
+
"eye-slash": l`<path d="M4 24 C10 12 20 8 24 8 C28 8 38 12 44 24 C38 36 28 40 24 40 C20 40 10 36 4 24 Z"/><circle cx="24" cy="24" r="6"/><path d="M6 6 L42 42"/>`,
|
|
1069
|
+
refresh: l`<path d="M46 8 L46 20 L34 20"/><path d="M2 40 L2 28 L14 28"/><path d="M7.02 18 A18 18 0 0 1 36.72 11.28 L46 20"/><path d="M2 28 L11.28 36.72 A18 18 0 0 0 40.98 30"/>`,
|
|
1070
|
+
// Phase 2: OpenVox marketing site --------------------------------------
|
|
1071
|
+
community: l`<circle cx="24" cy="10" r="5"/><circle cx="10" cy="34" r="5"/><circle cx="38" cy="34" r="5"/><path d="M24 15 L14 30 M24 15 L34 30 M15 34 H33"/>`,
|
|
1072
|
+
book: l`<path d="M24 12 C20 8 12 7 6 9 V37 C12 35 20 36 24 40 C28 36 36 35 42 37 V9 C36 7 28 8 24 12 Z"/><path d="M24 12 V40"/>`,
|
|
1073
|
+
terminal: l`<rect x="6" y="9" width="36" height="30" rx="3"/><path d="M14 19 L21 24 L14 29"/><path d="M25 30 H33"/>`,
|
|
1074
|
+
shield: l`<path d="M24 6 L40 12 V22 C40 33 33 40 24 43 C15 40 8 33 8 22 V12 Z"/><path d="M17 23 L22 28 L32 17"/>`,
|
|
1075
|
+
roadmap: l`<path d="M6 38 C14 38 14 26 22 26 C30 26 30 14 38 14"/><circle cx="6" cy="38" r="3" fill="currentColor" stroke="none"/><circle cx="22" cy="26" r="3" fill="currentColor" stroke="none"/><circle cx="38" cy="14" r="3" fill="currentColor" stroke="none"/>`,
|
|
1076
|
+
help: l`<circle cx="24" cy="24" r="17"/><path d="M18 18 C18 13 30 13 30 19 C30 24 24 23 24 29"/><circle cx="24" cy="35" r="1.8" fill="currentColor" stroke="none"/>`,
|
|
1077
|
+
repository: l`<rect x="7" y="10" width="34" height="28" rx="3"/><path d="M18 20 L13 24 L18 28 M30 20 L35 24 L30 28"/>`,
|
|
1078
|
+
star: l`<path d="M24 6 L29 19 L43 19 L32 28 L36 42 L24 34 L12 42 L16 28 L5 19 L19 19 Z"/>`,
|
|
1079
|
+
chat: l`<path d="M8 10 H40 A2 2 0 0 1 42 12 V30 A2 2 0 0 1 40 32 H20 L12 40 V32 H8 A2 2 0 0 1 6 30 V12 A2 2 0 0 1 8 10 Z"/><path d="M14 18 H34 M14 24 H28"/>`,
|
|
1080
|
+
heart: l`<path d="M24 41 C10 32 4 23 4 15.5 C4 9 9 5 15 5 C19.5 5 22.5 7.5 24 11 C25.5 7.5 28.5 5 33 5 C39 5 44 9 44 15.5 C44 23 38 32 24 41 Z"/>`,
|
|
1081
|
+
// Phase 3: module registry (Forge replacement) -------------------------
|
|
1082
|
+
module: l`<rect x="8" y="16" width="32" height="24" rx="3"/><path d="M8 24 H40"/><path d="M20 16 L24 24 L28 16"/>`,
|
|
1083
|
+
tag: l`<path d="M6 10 H26 L42 26 L26 42 H6 Z"/><circle cx="15" cy="19" r="3" fill="currentColor" stroke="none"/>`,
|
|
1084
|
+
dependency: l`<rect x="6" y="19" width="20" height="10" rx="5"/><rect x="22" y="19" width="20" height="10" rx="5"/>`,
|
|
1085
|
+
verified: l`<path d="M24 5 L31 10 L39 9 L40 17 L46 24 L40 31 L39 39 L31 38 L24 43 L17 38 L9 39 L8 31 L2 24 L8 17 L9 9 L17 10 Z"/><path d="M16 24 L21 29 L32 18"/>`,
|
|
1086
|
+
archived: l`<rect x="6" y="6" width="36" height="10" rx="2"/><rect x="10" y="16" width="28" height="26" rx="2"/><path d="M20 26 H28"/>`,
|
|
1087
|
+
publish: l`<path d="M24 6 V28 M24 6 L16 14 M24 6 L32 14"/><path d="M8 32 V38 A2 2 0 0 0 10 40 H38 A2 2 0 0 0 40 38 V32"/>`,
|
|
1088
|
+
changelog: l`<path d="M10 6 H28 L36 14 V42 H10 Z"/><path d="M28 6 V14 H36"/><path d="M16 24 H24"/><circle cx="34" cy="34" r="7"/><path d="M34 30 V34 L37 36"/>`,
|
|
1089
|
+
vulnerability: l`<path d="M24 6 L40 12 V22 C40 33 33 40 24 43 C15 40 8 33 8 22 V12 Z"/><path d="M24 16 V26"/><circle cx="24" cy="32" r="1.8" fill="currentColor" stroke="none"/>`,
|
|
1090
|
+
gauge: l`<path d="M6 34 A18 18 0 0 1 42 34"/><path d="M24 34 L34 20"/><circle cx="24" cy="34" r="2.2" fill="currentColor" stroke="none"/>`,
|
|
1091
|
+
"file-tree": l`<path d="M6 12 H18 L22 17 H42 V38 H6 Z"/><path d="M26 24 H36 M26 30 H36"/>`,
|
|
1092
|
+
"check-circle": l`<circle cx="24" cy="24" r="17"/><path d="M15 24 L21 30 L33 17"/>`,
|
|
1093
|
+
"x-circle": l`<circle cx="24" cy="24" r="17"/><path d="M18 18 L30 30 M30 18 L18 30"/>`,
|
|
1094
|
+
fork: l`<circle cx="14" cy="10" r="4"/><circle cx="34" cy="10" r="4"/><circle cx="24" cy="38" r="4"/><path d="M14 14 V22 L24 32 M34 14 V22 L24 32 M24 32 V34"/>`,
|
|
1095
|
+
trending: l`<path d="M6 34 L18 22 L26 28 L42 10"/><path d="M32 10 H42 V20"/>`,
|
|
1096
|
+
collection: l`<rect x="10" y="6" width="28" height="10" rx="2"/><rect x="6" y="19" width="36" height="10" rx="2"/><rect x="10" y="32" width="28" height="10" rx="2"/>`,
|
|
1097
|
+
// Phase 4: fleet console (Puppet Enterprise replacement) ---------------
|
|
1098
|
+
dashboard: l`<rect x="6" y="6" width="18" height="14" rx="2"/><rect x="28" y="6" width="14" height="8" rx="2"/><rect x="28" y="18" width="14" height="14" rx="2"/><rect x="6" y="24" width="18" height="18" rx="2"/>`,
|
|
1099
|
+
node: l`<rect x="10" y="14" width="28" height="20" rx="3"/><path d="M16 22 H22 M16 27 H22"/><circle cx="32" cy="24" r="2" fill="currentColor" stroke="none"/>`,
|
|
1100
|
+
"node-group": l`<rect x="6" y="10" width="24" height="9" rx="2"/><rect x="12" y="21" width="24" height="9" rx="2"/><rect x="18" y="32" width="24" height="9" rx="2"/>`,
|
|
1101
|
+
pulse: l`<path d="M4 24 H14 L19 12 L27 36 L32 24 H44"/>`,
|
|
1102
|
+
compliance: l`<rect x="9" y="6" width="30" height="36" rx="3"/><path d="M16 16 L19 19 L26 12 M16 26 L19 29 L26 22 M16 36 H30"/>`,
|
|
1103
|
+
report: l`<path d="M10 6 H28 L36 14 V42 H10 Z"/><path d="M28 6 V14 H36"/><path d="M16 34 V28 M22 34 V24 M28 34 V30"/>`,
|
|
1104
|
+
"activity-log": l`<path d="M14 8 V40"/><circle cx="14" cy="12" r="3" fill="currentColor" stroke="none"/><circle cx="14" cy="24" r="3" fill="currentColor" stroke="none"/><circle cx="14" cy="36" r="3" fill="currentColor" stroke="none"/><path d="M22 12 H40 M22 24 H40 M22 36 H34"/>`,
|
|
1105
|
+
bell: l`<path d="M12 32 V22 A12 12 0 0 1 36 22 V32 L40 38 H8 Z"/><path d="M20 38 A4 4 0 0 0 28 38"/>`,
|
|
1106
|
+
orchestrate: l`<circle cx="24" cy="24" r="17"/><path d="M19 15 L33 24 L19 33 Z"/>`,
|
|
1107
|
+
plan: l`<rect x="6" y="8" width="24" height="32" rx="3"/><path d="M12 16 H24 M12 22 H24 M12 28 H20"/><path d="M32 24 H44 M38 18 L44 24 L38 30"/>`,
|
|
1108
|
+
badge: l`<rect x="6" y="10" width="36" height="28" rx="3"/><circle cx="17" cy="21" r="5"/><path d="M10 32 C10 26 13 24 17 24 C21 24 24 26 24 32"/><path d="M30 18 H38 M30 24 H38 M30 30 H36"/>`,
|
|
1109
|
+
audit: l`<path d="M10 6 H26 L34 14 V42 H10 Z"/><path d="M26 6 V14 H34"/><path d="M16 24 H24 M16 30 H22"/><circle cx="33" cy="33" r="6"/><path d="M37.5 37.5 L43 43"/>`,
|
|
1110
|
+
key: l`<circle cx="16" cy="24" r="9"/><path d="M23 24 H42 M34 24 V31 M40 24 V29"/>`,
|
|
1111
|
+
layers: l`<path d="M24 6 L44 16 L24 26 L4 16 Z"/><path d="M4 26 L24 36 L44 26"/><path d="M4 34 L24 44 L44 34"/>`,
|
|
1112
|
+
classifier: l`<path d="M6 10 H24 L40 26 L24 42 H6 Z"/><circle cx="14" cy="18" r="3" fill="currentColor" stroke="none"/><circle cx="32" cy="26" r="3" fill="currentColor" stroke="none"/>`,
|
|
1113
|
+
deploy: l`<path d="M24 8 V34"/><path d="M24 8 L15 20 M24 8 L33 20"/><path d="M10 40 H38"/>`,
|
|
1114
|
+
metrics: l`<path d="M6 40 H42"/><path d="M6 40 V6"/><path d="M10 30 L18 22 L26 27 L38 12"/>`,
|
|
1115
|
+
schedule: l`<rect x="6" y="10" width="28" height="30" rx="3"/><path d="M6 18 H34"/><path d="M14 6 V14 M26 6 V14"/><circle cx="34" cy="34" r="10"/><path d="M34 28 V34 L38 37"/>`,
|
|
1116
|
+
backup: l`<path d="M24 6 V26 M24 26 L16 18 M24 26 L32 18"/><rect x="8" y="30" width="32" height="12" rx="2"/><path d="M8 36 H40"/>`,
|
|
1117
|
+
webhook: l`<circle cx="12" cy="14" r="6"/><circle cx="36" cy="34" r="6"/><path d="M17 17 L31 31"/><path d="M22 22 L20 28 L26 26 L24 32"/>`,
|
|
1118
|
+
organization: l`<rect x="10" y="10" width="28" height="32" rx="2"/><path d="M17 18 H21 M27 18 H31 M17 26 H21 M27 26 H31 M17 34 H21 M27 34 H31"/>`,
|
|
1119
|
+
drift: l`<rect x="6" y="12" width="20" height="20" rx="3"/><rect x="22" y="16" width="20" height="20" rx="3"/><path d="M20 24 H28"/>`,
|
|
1120
|
+
// Added later: consolidated from docs pages that predated vox-icon ------
|
|
1121
|
+
blocks: l`<rect x="7" y="7" width="15" height="15" rx="2.5"/><rect x="26" y="7" width="15" height="15" rx="2.5"/><rect x="7" y="26" width="15" height="15" rx="2.5"/><rect x="26" y="26" width="15" height="15" rx="2.5"/>`,
|
|
1122
|
+
plug: l`<path d="M16 6 V18 M32 6 V18 M12 18 H36 V28 C36 34 30 38 24 38 C18 38 12 34 12 28 Z"/><path d="M24 38 V44"/>`,
|
|
1123
|
+
ballot: l`<rect x="8" y="18" width="32" height="24" rx="2.5"/><path d="M8 26 H40"/><path d="M24 10 V26"/><path d="M18 6 L24 12 L30 6"/>`,
|
|
1124
|
+
sun: l`<circle cx="24" cy="24" r="8"/><path d="M24 4v4M24 40v4M9.86 9.86l2.82 2.82M35.32 35.32l2.82 2.82M4 24h4M40 24h4M12.68 35.32l-2.82 2.82M38.14 9.86l-2.82 2.82"/>`,
|
|
1125
|
+
moon: l`<path d="M42 25.58A18 18 0 1 1 22.42 6 14 14 0 0 0 42 25.58Z"/>`,
|
|
1126
|
+
github: l`<g transform="translate(4,4) scale(2.5)" fill="currentColor" stroke="none"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></g>`,
|
|
1127
|
+
accessibility: l`<circle cx="24" cy="24" r="18"/><circle cx="24" cy="16" r="2.6" fill="currentColor" stroke="none"/><path d="M14 21 H34 M24 21 V32 M24 25 L18 34 M24 25 L30 34"/>`,
|
|
1128
|
+
settings: l`<circle cx="24" cy="24" r="7"/><path d="M24 6 V12 M24 36 V42 M6 24 H12 M36 24 H42 M11 11 L15.2 15.2 M32.8 32.8 L37 37 M37 11 L32.8 15.2 M15.2 32.8 L11 37"/>`
|
|
1129
|
+
};
|
|
1130
|
+
var Ko = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, at = (r, e, o, s) => {
|
|
1131
|
+
for (var t = s > 1 ? void 0 : s ? Go(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1132
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1133
|
+
return s && t && Ko(e, o, t), t;
|
|
1046
1134
|
};
|
|
1047
|
-
|
|
1135
|
+
let G = class extends p {
|
|
1136
|
+
constructor() {
|
|
1137
|
+
super(...arguments), this.name = "info", this.size = "md";
|
|
1138
|
+
}
|
|
1139
|
+
render() {
|
|
1140
|
+
const r = j[this.name];
|
|
1141
|
+
return r ? c`
|
|
1142
|
+
<svg
|
|
1143
|
+
viewBox="0 0 48 48"
|
|
1144
|
+
fill="none"
|
|
1145
|
+
stroke="currentColor"
|
|
1146
|
+
stroke-width="2"
|
|
1147
|
+
stroke-linecap="round"
|
|
1148
|
+
stroke-linejoin="round"
|
|
1149
|
+
role=${this.label ? "img" : x}
|
|
1150
|
+
aria-hidden=${this.label ? x : "true"}
|
|
1151
|
+
aria-label=${this.label ?? x}
|
|
1152
|
+
>
|
|
1153
|
+
${r}
|
|
1154
|
+
</svg>
|
|
1155
|
+
` : x;
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
G.styles = d`
|
|
1159
|
+
:host {
|
|
1160
|
+
display: inline-flex;
|
|
1161
|
+
flex: none;
|
|
1162
|
+
color: inherit;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
svg {
|
|
1166
|
+
display: block;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
:host([size='sm']) svg {
|
|
1170
|
+
width: 16px;
|
|
1171
|
+
height: 16px;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
:host([size='md']) svg {
|
|
1175
|
+
width: 20px;
|
|
1176
|
+
height: 20px;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
:host([size='lg']) svg {
|
|
1180
|
+
width: 24px;
|
|
1181
|
+
height: 24px;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
:host([size='xl']) svg {
|
|
1185
|
+
width: 48px;
|
|
1186
|
+
height: 48px;
|
|
1187
|
+
}
|
|
1188
|
+
`;
|
|
1189
|
+
at([
|
|
1190
|
+
n()
|
|
1191
|
+
], G.prototype, "name", 2);
|
|
1192
|
+
at([
|
|
1193
|
+
n({ reflect: !0 })
|
|
1194
|
+
], G.prototype, "size", 2);
|
|
1195
|
+
at([
|
|
1196
|
+
n()
|
|
1197
|
+
], G.prototype, "label", 2);
|
|
1198
|
+
G = at([
|
|
1199
|
+
h("vox-icon")
|
|
1200
|
+
], G);
|
|
1201
|
+
var Wo = Object.defineProperty, Ee = (r, e, o, s) => {
|
|
1202
|
+
for (var t = void 0, a = r.length - 1, i; a >= 0; a--)
|
|
1203
|
+
(i = r[a]) && (t = i(e, o, t) || t);
|
|
1204
|
+
return t && Wo(e, o, t), t;
|
|
1205
|
+
};
|
|
1206
|
+
const Ut = class Ut extends p {
|
|
1048
1207
|
constructor() {
|
|
1049
1208
|
super(), this.name = "", this.label = "", this.note = "", this.disabled = !1, this.required = !1, this.internals = this.attachInternals();
|
|
1050
1209
|
}
|
|
@@ -1068,34 +1227,34 @@ const Tt = class Tt extends p {
|
|
|
1068
1227
|
this.internals.setValidity(e.validity, e.validationMessage, e);
|
|
1069
1228
|
}
|
|
1070
1229
|
renderLabel(e) {
|
|
1071
|
-
return this.label ?
|
|
1230
|
+
return this.label ? c`
|
|
1072
1231
|
<label class="label" for=${e}>
|
|
1073
|
-
${this.label}${this.required ?
|
|
1232
|
+
${this.label}${this.required ? c`<span class="required-mark" aria-hidden="true"> *</span>` : x}
|
|
1074
1233
|
</label>
|
|
1075
|
-
` :
|
|
1234
|
+
` : x;
|
|
1076
1235
|
}
|
|
1077
1236
|
renderNote() {
|
|
1078
|
-
return this.note ?
|
|
1237
|
+
return this.note ? c`<p class="note">${this.note}</p>` : x;
|
|
1079
1238
|
}
|
|
1080
1239
|
};
|
|
1081
|
-
|
|
1082
|
-
let
|
|
1083
|
-
|
|
1240
|
+
Ut.formAssociated = !0;
|
|
1241
|
+
let y = Ut;
|
|
1242
|
+
Ee([
|
|
1084
1243
|
n()
|
|
1085
|
-
],
|
|
1086
|
-
|
|
1244
|
+
], y.prototype, "name");
|
|
1245
|
+
Ee([
|
|
1087
1246
|
n()
|
|
1088
|
-
],
|
|
1089
|
-
|
|
1247
|
+
], y.prototype, "label");
|
|
1248
|
+
Ee([
|
|
1090
1249
|
n()
|
|
1091
|
-
],
|
|
1092
|
-
|
|
1250
|
+
], y.prototype, "note");
|
|
1251
|
+
Ee([
|
|
1093
1252
|
n({ type: Boolean, reflect: !0 })
|
|
1094
|
-
],
|
|
1095
|
-
|
|
1253
|
+
], y.prototype, "disabled");
|
|
1254
|
+
Ee([
|
|
1096
1255
|
n({ type: Boolean, reflect: !0 })
|
|
1097
|
-
],
|
|
1098
|
-
const
|
|
1256
|
+
], y.prototype, "required");
|
|
1257
|
+
const Se = d`
|
|
1099
1258
|
:host {
|
|
1100
1259
|
display: block;
|
|
1101
1260
|
font-family: var(--vox-font-family-base);
|
|
@@ -1162,7 +1321,7 @@ const Ce = c`
|
|
|
1162
1321
|
:host([data-vox-group='end']) .control {
|
|
1163
1322
|
border-radius: 0 var(--vox-radius-md) var(--vox-radius-md) 0;
|
|
1164
1323
|
}
|
|
1165
|
-
`,
|
|
1324
|
+
`, ho = d`
|
|
1166
1325
|
:host {
|
|
1167
1326
|
display: block;
|
|
1168
1327
|
font-family: var(--vox-font-family-base);
|
|
@@ -1191,12 +1350,12 @@ const Ce = c`
|
|
|
1191
1350
|
margin: 0;
|
|
1192
1351
|
}
|
|
1193
1352
|
`;
|
|
1194
|
-
var
|
|
1195
|
-
for (var t =
|
|
1196
|
-
(i =
|
|
1197
|
-
return
|
|
1353
|
+
var Xo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, kt = (r, e, o, s) => {
|
|
1354
|
+
for (var t = s > 1 ? void 0 : s ? Yo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1355
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1356
|
+
return s && t && Xo(e, o, t), t;
|
|
1198
1357
|
};
|
|
1199
|
-
let
|
|
1358
|
+
let de = class extends y {
|
|
1200
1359
|
constructor() {
|
|
1201
1360
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
1202
1361
|
}
|
|
@@ -1210,11 +1369,11 @@ let ae = class extends b {
|
|
|
1210
1369
|
this.renderRoot.querySelector("input") ?? void 0
|
|
1211
1370
|
);
|
|
1212
1371
|
}
|
|
1213
|
-
handleChange(
|
|
1214
|
-
this.checked =
|
|
1372
|
+
handleChange(r) {
|
|
1373
|
+
this.checked = r.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1215
1374
|
}
|
|
1216
1375
|
render() {
|
|
1217
|
-
return
|
|
1376
|
+
return c`
|
|
1218
1377
|
<label class="check">
|
|
1219
1378
|
<input
|
|
1220
1379
|
type="checkbox"
|
|
@@ -1232,9 +1391,9 @@ let ae = class extends b {
|
|
|
1232
1391
|
`;
|
|
1233
1392
|
}
|
|
1234
1393
|
};
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1394
|
+
de.styles = [
|
|
1395
|
+
ho,
|
|
1396
|
+
d`
|
|
1238
1397
|
.box {
|
|
1239
1398
|
flex: none;
|
|
1240
1399
|
display: flex;
|
|
@@ -1273,21 +1432,21 @@ ae.styles = [
|
|
|
1273
1432
|
}
|
|
1274
1433
|
`
|
|
1275
1434
|
];
|
|
1276
|
-
|
|
1435
|
+
kt([
|
|
1277
1436
|
n({ type: Boolean, reflect: !0 })
|
|
1278
|
-
],
|
|
1279
|
-
|
|
1437
|
+
], de.prototype, "checked", 2);
|
|
1438
|
+
kt([
|
|
1280
1439
|
n()
|
|
1281
|
-
],
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
],
|
|
1285
|
-
var
|
|
1286
|
-
for (var t =
|
|
1287
|
-
(i =
|
|
1288
|
-
return
|
|
1440
|
+
], de.prototype, "value", 2);
|
|
1441
|
+
de = kt([
|
|
1442
|
+
h("vox-checkbox")
|
|
1443
|
+
], de);
|
|
1444
|
+
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, te = (r, e, o, s) => {
|
|
1445
|
+
for (var t = s > 1 ? void 0 : s ? Qo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1446
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1447
|
+
return s && t && Jo(e, o, t), t;
|
|
1289
1448
|
};
|
|
1290
|
-
let
|
|
1449
|
+
let P = class extends y {
|
|
1291
1450
|
constructor() {
|
|
1292
1451
|
super(...arguments), this.multiple = !1, this.buttonLabel = "Choose a file", this.fileNames = [];
|
|
1293
1452
|
}
|
|
@@ -1295,25 +1454,25 @@ let O = class extends b {
|
|
|
1295
1454
|
this.fileNames = [], this.inputEl && (this.inputEl.value = ""), this.internals.setFormValue(null);
|
|
1296
1455
|
}
|
|
1297
1456
|
handleChange() {
|
|
1298
|
-
const
|
|
1299
|
-
this.fileNames =
|
|
1457
|
+
const r = [...this.inputEl.files ?? []];
|
|
1458
|
+
this.fileNames = r.map((o) => o.name);
|
|
1300
1459
|
const e = new FormData();
|
|
1301
|
-
for (const o of
|
|
1302
|
-
this.internals.setFormValue(
|
|
1303
|
-
this.required &&
|
|
1460
|
+
for (const o of r) e.append(this.name, o);
|
|
1461
|
+
this.internals.setFormValue(r.length > 0 ? e : null), this.internals.setValidity(
|
|
1462
|
+
this.required && r.length === 0 ? { valueMissing: !0 } : {},
|
|
1304
1463
|
"Please select a file.",
|
|
1305
1464
|
this.inputEl
|
|
1306
1465
|
), this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1307
1466
|
}
|
|
1308
1467
|
render() {
|
|
1309
|
-
return
|
|
1468
|
+
return c`
|
|
1310
1469
|
<div class="field">
|
|
1311
1470
|
${this.renderLabel("file")}
|
|
1312
1471
|
<label>
|
|
1313
1472
|
<input
|
|
1314
1473
|
id="file"
|
|
1315
1474
|
type="file"
|
|
1316
|
-
accept=${
|
|
1475
|
+
accept=${Z(this.accept)}
|
|
1317
1476
|
?multiple=${this.multiple}
|
|
1318
1477
|
?disabled=${this.disabled}
|
|
1319
1478
|
@change=${this.handleChange}
|
|
@@ -1330,9 +1489,9 @@ let O = class extends b {
|
|
|
1330
1489
|
`;
|
|
1331
1490
|
}
|
|
1332
1491
|
};
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1492
|
+
P.styles = [
|
|
1493
|
+
Se,
|
|
1494
|
+
d`
|
|
1336
1495
|
input {
|
|
1337
1496
|
position: absolute;
|
|
1338
1497
|
width: 1px;
|
|
@@ -1380,60 +1539,60 @@ O.styles = [
|
|
|
1380
1539
|
}
|
|
1381
1540
|
`
|
|
1382
1541
|
];
|
|
1383
|
-
|
|
1542
|
+
te([
|
|
1384
1543
|
n()
|
|
1385
|
-
],
|
|
1386
|
-
|
|
1544
|
+
], P.prototype, "accept", 2);
|
|
1545
|
+
te([
|
|
1387
1546
|
n({ type: Boolean })
|
|
1388
|
-
],
|
|
1389
|
-
|
|
1547
|
+
], P.prototype, "multiple", 2);
|
|
1548
|
+
te([
|
|
1390
1549
|
n({ attribute: "button-label" })
|
|
1391
|
-
],
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
],
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
],
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
],
|
|
1550
|
+
], P.prototype, "buttonLabel", 2);
|
|
1551
|
+
te([
|
|
1552
|
+
rt()
|
|
1553
|
+
], P.prototype, "fileNames", 2);
|
|
1554
|
+
te([
|
|
1555
|
+
Pt("input")
|
|
1556
|
+
], P.prototype, "inputEl", 2);
|
|
1557
|
+
P = te([
|
|
1558
|
+
h("vox-file-input")
|
|
1559
|
+
], P);
|
|
1401
1560
|
/**
|
|
1402
1561
|
* @license
|
|
1403
1562
|
* Copyright 2020 Google LLC
|
|
1404
1563
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1405
1564
|
*/
|
|
1406
|
-
const
|
|
1565
|
+
const er = (r) => r.strings === void 0, tr = {}, or = (r, e = tr) => r._$AH = e;
|
|
1407
1566
|
/**
|
|
1408
1567
|
* @license
|
|
1409
1568
|
* Copyright 2020 Google LLC
|
|
1410
1569
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1411
1570
|
*/
|
|
1412
|
-
const
|
|
1413
|
-
constructor(
|
|
1414
|
-
if (super(
|
|
1415
|
-
if (!
|
|
1416
|
-
}
|
|
1417
|
-
render(
|
|
1418
|
-
return
|
|
1419
|
-
}
|
|
1420
|
-
update(
|
|
1421
|
-
if (e === m || e ===
|
|
1422
|
-
const o =
|
|
1423
|
-
if (
|
|
1424
|
-
if (e === o[
|
|
1425
|
-
} else if (
|
|
1426
|
-
if (!!e === o.hasAttribute(
|
|
1427
|
-
} else if (
|
|
1428
|
-
return
|
|
1571
|
+
const po = lo(class extends co {
|
|
1572
|
+
constructor(r) {
|
|
1573
|
+
if (super(r), r.type !== L.PROPERTY && r.type !== L.ATTRIBUTE && r.type !== L.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
1574
|
+
if (!er(r)) throw Error("`live` bindings can only contain a single expression");
|
|
1575
|
+
}
|
|
1576
|
+
render(r) {
|
|
1577
|
+
return r;
|
|
1578
|
+
}
|
|
1579
|
+
update(r, [e]) {
|
|
1580
|
+
if (e === m || e === x) return e;
|
|
1581
|
+
const o = r.element, s = r.name;
|
|
1582
|
+
if (r.type === L.PROPERTY) {
|
|
1583
|
+
if (e === o[s]) return m;
|
|
1584
|
+
} else if (r.type === L.BOOLEAN_ATTRIBUTE) {
|
|
1585
|
+
if (!!e === o.hasAttribute(s)) return m;
|
|
1586
|
+
} else if (r.type === L.ATTRIBUTE && o.getAttribute(s) === e + "") return m;
|
|
1587
|
+
return or(r), e;
|
|
1429
1588
|
}
|
|
1430
1589
|
});
|
|
1431
|
-
var
|
|
1432
|
-
for (var t =
|
|
1433
|
-
(i =
|
|
1434
|
-
return
|
|
1590
|
+
var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, oe = (r, e, o, s) => {
|
|
1591
|
+
for (var t = s > 1 ? void 0 : s ? sr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1592
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1593
|
+
return s && t && rr(e, o, t), t;
|
|
1435
1594
|
};
|
|
1436
|
-
let A = class extends
|
|
1595
|
+
let A = class extends y {
|
|
1437
1596
|
constructor() {
|
|
1438
1597
|
super(...arguments), this.type = "text", this.value = "", this.readonly = !1;
|
|
1439
1598
|
}
|
|
@@ -1442,34 +1601,34 @@ let A = class extends b {
|
|
|
1442
1601
|
}
|
|
1443
1602
|
updated() {
|
|
1444
1603
|
this.internals.setFormValue(this.value);
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1604
|
+
const r = this.renderRoot.querySelector("input");
|
|
1605
|
+
r && this.syncValidity(r);
|
|
1447
1606
|
}
|
|
1448
|
-
focus(
|
|
1607
|
+
focus(r) {
|
|
1449
1608
|
var e;
|
|
1450
|
-
(e = this.renderRoot.querySelector("input")) == null || e.focus(
|
|
1609
|
+
(e = this.renderRoot.querySelector("input")) == null || e.focus(r);
|
|
1451
1610
|
}
|
|
1452
|
-
handleInput(
|
|
1453
|
-
this.value =
|
|
1611
|
+
handleInput(r) {
|
|
1612
|
+
this.value = r.target.value;
|
|
1454
1613
|
}
|
|
1455
1614
|
handleChange() {
|
|
1456
1615
|
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1457
1616
|
}
|
|
1458
1617
|
render() {
|
|
1459
|
-
return
|
|
1618
|
+
return c`
|
|
1460
1619
|
<div class="field">
|
|
1461
1620
|
${this.renderLabel("input")}
|
|
1462
1621
|
<input
|
|
1463
1622
|
id="input"
|
|
1464
1623
|
class="control"
|
|
1465
1624
|
type=${this.type}
|
|
1466
|
-
.value=${
|
|
1467
|
-
placeholder=${
|
|
1468
|
-
autocomplete=${
|
|
1625
|
+
.value=${po(this.value)}
|
|
1626
|
+
placeholder=${Z(this.placeholder)}
|
|
1627
|
+
autocomplete=${Z(this.autocomplete)}
|
|
1469
1628
|
?required=${this.required}
|
|
1470
1629
|
?readonly=${this.readonly}
|
|
1471
1630
|
?disabled=${this.disabled}
|
|
1472
|
-
aria-label=${this.label ?
|
|
1631
|
+
aria-label=${this.label ? x : "text input"}
|
|
1473
1632
|
@input=${this.handleInput}
|
|
1474
1633
|
@change=${this.handleChange}
|
|
1475
1634
|
/>
|
|
@@ -1478,47 +1637,47 @@ let A = class extends b {
|
|
|
1478
1637
|
`;
|
|
1479
1638
|
}
|
|
1480
1639
|
};
|
|
1481
|
-
A.styles =
|
|
1482
|
-
|
|
1640
|
+
A.styles = Se;
|
|
1641
|
+
oe([
|
|
1483
1642
|
n()
|
|
1484
1643
|
], A.prototype, "type", 2);
|
|
1485
|
-
|
|
1644
|
+
oe([
|
|
1486
1645
|
n()
|
|
1487
1646
|
], A.prototype, "value", 2);
|
|
1488
|
-
|
|
1647
|
+
oe([
|
|
1489
1648
|
n()
|
|
1490
1649
|
], A.prototype, "placeholder", 2);
|
|
1491
|
-
|
|
1650
|
+
oe([
|
|
1492
1651
|
n()
|
|
1493
1652
|
], A.prototype, "autocomplete", 2);
|
|
1494
|
-
|
|
1653
|
+
oe([
|
|
1495
1654
|
n({ type: Boolean, reflect: !0 })
|
|
1496
1655
|
], A.prototype, "readonly", 2);
|
|
1497
|
-
A =
|
|
1498
|
-
|
|
1656
|
+
A = oe([
|
|
1657
|
+
h("vox-input")
|
|
1499
1658
|
], A);
|
|
1500
|
-
var
|
|
1501
|
-
for (var t =
|
|
1502
|
-
(i =
|
|
1659
|
+
var ar = Object.getOwnPropertyDescriptor, ir = (r, e, o, s) => {
|
|
1660
|
+
for (var t = s > 1 ? void 0 : s ? ar(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1661
|
+
(i = r[a]) && (t = i(t) || t);
|
|
1503
1662
|
return t;
|
|
1504
1663
|
};
|
|
1505
|
-
let
|
|
1506
|
-
handleSlotChange(
|
|
1507
|
-
const e =
|
|
1508
|
-
e.forEach((o,
|
|
1509
|
-
const t =
|
|
1664
|
+
let ft = class extends p {
|
|
1665
|
+
handleSlotChange(r) {
|
|
1666
|
+
const e = r.target.assignedElements();
|
|
1667
|
+
e.forEach((o, s) => {
|
|
1668
|
+
const t = s === 0 ? "start" : s === e.length - 1 ? "end" : "middle";
|
|
1510
1669
|
o.setAttribute("data-vox-group", t);
|
|
1511
1670
|
});
|
|
1512
1671
|
}
|
|
1513
1672
|
render() {
|
|
1514
|
-
return
|
|
1673
|
+
return c`
|
|
1515
1674
|
<div class="group" role="group">
|
|
1516
1675
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
1517
1676
|
</div>
|
|
1518
1677
|
`;
|
|
1519
1678
|
}
|
|
1520
1679
|
};
|
|
1521
|
-
|
|
1680
|
+
ft.styles = d`
|
|
1522
1681
|
:host {
|
|
1523
1682
|
display: block;
|
|
1524
1683
|
font-family: var(--vox-font-family-base);
|
|
@@ -1560,15 +1719,15 @@ nt.styles = c`
|
|
|
1560
1719
|
border-left: none;
|
|
1561
1720
|
}
|
|
1562
1721
|
`;
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
],
|
|
1566
|
-
var
|
|
1567
|
-
for (var t =
|
|
1568
|
-
(i =
|
|
1569
|
-
return
|
|
1722
|
+
ft = ir([
|
|
1723
|
+
h("vox-input-group")
|
|
1724
|
+
], ft);
|
|
1725
|
+
var nr = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, it = (r, e, o, s) => {
|
|
1726
|
+
for (var t = s > 1 ? void 0 : s ? lr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1727
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1728
|
+
return s && t && nr(e, o, t), t;
|
|
1570
1729
|
};
|
|
1571
|
-
let
|
|
1730
|
+
let W = class extends p {
|
|
1572
1731
|
constructor() {
|
|
1573
1732
|
super(...arguments), this.value = "", this.checked = !1, this.disabled = !1;
|
|
1574
1733
|
}
|
|
@@ -1577,11 +1736,11 @@ let K = class extends p {
|
|
|
1577
1736
|
new CustomEvent("vox-radio-select", { bubbles: !0, composed: !0 })
|
|
1578
1737
|
);
|
|
1579
1738
|
}
|
|
1580
|
-
handleKeydown(
|
|
1581
|
-
(
|
|
1739
|
+
handleKeydown(r) {
|
|
1740
|
+
(r.key === " " || r.key === "Enter") && (r.preventDefault(), this.select());
|
|
1582
1741
|
}
|
|
1583
1742
|
render() {
|
|
1584
|
-
return
|
|
1743
|
+
return c`
|
|
1585
1744
|
<span
|
|
1586
1745
|
class="radio"
|
|
1587
1746
|
role="radio"
|
|
@@ -1597,7 +1756,7 @@ let K = class extends p {
|
|
|
1597
1756
|
`;
|
|
1598
1757
|
}
|
|
1599
1758
|
};
|
|
1600
|
-
|
|
1759
|
+
W.styles = d`
|
|
1601
1760
|
:host {
|
|
1602
1761
|
display: block;
|
|
1603
1762
|
font-family: var(--vox-font-family-base);
|
|
@@ -1646,24 +1805,24 @@ K.styles = c`
|
|
|
1646
1805
|
outline-offset: 2px;
|
|
1647
1806
|
}
|
|
1648
1807
|
`;
|
|
1649
|
-
|
|
1808
|
+
it([
|
|
1650
1809
|
n()
|
|
1651
|
-
],
|
|
1652
|
-
|
|
1810
|
+
], W.prototype, "value", 2);
|
|
1811
|
+
it([
|
|
1653
1812
|
n({ type: Boolean, reflect: !0 })
|
|
1654
|
-
],
|
|
1655
|
-
|
|
1813
|
+
], W.prototype, "checked", 2);
|
|
1814
|
+
it([
|
|
1656
1815
|
n({ type: Boolean, reflect: !0 })
|
|
1657
|
-
],
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
],
|
|
1661
|
-
var
|
|
1662
|
-
for (var t =
|
|
1663
|
-
(i =
|
|
1664
|
-
return
|
|
1816
|
+
], W.prototype, "disabled", 2);
|
|
1817
|
+
W = it([
|
|
1818
|
+
h("vox-radio")
|
|
1819
|
+
], W);
|
|
1820
|
+
var cr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, vo = (r, e, o, s) => {
|
|
1821
|
+
for (var t = s > 1 ? void 0 : s ? dr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1822
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1823
|
+
return s && t && cr(e, o, t), t;
|
|
1665
1824
|
};
|
|
1666
|
-
let
|
|
1825
|
+
let Ze = class extends y {
|
|
1667
1826
|
constructor() {
|
|
1668
1827
|
super(...arguments), this.value = "";
|
|
1669
1828
|
}
|
|
@@ -1681,38 +1840,38 @@ let Ue = class extends b {
|
|
|
1681
1840
|
), this.syncRadios();
|
|
1682
1841
|
}
|
|
1683
1842
|
syncRadios() {
|
|
1684
|
-
const
|
|
1685
|
-
|
|
1843
|
+
const r = this.radios, e = r.some((o) => o.value === this.value && this.value !== "");
|
|
1844
|
+
r.forEach((o, s) => {
|
|
1686
1845
|
var a, i;
|
|
1687
1846
|
o.checked = this.value !== "" && o.value === this.value;
|
|
1688
|
-
const t = e ? o.checked :
|
|
1847
|
+
const t = e ? o.checked : s === 0;
|
|
1689
1848
|
(i = (a = o.shadowRoot) == null ? void 0 : a.querySelector(".radio")) == null || i.setAttribute("tabindex", t ? "0" : "-1");
|
|
1690
1849
|
});
|
|
1691
1850
|
}
|
|
1692
|
-
handleSelect(
|
|
1693
|
-
const e =
|
|
1694
|
-
!(e instanceof HTMLElement) || e.tagName !== "VOX-RADIO" || (
|
|
1851
|
+
handleSelect(r) {
|
|
1852
|
+
const e = r.target;
|
|
1853
|
+
!(e instanceof HTMLElement) || e.tagName !== "VOX-RADIO" || (r.stopPropagation(), this.value !== e.value && (this.value = e.value, this.dispatchEvent(new Event("change", { bubbles: !0 }))));
|
|
1695
1854
|
}
|
|
1696
|
-
handleKeydown(
|
|
1697
|
-
var
|
|
1855
|
+
handleKeydown(r) {
|
|
1856
|
+
var u, v;
|
|
1698
1857
|
const o = {
|
|
1699
1858
|
ArrowDown: 1,
|
|
1700
1859
|
ArrowRight: 1,
|
|
1701
1860
|
ArrowUp: -1,
|
|
1702
1861
|
ArrowLeft: -1
|
|
1703
|
-
}[
|
|
1862
|
+
}[r.key];
|
|
1704
1863
|
if (!o) return;
|
|
1705
|
-
|
|
1706
|
-
const
|
|
1707
|
-
if (
|
|
1708
|
-
const t =
|
|
1709
|
-
i.select(), (
|
|
1864
|
+
r.preventDefault();
|
|
1865
|
+
const s = this.radios.filter((f) => !f.disabled);
|
|
1866
|
+
if (s.length === 0) return;
|
|
1867
|
+
const t = s.findIndex((f) => f.checked), a = (Math.max(t, 0) + o + s.length) % s.length, i = s[a];
|
|
1868
|
+
i.select(), (v = (u = i.shadowRoot) == null ? void 0 : u.querySelector(".radio")) == null || v.focus();
|
|
1710
1869
|
}
|
|
1711
1870
|
render() {
|
|
1712
|
-
return
|
|
1871
|
+
return c`
|
|
1713
1872
|
<div class="field" role="radiogroup" aria-label=${this.label}>
|
|
1714
|
-
${this.label ?
|
|
1715
|
-
${this.label}${this.required ?
|
|
1873
|
+
${this.label ? c`<span class="label">
|
|
1874
|
+
${this.label}${this.required ? c`<span class="required-mark" aria-hidden="true"> *</span>` : ""}
|
|
1716
1875
|
</span>` : ""}
|
|
1717
1876
|
<div
|
|
1718
1877
|
class="options"
|
|
@@ -1726,9 +1885,9 @@ let Ue = class extends b {
|
|
|
1726
1885
|
`;
|
|
1727
1886
|
}
|
|
1728
1887
|
};
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1888
|
+
Ze.styles = [
|
|
1889
|
+
Se,
|
|
1890
|
+
d`
|
|
1732
1891
|
.options {
|
|
1733
1892
|
display: flex;
|
|
1734
1893
|
flex-direction: column;
|
|
@@ -1737,18 +1896,18 @@ Ue.styles = [
|
|
|
1737
1896
|
}
|
|
1738
1897
|
`
|
|
1739
1898
|
];
|
|
1740
|
-
|
|
1899
|
+
vo([
|
|
1741
1900
|
n()
|
|
1742
|
-
],
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
],
|
|
1746
|
-
var
|
|
1747
|
-
for (var t =
|
|
1748
|
-
(i =
|
|
1749
|
-
return
|
|
1901
|
+
], Ze.prototype, "value", 2);
|
|
1902
|
+
Ze = vo([
|
|
1903
|
+
h("vox-radio-group")
|
|
1904
|
+
], Ze);
|
|
1905
|
+
var hr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, Lt = (r, e, o, s) => {
|
|
1906
|
+
for (var t = s > 1 ? void 0 : s ? pr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1907
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1908
|
+
return s && t && hr(e, o, t), t;
|
|
1750
1909
|
};
|
|
1751
|
-
let
|
|
1910
|
+
let he = class extends y {
|
|
1752
1911
|
constructor() {
|
|
1753
1912
|
super(...arguments), this.value = "";
|
|
1754
1913
|
}
|
|
@@ -1760,16 +1919,16 @@ let ie = class extends b {
|
|
|
1760
1919
|
}
|
|
1761
1920
|
syncOptions() {
|
|
1762
1921
|
if (!this.selectEl) return;
|
|
1763
|
-
const
|
|
1764
|
-
|
|
1765
|
-
...
|
|
1922
|
+
const r = this.renderRoot.querySelector("slot");
|
|
1923
|
+
r && (this.selectEl.replaceChildren(
|
|
1924
|
+
...r.assignedElements().filter((e) => e instanceof HTMLOptionElement || e instanceof HTMLOptGroupElement).map((e) => e.cloneNode(!0))
|
|
1766
1925
|
), this.value && (this.selectEl.value = this.value), this.value = this.selectEl.value);
|
|
1767
1926
|
}
|
|
1768
1927
|
handleChange() {
|
|
1769
1928
|
this.value = this.selectEl.value, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1770
1929
|
}
|
|
1771
1930
|
render() {
|
|
1772
|
-
return
|
|
1931
|
+
return c`
|
|
1773
1932
|
<div class="field">
|
|
1774
1933
|
${this.renderLabel("select")}
|
|
1775
1934
|
<select
|
|
@@ -1785,9 +1944,9 @@ let ie = class extends b {
|
|
|
1785
1944
|
`;
|
|
1786
1945
|
}
|
|
1787
1946
|
};
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1947
|
+
he.styles = [
|
|
1948
|
+
Se,
|
|
1949
|
+
d`
|
|
1791
1950
|
select.control {
|
|
1792
1951
|
appearance: none;
|
|
1793
1952
|
padding-right: var(--vox-space-8);
|
|
@@ -1798,21 +1957,21 @@ ie.styles = [
|
|
|
1798
1957
|
}
|
|
1799
1958
|
`
|
|
1800
1959
|
];
|
|
1801
|
-
|
|
1960
|
+
Lt([
|
|
1802
1961
|
n()
|
|
1803
|
-
],
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
],
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
],
|
|
1810
|
-
var
|
|
1811
|
-
for (var t =
|
|
1812
|
-
(i =
|
|
1813
|
-
return
|
|
1962
|
+
], he.prototype, "value", 2);
|
|
1963
|
+
Lt([
|
|
1964
|
+
Pt("select")
|
|
1965
|
+
], he.prototype, "selectEl", 2);
|
|
1966
|
+
he = Lt([
|
|
1967
|
+
h("vox-select")
|
|
1968
|
+
], he);
|
|
1969
|
+
var vr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, Et = (r, e, o, s) => {
|
|
1970
|
+
for (var t = s > 1 ? void 0 : s ? ur(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
1971
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
1972
|
+
return s && t && vr(e, o, t), t;
|
|
1814
1973
|
};
|
|
1815
|
-
let
|
|
1974
|
+
let pe = class extends y {
|
|
1816
1975
|
constructor() {
|
|
1817
1976
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
1818
1977
|
}
|
|
@@ -1822,11 +1981,11 @@ let ne = class extends b {
|
|
|
1822
1981
|
updated() {
|
|
1823
1982
|
this.internals.setFormValue(this.checked ? this.value : null);
|
|
1824
1983
|
}
|
|
1825
|
-
handleChange(
|
|
1826
|
-
this.checked =
|
|
1984
|
+
handleChange(r) {
|
|
1985
|
+
this.checked = r.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1827
1986
|
}
|
|
1828
1987
|
render() {
|
|
1829
|
-
return
|
|
1988
|
+
return c`
|
|
1830
1989
|
<label class="check">
|
|
1831
1990
|
<input
|
|
1832
1991
|
type="checkbox"
|
|
@@ -1841,9 +2000,9 @@ let ne = class extends b {
|
|
|
1841
2000
|
`;
|
|
1842
2001
|
}
|
|
1843
2002
|
};
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
2003
|
+
pe.styles = [
|
|
2004
|
+
ho,
|
|
2005
|
+
d`
|
|
1847
2006
|
.track {
|
|
1848
2007
|
flex: none;
|
|
1849
2008
|
position: relative;
|
|
@@ -1881,21 +2040,21 @@ ne.styles = [
|
|
|
1881
2040
|
}
|
|
1882
2041
|
`
|
|
1883
2042
|
];
|
|
1884
|
-
|
|
2043
|
+
Et([
|
|
1885
2044
|
n({ type: Boolean, reflect: !0 })
|
|
1886
|
-
],
|
|
1887
|
-
|
|
2045
|
+
], pe.prototype, "checked", 2);
|
|
2046
|
+
Et([
|
|
1888
2047
|
n()
|
|
1889
|
-
],
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
],
|
|
1893
|
-
var
|
|
1894
|
-
for (var t =
|
|
1895
|
-
(i =
|
|
1896
|
-
return
|
|
2048
|
+
], pe.prototype, "value", 2);
|
|
2049
|
+
pe = Et([
|
|
2050
|
+
h("vox-switch")
|
|
2051
|
+
], pe);
|
|
2052
|
+
var xr = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, Ve = (r, e, o, s) => {
|
|
2053
|
+
for (var t = s > 1 ? void 0 : s ? fr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2054
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2055
|
+
return s && t && xr(e, o, t), t;
|
|
1897
2056
|
};
|
|
1898
|
-
let
|
|
2057
|
+
let D = class extends y {
|
|
1899
2058
|
constructor() {
|
|
1900
2059
|
super(...arguments), this.value = "", this.rows = 4, this.readonly = !1;
|
|
1901
2060
|
}
|
|
@@ -1904,29 +2063,29 @@ let z = class extends b {
|
|
|
1904
2063
|
}
|
|
1905
2064
|
updated() {
|
|
1906
2065
|
this.internals.setFormValue(this.value);
|
|
1907
|
-
const
|
|
1908
|
-
|
|
2066
|
+
const r = this.renderRoot.querySelector("textarea");
|
|
2067
|
+
r && this.syncValidity(r);
|
|
1909
2068
|
}
|
|
1910
|
-
focus(
|
|
2069
|
+
focus(r) {
|
|
1911
2070
|
var e;
|
|
1912
|
-
(e = this.renderRoot.querySelector("textarea")) == null || e.focus(
|
|
2071
|
+
(e = this.renderRoot.querySelector("textarea")) == null || e.focus(r);
|
|
1913
2072
|
}
|
|
1914
|
-
handleInput(
|
|
1915
|
-
this.value =
|
|
2073
|
+
handleInput(r) {
|
|
2074
|
+
this.value = r.target.value;
|
|
1916
2075
|
}
|
|
1917
2076
|
handleChange() {
|
|
1918
2077
|
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1919
2078
|
}
|
|
1920
2079
|
render() {
|
|
1921
|
-
return
|
|
2080
|
+
return c`
|
|
1922
2081
|
<div class="field">
|
|
1923
2082
|
${this.renderLabel("textarea")}
|
|
1924
2083
|
<textarea
|
|
1925
2084
|
id="textarea"
|
|
1926
2085
|
class="control"
|
|
1927
2086
|
rows=${this.rows}
|
|
1928
|
-
.value=${
|
|
1929
|
-
placeholder=${
|
|
2087
|
+
.value=${po(this.value)}
|
|
2088
|
+
placeholder=${Z(this.placeholder)}
|
|
1930
2089
|
?required=${this.required}
|
|
1931
2090
|
?readonly=${this.readonly}
|
|
1932
2091
|
?disabled=${this.disabled}
|
|
@@ -1938,48 +2097,48 @@ let z = class extends b {
|
|
|
1938
2097
|
`;
|
|
1939
2098
|
}
|
|
1940
2099
|
};
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
2100
|
+
D.styles = [
|
|
2101
|
+
Se,
|
|
2102
|
+
d`
|
|
1944
2103
|
textarea.control {
|
|
1945
2104
|
resize: vertical;
|
|
1946
2105
|
min-height: 4em;
|
|
1947
2106
|
}
|
|
1948
2107
|
`
|
|
1949
2108
|
];
|
|
1950
|
-
|
|
2109
|
+
Ve([
|
|
1951
2110
|
n()
|
|
1952
|
-
],
|
|
1953
|
-
|
|
2111
|
+
], D.prototype, "value", 2);
|
|
2112
|
+
Ve([
|
|
1954
2113
|
n()
|
|
1955
|
-
],
|
|
1956
|
-
|
|
2114
|
+
], D.prototype, "placeholder", 2);
|
|
2115
|
+
Ve([
|
|
1957
2116
|
n({ type: Number })
|
|
1958
|
-
],
|
|
1959
|
-
|
|
2117
|
+
], D.prototype, "rows", 2);
|
|
2118
|
+
Ve([
|
|
1960
2119
|
n({ type: Boolean, reflect: !0 })
|
|
1961
|
-
],
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
],
|
|
1965
|
-
var
|
|
1966
|
-
for (var t =
|
|
1967
|
-
(i =
|
|
1968
|
-
return
|
|
2120
|
+
], D.prototype, "readonly", 2);
|
|
2121
|
+
D = Ve([
|
|
2122
|
+
h("vox-textarea")
|
|
2123
|
+
], D);
|
|
2124
|
+
var gr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, je = (r, e, o, s) => {
|
|
2125
|
+
for (var t = s > 1 ? void 0 : s ? br(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2126
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2127
|
+
return s && t && gr(e, o, t), t;
|
|
1969
2128
|
};
|
|
1970
|
-
let
|
|
2129
|
+
let H = class extends p {
|
|
1971
2130
|
constructor() {
|
|
1972
2131
|
super(...arguments), this.alt = "", this.initials = "", this.size = "md";
|
|
1973
2132
|
}
|
|
1974
2133
|
render() {
|
|
1975
|
-
return
|
|
2134
|
+
return c`
|
|
1976
2135
|
<span class="avatar" role=${this.src ? "presentation" : "img"} aria-label=${this.alt}>
|
|
1977
|
-
${this.src ?
|
|
2136
|
+
${this.src ? c`<img src=${this.src} alt=${this.alt} />` : this.initials}
|
|
1978
2137
|
</span>
|
|
1979
2138
|
`;
|
|
1980
2139
|
}
|
|
1981
2140
|
};
|
|
1982
|
-
|
|
2141
|
+
H.styles = d`
|
|
1983
2142
|
:host {
|
|
1984
2143
|
display: inline-block;
|
|
1985
2144
|
}
|
|
@@ -2027,36 +2186,36 @@ T.styles = c`
|
|
|
2027
2186
|
font-size: 28px;
|
|
2028
2187
|
}
|
|
2029
2188
|
`;
|
|
2030
|
-
|
|
2189
|
+
je([
|
|
2031
2190
|
n()
|
|
2032
|
-
],
|
|
2033
|
-
|
|
2191
|
+
], H.prototype, "src", 2);
|
|
2192
|
+
je([
|
|
2034
2193
|
n()
|
|
2035
|
-
],
|
|
2036
|
-
|
|
2194
|
+
], H.prototype, "alt", 2);
|
|
2195
|
+
je([
|
|
2037
2196
|
n()
|
|
2038
|
-
],
|
|
2039
|
-
|
|
2197
|
+
], H.prototype, "initials", 2);
|
|
2198
|
+
je([
|
|
2040
2199
|
n({ reflect: !0 })
|
|
2041
|
-
],
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
],
|
|
2045
|
-
var
|
|
2046
|
-
for (var t =
|
|
2047
|
-
(i =
|
|
2048
|
-
return
|
|
2200
|
+
], H.prototype, "size", 2);
|
|
2201
|
+
H = je([
|
|
2202
|
+
h("vox-avatar")
|
|
2203
|
+
], H);
|
|
2204
|
+
var yr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, St = (r, e, o, s) => {
|
|
2205
|
+
for (var t = s > 1 ? void 0 : s ? mr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2206
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2207
|
+
return s && t && yr(e, o, t), t;
|
|
2049
2208
|
};
|
|
2050
|
-
let
|
|
2209
|
+
let ve = class extends p {
|
|
2051
2210
|
constructor() {
|
|
2052
2211
|
super(...arguments), this.heading = "", this.reverse = !1, this.hasActions = !1;
|
|
2053
2212
|
}
|
|
2054
|
-
handleActionsSlotChange(
|
|
2055
|
-
const e =
|
|
2213
|
+
handleActionsSlotChange(r) {
|
|
2214
|
+
const e = r.target;
|
|
2056
2215
|
this.hasActions = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2057
2216
|
}
|
|
2058
2217
|
render() {
|
|
2059
|
-
return
|
|
2218
|
+
return c`
|
|
2060
2219
|
<div class="billboard">
|
|
2061
2220
|
<div class="media"><slot name="media"></slot></div>
|
|
2062
2221
|
<div class="content">
|
|
@@ -2070,7 +2229,7 @@ let le = class extends p {
|
|
|
2070
2229
|
`;
|
|
2071
2230
|
}
|
|
2072
2231
|
};
|
|
2073
|
-
|
|
2232
|
+
ve.styles = d`
|
|
2074
2233
|
:host {
|
|
2075
2234
|
display: block;
|
|
2076
2235
|
font-family: var(--vox-font-family-base);
|
|
@@ -2132,30 +2291,30 @@ le.styles = c`
|
|
|
2132
2291
|
display: none;
|
|
2133
2292
|
}
|
|
2134
2293
|
`;
|
|
2135
|
-
|
|
2294
|
+
St([
|
|
2136
2295
|
n()
|
|
2137
|
-
],
|
|
2138
|
-
|
|
2296
|
+
], ve.prototype, "heading", 2);
|
|
2297
|
+
St([
|
|
2139
2298
|
n({ type: Boolean, reflect: !0 })
|
|
2140
|
-
],
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
],
|
|
2144
|
-
var
|
|
2145
|
-
for (var t =
|
|
2146
|
-
(i =
|
|
2299
|
+
], ve.prototype, "reverse", 2);
|
|
2300
|
+
ve = St([
|
|
2301
|
+
h("vox-billboard")
|
|
2302
|
+
], ve);
|
|
2303
|
+
var $r = Object.getOwnPropertyDescriptor, wr = (r, e, o, s) => {
|
|
2304
|
+
for (var t = s > 1 ? void 0 : s ? $r(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2305
|
+
(i = r[a]) && (t = i(t) || t);
|
|
2147
2306
|
return t;
|
|
2148
2307
|
};
|
|
2149
|
-
let
|
|
2308
|
+
let gt = class extends p {
|
|
2150
2309
|
render() {
|
|
2151
|
-
return
|
|
2310
|
+
return c`
|
|
2152
2311
|
<nav aria-label="Breadcrumbs">
|
|
2153
2312
|
<slot></slot>
|
|
2154
2313
|
</nav>
|
|
2155
2314
|
`;
|
|
2156
2315
|
}
|
|
2157
2316
|
};
|
|
2158
|
-
|
|
2317
|
+
gt.styles = d`
|
|
2159
2318
|
:host {
|
|
2160
2319
|
display: block;
|
|
2161
2320
|
font-family: var(--vox-font-family-base);
|
|
@@ -2189,36 +2348,74 @@ lt.styles = c`
|
|
|
2189
2348
|
color: var(--vox-color-text-3);
|
|
2190
2349
|
}
|
|
2191
2350
|
`;
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
],
|
|
2195
|
-
var
|
|
2196
|
-
for (var t =
|
|
2197
|
-
(i =
|
|
2198
|
-
return
|
|
2351
|
+
gt = wr([
|
|
2352
|
+
h("vox-breadcrumbs")
|
|
2353
|
+
], gt);
|
|
2354
|
+
var _r = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, nt = (r, e, o, s) => {
|
|
2355
|
+
for (var t = s > 1 ? void 0 : s ? Cr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2356
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2357
|
+
return s && t && _r(e, o, t), t;
|
|
2199
2358
|
};
|
|
2200
|
-
let
|
|
2359
|
+
let X = class extends p {
|
|
2201
2360
|
constructor() {
|
|
2202
|
-
super(...arguments), this.siteTitle = "", this.href = "/"
|
|
2361
|
+
super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (r) => {
|
|
2362
|
+
this.mobileOpen && !r.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
2363
|
+
}, this.handleKeydown = (r) => {
|
|
2364
|
+
var e;
|
|
2365
|
+
r.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (e = this.renderRoot.querySelector(".menu-toggle")) == null || e.focus());
|
|
2366
|
+
}, this.toggleMobileMenu = () => {
|
|
2367
|
+
this.mobileOpen = !this.mobileOpen;
|
|
2368
|
+
}, this.closeMobileMenu = () => {
|
|
2369
|
+
this.mobileOpen = !1;
|
|
2370
|
+
};
|
|
2371
|
+
}
|
|
2372
|
+
connectedCallback() {
|
|
2373
|
+
super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown);
|
|
2374
|
+
}
|
|
2375
|
+
disconnectedCallback() {
|
|
2376
|
+
super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown);
|
|
2203
2377
|
}
|
|
2204
2378
|
render() {
|
|
2205
|
-
return
|
|
2379
|
+
return c`
|
|
2206
2380
|
<header class="header">
|
|
2207
2381
|
<a class="brand" href=${this.href}>
|
|
2208
2382
|
<slot name="logo"></slot>
|
|
2209
|
-
${this.siteTitle ?
|
|
2383
|
+
${this.siteTitle ? c`<span>${this.siteTitle}</span>` : x}
|
|
2210
2384
|
</a>
|
|
2211
|
-
<
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2385
|
+
<button
|
|
2386
|
+
type="button"
|
|
2387
|
+
class="menu-toggle"
|
|
2388
|
+
aria-expanded=${this.mobileOpen ? "true" : "false"}
|
|
2389
|
+
aria-controls="nav-wrap"
|
|
2390
|
+
aria-label=${this.mobileOpen ? "Close menu" : "Open menu"}
|
|
2391
|
+
@click=${this.toggleMobileMenu}
|
|
2392
|
+
>
|
|
2393
|
+
<svg
|
|
2394
|
+
class="menu-icon"
|
|
2395
|
+
viewBox="0 0 48 48"
|
|
2396
|
+
fill="none"
|
|
2397
|
+
stroke="currentColor"
|
|
2398
|
+
stroke-width="2"
|
|
2399
|
+
stroke-linecap="round"
|
|
2400
|
+
stroke-linejoin="round"
|
|
2401
|
+
aria-hidden="true"
|
|
2402
|
+
>
|
|
2403
|
+
${this.mobileOpen ? j.close : j.menu}
|
|
2404
|
+
</svg>
|
|
2405
|
+
</button>
|
|
2406
|
+
<div id="nav-wrap" class="nav-wrap${this.mobileOpen ? " open" : ""}">
|
|
2407
|
+
<nav aria-label="Main">
|
|
2408
|
+
<slot @click=${this.closeMobileMenu}></slot>
|
|
2409
|
+
</nav>
|
|
2410
|
+
<div class="actions">
|
|
2411
|
+
<slot name="actions"></slot>
|
|
2412
|
+
</div>
|
|
2216
2413
|
</div>
|
|
2217
2414
|
</header>
|
|
2218
2415
|
`;
|
|
2219
2416
|
}
|
|
2220
2417
|
};
|
|
2221
|
-
|
|
2418
|
+
X.styles = d`
|
|
2222
2419
|
:host {
|
|
2223
2420
|
display: block;
|
|
2224
2421
|
font-family: var(--vox-font-family-base);
|
|
@@ -2252,6 +2449,39 @@ ce.styles = c`
|
|
|
2252
2449
|
width: auto;
|
|
2253
2450
|
}
|
|
2254
2451
|
|
|
2452
|
+
.menu-toggle {
|
|
2453
|
+
display: none;
|
|
2454
|
+
align-items: center;
|
|
2455
|
+
justify-content: center;
|
|
2456
|
+
width: 36px;
|
|
2457
|
+
height: 36px;
|
|
2458
|
+
margin-left: auto;
|
|
2459
|
+
padding: 0;
|
|
2460
|
+
background: none;
|
|
2461
|
+
border: none;
|
|
2462
|
+
border-radius: var(--vox-radius-sm);
|
|
2463
|
+
color: var(--vox-color-text-1);
|
|
2464
|
+
cursor: pointer;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
.menu-toggle:hover {
|
|
2468
|
+
color: var(--vox-color-brand-1);
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
.menu-toggle:focus-visible {
|
|
2472
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
2473
|
+
outline-offset: 2px;
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
.menu-icon {
|
|
2477
|
+
width: 22px;
|
|
2478
|
+
height: 22px;
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
.nav-wrap {
|
|
2482
|
+
display: contents;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2255
2485
|
nav {
|
|
2256
2486
|
display: flex;
|
|
2257
2487
|
align-items: center;
|
|
@@ -2282,45 +2512,80 @@ ce.styles = c`
|
|
|
2282
2512
|
align-items: center;
|
|
2283
2513
|
gap: var(--vox-space-3);
|
|
2284
2514
|
}
|
|
2515
|
+
|
|
2516
|
+
@media (max-width: 768px) {
|
|
2517
|
+
.menu-toggle {
|
|
2518
|
+
display: inline-flex;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.nav-wrap {
|
|
2522
|
+
display: none;
|
|
2523
|
+
width: 100%;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
.nav-wrap.open {
|
|
2527
|
+
display: flex;
|
|
2528
|
+
flex-direction: column;
|
|
2529
|
+
align-items: stretch;
|
|
2530
|
+
gap: var(--vox-space-4);
|
|
2531
|
+
margin-top: var(--vox-space-3);
|
|
2532
|
+
padding-top: var(--vox-space-4);
|
|
2533
|
+
border-top: 1px solid var(--vox-color-divider);
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
nav {
|
|
2537
|
+
flex-direction: column;
|
|
2538
|
+
align-items: flex-start;
|
|
2539
|
+
gap: var(--vox-space-3);
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
.actions {
|
|
2543
|
+
flex-direction: column;
|
|
2544
|
+
align-items: stretch;
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2285
2547
|
`;
|
|
2286
|
-
|
|
2548
|
+
nt([
|
|
2287
2549
|
n({ attribute: "site-title" })
|
|
2288
|
-
],
|
|
2289
|
-
|
|
2550
|
+
], X.prototype, "siteTitle", 2);
|
|
2551
|
+
nt([
|
|
2290
2552
|
n()
|
|
2291
|
-
],
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
],
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2553
|
+
], X.prototype, "href", 2);
|
|
2554
|
+
nt([
|
|
2555
|
+
rt()
|
|
2556
|
+
], X.prototype, "mobileOpen", 2);
|
|
2557
|
+
X = nt([
|
|
2558
|
+
h("vox-header")
|
|
2559
|
+
], X);
|
|
2560
|
+
var Or = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, De = (r, e, o, s) => {
|
|
2561
|
+
for (var t = s > 1 ? void 0 : s ? Mr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2562
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2563
|
+
return s && t && Or(e, o, t), t;
|
|
2299
2564
|
};
|
|
2300
|
-
let
|
|
2565
|
+
let z = class extends p {
|
|
2301
2566
|
constructor() {
|
|
2302
2567
|
super(...arguments), this.previousLabel = "", this.nextLabel = "";
|
|
2303
2568
|
}
|
|
2304
2569
|
render() {
|
|
2305
|
-
return
|
|
2570
|
+
return c`
|
|
2306
2571
|
<nav aria-label="Series">
|
|
2307
|
-
${this.previousHref ?
|
|
2572
|
+
${this.previousHref ? c`
|
|
2308
2573
|
<a href=${this.previousHref} rel="prev">
|
|
2309
2574
|
<span class="direction">← Previous</span>
|
|
2310
2575
|
<span class="title">${this.previousLabel}</span>
|
|
2311
2576
|
</a>
|
|
2312
|
-
` :
|
|
2313
|
-
${this.nextHref ?
|
|
2577
|
+
` : x}
|
|
2578
|
+
${this.nextHref ? c`
|
|
2314
2579
|
<a class="next" href=${this.nextHref} rel="next">
|
|
2315
2580
|
<span class="direction">Next →</span>
|
|
2316
2581
|
<span class="title">${this.nextLabel}</span>
|
|
2317
2582
|
</a>
|
|
2318
|
-
` :
|
|
2583
|
+
` : x}
|
|
2319
2584
|
</nav>
|
|
2320
2585
|
`;
|
|
2321
2586
|
}
|
|
2322
2587
|
};
|
|
2323
|
-
|
|
2588
|
+
z.styles = d`
|
|
2324
2589
|
:host {
|
|
2325
2590
|
display: block;
|
|
2326
2591
|
font-family: var(--vox-font-family-base);
|
|
@@ -2370,57 +2635,152 @@ B.styles = c`
|
|
|
2370
2635
|
color: var(--vox-color-brand-1);
|
|
2371
2636
|
}
|
|
2372
2637
|
`;
|
|
2373
|
-
|
|
2638
|
+
De([
|
|
2374
2639
|
n({ attribute: "previous-href" })
|
|
2375
|
-
],
|
|
2376
|
-
|
|
2640
|
+
], z.prototype, "previousHref", 2);
|
|
2641
|
+
De([
|
|
2377
2642
|
n({ attribute: "previous-label" })
|
|
2378
|
-
],
|
|
2379
|
-
|
|
2643
|
+
], z.prototype, "previousLabel", 2);
|
|
2644
|
+
De([
|
|
2380
2645
|
n({ attribute: "next-href" })
|
|
2381
|
-
],
|
|
2382
|
-
|
|
2646
|
+
], z.prototype, "nextHref", 2);
|
|
2647
|
+
De([
|
|
2383
2648
|
n({ attribute: "next-label" })
|
|
2384
|
-
],
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
],
|
|
2388
|
-
var
|
|
2389
|
-
for (var t =
|
|
2390
|
-
(i =
|
|
2391
|
-
return
|
|
2649
|
+
], z.prototype, "nextLabel", 2);
|
|
2650
|
+
z = De([
|
|
2651
|
+
h("vox-series-nav")
|
|
2652
|
+
], z);
|
|
2653
|
+
var Pr = Object.defineProperty, Ar = Object.getOwnPropertyDescriptor, $ = (r, e, o, s) => {
|
|
2654
|
+
for (var t = s > 1 ? void 0 : s ? Ar(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2655
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2656
|
+
return s && t && Pr(e, o, t), t;
|
|
2392
2657
|
};
|
|
2393
|
-
let
|
|
2658
|
+
let Y = class extends p {
|
|
2394
2659
|
constructor() {
|
|
2395
|
-
super(...arguments), this.label = "Section"
|
|
2660
|
+
super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (r) => {
|
|
2661
|
+
this.mobileOpen && !r.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
2662
|
+
}, this.handleKeydown = (r) => {
|
|
2663
|
+
var e;
|
|
2664
|
+
r.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (e = this.renderRoot.querySelector(".toggle")) == null || e.focus());
|
|
2665
|
+
}, this.toggleMobile = () => {
|
|
2666
|
+
this.mobileOpen = !this.mobileOpen;
|
|
2667
|
+
}, this.handleNavClick = (r) => {
|
|
2668
|
+
r.composedPath().some((e) => e instanceof HTMLAnchorElement) && (this.mobileOpen = !1);
|
|
2669
|
+
};
|
|
2670
|
+
}
|
|
2671
|
+
connectedCallback() {
|
|
2672
|
+
super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown);
|
|
2673
|
+
}
|
|
2674
|
+
disconnectedCallback() {
|
|
2675
|
+
super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown);
|
|
2396
2676
|
}
|
|
2397
2677
|
render() {
|
|
2398
|
-
return
|
|
2399
|
-
<
|
|
2678
|
+
return c`
|
|
2679
|
+
<button
|
|
2680
|
+
type="button"
|
|
2681
|
+
class="toggle"
|
|
2682
|
+
aria-expanded=${this.mobileOpen ? "true" : "false"}
|
|
2683
|
+
aria-controls="nav"
|
|
2684
|
+
@click=${this.toggleMobile}
|
|
2685
|
+
>
|
|
2686
|
+
${this.toggleLabel}
|
|
2687
|
+
<svg
|
|
2688
|
+
class="toggle-icon"
|
|
2689
|
+
viewBox="0 0 48 48"
|
|
2690
|
+
fill="none"
|
|
2691
|
+
stroke="currentColor"
|
|
2692
|
+
stroke-width="2"
|
|
2693
|
+
stroke-linecap="round"
|
|
2694
|
+
stroke-linejoin="round"
|
|
2695
|
+
aria-hidden="true"
|
|
2696
|
+
>
|
|
2697
|
+
${this.mobileOpen ? j.close : j.menu}
|
|
2698
|
+
</svg>
|
|
2699
|
+
</button>
|
|
2700
|
+
<nav
|
|
2701
|
+
id="nav"
|
|
2702
|
+
class=${this.mobileOpen ? "open" : ""}
|
|
2703
|
+
aria-label=${this.label}
|
|
2704
|
+
@click=${this.handleNavClick}
|
|
2705
|
+
>
|
|
2400
2706
|
<slot></slot>
|
|
2401
2707
|
</nav>
|
|
2402
2708
|
`;
|
|
2403
2709
|
}
|
|
2404
2710
|
};
|
|
2405
|
-
|
|
2711
|
+
Y.styles = d`
|
|
2406
2712
|
:host {
|
|
2407
2713
|
display: block;
|
|
2408
2714
|
font-family: var(--vox-font-family-base);
|
|
2409
2715
|
}
|
|
2410
2716
|
|
|
2717
|
+
.toggle {
|
|
2718
|
+
display: none;
|
|
2719
|
+
align-items: center;
|
|
2720
|
+
justify-content: space-between;
|
|
2721
|
+
width: 100%;
|
|
2722
|
+
gap: var(--vox-space-2);
|
|
2723
|
+
padding: var(--vox-space-2) var(--vox-space-3);
|
|
2724
|
+
background: none;
|
|
2725
|
+
border: 1px solid var(--vox-color-divider);
|
|
2726
|
+
border-radius: var(--vox-radius-md);
|
|
2727
|
+
color: var(--vox-color-text-1);
|
|
2728
|
+
font-family: inherit;
|
|
2729
|
+
font-size: 14px;
|
|
2730
|
+
font-weight: 600;
|
|
2731
|
+
cursor: pointer;
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
.toggle:hover {
|
|
2735
|
+
border-color: var(--vox-color-brand-1);
|
|
2736
|
+
color: var(--vox-color-brand-1);
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
.toggle:focus-visible {
|
|
2740
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
2741
|
+
outline-offset: 2px;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
.toggle-icon {
|
|
2745
|
+
width: 18px;
|
|
2746
|
+
height: 18px;
|
|
2747
|
+
flex: none;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2411
2750
|
nav {
|
|
2412
2751
|
display: flex;
|
|
2413
2752
|
flex-direction: column;
|
|
2414
2753
|
gap: 2px;
|
|
2415
2754
|
}
|
|
2755
|
+
|
|
2756
|
+
@media (max-width: 768px) {
|
|
2757
|
+
.toggle {
|
|
2758
|
+
display: flex;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
nav {
|
|
2762
|
+
display: none;
|
|
2763
|
+
margin-top: var(--vox-space-2);
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
nav.open {
|
|
2767
|
+
display: flex;
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2416
2770
|
`;
|
|
2417
|
-
|
|
2771
|
+
$([
|
|
2418
2772
|
n()
|
|
2419
|
-
],
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
],
|
|
2423
|
-
|
|
2773
|
+
], Y.prototype, "label", 2);
|
|
2774
|
+
$([
|
|
2775
|
+
n({ attribute: "toggle-label" })
|
|
2776
|
+
], Y.prototype, "toggleLabel", 2);
|
|
2777
|
+
$([
|
|
2778
|
+
rt()
|
|
2779
|
+
], Y.prototype, "mobileOpen", 2);
|
|
2780
|
+
Y = $([
|
|
2781
|
+
h("vox-sidenav")
|
|
2782
|
+
], Y);
|
|
2783
|
+
let ue = class extends p {
|
|
2424
2784
|
constructor() {
|
|
2425
2785
|
super(...arguments), this.heading = "", this.open = !1;
|
|
2426
2786
|
}
|
|
@@ -2428,7 +2788,7 @@ let de = class extends p {
|
|
|
2428
2788
|
this.open = !this.open;
|
|
2429
2789
|
}
|
|
2430
2790
|
render() {
|
|
2431
|
-
return
|
|
2791
|
+
return c`
|
|
2432
2792
|
<button
|
|
2433
2793
|
class="trigger"
|
|
2434
2794
|
aria-expanded=${this.open ? "true" : "false"}
|
|
@@ -2443,7 +2803,7 @@ let de = class extends p {
|
|
|
2443
2803
|
`;
|
|
2444
2804
|
}
|
|
2445
2805
|
};
|
|
2446
|
-
|
|
2806
|
+
ue.styles = d`
|
|
2447
2807
|
:host {
|
|
2448
2808
|
display: block;
|
|
2449
2809
|
font-family: var(--vox-font-family-base);
|
|
@@ -2500,35 +2860,44 @@ de.styles = c`
|
|
|
2500
2860
|
display: flex;
|
|
2501
2861
|
}
|
|
2502
2862
|
`;
|
|
2503
|
-
|
|
2863
|
+
$([
|
|
2504
2864
|
n()
|
|
2505
|
-
],
|
|
2506
|
-
|
|
2865
|
+
], ue.prototype, "heading", 2);
|
|
2866
|
+
$([
|
|
2507
2867
|
n({ type: Boolean, reflect: !0 })
|
|
2508
|
-
],
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
],
|
|
2512
|
-
let
|
|
2868
|
+
], ue.prototype, "open", 2);
|
|
2869
|
+
ue = $([
|
|
2870
|
+
h("vox-sidenav-group")
|
|
2871
|
+
], ue);
|
|
2872
|
+
let xe = class extends p {
|
|
2513
2873
|
constructor() {
|
|
2514
|
-
super(...arguments), this.href = "#", this.current = !1;
|
|
2874
|
+
super(...arguments), this.href = "#", this.current = !1, this.hasIcon = !1;
|
|
2875
|
+
}
|
|
2876
|
+
handleIconSlotChange(r) {
|
|
2877
|
+
const e = r.target;
|
|
2878
|
+
this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2515
2879
|
}
|
|
2516
2880
|
render() {
|
|
2517
|
-
return
|
|
2881
|
+
return c`
|
|
2518
2882
|
<a href=${this.href} aria-current=${this.current ? "page" : "false"}>
|
|
2883
|
+
<span class="icon ${this.hasIcon ? "has-icon" : ""}">
|
|
2884
|
+
<slot name="icon" @slotchange=${this.handleIconSlotChange}></slot>
|
|
2885
|
+
</span>
|
|
2519
2886
|
<slot></slot>
|
|
2520
2887
|
</a>
|
|
2521
2888
|
`;
|
|
2522
2889
|
}
|
|
2523
2890
|
};
|
|
2524
|
-
|
|
2891
|
+
xe.styles = d`
|
|
2525
2892
|
:host {
|
|
2526
2893
|
display: block;
|
|
2527
2894
|
font-family: var(--vox-font-family-base);
|
|
2528
2895
|
}
|
|
2529
2896
|
|
|
2530
2897
|
a {
|
|
2531
|
-
display:
|
|
2898
|
+
display: flex;
|
|
2899
|
+
align-items: center;
|
|
2900
|
+
gap: var(--vox-space-2);
|
|
2532
2901
|
padding: var(--vox-space-2) var(--vox-space-3);
|
|
2533
2902
|
border-radius: var(--vox-radius-sm);
|
|
2534
2903
|
color: var(--vox-color-text-2);
|
|
@@ -2553,34 +2922,43 @@ pe.styles = c`
|
|
|
2553
2922
|
color: var(--vox-color-brand-1);
|
|
2554
2923
|
font-weight: 600;
|
|
2555
2924
|
}
|
|
2925
|
+
|
|
2926
|
+
.icon {
|
|
2927
|
+
display: flex;
|
|
2928
|
+
flex: none;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
.icon:not(.has-icon) {
|
|
2932
|
+
display: none;
|
|
2933
|
+
}
|
|
2556
2934
|
`;
|
|
2557
|
-
|
|
2935
|
+
$([
|
|
2558
2936
|
n()
|
|
2559
|
-
],
|
|
2560
|
-
|
|
2937
|
+
], xe.prototype, "href", 2);
|
|
2938
|
+
$([
|
|
2561
2939
|
n({ type: Boolean, reflect: !0 })
|
|
2562
|
-
],
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
],
|
|
2566
|
-
var
|
|
2567
|
-
for (var t =
|
|
2568
|
-
(i =
|
|
2569
|
-
return
|
|
2940
|
+
], xe.prototype, "current", 2);
|
|
2941
|
+
xe = $([
|
|
2942
|
+
h("vox-sidenav-item")
|
|
2943
|
+
], xe);
|
|
2944
|
+
var kr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, uo = (r, e, o, s) => {
|
|
2945
|
+
for (var t = s > 1 ? void 0 : s ? Lr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
2946
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
2947
|
+
return s && t && kr(e, o, t), t;
|
|
2570
2948
|
};
|
|
2571
|
-
let
|
|
2949
|
+
let Ke = class extends p {
|
|
2572
2950
|
constructor() {
|
|
2573
2951
|
super(...arguments), this.label = "Secondary";
|
|
2574
2952
|
}
|
|
2575
2953
|
render() {
|
|
2576
|
-
return
|
|
2954
|
+
return c`
|
|
2577
2955
|
<nav aria-label=${this.label}>
|
|
2578
2956
|
<slot></slot>
|
|
2579
2957
|
</nav>
|
|
2580
2958
|
`;
|
|
2581
2959
|
}
|
|
2582
2960
|
};
|
|
2583
|
-
|
|
2961
|
+
Ke.styles = d`
|
|
2584
2962
|
:host {
|
|
2585
2963
|
display: block;
|
|
2586
2964
|
font-family: var(--vox-font-family-base);
|
|
@@ -2615,18 +2993,18 @@ qe.styles = c`
|
|
|
2615
2993
|
border-bottom-color: var(--vox-color-brand-1);
|
|
2616
2994
|
}
|
|
2617
2995
|
`;
|
|
2618
|
-
|
|
2996
|
+
uo([
|
|
2619
2997
|
n()
|
|
2620
|
-
],
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
],
|
|
2624
|
-
var
|
|
2625
|
-
for (var t =
|
|
2626
|
-
(i =
|
|
2627
|
-
return
|
|
2998
|
+
], Ke.prototype, "label", 2);
|
|
2999
|
+
Ke = uo([
|
|
3000
|
+
h("vox-subnav")
|
|
3001
|
+
], Ke);
|
|
3002
|
+
var Er = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, U = (r, e, o, s) => {
|
|
3003
|
+
for (var t = s > 1 ? void 0 : s ? Sr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3004
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3005
|
+
return s && t && Er(e, o, t), t;
|
|
2628
3006
|
};
|
|
2629
|
-
let
|
|
3007
|
+
let bt = class extends p {
|
|
2630
3008
|
get tabs() {
|
|
2631
3009
|
return [...this.querySelectorAll("vox-tab")];
|
|
2632
3010
|
}
|
|
@@ -2634,15 +3012,15 @@ let ct = class extends p {
|
|
|
2634
3012
|
return [...this.querySelectorAll("vox-tab-panel")];
|
|
2635
3013
|
}
|
|
2636
3014
|
sync() {
|
|
2637
|
-
const
|
|
2638
|
-
|
|
2639
|
-
const e =
|
|
3015
|
+
const r = this.tabs;
|
|
3016
|
+
r.length > 0 && !r.some((o) => o.selected) && (r[0].selected = !0);
|
|
3017
|
+
const e = r.find((o) => o.selected);
|
|
2640
3018
|
this.panels.forEach((o) => {
|
|
2641
3019
|
o.active = o.name === (e == null ? void 0 : e.panel);
|
|
2642
3020
|
});
|
|
2643
3021
|
}
|
|
2644
|
-
handleSelect(
|
|
2645
|
-
const e =
|
|
3022
|
+
handleSelect(r) {
|
|
3023
|
+
const e = r.target;
|
|
2646
3024
|
e.tagName === "VOX-TAB" && (this.tabs.forEach((o) => o.selected = o === e), this.sync(), this.dispatchEvent(
|
|
2647
3025
|
new CustomEvent("vox-tab-change", {
|
|
2648
3026
|
detail: { panel: e.panel },
|
|
@@ -2651,15 +3029,15 @@ let ct = class extends p {
|
|
|
2651
3029
|
})
|
|
2652
3030
|
));
|
|
2653
3031
|
}
|
|
2654
|
-
handleKeydown(
|
|
2655
|
-
const o = { ArrowRight: 1, ArrowLeft: -1 }[
|
|
3032
|
+
handleKeydown(r) {
|
|
3033
|
+
const o = { ArrowRight: 1, ArrowLeft: -1 }[r.key];
|
|
2656
3034
|
if (!o) return;
|
|
2657
|
-
|
|
2658
|
-
const
|
|
3035
|
+
r.preventDefault();
|
|
3036
|
+
const s = this.tabs, t = s.findIndex((i) => i.selected), a = s[(t + o + s.length) % s.length];
|
|
2659
3037
|
a.select(), a.focusTab();
|
|
2660
3038
|
}
|
|
2661
3039
|
render() {
|
|
2662
|
-
return
|
|
3040
|
+
return c`
|
|
2663
3041
|
<div
|
|
2664
3042
|
class="tablist"
|
|
2665
3043
|
role="tablist"
|
|
@@ -2672,7 +3050,7 @@ let ct = class extends p {
|
|
|
2672
3050
|
`;
|
|
2673
3051
|
}
|
|
2674
3052
|
};
|
|
2675
|
-
|
|
3053
|
+
bt.styles = d`
|
|
2676
3054
|
:host {
|
|
2677
3055
|
display: block;
|
|
2678
3056
|
}
|
|
@@ -2683,10 +3061,10 @@ ct.styles = c`
|
|
|
2683
3061
|
border-bottom: 1px solid var(--vox-color-divider);
|
|
2684
3062
|
}
|
|
2685
3063
|
`;
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
],
|
|
2689
|
-
let
|
|
3064
|
+
bt = U([
|
|
3065
|
+
h("vox-tabs")
|
|
3066
|
+
], bt);
|
|
3067
|
+
let fe = class extends p {
|
|
2690
3068
|
constructor() {
|
|
2691
3069
|
super(...arguments), this.panel = "", this.selected = !1;
|
|
2692
3070
|
}
|
|
@@ -2696,11 +3074,11 @@ let he = class extends p {
|
|
|
2696
3074
|
);
|
|
2697
3075
|
}
|
|
2698
3076
|
focusTab() {
|
|
2699
|
-
var
|
|
2700
|
-
(
|
|
3077
|
+
var r;
|
|
3078
|
+
(r = this.renderRoot.querySelector(".tab")) == null || r.focus();
|
|
2701
3079
|
}
|
|
2702
3080
|
render() {
|
|
2703
|
-
return
|
|
3081
|
+
return c`
|
|
2704
3082
|
<button
|
|
2705
3083
|
class="tab"
|
|
2706
3084
|
role="tab"
|
|
@@ -2713,7 +3091,7 @@ let he = class extends p {
|
|
|
2713
3091
|
`;
|
|
2714
3092
|
}
|
|
2715
3093
|
};
|
|
2716
|
-
|
|
3094
|
+
fe.styles = d`
|
|
2717
3095
|
:host {
|
|
2718
3096
|
display: block;
|
|
2719
3097
|
font-family: var(--vox-font-family-base);
|
|
@@ -2750,22 +3128,22 @@ he.styles = c`
|
|
|
2750
3128
|
`;
|
|
2751
3129
|
U([
|
|
2752
3130
|
n()
|
|
2753
|
-
],
|
|
3131
|
+
], fe.prototype, "panel", 2);
|
|
2754
3132
|
U([
|
|
2755
3133
|
n({ type: Boolean, reflect: !0 })
|
|
2756
|
-
],
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
],
|
|
2760
|
-
let
|
|
3134
|
+
], fe.prototype, "selected", 2);
|
|
3135
|
+
fe = U([
|
|
3136
|
+
h("vox-tab")
|
|
3137
|
+
], fe);
|
|
3138
|
+
let ge = class extends p {
|
|
2761
3139
|
constructor() {
|
|
2762
3140
|
super(...arguments), this.name = "", this.active = !1;
|
|
2763
3141
|
}
|
|
2764
3142
|
render() {
|
|
2765
|
-
return
|
|
3143
|
+
return c`<div role="tabpanel"><slot></slot></div>`;
|
|
2766
3144
|
}
|
|
2767
3145
|
};
|
|
2768
|
-
|
|
3146
|
+
ge.styles = d`
|
|
2769
3147
|
:host {
|
|
2770
3148
|
display: none;
|
|
2771
3149
|
font-family: var(--vox-font-family-base);
|
|
@@ -2781,19 +3159,138 @@ ve.styles = c`
|
|
|
2781
3159
|
`;
|
|
2782
3160
|
U([
|
|
2783
3161
|
n()
|
|
2784
|
-
],
|
|
3162
|
+
], ge.prototype, "name", 2);
|
|
2785
3163
|
U([
|
|
2786
3164
|
n({ type: Boolean, reflect: !0 })
|
|
2787
|
-
],
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
],
|
|
2791
|
-
var
|
|
2792
|
-
for (var t =
|
|
2793
|
-
(i =
|
|
2794
|
-
return
|
|
3165
|
+
], ge.prototype, "active", 2);
|
|
3166
|
+
ge = U([
|
|
3167
|
+
h("vox-tab-panel")
|
|
3168
|
+
], ge);
|
|
3169
|
+
var Vr = Object.defineProperty, jr = Object.getOwnPropertyDescriptor, He = (r, e, o, s) => {
|
|
3170
|
+
for (var t = s > 1 ? void 0 : s ? jr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3171
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3172
|
+
return s && t && Vr(e, o, t), t;
|
|
3173
|
+
};
|
|
3174
|
+
let Ge = class extends p {
|
|
3175
|
+
constructor() {
|
|
3176
|
+
super(...arguments), this.heading = "On this page";
|
|
3177
|
+
}
|
|
3178
|
+
render() {
|
|
3179
|
+
return c`
|
|
3180
|
+
<div class="heading" id="vox-toc-heading">${this.heading}</div>
|
|
3181
|
+
<nav aria-labelledby="vox-toc-heading">
|
|
3182
|
+
<slot></slot>
|
|
3183
|
+
</nav>
|
|
3184
|
+
`;
|
|
3185
|
+
}
|
|
3186
|
+
};
|
|
3187
|
+
Ge.styles = d`
|
|
3188
|
+
:host {
|
|
3189
|
+
display: block;
|
|
3190
|
+
font-family: var(--vox-font-family-base);
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3193
|
+
.heading {
|
|
3194
|
+
margin: 0 0 var(--vox-space-2);
|
|
3195
|
+
padding-left: var(--vox-space-3);
|
|
3196
|
+
font-size: 13px;
|
|
3197
|
+
font-weight: 600;
|
|
3198
|
+
color: var(--vox-color-text-1);
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
nav {
|
|
3202
|
+
display: flex;
|
|
3203
|
+
flex-direction: column;
|
|
3204
|
+
gap: 1px;
|
|
3205
|
+
border-left: 1px solid var(--vox-color-divider);
|
|
3206
|
+
}
|
|
3207
|
+
`;
|
|
3208
|
+
He([
|
|
3209
|
+
n()
|
|
3210
|
+
], Ge.prototype, "heading", 2);
|
|
3211
|
+
Ge = He([
|
|
3212
|
+
h("vox-toc")
|
|
3213
|
+
], Ge);
|
|
3214
|
+
let be = class extends p {
|
|
3215
|
+
constructor() {
|
|
3216
|
+
super(...arguments), this.href = "#", this.current = !1, this.hasChildren = !1;
|
|
3217
|
+
}
|
|
3218
|
+
handleChildrenSlotChange(r) {
|
|
3219
|
+
const e = r.target;
|
|
3220
|
+
this.hasChildren = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3221
|
+
}
|
|
3222
|
+
render() {
|
|
3223
|
+
return c`
|
|
3224
|
+
<a href=${this.href} aria-current=${this.current ? "true" : "false"}>
|
|
3225
|
+
<slot></slot>
|
|
3226
|
+
</a>
|
|
3227
|
+
<div class="children ${this.hasChildren ? "has-children" : ""}">
|
|
3228
|
+
<slot name="children" @slotchange=${this.handleChildrenSlotChange}></slot>
|
|
3229
|
+
</div>
|
|
3230
|
+
`;
|
|
3231
|
+
}
|
|
3232
|
+
};
|
|
3233
|
+
be.styles = d`
|
|
3234
|
+
:host {
|
|
3235
|
+
display: block;
|
|
3236
|
+
font-family: var(--vox-font-family-base);
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
a {
|
|
3240
|
+
display: block;
|
|
3241
|
+
margin-left: -1px;
|
|
3242
|
+
padding: var(--vox-space-1) var(--vox-space-3);
|
|
3243
|
+
border-left: 2px solid transparent;
|
|
3244
|
+
color: var(--vox-color-text-2);
|
|
3245
|
+
font-size: 13px;
|
|
3246
|
+
line-height: 1.5;
|
|
3247
|
+
text-decoration: none;
|
|
3248
|
+
transition:
|
|
3249
|
+
color var(--vox-transition-fast),
|
|
3250
|
+
border-color var(--vox-transition-fast);
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
a:hover {
|
|
3254
|
+
color: var(--vox-color-text-1);
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
a:focus-visible {
|
|
3258
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
3259
|
+
outline-offset: -2px;
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
:host([current]) a {
|
|
3263
|
+
border-left-color: var(--vox-color-brand-1);
|
|
3264
|
+
color: var(--vox-color-brand-1);
|
|
3265
|
+
font-weight: 600;
|
|
3266
|
+
}
|
|
3267
|
+
|
|
3268
|
+
.children {
|
|
3269
|
+
display: flex;
|
|
3270
|
+
flex-direction: column;
|
|
3271
|
+
gap: 1px;
|
|
3272
|
+
padding-left: var(--vox-space-3);
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
.children:not(.has-children) {
|
|
3276
|
+
display: none;
|
|
3277
|
+
}
|
|
3278
|
+
`;
|
|
3279
|
+
He([
|
|
3280
|
+
n()
|
|
3281
|
+
], be.prototype, "href", 2);
|
|
3282
|
+
He([
|
|
3283
|
+
n({ type: Boolean, reflect: !0 })
|
|
3284
|
+
], be.prototype, "current", 2);
|
|
3285
|
+
be = He([
|
|
3286
|
+
h("vox-toc-item")
|
|
3287
|
+
], be);
|
|
3288
|
+
var Dr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, ze = (r, e, o, s) => {
|
|
3289
|
+
for (var t = s > 1 ? void 0 : s ? Hr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3290
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3291
|
+
return s && t && Dr(e, o, t), t;
|
|
2795
3292
|
};
|
|
2796
|
-
let
|
|
3293
|
+
let T = class extends p {
|
|
2797
3294
|
constructor() {
|
|
2798
3295
|
super(...arguments), this.heading = "", this.open = !1, this.lightDismiss = !1, this.hasFooter = !1;
|
|
2799
3296
|
}
|
|
@@ -2811,17 +3308,17 @@ let V = class extends p {
|
|
|
2811
3308
|
new CustomEvent("vox-close", { bubbles: !0, composed: !0 })
|
|
2812
3309
|
);
|
|
2813
3310
|
}
|
|
2814
|
-
handleClick(
|
|
2815
|
-
this.lightDismiss &&
|
|
3311
|
+
handleClick(r) {
|
|
3312
|
+
this.lightDismiss && r.target === this.dialogEl && this.close();
|
|
2816
3313
|
}
|
|
2817
|
-
handleFooterSlotChange(
|
|
2818
|
-
const e =
|
|
3314
|
+
handleFooterSlotChange(r) {
|
|
3315
|
+
const e = r.target;
|
|
2819
3316
|
this.hasFooter = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2820
3317
|
}
|
|
2821
3318
|
render() {
|
|
2822
|
-
return
|
|
3319
|
+
return c`
|
|
2823
3320
|
<dialog
|
|
2824
|
-
aria-label=${this.heading ||
|
|
3321
|
+
aria-label=${this.heading || x}
|
|
2825
3322
|
@close=${this.handleNativeClose}
|
|
2826
3323
|
@click=${this.handleClick}
|
|
2827
3324
|
>
|
|
@@ -2841,7 +3338,7 @@ let V = class extends p {
|
|
|
2841
3338
|
`;
|
|
2842
3339
|
}
|
|
2843
3340
|
};
|
|
2844
|
-
|
|
3341
|
+
T.styles = d`
|
|
2845
3342
|
dialog {
|
|
2846
3343
|
box-sizing: border-box;
|
|
2847
3344
|
width: min(90vw, 480px);
|
|
@@ -2928,27 +3425,27 @@ V.styles = c`
|
|
|
2928
3425
|
margin-bottom: 0;
|
|
2929
3426
|
}
|
|
2930
3427
|
`;
|
|
2931
|
-
|
|
3428
|
+
ze([
|
|
2932
3429
|
n()
|
|
2933
|
-
],
|
|
2934
|
-
|
|
3430
|
+
], T.prototype, "heading", 2);
|
|
3431
|
+
ze([
|
|
2935
3432
|
n({ type: Boolean })
|
|
2936
|
-
],
|
|
2937
|
-
|
|
3433
|
+
], T.prototype, "open", 2);
|
|
3434
|
+
ze([
|
|
2938
3435
|
n({ type: Boolean, attribute: "light-dismiss" })
|
|
2939
|
-
],
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
],
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
],
|
|
2946
|
-
var
|
|
2947
|
-
for (var t =
|
|
2948
|
-
(i =
|
|
2949
|
-
return
|
|
3436
|
+
], T.prototype, "lightDismiss", 2);
|
|
3437
|
+
ze([
|
|
3438
|
+
Pt("dialog")
|
|
3439
|
+
], T.prototype, "dialogEl", 2);
|
|
3440
|
+
T = ze([
|
|
3441
|
+
h("vox-dialog")
|
|
3442
|
+
], T);
|
|
3443
|
+
var zr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, Vt = (r, e, o, s) => {
|
|
3444
|
+
for (var t = s > 1 ? void 0 : s ? Tr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3445
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3446
|
+
return s && t && zr(e, o, t), t;
|
|
2950
3447
|
};
|
|
2951
|
-
let
|
|
3448
|
+
let ye = class extends p {
|
|
2952
3449
|
constructor() {
|
|
2953
3450
|
super(...arguments), this.summary = "Show details", this.open = !1;
|
|
2954
3451
|
}
|
|
@@ -2958,7 +3455,7 @@ let ue = class extends p {
|
|
|
2958
3455
|
);
|
|
2959
3456
|
}
|
|
2960
3457
|
render() {
|
|
2961
|
-
return
|
|
3458
|
+
return c`
|
|
2962
3459
|
<button
|
|
2963
3460
|
class="trigger"
|
|
2964
3461
|
aria-expanded=${this.open ? "true" : "false"}
|
|
@@ -2975,7 +3472,7 @@ let ue = class extends p {
|
|
|
2975
3472
|
`;
|
|
2976
3473
|
}
|
|
2977
3474
|
};
|
|
2978
|
-
|
|
3475
|
+
ye.styles = d`
|
|
2979
3476
|
:host {
|
|
2980
3477
|
display: block;
|
|
2981
3478
|
font-family: var(--vox-font-family-base);
|
|
@@ -3027,35 +3524,35 @@ ue.styles = c`
|
|
|
3027
3524
|
display: none;
|
|
3028
3525
|
}
|
|
3029
3526
|
`;
|
|
3030
|
-
|
|
3527
|
+
Vt([
|
|
3031
3528
|
n()
|
|
3032
|
-
],
|
|
3033
|
-
|
|
3529
|
+
], ye.prototype, "summary", 2);
|
|
3530
|
+
Vt([
|
|
3034
3531
|
n({ type: Boolean, reflect: !0 })
|
|
3035
|
-
],
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
],
|
|
3039
|
-
var
|
|
3040
|
-
for (var t =
|
|
3041
|
-
(i =
|
|
3042
|
-
return
|
|
3532
|
+
], ye.prototype, "open", 2);
|
|
3533
|
+
ye = Vt([
|
|
3534
|
+
h("vox-disclosure")
|
|
3535
|
+
], ye);
|
|
3536
|
+
var Br = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, jt = (r, e, o, s) => {
|
|
3537
|
+
for (var t = s > 1 ? void 0 : s ? Nr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3538
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3539
|
+
return s && t && Br(e, o, t), t;
|
|
3043
3540
|
};
|
|
3044
|
-
let
|
|
3541
|
+
let me = class extends p {
|
|
3045
3542
|
constructor() {
|
|
3046
|
-
super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (
|
|
3047
|
-
this.open && !
|
|
3048
|
-
}, this.handleKeydown = (
|
|
3543
|
+
super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (r) => {
|
|
3544
|
+
this.open && !r.composedPath().includes(this) && (this.open = !1);
|
|
3545
|
+
}, this.handleKeydown = (r) => {
|
|
3049
3546
|
var e;
|
|
3050
|
-
if (
|
|
3547
|
+
if (r.key === "Escape" && this.open) {
|
|
3051
3548
|
this.open = !1, (e = this.renderRoot.querySelector(".trigger")) == null || e.focus();
|
|
3052
3549
|
return;
|
|
3053
3550
|
}
|
|
3054
|
-
if ((
|
|
3055
|
-
|
|
3551
|
+
if ((r.key === "ArrowDown" || r.key === "ArrowUp") && this.open) {
|
|
3552
|
+
r.preventDefault();
|
|
3056
3553
|
const o = [...this.querySelectorAll("a, button")];
|
|
3057
3554
|
if (o.length === 0) return;
|
|
3058
|
-
const
|
|
3555
|
+
const s = document.activeElement, t = o.indexOf(s), a = r.key === "ArrowDown" ? 1 : -1;
|
|
3059
3556
|
o[(Math.max(t, 0) + a + o.length) % o.length].focus();
|
|
3060
3557
|
}
|
|
3061
3558
|
};
|
|
@@ -3070,7 +3567,7 @@ let xe = class extends p {
|
|
|
3070
3567
|
this.open = !this.open;
|
|
3071
3568
|
}
|
|
3072
3569
|
render() {
|
|
3073
|
-
return
|
|
3570
|
+
return c`
|
|
3074
3571
|
<button
|
|
3075
3572
|
class="trigger"
|
|
3076
3573
|
aria-expanded=${this.open ? "true" : "false"}
|
|
@@ -3088,7 +3585,7 @@ let xe = class extends p {
|
|
|
3088
3585
|
`;
|
|
3089
3586
|
}
|
|
3090
3587
|
};
|
|
3091
|
-
|
|
3588
|
+
me.styles = d`
|
|
3092
3589
|
:host {
|
|
3093
3590
|
position: relative;
|
|
3094
3591
|
display: inline-block;
|
|
@@ -3187,27 +3684,27 @@ xe.styles = c`
|
|
|
3187
3684
|
border-top: 1px solid var(--vox-color-divider);
|
|
3188
3685
|
}
|
|
3189
3686
|
`;
|
|
3190
|
-
|
|
3687
|
+
jt([
|
|
3191
3688
|
n()
|
|
3192
|
-
],
|
|
3193
|
-
|
|
3689
|
+
], me.prototype, "label", 2);
|
|
3690
|
+
jt([
|
|
3194
3691
|
n({ type: Boolean, reflect: !0 })
|
|
3195
|
-
],
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
],
|
|
3199
|
-
var
|
|
3200
|
-
for (var t =
|
|
3201
|
-
(i =
|
|
3202
|
-
return
|
|
3692
|
+
], me.prototype, "open", 2);
|
|
3693
|
+
me = jt([
|
|
3694
|
+
h("vox-dropdown")
|
|
3695
|
+
], me);
|
|
3696
|
+
var Rr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, Te = (r, e, o, s) => {
|
|
3697
|
+
for (var t = s > 1 ? void 0 : s ? Ur(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3698
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3699
|
+
return s && t && Rr(e, o, t), t;
|
|
3203
3700
|
};
|
|
3204
|
-
let
|
|
3701
|
+
let We = class extends p {
|
|
3205
3702
|
constructor() {
|
|
3206
3703
|
super(...arguments), this.single = !1;
|
|
3207
3704
|
}
|
|
3208
|
-
handleToggle(
|
|
3705
|
+
handleToggle(r) {
|
|
3209
3706
|
if (!this.single) return;
|
|
3210
|
-
const e =
|
|
3707
|
+
const e = r.target;
|
|
3211
3708
|
e.open && this.querySelectorAll("vox-accordion-item").forEach(
|
|
3212
3709
|
(o) => {
|
|
3213
3710
|
o !== e && (o.open = !1);
|
|
@@ -3215,10 +3712,10 @@ let He = class extends p {
|
|
|
3215
3712
|
);
|
|
3216
3713
|
}
|
|
3217
3714
|
render() {
|
|
3218
|
-
return
|
|
3715
|
+
return c`<slot @vox-toggle=${this.handleToggle}></slot>`;
|
|
3219
3716
|
}
|
|
3220
3717
|
};
|
|
3221
|
-
|
|
3718
|
+
We.styles = d`
|
|
3222
3719
|
:host {
|
|
3223
3720
|
display: block;
|
|
3224
3721
|
border: 1px solid var(--vox-color-divider);
|
|
@@ -3230,13 +3727,13 @@ He.styles = c`
|
|
|
3230
3727
|
border-top: 1px solid var(--vox-color-divider);
|
|
3231
3728
|
}
|
|
3232
3729
|
`;
|
|
3233
|
-
|
|
3730
|
+
Te([
|
|
3234
3731
|
n({ type: Boolean })
|
|
3235
|
-
],
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
],
|
|
3239
|
-
let
|
|
3732
|
+
], We.prototype, "single", 2);
|
|
3733
|
+
We = Te([
|
|
3734
|
+
h("vox-accordion")
|
|
3735
|
+
], We);
|
|
3736
|
+
let $e = class extends p {
|
|
3240
3737
|
constructor() {
|
|
3241
3738
|
super(...arguments), this.heading = "", this.open = !1;
|
|
3242
3739
|
}
|
|
@@ -3246,7 +3743,7 @@ let fe = class extends p {
|
|
|
3246
3743
|
);
|
|
3247
3744
|
}
|
|
3248
3745
|
render() {
|
|
3249
|
-
return
|
|
3746
|
+
return c`
|
|
3250
3747
|
<h3 style="margin:0">
|
|
3251
3748
|
<button
|
|
3252
3749
|
class="trigger"
|
|
@@ -3265,7 +3762,7 @@ let fe = class extends p {
|
|
|
3265
3762
|
`;
|
|
3266
3763
|
}
|
|
3267
3764
|
};
|
|
3268
|
-
|
|
3765
|
+
$e.styles = d`
|
|
3269
3766
|
:host {
|
|
3270
3767
|
display: block;
|
|
3271
3768
|
font-family: var(--vox-font-family-base);
|
|
@@ -3327,21 +3824,27 @@ fe.styles = c`
|
|
|
3327
3824
|
margin-bottom: 0;
|
|
3328
3825
|
}
|
|
3329
3826
|
`;
|
|
3330
|
-
|
|
3827
|
+
Te([
|
|
3331
3828
|
n()
|
|
3332
|
-
],
|
|
3333
|
-
|
|
3829
|
+
], $e.prototype, "heading", 2);
|
|
3830
|
+
Te([
|
|
3334
3831
|
n({ type: Boolean, reflect: !0 })
|
|
3335
|
-
],
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
],
|
|
3339
|
-
var
|
|
3340
|
-
for (var t =
|
|
3341
|
-
(i =
|
|
3342
|
-
return
|
|
3832
|
+
], $e.prototype, "open", 2);
|
|
3833
|
+
$e = Te([
|
|
3834
|
+
h("vox-accordion-item")
|
|
3835
|
+
], $e);
|
|
3836
|
+
var Ir = Object.defineProperty, qr = Object.getOwnPropertyDescriptor, Be = (r, e, o, s) => {
|
|
3837
|
+
for (var t = s > 1 ? void 0 : s ? qr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
3838
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
3839
|
+
return s && t && Ir(e, o, t), t;
|
|
3343
3840
|
};
|
|
3344
|
-
|
|
3841
|
+
const Fr = {
|
|
3842
|
+
info: "info",
|
|
3843
|
+
success: "check-circle",
|
|
3844
|
+
warning: "warning",
|
|
3845
|
+
danger: "x-circle"
|
|
3846
|
+
};
|
|
3847
|
+
let B = class extends p {
|
|
3345
3848
|
constructor() {
|
|
3346
3849
|
super(...arguments), this.variant = "info", this.heading = "", this.dismissible = !1, this.open = !0;
|
|
3347
3850
|
}
|
|
@@ -3351,24 +3854,36 @@ let N = class extends p {
|
|
|
3351
3854
|
);
|
|
3352
3855
|
}
|
|
3353
3856
|
render() {
|
|
3354
|
-
return
|
|
3857
|
+
return c`
|
|
3355
3858
|
<div class="alert ${this.variant}" role="alert">
|
|
3859
|
+
<svg
|
|
3860
|
+
class="icon"
|
|
3861
|
+
viewBox="0 0 48 48"
|
|
3862
|
+
fill="none"
|
|
3863
|
+
stroke="currentColor"
|
|
3864
|
+
stroke-width="2"
|
|
3865
|
+
stroke-linecap="round"
|
|
3866
|
+
stroke-linejoin="round"
|
|
3867
|
+
aria-hidden="true"
|
|
3868
|
+
>
|
|
3869
|
+
${j[Fr[this.variant]]}
|
|
3870
|
+
</svg>
|
|
3356
3871
|
<div class="body">
|
|
3357
|
-
${this.heading ?
|
|
3872
|
+
${this.heading ? c`<p class="heading">${this.heading}</p>` : x}
|
|
3358
3873
|
<slot></slot>
|
|
3359
3874
|
</div>
|
|
3360
|
-
${this.dismissible ?
|
|
3875
|
+
${this.dismissible ? c`
|
|
3361
3876
|
<button class="close" aria-label="Dismiss" @click=${this.dismiss}>
|
|
3362
3877
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
|
|
3363
3878
|
<path d="M18 6 6 18M6 6l12 12" />
|
|
3364
3879
|
</svg>
|
|
3365
3880
|
</button>
|
|
3366
|
-
` :
|
|
3881
|
+
` : x}
|
|
3367
3882
|
</div>
|
|
3368
3883
|
`;
|
|
3369
3884
|
}
|
|
3370
3885
|
};
|
|
3371
|
-
|
|
3886
|
+
B.styles = d`
|
|
3372
3887
|
:host {
|
|
3373
3888
|
display: block;
|
|
3374
3889
|
font-family: var(--vox-font-family-base);
|
|
@@ -3394,6 +3909,13 @@ N.styles = c`
|
|
|
3394
3909
|
flex: 1 1 auto;
|
|
3395
3910
|
}
|
|
3396
3911
|
|
|
3912
|
+
.icon {
|
|
3913
|
+
flex: none;
|
|
3914
|
+
width: 20px;
|
|
3915
|
+
height: 20px;
|
|
3916
|
+
margin-top: 1px;
|
|
3917
|
+
}
|
|
3918
|
+
|
|
3397
3919
|
.heading {
|
|
3398
3920
|
margin: 0 0 var(--vox-space-1);
|
|
3399
3921
|
font-size: 14px;
|
|
@@ -3407,6 +3929,9 @@ N.styles = c`
|
|
|
3407
3929
|
.info .heading {
|
|
3408
3930
|
color: var(--vox-color-brand-1);
|
|
3409
3931
|
}
|
|
3932
|
+
.info .icon {
|
|
3933
|
+
color: var(--vox-color-brand-1);
|
|
3934
|
+
}
|
|
3410
3935
|
|
|
3411
3936
|
.success {
|
|
3412
3937
|
background-color: var(--vox-color-tip-soft);
|
|
@@ -3415,6 +3940,9 @@ N.styles = c`
|
|
|
3415
3940
|
.success .heading {
|
|
3416
3941
|
color: var(--vox-color-tip-1);
|
|
3417
3942
|
}
|
|
3943
|
+
.success .icon {
|
|
3944
|
+
color: var(--vox-color-tip-1);
|
|
3945
|
+
}
|
|
3418
3946
|
|
|
3419
3947
|
.warning {
|
|
3420
3948
|
background-color: var(--vox-color-warning-soft);
|
|
@@ -3423,6 +3951,9 @@ N.styles = c`
|
|
|
3423
3951
|
.warning .heading {
|
|
3424
3952
|
color: var(--vox-color-warning-1);
|
|
3425
3953
|
}
|
|
3954
|
+
.warning .icon {
|
|
3955
|
+
color: var(--vox-color-warning-1);
|
|
3956
|
+
}
|
|
3426
3957
|
|
|
3427
3958
|
.danger {
|
|
3428
3959
|
background-color: var(--vox-color-danger-soft);
|
|
@@ -3431,6 +3962,9 @@ N.styles = c`
|
|
|
3431
3962
|
.danger .heading {
|
|
3432
3963
|
color: var(--vox-color-danger-1);
|
|
3433
3964
|
}
|
|
3965
|
+
.danger .icon {
|
|
3966
|
+
color: var(--vox-color-danger-1);
|
|
3967
|
+
}
|
|
3434
3968
|
|
|
3435
3969
|
.close {
|
|
3436
3970
|
flex: none;
|
|
@@ -3468,35 +4002,35 @@ N.styles = c`
|
|
|
3468
4002
|
margin-bottom: 0;
|
|
3469
4003
|
}
|
|
3470
4004
|
`;
|
|
3471
|
-
|
|
4005
|
+
Be([
|
|
3472
4006
|
n()
|
|
3473
|
-
],
|
|
3474
|
-
|
|
4007
|
+
], B.prototype, "variant", 2);
|
|
4008
|
+
Be([
|
|
3475
4009
|
n()
|
|
3476
|
-
],
|
|
3477
|
-
|
|
4010
|
+
], B.prototype, "heading", 2);
|
|
4011
|
+
Be([
|
|
3478
4012
|
n({ type: Boolean })
|
|
3479
|
-
],
|
|
3480
|
-
|
|
4013
|
+
], B.prototype, "dismissible", 2);
|
|
4014
|
+
Be([
|
|
3481
4015
|
n({ type: Boolean, reflect: !0 })
|
|
3482
|
-
],
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
],
|
|
3486
|
-
var
|
|
3487
|
-
for (var t =
|
|
3488
|
-
(i =
|
|
3489
|
-
return
|
|
4016
|
+
], B.prototype, "open", 2);
|
|
4017
|
+
B = Be([
|
|
4018
|
+
h("vox-alert")
|
|
4019
|
+
], B);
|
|
4020
|
+
var Zr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, xo = (r, e, o, s) => {
|
|
4021
|
+
for (var t = s > 1 ? void 0 : s ? Kr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4022
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4023
|
+
return s && t && Zr(e, o, t), t;
|
|
3490
4024
|
};
|
|
3491
|
-
let
|
|
4025
|
+
let Xe = class extends p {
|
|
3492
4026
|
constructor() {
|
|
3493
4027
|
super(...arguments), this.variant = "brand";
|
|
3494
4028
|
}
|
|
3495
4029
|
render() {
|
|
3496
|
-
return
|
|
4030
|
+
return c`<span class="badge ${this.variant}"><slot></slot></span>`;
|
|
3497
4031
|
}
|
|
3498
4032
|
};
|
|
3499
|
-
|
|
4033
|
+
Xe.styles = d`
|
|
3500
4034
|
:host {
|
|
3501
4035
|
display: inline-block;
|
|
3502
4036
|
}
|
|
@@ -3538,32 +4072,32 @@ Ie.styles = c`
|
|
|
3538
4072
|
color: var(--vox-color-text-2);
|
|
3539
4073
|
}
|
|
3540
4074
|
`;
|
|
3541
|
-
|
|
4075
|
+
xo([
|
|
3542
4076
|
n()
|
|
3543
|
-
],
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
],
|
|
3547
|
-
var
|
|
3548
|
-
for (var t =
|
|
3549
|
-
(i =
|
|
3550
|
-
return
|
|
4077
|
+
], Xe.prototype, "variant", 2);
|
|
4078
|
+
Xe = xo([
|
|
4079
|
+
h("vox-badge")
|
|
4080
|
+
], Xe);
|
|
4081
|
+
var Gr = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, Dt = (r, e, o, s) => {
|
|
4082
|
+
for (var t = s > 1 ? void 0 : s ? Wr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4083
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4084
|
+
return s && t && Gr(e, o, t), t;
|
|
3551
4085
|
};
|
|
3552
|
-
let
|
|
4086
|
+
let we = class extends p {
|
|
3553
4087
|
constructor() {
|
|
3554
4088
|
super(...arguments), this.date = "";
|
|
3555
4089
|
}
|
|
3556
4090
|
render() {
|
|
3557
|
-
const
|
|
3558
|
-
return
|
|
4091
|
+
const r = /* @__PURE__ */ new Date(`${this.date}T00:00:00`), e = !Number.isNaN(r.getTime()), o = e ? r.toLocaleString(this.locale, { month: "short" }) : "—", s = e ? r.getDate() : "–";
|
|
4092
|
+
return c`
|
|
3559
4093
|
<time class="tile" datetime=${this.date}>
|
|
3560
4094
|
<span class="month">${o}</span>
|
|
3561
|
-
<span class="day">${
|
|
4095
|
+
<span class="day">${s}</span>
|
|
3562
4096
|
</time>
|
|
3563
4097
|
`;
|
|
3564
4098
|
}
|
|
3565
4099
|
};
|
|
3566
|
-
|
|
4100
|
+
we.styles = d`
|
|
3567
4101
|
:host {
|
|
3568
4102
|
display: inline-block;
|
|
3569
4103
|
font-family: var(--vox-font-family-base);
|
|
@@ -3599,45 +4133,67 @@ ge.styles = c`
|
|
|
3599
4133
|
color: var(--vox-color-text-1);
|
|
3600
4134
|
}
|
|
3601
4135
|
`;
|
|
3602
|
-
|
|
4136
|
+
Dt([
|
|
3603
4137
|
n()
|
|
3604
|
-
],
|
|
3605
|
-
|
|
4138
|
+
], we.prototype, "date", 2);
|
|
4139
|
+
Dt([
|
|
3606
4140
|
n()
|
|
3607
|
-
],
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
],
|
|
3611
|
-
var
|
|
3612
|
-
for (var t =
|
|
3613
|
-
(i =
|
|
3614
|
-
return
|
|
4141
|
+
], we.prototype, "locale", 2);
|
|
4142
|
+
we = Dt([
|
|
4143
|
+
h("vox-calendar-tile")
|
|
4144
|
+
], we);
|
|
4145
|
+
var Xr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, Ht = (r, e, o, s) => {
|
|
4146
|
+
for (var t = s > 1 ? void 0 : s ? Yr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4147
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4148
|
+
return s && t && Xr(e, o, t), t;
|
|
3615
4149
|
};
|
|
3616
|
-
const
|
|
4150
|
+
const Jr = {
|
|
3617
4151
|
info: "Info",
|
|
3618
4152
|
tip: "Tip",
|
|
3619
4153
|
warning: "Warning",
|
|
3620
4154
|
danger: "Danger"
|
|
4155
|
+
}, Qr = {
|
|
4156
|
+
info: "info",
|
|
4157
|
+
tip: "check-circle",
|
|
4158
|
+
warning: "warning",
|
|
4159
|
+
danger: "x-circle"
|
|
3621
4160
|
};
|
|
3622
|
-
let
|
|
4161
|
+
let _e = class extends p {
|
|
3623
4162
|
constructor() {
|
|
3624
4163
|
super(...arguments), this.variant = "info";
|
|
3625
4164
|
}
|
|
3626
4165
|
render() {
|
|
3627
|
-
return
|
|
4166
|
+
return c`
|
|
3628
4167
|
<div class="callout ${this.variant}" role="note">
|
|
3629
|
-
<
|
|
3630
|
-
|
|
4168
|
+
<svg
|
|
4169
|
+
class="icon"
|
|
4170
|
+
viewBox="0 0 48 48"
|
|
4171
|
+
fill="none"
|
|
4172
|
+
stroke="currentColor"
|
|
4173
|
+
stroke-width="2"
|
|
4174
|
+
stroke-linecap="round"
|
|
4175
|
+
stroke-linejoin="round"
|
|
4176
|
+
aria-hidden="true"
|
|
4177
|
+
>
|
|
4178
|
+
${j[Qr[this.variant]]}
|
|
4179
|
+
</svg>
|
|
4180
|
+
<div class="content">
|
|
4181
|
+
<p class="heading">${this.heading ?? Jr[this.variant]}</p>
|
|
4182
|
+
<slot></slot>
|
|
4183
|
+
</div>
|
|
3631
4184
|
</div>
|
|
3632
4185
|
`;
|
|
3633
4186
|
}
|
|
3634
4187
|
};
|
|
3635
|
-
|
|
4188
|
+
_e.styles = d`
|
|
3636
4189
|
:host {
|
|
3637
4190
|
display: block;
|
|
3638
4191
|
}
|
|
3639
4192
|
|
|
3640
4193
|
.callout {
|
|
4194
|
+
display: flex;
|
|
4195
|
+
gap: var(--vox-space-3);
|
|
4196
|
+
align-items: flex-start;
|
|
3641
4197
|
border-radius: var(--vox-radius-md);
|
|
3642
4198
|
padding: var(--vox-space-4);
|
|
3643
4199
|
font-family: var(--vox-font-family-base);
|
|
@@ -3646,6 +4202,18 @@ be.styles = c`
|
|
|
3646
4202
|
color: var(--vox-color-text-2);
|
|
3647
4203
|
}
|
|
3648
4204
|
|
|
4205
|
+
.icon {
|
|
4206
|
+
flex: none;
|
|
4207
|
+
width: 18px;
|
|
4208
|
+
height: 18px;
|
|
4209
|
+
margin-top: 2px;
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
.content {
|
|
4213
|
+
flex: 1 1 auto;
|
|
4214
|
+
min-width: 0;
|
|
4215
|
+
}
|
|
4216
|
+
|
|
3649
4217
|
.heading {
|
|
3650
4218
|
margin: 0 0 var(--vox-space-2);
|
|
3651
4219
|
font-size: 14px;
|
|
@@ -3658,6 +4226,9 @@ be.styles = c`
|
|
|
3658
4226
|
.info .heading {
|
|
3659
4227
|
color: var(--vox-color-text-1);
|
|
3660
4228
|
}
|
|
4229
|
+
.info .icon {
|
|
4230
|
+
color: var(--vox-color-text-1);
|
|
4231
|
+
}
|
|
3661
4232
|
|
|
3662
4233
|
.tip {
|
|
3663
4234
|
background-color: var(--vox-color-tip-soft);
|
|
@@ -3665,6 +4236,9 @@ be.styles = c`
|
|
|
3665
4236
|
.tip .heading {
|
|
3666
4237
|
color: var(--vox-color-tip-1);
|
|
3667
4238
|
}
|
|
4239
|
+
.tip .icon {
|
|
4240
|
+
color: var(--vox-color-tip-1);
|
|
4241
|
+
}
|
|
3668
4242
|
|
|
3669
4243
|
.warning {
|
|
3670
4244
|
background-color: var(--vox-color-warning-soft);
|
|
@@ -3672,6 +4246,9 @@ be.styles = c`
|
|
|
3672
4246
|
.warning .heading {
|
|
3673
4247
|
color: var(--vox-color-warning-1);
|
|
3674
4248
|
}
|
|
4249
|
+
.warning .icon {
|
|
4250
|
+
color: var(--vox-color-warning-1);
|
|
4251
|
+
}
|
|
3675
4252
|
|
|
3676
4253
|
.danger {
|
|
3677
4254
|
background-color: var(--vox-color-danger-soft);
|
|
@@ -3679,6 +4256,9 @@ be.styles = c`
|
|
|
3679
4256
|
.danger .heading {
|
|
3680
4257
|
color: var(--vox-color-danger-1);
|
|
3681
4258
|
}
|
|
4259
|
+
.danger .icon {
|
|
4260
|
+
color: var(--vox-color-danger-1);
|
|
4261
|
+
}
|
|
3682
4262
|
|
|
3683
4263
|
::slotted(p:first-child) {
|
|
3684
4264
|
margin-top: 0;
|
|
@@ -3688,38 +4268,38 @@ be.styles = c`
|
|
|
3688
4268
|
margin-bottom: 0;
|
|
3689
4269
|
}
|
|
3690
4270
|
`;
|
|
3691
|
-
|
|
4271
|
+
Ht([
|
|
3692
4272
|
n()
|
|
3693
|
-
],
|
|
3694
|
-
|
|
4273
|
+
], _e.prototype, "variant", 2);
|
|
4274
|
+
Ht([
|
|
3695
4275
|
n()
|
|
3696
|
-
],
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
],
|
|
3700
|
-
var
|
|
3701
|
-
for (var t =
|
|
3702
|
-
(i =
|
|
3703
|
-
return
|
|
4276
|
+
], _e.prototype, "heading", 2);
|
|
4277
|
+
_e = Ht([
|
|
4278
|
+
h("vox-callout")
|
|
4279
|
+
], _e);
|
|
4280
|
+
var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, lt = (r, e, o, s) => {
|
|
4281
|
+
for (var t = s > 1 ? void 0 : s ? ts(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4282
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4283
|
+
return s && t && es(e, o, t), t;
|
|
3704
4284
|
};
|
|
3705
|
-
let
|
|
4285
|
+
let J = class extends p {
|
|
3706
4286
|
constructor() {
|
|
3707
4287
|
super(...arguments), this.heading = "", this.hasIcon = !1, this.hasBadge = !1, this.hasFooter = !1;
|
|
3708
4288
|
}
|
|
3709
|
-
handleIconSlotChange(
|
|
3710
|
-
const e =
|
|
4289
|
+
handleIconSlotChange(r) {
|
|
4290
|
+
const e = r.target;
|
|
3711
4291
|
this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3712
4292
|
}
|
|
3713
|
-
handleBadgeSlotChange(
|
|
3714
|
-
const e =
|
|
4293
|
+
handleBadgeSlotChange(r) {
|
|
4294
|
+
const e = r.target;
|
|
3715
4295
|
this.hasBadge = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3716
4296
|
}
|
|
3717
|
-
handleFooterSlotChange(
|
|
3718
|
-
const e =
|
|
4297
|
+
handleFooterSlotChange(r) {
|
|
4298
|
+
const e = r.target;
|
|
3719
4299
|
this.hasFooter = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3720
4300
|
}
|
|
3721
4301
|
render() {
|
|
3722
|
-
const
|
|
4302
|
+
const r = c`
|
|
3723
4303
|
<div class="badge ${this.hasBadge ? "has-badge" : ""}">
|
|
3724
4304
|
<slot name="badge" @slotchange=${this.handleBadgeSlotChange}></slot>
|
|
3725
4305
|
</div>
|
|
@@ -3732,10 +4312,10 @@ let W = class extends p {
|
|
|
3732
4312
|
<slot name="footer" @slotchange=${this.handleFooterSlotChange}></slot>
|
|
3733
4313
|
</div>
|
|
3734
4314
|
`;
|
|
3735
|
-
return this.href !== void 0 ?
|
|
4315
|
+
return this.href !== void 0 ? c`<a class="card" href=${this.href} target=${this.target ?? x}>${r}</a>` : c`<div class="card">${r}</div>`;
|
|
3736
4316
|
}
|
|
3737
4317
|
};
|
|
3738
|
-
|
|
4318
|
+
J.styles = d`
|
|
3739
4319
|
:host {
|
|
3740
4320
|
display: block;
|
|
3741
4321
|
}
|
|
@@ -3751,6 +4331,11 @@ W.styles = c`
|
|
|
3751
4331
|
border-radius: var(--vox-radius-lg);
|
|
3752
4332
|
padding: var(--vox-space-6);
|
|
3753
4333
|
font-family: var(--vox-font-family-base);
|
|
4334
|
+
/* Slotted content (e.g. an icon using stroke="currentColor")
|
|
4335
|
+
inherits from this element's position in the flat tree — when
|
|
4336
|
+
rendered as an <a>, that means the browser's default link color
|
|
4337
|
+
without this, since nothing else in .card sets one. */
|
|
4338
|
+
color: var(--vox-color-text-1);
|
|
3754
4339
|
text-decoration: none;
|
|
3755
4340
|
transition: border-color var(--vox-transition-base);
|
|
3756
4341
|
}
|
|
@@ -3815,39 +4400,39 @@ W.styles = c`
|
|
|
3815
4400
|
display: none;
|
|
3816
4401
|
}
|
|
3817
4402
|
`;
|
|
3818
|
-
|
|
4403
|
+
lt([
|
|
3819
4404
|
n()
|
|
3820
|
-
],
|
|
3821
|
-
|
|
4405
|
+
], J.prototype, "heading", 2);
|
|
4406
|
+
lt([
|
|
3822
4407
|
n()
|
|
3823
|
-
],
|
|
3824
|
-
|
|
4408
|
+
], J.prototype, "href", 2);
|
|
4409
|
+
lt([
|
|
3825
4410
|
n()
|
|
3826
|
-
],
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
],
|
|
3830
|
-
var
|
|
3831
|
-
for (var t =
|
|
3832
|
-
(i =
|
|
3833
|
-
return
|
|
4411
|
+
], J.prototype, "target", 2);
|
|
4412
|
+
J = lt([
|
|
4413
|
+
h("vox-card")
|
|
4414
|
+
], J);
|
|
4415
|
+
var os = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, fo = (r, e, o, s) => {
|
|
4416
|
+
for (var t = s > 1 ? void 0 : s ? rs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4417
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4418
|
+
return s && t && os(e, o, t), t;
|
|
3834
4419
|
};
|
|
3835
|
-
let
|
|
4420
|
+
let Ye = class extends p {
|
|
3836
4421
|
constructor() {
|
|
3837
4422
|
super(...arguments), this.heading = "", this.hasBody = !1, this.hasActions = !1;
|
|
3838
4423
|
}
|
|
3839
|
-
handleBodySlotChange(
|
|
3840
|
-
const e =
|
|
4424
|
+
handleBodySlotChange(r) {
|
|
4425
|
+
const e = r.target;
|
|
3841
4426
|
this.hasBody = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3842
4427
|
}
|
|
3843
|
-
handleActionsSlotChange(
|
|
3844
|
-
const e =
|
|
4428
|
+
handleActionsSlotChange(r) {
|
|
4429
|
+
const e = r.target;
|
|
3845
4430
|
this.hasActions = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3846
4431
|
}
|
|
3847
4432
|
render() {
|
|
3848
|
-
return
|
|
4433
|
+
return c`
|
|
3849
4434
|
<div class="band">
|
|
3850
|
-
${this.heading ?
|
|
4435
|
+
${this.heading ? c`<h2 class="heading">${this.heading}</h2>` : x}
|
|
3851
4436
|
<div class="body ${this.hasBody ? "has-content" : ""}">
|
|
3852
4437
|
<slot @slotchange=${this.handleBodySlotChange}></slot>
|
|
3853
4438
|
</div>
|
|
@@ -3858,7 +4443,7 @@ let Fe = class extends p {
|
|
|
3858
4443
|
`;
|
|
3859
4444
|
}
|
|
3860
4445
|
};
|
|
3861
|
-
|
|
4446
|
+
Ye.styles = d`
|
|
3862
4447
|
:host {
|
|
3863
4448
|
display: block;
|
|
3864
4449
|
font-family: var(--vox-font-family-base);
|
|
@@ -3913,23 +4498,23 @@ Fe.styles = c`
|
|
|
3913
4498
|
display: none;
|
|
3914
4499
|
}
|
|
3915
4500
|
`;
|
|
3916
|
-
|
|
4501
|
+
fo([
|
|
3917
4502
|
n()
|
|
3918
|
-
],
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
],
|
|
3922
|
-
var
|
|
3923
|
-
for (var t =
|
|
3924
|
-
(i =
|
|
3925
|
-
return
|
|
4503
|
+
], Ye.prototype, "heading", 2);
|
|
4504
|
+
Ye = fo([
|
|
4505
|
+
h("vox-cta-band")
|
|
4506
|
+
], Ye);
|
|
4507
|
+
var ss = Object.defineProperty, as = Object.getOwnPropertyDescriptor, go = (r, e, o, s) => {
|
|
4508
|
+
for (var t = s > 1 ? void 0 : s ? as(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4509
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4510
|
+
return s && t && ss(e, o, t), t;
|
|
3926
4511
|
};
|
|
3927
|
-
let
|
|
4512
|
+
let Je = class extends p {
|
|
3928
4513
|
constructor() {
|
|
3929
4514
|
super(...arguments), this.heading = "";
|
|
3930
4515
|
}
|
|
3931
4516
|
render() {
|
|
3932
|
-
return
|
|
4517
|
+
return c`
|
|
3933
4518
|
<div class="empty">
|
|
3934
4519
|
<div class="icon"><slot name="icon"></slot></div>
|
|
3935
4520
|
<h3 class="heading">${this.heading}</h3>
|
|
@@ -3939,7 +4524,7 @@ let Ke = class extends p {
|
|
|
3939
4524
|
`;
|
|
3940
4525
|
}
|
|
3941
4526
|
};
|
|
3942
|
-
|
|
4527
|
+
Je.styles = d`
|
|
3943
4528
|
:host {
|
|
3944
4529
|
display: block;
|
|
3945
4530
|
font-family: var(--vox-font-family-base);
|
|
@@ -3983,20 +4568,20 @@ Ke.styles = c`
|
|
|
3983
4568
|
margin-top: var(--vox-space-4);
|
|
3984
4569
|
}
|
|
3985
4570
|
`;
|
|
3986
|
-
|
|
4571
|
+
go([
|
|
3987
4572
|
n()
|
|
3988
|
-
],
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
],
|
|
3992
|
-
var
|
|
3993
|
-
for (var t =
|
|
3994
|
-
(i =
|
|
3995
|
-
return
|
|
4573
|
+
], Je.prototype, "heading", 2);
|
|
4574
|
+
Je = go([
|
|
4575
|
+
h("vox-empty-state")
|
|
4576
|
+
], Je);
|
|
4577
|
+
var is = Object.defineProperty, ns = Object.getOwnPropertyDescriptor, zt = (r, e, o, s) => {
|
|
4578
|
+
for (var t = s > 1 ? void 0 : s ? ns(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4579
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4580
|
+
return s && t && is(e, o, t), t;
|
|
3996
4581
|
};
|
|
3997
|
-
let
|
|
4582
|
+
let yt = class extends p {
|
|
3998
4583
|
render() {
|
|
3999
|
-
return
|
|
4584
|
+
return c`
|
|
4000
4585
|
<footer>
|
|
4001
4586
|
<div class="inner">
|
|
4002
4587
|
<div class="columns"><slot></slot></div>
|
|
@@ -4006,7 +4591,7 @@ let dt = class extends p {
|
|
|
4006
4591
|
`;
|
|
4007
4592
|
}
|
|
4008
4593
|
};
|
|
4009
|
-
|
|
4594
|
+
yt.styles = d`
|
|
4010
4595
|
:host {
|
|
4011
4596
|
display: block;
|
|
4012
4597
|
font-family: var(--vox-font-family-base);
|
|
@@ -4034,21 +4619,21 @@ dt.styles = c`
|
|
|
4034
4619
|
color: var(--vox-color-text-3);
|
|
4035
4620
|
}
|
|
4036
4621
|
`;
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
],
|
|
4040
|
-
let
|
|
4622
|
+
yt = zt([
|
|
4623
|
+
h("vox-footer")
|
|
4624
|
+
], yt);
|
|
4625
|
+
let Qe = class extends p {
|
|
4041
4626
|
constructor() {
|
|
4042
4627
|
super(...arguments), this.heading = "";
|
|
4043
4628
|
}
|
|
4044
4629
|
render() {
|
|
4045
|
-
return
|
|
4630
|
+
return c`
|
|
4046
4631
|
<h3 class="heading">${this.heading}</h3>
|
|
4047
4632
|
<div class="links"><slot></slot></div>
|
|
4048
4633
|
`;
|
|
4049
4634
|
}
|
|
4050
4635
|
};
|
|
4051
|
-
|
|
4636
|
+
Qe.styles = d`
|
|
4052
4637
|
:host {
|
|
4053
4638
|
display: block;
|
|
4054
4639
|
font-family: var(--vox-font-family-base);
|
|
@@ -4080,18 +4665,18 @@ We.styles = c`
|
|
|
4080
4665
|
text-decoration: underline;
|
|
4081
4666
|
}
|
|
4082
4667
|
`;
|
|
4083
|
-
|
|
4668
|
+
zt([
|
|
4084
4669
|
n()
|
|
4085
|
-
],
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
],
|
|
4089
|
-
var
|
|
4090
|
-
for (var t =
|
|
4091
|
-
(i =
|
|
4092
|
-
return
|
|
4670
|
+
], Qe.prototype, "heading", 2);
|
|
4671
|
+
Qe = zt([
|
|
4672
|
+
h("vox-footer-column")
|
|
4673
|
+
], Qe);
|
|
4674
|
+
var ls = Object.defineProperty, cs = Object.getOwnPropertyDescriptor, ct = (r, e, o, s) => {
|
|
4675
|
+
for (var t = s > 1 ? void 0 : s ? cs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4676
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4677
|
+
return s && t && ls(e, o, t), t;
|
|
4093
4678
|
};
|
|
4094
|
-
let
|
|
4679
|
+
let Q = class extends p {
|
|
4095
4680
|
constructor() {
|
|
4096
4681
|
super(...arguments), this.cols = 0, this.min = "240px", this.gap = "md";
|
|
4097
4682
|
}
|
|
@@ -4099,10 +4684,10 @@ let G = class extends p {
|
|
|
4099
4684
|
this.style.gridTemplateColumns = this.cols > 0 ? `repeat(${this.cols}, minmax(0, 1fr))` : `repeat(auto-fit, minmax(min(${this.min}, 100%), 1fr))`;
|
|
4100
4685
|
}
|
|
4101
4686
|
render() {
|
|
4102
|
-
return
|
|
4687
|
+
return c`<slot></slot>`;
|
|
4103
4688
|
}
|
|
4104
4689
|
};
|
|
4105
|
-
|
|
4690
|
+
Q.styles = d`
|
|
4106
4691
|
:host {
|
|
4107
4692
|
display: grid;
|
|
4108
4693
|
}
|
|
@@ -4119,35 +4704,35 @@ G.styles = c`
|
|
|
4119
4704
|
gap: var(--vox-space-6);
|
|
4120
4705
|
}
|
|
4121
4706
|
`;
|
|
4122
|
-
|
|
4707
|
+
ct([
|
|
4123
4708
|
n({ type: Number })
|
|
4124
|
-
],
|
|
4125
|
-
|
|
4709
|
+
], Q.prototype, "cols", 2);
|
|
4710
|
+
ct([
|
|
4126
4711
|
n()
|
|
4127
|
-
],
|
|
4128
|
-
|
|
4712
|
+
], Q.prototype, "min", 2);
|
|
4713
|
+
ct([
|
|
4129
4714
|
n({ reflect: !0 })
|
|
4130
|
-
],
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
],
|
|
4134
|
-
var
|
|
4135
|
-
for (var t =
|
|
4136
|
-
(i =
|
|
4137
|
-
return
|
|
4715
|
+
], Q.prototype, "gap", 2);
|
|
4716
|
+
Q = ct([
|
|
4717
|
+
h("vox-grid")
|
|
4718
|
+
], Q);
|
|
4719
|
+
var ds = Object.defineProperty, hs = Object.getOwnPropertyDescriptor, Tt = (r, e, o, s) => {
|
|
4720
|
+
for (var t = s > 1 ? void 0 : s ? hs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4721
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4722
|
+
return s && t && ds(e, o, t), t;
|
|
4138
4723
|
};
|
|
4139
|
-
let
|
|
4724
|
+
let Ce = class extends p {
|
|
4140
4725
|
constructor() {
|
|
4141
4726
|
super(...arguments), this.eyebrow = "", this.heading = "", this.hasActions = !1;
|
|
4142
4727
|
}
|
|
4143
|
-
handleActionsSlotChange(
|
|
4144
|
-
const e =
|
|
4728
|
+
handleActionsSlotChange(r) {
|
|
4729
|
+
const e = r.target;
|
|
4145
4730
|
this.hasActions = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4146
4731
|
}
|
|
4147
4732
|
render() {
|
|
4148
|
-
return
|
|
4733
|
+
return c`
|
|
4149
4734
|
<header class="hero">
|
|
4150
|
-
${this.eyebrow ?
|
|
4735
|
+
${this.eyebrow ? c`<p class="eyebrow">${this.eyebrow}</p>` : x}
|
|
4151
4736
|
<h1 class="heading">${this.heading}</h1>
|
|
4152
4737
|
<div class="body"><slot></slot></div>
|
|
4153
4738
|
<div class="actions ${this.hasActions ? "has-content" : ""}">
|
|
@@ -4157,7 +4742,7 @@ let me = class extends p {
|
|
|
4157
4742
|
`;
|
|
4158
4743
|
}
|
|
4159
4744
|
};
|
|
4160
|
-
|
|
4745
|
+
Ce.styles = d`
|
|
4161
4746
|
:host {
|
|
4162
4747
|
display: block;
|
|
4163
4748
|
font-family: var(--vox-font-family-base);
|
|
@@ -4214,43 +4799,50 @@ me.styles = c`
|
|
|
4214
4799
|
display: none;
|
|
4215
4800
|
}
|
|
4216
4801
|
`;
|
|
4217
|
-
|
|
4802
|
+
Tt([
|
|
4218
4803
|
n()
|
|
4219
|
-
],
|
|
4220
|
-
|
|
4804
|
+
], Ce.prototype, "eyebrow", 2);
|
|
4805
|
+
Tt([
|
|
4221
4806
|
n()
|
|
4222
|
-
],
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
],
|
|
4226
|
-
var
|
|
4227
|
-
for (var t =
|
|
4228
|
-
(i =
|
|
4229
|
-
return
|
|
4807
|
+
], Ce.prototype, "heading", 2);
|
|
4808
|
+
Ce = Tt([
|
|
4809
|
+
h("vox-hero")
|
|
4810
|
+
], Ce);
|
|
4811
|
+
var ps = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, dt = (r, e, o, s) => {
|
|
4812
|
+
for (var t = s > 1 ? void 0 : s ? vs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4813
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4814
|
+
return s && t && ps(e, o, t), t;
|
|
4230
4815
|
};
|
|
4231
|
-
let
|
|
4816
|
+
let mt = class extends p {
|
|
4232
4817
|
render() {
|
|
4233
|
-
return
|
|
4818
|
+
return c`<slot></slot>`;
|
|
4234
4819
|
}
|
|
4235
4820
|
};
|
|
4236
|
-
|
|
4821
|
+
mt.styles = d`
|
|
4237
4822
|
:host {
|
|
4238
4823
|
display: grid;
|
|
4239
4824
|
grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
|
|
4240
4825
|
gap: var(--vox-space-4);
|
|
4241
4826
|
}
|
|
4242
4827
|
`;
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
],
|
|
4246
|
-
let
|
|
4828
|
+
mt = dt([
|
|
4829
|
+
h("vox-link-hub")
|
|
4830
|
+
], mt);
|
|
4831
|
+
let Oe = class extends p {
|
|
4247
4832
|
constructor() {
|
|
4248
|
-
super(...arguments), this.href = "#", this.heading = "";
|
|
4833
|
+
super(...arguments), this.href = "#", this.heading = "", this.hasIcon = !1;
|
|
4834
|
+
}
|
|
4835
|
+
handleIconSlotChange(r) {
|
|
4836
|
+
const e = r.target;
|
|
4837
|
+
this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4249
4838
|
}
|
|
4250
4839
|
render() {
|
|
4251
|
-
return
|
|
4840
|
+
return c`
|
|
4252
4841
|
<a href=${this.href}>
|
|
4253
4842
|
<span class="heading">
|
|
4843
|
+
<span class="icon ${this.hasIcon ? "has-icon" : ""}">
|
|
4844
|
+
<slot name="icon" @slotchange=${this.handleIconSlotChange}></slot>
|
|
4845
|
+
</span>
|
|
4254
4846
|
${this.heading}
|
|
4255
4847
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
4256
4848
|
<path d="M5 12h14" />
|
|
@@ -4262,12 +4854,21 @@ let ye = class extends p {
|
|
|
4262
4854
|
`;
|
|
4263
4855
|
}
|
|
4264
4856
|
};
|
|
4265
|
-
|
|
4857
|
+
Oe.styles = d`
|
|
4266
4858
|
:host {
|
|
4267
4859
|
display: block;
|
|
4268
4860
|
font-family: var(--vox-font-family-base);
|
|
4269
4861
|
}
|
|
4270
4862
|
|
|
4863
|
+
.icon {
|
|
4864
|
+
display: flex;
|
|
4865
|
+
flex: none;
|
|
4866
|
+
}
|
|
4867
|
+
|
|
4868
|
+
.icon:not(.has-icon) {
|
|
4869
|
+
display: none;
|
|
4870
|
+
}
|
|
4871
|
+
|
|
4271
4872
|
a {
|
|
4272
4873
|
display: block;
|
|
4273
4874
|
height: 100%;
|
|
@@ -4314,26 +4915,26 @@ ye.styles = c`
|
|
|
4314
4915
|
color: var(--vox-color-text-2);
|
|
4315
4916
|
}
|
|
4316
4917
|
`;
|
|
4317
|
-
|
|
4918
|
+
dt([
|
|
4318
4919
|
n()
|
|
4319
|
-
],
|
|
4320
|
-
|
|
4920
|
+
], Oe.prototype, "href", 2);
|
|
4921
|
+
dt([
|
|
4321
4922
|
n()
|
|
4322
|
-
],
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
],
|
|
4326
|
-
var
|
|
4327
|
-
for (var t =
|
|
4328
|
-
(i =
|
|
4329
|
-
return
|
|
4923
|
+
], Oe.prototype, "heading", 2);
|
|
4924
|
+
Oe = dt([
|
|
4925
|
+
h("vox-link-hub-item")
|
|
4926
|
+
], Oe);
|
|
4927
|
+
var us = Object.defineProperty, xs = Object.getOwnPropertyDescriptor, Bt = (r, e, o, s) => {
|
|
4928
|
+
for (var t = s > 1 ? void 0 : s ? xs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
4929
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
4930
|
+
return s && t && us(e, o, t), t;
|
|
4330
4931
|
};
|
|
4331
|
-
let
|
|
4932
|
+
let Me = class extends p {
|
|
4332
4933
|
constructor() {
|
|
4333
4934
|
super(...arguments), this.size = "md", this.label = "Loading";
|
|
4334
4935
|
}
|
|
4335
4936
|
render() {
|
|
4336
|
-
return
|
|
4937
|
+
return c`
|
|
4337
4938
|
<div role="status">
|
|
4338
4939
|
<div class="spinner"></div>
|
|
4339
4940
|
<span class="visually-hidden">${this.label}</span>
|
|
@@ -4341,7 +4942,7 @@ let $e = class extends p {
|
|
|
4341
4942
|
`;
|
|
4342
4943
|
}
|
|
4343
4944
|
};
|
|
4344
|
-
|
|
4945
|
+
Me.styles = d`
|
|
4345
4946
|
:host {
|
|
4346
4947
|
display: inline-block;
|
|
4347
4948
|
}
|
|
@@ -4394,33 +4995,33 @@ $e.styles = c`
|
|
|
4394
4995
|
white-space: nowrap;
|
|
4395
4996
|
}
|
|
4396
4997
|
`;
|
|
4397
|
-
|
|
4998
|
+
Bt([
|
|
4398
4999
|
n({ reflect: !0 })
|
|
4399
|
-
],
|
|
4400
|
-
|
|
5000
|
+
], Me.prototype, "size", 2);
|
|
5001
|
+
Bt([
|
|
4401
5002
|
n()
|
|
4402
|
-
],
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
],
|
|
4406
|
-
var
|
|
4407
|
-
for (var t =
|
|
4408
|
-
(i =
|
|
4409
|
-
return
|
|
5003
|
+
], Me.prototype, "label", 2);
|
|
5004
|
+
Me = Bt([
|
|
5005
|
+
h("vox-loader")
|
|
5006
|
+
], Me);
|
|
5007
|
+
var fs = Object.defineProperty, gs = Object.getOwnPropertyDescriptor, bo = (r, e, o, s) => {
|
|
5008
|
+
for (var t = s > 1 ? void 0 : s ? gs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5009
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5010
|
+
return s && t && fs(e, o, t), t;
|
|
4410
5011
|
};
|
|
4411
|
-
let
|
|
5012
|
+
let et = class extends p {
|
|
4412
5013
|
constructor() {
|
|
4413
5014
|
super(...arguments), this.label = "Pagination";
|
|
4414
5015
|
}
|
|
4415
5016
|
render() {
|
|
4416
|
-
return
|
|
5017
|
+
return c`
|
|
4417
5018
|
<nav aria-label=${this.label}>
|
|
4418
5019
|
<slot></slot>
|
|
4419
5020
|
</nav>
|
|
4420
5021
|
`;
|
|
4421
5022
|
}
|
|
4422
5023
|
};
|
|
4423
|
-
|
|
5024
|
+
et.styles = d`
|
|
4424
5025
|
:host {
|
|
4425
5026
|
display: block;
|
|
4426
5027
|
font-family: var(--vox-font-family-base);
|
|
@@ -4460,36 +5061,36 @@ Ge.styles = c`
|
|
|
4460
5061
|
font-weight: 600;
|
|
4461
5062
|
}
|
|
4462
5063
|
`;
|
|
4463
|
-
|
|
5064
|
+
bo([
|
|
4464
5065
|
n()
|
|
4465
|
-
],
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
],
|
|
4469
|
-
var
|
|
4470
|
-
for (var t =
|
|
4471
|
-
(i =
|
|
4472
|
-
return
|
|
5066
|
+
], et.prototype, "label", 2);
|
|
5067
|
+
et = bo([
|
|
5068
|
+
h("vox-pagination")
|
|
5069
|
+
], et);
|
|
5070
|
+
var bs = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, Nt = (r, e, o, s) => {
|
|
5071
|
+
for (var t = s > 1 ? void 0 : s ? ys(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5072
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5073
|
+
return s && t && bs(e, o, t), t;
|
|
4473
5074
|
};
|
|
4474
|
-
let
|
|
5075
|
+
let Pe = class extends p {
|
|
4475
5076
|
constructor() {
|
|
4476
5077
|
super(...arguments), this.attribution = "", this.detail = "";
|
|
4477
5078
|
}
|
|
4478
5079
|
render() {
|
|
4479
|
-
return
|
|
5080
|
+
return c`
|
|
4480
5081
|
<blockquote>
|
|
4481
5082
|
<div class="text"><slot></slot></div>
|
|
4482
|
-
${this.attribution ?
|
|
5083
|
+
${this.attribution ? c`
|
|
4483
5084
|
<footer>
|
|
4484
5085
|
<span class="attribution">${this.attribution}</span>
|
|
4485
|
-
${this.detail ?
|
|
5086
|
+
${this.detail ? c`<span class="detail"> — ${this.detail}</span>` : x}
|
|
4486
5087
|
</footer>
|
|
4487
|
-
` :
|
|
5088
|
+
` : x}
|
|
4488
5089
|
</blockquote>
|
|
4489
5090
|
`;
|
|
4490
5091
|
}
|
|
4491
5092
|
};
|
|
4492
|
-
|
|
5093
|
+
Pe.styles = d`
|
|
4493
5094
|
:host {
|
|
4494
5095
|
display: block;
|
|
4495
5096
|
font-family: var(--vox-font-family-base);
|
|
@@ -4531,30 +5132,30 @@ _e.styles = c`
|
|
|
4531
5132
|
color: var(--vox-color-text-2);
|
|
4532
5133
|
}
|
|
4533
5134
|
`;
|
|
4534
|
-
|
|
5135
|
+
Nt([
|
|
4535
5136
|
n()
|
|
4536
|
-
],
|
|
4537
|
-
|
|
5137
|
+
], Pe.prototype, "attribution", 2);
|
|
5138
|
+
Nt([
|
|
4538
5139
|
n()
|
|
4539
|
-
],
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
],
|
|
4543
|
-
var
|
|
4544
|
-
for (var t =
|
|
4545
|
-
(i =
|
|
4546
|
-
return
|
|
5140
|
+
], Pe.prototype, "detail", 2);
|
|
5141
|
+
Pe = Nt([
|
|
5142
|
+
h("vox-quote")
|
|
5143
|
+
], Pe);
|
|
5144
|
+
var ms = Object.defineProperty, $s = Object.getOwnPropertyDescriptor, I = (r, e, o, s) => {
|
|
5145
|
+
for (var t = s > 1 ? void 0 : s ? $s(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5146
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5147
|
+
return s && t && ms(e, o, t), t;
|
|
4547
5148
|
};
|
|
4548
|
-
let
|
|
5149
|
+
let tt = class extends p {
|
|
4549
5150
|
constructor() {
|
|
4550
5151
|
super(...arguments), this.heading = "", this.hasDescription = !1;
|
|
4551
5152
|
}
|
|
4552
|
-
handleDescriptionSlotChange(
|
|
4553
|
-
const e =
|
|
5153
|
+
handleDescriptionSlotChange(r) {
|
|
5154
|
+
const e = r.target;
|
|
4554
5155
|
this.hasDescription = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4555
5156
|
}
|
|
4556
5157
|
render() {
|
|
4557
|
-
return
|
|
5158
|
+
return c`
|
|
4558
5159
|
<h2 class="heading">${this.heading}</h2>
|
|
4559
5160
|
<div class="description ${this.hasDescription ? "has-content" : ""}">
|
|
4560
5161
|
<slot
|
|
@@ -4568,7 +5169,7 @@ let Xe = class extends p {
|
|
|
4568
5169
|
`;
|
|
4569
5170
|
}
|
|
4570
5171
|
};
|
|
4571
|
-
|
|
5172
|
+
tt.styles = d`
|
|
4572
5173
|
:host {
|
|
4573
5174
|
display: block;
|
|
4574
5175
|
font-family: var(--vox-font-family-base);
|
|
@@ -4600,39 +5201,39 @@ Xe.styles = c`
|
|
|
4600
5201
|
margin-top: var(--vox-space-6);
|
|
4601
5202
|
}
|
|
4602
5203
|
`;
|
|
4603
|
-
|
|
5204
|
+
I([
|
|
4604
5205
|
n()
|
|
4605
|
-
],
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
],
|
|
4609
|
-
let
|
|
5206
|
+
], tt.prototype, "heading", 2);
|
|
5207
|
+
tt = I([
|
|
5208
|
+
h("vox-sponsor-tier")
|
|
5209
|
+
], tt);
|
|
5210
|
+
let N = class extends p {
|
|
4610
5211
|
constructor() {
|
|
4611
5212
|
super(...arguments), this.name = "", this.hasBody = !1;
|
|
4612
5213
|
}
|
|
4613
|
-
handleBodySlotChange(
|
|
4614
|
-
const e =
|
|
5214
|
+
handleBodySlotChange(r) {
|
|
5215
|
+
const e = r.target;
|
|
4615
5216
|
this.hasBody = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4616
5217
|
}
|
|
4617
5218
|
render() {
|
|
4618
|
-
const
|
|
5219
|
+
const r = c`
|
|
4619
5220
|
<div class="logo ${this.logo ? "has-logo" : ""}">
|
|
4620
|
-
${this.logo ?
|
|
5221
|
+
${this.logo ? c`<img src=${this.logo} alt=${this.name} />` : x}
|
|
4621
5222
|
</div>
|
|
4622
5223
|
<span class="name">${this.name}</span>
|
|
4623
5224
|
<div class="body ${this.hasBody ? "has-content" : ""}">
|
|
4624
5225
|
<slot @slotchange=${this.handleBodySlotChange}></slot>
|
|
4625
5226
|
</div>
|
|
4626
5227
|
`;
|
|
4627
|
-
return this.href !== void 0 ?
|
|
5228
|
+
return this.href !== void 0 ? c`<a
|
|
4628
5229
|
class="sponsor"
|
|
4629
5230
|
href=${this.href}
|
|
4630
|
-
target=${this.target ??
|
|
4631
|
-
>${
|
|
4632
|
-
>` :
|
|
5231
|
+
target=${this.target ?? x}
|
|
5232
|
+
>${r}</a
|
|
5233
|
+
>` : c`<div class="sponsor">${r}</div>`;
|
|
4633
5234
|
}
|
|
4634
5235
|
};
|
|
4635
|
-
|
|
5236
|
+
N.styles = d`
|
|
4636
5237
|
:host {
|
|
4637
5238
|
display: block;
|
|
4638
5239
|
}
|
|
@@ -4698,39 +5299,39 @@ R.styles = c`
|
|
|
4698
5299
|
display: none;
|
|
4699
5300
|
}
|
|
4700
5301
|
`;
|
|
4701
|
-
|
|
5302
|
+
I([
|
|
4702
5303
|
n()
|
|
4703
|
-
],
|
|
4704
|
-
|
|
5304
|
+
], N.prototype, "name", 2);
|
|
5305
|
+
I([
|
|
4705
5306
|
n()
|
|
4706
|
-
],
|
|
4707
|
-
|
|
5307
|
+
], N.prototype, "href", 2);
|
|
5308
|
+
I([
|
|
4708
5309
|
n()
|
|
4709
|
-
],
|
|
4710
|
-
|
|
5310
|
+
], N.prototype, "logo", 2);
|
|
5311
|
+
I([
|
|
4711
5312
|
n()
|
|
4712
|
-
],
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
],
|
|
4716
|
-
var
|
|
4717
|
-
for (var t =
|
|
4718
|
-
(i =
|
|
4719
|
-
return
|
|
5313
|
+
], N.prototype, "target", 2);
|
|
5314
|
+
N = I([
|
|
5315
|
+
h("vox-sponsor")
|
|
5316
|
+
], N);
|
|
5317
|
+
var ws = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, Rt = (r, e, o, s) => {
|
|
5318
|
+
for (var t = s > 1 ? void 0 : s ? _s(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5319
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5320
|
+
return s && t && ws(e, o, t), t;
|
|
4720
5321
|
};
|
|
4721
|
-
let
|
|
5322
|
+
let Ae = class extends p {
|
|
4722
5323
|
constructor() {
|
|
4723
5324
|
super(...arguments), this.value = "", this.label = "";
|
|
4724
5325
|
}
|
|
4725
5326
|
render() {
|
|
4726
|
-
return
|
|
5327
|
+
return c`
|
|
4727
5328
|
<div class="value">${this.value}</div>
|
|
4728
5329
|
<div class="label">${this.label}</div>
|
|
4729
5330
|
<div class="description"><slot></slot></div>
|
|
4730
5331
|
`;
|
|
4731
5332
|
}
|
|
4732
5333
|
};
|
|
4733
|
-
|
|
5334
|
+
Ae.styles = d`
|
|
4734
5335
|
:host {
|
|
4735
5336
|
display: block;
|
|
4736
5337
|
font-family: var(--vox-font-family-base);
|
|
@@ -4757,35 +5358,35 @@ we.styles = c`
|
|
|
4757
5358
|
color: var(--vox-color-text-2);
|
|
4758
5359
|
}
|
|
4759
5360
|
`;
|
|
4760
|
-
|
|
5361
|
+
Rt([
|
|
4761
5362
|
n()
|
|
4762
|
-
],
|
|
4763
|
-
|
|
5363
|
+
], Ae.prototype, "value", 2);
|
|
5364
|
+
Rt([
|
|
4764
5365
|
n()
|
|
4765
|
-
],
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
],
|
|
4769
|
-
var
|
|
4770
|
-
for (var t =
|
|
4771
|
-
(i =
|
|
4772
|
-
return
|
|
5366
|
+
], Ae.prototype, "label", 2);
|
|
5367
|
+
Ae = Rt([
|
|
5368
|
+
h("vox-stat")
|
|
5369
|
+
], Ae);
|
|
5370
|
+
var Cs = Object.defineProperty, Os = Object.getOwnPropertyDescriptor, Ne = (r, e, o, s) => {
|
|
5371
|
+
for (var t = s > 1 ? void 0 : s ? Os(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5372
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5373
|
+
return s && t && Cs(e, o, t), t;
|
|
4773
5374
|
};
|
|
4774
|
-
let
|
|
5375
|
+
let $t = class extends p {
|
|
4775
5376
|
numberSteps() {
|
|
4776
|
-
this.querySelectorAll("vox-step").forEach((
|
|
4777
|
-
|
|
5377
|
+
this.querySelectorAll("vox-step").forEach((r, e) => {
|
|
5378
|
+
r.number = e + 1;
|
|
4778
5379
|
});
|
|
4779
5380
|
}
|
|
4780
5381
|
render() {
|
|
4781
|
-
return
|
|
5382
|
+
return c`
|
|
4782
5383
|
<div class="steps" role="list" aria-label="Progress">
|
|
4783
5384
|
<slot @slotchange=${this.numberSteps}></slot>
|
|
4784
5385
|
</div>
|
|
4785
5386
|
`;
|
|
4786
5387
|
}
|
|
4787
5388
|
};
|
|
4788
|
-
|
|
5389
|
+
$t.styles = d`
|
|
4789
5390
|
:host {
|
|
4790
5391
|
display: block;
|
|
4791
5392
|
}
|
|
@@ -4799,22 +5400,22 @@ ht.styles = c`
|
|
|
4799
5400
|
flex: 1 1 0;
|
|
4800
5401
|
}
|
|
4801
5402
|
`;
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
],
|
|
4805
|
-
let
|
|
5403
|
+
$t = Ne([
|
|
5404
|
+
h("vox-step-indicator")
|
|
5405
|
+
], $t);
|
|
5406
|
+
let ee = class extends p {
|
|
4806
5407
|
constructor() {
|
|
4807
5408
|
super(...arguments), this.label = "", this.state = "upcoming", this.number = 1;
|
|
4808
5409
|
}
|
|
4809
5410
|
render() {
|
|
4810
|
-
return
|
|
5411
|
+
return c`
|
|
4811
5412
|
<div
|
|
4812
5413
|
class="step"
|
|
4813
5414
|
role="listitem"
|
|
4814
5415
|
aria-current=${this.state === "current" ? "step" : "false"}
|
|
4815
5416
|
>
|
|
4816
5417
|
<span class="marker">
|
|
4817
|
-
${this.state === "complete" ?
|
|
5418
|
+
${this.state === "complete" ? c`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
4818
5419
|
<path d="m4 12 5 5L20 6" />
|
|
4819
5420
|
</svg>` : this.number}
|
|
4820
5421
|
</span>
|
|
@@ -4823,7 +5424,7 @@ let X = class extends p {
|
|
|
4823
5424
|
`;
|
|
4824
5425
|
}
|
|
4825
5426
|
};
|
|
4826
|
-
|
|
5427
|
+
ee.styles = d`
|
|
4827
5428
|
:host {
|
|
4828
5429
|
display: block;
|
|
4829
5430
|
font-family: var(--vox-font-family-base);
|
|
@@ -4897,52 +5498,52 @@ X.styles = c`
|
|
|
4897
5498
|
color: var(--vox-color-text-1);
|
|
4898
5499
|
}
|
|
4899
5500
|
`;
|
|
4900
|
-
|
|
5501
|
+
Ne([
|
|
4901
5502
|
n()
|
|
4902
|
-
],
|
|
4903
|
-
|
|
5503
|
+
], ee.prototype, "label", 2);
|
|
5504
|
+
Ne([
|
|
4904
5505
|
n({ reflect: !0 })
|
|
4905
|
-
],
|
|
4906
|
-
|
|
5506
|
+
], ee.prototype, "state", 2);
|
|
5507
|
+
Ne([
|
|
4907
5508
|
n({ type: Number })
|
|
4908
|
-
],
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
],
|
|
4912
|
-
var
|
|
4913
|
-
for (var t =
|
|
4914
|
-
(i =
|
|
4915
|
-
return
|
|
5509
|
+
], ee.prototype, "number", 2);
|
|
5510
|
+
ee = Ne([
|
|
5511
|
+
h("vox-step")
|
|
5512
|
+
], ee);
|
|
5513
|
+
var Ms = Object.defineProperty, Ps = Object.getOwnPropertyDescriptor, ht = (r, e, o, s) => {
|
|
5514
|
+
for (var t = s > 1 ? void 0 : s ? Ps(e, o) : e, a = r.length - 1, i; a >= 0; a--)
|
|
5515
|
+
(i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
|
|
5516
|
+
return s && t && Ms(e, o, t), t;
|
|
4916
5517
|
};
|
|
4917
|
-
let
|
|
5518
|
+
let wt = class extends p {
|
|
4918
5519
|
render() {
|
|
4919
|
-
return
|
|
5520
|
+
return c`<slot></slot>`;
|
|
4920
5521
|
}
|
|
4921
5522
|
};
|
|
4922
|
-
|
|
5523
|
+
wt.styles = d`
|
|
4923
5524
|
:host {
|
|
4924
5525
|
display: block;
|
|
4925
5526
|
}
|
|
4926
5527
|
`;
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
],
|
|
4930
|
-
let
|
|
5528
|
+
wt = ht([
|
|
5529
|
+
h("vox-timeline")
|
|
5530
|
+
], wt);
|
|
5531
|
+
let ke = class extends p {
|
|
4931
5532
|
constructor() {
|
|
4932
5533
|
super(...arguments), this.heading = "", this.date = "";
|
|
4933
5534
|
}
|
|
4934
5535
|
render() {
|
|
4935
|
-
return
|
|
5536
|
+
return c`
|
|
4936
5537
|
<div class="item">
|
|
4937
5538
|
<span class="dot" aria-hidden="true"></span>
|
|
4938
|
-
${this.date ?
|
|
5539
|
+
${this.date ? c`<div class="date">${this.date}</div>` : x}
|
|
4939
5540
|
<h3 class="heading">${this.heading}</h3>
|
|
4940
5541
|
<div class="body"><slot></slot></div>
|
|
4941
5542
|
</div>
|
|
4942
5543
|
`;
|
|
4943
5544
|
}
|
|
4944
5545
|
};
|
|
4945
|
-
|
|
5546
|
+
ke.styles = d`
|
|
4946
5547
|
:host {
|
|
4947
5548
|
display: block;
|
|
4948
5549
|
font-family: var(--vox-font-family-base);
|
|
@@ -4992,66 +5593,69 @@ Pe.styles = c`
|
|
|
4992
5593
|
color: var(--vox-color-text-2);
|
|
4993
5594
|
}
|
|
4994
5595
|
`;
|
|
4995
|
-
|
|
5596
|
+
ht([
|
|
4996
5597
|
n()
|
|
4997
|
-
],
|
|
4998
|
-
|
|
5598
|
+
], ke.prototype, "heading", 2);
|
|
5599
|
+
ht([
|
|
4999
5600
|
n()
|
|
5000
|
-
],
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
],
|
|
5601
|
+
], ke.prototype, "date", 2);
|
|
5602
|
+
ke = ht([
|
|
5603
|
+
h("vox-timeline-item")
|
|
5604
|
+
], ke);
|
|
5004
5605
|
export {
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5606
|
+
We as VoxAccordion,
|
|
5607
|
+
$e as VoxAccordionItem,
|
|
5608
|
+
B as VoxAlert,
|
|
5609
|
+
H as VoxAvatar,
|
|
5610
|
+
Xe as VoxBadge,
|
|
5611
|
+
ve as VoxBillboard,
|
|
5612
|
+
gt as VoxBreadcrumbs,
|
|
5613
|
+
_ as VoxButton,
|
|
5614
|
+
we as VoxCalendarTile,
|
|
5615
|
+
_e as VoxCallout,
|
|
5616
|
+
J as VoxCard,
|
|
5617
|
+
de as VoxCheckbox,
|
|
5618
|
+
ce as VoxCta,
|
|
5619
|
+
Ye as VoxCtaBand,
|
|
5620
|
+
T as VoxDialog,
|
|
5621
|
+
ye as VoxDisclosure,
|
|
5622
|
+
me as VoxDropdown,
|
|
5623
|
+
Je as VoxEmptyState,
|
|
5624
|
+
P as VoxFileInput,
|
|
5625
|
+
yt as VoxFooter,
|
|
5626
|
+
Qe as VoxFooterColumn,
|
|
5627
|
+
Q as VoxGrid,
|
|
5628
|
+
X as VoxHeader,
|
|
5629
|
+
Ce as VoxHero,
|
|
5630
|
+
G as VoxIcon,
|
|
5029
5631
|
A as VoxInput,
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5632
|
+
ft as VoxInputGroup,
|
|
5633
|
+
mt as VoxLinkHub,
|
|
5634
|
+
Oe as VoxLinkHubItem,
|
|
5635
|
+
Me as VoxLoader,
|
|
5636
|
+
et as VoxPagination,
|
|
5637
|
+
Pe as VoxQuote,
|
|
5638
|
+
W as VoxRadio,
|
|
5639
|
+
Ze as VoxRadioGroup,
|
|
5640
|
+
he as VoxSelect,
|
|
5641
|
+
z as VoxSeriesNav,
|
|
5642
|
+
Y as VoxSidenav,
|
|
5643
|
+
ue as VoxSidenavGroup,
|
|
5644
|
+
xe as VoxSidenavItem,
|
|
5645
|
+
N as VoxSponsor,
|
|
5646
|
+
tt as VoxSponsorTier,
|
|
5647
|
+
Ae as VoxStat,
|
|
5648
|
+
ee as VoxStep,
|
|
5649
|
+
$t as VoxStepIndicator,
|
|
5650
|
+
Ke as VoxSubnav,
|
|
5651
|
+
pe as VoxSwitch,
|
|
5652
|
+
fe as VoxTab,
|
|
5653
|
+
ge as VoxTabPanel,
|
|
5654
|
+
bt as VoxTabs,
|
|
5655
|
+
D as VoxTextarea,
|
|
5656
|
+
K as VoxThemeToggle,
|
|
5657
|
+
wt as VoxTimeline,
|
|
5658
|
+
ke as VoxTimelineItem,
|
|
5659
|
+
Ge as VoxToc,
|
|
5660
|
+
be as VoxTocItem
|
|
5057
5661
|
};
|