@nysds/components 1.5.1 → 1.5.3
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/dist/nysds.es.js +273 -242
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +133 -110
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +1 -0
- package/package.json +1 -1
package/dist/nysds.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { css as g, LitElement as u, html as a } from "lit";
|
|
2
|
-
import { property as r, state as
|
|
2
|
+
import { property as r, state as A } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined as h } from "lit/directives/if-defined.js";
|
|
4
4
|
/*!
|
|
5
|
-
* New York State Design System (v1.5.
|
|
5
|
+
* New York State Design System (v1.5.3)
|
|
6
6
|
* Description: A design system for New York State's digital products.
|
|
7
7
|
* Repository: https://github.com/its-hcd/nysds
|
|
8
8
|
* License: MIT
|
|
@@ -238,7 +238,7 @@ const q1 = g`
|
|
|
238
238
|
text-decoration-thickness: 3px;
|
|
239
239
|
}
|
|
240
240
|
`;
|
|
241
|
-
var U1 = Object.defineProperty, P1 = Object.getOwnPropertyDescriptor,
|
|
241
|
+
var U1 = Object.defineProperty, P1 = Object.getOwnPropertyDescriptor, V = (l, e, t, o) => {
|
|
242
242
|
for (var s = o > 1 ? void 0 : o ? P1(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
243
243
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
244
244
|
return o && s && U1(e, t, s), s;
|
|
@@ -366,43 +366,43 @@ const k = (J = class extends u {
|
|
|
366
366
|
"danger",
|
|
367
367
|
"emergency"
|
|
368
368
|
], J);
|
|
369
|
-
|
|
369
|
+
V([
|
|
370
370
|
r({ type: String })
|
|
371
371
|
], k.prototype, "id", 2);
|
|
372
|
-
|
|
372
|
+
V([
|
|
373
373
|
r({ type: String })
|
|
374
374
|
], k.prototype, "heading", 2);
|
|
375
|
-
|
|
375
|
+
V([
|
|
376
376
|
r({ type: String })
|
|
377
377
|
], k.prototype, "icon", 2);
|
|
378
|
-
|
|
378
|
+
V([
|
|
379
379
|
r({ type: Boolean, reflect: !0 })
|
|
380
380
|
], k.prototype, "dismissible", 2);
|
|
381
|
-
|
|
381
|
+
V([
|
|
382
382
|
r({ type: Number, reflect: !0 })
|
|
383
383
|
], k.prototype, "duration", 2);
|
|
384
|
-
|
|
384
|
+
V([
|
|
385
385
|
r({ type: String })
|
|
386
386
|
], k.prototype, "text", 2);
|
|
387
|
-
|
|
387
|
+
V([
|
|
388
388
|
r({ type: String })
|
|
389
389
|
], k.prototype, "primaryAction", 2);
|
|
390
|
-
|
|
390
|
+
V([
|
|
391
391
|
r({ type: String })
|
|
392
392
|
], k.prototype, "secondaryAction", 2);
|
|
393
|
-
|
|
393
|
+
V([
|
|
394
394
|
r({ type: String })
|
|
395
395
|
], k.prototype, "primaryLabel", 2);
|
|
396
|
-
|
|
396
|
+
V([
|
|
397
397
|
r({ type: String })
|
|
398
398
|
], k.prototype, "secondaryLabel", 2);
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
V([
|
|
400
|
+
A()
|
|
401
401
|
], k.prototype, "_alertClosed", 2);
|
|
402
|
-
|
|
403
|
-
|
|
402
|
+
V([
|
|
403
|
+
A()
|
|
404
404
|
], k.prototype, "_slotHasContent", 2);
|
|
405
|
-
|
|
405
|
+
V([
|
|
406
406
|
r({ reflect: !0 })
|
|
407
407
|
], k.prototype, "type", 1);
|
|
408
408
|
let R1 = k;
|
|
@@ -588,7 +588,7 @@ Q([
|
|
|
588
588
|
r({ reflect: !0 })
|
|
589
589
|
], R.prototype, "shape", 1);
|
|
590
590
|
Q([
|
|
591
|
-
|
|
591
|
+
A()
|
|
592
592
|
], R.prototype, "_slotHasContent", 2);
|
|
593
593
|
let G1 = R;
|
|
594
594
|
customElements.get("nys-avatar") || customElements.define("nys-avatar", G1);
|
|
@@ -606,6 +606,7 @@ const Y1 = g`
|
|
|
606
606
|
bottom: 1rem;
|
|
607
607
|
right: 1rem;
|
|
608
608
|
z-index: 9999;
|
|
609
|
+
display: none;
|
|
609
610
|
}
|
|
610
611
|
|
|
611
612
|
.left {
|
|
@@ -617,24 +618,25 @@ const Y1 = g`
|
|
|
617
618
|
display: inline-flex;
|
|
618
619
|
}
|
|
619
620
|
`;
|
|
620
|
-
var W1 = Object.defineProperty,
|
|
621
|
+
var W1 = Object.defineProperty, v1 = (l, e, t, o) => {
|
|
621
622
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
622
623
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
623
624
|
return s && W1(e, t, s), s;
|
|
624
625
|
};
|
|
625
626
|
const k1 = class k1 extends u {
|
|
626
627
|
constructor() {
|
|
627
|
-
super(), this.position = "right", this.visible = !1, this.isMobile = !1, this._handleScroll = this._handleScroll.bind(this), this._handleResize = this._handleResize.bind(this), this.mediaQuery = window.matchMedia("(max-width: 480px)");
|
|
628
|
+
super(), this.position = "right", this.visible = !1, this.isMobile = !1, this.forceVisible = !1, this._handleScroll = this._handleScroll.bind(this), this._handleResize = this._handleResize.bind(this), this.mediaQuery = window.matchMedia("(max-width: 480px)");
|
|
628
629
|
}
|
|
629
630
|
connectedCallback() {
|
|
630
|
-
super.connectedCallback(), window.addEventListener("scroll", this._handleScroll), this.mediaQuery.addEventListener("change", this._handleResize), this._handleResize();
|
|
631
|
+
super.connectedCallback(), this.forceVisible = this.hasAttribute("visible"), window.addEventListener("scroll", this._handleScroll), this.mediaQuery.addEventListener("change", this._handleResize), this._handleResize();
|
|
631
632
|
}
|
|
632
633
|
disconnectedCallback() {
|
|
633
634
|
window.removeEventListener("scroll", this._handleScroll), this.mediaQuery.removeEventListener("change", this._handleResize), super.disconnectedCallback();
|
|
634
635
|
}
|
|
635
636
|
_handleScroll() {
|
|
636
|
-
|
|
637
|
-
|
|
637
|
+
if (this.forceVisible) return;
|
|
638
|
+
const e = window.innerHeight, t = document.documentElement.scrollHeight;
|
|
639
|
+
this.visible = t >= e * 4 && window.scrollY > e * 1.5;
|
|
638
640
|
}
|
|
639
641
|
_scrollToTop() {
|
|
640
642
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
@@ -652,7 +654,8 @@ const k1 = class k1 extends u {
|
|
|
652
654
|
id="nys-backtotop"
|
|
653
655
|
prefixIcon="chevron_up"
|
|
654
656
|
variant="outline"
|
|
655
|
-
label="Back
|
|
657
|
+
label="Back to top"
|
|
658
|
+
size="sm"
|
|
656
659
|
class="${e}"
|
|
657
660
|
.onClick=${this._scrollToTop}
|
|
658
661
|
?circle=${this.isMobile}
|
|
@@ -660,17 +663,20 @@ const k1 = class k1 extends u {
|
|
|
660
663
|
}
|
|
661
664
|
};
|
|
662
665
|
k1.styles = Y1;
|
|
663
|
-
let
|
|
664
|
-
|
|
666
|
+
let o1 = k1;
|
|
667
|
+
v1([
|
|
665
668
|
r({ type: String })
|
|
666
|
-
],
|
|
667
|
-
|
|
669
|
+
], o1.prototype, "position");
|
|
670
|
+
v1([
|
|
668
671
|
r({ type: Boolean, reflect: !0 })
|
|
669
|
-
],
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
],
|
|
673
|
-
|
|
672
|
+
], o1.prototype, "visible");
|
|
673
|
+
v1([
|
|
674
|
+
A()
|
|
675
|
+
], o1.prototype, "isMobile");
|
|
676
|
+
v1([
|
|
677
|
+
A()
|
|
678
|
+
], o1.prototype, "forceVisible");
|
|
679
|
+
customElements.get("nys-backtotop") || customElements.define("nys-backtotop", o1);
|
|
674
680
|
const K1 = g`
|
|
675
681
|
:host {
|
|
676
682
|
/* Anything that can be overridden should be defined here */
|
|
@@ -1687,7 +1693,7 @@ var te = Object.defineProperty, se = Object.getOwnPropertyDescriptor, T = (l, e,
|
|
|
1687
1693
|
};
|
|
1688
1694
|
let oe = 0;
|
|
1689
1695
|
var j;
|
|
1690
|
-
const
|
|
1696
|
+
const B = (j = class extends u {
|
|
1691
1697
|
// allows use of elementInternals' API
|
|
1692
1698
|
constructor() {
|
|
1693
1699
|
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._size = "md", this._internals = this.attachInternals();
|
|
@@ -1804,37 +1810,37 @@ const A = (j = class extends u {
|
|
|
1804
1810
|
}, j.VALID_SIZES = ["sm", "md"], j.styles = H1, j.formAssociated = !0, j);
|
|
1805
1811
|
T([
|
|
1806
1812
|
r({ type: String })
|
|
1807
|
-
],
|
|
1813
|
+
], B.prototype, "id", 2);
|
|
1808
1814
|
T([
|
|
1809
1815
|
r({ type: String, reflect: !0 })
|
|
1810
|
-
],
|
|
1816
|
+
], B.prototype, "name", 2);
|
|
1811
1817
|
T([
|
|
1812
1818
|
r({ type: Boolean, reflect: !0 })
|
|
1813
|
-
],
|
|
1819
|
+
], B.prototype, "required", 2);
|
|
1814
1820
|
T([
|
|
1815
1821
|
r({ type: Boolean, reflect: !0 })
|
|
1816
|
-
],
|
|
1822
|
+
], B.prototype, "optional", 2);
|
|
1817
1823
|
T([
|
|
1818
1824
|
r({ type: Boolean, reflect: !0 })
|
|
1819
|
-
],
|
|
1825
|
+
], B.prototype, "showError", 2);
|
|
1820
1826
|
T([
|
|
1821
1827
|
r({ type: String })
|
|
1822
|
-
],
|
|
1828
|
+
], B.prototype, "errorMessage", 2);
|
|
1823
1829
|
T([
|
|
1824
1830
|
r({ type: String })
|
|
1825
|
-
],
|
|
1831
|
+
], B.prototype, "label", 2);
|
|
1826
1832
|
T([
|
|
1827
1833
|
r({ type: String })
|
|
1828
|
-
],
|
|
1834
|
+
], B.prototype, "description", 2);
|
|
1829
1835
|
T([
|
|
1830
1836
|
r({ type: Boolean, reflect: !0 })
|
|
1831
|
-
],
|
|
1837
|
+
], B.prototype, "tile", 2);
|
|
1832
1838
|
T([
|
|
1833
1839
|
r({ reflect: !0 })
|
|
1834
|
-
],
|
|
1835
|
-
let re =
|
|
1840
|
+
], B.prototype, "size", 1);
|
|
1841
|
+
let re = B;
|
|
1836
1842
|
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", re);
|
|
1837
|
-
var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor,
|
|
1843
|
+
var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, D = (l, e, t, o) => {
|
|
1838
1844
|
for (var s = o > 1 ? void 0 : o ? ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
1839
1845
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1840
1846
|
return o && s && ne(e, t, s), s;
|
|
@@ -1999,43 +2005,43 @@ const L = (G = class extends u {
|
|
|
1999
2005
|
`;
|
|
2000
2006
|
}
|
|
2001
2007
|
}, G.VALID_SIZES = ["sm", "md"], G.styles = H1, G.formAssociated = !0, G);
|
|
2002
|
-
|
|
2008
|
+
D([
|
|
2003
2009
|
r({ type: Boolean, reflect: !0 })
|
|
2004
2010
|
], L.prototype, "checked", 2);
|
|
2005
|
-
|
|
2011
|
+
D([
|
|
2006
2012
|
r({ type: Boolean, reflect: !0 })
|
|
2007
2013
|
], L.prototype, "disabled", 2);
|
|
2008
|
-
|
|
2014
|
+
D([
|
|
2009
2015
|
r({ type: Boolean, reflect: !0 })
|
|
2010
2016
|
], L.prototype, "required", 2);
|
|
2011
|
-
|
|
2017
|
+
D([
|
|
2012
2018
|
r({ type: String })
|
|
2013
2019
|
], L.prototype, "label", 2);
|
|
2014
|
-
|
|
2020
|
+
D([
|
|
2015
2021
|
r({ type: String })
|
|
2016
2022
|
], L.prototype, "description", 2);
|
|
2017
|
-
|
|
2023
|
+
D([
|
|
2018
2024
|
r({ type: String })
|
|
2019
2025
|
], L.prototype, "id", 2);
|
|
2020
|
-
|
|
2026
|
+
D([
|
|
2021
2027
|
r({ type: String, reflect: !0 })
|
|
2022
2028
|
], L.prototype, "name", 2);
|
|
2023
|
-
|
|
2029
|
+
D([
|
|
2024
2030
|
r({ type: String })
|
|
2025
2031
|
], L.prototype, "value", 2);
|
|
2026
|
-
|
|
2032
|
+
D([
|
|
2027
2033
|
r({ type: Boolean, reflect: !0 })
|
|
2028
2034
|
], L.prototype, "showError", 2);
|
|
2029
|
-
|
|
2035
|
+
D([
|
|
2030
2036
|
r({ type: String })
|
|
2031
2037
|
], L.prototype, "errorMessage", 2);
|
|
2032
|
-
|
|
2038
|
+
D([
|
|
2033
2039
|
r({ type: Boolean })
|
|
2034
2040
|
], L.prototype, "groupExist", 2);
|
|
2035
|
-
|
|
2041
|
+
D([
|
|
2036
2042
|
r({ type: Boolean, reflect: !0 })
|
|
2037
2043
|
], L.prototype, "tile", 2);
|
|
2038
|
-
|
|
2044
|
+
D([
|
|
2039
2045
|
r({ reflect: !0 })
|
|
2040
2046
|
], L.prototype, "size", 1);
|
|
2041
2047
|
let le = L;
|
|
@@ -2256,6 +2262,7 @@ const ye = g`
|
|
|
2256
2262
|
--_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
|
|
2257
2263
|
--_nys-fileitem-items-padding: var(--nys-space-100, 8px)
|
|
2258
2264
|
var(--nys-space-200, 16px);
|
|
2265
|
+
--_nys-fileitem-items-background: var(--nys-color-ink-reverse, #fff);
|
|
2259
2266
|
--_nys-fileitem-items-border: var(--nys-border-width-sm, 1px) solid
|
|
2260
2267
|
var(--nys-color-neutral-100, #d0d0ce);
|
|
2261
2268
|
--_nys-fileitem-error-color: var(--nys-color-danger, #b52c2c);
|
|
@@ -2287,6 +2294,7 @@ const ye = g`
|
|
|
2287
2294
|
position: relative;
|
|
2288
2295
|
border-radius: var(--_nys-fileitem-items-radius);
|
|
2289
2296
|
border: var(--_nys-fileitem-items-border);
|
|
2297
|
+
background: var(--_nys-fileitem-items-background);
|
|
2290
2298
|
}
|
|
2291
2299
|
|
|
2292
2300
|
.file-item.error {
|
|
@@ -2386,7 +2394,7 @@ const ye = g`
|
|
|
2386
2394
|
}
|
|
2387
2395
|
}
|
|
2388
2396
|
`;
|
|
2389
|
-
var pe = Object.defineProperty,
|
|
2397
|
+
var pe = Object.defineProperty, b1 = (l, e, t, o) => {
|
|
2390
2398
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2391
2399
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2392
2400
|
return s && pe(e, t, s), s;
|
|
@@ -2465,20 +2473,20 @@ const L1 = class L1 extends u {
|
|
|
2465
2473
|
}
|
|
2466
2474
|
};
|
|
2467
2475
|
L1.styles = ue;
|
|
2468
|
-
let
|
|
2469
|
-
|
|
2476
|
+
let r1 = L1;
|
|
2477
|
+
b1([
|
|
2470
2478
|
r({ type: String })
|
|
2471
|
-
],
|
|
2472
|
-
|
|
2479
|
+
], r1.prototype, "filename");
|
|
2480
|
+
b1([
|
|
2473
2481
|
r({ type: String })
|
|
2474
|
-
],
|
|
2475
|
-
|
|
2482
|
+
], r1.prototype, "status");
|
|
2483
|
+
b1([
|
|
2476
2484
|
r({ type: Number })
|
|
2477
|
-
],
|
|
2478
|
-
|
|
2485
|
+
], r1.prototype, "progress");
|
|
2486
|
+
b1([
|
|
2479
2487
|
r({ type: String })
|
|
2480
|
-
],
|
|
2481
|
-
customElements.define("nys-fileitem",
|
|
2488
|
+
], r1.prototype, "errorMessage");
|
|
2489
|
+
customElements.define("nys-fileitem", r1);
|
|
2482
2490
|
var ge = Object.defineProperty, M = (l, e, t, o) => {
|
|
2483
2491
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2484
2492
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
@@ -3457,7 +3465,7 @@ var be = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, h1 = (l, e
|
|
|
3457
3465
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3458
3466
|
return o && s && be(e, t, s), s;
|
|
3459
3467
|
}, t1;
|
|
3460
|
-
const
|
|
3468
|
+
const i1 = (t1 = class extends u {
|
|
3461
3469
|
constructor() {
|
|
3462
3470
|
super(...arguments), this.name = "", this.ariaLabel = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
3463
3471
|
}
|
|
@@ -3499,23 +3507,23 @@ const n1 = (t1 = class extends u {
|
|
|
3499
3507
|
], t1);
|
|
3500
3508
|
h1([
|
|
3501
3509
|
r({ type: String, reflect: !0 })
|
|
3502
|
-
],
|
|
3510
|
+
], i1.prototype, "name", 2);
|
|
3503
3511
|
h1([
|
|
3504
3512
|
r({ type: String })
|
|
3505
|
-
],
|
|
3513
|
+
], i1.prototype, "ariaLabel", 2);
|
|
3506
3514
|
h1([
|
|
3507
3515
|
r({ type: String })
|
|
3508
|
-
],
|
|
3516
|
+
], i1.prototype, "rotate", 2);
|
|
3509
3517
|
h1([
|
|
3510
3518
|
r({ type: String })
|
|
3511
|
-
],
|
|
3519
|
+
], i1.prototype, "flip", 2);
|
|
3512
3520
|
h1([
|
|
3513
3521
|
r({ type: String })
|
|
3514
|
-
],
|
|
3522
|
+
], i1.prototype, "color", 2);
|
|
3515
3523
|
h1([
|
|
3516
3524
|
r({ reflect: !0 })
|
|
3517
|
-
],
|
|
3518
|
-
let me =
|
|
3525
|
+
], i1.prototype, "size", 1);
|
|
3526
|
+
let me = i1;
|
|
3519
3527
|
customElements.get("nys-icon") || customElements.define("nys-icon", me);
|
|
3520
3528
|
const xe = g`
|
|
3521
3529
|
:host {
|
|
@@ -3591,7 +3599,7 @@ const xe = g`
|
|
|
3591
3599
|
color: var(--nys-optional-font-color);
|
|
3592
3600
|
}
|
|
3593
3601
|
`;
|
|
3594
|
-
var we = Object.defineProperty,
|
|
3602
|
+
var we = Object.defineProperty, _1 = (l, e, t, o) => {
|
|
3595
3603
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
3596
3604
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
3597
3605
|
return s && we(e, t, s), s;
|
|
@@ -3616,20 +3624,20 @@ const $1 = class $1 extends u {
|
|
|
3616
3624
|
}
|
|
3617
3625
|
};
|
|
3618
3626
|
$1.styles = xe;
|
|
3619
|
-
let
|
|
3620
|
-
|
|
3627
|
+
let n1 = $1;
|
|
3628
|
+
_1([
|
|
3621
3629
|
r({ type: String })
|
|
3622
|
-
],
|
|
3623
|
-
|
|
3630
|
+
], n1.prototype, "id");
|
|
3631
|
+
_1([
|
|
3624
3632
|
r({ type: String })
|
|
3625
|
-
],
|
|
3626
|
-
|
|
3633
|
+
], n1.prototype, "label");
|
|
3634
|
+
_1([
|
|
3627
3635
|
r({ type: String })
|
|
3628
|
-
],
|
|
3629
|
-
|
|
3636
|
+
], n1.prototype, "description");
|
|
3637
|
+
_1([
|
|
3630
3638
|
r({ type: String })
|
|
3631
|
-
],
|
|
3632
|
-
customElements.get("nys-label") || customElements.define("nys-label",
|
|
3639
|
+
], n1.prototype, "flag");
|
|
3640
|
+
customElements.get("nys-label") || customElements.define("nys-label", n1);
|
|
3633
3641
|
const Z1 = g`
|
|
3634
3642
|
:host {
|
|
3635
3643
|
/* Global Radiobutton Styles */
|
|
@@ -3983,7 +3991,7 @@ const Z1 = g`
|
|
|
3983
3991
|
cursor: not-allowed;
|
|
3984
3992
|
}
|
|
3985
3993
|
`;
|
|
3986
|
-
var ke = Object.defineProperty, Le = Object.getOwnPropertyDescriptor,
|
|
3994
|
+
var ke = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, q = (l, e, t, o) => {
|
|
3987
3995
|
for (var s = o > 1 ? void 0 : o ? Le(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
3988
3996
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3989
3997
|
return o && s && ke(e, t, s), s;
|
|
@@ -4109,49 +4117,49 @@ const E = (Y = class extends u {
|
|
|
4109
4117
|
</div>`;
|
|
4110
4118
|
}
|
|
4111
4119
|
}, Y.VALID_SIZES = ["sm", "md"], Y.styles = Z1, Y.formAssociated = !0, Y);
|
|
4112
|
-
|
|
4120
|
+
q([
|
|
4113
4121
|
r({ type: String })
|
|
4114
4122
|
], E.prototype, "id", 2);
|
|
4115
|
-
|
|
4123
|
+
q([
|
|
4116
4124
|
r({ type: String, reflect: !0 })
|
|
4117
4125
|
], E.prototype, "name", 2);
|
|
4118
|
-
|
|
4126
|
+
q([
|
|
4119
4127
|
r({ type: Boolean, reflect: !0 })
|
|
4120
4128
|
], E.prototype, "required", 2);
|
|
4121
|
-
|
|
4129
|
+
q([
|
|
4122
4130
|
r({ type: Boolean, reflect: !0 })
|
|
4123
4131
|
], E.prototype, "optional", 2);
|
|
4124
|
-
|
|
4132
|
+
q([
|
|
4125
4133
|
r({ type: Boolean, reflect: !0 })
|
|
4126
4134
|
], E.prototype, "showError", 2);
|
|
4127
|
-
|
|
4135
|
+
q([
|
|
4128
4136
|
r({ type: String })
|
|
4129
4137
|
], E.prototype, "errorMessage", 2);
|
|
4130
|
-
|
|
4138
|
+
q([
|
|
4131
4139
|
r({ type: String })
|
|
4132
4140
|
], E.prototype, "label", 2);
|
|
4133
|
-
|
|
4141
|
+
q([
|
|
4134
4142
|
r({ type: String })
|
|
4135
4143
|
], E.prototype, "description", 2);
|
|
4136
|
-
|
|
4137
|
-
|
|
4144
|
+
q([
|
|
4145
|
+
A()
|
|
4138
4146
|
], E.prototype, "selectedValue", 2);
|
|
4139
|
-
|
|
4147
|
+
q([
|
|
4140
4148
|
r({ reflect: !0 })
|
|
4141
4149
|
], E.prototype, "size", 1);
|
|
4142
|
-
|
|
4150
|
+
q([
|
|
4143
4151
|
r({ type: Boolean, reflect: !0 })
|
|
4144
4152
|
], E.prototype, "tile", 2);
|
|
4145
4153
|
let Se = E;
|
|
4146
4154
|
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", Se);
|
|
4147
|
-
var
|
|
4148
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4155
|
+
var Ve = Object.defineProperty, De = Object.getOwnPropertyDescriptor, F = (l, e, t, o) => {
|
|
4156
|
+
for (var s = o > 1 ? void 0 : o ? De(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4149
4157
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4150
|
-
return o && s &&
|
|
4158
|
+
return o && s && Ve(e, t, s), s;
|
|
4151
4159
|
};
|
|
4152
4160
|
let Me = 0;
|
|
4153
4161
|
var y;
|
|
4154
|
-
const
|
|
4162
|
+
const U = (y = class extends u {
|
|
4155
4163
|
constructor() {
|
|
4156
4164
|
super(...arguments), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this._size = "md", this.tile = !1;
|
|
4157
4165
|
}
|
|
@@ -4252,35 +4260,35 @@ const q = (y = class extends u {
|
|
|
4252
4260
|
}, y.VALID_SIZES = ["sm", "md"], y.buttonGroup = {}, y.styles = Z1, y);
|
|
4253
4261
|
F([
|
|
4254
4262
|
r({ type: Boolean, reflect: !0 })
|
|
4255
|
-
],
|
|
4263
|
+
], U.prototype, "checked", 2);
|
|
4256
4264
|
F([
|
|
4257
4265
|
r({ type: Boolean, reflect: !0 })
|
|
4258
|
-
],
|
|
4266
|
+
], U.prototype, "disabled", 2);
|
|
4259
4267
|
F([
|
|
4260
4268
|
r({ type: Boolean, reflect: !0 })
|
|
4261
|
-
],
|
|
4269
|
+
], U.prototype, "required", 2);
|
|
4262
4270
|
F([
|
|
4263
4271
|
r({ type: String })
|
|
4264
|
-
],
|
|
4272
|
+
], U.prototype, "label", 2);
|
|
4265
4273
|
F([
|
|
4266
4274
|
r({ type: String })
|
|
4267
|
-
],
|
|
4275
|
+
], U.prototype, "description", 2);
|
|
4268
4276
|
F([
|
|
4269
4277
|
r({ type: String })
|
|
4270
|
-
],
|
|
4278
|
+
], U.prototype, "id", 2);
|
|
4271
4279
|
F([
|
|
4272
4280
|
r({ type: String, reflect: !0 })
|
|
4273
|
-
],
|
|
4281
|
+
], U.prototype, "name", 2);
|
|
4274
4282
|
F([
|
|
4275
4283
|
r({ type: String })
|
|
4276
|
-
],
|
|
4284
|
+
], U.prototype, "value", 2);
|
|
4277
4285
|
F([
|
|
4278
4286
|
r({ reflect: !0 })
|
|
4279
|
-
],
|
|
4287
|
+
], U.prototype, "size", 1);
|
|
4280
4288
|
F([
|
|
4281
4289
|
r({ type: Boolean, reflect: !0 })
|
|
4282
|
-
],
|
|
4283
|
-
let ze =
|
|
4290
|
+
], U.prototype, "tile", 2);
|
|
4291
|
+
let ze = U;
|
|
4284
4292
|
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", ze);
|
|
4285
4293
|
const Ee = g`
|
|
4286
4294
|
:host {
|
|
@@ -4435,7 +4443,7 @@ var He = Object.defineProperty, p1 = (l, e, t, o) => {
|
|
|
4435
4443
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
4436
4444
|
return s && He(e, t, s), s;
|
|
4437
4445
|
};
|
|
4438
|
-
class
|
|
4446
|
+
class a1 extends u {
|
|
4439
4447
|
constructor() {
|
|
4440
4448
|
super(...arguments), this.disabled = !1, this.selected = !1, this.value = "", this.label = "", this.hidden = !1;
|
|
4441
4449
|
}
|
|
@@ -4464,20 +4472,20 @@ class i1 extends u {
|
|
|
4464
4472
|
}
|
|
4465
4473
|
p1([
|
|
4466
4474
|
r({ type: Boolean, reflect: !0 })
|
|
4467
|
-
],
|
|
4475
|
+
], a1.prototype, "disabled");
|
|
4468
4476
|
p1([
|
|
4469
4477
|
r({ type: Boolean, reflect: !0 })
|
|
4470
|
-
],
|
|
4478
|
+
], a1.prototype, "selected");
|
|
4471
4479
|
p1([
|
|
4472
4480
|
r({ type: String })
|
|
4473
|
-
],
|
|
4481
|
+
], a1.prototype, "value");
|
|
4474
4482
|
p1([
|
|
4475
4483
|
r({ type: String })
|
|
4476
|
-
],
|
|
4484
|
+
], a1.prototype, "label");
|
|
4477
4485
|
p1([
|
|
4478
4486
|
r({ type: Boolean, reflect: !0 })
|
|
4479
|
-
],
|
|
4480
|
-
customElements.define("nys-option",
|
|
4487
|
+
], a1.prototype, "hidden");
|
|
4488
|
+
customElements.define("nys-option", a1);
|
|
4481
4489
|
var Ze = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, H = (l, e, t, o) => {
|
|
4482
4490
|
for (var s = o > 1 ? void 0 : o ? Ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4483
4491
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
@@ -4520,7 +4528,7 @@ const z = (W = class extends u {
|
|
|
4520
4528
|
if (!e || !t) return;
|
|
4521
4529
|
t.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), e.assignedElements({ flatten: !0 }).forEach((i) => {
|
|
4522
4530
|
var c;
|
|
4523
|
-
if (i instanceof
|
|
4531
|
+
if (i instanceof a1) {
|
|
4524
4532
|
const d = document.createElement("option");
|
|
4525
4533
|
d.value = i.value, d.textContent = i.label || ((c = i.textContent) == null ? void 0 : c.trim()) || "", d.disabled = i.disabled, d.selected = i.selected, t.appendChild(d);
|
|
4526
4534
|
}
|
|
@@ -5295,8 +5303,7 @@ const Ne = g`
|
|
|
5295
5303
|
|
|
5296
5304
|
.nys-textinput__buttoncontainer {
|
|
5297
5305
|
width: var(--_nys-textinput-width);
|
|
5298
|
-
|
|
5299
|
-
max-width: var(--_nys-textinput-width);
|
|
5306
|
+
max-width: 100%;
|
|
5300
5307
|
display: flex;
|
|
5301
5308
|
}
|
|
5302
5309
|
|
|
@@ -5651,7 +5658,7 @@ C([
|
|
|
5651
5658
|
r({ type: String })
|
|
5652
5659
|
], p.prototype, "errorMessage", 2);
|
|
5653
5660
|
C([
|
|
5654
|
-
|
|
5661
|
+
A()
|
|
5655
5662
|
], p.prototype, "showPassword", 2);
|
|
5656
5663
|
let We = p;
|
|
5657
5664
|
customElements.get("nys-textinput") || customElements.define("nys-textinput", We);
|
|
@@ -5939,7 +5946,7 @@ var Xe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, N = (l, e,
|
|
|
5939
5946
|
};
|
|
5940
5947
|
let Je = 0;
|
|
5941
5948
|
var K;
|
|
5942
|
-
const
|
|
5949
|
+
const P = (K = class extends u {
|
|
5943
5950
|
// allows use of elementInternals' API
|
|
5944
5951
|
constructor() {
|
|
5945
5952
|
super(), this.id = "", this.name = "", this.value = "", this.checked = !1, this.disabled = !1, this.noIcon = !1, this.label = "", this.description = "", this._size = "md", this.form = "", this._internals = this.attachInternals();
|
|
@@ -6028,35 +6035,35 @@ const U = (K = class extends u {
|
|
|
6028
6035
|
}, K.VALID_SIZES = ["sm", "md"], K.styles = Ke, K.formAssociated = !0, K);
|
|
6029
6036
|
N([
|
|
6030
6037
|
r({ type: String })
|
|
6031
|
-
],
|
|
6038
|
+
], P.prototype, "id", 2);
|
|
6032
6039
|
N([
|
|
6033
6040
|
r({ type: String, reflect: !0 })
|
|
6034
|
-
],
|
|
6041
|
+
], P.prototype, "name", 2);
|
|
6035
6042
|
N([
|
|
6036
6043
|
r({ type: String })
|
|
6037
|
-
],
|
|
6044
|
+
], P.prototype, "value", 2);
|
|
6038
6045
|
N([
|
|
6039
6046
|
r({ type: Boolean, reflect: !0 })
|
|
6040
|
-
],
|
|
6047
|
+
], P.prototype, "checked", 2);
|
|
6041
6048
|
N([
|
|
6042
6049
|
r({ type: Boolean, reflect: !0 })
|
|
6043
|
-
],
|
|
6050
|
+
], P.prototype, "disabled", 2);
|
|
6044
6051
|
N([
|
|
6045
6052
|
r({ type: Boolean })
|
|
6046
|
-
],
|
|
6053
|
+
], P.prototype, "noIcon", 2);
|
|
6047
6054
|
N([
|
|
6048
6055
|
r({ type: String })
|
|
6049
|
-
],
|
|
6056
|
+
], P.prototype, "label", 2);
|
|
6050
6057
|
N([
|
|
6051
6058
|
r({ type: String })
|
|
6052
|
-
],
|
|
6059
|
+
], P.prototype, "description", 2);
|
|
6053
6060
|
N([
|
|
6054
6061
|
r({ reflect: !0 })
|
|
6055
|
-
],
|
|
6062
|
+
], P.prototype, "size", 1);
|
|
6056
6063
|
N([
|
|
6057
6064
|
r({ type: String })
|
|
6058
|
-
],
|
|
6059
|
-
let et =
|
|
6065
|
+
], P.prototype, "form", 2);
|
|
6066
|
+
let et = P;
|
|
6060
6067
|
customElements.get("nys-toggle") || customElements.define("nys-toggle", et);
|
|
6061
6068
|
const tt = g`
|
|
6062
6069
|
:host {
|
|
@@ -6221,7 +6228,7 @@ var st = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, y1 = (l, e
|
|
|
6221
6228
|
return o && s && st(e, t, s), s;
|
|
6222
6229
|
};
|
|
6223
6230
|
let rt = 0;
|
|
6224
|
-
const
|
|
6231
|
+
const V1 = class V1 extends u {
|
|
6225
6232
|
/**************** Lifecycle Methods ****************/
|
|
6226
6233
|
constructor() {
|
|
6227
6234
|
super(), this.id = "", this.text = "", this.inverted = !1, this.focusable = !1, this._active = !1, this._userHasSetPosition = !1, this._originalUserPosition = null, this._internallyUpdatingPosition = !1, this._position = null, this._handleTooltipEnter = () => {
|
|
@@ -6281,8 +6288,12 @@ const D1 = class D1 extends u {
|
|
|
6281
6288
|
return e == null ? void 0 : e.assignedElements({ flatten: !0 })[0];
|
|
6282
6289
|
}
|
|
6283
6290
|
firstUpdated() {
|
|
6284
|
-
|
|
6285
|
-
e
|
|
6291
|
+
var t;
|
|
6292
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot");
|
|
6293
|
+
e && e.addEventListener("slotchange", () => {
|
|
6294
|
+
const o = this._firstAssignedEl;
|
|
6295
|
+
o && this._applyFocusBehavior(o);
|
|
6296
|
+
});
|
|
6286
6297
|
}
|
|
6287
6298
|
updated(e) {
|
|
6288
6299
|
super.updated(e);
|
|
@@ -6417,8 +6428,8 @@ const D1 = class D1 extends u {
|
|
|
6417
6428
|
`;
|
|
6418
6429
|
}
|
|
6419
6430
|
};
|
|
6420
|
-
|
|
6421
|
-
let X =
|
|
6431
|
+
V1.styles = tt;
|
|
6432
|
+
let X = V1;
|
|
6422
6433
|
y1([
|
|
6423
6434
|
r({ type: String })
|
|
6424
6435
|
], X.prototype, "id", 2);
|
|
@@ -6432,7 +6443,7 @@ y1([
|
|
|
6432
6443
|
r({ type: Boolean, reflect: !0 })
|
|
6433
6444
|
], X.prototype, "focusable", 2);
|
|
6434
6445
|
y1([
|
|
6435
|
-
|
|
6446
|
+
A()
|
|
6436
6447
|
], X.prototype, "_active", 2);
|
|
6437
6448
|
y1([
|
|
6438
6449
|
r({ type: String, reflect: !0 })
|
|
@@ -6485,7 +6496,6 @@ const nt = g`
|
|
|
6485
6496
|
|
|
6486
6497
|
.nys-unavheader__mainwrapper {
|
|
6487
6498
|
background-color: var(--_nys-unavheader-bg-color);
|
|
6488
|
-
padding: var(--nys-space-100, 8px) var(--_nys-unavheader-gutter);
|
|
6489
6499
|
display: flex;
|
|
6490
6500
|
justify-content: center;
|
|
6491
6501
|
}
|
|
@@ -6523,6 +6533,7 @@ const nt = g`
|
|
|
6523
6533
|
|
|
6524
6534
|
.nys-unavheader__maincontent {
|
|
6525
6535
|
display: flex;
|
|
6536
|
+
flex-wrap: wrap;
|
|
6526
6537
|
flex: 1;
|
|
6527
6538
|
justify-content: space-between;
|
|
6528
6539
|
align-items: center;
|
|
@@ -6556,6 +6567,22 @@ const nt = g`
|
|
|
6556
6567
|
display: flex;
|
|
6557
6568
|
align-items: center;
|
|
6558
6569
|
gap: var(--nys-space-300, 24px);
|
|
6570
|
+
padding-top: var(--nys-space-100, 8px);
|
|
6571
|
+
padding-bottom: var(--nys-space-100, 8px);
|
|
6572
|
+
}
|
|
6573
|
+
|
|
6574
|
+
.nys-unavheader__left {
|
|
6575
|
+
order: 2;
|
|
6576
|
+
padding-left: var(--_nys-unavheader-gutter);
|
|
6577
|
+
}
|
|
6578
|
+
.nys-unavheader__right {
|
|
6579
|
+
order: 3;
|
|
6580
|
+
padding-right: var(--_nys-unavheader-gutter);
|
|
6581
|
+
}
|
|
6582
|
+
|
|
6583
|
+
.nys-unavheader__trustbarwrapper {
|
|
6584
|
+
order: 1;
|
|
6585
|
+
width: 100%;
|
|
6559
6586
|
}
|
|
6560
6587
|
|
|
6561
6588
|
#nys-unavheader__translate,
|
|
@@ -6738,7 +6765,7 @@ const nt = g`
|
|
|
6738
6765
|
display: contents;
|
|
6739
6766
|
}
|
|
6740
6767
|
.nys-unavheader__trustbarwrapper {
|
|
6741
|
-
order:
|
|
6768
|
+
order: 4;
|
|
6742
6769
|
}
|
|
6743
6770
|
.nys-unavheader__toptrustbar {
|
|
6744
6771
|
display: none;
|
|
@@ -6760,7 +6787,7 @@ const nt = g`
|
|
|
6760
6787
|
display: contents;
|
|
6761
6788
|
}
|
|
6762
6789
|
.nys-unavheader__trustbarwrapper {
|
|
6763
|
-
order:
|
|
6790
|
+
order: 4;
|
|
6764
6791
|
}
|
|
6765
6792
|
.nys-unavheader__toptrustbar {
|
|
6766
6793
|
display: none;
|
|
@@ -6779,7 +6806,7 @@ const nt = g`
|
|
|
6779
6806
|
display: contents;
|
|
6780
6807
|
}
|
|
6781
6808
|
.nys-unavheader__trustbarwrapper {
|
|
6782
|
-
order:
|
|
6809
|
+
order: 4;
|
|
6783
6810
|
}
|
|
6784
6811
|
.nys-unavheader__toptrustbar {
|
|
6785
6812
|
display: none;
|
|
@@ -6802,12 +6829,12 @@ const nt = g`
|
|
|
6802
6829
|
<path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="#154973"/>
|
|
6803
6830
|
<path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="#154973"/>
|
|
6804
6831
|
</svg>`;
|
|
6805
|
-
var at = Object.defineProperty,
|
|
6832
|
+
var at = Object.defineProperty, l1 = (l, e, t, o) => {
|
|
6806
6833
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
6807
6834
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
6808
6835
|
return s && at(e, t, s), s;
|
|
6809
6836
|
};
|
|
6810
|
-
const
|
|
6837
|
+
const D1 = class D1 extends u {
|
|
6811
6838
|
constructor() {
|
|
6812
6839
|
super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
|
|
6813
6840
|
["English", ""],
|
|
@@ -6870,68 +6897,6 @@ const V1 = class V1 extends u {
|
|
|
6870
6897
|
render() {
|
|
6871
6898
|
return a`
|
|
6872
6899
|
<header class="nys-unavheader">
|
|
6873
|
-
<div class="nys-unavheader__trustbarwrapper">
|
|
6874
|
-
<div
|
|
6875
|
-
class="nys-unavheader__toptrustbar"
|
|
6876
|
-
@click="${this._toggleTrustbar}"
|
|
6877
|
-
@keydown="${(e) => {
|
|
6878
|
-
(e.code === "Enter" || e.code === "Space" || e.key === "Enter" || e.key === " ") && this._toggleTrustbar();
|
|
6879
|
-
}}"
|
|
6880
|
-
>
|
|
6881
|
-
<div class="nys-unavheader__officialmessage">
|
|
6882
|
-
<label id="nys-unavheader__official"
|
|
6883
|
-
>An official website of New York State</label
|
|
6884
|
-
>
|
|
6885
|
-
<nys-button
|
|
6886
|
-
id="nys-unavheader__know"
|
|
6887
|
-
label="Here's how you know"
|
|
6888
|
-
ariaLabel=${this.trustbarVisible ? "Here's how you know expanded" : "Here's how you know collapsed"}
|
|
6889
|
-
variant="ghost"
|
|
6890
|
-
size="sm"
|
|
6891
|
-
suffixIcon="slotted"
|
|
6892
|
-
>
|
|
6893
|
-
<nys-icon
|
|
6894
|
-
slot="suffix-icon"
|
|
6895
|
-
size="12"
|
|
6896
|
-
name=${this.trustbarVisible ? "chevron_up" : "chevron_down"}
|
|
6897
|
-
></nys-icon>
|
|
6898
|
-
</nys-button>
|
|
6899
|
-
</div>
|
|
6900
|
-
</div>
|
|
6901
|
-
<div
|
|
6902
|
-
class="nys-unavheader__trustbar ${this.trustbarVisible ? "show" : "hide"}"
|
|
6903
|
-
>
|
|
6904
|
-
<div class="nys-unavheader__trustcontent">
|
|
6905
|
-
<div class="nys-unavheader__trustcontentmessage">
|
|
6906
|
-
<nys-icon size="3xl" name="account_balance_filled"></nys-icon>
|
|
6907
|
-
<label><b>Official websites use ny.gov</b></label>
|
|
6908
|
-
<label
|
|
6909
|
-
>A <b>ny.gov</b> website belongs to an official New York State
|
|
6910
|
-
government organization.</label
|
|
6911
|
-
>
|
|
6912
|
-
</div>
|
|
6913
|
-
<div class="nys-unavheader__trustcontentmessage">
|
|
6914
|
-
<nys-icon size="3xl" name="lock_filled"></nys-icon>
|
|
6915
|
-
<label><b>Secure ny.gov websites use HTTPS</b></label>
|
|
6916
|
-
<label
|
|
6917
|
-
>A <b>lock icon</b> or <b>https://</b> means you've safely
|
|
6918
|
-
connected to the ny.gov website. Share sensitive information
|
|
6919
|
-
only on official, secure websites.</label
|
|
6920
|
-
>
|
|
6921
|
-
</div>
|
|
6922
|
-
</div>
|
|
6923
|
-
<nys-button
|
|
6924
|
-
id="nys-unavheader__closetrustbar"
|
|
6925
|
-
class="nys-unavheader__iconbutton"
|
|
6926
|
-
variant="ghost"
|
|
6927
|
-
circle
|
|
6928
|
-
icon="close"
|
|
6929
|
-
size="sm"
|
|
6930
|
-
ariaLabel="Close this notice"
|
|
6931
|
-
.onClick="${() => this._toggleTrustbar()}"
|
|
6932
|
-
></nys-button>
|
|
6933
|
-
</div>
|
|
6934
|
-
</div>
|
|
6935
6900
|
<div class="nys-unavheader__mainwrapper" id="nys-universal-navigation">
|
|
6936
6901
|
<div class="nys-unavheader__maincontent">
|
|
6937
6902
|
<div class="nys-unavheader__left">
|
|
@@ -6967,6 +6932,71 @@ const V1 = class V1 extends u {
|
|
|
6967
6932
|
</div>
|
|
6968
6933
|
</div>
|
|
6969
6934
|
</div>
|
|
6935
|
+
<div class="nys-unavheader__trustbarwrapper">
|
|
6936
|
+
<div
|
|
6937
|
+
class="nys-unavheader__toptrustbar"
|
|
6938
|
+
@click="${this._toggleTrustbar}"
|
|
6939
|
+
@keydown="${(e) => {
|
|
6940
|
+
(e.code === "Enter" || e.code === "Space" || e.key === "Enter" || e.key === " ") && this._toggleTrustbar();
|
|
6941
|
+
}}"
|
|
6942
|
+
>
|
|
6943
|
+
<div class="nys-unavheader__officialmessage">
|
|
6944
|
+
<label id="nys-unavheader__official"
|
|
6945
|
+
>An official website of New York State</label
|
|
6946
|
+
>
|
|
6947
|
+
<nys-button
|
|
6948
|
+
id="nys-unavheader__know"
|
|
6949
|
+
label="Here's how you know"
|
|
6950
|
+
ariaLabel=${this.trustbarVisible ? "Here's how you know expanded" : "Here's how you know collapsed"}
|
|
6951
|
+
variant="ghost"
|
|
6952
|
+
size="sm"
|
|
6953
|
+
suffixIcon="slotted"
|
|
6954
|
+
>
|
|
6955
|
+
<nys-icon
|
|
6956
|
+
slot="suffix-icon"
|
|
6957
|
+
size="12"
|
|
6958
|
+
name=${this.trustbarVisible ? "chevron_up" : "chevron_down"}
|
|
6959
|
+
></nys-icon>
|
|
6960
|
+
</nys-button>
|
|
6961
|
+
</div>
|
|
6962
|
+
</div>
|
|
6963
|
+
<div
|
|
6964
|
+
class="nys-unavheader__trustbar ${this.trustbarVisible ? "show" : "hide"}"
|
|
6965
|
+
>
|
|
6966
|
+
<div class="nys-unavheader__trustcontent">
|
|
6967
|
+
<div class="nys-unavheader__trustcontentmessage">
|
|
6968
|
+
<nys-icon
|
|
6969
|
+
size="3xl"
|
|
6970
|
+
name="account_balance_filled"
|
|
6971
|
+
></nys-icon>
|
|
6972
|
+
<label><b>Official websites use ny.gov</b></label>
|
|
6973
|
+
<label
|
|
6974
|
+
>A <b>ny.gov</b> website belongs to an official New York
|
|
6975
|
+
State government organization.</label
|
|
6976
|
+
>
|
|
6977
|
+
</div>
|
|
6978
|
+
<div class="nys-unavheader__trustcontentmessage">
|
|
6979
|
+
<nys-icon size="3xl" name="lock_filled"></nys-icon>
|
|
6980
|
+
<label><b>Secure ny.gov websites use HTTPS</b></label>
|
|
6981
|
+
<label
|
|
6982
|
+
>A <b>lock icon</b> or <b>https://</b> means you've safely
|
|
6983
|
+
connected to the ny.gov website. Share sensitive
|
|
6984
|
+
information only on official, secure websites.</label
|
|
6985
|
+
>
|
|
6986
|
+
</div>
|
|
6987
|
+
</div>
|
|
6988
|
+
<nys-button
|
|
6989
|
+
id="nys-unavheader__closetrustbar"
|
|
6990
|
+
class="nys-unavheader__iconbutton"
|
|
6991
|
+
variant="ghost"
|
|
6992
|
+
circle
|
|
6993
|
+
icon="close"
|
|
6994
|
+
size="sm"
|
|
6995
|
+
ariaLabel="Close this notice"
|
|
6996
|
+
.onClick="${() => this._toggleTrustbar()}"
|
|
6997
|
+
></nys-button>
|
|
6998
|
+
</div>
|
|
6999
|
+
</div>
|
|
6970
7000
|
<div class="nys-unavheader__right">
|
|
6971
7001
|
${this.hideTranslate ? null : a`<div class="nys-unavheader__translatewrapper">
|
|
6972
7002
|
<div
|
|
@@ -6992,6 +7022,7 @@ const V1 = class V1 extends u {
|
|
|
6992
7022
|
<nys-button
|
|
6993
7023
|
variant="ghost"
|
|
6994
7024
|
label="Translate"
|
|
7025
|
+
size="sm"
|
|
6995
7026
|
prefixIcon="language_filled"
|
|
6996
7027
|
suffixIcon=${this.languageVisible ? "chevron_up" : "chevron_down"}
|
|
6997
7028
|
ariaLabel=${this.languageVisible ? "Translate expanded" : "Translate collapsed"}
|
|
@@ -7084,30 +7115,30 @@ const V1 = class V1 extends u {
|
|
|
7084
7115
|
`;
|
|
7085
7116
|
}
|
|
7086
7117
|
};
|
|
7087
|
-
|
|
7088
|
-
let
|
|
7089
|
-
|
|
7118
|
+
D1.styles = nt;
|
|
7119
|
+
let O = D1;
|
|
7120
|
+
l1([
|
|
7090
7121
|
r({ type: Boolean })
|
|
7091
|
-
],
|
|
7092
|
-
|
|
7122
|
+
], O.prototype, "trustbarVisible");
|
|
7123
|
+
l1([
|
|
7093
7124
|
r({ type: Boolean })
|
|
7094
|
-
],
|
|
7095
|
-
|
|
7125
|
+
], O.prototype, "searchDropdownVisible");
|
|
7126
|
+
l1([
|
|
7096
7127
|
r({ type: Boolean })
|
|
7097
|
-
],
|
|
7098
|
-
|
|
7128
|
+
], O.prototype, "languageVisible");
|
|
7129
|
+
l1([
|
|
7099
7130
|
r({ type: Boolean })
|
|
7100
|
-
],
|
|
7101
|
-
|
|
7131
|
+
], O.prototype, "isSearchFocused");
|
|
7132
|
+
l1([
|
|
7102
7133
|
r({ type: Boolean })
|
|
7103
|
-
],
|
|
7104
|
-
|
|
7134
|
+
], O.prototype, "hideTranslate");
|
|
7135
|
+
l1([
|
|
7105
7136
|
r({ type: Boolean })
|
|
7106
|
-
],
|
|
7107
|
-
|
|
7137
|
+
], O.prototype, "hideSearch");
|
|
7138
|
+
l1([
|
|
7108
7139
|
r({ type: String, reflect: !0 })
|
|
7109
|
-
],
|
|
7110
|
-
customElements.get("nys-unavheader") || customElements.define("nys-unavheader",
|
|
7140
|
+
], O.prototype, "languages");
|
|
7141
|
+
customElements.get("nys-unavheader") || customElements.define("nys-unavheader", O);
|
|
7111
7142
|
const lt = g`
|
|
7112
7143
|
:host {
|
|
7113
7144
|
/* Global Header Styles */
|
|
@@ -7505,10 +7536,10 @@ g1([
|
|
|
7505
7536
|
r({ type: String })
|
|
7506
7537
|
], s1.prototype, "homepageLink");
|
|
7507
7538
|
g1([
|
|
7508
|
-
|
|
7539
|
+
A()
|
|
7509
7540
|
], s1.prototype, "slotHasContent");
|
|
7510
7541
|
g1([
|
|
7511
|
-
|
|
7542
|
+
A()
|
|
7512
7543
|
], s1.prototype, "isMobileMenuOpen");
|
|
7513
7544
|
customElements.get("nys-globalheader") || customElements.define("nys-globalheader", s1);
|
|
7514
7545
|
const dt = g`
|
|
@@ -7732,7 +7763,7 @@ w1([
|
|
|
7732
7763
|
r({ type: String })
|
|
7733
7764
|
], d1.prototype, "homepageLink");
|
|
7734
7765
|
w1([
|
|
7735
|
-
|
|
7766
|
+
A()
|
|
7736
7767
|
], d1.prototype, "slotHasContent");
|
|
7737
7768
|
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", d1);
|
|
7738
7769
|
const yt = g`
|
|
@@ -7945,12 +7976,12 @@ const yt = g`
|
|
|
7945
7976
|
}
|
|
7946
7977
|
};
|
|
7947
7978
|
E1.styles = yt;
|
|
7948
|
-
let
|
|
7949
|
-
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter",
|
|
7979
|
+
let m1 = E1;
|
|
7980
|
+
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", m1);
|
|
7950
7981
|
export {
|
|
7951
7982
|
R1 as NysAlert,
|
|
7952
7983
|
G1 as NysAvatar,
|
|
7953
|
-
|
|
7984
|
+
o1 as NysBacktotop,
|
|
7954
7985
|
ee as NysButton,
|
|
7955
7986
|
le as NysCheckbox,
|
|
7956
7987
|
re as NysCheckboxgroup,
|
|
@@ -7959,8 +7990,8 @@ export {
|
|
|
7959
7990
|
d1 as NysGlobalFooter,
|
|
7960
7991
|
s1 as NysGlobalHeader,
|
|
7961
7992
|
me as NysIcon,
|
|
7962
|
-
|
|
7963
|
-
|
|
7993
|
+
n1 as NysLabel,
|
|
7994
|
+
a1 as NysOption,
|
|
7964
7995
|
ze as NysRadiobutton,
|
|
7965
7996
|
Se as NysRadiogroup,
|
|
7966
7997
|
Be as NysSelect,
|
|
@@ -7969,7 +8000,7 @@ export {
|
|
|
7969
8000
|
We as NysTextinput,
|
|
7970
8001
|
et as NysToggle,
|
|
7971
8002
|
X as NysTooltip,
|
|
7972
|
-
|
|
7973
|
-
|
|
8003
|
+
m1 as NysUnavFooter,
|
|
8004
|
+
O as NysUnavHeader
|
|
7974
8005
|
};
|
|
7975
8006
|
//# sourceMappingURL=nysds.es.js.map
|