@openvoxproject/voxblocks 0.14.0 → 0.15.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 +2406 -1640
- package/dist/types/components/code-block/languages.d.ts +28 -0
- package/dist/types/components/code-block/vox-code-block.d.ts +34 -0
- package/dist/types/components/combobox/vox-combobox.d.ts +56 -0
- package/dist/types/components/input/vox-input.d.ts +18 -1
- package/dist/types/components/range/vox-range.d.ts +36 -0
- package/dist/types/components/select/vox-select.d.ts +17 -0
- package/dist/types/index.d.ts +4 -5
- package/dist/voxblocks.css +1 -1
- package/dist/voxblocks.js +2160 -1394
- package/package.json +1 -1
- package/src/components/code-block/languages.ts +259 -0
- package/src/components/code-block/vox-code-block.ts +302 -0
- package/src/components/combobox/vox-combobox.ts +394 -0
- package/src/components/dropdown/vox-dropdown.ts +0 -6
- package/src/components/input/vox-input.ts +52 -2
- package/src/components/range/vox-range.ts +194 -0
- package/src/components/select/vox-select.ts +68 -3
- package/src/index.ts +4 -5
- package/src/tokens/tokens.css +17 -0
- package/dist/types/components/datum/vox-datum.d.ts +0 -25
- package/dist/types/components/menu/vox-menu.d.ts +0 -44
- package/dist/types/components/record-list/vox-record-list.d.ts +0 -53
- package/src/components/datum/vox-datum.ts +0 -76
- package/src/components/menu/vox-menu.ts +0 -203
- package/src/components/record-list/vox-record-list.ts +0 -263
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 h, html as l, svg as c, nothing as v } from "lit";
|
|
2
|
+
import { property as n, customElement as p, state as $, query as J } from "lit/decorators.js";
|
|
3
|
+
import { classMap as Vt } from "lit/directives/class-map.js";
|
|
4
|
+
import { ifDefined as u } from "lit/directives/if-defined.js";
|
|
5
|
+
import { live as Fe } from "lit/directives/live.js";
|
|
6
|
+
var qt = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, B = (o, t, a, r) => {
|
|
7
|
+
for (var e = r > 1 ? void 0 : r ? Nt(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
8
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
9
|
+
return r && e && qt(t, a, e), e;
|
|
10
10
|
};
|
|
11
|
-
let
|
|
11
|
+
let C = class extends h {
|
|
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 o = Vt({
|
|
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=${o}
|
|
24
24
|
href=${this.href}
|
|
25
|
-
target=${
|
|
26
|
-
rel=${
|
|
25
|
+
target=${u(this.target)}
|
|
26
|
+
rel=${u(this.target === "_blank" ? "noreferrer" : void 0)}
|
|
27
27
|
>
|
|
28
28
|
<slot></slot>
|
|
29
29
|
</a>
|
|
30
30
|
` : l`
|
|
31
|
-
<button class=${
|
|
31
|
+
<button class=${o} type=${this.type} ?disabled=${this.disabled}>
|
|
32
32
|
<slot></slot>
|
|
33
33
|
</button>
|
|
34
34
|
`;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
C.styles = d`
|
|
38
38
|
:host {
|
|
39
39
|
display: inline-block;
|
|
40
40
|
}
|
|
@@ -142,33 +142,33 @@ f.styles = d`
|
|
|
142
142
|
border-radius: 0 var(--vox-radius-md) var(--vox-radius-md) 0;
|
|
143
143
|
}
|
|
144
144
|
`;
|
|
145
|
-
|
|
145
|
+
B([
|
|
146
146
|
n()
|
|
147
|
-
],
|
|
148
|
-
|
|
147
|
+
], C.prototype, "variant", 2);
|
|
148
|
+
B([
|
|
149
149
|
n()
|
|
150
|
-
],
|
|
151
|
-
|
|
150
|
+
], C.prototype, "size", 2);
|
|
151
|
+
B([
|
|
152
152
|
n()
|
|
153
|
-
],
|
|
154
|
-
|
|
153
|
+
], C.prototype, "href", 2);
|
|
154
|
+
B([
|
|
155
155
|
n()
|
|
156
|
-
],
|
|
157
|
-
|
|
156
|
+
], C.prototype, "target", 2);
|
|
157
|
+
B([
|
|
158
158
|
n()
|
|
159
|
-
],
|
|
160
|
-
|
|
159
|
+
], C.prototype, "type", 2);
|
|
160
|
+
B([
|
|
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
|
+
], C.prototype, "disabled", 2);
|
|
163
|
+
C = B([
|
|
164
|
+
p("vox-button")
|
|
165
|
+
], C);
|
|
166
|
+
var Tt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, dt = (o, t, a, r) => {
|
|
167
|
+
for (var e = r > 1 ? void 0 : r ? Rt(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
168
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
169
|
+
return r && e && Tt(t, a, e), e;
|
|
170
170
|
};
|
|
171
|
-
let
|
|
171
|
+
let te = class extends h {
|
|
172
172
|
constructor() {
|
|
173
173
|
super(...arguments), this.href = "#";
|
|
174
174
|
}
|
|
@@ -184,7 +184,7 @@ let T = class extends p {
|
|
|
184
184
|
`;
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
te.styles = d`
|
|
188
188
|
:host {
|
|
189
189
|
display: inline-block;
|
|
190
190
|
font-family: var(--vox-font-family-base);
|
|
@@ -221,60 +221,60 @@ T.styles = d`
|
|
|
221
221
|
transform: translateX(3px);
|
|
222
222
|
}
|
|
223
223
|
`;
|
|
224
|
-
|
|
224
|
+
dt([
|
|
225
225
|
n()
|
|
226
|
-
],
|
|
227
|
-
|
|
226
|
+
], te.prototype, "href", 2);
|
|
227
|
+
dt([
|
|
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
|
+
], te.prototype, "target", 2);
|
|
230
|
+
te = dt([
|
|
231
|
+
p("vox-cta")
|
|
232
|
+
], te);
|
|
233
|
+
var Zt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, Ke = (o, t, a, r) => {
|
|
234
|
+
for (var e = r > 1 ? void 0 : r ? Ft(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
235
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
236
|
+
return r && e && Zt(t, a, e), e;
|
|
237
237
|
};
|
|
238
|
-
const
|
|
239
|
-
let
|
|
238
|
+
const Ct = "vox-theme", je = "data-vox-theme";
|
|
239
|
+
let Z = class extends h {
|
|
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 = (o) => {
|
|
242
|
+
localStorage.getItem(Ct) || document.documentElement.setAttribute(je, o.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: [je]
|
|
249
249
|
}), this.media.addEventListener("change", this.handleSystemChange);
|
|
250
250
|
}
|
|
251
251
|
disconnectedCallback() {
|
|
252
|
-
var
|
|
253
|
-
super.disconnectedCallback(), (
|
|
252
|
+
var o;
|
|
253
|
+
super.disconnectedCallback(), (o = this.observer) == null || o.disconnect(), this.media.removeEventListener("change", this.handleSystemChange);
|
|
254
254
|
}
|
|
255
255
|
syncFromDocument() {
|
|
256
|
-
const
|
|
257
|
-
this.dark =
|
|
256
|
+
const o = document.documentElement.getAttribute(je) === "dark";
|
|
257
|
+
this.dark = o, this.toggleAttribute("dark", o);
|
|
258
258
|
}
|
|
259
259
|
handleClick() {
|
|
260
|
-
const
|
|
261
|
-
document.documentElement.setAttribute(
|
|
260
|
+
const o = this.dark ? "light" : "dark";
|
|
261
|
+
document.documentElement.setAttribute(je, o), localStorage.setItem(Ct, o), this.dispatchEvent(
|
|
262
262
|
new CustomEvent("vox-theme-change", {
|
|
263
|
-
detail: { theme:
|
|
263
|
+
detail: { theme: o },
|
|
264
264
|
bubbles: !0,
|
|
265
265
|
composed: !0
|
|
266
266
|
})
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
render() {
|
|
270
|
-
const
|
|
270
|
+
const o = 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=${o}
|
|
277
|
+
title=${o}
|
|
278
278
|
@click=${this.handleClick}
|
|
279
279
|
>
|
|
280
280
|
<span class="track">
|
|
@@ -291,7 +291,7 @@ let V = class extends p {
|
|
|
291
291
|
`;
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
|
-
|
|
294
|
+
Z.styles = d`
|
|
295
295
|
:host {
|
|
296
296
|
display: inline-flex;
|
|
297
297
|
}
|
|
@@ -350,19 +350,19 @@ V.styles = d`
|
|
|
350
350
|
transform: translateX(20px);
|
|
351
351
|
}
|
|
352
352
|
`;
|
|
353
|
-
|
|
353
|
+
Ke([
|
|
354
354
|
n({ attribute: "light-label" })
|
|
355
|
-
],
|
|
356
|
-
|
|
355
|
+
], Z.prototype, "lightLabel", 2);
|
|
356
|
+
Ke([
|
|
357
357
|
n({ attribute: "dark-label" })
|
|
358
|
-
],
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
],
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
],
|
|
365
|
-
const
|
|
358
|
+
], Z.prototype, "darkLabel", 2);
|
|
359
|
+
Ke([
|
|
360
|
+
$()
|
|
361
|
+
], Z.prototype, "dark", 2);
|
|
362
|
+
Z = Ke([
|
|
363
|
+
p("vox-theme-toggle")
|
|
364
|
+
], Z);
|
|
365
|
+
const O = {
|
|
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 m = {
|
|
|
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 Kt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, Ue = (o, t, a, r) => {
|
|
454
|
+
for (var e = r > 1 ? void 0 : r ? Ut(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
455
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
456
|
+
return r && e && Kt(t, a, e), e;
|
|
457
457
|
};
|
|
458
|
-
let
|
|
458
|
+
let F = class extends h {
|
|
459
459
|
constructor() {
|
|
460
460
|
super(...arguments), this.name = "info", this.size = "md";
|
|
461
461
|
}
|
|
462
462
|
render() {
|
|
463
|
-
const
|
|
464
|
-
return
|
|
463
|
+
const o = O[this.name];
|
|
464
|
+
return o ? l`
|
|
465
465
|
<svg
|
|
466
466
|
viewBox="0 0 48 48"
|
|
467
467
|
fill="none"
|
|
@@ -473,12 +473,12 @@ let j = class extends p {
|
|
|
473
473
|
aria-hidden=${this.label ? v : "true"}
|
|
474
474
|
aria-label=${this.label ?? v}
|
|
475
475
|
>
|
|
476
|
-
${
|
|
476
|
+
${o}
|
|
477
477
|
</svg>
|
|
478
478
|
` : v;
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
|
-
|
|
481
|
+
F.styles = d`
|
|
482
482
|
:host {
|
|
483
483
|
display: inline-flex;
|
|
484
484
|
flex: none;
|
|
@@ -509,24 +509,24 @@ j.styles = d`
|
|
|
509
509
|
height: 48px;
|
|
510
510
|
}
|
|
511
511
|
`;
|
|
512
|
-
|
|
512
|
+
Ue([
|
|
513
513
|
n()
|
|
514
|
-
],
|
|
515
|
-
|
|
514
|
+
], F.prototype, "name", 2);
|
|
515
|
+
Ue([
|
|
516
516
|
n({ reflect: !0 })
|
|
517
|
-
],
|
|
518
|
-
|
|
517
|
+
], F.prototype, "size", 2);
|
|
518
|
+
Ue([
|
|
519
519
|
n()
|
|
520
|
-
],
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
],
|
|
524
|
-
var
|
|
525
|
-
for (var e = void 0, s =
|
|
526
|
-
(i =
|
|
527
|
-
return e &&
|
|
520
|
+
], F.prototype, "label", 2);
|
|
521
|
+
F = Ue([
|
|
522
|
+
p("vox-icon")
|
|
523
|
+
], F);
|
|
524
|
+
var Gt = Object.defineProperty, we = (o, t, a, r) => {
|
|
525
|
+
for (var e = void 0, s = o.length - 1, i; s >= 0; s--)
|
|
526
|
+
(i = o[s]) && (e = i(t, a, e) || e);
|
|
527
|
+
return e && Gt(t, a, e), e;
|
|
528
528
|
};
|
|
529
|
-
const
|
|
529
|
+
const _t = class _t extends h {
|
|
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 xo = class xo extends p {
|
|
|
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(t) {
|
|
550
|
+
this.internals.setValidity(t.validity, t.validationMessage, t);
|
|
551
551
|
}
|
|
552
|
-
renderLabel(
|
|
552
|
+
renderLabel(t) {
|
|
553
553
|
return this.label ? l`
|
|
554
|
-
<label class="label" for=${
|
|
554
|
+
<label class="label" for=${t}>
|
|
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 xo = class xo extends p {
|
|
|
560
560
|
return this.note ? l`<p class="note">${this.note}</p>` : v;
|
|
561
561
|
}
|
|
562
562
|
};
|
|
563
|
-
|
|
564
|
-
let x =
|
|
565
|
-
|
|
563
|
+
_t.formAssociated = !0;
|
|
564
|
+
let x = _t;
|
|
565
|
+
we([
|
|
566
566
|
n()
|
|
567
567
|
], x.prototype, "name");
|
|
568
|
-
|
|
568
|
+
we([
|
|
569
569
|
n()
|
|
570
570
|
], x.prototype, "label");
|
|
571
|
-
|
|
571
|
+
we([
|
|
572
572
|
n()
|
|
573
573
|
], x.prototype, "note");
|
|
574
|
-
|
|
574
|
+
we([
|
|
575
575
|
n({ type: Boolean, reflect: !0 })
|
|
576
576
|
], x.prototype, "disabled");
|
|
577
|
-
|
|
577
|
+
we([
|
|
578
578
|
n({ type: Boolean, reflect: !0 })
|
|
579
579
|
], x.prototype, "required");
|
|
580
|
-
const
|
|
580
|
+
const I = d`
|
|
581
581
|
:host {
|
|
582
582
|
display: block;
|
|
583
583
|
font-family: var(--vox-font-family-base);
|
|
@@ -644,7 +644,7 @@ const de = 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
|
+
`, zt = d`
|
|
648
648
|
:host {
|
|
649
649
|
display: block;
|
|
650
650
|
font-family: var(--vox-font-family-base);
|
|
@@ -673,12 +673,12 @@ const de = 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 Yt = Object.defineProperty, Wt = Object.getOwnPropertyDescriptor, pt = (o, t, a, r) => {
|
|
677
|
+
for (var e = r > 1 ? void 0 : r ? Wt(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
678
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
679
|
+
return r && e && Yt(t, a, e), e;
|
|
680
680
|
};
|
|
681
|
-
let
|
|
681
|
+
let oe = class extends x {
|
|
682
682
|
constructor() {
|
|
683
683
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
684
684
|
}
|
|
@@ -692,8 +692,8 @@ let R = class extends x {
|
|
|
692
692
|
this.renderRoot.querySelector("input") ?? void 0
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
|
-
handleChange(
|
|
696
|
-
this.checked =
|
|
695
|
+
handleChange(o) {
|
|
696
|
+
this.checked = o.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
697
697
|
}
|
|
698
698
|
render() {
|
|
699
699
|
return l`
|
|
@@ -714,8 +714,8 @@ let R = class extends x {
|
|
|
714
714
|
`;
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
|
-
|
|
718
|
-
|
|
717
|
+
oe.styles = [
|
|
718
|
+
zt,
|
|
719
719
|
d`
|
|
720
720
|
.box {
|
|
721
721
|
flex: none;
|
|
@@ -755,21 +755,320 @@ R.styles = [
|
|
|
755
755
|
}
|
|
756
756
|
`
|
|
757
757
|
];
|
|
758
|
-
|
|
758
|
+
pt([
|
|
759
759
|
n({ type: Boolean, reflect: !0 })
|
|
760
|
-
],
|
|
761
|
-
|
|
760
|
+
], oe.prototype, "checked", 2);
|
|
761
|
+
pt([
|
|
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
|
+
], oe.prototype, "value", 2);
|
|
764
|
+
oe = pt([
|
|
765
|
+
p("vox-checkbox")
|
|
766
|
+
], oe);
|
|
767
|
+
var Xt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, m = (o, t, a, r) => {
|
|
768
|
+
for (var e = r > 1 ? void 0 : r ? Jt(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
769
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
770
|
+
return r && e && Xt(t, a, e), e;
|
|
771
771
|
};
|
|
772
772
|
let g = class extends x {
|
|
773
|
+
constructor() {
|
|
774
|
+
super(...arguments), this.value = "", this.allowCustom = !1, this.emptyText = "No matches", this.query = "", this.open = !1, this.activeIndex = -1, this.options = [];
|
|
775
|
+
}
|
|
776
|
+
get filtered() {
|
|
777
|
+
const o = this.query.trim().toLowerCase();
|
|
778
|
+
return !o || o === this.selectedLabel.toLowerCase() ? this.options : this.options.filter((t) => t.label.toLowerCase().includes(o));
|
|
779
|
+
}
|
|
780
|
+
get selectedLabel() {
|
|
781
|
+
var o;
|
|
782
|
+
return ((o = this.options.find((t) => t.value === this.value)) == null ? void 0 : o.label) ?? "";
|
|
783
|
+
}
|
|
784
|
+
willUpdate(o) {
|
|
785
|
+
var t;
|
|
786
|
+
o.has("value") && ((t = this.shadowRoot) == null ? void 0 : t.activeElement) === null && (this.query = this.selectedLabel);
|
|
787
|
+
}
|
|
788
|
+
formResetCallback() {
|
|
789
|
+
this.value = "", this.query = "", this.close();
|
|
790
|
+
}
|
|
791
|
+
updated() {
|
|
792
|
+
this.internals.setFormValue(this.value || null), this.internals.setValidity(
|
|
793
|
+
this.required && !this.value ? { valueMissing: !0 } : {},
|
|
794
|
+
"Please select an option.",
|
|
795
|
+
this.inputEl
|
|
796
|
+
);
|
|
797
|
+
}
|
|
798
|
+
focus(o) {
|
|
799
|
+
var t;
|
|
800
|
+
(t = this.inputEl) == null || t.focus(o);
|
|
801
|
+
}
|
|
802
|
+
readOptions() {
|
|
803
|
+
this.options = [...this.querySelectorAll("option")].map((o) => {
|
|
804
|
+
var t;
|
|
805
|
+
return {
|
|
806
|
+
value: o.value,
|
|
807
|
+
label: ((t = o.textContent) == null ? void 0 : t.trim()) ?? "",
|
|
808
|
+
disabled: o.disabled
|
|
809
|
+
};
|
|
810
|
+
}), this.value && !this.query && (this.query = this.selectedLabel);
|
|
811
|
+
}
|
|
812
|
+
openList() {
|
|
813
|
+
if (this.open || this.disabled) return;
|
|
814
|
+
this.open = !0;
|
|
815
|
+
const o = this.filtered.findIndex((t) => t.value === this.value);
|
|
816
|
+
this.activeIndex = o;
|
|
817
|
+
}
|
|
818
|
+
close() {
|
|
819
|
+
this.open = !1, this.activeIndex = -1;
|
|
820
|
+
}
|
|
821
|
+
select(o) {
|
|
822
|
+
o.disabled || (this.value = o.value, this.query = o.label, this.close(), this.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
823
|
+
}
|
|
824
|
+
moveActive(o) {
|
|
825
|
+
const t = this.filtered;
|
|
826
|
+
if (t.length === 0 || t.filter((e) => !e.disabled).length === 0) return;
|
|
827
|
+
let r = this.activeIndex;
|
|
828
|
+
for (let e = 0; e < t.length && (r = (r + o + t.length) % t.length, !!t[r].disabled); e++)
|
|
829
|
+
;
|
|
830
|
+
this.activeIndex = r, this.scrollActiveIntoView();
|
|
831
|
+
}
|
|
832
|
+
scrollActiveIntoView() {
|
|
833
|
+
this.updateComplete.then(() => {
|
|
834
|
+
var o, t;
|
|
835
|
+
(t = (o = this.listboxEl) == null ? void 0 : o.querySelector("[data-active]")) == null || t.scrollIntoView({ block: "nearest" });
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
handleInput(o) {
|
|
839
|
+
this.query = o.target.value, this.openList(), this.activeIndex = -1, this.allowCustom && (this.value = this.query);
|
|
840
|
+
}
|
|
841
|
+
handleKeydown(o) {
|
|
842
|
+
switch (o.key) {
|
|
843
|
+
case "ArrowDown":
|
|
844
|
+
o.preventDefault(), this.open ? this.moveActive(1) : (this.openList(), this.activeIndex === -1 && this.moveActive(1));
|
|
845
|
+
break;
|
|
846
|
+
case "ArrowUp":
|
|
847
|
+
o.preventDefault(), this.open || (this.openList(), this.activeIndex = this.filtered.length), this.moveActive(-1);
|
|
848
|
+
break;
|
|
849
|
+
case "Home":
|
|
850
|
+
if (!this.open) return;
|
|
851
|
+
o.preventDefault(), this.activeIndex = -1, this.moveActive(1);
|
|
852
|
+
break;
|
|
853
|
+
case "End":
|
|
854
|
+
if (!this.open) return;
|
|
855
|
+
o.preventDefault(), this.activeIndex = this.filtered.length, this.moveActive(-1);
|
|
856
|
+
break;
|
|
857
|
+
case "Enter": {
|
|
858
|
+
if (!this.open) return;
|
|
859
|
+
const t = this.filtered[this.activeIndex];
|
|
860
|
+
t && (o.preventDefault(), this.select(t));
|
|
861
|
+
break;
|
|
862
|
+
}
|
|
863
|
+
case "Escape":
|
|
864
|
+
o.preventDefault(), this.open ? this.close() : (this.value || this.query) && (this.query = "", this.value = "", this.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
865
|
+
break;
|
|
866
|
+
case "Tab":
|
|
867
|
+
this.close();
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
handleBlur() {
|
|
872
|
+
if (this.close(), !this.allowCustom) {
|
|
873
|
+
if (this.query === "") {
|
|
874
|
+
this.value && (this.value = "", this.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
this.query = this.selectedLabel;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
optionId(o) {
|
|
881
|
+
return `option-${o}`;
|
|
882
|
+
}
|
|
883
|
+
render() {
|
|
884
|
+
const o = this.filtered, t = this.open && this.activeIndex >= 0 ? this.optionId(this.activeIndex) : void 0;
|
|
885
|
+
return l`
|
|
886
|
+
<div class="field">
|
|
887
|
+
${this.renderLabel("combobox")}
|
|
888
|
+
<div class="combo">
|
|
889
|
+
<input
|
|
890
|
+
id="combobox"
|
|
891
|
+
class="control"
|
|
892
|
+
type="text"
|
|
893
|
+
role="combobox"
|
|
894
|
+
.value=${Fe(this.query)}
|
|
895
|
+
placeholder=${u(this.placeholder)}
|
|
896
|
+
autocomplete="off"
|
|
897
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
898
|
+
aria-controls="listbox"
|
|
899
|
+
aria-autocomplete="list"
|
|
900
|
+
aria-activedescendant=${u(t)}
|
|
901
|
+
aria-label=${this.label ? v : "combobox"}
|
|
902
|
+
?required=${this.required}
|
|
903
|
+
?disabled=${this.disabled}
|
|
904
|
+
@input=${this.handleInput}
|
|
905
|
+
@keydown=${this.handleKeydown}
|
|
906
|
+
@blur=${this.handleBlur}
|
|
907
|
+
@mousedown=${this.openList}
|
|
908
|
+
/>
|
|
909
|
+
<ul
|
|
910
|
+
class="listbox"
|
|
911
|
+
id="listbox"
|
|
912
|
+
role="listbox"
|
|
913
|
+
aria-label=${this.label || "options"}
|
|
914
|
+
?hidden=${!this.open}
|
|
915
|
+
>
|
|
916
|
+
${o.length === 0 ? l`<li class="empty" role="presentation">${this.emptyText}</li>` : o.map(
|
|
917
|
+
(a, r) => l`
|
|
918
|
+
<li
|
|
919
|
+
id=${this.optionId(r)}
|
|
920
|
+
class=${Vt({ option: !0 })}
|
|
921
|
+
role="option"
|
|
922
|
+
aria-selected=${a.value === this.value ? "true" : "false"}
|
|
923
|
+
aria-disabled=${a.disabled ? "true" : "false"}
|
|
924
|
+
?data-active=${r === this.activeIndex}
|
|
925
|
+
@mousedown=${(e) => {
|
|
926
|
+
e.preventDefault(), this.select(a);
|
|
927
|
+
}}
|
|
928
|
+
>
|
|
929
|
+
${a.label}
|
|
930
|
+
</li>
|
|
931
|
+
`
|
|
932
|
+
)}
|
|
933
|
+
</ul>
|
|
934
|
+
</div>
|
|
935
|
+
${this.renderNote()}
|
|
936
|
+
<span class="sr-only" role="status" aria-live="polite">
|
|
937
|
+
${this.open ? `${o.length} ${o.length === 1 ? "option" : "options"} available` : ""}
|
|
938
|
+
</span>
|
|
939
|
+
</div>
|
|
940
|
+
<div hidden><slot @slotchange=${this.readOptions}></slot></div>
|
|
941
|
+
`;
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
g.styles = [
|
|
945
|
+
I,
|
|
946
|
+
d`
|
|
947
|
+
/*
|
|
948
|
+
* The popup anchors to this shell, not to .field: an absolutely
|
|
949
|
+
* positioned child of a flex container takes its static position from
|
|
950
|
+
* the container's content-box origin, which would put it over the label.
|
|
951
|
+
*/
|
|
952
|
+
.combo {
|
|
953
|
+
position: relative;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.control {
|
|
957
|
+
padding-right: var(--vox-space-8);
|
|
958
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
959
|
+
background-repeat: no-repeat;
|
|
960
|
+
background-position: right var(--vox-space-3) center;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.listbox {
|
|
964
|
+
position: absolute;
|
|
965
|
+
z-index: 20;
|
|
966
|
+
top: calc(100% + var(--vox-space-1));
|
|
967
|
+
left: 0;
|
|
968
|
+
right: 0;
|
|
969
|
+
margin: 0;
|
|
970
|
+
padding: var(--vox-space-1);
|
|
971
|
+
max-height: 15rem;
|
|
972
|
+
overflow-y: auto;
|
|
973
|
+
list-style: none;
|
|
974
|
+
background-color: var(--vox-color-bg-elv);
|
|
975
|
+
border: 1px solid var(--vox-color-border);
|
|
976
|
+
border-radius: var(--vox-radius-md);
|
|
977
|
+
box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
.option {
|
|
981
|
+
padding: var(--vox-space-2) var(--vox-space-3);
|
|
982
|
+
border-radius: var(--vox-radius-sm);
|
|
983
|
+
font-size: 14px;
|
|
984
|
+
line-height: 1.5;
|
|
985
|
+
color: var(--vox-color-text-1);
|
|
986
|
+
cursor: pointer;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
/*
|
|
990
|
+
* Focus stays on the input, so the active option is styled rather than
|
|
991
|
+
* focused. Colour alone can't carry it (WCAG 1.4.1) — the selected
|
|
992
|
+
* option also gets a check mark.
|
|
993
|
+
*/
|
|
994
|
+
.option[data-active] {
|
|
995
|
+
background-color: var(--vox-color-brand-soft);
|
|
996
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
997
|
+
outline-offset: -2px;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.option[aria-selected='true'] {
|
|
1001
|
+
font-weight: 600;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.option[aria-selected='true']::after {
|
|
1005
|
+
content: ' ✓';
|
|
1006
|
+
color: var(--vox-color-brand-1);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.option[aria-disabled='true'] {
|
|
1010
|
+
color: var(--vox-color-text-3);
|
|
1011
|
+
cursor: not-allowed;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.empty {
|
|
1015
|
+
padding: var(--vox-space-2) var(--vox-space-3);
|
|
1016
|
+
font-size: 14px;
|
|
1017
|
+
color: var(--vox-color-text-2);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
/* Announced, never shown. */
|
|
1021
|
+
.sr-only {
|
|
1022
|
+
position: absolute;
|
|
1023
|
+
width: 1px;
|
|
1024
|
+
height: 1px;
|
|
1025
|
+
padding: 0;
|
|
1026
|
+
margin: -1px;
|
|
1027
|
+
overflow: hidden;
|
|
1028
|
+
clip-path: inset(50%);
|
|
1029
|
+
white-space: nowrap;
|
|
1030
|
+
}
|
|
1031
|
+
`
|
|
1032
|
+
];
|
|
1033
|
+
m([
|
|
1034
|
+
n()
|
|
1035
|
+
], g.prototype, "value", 2);
|
|
1036
|
+
m([
|
|
1037
|
+
n()
|
|
1038
|
+
], g.prototype, "placeholder", 2);
|
|
1039
|
+
m([
|
|
1040
|
+
n({ type: Boolean, attribute: "allow-custom" })
|
|
1041
|
+
], g.prototype, "allowCustom", 2);
|
|
1042
|
+
m([
|
|
1043
|
+
n({ attribute: "empty-text" })
|
|
1044
|
+
], g.prototype, "emptyText", 2);
|
|
1045
|
+
m([
|
|
1046
|
+
$()
|
|
1047
|
+
], g.prototype, "query", 2);
|
|
1048
|
+
m([
|
|
1049
|
+
$()
|
|
1050
|
+
], g.prototype, "open", 2);
|
|
1051
|
+
m([
|
|
1052
|
+
$()
|
|
1053
|
+
], g.prototype, "activeIndex", 2);
|
|
1054
|
+
m([
|
|
1055
|
+
$()
|
|
1056
|
+
], g.prototype, "options", 2);
|
|
1057
|
+
m([
|
|
1058
|
+
J("input")
|
|
1059
|
+
], g.prototype, "inputEl", 2);
|
|
1060
|
+
m([
|
|
1061
|
+
J(".listbox")
|
|
1062
|
+
], g.prototype, "listboxEl", 2);
|
|
1063
|
+
g = m([
|
|
1064
|
+
p("vox-combobox")
|
|
1065
|
+
], g);
|
|
1066
|
+
var Qt = Object.defineProperty, eo = Object.getOwnPropertyDescriptor, Q = (o, t, a, r) => {
|
|
1067
|
+
for (var e = r > 1 ? void 0 : r ? eo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1068
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
1069
|
+
return r && e && Qt(t, a, e), e;
|
|
1070
|
+
};
|
|
1071
|
+
let M = class extends x {
|
|
773
1072
|
constructor() {
|
|
774
1073
|
super(...arguments), this.multiple = !1, this.buttonLabel = "Choose a file", this.fileNames = [];
|
|
775
1074
|
}
|
|
@@ -777,12 +1076,12 @@ let g = class extends x {
|
|
|
777
1076
|
this.fileNames = [], this.inputEl && (this.inputEl.value = ""), this.internals.setFormValue(null);
|
|
778
1077
|
}
|
|
779
1078
|
handleChange() {
|
|
780
|
-
const
|
|
781
|
-
this.fileNames =
|
|
782
|
-
const
|
|
783
|
-
for (const a of
|
|
784
|
-
this.internals.setFormValue(
|
|
785
|
-
this.required &&
|
|
1079
|
+
const o = [...this.inputEl.files ?? []];
|
|
1080
|
+
this.fileNames = o.map((a) => a.name);
|
|
1081
|
+
const t = new FormData();
|
|
1082
|
+
for (const a of o) t.append(this.name, a);
|
|
1083
|
+
this.internals.setFormValue(o.length > 0 ? t : null), this.internals.setValidity(
|
|
1084
|
+
this.required && o.length === 0 ? { valueMissing: !0 } : {},
|
|
786
1085
|
"Please select a file.",
|
|
787
1086
|
this.inputEl
|
|
788
1087
|
), this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -795,7 +1094,7 @@ let g = class extends x {
|
|
|
795
1094
|
<input
|
|
796
1095
|
id="file"
|
|
797
1096
|
type="file"
|
|
798
|
-
accept=${
|
|
1097
|
+
accept=${u(this.accept)}
|
|
799
1098
|
?multiple=${this.multiple}
|
|
800
1099
|
?disabled=${this.disabled}
|
|
801
1100
|
@change=${this.handleChange}
|
|
@@ -812,8 +1111,8 @@ let g = class extends x {
|
|
|
812
1111
|
`;
|
|
813
1112
|
}
|
|
814
1113
|
};
|
|
815
|
-
|
|
816
|
-
|
|
1114
|
+
M.styles = [
|
|
1115
|
+
I,
|
|
817
1116
|
d`
|
|
818
1117
|
input {
|
|
819
1118
|
position: absolute;
|
|
@@ -862,47 +1161,64 @@ g.styles = [
|
|
|
862
1161
|
}
|
|
863
1162
|
`
|
|
864
1163
|
];
|
|
865
|
-
|
|
1164
|
+
Q([
|
|
866
1165
|
n()
|
|
867
|
-
],
|
|
868
|
-
|
|
1166
|
+
], M.prototype, "accept", 2);
|
|
1167
|
+
Q([
|
|
869
1168
|
n({ type: Boolean })
|
|
870
|
-
],
|
|
871
|
-
|
|
1169
|
+
], M.prototype, "multiple", 2);
|
|
1170
|
+
Q([
|
|
872
1171
|
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 &&
|
|
1172
|
+
], M.prototype, "buttonLabel", 2);
|
|
1173
|
+
Q([
|
|
1174
|
+
$()
|
|
1175
|
+
], M.prototype, "fileNames", 2);
|
|
1176
|
+
Q([
|
|
1177
|
+
J("input")
|
|
1178
|
+
], M.prototype, "inputEl", 2);
|
|
1179
|
+
M = Q([
|
|
1180
|
+
p("vox-file-input")
|
|
1181
|
+
], M);
|
|
1182
|
+
var to = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, b = (o, t, a, r) => {
|
|
1183
|
+
for (var e = r > 1 ? void 0 : r ? oo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1184
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
1185
|
+
return r && e && to(t, a, e), e;
|
|
887
1186
|
};
|
|
888
|
-
|
|
1187
|
+
const ro = {
|
|
1188
|
+
text: "text input",
|
|
1189
|
+
email: "email address",
|
|
1190
|
+
number: "number",
|
|
1191
|
+
password: "password",
|
|
1192
|
+
search: "search",
|
|
1193
|
+
tel: "telephone number",
|
|
1194
|
+
url: "web address",
|
|
1195
|
+
date: "date",
|
|
1196
|
+
time: "time",
|
|
1197
|
+
"datetime-local": "date and time",
|
|
1198
|
+
month: "month",
|
|
1199
|
+
week: "week"
|
|
1200
|
+
};
|
|
1201
|
+
let f = class extends x {
|
|
889
1202
|
constructor() {
|
|
890
1203
|
super(...arguments), this.type = "text", this.value = "", this.readonly = !1;
|
|
891
1204
|
}
|
|
1205
|
+
get accessibleName() {
|
|
1206
|
+
return ro[this.type] ?? `${this.type} input`;
|
|
1207
|
+
}
|
|
892
1208
|
formResetCallback() {
|
|
893
1209
|
this.value = "";
|
|
894
1210
|
}
|
|
895
1211
|
updated() {
|
|
896
1212
|
this.internals.setFormValue(this.value);
|
|
897
|
-
const
|
|
898
|
-
|
|
1213
|
+
const o = this.renderRoot.querySelector("input");
|
|
1214
|
+
o && this.syncValidity(o);
|
|
899
1215
|
}
|
|
900
|
-
focus(
|
|
901
|
-
var
|
|
902
|
-
(
|
|
1216
|
+
focus(o) {
|
|
1217
|
+
var t;
|
|
1218
|
+
(t = this.renderRoot.querySelector("input")) == null || t.focus(o);
|
|
903
1219
|
}
|
|
904
|
-
handleInput(
|
|
905
|
-
this.value =
|
|
1220
|
+
handleInput(o) {
|
|
1221
|
+
this.value = o.target.value;
|
|
906
1222
|
}
|
|
907
1223
|
handleChange() {
|
|
908
1224
|
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -915,13 +1231,20 @@ let b = class extends x {
|
|
|
915
1231
|
id="input"
|
|
916
1232
|
class="control"
|
|
917
1233
|
type=${this.type}
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1234
|
+
min=${u(this.min)}
|
|
1235
|
+
max=${u(this.max)}
|
|
1236
|
+
step=${u(this.step)}
|
|
1237
|
+
.value=${Fe(this.value)}
|
|
1238
|
+
placeholder=${u(this.placeholder)}
|
|
1239
|
+
autocomplete=${u(this.autocomplete)}
|
|
1240
|
+
pattern=${u(this.pattern)}
|
|
1241
|
+
minlength=${u(this.minlength)}
|
|
1242
|
+
maxlength=${u(this.maxlength)}
|
|
1243
|
+
inputmode=${u(this.inputmode)}
|
|
921
1244
|
?required=${this.required}
|
|
922
1245
|
?readonly=${this.readonly}
|
|
923
1246
|
?disabled=${this.disabled}
|
|
924
|
-
aria-label=${this.label ? v :
|
|
1247
|
+
aria-label=${this.label ? v : this.accessibleName}
|
|
925
1248
|
@input=${this.handleInput}
|
|
926
1249
|
@change=${this.handleChange}
|
|
927
1250
|
/>
|
|
@@ -930,35 +1253,56 @@ let b = class extends x {
|
|
|
930
1253
|
`;
|
|
931
1254
|
}
|
|
932
1255
|
};
|
|
933
|
-
|
|
934
|
-
|
|
1256
|
+
f.styles = I;
|
|
1257
|
+
b([
|
|
935
1258
|
n()
|
|
936
|
-
],
|
|
937
|
-
|
|
1259
|
+
], f.prototype, "type", 2);
|
|
1260
|
+
b([
|
|
938
1261
|
n()
|
|
939
|
-
],
|
|
940
|
-
|
|
1262
|
+
], f.prototype, "value", 2);
|
|
1263
|
+
b([
|
|
941
1264
|
n()
|
|
942
|
-
],
|
|
943
|
-
|
|
1265
|
+
], f.prototype, "placeholder", 2);
|
|
1266
|
+
b([
|
|
944
1267
|
n()
|
|
945
|
-
],
|
|
946
|
-
|
|
1268
|
+
], f.prototype, "autocomplete", 2);
|
|
1269
|
+
b([
|
|
947
1270
|
n({ type: Boolean, reflect: !0 })
|
|
948
|
-
],
|
|
949
|
-
b
|
|
950
|
-
|
|
951
|
-
],
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1271
|
+
], f.prototype, "readonly", 2);
|
|
1272
|
+
b([
|
|
1273
|
+
n()
|
|
1274
|
+
], f.prototype, "min", 2);
|
|
1275
|
+
b([
|
|
1276
|
+
n()
|
|
1277
|
+
], f.prototype, "max", 2);
|
|
1278
|
+
b([
|
|
1279
|
+
n()
|
|
1280
|
+
], f.prototype, "step", 2);
|
|
1281
|
+
b([
|
|
1282
|
+
n()
|
|
1283
|
+
], f.prototype, "pattern", 2);
|
|
1284
|
+
b([
|
|
1285
|
+
n()
|
|
1286
|
+
], f.prototype, "minlength", 2);
|
|
1287
|
+
b([
|
|
1288
|
+
n()
|
|
1289
|
+
], f.prototype, "maxlength", 2);
|
|
1290
|
+
b([
|
|
1291
|
+
n()
|
|
1292
|
+
], f.prototype, "inputmode", 2);
|
|
1293
|
+
f = b([
|
|
1294
|
+
p("vox-input")
|
|
1295
|
+
], f);
|
|
1296
|
+
var ao = Object.getOwnPropertyDescriptor, so = (o, t, a, r) => {
|
|
1297
|
+
for (var e = r > 1 ? void 0 : r ? ao(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1298
|
+
(i = o[s]) && (e = i(e) || e);
|
|
955
1299
|
return e;
|
|
956
1300
|
};
|
|
957
|
-
let
|
|
958
|
-
handleSlotChange(
|
|
959
|
-
const
|
|
960
|
-
|
|
961
|
-
const e = r === 0 ? "start" : r ===
|
|
1301
|
+
let ot = class extends h {
|
|
1302
|
+
handleSlotChange(o) {
|
|
1303
|
+
const t = o.target.assignedElements();
|
|
1304
|
+
t.forEach((a, r) => {
|
|
1305
|
+
const e = r === 0 ? "start" : r === t.length - 1 ? "end" : "middle";
|
|
962
1306
|
a.setAttribute("data-vox-group", e);
|
|
963
1307
|
});
|
|
964
1308
|
}
|
|
@@ -970,7 +1314,7 @@ let Fe = class extends p {
|
|
|
970
1314
|
`;
|
|
971
1315
|
}
|
|
972
1316
|
};
|
|
973
|
-
|
|
1317
|
+
ot.styles = d`
|
|
974
1318
|
:host {
|
|
975
1319
|
display: block;
|
|
976
1320
|
font-family: var(--vox-font-family-base);
|
|
@@ -1012,15 +1356,15 @@ Fe.styles = d`
|
|
|
1012
1356
|
border-left: none;
|
|
1013
1357
|
}
|
|
1014
1358
|
`;
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
],
|
|
1018
|
-
var
|
|
1019
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1020
|
-
(i =
|
|
1021
|
-
return r && e &&
|
|
1359
|
+
ot = so([
|
|
1360
|
+
p("vox-input-group")
|
|
1361
|
+
], ot);
|
|
1362
|
+
var io = Object.defineProperty, no = Object.getOwnPropertyDescriptor, Ge = (o, t, a, r) => {
|
|
1363
|
+
for (var e = r > 1 ? void 0 : r ? no(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1364
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
1365
|
+
return r && e && io(t, a, e), e;
|
|
1022
1366
|
};
|
|
1023
|
-
let
|
|
1367
|
+
let K = class extends h {
|
|
1024
1368
|
constructor() {
|
|
1025
1369
|
super(...arguments), this.value = "", this.checked = !1, this.disabled = !1;
|
|
1026
1370
|
}
|
|
@@ -1029,8 +1373,8 @@ let z = class extends p {
|
|
|
1029
1373
|
new CustomEvent("vox-radio-select", { bubbles: !0, composed: !0 })
|
|
1030
1374
|
);
|
|
1031
1375
|
}
|
|
1032
|
-
handleKeydown(
|
|
1033
|
-
(
|
|
1376
|
+
handleKeydown(o) {
|
|
1377
|
+
(o.key === " " || o.key === "Enter") && (o.preventDefault(), this.select());
|
|
1034
1378
|
}
|
|
1035
1379
|
render() {
|
|
1036
1380
|
return l`
|
|
@@ -1049,7 +1393,7 @@ let z = class extends p {
|
|
|
1049
1393
|
`;
|
|
1050
1394
|
}
|
|
1051
1395
|
};
|
|
1052
|
-
|
|
1396
|
+
K.styles = d`
|
|
1053
1397
|
:host {
|
|
1054
1398
|
display: block;
|
|
1055
1399
|
font-family: var(--vox-font-family-base);
|
|
@@ -1098,24 +1442,24 @@ z.styles = d`
|
|
|
1098
1442
|
outline-offset: 2px;
|
|
1099
1443
|
}
|
|
1100
1444
|
`;
|
|
1101
|
-
|
|
1445
|
+
Ge([
|
|
1102
1446
|
n()
|
|
1103
|
-
],
|
|
1104
|
-
|
|
1447
|
+
], K.prototype, "value", 2);
|
|
1448
|
+
Ge([
|
|
1105
1449
|
n({ type: Boolean, reflect: !0 })
|
|
1106
|
-
],
|
|
1107
|
-
|
|
1450
|
+
], K.prototype, "checked", 2);
|
|
1451
|
+
Ge([
|
|
1108
1452
|
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 &&
|
|
1453
|
+
], K.prototype, "disabled", 2);
|
|
1454
|
+
K = Ge([
|
|
1455
|
+
p("vox-radio")
|
|
1456
|
+
], K);
|
|
1457
|
+
var lo = Object.defineProperty, co = Object.getOwnPropertyDescriptor, jt = (o, t, a, r) => {
|
|
1458
|
+
for (var e = r > 1 ? void 0 : r ? co(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1459
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
1460
|
+
return r && e && lo(t, a, e), e;
|
|
1117
1461
|
};
|
|
1118
|
-
let
|
|
1462
|
+
let Ae = class extends x {
|
|
1119
1463
|
constructor() {
|
|
1120
1464
|
super(...arguments), this.value = "";
|
|
1121
1465
|
}
|
|
@@ -1133,32 +1477,32 @@ let $e = class extends x {
|
|
|
1133
1477
|
), this.syncRadios();
|
|
1134
1478
|
}
|
|
1135
1479
|
syncRadios() {
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1480
|
+
const o = this.radios, t = o.some((a) => a.value === this.value && this.value !== "");
|
|
1481
|
+
o.forEach((a, r) => {
|
|
1138
1482
|
var s, i;
|
|
1139
1483
|
a.checked = this.value !== "" && a.value === this.value;
|
|
1140
|
-
const e =
|
|
1484
|
+
const e = t ? a.checked : r === 0;
|
|
1141
1485
|
(i = (s = a.shadowRoot) == null ? void 0 : s.querySelector(".radio")) == null || i.setAttribute("tabindex", e ? "0" : "-1");
|
|
1142
1486
|
});
|
|
1143
1487
|
}
|
|
1144
|
-
handleSelect(
|
|
1145
|
-
const
|
|
1146
|
-
!(
|
|
1488
|
+
handleSelect(o) {
|
|
1489
|
+
const t = o.target;
|
|
1490
|
+
!(t instanceof HTMLElement) || t.tagName !== "VOX-RADIO" || (o.stopPropagation(), this.value !== t.value && (this.value = t.value, this.dispatchEvent(new Event("change", { bubbles: !0 }))));
|
|
1147
1491
|
}
|
|
1148
|
-
handleKeydown(
|
|
1149
|
-
var
|
|
1492
|
+
handleKeydown(o) {
|
|
1493
|
+
var z, ze;
|
|
1150
1494
|
const a = {
|
|
1151
1495
|
ArrowDown: 1,
|
|
1152
1496
|
ArrowRight: 1,
|
|
1153
1497
|
ArrowUp: -1,
|
|
1154
1498
|
ArrowLeft: -1
|
|
1155
|
-
}[
|
|
1499
|
+
}[o.key];
|
|
1156
1500
|
if (!a) return;
|
|
1157
|
-
|
|
1158
|
-
const r = this.radios.filter((
|
|
1501
|
+
o.preventDefault();
|
|
1502
|
+
const r = this.radios.filter((tt) => !tt.disabled);
|
|
1159
1503
|
if (r.length === 0) return;
|
|
1160
|
-
const e = r.findIndex((
|
|
1161
|
-
i.select(), (
|
|
1504
|
+
const e = r.findIndex((tt) => tt.checked), s = (Math.max(e, 0) + a + r.length) % r.length, i = r[s];
|
|
1505
|
+
i.select(), (ze = (z = i.shadowRoot) == null ? void 0 : z.querySelector(".radio")) == null || ze.focus();
|
|
1162
1506
|
}
|
|
1163
1507
|
render() {
|
|
1164
1508
|
return l`
|
|
@@ -1178,8 +1522,8 @@ let $e = class extends x {
|
|
|
1178
1522
|
`;
|
|
1179
1523
|
}
|
|
1180
1524
|
};
|
|
1181
|
-
|
|
1182
|
-
|
|
1525
|
+
Ae.styles = [
|
|
1526
|
+
I,
|
|
1183
1527
|
d`
|
|
1184
1528
|
.options {
|
|
1185
1529
|
display: flex;
|
|
@@ -1189,36 +1533,239 @@ $e.styles = [
|
|
|
1189
1533
|
}
|
|
1190
1534
|
`
|
|
1191
1535
|
];
|
|
1192
|
-
|
|
1536
|
+
jt([
|
|
1193
1537
|
n()
|
|
1194
|
-
],
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
],
|
|
1198
|
-
var
|
|
1199
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1200
|
-
(i =
|
|
1201
|
-
return r && e &&
|
|
1538
|
+
], Ae.prototype, "value", 2);
|
|
1539
|
+
Ae = jt([
|
|
1540
|
+
p("vox-radio-group")
|
|
1541
|
+
], Ae);
|
|
1542
|
+
var po = Object.defineProperty, ho = Object.getOwnPropertyDescriptor, P = (o, t, a, r) => {
|
|
1543
|
+
for (var e = r > 1 ? void 0 : r ? ho(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1544
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
1545
|
+
return r && e && po(t, a, e), e;
|
|
1202
1546
|
};
|
|
1203
|
-
let
|
|
1547
|
+
let w = class extends x {
|
|
1204
1548
|
constructor() {
|
|
1205
|
-
super(...arguments), this.value = "";
|
|
1549
|
+
super(...arguments), this.value = "", this.min = "0", this.max = "100", this.step = "1", this.showValue = !1, this.unit = "", this.defaultValue = "";
|
|
1550
|
+
}
|
|
1551
|
+
connectedCallback() {
|
|
1552
|
+
if (super.connectedCallback(), this.value === "") {
|
|
1553
|
+
const o = (Number(this.min) + Number(this.max)) / 2;
|
|
1554
|
+
this.value = String(Number.isFinite(o) ? o : this.min);
|
|
1555
|
+
}
|
|
1556
|
+
this.defaultValue = this.value;
|
|
1557
|
+
}
|
|
1558
|
+
formResetCallback() {
|
|
1559
|
+
this.value = this.defaultValue;
|
|
1560
|
+
}
|
|
1561
|
+
updated() {
|
|
1562
|
+
this.internals.setFormValue(this.value), this.inputEl && this.syncValidity(this.inputEl);
|
|
1563
|
+
}
|
|
1564
|
+
focus(o) {
|
|
1565
|
+
var t;
|
|
1566
|
+
(t = this.inputEl) == null || t.focus(o);
|
|
1567
|
+
}
|
|
1568
|
+
handleInput(o) {
|
|
1569
|
+
this.value = o.target.value;
|
|
1570
|
+
}
|
|
1571
|
+
handleChange() {
|
|
1572
|
+
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1573
|
+
}
|
|
1574
|
+
render() {
|
|
1575
|
+
const o = this.unit ? `${this.value}${this.unit}` : this.value;
|
|
1576
|
+
return l`
|
|
1577
|
+
<div class="field">
|
|
1578
|
+
${this.renderLabel("range")}
|
|
1579
|
+
<div class="row">
|
|
1580
|
+
<input
|
|
1581
|
+
id="range"
|
|
1582
|
+
class="control"
|
|
1583
|
+
type="range"
|
|
1584
|
+
min=${this.min}
|
|
1585
|
+
max=${this.max}
|
|
1586
|
+
step=${this.step}
|
|
1587
|
+
.value=${Fe(this.value)}
|
|
1588
|
+
?disabled=${this.disabled}
|
|
1589
|
+
aria-label=${this.label ? v : "slider"}
|
|
1590
|
+
aria-valuetext=${u(this.unit ? o : void 0)}
|
|
1591
|
+
@input=${this.handleInput}
|
|
1592
|
+
@change=${this.handleChange}
|
|
1593
|
+
/>
|
|
1594
|
+
${this.showValue ? l`<span class="readout" aria-hidden="true">${o}</span>` : v}
|
|
1595
|
+
</div>
|
|
1596
|
+
${this.renderNote()}
|
|
1597
|
+
</div>
|
|
1598
|
+
`;
|
|
1599
|
+
}
|
|
1600
|
+
};
|
|
1601
|
+
w.styles = [
|
|
1602
|
+
I,
|
|
1603
|
+
d`
|
|
1604
|
+
.row {
|
|
1605
|
+
display: flex;
|
|
1606
|
+
align-items: center;
|
|
1607
|
+
gap: var(--vox-space-3);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
.readout {
|
|
1611
|
+
flex: none;
|
|
1612
|
+
min-width: 3.5ch;
|
|
1613
|
+
font-size: 14px;
|
|
1614
|
+
font-variant-numeric: tabular-nums;
|
|
1615
|
+
color: var(--vox-color-text-2);
|
|
1616
|
+
text-align: right;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
input.control {
|
|
1620
|
+
appearance: none;
|
|
1621
|
+
-webkit-appearance: none;
|
|
1622
|
+
padding: 0;
|
|
1623
|
+
border: none;
|
|
1624
|
+
background: transparent;
|
|
1625
|
+
cursor: pointer;
|
|
1626
|
+
/* Room for the thumb's focus ring at both ends of the track. */
|
|
1627
|
+
height: 24px;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
input.control:focus {
|
|
1631
|
+
outline: none;
|
|
1632
|
+
border: none;
|
|
1633
|
+
box-shadow: none;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
input.control:disabled {
|
|
1637
|
+
cursor: not-allowed;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
/*
|
|
1641
|
+
* Track and thumb need vendor-prefixed selectors, and a browser drops
|
|
1642
|
+
* the whole rule if it doesn't recognise one — so no grouping here.
|
|
1643
|
+
*/
|
|
1644
|
+
input.control::-webkit-slider-runnable-track {
|
|
1645
|
+
height: 6px;
|
|
1646
|
+
border-radius: var(--vox-radius-full);
|
|
1647
|
+
/* 3:1 against the page background, per WCAG 1.4.11. */
|
|
1648
|
+
background-color: var(--vox-color-border);
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
input.control::-moz-range-track {
|
|
1652
|
+
height: 6px;
|
|
1653
|
+
border-radius: var(--vox-radius-full);
|
|
1654
|
+
background-color: var(--vox-color-border);
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
input.control::-webkit-slider-thumb {
|
|
1658
|
+
appearance: none;
|
|
1659
|
+
-webkit-appearance: none;
|
|
1660
|
+
width: 20px;
|
|
1661
|
+
height: 20px;
|
|
1662
|
+
margin-top: -7px;
|
|
1663
|
+
border: 2px solid var(--vox-color-bg);
|
|
1664
|
+
border-radius: var(--vox-radius-full);
|
|
1665
|
+
background-color: var(--vox-color-brand-1);
|
|
1666
|
+
transition: box-shadow var(--vox-transition-fast);
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
input.control::-moz-range-thumb {
|
|
1670
|
+
width: 20px;
|
|
1671
|
+
height: 20px;
|
|
1672
|
+
border: 2px solid var(--vox-color-bg);
|
|
1673
|
+
border-radius: var(--vox-radius-full);
|
|
1674
|
+
background-color: var(--vox-color-brand-1);
|
|
1675
|
+
transition: box-shadow var(--vox-transition-fast);
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
input.control:focus-visible::-webkit-slider-thumb {
|
|
1679
|
+
box-shadow: 0 0 0 3px var(--vox-color-brand-soft);
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
input.control:focus-visible::-moz-range-thumb {
|
|
1683
|
+
box-shadow: 0 0 0 3px var(--vox-color-brand-soft);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1687
|
+
input.control::-webkit-slider-thumb,
|
|
1688
|
+
input.control::-moz-range-thumb {
|
|
1689
|
+
transition: none;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
`
|
|
1693
|
+
];
|
|
1694
|
+
P([
|
|
1695
|
+
n()
|
|
1696
|
+
], w.prototype, "value", 2);
|
|
1697
|
+
P([
|
|
1698
|
+
n()
|
|
1699
|
+
], w.prototype, "min", 2);
|
|
1700
|
+
P([
|
|
1701
|
+
n()
|
|
1702
|
+
], w.prototype, "max", 2);
|
|
1703
|
+
P([
|
|
1704
|
+
n()
|
|
1705
|
+
], w.prototype, "step", 2);
|
|
1706
|
+
P([
|
|
1707
|
+
n({ type: Boolean, attribute: "show-value" })
|
|
1708
|
+
], w.prototype, "showValue", 2);
|
|
1709
|
+
P([
|
|
1710
|
+
n()
|
|
1711
|
+
], w.prototype, "unit", 2);
|
|
1712
|
+
P([
|
|
1713
|
+
J("input")
|
|
1714
|
+
], w.prototype, "inputEl", 2);
|
|
1715
|
+
w = P([
|
|
1716
|
+
p("vox-range")
|
|
1717
|
+
], w);
|
|
1718
|
+
var vo = Object.defineProperty, uo = Object.getOwnPropertyDescriptor, ee = (o, t, a, r) => {
|
|
1719
|
+
for (var e = r > 1 ? void 0 : r ? uo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1720
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
1721
|
+
return r && e && vo(t, a, e), e;
|
|
1722
|
+
};
|
|
1723
|
+
let L = class extends x {
|
|
1724
|
+
constructor() {
|
|
1725
|
+
super(...arguments), this.value = "", this.multiple = !1, this.values = [];
|
|
1206
1726
|
}
|
|
1207
1727
|
formResetCallback() {
|
|
1208
|
-
this.value = "", this.syncOptions();
|
|
1728
|
+
this.value = "", this.values = [], this.syncOptions();
|
|
1209
1729
|
}
|
|
1210
1730
|
updated() {
|
|
1211
|
-
this.internals.setFormValue(this.value), this.selectEl && this.syncValidity(this.selectEl);
|
|
1731
|
+
this.internals.setFormValue(this.multiple ? this.formData() : this.value), this.selectEl && this.syncValidity(this.selectEl);
|
|
1732
|
+
}
|
|
1733
|
+
focus(o) {
|
|
1734
|
+
var t;
|
|
1735
|
+
(t = this.selectEl) == null || t.focus(o);
|
|
1736
|
+
}
|
|
1737
|
+
/**
|
|
1738
|
+
* A multi-select submits one entry per selection, which only FormData can
|
|
1739
|
+
* express. Without a `name` there is nothing to key them on, so submit
|
|
1740
|
+
* nothing — matching a native select with no name.
|
|
1741
|
+
*/
|
|
1742
|
+
formData() {
|
|
1743
|
+
if (!this.name) return null;
|
|
1744
|
+
const o = new FormData();
|
|
1745
|
+
for (const t of this.values) o.append(this.name, t);
|
|
1746
|
+
return o;
|
|
1212
1747
|
}
|
|
1213
1748
|
syncOptions() {
|
|
1214
1749
|
if (!this.selectEl) return;
|
|
1215
|
-
const
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1750
|
+
const o = this.renderRoot.querySelector("slot");
|
|
1751
|
+
if (o) {
|
|
1752
|
+
if (this.selectEl.replaceChildren(
|
|
1753
|
+
...o.assignedElements().filter((t) => t instanceof HTMLOptionElement || t instanceof HTMLOptGroupElement).map((t) => t.cloneNode(!0))
|
|
1754
|
+
), this.multiple) {
|
|
1755
|
+
const t = new Set(this.values);
|
|
1756
|
+
for (const a of this.selectEl.options)
|
|
1757
|
+
a.selected = t.has(a.value);
|
|
1758
|
+
this.values = this.selected();
|
|
1759
|
+
return;
|
|
1760
|
+
}
|
|
1761
|
+
this.value && (this.selectEl.value = this.value), this.value = this.selectEl.value;
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
selected() {
|
|
1765
|
+
return [...this.selectEl.selectedOptions].map((o) => o.value);
|
|
1219
1766
|
}
|
|
1220
1767
|
handleChange() {
|
|
1221
|
-
this.value = this.selectEl.value, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1768
|
+
this.multiple ? (this.values = this.selected(), this.value = this.values[0] ?? "") : this.value = this.selectEl.value, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1222
1769
|
}
|
|
1223
1770
|
render() {
|
|
1224
1771
|
return l`
|
|
@@ -1227,8 +1774,11 @@ let F = class extends x {
|
|
|
1227
1774
|
<select
|
|
1228
1775
|
id="select"
|
|
1229
1776
|
class="control"
|
|
1777
|
+
?multiple=${this.multiple}
|
|
1778
|
+
size=${u(this.multiple ? this.size ?? 4 : void 0)}
|
|
1230
1779
|
?required=${this.required}
|
|
1231
1780
|
?disabled=${this.disabled}
|
|
1781
|
+
aria-label=${this.label ? v : "options"}
|
|
1232
1782
|
@change=${this.handleChange}
|
|
1233
1783
|
></select>
|
|
1234
1784
|
${this.renderNote()}
|
|
@@ -1237,8 +1787,8 @@ let F = class extends x {
|
|
|
1237
1787
|
`;
|
|
1238
1788
|
}
|
|
1239
1789
|
};
|
|
1240
|
-
|
|
1241
|
-
|
|
1790
|
+
L.styles = [
|
|
1791
|
+
I,
|
|
1242
1792
|
d`
|
|
1243
1793
|
select.control {
|
|
1244
1794
|
appearance: none;
|
|
@@ -1248,23 +1798,44 @@ F.styles = [
|
|
|
1248
1798
|
background-position: right var(--vox-space-3) center;
|
|
1249
1799
|
cursor: pointer;
|
|
1250
1800
|
}
|
|
1801
|
+
|
|
1802
|
+
/* A list box has no collapsed affordance, so drop the chevron. */
|
|
1803
|
+
:host([multiple]) select.control {
|
|
1804
|
+
appearance: none;
|
|
1805
|
+
padding-right: var(--vox-space-3);
|
|
1806
|
+
background-image: none;
|
|
1807
|
+
cursor: default;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
:host([multiple]) select.control option {
|
|
1811
|
+
padding: var(--vox-space-1) var(--vox-space-2);
|
|
1812
|
+
}
|
|
1251
1813
|
`
|
|
1252
1814
|
];
|
|
1253
|
-
|
|
1815
|
+
ee([
|
|
1254
1816
|
n()
|
|
1255
|
-
],
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
],
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
],
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1817
|
+
], L.prototype, "value", 2);
|
|
1818
|
+
ee([
|
|
1819
|
+
n({ type: Boolean, reflect: !0 })
|
|
1820
|
+
], L.prototype, "multiple", 2);
|
|
1821
|
+
ee([
|
|
1822
|
+
n({ type: Number })
|
|
1823
|
+
], L.prototype, "size", 2);
|
|
1824
|
+
ee([
|
|
1825
|
+
n({ type: Array })
|
|
1826
|
+
], L.prototype, "values", 2);
|
|
1827
|
+
ee([
|
|
1828
|
+
J("select")
|
|
1829
|
+
], L.prototype, "selectEl", 2);
|
|
1830
|
+
L = ee([
|
|
1831
|
+
p("vox-select")
|
|
1832
|
+
], L);
|
|
1833
|
+
var xo = Object.defineProperty, fo = Object.getOwnPropertyDescriptor, ht = (o, t, a, r) => {
|
|
1834
|
+
for (var e = r > 1 ? void 0 : r ? fo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1835
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
1836
|
+
return r && e && xo(t, a, e), e;
|
|
1266
1837
|
};
|
|
1267
|
-
let
|
|
1838
|
+
let re = class extends x {
|
|
1268
1839
|
constructor() {
|
|
1269
1840
|
super(...arguments), this.checked = !1, this.value = "on";
|
|
1270
1841
|
}
|
|
@@ -1274,8 +1845,8 @@ let Z = class extends x {
|
|
|
1274
1845
|
updated() {
|
|
1275
1846
|
this.internals.setFormValue(this.checked ? this.value : null);
|
|
1276
1847
|
}
|
|
1277
|
-
handleChange(
|
|
1278
|
-
this.checked =
|
|
1848
|
+
handleChange(o) {
|
|
1849
|
+
this.checked = o.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1279
1850
|
}
|
|
1280
1851
|
render() {
|
|
1281
1852
|
return l`
|
|
@@ -1293,8 +1864,8 @@ let Z = class extends x {
|
|
|
1293
1864
|
`;
|
|
1294
1865
|
}
|
|
1295
1866
|
};
|
|
1296
|
-
|
|
1297
|
-
|
|
1867
|
+
re.styles = [
|
|
1868
|
+
zt,
|
|
1298
1869
|
d`
|
|
1299
1870
|
.track {
|
|
1300
1871
|
flex: none;
|
|
@@ -1333,21 +1904,21 @@ Z.styles = [
|
|
|
1333
1904
|
}
|
|
1334
1905
|
`
|
|
1335
1906
|
];
|
|
1336
|
-
|
|
1907
|
+
ht([
|
|
1337
1908
|
n({ type: Boolean, reflect: !0 })
|
|
1338
|
-
],
|
|
1339
|
-
|
|
1909
|
+
], re.prototype, "checked", 2);
|
|
1910
|
+
ht([
|
|
1340
1911
|
n()
|
|
1341
|
-
],
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
],
|
|
1345
|
-
var
|
|
1346
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1347
|
-
(i =
|
|
1348
|
-
return r && e &&
|
|
1912
|
+
], re.prototype, "value", 2);
|
|
1913
|
+
re = ht([
|
|
1914
|
+
p("vox-switch")
|
|
1915
|
+
], re);
|
|
1916
|
+
var go = Object.defineProperty, bo = Object.getOwnPropertyDescriptor, $e = (o, t, a, r) => {
|
|
1917
|
+
for (var e = r > 1 ? void 0 : r ? bo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1918
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
1919
|
+
return r && e && go(t, a, e), e;
|
|
1349
1920
|
};
|
|
1350
|
-
let
|
|
1921
|
+
let j = class extends x {
|
|
1351
1922
|
constructor() {
|
|
1352
1923
|
super(...arguments), this.value = "", this.rows = 4, this.readonly = !1;
|
|
1353
1924
|
}
|
|
@@ -1356,15 +1927,15 @@ let y = class extends x {
|
|
|
1356
1927
|
}
|
|
1357
1928
|
updated() {
|
|
1358
1929
|
this.internals.setFormValue(this.value);
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1930
|
+
const o = this.renderRoot.querySelector("textarea");
|
|
1931
|
+
o && this.syncValidity(o);
|
|
1361
1932
|
}
|
|
1362
|
-
focus(
|
|
1363
|
-
var
|
|
1364
|
-
(
|
|
1933
|
+
focus(o) {
|
|
1934
|
+
var t;
|
|
1935
|
+
(t = this.renderRoot.querySelector("textarea")) == null || t.focus(o);
|
|
1365
1936
|
}
|
|
1366
|
-
handleInput(
|
|
1367
|
-
this.value =
|
|
1937
|
+
handleInput(o) {
|
|
1938
|
+
this.value = o.target.value;
|
|
1368
1939
|
}
|
|
1369
1940
|
handleChange() {
|
|
1370
1941
|
this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
@@ -1377,8 +1948,8 @@ let y = class extends x {
|
|
|
1377
1948
|
id="textarea"
|
|
1378
1949
|
class="control"
|
|
1379
1950
|
rows=${this.rows}
|
|
1380
|
-
.value=${
|
|
1381
|
-
placeholder=${
|
|
1951
|
+
.value=${Fe(this.value)}
|
|
1952
|
+
placeholder=${u(this.placeholder)}
|
|
1382
1953
|
?required=${this.required}
|
|
1383
1954
|
?readonly=${this.readonly}
|
|
1384
1955
|
?disabled=${this.disabled}
|
|
@@ -1390,8 +1961,8 @@ let y = class extends x {
|
|
|
1390
1961
|
`;
|
|
1391
1962
|
}
|
|
1392
1963
|
};
|
|
1393
|
-
|
|
1394
|
-
|
|
1964
|
+
j.styles = [
|
|
1965
|
+
I,
|
|
1395
1966
|
d`
|
|
1396
1967
|
textarea.control {
|
|
1397
1968
|
resize: vertical;
|
|
@@ -1399,27 +1970,27 @@ y.styles = [
|
|
|
1399
1970
|
}
|
|
1400
1971
|
`
|
|
1401
1972
|
];
|
|
1402
|
-
|
|
1973
|
+
$e([
|
|
1403
1974
|
n()
|
|
1404
|
-
],
|
|
1405
|
-
|
|
1975
|
+
], j.prototype, "value", 2);
|
|
1976
|
+
$e([
|
|
1406
1977
|
n()
|
|
1407
|
-
],
|
|
1408
|
-
|
|
1978
|
+
], j.prototype, "placeholder", 2);
|
|
1979
|
+
$e([
|
|
1409
1980
|
n({ type: Number })
|
|
1410
|
-
],
|
|
1411
|
-
|
|
1981
|
+
], j.prototype, "rows", 2);
|
|
1982
|
+
$e([
|
|
1412
1983
|
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 &&
|
|
1984
|
+
], j.prototype, "readonly", 2);
|
|
1985
|
+
j = $e([
|
|
1986
|
+
p("vox-textarea")
|
|
1987
|
+
], j);
|
|
1988
|
+
var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, _e = (o, t, a, r) => {
|
|
1989
|
+
for (var e = r > 1 ? void 0 : r ? mo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
1990
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
1991
|
+
return r && e && yo(t, a, e), e;
|
|
1421
1992
|
};
|
|
1422
|
-
let
|
|
1993
|
+
let E = class extends h {
|
|
1423
1994
|
constructor() {
|
|
1424
1995
|
super(...arguments), this.alt = "", this.initials = "", this.size = "md";
|
|
1425
1996
|
}
|
|
@@ -1431,7 +2002,7 @@ let w = class extends p {
|
|
|
1431
2002
|
`;
|
|
1432
2003
|
}
|
|
1433
2004
|
};
|
|
1434
|
-
|
|
2005
|
+
E.styles = d`
|
|
1435
2006
|
:host {
|
|
1436
2007
|
display: inline-block;
|
|
1437
2008
|
}
|
|
@@ -1479,33 +2050,33 @@ w.styles = d`
|
|
|
1479
2050
|
font-size: 28px;
|
|
1480
2051
|
}
|
|
1481
2052
|
`;
|
|
1482
|
-
|
|
2053
|
+
_e([
|
|
1483
2054
|
n()
|
|
1484
|
-
],
|
|
1485
|
-
|
|
2055
|
+
], E.prototype, "src", 2);
|
|
2056
|
+
_e([
|
|
1486
2057
|
n()
|
|
1487
|
-
],
|
|
1488
|
-
|
|
2058
|
+
], E.prototype, "alt", 2);
|
|
2059
|
+
_e([
|
|
1489
2060
|
n()
|
|
1490
|
-
],
|
|
1491
|
-
|
|
2061
|
+
], E.prototype, "initials", 2);
|
|
2062
|
+
_e([
|
|
1492
2063
|
n({ reflect: !0 })
|
|
1493
|
-
],
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
],
|
|
1497
|
-
var
|
|
1498
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1499
|
-
(i =
|
|
1500
|
-
return r && e &&
|
|
2064
|
+
], E.prototype, "size", 2);
|
|
2065
|
+
E = _e([
|
|
2066
|
+
p("vox-avatar")
|
|
2067
|
+
], E);
|
|
2068
|
+
var wo = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, vt = (o, t, a, r) => {
|
|
2069
|
+
for (var e = r > 1 ? void 0 : r ? $o(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
2070
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
2071
|
+
return r && e && wo(t, a, e), e;
|
|
1501
2072
|
};
|
|
1502
|
-
let
|
|
2073
|
+
let ae = class extends h {
|
|
1503
2074
|
constructor() {
|
|
1504
2075
|
super(...arguments), this.heading = "", this.reverse = !1, this.hasActions = !1;
|
|
1505
2076
|
}
|
|
1506
|
-
handleActionsSlotChange(
|
|
1507
|
-
const
|
|
1508
|
-
this.hasActions =
|
|
2077
|
+
handleActionsSlotChange(o) {
|
|
2078
|
+
const t = o.target;
|
|
2079
|
+
this.hasActions = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
1509
2080
|
}
|
|
1510
2081
|
render() {
|
|
1511
2082
|
return l`
|
|
@@ -1522,7 +2093,7 @@ let K = class extends p {
|
|
|
1522
2093
|
`;
|
|
1523
2094
|
}
|
|
1524
2095
|
};
|
|
1525
|
-
|
|
2096
|
+
ae.styles = d`
|
|
1526
2097
|
:host {
|
|
1527
2098
|
display: block;
|
|
1528
2099
|
font-family: var(--vox-font-family-base);
|
|
@@ -1584,21 +2155,21 @@ K.styles = d`
|
|
|
1584
2155
|
display: none;
|
|
1585
2156
|
}
|
|
1586
2157
|
`;
|
|
1587
|
-
|
|
2158
|
+
vt([
|
|
1588
2159
|
n()
|
|
1589
|
-
],
|
|
1590
|
-
|
|
2160
|
+
], ae.prototype, "heading", 2);
|
|
2161
|
+
vt([
|
|
1591
2162
|
n({ type: Boolean, reflect: !0 })
|
|
1592
|
-
],
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
],
|
|
1596
|
-
var
|
|
1597
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1598
|
-
(i =
|
|
2163
|
+
], ae.prototype, "reverse", 2);
|
|
2164
|
+
ae = vt([
|
|
2165
|
+
p("vox-billboard")
|
|
2166
|
+
], ae);
|
|
2167
|
+
var _o = Object.getOwnPropertyDescriptor, Co = (o, t, a, r) => {
|
|
2168
|
+
for (var e = r > 1 ? void 0 : r ? _o(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
2169
|
+
(i = o[s]) && (e = i(e) || e);
|
|
1599
2170
|
return e;
|
|
1600
2171
|
};
|
|
1601
|
-
let
|
|
2172
|
+
let rt = class extends h {
|
|
1602
2173
|
render() {
|
|
1603
2174
|
return l`
|
|
1604
2175
|
<nav aria-label="Breadcrumbs">
|
|
@@ -1607,7 +2178,7 @@ let Ze = class extends p {
|
|
|
1607
2178
|
`;
|
|
1608
2179
|
}
|
|
1609
2180
|
};
|
|
1610
|
-
|
|
2181
|
+
rt.styles = d`
|
|
1611
2182
|
:host {
|
|
1612
2183
|
display: block;
|
|
1613
2184
|
font-family: var(--vox-font-family-base);
|
|
@@ -1641,21 +2212,21 @@ Ze.styles = d`
|
|
|
1641
2212
|
color: var(--vox-color-text-3);
|
|
1642
2213
|
}
|
|
1643
2214
|
`;
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
],
|
|
1647
|
-
var
|
|
1648
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
1649
|
-
(i =
|
|
1650
|
-
return r && e &&
|
|
2215
|
+
rt = Co([
|
|
2216
|
+
p("vox-breadcrumbs")
|
|
2217
|
+
], rt);
|
|
2218
|
+
var ko = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, Ye = (o, t, a, r) => {
|
|
2219
|
+
for (var e = r > 1 ? void 0 : r ? Oo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
2220
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
2221
|
+
return r && e && ko(t, a, e), e;
|
|
1651
2222
|
};
|
|
1652
|
-
let
|
|
2223
|
+
let U = class extends h {
|
|
1653
2224
|
constructor() {
|
|
1654
|
-
super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (
|
|
1655
|
-
this.mobileOpen && !
|
|
1656
|
-
}, this.handleKeydown = (
|
|
1657
|
-
var
|
|
1658
|
-
|
|
2225
|
+
super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (o) => {
|
|
2226
|
+
this.mobileOpen && !o.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
2227
|
+
}, this.handleKeydown = (o) => {
|
|
2228
|
+
var t;
|
|
2229
|
+
o.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (t = this.renderRoot.querySelector(".menu-toggle")) == null || t.focus());
|
|
1659
2230
|
}, this.toggleMobileMenu = () => {
|
|
1660
2231
|
this.mobileOpen = !this.mobileOpen;
|
|
1661
2232
|
}, this.closeMobileMenu = () => {
|
|
@@ -1693,7 +2264,7 @@ let D = class extends p {
|
|
|
1693
2264
|
stroke-linejoin="round"
|
|
1694
2265
|
aria-hidden="true"
|
|
1695
2266
|
>
|
|
1696
|
-
${this.mobileOpen ?
|
|
2267
|
+
${this.mobileOpen ? O.close : O.menu}
|
|
1697
2268
|
</svg>
|
|
1698
2269
|
</button>
|
|
1699
2270
|
<div id="nav-wrap" class="nav-wrap${this.mobileOpen ? " open" : ""}">
|
|
@@ -1708,7 +2279,7 @@ let D = class extends p {
|
|
|
1708
2279
|
`;
|
|
1709
2280
|
}
|
|
1710
2281
|
};
|
|
1711
|
-
|
|
2282
|
+
U.styles = d`
|
|
1712
2283
|
:host {
|
|
1713
2284
|
display: block;
|
|
1714
2285
|
font-family: var(--vox-font-family-base);
|
|
@@ -1838,24 +2409,24 @@ D.styles = d`
|
|
|
1838
2409
|
}
|
|
1839
2410
|
}
|
|
1840
2411
|
`;
|
|
1841
|
-
|
|
2412
|
+
Ye([
|
|
1842
2413
|
n({ attribute: "site-title" })
|
|
1843
|
-
],
|
|
1844
|
-
|
|
2414
|
+
], U.prototype, "siteTitle", 2);
|
|
2415
|
+
Ye([
|
|
1845
2416
|
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 &&
|
|
2417
|
+
], U.prototype, "href", 2);
|
|
2418
|
+
Ye([
|
|
2419
|
+
$()
|
|
2420
|
+
], U.prototype, "mobileOpen", 2);
|
|
2421
|
+
U = Ye([
|
|
2422
|
+
p("vox-header")
|
|
2423
|
+
], U);
|
|
2424
|
+
var Mo = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Ce = (o, t, a, r) => {
|
|
2425
|
+
for (var e = r > 1 ? void 0 : r ? Lo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
2426
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
2427
|
+
return r && e && Mo(t, a, e), e;
|
|
1857
2428
|
};
|
|
1858
|
-
let
|
|
2429
|
+
let D = class extends h {
|
|
1859
2430
|
constructor() {
|
|
1860
2431
|
super(...arguments), this.previousLabel = "", this.nextLabel = "";
|
|
1861
2432
|
}
|
|
@@ -1878,7 +2449,7 @@ let $ = class extends p {
|
|
|
1878
2449
|
`;
|
|
1879
2450
|
}
|
|
1880
2451
|
};
|
|
1881
|
-
|
|
2452
|
+
D.styles = d`
|
|
1882
2453
|
:host {
|
|
1883
2454
|
display: block;
|
|
1884
2455
|
font-family: var(--vox-font-family-base);
|
|
@@ -1928,37 +2499,37 @@ $.styles = d`
|
|
|
1928
2499
|
color: var(--vox-color-brand-1);
|
|
1929
2500
|
}
|
|
1930
2501
|
`;
|
|
1931
|
-
|
|
2502
|
+
Ce([
|
|
1932
2503
|
n({ attribute: "previous-href" })
|
|
1933
|
-
],
|
|
1934
|
-
|
|
2504
|
+
], D.prototype, "previousHref", 2);
|
|
2505
|
+
Ce([
|
|
1935
2506
|
n({ attribute: "previous-label" })
|
|
1936
|
-
],
|
|
1937
|
-
|
|
2507
|
+
], D.prototype, "previousLabel", 2);
|
|
2508
|
+
Ce([
|
|
1938
2509
|
n({ attribute: "next-href" })
|
|
1939
|
-
],
|
|
1940
|
-
|
|
2510
|
+
], D.prototype, "nextHref", 2);
|
|
2511
|
+
Ce([
|
|
1941
2512
|
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 &&
|
|
2513
|
+
], D.prototype, "nextLabel", 2);
|
|
2514
|
+
D = Ce([
|
|
2515
|
+
p("vox-series-nav")
|
|
2516
|
+
], D);
|
|
2517
|
+
var Po = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, _ = (o, t, a, r) => {
|
|
2518
|
+
for (var e = r > 1 ? void 0 : r ? Vo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
2519
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
2520
|
+
return r && e && Po(t, a, e), e;
|
|
1950
2521
|
};
|
|
1951
|
-
let
|
|
2522
|
+
let G = class extends h {
|
|
1952
2523
|
constructor() {
|
|
1953
|
-
super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (
|
|
1954
|
-
this.mobileOpen && !
|
|
1955
|
-
}, this.handleKeydown = (
|
|
1956
|
-
var
|
|
1957
|
-
|
|
2524
|
+
super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (o) => {
|
|
2525
|
+
this.mobileOpen && !o.composedPath().includes(this) && (this.mobileOpen = !1);
|
|
2526
|
+
}, this.handleKeydown = (o) => {
|
|
2527
|
+
var t;
|
|
2528
|
+
o.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (t = this.renderRoot.querySelector(".toggle")) == null || t.focus());
|
|
1958
2529
|
}, this.toggleMobile = () => {
|
|
1959
2530
|
this.mobileOpen = !this.mobileOpen;
|
|
1960
|
-
}, this.handleNavClick = (
|
|
1961
|
-
|
|
2531
|
+
}, this.handleNavClick = (o) => {
|
|
2532
|
+
o.composedPath().some((t) => t instanceof HTMLAnchorElement) && (this.mobileOpen = !1);
|
|
1962
2533
|
};
|
|
1963
2534
|
}
|
|
1964
2535
|
connectedCallback() {
|
|
@@ -1987,7 +2558,7 @@ let E = class extends p {
|
|
|
1987
2558
|
stroke-linejoin="round"
|
|
1988
2559
|
aria-hidden="true"
|
|
1989
2560
|
>
|
|
1990
|
-
${this.mobileOpen ?
|
|
2561
|
+
${this.mobileOpen ? O.close : O.menu}
|
|
1991
2562
|
</svg>
|
|
1992
2563
|
</button>
|
|
1993
2564
|
<nav
|
|
@@ -2001,7 +2572,7 @@ let E = class extends p {
|
|
|
2001
2572
|
`;
|
|
2002
2573
|
}
|
|
2003
2574
|
};
|
|
2004
|
-
|
|
2575
|
+
G.styles = d`
|
|
2005
2576
|
:host {
|
|
2006
2577
|
display: block;
|
|
2007
2578
|
font-family: var(--vox-font-family-base);
|
|
@@ -2061,19 +2632,19 @@ E.styles = d`
|
|
|
2061
2632
|
}
|
|
2062
2633
|
}
|
|
2063
2634
|
`;
|
|
2064
|
-
|
|
2635
|
+
_([
|
|
2065
2636
|
n()
|
|
2066
|
-
],
|
|
2067
|
-
|
|
2637
|
+
], G.prototype, "label", 2);
|
|
2638
|
+
_([
|
|
2068
2639
|
n({ attribute: "toggle-label" })
|
|
2069
|
-
],
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
],
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
],
|
|
2076
|
-
let
|
|
2640
|
+
], G.prototype, "toggleLabel", 2);
|
|
2641
|
+
_([
|
|
2642
|
+
$()
|
|
2643
|
+
], G.prototype, "mobileOpen", 2);
|
|
2644
|
+
G = _([
|
|
2645
|
+
p("vox-sidenav")
|
|
2646
|
+
], G);
|
|
2647
|
+
let se = class extends h {
|
|
2077
2648
|
constructor() {
|
|
2078
2649
|
super(...arguments), this.heading = "", this.open = !1;
|
|
2079
2650
|
}
|
|
@@ -2096,7 +2667,7 @@ let U = class extends p {
|
|
|
2096
2667
|
`;
|
|
2097
2668
|
}
|
|
2098
2669
|
};
|
|
2099
|
-
|
|
2670
|
+
se.styles = d`
|
|
2100
2671
|
:host {
|
|
2101
2672
|
display: block;
|
|
2102
2673
|
font-family: var(--vox-font-family-base);
|
|
@@ -2153,22 +2724,22 @@ U.styles = d`
|
|
|
2153
2724
|
display: flex;
|
|
2154
2725
|
}
|
|
2155
2726
|
`;
|
|
2156
|
-
|
|
2727
|
+
_([
|
|
2157
2728
|
n()
|
|
2158
|
-
],
|
|
2159
|
-
|
|
2729
|
+
], se.prototype, "heading", 2);
|
|
2730
|
+
_([
|
|
2160
2731
|
n({ type: Boolean, reflect: !0 })
|
|
2161
|
-
],
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
],
|
|
2165
|
-
let
|
|
2732
|
+
], se.prototype, "open", 2);
|
|
2733
|
+
se = _([
|
|
2734
|
+
p("vox-sidenav-group")
|
|
2735
|
+
], se);
|
|
2736
|
+
let ie = class extends h {
|
|
2166
2737
|
constructor() {
|
|
2167
2738
|
super(...arguments), this.href = "#", this.current = !1, this.hasIcon = !1;
|
|
2168
2739
|
}
|
|
2169
|
-
handleIconSlotChange(
|
|
2170
|
-
const
|
|
2171
|
-
this.hasIcon =
|
|
2740
|
+
handleIconSlotChange(o) {
|
|
2741
|
+
const t = o.target;
|
|
2742
|
+
this.hasIcon = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2172
2743
|
}
|
|
2173
2744
|
render() {
|
|
2174
2745
|
return l`
|
|
@@ -2181,7 +2752,7 @@ let G = class extends p {
|
|
|
2181
2752
|
`;
|
|
2182
2753
|
}
|
|
2183
2754
|
};
|
|
2184
|
-
|
|
2755
|
+
ie.styles = d`
|
|
2185
2756
|
:host {
|
|
2186
2757
|
display: block;
|
|
2187
2758
|
font-family: var(--vox-font-family-base);
|
|
@@ -2225,21 +2796,21 @@ G.styles = d`
|
|
|
2225
2796
|
display: none;
|
|
2226
2797
|
}
|
|
2227
2798
|
`;
|
|
2228
|
-
|
|
2799
|
+
_([
|
|
2229
2800
|
n()
|
|
2230
|
-
],
|
|
2231
|
-
|
|
2801
|
+
], ie.prototype, "href", 2);
|
|
2802
|
+
_([
|
|
2232
2803
|
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 &&
|
|
2804
|
+
], ie.prototype, "current", 2);
|
|
2805
|
+
ie = _([
|
|
2806
|
+
p("vox-sidenav-item")
|
|
2807
|
+
], ie);
|
|
2808
|
+
var zo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Et = (o, t, a, r) => {
|
|
2809
|
+
for (var e = r > 1 ? void 0 : r ? jo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
2810
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
2811
|
+
return r && e && zo(t, a, e), e;
|
|
2241
2812
|
};
|
|
2242
|
-
let
|
|
2813
|
+
let Se = class extends h {
|
|
2243
2814
|
constructor() {
|
|
2244
2815
|
super(...arguments), this.label = "Secondary";
|
|
2245
2816
|
}
|
|
@@ -2251,7 +2822,7 @@ let _e = class extends p {
|
|
|
2251
2822
|
`;
|
|
2252
2823
|
}
|
|
2253
2824
|
};
|
|
2254
|
-
|
|
2825
|
+
Se.styles = d`
|
|
2255
2826
|
:host {
|
|
2256
2827
|
display: block;
|
|
2257
2828
|
font-family: var(--vox-font-family-base);
|
|
@@ -2286,18 +2857,18 @@ _e.styles = d`
|
|
|
2286
2857
|
border-bottom-color: var(--vox-color-brand-1);
|
|
2287
2858
|
}
|
|
2288
2859
|
`;
|
|
2289
|
-
|
|
2860
|
+
Et([
|
|
2290
2861
|
n()
|
|
2291
|
-
],
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
],
|
|
2295
|
-
var
|
|
2296
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
2297
|
-
(i =
|
|
2298
|
-
return r && e &&
|
|
2862
|
+
], Se.prototype, "label", 2);
|
|
2863
|
+
Se = Et([
|
|
2864
|
+
p("vox-subnav")
|
|
2865
|
+
], Se);
|
|
2866
|
+
var Eo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, q = (o, t, a, r) => {
|
|
2867
|
+
for (var e = r > 1 ? void 0 : r ? Do(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
2868
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
2869
|
+
return r && e && Eo(t, a, e), e;
|
|
2299
2870
|
};
|
|
2300
|
-
let
|
|
2871
|
+
let at = class extends h {
|
|
2301
2872
|
get tabs() {
|
|
2302
2873
|
return [...this.querySelectorAll("vox-tab")];
|
|
2303
2874
|
}
|
|
@@ -2305,27 +2876,27 @@ let Ke = class extends p {
|
|
|
2305
2876
|
return [...this.querySelectorAll("vox-tab-panel")];
|
|
2306
2877
|
}
|
|
2307
2878
|
sync() {
|
|
2308
|
-
const
|
|
2309
|
-
|
|
2310
|
-
const
|
|
2879
|
+
const o = this.tabs;
|
|
2880
|
+
o.length > 0 && !o.some((a) => a.selected) && (o[0].selected = !0);
|
|
2881
|
+
const t = o.find((a) => a.selected);
|
|
2311
2882
|
this.panels.forEach((a) => {
|
|
2312
|
-
a.active = a.name === (
|
|
2883
|
+
a.active = a.name === (t == null ? void 0 : t.panel);
|
|
2313
2884
|
});
|
|
2314
2885
|
}
|
|
2315
|
-
handleSelect(
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2886
|
+
handleSelect(o) {
|
|
2887
|
+
const t = o.target;
|
|
2888
|
+
t.tagName === "VOX-TAB" && (this.tabs.forEach((a) => a.selected = a === t), this.sync(), this.dispatchEvent(
|
|
2318
2889
|
new CustomEvent("vox-tab-change", {
|
|
2319
|
-
detail: { panel:
|
|
2890
|
+
detail: { panel: t.panel },
|
|
2320
2891
|
bubbles: !0,
|
|
2321
2892
|
composed: !0
|
|
2322
2893
|
})
|
|
2323
2894
|
));
|
|
2324
2895
|
}
|
|
2325
|
-
handleKeydown(
|
|
2326
|
-
const a = { ArrowRight: 1, ArrowLeft: -1 }[
|
|
2896
|
+
handleKeydown(o) {
|
|
2897
|
+
const a = { ArrowRight: 1, ArrowLeft: -1 }[o.key];
|
|
2327
2898
|
if (!a) return;
|
|
2328
|
-
|
|
2899
|
+
o.preventDefault();
|
|
2329
2900
|
const r = this.tabs, e = r.findIndex((i) => i.selected), s = r[(e + a + r.length) % r.length];
|
|
2330
2901
|
s.select(), s.focusTab();
|
|
2331
2902
|
}
|
|
@@ -2343,7 +2914,7 @@ let Ke = class extends p {
|
|
|
2343
2914
|
`;
|
|
2344
2915
|
}
|
|
2345
2916
|
};
|
|
2346
|
-
|
|
2917
|
+
at.styles = d`
|
|
2347
2918
|
:host {
|
|
2348
2919
|
display: block;
|
|
2349
2920
|
}
|
|
@@ -2354,10 +2925,10 @@ Ke.styles = d`
|
|
|
2354
2925
|
border-bottom: 1px solid var(--vox-color-divider);
|
|
2355
2926
|
}
|
|
2356
2927
|
`;
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
],
|
|
2360
|
-
let
|
|
2928
|
+
at = q([
|
|
2929
|
+
p("vox-tabs")
|
|
2930
|
+
], at);
|
|
2931
|
+
let ne = class extends h {
|
|
2361
2932
|
constructor() {
|
|
2362
2933
|
super(...arguments), this.panel = "", this.selected = !1;
|
|
2363
2934
|
}
|
|
@@ -2367,8 +2938,8 @@ let X = class extends p {
|
|
|
2367
2938
|
);
|
|
2368
2939
|
}
|
|
2369
2940
|
focusTab() {
|
|
2370
|
-
var
|
|
2371
|
-
(
|
|
2941
|
+
var o;
|
|
2942
|
+
(o = this.renderRoot.querySelector(".tab")) == null || o.focus();
|
|
2372
2943
|
}
|
|
2373
2944
|
render() {
|
|
2374
2945
|
return l`
|
|
@@ -2384,7 +2955,7 @@ let X = class extends p {
|
|
|
2384
2955
|
`;
|
|
2385
2956
|
}
|
|
2386
2957
|
};
|
|
2387
|
-
|
|
2958
|
+
ne.styles = d`
|
|
2388
2959
|
:host {
|
|
2389
2960
|
display: block;
|
|
2390
2961
|
font-family: var(--vox-font-family-base);
|
|
@@ -2419,16 +2990,16 @@ X.styles = d`
|
|
|
2419
2990
|
border-bottom-color: var(--vox-color-brand-1);
|
|
2420
2991
|
}
|
|
2421
2992
|
`;
|
|
2422
|
-
|
|
2993
|
+
q([
|
|
2423
2994
|
n()
|
|
2424
|
-
],
|
|
2425
|
-
|
|
2995
|
+
], ne.prototype, "panel", 2);
|
|
2996
|
+
q([
|
|
2426
2997
|
n({ type: Boolean, reflect: !0 })
|
|
2427
|
-
],
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
],
|
|
2431
|
-
let
|
|
2998
|
+
], ne.prototype, "selected", 2);
|
|
2999
|
+
ne = q([
|
|
3000
|
+
p("vox-tab")
|
|
3001
|
+
], ne);
|
|
3002
|
+
let le = class extends h {
|
|
2432
3003
|
constructor() {
|
|
2433
3004
|
super(...arguments), this.name = "", this.active = !1;
|
|
2434
3005
|
}
|
|
@@ -2436,7 +3007,7 @@ let J = class extends p {
|
|
|
2436
3007
|
return l`<div role="tabpanel"><slot></slot></div>`;
|
|
2437
3008
|
}
|
|
2438
3009
|
};
|
|
2439
|
-
|
|
3010
|
+
le.styles = d`
|
|
2440
3011
|
:host {
|
|
2441
3012
|
display: none;
|
|
2442
3013
|
font-family: var(--vox-font-family-base);
|
|
@@ -2450,21 +3021,21 @@ J.styles = d`
|
|
|
2450
3021
|
display: block;
|
|
2451
3022
|
}
|
|
2452
3023
|
`;
|
|
2453
|
-
|
|
3024
|
+
q([
|
|
2454
3025
|
n()
|
|
2455
|
-
],
|
|
2456
|
-
|
|
3026
|
+
], le.prototype, "name", 2);
|
|
3027
|
+
q([
|
|
2457
3028
|
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 &&
|
|
3029
|
+
], le.prototype, "active", 2);
|
|
3030
|
+
le = q([
|
|
3031
|
+
p("vox-tab-panel")
|
|
3032
|
+
], le);
|
|
3033
|
+
var Ao = Object.defineProperty, So = Object.getOwnPropertyDescriptor, ke = (o, t, a, r) => {
|
|
3034
|
+
for (var e = r > 1 ? void 0 : r ? So(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
3035
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
3036
|
+
return r && e && Ao(t, a, e), e;
|
|
2466
3037
|
};
|
|
2467
|
-
let
|
|
3038
|
+
let He = class extends h {
|
|
2468
3039
|
constructor() {
|
|
2469
3040
|
super(...arguments), this.heading = "On this page";
|
|
2470
3041
|
}
|
|
@@ -2477,7 +3048,7 @@ let Ce = class extends p {
|
|
|
2477
3048
|
`;
|
|
2478
3049
|
}
|
|
2479
3050
|
};
|
|
2480
|
-
|
|
3051
|
+
He.styles = d`
|
|
2481
3052
|
:host {
|
|
2482
3053
|
display: block;
|
|
2483
3054
|
font-family: var(--vox-font-family-base);
|
|
@@ -2498,19 +3069,19 @@ Ce.styles = d`
|
|
|
2498
3069
|
border-left: 1px solid var(--vox-color-divider);
|
|
2499
3070
|
}
|
|
2500
3071
|
`;
|
|
2501
|
-
|
|
3072
|
+
ke([
|
|
2502
3073
|
n()
|
|
2503
|
-
],
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
],
|
|
2507
|
-
let
|
|
3074
|
+
], He.prototype, "heading", 2);
|
|
3075
|
+
He = ke([
|
|
3076
|
+
p("vox-toc")
|
|
3077
|
+
], He);
|
|
3078
|
+
let ce = class extends h {
|
|
2508
3079
|
constructor() {
|
|
2509
3080
|
super(...arguments), this.href = "#", this.current = !1, this.hasChildren = !1;
|
|
2510
3081
|
}
|
|
2511
|
-
handleChildrenSlotChange(
|
|
2512
|
-
const
|
|
2513
|
-
this.hasChildren =
|
|
3082
|
+
handleChildrenSlotChange(o) {
|
|
3083
|
+
const t = o.target;
|
|
3084
|
+
this.hasChildren = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2514
3085
|
}
|
|
2515
3086
|
render() {
|
|
2516
3087
|
return l`
|
|
@@ -2523,7 +3094,7 @@ let W = class extends p {
|
|
|
2523
3094
|
`;
|
|
2524
3095
|
}
|
|
2525
3096
|
};
|
|
2526
|
-
|
|
3097
|
+
ce.styles = d`
|
|
2527
3098
|
:host {
|
|
2528
3099
|
display: block;
|
|
2529
3100
|
font-family: var(--vox-font-family-base);
|
|
@@ -2569,21 +3140,21 @@ W.styles = d`
|
|
|
2569
3140
|
display: none;
|
|
2570
3141
|
}
|
|
2571
3142
|
`;
|
|
2572
|
-
|
|
3143
|
+
ke([
|
|
2573
3144
|
n()
|
|
2574
|
-
],
|
|
2575
|
-
|
|
3145
|
+
], ce.prototype, "href", 2);
|
|
3146
|
+
ke([
|
|
2576
3147
|
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 &&
|
|
3148
|
+
], ce.prototype, "current", 2);
|
|
3149
|
+
ce = ke([
|
|
3150
|
+
p("vox-toc-item")
|
|
3151
|
+
], ce);
|
|
3152
|
+
var Ho = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, Oe = (o, t, a, r) => {
|
|
3153
|
+
for (var e = r > 1 ? void 0 : r ? Bo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
3154
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
3155
|
+
return r && e && Ho(t, a, e), e;
|
|
2585
3156
|
};
|
|
2586
|
-
let
|
|
3157
|
+
let A = class extends h {
|
|
2587
3158
|
constructor() {
|
|
2588
3159
|
super(...arguments), this.heading = "", this.open = !1, this.lightDismiss = !1, this.hasFooter = !1;
|
|
2589
3160
|
}
|
|
@@ -2601,12 +3172,12 @@ let _ = class extends p {
|
|
|
2601
3172
|
new CustomEvent("vox-close", { bubbles: !0, composed: !0 })
|
|
2602
3173
|
);
|
|
2603
3174
|
}
|
|
2604
|
-
handleClick(
|
|
2605
|
-
this.lightDismiss &&
|
|
3175
|
+
handleClick(o) {
|
|
3176
|
+
this.lightDismiss && o.target === this.dialogEl && this.close();
|
|
2606
3177
|
}
|
|
2607
|
-
handleFooterSlotChange(
|
|
2608
|
-
const
|
|
2609
|
-
this.hasFooter =
|
|
3178
|
+
handleFooterSlotChange(o) {
|
|
3179
|
+
const t = o.target;
|
|
3180
|
+
this.hasFooter = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
2610
3181
|
}
|
|
2611
3182
|
render() {
|
|
2612
3183
|
return l`
|
|
@@ -2631,7 +3202,7 @@ let _ = class extends p {
|
|
|
2631
3202
|
`;
|
|
2632
3203
|
}
|
|
2633
3204
|
};
|
|
2634
|
-
|
|
3205
|
+
A.styles = d`
|
|
2635
3206
|
dialog {
|
|
2636
3207
|
box-sizing: border-box;
|
|
2637
3208
|
width: min(90vw, 480px);
|
|
@@ -2718,27 +3289,27 @@ _.styles = d`
|
|
|
2718
3289
|
margin-bottom: 0;
|
|
2719
3290
|
}
|
|
2720
3291
|
`;
|
|
2721
|
-
|
|
3292
|
+
Oe([
|
|
2722
3293
|
n()
|
|
2723
|
-
],
|
|
2724
|
-
|
|
3294
|
+
], A.prototype, "heading", 2);
|
|
3295
|
+
Oe([
|
|
2725
3296
|
n({ type: Boolean })
|
|
2726
|
-
],
|
|
2727
|
-
|
|
3297
|
+
], A.prototype, "open", 2);
|
|
3298
|
+
Oe([
|
|
2728
3299
|
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 &&
|
|
3300
|
+
], A.prototype, "lightDismiss", 2);
|
|
3301
|
+
Oe([
|
|
3302
|
+
J("dialog")
|
|
3303
|
+
], A.prototype, "dialogEl", 2);
|
|
3304
|
+
A = Oe([
|
|
3305
|
+
p("vox-dialog")
|
|
3306
|
+
], A);
|
|
3307
|
+
var Io = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, ut = (o, t, a, r) => {
|
|
3308
|
+
for (var e = r > 1 ? void 0 : r ? qo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
3309
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
3310
|
+
return r && e && Io(t, a, e), e;
|
|
2740
3311
|
};
|
|
2741
|
-
let
|
|
3312
|
+
let de = class extends h {
|
|
2742
3313
|
constructor() {
|
|
2743
3314
|
super(...arguments), this.summary = "Show details", this.open = !1;
|
|
2744
3315
|
}
|
|
@@ -2765,7 +3336,7 @@ let Q = class extends p {
|
|
|
2765
3336
|
`;
|
|
2766
3337
|
}
|
|
2767
3338
|
};
|
|
2768
|
-
|
|
3339
|
+
de.styles = d`
|
|
2769
3340
|
:host {
|
|
2770
3341
|
display: block;
|
|
2771
3342
|
font-family: var(--vox-font-family-base);
|
|
@@ -2817,35 +3388,35 @@ Q.styles = d`
|
|
|
2817
3388
|
display: none;
|
|
2818
3389
|
}
|
|
2819
3390
|
`;
|
|
2820
|
-
|
|
3391
|
+
ut([
|
|
2821
3392
|
n()
|
|
2822
|
-
],
|
|
2823
|
-
|
|
3393
|
+
], de.prototype, "summary", 2);
|
|
3394
|
+
ut([
|
|
2824
3395
|
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 &&
|
|
3396
|
+
], de.prototype, "open", 2);
|
|
3397
|
+
de = ut([
|
|
3398
|
+
p("vox-disclosure")
|
|
3399
|
+
], de);
|
|
3400
|
+
var No = Object.defineProperty, To = Object.getOwnPropertyDescriptor, xt = (o, t, a, r) => {
|
|
3401
|
+
for (var e = r > 1 ? void 0 : r ? To(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
3402
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
3403
|
+
return r && e && No(t, a, e), e;
|
|
2833
3404
|
};
|
|
2834
|
-
let
|
|
3405
|
+
let pe = class extends h {
|
|
2835
3406
|
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, (
|
|
3407
|
+
super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (o) => {
|
|
3408
|
+
this.open && !o.composedPath().includes(this) && (this.open = !1);
|
|
3409
|
+
}, this.handleKeydown = (o) => {
|
|
3410
|
+
var t;
|
|
3411
|
+
if (o.key === "Escape" && this.open) {
|
|
3412
|
+
this.open = !1, (t = this.renderRoot.querySelector(".trigger")) == null || t.focus();
|
|
2842
3413
|
return;
|
|
2843
3414
|
}
|
|
2844
|
-
if ((
|
|
2845
|
-
|
|
3415
|
+
if ((o.key === "ArrowDown" || o.key === "ArrowUp") && this.open) {
|
|
3416
|
+
o.preventDefault();
|
|
2846
3417
|
const a = [...this.querySelectorAll("a, button")];
|
|
2847
3418
|
if (a.length === 0) return;
|
|
2848
|
-
const r = document.activeElement, e = a.indexOf(r), s =
|
|
3419
|
+
const r = document.activeElement, e = a.indexOf(r), s = o.key === "ArrowDown" ? 1 : -1;
|
|
2849
3420
|
a[(Math.max(e, 0) + s + a.length) % a.length].focus();
|
|
2850
3421
|
}
|
|
2851
3422
|
};
|
|
@@ -2878,16 +3449,10 @@ let Y = class extends p {
|
|
|
2878
3449
|
`;
|
|
2879
3450
|
}
|
|
2880
3451
|
};
|
|
2881
|
-
|
|
3452
|
+
pe.styles = d`
|
|
2882
3453
|
:host {
|
|
2883
3454
|
position: relative;
|
|
2884
3455
|
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;
|
|
2891
3456
|
font-family: var(--vox-font-family-base);
|
|
2892
3457
|
}
|
|
2893
3458
|
|
|
@@ -2983,188 +3548,30 @@ Y.styles = d`
|
|
|
2983
3548
|
border-top: 1px solid var(--vox-color-divider);
|
|
2984
3549
|
}
|
|
2985
3550
|
`;
|
|
2986
|
-
|
|
3551
|
+
xt([
|
|
2987
3552
|
n()
|
|
2988
|
-
],
|
|
2989
|
-
|
|
3553
|
+
], pe.prototype, "label", 2);
|
|
3554
|
+
xt([
|
|
2990
3555
|
n({ type: Boolean, reflect: !0 })
|
|
2991
|
-
],
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
],
|
|
2995
|
-
var
|
|
2996
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
2997
|
-
(i =
|
|
2998
|
-
return r && e &&
|
|
3556
|
+
], pe.prototype, "open", 2);
|
|
3557
|
+
pe = xt([
|
|
3558
|
+
p("vox-dropdown")
|
|
3559
|
+
], pe);
|
|
3560
|
+
var Ro = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, Me = (o, t, a, r) => {
|
|
3561
|
+
for (var e = r > 1 ? void 0 : r ? Zo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
3562
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
3563
|
+
return r && e && Ro(t, a, e), e;
|
|
2999
3564
|
};
|
|
3000
|
-
let
|
|
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;
|
|
3157
|
-
};
|
|
3158
|
-
let Me = class extends p {
|
|
3565
|
+
let Be = class extends h {
|
|
3159
3566
|
constructor() {
|
|
3160
3567
|
super(...arguments), this.single = !1;
|
|
3161
3568
|
}
|
|
3162
|
-
handleToggle(
|
|
3569
|
+
handleToggle(o) {
|
|
3163
3570
|
if (!this.single) return;
|
|
3164
|
-
const
|
|
3165
|
-
|
|
3571
|
+
const t = o.target;
|
|
3572
|
+
t.open && this.querySelectorAll("vox-accordion-item").forEach(
|
|
3166
3573
|
(a) => {
|
|
3167
|
-
a !==
|
|
3574
|
+
a !== t && (a.open = !1);
|
|
3168
3575
|
}
|
|
3169
3576
|
);
|
|
3170
3577
|
}
|
|
@@ -3172,7 +3579,7 @@ let Me = class extends p {
|
|
|
3172
3579
|
return l`<slot @vox-toggle=${this.handleToggle}></slot>`;
|
|
3173
3580
|
}
|
|
3174
3581
|
};
|
|
3175
|
-
|
|
3582
|
+
Be.styles = d`
|
|
3176
3583
|
:host {
|
|
3177
3584
|
display: block;
|
|
3178
3585
|
border: 1px solid var(--vox-color-divider);
|
|
@@ -3184,13 +3591,13 @@ Me.styles = d`
|
|
|
3184
3591
|
border-top: 1px solid var(--vox-color-divider);
|
|
3185
3592
|
}
|
|
3186
3593
|
`;
|
|
3187
|
-
|
|
3594
|
+
Me([
|
|
3188
3595
|
n({ type: Boolean })
|
|
3189
|
-
],
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
],
|
|
3193
|
-
let
|
|
3596
|
+
], Be.prototype, "single", 2);
|
|
3597
|
+
Be = Me([
|
|
3598
|
+
p("vox-accordion")
|
|
3599
|
+
], Be);
|
|
3600
|
+
let he = class extends h {
|
|
3194
3601
|
constructor() {
|
|
3195
3602
|
super(...arguments), this.heading = "", this.open = !1;
|
|
3196
3603
|
}
|
|
@@ -3219,7 +3626,7 @@ let ee = class extends p {
|
|
|
3219
3626
|
`;
|
|
3220
3627
|
}
|
|
3221
3628
|
};
|
|
3222
|
-
|
|
3629
|
+
he.styles = d`
|
|
3223
3630
|
:host {
|
|
3224
3631
|
display: block;
|
|
3225
3632
|
font-family: var(--vox-font-family-base);
|
|
@@ -3281,27 +3688,27 @@ ee.styles = d`
|
|
|
3281
3688
|
margin-bottom: 0;
|
|
3282
3689
|
}
|
|
3283
3690
|
`;
|
|
3284
|
-
|
|
3691
|
+
Me([
|
|
3285
3692
|
n()
|
|
3286
|
-
],
|
|
3287
|
-
|
|
3693
|
+
], he.prototype, "heading", 2);
|
|
3694
|
+
Me([
|
|
3288
3695
|
n({ type: Boolean, reflect: !0 })
|
|
3289
|
-
],
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
],
|
|
3293
|
-
var
|
|
3294
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3295
|
-
(i =
|
|
3296
|
-
return r && e &&
|
|
3696
|
+
], he.prototype, "open", 2);
|
|
3697
|
+
he = Me([
|
|
3698
|
+
p("vox-accordion-item")
|
|
3699
|
+
], he);
|
|
3700
|
+
var Fo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, Le = (o, t, a, r) => {
|
|
3701
|
+
for (var e = r > 1 ? void 0 : r ? Ko(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
3702
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
3703
|
+
return r && e && Fo(t, a, e), e;
|
|
3297
3704
|
};
|
|
3298
|
-
const
|
|
3705
|
+
const Uo = {
|
|
3299
3706
|
info: "info",
|
|
3300
3707
|
success: "check-circle",
|
|
3301
3708
|
warning: "warning",
|
|
3302
3709
|
danger: "x-circle"
|
|
3303
3710
|
};
|
|
3304
|
-
let
|
|
3711
|
+
let S = class extends h {
|
|
3305
3712
|
constructor() {
|
|
3306
3713
|
super(...arguments), this.variant = "info", this.heading = "", this.dismissible = !1, this.open = !0;
|
|
3307
3714
|
}
|
|
@@ -3323,7 +3730,7 @@ let C = class extends p {
|
|
|
3323
3730
|
stroke-linejoin="round"
|
|
3324
3731
|
aria-hidden="true"
|
|
3325
3732
|
>
|
|
3326
|
-
${
|
|
3733
|
+
${O[Uo[this.variant]]}
|
|
3327
3734
|
</svg>
|
|
3328
3735
|
<div class="body">
|
|
3329
3736
|
${this.heading ? l`<p class="heading">${this.heading}</p>` : v}
|
|
@@ -3340,7 +3747,7 @@ let C = class extends p {
|
|
|
3340
3747
|
`;
|
|
3341
3748
|
}
|
|
3342
3749
|
};
|
|
3343
|
-
|
|
3750
|
+
S.styles = d`
|
|
3344
3751
|
:host {
|
|
3345
3752
|
display: block;
|
|
3346
3753
|
font-family: var(--vox-font-family-base);
|
|
@@ -3459,27 +3866,27 @@ C.styles = d`
|
|
|
3459
3866
|
margin-bottom: 0;
|
|
3460
3867
|
}
|
|
3461
3868
|
`;
|
|
3462
|
-
|
|
3869
|
+
Le([
|
|
3463
3870
|
n()
|
|
3464
|
-
],
|
|
3465
|
-
|
|
3871
|
+
], S.prototype, "variant", 2);
|
|
3872
|
+
Le([
|
|
3466
3873
|
n()
|
|
3467
|
-
],
|
|
3468
|
-
|
|
3874
|
+
], S.prototype, "heading", 2);
|
|
3875
|
+
Le([
|
|
3469
3876
|
n({ type: Boolean })
|
|
3470
|
-
],
|
|
3471
|
-
|
|
3877
|
+
], S.prototype, "dismissible", 2);
|
|
3878
|
+
Le([
|
|
3472
3879
|
n({ type: Boolean, reflect: !0 })
|
|
3473
|
-
],
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
],
|
|
3477
|
-
var
|
|
3478
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3479
|
-
(i =
|
|
3480
|
-
return r && e &&
|
|
3880
|
+
], S.prototype, "open", 2);
|
|
3881
|
+
S = Le([
|
|
3882
|
+
p("vox-alert")
|
|
3883
|
+
], S);
|
|
3884
|
+
var Go = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Dt = (o, t, a, r) => {
|
|
3885
|
+
for (var e = r > 1 ? void 0 : r ? Yo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
3886
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
3887
|
+
return r && e && Go(t, a, e), e;
|
|
3481
3888
|
};
|
|
3482
|
-
let
|
|
3889
|
+
let Ie = class extends h {
|
|
3483
3890
|
constructor() {
|
|
3484
3891
|
super(...arguments), this.variant = "brand";
|
|
3485
3892
|
}
|
|
@@ -3487,7 +3894,7 @@ let Oe = class extends p {
|
|
|
3487
3894
|
return l`<span class="badge ${this.variant}"><slot></slot></span>`;
|
|
3488
3895
|
}
|
|
3489
3896
|
};
|
|
3490
|
-
|
|
3897
|
+
Ie.styles = d`
|
|
3491
3898
|
:host {
|
|
3492
3899
|
display: inline-block;
|
|
3493
3900
|
}
|
|
@@ -3529,23 +3936,23 @@ Oe.styles = d`
|
|
|
3529
3936
|
color: var(--vox-color-text-2);
|
|
3530
3937
|
}
|
|
3531
3938
|
`;
|
|
3532
|
-
|
|
3939
|
+
Dt([
|
|
3533
3940
|
n()
|
|
3534
|
-
],
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
],
|
|
3538
|
-
var
|
|
3539
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3540
|
-
(i =
|
|
3541
|
-
return r && e &&
|
|
3941
|
+
], Ie.prototype, "variant", 2);
|
|
3942
|
+
Ie = Dt([
|
|
3943
|
+
p("vox-badge")
|
|
3944
|
+
], Ie);
|
|
3945
|
+
var Wo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, ft = (o, t, a, r) => {
|
|
3946
|
+
for (var e = r > 1 ? void 0 : r ? Xo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
3947
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
3948
|
+
return r && e && Wo(t, a, e), e;
|
|
3542
3949
|
};
|
|
3543
|
-
let
|
|
3950
|
+
let ve = class extends h {
|
|
3544
3951
|
constructor() {
|
|
3545
3952
|
super(...arguments), this.date = "";
|
|
3546
3953
|
}
|
|
3547
3954
|
render() {
|
|
3548
|
-
const
|
|
3955
|
+
const o = /* @__PURE__ */ new Date(`${this.date}T00:00:00`), t = !Number.isNaN(o.getTime()), a = t ? o.toLocaleString(this.locale, { month: "short" }) : "—", r = t ? o.getDate() : "–";
|
|
3549
3956
|
return l`
|
|
3550
3957
|
<time class="tile" datetime=${this.date}>
|
|
3551
3958
|
<span class="month">${a}</span>
|
|
@@ -3554,7 +3961,7 @@ let oe = class extends p {
|
|
|
3554
3961
|
`;
|
|
3555
3962
|
}
|
|
3556
3963
|
};
|
|
3557
|
-
|
|
3964
|
+
ve.styles = d`
|
|
3558
3965
|
:host {
|
|
3559
3966
|
display: inline-block;
|
|
3560
3967
|
font-family: var(--vox-font-family-base);
|
|
@@ -3590,32 +3997,32 @@ oe.styles = d`
|
|
|
3590
3997
|
color: var(--vox-color-text-1);
|
|
3591
3998
|
}
|
|
3592
3999
|
`;
|
|
3593
|
-
|
|
4000
|
+
ft([
|
|
3594
4001
|
n()
|
|
3595
|
-
],
|
|
3596
|
-
|
|
4002
|
+
], ve.prototype, "date", 2);
|
|
4003
|
+
ft([
|
|
3597
4004
|
n()
|
|
3598
|
-
],
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
],
|
|
3602
|
-
var
|
|
3603
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3604
|
-
(i =
|
|
3605
|
-
return r && e &&
|
|
4005
|
+
], ve.prototype, "locale", 2);
|
|
4006
|
+
ve = ft([
|
|
4007
|
+
p("vox-calendar-tile")
|
|
4008
|
+
], ve);
|
|
4009
|
+
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, gt = (o, t, a, r) => {
|
|
4010
|
+
for (var e = r > 1 ? void 0 : r ? Qo(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
4011
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
4012
|
+
return r && e && Jo(t, a, e), e;
|
|
3606
4013
|
};
|
|
3607
|
-
const
|
|
4014
|
+
const er = {
|
|
3608
4015
|
info: "Info",
|
|
3609
4016
|
tip: "Tip",
|
|
3610
4017
|
warning: "Warning",
|
|
3611
4018
|
danger: "Danger"
|
|
3612
|
-
},
|
|
4019
|
+
}, tr = {
|
|
3613
4020
|
info: "info",
|
|
3614
4021
|
tip: "check-circle",
|
|
3615
4022
|
warning: "warning",
|
|
3616
4023
|
danger: "x-circle"
|
|
3617
4024
|
};
|
|
3618
|
-
let
|
|
4025
|
+
let ue = class extends h {
|
|
3619
4026
|
constructor() {
|
|
3620
4027
|
super(...arguments), this.variant = "info";
|
|
3621
4028
|
}
|
|
@@ -3632,17 +4039,17 @@ let te = class extends p {
|
|
|
3632
4039
|
stroke-linejoin="round"
|
|
3633
4040
|
aria-hidden="true"
|
|
3634
4041
|
>
|
|
3635
|
-
${
|
|
4042
|
+
${O[tr[this.variant]]}
|
|
3636
4043
|
</svg>
|
|
3637
4044
|
<div class="content">
|
|
3638
|
-
<p class="heading">${this.heading ??
|
|
4045
|
+
<p class="heading">${this.heading ?? er[this.variant]}</p>
|
|
3639
4046
|
<slot></slot>
|
|
3640
4047
|
</div>
|
|
3641
4048
|
</div>
|
|
3642
4049
|
`;
|
|
3643
4050
|
}
|
|
3644
4051
|
};
|
|
3645
|
-
|
|
4052
|
+
ue.styles = d`
|
|
3646
4053
|
:host {
|
|
3647
4054
|
display: block;
|
|
3648
4055
|
}
|
|
@@ -3725,38 +4132,38 @@ te.styles = d`
|
|
|
3725
4132
|
margin-bottom: 0;
|
|
3726
4133
|
}
|
|
3727
4134
|
`;
|
|
3728
|
-
|
|
4135
|
+
gt([
|
|
3729
4136
|
n()
|
|
3730
|
-
],
|
|
3731
|
-
|
|
4137
|
+
], ue.prototype, "variant", 2);
|
|
4138
|
+
gt([
|
|
3732
4139
|
n()
|
|
3733
|
-
],
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
],
|
|
3737
|
-
var
|
|
3738
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
3739
|
-
(i =
|
|
3740
|
-
return r && e &&
|
|
4140
|
+
], ue.prototype, "heading", 2);
|
|
4141
|
+
ue = gt([
|
|
4142
|
+
p("vox-callout")
|
|
4143
|
+
], ue);
|
|
4144
|
+
var or = Object.defineProperty, rr = Object.getOwnPropertyDescriptor, We = (o, t, a, r) => {
|
|
4145
|
+
for (var e = r > 1 ? void 0 : r ? rr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
4146
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
4147
|
+
return r && e && or(t, a, e), e;
|
|
3741
4148
|
};
|
|
3742
|
-
let
|
|
4149
|
+
let Y = class extends h {
|
|
3743
4150
|
constructor() {
|
|
3744
4151
|
super(...arguments), this.heading = "", this.hasIcon = !1, this.hasBadge = !1, this.hasFooter = !1;
|
|
3745
4152
|
}
|
|
3746
|
-
handleIconSlotChange(
|
|
3747
|
-
const
|
|
3748
|
-
this.hasIcon =
|
|
4153
|
+
handleIconSlotChange(o) {
|
|
4154
|
+
const t = o.target;
|
|
4155
|
+
this.hasIcon = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3749
4156
|
}
|
|
3750
|
-
handleBadgeSlotChange(
|
|
3751
|
-
const
|
|
3752
|
-
this.hasBadge =
|
|
4157
|
+
handleBadgeSlotChange(o) {
|
|
4158
|
+
const t = o.target;
|
|
4159
|
+
this.hasBadge = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3753
4160
|
}
|
|
3754
|
-
handleFooterSlotChange(
|
|
3755
|
-
const
|
|
3756
|
-
this.hasFooter =
|
|
4161
|
+
handleFooterSlotChange(o) {
|
|
4162
|
+
const t = o.target;
|
|
4163
|
+
this.hasFooter = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3757
4164
|
}
|
|
3758
4165
|
render() {
|
|
3759
|
-
const
|
|
4166
|
+
const o = l`
|
|
3760
4167
|
<div class="badge ${this.hasBadge ? "has-badge" : ""}">
|
|
3761
4168
|
<slot name="badge" @slotchange=${this.handleBadgeSlotChange}></slot>
|
|
3762
4169
|
</div>
|
|
@@ -3769,10 +4176,10 @@ let S = class extends p {
|
|
|
3769
4176
|
<slot name="footer" @slotchange=${this.handleFooterSlotChange}></slot>
|
|
3770
4177
|
</div>
|
|
3771
4178
|
`;
|
|
3772
|
-
return this.href !== void 0 ? l`<a class="card" href=${this.href} target=${this.target ?? v}>${
|
|
4179
|
+
return this.href !== void 0 ? l`<a class="card" href=${this.href} target=${this.target ?? v}>${o}</a>` : l`<div class="card">${o}</div>`;
|
|
3773
4180
|
}
|
|
3774
4181
|
};
|
|
3775
|
-
|
|
4182
|
+
Y.styles = d`
|
|
3776
4183
|
:host {
|
|
3777
4184
|
display: block;
|
|
3778
4185
|
}
|
|
@@ -3857,34 +4264,673 @@ S.styles = d`
|
|
|
3857
4264
|
display: none;
|
|
3858
4265
|
}
|
|
3859
4266
|
`;
|
|
3860
|
-
|
|
4267
|
+
We([
|
|
3861
4268
|
n()
|
|
3862
|
-
],
|
|
3863
|
-
|
|
4269
|
+
], Y.prototype, "heading", 2);
|
|
4270
|
+
We([
|
|
3864
4271
|
n()
|
|
3865
|
-
],
|
|
3866
|
-
|
|
4272
|
+
], Y.prototype, "href", 2);
|
|
4273
|
+
We([
|
|
3867
4274
|
n()
|
|
3868
|
-
],
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
],
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
return
|
|
4275
|
+
], Y.prototype, "target", 2);
|
|
4276
|
+
Y = We([
|
|
4277
|
+
p("vox-card")
|
|
4278
|
+
], Y);
|
|
4279
|
+
function At(o, t) {
|
|
4280
|
+
let a = t;
|
|
4281
|
+
for (; a < o.length && (o[a] === " " || o[a] === " "); ) a++;
|
|
4282
|
+
return a;
|
|
4283
|
+
}
|
|
4284
|
+
function N(o, t) {
|
|
4285
|
+
return {
|
|
4286
|
+
re: o,
|
|
4287
|
+
type: (a, r, e) => t.has(a) ? "keyword" : r[At(r, e)] === "(" ? "function" : "plain"
|
|
4288
|
+
};
|
|
4289
|
+
}
|
|
4290
|
+
function st(o) {
|
|
4291
|
+
return {
|
|
4292
|
+
re: o,
|
|
4293
|
+
type: (t, a, r) => a[At(a, r)] === ":" ? "property" : "string"
|
|
4294
|
+
};
|
|
4295
|
+
}
|
|
4296
|
+
const Pe = /-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/y, V = /"(?:\\.|[^"\\])*"/y, T = /'(?:\\.|[^'\\])*'/y, Xe = /#.*/y, ar = /\/\/.*/y, St = /\/\*[\s\S]*?\*\//y;
|
|
4297
|
+
function kt(o, t, a) {
|
|
4298
|
+
const r = o[o.length - 1];
|
|
4299
|
+
r && r.type === t ? r.text += a : o.push({ type: t, text: a });
|
|
4300
|
+
}
|
|
4301
|
+
function sr(o, t) {
|
|
4302
|
+
const a = [];
|
|
4303
|
+
let r = 0;
|
|
4304
|
+
for (; r < o.length; ) {
|
|
4305
|
+
let e = !1;
|
|
4306
|
+
for (const s of t) {
|
|
4307
|
+
s.re.lastIndex = r;
|
|
4308
|
+
const i = s.re.exec(o);
|
|
4309
|
+
if (i && i.index === r && i[0].length > 0) {
|
|
4310
|
+
const z = i[0], ze = typeof s.type == "function" ? s.type(z, o, r + z.length) : s.type;
|
|
4311
|
+
kt(a, ze, z), r += z.length, e = !0;
|
|
4312
|
+
break;
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
e || (kt(a, "plain", o[r]), r++);
|
|
4316
|
+
}
|
|
4317
|
+
return a;
|
|
4318
|
+
}
|
|
4319
|
+
const ir = /* @__PURE__ */ new Set([
|
|
4320
|
+
"if",
|
|
4321
|
+
"then",
|
|
4322
|
+
"elif",
|
|
4323
|
+
"else",
|
|
4324
|
+
"fi",
|
|
4325
|
+
"for",
|
|
4326
|
+
"while",
|
|
4327
|
+
"until",
|
|
4328
|
+
"do",
|
|
4329
|
+
"done",
|
|
4330
|
+
"case",
|
|
4331
|
+
"esac",
|
|
4332
|
+
"in",
|
|
4333
|
+
"function",
|
|
4334
|
+
"select",
|
|
4335
|
+
"time",
|
|
4336
|
+
"return",
|
|
4337
|
+
"exit",
|
|
4338
|
+
"break",
|
|
4339
|
+
"continue",
|
|
4340
|
+
"local",
|
|
4341
|
+
"export",
|
|
4342
|
+
"readonly",
|
|
4343
|
+
"declare",
|
|
4344
|
+
"unset",
|
|
4345
|
+
"shift",
|
|
4346
|
+
"eval",
|
|
4347
|
+
"exec",
|
|
4348
|
+
"trap",
|
|
4349
|
+
"set",
|
|
4350
|
+
"source",
|
|
4351
|
+
"alias",
|
|
4352
|
+
"unalias",
|
|
4353
|
+
"true",
|
|
4354
|
+
"false"
|
|
4355
|
+
]), Ee = [
|
|
4356
|
+
{ re: Xe, type: "comment" },
|
|
4357
|
+
{ re: /\$\{[^}]*\}|\$[A-Za-z_]\w*|\$[0-9@#?$!*_-]/y, type: "function" },
|
|
4358
|
+
{ re: V, type: "string" },
|
|
4359
|
+
{ re: T, type: "string" },
|
|
4360
|
+
{ re: Pe, type: "number" },
|
|
4361
|
+
N(/[A-Za-z_][\w-]*/y, ir)
|
|
4362
|
+
], nr = /* @__PURE__ */ new Set([
|
|
4363
|
+
"true",
|
|
4364
|
+
"false",
|
|
4365
|
+
"yes",
|
|
4366
|
+
"no",
|
|
4367
|
+
"null",
|
|
4368
|
+
"on",
|
|
4369
|
+
"off",
|
|
4370
|
+
"True",
|
|
4371
|
+
"False",
|
|
4372
|
+
"Yes",
|
|
4373
|
+
"No",
|
|
4374
|
+
"Null",
|
|
4375
|
+
"On",
|
|
4376
|
+
"Off",
|
|
4377
|
+
"TRUE",
|
|
4378
|
+
"FALSE",
|
|
4379
|
+
"YES",
|
|
4380
|
+
"NO",
|
|
4381
|
+
"NULL",
|
|
4382
|
+
"ON",
|
|
4383
|
+
"OFF"
|
|
4384
|
+
]), Ot = [
|
|
4385
|
+
{ re: Xe, type: "comment" },
|
|
4386
|
+
st(V),
|
|
4387
|
+
st(T),
|
|
4388
|
+
{ re: /[A-Za-z_][\w .-]*?(?=:(\s|$))/y, type: "property" },
|
|
4389
|
+
{ re: /[&*!][A-Za-z_][\w:.]*/y, type: "function" },
|
|
4390
|
+
{ re: Pe, type: "number" },
|
|
4391
|
+
N(/[A-Za-z_][\w-]*/y, nr)
|
|
4392
|
+
], lr = [
|
|
4393
|
+
st(V),
|
|
4394
|
+
{ re: Pe, type: "number" },
|
|
4395
|
+
N(/[A-Za-z_]\w*/y, /* @__PURE__ */ new Set(["true", "false", "null"]))
|
|
4396
|
+
], cr = /* @__PURE__ */ new Set([
|
|
4397
|
+
"const",
|
|
4398
|
+
"let",
|
|
4399
|
+
"var",
|
|
4400
|
+
"function",
|
|
4401
|
+
"return",
|
|
4402
|
+
"if",
|
|
4403
|
+
"else",
|
|
4404
|
+
"for",
|
|
4405
|
+
"while",
|
|
4406
|
+
"do",
|
|
4407
|
+
"switch",
|
|
4408
|
+
"case",
|
|
4409
|
+
"default",
|
|
4410
|
+
"break",
|
|
4411
|
+
"continue",
|
|
4412
|
+
"class",
|
|
4413
|
+
"extends",
|
|
4414
|
+
"super",
|
|
4415
|
+
"new",
|
|
4416
|
+
"this",
|
|
4417
|
+
"import",
|
|
4418
|
+
"export",
|
|
4419
|
+
"from",
|
|
4420
|
+
"as",
|
|
4421
|
+
"async",
|
|
4422
|
+
"await",
|
|
4423
|
+
"try",
|
|
4424
|
+
"catch",
|
|
4425
|
+
"finally",
|
|
4426
|
+
"throw",
|
|
4427
|
+
"typeof",
|
|
4428
|
+
"instanceof",
|
|
4429
|
+
"in",
|
|
4430
|
+
"of",
|
|
4431
|
+
"yield",
|
|
4432
|
+
"static",
|
|
4433
|
+
"get",
|
|
4434
|
+
"set",
|
|
4435
|
+
"void",
|
|
4436
|
+
"delete",
|
|
4437
|
+
"null",
|
|
4438
|
+
"undefined",
|
|
4439
|
+
"true",
|
|
4440
|
+
"false",
|
|
4441
|
+
"public",
|
|
4442
|
+
"private",
|
|
4443
|
+
"protected",
|
|
4444
|
+
"readonly",
|
|
4445
|
+
"interface",
|
|
4446
|
+
"type",
|
|
4447
|
+
"enum",
|
|
4448
|
+
"implements",
|
|
4449
|
+
"namespace",
|
|
4450
|
+
"declare",
|
|
4451
|
+
"abstract",
|
|
4452
|
+
"keyof",
|
|
4453
|
+
"satisfies"
|
|
4454
|
+
]), De = [
|
|
4455
|
+
{ re: ar, type: "comment" },
|
|
4456
|
+
{ re: St, type: "comment" },
|
|
4457
|
+
{ re: V, type: "string" },
|
|
4458
|
+
{ re: T, type: "string" },
|
|
4459
|
+
{ re: /`(?:\\.|[^`\\])*`/y, type: "string" },
|
|
4460
|
+
{ re: /-?\b0[xXbBoO][0-9a-fA-F]+\b|-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/y, type: "number" },
|
|
4461
|
+
N(/[A-Za-z_$][\w$]*/y, cr)
|
|
4462
|
+
], dr = [
|
|
4463
|
+
{ re: St, type: "comment" },
|
|
4464
|
+
{ re: V, type: "string" },
|
|
4465
|
+
{ re: T, type: "string" },
|
|
4466
|
+
{ re: /@[\w-]+/y, type: "keyword" },
|
|
4467
|
+
{ re: /!important/y, type: "keyword" },
|
|
4468
|
+
{ re: /#[0-9a-fA-F]{3,8}\b/y, type: "number" },
|
|
4469
|
+
{ re: /-?\b\d+\.?\d*[a-zA-Z%]*\b/y, type: "number" },
|
|
4470
|
+
{ re: /[a-zA-Z-]+(?=\s*:)/y, type: "property" },
|
|
4471
|
+
N(/[a-zA-Z-]+/y, /* @__PURE__ */ new Set())
|
|
4472
|
+
], Mt = [
|
|
4473
|
+
{ re: /<!--[\s\S]*?-->/y, type: "comment" },
|
|
4474
|
+
{ re: /<\/?[a-zA-Z][\w:-]*/y, type: "tag" },
|
|
4475
|
+
{ re: /[a-zA-Z-][\w-]*(?=\s*=)/y, type: "property" },
|
|
4476
|
+
{ re: V, type: "string" },
|
|
4477
|
+
{ re: T, type: "string" },
|
|
4478
|
+
{ re: /&[\w#]+;/y, type: "keyword" }
|
|
4479
|
+
], pr = /* @__PURE__ */ new Set([
|
|
4480
|
+
"def",
|
|
4481
|
+
"end",
|
|
4482
|
+
"if",
|
|
4483
|
+
"elsif",
|
|
4484
|
+
"else",
|
|
4485
|
+
"unless",
|
|
4486
|
+
"while",
|
|
4487
|
+
"until",
|
|
4488
|
+
"for",
|
|
4489
|
+
"in",
|
|
4490
|
+
"do",
|
|
4491
|
+
"class",
|
|
4492
|
+
"module",
|
|
4493
|
+
"begin",
|
|
4494
|
+
"rescue",
|
|
4495
|
+
"ensure",
|
|
4496
|
+
"raise",
|
|
4497
|
+
"return",
|
|
4498
|
+
"yield",
|
|
4499
|
+
"break",
|
|
4500
|
+
"next",
|
|
4501
|
+
"redo",
|
|
4502
|
+
"retry",
|
|
4503
|
+
"case",
|
|
4504
|
+
"when",
|
|
4505
|
+
"then",
|
|
4506
|
+
"and",
|
|
4507
|
+
"or",
|
|
4508
|
+
"not",
|
|
4509
|
+
"nil",
|
|
4510
|
+
"true",
|
|
4511
|
+
"false",
|
|
4512
|
+
"self",
|
|
4513
|
+
"super",
|
|
4514
|
+
"require",
|
|
4515
|
+
"require_relative",
|
|
4516
|
+
"include",
|
|
4517
|
+
"extend",
|
|
4518
|
+
"attr_accessor",
|
|
4519
|
+
"attr_reader",
|
|
4520
|
+
"attr_writer",
|
|
4521
|
+
"private",
|
|
4522
|
+
"protected",
|
|
4523
|
+
"public",
|
|
4524
|
+
"lambda",
|
|
4525
|
+
"proc",
|
|
4526
|
+
"new"
|
|
4527
|
+
]), Lt = [
|
|
4528
|
+
{ re: Xe, type: "comment" },
|
|
4529
|
+
{ re: /:[A-Za-z_]\w*[?!]?/y, type: "string" },
|
|
4530
|
+
{ re: /@{1,2}[A-Za-z_]\w*|\$[A-Za-z_]\w*/y, type: "function" },
|
|
4531
|
+
{ re: V, type: "string" },
|
|
4532
|
+
{ re: T, type: "string" },
|
|
4533
|
+
{ re: Pe, type: "number" },
|
|
4534
|
+
{ re: /[A-Z]\w*/y, type: "property" },
|
|
4535
|
+
N(/[a-z_]\w*[?!]?/y, pr)
|
|
4536
|
+
], hr = /* @__PURE__ */ new Set([
|
|
4537
|
+
"class",
|
|
4538
|
+
"define",
|
|
4539
|
+
"node",
|
|
4540
|
+
"inherits",
|
|
4541
|
+
"if",
|
|
4542
|
+
"elsif",
|
|
4543
|
+
"else",
|
|
4544
|
+
"unless",
|
|
4545
|
+
"case",
|
|
4546
|
+
"and",
|
|
4547
|
+
"or",
|
|
4548
|
+
"in",
|
|
4549
|
+
"undef",
|
|
4550
|
+
"true",
|
|
4551
|
+
"false",
|
|
4552
|
+
"default",
|
|
4553
|
+
"import",
|
|
4554
|
+
"include",
|
|
4555
|
+
"require",
|
|
4556
|
+
"contain",
|
|
4557
|
+
"function",
|
|
4558
|
+
"type",
|
|
4559
|
+
"application",
|
|
4560
|
+
"produces",
|
|
4561
|
+
"consumes",
|
|
4562
|
+
"private",
|
|
4563
|
+
"return",
|
|
4564
|
+
"break",
|
|
4565
|
+
"next",
|
|
4566
|
+
"each",
|
|
4567
|
+
"map",
|
|
4568
|
+
"filter",
|
|
4569
|
+
"reduce",
|
|
4570
|
+
"with",
|
|
4571
|
+
"String",
|
|
4572
|
+
"Integer",
|
|
4573
|
+
"Boolean",
|
|
4574
|
+
"Array",
|
|
4575
|
+
"Hash",
|
|
4576
|
+
"Optional",
|
|
4577
|
+
"Enum",
|
|
4578
|
+
"Variant",
|
|
4579
|
+
"Numeric",
|
|
4580
|
+
"Float",
|
|
4581
|
+
"Undef",
|
|
4582
|
+
"Any",
|
|
4583
|
+
"Pattern",
|
|
4584
|
+
"Regexp",
|
|
4585
|
+
"Sensitive",
|
|
4586
|
+
"Struct",
|
|
4587
|
+
"Tuple",
|
|
4588
|
+
"Type",
|
|
4589
|
+
"Callable",
|
|
4590
|
+
"Data",
|
|
4591
|
+
"Scalar"
|
|
4592
|
+
]), Pt = [
|
|
4593
|
+
{ re: Xe, type: "comment" },
|
|
4594
|
+
{ re: V, type: "string" },
|
|
4595
|
+
{ re: T, type: "string" },
|
|
4596
|
+
{ re: /\$[\w:]+/y, type: "function" },
|
|
4597
|
+
{ re: /[a-zA-Z_][\w:]*(?=\s*\{)/y, type: "tag" },
|
|
4598
|
+
{ re: /[a-z_]\w*(?=\s*=>)/y, type: "property" },
|
|
4599
|
+
{ re: Pe, type: "number" },
|
|
4600
|
+
N(/[A-Za-z_][\w:]*/y, hr)
|
|
4601
|
+
], vr = {
|
|
4602
|
+
bash: Ee,
|
|
4603
|
+
sh: Ee,
|
|
4604
|
+
shell: Ee,
|
|
4605
|
+
zsh: Ee,
|
|
4606
|
+
yaml: Ot,
|
|
4607
|
+
yml: Ot,
|
|
4608
|
+
json: lr,
|
|
4609
|
+
javascript: De,
|
|
4610
|
+
js: De,
|
|
4611
|
+
typescript: De,
|
|
4612
|
+
ts: De,
|
|
4613
|
+
css: dr,
|
|
4614
|
+
html: Mt,
|
|
4615
|
+
xml: Mt,
|
|
4616
|
+
ruby: Lt,
|
|
4617
|
+
rb: Lt,
|
|
4618
|
+
puppet: Pt,
|
|
4619
|
+
pp: Pt
|
|
4620
|
+
}, ur = {
|
|
4621
|
+
bash: "Bash",
|
|
4622
|
+
sh: "Shell",
|
|
4623
|
+
shell: "Shell",
|
|
4624
|
+
zsh: "Zsh",
|
|
4625
|
+
yaml: "YAML",
|
|
4626
|
+
yml: "YAML",
|
|
4627
|
+
json: "JSON",
|
|
4628
|
+
javascript: "JavaScript",
|
|
4629
|
+
js: "JavaScript",
|
|
4630
|
+
typescript: "TypeScript",
|
|
4631
|
+
ts: "TypeScript",
|
|
4632
|
+
css: "CSS",
|
|
4633
|
+
html: "HTML",
|
|
4634
|
+
xml: "XML",
|
|
4635
|
+
ruby: "Ruby",
|
|
4636
|
+
rb: "Ruby",
|
|
4637
|
+
puppet: "Puppet",
|
|
4638
|
+
pp: "Puppet",
|
|
4639
|
+
plaintext: "Plain Text",
|
|
4640
|
+
text: "Plain Text"
|
|
4641
|
+
};
|
|
4642
|
+
function xr(o, t) {
|
|
4643
|
+
const a = vr[t];
|
|
4644
|
+
return a ? sr(o, a) : [{ type: "plain", text: o }];
|
|
4645
|
+
}
|
|
4646
|
+
var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, k = (o, t, a, r) => {
|
|
4647
|
+
for (var e = r > 1 ? void 0 : r ? gr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
4648
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
4649
|
+
return r && e && fr(t, a, e), e;
|
|
4650
|
+
};
|
|
4651
|
+
function br(o) {
|
|
4652
|
+
const t = o.split(`
|
|
4653
|
+
`);
|
|
4654
|
+
for (; t.length && t[0].trim() === ""; ) t.shift();
|
|
4655
|
+
for (; t.length && t[t.length - 1].trim() === ""; ) t.pop();
|
|
4656
|
+
const a = t.filter((e) => e.trim() !== "").map((e) => {
|
|
4657
|
+
var s;
|
|
4658
|
+
return ((s = e.match(/^[ \t]*/)) == null ? void 0 : s[0].length) ?? 0;
|
|
4659
|
+
}), r = a.length ? Math.min(...a) : 0;
|
|
4660
|
+
return t.map((e) => e.slice(r)).join(`
|
|
4661
|
+
`);
|
|
4662
|
+
}
|
|
4663
|
+
function yr(o) {
|
|
4664
|
+
const t = [[]];
|
|
4665
|
+
for (const a of o)
|
|
4666
|
+
a.text.split(`
|
|
4667
|
+
`).forEach((r, e) => {
|
|
4668
|
+
e > 0 && t.push([]), r && t[t.length - 1].push({ type: a.type, text: r });
|
|
4669
|
+
});
|
|
4670
|
+
return t;
|
|
4671
|
+
}
|
|
4672
|
+
let y = class extends h {
|
|
4673
|
+
constructor() {
|
|
4674
|
+
super(...arguments), this.language = "", this.filename = "", this.lineNumbers = !1, this.noCopy = !1, this.noHeader = !1, this.noBorder = !1, this._code = "", this._copied = !1;
|
|
4675
|
+
}
|
|
4676
|
+
disconnectedCallback() {
|
|
4677
|
+
super.disconnectedCallback(), clearTimeout(this._copyResetTimer);
|
|
4678
|
+
}
|
|
4679
|
+
_handleSlotChange(o) {
|
|
4680
|
+
const a = o.target.assignedNodes({ flatten: !0 }).map((r) => r.textContent ?? "").join("");
|
|
4681
|
+
this._code = br(a);
|
|
4682
|
+
}
|
|
4683
|
+
async _copy() {
|
|
4684
|
+
var o;
|
|
4685
|
+
try {
|
|
4686
|
+
await navigator.clipboard.writeText(this._code);
|
|
4687
|
+
} catch {
|
|
4688
|
+
const t = document.createElement("textarea");
|
|
4689
|
+
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();
|
|
4690
|
+
}
|
|
4691
|
+
this._copied = !0, clearTimeout(this._copyResetTimer), this._copyResetTimer = setTimeout(() => {
|
|
4692
|
+
this._copied = !1;
|
|
4693
|
+
}, 1500);
|
|
4694
|
+
}
|
|
4695
|
+
render() {
|
|
4696
|
+
const o = ur[this.language] ?? this.language, t = yr(xr(this._code, this.language));
|
|
4697
|
+
return l`
|
|
4698
|
+
<div class="block">
|
|
4699
|
+
${this.noHeader ? v : l`
|
|
4700
|
+
<div class="header">
|
|
4701
|
+
<span class="meta">
|
|
4702
|
+
${this.filename ? l`<span class="filename">${this.filename}</span>` : v}
|
|
4703
|
+
${o ? l`<span class="lang">${o}</span>` : v}
|
|
4704
|
+
</span>
|
|
4705
|
+
${this.noCopy ? v : l`
|
|
4706
|
+
<button
|
|
4707
|
+
class="copy"
|
|
4708
|
+
type="button"
|
|
4709
|
+
@click=${this._copy}
|
|
4710
|
+
aria-label=${this._copied ? "Copied" : "Copy code"}
|
|
4711
|
+
>
|
|
4712
|
+
<svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
4713
|
+
${O[this._copied ? "check" : "copy"]}
|
|
4714
|
+
</svg>
|
|
4715
|
+
</button>
|
|
4716
|
+
`}
|
|
4717
|
+
</div>
|
|
4718
|
+
`}
|
|
4719
|
+
<pre tabindex="0"><code>${t.map(
|
|
4720
|
+
(a) => l`<span class="line">${a.map(
|
|
4721
|
+
(r) => r.type === "plain" ? r.text : l`<span class="tok-${r.type}">${r.text}</span>`
|
|
4722
|
+
)}</span>`
|
|
4723
|
+
)}</code></pre>
|
|
4724
|
+
<span class="visually-hidden" aria-live="polite">${this._copied ? "Copied to clipboard" : ""}</span>
|
|
4725
|
+
</div>
|
|
4726
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
4727
|
+
`;
|
|
4728
|
+
}
|
|
4729
|
+
};
|
|
4730
|
+
y.styles = d`
|
|
4731
|
+
:host {
|
|
4732
|
+
display: block;
|
|
4733
|
+
font-family: var(--vox-font-family-base);
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4736
|
+
.block {
|
|
4737
|
+
border: 1px solid var(--vox-color-border);
|
|
4738
|
+
border-radius: var(--vox-radius-md);
|
|
4739
|
+
background-color: var(--vox-color-bg-alt);
|
|
4740
|
+
overflow: hidden;
|
|
4741
|
+
}
|
|
4742
|
+
|
|
4743
|
+
:host([no-border]) .block {
|
|
4744
|
+
border: none;
|
|
4745
|
+
}
|
|
4746
|
+
|
|
4747
|
+
.header {
|
|
4748
|
+
display: flex;
|
|
4749
|
+
align-items: center;
|
|
4750
|
+
justify-content: space-between;
|
|
4751
|
+
gap: var(--vox-space-3);
|
|
4752
|
+
padding: var(--vox-space-2) var(--vox-space-2) var(--vox-space-2) var(--vox-space-4);
|
|
4753
|
+
border-bottom: 1px solid var(--vox-color-divider);
|
|
4754
|
+
font-size: 12px;
|
|
4755
|
+
}
|
|
4756
|
+
|
|
4757
|
+
.meta {
|
|
4758
|
+
display: flex;
|
|
4759
|
+
align-items: baseline;
|
|
4760
|
+
gap: var(--vox-space-3);
|
|
4761
|
+
min-width: 0;
|
|
4762
|
+
overflow: hidden;
|
|
4763
|
+
color: var(--vox-color-text-2);
|
|
4764
|
+
}
|
|
4765
|
+
|
|
4766
|
+
.filename {
|
|
4767
|
+
color: var(--vox-color-text-1);
|
|
4768
|
+
font-family: var(--vox-font-family-mono);
|
|
4769
|
+
font-weight: 600;
|
|
4770
|
+
white-space: nowrap;
|
|
4771
|
+
overflow: hidden;
|
|
4772
|
+
text-overflow: ellipsis;
|
|
4773
|
+
}
|
|
4774
|
+
|
|
4775
|
+
.lang {
|
|
4776
|
+
flex: none;
|
|
4777
|
+
text-transform: uppercase;
|
|
4778
|
+
letter-spacing: 0.04em;
|
|
4779
|
+
}
|
|
4780
|
+
|
|
4781
|
+
.copy {
|
|
4782
|
+
flex: none;
|
|
4783
|
+
display: inline-flex;
|
|
4784
|
+
align-items: center;
|
|
4785
|
+
justify-content: center;
|
|
4786
|
+
width: 28px;
|
|
4787
|
+
height: 28px;
|
|
4788
|
+
padding: 0;
|
|
4789
|
+
border: none;
|
|
4790
|
+
border-radius: var(--vox-radius-sm);
|
|
4791
|
+
background: none;
|
|
4792
|
+
color: var(--vox-color-text-2);
|
|
4793
|
+
cursor: pointer;
|
|
4794
|
+
}
|
|
4795
|
+
|
|
4796
|
+
.copy:hover {
|
|
4797
|
+
background-color: var(--vox-color-brand-soft);
|
|
4798
|
+
color: var(--vox-color-brand-1);
|
|
4799
|
+
}
|
|
4800
|
+
|
|
4801
|
+
.copy:focus-visible {
|
|
4802
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
4803
|
+
outline-offset: 2px;
|
|
4804
|
+
}
|
|
4805
|
+
|
|
4806
|
+
.copy svg {
|
|
4807
|
+
width: 15px;
|
|
4808
|
+
height: 15px;
|
|
4809
|
+
}
|
|
4810
|
+
|
|
4811
|
+
pre {
|
|
4812
|
+
margin: 0;
|
|
4813
|
+
padding: var(--vox-space-4);
|
|
4814
|
+
overflow-x: auto;
|
|
4815
|
+
white-space: pre;
|
|
4816
|
+
tab-size: 2;
|
|
4817
|
+
}
|
|
4818
|
+
|
|
4819
|
+
pre:focus-visible {
|
|
4820
|
+
outline: 2px solid var(--vox-color-brand-1);
|
|
4821
|
+
outline-offset: -2px;
|
|
4822
|
+
}
|
|
4823
|
+
|
|
4824
|
+
code {
|
|
4825
|
+
font-family: var(--vox-font-family-mono);
|
|
4826
|
+
font-size: 13px;
|
|
4827
|
+
line-height: 1.7;
|
|
4828
|
+
color: var(--vox-color-text-1);
|
|
4829
|
+
}
|
|
4830
|
+
|
|
4831
|
+
.line {
|
|
4832
|
+
display: block;
|
|
4833
|
+
}
|
|
4834
|
+
|
|
4835
|
+
:host([line-numbers]) code {
|
|
4836
|
+
counter-reset: line;
|
|
4837
|
+
}
|
|
4838
|
+
|
|
4839
|
+
:host([line-numbers]) .line {
|
|
4840
|
+
padding-left: 3.5ch;
|
|
4841
|
+
position: relative;
|
|
4842
|
+
}
|
|
4843
|
+
|
|
4844
|
+
:host([line-numbers]) .line::before {
|
|
4845
|
+
counter-increment: line;
|
|
4846
|
+
content: counter(line);
|
|
4847
|
+
position: absolute;
|
|
4848
|
+
left: 0;
|
|
4849
|
+
width: 2.5ch;
|
|
4850
|
+
text-align: right;
|
|
4851
|
+
color: var(--vox-color-text-3);
|
|
4852
|
+
user-select: none;
|
|
4853
|
+
}
|
|
4854
|
+
|
|
4855
|
+
.tok-comment {
|
|
4856
|
+
color: var(--vox-code-comment);
|
|
4857
|
+
font-style: italic;
|
|
4858
|
+
}
|
|
4859
|
+
.tok-keyword {
|
|
4860
|
+
color: var(--vox-code-keyword);
|
|
4861
|
+
}
|
|
4862
|
+
.tok-string {
|
|
4863
|
+
color: var(--vox-code-string);
|
|
4864
|
+
}
|
|
4865
|
+
.tok-number {
|
|
4866
|
+
color: var(--vox-code-number);
|
|
4867
|
+
}
|
|
4868
|
+
.tok-function {
|
|
4869
|
+
color: var(--vox-code-function);
|
|
4870
|
+
}
|
|
4871
|
+
.tok-property {
|
|
4872
|
+
color: var(--vox-code-property);
|
|
4873
|
+
}
|
|
4874
|
+
.tok-tag {
|
|
4875
|
+
color: var(--vox-code-tag);
|
|
4876
|
+
}
|
|
4877
|
+
|
|
4878
|
+
slot {
|
|
4879
|
+
display: none;
|
|
4880
|
+
}
|
|
4881
|
+
|
|
4882
|
+
.visually-hidden {
|
|
4883
|
+
position: absolute;
|
|
4884
|
+
width: 1px;
|
|
4885
|
+
height: 1px;
|
|
4886
|
+
overflow: hidden;
|
|
4887
|
+
clip: rect(0 0 0 0);
|
|
4888
|
+
white-space: nowrap;
|
|
4889
|
+
}
|
|
4890
|
+
`;
|
|
4891
|
+
k([
|
|
4892
|
+
n()
|
|
4893
|
+
], y.prototype, "language", 2);
|
|
4894
|
+
k([
|
|
4895
|
+
n()
|
|
4896
|
+
], y.prototype, "filename", 2);
|
|
4897
|
+
k([
|
|
4898
|
+
n({ type: Boolean, attribute: "line-numbers", reflect: !0 })
|
|
4899
|
+
], y.prototype, "lineNumbers", 2);
|
|
4900
|
+
k([
|
|
4901
|
+
n({ type: Boolean, attribute: "no-copy" })
|
|
4902
|
+
], y.prototype, "noCopy", 2);
|
|
4903
|
+
k([
|
|
4904
|
+
n({ type: Boolean, attribute: "no-header" })
|
|
4905
|
+
], y.prototype, "noHeader", 2);
|
|
4906
|
+
k([
|
|
4907
|
+
n({ type: Boolean, attribute: "no-border", reflect: !0 })
|
|
4908
|
+
], y.prototype, "noBorder", 2);
|
|
4909
|
+
k([
|
|
4910
|
+
$()
|
|
4911
|
+
], y.prototype, "_code", 2);
|
|
4912
|
+
k([
|
|
4913
|
+
$()
|
|
4914
|
+
], y.prototype, "_copied", 2);
|
|
4915
|
+
y = k([
|
|
4916
|
+
p("vox-code-block")
|
|
4917
|
+
], y);
|
|
4918
|
+
var mr = Object.defineProperty, wr = Object.getOwnPropertyDescriptor, Ht = (o, t, a, r) => {
|
|
4919
|
+
for (var e = r > 1 ? void 0 : r ? wr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
4920
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
4921
|
+
return r && e && mr(t, a, e), e;
|
|
3876
4922
|
};
|
|
3877
|
-
let
|
|
4923
|
+
let qe = class extends h {
|
|
3878
4924
|
constructor() {
|
|
3879
4925
|
super(...arguments), this.heading = "", this.hasBody = !1, this.hasActions = !1;
|
|
3880
4926
|
}
|
|
3881
|
-
handleBodySlotChange(
|
|
3882
|
-
const
|
|
3883
|
-
this.hasBody =
|
|
4927
|
+
handleBodySlotChange(o) {
|
|
4928
|
+
const t = o.target;
|
|
4929
|
+
this.hasBody = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3884
4930
|
}
|
|
3885
|
-
handleActionsSlotChange(
|
|
3886
|
-
const
|
|
3887
|
-
this.hasActions =
|
|
4931
|
+
handleActionsSlotChange(o) {
|
|
4932
|
+
const t = o.target;
|
|
4933
|
+
this.hasActions = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
3888
4934
|
}
|
|
3889
4935
|
render() {
|
|
3890
4936
|
return l`
|
|
@@ -3900,7 +4946,7 @@ let ke = class extends p {
|
|
|
3900
4946
|
`;
|
|
3901
4947
|
}
|
|
3902
4948
|
};
|
|
3903
|
-
|
|
4949
|
+
qe.styles = d`
|
|
3904
4950
|
:host {
|
|
3905
4951
|
display: block;
|
|
3906
4952
|
font-family: var(--vox-font-family-base);
|
|
@@ -3955,79 +5001,18 @@ ke.styles = d`
|
|
|
3955
5001
|
display: none;
|
|
3956
5002
|
}
|
|
3957
5003
|
`;
|
|
3958
|
-
|
|
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([
|
|
5004
|
+
Ht([
|
|
4020
5005
|
n()
|
|
4021
|
-
],
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
],
|
|
4025
|
-
var
|
|
4026
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4027
|
-
(i =
|
|
4028
|
-
return r && e &&
|
|
5006
|
+
], qe.prototype, "heading", 2);
|
|
5007
|
+
qe = Ht([
|
|
5008
|
+
p("vox-cta-band")
|
|
5009
|
+
], qe);
|
|
5010
|
+
var $r = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Bt = (o, t, a, r) => {
|
|
5011
|
+
for (var e = r > 1 ? void 0 : r ? _r(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5012
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5013
|
+
return r && e && $r(t, a, e), e;
|
|
4029
5014
|
};
|
|
4030
|
-
let
|
|
5015
|
+
let Ne = class extends h {
|
|
4031
5016
|
constructor() {
|
|
4032
5017
|
super(...arguments), this.heading = "";
|
|
4033
5018
|
}
|
|
@@ -4042,7 +5027,7 @@ let Le = class extends p {
|
|
|
4042
5027
|
`;
|
|
4043
5028
|
}
|
|
4044
5029
|
};
|
|
4045
|
-
|
|
5030
|
+
Ne.styles = d`
|
|
4046
5031
|
:host {
|
|
4047
5032
|
display: block;
|
|
4048
5033
|
font-family: var(--vox-font-family-base);
|
|
@@ -4086,18 +5071,18 @@ Le.styles = d`
|
|
|
4086
5071
|
margin-top: var(--vox-space-4);
|
|
4087
5072
|
}
|
|
4088
5073
|
`;
|
|
4089
|
-
|
|
5074
|
+
Bt([
|
|
4090
5075
|
n()
|
|
4091
|
-
],
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
],
|
|
4095
|
-
var
|
|
4096
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4097
|
-
(i =
|
|
4098
|
-
return r && e &&
|
|
5076
|
+
], Ne.prototype, "heading", 2);
|
|
5077
|
+
Ne = Bt([
|
|
5078
|
+
p("vox-empty-state")
|
|
5079
|
+
], Ne);
|
|
5080
|
+
var Cr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, bt = (o, t, a, r) => {
|
|
5081
|
+
for (var e = r > 1 ? void 0 : r ? kr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5082
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5083
|
+
return r && e && Cr(t, a, e), e;
|
|
4099
5084
|
};
|
|
4100
|
-
let
|
|
5085
|
+
let it = class extends h {
|
|
4101
5086
|
render() {
|
|
4102
5087
|
return l`
|
|
4103
5088
|
<footer>
|
|
@@ -4109,7 +5094,7 @@ let Ue = class extends p {
|
|
|
4109
5094
|
`;
|
|
4110
5095
|
}
|
|
4111
5096
|
};
|
|
4112
|
-
|
|
5097
|
+
it.styles = d`
|
|
4113
5098
|
:host {
|
|
4114
5099
|
display: block;
|
|
4115
5100
|
font-family: var(--vox-font-family-base);
|
|
@@ -4137,10 +5122,10 @@ Ue.styles = d`
|
|
|
4137
5122
|
color: var(--vox-color-text-3);
|
|
4138
5123
|
}
|
|
4139
5124
|
`;
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
],
|
|
4143
|
-
let
|
|
5125
|
+
it = bt([
|
|
5126
|
+
p("vox-footer")
|
|
5127
|
+
], it);
|
|
5128
|
+
let Te = class extends h {
|
|
4144
5129
|
constructor() {
|
|
4145
5130
|
super(...arguments), this.heading = "";
|
|
4146
5131
|
}
|
|
@@ -4151,7 +5136,7 @@ let Ve = class extends p {
|
|
|
4151
5136
|
`;
|
|
4152
5137
|
}
|
|
4153
5138
|
};
|
|
4154
|
-
|
|
5139
|
+
Te.styles = d`
|
|
4155
5140
|
:host {
|
|
4156
5141
|
display: block;
|
|
4157
5142
|
font-family: var(--vox-font-family-base);
|
|
@@ -4183,18 +5168,18 @@ Ve.styles = d`
|
|
|
4183
5168
|
text-decoration: underline;
|
|
4184
5169
|
}
|
|
4185
5170
|
`;
|
|
4186
|
-
|
|
5171
|
+
bt([
|
|
4187
5172
|
n()
|
|
4188
|
-
],
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
],
|
|
4192
|
-
var
|
|
4193
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4194
|
-
(i =
|
|
4195
|
-
return r && e &&
|
|
5173
|
+
], Te.prototype, "heading", 2);
|
|
5174
|
+
Te = bt([
|
|
5175
|
+
p("vox-footer-column")
|
|
5176
|
+
], Te);
|
|
5177
|
+
var Or = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, Je = (o, t, a, r) => {
|
|
5178
|
+
for (var e = r > 1 ? void 0 : r ? Mr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5179
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5180
|
+
return r && e && Or(t, a, e), e;
|
|
4196
5181
|
};
|
|
4197
|
-
let
|
|
5182
|
+
let W = class extends h {
|
|
4198
5183
|
constructor() {
|
|
4199
5184
|
super(...arguments), this.cols = 0, this.min = "240px", this.gap = "md";
|
|
4200
5185
|
}
|
|
@@ -4205,7 +5190,7 @@ let A = class extends p {
|
|
|
4205
5190
|
return l`<slot></slot>`;
|
|
4206
5191
|
}
|
|
4207
5192
|
};
|
|
4208
|
-
|
|
5193
|
+
W.styles = d`
|
|
4209
5194
|
:host {
|
|
4210
5195
|
display: grid;
|
|
4211
5196
|
}
|
|
@@ -4222,30 +5207,30 @@ A.styles = d`
|
|
|
4222
5207
|
gap: var(--vox-space-6);
|
|
4223
5208
|
}
|
|
4224
5209
|
`;
|
|
4225
|
-
|
|
5210
|
+
Je([
|
|
4226
5211
|
n({ type: Number })
|
|
4227
|
-
],
|
|
4228
|
-
|
|
5212
|
+
], W.prototype, "cols", 2);
|
|
5213
|
+
Je([
|
|
4229
5214
|
n()
|
|
4230
|
-
],
|
|
4231
|
-
|
|
5215
|
+
], W.prototype, "min", 2);
|
|
5216
|
+
Je([
|
|
4232
5217
|
n({ reflect: !0 })
|
|
4233
|
-
],
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
],
|
|
4237
|
-
var
|
|
4238
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4239
|
-
(i =
|
|
4240
|
-
return r && e &&
|
|
5218
|
+
], W.prototype, "gap", 2);
|
|
5219
|
+
W = Je([
|
|
5220
|
+
p("vox-grid")
|
|
5221
|
+
], W);
|
|
5222
|
+
var Lr = Object.defineProperty, Pr = Object.getOwnPropertyDescriptor, yt = (o, t, a, r) => {
|
|
5223
|
+
for (var e = r > 1 ? void 0 : r ? Pr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5224
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5225
|
+
return r && e && Lr(t, a, e), e;
|
|
4241
5226
|
};
|
|
4242
|
-
let
|
|
5227
|
+
let xe = class extends h {
|
|
4243
5228
|
constructor() {
|
|
4244
5229
|
super(...arguments), this.eyebrow = "", this.heading = "", this.hasActions = !1;
|
|
4245
5230
|
}
|
|
4246
|
-
handleActionsSlotChange(
|
|
4247
|
-
const
|
|
4248
|
-
this.hasActions =
|
|
5231
|
+
handleActionsSlotChange(o) {
|
|
5232
|
+
const t = o.target;
|
|
5233
|
+
this.hasActions = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4249
5234
|
}
|
|
4250
5235
|
render() {
|
|
4251
5236
|
return l`
|
|
@@ -4260,7 +5245,7 @@ let re = class extends p {
|
|
|
4260
5245
|
`;
|
|
4261
5246
|
}
|
|
4262
5247
|
};
|
|
4263
|
-
|
|
5248
|
+
xe.styles = d`
|
|
4264
5249
|
:host {
|
|
4265
5250
|
display: block;
|
|
4266
5251
|
font-family: var(--vox-font-family-base);
|
|
@@ -4317,42 +5302,42 @@ re.styles = d`
|
|
|
4317
5302
|
display: none;
|
|
4318
5303
|
}
|
|
4319
5304
|
`;
|
|
4320
|
-
|
|
5305
|
+
yt([
|
|
4321
5306
|
n()
|
|
4322
|
-
],
|
|
4323
|
-
|
|
5307
|
+
], xe.prototype, "eyebrow", 2);
|
|
5308
|
+
yt([
|
|
4324
5309
|
n()
|
|
4325
|
-
],
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
],
|
|
4329
|
-
var
|
|
4330
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4331
|
-
(i =
|
|
4332
|
-
return r && e &&
|
|
5310
|
+
], xe.prototype, "heading", 2);
|
|
5311
|
+
xe = yt([
|
|
5312
|
+
p("vox-hero")
|
|
5313
|
+
], xe);
|
|
5314
|
+
var Vr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Qe = (o, t, a, r) => {
|
|
5315
|
+
for (var e = r > 1 ? void 0 : r ? zr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5316
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5317
|
+
return r && e && Vr(t, a, e), e;
|
|
4333
5318
|
};
|
|
4334
|
-
let
|
|
5319
|
+
let nt = class extends h {
|
|
4335
5320
|
render() {
|
|
4336
5321
|
return l`<slot></slot>`;
|
|
4337
5322
|
}
|
|
4338
5323
|
};
|
|
4339
|
-
|
|
5324
|
+
nt.styles = d`
|
|
4340
5325
|
:host {
|
|
4341
5326
|
display: grid;
|
|
4342
5327
|
grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
|
|
4343
5328
|
gap: var(--vox-space-4);
|
|
4344
5329
|
}
|
|
4345
5330
|
`;
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
],
|
|
4349
|
-
let
|
|
5331
|
+
nt = Qe([
|
|
5332
|
+
p("vox-link-hub")
|
|
5333
|
+
], nt);
|
|
5334
|
+
let fe = class extends h {
|
|
4350
5335
|
constructor() {
|
|
4351
5336
|
super(...arguments), this.href = "#", this.heading = "", this.hasIcon = !1;
|
|
4352
5337
|
}
|
|
4353
|
-
handleIconSlotChange(
|
|
4354
|
-
const
|
|
4355
|
-
this.hasIcon =
|
|
5338
|
+
handleIconSlotChange(o) {
|
|
5339
|
+
const t = o.target;
|
|
5340
|
+
this.hasIcon = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4356
5341
|
}
|
|
4357
5342
|
render() {
|
|
4358
5343
|
return l`
|
|
@@ -4372,7 +5357,7 @@ let ae = class extends p {
|
|
|
4372
5357
|
`;
|
|
4373
5358
|
}
|
|
4374
5359
|
};
|
|
4375
|
-
|
|
5360
|
+
fe.styles = d`
|
|
4376
5361
|
:host {
|
|
4377
5362
|
display: block;
|
|
4378
5363
|
font-family: var(--vox-font-family-base);
|
|
@@ -4433,21 +5418,21 @@ ae.styles = d`
|
|
|
4433
5418
|
color: var(--vox-color-text-2);
|
|
4434
5419
|
}
|
|
4435
5420
|
`;
|
|
4436
|
-
|
|
5421
|
+
Qe([
|
|
4437
5422
|
n()
|
|
4438
|
-
],
|
|
4439
|
-
|
|
5423
|
+
], fe.prototype, "href", 2);
|
|
5424
|
+
Qe([
|
|
4440
5425
|
n()
|
|
4441
|
-
],
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
],
|
|
4445
|
-
var
|
|
4446
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4447
|
-
(i =
|
|
4448
|
-
return r && e &&
|
|
5426
|
+
], fe.prototype, "heading", 2);
|
|
5427
|
+
fe = Qe([
|
|
5428
|
+
p("vox-link-hub-item")
|
|
5429
|
+
], fe);
|
|
5430
|
+
var jr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, mt = (o, t, a, r) => {
|
|
5431
|
+
for (var e = r > 1 ? void 0 : r ? Er(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5432
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5433
|
+
return r && e && jr(t, a, e), e;
|
|
4449
5434
|
};
|
|
4450
|
-
let
|
|
5435
|
+
let ge = class extends h {
|
|
4451
5436
|
constructor() {
|
|
4452
5437
|
super(...arguments), this.size = "md", this.label = "Loading";
|
|
4453
5438
|
}
|
|
@@ -4460,7 +5445,7 @@ let se = class extends p {
|
|
|
4460
5445
|
`;
|
|
4461
5446
|
}
|
|
4462
5447
|
};
|
|
4463
|
-
|
|
5448
|
+
ge.styles = d`
|
|
4464
5449
|
:host {
|
|
4465
5450
|
display: inline-block;
|
|
4466
5451
|
}
|
|
@@ -4513,21 +5498,21 @@ se.styles = d`
|
|
|
4513
5498
|
white-space: nowrap;
|
|
4514
5499
|
}
|
|
4515
5500
|
`;
|
|
4516
|
-
|
|
5501
|
+
mt([
|
|
4517
5502
|
n({ reflect: !0 })
|
|
4518
|
-
],
|
|
4519
|
-
|
|
5503
|
+
], ge.prototype, "size", 2);
|
|
5504
|
+
mt([
|
|
4520
5505
|
n()
|
|
4521
|
-
],
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
],
|
|
4525
|
-
var
|
|
4526
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4527
|
-
(i =
|
|
4528
|
-
return r && e &&
|
|
5506
|
+
], ge.prototype, "label", 2);
|
|
5507
|
+
ge = mt([
|
|
5508
|
+
p("vox-loader")
|
|
5509
|
+
], ge);
|
|
5510
|
+
var Dr = Object.defineProperty, Ar = Object.getOwnPropertyDescriptor, It = (o, t, a, r) => {
|
|
5511
|
+
for (var e = r > 1 ? void 0 : r ? Ar(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5512
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5513
|
+
return r && e && Dr(t, a, e), e;
|
|
4529
5514
|
};
|
|
4530
|
-
let
|
|
5515
|
+
let Re = class extends h {
|
|
4531
5516
|
constructor() {
|
|
4532
5517
|
super(...arguments), this.label = "Pagination";
|
|
4533
5518
|
}
|
|
@@ -4539,7 +5524,7 @@ let je = class extends p {
|
|
|
4539
5524
|
`;
|
|
4540
5525
|
}
|
|
4541
5526
|
};
|
|
4542
|
-
|
|
5527
|
+
Re.styles = d`
|
|
4543
5528
|
:host {
|
|
4544
5529
|
display: block;
|
|
4545
5530
|
font-family: var(--vox-font-family-base);
|
|
@@ -4579,18 +5564,18 @@ je.styles = d`
|
|
|
4579
5564
|
font-weight: 600;
|
|
4580
5565
|
}
|
|
4581
5566
|
`;
|
|
4582
|
-
|
|
5567
|
+
It([
|
|
4583
5568
|
n()
|
|
4584
|
-
],
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
],
|
|
4588
|
-
var
|
|
4589
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4590
|
-
(i =
|
|
4591
|
-
return r && e &&
|
|
5569
|
+
], Re.prototype, "label", 2);
|
|
5570
|
+
Re = It([
|
|
5571
|
+
p("vox-pagination")
|
|
5572
|
+
], Re);
|
|
5573
|
+
var Sr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, wt = (o, t, a, r) => {
|
|
5574
|
+
for (var e = r > 1 ? void 0 : r ? Hr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5575
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5576
|
+
return r && e && Sr(t, a, e), e;
|
|
4592
5577
|
};
|
|
4593
|
-
let
|
|
5578
|
+
let be = class extends h {
|
|
4594
5579
|
constructor() {
|
|
4595
5580
|
super(...arguments), this.attribution = "", this.detail = "";
|
|
4596
5581
|
}
|
|
@@ -4608,7 +5593,7 @@ let ie = class extends p {
|
|
|
4608
5593
|
`;
|
|
4609
5594
|
}
|
|
4610
5595
|
};
|
|
4611
|
-
|
|
5596
|
+
be.styles = d`
|
|
4612
5597
|
:host {
|
|
4613
5598
|
display: block;
|
|
4614
5599
|
font-family: var(--vox-font-family-base);
|
|
@@ -4650,245 +5635,27 @@ ie.styles = d`
|
|
|
4650
5635
|
color: var(--vox-color-text-2);
|
|
4651
5636
|
}
|
|
4652
5637
|
`;
|
|
4653
|
-
|
|
5638
|
+
wt([
|
|
4654
5639
|
n()
|
|
4655
|
-
],
|
|
4656
|
-
|
|
5640
|
+
], be.prototype, "attribution", 2);
|
|
5641
|
+
wt([
|
|
4657
5642
|
n()
|
|
4658
|
-
],
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
],
|
|
4662
|
-
var
|
|
4663
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
4664
|
-
(i =
|
|
4665
|
-
return r && e &&
|
|
4666
|
-
};
|
|
4667
|
-
let Xe = class extends p {
|
|
4668
|
-
render() {
|
|
4669
|
-
return l`<slot></slot>`;
|
|
4670
|
-
}
|
|
5643
|
+
], be.prototype, "detail", 2);
|
|
5644
|
+
be = wt([
|
|
5645
|
+
p("vox-quote")
|
|
5646
|
+
], be);
|
|
5647
|
+
var Br = Object.defineProperty, Ir = Object.getOwnPropertyDescriptor, R = (o, t, a, r) => {
|
|
5648
|
+
for (var e = r > 1 ? void 0 : r ? Ir(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5649
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5650
|
+
return r && e && Br(t, a, e), e;
|
|
4671
5651
|
};
|
|
4672
|
-
|
|
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 {
|
|
5652
|
+
let Ze = class extends h {
|
|
4886
5653
|
constructor() {
|
|
4887
5654
|
super(...arguments), this.heading = "", this.hasDescription = !1;
|
|
4888
5655
|
}
|
|
4889
|
-
handleDescriptionSlotChange(
|
|
4890
|
-
const
|
|
4891
|
-
this.hasDescription =
|
|
5656
|
+
handleDescriptionSlotChange(o) {
|
|
5657
|
+
const t = o.target;
|
|
5658
|
+
this.hasDescription = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4892
5659
|
}
|
|
4893
5660
|
render() {
|
|
4894
5661
|
return l`
|
|
@@ -4905,7 +5672,7 @@ let ze = class extends p {
|
|
|
4905
5672
|
`;
|
|
4906
5673
|
}
|
|
4907
5674
|
};
|
|
4908
|
-
|
|
5675
|
+
Ze.styles = d`
|
|
4909
5676
|
:host {
|
|
4910
5677
|
display: block;
|
|
4911
5678
|
font-family: var(--vox-font-family-base);
|
|
@@ -4937,22 +5704,22 @@ ze.styles = d`
|
|
|
4937
5704
|
margin-top: var(--vox-space-6);
|
|
4938
5705
|
}
|
|
4939
5706
|
`;
|
|
4940
|
-
|
|
5707
|
+
R([
|
|
4941
5708
|
n()
|
|
4942
|
-
],
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
],
|
|
4946
|
-
let
|
|
5709
|
+
], Ze.prototype, "heading", 2);
|
|
5710
|
+
Ze = R([
|
|
5711
|
+
p("vox-sponsor-tier")
|
|
5712
|
+
], Ze);
|
|
5713
|
+
let H = class extends h {
|
|
4947
5714
|
constructor() {
|
|
4948
5715
|
super(...arguments), this.name = "", this.hasBody = !1;
|
|
4949
5716
|
}
|
|
4950
|
-
handleBodySlotChange(
|
|
4951
|
-
const
|
|
4952
|
-
this.hasBody =
|
|
5717
|
+
handleBodySlotChange(o) {
|
|
5718
|
+
const t = o.target;
|
|
5719
|
+
this.hasBody = t.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
|
|
4953
5720
|
}
|
|
4954
5721
|
render() {
|
|
4955
|
-
const
|
|
5722
|
+
const o = l`
|
|
4956
5723
|
<div class="logo ${this.logo ? "has-logo" : ""}">
|
|
4957
5724
|
${this.logo ? l`<img src=${this.logo} alt=${this.name} />` : v}
|
|
4958
5725
|
</div>
|
|
@@ -4965,11 +5732,11 @@ let M = class extends p {
|
|
|
4965
5732
|
class="sponsor"
|
|
4966
5733
|
href=${this.href}
|
|
4967
5734
|
target=${this.target ?? v}
|
|
4968
|
-
>${
|
|
4969
|
-
>` : l`<div class="sponsor">${
|
|
5735
|
+
>${o}</a
|
|
5736
|
+
>` : l`<div class="sponsor">${o}</div>`;
|
|
4970
5737
|
}
|
|
4971
5738
|
};
|
|
4972
|
-
|
|
5739
|
+
H.styles = d`
|
|
4973
5740
|
:host {
|
|
4974
5741
|
display: block;
|
|
4975
5742
|
}
|
|
@@ -5035,27 +5802,27 @@ M.styles = d`
|
|
|
5035
5802
|
display: none;
|
|
5036
5803
|
}
|
|
5037
5804
|
`;
|
|
5038
|
-
|
|
5805
|
+
R([
|
|
5039
5806
|
n()
|
|
5040
|
-
],
|
|
5041
|
-
|
|
5807
|
+
], H.prototype, "name", 2);
|
|
5808
|
+
R([
|
|
5042
5809
|
n()
|
|
5043
|
-
],
|
|
5044
|
-
|
|
5810
|
+
], H.prototype, "href", 2);
|
|
5811
|
+
R([
|
|
5045
5812
|
n()
|
|
5046
|
-
],
|
|
5047
|
-
|
|
5813
|
+
], H.prototype, "logo", 2);
|
|
5814
|
+
R([
|
|
5048
5815
|
n()
|
|
5049
|
-
],
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
],
|
|
5053
|
-
var
|
|
5054
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
5055
|
-
(i =
|
|
5056
|
-
return r && e &&
|
|
5816
|
+
], H.prototype, "target", 2);
|
|
5817
|
+
H = R([
|
|
5818
|
+
p("vox-sponsor")
|
|
5819
|
+
], H);
|
|
5820
|
+
var qr = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, $t = (o, t, a, r) => {
|
|
5821
|
+
for (var e = r > 1 ? void 0 : r ? Nr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5822
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5823
|
+
return r && e && qr(t, a, e), e;
|
|
5057
5824
|
};
|
|
5058
|
-
let
|
|
5825
|
+
let ye = class extends h {
|
|
5059
5826
|
constructor() {
|
|
5060
5827
|
super(...arguments), this.value = "", this.label = "";
|
|
5061
5828
|
}
|
|
@@ -5067,7 +5834,7 @@ let ne = class extends p {
|
|
|
5067
5834
|
`;
|
|
5068
5835
|
}
|
|
5069
5836
|
};
|
|
5070
|
-
|
|
5837
|
+
ye.styles = d`
|
|
5071
5838
|
:host {
|
|
5072
5839
|
display: block;
|
|
5073
5840
|
font-family: var(--vox-font-family-base);
|
|
@@ -5094,24 +5861,24 @@ ne.styles = d`
|
|
|
5094
5861
|
color: var(--vox-color-text-2);
|
|
5095
5862
|
}
|
|
5096
5863
|
`;
|
|
5097
|
-
|
|
5864
|
+
$t([
|
|
5098
5865
|
n()
|
|
5099
|
-
],
|
|
5100
|
-
|
|
5866
|
+
], ye.prototype, "value", 2);
|
|
5867
|
+
$t([
|
|
5101
5868
|
n()
|
|
5102
|
-
],
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
],
|
|
5106
|
-
var
|
|
5107
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
5108
|
-
(i =
|
|
5109
|
-
return r && e &&
|
|
5869
|
+
], ye.prototype, "label", 2);
|
|
5870
|
+
ye = $t([
|
|
5871
|
+
p("vox-stat")
|
|
5872
|
+
], ye);
|
|
5873
|
+
var Tr = Object.defineProperty, Rr = Object.getOwnPropertyDescriptor, Ve = (o, t, a, r) => {
|
|
5874
|
+
for (var e = r > 1 ? void 0 : r ? Rr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
5875
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
5876
|
+
return r && e && Tr(t, a, e), e;
|
|
5110
5877
|
};
|
|
5111
|
-
let
|
|
5878
|
+
let lt = class extends h {
|
|
5112
5879
|
numberSteps() {
|
|
5113
|
-
this.querySelectorAll("vox-step").forEach((
|
|
5114
|
-
|
|
5880
|
+
this.querySelectorAll("vox-step").forEach((o, t) => {
|
|
5881
|
+
o.number = t + 1;
|
|
5115
5882
|
});
|
|
5116
5883
|
}
|
|
5117
5884
|
render() {
|
|
@@ -5122,7 +5889,7 @@ let Je = class extends p {
|
|
|
5122
5889
|
`;
|
|
5123
5890
|
}
|
|
5124
5891
|
};
|
|
5125
|
-
|
|
5892
|
+
lt.styles = d`
|
|
5126
5893
|
:host {
|
|
5127
5894
|
display: block;
|
|
5128
5895
|
}
|
|
@@ -5136,10 +5903,10 @@ Je.styles = d`
|
|
|
5136
5903
|
flex: 1 1 0;
|
|
5137
5904
|
}
|
|
5138
5905
|
`;
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
],
|
|
5142
|
-
let
|
|
5906
|
+
lt = Ve([
|
|
5907
|
+
p("vox-step-indicator")
|
|
5908
|
+
], lt);
|
|
5909
|
+
let X = class extends h {
|
|
5143
5910
|
constructor() {
|
|
5144
5911
|
super(...arguments), this.label = "", this.state = "upcoming", this.number = 1;
|
|
5145
5912
|
}
|
|
@@ -5160,7 +5927,7 @@ let q = class extends p {
|
|
|
5160
5927
|
`;
|
|
5161
5928
|
}
|
|
5162
5929
|
};
|
|
5163
|
-
|
|
5930
|
+
X.styles = d`
|
|
5164
5931
|
:host {
|
|
5165
5932
|
display: block;
|
|
5166
5933
|
font-family: var(--vox-font-family-base);
|
|
@@ -5234,37 +6001,37 @@ q.styles = d`
|
|
|
5234
6001
|
color: var(--vox-color-text-1);
|
|
5235
6002
|
}
|
|
5236
6003
|
`;
|
|
5237
|
-
|
|
6004
|
+
Ve([
|
|
5238
6005
|
n()
|
|
5239
|
-
],
|
|
5240
|
-
|
|
6006
|
+
], X.prototype, "label", 2);
|
|
6007
|
+
Ve([
|
|
5241
6008
|
n({ reflect: !0 })
|
|
5242
|
-
],
|
|
5243
|
-
|
|
6009
|
+
], X.prototype, "state", 2);
|
|
6010
|
+
Ve([
|
|
5244
6011
|
n({ type: Number })
|
|
5245
|
-
],
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
],
|
|
5249
|
-
var
|
|
5250
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
5251
|
-
(i =
|
|
5252
|
-
return r && e &&
|
|
6012
|
+
], X.prototype, "number", 2);
|
|
6013
|
+
X = Ve([
|
|
6014
|
+
p("vox-step")
|
|
6015
|
+
], X);
|
|
6016
|
+
var Zr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, et = (o, t, a, r) => {
|
|
6017
|
+
for (var e = r > 1 ? void 0 : r ? Fr(t, a) : t, s = o.length - 1, i; s >= 0; s--)
|
|
6018
|
+
(i = o[s]) && (e = (r ? i(t, a, e) : i(e)) || e);
|
|
6019
|
+
return r && e && Zr(t, a, e), e;
|
|
5253
6020
|
};
|
|
5254
|
-
let
|
|
6021
|
+
let ct = class extends h {
|
|
5255
6022
|
render() {
|
|
5256
6023
|
return l`<slot></slot>`;
|
|
5257
6024
|
}
|
|
5258
6025
|
};
|
|
5259
|
-
|
|
6026
|
+
ct.styles = d`
|
|
5260
6027
|
:host {
|
|
5261
6028
|
display: block;
|
|
5262
6029
|
}
|
|
5263
6030
|
`;
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
],
|
|
5267
|
-
let
|
|
6031
|
+
ct = et([
|
|
6032
|
+
p("vox-timeline")
|
|
6033
|
+
], ct);
|
|
6034
|
+
let me = class extends h {
|
|
5268
6035
|
constructor() {
|
|
5269
6036
|
super(...arguments), this.heading = "", this.date = "";
|
|
5270
6037
|
}
|
|
@@ -5279,7 +6046,7 @@ let le = class extends p {
|
|
|
5279
6046
|
`;
|
|
5280
6047
|
}
|
|
5281
6048
|
};
|
|
5282
|
-
|
|
6049
|
+
me.styles = d`
|
|
5283
6050
|
:host {
|
|
5284
6051
|
display: block;
|
|
5285
6052
|
font-family: var(--vox-font-family-base);
|
|
@@ -5329,73 +6096,72 @@ le.styles = d`
|
|
|
5329
6096
|
color: var(--vox-color-text-2);
|
|
5330
6097
|
}
|
|
5331
6098
|
`;
|
|
5332
|
-
|
|
6099
|
+
et([
|
|
5333
6100
|
n()
|
|
5334
|
-
],
|
|
5335
|
-
|
|
6101
|
+
], me.prototype, "heading", 2);
|
|
6102
|
+
et([
|
|
5336
6103
|
n()
|
|
5337
|
-
],
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
],
|
|
6104
|
+
], me.prototype, "date", 2);
|
|
6105
|
+
me = et([
|
|
6106
|
+
p("vox-timeline-item")
|
|
6107
|
+
], me);
|
|
5341
6108
|
export {
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
W as VoxTocItem
|
|
6109
|
+
Be as VoxAccordion,
|
|
6110
|
+
he as VoxAccordionItem,
|
|
6111
|
+
S as VoxAlert,
|
|
6112
|
+
E as VoxAvatar,
|
|
6113
|
+
Ie as VoxBadge,
|
|
6114
|
+
ae as VoxBillboard,
|
|
6115
|
+
rt as VoxBreadcrumbs,
|
|
6116
|
+
C as VoxButton,
|
|
6117
|
+
ve as VoxCalendarTile,
|
|
6118
|
+
ue as VoxCallout,
|
|
6119
|
+
Y as VoxCard,
|
|
6120
|
+
oe as VoxCheckbox,
|
|
6121
|
+
y as VoxCodeBlock,
|
|
6122
|
+
g as VoxCombobox,
|
|
6123
|
+
te as VoxCta,
|
|
6124
|
+
qe as VoxCtaBand,
|
|
6125
|
+
A as VoxDialog,
|
|
6126
|
+
de as VoxDisclosure,
|
|
6127
|
+
pe as VoxDropdown,
|
|
6128
|
+
Ne as VoxEmptyState,
|
|
6129
|
+
M as VoxFileInput,
|
|
6130
|
+
it as VoxFooter,
|
|
6131
|
+
Te as VoxFooterColumn,
|
|
6132
|
+
W as VoxGrid,
|
|
6133
|
+
U as VoxHeader,
|
|
6134
|
+
xe as VoxHero,
|
|
6135
|
+
F as VoxIcon,
|
|
6136
|
+
f as VoxInput,
|
|
6137
|
+
ot as VoxInputGroup,
|
|
6138
|
+
nt as VoxLinkHub,
|
|
6139
|
+
fe as VoxLinkHubItem,
|
|
6140
|
+
ge as VoxLoader,
|
|
6141
|
+
Re as VoxPagination,
|
|
6142
|
+
be as VoxQuote,
|
|
6143
|
+
K as VoxRadio,
|
|
6144
|
+
Ae as VoxRadioGroup,
|
|
6145
|
+
w as VoxRange,
|
|
6146
|
+
L as VoxSelect,
|
|
6147
|
+
D as VoxSeriesNav,
|
|
6148
|
+
G as VoxSidenav,
|
|
6149
|
+
se as VoxSidenavGroup,
|
|
6150
|
+
ie as VoxSidenavItem,
|
|
6151
|
+
H as VoxSponsor,
|
|
6152
|
+
Ze as VoxSponsorTier,
|
|
6153
|
+
ye as VoxStat,
|
|
6154
|
+
X as VoxStep,
|
|
6155
|
+
lt as VoxStepIndicator,
|
|
6156
|
+
Se as VoxSubnav,
|
|
6157
|
+
re as VoxSwitch,
|
|
6158
|
+
ne as VoxTab,
|
|
6159
|
+
le as VoxTabPanel,
|
|
6160
|
+
at as VoxTabs,
|
|
6161
|
+
j as VoxTextarea,
|
|
6162
|
+
Z as VoxThemeToggle,
|
|
6163
|
+
ct as VoxTimeline,
|
|
6164
|
+
me as VoxTimelineItem,
|
|
6165
|
+
He as VoxToc,
|
|
6166
|
+
ce as VoxTocItem
|
|
5401
6167
|
};
|