@openvoxproject/voxblocks 0.12.0 → 0.14.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 +2 -2
- package/dist/cdn/voxblocks.css +1 -1
- package/dist/cdn/voxblocks.js +1417 -1610
- package/dist/types/components/datum/vox-datum.d.ts +25 -0
- package/dist/types/components/menu/vox-menu.d.ts +44 -0
- package/dist/types/components/record-list/vox-record-list.d.ts +53 -0
- package/dist/types/index.d.ts +5 -2
- package/dist/voxblocks.css +1 -1
- package/dist/voxblocks.js +1389 -1582
- package/package.json +1 -1
- package/src/components/datum/vox-datum.ts +76 -0
- package/src/components/dropdown/vox-dropdown.ts +6 -0
- package/src/components/menu/vox-menu.ts +203 -0
- package/src/components/record-list/vox-record-list.ts +263 -0
- package/src/index.ts +5 -2
- package/src/tokens/tokens.css +0 -17
- package/dist/types/components/code-block/languages.d.ts +0 -28
- package/dist/types/components/code-block/vox-code-block.d.ts +0 -34
- package/src/components/code-block/languages.ts +0 -259
- package/src/components/code-block/vox-code-block.ts +0 -302
package/dist/voxblocks.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { css as d, LitElement as
|
|
2
|
-
import { property as n, customElement as
|
|
3
|
-
import { classMap as
|
|
4
|
-
import { ifDefined as
|
|
5
|
-
import { live as
|
|
6
|
-
var
|
|
7
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
8
|
-
(i =
|
|
9
|
-
return r && e &&
|
|
1
|
+
import { css as d, LitElement as p, html as l, svg as c, nothing as v } from "lit";
|
|
2
|
+
import { property as n, customElement as h, state as De, query as Qe } from "lit/decorators.js";
|
|
3
|
+
import { classMap as Oo } from "lit/directives/class-map.js";
|
|
4
|
+
import { ifDefined as L } from "lit/directives/if-defined.js";
|
|
5
|
+
import { live as go } from "lit/directives/live.js";
|
|
6
|
+
var ko = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, O = (t, o, a, r) => {
|
|
7
|
+
for (var e = r > 1 ? void 0 : r ? Po(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
8
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
9
|
+
return r && e && ko(o, a, e), e;
|
|
10
10
|
};
|
|
11
|
-
let
|
|
11
|
+
let f = class extends p {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments), this.variant = "brand", this.size = "md", this.type = "button", this.disabled = !1;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
const
|
|
16
|
+
const t = Oo({
|
|
17
17
|
button: !0,
|
|
18
18
|
[this.variant]: !0,
|
|
19
19
|
[this.size]: !0
|
|
20
20
|
});
|
|
21
21
|
return this.href !== void 0 && !this.disabled ? l`
|
|
22
22
|
<a
|
|
23
|
-
class=${
|
|
23
|
+
class=${t}
|
|
24
24
|
href=${this.href}
|
|
25
|
-
target=${
|
|
26
|
-
rel=${
|
|
25
|
+
target=${L(this.target)}
|
|
26
|
+
rel=${L(this.target === "_blank" ? "noreferrer" : void 0)}
|
|
27
27
|
>
|
|
28
28
|
<slot></slot>
|
|
29
29
|
</a>
|
|
30
30
|
` : l`
|
|
31
|
-
<button class=${
|
|
31
|
+
<button class=${t} type=${this.type} ?disabled=${this.disabled}>
|
|
32
32
|
<slot></slot>
|
|
33
33
|
</button>
|
|
34
34
|
`;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
f.styles = d`
|
|
38
38
|
:host {
|
|
39
39
|
display: inline-block;
|
|
40
40
|
}
|
|
@@ -142,33 +142,33 @@ g.styles = d`
|
|
|
142
142
|
border-radius: 0 var(--vox-radius-md) var(--vox-radius-md) 0;
|
|
143
143
|
}
|
|
144
144
|
`;
|
|
145
|
-
|
|
145
|
+
O([
|
|
146
146
|
n()
|
|
147
|
-
],
|
|
148
|
-
|
|
147
|
+
], f.prototype, "variant", 2);
|
|
148
|
+
O([
|
|
149
149
|
n()
|
|
150
|
-
],
|
|
151
|
-
|
|
150
|
+
], f.prototype, "size", 2);
|
|
151
|
+
O([
|
|
152
152
|
n()
|
|
153
|
-
],
|
|
154
|
-
|
|
153
|
+
], f.prototype, "href", 2);
|
|
154
|
+
O([
|
|
155
155
|
n()
|
|
156
|
-
],
|
|
157
|
-
|
|
156
|
+
], f.prototype, "target", 2);
|
|
157
|
+
O([
|
|
158
158
|
n()
|
|
159
|
-
],
|
|
160
|
-
|
|
159
|
+
], f.prototype, "type", 2);
|
|
160
|
+
O([
|
|
161
161
|
n({ type: Boolean, reflect: !0 })
|
|
162
|
-
],
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
],
|
|
166
|
-
var
|
|
167
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
168
|
-
(i =
|
|
169
|
-
return r && e &&
|
|
162
|
+
], f.prototype, "disabled", 2);
|
|
163
|
+
f = O([
|
|
164
|
+
h("vox-button")
|
|
165
|
+
], f);
|
|
166
|
+
var Lo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, Ye = (t, o, a, r) => {
|
|
167
|
+
for (var e = r > 1 ? void 0 : r ? Vo(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
168
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
169
|
+
return r && e && Lo(o, a, e), e;
|
|
170
170
|
};
|
|
171
|
-
let
|
|
171
|
+
let T = class extends p {
|
|
172
172
|
constructor() {
|
|
173
173
|
super(...arguments), this.href = "#";
|
|
174
174
|
}
|
|
@@ -184,7 +184,7 @@ let K = class extends h {
|
|
|
184
184
|
`;
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
T.styles = d`
|
|
188
188
|
:host {
|
|
189
189
|
display: inline-block;
|
|
190
190
|
font-family: var(--vox-font-family-base);
|
|
@@ -221,60 +221,60 @@ K.styles = d`
|
|
|
221
221
|
transform: translateX(3px);
|
|
222
222
|
}
|
|
223
223
|
`;
|
|
224
|
-
|
|
224
|
+
Ye([
|
|
225
225
|
n()
|
|
226
|
-
],
|
|
227
|
-
|
|
226
|
+
], T.prototype, "href", 2);
|
|
227
|
+
Ye([
|
|
228
228
|
n()
|
|
229
|
-
],
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
],
|
|
233
|
-
var
|
|
234
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
235
|
-
(i =
|
|
236
|
-
return r && e &&
|
|
229
|
+
], T.prototype, "target", 2);
|
|
230
|
+
T = Ye([
|
|
231
|
+
h("vox-cta")
|
|
232
|
+
], T);
|
|
233
|
+
var jo = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, Ee = (t, o, a, r) => {
|
|
234
|
+
for (var e = r > 1 ? void 0 : r ? zo(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
235
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
236
|
+
return r && e && jo(o, a, e), e;
|
|
237
237
|
};
|
|
238
|
-
const
|
|
239
|
-
let
|
|
238
|
+
const fo = "vox-theme", we = "data-vox-theme";
|
|
239
|
+
let V = class extends p {
|
|
240
240
|
constructor() {
|
|
241
|
-
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 = (
|
|
242
|
-
localStorage.getItem(
|
|
241
|
+
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 = (t) => {
|
|
242
|
+
localStorage.getItem(fo) || document.documentElement.setAttribute(we, t.matches ? "dark" : "light");
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
245
|
connectedCallback() {
|
|
246
246
|
super.connectedCallback(), this.syncFromDocument(), this.observer = new MutationObserver(() => this.syncFromDocument()), this.observer.observe(document.documentElement, {
|
|
247
247
|
attributes: !0,
|
|
248
|
-
attributeFilter: [
|
|
248
|
+
attributeFilter: [we]
|
|
249
249
|
}), this.media.addEventListener("change", this.handleSystemChange);
|
|
250
250
|
}
|
|
251
251
|
disconnectedCallback() {
|
|
252
|
-
var
|
|
253
|
-
super.disconnectedCallback(), (
|
|
252
|
+
var t;
|
|
253
|
+
super.disconnectedCallback(), (t = this.observer) == null || t.disconnect(), this.media.removeEventListener("change", this.handleSystemChange);
|
|
254
254
|
}
|
|
255
255
|
syncFromDocument() {
|
|
256
|
-
const
|
|
257
|
-
this.dark =
|
|
256
|
+
const t = document.documentElement.getAttribute(we) === "dark";
|
|
257
|
+
this.dark = t, this.toggleAttribute("dark", t);
|
|
258
258
|
}
|
|
259
259
|
handleClick() {
|
|
260
|
-
const
|
|
261
|
-
document.documentElement.setAttribute(
|
|
260
|
+
const t = this.dark ? "light" : "dark";
|
|
261
|
+
document.documentElement.setAttribute(we, t), localStorage.setItem(fo, t), this.dispatchEvent(
|
|
262
262
|
new CustomEvent("vox-theme-change", {
|
|
263
|
-
detail: { theme:
|
|
263
|
+
detail: { theme: t },
|
|
264
264
|
bubbles: !0,
|
|
265
265
|
composed: !0
|
|
266
266
|
})
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
render() {
|
|
270
|
-
const
|
|
270
|
+
const t = this.dark ? this.darkLabel : this.lightLabel;
|
|
271
271
|
return l`
|
|
272
272
|
<button
|
|
273
273
|
type="button"
|
|
274
274
|
role="switch"
|
|
275
275
|
aria-checked=${this.dark}
|
|
276
|
-
aria-label=${
|
|
277
|
-
title=${
|
|
276
|
+
aria-label=${t}
|
|
277
|
+
title=${t}
|
|
278
278
|
@click=${this.handleClick}
|
|
279
279
|
>
|
|
280
280
|
<span class="track">
|
|
@@ -291,7 +291,7 @@ let A = class extends h {
|
|
|
291
291
|
`;
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
|
-
|
|
294
|
+
V.styles = d`
|
|
295
295
|
:host {
|
|
296
296
|
display: inline-flex;
|
|
297
297
|
}
|
|
@@ -350,19 +350,19 @@ A.styles = d`
|
|
|
350
350
|
transform: translateX(20px);
|
|
351
351
|
}
|
|
352
352
|
`;
|
|
353
|
-
|
|
353
|
+
Ee([
|
|
354
354
|
n({ attribute: "light-label" })
|
|
355
|
-
],
|
|
356
|
-
|
|
355
|
+
], V.prototype, "lightLabel", 2);
|
|
356
|
+
Ee([
|
|
357
357
|
n({ attribute: "dark-label" })
|
|
358
|
-
],
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
],
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
],
|
|
365
|
-
const
|
|
358
|
+
], V.prototype, "darkLabel", 2);
|
|
359
|
+
Ee([
|
|
360
|
+
De()
|
|
361
|
+
], V.prototype, "dark", 2);
|
|
362
|
+
V = Ee([
|
|
363
|
+
h("vox-theme-toggle")
|
|
364
|
+
], V);
|
|
365
|
+
const m = {
|
|
366
366
|
// Phase 1: shared UI baseline -----------------------------------------
|
|
367
367
|
search: c`<circle cx="21" cy="21" r="13"/><path d="M30.5 30.5 L41 41"/>`,
|
|
368
368
|
close: c`<path d="M14 14 L34 34 M34 14 L14 34"/>`,
|
|
@@ -450,18 +450,18 @@ const y = {
|
|
|
450
450
|
accessibility: c`<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"/>`,
|
|
451
451
|
settings: c`<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"/>`
|
|
452
452
|
};
|
|
453
|
-
var
|
|
454
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
455
|
-
(i =
|
|
456
|
-
return r && e &&
|
|
453
|
+
var Do = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, He = (t, o, a, r) => {
|
|
454
|
+
for (var e = r > 1 ? void 0 : r ? Eo(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
455
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
456
|
+
return r && e && Do(o, a, e), e;
|
|
457
457
|
};
|
|
458
|
-
let
|
|
458
|
+
let j = class extends p {
|
|
459
459
|
constructor() {
|
|
460
460
|
super(...arguments), this.name = "info", this.size = "md";
|
|
461
461
|
}
|
|
462
462
|
render() {
|
|
463
|
-
const
|
|
464
|
-
return
|
|
463
|
+
const t = m[this.name];
|
|
464
|
+
return t ? l`
|
|
465
465
|
<svg
|
|
466
466
|
viewBox="0 0 48 48"
|
|
467
467
|
fill="none"
|
|
@@ -473,12 +473,12 @@ let H = class extends h {
|
|
|
473
473
|
aria-hidden=${this.label ? v : "true"}
|
|
474
474
|
aria-label=${this.label ?? v}
|
|
475
475
|
>
|
|
476
|
-
${
|
|
476
|
+
${t}
|
|
477
477
|
</svg>
|
|
478
478
|
` : v;
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
|
-
|
|
481
|
+
j.styles = d`
|
|
482
482
|
:host {
|
|
483
483
|
display: inline-flex;
|
|
484
484
|
flex: none;
|
|
@@ -509,24 +509,24 @@ H.styles = d`
|
|
|
509
509
|
height: 48px;
|
|
510
510
|
}
|
|
511
511
|
`;
|
|
512
|
-
|
|
512
|
+
He([
|
|
513
513
|
n()
|
|
514
|
-
],
|
|
515
|
-
|
|
514
|
+
], j.prototype, "name", 2);
|
|
515
|
+
He([
|
|
516
516
|
n({ reflect: !0 })
|
|
517
|
-
],
|
|
518
|
-
|
|
517
|
+
], j.prototype, "size", 2);
|
|
518
|
+
He([
|
|
519
519
|
n()
|
|
520
|
-
],
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
],
|
|
524
|
-
var
|
|
525
|
-
for (var e = void 0, s =
|
|
526
|
-
(i =
|
|
527
|
-
return e &&
|
|
520
|
+
], j.prototype, "label", 2);
|
|
521
|
+
j = He([
|
|
522
|
+
h("vox-icon")
|
|
523
|
+
], j);
|
|
524
|
+
var Ho = Object.defineProperty, ce = (t, o, a, r) => {
|
|
525
|
+
for (var e = void 0, s = t.length - 1, i; s >= 0; s--)
|
|
526
|
+
(i = t[s]) && (e = i(o, a, e) || e);
|
|
527
|
+
return e && Ho(o, a, e), e;
|
|
528
528
|
};
|
|
529
|
-
const
|
|
529
|
+
const xo = class xo extends p {
|
|
530
530
|
constructor() {
|
|
531
531
|
super(), this.name = "", this.label = "", this.note = "", this.disabled = !1, this.required = !1, this.internals = this.attachInternals();
|
|
532
532
|
}
|
|
@@ -546,12 +546,12 @@ const bt = class bt extends h {
|
|
|
546
546
|
return this.internals.reportValidity();
|
|
547
547
|
}
|
|
548
548
|
/** Mirror a native inner control's validity onto the host element. */
|
|
549
|
-
syncValidity(
|
|
550
|
-
this.internals.setValidity(
|
|
549
|
+
syncValidity(o) {
|
|
550
|
+
this.internals.setValidity(o.validity, o.validationMessage, o);
|
|
551
551
|
}
|
|
552
|
-
renderLabel(
|
|
552
|
+
renderLabel(o) {
|
|
553
553
|
return this.label ? l`
|
|
554
|
-
<label class="label" for=${
|
|
554
|
+
<label class="label" for=${o}>
|
|
555
555
|
${this.label}${this.required ? l`<span class="required-mark" aria-hidden="true"> *</span>` : v}
|
|
556
556
|
</label>
|
|
557
557
|
` : v;
|
|
@@ -560,24 +560,24 @@ const bt = class bt extends h {
|
|
|
560
560
|
return this.note ? l`<p class="note">${this.note}</p>` : v;
|
|
561
561
|
}
|
|
562
562
|
};
|
|
563
|
-
|
|
564
|
-
let x =
|
|
565
|
-
|
|
563
|
+
xo.formAssociated = !0;
|
|
564
|
+
let x = xo;
|
|
565
|
+
ce([
|
|
566
566
|
n()
|
|
567
567
|
], x.prototype, "name");
|
|
568
|
-
|
|
568
|
+
ce([
|
|
569
569
|
n()
|
|
570
570
|
], x.prototype, "label");
|
|
571
|
-
|
|
571
|
+
ce([
|
|
572
572
|
n()
|
|
573
573
|
], x.prototype, "note");
|
|
574
|
-
|
|
574
|
+
ce([
|
|
575
575
|
n({ type: Boolean, reflect: !0 })
|
|
576
576
|
], x.prototype, "disabled");
|
|
577
|
-
|
|
577
|
+
ce([
|
|
578
578
|
n({ type: Boolean, reflect: !0 })
|
|
579
579
|
], x.prototype, "required");
|
|
580
|
-
const
|
|
580
|
+
const de = d`
|
|
581
581
|
:host {
|
|
582
582
|
display: block;
|
|
583
583
|
font-family: var(--vox-font-family-base);
|
|
@@ -644,7 +644,7 @@ const ue = d`
|
|
|
644
644
|
:host([data-vox-group='end']) .control {
|
|
645
645
|
border-radius: 0 var(--vox-radius-md) var(--vox-radius-md) 0;
|
|
646
646
|
}
|
|
647
|
-
`,
|
|
647
|
+
`, bo = d`
|
|
648
648
|
:host {
|
|
649
649
|
display: block;
|
|
650
650
|
font-family: var(--vox-font-family-base);
|
|
@@ -673,12 +673,12 @@ const ue = d`
|
|
|
673
673
|
margin: 0;
|
|
674
674
|
}
|
|
675
675
|
`;
|
|
676
|
-
var
|
|
677
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
678
|
-
(i =
|
|
679
|
-
return r && e &&
|
|
676
|
+
var So = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, eo = (t, o, a, r) => {
|
|
677
|
+
for (var e = r > 1 ? void 0 : r ? Ao(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
678
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
679
|
+
return r && e && So(o, a, e), e;
|
|
680
680
|
};
|
|
681
|
-
let
|
|
681
|
+
let R = class extends x {
|
|
682
682
|
constructor() {
|
|
683
683
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
684
684
|
}
|
|
@@ -692,8 +692,8 @@ let G = class extends x {
|
|
|
692
692
|
this.renderRoot.querySelector("input") ?? void 0
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
|
-
handleChange(
|
|
696
|
-
this.checked =
|
|
695
|
+
handleChange(t) {
|
|
696
|
+
this.checked = t.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
697
697
|
}
|
|
698
698
|
render() {
|
|
699
699
|
return l`
|
|
@@ -714,8 +714,8 @@ let G = class extends x {
|
|
|
714
714
|
`;
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
|
-
|
|
718
|
-
|
|
717
|
+
R.styles = [
|
|
718
|
+
bo,
|
|
719
719
|
d`
|
|
720
720
|
.box {
|
|
721
721
|
flex: none;
|
|
@@ -755,21 +755,21 @@ G.styles = [
|
|
|
755
755
|
}
|
|
756
756
|
`
|
|
757
757
|
];
|
|
758
|
-
|
|
758
|
+
eo([
|
|
759
759
|
n({ type: Boolean, reflect: !0 })
|
|
760
|
-
],
|
|
761
|
-
|
|
760
|
+
], R.prototype, "checked", 2);
|
|
761
|
+
eo([
|
|
762
762
|
n()
|
|
763
|
-
],
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
],
|
|
767
|
-
var
|
|
768
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
769
|
-
(i =
|
|
770
|
-
return r && e &&
|
|
763
|
+
], R.prototype, "value", 2);
|
|
764
|
+
R = eo([
|
|
765
|
+
h("vox-checkbox")
|
|
766
|
+
], R);
|
|
767
|
+
var Bo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, I = (t, o, a, r) => {
|
|
768
|
+
for (var e = r > 1 ? void 0 : r ? qo(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
769
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
770
|
+
return r && e && Bo(o, a, e), e;
|
|
771
771
|
};
|
|
772
|
-
let
|
|
772
|
+
let g = class extends x {
|
|
773
773
|
constructor() {
|
|
774
774
|
super(...arguments), this.multiple = !1, this.buttonLabel = "Choose a file", this.fileNames = [];
|
|
775
775
|
}
|
|
@@ -777,12 +777,12 @@ let m = class extends x {
|
|
|
777
777
|
this.fileNames = [], this.inputEl && (this.inputEl.value = ""), this.internals.setFormValue(null);
|
|
778
778
|
}
|
|
779
779
|
handleChange() {
|
|
780
|
-
const
|
|
781
|
-
this.fileNames =
|
|
782
|
-
const
|
|
783
|
-
for (const a of
|
|
784
|
-
this.internals.setFormValue(
|
|
785
|
-
this.required &&
|
|
780
|
+
const t = [...this.inputEl.files ?? []];
|
|
781
|
+
this.fileNames = t.map((a) => a.name);
|
|
782
|
+
const o = new FormData();
|
|
783
|
+
for (const a of t) o.append(this.name, a);
|
|
784
|
+
this.internals.setFormValue(t.length > 0 ? o : null), this.internals.setValidity(
|
|
785
|
+
this.required && t.length === 0 ? { valueMissing: !0 } : {},
|
|
786
786
|
"Please select a file.",
|
|
787
787
|
this.inputEl
|
|
788
788
|
), this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -795,7 +795,7 @@ let m = class extends x {
|
|
|
795
795
|
<input
|
|
796
796
|
id="file"
|
|
797
797
|
type="file"
|
|
798
|
-
accept=${
|
|
798
|
+
accept=${L(this.accept)}
|
|
799
799
|
?multiple=${this.multiple}
|
|
800
800
|
?disabled=${this.disabled}
|
|
801
801
|
@change=${this.handleChange}
|
|
@@ -812,8 +812,8 @@ let m = class extends x {
|
|
|
812
812
|
`;
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
|
-
|
|
816
|
-
|
|
815
|
+
g.styles = [
|
|
816
|
+
de,
|
|
817
817
|
d`
|
|
818
818
|
input {
|
|
819
819
|
position: absolute;
|
|
@@ -862,30 +862,30 @@ m.styles = [
|
|
|
862
862
|
}
|
|
863
863
|
`
|
|
864
864
|
];
|
|
865
|
-
|
|
865
|
+
I([
|
|
866
866
|
n()
|
|
867
|
-
],
|
|
868
|
-
|
|
867
|
+
], g.prototype, "accept", 2);
|
|
868
|
+
I([
|
|
869
869
|
n({ type: Boolean })
|
|
870
|
-
],
|
|
871
|
-
|
|
870
|
+
], g.prototype, "multiple", 2);
|
|
871
|
+
I([
|
|
872
872
|
n({ attribute: "button-label" })
|
|
873
|
-
],
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
],
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
],
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
],
|
|
883
|
-
var
|
|
884
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
885
|
-
(i =
|
|
886
|
-
return r && e &&
|
|
873
|
+
], g.prototype, "buttonLabel", 2);
|
|
874
|
+
I([
|
|
875
|
+
De()
|
|
876
|
+
], g.prototype, "fileNames", 2);
|
|
877
|
+
I([
|
|
878
|
+
Qe("input")
|
|
879
|
+
], g.prototype, "inputEl", 2);
|
|
880
|
+
g = I([
|
|
881
|
+
h("vox-file-input")
|
|
882
|
+
], g);
|
|
883
|
+
var Io = Object.defineProperty, No = Object.getOwnPropertyDescriptor, N = (t, o, a, r) => {
|
|
884
|
+
for (var e = r > 1 ? void 0 : r ? No(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
885
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
886
|
+
return r && e && Io(o, a, e), e;
|
|
887
887
|
};
|
|
888
|
-
let
|
|
888
|
+
let b = class extends x {
|
|
889
889
|
constructor() {
|
|
890
890
|
super(...arguments), this.type = "text", this.value = "", this.readonly = !1;
|
|
891
891
|
}
|
|
@@ -894,15 +894,15 @@ let w = class extends x {
|
|
|
894
894
|
}
|
|
895
895
|
updated() {
|
|
896
896
|
this.internals.setFormValue(this.value);
|
|
897
|
-
const
|
|
898
|
-
|
|
897
|
+
const t = this.renderRoot.querySelector("input");
|
|
898
|
+
t && this.syncValidity(t);
|
|
899
899
|
}
|
|
900
|
-
focus(
|
|
901
|
-
var
|
|
902
|
-
(
|
|
900
|
+
focus(t) {
|
|
901
|
+
var o;
|
|
902
|
+
(o = this.renderRoot.querySelector("input")) == null || o.focus(t);
|
|
903
903
|
}
|
|
904
|
-
handleInput(
|
|
905
|
-
this.value =
|
|
904
|
+
handleInput(t) {
|
|
905
|
+
this.value = t.target.value;
|
|
906
906
|
}
|
|
907
907
|
handleChange() {
|
|
908
908
|
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -915,9 +915,9 @@ let w = class extends x {
|
|
|
915
915
|
id="input"
|
|
916
916
|
class="control"
|
|
917
917
|
type=${this.type}
|
|
918
|
-
.value=${
|
|
919
|
-
placeholder=${
|
|
920
|
-
autocomplete=${
|
|
918
|
+
.value=${go(this.value)}
|
|
919
|
+
placeholder=${L(this.placeholder)}
|
|
920
|
+
autocomplete=${L(this.autocomplete)}
|
|
921
921
|
?required=${this.required}
|
|
922
922
|
?readonly=${this.readonly}
|
|
923
923
|
?disabled=${this.disabled}
|
|
@@ -930,35 +930,35 @@ let w = class extends x {
|
|
|
930
930
|
`;
|
|
931
931
|
}
|
|
932
932
|
};
|
|
933
|
-
|
|
934
|
-
|
|
933
|
+
b.styles = de;
|
|
934
|
+
N([
|
|
935
935
|
n()
|
|
936
|
-
],
|
|
937
|
-
|
|
936
|
+
], b.prototype, "type", 2);
|
|
937
|
+
N([
|
|
938
938
|
n()
|
|
939
|
-
],
|
|
940
|
-
|
|
939
|
+
], b.prototype, "value", 2);
|
|
940
|
+
N([
|
|
941
941
|
n()
|
|
942
|
-
],
|
|
943
|
-
|
|
942
|
+
], b.prototype, "placeholder", 2);
|
|
943
|
+
N([
|
|
944
944
|
n()
|
|
945
|
-
],
|
|
946
|
-
|
|
945
|
+
], b.prototype, "autocomplete", 2);
|
|
946
|
+
N([
|
|
947
947
|
n({ type: Boolean, reflect: !0 })
|
|
948
|
-
],
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
],
|
|
952
|
-
var
|
|
953
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
954
|
-
(i =
|
|
948
|
+
], b.prototype, "readonly", 2);
|
|
949
|
+
b = N([
|
|
950
|
+
h("vox-input")
|
|
951
|
+
], b);
|
|
952
|
+
var To = Object.getOwnPropertyDescriptor, Ro = (t, o, a, r) => {
|
|
953
|
+
for (var e = r > 1 ? void 0 : r ? To(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
954
|
+
(i = t[s]) && (e = i(e) || e);
|
|
955
955
|
return e;
|
|
956
956
|
};
|
|
957
|
-
let
|
|
958
|
-
handleSlotChange(
|
|
959
|
-
const
|
|
960
|
-
|
|
961
|
-
const e = r === 0 ? "start" : r ===
|
|
957
|
+
let Fe = class extends p {
|
|
958
|
+
handleSlotChange(t) {
|
|
959
|
+
const o = t.target.assignedElements();
|
|
960
|
+
o.forEach((a, r) => {
|
|
961
|
+
const e = r === 0 ? "start" : r === o.length - 1 ? "end" : "middle";
|
|
962
962
|
a.setAttribute("data-vox-group", e);
|
|
963
963
|
});
|
|
964
964
|
}
|
|
@@ -970,7 +970,7 @@ let Ye = class extends h {
|
|
|
970
970
|
`;
|
|
971
971
|
}
|
|
972
972
|
};
|
|
973
|
-
|
|
973
|
+
Fe.styles = d`
|
|
974
974
|
:host {
|
|
975
975
|
display: block;
|
|
976
976
|
font-family: var(--vox-font-family-base);
|
|
@@ -1012,15 +1012,15 @@ Ye.styles = d`
|
|
|
1012
1012
|
border-left: none;
|
|
1013
1013
|
}
|
|
1014
1014
|
`;
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
],
|
|
1018
|
-
var
|
|
1019
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1020
|
-
(i =
|
|
1021
|
-
return r && e &&
|
|
1015
|
+
Fe = Ro([
|
|
1016
|
+
h("vox-input-group")
|
|
1017
|
+
], Fe);
|
|
1018
|
+
var Fo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, Se = (t, o, a, r) => {
|
|
1019
|
+
for (var e = r > 1 ? void 0 : r ? Zo(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1020
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1021
|
+
return r && e && Fo(o, a, e), e;
|
|
1022
1022
|
};
|
|
1023
|
-
let
|
|
1023
|
+
let z = class extends p {
|
|
1024
1024
|
constructor() {
|
|
1025
1025
|
super(...arguments), this.value = "", this.checked = !1, this.disabled = !1;
|
|
1026
1026
|
}
|
|
@@ -1029,8 +1029,8 @@ let B = class extends h {
|
|
|
1029
1029
|
new CustomEvent("vox-radio-select", { bubbles: !0, composed: !0 })
|
|
1030
1030
|
);
|
|
1031
1031
|
}
|
|
1032
|
-
handleKeydown(
|
|
1033
|
-
(
|
|
1032
|
+
handleKeydown(t) {
|
|
1033
|
+
(t.key === " " || t.key === "Enter") && (t.preventDefault(), this.select());
|
|
1034
1034
|
}
|
|
1035
1035
|
render() {
|
|
1036
1036
|
return l`
|
|
@@ -1049,7 +1049,7 @@ let B = class extends h {
|
|
|
1049
1049
|
`;
|
|
1050
1050
|
}
|
|
1051
1051
|
};
|
|
1052
|
-
|
|
1052
|
+
z.styles = d`
|
|
1053
1053
|
:host {
|
|
1054
1054
|
display: block;
|
|
1055
1055
|
font-family: var(--vox-font-family-base);
|
|
@@ -1098,24 +1098,24 @@ B.styles = d`
|
|
|
1098
1098
|
outline-offset: 2px;
|
|
1099
1099
|
}
|
|
1100
1100
|
`;
|
|
1101
|
-
|
|
1101
|
+
Se([
|
|
1102
1102
|
n()
|
|
1103
|
-
],
|
|
1104
|
-
|
|
1103
|
+
], z.prototype, "value", 2);
|
|
1104
|
+
Se([
|
|
1105
1105
|
n({ type: Boolean, reflect: !0 })
|
|
1106
|
-
],
|
|
1107
|
-
|
|
1106
|
+
], z.prototype, "checked", 2);
|
|
1107
|
+
Se([
|
|
1108
1108
|
n({ type: Boolean, reflect: !0 })
|
|
1109
|
-
],
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
],
|
|
1113
|
-
var
|
|
1114
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1115
|
-
(i =
|
|
1116
|
-
return r && e &&
|
|
1109
|
+
], z.prototype, "disabled", 2);
|
|
1110
|
+
z = Se([
|
|
1111
|
+
h("vox-radio")
|
|
1112
|
+
], z);
|
|
1113
|
+
var Ko = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, mo = (t, o, a, r) => {
|
|
1114
|
+
for (var e = r > 1 ? void 0 : r ? Uo(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1115
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1116
|
+
return r && e && Ko(o, a, e), e;
|
|
1117
1117
|
};
|
|
1118
|
-
let
|
|
1118
|
+
let $e = class extends x {
|
|
1119
1119
|
constructor() {
|
|
1120
1120
|
super(...arguments), this.value = "";
|
|
1121
1121
|
}
|
|
@@ -1133,32 +1133,32 @@ let Pe = class extends x {
|
|
|
1133
1133
|
), this.syncRadios();
|
|
1134
1134
|
}
|
|
1135
1135
|
syncRadios() {
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1136
|
+
const t = this.radios, o = t.some((a) => a.value === this.value && this.value !== "");
|
|
1137
|
+
t.forEach((a, r) => {
|
|
1138
1138
|
var s, i;
|
|
1139
1139
|
a.checked = this.value !== "" && a.value === this.value;
|
|
1140
|
-
const e =
|
|
1140
|
+
const e = o ? a.checked : r === 0;
|
|
1141
1141
|
(i = (s = a.shadowRoot) == null ? void 0 : s.querySelector(".radio")) == null || i.setAttribute("tabindex", e ? "0" : "-1");
|
|
1142
1142
|
});
|
|
1143
1143
|
}
|
|
1144
|
-
handleSelect(
|
|
1145
|
-
const
|
|
1146
|
-
!(
|
|
1144
|
+
handleSelect(t) {
|
|
1145
|
+
const o = t.target;
|
|
1146
|
+
!(o instanceof HTMLElement) || o.tagName !== "VOX-RADIO" || (t.stopPropagation(), this.value !== o.value && (this.value = o.value, this.dispatchEvent(new Event("change", { bubbles: !0 }))));
|
|
1147
1147
|
}
|
|
1148
|
-
handleKeydown(
|
|
1149
|
-
var
|
|
1148
|
+
handleKeydown(t) {
|
|
1149
|
+
var ye, uo;
|
|
1150
1150
|
const a = {
|
|
1151
1151
|
ArrowDown: 1,
|
|
1152
1152
|
ArrowRight: 1,
|
|
1153
1153
|
ArrowUp: -1,
|
|
1154
1154
|
ArrowLeft: -1
|
|
1155
|
-
}[
|
|
1155
|
+
}[t.key];
|
|
1156
1156
|
if (!a) return;
|
|
1157
|
-
|
|
1158
|
-
const r = this.radios.filter((
|
|
1157
|
+
t.preventDefault();
|
|
1158
|
+
const r = this.radios.filter((Re) => !Re.disabled);
|
|
1159
1159
|
if (r.length === 0) return;
|
|
1160
|
-
const e = r.findIndex((
|
|
1161
|
-
i.select(), (
|
|
1160
|
+
const e = r.findIndex((Re) => Re.checked), s = (Math.max(e, 0) + a + r.length) % r.length, i = r[s];
|
|
1161
|
+
i.select(), (uo = (ye = i.shadowRoot) == null ? void 0 : ye.querySelector(".radio")) == null || uo.focus();
|
|
1162
1162
|
}
|
|
1163
1163
|
render() {
|
|
1164
1164
|
return l`
|
|
@@ -1178,8 +1178,8 @@ let Pe = class extends x {
|
|
|
1178
1178
|
`;
|
|
1179
1179
|
}
|
|
1180
1180
|
};
|
|
1181
|
-
|
|
1182
|
-
|
|
1181
|
+
$e.styles = [
|
|
1182
|
+
de,
|
|
1183
1183
|
d`
|
|
1184
1184
|
.options {
|
|
1185
1185
|
display: flex;
|
|
@@ -1189,18 +1189,18 @@ Pe.styles = [
|
|
|
1189
1189
|
}
|
|
1190
1190
|
`
|
|
1191
1191
|
];
|
|
1192
|
-
|
|
1192
|
+
mo([
|
|
1193
1193
|
n()
|
|
1194
|
-
],
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
],
|
|
1198
|
-
var
|
|
1199
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1200
|
-
(i =
|
|
1201
|
-
return r && e &&
|
|
1194
|
+
], $e.prototype, "value", 2);
|
|
1195
|
+
$e = mo([
|
|
1196
|
+
h("vox-radio-group")
|
|
1197
|
+
], $e);
|
|
1198
|
+
var Go = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, oo = (t, o, a, r) => {
|
|
1199
|
+
for (var e = r > 1 ? void 0 : r ? Xo(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1200
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1201
|
+
return r && e && Go(o, a, e), e;
|
|
1202
1202
|
};
|
|
1203
|
-
let
|
|
1203
|
+
let F = class extends x {
|
|
1204
1204
|
constructor() {
|
|
1205
1205
|
super(...arguments), this.value = "";
|
|
1206
1206
|
}
|
|
@@ -1212,9 +1212,9 @@ let Y = class extends x {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
syncOptions() {
|
|
1214
1214
|
if (!this.selectEl) return;
|
|
1215
|
-
const
|
|
1216
|
-
|
|
1217
|
-
...
|
|
1215
|
+
const t = this.renderRoot.querySelector("slot");
|
|
1216
|
+
t && (this.selectEl.replaceChildren(
|
|
1217
|
+
...t.assignedElements().filter((o) => o instanceof HTMLOptionElement || o instanceof HTMLOptGroupElement).map((o) => o.cloneNode(!0))
|
|
1218
1218
|
), this.value && (this.selectEl.value = this.value), this.value = this.selectEl.value);
|
|
1219
1219
|
}
|
|
1220
1220
|
handleChange() {
|
|
@@ -1237,8 +1237,8 @@ let Y = class extends x {
|
|
|
1237
1237
|
`;
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
|
-
|
|
1241
|
-
|
|
1240
|
+
F.styles = [
|
|
1241
|
+
de,
|
|
1242
1242
|
d`
|
|
1243
1243
|
select.control {
|
|
1244
1244
|
appearance: none;
|
|
@@ -1250,21 +1250,21 @@ Y.styles = [
|
|
|
1250
1250
|
}
|
|
1251
1251
|
`
|
|
1252
1252
|
];
|
|
1253
|
-
|
|
1253
|
+
oo([
|
|
1254
1254
|
n()
|
|
1255
|
-
],
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
],
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
],
|
|
1262
|
-
var
|
|
1263
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1264
|
-
(i =
|
|
1265
|
-
return r && e &&
|
|
1255
|
+
], F.prototype, "value", 2);
|
|
1256
|
+
oo([
|
|
1257
|
+
Qe("select")
|
|
1258
|
+
], F.prototype, "selectEl", 2);
|
|
1259
|
+
F = oo([
|
|
1260
|
+
h("vox-select")
|
|
1261
|
+
], F);
|
|
1262
|
+
var Jo = Object.defineProperty, Wo = Object.getOwnPropertyDescriptor, to = (t, o, a, r) => {
|
|
1263
|
+
for (var e = r > 1 ? void 0 : r ? Wo(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1264
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1265
|
+
return r && e && Jo(o, a, e), e;
|
|
1266
1266
|
};
|
|
1267
|
-
let
|
|
1267
|
+
let Z = class extends x {
|
|
1268
1268
|
constructor() {
|
|
1269
1269
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
1270
1270
|
}
|
|
@@ -1274,8 +1274,8 @@ let X = class extends x {
|
|
|
1274
1274
|
updated() {
|
|
1275
1275
|
this.internals.setFormValue(this.checked ? this.value : null);
|
|
1276
1276
|
}
|
|
1277
|
-
handleChange(
|
|
1278
|
-
this.checked =
|
|
1277
|
+
handleChange(t) {
|
|
1278
|
+
this.checked = t.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1279
1279
|
}
|
|
1280
1280
|
render() {
|
|
1281
1281
|
return l`
|
|
@@ -1293,8 +1293,8 @@ let X = class extends x {
|
|
|
1293
1293
|
`;
|
|
1294
1294
|
}
|
|
1295
1295
|
};
|
|
1296
|
-
|
|
1297
|
-
|
|
1296
|
+
Z.styles = [
|
|
1297
|
+
bo,
|
|
1298
1298
|
d`
|
|
1299
1299
|
.track {
|
|
1300
1300
|
flex: none;
|
|
@@ -1333,21 +1333,21 @@ X.styles = [
|
|
|
1333
1333
|
}
|
|
1334
1334
|
`
|
|
1335
1335
|
];
|
|
1336
|
-
|
|
1336
|
+
to([
|
|
1337
1337
|
n({ type: Boolean, reflect: !0 })
|
|
1338
|
-
],
|
|
1339
|
-
|
|
1338
|
+
], Z.prototype, "checked", 2);
|
|
1339
|
+
to([
|
|
1340
1340
|
n()
|
|
1341
|
-
],
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
],
|
|
1345
|
-
var
|
|
1346
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1347
|
-
(i =
|
|
1348
|
-
return r && e &&
|
|
1341
|
+
], Z.prototype, "value", 2);
|
|
1342
|
+
Z = to([
|
|
1343
|
+
h("vox-switch")
|
|
1344
|
+
], Z);
|
|
1345
|
+
var Qo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, he = (t, o, a, r) => {
|
|
1346
|
+
for (var e = r > 1 ? void 0 : r ? Yo(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1347
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1348
|
+
return r && e && Qo(o, a, e), e;
|
|
1349
1349
|
};
|
|
1350
|
-
let
|
|
1350
|
+
let y = class extends x {
|
|
1351
1351
|
constructor() {
|
|
1352
1352
|
super(...arguments), this.value = "", this.rows = 4, this.readonly = !1;
|
|
1353
1353
|
}
|
|
@@ -1356,15 +1356,15 @@ let C = class extends x {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
updated() {
|
|
1358
1358
|
this.internals.setFormValue(this.value);
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1359
|
+
const t = this.renderRoot.querySelector("textarea");
|
|
1360
|
+
t && this.syncValidity(t);
|
|
1361
1361
|
}
|
|
1362
|
-
focus(
|
|
1363
|
-
var
|
|
1364
|
-
(
|
|
1362
|
+
focus(t) {
|
|
1363
|
+
var o;
|
|
1364
|
+
(o = this.renderRoot.querySelector("textarea")) == null || o.focus(t);
|
|
1365
1365
|
}
|
|
1366
|
-
handleInput(
|
|
1367
|
-
this.value =
|
|
1366
|
+
handleInput(t) {
|
|
1367
|
+
this.value = t.target.value;
|
|
1368
1368
|
}
|
|
1369
1369
|
handleChange() {
|
|
1370
1370
|
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -1377,8 +1377,8 @@ let C = class extends x {
|
|
|
1377
1377
|
id="textarea"
|
|
1378
1378
|
class="control"
|
|
1379
1379
|
rows=${this.rows}
|
|
1380
|
-
.value=${
|
|
1381
|
-
placeholder=${
|
|
1380
|
+
.value=${go(this.value)}
|
|
1381
|
+
placeholder=${L(this.placeholder)}
|
|
1382
1382
|
?required=${this.required}
|
|
1383
1383
|
?readonly=${this.readonly}
|
|
1384
1384
|
?disabled=${this.disabled}
|
|
@@ -1390,8 +1390,8 @@ let C = class extends x {
|
|
|
1390
1390
|
`;
|
|
1391
1391
|
}
|
|
1392
1392
|
};
|
|
1393
|
-
|
|
1394
|
-
|
|
1393
|
+
y.styles = [
|
|
1394
|
+
de,
|
|
1395
1395
|
d`
|
|
1396
1396
|
textarea.control {
|
|
1397
1397
|
resize: vertical;
|
|
@@ -1399,27 +1399,27 @@ C.styles = [
|
|
|
1399
1399
|
}
|
|
1400
1400
|
`
|
|
1401
1401
|
];
|
|
1402
|
-
|
|
1402
|
+
he([
|
|
1403
1403
|
n()
|
|
1404
|
-
],
|
|
1405
|
-
|
|
1404
|
+
], y.prototype, "value", 2);
|
|
1405
|
+
he([
|
|
1406
1406
|
n()
|
|
1407
|
-
],
|
|
1408
|
-
|
|
1407
|
+
], y.prototype, "placeholder", 2);
|
|
1408
|
+
he([
|
|
1409
1409
|
n({ type: Number })
|
|
1410
|
-
],
|
|
1411
|
-
|
|
1410
|
+
], y.prototype, "rows", 2);
|
|
1411
|
+
he([
|
|
1412
1412
|
n({ type: Boolean, reflect: !0 })
|
|
1413
|
-
],
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
],
|
|
1417
|
-
var
|
|
1418
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1419
|
-
(i =
|
|
1420
|
-
return r && e &&
|
|
1413
|
+
], y.prototype, "readonly", 2);
|
|
1414
|
+
y = he([
|
|
1415
|
+
h("vox-textarea")
|
|
1416
|
+
], y);
|
|
1417
|
+
var et = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, pe = (t, o, a, r) => {
|
|
1418
|
+
for (var e = r > 1 ? void 0 : r ? ot(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1419
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1420
|
+
return r && e && et(o, a, e), e;
|
|
1421
1421
|
};
|
|
1422
|
-
let
|
|
1422
|
+
let w = class extends p {
|
|
1423
1423
|
constructor() {
|
|
1424
1424
|
super(...arguments), this.alt = "", this.initials = "", this.size = "md";
|
|
1425
1425
|
}
|
|
@@ -1431,7 +1431,7 @@ let M = class extends h {
|
|
|
1431
1431
|
`;
|
|
1432
1432
|
}
|
|
1433
1433
|
};
|
|
1434
|
-
|
|
1434
|
+
w.styles = d`
|
|
1435
1435
|
:host {
|
|
1436
1436
|
display: inline-block;
|
|
1437
1437
|
}
|
|
@@ -1479,33 +1479,33 @@ M.styles = d`
|
|
|
1479
1479
|
font-size: 28px;
|
|
1480
1480
|
}
|
|
1481
1481
|
`;
|
|
1482
|
-
|
|
1482
|
+
pe([
|
|
1483
1483
|
n()
|
|
1484
|
-
],
|
|
1485
|
-
|
|
1484
|
+
], w.prototype, "src", 2);
|
|
1485
|
+
pe([
|
|
1486
1486
|
n()
|
|
1487
|
-
],
|
|
1488
|
-
|
|
1487
|
+
], w.prototype, "alt", 2);
|
|
1488
|
+
pe([
|
|
1489
1489
|
n()
|
|
1490
|
-
],
|
|
1491
|
-
|
|
1490
|
+
], w.prototype, "initials", 2);
|
|
1491
|
+
pe([
|
|
1492
1492
|
n({ reflect: !0 })
|
|
1493
|
-
],
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
],
|
|
1497
|
-
var
|
|
1498
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1499
|
-
(i =
|
|
1500
|
-
return r && e &&
|
|
1493
|
+
], w.prototype, "size", 2);
|
|
1494
|
+
w = pe([
|
|
1495
|
+
h("vox-avatar")
|
|
1496
|
+
], w);
|
|
1497
|
+
var tt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, ro = (t, o, a, r) => {
|
|
1498
|
+
for (var e = r > 1 ? void 0 : r ? rt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1499
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1500
|
+
return r && e && tt(o, a, e), e;
|
|
1501
1501
|
};
|
|
1502
|
-
let
|
|
1502
|
+
let K = class extends p {
|
|
1503
1503
|
constructor() {
|
|
1504
1504
|
super(...arguments), this.heading = "", this.reverse = !1, this.hasActions = !1;
|
|
1505
1505
|
}
|
|
1506
|
-
handleActionsSlotChange(
|
|
1507
|
-
const
|
|
1508
|
-
this.hasActions =
|
|
1506
|
+
handleActionsSlotChange(t) {
|
|
1507
|
+
const o = t.target;
|
|
1508
|
+
this.hasActions = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
1509
1509
|
}
|
|
1510
1510
|
render() {
|
|
1511
1511
|
return l`
|
|
@@ -1522,7 +1522,7 @@ let W = class extends h {
|
|
|
1522
1522
|
`;
|
|
1523
1523
|
}
|
|
1524
1524
|
};
|
|
1525
|
-
|
|
1525
|
+
K.styles = d`
|
|
1526
1526
|
:host {
|
|
1527
1527
|
display: block;
|
|
1528
1528
|
font-family: var(--vox-font-family-base);
|
|
@@ -1584,21 +1584,21 @@ W.styles = d`
|
|
|
1584
1584
|
display: none;
|
|
1585
1585
|
}
|
|
1586
1586
|
`;
|
|
1587
|
-
|
|
1587
|
+
ro([
|
|
1588
1588
|
n()
|
|
1589
|
-
],
|
|
1590
|
-
|
|
1589
|
+
], K.prototype, "heading", 2);
|
|
1590
|
+
ro([
|
|
1591
1591
|
n({ type: Boolean, reflect: !0 })
|
|
1592
|
-
],
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
],
|
|
1596
|
-
var
|
|
1597
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1598
|
-
(i =
|
|
1592
|
+
], K.prototype, "reverse", 2);
|
|
1593
|
+
K = ro([
|
|
1594
|
+
h("vox-billboard")
|
|
1595
|
+
], K);
|
|
1596
|
+
var at = Object.getOwnPropertyDescriptor, st = (t, o, a, r) => {
|
|
1597
|
+
for (var e = r > 1 ? void 0 : r ? at(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1598
|
+
(i = t[s]) && (e = i(e) || e);
|
|
1599
1599
|
return e;
|
|
1600
1600
|
};
|
|
1601
|
-
let
|
|
1601
|
+
let Ze = class extends p {
|
|
1602
1602
|
render() {
|
|
1603
1603
|
return l`
|
|
1604
1604
|
<nav aria-label="Breadcrumbs">
|
|
@@ -1607,7 +1607,7 @@ let Xe = class extends h {
|
|
|
1607
1607
|
`;
|
|
1608
1608
|
}
|
|
1609
1609
|
};
|
|
1610
|
-
|
|
1610
|
+
Ze.styles = d`
|
|
1611
1611
|
:host {
|
|
1612
1612
|
display: block;
|
|
1613
1613
|
font-family: var(--vox-font-family-base);
|
|
@@ -1641,21 +1641,21 @@ Xe.styles = d`
|
|
|
1641
1641
|
color: var(--vox-color-text-3);
|
|
1642
1642
|
}
|
|
1643
1643
|
`;
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
],
|
|
1647
|
-
var
|
|
1648
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1649
|
-
(i =
|
|
1650
|
-
return r && e &&
|
|
1644
|
+
Ze = st([
|
|
1645
|
+
h("vox-breadcrumbs")
|
|
1646
|
+
], Ze);
|
|
1647
|
+
var it = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, Ae = (t, o, a, r) => {
|
|
1648
|
+
for (var e = r > 1 ? void 0 : r ? nt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1649
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1650
|
+
return r && e && it(o, a, e), e;
|
|
1651
1651
|
};
|
|
1652
|
-
let
|
|
1652
|
+
let D = class extends p {
|
|
1653
1653
|
constructor() {
|
|
1654
|
-
super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (
|
|
1655
|
-
this.mobileOpen && !
|
|
1656
|
-
}, this.handleKeydown = (
|
|
1657
|
-
var
|
|
1658
|
-
|
|
1654
|
+
super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (t) => {
|
|
1655
|
+
this.mobileOpen && !t.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
1656
|
+
}, this.handleKeydown = (t) => {
|
|
1657
|
+
var o;
|
|
1658
|
+
t.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (o = this.renderRoot.querySelector(".menu-toggle")) == null || o.focus());
|
|
1659
1659
|
}, this.toggleMobileMenu = () => {
|
|
1660
1660
|
this.mobileOpen = !this.mobileOpen;
|
|
1661
1661
|
}, this.closeMobileMenu = () => {
|
|
@@ -1693,7 +1693,7 @@ let N = class extends h {
|
|
|
1693
1693
|
stroke-linejoin="round"
|
|
1694
1694
|
aria-hidden="true"
|
|
1695
1695
|
>
|
|
1696
|
-
${this.mobileOpen ?
|
|
1696
|
+
${this.mobileOpen ? m.close : m.menu}
|
|
1697
1697
|
</svg>
|
|
1698
1698
|
</button>
|
|
1699
1699
|
<div id="nav-wrap" class="nav-wrap${this.mobileOpen ? " open" : ""}">
|
|
@@ -1708,7 +1708,7 @@ let N = class extends h {
|
|
|
1708
1708
|
`;
|
|
1709
1709
|
}
|
|
1710
1710
|
};
|
|
1711
|
-
|
|
1711
|
+
D.styles = d`
|
|
1712
1712
|
:host {
|
|
1713
1713
|
display: block;
|
|
1714
1714
|
font-family: var(--vox-font-family-base);
|
|
@@ -1838,24 +1838,24 @@ N.styles = d`
|
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
1840
1840
|
`;
|
|
1841
|
-
|
|
1841
|
+
Ae([
|
|
1842
1842
|
n({ attribute: "site-title" })
|
|
1843
|
-
],
|
|
1844
|
-
|
|
1843
|
+
], D.prototype, "siteTitle", 2);
|
|
1844
|
+
Ae([
|
|
1845
1845
|
n()
|
|
1846
|
-
],
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
],
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
],
|
|
1853
|
-
var
|
|
1854
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1855
|
-
(i =
|
|
1856
|
-
return r && e &&
|
|
1846
|
+
], D.prototype, "href", 2);
|
|
1847
|
+
Ae([
|
|
1848
|
+
De()
|
|
1849
|
+
], D.prototype, "mobileOpen", 2);
|
|
1850
|
+
D = Ae([
|
|
1851
|
+
h("vox-header")
|
|
1852
|
+
], D);
|
|
1853
|
+
var lt = Object.defineProperty, ct = Object.getOwnPropertyDescriptor, ve = (t, o, a, r) => {
|
|
1854
|
+
for (var e = r > 1 ? void 0 : r ? ct(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1855
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1856
|
+
return r && e && lt(o, a, e), e;
|
|
1857
1857
|
};
|
|
1858
|
-
let
|
|
1858
|
+
let $ = class extends p {
|
|
1859
1859
|
constructor() {
|
|
1860
1860
|
super(...arguments), this.previousLabel = "", this.nextLabel = "";
|
|
1861
1861
|
}
|
|
@@ -1878,7 +1878,7 @@ let O = class extends h {
|
|
|
1878
1878
|
`;
|
|
1879
1879
|
}
|
|
1880
1880
|
};
|
|
1881
|
-
|
|
1881
|
+
$.styles = d`
|
|
1882
1882
|
:host {
|
|
1883
1883
|
display: block;
|
|
1884
1884
|
font-family: var(--vox-font-family-base);
|
|
@@ -1928,37 +1928,37 @@ O.styles = d`
|
|
|
1928
1928
|
color: var(--vox-color-brand-1);
|
|
1929
1929
|
}
|
|
1930
1930
|
`;
|
|
1931
|
-
|
|
1931
|
+
ve([
|
|
1932
1932
|
n({ attribute: "previous-href" })
|
|
1933
|
-
],
|
|
1934
|
-
|
|
1933
|
+
], $.prototype, "previousHref", 2);
|
|
1934
|
+
ve([
|
|
1935
1935
|
n({ attribute: "previous-label" })
|
|
1936
|
-
],
|
|
1937
|
-
|
|
1936
|
+
], $.prototype, "previousLabel", 2);
|
|
1937
|
+
ve([
|
|
1938
1938
|
n({ attribute: "next-href" })
|
|
1939
|
-
],
|
|
1940
|
-
|
|
1939
|
+
], $.prototype, "nextHref", 2);
|
|
1940
|
+
ve([
|
|
1941
1941
|
n({ attribute: "next-label" })
|
|
1942
|
-
],
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
],
|
|
1946
|
-
var
|
|
1947
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1948
|
-
(i =
|
|
1949
|
-
return r && e &&
|
|
1942
|
+
], $.prototype, "nextLabel", 2);
|
|
1943
|
+
$ = ve([
|
|
1944
|
+
h("vox-series-nav")
|
|
1945
|
+
], $);
|
|
1946
|
+
var dt = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, u = (t, o, a, r) => {
|
|
1947
|
+
for (var e = r > 1 ? void 0 : r ? ht(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
1948
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
1949
|
+
return r && e && dt(o, a, e), e;
|
|
1950
1950
|
};
|
|
1951
|
-
let
|
|
1951
|
+
let E = class extends p {
|
|
1952
1952
|
constructor() {
|
|
1953
|
-
super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (
|
|
1954
|
-
this.mobileOpen && !
|
|
1955
|
-
}, this.handleKeydown = (
|
|
1956
|
-
var
|
|
1957
|
-
|
|
1953
|
+
super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (t) => {
|
|
1954
|
+
this.mobileOpen && !t.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
1955
|
+
}, this.handleKeydown = (t) => {
|
|
1956
|
+
var o;
|
|
1957
|
+
t.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (o = this.renderRoot.querySelector(".toggle")) == null || o.focus());
|
|
1958
1958
|
}, this.toggleMobile = () => {
|
|
1959
1959
|
this.mobileOpen = !this.mobileOpen;
|
|
1960
|
-
}, this.handleNavClick = (
|
|
1961
|
-
|
|
1960
|
+
}, this.handleNavClick = (t) => {
|
|
1961
|
+
t.composedPath().some((o) => o instanceof HTMLAnchorElement) && (this.mobileOpen = !1);
|
|
1962
1962
|
};
|
|
1963
1963
|
}
|
|
1964
1964
|
connectedCallback() {
|
|
@@ -1987,7 +1987,7 @@ let T = class extends h {
|
|
|
1987
1987
|
stroke-linejoin="round"
|
|
1988
1988
|
aria-hidden="true"
|
|
1989
1989
|
>
|
|
1990
|
-
${this.mobileOpen ?
|
|
1990
|
+
${this.mobileOpen ? m.close : m.menu}
|
|
1991
1991
|
</svg>
|
|
1992
1992
|
</button>
|
|
1993
1993
|
<nav
|
|
@@ -2001,7 +2001,7 @@ let T = class extends h {
|
|
|
2001
2001
|
`;
|
|
2002
2002
|
}
|
|
2003
2003
|
};
|
|
2004
|
-
|
|
2004
|
+
E.styles = d`
|
|
2005
2005
|
:host {
|
|
2006
2006
|
display: block;
|
|
2007
2007
|
font-family: var(--vox-font-family-base);
|
|
@@ -2061,19 +2061,19 @@ T.styles = d`
|
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
2063
2063
|
`;
|
|
2064
|
-
|
|
2064
|
+
u([
|
|
2065
2065
|
n()
|
|
2066
|
-
],
|
|
2067
|
-
|
|
2066
|
+
], E.prototype, "label", 2);
|
|
2067
|
+
u([
|
|
2068
2068
|
n({ attribute: "toggle-label" })
|
|
2069
|
-
],
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
],
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
],
|
|
2076
|
-
let
|
|
2069
|
+
], E.prototype, "toggleLabel", 2);
|
|
2070
|
+
u([
|
|
2071
|
+
De()
|
|
2072
|
+
], E.prototype, "mobileOpen", 2);
|
|
2073
|
+
E = u([
|
|
2074
|
+
h("vox-sidenav")
|
|
2075
|
+
], E);
|
|
2076
|
+
let U = class extends p {
|
|
2077
2077
|
constructor() {
|
|
2078
2078
|
super(...arguments), this.heading = "", this.open = !1;
|
|
2079
2079
|
}
|
|
@@ -2096,7 +2096,7 @@ let J = class extends h {
|
|
|
2096
2096
|
`;
|
|
2097
2097
|
}
|
|
2098
2098
|
};
|
|
2099
|
-
|
|
2099
|
+
U.styles = d`
|
|
2100
2100
|
:host {
|
|
2101
2101
|
display: block;
|
|
2102
2102
|
font-family: var(--vox-font-family-base);
|
|
@@ -2153,22 +2153,22 @@ J.styles = d`
|
|
|
2153
2153
|
display: flex;
|
|
2154
2154
|
}
|
|
2155
2155
|
`;
|
|
2156
|
-
|
|
2156
|
+
u([
|
|
2157
2157
|
n()
|
|
2158
|
-
],
|
|
2159
|
-
|
|
2158
|
+
], U.prototype, "heading", 2);
|
|
2159
|
+
u([
|
|
2160
2160
|
n({ type: Boolean, reflect: !0 })
|
|
2161
|
-
],
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
],
|
|
2165
|
-
let
|
|
2161
|
+
], U.prototype, "open", 2);
|
|
2162
|
+
U = u([
|
|
2163
|
+
h("vox-sidenav-group")
|
|
2164
|
+
], U);
|
|
2165
|
+
let G = class extends p {
|
|
2166
2166
|
constructor() {
|
|
2167
2167
|
super(...arguments), this.href = "#", this.current = !1, this.hasIcon = !1;
|
|
2168
2168
|
}
|
|
2169
|
-
handleIconSlotChange(
|
|
2170
|
-
const
|
|
2171
|
-
this.hasIcon =
|
|
2169
|
+
handleIconSlotChange(t) {
|
|
2170
|
+
const o = t.target;
|
|
2171
|
+
this.hasIcon = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2172
2172
|
}
|
|
2173
2173
|
render() {
|
|
2174
2174
|
return l`
|
|
@@ -2181,7 +2181,7 @@ let Q = class extends h {
|
|
|
2181
2181
|
`;
|
|
2182
2182
|
}
|
|
2183
2183
|
};
|
|
2184
|
-
|
|
2184
|
+
G.styles = d`
|
|
2185
2185
|
:host {
|
|
2186
2186
|
display: block;
|
|
2187
2187
|
font-family: var(--vox-font-family-base);
|
|
@@ -2225,21 +2225,21 @@ Q.styles = d`
|
|
|
2225
2225
|
display: none;
|
|
2226
2226
|
}
|
|
2227
2227
|
`;
|
|
2228
|
-
|
|
2228
|
+
u([
|
|
2229
2229
|
n()
|
|
2230
|
-
],
|
|
2231
|
-
|
|
2230
|
+
], G.prototype, "href", 2);
|
|
2231
|
+
u([
|
|
2232
2232
|
n({ type: Boolean, reflect: !0 })
|
|
2233
|
-
],
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
],
|
|
2237
|
-
var
|
|
2238
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
2239
|
-
(i =
|
|
2240
|
-
return r && e &&
|
|
2233
|
+
], G.prototype, "current", 2);
|
|
2234
|
+
G = u([
|
|
2235
|
+
h("vox-sidenav-item")
|
|
2236
|
+
], G);
|
|
2237
|
+
var pt = Object.defineProperty, vt = Object.getOwnPropertyDescriptor, yo = (t, o, a, r) => {
|
|
2238
|
+
for (var e = r > 1 ? void 0 : r ? vt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
2239
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
2240
|
+
return r && e && pt(o, a, e), e;
|
|
2241
2241
|
};
|
|
2242
|
-
let
|
|
2242
|
+
let _e = class extends p {
|
|
2243
2243
|
constructor() {
|
|
2244
2244
|
super(...arguments), this.label = "Secondary";
|
|
2245
2245
|
}
|
|
@@ -2251,7 +2251,7 @@ let Ve = class extends h {
|
|
|
2251
2251
|
`;
|
|
2252
2252
|
}
|
|
2253
2253
|
};
|
|
2254
|
-
|
|
2254
|
+
_e.styles = d`
|
|
2255
2255
|
:host {
|
|
2256
2256
|
display: block;
|
|
2257
2257
|
font-family: var(--vox-font-family-base);
|
|
@@ -2286,18 +2286,18 @@ Ve.styles = d`
|
|
|
2286
2286
|
border-bottom-color: var(--vox-color-brand-1);
|
|
2287
2287
|
}
|
|
2288
2288
|
`;
|
|
2289
|
-
|
|
2289
|
+
yo([
|
|
2290
2290
|
n()
|
|
2291
|
-
],
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
],
|
|
2295
|
-
var
|
|
2296
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
2297
|
-
(i =
|
|
2298
|
-
return r && e &&
|
|
2291
|
+
], _e.prototype, "label", 2);
|
|
2292
|
+
_e = yo([
|
|
2293
|
+
h("vox-subnav")
|
|
2294
|
+
], _e);
|
|
2295
|
+
var xt = Object.defineProperty, ut = Object.getOwnPropertyDescriptor, k = (t, o, a, r) => {
|
|
2296
|
+
for (var e = r > 1 ? void 0 : r ? ut(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
2297
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
2298
|
+
return r && e && xt(o, a, e), e;
|
|
2299
2299
|
};
|
|
2300
|
-
let
|
|
2300
|
+
let Ke = class extends p {
|
|
2301
2301
|
get tabs() {
|
|
2302
2302
|
return [...this.querySelectorAll("vox-tab")];
|
|
2303
2303
|
}
|
|
@@ -2305,27 +2305,27 @@ let We = class extends h {
|
|
|
2305
2305
|
return [...this.querySelectorAll("vox-tab-panel")];
|
|
2306
2306
|
}
|
|
2307
2307
|
sync() {
|
|
2308
|
-
const
|
|
2309
|
-
|
|
2310
|
-
const
|
|
2308
|
+
const t = this.tabs;
|
|
2309
|
+
t.length > 0 && !t.some((a) => a.selected) && (t[0].selected = !0);
|
|
2310
|
+
const o = t.find((a) => a.selected);
|
|
2311
2311
|
this.panels.forEach((a) => {
|
|
2312
|
-
a.active = a.name === (
|
|
2312
|
+
a.active = a.name === (o == null ? void 0 : o.panel);
|
|
2313
2313
|
});
|
|
2314
2314
|
}
|
|
2315
|
-
handleSelect(
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2315
|
+
handleSelect(t) {
|
|
2316
|
+
const o = t.target;
|
|
2317
|
+
o.tagName === "VOX-TAB" && (this.tabs.forEach((a) => a.selected = a === o), this.sync(), this.dispatchEvent(
|
|
2318
2318
|
new CustomEvent("vox-tab-change", {
|
|
2319
|
-
detail: { panel:
|
|
2319
|
+
detail: { panel: o.panel },
|
|
2320
2320
|
bubbles: !0,
|
|
2321
2321
|
composed: !0
|
|
2322
2322
|
})
|
|
2323
2323
|
));
|
|
2324
2324
|
}
|
|
2325
|
-
handleKeydown(
|
|
2326
|
-
const a = { ArrowRight: 1, ArrowLeft: -1 }[
|
|
2325
|
+
handleKeydown(t) {
|
|
2326
|
+
const a = { ArrowRight: 1, ArrowLeft: -1 }[t.key];
|
|
2327
2327
|
if (!a) return;
|
|
2328
|
-
|
|
2328
|
+
t.preventDefault();
|
|
2329
2329
|
const r = this.tabs, e = r.findIndex((i) => i.selected), s = r[(e + a + r.length) % r.length];
|
|
2330
2330
|
s.select(), s.focusTab();
|
|
2331
2331
|
}
|
|
@@ -2343,7 +2343,7 @@ let We = class extends h {
|
|
|
2343
2343
|
`;
|
|
2344
2344
|
}
|
|
2345
2345
|
};
|
|
2346
|
-
|
|
2346
|
+
Ke.styles = d`
|
|
2347
2347
|
:host {
|
|
2348
2348
|
display: block;
|
|
2349
2349
|
}
|
|
@@ -2354,10 +2354,10 @@ We.styles = d`
|
|
|
2354
2354
|
border-bottom: 1px solid var(--vox-color-divider);
|
|
2355
2355
|
}
|
|
2356
2356
|
`;
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
],
|
|
2360
|
-
let
|
|
2357
|
+
Ke = k([
|
|
2358
|
+
h("vox-tabs")
|
|
2359
|
+
], Ke);
|
|
2360
|
+
let X = class extends p {
|
|
2361
2361
|
constructor() {
|
|
2362
2362
|
super(...arguments), this.panel = "", this.selected = !1;
|
|
2363
2363
|
}
|
|
@@ -2367,8 +2367,8 @@ let ee = class extends h {
|
|
|
2367
2367
|
);
|
|
2368
2368
|
}
|
|
2369
2369
|
focusTab() {
|
|
2370
|
-
var
|
|
2371
|
-
(
|
|
2370
|
+
var t;
|
|
2371
|
+
(t = this.renderRoot.querySelector(".tab")) == null || t.focus();
|
|
2372
2372
|
}
|
|
2373
2373
|
render() {
|
|
2374
2374
|
return l`
|
|
@@ -2384,7 +2384,7 @@ let ee = class extends h {
|
|
|
2384
2384
|
`;
|
|
2385
2385
|
}
|
|
2386
2386
|
};
|
|
2387
|
-
|
|
2387
|
+
X.styles = d`
|
|
2388
2388
|
:host {
|
|
2389
2389
|
display: block;
|
|
2390
2390
|
font-family: var(--vox-font-family-base);
|
|
@@ -2419,16 +2419,16 @@ ee.styles = d`
|
|
|
2419
2419
|
border-bottom-color: var(--vox-color-brand-1);
|
|
2420
2420
|
}
|
|
2421
2421
|
`;
|
|
2422
|
-
|
|
2422
|
+
k([
|
|
2423
2423
|
n()
|
|
2424
|
-
],
|
|
2425
|
-
|
|
2424
|
+
], X.prototype, "panel", 2);
|
|
2425
|
+
k([
|
|
2426
2426
|
n({ type: Boolean, reflect: !0 })
|
|
2427
|
-
],
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
],
|
|
2431
|
-
let
|
|
2427
|
+
], X.prototype, "selected", 2);
|
|
2428
|
+
X = k([
|
|
2429
|
+
h("vox-tab")
|
|
2430
|
+
], X);
|
|
2431
|
+
let J = class extends p {
|
|
2432
2432
|
constructor() {
|
|
2433
2433
|
super(...arguments), this.name = "", this.active = !1;
|
|
2434
2434
|
}
|
|
@@ -2436,7 +2436,7 @@ let te = class extends h {
|
|
|
2436
2436
|
return l`<div role="tabpanel"><slot></slot></div>`;
|
|
2437
2437
|
}
|
|
2438
2438
|
};
|
|
2439
|
-
|
|
2439
|
+
J.styles = d`
|
|
2440
2440
|
:host {
|
|
2441
2441
|
display: none;
|
|
2442
2442
|
font-family: var(--vox-font-family-base);
|
|
@@ -2450,21 +2450,21 @@ te.styles = d`
|
|
|
2450
2450
|
display: block;
|
|
2451
2451
|
}
|
|
2452
2452
|
`;
|
|
2453
|
-
|
|
2453
|
+
k([
|
|
2454
2454
|
n()
|
|
2455
|
-
],
|
|
2456
|
-
|
|
2455
|
+
], J.prototype, "name", 2);
|
|
2456
|
+
k([
|
|
2457
2457
|
n({ type: Boolean, reflect: !0 })
|
|
2458
|
-
],
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
],
|
|
2462
|
-
var
|
|
2463
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
2464
|
-
(i =
|
|
2465
|
-
return r && e &&
|
|
2458
|
+
], J.prototype, "active", 2);
|
|
2459
|
+
J = k([
|
|
2460
|
+
h("vox-tab-panel")
|
|
2461
|
+
], J);
|
|
2462
|
+
var ft = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, xe = (t, o, a, r) => {
|
|
2463
|
+
for (var e = r > 1 ? void 0 : r ? gt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
2464
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
2465
|
+
return r && e && ft(o, a, e), e;
|
|
2466
2466
|
};
|
|
2467
|
-
let
|
|
2467
|
+
let Ce = class extends p {
|
|
2468
2468
|
constructor() {
|
|
2469
2469
|
super(...arguments), this.heading = "On this page";
|
|
2470
2470
|
}
|
|
@@ -2477,7 +2477,7 @@ let je = class extends h {
|
|
|
2477
2477
|
`;
|
|
2478
2478
|
}
|
|
2479
2479
|
};
|
|
2480
|
-
|
|
2480
|
+
Ce.styles = d`
|
|
2481
2481
|
:host {
|
|
2482
2482
|
display: block;
|
|
2483
2483
|
font-family: var(--vox-font-family-base);
|
|
@@ -2498,19 +2498,19 @@ je.styles = d`
|
|
|
2498
2498
|
border-left: 1px solid var(--vox-color-divider);
|
|
2499
2499
|
}
|
|
2500
2500
|
`;
|
|
2501
|
-
|
|
2501
|
+
xe([
|
|
2502
2502
|
n()
|
|
2503
|
-
],
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
],
|
|
2507
|
-
let
|
|
2503
|
+
], Ce.prototype, "heading", 2);
|
|
2504
|
+
Ce = xe([
|
|
2505
|
+
h("vox-toc")
|
|
2506
|
+
], Ce);
|
|
2507
|
+
let W = class extends p {
|
|
2508
2508
|
constructor() {
|
|
2509
2509
|
super(...arguments), this.href = "#", this.current = !1, this.hasChildren = !1;
|
|
2510
2510
|
}
|
|
2511
|
-
handleChildrenSlotChange(
|
|
2512
|
-
const
|
|
2513
|
-
this.hasChildren =
|
|
2511
|
+
handleChildrenSlotChange(t) {
|
|
2512
|
+
const o = t.target;
|
|
2513
|
+
this.hasChildren = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2514
2514
|
}
|
|
2515
2515
|
render() {
|
|
2516
2516
|
return l`
|
|
@@ -2523,7 +2523,7 @@ let oe = class extends h {
|
|
|
2523
2523
|
`;
|
|
2524
2524
|
}
|
|
2525
2525
|
};
|
|
2526
|
-
|
|
2526
|
+
W.styles = d`
|
|
2527
2527
|
:host {
|
|
2528
2528
|
display: block;
|
|
2529
2529
|
font-family: var(--vox-font-family-base);
|
|
@@ -2569,21 +2569,21 @@ oe.styles = d`
|
|
|
2569
2569
|
display: none;
|
|
2570
2570
|
}
|
|
2571
2571
|
`;
|
|
2572
|
-
|
|
2572
|
+
xe([
|
|
2573
2573
|
n()
|
|
2574
|
-
],
|
|
2575
|
-
|
|
2574
|
+
], W.prototype, "href", 2);
|
|
2575
|
+
xe([
|
|
2576
2576
|
n({ type: Boolean, reflect: !0 })
|
|
2577
|
-
],
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
],
|
|
2581
|
-
var
|
|
2582
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
2583
|
-
(i =
|
|
2584
|
-
return r && e &&
|
|
2577
|
+
], W.prototype, "current", 2);
|
|
2578
|
+
W = xe([
|
|
2579
|
+
h("vox-toc-item")
|
|
2580
|
+
], W);
|
|
2581
|
+
var bt = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, ue = (t, o, a, r) => {
|
|
2582
|
+
for (var e = r > 1 ? void 0 : r ? mt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
2583
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
2584
|
+
return r && e && bt(o, a, e), e;
|
|
2585
2585
|
};
|
|
2586
|
-
let
|
|
2586
|
+
let _ = class extends p {
|
|
2587
2587
|
constructor() {
|
|
2588
2588
|
super(...arguments), this.heading = "", this.open = !1, this.lightDismiss = !1, this.hasFooter = !1;
|
|
2589
2589
|
}
|
|
@@ -2601,12 +2601,12 @@ let k = class extends h {
|
|
|
2601
2601
|
new CustomEvent("vox-close", { bubbles: !0, composed: !0 })
|
|
2602
2602
|
);
|
|
2603
2603
|
}
|
|
2604
|
-
handleClick(
|
|
2605
|
-
this.lightDismiss &&
|
|
2604
|
+
handleClick(t) {
|
|
2605
|
+
this.lightDismiss && t.target === this.dialogEl && this.close();
|
|
2606
2606
|
}
|
|
2607
|
-
handleFooterSlotChange(
|
|
2608
|
-
const
|
|
2609
|
-
this.hasFooter =
|
|
2607
|
+
handleFooterSlotChange(t) {
|
|
2608
|
+
const o = t.target;
|
|
2609
|
+
this.hasFooter = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2610
2610
|
}
|
|
2611
2611
|
render() {
|
|
2612
2612
|
return l`
|
|
@@ -2631,7 +2631,7 @@ let k = class extends h {
|
|
|
2631
2631
|
`;
|
|
2632
2632
|
}
|
|
2633
2633
|
};
|
|
2634
|
-
|
|
2634
|
+
_.styles = d`
|
|
2635
2635
|
dialog {
|
|
2636
2636
|
box-sizing: border-box;
|
|
2637
2637
|
width: min(90vw, 480px);
|
|
@@ -2718,27 +2718,27 @@ k.styles = d`
|
|
|
2718
2718
|
margin-bottom: 0;
|
|
2719
2719
|
}
|
|
2720
2720
|
`;
|
|
2721
|
-
|
|
2721
|
+
ue([
|
|
2722
2722
|
n()
|
|
2723
|
-
],
|
|
2724
|
-
|
|
2723
|
+
], _.prototype, "heading", 2);
|
|
2724
|
+
ue([
|
|
2725
2725
|
n({ type: Boolean })
|
|
2726
|
-
],
|
|
2727
|
-
|
|
2726
|
+
], _.prototype, "open", 2);
|
|
2727
|
+
ue([
|
|
2728
2728
|
n({ type: Boolean, attribute: "light-dismiss" })
|
|
2729
|
-
],
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
],
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
],
|
|
2736
|
-
var
|
|
2737
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
2738
|
-
(i =
|
|
2739
|
-
return r && e &&
|
|
2729
|
+
], _.prototype, "lightDismiss", 2);
|
|
2730
|
+
ue([
|
|
2731
|
+
Qe("dialog")
|
|
2732
|
+
], _.prototype, "dialogEl", 2);
|
|
2733
|
+
_ = ue([
|
|
2734
|
+
h("vox-dialog")
|
|
2735
|
+
], _);
|
|
2736
|
+
var yt = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, ao = (t, o, a, r) => {
|
|
2737
|
+
for (var e = r > 1 ? void 0 : r ? wt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
2738
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
2739
|
+
return r && e && yt(o, a, e), e;
|
|
2740
2740
|
};
|
|
2741
|
-
let
|
|
2741
|
+
let Q = class extends p {
|
|
2742
2742
|
constructor() {
|
|
2743
2743
|
super(...arguments), this.summary = "Show details", this.open = !1;
|
|
2744
2744
|
}
|
|
@@ -2765,7 +2765,7 @@ let re = class extends h {
|
|
|
2765
2765
|
`;
|
|
2766
2766
|
}
|
|
2767
2767
|
};
|
|
2768
|
-
|
|
2768
|
+
Q.styles = d`
|
|
2769
2769
|
:host {
|
|
2770
2770
|
display: block;
|
|
2771
2771
|
font-family: var(--vox-font-family-base);
|
|
@@ -2817,35 +2817,35 @@ re.styles = d`
|
|
|
2817
2817
|
display: none;
|
|
2818
2818
|
}
|
|
2819
2819
|
`;
|
|
2820
|
-
|
|
2820
|
+
ao([
|
|
2821
2821
|
n()
|
|
2822
|
-
],
|
|
2823
|
-
|
|
2822
|
+
], Q.prototype, "summary", 2);
|
|
2823
|
+
ao([
|
|
2824
2824
|
n({ type: Boolean, reflect: !0 })
|
|
2825
|
-
],
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
],
|
|
2829
|
-
var
|
|
2830
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
2831
|
-
(i =
|
|
2832
|
-
return r && e &&
|
|
2825
|
+
], Q.prototype, "open", 2);
|
|
2826
|
+
Q = ao([
|
|
2827
|
+
h("vox-disclosure")
|
|
2828
|
+
], Q);
|
|
2829
|
+
var $t = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, so = (t, o, a, r) => {
|
|
2830
|
+
for (var e = r > 1 ? void 0 : r ? _t(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
2831
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
2832
|
+
return r && e && $t(o, a, e), e;
|
|
2833
2833
|
};
|
|
2834
|
-
let
|
|
2834
|
+
let Y = class extends p {
|
|
2835
2835
|
constructor() {
|
|
2836
|
-
super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (
|
|
2837
|
-
this.open && !
|
|
2838
|
-
}, this.handleKeydown = (
|
|
2839
|
-
var
|
|
2840
|
-
if (
|
|
2841
|
-
this.open = !1, (
|
|
2836
|
+
super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (t) => {
|
|
2837
|
+
this.open && !t.composedPath().includes(this) && (this.open = !1);
|
|
2838
|
+
}, this.handleKeydown = (t) => {
|
|
2839
|
+
var o;
|
|
2840
|
+
if (t.key === "Escape" && this.open) {
|
|
2841
|
+
this.open = !1, (o = this.renderRoot.querySelector(".trigger")) == null || o.focus();
|
|
2842
2842
|
return;
|
|
2843
2843
|
}
|
|
2844
|
-
if ((
|
|
2845
|
-
|
|
2844
|
+
if ((t.key === "ArrowDown" || t.key === "ArrowUp") && this.open) {
|
|
2845
|
+
t.preventDefault();
|
|
2846
2846
|
const a = [...this.querySelectorAll("a, button")];
|
|
2847
2847
|
if (a.length === 0) return;
|
|
2848
|
-
const r = document.activeElement, e = a.indexOf(r), s =
|
|
2848
|
+
const r = document.activeElement, e = a.indexOf(r), s = t.key === "ArrowDown" ? 1 : -1;
|
|
2849
2849
|
a[(Math.max(e, 0) + s + a.length) % a.length].focus();
|
|
2850
2850
|
}
|
|
2851
2851
|
};
|
|
@@ -2878,10 +2878,16 @@ let ae = class extends h {
|
|
|
2878
2878
|
`;
|
|
2879
2879
|
}
|
|
2880
2880
|
};
|
|
2881
|
-
|
|
2881
|
+
Y.styles = d`
|
|
2882
2882
|
:host {
|
|
2883
2883
|
position: relative;
|
|
2884
2884
|
display: inline-block;
|
|
2885
|
+
/* Without this, a flex/grid container's default stretch alignment
|
|
2886
|
+
grows the host to fill the cross axis while the trigger button
|
|
2887
|
+
inside stays content-sized — and since the menu's "top: 100%" is
|
|
2888
|
+
measured against the host's own box, it then opens far below the
|
|
2889
|
+
trigger instead of right under it. */
|
|
2890
|
+
align-self: flex-start;
|
|
2885
2891
|
font-family: var(--vox-font-family-base);
|
|
2886
2892
|
}
|
|
2887
2893
|
|
|
@@ -2977,30 +2983,188 @@ ae.styles = d`
|
|
|
2977
2983
|
border-top: 1px solid var(--vox-color-divider);
|
|
2978
2984
|
}
|
|
2979
2985
|
`;
|
|
2980
|
-
|
|
2986
|
+
so([
|
|
2981
2987
|
n()
|
|
2982
|
-
],
|
|
2983
|
-
|
|
2988
|
+
], Y.prototype, "label", 2);
|
|
2989
|
+
so([
|
|
2984
2990
|
n({ type: Boolean, reflect: !0 })
|
|
2985
|
-
],
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
],
|
|
2989
|
-
var
|
|
2990
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
2991
|
-
(i =
|
|
2992
|
-
return r && e &&
|
|
2991
|
+
], Y.prototype, "open", 2);
|
|
2992
|
+
Y = so([
|
|
2993
|
+
h("vox-dropdown")
|
|
2994
|
+
], Y);
|
|
2995
|
+
var Ct = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, Be = (t, o, a, r) => {
|
|
2996
|
+
for (var e = r > 1 ? void 0 : r ? Mt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
2997
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
2998
|
+
return r && e && Ct(o, a, e), e;
|
|
2999
|
+
};
|
|
3000
|
+
let H = class extends p {
|
|
3001
|
+
constructor() {
|
|
3002
|
+
super(...arguments), this.placement = "bottom-end", this.open = !1, this.handleOutsideClick = (t) => {
|
|
3003
|
+
this.open && !t.composedPath().includes(this) && this.close();
|
|
3004
|
+
}, this.handleKeydown = (t) => {
|
|
3005
|
+
var o;
|
|
3006
|
+
if (t.key === "Escape" && this.open) {
|
|
3007
|
+
this.close(), (o = this.renderRoot.querySelector(".trigger")) == null || o.focus();
|
|
3008
|
+
return;
|
|
3009
|
+
}
|
|
3010
|
+
if ((t.key === "ArrowDown" || t.key === "ArrowUp") && this.open) {
|
|
3011
|
+
t.preventDefault();
|
|
3012
|
+
const a = [...this.querySelectorAll("a, button")].filter(
|
|
3013
|
+
(ye) => ye.slot !== "trigger"
|
|
3014
|
+
);
|
|
3015
|
+
if (a.length === 0) return;
|
|
3016
|
+
const r = document.activeElement, e = a.indexOf(r), s = t.key === "ArrowDown" ? 1 : -1;
|
|
3017
|
+
a[(Math.max(e, 0) + s + a.length) % a.length].focus();
|
|
3018
|
+
}
|
|
3019
|
+
};
|
|
3020
|
+
}
|
|
3021
|
+
connectedCallback() {
|
|
3022
|
+
super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown);
|
|
3023
|
+
}
|
|
3024
|
+
disconnectedCallback() {
|
|
3025
|
+
super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown);
|
|
3026
|
+
}
|
|
3027
|
+
toggle() {
|
|
3028
|
+
this.open ? this.close() : this.open = !0;
|
|
3029
|
+
}
|
|
3030
|
+
close() {
|
|
3031
|
+
this.open && (this.open = !1, this.dispatchEvent(new CustomEvent("vox-close", { bubbles: !0, composed: !0 })));
|
|
3032
|
+
}
|
|
3033
|
+
render() {
|
|
3034
|
+
return l`
|
|
3035
|
+
<button
|
|
3036
|
+
class="trigger"
|
|
3037
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
3038
|
+
aria-haspopup="true"
|
|
3039
|
+
aria-label=${this.label ?? v}
|
|
3040
|
+
@click=${this.toggle}
|
|
3041
|
+
>
|
|
3042
|
+
<slot name="trigger"></slot>
|
|
3043
|
+
</button>
|
|
3044
|
+
<div class="menu" role="menu">
|
|
3045
|
+
<slot @click=${() => this.close()}></slot>
|
|
3046
|
+
</div>
|
|
3047
|
+
`;
|
|
3048
|
+
}
|
|
3049
|
+
};
|
|
3050
|
+
H.styles = d`
|
|
3051
|
+
:host {
|
|
3052
|
+
position: relative;
|
|
3053
|
+
display: inline-block;
|
|
3054
|
+
/* Without this, a flex/grid container's default stretch alignment
|
|
3055
|
+
grows the host to fill the cross axis (e.g. a tall sibling, or a
|
|
3056
|
+
container given a min-height for layout purposes) while the
|
|
3057
|
+
trigger button inside stays content-sized — and since the menu's
|
|
3058
|
+
"top: 100%" is measured against the host's own box, it then opens
|
|
3059
|
+
far below the trigger instead of right under it. */
|
|
3060
|
+
align-self: flex-start;
|
|
3061
|
+
font-family: var(--vox-font-family-base);
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
.trigger {
|
|
3065
|
+
display: inline-flex;
|
|
3066
|
+
align-items: center;
|
|
3067
|
+
background: none;
|
|
3068
|
+
border: none;
|
|
3069
|
+
padding: 0;
|
|
3070
|
+
border-radius: var(--vox-radius-md);
|
|
3071
|
+
color: inherit;
|
|
3072
|
+
font: inherit;
|
|
3073
|
+
cursor: pointer;
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
.trigger:focus-visible {
|
|
3077
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
3078
|
+
outline-offset: 2px;
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
.menu {
|
|
3082
|
+
position: absolute;
|
|
3083
|
+
top: calc(100% + 4px);
|
|
3084
|
+
z-index: 10;
|
|
3085
|
+
min-width: 180px;
|
|
3086
|
+
display: none;
|
|
3087
|
+
flex-direction: column;
|
|
3088
|
+
padding: var(--vox-space-2);
|
|
3089
|
+
background-color: var(--vox-color-bg-elv);
|
|
3090
|
+
border: 1px solid var(--vox-color-divider);
|
|
3091
|
+
border-radius: var(--vox-radius-md);
|
|
3092
|
+
box-shadow: var(--vox-shadow-2);
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
:host([placement='bottom-start']) .menu {
|
|
3096
|
+
left: 0;
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
:host([placement='bottom-end']) .menu {
|
|
3100
|
+
right: 0;
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
:host([open]) .menu {
|
|
3104
|
+
display: flex;
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
::slotted(a),
|
|
3108
|
+
::slotted(button) {
|
|
3109
|
+
display: block;
|
|
3110
|
+
width: 100%;
|
|
3111
|
+
box-sizing: border-box;
|
|
3112
|
+
padding: var(--vox-space-2) var(--vox-space-3);
|
|
3113
|
+
background: none;
|
|
3114
|
+
border: none;
|
|
3115
|
+
border-radius: var(--vox-radius-sm);
|
|
3116
|
+
color: var(--vox-color-text-1);
|
|
3117
|
+
font-family: inherit;
|
|
3118
|
+
font-size: 14px;
|
|
3119
|
+
text-align: left;
|
|
3120
|
+
text-decoration: none;
|
|
3121
|
+
cursor: pointer;
|
|
3122
|
+
white-space: nowrap;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
::slotted(a:hover),
|
|
3126
|
+
::slotted(button:hover),
|
|
3127
|
+
::slotted(a:focus-visible),
|
|
3128
|
+
::slotted(button:focus-visible) {
|
|
3129
|
+
background-color: var(--vox-color-brand-soft);
|
|
3130
|
+
color: var(--vox-color-brand-1);
|
|
3131
|
+
outline: none;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
::slotted(hr) {
|
|
3135
|
+
width: 100%;
|
|
3136
|
+
margin: var(--vox-space-1) 0;
|
|
3137
|
+
border: none;
|
|
3138
|
+
border-top: 1px solid var(--vox-color-divider);
|
|
3139
|
+
}
|
|
3140
|
+
`;
|
|
3141
|
+
Be([
|
|
3142
|
+
n()
|
|
3143
|
+
], H.prototype, "label", 2);
|
|
3144
|
+
Be([
|
|
3145
|
+
n({ reflect: !0 })
|
|
3146
|
+
], H.prototype, "placement", 2);
|
|
3147
|
+
Be([
|
|
3148
|
+
n({ type: Boolean, reflect: !0 })
|
|
3149
|
+
], H.prototype, "open", 2);
|
|
3150
|
+
H = Be([
|
|
3151
|
+
h("vox-menu")
|
|
3152
|
+
], H);
|
|
3153
|
+
var Ot = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, fe = (t, o, a, r) => {
|
|
3154
|
+
for (var e = r > 1 ? void 0 : r ? kt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
3155
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
3156
|
+
return r && e && Ot(o, a, e), e;
|
|
2993
3157
|
};
|
|
2994
|
-
let
|
|
3158
|
+
let Me = class extends p {
|
|
2995
3159
|
constructor() {
|
|
2996
3160
|
super(...arguments), this.single = !1;
|
|
2997
3161
|
}
|
|
2998
|
-
handleToggle(
|
|
3162
|
+
handleToggle(t) {
|
|
2999
3163
|
if (!this.single) return;
|
|
3000
|
-
const
|
|
3001
|
-
|
|
3164
|
+
const o = t.target;
|
|
3165
|
+
o.open && this.querySelectorAll("vox-accordion-item").forEach(
|
|
3002
3166
|
(a) => {
|
|
3003
|
-
a !==
|
|
3167
|
+
a !== o && (a.open = !1);
|
|
3004
3168
|
}
|
|
3005
3169
|
);
|
|
3006
3170
|
}
|
|
@@ -3008,7 +3172,7 @@ let ze = class extends h {
|
|
|
3008
3172
|
return l`<slot @vox-toggle=${this.handleToggle}></slot>`;
|
|
3009
3173
|
}
|
|
3010
3174
|
};
|
|
3011
|
-
|
|
3175
|
+
Me.styles = d`
|
|
3012
3176
|
:host {
|
|
3013
3177
|
display: block;
|
|
3014
3178
|
border: 1px solid var(--vox-color-divider);
|
|
@@ -3020,13 +3184,13 @@ ze.styles = d`
|
|
|
3020
3184
|
border-top: 1px solid var(--vox-color-divider);
|
|
3021
3185
|
}
|
|
3022
3186
|
`;
|
|
3023
|
-
|
|
3187
|
+
fe([
|
|
3024
3188
|
n({ type: Boolean })
|
|
3025
|
-
],
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
],
|
|
3029
|
-
let
|
|
3189
|
+
], Me.prototype, "single", 2);
|
|
3190
|
+
Me = fe([
|
|
3191
|
+
h("vox-accordion")
|
|
3192
|
+
], Me);
|
|
3193
|
+
let ee = class extends p {
|
|
3030
3194
|
constructor() {
|
|
3031
3195
|
super(...arguments), this.heading = "", this.open = !1;
|
|
3032
3196
|
}
|
|
@@ -3055,7 +3219,7 @@ let se = class extends h {
|
|
|
3055
3219
|
`;
|
|
3056
3220
|
}
|
|
3057
3221
|
};
|
|
3058
|
-
|
|
3222
|
+
ee.styles = d`
|
|
3059
3223
|
:host {
|
|
3060
3224
|
display: block;
|
|
3061
3225
|
font-family: var(--vox-font-family-base);
|
|
@@ -3117,27 +3281,27 @@ se.styles = d`
|
|
|
3117
3281
|
margin-bottom: 0;
|
|
3118
3282
|
}
|
|
3119
3283
|
`;
|
|
3120
|
-
|
|
3284
|
+
fe([
|
|
3121
3285
|
n()
|
|
3122
|
-
],
|
|
3123
|
-
|
|
3286
|
+
], ee.prototype, "heading", 2);
|
|
3287
|
+
fe([
|
|
3124
3288
|
n({ type: Boolean, reflect: !0 })
|
|
3125
|
-
],
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
],
|
|
3129
|
-
var
|
|
3130
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3131
|
-
(i =
|
|
3132
|
-
return r && e &&
|
|
3289
|
+
], ee.prototype, "open", 2);
|
|
3290
|
+
ee = fe([
|
|
3291
|
+
h("vox-accordion-item")
|
|
3292
|
+
], ee);
|
|
3293
|
+
var Pt = Object.defineProperty, Lt = Object.getOwnPropertyDescriptor, ge = (t, o, a, r) => {
|
|
3294
|
+
for (var e = r > 1 ? void 0 : r ? Lt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
3295
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
3296
|
+
return r && e && Pt(o, a, e), e;
|
|
3133
3297
|
};
|
|
3134
|
-
const
|
|
3298
|
+
const Vt = {
|
|
3135
3299
|
info: "info",
|
|
3136
3300
|
success: "check-circle",
|
|
3137
3301
|
warning: "warning",
|
|
3138
3302
|
danger: "x-circle"
|
|
3139
3303
|
};
|
|
3140
|
-
let
|
|
3304
|
+
let C = class extends p {
|
|
3141
3305
|
constructor() {
|
|
3142
3306
|
super(...arguments), this.variant = "info", this.heading = "", this.dismissible = !1, this.open = !0;
|
|
3143
3307
|
}
|
|
@@ -3159,7 +3323,7 @@ let L = class extends h {
|
|
|
3159
3323
|
stroke-linejoin="round"
|
|
3160
3324
|
aria-hidden="true"
|
|
3161
3325
|
>
|
|
3162
|
-
${
|
|
3326
|
+
${m[Vt[this.variant]]}
|
|
3163
3327
|
</svg>
|
|
3164
3328
|
<div class="body">
|
|
3165
3329
|
${this.heading ? l`<p class="heading">${this.heading}</p>` : v}
|
|
@@ -3176,7 +3340,7 @@ let L = class extends h {
|
|
|
3176
3340
|
`;
|
|
3177
3341
|
}
|
|
3178
3342
|
};
|
|
3179
|
-
|
|
3343
|
+
C.styles = d`
|
|
3180
3344
|
:host {
|
|
3181
3345
|
display: block;
|
|
3182
3346
|
font-family: var(--vox-font-family-base);
|
|
@@ -3295,27 +3459,27 @@ L.styles = d`
|
|
|
3295
3459
|
margin-bottom: 0;
|
|
3296
3460
|
}
|
|
3297
3461
|
`;
|
|
3298
|
-
|
|
3462
|
+
ge([
|
|
3299
3463
|
n()
|
|
3300
|
-
],
|
|
3301
|
-
|
|
3464
|
+
], C.prototype, "variant", 2);
|
|
3465
|
+
ge([
|
|
3302
3466
|
n()
|
|
3303
|
-
],
|
|
3304
|
-
|
|
3467
|
+
], C.prototype, "heading", 2);
|
|
3468
|
+
ge([
|
|
3305
3469
|
n({ type: Boolean })
|
|
3306
|
-
],
|
|
3307
|
-
|
|
3470
|
+
], C.prototype, "dismissible", 2);
|
|
3471
|
+
ge([
|
|
3308
3472
|
n({ type: Boolean, reflect: !0 })
|
|
3309
|
-
],
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
],
|
|
3313
|
-
var
|
|
3314
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3315
|
-
(i =
|
|
3316
|
-
return r && e &&
|
|
3473
|
+
], C.prototype, "open", 2);
|
|
3474
|
+
C = ge([
|
|
3475
|
+
h("vox-alert")
|
|
3476
|
+
], C);
|
|
3477
|
+
var jt = Object.defineProperty, zt = Object.getOwnPropertyDescriptor, wo = (t, o, a, r) => {
|
|
3478
|
+
for (var e = r > 1 ? void 0 : r ? zt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
3479
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
3480
|
+
return r && e && jt(o, a, e), e;
|
|
3317
3481
|
};
|
|
3318
|
-
let
|
|
3482
|
+
let Oe = class extends p {
|
|
3319
3483
|
constructor() {
|
|
3320
3484
|
super(...arguments), this.variant = "brand";
|
|
3321
3485
|
}
|
|
@@ -3323,7 +3487,7 @@ let De = class extends h {
|
|
|
3323
3487
|
return l`<span class="badge ${this.variant}"><slot></slot></span>`;
|
|
3324
3488
|
}
|
|
3325
3489
|
};
|
|
3326
|
-
|
|
3490
|
+
Oe.styles = d`
|
|
3327
3491
|
:host {
|
|
3328
3492
|
display: inline-block;
|
|
3329
3493
|
}
|
|
@@ -3365,23 +3529,23 @@ De.styles = d`
|
|
|
3365
3529
|
color: var(--vox-color-text-2);
|
|
3366
3530
|
}
|
|
3367
3531
|
`;
|
|
3368
|
-
|
|
3532
|
+
wo([
|
|
3369
3533
|
n()
|
|
3370
|
-
],
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
],
|
|
3374
|
-
var
|
|
3375
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3376
|
-
(i =
|
|
3377
|
-
return r && e &&
|
|
3534
|
+
], Oe.prototype, "variant", 2);
|
|
3535
|
+
Oe = wo([
|
|
3536
|
+
h("vox-badge")
|
|
3537
|
+
], Oe);
|
|
3538
|
+
var Dt = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, io = (t, o, a, r) => {
|
|
3539
|
+
for (var e = r > 1 ? void 0 : r ? Et(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
3540
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
3541
|
+
return r && e && Dt(o, a, e), e;
|
|
3378
3542
|
};
|
|
3379
|
-
let
|
|
3543
|
+
let oe = class extends p {
|
|
3380
3544
|
constructor() {
|
|
3381
3545
|
super(...arguments), this.date = "";
|
|
3382
3546
|
}
|
|
3383
3547
|
render() {
|
|
3384
|
-
const
|
|
3548
|
+
const t = /* @__PURE__ */ new Date(`${this.date}T00:00:00`), o = !Number.isNaN(t.getTime()), a = o ? t.toLocaleString(this.locale, { month: "short" }) : "—", r = o ? t.getDate() : "–";
|
|
3385
3549
|
return l`
|
|
3386
3550
|
<time class="tile" datetime=${this.date}>
|
|
3387
3551
|
<span class="month">${a}</span>
|
|
@@ -3390,7 +3554,7 @@ let ie = class extends h {
|
|
|
3390
3554
|
`;
|
|
3391
3555
|
}
|
|
3392
3556
|
};
|
|
3393
|
-
|
|
3557
|
+
oe.styles = d`
|
|
3394
3558
|
:host {
|
|
3395
3559
|
display: inline-block;
|
|
3396
3560
|
font-family: var(--vox-font-family-base);
|
|
@@ -3426,32 +3590,32 @@ ie.styles = d`
|
|
|
3426
3590
|
color: var(--vox-color-text-1);
|
|
3427
3591
|
}
|
|
3428
3592
|
`;
|
|
3429
|
-
|
|
3593
|
+
io([
|
|
3430
3594
|
n()
|
|
3431
|
-
],
|
|
3432
|
-
|
|
3595
|
+
], oe.prototype, "date", 2);
|
|
3596
|
+
io([
|
|
3433
3597
|
n()
|
|
3434
|
-
],
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
],
|
|
3438
|
-
var
|
|
3439
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3440
|
-
(i =
|
|
3441
|
-
return r && e &&
|
|
3598
|
+
], oe.prototype, "locale", 2);
|
|
3599
|
+
oe = io([
|
|
3600
|
+
h("vox-calendar-tile")
|
|
3601
|
+
], oe);
|
|
3602
|
+
var Ht = Object.defineProperty, St = Object.getOwnPropertyDescriptor, no = (t, o, a, r) => {
|
|
3603
|
+
for (var e = r > 1 ? void 0 : r ? St(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
3604
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
3605
|
+
return r && e && Ht(o, a, e), e;
|
|
3442
3606
|
};
|
|
3443
|
-
const
|
|
3607
|
+
const At = {
|
|
3444
3608
|
info: "Info",
|
|
3445
3609
|
tip: "Tip",
|
|
3446
3610
|
warning: "Warning",
|
|
3447
3611
|
danger: "Danger"
|
|
3448
|
-
},
|
|
3612
|
+
}, Bt = {
|
|
3449
3613
|
info: "info",
|
|
3450
3614
|
tip: "check-circle",
|
|
3451
3615
|
warning: "warning",
|
|
3452
3616
|
danger: "x-circle"
|
|
3453
3617
|
};
|
|
3454
|
-
let
|
|
3618
|
+
let te = class extends p {
|
|
3455
3619
|
constructor() {
|
|
3456
3620
|
super(...arguments), this.variant = "info";
|
|
3457
3621
|
}
|
|
@@ -3468,17 +3632,17 @@ let ne = class extends h {
|
|
|
3468
3632
|
stroke-linejoin="round"
|
|
3469
3633
|
aria-hidden="true"
|
|
3470
3634
|
>
|
|
3471
|
-
${
|
|
3635
|
+
${m[Bt[this.variant]]}
|
|
3472
3636
|
</svg>
|
|
3473
3637
|
<div class="content">
|
|
3474
|
-
<p class="heading">${this.heading ??
|
|
3638
|
+
<p class="heading">${this.heading ?? At[this.variant]}</p>
|
|
3475
3639
|
<slot></slot>
|
|
3476
3640
|
</div>
|
|
3477
3641
|
</div>
|
|
3478
3642
|
`;
|
|
3479
3643
|
}
|
|
3480
3644
|
};
|
|
3481
|
-
|
|
3645
|
+
te.styles = d`
|
|
3482
3646
|
:host {
|
|
3483
3647
|
display: block;
|
|
3484
3648
|
}
|
|
@@ -3561,38 +3725,38 @@ ne.styles = d`
|
|
|
3561
3725
|
margin-bottom: 0;
|
|
3562
3726
|
}
|
|
3563
3727
|
`;
|
|
3564
|
-
|
|
3728
|
+
no([
|
|
3565
3729
|
n()
|
|
3566
|
-
],
|
|
3567
|
-
|
|
3730
|
+
], te.prototype, "variant", 2);
|
|
3731
|
+
no([
|
|
3568
3732
|
n()
|
|
3569
|
-
],
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
],
|
|
3573
|
-
var
|
|
3574
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3575
|
-
(i =
|
|
3576
|
-
return r && e &&
|
|
3733
|
+
], te.prototype, "heading", 2);
|
|
3734
|
+
te = no([
|
|
3735
|
+
h("vox-callout")
|
|
3736
|
+
], te);
|
|
3737
|
+
var qt = Object.defineProperty, It = Object.getOwnPropertyDescriptor, qe = (t, o, a, r) => {
|
|
3738
|
+
for (var e = r > 1 ? void 0 : r ? It(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
3739
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
3740
|
+
return r && e && qt(o, a, e), e;
|
|
3577
3741
|
};
|
|
3578
|
-
let
|
|
3742
|
+
let S = class extends p {
|
|
3579
3743
|
constructor() {
|
|
3580
3744
|
super(...arguments), this.heading = "", this.hasIcon = !1, this.hasBadge = !1, this.hasFooter = !1;
|
|
3581
3745
|
}
|
|
3582
|
-
handleIconSlotChange(
|
|
3583
|
-
const
|
|
3584
|
-
this.hasIcon =
|
|
3746
|
+
handleIconSlotChange(t) {
|
|
3747
|
+
const o = t.target;
|
|
3748
|
+
this.hasIcon = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3585
3749
|
}
|
|
3586
|
-
handleBadgeSlotChange(
|
|
3587
|
-
const
|
|
3588
|
-
this.hasBadge =
|
|
3750
|
+
handleBadgeSlotChange(t) {
|
|
3751
|
+
const o = t.target;
|
|
3752
|
+
this.hasBadge = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3589
3753
|
}
|
|
3590
|
-
handleFooterSlotChange(
|
|
3591
|
-
const
|
|
3592
|
-
this.hasFooter =
|
|
3754
|
+
handleFooterSlotChange(t) {
|
|
3755
|
+
const o = t.target;
|
|
3756
|
+
this.hasFooter = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3593
3757
|
}
|
|
3594
3758
|
render() {
|
|
3595
|
-
const
|
|
3759
|
+
const t = l`
|
|
3596
3760
|
<div class="badge ${this.hasBadge ? "has-badge" : ""}">
|
|
3597
3761
|
<slot name="badge" @slotchange=${this.handleBadgeSlotChange}></slot>
|
|
3598
3762
|
</div>
|
|
@@ -3605,10 +3769,10 @@ let q = class extends h {
|
|
|
3605
3769
|
<slot name="footer" @slotchange=${this.handleFooterSlotChange}></slot>
|
|
3606
3770
|
</div>
|
|
3607
3771
|
`;
|
|
3608
|
-
return this.href !== void 0 ? l`<a class="card" href=${this.href} target=${this.target ?? v}>${
|
|
3772
|
+
return this.href !== void 0 ? l`<a class="card" href=${this.href} target=${this.target ?? v}>${t}</a>` : l`<div class="card">${t}</div>`;
|
|
3609
3773
|
}
|
|
3610
3774
|
};
|
|
3611
|
-
|
|
3775
|
+
S.styles = d`
|
|
3612
3776
|
:host {
|
|
3613
3777
|
display: block;
|
|
3614
3778
|
}
|
|
@@ -3693,673 +3857,34 @@ q.styles = d`
|
|
|
3693
3857
|
display: none;
|
|
3694
3858
|
}
|
|
3695
3859
|
`;
|
|
3696
|
-
|
|
3860
|
+
qe([
|
|
3697
3861
|
n()
|
|
3698
|
-
],
|
|
3699
|
-
|
|
3862
|
+
], S.prototype, "heading", 2);
|
|
3863
|
+
qe([
|
|
3700
3864
|
n()
|
|
3701
|
-
],
|
|
3702
|
-
|
|
3865
|
+
], S.prototype, "href", 2);
|
|
3866
|
+
qe([
|
|
3703
3867
|
n()
|
|
3704
|
-
],
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
],
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
return a;
|
|
3712
|
-
}
|
|
3713
|
-
function z(o, t) {
|
|
3714
|
-
return {
|
|
3715
|
-
re: o,
|
|
3716
|
-
type: (a, r, e) => t.has(a) ? "keyword" : r[Vt(r, e)] === "(" ? "function" : "plain"
|
|
3717
|
-
};
|
|
3718
|
-
}
|
|
3719
|
-
function Je(o) {
|
|
3720
|
-
return {
|
|
3721
|
-
re: o,
|
|
3722
|
-
type: (t, a, r) => a[Vt(a, r)] === ":" ? "property" : "string"
|
|
3723
|
-
};
|
|
3724
|
-
}
|
|
3725
|
-
const _e = /-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/y, $ = /"(?:\\.|[^"\\])*"/y, D = /'(?:\\.|[^'\\])*'/y, Ze = /#.*/y, Yo = /\/\/.*/y, jt = /\/\*[\s\S]*?\*\//y;
|
|
3726
|
-
function mt(o, t, a) {
|
|
3727
|
-
const r = o[o.length - 1];
|
|
3728
|
-
r && r.type === t ? r.text += a : o.push({ type: t, text: a });
|
|
3729
|
-
}
|
|
3730
|
-
function Xo(o, t) {
|
|
3731
|
-
const a = [];
|
|
3732
|
-
let r = 0;
|
|
3733
|
-
for (; r < o.length; ) {
|
|
3734
|
-
let e = !1;
|
|
3735
|
-
for (const s of t) {
|
|
3736
|
-
s.re.lastIndex = r;
|
|
3737
|
-
const i = s.re.exec(o);
|
|
3738
|
-
if (i && i.index === r && i[0].length > 0) {
|
|
3739
|
-
const _ = i[0], Me = typeof s.type == "function" ? s.type(_, o, r + _.length) : s.type;
|
|
3740
|
-
mt(a, Me, _), r += _.length, e = !0;
|
|
3741
|
-
break;
|
|
3742
|
-
}
|
|
3743
|
-
}
|
|
3744
|
-
e || (mt(a, "plain", o[r]), r++);
|
|
3745
|
-
}
|
|
3746
|
-
return a;
|
|
3747
|
-
}
|
|
3748
|
-
const Wo = /* @__PURE__ */ new Set([
|
|
3749
|
-
"if",
|
|
3750
|
-
"then",
|
|
3751
|
-
"elif",
|
|
3752
|
-
"else",
|
|
3753
|
-
"fi",
|
|
3754
|
-
"for",
|
|
3755
|
-
"while",
|
|
3756
|
-
"until",
|
|
3757
|
-
"do",
|
|
3758
|
-
"done",
|
|
3759
|
-
"case",
|
|
3760
|
-
"esac",
|
|
3761
|
-
"in",
|
|
3762
|
-
"function",
|
|
3763
|
-
"select",
|
|
3764
|
-
"time",
|
|
3765
|
-
"return",
|
|
3766
|
-
"exit",
|
|
3767
|
-
"break",
|
|
3768
|
-
"continue",
|
|
3769
|
-
"local",
|
|
3770
|
-
"export",
|
|
3771
|
-
"readonly",
|
|
3772
|
-
"declare",
|
|
3773
|
-
"unset",
|
|
3774
|
-
"shift",
|
|
3775
|
-
"eval",
|
|
3776
|
-
"exec",
|
|
3777
|
-
"trap",
|
|
3778
|
-
"set",
|
|
3779
|
-
"source",
|
|
3780
|
-
"alias",
|
|
3781
|
-
"unalias",
|
|
3782
|
-
"true",
|
|
3783
|
-
"false"
|
|
3784
|
-
]), ke = [
|
|
3785
|
-
{ re: Ze, type: "comment" },
|
|
3786
|
-
{ re: /\$\{[^}]*\}|\$[A-Za-z_]\w*|\$[0-9@#?$!*_-]/y, type: "function" },
|
|
3787
|
-
{ re: $, type: "string" },
|
|
3788
|
-
{ re: D, type: "string" },
|
|
3789
|
-
{ re: _e, type: "number" },
|
|
3790
|
-
z(/[A-Za-z_][\w-]*/y, Wo)
|
|
3791
|
-
], Jo = /* @__PURE__ */ new Set([
|
|
3792
|
-
"true",
|
|
3793
|
-
"false",
|
|
3794
|
-
"yes",
|
|
3795
|
-
"no",
|
|
3796
|
-
"null",
|
|
3797
|
-
"on",
|
|
3798
|
-
"off",
|
|
3799
|
-
"True",
|
|
3800
|
-
"False",
|
|
3801
|
-
"Yes",
|
|
3802
|
-
"No",
|
|
3803
|
-
"Null",
|
|
3804
|
-
"On",
|
|
3805
|
-
"Off",
|
|
3806
|
-
"TRUE",
|
|
3807
|
-
"FALSE",
|
|
3808
|
-
"YES",
|
|
3809
|
-
"NO",
|
|
3810
|
-
"NULL",
|
|
3811
|
-
"ON",
|
|
3812
|
-
"OFF"
|
|
3813
|
-
]), wt = [
|
|
3814
|
-
{ re: Ze, type: "comment" },
|
|
3815
|
-
Je($),
|
|
3816
|
-
Je(D),
|
|
3817
|
-
{ re: /[A-Za-z_][\w .-]*?(?=:(\s|$))/y, type: "property" },
|
|
3818
|
-
{ re: /[&*!][A-Za-z_][\w:.]*/y, type: "function" },
|
|
3819
|
-
{ re: _e, type: "number" },
|
|
3820
|
-
z(/[A-Za-z_][\w-]*/y, Jo)
|
|
3821
|
-
], Qo = [
|
|
3822
|
-
Je($),
|
|
3823
|
-
{ re: _e, type: "number" },
|
|
3824
|
-
z(/[A-Za-z_]\w*/y, /* @__PURE__ */ new Set(["true", "false", "null"]))
|
|
3825
|
-
], er = /* @__PURE__ */ new Set([
|
|
3826
|
-
"const",
|
|
3827
|
-
"let",
|
|
3828
|
-
"var",
|
|
3829
|
-
"function",
|
|
3830
|
-
"return",
|
|
3831
|
-
"if",
|
|
3832
|
-
"else",
|
|
3833
|
-
"for",
|
|
3834
|
-
"while",
|
|
3835
|
-
"do",
|
|
3836
|
-
"switch",
|
|
3837
|
-
"case",
|
|
3838
|
-
"default",
|
|
3839
|
-
"break",
|
|
3840
|
-
"continue",
|
|
3841
|
-
"class",
|
|
3842
|
-
"extends",
|
|
3843
|
-
"super",
|
|
3844
|
-
"new",
|
|
3845
|
-
"this",
|
|
3846
|
-
"import",
|
|
3847
|
-
"export",
|
|
3848
|
-
"from",
|
|
3849
|
-
"as",
|
|
3850
|
-
"async",
|
|
3851
|
-
"await",
|
|
3852
|
-
"try",
|
|
3853
|
-
"catch",
|
|
3854
|
-
"finally",
|
|
3855
|
-
"throw",
|
|
3856
|
-
"typeof",
|
|
3857
|
-
"instanceof",
|
|
3858
|
-
"in",
|
|
3859
|
-
"of",
|
|
3860
|
-
"yield",
|
|
3861
|
-
"static",
|
|
3862
|
-
"get",
|
|
3863
|
-
"set",
|
|
3864
|
-
"void",
|
|
3865
|
-
"delete",
|
|
3866
|
-
"null",
|
|
3867
|
-
"undefined",
|
|
3868
|
-
"true",
|
|
3869
|
-
"false",
|
|
3870
|
-
"public",
|
|
3871
|
-
"private",
|
|
3872
|
-
"protected",
|
|
3873
|
-
"readonly",
|
|
3874
|
-
"interface",
|
|
3875
|
-
"type",
|
|
3876
|
-
"enum",
|
|
3877
|
-
"implements",
|
|
3878
|
-
"namespace",
|
|
3879
|
-
"declare",
|
|
3880
|
-
"abstract",
|
|
3881
|
-
"keyof",
|
|
3882
|
-
"satisfies"
|
|
3883
|
-
]), Le = [
|
|
3884
|
-
{ re: Yo, type: "comment" },
|
|
3885
|
-
{ re: jt, type: "comment" },
|
|
3886
|
-
{ re: $, type: "string" },
|
|
3887
|
-
{ re: D, type: "string" },
|
|
3888
|
-
{ re: /`(?:\\.|[^`\\])*`/y, type: "string" },
|
|
3889
|
-
{ re: /-?\b0[xXbBoO][0-9a-fA-F]+\b|-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/y, type: "number" },
|
|
3890
|
-
z(/[A-Za-z_$][\w$]*/y, er)
|
|
3891
|
-
], tr = [
|
|
3892
|
-
{ re: jt, type: "comment" },
|
|
3893
|
-
{ re: $, type: "string" },
|
|
3894
|
-
{ re: D, type: "string" },
|
|
3895
|
-
{ re: /@[\w-]+/y, type: "keyword" },
|
|
3896
|
-
{ re: /!important/y, type: "keyword" },
|
|
3897
|
-
{ re: /#[0-9a-fA-F]{3,8}\b/y, type: "number" },
|
|
3898
|
-
{ re: /-?\b\d+\.?\d*[a-zA-Z%]*\b/y, type: "number" },
|
|
3899
|
-
{ re: /[a-zA-Z-]+(?=\s*:)/y, type: "property" },
|
|
3900
|
-
z(/[a-zA-Z-]+/y, /* @__PURE__ */ new Set())
|
|
3901
|
-
], $t = [
|
|
3902
|
-
{ re: /<!--[\s\S]*?-->/y, type: "comment" },
|
|
3903
|
-
{ re: /<\/?[a-zA-Z][\w:-]*/y, type: "tag" },
|
|
3904
|
-
{ re: /[a-zA-Z-][\w-]*(?=\s*=)/y, type: "property" },
|
|
3905
|
-
{ re: $, type: "string" },
|
|
3906
|
-
{ re: D, type: "string" },
|
|
3907
|
-
{ re: /&[\w#]+;/y, type: "keyword" }
|
|
3908
|
-
], or = /* @__PURE__ */ new Set([
|
|
3909
|
-
"def",
|
|
3910
|
-
"end",
|
|
3911
|
-
"if",
|
|
3912
|
-
"elsif",
|
|
3913
|
-
"else",
|
|
3914
|
-
"unless",
|
|
3915
|
-
"while",
|
|
3916
|
-
"until",
|
|
3917
|
-
"for",
|
|
3918
|
-
"in",
|
|
3919
|
-
"do",
|
|
3920
|
-
"class",
|
|
3921
|
-
"module",
|
|
3922
|
-
"begin",
|
|
3923
|
-
"rescue",
|
|
3924
|
-
"ensure",
|
|
3925
|
-
"raise",
|
|
3926
|
-
"return",
|
|
3927
|
-
"yield",
|
|
3928
|
-
"break",
|
|
3929
|
-
"next",
|
|
3930
|
-
"redo",
|
|
3931
|
-
"retry",
|
|
3932
|
-
"case",
|
|
3933
|
-
"when",
|
|
3934
|
-
"then",
|
|
3935
|
-
"and",
|
|
3936
|
-
"or",
|
|
3937
|
-
"not",
|
|
3938
|
-
"nil",
|
|
3939
|
-
"true",
|
|
3940
|
-
"false",
|
|
3941
|
-
"self",
|
|
3942
|
-
"super",
|
|
3943
|
-
"require",
|
|
3944
|
-
"require_relative",
|
|
3945
|
-
"include",
|
|
3946
|
-
"extend",
|
|
3947
|
-
"attr_accessor",
|
|
3948
|
-
"attr_reader",
|
|
3949
|
-
"attr_writer",
|
|
3950
|
-
"private",
|
|
3951
|
-
"protected",
|
|
3952
|
-
"public",
|
|
3953
|
-
"lambda",
|
|
3954
|
-
"proc",
|
|
3955
|
-
"new"
|
|
3956
|
-
]), _t = [
|
|
3957
|
-
{ re: Ze, type: "comment" },
|
|
3958
|
-
{ re: /:[A-Za-z_]\w*[?!]?/y, type: "string" },
|
|
3959
|
-
{ re: /@{1,2}[A-Za-z_]\w*|\$[A-Za-z_]\w*/y, type: "function" },
|
|
3960
|
-
{ re: $, type: "string" },
|
|
3961
|
-
{ re: D, type: "string" },
|
|
3962
|
-
{ re: _e, type: "number" },
|
|
3963
|
-
{ re: /[A-Z]\w*/y, type: "property" },
|
|
3964
|
-
z(/[a-z_]\w*[?!]?/y, or)
|
|
3965
|
-
], rr = /* @__PURE__ */ new Set([
|
|
3966
|
-
"class",
|
|
3967
|
-
"define",
|
|
3968
|
-
"node",
|
|
3969
|
-
"inherits",
|
|
3970
|
-
"if",
|
|
3971
|
-
"elsif",
|
|
3972
|
-
"else",
|
|
3973
|
-
"unless",
|
|
3974
|
-
"case",
|
|
3975
|
-
"and",
|
|
3976
|
-
"or",
|
|
3977
|
-
"in",
|
|
3978
|
-
"undef",
|
|
3979
|
-
"true",
|
|
3980
|
-
"false",
|
|
3981
|
-
"default",
|
|
3982
|
-
"import",
|
|
3983
|
-
"include",
|
|
3984
|
-
"require",
|
|
3985
|
-
"contain",
|
|
3986
|
-
"function",
|
|
3987
|
-
"type",
|
|
3988
|
-
"application",
|
|
3989
|
-
"produces",
|
|
3990
|
-
"consumes",
|
|
3991
|
-
"private",
|
|
3992
|
-
"return",
|
|
3993
|
-
"break",
|
|
3994
|
-
"next",
|
|
3995
|
-
"each",
|
|
3996
|
-
"map",
|
|
3997
|
-
"filter",
|
|
3998
|
-
"reduce",
|
|
3999
|
-
"with",
|
|
4000
|
-
"String",
|
|
4001
|
-
"Integer",
|
|
4002
|
-
"Boolean",
|
|
4003
|
-
"Array",
|
|
4004
|
-
"Hash",
|
|
4005
|
-
"Optional",
|
|
4006
|
-
"Enum",
|
|
4007
|
-
"Variant",
|
|
4008
|
-
"Numeric",
|
|
4009
|
-
"Float",
|
|
4010
|
-
"Undef",
|
|
4011
|
-
"Any",
|
|
4012
|
-
"Pattern",
|
|
4013
|
-
"Regexp",
|
|
4014
|
-
"Sensitive",
|
|
4015
|
-
"Struct",
|
|
4016
|
-
"Tuple",
|
|
4017
|
-
"Type",
|
|
4018
|
-
"Callable",
|
|
4019
|
-
"Data",
|
|
4020
|
-
"Scalar"
|
|
4021
|
-
]), Ct = [
|
|
4022
|
-
{ re: Ze, type: "comment" },
|
|
4023
|
-
{ re: $, type: "string" },
|
|
4024
|
-
{ re: D, type: "string" },
|
|
4025
|
-
{ re: /\$[\w:]+/y, type: "function" },
|
|
4026
|
-
{ re: /[a-zA-Z_][\w:]*(?=\s*\{)/y, type: "tag" },
|
|
4027
|
-
{ re: /[a-z_]\w*(?=\s*=>)/y, type: "property" },
|
|
4028
|
-
{ re: _e, type: "number" },
|
|
4029
|
-
z(/[A-Za-z_][\w:]*/y, rr)
|
|
4030
|
-
], ar = {
|
|
4031
|
-
bash: ke,
|
|
4032
|
-
sh: ke,
|
|
4033
|
-
shell: ke,
|
|
4034
|
-
zsh: ke,
|
|
4035
|
-
yaml: wt,
|
|
4036
|
-
yml: wt,
|
|
4037
|
-
json: Qo,
|
|
4038
|
-
javascript: Le,
|
|
4039
|
-
js: Le,
|
|
4040
|
-
typescript: Le,
|
|
4041
|
-
ts: Le,
|
|
4042
|
-
css: tr,
|
|
4043
|
-
html: $t,
|
|
4044
|
-
xml: $t,
|
|
4045
|
-
ruby: _t,
|
|
4046
|
-
rb: _t,
|
|
4047
|
-
puppet: Ct,
|
|
4048
|
-
pp: Ct
|
|
4049
|
-
}, sr = {
|
|
4050
|
-
bash: "Bash",
|
|
4051
|
-
sh: "Shell",
|
|
4052
|
-
shell: "Shell",
|
|
4053
|
-
zsh: "Zsh",
|
|
4054
|
-
yaml: "YAML",
|
|
4055
|
-
yml: "YAML",
|
|
4056
|
-
json: "JSON",
|
|
4057
|
-
javascript: "JavaScript",
|
|
4058
|
-
js: "JavaScript",
|
|
4059
|
-
typescript: "TypeScript",
|
|
4060
|
-
ts: "TypeScript",
|
|
4061
|
-
css: "CSS",
|
|
4062
|
-
html: "HTML",
|
|
4063
|
-
xml: "XML",
|
|
4064
|
-
ruby: "Ruby",
|
|
4065
|
-
rb: "Ruby",
|
|
4066
|
-
puppet: "Puppet",
|
|
4067
|
-
pp: "Puppet",
|
|
4068
|
-
plaintext: "Plain Text",
|
|
4069
|
-
text: "Plain Text"
|
|
3868
|
+
], S.prototype, "target", 2);
|
|
3869
|
+
S = qe([
|
|
3870
|
+
h("vox-card")
|
|
3871
|
+
], S);
|
|
3872
|
+
var Nt = Object.defineProperty, Tt = Object.getOwnPropertyDescriptor, $o = (t, o, a, r) => {
|
|
3873
|
+
for (var e = r > 1 ? void 0 : r ? Tt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
3874
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
3875
|
+
return r && e && Nt(o, a, e), e;
|
|
4070
3876
|
};
|
|
4071
|
-
|
|
4072
|
-
const a = ar[t];
|
|
4073
|
-
return a ? Xo(o, a) : [{ type: "plain", text: o }];
|
|
4074
|
-
}
|
|
4075
|
-
var nr = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, b = (o, t, a, r) => {
|
|
4076
|
-
for (var e = r > 1 ? void 0 : r ? lr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
4077
|
-
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
4078
|
-
return r && e && nr(t, a, e), e;
|
|
4079
|
-
};
|
|
4080
|
-
function cr(o) {
|
|
4081
|
-
const t = o.split(`
|
|
4082
|
-
`);
|
|
4083
|
-
for (; t.length && t[0].trim() === ""; ) t.shift();
|
|
4084
|
-
for (; t.length && t[t.length - 1].trim() === ""; ) t.pop();
|
|
4085
|
-
const a = t.filter((e) => e.trim() !== "").map((e) => {
|
|
4086
|
-
var s;
|
|
4087
|
-
return ((s = e.match(/^[ \t]*/)) == null ? void 0 : s[0].length) ?? 0;
|
|
4088
|
-
}), r = a.length ? Math.min(...a) : 0;
|
|
4089
|
-
return t.map((e) => e.slice(r)).join(`
|
|
4090
|
-
`);
|
|
4091
|
-
}
|
|
4092
|
-
function dr(o) {
|
|
4093
|
-
const t = [[]];
|
|
4094
|
-
for (const a of o)
|
|
4095
|
-
a.text.split(`
|
|
4096
|
-
`).forEach((r, e) => {
|
|
4097
|
-
e > 0 && t.push([]), r && t[t.length - 1].push({ type: a.type, text: r });
|
|
4098
|
-
});
|
|
4099
|
-
return t;
|
|
4100
|
-
}
|
|
4101
|
-
let u = class extends h {
|
|
4102
|
-
constructor() {
|
|
4103
|
-
super(...arguments), this.language = "", this.filename = "", this.lineNumbers = !1, this.noCopy = !1, this.noHeader = !1, this.noBorder = !1, this._code = "", this._copied = !1;
|
|
4104
|
-
}
|
|
4105
|
-
disconnectedCallback() {
|
|
4106
|
-
super.disconnectedCallback(), clearTimeout(this._copyResetTimer);
|
|
4107
|
-
}
|
|
4108
|
-
_handleSlotChange(o) {
|
|
4109
|
-
const a = o.target.assignedNodes({ flatten: !0 }).map((r) => r.textContent ?? "").join("");
|
|
4110
|
-
this._code = cr(a);
|
|
4111
|
-
}
|
|
4112
|
-
async _copy() {
|
|
4113
|
-
var o;
|
|
4114
|
-
try {
|
|
4115
|
-
await navigator.clipboard.writeText(this._code);
|
|
4116
|
-
} catch {
|
|
4117
|
-
const t = document.createElement("textarea");
|
|
4118
|
-
t.value = this._code, t.style.position = "fixed", t.style.opacity = "0", (o = this.shadowRoot) == null || o.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
|
|
4119
|
-
}
|
|
4120
|
-
this._copied = !0, clearTimeout(this._copyResetTimer), this._copyResetTimer = setTimeout(() => {
|
|
4121
|
-
this._copied = !1;
|
|
4122
|
-
}, 1500);
|
|
4123
|
-
}
|
|
4124
|
-
render() {
|
|
4125
|
-
const o = sr[this.language] ?? this.language, t = dr(ir(this._code, this.language));
|
|
4126
|
-
return l`
|
|
4127
|
-
<div class="block">
|
|
4128
|
-
${this.noHeader ? v : l`
|
|
4129
|
-
<div class="header">
|
|
4130
|
-
<span class="meta">
|
|
4131
|
-
${this.filename ? l`<span class="filename">${this.filename}</span>` : v}
|
|
4132
|
-
${o ? l`<span class="lang">${o}</span>` : v}
|
|
4133
|
-
</span>
|
|
4134
|
-
${this.noCopy ? v : l`
|
|
4135
|
-
<button
|
|
4136
|
-
class="copy"
|
|
4137
|
-
type="button"
|
|
4138
|
-
@click=${this._copy}
|
|
4139
|
-
aria-label=${this._copied ? "Copied" : "Copy code"}
|
|
4140
|
-
>
|
|
4141
|
-
<svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
4142
|
-
${y[this._copied ? "check" : "copy"]}
|
|
4143
|
-
</svg>
|
|
4144
|
-
</button>
|
|
4145
|
-
`}
|
|
4146
|
-
</div>
|
|
4147
|
-
`}
|
|
4148
|
-
<pre tabindex="0"><code>${t.map(
|
|
4149
|
-
(a) => l`<span class="line">${a.map(
|
|
4150
|
-
(r) => r.type === "plain" ? r.text : l`<span class="tok-${r.type}">${r.text}</span>`
|
|
4151
|
-
)}</span>`
|
|
4152
|
-
)}</code></pre>
|
|
4153
|
-
<span class="visually-hidden" aria-live="polite">${this._copied ? "Copied to clipboard" : ""}</span>
|
|
4154
|
-
</div>
|
|
4155
|
-
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
4156
|
-
`;
|
|
4157
|
-
}
|
|
4158
|
-
};
|
|
4159
|
-
u.styles = d`
|
|
4160
|
-
:host {
|
|
4161
|
-
display: block;
|
|
4162
|
-
font-family: var(--vox-font-family-base);
|
|
4163
|
-
}
|
|
4164
|
-
|
|
4165
|
-
.block {
|
|
4166
|
-
border: 1px solid var(--vox-color-border);
|
|
4167
|
-
border-radius: var(--vox-radius-md);
|
|
4168
|
-
background-color: var(--vox-color-bg-alt);
|
|
4169
|
-
overflow: hidden;
|
|
4170
|
-
}
|
|
4171
|
-
|
|
4172
|
-
:host([no-border]) .block {
|
|
4173
|
-
border: none;
|
|
4174
|
-
}
|
|
4175
|
-
|
|
4176
|
-
.header {
|
|
4177
|
-
display: flex;
|
|
4178
|
-
align-items: center;
|
|
4179
|
-
justify-content: space-between;
|
|
4180
|
-
gap: var(--vox-space-3);
|
|
4181
|
-
padding: var(--vox-space-2) var(--vox-space-2) var(--vox-space-2) var(--vox-space-4);
|
|
4182
|
-
border-bottom: 1px solid var(--vox-color-divider);
|
|
4183
|
-
font-size: 12px;
|
|
4184
|
-
}
|
|
4185
|
-
|
|
4186
|
-
.meta {
|
|
4187
|
-
display: flex;
|
|
4188
|
-
align-items: baseline;
|
|
4189
|
-
gap: var(--vox-space-3);
|
|
4190
|
-
min-width: 0;
|
|
4191
|
-
overflow: hidden;
|
|
4192
|
-
color: var(--vox-color-text-2);
|
|
4193
|
-
}
|
|
4194
|
-
|
|
4195
|
-
.filename {
|
|
4196
|
-
color: var(--vox-color-text-1);
|
|
4197
|
-
font-family: var(--vox-font-family-mono);
|
|
4198
|
-
font-weight: 600;
|
|
4199
|
-
white-space: nowrap;
|
|
4200
|
-
overflow: hidden;
|
|
4201
|
-
text-overflow: ellipsis;
|
|
4202
|
-
}
|
|
4203
|
-
|
|
4204
|
-
.lang {
|
|
4205
|
-
flex: none;
|
|
4206
|
-
text-transform: uppercase;
|
|
4207
|
-
letter-spacing: 0.04em;
|
|
4208
|
-
}
|
|
4209
|
-
|
|
4210
|
-
.copy {
|
|
4211
|
-
flex: none;
|
|
4212
|
-
display: inline-flex;
|
|
4213
|
-
align-items: center;
|
|
4214
|
-
justify-content: center;
|
|
4215
|
-
width: 28px;
|
|
4216
|
-
height: 28px;
|
|
4217
|
-
padding: 0;
|
|
4218
|
-
border: none;
|
|
4219
|
-
border-radius: var(--vox-radius-sm);
|
|
4220
|
-
background: none;
|
|
4221
|
-
color: var(--vox-color-text-2);
|
|
4222
|
-
cursor: pointer;
|
|
4223
|
-
}
|
|
4224
|
-
|
|
4225
|
-
.copy:hover {
|
|
4226
|
-
background-color: var(--vox-color-brand-soft);
|
|
4227
|
-
color: var(--vox-color-brand-1);
|
|
4228
|
-
}
|
|
4229
|
-
|
|
4230
|
-
.copy:focus-visible {
|
|
4231
|
-
outline: 2px solid var(--vox-color-brand-1);
|
|
4232
|
-
outline-offset: 2px;
|
|
4233
|
-
}
|
|
4234
|
-
|
|
4235
|
-
.copy svg {
|
|
4236
|
-
width: 15px;
|
|
4237
|
-
height: 15px;
|
|
4238
|
-
}
|
|
4239
|
-
|
|
4240
|
-
pre {
|
|
4241
|
-
margin: 0;
|
|
4242
|
-
padding: var(--vox-space-4);
|
|
4243
|
-
overflow-x: auto;
|
|
4244
|
-
white-space: pre;
|
|
4245
|
-
tab-size: 2;
|
|
4246
|
-
}
|
|
4247
|
-
|
|
4248
|
-
pre:focus-visible {
|
|
4249
|
-
outline: 2px solid var(--vox-color-brand-1);
|
|
4250
|
-
outline-offset: -2px;
|
|
4251
|
-
}
|
|
4252
|
-
|
|
4253
|
-
code {
|
|
4254
|
-
font-family: var(--vox-font-family-mono);
|
|
4255
|
-
font-size: 13px;
|
|
4256
|
-
line-height: 1.7;
|
|
4257
|
-
color: var(--vox-color-text-1);
|
|
4258
|
-
}
|
|
4259
|
-
|
|
4260
|
-
.line {
|
|
4261
|
-
display: block;
|
|
4262
|
-
}
|
|
4263
|
-
|
|
4264
|
-
:host([line-numbers]) code {
|
|
4265
|
-
counter-reset: line;
|
|
4266
|
-
}
|
|
4267
|
-
|
|
4268
|
-
:host([line-numbers]) .line {
|
|
4269
|
-
padding-left: 3.5ch;
|
|
4270
|
-
position: relative;
|
|
4271
|
-
}
|
|
4272
|
-
|
|
4273
|
-
:host([line-numbers]) .line::before {
|
|
4274
|
-
counter-increment: line;
|
|
4275
|
-
content: counter(line);
|
|
4276
|
-
position: absolute;
|
|
4277
|
-
left: 0;
|
|
4278
|
-
width: 2.5ch;
|
|
4279
|
-
text-align: right;
|
|
4280
|
-
color: var(--vox-color-text-3);
|
|
4281
|
-
user-select: none;
|
|
4282
|
-
}
|
|
4283
|
-
|
|
4284
|
-
.tok-comment {
|
|
4285
|
-
color: var(--vox-code-comment);
|
|
4286
|
-
font-style: italic;
|
|
4287
|
-
}
|
|
4288
|
-
.tok-keyword {
|
|
4289
|
-
color: var(--vox-code-keyword);
|
|
4290
|
-
}
|
|
4291
|
-
.tok-string {
|
|
4292
|
-
color: var(--vox-code-string);
|
|
4293
|
-
}
|
|
4294
|
-
.tok-number {
|
|
4295
|
-
color: var(--vox-code-number);
|
|
4296
|
-
}
|
|
4297
|
-
.tok-function {
|
|
4298
|
-
color: var(--vox-code-function);
|
|
4299
|
-
}
|
|
4300
|
-
.tok-property {
|
|
4301
|
-
color: var(--vox-code-property);
|
|
4302
|
-
}
|
|
4303
|
-
.tok-tag {
|
|
4304
|
-
color: var(--vox-code-tag);
|
|
4305
|
-
}
|
|
4306
|
-
|
|
4307
|
-
slot {
|
|
4308
|
-
display: none;
|
|
4309
|
-
}
|
|
4310
|
-
|
|
4311
|
-
.visually-hidden {
|
|
4312
|
-
position: absolute;
|
|
4313
|
-
width: 1px;
|
|
4314
|
-
height: 1px;
|
|
4315
|
-
overflow: hidden;
|
|
4316
|
-
clip: rect(0 0 0 0);
|
|
4317
|
-
white-space: nowrap;
|
|
4318
|
-
}
|
|
4319
|
-
`;
|
|
4320
|
-
b([
|
|
4321
|
-
n()
|
|
4322
|
-
], u.prototype, "language", 2);
|
|
4323
|
-
b([
|
|
4324
|
-
n()
|
|
4325
|
-
], u.prototype, "filename", 2);
|
|
4326
|
-
b([
|
|
4327
|
-
n({ type: Boolean, attribute: "line-numbers", reflect: !0 })
|
|
4328
|
-
], u.prototype, "lineNumbers", 2);
|
|
4329
|
-
b([
|
|
4330
|
-
n({ type: Boolean, attribute: "no-copy" })
|
|
4331
|
-
], u.prototype, "noCopy", 2);
|
|
4332
|
-
b([
|
|
4333
|
-
n({ type: Boolean, attribute: "no-header" })
|
|
4334
|
-
], u.prototype, "noHeader", 2);
|
|
4335
|
-
b([
|
|
4336
|
-
n({ type: Boolean, attribute: "no-border", reflect: !0 })
|
|
4337
|
-
], u.prototype, "noBorder", 2);
|
|
4338
|
-
b([
|
|
4339
|
-
Z()
|
|
4340
|
-
], u.prototype, "_code", 2);
|
|
4341
|
-
b([
|
|
4342
|
-
Z()
|
|
4343
|
-
], u.prototype, "_copied", 2);
|
|
4344
|
-
u = b([
|
|
4345
|
-
p("vox-code-block")
|
|
4346
|
-
], u);
|
|
4347
|
-
var pr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, zt = (o, t, a, r) => {
|
|
4348
|
-
for (var e = r > 1 ? void 0 : r ? hr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
4349
|
-
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
4350
|
-
return r && e && pr(t, a, e), e;
|
|
4351
|
-
};
|
|
4352
|
-
let Se = class extends h {
|
|
3877
|
+
let ke = class extends p {
|
|
4353
3878
|
constructor() {
|
|
4354
3879
|
super(...arguments), this.heading = "", this.hasBody = !1, this.hasActions = !1;
|
|
4355
3880
|
}
|
|
4356
|
-
handleBodySlotChange(
|
|
4357
|
-
const
|
|
4358
|
-
this.hasBody =
|
|
3881
|
+
handleBodySlotChange(t) {
|
|
3882
|
+
const o = t.target;
|
|
3883
|
+
this.hasBody = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4359
3884
|
}
|
|
4360
|
-
handleActionsSlotChange(
|
|
4361
|
-
const
|
|
4362
|
-
this.hasActions =
|
|
3885
|
+
handleActionsSlotChange(t) {
|
|
3886
|
+
const o = t.target;
|
|
3887
|
+
this.hasActions = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4363
3888
|
}
|
|
4364
3889
|
render() {
|
|
4365
3890
|
return l`
|
|
@@ -4375,7 +3900,7 @@ let Se = class extends h {
|
|
|
4375
3900
|
`;
|
|
4376
3901
|
}
|
|
4377
3902
|
};
|
|
4378
|
-
|
|
3903
|
+
ke.styles = d`
|
|
4379
3904
|
:host {
|
|
4380
3905
|
display: block;
|
|
4381
3906
|
font-family: var(--vox-font-family-base);
|
|
@@ -4430,18 +3955,79 @@ Se.styles = d`
|
|
|
4430
3955
|
display: none;
|
|
4431
3956
|
}
|
|
4432
3957
|
`;
|
|
4433
|
-
|
|
3958
|
+
$o([
|
|
3959
|
+
n()
|
|
3960
|
+
], ke.prototype, "heading", 2);
|
|
3961
|
+
ke = $o([
|
|
3962
|
+
h("vox-cta-band")
|
|
3963
|
+
], ke);
|
|
3964
|
+
var Rt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, _o = (t, o, a, r) => {
|
|
3965
|
+
for (var e = r > 1 ? void 0 : r ? Ft(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
3966
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
3967
|
+
return r && e && Rt(o, a, e), e;
|
|
3968
|
+
};
|
|
3969
|
+
let Pe = class extends p {
|
|
3970
|
+
constructor() {
|
|
3971
|
+
super(...arguments), this.name = "", this.hasIcon = !1;
|
|
3972
|
+
}
|
|
3973
|
+
handleIconSlotChange(t) {
|
|
3974
|
+
const o = t.target;
|
|
3975
|
+
this.hasIcon = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3976
|
+
}
|
|
3977
|
+
render() {
|
|
3978
|
+
return l`
|
|
3979
|
+
<span class="icon ${this.hasIcon ? "has-icon" : ""}">
|
|
3980
|
+
<slot name="icon" @slotchange=${this.handleIconSlotChange}></slot>
|
|
3981
|
+
</span>
|
|
3982
|
+
${this.name ? l`<span class="sr-only">${this.name}: </span>` : v}
|
|
3983
|
+
<slot></slot>
|
|
3984
|
+
`;
|
|
3985
|
+
}
|
|
3986
|
+
};
|
|
3987
|
+
Pe.styles = d`
|
|
3988
|
+
:host {
|
|
3989
|
+
display: inline-flex;
|
|
3990
|
+
align-items: center;
|
|
3991
|
+
gap: var(--vox-space-1);
|
|
3992
|
+
font-family: var(--vox-font-family-base);
|
|
3993
|
+
font-size: 13px;
|
|
3994
|
+
color: var(--vox-color-text-2);
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
.icon {
|
|
3998
|
+
display: flex;
|
|
3999
|
+
flex: none;
|
|
4000
|
+
color: var(--vox-color-text-3);
|
|
4001
|
+
}
|
|
4002
|
+
|
|
4003
|
+
.icon:not(.has-icon) {
|
|
4004
|
+
display: none;
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
.sr-only {
|
|
4008
|
+
position: absolute;
|
|
4009
|
+
width: 1px;
|
|
4010
|
+
height: 1px;
|
|
4011
|
+
padding: 0;
|
|
4012
|
+
margin: -1px;
|
|
4013
|
+
overflow: hidden;
|
|
4014
|
+
clip: rect(0, 0, 0, 0);
|
|
4015
|
+
white-space: nowrap;
|
|
4016
|
+
border: 0;
|
|
4017
|
+
}
|
|
4018
|
+
`;
|
|
4019
|
+
_o([
|
|
4434
4020
|
n()
|
|
4435
|
-
],
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
],
|
|
4439
|
-
var
|
|
4440
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4441
|
-
(i =
|
|
4442
|
-
return r && e &&
|
|
4021
|
+
], Pe.prototype, "name", 2);
|
|
4022
|
+
Pe = _o([
|
|
4023
|
+
h("vox-datum")
|
|
4024
|
+
], Pe);
|
|
4025
|
+
var Zt = Object.defineProperty, Kt = Object.getOwnPropertyDescriptor, Co = (t, o, a, r) => {
|
|
4026
|
+
for (var e = r > 1 ? void 0 : r ? Kt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4027
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4028
|
+
return r && e && Zt(o, a, e), e;
|
|
4443
4029
|
};
|
|
4444
|
-
let
|
|
4030
|
+
let Le = class extends p {
|
|
4445
4031
|
constructor() {
|
|
4446
4032
|
super(...arguments), this.heading = "";
|
|
4447
4033
|
}
|
|
@@ -4456,7 +4042,7 @@ let Ee = class extends h {
|
|
|
4456
4042
|
`;
|
|
4457
4043
|
}
|
|
4458
4044
|
};
|
|
4459
|
-
|
|
4045
|
+
Le.styles = d`
|
|
4460
4046
|
:host {
|
|
4461
4047
|
display: block;
|
|
4462
4048
|
font-family: var(--vox-font-family-base);
|
|
@@ -4500,18 +4086,18 @@ Ee.styles = d`
|
|
|
4500
4086
|
margin-top: var(--vox-space-4);
|
|
4501
4087
|
}
|
|
4502
4088
|
`;
|
|
4503
|
-
|
|
4089
|
+
Co([
|
|
4504
4090
|
n()
|
|
4505
|
-
],
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
],
|
|
4509
|
-
var
|
|
4510
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4511
|
-
(i =
|
|
4512
|
-
return r && e &&
|
|
4091
|
+
], Le.prototype, "heading", 2);
|
|
4092
|
+
Le = Co([
|
|
4093
|
+
h("vox-empty-state")
|
|
4094
|
+
], Le);
|
|
4095
|
+
var Ut = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, lo = (t, o, a, r) => {
|
|
4096
|
+
for (var e = r > 1 ? void 0 : r ? Gt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4097
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4098
|
+
return r && e && Ut(o, a, e), e;
|
|
4513
4099
|
};
|
|
4514
|
-
let
|
|
4100
|
+
let Ue = class extends p {
|
|
4515
4101
|
render() {
|
|
4516
4102
|
return l`
|
|
4517
4103
|
<footer>
|
|
@@ -4523,7 +4109,7 @@ let Qe = class extends h {
|
|
|
4523
4109
|
`;
|
|
4524
4110
|
}
|
|
4525
4111
|
};
|
|
4526
|
-
|
|
4112
|
+
Ue.styles = d`
|
|
4527
4113
|
:host {
|
|
4528
4114
|
display: block;
|
|
4529
4115
|
font-family: var(--vox-font-family-base);
|
|
@@ -4551,10 +4137,10 @@ Qe.styles = d`
|
|
|
4551
4137
|
color: var(--vox-color-text-3);
|
|
4552
4138
|
}
|
|
4553
4139
|
`;
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
],
|
|
4557
|
-
let
|
|
4140
|
+
Ue = lo([
|
|
4141
|
+
h("vox-footer")
|
|
4142
|
+
], Ue);
|
|
4143
|
+
let Ve = class extends p {
|
|
4558
4144
|
constructor() {
|
|
4559
4145
|
super(...arguments), this.heading = "";
|
|
4560
4146
|
}
|
|
@@ -4565,7 +4151,7 @@ let Ae = class extends h {
|
|
|
4565
4151
|
`;
|
|
4566
4152
|
}
|
|
4567
4153
|
};
|
|
4568
|
-
|
|
4154
|
+
Ve.styles = d`
|
|
4569
4155
|
:host {
|
|
4570
4156
|
display: block;
|
|
4571
4157
|
font-family: var(--vox-font-family-base);
|
|
@@ -4597,18 +4183,18 @@ Ae.styles = d`
|
|
|
4597
4183
|
text-decoration: underline;
|
|
4598
4184
|
}
|
|
4599
4185
|
`;
|
|
4600
|
-
|
|
4186
|
+
lo([
|
|
4601
4187
|
n()
|
|
4602
|
-
],
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
],
|
|
4606
|
-
var
|
|
4607
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4608
|
-
(i =
|
|
4609
|
-
return r && e &&
|
|
4188
|
+
], Ve.prototype, "heading", 2);
|
|
4189
|
+
Ve = lo([
|
|
4190
|
+
h("vox-footer-column")
|
|
4191
|
+
], Ve);
|
|
4192
|
+
var Xt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Ie = (t, o, a, r) => {
|
|
4193
|
+
for (var e = r > 1 ? void 0 : r ? Jt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4194
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4195
|
+
return r && e && Xt(o, a, e), e;
|
|
4610
4196
|
};
|
|
4611
|
-
let
|
|
4197
|
+
let A = class extends p {
|
|
4612
4198
|
constructor() {
|
|
4613
4199
|
super(...arguments), this.cols = 0, this.min = "240px", this.gap = "md";
|
|
4614
4200
|
}
|
|
@@ -4619,7 +4205,7 @@ let I = class extends h {
|
|
|
4619
4205
|
return l`<slot></slot>`;
|
|
4620
4206
|
}
|
|
4621
4207
|
};
|
|
4622
|
-
|
|
4208
|
+
A.styles = d`
|
|
4623
4209
|
:host {
|
|
4624
4210
|
display: grid;
|
|
4625
4211
|
}
|
|
@@ -4636,30 +4222,30 @@ I.styles = d`
|
|
|
4636
4222
|
gap: var(--vox-space-6);
|
|
4637
4223
|
}
|
|
4638
4224
|
`;
|
|
4639
|
-
|
|
4225
|
+
Ie([
|
|
4640
4226
|
n({ type: Number })
|
|
4641
|
-
],
|
|
4642
|
-
|
|
4227
|
+
], A.prototype, "cols", 2);
|
|
4228
|
+
Ie([
|
|
4643
4229
|
n()
|
|
4644
|
-
],
|
|
4645
|
-
|
|
4230
|
+
], A.prototype, "min", 2);
|
|
4231
|
+
Ie([
|
|
4646
4232
|
n({ reflect: !0 })
|
|
4647
|
-
],
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
],
|
|
4651
|
-
var
|
|
4652
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4653
|
-
(i =
|
|
4654
|
-
return r && e &&
|
|
4233
|
+
], A.prototype, "gap", 2);
|
|
4234
|
+
A = Ie([
|
|
4235
|
+
h("vox-grid")
|
|
4236
|
+
], A);
|
|
4237
|
+
var Wt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, co = (t, o, a, r) => {
|
|
4238
|
+
for (var e = r > 1 ? void 0 : r ? Qt(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4239
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4240
|
+
return r && e && Wt(o, a, e), e;
|
|
4655
4241
|
};
|
|
4656
|
-
let
|
|
4242
|
+
let re = class extends p {
|
|
4657
4243
|
constructor() {
|
|
4658
4244
|
super(...arguments), this.eyebrow = "", this.heading = "", this.hasActions = !1;
|
|
4659
4245
|
}
|
|
4660
|
-
handleActionsSlotChange(
|
|
4661
|
-
const
|
|
4662
|
-
this.hasActions =
|
|
4246
|
+
handleActionsSlotChange(t) {
|
|
4247
|
+
const o = t.target;
|
|
4248
|
+
this.hasActions = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4663
4249
|
}
|
|
4664
4250
|
render() {
|
|
4665
4251
|
return l`
|
|
@@ -4674,7 +4260,7 @@ let le = class extends h {
|
|
|
4674
4260
|
`;
|
|
4675
4261
|
}
|
|
4676
4262
|
};
|
|
4677
|
-
|
|
4263
|
+
re.styles = d`
|
|
4678
4264
|
:host {
|
|
4679
4265
|
display: block;
|
|
4680
4266
|
font-family: var(--vox-font-family-base);
|
|
@@ -4731,42 +4317,42 @@ le.styles = d`
|
|
|
4731
4317
|
display: none;
|
|
4732
4318
|
}
|
|
4733
4319
|
`;
|
|
4734
|
-
|
|
4320
|
+
co([
|
|
4735
4321
|
n()
|
|
4736
|
-
],
|
|
4737
|
-
|
|
4322
|
+
], re.prototype, "eyebrow", 2);
|
|
4323
|
+
co([
|
|
4738
4324
|
n()
|
|
4739
|
-
],
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
],
|
|
4743
|
-
var
|
|
4744
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4745
|
-
(i =
|
|
4746
|
-
return r && e &&
|
|
4325
|
+
], re.prototype, "heading", 2);
|
|
4326
|
+
re = co([
|
|
4327
|
+
h("vox-hero")
|
|
4328
|
+
], re);
|
|
4329
|
+
var Yt = Object.defineProperty, er = Object.getOwnPropertyDescriptor, Ne = (t, o, a, r) => {
|
|
4330
|
+
for (var e = r > 1 ? void 0 : r ? er(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4331
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4332
|
+
return r && e && Yt(o, a, e), e;
|
|
4747
4333
|
};
|
|
4748
|
-
let
|
|
4334
|
+
let Ge = class extends p {
|
|
4749
4335
|
render() {
|
|
4750
4336
|
return l`<slot></slot>`;
|
|
4751
4337
|
}
|
|
4752
4338
|
};
|
|
4753
|
-
|
|
4339
|
+
Ge.styles = d`
|
|
4754
4340
|
:host {
|
|
4755
4341
|
display: grid;
|
|
4756
4342
|
grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
|
|
4757
4343
|
gap: var(--vox-space-4);
|
|
4758
4344
|
}
|
|
4759
4345
|
`;
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
],
|
|
4763
|
-
let
|
|
4346
|
+
Ge = Ne([
|
|
4347
|
+
h("vox-link-hub")
|
|
4348
|
+
], Ge);
|
|
4349
|
+
let ae = class extends p {
|
|
4764
4350
|
constructor() {
|
|
4765
4351
|
super(...arguments), this.href = "#", this.heading = "", this.hasIcon = !1;
|
|
4766
4352
|
}
|
|
4767
|
-
handleIconSlotChange(
|
|
4768
|
-
const
|
|
4769
|
-
this.hasIcon =
|
|
4353
|
+
handleIconSlotChange(t) {
|
|
4354
|
+
const o = t.target;
|
|
4355
|
+
this.hasIcon = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4770
4356
|
}
|
|
4771
4357
|
render() {
|
|
4772
4358
|
return l`
|
|
@@ -4786,7 +4372,7 @@ let ce = class extends h {
|
|
|
4786
4372
|
`;
|
|
4787
4373
|
}
|
|
4788
4374
|
};
|
|
4789
|
-
|
|
4375
|
+
ae.styles = d`
|
|
4790
4376
|
:host {
|
|
4791
4377
|
display: block;
|
|
4792
4378
|
font-family: var(--vox-font-family-base);
|
|
@@ -4847,21 +4433,21 @@ ce.styles = d`
|
|
|
4847
4433
|
color: var(--vox-color-text-2);
|
|
4848
4434
|
}
|
|
4849
4435
|
`;
|
|
4850
|
-
|
|
4436
|
+
Ne([
|
|
4851
4437
|
n()
|
|
4852
|
-
],
|
|
4853
|
-
|
|
4438
|
+
], ae.prototype, "href", 2);
|
|
4439
|
+
Ne([
|
|
4854
4440
|
n()
|
|
4855
|
-
],
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
],
|
|
4859
|
-
var
|
|
4860
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4861
|
-
(i =
|
|
4862
|
-
return r && e &&
|
|
4441
|
+
], ae.prototype, "heading", 2);
|
|
4442
|
+
ae = Ne([
|
|
4443
|
+
h("vox-link-hub-item")
|
|
4444
|
+
], ae);
|
|
4445
|
+
var or = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, ho = (t, o, a, r) => {
|
|
4446
|
+
for (var e = r > 1 ? void 0 : r ? tr(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4447
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4448
|
+
return r && e && or(o, a, e), e;
|
|
4863
4449
|
};
|
|
4864
|
-
let
|
|
4450
|
+
let se = class extends p {
|
|
4865
4451
|
constructor() {
|
|
4866
4452
|
super(...arguments), this.size = "md", this.label = "Loading";
|
|
4867
4453
|
}
|
|
@@ -4874,7 +4460,7 @@ let de = class extends h {
|
|
|
4874
4460
|
`;
|
|
4875
4461
|
}
|
|
4876
4462
|
};
|
|
4877
|
-
|
|
4463
|
+
se.styles = d`
|
|
4878
4464
|
:host {
|
|
4879
4465
|
display: inline-block;
|
|
4880
4466
|
}
|
|
@@ -4927,21 +4513,21 @@ de.styles = d`
|
|
|
4927
4513
|
white-space: nowrap;
|
|
4928
4514
|
}
|
|
4929
4515
|
`;
|
|
4930
|
-
|
|
4516
|
+
ho([
|
|
4931
4517
|
n({ reflect: !0 })
|
|
4932
|
-
],
|
|
4933
|
-
|
|
4518
|
+
], se.prototype, "size", 2);
|
|
4519
|
+
ho([
|
|
4934
4520
|
n()
|
|
4935
|
-
],
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
],
|
|
4939
|
-
var
|
|
4940
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4941
|
-
(i =
|
|
4942
|
-
return r && e &&
|
|
4521
|
+
], se.prototype, "label", 2);
|
|
4522
|
+
se = ho([
|
|
4523
|
+
h("vox-loader")
|
|
4524
|
+
], se);
|
|
4525
|
+
var rr = Object.defineProperty, ar = Object.getOwnPropertyDescriptor, Mo = (t, o, a, r) => {
|
|
4526
|
+
for (var e = r > 1 ? void 0 : r ? ar(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4527
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4528
|
+
return r && e && rr(o, a, e), e;
|
|
4943
4529
|
};
|
|
4944
|
-
let
|
|
4530
|
+
let je = class extends p {
|
|
4945
4531
|
constructor() {
|
|
4946
4532
|
super(...arguments), this.label = "Pagination";
|
|
4947
4533
|
}
|
|
@@ -4953,7 +4539,7 @@ let He = class extends h {
|
|
|
4953
4539
|
`;
|
|
4954
4540
|
}
|
|
4955
4541
|
};
|
|
4956
|
-
|
|
4542
|
+
je.styles = d`
|
|
4957
4543
|
:host {
|
|
4958
4544
|
display: block;
|
|
4959
4545
|
font-family: var(--vox-font-family-base);
|
|
@@ -4993,18 +4579,18 @@ He.styles = d`
|
|
|
4993
4579
|
font-weight: 600;
|
|
4994
4580
|
}
|
|
4995
4581
|
`;
|
|
4996
|
-
|
|
4582
|
+
Mo([
|
|
4997
4583
|
n()
|
|
4998
|
-
],
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
],
|
|
5002
|
-
var
|
|
5003
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
5004
|
-
(i =
|
|
5005
|
-
return r && e &&
|
|
4584
|
+
], je.prototype, "label", 2);
|
|
4585
|
+
je = Mo([
|
|
4586
|
+
h("vox-pagination")
|
|
4587
|
+
], je);
|
|
4588
|
+
var sr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, po = (t, o, a, r) => {
|
|
4589
|
+
for (var e = r > 1 ? void 0 : r ? ir(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4590
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4591
|
+
return r && e && sr(o, a, e), e;
|
|
5006
4592
|
};
|
|
5007
|
-
let
|
|
4593
|
+
let ie = class extends p {
|
|
5008
4594
|
constructor() {
|
|
5009
4595
|
super(...arguments), this.attribution = "", this.detail = "";
|
|
5010
4596
|
}
|
|
@@ -5022,7 +4608,7 @@ let pe = class extends h {
|
|
|
5022
4608
|
`;
|
|
5023
4609
|
}
|
|
5024
4610
|
};
|
|
5025
|
-
|
|
4611
|
+
ie.styles = d`
|
|
5026
4612
|
:host {
|
|
5027
4613
|
display: block;
|
|
5028
4614
|
font-family: var(--vox-font-family-base);
|
|
@@ -5064,27 +4650,245 @@ pe.styles = d`
|
|
|
5064
4650
|
color: var(--vox-color-text-2);
|
|
5065
4651
|
}
|
|
5066
4652
|
`;
|
|
5067
|
-
|
|
4653
|
+
po([
|
|
5068
4654
|
n()
|
|
5069
|
-
],
|
|
5070
|
-
|
|
4655
|
+
], ie.prototype, "attribution", 2);
|
|
4656
|
+
po([
|
|
5071
4657
|
n()
|
|
5072
|
-
],
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
],
|
|
5076
|
-
var
|
|
5077
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
5078
|
-
(i =
|
|
5079
|
-
return r && e &&
|
|
4658
|
+
], ie.prototype, "detail", 2);
|
|
4659
|
+
ie = po([
|
|
4660
|
+
h("vox-quote")
|
|
4661
|
+
], ie);
|
|
4662
|
+
var nr = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, be = (t, o, a, r) => {
|
|
4663
|
+
for (var e = r > 1 ? void 0 : r ? lr(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4664
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4665
|
+
return r && e && nr(o, a, e), e;
|
|
4666
|
+
};
|
|
4667
|
+
let Xe = class extends p {
|
|
4668
|
+
render() {
|
|
4669
|
+
return l`<slot></slot>`;
|
|
4670
|
+
}
|
|
5080
4671
|
};
|
|
5081
|
-
|
|
4672
|
+
Xe.styles = d`
|
|
4673
|
+
:host {
|
|
4674
|
+
display: grid;
|
|
4675
|
+
grid-template-columns: repeat(3, max-content) 1fr;
|
|
4676
|
+
column-gap: var(--vox-space-4);
|
|
4677
|
+
}
|
|
4678
|
+
`;
|
|
4679
|
+
Xe = be([
|
|
4680
|
+
h("vox-record-list")
|
|
4681
|
+
], Xe);
|
|
4682
|
+
let B = class extends p {
|
|
4683
|
+
constructor() {
|
|
4684
|
+
super(...arguments), this.heading = "", this.size = "md", this.hasMeta = !1, this.hasEnd = !1;
|
|
4685
|
+
}
|
|
4686
|
+
handleMetaSlotChange(t) {
|
|
4687
|
+
const o = t.target;
|
|
4688
|
+
this.hasMeta = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4689
|
+
}
|
|
4690
|
+
handleEndSlotChange(t) {
|
|
4691
|
+
const o = t.target;
|
|
4692
|
+
this.hasEnd = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4693
|
+
}
|
|
4694
|
+
render() {
|
|
4695
|
+
if (this.size === "sm") {
|
|
4696
|
+
const t = l`
|
|
4697
|
+
<span class="meta ${this.hasMeta ? "has-meta" : ""}">
|
|
4698
|
+
<slot @slotchange=${this.handleMetaSlotChange}></slot>
|
|
4699
|
+
</span>
|
|
4700
|
+
`;
|
|
4701
|
+
return l`
|
|
4702
|
+
${this.href ? l`<a class="cell" href=${this.href}>${this.heading}</a>` : l`<span class="cell">${this.heading}</span>`}
|
|
4703
|
+
${this.hasMeta && this.href ? l`<a class="cell" href=${this.href}>${t}</a>` : l`<span class="cell">${t}</span>`}
|
|
4704
|
+
<span class="cell">
|
|
4705
|
+
<slot name="end" @slotchange=${this.handleEndSlotChange}></slot>
|
|
4706
|
+
</span>
|
|
4707
|
+
`;
|
|
4708
|
+
}
|
|
4709
|
+
return l`
|
|
4710
|
+
<div class="row">
|
|
4711
|
+
<div class="main">
|
|
4712
|
+
${this.href ? l`<a class="heading" href=${this.href}>${this.heading}</a>` : l`<span class="heading">${this.heading}</span>`}
|
|
4713
|
+
<div class="meta ${this.hasMeta ? "has-meta" : ""}">
|
|
4714
|
+
<slot @slotchange=${this.handleMetaSlotChange}></slot>
|
|
4715
|
+
</div>
|
|
4716
|
+
</div>
|
|
4717
|
+
<span class="end ${this.hasEnd ? "has-end" : ""}">
|
|
4718
|
+
<slot name="end" @slotchange=${this.handleEndSlotChange}></slot>
|
|
4719
|
+
</span>
|
|
4720
|
+
${this.href ? l`
|
|
4721
|
+
<a class="arrow" href=${this.href} aria-label="View ${this.heading}">
|
|
4722
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
4723
|
+
<path d="M5 12h14" />
|
|
4724
|
+
<path d="m13 6 6 6-6 6" />
|
|
4725
|
+
</svg>
|
|
4726
|
+
</a>
|
|
4727
|
+
` : v}
|
|
4728
|
+
</div>
|
|
4729
|
+
`;
|
|
4730
|
+
}
|
|
4731
|
+
};
|
|
4732
|
+
B.styles = d`
|
|
4733
|
+
:host {
|
|
4734
|
+
display: block;
|
|
4735
|
+
grid-column: 1 / -1;
|
|
4736
|
+
font-family: var(--vox-font-family-base);
|
|
4737
|
+
}
|
|
4738
|
+
|
|
4739
|
+
.row {
|
|
4740
|
+
display: flex;
|
|
4741
|
+
align-items: center;
|
|
4742
|
+
justify-content: space-between;
|
|
4743
|
+
gap: var(--vox-space-4);
|
|
4744
|
+
padding: var(--vox-space-4) 0;
|
|
4745
|
+
border-bottom: 1px solid var(--vox-color-divider);
|
|
4746
|
+
}
|
|
4747
|
+
|
|
4748
|
+
:host(:last-child) .row {
|
|
4749
|
+
border-bottom: none;
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4752
|
+
.main {
|
|
4753
|
+
display: flex;
|
|
4754
|
+
flex-direction: column;
|
|
4755
|
+
gap: var(--vox-space-1);
|
|
4756
|
+
min-width: 0;
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
.heading {
|
|
4760
|
+
font-size: 16px;
|
|
4761
|
+
font-weight: 600;
|
|
4762
|
+
line-height: 1.4;
|
|
4763
|
+
}
|
|
4764
|
+
|
|
4765
|
+
a.heading {
|
|
4766
|
+
color: var(--vox-color-brand-1);
|
|
4767
|
+
text-decoration: none;
|
|
4768
|
+
}
|
|
4769
|
+
|
|
4770
|
+
a.heading:hover,
|
|
4771
|
+
a.heading:focus-visible {
|
|
4772
|
+
text-decoration: underline;
|
|
4773
|
+
}
|
|
4774
|
+
|
|
4775
|
+
a.heading:focus-visible {
|
|
4776
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
4777
|
+
outline-offset: 2px;
|
|
4778
|
+
}
|
|
4779
|
+
|
|
4780
|
+
span.heading {
|
|
4781
|
+
color: var(--vox-color-text-1);
|
|
4782
|
+
}
|
|
4783
|
+
|
|
4784
|
+
.meta {
|
|
4785
|
+
display: flex;
|
|
4786
|
+
flex-wrap: wrap;
|
|
4787
|
+
align-items: center;
|
|
4788
|
+
gap: var(--vox-space-4);
|
|
4789
|
+
}
|
|
4790
|
+
|
|
4791
|
+
.meta:not(.has-meta) {
|
|
4792
|
+
display: none;
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
.arrow {
|
|
4796
|
+
display: flex;
|
|
4797
|
+
flex: none;
|
|
4798
|
+
align-items: center;
|
|
4799
|
+
justify-content: center;
|
|
4800
|
+
width: 36px;
|
|
4801
|
+
height: 36px;
|
|
4802
|
+
border-radius: var(--vox-radius-full);
|
|
4803
|
+
background-color: var(--vox-color-bg-soft);
|
|
4804
|
+
color: var(--vox-color-brand-1);
|
|
4805
|
+
text-decoration: none;
|
|
4806
|
+
transition: background-color var(--vox-transition-fast);
|
|
4807
|
+
}
|
|
4808
|
+
|
|
4809
|
+
.arrow:hover {
|
|
4810
|
+
background-color: var(--vox-color-brand-soft);
|
|
4811
|
+
}
|
|
4812
|
+
|
|
4813
|
+
.arrow:focus-visible {
|
|
4814
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
4815
|
+
outline-offset: 2px;
|
|
4816
|
+
}
|
|
4817
|
+
|
|
4818
|
+
.arrow svg {
|
|
4819
|
+
width: 16px;
|
|
4820
|
+
height: 16px;
|
|
4821
|
+
}
|
|
4822
|
+
|
|
4823
|
+
.end:not(.has-end) {
|
|
4824
|
+
display: none;
|
|
4825
|
+
}
|
|
4826
|
+
|
|
4827
|
+
/* Small size: heading, meta, and end each become their own subgrid
|
|
4828
|
+
column, aligned against the same column in every other size="sm"
|
|
4829
|
+
row in the parent <vox-record-list> — the arrow drops out since
|
|
4830
|
+
there's no room for it at this density, and the whole "row" is
|
|
4831
|
+
really 3 separate grid cells rather than one box, so heading and
|
|
4832
|
+
the meta cell each link to href individually. */
|
|
4833
|
+
:host([size='sm']) {
|
|
4834
|
+
display: grid;
|
|
4835
|
+
grid-template-columns: subgrid;
|
|
4836
|
+
grid-column: 1 / -1;
|
|
4837
|
+
align-items: baseline;
|
|
4838
|
+
column-gap: var(--vox-space-4);
|
|
4839
|
+
padding: var(--vox-space-2) 0;
|
|
4840
|
+
border-bottom: 1px solid var(--vox-color-divider);
|
|
4841
|
+
font-size: 13px;
|
|
4842
|
+
}
|
|
4843
|
+
|
|
4844
|
+
:host([size='sm']:last-child) {
|
|
4845
|
+
border-bottom: none;
|
|
4846
|
+
}
|
|
4847
|
+
|
|
4848
|
+
:host([size='sm']) .meta {
|
|
4849
|
+
flex-wrap: nowrap;
|
|
4850
|
+
gap: var(--vox-space-2);
|
|
4851
|
+
}
|
|
4852
|
+
|
|
4853
|
+
.cell {
|
|
4854
|
+
color: var(--vox-color-text-2);
|
|
4855
|
+
text-decoration: none;
|
|
4856
|
+
}
|
|
4857
|
+
|
|
4858
|
+
a.cell:hover,
|
|
4859
|
+
a.cell:focus-visible {
|
|
4860
|
+
text-decoration: underline;
|
|
4861
|
+
}
|
|
4862
|
+
|
|
4863
|
+
a.cell:focus-visible {
|
|
4864
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
4865
|
+
outline-offset: 2px;
|
|
4866
|
+
}
|
|
4867
|
+
`;
|
|
4868
|
+
be([
|
|
4869
|
+
n()
|
|
4870
|
+
], B.prototype, "heading", 2);
|
|
4871
|
+
be([
|
|
4872
|
+
n()
|
|
4873
|
+
], B.prototype, "href", 2);
|
|
4874
|
+
be([
|
|
4875
|
+
n({ reflect: !0 })
|
|
4876
|
+
], B.prototype, "size", 2);
|
|
4877
|
+
B = be([
|
|
4878
|
+
h("vox-record-list-item")
|
|
4879
|
+
], B);
|
|
4880
|
+
var cr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, P = (t, o, a, r) => {
|
|
4881
|
+
for (var e = r > 1 ? void 0 : r ? dr(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
4882
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
4883
|
+
return r && e && cr(o, a, e), e;
|
|
4884
|
+
};
|
|
4885
|
+
let ze = class extends p {
|
|
5082
4886
|
constructor() {
|
|
5083
4887
|
super(...arguments), this.heading = "", this.hasDescription = !1;
|
|
5084
4888
|
}
|
|
5085
|
-
handleDescriptionSlotChange(
|
|
5086
|
-
const
|
|
5087
|
-
this.hasDescription =
|
|
4889
|
+
handleDescriptionSlotChange(t) {
|
|
4890
|
+
const o = t.target;
|
|
4891
|
+
this.hasDescription = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5088
4892
|
}
|
|
5089
4893
|
render() {
|
|
5090
4894
|
return l`
|
|
@@ -5101,7 +4905,7 @@ let Be = class extends h {
|
|
|
5101
4905
|
`;
|
|
5102
4906
|
}
|
|
5103
4907
|
};
|
|
5104
|
-
|
|
4908
|
+
ze.styles = d`
|
|
5105
4909
|
:host {
|
|
5106
4910
|
display: block;
|
|
5107
4911
|
font-family: var(--vox-font-family-base);
|
|
@@ -5133,22 +4937,22 @@ Be.styles = d`
|
|
|
5133
4937
|
margin-top: var(--vox-space-6);
|
|
5134
4938
|
}
|
|
5135
4939
|
`;
|
|
5136
|
-
|
|
4940
|
+
P([
|
|
5137
4941
|
n()
|
|
5138
|
-
],
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
],
|
|
5142
|
-
let
|
|
4942
|
+
], ze.prototype, "heading", 2);
|
|
4943
|
+
ze = P([
|
|
4944
|
+
h("vox-sponsor-tier")
|
|
4945
|
+
], ze);
|
|
4946
|
+
let M = class extends p {
|
|
5143
4947
|
constructor() {
|
|
5144
4948
|
super(...arguments), this.name = "", this.hasBody = !1;
|
|
5145
4949
|
}
|
|
5146
|
-
handleBodySlotChange(
|
|
5147
|
-
const
|
|
5148
|
-
this.hasBody =
|
|
4950
|
+
handleBodySlotChange(t) {
|
|
4951
|
+
const o = t.target;
|
|
4952
|
+
this.hasBody = o.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
5149
4953
|
}
|
|
5150
4954
|
render() {
|
|
5151
|
-
const
|
|
4955
|
+
const t = l`
|
|
5152
4956
|
<div class="logo ${this.logo ? "has-logo" : ""}">
|
|
5153
4957
|
${this.logo ? l`<img src=${this.logo} alt=${this.name} />` : v}
|
|
5154
4958
|
</div>
|
|
@@ -5161,11 +4965,11 @@ let P = class extends h {
|
|
|
5161
4965
|
class="sponsor"
|
|
5162
4966
|
href=${this.href}
|
|
5163
4967
|
target=${this.target ?? v}
|
|
5164
|
-
>${
|
|
5165
|
-
>` : l`<div class="sponsor">${
|
|
4968
|
+
>${t}</a
|
|
4969
|
+
>` : l`<div class="sponsor">${t}</div>`;
|
|
5166
4970
|
}
|
|
5167
4971
|
};
|
|
5168
|
-
|
|
4972
|
+
M.styles = d`
|
|
5169
4973
|
:host {
|
|
5170
4974
|
display: block;
|
|
5171
4975
|
}
|
|
@@ -5231,27 +5035,27 @@ P.styles = d`
|
|
|
5231
5035
|
display: none;
|
|
5232
5036
|
}
|
|
5233
5037
|
`;
|
|
5234
|
-
|
|
5038
|
+
P([
|
|
5235
5039
|
n()
|
|
5236
|
-
],
|
|
5237
|
-
|
|
5040
|
+
], M.prototype, "name", 2);
|
|
5041
|
+
P([
|
|
5238
5042
|
n()
|
|
5239
|
-
],
|
|
5240
|
-
|
|
5043
|
+
], M.prototype, "href", 2);
|
|
5044
|
+
P([
|
|
5241
5045
|
n()
|
|
5242
|
-
],
|
|
5243
|
-
|
|
5046
|
+
], M.prototype, "logo", 2);
|
|
5047
|
+
P([
|
|
5244
5048
|
n()
|
|
5245
|
-
],
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
],
|
|
5249
|
-
var
|
|
5250
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
5251
|
-
(i =
|
|
5252
|
-
return r && e &&
|
|
5049
|
+
], M.prototype, "target", 2);
|
|
5050
|
+
M = P([
|
|
5051
|
+
h("vox-sponsor")
|
|
5052
|
+
], M);
|
|
5053
|
+
var hr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, vo = (t, o, a, r) => {
|
|
5054
|
+
for (var e = r > 1 ? void 0 : r ? pr(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
5055
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
5056
|
+
return r && e && hr(o, a, e), e;
|
|
5253
5057
|
};
|
|
5254
|
-
let
|
|
5058
|
+
let ne = class extends p {
|
|
5255
5059
|
constructor() {
|
|
5256
5060
|
super(...arguments), this.value = "", this.label = "";
|
|
5257
5061
|
}
|
|
@@ -5263,7 +5067,7 @@ let he = class extends h {
|
|
|
5263
5067
|
`;
|
|
5264
5068
|
}
|
|
5265
5069
|
};
|
|
5266
|
-
|
|
5070
|
+
ne.styles = d`
|
|
5267
5071
|
:host {
|
|
5268
5072
|
display: block;
|
|
5269
5073
|
font-family: var(--vox-font-family-base);
|
|
@@ -5290,24 +5094,24 @@ he.styles = d`
|
|
|
5290
5094
|
color: var(--vox-color-text-2);
|
|
5291
5095
|
}
|
|
5292
5096
|
`;
|
|
5293
|
-
|
|
5097
|
+
vo([
|
|
5294
5098
|
n()
|
|
5295
|
-
],
|
|
5296
|
-
|
|
5099
|
+
], ne.prototype, "value", 2);
|
|
5100
|
+
vo([
|
|
5297
5101
|
n()
|
|
5298
|
-
],
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
],
|
|
5302
|
-
var
|
|
5303
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
5304
|
-
(i =
|
|
5305
|
-
return r && e &&
|
|
5102
|
+
], ne.prototype, "label", 2);
|
|
5103
|
+
ne = vo([
|
|
5104
|
+
h("vox-stat")
|
|
5105
|
+
], ne);
|
|
5106
|
+
var vr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, me = (t, o, a, r) => {
|
|
5107
|
+
for (var e = r > 1 ? void 0 : r ? xr(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
5108
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
5109
|
+
return r && e && vr(o, a, e), e;
|
|
5306
5110
|
};
|
|
5307
|
-
let
|
|
5111
|
+
let Je = class extends p {
|
|
5308
5112
|
numberSteps() {
|
|
5309
|
-
this.querySelectorAll("vox-step").forEach((
|
|
5310
|
-
|
|
5113
|
+
this.querySelectorAll("vox-step").forEach((t, o) => {
|
|
5114
|
+
t.number = o + 1;
|
|
5311
5115
|
});
|
|
5312
5116
|
}
|
|
5313
5117
|
render() {
|
|
@@ -5318,7 +5122,7 @@ let tt = class extends h {
|
|
|
5318
5122
|
`;
|
|
5319
5123
|
}
|
|
5320
5124
|
};
|
|
5321
|
-
|
|
5125
|
+
Je.styles = d`
|
|
5322
5126
|
:host {
|
|
5323
5127
|
display: block;
|
|
5324
5128
|
}
|
|
@@ -5332,10 +5136,10 @@ tt.styles = d`
|
|
|
5332
5136
|
flex: 1 1 0;
|
|
5333
5137
|
}
|
|
5334
5138
|
`;
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
],
|
|
5338
|
-
let
|
|
5139
|
+
Je = me([
|
|
5140
|
+
h("vox-step-indicator")
|
|
5141
|
+
], Je);
|
|
5142
|
+
let q = class extends p {
|
|
5339
5143
|
constructor() {
|
|
5340
5144
|
super(...arguments), this.label = "", this.state = "upcoming", this.number = 1;
|
|
5341
5145
|
}
|
|
@@ -5356,7 +5160,7 @@ let R = class extends h {
|
|
|
5356
5160
|
`;
|
|
5357
5161
|
}
|
|
5358
5162
|
};
|
|
5359
|
-
|
|
5163
|
+
q.styles = d`
|
|
5360
5164
|
:host {
|
|
5361
5165
|
display: block;
|
|
5362
5166
|
font-family: var(--vox-font-family-base);
|
|
@@ -5430,37 +5234,37 @@ R.styles = d`
|
|
|
5430
5234
|
color: var(--vox-color-text-1);
|
|
5431
5235
|
}
|
|
5432
5236
|
`;
|
|
5433
|
-
|
|
5237
|
+
me([
|
|
5434
5238
|
n()
|
|
5435
|
-
],
|
|
5436
|
-
|
|
5239
|
+
], q.prototype, "label", 2);
|
|
5240
|
+
me([
|
|
5437
5241
|
n({ reflect: !0 })
|
|
5438
|
-
],
|
|
5439
|
-
|
|
5242
|
+
], q.prototype, "state", 2);
|
|
5243
|
+
me([
|
|
5440
5244
|
n({ type: Number })
|
|
5441
|
-
],
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
],
|
|
5445
|
-
var
|
|
5446
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
5447
|
-
(i =
|
|
5448
|
-
return r && e &&
|
|
5245
|
+
], q.prototype, "number", 2);
|
|
5246
|
+
q = me([
|
|
5247
|
+
h("vox-step")
|
|
5248
|
+
], q);
|
|
5249
|
+
var ur = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, Te = (t, o, a, r) => {
|
|
5250
|
+
for (var e = r > 1 ? void 0 : r ? fr(o, a) : o, s = t.length - 1, i; s >= 0; s--)
|
|
5251
|
+
(i = t[s]) && (e = (r ? i(o, a, e) : i(e)) || e);
|
|
5252
|
+
return r && e && ur(o, a, e), e;
|
|
5449
5253
|
};
|
|
5450
|
-
let
|
|
5254
|
+
let We = class extends p {
|
|
5451
5255
|
render() {
|
|
5452
5256
|
return l`<slot></slot>`;
|
|
5453
5257
|
}
|
|
5454
5258
|
};
|
|
5455
|
-
|
|
5259
|
+
We.styles = d`
|
|
5456
5260
|
:host {
|
|
5457
5261
|
display: block;
|
|
5458
5262
|
}
|
|
5459
5263
|
`;
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
],
|
|
5463
|
-
let
|
|
5264
|
+
We = Te([
|
|
5265
|
+
h("vox-timeline")
|
|
5266
|
+
], We);
|
|
5267
|
+
let le = class extends p {
|
|
5464
5268
|
constructor() {
|
|
5465
5269
|
super(...arguments), this.heading = "", this.date = "";
|
|
5466
5270
|
}
|
|
@@ -5475,7 +5279,7 @@ let ve = class extends h {
|
|
|
5475
5279
|
`;
|
|
5476
5280
|
}
|
|
5477
5281
|
};
|
|
5478
|
-
|
|
5282
|
+
le.styles = d`
|
|
5479
5283
|
:host {
|
|
5480
5284
|
display: block;
|
|
5481
5285
|
font-family: var(--vox-font-family-base);
|
|
@@ -5525,70 +5329,73 @@ ve.styles = d`
|
|
|
5525
5329
|
color: var(--vox-color-text-2);
|
|
5526
5330
|
}
|
|
5527
5331
|
`;
|
|
5528
|
-
|
|
5332
|
+
Te([
|
|
5529
5333
|
n()
|
|
5530
|
-
],
|
|
5531
|
-
|
|
5334
|
+
], le.prototype, "heading", 2);
|
|
5335
|
+
Te([
|
|
5532
5336
|
n()
|
|
5533
|
-
],
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
],
|
|
5337
|
+
], le.prototype, "date", 2);
|
|
5338
|
+
le = Te([
|
|
5339
|
+
h("vox-timeline-item")
|
|
5340
|
+
], le);
|
|
5537
5341
|
export {
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5342
|
+
Me as VoxAccordion,
|
|
5343
|
+
ee as VoxAccordionItem,
|
|
5344
|
+
C as VoxAlert,
|
|
5345
|
+
w as VoxAvatar,
|
|
5346
|
+
Oe as VoxBadge,
|
|
5347
|
+
K as VoxBillboard,
|
|
5348
|
+
Ze as VoxBreadcrumbs,
|
|
5349
|
+
f as VoxButton,
|
|
5350
|
+
oe as VoxCalendarTile,
|
|
5351
|
+
te as VoxCallout,
|
|
5352
|
+
S as VoxCard,
|
|
5353
|
+
R as VoxCheckbox,
|
|
5354
|
+
T as VoxCta,
|
|
5355
|
+
ke as VoxCtaBand,
|
|
5356
|
+
Pe as VoxDatum,
|
|
5357
|
+
_ as VoxDialog,
|
|
5358
|
+
Q as VoxDisclosure,
|
|
5359
|
+
Y as VoxDropdown,
|
|
5360
|
+
Le as VoxEmptyState,
|
|
5361
|
+
g as VoxFileInput,
|
|
5362
|
+
Ue as VoxFooter,
|
|
5363
|
+
Ve as VoxFooterColumn,
|
|
5364
|
+
A as VoxGrid,
|
|
5365
|
+
D as VoxHeader,
|
|
5366
|
+
re as VoxHero,
|
|
5367
|
+
j as VoxIcon,
|
|
5368
|
+
b as VoxInput,
|
|
5369
|
+
Fe as VoxInputGroup,
|
|
5370
|
+
Ge as VoxLinkHub,
|
|
5371
|
+
ae as VoxLinkHubItem,
|
|
5372
|
+
se as VoxLoader,
|
|
5373
|
+
H as VoxMenu,
|
|
5374
|
+
je as VoxPagination,
|
|
5375
|
+
ie as VoxQuote,
|
|
5376
|
+
z as VoxRadio,
|
|
5377
|
+
$e as VoxRadioGroup,
|
|
5378
|
+
Xe as VoxRecordList,
|
|
5379
|
+
B as VoxRecordListItem,
|
|
5380
|
+
F as VoxSelect,
|
|
5381
|
+
$ as VoxSeriesNav,
|
|
5382
|
+
E as VoxSidenav,
|
|
5383
|
+
U as VoxSidenavGroup,
|
|
5384
|
+
G as VoxSidenavItem,
|
|
5385
|
+
M as VoxSponsor,
|
|
5386
|
+
ze as VoxSponsorTier,
|
|
5387
|
+
ne as VoxStat,
|
|
5388
|
+
q as VoxStep,
|
|
5389
|
+
Je as VoxStepIndicator,
|
|
5390
|
+
_e as VoxSubnav,
|
|
5391
|
+
Z as VoxSwitch,
|
|
5392
|
+
X as VoxTab,
|
|
5393
|
+
J as VoxTabPanel,
|
|
5394
|
+
Ke as VoxTabs,
|
|
5395
|
+
y as VoxTextarea,
|
|
5396
|
+
V as VoxThemeToggle,
|
|
5397
|
+
We as VoxTimeline,
|
|
5398
|
+
le as VoxTimelineItem,
|
|
5399
|
+
Ce as VoxToc,
|
|
5400
|
+
W as VoxTocItem
|
|
5594
5401
|
};
|