@nysds/components 1.5.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nysds.es.js +1632 -834
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +629 -198
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-accordion/src/index.d.ts +2 -0
- package/dist/packages/nys-accordion/src/nys-accordion.d.ts +22 -0
- package/dist/packages/nys-accordion/src/nys-accordion.styles.d.ts +2 -0
- package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +20 -0
- package/dist/packages/nys-badge/src/index.d.ts +1 -0
- package/dist/packages/nys-badge/src/nys-badge.d.ts +26 -0
- package/dist/packages/nys-badge/src/nys-badge.styles.d.ts +2 -0
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +8 -5
- package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +1 -0
- package/dist/packages/nys-label/src/nys-label.d.ts +1 -1
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +3 -2
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +12 -3
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +3 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +15 -11
package/dist/nysds.es.js
CHANGED
|
@@ -1,13 +1,304 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as r, state as
|
|
1
|
+
import { css as u, LitElement as y, html as a } from "lit";
|
|
2
|
+
import { property as r, query as X1, state as D } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined as h } from "lit/directives/if-defined.js";
|
|
4
4
|
/*!
|
|
5
|
-
* New York State Design System (v1.
|
|
5
|
+
* New York State Design System (v1.7.0)
|
|
6
6
|
* Description: A design system for New York State's digital products.
|
|
7
7
|
* Repository: https://github.com/its-hcd/nysds
|
|
8
8
|
* License: MIT
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const j1 = u`
|
|
11
|
+
:host {
|
|
12
|
+
/* Anything that can be overridden should be defined here */
|
|
13
|
+
|
|
14
|
+
/* Global Accordion Styles */
|
|
15
|
+
--_nys-accordion-width: fit-content;
|
|
16
|
+
--_nys-accordion-radius: var(--nys-radius-md, 4px);
|
|
17
|
+
--_nys-accordion-padding: var(--nys-space-200, 16px)
|
|
18
|
+
var(--nys-space-250, 20px);
|
|
19
|
+
--_nys-accordion-width-focus: var(--nys-border-width-md, 2px);
|
|
20
|
+
--_nys-accordion-offset-focus: var(--nys-space-2px, 2px);
|
|
21
|
+
--_nys-accordion-color-focus: var(--nys-color-focus, #004dd1);
|
|
22
|
+
--_nys-accordion-gap: var(--nys-space-100, 8px);
|
|
23
|
+
|
|
24
|
+
/* Header & Text container */
|
|
25
|
+
--_nys-accordion-heading-background: var(--nys-color-neutral-50, #ededed);
|
|
26
|
+
--_nys-accordion-heading-active-background: var(
|
|
27
|
+
--nys-color-neutral-100,
|
|
28
|
+
#d0d0ce
|
|
29
|
+
);
|
|
30
|
+
--_nys-accordion-heading-gap: var(--nys-space-200, 16px);
|
|
31
|
+
--_nys-accordion-content-background: var(--nys-color-ink-reverse, #fff);
|
|
32
|
+
--_nys-accordion-content-padding: var(--nys-space-200, 16px)
|
|
33
|
+
var(--local-xx-spacing-205, 20px);
|
|
34
|
+
|
|
35
|
+
/* Typography */
|
|
36
|
+
--_nys-accordion-font-size: var(--nys-type-size-ui-xl, 20px);
|
|
37
|
+
--_nys-accordion-font-weight: var(--nys-font-weight-bold, 700);
|
|
38
|
+
--_nys-accordion-line-height: var(--nys-font-lineheight-ui-xl, 28px);
|
|
39
|
+
--_nys-accordion-line-letterspacing: var(
|
|
40
|
+
--nys-font-letterspacing-ui-xl,
|
|
41
|
+
0.017px
|
|
42
|
+
);
|
|
43
|
+
--_nys-accordion-font-family: var(
|
|
44
|
+
--nys-font-family-ui,
|
|
45
|
+
var(
|
|
46
|
+
--nys-font-family-sans,
|
|
47
|
+
"Proxima Nova",
|
|
48
|
+
"Helvetica Neue",
|
|
49
|
+
"Helvetica",
|
|
50
|
+
"Arial",
|
|
51
|
+
sans-serif
|
|
52
|
+
)
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* CSS Resets */
|
|
57
|
+
::slotted(p),
|
|
58
|
+
p {
|
|
59
|
+
margin: 0 !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.nys-accordionitem {
|
|
63
|
+
font-family: var(--_nys-accordion-font-family);
|
|
64
|
+
font-size: var(--_nys-accordion-font-size);
|
|
65
|
+
font-weight: var(--_nys-accordion-font-weight);
|
|
66
|
+
line-height: var(--_nys-accordion-line-height);
|
|
67
|
+
letter-spacing: var(--_nys-accordion-line-letterspacing);
|
|
68
|
+
display: flex;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.nys-accordionitem__heading {
|
|
72
|
+
all: unset;
|
|
73
|
+
flex: 1;
|
|
74
|
+
gap: var(--_nys-accordion-heading-gap);
|
|
75
|
+
display: flex;
|
|
76
|
+
padding: var(--_nys-accordion-padding);
|
|
77
|
+
align-items: center;
|
|
78
|
+
align-self: stretch;
|
|
79
|
+
border-radius: var(--_nys-accordion-radius);
|
|
80
|
+
background: var(--_nys-accordion-heading-background);
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
transition: 0.05s all ease-in-out;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.nys-accordionitem__heading:hover {
|
|
86
|
+
border-radius: var(--_nys-accordion-radius);
|
|
87
|
+
background: var(--_nys-accordion-heading-active-background);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.nys-accordionitem__heading:focus-visible {
|
|
91
|
+
outline-offset: var(--_nys-accordion-offset-focus);
|
|
92
|
+
outline: solid var(--_nys-accordion-width-focus)
|
|
93
|
+
var(--_nys-accordion-color-focus);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.nys-accordionitem__heading .nys-accordionitem__heading-title {
|
|
97
|
+
flex: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/*** Content layer ***/
|
|
101
|
+
.nys-accordionitem__content {
|
|
102
|
+
height: 0;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
105
|
+
visibility: hidden;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nys-accordionitem__content.expanded {
|
|
109
|
+
/* Accordion JS code takes care of setting the exact calculated height so we can open exact px height */
|
|
110
|
+
visibility: visible;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.nys-accordionitem__content-slot-container {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
align-items: flex-start;
|
|
117
|
+
gap: var(--_nys-accordion-gap);
|
|
118
|
+
align-self: stretch;
|
|
119
|
+
padding: var(--_nys-accordion-content-padding);
|
|
120
|
+
background: var(--_nys-accordion-content-background);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.nys-accordionitem__content-slot-container-text {
|
|
124
|
+
max-width: 528px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/*** Expanded Styling ***/
|
|
128
|
+
.expand-icon {
|
|
129
|
+
transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
130
|
+
}
|
|
131
|
+
:host([expanded]) .expand-icon {
|
|
132
|
+
transform: rotate(180deg);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/*** Bordered Styling ***/
|
|
136
|
+
:host([bordered][expanded]) .nys-accordionitem__heading {
|
|
137
|
+
border-radius: var(--_nys-accordion-radius) var(--_nys-accordion-radius) 0 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:host([bordered]) .nys-accordionitem__content-slot-container {
|
|
141
|
+
border: var(--nys-border-width-md, 2px) solid
|
|
142
|
+
var(--nys-color-neutral-50, #ededed);
|
|
143
|
+
border-radius: 0 0 var(--_nys-accordion-radius) var(--_nys-accordion-radius);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/*** Accordion Wrapper ***/
|
|
147
|
+
.nys-accordion {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
gap: var(--_nys-accordion-gap);
|
|
151
|
+
}
|
|
152
|
+
`;
|
|
153
|
+
var Q1 = Object.defineProperty, x1 = (l, e, t, o) => {
|
|
154
|
+
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
155
|
+
(i = l[n]) && (s = i(e, t, s) || s);
|
|
156
|
+
return s && Q1(e, t, s), s;
|
|
157
|
+
};
|
|
158
|
+
let J1 = 0;
|
|
159
|
+
const I1 = class I1 extends y {
|
|
160
|
+
/**************** Lifecycle Methods ****************/
|
|
161
|
+
constructor() {
|
|
162
|
+
super(), this.id = "", this.heading = "", this.expanded = !1, this.bordered = !1;
|
|
163
|
+
}
|
|
164
|
+
connectedCallback() {
|
|
165
|
+
super.connectedCallback(), this.id || (this.id = this._generateUniqueId());
|
|
166
|
+
}
|
|
167
|
+
updated(e) {
|
|
168
|
+
e.has("expanded") && this._updateHeight();
|
|
169
|
+
}
|
|
170
|
+
/******************** Functions ********************/
|
|
171
|
+
_generateUniqueId() {
|
|
172
|
+
return `nys-accordionitem-${Date.now()}-${J1++}`;
|
|
173
|
+
}
|
|
174
|
+
_dispatchEvent() {
|
|
175
|
+
this.dispatchEvent(
|
|
176
|
+
new CustomEvent("nys-accordionitem-toggle", {
|
|
177
|
+
detail: { id: this.id, heading: this.heading, expanded: this.expanded },
|
|
178
|
+
bubbles: !0,
|
|
179
|
+
composed: !0
|
|
180
|
+
})
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
_handleExpand() {
|
|
184
|
+
this.expanded = !this.expanded, this._updateHeight(), this._dispatchEvent();
|
|
185
|
+
}
|
|
186
|
+
_handleKeydown(e) {
|
|
187
|
+
(e.key === " " || e.key === "Enter") && (e.preventDefault(), this._handleExpand());
|
|
188
|
+
}
|
|
189
|
+
_updateHeight() {
|
|
190
|
+
if (this._contentContainer)
|
|
191
|
+
if (this.expanded) {
|
|
192
|
+
const e = this._contentContainer.scrollHeight;
|
|
193
|
+
this._contentContainer.style.height = `${e}px`;
|
|
194
|
+
} else
|
|
195
|
+
this._contentContainer.style.height = "0", this._contentContainer.style.overflow = "hidden";
|
|
196
|
+
}
|
|
197
|
+
render() {
|
|
198
|
+
const e = `${this.id}-content`;
|
|
199
|
+
return a`<div id=${this.id} class="nys-accordionitem">
|
|
200
|
+
<button
|
|
201
|
+
class="nys-accordionitem__heading"
|
|
202
|
+
type="button"
|
|
203
|
+
@click=${this._handleExpand}
|
|
204
|
+
@keydown=${this._handleKeydown}
|
|
205
|
+
aria-expanded=${this.expanded ? "true" : "false"}
|
|
206
|
+
aria-controls=${e}
|
|
207
|
+
>
|
|
208
|
+
<p class="nys-accordionitem__heading-title">${this.heading}</p>
|
|
209
|
+
<nys-icon class="expand-icon" name="chevron_down" size="24"></nys-icon>
|
|
210
|
+
</div>
|
|
211
|
+
<div id=${e} class="nys-accordionitem__content ${this.expanded ? "expanded" : "collapsed"}" role="region">
|
|
212
|
+
<div class="nys-accordionitem__content-slot-container">
|
|
213
|
+
<div class="nys-accordionitem__content-slot-container-text">
|
|
214
|
+
<slot></slot>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>`;
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
I1.styles = j1;
|
|
222
|
+
let r1 = I1;
|
|
223
|
+
x1([
|
|
224
|
+
r({ type: String })
|
|
225
|
+
], r1.prototype, "id");
|
|
226
|
+
x1([
|
|
227
|
+
r({ type: String })
|
|
228
|
+
], r1.prototype, "heading");
|
|
229
|
+
x1([
|
|
230
|
+
r({ type: Boolean, reflect: !0 })
|
|
231
|
+
], r1.prototype, "expanded");
|
|
232
|
+
x1([
|
|
233
|
+
r({ type: Boolean, reflect: !0 })
|
|
234
|
+
], r1.prototype, "bordered");
|
|
235
|
+
x1([
|
|
236
|
+
X1(".nys-accordionitem__content")
|
|
237
|
+
], r1.prototype, "_contentContainer");
|
|
238
|
+
customElements.get("nys-accordionitem") || customElements.define("nys-accordionitem", r1);
|
|
239
|
+
var ee = Object.defineProperty, z1 = (l, e, t, o) => {
|
|
240
|
+
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
241
|
+
(i = l[n]) && (s = i(e, t, s) || s);
|
|
242
|
+
return s && ee(e, t, s), s;
|
|
243
|
+
};
|
|
244
|
+
let te = 0;
|
|
245
|
+
const A1 = class A1 extends y {
|
|
246
|
+
/**************** Lifecycle Methods ****************/
|
|
247
|
+
constructor() {
|
|
248
|
+
super(), this.id = "", this.singleSelect = !1, this.bordered = !1;
|
|
249
|
+
}
|
|
250
|
+
connectedCallback() {
|
|
251
|
+
super.connectedCallback(), this.id || (this.id = this._generateUniqueId());
|
|
252
|
+
}
|
|
253
|
+
updated(e) {
|
|
254
|
+
e.has("bordered") && this._applyBordered();
|
|
255
|
+
}
|
|
256
|
+
/******************** Functions ********************/
|
|
257
|
+
_generateUniqueId() {
|
|
258
|
+
return `nys-accordionitem-${Date.now()}-${te++}`;
|
|
259
|
+
}
|
|
260
|
+
_getAccordions() {
|
|
261
|
+
var o;
|
|
262
|
+
const e = (o = this.shadowRoot) == null ? void 0 : o.querySelector("slot");
|
|
263
|
+
return ((e == null ? void 0 : e.assignedElements()) || []).filter(
|
|
264
|
+
(s) => s.tagName.toLowerCase() === "nys-accordionitem"
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
_onAccordionToggle(e) {
|
|
268
|
+
if (!this.singleSelect) return;
|
|
269
|
+
const t = e.detail.id;
|
|
270
|
+
e.detail.expanded && this._getAccordions().forEach((s) => {
|
|
271
|
+
s.id !== t && s.expanded && (s.expanded = !1);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
_applyBordered() {
|
|
275
|
+
this._getAccordions().forEach((e) => {
|
|
276
|
+
e.bordered = this.bordered;
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
render() {
|
|
280
|
+
return a`<div
|
|
281
|
+
id=${this.id}
|
|
282
|
+
class="nys-accordion"
|
|
283
|
+
@nys-accordionitem-toggle=${this._onAccordionToggle}
|
|
284
|
+
>
|
|
285
|
+
<slot></slot>
|
|
286
|
+
</div>`;
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
A1.styles = j1;
|
|
290
|
+
let p1 = A1;
|
|
291
|
+
z1([
|
|
292
|
+
r({ type: String })
|
|
293
|
+
], p1.prototype, "id");
|
|
294
|
+
z1([
|
|
295
|
+
r({ type: Boolean, reflect: !0 })
|
|
296
|
+
], p1.prototype, "singleSelect");
|
|
297
|
+
z1([
|
|
298
|
+
r({ type: Boolean, reflect: !0 })
|
|
299
|
+
], p1.prototype, "bordered");
|
|
300
|
+
customElements.get("nys-accordion") || customElements.define("nys-accordion", p1);
|
|
301
|
+
const se = u`
|
|
11
302
|
:host {
|
|
12
303
|
/* Global Alert Styles */
|
|
13
304
|
--_nys-alert-border-width: var(--nys-border-width-lg, 4px);
|
|
@@ -238,14 +529,14 @@ const q1 = g`
|
|
|
238
529
|
text-decoration-thickness: 3px;
|
|
239
530
|
}
|
|
240
531
|
`;
|
|
241
|
-
var
|
|
242
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
532
|
+
var oe = Object.defineProperty, re = Object.getOwnPropertyDescriptor, V = (l, e, t, o) => {
|
|
533
|
+
for (var s = o > 1 ? void 0 : o ? re(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
243
534
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
244
|
-
return o && s &&
|
|
535
|
+
return o && s && oe(e, t, s), s;
|
|
245
536
|
};
|
|
246
|
-
let
|
|
247
|
-
var
|
|
248
|
-
const
|
|
537
|
+
let ne = 0;
|
|
538
|
+
var t1;
|
|
539
|
+
const S = (t1 = class extends y {
|
|
249
540
|
constructor() {
|
|
250
541
|
super(...arguments), this.id = "", this.heading = "", this.icon = "", this.dismissible = !1, this.duration = 0, this.text = "", this.primaryAction = "", this.secondaryAction = "", this.primaryLabel = "Learn more", this.secondaryLabel = "Dismiss", this._alertClosed = !1, this._slotHasContent = !0, this._type = "base", this._timeoutId = null;
|
|
251
542
|
}
|
|
@@ -253,7 +544,7 @@ const k = (J = class extends u {
|
|
|
253
544
|
return this._type;
|
|
254
545
|
}
|
|
255
546
|
set type(e) {
|
|
256
|
-
this._type =
|
|
547
|
+
this._type = t1.VALID_TYPES.includes(
|
|
257
548
|
e
|
|
258
549
|
) ? e : "base";
|
|
259
550
|
}
|
|
@@ -276,7 +567,7 @@ const k = (J = class extends u {
|
|
|
276
567
|
}
|
|
277
568
|
/******************** Functions ********************/
|
|
278
569
|
_generateUniqueId() {
|
|
279
|
-
return `nys-alert-${Date.now()}-${
|
|
570
|
+
return `nys-alert-${Date.now()}-${ne++}`;
|
|
280
571
|
}
|
|
281
572
|
// Helper function for overriding default icons or checking special naming cases (e.g. type=success)
|
|
282
573
|
_getIconName() {
|
|
@@ -287,7 +578,7 @@ const k = (J = class extends u {
|
|
|
287
578
|
}
|
|
288
579
|
_closeAlert() {
|
|
289
580
|
this._alertClosed = !0, this.dispatchEvent(
|
|
290
|
-
new CustomEvent("nys-
|
|
581
|
+
new CustomEvent("nys-alert-closed", {
|
|
291
582
|
detail: { type: this.type, label: this.heading },
|
|
292
583
|
bubbles: !0,
|
|
293
584
|
composed: !0
|
|
@@ -315,7 +606,6 @@ const k = (J = class extends u {
|
|
|
315
606
|
${this._alertClosed ? "" : a` <div
|
|
316
607
|
id=${this.id}
|
|
317
608
|
class="nys-alert__container ${this._slotHasContent || ((o = this.text) == null ? void 0 : o.trim().length) > 0 ? "" : "nys-alert--centered"}"
|
|
318
|
-
role=${e}
|
|
319
609
|
aria-label=${h(
|
|
320
610
|
t.trim() !== "" ? t : void 0
|
|
321
611
|
)}
|
|
@@ -327,7 +617,7 @@ const k = (J = class extends u {
|
|
|
327
617
|
label="${this.type} icon"
|
|
328
618
|
></nys-icon>
|
|
329
619
|
</div>
|
|
330
|
-
<div class="nys-alert__texts">
|
|
620
|
+
<div class="nys-alert__texts" role=${e}>
|
|
331
621
|
<p class="nys-alert__header">${this.heading}</p>
|
|
332
622
|
${this._slotHasContent ? a`<slot></slot>` : ((s = this.text) == null ? void 0 : s.trim().length) > 0 ? a`<p class="nys-alert__text">${this.text}</p>` : ""}
|
|
333
623
|
${this.primaryAction || this.secondaryAction ? a`<div class="nys-alert__actions">
|
|
@@ -352,62 +642,62 @@ const k = (J = class extends u {
|
|
|
352
642
|
icon="close"
|
|
353
643
|
size="sm"
|
|
354
644
|
?inverted=${this.type === "emergency"}
|
|
355
|
-
ariaLabel="
|
|
645
|
+
ariaLabel="${this.heading}, alert, Close"
|
|
356
646
|
.onClick=${() => this._closeAlert()}
|
|
357
647
|
></nys-button>` : ""}
|
|
358
648
|
</div>`}
|
|
359
649
|
`;
|
|
360
650
|
}
|
|
361
|
-
},
|
|
651
|
+
}, t1.styles = se, t1.VALID_TYPES = [
|
|
362
652
|
"base",
|
|
363
653
|
"info",
|
|
364
654
|
"success",
|
|
365
655
|
"warning",
|
|
366
656
|
"danger",
|
|
367
657
|
"emergency"
|
|
368
|
-
],
|
|
658
|
+
], t1);
|
|
369
659
|
V([
|
|
370
660
|
r({ type: String })
|
|
371
|
-
],
|
|
661
|
+
], S.prototype, "id", 2);
|
|
372
662
|
V([
|
|
373
663
|
r({ type: String })
|
|
374
|
-
],
|
|
664
|
+
], S.prototype, "heading", 2);
|
|
375
665
|
V([
|
|
376
666
|
r({ type: String })
|
|
377
|
-
],
|
|
667
|
+
], S.prototype, "icon", 2);
|
|
378
668
|
V([
|
|
379
669
|
r({ type: Boolean, reflect: !0 })
|
|
380
|
-
],
|
|
670
|
+
], S.prototype, "dismissible", 2);
|
|
381
671
|
V([
|
|
382
672
|
r({ type: Number, reflect: !0 })
|
|
383
|
-
],
|
|
673
|
+
], S.prototype, "duration", 2);
|
|
384
674
|
V([
|
|
385
675
|
r({ type: String })
|
|
386
|
-
],
|
|
676
|
+
], S.prototype, "text", 2);
|
|
387
677
|
V([
|
|
388
678
|
r({ type: String })
|
|
389
|
-
],
|
|
679
|
+
], S.prototype, "primaryAction", 2);
|
|
390
680
|
V([
|
|
391
681
|
r({ type: String })
|
|
392
|
-
],
|
|
682
|
+
], S.prototype, "secondaryAction", 2);
|
|
393
683
|
V([
|
|
394
684
|
r({ type: String })
|
|
395
|
-
],
|
|
685
|
+
], S.prototype, "primaryLabel", 2);
|
|
396
686
|
V([
|
|
397
687
|
r({ type: String })
|
|
398
|
-
],
|
|
688
|
+
], S.prototype, "secondaryLabel", 2);
|
|
399
689
|
V([
|
|
400
|
-
|
|
401
|
-
],
|
|
690
|
+
D()
|
|
691
|
+
], S.prototype, "_alertClosed", 2);
|
|
402
692
|
V([
|
|
403
|
-
|
|
404
|
-
],
|
|
693
|
+
D()
|
|
694
|
+
], S.prototype, "_slotHasContent", 2);
|
|
405
695
|
V([
|
|
406
696
|
r({ reflect: !0 })
|
|
407
|
-
],
|
|
408
|
-
let
|
|
409
|
-
customElements.get("nys-alert") || customElements.define("nys-alert",
|
|
410
|
-
const
|
|
697
|
+
], S.prototype, "type", 1);
|
|
698
|
+
let ie = S;
|
|
699
|
+
customElements.get("nys-alert") || customElements.define("nys-alert", ie);
|
|
700
|
+
const ae = u`
|
|
411
701
|
:host {
|
|
412
702
|
/* Global Avatar Styles */
|
|
413
703
|
--_nys-avatar-shape: var(--nys-radius-round, 1776px);
|
|
@@ -475,14 +765,14 @@ const T1 = g`
|
|
|
475
765
|
fill: currentColor;
|
|
476
766
|
}
|
|
477
767
|
`;
|
|
478
|
-
var
|
|
479
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
768
|
+
var le = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, J = (l, e, t, o) => {
|
|
769
|
+
for (var s = o > 1 ? void 0 : o ? ce(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
480
770
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
481
|
-
return o && s &&
|
|
771
|
+
return o && s && le(e, t, s), s;
|
|
482
772
|
};
|
|
483
|
-
let
|
|
484
|
-
var
|
|
485
|
-
const
|
|
773
|
+
let de = 0;
|
|
774
|
+
var s1;
|
|
775
|
+
const F = (s1 = class extends y {
|
|
486
776
|
constructor() {
|
|
487
777
|
super(...arguments), this.id = "", this.ariaLabel = "", this.image = "", this.initials = "", this.icon = "", this.color = "#555", this.lazy = !1, this._shape = "circle", this._slotHasContent = !0;
|
|
488
778
|
}
|
|
@@ -491,14 +781,14 @@ const R = (e1 = class extends u {
|
|
|
491
781
|
}
|
|
492
782
|
// Setter for the `shape` property.
|
|
493
783
|
set shape(e) {
|
|
494
|
-
this._shape =
|
|
784
|
+
this._shape = s1.VALID_SHAPES.includes(
|
|
495
785
|
e
|
|
496
786
|
) ? e : "circle", this.requestUpdate("shape");
|
|
497
787
|
}
|
|
498
788
|
/******************** Functions ********************/
|
|
499
789
|
// Generate a unique ID if one is not provided
|
|
500
790
|
connectedCallback() {
|
|
501
|
-
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${
|
|
791
|
+
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${de++}`);
|
|
502
792
|
}
|
|
503
793
|
firstUpdated() {
|
|
504
794
|
this._checkSlotContent();
|
|
@@ -558,41 +848,41 @@ const R = (e1 = class extends u {
|
|
|
558
848
|
</label>
|
|
559
849
|
`;
|
|
560
850
|
}
|
|
561
|
-
},
|
|
851
|
+
}, s1.styles = ae, s1.VALID_SHAPES = [
|
|
562
852
|
"square",
|
|
563
853
|
"rounded",
|
|
564
854
|
"circle"
|
|
565
|
-
],
|
|
566
|
-
|
|
855
|
+
], s1);
|
|
856
|
+
J([
|
|
567
857
|
r({ type: String })
|
|
568
|
-
],
|
|
569
|
-
|
|
858
|
+
], F.prototype, "id", 2);
|
|
859
|
+
J([
|
|
570
860
|
r({ type: String })
|
|
571
|
-
],
|
|
572
|
-
|
|
861
|
+
], F.prototype, "ariaLabel", 2);
|
|
862
|
+
J([
|
|
573
863
|
r({ type: String })
|
|
574
|
-
],
|
|
575
|
-
|
|
864
|
+
], F.prototype, "image", 2);
|
|
865
|
+
J([
|
|
576
866
|
r({ type: String })
|
|
577
|
-
],
|
|
578
|
-
|
|
867
|
+
], F.prototype, "initials", 2);
|
|
868
|
+
J([
|
|
579
869
|
r({ type: String })
|
|
580
|
-
],
|
|
581
|
-
|
|
870
|
+
], F.prototype, "icon", 2);
|
|
871
|
+
J([
|
|
582
872
|
r({ type: String })
|
|
583
|
-
],
|
|
584
|
-
|
|
873
|
+
], F.prototype, "color", 2);
|
|
874
|
+
J([
|
|
585
875
|
r({ type: Boolean, reflect: !0 })
|
|
586
|
-
],
|
|
587
|
-
|
|
876
|
+
], F.prototype, "lazy", 2);
|
|
877
|
+
J([
|
|
588
878
|
r({ reflect: !0 })
|
|
589
|
-
],
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
],
|
|
593
|
-
let
|
|
594
|
-
customElements.get("nys-avatar") || customElements.define("nys-avatar",
|
|
595
|
-
const
|
|
879
|
+
], F.prototype, "shape", 1);
|
|
880
|
+
J([
|
|
881
|
+
D()
|
|
882
|
+
], F.prototype, "_slotHasContent", 2);
|
|
883
|
+
let he = F;
|
|
884
|
+
customElements.get("nys-avatar") || customElements.define("nys-avatar", he);
|
|
885
|
+
const ye = u`
|
|
596
886
|
:host {
|
|
597
887
|
}
|
|
598
888
|
|
|
@@ -618,12 +908,12 @@ const Y1 = g`
|
|
|
618
908
|
display: inline-flex;
|
|
619
909
|
}
|
|
620
910
|
`;
|
|
621
|
-
var
|
|
911
|
+
var ue = Object.defineProperty, $1 = (l, e, t, o) => {
|
|
622
912
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
623
913
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
624
|
-
return s &&
|
|
914
|
+
return s && ue(e, t, s), s;
|
|
625
915
|
};
|
|
626
|
-
const
|
|
916
|
+
const Z1 = class Z1 extends y {
|
|
627
917
|
constructor() {
|
|
628
918
|
super(), this.position = "right", this.visible = !1, this.isMobile = !1, this.forceVisible = !1, this._handleScroll = this._handleScroll.bind(this), this._handleResize = this._handleResize.bind(this), this.mediaQuery = window.matchMedia("(max-width: 480px)");
|
|
629
919
|
}
|
|
@@ -662,22 +952,22 @@ const k1 = class k1 extends u {
|
|
|
662
952
|
></nys-button>`;
|
|
663
953
|
}
|
|
664
954
|
};
|
|
665
|
-
|
|
666
|
-
let
|
|
667
|
-
|
|
955
|
+
Z1.styles = ye;
|
|
956
|
+
let l1 = Z1;
|
|
957
|
+
$1([
|
|
668
958
|
r({ type: String })
|
|
669
|
-
],
|
|
670
|
-
|
|
959
|
+
], l1.prototype, "position");
|
|
960
|
+
$1([
|
|
671
961
|
r({ type: Boolean, reflect: !0 })
|
|
672
|
-
],
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
],
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
],
|
|
679
|
-
customElements.get("nys-backtotop") || customElements.define("nys-backtotop",
|
|
680
|
-
const
|
|
962
|
+
], l1.prototype, "visible");
|
|
963
|
+
$1([
|
|
964
|
+
D()
|
|
965
|
+
], l1.prototype, "isMobile");
|
|
966
|
+
$1([
|
|
967
|
+
D()
|
|
968
|
+
], l1.prototype, "forceVisible");
|
|
969
|
+
customElements.get("nys-backtotop") || customElements.define("nys-backtotop", l1);
|
|
970
|
+
const pe = u`
|
|
681
971
|
:host {
|
|
682
972
|
/* Anything that can be overridden should be defined here */
|
|
683
973
|
|
|
@@ -1087,7 +1377,9 @@ const K1 = g`
|
|
|
1087
1377
|
cursor: not-allowed;
|
|
1088
1378
|
}
|
|
1089
1379
|
|
|
1090
|
-
.nys-button
|
|
1380
|
+
/* The .active-focus comes from components that wants to focus on the <nys-button>'s inner native button (e.g. <nys-fileinput> for form validation) */
|
|
1381
|
+
.nys-button:focus-visible,
|
|
1382
|
+
.active-focus {
|
|
1091
1383
|
outline-offset: var(--_nys-button-offset-focus);
|
|
1092
1384
|
outline: solid var(--_nys-button-width-focus) var(--_nys-button-color-focus);
|
|
1093
1385
|
}
|
|
@@ -1098,14 +1390,14 @@ const K1 = g`
|
|
|
1098
1390
|
user-select: none;
|
|
1099
1391
|
}
|
|
1100
1392
|
`;
|
|
1101
|
-
var
|
|
1102
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
1393
|
+
var ge = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, C = (l, e, t, o) => {
|
|
1394
|
+
for (var s = o > 1 ? void 0 : o ? fe(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
1103
1395
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1104
|
-
return o && s &&
|
|
1396
|
+
return o && s && ge(e, t, s), s;
|
|
1105
1397
|
};
|
|
1106
|
-
let
|
|
1107
|
-
var
|
|
1108
|
-
const f = (
|
|
1398
|
+
let ve = 0;
|
|
1399
|
+
var k;
|
|
1400
|
+
const f = (k = class extends y {
|
|
1109
1401
|
// allows use of elementInternals' API
|
|
1110
1402
|
constructor() {
|
|
1111
1403
|
super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.ariaLabel = "", this.prefixIcon = "", this.suffixIcon = "", this.circle = !1, this.icon = "", this.disabled = !1, this.form = "", this.value = "", this.ariaDescription = "", this._type = "button", this.onClick = () => {
|
|
@@ -1115,7 +1407,7 @@ const f = (w = class extends u {
|
|
|
1115
1407
|
return this._size;
|
|
1116
1408
|
}
|
|
1117
1409
|
set size(e) {
|
|
1118
|
-
this._size =
|
|
1410
|
+
this._size = k.VALID_SIZES.includes(
|
|
1119
1411
|
e
|
|
1120
1412
|
) ? e : "md";
|
|
1121
1413
|
}
|
|
@@ -1123,7 +1415,7 @@ const f = (w = class extends u {
|
|
|
1123
1415
|
return this._variant;
|
|
1124
1416
|
}
|
|
1125
1417
|
set variant(e) {
|
|
1126
|
-
this._variant =
|
|
1418
|
+
this._variant = k.VALID_VARIANTS.includes(
|
|
1127
1419
|
e
|
|
1128
1420
|
) ? e : "filled";
|
|
1129
1421
|
}
|
|
@@ -1131,7 +1423,7 @@ const f = (w = class extends u {
|
|
|
1131
1423
|
return this._type;
|
|
1132
1424
|
}
|
|
1133
1425
|
set type(e) {
|
|
1134
|
-
this._type =
|
|
1426
|
+
this._type = k.VALID_TYPES.includes(
|
|
1135
1427
|
e
|
|
1136
1428
|
) ? e : "button";
|
|
1137
1429
|
}
|
|
@@ -1139,7 +1431,7 @@ const f = (w = class extends u {
|
|
|
1139
1431
|
return this._target;
|
|
1140
1432
|
}
|
|
1141
1433
|
set target(e) {
|
|
1142
|
-
this._target =
|
|
1434
|
+
this._target = k.VALID_TARGETS.includes(
|
|
1143
1435
|
e
|
|
1144
1436
|
) ? e : "_self";
|
|
1145
1437
|
}
|
|
@@ -1148,7 +1440,7 @@ const f = (w = class extends u {
|
|
|
1148
1440
|
}
|
|
1149
1441
|
/******************** Functions ********************/
|
|
1150
1442
|
_generateUniqueId() {
|
|
1151
|
-
return `nys-button-${Date.now()}-${
|
|
1443
|
+
return `nys-button-${Date.now()}-${ve++}`;
|
|
1152
1444
|
}
|
|
1153
1445
|
_manageFormAction(e) {
|
|
1154
1446
|
typeof this.onClick == "function" && this.onClick(e);
|
|
@@ -1170,7 +1462,9 @@ const f = (w = class extends u {
|
|
|
1170
1462
|
}
|
|
1171
1463
|
// Handle blur event
|
|
1172
1464
|
_handleBlur() {
|
|
1173
|
-
|
|
1465
|
+
var t;
|
|
1466
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".nys-button");
|
|
1467
|
+
e == null || e.classList.remove("active-focus"), this.dispatchEvent(new Event("nys-blur"));
|
|
1174
1468
|
}
|
|
1175
1469
|
_handleClick(e) {
|
|
1176
1470
|
if (this.disabled) {
|
|
@@ -1181,7 +1475,16 @@ const f = (w = class extends u {
|
|
|
1181
1475
|
}
|
|
1182
1476
|
// Handle keydown for keyboard accessibility
|
|
1183
1477
|
_handleKeydown(e) {
|
|
1184
|
-
(e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Enter")
|
|
1478
|
+
if (e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Enter") {
|
|
1479
|
+
if (this.disabled) return;
|
|
1480
|
+
if (e.preventDefault(), this.href) {
|
|
1481
|
+
const t = this.renderRoot.querySelector(
|
|
1482
|
+
"a.nys-button"
|
|
1483
|
+
);
|
|
1484
|
+
t && t.click();
|
|
1485
|
+
} else
|
|
1486
|
+
this.click();
|
|
1487
|
+
}
|
|
1185
1488
|
}
|
|
1186
1489
|
render() {
|
|
1187
1490
|
return a`
|
|
@@ -1204,11 +1507,14 @@ const f = (w = class extends u {
|
|
|
1204
1507
|
@click=${this._handleClick}
|
|
1205
1508
|
@focus="${this._handleFocus}"
|
|
1206
1509
|
@blur="${this._handleBlur}"
|
|
1510
|
+
@keydown="${this._handleKeydown}"
|
|
1511
|
+
role="button"
|
|
1512
|
+
tabindex="${this.disabled ? -1 : 0}"
|
|
1207
1513
|
>
|
|
1208
1514
|
${this.prefixIcon && this.variant !== "text" ? a`<slot name="prefix-icon">
|
|
1209
1515
|
<nys-icon size="16" name=${this.prefixIcon}></nys-icon>
|
|
1210
1516
|
</slot>` : ""}
|
|
1211
|
-
${this.label && !this.circle ? a`<
|
|
1517
|
+
${this.label && !this.circle ? a`<div class="nys-button__text">${this.label}</div>` : ""}
|
|
1212
1518
|
${this.suffixIcon && this.variant !== "text" ? a`<slot name="suffix-icon">
|
|
1213
1519
|
<nys-icon size="16" name=${this.suffixIcon}></nys-icon>
|
|
1214
1520
|
</slot>` : ""}
|
|
@@ -1237,11 +1543,12 @@ const f = (w = class extends u {
|
|
|
1237
1543
|
@focus="${this._handleFocus}"
|
|
1238
1544
|
@blur="${this._handleBlur}"
|
|
1239
1545
|
@keydown="${this._handleKeydown}"
|
|
1546
|
+
role="button"
|
|
1240
1547
|
>
|
|
1241
1548
|
${this.prefixIcon && this.variant !== "text" ? a`<slot name="prefix-icon">
|
|
1242
1549
|
<nys-icon size="16" name=${this.prefixIcon}></nys-icon>
|
|
1243
1550
|
</slot>` : ""}
|
|
1244
|
-
${this.label && !this.circle ? a`<
|
|
1551
|
+
${this.label && !this.circle ? a`<div class="nys-button__text">${this.label}</div>` : ""}
|
|
1245
1552
|
${this.suffixIcon && this.variant !== "text" ? a`<slot name="suffix-icon">
|
|
1246
1553
|
<nys-icon size="16" name=${this.suffixIcon}></nys-icon>
|
|
1247
1554
|
</slot>` : ""}
|
|
@@ -1255,81 +1562,256 @@ const f = (w = class extends u {
|
|
|
1255
1562
|
`}
|
|
1256
1563
|
`;
|
|
1257
1564
|
}
|
|
1258
|
-
},
|
|
1565
|
+
}, k.VALID_SIZES = ["sm", "md", "lg"], k.VALID_VARIANTS = [
|
|
1259
1566
|
"filled",
|
|
1260
1567
|
"outline",
|
|
1261
1568
|
"ghost",
|
|
1262
1569
|
"text"
|
|
1263
|
-
],
|
|
1570
|
+
], k.VALID_TYPES = ["submit", "reset", "button"], k.VALID_TARGETS = [
|
|
1264
1571
|
"_self",
|
|
1265
1572
|
"_blank",
|
|
1266
1573
|
"_parent",
|
|
1267
1574
|
"_top",
|
|
1268
1575
|
"framename"
|
|
1269
|
-
],
|
|
1270
|
-
|
|
1576
|
+
], k.styles = pe, k.formAssociated = !0, k);
|
|
1577
|
+
C([
|
|
1271
1578
|
r({ type: String })
|
|
1272
1579
|
], f.prototype, "id", 2);
|
|
1273
|
-
|
|
1580
|
+
C([
|
|
1274
1581
|
r({ type: String, reflect: !0 })
|
|
1275
1582
|
], f.prototype, "name", 2);
|
|
1276
|
-
|
|
1583
|
+
C([
|
|
1277
1584
|
r({ reflect: !0 })
|
|
1278
1585
|
], f.prototype, "size", 1);
|
|
1279
|
-
|
|
1586
|
+
C([
|
|
1280
1587
|
r({ type: Boolean, reflect: !0 })
|
|
1281
1588
|
], f.prototype, "fullWidth", 2);
|
|
1282
|
-
|
|
1589
|
+
C([
|
|
1283
1590
|
r({ reflect: !0 })
|
|
1284
1591
|
], f.prototype, "variant", 1);
|
|
1285
|
-
|
|
1592
|
+
C([
|
|
1286
1593
|
r({ type: Boolean, reflect: !0 })
|
|
1287
1594
|
], f.prototype, "inverted", 2);
|
|
1288
|
-
|
|
1595
|
+
C([
|
|
1289
1596
|
r({ type: String })
|
|
1290
1597
|
], f.prototype, "label", 2);
|
|
1291
|
-
|
|
1598
|
+
C([
|
|
1292
1599
|
r({ type: String })
|
|
1293
1600
|
], f.prototype, "ariaLabel", 2);
|
|
1294
|
-
|
|
1601
|
+
C([
|
|
1295
1602
|
r({ type: String })
|
|
1296
1603
|
], f.prototype, "prefixIcon", 2);
|
|
1297
|
-
|
|
1604
|
+
C([
|
|
1298
1605
|
r({ type: String })
|
|
1299
1606
|
], f.prototype, "suffixIcon", 2);
|
|
1300
|
-
|
|
1607
|
+
C([
|
|
1301
1608
|
r({ type: Boolean, reflect: !0 })
|
|
1302
1609
|
], f.prototype, "circle", 2);
|
|
1303
|
-
|
|
1610
|
+
C([
|
|
1304
1611
|
r({ type: String })
|
|
1305
1612
|
], f.prototype, "icon", 2);
|
|
1306
|
-
|
|
1613
|
+
C([
|
|
1307
1614
|
r({ type: Boolean, reflect: !0 })
|
|
1308
1615
|
], f.prototype, "disabled", 2);
|
|
1309
|
-
|
|
1616
|
+
C([
|
|
1310
1617
|
r({ type: String })
|
|
1311
1618
|
], f.prototype, "form", 2);
|
|
1312
|
-
|
|
1619
|
+
C([
|
|
1313
1620
|
r({ type: String })
|
|
1314
1621
|
], f.prototype, "value", 2);
|
|
1315
|
-
|
|
1622
|
+
C([
|
|
1316
1623
|
r({ type: String })
|
|
1317
1624
|
], f.prototype, "ariaDescription", 2);
|
|
1318
|
-
|
|
1625
|
+
C([
|
|
1319
1626
|
r({ reflect: !0 })
|
|
1320
1627
|
], f.prototype, "type", 1);
|
|
1321
|
-
|
|
1628
|
+
C([
|
|
1322
1629
|
r({ type: Function })
|
|
1323
1630
|
], f.prototype, "onClick", 2);
|
|
1324
|
-
|
|
1631
|
+
C([
|
|
1325
1632
|
r({ type: String })
|
|
1326
1633
|
], f.prototype, "href", 2);
|
|
1327
|
-
|
|
1634
|
+
C([
|
|
1328
1635
|
r({ reflect: !0 })
|
|
1329
1636
|
], f.prototype, "target", 1);
|
|
1330
|
-
let
|
|
1331
|
-
customElements.get("nys-button") || customElements.define("nys-button",
|
|
1332
|
-
const
|
|
1637
|
+
let Ce = f;
|
|
1638
|
+
customElements.get("nys-button") || customElements.define("nys-button", Ce);
|
|
1639
|
+
const _e = u`
|
|
1640
|
+
:host {
|
|
1641
|
+
/* Anything that can be overridden should be defined here */
|
|
1642
|
+
|
|
1643
|
+
/* Global Badge Styles */
|
|
1644
|
+
--_nys-badge-width: fit-content;
|
|
1645
|
+
--_nys-badge-height: var(--nys-size-600, 48px);
|
|
1646
|
+
--_nys-badge-radius: var(--nys-radius-round, 1776px);
|
|
1647
|
+
--_nys-badge-padding: var(--nys-space-2-px, 2px) var(--nys-space-100, 8px);
|
|
1648
|
+
--_nys-badge-gap: var(--nys-space-50, 4px);
|
|
1649
|
+
--_nys-badge-background-color: var(--nys-color-base-weak, #f6f6f6);
|
|
1650
|
+
--_nys-badge-border-color: var(--nys-color-base, #62666a);
|
|
1651
|
+
--_nys-badge-border-width: var(--nys-border-width-sm, 1px);
|
|
1652
|
+
|
|
1653
|
+
/* Typography */
|
|
1654
|
+
--_nys-badge-font-size: var(--nys-font-size-ui-sm, 14px);
|
|
1655
|
+
--_nys-badge-font-weight: var(--nys-font-weight-semibold, 600);
|
|
1656
|
+
--_nys-badge-line-height: var(--nys-font-lineheight-ui-sm, 24px);
|
|
1657
|
+
--_nys-badge-font-family: var(
|
|
1658
|
+
--nys-font-family-ui,
|
|
1659
|
+
var(
|
|
1660
|
+
--nys-font-family-sans,
|
|
1661
|
+
"Proxima Nova",
|
|
1662
|
+
"Helvetica Neue",
|
|
1663
|
+
"Helvetica",
|
|
1664
|
+
"Arial",
|
|
1665
|
+
sans-serif
|
|
1666
|
+
)
|
|
1667
|
+
);
|
|
1668
|
+
|
|
1669
|
+
/* Prefix Font Size */
|
|
1670
|
+
--_nys-badge-prefix-font-weight: var(--nys-font-weight-regular, 400);
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
/* Sizes */
|
|
1674
|
+
:host([size="sm"]) {
|
|
1675
|
+
--_nys-badge-font-size: var(--nys-font-size-ui-xs, 12px);
|
|
1676
|
+
--_nys-badge-line-height: var(--nys-font-lineheight-ui-xs, 20px);
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
/* Intent */
|
|
1680
|
+
:host([intent="neutral"]) {
|
|
1681
|
+
--_nys-badge-background-color: var(--nys-color-base-weak, #f6f6f6);
|
|
1682
|
+
--_nys-badge-border-color: var(--nys-color-base, #62666a);
|
|
1683
|
+
}
|
|
1684
|
+
:host([intent="error"]) {
|
|
1685
|
+
--_nys-badge-background-color: var(--nys-color-error-weak, #f7eaea);
|
|
1686
|
+
--_nys-badge-border-color: var(--nys-color-error-strong, #721c1c);
|
|
1687
|
+
}
|
|
1688
|
+
:host([intent="success"]) {
|
|
1689
|
+
--_nys-badge-background-color: var(--nys-color-success-weak, #e8f1ea);
|
|
1690
|
+
--_nys-badge-border-color: var(--nys-color-success-strong, #0f3d18);
|
|
1691
|
+
}
|
|
1692
|
+
:host([intent="warning"]) {
|
|
1693
|
+
--_nys-badge-background-color: var(--nys-color-warning-weak, #fefae5);
|
|
1694
|
+
--_nys-badge-border-color: var(--nys-color-warning-strong, #6a5700);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
.nys-badge {
|
|
1698
|
+
display: flex;
|
|
1699
|
+
width: fit-content;
|
|
1700
|
+
align-items: center;
|
|
1701
|
+
justify-content: center;
|
|
1702
|
+
gap: var(--_nys-badge-gap);
|
|
1703
|
+
padding: var(--_nys-badge-padding);
|
|
1704
|
+
border: var(--_nys-badge-border-width) solid var(--_nys-badge-border-color);
|
|
1705
|
+
background-color: var(--_nys-badge-background-color);
|
|
1706
|
+
border-radius: var(--_nys-badge-radius);
|
|
1707
|
+
font-family: var(--_nys-badge-font-family);
|
|
1708
|
+
font-size: var(--_nys-badge-font-size);
|
|
1709
|
+
font-weight: var(--_nys-badge-font-weight);
|
|
1710
|
+
line-height: var(--_nys-badge-line-height);
|
|
1711
|
+
cursor: default;
|
|
1712
|
+
--nys-icon-color: var(--_nys-badge-border-color);
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
.nys-badge__prefix {
|
|
1716
|
+
font-weight: var(--_nys-badge-prefix-font-weight);
|
|
1717
|
+
}
|
|
1718
|
+
`;
|
|
1719
|
+
var be = Object.defineProperty, me = Object.getOwnPropertyDescriptor, i1 = (l, e, t, o) => {
|
|
1720
|
+
for (var s = o > 1 ? void 0 : o ? me(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
1721
|
+
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1722
|
+
return o && s && be(e, t, s), s;
|
|
1723
|
+
}, I;
|
|
1724
|
+
const e1 = (I = class extends y {
|
|
1725
|
+
constructor() {
|
|
1726
|
+
super(...arguments), this.id = "", this.name = "", this._size = "md", this._intent = "neutral", this.prefixLabel = "", this.label = "", this._prefixIcon = "", this._suffixIcon = "";
|
|
1727
|
+
}
|
|
1728
|
+
get size() {
|
|
1729
|
+
return this._size;
|
|
1730
|
+
}
|
|
1731
|
+
set size(e) {
|
|
1732
|
+
this._size = I.VALID_SIZES.includes(
|
|
1733
|
+
e
|
|
1734
|
+
) ? e : "md";
|
|
1735
|
+
}
|
|
1736
|
+
get intent() {
|
|
1737
|
+
return this._intent;
|
|
1738
|
+
}
|
|
1739
|
+
set intent(e) {
|
|
1740
|
+
this._intent = I.VALID_INTENT.includes(
|
|
1741
|
+
e
|
|
1742
|
+
) ? e : "neutral";
|
|
1743
|
+
}
|
|
1744
|
+
get prefixIcon() {
|
|
1745
|
+
return this._prefixIcon;
|
|
1746
|
+
}
|
|
1747
|
+
set prefixIcon(e) {
|
|
1748
|
+
e === "" || e === null ? this._prefixIcon = !0 : e === "false" || e === !1 ? this._prefixIcon = "" : this._prefixIcon = e;
|
|
1749
|
+
}
|
|
1750
|
+
get suffixIcon() {
|
|
1751
|
+
return this._suffixIcon;
|
|
1752
|
+
}
|
|
1753
|
+
set suffixIcon(e) {
|
|
1754
|
+
e === "" || e === null ? this._suffixIcon = !0 : e === "false" || e === !1 ? this._suffixIcon = "" : this._suffixIcon = e;
|
|
1755
|
+
}
|
|
1756
|
+
connectedCallback() {
|
|
1757
|
+
super.connectedCallback();
|
|
1758
|
+
const e = this.getAttribute("prefixicon");
|
|
1759
|
+
e !== null && this.prefixIcon === "" && (this.prefixIcon = e);
|
|
1760
|
+
const t = this.getAttribute("suffixicon");
|
|
1761
|
+
t !== null && this.suffixIcon === "" && (this.suffixIcon = t);
|
|
1762
|
+
}
|
|
1763
|
+
resolveIcon(e) {
|
|
1764
|
+
return e === !0 ? I.DEFAULT_ICONS[this.intent] ?? "info" : typeof e == "string" && e.trim() !== "" ? e : null;
|
|
1765
|
+
}
|
|
1766
|
+
render() {
|
|
1767
|
+
const e = this.resolveIcon(this.prefixIcon), t = this.resolveIcon(this.suffixIcon);
|
|
1768
|
+
return a`
|
|
1769
|
+
<div class="nys-badge">
|
|
1770
|
+
${e ? a`<nys-icon size="16" name=${e}></nys-icon>` : ""}
|
|
1771
|
+
${this.prefixLabel ? a`<div class="nys-badge__prefix">${this.prefixLabel}</div>` : ""}
|
|
1772
|
+
<div class="nys-badge__label">${this.label}</div>
|
|
1773
|
+
${t ? a`<nys-icon size="16" name=${t}></nys-icon>` : ""}
|
|
1774
|
+
</div>
|
|
1775
|
+
`;
|
|
1776
|
+
}
|
|
1777
|
+
}, I.VALID_SIZES = ["sm", "md"], I.VALID_INTENT = [
|
|
1778
|
+
"neutral",
|
|
1779
|
+
"error",
|
|
1780
|
+
"success",
|
|
1781
|
+
"warning"
|
|
1782
|
+
], I.styles = _e, I.DEFAULT_ICONS = {
|
|
1783
|
+
neutral: "info",
|
|
1784
|
+
error: "emergency_home",
|
|
1785
|
+
success: "check_circle",
|
|
1786
|
+
warning: "warning"
|
|
1787
|
+
}, I);
|
|
1788
|
+
i1([
|
|
1789
|
+
r({ type: String })
|
|
1790
|
+
], e1.prototype, "id", 2);
|
|
1791
|
+
i1([
|
|
1792
|
+
r({ type: String, reflect: !0 })
|
|
1793
|
+
], e1.prototype, "name", 2);
|
|
1794
|
+
i1([
|
|
1795
|
+
r({ reflect: !0 })
|
|
1796
|
+
], e1.prototype, "size", 1);
|
|
1797
|
+
i1([
|
|
1798
|
+
r({ reflect: !0 })
|
|
1799
|
+
], e1.prototype, "intent", 1);
|
|
1800
|
+
i1([
|
|
1801
|
+
r({ type: String })
|
|
1802
|
+
], e1.prototype, "prefixLabel", 2);
|
|
1803
|
+
i1([
|
|
1804
|
+
r({ type: String })
|
|
1805
|
+
], e1.prototype, "label", 2);
|
|
1806
|
+
i1([
|
|
1807
|
+
r({ type: String, attribute: "prefixicon" })
|
|
1808
|
+
], e1.prototype, "prefixIcon", 1);
|
|
1809
|
+
i1([
|
|
1810
|
+
r({ type: String, attribute: "suffixicon" })
|
|
1811
|
+
], e1.prototype, "suffixIcon", 1);
|
|
1812
|
+
let xe = e1;
|
|
1813
|
+
customElements.get("nys-badge") || customElements.define("nys-badge", xe);
|
|
1814
|
+
const G1 = u`
|
|
1333
1815
|
:host {
|
|
1334
1816
|
/* Anything that can be overridden should be defined here */
|
|
1335
1817
|
|
|
@@ -1624,13 +2106,17 @@ const H1 = g`
|
|
|
1624
2106
|
}
|
|
1625
2107
|
|
|
1626
2108
|
/* Hover + Checked */
|
|
2109
|
+
.nys-checkbox__checkbox:hover:not(:disabled):checked {
|
|
2110
|
+
border-color: var(--_nys-checkbox-checked-hover-color-border);
|
|
2111
|
+
background-color: var(--_nys-checkbox-checked-hover-color-bg);
|
|
2112
|
+
}
|
|
1627
2113
|
:host([tile])
|
|
1628
2114
|
.nys-checkbox:hover:has(.nys-checkbox__checkbox:not(:disabled):checked) {
|
|
1629
2115
|
outline: solid var(--_nys-checkbox-tile-border-width)
|
|
1630
2116
|
var(--_nys-checkbox-checked-tile-border-color);
|
|
1631
2117
|
}
|
|
1632
2118
|
|
|
1633
|
-
/* Pressed -
|
|
2119
|
+
/* Pressed - not checked */
|
|
1634
2120
|
.nys-checkbox__checkbox:active:not(:disabled):not(:checked) {
|
|
1635
2121
|
background-color: var(--_nys-checkbox-pressed-color-bg);
|
|
1636
2122
|
border-color: var(--_nys-checkbox-pressed-color-border);
|
|
@@ -1645,12 +2131,18 @@ const H1 = g`
|
|
|
1645
2131
|
var(--_nys-checkbox-pressed-tile-border-color);
|
|
1646
2132
|
}
|
|
1647
2133
|
|
|
2134
|
+
/* Pressed + Checked */
|
|
2135
|
+
.nys-checkbox__checkbox:active:not(:disabled):checked {
|
|
2136
|
+
border-color: var(--_nys-checkbox-checked-pressed-color-border);
|
|
2137
|
+
background-color: var(--_nys-checkbox-checked-pressed-color-bg);
|
|
2138
|
+
}
|
|
2139
|
+
|
|
1648
2140
|
/* Focused */
|
|
1649
|
-
:host(:not([tile])) .nys-checkbox__checkbox:focus
|
|
2141
|
+
:host(:not([tile])) .nys-checkbox__checkbox:focus {
|
|
1650
2142
|
outline: solid var(--_nys-checkbox-width-focus)
|
|
1651
2143
|
var(--_nys-checkbox-color-focus);
|
|
1652
2144
|
}
|
|
1653
|
-
:host([tile]) .nys-checkbox:has(*:focus
|
|
2145
|
+
:host([tile]) .nys-checkbox:has(*:focus) {
|
|
1654
2146
|
outline: solid var(--_nys-checkbox-tile-border-width)
|
|
1655
2147
|
var(--_nys-checkbox-color-focus) !important;
|
|
1656
2148
|
border-color: var(--_nys-checkbox-color-focus) !important;
|
|
@@ -1683,41 +2175,58 @@ const H1 = g`
|
|
|
1683
2175
|
}
|
|
1684
2176
|
|
|
1685
2177
|
.nys-checkbox__requiredwrapper {
|
|
1686
|
-
display:
|
|
2178
|
+
display: flex;
|
|
2179
|
+
gap: 3px;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
/* Screen readers ONLY */
|
|
2183
|
+
fieldset {
|
|
2184
|
+
all: unset;
|
|
2185
|
+
display: contents;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
.sr-only {
|
|
2189
|
+
position: absolute;
|
|
2190
|
+
width: 1px;
|
|
2191
|
+
height: 1px;
|
|
2192
|
+
padding: 0;
|
|
2193
|
+
margin: -1px;
|
|
2194
|
+
overflow: hidden;
|
|
2195
|
+
border: 0;
|
|
1687
2196
|
}
|
|
1688
2197
|
`;
|
|
1689
|
-
var
|
|
1690
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
2198
|
+
var we = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, P = (l, e, t, o) => {
|
|
2199
|
+
for (var s = o > 1 ? void 0 : o ? ke(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
1691
2200
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1692
|
-
return o && s &&
|
|
2201
|
+
return o && s && we(e, t, s), s;
|
|
1693
2202
|
};
|
|
1694
|
-
let
|
|
1695
|
-
var
|
|
1696
|
-
const
|
|
2203
|
+
let Le = 0;
|
|
2204
|
+
var G;
|
|
2205
|
+
const A = (G = class extends y {
|
|
1697
2206
|
// allows use of elementInternals' API
|
|
1698
2207
|
constructor() {
|
|
1699
|
-
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._size = "md", this._internals = this.attachInternals();
|
|
2208
|
+
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._slottedDescriptionText = "", this._size = "md", this._internals = this.attachInternals();
|
|
1700
2209
|
}
|
|
1701
2210
|
get size() {
|
|
1702
2211
|
return this._size;
|
|
1703
2212
|
}
|
|
1704
2213
|
set size(e) {
|
|
1705
|
-
this._size =
|
|
2214
|
+
this._size = G.VALID_SIZES.includes(
|
|
1706
2215
|
e
|
|
1707
2216
|
) ? e : "md";
|
|
1708
2217
|
}
|
|
1709
2218
|
// Generate a unique ID if one is not provided
|
|
1710
2219
|
connectedCallback() {
|
|
1711
|
-
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${
|
|
2220
|
+
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${Le++}`), this.addEventListener("nys-change", this._handleCheckboxChange), this.addEventListener("invalid", this._handleInvalid);
|
|
1712
2221
|
}
|
|
1713
2222
|
disconnectedCallback() {
|
|
1714
2223
|
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleCheckboxChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
1715
2224
|
}
|
|
1716
2225
|
firstUpdated() {
|
|
1717
|
-
this._setGroupExist(), this.
|
|
2226
|
+
this._setGroupExist(), this._updateCheckboxSize(), this._updateCheckboxTile(), this._updateCheckboxShowError(), this._getSlotDescriptionForAria();
|
|
1718
2227
|
}
|
|
1719
2228
|
updated(e) {
|
|
1720
|
-
e.has("required") && this.required && this._setupCheckboxRequired(), e.has("size") && this.
|
|
2229
|
+
e.has("required") && this.required && this._setupCheckboxRequired(), e.has("size") && this._updateCheckboxSize(), e.has("tile") && this._updateCheckboxTile(), e.has("showError") && this._updateCheckboxShowError();
|
|
1721
2230
|
}
|
|
1722
2231
|
/********************** Functions **********************/
|
|
1723
2232
|
_setGroupExist() {
|
|
@@ -1725,24 +2234,6 @@ const B = (j = class extends u {
|
|
|
1725
2234
|
t.groupExist = !0;
|
|
1726
2235
|
});
|
|
1727
2236
|
}
|
|
1728
|
-
async _handleInvalid(e) {
|
|
1729
|
-
e.preventDefault(), this.showError = !0, this._manageCheckboxRequired();
|
|
1730
|
-
const t = this.querySelector("nys-checkbox"), o = t ? await t.getInputElement() : null;
|
|
1731
|
-
if (o) {
|
|
1732
|
-
const s = this._internals.form;
|
|
1733
|
-
s ? Array.from(s.elements).find((c) => {
|
|
1734
|
-
if (c.tagName.toLowerCase() === "nys-checkboxgroup") {
|
|
1735
|
-
if (Array.from(
|
|
1736
|
-
this.querySelectorAll("nys-checkbox")
|
|
1737
|
-
).filter(
|
|
1738
|
-
(S) => S.checked
|
|
1739
|
-
).length === 0)
|
|
1740
|
-
return c;
|
|
1741
|
-
} else
|
|
1742
|
-
return typeof c.checkValidity == "function" && !c.checkValidity();
|
|
1743
|
-
}) === this && o.focus() : o.focus();
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
2237
|
// Initial update on checkbox required attribute
|
|
1747
2238
|
async _setupCheckboxRequired() {
|
|
1748
2239
|
const e = this.querySelector("nys-checkbox"), t = this.errorMessage || "This field is required", o = e ? await e.getInputElement() : null;
|
|
@@ -1752,11 +2243,6 @@ const B = (j = class extends u {
|
|
|
1752
2243
|
o || this
|
|
1753
2244
|
);
|
|
1754
2245
|
}
|
|
1755
|
-
// Similar to how native forms handle multiple same-name fields, we group the selected values into a list for FormData.
|
|
1756
|
-
_handleCheckboxChange(e) {
|
|
1757
|
-
const t = e, { name: o } = t.detail, n = Array.from(this.querySelectorAll("nys-checkbox")).filter((i) => i.checked).map((i) => i.value);
|
|
1758
|
-
this.name = o, this._internals.setFormValue(n.join(", ")), this._manageCheckboxRequired();
|
|
1759
|
-
}
|
|
1760
2246
|
// Updates the required attribute of each checkbox in the group
|
|
1761
2247
|
async _manageCheckboxRequired() {
|
|
1762
2248
|
if (this.required) {
|
|
@@ -1772,82 +2258,127 @@ const B = (j = class extends u {
|
|
|
1772
2258
|
}
|
|
1773
2259
|
}
|
|
1774
2260
|
// Updates the size of each checkbox in the group
|
|
1775
|
-
|
|
2261
|
+
_updateCheckboxSize() {
|
|
1776
2262
|
this.querySelectorAll("nys-checkbox").forEach((t) => {
|
|
1777
2263
|
t.setAttribute("size", this.size);
|
|
1778
2264
|
});
|
|
1779
2265
|
}
|
|
1780
|
-
|
|
2266
|
+
_updateCheckboxTile() {
|
|
1781
2267
|
this.querySelectorAll("nys-checkbox").forEach((t) => {
|
|
1782
2268
|
this.tile ? t.toggleAttribute("tile", !0) : t.removeAttribute("tile");
|
|
1783
2269
|
});
|
|
1784
2270
|
}
|
|
1785
|
-
|
|
2271
|
+
_updateCheckboxShowError() {
|
|
1786
2272
|
this.querySelectorAll("nys-checkbox").forEach((t) => {
|
|
1787
2273
|
this.showError ? t.setAttribute("showError", "") : t.removeAttribute("showError");
|
|
1788
2274
|
});
|
|
1789
2275
|
}
|
|
2276
|
+
// Get the slotted text contents so native VO can attempt to announce it within the legend in the fieldset
|
|
2277
|
+
_getSlotDescriptionForAria() {
|
|
2278
|
+
var o;
|
|
2279
|
+
const e = (o = this.shadowRoot) == null ? void 0 : o.querySelector(
|
|
2280
|
+
'slot[name="description"]'
|
|
2281
|
+
), t = (e == null ? void 0 : e.assignedNodes({ flatten: !0 })) || [];
|
|
2282
|
+
this._slottedDescriptionText = t.map((s) => {
|
|
2283
|
+
var n;
|
|
2284
|
+
return (n = s.textContent) == null ? void 0 : n.trim();
|
|
2285
|
+
}).filter(Boolean).join(", ");
|
|
2286
|
+
}
|
|
2287
|
+
async _handleInvalid(e) {
|
|
2288
|
+
e.preventDefault(), this.showError = !0, this._manageCheckboxRequired();
|
|
2289
|
+
const t = this.querySelector("nys-checkbox"), o = t ? await t.getInputElement() : null;
|
|
2290
|
+
if (o) {
|
|
2291
|
+
const s = this._internals.form;
|
|
2292
|
+
s ? Array.from(s.elements).find((c) => {
|
|
2293
|
+
if (c.tagName.toLowerCase() === "nys-checkboxgroup") {
|
|
2294
|
+
if (Array.from(
|
|
2295
|
+
this.querySelectorAll("nys-checkbox")
|
|
2296
|
+
).filter(
|
|
2297
|
+
(L) => L.checked
|
|
2298
|
+
).length === 0)
|
|
2299
|
+
return c;
|
|
2300
|
+
} else
|
|
2301
|
+
return typeof c.checkValidity == "function" && !c.checkValidity();
|
|
2302
|
+
}) === this && o.focus() : o.focus();
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
/******************** Event Handlers ********************/
|
|
2306
|
+
// Similar to how native forms handle multiple same-name fields, we group the selected values into a list for FormData.
|
|
2307
|
+
_handleCheckboxChange(e) {
|
|
2308
|
+
const t = e, { name: o } = t.detail, n = Array.from(this.querySelectorAll("nys-checkbox")).filter((i) => i.checked).map((i) => i.value);
|
|
2309
|
+
this.name = o, this._internals.setFormValue(n.join(", ")), this._manageCheckboxRequired();
|
|
2310
|
+
}
|
|
1790
2311
|
render() {
|
|
1791
|
-
return a`
|
|
1792
|
-
<nys-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
<
|
|
2312
|
+
return a`
|
|
2313
|
+
<div class="nys-checkboxgroup">
|
|
2314
|
+
<nys-label
|
|
2315
|
+
for=${this.id}
|
|
2316
|
+
label=${this.label}
|
|
2317
|
+
description=${this.description}
|
|
2318
|
+
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
2319
|
+
>
|
|
2320
|
+
<slot name="description" slot="description">${this.description}</slot>
|
|
2321
|
+
</nys-label>
|
|
2322
|
+
<div class="nys-checkboxgroup__content">
|
|
2323
|
+
<fieldset>
|
|
2324
|
+
<legend class="sr-only">
|
|
2325
|
+
${this.label}${this._slottedDescriptionText ? ` ${this._slottedDescriptionText}` : this.description ? ` ${this.description}` : ""}
|
|
2326
|
+
</legend>
|
|
2327
|
+
<slot></slot>
|
|
2328
|
+
</fieldset>
|
|
2329
|
+
</div>
|
|
2330
|
+
<nys-errormessage
|
|
2331
|
+
?showError=${this.showError}
|
|
2332
|
+
errorMessage=${this._internals.validationMessage || this.errorMessage}
|
|
2333
|
+
.showDivider=${!this.tile}
|
|
2334
|
+
></nys-errormessage>
|
|
1802
2335
|
</div>
|
|
1803
|
-
|
|
1804
|
-
?showError=${this.showError}
|
|
1805
|
-
errorMessage=${this._internals.validationMessage || this.errorMessage}
|
|
1806
|
-
.showDivider=${!this.tile}
|
|
1807
|
-
></nys-errormessage>
|
|
1808
|
-
</div>`;
|
|
2336
|
+
`;
|
|
1809
2337
|
}
|
|
1810
|
-
},
|
|
1811
|
-
|
|
2338
|
+
}, G.VALID_SIZES = ["sm", "md"], G.styles = G1, G.formAssociated = !0, G);
|
|
2339
|
+
P([
|
|
1812
2340
|
r({ type: String })
|
|
1813
|
-
],
|
|
1814
|
-
|
|
2341
|
+
], A.prototype, "id", 2);
|
|
2342
|
+
P([
|
|
1815
2343
|
r({ type: String, reflect: !0 })
|
|
1816
|
-
],
|
|
1817
|
-
|
|
2344
|
+
], A.prototype, "name", 2);
|
|
2345
|
+
P([
|
|
1818
2346
|
r({ type: Boolean, reflect: !0 })
|
|
1819
|
-
],
|
|
1820
|
-
|
|
2347
|
+
], A.prototype, "required", 2);
|
|
2348
|
+
P([
|
|
1821
2349
|
r({ type: Boolean, reflect: !0 })
|
|
1822
|
-
],
|
|
1823
|
-
|
|
2350
|
+
], A.prototype, "optional", 2);
|
|
2351
|
+
P([
|
|
1824
2352
|
r({ type: Boolean, reflect: !0 })
|
|
1825
|
-
],
|
|
1826
|
-
|
|
2353
|
+
], A.prototype, "showError", 2);
|
|
2354
|
+
P([
|
|
1827
2355
|
r({ type: String })
|
|
1828
|
-
],
|
|
1829
|
-
|
|
2356
|
+
], A.prototype, "errorMessage", 2);
|
|
2357
|
+
P([
|
|
1830
2358
|
r({ type: String })
|
|
1831
|
-
],
|
|
1832
|
-
|
|
2359
|
+
], A.prototype, "label", 2);
|
|
2360
|
+
P([
|
|
1833
2361
|
r({ type: String })
|
|
1834
|
-
],
|
|
1835
|
-
|
|
2362
|
+
], A.prototype, "description", 2);
|
|
2363
|
+
P([
|
|
1836
2364
|
r({ type: Boolean, reflect: !0 })
|
|
1837
|
-
],
|
|
1838
|
-
|
|
2365
|
+
], A.prototype, "tile", 2);
|
|
2366
|
+
P([
|
|
2367
|
+
D()
|
|
2368
|
+
], A.prototype, "_slottedDescriptionText", 2);
|
|
2369
|
+
P([
|
|
1839
2370
|
r({ reflect: !0 })
|
|
1840
|
-
],
|
|
1841
|
-
let
|
|
1842
|
-
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup",
|
|
1843
|
-
var
|
|
1844
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
2371
|
+
], A.prototype, "size", 1);
|
|
2372
|
+
let Se = A;
|
|
2373
|
+
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", Se);
|
|
2374
|
+
var $e = Object.defineProperty, De = Object.getOwnPropertyDescriptor, M = (l, e, t, o) => {
|
|
2375
|
+
for (var s = o > 1 ? void 0 : o ? De(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
1845
2376
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1846
|
-
return o && s &&
|
|
2377
|
+
return o && s && $e(e, t, s), s;
|
|
1847
2378
|
};
|
|
1848
|
-
let
|
|
1849
|
-
var
|
|
1850
|
-
const
|
|
2379
|
+
let Ve = 0;
|
|
2380
|
+
var Y;
|
|
2381
|
+
const $ = (Y = class extends y {
|
|
1851
2382
|
// allows use of elementInternals' API
|
|
1852
2383
|
constructor() {
|
|
1853
2384
|
super(), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this.showError = !1, this.errorMessage = "", this.groupExist = !1, this.tile = !1, this._size = "md", this._internals = this.attachInternals();
|
|
@@ -1856,7 +2387,7 @@ const L = (G = class extends u {
|
|
|
1856
2387
|
return this._size;
|
|
1857
2388
|
}
|
|
1858
2389
|
set size(e) {
|
|
1859
|
-
this._size =
|
|
2390
|
+
this._size = Y.VALID_SIZES.includes(
|
|
1860
2391
|
e
|
|
1861
2392
|
) ? e : "md";
|
|
1862
2393
|
}
|
|
@@ -1866,7 +2397,7 @@ const L = (G = class extends u {
|
|
|
1866
2397
|
}
|
|
1867
2398
|
// Generate a unique ID if one is not provided
|
|
1868
2399
|
connectedCallback() {
|
|
1869
|
-
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${
|
|
2400
|
+
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${Ve++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
1870
2401
|
}
|
|
1871
2402
|
disconnectedCallback() {
|
|
1872
2403
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -1972,6 +2503,7 @@ const L = (G = class extends u {
|
|
|
1972
2503
|
aria-checked="${this.checked}"
|
|
1973
2504
|
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
1974
2505
|
aria-required="${this.required}"
|
|
2506
|
+
aria-describedby="group-info"
|
|
1975
2507
|
@change="${this._handleChange}"
|
|
1976
2508
|
@focus="${this._handleFocus}"
|
|
1977
2509
|
@blur="${this._handleBlur}"
|
|
@@ -1986,14 +2518,12 @@ const L = (G = class extends u {
|
|
|
1986
2518
|
</div>
|
|
1987
2519
|
${this.label && a` <div class="nys-checkbox__text">
|
|
1988
2520
|
<div class="nys-checkbox__requiredwrapper">
|
|
1989
|
-
<
|
|
1990
|
-
|
|
1991
|
-
>
|
|
1992
|
-
${this.required ? a`<label class="nys-checkbox__required">*</label>` : ""}
|
|
2521
|
+
<div class="nys-checkbox__label">${this.label}</div>
|
|
2522
|
+
${this.required ? a`<div class="nys-checkbox__required">*</div>` : ""}
|
|
1993
2523
|
</div>
|
|
1994
|
-
<
|
|
2524
|
+
<div class="nys-checkbox__description">
|
|
1995
2525
|
<slot name="description">${this.description}</slot>
|
|
1996
|
-
</
|
|
2526
|
+
</div>
|
|
1997
2527
|
</div>`}
|
|
1998
2528
|
</label>
|
|
1999
2529
|
${((e = this.parentElement) == null ? void 0 : e.tagName.toLowerCase()) !== "nys-checkboxgroup" ? a`<nys-errormessage
|
|
@@ -2004,49 +2534,49 @@ const L = (G = class extends u {
|
|
|
2004
2534
|
></nys-errormessage>` : ""}
|
|
2005
2535
|
`;
|
|
2006
2536
|
}
|
|
2007
|
-
},
|
|
2008
|
-
|
|
2537
|
+
}, Y.VALID_SIZES = ["sm", "md"], Y.styles = G1, Y.formAssociated = !0, Y);
|
|
2538
|
+
M([
|
|
2009
2539
|
r({ type: Boolean, reflect: !0 })
|
|
2010
|
-
],
|
|
2011
|
-
|
|
2540
|
+
], $.prototype, "checked", 2);
|
|
2541
|
+
M([
|
|
2012
2542
|
r({ type: Boolean, reflect: !0 })
|
|
2013
|
-
],
|
|
2014
|
-
|
|
2543
|
+
], $.prototype, "disabled", 2);
|
|
2544
|
+
M([
|
|
2015
2545
|
r({ type: Boolean, reflect: !0 })
|
|
2016
|
-
],
|
|
2017
|
-
|
|
2546
|
+
], $.prototype, "required", 2);
|
|
2547
|
+
M([
|
|
2018
2548
|
r({ type: String })
|
|
2019
|
-
],
|
|
2020
|
-
|
|
2549
|
+
], $.prototype, "label", 2);
|
|
2550
|
+
M([
|
|
2021
2551
|
r({ type: String })
|
|
2022
|
-
],
|
|
2023
|
-
|
|
2552
|
+
], $.prototype, "description", 2);
|
|
2553
|
+
M([
|
|
2024
2554
|
r({ type: String })
|
|
2025
|
-
],
|
|
2026
|
-
|
|
2555
|
+
], $.prototype, "id", 2);
|
|
2556
|
+
M([
|
|
2027
2557
|
r({ type: String, reflect: !0 })
|
|
2028
|
-
],
|
|
2029
|
-
|
|
2558
|
+
], $.prototype, "name", 2);
|
|
2559
|
+
M([
|
|
2030
2560
|
r({ type: String })
|
|
2031
|
-
],
|
|
2032
|
-
|
|
2561
|
+
], $.prototype, "value", 2);
|
|
2562
|
+
M([
|
|
2033
2563
|
r({ type: Boolean, reflect: !0 })
|
|
2034
|
-
],
|
|
2035
|
-
|
|
2564
|
+
], $.prototype, "showError", 2);
|
|
2565
|
+
M([
|
|
2036
2566
|
r({ type: String })
|
|
2037
|
-
],
|
|
2038
|
-
|
|
2567
|
+
], $.prototype, "errorMessage", 2);
|
|
2568
|
+
M([
|
|
2039
2569
|
r({ type: Boolean })
|
|
2040
|
-
],
|
|
2041
|
-
|
|
2570
|
+
], $.prototype, "groupExist", 2);
|
|
2571
|
+
M([
|
|
2042
2572
|
r({ type: Boolean, reflect: !0 })
|
|
2043
|
-
],
|
|
2044
|
-
|
|
2573
|
+
], $.prototype, "tile", 2);
|
|
2574
|
+
M([
|
|
2045
2575
|
r({ reflect: !0 })
|
|
2046
|
-
],
|
|
2047
|
-
let
|
|
2048
|
-
customElements.get("nys-checkbox") || customElements.define("nys-checkbox",
|
|
2049
|
-
const
|
|
2576
|
+
], $.prototype, "size", 1);
|
|
2577
|
+
let Me = $;
|
|
2578
|
+
customElements.get("nys-checkbox") || customElements.define("nys-checkbox", Me);
|
|
2579
|
+
const ze = u`
|
|
2050
2580
|
:host {
|
|
2051
2581
|
--_nys-errormessage-font-family: var(
|
|
2052
2582
|
--nys-font-family-ui,
|
|
@@ -2099,12 +2629,12 @@ const ce = g`
|
|
|
2099
2629
|
var(--_nys-errormessage-color);
|
|
2100
2630
|
}
|
|
2101
2631
|
`;
|
|
2102
|
-
var
|
|
2632
|
+
var Ee = Object.defineProperty, E1 = (l, e, t, o) => {
|
|
2103
2633
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2104
2634
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2105
|
-
return s &&
|
|
2635
|
+
return s && Ee(e, t, s), s;
|
|
2106
2636
|
};
|
|
2107
|
-
const
|
|
2637
|
+
const L1 = class L1 extends y {
|
|
2108
2638
|
// allows use of elementInternals' API
|
|
2109
2639
|
constructor() {
|
|
2110
2640
|
super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
|
|
@@ -2116,19 +2646,19 @@ const f1 = class f1 extends u {
|
|
|
2116
2646
|
</div>` : ""}`;
|
|
2117
2647
|
}
|
|
2118
2648
|
};
|
|
2119
|
-
|
|
2120
|
-
let
|
|
2121
|
-
|
|
2649
|
+
L1.styles = ze, L1.formAssociated = !0;
|
|
2650
|
+
let g1 = L1;
|
|
2651
|
+
E1([
|
|
2122
2652
|
r({ type: Boolean })
|
|
2123
|
-
],
|
|
2124
|
-
|
|
2653
|
+
], g1.prototype, "showError");
|
|
2654
|
+
E1([
|
|
2125
2655
|
r({ type: String })
|
|
2126
|
-
],
|
|
2127
|
-
|
|
2656
|
+
], g1.prototype, "errorMessage");
|
|
2657
|
+
E1([
|
|
2128
2658
|
r({ type: Boolean, reflect: !0 })
|
|
2129
|
-
],
|
|
2130
|
-
customElements.get("nys-errormessage") || customElements.define("nys-errormessage",
|
|
2131
|
-
async function
|
|
2659
|
+
], g1.prototype, "showDivider");
|
|
2660
|
+
customElements.get("nys-errormessage") || customElements.define("nys-errormessage", g1);
|
|
2661
|
+
async function He(l, e) {
|
|
2132
2662
|
if (!e || e.trim() === "") return !0;
|
|
2133
2663
|
const t = e.toLowerCase().split(",").map((n) => n.trim()), o = l.name.toLowerCase(), s = o.includes(".") ? o.split(".").pop() : "";
|
|
2134
2664
|
for (const n of t)
|
|
@@ -2136,7 +2666,7 @@ async function he(l, e) {
|
|
|
2136
2666
|
return !0;
|
|
2137
2667
|
return !1;
|
|
2138
2668
|
}
|
|
2139
|
-
const
|
|
2669
|
+
const Ie = u`
|
|
2140
2670
|
:host {
|
|
2141
2671
|
/* Global Fileinput Styles */
|
|
2142
2672
|
--_nys-fileinput-gap: var(--nys-space-100, 8px);
|
|
@@ -2256,7 +2786,7 @@ const ye = g`
|
|
|
2256
2786
|
progress::-webkit-progress-bar {
|
|
2257
2787
|
background: var(--_nys-fileinput-progress-background);
|
|
2258
2788
|
}
|
|
2259
|
-
`,
|
|
2789
|
+
`, Ae = u`
|
|
2260
2790
|
:host {
|
|
2261
2791
|
/* Global fileitem Styles */
|
|
2262
2792
|
--_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
|
|
@@ -2394,12 +2924,12 @@ const ye = g`
|
|
|
2394
2924
|
}
|
|
2395
2925
|
}
|
|
2396
2926
|
`;
|
|
2397
|
-
var
|
|
2927
|
+
var Ze = Object.defineProperty, D1 = (l, e, t, o) => {
|
|
2398
2928
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2399
2929
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2400
|
-
return s &&
|
|
2930
|
+
return s && Ze(e, t, s), s;
|
|
2401
2931
|
};
|
|
2402
|
-
const
|
|
2932
|
+
const B1 = class B1 extends y {
|
|
2403
2933
|
constructor() {
|
|
2404
2934
|
super(...arguments), this.filename = "", this.status = "pending", this.progress = 0, this.errorMessage = "";
|
|
2405
2935
|
}
|
|
@@ -2472,28 +3002,28 @@ const L1 = class L1 extends u {
|
|
|
2472
3002
|
`;
|
|
2473
3003
|
}
|
|
2474
3004
|
};
|
|
2475
|
-
|
|
2476
|
-
let
|
|
2477
|
-
|
|
3005
|
+
B1.styles = Ae;
|
|
3006
|
+
let c1 = B1;
|
|
3007
|
+
D1([
|
|
2478
3008
|
r({ type: String })
|
|
2479
|
-
],
|
|
2480
|
-
|
|
3009
|
+
], c1.prototype, "filename");
|
|
3010
|
+
D1([
|
|
2481
3011
|
r({ type: String })
|
|
2482
|
-
],
|
|
2483
|
-
|
|
3012
|
+
], c1.prototype, "status");
|
|
3013
|
+
D1([
|
|
2484
3014
|
r({ type: Number })
|
|
2485
|
-
],
|
|
2486
|
-
|
|
3015
|
+
], c1.prototype, "progress");
|
|
3016
|
+
D1([
|
|
2487
3017
|
r({ type: String })
|
|
2488
|
-
],
|
|
2489
|
-
customElements.define("nys-fileitem",
|
|
2490
|
-
var
|
|
3018
|
+
], c1.prototype, "errorMessage");
|
|
3019
|
+
customElements.define("nys-fileitem", c1);
|
|
3020
|
+
var Be = Object.defineProperty, z = (l, e, t, o) => {
|
|
2491
3021
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2492
3022
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2493
|
-
return s &&
|
|
3023
|
+
return s && Be(e, t, s), s;
|
|
2494
3024
|
};
|
|
2495
|
-
let
|
|
2496
|
-
const
|
|
3025
|
+
let qe = 0;
|
|
3026
|
+
const S1 = class S1 extends y {
|
|
2497
3027
|
// allows use of elementInternals' API
|
|
2498
3028
|
constructor() {
|
|
2499
3029
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.multiple = !1, this.accept = "", this.disabled = !1, this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.dropzone = !1, this.width = "full", this._selectedFiles = [], this._dragActive = !1, this._internals = this.attachInternals();
|
|
@@ -2530,7 +3060,7 @@ const C1 = class C1 extends u {
|
|
|
2530
3060
|
}
|
|
2531
3061
|
// Generate a unique ID if one is not provided
|
|
2532
3062
|
connectedCallback() {
|
|
2533
|
-
super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${
|
|
3063
|
+
super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${qe++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
2534
3064
|
}
|
|
2535
3065
|
disconnectedCallback() {
|
|
2536
3066
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -2562,7 +3092,7 @@ const C1 = class C1 extends u {
|
|
|
2562
3092
|
const e = (s = this.shadowRoot) == null ? void 0 : s.querySelector("input");
|
|
2563
3093
|
if (!e) return;
|
|
2564
3094
|
const t = this.errorMessage || "Please upload a file.";
|
|
2565
|
-
this.required && this._selectedFiles.length == 0 ? (this._internals.ariaRequired = "true", this._internals.setValidity({ valueMissing: !0 }, t, e)) : (this._internals.ariaRequired = "false", this._internals.setValidity({}));
|
|
3095
|
+
this.required && this._selectedFiles.length == 0 ? (this._internals.ariaRequired = "true", this._internals.setValidity({ valueMissing: !0 }, t, e)) : (this._internals.ariaRequired = "false", this._internals.setValidity({}, "", e));
|
|
2566
3096
|
}
|
|
2567
3097
|
_setValidityMessage(e = "") {
|
|
2568
3098
|
var o, s;
|
|
@@ -2593,7 +3123,7 @@ const C1 = class C1 extends u {
|
|
|
2593
3123
|
const o = this._internals.form;
|
|
2594
3124
|
o ? Array.from(o.elements).find(
|
|
2595
3125
|
(i) => typeof i.checkValidity == "function" && !i.checkValidity()
|
|
2596
|
-
) === this && t.focus() : t.focus();
|
|
3126
|
+
) === this && (t.focus(), t.classList.add("active-focus")) : (t.focus(), t.classList.add("active-focus"));
|
|
2597
3127
|
}
|
|
2598
3128
|
}
|
|
2599
3129
|
/******************** Functions ********************/
|
|
@@ -2613,7 +3143,7 @@ const C1 = class C1 extends u {
|
|
|
2613
3143
|
async _processFile(e) {
|
|
2614
3144
|
e.status = "processing";
|
|
2615
3145
|
try {
|
|
2616
|
-
if (!await
|
|
3146
|
+
if (!await He(e.file, this.accept)) {
|
|
2617
3147
|
e.status = "error", e.errorMsg = "File type is invalid.", this.requestUpdate();
|
|
2618
3148
|
return;
|
|
2619
3149
|
}
|
|
@@ -2669,16 +3199,23 @@ const C1 = class C1 extends u {
|
|
|
2669
3199
|
/******************** Event Handlers ********************/
|
|
2670
3200
|
// Access the selected files & add new files to the internal list via the hidden <input type="file">
|
|
2671
3201
|
_handleFileChange(e) {
|
|
2672
|
-
const
|
|
3202
|
+
const o = e.target.files;
|
|
2673
3203
|
(o ? Array.from(o) : []).map((n) => {
|
|
2674
3204
|
this._saveSelectedFiles(n);
|
|
2675
|
-
}),
|
|
3205
|
+
}), this.requestUpdate(), this._dispatchChangeEvent(), this._handlePostFileSelectionFocus();
|
|
2676
3206
|
}
|
|
2677
3207
|
_handleFileRemove(e) {
|
|
3208
|
+
var o;
|
|
2678
3209
|
const t = e.detail.filename;
|
|
2679
|
-
this._selectedFiles = this._selectedFiles.filter(
|
|
2680
|
-
(
|
|
2681
|
-
), this.
|
|
3210
|
+
if (this._selectedFiles = this._selectedFiles.filter(
|
|
3211
|
+
(s) => s.file.name !== t
|
|
3212
|
+
), this._selectedFiles.length === 0) {
|
|
3213
|
+
const s = (o = this.shadowRoot) == null ? void 0 : o.querySelector(
|
|
3214
|
+
"input"
|
|
3215
|
+
);
|
|
3216
|
+
s && (s.value = "");
|
|
3217
|
+
}
|
|
3218
|
+
this._setValue(), this._validate(), this.requestUpdate(), this._dispatchChangeEvent();
|
|
2682
3219
|
}
|
|
2683
3220
|
_onDragOver(e) {
|
|
2684
3221
|
this.disabled || (e.stopPropagation(), e.preventDefault(), this._dragActive || (this._dragActive = !0, this.requestUpdate()));
|
|
@@ -2704,7 +3241,7 @@ const C1 = class C1 extends u {
|
|
|
2704
3241
|
@nys-fileRemove=${this._handleFileRemove}
|
|
2705
3242
|
>
|
|
2706
3243
|
<nys-label
|
|
2707
|
-
|
|
3244
|
+
for=${this.id}
|
|
2708
3245
|
label=${this.label}
|
|
2709
3246
|
description=${this.description}
|
|
2710
3247
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -2723,8 +3260,8 @@ const C1 = class C1 extends u {
|
|
|
2723
3260
|
?disabled=${this.disabled || !this.multiple && this._selectedFiles.length > 0}
|
|
2724
3261
|
aria-disabled="${this.disabled}"
|
|
2725
3262
|
aria-hidden="true"
|
|
2726
|
-
hidden
|
|
2727
3263
|
@change=${this._handleFileChange}
|
|
3264
|
+
hidden
|
|
2728
3265
|
/>
|
|
2729
3266
|
|
|
2730
3267
|
${this.dropzone ? a`<div
|
|
@@ -2785,49 +3322,49 @@ const C1 = class C1 extends u {
|
|
|
2785
3322
|
</div>`;
|
|
2786
3323
|
}
|
|
2787
3324
|
};
|
|
2788
|
-
|
|
2789
|
-
let
|
|
2790
|
-
|
|
3325
|
+
S1.styles = Ie, S1.formAssociated = !0;
|
|
3326
|
+
let w = S1;
|
|
3327
|
+
z([
|
|
2791
3328
|
r({ type: String })
|
|
2792
|
-
],
|
|
2793
|
-
|
|
3329
|
+
], w.prototype, "id");
|
|
3330
|
+
z([
|
|
2794
3331
|
r({ type: String, reflect: !0 })
|
|
2795
|
-
],
|
|
2796
|
-
|
|
3332
|
+
], w.prototype, "name");
|
|
3333
|
+
z([
|
|
2797
3334
|
r({ type: String })
|
|
2798
|
-
],
|
|
2799
|
-
|
|
3335
|
+
], w.prototype, "label");
|
|
3336
|
+
z([
|
|
2800
3337
|
r({ type: String })
|
|
2801
|
-
],
|
|
2802
|
-
|
|
3338
|
+
], w.prototype, "description");
|
|
3339
|
+
z([
|
|
2803
3340
|
r({ type: Boolean })
|
|
2804
|
-
],
|
|
2805
|
-
|
|
3341
|
+
], w.prototype, "multiple");
|
|
3342
|
+
z([
|
|
2806
3343
|
r({ type: String })
|
|
2807
|
-
],
|
|
2808
|
-
|
|
3344
|
+
], w.prototype, "accept");
|
|
3345
|
+
z([
|
|
2809
3346
|
r({ type: Boolean, reflect: !0 })
|
|
2810
|
-
],
|
|
2811
|
-
|
|
3347
|
+
], w.prototype, "disabled");
|
|
3348
|
+
z([
|
|
2812
3349
|
r({ type: Boolean, reflect: !0 })
|
|
2813
|
-
],
|
|
2814
|
-
|
|
3350
|
+
], w.prototype, "required");
|
|
3351
|
+
z([
|
|
2815
3352
|
r({ type: Boolean, reflect: !0 })
|
|
2816
|
-
],
|
|
2817
|
-
|
|
3353
|
+
], w.prototype, "optional");
|
|
3354
|
+
z([
|
|
2818
3355
|
r({ type: Boolean, reflect: !0 })
|
|
2819
|
-
],
|
|
2820
|
-
|
|
3356
|
+
], w.prototype, "showError");
|
|
3357
|
+
z([
|
|
2821
3358
|
r({ type: String })
|
|
2822
|
-
],
|
|
2823
|
-
|
|
3359
|
+
], w.prototype, "errorMessage");
|
|
3360
|
+
z([
|
|
2824
3361
|
r({ type: Boolean })
|
|
2825
|
-
],
|
|
2826
|
-
|
|
3362
|
+
], w.prototype, "dropzone");
|
|
3363
|
+
z([
|
|
2827
3364
|
r({ type: String, reflect: !0 })
|
|
2828
|
-
],
|
|
2829
|
-
customElements.get("nys-fileinput") || customElements.define("nys-fileinput",
|
|
2830
|
-
const
|
|
3365
|
+
], w.prototype, "width");
|
|
3366
|
+
customElements.get("nys-fileinput") || customElements.define("nys-fileinput", w);
|
|
3367
|
+
const Ue = {
|
|
2831
3368
|
// --------- UX Team Main Library (below) --------- //
|
|
2832
3369
|
// *** CORE *** //
|
|
2833
3370
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -2877,6 +3414,14 @@ const Ce = {
|
|
|
2877
3414
|
<g mask="url(#mask0_12383_539)">
|
|
2878
3415
|
<path d="M12 13.4L7.10005 18.3C6.91672 18.4833 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4833 5.70005 18.3C5.51672 18.1167 5.42505 17.8833 5.42505 17.6C5.42505 17.3167 5.51672 17.0833 5.70005 16.9L10.6 12L5.70005 7.09999C5.51672 6.91665 5.42505 6.68332 5.42505 6.39999C5.42505 6.11665 5.51672 5.88332 5.70005 5.69999C5.88338 5.51665 6.11672 5.42499 6.40005 5.42499C6.68338 5.42499 6.91672 5.51665 7.10005 5.69999L12 10.6L16.9 5.69999C17.0834 5.51665 17.3167 5.42499 17.6 5.42499C17.8834 5.42499 18.1167 5.51665 18.3 5.69999C18.4834 5.88332 18.575 6.11665 18.575 6.39999C18.575 6.68332 18.4834 6.91665 18.3 7.09999L13.4 12L18.3 16.9C18.4834 17.0833 18.575 17.3167 18.575 17.6C18.575 17.8833 18.4834 18.1167 18.3 18.3C18.1167 18.4833 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4833 16.9 18.3L12 13.4Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2879
3416
|
</g>
|
|
3417
|
+
</svg>`,
|
|
3418
|
+
code: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3419
|
+
<mask id="mask0_8115_296" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3420
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3421
|
+
</mask>
|
|
3422
|
+
<g mask="url(#mask0_8115_296)">
|
|
3423
|
+
<path d="M4.82505 12.025L8.70005 15.9C8.88338 16.0834 8.97505 16.3167 8.97505 16.6C8.97505 16.8834 8.88338 17.1167 8.70005 17.3C8.51672 17.4834 8.28338 17.575 8.00005 17.575C7.71672 17.575 7.48338 17.4834 7.30005 17.3L2.70005 12.7C2.60005 12.6 2.52922 12.4917 2.48755 12.375C2.44588 12.2584 2.42505 12.1334 2.42505 12C2.42505 11.8667 2.44588 11.7417 2.48755 11.625C2.52922 11.5084 2.60005 11.4 2.70005 11.3L7.30005 6.70002C7.50005 6.50002 7.73755 6.40002 8.01255 6.40002C8.28755 6.40002 8.52505 6.50002 8.72505 6.70002C8.92505 6.90002 9.02505 7.13752 9.02505 7.41252C9.02505 7.68752 8.92505 7.92502 8.72505 8.12502L4.82505 12.025ZM19.175 11.975L15.3 8.10002C15.1167 7.91669 15.025 7.68336 15.025 7.40002C15.025 7.11669 15.1167 6.88336 15.3 6.70002C15.4834 6.51669 15.7167 6.42502 16 6.42502C16.2834 6.42502 16.5167 6.51669 16.7 6.70002L21.3 11.3C21.4 11.4 21.4709 11.5084 21.5125 11.625C21.5542 11.7417 21.575 11.8667 21.575 12C21.575 12.1334 21.5542 12.2584 21.5125 12.375C21.4709 12.4917 21.4 12.6 21.3 12.7L16.7 17.3C16.5 17.5 16.2667 17.5959 16 17.5875C15.7334 17.5792 15.5 17.475 15.3 17.275C15.1 17.075 15 16.8375 15 16.5625C15 16.2875 15.1 16.05 15.3 15.85L19.175 11.975Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3424
|
+
</g>
|
|
2880
3425
|
</svg>`,
|
|
2881
3426
|
download: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2882
3427
|
<mask id="mask0_12372_255" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
@@ -2925,6 +3470,22 @@ const Ce = {
|
|
|
2925
3470
|
<g mask="url(#mask0_12372_211)">
|
|
2926
3471
|
<path d="M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C13.3833 2 14.6792 2.2625 15.8875 2.7875C17.0958 3.3125 18.1542 4.02917 19.0625 4.9375C19.9708 5.84583 20.6875 6.90417 21.2125 8.1125C21.7375 9.32083 22 10.6167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22ZM12 19.95C12.4333 19.35 12.8083 18.725 13.125 18.075C13.4417 17.425 13.7 16.7333 13.9 16H10.1C10.3 16.7333 10.5583 17.425 10.875 18.075C11.1917 18.725 11.5667 19.35 12 19.95ZM9.4 19.55C9.1 19 8.8375 18.4292 8.6125 17.8375C8.3875 17.2458 8.2 16.6333 8.05 16H5.1C5.58333 16.8333 6.1875 17.5583 6.9125 18.175C7.6375 18.7917 8.46667 19.25 9.4 19.55ZM14.6 19.55C15.5333 19.25 16.3625 18.7917 17.0875 18.175C17.8125 17.5583 18.4167 16.8333 18.9 16H15.95C15.8 16.6333 15.6125 17.2458 15.3875 17.8375C15.1625 18.4292 14.9 19 14.6 19.55ZM4.25 14H7.65C7.6 13.6667 7.5625 13.3375 7.5375 13.0125C7.5125 12.6875 7.5 12.35 7.5 12C7.5 11.65 7.5125 11.3125 7.5375 10.9875C7.5625 10.6625 7.6 10.3333 7.65 10H4.25C4.16667 10.3333 4.10417 10.6625 4.0625 10.9875C4.02083 11.3125 4 11.65 4 12C4 12.35 4.02083 12.6875 4.0625 13.0125C4.10417 13.3375 4.16667 13.6667 4.25 14ZM9.65 14H14.35C14.4 13.6667 14.4375 13.3375 14.4625 13.0125C14.4875 12.6875 14.5 12.35 14.5 12C14.5 11.65 14.4875 11.3125 14.4625 10.9875C14.4375 10.6625 14.4 10.3333 14.35 10H9.65C9.6 10.3333 9.5625 10.6625 9.5375 10.9875C9.5125 11.3125 9.5 11.65 9.5 12C9.5 12.35 9.5125 12.6875 9.5375 13.0125C9.5625 13.3375 9.6 13.6667 9.65 14ZM16.35 14H19.75C19.8333 13.6667 19.8958 13.3375 19.9375 13.0125C19.9792 12.6875 20 12.35 20 12C20 11.65 19.9792 11.3125 19.9375 10.9875C19.8958 10.6625 19.8333 10.3333 19.75 10H16.35C16.4 10.3333 16.4375 10.6625 16.4625 10.9875C16.4875 11.3125 16.5 11.65 16.5 12C16.5 12.35 16.4875 12.6875 16.4625 13.0125C16.4375 13.3375 16.4 13.6667 16.35 14ZM15.95 8H18.9C18.4167 7.16667 17.8125 6.44167 17.0875 5.825C16.3625 5.20833 15.5333 4.75 14.6 4.45C14.9 5 15.1625 5.57083 15.3875 6.1625C15.6125 6.75417 15.8 7.36667 15.95 8ZM10.1 8H13.9C13.7 7.26667 13.4417 6.575 13.125 5.925C12.8083 5.275 12.4333 4.65 12 4.05C11.5667 4.65 11.1917 5.275 10.875 5.925C10.5583 6.575 10.3 7.26667 10.1 8ZM5.1 8H8.05C8.2 7.36667 8.3875 6.75417 8.6125 6.1625C8.8375 5.57083 9.1 5 9.4 4.45C8.46667 4.75 7.6375 5.20833 6.9125 5.825C6.1875 6.44167 5.58333 7.16667 5.1 8Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2927
3472
|
</g>
|
|
3473
|
+
</svg>`,
|
|
3474
|
+
link: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3475
|
+
<mask id="mask0_7578_270" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3476
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3477
|
+
</mask>
|
|
3478
|
+
<g mask="url(#mask0_7578_270)">
|
|
3479
|
+
<path d="M7 17C5.61667 17 4.4375 16.5125 3.4625 15.5375C2.4875 14.5625 2 13.3833 2 12C2 10.6167 2.4875 9.4375 3.4625 8.4625C4.4375 7.4875 5.61667 7 7 7H10C10.2833 7 10.5208 7.09583 10.7125 7.2875C10.9042 7.47917 11 7.71667 11 8C11 8.28333 10.9042 8.52083 10.7125 8.7125C10.5208 8.90417 10.2833 9 10 9H7C6.16667 9 5.45833 9.29167 4.875 9.875C4.29167 10.4583 4 11.1667 4 12C4 12.8333 4.29167 13.5417 4.875 14.125C5.45833 14.7083 6.16667 15 7 15H10C10.2833 15 10.5208 15.0958 10.7125 15.2875C10.9042 15.4792 11 15.7167 11 16C11 16.2833 10.9042 16.5208 10.7125 16.7125C10.5208 16.9042 10.2833 17 10 17H7ZM9 13C8.71667 13 8.47917 12.9042 8.2875 12.7125C8.09583 12.5208 8 12.2833 8 12C8 11.7167 8.09583 11.4792 8.2875 11.2875C8.47917 11.0958 8.71667 11 9 11H15C15.2833 11 15.5208 11.0958 15.7125 11.2875C15.9042 11.4792 16 11.7167 16 12C16 12.2833 15.9042 12.5208 15.7125 12.7125C15.5208 12.9042 15.2833 13 15 13H9ZM14 17C13.7167 17 13.4792 16.9042 13.2875 16.7125C13.0958 16.5208 13 16.2833 13 16C13 15.7167 13.0958 15.4792 13.2875 15.2875C13.4792 15.0958 13.7167 15 14 15H17C17.8333 15 18.5417 14.7083 19.125 14.125C19.7083 13.5417 20 12.8333 20 12C20 11.1667 19.7083 10.4583 19.125 9.875C18.5417 9.29167 17.8333 9 17 9H14C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8C13 7.71667 13.0958 7.47917 13.2875 7.2875C13.4792 7.09583 13.7167 7 14 7H17C18.3833 7 19.5625 7.4875 20.5375 8.4625C21.5125 9.4375 22 10.6167 22 12C22 13.3833 21.5125 14.5625 20.5375 15.5375C19.5625 16.5125 18.3833 17 17 17H14Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3480
|
+
</g>
|
|
3481
|
+
</svg>`,
|
|
3482
|
+
mail: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3483
|
+
<mask id="mask0_7578_308" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3484
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3485
|
+
</mask>
|
|
3486
|
+
<g mask="url(#mask0_7578_308)">
|
|
3487
|
+
<path d="M4 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM20 8L12.525 12.675C12.4417 12.725 12.3542 12.7625 12.2625 12.7875C12.1708 12.8125 12.0833 12.825 12 12.825C11.9167 12.825 11.8292 12.8125 11.7375 12.7875C11.6458 12.7625 11.5583 12.725 11.475 12.675L4 8V18H20V8ZM12 11L20 6H4L12 11ZM4 8.25V6.775V6.8V6.7875V8.25Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3488
|
+
</g>
|
|
2928
3489
|
</svg>`,
|
|
2929
3490
|
menu: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2930
3491
|
<mask id="mask0_12372_150" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
@@ -3080,6 +3641,30 @@ const Ce = {
|
|
|
3080
3641
|
<g mask="url(#mask0_12372_673)">
|
|
3081
3642
|
<path d="M7.82505 13L12.725 17.9C12.925 18.1 13.0209 18.3334 13.0125 18.6C13.0042 18.8667 12.9 19.1 12.7 19.3C12.5 19.4834 12.2667 19.5792 12 19.5875C11.7334 19.5959 11.5 19.5 11.3 19.3L4.70005 12.7C4.60005 12.6 4.52922 12.4917 4.48755 12.375C4.44588 12.2584 4.42505 12.1334 4.42505 12C4.42505 11.8667 4.44588 11.7417 4.48755 11.625C4.52922 11.5084 4.60005 11.4 4.70005 11.3L11.3 4.70005C11.4834 4.51672 11.7125 4.42505 11.9875 4.42505C12.2625 4.42505 12.5 4.51672 12.7 4.70005C12.9 4.90005 13 5.13755 13 5.41255C13 5.68755 12.9 5.92505 12.7 6.12505L7.82505 11H19C19.2834 11 19.5209 11.0959 19.7125 11.2875C19.9042 11.4792 20 11.7167 20 12C20 12.2834 19.9042 12.5209 19.7125 12.7125C19.5209 12.9042 19.2834 13 19 13H7.82505Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3082
3643
|
</g>
|
|
3644
|
+
</svg>`,
|
|
3645
|
+
arrow_downward: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3646
|
+
<mask id="mask0_7578_114" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3647
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3648
|
+
</mask>
|
|
3649
|
+
<g mask="url(#mask0_7578_114)">
|
|
3650
|
+
<path d="M11 16.175V5C11 4.71667 11.0959 4.47917 11.2875 4.2875C11.4792 4.09583 11.7167 4 12 4C12.2834 4 12.5209 4.09583 12.7125 4.2875C12.9042 4.47917 13 4.71667 13 5V16.175L17.9 11.275C18.1 11.075 18.3334 10.9792 18.6 10.9875C18.8667 10.9958 19.1 11.1 19.3 11.3C19.4834 11.5 19.5792 11.7333 19.5875 12C19.5959 12.2667 19.5 12.5 19.3 12.7L12.7 19.3C12.6 19.4 12.4917 19.4708 12.375 19.5125C12.2584 19.5542 12.1334 19.575 12 19.575C11.8667 19.575 11.7417 19.5542 11.625 19.5125C11.5084 19.4708 11.4 19.4 11.3 19.3L4.70005 12.7C4.51672 12.5167 4.42505 12.2875 4.42505 12.0125C4.42505 11.7375 4.51672 11.5 4.70005 11.3C4.90005 11.1 5.13755 11 5.41255 11C5.68755 11 5.92505 11.1 6.12505 11.3L11 16.175Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3651
|
+
</g>
|
|
3652
|
+
</svg>`,
|
|
3653
|
+
arrow_forward: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3654
|
+
<mask id="mask0_7578_474" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3655
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3656
|
+
</mask>
|
|
3657
|
+
<g mask="url(#mask0_7578_474)">
|
|
3658
|
+
<path d="M16.175 13H5C4.71667 13 4.47917 12.9042 4.2875 12.7125C4.09583 12.5208 4 12.2833 4 12C4 11.7167 4.09583 11.4792 4.2875 11.2875C4.47917 11.0958 4.71667 11 5 11H16.175L11.275 6.1C11.075 5.9 10.9792 5.66667 10.9875 5.4C10.9958 5.13334 11.1 4.9 11.3 4.7C11.5 4.51667 11.7333 4.42084 12 4.4125C12.2667 4.40417 12.5 4.5 12.7 4.7L19.3 11.3C19.4 11.4 19.4708 11.5083 19.5125 11.625C19.5542 11.7417 19.575 11.8667 19.575 12C19.575 12.1333 19.5542 12.2583 19.5125 12.375C19.4708 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4833 12.2875 19.575 12.0125 19.575C11.7375 19.575 11.5 19.4833 11.3 19.3C11.1 19.1 11 18.8625 11 18.5875C11 18.3125 11.1 18.075 11.3 17.875L16.175 13Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3659
|
+
</g>
|
|
3660
|
+
</svg>`,
|
|
3661
|
+
arrow_upward: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3662
|
+
<mask id="mask0_7578_90" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3663
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3664
|
+
</mask>
|
|
3665
|
+
<g mask="url(#mask0_7578_90)">
|
|
3666
|
+
<path d="M11 7.825L6.09999 12.725C5.89999 12.925 5.66665 13.0208 5.39999 13.0125C5.13332 13.0042 4.89999 12.9 4.69999 12.7C4.51665 12.5 4.42082 12.2667 4.41249 12C4.40415 11.7333 4.49999 11.5 4.69999 11.3L11.3 4.7C11.4 4.6 11.5083 4.52917 11.625 4.4875C11.7417 4.44584 11.8667 4.425 12 4.425C12.1333 4.425 12.2583 4.44584 12.375 4.4875C12.4917 4.52917 12.6 4.6 12.7 4.7L19.3 11.3C19.4833 11.4833 19.575 11.7125 19.575 11.9875C19.575 12.2625 19.4833 12.5 19.3 12.7C19.1 12.9 18.8625 13 18.5875 13C18.3125 13 18.075 12.9 17.875 12.7L13 7.825V19C13 19.2833 12.9042 19.5208 12.7125 19.7125C12.5208 19.9042 12.2833 20 12 20C11.7167 20 11.4792 19.9042 11.2875 19.7125C11.0958 19.5208 11 19.2833 11 19V7.825Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3667
|
+
</g>
|
|
3083
3668
|
</svg>`,
|
|
3084
3669
|
// *** Chevrons *** //
|
|
3085
3670
|
chevron_down: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -3197,6 +3782,14 @@ const Ce = {
|
|
|
3197
3782
|
</g>
|
|
3198
3783
|
</svg>`,
|
|
3199
3784
|
// *** Social *** //
|
|
3785
|
+
social_bluesky: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3786
|
+
<mask id="mask0_8703_408" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3787
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3788
|
+
</mask>
|
|
3789
|
+
<g mask="url(#mask0_8703_408)">
|
|
3790
|
+
<path d="M17.6652 3.95118C15.3724 5.71095 12.906 9.27859 12.0004 11.1932C11.0952 9.27859 8.62837 5.71095 6.33557 3.95118C4.68117 2.68168 2.00037 1.69909 2.00037 4.82495C2.00037 5.4489 2.35037 10.0696 2.55597 10.8195C3.26957 13.4274 5.87117 14.0921 8.18517 13.6898C4.14037 14.3937 3.11157 16.724 5.33357 19.0548C9.55397 23.4815 11.3996 17.9442 11.872 16.5255C11.9596 16.2635 12 16.142 12 16.2496C12 16.142 12.0404 16.2635 12.128 16.5255C12.6004 17.9442 14.446 23.4815 18.6664 19.0548C20.8884 16.724 19.86 14.3937 15.8148 13.6898C18.1288 14.0925 20.7304 13.4274 21.444 10.8195C21.6496 10.0692 21.9996 5.4489 21.9996 4.82495C21.9996 1.69909 19.3188 2.68168 17.6644 3.95077L17.6652 3.95118Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3791
|
+
</g>
|
|
3792
|
+
</svg>`,
|
|
3200
3793
|
social_facebook: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3201
3794
|
<mask id="mask0_12372_332" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3202
3795
|
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
@@ -3293,6 +3886,15 @@ const Ce = {
|
|
|
3293
3886
|
<g mask="url(#mask0_12372_642)">
|
|
3294
3887
|
<path d="M17.883 6.27729C17.7506 6.20752 17.6217 6.13104 17.4968 6.04813C17.1337 5.80333 16.8007 5.51489 16.5051 5.18901C15.7655 4.32613 15.4893 3.45076 15.3876 2.83787H15.3917C15.3067 2.32915 15.3418 2 15.3471 2H11.9785V15.2818C11.9785 15.4602 11.9785 15.6364 11.9712 15.8106C11.9712 15.8322 11.9691 15.8522 11.9679 15.8756C11.9679 15.8851 11.9679 15.8951 11.9658 15.9051C11.9658 15.9076 11.9658 15.9101 11.9658 15.9126C11.9303 16.3892 11.7805 16.8495 11.5296 17.2532C11.2786 17.6568 10.9342 17.9914 10.5267 18.2275C10.102 18.4739 9.62159 18.6032 9.13293 18.6025C7.56344 18.6025 6.29143 17.2976 6.29143 15.686C6.29143 14.0744 7.56344 12.7695 9.13293 12.7695C9.43002 12.7692 9.72529 12.8169 10.0078 12.9107L10.0119 9.41338C9.15432 9.30043 8.28314 9.36992 7.45327 9.61747C6.62339 9.86502 5.85284 10.2852 5.19021 10.8516C4.6096 11.366 4.12148 11.9798 3.74781 12.6653C3.60561 12.9153 3.0691 13.9198 3.00413 15.5502C2.96327 16.4755 3.23582 17.4342 3.36575 17.8305V17.8388C3.44748 18.0721 3.76415 18.8683 4.28023 19.5395C4.69638 20.078 5.18804 20.5509 5.73939 20.9432V20.9349L5.74756 20.9432C7.37834 22.0732 9.18645 21.999 9.18645 21.999C9.49945 21.9861 10.548 21.999 11.7387 21.4236C13.0593 20.7857 13.8111 19.8354 13.8111 19.8354C14.2915 19.2675 14.6734 18.6204 14.9405 17.9217C15.2454 17.1047 15.3471 16.1247 15.3471 15.7331V8.68675C15.388 8.71175 15.9323 9.07881 15.9323 9.07881C15.9323 9.07881 16.7164 9.59129 17.9398 9.92502C18.8175 10.1625 20 10.2125 20 10.2125V6.80268C19.5857 6.84851 18.7443 6.71518 17.883 6.27729Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3295
3888
|
</g>
|
|
3889
|
+
</svg>`,
|
|
3890
|
+
social_threads: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3891
|
+
<mask id="mask0_8703_592" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3892
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
3893
|
+
</mask>
|
|
3894
|
+
<g mask="url(#mask0_8703_592)">
|
|
3895
|
+
<path d="M12.6885 11.9189C13.0794 11.9258 13.4486 11.9685 13.791 12.0469C13.7832 12.134 13.7735 12.2225 13.7617 12.3115C13.697 12.7932 13.5053 13.4354 12.9629 13.7637C12.5851 13.992 12.0197 14.0489 11.5566 13.9033C11.3229 13.8298 11.0137 13.673 10.8672 13.3447C10.6962 12.962 10.8025 12.5488 11.1377 12.292C11.466 12.0406 11.9426 11.918 12.5928 11.918C12.6241 11.918 12.6561 11.918 12.6885 11.9189Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3896
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 1.73926C17.5141 1.73926 22 6.22519 22 11.7393C21.9998 17.2532 17.514 21.7393 12 21.7393C6.48604 21.7393 2.00017 17.2532 2 11.7393C2 6.22519 6.48594 1.73926 12 1.73926ZM11.8076 5.15039C10.4347 5.2205 9.30138 5.60456 8.43945 6.29199C7.32998 7.17703 6.78999 8.51263 6.53223 9.47754C6.0476 11.2917 6.18684 13.3229 6.91602 15.0508C7.57804 16.6203 8.82441 17.7118 10.4248 18.125C10.9349 18.2568 11.5227 18.3389 12.1387 18.3389C13.3215 18.3389 14.6081 18.0365 15.6455 17.2051C16.5957 16.4435 17.1204 15.4692 17.1621 14.3867C17.2042 13.2995 16.8238 12.3987 16.0625 11.7812C15.7563 11.5334 15.4109 11.3248 15.0342 11.1592C15.0013 10.6574 14.8983 10.1062 14.6572 9.625C14.2368 8.78705 13.3903 8.24879 12.3916 8.18457C11.3066 8.11449 10.2369 8.61512 9.66797 9.45898L10.6943 10.1504C11.0222 9.66385 11.6583 9.37631 12.3125 9.41895C12.8754 9.4553 13.3274 9.73236 13.5518 10.1797C13.635 10.3457 13.6986 10.5482 13.7422 10.7764C13.412 10.7196 13.0671 10.688 12.709 10.6816C11.7223 10.666 10.9595 10.8697 10.3848 11.3096C9.59047 11.9177 9.33024 12.9382 9.73633 13.8486C9.99698 14.4336 10.5115 14.8727 11.1855 15.084C11.9916 15.3368 12.9179 15.2368 13.6025 14.8232C14.341 14.3769 14.8295 13.5622 14.9805 12.5264C15.0866 12.5929 15.1873 12.6649 15.2822 12.7422C15.7355 13.1092 15.9522 13.6469 15.9258 14.3389C15.8978 15.0621 15.5433 15.7012 14.8721 16.2393C13.8655 17.0459 12.2408 17.3154 10.7334 16.9268C9.51525 16.6126 8.5643 15.7748 8.05566 14.5693C7.43137 13.0899 7.31198 11.3508 7.72754 9.79688C8.02402 8.68694 8.55085 7.78607 9.21094 7.25977C9.86663 6.73688 10.7616 6.4421 11.8711 6.38574C14.2878 6.26097 16.0368 7.49129 16.5469 9.6709L17.752 9.3877C17.1039 6.6202 14.8261 4.99652 11.8076 5.15039Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3897
|
+
</g>
|
|
3296
3898
|
</svg>`,
|
|
3297
3899
|
social_tumblr: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3298
3900
|
<mask id="mask0_12372_356" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
@@ -3359,7 +3961,7 @@ const Ce = {
|
|
|
3359
3961
|
<path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3360
3962
|
</g>
|
|
3361
3963
|
</svg>`
|
|
3362
|
-
},
|
|
3964
|
+
}, Pe = u`
|
|
3363
3965
|
:host {
|
|
3364
3966
|
display: inline-block;
|
|
3365
3967
|
--_nys-icon-size: 0.7em; /* If cap isn't supported, a fallback value of 0.7em is used, as it closely approximates the height of capital letters in most fonts. */
|
|
@@ -3460,12 +4062,12 @@ const Ce = {
|
|
|
3460
4062
|
transform: scale(-1, -1);
|
|
3461
4063
|
}
|
|
3462
4064
|
`;
|
|
3463
|
-
var
|
|
3464
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4065
|
+
var Oe = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, v1 = (l, e, t, o) => {
|
|
4066
|
+
for (var s = o > 1 ? void 0 : o ? Re(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
3465
4067
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3466
|
-
return o && s &&
|
|
3467
|
-
},
|
|
3468
|
-
const
|
|
4068
|
+
return o && s && Oe(e, t, s), s;
|
|
4069
|
+
}, o1;
|
|
4070
|
+
const h1 = (o1 = class extends y {
|
|
3469
4071
|
constructor() {
|
|
3470
4072
|
super(...arguments), this.name = "", this.ariaLabel = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
3471
4073
|
}
|
|
@@ -3473,12 +4075,12 @@ const i1 = (t1 = class extends u {
|
|
|
3473
4075
|
return this._size;
|
|
3474
4076
|
}
|
|
3475
4077
|
set size(e) {
|
|
3476
|
-
this._size =
|
|
4078
|
+
this._size = o1.VALID_TYPES.includes(
|
|
3477
4079
|
e
|
|
3478
4080
|
) ? e : "sm";
|
|
3479
4081
|
}
|
|
3480
4082
|
getIcon() {
|
|
3481
|
-
const e =
|
|
4083
|
+
const e = Ue[this.name];
|
|
3482
4084
|
if (!e) return null;
|
|
3483
4085
|
const s = new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
|
|
3484
4086
|
return s instanceof SVGElement ? (s.setAttribute("role", "img"), this.ariaLabel ? (s.setAttribute("aria-label", this.ariaLabel), s.removeAttribute("aria-hidden")) : (s.setAttribute("aria-hidden", "true"), s.removeAttribute("aria-label")), s.style.rotate = `${this.rotate}deg`, s.style.color = this.color || "currentcolor", s.classList.add(`nys-icon--${this.size}`), s.classList.add("nys-icon--svg"), this.flip && s.classList.add(`nys-icon--flip-${this.flip}`), s) : null;
|
|
@@ -3487,7 +4089,7 @@ const i1 = (t1 = class extends u {
|
|
|
3487
4089
|
const e = this.getIcon();
|
|
3488
4090
|
return e ? a`${e}` : null;
|
|
3489
4091
|
}
|
|
3490
|
-
},
|
|
4092
|
+
}, o1.styles = Pe, o1.VALID_TYPES = [
|
|
3491
4093
|
"2xs",
|
|
3492
4094
|
"xs",
|
|
3493
4095
|
"sm",
|
|
@@ -3504,28 +4106,28 @@ const i1 = (t1 = class extends u {
|
|
|
3504
4106
|
"40",
|
|
3505
4107
|
"48",
|
|
3506
4108
|
"64"
|
|
3507
|
-
],
|
|
3508
|
-
|
|
4109
|
+
], o1);
|
|
4110
|
+
v1([
|
|
3509
4111
|
r({ type: String, reflect: !0 })
|
|
3510
|
-
],
|
|
3511
|
-
|
|
4112
|
+
], h1.prototype, "name", 2);
|
|
4113
|
+
v1([
|
|
3512
4114
|
r({ type: String })
|
|
3513
|
-
],
|
|
3514
|
-
|
|
4115
|
+
], h1.prototype, "ariaLabel", 2);
|
|
4116
|
+
v1([
|
|
3515
4117
|
r({ type: String })
|
|
3516
|
-
],
|
|
3517
|
-
|
|
4118
|
+
], h1.prototype, "rotate", 2);
|
|
4119
|
+
v1([
|
|
3518
4120
|
r({ type: String })
|
|
3519
|
-
],
|
|
3520
|
-
|
|
4121
|
+
], h1.prototype, "flip", 2);
|
|
4122
|
+
v1([
|
|
3521
4123
|
r({ type: String })
|
|
3522
|
-
],
|
|
3523
|
-
|
|
4124
|
+
], h1.prototype, "color", 2);
|
|
4125
|
+
v1([
|
|
3524
4126
|
r({ reflect: !0 })
|
|
3525
|
-
],
|
|
3526
|
-
let
|
|
3527
|
-
customElements.get("nys-icon") || customElements.define("nys-icon",
|
|
3528
|
-
const
|
|
4127
|
+
], h1.prototype, "size", 1);
|
|
4128
|
+
let Te = h1;
|
|
4129
|
+
customElements.get("nys-icon") || customElements.define("nys-icon", Te);
|
|
4130
|
+
const Fe = u`
|
|
3529
4131
|
:host {
|
|
3530
4132
|
/* Label Typography */
|
|
3531
4133
|
--_nys-label-font-family: var(
|
|
@@ -3599,14 +4201,14 @@ const xe = g`
|
|
|
3599
4201
|
color: var(--nys-optional-font-color);
|
|
3600
4202
|
}
|
|
3601
4203
|
`;
|
|
3602
|
-
var
|
|
4204
|
+
var Ne = Object.defineProperty, V1 = (l, e, t, o) => {
|
|
3603
4205
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
3604
4206
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
3605
|
-
return s &&
|
|
4207
|
+
return s && Ne(e, t, s), s;
|
|
3606
4208
|
};
|
|
3607
|
-
const
|
|
4209
|
+
const q1 = class q1 extends y {
|
|
3608
4210
|
constructor() {
|
|
3609
|
-
super(...arguments), this.
|
|
4211
|
+
super(...arguments), this.for = "", this.label = "", this.description = "", this.flag = "";
|
|
3610
4212
|
}
|
|
3611
4213
|
render() {
|
|
3612
4214
|
return a`
|
|
@@ -3623,22 +4225,22 @@ const $1 = class $1 extends u {
|
|
|
3623
4225
|
`;
|
|
3624
4226
|
}
|
|
3625
4227
|
};
|
|
3626
|
-
|
|
3627
|
-
let
|
|
3628
|
-
|
|
4228
|
+
q1.styles = Fe;
|
|
4229
|
+
let d1 = q1;
|
|
4230
|
+
V1([
|
|
3629
4231
|
r({ type: String })
|
|
3630
|
-
],
|
|
3631
|
-
|
|
4232
|
+
], d1.prototype, "for");
|
|
4233
|
+
V1([
|
|
3632
4234
|
r({ type: String })
|
|
3633
|
-
],
|
|
3634
|
-
|
|
4235
|
+
], d1.prototype, "label");
|
|
4236
|
+
V1([
|
|
3635
4237
|
r({ type: String })
|
|
3636
|
-
],
|
|
3637
|
-
|
|
4238
|
+
], d1.prototype, "description");
|
|
4239
|
+
V1([
|
|
3638
4240
|
r({ type: String })
|
|
3639
|
-
],
|
|
3640
|
-
customElements.get("nys-label") || customElements.define("nys-label",
|
|
3641
|
-
const
|
|
4241
|
+
], d1.prototype, "flag");
|
|
4242
|
+
customElements.get("nys-label") || customElements.define("nys-label", d1);
|
|
4243
|
+
const Y1 = u`
|
|
3642
4244
|
:host {
|
|
3643
4245
|
/* Global Radiobutton Styles */
|
|
3644
4246
|
--_nys-radiobutton-size: var(--nys-size-400, 32px);
|
|
@@ -3864,6 +4466,7 @@ const Z1 = g`
|
|
|
3864
4466
|
outline-offset: var(--_nys-radiobutton-outline-offset);
|
|
3865
4467
|
outline: none;
|
|
3866
4468
|
margin: 0 0 auto 0; /* Causes centered radio button if single line of label but top aligned if multiline */
|
|
4469
|
+
box-sizing: border-box;
|
|
3867
4470
|
}
|
|
3868
4471
|
|
|
3869
4472
|
/* Pointer cursor for unchecked radio button */
|
|
@@ -3873,51 +4476,65 @@ const Z1 = g`
|
|
|
3873
4476
|
}
|
|
3874
4477
|
|
|
3875
4478
|
/* Checked */
|
|
3876
|
-
|
|
4479
|
+
input:not(:disabled):checked + .nys-radiobutton .nys-radiobutton__radio {
|
|
3877
4480
|
background-image: url('data:image/svg+xml;utf8,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="11" cy="11" r="11" stroke="white" stroke-width="6"/></svg>');
|
|
3878
4481
|
background-color: var(--_nys-radiobutton-checked-color-bg);
|
|
3879
4482
|
}
|
|
3880
4483
|
:host([tile])
|
|
3881
|
-
.nys-radiobutton:has(
|
|
4484
|
+
.nys-radiobutton:has(input:not(:disabled):checked)
|
|
4485
|
+
+ .nys-radiobutton
|
|
4486
|
+
.nys-radiobutton__radio {
|
|
3882
4487
|
border-color: var(--_nys-radiobutton-checked-tile-border-color);
|
|
3883
4488
|
background-color: var(--_nys-radiobutton-checked-tile-bg-color);
|
|
3884
4489
|
}
|
|
3885
4490
|
:host([tile])
|
|
3886
|
-
.nys-radiobutton:has(
|
|
4491
|
+
.nys-radiobutton:has(input:not(:disabled):checked:hover)
|
|
4492
|
+
+ .nys-radiobutton
|
|
4493
|
+
.nys-radiobutton__radio {
|
|
3887
4494
|
cursor: default;
|
|
3888
4495
|
}
|
|
3889
4496
|
|
|
3890
4497
|
/* Checked + Disabled */
|
|
3891
|
-
|
|
4498
|
+
input:disabled:checked + .nys-radiobutton .nys-radiobutton__radio {
|
|
3892
4499
|
background-image: url('data:image/svg+xml;utf8,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="11" cy="11" r="11" stroke="white" stroke-width="6"/></svg>');
|
|
3893
4500
|
border-color: var(--_nys-radiobutton-disabled-checked-color-border);
|
|
3894
4501
|
background-color: var(--_nys-radiobutton-disabled-checked-color-bg);
|
|
3895
4502
|
}
|
|
3896
|
-
:host([tile])
|
|
4503
|
+
:host([tile])
|
|
4504
|
+
.nys-radiobutton:has(input:disabled:checked)
|
|
4505
|
+
+ .nys-radiobutton
|
|
4506
|
+
.nys-radiobutton__radio {
|
|
3897
4507
|
border-color: var(--_nys-radiobutton-disabled-tile-border-color);
|
|
3898
4508
|
background-color: var(--_nys-radiobutton-disabled-tile-bg-color);
|
|
3899
4509
|
}
|
|
3900
4510
|
|
|
3901
4511
|
/* Disabled */
|
|
3902
|
-
.nys-radiobutton__radio
|
|
4512
|
+
input:disabled + .nys-radiobutton .nys-radiobutton__radio {
|
|
3903
4513
|
background-color: var(--_nys-radiobutton-disabled-color-bg);
|
|
3904
4514
|
border-color: var(--_nys-radiobutton-disabled-color-border);
|
|
3905
4515
|
cursor: not-allowed;
|
|
3906
4516
|
}
|
|
3907
|
-
:host([tile])
|
|
4517
|
+
:host([tile])
|
|
4518
|
+
.nys-radiobutton:has(input:disabled)
|
|
4519
|
+
+ .nys-radiobutton
|
|
4520
|
+
.nys-radiobutton__radio {
|
|
3908
4521
|
background-color: var(--_nys-radiobutton-disabled-color-bg);
|
|
3909
4522
|
border-color: var(--_nys-radiobutton-disabled-color-border);
|
|
3910
4523
|
cursor: not-allowed;
|
|
3911
4524
|
}
|
|
3912
4525
|
|
|
3913
4526
|
/* Hover - only allow hover on unchecked */
|
|
3914
|
-
|
|
4527
|
+
input:hover:not(:disabled):not(:checked)
|
|
4528
|
+
+ .nys-radiobutton
|
|
4529
|
+
.nys-radiobutton__radio {
|
|
3915
4530
|
border-color: var(--_nys-radiobutton-hover-color-border);
|
|
3916
4531
|
background-color: var(--_nys-radiobutton-hover-color-bg);
|
|
3917
4532
|
}
|
|
3918
4533
|
:host([tile])
|
|
3919
4534
|
.nys-radiobutton:has(
|
|
3920
|
-
|
|
4535
|
+
input:hover:not(:disabled):not(:checked)
|
|
4536
|
+
+ .nys-radiobutton
|
|
4537
|
+
.nys-radiobutton__radio
|
|
3921
4538
|
) {
|
|
3922
4539
|
border-color: var(--_nys-radiobutton-hover-tile-border-color);
|
|
3923
4540
|
background-color: var(--_nys-radiobutton-hover-tile-bg-color);
|
|
@@ -3926,13 +4543,17 @@ const Z1 = g`
|
|
|
3926
4543
|
}
|
|
3927
4544
|
|
|
3928
4545
|
/* Pressed - only allow pressed on unchecked */
|
|
3929
|
-
|
|
4546
|
+
input:active:not(:disabled):not(:checked)
|
|
4547
|
+
+ .nys-radiobutton
|
|
4548
|
+
.nys-radiobutton__radio {
|
|
3930
4549
|
border-color: var(--_nys-radiobutton-pressed-color-border);
|
|
3931
4550
|
background-color: var(--_nys-radiobutton-pressed-color-bg);
|
|
3932
4551
|
}
|
|
3933
4552
|
:host([tile])
|
|
3934
4553
|
.nys-radiobutton:has(
|
|
3935
|
-
|
|
4554
|
+
input:active:not(:disabled):not(:checked)
|
|
4555
|
+
+ .nys-radiobutton
|
|
4556
|
+
.nys-radiobutton__radio
|
|
3936
4557
|
) {
|
|
3937
4558
|
border-color: var(--_nys-radiobutton-pressed-tile-border-color);
|
|
3938
4559
|
background-color: var(--_nys-radiobutton-pressed-tile-bg-color);
|
|
@@ -3941,16 +4562,11 @@ const Z1 = g`
|
|
|
3941
4562
|
}
|
|
3942
4563
|
|
|
3943
4564
|
/* Focused */
|
|
3944
|
-
:host
|
|
4565
|
+
:host:focus-visible,
|
|
4566
|
+
:host(.active-focus) {
|
|
3945
4567
|
outline: solid var(--_nys-radiobutton-width-focus)
|
|
3946
4568
|
var(--_nys-radiobutton-color-focus);
|
|
3947
4569
|
}
|
|
3948
|
-
:host([tile]) .nys-radiobutton:has(*:focus-visible) {
|
|
3949
|
-
outline: solid var(--_nys-radiobutton-tile-border-width)
|
|
3950
|
-
var(--_nys-radiobutton-color-focus) !important;
|
|
3951
|
-
border-color: var(--_nys-radiobutton-color-focus) !important;
|
|
3952
|
-
}
|
|
3953
|
-
|
|
3954
4570
|
/* Radiobutton Label Holder */
|
|
3955
4571
|
.nys-radiobutton__text {
|
|
3956
4572
|
line-height: var(--_nys-radiobutton-line-height);
|
|
@@ -3981,45 +4597,57 @@ const Z1 = g`
|
|
|
3981
4597
|
}
|
|
3982
4598
|
|
|
3983
4599
|
/* Disabled label */
|
|
3984
|
-
.nys-
|
|
3985
|
-
|
|
3986
|
-
.nys-radiobutton__label,
|
|
3987
|
-
.nys-radiobutton__radio:disabled
|
|
3988
|
-
+ .nys-radiobutton__text
|
|
3989
|
-
.nys-radiobutton__description {
|
|
4600
|
+
input:disabled + span + .nys-radiobutton__text .nys-radiobutton__label,
|
|
4601
|
+
input:disabled + span + .nys-radiobutton__text .nys-radiobutton__description {
|
|
3990
4602
|
color: var(--_nys-radiobutton-disabled-color-text);
|
|
3991
4603
|
cursor: not-allowed;
|
|
3992
4604
|
}
|
|
4605
|
+
|
|
4606
|
+
/* Screen readers ONLY */
|
|
4607
|
+
fieldset {
|
|
4608
|
+
all: unset;
|
|
4609
|
+
display: contents;
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
.sr-only {
|
|
4613
|
+
position: absolute;
|
|
4614
|
+
width: 1px;
|
|
4615
|
+
height: 1px;
|
|
4616
|
+
padding: 0;
|
|
4617
|
+
margin: -1px;
|
|
4618
|
+
overflow: hidden;
|
|
4619
|
+
border: 0;
|
|
4620
|
+
}
|
|
3993
4621
|
`;
|
|
3994
|
-
var
|
|
3995
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4622
|
+
var je = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, Z = (l, e, t, o) => {
|
|
4623
|
+
for (var s = o > 1 ? void 0 : o ? Ge(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
3996
4624
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3997
|
-
return o && s &&
|
|
4625
|
+
return o && s && je(e, t, s), s;
|
|
3998
4626
|
};
|
|
3999
|
-
let
|
|
4000
|
-
var
|
|
4001
|
-
const E = (
|
|
4627
|
+
let Ye = 0;
|
|
4628
|
+
var W;
|
|
4629
|
+
const E = (W = class extends y {
|
|
4002
4630
|
// allows use of elementInternals' API
|
|
4003
4631
|
constructor() {
|
|
4004
|
-
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.selectedValue = null, this.
|
|
4632
|
+
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this.selectedValue = null, this._slottedDescriptionText = "", this._size = "md", this._internals = this.attachInternals();
|
|
4005
4633
|
}
|
|
4006
4634
|
get size() {
|
|
4007
4635
|
return this._size;
|
|
4008
4636
|
}
|
|
4009
4637
|
set size(e) {
|
|
4010
|
-
this._size =
|
|
4638
|
+
this._size = W.VALID_SIZES.includes(
|
|
4011
4639
|
e
|
|
4012
4640
|
) ? e : "md";
|
|
4013
4641
|
}
|
|
4014
4642
|
// Generate a unique ID if one is not provided
|
|
4015
4643
|
connectedCallback() {
|
|
4016
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${
|
|
4644
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${Ye++}`), this.addEventListener("nys-change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
|
|
4017
4645
|
}
|
|
4018
4646
|
disconnectedCallback() {
|
|
4019
4647
|
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
4020
4648
|
}
|
|
4021
|
-
firstUpdated() {
|
|
4022
|
-
this._initializeCheckedRadioValue(), this._setValue(), this.
|
|
4649
|
+
async firstUpdated() {
|
|
4650
|
+
this._initializeCheckedRadioValue(), this._setValue(), this._setRadioButtonRequire(), this._updateRadioButtonsSize(), this._updateRadioButtonsTile(), this._updateRadioButtonsShowError(), this._getSlotDescriptionForAria(), await this.updateComplete, this._initializeChildAttributes(), this._updateGroupTabIndex();
|
|
4023
4651
|
}
|
|
4024
4652
|
updated(e) {
|
|
4025
4653
|
(e.has("required") || e.has("selectedValue")) && this._manageRequire(), e.has("size") && this._updateRadioButtonsSize(), e.has("tile") && this._updateRadioButtonsTile(), e.has("showError") && this._updateRadioButtonsShowError();
|
|
@@ -4034,8 +4662,9 @@ const E = (Y = class extends u {
|
|
|
4034
4662
|
_setValue() {
|
|
4035
4663
|
this._internals.setFormValue(this.selectedValue);
|
|
4036
4664
|
}
|
|
4037
|
-
// Updates the "require" attribute of the first radiobutton underneath a radiogroup
|
|
4038
|
-
|
|
4665
|
+
// Updates the "require" attribute of the first radiobutton underneath a radiogroup.
|
|
4666
|
+
// This will make sure there's a requirement for all radiobutton under the same name/group
|
|
4667
|
+
_setRadioButtonRequire() {
|
|
4039
4668
|
this.querySelectorAll("nys-radiobutton").forEach((t, o) => {
|
|
4040
4669
|
this.required && o === 0 && t.setAttribute("required", "required");
|
|
4041
4670
|
});
|
|
@@ -4048,12 +4677,49 @@ const E = (Y = class extends u {
|
|
|
4048
4677
|
o
|
|
4049
4678
|
) : (this.showError = !1, this._internals.setValidity({}, "", o)));
|
|
4050
4679
|
}
|
|
4680
|
+
checkValidity() {
|
|
4681
|
+
const e = Array.from(this.querySelectorAll("nys-radiobutton"));
|
|
4682
|
+
return !this.required || e.some((o) => o.checked);
|
|
4683
|
+
}
|
|
4051
4684
|
// Need to account for if radiogroup already have a radiobutton checked at initialization
|
|
4052
4685
|
_initializeCheckedRadioValue() {
|
|
4053
4686
|
const e = this.querySelector("nys-radiobutton[checked]");
|
|
4054
4687
|
e && (this.selectedValue = e.getAttribute("value"), this._internals.setFormValue(this.selectedValue));
|
|
4055
4688
|
}
|
|
4689
|
+
/********************** Core Keyboard & Click Logic **********************/
|
|
4690
|
+
_getAllRadios() {
|
|
4691
|
+
return Array.from(this.querySelectorAll("nys-radiobutton"));
|
|
4692
|
+
}
|
|
4693
|
+
// Arrow / Space / Enter navigation at group level
|
|
4694
|
+
async _handleKeyDown(e) {
|
|
4695
|
+
if (![
|
|
4696
|
+
"ArrowUp",
|
|
4697
|
+
"ArrowDown",
|
|
4698
|
+
"ArrowLeft",
|
|
4699
|
+
"ArrowRight",
|
|
4700
|
+
" ",
|
|
4701
|
+
"Enter"
|
|
4702
|
+
].includes(e.key)) return;
|
|
4703
|
+
e.preventDefault();
|
|
4704
|
+
const o = this._getAllRadios().filter((_) => !_.disabled), s = o.find((_) => _.checked) || o[0], n = e.key === " " || e.key === "Enter" ? 0 : ["ArrowUp", "ArrowLeft"].includes(e.key) ? -1 : 1;
|
|
4705
|
+
let i = o.indexOf(s) + n;
|
|
4706
|
+
i < 0 && (i = o.length - 1), i >= o.length && (i = 0);
|
|
4707
|
+
const c = o[i], d = await c.getInputElement();
|
|
4708
|
+
d == null || d.click(), this._updateGroupTabIndex(), c.focus();
|
|
4709
|
+
}
|
|
4710
|
+
_updateGroupTabIndex() {
|
|
4711
|
+
const e = this._getAllRadios(), t = e.find((o) => o.checked) || e[0];
|
|
4712
|
+
e.forEach((o) => {
|
|
4713
|
+
o.disabled ? o.tabIndex = -1 : o.tabIndex = o === t ? 0 : -1, o.setAttribute("aria-checked", o.checked ? "true" : "false"), o.setAttribute("aria-disabled", o.disabled ? "true" : "false"), o.setAttribute("aria-required", this.required ? "true" : "false");
|
|
4714
|
+
});
|
|
4715
|
+
}
|
|
4056
4716
|
/********************** Functions **********************/
|
|
4717
|
+
// Apply ARIA & initial tabindex to each child radio
|
|
4718
|
+
_initializeChildAttributes() {
|
|
4719
|
+
this._getAllRadios().forEach((t) => {
|
|
4720
|
+
t.setAttribute("role", "radio"), t.setAttribute("aria-checked", String(t.checked)), t.setAttribute("aria-required", String(t.required)), t.setAttribute("aria-disabled", String(t.disabled)), t.setAttribute("tabindex", "-1");
|
|
4721
|
+
});
|
|
4722
|
+
}
|
|
4057
4723
|
// Updates the size of each radiobutton underneath a radiogroup to ensure size standardization
|
|
4058
4724
|
_updateRadioButtonsSize() {
|
|
4059
4725
|
this.querySelectorAll("nys-radiobutton").forEach((t) => {
|
|
@@ -4070,36 +4736,39 @@ const E = (Y = class extends u {
|
|
|
4070
4736
|
this.showError ? t.setAttribute("showError", "") : t.removeAttribute("showError");
|
|
4071
4737
|
});
|
|
4072
4738
|
}
|
|
4739
|
+
// Get the slotted text contents so native VO can attempt to announce it within the legend in the fieldset
|
|
4740
|
+
_getSlotDescriptionForAria() {
|
|
4741
|
+
var o;
|
|
4742
|
+
const e = (o = this.shadowRoot) == null ? void 0 : o.querySelector(
|
|
4743
|
+
'slot[name="description"]'
|
|
4744
|
+
), t = (e == null ? void 0 : e.assignedNodes({ flatten: !0 })) || [];
|
|
4745
|
+
this._slottedDescriptionText = t.map((s) => {
|
|
4746
|
+
var n;
|
|
4747
|
+
return (n = s.textContent) == null ? void 0 : n.trim();
|
|
4748
|
+
}).filter(Boolean).join(", ");
|
|
4749
|
+
}
|
|
4750
|
+
/******************** Event Handlers ********************/
|
|
4073
4751
|
// Keeps radiogroup informed of the name and value of its current selected radiobutton at each change
|
|
4074
4752
|
_handleRadioButtonChange(e) {
|
|
4075
4753
|
const t = e, { name: o, value: s } = t.detail;
|
|
4076
|
-
this.name = o, this.selectedValue = s, this._internals.setFormValue(this.selectedValue);
|
|
4754
|
+
this.name = o, this.selectedValue = s, this._internals.setFormValue(this.selectedValue), this._updateGroupTabIndex();
|
|
4077
4755
|
}
|
|
4078
4756
|
async _handleInvalid(e) {
|
|
4079
4757
|
if (e.preventDefault(), this._internals.validity.valueMissing) {
|
|
4080
4758
|
this.showError = !0, this._manageRequire();
|
|
4081
|
-
const t = this.querySelector("nys-radiobutton")
|
|
4082
|
-
if (
|
|
4083
|
-
const
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
return c;
|
|
4088
|
-
} else
|
|
4089
|
-
return typeof c.checkValidity == "function" && !c.checkValidity();
|
|
4090
|
-
}) === this && o.focus() : o.focus();
|
|
4759
|
+
const t = this.querySelector("nys-radiobutton");
|
|
4760
|
+
if (t) {
|
|
4761
|
+
const o = this._internals.form;
|
|
4762
|
+
o ? Array.from(o.elements).find(
|
|
4763
|
+
(i) => typeof i.checkValidity == "function" && !i.checkValidity()
|
|
4764
|
+
) === this && (t.focus(), t.classList.add("active-focus")) : (t.focus(), t.classList.add("active-focus"));
|
|
4091
4765
|
}
|
|
4092
4766
|
}
|
|
4093
4767
|
}
|
|
4094
4768
|
render() {
|
|
4095
|
-
return a
|
|
4096
|
-
role="radiogroup"
|
|
4097
|
-
class="nys-radiogroup"
|
|
4098
|
-
aria-required="${this.required ? "true" : "false"}"
|
|
4099
|
-
aria-invalid="${this.showError ? "true" : "false"}"
|
|
4100
|
-
>
|
|
4769
|
+
return a`<div class="nys-radiogroup">
|
|
4101
4770
|
<nys-label
|
|
4102
|
-
|
|
4771
|
+
for=${this.id}
|
|
4103
4772
|
label=${this.label}
|
|
4104
4773
|
description=${this.description}
|
|
4105
4774
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -4107,7 +4776,12 @@ const E = (Y = class extends u {
|
|
|
4107
4776
|
<slot name="description" slot="description">${this.description}</slot>
|
|
4108
4777
|
</nys-label>
|
|
4109
4778
|
<div class="nys-radiogroup__content">
|
|
4110
|
-
<
|
|
4779
|
+
<fieldset role="radiogroup" @keydown=${this._handleKeyDown}>
|
|
4780
|
+
<legend class="sr-only">
|
|
4781
|
+
${this.label}${this._slottedDescriptionText ? ` ${this._slottedDescriptionText}` : this.description ? ` ${this.description}` : ""}
|
|
4782
|
+
</legend>
|
|
4783
|
+
<slot></slot>
|
|
4784
|
+
</fieldset>
|
|
4111
4785
|
</div>
|
|
4112
4786
|
<nys-errormessage
|
|
4113
4787
|
?showError=${this.showError}
|
|
@@ -4116,50 +4790,53 @@ const E = (Y = class extends u {
|
|
|
4116
4790
|
></nys-errormessage>
|
|
4117
4791
|
</div>`;
|
|
4118
4792
|
}
|
|
4119
|
-
},
|
|
4120
|
-
|
|
4793
|
+
}, W.VALID_SIZES = ["sm", "md"], W.styles = Y1, W.formAssociated = !0, W);
|
|
4794
|
+
Z([
|
|
4121
4795
|
r({ type: String })
|
|
4122
4796
|
], E.prototype, "id", 2);
|
|
4123
|
-
|
|
4797
|
+
Z([
|
|
4124
4798
|
r({ type: String, reflect: !0 })
|
|
4125
4799
|
], E.prototype, "name", 2);
|
|
4126
|
-
|
|
4800
|
+
Z([
|
|
4127
4801
|
r({ type: Boolean, reflect: !0 })
|
|
4128
4802
|
], E.prototype, "required", 2);
|
|
4129
|
-
|
|
4803
|
+
Z([
|
|
4130
4804
|
r({ type: Boolean, reflect: !0 })
|
|
4131
4805
|
], E.prototype, "optional", 2);
|
|
4132
|
-
|
|
4806
|
+
Z([
|
|
4133
4807
|
r({ type: Boolean, reflect: !0 })
|
|
4134
4808
|
], E.prototype, "showError", 2);
|
|
4135
|
-
|
|
4809
|
+
Z([
|
|
4136
4810
|
r({ type: String })
|
|
4137
4811
|
], E.prototype, "errorMessage", 2);
|
|
4138
|
-
|
|
4812
|
+
Z([
|
|
4139
4813
|
r({ type: String })
|
|
4140
4814
|
], E.prototype, "label", 2);
|
|
4141
|
-
|
|
4815
|
+
Z([
|
|
4142
4816
|
r({ type: String })
|
|
4143
4817
|
], E.prototype, "description", 2);
|
|
4144
|
-
|
|
4145
|
-
|
|
4818
|
+
Z([
|
|
4819
|
+
r({ type: Boolean, reflect: !0 })
|
|
4820
|
+
], E.prototype, "tile", 2);
|
|
4821
|
+
Z([
|
|
4822
|
+
D()
|
|
4146
4823
|
], E.prototype, "selectedValue", 2);
|
|
4147
|
-
|
|
4824
|
+
Z([
|
|
4825
|
+
D()
|
|
4826
|
+
], E.prototype, "_slottedDescriptionText", 2);
|
|
4827
|
+
Z([
|
|
4148
4828
|
r({ reflect: !0 })
|
|
4149
4829
|
], E.prototype, "size", 1);
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", Se);
|
|
4155
|
-
var Ve = Object.defineProperty, De = Object.getOwnPropertyDescriptor, F = (l, e, t, o) => {
|
|
4156
|
-
for (var s = o > 1 ? void 0 : o ? De(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4830
|
+
let We = E;
|
|
4831
|
+
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", We);
|
|
4832
|
+
var Ke = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, N = (l, e, t, o) => {
|
|
4833
|
+
for (var s = o > 1 ? void 0 : o ? Xe(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4157
4834
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4158
|
-
return o && s &&
|
|
4835
|
+
return o && s && Ke(e, t, s), s;
|
|
4159
4836
|
};
|
|
4160
|
-
let
|
|
4161
|
-
var
|
|
4162
|
-
const
|
|
4837
|
+
let Qe = 0;
|
|
4838
|
+
var p;
|
|
4839
|
+
const O = (p = class extends y {
|
|
4163
4840
|
constructor() {
|
|
4164
4841
|
super(...arguments), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this._size = "md", this.tile = !1;
|
|
4165
4842
|
}
|
|
@@ -4167,7 +4844,7 @@ const U = (y = class extends u {
|
|
|
4167
4844
|
return this._size;
|
|
4168
4845
|
}
|
|
4169
4846
|
set size(e) {
|
|
4170
|
-
this._size =
|
|
4847
|
+
this._size = p.VALID_SIZES.includes(
|
|
4171
4848
|
e
|
|
4172
4849
|
) ? e : "md";
|
|
4173
4850
|
}
|
|
@@ -4182,12 +4859,15 @@ const U = (y = class extends u {
|
|
|
4182
4859
|
/********************** Lifecycle updates **********************/
|
|
4183
4860
|
// Generate a unique ID if one is not provided
|
|
4184
4861
|
connectedCallback() {
|
|
4185
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${
|
|
4862
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${Qe++}`), this.checked && (p.buttonGroup[this.name] && (p.buttonGroup[this.name].checked = !1, p.buttonGroup[this.name].requestUpdate()), p.buttonGroup[this.name] = this), this.addEventListener("focus", this._handleFocus), this.addEventListener("blur", this._handleBlur), this.addEventListener("click", this._handleChange);
|
|
4863
|
+
}
|
|
4864
|
+
disconnectedCallback() {
|
|
4865
|
+
super.disconnectedCallback(), this.removeEventListener("focus", this._handleFocus), this.removeEventListener("blur", this._handleBlur);
|
|
4186
4866
|
}
|
|
4187
4867
|
updated(e) {
|
|
4188
|
-
e.has("checked") && this.checked &&
|
|
4868
|
+
e.has("checked") && this.checked && p.buttonGroup[this.name] !== this && (p.buttonGroup[this.name] && (p.buttonGroup[this.name].checked = !1, p.buttonGroup[this.name].requestUpdate()), p.buttonGroup[this.name] = this);
|
|
4189
4869
|
}
|
|
4190
|
-
|
|
4870
|
+
/********************** Functions **********************/
|
|
4191
4871
|
// This helper function is called to perform the element's native validation.
|
|
4192
4872
|
checkValidity() {
|
|
4193
4873
|
var t;
|
|
@@ -4212,7 +4892,7 @@ const U = (y = class extends u {
|
|
|
4212
4892
|
}
|
|
4213
4893
|
// Handle radiobutton change event & unselection of other options in group
|
|
4214
4894
|
_handleChange() {
|
|
4215
|
-
this.checked || (
|
|
4895
|
+
this.classList.remove("active-focus"), this.checked || (p.buttonGroup[this.name] && (p.buttonGroup[this.name].checked = !1, p.buttonGroup[this.name].requestUpdate()), p.buttonGroup[this.name] = this, this.checked = !0, this._emitChangeEvent());
|
|
4216
4896
|
}
|
|
4217
4897
|
// Handle focus event
|
|
4218
4898
|
_handleFocus() {
|
|
@@ -4220,77 +4900,81 @@ const U = (y = class extends u {
|
|
|
4220
4900
|
}
|
|
4221
4901
|
// Handle blur event
|
|
4222
4902
|
_handleBlur() {
|
|
4223
|
-
this.dispatchEvent(new Event("nys-blur"));
|
|
4903
|
+
this.classList.remove("active-focus"), this.dispatchEvent(new Event("nys-blur"));
|
|
4224
4904
|
}
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4905
|
+
_callInputHandling() {
|
|
4906
|
+
var t;
|
|
4907
|
+
if (this.disabled) return;
|
|
4908
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
|
4909
|
+
'input[type="radio"]'
|
|
4910
|
+
);
|
|
4911
|
+
e && (e.focus(), e.click());
|
|
4228
4912
|
}
|
|
4229
4913
|
render() {
|
|
4230
4914
|
return a`
|
|
4231
|
-
<
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4915
|
+
<input
|
|
4916
|
+
id="${this.id}"
|
|
4917
|
+
type="radio"
|
|
4918
|
+
name="${h(this.name ? this.name : void 0)}"
|
|
4919
|
+
.checked=${this.checked}
|
|
4920
|
+
?disabled=${this.disabled}
|
|
4921
|
+
.value=${this.value}
|
|
4922
|
+
?required="${this.required}"
|
|
4923
|
+
@change="${this._handleChange}"
|
|
4924
|
+
hidden
|
|
4925
|
+
aria-hidden="true"
|
|
4926
|
+
/>
|
|
4927
|
+
|
|
4928
|
+
<label
|
|
4929
|
+
class="nys-radiobutton"
|
|
4930
|
+
for="${this.id}"
|
|
4931
|
+
@click="${this._callInputHandling}"
|
|
4932
|
+
>
|
|
4933
|
+
<span class="nys-radiobutton__radio"></span>
|
|
4934
|
+
|
|
4249
4935
|
${this.label && a` <div class="nys-radiobutton__text">
|
|
4250
|
-
<
|
|
4251
|
-
|
|
4252
|
-
>
|
|
4253
|
-
<label for=${this.id} class="nys-radiobutton__description">
|
|
4936
|
+
<div class="nys-radiobutton__label">${this.label}</div>
|
|
4937
|
+
<div class="nys-radiobutton__description">
|
|
4254
4938
|
<slot name="description">${this.description}</slot>
|
|
4255
|
-
</
|
|
4939
|
+
</div>
|
|
4256
4940
|
</div>`}
|
|
4257
4941
|
</label>
|
|
4258
4942
|
`;
|
|
4259
4943
|
}
|
|
4260
|
-
},
|
|
4261
|
-
|
|
4944
|
+
}, p.VALID_SIZES = ["sm", "md"], p.buttonGroup = {}, p.styles = Y1, p);
|
|
4945
|
+
N([
|
|
4262
4946
|
r({ type: Boolean, reflect: !0 })
|
|
4263
|
-
],
|
|
4264
|
-
|
|
4947
|
+
], O.prototype, "checked", 2);
|
|
4948
|
+
N([
|
|
4265
4949
|
r({ type: Boolean, reflect: !0 })
|
|
4266
|
-
],
|
|
4267
|
-
|
|
4950
|
+
], O.prototype, "disabled", 2);
|
|
4951
|
+
N([
|
|
4268
4952
|
r({ type: Boolean, reflect: !0 })
|
|
4269
|
-
],
|
|
4270
|
-
|
|
4953
|
+
], O.prototype, "required", 2);
|
|
4954
|
+
N([
|
|
4271
4955
|
r({ type: String })
|
|
4272
|
-
],
|
|
4273
|
-
|
|
4956
|
+
], O.prototype, "label", 2);
|
|
4957
|
+
N([
|
|
4274
4958
|
r({ type: String })
|
|
4275
|
-
],
|
|
4276
|
-
|
|
4959
|
+
], O.prototype, "description", 2);
|
|
4960
|
+
N([
|
|
4277
4961
|
r({ type: String })
|
|
4278
|
-
],
|
|
4279
|
-
|
|
4962
|
+
], O.prototype, "id", 2);
|
|
4963
|
+
N([
|
|
4280
4964
|
r({ type: String, reflect: !0 })
|
|
4281
|
-
],
|
|
4282
|
-
|
|
4965
|
+
], O.prototype, "name", 2);
|
|
4966
|
+
N([
|
|
4283
4967
|
r({ type: String })
|
|
4284
|
-
],
|
|
4285
|
-
|
|
4968
|
+
], O.prototype, "value", 2);
|
|
4969
|
+
N([
|
|
4286
4970
|
r({ reflect: !0 })
|
|
4287
|
-
],
|
|
4288
|
-
|
|
4971
|
+
], O.prototype, "size", 1);
|
|
4972
|
+
N([
|
|
4289
4973
|
r({ type: Boolean, reflect: !0 })
|
|
4290
|
-
],
|
|
4291
|
-
let
|
|
4292
|
-
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton",
|
|
4293
|
-
const
|
|
4974
|
+
], O.prototype, "tile", 2);
|
|
4975
|
+
let Je = O;
|
|
4976
|
+
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", Je);
|
|
4977
|
+
const et = u`
|
|
4294
4978
|
:host {
|
|
4295
4979
|
/* Global Select Styles */
|
|
4296
4980
|
--_nys-select-width: 100%;
|
|
@@ -4360,8 +5044,7 @@ const Ee = g`
|
|
|
4360
5044
|
font-size: var(--_nys-select-font-size);
|
|
4361
5045
|
padding: var(--_nys-select-padding);
|
|
4362
5046
|
width: var(--_nys-select-width);
|
|
4363
|
-
|
|
4364
|
-
max-width: var(--_nys-select-width);
|
|
5047
|
+
max-width: 100%;
|
|
4365
5048
|
text-indent: 1px;
|
|
4366
5049
|
text-overflow: "";
|
|
4367
5050
|
background: var(--_nys-select-bg-color);
|
|
@@ -4375,6 +5058,7 @@ const Ee = g`
|
|
|
4375
5058
|
position: relative;
|
|
4376
5059
|
display: inline-block;
|
|
4377
5060
|
width: var(--_nys-select-width);
|
|
5061
|
+
max-width: 100%;
|
|
4378
5062
|
}
|
|
4379
5063
|
|
|
4380
5064
|
.nys-select__icon {
|
|
@@ -4438,12 +5122,12 @@ const Ee = g`
|
|
|
4438
5122
|
var(--_nys-select-error-color);
|
|
4439
5123
|
}
|
|
4440
5124
|
`;
|
|
4441
|
-
var
|
|
5125
|
+
var tt = Object.defineProperty, w1 = (l, e, t, o) => {
|
|
4442
5126
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
4443
5127
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
4444
|
-
return s &&
|
|
5128
|
+
return s && tt(e, t, s), s;
|
|
4445
5129
|
};
|
|
4446
|
-
class
|
|
5130
|
+
class y1 extends y {
|
|
4447
5131
|
constructor() {
|
|
4448
5132
|
super(...arguments), this.disabled = !1, this.selected = !1, this.value = "", this.label = "", this.hidden = !1;
|
|
4449
5133
|
}
|
|
@@ -4470,30 +5154,30 @@ class a1 extends u {
|
|
|
4470
5154
|
`;
|
|
4471
5155
|
}
|
|
4472
5156
|
}
|
|
4473
|
-
|
|
5157
|
+
w1([
|
|
4474
5158
|
r({ type: Boolean, reflect: !0 })
|
|
4475
|
-
],
|
|
4476
|
-
|
|
5159
|
+
], y1.prototype, "disabled");
|
|
5160
|
+
w1([
|
|
4477
5161
|
r({ type: Boolean, reflect: !0 })
|
|
4478
|
-
],
|
|
4479
|
-
|
|
5162
|
+
], y1.prototype, "selected");
|
|
5163
|
+
w1([
|
|
4480
5164
|
r({ type: String })
|
|
4481
|
-
],
|
|
4482
|
-
|
|
5165
|
+
], y1.prototype, "value");
|
|
5166
|
+
w1([
|
|
4483
5167
|
r({ type: String })
|
|
4484
|
-
],
|
|
4485
|
-
|
|
5168
|
+
], y1.prototype, "label");
|
|
5169
|
+
w1([
|
|
4486
5170
|
r({ type: Boolean, reflect: !0 })
|
|
4487
|
-
],
|
|
4488
|
-
customElements.define("nys-option",
|
|
4489
|
-
var
|
|
4490
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
5171
|
+
], y1.prototype, "hidden");
|
|
5172
|
+
customElements.define("nys-option", y1);
|
|
5173
|
+
var st = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, B = (l, e, t, o) => {
|
|
5174
|
+
for (var s = o > 1 ? void 0 : o ? ot(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4491
5175
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4492
|
-
return o && s &&
|
|
5176
|
+
return o && s && st(e, t, s), s;
|
|
4493
5177
|
};
|
|
4494
|
-
let
|
|
4495
|
-
var
|
|
4496
|
-
const
|
|
5178
|
+
let rt = 0;
|
|
5179
|
+
var K;
|
|
5180
|
+
const H = (K = class extends y {
|
|
4497
5181
|
// allows use of elementInternals' API
|
|
4498
5182
|
constructor() {
|
|
4499
5183
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.value = "", this.disabled = !1, this.required = !1, this.optional = !1, this.form = "", this.showError = !1, this.errorMessage = "", this._width = "md", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -4502,13 +5186,13 @@ const z = (W = class extends u {
|
|
|
4502
5186
|
return this._width;
|
|
4503
5187
|
}
|
|
4504
5188
|
set width(e) {
|
|
4505
|
-
this._width =
|
|
5189
|
+
this._width = K.VALID_WIDTHS.includes(
|
|
4506
5190
|
e
|
|
4507
5191
|
) ? e : "full";
|
|
4508
5192
|
}
|
|
4509
5193
|
// Generate a unique ID if one is not provided
|
|
4510
5194
|
connectedCallback() {
|
|
4511
|
-
super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${
|
|
5195
|
+
super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${rt++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
4512
5196
|
}
|
|
4513
5197
|
disconnectedCallback() {
|
|
4514
5198
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4528,7 +5212,7 @@ const z = (W = class extends u {
|
|
|
4528
5212
|
if (!e || !t) return;
|
|
4529
5213
|
t.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), e.assignedElements({ flatten: !0 }).forEach((i) => {
|
|
4530
5214
|
var c;
|
|
4531
|
-
if (i instanceof
|
|
5215
|
+
if (i instanceof y1) {
|
|
4532
5216
|
const d = document.createElement("option");
|
|
4533
5217
|
d.value = i.value, d.textContent = i.label || ((c = i.textContent) == null ? void 0 : c.trim()) || "", d.disabled = i.disabled, d.selected = i.selected, t.appendChild(d);
|
|
4534
5218
|
}
|
|
@@ -4611,7 +5295,7 @@ const z = (W = class extends u {
|
|
|
4611
5295
|
return a`
|
|
4612
5296
|
<div class="nys-select">
|
|
4613
5297
|
<nys-label
|
|
4614
|
-
|
|
5298
|
+
for=${this.id}
|
|
4615
5299
|
label=${this.label}
|
|
4616
5300
|
description=${this.description}
|
|
4617
5301
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -4651,46 +5335,46 @@ const z = (W = class extends u {
|
|
|
4651
5335
|
</div>
|
|
4652
5336
|
`;
|
|
4653
5337
|
}
|
|
4654
|
-
},
|
|
4655
|
-
|
|
5338
|
+
}, K.VALID_WIDTHS = ["sm", "md", "lg", "full"], K.styles = et, K.formAssociated = !0, K);
|
|
5339
|
+
B([
|
|
4656
5340
|
r({ type: String })
|
|
4657
|
-
],
|
|
4658
|
-
|
|
5341
|
+
], H.prototype, "id", 2);
|
|
5342
|
+
B([
|
|
4659
5343
|
r({ type: String, reflect: !0 })
|
|
4660
|
-
],
|
|
4661
|
-
|
|
5344
|
+
], H.prototype, "name", 2);
|
|
5345
|
+
B([
|
|
4662
5346
|
r({ type: String })
|
|
4663
|
-
],
|
|
4664
|
-
|
|
5347
|
+
], H.prototype, "label", 2);
|
|
5348
|
+
B([
|
|
4665
5349
|
r({ type: String })
|
|
4666
|
-
],
|
|
4667
|
-
|
|
5350
|
+
], H.prototype, "description", 2);
|
|
5351
|
+
B([
|
|
4668
5352
|
r({ type: String })
|
|
4669
|
-
],
|
|
4670
|
-
|
|
5353
|
+
], H.prototype, "value", 2);
|
|
5354
|
+
B([
|
|
4671
5355
|
r({ type: Boolean, reflect: !0 })
|
|
4672
|
-
],
|
|
4673
|
-
|
|
5356
|
+
], H.prototype, "disabled", 2);
|
|
5357
|
+
B([
|
|
4674
5358
|
r({ type: Boolean, reflect: !0 })
|
|
4675
|
-
],
|
|
4676
|
-
|
|
5359
|
+
], H.prototype, "required", 2);
|
|
5360
|
+
B([
|
|
4677
5361
|
r({ type: Boolean, reflect: !0 })
|
|
4678
|
-
],
|
|
4679
|
-
|
|
5362
|
+
], H.prototype, "optional", 2);
|
|
5363
|
+
B([
|
|
4680
5364
|
r({ type: String })
|
|
4681
|
-
],
|
|
4682
|
-
|
|
5365
|
+
], H.prototype, "form", 2);
|
|
5366
|
+
B([
|
|
4683
5367
|
r({ type: Boolean, reflect: !0 })
|
|
4684
|
-
],
|
|
4685
|
-
|
|
5368
|
+
], H.prototype, "showError", 2);
|
|
5369
|
+
B([
|
|
4686
5370
|
r({ type: String })
|
|
4687
|
-
],
|
|
4688
|
-
|
|
5371
|
+
], H.prototype, "errorMessage", 2);
|
|
5372
|
+
B([
|
|
4689
5373
|
r({ reflect: !0 })
|
|
4690
|
-
],
|
|
4691
|
-
let
|
|
4692
|
-
customElements.get("nys-select") || customElements.define("nys-select",
|
|
4693
|
-
const
|
|
5374
|
+
], H.prototype, "width", 1);
|
|
5375
|
+
let nt = H;
|
|
5376
|
+
customElements.get("nys-select") || customElements.define("nys-select", nt);
|
|
5377
|
+
const it = u`
|
|
4694
5378
|
:host {
|
|
4695
5379
|
/* Global Skipnav Styles */
|
|
4696
5380
|
--_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
|
|
@@ -4763,12 +5447,12 @@ const qe = g`
|
|
|
4763
5447
|
outline: none;
|
|
4764
5448
|
}
|
|
4765
5449
|
`;
|
|
4766
|
-
var
|
|
5450
|
+
var at = Object.defineProperty, W1 = (l, e, t, o) => {
|
|
4767
5451
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
4768
5452
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
4769
|
-
return s &&
|
|
5453
|
+
return s && at(e, t, s), s;
|
|
4770
5454
|
};
|
|
4771
|
-
const
|
|
5455
|
+
const U1 = class U1 extends y {
|
|
4772
5456
|
constructor() {
|
|
4773
5457
|
super(), this.id = "", this.href = "";
|
|
4774
5458
|
}
|
|
@@ -4809,16 +5493,16 @@ const S1 = class S1 extends u {
|
|
|
4809
5493
|
`;
|
|
4810
5494
|
}
|
|
4811
5495
|
};
|
|
4812
|
-
|
|
4813
|
-
let
|
|
4814
|
-
|
|
5496
|
+
U1.styles = it;
|
|
5497
|
+
let m1 = U1;
|
|
5498
|
+
W1([
|
|
4815
5499
|
r({ type: String })
|
|
4816
|
-
],
|
|
4817
|
-
|
|
5500
|
+
], m1.prototype, "id");
|
|
5501
|
+
W1([
|
|
4818
5502
|
r({ type: String })
|
|
4819
|
-
],
|
|
4820
|
-
customElements.get("nys-skipnav") || customElements.define("nys-skipnav",
|
|
4821
|
-
const
|
|
5503
|
+
], m1.prototype, "href");
|
|
5504
|
+
customElements.get("nys-skipnav") || customElements.define("nys-skipnav", m1);
|
|
5505
|
+
const lt = u`
|
|
4822
5506
|
:host {
|
|
4823
5507
|
/* Anything that can be overridden should be defined here */
|
|
4824
5508
|
|
|
@@ -4914,6 +5598,7 @@ const Pe = g`
|
|
|
4914
5598
|
.nys-textarea__textarea {
|
|
4915
5599
|
color: var(--_nys-textarea-color);
|
|
4916
5600
|
font-size: var(--_nys-textarea-size-ui-md);
|
|
5601
|
+
font-family: var(--_nys-textarea-family-ui);
|
|
4917
5602
|
border-radius: var(--_nys-textarea-radius);
|
|
4918
5603
|
border: solid var(--_nys-textarea-color-border)
|
|
4919
5604
|
var(--_nys-textarea-width-border);
|
|
@@ -4960,14 +5645,14 @@ const Pe = g`
|
|
|
4960
5645
|
cursor: not-allowed;
|
|
4961
5646
|
}
|
|
4962
5647
|
`;
|
|
4963
|
-
var
|
|
4964
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
5648
|
+
var ct = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, x = (l, e, t, o) => {
|
|
5649
|
+
for (var s = o > 1 ? void 0 : o ? dt(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4965
5650
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4966
|
-
return o && s &&
|
|
5651
|
+
return o && s && ct(e, t, s), s;
|
|
4967
5652
|
};
|
|
4968
|
-
let
|
|
4969
|
-
var
|
|
4970
|
-
const b = (
|
|
5653
|
+
let ht = 0;
|
|
5654
|
+
var q;
|
|
5655
|
+
const b = (q = class extends y {
|
|
4971
5656
|
// allows use of elementInternals' API
|
|
4972
5657
|
constructor() {
|
|
4973
5658
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.maxlength = null, this.width = "full", this.rows = 4, this._resize = "vertical", this.showError = !1, this.errorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -4976,16 +5661,16 @@ const b = (Z = class extends u {
|
|
|
4976
5661
|
return this._resize;
|
|
4977
5662
|
}
|
|
4978
5663
|
set resize(e) {
|
|
4979
|
-
this._resize =
|
|
5664
|
+
this._resize = q.VALID_RESIZE.includes(
|
|
4980
5665
|
e
|
|
4981
5666
|
) ? e : "vertical";
|
|
4982
5667
|
}
|
|
4983
5668
|
async updated(e) {
|
|
4984
|
-
await Promise.resolve(), e.has("width") && (this.width =
|
|
5669
|
+
await Promise.resolve(), e.has("width") && (this.width = q.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("rows") && (this.rows = this.rows ?? 4);
|
|
4985
5670
|
}
|
|
4986
5671
|
// Generate a unique ID if one is not provided
|
|
4987
5672
|
connectedCallback() {
|
|
4988
|
-
super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${
|
|
5673
|
+
super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${ht++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
4989
5674
|
}
|
|
4990
5675
|
disconnectedCallback() {
|
|
4991
5676
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -5086,7 +5771,7 @@ const b = (Z = class extends u {
|
|
|
5086
5771
|
return a`
|
|
5087
5772
|
<label class="nys-textarea">
|
|
5088
5773
|
<nys-label
|
|
5089
|
-
|
|
5774
|
+
for=${this.id}
|
|
5090
5775
|
label=${this.label}
|
|
5091
5776
|
description=${this.description}
|
|
5092
5777
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -5127,61 +5812,61 @@ ${this.value}</textarea
|
|
|
5127
5812
|
</label>
|
|
5128
5813
|
`;
|
|
5129
5814
|
}
|
|
5130
|
-
},
|
|
5131
|
-
|
|
5815
|
+
}, q.VALID_WIDTHS = ["sm", "md", "lg", "full"], q.VALID_RESIZE = ["vertical", "none"], q.styles = lt, q.formAssociated = !0, q);
|
|
5816
|
+
x([
|
|
5132
5817
|
r({ type: String })
|
|
5133
5818
|
], b.prototype, "id", 2);
|
|
5134
|
-
|
|
5819
|
+
x([
|
|
5135
5820
|
r({ type: String, reflect: !0 })
|
|
5136
5821
|
], b.prototype, "name", 2);
|
|
5137
|
-
|
|
5822
|
+
x([
|
|
5138
5823
|
r({ type: String })
|
|
5139
5824
|
], b.prototype, "label", 2);
|
|
5140
|
-
|
|
5825
|
+
x([
|
|
5141
5826
|
r({ type: String })
|
|
5142
5827
|
], b.prototype, "description", 2);
|
|
5143
|
-
|
|
5828
|
+
x([
|
|
5144
5829
|
r({ type: String })
|
|
5145
5830
|
], b.prototype, "placeholder", 2);
|
|
5146
|
-
|
|
5831
|
+
x([
|
|
5147
5832
|
r({ type: String })
|
|
5148
5833
|
], b.prototype, "value", 2);
|
|
5149
|
-
|
|
5834
|
+
x([
|
|
5150
5835
|
r({ type: Boolean, reflect: !0 })
|
|
5151
5836
|
], b.prototype, "disabled", 2);
|
|
5152
|
-
|
|
5837
|
+
x([
|
|
5153
5838
|
r({ type: Boolean, reflect: !0 })
|
|
5154
5839
|
], b.prototype, "readonly", 2);
|
|
5155
|
-
|
|
5840
|
+
x([
|
|
5156
5841
|
r({ type: Boolean, reflect: !0 })
|
|
5157
5842
|
], b.prototype, "required", 2);
|
|
5158
|
-
|
|
5843
|
+
x([
|
|
5159
5844
|
r({ type: Boolean, reflect: !0 })
|
|
5160
5845
|
], b.prototype, "optional", 2);
|
|
5161
|
-
|
|
5846
|
+
x([
|
|
5162
5847
|
r({ type: String })
|
|
5163
5848
|
], b.prototype, "form", 2);
|
|
5164
|
-
|
|
5849
|
+
x([
|
|
5165
5850
|
r({ type: Number })
|
|
5166
5851
|
], b.prototype, "maxlength", 2);
|
|
5167
|
-
|
|
5852
|
+
x([
|
|
5168
5853
|
r({ reflect: !0 })
|
|
5169
5854
|
], b.prototype, "width", 2);
|
|
5170
|
-
|
|
5855
|
+
x([
|
|
5171
5856
|
r({ type: Number })
|
|
5172
5857
|
], b.prototype, "rows", 2);
|
|
5173
|
-
|
|
5858
|
+
x([
|
|
5174
5859
|
r({ reflect: !0 })
|
|
5175
5860
|
], b.prototype, "resize", 1);
|
|
5176
|
-
|
|
5861
|
+
x([
|
|
5177
5862
|
r({ type: Boolean, reflect: !0 })
|
|
5178
5863
|
], b.prototype, "showError", 2);
|
|
5179
|
-
|
|
5864
|
+
x([
|
|
5180
5865
|
r({ type: String })
|
|
5181
5866
|
], b.prototype, "errorMessage", 2);
|
|
5182
|
-
let
|
|
5183
|
-
customElements.get("nys-textarea") || customElements.define("nys-textarea",
|
|
5184
|
-
const
|
|
5867
|
+
let yt = b;
|
|
5868
|
+
customElements.get("nys-textarea") || customElements.define("nys-textarea", yt);
|
|
5869
|
+
const ut = u`
|
|
5185
5870
|
:host {
|
|
5186
5871
|
/* Anything that can be overridden should be defined here */
|
|
5187
5872
|
|
|
@@ -5283,9 +5968,24 @@ const Ne = g`
|
|
|
5283
5968
|
flex-direction: column;
|
|
5284
5969
|
}
|
|
5285
5970
|
|
|
5971
|
+
.nys-textinput__mask-overlay {
|
|
5972
|
+
position: absolute;
|
|
5973
|
+
margin: calc(
|
|
5974
|
+
var(--_nys-textinput-padding) + var(--_nys-textinput-width-border)
|
|
5975
|
+
);
|
|
5976
|
+
color: var(--nys-color-text-weaker, #797c7f);
|
|
5977
|
+
display: inline;
|
|
5978
|
+
overflow: hidden;
|
|
5979
|
+
white-space: nowrap;
|
|
5980
|
+
width: stretch;
|
|
5981
|
+
width: -webkit-fill-available;
|
|
5982
|
+
width: -moz-available;
|
|
5983
|
+
font: inherit;
|
|
5984
|
+
letter-spacing: normal;
|
|
5985
|
+
}
|
|
5986
|
+
|
|
5286
5987
|
.nys-textinput__input {
|
|
5287
5988
|
color: var(--_nys-textinput-text-color);
|
|
5288
|
-
font-size: var(--_nys-textinput-size-ui-md);
|
|
5289
5989
|
border-radius: var(--_nys-textinput-radius);
|
|
5290
5990
|
border: solid var(--_nys-textinput-color-border)
|
|
5291
5991
|
var(--_nys-textinput-width-border);
|
|
@@ -5295,7 +5995,9 @@ const Ne = g`
|
|
|
5295
5995
|
box-sizing: border-box;
|
|
5296
5996
|
-webkit-box-sizing: border-box;
|
|
5297
5997
|
-moz-box-sizing: border-box;
|
|
5298
|
-
background-color:
|
|
5998
|
+
background-color: transparent;
|
|
5999
|
+
position: relative;
|
|
6000
|
+
font: inherit;
|
|
5299
6001
|
}
|
|
5300
6002
|
.nys-textinput__input::placeholder {
|
|
5301
6003
|
color: var(--_nys-textinput-placeholder-color);
|
|
@@ -5319,12 +6021,13 @@ const Ne = g`
|
|
|
5319
6021
|
border-left: none;
|
|
5320
6022
|
}
|
|
5321
6023
|
|
|
5322
|
-
/* This container exist to mainly style the type="password" eye icon */
|
|
5323
6024
|
.nys-textinput__container {
|
|
5324
6025
|
position: relative;
|
|
5325
6026
|
display: flex;
|
|
5326
6027
|
align-items: center;
|
|
5327
6028
|
width: 100%;
|
|
6029
|
+
background-color: var(--_nys-textinput-background-color);
|
|
6030
|
+
border-radius: var(--_nys-textinput-radius);
|
|
5328
6031
|
}
|
|
5329
6032
|
|
|
5330
6033
|
::slotted(nys-button) {
|
|
@@ -5394,33 +6097,48 @@ const Ne = g`
|
|
|
5394
6097
|
cursor: not-allowed;
|
|
5395
6098
|
}
|
|
5396
6099
|
`;
|
|
5397
|
-
var
|
|
5398
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6100
|
+
var pt = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, v = (l, e, t, o) => {
|
|
6101
|
+
for (var s = o > 1 ? void 0 : o ? gt(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
5399
6102
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
5400
|
-
return o && s &&
|
|
6103
|
+
return o && s && pt(e, t, s), s;
|
|
5401
6104
|
};
|
|
5402
|
-
let
|
|
5403
|
-
var
|
|
5404
|
-
const
|
|
6105
|
+
let ft = 0;
|
|
6106
|
+
var U;
|
|
6107
|
+
const g = (U = class extends y {
|
|
5405
6108
|
// allows use of elementInternals' API
|
|
5406
6109
|
constructor() {
|
|
5407
|
-
super(), this.id = "", this.name = "", this._type = "text", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this.showPassword = !1, this._originalErrorMessage = "", this._hasUserInteracted = !1, this.
|
|
6110
|
+
super(), this.id = "", this.name = "", this._type = "text", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this.showPassword = !1, this._originalErrorMessage = "", this._hasUserInteracted = !1, this._maskPatterns = {
|
|
6111
|
+
tel: "(___) ___-____"
|
|
6112
|
+
}, this._internals = this.attachInternals();
|
|
5408
6113
|
}
|
|
5409
6114
|
get type() {
|
|
5410
6115
|
return this._type;
|
|
5411
6116
|
}
|
|
5412
6117
|
set type(e) {
|
|
5413
|
-
this._type =
|
|
6118
|
+
this._type = U.VALID_TYPES.includes(
|
|
5414
6119
|
e
|
|
5415
6120
|
) ? e : "text";
|
|
5416
6121
|
}
|
|
5417
6122
|
// Ensure the "width" property is valid after updates
|
|
5418
6123
|
async updated(e) {
|
|
5419
|
-
|
|
6124
|
+
var t, o;
|
|
6125
|
+
if (e.has("width") && (await Promise.resolve(), this.width = U.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("disabled") && (this._validateButtonSlot("startButton"), this._validateButtonSlot("endButton")), e.has("type")) {
|
|
6126
|
+
const s = this._maskPatterns[this.type], n = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
|
|
6127
|
+
if (n)
|
|
6128
|
+
if (s)
|
|
6129
|
+
n.maxLength = s.length, this._updateOverlay(n.value, s);
|
|
6130
|
+
else {
|
|
6131
|
+
n.removeAttribute("maxLength");
|
|
6132
|
+
const i = (o = this.shadowRoot) == null ? void 0 : o.querySelector(
|
|
6133
|
+
".nys-textinput__mask-overlay"
|
|
6134
|
+
);
|
|
6135
|
+
i && (i.textContent = "");
|
|
6136
|
+
}
|
|
6137
|
+
}
|
|
5420
6138
|
}
|
|
5421
6139
|
// Generate a unique ID if one is not provided
|
|
5422
6140
|
connectedCallback() {
|
|
5423
|
-
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${
|
|
6141
|
+
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${ft++}`), this._originalErrorMessage = this.errorMessage ?? "", this.addEventListener("invalid", this._handleInvalid);
|
|
5424
6142
|
}
|
|
5425
6143
|
disconnectedCallback() {
|
|
5426
6144
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -5480,11 +6198,38 @@ const p = (I = class extends u {
|
|
|
5480
6198
|
_togglePasswordVisibility() {
|
|
5481
6199
|
this.showPassword = !this.showPassword;
|
|
5482
6200
|
}
|
|
6201
|
+
_updateOverlay(e, t) {
|
|
6202
|
+
var i;
|
|
6203
|
+
const o = (i = this.shadowRoot) == null ? void 0 : i.querySelector(
|
|
6204
|
+
".nys-textinput__mask-overlay"
|
|
6205
|
+
);
|
|
6206
|
+
if (!o) return;
|
|
6207
|
+
const s = e, n = t.slice(s.length);
|
|
6208
|
+
o.textContent = s + n;
|
|
6209
|
+
}
|
|
6210
|
+
_applyMask(e, t) {
|
|
6211
|
+
const o = e.replace(/\D/g, "");
|
|
6212
|
+
let s = "";
|
|
6213
|
+
if (this.type === "tel")
|
|
6214
|
+
return o.length > 0 && (s = "(" + o.substring(0, 3)), o.length >= 4 && (s += ") " + o.substring(3, 6)), o.length > 6 && (s += "-" + o.substring(6, 10)), s;
|
|
6215
|
+
let n = 0;
|
|
6216
|
+
for (let i = 0; i < t.length; i++)
|
|
6217
|
+
if (t[i] === "_" || t[i].match(/[d9]/i))
|
|
6218
|
+
if (n < o.length)
|
|
6219
|
+
s += o[n++];
|
|
6220
|
+
else
|
|
6221
|
+
break;
|
|
6222
|
+
else
|
|
6223
|
+
s += t[i];
|
|
6224
|
+
return s;
|
|
6225
|
+
}
|
|
5483
6226
|
/******************** Event Handlers ********************/
|
|
5484
6227
|
// Handle input event to check pattern validity
|
|
5485
6228
|
_handleInput(e) {
|
|
5486
6229
|
const t = e.target;
|
|
5487
|
-
|
|
6230
|
+
let o = t.value;
|
|
6231
|
+
const s = this._maskPatterns[this.type];
|
|
6232
|
+
s && (o = this._applyMask(o, s), t.value = o, this._updateOverlay(o, s)), this.value = o, this._internals.setFormValue(this.value), this._hasUserInteracted && this._validate(), this.dispatchEvent(
|
|
5488
6233
|
new CustomEvent("nys-input", {
|
|
5489
6234
|
detail: { value: this.value },
|
|
5490
6235
|
bubbles: !0,
|
|
@@ -5521,7 +6266,7 @@ const p = (I = class extends u {
|
|
|
5521
6266
|
return a`
|
|
5522
6267
|
<div class="nys-textinput">
|
|
5523
6268
|
<nys-label
|
|
5524
|
-
|
|
6269
|
+
for=${this.id}
|
|
5525
6270
|
label=${this.label}
|
|
5526
6271
|
description=${this.description}
|
|
5527
6272
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -5534,6 +6279,7 @@ const p = (I = class extends u {
|
|
|
5534
6279
|
@slotchange=${this._validateButtonSlot("startButton")}
|
|
5535
6280
|
></slot>
|
|
5536
6281
|
<div class="nys-textinput__container">
|
|
6282
|
+
<span class="nys-textinput__mask-overlay"></span>
|
|
5537
6283
|
<input
|
|
5538
6284
|
class="nys-textinput__input"
|
|
5539
6285
|
type=${this.type === "password" ? this.showPassword ? "text" : "password" : this.type}
|
|
@@ -5565,6 +6311,7 @@ const p = (I = class extends u {
|
|
|
5565
6311
|
class="eye-icon"
|
|
5566
6312
|
id="password-toggle"
|
|
5567
6313
|
suffixIcon="slotted"
|
|
6314
|
+
ariaLabel="password toggle"
|
|
5568
6315
|
.onClick=${() => !this.disabled && this._togglePasswordVisibility()}
|
|
5569
6316
|
variant="ghost"
|
|
5570
6317
|
size="sm"
|
|
@@ -5588,7 +6335,7 @@ const p = (I = class extends u {
|
|
|
5588
6335
|
</div>
|
|
5589
6336
|
`;
|
|
5590
6337
|
}
|
|
5591
|
-
},
|
|
6338
|
+
}, U.VALID_TYPES = [
|
|
5592
6339
|
"email",
|
|
5593
6340
|
"number",
|
|
5594
6341
|
"password",
|
|
@@ -5596,73 +6343,73 @@ const p = (I = class extends u {
|
|
|
5596
6343
|
"tel",
|
|
5597
6344
|
"text",
|
|
5598
6345
|
"url"
|
|
5599
|
-
],
|
|
5600
|
-
|
|
6346
|
+
], U.VALID_WIDTHS = ["sm", "md", "lg", "full"], U.styles = ut, U.formAssociated = !0, U);
|
|
6347
|
+
v([
|
|
5601
6348
|
r({ type: String })
|
|
5602
|
-
],
|
|
5603
|
-
|
|
6349
|
+
], g.prototype, "id", 2);
|
|
6350
|
+
v([
|
|
5604
6351
|
r({ type: String, reflect: !0 })
|
|
5605
|
-
],
|
|
5606
|
-
|
|
6352
|
+
], g.prototype, "name", 2);
|
|
6353
|
+
v([
|
|
5607
6354
|
r({ reflect: !0 })
|
|
5608
|
-
],
|
|
5609
|
-
|
|
6355
|
+
], g.prototype, "type", 1);
|
|
6356
|
+
v([
|
|
5610
6357
|
r({ type: String })
|
|
5611
|
-
],
|
|
5612
|
-
|
|
6358
|
+
], g.prototype, "label", 2);
|
|
6359
|
+
v([
|
|
5613
6360
|
r({ type: String })
|
|
5614
|
-
],
|
|
5615
|
-
|
|
6361
|
+
], g.prototype, "description", 2);
|
|
6362
|
+
v([
|
|
5616
6363
|
r({ type: String })
|
|
5617
|
-
],
|
|
5618
|
-
|
|
6364
|
+
], g.prototype, "placeholder", 2);
|
|
6365
|
+
v([
|
|
5619
6366
|
r({ type: String })
|
|
5620
|
-
],
|
|
5621
|
-
|
|
6367
|
+
], g.prototype, "value", 2);
|
|
6368
|
+
v([
|
|
5622
6369
|
r({ type: Boolean, reflect: !0 })
|
|
5623
|
-
],
|
|
5624
|
-
|
|
6370
|
+
], g.prototype, "disabled", 2);
|
|
6371
|
+
v([
|
|
5625
6372
|
r({ type: Boolean, reflect: !0 })
|
|
5626
|
-
],
|
|
5627
|
-
|
|
6373
|
+
], g.prototype, "readonly", 2);
|
|
6374
|
+
v([
|
|
5628
6375
|
r({ type: Boolean, reflect: !0 })
|
|
5629
|
-
],
|
|
5630
|
-
|
|
6376
|
+
], g.prototype, "required", 2);
|
|
6377
|
+
v([
|
|
5631
6378
|
r({ type: Boolean, reflect: !0 })
|
|
5632
|
-
],
|
|
5633
|
-
|
|
6379
|
+
], g.prototype, "optional", 2);
|
|
6380
|
+
v([
|
|
5634
6381
|
r({ type: String })
|
|
5635
|
-
],
|
|
5636
|
-
|
|
6382
|
+
], g.prototype, "form", 2);
|
|
6383
|
+
v([
|
|
5637
6384
|
r({ type: String })
|
|
5638
|
-
],
|
|
5639
|
-
|
|
6385
|
+
], g.prototype, "pattern", 2);
|
|
6386
|
+
v([
|
|
5640
6387
|
r({ type: Number })
|
|
5641
|
-
],
|
|
5642
|
-
|
|
6388
|
+
], g.prototype, "maxlength", 2);
|
|
6389
|
+
v([
|
|
5643
6390
|
r({ reflect: !0 })
|
|
5644
|
-
],
|
|
5645
|
-
|
|
6391
|
+
], g.prototype, "width", 2);
|
|
6392
|
+
v([
|
|
5646
6393
|
r({ type: Number })
|
|
5647
|
-
],
|
|
5648
|
-
|
|
6394
|
+
], g.prototype, "step", 2);
|
|
6395
|
+
v([
|
|
5649
6396
|
r({ type: Number })
|
|
5650
|
-
],
|
|
5651
|
-
|
|
6397
|
+
], g.prototype, "min", 2);
|
|
6398
|
+
v([
|
|
5652
6399
|
r({ type: Number })
|
|
5653
|
-
],
|
|
5654
|
-
|
|
6400
|
+
], g.prototype, "max", 2);
|
|
6401
|
+
v([
|
|
5655
6402
|
r({ type: Boolean, reflect: !0 })
|
|
5656
|
-
],
|
|
5657
|
-
|
|
6403
|
+
], g.prototype, "showError", 2);
|
|
6404
|
+
v([
|
|
5658
6405
|
r({ type: String })
|
|
5659
|
-
],
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
],
|
|
5663
|
-
let
|
|
5664
|
-
customElements.get("nys-textinput") || customElements.define("nys-textinput",
|
|
5665
|
-
const
|
|
6406
|
+
], g.prototype, "errorMessage", 2);
|
|
6407
|
+
v([
|
|
6408
|
+
D()
|
|
6409
|
+
], g.prototype, "showPassword", 2);
|
|
6410
|
+
let vt = g;
|
|
6411
|
+
customElements.get("nys-textinput") || customElements.define("nys-textinput", vt);
|
|
6412
|
+
const Ct = u`
|
|
5666
6413
|
:host {
|
|
5667
6414
|
/* Global Toggle Styles */
|
|
5668
6415
|
--_nys-toggle-width: var(--nys-font-size-8xl, 44px);
|
|
@@ -5939,14 +6686,14 @@ const Ke = g`
|
|
|
5939
6686
|
}
|
|
5940
6687
|
}
|
|
5941
6688
|
`;
|
|
5942
|
-
var
|
|
5943
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6689
|
+
var _t = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, j = (l, e, t, o) => {
|
|
6690
|
+
for (var s = o > 1 ? void 0 : o ? bt(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
5944
6691
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
5945
|
-
return o && s &&
|
|
6692
|
+
return o && s && _t(e, t, s), s;
|
|
5946
6693
|
};
|
|
5947
|
-
let
|
|
5948
|
-
var
|
|
5949
|
-
const
|
|
6694
|
+
let mt = 0;
|
|
6695
|
+
var X;
|
|
6696
|
+
const R = (X = class extends y {
|
|
5950
6697
|
// allows use of elementInternals' API
|
|
5951
6698
|
constructor() {
|
|
5952
6699
|
super(), this.id = "", this.name = "", this.value = "", this.checked = !1, this.disabled = !1, this.noIcon = !1, this.label = "", this.description = "", this._size = "md", this.form = "", this._internals = this.attachInternals();
|
|
@@ -5955,13 +6702,13 @@ const P = (K = class extends u {
|
|
|
5955
6702
|
return this._size;
|
|
5956
6703
|
}
|
|
5957
6704
|
set size(e) {
|
|
5958
|
-
this._size =
|
|
6705
|
+
this._size = X.VALID_SIZES.includes(
|
|
5959
6706
|
e
|
|
5960
6707
|
) ? e : "md";
|
|
5961
6708
|
}
|
|
5962
6709
|
// Generate a unique ID if one is not provided
|
|
5963
6710
|
connectedCallback() {
|
|
5964
|
-
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${
|
|
6711
|
+
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${mt++}`);
|
|
5965
6712
|
}
|
|
5966
6713
|
/********************** Form Integration **********************/
|
|
5967
6714
|
// Update the internals whenever `checked` or `value` changes.
|
|
@@ -6032,40 +6779,40 @@ const P = (K = class extends u {
|
|
|
6032
6779
|
</label>
|
|
6033
6780
|
`;
|
|
6034
6781
|
}
|
|
6035
|
-
},
|
|
6036
|
-
|
|
6782
|
+
}, X.VALID_SIZES = ["sm", "md"], X.styles = Ct, X.formAssociated = !0, X);
|
|
6783
|
+
j([
|
|
6037
6784
|
r({ type: String })
|
|
6038
|
-
],
|
|
6039
|
-
|
|
6785
|
+
], R.prototype, "id", 2);
|
|
6786
|
+
j([
|
|
6040
6787
|
r({ type: String, reflect: !0 })
|
|
6041
|
-
],
|
|
6042
|
-
|
|
6788
|
+
], R.prototype, "name", 2);
|
|
6789
|
+
j([
|
|
6043
6790
|
r({ type: String })
|
|
6044
|
-
],
|
|
6045
|
-
|
|
6791
|
+
], R.prototype, "value", 2);
|
|
6792
|
+
j([
|
|
6046
6793
|
r({ type: Boolean, reflect: !0 })
|
|
6047
|
-
],
|
|
6048
|
-
|
|
6794
|
+
], R.prototype, "checked", 2);
|
|
6795
|
+
j([
|
|
6049
6796
|
r({ type: Boolean, reflect: !0 })
|
|
6050
|
-
],
|
|
6051
|
-
|
|
6797
|
+
], R.prototype, "disabled", 2);
|
|
6798
|
+
j([
|
|
6052
6799
|
r({ type: Boolean })
|
|
6053
|
-
],
|
|
6054
|
-
|
|
6800
|
+
], R.prototype, "noIcon", 2);
|
|
6801
|
+
j([
|
|
6055
6802
|
r({ type: String })
|
|
6056
|
-
],
|
|
6057
|
-
|
|
6803
|
+
], R.prototype, "label", 2);
|
|
6804
|
+
j([
|
|
6058
6805
|
r({ type: String })
|
|
6059
|
-
],
|
|
6060
|
-
|
|
6806
|
+
], R.prototype, "description", 2);
|
|
6807
|
+
j([
|
|
6061
6808
|
r({ reflect: !0 })
|
|
6062
|
-
],
|
|
6063
|
-
|
|
6809
|
+
], R.prototype, "size", 1);
|
|
6810
|
+
j([
|
|
6064
6811
|
r({ type: String })
|
|
6065
|
-
],
|
|
6066
|
-
let
|
|
6067
|
-
customElements.get("nys-toggle") || customElements.define("nys-toggle",
|
|
6068
|
-
const
|
|
6812
|
+
], R.prototype, "form", 2);
|
|
6813
|
+
let xt = R;
|
|
6814
|
+
customElements.get("nys-toggle") || customElements.define("nys-toggle", xt);
|
|
6815
|
+
const wt = u`
|
|
6069
6816
|
:host {
|
|
6070
6817
|
/* Global Tooltip Styles */
|
|
6071
6818
|
--_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
|
|
@@ -6222,13 +6969,13 @@ const tt = g`
|
|
|
6222
6969
|
}
|
|
6223
6970
|
}
|
|
6224
6971
|
`;
|
|
6225
|
-
var
|
|
6226
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6972
|
+
var kt = Object.defineProperty, Lt = Object.getOwnPropertyDescriptor, C1 = (l, e, t, o) => {
|
|
6973
|
+
for (var s = o > 1 ? void 0 : o ? Lt(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
6227
6974
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
6228
|
-
return o && s &&
|
|
6975
|
+
return o && s && kt(e, t, s), s;
|
|
6229
6976
|
};
|
|
6230
|
-
let
|
|
6231
|
-
const
|
|
6977
|
+
let St = 0;
|
|
6978
|
+
const P1 = class P1 extends y {
|
|
6232
6979
|
/**************** Lifecycle Methods ****************/
|
|
6233
6980
|
constructor() {
|
|
6234
6981
|
super(), this.id = "", this.text = "", this.inverted = !1, this.focusable = !1, this._active = !1, this._userHasSetPosition = !1, this._originalUserPosition = null, this._internallyUpdatingPosition = !1, this._position = null, this._handleTooltipEnter = () => {
|
|
@@ -6277,7 +7024,7 @@ const V1 = class V1 extends u {
|
|
|
6277
7024
|
this._position = e, this.requestUpdate("position", t), this._internallyUpdatingPosition || (this._userHasSetPosition = e !== null, this._originalUserPosition = e);
|
|
6278
7025
|
}
|
|
6279
7026
|
connectedCallback() {
|
|
6280
|
-
super.connectedCallback(), this.id || (this.id = `nys-tooltip-${Date.now()}-${
|
|
7027
|
+
super.connectedCallback(), this.id || (this.id = `nys-tooltip-${Date.now()}-${St++}`), window.addEventListener("keydown", this._handleEscapeKey);
|
|
6281
7028
|
}
|
|
6282
7029
|
disconnectedCallback() {
|
|
6283
7030
|
super.disconnectedCallback(), window.removeEventListener("keydown", this._handleEscapeKey);
|
|
@@ -6330,8 +7077,8 @@ const V1 = class V1 extends u {
|
|
|
6330
7077
|
}
|
|
6331
7078
|
// Checks if user's set position fit with current viewport (Does not account for overflow texts at this moment)
|
|
6332
7079
|
_doesPositionFit(e) {
|
|
6333
|
-
var
|
|
6334
|
-
const t = (
|
|
7080
|
+
var _, L;
|
|
7081
|
+
const t = (_ = this.shadowRoot) == null ? void 0 : _.querySelector(".nys-tooltip__wrapper"), o = (L = this.shadowRoot) == null ? void 0 : L.querySelector(".nys-tooltip__content");
|
|
6335
7082
|
if (!t || !o || e == null) return;
|
|
6336
7083
|
const s = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = 8, c = {
|
|
6337
7084
|
top: s.top - i,
|
|
@@ -6348,10 +7095,10 @@ const V1 = class V1 extends u {
|
|
|
6348
7095
|
}
|
|
6349
7096
|
// Calculates the best placement based on available space (flips placement if it doesn't fit)
|
|
6350
7097
|
async autoPositionTooltip() {
|
|
6351
|
-
var
|
|
6352
|
-
const e = (
|
|
7098
|
+
var _, L;
|
|
7099
|
+
const e = (_ = this.shadowRoot) == null ? void 0 : _.querySelector(
|
|
6353
7100
|
".nys-tooltip__wrapper"
|
|
6354
|
-
), t = (
|
|
7101
|
+
), t = (L = this.shadowRoot) == null ? void 0 : L.querySelector(
|
|
6355
7102
|
".nys-tooltip__content"
|
|
6356
7103
|
);
|
|
6357
7104
|
if (!e || !t) return;
|
|
@@ -6368,17 +7115,17 @@ const V1 = class V1 extends u {
|
|
|
6368
7115
|
"left"
|
|
6369
7116
|
];
|
|
6370
7117
|
if (this._userHasSetPosition && this._originalUserPosition) {
|
|
6371
|
-
const
|
|
6372
|
-
|
|
7118
|
+
const m = this._originalUserPosition;
|
|
7119
|
+
m === "left" ? i = ["left", "right", "top", "bottom"] : m === "right" ? i = ["right", "left", "top", "bottom"] : m === "top" ? i = ["top", "bottom", "right", "left"] : m === "bottom" && (i = ["bottom", "top", "right", "left"]);
|
|
6373
7120
|
}
|
|
6374
|
-
for (const
|
|
6375
|
-
if (this._doesPositionFit(
|
|
6376
|
-
this._setInternalPosition(
|
|
7121
|
+
for (const m of i)
|
|
7122
|
+
if (this._doesPositionFit(m)) {
|
|
7123
|
+
this._setInternalPosition(m), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6377
7124
|
return;
|
|
6378
7125
|
}
|
|
6379
7126
|
let c = "top", d = n.top;
|
|
6380
|
-
for (const
|
|
6381
|
-
n[
|
|
7127
|
+
for (const m of i)
|
|
7128
|
+
n[m] > d && (d = n[m], c = m);
|
|
6382
7129
|
this._setInternalPosition(c), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6383
7130
|
}
|
|
6384
7131
|
// Sets flag to distinguish to position's setter that we are updating "position" prop internally
|
|
@@ -6387,13 +7134,13 @@ const V1 = class V1 extends u {
|
|
|
6387
7134
|
}
|
|
6388
7135
|
// Determines if text of tooltip over-extends outside of viewport edge and adjust tooltip for horizontal overflow
|
|
6389
7136
|
_shiftTooltipIntoViewport(e) {
|
|
6390
|
-
var
|
|
6391
|
-
const o = ((
|
|
7137
|
+
var m;
|
|
7138
|
+
const o = ((m = this.shadowRoot) == null ? void 0 : m.querySelector(
|
|
6392
7139
|
".nys-tooltip__wrapper"
|
|
6393
7140
|
)).getBoundingClientRect(), s = e.getBoundingClientRect(), n = o.left + o.width / 2, i = s.left < 0, c = s.right > window.innerWidth;
|
|
6394
7141
|
this._resetTooltipPositioningStyles(e), i ? (e.style.left = "0px", e.style.transform = "none") : c && (e.style.right = "0px", e.style.left = "auto", e.style.transform = "none");
|
|
6395
|
-
const d = e.getBoundingClientRect(),
|
|
6396
|
-
e.style.setProperty("--arrow-offset-x", `${
|
|
7142
|
+
const d = e.getBoundingClientRect(), _ = (n - d.left) / d.width, L = Math.max(0, Math.min(1, _)) * 100;
|
|
7143
|
+
e.style.setProperty("--arrow-offset-x", `${L}%`);
|
|
6397
7144
|
}
|
|
6398
7145
|
// Reposition tooltip back to original set position (e.g. top, left, bottom, right) to avoid positioning issue base on last position
|
|
6399
7146
|
_resetTooltipPositioningStyles(e) {
|
|
@@ -6428,28 +7175,28 @@ const V1 = class V1 extends u {
|
|
|
6428
7175
|
`;
|
|
6429
7176
|
}
|
|
6430
7177
|
};
|
|
6431
|
-
|
|
6432
|
-
let
|
|
6433
|
-
|
|
7178
|
+
P1.styles = wt;
|
|
7179
|
+
let Q = P1;
|
|
7180
|
+
C1([
|
|
6434
7181
|
r({ type: String })
|
|
6435
|
-
],
|
|
6436
|
-
|
|
7182
|
+
], Q.prototype, "id", 2);
|
|
7183
|
+
C1([
|
|
6437
7184
|
r({ type: String })
|
|
6438
|
-
],
|
|
6439
|
-
|
|
7185
|
+
], Q.prototype, "text", 2);
|
|
7186
|
+
C1([
|
|
6440
7187
|
r({ type: Boolean, reflect: !0 })
|
|
6441
|
-
],
|
|
6442
|
-
|
|
7188
|
+
], Q.prototype, "inverted", 2);
|
|
7189
|
+
C1([
|
|
6443
7190
|
r({ type: Boolean, reflect: !0 })
|
|
6444
|
-
],
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
],
|
|
6448
|
-
|
|
7191
|
+
], Q.prototype, "focusable", 2);
|
|
7192
|
+
C1([
|
|
7193
|
+
D()
|
|
7194
|
+
], Q.prototype, "_active", 2);
|
|
7195
|
+
C1([
|
|
6449
7196
|
r({ type: String, reflect: !0 })
|
|
6450
|
-
],
|
|
6451
|
-
customElements.get("nys-tooltip") || customElements.define("nys-tooltip",
|
|
6452
|
-
const
|
|
7197
|
+
], Q.prototype, "position", 1);
|
|
7198
|
+
customElements.get("nys-tooltip") || customElements.define("nys-tooltip", Q);
|
|
7199
|
+
const $t = u`
|
|
6453
7200
|
:host {
|
|
6454
7201
|
/* Global Unav Header Styles */
|
|
6455
7202
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
@@ -6812,7 +7559,7 @@ const nt = g`
|
|
|
6812
7559
|
display: none;
|
|
6813
7560
|
}
|
|
6814
7561
|
}
|
|
6815
|
-
`,
|
|
7562
|
+
`, Dt = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
6816
7563
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="#457AA5"/>
|
|
6817
7564
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="#457AA5"/>
|
|
6818
7565
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="#457AA5"/>
|
|
@@ -6829,12 +7576,12 @@ const nt = g`
|
|
|
6829
7576
|
<path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="#154973"/>
|
|
6830
7577
|
<path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="#154973"/>
|
|
6831
7578
|
</svg>`;
|
|
6832
|
-
var
|
|
7579
|
+
var Vt = Object.defineProperty, u1 = (l, e, t, o) => {
|
|
6833
7580
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
6834
7581
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
6835
|
-
return s &&
|
|
7582
|
+
return s && Vt(e, t, s), s;
|
|
6836
7583
|
};
|
|
6837
|
-
const
|
|
7584
|
+
const O1 = class O1 extends y {
|
|
6838
7585
|
constructor() {
|
|
6839
7586
|
super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
|
|
6840
7587
|
["English", ""],
|
|
@@ -6854,7 +7601,7 @@ const D1 = class D1 extends u {
|
|
|
6854
7601
|
];
|
|
6855
7602
|
}
|
|
6856
7603
|
_getNysLogo() {
|
|
6857
|
-
return new DOMParser().parseFromString(
|
|
7604
|
+
return new DOMParser().parseFromString(Dt, "image/svg+xml").documentElement;
|
|
6858
7605
|
}
|
|
6859
7606
|
_toggleTrustbar() {
|
|
6860
7607
|
this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
|
|
@@ -7115,31 +7862,31 @@ const D1 = class D1 extends u {
|
|
|
7115
7862
|
`;
|
|
7116
7863
|
}
|
|
7117
7864
|
};
|
|
7118
|
-
|
|
7119
|
-
let
|
|
7120
|
-
|
|
7865
|
+
O1.styles = $t;
|
|
7866
|
+
let T = O1;
|
|
7867
|
+
u1([
|
|
7121
7868
|
r({ type: Boolean })
|
|
7122
|
-
],
|
|
7123
|
-
|
|
7869
|
+
], T.prototype, "trustbarVisible");
|
|
7870
|
+
u1([
|
|
7124
7871
|
r({ type: Boolean })
|
|
7125
|
-
],
|
|
7126
|
-
|
|
7872
|
+
], T.prototype, "searchDropdownVisible");
|
|
7873
|
+
u1([
|
|
7127
7874
|
r({ type: Boolean })
|
|
7128
|
-
],
|
|
7129
|
-
|
|
7875
|
+
], T.prototype, "languageVisible");
|
|
7876
|
+
u1([
|
|
7130
7877
|
r({ type: Boolean })
|
|
7131
|
-
],
|
|
7132
|
-
|
|
7878
|
+
], T.prototype, "isSearchFocused");
|
|
7879
|
+
u1([
|
|
7133
7880
|
r({ type: Boolean })
|
|
7134
|
-
],
|
|
7135
|
-
|
|
7881
|
+
], T.prototype, "hideTranslate");
|
|
7882
|
+
u1([
|
|
7136
7883
|
r({ type: Boolean })
|
|
7137
|
-
],
|
|
7138
|
-
|
|
7884
|
+
], T.prototype, "hideSearch");
|
|
7885
|
+
u1([
|
|
7139
7886
|
r({ type: String, reflect: !0 })
|
|
7140
|
-
],
|
|
7141
|
-
customElements.get("nys-unavheader") || customElements.define("nys-unavheader",
|
|
7142
|
-
const
|
|
7887
|
+
], T.prototype, "languages");
|
|
7888
|
+
customElements.get("nys-unavheader") || customElements.define("nys-unavheader", T);
|
|
7889
|
+
const Mt = u`
|
|
7143
7890
|
:host {
|
|
7144
7891
|
/* Global Header Styles */
|
|
7145
7892
|
--_nys-globalheader-text-color: var(
|
|
@@ -7156,7 +7903,6 @@ const lt = g`
|
|
|
7156
7903
|
);
|
|
7157
7904
|
--_nys-globalheader-main-gap-spacing: var(--nys-space-300, 24px);
|
|
7158
7905
|
--_nys-globalheader-padding: var(--nys-space-250, 20px);
|
|
7159
|
-
--_nys-globalheader-gutter: var(--nys-gutter-sm, 20px);
|
|
7160
7906
|
--_nys-globalheader-font-family: var(
|
|
7161
7907
|
--nys-font-family-ui,
|
|
7162
7908
|
var(
|
|
@@ -7195,14 +7941,14 @@ const lt = g`
|
|
|
7195
7941
|
);
|
|
7196
7942
|
|
|
7197
7943
|
/* Menu Content Styling */
|
|
7198
|
-
--_nys-globalfooter-link-gap-spacing-row: var(--nys-space-300, 24px);
|
|
7199
|
-
--_nys-globalfooter-link-gap-spacing-column: var(--nys-space-400, 32px);
|
|
7200
7944
|
--_nys-globalheader-link-lineheight: var(--nys-font-lineheight-ui-md, 24px);
|
|
7201
7945
|
--_nys-globalheader-link-letterspacing: var(
|
|
7202
7946
|
--nys-font-letterspacing-ui-md,
|
|
7203
7947
|
var(--nys-font-letterspacing-400, 0.044px)
|
|
7204
7948
|
);
|
|
7205
7949
|
--_nys-globalheader-link-weight-decoration: var(--nys-size-2px, 2px);
|
|
7950
|
+
--_nys-globalheader-link-padding: var(--nys-space-300, 24px)
|
|
7951
|
+
var(--nys-space-200, 16px);
|
|
7206
7952
|
|
|
7207
7953
|
/* Mobile Menu */
|
|
7208
7954
|
--_nys-globalheader-mobile-btn-font-size: var(--nys-type-size-ui-xs, 12px);
|
|
@@ -7236,8 +7982,10 @@ const lt = g`
|
|
|
7236
7982
|
}
|
|
7237
7983
|
|
|
7238
7984
|
li {
|
|
7985
|
+
display: block;
|
|
7239
7986
|
margin: 0;
|
|
7240
7987
|
padding: 0;
|
|
7988
|
+
box-sizing: border-box;
|
|
7241
7989
|
}
|
|
7242
7990
|
|
|
7243
7991
|
a {
|
|
@@ -7254,10 +8002,11 @@ const lt = g`
|
|
|
7254
8002
|
.nys-globalheader {
|
|
7255
8003
|
display: flex;
|
|
7256
8004
|
justify-content: center;
|
|
7257
|
-
padding: var(--_nys-globalheader-padding)
|
|
8005
|
+
padding: var(--_nys-globalheader-padding);
|
|
7258
8006
|
background-color: var(--_nys-globalheader-background);
|
|
7259
8007
|
color: var(--_nys-globalheader-text-color);
|
|
7260
8008
|
width: 100%;
|
|
8009
|
+
min-height: 76px;
|
|
7261
8010
|
box-sizing: border-box;
|
|
7262
8011
|
}
|
|
7263
8012
|
|
|
@@ -7324,6 +8073,25 @@ const lt = g`
|
|
|
7324
8073
|
text-decoration-thickness: var(--_nys-globalheader-link-weight-decoration);
|
|
7325
8074
|
}
|
|
7326
8075
|
|
|
8076
|
+
/* Active Links */
|
|
8077
|
+
.nys-globalheader__content li.active a,
|
|
8078
|
+
.nys-globalheader__content-mobile li.active a {
|
|
8079
|
+
font-weight: 700;
|
|
8080
|
+
}
|
|
8081
|
+
.nys-globalheader__content li.active {
|
|
8082
|
+
border-bottom: 8px solid var(--nys-color-theme-weak, #cddde9);
|
|
8083
|
+
}
|
|
8084
|
+
.nys-globalheader__content li.active a {
|
|
8085
|
+
margin-bottom: calc(-1 * var(--nys-space-100, 8px));
|
|
8086
|
+
}
|
|
8087
|
+
.nys-globalheader__content-mobile li.active a {
|
|
8088
|
+
border-left: 8px solid var(--nys-color-theme-weak, #cddde9);
|
|
8089
|
+
border-bottom: 1px solid var(--_nys-globalheader-mobile-li-border-color);
|
|
8090
|
+
}
|
|
8091
|
+
.nys-globalheader__content ul li.active a:hover {
|
|
8092
|
+
text-decoration: none;
|
|
8093
|
+
}
|
|
8094
|
+
|
|
7327
8095
|
/* Mobile Menu */
|
|
7328
8096
|
.nys-globalheader__content-mobile {
|
|
7329
8097
|
position: absolute;
|
|
@@ -7351,6 +8119,7 @@ const lt = g`
|
|
|
7351
8119
|
gap: 8px;
|
|
7352
8120
|
align-self: stretch;
|
|
7353
8121
|
border-bottom: 1px solid var(--_nys-globalheader-mobile-li-border-color);
|
|
8122
|
+
background: var(--_nys-globalheader-background);
|
|
7354
8123
|
}
|
|
7355
8124
|
.nys-globalheader__content-mobile ul li a:hover {
|
|
7356
8125
|
background: var(--_nys-globalheader-mobile-li-hover-bg);
|
|
@@ -7393,39 +8162,45 @@ const lt = g`
|
|
|
7393
8162
|
}
|
|
7394
8163
|
|
|
7395
8164
|
/* Breakpoints using NYSDS Guidelines (Menu Links) */
|
|
7396
|
-
|
|
7397
|
-
|
|
8165
|
+
/* https://www.figma.com/design/U2QpuSUXRTxbgG64Fzi9bu?node-id=1170-340 */
|
|
8166
|
+
@media (min-width: 1024px) {
|
|
8167
|
+
/* Desktop (MD - Above 1024px) */
|
|
7398
8168
|
.nys-globalheader__content {
|
|
7399
8169
|
display: flex;
|
|
7400
8170
|
}
|
|
7401
8171
|
.nys-globalheader__content ul {
|
|
7402
8172
|
flex-direction: row;
|
|
7403
|
-
gap: var(--_nys-globalfooter-link-gap-spacing-row)
|
|
7404
|
-
var(--_nys-globalfooter-link-gap-spacing-column);
|
|
7405
8173
|
}
|
|
7406
8174
|
.nys-globalheader__content-mobile,
|
|
7407
8175
|
.nys-globalheader__button-container {
|
|
7408
8176
|
display: none;
|
|
7409
8177
|
}
|
|
8178
|
+
li {
|
|
8179
|
+
display: flex;
|
|
8180
|
+
align-items: center;
|
|
8181
|
+
padding: var(--_nys-globalheader-link-padding);
|
|
8182
|
+
}
|
|
7410
8183
|
:host {
|
|
7411
8184
|
--_nys-globalheader-main-gap-spacing: var(--nys-space-500, 40px);
|
|
7412
|
-
--_nys-globalheader-
|
|
8185
|
+
--_nys-globalheader-padding: var(--nys-space-50, 4px)
|
|
8186
|
+
var(--nys-size-400, 32px) 0;
|
|
7413
8187
|
}
|
|
7414
8188
|
}
|
|
7415
8189
|
|
|
7416
8190
|
@media (min-width: 1280px) {
|
|
7417
|
-
/* Large Desktop (
|
|
8191
|
+
/* Large Desktop (LG - Above 1280px) */
|
|
7418
8192
|
:host {
|
|
7419
|
-
--_nys-globalheader-
|
|
8193
|
+
--_nys-globalheader-padding: var(--nys-space-50, 4px)
|
|
8194
|
+
var(--nys-space-800, 64px) 0;
|
|
7420
8195
|
}
|
|
7421
8196
|
}
|
|
7422
8197
|
`;
|
|
7423
|
-
var
|
|
8198
|
+
var zt = Object.defineProperty, k1 = (l, e, t, o) => {
|
|
7424
8199
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
7425
8200
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
7426
|
-
return s &&
|
|
8201
|
+
return s && zt(e, t, s), s;
|
|
7427
8202
|
};
|
|
7428
|
-
const
|
|
8203
|
+
const R1 = class R1 extends y {
|
|
7429
8204
|
constructor() {
|
|
7430
8205
|
super(...arguments), this.appName = "", this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0, this.isMobileMenuOpen = !1;
|
|
7431
8206
|
}
|
|
@@ -7450,13 +8225,33 @@ const M1 = class M1 extends u {
|
|
|
7450
8225
|
);
|
|
7451
8226
|
o && s && (o.innerHTML = "", s.innerHTML = "", t.forEach((d) => {
|
|
7452
8227
|
if (d.nodeType === Node.ELEMENT_NODE) {
|
|
7453
|
-
const
|
|
7454
|
-
["script", "iframe", "object", "embed, img"].forEach((
|
|
7455
|
-
|
|
7456
|
-
})
|
|
8228
|
+
const _ = d.cloneNode(!0), L = d.cloneNode(!0);
|
|
8229
|
+
["script", "iframe", "object", "embed, img"].forEach((a1) => {
|
|
8230
|
+
_.querySelectorAll(a1).forEach((_1) => _1.remove());
|
|
8231
|
+
});
|
|
8232
|
+
const N1 = this._normalizePath(window.location.pathname);
|
|
8233
|
+
_.querySelectorAll("a").forEach((a1) => {
|
|
8234
|
+
const _1 = a1.getAttribute("href");
|
|
8235
|
+
if (this._normalizePath(_1) === N1) {
|
|
8236
|
+
const b1 = a1.closest("li");
|
|
8237
|
+
b1 && b1.classList.add("active");
|
|
8238
|
+
}
|
|
8239
|
+
}), L.querySelectorAll("a").forEach((a1) => {
|
|
8240
|
+
const _1 = a1.getAttribute("href");
|
|
8241
|
+
if (this._normalizePath(_1) === N1) {
|
|
8242
|
+
const b1 = a1.closest("li");
|
|
8243
|
+
b1 && b1.classList.add("active");
|
|
8244
|
+
}
|
|
8245
|
+
}), o.appendChild(_), s.appendChild(L), d.remove();
|
|
7457
8246
|
}
|
|
7458
8247
|
}));
|
|
7459
8248
|
}
|
|
8249
|
+
// Normalize paths so that links like "name", "/name/", and "/" match window.location.pathname.
|
|
8250
|
+
// This ensures consistent active-link behavior regardless of how hrefs are written.
|
|
8251
|
+
_normalizePath(e) {
|
|
8252
|
+
if (e)
|
|
8253
|
+
return e.startsWith("/") || (e = "/" + e), e.length > 1 && e.endsWith("/") && (e = e.slice(0, -1)), e.toLowerCase();
|
|
8254
|
+
}
|
|
7460
8255
|
_toggleMobileMenu() {
|
|
7461
8256
|
this.isMobileMenuOpen = !this.isMobileMenuOpen;
|
|
7462
8257
|
}
|
|
@@ -7524,25 +8319,25 @@ const M1 = class M1 extends u {
|
|
|
7524
8319
|
`;
|
|
7525
8320
|
}
|
|
7526
8321
|
};
|
|
7527
|
-
|
|
7528
|
-
let
|
|
7529
|
-
|
|
8322
|
+
R1.styles = Mt;
|
|
8323
|
+
let n1 = R1;
|
|
8324
|
+
k1([
|
|
7530
8325
|
r({ type: String })
|
|
7531
|
-
],
|
|
7532
|
-
|
|
8326
|
+
], n1.prototype, "appName");
|
|
8327
|
+
k1([
|
|
7533
8328
|
r({ type: String })
|
|
7534
|
-
],
|
|
7535
|
-
|
|
8329
|
+
], n1.prototype, "agencyName");
|
|
8330
|
+
k1([
|
|
7536
8331
|
r({ type: String })
|
|
7537
|
-
],
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
],
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
],
|
|
7544
|
-
customElements.get("nys-globalheader") || customElements.define("nys-globalheader",
|
|
7545
|
-
const
|
|
8332
|
+
], n1.prototype, "homepageLink");
|
|
8333
|
+
k1([
|
|
8334
|
+
D()
|
|
8335
|
+
], n1.prototype, "slotHasContent");
|
|
8336
|
+
k1([
|
|
8337
|
+
D()
|
|
8338
|
+
], n1.prototype, "isMobileMenuOpen");
|
|
8339
|
+
customElements.get("nys-globalheader") || customElements.define("nys-globalheader", n1);
|
|
8340
|
+
const Et = u`
|
|
7546
8341
|
:host {
|
|
7547
8342
|
/* Global Footer Styles */
|
|
7548
8343
|
--_nys-globalfooter-text-color: var(
|
|
@@ -7698,12 +8493,12 @@ const dt = g`
|
|
|
7698
8493
|
}
|
|
7699
8494
|
}
|
|
7700
8495
|
`;
|
|
7701
|
-
var
|
|
8496
|
+
var Ht = Object.defineProperty, H1 = (l, e, t, o) => {
|
|
7702
8497
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
7703
8498
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
7704
|
-
return s &&
|
|
8499
|
+
return s && Ht(e, t, s), s;
|
|
7705
8500
|
};
|
|
7706
|
-
const
|
|
8501
|
+
const T1 = class T1 extends y {
|
|
7707
8502
|
constructor() {
|
|
7708
8503
|
super(...arguments), this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0;
|
|
7709
8504
|
}
|
|
@@ -7729,8 +8524,8 @@ const z1 = class z1 extends u {
|
|
|
7729
8524
|
o && (o.classList.toggle("columns", s), o.classList.toggle("small", !s), o.innerHTML = "", t.forEach((c) => {
|
|
7730
8525
|
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
7731
8526
|
const d = c.cloneNode(!0);
|
|
7732
|
-
["script", "iframe", "object", "embed", "img"].forEach((
|
|
7733
|
-
d.querySelectorAll(
|
|
8527
|
+
["script", "iframe", "object", "embed", "img"].forEach((L) => {
|
|
8528
|
+
d.querySelectorAll(L).forEach((m) => m.remove());
|
|
7734
8529
|
}), o.appendChild(d), c.remove();
|
|
7735
8530
|
}
|
|
7736
8531
|
}));
|
|
@@ -7754,19 +8549,19 @@ const z1 = class z1 extends u {
|
|
|
7754
8549
|
`;
|
|
7755
8550
|
}
|
|
7756
8551
|
};
|
|
7757
|
-
|
|
7758
|
-
let
|
|
7759
|
-
|
|
8552
|
+
T1.styles = Et;
|
|
8553
|
+
let f1 = T1;
|
|
8554
|
+
H1([
|
|
7760
8555
|
r({ type: String })
|
|
7761
|
-
],
|
|
7762
|
-
|
|
8556
|
+
], f1.prototype, "agencyName");
|
|
8557
|
+
H1([
|
|
7763
8558
|
r({ type: String })
|
|
7764
|
-
],
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
],
|
|
7768
|
-
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter",
|
|
7769
|
-
const
|
|
8559
|
+
], f1.prototype, "homepageLink");
|
|
8560
|
+
H1([
|
|
8561
|
+
D()
|
|
8562
|
+
], f1.prototype, "slotHasContent");
|
|
8563
|
+
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", f1);
|
|
8564
|
+
const It = u`
|
|
7770
8565
|
:host {
|
|
7771
8566
|
/* Global Footer Styles */
|
|
7772
8567
|
--_nys-unavfooter-link-color: var(
|
|
@@ -7922,7 +8717,7 @@ const yt = g`
|
|
|
7922
8717
|
--_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
7923
8718
|
}
|
|
7924
8719
|
}
|
|
7925
|
-
`,
|
|
8720
|
+
`, At = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
7926
8721
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="white"/>
|
|
7927
8722
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="white"/>
|
|
7928
8723
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="white"/>
|
|
@@ -7938,10 +8733,10 @@ const yt = g`
|
|
|
7938
8733
|
<path d="M51.7107 54.9999C51.577 54.9999 51.4335 54.974 51.2939 54.8965C51.085 54.7803 50.9395 54.5876 50.8858 54.3551C50.8233 54.0868 50.8936 53.7868 51.082 53.5116L51.1426 53.4202C51.2041 53.3268 51.2685 53.2354 51.3407 53.1519C51.4218 53.0595 51.5047 52.995 51.5741 52.9493C51.5243 52.6691 51.5418 52.4267 51.5682 52.2061C51.5877 52.0233 51.6346 51.8683 51.6726 51.7451C51.6892 51.6925 51.7058 51.6388 51.7185 51.5812C51.8201 51.145 51.8855 50.7397 51.9206 50.3453C51.9528 49.9916 51.947 49.9846 51.8864 49.9061C51.7 49.6707 51.3847 49.5018 51.0498 49.3229C50.8878 49.2365 50.7286 49.1491 50.5754 49.0557C49.607 48.4536 48.6376 47.8505 47.6701 47.2465L47.3294 47.0339C47.2513 46.9862 47.1147 46.9156 46.9516 46.8282C45.8817 46.2659 45.172 45.8526 45.0539 45.2595C45.0363 45.173 44.9465 44.9644 44.884 44.864C44.8411 44.8611 44.7307 44.8521 44.6546 44.8471C44.3032 44.8183 43.7711 44.7726 43.3484 44.3196C43.2635 44.2272 43.1786 44.1408 43.1005 44.0583C42.5098 43.4443 42.0003 42.9148 41.9329 41.5993C41.9241 41.4275 41.9251 41.2506 41.928 41.0728C41.9339 40.5283 41.927 40.1836 41.7103 39.962C41.6078 39.8567 41.435 39.7862 41.2349 39.7037C40.9889 39.6034 40.7097 39.4881 40.45 39.2686C40.37 39.2 40.2792 39.1007 40.1776 38.9854C40.0712 38.8602 39.9082 38.6724 39.7969 38.6337C38.974 38.3436 37.986 38.3178 36.96 38.3178L3.07245 38.2909C2.85964 38.2909 2.66927 38.3138 2.48477 38.3347C2.07378 38.3823 1.60812 38.437 1.2313 38.0962C0.866192 37.7664 0.815429 37.2607 0.814452 36.8076L0.8125 34.3993C0.8125 34.2722 0.847644 34.147 0.913051 34.0387C1.22544 33.529 1.83265 33.2558 2.3686 33.0144C2.56872 32.924 2.77666 32.8316 2.88795 32.7571C3.17593 32.5623 3.43561 32.302 3.7109 32.0248C3.91688 31.8182 4.13068 31.6046 4.36887 31.4059C4.69786 31.1317 5.07078 30.931 5.43296 30.7372C5.74535 30.5703 6.03821 30.4124 6.24127 30.2395C6.38575 30.1173 6.49216 29.9146 6.61906 29.6792C6.75476 29.4238 6.90998 29.1337 7.15208 28.8804C7.41273 28.6081 7.7427 28.4194 8.03263 28.2535C8.69744 27.871 8.68182 27.8322 8.57736 27.5769C8.52855 27.4577 8.48072 27.3553 8.43972 27.2639C8.24447 26.8357 8.07754 26.4681 8.19078 25.7051C8.2025 25.6306 8.21616 25.5521 8.22983 25.4706C8.25619 25.3325 8.30305 25.0772 8.27571 25.0037C8.27571 25.0037 8.26204 24.9927 8.23471 24.9778C8.21128 24.9659 8.12928 24.9669 8.06875 24.9679C7.87448 24.9659 7.51914 24.9768 7.2497 24.6689C6.98124 24.3629 6.99686 23.9555 7.03982 23.6356C7.08179 23.3127 7.06032 23.1051 7.03982 22.9223C6.95684 22.1453 7.21358 21.7817 8.10097 21.424C10.7524 20.351 12.901 19.9884 14.8613 20.2805C14.9775 20.2974 15.1356 20.2656 15.3182 20.2269C15.5944 20.1702 15.9351 20.1017 16.312 20.1752L18.3952 20.5766C19.2475 20.7415 19.6653 20.9054 20.3047 21.4995C20.6327 21.8046 20.7655 21.7718 21.3327 21.5661C21.6168 21.4638 21.9399 21.3485 22.3323 21.2949C22.9727 21.2084 23.5731 21.2661 24.153 21.3227C24.4136 21.3475 24.6762 21.3734 24.9408 21.3843C25.2356 21.3952 25.6085 21.2561 25.9717 21.121C26.1318 21.0614 26.2889 21.0028 26.4412 20.9541C26.78 20.8468 27.0973 20.7991 27.4038 20.7514C27.5551 20.7266 27.7064 20.7037 27.8607 20.6729C27.8714 20.6531 27.8821 20.6332 27.8939 20.6113C27.9417 20.5249 27.9944 20.4345 28.0598 20.3411C28.3419 19.9497 28.7471 19.7003 29.0722 19.4966L29.2078 19.4122C29.5564 19.1916 29.8629 18.9879 30.105 18.7386C30.5423 18.2796 31.1232 18.3114 31.5108 18.3312C31.6455 18.3392 31.8495 18.3481 31.91 18.3223C32.1678 18.207 31.9413 17.3993 31.8065 16.9165C31.7119 16.5777 31.6299 16.2846 31.6133 16.0183C31.5664 15.2642 31.9764 14.7317 32.3064 14.3045C32.5651 13.9687 32.7213 13.7481 32.7164 13.5355C32.7164 13.4948 32.7027 13.4382 32.6851 13.3845C32.4587 13.4948 32.0955 13.6369 31.6796 13.4421C31.0129 13.1302 30.6468 12.0264 30.8508 11.3985C31.0197 10.8779 31.54 10.5421 31.9198 10.2957L32.0565 10.2053C32.3806 9.98471 32.7242 9.79792 33.0542 9.6181C33.5159 9.36873 33.9513 9.13227 34.2949 8.82726C34.4404 8.69711 34.5761 8.56994 34.7089 8.44376C35.0076 8.1626 35.3161 7.8715 35.6792 7.61319C35.7056 7.5188 35.728 7.34096 35.7437 7.22571C35.7729 7.00714 35.8022 6.78062 35.8803 6.5849C36.2513 5.64304 37.1592 4.90884 37.9597 4.25908C38.2252 4.04448 38.4771 3.84081 38.6743 3.65602C38.7992 3.53878 38.9222 3.42055 39.0452 3.30332C39.6388 2.73701 40.2509 2.15084 40.9967 1.68289C41.601 1.30536 42.3898 0.833439 43.1249 0.552274C44.0972 0.1807 44.5579 0.208518 45.4766 0.262168L45.6474 0.27111C47.3607 0.371455 49.1384 0.32476 50.8575 0.281045C51.7205 0.258194 52.5796 0.235343 53.4347 0.230376C53.6651 0.230376 54.0156 0.185667 54.3836 0.138972C55.6078 -0.0140291 56.994 -0.188888 57.7818 0.503592C58.1118 0.792705 58.2924 1.19806 58.3031 1.67594C58.311 2.05248 58.1567 2.33464 58.0435 2.54129C58.0064 2.60686 57.9527 2.7082 57.9458 2.74297C57.9488 2.73205 57.9849 2.78768 58.0103 2.82742C58.1362 3.01718 58.3686 3.37088 58.2748 3.89843C58.2397 4.10111 58.1811 4.3167 58.1216 4.53528C58.0464 4.81147 57.9693 5.09761 57.9624 5.31419C57.9498 5.69073 57.6335 5.99376 57.2703 5.97289C56.9013 5.95998 56.6104 5.64603 56.6231 5.26849C56.6367 4.89195 56.7392 4.50944 56.831 4.17264C56.8788 3.9948 56.9276 3.82094 56.9569 3.65502C56.9481 3.65502 56.9218 3.62323 56.8993 3.58746C56.791 3.42254 56.6065 3.14535 56.6065 2.73701C56.6065 2.36345 56.7607 2.08328 56.873 1.87862C56.9072 1.81702 56.9589 1.72462 56.9657 1.69084C56.9608 1.58354 56.9267 1.55274 56.9072 1.53685C56.5694 1.23979 55.2544 1.40372 54.5496 1.49313C54.1386 1.5438 53.752 1.59348 53.4435 1.59547C52.5971 1.60043 51.7439 1.62229 50.8907 1.64315C49.1442 1.68886 47.3382 1.73654 45.5722 1.63421L45.3985 1.62328C44.5345 1.57162 44.3022 1.55871 43.5964 1.82894C42.9618 2.07235 42.2101 2.5244 41.7006 2.84431C41.0699 3.23973 40.533 3.75338 39.9648 4.29683C39.8379 4.41804 39.712 4.53925 39.5831 4.65947C39.3479 4.87804 39.0794 5.09661 38.7953 5.32611C38.1237 5.87056 37.3642 6.48555 37.1231 7.09457C37.1065 7.14425 37.085 7.30221 37.0713 7.40753C37.0147 7.84666 36.9424 8.3931 36.5041 8.69016C36.1927 8.90277 35.9145 9.16704 35.6187 9.44523C35.4771 9.57935 35.3317 9.71546 35.1774 9.85257C34.7186 10.2629 34.1924 10.548 33.6838 10.8222C33.3675 10.9931 33.0698 11.1541 32.8033 11.3369C32.7554 11.3707 32.6978 11.4064 32.6373 11.4462C32.5114 11.5276 32.2332 11.7065 32.1346 11.8217C32.1424 11.8992 32.1726 12.0115 32.2117 12.1009C32.3757 12.0214 32.6041 11.924 32.8804 11.9459C33.6633 12.0135 34.0401 12.8937 34.0558 13.4988C34.0743 14.2191 33.677 14.7337 33.3587 15.145C33.0971 15.4868 32.9351 15.7074 32.9487 15.9319C32.9565 16.0511 33.0288 16.3114 33.0932 16.5419C33.3314 17.3933 33.7746 18.978 32.4479 19.5701C32.0965 19.7281 31.7314 19.7082 31.4375 19.6933C31.3126 19.6864 31.1046 19.6764 31.047 19.7023C30.7171 20.051 30.3227 20.3113 29.9166 20.5706L29.7692 20.663C29.5212 20.816 29.2654 20.976 29.1405 21.1488C29.1083 21.1935 29.0819 21.2412 29.0585 21.2859C28.9345 21.5085 28.7256 21.884 28.174 21.9993C27.9827 22.04 27.7943 22.0708 27.6059 22.0996C27.3364 22.1414 27.0807 22.1811 26.8386 22.2566C26.7087 22.2993 26.5711 22.35 26.4334 22.4017C25.9697 22.5745 25.4435 22.7732 24.8871 22.7474C24.5981 22.7355 24.3131 22.7087 24.027 22.6808C23.4989 22.6282 22.9981 22.5805 22.511 22.6481C22.2572 22.6828 22.0258 22.7653 21.7817 22.8537C21.1716 23.0733 20.3369 23.3733 19.4046 22.508C18.9927 22.1265 18.8267 22.049 18.1473 21.9178L16.065 21.5164C15.942 21.4936 15.775 21.5264 15.5818 21.5651C15.3289 21.6168 15.0136 21.6784 14.6719 21.6297C12.9508 21.3724 11.0218 21.7112 8.59689 22.6928C8.49829 22.7325 8.42703 22.7643 8.37431 22.7891C8.39579 22.9779 8.42312 23.2491 8.39091 23.6217C8.53343 23.6416 8.69353 23.6843 8.86047 23.7737C9.81228 24.2834 9.63461 25.256 9.5487 25.724C9.53601 25.7876 9.52528 25.8511 9.51551 25.9127C9.4628 26.2694 9.49501 26.3429 9.65511 26.6917C9.70392 26.798 9.75664 26.9162 9.81326 27.0543C10.3941 28.4681 9.28415 29.1039 8.68865 29.4447C8.46705 29.5719 8.23764 29.701 8.11268 29.8331C7.99944 29.9524 7.89987 30.1372 7.79541 30.3329C7.62945 30.6448 7.44104 30.9975 7.10522 31.2847C6.79088 31.5529 6.41894 31.7536 6.05871 31.9454C5.74144 32.1153 5.44077 32.2762 5.21623 32.464C5.02782 32.6219 4.84527 32.8048 4.65295 32.9985C4.34252 33.3085 4.02524 33.6294 3.62499 33.8976C3.41901 34.0347 3.17203 34.147 2.9104 34.2652C2.69661 34.3606 2.33443 34.5225 2.14992 34.6626L2.15383 36.8096C2.15383 36.8881 2.15578 36.9527 2.15871 37.0023C2.21533 36.9974 2.27586 36.9904 2.32662 36.9835C2.5287 36.9606 2.77959 36.9308 3.06952 36.9308L36.9581 36.9566C38.0573 36.9566 39.2141 36.9884 40.2304 37.3471C40.6755 37.5021 40.9801 37.8538 41.1812 38.0853C41.2281 38.1399 41.2681 38.1896 41.3052 38.2234C41.4018 38.3048 41.5551 38.3674 41.7328 38.441C42.0129 38.5562 42.3615 38.7003 42.6572 39.0043C43.2811 39.6411 43.2713 40.4469 43.2645 41.0927C43.2606 41.2417 43.2606 41.3897 43.2664 41.5328C43.3084 42.3326 43.5261 42.5581 44.0532 43.1055C44.1372 43.1929 44.2251 43.2853 44.3188 43.3847C44.3842 43.4542 44.5287 43.4701 44.761 43.491C45.0412 43.5138 45.3897 43.5417 45.6953 43.7751C46.0291 44.0275 46.2546 44.5888 46.3376 44.8809C46.5455 45.0846 47.2777 45.4711 47.5647 45.6211C47.7639 45.7264 47.9298 45.8158 48.0265 45.8754L48.3672 46.088C49.3346 46.6891 50.3011 47.2922 51.2705 47.8943C51.3993 47.9727 51.533 48.0463 51.6707 48.1188C52.0924 48.3443 52.5698 48.6006 52.9291 49.0567C53.3215 49.5544 53.2942 50.0045 53.259 50.4029C53.3156 50.2936 53.3781 50.1893 53.4513 50.0879C53.5841 49.8982 53.7393 49.7541 53.877 49.626C54.0136 49.4998 54.1073 49.4104 54.1396 49.3388C54.1132 49.2772 54.0527 49.1739 54.0117 49.1034C53.8487 48.8232 53.6271 48.4387 53.7315 47.9857C53.7725 47.8108 53.8789 47.6588 54.0283 47.5634C54.0849 47.5276 54.205 47.4591 54.3631 47.3717C54.5818 47.2495 55.1373 46.9405 55.475 46.71C54.9723 45.5913 55.1392 44.2163 55.2886 42.9843C55.3345 42.6038 55.3784 42.2451 55.3989 41.9222C55.4204 41.5467 55.7337 41.2606 56.1076 41.2834C56.4776 41.3063 56.7588 41.6301 56.7353 42.0057C56.7148 42.3693 56.667 42.7498 56.6182 43.1522C56.4776 44.3166 56.3165 45.637 56.833 46.3911C56.954 46.5669 56.994 46.7895 56.9452 47.0021C56.8417 47.4502 56.3898 47.7879 55.1958 48.4606C55.352 48.7308 55.5395 49.0904 55.4731 49.5167C55.4623 49.5812 55.4487 49.6428 55.4321 49.7015C55.766 49.5793 56.1154 49.464 56.4845 49.3577C57.8775 48.9543 59.3409 48.7745 61.225 48.7745C62.0587 48.7745 62.8006 48.5053 63.5874 48.2211C64.2103 47.9946 64.8546 47.7621 65.576 47.6508C66.1852 47.5555 66.5005 47.7562 66.7728 47.9688C66.8636 48.0403 66.93 48.09 67.0442 48.1357C67.3625 48.2619 67.7325 48.2211 68.1601 48.1754C68.5925 48.1277 69.0836 48.0731 69.5844 48.2042C69.8821 48.2837 70.09 48.5579 70.0861 48.8709C70.0744 50.0571 68.5076 50.5459 67.7549 50.7814L67.0384 51.0099C66.4985 51.1848 65.9567 51.3586 65.41 51.5176C65.1631 51.5881 64.918 51.6587 64.672 51.7223C64.3889 51.7948 64.099 51.9597 63.7944 52.1316C63.481 52.3094 63.1579 52.4922 62.786 52.6174C62.1426 52.83 61.4837 52.9413 60.6471 52.9761C60.4069 52.987 60.1746 53.0943 59.9295 53.2056C59.5674 53.3735 59.1154 53.5801 58.6107 53.4132C58.3949 53.3864 57.5534 53.6775 57.1502 53.8196C56.832 53.9289 56.5577 54.0242 56.3419 54.0759C55.598 54.2528 54.8415 54.3918 54.1103 54.527L53.5968 54.6223C53.1516 54.7058 52.7035 54.7922 52.2613 54.8926L52.2076 54.9085C52.0797 54.9482 51.9021 55.0038 51.7078 55.0038L51.7107 54.9999ZM53.0735 51.6746C53.0569 51.7471 53.0403 51.8196 53.0237 51.8941C53.0032 51.9806 52.9788 52.064 52.9544 52.1455C52.9281 52.2359 52.9066 52.3055 52.8988 52.3651C52.8793 52.5379 52.8773 52.6313 52.8978 52.7247C52.9495 52.9791 52.9388 53.1907 52.8949 53.3645C53.0482 53.3347 53.2024 53.3049 53.3566 53.2751L53.875 53.1808C54.5896 53.0486 55.3296 52.9125 56.0412 52.7436C56.1906 52.7078 56.4483 52.6194 56.7217 52.525C57.7721 52.1604 58.4994 51.9359 59.0295 52.1127C59.0646 52.1058 59.2559 52.0173 59.3828 51.9597C59.7001 51.8137 60.0945 51.6328 60.5924 51.611C61.3021 51.5812 61.8498 51.4908 62.372 51.3169C62.622 51.2345 62.8748 51.0914 63.1442 50.9374C63.5123 50.7298 63.892 50.5142 64.3469 50.3969C64.5793 50.3373 64.8136 50.2707 65.0459 50.2042C65.5789 50.0482 66.11 49.8773 66.6362 49.7064L67.1253 49.5514C66.9388 49.5246 66.7504 49.4779 66.56 49.4014C66.2672 49.2862 66.0836 49.1411 65.9616 49.0457C65.9313 49.0229 65.906 48.999 65.8757 48.9812C65.8737 48.9851 65.8405 48.9851 65.7781 48.9941C65.1845 49.0855 64.6281 49.2862 64.0394 49.4998C63.1794 49.8107 62.293 50.1326 61.2279 50.1326C59.4717 50.1326 58.1235 50.2966 56.8535 50.6642C55.7142 50.992 54.7868 51.3984 54.0166 51.9031C53.7901 52.0521 53.5001 52.0481 53.2776 51.8951C53.1917 51.8365 53.1214 51.76 53.0735 51.6716V51.6746Z" fill="white"/>
|
|
7939
8734
|
<path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="white"/>
|
|
7940
8735
|
<path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="white"/>
|
|
7941
|
-
</svg>`,
|
|
8736
|
+
</svg>`, F1 = class F1 extends y {
|
|
7942
8737
|
/**************** Functions ****************/
|
|
7943
8738
|
_getNysLogo() {
|
|
7944
|
-
return new DOMParser().parseFromString(
|
|
8739
|
+
return new DOMParser().parseFromString(At, "image/svg+xml").documentElement;
|
|
7945
8740
|
}
|
|
7946
8741
|
render() {
|
|
7947
8742
|
return a`
|
|
@@ -7975,32 +8770,35 @@ const yt = g`
|
|
|
7975
8770
|
`;
|
|
7976
8771
|
}
|
|
7977
8772
|
};
|
|
7978
|
-
|
|
7979
|
-
let
|
|
7980
|
-
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter",
|
|
8773
|
+
F1.styles = It;
|
|
8774
|
+
let M1 = F1;
|
|
8775
|
+
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", M1);
|
|
7981
8776
|
export {
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8777
|
+
p1 as NysAccordion,
|
|
8778
|
+
r1 as NysAccordionItem,
|
|
8779
|
+
ie as NysAlert,
|
|
8780
|
+
he as NysAvatar,
|
|
8781
|
+
l1 as NysBacktotop,
|
|
8782
|
+
xe as NysBadge,
|
|
8783
|
+
Ce as NysButton,
|
|
8784
|
+
Me as NysCheckbox,
|
|
8785
|
+
Se as NysCheckboxgroup,
|
|
8786
|
+
g1 as NysErrorMessage,
|
|
8787
|
+
w as NysFileinput,
|
|
8788
|
+
f1 as NysGlobalFooter,
|
|
8789
|
+
n1 as NysGlobalHeader,
|
|
8790
|
+
Te as NysIcon,
|
|
8791
|
+
d1 as NysLabel,
|
|
8792
|
+
y1 as NysOption,
|
|
8793
|
+
Je as NysRadiobutton,
|
|
8794
|
+
We as NysRadiogroup,
|
|
8795
|
+
nt as NysSelect,
|
|
8796
|
+
m1 as NysSkipnav,
|
|
8797
|
+
yt as NysTextarea,
|
|
8798
|
+
vt as NysTextinput,
|
|
8799
|
+
xt as NysToggle,
|
|
8800
|
+
Q as NysTooltip,
|
|
8801
|
+
M1 as NysUnavFooter,
|
|
8802
|
+
T as NysUnavHeader
|
|
8005
8803
|
};
|
|
8006
8804
|
//# sourceMappingURL=nysds.es.js.map
|