@nysds/components 1.1.6 → 1.1.7
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 +290 -250
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +68 -62
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-button/src/nys-button.d.ts +4 -0
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +1 -1
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +1 -1
- package/package.json +1 -1
package/dist/nysds.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { css as b, LitElement as v, html as h } from "lit";
|
|
|
2
2
|
import { property as a, state as x1 } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined as p } from "lit/directives/if-defined.js";
|
|
4
4
|
/*!
|
|
5
|
-
* New York State Design System (v1.1.
|
|
5
|
+
* New York State Design System (v1.1.7)
|
|
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
|
|
@@ -253,10 +253,10 @@ const at = b`
|
|
|
253
253
|
* Copyright 2019 Google LLC
|
|
254
254
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
255
255
|
*/
|
|
256
|
-
const a2 = globalThis, Z2 = a2.ShadowRoot && (a2.ShadyCSS === void 0 || a2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
256
|
+
const a2 = globalThis, Z2 = a2.ShadowRoot && (a2.ShadyCSS === void 0 || a2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, T5 = Symbol(), r5 = /* @__PURE__ */ new WeakMap();
|
|
257
257
|
let lt = class {
|
|
258
258
|
constructor(t, e, s) {
|
|
259
|
-
if (this._$cssResult$ = !0, s !==
|
|
259
|
+
if (this._$cssResult$ = !0, s !== T5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
260
260
|
this.cssText = t, this.t = e;
|
|
261
261
|
}
|
|
262
262
|
get styleSheet() {
|
|
@@ -272,7 +272,7 @@ let lt = class {
|
|
|
272
272
|
return this.cssText;
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
const ct = (o) => new lt(typeof o == "string" ? o : o + "", void 0,
|
|
275
|
+
const ct = (o) => new lt(typeof o == "string" ? o : o + "", void 0, T5), ht = (o, t) => {
|
|
276
276
|
if (Z2) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
277
277
|
else for (const e of t) {
|
|
278
278
|
const s = document.createElement("style"), r = a2.litNonce;
|
|
@@ -1210,10 +1210,10 @@ customElements.get("nys-icon") || customElements.define("nys-icon", kt);
|
|
|
1210
1210
|
* Copyright 2019 Google LLC
|
|
1211
1211
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1212
1212
|
*/
|
|
1213
|
-
const l2 = globalThis, O2 = l2.ShadowRoot && (l2.ShadyCSS === void 0 || l2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
1213
|
+
const l2 = globalThis, O2 = l2.ShadowRoot && (l2.ShadyCSS === void 0 || l2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, q5 = Symbol(), l5 = /* @__PURE__ */ new WeakMap();
|
|
1214
1214
|
let $t = class {
|
|
1215
1215
|
constructor(o, t, e) {
|
|
1216
|
-
if (this._$cssResult$ = !0, e !==
|
|
1216
|
+
if (this._$cssResult$ = !0, e !== q5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1217
1217
|
this.cssText = o, this.t = t;
|
|
1218
1218
|
}
|
|
1219
1219
|
get styleSheet() {
|
|
@@ -1229,7 +1229,7 @@ let $t = class {
|
|
|
1229
1229
|
return this.cssText;
|
|
1230
1230
|
}
|
|
1231
1231
|
};
|
|
1232
|
-
const St = (o) => new $t(typeof o == "string" ? o : o + "", void 0,
|
|
1232
|
+
const St = (o) => new $t(typeof o == "string" ? o : o + "", void 0, q5), Lt = (o, t) => {
|
|
1233
1233
|
if (O2) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1234
1234
|
else for (const e of t) {
|
|
1235
1235
|
const s = document.createElement("style"), r = l2.litNonce;
|
|
@@ -1275,7 +1275,7 @@ const { is: Mt, defineProperty: Et, getOwnPropertyDescriptor: Dt, getOwnProperty
|
|
|
1275
1275
|
return e;
|
|
1276
1276
|
} }, I2 = (o, t) => !Mt(o, t), C5 = { attribute: !0, type: String, converter: y2, reflect: !1, hasChanged: I2 };
|
|
1277
1277
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E1.litPropertyMetadata ?? (E1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1278
|
-
let
|
|
1278
|
+
let T1 = class extends HTMLElement {
|
|
1279
1279
|
static addInitializer(t) {
|
|
1280
1280
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
1281
1281
|
}
|
|
@@ -1473,7 +1473,7 @@ let q1 = class extends HTMLElement {
|
|
|
1473
1473
|
firstUpdated(t) {
|
|
1474
1474
|
}
|
|
1475
1475
|
};
|
|
1476
|
-
|
|
1476
|
+
T1.elementStyles = [], T1.shadowRootOptions = { mode: "open" }, T1[Y1("elementProperties")] = /* @__PURE__ */ new Map(), T1[Y1("finalized")] = /* @__PURE__ */ new Map(), d5 == null || d5({ ReactiveElement: T1 }), (E1.reactiveElementVersions ?? (E1.reactiveElementVersions = [])).push("2.0.4");
|
|
1477
1477
|
/**
|
|
1478
1478
|
* @license
|
|
1479
1479
|
* Copyright 2017 Google LLC
|
|
@@ -1500,7 +1500,7 @@ const zt = { attribute: !0, type: String, converter: y2, reflect: !1, hasChanged
|
|
|
1500
1500
|
}
|
|
1501
1501
|
throw Error("Unsupported decorator location: " + s);
|
|
1502
1502
|
};
|
|
1503
|
-
function
|
|
1503
|
+
function D(o) {
|
|
1504
1504
|
return (t, e) => typeof e == "object" ? Zt(o, t, e) : ((s, r, i) => {
|
|
1505
1505
|
const n = r.hasOwnProperty(i);
|
|
1506
1506
|
return r.constructor.createProperty(i, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(r, i) : void 0;
|
|
@@ -1912,7 +1912,7 @@ const Pt = b`
|
|
|
1912
1912
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1913
1913
|
*/
|
|
1914
1914
|
const u2 = globalThis, p2 = u2.trustedTypes, y5 = p2 ? p2.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, N5 = "$lit$", l1 = `lit$${Math.random().toFixed(9).slice(2)}$`, j5 = "?" + l1, Ot = `<${j5}>`, b1 = document, v2 = () => b1.createComment(""), Q1 = (o) => o === null || typeof o != "object" && typeof o != "function", B2 = Array.isArray, It = (o) => B2(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", A2 = `[
|
|
1915
|
-
\f\r]`,
|
|
1915
|
+
\f\r]`, q1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, u5 = /-->/g, p5 = />/g, p1 = RegExp(`>|${A2}(?:([^\\s"'>=/]+)(${A2}*=${A2}*(?:[^
|
|
1916
1916
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), v5 = /'/g, f5 = /"/g, F5 = /^(?:script|style|textarea|title)$/i, t2 = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), g5 = /* @__PURE__ */ new WeakMap(), g1 = b1.createTreeWalker(b1, 129);
|
|
1917
1917
|
function G5(o, t) {
|
|
1918
1918
|
if (!B2(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
@@ -1920,13 +1920,13 @@ function G5(o, t) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
const Bt = (o, t) => {
|
|
1922
1922
|
const e = o.length - 1, s = [];
|
|
1923
|
-
let r, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n =
|
|
1923
|
+
let r, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = q1;
|
|
1924
1924
|
for (let l = 0; l < e; l++) {
|
|
1925
1925
|
const c = o[l];
|
|
1926
1926
|
let C, y, d = -1, _ = 0;
|
|
1927
|
-
for (; _ < c.length && (n.lastIndex = _, y = n.exec(c), y !== null); ) _ = n.lastIndex, n ===
|
|
1927
|
+
for (; _ < c.length && (n.lastIndex = _, y = n.exec(c), y !== null); ) _ = n.lastIndex, n === q1 ? y[1] === "!--" ? n = u5 : y[1] !== void 0 ? n = p5 : y[2] !== void 0 ? (F5.test(y[2]) && (r = RegExp("</" + y[2], "g")), n = p1) : y[3] !== void 0 && (n = p1) : n === p1 ? y[0] === ">" ? (n = r ?? q1, d = -1) : y[1] === void 0 ? d = -2 : (d = n.lastIndex - y[2].length, C = y[1], n = y[3] === void 0 ? p1 : y[3] === '"' ? f5 : v5) : n === f5 || n === v5 ? n = p1 : n === u5 || n === p5 ? n = q1 : (n = p1, r = void 0);
|
|
1928
1928
|
const k = n === p1 && o[l + 1].startsWith("/>") ? " " : "";
|
|
1929
|
-
i += n ===
|
|
1929
|
+
i += n === q1 ? c + Ot : d >= 0 ? (s.push(C), c.slice(0, d) + N5 + c.slice(d) + l1 + k) : c + l1 + (d === -2 ? l : k);
|
|
1930
1930
|
}
|
|
1931
1931
|
return [G5(o, i + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
1932
1932
|
};
|
|
@@ -1944,7 +1944,7 @@ let H2 = class W5 {
|
|
|
1944
1944
|
if (r.nodeType === 1) {
|
|
1945
1945
|
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(N5)) {
|
|
1946
1946
|
const _ = y[n++], k = r.getAttribute(d).split(l1), J = /([.?@])?(.*)/.exec(_);
|
|
1947
|
-
c.push({ type: 1, index: i, name: J[2], strings: k, ctor: J[1] === "." ?
|
|
1947
|
+
c.push({ type: 1, index: i, name: J[2], strings: k, ctor: J[1] === "." ? Tt : J[1] === "?" ? qt : J[1] === "@" ? Nt : k2 }), r.removeAttribute(d);
|
|
1948
1948
|
} else d.startsWith(l1) && (c.push({ type: 6, index: i }), r.removeAttribute(d));
|
|
1949
1949
|
if (F5.test(r.tagName)) {
|
|
1950
1950
|
const d = r.textContent.split(l1), _ = d.length - 1;
|
|
@@ -2087,14 +2087,14 @@ let Rt = class {
|
|
|
2087
2087
|
j(t) {
|
|
2088
2088
|
t === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
2089
2089
|
}
|
|
2090
|
-
},
|
|
2090
|
+
}, Tt = class extends k2 {
|
|
2091
2091
|
constructor() {
|
|
2092
2092
|
super(...arguments), this.type = 3;
|
|
2093
2093
|
}
|
|
2094
2094
|
j(t) {
|
|
2095
2095
|
this.element[this.name] = t === $ ? void 0 : t;
|
|
2096
2096
|
}
|
|
2097
|
-
},
|
|
2097
|
+
}, qt = class extends k2 {
|
|
2098
2098
|
constructor() {
|
|
2099
2099
|
super(...arguments), this.type = 4;
|
|
2100
2100
|
}
|
|
@@ -2133,24 +2133,24 @@ _5 == null || _5(H2, Y5), (u2.litHtmlVersions ?? (u2.litHtmlVersions = [])).push
|
|
|
2133
2133
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2134
2134
|
*/
|
|
2135
2135
|
const i1 = (o) => o ?? $;
|
|
2136
|
-
var Ft = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor,
|
|
2136
|
+
var Ft = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, A = (o, t, e, s) => {
|
|
2137
2137
|
for (var r = s > 1 ? void 0 : s ? Gt(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
2138
2138
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
2139
2139
|
return s && r && Ft(t, e, r), r;
|
|
2140
2140
|
};
|
|
2141
2141
|
let Wt = 0;
|
|
2142
|
-
var
|
|
2143
|
-
const
|
|
2142
|
+
var I;
|
|
2143
|
+
const L = (I = class extends v {
|
|
2144
2144
|
// allows use of elementInternals' API
|
|
2145
2145
|
constructor() {
|
|
2146
2146
|
super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.ariaLabel = "", this.prefixIcon = "", this.suffixIcon = "", this.disabled = !1, this.form = "", this.value = "", this._type = "button", this.onClick = () => {
|
|
2147
|
-
}, this.href = "", this._internals = this.attachInternals();
|
|
2147
|
+
}, this.href = "", this._target = "_self", this._internals = this.attachInternals();
|
|
2148
2148
|
}
|
|
2149
2149
|
get size() {
|
|
2150
2150
|
return this._size;
|
|
2151
2151
|
}
|
|
2152
2152
|
set size(o) {
|
|
2153
|
-
this._size =
|
|
2153
|
+
this._size = I.VALID_SIZES.includes(
|
|
2154
2154
|
o
|
|
2155
2155
|
) ? o : "md";
|
|
2156
2156
|
}
|
|
@@ -2158,7 +2158,7 @@ const M = (j = class extends v {
|
|
|
2158
2158
|
return this._variant;
|
|
2159
2159
|
}
|
|
2160
2160
|
set variant(o) {
|
|
2161
|
-
this._variant =
|
|
2161
|
+
this._variant = I.VALID_VARIANTS.includes(
|
|
2162
2162
|
o
|
|
2163
2163
|
) ? o : "filled";
|
|
2164
2164
|
}
|
|
@@ -2166,10 +2166,18 @@ const M = (j = class extends v {
|
|
|
2166
2166
|
return this._type;
|
|
2167
2167
|
}
|
|
2168
2168
|
set type(o) {
|
|
2169
|
-
this._type =
|
|
2169
|
+
this._type = I.VALID_TYPES.includes(
|
|
2170
2170
|
o
|
|
2171
2171
|
) ? o : "button";
|
|
2172
2172
|
}
|
|
2173
|
+
get target() {
|
|
2174
|
+
return this._target;
|
|
2175
|
+
}
|
|
2176
|
+
set target(o) {
|
|
2177
|
+
this._target = I.VALID_TARGETS.includes(
|
|
2178
|
+
o
|
|
2179
|
+
) ? o : "_self";
|
|
2180
|
+
}
|
|
2173
2181
|
connectedCallback() {
|
|
2174
2182
|
super.connectedCallback(), this.id || (this.id = this._generateUniqueId());
|
|
2175
2183
|
}
|
|
@@ -2223,7 +2231,7 @@ const M = (j = class extends v {
|
|
|
2223
2231
|
form=${i1(this.form ? this.form : void 0)}
|
|
2224
2232
|
value=${i1(this.value ? this.value : void 0)}
|
|
2225
2233
|
href=${this.href}
|
|
2226
|
-
target
|
|
2234
|
+
target=${this.target}
|
|
2227
2235
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
2228
2236
|
@click=${this._handleClick}
|
|
2229
2237
|
@focus="${this._handleFocus}"
|
|
@@ -2264,61 +2272,70 @@ const M = (j = class extends v {
|
|
|
2264
2272
|
`}
|
|
2265
2273
|
`;
|
|
2266
2274
|
}
|
|
2267
|
-
},
|
|
2275
|
+
}, I.VALID_SIZES = ["sm", "md", "lg"], I.VALID_VARIANTS = [
|
|
2268
2276
|
"filled",
|
|
2269
2277
|
"outline",
|
|
2270
2278
|
"ghost",
|
|
2271
2279
|
"text"
|
|
2272
|
-
],
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
],
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
],
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
],
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
],
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
],
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
],
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
],
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
],
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
],
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
],
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
],
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
],
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
],
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
],
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
],
|
|
2321
|
-
|
|
2280
|
+
], I.VALID_TYPES = ["submit", "reset", "button"], I.VALID_TARGETS = [
|
|
2281
|
+
"_self",
|
|
2282
|
+
"_blank",
|
|
2283
|
+
"_parent",
|
|
2284
|
+
"_top",
|
|
2285
|
+
"framename"
|
|
2286
|
+
], I.styles = Pt, I.formAssociated = !0, I);
|
|
2287
|
+
A([
|
|
2288
|
+
D({ type: String })
|
|
2289
|
+
], L.prototype, "id", 2);
|
|
2290
|
+
A([
|
|
2291
|
+
D({ type: String, reflect: !0 })
|
|
2292
|
+
], L.prototype, "name", 2);
|
|
2293
|
+
A([
|
|
2294
|
+
D({ reflect: !0 })
|
|
2295
|
+
], L.prototype, "size", 1);
|
|
2296
|
+
A([
|
|
2297
|
+
D({ type: Boolean, reflect: !0 })
|
|
2298
|
+
], L.prototype, "fullWidth", 2);
|
|
2299
|
+
A([
|
|
2300
|
+
D({ reflect: !0 })
|
|
2301
|
+
], L.prototype, "variant", 1);
|
|
2302
|
+
A([
|
|
2303
|
+
D({ type: Boolean, reflect: !0 })
|
|
2304
|
+
], L.prototype, "inverted", 2);
|
|
2305
|
+
A([
|
|
2306
|
+
D({ type: String })
|
|
2307
|
+
], L.prototype, "label", 2);
|
|
2308
|
+
A([
|
|
2309
|
+
D({ type: String })
|
|
2310
|
+
], L.prototype, "ariaLabel", 2);
|
|
2311
|
+
A([
|
|
2312
|
+
D({ type: String })
|
|
2313
|
+
], L.prototype, "prefixIcon", 2);
|
|
2314
|
+
A([
|
|
2315
|
+
D({ type: String })
|
|
2316
|
+
], L.prototype, "suffixIcon", 2);
|
|
2317
|
+
A([
|
|
2318
|
+
D({ type: Boolean, reflect: !0 })
|
|
2319
|
+
], L.prototype, "disabled", 2);
|
|
2320
|
+
A([
|
|
2321
|
+
D({ type: String })
|
|
2322
|
+
], L.prototype, "form", 2);
|
|
2323
|
+
A([
|
|
2324
|
+
D({ type: String })
|
|
2325
|
+
], L.prototype, "value", 2);
|
|
2326
|
+
A([
|
|
2327
|
+
D({ reflect: !0 })
|
|
2328
|
+
], L.prototype, "type", 1);
|
|
2329
|
+
A([
|
|
2330
|
+
D({ type: Function })
|
|
2331
|
+
], L.prototype, "onClick", 2);
|
|
2332
|
+
A([
|
|
2333
|
+
D({ type: String })
|
|
2334
|
+
], L.prototype, "href", 2);
|
|
2335
|
+
A([
|
|
2336
|
+
D({ reflect: !0 })
|
|
2337
|
+
], L.prototype, "target", 1);
|
|
2338
|
+
let Yt = L;
|
|
2322
2339
|
customElements.get("nys-button") || customElements.define("nys-button", Yt);
|
|
2323
2340
|
var Kt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Z = (o, t, e, s) => {
|
|
2324
2341
|
for (var r = s > 1 ? void 0 : s ? Jt(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
@@ -2327,7 +2344,7 @@ var Kt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, Z = (o, t,
|
|
|
2327
2344
|
};
|
|
2328
2345
|
let Xt = 0;
|
|
2329
2346
|
var h1;
|
|
2330
|
-
const
|
|
2347
|
+
const z = (h1 = class extends v {
|
|
2331
2348
|
constructor() {
|
|
2332
2349
|
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 = "info", this._timeoutId = null;
|
|
2333
2350
|
}
|
|
@@ -2376,7 +2393,7 @@ const U = (h1 = class extends v {
|
|
|
2376
2393
|
})
|
|
2377
2394
|
);
|
|
2378
2395
|
}
|
|
2379
|
-
_checkSlotContent() {
|
|
2396
|
+
async _checkSlotContent() {
|
|
2380
2397
|
var e;
|
|
2381
2398
|
const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot");
|
|
2382
2399
|
if (t) {
|
|
@@ -2386,9 +2403,9 @@ const U = (h1 = class extends v {
|
|
|
2386
2403
|
return r.nodeType === Node.ELEMENT_NODE || r.nodeType === Node.TEXT_NODE && ((i = r.textContent) == null ? void 0 : i.trim());
|
|
2387
2404
|
}
|
|
2388
2405
|
);
|
|
2389
|
-
this._slotHasContent = s.length > 0;
|
|
2406
|
+
await Promise.resolve(), this._slotHasContent = s.length > 0;
|
|
2390
2407
|
} else
|
|
2391
|
-
this._slotHasContent = !1;
|
|
2408
|
+
await Promise.resolve(), this._slotHasContent = !1;
|
|
2392
2409
|
}
|
|
2393
2410
|
render() {
|
|
2394
2411
|
var s, r;
|
|
@@ -2410,7 +2427,7 @@ const U = (h1 = class extends v {
|
|
|
2410
2427
|
></nys-icon>
|
|
2411
2428
|
</div>
|
|
2412
2429
|
<div class="nys-alert__texts">
|
|
2413
|
-
<
|
|
2430
|
+
<div class="nys-alert__header">${this.heading}</div>
|
|
2414
2431
|
${this._slotHasContent ? h`<slot></slot>` : ((r = this.text) == null ? void 0 : r.trim().length) > 0 ? h`<p class="nys-alert__text">${this.text}</p>` : ""}
|
|
2415
2432
|
${this.primaryAction || this.secondaryAction ? h`<div class="nys-alert__actions">
|
|
2416
2433
|
${this.primaryAction ? h`<a
|
|
@@ -2460,44 +2477,44 @@ const U = (h1 = class extends v {
|
|
|
2460
2477
|
], h1);
|
|
2461
2478
|
Z([
|
|
2462
2479
|
a({ type: String })
|
|
2463
|
-
],
|
|
2480
|
+
], z.prototype, "id", 2);
|
|
2464
2481
|
Z([
|
|
2465
2482
|
a({ type: String })
|
|
2466
|
-
],
|
|
2483
|
+
], z.prototype, "heading", 2);
|
|
2467
2484
|
Z([
|
|
2468
2485
|
a({ type: String })
|
|
2469
|
-
],
|
|
2486
|
+
], z.prototype, "icon", 2);
|
|
2470
2487
|
Z([
|
|
2471
2488
|
a({ type: Boolean, reflect: !0 })
|
|
2472
|
-
],
|
|
2489
|
+
], z.prototype, "dismissible", 2);
|
|
2473
2490
|
Z([
|
|
2474
2491
|
a({ type: Number, reflect: !0 })
|
|
2475
|
-
],
|
|
2492
|
+
], z.prototype, "duration", 2);
|
|
2476
2493
|
Z([
|
|
2477
2494
|
a({ type: String })
|
|
2478
|
-
],
|
|
2495
|
+
], z.prototype, "text", 2);
|
|
2479
2496
|
Z([
|
|
2480
2497
|
a({ type: String })
|
|
2481
|
-
],
|
|
2498
|
+
], z.prototype, "primaryAction", 2);
|
|
2482
2499
|
Z([
|
|
2483
2500
|
a({ type: String })
|
|
2484
|
-
],
|
|
2501
|
+
], z.prototype, "secondaryAction", 2);
|
|
2485
2502
|
Z([
|
|
2486
2503
|
a({ type: String })
|
|
2487
|
-
],
|
|
2504
|
+
], z.prototype, "primaryLabel", 2);
|
|
2488
2505
|
Z([
|
|
2489
2506
|
a({ type: String })
|
|
2490
|
-
],
|
|
2507
|
+
], z.prototype, "secondaryLabel", 2);
|
|
2491
2508
|
Z([
|
|
2492
2509
|
x1()
|
|
2493
|
-
],
|
|
2510
|
+
], z.prototype, "_alertClosed", 2);
|
|
2494
2511
|
Z([
|
|
2495
2512
|
x1()
|
|
2496
|
-
],
|
|
2513
|
+
], z.prototype, "_slotHasContent", 2);
|
|
2497
2514
|
Z([
|
|
2498
2515
|
a({ reflect: !0 })
|
|
2499
|
-
],
|
|
2500
|
-
let Qt =
|
|
2516
|
+
], z.prototype, "type", 1);
|
|
2517
|
+
let Qt = z;
|
|
2501
2518
|
customElements.get("nys-alert") || customElements.define("nys-alert", Qt);
|
|
2502
2519
|
const te = b`
|
|
2503
2520
|
:host {
|
|
@@ -3068,24 +3085,24 @@ const ne = b`
|
|
|
3068
3085
|
user-select: none;
|
|
3069
3086
|
}
|
|
3070
3087
|
`;
|
|
3071
|
-
var ie = Object.defineProperty, ae = Object.getOwnPropertyDescriptor,
|
|
3088
|
+
var ie = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, V = (o, t, e, s) => {
|
|
3072
3089
|
for (var r = s > 1 ? void 0 : s ? ae(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
3073
3090
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
3074
3091
|
return s && r && ie(t, e, r), r;
|
|
3075
3092
|
};
|
|
3076
3093
|
let le = 0;
|
|
3077
|
-
var
|
|
3078
|
-
const
|
|
3094
|
+
var U;
|
|
3095
|
+
const M = (U = class extends v {
|
|
3079
3096
|
// allows use of elementInternals' API
|
|
3080
3097
|
constructor() {
|
|
3081
3098
|
super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.ariaLabel = "", this.prefixIcon = "", this.suffixIcon = "", this.disabled = !1, this.form = "", this.value = "", this._type = "button", this.onClick = () => {
|
|
3082
|
-
}, this.href = "", this._internals = this.attachInternals();
|
|
3099
|
+
}, this.href = "", this._target = "_self", this._internals = this.attachInternals();
|
|
3083
3100
|
}
|
|
3084
3101
|
get size() {
|
|
3085
3102
|
return this._size;
|
|
3086
3103
|
}
|
|
3087
3104
|
set size(t) {
|
|
3088
|
-
this._size =
|
|
3105
|
+
this._size = U.VALID_SIZES.includes(
|
|
3089
3106
|
t
|
|
3090
3107
|
) ? t : "md";
|
|
3091
3108
|
}
|
|
@@ -3093,7 +3110,7 @@ const E = (z = class extends v {
|
|
|
3093
3110
|
return this._variant;
|
|
3094
3111
|
}
|
|
3095
3112
|
set variant(t) {
|
|
3096
|
-
this._variant =
|
|
3113
|
+
this._variant = U.VALID_VARIANTS.includes(
|
|
3097
3114
|
t
|
|
3098
3115
|
) ? t : "filled";
|
|
3099
3116
|
}
|
|
@@ -3101,10 +3118,18 @@ const E = (z = class extends v {
|
|
|
3101
3118
|
return this._type;
|
|
3102
3119
|
}
|
|
3103
3120
|
set type(t) {
|
|
3104
|
-
this._type =
|
|
3121
|
+
this._type = U.VALID_TYPES.includes(
|
|
3105
3122
|
t
|
|
3106
3123
|
) ? t : "button";
|
|
3107
3124
|
}
|
|
3125
|
+
get target() {
|
|
3126
|
+
return this._target;
|
|
3127
|
+
}
|
|
3128
|
+
set target(t) {
|
|
3129
|
+
this._target = U.VALID_TARGETS.includes(
|
|
3130
|
+
t
|
|
3131
|
+
) ? t : "_self";
|
|
3132
|
+
}
|
|
3108
3133
|
connectedCallback() {
|
|
3109
3134
|
super.connectedCallback(), this.id || (this.id = this._generateUniqueId());
|
|
3110
3135
|
}
|
|
@@ -3158,7 +3183,7 @@ const E = (z = class extends v {
|
|
|
3158
3183
|
form=${p(this.form ? this.form : void 0)}
|
|
3159
3184
|
value=${p(this.value ? this.value : void 0)}
|
|
3160
3185
|
href=${this.href}
|
|
3161
|
-
target
|
|
3186
|
+
target=${this.target}
|
|
3162
3187
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
3163
3188
|
@click=${this._handleClick}
|
|
3164
3189
|
@focus="${this._handleFocus}"
|
|
@@ -3199,61 +3224,70 @@ const E = (z = class extends v {
|
|
|
3199
3224
|
`}
|
|
3200
3225
|
`;
|
|
3201
3226
|
}
|
|
3202
|
-
},
|
|
3227
|
+
}, U.VALID_SIZES = ["sm", "md", "lg"], U.VALID_VARIANTS = [
|
|
3203
3228
|
"filled",
|
|
3204
3229
|
"outline",
|
|
3205
3230
|
"ghost",
|
|
3206
3231
|
"text"
|
|
3207
|
-
],
|
|
3208
|
-
|
|
3232
|
+
], U.VALID_TYPES = ["submit", "reset", "button"], U.VALID_TARGETS = [
|
|
3233
|
+
"_self",
|
|
3234
|
+
"_blank",
|
|
3235
|
+
"_parent",
|
|
3236
|
+
"_top",
|
|
3237
|
+
"framename"
|
|
3238
|
+
], U.styles = ne, U.formAssociated = !0, U);
|
|
3239
|
+
V([
|
|
3209
3240
|
a({ type: String })
|
|
3210
|
-
],
|
|
3211
|
-
|
|
3241
|
+
], M.prototype, "id", 2);
|
|
3242
|
+
V([
|
|
3212
3243
|
a({ type: String, reflect: !0 })
|
|
3213
|
-
],
|
|
3214
|
-
|
|
3244
|
+
], M.prototype, "name", 2);
|
|
3245
|
+
V([
|
|
3215
3246
|
a({ reflect: !0 })
|
|
3216
|
-
],
|
|
3217
|
-
|
|
3247
|
+
], M.prototype, "size", 1);
|
|
3248
|
+
V([
|
|
3218
3249
|
a({ type: Boolean, reflect: !0 })
|
|
3219
|
-
],
|
|
3220
|
-
|
|
3250
|
+
], M.prototype, "fullWidth", 2);
|
|
3251
|
+
V([
|
|
3221
3252
|
a({ reflect: !0 })
|
|
3222
|
-
],
|
|
3223
|
-
|
|
3253
|
+
], M.prototype, "variant", 1);
|
|
3254
|
+
V([
|
|
3224
3255
|
a({ type: Boolean, reflect: !0 })
|
|
3225
|
-
],
|
|
3226
|
-
|
|
3256
|
+
], M.prototype, "inverted", 2);
|
|
3257
|
+
V([
|
|
3227
3258
|
a({ type: String })
|
|
3228
|
-
],
|
|
3229
|
-
|
|
3259
|
+
], M.prototype, "label", 2);
|
|
3260
|
+
V([
|
|
3230
3261
|
a({ type: String })
|
|
3231
|
-
],
|
|
3232
|
-
|
|
3262
|
+
], M.prototype, "ariaLabel", 2);
|
|
3263
|
+
V([
|
|
3233
3264
|
a({ type: String })
|
|
3234
|
-
],
|
|
3235
|
-
|
|
3265
|
+
], M.prototype, "prefixIcon", 2);
|
|
3266
|
+
V([
|
|
3236
3267
|
a({ type: String })
|
|
3237
|
-
],
|
|
3238
|
-
|
|
3268
|
+
], M.prototype, "suffixIcon", 2);
|
|
3269
|
+
V([
|
|
3239
3270
|
a({ type: Boolean, reflect: !0 })
|
|
3240
|
-
],
|
|
3241
|
-
|
|
3271
|
+
], M.prototype, "disabled", 2);
|
|
3272
|
+
V([
|
|
3242
3273
|
a({ type: String })
|
|
3243
|
-
],
|
|
3244
|
-
|
|
3274
|
+
], M.prototype, "form", 2);
|
|
3275
|
+
V([
|
|
3245
3276
|
a({ type: String })
|
|
3246
|
-
],
|
|
3247
|
-
|
|
3277
|
+
], M.prototype, "value", 2);
|
|
3278
|
+
V([
|
|
3248
3279
|
a({ reflect: !0 })
|
|
3249
|
-
],
|
|
3250
|
-
|
|
3280
|
+
], M.prototype, "type", 1);
|
|
3281
|
+
V([
|
|
3251
3282
|
a({ type: Function })
|
|
3252
|
-
],
|
|
3253
|
-
|
|
3283
|
+
], M.prototype, "onClick", 2);
|
|
3284
|
+
V([
|
|
3254
3285
|
a({ type: String })
|
|
3255
|
-
],
|
|
3256
|
-
|
|
3286
|
+
], M.prototype, "href", 2);
|
|
3287
|
+
V([
|
|
3288
|
+
a({ reflect: !0 })
|
|
3289
|
+
], M.prototype, "target", 1);
|
|
3290
|
+
let ce = M;
|
|
3257
3291
|
customElements.get("nys-button") || customElements.define("nys-button", ce);
|
|
3258
3292
|
const J5 = b`
|
|
3259
3293
|
:host {
|
|
@@ -3579,7 +3613,7 @@ const { is: ye, defineProperty: ue, getOwnPropertyDescriptor: pe, getOwnProperty
|
|
|
3579
3613
|
}
|
|
3580
3614
|
}
|
|
3581
3615
|
return e;
|
|
3582
|
-
} },
|
|
3616
|
+
} }, T2 = (o, t) => !ye(o, t), k5 = { attribute: !0, type: String, converter: f2, reflect: !1, hasChanged: T2 };
|
|
3583
3617
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), A1.litPropertyMetadata ?? (A1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
3584
3618
|
let N1 = class extends HTMLElement {
|
|
3585
3619
|
static addInitializer(t) {
|
|
@@ -3706,7 +3740,7 @@ let N1 = class extends HTMLElement {
|
|
|
3706
3740
|
}
|
|
3707
3741
|
requestUpdate(t, e, s) {
|
|
3708
3742
|
if (t !== void 0) {
|
|
3709
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
3743
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? T2)(this[t], e)) return;
|
|
3710
3744
|
this.P(t, e, s);
|
|
3711
3745
|
}
|
|
3712
3746
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -3785,7 +3819,7 @@ N1.elementStyles = [], N1.shadowRootOptions = { mode: "open" }, N1[K1("elementPr
|
|
|
3785
3819
|
* Copyright 2017 Google LLC
|
|
3786
3820
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3787
3821
|
*/
|
|
3788
|
-
const be = { attribute: !0, type: String, converter: f2, reflect: !1, hasChanged:
|
|
3822
|
+
const be = { attribute: !0, type: String, converter: f2, reflect: !1, hasChanged: T2 }, me = (o = be, t, e) => {
|
|
3789
3823
|
const { kind: s, metadata: r } = e;
|
|
3790
3824
|
let i = globalThis.litPropertyMetadata.get(r);
|
|
3791
3825
|
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), i.set(e.name, o), s === "accessor") {
|
|
@@ -3935,7 +3969,7 @@ customElements.get("nys-label") || customElements.define("nys-label", o2);
|
|
|
3935
3969
|
* Copyright 2019 Google LLC
|
|
3936
3970
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3937
3971
|
*/
|
|
3938
|
-
const h2 = globalThis,
|
|
3972
|
+
const h2 = globalThis, q2 = h2.ShadowRoot && (h2.ShadyCSS === void 0 || h2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, tt = Symbol(), $5 = /* @__PURE__ */ new WeakMap();
|
|
3939
3973
|
let ke = class {
|
|
3940
3974
|
constructor(t, e, s) {
|
|
3941
3975
|
if (this._$cssResult$ = !0, s !== tt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -3944,7 +3978,7 @@ let ke = class {
|
|
|
3944
3978
|
get styleSheet() {
|
|
3945
3979
|
let t = this.o;
|
|
3946
3980
|
const e = this.t;
|
|
3947
|
-
if (
|
|
3981
|
+
if (q2 && t === void 0) {
|
|
3948
3982
|
const s = e !== void 0 && e.length === 1;
|
|
3949
3983
|
s && (t = $5.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && $5.set(e, t));
|
|
3950
3984
|
}
|
|
@@ -3955,12 +3989,12 @@ let ke = class {
|
|
|
3955
3989
|
}
|
|
3956
3990
|
};
|
|
3957
3991
|
const $e = (o) => new ke(typeof o == "string" ? o : o + "", void 0, tt), Se = (o, t) => {
|
|
3958
|
-
if (
|
|
3992
|
+
if (q2) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
3959
3993
|
else for (const e of t) {
|
|
3960
3994
|
const s = document.createElement("style"), r = h2.litNonce;
|
|
3961
3995
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
3962
3996
|
}
|
|
3963
|
-
}, S5 =
|
|
3997
|
+
}, S5 = q2 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
3964
3998
|
let e = "";
|
|
3965
3999
|
for (const s of t.cssRules) e += s.cssText;
|
|
3966
4000
|
return $e(e);
|
|
@@ -4408,6 +4442,7 @@ const G = (X = class extends v {
|
|
|
4408
4442
|
role="group"
|
|
4409
4443
|
>
|
|
4410
4444
|
<nys-label
|
|
4445
|
+
id=${this.id}
|
|
4411
4446
|
label=${this.label}
|
|
4412
4447
|
description=${this.description}
|
|
4413
4448
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -4454,10 +4489,10 @@ o1([
|
|
|
4454
4489
|
], G.prototype, "size", 1);
|
|
4455
4490
|
let Re = G;
|
|
4456
4491
|
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", Re);
|
|
4457
|
-
var
|
|
4458
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4492
|
+
var Te = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, B = (o, t, e, s) => {
|
|
4493
|
+
for (var r = s > 1 ? void 0 : s ? qe(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
4459
4494
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
4460
|
-
return s && r &&
|
|
4495
|
+
return s && r && Te(t, e, r), r;
|
|
4461
4496
|
};
|
|
4462
4497
|
let Ne = 0;
|
|
4463
4498
|
var Q;
|
|
@@ -4625,40 +4660,40 @@ const P = (Q = class extends v {
|
|
|
4625
4660
|
`;
|
|
4626
4661
|
}
|
|
4627
4662
|
}, Q.VALID_SIZES = ["sm", "md"], Q.styles = J5, Q.formAssociated = !0, Q);
|
|
4628
|
-
|
|
4663
|
+
B([
|
|
4629
4664
|
a({ type: Boolean, reflect: !0 })
|
|
4630
4665
|
], P.prototype, "checked", 2);
|
|
4631
|
-
|
|
4666
|
+
B([
|
|
4632
4667
|
a({ type: Boolean, reflect: !0 })
|
|
4633
4668
|
], P.prototype, "disabled", 2);
|
|
4634
|
-
|
|
4669
|
+
B([
|
|
4635
4670
|
a({ type: Boolean, reflect: !0 })
|
|
4636
4671
|
], P.prototype, "required", 2);
|
|
4637
|
-
|
|
4672
|
+
B([
|
|
4638
4673
|
a({ type: String })
|
|
4639
4674
|
], P.prototype, "label", 2);
|
|
4640
|
-
|
|
4675
|
+
B([
|
|
4641
4676
|
a({ type: String })
|
|
4642
4677
|
], P.prototype, "description", 2);
|
|
4643
|
-
|
|
4678
|
+
B([
|
|
4644
4679
|
a({ type: String })
|
|
4645
4680
|
], P.prototype, "id", 2);
|
|
4646
|
-
|
|
4681
|
+
B([
|
|
4647
4682
|
a({ type: String, reflect: !0 })
|
|
4648
4683
|
], P.prototype, "name", 2);
|
|
4649
|
-
|
|
4684
|
+
B([
|
|
4650
4685
|
a({ type: String })
|
|
4651
4686
|
], P.prototype, "value", 2);
|
|
4652
|
-
|
|
4687
|
+
B([
|
|
4653
4688
|
a({ type: Boolean, reflect: !0 })
|
|
4654
4689
|
], P.prototype, "showError", 2);
|
|
4655
|
-
|
|
4690
|
+
B([
|
|
4656
4691
|
a({ type: String })
|
|
4657
4692
|
], P.prototype, "errorMessage", 2);
|
|
4658
|
-
|
|
4693
|
+
B([
|
|
4659
4694
|
a({ type: Boolean })
|
|
4660
4695
|
], P.prototype, "groupExist", 2);
|
|
4661
|
-
|
|
4696
|
+
B([
|
|
4662
4697
|
a({ reflect: !0 })
|
|
4663
4698
|
], P.prototype, "size", 1);
|
|
4664
4699
|
let je = P;
|
|
@@ -5646,7 +5681,7 @@ const et = b`
|
|
|
5646
5681
|
background-repeat: no-repeat;
|
|
5647
5682
|
background-position: center;
|
|
5648
5683
|
background-size: contain;
|
|
5649
|
-
margin
|
|
5684
|
+
margin: 0 0 auto 0; /* Causes centered radio button if single line of label but top aligned if multiline */
|
|
5650
5685
|
}
|
|
5651
5686
|
|
|
5652
5687
|
/* Pointer cursor for unchecked radio button */
|
|
@@ -5737,7 +5772,7 @@ var e7 = Object.defineProperty, s7 = Object.getOwnPropertyDescriptor, W = (o, t,
|
|
|
5737
5772
|
};
|
|
5738
5773
|
let r7 = 0;
|
|
5739
5774
|
var t1;
|
|
5740
|
-
const
|
|
5775
|
+
const N = (t1 = class extends v {
|
|
5741
5776
|
// allows use of elementInternals' API
|
|
5742
5777
|
constructor() {
|
|
5743
5778
|
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._internals = this.attachInternals();
|
|
@@ -5828,6 +5863,7 @@ const T = (t1 = class extends v {
|
|
|
5828
5863
|
aria-invalid="${this.showError ? "true" : "false"}"
|
|
5829
5864
|
>
|
|
5830
5865
|
<nys-label
|
|
5866
|
+
id=${this.id}
|
|
5831
5867
|
label=${this.label}
|
|
5832
5868
|
description=${this.description}
|
|
5833
5869
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -5847,35 +5883,35 @@ const T = (t1 = class extends v {
|
|
|
5847
5883
|
}, t1.VALID_SIZES = ["sm", "md"], t1.styles = et, t1.formAssociated = !0, t1);
|
|
5848
5884
|
W([
|
|
5849
5885
|
a({ type: String })
|
|
5850
|
-
],
|
|
5886
|
+
], N.prototype, "id", 2);
|
|
5851
5887
|
W([
|
|
5852
5888
|
a({ type: String, reflect: !0 })
|
|
5853
|
-
],
|
|
5889
|
+
], N.prototype, "name", 2);
|
|
5854
5890
|
W([
|
|
5855
5891
|
a({ type: Boolean, reflect: !0 })
|
|
5856
|
-
],
|
|
5892
|
+
], N.prototype, "required", 2);
|
|
5857
5893
|
W([
|
|
5858
5894
|
a({ type: Boolean, reflect: !0 })
|
|
5859
|
-
],
|
|
5895
|
+
], N.prototype, "optional", 2);
|
|
5860
5896
|
W([
|
|
5861
5897
|
a({ type: Boolean, reflect: !0 })
|
|
5862
|
-
],
|
|
5898
|
+
], N.prototype, "showError", 2);
|
|
5863
5899
|
W([
|
|
5864
5900
|
a({ type: String })
|
|
5865
|
-
],
|
|
5901
|
+
], N.prototype, "errorMessage", 2);
|
|
5866
5902
|
W([
|
|
5867
5903
|
a({ type: String })
|
|
5868
|
-
],
|
|
5904
|
+
], N.prototype, "label", 2);
|
|
5869
5905
|
W([
|
|
5870
5906
|
a({ type: String })
|
|
5871
|
-
],
|
|
5907
|
+
], N.prototype, "description", 2);
|
|
5872
5908
|
W([
|
|
5873
5909
|
x1()
|
|
5874
|
-
],
|
|
5910
|
+
], N.prototype, "selectedValue", 2);
|
|
5875
5911
|
W([
|
|
5876
5912
|
a({ reflect: !0 })
|
|
5877
|
-
],
|
|
5878
|
-
let o7 =
|
|
5913
|
+
], N.prototype, "size", 1);
|
|
5914
|
+
let o7 = N;
|
|
5879
5915
|
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", o7);
|
|
5880
5916
|
var n7 = Object.defineProperty, i7 = Object.getOwnPropertyDescriptor, n1 = (o, t, e, s) => {
|
|
5881
5917
|
for (var r = s > 1 ? void 0 : s ? i7(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
@@ -6211,7 +6247,7 @@ n2([
|
|
|
6211
6247
|
a({ type: Boolean, reflect: !0 })
|
|
6212
6248
|
], S1.prototype, "hidden");
|
|
6213
6249
|
customElements.define("nys-option", S1);
|
|
6214
|
-
var d7 = Object.defineProperty, C7 = Object.getOwnPropertyDescriptor,
|
|
6250
|
+
var d7 = Object.defineProperty, C7 = Object.getOwnPropertyDescriptor, R = (o, t, e, s) => {
|
|
6215
6251
|
for (var r = s > 1 ? void 0 : s ? C7(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
6216
6252
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
6217
6253
|
return s && r && d7(t, e, r), r;
|
|
@@ -6340,6 +6376,7 @@ const O = (e1 = class extends v {
|
|
|
6340
6376
|
return h`
|
|
6341
6377
|
<div class="nys-select">
|
|
6342
6378
|
<nys-label
|
|
6379
|
+
id=${this.id}
|
|
6343
6380
|
label=${this.label}
|
|
6344
6381
|
description=${this.description}
|
|
6345
6382
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -6381,40 +6418,40 @@ const O = (e1 = class extends v {
|
|
|
6381
6418
|
`;
|
|
6382
6419
|
}
|
|
6383
6420
|
}, e1.VALID_WIDTHS = ["sm", "md", "lg", "full"], e1.styles = c7, e1.formAssociated = !0, e1);
|
|
6384
|
-
|
|
6421
|
+
R([
|
|
6385
6422
|
a({ type: String })
|
|
6386
6423
|
], O.prototype, "id", 2);
|
|
6387
|
-
|
|
6424
|
+
R([
|
|
6388
6425
|
a({ type: String, reflect: !0 })
|
|
6389
6426
|
], O.prototype, "name", 2);
|
|
6390
|
-
|
|
6427
|
+
R([
|
|
6391
6428
|
a({ type: String })
|
|
6392
6429
|
], O.prototype, "label", 2);
|
|
6393
|
-
|
|
6430
|
+
R([
|
|
6394
6431
|
a({ type: String })
|
|
6395
6432
|
], O.prototype, "description", 2);
|
|
6396
|
-
|
|
6433
|
+
R([
|
|
6397
6434
|
a({ type: String })
|
|
6398
6435
|
], O.prototype, "value", 2);
|
|
6399
|
-
|
|
6436
|
+
R([
|
|
6400
6437
|
a({ type: Boolean, reflect: !0 })
|
|
6401
6438
|
], O.prototype, "disabled", 2);
|
|
6402
|
-
|
|
6439
|
+
R([
|
|
6403
6440
|
a({ type: Boolean, reflect: !0 })
|
|
6404
6441
|
], O.prototype, "required", 2);
|
|
6405
|
-
|
|
6442
|
+
R([
|
|
6406
6443
|
a({ type: Boolean, reflect: !0 })
|
|
6407
6444
|
], O.prototype, "optional", 2);
|
|
6408
|
-
|
|
6445
|
+
R([
|
|
6409
6446
|
a({ type: String })
|
|
6410
6447
|
], O.prototype, "form", 2);
|
|
6411
|
-
|
|
6448
|
+
R([
|
|
6412
6449
|
a({ type: Boolean, reflect: !0 })
|
|
6413
6450
|
], O.prototype, "showError", 2);
|
|
6414
|
-
|
|
6451
|
+
R([
|
|
6415
6452
|
a({ type: String })
|
|
6416
6453
|
], O.prototype, "errorMessage", 2);
|
|
6417
|
-
|
|
6454
|
+
R([
|
|
6418
6455
|
a({ reflect: !0 })
|
|
6419
6456
|
], O.prototype, "width", 1);
|
|
6420
6457
|
let u7 = O;
|
|
@@ -6561,14 +6598,14 @@ const p7 = b`
|
|
|
6561
6598
|
cursor: not-allowed;
|
|
6562
6599
|
}
|
|
6563
6600
|
`;
|
|
6564
|
-
var v7 = Object.defineProperty, f7 = Object.getOwnPropertyDescriptor,
|
|
6601
|
+
var v7 = Object.defineProperty, f7 = Object.getOwnPropertyDescriptor, H = (o, t, e, s) => {
|
|
6565
6602
|
for (var r = s > 1 ? void 0 : s ? f7(t, e) : t, i = o.length - 1, n; i >= 0; i--)
|
|
6566
6603
|
(n = o[i]) && (r = (s ? n(t, e, r) : n(r)) || r);
|
|
6567
6604
|
return s && r && v7(t, e, r), r;
|
|
6568
6605
|
};
|
|
6569
6606
|
let g7 = 0;
|
|
6570
|
-
var
|
|
6571
|
-
const
|
|
6607
|
+
var T;
|
|
6608
|
+
const E = (T = class extends v {
|
|
6572
6609
|
// allows use of elementInternals' API
|
|
6573
6610
|
constructor() {
|
|
6574
6611
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.maxlength = null, this.width = "full", this.rows = 4, this._resize = "vertical", this.showError = !1, this.errorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -6577,12 +6614,12 @@ const L = (R = class extends v {
|
|
|
6577
6614
|
return this._resize;
|
|
6578
6615
|
}
|
|
6579
6616
|
set resize(t) {
|
|
6580
|
-
this._resize =
|
|
6617
|
+
this._resize = T.VALID_RESIZE.includes(
|
|
6581
6618
|
t
|
|
6582
6619
|
) ? t : "vertical";
|
|
6583
6620
|
}
|
|
6584
|
-
updated(t) {
|
|
6585
|
-
t.has("width") && (this.width =
|
|
6621
|
+
async updated(t) {
|
|
6622
|
+
await Promise.resolve(), t.has("width") && (this.width = T.VALID_WIDTHS.includes(this.width) ? this.width : "full"), t.has("rows") && (this.rows = this.rows ?? 4);
|
|
6586
6623
|
}
|
|
6587
6624
|
// Generate a unique ID if one is not provided
|
|
6588
6625
|
connectedCallback() {
|
|
@@ -6691,6 +6728,7 @@ const L = (R = class extends v {
|
|
|
6691
6728
|
return h`
|
|
6692
6729
|
<label class="nys-textarea">
|
|
6693
6730
|
<nys-label
|
|
6731
|
+
id=${this.id}
|
|
6694
6732
|
label=${this.label}
|
|
6695
6733
|
description=${this.description}
|
|
6696
6734
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -6728,59 +6766,59 @@ const L = (R = class extends v {
|
|
|
6728
6766
|
</label>
|
|
6729
6767
|
`;
|
|
6730
6768
|
}
|
|
6731
|
-
},
|
|
6732
|
-
|
|
6769
|
+
}, T.VALID_WIDTHS = ["sm", "md", "lg", "full"], T.VALID_RESIZE = ["vertical", "none"], T.styles = p7, T.formAssociated = !0, T);
|
|
6770
|
+
H([
|
|
6733
6771
|
a({ type: String })
|
|
6734
|
-
],
|
|
6735
|
-
|
|
6772
|
+
], E.prototype, "id", 2);
|
|
6773
|
+
H([
|
|
6736
6774
|
a({ type: String, reflect: !0 })
|
|
6737
|
-
],
|
|
6738
|
-
|
|
6775
|
+
], E.prototype, "name", 2);
|
|
6776
|
+
H([
|
|
6739
6777
|
a({ type: String })
|
|
6740
|
-
],
|
|
6741
|
-
|
|
6778
|
+
], E.prototype, "label", 2);
|
|
6779
|
+
H([
|
|
6742
6780
|
a({ type: String })
|
|
6743
|
-
],
|
|
6744
|
-
|
|
6781
|
+
], E.prototype, "description", 2);
|
|
6782
|
+
H([
|
|
6745
6783
|
a({ type: String })
|
|
6746
|
-
],
|
|
6747
|
-
|
|
6784
|
+
], E.prototype, "placeholder", 2);
|
|
6785
|
+
H([
|
|
6748
6786
|
a({ type: String })
|
|
6749
|
-
],
|
|
6750
|
-
|
|
6787
|
+
], E.prototype, "value", 2);
|
|
6788
|
+
H([
|
|
6751
6789
|
a({ type: Boolean, reflect: !0 })
|
|
6752
|
-
],
|
|
6753
|
-
|
|
6790
|
+
], E.prototype, "disabled", 2);
|
|
6791
|
+
H([
|
|
6754
6792
|
a({ type: Boolean, reflect: !0 })
|
|
6755
|
-
],
|
|
6756
|
-
|
|
6793
|
+
], E.prototype, "readonly", 2);
|
|
6794
|
+
H([
|
|
6757
6795
|
a({ type: Boolean, reflect: !0 })
|
|
6758
|
-
],
|
|
6759
|
-
|
|
6796
|
+
], E.prototype, "required", 2);
|
|
6797
|
+
H([
|
|
6760
6798
|
a({ type: Boolean, reflect: !0 })
|
|
6761
|
-
],
|
|
6762
|
-
|
|
6799
|
+
], E.prototype, "optional", 2);
|
|
6800
|
+
H([
|
|
6763
6801
|
a({ type: String })
|
|
6764
|
-
],
|
|
6765
|
-
|
|
6802
|
+
], E.prototype, "form", 2);
|
|
6803
|
+
H([
|
|
6766
6804
|
a({ type: Number })
|
|
6767
|
-
],
|
|
6768
|
-
|
|
6805
|
+
], E.prototype, "maxlength", 2);
|
|
6806
|
+
H([
|
|
6769
6807
|
a({ reflect: !0 })
|
|
6770
|
-
],
|
|
6771
|
-
|
|
6808
|
+
], E.prototype, "width", 2);
|
|
6809
|
+
H([
|
|
6772
6810
|
a({ type: Number })
|
|
6773
|
-
],
|
|
6774
|
-
|
|
6811
|
+
], E.prototype, "rows", 2);
|
|
6812
|
+
H([
|
|
6775
6813
|
a({ reflect: !0 })
|
|
6776
|
-
],
|
|
6777
|
-
|
|
6814
|
+
], E.prototype, "resize", 1);
|
|
6815
|
+
H([
|
|
6778
6816
|
a({ type: Boolean, reflect: !0 })
|
|
6779
|
-
],
|
|
6780
|
-
|
|
6817
|
+
], E.prototype, "showError", 2);
|
|
6818
|
+
H([
|
|
6781
6819
|
a({ type: String })
|
|
6782
|
-
],
|
|
6783
|
-
let _7 =
|
|
6820
|
+
], E.prototype, "errorMessage", 2);
|
|
6821
|
+
let _7 = E;
|
|
6784
6822
|
customElements.get("nys-textarea") || customElements.define("nys-textarea", _7);
|
|
6785
6823
|
const b7 = b`
|
|
6786
6824
|
:host {
|
|
@@ -6963,8 +7001,8 @@ const f = (q = class extends v {
|
|
|
6963
7001
|
) ? t : "text";
|
|
6964
7002
|
}
|
|
6965
7003
|
// Ensure the "width" property is valid after updates
|
|
6966
|
-
updated(t) {
|
|
6967
|
-
t.has("width") && (this.width = q.VALID_WIDTHS.includes(this.width) ? this.width : "full");
|
|
7004
|
+
async updated(t) {
|
|
7005
|
+
t.has("width") && (await Promise.resolve(), this.width = q.VALID_WIDTHS.includes(this.width) ? this.width : "full");
|
|
6968
7006
|
}
|
|
6969
7007
|
// Generate a unique ID if one is not provided
|
|
6970
7008
|
connectedCallback() {
|
|
@@ -7056,6 +7094,7 @@ const f = (q = class extends v {
|
|
|
7056
7094
|
return h`
|
|
7057
7095
|
<div class="nys-textinput">
|
|
7058
7096
|
<nys-label
|
|
7097
|
+
id=${this.id}
|
|
7059
7098
|
label=${this.label}
|
|
7060
7099
|
description=${this.description}
|
|
7061
7100
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -7462,7 +7501,7 @@ var S7 = Object.defineProperty, L7 = Object.getOwnPropertyDescriptor, K = (o, t,
|
|
|
7462
7501
|
};
|
|
7463
7502
|
let M7 = 0;
|
|
7464
7503
|
var s1;
|
|
7465
|
-
const
|
|
7504
|
+
const j = (s1 = class extends v {
|
|
7466
7505
|
// allows use of elementInternals' API
|
|
7467
7506
|
constructor() {
|
|
7468
7507
|
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();
|
|
@@ -7554,35 +7593,35 @@ const N = (s1 = class extends v {
|
|
|
7554
7593
|
}, s1.VALID_SIZES = ["sm", "md"], s1.styles = $7, s1.formAssociated = !0, s1);
|
|
7555
7594
|
K([
|
|
7556
7595
|
a({ type: String })
|
|
7557
|
-
],
|
|
7596
|
+
], j.prototype, "id", 2);
|
|
7558
7597
|
K([
|
|
7559
7598
|
a({ type: String, reflect: !0 })
|
|
7560
|
-
],
|
|
7599
|
+
], j.prototype, "name", 2);
|
|
7561
7600
|
K([
|
|
7562
7601
|
a({ type: String })
|
|
7563
|
-
],
|
|
7602
|
+
], j.prototype, "value", 2);
|
|
7564
7603
|
K([
|
|
7565
7604
|
a({ type: Boolean, reflect: !0 })
|
|
7566
|
-
],
|
|
7605
|
+
], j.prototype, "checked", 2);
|
|
7567
7606
|
K([
|
|
7568
7607
|
a({ type: Boolean, reflect: !0 })
|
|
7569
|
-
],
|
|
7608
|
+
], j.prototype, "disabled", 2);
|
|
7570
7609
|
K([
|
|
7571
7610
|
a({ type: Boolean })
|
|
7572
|
-
],
|
|
7611
|
+
], j.prototype, "noIcon", 2);
|
|
7573
7612
|
K([
|
|
7574
7613
|
a({ type: String })
|
|
7575
|
-
],
|
|
7614
|
+
], j.prototype, "label", 2);
|
|
7576
7615
|
K([
|
|
7577
7616
|
a({ type: String })
|
|
7578
|
-
],
|
|
7617
|
+
], j.prototype, "description", 2);
|
|
7579
7618
|
K([
|
|
7580
7619
|
a({ reflect: !0 })
|
|
7581
|
-
],
|
|
7620
|
+
], j.prototype, "size", 1);
|
|
7582
7621
|
K([
|
|
7583
7622
|
a({ type: String })
|
|
7584
|
-
],
|
|
7585
|
-
let E7 =
|
|
7623
|
+
], j.prototype, "form", 2);
|
|
7624
|
+
let E7 = j;
|
|
7586
7625
|
customElements.get("nys-toggle") || customElements.define("nys-toggle", E7);
|
|
7587
7626
|
const D7 = b`
|
|
7588
7627
|
:host {
|
|
@@ -8199,7 +8238,7 @@ F1.elementStyles = [], F1.shadowRootOptions = { mode: "open" }, F1[X1("elementPr
|
|
|
8199
8238
|
* Copyright 2017 Google LLC
|
|
8200
8239
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8201
8240
|
*/
|
|
8202
|
-
const
|
|
8241
|
+
const T7 = { attribute: !0, type: String, converter: _2, reflect: !1, hasChanged: Y2 }, q7 = (o = T7, t, e) => {
|
|
8203
8242
|
const { kind: s, metadata: r } = e;
|
|
8204
8243
|
let i = globalThis.litPropertyMetadata.get(r);
|
|
8205
8244
|
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), i.set(e.name, o), s === "accessor") {
|
|
@@ -8221,7 +8260,7 @@ const q7 = { attribute: !0, type: String, converter: _2, reflect: !1, hasChanged
|
|
|
8221
8260
|
throw Error("Unsupported decorator location: " + s);
|
|
8222
8261
|
};
|
|
8223
8262
|
function w(o) {
|
|
8224
|
-
return (t, e) => typeof e == "object" ?
|
|
8263
|
+
return (t, e) => typeof e == "object" ? q7(o, t, e) : ((s, r, i) => {
|
|
8225
8264
|
const n = r.hasOwnProperty(i);
|
|
8226
8265
|
return r.constructor.createProperty(i, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(r, i) : void 0;
|
|
8227
8266
|
})(o, t, e);
|
|
@@ -8648,8 +8687,8 @@ const g = (a1 = class extends v {
|
|
|
8648
8687
|
) ? o : "text";
|
|
8649
8688
|
}
|
|
8650
8689
|
// Ensure the "width" property is valid after updates
|
|
8651
|
-
updated(o) {
|
|
8652
|
-
o.has("width") && (this.width = a1.VALID_WIDTHS.includes(this.width) ? this.width : "full");
|
|
8690
|
+
async updated(o) {
|
|
8691
|
+
o.has("width") && (await Promise.resolve(), this.width = a1.VALID_WIDTHS.includes(this.width) ? this.width : "full");
|
|
8653
8692
|
}
|
|
8654
8693
|
// Generate a unique ID if one is not provided
|
|
8655
8694
|
connectedCallback() {
|
|
@@ -8741,6 +8780,7 @@ const g = (a1 = class extends v {
|
|
|
8741
8780
|
return h`
|
|
8742
8781
|
<div class="nys-textinput">
|
|
8743
8782
|
<nys-label
|
|
8783
|
+
id=${this.id}
|
|
8744
8784
|
label=${this.label}
|
|
8745
8785
|
description=${this.description}
|
|
8746
8786
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -9442,12 +9482,12 @@ const t5 = class t5 extends v {
|
|
|
9442
9482
|
}
|
|
9443
9483
|
/******************** Functions ********************/
|
|
9444
9484
|
// Gets called when the slot content changes and directly appends the slotted elements into the shadow DOM
|
|
9445
|
-
_handleSlotChange() {
|
|
9485
|
+
async _handleSlotChange() {
|
|
9446
9486
|
var i, n, l;
|
|
9447
9487
|
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector("slot");
|
|
9448
9488
|
if (!t) return;
|
|
9449
9489
|
const e = t == null ? void 0 : t.assignedNodes({ flatten: !0 }).filter((c) => c.nodeType === Node.ELEMENT_NODE);
|
|
9450
|
-
this.slotHasContent = e.length > 0;
|
|
9490
|
+
await Promise.resolve(), this.slotHasContent = e.length > 0;
|
|
9451
9491
|
const s = (n = this.shadowRoot) == null ? void 0 : n.querySelector(
|
|
9452
9492
|
".nys-globalheader__content"
|
|
9453
9493
|
), r = (l = this.shadowRoot) == null ? void 0 : l.querySelector(
|
|
@@ -9719,12 +9759,12 @@ const e5 = class e5 extends v {
|
|
|
9719
9759
|
}
|
|
9720
9760
|
/******************** Functions ********************/
|
|
9721
9761
|
// Gets called when the slot content changes and directly appends the slotted elements into the shadow DOM
|
|
9722
|
-
_handleSlotChange() {
|
|
9762
|
+
async _handleSlotChange() {
|
|
9723
9763
|
var i, n;
|
|
9724
9764
|
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector("slot");
|
|
9725
9765
|
if (!t) return;
|
|
9726
9766
|
const e = t == null ? void 0 : t.assignedNodes({ flatten: !0 }).filter((l) => l.nodeType === Node.ELEMENT_NODE);
|
|
9727
|
-
this.slotHasContent = e.length > 0;
|
|
9767
|
+
await Promise.resolve(), this.slotHasContent = e.length > 0;
|
|
9728
9768
|
const s = (n = this.shadowRoot) == null ? void 0 : n.querySelector(
|
|
9729
9769
|
".nys-globalfooter__content"
|
|
9730
9770
|
), r = e == null ? void 0 : e.some(
|