@nysds/components 1.6.0 → 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 +1552 -854
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +571 -193
- 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/src/index.d.ts +2 -0
- package/package.json +6 -2
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 = C`
|
|
|
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
|
|
@@ -357,56 +648,56 @@ const k = (J = class extends u {
|
|
|
357
648
|
</div>`}
|
|
358
649
|
`;
|
|
359
650
|
}
|
|
360
|
-
},
|
|
651
|
+
}, t1.styles = se, t1.VALID_TYPES = [
|
|
361
652
|
"base",
|
|
362
653
|
"info",
|
|
363
654
|
"success",
|
|
364
655
|
"warning",
|
|
365
656
|
"danger",
|
|
366
657
|
"emergency"
|
|
367
|
-
],
|
|
658
|
+
], t1);
|
|
368
659
|
V([
|
|
369
660
|
r({ type: String })
|
|
370
|
-
],
|
|
661
|
+
], S.prototype, "id", 2);
|
|
371
662
|
V([
|
|
372
663
|
r({ type: String })
|
|
373
|
-
],
|
|
664
|
+
], S.prototype, "heading", 2);
|
|
374
665
|
V([
|
|
375
666
|
r({ type: String })
|
|
376
|
-
],
|
|
667
|
+
], S.prototype, "icon", 2);
|
|
377
668
|
V([
|
|
378
669
|
r({ type: Boolean, reflect: !0 })
|
|
379
|
-
],
|
|
670
|
+
], S.prototype, "dismissible", 2);
|
|
380
671
|
V([
|
|
381
672
|
r({ type: Number, reflect: !0 })
|
|
382
|
-
],
|
|
673
|
+
], S.prototype, "duration", 2);
|
|
383
674
|
V([
|
|
384
675
|
r({ type: String })
|
|
385
|
-
],
|
|
676
|
+
], S.prototype, "text", 2);
|
|
386
677
|
V([
|
|
387
678
|
r({ type: String })
|
|
388
|
-
],
|
|
679
|
+
], S.prototype, "primaryAction", 2);
|
|
389
680
|
V([
|
|
390
681
|
r({ type: String })
|
|
391
|
-
],
|
|
682
|
+
], S.prototype, "secondaryAction", 2);
|
|
392
683
|
V([
|
|
393
684
|
r({ type: String })
|
|
394
|
-
],
|
|
685
|
+
], S.prototype, "primaryLabel", 2);
|
|
395
686
|
V([
|
|
396
687
|
r({ type: String })
|
|
397
|
-
],
|
|
688
|
+
], S.prototype, "secondaryLabel", 2);
|
|
398
689
|
V([
|
|
399
|
-
|
|
400
|
-
],
|
|
690
|
+
D()
|
|
691
|
+
], S.prototype, "_alertClosed", 2);
|
|
401
692
|
V([
|
|
402
|
-
|
|
403
|
-
],
|
|
693
|
+
D()
|
|
694
|
+
], S.prototype, "_slotHasContent", 2);
|
|
404
695
|
V([
|
|
405
696
|
r({ reflect: !0 })
|
|
406
|
-
],
|
|
407
|
-
let
|
|
408
|
-
customElements.get("nys-alert") || customElements.define("nys-alert",
|
|
409
|
-
const
|
|
697
|
+
], S.prototype, "type", 1);
|
|
698
|
+
let ie = S;
|
|
699
|
+
customElements.get("nys-alert") || customElements.define("nys-alert", ie);
|
|
700
|
+
const ae = u`
|
|
410
701
|
:host {
|
|
411
702
|
/* Global Avatar Styles */
|
|
412
703
|
--_nys-avatar-shape: var(--nys-radius-round, 1776px);
|
|
@@ -474,14 +765,14 @@ const T1 = C`
|
|
|
474
765
|
fill: currentColor;
|
|
475
766
|
}
|
|
476
767
|
`;
|
|
477
|
-
var
|
|
478
|
-
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--)
|
|
479
770
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
480
|
-
return o && s &&
|
|
771
|
+
return o && s && le(e, t, s), s;
|
|
481
772
|
};
|
|
482
|
-
let
|
|
483
|
-
var
|
|
484
|
-
const
|
|
773
|
+
let de = 0;
|
|
774
|
+
var s1;
|
|
775
|
+
const F = (s1 = class extends y {
|
|
485
776
|
constructor() {
|
|
486
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;
|
|
487
778
|
}
|
|
@@ -490,14 +781,14 @@ const R = (e1 = class extends u {
|
|
|
490
781
|
}
|
|
491
782
|
// Setter for the `shape` property.
|
|
492
783
|
set shape(e) {
|
|
493
|
-
this._shape =
|
|
784
|
+
this._shape = s1.VALID_SHAPES.includes(
|
|
494
785
|
e
|
|
495
786
|
) ? e : "circle", this.requestUpdate("shape");
|
|
496
787
|
}
|
|
497
788
|
/******************** Functions ********************/
|
|
498
789
|
// Generate a unique ID if one is not provided
|
|
499
790
|
connectedCallback() {
|
|
500
|
-
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${
|
|
791
|
+
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${de++}`);
|
|
501
792
|
}
|
|
502
793
|
firstUpdated() {
|
|
503
794
|
this._checkSlotContent();
|
|
@@ -557,41 +848,41 @@ const R = (e1 = class extends u {
|
|
|
557
848
|
</label>
|
|
558
849
|
`;
|
|
559
850
|
}
|
|
560
|
-
},
|
|
851
|
+
}, s1.styles = ae, s1.VALID_SHAPES = [
|
|
561
852
|
"square",
|
|
562
853
|
"rounded",
|
|
563
854
|
"circle"
|
|
564
|
-
],
|
|
565
|
-
|
|
855
|
+
], s1);
|
|
856
|
+
J([
|
|
566
857
|
r({ type: String })
|
|
567
|
-
],
|
|
568
|
-
|
|
858
|
+
], F.prototype, "id", 2);
|
|
859
|
+
J([
|
|
569
860
|
r({ type: String })
|
|
570
|
-
],
|
|
571
|
-
|
|
861
|
+
], F.prototype, "ariaLabel", 2);
|
|
862
|
+
J([
|
|
572
863
|
r({ type: String })
|
|
573
|
-
],
|
|
574
|
-
|
|
864
|
+
], F.prototype, "image", 2);
|
|
865
|
+
J([
|
|
575
866
|
r({ type: String })
|
|
576
|
-
],
|
|
577
|
-
|
|
867
|
+
], F.prototype, "initials", 2);
|
|
868
|
+
J([
|
|
578
869
|
r({ type: String })
|
|
579
|
-
],
|
|
580
|
-
|
|
870
|
+
], F.prototype, "icon", 2);
|
|
871
|
+
J([
|
|
581
872
|
r({ type: String })
|
|
582
|
-
],
|
|
583
|
-
|
|
873
|
+
], F.prototype, "color", 2);
|
|
874
|
+
J([
|
|
584
875
|
r({ type: Boolean, reflect: !0 })
|
|
585
|
-
],
|
|
586
|
-
|
|
876
|
+
], F.prototype, "lazy", 2);
|
|
877
|
+
J([
|
|
587
878
|
r({ reflect: !0 })
|
|
588
|
-
],
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
],
|
|
592
|
-
let
|
|
593
|
-
customElements.get("nys-avatar") || customElements.define("nys-avatar",
|
|
594
|
-
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`
|
|
595
886
|
:host {
|
|
596
887
|
}
|
|
597
888
|
|
|
@@ -617,12 +908,12 @@ const Y1 = C`
|
|
|
617
908
|
display: inline-flex;
|
|
618
909
|
}
|
|
619
910
|
`;
|
|
620
|
-
var
|
|
911
|
+
var ue = Object.defineProperty, $1 = (l, e, t, o) => {
|
|
621
912
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
622
913
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
623
|
-
return s &&
|
|
914
|
+
return s && ue(e, t, s), s;
|
|
624
915
|
};
|
|
625
|
-
const
|
|
916
|
+
const Z1 = class Z1 extends y {
|
|
626
917
|
constructor() {
|
|
627
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)");
|
|
628
919
|
}
|
|
@@ -661,22 +952,22 @@ const k1 = class k1 extends u {
|
|
|
661
952
|
></nys-button>`;
|
|
662
953
|
}
|
|
663
954
|
};
|
|
664
|
-
|
|
665
|
-
let
|
|
666
|
-
|
|
955
|
+
Z1.styles = ye;
|
|
956
|
+
let l1 = Z1;
|
|
957
|
+
$1([
|
|
667
958
|
r({ type: String })
|
|
668
|
-
],
|
|
669
|
-
|
|
959
|
+
], l1.prototype, "position");
|
|
960
|
+
$1([
|
|
670
961
|
r({ type: Boolean, reflect: !0 })
|
|
671
|
-
],
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
],
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
],
|
|
678
|
-
customElements.get("nys-backtotop") || customElements.define("nys-backtotop",
|
|
679
|
-
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`
|
|
680
971
|
:host {
|
|
681
972
|
/* Anything that can be overridden should be defined here */
|
|
682
973
|
|
|
@@ -1086,7 +1377,9 @@ const K1 = C`
|
|
|
1086
1377
|
cursor: not-allowed;
|
|
1087
1378
|
}
|
|
1088
1379
|
|
|
1089
|
-
.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 {
|
|
1090
1383
|
outline-offset: var(--_nys-button-offset-focus);
|
|
1091
1384
|
outline: solid var(--_nys-button-width-focus) var(--_nys-button-color-focus);
|
|
1092
1385
|
}
|
|
@@ -1097,14 +1390,14 @@ const K1 = C`
|
|
|
1097
1390
|
user-select: none;
|
|
1098
1391
|
}
|
|
1099
1392
|
`;
|
|
1100
|
-
var
|
|
1101
|
-
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--)
|
|
1102
1395
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1103
|
-
return o && s &&
|
|
1396
|
+
return o && s && ge(e, t, s), s;
|
|
1104
1397
|
};
|
|
1105
|
-
let
|
|
1106
|
-
var
|
|
1107
|
-
const
|
|
1398
|
+
let ve = 0;
|
|
1399
|
+
var k;
|
|
1400
|
+
const f = (k = class extends y {
|
|
1108
1401
|
// allows use of elementInternals' API
|
|
1109
1402
|
constructor() {
|
|
1110
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 = () => {
|
|
@@ -1114,7 +1407,7 @@ const g = (w = class extends u {
|
|
|
1114
1407
|
return this._size;
|
|
1115
1408
|
}
|
|
1116
1409
|
set size(e) {
|
|
1117
|
-
this._size =
|
|
1410
|
+
this._size = k.VALID_SIZES.includes(
|
|
1118
1411
|
e
|
|
1119
1412
|
) ? e : "md";
|
|
1120
1413
|
}
|
|
@@ -1122,7 +1415,7 @@ const g = (w = class extends u {
|
|
|
1122
1415
|
return this._variant;
|
|
1123
1416
|
}
|
|
1124
1417
|
set variant(e) {
|
|
1125
|
-
this._variant =
|
|
1418
|
+
this._variant = k.VALID_VARIANTS.includes(
|
|
1126
1419
|
e
|
|
1127
1420
|
) ? e : "filled";
|
|
1128
1421
|
}
|
|
@@ -1130,7 +1423,7 @@ const g = (w = class extends u {
|
|
|
1130
1423
|
return this._type;
|
|
1131
1424
|
}
|
|
1132
1425
|
set type(e) {
|
|
1133
|
-
this._type =
|
|
1426
|
+
this._type = k.VALID_TYPES.includes(
|
|
1134
1427
|
e
|
|
1135
1428
|
) ? e : "button";
|
|
1136
1429
|
}
|
|
@@ -1138,7 +1431,7 @@ const g = (w = class extends u {
|
|
|
1138
1431
|
return this._target;
|
|
1139
1432
|
}
|
|
1140
1433
|
set target(e) {
|
|
1141
|
-
this._target =
|
|
1434
|
+
this._target = k.VALID_TARGETS.includes(
|
|
1142
1435
|
e
|
|
1143
1436
|
) ? e : "_self";
|
|
1144
1437
|
}
|
|
@@ -1147,7 +1440,7 @@ const g = (w = class extends u {
|
|
|
1147
1440
|
}
|
|
1148
1441
|
/******************** Functions ********************/
|
|
1149
1442
|
_generateUniqueId() {
|
|
1150
|
-
return `nys-button-${Date.now()}-${
|
|
1443
|
+
return `nys-button-${Date.now()}-${ve++}`;
|
|
1151
1444
|
}
|
|
1152
1445
|
_manageFormAction(e) {
|
|
1153
1446
|
typeof this.onClick == "function" && this.onClick(e);
|
|
@@ -1169,7 +1462,9 @@ const g = (w = class extends u {
|
|
|
1169
1462
|
}
|
|
1170
1463
|
// Handle blur event
|
|
1171
1464
|
_handleBlur() {
|
|
1172
|
-
|
|
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"));
|
|
1173
1468
|
}
|
|
1174
1469
|
_handleClick(e) {
|
|
1175
1470
|
if (this.disabled) {
|
|
@@ -1180,7 +1475,16 @@ const g = (w = class extends u {
|
|
|
1180
1475
|
}
|
|
1181
1476
|
// Handle keydown for keyboard accessibility
|
|
1182
1477
|
_handleKeydown(e) {
|
|
1183
|
-
(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
|
+
}
|
|
1184
1488
|
}
|
|
1185
1489
|
render() {
|
|
1186
1490
|
return a`
|
|
@@ -1203,11 +1507,14 @@ const g = (w = class extends u {
|
|
|
1203
1507
|
@click=${this._handleClick}
|
|
1204
1508
|
@focus="${this._handleFocus}"
|
|
1205
1509
|
@blur="${this._handleBlur}"
|
|
1510
|
+
@keydown="${this._handleKeydown}"
|
|
1511
|
+
role="button"
|
|
1512
|
+
tabindex="${this.disabled ? -1 : 0}"
|
|
1206
1513
|
>
|
|
1207
1514
|
${this.prefixIcon && this.variant !== "text" ? a`<slot name="prefix-icon">
|
|
1208
1515
|
<nys-icon size="16" name=${this.prefixIcon}></nys-icon>
|
|
1209
1516
|
</slot>` : ""}
|
|
1210
|
-
${this.label && !this.circle ? a`<
|
|
1517
|
+
${this.label && !this.circle ? a`<div class="nys-button__text">${this.label}</div>` : ""}
|
|
1211
1518
|
${this.suffixIcon && this.variant !== "text" ? a`<slot name="suffix-icon">
|
|
1212
1519
|
<nys-icon size="16" name=${this.suffixIcon}></nys-icon>
|
|
1213
1520
|
</slot>` : ""}
|
|
@@ -1236,11 +1543,12 @@ const g = (w = class extends u {
|
|
|
1236
1543
|
@focus="${this._handleFocus}"
|
|
1237
1544
|
@blur="${this._handleBlur}"
|
|
1238
1545
|
@keydown="${this._handleKeydown}"
|
|
1546
|
+
role="button"
|
|
1239
1547
|
>
|
|
1240
1548
|
${this.prefixIcon && this.variant !== "text" ? a`<slot name="prefix-icon">
|
|
1241
1549
|
<nys-icon size="16" name=${this.prefixIcon}></nys-icon>
|
|
1242
1550
|
</slot>` : ""}
|
|
1243
|
-
${this.label && !this.circle ? a`<
|
|
1551
|
+
${this.label && !this.circle ? a`<div class="nys-button__text">${this.label}</div>` : ""}
|
|
1244
1552
|
${this.suffixIcon && this.variant !== "text" ? a`<slot name="suffix-icon">
|
|
1245
1553
|
<nys-icon size="16" name=${this.suffixIcon}></nys-icon>
|
|
1246
1554
|
</slot>` : ""}
|
|
@@ -1254,81 +1562,256 @@ const g = (w = class extends u {
|
|
|
1254
1562
|
`}
|
|
1255
1563
|
`;
|
|
1256
1564
|
}
|
|
1257
|
-
},
|
|
1565
|
+
}, k.VALID_SIZES = ["sm", "md", "lg"], k.VALID_VARIANTS = [
|
|
1258
1566
|
"filled",
|
|
1259
1567
|
"outline",
|
|
1260
1568
|
"ghost",
|
|
1261
1569
|
"text"
|
|
1262
|
-
],
|
|
1570
|
+
], k.VALID_TYPES = ["submit", "reset", "button"], k.VALID_TARGETS = [
|
|
1263
1571
|
"_self",
|
|
1264
1572
|
"_blank",
|
|
1265
1573
|
"_parent",
|
|
1266
1574
|
"_top",
|
|
1267
1575
|
"framename"
|
|
1268
|
-
],
|
|
1269
|
-
|
|
1576
|
+
], k.styles = pe, k.formAssociated = !0, k);
|
|
1577
|
+
C([
|
|
1270
1578
|
r({ type: String })
|
|
1271
|
-
],
|
|
1272
|
-
|
|
1579
|
+
], f.prototype, "id", 2);
|
|
1580
|
+
C([
|
|
1273
1581
|
r({ type: String, reflect: !0 })
|
|
1274
|
-
],
|
|
1275
|
-
|
|
1582
|
+
], f.prototype, "name", 2);
|
|
1583
|
+
C([
|
|
1276
1584
|
r({ reflect: !0 })
|
|
1277
|
-
],
|
|
1278
|
-
|
|
1585
|
+
], f.prototype, "size", 1);
|
|
1586
|
+
C([
|
|
1279
1587
|
r({ type: Boolean, reflect: !0 })
|
|
1280
|
-
],
|
|
1281
|
-
|
|
1588
|
+
], f.prototype, "fullWidth", 2);
|
|
1589
|
+
C([
|
|
1282
1590
|
r({ reflect: !0 })
|
|
1283
|
-
],
|
|
1284
|
-
|
|
1591
|
+
], f.prototype, "variant", 1);
|
|
1592
|
+
C([
|
|
1285
1593
|
r({ type: Boolean, reflect: !0 })
|
|
1286
|
-
],
|
|
1287
|
-
|
|
1594
|
+
], f.prototype, "inverted", 2);
|
|
1595
|
+
C([
|
|
1288
1596
|
r({ type: String })
|
|
1289
|
-
],
|
|
1290
|
-
|
|
1597
|
+
], f.prototype, "label", 2);
|
|
1598
|
+
C([
|
|
1291
1599
|
r({ type: String })
|
|
1292
|
-
],
|
|
1293
|
-
|
|
1600
|
+
], f.prototype, "ariaLabel", 2);
|
|
1601
|
+
C([
|
|
1294
1602
|
r({ type: String })
|
|
1295
|
-
],
|
|
1296
|
-
|
|
1603
|
+
], f.prototype, "prefixIcon", 2);
|
|
1604
|
+
C([
|
|
1297
1605
|
r({ type: String })
|
|
1298
|
-
],
|
|
1299
|
-
|
|
1606
|
+
], f.prototype, "suffixIcon", 2);
|
|
1607
|
+
C([
|
|
1300
1608
|
r({ type: Boolean, reflect: !0 })
|
|
1301
|
-
],
|
|
1302
|
-
|
|
1609
|
+
], f.prototype, "circle", 2);
|
|
1610
|
+
C([
|
|
1303
1611
|
r({ type: String })
|
|
1304
|
-
],
|
|
1305
|
-
|
|
1612
|
+
], f.prototype, "icon", 2);
|
|
1613
|
+
C([
|
|
1306
1614
|
r({ type: Boolean, reflect: !0 })
|
|
1307
|
-
],
|
|
1308
|
-
|
|
1615
|
+
], f.prototype, "disabled", 2);
|
|
1616
|
+
C([
|
|
1309
1617
|
r({ type: String })
|
|
1310
|
-
],
|
|
1311
|
-
|
|
1618
|
+
], f.prototype, "form", 2);
|
|
1619
|
+
C([
|
|
1312
1620
|
r({ type: String })
|
|
1313
|
-
],
|
|
1314
|
-
|
|
1621
|
+
], f.prototype, "value", 2);
|
|
1622
|
+
C([
|
|
1315
1623
|
r({ type: String })
|
|
1316
|
-
],
|
|
1317
|
-
|
|
1624
|
+
], f.prototype, "ariaDescription", 2);
|
|
1625
|
+
C([
|
|
1318
1626
|
r({ reflect: !0 })
|
|
1319
|
-
],
|
|
1320
|
-
|
|
1627
|
+
], f.prototype, "type", 1);
|
|
1628
|
+
C([
|
|
1321
1629
|
r({ type: Function })
|
|
1322
|
-
],
|
|
1323
|
-
|
|
1630
|
+
], f.prototype, "onClick", 2);
|
|
1631
|
+
C([
|
|
1324
1632
|
r({ type: String })
|
|
1325
|
-
],
|
|
1326
|
-
|
|
1633
|
+
], f.prototype, "href", 2);
|
|
1634
|
+
C([
|
|
1327
1635
|
r({ reflect: !0 })
|
|
1328
|
-
],
|
|
1329
|
-
let
|
|
1330
|
-
customElements.get("nys-button") || customElements.define("nys-button",
|
|
1331
|
-
const
|
|
1636
|
+
], f.prototype, "target", 1);
|
|
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`
|
|
1332
1815
|
:host {
|
|
1333
1816
|
/* Anything that can be overridden should be defined here */
|
|
1334
1817
|
|
|
@@ -1623,13 +2106,17 @@ const H1 = C`
|
|
|
1623
2106
|
}
|
|
1624
2107
|
|
|
1625
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
|
+
}
|
|
1626
2113
|
:host([tile])
|
|
1627
2114
|
.nys-checkbox:hover:has(.nys-checkbox__checkbox:not(:disabled):checked) {
|
|
1628
2115
|
outline: solid var(--_nys-checkbox-tile-border-width)
|
|
1629
2116
|
var(--_nys-checkbox-checked-tile-border-color);
|
|
1630
2117
|
}
|
|
1631
2118
|
|
|
1632
|
-
/* Pressed -
|
|
2119
|
+
/* Pressed - not checked */
|
|
1633
2120
|
.nys-checkbox__checkbox:active:not(:disabled):not(:checked) {
|
|
1634
2121
|
background-color: var(--_nys-checkbox-pressed-color-bg);
|
|
1635
2122
|
border-color: var(--_nys-checkbox-pressed-color-border);
|
|
@@ -1644,12 +2131,18 @@ const H1 = C`
|
|
|
1644
2131
|
var(--_nys-checkbox-pressed-tile-border-color);
|
|
1645
2132
|
}
|
|
1646
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
|
+
|
|
1647
2140
|
/* Focused */
|
|
1648
|
-
:host(:not([tile])) .nys-checkbox__checkbox:focus
|
|
2141
|
+
:host(:not([tile])) .nys-checkbox__checkbox:focus {
|
|
1649
2142
|
outline: solid var(--_nys-checkbox-width-focus)
|
|
1650
2143
|
var(--_nys-checkbox-color-focus);
|
|
1651
2144
|
}
|
|
1652
|
-
:host([tile]) .nys-checkbox:has(*:focus
|
|
2145
|
+
:host([tile]) .nys-checkbox:has(*:focus) {
|
|
1653
2146
|
outline: solid var(--_nys-checkbox-tile-border-width)
|
|
1654
2147
|
var(--_nys-checkbox-color-focus) !important;
|
|
1655
2148
|
border-color: var(--_nys-checkbox-color-focus) !important;
|
|
@@ -1682,41 +2175,58 @@ const H1 = C`
|
|
|
1682
2175
|
}
|
|
1683
2176
|
|
|
1684
2177
|
.nys-checkbox__requiredwrapper {
|
|
1685
|
-
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;
|
|
1686
2196
|
}
|
|
1687
2197
|
`;
|
|
1688
|
-
var
|
|
1689
|
-
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--)
|
|
1690
2200
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1691
|
-
return o && s &&
|
|
2201
|
+
return o && s && we(e, t, s), s;
|
|
1692
2202
|
};
|
|
1693
|
-
let
|
|
1694
|
-
var
|
|
1695
|
-
const A = (
|
|
2203
|
+
let Le = 0;
|
|
2204
|
+
var G;
|
|
2205
|
+
const A = (G = class extends y {
|
|
1696
2206
|
// allows use of elementInternals' API
|
|
1697
2207
|
constructor() {
|
|
1698
|
-
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._size = "md", this._internals = this.attachInternals();
|
|
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();
|
|
1699
2209
|
}
|
|
1700
2210
|
get size() {
|
|
1701
2211
|
return this._size;
|
|
1702
2212
|
}
|
|
1703
2213
|
set size(e) {
|
|
1704
|
-
this._size =
|
|
2214
|
+
this._size = G.VALID_SIZES.includes(
|
|
1705
2215
|
e
|
|
1706
2216
|
) ? e : "md";
|
|
1707
2217
|
}
|
|
1708
2218
|
// Generate a unique ID if one is not provided
|
|
1709
2219
|
connectedCallback() {
|
|
1710
|
-
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);
|
|
1711
2221
|
}
|
|
1712
2222
|
disconnectedCallback() {
|
|
1713
2223
|
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleCheckboxChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
1714
2224
|
}
|
|
1715
2225
|
firstUpdated() {
|
|
1716
|
-
this._setGroupExist(), this.
|
|
2226
|
+
this._setGroupExist(), this._updateCheckboxSize(), this._updateCheckboxTile(), this._updateCheckboxShowError(), this._getSlotDescriptionForAria();
|
|
1717
2227
|
}
|
|
1718
2228
|
updated(e) {
|
|
1719
|
-
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();
|
|
1720
2230
|
}
|
|
1721
2231
|
/********************** Functions **********************/
|
|
1722
2232
|
_setGroupExist() {
|
|
@@ -1724,24 +2234,6 @@ const A = (j = class extends u {
|
|
|
1724
2234
|
t.groupExist = !0;
|
|
1725
2235
|
});
|
|
1726
2236
|
}
|
|
1727
|
-
async _handleInvalid(e) {
|
|
1728
|
-
e.preventDefault(), this.showError = !0, this._manageCheckboxRequired();
|
|
1729
|
-
const t = this.querySelector("nys-checkbox"), o = t ? await t.getInputElement() : null;
|
|
1730
|
-
if (o) {
|
|
1731
|
-
const s = this._internals.form;
|
|
1732
|
-
s ? Array.from(s.elements).find((c) => {
|
|
1733
|
-
if (c.tagName.toLowerCase() === "nys-checkboxgroup") {
|
|
1734
|
-
if (Array.from(
|
|
1735
|
-
this.querySelectorAll("nys-checkbox")
|
|
1736
|
-
).filter(
|
|
1737
|
-
($) => $.checked
|
|
1738
|
-
).length === 0)
|
|
1739
|
-
return c;
|
|
1740
|
-
} else
|
|
1741
|
-
return typeof c.checkValidity == "function" && !c.checkValidity();
|
|
1742
|
-
}) === this && o.focus() : o.focus();
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
2237
|
// Initial update on checkbox required attribute
|
|
1746
2238
|
async _setupCheckboxRequired() {
|
|
1747
2239
|
const e = this.querySelector("nys-checkbox"), t = this.errorMessage || "This field is required", o = e ? await e.getInputElement() : null;
|
|
@@ -1751,11 +2243,6 @@ const A = (j = class extends u {
|
|
|
1751
2243
|
o || this
|
|
1752
2244
|
);
|
|
1753
2245
|
}
|
|
1754
|
-
// Similar to how native forms handle multiple same-name fields, we group the selected values into a list for FormData.
|
|
1755
|
-
_handleCheckboxChange(e) {
|
|
1756
|
-
const t = e, { name: o } = t.detail, n = Array.from(this.querySelectorAll("nys-checkbox")).filter((i) => i.checked).map((i) => i.value);
|
|
1757
|
-
this.name = o, this._internals.setFormValue(n.join(", ")), this._manageCheckboxRequired();
|
|
1758
|
-
}
|
|
1759
2246
|
// Updates the required attribute of each checkbox in the group
|
|
1760
2247
|
async _manageCheckboxRequired() {
|
|
1761
2248
|
if (this.required) {
|
|
@@ -1771,82 +2258,127 @@ const A = (j = class extends u {
|
|
|
1771
2258
|
}
|
|
1772
2259
|
}
|
|
1773
2260
|
// Updates the size of each checkbox in the group
|
|
1774
|
-
|
|
2261
|
+
_updateCheckboxSize() {
|
|
1775
2262
|
this.querySelectorAll("nys-checkbox").forEach((t) => {
|
|
1776
2263
|
t.setAttribute("size", this.size);
|
|
1777
2264
|
});
|
|
1778
2265
|
}
|
|
1779
|
-
|
|
2266
|
+
_updateCheckboxTile() {
|
|
1780
2267
|
this.querySelectorAll("nys-checkbox").forEach((t) => {
|
|
1781
2268
|
this.tile ? t.toggleAttribute("tile", !0) : t.removeAttribute("tile");
|
|
1782
2269
|
});
|
|
1783
2270
|
}
|
|
1784
|
-
|
|
2271
|
+
_updateCheckboxShowError() {
|
|
1785
2272
|
this.querySelectorAll("nys-checkbox").forEach((t) => {
|
|
1786
2273
|
this.showError ? t.setAttribute("showError", "") : t.removeAttribute("showError");
|
|
1787
2274
|
});
|
|
1788
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
|
+
}
|
|
1789
2311
|
render() {
|
|
1790
|
-
return a`
|
|
1791
|
-
<nys-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
<
|
|
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>
|
|
1801
2335
|
</div>
|
|
1802
|
-
|
|
1803
|
-
?showError=${this.showError}
|
|
1804
|
-
errorMessage=${this._internals.validationMessage || this.errorMessage}
|
|
1805
|
-
.showDivider=${!this.tile}
|
|
1806
|
-
></nys-errormessage>
|
|
1807
|
-
</div>`;
|
|
2336
|
+
`;
|
|
1808
2337
|
}
|
|
1809
|
-
},
|
|
1810
|
-
|
|
2338
|
+
}, G.VALID_SIZES = ["sm", "md"], G.styles = G1, G.formAssociated = !0, G);
|
|
2339
|
+
P([
|
|
1811
2340
|
r({ type: String })
|
|
1812
2341
|
], A.prototype, "id", 2);
|
|
1813
|
-
|
|
2342
|
+
P([
|
|
1814
2343
|
r({ type: String, reflect: !0 })
|
|
1815
2344
|
], A.prototype, "name", 2);
|
|
1816
|
-
|
|
2345
|
+
P([
|
|
1817
2346
|
r({ type: Boolean, reflect: !0 })
|
|
1818
2347
|
], A.prototype, "required", 2);
|
|
1819
|
-
|
|
2348
|
+
P([
|
|
1820
2349
|
r({ type: Boolean, reflect: !0 })
|
|
1821
2350
|
], A.prototype, "optional", 2);
|
|
1822
|
-
|
|
2351
|
+
P([
|
|
1823
2352
|
r({ type: Boolean, reflect: !0 })
|
|
1824
2353
|
], A.prototype, "showError", 2);
|
|
1825
|
-
|
|
2354
|
+
P([
|
|
1826
2355
|
r({ type: String })
|
|
1827
2356
|
], A.prototype, "errorMessage", 2);
|
|
1828
|
-
|
|
2357
|
+
P([
|
|
1829
2358
|
r({ type: String })
|
|
1830
2359
|
], A.prototype, "label", 2);
|
|
1831
|
-
|
|
2360
|
+
P([
|
|
1832
2361
|
r({ type: String })
|
|
1833
2362
|
], A.prototype, "description", 2);
|
|
1834
|
-
|
|
2363
|
+
P([
|
|
1835
2364
|
r({ type: Boolean, reflect: !0 })
|
|
1836
2365
|
], A.prototype, "tile", 2);
|
|
1837
|
-
|
|
2366
|
+
P([
|
|
2367
|
+
D()
|
|
2368
|
+
], A.prototype, "_slottedDescriptionText", 2);
|
|
2369
|
+
P([
|
|
1838
2370
|
r({ reflect: !0 })
|
|
1839
2371
|
], A.prototype, "size", 1);
|
|
1840
|
-
let
|
|
1841
|
-
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup",
|
|
1842
|
-
var
|
|
1843
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
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--)
|
|
1844
2376
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1845
|
-
return o && s &&
|
|
2377
|
+
return o && s && $e(e, t, s), s;
|
|
1846
2378
|
};
|
|
1847
|
-
let
|
|
1848
|
-
var
|
|
1849
|
-
const
|
|
2379
|
+
let Ve = 0;
|
|
2380
|
+
var Y;
|
|
2381
|
+
const $ = (Y = class extends y {
|
|
1850
2382
|
// allows use of elementInternals' API
|
|
1851
2383
|
constructor() {
|
|
1852
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();
|
|
@@ -1855,7 +2387,7 @@ const L = (G = class extends u {
|
|
|
1855
2387
|
return this._size;
|
|
1856
2388
|
}
|
|
1857
2389
|
set size(e) {
|
|
1858
|
-
this._size =
|
|
2390
|
+
this._size = Y.VALID_SIZES.includes(
|
|
1859
2391
|
e
|
|
1860
2392
|
) ? e : "md";
|
|
1861
2393
|
}
|
|
@@ -1865,7 +2397,7 @@ const L = (G = class extends u {
|
|
|
1865
2397
|
}
|
|
1866
2398
|
// Generate a unique ID if one is not provided
|
|
1867
2399
|
connectedCallback() {
|
|
1868
|
-
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);
|
|
1869
2401
|
}
|
|
1870
2402
|
disconnectedCallback() {
|
|
1871
2403
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -1971,6 +2503,7 @@ const L = (G = class extends u {
|
|
|
1971
2503
|
aria-checked="${this.checked}"
|
|
1972
2504
|
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
1973
2505
|
aria-required="${this.required}"
|
|
2506
|
+
aria-describedby="group-info"
|
|
1974
2507
|
@change="${this._handleChange}"
|
|
1975
2508
|
@focus="${this._handleFocus}"
|
|
1976
2509
|
@blur="${this._handleBlur}"
|
|
@@ -1985,14 +2518,12 @@ const L = (G = class extends u {
|
|
|
1985
2518
|
</div>
|
|
1986
2519
|
${this.label && a` <div class="nys-checkbox__text">
|
|
1987
2520
|
<div class="nys-checkbox__requiredwrapper">
|
|
1988
|
-
<
|
|
1989
|
-
|
|
1990
|
-
>
|
|
1991
|
-
${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>` : ""}
|
|
1992
2523
|
</div>
|
|
1993
|
-
<
|
|
2524
|
+
<div class="nys-checkbox__description">
|
|
1994
2525
|
<slot name="description">${this.description}</slot>
|
|
1995
|
-
</
|
|
2526
|
+
</div>
|
|
1996
2527
|
</div>`}
|
|
1997
2528
|
</label>
|
|
1998
2529
|
${((e = this.parentElement) == null ? void 0 : e.tagName.toLowerCase()) !== "nys-checkboxgroup" ? a`<nys-errormessage
|
|
@@ -2003,49 +2534,49 @@ const L = (G = class extends u {
|
|
|
2003
2534
|
></nys-errormessage>` : ""}
|
|
2004
2535
|
`;
|
|
2005
2536
|
}
|
|
2006
|
-
},
|
|
2007
|
-
|
|
2537
|
+
}, Y.VALID_SIZES = ["sm", "md"], Y.styles = G1, Y.formAssociated = !0, Y);
|
|
2538
|
+
M([
|
|
2008
2539
|
r({ type: Boolean, reflect: !0 })
|
|
2009
|
-
],
|
|
2010
|
-
|
|
2540
|
+
], $.prototype, "checked", 2);
|
|
2541
|
+
M([
|
|
2011
2542
|
r({ type: Boolean, reflect: !0 })
|
|
2012
|
-
],
|
|
2013
|
-
|
|
2543
|
+
], $.prototype, "disabled", 2);
|
|
2544
|
+
M([
|
|
2014
2545
|
r({ type: Boolean, reflect: !0 })
|
|
2015
|
-
],
|
|
2016
|
-
|
|
2546
|
+
], $.prototype, "required", 2);
|
|
2547
|
+
M([
|
|
2017
2548
|
r({ type: String })
|
|
2018
|
-
],
|
|
2019
|
-
|
|
2549
|
+
], $.prototype, "label", 2);
|
|
2550
|
+
M([
|
|
2020
2551
|
r({ type: String })
|
|
2021
|
-
],
|
|
2022
|
-
|
|
2552
|
+
], $.prototype, "description", 2);
|
|
2553
|
+
M([
|
|
2023
2554
|
r({ type: String })
|
|
2024
|
-
],
|
|
2025
|
-
|
|
2555
|
+
], $.prototype, "id", 2);
|
|
2556
|
+
M([
|
|
2026
2557
|
r({ type: String, reflect: !0 })
|
|
2027
|
-
],
|
|
2028
|
-
|
|
2558
|
+
], $.prototype, "name", 2);
|
|
2559
|
+
M([
|
|
2029
2560
|
r({ type: String })
|
|
2030
|
-
],
|
|
2031
|
-
|
|
2561
|
+
], $.prototype, "value", 2);
|
|
2562
|
+
M([
|
|
2032
2563
|
r({ type: Boolean, reflect: !0 })
|
|
2033
|
-
],
|
|
2034
|
-
|
|
2564
|
+
], $.prototype, "showError", 2);
|
|
2565
|
+
M([
|
|
2035
2566
|
r({ type: String })
|
|
2036
|
-
],
|
|
2037
|
-
|
|
2567
|
+
], $.prototype, "errorMessage", 2);
|
|
2568
|
+
M([
|
|
2038
2569
|
r({ type: Boolean })
|
|
2039
|
-
],
|
|
2040
|
-
|
|
2570
|
+
], $.prototype, "groupExist", 2);
|
|
2571
|
+
M([
|
|
2041
2572
|
r({ type: Boolean, reflect: !0 })
|
|
2042
|
-
],
|
|
2043
|
-
|
|
2573
|
+
], $.prototype, "tile", 2);
|
|
2574
|
+
M([
|
|
2044
2575
|
r({ reflect: !0 })
|
|
2045
|
-
],
|
|
2046
|
-
let
|
|
2047
|
-
customElements.get("nys-checkbox") || customElements.define("nys-checkbox",
|
|
2048
|
-
const
|
|
2576
|
+
], $.prototype, "size", 1);
|
|
2577
|
+
let Me = $;
|
|
2578
|
+
customElements.get("nys-checkbox") || customElements.define("nys-checkbox", Me);
|
|
2579
|
+
const ze = u`
|
|
2049
2580
|
:host {
|
|
2050
2581
|
--_nys-errormessage-font-family: var(
|
|
2051
2582
|
--nys-font-family-ui,
|
|
@@ -2098,12 +2629,12 @@ const ce = C`
|
|
|
2098
2629
|
var(--_nys-errormessage-color);
|
|
2099
2630
|
}
|
|
2100
2631
|
`;
|
|
2101
|
-
var
|
|
2632
|
+
var Ee = Object.defineProperty, E1 = (l, e, t, o) => {
|
|
2102
2633
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2103
2634
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2104
|
-
return s &&
|
|
2635
|
+
return s && Ee(e, t, s), s;
|
|
2105
2636
|
};
|
|
2106
|
-
const
|
|
2637
|
+
const L1 = class L1 extends y {
|
|
2107
2638
|
// allows use of elementInternals' API
|
|
2108
2639
|
constructor() {
|
|
2109
2640
|
super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
|
|
@@ -2115,19 +2646,19 @@ const g1 = class g1 extends u {
|
|
|
2115
2646
|
</div>` : ""}`;
|
|
2116
2647
|
}
|
|
2117
2648
|
};
|
|
2118
|
-
|
|
2119
|
-
let
|
|
2120
|
-
|
|
2649
|
+
L1.styles = ze, L1.formAssociated = !0;
|
|
2650
|
+
let g1 = L1;
|
|
2651
|
+
E1([
|
|
2121
2652
|
r({ type: Boolean })
|
|
2122
|
-
],
|
|
2123
|
-
|
|
2653
|
+
], g1.prototype, "showError");
|
|
2654
|
+
E1([
|
|
2124
2655
|
r({ type: String })
|
|
2125
|
-
],
|
|
2126
|
-
|
|
2656
|
+
], g1.prototype, "errorMessage");
|
|
2657
|
+
E1([
|
|
2127
2658
|
r({ type: Boolean, reflect: !0 })
|
|
2128
|
-
],
|
|
2129
|
-
customElements.get("nys-errormessage") || customElements.define("nys-errormessage",
|
|
2130
|
-
async function
|
|
2659
|
+
], g1.prototype, "showDivider");
|
|
2660
|
+
customElements.get("nys-errormessage") || customElements.define("nys-errormessage", g1);
|
|
2661
|
+
async function He(l, e) {
|
|
2131
2662
|
if (!e || e.trim() === "") return !0;
|
|
2132
2663
|
const t = e.toLowerCase().split(",").map((n) => n.trim()), o = l.name.toLowerCase(), s = o.includes(".") ? o.split(".").pop() : "";
|
|
2133
2664
|
for (const n of t)
|
|
@@ -2135,7 +2666,7 @@ async function he(l, e) {
|
|
|
2135
2666
|
return !0;
|
|
2136
2667
|
return !1;
|
|
2137
2668
|
}
|
|
2138
|
-
const
|
|
2669
|
+
const Ie = u`
|
|
2139
2670
|
:host {
|
|
2140
2671
|
/* Global Fileinput Styles */
|
|
2141
2672
|
--_nys-fileinput-gap: var(--nys-space-100, 8px);
|
|
@@ -2255,7 +2786,7 @@ const ye = C`
|
|
|
2255
2786
|
progress::-webkit-progress-bar {
|
|
2256
2787
|
background: var(--_nys-fileinput-progress-background);
|
|
2257
2788
|
}
|
|
2258
|
-
`,
|
|
2789
|
+
`, Ae = u`
|
|
2259
2790
|
:host {
|
|
2260
2791
|
/* Global fileitem Styles */
|
|
2261
2792
|
--_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
|
|
@@ -2393,12 +2924,12 @@ const ye = C`
|
|
|
2393
2924
|
}
|
|
2394
2925
|
}
|
|
2395
2926
|
`;
|
|
2396
|
-
var
|
|
2927
|
+
var Ze = Object.defineProperty, D1 = (l, e, t, o) => {
|
|
2397
2928
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2398
2929
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2399
|
-
return s &&
|
|
2930
|
+
return s && Ze(e, t, s), s;
|
|
2400
2931
|
};
|
|
2401
|
-
const
|
|
2932
|
+
const B1 = class B1 extends y {
|
|
2402
2933
|
constructor() {
|
|
2403
2934
|
super(...arguments), this.filename = "", this.status = "pending", this.progress = 0, this.errorMessage = "";
|
|
2404
2935
|
}
|
|
@@ -2471,28 +3002,28 @@ const L1 = class L1 extends u {
|
|
|
2471
3002
|
`;
|
|
2472
3003
|
}
|
|
2473
3004
|
};
|
|
2474
|
-
|
|
2475
|
-
let
|
|
2476
|
-
|
|
3005
|
+
B1.styles = Ae;
|
|
3006
|
+
let c1 = B1;
|
|
3007
|
+
D1([
|
|
2477
3008
|
r({ type: String })
|
|
2478
|
-
],
|
|
2479
|
-
|
|
3009
|
+
], c1.prototype, "filename");
|
|
3010
|
+
D1([
|
|
2480
3011
|
r({ type: String })
|
|
2481
|
-
],
|
|
2482
|
-
|
|
3012
|
+
], c1.prototype, "status");
|
|
3013
|
+
D1([
|
|
2483
3014
|
r({ type: Number })
|
|
2484
|
-
],
|
|
2485
|
-
|
|
3015
|
+
], c1.prototype, "progress");
|
|
3016
|
+
D1([
|
|
2486
3017
|
r({ type: String })
|
|
2487
|
-
],
|
|
2488
|
-
customElements.define("nys-fileitem",
|
|
2489
|
-
var
|
|
3018
|
+
], c1.prototype, "errorMessage");
|
|
3019
|
+
customElements.define("nys-fileitem", c1);
|
|
3020
|
+
var Be = Object.defineProperty, z = (l, e, t, o) => {
|
|
2490
3021
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2491
3022
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2492
|
-
return s &&
|
|
3023
|
+
return s && Be(e, t, s), s;
|
|
2493
3024
|
};
|
|
2494
|
-
let
|
|
2495
|
-
const
|
|
3025
|
+
let qe = 0;
|
|
3026
|
+
const S1 = class S1 extends y {
|
|
2496
3027
|
// allows use of elementInternals' API
|
|
2497
3028
|
constructor() {
|
|
2498
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();
|
|
@@ -2529,7 +3060,7 @@ const f1 = class f1 extends u {
|
|
|
2529
3060
|
}
|
|
2530
3061
|
// Generate a unique ID if one is not provided
|
|
2531
3062
|
connectedCallback() {
|
|
2532
|
-
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);
|
|
2533
3064
|
}
|
|
2534
3065
|
disconnectedCallback() {
|
|
2535
3066
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -2561,7 +3092,7 @@ const f1 = class f1 extends u {
|
|
|
2561
3092
|
const e = (s = this.shadowRoot) == null ? void 0 : s.querySelector("input");
|
|
2562
3093
|
if (!e) return;
|
|
2563
3094
|
const t = this.errorMessage || "Please upload a file.";
|
|
2564
|
-
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));
|
|
2565
3096
|
}
|
|
2566
3097
|
_setValidityMessage(e = "") {
|
|
2567
3098
|
var o, s;
|
|
@@ -2592,7 +3123,7 @@ const f1 = class f1 extends u {
|
|
|
2592
3123
|
const o = this._internals.form;
|
|
2593
3124
|
o ? Array.from(o.elements).find(
|
|
2594
3125
|
(i) => typeof i.checkValidity == "function" && !i.checkValidity()
|
|
2595
|
-
) === this && t.focus() : t.focus();
|
|
3126
|
+
) === this && (t.focus(), t.classList.add("active-focus")) : (t.focus(), t.classList.add("active-focus"));
|
|
2596
3127
|
}
|
|
2597
3128
|
}
|
|
2598
3129
|
/******************** Functions ********************/
|
|
@@ -2612,7 +3143,7 @@ const f1 = class f1 extends u {
|
|
|
2612
3143
|
async _processFile(e) {
|
|
2613
3144
|
e.status = "processing";
|
|
2614
3145
|
try {
|
|
2615
|
-
if (!await
|
|
3146
|
+
if (!await He(e.file, this.accept)) {
|
|
2616
3147
|
e.status = "error", e.errorMsg = "File type is invalid.", this.requestUpdate();
|
|
2617
3148
|
return;
|
|
2618
3149
|
}
|
|
@@ -2668,16 +3199,23 @@ const f1 = class f1 extends u {
|
|
|
2668
3199
|
/******************** Event Handlers ********************/
|
|
2669
3200
|
// Access the selected files & add new files to the internal list via the hidden <input type="file">
|
|
2670
3201
|
_handleFileChange(e) {
|
|
2671
|
-
const
|
|
3202
|
+
const o = e.target.files;
|
|
2672
3203
|
(o ? Array.from(o) : []).map((n) => {
|
|
2673
3204
|
this._saveSelectedFiles(n);
|
|
2674
|
-
}),
|
|
3205
|
+
}), this.requestUpdate(), this._dispatchChangeEvent(), this._handlePostFileSelectionFocus();
|
|
2675
3206
|
}
|
|
2676
3207
|
_handleFileRemove(e) {
|
|
3208
|
+
var o;
|
|
2677
3209
|
const t = e.detail.filename;
|
|
2678
|
-
this._selectedFiles = this._selectedFiles.filter(
|
|
2679
|
-
(
|
|
2680
|
-
), 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();
|
|
2681
3219
|
}
|
|
2682
3220
|
_onDragOver(e) {
|
|
2683
3221
|
this.disabled || (e.stopPropagation(), e.preventDefault(), this._dragActive || (this._dragActive = !0, this.requestUpdate()));
|
|
@@ -2703,7 +3241,7 @@ const f1 = class f1 extends u {
|
|
|
2703
3241
|
@nys-fileRemove=${this._handleFileRemove}
|
|
2704
3242
|
>
|
|
2705
3243
|
<nys-label
|
|
2706
|
-
|
|
3244
|
+
for=${this.id}
|
|
2707
3245
|
label=${this.label}
|
|
2708
3246
|
description=${this.description}
|
|
2709
3247
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -2722,8 +3260,8 @@ const f1 = class f1 extends u {
|
|
|
2722
3260
|
?disabled=${this.disabled || !this.multiple && this._selectedFiles.length > 0}
|
|
2723
3261
|
aria-disabled="${this.disabled}"
|
|
2724
3262
|
aria-hidden="true"
|
|
2725
|
-
hidden
|
|
2726
3263
|
@change=${this._handleFileChange}
|
|
3264
|
+
hidden
|
|
2727
3265
|
/>
|
|
2728
3266
|
|
|
2729
3267
|
${this.dropzone ? a`<div
|
|
@@ -2784,49 +3322,49 @@ const f1 = class f1 extends u {
|
|
|
2784
3322
|
</div>`;
|
|
2785
3323
|
}
|
|
2786
3324
|
};
|
|
2787
|
-
|
|
2788
|
-
let
|
|
2789
|
-
|
|
3325
|
+
S1.styles = Ie, S1.formAssociated = !0;
|
|
3326
|
+
let w = S1;
|
|
3327
|
+
z([
|
|
2790
3328
|
r({ type: String })
|
|
2791
|
-
],
|
|
2792
|
-
|
|
3329
|
+
], w.prototype, "id");
|
|
3330
|
+
z([
|
|
2793
3331
|
r({ type: String, reflect: !0 })
|
|
2794
|
-
],
|
|
2795
|
-
|
|
3332
|
+
], w.prototype, "name");
|
|
3333
|
+
z([
|
|
2796
3334
|
r({ type: String })
|
|
2797
|
-
],
|
|
2798
|
-
|
|
3335
|
+
], w.prototype, "label");
|
|
3336
|
+
z([
|
|
2799
3337
|
r({ type: String })
|
|
2800
|
-
],
|
|
2801
|
-
|
|
3338
|
+
], w.prototype, "description");
|
|
3339
|
+
z([
|
|
2802
3340
|
r({ type: Boolean })
|
|
2803
|
-
],
|
|
2804
|
-
|
|
3341
|
+
], w.prototype, "multiple");
|
|
3342
|
+
z([
|
|
2805
3343
|
r({ type: String })
|
|
2806
|
-
],
|
|
2807
|
-
|
|
3344
|
+
], w.prototype, "accept");
|
|
3345
|
+
z([
|
|
2808
3346
|
r({ type: Boolean, reflect: !0 })
|
|
2809
|
-
],
|
|
2810
|
-
|
|
3347
|
+
], w.prototype, "disabled");
|
|
3348
|
+
z([
|
|
2811
3349
|
r({ type: Boolean, reflect: !0 })
|
|
2812
|
-
],
|
|
2813
|
-
|
|
3350
|
+
], w.prototype, "required");
|
|
3351
|
+
z([
|
|
2814
3352
|
r({ type: Boolean, reflect: !0 })
|
|
2815
|
-
],
|
|
2816
|
-
|
|
3353
|
+
], w.prototype, "optional");
|
|
3354
|
+
z([
|
|
2817
3355
|
r({ type: Boolean, reflect: !0 })
|
|
2818
|
-
],
|
|
2819
|
-
|
|
3356
|
+
], w.prototype, "showError");
|
|
3357
|
+
z([
|
|
2820
3358
|
r({ type: String })
|
|
2821
|
-
],
|
|
2822
|
-
|
|
3359
|
+
], w.prototype, "errorMessage");
|
|
3360
|
+
z([
|
|
2823
3361
|
r({ type: Boolean })
|
|
2824
|
-
],
|
|
2825
|
-
|
|
3362
|
+
], w.prototype, "dropzone");
|
|
3363
|
+
z([
|
|
2826
3364
|
r({ type: String, reflect: !0 })
|
|
2827
|
-
],
|
|
2828
|
-
customElements.get("nys-fileinput") || customElements.define("nys-fileinput",
|
|
2829
|
-
const
|
|
3365
|
+
], w.prototype, "width");
|
|
3366
|
+
customElements.get("nys-fileinput") || customElements.define("nys-fileinput", w);
|
|
3367
|
+
const Ue = {
|
|
2830
3368
|
// --------- UX Team Main Library (below) --------- //
|
|
2831
3369
|
// *** CORE *** //
|
|
2832
3370
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -2876,6 +3414,14 @@ const fe = {
|
|
|
2876
3414
|
<g mask="url(#mask0_12383_539)">
|
|
2877
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)"/>
|
|
2878
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>
|
|
2879
3425
|
</svg>`,
|
|
2880
3426
|
download: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2881
3427
|
<mask id="mask0_12372_255" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
@@ -3236,6 +3782,14 @@ const fe = {
|
|
|
3236
3782
|
</g>
|
|
3237
3783
|
</svg>`,
|
|
3238
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>`,
|
|
3239
3793
|
social_facebook: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3240
3794
|
<mask id="mask0_12372_332" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3241
3795
|
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
@@ -3332,6 +3886,15 @@ const fe = {
|
|
|
3332
3886
|
<g mask="url(#mask0_12372_642)">
|
|
3333
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)"/>
|
|
3334
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>
|
|
3335
3898
|
</svg>`,
|
|
3336
3899
|
social_tumblr: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3337
3900
|
<mask id="mask0_12372_356" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
@@ -3398,7 +3961,7 @@ const fe = {
|
|
|
3398
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)"/>
|
|
3399
3962
|
</g>
|
|
3400
3963
|
</svg>`
|
|
3401
|
-
},
|
|
3964
|
+
}, Pe = u`
|
|
3402
3965
|
:host {
|
|
3403
3966
|
display: inline-block;
|
|
3404
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. */
|
|
@@ -3499,12 +4062,12 @@ const fe = {
|
|
|
3499
4062
|
transform: scale(-1, -1);
|
|
3500
4063
|
}
|
|
3501
4064
|
`;
|
|
3502
|
-
var
|
|
3503
|
-
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--)
|
|
3504
4067
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3505
|
-
return o && s &&
|
|
3506
|
-
},
|
|
3507
|
-
const
|
|
4068
|
+
return o && s && Oe(e, t, s), s;
|
|
4069
|
+
}, o1;
|
|
4070
|
+
const h1 = (o1 = class extends y {
|
|
3508
4071
|
constructor() {
|
|
3509
4072
|
super(...arguments), this.name = "", this.ariaLabel = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
3510
4073
|
}
|
|
@@ -3512,12 +4075,12 @@ const i1 = (t1 = class extends u {
|
|
|
3512
4075
|
return this._size;
|
|
3513
4076
|
}
|
|
3514
4077
|
set size(e) {
|
|
3515
|
-
this._size =
|
|
4078
|
+
this._size = o1.VALID_TYPES.includes(
|
|
3516
4079
|
e
|
|
3517
4080
|
) ? e : "sm";
|
|
3518
4081
|
}
|
|
3519
4082
|
getIcon() {
|
|
3520
|
-
const e =
|
|
4083
|
+
const e = Ue[this.name];
|
|
3521
4084
|
if (!e) return null;
|
|
3522
4085
|
const s = new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
|
|
3523
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;
|
|
@@ -3526,7 +4089,7 @@ const i1 = (t1 = class extends u {
|
|
|
3526
4089
|
const e = this.getIcon();
|
|
3527
4090
|
return e ? a`${e}` : null;
|
|
3528
4091
|
}
|
|
3529
|
-
},
|
|
4092
|
+
}, o1.styles = Pe, o1.VALID_TYPES = [
|
|
3530
4093
|
"2xs",
|
|
3531
4094
|
"xs",
|
|
3532
4095
|
"sm",
|
|
@@ -3543,28 +4106,28 @@ const i1 = (t1 = class extends u {
|
|
|
3543
4106
|
"40",
|
|
3544
4107
|
"48",
|
|
3545
4108
|
"64"
|
|
3546
|
-
],
|
|
3547
|
-
|
|
4109
|
+
], o1);
|
|
4110
|
+
v1([
|
|
3548
4111
|
r({ type: String, reflect: !0 })
|
|
3549
|
-
],
|
|
3550
|
-
|
|
4112
|
+
], h1.prototype, "name", 2);
|
|
4113
|
+
v1([
|
|
3551
4114
|
r({ type: String })
|
|
3552
|
-
],
|
|
3553
|
-
|
|
4115
|
+
], h1.prototype, "ariaLabel", 2);
|
|
4116
|
+
v1([
|
|
3554
4117
|
r({ type: String })
|
|
3555
|
-
],
|
|
3556
|
-
|
|
4118
|
+
], h1.prototype, "rotate", 2);
|
|
4119
|
+
v1([
|
|
3557
4120
|
r({ type: String })
|
|
3558
|
-
],
|
|
3559
|
-
|
|
4121
|
+
], h1.prototype, "flip", 2);
|
|
4122
|
+
v1([
|
|
3560
4123
|
r({ type: String })
|
|
3561
|
-
],
|
|
3562
|
-
|
|
4124
|
+
], h1.prototype, "color", 2);
|
|
4125
|
+
v1([
|
|
3563
4126
|
r({ reflect: !0 })
|
|
3564
|
-
],
|
|
3565
|
-
let
|
|
3566
|
-
customElements.get("nys-icon") || customElements.define("nys-icon",
|
|
3567
|
-
const
|
|
4127
|
+
], h1.prototype, "size", 1);
|
|
4128
|
+
let Te = h1;
|
|
4129
|
+
customElements.get("nys-icon") || customElements.define("nys-icon", Te);
|
|
4130
|
+
const Fe = u`
|
|
3568
4131
|
:host {
|
|
3569
4132
|
/* Label Typography */
|
|
3570
4133
|
--_nys-label-font-family: var(
|
|
@@ -3638,14 +4201,14 @@ const xe = C`
|
|
|
3638
4201
|
color: var(--nys-optional-font-color);
|
|
3639
4202
|
}
|
|
3640
4203
|
`;
|
|
3641
|
-
var
|
|
4204
|
+
var Ne = Object.defineProperty, V1 = (l, e, t, o) => {
|
|
3642
4205
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
3643
4206
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
3644
|
-
return s &&
|
|
4207
|
+
return s && Ne(e, t, s), s;
|
|
3645
4208
|
};
|
|
3646
|
-
const
|
|
4209
|
+
const q1 = class q1 extends y {
|
|
3647
4210
|
constructor() {
|
|
3648
|
-
super(...arguments), this.
|
|
4211
|
+
super(...arguments), this.for = "", this.label = "", this.description = "", this.flag = "";
|
|
3649
4212
|
}
|
|
3650
4213
|
render() {
|
|
3651
4214
|
return a`
|
|
@@ -3662,22 +4225,22 @@ const S1 = class S1 extends u {
|
|
|
3662
4225
|
`;
|
|
3663
4226
|
}
|
|
3664
4227
|
};
|
|
3665
|
-
|
|
3666
|
-
let
|
|
3667
|
-
|
|
4228
|
+
q1.styles = Fe;
|
|
4229
|
+
let d1 = q1;
|
|
4230
|
+
V1([
|
|
3668
4231
|
r({ type: String })
|
|
3669
|
-
],
|
|
3670
|
-
|
|
4232
|
+
], d1.prototype, "for");
|
|
4233
|
+
V1([
|
|
3671
4234
|
r({ type: String })
|
|
3672
|
-
],
|
|
3673
|
-
|
|
4235
|
+
], d1.prototype, "label");
|
|
4236
|
+
V1([
|
|
3674
4237
|
r({ type: String })
|
|
3675
|
-
],
|
|
3676
|
-
|
|
4238
|
+
], d1.prototype, "description");
|
|
4239
|
+
V1([
|
|
3677
4240
|
r({ type: String })
|
|
3678
|
-
],
|
|
3679
|
-
customElements.get("nys-label") || customElements.define("nys-label",
|
|
3680
|
-
const
|
|
4241
|
+
], d1.prototype, "flag");
|
|
4242
|
+
customElements.get("nys-label") || customElements.define("nys-label", d1);
|
|
4243
|
+
const Y1 = u`
|
|
3681
4244
|
:host {
|
|
3682
4245
|
/* Global Radiobutton Styles */
|
|
3683
4246
|
--_nys-radiobutton-size: var(--nys-size-400, 32px);
|
|
@@ -3903,6 +4466,7 @@ const Z1 = C`
|
|
|
3903
4466
|
outline-offset: var(--_nys-radiobutton-outline-offset);
|
|
3904
4467
|
outline: none;
|
|
3905
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;
|
|
3906
4470
|
}
|
|
3907
4471
|
|
|
3908
4472
|
/* Pointer cursor for unchecked radio button */
|
|
@@ -3912,51 +4476,65 @@ const Z1 = C`
|
|
|
3912
4476
|
}
|
|
3913
4477
|
|
|
3914
4478
|
/* Checked */
|
|
3915
|
-
|
|
4479
|
+
input:not(:disabled):checked + .nys-radiobutton .nys-radiobutton__radio {
|
|
3916
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>');
|
|
3917
4481
|
background-color: var(--_nys-radiobutton-checked-color-bg);
|
|
3918
4482
|
}
|
|
3919
4483
|
:host([tile])
|
|
3920
|
-
.nys-radiobutton:has(
|
|
4484
|
+
.nys-radiobutton:has(input:not(:disabled):checked)
|
|
4485
|
+
+ .nys-radiobutton
|
|
4486
|
+
.nys-radiobutton__radio {
|
|
3921
4487
|
border-color: var(--_nys-radiobutton-checked-tile-border-color);
|
|
3922
4488
|
background-color: var(--_nys-radiobutton-checked-tile-bg-color);
|
|
3923
4489
|
}
|
|
3924
4490
|
:host([tile])
|
|
3925
|
-
.nys-radiobutton:has(
|
|
4491
|
+
.nys-radiobutton:has(input:not(:disabled):checked:hover)
|
|
4492
|
+
+ .nys-radiobutton
|
|
4493
|
+
.nys-radiobutton__radio {
|
|
3926
4494
|
cursor: default;
|
|
3927
4495
|
}
|
|
3928
4496
|
|
|
3929
4497
|
/* Checked + Disabled */
|
|
3930
|
-
|
|
4498
|
+
input:disabled:checked + .nys-radiobutton .nys-radiobutton__radio {
|
|
3931
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>');
|
|
3932
4500
|
border-color: var(--_nys-radiobutton-disabled-checked-color-border);
|
|
3933
4501
|
background-color: var(--_nys-radiobutton-disabled-checked-color-bg);
|
|
3934
4502
|
}
|
|
3935
|
-
:host([tile])
|
|
4503
|
+
:host([tile])
|
|
4504
|
+
.nys-radiobutton:has(input:disabled:checked)
|
|
4505
|
+
+ .nys-radiobutton
|
|
4506
|
+
.nys-radiobutton__radio {
|
|
3936
4507
|
border-color: var(--_nys-radiobutton-disabled-tile-border-color);
|
|
3937
4508
|
background-color: var(--_nys-radiobutton-disabled-tile-bg-color);
|
|
3938
4509
|
}
|
|
3939
4510
|
|
|
3940
4511
|
/* Disabled */
|
|
3941
|
-
.nys-radiobutton__radio
|
|
4512
|
+
input:disabled + .nys-radiobutton .nys-radiobutton__radio {
|
|
3942
4513
|
background-color: var(--_nys-radiobutton-disabled-color-bg);
|
|
3943
4514
|
border-color: var(--_nys-radiobutton-disabled-color-border);
|
|
3944
4515
|
cursor: not-allowed;
|
|
3945
4516
|
}
|
|
3946
|
-
:host([tile])
|
|
4517
|
+
:host([tile])
|
|
4518
|
+
.nys-radiobutton:has(input:disabled)
|
|
4519
|
+
+ .nys-radiobutton
|
|
4520
|
+
.nys-radiobutton__radio {
|
|
3947
4521
|
background-color: var(--_nys-radiobutton-disabled-color-bg);
|
|
3948
4522
|
border-color: var(--_nys-radiobutton-disabled-color-border);
|
|
3949
4523
|
cursor: not-allowed;
|
|
3950
4524
|
}
|
|
3951
4525
|
|
|
3952
4526
|
/* Hover - only allow hover on unchecked */
|
|
3953
|
-
|
|
4527
|
+
input:hover:not(:disabled):not(:checked)
|
|
4528
|
+
+ .nys-radiobutton
|
|
4529
|
+
.nys-radiobutton__radio {
|
|
3954
4530
|
border-color: var(--_nys-radiobutton-hover-color-border);
|
|
3955
4531
|
background-color: var(--_nys-radiobutton-hover-color-bg);
|
|
3956
4532
|
}
|
|
3957
4533
|
:host([tile])
|
|
3958
4534
|
.nys-radiobutton:has(
|
|
3959
|
-
|
|
4535
|
+
input:hover:not(:disabled):not(:checked)
|
|
4536
|
+
+ .nys-radiobutton
|
|
4537
|
+
.nys-radiobutton__radio
|
|
3960
4538
|
) {
|
|
3961
4539
|
border-color: var(--_nys-radiobutton-hover-tile-border-color);
|
|
3962
4540
|
background-color: var(--_nys-radiobutton-hover-tile-bg-color);
|
|
@@ -3965,13 +4543,17 @@ const Z1 = C`
|
|
|
3965
4543
|
}
|
|
3966
4544
|
|
|
3967
4545
|
/* Pressed - only allow pressed on unchecked */
|
|
3968
|
-
|
|
4546
|
+
input:active:not(:disabled):not(:checked)
|
|
4547
|
+
+ .nys-radiobutton
|
|
4548
|
+
.nys-radiobutton__radio {
|
|
3969
4549
|
border-color: var(--_nys-radiobutton-pressed-color-border);
|
|
3970
4550
|
background-color: var(--_nys-radiobutton-pressed-color-bg);
|
|
3971
4551
|
}
|
|
3972
4552
|
:host([tile])
|
|
3973
4553
|
.nys-radiobutton:has(
|
|
3974
|
-
|
|
4554
|
+
input:active:not(:disabled):not(:checked)
|
|
4555
|
+
+ .nys-radiobutton
|
|
4556
|
+
.nys-radiobutton__radio
|
|
3975
4557
|
) {
|
|
3976
4558
|
border-color: var(--_nys-radiobutton-pressed-tile-border-color);
|
|
3977
4559
|
background-color: var(--_nys-radiobutton-pressed-tile-bg-color);
|
|
@@ -3980,16 +4562,11 @@ const Z1 = C`
|
|
|
3980
4562
|
}
|
|
3981
4563
|
|
|
3982
4564
|
/* Focused */
|
|
3983
|
-
:host
|
|
4565
|
+
:host:focus-visible,
|
|
4566
|
+
:host(.active-focus) {
|
|
3984
4567
|
outline: solid var(--_nys-radiobutton-width-focus)
|
|
3985
4568
|
var(--_nys-radiobutton-color-focus);
|
|
3986
4569
|
}
|
|
3987
|
-
:host([tile]) .nys-radiobutton:has(*:focus-visible) {
|
|
3988
|
-
outline: solid var(--_nys-radiobutton-tile-border-width)
|
|
3989
|
-
var(--_nys-radiobutton-color-focus) !important;
|
|
3990
|
-
border-color: var(--_nys-radiobutton-color-focus) !important;
|
|
3991
|
-
}
|
|
3992
|
-
|
|
3993
4570
|
/* Radiobutton Label Holder */
|
|
3994
4571
|
.nys-radiobutton__text {
|
|
3995
4572
|
line-height: var(--_nys-radiobutton-line-height);
|
|
@@ -4020,45 +4597,57 @@ const Z1 = C`
|
|
|
4020
4597
|
}
|
|
4021
4598
|
|
|
4022
4599
|
/* Disabled label */
|
|
4023
|
-
.nys-
|
|
4024
|
-
|
|
4025
|
-
.nys-radiobutton__label,
|
|
4026
|
-
.nys-radiobutton__radio:disabled
|
|
4027
|
-
+ .nys-radiobutton__text
|
|
4028
|
-
.nys-radiobutton__description {
|
|
4600
|
+
input:disabled + span + .nys-radiobutton__text .nys-radiobutton__label,
|
|
4601
|
+
input:disabled + span + .nys-radiobutton__text .nys-radiobutton__description {
|
|
4029
4602
|
color: var(--_nys-radiobutton-disabled-color-text);
|
|
4030
4603
|
cursor: not-allowed;
|
|
4031
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
|
+
}
|
|
4032
4621
|
`;
|
|
4033
|
-
var
|
|
4034
|
-
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--)
|
|
4035
4624
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4036
|
-
return o && s &&
|
|
4625
|
+
return o && s && je(e, t, s), s;
|
|
4037
4626
|
};
|
|
4038
|
-
let
|
|
4039
|
-
var
|
|
4040
|
-
const E = (
|
|
4627
|
+
let Ye = 0;
|
|
4628
|
+
var W;
|
|
4629
|
+
const E = (W = class extends y {
|
|
4041
4630
|
// allows use of elementInternals' API
|
|
4042
4631
|
constructor() {
|
|
4043
|
-
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();
|
|
4044
4633
|
}
|
|
4045
4634
|
get size() {
|
|
4046
4635
|
return this._size;
|
|
4047
4636
|
}
|
|
4048
4637
|
set size(e) {
|
|
4049
|
-
this._size =
|
|
4638
|
+
this._size = W.VALID_SIZES.includes(
|
|
4050
4639
|
e
|
|
4051
4640
|
) ? e : "md";
|
|
4052
4641
|
}
|
|
4053
4642
|
// Generate a unique ID if one is not provided
|
|
4054
4643
|
connectedCallback() {
|
|
4055
|
-
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);
|
|
4056
4645
|
}
|
|
4057
4646
|
disconnectedCallback() {
|
|
4058
4647
|
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
4059
4648
|
}
|
|
4060
|
-
firstUpdated() {
|
|
4061
|
-
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();
|
|
4062
4651
|
}
|
|
4063
4652
|
updated(e) {
|
|
4064
4653
|
(e.has("required") || e.has("selectedValue")) && this._manageRequire(), e.has("size") && this._updateRadioButtonsSize(), e.has("tile") && this._updateRadioButtonsTile(), e.has("showError") && this._updateRadioButtonsShowError();
|
|
@@ -4073,8 +4662,9 @@ const E = (Y = class extends u {
|
|
|
4073
4662
|
_setValue() {
|
|
4074
4663
|
this._internals.setFormValue(this.selectedValue);
|
|
4075
4664
|
}
|
|
4076
|
-
// Updates the "require" attribute of the first radiobutton underneath a radiogroup
|
|
4077
|
-
|
|
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() {
|
|
4078
4668
|
this.querySelectorAll("nys-radiobutton").forEach((t, o) => {
|
|
4079
4669
|
this.required && o === 0 && t.setAttribute("required", "required");
|
|
4080
4670
|
});
|
|
@@ -4087,12 +4677,49 @@ const E = (Y = class extends u {
|
|
|
4087
4677
|
o
|
|
4088
4678
|
) : (this.showError = !1, this._internals.setValidity({}, "", o)));
|
|
4089
4679
|
}
|
|
4680
|
+
checkValidity() {
|
|
4681
|
+
const e = Array.from(this.querySelectorAll("nys-radiobutton"));
|
|
4682
|
+
return !this.required || e.some((o) => o.checked);
|
|
4683
|
+
}
|
|
4090
4684
|
// Need to account for if radiogroup already have a radiobutton checked at initialization
|
|
4091
4685
|
_initializeCheckedRadioValue() {
|
|
4092
4686
|
const e = this.querySelector("nys-radiobutton[checked]");
|
|
4093
4687
|
e && (this.selectedValue = e.getAttribute("value"), this._internals.setFormValue(this.selectedValue));
|
|
4094
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
|
+
}
|
|
4095
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
|
+
}
|
|
4096
4723
|
// Updates the size of each radiobutton underneath a radiogroup to ensure size standardization
|
|
4097
4724
|
_updateRadioButtonsSize() {
|
|
4098
4725
|
this.querySelectorAll("nys-radiobutton").forEach((t) => {
|
|
@@ -4109,36 +4736,39 @@ const E = (Y = class extends u {
|
|
|
4109
4736
|
this.showError ? t.setAttribute("showError", "") : t.removeAttribute("showError");
|
|
4110
4737
|
});
|
|
4111
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 ********************/
|
|
4112
4751
|
// Keeps radiogroup informed of the name and value of its current selected radiobutton at each change
|
|
4113
4752
|
_handleRadioButtonChange(e) {
|
|
4114
4753
|
const t = e, { name: o, value: s } = t.detail;
|
|
4115
|
-
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();
|
|
4116
4755
|
}
|
|
4117
4756
|
async _handleInvalid(e) {
|
|
4118
4757
|
if (e.preventDefault(), this._internals.validity.valueMissing) {
|
|
4119
4758
|
this.showError = !0, this._manageRequire();
|
|
4120
|
-
const t = this.querySelector("nys-radiobutton")
|
|
4121
|
-
if (
|
|
4122
|
-
const
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
return c;
|
|
4127
|
-
} else
|
|
4128
|
-
return typeof c.checkValidity == "function" && !c.checkValidity();
|
|
4129
|
-
}) === 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"));
|
|
4130
4765
|
}
|
|
4131
4766
|
}
|
|
4132
4767
|
}
|
|
4133
4768
|
render() {
|
|
4134
|
-
return a
|
|
4135
|
-
role="radiogroup"
|
|
4136
|
-
class="nys-radiogroup"
|
|
4137
|
-
aria-required="${this.required ? "true" : "false"}"
|
|
4138
|
-
aria-invalid="${this.showError ? "true" : "false"}"
|
|
4139
|
-
>
|
|
4769
|
+
return a`<div class="nys-radiogroup">
|
|
4140
4770
|
<nys-label
|
|
4141
|
-
|
|
4771
|
+
for=${this.id}
|
|
4142
4772
|
label=${this.label}
|
|
4143
4773
|
description=${this.description}
|
|
4144
4774
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -4146,7 +4776,12 @@ const E = (Y = class extends u {
|
|
|
4146
4776
|
<slot name="description" slot="description">${this.description}</slot>
|
|
4147
4777
|
</nys-label>
|
|
4148
4778
|
<div class="nys-radiogroup__content">
|
|
4149
|
-
<
|
|
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>
|
|
4150
4785
|
</div>
|
|
4151
4786
|
<nys-errormessage
|
|
4152
4787
|
?showError=${this.showError}
|
|
@@ -4155,50 +4790,53 @@ const E = (Y = class extends u {
|
|
|
4155
4790
|
></nys-errormessage>
|
|
4156
4791
|
</div>`;
|
|
4157
4792
|
}
|
|
4158
|
-
},
|
|
4159
|
-
|
|
4793
|
+
}, W.VALID_SIZES = ["sm", "md"], W.styles = Y1, W.formAssociated = !0, W);
|
|
4794
|
+
Z([
|
|
4160
4795
|
r({ type: String })
|
|
4161
4796
|
], E.prototype, "id", 2);
|
|
4162
|
-
|
|
4797
|
+
Z([
|
|
4163
4798
|
r({ type: String, reflect: !0 })
|
|
4164
4799
|
], E.prototype, "name", 2);
|
|
4165
|
-
|
|
4800
|
+
Z([
|
|
4166
4801
|
r({ type: Boolean, reflect: !0 })
|
|
4167
4802
|
], E.prototype, "required", 2);
|
|
4168
|
-
|
|
4803
|
+
Z([
|
|
4169
4804
|
r({ type: Boolean, reflect: !0 })
|
|
4170
4805
|
], E.prototype, "optional", 2);
|
|
4171
|
-
|
|
4806
|
+
Z([
|
|
4172
4807
|
r({ type: Boolean, reflect: !0 })
|
|
4173
4808
|
], E.prototype, "showError", 2);
|
|
4174
|
-
|
|
4809
|
+
Z([
|
|
4175
4810
|
r({ type: String })
|
|
4176
4811
|
], E.prototype, "errorMessage", 2);
|
|
4177
|
-
|
|
4812
|
+
Z([
|
|
4178
4813
|
r({ type: String })
|
|
4179
4814
|
], E.prototype, "label", 2);
|
|
4180
|
-
|
|
4815
|
+
Z([
|
|
4181
4816
|
r({ type: String })
|
|
4182
4817
|
], E.prototype, "description", 2);
|
|
4183
|
-
|
|
4184
|
-
|
|
4818
|
+
Z([
|
|
4819
|
+
r({ type: Boolean, reflect: !0 })
|
|
4820
|
+
], E.prototype, "tile", 2);
|
|
4821
|
+
Z([
|
|
4822
|
+
D()
|
|
4185
4823
|
], E.prototype, "selectedValue", 2);
|
|
4186
|
-
|
|
4824
|
+
Z([
|
|
4825
|
+
D()
|
|
4826
|
+
], E.prototype, "_slottedDescriptionText", 2);
|
|
4827
|
+
Z([
|
|
4187
4828
|
r({ reflect: !0 })
|
|
4188
4829
|
], E.prototype, "size", 1);
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", $e);
|
|
4194
|
-
var Ve = Object.defineProperty, De = Object.getOwnPropertyDescriptor, F = (l, e, t, o) => {
|
|
4195
|
-
for (var s = o > 1 ? void 0 : o ? De(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
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--)
|
|
4196
4834
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4197
|
-
return o && s &&
|
|
4835
|
+
return o && s && Ke(e, t, s), s;
|
|
4198
4836
|
};
|
|
4199
|
-
let
|
|
4200
|
-
var
|
|
4201
|
-
const
|
|
4837
|
+
let Qe = 0;
|
|
4838
|
+
var p;
|
|
4839
|
+
const O = (p = class extends y {
|
|
4202
4840
|
constructor() {
|
|
4203
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;
|
|
4204
4842
|
}
|
|
@@ -4206,7 +4844,7 @@ const U = (y = class extends u {
|
|
|
4206
4844
|
return this._size;
|
|
4207
4845
|
}
|
|
4208
4846
|
set size(e) {
|
|
4209
|
-
this._size =
|
|
4847
|
+
this._size = p.VALID_SIZES.includes(
|
|
4210
4848
|
e
|
|
4211
4849
|
) ? e : "md";
|
|
4212
4850
|
}
|
|
@@ -4221,12 +4859,15 @@ const U = (y = class extends u {
|
|
|
4221
4859
|
/********************** Lifecycle updates **********************/
|
|
4222
4860
|
// Generate a unique ID if one is not provided
|
|
4223
4861
|
connectedCallback() {
|
|
4224
|
-
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);
|
|
4225
4866
|
}
|
|
4226
4867
|
updated(e) {
|
|
4227
|
-
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);
|
|
4228
4869
|
}
|
|
4229
|
-
|
|
4870
|
+
/********************** Functions **********************/
|
|
4230
4871
|
// This helper function is called to perform the element's native validation.
|
|
4231
4872
|
checkValidity() {
|
|
4232
4873
|
var t;
|
|
@@ -4251,7 +4892,7 @@ const U = (y = class extends u {
|
|
|
4251
4892
|
}
|
|
4252
4893
|
// Handle radiobutton change event & unselection of other options in group
|
|
4253
4894
|
_handleChange() {
|
|
4254
|
-
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());
|
|
4255
4896
|
}
|
|
4256
4897
|
// Handle focus event
|
|
4257
4898
|
_handleFocus() {
|
|
@@ -4259,77 +4900,81 @@ const U = (y = class extends u {
|
|
|
4259
4900
|
}
|
|
4260
4901
|
// Handle blur event
|
|
4261
4902
|
_handleBlur() {
|
|
4262
|
-
this.dispatchEvent(new Event("nys-blur"));
|
|
4903
|
+
this.classList.remove("active-focus"), this.dispatchEvent(new Event("nys-blur"));
|
|
4263
4904
|
}
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
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());
|
|
4267
4912
|
}
|
|
4268
4913
|
render() {
|
|
4269
4914
|
return a`
|
|
4270
|
-
<
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
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
|
+
|
|
4288
4935
|
${this.label && a` <div class="nys-radiobutton__text">
|
|
4289
|
-
<
|
|
4290
|
-
|
|
4291
|
-
>
|
|
4292
|
-
<label for=${this.id} class="nys-radiobutton__description">
|
|
4936
|
+
<div class="nys-radiobutton__label">${this.label}</div>
|
|
4937
|
+
<div class="nys-radiobutton__description">
|
|
4293
4938
|
<slot name="description">${this.description}</slot>
|
|
4294
|
-
</
|
|
4939
|
+
</div>
|
|
4295
4940
|
</div>`}
|
|
4296
4941
|
</label>
|
|
4297
4942
|
`;
|
|
4298
4943
|
}
|
|
4299
|
-
},
|
|
4300
|
-
|
|
4944
|
+
}, p.VALID_SIZES = ["sm", "md"], p.buttonGroup = {}, p.styles = Y1, p);
|
|
4945
|
+
N([
|
|
4301
4946
|
r({ type: Boolean, reflect: !0 })
|
|
4302
|
-
],
|
|
4303
|
-
|
|
4947
|
+
], O.prototype, "checked", 2);
|
|
4948
|
+
N([
|
|
4304
4949
|
r({ type: Boolean, reflect: !0 })
|
|
4305
|
-
],
|
|
4306
|
-
|
|
4950
|
+
], O.prototype, "disabled", 2);
|
|
4951
|
+
N([
|
|
4307
4952
|
r({ type: Boolean, reflect: !0 })
|
|
4308
|
-
],
|
|
4309
|
-
|
|
4953
|
+
], O.prototype, "required", 2);
|
|
4954
|
+
N([
|
|
4310
4955
|
r({ type: String })
|
|
4311
|
-
],
|
|
4312
|
-
|
|
4956
|
+
], O.prototype, "label", 2);
|
|
4957
|
+
N([
|
|
4313
4958
|
r({ type: String })
|
|
4314
|
-
],
|
|
4315
|
-
|
|
4959
|
+
], O.prototype, "description", 2);
|
|
4960
|
+
N([
|
|
4316
4961
|
r({ type: String })
|
|
4317
|
-
],
|
|
4318
|
-
|
|
4962
|
+
], O.prototype, "id", 2);
|
|
4963
|
+
N([
|
|
4319
4964
|
r({ type: String, reflect: !0 })
|
|
4320
|
-
],
|
|
4321
|
-
|
|
4965
|
+
], O.prototype, "name", 2);
|
|
4966
|
+
N([
|
|
4322
4967
|
r({ type: String })
|
|
4323
|
-
],
|
|
4324
|
-
|
|
4968
|
+
], O.prototype, "value", 2);
|
|
4969
|
+
N([
|
|
4325
4970
|
r({ reflect: !0 })
|
|
4326
|
-
],
|
|
4327
|
-
|
|
4971
|
+
], O.prototype, "size", 1);
|
|
4972
|
+
N([
|
|
4328
4973
|
r({ type: Boolean, reflect: !0 })
|
|
4329
|
-
],
|
|
4330
|
-
let
|
|
4331
|
-
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton",
|
|
4332
|
-
const
|
|
4974
|
+
], O.prototype, "tile", 2);
|
|
4975
|
+
let Je = O;
|
|
4976
|
+
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", Je);
|
|
4977
|
+
const et = u`
|
|
4333
4978
|
:host {
|
|
4334
4979
|
/* Global Select Styles */
|
|
4335
4980
|
--_nys-select-width: 100%;
|
|
@@ -4399,8 +5044,7 @@ const Ee = C`
|
|
|
4399
5044
|
font-size: var(--_nys-select-font-size);
|
|
4400
5045
|
padding: var(--_nys-select-padding);
|
|
4401
5046
|
width: var(--_nys-select-width);
|
|
4402
|
-
|
|
4403
|
-
max-width: var(--_nys-select-width);
|
|
5047
|
+
max-width: 100%;
|
|
4404
5048
|
text-indent: 1px;
|
|
4405
5049
|
text-overflow: "";
|
|
4406
5050
|
background: var(--_nys-select-bg-color);
|
|
@@ -4414,6 +5058,7 @@ const Ee = C`
|
|
|
4414
5058
|
position: relative;
|
|
4415
5059
|
display: inline-block;
|
|
4416
5060
|
width: var(--_nys-select-width);
|
|
5061
|
+
max-width: 100%;
|
|
4417
5062
|
}
|
|
4418
5063
|
|
|
4419
5064
|
.nys-select__icon {
|
|
@@ -4477,12 +5122,12 @@ const Ee = C`
|
|
|
4477
5122
|
var(--_nys-select-error-color);
|
|
4478
5123
|
}
|
|
4479
5124
|
`;
|
|
4480
|
-
var
|
|
5125
|
+
var tt = Object.defineProperty, w1 = (l, e, t, o) => {
|
|
4481
5126
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
4482
5127
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
4483
|
-
return s &&
|
|
5128
|
+
return s && tt(e, t, s), s;
|
|
4484
5129
|
};
|
|
4485
|
-
class
|
|
5130
|
+
class y1 extends y {
|
|
4486
5131
|
constructor() {
|
|
4487
5132
|
super(...arguments), this.disabled = !1, this.selected = !1, this.value = "", this.label = "", this.hidden = !1;
|
|
4488
5133
|
}
|
|
@@ -4509,30 +5154,30 @@ class a1 extends u {
|
|
|
4509
5154
|
`;
|
|
4510
5155
|
}
|
|
4511
5156
|
}
|
|
4512
|
-
|
|
5157
|
+
w1([
|
|
4513
5158
|
r({ type: Boolean, reflect: !0 })
|
|
4514
|
-
],
|
|
4515
|
-
|
|
5159
|
+
], y1.prototype, "disabled");
|
|
5160
|
+
w1([
|
|
4516
5161
|
r({ type: Boolean, reflect: !0 })
|
|
4517
|
-
],
|
|
4518
|
-
|
|
5162
|
+
], y1.prototype, "selected");
|
|
5163
|
+
w1([
|
|
4519
5164
|
r({ type: String })
|
|
4520
|
-
],
|
|
4521
|
-
|
|
5165
|
+
], y1.prototype, "value");
|
|
5166
|
+
w1([
|
|
4522
5167
|
r({ type: String })
|
|
4523
|
-
],
|
|
4524
|
-
|
|
5168
|
+
], y1.prototype, "label");
|
|
5169
|
+
w1([
|
|
4525
5170
|
r({ type: Boolean, reflect: !0 })
|
|
4526
|
-
],
|
|
4527
|
-
customElements.define("nys-option",
|
|
4528
|
-
var
|
|
4529
|
-
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--)
|
|
4530
5175
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4531
|
-
return o && s &&
|
|
5176
|
+
return o && s && st(e, t, s), s;
|
|
4532
5177
|
};
|
|
4533
|
-
let
|
|
4534
|
-
var
|
|
4535
|
-
const
|
|
5178
|
+
let rt = 0;
|
|
5179
|
+
var K;
|
|
5180
|
+
const H = (K = class extends y {
|
|
4536
5181
|
// allows use of elementInternals' API
|
|
4537
5182
|
constructor() {
|
|
4538
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();
|
|
@@ -4541,13 +5186,13 @@ const z = (W = class extends u {
|
|
|
4541
5186
|
return this._width;
|
|
4542
5187
|
}
|
|
4543
5188
|
set width(e) {
|
|
4544
|
-
this._width =
|
|
5189
|
+
this._width = K.VALID_WIDTHS.includes(
|
|
4545
5190
|
e
|
|
4546
5191
|
) ? e : "full";
|
|
4547
5192
|
}
|
|
4548
5193
|
// Generate a unique ID if one is not provided
|
|
4549
5194
|
connectedCallback() {
|
|
4550
|
-
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);
|
|
4551
5196
|
}
|
|
4552
5197
|
disconnectedCallback() {
|
|
4553
5198
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4567,7 +5212,7 @@ const z = (W = class extends u {
|
|
|
4567
5212
|
if (!e || !t) return;
|
|
4568
5213
|
t.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), e.assignedElements({ flatten: !0 }).forEach((i) => {
|
|
4569
5214
|
var c;
|
|
4570
|
-
if (i instanceof
|
|
5215
|
+
if (i instanceof y1) {
|
|
4571
5216
|
const d = document.createElement("option");
|
|
4572
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);
|
|
4573
5218
|
}
|
|
@@ -4650,7 +5295,7 @@ const z = (W = class extends u {
|
|
|
4650
5295
|
return a`
|
|
4651
5296
|
<div class="nys-select">
|
|
4652
5297
|
<nys-label
|
|
4653
|
-
|
|
5298
|
+
for=${this.id}
|
|
4654
5299
|
label=${this.label}
|
|
4655
5300
|
description=${this.description}
|
|
4656
5301
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -4690,46 +5335,46 @@ const z = (W = class extends u {
|
|
|
4690
5335
|
</div>
|
|
4691
5336
|
`;
|
|
4692
5337
|
}
|
|
4693
|
-
},
|
|
4694
|
-
|
|
5338
|
+
}, K.VALID_WIDTHS = ["sm", "md", "lg", "full"], K.styles = et, K.formAssociated = !0, K);
|
|
5339
|
+
B([
|
|
4695
5340
|
r({ type: String })
|
|
4696
|
-
],
|
|
4697
|
-
|
|
5341
|
+
], H.prototype, "id", 2);
|
|
5342
|
+
B([
|
|
4698
5343
|
r({ type: String, reflect: !0 })
|
|
4699
|
-
],
|
|
4700
|
-
|
|
5344
|
+
], H.prototype, "name", 2);
|
|
5345
|
+
B([
|
|
4701
5346
|
r({ type: String })
|
|
4702
|
-
],
|
|
4703
|
-
|
|
5347
|
+
], H.prototype, "label", 2);
|
|
5348
|
+
B([
|
|
4704
5349
|
r({ type: String })
|
|
4705
|
-
],
|
|
4706
|
-
|
|
5350
|
+
], H.prototype, "description", 2);
|
|
5351
|
+
B([
|
|
4707
5352
|
r({ type: String })
|
|
4708
|
-
],
|
|
4709
|
-
|
|
5353
|
+
], H.prototype, "value", 2);
|
|
5354
|
+
B([
|
|
4710
5355
|
r({ type: Boolean, reflect: !0 })
|
|
4711
|
-
],
|
|
4712
|
-
|
|
5356
|
+
], H.prototype, "disabled", 2);
|
|
5357
|
+
B([
|
|
4713
5358
|
r({ type: Boolean, reflect: !0 })
|
|
4714
|
-
],
|
|
4715
|
-
|
|
5359
|
+
], H.prototype, "required", 2);
|
|
5360
|
+
B([
|
|
4716
5361
|
r({ type: Boolean, reflect: !0 })
|
|
4717
|
-
],
|
|
4718
|
-
|
|
5362
|
+
], H.prototype, "optional", 2);
|
|
5363
|
+
B([
|
|
4719
5364
|
r({ type: String })
|
|
4720
|
-
],
|
|
4721
|
-
|
|
5365
|
+
], H.prototype, "form", 2);
|
|
5366
|
+
B([
|
|
4722
5367
|
r({ type: Boolean, reflect: !0 })
|
|
4723
|
-
],
|
|
4724
|
-
|
|
5368
|
+
], H.prototype, "showError", 2);
|
|
5369
|
+
B([
|
|
4725
5370
|
r({ type: String })
|
|
4726
|
-
],
|
|
4727
|
-
|
|
5371
|
+
], H.prototype, "errorMessage", 2);
|
|
5372
|
+
B([
|
|
4728
5373
|
r({ reflect: !0 })
|
|
4729
|
-
],
|
|
4730
|
-
let
|
|
4731
|
-
customElements.get("nys-select") || customElements.define("nys-select",
|
|
4732
|
-
const
|
|
5374
|
+
], H.prototype, "width", 1);
|
|
5375
|
+
let nt = H;
|
|
5376
|
+
customElements.get("nys-select") || customElements.define("nys-select", nt);
|
|
5377
|
+
const it = u`
|
|
4733
5378
|
:host {
|
|
4734
5379
|
/* Global Skipnav Styles */
|
|
4735
5380
|
--_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
|
|
@@ -4802,12 +5447,12 @@ const qe = C`
|
|
|
4802
5447
|
outline: none;
|
|
4803
5448
|
}
|
|
4804
5449
|
`;
|
|
4805
|
-
var
|
|
5450
|
+
var at = Object.defineProperty, W1 = (l, e, t, o) => {
|
|
4806
5451
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
4807
5452
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
4808
|
-
return s &&
|
|
5453
|
+
return s && at(e, t, s), s;
|
|
4809
5454
|
};
|
|
4810
|
-
const
|
|
5455
|
+
const U1 = class U1 extends y {
|
|
4811
5456
|
constructor() {
|
|
4812
5457
|
super(), this.id = "", this.href = "";
|
|
4813
5458
|
}
|
|
@@ -4848,16 +5493,16 @@ const $1 = class $1 extends u {
|
|
|
4848
5493
|
`;
|
|
4849
5494
|
}
|
|
4850
5495
|
};
|
|
4851
|
-
|
|
4852
|
-
let
|
|
4853
|
-
|
|
5496
|
+
U1.styles = it;
|
|
5497
|
+
let m1 = U1;
|
|
5498
|
+
W1([
|
|
4854
5499
|
r({ type: String })
|
|
4855
|
-
],
|
|
4856
|
-
|
|
5500
|
+
], m1.prototype, "id");
|
|
5501
|
+
W1([
|
|
4857
5502
|
r({ type: String })
|
|
4858
|
-
],
|
|
4859
|
-
customElements.get("nys-skipnav") || customElements.define("nys-skipnav",
|
|
4860
|
-
const
|
|
5503
|
+
], m1.prototype, "href");
|
|
5504
|
+
customElements.get("nys-skipnav") || customElements.define("nys-skipnav", m1);
|
|
5505
|
+
const lt = u`
|
|
4861
5506
|
:host {
|
|
4862
5507
|
/* Anything that can be overridden should be defined here */
|
|
4863
5508
|
|
|
@@ -4953,6 +5598,7 @@ const Oe = C`
|
|
|
4953
5598
|
.nys-textarea__textarea {
|
|
4954
5599
|
color: var(--_nys-textarea-color);
|
|
4955
5600
|
font-size: var(--_nys-textarea-size-ui-md);
|
|
5601
|
+
font-family: var(--_nys-textarea-family-ui);
|
|
4956
5602
|
border-radius: var(--_nys-textarea-radius);
|
|
4957
5603
|
border: solid var(--_nys-textarea-color-border)
|
|
4958
5604
|
var(--_nys-textarea-width-border);
|
|
@@ -4999,14 +5645,14 @@ const Oe = C`
|
|
|
4999
5645
|
cursor: not-allowed;
|
|
5000
5646
|
}
|
|
5001
5647
|
`;
|
|
5002
|
-
var
|
|
5003
|
-
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--)
|
|
5004
5650
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
5005
|
-
return o && s &&
|
|
5651
|
+
return o && s && ct(e, t, s), s;
|
|
5006
5652
|
};
|
|
5007
|
-
let
|
|
5008
|
-
var
|
|
5009
|
-
const
|
|
5653
|
+
let ht = 0;
|
|
5654
|
+
var q;
|
|
5655
|
+
const b = (q = class extends y {
|
|
5010
5656
|
// allows use of elementInternals' API
|
|
5011
5657
|
constructor() {
|
|
5012
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();
|
|
@@ -5015,16 +5661,16 @@ const _ = (Z = class extends u {
|
|
|
5015
5661
|
return this._resize;
|
|
5016
5662
|
}
|
|
5017
5663
|
set resize(e) {
|
|
5018
|
-
this._resize =
|
|
5664
|
+
this._resize = q.VALID_RESIZE.includes(
|
|
5019
5665
|
e
|
|
5020
5666
|
) ? e : "vertical";
|
|
5021
5667
|
}
|
|
5022
5668
|
async updated(e) {
|
|
5023
|
-
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);
|
|
5024
5670
|
}
|
|
5025
5671
|
// Generate a unique ID if one is not provided
|
|
5026
5672
|
connectedCallback() {
|
|
5027
|
-
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);
|
|
5028
5674
|
}
|
|
5029
5675
|
disconnectedCallback() {
|
|
5030
5676
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -5125,7 +5771,7 @@ const _ = (Z = class extends u {
|
|
|
5125
5771
|
return a`
|
|
5126
5772
|
<label class="nys-textarea">
|
|
5127
5773
|
<nys-label
|
|
5128
|
-
|
|
5774
|
+
for=${this.id}
|
|
5129
5775
|
label=${this.label}
|
|
5130
5776
|
description=${this.description}
|
|
5131
5777
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -5166,61 +5812,61 @@ ${this.value}</textarea
|
|
|
5166
5812
|
</label>
|
|
5167
5813
|
`;
|
|
5168
5814
|
}
|
|
5169
|
-
},
|
|
5170
|
-
|
|
5815
|
+
}, q.VALID_WIDTHS = ["sm", "md", "lg", "full"], q.VALID_RESIZE = ["vertical", "none"], q.styles = lt, q.formAssociated = !0, q);
|
|
5816
|
+
x([
|
|
5171
5817
|
r({ type: String })
|
|
5172
|
-
],
|
|
5173
|
-
|
|
5818
|
+
], b.prototype, "id", 2);
|
|
5819
|
+
x([
|
|
5174
5820
|
r({ type: String, reflect: !0 })
|
|
5175
|
-
],
|
|
5176
|
-
|
|
5821
|
+
], b.prototype, "name", 2);
|
|
5822
|
+
x([
|
|
5177
5823
|
r({ type: String })
|
|
5178
|
-
],
|
|
5179
|
-
|
|
5824
|
+
], b.prototype, "label", 2);
|
|
5825
|
+
x([
|
|
5180
5826
|
r({ type: String })
|
|
5181
|
-
],
|
|
5182
|
-
|
|
5827
|
+
], b.prototype, "description", 2);
|
|
5828
|
+
x([
|
|
5183
5829
|
r({ type: String })
|
|
5184
|
-
],
|
|
5185
|
-
|
|
5830
|
+
], b.prototype, "placeholder", 2);
|
|
5831
|
+
x([
|
|
5186
5832
|
r({ type: String })
|
|
5187
|
-
],
|
|
5188
|
-
|
|
5833
|
+
], b.prototype, "value", 2);
|
|
5834
|
+
x([
|
|
5189
5835
|
r({ type: Boolean, reflect: !0 })
|
|
5190
|
-
],
|
|
5191
|
-
|
|
5836
|
+
], b.prototype, "disabled", 2);
|
|
5837
|
+
x([
|
|
5192
5838
|
r({ type: Boolean, reflect: !0 })
|
|
5193
|
-
],
|
|
5194
|
-
|
|
5839
|
+
], b.prototype, "readonly", 2);
|
|
5840
|
+
x([
|
|
5195
5841
|
r({ type: Boolean, reflect: !0 })
|
|
5196
|
-
],
|
|
5197
|
-
|
|
5842
|
+
], b.prototype, "required", 2);
|
|
5843
|
+
x([
|
|
5198
5844
|
r({ type: Boolean, reflect: !0 })
|
|
5199
|
-
],
|
|
5200
|
-
|
|
5845
|
+
], b.prototype, "optional", 2);
|
|
5846
|
+
x([
|
|
5201
5847
|
r({ type: String })
|
|
5202
|
-
],
|
|
5203
|
-
|
|
5848
|
+
], b.prototype, "form", 2);
|
|
5849
|
+
x([
|
|
5204
5850
|
r({ type: Number })
|
|
5205
|
-
],
|
|
5206
|
-
|
|
5851
|
+
], b.prototype, "maxlength", 2);
|
|
5852
|
+
x([
|
|
5207
5853
|
r({ reflect: !0 })
|
|
5208
|
-
],
|
|
5209
|
-
|
|
5854
|
+
], b.prototype, "width", 2);
|
|
5855
|
+
x([
|
|
5210
5856
|
r({ type: Number })
|
|
5211
|
-
],
|
|
5212
|
-
|
|
5857
|
+
], b.prototype, "rows", 2);
|
|
5858
|
+
x([
|
|
5213
5859
|
r({ reflect: !0 })
|
|
5214
|
-
],
|
|
5215
|
-
|
|
5860
|
+
], b.prototype, "resize", 1);
|
|
5861
|
+
x([
|
|
5216
5862
|
r({ type: Boolean, reflect: !0 })
|
|
5217
|
-
],
|
|
5218
|
-
|
|
5863
|
+
], b.prototype, "showError", 2);
|
|
5864
|
+
x([
|
|
5219
5865
|
r({ type: String })
|
|
5220
|
-
],
|
|
5221
|
-
let
|
|
5222
|
-
customElements.get("nys-textarea") || customElements.define("nys-textarea",
|
|
5223
|
-
const
|
|
5866
|
+
], b.prototype, "errorMessage", 2);
|
|
5867
|
+
let yt = b;
|
|
5868
|
+
customElements.get("nys-textarea") || customElements.define("nys-textarea", yt);
|
|
5869
|
+
const ut = u`
|
|
5224
5870
|
:host {
|
|
5225
5871
|
/* Anything that can be overridden should be defined here */
|
|
5226
5872
|
|
|
@@ -5375,12 +6021,13 @@ const Ne = C`
|
|
|
5375
6021
|
border-left: none;
|
|
5376
6022
|
}
|
|
5377
6023
|
|
|
5378
|
-
/* This container exist to mainly style the type="password" eye icon */
|
|
5379
6024
|
.nys-textinput__container {
|
|
5380
6025
|
position: relative;
|
|
5381
6026
|
display: flex;
|
|
5382
6027
|
align-items: center;
|
|
5383
6028
|
width: 100%;
|
|
6029
|
+
background-color: var(--_nys-textinput-background-color);
|
|
6030
|
+
border-radius: var(--_nys-textinput-radius);
|
|
5384
6031
|
}
|
|
5385
6032
|
|
|
5386
6033
|
::slotted(nys-button) {
|
|
@@ -5450,14 +6097,14 @@ const Ne = C`
|
|
|
5450
6097
|
cursor: not-allowed;
|
|
5451
6098
|
}
|
|
5452
6099
|
`;
|
|
5453
|
-
var
|
|
5454
|
-
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--)
|
|
5455
6102
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
5456
|
-
return o && s &&
|
|
6103
|
+
return o && s && pt(e, t, s), s;
|
|
5457
6104
|
};
|
|
5458
|
-
let
|
|
5459
|
-
var
|
|
5460
|
-
const
|
|
6105
|
+
let ft = 0;
|
|
6106
|
+
var U;
|
|
6107
|
+
const g = (U = class extends y {
|
|
5461
6108
|
// allows use of elementInternals' API
|
|
5462
6109
|
constructor() {
|
|
5463
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 = {
|
|
@@ -5468,14 +6115,14 @@ const p = (I = class extends u {
|
|
|
5468
6115
|
return this._type;
|
|
5469
6116
|
}
|
|
5470
6117
|
set type(e) {
|
|
5471
|
-
this._type =
|
|
6118
|
+
this._type = U.VALID_TYPES.includes(
|
|
5472
6119
|
e
|
|
5473
6120
|
) ? e : "text";
|
|
5474
6121
|
}
|
|
5475
6122
|
// Ensure the "width" property is valid after updates
|
|
5476
6123
|
async updated(e) {
|
|
5477
6124
|
var t, o;
|
|
5478
|
-
if (e.has("width") && (await Promise.resolve(), this.width =
|
|
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")) {
|
|
5479
6126
|
const s = this._maskPatterns[this.type], n = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
|
|
5480
6127
|
if (n)
|
|
5481
6128
|
if (s)
|
|
@@ -5491,7 +6138,7 @@ const p = (I = class extends u {
|
|
|
5491
6138
|
}
|
|
5492
6139
|
// Generate a unique ID if one is not provided
|
|
5493
6140
|
connectedCallback() {
|
|
5494
|
-
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);
|
|
5495
6142
|
}
|
|
5496
6143
|
disconnectedCallback() {
|
|
5497
6144
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -5619,7 +6266,7 @@ const p = (I = class extends u {
|
|
|
5619
6266
|
return a`
|
|
5620
6267
|
<div class="nys-textinput">
|
|
5621
6268
|
<nys-label
|
|
5622
|
-
|
|
6269
|
+
for=${this.id}
|
|
5623
6270
|
label=${this.label}
|
|
5624
6271
|
description=${this.description}
|
|
5625
6272
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -5688,7 +6335,7 @@ const p = (I = class extends u {
|
|
|
5688
6335
|
</div>
|
|
5689
6336
|
`;
|
|
5690
6337
|
}
|
|
5691
|
-
},
|
|
6338
|
+
}, U.VALID_TYPES = [
|
|
5692
6339
|
"email",
|
|
5693
6340
|
"number",
|
|
5694
6341
|
"password",
|
|
@@ -5696,73 +6343,73 @@ const p = (I = class extends u {
|
|
|
5696
6343
|
"tel",
|
|
5697
6344
|
"text",
|
|
5698
6345
|
"url"
|
|
5699
|
-
],
|
|
5700
|
-
|
|
6346
|
+
], U.VALID_WIDTHS = ["sm", "md", "lg", "full"], U.styles = ut, U.formAssociated = !0, U);
|
|
6347
|
+
v([
|
|
5701
6348
|
r({ type: String })
|
|
5702
|
-
],
|
|
5703
|
-
|
|
6349
|
+
], g.prototype, "id", 2);
|
|
6350
|
+
v([
|
|
5704
6351
|
r({ type: String, reflect: !0 })
|
|
5705
|
-
],
|
|
5706
|
-
|
|
6352
|
+
], g.prototype, "name", 2);
|
|
6353
|
+
v([
|
|
5707
6354
|
r({ reflect: !0 })
|
|
5708
|
-
],
|
|
5709
|
-
|
|
6355
|
+
], g.prototype, "type", 1);
|
|
6356
|
+
v([
|
|
5710
6357
|
r({ type: String })
|
|
5711
|
-
],
|
|
5712
|
-
|
|
6358
|
+
], g.prototype, "label", 2);
|
|
6359
|
+
v([
|
|
5713
6360
|
r({ type: String })
|
|
5714
|
-
],
|
|
5715
|
-
|
|
6361
|
+
], g.prototype, "description", 2);
|
|
6362
|
+
v([
|
|
5716
6363
|
r({ type: String })
|
|
5717
|
-
],
|
|
5718
|
-
|
|
6364
|
+
], g.prototype, "placeholder", 2);
|
|
6365
|
+
v([
|
|
5719
6366
|
r({ type: String })
|
|
5720
|
-
],
|
|
5721
|
-
|
|
6367
|
+
], g.prototype, "value", 2);
|
|
6368
|
+
v([
|
|
5722
6369
|
r({ type: Boolean, reflect: !0 })
|
|
5723
|
-
],
|
|
5724
|
-
|
|
6370
|
+
], g.prototype, "disabled", 2);
|
|
6371
|
+
v([
|
|
5725
6372
|
r({ type: Boolean, reflect: !0 })
|
|
5726
|
-
],
|
|
5727
|
-
|
|
6373
|
+
], g.prototype, "readonly", 2);
|
|
6374
|
+
v([
|
|
5728
6375
|
r({ type: Boolean, reflect: !0 })
|
|
5729
|
-
],
|
|
5730
|
-
|
|
6376
|
+
], g.prototype, "required", 2);
|
|
6377
|
+
v([
|
|
5731
6378
|
r({ type: Boolean, reflect: !0 })
|
|
5732
|
-
],
|
|
5733
|
-
|
|
6379
|
+
], g.prototype, "optional", 2);
|
|
6380
|
+
v([
|
|
5734
6381
|
r({ type: String })
|
|
5735
|
-
],
|
|
5736
|
-
|
|
6382
|
+
], g.prototype, "form", 2);
|
|
6383
|
+
v([
|
|
5737
6384
|
r({ type: String })
|
|
5738
|
-
],
|
|
5739
|
-
|
|
6385
|
+
], g.prototype, "pattern", 2);
|
|
6386
|
+
v([
|
|
5740
6387
|
r({ type: Number })
|
|
5741
|
-
],
|
|
5742
|
-
|
|
6388
|
+
], g.prototype, "maxlength", 2);
|
|
6389
|
+
v([
|
|
5743
6390
|
r({ reflect: !0 })
|
|
5744
|
-
],
|
|
5745
|
-
|
|
6391
|
+
], g.prototype, "width", 2);
|
|
6392
|
+
v([
|
|
5746
6393
|
r({ type: Number })
|
|
5747
|
-
],
|
|
5748
|
-
|
|
6394
|
+
], g.prototype, "step", 2);
|
|
6395
|
+
v([
|
|
5749
6396
|
r({ type: Number })
|
|
5750
|
-
],
|
|
5751
|
-
|
|
6397
|
+
], g.prototype, "min", 2);
|
|
6398
|
+
v([
|
|
5752
6399
|
r({ type: Number })
|
|
5753
|
-
],
|
|
5754
|
-
|
|
6400
|
+
], g.prototype, "max", 2);
|
|
6401
|
+
v([
|
|
5755
6402
|
r({ type: Boolean, reflect: !0 })
|
|
5756
|
-
],
|
|
5757
|
-
|
|
6403
|
+
], g.prototype, "showError", 2);
|
|
6404
|
+
v([
|
|
5758
6405
|
r({ type: String })
|
|
5759
|
-
],
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
],
|
|
5763
|
-
let
|
|
5764
|
-
customElements.get("nys-textinput") || customElements.define("nys-textinput",
|
|
5765
|
-
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`
|
|
5766
6413
|
:host {
|
|
5767
6414
|
/* Global Toggle Styles */
|
|
5768
6415
|
--_nys-toggle-width: var(--nys-font-size-8xl, 44px);
|
|
@@ -6039,14 +6686,14 @@ const Ke = C`
|
|
|
6039
6686
|
}
|
|
6040
6687
|
}
|
|
6041
6688
|
`;
|
|
6042
|
-
var
|
|
6043
|
-
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--)
|
|
6044
6691
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
6045
|
-
return o && s &&
|
|
6692
|
+
return o && s && _t(e, t, s), s;
|
|
6046
6693
|
};
|
|
6047
|
-
let
|
|
6048
|
-
var
|
|
6049
|
-
const
|
|
6694
|
+
let mt = 0;
|
|
6695
|
+
var X;
|
|
6696
|
+
const R = (X = class extends y {
|
|
6050
6697
|
// allows use of elementInternals' API
|
|
6051
6698
|
constructor() {
|
|
6052
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();
|
|
@@ -6055,13 +6702,13 @@ const O = (K = class extends u {
|
|
|
6055
6702
|
return this._size;
|
|
6056
6703
|
}
|
|
6057
6704
|
set size(e) {
|
|
6058
|
-
this._size =
|
|
6705
|
+
this._size = X.VALID_SIZES.includes(
|
|
6059
6706
|
e
|
|
6060
6707
|
) ? e : "md";
|
|
6061
6708
|
}
|
|
6062
6709
|
// Generate a unique ID if one is not provided
|
|
6063
6710
|
connectedCallback() {
|
|
6064
|
-
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${
|
|
6711
|
+
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${mt++}`);
|
|
6065
6712
|
}
|
|
6066
6713
|
/********************** Form Integration **********************/
|
|
6067
6714
|
// Update the internals whenever `checked` or `value` changes.
|
|
@@ -6132,40 +6779,40 @@ const O = (K = class extends u {
|
|
|
6132
6779
|
</label>
|
|
6133
6780
|
`;
|
|
6134
6781
|
}
|
|
6135
|
-
},
|
|
6136
|
-
|
|
6782
|
+
}, X.VALID_SIZES = ["sm", "md"], X.styles = Ct, X.formAssociated = !0, X);
|
|
6783
|
+
j([
|
|
6137
6784
|
r({ type: String })
|
|
6138
|
-
],
|
|
6139
|
-
|
|
6785
|
+
], R.prototype, "id", 2);
|
|
6786
|
+
j([
|
|
6140
6787
|
r({ type: String, reflect: !0 })
|
|
6141
|
-
],
|
|
6142
|
-
|
|
6788
|
+
], R.prototype, "name", 2);
|
|
6789
|
+
j([
|
|
6143
6790
|
r({ type: String })
|
|
6144
|
-
],
|
|
6145
|
-
|
|
6791
|
+
], R.prototype, "value", 2);
|
|
6792
|
+
j([
|
|
6146
6793
|
r({ type: Boolean, reflect: !0 })
|
|
6147
|
-
],
|
|
6148
|
-
|
|
6794
|
+
], R.prototype, "checked", 2);
|
|
6795
|
+
j([
|
|
6149
6796
|
r({ type: Boolean, reflect: !0 })
|
|
6150
|
-
],
|
|
6151
|
-
|
|
6797
|
+
], R.prototype, "disabled", 2);
|
|
6798
|
+
j([
|
|
6152
6799
|
r({ type: Boolean })
|
|
6153
|
-
],
|
|
6154
|
-
|
|
6800
|
+
], R.prototype, "noIcon", 2);
|
|
6801
|
+
j([
|
|
6155
6802
|
r({ type: String })
|
|
6156
|
-
],
|
|
6157
|
-
|
|
6803
|
+
], R.prototype, "label", 2);
|
|
6804
|
+
j([
|
|
6158
6805
|
r({ type: String })
|
|
6159
|
-
],
|
|
6160
|
-
|
|
6806
|
+
], R.prototype, "description", 2);
|
|
6807
|
+
j([
|
|
6161
6808
|
r({ reflect: !0 })
|
|
6162
|
-
],
|
|
6163
|
-
|
|
6809
|
+
], R.prototype, "size", 1);
|
|
6810
|
+
j([
|
|
6164
6811
|
r({ type: String })
|
|
6165
|
-
],
|
|
6166
|
-
let
|
|
6167
|
-
customElements.get("nys-toggle") || customElements.define("nys-toggle",
|
|
6168
|
-
const
|
|
6812
|
+
], R.prototype, "form", 2);
|
|
6813
|
+
let xt = R;
|
|
6814
|
+
customElements.get("nys-toggle") || customElements.define("nys-toggle", xt);
|
|
6815
|
+
const wt = u`
|
|
6169
6816
|
:host {
|
|
6170
6817
|
/* Global Tooltip Styles */
|
|
6171
6818
|
--_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
|
|
@@ -6322,13 +6969,13 @@ const t2 = C`
|
|
|
6322
6969
|
}
|
|
6323
6970
|
}
|
|
6324
6971
|
`;
|
|
6325
|
-
var
|
|
6326
|
-
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--)
|
|
6327
6974
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
6328
|
-
return o && s &&
|
|
6975
|
+
return o && s && kt(e, t, s), s;
|
|
6329
6976
|
};
|
|
6330
|
-
let
|
|
6331
|
-
const
|
|
6977
|
+
let St = 0;
|
|
6978
|
+
const P1 = class P1 extends y {
|
|
6332
6979
|
/**************** Lifecycle Methods ****************/
|
|
6333
6980
|
constructor() {
|
|
6334
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 = () => {
|
|
@@ -6377,7 +7024,7 @@ const V1 = class V1 extends u {
|
|
|
6377
7024
|
this._position = e, this.requestUpdate("position", t), this._internallyUpdatingPosition || (this._userHasSetPosition = e !== null, this._originalUserPosition = e);
|
|
6378
7025
|
}
|
|
6379
7026
|
connectedCallback() {
|
|
6380
|
-
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);
|
|
6381
7028
|
}
|
|
6382
7029
|
disconnectedCallback() {
|
|
6383
7030
|
super.disconnectedCallback(), window.removeEventListener("keydown", this._handleEscapeKey);
|
|
@@ -6430,8 +7077,8 @@ const V1 = class V1 extends u {
|
|
|
6430
7077
|
}
|
|
6431
7078
|
// Checks if user's set position fit with current viewport (Does not account for overflow texts at this moment)
|
|
6432
7079
|
_doesPositionFit(e) {
|
|
6433
|
-
var
|
|
6434
|
-
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");
|
|
6435
7082
|
if (!t || !o || e == null) return;
|
|
6436
7083
|
const s = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = 8, c = {
|
|
6437
7084
|
top: s.top - i,
|
|
@@ -6448,10 +7095,10 @@ const V1 = class V1 extends u {
|
|
|
6448
7095
|
}
|
|
6449
7096
|
// Calculates the best placement based on available space (flips placement if it doesn't fit)
|
|
6450
7097
|
async autoPositionTooltip() {
|
|
6451
|
-
var
|
|
6452
|
-
const e = (
|
|
7098
|
+
var _, L;
|
|
7099
|
+
const e = (_ = this.shadowRoot) == null ? void 0 : _.querySelector(
|
|
6453
7100
|
".nys-tooltip__wrapper"
|
|
6454
|
-
), t = (
|
|
7101
|
+
), t = (L = this.shadowRoot) == null ? void 0 : L.querySelector(
|
|
6455
7102
|
".nys-tooltip__content"
|
|
6456
7103
|
);
|
|
6457
7104
|
if (!e || !t) return;
|
|
@@ -6468,17 +7115,17 @@ const V1 = class V1 extends u {
|
|
|
6468
7115
|
"left"
|
|
6469
7116
|
];
|
|
6470
7117
|
if (this._userHasSetPosition && this._originalUserPosition) {
|
|
6471
|
-
const
|
|
6472
|
-
|
|
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"]);
|
|
6473
7120
|
}
|
|
6474
|
-
for (const
|
|
6475
|
-
if (this._doesPositionFit(
|
|
6476
|
-
this._setInternalPosition(
|
|
7121
|
+
for (const m of i)
|
|
7122
|
+
if (this._doesPositionFit(m)) {
|
|
7123
|
+
this._setInternalPosition(m), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6477
7124
|
return;
|
|
6478
7125
|
}
|
|
6479
7126
|
let c = "top", d = n.top;
|
|
6480
|
-
for (const
|
|
6481
|
-
n[
|
|
7127
|
+
for (const m of i)
|
|
7128
|
+
n[m] > d && (d = n[m], c = m);
|
|
6482
7129
|
this._setInternalPosition(c), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6483
7130
|
}
|
|
6484
7131
|
// Sets flag to distinguish to position's setter that we are updating "position" prop internally
|
|
@@ -6487,13 +7134,13 @@ const V1 = class V1 extends u {
|
|
|
6487
7134
|
}
|
|
6488
7135
|
// Determines if text of tooltip over-extends outside of viewport edge and adjust tooltip for horizontal overflow
|
|
6489
7136
|
_shiftTooltipIntoViewport(e) {
|
|
6490
|
-
var
|
|
6491
|
-
const o = ((
|
|
7137
|
+
var m;
|
|
7138
|
+
const o = ((m = this.shadowRoot) == null ? void 0 : m.querySelector(
|
|
6492
7139
|
".nys-tooltip__wrapper"
|
|
6493
7140
|
)).getBoundingClientRect(), s = e.getBoundingClientRect(), n = o.left + o.width / 2, i = s.left < 0, c = s.right > window.innerWidth;
|
|
6494
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");
|
|
6495
|
-
const d = e.getBoundingClientRect(),
|
|
6496
|
-
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}%`);
|
|
6497
7144
|
}
|
|
6498
7145
|
// Reposition tooltip back to original set position (e.g. top, left, bottom, right) to avoid positioning issue base on last position
|
|
6499
7146
|
_resetTooltipPositioningStyles(e) {
|
|
@@ -6528,28 +7175,28 @@ const V1 = class V1 extends u {
|
|
|
6528
7175
|
`;
|
|
6529
7176
|
}
|
|
6530
7177
|
};
|
|
6531
|
-
|
|
6532
|
-
let
|
|
6533
|
-
|
|
7178
|
+
P1.styles = wt;
|
|
7179
|
+
let Q = P1;
|
|
7180
|
+
C1([
|
|
6534
7181
|
r({ type: String })
|
|
6535
|
-
],
|
|
6536
|
-
|
|
7182
|
+
], Q.prototype, "id", 2);
|
|
7183
|
+
C1([
|
|
6537
7184
|
r({ type: String })
|
|
6538
|
-
],
|
|
6539
|
-
|
|
7185
|
+
], Q.prototype, "text", 2);
|
|
7186
|
+
C1([
|
|
6540
7187
|
r({ type: Boolean, reflect: !0 })
|
|
6541
|
-
],
|
|
6542
|
-
|
|
7188
|
+
], Q.prototype, "inverted", 2);
|
|
7189
|
+
C1([
|
|
6543
7190
|
r({ type: Boolean, reflect: !0 })
|
|
6544
|
-
],
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
],
|
|
6548
|
-
|
|
7191
|
+
], Q.prototype, "focusable", 2);
|
|
7192
|
+
C1([
|
|
7193
|
+
D()
|
|
7194
|
+
], Q.prototype, "_active", 2);
|
|
7195
|
+
C1([
|
|
6549
7196
|
r({ type: String, reflect: !0 })
|
|
6550
|
-
],
|
|
6551
|
-
customElements.get("nys-tooltip") || customElements.define("nys-tooltip",
|
|
6552
|
-
const
|
|
7197
|
+
], Q.prototype, "position", 1);
|
|
7198
|
+
customElements.get("nys-tooltip") || customElements.define("nys-tooltip", Q);
|
|
7199
|
+
const $t = u`
|
|
6553
7200
|
:host {
|
|
6554
7201
|
/* Global Unav Header Styles */
|
|
6555
7202
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
@@ -6912,7 +7559,7 @@ const n2 = C`
|
|
|
6912
7559
|
display: none;
|
|
6913
7560
|
}
|
|
6914
7561
|
}
|
|
6915
|
-
`,
|
|
7562
|
+
`, Dt = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
6916
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"/>
|
|
6917
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"/>
|
|
6918
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"/>
|
|
@@ -6929,12 +7576,12 @@ const n2 = C`
|
|
|
6929
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"/>
|
|
6930
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"/>
|
|
6931
7578
|
</svg>`;
|
|
6932
|
-
var
|
|
7579
|
+
var Vt = Object.defineProperty, u1 = (l, e, t, o) => {
|
|
6933
7580
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
6934
7581
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
6935
|
-
return s &&
|
|
7582
|
+
return s && Vt(e, t, s), s;
|
|
6936
7583
|
};
|
|
6937
|
-
const
|
|
7584
|
+
const O1 = class O1 extends y {
|
|
6938
7585
|
constructor() {
|
|
6939
7586
|
super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
|
|
6940
7587
|
["English", ""],
|
|
@@ -6954,7 +7601,7 @@ const D1 = class D1 extends u {
|
|
|
6954
7601
|
];
|
|
6955
7602
|
}
|
|
6956
7603
|
_getNysLogo() {
|
|
6957
|
-
return new DOMParser().parseFromString(
|
|
7604
|
+
return new DOMParser().parseFromString(Dt, "image/svg+xml").documentElement;
|
|
6958
7605
|
}
|
|
6959
7606
|
_toggleTrustbar() {
|
|
6960
7607
|
this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
|
|
@@ -7215,31 +7862,31 @@ const D1 = class D1 extends u {
|
|
|
7215
7862
|
`;
|
|
7216
7863
|
}
|
|
7217
7864
|
};
|
|
7218
|
-
|
|
7219
|
-
let
|
|
7220
|
-
|
|
7865
|
+
O1.styles = $t;
|
|
7866
|
+
let T = O1;
|
|
7867
|
+
u1([
|
|
7221
7868
|
r({ type: Boolean })
|
|
7222
|
-
],
|
|
7223
|
-
|
|
7869
|
+
], T.prototype, "trustbarVisible");
|
|
7870
|
+
u1([
|
|
7224
7871
|
r({ type: Boolean })
|
|
7225
|
-
],
|
|
7226
|
-
|
|
7872
|
+
], T.prototype, "searchDropdownVisible");
|
|
7873
|
+
u1([
|
|
7227
7874
|
r({ type: Boolean })
|
|
7228
|
-
],
|
|
7229
|
-
|
|
7875
|
+
], T.prototype, "languageVisible");
|
|
7876
|
+
u1([
|
|
7230
7877
|
r({ type: Boolean })
|
|
7231
|
-
],
|
|
7232
|
-
|
|
7878
|
+
], T.prototype, "isSearchFocused");
|
|
7879
|
+
u1([
|
|
7233
7880
|
r({ type: Boolean })
|
|
7234
|
-
],
|
|
7235
|
-
|
|
7881
|
+
], T.prototype, "hideTranslate");
|
|
7882
|
+
u1([
|
|
7236
7883
|
r({ type: Boolean })
|
|
7237
|
-
],
|
|
7238
|
-
|
|
7884
|
+
], T.prototype, "hideSearch");
|
|
7885
|
+
u1([
|
|
7239
7886
|
r({ type: String, reflect: !0 })
|
|
7240
|
-
],
|
|
7241
|
-
customElements.get("nys-unavheader") || customElements.define("nys-unavheader",
|
|
7242
|
-
const
|
|
7887
|
+
], T.prototype, "languages");
|
|
7888
|
+
customElements.get("nys-unavheader") || customElements.define("nys-unavheader", T);
|
|
7889
|
+
const Mt = u`
|
|
7243
7890
|
:host {
|
|
7244
7891
|
/* Global Header Styles */
|
|
7245
7892
|
--_nys-globalheader-text-color: var(
|
|
@@ -7256,7 +7903,6 @@ const l2 = C`
|
|
|
7256
7903
|
);
|
|
7257
7904
|
--_nys-globalheader-main-gap-spacing: var(--nys-space-300, 24px);
|
|
7258
7905
|
--_nys-globalheader-padding: var(--nys-space-250, 20px);
|
|
7259
|
-
--_nys-globalheader-gutter: var(--nys-gutter-sm, 20px);
|
|
7260
7906
|
--_nys-globalheader-font-family: var(
|
|
7261
7907
|
--nys-font-family-ui,
|
|
7262
7908
|
var(
|
|
@@ -7295,14 +7941,14 @@ const l2 = C`
|
|
|
7295
7941
|
);
|
|
7296
7942
|
|
|
7297
7943
|
/* Menu Content Styling */
|
|
7298
|
-
--_nys-globalfooter-link-gap-spacing-row: var(--nys-space-300, 24px);
|
|
7299
|
-
--_nys-globalfooter-link-gap-spacing-column: var(--nys-space-400, 32px);
|
|
7300
7944
|
--_nys-globalheader-link-lineheight: var(--nys-font-lineheight-ui-md, 24px);
|
|
7301
7945
|
--_nys-globalheader-link-letterspacing: var(
|
|
7302
7946
|
--nys-font-letterspacing-ui-md,
|
|
7303
7947
|
var(--nys-font-letterspacing-400, 0.044px)
|
|
7304
7948
|
);
|
|
7305
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);
|
|
7306
7952
|
|
|
7307
7953
|
/* Mobile Menu */
|
|
7308
7954
|
--_nys-globalheader-mobile-btn-font-size: var(--nys-type-size-ui-xs, 12px);
|
|
@@ -7336,8 +7982,10 @@ const l2 = C`
|
|
|
7336
7982
|
}
|
|
7337
7983
|
|
|
7338
7984
|
li {
|
|
7985
|
+
display: block;
|
|
7339
7986
|
margin: 0;
|
|
7340
7987
|
padding: 0;
|
|
7988
|
+
box-sizing: border-box;
|
|
7341
7989
|
}
|
|
7342
7990
|
|
|
7343
7991
|
a {
|
|
@@ -7354,10 +8002,11 @@ const l2 = C`
|
|
|
7354
8002
|
.nys-globalheader {
|
|
7355
8003
|
display: flex;
|
|
7356
8004
|
justify-content: center;
|
|
7357
|
-
padding: var(--_nys-globalheader-padding)
|
|
8005
|
+
padding: var(--_nys-globalheader-padding);
|
|
7358
8006
|
background-color: var(--_nys-globalheader-background);
|
|
7359
8007
|
color: var(--_nys-globalheader-text-color);
|
|
7360
8008
|
width: 100%;
|
|
8009
|
+
min-height: 76px;
|
|
7361
8010
|
box-sizing: border-box;
|
|
7362
8011
|
}
|
|
7363
8012
|
|
|
@@ -7424,6 +8073,25 @@ const l2 = C`
|
|
|
7424
8073
|
text-decoration-thickness: var(--_nys-globalheader-link-weight-decoration);
|
|
7425
8074
|
}
|
|
7426
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
|
+
|
|
7427
8095
|
/* Mobile Menu */
|
|
7428
8096
|
.nys-globalheader__content-mobile {
|
|
7429
8097
|
position: absolute;
|
|
@@ -7451,6 +8119,7 @@ const l2 = C`
|
|
|
7451
8119
|
gap: 8px;
|
|
7452
8120
|
align-self: stretch;
|
|
7453
8121
|
border-bottom: 1px solid var(--_nys-globalheader-mobile-li-border-color);
|
|
8122
|
+
background: var(--_nys-globalheader-background);
|
|
7454
8123
|
}
|
|
7455
8124
|
.nys-globalheader__content-mobile ul li a:hover {
|
|
7456
8125
|
background: var(--_nys-globalheader-mobile-li-hover-bg);
|
|
@@ -7493,39 +8162,45 @@ const l2 = C`
|
|
|
7493
8162
|
}
|
|
7494
8163
|
|
|
7495
8164
|
/* Breakpoints using NYSDS Guidelines (Menu Links) */
|
|
7496
|
-
|
|
7497
|
-
|
|
8165
|
+
/* https://www.figma.com/design/U2QpuSUXRTxbgG64Fzi9bu?node-id=1170-340 */
|
|
8166
|
+
@media (min-width: 1024px) {
|
|
8167
|
+
/* Desktop (MD - Above 1024px) */
|
|
7498
8168
|
.nys-globalheader__content {
|
|
7499
8169
|
display: flex;
|
|
7500
8170
|
}
|
|
7501
8171
|
.nys-globalheader__content ul {
|
|
7502
8172
|
flex-direction: row;
|
|
7503
|
-
gap: var(--_nys-globalfooter-link-gap-spacing-row)
|
|
7504
|
-
var(--_nys-globalfooter-link-gap-spacing-column);
|
|
7505
8173
|
}
|
|
7506
8174
|
.nys-globalheader__content-mobile,
|
|
7507
8175
|
.nys-globalheader__button-container {
|
|
7508
8176
|
display: none;
|
|
7509
8177
|
}
|
|
8178
|
+
li {
|
|
8179
|
+
display: flex;
|
|
8180
|
+
align-items: center;
|
|
8181
|
+
padding: var(--_nys-globalheader-link-padding);
|
|
8182
|
+
}
|
|
7510
8183
|
:host {
|
|
7511
8184
|
--_nys-globalheader-main-gap-spacing: var(--nys-space-500, 40px);
|
|
7512
|
-
--_nys-globalheader-
|
|
8185
|
+
--_nys-globalheader-padding: var(--nys-space-50, 4px)
|
|
8186
|
+
var(--nys-size-400, 32px) 0;
|
|
7513
8187
|
}
|
|
7514
8188
|
}
|
|
7515
8189
|
|
|
7516
8190
|
@media (min-width: 1280px) {
|
|
7517
|
-
/* Large Desktop (
|
|
8191
|
+
/* Large Desktop (LG - Above 1280px) */
|
|
7518
8192
|
:host {
|
|
7519
|
-
--_nys-globalheader-
|
|
8193
|
+
--_nys-globalheader-padding: var(--nys-space-50, 4px)
|
|
8194
|
+
var(--nys-space-800, 64px) 0;
|
|
7520
8195
|
}
|
|
7521
8196
|
}
|
|
7522
8197
|
`;
|
|
7523
|
-
var
|
|
8198
|
+
var zt = Object.defineProperty, k1 = (l, e, t, o) => {
|
|
7524
8199
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
7525
8200
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
7526
|
-
return s &&
|
|
8201
|
+
return s && zt(e, t, s), s;
|
|
7527
8202
|
};
|
|
7528
|
-
const
|
|
8203
|
+
const R1 = class R1 extends y {
|
|
7529
8204
|
constructor() {
|
|
7530
8205
|
super(...arguments), this.appName = "", this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0, this.isMobileMenuOpen = !1;
|
|
7531
8206
|
}
|
|
@@ -7550,13 +8225,33 @@ const M1 = class M1 extends u {
|
|
|
7550
8225
|
);
|
|
7551
8226
|
o && s && (o.innerHTML = "", s.innerHTML = "", t.forEach((d) => {
|
|
7552
8227
|
if (d.nodeType === Node.ELEMENT_NODE) {
|
|
7553
|
-
const
|
|
7554
|
-
["script", "iframe", "object", "embed, img"].forEach((
|
|
7555
|
-
|
|
7556
|
-
})
|
|
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();
|
|
7557
8246
|
}
|
|
7558
8247
|
}));
|
|
7559
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
|
+
}
|
|
7560
8255
|
_toggleMobileMenu() {
|
|
7561
8256
|
this.isMobileMenuOpen = !this.isMobileMenuOpen;
|
|
7562
8257
|
}
|
|
@@ -7624,25 +8319,25 @@ const M1 = class M1 extends u {
|
|
|
7624
8319
|
`;
|
|
7625
8320
|
}
|
|
7626
8321
|
};
|
|
7627
|
-
|
|
7628
|
-
let
|
|
7629
|
-
|
|
8322
|
+
R1.styles = Mt;
|
|
8323
|
+
let n1 = R1;
|
|
8324
|
+
k1([
|
|
7630
8325
|
r({ type: String })
|
|
7631
|
-
],
|
|
7632
|
-
|
|
8326
|
+
], n1.prototype, "appName");
|
|
8327
|
+
k1([
|
|
7633
8328
|
r({ type: String })
|
|
7634
|
-
],
|
|
7635
|
-
|
|
8329
|
+
], n1.prototype, "agencyName");
|
|
8330
|
+
k1([
|
|
7636
8331
|
r({ type: String })
|
|
7637
|
-
],
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
],
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
],
|
|
7644
|
-
customElements.get("nys-globalheader") || customElements.define("nys-globalheader",
|
|
7645
|
-
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`
|
|
7646
8341
|
:host {
|
|
7647
8342
|
/* Global Footer Styles */
|
|
7648
8343
|
--_nys-globalfooter-text-color: var(
|
|
@@ -7798,12 +8493,12 @@ const d2 = C`
|
|
|
7798
8493
|
}
|
|
7799
8494
|
}
|
|
7800
8495
|
`;
|
|
7801
|
-
var
|
|
8496
|
+
var Ht = Object.defineProperty, H1 = (l, e, t, o) => {
|
|
7802
8497
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
7803
8498
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
7804
|
-
return s &&
|
|
8499
|
+
return s && Ht(e, t, s), s;
|
|
7805
8500
|
};
|
|
7806
|
-
const
|
|
8501
|
+
const T1 = class T1 extends y {
|
|
7807
8502
|
constructor() {
|
|
7808
8503
|
super(...arguments), this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0;
|
|
7809
8504
|
}
|
|
@@ -7829,8 +8524,8 @@ const z1 = class z1 extends u {
|
|
|
7829
8524
|
o && (o.classList.toggle("columns", s), o.classList.toggle("small", !s), o.innerHTML = "", t.forEach((c) => {
|
|
7830
8525
|
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
7831
8526
|
const d = c.cloneNode(!0);
|
|
7832
|
-
["script", "iframe", "object", "embed", "img"].forEach((
|
|
7833
|
-
d.querySelectorAll(
|
|
8527
|
+
["script", "iframe", "object", "embed", "img"].forEach((L) => {
|
|
8528
|
+
d.querySelectorAll(L).forEach((m) => m.remove());
|
|
7834
8529
|
}), o.appendChild(d), c.remove();
|
|
7835
8530
|
}
|
|
7836
8531
|
}));
|
|
@@ -7854,19 +8549,19 @@ const z1 = class z1 extends u {
|
|
|
7854
8549
|
`;
|
|
7855
8550
|
}
|
|
7856
8551
|
};
|
|
7857
|
-
|
|
7858
|
-
let
|
|
7859
|
-
|
|
8552
|
+
T1.styles = Et;
|
|
8553
|
+
let f1 = T1;
|
|
8554
|
+
H1([
|
|
7860
8555
|
r({ type: String })
|
|
7861
|
-
],
|
|
7862
|
-
|
|
8556
|
+
], f1.prototype, "agencyName");
|
|
8557
|
+
H1([
|
|
7863
8558
|
r({ type: String })
|
|
7864
|
-
],
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
],
|
|
7868
|
-
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter",
|
|
7869
|
-
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`
|
|
7870
8565
|
:host {
|
|
7871
8566
|
/* Global Footer Styles */
|
|
7872
8567
|
--_nys-unavfooter-link-color: var(
|
|
@@ -8022,7 +8717,7 @@ const y2 = C`
|
|
|
8022
8717
|
--_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
8023
8718
|
}
|
|
8024
8719
|
}
|
|
8025
|
-
`,
|
|
8720
|
+
`, At = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
8026
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"/>
|
|
8027
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"/>
|
|
8028
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"/>
|
|
@@ -8038,10 +8733,10 @@ const y2 = C`
|
|
|
8038
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"/>
|
|
8039
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"/>
|
|
8040
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"/>
|
|
8041
|
-
</svg>`,
|
|
8736
|
+
</svg>`, F1 = class F1 extends y {
|
|
8042
8737
|
/**************** Functions ****************/
|
|
8043
8738
|
_getNysLogo() {
|
|
8044
|
-
return new DOMParser().parseFromString(
|
|
8739
|
+
return new DOMParser().parseFromString(At, "image/svg+xml").documentElement;
|
|
8045
8740
|
}
|
|
8046
8741
|
render() {
|
|
8047
8742
|
return a`
|
|
@@ -8075,32 +8770,35 @@ const y2 = C`
|
|
|
8075
8770
|
`;
|
|
8076
8771
|
}
|
|
8077
8772
|
};
|
|
8078
|
-
|
|
8079
|
-
let
|
|
8080
|
-
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);
|
|
8081
8776
|
export {
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
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
|
|
8105
8803
|
};
|
|
8106
8804
|
//# sourceMappingURL=nysds.es.js.map
|