@nysds/nys-select 1.6.0 → 1.8.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/nys-select.js +74 -78
- package/dist/nys-select.js.map +1 -1
- package/package.json +4 -4
package/dist/nys-select.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css as A, LitElement as
|
|
1
|
+
import { css as A, LitElement as U, html as x } from "lit";
|
|
2
2
|
/*!
|
|
3
3
|
* ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
|
|
4
4
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
@@ -49,7 +49,7 @@ const q = (i) => new R(typeof i == "string" ? i : i + "", void 0, O), M = (i, e)
|
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
51
|
*/
|
|
52
|
-
const { is: k, defineProperty: I, getOwnPropertyDescriptor: z, getOwnPropertyNames: V, getOwnPropertySymbols: D, getPrototypeOf: T } = Object, u = globalThis, P = u.trustedTypes, L = P ? P.emptyScript : "", g = u.reactiveElementPolyfillSupport,
|
|
52
|
+
const { is: k, defineProperty: I, getOwnPropertyDescriptor: z, getOwnPropertyNames: V, getOwnPropertySymbols: D, getPrototypeOf: T } = Object, u = globalThis, P = u.trustedTypes, L = P ? P.emptyScript : "", g = u.reactiveElementPolyfillSupport, _ = (i, e) => i, m = { toAttribute(i, e) {
|
|
53
53
|
switch (e) {
|
|
54
54
|
case Boolean:
|
|
55
55
|
i = i ? L : null;
|
|
@@ -77,7 +77,7 @@ const { is: k, defineProperty: I, getOwnPropertyDescriptor: z, getOwnPropertyNam
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return t;
|
|
80
|
-
} }, $ = (i, e) => !k(i, e),
|
|
80
|
+
} }, $ = (i, e) => !k(i, e), C = { attribute: !0, type: String, converter: m, reflect: !1, hasChanged: $ };
|
|
81
81
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), u.litPropertyMetadata ?? (u.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
82
82
|
class f extends HTMLElement {
|
|
83
83
|
static addInitializer(e) {
|
|
@@ -86,7 +86,7 @@ class f extends HTMLElement {
|
|
|
86
86
|
static get observedAttributes() {
|
|
87
87
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
88
88
|
}
|
|
89
|
-
static createProperty(e, t =
|
|
89
|
+
static createProperty(e, t = C) {
|
|
90
90
|
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
91
91
|
const s = Symbol(), r = this.getPropertyDescriptor(e, s, t);
|
|
92
92
|
r !== void 0 && I(this.prototype, e, r);
|
|
@@ -106,16 +106,16 @@ class f extends HTMLElement {
|
|
|
106
106
|
}, configurable: !0, enumerable: !0 };
|
|
107
107
|
}
|
|
108
108
|
static getPropertyOptions(e) {
|
|
109
|
-
return this.elementProperties.get(e) ??
|
|
109
|
+
return this.elementProperties.get(e) ?? C;
|
|
110
110
|
}
|
|
111
111
|
static _$Ei() {
|
|
112
|
-
if (this.hasOwnProperty(
|
|
112
|
+
if (this.hasOwnProperty(_("elementProperties"))) return;
|
|
113
113
|
const e = T(this);
|
|
114
114
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
115
115
|
}
|
|
116
116
|
static finalize() {
|
|
117
|
-
if (this.hasOwnProperty(
|
|
118
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
117
|
+
if (this.hasOwnProperty(_("finalized"))) return;
|
|
118
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(_("properties"))) {
|
|
119
119
|
const t = this.properties, s = [...V(t), ...D(t)];
|
|
120
120
|
for (const r of s) this.createProperty(r, t[r]);
|
|
121
121
|
}
|
|
@@ -277,7 +277,7 @@ class f extends HTMLElement {
|
|
|
277
277
|
firstUpdated(e) {
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
f.elementStyles = [], f.shadowRootOptions = { mode: "open" }, f[
|
|
280
|
+
f.elementStyles = [], f.shadowRootOptions = { mode: "open" }, f[_("elementProperties")] = /* @__PURE__ */ new Map(), f[_("finalized")] = /* @__PURE__ */ new Map(), g == null || g({ ReactiveElement: f }), (u.reactiveElementVersions ?? (u.reactiveElementVersions = [])).push("2.0.4");
|
|
281
281
|
/**
|
|
282
282
|
* @license
|
|
283
283
|
* Copyright 2017 Google LLC
|
|
@@ -289,8 +289,8 @@ const j = { attribute: !0, type: String, converter: m, reflect: !1, hasChanged:
|
|
|
289
289
|
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(t.name, i), s === "accessor") {
|
|
290
290
|
const { name: o } = t;
|
|
291
291
|
return { set(a) {
|
|
292
|
-
const
|
|
293
|
-
e.set.call(this, a), this.requestUpdate(o,
|
|
292
|
+
const h = e.get.call(this);
|
|
293
|
+
e.set.call(this, a), this.requestUpdate(o, h, i);
|
|
294
294
|
}, init(a) {
|
|
295
295
|
return a !== void 0 && this.P(o, void 0, i), a;
|
|
296
296
|
} };
|
|
@@ -298,8 +298,8 @@ const j = { attribute: !0, type: String, converter: m, reflect: !1, hasChanged:
|
|
|
298
298
|
if (s === "setter") {
|
|
299
299
|
const { name: o } = t;
|
|
300
300
|
return function(a) {
|
|
301
|
-
const
|
|
302
|
-
e.call(this, a), this.requestUpdate(o,
|
|
301
|
+
const h = this[o];
|
|
302
|
+
e.call(this, a), this.requestUpdate(o, h, i);
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
throw Error("Unsupported decorator location: " + s);
|
|
@@ -329,32 +329,31 @@ const N = A`
|
|
|
329
329
|
--_nys-select-font-weight: var(--nys-font-weight-regular, 400);
|
|
330
330
|
--_nys-select-line-height: var(--nys-font-lineheight-ui-md, 24px);
|
|
331
331
|
--_nys-select-gap: var(--nys-space-50, 4px);
|
|
332
|
-
--_nys-select-radius: var(--nys-radius-md,
|
|
332
|
+
--_nys-select-border-radius: var(--nys-radius-md, 4px);
|
|
333
333
|
--_nys-select-padding: var(--nys-space-100, 8px) var(--nys-space-400, 32px)
|
|
334
334
|
var(--nys-space-100, 8px) var(--nys-space-100, 8px);
|
|
335
335
|
|
|
336
336
|
/* Global Select Colors */
|
|
337
|
-
--_nys-select-
|
|
338
|
-
|
|
339
|
-
var(--nys-color-neutral-900, #1b1b1b)
|
|
340
|
-
);
|
|
341
|
-
--_nys-select-icon-color: var(
|
|
342
|
-
--nys-color-ink,
|
|
343
|
-
var(--nys-color-neutral-900, #1b1b1b)
|
|
344
|
-
);
|
|
345
|
-
--_nys-select-error-color: var(
|
|
337
|
+
--_nys-select-color: var(--nys-color-text, #1b1b1b);
|
|
338
|
+
--_nys-select-color--error: var(
|
|
346
339
|
--nys-color-danger,
|
|
347
340
|
var(--nys-color-red-600, #b52c2c)
|
|
348
341
|
);
|
|
349
|
-
--_nys-select-
|
|
350
|
-
--_nys-select-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
var(--nys-color-neutral-200, #bec0c1)
|
|
342
|
+
--_nys-select-background-color: var(--nys-color-ink-reverse, #fff);
|
|
343
|
+
--_nys-select-background-color--disabled: var(
|
|
344
|
+
--nys-color-neutral-50,
|
|
345
|
+
#ededed
|
|
354
346
|
);
|
|
355
|
-
--_nys-select-
|
|
347
|
+
--_nys-select-color--disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
356
348
|
|
|
357
349
|
/* Select Outline & Border States */
|
|
350
|
+
--_nys-select-border-width: var(--nys-border-width-sm, 1px);
|
|
351
|
+
|
|
352
|
+
--_nys-select-border-color: var(--nys-color-neutral-400, #909395);
|
|
353
|
+
--_nys-select-border-color--hover: var(--nys-color-neutral-900, #1b1b1b);
|
|
354
|
+
--_nys-select-border-color--focus: var(--nys-color-focus, #004dd1);
|
|
355
|
+
--_nys-select-border-color--disabled: var(--nys-color-neutral-200, #bec0c1);
|
|
356
|
+
|
|
358
357
|
--_nys-select-border-default: var(--nys-border-width-sm, 1px) solid
|
|
359
358
|
var(--nys-color-neutral-400, #909395);
|
|
360
359
|
--_nys-select-border-focus: var(--nys-border-width-sm, 1px) solid
|
|
@@ -373,18 +372,18 @@ const N = A`
|
|
|
373
372
|
}
|
|
374
373
|
|
|
375
374
|
.nys-select__select {
|
|
376
|
-
color: var(--_nys-select-
|
|
375
|
+
color: var(--_nys-select-color);
|
|
377
376
|
font-weight: var(--_nys-select-font-weight);
|
|
378
|
-
border-radius: var(--_nys-select-radius);
|
|
379
|
-
border: var(--_nys-select-border-
|
|
377
|
+
border-radius: var(--_nys-select-border-radius);
|
|
378
|
+
border: solid var(--_nys-select-border-width)
|
|
379
|
+
var(--_nys-select-border-color);
|
|
380
380
|
font-size: var(--_nys-select-font-size);
|
|
381
381
|
padding: var(--_nys-select-padding);
|
|
382
382
|
width: var(--_nys-select-width);
|
|
383
|
-
|
|
384
|
-
max-width: var(--_nys-select-width);
|
|
383
|
+
max-width: 100%;
|
|
385
384
|
text-indent: 1px;
|
|
386
385
|
text-overflow: "";
|
|
387
|
-
background: var(--_nys-select-
|
|
386
|
+
background: var(--_nys-select-background-color);
|
|
388
387
|
-webkit-appearance: none;
|
|
389
388
|
-moz-appearance: none;
|
|
390
389
|
appearance: none;
|
|
@@ -395,10 +394,11 @@ const N = A`
|
|
|
395
394
|
position: relative;
|
|
396
395
|
display: inline-block;
|
|
397
396
|
width: var(--_nys-select-width);
|
|
397
|
+
max-width: 100%;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
.nys-select__icon {
|
|
401
|
-
color: var(--_nys-select-
|
|
401
|
+
color: var(--_nys-select-color);
|
|
402
402
|
position: absolute;
|
|
403
403
|
right: 10px;
|
|
404
404
|
top: 50%;
|
|
@@ -426,44 +426,40 @@ const N = A`
|
|
|
426
426
|
/* Hover */
|
|
427
427
|
.nys-select__select:hover:not(:disabled) {
|
|
428
428
|
cursor: pointer;
|
|
429
|
-
border: var(--_nys-select-border-hover);
|
|
430
|
-
outline: var(--_nys-select-border-
|
|
429
|
+
border-color: var(--_nys-select-border-color--hover);
|
|
430
|
+
outline: solid var(--_nys-select-border-width)
|
|
431
|
+
var(--_nys-select-border-color--hover);
|
|
431
432
|
}
|
|
432
433
|
|
|
433
434
|
/* Focused */
|
|
434
435
|
.nys-select__select:focus {
|
|
435
|
-
border: var(--_nys-select-border-focus);
|
|
436
|
-
outline: var(--_nys-select-border-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
/* When both focus and hover are active, prioritize focus */
|
|
440
|
-
.nys-select__select:focus:hover {
|
|
441
|
-
border: var(--_nys-select-border-focus);
|
|
442
|
-
outline: var(--_nys-select-border-focus);
|
|
436
|
+
border-color: var(--_nys-select-border-color--focus);
|
|
437
|
+
outline: solid var(--_nys-select-border-width)
|
|
438
|
+
var(--_nys-select-border-color--focus);
|
|
443
439
|
}
|
|
444
440
|
|
|
445
441
|
/* Disabled */
|
|
446
442
|
.nys-select__select:disabled {
|
|
447
|
-
background-color: var(--_nys-select-
|
|
448
|
-
border: var(--_nys-select-border-disabled);
|
|
443
|
+
background-color: var(--_nys-select-background-color--disabled);
|
|
444
|
+
border-color: var(--_nys-select-border-color--disabled);
|
|
449
445
|
cursor: not-allowed;
|
|
450
|
-
color: var(--_nys-select-
|
|
446
|
+
color: var(--_nys-select-color--disabled);
|
|
451
447
|
}
|
|
452
448
|
.nys-select__select:disabled ~ .nys-select__icon {
|
|
453
|
-
color: var(--_nys-select-
|
|
449
|
+
color: var(--_nys-select-color--disabled);
|
|
454
450
|
}
|
|
455
451
|
|
|
456
452
|
:host([showError]) {
|
|
457
453
|
--_nys-select-border-default: var(--nys-border-width-sm, 1px) solid
|
|
458
|
-
var(--_nys-select-error
|
|
454
|
+
var(--_nys-select-color--error);
|
|
459
455
|
}
|
|
460
456
|
`;
|
|
461
|
-
var H = Object.defineProperty,
|
|
457
|
+
var H = Object.defineProperty, v = (i, e, t, s) => {
|
|
462
458
|
for (var r = void 0, n = i.length - 1, o; n >= 0; n--)
|
|
463
459
|
(o = i[n]) && (r = o(e, t, r) || r);
|
|
464
460
|
return r && H(e, t, r), r;
|
|
465
461
|
};
|
|
466
|
-
class y extends
|
|
462
|
+
class y extends U {
|
|
467
463
|
constructor() {
|
|
468
464
|
super(...arguments), this.disabled = !1, this.selected = !1, this.value = "", this.label = "", this.hidden = !1;
|
|
469
465
|
}
|
|
@@ -477,7 +473,7 @@ class y extends C {
|
|
|
477
473
|
});
|
|
478
474
|
}
|
|
479
475
|
render() {
|
|
480
|
-
return
|
|
476
|
+
return x`
|
|
481
477
|
<option
|
|
482
478
|
?disabled=${this.disabled}
|
|
483
479
|
?selected=${this.selected}
|
|
@@ -490,30 +486,30 @@ class y extends C {
|
|
|
490
486
|
`;
|
|
491
487
|
}
|
|
492
488
|
}
|
|
493
|
-
|
|
489
|
+
v([
|
|
494
490
|
l({ type: Boolean, reflect: !0 })
|
|
495
491
|
], y.prototype, "disabled");
|
|
496
|
-
|
|
492
|
+
v([
|
|
497
493
|
l({ type: Boolean, reflect: !0 })
|
|
498
494
|
], y.prototype, "selected");
|
|
499
|
-
|
|
495
|
+
v([
|
|
500
496
|
l({ type: String })
|
|
501
497
|
], y.prototype, "value");
|
|
502
|
-
|
|
498
|
+
v([
|
|
503
499
|
l({ type: String })
|
|
504
500
|
], y.prototype, "label");
|
|
505
|
-
|
|
501
|
+
v([
|
|
506
502
|
l({ type: Boolean, reflect: !0 })
|
|
507
503
|
], y.prototype, "hidden");
|
|
508
504
|
customElements.define("nys-option", y);
|
|
509
|
-
var F = Object.defineProperty, W = Object.getOwnPropertyDescriptor,
|
|
505
|
+
var F = Object.defineProperty, W = Object.getOwnPropertyDescriptor, d = (i, e, t, s) => {
|
|
510
506
|
for (var r = s > 1 ? void 0 : s ? W(e, t) : e, n = i.length - 1, o; n >= 0; n--)
|
|
511
507
|
(o = i[n]) && (r = (s ? o(e, t, r) : o(r)) || r);
|
|
512
508
|
return s && r && F(e, t, r), r;
|
|
513
509
|
};
|
|
514
510
|
let G = 0;
|
|
515
511
|
var p;
|
|
516
|
-
const c = (p = class extends
|
|
512
|
+
const c = (p = class extends U {
|
|
517
513
|
// allows use of elementInternals' API
|
|
518
514
|
constructor() {
|
|
519
515
|
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();
|
|
@@ -549,8 +545,8 @@ const c = (p = class extends C {
|
|
|
549
545
|
t.querySelectorAll("option:not([hidden])").forEach((o) => o.remove()), e.assignedElements({ flatten: !0 }).forEach((o) => {
|
|
550
546
|
var a;
|
|
551
547
|
if (o instanceof y) {
|
|
552
|
-
const
|
|
553
|
-
|
|
548
|
+
const h = document.createElement("option");
|
|
549
|
+
h.value = o.value, h.textContent = o.label || ((a = o.textContent) == null ? void 0 : a.trim()) || "", h.disabled = o.disabled, h.selected = o.selected, t.appendChild(h);
|
|
554
550
|
}
|
|
555
551
|
});
|
|
556
552
|
}
|
|
@@ -605,7 +601,7 @@ const c = (p = class extends C {
|
|
|
605
601
|
const t = e.target;
|
|
606
602
|
this.value = t.value, this._internals.setFormValue(this.value), this._hasUserInteracted && this._validate(), this.dispatchEvent(
|
|
607
603
|
new CustomEvent("change", {
|
|
608
|
-
detail: { value: this.value },
|
|
604
|
+
detail: { id: this.id, value: this.value },
|
|
609
605
|
bubbles: !0,
|
|
610
606
|
composed: !0
|
|
611
607
|
})
|
|
@@ -628,10 +624,10 @@ const c = (p = class extends C {
|
|
|
628
624
|
}
|
|
629
625
|
}
|
|
630
626
|
render() {
|
|
631
|
-
return
|
|
627
|
+
return x`
|
|
632
628
|
<div class="nys-select">
|
|
633
629
|
<nys-label
|
|
634
|
-
|
|
630
|
+
for=${this.id}
|
|
635
631
|
label=${this.label}
|
|
636
632
|
description=${this.description}
|
|
637
633
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -672,40 +668,40 @@ const c = (p = class extends C {
|
|
|
672
668
|
`;
|
|
673
669
|
}
|
|
674
670
|
}, p.VALID_WIDTHS = ["sm", "md", "lg", "full"], p.styles = N, p.formAssociated = !0, p);
|
|
675
|
-
|
|
671
|
+
d([
|
|
676
672
|
l({ type: String })
|
|
677
673
|
], c.prototype, "id", 2);
|
|
678
|
-
|
|
674
|
+
d([
|
|
679
675
|
l({ type: String, reflect: !0 })
|
|
680
676
|
], c.prototype, "name", 2);
|
|
681
|
-
|
|
677
|
+
d([
|
|
682
678
|
l({ type: String })
|
|
683
679
|
], c.prototype, "label", 2);
|
|
684
|
-
|
|
680
|
+
d([
|
|
685
681
|
l({ type: String })
|
|
686
682
|
], c.prototype, "description", 2);
|
|
687
|
-
|
|
683
|
+
d([
|
|
688
684
|
l({ type: String })
|
|
689
685
|
], c.prototype, "value", 2);
|
|
690
|
-
|
|
686
|
+
d([
|
|
691
687
|
l({ type: Boolean, reflect: !0 })
|
|
692
688
|
], c.prototype, "disabled", 2);
|
|
693
|
-
|
|
689
|
+
d([
|
|
694
690
|
l({ type: Boolean, reflect: !0 })
|
|
695
691
|
], c.prototype, "required", 2);
|
|
696
|
-
|
|
692
|
+
d([
|
|
697
693
|
l({ type: Boolean, reflect: !0 })
|
|
698
694
|
], c.prototype, "optional", 2);
|
|
699
|
-
|
|
695
|
+
d([
|
|
700
696
|
l({ type: String })
|
|
701
697
|
], c.prototype, "form", 2);
|
|
702
|
-
|
|
698
|
+
d([
|
|
703
699
|
l({ type: Boolean, reflect: !0 })
|
|
704
700
|
], c.prototype, "showError", 2);
|
|
705
|
-
|
|
701
|
+
d([
|
|
706
702
|
l({ type: String })
|
|
707
703
|
], c.prototype, "errorMessage", 2);
|
|
708
|
-
|
|
704
|
+
d([
|
|
709
705
|
l({ reflect: !0 })
|
|
710
706
|
], c.prototype, "width", 1);
|
|
711
707
|
let J = c;
|
package/dist/nys-select.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nys-select.js","sources":["../../../node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/@lit/reactive-element/decorators/property.js","../src/nys-select.styles.ts","../src/nys-option.ts","../src/nys-select.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:r,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e(this.prototype,t,r)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...h(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:\"open\"},b[d(\"elementProperties\")]=new Map,b[d(\"finalized\")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push(\"2.0.4\");export{b as ReactiveElement,u as defaultConverter,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import { css } from \"lit\";\n\nexport default css`\n :host {\n /* Global Select Styles */\n --_nys-select-width: 100%;\n --_nys-select-font-family: var(\n --nys-font-family-ui,\n var(\n --nys-font-family-sans,\n \"Proxima Nova\",\n \"Helvetica Neue\",\n \"Helvetica\",\n \"Arial\",\n sans-serif\n )\n );\n --_nys-select-font-size: var(--nys-font-size-ui-md, 16px);\n --_nys-select-font-weight: var(--nys-font-weight-regular, 400);\n --_nys-select-line-height: var(--nys-font-lineheight-ui-md, 24px);\n --_nys-select-gap: var(--nys-space-50, 4px);\n --_nys-select-radius: var(--nys-radius-md, var(--nys-space-50, 4px));\n --_nys-select-padding: var(--nys-space-100, 8px) var(--nys-space-400, 32px)\n var(--nys-space-100, 8px) var(--nys-space-100, 8px);\n\n /* Global Select Colors */\n --_nys-select-text-color: var(\n --nys-color-text,\n var(--nys-color-neutral-900, #1b1b1b)\n );\n --_nys-select-icon-color: var(\n --nys-color-ink,\n var(--nys-color-neutral-900, #1b1b1b)\n );\n --_nys-select-error-color: var(\n --nys-color-danger,\n var(--nys-color-red-600, #b52c2c)\n );\n --_nys-select-bg-color: var(--nys-color-ink-reverse, #fff);\n --_nys-select-bg-disabled-color: var(--nys-color-neutral-50, #ededed);\n --_nys-select-text-disabled-color: var(\n --nys-color-text-disabled,\n var(--nys-color-neutral-200, #bec0c1)\n );\n --_nys-select-icon-disabled-color: var(--nys-color-neutral-200, #bec0c1);\n\n /* Select Outline & Border States */\n --_nys-select-border-default: var(--nys-border-width-sm, 1px) solid\n var(--nys-color-neutral-400, #909395);\n --_nys-select-border-focus: var(--nys-border-width-sm, 1px) solid\n var(--nys-color-focus, var(--nys-color-blue-600, #004dd1));\n --_nys-select-border-disabled: var(--nys-border-width-sm, 1px) solid\n var(--nys-color-neutral-200, #bec0c1);\n --_nys-select-border-hover: var(--nys-border-width-sm, 1px) solid\n var(--nys-color-neutral-900, #1b1b1b);\n }\n\n .nys-select {\n display: flex;\n flex-direction: column;\n gap: var(--_nys-select-gap);\n font-family: var(--_nys-select-font-family);\n }\n\n .nys-select__select {\n color: var(--_nys-select-text-color);\n font-weight: var(--_nys-select-font-weight);\n border-radius: var(--_nys-select-radius);\n border: var(--_nys-select-border-default);\n font-size: var(--_nys-select-font-size);\n padding: var(--_nys-select-padding);\n width: var(--_nys-select-width);\n min-width: var(--_nys-select-width);\n max-width: var(--_nys-select-width);\n text-indent: 1px;\n text-overflow: \"\";\n background: var(--_nys-select-bg-color);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n text-overflow: ellipsis;\n }\n\n .nys-select__selectwrapper {\n position: relative;\n display: inline-block;\n width: var(--_nys-select-width);\n }\n\n .nys-select__icon {\n color: var(--_nys-select-icon-color);\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none;\n }\n\n :host([width=\"sm\"]) {\n --_nys-select-width: var(--nys-select-form-width-sm, 88px);\n }\n\n :host([width=\"md\"]) {\n --_nys-select-width: var(--nys-select-form-width-md, 200px);\n }\n\n :host([width=\"lg\"]) {\n --_nys-select-width: var(--nys-select-form-width-lg, 384px);\n }\n\n :host([width=\"full\"]) {\n --_nys-select-width: 100%;\n flex: 1; /* stretches width for flex container */\n }\n\n /* Hover */\n .nys-select__select:hover:not(:disabled) {\n cursor: pointer;\n border: var(--_nys-select-border-hover);\n outline: var(--_nys-select-border-hover);\n }\n\n /* Focused */\n .nys-select__select:focus {\n border: var(--_nys-select-border-focus);\n outline: var(--_nys-select-border-focus);\n }\n\n /* When both focus and hover are active, prioritize focus */\n .nys-select__select:focus:hover {\n border: var(--_nys-select-border-focus);\n outline: var(--_nys-select-border-focus);\n }\n\n /* Disabled */\n .nys-select__select:disabled {\n background-color: var(--_nys-select-bg-disabled-color);\n border: var(--_nys-select-border-disabled);\n cursor: not-allowed;\n color: var(--_nys-select-text-disabled-color);\n }\n .nys-select__select:disabled ~ .nys-select__icon {\n color: var(--_nys-select-icon-disabled-color);\n }\n\n :host([showError]) {\n --_nys-select-border-default: var(--nys-border-width-sm, 1px) solid\n var(--_nys-select-error-color);\n }\n`;\n","import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nexport class NysOption extends LitElement {\n @property({ type: Boolean, reflect: true }) disabled = false;\n @property({ type: Boolean, reflect: true }) selected = false;\n @property({ type: String }) value = \"\";\n @property({ type: String }) label = \"\";\n @property({ type: Boolean, reflect: true }) hidden = false;\n\n firstUpdated() {\n const slot = this.shadowRoot?.querySelector(\"slot\");\n if (slot) {\n slot.addEventListener(\"slotchange\", () => {\n const assignedNodes = slot.assignedNodes({ flatten: true });\n if (assignedNodes.length > 0) {\n this.label = assignedNodes[0].textContent?.trim() || \"\";\n }\n });\n }\n }\n\n render() {\n return html`\n <option\n ?disabled=${this.disabled}\n ?selected=${this.selected}\n value=${this.value}\n label=${this.label}\n ?hidden=${this.hidden}\n >\n <slot>${this.label}</slot>\n </option>\n `;\n }\n}\n\ncustomElements.define(\"nys-option\", NysOption);\n","import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport styles from \"./nys-select.styles\";\nimport { NysOption } from \"./nys-option\";\n\nlet selectIdCounter = 0; // Counter for generating unique IDs\n\nexport class NysSelect extends LitElement {\n @property({ type: String }) id = \"\";\n @property({ type: String, reflect: true }) name = \"\";\n @property({ type: String }) label = \"\";\n @property({ type: String }) description = \"\";\n @property({ type: String }) value = \"\";\n @property({ type: Boolean, reflect: true }) disabled = false;\n @property({ type: Boolean, reflect: true }) required = false;\n @property({ type: Boolean, reflect: true }) optional = false;\n @property({ type: String }) form = \"\";\n @property({ type: Boolean, reflect: true }) showError = false;\n @property({ type: String }) errorMessage = \"\";\n private static readonly VALID_WIDTHS = [\"sm\", \"md\", \"lg\", \"full\"] as const;\n private _width: (typeof NysSelect.VALID_WIDTHS)[number] = \"md\";\n\n // Getter and setter for the `width` property.\n @property({ reflect: true })\n get width(): (typeof NysSelect.VALID_WIDTHS)[number] {\n return this._width;\n }\n\n set width(value: string) {\n // Check if the provided value is in VALID_WIDTHS. If not, default to \"full\".\n this._width = NysSelect.VALID_WIDTHS.includes(\n value as (typeof NysSelect.VALID_WIDTHS)[number],\n )\n ? (value as (typeof NysSelect.VALID_WIDTHS)[number])\n : \"full\";\n }\n\n static styles = styles;\n\n private _hasUserInteracted = false; // need this flag for \"eager mode\"\n private _internals: ElementInternals;\n\n /********************** Lifecycle updates **********************/\n static formAssociated = true; // allows use of elementInternals' API\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n\n // Generate a unique ID if one is not provided\n connectedCallback() {\n super.connectedCallback();\n if (!this.id) {\n this.id = `nys-select-${Date.now()}-${selectIdCounter++}`;\n }\n this.addEventListener(\"invalid\", this._handleInvalid);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener(\"invalid\", this._handleInvalid);\n }\n\n firstUpdated() {\n // This ensures our element always participates in the form\n this._setValue();\n }\n\n // This callback is automatically called when the parent form is reset.\n formResetCallback() {\n this.value = \"\";\n }\n\n private _handleSlotChange() {\n const slot = this.shadowRoot?.querySelector(\n 'slot:not([name=\"description\"])',\n ) as HTMLSlotElement | null;\n const select = this.shadowRoot?.querySelector(\"select\");\n\n if (!slot || !select) return;\n\n // Clean up dynamically added options so we don't get duplicates\n select\n .querySelectorAll(\"option:not([hidden])\")\n .forEach((opt) => opt.remove());\n\n const assignedElements = slot.assignedElements({ flatten: true });\n\n // Clone and append slotted elements\n assignedElements.forEach((node) => {\n if (node instanceof NysOption) {\n const optionElement = document.createElement(\"option\");\n optionElement.value = node.value;\n optionElement.textContent =\n node.label || node.textContent?.trim() || \"\";\n optionElement.disabled = node.disabled;\n optionElement.selected = node.selected;\n select.appendChild(optionElement);\n }\n });\n }\n /********************** Form Integration **********************/\n private _setValue() {\n this._internals.setFormValue(this.value);\n this._manageRequire(); // Check validation when value is set\n }\n\n private _manageRequire() {\n const select = this.shadowRoot?.querySelector(\"select\");\n if (!select) return;\n\n const message = this.errorMessage || \"Please select an option.\";\n const isInvalid = this.required && !this.value;\n\n if (isInvalid) {\n this._internals.ariaRequired = \"true\"; // Screen readers should announce error\n this._internals.setValidity({ valueMissing: true }, message, select);\n } else {\n this._internals.ariaRequired = \"false\"; // Reset when valid\n this._internals.setValidity({});\n this._hasUserInteracted = false; // Reset the interaction flag, make lazy again\n }\n }\n\n private _setValidityMessage(message: string = \"\") {\n const select = this.shadowRoot?.querySelector(\"select\");\n if (!select) return;\n\n // Toggle the HTML <div> tag error message\n this.showError = !!message;\n // If user sets errorMessage, this will always override the native validation message\n if (this.errorMessage?.trim() && message !== \"\") {\n message = this.errorMessage;\n }\n\n this._internals.setValidity(\n message ? { customError: true } : {},\n message,\n select,\n );\n }\n\n private _validate() {\n const select = this.shadowRoot?.querySelector(\"select\");\n if (!select) return;\n\n // Get the native validation state\n let message = select.validationMessage;\n this._manageRequire(); // Makes sure the required state is checked\n\n this._setValidityMessage(message);\n }\n\n /********************** Functions **********************/\n // This helper function is called to perform the element's native validation.\n checkValidity(): boolean {\n const select = this.shadowRoot?.querySelector(\"select\");\n return select ? select.checkValidity() : true;\n }\n\n private _handleInvalid(event: Event) {\n event.preventDefault();\n this._hasUserInteracted = true; // Start aggressive mode due to form submission\n this._validate();\n this.showError = true;\n\n const select = this.shadowRoot?.querySelector(\"select\");\n if (select) {\n // Focus only if this is the first invalid element (top-down approach)\n const form = this._internals.form;\n if (form) {\n const elements = Array.from(form.elements) as Array<\n HTMLElement & { checkValidity?: () => boolean }\n >;\n // Find the first element in the form that is invalid\n const firstInvalidElement = elements.find(\n (element) =>\n typeof element.checkValidity === \"function\" &&\n !element.checkValidity(),\n );\n if (firstInvalidElement === this) {\n select.focus();\n }\n } else {\n // If not part of a form, simply focus.\n select.focus();\n }\n }\n }\n\n /******************** Event Handlers ********************/\n // Handle change event to bubble up selected value\n private _handleChange(e: Event) {\n const select = e.target as HTMLSelectElement;\n this.value = select.value;\n this._internals.setFormValue(this.value);\n\n // Field is invalid after unfocused, validate aggressively on each change (e.g. Eager mode: a combination of aggressive and lazy.)\n if (this._hasUserInteracted) {\n this._validate(); // Validate immediately if an error was found before\n }\n\n this.dispatchEvent(\n new CustomEvent(\"change\", {\n detail: { value: this.value },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n // Handle focus event\n private _handleFocus() {\n this.dispatchEvent(new Event(\"nys-focus\"));\n }\n\n // Handle blur event\n private _handleBlur() {\n if (!this._hasUserInteracted) {\n this._hasUserInteracted = true;\n }\n this._validate();\n this.dispatchEvent(new Event(\"nys-blur\"));\n }\n\n // Check if the current value matches any option, and if so, set it as selected\n updated(changedProperties: Map<string, unknown>): void {\n super.updated(changedProperties);\n\n // This ensures the value is set correctly after the component renders\n if (changedProperties.has(\"value\")) {\n const selectElement = this.shadowRoot?.querySelector(\"select\");\n if (selectElement) {\n selectElement.value = this.value;\n }\n }\n }\n\n render() {\n return html`\n <div class=\"nys-select\">\n <nys-label\n id=${this.id}\n label=${this.label}\n description=${this.description}\n flag=${this.required ? \"required\" : this.optional ? \"optional\" : \"\"}\n >\n <slot name=\"description\" slot=\"description\">${this.description}</slot>\n </nys-label>\n <div class=\"nys-select__selectwrapper\">\n <select\n class=\"nys-select__select\"\n name=${this.name}\n id=${this.id}\n ?disabled=${this.disabled}\n ?required=${this.required}\n aria-disabled=\"${this.disabled}\"\n aria-label=\"${[this.label, this.description]\n .filter(Boolean)\n .join(\" \")}\"\n .value=${this.value}\n @focus=\"${this._handleFocus}\"\n @blur=\"${this._handleBlur}\"\n @change=\"${this._handleChange}\"\n >\n <option hidden disabled selected value></option>\n </select>\n <slot\n @slotchange=\"${this._handleSlotChange}\"\n style=\"display: none;\"\n ></slot>\n <nys-icon\n name=\"chevron_down\"\n size=\"xl\"\n class=\"nys-select__icon\"\n ></nys-icon>\n </div>\n <nys-errormessage\n ?showError=${this.showError}\n errorMessage=${this._internals.validationMessage || this.errorMessage}\n ></nys-errormessage>\n </div>\n `;\n }\n}\n\nif (!customElements.get(\"nys-select\")) {\n customElements.define(\"nys-select\", NysSelect);\n}\n"],"names":["t","e","s","o","n$2","r","n","S","c","i","h","a","l","p","d","u","f","y","b","_a","styles","css","NysOption","LitElement","slot","assignedNodes","html","__decorateClass","property","selectIdCounter","_NysSelect","value","select","_b","opt","node","optionElement","message","event","form","element","changedProperties","selectElement","NysSelect"],"mappings":";;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,MAAMA,IAAE,YAAWC,IAAED,EAAE,eAAsBA,EAAE,aAAX,UAAqBA,EAAE,SAAS,iBAAe,wBAAuB,SAAS,aAAW,aAAY,cAAc,WAAUE,IAAE,OAAM,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3,"file":"nys-select.js","sources":["../../../node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/@lit/reactive-element/decorators/property.js","../src/nys-select.styles.ts","../src/nys-option.ts","../src/nys-select.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:r,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e(this.prototype,t,r)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...h(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:\"open\"},b[d(\"elementProperties\")]=new Map,b[d(\"finalized\")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push(\"2.0.4\");export{b as ReactiveElement,u as defaultConverter,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import { css } from \"lit\";\n\nexport default css`\n :host {\n /* Global Select Styles */\n --_nys-select-width: 100%;\n --_nys-select-font-family: var(\n --nys-font-family-ui,\n var(\n --nys-font-family-sans,\n \"Proxima Nova\",\n \"Helvetica Neue\",\n \"Helvetica\",\n \"Arial\",\n sans-serif\n )\n );\n --_nys-select-font-size: var(--nys-font-size-ui-md, 16px);\n --_nys-select-font-weight: var(--nys-font-weight-regular, 400);\n --_nys-select-line-height: var(--nys-font-lineheight-ui-md, 24px);\n --_nys-select-gap: var(--nys-space-50, 4px);\n --_nys-select-border-radius: var(--nys-radius-md, 4px);\n --_nys-select-padding: var(--nys-space-100, 8px) var(--nys-space-400, 32px)\n var(--nys-space-100, 8px) var(--nys-space-100, 8px);\n\n /* Global Select Colors */\n --_nys-select-color: var(--nys-color-text, #1b1b1b);\n --_nys-select-color--error: var(\n --nys-color-danger,\n var(--nys-color-red-600, #b52c2c)\n );\n --_nys-select-background-color: var(--nys-color-ink-reverse, #fff);\n --_nys-select-background-color--disabled: var(\n --nys-color-neutral-50,\n #ededed\n );\n --_nys-select-color--disabled: var(--nys-color-text-disabled, #bec0c1);\n\n /* Select Outline & Border States */\n --_nys-select-border-width: var(--nys-border-width-sm, 1px);\n\n --_nys-select-border-color: var(--nys-color-neutral-400, #909395);\n --_nys-select-border-color--hover: var(--nys-color-neutral-900, #1b1b1b);\n --_nys-select-border-color--focus: var(--nys-color-focus, #004dd1);\n --_nys-select-border-color--disabled: var(--nys-color-neutral-200, #bec0c1);\n\n --_nys-select-border-default: var(--nys-border-width-sm, 1px) solid\n var(--nys-color-neutral-400, #909395);\n --_nys-select-border-focus: var(--nys-border-width-sm, 1px) solid\n var(--nys-color-focus, var(--nys-color-blue-600, #004dd1));\n --_nys-select-border-disabled: var(--nys-border-width-sm, 1px) solid\n var(--nys-color-neutral-200, #bec0c1);\n --_nys-select-border-hover: var(--nys-border-width-sm, 1px) solid\n var(--nys-color-neutral-900, #1b1b1b);\n }\n\n .nys-select {\n display: flex;\n flex-direction: column;\n gap: var(--_nys-select-gap);\n font-family: var(--_nys-select-font-family);\n }\n\n .nys-select__select {\n color: var(--_nys-select-color);\n font-weight: var(--_nys-select-font-weight);\n border-radius: var(--_nys-select-border-radius);\n border: solid var(--_nys-select-border-width)\n var(--_nys-select-border-color);\n font-size: var(--_nys-select-font-size);\n padding: var(--_nys-select-padding);\n width: var(--_nys-select-width);\n max-width: 100%;\n text-indent: 1px;\n text-overflow: \"\";\n background: var(--_nys-select-background-color);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n text-overflow: ellipsis;\n }\n\n .nys-select__selectwrapper {\n position: relative;\n display: inline-block;\n width: var(--_nys-select-width);\n max-width: 100%;\n }\n\n .nys-select__icon {\n color: var(--_nys-select-color);\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none;\n }\n\n :host([width=\"sm\"]) {\n --_nys-select-width: var(--nys-select-form-width-sm, 88px);\n }\n\n :host([width=\"md\"]) {\n --_nys-select-width: var(--nys-select-form-width-md, 200px);\n }\n\n :host([width=\"lg\"]) {\n --_nys-select-width: var(--nys-select-form-width-lg, 384px);\n }\n\n :host([width=\"full\"]) {\n --_nys-select-width: 100%;\n flex: 1; /* stretches width for flex container */\n }\n\n /* Hover */\n .nys-select__select:hover:not(:disabled) {\n cursor: pointer;\n border-color: var(--_nys-select-border-color--hover);\n outline: solid var(--_nys-select-border-width)\n var(--_nys-select-border-color--hover);\n }\n\n /* Focused */\n .nys-select__select:focus {\n border-color: var(--_nys-select-border-color--focus);\n outline: solid var(--_nys-select-border-width)\n var(--_nys-select-border-color--focus);\n }\n\n /* Disabled */\n .nys-select__select:disabled {\n background-color: var(--_nys-select-background-color--disabled);\n border-color: var(--_nys-select-border-color--disabled);\n cursor: not-allowed;\n color: var(--_nys-select-color--disabled);\n }\n .nys-select__select:disabled ~ .nys-select__icon {\n color: var(--_nys-select-color--disabled);\n }\n\n :host([showError]) {\n --_nys-select-border-default: var(--nys-border-width-sm, 1px) solid\n var(--_nys-select-color--error);\n }\n`;\n","import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nexport class NysOption extends LitElement {\n @property({ type: Boolean, reflect: true }) disabled = false;\n @property({ type: Boolean, reflect: true }) selected = false;\n @property({ type: String }) value = \"\";\n @property({ type: String }) label = \"\";\n @property({ type: Boolean, reflect: true }) hidden = false;\n\n firstUpdated() {\n const slot = this.shadowRoot?.querySelector(\"slot\");\n if (slot) {\n slot.addEventListener(\"slotchange\", () => {\n const assignedNodes = slot.assignedNodes({ flatten: true });\n if (assignedNodes.length > 0) {\n this.label = assignedNodes[0].textContent?.trim() || \"\";\n }\n });\n }\n }\n\n render() {\n return html`\n <option\n ?disabled=${this.disabled}\n ?selected=${this.selected}\n value=${this.value}\n label=${this.label}\n ?hidden=${this.hidden}\n >\n <slot>${this.label}</slot>\n </option>\n `;\n }\n}\n\ncustomElements.define(\"nys-option\", NysOption);\n","import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport styles from \"./nys-select.styles\";\nimport { NysOption } from \"./nys-option\";\n\nlet selectIdCounter = 0; // Counter for generating unique IDs\n\nexport class NysSelect extends LitElement {\n @property({ type: String }) id = \"\";\n @property({ type: String, reflect: true }) name = \"\";\n @property({ type: String }) label = \"\";\n @property({ type: String }) description = \"\";\n @property({ type: String }) value = \"\";\n @property({ type: Boolean, reflect: true }) disabled = false;\n @property({ type: Boolean, reflect: true }) required = false;\n @property({ type: Boolean, reflect: true }) optional = false;\n @property({ type: String }) form = \"\";\n @property({ type: Boolean, reflect: true }) showError = false;\n @property({ type: String }) errorMessage = \"\";\n private static readonly VALID_WIDTHS = [\"sm\", \"md\", \"lg\", \"full\"] as const;\n private _width: (typeof NysSelect.VALID_WIDTHS)[number] = \"md\";\n\n // Getter and setter for the `width` property.\n @property({ reflect: true })\n get width(): (typeof NysSelect.VALID_WIDTHS)[number] {\n return this._width;\n }\n\n set width(value: string) {\n // Check if the provided value is in VALID_WIDTHS. If not, default to \"full\".\n this._width = NysSelect.VALID_WIDTHS.includes(\n value as (typeof NysSelect.VALID_WIDTHS)[number],\n )\n ? (value as (typeof NysSelect.VALID_WIDTHS)[number])\n : \"full\";\n }\n\n static styles = styles;\n\n private _hasUserInteracted = false; // need this flag for \"eager mode\"\n private _internals: ElementInternals;\n\n /********************** Lifecycle updates **********************/\n static formAssociated = true; // allows use of elementInternals' API\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n\n // Generate a unique ID if one is not provided\n connectedCallback() {\n super.connectedCallback();\n if (!this.id) {\n this.id = `nys-select-${Date.now()}-${selectIdCounter++}`;\n }\n this.addEventListener(\"invalid\", this._handleInvalid);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener(\"invalid\", this._handleInvalid);\n }\n\n firstUpdated() {\n // This ensures our element always participates in the form\n this._setValue();\n }\n\n // This callback is automatically called when the parent form is reset.\n formResetCallback() {\n this.value = \"\";\n }\n\n private _handleSlotChange() {\n const slot = this.shadowRoot?.querySelector(\n 'slot:not([name=\"description\"])',\n ) as HTMLSlotElement | null;\n const select = this.shadowRoot?.querySelector(\"select\");\n\n if (!slot || !select) return;\n\n // Clean up any previously cloned <nys-option> so we don't get duplicates\n select\n .querySelectorAll(\"option:not([hidden])\")\n .forEach((opt) => opt.remove());\n\n const assignedElements = slot.assignedElements({ flatten: true });\n\n // Clone and append slotted elements\n assignedElements.forEach((node) => {\n if (node instanceof NysOption) {\n const optionElement = document.createElement(\"option\");\n optionElement.value = node.value;\n optionElement.textContent =\n node.label || node.textContent?.trim() || \"\";\n optionElement.disabled = node.disabled;\n optionElement.selected = node.selected;\n select.appendChild(optionElement);\n }\n });\n }\n /********************** Form Integration **********************/\n private _setValue() {\n this._internals.setFormValue(this.value);\n this._manageRequire(); // Check validation when value is set\n }\n\n private _manageRequire() {\n const select = this.shadowRoot?.querySelector(\"select\");\n if (!select) return;\n\n const message = this.errorMessage || \"Please select an option.\";\n const isInvalid = this.required && !this.value;\n\n if (isInvalid) {\n this._internals.ariaRequired = \"true\"; // Screen readers should announce error\n this._internals.setValidity({ valueMissing: true }, message, select);\n } else {\n this._internals.ariaRequired = \"false\"; // Reset when valid\n this._internals.setValidity({});\n this._hasUserInteracted = false; // Reset the interaction flag, make lazy again\n }\n }\n\n private _setValidityMessage(message: string = \"\") {\n const select = this.shadowRoot?.querySelector(\"select\");\n if (!select) return;\n\n // Toggle the HTML <div> tag error message\n this.showError = !!message;\n // If user sets errorMessage, this will always override the native validation message\n if (this.errorMessage?.trim() && message !== \"\") {\n message = this.errorMessage;\n }\n\n this._internals.setValidity(\n message ? { customError: true } : {},\n message,\n select,\n );\n }\n\n private _validate() {\n const select = this.shadowRoot?.querySelector(\"select\");\n if (!select) return;\n\n // Get the native validation state\n let message = select.validationMessage;\n this._manageRequire(); // Makes sure the required state is checked\n\n this._setValidityMessage(message);\n }\n\n /********************** Functions **********************/\n // This helper function is called to perform the element's native validation.\n checkValidity(): boolean {\n const select = this.shadowRoot?.querySelector(\"select\");\n return select ? select.checkValidity() : true;\n }\n\n private _handleInvalid(event: Event) {\n event.preventDefault();\n this._hasUserInteracted = true; // Start aggressive mode due to form submission\n this._validate();\n this.showError = true;\n\n const select = this.shadowRoot?.querySelector(\"select\");\n if (select) {\n // Focus only if this is the first invalid element (top-down approach)\n const form = this._internals.form;\n if (form) {\n const elements = Array.from(form.elements) as Array<\n HTMLElement & { checkValidity?: () => boolean }\n >;\n // Find the first element in the form that is invalid\n const firstInvalidElement = elements.find(\n (element) =>\n typeof element.checkValidity === \"function\" &&\n !element.checkValidity(),\n );\n if (firstInvalidElement === this) {\n select.focus();\n }\n } else {\n // If not part of a form, simply focus.\n select.focus();\n }\n }\n }\n\n /******************** Event Handlers ********************/\n // Handle change event to bubble up selected value\n private _handleChange(e: Event) {\n const select = e.target as HTMLSelectElement;\n this.value = select.value;\n this._internals.setFormValue(this.value);\n\n // Field is invalid after unfocused, validate aggressively on each change (e.g. Eager mode: a combination of aggressive and lazy.)\n if (this._hasUserInteracted) {\n this._validate(); // Validate immediately if an error was found before\n }\n\n this.dispatchEvent(\n new CustomEvent(\"change\", {\n detail: { id: this.id, value: this.value },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n // Handle focus event\n private _handleFocus() {\n this.dispatchEvent(new Event(\"nys-focus\"));\n }\n\n // Handle blur event\n private _handleBlur() {\n if (!this._hasUserInteracted) {\n this._hasUserInteracted = true;\n }\n this._validate();\n this.dispatchEvent(new Event(\"nys-blur\"));\n }\n\n // Check if the current value matches any option, and if so, set it as selected\n updated(changedProperties: Map<string, unknown>): void {\n super.updated(changedProperties);\n\n // This ensures the value is set correctly after the component renders\n if (changedProperties.has(\"value\")) {\n const selectElement = this.shadowRoot?.querySelector(\"select\");\n if (selectElement) {\n selectElement.value = this.value;\n }\n }\n }\n\n render() {\n return html`\n <div class=\"nys-select\">\n <nys-label\n for=${this.id}\n label=${this.label}\n description=${this.description}\n flag=${this.required ? \"required\" : this.optional ? \"optional\" : \"\"}\n >\n <slot name=\"description\" slot=\"description\">${this.description}</slot>\n </nys-label>\n <div class=\"nys-select__selectwrapper\">\n <select\n class=\"nys-select__select\"\n name=${this.name}\n id=${this.id}\n ?disabled=${this.disabled}\n ?required=${this.required}\n aria-disabled=\"${this.disabled}\"\n aria-label=\"${[this.label, this.description]\n .filter(Boolean)\n .join(\" \")}\"\n .value=${this.value}\n @focus=\"${this._handleFocus}\"\n @blur=\"${this._handleBlur}\"\n @change=\"${this._handleChange}\"\n >\n <option hidden disabled selected value></option>\n </select>\n <slot\n @slotchange=\"${this._handleSlotChange}\"\n style=\"display: none;\"\n ></slot>\n <nys-icon\n name=\"chevron_down\"\n size=\"xl\"\n class=\"nys-select__icon\"\n ></nys-icon>\n </div>\n <nys-errormessage\n ?showError=${this.showError}\n errorMessage=${this._internals.validationMessage || this.errorMessage}\n ></nys-errormessage>\n </div>\n `;\n }\n}\n\nif (!customElements.get(\"nys-select\")) {\n customElements.define(\"nys-select\", NysSelect);\n}\n"],"names":["t","e","s","o","n$2","r","n","S","c","i","h","a","l","p","d","u","f","y","b","_a","styles","css","NysOption","LitElement","slot","assignedNodes","html","__decorateClass","property","selectIdCounter","_NysSelect","value","select","_b","opt","node","optionElement","message","event","form","element","changedProperties","selectElement","NysSelect"],"mappings":";;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,MAAMA,IAAE,YAAWC,IAAED,EAAE,eAAsBA,EAAE,aAAX,UAAqBA,EAAE,SAAS,iBAAe,wBAAuB,SAAS,aAAW,aAAY,cAAc,WAAUE,IAAE,OAAM,GAAGC,IAAE,oBAAI;AAAO,IAAAC,IAAC,MAAO;AAAA,EAAC,YAAYJ,GAAEC,GAAEE,GAA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
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "The Select component from the NYS Design System.",
|
|
5
5
|
"module": "dist/nys-select.js",
|
|
6
6
|
"exports": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"lit": "^3.2.1"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nysds/nys-icon": "^1.
|
|
28
|
-
"@nysds/nys-label": "^1.
|
|
29
|
-
"@nysds/nys-errormessage": "^1.
|
|
27
|
+
"@nysds/nys-icon": "^1.8.0",
|
|
28
|
+
"@nysds/nys-label": "^1.8.0",
|
|
29
|
+
"@nysds/nys-errormessage": "^1.8.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"lit": "^3.2.1",
|