@nysds/components 1.1.9 → 1.2.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 +413 -429
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +88 -97
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-avatar/src/nys-avatar.d.ts +3 -0
- package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +1 -0
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +1 -0
- package/dist/packages/nys-select/src/nys-select.d.ts +0 -1
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +0 -1
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +0 -1
- package/dist/packages/nys-toggle/src/nys-toggle.d.ts +2 -1
- package/package.json +12 -15
package/dist/nysds.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { css as b, LitElement as g, html as h } from "lit";
|
|
2
|
-
import { property as l, state as
|
|
3
|
-
import { ifDefined as
|
|
2
|
+
import { property as l, state as x1 } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined as f } from "lit/directives/if-defined.js";
|
|
4
4
|
/*!
|
|
5
|
-
* New York State Design System (v1.
|
|
5
|
+
* New York State Design System (v1.2.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
|
|
@@ -261,7 +261,7 @@ const o5 = b`
|
|
|
261
261
|
* Copyright 2019 Google LLC
|
|
262
262
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
263
263
|
*/
|
|
264
|
-
const $2 = globalThis, lt = $2.ShadowRoot && ($2.ShadyCSS === void 0 || $2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Me = Symbol(),
|
|
264
|
+
const $2 = globalThis, lt = $2.ShadowRoot && ($2.ShadyCSS === void 0 || $2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Me = Symbol(), Vt = /* @__PURE__ */ new WeakMap();
|
|
265
265
|
let n5 = class {
|
|
266
266
|
constructor(t, e, s) {
|
|
267
267
|
if (this._$cssResult$ = !0, s !== Me) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -272,7 +272,7 @@ let n5 = class {
|
|
|
272
272
|
const e = this.t;
|
|
273
273
|
if (lt && t === void 0) {
|
|
274
274
|
const s = e !== void 0 && e.length === 1;
|
|
275
|
-
s && (t =
|
|
275
|
+
s && (t = Vt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Vt.set(e, t));
|
|
276
276
|
}
|
|
277
277
|
return t;
|
|
278
278
|
}
|
|
@@ -1180,10 +1180,10 @@ const U1 = (Q1 = class extends g {
|
|
|
1180
1180
|
) ? o : "sm";
|
|
1181
1181
|
}
|
|
1182
1182
|
getIcon() {
|
|
1183
|
-
const o = v5[this.name]
|
|
1183
|
+
const o = v5[this.name];
|
|
1184
1184
|
if (!o) return null;
|
|
1185
|
-
const
|
|
1186
|
-
return
|
|
1185
|
+
const t = new DOMParser().parseFromString(o, "image/svg+xml").documentElement;
|
|
1186
|
+
return t instanceof SVGElement ? (t.setAttribute("role", "img"), this.label ? (t.setAttribute("aria-label", this.label), t.removeAttribute("aria-hidden")) : (t.setAttribute("aria-hidden", "true"), t.removeAttribute("aria-label")), t.style.rotate = `${this.rotate}deg`, t.style.color = this.color || "currentcolor", t.classList.add(`nys-icon--${this.size}`), t.classList.add("nys-icon--svg"), this.flip && t.classList.add(`nys-icon--flip-${this.flip}`), t) : null;
|
|
1187
1187
|
}
|
|
1188
1188
|
render() {
|
|
1189
1189
|
const o = this.getIcon();
|
|
@@ -1277,7 +1277,7 @@ const w5 = (o) => new x5(typeof o == "string" ? o : o + "", void 0, De), k5 = (o
|
|
|
1277
1277
|
* Copyright 2017 Google LLC
|
|
1278
1278
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1279
1279
|
*/
|
|
1280
|
-
const { is: $5, defineProperty: S5, getOwnPropertyDescriptor: L5, getOwnPropertyNames: E5, getOwnPropertySymbols: A5, getPrototypeOf: M5 } = Object, I1 = globalThis, Bt = I1.trustedTypes, D5 = Bt ? Bt.emptyScript : "", Tt = I1.reactiveElementPolyfillSupport, c2 = (o, t) => o,
|
|
1280
|
+
const { is: $5, defineProperty: S5, getOwnPropertyDescriptor: L5, getOwnPropertyNames: E5, getOwnPropertySymbols: A5, getPrototypeOf: M5 } = Object, I1 = globalThis, Bt = I1.trustedTypes, D5 = Bt ? Bt.emptyScript : "", Tt = I1.reactiveElementPolyfillSupport, c2 = (o, t) => o, H2 = { toAttribute(o, t) {
|
|
1281
1281
|
switch (t) {
|
|
1282
1282
|
case Boolean:
|
|
1283
1283
|
o = o ? D5 : null;
|
|
@@ -1305,7 +1305,7 @@ const { is: $5, defineProperty: S5, getOwnPropertyDescriptor: L5, getOwnProperty
|
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
return e;
|
|
1308
|
-
} }, dt = (o, t) => !$5(o, t), Rt = { attribute: !0, type: String, converter:
|
|
1308
|
+
} }, dt = (o, t) => !$5(o, t), Rt = { attribute: !0, type: String, converter: H2, reflect: !1, hasChanged: dt };
|
|
1309
1309
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), I1.litPropertyMetadata ?? (I1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1310
1310
|
let t2 = class extends HTMLElement {
|
|
1311
1311
|
static addInitializer(t) {
|
|
@@ -1418,7 +1418,7 @@ let t2 = class extends HTMLElement {
|
|
|
1418
1418
|
var s;
|
|
1419
1419
|
const r = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, r);
|
|
1420
1420
|
if (i !== void 0 && r.reflect === !0) {
|
|
1421
|
-
const n = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter :
|
|
1421
|
+
const n = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : H2).toAttribute(e, r.type);
|
|
1422
1422
|
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
@@ -1426,7 +1426,7 @@ let t2 = class extends HTMLElement {
|
|
|
1426
1426
|
var s;
|
|
1427
1427
|
const r = this.constructor, i = r._$Eh.get(t);
|
|
1428
1428
|
if (i !== void 0 && this._$Em !== i) {
|
|
1429
|
-
const n = r.getPropertyOptions(i), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((s = n.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? n.converter :
|
|
1429
|
+
const n = r.getPropertyOptions(i), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((s = n.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? n.converter : H2;
|
|
1430
1430
|
this._$Em = i, this[i] = a.fromAttribute(e, n.type), this._$Em = null;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
@@ -1511,7 +1511,7 @@ t2.elementStyles = [], t2.shadowRootOptions = { mode: "open" }, t2[c2("elementPr
|
|
|
1511
1511
|
* Copyright 2017 Google LLC
|
|
1512
1512
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1513
1513
|
*/
|
|
1514
|
-
const
|
|
1514
|
+
const H5 = { attribute: !0, type: String, converter: H2, reflect: !1, hasChanged: dt }, V5 = (o = H5, t, e) => {
|
|
1515
1515
|
const { kind: s, metadata: r } = e;
|
|
1516
1516
|
let i = globalThis.litPropertyMetadata.get(r);
|
|
1517
1517
|
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), i.set(e.name, o), s === "accessor") {
|
|
@@ -1532,8 +1532,8 @@ const V5 = { attribute: !0, type: String, converter: V2, reflect: !1, hasChanged
|
|
|
1532
1532
|
}
|
|
1533
1533
|
throw Error("Unsupported decorator location: " + s);
|
|
1534
1534
|
};
|
|
1535
|
-
function
|
|
1536
|
-
return (t, e) => typeof e == "object" ?
|
|
1535
|
+
function H(o) {
|
|
1536
|
+
return (t, e) => typeof e == "object" ? V5(o, t, e) : ((s, r, i) => {
|
|
1537
1537
|
const n = r.hasOwnProperty(i);
|
|
1538
1538
|
return r.constructor.createProperty(i, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(r, i) : void 0;
|
|
1539
1539
|
})(o, t, e);
|
|
@@ -1950,9 +1950,9 @@ const U5 = b`
|
|
|
1950
1950
|
* Copyright 2017 Google LLC
|
|
1951
1951
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1952
1952
|
*/
|
|
1953
|
-
const
|
|
1954
|
-
\f\r]`, e2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, jt = />/g,
|
|
1955
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ft = /'/g, Gt = /"/g, Ue = /^(?:script|style|textarea|title)$/i, p2 = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(),
|
|
1953
|
+
const V2 = globalThis, U2 = V2.trustedTypes, Nt = U2 ? U2.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, He = "$lit$", p1 = `lit$${Math.random().toFixed(9).slice(2)}$`, Ve = "?" + p1, z5 = `<${Ve}>`, M1 = document, z2 = () => M1.createComment(""), C2 = (o) => o === null || typeof o != "object" && typeof o != "function", yt = Array.isArray, P5 = (o) => yt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", et = `[
|
|
1954
|
+
\f\r]`, e2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, jt = />/g, w1 = RegExp(`>|${et}(?:([^\\s"'>=/]+)(${et}*=${et}*(?:[^
|
|
1955
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ft = /'/g, Gt = /"/g, Ue = /^(?:script|style|textarea|title)$/i, p2 = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), L1 = M1.createTreeWalker(M1, 129);
|
|
1956
1956
|
function ze(o, t) {
|
|
1957
1957
|
if (!yt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1958
1958
|
return Nt !== void 0 ? Nt.createHTML(t) : t;
|
|
@@ -1963,9 +1963,9 @@ const Z5 = (o, t) => {
|
|
|
1963
1963
|
for (let a = 0; a < e; a++) {
|
|
1964
1964
|
const c = o[a];
|
|
1965
1965
|
let u, y, d = -1, C = 0;
|
|
1966
|
-
for (; C < c.length && (n.lastIndex = C, y = n.exec(c), y !== null); ) C = n.lastIndex, n === e2 ? y[1] === "!--" ? n = qt : y[1] !== void 0 ? n = jt : y[2] !== void 0 ? (Ue.test(y[2]) && (r = RegExp("</" + y[2], "g")), n =
|
|
1967
|
-
const p = n ===
|
|
1968
|
-
i += n === e2 ? c + z5 : d >= 0 ? (s.push(u), c.slice(0, d) +
|
|
1966
|
+
for (; C < c.length && (n.lastIndex = C, y = n.exec(c), y !== null); ) C = n.lastIndex, n === e2 ? y[1] === "!--" ? n = qt : y[1] !== void 0 ? n = jt : y[2] !== void 0 ? (Ue.test(y[2]) && (r = RegExp("</" + y[2], "g")), n = w1) : y[3] !== void 0 && (n = w1) : n === w1 ? y[0] === ">" ? (n = r ?? e2, d = -1) : y[1] === void 0 ? d = -2 : (d = n.lastIndex - y[2].length, u = y[1], n = y[3] === void 0 ? w1 : y[3] === '"' ? Gt : Ft) : n === Gt || n === Ft ? n = w1 : n === qt || n === jt ? n = e2 : (n = w1, r = void 0);
|
|
1967
|
+
const p = n === w1 && o[a + 1].startsWith("/>") ? " " : "";
|
|
1968
|
+
i += n === e2 ? c + z5 : d >= 0 ? (s.push(u), c.slice(0, d) + He + c.slice(d) + p1 + p) : c + p1 + (d === -2 ? a : p);
|
|
1969
1969
|
}
|
|
1970
1970
|
return [ze(o, i + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
1971
1971
|
};
|
|
@@ -1975,34 +1975,34 @@ let ot = class Pe {
|
|
|
1975
1975
|
this.parts = [];
|
|
1976
1976
|
let i = 0, n = 0;
|
|
1977
1977
|
const a = t.length - 1, c = this.parts, [u, y] = Z5(t, e);
|
|
1978
|
-
if (this.el = Pe.createElement(u, s),
|
|
1978
|
+
if (this.el = Pe.createElement(u, s), L1.currentNode = this.el.content, e === 2 || e === 3) {
|
|
1979
1979
|
const d = this.el.content.firstChild;
|
|
1980
1980
|
d.replaceWith(...d.childNodes);
|
|
1981
1981
|
}
|
|
1982
|
-
for (; (r =
|
|
1982
|
+
for (; (r = L1.nextNode()) !== null && c.length < a; ) {
|
|
1983
1983
|
if (r.nodeType === 1) {
|
|
1984
|
-
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(
|
|
1985
|
-
const C = y[n++], p = r.getAttribute(d).split(
|
|
1984
|
+
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(He)) {
|
|
1985
|
+
const C = y[n++], p = r.getAttribute(d).split(p1), I = /([.?@])?(.*)/.exec(C);
|
|
1986
1986
|
c.push({ type: 1, index: i, name: I[2], strings: p, ctor: I[1] === "." ? I5 : I[1] === "?" ? B5 : I[1] === "@" ? T5 : G2 }), r.removeAttribute(d);
|
|
1987
|
-
} else d.startsWith(
|
|
1987
|
+
} else d.startsWith(p1) && (c.push({ type: 6, index: i }), r.removeAttribute(d));
|
|
1988
1988
|
if (Ue.test(r.tagName)) {
|
|
1989
|
-
const d = r.textContent.split(
|
|
1989
|
+
const d = r.textContent.split(p1), C = d.length - 1;
|
|
1990
1990
|
if (C > 0) {
|
|
1991
1991
|
r.textContent = U2 ? U2.emptyScript : "";
|
|
1992
|
-
for (let p = 0; p < C; p++) r.append(d[p], z2()),
|
|
1992
|
+
for (let p = 0; p < C; p++) r.append(d[p], z2()), L1.nextNode(), c.push({ type: 2, index: ++i });
|
|
1993
1993
|
r.append(d[C], z2());
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
|
-
} else if (r.nodeType === 8) if (r.data ===
|
|
1996
|
+
} else if (r.nodeType === 8) if (r.data === Ve) c.push({ type: 2, index: i });
|
|
1997
1997
|
else {
|
|
1998
1998
|
let d = -1;
|
|
1999
|
-
for (; (d = r.data.indexOf(
|
|
1999
|
+
for (; (d = r.data.indexOf(p1, d + 1)) !== -1; ) c.push({ type: 7, index: i }), d += p1.length - 1;
|
|
2000
2000
|
}
|
|
2001
2001
|
i++;
|
|
2002
2002
|
}
|
|
2003
2003
|
}
|
|
2004
2004
|
static createElement(t, e) {
|
|
2005
|
-
const s =
|
|
2005
|
+
const s = M1.createElement("template");
|
|
2006
2006
|
return s.innerHTML = t, s;
|
|
2007
2007
|
}
|
|
2008
2008
|
};
|
|
@@ -2024,17 +2024,17 @@ let O5 = class {
|
|
|
2024
2024
|
return this._$AM._$AU;
|
|
2025
2025
|
}
|
|
2026
2026
|
u(t) {
|
|
2027
|
-
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ??
|
|
2028
|
-
|
|
2029
|
-
let i =
|
|
2027
|
+
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? M1).importNode(e, !0);
|
|
2028
|
+
L1.currentNode = r;
|
|
2029
|
+
let i = L1.nextNode(), n = 0, a = 0, c = s[0];
|
|
2030
2030
|
for (; c !== void 0; ) {
|
|
2031
2031
|
if (n === c.index) {
|
|
2032
2032
|
let u;
|
|
2033
2033
|
c.type === 2 ? u = new Ze(i, i.nextSibling, this, t) : c.type === 1 ? u = new c.ctor(i, c.name, c.strings, this, t) : c.type === 6 && (u = new R5(i, this, t)), this._$AV.push(u), c = s[++a];
|
|
2034
2034
|
}
|
|
2035
|
-
n !== (c == null ? void 0 : c.index) && (i =
|
|
2035
|
+
n !== (c == null ? void 0 : c.index) && (i = L1.nextNode(), n++);
|
|
2036
2036
|
}
|
|
2037
|
-
return
|
|
2037
|
+
return L1.currentNode = M1, r;
|
|
2038
2038
|
}
|
|
2039
2039
|
p(t) {
|
|
2040
2040
|
let e = 0;
|
|
@@ -2069,7 +2069,7 @@ let O5 = class {
|
|
|
2069
2069
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
2070
2070
|
}
|
|
2071
2071
|
_(t) {
|
|
2072
|
-
this._$AH !== $ && C2(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
2072
|
+
this._$AH !== $ && C2(this._$AH) ? this._$AA.nextSibling.data = t : this.T(M1.createTextNode(t)), this._$AH = t;
|
|
2073
2073
|
}
|
|
2074
2074
|
$(t) {
|
|
2075
2075
|
var e;
|
|
@@ -2164,15 +2164,15 @@ let O5 = class {
|
|
|
2164
2164
|
B1(this, t);
|
|
2165
2165
|
}
|
|
2166
2166
|
};
|
|
2167
|
-
const Yt =
|
|
2168
|
-
Yt == null || Yt(ot, Ze), (
|
|
2167
|
+
const Yt = V2.litHtmlPolyfillSupport;
|
|
2168
|
+
Yt == null || Yt(ot, Ze), (V2.litHtmlVersions ?? (V2.litHtmlVersions = [])).push("3.2.1");
|
|
2169
2169
|
/**
|
|
2170
2170
|
* @license
|
|
2171
2171
|
* Copyright 2018 Google LLC
|
|
2172
2172
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2173
2173
|
*/
|
|
2174
|
-
const
|
|
2175
|
-
var N5 = Object.defineProperty, q5 = Object.getOwnPropertyDescriptor,
|
|
2174
|
+
const y1 = (o) => o ?? $;
|
|
2175
|
+
var N5 = Object.defineProperty, q5 = Object.getOwnPropertyDescriptor, V = (o, t, e, s) => {
|
|
2176
2176
|
for (var r = s > 1 ? void 0 : s ? q5(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
2177
2177
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
2178
2178
|
return s && r && N5(t, e, r), r;
|
|
@@ -2240,18 +2240,18 @@ const E = (j = class extends g {
|
|
|
2240
2240
|
/******************** Event Handlers ********************/
|
|
2241
2241
|
// Handle focus event
|
|
2242
2242
|
_handleFocus() {
|
|
2243
|
-
this.dispatchEvent(new Event("focus"));
|
|
2243
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
2244
2244
|
}
|
|
2245
2245
|
// Handle blur event
|
|
2246
2246
|
_handleBlur() {
|
|
2247
|
-
this.dispatchEvent(new Event("blur"));
|
|
2247
|
+
this.dispatchEvent(new Event("nys-blur"));
|
|
2248
2248
|
}
|
|
2249
2249
|
_handleClick(o) {
|
|
2250
2250
|
if (this.disabled) {
|
|
2251
2251
|
o.preventDefault();
|
|
2252
2252
|
return;
|
|
2253
2253
|
}
|
|
2254
|
-
this._manageFormAction(o);
|
|
2254
|
+
this._manageFormAction(o), this.dispatchEvent(new Event("nys-click"));
|
|
2255
2255
|
}
|
|
2256
2256
|
// Handle keydown for keyboard accessibility
|
|
2257
2257
|
_handleKeydown(o) {
|
|
@@ -2263,12 +2263,12 @@ const E = (j = class extends g {
|
|
|
2263
2263
|
<div class="nys-button__linkwrapper">
|
|
2264
2264
|
<a
|
|
2265
2265
|
class="nys-button"
|
|
2266
|
-
id=${
|
|
2267
|
-
name=${
|
|
2266
|
+
id=${y1(this.id)}
|
|
2267
|
+
name=${y1(this.name ? this.name : void 0)}
|
|
2268
2268
|
?disabled=${this.disabled}
|
|
2269
2269
|
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
2270
|
-
form=${
|
|
2271
|
-
value=${
|
|
2270
|
+
form=${y1(this.form ? this.form : void 0)}
|
|
2271
|
+
value=${y1(this.value ? this.value : void 0)}
|
|
2272
2272
|
href=${this.href}
|
|
2273
2273
|
target=${this.target}
|
|
2274
2274
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
@@ -2288,11 +2288,11 @@ const E = (j = class extends g {
|
|
|
2288
2288
|
` : h`
|
|
2289
2289
|
<button
|
|
2290
2290
|
class="nys-button"
|
|
2291
|
-
id=${
|
|
2292
|
-
name=${
|
|
2291
|
+
id=${y1(this.id)}
|
|
2292
|
+
name=${y1(this.name ? this.name : void 0)}
|
|
2293
2293
|
?disabled=${this.disabled}
|
|
2294
|
-
form=${
|
|
2295
|
-
value=${
|
|
2294
|
+
form=${y1(this.form ? this.form : void 0)}
|
|
2295
|
+
value=${y1(this.value ? this.value : void 0)}
|
|
2296
2296
|
type=${this.type}
|
|
2297
2297
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
2298
2298
|
@click=${this._handleClick}
|
|
@@ -2323,56 +2323,56 @@ const E = (j = class extends g {
|
|
|
2323
2323
|
"_top",
|
|
2324
2324
|
"framename"
|
|
2325
2325
|
], j.styles = U5, j.formAssociated = !0, j);
|
|
2326
|
-
|
|
2327
|
-
|
|
2326
|
+
V([
|
|
2327
|
+
H({ type: String })
|
|
2328
2328
|
], E.prototype, "id", 2);
|
|
2329
|
-
|
|
2330
|
-
|
|
2329
|
+
V([
|
|
2330
|
+
H({ type: String, reflect: !0 })
|
|
2331
2331
|
], E.prototype, "name", 2);
|
|
2332
|
-
|
|
2333
|
-
|
|
2332
|
+
V([
|
|
2333
|
+
H({ reflect: !0 })
|
|
2334
2334
|
], E.prototype, "size", 1);
|
|
2335
|
-
|
|
2336
|
-
|
|
2335
|
+
V([
|
|
2336
|
+
H({ type: Boolean, reflect: !0 })
|
|
2337
2337
|
], E.prototype, "fullWidth", 2);
|
|
2338
|
-
|
|
2339
|
-
|
|
2338
|
+
V([
|
|
2339
|
+
H({ reflect: !0 })
|
|
2340
2340
|
], E.prototype, "variant", 1);
|
|
2341
|
-
|
|
2342
|
-
|
|
2341
|
+
V([
|
|
2342
|
+
H({ type: Boolean, reflect: !0 })
|
|
2343
2343
|
], E.prototype, "inverted", 2);
|
|
2344
|
-
|
|
2345
|
-
|
|
2344
|
+
V([
|
|
2345
|
+
H({ type: String })
|
|
2346
2346
|
], E.prototype, "label", 2);
|
|
2347
|
-
|
|
2348
|
-
|
|
2347
|
+
V([
|
|
2348
|
+
H({ type: String })
|
|
2349
2349
|
], E.prototype, "ariaLabel", 2);
|
|
2350
|
-
|
|
2351
|
-
|
|
2350
|
+
V([
|
|
2351
|
+
H({ type: String })
|
|
2352
2352
|
], E.prototype, "prefixIcon", 2);
|
|
2353
|
-
|
|
2354
|
-
|
|
2353
|
+
V([
|
|
2354
|
+
H({ type: String })
|
|
2355
2355
|
], E.prototype, "suffixIcon", 2);
|
|
2356
|
-
|
|
2357
|
-
|
|
2356
|
+
V([
|
|
2357
|
+
H({ type: Boolean, reflect: !0 })
|
|
2358
2358
|
], E.prototype, "disabled", 2);
|
|
2359
|
-
|
|
2360
|
-
|
|
2359
|
+
V([
|
|
2360
|
+
H({ type: String })
|
|
2361
2361
|
], E.prototype, "form", 2);
|
|
2362
|
-
|
|
2363
|
-
|
|
2362
|
+
V([
|
|
2363
|
+
H({ type: String })
|
|
2364
2364
|
], E.prototype, "value", 2);
|
|
2365
|
-
|
|
2366
|
-
|
|
2365
|
+
V([
|
|
2366
|
+
H({ reflect: !0 })
|
|
2367
2367
|
], E.prototype, "type", 1);
|
|
2368
|
-
|
|
2369
|
-
|
|
2368
|
+
V([
|
|
2369
|
+
H({ type: Function })
|
|
2370
2370
|
], E.prototype, "onClick", 2);
|
|
2371
|
-
|
|
2372
|
-
|
|
2371
|
+
V([
|
|
2372
|
+
H({ type: String })
|
|
2373
2373
|
], E.prototype, "href", 2);
|
|
2374
|
-
|
|
2375
|
-
|
|
2374
|
+
V([
|
|
2375
|
+
H({ reflect: !0 })
|
|
2376
2376
|
], E.prototype, "target", 1);
|
|
2377
2377
|
let F5 = E;
|
|
2378
2378
|
customElements.get("nys-button") || customElements.define("nys-button", F5);
|
|
@@ -2382,8 +2382,8 @@ var G5 = Object.defineProperty, W5 = Object.getOwnPropertyDescriptor, R = (o, t,
|
|
|
2382
2382
|
return s && r && G5(t, e, r), r;
|
|
2383
2383
|
};
|
|
2384
2384
|
let Y5 = 0;
|
|
2385
|
-
var
|
|
2386
|
-
const B = (
|
|
2385
|
+
var g1;
|
|
2386
|
+
const B = (g1 = class extends g {
|
|
2387
2387
|
constructor() {
|
|
2388
2388
|
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;
|
|
2389
2389
|
}
|
|
@@ -2391,7 +2391,7 @@ const B = (v1 = class extends g {
|
|
|
2391
2391
|
return this._type;
|
|
2392
2392
|
}
|
|
2393
2393
|
set type(t) {
|
|
2394
|
-
this._type =
|
|
2394
|
+
this._type = g1.VALID_TYPES.includes(
|
|
2395
2395
|
t
|
|
2396
2396
|
) ? t : "base";
|
|
2397
2397
|
}
|
|
@@ -2454,7 +2454,7 @@ const B = (v1 = class extends g {
|
|
|
2454
2454
|
id=${this.id}
|
|
2455
2455
|
class="nys-alert__container ${this._slotHasContent || ((s = this.text) == null ? void 0 : s.trim().length) > 0 ? "" : "nys-alert--centered"}"
|
|
2456
2456
|
role=${t}
|
|
2457
|
-
aria-label=${
|
|
2457
|
+
aria-label=${f(
|
|
2458
2458
|
e.trim() !== "" ? e : void 0
|
|
2459
2459
|
)}
|
|
2460
2460
|
>
|
|
@@ -2470,13 +2470,13 @@ const B = (v1 = class extends g {
|
|
|
2470
2470
|
${this._slotHasContent ? h`<slot></slot>` : ((r = this.text) == null ? void 0 : r.trim().length) > 0 ? h`<p class="nys-alert__text">${this.text}</p>` : ""}
|
|
2471
2471
|
${this.primaryAction || this.secondaryAction ? h`<div class="nys-alert__actions">
|
|
2472
2472
|
${this.primaryAction ? h`<a
|
|
2473
|
-
href=${
|
|
2473
|
+
href=${f(this.primaryAction || void 0)}
|
|
2474
2474
|
class="nys-alert__action nys-alert__primary"
|
|
2475
2475
|
>
|
|
2476
2476
|
${this.primaryLabel}
|
|
2477
2477
|
</a>` : ""}
|
|
2478
2478
|
${this.secondaryAction ? h`<a
|
|
2479
|
-
href=${
|
|
2479
|
+
href=${f(this.secondaryAction || void 0)}
|
|
2480
2480
|
class="nys-alert__action nys-alert__secondary"
|
|
2481
2481
|
>
|
|
2482
2482
|
${this.secondaryLabel}
|
|
@@ -2495,14 +2495,14 @@ const B = (v1 = class extends g {
|
|
|
2495
2495
|
</div>`}
|
|
2496
2496
|
`;
|
|
2497
2497
|
}
|
|
2498
|
-
},
|
|
2498
|
+
}, g1.styles = o5, g1.VALID_TYPES = [
|
|
2499
2499
|
"base",
|
|
2500
2500
|
"info",
|
|
2501
2501
|
"success",
|
|
2502
2502
|
"warning",
|
|
2503
2503
|
"danger",
|
|
2504
2504
|
"emergency"
|
|
2505
|
-
],
|
|
2505
|
+
], g1);
|
|
2506
2506
|
R([
|
|
2507
2507
|
l({ type: String })
|
|
2508
2508
|
], B.prototype, "id", 2);
|
|
@@ -2534,10 +2534,10 @@ R([
|
|
|
2534
2534
|
l({ type: String })
|
|
2535
2535
|
], B.prototype, "secondaryLabel", 2);
|
|
2536
2536
|
R([
|
|
2537
|
-
|
|
2537
|
+
x1()
|
|
2538
2538
|
], B.prototype, "_alertClosed", 2);
|
|
2539
2539
|
R([
|
|
2540
|
-
|
|
2540
|
+
x1()
|
|
2541
2541
|
], B.prototype, "_slotHasContent", 2);
|
|
2542
2542
|
R([
|
|
2543
2543
|
l({ reflect: !0 })
|
|
@@ -2612,23 +2612,23 @@ const J5 = b`
|
|
|
2612
2612
|
fill: currentColor;
|
|
2613
2613
|
}
|
|
2614
2614
|
`;
|
|
2615
|
-
var X5 = Object.defineProperty, Q5 = Object.getOwnPropertyDescriptor,
|
|
2615
|
+
var X5 = Object.defineProperty, Q5 = Object.getOwnPropertyDescriptor, d1 = (o, t, e, s) => {
|
|
2616
2616
|
for (var r = s > 1 ? void 0 : s ? Q5(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
2617
2617
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
2618
2618
|
return s && r && X5(t, e, r), r;
|
|
2619
2619
|
};
|
|
2620
2620
|
let ts = 0;
|
|
2621
|
-
var
|
|
2622
|
-
const
|
|
2621
|
+
var b1;
|
|
2622
|
+
const s1 = (b1 = class extends g {
|
|
2623
2623
|
constructor() {
|
|
2624
|
-
super(...arguments), this.id = "", this.label = "", this.image = "", this.initials = "", this.icon = "", this.color = "#555", this.lazy = !1, this._shape = "circle";
|
|
2624
|
+
super(...arguments), this.id = "", this.label = "", this.image = "", this.initials = "", this.icon = "", this.color = "#555", this.lazy = !1, this._shape = "circle", this._slotHasContent = !0;
|
|
2625
2625
|
}
|
|
2626
2626
|
get shape() {
|
|
2627
2627
|
return this._shape;
|
|
2628
2628
|
}
|
|
2629
2629
|
// Setter for the `shape` property.
|
|
2630
2630
|
set shape(t) {
|
|
2631
|
-
this._shape =
|
|
2631
|
+
this._shape = b1.VALID_SHAPES.includes(
|
|
2632
2632
|
t
|
|
2633
2633
|
) ? t : "circle", this.requestUpdate("shape");
|
|
2634
2634
|
}
|
|
@@ -2637,6 +2637,25 @@ const h1 = (g1 = class extends g {
|
|
|
2637
2637
|
connectedCallback() {
|
|
2638
2638
|
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${ts++}`);
|
|
2639
2639
|
}
|
|
2640
|
+
firstUpdated() {
|
|
2641
|
+
this._checkSlotContent();
|
|
2642
|
+
}
|
|
2643
|
+
async _checkSlotContent() {
|
|
2644
|
+
var s;
|
|
2645
|
+
const t = (s = this.shadowRoot) == null ? void 0 : s.querySelector("slot");
|
|
2646
|
+
if (!t) {
|
|
2647
|
+
this._slotHasContent = !1;
|
|
2648
|
+
return;
|
|
2649
|
+
}
|
|
2650
|
+
await Promise.resolve();
|
|
2651
|
+
const e = t.assignedNodes({ flatten: !0 }).filter(
|
|
2652
|
+
(r) => {
|
|
2653
|
+
var i;
|
|
2654
|
+
return r.nodeType === Node.ELEMENT_NODE || r.nodeType === Node.TEXT_NODE && ((i = r.textContent) == null ? void 0 : i.trim());
|
|
2655
|
+
}
|
|
2656
|
+
);
|
|
2657
|
+
this._slotHasContent = e.length > 0;
|
|
2658
|
+
}
|
|
2640
2659
|
render() {
|
|
2641
2660
|
var t, e, s, r;
|
|
2642
2661
|
return h`
|
|
@@ -2646,8 +2665,8 @@ const h1 = (g1 = class extends g {
|
|
|
2646
2665
|
part="nys-avatar"
|
|
2647
2666
|
class="nys-avatar__component"
|
|
2648
2667
|
style="background-color: ${((t = this.color) == null ? void 0 : t.length) > 0 ? this.color : "#555"};"
|
|
2649
|
-
role=${
|
|
2650
|
-
aria-label=${
|
|
2668
|
+
role=${f(this.image ? void 0 : "img")}
|
|
2669
|
+
aria-label=${f(
|
|
2651
2670
|
this.image ? void 0 : this.label ? this.label : "avatar"
|
|
2652
2671
|
)}
|
|
2653
2672
|
>
|
|
@@ -2662,56 +2681,53 @@ const h1 = (g1 = class extends g {
|
|
|
2662
2681
|
class="nys-avatar__initials"
|
|
2663
2682
|
aria-hidden="true"
|
|
2664
2683
|
>${this.initials}</span
|
|
2665
|
-
>` :
|
|
2684
|
+
>` : this._slotHasContent ? h`<div part="nys-avatar__icon">
|
|
2685
|
+
<slot></slot>
|
|
2686
|
+
</div>` : h`<div part="nys-avatar__icon">
|
|
2666
2687
|
<nys-icon
|
|
2667
2688
|
label="nys-avatar__icon"
|
|
2668
|
-
name=${this.icon}
|
|
2689
|
+
name=${((r = this.icon) == null ? void 0 : r.length) > 0 ? this.icon : "account_circle"}
|
|
2669
2690
|
size="xl"
|
|
2670
2691
|
></nys-icon>
|
|
2671
|
-
</div>` : h`<div part="nys-avatar__icon">
|
|
2672
|
-
<slot>
|
|
2673
|
-
<nys-icon
|
|
2674
|
-
label="nys-avatar__icon"
|
|
2675
|
-
name="account_circle"
|
|
2676
|
-
size="xl"
|
|
2677
|
-
></nys-icon>
|
|
2678
|
-
</slot>
|
|
2679
2692
|
</div>`}
|
|
2680
2693
|
</div>
|
|
2681
2694
|
</div>
|
|
2682
2695
|
</label>
|
|
2683
2696
|
`;
|
|
2684
2697
|
}
|
|
2685
|
-
},
|
|
2698
|
+
}, b1.styles = J5, b1.VALID_SHAPES = [
|
|
2686
2699
|
"square",
|
|
2687
2700
|
"rounded",
|
|
2688
2701
|
"circle"
|
|
2689
|
-
],
|
|
2690
|
-
|
|
2702
|
+
], b1);
|
|
2703
|
+
d1([
|
|
2691
2704
|
l({ type: String })
|
|
2692
|
-
],
|
|
2693
|
-
|
|
2705
|
+
], s1.prototype, "id", 2);
|
|
2706
|
+
d1([
|
|
2694
2707
|
l({ type: String })
|
|
2695
|
-
],
|
|
2696
|
-
|
|
2708
|
+
], s1.prototype, "label", 2);
|
|
2709
|
+
d1([
|
|
2697
2710
|
l({ type: String })
|
|
2698
|
-
],
|
|
2699
|
-
|
|
2711
|
+
], s1.prototype, "image", 2);
|
|
2712
|
+
d1([
|
|
2700
2713
|
l({ type: String })
|
|
2701
|
-
],
|
|
2702
|
-
|
|
2714
|
+
], s1.prototype, "initials", 2);
|
|
2715
|
+
d1([
|
|
2703
2716
|
l({ type: String })
|
|
2704
|
-
],
|
|
2705
|
-
|
|
2717
|
+
], s1.prototype, "icon", 2);
|
|
2718
|
+
d1([
|
|
2706
2719
|
l({ type: String })
|
|
2707
|
-
],
|
|
2708
|
-
|
|
2720
|
+
], s1.prototype, "color", 2);
|
|
2721
|
+
d1([
|
|
2709
2722
|
l({ type: Boolean, reflect: !0 })
|
|
2710
|
-
],
|
|
2711
|
-
|
|
2723
|
+
], s1.prototype, "lazy", 2);
|
|
2724
|
+
d1([
|
|
2712
2725
|
l({ reflect: !0 })
|
|
2713
|
-
],
|
|
2714
|
-
|
|
2726
|
+
], s1.prototype, "shape", 1);
|
|
2727
|
+
d1([
|
|
2728
|
+
x1()
|
|
2729
|
+
], s1.prototype, "_slotHasContent", 2);
|
|
2730
|
+
let es = s1;
|
|
2715
2731
|
customElements.get("nys-avatar") || customElements.define("nys-avatar", es);
|
|
2716
2732
|
const ss = b`
|
|
2717
2733
|
:host {
|
|
@@ -3188,18 +3204,18 @@ const A = (O = class extends g {
|
|
|
3188
3204
|
/******************** Event Handlers ********************/
|
|
3189
3205
|
// Handle focus event
|
|
3190
3206
|
_handleFocus() {
|
|
3191
|
-
this.dispatchEvent(new Event("focus"));
|
|
3207
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
3192
3208
|
}
|
|
3193
3209
|
// Handle blur event
|
|
3194
3210
|
_handleBlur() {
|
|
3195
|
-
this.dispatchEvent(new Event("blur"));
|
|
3211
|
+
this.dispatchEvent(new Event("nys-blur"));
|
|
3196
3212
|
}
|
|
3197
3213
|
_handleClick(t) {
|
|
3198
3214
|
if (this.disabled) {
|
|
3199
3215
|
t.preventDefault();
|
|
3200
3216
|
return;
|
|
3201
3217
|
}
|
|
3202
|
-
this._manageFormAction(t);
|
|
3218
|
+
this._manageFormAction(t), this.dispatchEvent(new Event("nys-click"));
|
|
3203
3219
|
}
|
|
3204
3220
|
// Handle keydown for keyboard accessibility
|
|
3205
3221
|
_handleKeydown(t) {
|
|
@@ -3211,12 +3227,12 @@ const A = (O = class extends g {
|
|
|
3211
3227
|
<div class="nys-button__linkwrapper">
|
|
3212
3228
|
<a
|
|
3213
3229
|
class="nys-button"
|
|
3214
|
-
id=${
|
|
3215
|
-
name=${
|
|
3230
|
+
id=${f(this.id)}
|
|
3231
|
+
name=${f(this.name ? this.name : void 0)}
|
|
3216
3232
|
?disabled=${this.disabled}
|
|
3217
3233
|
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
3218
|
-
form=${
|
|
3219
|
-
value=${
|
|
3234
|
+
form=${f(this.form ? this.form : void 0)}
|
|
3235
|
+
value=${f(this.value ? this.value : void 0)}
|
|
3220
3236
|
href=${this.href}
|
|
3221
3237
|
target=${this.target}
|
|
3222
3238
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
@@ -3236,11 +3252,11 @@ const A = (O = class extends g {
|
|
|
3236
3252
|
` : h`
|
|
3237
3253
|
<button
|
|
3238
3254
|
class="nys-button"
|
|
3239
|
-
id=${
|
|
3240
|
-
name=${
|
|
3255
|
+
id=${f(this.id)}
|
|
3256
|
+
name=${f(this.name ? this.name : void 0)}
|
|
3241
3257
|
?disabled=${this.disabled}
|
|
3242
|
-
form=${
|
|
3243
|
-
value=${
|
|
3258
|
+
form=${f(this.form ? this.form : void 0)}
|
|
3259
|
+
value=${f(this.value ? this.value : void 0)}
|
|
3244
3260
|
type=${this.type}
|
|
3245
3261
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
3246
3262
|
@click=${this._handleClick}
|
|
@@ -4389,7 +4405,7 @@ r2.elementStyles = [], r2.shadowRootOptions = { mode: "open" }, r2[d2("elementPr
|
|
|
4389
4405
|
* Copyright 2017 Google LLC
|
|
4390
4406
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4391
4407
|
*/
|
|
4392
|
-
const Ds = { attribute: !0, type: String, converter: Z2, reflect: !1, hasChanged: ft },
|
|
4408
|
+
const Ds = { attribute: !0, type: String, converter: Z2, reflect: !1, hasChanged: ft }, Hs = (o = Ds, t, e) => {
|
|
4393
4409
|
const { kind: s, metadata: r } = e;
|
|
4394
4410
|
let i = globalThis.litPropertyMetadata.get(r);
|
|
4395
4411
|
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), i.set(e.name, o), s === "accessor") {
|
|
@@ -4411,12 +4427,12 @@ const Ds = { attribute: !0, type: String, converter: Z2, reflect: !1, hasChanged
|
|
|
4411
4427
|
throw Error("Unsupported decorator location: " + s);
|
|
4412
4428
|
};
|
|
4413
4429
|
function vt(o) {
|
|
4414
|
-
return (t, e) => typeof e == "object" ?
|
|
4430
|
+
return (t, e) => typeof e == "object" ? Hs(o, t, e) : ((s, r, i) => {
|
|
4415
4431
|
const n = r.hasOwnProperty(i);
|
|
4416
4432
|
return r.constructor.createProperty(i, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(r, i) : void 0;
|
|
4417
4433
|
})(o, t, e);
|
|
4418
4434
|
}
|
|
4419
|
-
const
|
|
4435
|
+
const Vs = b`
|
|
4420
4436
|
:host {
|
|
4421
4437
|
--_nys-errormessage-font-family: var(
|
|
4422
4438
|
--nys-font-family-ui,
|
|
@@ -4486,7 +4502,7 @@ const nt = class extends g {
|
|
|
4486
4502
|
</div>` : ""}`;
|
|
4487
4503
|
}
|
|
4488
4504
|
};
|
|
4489
|
-
nt.styles =
|
|
4505
|
+
nt.styles = Vs, nt.formAssociated = !0;
|
|
4490
4506
|
let K2 = nt;
|
|
4491
4507
|
gt([
|
|
4492
4508
|
vt({ type: Boolean })
|
|
@@ -4498,14 +4514,14 @@ gt([
|
|
|
4498
4514
|
vt({ type: Boolean, reflect: !0 })
|
|
4499
4515
|
], K2.prototype, "showDivider");
|
|
4500
4516
|
customElements.get("nys-errormessage") || customElements.define("nys-errormessage", K2);
|
|
4501
|
-
var zs = Object.defineProperty, Ps = Object.getOwnPropertyDescriptor,
|
|
4517
|
+
var zs = Object.defineProperty, Ps = Object.getOwnPropertyDescriptor, r1 = (o, t, e, s) => {
|
|
4502
4518
|
for (var r = s > 1 ? void 0 : s ? Ps(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
4503
4519
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
4504
4520
|
return s && r && zs(t, e, r), r;
|
|
4505
4521
|
};
|
|
4506
4522
|
let Zs = 0;
|
|
4507
|
-
var
|
|
4508
|
-
const J = (
|
|
4523
|
+
var i1;
|
|
4524
|
+
const J = (i1 = class extends g {
|
|
4509
4525
|
// allows use of elementInternals' API
|
|
4510
4526
|
constructor() {
|
|
4511
4527
|
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();
|
|
@@ -4514,16 +4530,16 @@ const J = (n1 = class extends g {
|
|
|
4514
4530
|
return this._size;
|
|
4515
4531
|
}
|
|
4516
4532
|
set size(t) {
|
|
4517
|
-
this._size =
|
|
4533
|
+
this._size = i1.VALID_SIZES.includes(
|
|
4518
4534
|
t
|
|
4519
4535
|
) ? t : "md";
|
|
4520
4536
|
}
|
|
4521
4537
|
// Generate a unique ID if one is not provided
|
|
4522
4538
|
connectedCallback() {
|
|
4523
|
-
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${Zs++}`), this.addEventListener("change", this._handleCheckboxChange), this.addEventListener("invalid", this._handleInvalid);
|
|
4539
|
+
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${Zs++}`), this.addEventListener("nys-change", this._handleCheckboxChange), this.addEventListener("invalid", this._handleInvalid);
|
|
4524
4540
|
}
|
|
4525
4541
|
disconnectedCallback() {
|
|
4526
|
-
super.disconnectedCallback(), this.removeEventListener("change", this._handleCheckboxChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
4542
|
+
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleCheckboxChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
4527
4543
|
}
|
|
4528
4544
|
firstUpdated() {
|
|
4529
4545
|
this._setGroupExist(), this.updateCheckboxSize(), this.updateCheckboxTile(), this.updateCheckboxShowError();
|
|
@@ -4619,35 +4635,35 @@ const J = (n1 = class extends g {
|
|
|
4619
4635
|
></nys-errormessage>
|
|
4620
4636
|
</div>`;
|
|
4621
4637
|
}
|
|
4622
|
-
},
|
|
4623
|
-
|
|
4638
|
+
}, i1.VALID_SIZES = ["sm", "md"], i1.styles = Ie, i1.formAssociated = !0, i1);
|
|
4639
|
+
r1([
|
|
4624
4640
|
l({ type: String })
|
|
4625
4641
|
], J.prototype, "id", 2);
|
|
4626
|
-
|
|
4642
|
+
r1([
|
|
4627
4643
|
l({ type: String, reflect: !0 })
|
|
4628
4644
|
], J.prototype, "name", 2);
|
|
4629
|
-
|
|
4645
|
+
r1([
|
|
4630
4646
|
l({ type: Boolean, reflect: !0 })
|
|
4631
4647
|
], J.prototype, "required", 2);
|
|
4632
|
-
|
|
4648
|
+
r1([
|
|
4633
4649
|
l({ type: Boolean, reflect: !0 })
|
|
4634
4650
|
], J.prototype, "optional", 2);
|
|
4635
|
-
|
|
4651
|
+
r1([
|
|
4636
4652
|
l({ type: Boolean, reflect: !0 })
|
|
4637
4653
|
], J.prototype, "showError", 2);
|
|
4638
|
-
|
|
4654
|
+
r1([
|
|
4639
4655
|
l({ type: String })
|
|
4640
4656
|
], J.prototype, "errorMessage", 2);
|
|
4641
|
-
|
|
4657
|
+
r1([
|
|
4642
4658
|
l({ type: String })
|
|
4643
4659
|
], J.prototype, "label", 2);
|
|
4644
|
-
|
|
4660
|
+
r1([
|
|
4645
4661
|
l({ type: String })
|
|
4646
4662
|
], J.prototype, "description", 2);
|
|
4647
|
-
|
|
4663
|
+
r1([
|
|
4648
4664
|
l({ type: Boolean, reflect: !0 })
|
|
4649
4665
|
], J.prototype, "tile", 2);
|
|
4650
|
-
|
|
4666
|
+
r1([
|
|
4651
4667
|
l({ reflect: !0 })
|
|
4652
4668
|
], J.prototype, "size", 1);
|
|
4653
4669
|
let Os = J;
|
|
@@ -4658,8 +4674,8 @@ var Is = Object.defineProperty, Bs = Object.getOwnPropertyDescriptor, N = (o, t,
|
|
|
4658
4674
|
return s && r && Is(t, e, r), r;
|
|
4659
4675
|
};
|
|
4660
4676
|
let Ts = 0;
|
|
4661
|
-
var
|
|
4662
|
-
const T = (
|
|
4677
|
+
var a1;
|
|
4678
|
+
const T = (a1 = class extends g {
|
|
4663
4679
|
// allows use of elementInternals' API
|
|
4664
4680
|
constructor() {
|
|
4665
4681
|
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();
|
|
@@ -4668,7 +4684,7 @@ const T = (i1 = class extends g {
|
|
|
4668
4684
|
return this._size;
|
|
4669
4685
|
}
|
|
4670
4686
|
set size(t) {
|
|
4671
|
-
this._size =
|
|
4687
|
+
this._size = a1.VALID_SIZES.includes(
|
|
4672
4688
|
t
|
|
4673
4689
|
) ? t : "md";
|
|
4674
4690
|
}
|
|
@@ -4736,11 +4752,9 @@ const T = (i1 = class extends g {
|
|
|
4736
4752
|
}
|
|
4737
4753
|
}
|
|
4738
4754
|
/******************** Event Handlers ********************/
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
this.checked = e, this.groupExist || this._internals.setFormValue(this.checked ? this.value : null), this._validate(), this.dispatchEvent(
|
|
4743
|
-
new CustomEvent("change", {
|
|
4755
|
+
_emitChangeEvent() {
|
|
4756
|
+
this.dispatchEvent(
|
|
4757
|
+
new CustomEvent("nys-change", {
|
|
4744
4758
|
detail: {
|
|
4745
4759
|
checked: this.checked,
|
|
4746
4760
|
name: this.name,
|
|
@@ -4751,27 +4765,22 @@ const T = (i1 = class extends g {
|
|
|
4751
4765
|
})
|
|
4752
4766
|
);
|
|
4753
4767
|
}
|
|
4768
|
+
// Handle checkbox change event
|
|
4769
|
+
_handleChange(t) {
|
|
4770
|
+
const { checked: e } = t.target;
|
|
4771
|
+
this.checked = e, this.groupExist || this._internals.setFormValue(this.checked ? this.value : null), this._validate(), this._emitChangeEvent();
|
|
4772
|
+
}
|
|
4754
4773
|
// Handle focus event
|
|
4755
4774
|
_handleFocus() {
|
|
4756
|
-
this.dispatchEvent(new Event("focus"));
|
|
4775
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
4757
4776
|
}
|
|
4758
4777
|
// Handle blur event
|
|
4759
4778
|
_handleBlur() {
|
|
4760
|
-
this.dispatchEvent(new Event("blur"));
|
|
4779
|
+
this.dispatchEvent(new Event("nys-blur"));
|
|
4761
4780
|
}
|
|
4762
4781
|
// Handle keydown for keyboard accessibility
|
|
4763
|
-
_handleKeydown(t) {
|
|
4764
|
-
t.code === "Space" && (t.preventDefault(), this.disabled || (this.checked = !this.checked, this._internals.setFormValue(this.checked ? this.value : null), this.
|
|
4765
|
-
new CustomEvent("change", {
|
|
4766
|
-
detail: {
|
|
4767
|
-
checked: this.checked,
|
|
4768
|
-
name: this.name,
|
|
4769
|
-
value: this.value
|
|
4770
|
-
},
|
|
4771
|
-
bubbles: !0,
|
|
4772
|
-
composed: !0
|
|
4773
|
-
})
|
|
4774
|
-
)));
|
|
4782
|
+
async _handleKeydown(t) {
|
|
4783
|
+
t.code === "Space" && (t.preventDefault(), this.disabled || (this.checked = !this.checked, this._internals.setFormValue(this.checked ? this.value : null), await this.updateComplete, this._validate(), this._emitChangeEvent()));
|
|
4775
4784
|
}
|
|
4776
4785
|
render() {
|
|
4777
4786
|
var t;
|
|
@@ -4783,7 +4792,7 @@ const T = (i1 = class extends g {
|
|
|
4783
4792
|
id="${this.id}"
|
|
4784
4793
|
class="nys-checkbox__checkbox"
|
|
4785
4794
|
type="checkbox"
|
|
4786
|
-
name="${
|
|
4795
|
+
name="${f(this.name ? this.name : void 0)}"
|
|
4787
4796
|
.checked=${this.checked}
|
|
4788
4797
|
?disabled=${this.disabled}
|
|
4789
4798
|
.value=${this.value}
|
|
@@ -4824,7 +4833,7 @@ const T = (i1 = class extends g {
|
|
|
4824
4833
|
></nys-errormessage>` : ""}
|
|
4825
4834
|
`;
|
|
4826
4835
|
}
|
|
4827
|
-
},
|
|
4836
|
+
}, a1.VALID_SIZES = ["sm", "md"], a1.styles = Ie, a1.formAssociated = !0, a1);
|
|
4828
4837
|
N([
|
|
4829
4838
|
l({ type: Boolean, reflect: !0 })
|
|
4830
4839
|
], T.prototype, "checked", 2);
|
|
@@ -5557,8 +5566,8 @@ var Gs = Object.defineProperty, Ws = Object.getOwnPropertyDescriptor, J1 = (o, t
|
|
|
5557
5566
|
for (var r = s > 1 ? void 0 : s ? Ws(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
5558
5567
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
5559
5568
|
return s && r && Gs(t, e, r), r;
|
|
5560
|
-
},
|
|
5561
|
-
const z1 = (
|
|
5569
|
+
}, _1;
|
|
5570
|
+
const z1 = (_1 = class extends g {
|
|
5562
5571
|
constructor() {
|
|
5563
5572
|
super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
5564
5573
|
}
|
|
@@ -5566,21 +5575,21 @@ const z1 = (b1 = class extends g {
|
|
|
5566
5575
|
return this._size;
|
|
5567
5576
|
}
|
|
5568
5577
|
set size(t) {
|
|
5569
|
-
this._size =
|
|
5578
|
+
this._size = _1.VALID_TYPES.includes(
|
|
5570
5579
|
t
|
|
5571
5580
|
) ? t : "sm";
|
|
5572
5581
|
}
|
|
5573
5582
|
getIcon() {
|
|
5574
|
-
const t = js[this.name]
|
|
5583
|
+
const t = js[this.name];
|
|
5575
5584
|
if (!t) return null;
|
|
5576
|
-
const
|
|
5577
|
-
return
|
|
5585
|
+
const r = new DOMParser().parseFromString(t, "image/svg+xml").documentElement;
|
|
5586
|
+
return r instanceof SVGElement ? (r.setAttribute("role", "img"), this.label ? (r.setAttribute("aria-label", this.label), r.removeAttribute("aria-hidden")) : (r.setAttribute("aria-hidden", "true"), r.removeAttribute("aria-label")), r.style.rotate = `${this.rotate}deg`, r.style.color = this.color || "currentcolor", r.classList.add(`nys-icon--${this.size}`), r.classList.add("nys-icon--svg"), this.flip && r.classList.add(`nys-icon--flip-${this.flip}`), r) : null;
|
|
5578
5587
|
}
|
|
5579
5588
|
render() {
|
|
5580
5589
|
const t = this.getIcon();
|
|
5581
5590
|
return t ? h`${t}` : null;
|
|
5582
5591
|
}
|
|
5583
|
-
},
|
|
5592
|
+
}, _1.styles = Fs, _1.VALID_TYPES = [
|
|
5584
5593
|
"2xs",
|
|
5585
5594
|
"xs",
|
|
5586
5595
|
"sm",
|
|
@@ -5596,7 +5605,7 @@ const z1 = (b1 = class extends g {
|
|
|
5596
5605
|
"32",
|
|
5597
5606
|
"48",
|
|
5598
5607
|
"64"
|
|
5599
|
-
],
|
|
5608
|
+
], _1);
|
|
5600
5609
|
J1([
|
|
5601
5610
|
l({ type: String, reflect: !0 })
|
|
5602
5611
|
], z1.prototype, "name", 2);
|
|
@@ -5716,20 +5725,20 @@ const Lt = class Lt extends g {
|
|
|
5716
5725
|
}
|
|
5717
5726
|
};
|
|
5718
5727
|
Lt.styles = Ks;
|
|
5719
|
-
let
|
|
5728
|
+
let D1 = Lt;
|
|
5720
5729
|
J2([
|
|
5721
5730
|
l({ type: String })
|
|
5722
|
-
],
|
|
5731
|
+
], D1.prototype, "id");
|
|
5723
5732
|
J2([
|
|
5724
5733
|
l({ type: String })
|
|
5725
|
-
],
|
|
5734
|
+
], D1.prototype, "label");
|
|
5726
5735
|
J2([
|
|
5727
5736
|
l({ type: String })
|
|
5728
|
-
],
|
|
5737
|
+
], D1.prototype, "description");
|
|
5729
5738
|
J2([
|
|
5730
5739
|
l({ type: String })
|
|
5731
|
-
],
|
|
5732
|
-
customElements.get("nys-label") || customElements.define("nys-label",
|
|
5740
|
+
], D1.prototype, "flag");
|
|
5741
|
+
customElements.get("nys-label") || customElements.define("nys-label", D1);
|
|
5733
5742
|
const Ne = b`
|
|
5734
5743
|
:host {
|
|
5735
5744
|
/* Global Radiobutton Styles */
|
|
@@ -6089,8 +6098,8 @@ var Xs = Object.defineProperty, Qs = Object.getOwnPropertyDescriptor, X = (o, t,
|
|
|
6089
6098
|
return s && r && Xs(t, e, r), r;
|
|
6090
6099
|
};
|
|
6091
6100
|
let t7 = 0;
|
|
6092
|
-
var
|
|
6093
|
-
const G = (
|
|
6101
|
+
var l1;
|
|
6102
|
+
const G = (l1 = class extends g {
|
|
6094
6103
|
// allows use of elementInternals' API
|
|
6095
6104
|
constructor() {
|
|
6096
6105
|
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.selectedValue = null, this._size = "md", this.tile = !1, this._internals = this.attachInternals();
|
|
@@ -6099,16 +6108,16 @@ const G = (a1 = class extends g {
|
|
|
6099
6108
|
return this._size;
|
|
6100
6109
|
}
|
|
6101
6110
|
set size(t) {
|
|
6102
|
-
this._size =
|
|
6111
|
+
this._size = l1.VALID_SIZES.includes(
|
|
6103
6112
|
t
|
|
6104
6113
|
) ? t : "md";
|
|
6105
6114
|
}
|
|
6106
6115
|
// Generate a unique ID if one is not provided
|
|
6107
6116
|
connectedCallback() {
|
|
6108
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${t7++}`), this.addEventListener("change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
|
|
6117
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${t7++}`), this.addEventListener("nys-change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
|
|
6109
6118
|
}
|
|
6110
6119
|
disconnectedCallback() {
|
|
6111
|
-
super.disconnectedCallback(), this.removeEventListener("change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
6120
|
+
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
6112
6121
|
}
|
|
6113
6122
|
firstUpdated() {
|
|
6114
6123
|
this._initializeCheckedRadioValue(), this._setValue(), this.setRadioButtonRequire(), this._updateRadioButtonsSize(), this._updateRadioButtonsTile(), this._updateRadioButtonsShowError();
|
|
@@ -6208,7 +6217,7 @@ const G = (a1 = class extends g {
|
|
|
6208
6217
|
></nys-errormessage>
|
|
6209
6218
|
</div>`;
|
|
6210
6219
|
}
|
|
6211
|
-
},
|
|
6220
|
+
}, l1.VALID_SIZES = ["sm", "md"], l1.styles = Ne, l1.formAssociated = !0, l1);
|
|
6212
6221
|
X([
|
|
6213
6222
|
l({ type: String })
|
|
6214
6223
|
], G.prototype, "id", 2);
|
|
@@ -6234,7 +6243,7 @@ X([
|
|
|
6234
6243
|
l({ type: String })
|
|
6235
6244
|
], G.prototype, "description", 2);
|
|
6236
6245
|
X([
|
|
6237
|
-
|
|
6246
|
+
x1()
|
|
6238
6247
|
], G.prototype, "selectedValue", 2);
|
|
6239
6248
|
X([
|
|
6240
6249
|
l({ reflect: !0 })
|
|
@@ -6244,14 +6253,14 @@ X([
|
|
|
6244
6253
|
], G.prototype, "tile", 2);
|
|
6245
6254
|
let e7 = G;
|
|
6246
6255
|
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", e7);
|
|
6247
|
-
var s7 = Object.defineProperty, r7 = Object.getOwnPropertyDescriptor,
|
|
6256
|
+
var s7 = Object.defineProperty, r7 = Object.getOwnPropertyDescriptor, o1 = (o, t, e, s) => {
|
|
6248
6257
|
for (var r = s > 1 ? void 0 : s ? r7(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
6249
6258
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
6250
6259
|
return s && r && s7(t, e, r), r;
|
|
6251
6260
|
};
|
|
6252
6261
|
let o7 = 0;
|
|
6253
|
-
var
|
|
6254
|
-
const Q = (
|
|
6262
|
+
var v;
|
|
6263
|
+
const Q = (v = class extends g {
|
|
6255
6264
|
constructor() {
|
|
6256
6265
|
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;
|
|
6257
6266
|
}
|
|
@@ -6259,7 +6268,7 @@ const Q = (f = class extends g {
|
|
|
6259
6268
|
return this._size;
|
|
6260
6269
|
}
|
|
6261
6270
|
set size(t) {
|
|
6262
|
-
this._size =
|
|
6271
|
+
this._size = v.VALID_SIZES.includes(
|
|
6263
6272
|
t
|
|
6264
6273
|
) ? t : "md";
|
|
6265
6274
|
}
|
|
@@ -6274,10 +6283,10 @@ const Q = (f = class extends g {
|
|
|
6274
6283
|
/********************** Lifecycle updates **********************/
|
|
6275
6284
|
// Generate a unique ID if one is not provided
|
|
6276
6285
|
connectedCallback() {
|
|
6277
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${o7++}`), this.checked && (
|
|
6286
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${o7++}`), this.checked && (v.buttonGroup[this.name] && (v.buttonGroup[this.name].checked = !1, v.buttonGroup[this.name].requestUpdate()), v.buttonGroup[this.name] = this);
|
|
6278
6287
|
}
|
|
6279
6288
|
updated(t) {
|
|
6280
|
-
t.has("checked") && this.checked &&
|
|
6289
|
+
t.has("checked") && this.checked && v.buttonGroup[this.name] !== this && (v.buttonGroup[this.name] && (v.buttonGroup[this.name].checked = !1, v.buttonGroup[this.name].requestUpdate()), v.buttonGroup[this.name] = this);
|
|
6281
6290
|
}
|
|
6282
6291
|
/******************** Function ********************/
|
|
6283
6292
|
// This helper function is called to perform the element's native validation.
|
|
@@ -6289,37 +6298,34 @@ const Q = (f = class extends g {
|
|
|
6289
6298
|
return t ? t.checkValidity() : !0;
|
|
6290
6299
|
}
|
|
6291
6300
|
/******************** Event Handlers ********************/
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6301
|
+
_emitChangeEvent() {
|
|
6302
|
+
this.dispatchEvent(
|
|
6303
|
+
new CustomEvent("nys-change", {
|
|
6304
|
+
detail: {
|
|
6305
|
+
checked: this.checked,
|
|
6306
|
+
name: this.name,
|
|
6307
|
+
value: this.value
|
|
6308
|
+
},
|
|
6297
6309
|
bubbles: !0,
|
|
6298
6310
|
composed: !0
|
|
6299
6311
|
})
|
|
6300
|
-
)
|
|
6312
|
+
);
|
|
6313
|
+
}
|
|
6314
|
+
// Handle radiobutton change event & unselection of other options in group
|
|
6315
|
+
_handleChange() {
|
|
6316
|
+
this.checked || (v.buttonGroup[this.name] && (v.buttonGroup[this.name].checked = !1, v.buttonGroup[this.name].requestUpdate()), v.buttonGroup[this.name] = this, this.checked = !0, this._emitChangeEvent());
|
|
6301
6317
|
}
|
|
6302
6318
|
// Handle focus event
|
|
6303
6319
|
_handleFocus() {
|
|
6304
|
-
this.dispatchEvent(new Event("focus"));
|
|
6320
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
6305
6321
|
}
|
|
6306
6322
|
// Handle blur event
|
|
6307
6323
|
_handleBlur() {
|
|
6308
|
-
this.dispatchEvent(new Event("blur"));
|
|
6324
|
+
this.dispatchEvent(new Event("nys-blur"));
|
|
6309
6325
|
}
|
|
6310
6326
|
// Handle keydown for keyboard accessibility
|
|
6311
6327
|
_handleKeydown(t) {
|
|
6312
|
-
t.code === "Space" && (t.preventDefault(), !this.disabled && !this.checked && (
|
|
6313
|
-
new CustomEvent("change", {
|
|
6314
|
-
detail: {
|
|
6315
|
-
checked: this.checked,
|
|
6316
|
-
name: this.name,
|
|
6317
|
-
value: this.value
|
|
6318
|
-
},
|
|
6319
|
-
bubbles: !0,
|
|
6320
|
-
composed: !0
|
|
6321
|
-
})
|
|
6322
|
-
)));
|
|
6328
|
+
t.code === "Space" && (t.preventDefault(), !this.disabled && !this.checked && (v.buttonGroup[this.name] && (v.buttonGroup[this.name].checked = !1, v.buttonGroup[this.name].requestUpdate()), v.buttonGroup[this.name] = this, this.checked = !0, this._emitChangeEvent()));
|
|
6323
6329
|
}
|
|
6324
6330
|
render() {
|
|
6325
6331
|
return h`
|
|
@@ -6328,7 +6334,7 @@ const Q = (f = class extends g {
|
|
|
6328
6334
|
id="${this.id}"
|
|
6329
6335
|
class="nys-radiobutton__radio"
|
|
6330
6336
|
type="radio"
|
|
6331
|
-
name="${
|
|
6337
|
+
name="${f(this.name ? this.name : void 0)}"
|
|
6332
6338
|
.checked=${this.checked}
|
|
6333
6339
|
?disabled=${this.disabled}
|
|
6334
6340
|
.value=${this.value}
|
|
@@ -6352,35 +6358,35 @@ const Q = (f = class extends g {
|
|
|
6352
6358
|
</label>
|
|
6353
6359
|
`;
|
|
6354
6360
|
}
|
|
6355
|
-
},
|
|
6356
|
-
|
|
6361
|
+
}, v.VALID_SIZES = ["sm", "md"], v.buttonGroup = {}, v.styles = Ne, v);
|
|
6362
|
+
o1([
|
|
6357
6363
|
l({ type: Boolean, reflect: !0 })
|
|
6358
6364
|
], Q.prototype, "checked", 2);
|
|
6359
|
-
|
|
6365
|
+
o1([
|
|
6360
6366
|
l({ type: Boolean, reflect: !0 })
|
|
6361
6367
|
], Q.prototype, "disabled", 2);
|
|
6362
|
-
|
|
6368
|
+
o1([
|
|
6363
6369
|
l({ type: Boolean, reflect: !0 })
|
|
6364
6370
|
], Q.prototype, "required", 2);
|
|
6365
|
-
|
|
6371
|
+
o1([
|
|
6366
6372
|
l({ type: String })
|
|
6367
6373
|
], Q.prototype, "label", 2);
|
|
6368
|
-
|
|
6374
|
+
o1([
|
|
6369
6375
|
l({ type: String })
|
|
6370
6376
|
], Q.prototype, "description", 2);
|
|
6371
|
-
|
|
6377
|
+
o1([
|
|
6372
6378
|
l({ type: String })
|
|
6373
6379
|
], Q.prototype, "id", 2);
|
|
6374
|
-
|
|
6380
|
+
o1([
|
|
6375
6381
|
l({ type: String, reflect: !0 })
|
|
6376
6382
|
], Q.prototype, "name", 2);
|
|
6377
|
-
|
|
6383
|
+
o1([
|
|
6378
6384
|
l({ type: String })
|
|
6379
6385
|
], Q.prototype, "value", 2);
|
|
6380
|
-
|
|
6386
|
+
o1([
|
|
6381
6387
|
l({ reflect: !0 })
|
|
6382
6388
|
], Q.prototype, "size", 1);
|
|
6383
|
-
|
|
6389
|
+
o1([
|
|
6384
6390
|
l({ type: Boolean, reflect: !0 })
|
|
6385
6391
|
], Q.prototype, "tile", 2);
|
|
6386
6392
|
let n7 = Q;
|
|
@@ -6587,8 +6593,8 @@ var l7 = Object.defineProperty, c7 = Object.getOwnPropertyDescriptor, W = (o, t,
|
|
|
6587
6593
|
return s && r && l7(t, e, r), r;
|
|
6588
6594
|
};
|
|
6589
6595
|
let h7 = 0;
|
|
6590
|
-
var
|
|
6591
|
-
const q = (
|
|
6596
|
+
var c1;
|
|
6597
|
+
const q = (c1 = class extends g {
|
|
6592
6598
|
// allows use of elementInternals' API
|
|
6593
6599
|
constructor() {
|
|
6594
6600
|
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();
|
|
@@ -6597,7 +6603,7 @@ const q = (l1 = class extends g {
|
|
|
6597
6603
|
return this._width;
|
|
6598
6604
|
}
|
|
6599
6605
|
set width(t) {
|
|
6600
|
-
this._width =
|
|
6606
|
+
this._width = c1.VALID_WIDTHS.includes(
|
|
6601
6607
|
t
|
|
6602
6608
|
) ? t : "full";
|
|
6603
6609
|
}
|
|
@@ -6686,17 +6692,13 @@ const q = (l1 = class extends g {
|
|
|
6686
6692
|
})
|
|
6687
6693
|
);
|
|
6688
6694
|
}
|
|
6689
|
-
// Handle input changes by update the value as select changes
|
|
6690
|
-
_handleInput() {
|
|
6691
|
-
this.dispatchEvent(new Event("input"));
|
|
6692
|
-
}
|
|
6693
6695
|
// Handle focus event
|
|
6694
6696
|
_handleFocus() {
|
|
6695
|
-
this.dispatchEvent(new Event("focus"));
|
|
6697
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
6696
6698
|
}
|
|
6697
6699
|
// Handle blur event
|
|
6698
6700
|
_handleBlur() {
|
|
6699
|
-
this._hasUserInteracted || (this._hasUserInteracted = !0), this._validate(), this.dispatchEvent(new Event("blur"));
|
|
6701
|
+
this._hasUserInteracted || (this._hasUserInteracted = !0), this._validate(), this.dispatchEvent(new Event("nys-blur"));
|
|
6700
6702
|
}
|
|
6701
6703
|
// Check if the current value matches any option, and if so, set it as selected
|
|
6702
6704
|
updated(t) {
|
|
@@ -6730,7 +6732,6 @@ const q = (l1 = class extends g {
|
|
|
6730
6732
|
@focus="${this._handleFocus}"
|
|
6731
6733
|
@blur="${this._handleBlur}"
|
|
6732
6734
|
@change="${this._handleChange}"
|
|
6733
|
-
@input="${this._handleInput}"
|
|
6734
6735
|
>
|
|
6735
6736
|
<option hidden disabled selected value></option>
|
|
6736
6737
|
</select>
|
|
@@ -6751,7 +6752,7 @@ const q = (l1 = class extends g {
|
|
|
6751
6752
|
</div>
|
|
6752
6753
|
`;
|
|
6753
6754
|
}
|
|
6754
|
-
},
|
|
6755
|
+
}, c1.VALID_WIDTHS = ["sm", "md", "lg", "full"], c1.styles = i7, c1.formAssociated = !0, c1);
|
|
6755
6756
|
W([
|
|
6756
6757
|
l({ type: String })
|
|
6757
6758
|
], q.prototype, "id", 2);
|
|
@@ -6880,12 +6881,12 @@ const Et = class Et extends g {
|
|
|
6880
6881
|
_handleFocus() {
|
|
6881
6882
|
var e;
|
|
6882
6883
|
const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".nys-skipnav__link");
|
|
6883
|
-
|
|
6884
|
+
t == null || t.classList.add("show");
|
|
6884
6885
|
}
|
|
6885
6886
|
_handleBlur() {
|
|
6886
6887
|
var e;
|
|
6887
6888
|
const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".nys-skipnav__link");
|
|
6888
|
-
|
|
6889
|
+
t == null || t.classList.remove("show");
|
|
6889
6890
|
}
|
|
6890
6891
|
_handleClick() {
|
|
6891
6892
|
const t = (this.href || "#main-content").replace("#", ""), e = document.getElementById(t);
|
|
@@ -7147,7 +7148,7 @@ const M = (Y = class extends g {
|
|
|
7147
7148
|
_handleInput(t) {
|
|
7148
7149
|
const e = t.target;
|
|
7149
7150
|
this.value = e.value, this._internals.setFormValue(this.value), this._hasUserInteracted && this._validate(), this.dispatchEvent(
|
|
7150
|
-
new CustomEvent("input", {
|
|
7151
|
+
new CustomEvent("nys-input", {
|
|
7151
7152
|
detail: { value: this.value },
|
|
7152
7153
|
bubbles: !0,
|
|
7153
7154
|
composed: !0
|
|
@@ -7156,20 +7157,16 @@ const M = (Y = class extends g {
|
|
|
7156
7157
|
}
|
|
7157
7158
|
// Handle focus event
|
|
7158
7159
|
_handleFocus() {
|
|
7159
|
-
this.dispatchEvent(new Event("focus"));
|
|
7160
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
7160
7161
|
}
|
|
7161
7162
|
// Handle blur event
|
|
7162
7163
|
_handleBlur() {
|
|
7163
|
-
this._hasUserInteracted || (this._hasUserInteracted = !0), this._validate(), this.dispatchEvent(new Event("blur"));
|
|
7164
|
-
}
|
|
7165
|
-
// Handle change event to bubble up selected value
|
|
7166
|
-
_handleChange() {
|
|
7167
|
-
this.dispatchEvent(new Event("change"));
|
|
7164
|
+
this._hasUserInteracted || (this._hasUserInteracted = !0), this._validate(), this.dispatchEvent(new Event("nys-blur"));
|
|
7168
7165
|
}
|
|
7169
7166
|
_handleSelect(t) {
|
|
7170
7167
|
const e = t.target;
|
|
7171
7168
|
this.value = e.value, this.dispatchEvent(
|
|
7172
|
-
new CustomEvent("select", {
|
|
7169
|
+
new CustomEvent("nys-select", {
|
|
7173
7170
|
detail: { value: this.value },
|
|
7174
7171
|
bubbles: !0,
|
|
7175
7172
|
composed: !0
|
|
@@ -7204,23 +7201,24 @@ const M = (Y = class extends g {
|
|
|
7204
7201
|
?disabled=${this.disabled}
|
|
7205
7202
|
?required=${this.required}
|
|
7206
7203
|
?readonly=${this.readonly}
|
|
7207
|
-
aria-disabled
|
|
7208
|
-
|
|
7209
|
-
placeholder=${
|
|
7204
|
+
aria-disabled=${f(this.disabled ? "true" : void 0)}
|
|
7205
|
+
aria-required=${f(this.required ? "true" : void 0)}
|
|
7206
|
+
placeholder=${f(
|
|
7210
7207
|
this.placeholder ? this.placeholder : void 0
|
|
7211
7208
|
)}
|
|
7212
|
-
maxlength=${
|
|
7209
|
+
maxlength=${f(
|
|
7213
7210
|
this.maxlength !== "" ? this.maxlength : void 0
|
|
7214
7211
|
)}
|
|
7215
7212
|
.rows=${this.rows}
|
|
7216
|
-
form=${
|
|
7213
|
+
form=${f(this.form || void 0)}
|
|
7217
7214
|
@input=${this._handleInput}
|
|
7218
7215
|
@focus="${this._handleFocus}"
|
|
7219
7216
|
@blur="${this._handleBlur}"
|
|
7220
|
-
@change="${this._handleChange}"
|
|
7221
7217
|
@select="${this._handleSelect}"
|
|
7222
7218
|
@selectionchange="${this._handleSelectionChange}"
|
|
7223
|
-
|
|
7219
|
+
>
|
|
7220
|
+
${this.value}</textarea
|
|
7221
|
+
>
|
|
7224
7222
|
<nys-errormessage
|
|
7225
7223
|
?showError=${this.showError}
|
|
7226
7224
|
errorMessage=${this._internals.validationMessage || this.errorMessage}
|
|
@@ -7588,7 +7586,7 @@ const _ = (K = class extends g {
|
|
|
7588
7586
|
_handleInput(t) {
|
|
7589
7587
|
const e = t.target;
|
|
7590
7588
|
this.value = e.value, this._internals.setFormValue(this.value), this._hasUserInteracted && this._validate(), this.dispatchEvent(
|
|
7591
|
-
new CustomEvent("input", {
|
|
7589
|
+
new CustomEvent("nys-input", {
|
|
7592
7590
|
detail: { value: this.value },
|
|
7593
7591
|
bubbles: !0,
|
|
7594
7592
|
composed: !0
|
|
@@ -7597,15 +7595,11 @@ const _ = (K = class extends g {
|
|
|
7597
7595
|
}
|
|
7598
7596
|
// Handle focus event
|
|
7599
7597
|
_handleFocus() {
|
|
7600
|
-
this.dispatchEvent(new Event("focus"));
|
|
7598
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
7601
7599
|
}
|
|
7602
7600
|
// Handle blur event
|
|
7603
7601
|
_handleBlur() {
|
|
7604
|
-
this._hasUserInteracted || (this._hasUserInteracted = !0), this._validate(), this.dispatchEvent(new Event("blur"));
|
|
7605
|
-
}
|
|
7606
|
-
// Handle change event
|
|
7607
|
-
_handleChange() {
|
|
7608
|
-
this.dispatchEvent(new Event("change"));
|
|
7602
|
+
this._hasUserInteracted || (this._hasUserInteracted = !0), this._validate(), this.dispatchEvent(new Event("nys-blur"));
|
|
7609
7603
|
}
|
|
7610
7604
|
_validateButtonSlot(t) {
|
|
7611
7605
|
var n, a;
|
|
@@ -7653,21 +7647,20 @@ const _ = (K = class extends g {
|
|
|
7653
7647
|
aria-disabled="${this.disabled}"
|
|
7654
7648
|
aria-label="${[this.label, this.description].filter(Boolean).join(" ")}"
|
|
7655
7649
|
.value=${this.value}
|
|
7656
|
-
placeholder=${
|
|
7650
|
+
placeholder=${f(
|
|
7657
7651
|
this.placeholder ? this.placeholder : void 0
|
|
7658
7652
|
)}
|
|
7659
|
-
pattern=${
|
|
7660
|
-
min=${
|
|
7661
|
-
maxlength=${
|
|
7653
|
+
pattern=${f(this.pattern ? this.pattern : void 0)}
|
|
7654
|
+
min=${f(this.min !== "" ? this.min : void 0)}
|
|
7655
|
+
maxlength=${f(
|
|
7662
7656
|
this.maxlength !== "" ? this.maxlength : void 0
|
|
7663
7657
|
)}
|
|
7664
|
-
step=${
|
|
7665
|
-
max=${
|
|
7666
|
-
form=${
|
|
7658
|
+
step=${f(this.step !== "" ? this.step : void 0)}
|
|
7659
|
+
max=${f(this.max !== "" ? this.max : void 0)}
|
|
7660
|
+
form=${f(this.form ? this.form : void 0)}
|
|
7667
7661
|
@input=${this._handleInput}
|
|
7668
7662
|
@focus="${this._handleFocus}"
|
|
7669
7663
|
@blur="${this._handleBlur}"
|
|
7670
|
-
@change="${this._handleChange}"
|
|
7671
7664
|
/>
|
|
7672
7665
|
${this.type === "password" ? h` <nys-button
|
|
7673
7666
|
class="eye-icon"
|
|
@@ -7766,7 +7759,7 @@ x([
|
|
|
7766
7759
|
l({ type: String })
|
|
7767
7760
|
], _.prototype, "errorMessage", 2);
|
|
7768
7761
|
x([
|
|
7769
|
-
|
|
7762
|
+
x1()
|
|
7770
7763
|
], _.prototype, "showPassword", 2);
|
|
7771
7764
|
let w7 = _;
|
|
7772
7765
|
customElements.get("nys-textinput") || customElements.define("nys-textinput", w7);
|
|
@@ -8047,14 +8040,14 @@ const k7 = b`
|
|
|
8047
8040
|
}
|
|
8048
8041
|
}
|
|
8049
8042
|
`;
|
|
8050
|
-
var $7 = Object.defineProperty, S7 = Object.getOwnPropertyDescriptor,
|
|
8043
|
+
var $7 = Object.defineProperty, S7 = Object.getOwnPropertyDescriptor, n1 = (o, t, e, s) => {
|
|
8051
8044
|
for (var r = s > 1 ? void 0 : s ? S7(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
8052
8045
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
8053
8046
|
return s && r && $7(t, e, r), r;
|
|
8054
8047
|
};
|
|
8055
8048
|
let L7 = 0;
|
|
8056
|
-
var
|
|
8057
|
-
const t1 = (
|
|
8049
|
+
var h1;
|
|
8050
|
+
const t1 = (h1 = class extends g {
|
|
8058
8051
|
// allows use of elementInternals' API
|
|
8059
8052
|
constructor() {
|
|
8060
8053
|
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();
|
|
@@ -8063,7 +8056,7 @@ const t1 = (c1 = class extends g {
|
|
|
8063
8056
|
return this._size;
|
|
8064
8057
|
}
|
|
8065
8058
|
set size(t) {
|
|
8066
|
-
this._size =
|
|
8059
|
+
this._size = h1.VALID_SIZES.includes(
|
|
8067
8060
|
t
|
|
8068
8061
|
) ? t : "md";
|
|
8069
8062
|
}
|
|
@@ -8076,33 +8069,30 @@ const t1 = (c1 = class extends g {
|
|
|
8076
8069
|
updated(t) {
|
|
8077
8070
|
(t.has("checked") || t.has("value")) && this._internals.setFormValue(this.checked ? this.value : null);
|
|
8078
8071
|
}
|
|
8079
|
-
/**********************
|
|
8072
|
+
/********************** Event Handlers **********************/
|
|
8073
|
+
_emitChangeEvent() {
|
|
8074
|
+
this.dispatchEvent(
|
|
8075
|
+
new CustomEvent("nys-change", {
|
|
8076
|
+
detail: { checked: this.checked },
|
|
8077
|
+
bubbles: !0,
|
|
8078
|
+
composed: !0
|
|
8079
|
+
})
|
|
8080
|
+
);
|
|
8081
|
+
}
|
|
8080
8082
|
// Handle focus event
|
|
8081
8083
|
_handleFocus() {
|
|
8082
|
-
this.dispatchEvent(new Event("focus"));
|
|
8084
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
8083
8085
|
}
|
|
8084
8086
|
// Handle blur event
|
|
8085
8087
|
_handleBlur() {
|
|
8086
|
-
this.dispatchEvent(new Event("blur"));
|
|
8088
|
+
this.dispatchEvent(new Event("nys-blur"));
|
|
8087
8089
|
}
|
|
8088
8090
|
_handleChange(t) {
|
|
8089
8091
|
const { checked: e } = t.target;
|
|
8090
|
-
this.checked = e, this.
|
|
8091
|
-
new CustomEvent("change", {
|
|
8092
|
-
detail: { checked: this.checked },
|
|
8093
|
-
bubbles: !0,
|
|
8094
|
-
composed: !0
|
|
8095
|
-
})
|
|
8096
|
-
);
|
|
8092
|
+
this.checked = e, this._emitChangeEvent();
|
|
8097
8093
|
}
|
|
8098
8094
|
_handleKeyDown(t) {
|
|
8099
|
-
!this.disabled && (t.key === " " || t.key === "Enter") && (t.preventDefault(), this.checked = !this.checked, this.
|
|
8100
|
-
new CustomEvent("change", {
|
|
8101
|
-
detail: { checked: this.checked },
|
|
8102
|
-
bubbles: !0,
|
|
8103
|
-
composed: !0
|
|
8104
|
-
})
|
|
8105
|
-
));
|
|
8095
|
+
!this.disabled && (t.key === " " || t.key === "Enter") && (t.preventDefault(), this.checked = !this.checked, this._emitChangeEvent());
|
|
8106
8096
|
}
|
|
8107
8097
|
render() {
|
|
8108
8098
|
return h`
|
|
@@ -8112,7 +8102,7 @@ const t1 = (c1 = class extends g {
|
|
|
8112
8102
|
<input
|
|
8113
8103
|
id="${this.id}"
|
|
8114
8104
|
type="checkbox"
|
|
8115
|
-
name="${
|
|
8105
|
+
name="${f(this.name ? this.name : void 0)}"
|
|
8116
8106
|
.value=${this.value}
|
|
8117
8107
|
form=${this.form}
|
|
8118
8108
|
.checked=${this.checked}
|
|
@@ -8143,35 +8133,35 @@ const t1 = (c1 = class extends g {
|
|
|
8143
8133
|
</label>
|
|
8144
8134
|
`;
|
|
8145
8135
|
}
|
|
8146
|
-
},
|
|
8147
|
-
|
|
8136
|
+
}, h1.VALID_SIZES = ["sm", "md"], h1.styles = k7, h1.formAssociated = !0, h1);
|
|
8137
|
+
n1([
|
|
8148
8138
|
l({ type: String })
|
|
8149
8139
|
], t1.prototype, "id", 2);
|
|
8150
|
-
|
|
8140
|
+
n1([
|
|
8151
8141
|
l({ type: String, reflect: !0 })
|
|
8152
8142
|
], t1.prototype, "name", 2);
|
|
8153
|
-
|
|
8143
|
+
n1([
|
|
8154
8144
|
l({ type: String })
|
|
8155
8145
|
], t1.prototype, "value", 2);
|
|
8156
|
-
|
|
8146
|
+
n1([
|
|
8157
8147
|
l({ type: Boolean, reflect: !0 })
|
|
8158
8148
|
], t1.prototype, "checked", 2);
|
|
8159
|
-
|
|
8149
|
+
n1([
|
|
8160
8150
|
l({ type: Boolean, reflect: !0 })
|
|
8161
8151
|
], t1.prototype, "disabled", 2);
|
|
8162
|
-
|
|
8152
|
+
n1([
|
|
8163
8153
|
l({ type: Boolean })
|
|
8164
8154
|
], t1.prototype, "noIcon", 2);
|
|
8165
|
-
|
|
8155
|
+
n1([
|
|
8166
8156
|
l({ type: String })
|
|
8167
8157
|
], t1.prototype, "label", 2);
|
|
8168
|
-
|
|
8158
|
+
n1([
|
|
8169
8159
|
l({ type: String })
|
|
8170
8160
|
], t1.prototype, "description", 2);
|
|
8171
|
-
|
|
8161
|
+
n1([
|
|
8172
8162
|
l({ reflect: !0 })
|
|
8173
8163
|
], t1.prototype, "size", 1);
|
|
8174
|
-
|
|
8164
|
+
n1([
|
|
8175
8165
|
l({ type: String })
|
|
8176
8166
|
], t1.prototype, "form", 2);
|
|
8177
8167
|
let E7 = t1;
|
|
@@ -8574,7 +8564,7 @@ let D7 = class {
|
|
|
8574
8564
|
return this.cssText;
|
|
8575
8565
|
}
|
|
8576
8566
|
};
|
|
8577
|
-
const
|
|
8567
|
+
const H7 = (o) => new D7(typeof o == "string" ? o : o + "", void 0, je), V7 = (o, t) => {
|
|
8578
8568
|
if (_t) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
8579
8569
|
else for (const e of t) {
|
|
8580
8570
|
const s = document.createElement("style"), r = A2.litNonce;
|
|
@@ -8583,7 +8573,7 @@ const V7 = (o) => new D7(typeof o == "string" ? o : o + "", void 0, je), H7 = (o
|
|
|
8583
8573
|
}, ae = _t ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
8584
8574
|
let e = "";
|
|
8585
8575
|
for (const s of t.cssRules) e += s.cssText;
|
|
8586
|
-
return
|
|
8576
|
+
return H7(e);
|
|
8587
8577
|
})(o) : o;
|
|
8588
8578
|
/**
|
|
8589
8579
|
* @license
|
|
@@ -8706,7 +8696,7 @@ let o2 = class extends HTMLElement {
|
|
|
8706
8696
|
}
|
|
8707
8697
|
createRenderRoot() {
|
|
8708
8698
|
const o = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
8709
|
-
return
|
|
8699
|
+
return V7(o, this.constructor.elementStyles), o;
|
|
8710
8700
|
}
|
|
8711
8701
|
connectedCallback() {
|
|
8712
8702
|
var o;
|
|
@@ -9079,9 +9069,9 @@ const q7 = b`
|
|
|
9079
9069
|
* Copyright 2017 Google LLC
|
|
9080
9070
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9081
9071
|
*/
|
|
9082
|
-
const I2 = globalThis, B2 = I2.trustedTypes, de = B2 ? B2.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Fe = "$lit$",
|
|
9083
|
-
\f\r]`, n2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ye = /-->/g, ue = />/g,
|
|
9084
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ce = /'/g, pe = /"/g, We = /^(?:script|style|textarea|title)$/i, g2 = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), fe = /* @__PURE__ */ new WeakMap(),
|
|
9072
|
+
const I2 = globalThis, B2 = I2.trustedTypes, de = B2 ? B2.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Fe = "$lit$", f1 = `lit$${Math.random().toFixed(9).slice(2)}$`, Ge = "?" + f1, j7 = `<${Ge}>`, H1 = document, T2 = () => H1.createComment(""), v2 = (o) => o === null || typeof o != "object" && typeof o != "function", xt = Array.isArray, F7 = (o) => xt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", st = `[
|
|
9073
|
+
\f\r]`, n2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ye = /-->/g, ue = />/g, k1 = RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
|
|
9074
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ce = /'/g, pe = /"/g, We = /^(?:script|style|textarea|title)$/i, g2 = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), fe = /* @__PURE__ */ new WeakMap(), E1 = H1.createTreeWalker(H1, 129);
|
|
9085
9075
|
function Ye(o, t) {
|
|
9086
9076
|
if (!xt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
9087
9077
|
return de !== void 0 ? de.createHTML(t) : t;
|
|
@@ -9092,9 +9082,9 @@ const G7 = (o, t) => {
|
|
|
9092
9082
|
for (let a = 0; a < e; a++) {
|
|
9093
9083
|
const c = o[a];
|
|
9094
9084
|
let u, y, d = -1, C = 0;
|
|
9095
|
-
for (; C < c.length && (n.lastIndex = C, y = n.exec(c), y !== null); ) C = n.lastIndex, n === n2 ? y[1] === "!--" ? n = ye : y[1] !== void 0 ? n = ue : y[2] !== void 0 ? (We.test(y[2]) && (r = RegExp("</" + y[2], "g")), n =
|
|
9096
|
-
const p = n ===
|
|
9097
|
-
i += n === n2 ? c + j7 : d >= 0 ? (s.push(u), c.slice(0, d) + Fe + c.slice(d) +
|
|
9085
|
+
for (; C < c.length && (n.lastIndex = C, y = n.exec(c), y !== null); ) C = n.lastIndex, n === n2 ? y[1] === "!--" ? n = ye : y[1] !== void 0 ? n = ue : y[2] !== void 0 ? (We.test(y[2]) && (r = RegExp("</" + y[2], "g")), n = k1) : y[3] !== void 0 && (n = k1) : n === k1 ? y[0] === ">" ? (n = r ?? n2, d = -1) : y[1] === void 0 ? d = -2 : (d = n.lastIndex - y[2].length, u = y[1], n = y[3] === void 0 ? k1 : y[3] === '"' ? pe : Ce) : n === pe || n === Ce ? n = k1 : n === ye || n === ue ? n = n2 : (n = k1, r = void 0);
|
|
9086
|
+
const p = n === k1 && o[a + 1].startsWith("/>") ? " " : "";
|
|
9087
|
+
i += n === n2 ? c + j7 : d >= 0 ? (s.push(u), c.slice(0, d) + Fe + c.slice(d) + f1 + p) : c + f1 + (d === -2 ? a : p);
|
|
9098
9088
|
}
|
|
9099
9089
|
return [Ye(o, i + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
9100
9090
|
};
|
|
@@ -9104,34 +9094,34 @@ let it = class Ke {
|
|
|
9104
9094
|
this.parts = [];
|
|
9105
9095
|
let i = 0, n = 0;
|
|
9106
9096
|
const a = t.length - 1, c = this.parts, [u, y] = G7(t, e);
|
|
9107
|
-
if (this.el = Ke.createElement(u, s),
|
|
9097
|
+
if (this.el = Ke.createElement(u, s), E1.currentNode = this.el.content, e === 2 || e === 3) {
|
|
9108
9098
|
const d = this.el.content.firstChild;
|
|
9109
9099
|
d.replaceWith(...d.childNodes);
|
|
9110
9100
|
}
|
|
9111
|
-
for (; (r =
|
|
9101
|
+
for (; (r = E1.nextNode()) !== null && c.length < a; ) {
|
|
9112
9102
|
if (r.nodeType === 1) {
|
|
9113
9103
|
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(Fe)) {
|
|
9114
|
-
const C = y[n++], p = r.getAttribute(d).split(
|
|
9104
|
+
const C = y[n++], p = r.getAttribute(d).split(f1), I = /([.?@])?(.*)/.exec(C);
|
|
9115
9105
|
c.push({ type: 1, index: i, name: I[2], strings: p, ctor: I[1] === "." ? Y7 : I[1] === "?" ? K7 : I[1] === "@" ? J7 : X2 }), r.removeAttribute(d);
|
|
9116
|
-
} else d.startsWith(
|
|
9106
|
+
} else d.startsWith(f1) && (c.push({ type: 6, index: i }), r.removeAttribute(d));
|
|
9117
9107
|
if (We.test(r.tagName)) {
|
|
9118
|
-
const d = r.textContent.split(
|
|
9108
|
+
const d = r.textContent.split(f1), C = d.length - 1;
|
|
9119
9109
|
if (C > 0) {
|
|
9120
9110
|
r.textContent = B2 ? B2.emptyScript : "";
|
|
9121
|
-
for (let p = 0; p < C; p++) r.append(d[p], T2()),
|
|
9111
|
+
for (let p = 0; p < C; p++) r.append(d[p], T2()), E1.nextNode(), c.push({ type: 2, index: ++i });
|
|
9122
9112
|
r.append(d[C], T2());
|
|
9123
9113
|
}
|
|
9124
9114
|
}
|
|
9125
9115
|
} else if (r.nodeType === 8) if (r.data === Ge) c.push({ type: 2, index: i });
|
|
9126
9116
|
else {
|
|
9127
9117
|
let d = -1;
|
|
9128
|
-
for (; (d = r.data.indexOf(
|
|
9118
|
+
for (; (d = r.data.indexOf(f1, d + 1)) !== -1; ) c.push({ type: 7, index: i }), d += f1.length - 1;
|
|
9129
9119
|
}
|
|
9130
9120
|
i++;
|
|
9131
9121
|
}
|
|
9132
9122
|
}
|
|
9133
9123
|
static createElement(t, e) {
|
|
9134
|
-
const s =
|
|
9124
|
+
const s = H1.createElement("template");
|
|
9135
9125
|
return s.innerHTML = t, s;
|
|
9136
9126
|
}
|
|
9137
9127
|
};
|
|
@@ -9153,17 +9143,17 @@ let W7 = class {
|
|
|
9153
9143
|
return this._$AM._$AU;
|
|
9154
9144
|
}
|
|
9155
9145
|
u(o) {
|
|
9156
|
-
const { el: { content: t }, parts: e } = this._$AD, s = ((o == null ? void 0 : o.creationScope) ??
|
|
9157
|
-
|
|
9158
|
-
let r =
|
|
9146
|
+
const { el: { content: t }, parts: e } = this._$AD, s = ((o == null ? void 0 : o.creationScope) ?? H1).importNode(t, !0);
|
|
9147
|
+
E1.currentNode = s;
|
|
9148
|
+
let r = E1.nextNode(), i = 0, n = 0, a = e[0];
|
|
9159
9149
|
for (; a !== void 0; ) {
|
|
9160
9150
|
if (i === a.index) {
|
|
9161
9151
|
let c;
|
|
9162
9152
|
a.type === 2 ? c = new Je(r, r.nextSibling, this, o) : a.type === 1 ? c = new a.ctor(r, a.name, a.strings, this, o) : a.type === 6 && (c = new X7(r, this, o)), this._$AV.push(c), a = e[++n];
|
|
9163
9153
|
}
|
|
9164
|
-
i !== (a == null ? void 0 : a.index) && (r =
|
|
9154
|
+
i !== (a == null ? void 0 : a.index) && (r = E1.nextNode(), i++);
|
|
9165
9155
|
}
|
|
9166
|
-
return
|
|
9156
|
+
return E1.currentNode = H1, s;
|
|
9167
9157
|
}
|
|
9168
9158
|
p(o) {
|
|
9169
9159
|
let t = 0;
|
|
@@ -9198,7 +9188,7 @@ let W7 = class {
|
|
|
9198
9188
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
9199
9189
|
}
|
|
9200
9190
|
_(t) {
|
|
9201
|
-
this._$AH !== S && v2(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
9191
|
+
this._$AH !== S && v2(this._$AH) ? this._$AA.nextSibling.data = t : this.T(H1.createTextNode(t)), this._$AH = t;
|
|
9202
9192
|
}
|
|
9203
9193
|
$(t) {
|
|
9204
9194
|
var e;
|
|
@@ -9302,7 +9292,7 @@ ve == null || ve(it, Je), (I2.litHtmlVersions ?? (I2.litHtmlVersions = [])).push
|
|
|
9302
9292
|
* Copyright 2018 Google LLC
|
|
9303
9293
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9304
9294
|
*/
|
|
9305
|
-
const
|
|
9295
|
+
const $1 = (o) => o ?? S;
|
|
9306
9296
|
/*!
|
|
9307
9297
|
*
|
|
9308
9298
|
* ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
|
|
@@ -10027,9 +10017,9 @@ const dr = b`
|
|
|
10027
10017
|
* Copyright 2017 Google LLC
|
|
10028
10018
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10029
10019
|
*/
|
|
10030
|
-
const N2 = globalThis, q2 = N2.trustedTypes, we = q2 ? q2.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, t5 = "$lit$",
|
|
10031
|
-
\f\r]`, a2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ke = /-->/g, $e = />/g,
|
|
10032
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Se = /'/g, Le = /"/g, s5 = /^(?:script|style|textarea|title)$/i, _2 = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), Ee = /* @__PURE__ */ new WeakMap(),
|
|
10020
|
+
const N2 = globalThis, q2 = N2.trustedTypes, we = q2 ? q2.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, t5 = "$lit$", v1 = `lit$${Math.random().toFixed(9).slice(2)}$`, e5 = "?" + v1, yr = `<${e5}>`, V1 = document, j2 = () => V1.createComment(""), b2 = (o) => o === null || typeof o != "object" && typeof o != "function", $t = Array.isArray, ur = (o) => $t(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", rt = `[
|
|
10021
|
+
\f\r]`, a2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ke = /-->/g, $e = />/g, S1 = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
10022
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Se = /'/g, Le = /"/g, s5 = /^(?:script|style|textarea|title)$/i, _2 = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), Ee = /* @__PURE__ */ new WeakMap(), A1 = V1.createTreeWalker(V1, 129);
|
|
10033
10023
|
function r5(o, t) {
|
|
10034
10024
|
if (!$t(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
10035
10025
|
return we !== void 0 ? we.createHTML(t) : t;
|
|
@@ -10040,9 +10030,9 @@ const Cr = (o, t) => {
|
|
|
10040
10030
|
for (let a = 0; a < e; a++) {
|
|
10041
10031
|
const c = o[a];
|
|
10042
10032
|
let u, y, d = -1, C = 0;
|
|
10043
|
-
for (; C < c.length && (n.lastIndex = C, y = n.exec(c), y !== null); ) C = n.lastIndex, n === a2 ? y[1] === "!--" ? n = ke : y[1] !== void 0 ? n = $e : y[2] !== void 0 ? (s5.test(y[2]) && (r = RegExp("</" + y[2], "g")), n =
|
|
10044
|
-
const p = n ===
|
|
10045
|
-
i += n === a2 ? c + yr : d >= 0 ? (s.push(u), c.slice(0, d) + t5 + c.slice(d) +
|
|
10033
|
+
for (; C < c.length && (n.lastIndex = C, y = n.exec(c), y !== null); ) C = n.lastIndex, n === a2 ? y[1] === "!--" ? n = ke : y[1] !== void 0 ? n = $e : y[2] !== void 0 ? (s5.test(y[2]) && (r = RegExp("</" + y[2], "g")), n = S1) : y[3] !== void 0 && (n = S1) : n === S1 ? y[0] === ">" ? (n = r ?? a2, d = -1) : y[1] === void 0 ? d = -2 : (d = n.lastIndex - y[2].length, u = y[1], n = y[3] === void 0 ? S1 : y[3] === '"' ? Le : Se) : n === Le || n === Se ? n = S1 : n === ke || n === $e ? n = a2 : (n = S1, r = void 0);
|
|
10034
|
+
const p = n === S1 && o[a + 1].startsWith("/>") ? " " : "";
|
|
10035
|
+
i += n === a2 ? c + yr : d >= 0 ? (s.push(u), c.slice(0, d) + t5 + c.slice(d) + v1 + p) : c + v1 + (d === -2 ? a : p);
|
|
10046
10036
|
}
|
|
10047
10037
|
return [r5(o, i + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
10048
10038
|
};
|
|
@@ -10052,28 +10042,28 @@ class m2 {
|
|
|
10052
10042
|
this.parts = [];
|
|
10053
10043
|
let i = 0, n = 0;
|
|
10054
10044
|
const a = t.length - 1, c = this.parts, [u, y] = Cr(t, e);
|
|
10055
|
-
if (this.el = m2.createElement(u, s),
|
|
10045
|
+
if (this.el = m2.createElement(u, s), A1.currentNode = this.el.content, e === 2 || e === 3) {
|
|
10056
10046
|
const d = this.el.content.firstChild;
|
|
10057
10047
|
d.replaceWith(...d.childNodes);
|
|
10058
10048
|
}
|
|
10059
|
-
for (; (r =
|
|
10049
|
+
for (; (r = A1.nextNode()) !== null && c.length < a; ) {
|
|
10060
10050
|
if (r.nodeType === 1) {
|
|
10061
10051
|
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(t5)) {
|
|
10062
|
-
const C = y[n++], p = r.getAttribute(d).split(
|
|
10052
|
+
const C = y[n++], p = r.getAttribute(d).split(v1), I = /([.?@])?(.*)/.exec(C);
|
|
10063
10053
|
c.push({ type: 1, index: i, name: I[2], strings: p, ctor: I[1] === "." ? fr : I[1] === "?" ? vr : I[1] === "@" ? gr : tt }), r.removeAttribute(d);
|
|
10064
|
-
} else d.startsWith(
|
|
10054
|
+
} else d.startsWith(v1) && (c.push({ type: 6, index: i }), r.removeAttribute(d));
|
|
10065
10055
|
if (s5.test(r.tagName)) {
|
|
10066
|
-
const d = r.textContent.split(
|
|
10056
|
+
const d = r.textContent.split(v1), C = d.length - 1;
|
|
10067
10057
|
if (C > 0) {
|
|
10068
10058
|
r.textContent = q2 ? q2.emptyScript : "";
|
|
10069
|
-
for (let p = 0; p < C; p++) r.append(d[p], j2()),
|
|
10059
|
+
for (let p = 0; p < C; p++) r.append(d[p], j2()), A1.nextNode(), c.push({ type: 2, index: ++i });
|
|
10070
10060
|
r.append(d[C], j2());
|
|
10071
10061
|
}
|
|
10072
10062
|
}
|
|
10073
10063
|
} else if (r.nodeType === 8) if (r.data === e5) c.push({ type: 2, index: i });
|
|
10074
10064
|
else {
|
|
10075
10065
|
let d = -1;
|
|
10076
|
-
for (; (d = r.data.indexOf(
|
|
10066
|
+
for (; (d = r.data.indexOf(v1, d + 1)) !== -1; ) c.push({ type: 7, index: i }), d += v1.length - 1;
|
|
10077
10067
|
}
|
|
10078
10068
|
i++;
|
|
10079
10069
|
}
|
|
@@ -10102,16 +10092,16 @@ class pr {
|
|
|
10102
10092
|
}
|
|
10103
10093
|
u(t) {
|
|
10104
10094
|
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? V1).importNode(e, !0);
|
|
10105
|
-
|
|
10106
|
-
let i =
|
|
10095
|
+
A1.currentNode = r;
|
|
10096
|
+
let i = A1.nextNode(), n = 0, a = 0, c = s[0];
|
|
10107
10097
|
for (; c !== void 0; ) {
|
|
10108
10098
|
if (n === c.index) {
|
|
10109
10099
|
let u;
|
|
10110
10100
|
c.type === 2 ? u = new Q2(i, i.nextSibling, this, t) : c.type === 1 ? u = new c.ctor(i, c.name, c.strings, this, t) : c.type === 6 && (u = new br(i, this, t)), this._$AV.push(u), c = s[++a];
|
|
10111
10101
|
}
|
|
10112
|
-
n !== (c == null ? void 0 : c.index) && (i =
|
|
10102
|
+
n !== (c == null ? void 0 : c.index) && (i = A1.nextNode(), n++);
|
|
10113
10103
|
}
|
|
10114
|
-
return
|
|
10104
|
+
return A1.currentNode = V1, r;
|
|
10115
10105
|
}
|
|
10116
10106
|
p(t) {
|
|
10117
10107
|
let e = 0;
|
|
@@ -10254,7 +10244,7 @@ Ae == null || Ae(m2, Q2), (N2.litHtmlVersions ?? (N2.litHtmlVersions = [])).push
|
|
|
10254
10244
|
* Copyright 2018 Google LLC
|
|
10255
10245
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10256
10246
|
*/
|
|
10257
|
-
const
|
|
10247
|
+
const u1 = (o) => o ?? L;
|
|
10258
10248
|
var _r = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, Z = (o, t, e, s) => {
|
|
10259
10249
|
for (var r = s > 1 ? void 0 : s ? mr(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
10260
10250
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
@@ -10323,18 +10313,18 @@ const D = (F = class extends g {
|
|
|
10323
10313
|
/******************** Event Handlers ********************/
|
|
10324
10314
|
// Handle focus event
|
|
10325
10315
|
_handleFocus() {
|
|
10326
|
-
this.dispatchEvent(new Event("focus"));
|
|
10316
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
10327
10317
|
}
|
|
10328
10318
|
// Handle blur event
|
|
10329
10319
|
_handleBlur() {
|
|
10330
|
-
this.dispatchEvent(new Event("blur"));
|
|
10320
|
+
this.dispatchEvent(new Event("nys-blur"));
|
|
10331
10321
|
}
|
|
10332
10322
|
_handleClick(o) {
|
|
10333
10323
|
if (this.disabled) {
|
|
10334
10324
|
o.preventDefault();
|
|
10335
10325
|
return;
|
|
10336
10326
|
}
|
|
10337
|
-
this._manageFormAction(o);
|
|
10327
|
+
this._manageFormAction(o), this.dispatchEvent(new Event("nys-click"));
|
|
10338
10328
|
}
|
|
10339
10329
|
// Handle keydown for keyboard accessibility
|
|
10340
10330
|
_handleKeydown(o) {
|
|
@@ -10346,12 +10336,12 @@ const D = (F = class extends g {
|
|
|
10346
10336
|
<div class="nys-button__linkwrapper">
|
|
10347
10337
|
<a
|
|
10348
10338
|
class="nys-button"
|
|
10349
|
-
id=${
|
|
10350
|
-
name=${
|
|
10339
|
+
id=${u1(this.id)}
|
|
10340
|
+
name=${u1(this.name ? this.name : void 0)}
|
|
10351
10341
|
?disabled=${this.disabled}
|
|
10352
10342
|
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
10353
|
-
form=${
|
|
10354
|
-
value=${
|
|
10343
|
+
form=${u1(this.form ? this.form : void 0)}
|
|
10344
|
+
value=${u1(this.value ? this.value : void 0)}
|
|
10355
10345
|
href=${this.href}
|
|
10356
10346
|
target=${this.target}
|
|
10357
10347
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
@@ -10371,11 +10361,11 @@ const D = (F = class extends g {
|
|
|
10371
10361
|
` : h`
|
|
10372
10362
|
<button
|
|
10373
10363
|
class="nys-button"
|
|
10374
|
-
id=${
|
|
10375
|
-
name=${
|
|
10364
|
+
id=${u1(this.id)}
|
|
10365
|
+
name=${u1(this.name ? this.name : void 0)}
|
|
10376
10366
|
?disabled=${this.disabled}
|
|
10377
|
-
form=${
|
|
10378
|
-
value=${
|
|
10367
|
+
form=${u1(this.form ? this.form : void 0)}
|
|
10368
|
+
value=${u1(this.value ? this.value : void 0)}
|
|
10379
10369
|
type=${this.type}
|
|
10380
10370
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
10381
10371
|
@click=${this._handleClick}
|
|
@@ -10465,8 +10455,8 @@ var kr = Object.defineProperty, $r = Object.getOwnPropertyDescriptor, k = (o, t,
|
|
|
10465
10455
|
return s && r && kr(t, e, r), r;
|
|
10466
10456
|
};
|
|
10467
10457
|
let Sr = 0;
|
|
10468
|
-
var
|
|
10469
|
-
const m = (
|
|
10458
|
+
var C1;
|
|
10459
|
+
const m = (C1 = class extends g {
|
|
10470
10460
|
// allows use of elementInternals' API
|
|
10471
10461
|
constructor() {
|
|
10472
10462
|
super(), this.id = "", this.name = "", this._type = "text", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this.showPassword = !1, this._originalErrorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -10475,13 +10465,13 @@ const m = (u1 = class extends g {
|
|
|
10475
10465
|
return this._type;
|
|
10476
10466
|
}
|
|
10477
10467
|
set type(o) {
|
|
10478
|
-
this._type =
|
|
10468
|
+
this._type = C1.VALID_TYPES.includes(
|
|
10479
10469
|
o
|
|
10480
10470
|
) ? o : "text";
|
|
10481
10471
|
}
|
|
10482
10472
|
// Ensure the "width" property is valid after updates
|
|
10483
10473
|
async updated(o) {
|
|
10484
|
-
o.has("width") && (await Promise.resolve(), this.width =
|
|
10474
|
+
o.has("width") && (await Promise.resolve(), this.width = C1.VALID_WIDTHS.includes(this.width) ? this.width : "full"), o.has("disabled") && (this._validateButtonSlot("startButton"), this._validateButtonSlot("endButton"));
|
|
10485
10475
|
}
|
|
10486
10476
|
// Generate a unique ID if one is not provided
|
|
10487
10477
|
connectedCallback() {
|
|
@@ -10550,7 +10540,7 @@ const m = (u1 = class extends g {
|
|
|
10550
10540
|
_handleInput(o) {
|
|
10551
10541
|
const t = o.target;
|
|
10552
10542
|
this.value = t.value, this._internals.setFormValue(this.value), this._hasUserInteracted && this._validate(), this.dispatchEvent(
|
|
10553
|
-
new CustomEvent("input", {
|
|
10543
|
+
new CustomEvent("nys-input", {
|
|
10554
10544
|
detail: { value: this.value },
|
|
10555
10545
|
bubbles: !0,
|
|
10556
10546
|
composed: !0
|
|
@@ -10559,15 +10549,11 @@ const m = (u1 = class extends g {
|
|
|
10559
10549
|
}
|
|
10560
10550
|
// Handle focus event
|
|
10561
10551
|
_handleFocus() {
|
|
10562
|
-
this.dispatchEvent(new Event("focus"));
|
|
10552
|
+
this.dispatchEvent(new Event("nys-focus"));
|
|
10563
10553
|
}
|
|
10564
10554
|
// Handle blur event
|
|
10565
10555
|
_handleBlur() {
|
|
10566
|
-
this._hasUserInteracted || (this._hasUserInteracted = !0), this._validate(), this.dispatchEvent(new Event("blur"));
|
|
10567
|
-
}
|
|
10568
|
-
// Handle change event
|
|
10569
|
-
_handleChange() {
|
|
10570
|
-
this.dispatchEvent(new Event("change"));
|
|
10556
|
+
this._hasUserInteracted || (this._hasUserInteracted = !0), this._validate(), this.dispatchEvent(new Event("nys-blur"));
|
|
10571
10557
|
}
|
|
10572
10558
|
_validateButtonSlot(o) {
|
|
10573
10559
|
var t, e;
|
|
@@ -10615,21 +10601,20 @@ const m = (u1 = class extends g {
|
|
|
10615
10601
|
aria-disabled="${this.disabled}"
|
|
10616
10602
|
aria-label="${[this.label, this.description].filter(Boolean).join(" ")}"
|
|
10617
10603
|
.value=${this.value}
|
|
10618
|
-
placeholder=${
|
|
10604
|
+
placeholder=${$1(
|
|
10619
10605
|
this.placeholder ? this.placeholder : void 0
|
|
10620
10606
|
)}
|
|
10621
|
-
pattern=${
|
|
10622
|
-
min=${
|
|
10623
|
-
maxlength=${
|
|
10607
|
+
pattern=${$1(this.pattern ? this.pattern : void 0)}
|
|
10608
|
+
min=${$1(this.min !== "" ? this.min : void 0)}
|
|
10609
|
+
maxlength=${$1(
|
|
10624
10610
|
this.maxlength !== "" ? this.maxlength : void 0
|
|
10625
10611
|
)}
|
|
10626
|
-
step=${
|
|
10627
|
-
max=${
|
|
10628
|
-
form=${
|
|
10612
|
+
step=${$1(this.step !== "" ? this.step : void 0)}
|
|
10613
|
+
max=${$1(this.max !== "" ? this.max : void 0)}
|
|
10614
|
+
form=${$1(this.form ? this.form : void 0)}
|
|
10629
10615
|
@input=${this._handleInput}
|
|
10630
10616
|
@focus="${this._handleFocus}"
|
|
10631
10617
|
@blur="${this._handleBlur}"
|
|
10632
|
-
@change="${this._handleChange}"
|
|
10633
10618
|
/>
|
|
10634
10619
|
${this.type === "password" ? h` <nys-button
|
|
10635
10620
|
class="eye-icon"
|
|
@@ -10658,7 +10643,7 @@ const m = (u1 = class extends g {
|
|
|
10658
10643
|
</div>
|
|
10659
10644
|
`;
|
|
10660
10645
|
}
|
|
10661
|
-
},
|
|
10646
|
+
}, C1.VALID_TYPES = [
|
|
10662
10647
|
"email",
|
|
10663
10648
|
"number",
|
|
10664
10649
|
"password",
|
|
@@ -10666,7 +10651,7 @@ const m = (u1 = class extends g {
|
|
|
10666
10651
|
"tel",
|
|
10667
10652
|
"text",
|
|
10668
10653
|
"url"
|
|
10669
|
-
],
|
|
10654
|
+
], C1.VALID_WIDTHS = ["sm", "md", "lg", "full"], C1.styles = q7, C1.formAssociated = !0, C1);
|
|
10670
10655
|
k([
|
|
10671
10656
|
w({ type: String })
|
|
10672
10657
|
], m.prototype, "id", 2);
|
|
@@ -10865,7 +10850,6 @@ const At = class At extends g {
|
|
|
10865
10850
|
<div class="nys-unavheader__left">
|
|
10866
10851
|
<a
|
|
10867
10852
|
href="https://ny.gov"
|
|
10868
|
-
target="_blank"
|
|
10869
10853
|
id="nys-unavheader__logolink"
|
|
10870
10854
|
aria-label="logo of New York State"
|
|
10871
10855
|
>
|
|
@@ -10896,7 +10880,7 @@ const At = class At extends g {
|
|
|
10896
10880
|
</div>
|
|
10897
10881
|
</div>
|
|
10898
10882
|
<div class="nys-unavheader__right">
|
|
10899
|
-
${
|
|
10883
|
+
${this.hideTranslate ? null : h`<div class="nys-unavheader__translatewrapper">
|
|
10900
10884
|
<div
|
|
10901
10885
|
class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
|
|
10902
10886
|
>
|
|
@@ -10909,17 +10893,17 @@ const At = class At extends g {
|
|
|
10909
10893
|
.onClick="${() => this._toggleLanguageList()}"
|
|
10910
10894
|
></nys-button>
|
|
10911
10895
|
</div>
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10896
|
+
${this.isSearchFocused ? null : h`<div class="nys-unavheader--lg nys-unavheader--xl">
|
|
10897
|
+
<nys-button
|
|
10898
|
+
variant="ghost"
|
|
10899
|
+
label="Translate"
|
|
10900
|
+
prefixIcon="language_filled"
|
|
10901
|
+
suffixIcon=${this.languageVisible ? "chevron_up" : "chevron_down"}
|
|
10902
|
+
ariaLabel="Translate"
|
|
10903
|
+
id="nys-unavheader__translate"
|
|
10904
|
+
.onClick="${() => this._toggleLanguageList()}"
|
|
10905
|
+
></nys-button>
|
|
10906
|
+
</div>`}
|
|
10923
10907
|
<div
|
|
10924
10908
|
class="nys-unavheader__languagelist ${this.languageVisible ? "show" : "hide"}"
|
|
10925
10909
|
>
|
|
@@ -10932,7 +10916,7 @@ const At = class At extends g {
|
|
|
10932
10916
|
>`
|
|
10933
10917
|
)}
|
|
10934
10918
|
</div>
|
|
10935
|
-
</div>`
|
|
10919
|
+
</div>`}
|
|
10936
10920
|
${this.hideSearch ? null : h` <div
|
|
10937
10921
|
class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
|
|
10938
10922
|
>
|
|
@@ -11404,23 +11388,23 @@ const Mt = class Mt extends g {
|
|
|
11404
11388
|
}
|
|
11405
11389
|
};
|
|
11406
11390
|
Mt.styles = Ar;
|
|
11407
|
-
let
|
|
11391
|
+
let m1 = Mt;
|
|
11408
11392
|
k2([
|
|
11409
11393
|
l({ type: String })
|
|
11410
|
-
],
|
|
11394
|
+
], m1.prototype, "appName");
|
|
11411
11395
|
k2([
|
|
11412
11396
|
l({ type: String })
|
|
11413
|
-
],
|
|
11397
|
+
], m1.prototype, "agencyName");
|
|
11414
11398
|
k2([
|
|
11415
11399
|
l({ type: String })
|
|
11416
|
-
],
|
|
11400
|
+
], m1.prototype, "homepageLink");
|
|
11417
11401
|
k2([
|
|
11418
|
-
|
|
11419
|
-
],
|
|
11402
|
+
x1()
|
|
11403
|
+
], m1.prototype, "slotHasContent");
|
|
11420
11404
|
k2([
|
|
11421
|
-
|
|
11422
|
-
],
|
|
11423
|
-
customElements.get("nys-globalheader") || customElements.define("nys-globalheader",
|
|
11405
|
+
x1()
|
|
11406
|
+
], m1.prototype, "isMobileMenuOpen");
|
|
11407
|
+
customElements.get("nys-globalheader") || customElements.define("nys-globalheader", m1);
|
|
11424
11408
|
const Dr = b`
|
|
11425
11409
|
:host {
|
|
11426
11410
|
/* Global Footer Styles */
|
|
@@ -11577,10 +11561,10 @@ const Dr = b`
|
|
|
11577
11561
|
}
|
|
11578
11562
|
}
|
|
11579
11563
|
`;
|
|
11580
|
-
var
|
|
11564
|
+
var Hr = Object.defineProperty, St = (o, t, e, s) => {
|
|
11581
11565
|
for (var r = void 0, i = o.length - 1, n; i >= 0; i--)
|
|
11582
11566
|
(n = o[i]) && (r = n(t, e, r) || r);
|
|
11583
|
-
return r &&
|
|
11567
|
+
return r && Hr(t, e, r), r;
|
|
11584
11568
|
};
|
|
11585
11569
|
const Dt = class Dt extends g {
|
|
11586
11570
|
constructor() {
|
|
@@ -11642,10 +11626,10 @@ St([
|
|
|
11642
11626
|
l({ type: String })
|
|
11643
11627
|
], W1.prototype, "homepageLink");
|
|
11644
11628
|
St([
|
|
11645
|
-
|
|
11629
|
+
x1()
|
|
11646
11630
|
], W1.prototype, "slotHasContent");
|
|
11647
11631
|
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", W1);
|
|
11648
|
-
const
|
|
11632
|
+
const Vr = b`
|
|
11649
11633
|
:host {
|
|
11650
11634
|
/* Global Footer Styles */
|
|
11651
11635
|
--_nys-unavfooter-link-color: var(
|
|
@@ -11817,7 +11801,7 @@ const Hr = b`
|
|
|
11817
11801
|
<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"/>
|
|
11818
11802
|
<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"/>
|
|
11819
11803
|
<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"/>
|
|
11820
|
-
</svg>`,
|
|
11804
|
+
</svg>`, Ht = class Ht extends g {
|
|
11821
11805
|
/**************** Functions ****************/
|
|
11822
11806
|
_getNysLogo() {
|
|
11823
11807
|
return new DOMParser().parseFromString(Ur, "image/svg+xml").documentElement;
|
|
@@ -11854,8 +11838,8 @@ const Hr = b`
|
|
|
11854
11838
|
`;
|
|
11855
11839
|
}
|
|
11856
11840
|
};
|
|
11857
|
-
|
|
11858
|
-
let at =
|
|
11841
|
+
Ht.styles = Vr;
|
|
11842
|
+
let at = Ht;
|
|
11859
11843
|
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", at);
|
|
11860
11844
|
export {
|
|
11861
11845
|
K5 as NysAlert,
|
|
@@ -11865,9 +11849,9 @@ export {
|
|
|
11865
11849
|
Os as NysCheckboxgroup,
|
|
11866
11850
|
N1 as NysErrorMessage,
|
|
11867
11851
|
W1 as NysGlobalFooter,
|
|
11868
|
-
|
|
11852
|
+
m1 as NysGlobalHeader,
|
|
11869
11853
|
Ys as NysIcon,
|
|
11870
|
-
|
|
11854
|
+
D1 as NysLabel,
|
|
11871
11855
|
P1 as NysOption,
|
|
11872
11856
|
n7 as NysRadiobutton,
|
|
11873
11857
|
e7 as NysRadiogroup,
|