@nysds/nys-unavheader 1.1.0 → 1.1.1
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/nys-unavheader.js +710 -539
- package/dist/nys-unavheader.js.map +1 -1
- package/package.json +5 -5
package/dist/nys-unavheader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { css as M, LitElement as Z, html as d } from "lit";
|
|
|
5
5
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
6
6
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
7
7
|
*
|
|
8
|
-
* Universal Navigation Header Component v1.1.
|
|
8
|
+
* Universal Navigation Header Component v1.1.1
|
|
9
9
|
* Part of the New York State Design System
|
|
10
10
|
* A design system for New York State's digital products.
|
|
11
11
|
* Repository: https://github.com/its-hcd/nysds
|
|
@@ -16,10 +16,10 @@ import { css as M, LitElement as Z, html as d } from "lit";
|
|
|
16
16
|
* Copyright 2019 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
19
|
+
const R1 = globalThis, m5 = R1.ShadowRoot && (R1.ShadyCSS === void 0 || R1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, G2 = Symbol(), j5 = /* @__PURE__ */ new WeakMap();
|
|
20
20
|
let v7 = class {
|
|
21
21
|
constructor(t, e, s) {
|
|
22
|
-
if (this._$cssResult$ = !0, s !==
|
|
22
|
+
if (this._$cssResult$ = !0, s !== G2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
23
23
|
this.cssText = t, this.t = e;
|
|
24
24
|
}
|
|
25
25
|
get styleSheet() {
|
|
@@ -27,7 +27,7 @@ let v7 = class {
|
|
|
27
27
|
const e = this.t;
|
|
28
28
|
if (m5 && t === void 0) {
|
|
29
29
|
const s = e !== void 0 && e.length === 1;
|
|
30
|
-
s && (t =
|
|
30
|
+
s && (t = j5.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && j5.set(e, t));
|
|
31
31
|
}
|
|
32
32
|
return t;
|
|
33
33
|
}
|
|
@@ -35,26 +35,26 @@ let v7 = class {
|
|
|
35
35
|
return this.cssText;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
const
|
|
38
|
+
const f7 = (o) => new v7(typeof o == "string" ? o : o + "", void 0, G2), g7 = (o, t) => {
|
|
39
39
|
if (m5) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
40
40
|
else for (const e of t) {
|
|
41
|
-
const s = document.createElement("style"), r =
|
|
41
|
+
const s = document.createElement("style"), r = R1.litNonce;
|
|
42
42
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
43
43
|
}
|
|
44
44
|
}, q5 = m5 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
45
45
|
let e = "";
|
|
46
46
|
for (const s of t.cssRules) e += s.cssText;
|
|
47
|
-
return
|
|
47
|
+
return f7(e);
|
|
48
48
|
})(o) : o;
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*/
|
|
54
|
-
const { is: y7, defineProperty: w7, getOwnPropertyDescriptor: _7, getOwnPropertyNames: m7, getOwnPropertySymbols: b7, getPrototypeOf: L7 } = Object, A = globalThis, F5 = A.trustedTypes,
|
|
54
|
+
const { is: y7, defineProperty: w7, getOwnPropertyDescriptor: _7, getOwnPropertyNames: m7, getOwnPropertySymbols: b7, getPrototypeOf: L7 } = Object, A = globalThis, F5 = A.trustedTypes, x7 = F5 ? F5.emptyScript : "", f5 = A.reactiveElementPolyfillSupport, $1 = (o, t) => o, K1 = { toAttribute(o, t) {
|
|
55
55
|
switch (t) {
|
|
56
56
|
case Boolean:
|
|
57
|
-
o = o ?
|
|
57
|
+
o = o ? x7 : null;
|
|
58
58
|
break;
|
|
59
59
|
case Object:
|
|
60
60
|
case Array:
|
|
@@ -79,9 +79,9 @@ const { is: y7, defineProperty: w7, getOwnPropertyDescriptor: _7, getOwnProperty
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
return e;
|
|
82
|
-
} }, b5 = (o, t) => !y7(o, t), W5 = { attribute: !0, type: String, converter:
|
|
82
|
+
} }, b5 = (o, t) => !y7(o, t), W5 = { attribute: !0, type: String, converter: K1, reflect: !1, hasChanged: b5 };
|
|
83
83
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), A.litPropertyMetadata ?? (A.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
84
|
-
let
|
|
84
|
+
let c1 = class extends HTMLElement {
|
|
85
85
|
static addInitializer(t) {
|
|
86
86
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
87
87
|
}
|
|
@@ -111,13 +111,13 @@ let h1 = class extends HTMLElement {
|
|
|
111
111
|
return this.elementProperties.get(t) ?? W5;
|
|
112
112
|
}
|
|
113
113
|
static _$Ei() {
|
|
114
|
-
if (this.hasOwnProperty(
|
|
114
|
+
if (this.hasOwnProperty($1("elementProperties"))) return;
|
|
115
115
|
const t = L7(this);
|
|
116
116
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
117
117
|
}
|
|
118
118
|
static finalize() {
|
|
119
|
-
if (this.hasOwnProperty(
|
|
120
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
119
|
+
if (this.hasOwnProperty($1("finalized"))) return;
|
|
120
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty($1("properties"))) {
|
|
121
121
|
const e = this.properties, s = [...m7(e), ...b7(e)];
|
|
122
122
|
for (const r of s) this.createProperty(r, e[r]);
|
|
123
123
|
}
|
|
@@ -167,7 +167,7 @@ let h1 = class extends HTMLElement {
|
|
|
167
167
|
}
|
|
168
168
|
createRenderRoot() {
|
|
169
169
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
170
|
-
return
|
|
170
|
+
return g7(t, this.constructor.elementStyles), t;
|
|
171
171
|
}
|
|
172
172
|
connectedCallback() {
|
|
173
173
|
var t;
|
|
@@ -192,7 +192,7 @@ let h1 = class extends HTMLElement {
|
|
|
192
192
|
var C;
|
|
193
193
|
const s = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, s);
|
|
194
194
|
if (r !== void 0 && s.reflect === !0) {
|
|
195
|
-
const i = (((C = s.converter) == null ? void 0 : C.toAttribute) !== void 0 ? s.converter :
|
|
195
|
+
const i = (((C = s.converter) == null ? void 0 : C.toAttribute) !== void 0 ? s.converter : K1).toAttribute(e, s.type);
|
|
196
196
|
this._$Em = t, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -200,7 +200,7 @@ let h1 = class extends HTMLElement {
|
|
|
200
200
|
var C;
|
|
201
201
|
const s = this.constructor, r = s._$Eh.get(t);
|
|
202
202
|
if (r !== void 0 && this._$Em !== r) {
|
|
203
|
-
const i = s.getPropertyOptions(r), n = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((C = i.converter) == null ? void 0 : C.fromAttribute) !== void 0 ? i.converter :
|
|
203
|
+
const i = s.getPropertyOptions(r), n = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((C = i.converter) == null ? void 0 : C.fromAttribute) !== void 0 ? i.converter : K1;
|
|
204
204
|
this._$Em = r, this[r] = n.fromAttribute(e, i.type), this._$Em = null;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
@@ -279,13 +279,13 @@ let h1 = class extends HTMLElement {
|
|
|
279
279
|
firstUpdated(t) {
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
|
-
|
|
282
|
+
c1.elementStyles = [], c1.shadowRootOptions = { mode: "open" }, c1[$1("elementProperties")] = /* @__PURE__ */ new Map(), c1[$1("finalized")] = /* @__PURE__ */ new Map(), f5 == null || f5({ ReactiveElement: c1 }), (A.reactiveElementVersions ?? (A.reactiveElementVersions = [])).push("2.0.4");
|
|
283
283
|
/**
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright 2017 Google LLC
|
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
287
|
*/
|
|
288
|
-
const
|
|
288
|
+
const $7 = { attribute: !0, type: String, converter: K1, reflect: !1, hasChanged: b5 }, M7 = (o = $7, t, e) => {
|
|
289
289
|
const { kind: s, metadata: r } = e;
|
|
290
290
|
let C = globalThis.litPropertyMetadata.get(r);
|
|
291
291
|
if (C === void 0 && globalThis.litPropertyMetadata.set(r, C = /* @__PURE__ */ new Map()), C.set(e.name, o), s === "accessor") {
|
|
@@ -306,7 +306,7 @@ const x7 = { attribute: !0, type: String, converter: Y1, reflect: !1, hasChanged
|
|
|
306
306
|
}
|
|
307
307
|
throw Error("Unsupported decorator location: " + s);
|
|
308
308
|
};
|
|
309
|
-
function
|
|
309
|
+
function R(o) {
|
|
310
310
|
return (t, e) => typeof e == "object" ? M7(o, t, e) : ((s, r, C) => {
|
|
311
311
|
const i = r.hasOwnProperty(C);
|
|
312
312
|
return r.constructor.createProperty(C, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, C) : void 0;
|
|
@@ -314,7 +314,22 @@ function T(o) {
|
|
|
314
314
|
}
|
|
315
315
|
const Z7 = M`
|
|
316
316
|
:host {
|
|
317
|
+
/* Global Unav Header Styles */
|
|
317
318
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
319
|
+
--_nys-unavheader-bg-color: var(
|
|
320
|
+
--nys-color-surface,
|
|
321
|
+
var(--nys-color-white, #ffffff)
|
|
322
|
+
);
|
|
323
|
+
--_nys-unavheader-text-color: var(
|
|
324
|
+
--nys-color-text,
|
|
325
|
+
var(--nys-color-neutral-900, #1b1b1b)
|
|
326
|
+
);
|
|
327
|
+
|
|
328
|
+
/* Trustbar, Search Bar, and Language */
|
|
329
|
+
--_nys-unavheader-surface-raised-color: var(
|
|
330
|
+
--nys-color-surface-raised,
|
|
331
|
+
var(--nys-color-neutral-10, #f6f6f6)
|
|
332
|
+
);
|
|
318
333
|
|
|
319
334
|
/* Typography */
|
|
320
335
|
font-size: var(--nys-font-size-ui-md, 16px);
|
|
@@ -334,8 +349,8 @@ const Z7 = M`
|
|
|
334
349
|
}
|
|
335
350
|
|
|
336
351
|
.nys-unavheader {
|
|
337
|
-
background-color: var(--
|
|
338
|
-
padding: var(--nys-space-
|
|
352
|
+
background-color: var(--_nys-unavheader-bg-color);
|
|
353
|
+
padding: var(--nys-space-100, 8px) var(--_nys-unavheader-gutter);
|
|
339
354
|
display: flex;
|
|
340
355
|
justify-content: center;
|
|
341
356
|
}
|
|
@@ -352,9 +367,10 @@ const Z7 = M`
|
|
|
352
367
|
outline-offset: var(--nys-space-2px, 2px);
|
|
353
368
|
}
|
|
354
369
|
|
|
355
|
-
.nys-unavheader__logo {
|
|
370
|
+
.nys-unavheader__logo svg {
|
|
356
371
|
vertical-align: top;
|
|
357
|
-
height: var(--nys-
|
|
372
|
+
height: var(--nys-size-500, 40px);
|
|
373
|
+
width: auto;
|
|
358
374
|
}
|
|
359
375
|
|
|
360
376
|
.nys-unavheader__toptrustbar {
|
|
@@ -398,6 +414,7 @@ const Z7 = M`
|
|
|
398
414
|
|
|
399
415
|
#nys-unavheader__official {
|
|
400
416
|
width: max-content;
|
|
417
|
+
color: var(--_nys-unavheader-text-color);
|
|
401
418
|
}
|
|
402
419
|
|
|
403
420
|
#nys-unavheader__know {
|
|
@@ -446,13 +463,13 @@ const Z7 = M`
|
|
|
446
463
|
}
|
|
447
464
|
|
|
448
465
|
.nys-unavheader__searchdropdown.show {
|
|
449
|
-
background-color: var(--
|
|
466
|
+
background-color: var(--_nys-unavheader-surface-raised-color);
|
|
450
467
|
padding: var(--nys-space-250, 20px) var(--_nys-unavheader-gutter);
|
|
451
468
|
}
|
|
452
469
|
|
|
453
470
|
.nys-unavheader__trustbar.show {
|
|
454
|
-
background-color: var(--
|
|
455
|
-
color: var(--
|
|
471
|
+
background-color: var(--_nys-unavheader-surface-raised-color);
|
|
472
|
+
color: var(--_nys-unavheader-text-color);
|
|
456
473
|
display: flex;
|
|
457
474
|
justify-content: center;
|
|
458
475
|
padding: var(--nys-space-400, 32px) var(--_nys-unavheader-gutter);
|
|
@@ -483,7 +500,7 @@ const Z7 = M`
|
|
|
483
500
|
min-width: 100%;
|
|
484
501
|
width: max-content;
|
|
485
502
|
z-index: 99999;
|
|
486
|
-
background-color: var(--
|
|
503
|
+
background-color: var(--_nys-unavheader-surface-raised-color);
|
|
487
504
|
color: var(--nys-color-state-blue-700, #154973);
|
|
488
505
|
margin-top: var(--nys-space-150, 12px);
|
|
489
506
|
right: 0;
|
|
@@ -590,7 +607,7 @@ const Z7 = M`
|
|
|
590
607
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
591
608
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
592
609
|
*
|
|
593
|
-
* Icon Component v1.1.
|
|
610
|
+
* Icon Component v1.1.1
|
|
594
611
|
* Part of the New York State Design System
|
|
595
612
|
* Repository: https://github.com/its-hcd/nysds
|
|
596
613
|
* License: MIT
|
|
@@ -600,10 +617,10 @@ const Z7 = M`
|
|
|
600
617
|
* Copyright 2019 Google LLC
|
|
601
618
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
602
619
|
*/
|
|
603
|
-
const
|
|
620
|
+
const D1 = globalThis, L5 = D1.ShadowRoot && (D1.ShadyCSS === void 0 || D1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, K2 = Symbol(), G5 = /* @__PURE__ */ new WeakMap();
|
|
604
621
|
let S7 = class {
|
|
605
622
|
constructor(t, e, s) {
|
|
606
|
-
if (this._$cssResult$ = !0, s !==
|
|
623
|
+
if (this._$cssResult$ = !0, s !== K2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
607
624
|
this.cssText = t, this.t = e;
|
|
608
625
|
}
|
|
609
626
|
get styleSheet() {
|
|
@@ -611,7 +628,7 @@ let S7 = class {
|
|
|
611
628
|
const e = this.t;
|
|
612
629
|
if (L5 && t === void 0) {
|
|
613
630
|
const s = e !== void 0 && e.length === 1;
|
|
614
|
-
s && (t =
|
|
631
|
+
s && (t = G5.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && G5.set(e, t));
|
|
615
632
|
}
|
|
616
633
|
return t;
|
|
617
634
|
}
|
|
@@ -619,13 +636,13 @@ let S7 = class {
|
|
|
619
636
|
return this.cssText;
|
|
620
637
|
}
|
|
621
638
|
};
|
|
622
|
-
const V7 = (o) => new S7(typeof o == "string" ? o : o + "", void 0,
|
|
639
|
+
const V7 = (o) => new S7(typeof o == "string" ? o : o + "", void 0, K2), E7 = (o, t) => {
|
|
623
640
|
if (L5) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
624
641
|
else for (const e of t) {
|
|
625
|
-
const s = document.createElement("style"), r =
|
|
642
|
+
const s = document.createElement("style"), r = D1.litNonce;
|
|
626
643
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
627
644
|
}
|
|
628
|
-
},
|
|
645
|
+
}, K5 = L5 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
629
646
|
let e = "";
|
|
630
647
|
for (const s of t.cssRules) e += s.cssText;
|
|
631
648
|
return V7(e);
|
|
@@ -635,7 +652,7 @@ const V7 = (o) => new S7(typeof o == "string" ? o : o + "", void 0, Y2), E7 = (o
|
|
|
635
652
|
* Copyright 2017 Google LLC
|
|
636
653
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
637
654
|
*/
|
|
638
|
-
const { is: A7, defineProperty: P7, getOwnPropertyDescriptor: U7, getOwnPropertyNames: z7, getOwnPropertySymbols: O7, getPrototypeOf: B7 } = Object, F = globalThis,
|
|
655
|
+
const { is: A7, defineProperty: P7, getOwnPropertyDescriptor: U7, getOwnPropertyNames: z7, getOwnPropertySymbols: O7, getPrototypeOf: B7 } = Object, F = globalThis, Y5 = F.trustedTypes, k7 = Y5 ? Y5.emptyScript : "", J5 = F.reactiveElementPolyfillSupport, M1 = (o, t) => o, Y1 = { toAttribute(o, t) {
|
|
639
656
|
switch (t) {
|
|
640
657
|
case Boolean:
|
|
641
658
|
o = o ? k7 : null;
|
|
@@ -663,9 +680,9 @@ const { is: A7, defineProperty: P7, getOwnPropertyDescriptor: U7, getOwnProperty
|
|
|
663
680
|
}
|
|
664
681
|
}
|
|
665
682
|
return e;
|
|
666
|
-
} },
|
|
683
|
+
} }, x5 = (o, t) => !A7(o, t), X5 = { attribute: !0, type: String, converter: Y1, reflect: !1, hasChanged: x5 };
|
|
667
684
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), F.litPropertyMetadata ?? (F.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
668
|
-
let
|
|
685
|
+
let h1 = class extends HTMLElement {
|
|
669
686
|
static addInitializer(t) {
|
|
670
687
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
671
688
|
}
|
|
@@ -721,8 +738,8 @@ let c1 = class extends HTMLElement {
|
|
|
721
738
|
const e = [];
|
|
722
739
|
if (Array.isArray(t)) {
|
|
723
740
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
724
|
-
for (const r of s) e.unshift(
|
|
725
|
-
} else t !== void 0 && e.push(
|
|
741
|
+
for (const r of s) e.unshift(K5(r));
|
|
742
|
+
} else t !== void 0 && e.push(K5(t));
|
|
726
743
|
return e;
|
|
727
744
|
}
|
|
728
745
|
static _$Eu(t, e) {
|
|
@@ -776,7 +793,7 @@ let c1 = class extends HTMLElement {
|
|
|
776
793
|
var s;
|
|
777
794
|
const r = this.constructor.elementProperties.get(t), C = this.constructor._$Eu(t, r);
|
|
778
795
|
if (C !== void 0 && r.reflect === !0) {
|
|
779
|
-
const i = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter :
|
|
796
|
+
const i = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : Y1).toAttribute(e, r.type);
|
|
780
797
|
this._$Em = t, i == null ? this.removeAttribute(C) : this.setAttribute(C, i), this._$Em = null;
|
|
781
798
|
}
|
|
782
799
|
}
|
|
@@ -784,13 +801,13 @@ let c1 = class extends HTMLElement {
|
|
|
784
801
|
var s;
|
|
785
802
|
const r = this.constructor, C = r._$Eh.get(t);
|
|
786
803
|
if (C !== void 0 && this._$Em !== C) {
|
|
787
|
-
const i = r.getPropertyOptions(C), n = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter :
|
|
804
|
+
const i = r.getPropertyOptions(C), n = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter : Y1;
|
|
788
805
|
this._$Em = C, this[C] = n.fromAttribute(e, i.type), this._$Em = null;
|
|
789
806
|
}
|
|
790
807
|
}
|
|
791
808
|
requestUpdate(t, e, s) {
|
|
792
809
|
if (t !== void 0) {
|
|
793
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
810
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? x5)(this[t], e)) return;
|
|
794
811
|
this.P(t, e, s);
|
|
795
812
|
}
|
|
796
813
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -863,13 +880,13 @@ let c1 = class extends HTMLElement {
|
|
|
863
880
|
firstUpdated(t) {
|
|
864
881
|
}
|
|
865
882
|
};
|
|
866
|
-
|
|
883
|
+
h1.elementStyles = [], h1.shadowRootOptions = { mode: "open" }, h1[M1("elementProperties")] = /* @__PURE__ */ new Map(), h1[M1("finalized")] = /* @__PURE__ */ new Map(), J5 == null || J5({ ReactiveElement: h1 }), (F.reactiveElementVersions ?? (F.reactiveElementVersions = [])).push("2.0.4");
|
|
867
884
|
/**
|
|
868
885
|
* @license
|
|
869
886
|
* Copyright 2017 Google LLC
|
|
870
887
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
871
888
|
*/
|
|
872
|
-
const
|
|
889
|
+
const T7 = { attribute: !0, type: String, converter: Y1, reflect: !1, hasChanged: x5 }, R7 = (o = T7, t, e) => {
|
|
873
890
|
const { kind: s, metadata: r } = e;
|
|
874
891
|
let C = globalThis.litPropertyMetadata.get(r);
|
|
875
892
|
if (C === void 0 && globalThis.litPropertyMetadata.set(r, C = /* @__PURE__ */ new Map()), C.set(e.name, o), s === "accessor") {
|
|
@@ -891,12 +908,12 @@ const R7 = { attribute: !0, type: String, converter: J1, reflect: !1, hasChanged
|
|
|
891
908
|
throw Error("Unsupported decorator location: " + s);
|
|
892
909
|
};
|
|
893
910
|
function s1(o) {
|
|
894
|
-
return (t, e) => typeof e == "object" ?
|
|
911
|
+
return (t, e) => typeof e == "object" ? R7(o, t, e) : ((s, r, C) => {
|
|
895
912
|
const i = r.hasOwnProperty(C);
|
|
896
913
|
return r.constructor.createProperty(C, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, C) : void 0;
|
|
897
914
|
})(o, t, e);
|
|
898
915
|
}
|
|
899
|
-
const
|
|
916
|
+
const D7 = {
|
|
900
917
|
// --------- UX Team Main Library (below) --------- //
|
|
901
918
|
// *** CORE *** //
|
|
902
919
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
@@ -1095,7 +1112,7 @@ const N7 = {
|
|
|
1095
1112
|
lock_filled: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="23" viewBox="0 0 18 23" fill="none">
|
|
1096
1113
|
<path d="M3.30002 22.7751C2.43369 22.7751 1.69211 22.4667 1.07527 21.8498C0.458441 21.2328 0.150024 20.4913 0.150024 19.6251V10.2251C0.150024 9.35893 0.458441 8.61735 1.07527 8.00035C1.69211 7.38351 2.43369 7.0751 3.30002 7.0751H3.62502V5.8001C3.62502 4.28343 4.14586 2.99593 5.18752 1.9376C6.22919 0.879264 7.50002 0.350098 9.00002 0.350098C10.5 0.350098 11.7709 0.879264 12.8125 1.9376C13.8542 2.99593 14.375 4.28343 14.375 5.8001V7.0751H14.7C15.5662 7.0751 16.3078 7.38351 16.9248 8.00035C17.5416 8.61735 17.85 9.35893 17.85 10.2251V19.6251C17.85 20.4913 17.5416 21.2328 16.9248 21.8498C16.3078 22.4667 15.5662 22.7751 14.7 22.7751H3.30002ZM9.00002 16.9251C9.55002 16.9251 10.0209 16.7293 10.4125 16.3376C10.8042 15.9459 11 15.4751 11 14.9251C11 14.3751 10.8042 13.9043 10.4125 13.5126C10.0209 13.1209 9.55002 12.9251 9.00002 12.9251C8.45002 12.9251 7.97919 13.1209 7.58752 13.5126C7.19586 13.9043 7.00002 14.3751 7.00002 14.9251C7.00002 15.4751 7.19586 15.9459 7.58752 16.3376C7.97919 16.7293 8.45002 16.9251 9.00002 16.9251ZM6.77502 7.0751H11.225V5.8001C11.225 5.16126 11.0125 4.61818 10.5875 4.17085C10.1625 3.72368 9.63336 3.5001 9.00002 3.5001C8.36669 3.5001 7.83752 3.72368 7.41252 4.17085C6.98752 4.61818 6.77502 5.16126 6.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
1097
1114
|
</svg>`
|
|
1098
|
-
},
|
|
1115
|
+
}, N7 = M`
|
|
1099
1116
|
:host {
|
|
1100
1117
|
display: inline-block;
|
|
1101
1118
|
--_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. */
|
|
@@ -1192,12 +1209,12 @@ const N7 = {
|
|
|
1192
1209
|
transform: scale(-1, -1);
|
|
1193
1210
|
}
|
|
1194
1211
|
`;
|
|
1195
|
-
var
|
|
1196
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1212
|
+
var I7 = Object.defineProperty, j7 = Object.getOwnPropertyDescriptor, o1 = (o, t, e, s) => {
|
|
1213
|
+
for (var r = s > 1 ? void 0 : s ? j7(t, e) : t, C = o.length - 1, i; C >= 0; C--)
|
|
1197
1214
|
(i = o[C]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
1198
|
-
return s && r &&
|
|
1215
|
+
return s && r && I7(t, e, r), r;
|
|
1199
1216
|
}, d1;
|
|
1200
|
-
const
|
|
1217
|
+
const D = (d1 = class extends Z {
|
|
1201
1218
|
constructor() {
|
|
1202
1219
|
super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
1203
1220
|
}
|
|
@@ -1210,7 +1227,7 @@ const N = (d1 = class extends Z {
|
|
|
1210
1227
|
) ? o : "sm";
|
|
1211
1228
|
}
|
|
1212
1229
|
getIcon() {
|
|
1213
|
-
const o =
|
|
1230
|
+
const o = D7[this.name], t = !!this.label;
|
|
1214
1231
|
if (!o) return null;
|
|
1215
1232
|
const e = new DOMParser().parseFromString(o, "image/svg+xml").documentElement;
|
|
1216
1233
|
return e instanceof SVGElement ? (e.setAttribute("role", "img"), e.setAttribute("aria-label", t ? this.label : ""), e.setAttribute("aria-hidden", t ? "false" : "true"), e.style.rotate = `${this.rotate}deg`, e.style.color = this.color || "currentcolor", e.classList.add(`nys-icon--${this.size}`), e.classList.add("nys-icon--svg"), this.flip && e.classList.add(`nys-icon--flip-${this.flip}`), e) : null;
|
|
@@ -1219,7 +1236,7 @@ const N = (d1 = class extends Z {
|
|
|
1219
1236
|
const o = this.getIcon();
|
|
1220
1237
|
return o ? d`${o}` : null;
|
|
1221
1238
|
}
|
|
1222
|
-
}, d1.styles =
|
|
1239
|
+
}, d1.styles = N7, d1.VALID_TYPES = [
|
|
1223
1240
|
"2xs",
|
|
1224
1241
|
"xs",
|
|
1225
1242
|
"sm",
|
|
@@ -1237,31 +1254,31 @@ const N = (d1 = class extends Z {
|
|
|
1237
1254
|
"64"
|
|
1238
1255
|
], d1);
|
|
1239
1256
|
o1([
|
|
1240
|
-
s1({ type: String })
|
|
1241
|
-
],
|
|
1257
|
+
s1({ type: String, reflect: !0 })
|
|
1258
|
+
], D.prototype, "name", 2);
|
|
1242
1259
|
o1([
|
|
1243
1260
|
s1({ type: String })
|
|
1244
|
-
],
|
|
1261
|
+
], D.prototype, "label", 2);
|
|
1245
1262
|
o1([
|
|
1246
1263
|
s1({ type: String })
|
|
1247
|
-
],
|
|
1264
|
+
], D.prototype, "rotate", 2);
|
|
1248
1265
|
o1([
|
|
1249
1266
|
s1({ type: String })
|
|
1250
|
-
],
|
|
1267
|
+
], D.prototype, "flip", 2);
|
|
1251
1268
|
o1([
|
|
1252
1269
|
s1({ type: String })
|
|
1253
|
-
],
|
|
1270
|
+
], D.prototype, "color", 2);
|
|
1254
1271
|
o1([
|
|
1255
1272
|
s1({ reflect: !0 })
|
|
1256
|
-
],
|
|
1257
|
-
let q7 =
|
|
1273
|
+
], D.prototype, "size", 1);
|
|
1274
|
+
let q7 = D;
|
|
1258
1275
|
customElements.get("nys-icon") || customElements.define("nys-icon", q7);
|
|
1259
1276
|
/*!
|
|
1260
1277
|
* ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
|
|
1261
1278
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
1262
1279
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
1263
1280
|
*
|
|
1264
|
-
* TextInput Component v1.1.
|
|
1281
|
+
* TextInput Component v1.1.1
|
|
1265
1282
|
* Part of the New York State Design System
|
|
1266
1283
|
* Repository: https://github.com/its-hcd/nysds
|
|
1267
1284
|
* License: MIT
|
|
@@ -1271,16 +1288,16 @@ customElements.get("nys-icon") || customElements.define("nys-icon", q7);
|
|
|
1271
1288
|
* Copyright 2019 Google LLC
|
|
1272
1289
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1273
1290
|
*/
|
|
1274
|
-
const
|
|
1291
|
+
const N1 = globalThis, $5 = N1.ShadowRoot && (N1.ShadyCSS === void 0 || N1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Y2 = Symbol(), Q5 = /* @__PURE__ */ new WeakMap();
|
|
1275
1292
|
let F7 = class {
|
|
1276
1293
|
constructor(o, t, e) {
|
|
1277
|
-
if (this._$cssResult$ = !0, e !==
|
|
1294
|
+
if (this._$cssResult$ = !0, e !== Y2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1278
1295
|
this.cssText = o, this.t = t;
|
|
1279
1296
|
}
|
|
1280
1297
|
get styleSheet() {
|
|
1281
1298
|
let o = this.o;
|
|
1282
1299
|
const t = this.t;
|
|
1283
|
-
if (
|
|
1300
|
+
if ($5 && o === void 0) {
|
|
1284
1301
|
const e = t !== void 0 && t.length === 1;
|
|
1285
1302
|
e && (o = Q5.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && Q5.set(t, o));
|
|
1286
1303
|
}
|
|
@@ -1290,13 +1307,13 @@ let F7 = class {
|
|
|
1290
1307
|
return this.cssText;
|
|
1291
1308
|
}
|
|
1292
1309
|
};
|
|
1293
|
-
const W7 = (o) => new F7(typeof o == "string" ? o : o + "", void 0,
|
|
1294
|
-
if (
|
|
1310
|
+
const W7 = (o) => new F7(typeof o == "string" ? o : o + "", void 0, Y2), G7 = (o, t) => {
|
|
1311
|
+
if ($5) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1295
1312
|
else for (const e of t) {
|
|
1296
|
-
const s = document.createElement("style"), r =
|
|
1313
|
+
const s = document.createElement("style"), r = N1.litNonce;
|
|
1297
1314
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
1298
1315
|
}
|
|
1299
|
-
}, t2 =
|
|
1316
|
+
}, t2 = $5 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
1300
1317
|
let e = "";
|
|
1301
1318
|
for (const s of t.cssRules) e += s.cssText;
|
|
1302
1319
|
return W7(e);
|
|
@@ -1306,7 +1323,7 @@ const W7 = (o) => new F7(typeof o == "string" ? o : o + "", void 0, J2), K7 = (o
|
|
|
1306
1323
|
* Copyright 2017 Google LLC
|
|
1307
1324
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1308
1325
|
*/
|
|
1309
|
-
const { is:
|
|
1326
|
+
const { is: K7, defineProperty: Y7, getOwnPropertyDescriptor: J7, getOwnPropertyNames: X7, getOwnPropertySymbols: Q7, getPrototypeOf: t3 } = Object, W = globalThis, e2 = W.trustedTypes, e3 = e2 ? e2.emptyScript : "", s2 = W.reactiveElementPolyfillSupport, Z1 = (o, t) => o, J1 = { toAttribute(o, t) {
|
|
1310
1327
|
switch (t) {
|
|
1311
1328
|
case Boolean:
|
|
1312
1329
|
o = o ? e3 : null;
|
|
@@ -1334,7 +1351,7 @@ const { is: Y7, defineProperty: J7, getOwnPropertyDescriptor: G7, getOwnProperty
|
|
|
1334
1351
|
}
|
|
1335
1352
|
}
|
|
1336
1353
|
return e;
|
|
1337
|
-
} }, M5 = (o, t) => !
|
|
1354
|
+
} }, M5 = (o, t) => !K7(o, t), o2 = { attribute: !0, type: String, converter: J1, reflect: !1, hasChanged: M5 };
|
|
1338
1355
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), W.litPropertyMetadata ?? (W.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1339
1356
|
let p1 = class extends HTMLElement {
|
|
1340
1357
|
static addInitializer(t) {
|
|
@@ -1346,11 +1363,11 @@ let p1 = class extends HTMLElement {
|
|
|
1346
1363
|
static createProperty(t, e = o2) {
|
|
1347
1364
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1348
1365
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
1349
|
-
r !== void 0 &&
|
|
1366
|
+
r !== void 0 && Y7(this.prototype, t, r);
|
|
1350
1367
|
}
|
|
1351
1368
|
}
|
|
1352
1369
|
static getPropertyDescriptor(t, e, s) {
|
|
1353
|
-
const { get: r, set: C } =
|
|
1370
|
+
const { get: r, set: C } = J7(this.prototype, t) ?? { get() {
|
|
1354
1371
|
return this[e];
|
|
1355
1372
|
}, set(i) {
|
|
1356
1373
|
this[e] = i;
|
|
@@ -1422,7 +1439,7 @@ let p1 = class extends HTMLElement {
|
|
|
1422
1439
|
}
|
|
1423
1440
|
createRenderRoot() {
|
|
1424
1441
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1425
|
-
return
|
|
1442
|
+
return G7(t, this.constructor.elementStyles), t;
|
|
1426
1443
|
}
|
|
1427
1444
|
connectedCallback() {
|
|
1428
1445
|
var t;
|
|
@@ -1447,7 +1464,7 @@ let p1 = class extends HTMLElement {
|
|
|
1447
1464
|
var s;
|
|
1448
1465
|
const r = this.constructor.elementProperties.get(t), C = this.constructor._$Eu(t, r);
|
|
1449
1466
|
if (C !== void 0 && r.reflect === !0) {
|
|
1450
|
-
const i = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter :
|
|
1467
|
+
const i = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : J1).toAttribute(e, r.type);
|
|
1451
1468
|
this._$Em = t, i == null ? this.removeAttribute(C) : this.setAttribute(C, i), this._$Em = null;
|
|
1452
1469
|
}
|
|
1453
1470
|
}
|
|
@@ -1455,7 +1472,7 @@ let p1 = class extends HTMLElement {
|
|
|
1455
1472
|
var s;
|
|
1456
1473
|
const r = this.constructor, C = r._$Eh.get(t);
|
|
1457
1474
|
if (C !== void 0 && this._$Em !== C) {
|
|
1458
|
-
const i = r.getPropertyOptions(C), n = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter :
|
|
1475
|
+
const i = r.getPropertyOptions(C), n = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter : J1;
|
|
1459
1476
|
this._$Em = C, this[C] = n.fromAttribute(e, i.type), this._$Em = null;
|
|
1460
1477
|
}
|
|
1461
1478
|
}
|
|
@@ -1540,7 +1557,7 @@ p1.elementStyles = [], p1.shadowRootOptions = { mode: "open" }, p1[Z1("elementPr
|
|
|
1540
1557
|
* Copyright 2017 Google LLC
|
|
1541
1558
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1542
1559
|
*/
|
|
1543
|
-
const s3 = { attribute: !0, type: String, converter:
|
|
1560
|
+
const s3 = { attribute: !0, type: String, converter: J1, reflect: !1, hasChanged: M5 }, o3 = (o = s3, t, e) => {
|
|
1544
1561
|
const { kind: s, metadata: r } = e;
|
|
1545
1562
|
let C = globalThis.litPropertyMetadata.get(r);
|
|
1546
1563
|
if (C === void 0 && globalThis.litPropertyMetadata.set(r, C = /* @__PURE__ */ new Map()), C.set(e.name, o), s === "accessor") {
|
|
@@ -1561,13 +1578,21 @@ const s3 = { attribute: !0, type: String, converter: G1, reflect: !1, hasChanged
|
|
|
1561
1578
|
}
|
|
1562
1579
|
throw Error("Unsupported decorator location: " + s);
|
|
1563
1580
|
};
|
|
1564
|
-
function
|
|
1581
|
+
function u(o) {
|
|
1565
1582
|
return (t, e) => typeof e == "object" ? o3(o, t, e) : ((s, r, C) => {
|
|
1566
1583
|
const i = r.hasOwnProperty(C);
|
|
1567
1584
|
return r.constructor.createProperty(C, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, C) : void 0;
|
|
1568
1585
|
})(o, t, e);
|
|
1569
1586
|
}
|
|
1570
|
-
|
|
1587
|
+
/**
|
|
1588
|
+
* @license
|
|
1589
|
+
* Copyright 2017 Google LLC
|
|
1590
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1591
|
+
*/
|
|
1592
|
+
function r3(o) {
|
|
1593
|
+
return u({ ...o, state: !0, attribute: !1 });
|
|
1594
|
+
}
|
|
1595
|
+
const i3 = M`
|
|
1571
1596
|
:host {
|
|
1572
1597
|
/* Anything that can be overridden should be defined here */
|
|
1573
1598
|
|
|
@@ -1576,8 +1601,24 @@ const r3 = M`
|
|
|
1576
1601
|
--_nys-textinput-radius: var(--nys-radius-md, 4px);
|
|
1577
1602
|
--_nys-textinput-width-border: var(--nys-border-width-sm, 1px);
|
|
1578
1603
|
--_nys-textinput-color-border: var(--nys-color-neutral-400, #909395);
|
|
1604
|
+
--_nys-textinput-text-color: var(
|
|
1605
|
+
--nys-color-text,
|
|
1606
|
+
var(--nys-color-neutral-900, #1b1b1b)
|
|
1607
|
+
);
|
|
1608
|
+
--_nys-textinput-placeholder-color: var(
|
|
1609
|
+
--nys-color-text-weaker,
|
|
1610
|
+
var(--nys-color-neutral-500, #797c7f)
|
|
1611
|
+
);
|
|
1579
1612
|
--_nys-textinput-padding: var(--nys-space-100, 8px);
|
|
1580
1613
|
--_nys-textinput-gap: var(--nys-space-50, 4px);
|
|
1614
|
+
--_nys-textinput-background-color: var(
|
|
1615
|
+
--nys-color-ink-reverse,
|
|
1616
|
+
var(--nys-color-white, #ffffff)
|
|
1617
|
+
);
|
|
1618
|
+
--_nys-textinput-icon-color: var(
|
|
1619
|
+
--nys-color-ink,
|
|
1620
|
+
var(--nys-color-neutral-900, #1b1b1b)
|
|
1621
|
+
);
|
|
1581
1622
|
|
|
1582
1623
|
/* Hovered */
|
|
1583
1624
|
--_nys-textinput-hover-color-outline: var(--nys-color-neutral-900, #1b1b1b);
|
|
@@ -1593,7 +1634,10 @@ const r3 = M`
|
|
|
1593
1634
|
--nys-color-neutral-200,
|
|
1594
1635
|
#bec0c1
|
|
1595
1636
|
);
|
|
1596
|
-
--_nys-textinput-disabled-color-text: var(
|
|
1637
|
+
--_nys-textinput-disabled-color-text: var(
|
|
1638
|
+
--nys-color-text-disabled,
|
|
1639
|
+
var(--nys-color-neutral-200, #bec0c1)
|
|
1640
|
+
);
|
|
1597
1641
|
|
|
1598
1642
|
/* Global Font Styles */
|
|
1599
1643
|
--_nys-textinput-family-ui: var(
|
|
@@ -1639,7 +1683,6 @@ const r3 = M`
|
|
|
1639
1683
|
}
|
|
1640
1684
|
|
|
1641
1685
|
.nys-textinput {
|
|
1642
|
-
font-size: var(--_nys-textinput-size-ui-md);
|
|
1643
1686
|
font-weight: var(--_nys-textinput-weight-ui);
|
|
1644
1687
|
font-family: var(--_nys-textinput-family-ui);
|
|
1645
1688
|
line-height: var(--_nys-textinput-lineheight-ui);
|
|
@@ -1651,6 +1694,8 @@ const r3 = M`
|
|
|
1651
1694
|
}
|
|
1652
1695
|
|
|
1653
1696
|
.nys-textinput__input {
|
|
1697
|
+
color: var(--_nys-textinput-text-color);
|
|
1698
|
+
font-size: var(--_nys-textinput-size-ui-md);
|
|
1654
1699
|
border-radius: var(--_nys-textinput-radius);
|
|
1655
1700
|
border: solid var(--_nys-textinput-color-border)
|
|
1656
1701
|
var(--_nys-textinput-width-border);
|
|
@@ -1661,6 +1706,24 @@ const r3 = M`
|
|
|
1661
1706
|
box-sizing: border-box;
|
|
1662
1707
|
-webkit-box-sizing: border-box;
|
|
1663
1708
|
-moz-box-sizing: border-box;
|
|
1709
|
+
background-color: var(--_nys-textinput-background-color);
|
|
1710
|
+
}
|
|
1711
|
+
.nys-textinput__input::placeholder {
|
|
1712
|
+
color: var(--_nys-textinput-placeholder-color);
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
/* This container exist to mainly style the type="password" eye icon */
|
|
1716
|
+
.nys-input-container {
|
|
1717
|
+
position: relative;
|
|
1718
|
+
}
|
|
1719
|
+
.eye-icon {
|
|
1720
|
+
position: absolute;
|
|
1721
|
+
right: 10px;
|
|
1722
|
+
top: 50%;
|
|
1723
|
+
transform: translateY(-50%);
|
|
1724
|
+
cursor: pointer;
|
|
1725
|
+
color: var(--_nys-textinput-icon-color);
|
|
1726
|
+
background-color: var(--_nys-textinput-background-color);
|
|
1664
1727
|
}
|
|
1665
1728
|
|
|
1666
1729
|
/* Hovered */
|
|
@@ -1679,7 +1742,10 @@ const r3 = M`
|
|
|
1679
1742
|
}
|
|
1680
1743
|
|
|
1681
1744
|
/* Disabled */
|
|
1682
|
-
.nys-textinput__input:disabled
|
|
1745
|
+
.nys-textinput__input:disabled,
|
|
1746
|
+
.nys-input-container.disabled,
|
|
1747
|
+
.nys-input-container.disabled .eye-icon,
|
|
1748
|
+
.nys-textinput__input:disabled::placeholder {
|
|
1683
1749
|
background-color: var(--_nys-textinput-disabled-color);
|
|
1684
1750
|
border-color: var(--_nys-textinput-disabled-color-border);
|
|
1685
1751
|
color: var(--_nys-textinput-disabled-color-text);
|
|
@@ -1691,22 +1757,22 @@ const r3 = M`
|
|
|
1691
1757
|
* Copyright 2017 Google LLC
|
|
1692
1758
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1693
1759
|
*/
|
|
1694
|
-
const X1 = globalThis, Q1 = X1.trustedTypes, r2 = Q1 ? Q1.createPolicy("lit-html", { createHTML: (o) => o }) : void 0,
|
|
1695
|
-
\f\r]`, u1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, i2 = /-->/g, C2 = />/g, P = RegExp(`>|${
|
|
1696
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), n2 = /'/g, l2 = /"/g, Q2 = /^(?:script|style|textarea|title)$/i, z1 = Symbol.for("lit-noChange"),
|
|
1760
|
+
const X1 = globalThis, Q1 = X1.trustedTypes, r2 = Q1 ? Q1.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, J2 = "$lit$", V = `lit$${Math.random().toFixed(9).slice(2)}$`, X2 = "?" + V, C3 = `<${X2}>`, k = document, t5 = () => k.createComment(""), U1 = (o) => o === null || typeof o != "object" && typeof o != "function", Z5 = Array.isArray, n3 = (o) => Z5(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", g5 = `[
|
|
1761
|
+
\f\r]`, u1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, i2 = /-->/g, C2 = />/g, P = RegExp(`>|${g5}(?:([^\\s"'>=/]+)(${g5}*=${g5}*(?:[^
|
|
1762
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), n2 = /'/g, l2 = /"/g, Q2 = /^(?:script|style|textarea|title)$/i, z1 = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), a2 = /* @__PURE__ */ new WeakMap(), O = k.createTreeWalker(k, 129);
|
|
1697
1763
|
function t7(o, t) {
|
|
1698
1764
|
if (!Z5(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1699
1765
|
return r2 !== void 0 ? r2.createHTML(t) : t;
|
|
1700
1766
|
}
|
|
1701
|
-
const
|
|
1767
|
+
const l3 = (o, t) => {
|
|
1702
1768
|
const e = o.length - 1, s = [];
|
|
1703
1769
|
let r, C = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = u1;
|
|
1704
1770
|
for (let n = 0; n < e; n++) {
|
|
1705
1771
|
const l = o[n];
|
|
1706
|
-
let
|
|
1707
|
-
for (;
|
|
1772
|
+
let h, c, a = -1, f = 0;
|
|
1773
|
+
for (; f < l.length && (i.lastIndex = f, c = i.exec(l), c !== null); ) f = i.lastIndex, i === u1 ? c[1] === "!--" ? i = i2 : c[1] !== void 0 ? i = C2 : c[2] !== void 0 ? (Q2.test(c[2]) && (r = RegExp("</" + c[2], "g")), i = P) : c[3] !== void 0 && (i = P) : i === P ? c[0] === ">" ? (i = r ?? u1, a = -1) : c[1] === void 0 ? a = -2 : (a = i.lastIndex - c[2].length, h = c[1], i = c[3] === void 0 ? P : c[3] === '"' ? l2 : n2) : i === l2 || i === n2 ? i = P : i === i2 || i === C2 ? i = u1 : (i = P, r = void 0);
|
|
1708
1774
|
const w = i === P && o[n + 1].startsWith("/>") ? " " : "";
|
|
1709
|
-
C += i === u1 ? l +
|
|
1775
|
+
C += i === u1 ? l + C3 : a >= 0 ? (s.push(h), l.slice(0, a) + J2 + l.slice(a) + V + w) : l + V + (a === -2 ? n : w);
|
|
1710
1776
|
}
|
|
1711
1777
|
return [t7(o, C + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
1712
1778
|
};
|
|
@@ -1715,23 +1781,23 @@ let w5 = class e7 {
|
|
|
1715
1781
|
let r;
|
|
1716
1782
|
this.parts = [];
|
|
1717
1783
|
let C = 0, i = 0;
|
|
1718
|
-
const n = t.length - 1, l = this.parts, [
|
|
1719
|
-
if (this.el = e7.createElement(
|
|
1784
|
+
const n = t.length - 1, l = this.parts, [h, c] = l3(t, e);
|
|
1785
|
+
if (this.el = e7.createElement(h, s), O.currentNode = this.el.content, e === 2 || e === 3) {
|
|
1720
1786
|
const a = this.el.content.firstChild;
|
|
1721
1787
|
a.replaceWith(...a.childNodes);
|
|
1722
1788
|
}
|
|
1723
1789
|
for (; (r = O.nextNode()) !== null && l.length < n; ) {
|
|
1724
1790
|
if (r.nodeType === 1) {
|
|
1725
|
-
if (r.hasAttributes()) for (const a of r.getAttributeNames()) if (a.endsWith(
|
|
1726
|
-
const
|
|
1727
|
-
l.push({ type: 1, index: C, name:
|
|
1791
|
+
if (r.hasAttributes()) for (const a of r.getAttributeNames()) if (a.endsWith(J2)) {
|
|
1792
|
+
const f = c[i++], w = r.getAttribute(a).split(V), $ = /([.?@])?(.*)/.exec(f);
|
|
1793
|
+
l.push({ type: 1, index: C, name: $[2], strings: w, ctor: $[1] === "." ? c3 : $[1] === "?" ? h3 : $[1] === "@" ? d3 : c5 }), r.removeAttribute(a);
|
|
1728
1794
|
} else a.startsWith(V) && (l.push({ type: 6, index: C }), r.removeAttribute(a));
|
|
1729
1795
|
if (Q2.test(r.tagName)) {
|
|
1730
|
-
const a = r.textContent.split(V),
|
|
1731
|
-
if (
|
|
1796
|
+
const a = r.textContent.split(V), f = a.length - 1;
|
|
1797
|
+
if (f > 0) {
|
|
1732
1798
|
r.textContent = Q1 ? Q1.emptyScript : "";
|
|
1733
|
-
for (let w = 0; w <
|
|
1734
|
-
r.append(a[
|
|
1799
|
+
for (let w = 0; w < f; w++) r.append(a[w], t5()), O.nextNode(), l.push({ type: 2, index: ++C });
|
|
1800
|
+
r.append(a[f], t5());
|
|
1735
1801
|
}
|
|
1736
1802
|
}
|
|
1737
1803
|
} else if (r.nodeType === 8) if (r.data === X2) l.push({ type: 2, index: C });
|
|
@@ -1747,14 +1813,14 @@ let w5 = class e7 {
|
|
|
1747
1813
|
return s.innerHTML = t, s;
|
|
1748
1814
|
}
|
|
1749
1815
|
};
|
|
1750
|
-
function
|
|
1816
|
+
function G(o, t, e = o, s) {
|
|
1751
1817
|
var r, C;
|
|
1752
1818
|
if (t === z1) return t;
|
|
1753
1819
|
let i = s !== void 0 ? (r = e._$Co) == null ? void 0 : r[s] : e._$Cl;
|
|
1754
1820
|
const n = U1(t) ? void 0 : t._$litDirective$;
|
|
1755
|
-
return (i == null ? void 0 : i.constructor) !== n && ((C = i == null ? void 0 : i._$AO) == null || C.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t =
|
|
1821
|
+
return (i == null ? void 0 : i.constructor) !== n && ((C = i == null ? void 0 : i._$AO) == null || C.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = G(o, i._$AS(o, t.values), i, s)), t;
|
|
1756
1822
|
}
|
|
1757
|
-
let
|
|
1823
|
+
let a3 = class {
|
|
1758
1824
|
constructor(o, t) {
|
|
1759
1825
|
this._$AV = [], this._$AN = void 0, this._$AD = o, this._$AM = t;
|
|
1760
1826
|
}
|
|
@@ -1771,7 +1837,7 @@ let l3 = class {
|
|
|
1771
1837
|
for (; n !== void 0; ) {
|
|
1772
1838
|
if (C === n.index) {
|
|
1773
1839
|
let l;
|
|
1774
|
-
n.type === 2 ? l = new s7(r, r.nextSibling, this, o) : n.type === 1 ? l = new n.ctor(r, n.name, n.strings, this, o) : n.type === 6 && (l = new
|
|
1840
|
+
n.type === 2 ? l = new s7(r, r.nextSibling, this, o) : n.type === 1 ? l = new n.ctor(r, n.name, n.strings, this, o) : n.type === 6 && (l = new p3(r, this, o)), this._$AV.push(l), n = e[++i];
|
|
1775
1841
|
}
|
|
1776
1842
|
C !== (n == null ? void 0 : n.index) && (r = O.nextNode(), C++);
|
|
1777
1843
|
}
|
|
@@ -1787,7 +1853,7 @@ let l3 = class {
|
|
|
1787
1853
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
1788
1854
|
}
|
|
1789
1855
|
constructor(t, e, s, r) {
|
|
1790
|
-
this.type = 2, this._$AH =
|
|
1856
|
+
this.type = 2, this._$AH = g, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
|
1791
1857
|
}
|
|
1792
1858
|
get parentNode() {
|
|
1793
1859
|
let t = this._$AA.parentNode;
|
|
@@ -1801,7 +1867,7 @@ let l3 = class {
|
|
|
1801
1867
|
return this._$AB;
|
|
1802
1868
|
}
|
|
1803
1869
|
_$AI(t, e = this) {
|
|
1804
|
-
t =
|
|
1870
|
+
t = G(this, t, e), U1(t) ? t === g || t == null || t === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : t !== this._$AH && t !== z1 && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : n3(t) ? this.k(t) : this._(t);
|
|
1805
1871
|
}
|
|
1806
1872
|
O(t) {
|
|
1807
1873
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1810,14 +1876,14 @@ let l3 = class {
|
|
|
1810
1876
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
1811
1877
|
}
|
|
1812
1878
|
_(t) {
|
|
1813
|
-
this._$AH !==
|
|
1879
|
+
this._$AH !== g && U1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(k.createTextNode(t)), this._$AH = t;
|
|
1814
1880
|
}
|
|
1815
1881
|
$(t) {
|
|
1816
1882
|
var e;
|
|
1817
1883
|
const { values: s, _$litType$: r } = t, C = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = w5.createElement(t7(r.h, r.h[0]), this.options)), r);
|
|
1818
1884
|
if (((e = this._$AH) == null ? void 0 : e._$AD) === C) this._$AH.p(s);
|
|
1819
1885
|
else {
|
|
1820
|
-
const i = new
|
|
1886
|
+
const i = new a3(C, this), n = i.u(this.options);
|
|
1821
1887
|
i.p(s), this.T(n), this._$AH = i;
|
|
1822
1888
|
}
|
|
1823
1889
|
}
|
|
@@ -1843,7 +1909,7 @@ let l3 = class {
|
|
|
1843
1909
|
var e;
|
|
1844
1910
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
1845
1911
|
}
|
|
1846
|
-
},
|
|
1912
|
+
}, c5 = class {
|
|
1847
1913
|
get tagName() {
|
|
1848
1914
|
return this.element.tagName;
|
|
1849
1915
|
}
|
|
@@ -1851,50 +1917,50 @@ let l3 = class {
|
|
|
1851
1917
|
return this._$AM._$AU;
|
|
1852
1918
|
}
|
|
1853
1919
|
constructor(t, e, s, r, C) {
|
|
1854
|
-
this.type = 1, this._$AH =
|
|
1920
|
+
this.type = 1, this._$AH = g, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = C, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = g;
|
|
1855
1921
|
}
|
|
1856
1922
|
_$AI(t, e = this, s, r) {
|
|
1857
1923
|
const C = this.strings;
|
|
1858
1924
|
let i = !1;
|
|
1859
|
-
if (C === void 0) t =
|
|
1925
|
+
if (C === void 0) t = G(this, t, e, 0), i = !U1(t) || t !== this._$AH && t !== z1, i && (this._$AH = t);
|
|
1860
1926
|
else {
|
|
1861
1927
|
const n = t;
|
|
1862
|
-
let l,
|
|
1863
|
-
for (t = C[0], l = 0; l < C.length - 1; l++)
|
|
1928
|
+
let l, h;
|
|
1929
|
+
for (t = C[0], l = 0; l < C.length - 1; l++) h = G(this, n[s + l], e, l), h === z1 && (h = this._$AH[l]), i || (i = !U1(h) || h !== this._$AH[l]), h === g ? t = g : t !== g && (t += (h ?? "") + C[l + 1]), this._$AH[l] = h;
|
|
1864
1930
|
}
|
|
1865
1931
|
i && !r && this.j(t);
|
|
1866
1932
|
}
|
|
1867
1933
|
j(t) {
|
|
1868
|
-
t ===
|
|
1934
|
+
t === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1869
1935
|
}
|
|
1870
|
-
},
|
|
1936
|
+
}, c3 = class extends c5 {
|
|
1871
1937
|
constructor() {
|
|
1872
1938
|
super(...arguments), this.type = 3;
|
|
1873
1939
|
}
|
|
1874
1940
|
j(o) {
|
|
1875
|
-
this.element[this.name] = o ===
|
|
1941
|
+
this.element[this.name] = o === g ? void 0 : o;
|
|
1876
1942
|
}
|
|
1877
|
-
}, h3 = class extends
|
|
1943
|
+
}, h3 = class extends c5 {
|
|
1878
1944
|
constructor() {
|
|
1879
1945
|
super(...arguments), this.type = 4;
|
|
1880
1946
|
}
|
|
1881
1947
|
j(o) {
|
|
1882
|
-
this.element.toggleAttribute(this.name, !!o && o !==
|
|
1948
|
+
this.element.toggleAttribute(this.name, !!o && o !== g);
|
|
1883
1949
|
}
|
|
1884
|
-
},
|
|
1950
|
+
}, d3 = class extends c5 {
|
|
1885
1951
|
constructor(o, t, e, s, r) {
|
|
1886
1952
|
super(o, t, e, s, r), this.type = 5;
|
|
1887
1953
|
}
|
|
1888
1954
|
_$AI(o, t = this) {
|
|
1889
|
-
if ((o =
|
|
1890
|
-
const e = this._$AH, s = o ===
|
|
1955
|
+
if ((o = G(this, o, t, 0) ?? g) === z1) return;
|
|
1956
|
+
const e = this._$AH, s = o === g && e !== g || o.capture !== e.capture || o.once !== e.once || o.passive !== e.passive, r = o !== g && (e === g || s);
|
|
1891
1957
|
s && this.element.removeEventListener(this.name, this, e), r && this.element.addEventListener(this.name, this, o), this._$AH = o;
|
|
1892
1958
|
}
|
|
1893
1959
|
handleEvent(o) {
|
|
1894
1960
|
var t;
|
|
1895
1961
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, o) : this._$AH.handleEvent(o);
|
|
1896
1962
|
}
|
|
1897
|
-
},
|
|
1963
|
+
}, p3 = class {
|
|
1898
1964
|
constructor(o, t, e) {
|
|
1899
1965
|
this.element = o, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = e;
|
|
1900
1966
|
}
|
|
@@ -1902,23 +1968,23 @@ let l3 = class {
|
|
|
1902
1968
|
return this._$AM._$AU;
|
|
1903
1969
|
}
|
|
1904
1970
|
_$AI(o) {
|
|
1905
|
-
|
|
1971
|
+
G(this, o);
|
|
1906
1972
|
}
|
|
1907
1973
|
};
|
|
1908
|
-
const
|
|
1909
|
-
|
|
1974
|
+
const c2 = X1.litHtmlPolyfillSupport;
|
|
1975
|
+
c2 == null || c2(w5, s7), (X1.litHtmlVersions ?? (X1.litHtmlVersions = [])).push("3.2.1");
|
|
1910
1976
|
/**
|
|
1911
1977
|
* @license
|
|
1912
1978
|
* Copyright 2018 Google LLC
|
|
1913
1979
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1914
1980
|
*/
|
|
1915
|
-
const U = (o) => o ??
|
|
1981
|
+
const U = (o) => o ?? g;
|
|
1916
1982
|
/*!
|
|
1917
1983
|
* ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
|
|
1918
1984
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
1919
1985
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
1920
1986
|
*
|
|
1921
|
-
* Icon Component v1.1.
|
|
1987
|
+
* Icon Component v1.1.1
|
|
1922
1988
|
* Part of the New York State Design System
|
|
1923
1989
|
* Repository: https://github.com/its-hcd/nysds
|
|
1924
1990
|
* License: MIT
|
|
@@ -1928,8 +1994,8 @@ const U = (o) => o ?? v;
|
|
|
1928
1994
|
* Copyright 2019 Google LLC
|
|
1929
1995
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1930
1996
|
*/
|
|
1931
|
-
const
|
|
1932
|
-
let
|
|
1997
|
+
const I1 = globalThis, H5 = I1.ShadowRoot && (I1.ShadyCSS === void 0 || I1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, r7 = Symbol(), h2 = /* @__PURE__ */ new WeakMap();
|
|
1998
|
+
let u3 = class {
|
|
1933
1999
|
constructor(o, t, e) {
|
|
1934
2000
|
if (this._$cssResult$ = !0, e !== r7) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1935
2001
|
this.cssText = o, this.t = t;
|
|
@@ -1939,7 +2005,7 @@ let p3 = class {
|
|
|
1939
2005
|
const t = this.t;
|
|
1940
2006
|
if (H5 && o === void 0) {
|
|
1941
2007
|
const e = t !== void 0 && t.length === 1;
|
|
1942
|
-
e && (o =
|
|
2008
|
+
e && (o = h2.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && h2.set(t, o));
|
|
1943
2009
|
}
|
|
1944
2010
|
return o;
|
|
1945
2011
|
}
|
|
@@ -1947,26 +2013,26 @@ let p3 = class {
|
|
|
1947
2013
|
return this.cssText;
|
|
1948
2014
|
}
|
|
1949
2015
|
};
|
|
1950
|
-
const
|
|
2016
|
+
const v3 = (o) => new u3(typeof o == "string" ? o : o + "", void 0, r7), f3 = (o, t) => {
|
|
1951
2017
|
if (H5) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1952
2018
|
else for (const e of t) {
|
|
1953
|
-
const s = document.createElement("style"), r =
|
|
2019
|
+
const s = document.createElement("style"), r = I1.litNonce;
|
|
1954
2020
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
1955
2021
|
}
|
|
1956
2022
|
}, d2 = H5 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
1957
2023
|
let e = "";
|
|
1958
2024
|
for (const s of t.cssRules) e += s.cssText;
|
|
1959
|
-
return
|
|
2025
|
+
return v3(e);
|
|
1960
2026
|
})(o) : o;
|
|
1961
2027
|
/**
|
|
1962
2028
|
* @license
|
|
1963
2029
|
* Copyright 2017 Google LLC
|
|
1964
2030
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1965
2031
|
*/
|
|
1966
|
-
const { is: g3, defineProperty:
|
|
2032
|
+
const { is: g3, defineProperty: y3, getOwnPropertyDescriptor: w3, getOwnPropertyNames: _3, getOwnPropertySymbols: m3, getPrototypeOf: b3 } = Object, K = globalThis, p2 = K.trustedTypes, L3 = p2 ? p2.emptyScript : "", u2 = K.reactiveElementPolyfillSupport, H1 = (o, t) => o, e5 = { toAttribute(o, t) {
|
|
1967
2033
|
switch (t) {
|
|
1968
2034
|
case Boolean:
|
|
1969
|
-
o = o ?
|
|
2035
|
+
o = o ? L3 : null;
|
|
1970
2036
|
break;
|
|
1971
2037
|
case Object:
|
|
1972
2038
|
case Array:
|
|
@@ -1992,7 +2058,7 @@ const { is: g3, defineProperty: f3, getOwnPropertyDescriptor: y3, getOwnProperty
|
|
|
1992
2058
|
}
|
|
1993
2059
|
return e;
|
|
1994
2060
|
} }, S5 = (o, t) => !g3(o, t), v2 = { attribute: !0, type: String, converter: e5, reflect: !1, hasChanged: S5 };
|
|
1995
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
2061
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), K.litPropertyMetadata ?? (K.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1996
2062
|
let v1 = class extends HTMLElement {
|
|
1997
2063
|
static addInitializer(t) {
|
|
1998
2064
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -2003,11 +2069,11 @@ let v1 = class extends HTMLElement {
|
|
|
2003
2069
|
static createProperty(t, e = v2) {
|
|
2004
2070
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
2005
2071
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
2006
|
-
r !== void 0 &&
|
|
2072
|
+
r !== void 0 && y3(this.prototype, t, r);
|
|
2007
2073
|
}
|
|
2008
2074
|
}
|
|
2009
2075
|
static getPropertyDescriptor(t, e, s) {
|
|
2010
|
-
const { get: r, set: C } =
|
|
2076
|
+
const { get: r, set: C } = w3(this.prototype, t) ?? { get() {
|
|
2011
2077
|
return this[e];
|
|
2012
2078
|
}, set(i) {
|
|
2013
2079
|
this[e] = i;
|
|
@@ -2024,13 +2090,13 @@ let v1 = class extends HTMLElement {
|
|
|
2024
2090
|
}
|
|
2025
2091
|
static _$Ei() {
|
|
2026
2092
|
if (this.hasOwnProperty(H1("elementProperties"))) return;
|
|
2027
|
-
const t =
|
|
2093
|
+
const t = b3(this);
|
|
2028
2094
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
2029
2095
|
}
|
|
2030
2096
|
static finalize() {
|
|
2031
2097
|
if (this.hasOwnProperty(H1("finalized"))) return;
|
|
2032
2098
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H1("properties"))) {
|
|
2033
|
-
const e = this.properties, s = [...
|
|
2099
|
+
const e = this.properties, s = [..._3(e), ...m3(e)];
|
|
2034
2100
|
for (const r of s) this.createProperty(r, e[r]);
|
|
2035
2101
|
}
|
|
2036
2102
|
const t = this[Symbol.metadata];
|
|
@@ -2079,7 +2145,7 @@ let v1 = class extends HTMLElement {
|
|
|
2079
2145
|
}
|
|
2080
2146
|
createRenderRoot() {
|
|
2081
2147
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2082
|
-
return
|
|
2148
|
+
return f3(t, this.constructor.elementStyles), t;
|
|
2083
2149
|
}
|
|
2084
2150
|
connectedCallback() {
|
|
2085
2151
|
var t;
|
|
@@ -2191,13 +2257,13 @@ let v1 = class extends HTMLElement {
|
|
|
2191
2257
|
firstUpdated(t) {
|
|
2192
2258
|
}
|
|
2193
2259
|
};
|
|
2194
|
-
v1.elementStyles = [], v1.shadowRootOptions = { mode: "open" }, v1[H1("elementProperties")] = /* @__PURE__ */ new Map(), v1[H1("finalized")] = /* @__PURE__ */ new Map(), u2 == null || u2({ ReactiveElement: v1 }), (
|
|
2260
|
+
v1.elementStyles = [], v1.shadowRootOptions = { mode: "open" }, v1[H1("elementProperties")] = /* @__PURE__ */ new Map(), v1[H1("finalized")] = /* @__PURE__ */ new Map(), u2 == null || u2({ ReactiveElement: v1 }), (K.reactiveElementVersions ?? (K.reactiveElementVersions = [])).push("2.0.4");
|
|
2195
2261
|
/**
|
|
2196
2262
|
* @license
|
|
2197
2263
|
* Copyright 2017 Google LLC
|
|
2198
2264
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2199
2265
|
*/
|
|
2200
|
-
const
|
|
2266
|
+
const x3 = { attribute: !0, type: String, converter: e5, reflect: !1, hasChanged: S5 }, $3 = (o = x3, t, e) => {
|
|
2201
2267
|
const { kind: s, metadata: r } = e;
|
|
2202
2268
|
let C = globalThis.litPropertyMetadata.get(r);
|
|
2203
2269
|
if (C === void 0 && globalThis.litPropertyMetadata.set(r, C = /* @__PURE__ */ new Map()), C.set(e.name, o), s === "accessor") {
|
|
@@ -2224,7 +2290,7 @@ function r1(o) {
|
|
|
2224
2290
|
return r.constructor.createProperty(C, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, C) : void 0;
|
|
2225
2291
|
})(o, t, e);
|
|
2226
2292
|
}
|
|
2227
|
-
const
|
|
2293
|
+
const M3 = {
|
|
2228
2294
|
// --------- UX Team Main Library (below) --------- //
|
|
2229
2295
|
// *** CORE *** //
|
|
2230
2296
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
@@ -2423,7 +2489,7 @@ const x3 = {
|
|
|
2423
2489
|
lock_filled: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="23" viewBox="0 0 18 23" fill="none">
|
|
2424
2490
|
<path d="M3.30002 22.7751C2.43369 22.7751 1.69211 22.4667 1.07527 21.8498C0.458441 21.2328 0.150024 20.4913 0.150024 19.6251V10.2251C0.150024 9.35893 0.458441 8.61735 1.07527 8.00035C1.69211 7.38351 2.43369 7.0751 3.30002 7.0751H3.62502V5.8001C3.62502 4.28343 4.14586 2.99593 5.18752 1.9376C6.22919 0.879264 7.50002 0.350098 9.00002 0.350098C10.5 0.350098 11.7709 0.879264 12.8125 1.9376C13.8542 2.99593 14.375 4.28343 14.375 5.8001V7.0751H14.7C15.5662 7.0751 16.3078 7.38351 16.9248 8.00035C17.5416 8.61735 17.85 9.35893 17.85 10.2251V19.6251C17.85 20.4913 17.5416 21.2328 16.9248 21.8498C16.3078 22.4667 15.5662 22.7751 14.7 22.7751H3.30002ZM9.00002 16.9251C9.55002 16.9251 10.0209 16.7293 10.4125 16.3376C10.8042 15.9459 11 15.4751 11 14.9251C11 14.3751 10.8042 13.9043 10.4125 13.5126C10.0209 13.1209 9.55002 12.9251 9.00002 12.9251C8.45002 12.9251 7.97919 13.1209 7.58752 13.5126C7.19586 13.9043 7.00002 14.3751 7.00002 14.9251C7.00002 15.4751 7.19586 15.9459 7.58752 16.3376C7.97919 16.7293 8.45002 16.9251 9.00002 16.9251ZM6.77502 7.0751H11.225V5.8001C11.225 5.16126 11.0125 4.61818 10.5875 4.17085C10.1625 3.72368 9.63336 3.5001 9.00002 3.5001C8.36669 3.5001 7.83752 3.72368 7.41252 4.17085C6.98752 4.61818 6.77502 5.16126 6.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2425
2491
|
</svg>`
|
|
2426
|
-
},
|
|
2492
|
+
}, Z3 = M`
|
|
2427
2493
|
:host {
|
|
2428
2494
|
display: inline-block;
|
|
2429
2495
|
--_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. */
|
|
@@ -2520,12 +2586,12 @@ const x3 = {
|
|
|
2520
2586
|
transform: scale(-1, -1);
|
|
2521
2587
|
}
|
|
2522
2588
|
`;
|
|
2523
|
-
var
|
|
2524
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2589
|
+
var H3 = Object.defineProperty, S3 = Object.getOwnPropertyDescriptor, i1 = (o, t, e, s) => {
|
|
2590
|
+
for (var r = s > 1 ? void 0 : s ? S3(t, e) : t, C = o.length - 1, i; C >= 0; C--)
|
|
2525
2591
|
(i = o[C]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
2526
|
-
return s && r &&
|
|
2527
|
-
},
|
|
2528
|
-
const
|
|
2592
|
+
return s && r && H3(t, e, r), r;
|
|
2593
|
+
}, f1;
|
|
2594
|
+
const N = (f1 = class extends Z {
|
|
2529
2595
|
constructor() {
|
|
2530
2596
|
super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
2531
2597
|
}
|
|
@@ -2533,12 +2599,12 @@ const j = (g1 = class extends Z {
|
|
|
2533
2599
|
return this._size;
|
|
2534
2600
|
}
|
|
2535
2601
|
set size(o) {
|
|
2536
|
-
this._size =
|
|
2602
|
+
this._size = f1.VALID_TYPES.includes(
|
|
2537
2603
|
o
|
|
2538
2604
|
) ? o : "sm";
|
|
2539
2605
|
}
|
|
2540
2606
|
getIcon() {
|
|
2541
|
-
const o =
|
|
2607
|
+
const o = M3[this.name], t = !!this.label;
|
|
2542
2608
|
if (!o) return null;
|
|
2543
2609
|
const e = new DOMParser().parseFromString(o, "image/svg+xml").documentElement;
|
|
2544
2610
|
return e instanceof SVGElement ? (e.setAttribute("role", "img"), e.setAttribute("aria-label", t ? this.label : ""), e.setAttribute("aria-hidden", t ? "false" : "true"), e.style.rotate = `${this.rotate}deg`, e.style.color = this.color || "currentcolor", e.classList.add(`nys-icon--${this.size}`), e.classList.add("nys-icon--svg"), this.flip && e.classList.add(`nys-icon--flip-${this.flip}`), e) : null;
|
|
@@ -2547,7 +2613,7 @@ const j = (g1 = class extends Z {
|
|
|
2547
2613
|
const o = this.getIcon();
|
|
2548
2614
|
return o ? d`${o}` : null;
|
|
2549
2615
|
}
|
|
2550
|
-
},
|
|
2616
|
+
}, f1.styles = Z3, f1.VALID_TYPES = [
|
|
2551
2617
|
"2xs",
|
|
2552
2618
|
"xs",
|
|
2553
2619
|
"sm",
|
|
@@ -2563,29 +2629,29 @@ const j = (g1 = class extends Z {
|
|
|
2563
2629
|
"32",
|
|
2564
2630
|
"48",
|
|
2565
2631
|
"64"
|
|
2566
|
-
],
|
|
2632
|
+
], f1);
|
|
2567
2633
|
i1([
|
|
2568
|
-
r1({ type: String })
|
|
2569
|
-
],
|
|
2634
|
+
r1({ type: String, reflect: !0 })
|
|
2635
|
+
], N.prototype, "name", 2);
|
|
2570
2636
|
i1([
|
|
2571
2637
|
r1({ type: String })
|
|
2572
|
-
],
|
|
2638
|
+
], N.prototype, "label", 2);
|
|
2573
2639
|
i1([
|
|
2574
2640
|
r1({ type: String })
|
|
2575
|
-
],
|
|
2641
|
+
], N.prototype, "rotate", 2);
|
|
2576
2642
|
i1([
|
|
2577
2643
|
r1({ type: String })
|
|
2578
|
-
],
|
|
2644
|
+
], N.prototype, "flip", 2);
|
|
2579
2645
|
i1([
|
|
2580
2646
|
r1({ type: String })
|
|
2581
|
-
],
|
|
2647
|
+
], N.prototype, "color", 2);
|
|
2582
2648
|
i1([
|
|
2583
2649
|
r1({ reflect: !0 })
|
|
2584
|
-
],
|
|
2585
|
-
let
|
|
2586
|
-
customElements.get("nys-icon") || customElements.define("nys-icon",
|
|
2650
|
+
], N.prototype, "size", 1);
|
|
2651
|
+
let V3 = N;
|
|
2652
|
+
customElements.get("nys-icon") || customElements.define("nys-icon", V3);
|
|
2587
2653
|
/*!
|
|
2588
|
-
* Label v1.1.
|
|
2654
|
+
* Label v1.1.1
|
|
2589
2655
|
* Part of the New York State Design System
|
|
2590
2656
|
* A design system for New York State's digital products.
|
|
2591
2657
|
* Repository: https://github.com/its-hcd/nysds
|
|
@@ -2596,8 +2662,8 @@ customElements.get("nys-icon") || customElements.define("nys-icon", S3);
|
|
|
2596
2662
|
* Copyright 2019 Google LLC
|
|
2597
2663
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2598
2664
|
*/
|
|
2599
|
-
const
|
|
2600
|
-
let
|
|
2665
|
+
const j1 = globalThis, V5 = j1.ShadowRoot && (j1.ShadyCSS === void 0 || j1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, i7 = Symbol(), f2 = /* @__PURE__ */ new WeakMap();
|
|
2666
|
+
let E3 = class {
|
|
2601
2667
|
constructor(o, t, e) {
|
|
2602
2668
|
if (this._$cssResult$ = !0, e !== i7) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
2603
2669
|
this.cssText = o, this.t = t;
|
|
@@ -2607,7 +2673,7 @@ let V3 = class {
|
|
|
2607
2673
|
const t = this.t;
|
|
2608
2674
|
if (V5 && o === void 0) {
|
|
2609
2675
|
const e = t !== void 0 && t.length === 1;
|
|
2610
|
-
e && (o =
|
|
2676
|
+
e && (o = f2.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && f2.set(t, o));
|
|
2611
2677
|
}
|
|
2612
2678
|
return o;
|
|
2613
2679
|
}
|
|
@@ -2615,23 +2681,23 @@ let V3 = class {
|
|
|
2615
2681
|
return this.cssText;
|
|
2616
2682
|
}
|
|
2617
2683
|
};
|
|
2618
|
-
const
|
|
2684
|
+
const A3 = (o) => new E3(typeof o == "string" ? o : o + "", void 0, i7), P3 = (o, t) => {
|
|
2619
2685
|
if (V5) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
2620
2686
|
else for (const e of t) {
|
|
2621
|
-
const s = document.createElement("style"), r =
|
|
2687
|
+
const s = document.createElement("style"), r = j1.litNonce;
|
|
2622
2688
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
2623
2689
|
}
|
|
2624
|
-
},
|
|
2690
|
+
}, g2 = V5 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
2625
2691
|
let e = "";
|
|
2626
2692
|
for (const s of t.cssRules) e += s.cssText;
|
|
2627
|
-
return
|
|
2693
|
+
return A3(e);
|
|
2628
2694
|
})(o) : o;
|
|
2629
2695
|
/**
|
|
2630
2696
|
* @license
|
|
2631
2697
|
* Copyright 2017 Google LLC
|
|
2632
2698
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2633
2699
|
*/
|
|
2634
|
-
const { is:
|
|
2700
|
+
const { is: U3, defineProperty: z3, getOwnPropertyDescriptor: O3, getOwnPropertyNames: B3, getOwnPropertySymbols: k3, getPrototypeOf: T3 } = Object, Y = globalThis, y2 = Y.trustedTypes, R3 = y2 ? y2.emptyScript : "", w2 = Y.reactiveElementPolyfillSupport, S1 = (o, t) => o, s5 = { toAttribute(o, t) {
|
|
2635
2701
|
switch (t) {
|
|
2636
2702
|
case Boolean:
|
|
2637
2703
|
o = o ? R3 : null;
|
|
@@ -2659,9 +2725,9 @@ const { is: P3, defineProperty: U3, getOwnPropertyDescriptor: z3, getOwnProperty
|
|
|
2659
2725
|
}
|
|
2660
2726
|
}
|
|
2661
2727
|
return e;
|
|
2662
|
-
} }, E5 = (o, t) => !
|
|
2663
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
2664
|
-
let
|
|
2728
|
+
} }, E5 = (o, t) => !U3(o, t), _2 = { attribute: !0, type: String, converter: s5, reflect: !1, hasChanged: E5 };
|
|
2729
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Y.litPropertyMetadata ?? (Y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
2730
|
+
let g1 = class extends HTMLElement {
|
|
2665
2731
|
static addInitializer(t) {
|
|
2666
2732
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
2667
2733
|
}
|
|
@@ -2671,11 +2737,11 @@ let f1 = class extends HTMLElement {
|
|
|
2671
2737
|
static createProperty(t, e = _2) {
|
|
2672
2738
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
2673
2739
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
2674
|
-
r !== void 0 &&
|
|
2740
|
+
r !== void 0 && z3(this.prototype, t, r);
|
|
2675
2741
|
}
|
|
2676
2742
|
}
|
|
2677
2743
|
static getPropertyDescriptor(t, e, s) {
|
|
2678
|
-
const { get: r, set: C } =
|
|
2744
|
+
const { get: r, set: C } = O3(this.prototype, t) ?? { get() {
|
|
2679
2745
|
return this[e];
|
|
2680
2746
|
}, set(i) {
|
|
2681
2747
|
this[e] = i;
|
|
@@ -2692,13 +2758,13 @@ let f1 = class extends HTMLElement {
|
|
|
2692
2758
|
}
|
|
2693
2759
|
static _$Ei() {
|
|
2694
2760
|
if (this.hasOwnProperty(S1("elementProperties"))) return;
|
|
2695
|
-
const t =
|
|
2761
|
+
const t = T3(this);
|
|
2696
2762
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
2697
2763
|
}
|
|
2698
2764
|
static finalize() {
|
|
2699
2765
|
if (this.hasOwnProperty(S1("finalized"))) return;
|
|
2700
2766
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(S1("properties"))) {
|
|
2701
|
-
const e = this.properties, s = [...
|
|
2767
|
+
const e = this.properties, s = [...B3(e), ...k3(e)];
|
|
2702
2768
|
for (const r of s) this.createProperty(r, e[r]);
|
|
2703
2769
|
}
|
|
2704
2770
|
const t = this[Symbol.metadata];
|
|
@@ -2717,8 +2783,8 @@ let f1 = class extends HTMLElement {
|
|
|
2717
2783
|
const e = [];
|
|
2718
2784
|
if (Array.isArray(t)) {
|
|
2719
2785
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
2720
|
-
for (const r of s) e.unshift(
|
|
2721
|
-
} else t !== void 0 && e.push(
|
|
2786
|
+
for (const r of s) e.unshift(g2(r));
|
|
2787
|
+
} else t !== void 0 && e.push(g2(t));
|
|
2722
2788
|
return e;
|
|
2723
2789
|
}
|
|
2724
2790
|
static _$Eu(t, e) {
|
|
@@ -2747,7 +2813,7 @@ let f1 = class extends HTMLElement {
|
|
|
2747
2813
|
}
|
|
2748
2814
|
createRenderRoot() {
|
|
2749
2815
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2750
|
-
return
|
|
2816
|
+
return P3(t, this.constructor.elementStyles), t;
|
|
2751
2817
|
}
|
|
2752
2818
|
connectedCallback() {
|
|
2753
2819
|
var t;
|
|
@@ -2859,13 +2925,13 @@ let f1 = class extends HTMLElement {
|
|
|
2859
2925
|
firstUpdated(t) {
|
|
2860
2926
|
}
|
|
2861
2927
|
};
|
|
2862
|
-
|
|
2928
|
+
g1.elementStyles = [], g1.shadowRootOptions = { mode: "open" }, g1[S1("elementProperties")] = /* @__PURE__ */ new Map(), g1[S1("finalized")] = /* @__PURE__ */ new Map(), w2 == null || w2({ ReactiveElement: g1 }), (Y.reactiveElementVersions ?? (Y.reactiveElementVersions = [])).push("2.0.4");
|
|
2863
2929
|
/**
|
|
2864
2930
|
* @license
|
|
2865
2931
|
* Copyright 2017 Google LLC
|
|
2866
2932
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2867
2933
|
*/
|
|
2868
|
-
const
|
|
2934
|
+
const D3 = { attribute: !0, type: String, converter: s5, reflect: !1, hasChanged: E5 }, N3 = (o = D3, t, e) => {
|
|
2869
2935
|
const { kind: s, metadata: r } = e;
|
|
2870
2936
|
let C = globalThis.litPropertyMetadata.get(r);
|
|
2871
2937
|
if (C === void 0 && globalThis.litPropertyMetadata.set(r, C = /* @__PURE__ */ new Map()), C.set(e.name, o), s === "accessor") {
|
|
@@ -2886,13 +2952,13 @@ const T3 = { attribute: !0, type: String, converter: s5, reflect: !1, hasChanged
|
|
|
2886
2952
|
}
|
|
2887
2953
|
throw Error("Unsupported decorator location: " + s);
|
|
2888
2954
|
};
|
|
2889
|
-
function
|
|
2955
|
+
function h5(o) {
|
|
2890
2956
|
return (t, e) => typeof e == "object" ? N3(o, t, e) : ((s, r, C) => {
|
|
2891
2957
|
const i = r.hasOwnProperty(C);
|
|
2892
2958
|
return r.constructor.createProperty(C, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, C) : void 0;
|
|
2893
2959
|
})(o, t, e);
|
|
2894
2960
|
}
|
|
2895
|
-
const
|
|
2961
|
+
const I3 = M`
|
|
2896
2962
|
:host {
|
|
2897
2963
|
/* Label Typography */
|
|
2898
2964
|
--_nys-label-font-family: var(
|
|
@@ -2910,19 +2976,19 @@ const j3 = M`
|
|
|
2910
2976
|
--_nys-label-font-size: var(--nys-font-size-ui-md, 16px);
|
|
2911
2977
|
--_nys-label-line-height: var(--nys-font-lineheight-ui-md, 24px);
|
|
2912
2978
|
--_nys-label-letter-spacing: var(--nys-font-letterspacing-ui-md, 0.044px);
|
|
2913
|
-
--_nys-label-font-color: var(--nys-color-
|
|
2979
|
+
--_nys-label-font-color: var(--nys-color-text, #1b1b1b);
|
|
2914
2980
|
|
|
2915
2981
|
/* Description */
|
|
2916
2982
|
--nys-description-font-weight: var(--nys-font-weight-regular, 400);
|
|
2917
2983
|
--nys-description-font-style: italic;
|
|
2918
|
-
--nys-description-font-color: var(--nys-
|
|
2984
|
+
--nys-description-font-color: var(--nys-color-text, #1b1b1b);
|
|
2919
2985
|
|
|
2920
2986
|
/* Required Flag */
|
|
2921
2987
|
--nys-required-font-color: var(--nys-color-danger, #b52c2c);
|
|
2922
2988
|
|
|
2923
2989
|
/* Optional Flag */
|
|
2924
2990
|
--nys-optional-font-weight: var(--nys-font-weight-regular, 400);
|
|
2925
|
-
--nys-optional-font-color: var(--nys-color-
|
|
2991
|
+
--nys-optional-font-color: var(--nys-color-text-weak, #4a4d4f);
|
|
2926
2992
|
|
|
2927
2993
|
/* Spacing */
|
|
2928
2994
|
--_nys-label-flag-gap: var(--nys-space-2px, 2px);
|
|
@@ -2964,10 +3030,10 @@ const j3 = M`
|
|
|
2964
3030
|
color: var(--nys-optional-font-color);
|
|
2965
3031
|
}
|
|
2966
3032
|
`;
|
|
2967
|
-
var
|
|
3033
|
+
var j3 = Object.defineProperty, d5 = (o, t, e, s) => {
|
|
2968
3034
|
for (var r = void 0, C = o.length - 1, i; C >= 0; C--)
|
|
2969
3035
|
(i = o[C]) && (r = i(t, e, r) || r);
|
|
2970
|
-
return r &&
|
|
3036
|
+
return r && j3(t, e, r), r;
|
|
2971
3037
|
};
|
|
2972
3038
|
const C7 = class extends Z {
|
|
2973
3039
|
constructor() {
|
|
@@ -2988,23 +3054,23 @@ const C7 = class extends Z {
|
|
|
2988
3054
|
`;
|
|
2989
3055
|
}
|
|
2990
3056
|
};
|
|
2991
|
-
C7.styles =
|
|
2992
|
-
let
|
|
3057
|
+
C7.styles = I3;
|
|
3058
|
+
let T1 = C7;
|
|
2993
3059
|
d5([
|
|
2994
|
-
|
|
2995
|
-
],
|
|
3060
|
+
h5({ type: String })
|
|
3061
|
+
], T1.prototype, "id");
|
|
2996
3062
|
d5([
|
|
2997
|
-
|
|
2998
|
-
],
|
|
3063
|
+
h5({ type: String })
|
|
3064
|
+
], T1.prototype, "label");
|
|
2999
3065
|
d5([
|
|
3000
|
-
|
|
3001
|
-
],
|
|
3066
|
+
h5({ type: String })
|
|
3067
|
+
], T1.prototype, "description");
|
|
3002
3068
|
d5([
|
|
3003
|
-
|
|
3004
|
-
],
|
|
3005
|
-
customElements.get("nys-label") || customElements.define("nys-label",
|
|
3069
|
+
h5({ type: String })
|
|
3070
|
+
], T1.prototype, "flag");
|
|
3071
|
+
customElements.get("nys-label") || customElements.define("nys-label", T1);
|
|
3006
3072
|
/*!
|
|
3007
|
-
* Error Message v1.1.
|
|
3073
|
+
* Error Message v1.1.1
|
|
3008
3074
|
* Part of the New York State Design System
|
|
3009
3075
|
* A design system for New York State's digital products.
|
|
3010
3076
|
* Repository: https://github.com/its-hcd/nysds
|
|
@@ -3016,7 +3082,7 @@ customElements.get("nys-label") || customElements.define("nys-label", R1);
|
|
|
3016
3082
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3017
3083
|
*/
|
|
3018
3084
|
const q1 = globalThis, A5 = q1.ShadowRoot && (q1.ShadyCSS === void 0 || q1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, n7 = Symbol(), m2 = /* @__PURE__ */ new WeakMap();
|
|
3019
|
-
let
|
|
3085
|
+
let q3 = class {
|
|
3020
3086
|
constructor(o, t, e) {
|
|
3021
3087
|
if (this._$cssResult$ = !0, e !== n7) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
3022
3088
|
this.cssText = o, this.t = t;
|
|
@@ -3034,7 +3100,7 @@ let I3 = class {
|
|
|
3034
3100
|
return this.cssText;
|
|
3035
3101
|
}
|
|
3036
3102
|
};
|
|
3037
|
-
const
|
|
3103
|
+
const F3 = (o) => new q3(typeof o == "string" ? o : o + "", void 0, n7), W3 = (o, t) => {
|
|
3038
3104
|
if (A5) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
3039
3105
|
else for (const e of t) {
|
|
3040
3106
|
const s = document.createElement("style"), r = q1.litNonce;
|
|
@@ -3043,17 +3109,17 @@ const q3 = (o) => new I3(typeof o == "string" ? o : o + "", void 0, n7), F3 = (o
|
|
|
3043
3109
|
}, b2 = A5 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
3044
3110
|
let e = "";
|
|
3045
3111
|
for (const s of t.cssRules) e += s.cssText;
|
|
3046
|
-
return
|
|
3112
|
+
return F3(e);
|
|
3047
3113
|
})(o) : o;
|
|
3048
3114
|
/**
|
|
3049
3115
|
* @license
|
|
3050
3116
|
* Copyright 2017 Google LLC
|
|
3051
3117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3052
3118
|
*/
|
|
3053
|
-
const { is:
|
|
3119
|
+
const { is: G3, defineProperty: K3, getOwnPropertyDescriptor: Y3, getOwnPropertyNames: J3, getOwnPropertySymbols: X3, getPrototypeOf: Q3 } = Object, J = globalThis, L2 = J.trustedTypes, t0 = L2 ? L2.emptyScript : "", x2 = J.reactiveElementPolyfillSupport, V1 = (o, t) => o, o5 = { toAttribute(o, t) {
|
|
3054
3120
|
switch (t) {
|
|
3055
3121
|
case Boolean:
|
|
3056
|
-
o = o ?
|
|
3122
|
+
o = o ? t0 : null;
|
|
3057
3123
|
break;
|
|
3058
3124
|
case Object:
|
|
3059
3125
|
case Array:
|
|
@@ -3078,8 +3144,8 @@ const { is: W3, defineProperty: K3, getOwnPropertyDescriptor: Y3, getOwnProperty
|
|
|
3078
3144
|
}
|
|
3079
3145
|
}
|
|
3080
3146
|
return e;
|
|
3081
|
-
} }, P5 = (o, t) => !
|
|
3082
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
3147
|
+
} }, P5 = (o, t) => !G3(o, t), $2 = { attribute: !0, type: String, converter: o5, reflect: !1, hasChanged: P5 };
|
|
3148
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), J.litPropertyMetadata ?? (J.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
3083
3149
|
let y1 = class extends HTMLElement {
|
|
3084
3150
|
static addInitializer(t) {
|
|
3085
3151
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -3087,7 +3153,7 @@ let y1 = class extends HTMLElement {
|
|
|
3087
3153
|
static get observedAttributes() {
|
|
3088
3154
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
3089
3155
|
}
|
|
3090
|
-
static createProperty(t, e =
|
|
3156
|
+
static createProperty(t, e = $2) {
|
|
3091
3157
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
3092
3158
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
3093
3159
|
r !== void 0 && K3(this.prototype, t, r);
|
|
@@ -3107,17 +3173,17 @@ let y1 = class extends HTMLElement {
|
|
|
3107
3173
|
}, configurable: !0, enumerable: !0 };
|
|
3108
3174
|
}
|
|
3109
3175
|
static getPropertyOptions(t) {
|
|
3110
|
-
return this.elementProperties.get(t) ??
|
|
3176
|
+
return this.elementProperties.get(t) ?? $2;
|
|
3111
3177
|
}
|
|
3112
3178
|
static _$Ei() {
|
|
3113
3179
|
if (this.hasOwnProperty(V1("elementProperties"))) return;
|
|
3114
|
-
const t =
|
|
3180
|
+
const t = Q3(this);
|
|
3115
3181
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
3116
3182
|
}
|
|
3117
3183
|
static finalize() {
|
|
3118
3184
|
if (this.hasOwnProperty(V1("finalized"))) return;
|
|
3119
3185
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(V1("properties"))) {
|
|
3120
|
-
const e = this.properties, s = [...J3(e), ...
|
|
3186
|
+
const e = this.properties, s = [...J3(e), ...X3(e)];
|
|
3121
3187
|
for (const r of s) this.createProperty(r, e[r]);
|
|
3122
3188
|
}
|
|
3123
3189
|
const t = this[Symbol.metadata];
|
|
@@ -3166,7 +3232,7 @@ let y1 = class extends HTMLElement {
|
|
|
3166
3232
|
}
|
|
3167
3233
|
createRenderRoot() {
|
|
3168
3234
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
3169
|
-
return
|
|
3235
|
+
return W3(t, this.constructor.elementStyles), t;
|
|
3170
3236
|
}
|
|
3171
3237
|
connectedCallback() {
|
|
3172
3238
|
var t;
|
|
@@ -3278,13 +3344,13 @@ let y1 = class extends HTMLElement {
|
|
|
3278
3344
|
firstUpdated(t) {
|
|
3279
3345
|
}
|
|
3280
3346
|
};
|
|
3281
|
-
y1.elementStyles = [], y1.shadowRootOptions = { mode: "open" }, y1[V1("elementProperties")] = /* @__PURE__ */ new Map(), y1[V1("finalized")] = /* @__PURE__ */ new Map(),
|
|
3347
|
+
y1.elementStyles = [], y1.shadowRootOptions = { mode: "open" }, y1[V1("elementProperties")] = /* @__PURE__ */ new Map(), y1[V1("finalized")] = /* @__PURE__ */ new Map(), x2 == null || x2({ ReactiveElement: y1 }), (J.reactiveElementVersions ?? (J.reactiveElementVersions = [])).push("2.0.4");
|
|
3282
3348
|
/**
|
|
3283
3349
|
* @license
|
|
3284
3350
|
* Copyright 2017 Google LLC
|
|
3285
3351
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3286
3352
|
*/
|
|
3287
|
-
const
|
|
3353
|
+
const e0 = { attribute: !0, type: String, converter: o5, reflect: !1, hasChanged: P5 }, s0 = (o = e0, t, e) => {
|
|
3288
3354
|
const { kind: s, metadata: r } = e;
|
|
3289
3355
|
let C = globalThis.litPropertyMetadata.get(r);
|
|
3290
3356
|
if (C === void 0 && globalThis.litPropertyMetadata.set(r, C = /* @__PURE__ */ new Map()), C.set(e.name, o), s === "accessor") {
|
|
@@ -3306,12 +3372,12 @@ const t0 = { attribute: !0, type: String, converter: o5, reflect: !1, hasChanged
|
|
|
3306
3372
|
throw Error("Unsupported decorator location: " + s);
|
|
3307
3373
|
};
|
|
3308
3374
|
function U5(o) {
|
|
3309
|
-
return (t, e) => typeof e == "object" ?
|
|
3375
|
+
return (t, e) => typeof e == "object" ? s0(o, t, e) : ((s, r, C) => {
|
|
3310
3376
|
const i = r.hasOwnProperty(C);
|
|
3311
3377
|
return r.constructor.createProperty(C, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, C) : void 0;
|
|
3312
3378
|
})(o, t, e);
|
|
3313
3379
|
}
|
|
3314
|
-
const
|
|
3380
|
+
const o0 = M`
|
|
3315
3381
|
:host {
|
|
3316
3382
|
--_nys-errormessage-font-family: var(
|
|
3317
3383
|
--nys-font-family-ui,
|
|
@@ -3366,7 +3432,7 @@ const s0 = M`
|
|
|
3366
3432
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
3367
3433
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
3368
3434
|
*
|
|
3369
|
-
* Icon Component v1.1.
|
|
3435
|
+
* Icon Component v1.1.1
|
|
3370
3436
|
* Part of the New York State Design System
|
|
3371
3437
|
* Repository: https://github.com/its-hcd/nysds
|
|
3372
3438
|
* License: MIT
|
|
@@ -3377,7 +3443,7 @@ const s0 = M`
|
|
|
3377
3443
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3378
3444
|
*/
|
|
3379
3445
|
const F1 = globalThis, z5 = F1.ShadowRoot && (F1.ShadyCSS === void 0 || F1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, l7 = Symbol(), M2 = /* @__PURE__ */ new WeakMap();
|
|
3380
|
-
let
|
|
3446
|
+
let r0 = class {
|
|
3381
3447
|
constructor(o, t, e) {
|
|
3382
3448
|
if (this._$cssResult$ = !0, e !== l7) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
3383
3449
|
this.cssText = o, this.t = t;
|
|
@@ -3395,7 +3461,7 @@ let o0 = class {
|
|
|
3395
3461
|
return this.cssText;
|
|
3396
3462
|
}
|
|
3397
3463
|
};
|
|
3398
|
-
const
|
|
3464
|
+
const i0 = (o) => new r0(typeof o == "string" ? o : o + "", void 0, l7), C0 = (o, t) => {
|
|
3399
3465
|
if (z5) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
3400
3466
|
else for (const e of t) {
|
|
3401
3467
|
const s = document.createElement("style"), r = F1.litNonce;
|
|
@@ -3404,17 +3470,17 @@ const r0 = (o) => new o0(typeof o == "string" ? o : o + "", void 0, l7), i0 = (o
|
|
|
3404
3470
|
}, Z2 = z5 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
3405
3471
|
let e = "";
|
|
3406
3472
|
for (const s of t.cssRules) e += s.cssText;
|
|
3407
|
-
return
|
|
3473
|
+
return i0(e);
|
|
3408
3474
|
})(o) : o;
|
|
3409
3475
|
/**
|
|
3410
3476
|
* @license
|
|
3411
3477
|
* Copyright 2017 Google LLC
|
|
3412
3478
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3413
3479
|
*/
|
|
3414
|
-
const { is:
|
|
3480
|
+
const { is: n0, defineProperty: l0, getOwnPropertyDescriptor: a0, getOwnPropertyNames: c0, getOwnPropertySymbols: h0, getPrototypeOf: d0 } = Object, X = globalThis, H2 = X.trustedTypes, p0 = H2 ? H2.emptyScript : "", S2 = X.reactiveElementPolyfillSupport, E1 = (o, t) => o, r5 = { toAttribute(o, t) {
|
|
3415
3481
|
switch (t) {
|
|
3416
3482
|
case Boolean:
|
|
3417
|
-
o = o ?
|
|
3483
|
+
o = o ? p0 : null;
|
|
3418
3484
|
break;
|
|
3419
3485
|
case Object:
|
|
3420
3486
|
case Array:
|
|
@@ -3439,7 +3505,7 @@ const { is: C0, defineProperty: n0, getOwnPropertyDescriptor: l0, getOwnProperty
|
|
|
3439
3505
|
}
|
|
3440
3506
|
}
|
|
3441
3507
|
return e;
|
|
3442
|
-
} }, O5 = (o, t) => !
|
|
3508
|
+
} }, O5 = (o, t) => !n0(o, t), V2 = { attribute: !0, type: String, converter: r5, reflect: !1, hasChanged: O5 };
|
|
3443
3509
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), X.litPropertyMetadata ?? (X.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
3444
3510
|
let w1 = class extends HTMLElement {
|
|
3445
3511
|
static addInitializer(t) {
|
|
@@ -3451,11 +3517,11 @@ let w1 = class extends HTMLElement {
|
|
|
3451
3517
|
static createProperty(t, e = V2) {
|
|
3452
3518
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
3453
3519
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
3454
|
-
r !== void 0 &&
|
|
3520
|
+
r !== void 0 && l0(this.prototype, t, r);
|
|
3455
3521
|
}
|
|
3456
3522
|
}
|
|
3457
3523
|
static getPropertyDescriptor(t, e, s) {
|
|
3458
|
-
const { get: r, set: C } =
|
|
3524
|
+
const { get: r, set: C } = a0(this.prototype, t) ?? { get() {
|
|
3459
3525
|
return this[e];
|
|
3460
3526
|
}, set(i) {
|
|
3461
3527
|
this[e] = i;
|
|
@@ -3472,13 +3538,13 @@ let w1 = class extends HTMLElement {
|
|
|
3472
3538
|
}
|
|
3473
3539
|
static _$Ei() {
|
|
3474
3540
|
if (this.hasOwnProperty(E1("elementProperties"))) return;
|
|
3475
|
-
const t =
|
|
3541
|
+
const t = d0(this);
|
|
3476
3542
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
3477
3543
|
}
|
|
3478
3544
|
static finalize() {
|
|
3479
3545
|
if (this.hasOwnProperty(E1("finalized"))) return;
|
|
3480
3546
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(E1("properties"))) {
|
|
3481
|
-
const e = this.properties, s = [...
|
|
3547
|
+
const e = this.properties, s = [...c0(e), ...h0(e)];
|
|
3482
3548
|
for (const r of s) this.createProperty(r, e[r]);
|
|
3483
3549
|
}
|
|
3484
3550
|
const t = this[Symbol.metadata];
|
|
@@ -3527,7 +3593,7 @@ let w1 = class extends HTMLElement {
|
|
|
3527
3593
|
}
|
|
3528
3594
|
createRenderRoot() {
|
|
3529
3595
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
3530
|
-
return
|
|
3596
|
+
return C0(t, this.constructor.elementStyles), t;
|
|
3531
3597
|
}
|
|
3532
3598
|
connectedCallback() {
|
|
3533
3599
|
var t;
|
|
@@ -3645,7 +3711,7 @@ w1.elementStyles = [], w1.shadowRootOptions = { mode: "open" }, w1[E1("elementPr
|
|
|
3645
3711
|
* Copyright 2017 Google LLC
|
|
3646
3712
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3647
3713
|
*/
|
|
3648
|
-
const
|
|
3714
|
+
const u0 = { attribute: !0, type: String, converter: r5, reflect: !1, hasChanged: O5 }, v0 = (o = u0, t, e) => {
|
|
3649
3715
|
const { kind: s, metadata: r } = e;
|
|
3650
3716
|
let C = globalThis.litPropertyMetadata.get(r);
|
|
3651
3717
|
if (C === void 0 && globalThis.litPropertyMetadata.set(r, C = /* @__PURE__ */ new Map()), C.set(e.name, o), s === "accessor") {
|
|
@@ -3667,12 +3733,12 @@ const p0 = { attribute: !0, type: String, converter: r5, reflect: !1, hasChanged
|
|
|
3667
3733
|
throw Error("Unsupported decorator location: " + s);
|
|
3668
3734
|
};
|
|
3669
3735
|
function C1(o) {
|
|
3670
|
-
return (t, e) => typeof e == "object" ?
|
|
3736
|
+
return (t, e) => typeof e == "object" ? v0(o, t, e) : ((s, r, C) => {
|
|
3671
3737
|
const i = r.hasOwnProperty(C);
|
|
3672
3738
|
return r.constructor.createProperty(C, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, C) : void 0;
|
|
3673
3739
|
})(o, t, e);
|
|
3674
3740
|
}
|
|
3675
|
-
const
|
|
3741
|
+
const f0 = {
|
|
3676
3742
|
// --------- UX Team Main Library (below) --------- //
|
|
3677
3743
|
// *** CORE *** //
|
|
3678
3744
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
@@ -3968,12 +4034,12 @@ const v0 = {
|
|
|
3968
4034
|
transform: scale(-1, -1);
|
|
3969
4035
|
}
|
|
3970
4036
|
`;
|
|
3971
|
-
var
|
|
3972
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4037
|
+
var y0 = Object.defineProperty, w0 = Object.getOwnPropertyDescriptor, n1 = (o, t, e, s) => {
|
|
4038
|
+
for (var r = s > 1 ? void 0 : s ? w0(t, e) : t, C = o.length - 1, i; C >= 0; C--)
|
|
3973
4039
|
(i = o[C]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
3974
|
-
return s && r &&
|
|
4040
|
+
return s && r && y0(t, e, r), r;
|
|
3975
4041
|
}, _1;
|
|
3976
|
-
const
|
|
4042
|
+
const I = (_1 = class extends Z {
|
|
3977
4043
|
constructor() {
|
|
3978
4044
|
super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
3979
4045
|
}
|
|
@@ -3986,7 +4052,7 @@ const D = (_1 = class extends Z {
|
|
|
3986
4052
|
) ? o : "sm";
|
|
3987
4053
|
}
|
|
3988
4054
|
getIcon() {
|
|
3989
|
-
const o =
|
|
4055
|
+
const o = f0[this.name], t = !!this.label;
|
|
3990
4056
|
if (!o) return null;
|
|
3991
4057
|
const e = new DOMParser().parseFromString(o, "image/svg+xml").documentElement;
|
|
3992
4058
|
return e instanceof SVGElement ? (e.setAttribute("role", "img"), e.setAttribute("aria-label", t ? this.label : ""), e.setAttribute("aria-hidden", t ? "false" : "true"), e.style.rotate = `${this.rotate}deg`, e.style.color = this.color || "currentcolor", e.classList.add(`nys-icon--${this.size}`), e.classList.add("nys-icon--svg"), this.flip && e.classList.add(`nys-icon--flip-${this.flip}`), e) : null;
|
|
@@ -4013,29 +4079,29 @@ const D = (_1 = class extends Z {
|
|
|
4013
4079
|
"64"
|
|
4014
4080
|
], _1);
|
|
4015
4081
|
n1([
|
|
4016
|
-
C1({ type: String })
|
|
4017
|
-
],
|
|
4082
|
+
C1({ type: String, reflect: !0 })
|
|
4083
|
+
], I.prototype, "name", 2);
|
|
4018
4084
|
n1([
|
|
4019
4085
|
C1({ type: String })
|
|
4020
|
-
],
|
|
4086
|
+
], I.prototype, "label", 2);
|
|
4021
4087
|
n1([
|
|
4022
4088
|
C1({ type: String })
|
|
4023
|
-
],
|
|
4089
|
+
], I.prototype, "rotate", 2);
|
|
4024
4090
|
n1([
|
|
4025
4091
|
C1({ type: String })
|
|
4026
|
-
],
|
|
4092
|
+
], I.prototype, "flip", 2);
|
|
4027
4093
|
n1([
|
|
4028
4094
|
C1({ type: String })
|
|
4029
|
-
],
|
|
4095
|
+
], I.prototype, "color", 2);
|
|
4030
4096
|
n1([
|
|
4031
4097
|
C1({ reflect: !0 })
|
|
4032
|
-
],
|
|
4033
|
-
let
|
|
4034
|
-
customElements.get("nys-icon") || customElements.define("nys-icon",
|
|
4035
|
-
var
|
|
4098
|
+
], I.prototype, "size", 1);
|
|
4099
|
+
let _0 = I;
|
|
4100
|
+
customElements.get("nys-icon") || customElements.define("nys-icon", _0);
|
|
4101
|
+
var m0 = Object.defineProperty, B5 = (o, t, e, s) => {
|
|
4036
4102
|
for (var r = void 0, C = o.length - 1, i; C >= 0; C--)
|
|
4037
4103
|
(i = o[C]) && (r = i(t, e, r) || r);
|
|
4038
|
-
return r &&
|
|
4104
|
+
return r && m0(t, e, r), r;
|
|
4039
4105
|
};
|
|
4040
4106
|
const _5 = class extends Z {
|
|
4041
4107
|
// allows use of elementInternals' API
|
|
@@ -4049,7 +4115,7 @@ const _5 = class extends Z {
|
|
|
4049
4115
|
</div>` : ""}`;
|
|
4050
4116
|
}
|
|
4051
4117
|
};
|
|
4052
|
-
_5.styles =
|
|
4118
|
+
_5.styles = o0, _5.formAssociated = !0;
|
|
4053
4119
|
let p5 = _5;
|
|
4054
4120
|
B5([
|
|
4055
4121
|
U5({ type: Boolean })
|
|
@@ -4061,17 +4127,17 @@ B5([
|
|
|
4061
4127
|
U5({ type: Boolean, reflect: !0 })
|
|
4062
4128
|
], p5.prototype, "showDivider");
|
|
4063
4129
|
customElements.get("nys-errormessage") || customElements.define("nys-errormessage", p5);
|
|
4064
|
-
var
|
|
4065
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4130
|
+
var b0 = Object.defineProperty, L0 = Object.getOwnPropertyDescriptor, v = (o, t, e, s) => {
|
|
4131
|
+
for (var r = s > 1 ? void 0 : s ? L0(t, e) : t, C = o.length - 1, i; C >= 0; C--)
|
|
4066
4132
|
(i = o[C]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
4067
|
-
return s && r &&
|
|
4133
|
+
return s && r && b0(t, e, r), r;
|
|
4068
4134
|
};
|
|
4069
|
-
let
|
|
4135
|
+
let x0 = 0;
|
|
4070
4136
|
var H;
|
|
4071
4137
|
const p = (H = class extends Z {
|
|
4072
4138
|
// allows use of elementInternals' API
|
|
4073
4139
|
constructor() {
|
|
4074
|
-
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.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
4140
|
+
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._internals = this.attachInternals();
|
|
4075
4141
|
}
|
|
4076
4142
|
get type() {
|
|
4077
4143
|
return this._type;
|
|
@@ -4087,7 +4153,7 @@ const p = (H = class extends Z {
|
|
|
4087
4153
|
}
|
|
4088
4154
|
// Generate a unique ID if one is not provided
|
|
4089
4155
|
connectedCallback() {
|
|
4090
|
-
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${
|
|
4156
|
+
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${x0++}`), this._originalErrorMessage = this.errorMessage, this.addEventListener("invalid", this._handleInvalid);
|
|
4091
4157
|
}
|
|
4092
4158
|
disconnectedCallback() {
|
|
4093
4159
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4108,16 +4174,15 @@ const p = (H = class extends Z {
|
|
|
4108
4174
|
const t = (o = this.shadowRoot) == null ? void 0 : o.querySelector("input");
|
|
4109
4175
|
if (!t) return;
|
|
4110
4176
|
const e = this.errorMessage || "This field is required";
|
|
4111
|
-
this.required && (!this.value || this.value.trim() === "") ? (this._internals.ariaRequired = "true", this._internals.setValidity({ valueMissing: !0 }, e, t)
|
|
4177
|
+
this.required && (!this.value || this.value.trim() === "") ? (this._internals.ariaRequired = "true", this._internals.setValidity({ valueMissing: !0 }, e, t)) : (this._internals.ariaRequired = "false", this._internals.setValidity({}), this._hasUserInteracted = !1);
|
|
4112
4178
|
}
|
|
4113
4179
|
_setValidityMessage(o = "") {
|
|
4114
4180
|
var t;
|
|
4115
4181
|
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
));
|
|
4182
|
+
if (!e) return;
|
|
4183
|
+
this.showError = !!o, this._originalErrorMessage.trim() && o !== "" ? this.errorMessage = this._originalErrorMessage : this.errorMessage = o;
|
|
4184
|
+
const s = o ? { customError: !0 } : {};
|
|
4185
|
+
this._internals.setValidity(s, this.errorMessage, e);
|
|
4121
4186
|
}
|
|
4122
4187
|
_validate() {
|
|
4123
4188
|
var o;
|
|
@@ -4128,8 +4193,25 @@ const p = (H = class extends Z {
|
|
|
4128
4193
|
e.valueMissing ? s = "This field is required" : e.typeMismatch ? s = "Invalid format for this type" : e.patternMismatch ? s = "Invalid format" : e.tooShort ? s = `Value is too short. Minimum length is ${t.minLength}` : e.tooLong ? s = `Value is too long. Maximum length is ${t.maxLength}` : e.rangeUnderflow ? s = `Value must be at least ${t.min}` : e.rangeOverflow ? s = `Value must be at most ${t.max}` : e.stepMismatch ? s = "Invalid step value" : s = t.validationMessage, this._setValidityMessage(s);
|
|
4129
4194
|
}
|
|
4130
4195
|
/********************** Functions **********************/
|
|
4131
|
-
|
|
4132
|
-
|
|
4196
|
+
// This helper function is called to perform the element's native validation.
|
|
4197
|
+
checkValidity() {
|
|
4198
|
+
var o;
|
|
4199
|
+
const t = (o = this.shadowRoot) == null ? void 0 : o.querySelector("input");
|
|
4200
|
+
return t ? t.checkValidity() : !0;
|
|
4201
|
+
}
|
|
4202
|
+
_handleInvalid(o) {
|
|
4203
|
+
var t;
|
|
4204
|
+
o.preventDefault(), this._hasUserInteracted = !0, this._validate();
|
|
4205
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
|
|
4206
|
+
if (e) {
|
|
4207
|
+
const s = this._internals.form;
|
|
4208
|
+
s ? Array.from(s.elements).find(
|
|
4209
|
+
(r) => typeof r.checkValidity == "function" && !r.checkValidity()
|
|
4210
|
+
) === this && e.focus() : e.focus();
|
|
4211
|
+
}
|
|
4212
|
+
}
|
|
4213
|
+
_togglePasswordVisibility() {
|
|
4214
|
+
this.showPassword = !this.showPassword;
|
|
4133
4215
|
}
|
|
4134
4216
|
/******************** Event Handlers ********************/
|
|
4135
4217
|
// Handle input event to check pattern validity
|
|
@@ -4161,40 +4243,48 @@ const p = (H = class extends Z {
|
|
|
4161
4243
|
<nys-label
|
|
4162
4244
|
label=${this.label}
|
|
4163
4245
|
description=${this.description}
|
|
4164
|
-
flag=${this.required ? "required" : ""}
|
|
4246
|
+
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
4165
4247
|
>
|
|
4166
4248
|
<slot name="description" slot="description">${this.description}</slot>
|
|
4167
4249
|
</nys-label>
|
|
4168
|
-
<input
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4250
|
+
<div class="nys-input-container ${this.disabled ? "disabled" : ""}">
|
|
4251
|
+
<input
|
|
4252
|
+
class="nys-textinput__input"
|
|
4253
|
+
type=${this.type === "password" ? this.showPassword ? "text" : "password" : this.type}
|
|
4254
|
+
name=${this.name}
|
|
4255
|
+
id=${this.id}
|
|
4256
|
+
?disabled=${this.disabled}
|
|
4257
|
+
?required=${this.required}
|
|
4258
|
+
?readonly=${this.readonly}
|
|
4259
|
+
aria-disabled="${this.disabled}"
|
|
4260
|
+
aria-label="${this.label} ${this.description}"
|
|
4261
|
+
.value=${this.value}
|
|
4262
|
+
placeholder=${U(
|
|
4180
4263
|
this.placeholder ? this.placeholder : void 0
|
|
4181
4264
|
)}
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4265
|
+
pattern=${U(this.pattern ? this.pattern : void 0)}
|
|
4266
|
+
min=${U(this.min !== "" ? this.min : void 0)}
|
|
4267
|
+
maxlength=${U(
|
|
4185
4268
|
this.maxlength !== "" ? this.maxlength : void 0
|
|
4186
4269
|
)}
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4270
|
+
step=${U(this.step !== "" ? this.step : void 0)}
|
|
4271
|
+
max=${U(this.max !== "" ? this.max : void 0)}
|
|
4272
|
+
form=${U(this.form ? this.form : void 0)}
|
|
4273
|
+
@input=${this._handleInput}
|
|
4274
|
+
@focus="${this._handleFocus}"
|
|
4275
|
+
@blur="${this._handleBlur}"
|
|
4276
|
+
@change="${this._handleChange}"
|
|
4277
|
+
/>
|
|
4278
|
+
${this.type === "password" ? d`<nys-icon
|
|
4279
|
+
class="eye-icon"
|
|
4280
|
+
@click=${() => !this.disabled && this._togglePasswordVisibility()}
|
|
4281
|
+
name=${this.showPassword ? "visibility_off" : "visibility"}
|
|
4282
|
+
size="3xl"
|
|
4283
|
+
></nys-icon>` : ""}
|
|
4284
|
+
</div>
|
|
4195
4285
|
<nys-errormessage
|
|
4196
4286
|
?showError=${this.showError}
|
|
4197
|
-
errorMessage=${this.
|
|
4287
|
+
errorMessage=${this.errorMessage}
|
|
4198
4288
|
></nys-errormessage>
|
|
4199
4289
|
</div>
|
|
4200
4290
|
`;
|
|
@@ -4207,64 +4297,70 @@ const p = (H = class extends Z {
|
|
|
4207
4297
|
"tel",
|
|
4208
4298
|
"text",
|
|
4209
4299
|
"url"
|
|
4210
|
-
], H.VALID_WIDTHS = ["sm", "md", "lg", "full"], H.styles =
|
|
4211
|
-
|
|
4212
|
-
|
|
4300
|
+
], H.VALID_WIDTHS = ["sm", "md", "lg", "full"], H.styles = i3, H.formAssociated = !0, H);
|
|
4301
|
+
v([
|
|
4302
|
+
u({ type: String })
|
|
4213
4303
|
], p.prototype, "id", 2);
|
|
4214
|
-
|
|
4215
|
-
|
|
4304
|
+
v([
|
|
4305
|
+
u({ type: String, reflect: !0 })
|
|
4216
4306
|
], p.prototype, "name", 2);
|
|
4217
|
-
|
|
4218
|
-
|
|
4307
|
+
v([
|
|
4308
|
+
u({ reflect: !0 })
|
|
4219
4309
|
], p.prototype, "type", 1);
|
|
4220
|
-
|
|
4221
|
-
|
|
4310
|
+
v([
|
|
4311
|
+
u({ type: String })
|
|
4222
4312
|
], p.prototype, "label", 2);
|
|
4223
|
-
|
|
4224
|
-
|
|
4313
|
+
v([
|
|
4314
|
+
u({ type: String })
|
|
4225
4315
|
], p.prototype, "description", 2);
|
|
4226
|
-
|
|
4227
|
-
|
|
4316
|
+
v([
|
|
4317
|
+
u({ type: String })
|
|
4228
4318
|
], p.prototype, "placeholder", 2);
|
|
4229
|
-
|
|
4230
|
-
|
|
4319
|
+
v([
|
|
4320
|
+
u({ type: String })
|
|
4231
4321
|
], p.prototype, "value", 2);
|
|
4232
|
-
|
|
4233
|
-
|
|
4322
|
+
v([
|
|
4323
|
+
u({ type: Boolean, reflect: !0 })
|
|
4234
4324
|
], p.prototype, "disabled", 2);
|
|
4235
|
-
|
|
4236
|
-
|
|
4325
|
+
v([
|
|
4326
|
+
u({ type: Boolean, reflect: !0 })
|
|
4237
4327
|
], p.prototype, "readonly", 2);
|
|
4238
|
-
|
|
4239
|
-
|
|
4328
|
+
v([
|
|
4329
|
+
u({ type: Boolean, reflect: !0 })
|
|
4240
4330
|
], p.prototype, "required", 2);
|
|
4241
|
-
|
|
4242
|
-
|
|
4331
|
+
v([
|
|
4332
|
+
u({ type: Boolean, reflect: !0 })
|
|
4333
|
+
], p.prototype, "optional", 2);
|
|
4334
|
+
v([
|
|
4335
|
+
u({ type: String })
|
|
4243
4336
|
], p.prototype, "form", 2);
|
|
4244
|
-
|
|
4245
|
-
|
|
4337
|
+
v([
|
|
4338
|
+
u({ type: String })
|
|
4246
4339
|
], p.prototype, "pattern", 2);
|
|
4247
|
-
|
|
4248
|
-
|
|
4340
|
+
v([
|
|
4341
|
+
u({ type: Number })
|
|
4249
4342
|
], p.prototype, "maxlength", 2);
|
|
4250
|
-
|
|
4251
|
-
|
|
4343
|
+
v([
|
|
4344
|
+
u({ reflect: !0 })
|
|
4252
4345
|
], p.prototype, "width", 2);
|
|
4253
|
-
|
|
4254
|
-
|
|
4346
|
+
v([
|
|
4347
|
+
u({ type: Number })
|
|
4255
4348
|
], p.prototype, "step", 2);
|
|
4256
|
-
|
|
4257
|
-
|
|
4349
|
+
v([
|
|
4350
|
+
u({ type: Number })
|
|
4258
4351
|
], p.prototype, "min", 2);
|
|
4259
|
-
|
|
4260
|
-
|
|
4352
|
+
v([
|
|
4353
|
+
u({ type: Number })
|
|
4261
4354
|
], p.prototype, "max", 2);
|
|
4262
|
-
|
|
4263
|
-
|
|
4355
|
+
v([
|
|
4356
|
+
u({ type: Boolean, reflect: !0 })
|
|
4264
4357
|
], p.prototype, "showError", 2);
|
|
4265
|
-
|
|
4266
|
-
|
|
4358
|
+
v([
|
|
4359
|
+
u({ type: String })
|
|
4267
4360
|
], p.prototype, "errorMessage", 2);
|
|
4361
|
+
v([
|
|
4362
|
+
r3()
|
|
4363
|
+
], p.prototype, "showPassword", 2);
|
|
4268
4364
|
let $0 = p;
|
|
4269
4365
|
customElements.get("nys-textinput") || customElements.define("nys-textinput", $0);
|
|
4270
4366
|
/*!
|
|
@@ -4273,7 +4369,7 @@ customElements.get("nys-textinput") || customElements.define("nys-textinput", $0
|
|
|
4273
4369
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
4274
4370
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
4275
4371
|
*
|
|
4276
|
-
* Button Component v1.1.
|
|
4372
|
+
* Button Component v1.1.1
|
|
4277
4373
|
* Part of the New York State Design System
|
|
4278
4374
|
* Repository: https://github.com/its-hcd/nysds
|
|
4279
4375
|
* License: MIT
|
|
@@ -4284,7 +4380,7 @@ customElements.get("nys-textinput") || customElements.define("nys-textinput", $0
|
|
|
4284
4380
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4285
4381
|
*/
|
|
4286
4382
|
const W1 = globalThis, k5 = W1.ShadowRoot && (W1.ShadyCSS === void 0 || W1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, a7 = Symbol(), E2 = /* @__PURE__ */ new WeakMap();
|
|
4287
|
-
let
|
|
4383
|
+
let M0 = class {
|
|
4288
4384
|
constructor(o, t, e) {
|
|
4289
4385
|
if (this._$cssResult$ = !0, e !== a7) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
4290
4386
|
this.cssText = o, this.t = t;
|
|
@@ -4302,7 +4398,7 @@ let x0 = class {
|
|
|
4302
4398
|
return this.cssText;
|
|
4303
4399
|
}
|
|
4304
4400
|
};
|
|
4305
|
-
const
|
|
4401
|
+
const Z0 = (o) => new M0(typeof o == "string" ? o : o + "", void 0, a7), H0 = (o, t) => {
|
|
4306
4402
|
if (k5) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
4307
4403
|
else for (const e of t) {
|
|
4308
4404
|
const s = document.createElement("style"), r = W1.litNonce;
|
|
@@ -4311,17 +4407,17 @@ const M0 = (o) => new x0(typeof o == "string" ? o : o + "", void 0, a7), Z0 = (o
|
|
|
4311
4407
|
}, A2 = k5 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
4312
4408
|
let e = "";
|
|
4313
4409
|
for (const s of t.cssRules) e += s.cssText;
|
|
4314
|
-
return
|
|
4410
|
+
return Z0(e);
|
|
4315
4411
|
})(o) : o;
|
|
4316
4412
|
/**
|
|
4317
4413
|
* @license
|
|
4318
4414
|
* Copyright 2017 Google LLC
|
|
4319
4415
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4320
4416
|
*/
|
|
4321
|
-
const { is:
|
|
4417
|
+
const { is: S0, defineProperty: V0, getOwnPropertyDescriptor: E0, getOwnPropertyNames: A0, getOwnPropertySymbols: P0, getPrototypeOf: U0 } = Object, Q = globalThis, P2 = Q.trustedTypes, z0 = P2 ? P2.emptyScript : "", U2 = Q.reactiveElementPolyfillSupport, A1 = (o, t) => o, i5 = { toAttribute(o, t) {
|
|
4322
4418
|
switch (t) {
|
|
4323
4419
|
case Boolean:
|
|
4324
|
-
o = o ?
|
|
4420
|
+
o = o ? z0 : null;
|
|
4325
4421
|
break;
|
|
4326
4422
|
case Object:
|
|
4327
4423
|
case Array:
|
|
@@ -4346,7 +4442,7 @@ const { is: H0, defineProperty: S0, getOwnPropertyDescriptor: V0, getOwnProperty
|
|
|
4346
4442
|
}
|
|
4347
4443
|
}
|
|
4348
4444
|
return e;
|
|
4349
|
-
} },
|
|
4445
|
+
} }, T5 = (o, t) => !S0(o, t), z2 = { attribute: !0, type: String, converter: i5, reflect: !1, hasChanged: T5 };
|
|
4350
4446
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Q.litPropertyMetadata ?? (Q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
4351
4447
|
class m1 extends HTMLElement {
|
|
4352
4448
|
static addInitializer(t) {
|
|
@@ -4358,11 +4454,11 @@ class m1 extends HTMLElement {
|
|
|
4358
4454
|
static createProperty(t, e = z2) {
|
|
4359
4455
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
4360
4456
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
4361
|
-
r !== void 0 &&
|
|
4457
|
+
r !== void 0 && V0(this.prototype, t, r);
|
|
4362
4458
|
}
|
|
4363
4459
|
}
|
|
4364
4460
|
static getPropertyDescriptor(t, e, s) {
|
|
4365
|
-
const { get: r, set: C } =
|
|
4461
|
+
const { get: r, set: C } = E0(this.prototype, t) ?? { get() {
|
|
4366
4462
|
return this[e];
|
|
4367
4463
|
}, set(i) {
|
|
4368
4464
|
this[e] = i;
|
|
@@ -4379,13 +4475,13 @@ class m1 extends HTMLElement {
|
|
|
4379
4475
|
}
|
|
4380
4476
|
static _$Ei() {
|
|
4381
4477
|
if (this.hasOwnProperty(A1("elementProperties"))) return;
|
|
4382
|
-
const t =
|
|
4478
|
+
const t = U0(this);
|
|
4383
4479
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
4384
4480
|
}
|
|
4385
4481
|
static finalize() {
|
|
4386
4482
|
if (this.hasOwnProperty(A1("finalized"))) return;
|
|
4387
4483
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(A1("properties"))) {
|
|
4388
|
-
const e = this.properties, s = [...
|
|
4484
|
+
const e = this.properties, s = [...A0(e), ...P0(e)];
|
|
4389
4485
|
for (const r of s) this.createProperty(r, e[r]);
|
|
4390
4486
|
}
|
|
4391
4487
|
const t = this[Symbol.metadata];
|
|
@@ -4434,7 +4530,7 @@ class m1 extends HTMLElement {
|
|
|
4434
4530
|
}
|
|
4435
4531
|
createRenderRoot() {
|
|
4436
4532
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
4437
|
-
return
|
|
4533
|
+
return H0(t, this.constructor.elementStyles), t;
|
|
4438
4534
|
}
|
|
4439
4535
|
connectedCallback() {
|
|
4440
4536
|
var t;
|
|
@@ -4473,7 +4569,7 @@ class m1 extends HTMLElement {
|
|
|
4473
4569
|
}
|
|
4474
4570
|
requestUpdate(t, e, s) {
|
|
4475
4571
|
if (t !== void 0) {
|
|
4476
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
4572
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? T5)(this[t], e)) return;
|
|
4477
4573
|
this.P(t, e, s);
|
|
4478
4574
|
}
|
|
4479
4575
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -4552,7 +4648,7 @@ m1.elementStyles = [], m1.shadowRootOptions = { mode: "open" }, m1[A1("elementPr
|
|
|
4552
4648
|
* Copyright 2017 Google LLC
|
|
4553
4649
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4554
4650
|
*/
|
|
4555
|
-
const
|
|
4651
|
+
const O0 = { attribute: !0, type: String, converter: i5, reflect: !1, hasChanged: T5 }, B0 = (o = O0, t, e) => {
|
|
4556
4652
|
const { kind: s, metadata: r } = e;
|
|
4557
4653
|
let C = globalThis.litPropertyMetadata.get(r);
|
|
4558
4654
|
if (C === void 0 && globalThis.litPropertyMetadata.set(r, C = /* @__PURE__ */ new Map()), C.set(e.name, o), s === "accessor") {
|
|
@@ -4574,12 +4670,12 @@ const z0 = { attribute: !0, type: String, converter: i5, reflect: !1, hasChanged
|
|
|
4574
4670
|
throw Error("Unsupported decorator location: " + s);
|
|
4575
4671
|
};
|
|
4576
4672
|
function m(o) {
|
|
4577
|
-
return (t, e) => typeof e == "object" ?
|
|
4673
|
+
return (t, e) => typeof e == "object" ? B0(o, t, e) : ((s, r, C) => {
|
|
4578
4674
|
const i = r.hasOwnProperty(C);
|
|
4579
4675
|
return r.constructor.createProperty(C, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, C) : void 0;
|
|
4580
4676
|
})(o, t, e);
|
|
4581
4677
|
}
|
|
4582
|
-
const
|
|
4678
|
+
const k0 = M`
|
|
4583
4679
|
:host {
|
|
4584
4680
|
/* Anything that can be overridden should be defined here */
|
|
4585
4681
|
|
|
@@ -4597,19 +4693,19 @@ const B0 = M`
|
|
|
4597
4693
|
|
|
4598
4694
|
/* Global Button Colors */
|
|
4599
4695
|
--_nys-button-color-bg: var(--nys-color-theme, #154973);
|
|
4600
|
-
--_nys-button-color-text: var(--nys-color-
|
|
4696
|
+
--_nys-button-color-text: var(--nys-color-text-reverse, #ffffff);
|
|
4601
4697
|
--_nys-button-color-border: var(--nys-color-theme, #154973);
|
|
4602
4698
|
|
|
4603
4699
|
--_nys-button-color-bg-hover: var(--nys-color-theme-strong, #0e324f);
|
|
4604
|
-
--_nys-button-color-text-hover: var(--nys-color-
|
|
4700
|
+
--_nys-button-color-text-hover: var(--nys-color-text-reverse, #ffffff);
|
|
4605
4701
|
--_nys-button-color-border-hover: var(--nys-color-theme-strong, #0e324f);
|
|
4606
4702
|
|
|
4607
4703
|
--_nys-button-color-bg-active: var(--nys-color-theme-stronger, #081b2b);
|
|
4608
|
-
--_nys-button-color-text-active: var(--nys-color-
|
|
4704
|
+
--_nys-button-color-text-active: var(--nys-color-text-reverse, #ffffff);
|
|
4609
4705
|
--_nys-button-color-border-active: var(--nys-color-theme-stronger, #081b2b);
|
|
4610
4706
|
|
|
4611
4707
|
--_nys-button-color-bg-disabled: var(--nys-color-neutral-10, #f6f6f6);
|
|
4612
|
-
--_nys-button-color-text-disabled: var(--nys-color-
|
|
4708
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
4613
4709
|
--_nys-button-color-border-disabled: var(--nys-color-neutral-10, #f6f6f6);
|
|
4614
4710
|
|
|
4615
4711
|
/* Typography */
|
|
@@ -4649,67 +4745,55 @@ const B0 = M`
|
|
|
4649
4745
|
--_nys-button-width: 100%;
|
|
4650
4746
|
}
|
|
4651
4747
|
|
|
4652
|
-
/*
|
|
4748
|
+
/* VARIANTS */
|
|
4749
|
+
|
|
4750
|
+
/* Filled */
|
|
4653
4751
|
:host([variant="filled"]) {
|
|
4752
|
+
/* Filled - Default */
|
|
4654
4753
|
--_nys-button-color-bg: var(--nys-color-theme, #154973);
|
|
4655
|
-
--_nys-button-color-text: var(--nys-color-
|
|
4656
|
-
--_nys-button-color-border: var(--nys-color-
|
|
4754
|
+
--_nys-button-color-text: var(--nys-color-text-reverse, #ffffff);
|
|
4755
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
4657
4756
|
|
|
4757
|
+
/* Filled - Hover */
|
|
4658
4758
|
--_nys-button-color-bg-hover: var(--nys-color-theme-strong, #0e324f);
|
|
4659
|
-
--_nys-button-color-text-hover: var(--nys-color-
|
|
4660
|
-
--_nys-button-color-border
|
|
4759
|
+
--_nys-button-color-text-hover: var(--nys-color-text-reverse, #ffffff);
|
|
4760
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
4661
4761
|
|
|
4762
|
+
/* Filled - Pressed/Active */
|
|
4662
4763
|
--_nys-button-color-bg-active: var(--nys-color-theme-stronger, #081b2b);
|
|
4663
|
-
--_nys-button-color-text-active: var(--nys-color-
|
|
4664
|
-
--_nys-button-color-border
|
|
4764
|
+
--_nys-button-color-text-active: var(--nys-color-text-reverse, #ffffff);
|
|
4765
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
4665
4766
|
|
|
4767
|
+
/* Filled - Disabled */
|
|
4666
4768
|
--_nys-button-color-bg-disabled: var(--nys-color-neutral-10, #f6f6f6);
|
|
4667
|
-
--_nys-button-color-text-disabled: var(--nys-color-
|
|
4668
|
-
--_nys-button-color-border
|
|
4769
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
4770
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
4669
4771
|
}
|
|
4772
|
+
|
|
4773
|
+
/* Outline */
|
|
4670
4774
|
:host([variant="outline"]) {
|
|
4671
|
-
|
|
4775
|
+
/* Outline - Default */
|
|
4776
|
+
--_nys-button-color-bg: var(--nys-color-surface, #ffffff);
|
|
4672
4777
|
--_nys-button-color-text: var(--nys-color-theme, #154973);
|
|
4673
4778
|
--_nys-button-color-border: var(--nys-color-theme, #154973);
|
|
4674
4779
|
|
|
4780
|
+
/* Outline - Hover */
|
|
4675
4781
|
--_nys-button-color-bg-hover: var(--nys-color-theme-weaker, #eff6fb);
|
|
4676
4782
|
--_nys-button-color-text-hover: var(--nys-color-theme, #154973);
|
|
4677
4783
|
--_nys-button-color-border-hover: var(--nys-color-theme, #154973);
|
|
4678
4784
|
|
|
4785
|
+
/* Outline - Pressed/Active */
|
|
4679
4786
|
--_nys-button-color-bg-active: var(--nys-color-theme-weak, #cddde9);
|
|
4680
4787
|
--_nys-button-color-text-active: var(--nys-color-theme, #154973);
|
|
4681
4788
|
--_nys-button-color-border-active: var(--nys-color-theme, #154973);
|
|
4682
4789
|
|
|
4683
|
-
|
|
4684
|
-
--_nys-button-color-
|
|
4790
|
+
/* Outline - Disabled */
|
|
4791
|
+
--_nys-button-color-bg-disabled: var(--nys-color-surface, #ffffff);
|
|
4792
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
4685
4793
|
--_nys-button-color-border-disabled: var(--nys-color-neutral-100, #d0d0ce);
|
|
4686
4794
|
}
|
|
4687
|
-
:host([variant="ghost"]) {
|
|
4688
|
-
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
4689
|
-
--_nys-button-color-text: var(--nys-color-ink, #000000);
|
|
4690
|
-
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
4691
4795
|
|
|
4692
|
-
|
|
4693
|
-
--nys-color-black-transparent-100,
|
|
4694
|
-
#0000001a
|
|
4695
|
-
);
|
|
4696
|
-
--_nys-button-color-text-hover: var(--nys-color-ink, #000000);
|
|
4697
|
-
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
4698
|
-
|
|
4699
|
-
--_nys-button-color-bg-active: var(
|
|
4700
|
-
--nys-color-black-transparent-200,
|
|
4701
|
-
#00000033
|
|
4702
|
-
);
|
|
4703
|
-
--_nys-button-color-text-active: var(--nys-color-ink, #000000);
|
|
4704
|
-
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
4705
|
-
|
|
4706
|
-
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
4707
|
-
--_nys-button-color-text-disabled: var(--nys-color-neutral-300, #a7a9ab);
|
|
4708
|
-
--_nys-button-color-border-disabled: var(
|
|
4709
|
-
--nys-color-transparent,
|
|
4710
|
-
#ffffff00
|
|
4711
|
-
);
|
|
4712
|
-
}
|
|
4796
|
+
/* Text */
|
|
4713
4797
|
:host([variant="text"]) {
|
|
4714
4798
|
--_nys-button-height: fit-content;
|
|
4715
4799
|
--_nys-button-radius: var(--nys-border-radius-md, 4px);
|
|
@@ -4718,109 +4802,196 @@ const B0 = M`
|
|
|
4718
4802
|
--_nys-button-width-border: 0px;
|
|
4719
4803
|
--_nys-button-text-decoration: underline;
|
|
4720
4804
|
|
|
4805
|
+
/* Text - Default */
|
|
4721
4806
|
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
4722
4807
|
--_nys-button-color-text: var(--nys-color-link, #004dd1);
|
|
4723
4808
|
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
4724
4809
|
|
|
4810
|
+
/* Text - Hover */
|
|
4725
4811
|
--_nys-button-color-bg-hover: var(--nys-color-transparent, #ffffff00);
|
|
4726
4812
|
--_nys-button-color-text-hover: var(--nys-color-link-strong, #003ba1);
|
|
4727
4813
|
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
4728
4814
|
|
|
4815
|
+
/* Text - Pressed/Active */
|
|
4729
4816
|
--_nys-button-color-bg-active: var(--nys-color-transparent, #ffffff00);
|
|
4730
4817
|
--_nys-button-color-text-active: var(--nys-color-link-strongest, #002971);
|
|
4731
4818
|
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
4732
4819
|
|
|
4820
|
+
/* Text - Disabled */
|
|
4821
|
+
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
4822
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
4823
|
+
--_nys-button-color-border-disabled: var(
|
|
4824
|
+
--nys-color-transparent,
|
|
4825
|
+
#ffffff00
|
|
4826
|
+
);
|
|
4827
|
+
}
|
|
4828
|
+
|
|
4829
|
+
/* Ghost */
|
|
4830
|
+
:host([variant="ghost"]) {
|
|
4831
|
+
/* Ghost - Default */
|
|
4832
|
+
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
4833
|
+
--_nys-button-color-text: var(--nys-color-text, #1b1b1b);
|
|
4834
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
4835
|
+
|
|
4836
|
+
/* Ghost - Hover */
|
|
4837
|
+
--_nys-button-color-bg-hover: var(
|
|
4838
|
+
--nys-color-black-transparent-100,
|
|
4839
|
+
#0000001a
|
|
4840
|
+
);
|
|
4841
|
+
--_nys-button-color-text-hover: var(--nys-color-text, #1b1b1b);
|
|
4842
|
+
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
4843
|
+
|
|
4844
|
+
/* Ghost - Active */
|
|
4845
|
+
--_nys-button-color-bg-active: var(
|
|
4846
|
+
--nys-color-black-transparent-200,
|
|
4847
|
+
#00000033
|
|
4848
|
+
);
|
|
4849
|
+
--_nys-button-color-text-active: var(--nys-color-text, #1b1b1b);
|
|
4850
|
+
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
4851
|
+
|
|
4852
|
+
/* Ghost - Disabled */
|
|
4733
4853
|
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
4734
|
-
--_nys-button-color-text-disabled: var(--nys-color-
|
|
4854
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
4735
4855
|
--_nys-button-color-border-disabled: var(
|
|
4736
4856
|
--nys-color-transparent,
|
|
4737
4857
|
#ffffff00
|
|
4738
4858
|
);
|
|
4739
4859
|
}
|
|
4740
4860
|
|
|
4741
|
-
/*
|
|
4861
|
+
/* INVERTED VARIANTS */
|
|
4862
|
+
|
|
4863
|
+
/* Filled Inverted */
|
|
4742
4864
|
:host([variant="filled"][inverted]) {
|
|
4743
|
-
|
|
4744
|
-
--_nys-button-color-
|
|
4745
|
-
--_nys-button-color-
|
|
4865
|
+
/* Filled Inverted - Default */
|
|
4866
|
+
--_nys-button-color-bg: var(--nys-color-surface, #ffffff);
|
|
4867
|
+
--_nys-button-color-text: var(--nys-color-text, #1b1b1b);
|
|
4868
|
+
--_nys-button-color-border-disabled: var(
|
|
4869
|
+
--nys-color-transparent,
|
|
4870
|
+
#ffffff00
|
|
4871
|
+
);
|
|
4746
4872
|
|
|
4873
|
+
/* Filled Inverted - Hover */
|
|
4747
4874
|
--_nys-button-color-bg-hover: var(--nys-color-neutral-100, #d0d0ce);
|
|
4748
|
-
--_nys-button-color-text-hover: var(--nys-color-
|
|
4749
|
-
--_nys-button-color-border-
|
|
4875
|
+
--_nys-button-color-text-hover: var(--nys-color-text, #1b1b1b);
|
|
4876
|
+
--_nys-button-color-border-disabled: var(
|
|
4877
|
+
--nys-color-transparent,
|
|
4878
|
+
#ffffff00
|
|
4879
|
+
);
|
|
4750
4880
|
|
|
4881
|
+
/* Filled Inverted - Pressed/Active */
|
|
4751
4882
|
--_nys-button-color-bg-active: var(--nys-color-neutral-300, #a7a9ab);
|
|
4752
|
-
--_nys-button-color-text-active: var(--nys-color-
|
|
4753
|
-
--_nys-button-color-border-
|
|
4883
|
+
--_nys-button-color-text-active: var(--nys-color-text, #1b1b1b);
|
|
4884
|
+
--_nys-button-color-border-disabled: var(
|
|
4885
|
+
--nys-color-transparent,
|
|
4886
|
+
#ffffff00
|
|
4887
|
+
);
|
|
4754
4888
|
|
|
4755
|
-
|
|
4756
|
-
--_nys-button-color-
|
|
4757
|
-
--_nys-button-color-
|
|
4889
|
+
/* Filled Inverted - Disabled */
|
|
4890
|
+
--_nys-button-color-bg-disabled: var(--nys-color-text, #1b1b1b);
|
|
4891
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #62666a);
|
|
4892
|
+
--_nys-button-color-border-disabled: var(
|
|
4893
|
+
--nys-color-transparent,
|
|
4894
|
+
#ffffff00
|
|
4895
|
+
);
|
|
4758
4896
|
}
|
|
4897
|
+
|
|
4898
|
+
/* Outline Inverted */
|
|
4759
4899
|
:host([variant="outline"][inverted]) {
|
|
4760
|
-
|
|
4761
|
-
--_nys-button-color-
|
|
4900
|
+
/* Outline Inverted - Default */
|
|
4901
|
+
--_nys-button-color-bg: var(--nys-color-surface-reverse, #1b1b1b);
|
|
4902
|
+
--_nys-button-color-text: var(--nys-color-text-reverse, #ffffff);
|
|
4762
4903
|
--_nys-button-color-border: var(--nys-color-ink-reverse, #ffffff);
|
|
4763
4904
|
|
|
4764
|
-
|
|
4765
|
-
--_nys-button-color-
|
|
4905
|
+
/* Outline Inverted - Hover */
|
|
4906
|
+
--_nys-button-color-bg-hover: var(--nys-color-surface-reverse, #1b1b1b);
|
|
4907
|
+
--_nys-button-color-text-hover: var(--nys-color-text-reverse-weak, #d0d0ce);
|
|
4766
4908
|
--_nys-button-color-border-hover: var(--nys-color-neutral-100, #d0d0ce);
|
|
4767
4909
|
|
|
4768
|
-
|
|
4769
|
-
--_nys-button-color-
|
|
4910
|
+
/* Outline Inverted - Pressed/Active */
|
|
4911
|
+
--_nys-button-color-bg-active: var(--nys-color-surface-reverse, #1b1b1b);
|
|
4912
|
+
--_nys-button-color-text-active: var(
|
|
4913
|
+
--nys-color-text-reverse-weaker,
|
|
4914
|
+
#bec0c1
|
|
4915
|
+
);
|
|
4770
4916
|
--_nys-button-color-border-active: var(--nys-color-neutral-300, #a7a9ab);
|
|
4771
4917
|
|
|
4772
|
-
|
|
4773
|
-
--_nys-button-color-
|
|
4918
|
+
/* Outline Inverted - Disabled */
|
|
4919
|
+
--_nys-button-color-bg-disabled: var(--nys-color-surface-reverse, #1b1b1b);
|
|
4920
|
+
--_nys-button-color-text-disabled: var(
|
|
4921
|
+
--nys-color-text-reverse-disabled,
|
|
4922
|
+
#62666a
|
|
4923
|
+
);
|
|
4774
4924
|
--_nys-button-color-border-disabled: var(--nys-color-neutral-600, #62666a);
|
|
4775
4925
|
}
|
|
4776
|
-
|
|
4926
|
+
|
|
4927
|
+
/* Text Inverted */
|
|
4928
|
+
:host([variant="text"][inverted]) {
|
|
4929
|
+
--_nys-button-height: fit-content;
|
|
4930
|
+
--_nys-button-radius: var(--nys-border-radius-md, 4px);
|
|
4931
|
+
--_nys-button-padding-y: var(--nys-space-2px, 2px);
|
|
4932
|
+
--_nys-button-padding-x: var(--nys-space-50, 4px);
|
|
4933
|
+
--_nys-button-width-border: 0px;
|
|
4934
|
+
--_nys-button-text-decoration: underline;
|
|
4935
|
+
|
|
4936
|
+
/* Text Inverted - Default */
|
|
4777
4937
|
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
4778
|
-
--_nys-button-color-text: var(--nys-color-
|
|
4938
|
+
--_nys-button-color-text: var(--nys-color-link-reverse, #a7a9ab);
|
|
4779
4939
|
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
4780
4940
|
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4941
|
+
/* Text Inverted - Hover */
|
|
4942
|
+
--_nys-button-color-bg-hover: var(--nys-color-transparent, #ffffff00);
|
|
4943
|
+
--_nys-button-color-text-hover: var(
|
|
4944
|
+
--nys-color-link-reverse-strong,
|
|
4945
|
+
#ededed
|
|
4784
4946
|
);
|
|
4785
|
-
--_nys-button-color-text-hover: var(--nys-color-ink-reverse, #ffffff);
|
|
4786
4947
|
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
4787
4948
|
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4949
|
+
/* Text Inverted - Pressed/Active */
|
|
4950
|
+
--_nys-button-color-bg-active: var(--nys-color-transparent, #ffffff00);
|
|
4951
|
+
--_nys-button-color-text-active: var(
|
|
4952
|
+
--nys-color-reverse-strongest,
|
|
4953
|
+
#ffffff
|
|
4791
4954
|
);
|
|
4792
|
-
--_nys-button-color-text-active: var(--nys-color-ink-reverse, #ffffff);
|
|
4793
4955
|
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
4794
4956
|
|
|
4957
|
+
/* Text Inverted - Disabled */
|
|
4795
4958
|
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
4796
|
-
--_nys-button-color-text-disabled: var(
|
|
4959
|
+
--_nys-button-color-text-disabled: var(
|
|
4960
|
+
--nys-color-text-reverse-disabled,
|
|
4961
|
+
#62666a
|
|
4962
|
+
);
|
|
4797
4963
|
--_nys-button-color-border-disabled: var(
|
|
4798
4964
|
--nys-color-transparent,
|
|
4799
4965
|
#ffffff00
|
|
4800
4966
|
);
|
|
4801
4967
|
}
|
|
4802
|
-
:host([variant="text"][inverted]) {
|
|
4803
|
-
--_nys-button-height: fit-content;
|
|
4804
|
-
--_nys-button-radius: var(--nys-border-radius-md, 4px);
|
|
4805
|
-
--_nys-button-padding-y: var(--nys-space-2px, 2px);
|
|
4806
|
-
--_nys-button-padding-x: var(--nys-space-50, 4px);
|
|
4807
|
-
--_nys-button-width-border: 0px;
|
|
4808
|
-
--_nys-button-text-decoration: underline;
|
|
4809
4968
|
|
|
4969
|
+
/* Ghost Inverted */
|
|
4970
|
+
:host([variant="ghost"][inverted]) {
|
|
4971
|
+
/* Ghost Inverted - Default */
|
|
4810
4972
|
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
4811
|
-
--_nys-button-color-text: var(--nys-color-
|
|
4973
|
+
--_nys-button-color-text: var(--nys-color-text-reverse, #ffffff);
|
|
4812
4974
|
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
4813
4975
|
|
|
4814
|
-
|
|
4815
|
-
--_nys-button-color-
|
|
4976
|
+
/* Ghost Inverted - Hover */
|
|
4977
|
+
--_nys-button-color-bg-hover: var(
|
|
4978
|
+
--nys-color-white-transparent-100,
|
|
4979
|
+
#ffffff1a
|
|
4980
|
+
);
|
|
4981
|
+
--_nys-button-color-text-hover: var(--nys-color-text-reverse, #ffffff);
|
|
4816
4982
|
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
4817
4983
|
|
|
4818
|
-
|
|
4819
|
-
--_nys-button-color-
|
|
4984
|
+
/* Ghost Inverted - Pressed/Active */
|
|
4985
|
+
--_nys-button-color-bg-active: var(
|
|
4986
|
+
--nys-color-white-transparent-200,
|
|
4987
|
+
#ffffff33
|
|
4988
|
+
);
|
|
4989
|
+
--_nys-button-color-text-active: var(--nys-color-text-reverse, #ffffff);
|
|
4820
4990
|
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
4821
4991
|
|
|
4992
|
+
/* Ghost Inverted - Disabled */
|
|
4822
4993
|
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
4823
|
-
--_nys-button-color-text-disabled: var(--nys-color-
|
|
4994
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #62666a);
|
|
4824
4995
|
--_nys-button-color-border-disabled: var(
|
|
4825
4996
|
--nys-color-transparent,
|
|
4826
4997
|
#ffffff00
|
|
@@ -4909,7 +5080,7 @@ const B0 = M`
|
|
|
4909
5080
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
4910
5081
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
4911
5082
|
*
|
|
4912
|
-
* Icon Component v1.1.
|
|
5083
|
+
* Icon Component v1.1.1
|
|
4913
5084
|
* Part of the New York State Design System
|
|
4914
5085
|
* Repository: https://github.com/its-hcd/nysds
|
|
4915
5086
|
* License: MIT
|
|
@@ -4919,16 +5090,16 @@ const B0 = M`
|
|
|
4919
5090
|
* Copyright 2019 Google LLC
|
|
4920
5091
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4921
5092
|
*/
|
|
4922
|
-
const
|
|
4923
|
-
let
|
|
5093
|
+
const G1 = globalThis, R5 = G1.ShadowRoot && (G1.ShadyCSS === void 0 || G1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, c7 = Symbol(), O2 = /* @__PURE__ */ new WeakMap();
|
|
5094
|
+
let T0 = class {
|
|
4924
5095
|
constructor(o, t, e) {
|
|
4925
|
-
if (this._$cssResult$ = !0, e !==
|
|
5096
|
+
if (this._$cssResult$ = !0, e !== c7) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
4926
5097
|
this.cssText = o, this.t = t;
|
|
4927
5098
|
}
|
|
4928
5099
|
get styleSheet() {
|
|
4929
5100
|
let o = this.o;
|
|
4930
5101
|
const t = this.t;
|
|
4931
|
-
if (
|
|
5102
|
+
if (R5 && o === void 0) {
|
|
4932
5103
|
const e = t !== void 0 && t.length === 1;
|
|
4933
5104
|
e && (o = O2.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && O2.set(t, o));
|
|
4934
5105
|
}
|
|
@@ -4938,13 +5109,13 @@ let k0 = class {
|
|
|
4938
5109
|
return this.cssText;
|
|
4939
5110
|
}
|
|
4940
5111
|
};
|
|
4941
|
-
const R0 = (o) => new
|
|
4942
|
-
if (
|
|
5112
|
+
const R0 = (o) => new T0(typeof o == "string" ? o : o + "", void 0, c7), D0 = (o, t) => {
|
|
5113
|
+
if (R5) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
4943
5114
|
else for (const e of t) {
|
|
4944
|
-
const s = document.createElement("style"), r =
|
|
5115
|
+
const s = document.createElement("style"), r = G1.litNonce;
|
|
4945
5116
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
4946
5117
|
}
|
|
4947
|
-
}, B2 =
|
|
5118
|
+
}, B2 = R5 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
4948
5119
|
let e = "";
|
|
4949
5120
|
for (const s of t.cssRules) e += s.cssText;
|
|
4950
5121
|
return R0(e);
|
|
@@ -4954,10 +5125,10 @@ const R0 = (o) => new k0(typeof o == "string" ? o : o + "", void 0, h7), T0 = (o
|
|
|
4954
5125
|
* Copyright 2017 Google LLC
|
|
4955
5126
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4956
5127
|
*/
|
|
4957
|
-
const { is: N0, defineProperty:
|
|
5128
|
+
const { is: N0, defineProperty: I0, getOwnPropertyDescriptor: j0, getOwnPropertyNames: q0, getOwnPropertySymbols: F0, getPrototypeOf: W0 } = Object, t1 = globalThis, k2 = t1.trustedTypes, G0 = k2 ? k2.emptyScript : "", T2 = t1.reactiveElementPolyfillSupport, P1 = (o, t) => o, C5 = { toAttribute(o, t) {
|
|
4958
5129
|
switch (t) {
|
|
4959
5130
|
case Boolean:
|
|
4960
|
-
o = o ?
|
|
5131
|
+
o = o ? G0 : null;
|
|
4961
5132
|
break;
|
|
4962
5133
|
case Object:
|
|
4963
5134
|
case Array:
|
|
@@ -4982,7 +5153,7 @@ const { is: N0, defineProperty: j0, getOwnPropertyDescriptor: D0, getOwnProperty
|
|
|
4982
5153
|
}
|
|
4983
5154
|
}
|
|
4984
5155
|
return e;
|
|
4985
|
-
} },
|
|
5156
|
+
} }, D5 = (o, t) => !N0(o, t), R2 = { attribute: !0, type: String, converter: C5, reflect: !1, hasChanged: D5 };
|
|
4986
5157
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), t1.litPropertyMetadata ?? (t1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
4987
5158
|
let b1 = class extends HTMLElement {
|
|
4988
5159
|
static addInitializer(o) {
|
|
@@ -4991,14 +5162,14 @@ let b1 = class extends HTMLElement {
|
|
|
4991
5162
|
static get observedAttributes() {
|
|
4992
5163
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
4993
5164
|
}
|
|
4994
|
-
static createProperty(o, t =
|
|
5165
|
+
static createProperty(o, t = R2) {
|
|
4995
5166
|
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(o, t), !t.noAccessor) {
|
|
4996
5167
|
const e = Symbol(), s = this.getPropertyDescriptor(o, e, t);
|
|
4997
|
-
s !== void 0 &&
|
|
5168
|
+
s !== void 0 && I0(this.prototype, o, s);
|
|
4998
5169
|
}
|
|
4999
5170
|
}
|
|
5000
5171
|
static getPropertyDescriptor(o, t, e) {
|
|
5001
|
-
const { get: s, set: r } =
|
|
5172
|
+
const { get: s, set: r } = j0(this.prototype, o) ?? { get() {
|
|
5002
5173
|
return this[t];
|
|
5003
5174
|
}, set(C) {
|
|
5004
5175
|
this[t] = C;
|
|
@@ -5011,17 +5182,17 @@ let b1 = class extends HTMLElement {
|
|
|
5011
5182
|
}, configurable: !0, enumerable: !0 };
|
|
5012
5183
|
}
|
|
5013
5184
|
static getPropertyOptions(o) {
|
|
5014
|
-
return this.elementProperties.get(o) ??
|
|
5185
|
+
return this.elementProperties.get(o) ?? R2;
|
|
5015
5186
|
}
|
|
5016
5187
|
static _$Ei() {
|
|
5017
5188
|
if (this.hasOwnProperty(P1("elementProperties"))) return;
|
|
5018
|
-
const o =
|
|
5189
|
+
const o = W0(this);
|
|
5019
5190
|
o.finalize(), o.l !== void 0 && (this.l = [...o.l]), this.elementProperties = new Map(o.elementProperties);
|
|
5020
5191
|
}
|
|
5021
5192
|
static finalize() {
|
|
5022
5193
|
if (this.hasOwnProperty(P1("finalized"))) return;
|
|
5023
5194
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(P1("properties"))) {
|
|
5024
|
-
const t = this.properties, e = [...
|
|
5195
|
+
const t = this.properties, e = [...q0(t), ...F0(t)];
|
|
5025
5196
|
for (const s of e) this.createProperty(s, t[s]);
|
|
5026
5197
|
}
|
|
5027
5198
|
const o = this[Symbol.metadata];
|
|
@@ -5070,7 +5241,7 @@ let b1 = class extends HTMLElement {
|
|
|
5070
5241
|
}
|
|
5071
5242
|
createRenderRoot() {
|
|
5072
5243
|
const o = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
5073
|
-
return
|
|
5244
|
+
return D0(o, this.constructor.elementStyles), o;
|
|
5074
5245
|
}
|
|
5075
5246
|
connectedCallback() {
|
|
5076
5247
|
var o;
|
|
@@ -5109,7 +5280,7 @@ let b1 = class extends HTMLElement {
|
|
|
5109
5280
|
}
|
|
5110
5281
|
requestUpdate(o, t, e) {
|
|
5111
5282
|
if (o !== void 0) {
|
|
5112
|
-
if (e ?? (e = this.constructor.getPropertyOptions(o)), !(e.hasChanged ??
|
|
5283
|
+
if (e ?? (e = this.constructor.getPropertyOptions(o)), !(e.hasChanged ?? D5)(this[o], t)) return;
|
|
5113
5284
|
this.P(o, t, e);
|
|
5114
5285
|
}
|
|
5115
5286
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -5182,13 +5353,13 @@ let b1 = class extends HTMLElement {
|
|
|
5182
5353
|
firstUpdated(o) {
|
|
5183
5354
|
}
|
|
5184
5355
|
};
|
|
5185
|
-
b1.elementStyles = [], b1.shadowRootOptions = { mode: "open" }, b1[P1("elementProperties")] = /* @__PURE__ */ new Map(), b1[P1("finalized")] = /* @__PURE__ */ new Map(),
|
|
5356
|
+
b1.elementStyles = [], b1.shadowRootOptions = { mode: "open" }, b1[P1("elementProperties")] = /* @__PURE__ */ new Map(), b1[P1("finalized")] = /* @__PURE__ */ new Map(), T2 == null || T2({ ReactiveElement: b1 }), (t1.reactiveElementVersions ?? (t1.reactiveElementVersions = [])).push("2.0.4");
|
|
5186
5357
|
/**
|
|
5187
5358
|
* @license
|
|
5188
5359
|
* Copyright 2017 Google LLC
|
|
5189
5360
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5190
5361
|
*/
|
|
5191
|
-
const K0 = { attribute: !0, type: String, converter: C5, reflect: !1, hasChanged:
|
|
5362
|
+
const K0 = { attribute: !0, type: String, converter: C5, reflect: !1, hasChanged: D5 }, Y0 = (o = K0, t, e) => {
|
|
5192
5363
|
const { kind: s, metadata: r } = e;
|
|
5193
5364
|
let C = globalThis.litPropertyMetadata.get(r);
|
|
5194
5365
|
if (C === void 0 && globalThis.litPropertyMetadata.set(r, C = /* @__PURE__ */ new Map()), C.set(e.name, o), s === "accessor") {
|
|
@@ -5414,7 +5585,7 @@ const J0 = {
|
|
|
5414
5585
|
lock_filled: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="23" viewBox="0 0 18 23" fill="none">
|
|
5415
5586
|
<path d="M3.30002 22.7751C2.43369 22.7751 1.69211 22.4667 1.07527 21.8498C0.458441 21.2328 0.150024 20.4913 0.150024 19.6251V10.2251C0.150024 9.35893 0.458441 8.61735 1.07527 8.00035C1.69211 7.38351 2.43369 7.0751 3.30002 7.0751H3.62502V5.8001C3.62502 4.28343 4.14586 2.99593 5.18752 1.9376C6.22919 0.879264 7.50002 0.350098 9.00002 0.350098C10.5 0.350098 11.7709 0.879264 12.8125 1.9376C13.8542 2.99593 14.375 4.28343 14.375 5.8001V7.0751H14.7C15.5662 7.0751 16.3078 7.38351 16.9248 8.00035C17.5416 8.61735 17.85 9.35893 17.85 10.2251V19.6251C17.85 20.4913 17.5416 21.2328 16.9248 21.8498C16.3078 22.4667 15.5662 22.7751 14.7 22.7751H3.30002ZM9.00002 16.9251C9.55002 16.9251 10.0209 16.7293 10.4125 16.3376C10.8042 15.9459 11 15.4751 11 14.9251C11 14.3751 10.8042 13.9043 10.4125 13.5126C10.0209 13.1209 9.55002 12.9251 9.00002 12.9251C8.45002 12.9251 7.97919 13.1209 7.58752 13.5126C7.19586 13.9043 7.00002 14.3751 7.00002 14.9251C7.00002 15.4751 7.19586 15.9459 7.58752 16.3376C7.97919 16.7293 8.45002 16.9251 9.00002 16.9251ZM6.77502 7.0751H11.225V5.8001C11.225 5.16126 11.0125 4.61818 10.5875 4.17085C10.1625 3.72368 9.63336 3.5001 9.00002 3.5001C8.36669 3.5001 7.83752 3.72368 7.41252 4.17085C6.98752 4.61818 6.77502 5.16126 6.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
5416
5587
|
</svg>`
|
|
5417
|
-
},
|
|
5588
|
+
}, X0 = M`
|
|
5418
5589
|
:host {
|
|
5419
5590
|
display: inline-block;
|
|
5420
5591
|
--_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. */
|
|
@@ -5511,12 +5682,12 @@ const J0 = {
|
|
|
5511
5682
|
transform: scale(-1, -1);
|
|
5512
5683
|
}
|
|
5513
5684
|
`;
|
|
5514
|
-
var
|
|
5515
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5685
|
+
var Q0 = Object.defineProperty, t8 = Object.getOwnPropertyDescriptor, a1 = (o, t, e, s) => {
|
|
5686
|
+
for (var r = s > 1 ? void 0 : s ? t8(t, e) : t, C = o.length - 1, i; C >= 0; C--)
|
|
5516
5687
|
(i = o[C]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
5517
|
-
return s && r &&
|
|
5688
|
+
return s && r && Q0(t, e, r), r;
|
|
5518
5689
|
}, L1;
|
|
5519
|
-
const
|
|
5690
|
+
const j = (L1 = class extends Z {
|
|
5520
5691
|
constructor() {
|
|
5521
5692
|
super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
5522
5693
|
}
|
|
@@ -5538,7 +5709,7 @@ const I = (L1 = class extends Z {
|
|
|
5538
5709
|
const o = this.getIcon();
|
|
5539
5710
|
return o ? d`${o}` : null;
|
|
5540
5711
|
}
|
|
5541
|
-
}, L1.styles =
|
|
5712
|
+
}, L1.styles = X0, L1.VALID_TYPES = [
|
|
5542
5713
|
"2xs",
|
|
5543
5714
|
"xs",
|
|
5544
5715
|
"sm",
|
|
@@ -5556,46 +5727,46 @@ const I = (L1 = class extends Z {
|
|
|
5556
5727
|
"64"
|
|
5557
5728
|
], L1);
|
|
5558
5729
|
a1([
|
|
5559
|
-
l1({ type: String })
|
|
5560
|
-
],
|
|
5730
|
+
l1({ type: String, reflect: !0 })
|
|
5731
|
+
], j.prototype, "name", 2);
|
|
5561
5732
|
a1([
|
|
5562
5733
|
l1({ type: String })
|
|
5563
|
-
],
|
|
5734
|
+
], j.prototype, "label", 2);
|
|
5564
5735
|
a1([
|
|
5565
5736
|
l1({ type: String })
|
|
5566
|
-
],
|
|
5737
|
+
], j.prototype, "rotate", 2);
|
|
5567
5738
|
a1([
|
|
5568
5739
|
l1({ type: String })
|
|
5569
|
-
],
|
|
5740
|
+
], j.prototype, "flip", 2);
|
|
5570
5741
|
a1([
|
|
5571
5742
|
l1({ type: String })
|
|
5572
|
-
],
|
|
5743
|
+
], j.prototype, "color", 2);
|
|
5573
5744
|
a1([
|
|
5574
5745
|
l1({ reflect: !0 })
|
|
5575
|
-
],
|
|
5576
|
-
let
|
|
5577
|
-
customElements.get("nys-icon") || customElements.define("nys-icon",
|
|
5746
|
+
], j.prototype, "size", 1);
|
|
5747
|
+
let e8 = j;
|
|
5748
|
+
customElements.get("nys-icon") || customElements.define("nys-icon", e8);
|
|
5578
5749
|
/**
|
|
5579
5750
|
* @license
|
|
5580
5751
|
* Copyright 2017 Google LLC
|
|
5581
5752
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5582
5753
|
*/
|
|
5583
|
-
const n5 = globalThis, l5 = n5.trustedTypes,
|
|
5584
|
-
\f\r]`,
|
|
5585
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
5754
|
+
const n5 = globalThis, l5 = n5.trustedTypes, D2 = l5 ? l5.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, h7 = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, d7 = "?" + E, s8 = `<${d7}>`, T = document, a5 = () => T.createComment(""), O1 = (o) => o === null || typeof o != "object" && typeof o != "function", N5 = Array.isArray, o8 = (o) => N5(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", y5 = `[
|
|
5755
|
+
\f\r]`, x1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, N2 = /-->/g, I2 = />/g, z = RegExp(`>|${y5}(?:([^\\s"'>=/]+)(${y5}*=${y5}*(?:[^
|
|
5756
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), j2 = /'/g, q2 = /"/g, p7 = /^(?:script|style|textarea|title)$/i, B1 = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), F2 = /* @__PURE__ */ new WeakMap(), B = T.createTreeWalker(T, 129);
|
|
5586
5757
|
function u7(o, t) {
|
|
5587
|
-
if (!
|
|
5588
|
-
return
|
|
5758
|
+
if (!N5(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
5759
|
+
return D2 !== void 0 ? D2.createHTML(t) : t;
|
|
5589
5760
|
}
|
|
5590
|
-
const
|
|
5761
|
+
const r8 = (o, t) => {
|
|
5591
5762
|
const e = o.length - 1, s = [];
|
|
5592
|
-
let r, C = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i =
|
|
5763
|
+
let r, C = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = x1;
|
|
5593
5764
|
for (let n = 0; n < e; n++) {
|
|
5594
5765
|
const l = o[n];
|
|
5595
|
-
let
|
|
5596
|
-
for (;
|
|
5766
|
+
let h, c, a = -1, f = 0;
|
|
5767
|
+
for (; f < l.length && (i.lastIndex = f, c = i.exec(l), c !== null); ) f = i.lastIndex, i === x1 ? c[1] === "!--" ? i = N2 : c[1] !== void 0 ? i = I2 : c[2] !== void 0 ? (p7.test(c[2]) && (r = RegExp("</" + c[2], "g")), i = z) : c[3] !== void 0 && (i = z) : i === z ? c[0] === ">" ? (i = r ?? x1, a = -1) : c[1] === void 0 ? a = -2 : (a = i.lastIndex - c[2].length, h = c[1], i = c[3] === void 0 ? z : c[3] === '"' ? q2 : j2) : i === q2 || i === j2 ? i = z : i === N2 || i === I2 ? i = x1 : (i = z, r = void 0);
|
|
5597
5768
|
const w = i === z && o[n + 1].startsWith("/>") ? " " : "";
|
|
5598
|
-
C += i ===
|
|
5769
|
+
C += i === x1 ? l + s8 : a >= 0 ? (s.push(h), l.slice(0, a) + h7 + l.slice(a) + E + w) : l + E + (a === -2 ? n : w);
|
|
5599
5770
|
}
|
|
5600
5771
|
return [u7(o, C + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
5601
5772
|
};
|
|
@@ -5604,23 +5775,23 @@ class k1 {
|
|
|
5604
5775
|
let r;
|
|
5605
5776
|
this.parts = [];
|
|
5606
5777
|
let C = 0, i = 0;
|
|
5607
|
-
const n = t.length - 1, l = this.parts, [
|
|
5608
|
-
if (this.el = k1.createElement(
|
|
5778
|
+
const n = t.length - 1, l = this.parts, [h, c] = r8(t, e);
|
|
5779
|
+
if (this.el = k1.createElement(h, s), B.currentNode = this.el.content, e === 2 || e === 3) {
|
|
5609
5780
|
const a = this.el.content.firstChild;
|
|
5610
5781
|
a.replaceWith(...a.childNodes);
|
|
5611
5782
|
}
|
|
5612
5783
|
for (; (r = B.nextNode()) !== null && l.length < n; ) {
|
|
5613
5784
|
if (r.nodeType === 1) {
|
|
5614
|
-
if (r.hasAttributes()) for (const a of r.getAttributeNames()) if (a.endsWith(
|
|
5615
|
-
const
|
|
5616
|
-
l.push({ type: 1, index: C, name:
|
|
5785
|
+
if (r.hasAttributes()) for (const a of r.getAttributeNames()) if (a.endsWith(h7)) {
|
|
5786
|
+
const f = c[i++], w = r.getAttribute(a).split(E), $ = /([.?@])?(.*)/.exec(f);
|
|
5787
|
+
l.push({ type: 1, index: C, name: $[2], strings: w, ctor: $[1] === "." ? C8 : $[1] === "?" ? n8 : $[1] === "@" ? l8 : v5 }), r.removeAttribute(a);
|
|
5617
5788
|
} else a.startsWith(E) && (l.push({ type: 6, index: C }), r.removeAttribute(a));
|
|
5618
5789
|
if (p7.test(r.tagName)) {
|
|
5619
|
-
const a = r.textContent.split(E),
|
|
5620
|
-
if (
|
|
5790
|
+
const a = r.textContent.split(E), f = a.length - 1;
|
|
5791
|
+
if (f > 0) {
|
|
5621
5792
|
r.textContent = l5 ? l5.emptyScript : "";
|
|
5622
|
-
for (let w = 0; w <
|
|
5623
|
-
r.append(a[
|
|
5793
|
+
for (let w = 0; w < f; w++) r.append(a[w], a5()), B.nextNode(), l.push({ type: 2, index: ++C });
|
|
5794
|
+
r.append(a[f], a5());
|
|
5624
5795
|
}
|
|
5625
5796
|
}
|
|
5626
5797
|
} else if (r.nodeType === 8) if (r.data === d7) l.push({ type: 2, index: C });
|
|
@@ -5632,7 +5803,7 @@ class k1 {
|
|
|
5632
5803
|
}
|
|
5633
5804
|
}
|
|
5634
5805
|
static createElement(t, e) {
|
|
5635
|
-
const s =
|
|
5806
|
+
const s = T.createElement("template");
|
|
5636
5807
|
return s.innerHTML = t, s;
|
|
5637
5808
|
}
|
|
5638
5809
|
}
|
|
@@ -5643,7 +5814,7 @@ function e1(o, t, e = o, s) {
|
|
|
5643
5814
|
const n = O1(t) ? void 0 : t._$litDirective$;
|
|
5644
5815
|
return (i == null ? void 0 : i.constructor) !== n && ((C = i == null ? void 0 : i._$AO) == null || C.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = e1(o, i._$AS(o, t.values), i, s)), t;
|
|
5645
5816
|
}
|
|
5646
|
-
class
|
|
5817
|
+
class i8 {
|
|
5647
5818
|
constructor(t, e) {
|
|
5648
5819
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
5649
5820
|
}
|
|
@@ -5654,17 +5825,17 @@ class r8 {
|
|
|
5654
5825
|
return this._$AM._$AU;
|
|
5655
5826
|
}
|
|
5656
5827
|
u(t) {
|
|
5657
|
-
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ??
|
|
5828
|
+
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? T).importNode(e, !0);
|
|
5658
5829
|
B.currentNode = r;
|
|
5659
5830
|
let C = B.nextNode(), i = 0, n = 0, l = s[0];
|
|
5660
5831
|
for (; l !== void 0; ) {
|
|
5661
5832
|
if (i === l.index) {
|
|
5662
|
-
let
|
|
5663
|
-
l.type === 2 ?
|
|
5833
|
+
let h;
|
|
5834
|
+
l.type === 2 ? h = new u5(C, C.nextSibling, this, t) : l.type === 1 ? h = new l.ctor(C, l.name, l.strings, this, t) : l.type === 6 && (h = new a8(C, this, t)), this._$AV.push(h), l = s[++n];
|
|
5664
5835
|
}
|
|
5665
5836
|
i !== (l == null ? void 0 : l.index) && (C = B.nextNode(), i++);
|
|
5666
5837
|
}
|
|
5667
|
-
return B.currentNode =
|
|
5838
|
+
return B.currentNode = T, r;
|
|
5668
5839
|
}
|
|
5669
5840
|
p(t) {
|
|
5670
5841
|
let e = 0;
|
|
@@ -5677,7 +5848,7 @@ class u5 {
|
|
|
5677
5848
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
5678
5849
|
}
|
|
5679
5850
|
constructor(t, e, s, r) {
|
|
5680
|
-
this.type = 2, this._$AH =
|
|
5851
|
+
this.type = 2, this._$AH = y, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
|
5681
5852
|
}
|
|
5682
5853
|
get parentNode() {
|
|
5683
5854
|
let t = this._$AA.parentNode;
|
|
@@ -5691,7 +5862,7 @@ class u5 {
|
|
|
5691
5862
|
return this._$AB;
|
|
5692
5863
|
}
|
|
5693
5864
|
_$AI(t, e = this) {
|
|
5694
|
-
t = e1(this, t, e), O1(t) ? t ===
|
|
5865
|
+
t = e1(this, t, e), O1(t) ? t === y || t == null || t === "" ? (this._$AH !== y && this._$AR(), this._$AH = y) : t !== this._$AH && t !== B1 && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : o8(t) ? this.k(t) : this._(t);
|
|
5695
5866
|
}
|
|
5696
5867
|
O(t) {
|
|
5697
5868
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -5700,14 +5871,14 @@ class u5 {
|
|
|
5700
5871
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
5701
5872
|
}
|
|
5702
5873
|
_(t) {
|
|
5703
|
-
this._$AH !==
|
|
5874
|
+
this._$AH !== y && O1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(T.createTextNode(t)), this._$AH = t;
|
|
5704
5875
|
}
|
|
5705
5876
|
$(t) {
|
|
5706
5877
|
var e;
|
|
5707
5878
|
const { values: s, _$litType$: r } = t, C = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = k1.createElement(u7(r.h, r.h[0]), this.options)), r);
|
|
5708
5879
|
if (((e = this._$AH) == null ? void 0 : e._$AD) === C) this._$AH.p(s);
|
|
5709
5880
|
else {
|
|
5710
|
-
const i = new
|
|
5881
|
+
const i = new i8(C, this), n = i.u(this.options);
|
|
5711
5882
|
i.p(s), this.T(n), this._$AH = i;
|
|
5712
5883
|
}
|
|
5713
5884
|
}
|
|
@@ -5716,7 +5887,7 @@ class u5 {
|
|
|
5716
5887
|
return e === void 0 && F2.set(t.strings, e = new k1(t)), e;
|
|
5717
5888
|
}
|
|
5718
5889
|
k(t) {
|
|
5719
|
-
|
|
5890
|
+
N5(this._$AH) || (this._$AH = [], this._$AR());
|
|
5720
5891
|
const e = this._$AH;
|
|
5721
5892
|
let s, r = 0;
|
|
5722
5893
|
for (const C of t) r === e.length ? e.push(s = new u5(this.O(a5()), this.O(a5()), this, this.options)) : s = e[r], s._$AI(C), r++;
|
|
@@ -5742,7 +5913,7 @@ class v5 {
|
|
|
5742
5913
|
return this._$AM._$AU;
|
|
5743
5914
|
}
|
|
5744
5915
|
constructor(t, e, s, r, C) {
|
|
5745
|
-
this.type = 1, this._$AH =
|
|
5916
|
+
this.type = 1, this._$AH = y, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = C, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = y;
|
|
5746
5917
|
}
|
|
5747
5918
|
_$AI(t, e = this, s, r) {
|
|
5748
5919
|
const C = this.strings;
|
|
@@ -5750,38 +5921,38 @@ class v5 {
|
|
|
5750
5921
|
if (C === void 0) t = e1(this, t, e, 0), i = !O1(t) || t !== this._$AH && t !== B1, i && (this._$AH = t);
|
|
5751
5922
|
else {
|
|
5752
5923
|
const n = t;
|
|
5753
|
-
let l,
|
|
5754
|
-
for (t = C[0], l = 0; l < C.length - 1; l++)
|
|
5924
|
+
let l, h;
|
|
5925
|
+
for (t = C[0], l = 0; l < C.length - 1; l++) h = e1(this, n[s + l], e, l), h === B1 && (h = this._$AH[l]), i || (i = !O1(h) || h !== this._$AH[l]), h === y ? t = y : t !== y && (t += (h ?? "") + C[l + 1]), this._$AH[l] = h;
|
|
5755
5926
|
}
|
|
5756
5927
|
i && !r && this.j(t);
|
|
5757
5928
|
}
|
|
5758
5929
|
j(t) {
|
|
5759
|
-
t ===
|
|
5930
|
+
t === y ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
5760
5931
|
}
|
|
5761
5932
|
}
|
|
5762
|
-
class
|
|
5933
|
+
class C8 extends v5 {
|
|
5763
5934
|
constructor() {
|
|
5764
5935
|
super(...arguments), this.type = 3;
|
|
5765
5936
|
}
|
|
5766
5937
|
j(t) {
|
|
5767
|
-
this.element[this.name] = t ===
|
|
5938
|
+
this.element[this.name] = t === y ? void 0 : t;
|
|
5768
5939
|
}
|
|
5769
5940
|
}
|
|
5770
|
-
class
|
|
5941
|
+
class n8 extends v5 {
|
|
5771
5942
|
constructor() {
|
|
5772
5943
|
super(...arguments), this.type = 4;
|
|
5773
5944
|
}
|
|
5774
5945
|
j(t) {
|
|
5775
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
5946
|
+
this.element.toggleAttribute(this.name, !!t && t !== y);
|
|
5776
5947
|
}
|
|
5777
5948
|
}
|
|
5778
|
-
class
|
|
5949
|
+
class l8 extends v5 {
|
|
5779
5950
|
constructor(t, e, s, r, C) {
|
|
5780
5951
|
super(t, e, s, r, C), this.type = 5;
|
|
5781
5952
|
}
|
|
5782
5953
|
_$AI(t, e = this) {
|
|
5783
|
-
if ((t = e1(this, t, e, 0) ??
|
|
5784
|
-
const s = this._$AH, r = t ===
|
|
5954
|
+
if ((t = e1(this, t, e, 0) ?? y) === B1) return;
|
|
5955
|
+
const s = this._$AH, r = t === y && s !== y || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, C = t !== y && (s === y || r);
|
|
5785
5956
|
r && this.element.removeEventListener(this.name, this, s), C && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
5786
5957
|
}
|
|
5787
5958
|
handleEvent(t) {
|
|
@@ -5789,7 +5960,7 @@ class n8 extends v5 {
|
|
|
5789
5960
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
5790
5961
|
}
|
|
5791
5962
|
}
|
|
5792
|
-
class
|
|
5963
|
+
class a8 {
|
|
5793
5964
|
constructor(t, e, s) {
|
|
5794
5965
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
5795
5966
|
}
|
|
@@ -5807,13 +5978,13 @@ W2 == null || W2(k1, u5), (n5.litHtmlVersions ?? (n5.litHtmlVersions = [])).push
|
|
|
5807
5978
|
* Copyright 2018 Google LLC
|
|
5808
5979
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5809
5980
|
*/
|
|
5810
|
-
const S = (o) => o ??
|
|
5811
|
-
var
|
|
5981
|
+
const S = (o) => o ?? y;
|
|
5982
|
+
var c8 = Object.defineProperty, h8 = Object.getOwnPropertyDescriptor, b = (o, t, e, s) => {
|
|
5812
5983
|
for (var r = s > 1 ? void 0 : s ? h8(t, e) : t, C = o.length - 1, i; C >= 0; C--)
|
|
5813
5984
|
(i = o[C]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
5814
|
-
return s && r &&
|
|
5985
|
+
return s && r && c8(t, e, r), r;
|
|
5815
5986
|
};
|
|
5816
|
-
let
|
|
5987
|
+
let d8 = 0;
|
|
5817
5988
|
var L;
|
|
5818
5989
|
const _ = (L = class extends Z {
|
|
5819
5990
|
// allows use of elementInternals' API
|
|
@@ -5850,7 +6021,7 @@ const _ = (L = class extends Z {
|
|
|
5850
6021
|
}
|
|
5851
6022
|
/******************** Functions ********************/
|
|
5852
6023
|
_generateUniqueId() {
|
|
5853
|
-
return `nys-button-${Date.now()}-${
|
|
6024
|
+
return `nys-button-${Date.now()}-${d8++}`;
|
|
5854
6025
|
}
|
|
5855
6026
|
_manageFormAction(o) {
|
|
5856
6027
|
typeof this.onClick == "function" && this.onClick(o);
|
|
@@ -5942,12 +6113,12 @@ const _ = (L = class extends Z {
|
|
|
5942
6113
|
"outline",
|
|
5943
6114
|
"ghost",
|
|
5944
6115
|
"text"
|
|
5945
|
-
], L.VALID_TYPES = ["submit", "reset", "button"], L.styles =
|
|
6116
|
+
], L.VALID_TYPES = ["submit", "reset", "button"], L.styles = k0, L.formAssociated = !0, L);
|
|
5946
6117
|
b([
|
|
5947
6118
|
m({ type: String })
|
|
5948
6119
|
], _.prototype, "id", 2);
|
|
5949
6120
|
b([
|
|
5950
|
-
m({ type: String })
|
|
6121
|
+
m({ type: String, reflect: !0 })
|
|
5951
6122
|
], _.prototype, "name", 2);
|
|
5952
6123
|
b([
|
|
5953
6124
|
m({ reflect: !0 })
|
|
@@ -5988,14 +6159,14 @@ b([
|
|
|
5988
6159
|
b([
|
|
5989
6160
|
m({ type: String })
|
|
5990
6161
|
], _.prototype, "href", 2);
|
|
5991
|
-
let
|
|
5992
|
-
customElements.get("nys-button") || customElements.define("nys-button",
|
|
5993
|
-
var
|
|
5994
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6162
|
+
let p8 = _;
|
|
6163
|
+
customElements.get("nys-button") || customElements.define("nys-button", p8);
|
|
6164
|
+
var u8 = Object.defineProperty, v8 = Object.getOwnPropertyDescriptor, q = (o, t, e, s) => {
|
|
6165
|
+
for (var r = s > 1 ? void 0 : s ? v8(t, e) : t, C = o.length - 1, i; C >= 0; C--)
|
|
5995
6166
|
(i = o[C]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
5996
|
-
return s && r &&
|
|
6167
|
+
return s && r && u8(t, e, r), r;
|
|
5997
6168
|
};
|
|
5998
|
-
const
|
|
6169
|
+
const I5 = class I5 extends Z {
|
|
5999
6170
|
constructor() {
|
|
6000
6171
|
super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
|
|
6001
6172
|
["English", ""],
|
|
@@ -6228,31 +6399,31 @@ const D5 = class D5 extends Z {
|
|
|
6228
6399
|
`;
|
|
6229
6400
|
}
|
|
6230
6401
|
};
|
|
6231
|
-
|
|
6232
|
-
let
|
|
6402
|
+
I5.styles = Z7;
|
|
6403
|
+
let x = I5;
|
|
6233
6404
|
q([
|
|
6234
|
-
|
|
6235
|
-
],
|
|
6405
|
+
R({ type: Boolean })
|
|
6406
|
+
], x.prototype, "trustbarVisible", 2);
|
|
6236
6407
|
q([
|
|
6237
|
-
|
|
6238
|
-
],
|
|
6408
|
+
R({ type: Boolean })
|
|
6409
|
+
], x.prototype, "searchDropdownVisible", 2);
|
|
6239
6410
|
q([
|
|
6240
|
-
|
|
6241
|
-
],
|
|
6411
|
+
R({ type: Boolean })
|
|
6412
|
+
], x.prototype, "languageVisible", 2);
|
|
6242
6413
|
q([
|
|
6243
|
-
|
|
6244
|
-
],
|
|
6414
|
+
R({ type: Boolean })
|
|
6415
|
+
], x.prototype, "isSearchFocused", 2);
|
|
6245
6416
|
q([
|
|
6246
|
-
|
|
6247
|
-
],
|
|
6417
|
+
R({ type: Boolean })
|
|
6418
|
+
], x.prototype, "hideTranslate", 2);
|
|
6248
6419
|
q([
|
|
6249
|
-
|
|
6250
|
-
],
|
|
6420
|
+
R({ type: Boolean })
|
|
6421
|
+
], x.prototype, "hideSearch", 2);
|
|
6251
6422
|
q([
|
|
6252
|
-
|
|
6253
|
-
],
|
|
6254
|
-
customElements.get("nys-unavheader") || customElements.define("nys-unavheader",
|
|
6423
|
+
R({ type: String, reflect: !0 })
|
|
6424
|
+
], x.prototype, "screenSize", 1);
|
|
6425
|
+
customElements.get("nys-unavheader") || customElements.define("nys-unavheader", x);
|
|
6255
6426
|
export {
|
|
6256
|
-
|
|
6427
|
+
x as NysUnavHeader
|
|
6257
6428
|
};
|
|
6258
6429
|
//# sourceMappingURL=nys-unavheader.js.map
|