@nysds/components 1.5.3 → 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 +338 -238
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +81 -28
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +3 -0
- package/package.json +10 -10
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>`}
|
|
@@ -397,17 +396,17 @@ V([
|
|
|
397
396
|
r({ type: String })
|
|
398
397
|
], k.prototype, "secondaryLabel", 2);
|
|
399
398
|
V([
|
|
400
|
-
|
|
399
|
+
B()
|
|
401
400
|
], k.prototype, "_alertClosed", 2);
|
|
402
401
|
V([
|
|
403
|
-
|
|
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
|
|
|
@@ -671,13 +670,13 @@ v1([
|
|
|
671
670
|
r({ type: Boolean, reflect: !0 })
|
|
672
671
|
], o1.prototype, "visible");
|
|
673
672
|
v1([
|
|
674
|
-
|
|
673
|
+
B()
|
|
675
674
|
], o1.prototype, "isMobile");
|
|
676
675
|
v1([
|
|
677
|
-
|
|
676
|
+
B()
|
|
678
677
|
], o1.prototype, "forceVisible");
|
|
679
678
|
customElements.get("nys-backtotop") || customElements.define("nys-backtotop", o1);
|
|
680
|
-
const K1 =
|
|
679
|
+
const K1 = C`
|
|
681
680
|
:host {
|
|
682
681
|
/* Anything that can be overridden should be defined here */
|
|
683
682
|
|
|
@@ -1105,7 +1104,7 @@ var X1 = Object.defineProperty, Q1 = Object.getOwnPropertyDescriptor, v = (l, e,
|
|
|
1105
1104
|
};
|
|
1106
1105
|
let J1 = 0;
|
|
1107
1106
|
var w;
|
|
1108
|
-
const
|
|
1107
|
+
const g = (w = class extends u {
|
|
1109
1108
|
// allows use of elementInternals' API
|
|
1110
1109
|
constructor() {
|
|
1111
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 = () => {
|
|
@@ -1269,67 +1268,67 @@ const f = (w = class extends u {
|
|
|
1269
1268
|
], w.styles = K1, w.formAssociated = !0, w);
|
|
1270
1269
|
v([
|
|
1271
1270
|
r({ type: String })
|
|
1272
|
-
],
|
|
1271
|
+
], g.prototype, "id", 2);
|
|
1273
1272
|
v([
|
|
1274
1273
|
r({ type: String, reflect: !0 })
|
|
1275
|
-
],
|
|
1274
|
+
], g.prototype, "name", 2);
|
|
1276
1275
|
v([
|
|
1277
1276
|
r({ reflect: !0 })
|
|
1278
|
-
],
|
|
1277
|
+
], g.prototype, "size", 1);
|
|
1279
1278
|
v([
|
|
1280
1279
|
r({ type: Boolean, reflect: !0 })
|
|
1281
|
-
],
|
|
1280
|
+
], g.prototype, "fullWidth", 2);
|
|
1282
1281
|
v([
|
|
1283
1282
|
r({ reflect: !0 })
|
|
1284
|
-
],
|
|
1283
|
+
], g.prototype, "variant", 1);
|
|
1285
1284
|
v([
|
|
1286
1285
|
r({ type: Boolean, reflect: !0 })
|
|
1287
|
-
],
|
|
1286
|
+
], g.prototype, "inverted", 2);
|
|
1288
1287
|
v([
|
|
1289
1288
|
r({ type: String })
|
|
1290
|
-
],
|
|
1289
|
+
], g.prototype, "label", 2);
|
|
1291
1290
|
v([
|
|
1292
1291
|
r({ type: String })
|
|
1293
|
-
],
|
|
1292
|
+
], g.prototype, "ariaLabel", 2);
|
|
1294
1293
|
v([
|
|
1295
1294
|
r({ type: String })
|
|
1296
|
-
],
|
|
1295
|
+
], g.prototype, "prefixIcon", 2);
|
|
1297
1296
|
v([
|
|
1298
1297
|
r({ type: String })
|
|
1299
|
-
],
|
|
1298
|
+
], g.prototype, "suffixIcon", 2);
|
|
1300
1299
|
v([
|
|
1301
1300
|
r({ type: Boolean, reflect: !0 })
|
|
1302
|
-
],
|
|
1301
|
+
], g.prototype, "circle", 2);
|
|
1303
1302
|
v([
|
|
1304
1303
|
r({ type: String })
|
|
1305
|
-
],
|
|
1304
|
+
], g.prototype, "icon", 2);
|
|
1306
1305
|
v([
|
|
1307
1306
|
r({ type: Boolean, reflect: !0 })
|
|
1308
|
-
],
|
|
1307
|
+
], g.prototype, "disabled", 2);
|
|
1309
1308
|
v([
|
|
1310
1309
|
r({ type: String })
|
|
1311
|
-
],
|
|
1310
|
+
], g.prototype, "form", 2);
|
|
1312
1311
|
v([
|
|
1313
1312
|
r({ type: String })
|
|
1314
|
-
],
|
|
1313
|
+
], g.prototype, "value", 2);
|
|
1315
1314
|
v([
|
|
1316
1315
|
r({ type: String })
|
|
1317
|
-
],
|
|
1316
|
+
], g.prototype, "ariaDescription", 2);
|
|
1318
1317
|
v([
|
|
1319
1318
|
r({ reflect: !0 })
|
|
1320
|
-
],
|
|
1319
|
+
], g.prototype, "type", 1);
|
|
1321
1320
|
v([
|
|
1322
1321
|
r({ type: Function })
|
|
1323
|
-
],
|
|
1322
|
+
], g.prototype, "onClick", 2);
|
|
1324
1323
|
v([
|
|
1325
1324
|
r({ type: String })
|
|
1326
|
-
],
|
|
1325
|
+
], g.prototype, "href", 2);
|
|
1327
1326
|
v([
|
|
1328
1327
|
r({ reflect: !0 })
|
|
1329
|
-
],
|
|
1330
|
-
let ee =
|
|
1328
|
+
], g.prototype, "target", 1);
|
|
1329
|
+
let ee = g;
|
|
1331
1330
|
customElements.get("nys-button") || customElements.define("nys-button", ee);
|
|
1332
|
-
const H1 =
|
|
1331
|
+
const H1 = C`
|
|
1333
1332
|
:host {
|
|
1334
1333
|
/* Anything that can be overridden should be defined here */
|
|
1335
1334
|
|
|
@@ -1693,7 +1692,7 @@ var te = Object.defineProperty, se = Object.getOwnPropertyDescriptor, T = (l, e,
|
|
|
1693
1692
|
};
|
|
1694
1693
|
let oe = 0;
|
|
1695
1694
|
var j;
|
|
1696
|
-
const
|
|
1695
|
+
const A = (j = class extends u {
|
|
1697
1696
|
// allows use of elementInternals' API
|
|
1698
1697
|
constructor() {
|
|
1699
1698
|
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._size = "md", this._internals = this.attachInternals();
|
|
@@ -1735,7 +1734,7 @@ const B = (j = class extends u {
|
|
|
1735
1734
|
if (Array.from(
|
|
1736
1735
|
this.querySelectorAll("nys-checkbox")
|
|
1737
1736
|
).filter(
|
|
1738
|
-
(
|
|
1737
|
+
($) => $.checked
|
|
1739
1738
|
).length === 0)
|
|
1740
1739
|
return c;
|
|
1741
1740
|
} else
|
|
@@ -1810,35 +1809,35 @@ const B = (j = class extends u {
|
|
|
1810
1809
|
}, j.VALID_SIZES = ["sm", "md"], j.styles = H1, j.formAssociated = !0, j);
|
|
1811
1810
|
T([
|
|
1812
1811
|
r({ type: String })
|
|
1813
|
-
],
|
|
1812
|
+
], A.prototype, "id", 2);
|
|
1814
1813
|
T([
|
|
1815
1814
|
r({ type: String, reflect: !0 })
|
|
1816
|
-
],
|
|
1815
|
+
], A.prototype, "name", 2);
|
|
1817
1816
|
T([
|
|
1818
1817
|
r({ type: Boolean, reflect: !0 })
|
|
1819
|
-
],
|
|
1818
|
+
], A.prototype, "required", 2);
|
|
1820
1819
|
T([
|
|
1821
1820
|
r({ type: Boolean, reflect: !0 })
|
|
1822
|
-
],
|
|
1821
|
+
], A.prototype, "optional", 2);
|
|
1823
1822
|
T([
|
|
1824
1823
|
r({ type: Boolean, reflect: !0 })
|
|
1825
|
-
],
|
|
1824
|
+
], A.prototype, "showError", 2);
|
|
1826
1825
|
T([
|
|
1827
1826
|
r({ type: String })
|
|
1828
|
-
],
|
|
1827
|
+
], A.prototype, "errorMessage", 2);
|
|
1829
1828
|
T([
|
|
1830
1829
|
r({ type: String })
|
|
1831
|
-
],
|
|
1830
|
+
], A.prototype, "label", 2);
|
|
1832
1831
|
T([
|
|
1833
1832
|
r({ type: String })
|
|
1834
|
-
],
|
|
1833
|
+
], A.prototype, "description", 2);
|
|
1835
1834
|
T([
|
|
1836
1835
|
r({ type: Boolean, reflect: !0 })
|
|
1837
|
-
],
|
|
1836
|
+
], A.prototype, "tile", 2);
|
|
1838
1837
|
T([
|
|
1839
1838
|
r({ reflect: !0 })
|
|
1840
|
-
],
|
|
1841
|
-
let re =
|
|
1839
|
+
], A.prototype, "size", 1);
|
|
1840
|
+
let re = A;
|
|
1842
1841
|
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", re);
|
|
1843
1842
|
var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, D = (l, e, t, o) => {
|
|
1844
1843
|
for (var s = o > 1 ? void 0 : o ? ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
@@ -2046,7 +2045,7 @@ D([
|
|
|
2046
2045
|
], L.prototype, "size", 1);
|
|
2047
2046
|
let le = L;
|
|
2048
2047
|
customElements.get("nys-checkbox") || customElements.define("nys-checkbox", le);
|
|
2049
|
-
const ce =
|
|
2048
|
+
const ce = C`
|
|
2050
2049
|
:host {
|
|
2051
2050
|
--_nys-errormessage-font-family: var(
|
|
2052
2051
|
--nys-font-family-ui,
|
|
@@ -2104,7 +2103,7 @@ var de = Object.defineProperty, x1 = (l, e, t, o) => {
|
|
|
2104
2103
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2105
2104
|
return s && de(e, t, s), s;
|
|
2106
2105
|
};
|
|
2107
|
-
const
|
|
2106
|
+
const g1 = class g1 extends u {
|
|
2108
2107
|
// allows use of elementInternals' API
|
|
2109
2108
|
constructor() {
|
|
2110
2109
|
super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
|
|
@@ -2116,8 +2115,8 @@ const f1 = class f1 extends u {
|
|
|
2116
2115
|
</div>` : ""}`;
|
|
2117
2116
|
}
|
|
2118
2117
|
};
|
|
2119
|
-
|
|
2120
|
-
let c1 =
|
|
2118
|
+
g1.styles = ce, g1.formAssociated = !0;
|
|
2119
|
+
let c1 = g1;
|
|
2121
2120
|
x1([
|
|
2122
2121
|
r({ type: Boolean })
|
|
2123
2122
|
], c1.prototype, "showError");
|
|
@@ -2136,7 +2135,7 @@ async function he(l, e) {
|
|
|
2136
2135
|
return !0;
|
|
2137
2136
|
return !1;
|
|
2138
2137
|
}
|
|
2139
|
-
const ye =
|
|
2138
|
+
const ye = C`
|
|
2140
2139
|
:host {
|
|
2141
2140
|
/* Global Fileinput Styles */
|
|
2142
2141
|
--_nys-fileinput-gap: var(--nys-space-100, 8px);
|
|
@@ -2256,7 +2255,7 @@ const ye = g`
|
|
|
2256
2255
|
progress::-webkit-progress-bar {
|
|
2257
2256
|
background: var(--_nys-fileinput-progress-background);
|
|
2258
2257
|
}
|
|
2259
|
-
`, ue =
|
|
2258
|
+
`, ue = C`
|
|
2260
2259
|
:host {
|
|
2261
2260
|
/* Global fileitem Styles */
|
|
2262
2261
|
--_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
|
|
@@ -2394,7 +2393,7 @@ const ye = g`
|
|
|
2394
2393
|
}
|
|
2395
2394
|
}
|
|
2396
2395
|
`;
|
|
2397
|
-
var pe = Object.defineProperty,
|
|
2396
|
+
var pe = Object.defineProperty, _1 = (l, e, t, o) => {
|
|
2398
2397
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2399
2398
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2400
2399
|
return s && pe(e, t, s), s;
|
|
@@ -2474,26 +2473,26 @@ const L1 = class L1 extends u {
|
|
|
2474
2473
|
};
|
|
2475
2474
|
L1.styles = ue;
|
|
2476
2475
|
let r1 = L1;
|
|
2477
|
-
|
|
2476
|
+
_1([
|
|
2478
2477
|
r({ type: String })
|
|
2479
2478
|
], r1.prototype, "filename");
|
|
2480
|
-
|
|
2479
|
+
_1([
|
|
2481
2480
|
r({ type: String })
|
|
2482
2481
|
], r1.prototype, "status");
|
|
2483
|
-
|
|
2482
|
+
_1([
|
|
2484
2483
|
r({ type: Number })
|
|
2485
2484
|
], r1.prototype, "progress");
|
|
2486
|
-
|
|
2485
|
+
_1([
|
|
2487
2486
|
r({ type: String })
|
|
2488
2487
|
], r1.prototype, "errorMessage");
|
|
2489
2488
|
customElements.define("nys-fileitem", r1);
|
|
2490
|
-
var
|
|
2489
|
+
var Ce = Object.defineProperty, M = (l, e, t, o) => {
|
|
2491
2490
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2492
2491
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2493
|
-
return s &&
|
|
2492
|
+
return s && Ce(e, t, s), s;
|
|
2494
2493
|
};
|
|
2495
|
-
let
|
|
2496
|
-
const
|
|
2494
|
+
let ge = 0;
|
|
2495
|
+
const f1 = class f1 extends u {
|
|
2497
2496
|
// allows use of elementInternals' API
|
|
2498
2497
|
constructor() {
|
|
2499
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();
|
|
@@ -2530,7 +2529,7 @@ const C1 = class C1 extends u {
|
|
|
2530
2529
|
}
|
|
2531
2530
|
// Generate a unique ID if one is not provided
|
|
2532
2531
|
connectedCallback() {
|
|
2533
|
-
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);
|
|
2534
2533
|
}
|
|
2535
2534
|
disconnectedCallback() {
|
|
2536
2535
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -2785,8 +2784,8 @@ const C1 = class C1 extends u {
|
|
|
2785
2784
|
</div>`;
|
|
2786
2785
|
}
|
|
2787
2786
|
};
|
|
2788
|
-
|
|
2789
|
-
let x =
|
|
2787
|
+
f1.styles = ye, f1.formAssociated = !0;
|
|
2788
|
+
let x = f1;
|
|
2790
2789
|
M([
|
|
2791
2790
|
r({ type: String })
|
|
2792
2791
|
], x.prototype, "id");
|
|
@@ -2827,7 +2826,7 @@ M([
|
|
|
2827
2826
|
r({ type: String, reflect: !0 })
|
|
2828
2827
|
], x.prototype, "width");
|
|
2829
2828
|
customElements.get("nys-fileinput") || customElements.define("nys-fileinput", x);
|
|
2830
|
-
const
|
|
2829
|
+
const fe = {
|
|
2831
2830
|
// --------- UX Team Main Library (below) --------- //
|
|
2832
2831
|
// *** CORE *** //
|
|
2833
2832
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -2925,6 +2924,22 @@ const Ce = {
|
|
|
2925
2924
|
<g mask="url(#mask0_12372_211)">
|
|
2926
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)"/>
|
|
2927
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>
|
|
2928
2943
|
</svg>`,
|
|
2929
2944
|
menu: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2930
2945
|
<mask id="mask0_12372_150" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
@@ -3080,6 +3095,30 @@ const Ce = {
|
|
|
3080
3095
|
<g mask="url(#mask0_12372_673)">
|
|
3081
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)"/>
|
|
3082
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>
|
|
3083
3122
|
</svg>`,
|
|
3084
3123
|
// *** Chevrons *** //
|
|
3085
3124
|
chevron_down: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -3359,7 +3398,7 @@ const Ce = {
|
|
|
3359
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)"/>
|
|
3360
3399
|
</g>
|
|
3361
3400
|
</svg>`
|
|
3362
|
-
}, ve =
|
|
3401
|
+
}, ve = C`
|
|
3363
3402
|
:host {
|
|
3364
3403
|
display: inline-block;
|
|
3365
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. */
|
|
@@ -3460,10 +3499,10 @@ const Ce = {
|
|
|
3460
3499
|
transform: scale(-1, -1);
|
|
3461
3500
|
}
|
|
3462
3501
|
`;
|
|
3463
|
-
var
|
|
3464
|
-
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--)
|
|
3465
3504
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3466
|
-
return o && s &&
|
|
3505
|
+
return o && s && _e(e, t, s), s;
|
|
3467
3506
|
}, t1;
|
|
3468
3507
|
const i1 = (t1 = class extends u {
|
|
3469
3508
|
constructor() {
|
|
@@ -3478,7 +3517,7 @@ const i1 = (t1 = class extends u {
|
|
|
3478
3517
|
) ? e : "sm";
|
|
3479
3518
|
}
|
|
3480
3519
|
getIcon() {
|
|
3481
|
-
const e =
|
|
3520
|
+
const e = fe[this.name];
|
|
3482
3521
|
if (!e) return null;
|
|
3483
3522
|
const s = new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
|
|
3484
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;
|
|
@@ -3525,7 +3564,7 @@ h1([
|
|
|
3525
3564
|
], i1.prototype, "size", 1);
|
|
3526
3565
|
let me = i1;
|
|
3527
3566
|
customElements.get("nys-icon") || customElements.define("nys-icon", me);
|
|
3528
|
-
const xe =
|
|
3567
|
+
const xe = C`
|
|
3529
3568
|
:host {
|
|
3530
3569
|
/* Label Typography */
|
|
3531
3570
|
--_nys-label-font-family: var(
|
|
@@ -3599,12 +3638,12 @@ const xe = g`
|
|
|
3599
3638
|
color: var(--nys-optional-font-color);
|
|
3600
3639
|
}
|
|
3601
3640
|
`;
|
|
3602
|
-
var we = Object.defineProperty,
|
|
3641
|
+
var we = Object.defineProperty, b1 = (l, e, t, o) => {
|
|
3603
3642
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
3604
3643
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
3605
3644
|
return s && we(e, t, s), s;
|
|
3606
3645
|
};
|
|
3607
|
-
const
|
|
3646
|
+
const S1 = class S1 extends u {
|
|
3608
3647
|
constructor() {
|
|
3609
3648
|
super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
|
|
3610
3649
|
}
|
|
@@ -3623,22 +3662,22 @@ const $1 = class $1 extends u {
|
|
|
3623
3662
|
`;
|
|
3624
3663
|
}
|
|
3625
3664
|
};
|
|
3626
|
-
|
|
3627
|
-
let n1 =
|
|
3628
|
-
|
|
3665
|
+
S1.styles = xe;
|
|
3666
|
+
let n1 = S1;
|
|
3667
|
+
b1([
|
|
3629
3668
|
r({ type: String })
|
|
3630
3669
|
], n1.prototype, "id");
|
|
3631
|
-
|
|
3670
|
+
b1([
|
|
3632
3671
|
r({ type: String })
|
|
3633
3672
|
], n1.prototype, "label");
|
|
3634
|
-
|
|
3673
|
+
b1([
|
|
3635
3674
|
r({ type: String })
|
|
3636
3675
|
], n1.prototype, "description");
|
|
3637
|
-
|
|
3676
|
+
b1([
|
|
3638
3677
|
r({ type: String })
|
|
3639
3678
|
], n1.prototype, "flag");
|
|
3640
3679
|
customElements.get("nys-label") || customElements.define("nys-label", n1);
|
|
3641
|
-
const Z1 =
|
|
3680
|
+
const Z1 = C`
|
|
3642
3681
|
:host {
|
|
3643
3682
|
/* Global Radiobutton Styles */
|
|
3644
3683
|
--_nys-radiobutton-size: var(--nys-size-400, 32px);
|
|
@@ -3996,7 +4035,7 @@ var ke = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, q = (l, e,
|
|
|
3996
4035
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3997
4036
|
return o && s && ke(e, t, s), s;
|
|
3998
4037
|
};
|
|
3999
|
-
let
|
|
4038
|
+
let Se = 0;
|
|
4000
4039
|
var Y;
|
|
4001
4040
|
const E = (Y = class extends u {
|
|
4002
4041
|
// allows use of elementInternals' API
|
|
@@ -4013,7 +4052,7 @@ const E = (Y = class extends u {
|
|
|
4013
4052
|
}
|
|
4014
4053
|
// Generate a unique ID if one is not provided
|
|
4015
4054
|
connectedCallback() {
|
|
4016
|
-
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);
|
|
4017
4056
|
}
|
|
4018
4057
|
disconnectedCallback() {
|
|
4019
4058
|
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4142,7 +4181,7 @@ q([
|
|
|
4142
4181
|
r({ type: String })
|
|
4143
4182
|
], E.prototype, "description", 2);
|
|
4144
4183
|
q([
|
|
4145
|
-
|
|
4184
|
+
B()
|
|
4146
4185
|
], E.prototype, "selectedValue", 2);
|
|
4147
4186
|
q([
|
|
4148
4187
|
r({ reflect: !0 })
|
|
@@ -4150,8 +4189,8 @@ q([
|
|
|
4150
4189
|
q([
|
|
4151
4190
|
r({ type: Boolean, reflect: !0 })
|
|
4152
4191
|
], E.prototype, "tile", 2);
|
|
4153
|
-
let
|
|
4154
|
-
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup",
|
|
4192
|
+
let $e = E;
|
|
4193
|
+
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", $e);
|
|
4155
4194
|
var Ve = Object.defineProperty, De = Object.getOwnPropertyDescriptor, F = (l, e, t, o) => {
|
|
4156
4195
|
for (var s = o > 1 ? void 0 : o ? De(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4157
4196
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
@@ -4290,7 +4329,7 @@ F([
|
|
|
4290
4329
|
], U.prototype, "tile", 2);
|
|
4291
4330
|
let ze = U;
|
|
4292
4331
|
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", ze);
|
|
4293
|
-
const Ee =
|
|
4332
|
+
const Ee = C`
|
|
4294
4333
|
:host {
|
|
4295
4334
|
/* Global Select Styles */
|
|
4296
4335
|
--_nys-select-width: 100%;
|
|
@@ -4491,7 +4530,7 @@ var Ze = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, H = (l, e,
|
|
|
4491
4530
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4492
4531
|
return o && s && Ze(e, t, s), s;
|
|
4493
4532
|
};
|
|
4494
|
-
let
|
|
4533
|
+
let Be = 0;
|
|
4495
4534
|
var W;
|
|
4496
4535
|
const z = (W = class extends u {
|
|
4497
4536
|
// allows use of elementInternals' API
|
|
@@ -4508,7 +4547,7 @@ const z = (W = class extends u {
|
|
|
4508
4547
|
}
|
|
4509
4548
|
// Generate a unique ID if one is not provided
|
|
4510
4549
|
connectedCallback() {
|
|
4511
|
-
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);
|
|
4512
4551
|
}
|
|
4513
4552
|
disconnectedCallback() {
|
|
4514
4553
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4688,9 +4727,9 @@ H([
|
|
|
4688
4727
|
H([
|
|
4689
4728
|
r({ reflect: !0 })
|
|
4690
4729
|
], z.prototype, "width", 1);
|
|
4691
|
-
let
|
|
4692
|
-
customElements.get("nys-select") || customElements.define("nys-select",
|
|
4693
|
-
const qe =
|
|
4730
|
+
let Ae = z;
|
|
4731
|
+
customElements.get("nys-select") || customElements.define("nys-select", Ae);
|
|
4732
|
+
const qe = C`
|
|
4694
4733
|
:host {
|
|
4695
4734
|
/* Global Skipnav Styles */
|
|
4696
4735
|
--_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
|
|
@@ -4768,7 +4807,7 @@ var Ue = Object.defineProperty, I1 = (l, e, t, o) => {
|
|
|
4768
4807
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
4769
4808
|
return s && Ue(e, t, s), s;
|
|
4770
4809
|
};
|
|
4771
|
-
const
|
|
4810
|
+
const $1 = class $1 extends u {
|
|
4772
4811
|
constructor() {
|
|
4773
4812
|
super(), this.id = "", this.href = "";
|
|
4774
4813
|
}
|
|
@@ -4809,8 +4848,8 @@ const S1 = class S1 extends u {
|
|
|
4809
4848
|
`;
|
|
4810
4849
|
}
|
|
4811
4850
|
};
|
|
4812
|
-
|
|
4813
|
-
let u1 =
|
|
4851
|
+
$1.styles = qe;
|
|
4852
|
+
let u1 = $1;
|
|
4814
4853
|
I1([
|
|
4815
4854
|
r({ type: String })
|
|
4816
4855
|
], u1.prototype, "id");
|
|
@@ -4818,7 +4857,7 @@ I1([
|
|
|
4818
4857
|
r({ type: String })
|
|
4819
4858
|
], u1.prototype, "href");
|
|
4820
4859
|
customElements.get("nys-skipnav") || customElements.define("nys-skipnav", u1);
|
|
4821
|
-
const
|
|
4860
|
+
const Oe = C`
|
|
4822
4861
|
:host {
|
|
4823
4862
|
/* Anything that can be overridden should be defined here */
|
|
4824
4863
|
|
|
@@ -4960,14 +4999,14 @@ const Pe = g`
|
|
|
4960
4999
|
cursor: not-allowed;
|
|
4961
5000
|
}
|
|
4962
5001
|
`;
|
|
4963
|
-
var
|
|
5002
|
+
var Pe = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, m = (l, e, t, o) => {
|
|
4964
5003
|
for (var s = o > 1 ? void 0 : o ? Re(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4965
5004
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4966
|
-
return o && s &&
|
|
5005
|
+
return o && s && Pe(e, t, s), s;
|
|
4967
5006
|
};
|
|
4968
5007
|
let Te = 0;
|
|
4969
5008
|
var Z;
|
|
4970
|
-
const
|
|
5009
|
+
const _ = (Z = class extends u {
|
|
4971
5010
|
// allows use of elementInternals' API
|
|
4972
5011
|
constructor() {
|
|
4973
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();
|
|
@@ -5127,61 +5166,61 @@ ${this.value}</textarea
|
|
|
5127
5166
|
</label>
|
|
5128
5167
|
`;
|
|
5129
5168
|
}
|
|
5130
|
-
}, 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);
|
|
5131
5170
|
m([
|
|
5132
5171
|
r({ type: String })
|
|
5133
|
-
],
|
|
5172
|
+
], _.prototype, "id", 2);
|
|
5134
5173
|
m([
|
|
5135
5174
|
r({ type: String, reflect: !0 })
|
|
5136
|
-
],
|
|
5175
|
+
], _.prototype, "name", 2);
|
|
5137
5176
|
m([
|
|
5138
5177
|
r({ type: String })
|
|
5139
|
-
],
|
|
5178
|
+
], _.prototype, "label", 2);
|
|
5140
5179
|
m([
|
|
5141
5180
|
r({ type: String })
|
|
5142
|
-
],
|
|
5181
|
+
], _.prototype, "description", 2);
|
|
5143
5182
|
m([
|
|
5144
5183
|
r({ type: String })
|
|
5145
|
-
],
|
|
5184
|
+
], _.prototype, "placeholder", 2);
|
|
5146
5185
|
m([
|
|
5147
5186
|
r({ type: String })
|
|
5148
|
-
],
|
|
5187
|
+
], _.prototype, "value", 2);
|
|
5149
5188
|
m([
|
|
5150
5189
|
r({ type: Boolean, reflect: !0 })
|
|
5151
|
-
],
|
|
5190
|
+
], _.prototype, "disabled", 2);
|
|
5152
5191
|
m([
|
|
5153
5192
|
r({ type: Boolean, reflect: !0 })
|
|
5154
|
-
],
|
|
5193
|
+
], _.prototype, "readonly", 2);
|
|
5155
5194
|
m([
|
|
5156
5195
|
r({ type: Boolean, reflect: !0 })
|
|
5157
|
-
],
|
|
5196
|
+
], _.prototype, "required", 2);
|
|
5158
5197
|
m([
|
|
5159
5198
|
r({ type: Boolean, reflect: !0 })
|
|
5160
|
-
],
|
|
5199
|
+
], _.prototype, "optional", 2);
|
|
5161
5200
|
m([
|
|
5162
5201
|
r({ type: String })
|
|
5163
|
-
],
|
|
5202
|
+
], _.prototype, "form", 2);
|
|
5164
5203
|
m([
|
|
5165
5204
|
r({ type: Number })
|
|
5166
|
-
],
|
|
5205
|
+
], _.prototype, "maxlength", 2);
|
|
5167
5206
|
m([
|
|
5168
5207
|
r({ reflect: !0 })
|
|
5169
|
-
],
|
|
5208
|
+
], _.prototype, "width", 2);
|
|
5170
5209
|
m([
|
|
5171
5210
|
r({ type: Number })
|
|
5172
|
-
],
|
|
5211
|
+
], _.prototype, "rows", 2);
|
|
5173
5212
|
m([
|
|
5174
5213
|
r({ reflect: !0 })
|
|
5175
|
-
],
|
|
5214
|
+
], _.prototype, "resize", 1);
|
|
5176
5215
|
m([
|
|
5177
5216
|
r({ type: Boolean, reflect: !0 })
|
|
5178
|
-
],
|
|
5217
|
+
], _.prototype, "showError", 2);
|
|
5179
5218
|
m([
|
|
5180
5219
|
r({ type: String })
|
|
5181
|
-
],
|
|
5182
|
-
let Fe =
|
|
5220
|
+
], _.prototype, "errorMessage", 2);
|
|
5221
|
+
let Fe = _;
|
|
5183
5222
|
customElements.get("nys-textarea") || customElements.define("nys-textarea", Fe);
|
|
5184
|
-
const Ne =
|
|
5223
|
+
const Ne = C`
|
|
5185
5224
|
:host {
|
|
5186
5225
|
/* Anything that can be overridden should be defined here */
|
|
5187
5226
|
|
|
@@ -5283,9 +5322,24 @@ const Ne = g`
|
|
|
5283
5322
|
flex-direction: column;
|
|
5284
5323
|
}
|
|
5285
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
|
+
|
|
5286
5341
|
.nys-textinput__input {
|
|
5287
5342
|
color: var(--_nys-textinput-text-color);
|
|
5288
|
-
font-size: var(--_nys-textinput-size-ui-md);
|
|
5289
5343
|
border-radius: var(--_nys-textinput-radius);
|
|
5290
5344
|
border: solid var(--_nys-textinput-color-border)
|
|
5291
5345
|
var(--_nys-textinput-width-border);
|
|
@@ -5295,7 +5349,9 @@ const Ne = g`
|
|
|
5295
5349
|
box-sizing: border-box;
|
|
5296
5350
|
-webkit-box-sizing: border-box;
|
|
5297
5351
|
-moz-box-sizing: border-box;
|
|
5298
|
-
background-color:
|
|
5352
|
+
background-color: transparent;
|
|
5353
|
+
position: relative;
|
|
5354
|
+
font: inherit;
|
|
5299
5355
|
}
|
|
5300
5356
|
.nys-textinput__input::placeholder {
|
|
5301
5357
|
color: var(--_nys-textinput-placeholder-color);
|
|
@@ -5394,7 +5450,7 @@ const Ne = g`
|
|
|
5394
5450
|
cursor: not-allowed;
|
|
5395
5451
|
}
|
|
5396
5452
|
`;
|
|
5397
|
-
var je = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor,
|
|
5453
|
+
var je = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, f = (l, e, t, o) => {
|
|
5398
5454
|
for (var s = o > 1 ? void 0 : o ? Ge(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
5399
5455
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
5400
5456
|
return o && s && je(e, t, s), s;
|
|
@@ -5404,7 +5460,9 @@ var I;
|
|
|
5404
5460
|
const p = (I = class extends u {
|
|
5405
5461
|
// allows use of elementInternals' API
|
|
5406
5462
|
constructor() {
|
|
5407
|
-
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();
|
|
5408
5466
|
}
|
|
5409
5467
|
get type() {
|
|
5410
5468
|
return this._type;
|
|
@@ -5416,7 +5474,20 @@ const p = (I = class extends u {
|
|
|
5416
5474
|
}
|
|
5417
5475
|
// Ensure the "width" property is valid after updates
|
|
5418
5476
|
async updated(e) {
|
|
5419
|
-
|
|
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
|
+
}
|
|
5420
5491
|
}
|
|
5421
5492
|
// Generate a unique ID if one is not provided
|
|
5422
5493
|
connectedCallback() {
|
|
@@ -5480,11 +5551,38 @@ const p = (I = class extends u {
|
|
|
5480
5551
|
_togglePasswordVisibility() {
|
|
5481
5552
|
this.showPassword = !this.showPassword;
|
|
5482
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
|
+
}
|
|
5483
5579
|
/******************** Event Handlers ********************/
|
|
5484
5580
|
// Handle input event to check pattern validity
|
|
5485
5581
|
_handleInput(e) {
|
|
5486
5582
|
const t = e.target;
|
|
5487
|
-
|
|
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(
|
|
5488
5586
|
new CustomEvent("nys-input", {
|
|
5489
5587
|
detail: { value: this.value },
|
|
5490
5588
|
bubbles: !0,
|
|
@@ -5534,6 +5632,7 @@ const p = (I = class extends u {
|
|
|
5534
5632
|
@slotchange=${this._validateButtonSlot("startButton")}
|
|
5535
5633
|
></slot>
|
|
5536
5634
|
<div class="nys-textinput__container">
|
|
5635
|
+
<span class="nys-textinput__mask-overlay"></span>
|
|
5537
5636
|
<input
|
|
5538
5637
|
class="nys-textinput__input"
|
|
5539
5638
|
type=${this.type === "password" ? this.showPassword ? "text" : "password" : this.type}
|
|
@@ -5565,6 +5664,7 @@ const p = (I = class extends u {
|
|
|
5565
5664
|
class="eye-icon"
|
|
5566
5665
|
id="password-toggle"
|
|
5567
5666
|
suffixIcon="slotted"
|
|
5667
|
+
ariaLabel="password toggle"
|
|
5568
5668
|
.onClick=${() => !this.disabled && this._togglePasswordVisibility()}
|
|
5569
5669
|
variant="ghost"
|
|
5570
5670
|
size="sm"
|
|
@@ -5597,72 +5697,72 @@ const p = (I = class extends u {
|
|
|
5597
5697
|
"text",
|
|
5598
5698
|
"url"
|
|
5599
5699
|
], I.VALID_WIDTHS = ["sm", "md", "lg", "full"], I.styles = Ne, I.formAssociated = !0, I);
|
|
5600
|
-
|
|
5700
|
+
f([
|
|
5601
5701
|
r({ type: String })
|
|
5602
5702
|
], p.prototype, "id", 2);
|
|
5603
|
-
|
|
5703
|
+
f([
|
|
5604
5704
|
r({ type: String, reflect: !0 })
|
|
5605
5705
|
], p.prototype, "name", 2);
|
|
5606
|
-
|
|
5706
|
+
f([
|
|
5607
5707
|
r({ reflect: !0 })
|
|
5608
5708
|
], p.prototype, "type", 1);
|
|
5609
|
-
|
|
5709
|
+
f([
|
|
5610
5710
|
r({ type: String })
|
|
5611
5711
|
], p.prototype, "label", 2);
|
|
5612
|
-
|
|
5712
|
+
f([
|
|
5613
5713
|
r({ type: String })
|
|
5614
5714
|
], p.prototype, "description", 2);
|
|
5615
|
-
|
|
5715
|
+
f([
|
|
5616
5716
|
r({ type: String })
|
|
5617
5717
|
], p.prototype, "placeholder", 2);
|
|
5618
|
-
|
|
5718
|
+
f([
|
|
5619
5719
|
r({ type: String })
|
|
5620
5720
|
], p.prototype, "value", 2);
|
|
5621
|
-
|
|
5721
|
+
f([
|
|
5622
5722
|
r({ type: Boolean, reflect: !0 })
|
|
5623
5723
|
], p.prototype, "disabled", 2);
|
|
5624
|
-
|
|
5724
|
+
f([
|
|
5625
5725
|
r({ type: Boolean, reflect: !0 })
|
|
5626
5726
|
], p.prototype, "readonly", 2);
|
|
5627
|
-
|
|
5727
|
+
f([
|
|
5628
5728
|
r({ type: Boolean, reflect: !0 })
|
|
5629
5729
|
], p.prototype, "required", 2);
|
|
5630
|
-
|
|
5730
|
+
f([
|
|
5631
5731
|
r({ type: Boolean, reflect: !0 })
|
|
5632
5732
|
], p.prototype, "optional", 2);
|
|
5633
|
-
|
|
5733
|
+
f([
|
|
5634
5734
|
r({ type: String })
|
|
5635
5735
|
], p.prototype, "form", 2);
|
|
5636
|
-
|
|
5736
|
+
f([
|
|
5637
5737
|
r({ type: String })
|
|
5638
5738
|
], p.prototype, "pattern", 2);
|
|
5639
|
-
|
|
5739
|
+
f([
|
|
5640
5740
|
r({ type: Number })
|
|
5641
5741
|
], p.prototype, "maxlength", 2);
|
|
5642
|
-
|
|
5742
|
+
f([
|
|
5643
5743
|
r({ reflect: !0 })
|
|
5644
5744
|
], p.prototype, "width", 2);
|
|
5645
|
-
|
|
5745
|
+
f([
|
|
5646
5746
|
r({ type: Number })
|
|
5647
5747
|
], p.prototype, "step", 2);
|
|
5648
|
-
|
|
5748
|
+
f([
|
|
5649
5749
|
r({ type: Number })
|
|
5650
5750
|
], p.prototype, "min", 2);
|
|
5651
|
-
|
|
5751
|
+
f([
|
|
5652
5752
|
r({ type: Number })
|
|
5653
5753
|
], p.prototype, "max", 2);
|
|
5654
|
-
|
|
5754
|
+
f([
|
|
5655
5755
|
r({ type: Boolean, reflect: !0 })
|
|
5656
5756
|
], p.prototype, "showError", 2);
|
|
5657
|
-
|
|
5757
|
+
f([
|
|
5658
5758
|
r({ type: String })
|
|
5659
5759
|
], p.prototype, "errorMessage", 2);
|
|
5660
|
-
|
|
5661
|
-
|
|
5760
|
+
f([
|
|
5761
|
+
B()
|
|
5662
5762
|
], p.prototype, "showPassword", 2);
|
|
5663
5763
|
let We = p;
|
|
5664
5764
|
customElements.get("nys-textinput") || customElements.define("nys-textinput", We);
|
|
5665
|
-
const Ke =
|
|
5765
|
+
const Ke = C`
|
|
5666
5766
|
:host {
|
|
5667
5767
|
/* Global Toggle Styles */
|
|
5668
5768
|
--_nys-toggle-width: var(--nys-font-size-8xl, 44px);
|
|
@@ -5946,7 +6046,7 @@ var Xe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, N = (l, e,
|
|
|
5946
6046
|
};
|
|
5947
6047
|
let Je = 0;
|
|
5948
6048
|
var K;
|
|
5949
|
-
const
|
|
6049
|
+
const O = (K = class extends u {
|
|
5950
6050
|
// allows use of elementInternals' API
|
|
5951
6051
|
constructor() {
|
|
5952
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();
|
|
@@ -6035,37 +6135,37 @@ const P = (K = class extends u {
|
|
|
6035
6135
|
}, K.VALID_SIZES = ["sm", "md"], K.styles = Ke, K.formAssociated = !0, K);
|
|
6036
6136
|
N([
|
|
6037
6137
|
r({ type: String })
|
|
6038
|
-
],
|
|
6138
|
+
], O.prototype, "id", 2);
|
|
6039
6139
|
N([
|
|
6040
6140
|
r({ type: String, reflect: !0 })
|
|
6041
|
-
],
|
|
6141
|
+
], O.prototype, "name", 2);
|
|
6042
6142
|
N([
|
|
6043
6143
|
r({ type: String })
|
|
6044
|
-
],
|
|
6144
|
+
], O.prototype, "value", 2);
|
|
6045
6145
|
N([
|
|
6046
6146
|
r({ type: Boolean, reflect: !0 })
|
|
6047
|
-
],
|
|
6147
|
+
], O.prototype, "checked", 2);
|
|
6048
6148
|
N([
|
|
6049
6149
|
r({ type: Boolean, reflect: !0 })
|
|
6050
|
-
],
|
|
6150
|
+
], O.prototype, "disabled", 2);
|
|
6051
6151
|
N([
|
|
6052
6152
|
r({ type: Boolean })
|
|
6053
|
-
],
|
|
6153
|
+
], O.prototype, "noIcon", 2);
|
|
6054
6154
|
N([
|
|
6055
6155
|
r({ type: String })
|
|
6056
|
-
],
|
|
6156
|
+
], O.prototype, "label", 2);
|
|
6057
6157
|
N([
|
|
6058
6158
|
r({ type: String })
|
|
6059
|
-
],
|
|
6159
|
+
], O.prototype, "description", 2);
|
|
6060
6160
|
N([
|
|
6061
6161
|
r({ reflect: !0 })
|
|
6062
|
-
],
|
|
6162
|
+
], O.prototype, "size", 1);
|
|
6063
6163
|
N([
|
|
6064
6164
|
r({ type: String })
|
|
6065
|
-
],
|
|
6066
|
-
let
|
|
6067
|
-
customElements.get("nys-toggle") || customElements.define("nys-toggle",
|
|
6068
|
-
const
|
|
6165
|
+
], O.prototype, "form", 2);
|
|
6166
|
+
let e2 = O;
|
|
6167
|
+
customElements.get("nys-toggle") || customElements.define("nys-toggle", e2);
|
|
6168
|
+
const t2 = C`
|
|
6069
6169
|
:host {
|
|
6070
6170
|
/* Global Tooltip Styles */
|
|
6071
6171
|
--_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
|
|
@@ -6222,12 +6322,12 @@ const tt = g`
|
|
|
6222
6322
|
}
|
|
6223
6323
|
}
|
|
6224
6324
|
`;
|
|
6225
|
-
var
|
|
6226
|
-
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--)
|
|
6227
6327
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
6228
|
-
return o && s &&
|
|
6328
|
+
return o && s && s2(e, t, s), s;
|
|
6229
6329
|
};
|
|
6230
|
-
let
|
|
6330
|
+
let r2 = 0;
|
|
6231
6331
|
const V1 = class V1 extends u {
|
|
6232
6332
|
/**************** Lifecycle Methods ****************/
|
|
6233
6333
|
constructor() {
|
|
@@ -6277,7 +6377,7 @@ const V1 = class V1 extends u {
|
|
|
6277
6377
|
this._position = e, this.requestUpdate("position", t), this._internallyUpdatingPosition || (this._userHasSetPosition = e !== null, this._originalUserPosition = e);
|
|
6278
6378
|
}
|
|
6279
6379
|
connectedCallback() {
|
|
6280
|
-
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);
|
|
6281
6381
|
}
|
|
6282
6382
|
disconnectedCallback() {
|
|
6283
6383
|
super.disconnectedCallback(), window.removeEventListener("keydown", this._handleEscapeKey);
|
|
@@ -6330,8 +6430,8 @@ const V1 = class V1 extends u {
|
|
|
6330
6430
|
}
|
|
6331
6431
|
// Checks if user's set position fit with current viewport (Does not account for overflow texts at this moment)
|
|
6332
6432
|
_doesPositionFit(e) {
|
|
6333
|
-
var
|
|
6334
|
-
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");
|
|
6335
6435
|
if (!t || !o || e == null) return;
|
|
6336
6436
|
const s = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = 8, c = {
|
|
6337
6437
|
top: s.top - i,
|
|
@@ -6348,10 +6448,10 @@ const V1 = class V1 extends u {
|
|
|
6348
6448
|
}
|
|
6349
6449
|
// Calculates the best placement based on available space (flips placement if it doesn't fit)
|
|
6350
6450
|
async autoPositionTooltip() {
|
|
6351
|
-
var
|
|
6352
|
-
const e = (
|
|
6451
|
+
var S, $;
|
|
6452
|
+
const e = (S = this.shadowRoot) == null ? void 0 : S.querySelector(
|
|
6353
6453
|
".nys-tooltip__wrapper"
|
|
6354
|
-
), t = (
|
|
6454
|
+
), t = ($ = this.shadowRoot) == null ? void 0 : $.querySelector(
|
|
6355
6455
|
".nys-tooltip__content"
|
|
6356
6456
|
);
|
|
6357
6457
|
if (!e || !t) return;
|
|
@@ -6368,17 +6468,17 @@ const V1 = class V1 extends u {
|
|
|
6368
6468
|
"left"
|
|
6369
6469
|
];
|
|
6370
6470
|
if (this._userHasSetPosition && this._originalUserPosition) {
|
|
6371
|
-
const
|
|
6372
|
-
|
|
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"]);
|
|
6373
6473
|
}
|
|
6374
|
-
for (const
|
|
6375
|
-
if (this._doesPositionFit(
|
|
6376
|
-
this._setInternalPosition(
|
|
6474
|
+
for (const b of i)
|
|
6475
|
+
if (this._doesPositionFit(b)) {
|
|
6476
|
+
this._setInternalPosition(b), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6377
6477
|
return;
|
|
6378
6478
|
}
|
|
6379
6479
|
let c = "top", d = n.top;
|
|
6380
|
-
for (const
|
|
6381
|
-
n[
|
|
6480
|
+
for (const b of i)
|
|
6481
|
+
n[b] > d && (d = n[b], c = b);
|
|
6382
6482
|
this._setInternalPosition(c), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6383
6483
|
}
|
|
6384
6484
|
// Sets flag to distinguish to position's setter that we are updating "position" prop internally
|
|
@@ -6387,13 +6487,13 @@ const V1 = class V1 extends u {
|
|
|
6387
6487
|
}
|
|
6388
6488
|
// Determines if text of tooltip over-extends outside of viewport edge and adjust tooltip for horizontal overflow
|
|
6389
6489
|
_shiftTooltipIntoViewport(e) {
|
|
6390
|
-
var
|
|
6391
|
-
const o = ((
|
|
6490
|
+
var b;
|
|
6491
|
+
const o = ((b = this.shadowRoot) == null ? void 0 : b.querySelector(
|
|
6392
6492
|
".nys-tooltip__wrapper"
|
|
6393
6493
|
)).getBoundingClientRect(), s = e.getBoundingClientRect(), n = o.left + o.width / 2, i = s.left < 0, c = s.right > window.innerWidth;
|
|
6394
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");
|
|
6395
|
-
const d = e.getBoundingClientRect(),
|
|
6396
|
-
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", `${$}%`);
|
|
6397
6497
|
}
|
|
6398
6498
|
// Reposition tooltip back to original set position (e.g. top, left, bottom, right) to avoid positioning issue base on last position
|
|
6399
6499
|
_resetTooltipPositioningStyles(e) {
|
|
@@ -6428,7 +6528,7 @@ const V1 = class V1 extends u {
|
|
|
6428
6528
|
`;
|
|
6429
6529
|
}
|
|
6430
6530
|
};
|
|
6431
|
-
V1.styles =
|
|
6531
|
+
V1.styles = t2;
|
|
6432
6532
|
let X = V1;
|
|
6433
6533
|
y1([
|
|
6434
6534
|
r({ type: String })
|
|
@@ -6443,13 +6543,13 @@ y1([
|
|
|
6443
6543
|
r({ type: Boolean, reflect: !0 })
|
|
6444
6544
|
], X.prototype, "focusable", 2);
|
|
6445
6545
|
y1([
|
|
6446
|
-
|
|
6546
|
+
B()
|
|
6447
6547
|
], X.prototype, "_active", 2);
|
|
6448
6548
|
y1([
|
|
6449
6549
|
r({ type: String, reflect: !0 })
|
|
6450
6550
|
], X.prototype, "position", 1);
|
|
6451
6551
|
customElements.get("nys-tooltip") || customElements.define("nys-tooltip", X);
|
|
6452
|
-
const
|
|
6552
|
+
const n2 = C`
|
|
6453
6553
|
:host {
|
|
6454
6554
|
/* Global Unav Header Styles */
|
|
6455
6555
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
@@ -6812,7 +6912,7 @@ const nt = g`
|
|
|
6812
6912
|
display: none;
|
|
6813
6913
|
}
|
|
6814
6914
|
}
|
|
6815
|
-
`,
|
|
6915
|
+
`, i2 = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
6816
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"/>
|
|
6817
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"/>
|
|
6818
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"/>
|
|
@@ -6829,10 +6929,10 @@ const nt = g`
|
|
|
6829
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"/>
|
|
6830
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"/>
|
|
6831
6931
|
</svg>`;
|
|
6832
|
-
var
|
|
6932
|
+
var a2 = Object.defineProperty, l1 = (l, e, t, o) => {
|
|
6833
6933
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
6834
6934
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
6835
|
-
return s &&
|
|
6935
|
+
return s && a2(e, t, s), s;
|
|
6836
6936
|
};
|
|
6837
6937
|
const D1 = class D1 extends u {
|
|
6838
6938
|
constructor() {
|
|
@@ -6854,7 +6954,7 @@ const D1 = class D1 extends u {
|
|
|
6854
6954
|
];
|
|
6855
6955
|
}
|
|
6856
6956
|
_getNysLogo() {
|
|
6857
|
-
return new DOMParser().parseFromString(
|
|
6957
|
+
return new DOMParser().parseFromString(i2, "image/svg+xml").documentElement;
|
|
6858
6958
|
}
|
|
6859
6959
|
_toggleTrustbar() {
|
|
6860
6960
|
this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
|
|
@@ -7115,31 +7215,31 @@ const D1 = class D1 extends u {
|
|
|
7115
7215
|
`;
|
|
7116
7216
|
}
|
|
7117
7217
|
};
|
|
7118
|
-
D1.styles =
|
|
7119
|
-
let
|
|
7218
|
+
D1.styles = n2;
|
|
7219
|
+
let P = D1;
|
|
7120
7220
|
l1([
|
|
7121
7221
|
r({ type: Boolean })
|
|
7122
|
-
],
|
|
7222
|
+
], P.prototype, "trustbarVisible");
|
|
7123
7223
|
l1([
|
|
7124
7224
|
r({ type: Boolean })
|
|
7125
|
-
],
|
|
7225
|
+
], P.prototype, "searchDropdownVisible");
|
|
7126
7226
|
l1([
|
|
7127
7227
|
r({ type: Boolean })
|
|
7128
|
-
],
|
|
7228
|
+
], P.prototype, "languageVisible");
|
|
7129
7229
|
l1([
|
|
7130
7230
|
r({ type: Boolean })
|
|
7131
|
-
],
|
|
7231
|
+
], P.prototype, "isSearchFocused");
|
|
7132
7232
|
l1([
|
|
7133
7233
|
r({ type: Boolean })
|
|
7134
|
-
],
|
|
7234
|
+
], P.prototype, "hideTranslate");
|
|
7135
7235
|
l1([
|
|
7136
7236
|
r({ type: Boolean })
|
|
7137
|
-
],
|
|
7237
|
+
], P.prototype, "hideSearch");
|
|
7138
7238
|
l1([
|
|
7139
7239
|
r({ type: String, reflect: !0 })
|
|
7140
|
-
],
|
|
7141
|
-
customElements.get("nys-unavheader") || customElements.define("nys-unavheader",
|
|
7142
|
-
const
|
|
7240
|
+
], P.prototype, "languages");
|
|
7241
|
+
customElements.get("nys-unavheader") || customElements.define("nys-unavheader", P);
|
|
7242
|
+
const l2 = C`
|
|
7143
7243
|
:host {
|
|
7144
7244
|
/* Global Header Styles */
|
|
7145
7245
|
--_nys-globalheader-text-color: var(
|
|
@@ -7420,10 +7520,10 @@ const lt = g`
|
|
|
7420
7520
|
}
|
|
7421
7521
|
}
|
|
7422
7522
|
`;
|
|
7423
|
-
var
|
|
7523
|
+
var c2 = Object.defineProperty, C1 = (l, e, t, o) => {
|
|
7424
7524
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
7425
7525
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
7426
|
-
return s &&
|
|
7526
|
+
return s && c2(e, t, s), s;
|
|
7427
7527
|
};
|
|
7428
7528
|
const M1 = class M1 extends u {
|
|
7429
7529
|
constructor() {
|
|
@@ -7450,10 +7550,10 @@ const M1 = class M1 extends u {
|
|
|
7450
7550
|
);
|
|
7451
7551
|
o && s && (o.innerHTML = "", s.innerHTML = "", t.forEach((d) => {
|
|
7452
7552
|
if (d.nodeType === Node.ELEMENT_NODE) {
|
|
7453
|
-
const
|
|
7454
|
-
["script", "iframe", "object", "embed, img"].forEach((
|
|
7455
|
-
|
|
7456
|
-
}), 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();
|
|
7457
7557
|
}
|
|
7458
7558
|
}));
|
|
7459
7559
|
}
|
|
@@ -7524,25 +7624,25 @@ const M1 = class M1 extends u {
|
|
|
7524
7624
|
`;
|
|
7525
7625
|
}
|
|
7526
7626
|
};
|
|
7527
|
-
M1.styles =
|
|
7627
|
+
M1.styles = l2;
|
|
7528
7628
|
let s1 = M1;
|
|
7529
|
-
|
|
7629
|
+
C1([
|
|
7530
7630
|
r({ type: String })
|
|
7531
7631
|
], s1.prototype, "appName");
|
|
7532
|
-
|
|
7632
|
+
C1([
|
|
7533
7633
|
r({ type: String })
|
|
7534
7634
|
], s1.prototype, "agencyName");
|
|
7535
|
-
|
|
7635
|
+
C1([
|
|
7536
7636
|
r({ type: String })
|
|
7537
7637
|
], s1.prototype, "homepageLink");
|
|
7538
|
-
|
|
7539
|
-
|
|
7638
|
+
C1([
|
|
7639
|
+
B()
|
|
7540
7640
|
], s1.prototype, "slotHasContent");
|
|
7541
|
-
|
|
7542
|
-
|
|
7641
|
+
C1([
|
|
7642
|
+
B()
|
|
7543
7643
|
], s1.prototype, "isMobileMenuOpen");
|
|
7544
7644
|
customElements.get("nys-globalheader") || customElements.define("nys-globalheader", s1);
|
|
7545
|
-
const
|
|
7645
|
+
const d2 = C`
|
|
7546
7646
|
:host {
|
|
7547
7647
|
/* Global Footer Styles */
|
|
7548
7648
|
--_nys-globalfooter-text-color: var(
|
|
@@ -7698,10 +7798,10 @@ const dt = g`
|
|
|
7698
7798
|
}
|
|
7699
7799
|
}
|
|
7700
7800
|
`;
|
|
7701
|
-
var
|
|
7801
|
+
var h2 = Object.defineProperty, w1 = (l, e, t, o) => {
|
|
7702
7802
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
7703
7803
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
7704
|
-
return s &&
|
|
7804
|
+
return s && h2(e, t, s), s;
|
|
7705
7805
|
};
|
|
7706
7806
|
const z1 = class z1 extends u {
|
|
7707
7807
|
constructor() {
|
|
@@ -7729,8 +7829,8 @@ const z1 = class z1 extends u {
|
|
|
7729
7829
|
o && (o.classList.toggle("columns", s), o.classList.toggle("small", !s), o.innerHTML = "", t.forEach((c) => {
|
|
7730
7830
|
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
7731
7831
|
const d = c.cloneNode(!0);
|
|
7732
|
-
["script", "iframe", "object", "embed", "img"].forEach((
|
|
7733
|
-
d.querySelectorAll(
|
|
7832
|
+
["script", "iframe", "object", "embed", "img"].forEach(($) => {
|
|
7833
|
+
d.querySelectorAll($).forEach((b) => b.remove());
|
|
7734
7834
|
}), o.appendChild(d), c.remove();
|
|
7735
7835
|
}
|
|
7736
7836
|
}));
|
|
@@ -7754,7 +7854,7 @@ const z1 = class z1 extends u {
|
|
|
7754
7854
|
`;
|
|
7755
7855
|
}
|
|
7756
7856
|
};
|
|
7757
|
-
z1.styles =
|
|
7857
|
+
z1.styles = d2;
|
|
7758
7858
|
let d1 = z1;
|
|
7759
7859
|
w1([
|
|
7760
7860
|
r({ type: String })
|
|
@@ -7763,10 +7863,10 @@ w1([
|
|
|
7763
7863
|
r({ type: String })
|
|
7764
7864
|
], d1.prototype, "homepageLink");
|
|
7765
7865
|
w1([
|
|
7766
|
-
|
|
7866
|
+
B()
|
|
7767
7867
|
], d1.prototype, "slotHasContent");
|
|
7768
7868
|
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", d1);
|
|
7769
|
-
const
|
|
7869
|
+
const y2 = C`
|
|
7770
7870
|
:host {
|
|
7771
7871
|
/* Global Footer Styles */
|
|
7772
7872
|
--_nys-unavfooter-link-color: var(
|
|
@@ -7922,7 +8022,7 @@ const yt = g`
|
|
|
7922
8022
|
--_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
7923
8023
|
}
|
|
7924
8024
|
}
|
|
7925
|
-
`,
|
|
8025
|
+
`, u2 = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
7926
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"/>
|
|
7927
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"/>
|
|
7928
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"/>
|
|
@@ -7941,7 +8041,7 @@ const yt = g`
|
|
|
7941
8041
|
</svg>`, E1 = class E1 extends u {
|
|
7942
8042
|
/**************** Functions ****************/
|
|
7943
8043
|
_getNysLogo() {
|
|
7944
|
-
return new DOMParser().parseFromString(
|
|
8044
|
+
return new DOMParser().parseFromString(u2, "image/svg+xml").documentElement;
|
|
7945
8045
|
}
|
|
7946
8046
|
render() {
|
|
7947
8047
|
return a`
|
|
@@ -7975,7 +8075,7 @@ const yt = g`
|
|
|
7975
8075
|
`;
|
|
7976
8076
|
}
|
|
7977
8077
|
};
|
|
7978
|
-
E1.styles =
|
|
8078
|
+
E1.styles = y2;
|
|
7979
8079
|
let m1 = E1;
|
|
7980
8080
|
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", m1);
|
|
7981
8081
|
export {
|
|
@@ -7993,14 +8093,14 @@ export {
|
|
|
7993
8093
|
n1 as NysLabel,
|
|
7994
8094
|
a1 as NysOption,
|
|
7995
8095
|
ze as NysRadiobutton,
|
|
7996
|
-
|
|
7997
|
-
|
|
8096
|
+
$e as NysRadiogroup,
|
|
8097
|
+
Ae as NysSelect,
|
|
7998
8098
|
u1 as NysSkipnav,
|
|
7999
8099
|
Fe as NysTextarea,
|
|
8000
8100
|
We as NysTextinput,
|
|
8001
|
-
|
|
8101
|
+
e2 as NysToggle,
|
|
8002
8102
|
X as NysTooltip,
|
|
8003
8103
|
m1 as NysUnavFooter,
|
|
8004
|
-
|
|
8104
|
+
P as NysUnavHeader
|
|
8005
8105
|
};
|
|
8006
8106
|
//# sourceMappingURL=nysds.es.js.map
|