@nysds/nys-stepper 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nys-stepper.js +118 -135
- package/dist/nys-stepper.js.map +1 -1
- package/package.json +3 -10
package/dist/nys-stepper.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as U, LitElement as A, html as k } from "lit";
|
|
2
2
|
/*!
|
|
3
3
|
* ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
|
|
4
4
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
@@ -14,18 +14,18 @@ import { css as z, LitElement as k, html as P } from "lit";
|
|
|
14
14
|
* Copyright 2019 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
16
|
*/
|
|
17
|
-
const
|
|
18
|
-
let
|
|
17
|
+
const f = globalThis, b = f.ShadowRoot && (f.ShadyCSS === void 0 || f.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, P = Symbol(), E = /* @__PURE__ */ new WeakMap();
|
|
18
|
+
let z = class {
|
|
19
19
|
constructor(e, t, s) {
|
|
20
|
-
if (this._$cssResult$ = !0, s !==
|
|
20
|
+
if (this._$cssResult$ = !0, s !== P) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
21
21
|
this.cssText = e, this.t = t;
|
|
22
22
|
}
|
|
23
23
|
get styleSheet() {
|
|
24
24
|
let e = this.o;
|
|
25
25
|
const t = this.t;
|
|
26
|
-
if (
|
|
26
|
+
if (b && e === void 0) {
|
|
27
27
|
const s = t !== void 0 && t.length === 1;
|
|
28
|
-
s && (e =
|
|
28
|
+
s && (e = E.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && E.set(t, e));
|
|
29
29
|
}
|
|
30
30
|
return e;
|
|
31
31
|
}
|
|
@@ -33,26 +33,26 @@ let T = class {
|
|
|
33
33
|
return this.cssText;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
36
|
+
const T = (o) => new z(typeof o == "string" ? o : o + "", void 0, P), M = (o, e) => {
|
|
37
|
+
if (b) o.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
|
|
38
38
|
else for (const t of e) {
|
|
39
|
-
const s = document.createElement("style"), r =
|
|
39
|
+
const s = document.createElement("style"), r = f.litNonce;
|
|
40
40
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = t.cssText, o.appendChild(s);
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, $ = b ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((e) => {
|
|
43
43
|
let t = "";
|
|
44
44
|
for (const s of e.cssRules) t += s.cssText;
|
|
45
|
-
return
|
|
45
|
+
return T(t);
|
|
46
46
|
})(o) : o;
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
51
|
*/
|
|
52
|
-
const { is:
|
|
52
|
+
const { is: j, defineProperty: L, getOwnPropertyDescriptor: N, getOwnPropertyNames: R, getOwnPropertySymbols: B, getPrototypeOf: q } = Object, m = globalThis, S = m.trustedTypes, D = S ? S.emptyScript : "", H = m.reactiveElementPolyfillSupport, u = (o, e) => o, v = { toAttribute(o, e) {
|
|
53
53
|
switch (e) {
|
|
54
54
|
case Boolean:
|
|
55
|
-
o = o ?
|
|
55
|
+
o = o ? D : null;
|
|
56
56
|
break;
|
|
57
57
|
case Object:
|
|
58
58
|
case Array:
|
|
@@ -77,46 +77,44 @@ const { is: N, defineProperty: R, getOwnPropertyDescriptor: j, getOwnPropertyNam
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return t;
|
|
80
|
-
} },
|
|
81
|
-
Symbol.metadata
|
|
82
|
-
class
|
|
80
|
+
} }, g = (o, e) => !j(o, e), C = { attribute: !0, type: String, converter: v, reflect: !1, useDefault: !1, hasChanged: g };
|
|
81
|
+
Symbol.metadata ??= Symbol("metadata"), m.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
82
|
+
class h extends HTMLElement {
|
|
83
83
|
static addInitializer(e) {
|
|
84
|
-
this._$Ei(), (this.l
|
|
84
|
+
this._$Ei(), (this.l ??= []).push(e);
|
|
85
85
|
}
|
|
86
86
|
static get observedAttributes() {
|
|
87
87
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
88
88
|
}
|
|
89
|
-
static createProperty(e, t =
|
|
90
|
-
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
89
|
+
static createProperty(e, t = C) {
|
|
90
|
+
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
91
91
|
const s = Symbol(), r = this.getPropertyDescriptor(e, s, t);
|
|
92
|
-
r !== void 0 &&
|
|
92
|
+
r !== void 0 && L(this.prototype, e, r);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
static getPropertyDescriptor(e, t, s) {
|
|
96
|
-
const { get: r, set: n } =
|
|
96
|
+
const { get: r, set: n } = N(this.prototype, e) ?? { get() {
|
|
97
97
|
return this[t];
|
|
98
98
|
}, set(i) {
|
|
99
99
|
this[t] = i;
|
|
100
100
|
} };
|
|
101
|
-
return { get() {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
const l = r == null ? void 0 : r.call(this);
|
|
105
|
-
n.call(this, i), this.requestUpdate(e, l, s);
|
|
101
|
+
return { get: r, set(i) {
|
|
102
|
+
const a = r?.call(this);
|
|
103
|
+
n?.call(this, i), this.requestUpdate(e, a, s);
|
|
106
104
|
}, configurable: !0, enumerable: !0 };
|
|
107
105
|
}
|
|
108
106
|
static getPropertyOptions(e) {
|
|
109
|
-
return this.elementProperties.get(e) ??
|
|
107
|
+
return this.elementProperties.get(e) ?? C;
|
|
110
108
|
}
|
|
111
109
|
static _$Ei() {
|
|
112
|
-
if (this.hasOwnProperty(
|
|
113
|
-
const e =
|
|
110
|
+
if (this.hasOwnProperty(u("elementProperties"))) return;
|
|
111
|
+
const e = q(this);
|
|
114
112
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
115
113
|
}
|
|
116
114
|
static finalize() {
|
|
117
|
-
if (this.hasOwnProperty(
|
|
118
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
119
|
-
const t = this.properties, s = [...
|
|
115
|
+
if (this.hasOwnProperty(u("finalized"))) return;
|
|
116
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(u("properties"))) {
|
|
117
|
+
const t = this.properties, s = [...R(t), ...B(t)];
|
|
120
118
|
for (const r of s) this.createProperty(r, t[r]);
|
|
121
119
|
}
|
|
122
120
|
const e = this[Symbol.metadata];
|
|
@@ -135,8 +133,8 @@ class u extends HTMLElement {
|
|
|
135
133
|
const t = [];
|
|
136
134
|
if (Array.isArray(e)) {
|
|
137
135
|
const s = new Set(e.flat(1 / 0).reverse());
|
|
138
|
-
for (const r of s) t.unshift(
|
|
139
|
-
} else e !== void 0 && t.push(
|
|
136
|
+
for (const r of s) t.unshift($(r));
|
|
137
|
+
} else e !== void 0 && t.push($(e));
|
|
140
138
|
return t;
|
|
141
139
|
}
|
|
142
140
|
static _$Eu(e, t) {
|
|
@@ -147,16 +145,13 @@ class u extends HTMLElement {
|
|
|
147
145
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
148
146
|
}
|
|
149
147
|
_$Ev() {
|
|
150
|
-
|
|
151
|
-
this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((t) => t(this));
|
|
148
|
+
this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((e) => e(this)));
|
|
152
149
|
}
|
|
153
150
|
addController(e) {
|
|
154
|
-
|
|
155
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((t = e.hostConnected) == null || t.call(e));
|
|
151
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
|
|
156
152
|
}
|
|
157
153
|
removeController(e) {
|
|
158
|
-
|
|
159
|
-
(t = this._$EO) == null || t.delete(e);
|
|
154
|
+
this._$EO?.delete(e);
|
|
160
155
|
}
|
|
161
156
|
_$E_() {
|
|
162
157
|
const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
|
|
@@ -165,54 +160,47 @@ class u extends HTMLElement {
|
|
|
165
160
|
}
|
|
166
161
|
createRenderRoot() {
|
|
167
162
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
168
|
-
return
|
|
163
|
+
return M(e, this.constructor.elementStyles), e;
|
|
169
164
|
}
|
|
170
165
|
connectedCallback() {
|
|
171
|
-
|
|
172
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((t) => {
|
|
173
|
-
var s;
|
|
174
|
-
return (s = t.hostConnected) == null ? void 0 : s.call(t);
|
|
175
|
-
});
|
|
166
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
|
|
176
167
|
}
|
|
177
168
|
enableUpdating(e) {
|
|
178
169
|
}
|
|
179
170
|
disconnectedCallback() {
|
|
180
|
-
|
|
181
|
-
(e = this._$EO) == null || e.forEach((t) => {
|
|
182
|
-
var s;
|
|
183
|
-
return (s = t.hostDisconnected) == null ? void 0 : s.call(t);
|
|
184
|
-
});
|
|
171
|
+
this._$EO?.forEach(((e) => e.hostDisconnected?.()));
|
|
185
172
|
}
|
|
186
173
|
attributeChangedCallback(e, t, s) {
|
|
187
174
|
this._$AK(e, s);
|
|
188
175
|
}
|
|
189
|
-
_$
|
|
190
|
-
var n;
|
|
176
|
+
_$ET(e, t) {
|
|
191
177
|
const s = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, s);
|
|
192
178
|
if (r !== void 0 && s.reflect === !0) {
|
|
193
|
-
const
|
|
194
|
-
this._$Em = e,
|
|
179
|
+
const n = (s.converter?.toAttribute !== void 0 ? s.converter : v).toAttribute(t, s.type);
|
|
180
|
+
this._$Em = e, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
|
|
195
181
|
}
|
|
196
182
|
}
|
|
197
183
|
_$AK(e, t) {
|
|
198
|
-
var n;
|
|
199
184
|
const s = this.constructor, r = s._$Eh.get(e);
|
|
200
185
|
if (r !== void 0 && this._$Em !== r) {
|
|
201
|
-
const
|
|
202
|
-
this._$Em = r
|
|
186
|
+
const n = s.getPropertyOptions(r), i = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : v;
|
|
187
|
+
this._$Em = r;
|
|
188
|
+
const a = i.fromAttribute(t, n.type);
|
|
189
|
+
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
|
|
203
190
|
}
|
|
204
191
|
}
|
|
205
192
|
requestUpdate(e, t, s) {
|
|
206
193
|
if (e !== void 0) {
|
|
207
|
-
|
|
208
|
-
|
|
194
|
+
const r = this.constructor, n = this[e];
|
|
195
|
+
if (s ??= r.getPropertyOptions(e), !((s.hasChanged ?? g)(n, t) || s.useDefault && s.reflect && n === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, s)))) return;
|
|
196
|
+
this.C(e, t, s);
|
|
209
197
|
}
|
|
210
|
-
this.isUpdatePending === !1 && (this._$ES = this._$
|
|
198
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
211
199
|
}
|
|
212
|
-
|
|
213
|
-
this._$AL.has(e) || this._$AL.set(e, t),
|
|
200
|
+
C(e, t, { useDefault: s, reflect: r, wrapped: n }, i) {
|
|
201
|
+
s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, i ?? t ?? this[e]), n !== !0 || i !== void 0) || (this._$AL.has(e) || (this.hasUpdated || s || (t = void 0), this._$AL.set(e, t)), r === !0 && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
|
|
214
202
|
}
|
|
215
|
-
async _$
|
|
203
|
+
async _$EP() {
|
|
216
204
|
this.isUpdatePending = !0;
|
|
217
205
|
try {
|
|
218
206
|
await this._$ES;
|
|
@@ -226,38 +214,33 @@ class u extends HTMLElement {
|
|
|
226
214
|
return this.performUpdate();
|
|
227
215
|
}
|
|
228
216
|
performUpdate() {
|
|
229
|
-
var s;
|
|
230
217
|
if (!this.isUpdatePending) return;
|
|
231
218
|
if (!this.hasUpdated) {
|
|
232
|
-
if (this.renderRoot
|
|
233
|
-
for (const [
|
|
219
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
220
|
+
for (const [r, n] of this._$Ep) this[r] = n;
|
|
234
221
|
this._$Ep = void 0;
|
|
235
222
|
}
|
|
236
|
-
const
|
|
237
|
-
if (
|
|
223
|
+
const s = this.constructor.elementProperties;
|
|
224
|
+
if (s.size > 0) for (const [r, n] of s) {
|
|
225
|
+
const { wrapped: i } = n, a = this[r];
|
|
226
|
+
i !== !0 || this._$AL.has(r) || a === void 0 || this.C(r, void 0, n, a);
|
|
227
|
+
}
|
|
238
228
|
}
|
|
239
229
|
let e = !1;
|
|
240
230
|
const t = this._$AL;
|
|
241
231
|
try {
|
|
242
|
-
e = this.shouldUpdate(t), e ? (this.willUpdate(t),
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}), this.update(t)) : this._$EU();
|
|
246
|
-
} catch (r) {
|
|
247
|
-
throw e = !1, this._$EU(), r;
|
|
232
|
+
e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((s) => s.hostUpdate?.())), this.update(t)) : this._$EM();
|
|
233
|
+
} catch (s) {
|
|
234
|
+
throw e = !1, this._$EM(), s;
|
|
248
235
|
}
|
|
249
236
|
e && this._$AE(t);
|
|
250
237
|
}
|
|
251
238
|
willUpdate(e) {
|
|
252
239
|
}
|
|
253
240
|
_$AE(e) {
|
|
254
|
-
|
|
255
|
-
(t = this._$EO) == null || t.forEach((s) => {
|
|
256
|
-
var r;
|
|
257
|
-
return (r = s.hostUpdated) == null ? void 0 : r.call(s);
|
|
258
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
241
|
+
this._$EO?.forEach(((t) => t.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
259
242
|
}
|
|
260
|
-
_$
|
|
243
|
+
_$EM() {
|
|
261
244
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
262
245
|
}
|
|
263
246
|
get updateComplete() {
|
|
@@ -270,47 +253,47 @@ class u extends HTMLElement {
|
|
|
270
253
|
return !0;
|
|
271
254
|
}
|
|
272
255
|
update(e) {
|
|
273
|
-
this._$
|
|
256
|
+
this._$Eq &&= this._$Eq.forEach(((t) => this._$ET(t, this[t]))), this._$EM();
|
|
274
257
|
}
|
|
275
258
|
updated(e) {
|
|
276
259
|
}
|
|
277
260
|
firstUpdated(e) {
|
|
278
261
|
}
|
|
279
262
|
}
|
|
280
|
-
|
|
263
|
+
h.elementStyles = [], h.shadowRootOptions = { mode: "open" }, h[u("elementProperties")] = /* @__PURE__ */ new Map(), h[u("finalized")] = /* @__PURE__ */ new Map(), H?.({ ReactiveElement: h }), (m.reactiveElementVersions ??= []).push("2.1.1");
|
|
281
264
|
/**
|
|
282
265
|
* @license
|
|
283
266
|
* Copyright 2017 Google LLC
|
|
284
267
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
285
268
|
*/
|
|
286
|
-
const I = { attribute: !0, type: String, converter:
|
|
269
|
+
const I = { attribute: !0, type: String, converter: v, reflect: !1, hasChanged: g }, K = (o = I, e, t) => {
|
|
287
270
|
const { kind: s, metadata: r } = t;
|
|
288
271
|
let n = globalThis.litPropertyMetadata.get(r);
|
|
289
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(t.name, o), s === "accessor") {
|
|
272
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), s === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(t.name, o), s === "accessor") {
|
|
290
273
|
const { name: i } = t;
|
|
291
|
-
return { set(
|
|
274
|
+
return { set(a) {
|
|
292
275
|
const _ = e.get.call(this);
|
|
293
|
-
e.set.call(this,
|
|
294
|
-
}, init(
|
|
295
|
-
return
|
|
276
|
+
e.set.call(this, a), this.requestUpdate(i, _, o);
|
|
277
|
+
}, init(a) {
|
|
278
|
+
return a !== void 0 && this.C(i, void 0, o, a), a;
|
|
296
279
|
} };
|
|
297
280
|
}
|
|
298
281
|
if (s === "setter") {
|
|
299
282
|
const { name: i } = t;
|
|
300
|
-
return function(
|
|
283
|
+
return function(a) {
|
|
301
284
|
const _ = this[i];
|
|
302
|
-
e.call(this,
|
|
285
|
+
e.call(this, a), this.requestUpdate(i, _, o);
|
|
303
286
|
};
|
|
304
287
|
}
|
|
305
288
|
throw Error("Unsupported decorator location: " + s);
|
|
306
289
|
};
|
|
307
|
-
function
|
|
290
|
+
function l(o) {
|
|
308
291
|
return (e, t) => typeof t == "object" ? K(o, e, t) : ((s, r, n) => {
|
|
309
292
|
const i = r.hasOwnProperty(n);
|
|
310
|
-
return r.constructor.createProperty(n,
|
|
293
|
+
return r.constructor.createProperty(n, s), i ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
311
294
|
})(o, e, t);
|
|
312
295
|
}
|
|
313
|
-
const O =
|
|
296
|
+
const O = U`
|
|
314
297
|
:host {
|
|
315
298
|
/* Anything that can be overridden should be defined here */
|
|
316
299
|
|
|
@@ -664,12 +647,12 @@ const O = z`
|
|
|
664
647
|
}
|
|
665
648
|
}
|
|
666
649
|
`;
|
|
667
|
-
var F = Object.defineProperty,
|
|
650
|
+
var F = Object.defineProperty, d = (o, e, t, s) => {
|
|
668
651
|
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
669
652
|
(i = o[n]) && (r = i(e, t, r) || r);
|
|
670
653
|
return r && F(e, t, r), r;
|
|
671
654
|
};
|
|
672
|
-
const
|
|
655
|
+
const x = class x extends A {
|
|
673
656
|
constructor() {
|
|
674
657
|
super(...arguments), this.selected = !1, this.current = !1, this.label = "", this.href = "", this.isCompactExpanded = !1, this.stepNumber = 0;
|
|
675
658
|
}
|
|
@@ -687,7 +670,7 @@ const w = class w extends k {
|
|
|
687
670
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this._handleActivate(e));
|
|
688
671
|
}
|
|
689
672
|
render() {
|
|
690
|
-
return
|
|
673
|
+
return k`
|
|
691
674
|
<div class="nys-step">
|
|
692
675
|
<div class="nys-step__linewrapper">
|
|
693
676
|
<div class="nys-step__line"></div>
|
|
@@ -717,36 +700,36 @@ const w = class w extends k {
|
|
|
717
700
|
`;
|
|
718
701
|
}
|
|
719
702
|
};
|
|
720
|
-
|
|
721
|
-
let p =
|
|
722
|
-
|
|
723
|
-
|
|
703
|
+
x.styles = O;
|
|
704
|
+
let p = x;
|
|
705
|
+
d([
|
|
706
|
+
l({ type: Boolean, reflect: !0 })
|
|
724
707
|
], p.prototype, "selected");
|
|
725
|
-
|
|
726
|
-
|
|
708
|
+
d([
|
|
709
|
+
l({ type: Boolean, reflect: !0 })
|
|
727
710
|
], p.prototype, "current");
|
|
728
|
-
|
|
729
|
-
|
|
711
|
+
d([
|
|
712
|
+
l({ type: String })
|
|
730
713
|
], p.prototype, "label");
|
|
731
|
-
|
|
732
|
-
|
|
714
|
+
d([
|
|
715
|
+
l({ type: String })
|
|
733
716
|
], p.prototype, "href");
|
|
734
|
-
|
|
735
|
-
|
|
717
|
+
d([
|
|
718
|
+
l({ type: Boolean })
|
|
736
719
|
], p.prototype, "isCompactExpanded");
|
|
737
|
-
|
|
738
|
-
|
|
720
|
+
d([
|
|
721
|
+
l({ type: Function })
|
|
739
722
|
], p.prototype, "onClick");
|
|
740
|
-
|
|
741
|
-
|
|
723
|
+
d([
|
|
724
|
+
l({ type: Number })
|
|
742
725
|
], p.prototype, "stepNumber");
|
|
743
726
|
customElements.get("nys-step") || customElements.define("nys-step", p);
|
|
744
|
-
var W = Object.defineProperty,
|
|
727
|
+
var W = Object.defineProperty, y = (o, e, t, s) => {
|
|
745
728
|
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
746
729
|
(i = o[n]) && (r = i(e, t, r) || r);
|
|
747
730
|
return r && W(e, t, r), r;
|
|
748
731
|
};
|
|
749
|
-
const
|
|
732
|
+
const w = class w extends A {
|
|
750
733
|
constructor() {
|
|
751
734
|
super(), this.id = "", this.name = "", this.label = "", this.counterText = "initial", this.isCompactExpanded = !1, this._stepsNumbered = !1, this._onStepClick = async (e) => {
|
|
752
735
|
const t = e.composedPath().find(
|
|
@@ -820,7 +803,7 @@ const E = class E extends k {
|
|
|
820
803
|
(e.key === " " || e.key === "Enter") && (e.preventDefault(), this._toggleCompact());
|
|
821
804
|
}
|
|
822
805
|
render() {
|
|
823
|
-
return
|
|
806
|
+
return k`
|
|
824
807
|
<div class="nys-stepper" id=${this.id} name=${this.name}>
|
|
825
808
|
<div class="nys-stepper__header">
|
|
826
809
|
<slot name="actions" @slotchange=${this._validateButtonSlot}></slot>
|
|
@@ -844,26 +827,26 @@ const E = class E extends k {
|
|
|
844
827
|
`;
|
|
845
828
|
}
|
|
846
829
|
};
|
|
847
|
-
|
|
848
|
-
let
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
],
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
],
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
],
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
],
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
],
|
|
864
|
-
customElements.get("nys-stepper") || customElements.define("nys-stepper",
|
|
830
|
+
w.styles = O;
|
|
831
|
+
let c = w;
|
|
832
|
+
y([
|
|
833
|
+
l({ type: String })
|
|
834
|
+
], c.prototype, "id");
|
|
835
|
+
y([
|
|
836
|
+
l({ type: String, reflect: !0 })
|
|
837
|
+
], c.prototype, "name");
|
|
838
|
+
y([
|
|
839
|
+
l({ type: String })
|
|
840
|
+
], c.prototype, "label");
|
|
841
|
+
y([
|
|
842
|
+
l({ type: String })
|
|
843
|
+
], c.prototype, "counterText");
|
|
844
|
+
y([
|
|
845
|
+
l({ type: Boolean, reflect: !0 })
|
|
846
|
+
], c.prototype, "isCompactExpanded");
|
|
847
|
+
customElements.get("nys-stepper") || customElements.define("nys-stepper", c);
|
|
865
848
|
export {
|
|
866
849
|
p as NysStep,
|
|
867
|
-
|
|
850
|
+
c as NysStepper
|
|
868
851
|
};
|
|
869
852
|
//# sourceMappingURL=nys-stepper.js.map
|
package/dist/nys-stepper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nys-stepper.js","sources":["../../../node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/@lit/reactive-element/decorators/property.js","../src/nys-stepper.styles.ts","../src/nys-step.ts","../src/nys-stepper.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:r,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e(this.prototype,t,r)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...h(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:\"open\"},b[d(\"elementProperties\")]=new Map,b[d(\"finalized\")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push(\"2.0.4\");export{b as ReactiveElement,u as defaultConverter,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import { css } from \"lit\";\n\nexport default css`\n :host {\n /* Anything that can be overridden should be defined here */\n\n /* Global Stepper Styles */\n\n /* Typography */\n --_nys-stepper-font-size: var(--nys-font-size-ui-md, 16px);\n --_nys-stepper-font-weight: var(--nys-font-weight-semibold, 600);\n --_nys-stepper-line-height: var(--nys-font-lineheight-ui-md, 24px);\n --_nys-stepper-font-family: var(\n --nys-font-family-ui,\n var(\n --nys-font-family-sans,\n \"Proxima Nova\",\n \"Helvetica Neue\",\n \"Helvetica\",\n \"Arial\",\n sans-serif\n )\n );\n --_nys-step-color: var(--nys-color-text, #1b1b1b);\n --_nys-stepper-background-color: var(--nys-color-surface-raised, #f6f6f6);\n }\n\n .nys-stepper {\n font-family: var(--_nys-stepper-font-family);\n font-size: var(--_nys-stepper-font-size);\n font-weight: var(--_nys-stepper-font-weight);\n line-height: var(--_nys-stepper-line-height);\n display: flex;\n flex-direction: column;\n counter-reset: step;\n background-color: var(--_nys-stepper-background-color);\n max-width: 100%;\n height: 100%;\n }\n\n .nys-stepper__header {\n display: flex;\n flex-direction: column;\n padding: var(--nys-space-400, 32px) var(--nys-space-400, 32px)\n var(--nys-space-150, 12px);\n }\n\n ::slotted(div[slot=\"actions\"]) {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n gap: var(--nys-space-100, 8px);\n margin-bottom: var(--nys-space-300, 24px);\n }\n\n .nys-stepper__counter {\n display: none;\n text-decoration: underline;\n text-decoration-style: solid;\n text-decoration-skip-ink: auto;\n text-decoration-thickness: 7%; /* 1.12px */\n text-underline-offset: auto;\n text-underline-position: from-font;\n color: var(--nys-color-text, #1b1b1b);\n text-overflow: ellipsis;\n font-family: var(--nys-font-family-ui, \"Proxima Nova\");\n font-size: var(--nys-font-size-ui-md, 16px);\n font-style: normal;\n font-weight: 400;\n line-height: var(--nys-font-size-ui-md, 16px);\n cursor: pointer;\n width: fit-content;\n }\n\n .nys-stepper__steps {\n display: flex;\n flex-direction: column;\n padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)\n var(--nys-space-400, 32px);\n overflow-y: scroll;\n height: -webkit-fit-content;\n height: -moz-available;\n scrollbar-width: none;\n background:\n /* Shadow Cover TOP */\n linear-gradient(\n var(--nys-color-surface-raised, #f6f6f6) 30%,\n rgba(255, 255, 255, 0)\n )\n center top,\n /* Shadow Cover BOTTOM */\n linear-gradient(\n rgba(255, 255, 255, 0),\n var(--nys-color-surface-raised, #f6f6f6) 70%\n )\n center bottom,\n /* Shadow TOP */\n linear-gradient(to bottom, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) top,\n /* Shadow BOTTOM */\n linear-gradient(to top, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) bottom;\n\n background-repeat: no-repeat;\n background-size:\n 100% 40px,\n 100% 40px,\n 100% 14px,\n 100% 14px;\n background-attachment: local, local, scroll, scroll;\n background-color: var(--nys-color-surface-raised, #f6f6f6);\n }\n\n .nys-step {\n position: relative;\n counter-increment: step;\n display: flex;\n flex-direction: column;\n }\n\n .nys-step__contentwrapper {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: var(--nys-space-150, 12px);\n cursor: default;\n width: fit-content;\n }\n\n .nys-step__contentwrapper:focus-visible {\n outline: solid var(--nys-color-focus, #004dd1)\n var(--nys-border-width-md, 2px);\n outline-offset: var(--nys-space-2px, 2px);\n border-radius: var(--nys-radius-md, 4px);\n }\n\n .nys-step__linewrapper {\n width: 24px;\n display: flex;\n justify-content: center;\n }\n\n .nys-step__line {\n width: var(--nys-size-1px, 1px);\n height: var(--nys-size-300, 24px);\n border-radius: var(--nys-radius-round, 1776px);\n background: var(--nys-color-black-transparent-200, rgba(27, 27, 27, 0.2));\n margin: var(--nys-space-100, 8px) 0;\n }\n\n .nys-step__number {\n border-radius: var(--nys-radius-round, 1776px);\n border: var(--nys-size-1px, 1px) solid var(--nys-color-neutral-400, #909395);\n background: var(\n --nys-color-white-transparent-900,\n rgba(255, 255, 255, 0.9)\n );\n width: var(--nys-size-300, 24px);\n height: var(--nys-size-300, 24px);\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n color: var(--nys-color-text, #1b1b1b);\n }\n\n :host([previous]) .nys-step__number,\n :host([previous]) .nys-step__line,\n :host([current]) .nys-step__number,\n :host([current]) .nys-step__line {\n background-color: var(--nys-color-theme-stronger, #081b2b);\n color: var(--nys-color-text-reverse, #fff);\n border-color: var(--nys-color-theme-stronger, #081b2b);\n }\n\n :host([selected]) .nys-step__number {\n background-color: var(--nys-color-theme, #154973);\n color: var(--nys-color-text-reverse, #fff);\n border-color: var(--nys-color-theme, #154973);\n outline: var(--nys-size-50, 4px) solid var(--nys-color-theme-weak, #cddde9);\n }\n\n /* Hide the line wrapper in the last step */\n :host([first]) .nys-step__linewrapper {\n display: none !important;\n }\n\n .nys-step__content {\n display: flex;\n flex-direction: column;\n gap: var(--nys-space-100, 8px);\n }\n\n .nys-step__label {\n color: var(--_nys-step-color);\n font-family: var(--_nys-stepper-font-family);\n font-size: var(--_nys-stepper-font-size);\n font-weight: var(--_nys-stepper-font-weight);\n line-height: var(--_nys-stepper-line-height);\n line-height: var(--nys-font-size-ui-md, 16px);\n letter-spacing: var(--nys-font-letterspacing-ui-md, 0.044px);\n text-decoration-style: solid;\n text-decoration-skip-ink: auto;\n text-decoration-thickness: var(7%, 1.12px);\n text-underline-offset: auto;\n }\n\n :host([current]) .nys-step__label,\n :host([previous]) .nys-step__label {\n text-decoration-line: underline;\n }\n\n :host([current]) .nys-step__contentwrapper,\n :host([previous]) .nys-step__contentwrapper {\n cursor: pointer;\n }\n\n :host([selected]) .nys-step__label {\n /* UI/Medium/Bold */\n font-weight: 700;\n text-decoration-line: none;\n }\n\n :host([selected]) .nys-step__contentwrapper {\n cursor: default;\n }\n\n :host([selected]) .nys-step__contentwrapper:focus-visible {\n outline-offset: 6px;\n }\n\n @media (max-width: 1023px) {\n .nys-stepper {\n max-width: 1023px;\n width: 100%;\n }\n\n .nys-stepper__header {\n flex-direction: row-reverse;\n justify-content: space-between;\n padding: var(--nys-space-150, 12px);\n gap: var(--nys-space-200, 16px);\n }\n\n .nys-stepper__headertext {\n flex: 1 1 0;\n min-width: 0;\n }\n\n ::slotted(div[slot=\"actions\"]) {\n margin-bottom: 0;\n min-width: 0;\n justify-content: end;\n }\n\n .nys-stepper__counter {\n display: block;\n }\n\n .nys-stepper__steps {\n flex-direction: row;\n gap: var(--nys-space-2px, 2px);\n padding: 0;\n }\n\n .nys-stepper__steps::slotted(*) {\n flex: 1;\n }\n\n .nys-step__number {\n border-radius: 0;\n border: none;\n background-color: var(--nys-color-neutral-200, #bec0c1);\n height: var(--nys-size-100, 8px);\n width: 100%;\n color: transparent;\n }\n\n :host([previous]) .nys-step__number,\n :host([current]) .nys-step__number {\n background-color: var(--nys-color-neutral-900, #1b1b1b);\n color: transparent;\n }\n\n :host([selected]) .nys-step__number {\n background-color: var(--nys-color-theme-mid, #457aa5);\n outline: none;\n }\n\n .nys-step__content,\n .nys-step__linewrapper {\n display: none;\n }\n\n .nys-step__contentwrapper {\n cursor: default;\n pointer-events: none;\n width: auto;\n }\n\n /* ---------------- Expanded Mode ---------------- */\n :host([isCompactExpanded]) .nys-step__content,\n :host([isCompactExpanded]) .nys-step__linewrapper {\n display: flex;\n }\n\n :host([isCompactExpanded]) .nys-stepper__header {\n padding-bottom: var(--nys-space-250, 20px);\n }\n\n :host([isCompactExpanded]) .nys-stepper__steps {\n width: -webkit-fill-available;\n width: -moz-available;\n z-index: 9999;\n overflow-y: auto;\n flex-direction: column;\n gap: 0;\n padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)\n var(--nys-space-400, 32px);\n }\n\n :host([isCompactExpanded]) .nys-stepper__steps::slotted(*) {\n flex: none;\n }\n\n :host([isCompactExpanded]) .nys-step__number {\n border-radius: var(--nys-radius-round, 1776px);\n border: 1px solid var(--nys-color-neutral-400, #909395);\n background: var(\n --nys-color-white-transparent-900,\n rgba(255, 255, 255, 0.9)\n );\n width: var(--nys-space-300, 24px);\n height: var(--nys-space-300, 24px);\n color: var(--nys-color-text, #1b1b1b);\n }\n\n :host([isCompactExpanded][previous]) .nys-step__number,\n :host([isCompactExpanded][previous]) .nys-step__line,\n :host([isCompactExpanded][current]) .nys-step__number,\n :host([isCompactExpanded][current]) .nys-step__line {\n background: var(--nys-color-theme-stronger, #081b2b);\n color: var(--nys-color-text-reverse, #fff);\n border-color: var(--nys-color-theme-stronger, #081b2b);\n }\n\n :host([isCompactExpanded][selected]) .nys-step__number {\n background: var(--nys-color-theme, #154973);\n color: var(--nys-color-text-reverse, #fff);\n border-color: var(--nys-color-theme, #154973);\n outline: 4px solid var(--nys-color-theme-weak, #cddde9);\n }\n\n :host([isCompactExpanded]) .nys-step__contentwrapper {\n pointer-events: all;\n }\n }\n`;\n","import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport styles from \"./nys-stepper.styles\";\n\nexport class NysStep extends LitElement {\n @property({ type: Boolean, reflect: true }) selected = false;\n @property({ type: Boolean, reflect: true }) current = false;\n @property({ type: String }) label = \"\";\n @property({ type: String }) href = \"\";\n @property({ type: Boolean }) isCompactExpanded = false;\n @property({ type: Function }) onClick?: (e: Event) => void;\n @property({ type: Number }) stepNumber = 0;\n\n static styles = styles;\n\n private _handleActivate(e: Event) {\n // Run user-supplied onClick first (if present)\n if (typeof this.onClick === \"function\") {\n this.onClick(e);\n }\n\n // Dispatch event as cancelable so user can prevent navigation\n const event = new CustomEvent(\"nys-step-click\", {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail: { href: this.href, label: this.label },\n });\n\n if ((this.hasAttribute(\"previous\") || this.current) && !this.selected) {\n this.dispatchEvent(event);\n\n // Only navigate if event was not canceled\n if (!event.defaultPrevented && this.href) {\n window.location.href = this.href;\n }\n }\n }\n\n private _handleKeydown(e: KeyboardEvent) {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n this._handleActivate(e);\n }\n }\n\n render() {\n return html`\n <div class=\"nys-step\">\n <div class=\"nys-step__linewrapper\">\n <div class=\"nys-step__line\"></div>\n </div>\n <div\n class=\"nys-step__contentwrapper\"\n @click=${this._handleActivate}\n @keydown=${this._handleKeydown}\n role=\"button\"\n aria-label=\"${this.label} Step\"\n ?disabled=${!(\n this.selected ||\n this.current ||\n this.hasAttribute(\"previous\")\n )}\n >\n <div class=\"nys-step__number\" tabindex=\"-1\" aria-hidden=\"true\">\n ${this.stepNumber}\n </div>\n <div class=\"nys-step__content\" tabindex=\"-1\" aria-hidden=\"true\">\n <div\n class=\"nys-step__label\"\n tabindex=${!(\n this.selected ||\n this.current ||\n this.hasAttribute(\"previous\")\n )\n ? \"-1\"\n : \"0\"}\n aria-hidden=\"true\"\n >\n ${this.label}\n </div>\n </div>\n </div>\n </div>\n `;\n }\n}\n\nif (!customElements.get(\"nys-step\")) {\n customElements.define(\"nys-step\", NysStep);\n}\n","import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport styles from \"./nys-stepper.styles\";\nimport \"./nys-step\";\n\nexport class NysStepper extends LitElement {\n @property({ type: String }) id = \"\";\n @property({ type: String, reflect: true }) name = \"\";\n @property({ type: String }) label = \"\";\n @property({ type: String }) counterText = \"initial\";\n @property({ type: Boolean, reflect: true })\n isCompactExpanded = false;\n\n static styles = styles;\n private _stepsNumbered = false;\n\n constructor() {\n super();\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener(\"nys-step-click\", this._onStepClick);\n // Defer step validation to next tick to ensure children are upgraded\n requestAnimationFrame(() => this._validateSteps());\n }\n\n disconnectedCallback() {\n this.removeEventListener(\"nys-step-click\", this._onStepClick);\n super.disconnectedCallback();\n }\n\n private _validateSteps() {\n Array.from(this.children).forEach((child) => {\n const isStep =\n child instanceof HTMLElement &&\n child.tagName.toLowerCase() === \"nys-step\";\n const isSlotActionsContainer =\n child instanceof HTMLElement &&\n child.hasAttribute(\"slot\") &&\n child.getAttribute(\"slot\") === \"actions\";\n\n if (!isStep && !isSlotActionsContainer) {\n console.warn(\n \"Only <nys-step> elements or the <div slot='actions'> container are allowed as direct children of <nys-stepper>. Removing:\",\n child,\n );\n child.remove();\n }\n });\n }\n\n private _validateButtonSlot(event: Event) {\n const slot = event.target as HTMLSlotElement;\n const assignedElements = slot.assignedElements();\n\n // Ensure exactly one direct node in the slot, and it must be a div\n if (\n assignedElements.length !== 1 ||\n assignedElements[0].tagName.toLowerCase() !== \"div\"\n ) {\n console.warn(\n \"The 'actions' slot must have exactly one <div> as a direct child.\",\n );\n return;\n }\n\n const div = assignedElements[0] as HTMLElement;\n\n // Iterate through all buttons and validate\n Array.from(div.children).forEach((button) => {\n const isNysButton =\n button instanceof HTMLElement &&\n button.tagName.toLowerCase() === \"nys-button\";\n\n if (!isNysButton) {\n console.warn(\n \"The <div> inside 'actions' slot only accepts <nys-button> elements. Removing invalid node:\",\n button,\n );\n button.remove();\n } else {\n // Ensure nys-button has correct styles\n button.setAttribute(\"size\", \"sm\");\n if (button.hasAttribute(\"fullWidth\")) {\n button.style.flex = \"1 1 0\";\n }\n }\n });\n }\n\n private _onStepClick = async (event: Event) => {\n const clickedStep = event\n .composedPath()\n .find(\n (el) =>\n el instanceof HTMLElement && el.tagName.toLowerCase() === \"nys-step\",\n ) as HTMLElement | undefined;\n\n if (!clickedStep) return;\n\n const steps = Array.from(this.querySelectorAll(\"nys-step\"));\n const currentIndex = steps.findIndex((step) =>\n step.hasAttribute(\"current\"),\n );\n const clickedIndex = steps.indexOf(clickedStep);\n\n // Can't select past current\n if (currentIndex !== -1 && clickedIndex > currentIndex) return;\n\n // Can't select already selected\n if (clickedStep.hasAttribute(\"selected\")) return;\n\n // Remove selected from previous and move to new selected\n steps.forEach((step) => step.removeAttribute(\"selected\"));\n clickedStep.setAttribute(\"selected\", \"\");\n\n // Update counter immediately\n this._updateCounter();\n\n // Close expanded if it was open\n this.isCompactExpanded = false;\n };\n\n private _updateCounter() {\n if (this.isCompactExpanded) {\n this.counterText = \"Back to Form\";\n this.style.height = \"-webkit-fit-content\";\n this.style.height = \"-moz-fit-content\";\n this.style.height = \"fit-content\";\n return;\n } else {\n this.style.height = \"auto\";\n }\n\n const steps = this.querySelectorAll<HTMLElement>(\"nys-step\");\n const selectedIndex = Array.from(steps).findIndex((step) =>\n step.hasAttribute(\"selected\"),\n );\n const totalSteps = steps.length;\n\n this.counterText =\n selectedIndex >= 0\n ? `Step ${selectedIndex + 1} of ${totalSteps}`\n : `Step 1 of ${totalSteps}`;\n }\n\n updated() {\n const steps = this.querySelectorAll<any>(\"nys-step\");\n\n if (!this._stepsNumbered) {\n steps.forEach((step, index) => {\n step.stepNumber = index + 1;\n });\n this._stepsNumbered = true;\n }\n\n let foundCurrent = false;\n let selectedAssigned = false;\n let currentAssigned = false;\n\n steps.forEach((step, i) => {\n // Check if multiple \"current\" exist, respect the first instance\n if (step.hasAttribute(\"current\")) {\n if (!currentAssigned) {\n currentAssigned = true;\n } else {\n step.removeAttribute(\"current\");\n }\n }\n\n // Set first\n if (i === 0) {\n step.setAttribute(\"first\", \"\");\n } else {\n step.removeAttribute(\"first\");\n }\n\n // Set previous\n if (step.hasAttribute(\"current\")) {\n foundCurrent = true;\n step.removeAttribute(\"previous\");\n } else if (!foundCurrent) {\n step.setAttribute(\"previous\", \"\");\n } else {\n step.removeAttribute(\"previous\");\n }\n\n // Handle selected, respect first instance\n if (step.hasAttribute(\"selected\")) {\n if (foundCurrent || selectedAssigned) {\n step.removeAttribute(\"selected\");\n } else {\n selectedAssigned = true;\n }\n }\n\n // Handle compact expanded\n if (this.hasAttribute(\"isCompactExpanded\")) {\n step.setAttribute(\"isCompactExpanded\", \"\");\n } else {\n step.removeAttribute(\"isCompactExpanded\");\n }\n });\n\n // Selected fallback\n if (!selectedAssigned) {\n if (currentAssigned) {\n steps.forEach((step) => {\n if (step.hasAttribute(\"current\") && !selectedAssigned) {\n step.setAttribute(\"selected\", \"\");\n selectedAssigned = true;\n }\n });\n } else if (steps.length > 0) {\n // If no current or selected, mark first as both current and selected\n steps[0].setAttribute(\"current\", \"\");\n steps[0].setAttribute(\"selected\", \"\");\n }\n }\n\n // Always update counter\n this._updateCounter();\n }\n\n private _toggleCompact() {\n this.isCompactExpanded = !this.isCompactExpanded;\n }\n\n private _handleCounterKeydown(event: KeyboardEvent) {\n if (event.key === \" \" || event.key === \"Enter\") {\n event.preventDefault();\n this._toggleCompact();\n }\n }\n\n render() {\n return html`\n <div class=\"nys-stepper\" id=${this.id} name=${this.name}>\n <div class=\"nys-stepper__header\">\n <slot name=\"actions\" @slotchange=${this._validateButtonSlot}></slot>\n <div class=\"nys-stepper__headertext\">\n <div class=\"nys-stepper__label\">${this.label}</div>\n <div\n class=\"nys-stepper__counter\"\n @click=${this._toggleCompact}\n @keydown=${this._handleCounterKeydown}\n role=\"button\"\n tabindex=\"0\"\n aria-label=${this.isCompactExpanded\n ? \"Collapse step navigation to view the form\"\n : `Expand step navigation. You are on ${this.counterText}`}\n aria-expanded=${this.isCompactExpanded ? \"true\" : \"false\"}\n >\n ${this.counterText}\n </div>\n </div>\n </div>\n <slot class=\"nys-stepper__steps\"></slot>\n </div>\n `;\n }\n}\n\nif (!customElements.get(\"nys-stepper\")) {\n customElements.define(\"nys-stepper\", NysStepper);\n}\n"],"names":["t","e","s","o","n$2","r","n","S","c","i","h","a","l","p","d","u","f","y","b","_a","styles","css","_NysStep","LitElement","event","html","NysStep","__decorateClass","property","_NysStepper","clickedStep","el","steps","currentIndex","step","clickedIndex","child","isStep","isSlotActionsContainer","assignedElements","div","button","selectedIndex","totalSteps","index","foundCurrent","selectedAssigned","currentAssigned","NysStepper"],"mappings":";;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,MAAMA,IAAE,YAAWC,IAAED,EAAE,eAAsBA,EAAE,aAAX,UAAqBA,EAAE,SAAS,iBAAe,wBAAuB,SAAS,aAAW,aAAY,cAAc,WAAUE,IAAE,OAAM,GAAGC,IAAE,oBAAI;AAAO,IAAAC,IAAC,MAAO;AAAA,EAAC,YAAYJ,GAAEC,GAAEE,GAAE;AAAC,QAAG,KAAK,eAAa,IAAGA,MAAID,EAAE,OAAM,MAAM,mEAAmE;AAAE,SAAK,UAAQF,GAAE,KAAK,IAAEC;AAAA,EAAC;AAAA,EAAC,IAAI,aAAY;AAAC,QAAID,IAAE,KAAK;AAAE,UAAME,IAAE,KAAK;AAAE,QAAGD,KAAYD,MAAT,QAAW;AAAC,YAAMC,IAAWC,MAAT,UAAgBA,EAAE,WAAN;AAAa,MAAAD,MAAID,IAAEG,EAAE,IAAID,CAAC,IAAYF,MAAT,YAAc,KAAK,IAAEA,IAAE,IAAI,iBAAe,YAAY,KAAK,OAAO,GAAEC,KAAGE,EAAE,IAAID,GAAEF,CAAC;AAAA,IAAE;AAAC,WAAOA;AAAA,EAAC;AAAA,EAAC,WAAU;AAAC,WAAO,KAAK;AAAA,EAAO;AAAC;AAAM,MAACK,IAAE,CAAAL,MAAG,IAAIM,EAAY,OAAON,KAAjB,WAAmBA,IAAEA,IAAE,IAAG,QAAOE,CAAC,GAA2VK,IAAE,CAACL,GAAEC,MAAI;AAAC,MAAGF,EAAE,CAAAC,EAAE,qBAAmBC,EAAE,IAAK,OAAG,aAAa,gBAAc,IAAE,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AAmB;AAAA;AAAA,8CAEvB,KAAK,KAAK;AAAA;AAAA;AAAA,uBAGjC,KAAK,cAAc;AAAA,yBACjB,KAAK,qBAAqB;AAAA;AAAA;AAAA,2BAGxB,KAAK,oBACd,8CACA,sCAAsC,KAAK,WAAW,EAAE;AAAA,8BAC5C,KAAK,oBAAoB,SAAS,OAAO;AAAA;AAAA,gBAEvD,KAAK,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO9B;AACF;AAzPEI,EAAO,SAAST;AARX,IAAM4B,IAANnB;AACuBF,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GADfoB,EACiB,WAAA,IAAA;AACerB,EAAA;AAAA,EAA1CC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAF9BoB,EAEgC,WAAA,MAAA;AACfrB,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAHfoB,EAGiB,WAAA,OAAA;AACArB,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAJfoB,EAIiB,WAAA,aAAA;AAE5BrB,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAL/BoB,EAMX,WAAA,mBAAA;AA6PG,eAAe,IAAI,aAAa,KACnC,eAAe,OAAO,eAAeA,CAAU;","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"nys-stepper.js","sources":["../../../node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/@lit/reactive-element/decorators/property.js","../src/nys-stepper.styles.ts","../src/nys-step.ts","../src/nys-stepper.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,css,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:\"open\"},y[d(\"elementProperties\")]=new Map,y[d(\"finalized\")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push(\"2.1.1\");export{y as ReactiveElement,s as adoptStyles,u as defaultConverter,t as getCompatibleStyle,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),\"setter\"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import { css } from \"lit\";\n\nexport default css`\n :host {\n /* Anything that can be overridden should be defined here */\n\n /* Global Stepper Styles */\n\n /* Typography */\n --_nys-stepper-font-size: var(--nys-font-size-ui-md, 16px);\n --_nys-stepper-font-weight: var(--nys-font-weight-semibold, 600);\n --_nys-stepper-line-height: var(--nys-font-lineheight-ui-md, 24px);\n --_nys-stepper-font-family: var(\n --nys-font-family-ui,\n var(\n --nys-font-family-sans,\n \"Proxima Nova\",\n \"Helvetica Neue\",\n \"Helvetica\",\n \"Arial\",\n sans-serif\n )\n );\n --_nys-step-color: var(--nys-color-text, #1b1b1b);\n --_nys-stepper-background-color: var(--nys-color-surface-raised, #f6f6f6);\n }\n\n .nys-stepper {\n font-family: var(--_nys-stepper-font-family);\n font-size: var(--_nys-stepper-font-size);\n font-weight: var(--_nys-stepper-font-weight);\n line-height: var(--_nys-stepper-line-height);\n display: flex;\n flex-direction: column;\n counter-reset: step;\n background-color: var(--_nys-stepper-background-color);\n max-width: 100%;\n height: 100%;\n }\n\n .nys-stepper__header {\n display: flex;\n flex-direction: column;\n padding: var(--nys-space-400, 32px) var(--nys-space-400, 32px)\n var(--nys-space-150, 12px);\n }\n\n ::slotted(div[slot=\"actions\"]) {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n gap: var(--nys-space-100, 8px);\n margin-bottom: var(--nys-space-300, 24px);\n }\n\n .nys-stepper__counter {\n display: none;\n text-decoration: underline;\n text-decoration-style: solid;\n text-decoration-skip-ink: auto;\n text-decoration-thickness: 7%; /* 1.12px */\n text-underline-offset: auto;\n text-underline-position: from-font;\n color: var(--nys-color-text, #1b1b1b);\n text-overflow: ellipsis;\n font-family: var(--nys-font-family-ui, \"Proxima Nova\");\n font-size: var(--nys-font-size-ui-md, 16px);\n font-style: normal;\n font-weight: 400;\n line-height: var(--nys-font-size-ui-md, 16px);\n cursor: pointer;\n width: fit-content;\n }\n\n .nys-stepper__steps {\n display: flex;\n flex-direction: column;\n padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)\n var(--nys-space-400, 32px);\n overflow-y: scroll;\n height: -webkit-fit-content;\n height: -moz-available;\n scrollbar-width: none;\n background:\n /* Shadow Cover TOP */\n linear-gradient(\n var(--nys-color-surface-raised, #f6f6f6) 30%,\n rgba(255, 255, 255, 0)\n )\n center top,\n /* Shadow Cover BOTTOM */\n linear-gradient(\n rgba(255, 255, 255, 0),\n var(--nys-color-surface-raised, #f6f6f6) 70%\n )\n center bottom,\n /* Shadow TOP */\n linear-gradient(to bottom, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) top,\n /* Shadow BOTTOM */\n linear-gradient(to top, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) bottom;\n\n background-repeat: no-repeat;\n background-size:\n 100% 40px,\n 100% 40px,\n 100% 14px,\n 100% 14px;\n background-attachment: local, local, scroll, scroll;\n background-color: var(--nys-color-surface-raised, #f6f6f6);\n }\n\n .nys-step {\n position: relative;\n counter-increment: step;\n display: flex;\n flex-direction: column;\n }\n\n .nys-step__contentwrapper {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: var(--nys-space-150, 12px);\n cursor: default;\n width: fit-content;\n }\n\n .nys-step__contentwrapper:focus-visible {\n outline: solid var(--nys-color-focus, #004dd1)\n var(--nys-border-width-md, 2px);\n outline-offset: var(--nys-space-2px, 2px);\n border-radius: var(--nys-radius-md, 4px);\n }\n\n .nys-step__linewrapper {\n width: 24px;\n display: flex;\n justify-content: center;\n }\n\n .nys-step__line {\n width: var(--nys-size-1px, 1px);\n height: var(--nys-size-300, 24px);\n border-radius: var(--nys-radius-round, 1776px);\n background: var(--nys-color-black-transparent-200, rgba(27, 27, 27, 0.2));\n margin: var(--nys-space-100, 8px) 0;\n }\n\n .nys-step__number {\n border-radius: var(--nys-radius-round, 1776px);\n border: var(--nys-size-1px, 1px) solid var(--nys-color-neutral-400, #909395);\n background: var(\n --nys-color-white-transparent-900,\n rgba(255, 255, 255, 0.9)\n );\n width: var(--nys-size-300, 24px);\n height: var(--nys-size-300, 24px);\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n color: var(--nys-color-text, #1b1b1b);\n }\n\n :host([previous]) .nys-step__number,\n :host([previous]) .nys-step__line,\n :host([current]) .nys-step__number,\n :host([current]) .nys-step__line {\n background-color: var(--nys-color-theme-stronger, #081b2b);\n color: var(--nys-color-text-reverse, #fff);\n border-color: var(--nys-color-theme-stronger, #081b2b);\n }\n\n :host([selected]) .nys-step__number {\n background-color: var(--nys-color-theme, #154973);\n color: var(--nys-color-text-reverse, #fff);\n border-color: var(--nys-color-theme, #154973);\n outline: var(--nys-size-50, 4px) solid var(--nys-color-theme-weak, #cddde9);\n }\n\n /* Hide the line wrapper in the last step */\n :host([first]) .nys-step__linewrapper {\n display: none !important;\n }\n\n .nys-step__content {\n display: flex;\n flex-direction: column;\n gap: var(--nys-space-100, 8px);\n }\n\n .nys-step__label {\n color: var(--_nys-step-color);\n font-family: var(--_nys-stepper-font-family);\n font-size: var(--_nys-stepper-font-size);\n font-weight: var(--_nys-stepper-font-weight);\n line-height: var(--_nys-stepper-line-height);\n line-height: var(--nys-font-size-ui-md, 16px);\n letter-spacing: var(--nys-font-letterspacing-ui-md, 0.044px);\n text-decoration-style: solid;\n text-decoration-skip-ink: auto;\n text-decoration-thickness: var(7%, 1.12px);\n text-underline-offset: auto;\n }\n\n :host([current]) .nys-step__label,\n :host([previous]) .nys-step__label {\n text-decoration-line: underline;\n }\n\n :host([current]) .nys-step__contentwrapper,\n :host([previous]) .nys-step__contentwrapper {\n cursor: pointer;\n }\n\n :host([selected]) .nys-step__label {\n /* UI/Medium/Bold */\n font-weight: 700;\n text-decoration-line: none;\n }\n\n :host([selected]) .nys-step__contentwrapper {\n cursor: default;\n }\n\n :host([selected]) .nys-step__contentwrapper:focus-visible {\n outline-offset: 6px;\n }\n\n @media (max-width: 1023px) {\n .nys-stepper {\n max-width: 1023px;\n width: 100%;\n }\n\n .nys-stepper__header {\n flex-direction: row-reverse;\n justify-content: space-between;\n padding: var(--nys-space-150, 12px);\n gap: var(--nys-space-200, 16px);\n }\n\n .nys-stepper__headertext {\n flex: 1 1 0;\n min-width: 0;\n }\n\n ::slotted(div[slot=\"actions\"]) {\n margin-bottom: 0;\n min-width: 0;\n justify-content: end;\n }\n\n .nys-stepper__counter {\n display: block;\n }\n\n .nys-stepper__steps {\n flex-direction: row;\n gap: var(--nys-space-2px, 2px);\n padding: 0;\n }\n\n .nys-stepper__steps::slotted(*) {\n flex: 1;\n }\n\n .nys-step__number {\n border-radius: 0;\n border: none;\n background-color: var(--nys-color-neutral-200, #bec0c1);\n height: var(--nys-size-100, 8px);\n width: 100%;\n color: transparent;\n }\n\n :host([previous]) .nys-step__number,\n :host([current]) .nys-step__number {\n background-color: var(--nys-color-neutral-900, #1b1b1b);\n color: transparent;\n }\n\n :host([selected]) .nys-step__number {\n background-color: var(--nys-color-theme-mid, #457aa5);\n outline: none;\n }\n\n .nys-step__content,\n .nys-step__linewrapper {\n display: none;\n }\n\n .nys-step__contentwrapper {\n cursor: default;\n pointer-events: none;\n width: auto;\n }\n\n /* ---------------- Expanded Mode ---------------- */\n :host([isCompactExpanded]) .nys-step__content,\n :host([isCompactExpanded]) .nys-step__linewrapper {\n display: flex;\n }\n\n :host([isCompactExpanded]) .nys-stepper__header {\n padding-bottom: var(--nys-space-250, 20px);\n }\n\n :host([isCompactExpanded]) .nys-stepper__steps {\n width: -webkit-fill-available;\n width: -moz-available;\n z-index: 9999;\n overflow-y: auto;\n flex-direction: column;\n gap: 0;\n padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)\n var(--nys-space-400, 32px);\n }\n\n :host([isCompactExpanded]) .nys-stepper__steps::slotted(*) {\n flex: none;\n }\n\n :host([isCompactExpanded]) .nys-step__number {\n border-radius: var(--nys-radius-round, 1776px);\n border: 1px solid var(--nys-color-neutral-400, #909395);\n background: var(\n --nys-color-white-transparent-900,\n rgba(255, 255, 255, 0.9)\n );\n width: var(--nys-space-300, 24px);\n height: var(--nys-space-300, 24px);\n color: var(--nys-color-text, #1b1b1b);\n }\n\n :host([isCompactExpanded][previous]) .nys-step__number,\n :host([isCompactExpanded][previous]) .nys-step__line,\n :host([isCompactExpanded][current]) .nys-step__number,\n :host([isCompactExpanded][current]) .nys-step__line {\n background: var(--nys-color-theme-stronger, #081b2b);\n color: var(--nys-color-text-reverse, #fff);\n border-color: var(--nys-color-theme-stronger, #081b2b);\n }\n\n :host([isCompactExpanded][selected]) .nys-step__number {\n background: var(--nys-color-theme, #154973);\n color: var(--nys-color-text-reverse, #fff);\n border-color: var(--nys-color-theme, #154973);\n outline: 4px solid var(--nys-color-theme-weak, #cddde9);\n }\n\n :host([isCompactExpanded]) .nys-step__contentwrapper {\n pointer-events: all;\n }\n }\n`;\n","import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport styles from \"./nys-stepper.styles\";\n\nexport class NysStep extends LitElement {\n @property({ type: Boolean, reflect: true }) selected = false;\n @property({ type: Boolean, reflect: true }) current = false;\n @property({ type: String }) label = \"\";\n @property({ type: String }) href = \"\";\n @property({ type: Boolean }) isCompactExpanded = false;\n @property({ type: Function }) onClick?: (e: Event) => void;\n @property({ type: Number }) stepNumber = 0;\n\n static styles = styles;\n\n private _handleActivate(e: Event) {\n // Run user-supplied onClick first (if present)\n if (typeof this.onClick === \"function\") {\n this.onClick(e);\n }\n\n // Dispatch event as cancelable so user can prevent navigation\n const event = new CustomEvent(\"nys-step-click\", {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail: { href: this.href, label: this.label },\n });\n\n if ((this.hasAttribute(\"previous\") || this.current) && !this.selected) {\n this.dispatchEvent(event);\n\n // Only navigate if event was not canceled\n if (!event.defaultPrevented && this.href) {\n window.location.href = this.href;\n }\n }\n }\n\n private _handleKeydown(e: KeyboardEvent) {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n this._handleActivate(e);\n }\n }\n\n render() {\n return html`\n <div class=\"nys-step\">\n <div class=\"nys-step__linewrapper\">\n <div class=\"nys-step__line\"></div>\n </div>\n <div\n class=\"nys-step__contentwrapper\"\n @click=${this._handleActivate}\n @keydown=${this._handleKeydown}\n role=\"button\"\n aria-label=\"${this.label} Step\"\n ?disabled=${!(\n this.selected ||\n this.current ||\n this.hasAttribute(\"previous\")\n )}\n >\n <div class=\"nys-step__number\" tabindex=\"-1\" aria-hidden=\"true\">\n ${this.stepNumber}\n </div>\n <div class=\"nys-step__content\" tabindex=\"-1\" aria-hidden=\"true\">\n <div\n class=\"nys-step__label\"\n tabindex=${!(\n this.selected ||\n this.current ||\n this.hasAttribute(\"previous\")\n )\n ? \"-1\"\n : \"0\"}\n aria-hidden=\"true\"\n >\n ${this.label}\n </div>\n </div>\n </div>\n </div>\n `;\n }\n}\n\nif (!customElements.get(\"nys-step\")) {\n customElements.define(\"nys-step\", NysStep);\n}\n","import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport styles from \"./nys-stepper.styles\";\nimport \"./nys-step\";\n\nexport class NysStepper extends LitElement {\n @property({ type: String }) id = \"\";\n @property({ type: String, reflect: true }) name = \"\";\n @property({ type: String }) label = \"\";\n @property({ type: String }) counterText = \"initial\";\n @property({ type: Boolean, reflect: true })\n isCompactExpanded = false;\n\n static styles = styles;\n private _stepsNumbered = false;\n\n constructor() {\n super();\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener(\"nys-step-click\", this._onStepClick);\n // Defer step validation to next tick to ensure children are upgraded\n requestAnimationFrame(() => this._validateSteps());\n }\n\n disconnectedCallback() {\n this.removeEventListener(\"nys-step-click\", this._onStepClick);\n super.disconnectedCallback();\n }\n\n private _validateSteps() {\n Array.from(this.children).forEach((child) => {\n const isStep =\n child instanceof HTMLElement &&\n child.tagName.toLowerCase() === \"nys-step\";\n const isSlotActionsContainer =\n child instanceof HTMLElement &&\n child.hasAttribute(\"slot\") &&\n child.getAttribute(\"slot\") === \"actions\";\n\n if (!isStep && !isSlotActionsContainer) {\n console.warn(\n \"Only <nys-step> elements or the <div slot='actions'> container are allowed as direct children of <nys-stepper>. Removing:\",\n child,\n );\n child.remove();\n }\n });\n }\n\n private _validateButtonSlot(event: Event) {\n const slot = event.target as HTMLSlotElement;\n const assignedElements = slot.assignedElements();\n\n // Ensure exactly one direct node in the slot, and it must be a div\n if (\n assignedElements.length !== 1 ||\n assignedElements[0].tagName.toLowerCase() !== \"div\"\n ) {\n console.warn(\n \"The 'actions' slot must have exactly one <div> as a direct child.\",\n );\n return;\n }\n\n const div = assignedElements[0] as HTMLElement;\n\n // Iterate through all buttons and validate\n Array.from(div.children).forEach((button) => {\n const isNysButton =\n button instanceof HTMLElement &&\n button.tagName.toLowerCase() === \"nys-button\";\n\n if (!isNysButton) {\n console.warn(\n \"The <div> inside 'actions' slot only accepts <nys-button> elements. Removing invalid node:\",\n button,\n );\n button.remove();\n } else {\n // Ensure nys-button has correct styles\n button.setAttribute(\"size\", \"sm\");\n if (button.hasAttribute(\"fullWidth\")) {\n button.style.flex = \"1 1 0\";\n }\n }\n });\n }\n\n private _onStepClick = async (event: Event) => {\n const clickedStep = event\n .composedPath()\n .find(\n (el) =>\n el instanceof HTMLElement && el.tagName.toLowerCase() === \"nys-step\",\n ) as HTMLElement | undefined;\n\n if (!clickedStep) return;\n\n const steps = Array.from(this.querySelectorAll(\"nys-step\"));\n const currentIndex = steps.findIndex((step) =>\n step.hasAttribute(\"current\"),\n );\n const clickedIndex = steps.indexOf(clickedStep);\n\n // Can't select past current\n if (currentIndex !== -1 && clickedIndex > currentIndex) return;\n\n // Can't select already selected\n if (clickedStep.hasAttribute(\"selected\")) return;\n\n // Remove selected from previous and move to new selected\n steps.forEach((step) => step.removeAttribute(\"selected\"));\n clickedStep.setAttribute(\"selected\", \"\");\n\n // Update counter immediately\n this._updateCounter();\n\n // Close expanded if it was open\n this.isCompactExpanded = false;\n };\n\n private _updateCounter() {\n if (this.isCompactExpanded) {\n this.counterText = \"Back to Form\";\n this.style.height = \"-webkit-fit-content\";\n this.style.height = \"-moz-fit-content\";\n this.style.height = \"fit-content\";\n return;\n } else {\n this.style.height = \"auto\";\n }\n\n const steps = this.querySelectorAll<HTMLElement>(\"nys-step\");\n const selectedIndex = Array.from(steps).findIndex((step) =>\n step.hasAttribute(\"selected\"),\n );\n const totalSteps = steps.length;\n\n this.counterText =\n selectedIndex >= 0\n ? `Step ${selectedIndex + 1} of ${totalSteps}`\n : `Step 1 of ${totalSteps}`;\n }\n\n updated() {\n const steps = this.querySelectorAll<any>(\"nys-step\");\n\n if (!this._stepsNumbered) {\n steps.forEach((step, index) => {\n step.stepNumber = index + 1;\n });\n this._stepsNumbered = true;\n }\n\n let foundCurrent = false;\n let selectedAssigned = false;\n let currentAssigned = false;\n\n steps.forEach((step, i) => {\n // Check if multiple \"current\" exist, respect the first instance\n if (step.hasAttribute(\"current\")) {\n if (!currentAssigned) {\n currentAssigned = true;\n } else {\n step.removeAttribute(\"current\");\n }\n }\n\n // Set first\n if (i === 0) {\n step.setAttribute(\"first\", \"\");\n } else {\n step.removeAttribute(\"first\");\n }\n\n // Set previous\n if (step.hasAttribute(\"current\")) {\n foundCurrent = true;\n step.removeAttribute(\"previous\");\n } else if (!foundCurrent) {\n step.setAttribute(\"previous\", \"\");\n } else {\n step.removeAttribute(\"previous\");\n }\n\n // Handle selected, respect first instance\n if (step.hasAttribute(\"selected\")) {\n if (foundCurrent || selectedAssigned) {\n step.removeAttribute(\"selected\");\n } else {\n selectedAssigned = true;\n }\n }\n\n // Handle compact expanded\n if (this.hasAttribute(\"isCompactExpanded\")) {\n step.setAttribute(\"isCompactExpanded\", \"\");\n } else {\n step.removeAttribute(\"isCompactExpanded\");\n }\n });\n\n // Selected fallback\n if (!selectedAssigned) {\n if (currentAssigned) {\n steps.forEach((step) => {\n if (step.hasAttribute(\"current\") && !selectedAssigned) {\n step.setAttribute(\"selected\", \"\");\n selectedAssigned = true;\n }\n });\n } else if (steps.length > 0) {\n // If no current or selected, mark first as both current and selected\n steps[0].setAttribute(\"current\", \"\");\n steps[0].setAttribute(\"selected\", \"\");\n }\n }\n\n // Always update counter\n this._updateCounter();\n }\n\n private _toggleCompact() {\n this.isCompactExpanded = !this.isCompactExpanded;\n }\n\n private _handleCounterKeydown(event: KeyboardEvent) {\n if (event.key === \" \" || event.key === \"Enter\") {\n event.preventDefault();\n this._toggleCompact();\n }\n }\n\n render() {\n return html`\n <div class=\"nys-stepper\" id=${this.id} name=${this.name}>\n <div class=\"nys-stepper__header\">\n <slot name=\"actions\" @slotchange=${this._validateButtonSlot}></slot>\n <div class=\"nys-stepper__headertext\">\n <div class=\"nys-stepper__label\">${this.label}</div>\n <div\n class=\"nys-stepper__counter\"\n @click=${this._toggleCompact}\n @keydown=${this._handleCounterKeydown}\n role=\"button\"\n tabindex=\"0\"\n aria-label=${this.isCompactExpanded\n ? \"Collapse step navigation to view the form\"\n : `Expand step navigation. You are on ${this.counterText}`}\n aria-expanded=${this.isCompactExpanded ? \"true\" : \"false\"}\n >\n ${this.counterText}\n </div>\n </div>\n </div>\n <slot class=\"nys-stepper__steps\"></slot>\n </div>\n `;\n }\n}\n\nif (!customElements.get(\"nys-stepper\")) {\n customElements.define(\"nys-stepper\", NysStepper);\n}\n"],"names":["t","e","s","o","n$2","r","n","S","c","i","h","a","l","p","d","u","f","b","y","styles","css","_NysStep","LitElement","event","html","NysStep","__decorateClass","property","_NysStepper","clickedStep","el","steps","currentIndex","step","clickedIndex","child","isStep","isSlotActionsContainer","assignedElements","div","button","selectedIndex","totalSteps","index","foundCurrent","selectedAssigned","currentAssigned","NysStepper"],"mappings":";;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,MAAMA,IAAE,YAAWC,IAAED,EAAE,eAAsBA,EAAE,aAAX,UAAqBA,EAAE,SAAS,iBAAe,wBAAuB,SAAS,aAAW,aAAY,cAAc,WAAUE,IAAE,OAAM,GAAGC,IAAE,oBAAI;AAAO,IAAAC,IAAC,MAAO;AAAA,EAAC,YAAYJ,GAAEC,GAAEE,GAAE;AAAC,QAAG,KAAK,eAAa,IAAGA,MAAID,EAAE,OAAM,MAAM,mEAAmE;AAAE,SAAK,UAAQF,GAAE,KAAK,IAAEC;AAAA,EAAC;AAAA,EAAC,IAAI,aAAY;AAAC,QAAID,IAAE,KAAK;AAAE,UAAME,IAAE,KAAK;AAAE,QAAGD,KAAYD,MAAT,QAAW;AAAC,YAAMC,IAAWC,MAAT,UAAgBA,EAAE,WAAN;AAAa,MAAAD,MAAID,IAAEG,EAAE,IAAID,CAAC,IAAYF,MAAT,YAAc,KAAK,IAAEA,IAAE,IAAI,iBAAe,YAAY,KAAK,OAAO,GAAEC,KAAGE,EAAE,IAAID,GAAEF,CAAC;AAAA,IAAE;AAAC,WAAOA;AAAA,EAAC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 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nysds/nys-stepper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "The Stepper component from the NYS Design System.",
|
|
5
5
|
"module": "dist/nys-stepper.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,17 +22,11 @@
|
|
|
22
22
|
"test:watch": "vite build && wtr --watch",
|
|
23
23
|
"lit-analyze": "lit-analyzer '**/*.ts'"
|
|
24
24
|
},
|
|
25
|
-
"peerDependencies": {
|
|
26
|
-
"lit": "^3.2.1",
|
|
27
|
-
"@nysds/nys-button": "^1.10.0"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
},
|
|
31
25
|
"devDependencies": {
|
|
32
26
|
"lit": "^3.2.1",
|
|
33
27
|
"typescript": "^5.7.2",
|
|
34
|
-
"vite": "^
|
|
35
|
-
"@nysds/nys-button": "^1.
|
|
28
|
+
"vite": "^7.1.2",
|
|
29
|
+
"@nysds/nys-button": "^1.11.0"
|
|
36
30
|
},
|
|
37
31
|
"keywords": [
|
|
38
32
|
"new-york-state",
|
|
@@ -46,4 +40,3 @@
|
|
|
46
40
|
"author": "New York State Design System Team",
|
|
47
41
|
"license": "MIT"
|
|
48
42
|
}
|
|
49
|
-
|