@nysds/components 1.5.2 → 1.6.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/dist/nysds.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as r, state as
|
|
1
|
+
import { css as C, LitElement as u, html as a } from "lit";
|
|
2
|
+
import { property as r, state as B } 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
|
+
* New York State Design System (v1.6.0)
|
|
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
|
|
9
9
|
*/
|
|
10
|
-
const q1 =
|
|
10
|
+
const q1 = C`
|
|
11
11
|
:host {
|
|
12
12
|
/* Global Alert Styles */
|
|
13
13
|
--_nys-alert-border-width: var(--nys-border-width-lg, 4px);
|
|
@@ -238,12 +238,12 @@ const q1 = g`
|
|
|
238
238
|
text-decoration-thickness: 3px;
|
|
239
239
|
}
|
|
240
240
|
`;
|
|
241
|
-
var U1 = Object.defineProperty,
|
|
242
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
241
|
+
var U1 = Object.defineProperty, O1 = Object.getOwnPropertyDescriptor, V = (l, e, t, o) => {
|
|
242
|
+
for (var s = o > 1 ? void 0 : o ? O1(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;
|
|
245
245
|
};
|
|
246
|
-
let
|
|
246
|
+
let P1 = 0;
|
|
247
247
|
var J;
|
|
248
248
|
const k = (J = class extends u {
|
|
249
249
|
constructor() {
|
|
@@ -276,7 +276,7 @@ const k = (J = class extends u {
|
|
|
276
276
|
}
|
|
277
277
|
/******************** Functions ********************/
|
|
278
278
|
_generateUniqueId() {
|
|
279
|
-
return `nys-alert-${Date.now()}-${
|
|
279
|
+
return `nys-alert-${Date.now()}-${P1++}`;
|
|
280
280
|
}
|
|
281
281
|
// Helper function for overriding default icons or checking special naming cases (e.g. type=success)
|
|
282
282
|
_getIconName() {
|
|
@@ -315,7 +315,6 @@ const k = (J = class extends u {
|
|
|
315
315
|
${this._alertClosed ? "" : a` <div
|
|
316
316
|
id=${this.id}
|
|
317
317
|
class="nys-alert__container ${this._slotHasContent || ((o = this.text) == null ? void 0 : o.trim().length) > 0 ? "" : "nys-alert--centered"}"
|
|
318
|
-
role=${e}
|
|
319
318
|
aria-label=${h(
|
|
320
319
|
t.trim() !== "" ? t : void 0
|
|
321
320
|
)}
|
|
@@ -327,7 +326,7 @@ const k = (J = class extends u {
|
|
|
327
326
|
label="${this.type} icon"
|
|
328
327
|
></nys-icon>
|
|
329
328
|
</div>
|
|
330
|
-
<div class="nys-alert__texts">
|
|
329
|
+
<div class="nys-alert__texts" role=${e}>
|
|
331
330
|
<p class="nys-alert__header">${this.heading}</p>
|
|
332
331
|
${this._slotHasContent ? a`<slot></slot>` : ((s = this.text) == null ? void 0 : s.trim().length) > 0 ? a`<p class="nys-alert__text">${this.text}</p>` : ""}
|
|
333
332
|
${this.primaryAction || this.secondaryAction ? a`<div class="nys-alert__actions">
|
|
@@ -352,7 +351,7 @@ const k = (J = class extends u {
|
|
|
352
351
|
icon="close"
|
|
353
352
|
size="sm"
|
|
354
353
|
?inverted=${this.type === "emergency"}
|
|
355
|
-
ariaLabel="
|
|
354
|
+
ariaLabel="${this.heading}, alert, Close"
|
|
356
355
|
.onClick=${() => this._closeAlert()}
|
|
357
356
|
></nys-button>` : ""}
|
|
358
357
|
</div>`}
|
|
@@ -366,48 +365,48 @@ const k = (J = class extends u {
|
|
|
366
365
|
"danger",
|
|
367
366
|
"emergency"
|
|
368
367
|
], J);
|
|
369
|
-
|
|
368
|
+
V([
|
|
370
369
|
r({ type: String })
|
|
371
370
|
], k.prototype, "id", 2);
|
|
372
|
-
|
|
371
|
+
V([
|
|
373
372
|
r({ type: String })
|
|
374
373
|
], k.prototype, "heading", 2);
|
|
375
|
-
|
|
374
|
+
V([
|
|
376
375
|
r({ type: String })
|
|
377
376
|
], k.prototype, "icon", 2);
|
|
378
|
-
|
|
377
|
+
V([
|
|
379
378
|
r({ type: Boolean, reflect: !0 })
|
|
380
379
|
], k.prototype, "dismissible", 2);
|
|
381
|
-
|
|
380
|
+
V([
|
|
382
381
|
r({ type: Number, reflect: !0 })
|
|
383
382
|
], k.prototype, "duration", 2);
|
|
384
|
-
|
|
383
|
+
V([
|
|
385
384
|
r({ type: String })
|
|
386
385
|
], k.prototype, "text", 2);
|
|
387
|
-
|
|
386
|
+
V([
|
|
388
387
|
r({ type: String })
|
|
389
388
|
], k.prototype, "primaryAction", 2);
|
|
390
|
-
|
|
389
|
+
V([
|
|
391
390
|
r({ type: String })
|
|
392
391
|
], k.prototype, "secondaryAction", 2);
|
|
393
|
-
|
|
392
|
+
V([
|
|
394
393
|
r({ type: String })
|
|
395
394
|
], k.prototype, "primaryLabel", 2);
|
|
396
|
-
|
|
395
|
+
V([
|
|
397
396
|
r({ type: String })
|
|
398
397
|
], k.prototype, "secondaryLabel", 2);
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
V([
|
|
399
|
+
B()
|
|
401
400
|
], k.prototype, "_alertClosed", 2);
|
|
402
|
-
|
|
403
|
-
|
|
401
|
+
V([
|
|
402
|
+
B()
|
|
404
403
|
], k.prototype, "_slotHasContent", 2);
|
|
405
|
-
|
|
404
|
+
V([
|
|
406
405
|
r({ reflect: !0 })
|
|
407
406
|
], k.prototype, "type", 1);
|
|
408
407
|
let R1 = k;
|
|
409
408
|
customElements.get("nys-alert") || customElements.define("nys-alert", R1);
|
|
410
|
-
const T1 =
|
|
409
|
+
const T1 = C`
|
|
411
410
|
:host {
|
|
412
411
|
/* Global Avatar Styles */
|
|
413
412
|
--_nys-avatar-shape: var(--nys-radius-round, 1776px);
|
|
@@ -588,11 +587,11 @@ Q([
|
|
|
588
587
|
r({ reflect: !0 })
|
|
589
588
|
], R.prototype, "shape", 1);
|
|
590
589
|
Q([
|
|
591
|
-
|
|
590
|
+
B()
|
|
592
591
|
], R.prototype, "_slotHasContent", 2);
|
|
593
592
|
let G1 = R;
|
|
594
593
|
customElements.get("nys-avatar") || customElements.define("nys-avatar", G1);
|
|
595
|
-
const Y1 =
|
|
594
|
+
const Y1 = C`
|
|
596
595
|
:host {
|
|
597
596
|
}
|
|
598
597
|
|
|
@@ -606,6 +605,7 @@ const Y1 = g`
|
|
|
606
605
|
bottom: 1rem;
|
|
607
606
|
right: 1rem;
|
|
608
607
|
z-index: 9999;
|
|
608
|
+
display: none;
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
.left {
|
|
@@ -617,24 +617,25 @@ const Y1 = g`
|
|
|
617
617
|
display: inline-flex;
|
|
618
618
|
}
|
|
619
619
|
`;
|
|
620
|
-
var W1 = Object.defineProperty,
|
|
620
|
+
var W1 = Object.defineProperty, v1 = (l, e, t, o) => {
|
|
621
621
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
622
622
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
623
623
|
return s && W1(e, t, s), s;
|
|
624
624
|
};
|
|
625
625
|
const k1 = class k1 extends u {
|
|
626
626
|
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)");
|
|
627
|
+
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
628
|
}
|
|
629
629
|
connectedCallback() {
|
|
630
|
-
super.connectedCallback(), window.addEventListener("scroll", this._handleScroll), this.mediaQuery.addEventListener("change", this._handleResize), this._handleResize();
|
|
630
|
+
super.connectedCallback(), this.forceVisible = this.hasAttribute("visible"), window.addEventListener("scroll", this._handleScroll), this.mediaQuery.addEventListener("change", this._handleResize), this._handleResize();
|
|
631
631
|
}
|
|
632
632
|
disconnectedCallback() {
|
|
633
633
|
window.removeEventListener("scroll", this._handleScroll), this.mediaQuery.removeEventListener("change", this._handleResize), super.disconnectedCallback();
|
|
634
634
|
}
|
|
635
635
|
_handleScroll() {
|
|
636
|
-
|
|
637
|
-
|
|
636
|
+
if (this.forceVisible) return;
|
|
637
|
+
const e = window.innerHeight, t = document.documentElement.scrollHeight;
|
|
638
|
+
this.visible = t >= e * 4 && window.scrollY > e * 1.5;
|
|
638
639
|
}
|
|
639
640
|
_scrollToTop() {
|
|
640
641
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
@@ -652,7 +653,8 @@ const k1 = class k1 extends u {
|
|
|
652
653
|
id="nys-backtotop"
|
|
653
654
|
prefixIcon="chevron_up"
|
|
654
655
|
variant="outline"
|
|
655
|
-
label="Back
|
|
656
|
+
label="Back to top"
|
|
657
|
+
size="sm"
|
|
656
658
|
class="${e}"
|
|
657
659
|
.onClick=${this._scrollToTop}
|
|
658
660
|
?circle=${this.isMobile}
|
|
@@ -660,18 +662,21 @@ const k1 = class k1 extends u {
|
|
|
660
662
|
}
|
|
661
663
|
};
|
|
662
664
|
k1.styles = Y1;
|
|
663
|
-
let
|
|
664
|
-
|
|
665
|
+
let o1 = k1;
|
|
666
|
+
v1([
|
|
665
667
|
r({ type: String })
|
|
666
|
-
],
|
|
667
|
-
|
|
668
|
+
], o1.prototype, "position");
|
|
669
|
+
v1([
|
|
668
670
|
r({ type: Boolean, reflect: !0 })
|
|
669
|
-
],
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
],
|
|
673
|
-
|
|
674
|
-
|
|
671
|
+
], o1.prototype, "visible");
|
|
672
|
+
v1([
|
|
673
|
+
B()
|
|
674
|
+
], o1.prototype, "isMobile");
|
|
675
|
+
v1([
|
|
676
|
+
B()
|
|
677
|
+
], o1.prototype, "forceVisible");
|
|
678
|
+
customElements.get("nys-backtotop") || customElements.define("nys-backtotop", o1);
|
|
679
|
+
const K1 = C`
|
|
675
680
|
:host {
|
|
676
681
|
/* Anything that can be overridden should be defined here */
|
|
677
682
|
|
|
@@ -1099,7 +1104,7 @@ var X1 = Object.defineProperty, Q1 = Object.getOwnPropertyDescriptor, v = (l, e,
|
|
|
1099
1104
|
};
|
|
1100
1105
|
let J1 = 0;
|
|
1101
1106
|
var w;
|
|
1102
|
-
const
|
|
1107
|
+
const g = (w = class extends u {
|
|
1103
1108
|
// allows use of elementInternals' API
|
|
1104
1109
|
constructor() {
|
|
1105
1110
|
super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.ariaLabel = "", this.prefixIcon = "", this.suffixIcon = "", this.circle = !1, this.icon = "", this.disabled = !1, this.form = "", this.value = "", this.ariaDescription = "", this._type = "button", this.onClick = () => {
|
|
@@ -1263,67 +1268,67 @@ const f = (w = class extends u {
|
|
|
1263
1268
|
], w.styles = K1, w.formAssociated = !0, w);
|
|
1264
1269
|
v([
|
|
1265
1270
|
r({ type: String })
|
|
1266
|
-
],
|
|
1271
|
+
], g.prototype, "id", 2);
|
|
1267
1272
|
v([
|
|
1268
1273
|
r({ type: String, reflect: !0 })
|
|
1269
|
-
],
|
|
1274
|
+
], g.prototype, "name", 2);
|
|
1270
1275
|
v([
|
|
1271
1276
|
r({ reflect: !0 })
|
|
1272
|
-
],
|
|
1277
|
+
], g.prototype, "size", 1);
|
|
1273
1278
|
v([
|
|
1274
1279
|
r({ type: Boolean, reflect: !0 })
|
|
1275
|
-
],
|
|
1280
|
+
], g.prototype, "fullWidth", 2);
|
|
1276
1281
|
v([
|
|
1277
1282
|
r({ reflect: !0 })
|
|
1278
|
-
],
|
|
1283
|
+
], g.prototype, "variant", 1);
|
|
1279
1284
|
v([
|
|
1280
1285
|
r({ type: Boolean, reflect: !0 })
|
|
1281
|
-
],
|
|
1286
|
+
], g.prototype, "inverted", 2);
|
|
1282
1287
|
v([
|
|
1283
1288
|
r({ type: String })
|
|
1284
|
-
],
|
|
1289
|
+
], g.prototype, "label", 2);
|
|
1285
1290
|
v([
|
|
1286
1291
|
r({ type: String })
|
|
1287
|
-
],
|
|
1292
|
+
], g.prototype, "ariaLabel", 2);
|
|
1288
1293
|
v([
|
|
1289
1294
|
r({ type: String })
|
|
1290
|
-
],
|
|
1295
|
+
], g.prototype, "prefixIcon", 2);
|
|
1291
1296
|
v([
|
|
1292
1297
|
r({ type: String })
|
|
1293
|
-
],
|
|
1298
|
+
], g.prototype, "suffixIcon", 2);
|
|
1294
1299
|
v([
|
|
1295
1300
|
r({ type: Boolean, reflect: !0 })
|
|
1296
|
-
],
|
|
1301
|
+
], g.prototype, "circle", 2);
|
|
1297
1302
|
v([
|
|
1298
1303
|
r({ type: String })
|
|
1299
|
-
],
|
|
1304
|
+
], g.prototype, "icon", 2);
|
|
1300
1305
|
v([
|
|
1301
1306
|
r({ type: Boolean, reflect: !0 })
|
|
1302
|
-
],
|
|
1307
|
+
], g.prototype, "disabled", 2);
|
|
1303
1308
|
v([
|
|
1304
1309
|
r({ type: String })
|
|
1305
|
-
],
|
|
1310
|
+
], g.prototype, "form", 2);
|
|
1306
1311
|
v([
|
|
1307
1312
|
r({ type: String })
|
|
1308
|
-
],
|
|
1313
|
+
], g.prototype, "value", 2);
|
|
1309
1314
|
v([
|
|
1310
1315
|
r({ type: String })
|
|
1311
|
-
],
|
|
1316
|
+
], g.prototype, "ariaDescription", 2);
|
|
1312
1317
|
v([
|
|
1313
1318
|
r({ reflect: !0 })
|
|
1314
|
-
],
|
|
1319
|
+
], g.prototype, "type", 1);
|
|
1315
1320
|
v([
|
|
1316
1321
|
r({ type: Function })
|
|
1317
|
-
],
|
|
1322
|
+
], g.prototype, "onClick", 2);
|
|
1318
1323
|
v([
|
|
1319
1324
|
r({ type: String })
|
|
1320
|
-
],
|
|
1325
|
+
], g.prototype, "href", 2);
|
|
1321
1326
|
v([
|
|
1322
1327
|
r({ reflect: !0 })
|
|
1323
|
-
],
|
|
1324
|
-
let ee =
|
|
1328
|
+
], g.prototype, "target", 1);
|
|
1329
|
+
let ee = g;
|
|
1325
1330
|
customElements.get("nys-button") || customElements.define("nys-button", ee);
|
|
1326
|
-
const H1 =
|
|
1331
|
+
const H1 = C`
|
|
1327
1332
|
:host {
|
|
1328
1333
|
/* Anything that can be overridden should be defined here */
|
|
1329
1334
|
|
|
@@ -1729,7 +1734,7 @@ const A = (j = class extends u {
|
|
|
1729
1734
|
if (Array.from(
|
|
1730
1735
|
this.querySelectorAll("nys-checkbox")
|
|
1731
1736
|
).filter(
|
|
1732
|
-
(
|
|
1737
|
+
($) => $.checked
|
|
1733
1738
|
).length === 0)
|
|
1734
1739
|
return c;
|
|
1735
1740
|
} else
|
|
@@ -1834,7 +1839,7 @@ T([
|
|
|
1834
1839
|
], A.prototype, "size", 1);
|
|
1835
1840
|
let re = A;
|
|
1836
1841
|
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", re);
|
|
1837
|
-
var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor,
|
|
1842
|
+
var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, D = (l, e, t, o) => {
|
|
1838
1843
|
for (var s = o > 1 ? void 0 : o ? ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
1839
1844
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1840
1845
|
return o && s && ne(e, t, s), s;
|
|
@@ -1999,48 +2004,48 @@ const L = (G = class extends u {
|
|
|
1999
2004
|
`;
|
|
2000
2005
|
}
|
|
2001
2006
|
}, G.VALID_SIZES = ["sm", "md"], G.styles = H1, G.formAssociated = !0, G);
|
|
2002
|
-
|
|
2007
|
+
D([
|
|
2003
2008
|
r({ type: Boolean, reflect: !0 })
|
|
2004
2009
|
], L.prototype, "checked", 2);
|
|
2005
|
-
|
|
2010
|
+
D([
|
|
2006
2011
|
r({ type: Boolean, reflect: !0 })
|
|
2007
2012
|
], L.prototype, "disabled", 2);
|
|
2008
|
-
|
|
2013
|
+
D([
|
|
2009
2014
|
r({ type: Boolean, reflect: !0 })
|
|
2010
2015
|
], L.prototype, "required", 2);
|
|
2011
|
-
|
|
2016
|
+
D([
|
|
2012
2017
|
r({ type: String })
|
|
2013
2018
|
], L.prototype, "label", 2);
|
|
2014
|
-
|
|
2019
|
+
D([
|
|
2015
2020
|
r({ type: String })
|
|
2016
2021
|
], L.prototype, "description", 2);
|
|
2017
|
-
|
|
2022
|
+
D([
|
|
2018
2023
|
r({ type: String })
|
|
2019
2024
|
], L.prototype, "id", 2);
|
|
2020
|
-
|
|
2025
|
+
D([
|
|
2021
2026
|
r({ type: String, reflect: !0 })
|
|
2022
2027
|
], L.prototype, "name", 2);
|
|
2023
|
-
|
|
2028
|
+
D([
|
|
2024
2029
|
r({ type: String })
|
|
2025
2030
|
], L.prototype, "value", 2);
|
|
2026
|
-
|
|
2031
|
+
D([
|
|
2027
2032
|
r({ type: Boolean, reflect: !0 })
|
|
2028
2033
|
], L.prototype, "showError", 2);
|
|
2029
|
-
|
|
2034
|
+
D([
|
|
2030
2035
|
r({ type: String })
|
|
2031
2036
|
], L.prototype, "errorMessage", 2);
|
|
2032
|
-
|
|
2037
|
+
D([
|
|
2033
2038
|
r({ type: Boolean })
|
|
2034
2039
|
], L.prototype, "groupExist", 2);
|
|
2035
|
-
|
|
2040
|
+
D([
|
|
2036
2041
|
r({ type: Boolean, reflect: !0 })
|
|
2037
2042
|
], L.prototype, "tile", 2);
|
|
2038
|
-
|
|
2043
|
+
D([
|
|
2039
2044
|
r({ reflect: !0 })
|
|
2040
2045
|
], L.prototype, "size", 1);
|
|
2041
2046
|
let le = L;
|
|
2042
2047
|
customElements.get("nys-checkbox") || customElements.define("nys-checkbox", le);
|
|
2043
|
-
const ce =
|
|
2048
|
+
const ce = C`
|
|
2044
2049
|
:host {
|
|
2045
2050
|
--_nys-errormessage-font-family: var(
|
|
2046
2051
|
--nys-font-family-ui,
|
|
@@ -2098,7 +2103,7 @@ var de = Object.defineProperty, x1 = (l, e, t, o) => {
|
|
|
2098
2103
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2099
2104
|
return s && de(e, t, s), s;
|
|
2100
2105
|
};
|
|
2101
|
-
const
|
|
2106
|
+
const g1 = class g1 extends u {
|
|
2102
2107
|
// allows use of elementInternals' API
|
|
2103
2108
|
constructor() {
|
|
2104
2109
|
super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
|
|
@@ -2110,8 +2115,8 @@ const f1 = class f1 extends u {
|
|
|
2110
2115
|
</div>` : ""}`;
|
|
2111
2116
|
}
|
|
2112
2117
|
};
|
|
2113
|
-
|
|
2114
|
-
let c1 =
|
|
2118
|
+
g1.styles = ce, g1.formAssociated = !0;
|
|
2119
|
+
let c1 = g1;
|
|
2115
2120
|
x1([
|
|
2116
2121
|
r({ type: Boolean })
|
|
2117
2122
|
], c1.prototype, "showError");
|
|
@@ -2130,7 +2135,7 @@ async function he(l, e) {
|
|
|
2130
2135
|
return !0;
|
|
2131
2136
|
return !1;
|
|
2132
2137
|
}
|
|
2133
|
-
const ye =
|
|
2138
|
+
const ye = C`
|
|
2134
2139
|
:host {
|
|
2135
2140
|
/* Global Fileinput Styles */
|
|
2136
2141
|
--_nys-fileinput-gap: var(--nys-space-100, 8px);
|
|
@@ -2250,7 +2255,7 @@ const ye = g`
|
|
|
2250
2255
|
progress::-webkit-progress-bar {
|
|
2251
2256
|
background: var(--_nys-fileinput-progress-background);
|
|
2252
2257
|
}
|
|
2253
|
-
`, ue =
|
|
2258
|
+
`, ue = C`
|
|
2254
2259
|
:host {
|
|
2255
2260
|
/* Global fileitem Styles */
|
|
2256
2261
|
--_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
|
|
@@ -2388,7 +2393,7 @@ const ye = g`
|
|
|
2388
2393
|
}
|
|
2389
2394
|
}
|
|
2390
2395
|
`;
|
|
2391
|
-
var pe = Object.defineProperty,
|
|
2396
|
+
var pe = Object.defineProperty, _1 = (l, e, t, o) => {
|
|
2392
2397
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2393
2398
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2394
2399
|
return s && pe(e, t, s), s;
|
|
@@ -2467,27 +2472,27 @@ const L1 = class L1 extends u {
|
|
|
2467
2472
|
}
|
|
2468
2473
|
};
|
|
2469
2474
|
L1.styles = ue;
|
|
2470
|
-
let
|
|
2471
|
-
|
|
2475
|
+
let r1 = L1;
|
|
2476
|
+
_1([
|
|
2472
2477
|
r({ type: String })
|
|
2473
|
-
],
|
|
2474
|
-
|
|
2478
|
+
], r1.prototype, "filename");
|
|
2479
|
+
_1([
|
|
2475
2480
|
r({ type: String })
|
|
2476
|
-
],
|
|
2477
|
-
|
|
2481
|
+
], r1.prototype, "status");
|
|
2482
|
+
_1([
|
|
2478
2483
|
r({ type: Number })
|
|
2479
|
-
],
|
|
2480
|
-
|
|
2484
|
+
], r1.prototype, "progress");
|
|
2485
|
+
_1([
|
|
2481
2486
|
r({ type: String })
|
|
2482
|
-
],
|
|
2483
|
-
customElements.define("nys-fileitem",
|
|
2484
|
-
var
|
|
2487
|
+
], r1.prototype, "errorMessage");
|
|
2488
|
+
customElements.define("nys-fileitem", r1);
|
|
2489
|
+
var Ce = Object.defineProperty, M = (l, e, t, o) => {
|
|
2485
2490
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2486
2491
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2487
|
-
return s &&
|
|
2492
|
+
return s && Ce(e, t, s), s;
|
|
2488
2493
|
};
|
|
2489
|
-
let
|
|
2490
|
-
const
|
|
2494
|
+
let ge = 0;
|
|
2495
|
+
const f1 = class f1 extends u {
|
|
2491
2496
|
// allows use of elementInternals' API
|
|
2492
2497
|
constructor() {
|
|
2493
2498
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.multiple = !1, this.accept = "", this.disabled = !1, this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.dropzone = !1, this.width = "full", this._selectedFiles = [], this._dragActive = !1, this._internals = this.attachInternals();
|
|
@@ -2524,7 +2529,7 @@ const C1 = class C1 extends u {
|
|
|
2524
2529
|
}
|
|
2525
2530
|
// Generate a unique ID if one is not provided
|
|
2526
2531
|
connectedCallback() {
|
|
2527
|
-
super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${
|
|
2532
|
+
super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${ge++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
2528
2533
|
}
|
|
2529
2534
|
disconnectedCallback() {
|
|
2530
2535
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -2779,8 +2784,8 @@ const C1 = class C1 extends u {
|
|
|
2779
2784
|
</div>`;
|
|
2780
2785
|
}
|
|
2781
2786
|
};
|
|
2782
|
-
|
|
2783
|
-
let x =
|
|
2787
|
+
f1.styles = ye, f1.formAssociated = !0;
|
|
2788
|
+
let x = f1;
|
|
2784
2789
|
M([
|
|
2785
2790
|
r({ type: String })
|
|
2786
2791
|
], x.prototype, "id");
|
|
@@ -2821,7 +2826,7 @@ M([
|
|
|
2821
2826
|
r({ type: String, reflect: !0 })
|
|
2822
2827
|
], x.prototype, "width");
|
|
2823
2828
|
customElements.get("nys-fileinput") || customElements.define("nys-fileinput", x);
|
|
2824
|
-
const
|
|
2829
|
+
const fe = {
|
|
2825
2830
|
// --------- UX Team Main Library (below) --------- //
|
|
2826
2831
|
// *** CORE *** //
|
|
2827
2832
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -2919,6 +2924,22 @@ const Ce = {
|
|
|
2919
2924
|
<g mask="url(#mask0_12372_211)">
|
|
2920
2925
|
<path d="M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C13.3833 2 14.6792 2.2625 15.8875 2.7875C17.0958 3.3125 18.1542 4.02917 19.0625 4.9375C19.9708 5.84583 20.6875 6.90417 21.2125 8.1125C21.7375 9.32083 22 10.6167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22ZM12 19.95C12.4333 19.35 12.8083 18.725 13.125 18.075C13.4417 17.425 13.7 16.7333 13.9 16H10.1C10.3 16.7333 10.5583 17.425 10.875 18.075C11.1917 18.725 11.5667 19.35 12 19.95ZM9.4 19.55C9.1 19 8.8375 18.4292 8.6125 17.8375C8.3875 17.2458 8.2 16.6333 8.05 16H5.1C5.58333 16.8333 6.1875 17.5583 6.9125 18.175C7.6375 18.7917 8.46667 19.25 9.4 19.55ZM14.6 19.55C15.5333 19.25 16.3625 18.7917 17.0875 18.175C17.8125 17.5583 18.4167 16.8333 18.9 16H15.95C15.8 16.6333 15.6125 17.2458 15.3875 17.8375C15.1625 18.4292 14.9 19 14.6 19.55ZM4.25 14H7.65C7.6 13.6667 7.5625 13.3375 7.5375 13.0125C7.5125 12.6875 7.5 12.35 7.5 12C7.5 11.65 7.5125 11.3125 7.5375 10.9875C7.5625 10.6625 7.6 10.3333 7.65 10H4.25C4.16667 10.3333 4.10417 10.6625 4.0625 10.9875C4.02083 11.3125 4 11.65 4 12C4 12.35 4.02083 12.6875 4.0625 13.0125C4.10417 13.3375 4.16667 13.6667 4.25 14ZM9.65 14H14.35C14.4 13.6667 14.4375 13.3375 14.4625 13.0125C14.4875 12.6875 14.5 12.35 14.5 12C14.5 11.65 14.4875 11.3125 14.4625 10.9875C14.4375 10.6625 14.4 10.3333 14.35 10H9.65C9.6 10.3333 9.5625 10.6625 9.5375 10.9875C9.5125 11.3125 9.5 11.65 9.5 12C9.5 12.35 9.5125 12.6875 9.5375 13.0125C9.5625 13.3375 9.6 13.6667 9.65 14ZM16.35 14H19.75C19.8333 13.6667 19.8958 13.3375 19.9375 13.0125C19.9792 12.6875 20 12.35 20 12C20 11.65 19.9792 11.3125 19.9375 10.9875C19.8958 10.6625 19.8333 10.3333 19.75 10H16.35C16.4 10.3333 16.4375 10.6625 16.4625 10.9875C16.4875 11.3125 16.5 11.65 16.5 12C16.5 12.35 16.4875 12.6875 16.4625 13.0125C16.4375 13.3375 16.4 13.6667 16.35 14ZM15.95 8H18.9C18.4167 7.16667 17.8125 6.44167 17.0875 5.825C16.3625 5.20833 15.5333 4.75 14.6 4.45C14.9 5 15.1625 5.57083 15.3875 6.1625C15.6125 6.75417 15.8 7.36667 15.95 8ZM10.1 8H13.9C13.7 7.26667 13.4417 6.575 13.125 5.925C12.8083 5.275 12.4333 4.65 12 4.05C11.5667 4.65 11.1917 5.275 10.875 5.925C10.5583 6.575 10.3 7.26667 10.1 8ZM5.1 8H8.05C8.2 7.36667 8.3875 6.75417 8.6125 6.1625C8.8375 5.57083 9.1 5 9.4 4.45C8.46667 4.75 7.6375 5.20833 6.9125 5.825C6.1875 6.44167 5.58333 7.16667 5.1 8Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2921
2926
|
</g>
|
|
2927
|
+
</svg>`,
|
|
2928
|
+
link: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2929
|
+
<mask id="mask0_7578_270" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
2930
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
2931
|
+
</mask>
|
|
2932
|
+
<g mask="url(#mask0_7578_270)">
|
|
2933
|
+
<path d="M7 17C5.61667 17 4.4375 16.5125 3.4625 15.5375C2.4875 14.5625 2 13.3833 2 12C2 10.6167 2.4875 9.4375 3.4625 8.4625C4.4375 7.4875 5.61667 7 7 7H10C10.2833 7 10.5208 7.09583 10.7125 7.2875C10.9042 7.47917 11 7.71667 11 8C11 8.28333 10.9042 8.52083 10.7125 8.7125C10.5208 8.90417 10.2833 9 10 9H7C6.16667 9 5.45833 9.29167 4.875 9.875C4.29167 10.4583 4 11.1667 4 12C4 12.8333 4.29167 13.5417 4.875 14.125C5.45833 14.7083 6.16667 15 7 15H10C10.2833 15 10.5208 15.0958 10.7125 15.2875C10.9042 15.4792 11 15.7167 11 16C11 16.2833 10.9042 16.5208 10.7125 16.7125C10.5208 16.9042 10.2833 17 10 17H7ZM9 13C8.71667 13 8.47917 12.9042 8.2875 12.7125C8.09583 12.5208 8 12.2833 8 12C8 11.7167 8.09583 11.4792 8.2875 11.2875C8.47917 11.0958 8.71667 11 9 11H15C15.2833 11 15.5208 11.0958 15.7125 11.2875C15.9042 11.4792 16 11.7167 16 12C16 12.2833 15.9042 12.5208 15.7125 12.7125C15.5208 12.9042 15.2833 13 15 13H9ZM14 17C13.7167 17 13.4792 16.9042 13.2875 16.7125C13.0958 16.5208 13 16.2833 13 16C13 15.7167 13.0958 15.4792 13.2875 15.2875C13.4792 15.0958 13.7167 15 14 15H17C17.8333 15 18.5417 14.7083 19.125 14.125C19.7083 13.5417 20 12.8333 20 12C20 11.1667 19.7083 10.4583 19.125 9.875C18.5417 9.29167 17.8333 9 17 9H14C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8C13 7.71667 13.0958 7.47917 13.2875 7.2875C13.4792 7.09583 13.7167 7 14 7H17C18.3833 7 19.5625 7.4875 20.5375 8.4625C21.5125 9.4375 22 10.6167 22 12C22 13.3833 21.5125 14.5625 20.5375 15.5375C19.5625 16.5125 18.3833 17 17 17H14Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2934
|
+
</g>
|
|
2935
|
+
</svg>`,
|
|
2936
|
+
mail: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2937
|
+
<mask id="mask0_7578_308" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
2938
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
2939
|
+
</mask>
|
|
2940
|
+
<g mask="url(#mask0_7578_308)">
|
|
2941
|
+
<path d="M4 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM20 8L12.525 12.675C12.4417 12.725 12.3542 12.7625 12.2625 12.7875C12.1708 12.8125 12.0833 12.825 12 12.825C11.9167 12.825 11.8292 12.8125 11.7375 12.7875C11.6458 12.7625 11.5583 12.725 11.475 12.675L4 8V18H20V8ZM12 11L20 6H4L12 11ZM4 8.25V6.775V6.8V6.7875V8.25Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2942
|
+
</g>
|
|
2922
2943
|
</svg>`,
|
|
2923
2944
|
menu: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2924
2945
|
<mask id="mask0_12372_150" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
@@ -3074,6 +3095,30 @@ const Ce = {
|
|
|
3074
3095
|
<g mask="url(#mask0_12372_673)">
|
|
3075
3096
|
<path d="M7.82505 13L12.725 17.9C12.925 18.1 13.0209 18.3334 13.0125 18.6C13.0042 18.8667 12.9 19.1 12.7 19.3C12.5 19.4834 12.2667 19.5792 12 19.5875C11.7334 19.5959 11.5 19.5 11.3 19.3L4.70005 12.7C4.60005 12.6 4.52922 12.4917 4.48755 12.375C4.44588 12.2584 4.42505 12.1334 4.42505 12C4.42505 11.8667 4.44588 11.7417 4.48755 11.625C4.52922 11.5084 4.60005 11.4 4.70005 11.3L11.3 4.70005C11.4834 4.51672 11.7125 4.42505 11.9875 4.42505C12.2625 4.42505 12.5 4.51672 12.7 4.70005C12.9 4.90005 13 5.13755 13 5.41255C13 5.68755 12.9 5.92505 12.7 6.12505L7.82505 11H19C19.2834 11 19.5209 11.0959 19.7125 11.2875C19.9042 11.4792 20 11.7167 20 12C20 12.2834 19.9042 12.5209 19.7125 12.7125C19.5209 12.9042 19.2834 13 19 13H7.82505Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3076
3097
|
</g>
|
|
3098
|
+
</svg>`,
|
|
3099
|
+
arrow_downward: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3100
|
+
<mask id="mask0_7578_114" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3101
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3102
|
+
</mask>
|
|
3103
|
+
<g mask="url(#mask0_7578_114)">
|
|
3104
|
+
<path d="M11 16.175V5C11 4.71667 11.0959 4.47917 11.2875 4.2875C11.4792 4.09583 11.7167 4 12 4C12.2834 4 12.5209 4.09583 12.7125 4.2875C12.9042 4.47917 13 4.71667 13 5V16.175L17.9 11.275C18.1 11.075 18.3334 10.9792 18.6 10.9875C18.8667 10.9958 19.1 11.1 19.3 11.3C19.4834 11.5 19.5792 11.7333 19.5875 12C19.5959 12.2667 19.5 12.5 19.3 12.7L12.7 19.3C12.6 19.4 12.4917 19.4708 12.375 19.5125C12.2584 19.5542 12.1334 19.575 12 19.575C11.8667 19.575 11.7417 19.5542 11.625 19.5125C11.5084 19.4708 11.4 19.4 11.3 19.3L4.70005 12.7C4.51672 12.5167 4.42505 12.2875 4.42505 12.0125C4.42505 11.7375 4.51672 11.5 4.70005 11.3C4.90005 11.1 5.13755 11 5.41255 11C5.68755 11 5.92505 11.1 6.12505 11.3L11 16.175Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3105
|
+
</g>
|
|
3106
|
+
</svg>`,
|
|
3107
|
+
arrow_forward: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3108
|
+
<mask id="mask0_7578_474" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3109
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3110
|
+
</mask>
|
|
3111
|
+
<g mask="url(#mask0_7578_474)">
|
|
3112
|
+
<path d="M16.175 13H5C4.71667 13 4.47917 12.9042 4.2875 12.7125C4.09583 12.5208 4 12.2833 4 12C4 11.7167 4.09583 11.4792 4.2875 11.2875C4.47917 11.0958 4.71667 11 5 11H16.175L11.275 6.1C11.075 5.9 10.9792 5.66667 10.9875 5.4C10.9958 5.13334 11.1 4.9 11.3 4.7C11.5 4.51667 11.7333 4.42084 12 4.4125C12.2667 4.40417 12.5 4.5 12.7 4.7L19.3 11.3C19.4 11.4 19.4708 11.5083 19.5125 11.625C19.5542 11.7417 19.575 11.8667 19.575 12C19.575 12.1333 19.5542 12.2583 19.5125 12.375C19.4708 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4833 12.2875 19.575 12.0125 19.575C11.7375 19.575 11.5 19.4833 11.3 19.3C11.1 19.1 11 18.8625 11 18.5875C11 18.3125 11.1 18.075 11.3 17.875L16.175 13Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3113
|
+
</g>
|
|
3114
|
+
</svg>`,
|
|
3115
|
+
arrow_upward: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3116
|
+
<mask id="mask0_7578_90" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3117
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3118
|
+
</mask>
|
|
3119
|
+
<g mask="url(#mask0_7578_90)">
|
|
3120
|
+
<path d="M11 7.825L6.09999 12.725C5.89999 12.925 5.66665 13.0208 5.39999 13.0125C5.13332 13.0042 4.89999 12.9 4.69999 12.7C4.51665 12.5 4.42082 12.2667 4.41249 12C4.40415 11.7333 4.49999 11.5 4.69999 11.3L11.3 4.7C11.4 4.6 11.5083 4.52917 11.625 4.4875C11.7417 4.44584 11.8667 4.425 12 4.425C12.1333 4.425 12.2583 4.44584 12.375 4.4875C12.4917 4.52917 12.6 4.6 12.7 4.7L19.3 11.3C19.4833 11.4833 19.575 11.7125 19.575 11.9875C19.575 12.2625 19.4833 12.5 19.3 12.7C19.1 12.9 18.8625 13 18.5875 13C18.3125 13 18.075 12.9 17.875 12.7L13 7.825V19C13 19.2833 12.9042 19.5208 12.7125 19.7125C12.5208 19.9042 12.2833 20 12 20C11.7167 20 11.4792 19.9042 11.2875 19.7125C11.0958 19.5208 11 19.2833 11 19V7.825Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3121
|
+
</g>
|
|
3077
3122
|
</svg>`,
|
|
3078
3123
|
// *** Chevrons *** //
|
|
3079
3124
|
chevron_down: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -3353,7 +3398,7 @@ const Ce = {
|
|
|
3353
3398
|
<path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3354
3399
|
</g>
|
|
3355
3400
|
</svg>`
|
|
3356
|
-
}, ve =
|
|
3401
|
+
}, ve = C`
|
|
3357
3402
|
:host {
|
|
3358
3403
|
display: inline-block;
|
|
3359
3404
|
--_nys-icon-size: 0.7em; /* If cap isn't supported, a fallback value of 0.7em is used, as it closely approximates the height of capital letters in most fonts. */
|
|
@@ -3454,12 +3499,12 @@ const Ce = {
|
|
|
3454
3499
|
transform: scale(-1, -1);
|
|
3455
3500
|
}
|
|
3456
3501
|
`;
|
|
3457
|
-
var
|
|
3458
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
3502
|
+
var _e = Object.defineProperty, be = Object.getOwnPropertyDescriptor, h1 = (l, e, t, o) => {
|
|
3503
|
+
for (var s = o > 1 ? void 0 : o ? be(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
3459
3504
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3460
|
-
return o && s &&
|
|
3505
|
+
return o && s && _e(e, t, s), s;
|
|
3461
3506
|
}, t1;
|
|
3462
|
-
const
|
|
3507
|
+
const i1 = (t1 = class extends u {
|
|
3463
3508
|
constructor() {
|
|
3464
3509
|
super(...arguments), this.name = "", this.ariaLabel = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
3465
3510
|
}
|
|
@@ -3472,7 +3517,7 @@ const n1 = (t1 = class extends u {
|
|
|
3472
3517
|
) ? e : "sm";
|
|
3473
3518
|
}
|
|
3474
3519
|
getIcon() {
|
|
3475
|
-
const e =
|
|
3520
|
+
const e = fe[this.name];
|
|
3476
3521
|
if (!e) return null;
|
|
3477
3522
|
const s = new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
|
|
3478
3523
|
return s instanceof SVGElement ? (s.setAttribute("role", "img"), this.ariaLabel ? (s.setAttribute("aria-label", this.ariaLabel), s.removeAttribute("aria-hidden")) : (s.setAttribute("aria-hidden", "true"), s.removeAttribute("aria-label")), s.style.rotate = `${this.rotate}deg`, s.style.color = this.color || "currentcolor", s.classList.add(`nys-icon--${this.size}`), s.classList.add("nys-icon--svg"), this.flip && s.classList.add(`nys-icon--flip-${this.flip}`), s) : null;
|
|
@@ -3501,25 +3546,25 @@ const n1 = (t1 = class extends u {
|
|
|
3501
3546
|
], t1);
|
|
3502
3547
|
h1([
|
|
3503
3548
|
r({ type: String, reflect: !0 })
|
|
3504
|
-
],
|
|
3549
|
+
], i1.prototype, "name", 2);
|
|
3505
3550
|
h1([
|
|
3506
3551
|
r({ type: String })
|
|
3507
|
-
],
|
|
3552
|
+
], i1.prototype, "ariaLabel", 2);
|
|
3508
3553
|
h1([
|
|
3509
3554
|
r({ type: String })
|
|
3510
|
-
],
|
|
3555
|
+
], i1.prototype, "rotate", 2);
|
|
3511
3556
|
h1([
|
|
3512
3557
|
r({ type: String })
|
|
3513
|
-
],
|
|
3558
|
+
], i1.prototype, "flip", 2);
|
|
3514
3559
|
h1([
|
|
3515
3560
|
r({ type: String })
|
|
3516
|
-
],
|
|
3561
|
+
], i1.prototype, "color", 2);
|
|
3517
3562
|
h1([
|
|
3518
3563
|
r({ reflect: !0 })
|
|
3519
|
-
],
|
|
3520
|
-
let me =
|
|
3564
|
+
], i1.prototype, "size", 1);
|
|
3565
|
+
let me = i1;
|
|
3521
3566
|
customElements.get("nys-icon") || customElements.define("nys-icon", me);
|
|
3522
|
-
const xe =
|
|
3567
|
+
const xe = C`
|
|
3523
3568
|
:host {
|
|
3524
3569
|
/* Label Typography */
|
|
3525
3570
|
--_nys-label-font-family: var(
|
|
@@ -3598,7 +3643,7 @@ var we = Object.defineProperty, b1 = (l, e, t, o) => {
|
|
|
3598
3643
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
3599
3644
|
return s && we(e, t, s), s;
|
|
3600
3645
|
};
|
|
3601
|
-
const
|
|
3646
|
+
const S1 = class S1 extends u {
|
|
3602
3647
|
constructor() {
|
|
3603
3648
|
super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
|
|
3604
3649
|
}
|
|
@@ -3617,22 +3662,22 @@ const $1 = class $1 extends u {
|
|
|
3617
3662
|
`;
|
|
3618
3663
|
}
|
|
3619
3664
|
};
|
|
3620
|
-
|
|
3621
|
-
let
|
|
3665
|
+
S1.styles = xe;
|
|
3666
|
+
let n1 = S1;
|
|
3622
3667
|
b1([
|
|
3623
3668
|
r({ type: String })
|
|
3624
|
-
],
|
|
3669
|
+
], n1.prototype, "id");
|
|
3625
3670
|
b1([
|
|
3626
3671
|
r({ type: String })
|
|
3627
|
-
],
|
|
3672
|
+
], n1.prototype, "label");
|
|
3628
3673
|
b1([
|
|
3629
3674
|
r({ type: String })
|
|
3630
|
-
],
|
|
3675
|
+
], n1.prototype, "description");
|
|
3631
3676
|
b1([
|
|
3632
3677
|
r({ type: String })
|
|
3633
|
-
],
|
|
3634
|
-
customElements.get("nys-label") || customElements.define("nys-label",
|
|
3635
|
-
const Z1 =
|
|
3678
|
+
], n1.prototype, "flag");
|
|
3679
|
+
customElements.get("nys-label") || customElements.define("nys-label", n1);
|
|
3680
|
+
const Z1 = C`
|
|
3636
3681
|
:host {
|
|
3637
3682
|
/* Global Radiobutton Styles */
|
|
3638
3683
|
--_nys-radiobutton-size: var(--nys-size-400, 32px);
|
|
@@ -3985,12 +4030,12 @@ const Z1 = g`
|
|
|
3985
4030
|
cursor: not-allowed;
|
|
3986
4031
|
}
|
|
3987
4032
|
`;
|
|
3988
|
-
var ke = Object.defineProperty, Le = Object.getOwnPropertyDescriptor,
|
|
4033
|
+
var ke = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, q = (l, e, t, o) => {
|
|
3989
4034
|
for (var s = o > 1 ? void 0 : o ? Le(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
3990
4035
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3991
4036
|
return o && s && ke(e, t, s), s;
|
|
3992
4037
|
};
|
|
3993
|
-
let
|
|
4038
|
+
let Se = 0;
|
|
3994
4039
|
var Y;
|
|
3995
4040
|
const E = (Y = class extends u {
|
|
3996
4041
|
// allows use of elementInternals' API
|
|
@@ -4007,7 +4052,7 @@ const E = (Y = class extends u {
|
|
|
4007
4052
|
}
|
|
4008
4053
|
// Generate a unique ID if one is not provided
|
|
4009
4054
|
connectedCallback() {
|
|
4010
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${
|
|
4055
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${Se++}`), this.addEventListener("nys-change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
|
|
4011
4056
|
}
|
|
4012
4057
|
disconnectedCallback() {
|
|
4013
4058
|
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4111,49 +4156,49 @@ const E = (Y = class extends u {
|
|
|
4111
4156
|
</div>`;
|
|
4112
4157
|
}
|
|
4113
4158
|
}, Y.VALID_SIZES = ["sm", "md"], Y.styles = Z1, Y.formAssociated = !0, Y);
|
|
4114
|
-
|
|
4159
|
+
q([
|
|
4115
4160
|
r({ type: String })
|
|
4116
4161
|
], E.prototype, "id", 2);
|
|
4117
|
-
|
|
4162
|
+
q([
|
|
4118
4163
|
r({ type: String, reflect: !0 })
|
|
4119
4164
|
], E.prototype, "name", 2);
|
|
4120
|
-
|
|
4165
|
+
q([
|
|
4121
4166
|
r({ type: Boolean, reflect: !0 })
|
|
4122
4167
|
], E.prototype, "required", 2);
|
|
4123
|
-
|
|
4168
|
+
q([
|
|
4124
4169
|
r({ type: Boolean, reflect: !0 })
|
|
4125
4170
|
], E.prototype, "optional", 2);
|
|
4126
|
-
|
|
4171
|
+
q([
|
|
4127
4172
|
r({ type: Boolean, reflect: !0 })
|
|
4128
4173
|
], E.prototype, "showError", 2);
|
|
4129
|
-
|
|
4174
|
+
q([
|
|
4130
4175
|
r({ type: String })
|
|
4131
4176
|
], E.prototype, "errorMessage", 2);
|
|
4132
|
-
|
|
4177
|
+
q([
|
|
4133
4178
|
r({ type: String })
|
|
4134
4179
|
], E.prototype, "label", 2);
|
|
4135
|
-
|
|
4180
|
+
q([
|
|
4136
4181
|
r({ type: String })
|
|
4137
4182
|
], E.prototype, "description", 2);
|
|
4138
|
-
|
|
4139
|
-
|
|
4183
|
+
q([
|
|
4184
|
+
B()
|
|
4140
4185
|
], E.prototype, "selectedValue", 2);
|
|
4141
|
-
|
|
4186
|
+
q([
|
|
4142
4187
|
r({ reflect: !0 })
|
|
4143
4188
|
], E.prototype, "size", 1);
|
|
4144
|
-
|
|
4189
|
+
q([
|
|
4145
4190
|
r({ type: Boolean, reflect: !0 })
|
|
4146
4191
|
], E.prototype, "tile", 2);
|
|
4147
|
-
let
|
|
4148
|
-
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup",
|
|
4149
|
-
var
|
|
4150
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4192
|
+
let $e = E;
|
|
4193
|
+
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", $e);
|
|
4194
|
+
var Ve = Object.defineProperty, De = Object.getOwnPropertyDescriptor, F = (l, e, t, o) => {
|
|
4195
|
+
for (var s = o > 1 ? void 0 : o ? De(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4151
4196
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4152
|
-
return o && s &&
|
|
4197
|
+
return o && s && Ve(e, t, s), s;
|
|
4153
4198
|
};
|
|
4154
4199
|
let Me = 0;
|
|
4155
4200
|
var y;
|
|
4156
|
-
const
|
|
4201
|
+
const U = (y = class extends u {
|
|
4157
4202
|
constructor() {
|
|
4158
4203
|
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;
|
|
4159
4204
|
}
|
|
@@ -4254,37 +4299,37 @@ const q = (y = class extends u {
|
|
|
4254
4299
|
}, y.VALID_SIZES = ["sm", "md"], y.buttonGroup = {}, y.styles = Z1, y);
|
|
4255
4300
|
F([
|
|
4256
4301
|
r({ type: Boolean, reflect: !0 })
|
|
4257
|
-
],
|
|
4302
|
+
], U.prototype, "checked", 2);
|
|
4258
4303
|
F([
|
|
4259
4304
|
r({ type: Boolean, reflect: !0 })
|
|
4260
|
-
],
|
|
4305
|
+
], U.prototype, "disabled", 2);
|
|
4261
4306
|
F([
|
|
4262
4307
|
r({ type: Boolean, reflect: !0 })
|
|
4263
|
-
],
|
|
4308
|
+
], U.prototype, "required", 2);
|
|
4264
4309
|
F([
|
|
4265
4310
|
r({ type: String })
|
|
4266
|
-
],
|
|
4311
|
+
], U.prototype, "label", 2);
|
|
4267
4312
|
F([
|
|
4268
4313
|
r({ type: String })
|
|
4269
|
-
],
|
|
4314
|
+
], U.prototype, "description", 2);
|
|
4270
4315
|
F([
|
|
4271
4316
|
r({ type: String })
|
|
4272
|
-
],
|
|
4317
|
+
], U.prototype, "id", 2);
|
|
4273
4318
|
F([
|
|
4274
4319
|
r({ type: String, reflect: !0 })
|
|
4275
|
-
],
|
|
4320
|
+
], U.prototype, "name", 2);
|
|
4276
4321
|
F([
|
|
4277
4322
|
r({ type: String })
|
|
4278
|
-
],
|
|
4323
|
+
], U.prototype, "value", 2);
|
|
4279
4324
|
F([
|
|
4280
4325
|
r({ reflect: !0 })
|
|
4281
|
-
],
|
|
4326
|
+
], U.prototype, "size", 1);
|
|
4282
4327
|
F([
|
|
4283
4328
|
r({ type: Boolean, reflect: !0 })
|
|
4284
|
-
],
|
|
4285
|
-
let ze =
|
|
4329
|
+
], U.prototype, "tile", 2);
|
|
4330
|
+
let ze = U;
|
|
4286
4331
|
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", ze);
|
|
4287
|
-
const Ee =
|
|
4332
|
+
const Ee = C`
|
|
4288
4333
|
:host {
|
|
4289
4334
|
/* Global Select Styles */
|
|
4290
4335
|
--_nys-select-width: 100%;
|
|
@@ -4437,7 +4482,7 @@ var He = Object.defineProperty, p1 = (l, e, t, o) => {
|
|
|
4437
4482
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
4438
4483
|
return s && He(e, t, s), s;
|
|
4439
4484
|
};
|
|
4440
|
-
class
|
|
4485
|
+
class a1 extends u {
|
|
4441
4486
|
constructor() {
|
|
4442
4487
|
super(...arguments), this.disabled = !1, this.selected = !1, this.value = "", this.label = "", this.hidden = !1;
|
|
4443
4488
|
}
|
|
@@ -4466,26 +4511,26 @@ class i1 extends u {
|
|
|
4466
4511
|
}
|
|
4467
4512
|
p1([
|
|
4468
4513
|
r({ type: Boolean, reflect: !0 })
|
|
4469
|
-
],
|
|
4514
|
+
], a1.prototype, "disabled");
|
|
4470
4515
|
p1([
|
|
4471
4516
|
r({ type: Boolean, reflect: !0 })
|
|
4472
|
-
],
|
|
4517
|
+
], a1.prototype, "selected");
|
|
4473
4518
|
p1([
|
|
4474
4519
|
r({ type: String })
|
|
4475
|
-
],
|
|
4520
|
+
], a1.prototype, "value");
|
|
4476
4521
|
p1([
|
|
4477
4522
|
r({ type: String })
|
|
4478
|
-
],
|
|
4523
|
+
], a1.prototype, "label");
|
|
4479
4524
|
p1([
|
|
4480
4525
|
r({ type: Boolean, reflect: !0 })
|
|
4481
|
-
],
|
|
4482
|
-
customElements.define("nys-option",
|
|
4526
|
+
], a1.prototype, "hidden");
|
|
4527
|
+
customElements.define("nys-option", a1);
|
|
4483
4528
|
var Ze = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, H = (l, e, t, o) => {
|
|
4484
4529
|
for (var s = o > 1 ? void 0 : o ? Ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4485
4530
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4486
4531
|
return o && s && Ze(e, t, s), s;
|
|
4487
4532
|
};
|
|
4488
|
-
let
|
|
4533
|
+
let Be = 0;
|
|
4489
4534
|
var W;
|
|
4490
4535
|
const z = (W = class extends u {
|
|
4491
4536
|
// allows use of elementInternals' API
|
|
@@ -4502,7 +4547,7 @@ const z = (W = class extends u {
|
|
|
4502
4547
|
}
|
|
4503
4548
|
// Generate a unique ID if one is not provided
|
|
4504
4549
|
connectedCallback() {
|
|
4505
|
-
super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${
|
|
4550
|
+
super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${Be++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
4506
4551
|
}
|
|
4507
4552
|
disconnectedCallback() {
|
|
4508
4553
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4522,7 +4567,7 @@ const z = (W = class extends u {
|
|
|
4522
4567
|
if (!e || !t) return;
|
|
4523
4568
|
t.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), e.assignedElements({ flatten: !0 }).forEach((i) => {
|
|
4524
4569
|
var c;
|
|
4525
|
-
if (i instanceof
|
|
4570
|
+
if (i instanceof a1) {
|
|
4526
4571
|
const d = document.createElement("option");
|
|
4527
4572
|
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);
|
|
4528
4573
|
}
|
|
@@ -4682,9 +4727,9 @@ H([
|
|
|
4682
4727
|
H([
|
|
4683
4728
|
r({ reflect: !0 })
|
|
4684
4729
|
], z.prototype, "width", 1);
|
|
4685
|
-
let
|
|
4686
|
-
customElements.get("nys-select") || customElements.define("nys-select",
|
|
4687
|
-
const qe =
|
|
4730
|
+
let Ae = z;
|
|
4731
|
+
customElements.get("nys-select") || customElements.define("nys-select", Ae);
|
|
4732
|
+
const qe = C`
|
|
4688
4733
|
:host {
|
|
4689
4734
|
/* Global Skipnav Styles */
|
|
4690
4735
|
--_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
|
|
@@ -4762,7 +4807,7 @@ var Ue = Object.defineProperty, I1 = (l, e, t, o) => {
|
|
|
4762
4807
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
4763
4808
|
return s && Ue(e, t, s), s;
|
|
4764
4809
|
};
|
|
4765
|
-
const
|
|
4810
|
+
const $1 = class $1 extends u {
|
|
4766
4811
|
constructor() {
|
|
4767
4812
|
super(), this.id = "", this.href = "";
|
|
4768
4813
|
}
|
|
@@ -4803,8 +4848,8 @@ const S1 = class S1 extends u {
|
|
|
4803
4848
|
`;
|
|
4804
4849
|
}
|
|
4805
4850
|
};
|
|
4806
|
-
|
|
4807
|
-
let u1 =
|
|
4851
|
+
$1.styles = qe;
|
|
4852
|
+
let u1 = $1;
|
|
4808
4853
|
I1([
|
|
4809
4854
|
r({ type: String })
|
|
4810
4855
|
], u1.prototype, "id");
|
|
@@ -4812,7 +4857,7 @@ I1([
|
|
|
4812
4857
|
r({ type: String })
|
|
4813
4858
|
], u1.prototype, "href");
|
|
4814
4859
|
customElements.get("nys-skipnav") || customElements.define("nys-skipnav", u1);
|
|
4815
|
-
const
|
|
4860
|
+
const Oe = C`
|
|
4816
4861
|
:host {
|
|
4817
4862
|
/* Anything that can be overridden should be defined here */
|
|
4818
4863
|
|
|
@@ -4954,14 +4999,14 @@ const Pe = g`
|
|
|
4954
4999
|
cursor: not-allowed;
|
|
4955
5000
|
}
|
|
4956
5001
|
`;
|
|
4957
|
-
var
|
|
5002
|
+
var Pe = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, m = (l, e, t, o) => {
|
|
4958
5003
|
for (var s = o > 1 ? void 0 : o ? Re(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4959
5004
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4960
|
-
return o && s &&
|
|
5005
|
+
return o && s && Pe(e, t, s), s;
|
|
4961
5006
|
};
|
|
4962
5007
|
let Te = 0;
|
|
4963
5008
|
var Z;
|
|
4964
|
-
const
|
|
5009
|
+
const _ = (Z = class extends u {
|
|
4965
5010
|
// allows use of elementInternals' API
|
|
4966
5011
|
constructor() {
|
|
4967
5012
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.maxlength = null, this.width = "full", this.rows = 4, this._resize = "vertical", this.showError = !1, this.errorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -5121,61 +5166,61 @@ ${this.value}</textarea
|
|
|
5121
5166
|
</label>
|
|
5122
5167
|
`;
|
|
5123
5168
|
}
|
|
5124
|
-
}, Z.VALID_WIDTHS = ["sm", "md", "lg", "full"], Z.VALID_RESIZE = ["vertical", "none"], Z.styles =
|
|
5169
|
+
}, Z.VALID_WIDTHS = ["sm", "md", "lg", "full"], Z.VALID_RESIZE = ["vertical", "none"], Z.styles = Oe, Z.formAssociated = !0, Z);
|
|
5125
5170
|
m([
|
|
5126
5171
|
r({ type: String })
|
|
5127
|
-
],
|
|
5172
|
+
], _.prototype, "id", 2);
|
|
5128
5173
|
m([
|
|
5129
5174
|
r({ type: String, reflect: !0 })
|
|
5130
|
-
],
|
|
5175
|
+
], _.prototype, "name", 2);
|
|
5131
5176
|
m([
|
|
5132
5177
|
r({ type: String })
|
|
5133
|
-
],
|
|
5178
|
+
], _.prototype, "label", 2);
|
|
5134
5179
|
m([
|
|
5135
5180
|
r({ type: String })
|
|
5136
|
-
],
|
|
5181
|
+
], _.prototype, "description", 2);
|
|
5137
5182
|
m([
|
|
5138
5183
|
r({ type: String })
|
|
5139
|
-
],
|
|
5184
|
+
], _.prototype, "placeholder", 2);
|
|
5140
5185
|
m([
|
|
5141
5186
|
r({ type: String })
|
|
5142
|
-
],
|
|
5187
|
+
], _.prototype, "value", 2);
|
|
5143
5188
|
m([
|
|
5144
5189
|
r({ type: Boolean, reflect: !0 })
|
|
5145
|
-
],
|
|
5190
|
+
], _.prototype, "disabled", 2);
|
|
5146
5191
|
m([
|
|
5147
5192
|
r({ type: Boolean, reflect: !0 })
|
|
5148
|
-
],
|
|
5193
|
+
], _.prototype, "readonly", 2);
|
|
5149
5194
|
m([
|
|
5150
5195
|
r({ type: Boolean, reflect: !0 })
|
|
5151
|
-
],
|
|
5196
|
+
], _.prototype, "required", 2);
|
|
5152
5197
|
m([
|
|
5153
5198
|
r({ type: Boolean, reflect: !0 })
|
|
5154
|
-
],
|
|
5199
|
+
], _.prototype, "optional", 2);
|
|
5155
5200
|
m([
|
|
5156
5201
|
r({ type: String })
|
|
5157
|
-
],
|
|
5202
|
+
], _.prototype, "form", 2);
|
|
5158
5203
|
m([
|
|
5159
5204
|
r({ type: Number })
|
|
5160
|
-
],
|
|
5205
|
+
], _.prototype, "maxlength", 2);
|
|
5161
5206
|
m([
|
|
5162
5207
|
r({ reflect: !0 })
|
|
5163
|
-
],
|
|
5208
|
+
], _.prototype, "width", 2);
|
|
5164
5209
|
m([
|
|
5165
5210
|
r({ type: Number })
|
|
5166
|
-
],
|
|
5211
|
+
], _.prototype, "rows", 2);
|
|
5167
5212
|
m([
|
|
5168
5213
|
r({ reflect: !0 })
|
|
5169
|
-
],
|
|
5214
|
+
], _.prototype, "resize", 1);
|
|
5170
5215
|
m([
|
|
5171
5216
|
r({ type: Boolean, reflect: !0 })
|
|
5172
|
-
],
|
|
5217
|
+
], _.prototype, "showError", 2);
|
|
5173
5218
|
m([
|
|
5174
5219
|
r({ type: String })
|
|
5175
|
-
],
|
|
5176
|
-
let Fe =
|
|
5220
|
+
], _.prototype, "errorMessage", 2);
|
|
5221
|
+
let Fe = _;
|
|
5177
5222
|
customElements.get("nys-textarea") || customElements.define("nys-textarea", Fe);
|
|
5178
|
-
const Ne =
|
|
5223
|
+
const Ne = C`
|
|
5179
5224
|
:host {
|
|
5180
5225
|
/* Anything that can be overridden should be defined here */
|
|
5181
5226
|
|
|
@@ -5277,9 +5322,24 @@ const Ne = g`
|
|
|
5277
5322
|
flex-direction: column;
|
|
5278
5323
|
}
|
|
5279
5324
|
|
|
5325
|
+
.nys-textinput__mask-overlay {
|
|
5326
|
+
position: absolute;
|
|
5327
|
+
margin: calc(
|
|
5328
|
+
var(--_nys-textinput-padding) + var(--_nys-textinput-width-border)
|
|
5329
|
+
);
|
|
5330
|
+
color: var(--nys-color-text-weaker, #797c7f);
|
|
5331
|
+
display: inline;
|
|
5332
|
+
overflow: hidden;
|
|
5333
|
+
white-space: nowrap;
|
|
5334
|
+
width: stretch;
|
|
5335
|
+
width: -webkit-fill-available;
|
|
5336
|
+
width: -moz-available;
|
|
5337
|
+
font: inherit;
|
|
5338
|
+
letter-spacing: normal;
|
|
5339
|
+
}
|
|
5340
|
+
|
|
5280
5341
|
.nys-textinput__input {
|
|
5281
5342
|
color: var(--_nys-textinput-text-color);
|
|
5282
|
-
font-size: var(--_nys-textinput-size-ui-md);
|
|
5283
5343
|
border-radius: var(--_nys-textinput-radius);
|
|
5284
5344
|
border: solid var(--_nys-textinput-color-border)
|
|
5285
5345
|
var(--_nys-textinput-width-border);
|
|
@@ -5289,7 +5349,9 @@ const Ne = g`
|
|
|
5289
5349
|
box-sizing: border-box;
|
|
5290
5350
|
-webkit-box-sizing: border-box;
|
|
5291
5351
|
-moz-box-sizing: border-box;
|
|
5292
|
-
background-color:
|
|
5352
|
+
background-color: transparent;
|
|
5353
|
+
position: relative;
|
|
5354
|
+
font: inherit;
|
|
5293
5355
|
}
|
|
5294
5356
|
.nys-textinput__input::placeholder {
|
|
5295
5357
|
color: var(--_nys-textinput-placeholder-color);
|
|
@@ -5297,8 +5359,7 @@ const Ne = g`
|
|
|
5297
5359
|
|
|
5298
5360
|
.nys-textinput__buttoncontainer {
|
|
5299
5361
|
width: var(--_nys-textinput-width);
|
|
5300
|
-
|
|
5301
|
-
max-width: var(--_nys-textinput-width);
|
|
5362
|
+
max-width: 100%;
|
|
5302
5363
|
display: flex;
|
|
5303
5364
|
}
|
|
5304
5365
|
|
|
@@ -5389,7 +5450,7 @@ const Ne = g`
|
|
|
5389
5450
|
cursor: not-allowed;
|
|
5390
5451
|
}
|
|
5391
5452
|
`;
|
|
5392
|
-
var je = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor,
|
|
5453
|
+
var je = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, f = (l, e, t, o) => {
|
|
5393
5454
|
for (var s = o > 1 ? void 0 : o ? Ge(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
5394
5455
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
5395
5456
|
return o && s && je(e, t, s), s;
|
|
@@ -5399,7 +5460,9 @@ var I;
|
|
|
5399
5460
|
const p = (I = class extends u {
|
|
5400
5461
|
// allows use of elementInternals' API
|
|
5401
5462
|
constructor() {
|
|
5402
|
-
super(), this.id = "", this.name = "", this._type = "text", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this.showPassword = !1, this._originalErrorMessage = "", this._hasUserInteracted = !1, this.
|
|
5463
|
+
super(), this.id = "", this.name = "", this._type = "text", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this.showPassword = !1, this._originalErrorMessage = "", this._hasUserInteracted = !1, this._maskPatterns = {
|
|
5464
|
+
tel: "(___) ___-____"
|
|
5465
|
+
}, this._internals = this.attachInternals();
|
|
5403
5466
|
}
|
|
5404
5467
|
get type() {
|
|
5405
5468
|
return this._type;
|
|
@@ -5411,7 +5474,20 @@ const p = (I = class extends u {
|
|
|
5411
5474
|
}
|
|
5412
5475
|
// Ensure the "width" property is valid after updates
|
|
5413
5476
|
async updated(e) {
|
|
5414
|
-
|
|
5477
|
+
var t, o;
|
|
5478
|
+
if (e.has("width") && (await Promise.resolve(), this.width = I.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("disabled") && (this._validateButtonSlot("startButton"), this._validateButtonSlot("endButton")), e.has("type")) {
|
|
5479
|
+
const s = this._maskPatterns[this.type], n = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
|
|
5480
|
+
if (n)
|
|
5481
|
+
if (s)
|
|
5482
|
+
n.maxLength = s.length, this._updateOverlay(n.value, s);
|
|
5483
|
+
else {
|
|
5484
|
+
n.removeAttribute("maxLength");
|
|
5485
|
+
const i = (o = this.shadowRoot) == null ? void 0 : o.querySelector(
|
|
5486
|
+
".nys-textinput__mask-overlay"
|
|
5487
|
+
);
|
|
5488
|
+
i && (i.textContent = "");
|
|
5489
|
+
}
|
|
5490
|
+
}
|
|
5415
5491
|
}
|
|
5416
5492
|
// Generate a unique ID if one is not provided
|
|
5417
5493
|
connectedCallback() {
|
|
@@ -5475,11 +5551,38 @@ const p = (I = class extends u {
|
|
|
5475
5551
|
_togglePasswordVisibility() {
|
|
5476
5552
|
this.showPassword = !this.showPassword;
|
|
5477
5553
|
}
|
|
5554
|
+
_updateOverlay(e, t) {
|
|
5555
|
+
var i;
|
|
5556
|
+
const o = (i = this.shadowRoot) == null ? void 0 : i.querySelector(
|
|
5557
|
+
".nys-textinput__mask-overlay"
|
|
5558
|
+
);
|
|
5559
|
+
if (!o) return;
|
|
5560
|
+
const s = e, n = t.slice(s.length);
|
|
5561
|
+
o.textContent = s + n;
|
|
5562
|
+
}
|
|
5563
|
+
_applyMask(e, t) {
|
|
5564
|
+
const o = e.replace(/\D/g, "");
|
|
5565
|
+
let s = "";
|
|
5566
|
+
if (this.type === "tel")
|
|
5567
|
+
return o.length > 0 && (s = "(" + o.substring(0, 3)), o.length >= 4 && (s += ") " + o.substring(3, 6)), o.length > 6 && (s += "-" + o.substring(6, 10)), s;
|
|
5568
|
+
let n = 0;
|
|
5569
|
+
for (let i = 0; i < t.length; i++)
|
|
5570
|
+
if (t[i] === "_" || t[i].match(/[d9]/i))
|
|
5571
|
+
if (n < o.length)
|
|
5572
|
+
s += o[n++];
|
|
5573
|
+
else
|
|
5574
|
+
break;
|
|
5575
|
+
else
|
|
5576
|
+
s += t[i];
|
|
5577
|
+
return s;
|
|
5578
|
+
}
|
|
5478
5579
|
/******************** Event Handlers ********************/
|
|
5479
5580
|
// Handle input event to check pattern validity
|
|
5480
5581
|
_handleInput(e) {
|
|
5481
5582
|
const t = e.target;
|
|
5482
|
-
|
|
5583
|
+
let o = t.value;
|
|
5584
|
+
const s = this._maskPatterns[this.type];
|
|
5585
|
+
s && (o = this._applyMask(o, s), t.value = o, this._updateOverlay(o, s)), this.value = o, this._internals.setFormValue(this.value), this._hasUserInteracted && this._validate(), this.dispatchEvent(
|
|
5483
5586
|
new CustomEvent("nys-input", {
|
|
5484
5587
|
detail: { value: this.value },
|
|
5485
5588
|
bubbles: !0,
|
|
@@ -5529,6 +5632,7 @@ const p = (I = class extends u {
|
|
|
5529
5632
|
@slotchange=${this._validateButtonSlot("startButton")}
|
|
5530
5633
|
></slot>
|
|
5531
5634
|
<div class="nys-textinput__container">
|
|
5635
|
+
<span class="nys-textinput__mask-overlay"></span>
|
|
5532
5636
|
<input
|
|
5533
5637
|
class="nys-textinput__input"
|
|
5534
5638
|
type=${this.type === "password" ? this.showPassword ? "text" : "password" : this.type}
|
|
@@ -5560,6 +5664,7 @@ const p = (I = class extends u {
|
|
|
5560
5664
|
class="eye-icon"
|
|
5561
5665
|
id="password-toggle"
|
|
5562
5666
|
suffixIcon="slotted"
|
|
5667
|
+
ariaLabel="password toggle"
|
|
5563
5668
|
.onClick=${() => !this.disabled && this._togglePasswordVisibility()}
|
|
5564
5669
|
variant="ghost"
|
|
5565
5670
|
size="sm"
|
|
@@ -5592,72 +5697,72 @@ const p = (I = class extends u {
|
|
|
5592
5697
|
"text",
|
|
5593
5698
|
"url"
|
|
5594
5699
|
], I.VALID_WIDTHS = ["sm", "md", "lg", "full"], I.styles = Ne, I.formAssociated = !0, I);
|
|
5595
|
-
|
|
5700
|
+
f([
|
|
5596
5701
|
r({ type: String })
|
|
5597
5702
|
], p.prototype, "id", 2);
|
|
5598
|
-
|
|
5703
|
+
f([
|
|
5599
5704
|
r({ type: String, reflect: !0 })
|
|
5600
5705
|
], p.prototype, "name", 2);
|
|
5601
|
-
|
|
5706
|
+
f([
|
|
5602
5707
|
r({ reflect: !0 })
|
|
5603
5708
|
], p.prototype, "type", 1);
|
|
5604
|
-
|
|
5709
|
+
f([
|
|
5605
5710
|
r({ type: String })
|
|
5606
5711
|
], p.prototype, "label", 2);
|
|
5607
|
-
|
|
5712
|
+
f([
|
|
5608
5713
|
r({ type: String })
|
|
5609
5714
|
], p.prototype, "description", 2);
|
|
5610
|
-
|
|
5715
|
+
f([
|
|
5611
5716
|
r({ type: String })
|
|
5612
5717
|
], p.prototype, "placeholder", 2);
|
|
5613
|
-
|
|
5718
|
+
f([
|
|
5614
5719
|
r({ type: String })
|
|
5615
5720
|
], p.prototype, "value", 2);
|
|
5616
|
-
|
|
5721
|
+
f([
|
|
5617
5722
|
r({ type: Boolean, reflect: !0 })
|
|
5618
5723
|
], p.prototype, "disabled", 2);
|
|
5619
|
-
|
|
5724
|
+
f([
|
|
5620
5725
|
r({ type: Boolean, reflect: !0 })
|
|
5621
5726
|
], p.prototype, "readonly", 2);
|
|
5622
|
-
|
|
5727
|
+
f([
|
|
5623
5728
|
r({ type: Boolean, reflect: !0 })
|
|
5624
5729
|
], p.prototype, "required", 2);
|
|
5625
|
-
|
|
5730
|
+
f([
|
|
5626
5731
|
r({ type: Boolean, reflect: !0 })
|
|
5627
5732
|
], p.prototype, "optional", 2);
|
|
5628
|
-
|
|
5733
|
+
f([
|
|
5629
5734
|
r({ type: String })
|
|
5630
5735
|
], p.prototype, "form", 2);
|
|
5631
|
-
|
|
5736
|
+
f([
|
|
5632
5737
|
r({ type: String })
|
|
5633
5738
|
], p.prototype, "pattern", 2);
|
|
5634
|
-
|
|
5739
|
+
f([
|
|
5635
5740
|
r({ type: Number })
|
|
5636
5741
|
], p.prototype, "maxlength", 2);
|
|
5637
|
-
|
|
5742
|
+
f([
|
|
5638
5743
|
r({ reflect: !0 })
|
|
5639
5744
|
], p.prototype, "width", 2);
|
|
5640
|
-
|
|
5745
|
+
f([
|
|
5641
5746
|
r({ type: Number })
|
|
5642
5747
|
], p.prototype, "step", 2);
|
|
5643
|
-
|
|
5748
|
+
f([
|
|
5644
5749
|
r({ type: Number })
|
|
5645
5750
|
], p.prototype, "min", 2);
|
|
5646
|
-
|
|
5751
|
+
f([
|
|
5647
5752
|
r({ type: Number })
|
|
5648
5753
|
], p.prototype, "max", 2);
|
|
5649
|
-
|
|
5754
|
+
f([
|
|
5650
5755
|
r({ type: Boolean, reflect: !0 })
|
|
5651
5756
|
], p.prototype, "showError", 2);
|
|
5652
|
-
|
|
5757
|
+
f([
|
|
5653
5758
|
r({ type: String })
|
|
5654
5759
|
], p.prototype, "errorMessage", 2);
|
|
5655
|
-
|
|
5656
|
-
|
|
5760
|
+
f([
|
|
5761
|
+
B()
|
|
5657
5762
|
], p.prototype, "showPassword", 2);
|
|
5658
5763
|
let We = p;
|
|
5659
5764
|
customElements.get("nys-textinput") || customElements.define("nys-textinput", We);
|
|
5660
|
-
const Ke =
|
|
5765
|
+
const Ke = C`
|
|
5661
5766
|
:host {
|
|
5662
5767
|
/* Global Toggle Styles */
|
|
5663
5768
|
--_nys-toggle-width: var(--nys-font-size-8xl, 44px);
|
|
@@ -5941,7 +6046,7 @@ var Xe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, N = (l, e,
|
|
|
5941
6046
|
};
|
|
5942
6047
|
let Je = 0;
|
|
5943
6048
|
var K;
|
|
5944
|
-
const
|
|
6049
|
+
const O = (K = class extends u {
|
|
5945
6050
|
// allows use of elementInternals' API
|
|
5946
6051
|
constructor() {
|
|
5947
6052
|
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();
|
|
@@ -6030,37 +6135,37 @@ const U = (K = class extends u {
|
|
|
6030
6135
|
}, K.VALID_SIZES = ["sm", "md"], K.styles = Ke, K.formAssociated = !0, K);
|
|
6031
6136
|
N([
|
|
6032
6137
|
r({ type: String })
|
|
6033
|
-
],
|
|
6138
|
+
], O.prototype, "id", 2);
|
|
6034
6139
|
N([
|
|
6035
6140
|
r({ type: String, reflect: !0 })
|
|
6036
|
-
],
|
|
6141
|
+
], O.prototype, "name", 2);
|
|
6037
6142
|
N([
|
|
6038
6143
|
r({ type: String })
|
|
6039
|
-
],
|
|
6144
|
+
], O.prototype, "value", 2);
|
|
6040
6145
|
N([
|
|
6041
6146
|
r({ type: Boolean, reflect: !0 })
|
|
6042
|
-
],
|
|
6147
|
+
], O.prototype, "checked", 2);
|
|
6043
6148
|
N([
|
|
6044
6149
|
r({ type: Boolean, reflect: !0 })
|
|
6045
|
-
],
|
|
6150
|
+
], O.prototype, "disabled", 2);
|
|
6046
6151
|
N([
|
|
6047
6152
|
r({ type: Boolean })
|
|
6048
|
-
],
|
|
6153
|
+
], O.prototype, "noIcon", 2);
|
|
6049
6154
|
N([
|
|
6050
6155
|
r({ type: String })
|
|
6051
|
-
],
|
|
6156
|
+
], O.prototype, "label", 2);
|
|
6052
6157
|
N([
|
|
6053
6158
|
r({ type: String })
|
|
6054
|
-
],
|
|
6159
|
+
], O.prototype, "description", 2);
|
|
6055
6160
|
N([
|
|
6056
6161
|
r({ reflect: !0 })
|
|
6057
|
-
],
|
|
6162
|
+
], O.prototype, "size", 1);
|
|
6058
6163
|
N([
|
|
6059
6164
|
r({ type: String })
|
|
6060
|
-
],
|
|
6061
|
-
let
|
|
6062
|
-
customElements.get("nys-toggle") || customElements.define("nys-toggle",
|
|
6063
|
-
const
|
|
6165
|
+
], O.prototype, "form", 2);
|
|
6166
|
+
let e2 = O;
|
|
6167
|
+
customElements.get("nys-toggle") || customElements.define("nys-toggle", e2);
|
|
6168
|
+
const t2 = C`
|
|
6064
6169
|
:host {
|
|
6065
6170
|
/* Global Tooltip Styles */
|
|
6066
6171
|
--_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
|
|
@@ -6217,13 +6322,13 @@ const tt = g`
|
|
|
6217
6322
|
}
|
|
6218
6323
|
}
|
|
6219
6324
|
`;
|
|
6220
|
-
var
|
|
6221
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6325
|
+
var s2 = Object.defineProperty, o2 = Object.getOwnPropertyDescriptor, y1 = (l, e, t, o) => {
|
|
6326
|
+
for (var s = o > 1 ? void 0 : o ? o2(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
6222
6327
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
6223
|
-
return o && s &&
|
|
6328
|
+
return o && s && s2(e, t, s), s;
|
|
6224
6329
|
};
|
|
6225
|
-
let
|
|
6226
|
-
const
|
|
6330
|
+
let r2 = 0;
|
|
6331
|
+
const V1 = class V1 extends u {
|
|
6227
6332
|
/**************** Lifecycle Methods ****************/
|
|
6228
6333
|
constructor() {
|
|
6229
6334
|
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 = () => {
|
|
@@ -6272,7 +6377,7 @@ const D1 = class D1 extends u {
|
|
|
6272
6377
|
this._position = e, this.requestUpdate("position", t), this._internallyUpdatingPosition || (this._userHasSetPosition = e !== null, this._originalUserPosition = e);
|
|
6273
6378
|
}
|
|
6274
6379
|
connectedCallback() {
|
|
6275
|
-
super.connectedCallback(), this.id || (this.id = `nys-tooltip-${Date.now()}-${
|
|
6380
|
+
super.connectedCallback(), this.id || (this.id = `nys-tooltip-${Date.now()}-${r2++}`), window.addEventListener("keydown", this._handleEscapeKey);
|
|
6276
6381
|
}
|
|
6277
6382
|
disconnectedCallback() {
|
|
6278
6383
|
super.disconnectedCallback(), window.removeEventListener("keydown", this._handleEscapeKey);
|
|
@@ -6325,8 +6430,8 @@ const D1 = class D1 extends u {
|
|
|
6325
6430
|
}
|
|
6326
6431
|
// Checks if user's set position fit with current viewport (Does not account for overflow texts at this moment)
|
|
6327
6432
|
_doesPositionFit(e) {
|
|
6328
|
-
var
|
|
6329
|
-
const t = (
|
|
6433
|
+
var S, $;
|
|
6434
|
+
const t = (S = this.shadowRoot) == null ? void 0 : S.querySelector(".nys-tooltip__wrapper"), o = ($ = this.shadowRoot) == null ? void 0 : $.querySelector(".nys-tooltip__content");
|
|
6330
6435
|
if (!t || !o || e == null) return;
|
|
6331
6436
|
const s = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = 8, c = {
|
|
6332
6437
|
top: s.top - i,
|
|
@@ -6343,10 +6448,10 @@ const D1 = class D1 extends u {
|
|
|
6343
6448
|
}
|
|
6344
6449
|
// Calculates the best placement based on available space (flips placement if it doesn't fit)
|
|
6345
6450
|
async autoPositionTooltip() {
|
|
6346
|
-
var
|
|
6347
|
-
const e = (
|
|
6451
|
+
var S, $;
|
|
6452
|
+
const e = (S = this.shadowRoot) == null ? void 0 : S.querySelector(
|
|
6348
6453
|
".nys-tooltip__wrapper"
|
|
6349
|
-
), t = (
|
|
6454
|
+
), t = ($ = this.shadowRoot) == null ? void 0 : $.querySelector(
|
|
6350
6455
|
".nys-tooltip__content"
|
|
6351
6456
|
);
|
|
6352
6457
|
if (!e || !t) return;
|
|
@@ -6363,17 +6468,17 @@ const D1 = class D1 extends u {
|
|
|
6363
6468
|
"left"
|
|
6364
6469
|
];
|
|
6365
6470
|
if (this._userHasSetPosition && this._originalUserPosition) {
|
|
6366
|
-
const
|
|
6367
|
-
|
|
6471
|
+
const b = this._originalUserPosition;
|
|
6472
|
+
b === "left" ? i = ["left", "right", "top", "bottom"] : b === "right" ? i = ["right", "left", "top", "bottom"] : b === "top" ? i = ["top", "bottom", "right", "left"] : b === "bottom" && (i = ["bottom", "top", "right", "left"]);
|
|
6368
6473
|
}
|
|
6369
|
-
for (const
|
|
6370
|
-
if (this._doesPositionFit(
|
|
6371
|
-
this._setInternalPosition(
|
|
6474
|
+
for (const b of i)
|
|
6475
|
+
if (this._doesPositionFit(b)) {
|
|
6476
|
+
this._setInternalPosition(b), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6372
6477
|
return;
|
|
6373
6478
|
}
|
|
6374
6479
|
let c = "top", d = n.top;
|
|
6375
|
-
for (const
|
|
6376
|
-
n[
|
|
6480
|
+
for (const b of i)
|
|
6481
|
+
n[b] > d && (d = n[b], c = b);
|
|
6377
6482
|
this._setInternalPosition(c), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6378
6483
|
}
|
|
6379
6484
|
// Sets flag to distinguish to position's setter that we are updating "position" prop internally
|
|
@@ -6382,13 +6487,13 @@ const D1 = class D1 extends u {
|
|
|
6382
6487
|
}
|
|
6383
6488
|
// Determines if text of tooltip over-extends outside of viewport edge and adjust tooltip for horizontal overflow
|
|
6384
6489
|
_shiftTooltipIntoViewport(e) {
|
|
6385
|
-
var
|
|
6386
|
-
const o = ((
|
|
6490
|
+
var b;
|
|
6491
|
+
const o = ((b = this.shadowRoot) == null ? void 0 : b.querySelector(
|
|
6387
6492
|
".nys-tooltip__wrapper"
|
|
6388
6493
|
)).getBoundingClientRect(), s = e.getBoundingClientRect(), n = o.left + o.width / 2, i = s.left < 0, c = s.right > window.innerWidth;
|
|
6389
6494
|
this._resetTooltipPositioningStyles(e), i ? (e.style.left = "0px", e.style.transform = "none") : c && (e.style.right = "0px", e.style.left = "auto", e.style.transform = "none");
|
|
6390
|
-
const d = e.getBoundingClientRect(),
|
|
6391
|
-
e.style.setProperty("--arrow-offset-x", `${
|
|
6495
|
+
const d = e.getBoundingClientRect(), S = (n - d.left) / d.width, $ = Math.max(0, Math.min(1, S)) * 100;
|
|
6496
|
+
e.style.setProperty("--arrow-offset-x", `${$}%`);
|
|
6392
6497
|
}
|
|
6393
6498
|
// Reposition tooltip back to original set position (e.g. top, left, bottom, right) to avoid positioning issue base on last position
|
|
6394
6499
|
_resetTooltipPositioningStyles(e) {
|
|
@@ -6423,8 +6528,8 @@ const D1 = class D1 extends u {
|
|
|
6423
6528
|
`;
|
|
6424
6529
|
}
|
|
6425
6530
|
};
|
|
6426
|
-
|
|
6427
|
-
let X =
|
|
6531
|
+
V1.styles = t2;
|
|
6532
|
+
let X = V1;
|
|
6428
6533
|
y1([
|
|
6429
6534
|
r({ type: String })
|
|
6430
6535
|
], X.prototype, "id", 2);
|
|
@@ -6438,13 +6543,13 @@ y1([
|
|
|
6438
6543
|
r({ type: Boolean, reflect: !0 })
|
|
6439
6544
|
], X.prototype, "focusable", 2);
|
|
6440
6545
|
y1([
|
|
6441
|
-
|
|
6546
|
+
B()
|
|
6442
6547
|
], X.prototype, "_active", 2);
|
|
6443
6548
|
y1([
|
|
6444
6549
|
r({ type: String, reflect: !0 })
|
|
6445
6550
|
], X.prototype, "position", 1);
|
|
6446
6551
|
customElements.get("nys-tooltip") || customElements.define("nys-tooltip", X);
|
|
6447
|
-
const
|
|
6552
|
+
const n2 = C`
|
|
6448
6553
|
:host {
|
|
6449
6554
|
/* Global Unav Header Styles */
|
|
6450
6555
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
@@ -6491,7 +6596,6 @@ const nt = g`
|
|
|
6491
6596
|
|
|
6492
6597
|
.nys-unavheader__mainwrapper {
|
|
6493
6598
|
background-color: var(--_nys-unavheader-bg-color);
|
|
6494
|
-
padding: var(--nys-space-100, 8px) var(--_nys-unavheader-gutter);
|
|
6495
6599
|
display: flex;
|
|
6496
6600
|
justify-content: center;
|
|
6497
6601
|
}
|
|
@@ -6529,6 +6633,7 @@ const nt = g`
|
|
|
6529
6633
|
|
|
6530
6634
|
.nys-unavheader__maincontent {
|
|
6531
6635
|
display: flex;
|
|
6636
|
+
flex-wrap: wrap;
|
|
6532
6637
|
flex: 1;
|
|
6533
6638
|
justify-content: space-between;
|
|
6534
6639
|
align-items: center;
|
|
@@ -6562,6 +6667,22 @@ const nt = g`
|
|
|
6562
6667
|
display: flex;
|
|
6563
6668
|
align-items: center;
|
|
6564
6669
|
gap: var(--nys-space-300, 24px);
|
|
6670
|
+
padding-top: var(--nys-space-100, 8px);
|
|
6671
|
+
padding-bottom: var(--nys-space-100, 8px);
|
|
6672
|
+
}
|
|
6673
|
+
|
|
6674
|
+
.nys-unavheader__left {
|
|
6675
|
+
order: 2;
|
|
6676
|
+
padding-left: var(--_nys-unavheader-gutter);
|
|
6677
|
+
}
|
|
6678
|
+
.nys-unavheader__right {
|
|
6679
|
+
order: 3;
|
|
6680
|
+
padding-right: var(--_nys-unavheader-gutter);
|
|
6681
|
+
}
|
|
6682
|
+
|
|
6683
|
+
.nys-unavheader__trustbarwrapper {
|
|
6684
|
+
order: 1;
|
|
6685
|
+
width: 100%;
|
|
6565
6686
|
}
|
|
6566
6687
|
|
|
6567
6688
|
#nys-unavheader__translate,
|
|
@@ -6744,7 +6865,7 @@ const nt = g`
|
|
|
6744
6865
|
display: contents;
|
|
6745
6866
|
}
|
|
6746
6867
|
.nys-unavheader__trustbarwrapper {
|
|
6747
|
-
order:
|
|
6868
|
+
order: 4;
|
|
6748
6869
|
}
|
|
6749
6870
|
.nys-unavheader__toptrustbar {
|
|
6750
6871
|
display: none;
|
|
@@ -6766,7 +6887,7 @@ const nt = g`
|
|
|
6766
6887
|
display: contents;
|
|
6767
6888
|
}
|
|
6768
6889
|
.nys-unavheader__trustbarwrapper {
|
|
6769
|
-
order:
|
|
6890
|
+
order: 4;
|
|
6770
6891
|
}
|
|
6771
6892
|
.nys-unavheader__toptrustbar {
|
|
6772
6893
|
display: none;
|
|
@@ -6785,13 +6906,13 @@ const nt = g`
|
|
|
6785
6906
|
display: contents;
|
|
6786
6907
|
}
|
|
6787
6908
|
.nys-unavheader__trustbarwrapper {
|
|
6788
|
-
order:
|
|
6909
|
+
order: 4;
|
|
6789
6910
|
}
|
|
6790
6911
|
.nys-unavheader__toptrustbar {
|
|
6791
6912
|
display: none;
|
|
6792
6913
|
}
|
|
6793
6914
|
}
|
|
6794
|
-
`,
|
|
6915
|
+
`, i2 = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
6795
6916
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="#457AA5"/>
|
|
6796
6917
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="#457AA5"/>
|
|
6797
6918
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="#457AA5"/>
|
|
@@ -6808,12 +6929,12 @@ const nt = g`
|
|
|
6808
6929
|
<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"/>
|
|
6809
6930
|
<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"/>
|
|
6810
6931
|
</svg>`;
|
|
6811
|
-
var
|
|
6932
|
+
var a2 = Object.defineProperty, l1 = (l, e, t, o) => {
|
|
6812
6933
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
6813
6934
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
6814
|
-
return s &&
|
|
6935
|
+
return s && a2(e, t, s), s;
|
|
6815
6936
|
};
|
|
6816
|
-
const
|
|
6937
|
+
const D1 = class D1 extends u {
|
|
6817
6938
|
constructor() {
|
|
6818
6939
|
super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
|
|
6819
6940
|
["English", ""],
|
|
@@ -6833,7 +6954,7 @@ const V1 = class V1 extends u {
|
|
|
6833
6954
|
];
|
|
6834
6955
|
}
|
|
6835
6956
|
_getNysLogo() {
|
|
6836
|
-
return new DOMParser().parseFromString(
|
|
6957
|
+
return new DOMParser().parseFromString(i2, "image/svg+xml").documentElement;
|
|
6837
6958
|
}
|
|
6838
6959
|
_toggleTrustbar() {
|
|
6839
6960
|
this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
|
|
@@ -6876,68 +6997,6 @@ const V1 = class V1 extends u {
|
|
|
6876
6997
|
render() {
|
|
6877
6998
|
return a`
|
|
6878
6999
|
<header class="nys-unavheader">
|
|
6879
|
-
<div class="nys-unavheader__trustbarwrapper">
|
|
6880
|
-
<div
|
|
6881
|
-
class="nys-unavheader__toptrustbar"
|
|
6882
|
-
@click="${this._toggleTrustbar}"
|
|
6883
|
-
@keydown="${(e) => {
|
|
6884
|
-
(e.code === "Enter" || e.code === "Space" || e.key === "Enter" || e.key === " ") && this._toggleTrustbar();
|
|
6885
|
-
}}"
|
|
6886
|
-
>
|
|
6887
|
-
<div class="nys-unavheader__officialmessage">
|
|
6888
|
-
<label id="nys-unavheader__official"
|
|
6889
|
-
>An official website of New York State</label
|
|
6890
|
-
>
|
|
6891
|
-
<nys-button
|
|
6892
|
-
id="nys-unavheader__know"
|
|
6893
|
-
label="Here's how you know"
|
|
6894
|
-
ariaLabel=${this.trustbarVisible ? "Here's how you know expanded" : "Here's how you know collapsed"}
|
|
6895
|
-
variant="ghost"
|
|
6896
|
-
size="sm"
|
|
6897
|
-
suffixIcon="slotted"
|
|
6898
|
-
>
|
|
6899
|
-
<nys-icon
|
|
6900
|
-
slot="suffix-icon"
|
|
6901
|
-
size="12"
|
|
6902
|
-
name=${this.trustbarVisible ? "chevron_up" : "chevron_down"}
|
|
6903
|
-
></nys-icon>
|
|
6904
|
-
</nys-button>
|
|
6905
|
-
</div>
|
|
6906
|
-
</div>
|
|
6907
|
-
<div
|
|
6908
|
-
class="nys-unavheader__trustbar ${this.trustbarVisible ? "show" : "hide"}"
|
|
6909
|
-
>
|
|
6910
|
-
<div class="nys-unavheader__trustcontent">
|
|
6911
|
-
<div class="nys-unavheader__trustcontentmessage">
|
|
6912
|
-
<nys-icon size="3xl" name="account_balance_filled"></nys-icon>
|
|
6913
|
-
<label><b>Official websites use ny.gov</b></label>
|
|
6914
|
-
<label
|
|
6915
|
-
>A <b>ny.gov</b> website belongs to an official New York State
|
|
6916
|
-
government organization.</label
|
|
6917
|
-
>
|
|
6918
|
-
</div>
|
|
6919
|
-
<div class="nys-unavheader__trustcontentmessage">
|
|
6920
|
-
<nys-icon size="3xl" name="lock_filled"></nys-icon>
|
|
6921
|
-
<label><b>Secure ny.gov websites use HTTPS</b></label>
|
|
6922
|
-
<label
|
|
6923
|
-
>A <b>lock icon</b> or <b>https://</b> means you've safely
|
|
6924
|
-
connected to the ny.gov website. Share sensitive information
|
|
6925
|
-
only on official, secure websites.</label
|
|
6926
|
-
>
|
|
6927
|
-
</div>
|
|
6928
|
-
</div>
|
|
6929
|
-
<nys-button
|
|
6930
|
-
id="nys-unavheader__closetrustbar"
|
|
6931
|
-
class="nys-unavheader__iconbutton"
|
|
6932
|
-
variant="ghost"
|
|
6933
|
-
circle
|
|
6934
|
-
icon="close"
|
|
6935
|
-
size="sm"
|
|
6936
|
-
ariaLabel="Close this notice"
|
|
6937
|
-
.onClick="${() => this._toggleTrustbar()}"
|
|
6938
|
-
></nys-button>
|
|
6939
|
-
</div>
|
|
6940
|
-
</div>
|
|
6941
7000
|
<div class="nys-unavheader__mainwrapper" id="nys-universal-navigation">
|
|
6942
7001
|
<div class="nys-unavheader__maincontent">
|
|
6943
7002
|
<div class="nys-unavheader__left">
|
|
@@ -6973,6 +7032,71 @@ const V1 = class V1 extends u {
|
|
|
6973
7032
|
</div>
|
|
6974
7033
|
</div>
|
|
6975
7034
|
</div>
|
|
7035
|
+
<div class="nys-unavheader__trustbarwrapper">
|
|
7036
|
+
<div
|
|
7037
|
+
class="nys-unavheader__toptrustbar"
|
|
7038
|
+
@click="${this._toggleTrustbar}"
|
|
7039
|
+
@keydown="${(e) => {
|
|
7040
|
+
(e.code === "Enter" || e.code === "Space" || e.key === "Enter" || e.key === " ") && this._toggleTrustbar();
|
|
7041
|
+
}}"
|
|
7042
|
+
>
|
|
7043
|
+
<div class="nys-unavheader__officialmessage">
|
|
7044
|
+
<label id="nys-unavheader__official"
|
|
7045
|
+
>An official website of New York State</label
|
|
7046
|
+
>
|
|
7047
|
+
<nys-button
|
|
7048
|
+
id="nys-unavheader__know"
|
|
7049
|
+
label="Here's how you know"
|
|
7050
|
+
ariaLabel=${this.trustbarVisible ? "Here's how you know expanded" : "Here's how you know collapsed"}
|
|
7051
|
+
variant="ghost"
|
|
7052
|
+
size="sm"
|
|
7053
|
+
suffixIcon="slotted"
|
|
7054
|
+
>
|
|
7055
|
+
<nys-icon
|
|
7056
|
+
slot="suffix-icon"
|
|
7057
|
+
size="12"
|
|
7058
|
+
name=${this.trustbarVisible ? "chevron_up" : "chevron_down"}
|
|
7059
|
+
></nys-icon>
|
|
7060
|
+
</nys-button>
|
|
7061
|
+
</div>
|
|
7062
|
+
</div>
|
|
7063
|
+
<div
|
|
7064
|
+
class="nys-unavheader__trustbar ${this.trustbarVisible ? "show" : "hide"}"
|
|
7065
|
+
>
|
|
7066
|
+
<div class="nys-unavheader__trustcontent">
|
|
7067
|
+
<div class="nys-unavheader__trustcontentmessage">
|
|
7068
|
+
<nys-icon
|
|
7069
|
+
size="3xl"
|
|
7070
|
+
name="account_balance_filled"
|
|
7071
|
+
></nys-icon>
|
|
7072
|
+
<label><b>Official websites use ny.gov</b></label>
|
|
7073
|
+
<label
|
|
7074
|
+
>A <b>ny.gov</b> website belongs to an official New York
|
|
7075
|
+
State government organization.</label
|
|
7076
|
+
>
|
|
7077
|
+
</div>
|
|
7078
|
+
<div class="nys-unavheader__trustcontentmessage">
|
|
7079
|
+
<nys-icon size="3xl" name="lock_filled"></nys-icon>
|
|
7080
|
+
<label><b>Secure ny.gov websites use HTTPS</b></label>
|
|
7081
|
+
<label
|
|
7082
|
+
>A <b>lock icon</b> or <b>https://</b> means you've safely
|
|
7083
|
+
connected to the ny.gov website. Share sensitive
|
|
7084
|
+
information only on official, secure websites.</label
|
|
7085
|
+
>
|
|
7086
|
+
</div>
|
|
7087
|
+
</div>
|
|
7088
|
+
<nys-button
|
|
7089
|
+
id="nys-unavheader__closetrustbar"
|
|
7090
|
+
class="nys-unavheader__iconbutton"
|
|
7091
|
+
variant="ghost"
|
|
7092
|
+
circle
|
|
7093
|
+
icon="close"
|
|
7094
|
+
size="sm"
|
|
7095
|
+
ariaLabel="Close this notice"
|
|
7096
|
+
.onClick="${() => this._toggleTrustbar()}"
|
|
7097
|
+
></nys-button>
|
|
7098
|
+
</div>
|
|
7099
|
+
</div>
|
|
6976
7100
|
<div class="nys-unavheader__right">
|
|
6977
7101
|
${this.hideTranslate ? null : a`<div class="nys-unavheader__translatewrapper">
|
|
6978
7102
|
<div
|
|
@@ -6998,6 +7122,7 @@ const V1 = class V1 extends u {
|
|
|
6998
7122
|
<nys-button
|
|
6999
7123
|
variant="ghost"
|
|
7000
7124
|
label="Translate"
|
|
7125
|
+
size="sm"
|
|
7001
7126
|
prefixIcon="language_filled"
|
|
7002
7127
|
suffixIcon=${this.languageVisible ? "chevron_up" : "chevron_down"}
|
|
7003
7128
|
ariaLabel=${this.languageVisible ? "Translate expanded" : "Translate collapsed"}
|
|
@@ -7090,31 +7215,31 @@ const V1 = class V1 extends u {
|
|
|
7090
7215
|
`;
|
|
7091
7216
|
}
|
|
7092
7217
|
};
|
|
7093
|
-
|
|
7094
|
-
let P =
|
|
7095
|
-
|
|
7218
|
+
D1.styles = n2;
|
|
7219
|
+
let P = D1;
|
|
7220
|
+
l1([
|
|
7096
7221
|
r({ type: Boolean })
|
|
7097
7222
|
], P.prototype, "trustbarVisible");
|
|
7098
|
-
|
|
7223
|
+
l1([
|
|
7099
7224
|
r({ type: Boolean })
|
|
7100
7225
|
], P.prototype, "searchDropdownVisible");
|
|
7101
|
-
|
|
7226
|
+
l1([
|
|
7102
7227
|
r({ type: Boolean })
|
|
7103
7228
|
], P.prototype, "languageVisible");
|
|
7104
|
-
|
|
7229
|
+
l1([
|
|
7105
7230
|
r({ type: Boolean })
|
|
7106
7231
|
], P.prototype, "isSearchFocused");
|
|
7107
|
-
|
|
7232
|
+
l1([
|
|
7108
7233
|
r({ type: Boolean })
|
|
7109
7234
|
], P.prototype, "hideTranslate");
|
|
7110
|
-
|
|
7235
|
+
l1([
|
|
7111
7236
|
r({ type: Boolean })
|
|
7112
7237
|
], P.prototype, "hideSearch");
|
|
7113
|
-
|
|
7238
|
+
l1([
|
|
7114
7239
|
r({ type: String, reflect: !0 })
|
|
7115
7240
|
], P.prototype, "languages");
|
|
7116
7241
|
customElements.get("nys-unavheader") || customElements.define("nys-unavheader", P);
|
|
7117
|
-
const
|
|
7242
|
+
const l2 = C`
|
|
7118
7243
|
:host {
|
|
7119
7244
|
/* Global Header Styles */
|
|
7120
7245
|
--_nys-globalheader-text-color: var(
|
|
@@ -7395,10 +7520,10 @@ const lt = g`
|
|
|
7395
7520
|
}
|
|
7396
7521
|
}
|
|
7397
7522
|
`;
|
|
7398
|
-
var
|
|
7523
|
+
var c2 = Object.defineProperty, C1 = (l, e, t, o) => {
|
|
7399
7524
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
7400
7525
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
7401
|
-
return s &&
|
|
7526
|
+
return s && c2(e, t, s), s;
|
|
7402
7527
|
};
|
|
7403
7528
|
const M1 = class M1 extends u {
|
|
7404
7529
|
constructor() {
|
|
@@ -7425,10 +7550,10 @@ const M1 = class M1 extends u {
|
|
|
7425
7550
|
);
|
|
7426
7551
|
o && s && (o.innerHTML = "", s.innerHTML = "", t.forEach((d) => {
|
|
7427
7552
|
if (d.nodeType === Node.ELEMENT_NODE) {
|
|
7428
|
-
const
|
|
7429
|
-
["script", "iframe", "object", "embed, img"].forEach((
|
|
7430
|
-
|
|
7431
|
-
}), o.appendChild(
|
|
7553
|
+
const S = d.cloneNode(!0), $ = d.cloneNode(!0);
|
|
7554
|
+
["script", "iframe", "object", "embed, img"].forEach((B1) => {
|
|
7555
|
+
S.querySelectorAll(B1).forEach((A1) => A1.remove());
|
|
7556
|
+
}), o.appendChild(S), s.appendChild($), d.remove();
|
|
7432
7557
|
}
|
|
7433
7558
|
}));
|
|
7434
7559
|
}
|
|
@@ -7499,25 +7624,25 @@ const M1 = class M1 extends u {
|
|
|
7499
7624
|
`;
|
|
7500
7625
|
}
|
|
7501
7626
|
};
|
|
7502
|
-
M1.styles =
|
|
7627
|
+
M1.styles = l2;
|
|
7503
7628
|
let s1 = M1;
|
|
7504
|
-
|
|
7629
|
+
C1([
|
|
7505
7630
|
r({ type: String })
|
|
7506
7631
|
], s1.prototype, "appName");
|
|
7507
|
-
|
|
7632
|
+
C1([
|
|
7508
7633
|
r({ type: String })
|
|
7509
7634
|
], s1.prototype, "agencyName");
|
|
7510
|
-
|
|
7635
|
+
C1([
|
|
7511
7636
|
r({ type: String })
|
|
7512
7637
|
], s1.prototype, "homepageLink");
|
|
7513
|
-
|
|
7514
|
-
|
|
7638
|
+
C1([
|
|
7639
|
+
B()
|
|
7515
7640
|
], s1.prototype, "slotHasContent");
|
|
7516
|
-
|
|
7517
|
-
|
|
7641
|
+
C1([
|
|
7642
|
+
B()
|
|
7518
7643
|
], s1.prototype, "isMobileMenuOpen");
|
|
7519
7644
|
customElements.get("nys-globalheader") || customElements.define("nys-globalheader", s1);
|
|
7520
|
-
const
|
|
7645
|
+
const d2 = C`
|
|
7521
7646
|
:host {
|
|
7522
7647
|
/* Global Footer Styles */
|
|
7523
7648
|
--_nys-globalfooter-text-color: var(
|
|
@@ -7673,10 +7798,10 @@ const dt = g`
|
|
|
7673
7798
|
}
|
|
7674
7799
|
}
|
|
7675
7800
|
`;
|
|
7676
|
-
var
|
|
7801
|
+
var h2 = Object.defineProperty, w1 = (l, e, t, o) => {
|
|
7677
7802
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
7678
7803
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
7679
|
-
return s &&
|
|
7804
|
+
return s && h2(e, t, s), s;
|
|
7680
7805
|
};
|
|
7681
7806
|
const z1 = class z1 extends u {
|
|
7682
7807
|
constructor() {
|
|
@@ -7704,8 +7829,8 @@ const z1 = class z1 extends u {
|
|
|
7704
7829
|
o && (o.classList.toggle("columns", s), o.classList.toggle("small", !s), o.innerHTML = "", t.forEach((c) => {
|
|
7705
7830
|
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
7706
7831
|
const d = c.cloneNode(!0);
|
|
7707
|
-
["script", "iframe", "object", "embed", "img"].forEach((
|
|
7708
|
-
d.querySelectorAll(
|
|
7832
|
+
["script", "iframe", "object", "embed", "img"].forEach(($) => {
|
|
7833
|
+
d.querySelectorAll($).forEach((b) => b.remove());
|
|
7709
7834
|
}), o.appendChild(d), c.remove();
|
|
7710
7835
|
}
|
|
7711
7836
|
}));
|
|
@@ -7729,7 +7854,7 @@ const z1 = class z1 extends u {
|
|
|
7729
7854
|
`;
|
|
7730
7855
|
}
|
|
7731
7856
|
};
|
|
7732
|
-
z1.styles =
|
|
7857
|
+
z1.styles = d2;
|
|
7733
7858
|
let d1 = z1;
|
|
7734
7859
|
w1([
|
|
7735
7860
|
r({ type: String })
|
|
@@ -7738,10 +7863,10 @@ w1([
|
|
|
7738
7863
|
r({ type: String })
|
|
7739
7864
|
], d1.prototype, "homepageLink");
|
|
7740
7865
|
w1([
|
|
7741
|
-
|
|
7866
|
+
B()
|
|
7742
7867
|
], d1.prototype, "slotHasContent");
|
|
7743
7868
|
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", d1);
|
|
7744
|
-
const
|
|
7869
|
+
const y2 = C`
|
|
7745
7870
|
:host {
|
|
7746
7871
|
/* Global Footer Styles */
|
|
7747
7872
|
--_nys-unavfooter-link-color: var(
|
|
@@ -7897,7 +8022,7 @@ const yt = g`
|
|
|
7897
8022
|
--_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
7898
8023
|
}
|
|
7899
8024
|
}
|
|
7900
|
-
`,
|
|
8025
|
+
`, u2 = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
7901
8026
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="white"/>
|
|
7902
8027
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="white"/>
|
|
7903
8028
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="white"/>
|
|
@@ -7916,7 +8041,7 @@ const yt = g`
|
|
|
7916
8041
|
</svg>`, E1 = class E1 extends u {
|
|
7917
8042
|
/**************** Functions ****************/
|
|
7918
8043
|
_getNysLogo() {
|
|
7919
|
-
return new DOMParser().parseFromString(
|
|
8044
|
+
return new DOMParser().parseFromString(u2, "image/svg+xml").documentElement;
|
|
7920
8045
|
}
|
|
7921
8046
|
render() {
|
|
7922
8047
|
return a`
|
|
@@ -7950,13 +8075,13 @@ const yt = g`
|
|
|
7950
8075
|
`;
|
|
7951
8076
|
}
|
|
7952
8077
|
};
|
|
7953
|
-
E1.styles =
|
|
7954
|
-
let
|
|
7955
|
-
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter",
|
|
8078
|
+
E1.styles = y2;
|
|
8079
|
+
let m1 = E1;
|
|
8080
|
+
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", m1);
|
|
7956
8081
|
export {
|
|
7957
8082
|
R1 as NysAlert,
|
|
7958
8083
|
G1 as NysAvatar,
|
|
7959
|
-
|
|
8084
|
+
o1 as NysBacktotop,
|
|
7960
8085
|
ee as NysButton,
|
|
7961
8086
|
le as NysCheckbox,
|
|
7962
8087
|
re as NysCheckboxgroup,
|
|
@@ -7965,17 +8090,17 @@ export {
|
|
|
7965
8090
|
d1 as NysGlobalFooter,
|
|
7966
8091
|
s1 as NysGlobalHeader,
|
|
7967
8092
|
me as NysIcon,
|
|
7968
|
-
|
|
7969
|
-
|
|
8093
|
+
n1 as NysLabel,
|
|
8094
|
+
a1 as NysOption,
|
|
7970
8095
|
ze as NysRadiobutton,
|
|
7971
|
-
|
|
7972
|
-
|
|
8096
|
+
$e as NysRadiogroup,
|
|
8097
|
+
Ae as NysSelect,
|
|
7973
8098
|
u1 as NysSkipnav,
|
|
7974
8099
|
Fe as NysTextarea,
|
|
7975
8100
|
We as NysTextinput,
|
|
7976
|
-
|
|
8101
|
+
e2 as NysToggle,
|
|
7977
8102
|
X as NysTooltip,
|
|
7978
|
-
|
|
8103
|
+
m1 as NysUnavFooter,
|
|
7979
8104
|
P as NysUnavHeader
|
|
7980
8105
|
};
|
|
7981
8106
|
//# sourceMappingURL=nysds.es.js.map
|