@nysds/nys-stepper 1.11.1 → 1.11.2

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.
@@ -15,7 +15,7 @@ export declare class NysStepper extends LitElement {
15
15
  private _validateButtonSlot;
16
16
  private _onStepClick;
17
17
  private _updateCounter;
18
- updated(): void;
18
+ willUpdate(): void;
19
19
  private _toggleCompact;
20
20
  private _handleCounterKeydown;
21
21
  render(): import("lit-html").TemplateResult<1>;
@@ -1,4 +1,4 @@
1
- import { css as U, LitElement as A, html as k } from "lit";
1
+ import { css as O, LitElement as A, html as k } from "lit";
2
2
  /*!
3
3
  * ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
4
4
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
@@ -15,7 +15,7 @@ import { css as U, LitElement as A, html as k } from "lit";
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
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 {
18
+ let U = class {
19
19
  constructor(e, t, s) {
20
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;
@@ -33,51 +33,51 @@ let z = class {
33
33
  return this.cssText;
34
34
  }
35
35
  };
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));
36
+ const T = (i) => new U(typeof i == "string" ? i : i + "", void 0, P), M = (i, e) => {
37
+ if (b) i.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
38
38
  else for (const t of e) {
39
39
  const s = document.createElement("style"), r = f.litNonce;
40
- r !== void 0 && s.setAttribute("nonce", r), s.textContent = t.cssText, o.appendChild(s);
40
+ r !== void 0 && s.setAttribute("nonce", r), s.textContent = t.cssText, i.appendChild(s);
41
41
  }
42
- }, $ = b ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((e) => {
42
+ }, $ = b ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((e) => {
43
43
  let t = "";
44
44
  for (const s of e.cssRules) t += s.cssText;
45
45
  return T(t);
46
- })(o) : o;
46
+ })(i) : i;
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
51
  */
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) {
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 = (i, e) => i, v = { toAttribute(i, e) {
53
53
  switch (e) {
54
54
  case Boolean:
55
- o = o ? D : null;
55
+ i = i ? D : null;
56
56
  break;
57
57
  case Object:
58
58
  case Array:
59
- o = o == null ? o : JSON.stringify(o);
59
+ i = i == null ? i : JSON.stringify(i);
60
60
  }
61
- return o;
62
- }, fromAttribute(o, e) {
63
- let t = o;
61
+ return i;
62
+ }, fromAttribute(i, e) {
63
+ let t = i;
64
64
  switch (e) {
65
65
  case Boolean:
66
- t = o !== null;
66
+ t = i !== null;
67
67
  break;
68
68
  case Number:
69
- t = o === null ? null : Number(o);
69
+ t = i === null ? null : Number(i);
70
70
  break;
71
71
  case Object:
72
72
  case Array:
73
73
  try {
74
- t = JSON.parse(o);
74
+ t = JSON.parse(i);
75
75
  } catch {
76
76
  t = null;
77
77
  }
78
78
  }
79
79
  return t;
80
- } }, g = (o, e) => !j(o, e), C = { attribute: !0, type: String, converter: v, reflect: !1, useDefault: !1, hasChanged: g };
80
+ } }, x = (i, e) => !j(i, e), C = { attribute: !0, type: String, converter: v, reflect: !1, useDefault: !1, hasChanged: x };
81
81
  Symbol.metadata ??= Symbol("metadata"), m.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
82
82
  class h extends HTMLElement {
83
83
  static addInitializer(e) {
@@ -95,12 +95,12 @@ class h extends HTMLElement {
95
95
  static getPropertyDescriptor(e, t, s) {
96
96
  const { get: r, set: n } = N(this.prototype, e) ?? { get() {
97
97
  return this[t];
98
- }, set(i) {
99
- this[t] = i;
98
+ }, set(o) {
99
+ this[t] = o;
100
100
  } };
101
- return { get: r, set(i) {
101
+ return { get: r, set(o) {
102
102
  const a = r?.call(this);
103
- n?.call(this, i), this.requestUpdate(e, a, s);
103
+ n?.call(this, o), this.requestUpdate(e, a, s);
104
104
  }, configurable: !0, enumerable: !0 };
105
105
  }
106
106
  static getPropertyOptions(e) {
@@ -183,22 +183,22 @@ class h extends HTMLElement {
183
183
  _$AK(e, t) {
184
184
  const s = this.constructor, r = s._$Eh.get(e);
185
185
  if (r !== void 0 && 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;
186
+ const n = s.getPropertyOptions(r), o = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : v;
187
187
  this._$Em = r;
188
- const a = i.fromAttribute(t, n.type);
188
+ const a = o.fromAttribute(t, n.type);
189
189
  this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
190
190
  }
191
191
  }
192
192
  requestUpdate(e, t, s) {
193
193
  if (e !== void 0) {
194
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;
195
+ if (s ??= r.getPropertyOptions(e), !((s.hasChanged ?? x)(n, t) || s.useDefault && s.reflect && n === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, s)))) return;
196
196
  this.C(e, t, s);
197
197
  }
198
198
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
199
199
  }
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));
200
+ C(e, t, { useDefault: s, reflect: r, wrapped: n }, o) {
201
+ s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, o ?? t ?? this[e]), n !== !0 || o !== 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));
202
202
  }
203
203
  async _$EP() {
204
204
  this.isUpdatePending = !0;
@@ -222,8 +222,8 @@ class h extends HTMLElement {
222
222
  }
223
223
  const s = this.constructor.elementProperties;
224
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);
225
+ const { wrapped: o } = n, a = this[r];
226
+ o !== !0 || this._$AL.has(r) || a === void 0 || this.C(r, void 0, n, a);
227
227
  }
228
228
  }
229
229
  let e = !1;
@@ -266,34 +266,34 @@ h.elementStyles = [], h.shadowRootOptions = { mode: "open" }, h[u("elementProper
266
266
  * Copyright 2017 Google LLC
267
267
  * SPDX-License-Identifier: BSD-3-Clause
268
268
  */
269
- const I = { attribute: !0, type: String, converter: v, reflect: !1, hasChanged: g }, K = (o = I, e, t) => {
269
+ const I = { attribute: !0, type: String, converter: v, reflect: !1, hasChanged: x }, K = (i = I, e, t) => {
270
270
  const { kind: s, metadata: r } = t;
271
271
  let n = globalThis.litPropertyMetadata.get(r);
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") {
273
- const { name: i } = t;
272
+ if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), n.set(t.name, i), s === "accessor") {
273
+ const { name: o } = t;
274
274
  return { set(a) {
275
275
  const _ = e.get.call(this);
276
- e.set.call(this, a), this.requestUpdate(i, _, o);
276
+ e.set.call(this, a), this.requestUpdate(o, _, i);
277
277
  }, init(a) {
278
- return a !== void 0 && this.C(i, void 0, o, a), a;
278
+ return a !== void 0 && this.C(o, void 0, i, a), a;
279
279
  } };
280
280
  }
281
281
  if (s === "setter") {
282
- const { name: i } = t;
282
+ const { name: o } = t;
283
283
  return function(a) {
284
- const _ = this[i];
285
- e.call(this, a), this.requestUpdate(i, _, o);
284
+ const _ = this[o];
285
+ e.call(this, a), this.requestUpdate(o, _, i);
286
286
  };
287
287
  }
288
288
  throw Error("Unsupported decorator location: " + s);
289
289
  };
290
- function l(o) {
291
- return (e, t) => typeof t == "object" ? K(o, e, t) : ((s, r, n) => {
292
- const i = r.hasOwnProperty(n);
293
- return r.constructor.createProperty(n, s), i ? Object.getOwnPropertyDescriptor(r, n) : void 0;
294
- })(o, e, t);
290
+ function l(i) {
291
+ return (e, t) => typeof t == "object" ? K(i, e, t) : ((s, r, n) => {
292
+ const o = r.hasOwnProperty(n);
293
+ return r.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
294
+ })(i, e, t);
295
295
  }
296
- const O = U`
296
+ const z = O`
297
297
  :host {
298
298
  /* Anything that can be overridden should be defined here */
299
299
 
@@ -447,7 +447,11 @@ const O = U`
447
447
  rgba(255, 255, 255, 0.9)
448
448
  );
449
449
  width: var(--nys-size-300, 24px);
450
+ min-width: var(--nys-size-300, 24px);
451
+ max-width: var(--nys-size-300, 24px);
450
452
  height: var(--nys-size-300, 24px);
453
+ min-height: var(--nys-size-300, 24px);
454
+ max-height: var(--nys-size-300, 24px);
451
455
  display: flex;
452
456
  align-items: center;
453
457
  justify-content: center;
@@ -563,7 +567,11 @@ const O = U`
563
567
  border: none;
564
568
  background-color: var(--nys-color-neutral-200, #bec0c1);
565
569
  height: var(--nys-size-100, 8px);
570
+ min-height: var(--nys-size-100, 8px);
571
+ max-height: var(--nys-size-100, 8px);
566
572
  width: 100%;
573
+ min-width: 100%;
574
+ max-width: 100%;
567
575
  color: transparent;
568
576
  }
569
577
 
@@ -622,7 +630,11 @@ const O = U`
622
630
  rgba(255, 255, 255, 0.9)
623
631
  );
624
632
  width: var(--nys-space-300, 24px);
633
+ min-width: var(--nys-space-300, 24px);
634
+ max-width: var(--nys-space-300, 24px);
625
635
  height: var(--nys-space-300, 24px);
636
+ min-height: var(--nys-space-300, 24px);
637
+ max-height: var(--nys-space-300, 24px);
626
638
  color: var(--nys-color-text, #1b1b1b);
627
639
  }
628
640
 
@@ -647,12 +659,12 @@ const O = U`
647
659
  }
648
660
  }
649
661
  `;
650
- var W = Object.defineProperty, d = (o, e, t, s) => {
651
- for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
652
- (i = o[n]) && (r = i(e, t, r) || r);
662
+ var W = Object.defineProperty, d = (i, e, t, s) => {
663
+ for (var r = void 0, n = i.length - 1, o; n >= 0; n--)
664
+ (o = i[n]) && (r = o(e, t, r) || r);
653
665
  return r && W(e, t, r), r;
654
666
  };
655
- const x = class x extends A {
667
+ const g = class g extends A {
656
668
  constructor() {
657
669
  super(...arguments), this.selected = !1, this.current = !1, this.label = "", this.href = "", this.isCompactExpanded = !1, this.stepNumber = 0;
658
670
  }
@@ -700,8 +712,8 @@ const x = class x extends A {
700
712
  `;
701
713
  }
702
714
  };
703
- x.styles = O;
704
- let p = x;
715
+ g.styles = z;
716
+ let p = g;
705
717
  d([
706
718
  l({ type: Boolean, reflect: !0 })
707
719
  ], p.prototype, "selected");
@@ -724,22 +736,22 @@ d([
724
736
  l({ type: Number })
725
737
  ], p.prototype, "stepNumber");
726
738
  customElements.get("nys-step") || customElements.define("nys-step", p);
727
- var F = Object.defineProperty, y = (o, e, t, s) => {
728
- for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
729
- (i = o[n]) && (r = i(e, t, r) || r);
739
+ var F = Object.defineProperty, y = (i, e, t, s) => {
740
+ for (var r = void 0, n = i.length - 1, o; n >= 0; n--)
741
+ (o = i[n]) && (r = o(e, t, r) || r);
730
742
  return r && F(e, t, r), r;
731
743
  };
732
744
  const w = class w extends A {
733
745
  constructor() {
734
746
  super(), this.id = "", this.name = "", this.label = "", this.counterText = "initial", this.isCompactExpanded = !1, this._stepsNumbered = !1, this._onStepClick = async (e) => {
735
747
  const t = e.composedPath().find(
736
- (i) => i instanceof HTMLElement && i.tagName.toLowerCase() === "nys-step"
748
+ (o) => o instanceof HTMLElement && o.tagName.toLowerCase() === "nys-step"
737
749
  );
738
750
  if (!t) return;
739
751
  const s = Array.from(this.querySelectorAll("nys-step")), r = s.findIndex(
740
- (i) => i.hasAttribute("current")
752
+ (o) => o.hasAttribute("current")
741
753
  ), n = s.indexOf(t);
742
- r !== -1 && n > r || t.hasAttribute("selected") || (s.forEach((i) => i.removeAttribute("selected")), t.setAttribute("selected", ""), this._updateCounter(), this.isCompactExpanded = !1);
754
+ r !== -1 && n > r || t.hasAttribute("selected") || (s.forEach((o) => o.removeAttribute("selected")), t.setAttribute("selected", ""), this._updateCounter(), this.isCompactExpanded = !1);
743
755
  };
744
756
  }
745
757
  connectedCallback() {
@@ -774,24 +786,26 @@ const w = class w extends A {
774
786
  });
775
787
  }
776
788
  _updateCounter() {
777
- if (this.isCompactExpanded) {
778
- this.counterText = "Back to Form", this.style.height = "-webkit-fit-content", this.style.height = "-moz-fit-content", this.style.height = "fit-content";
779
- return;
780
- } else
789
+ let e;
790
+ if (this.isCompactExpanded)
791
+ e = "Back to Form", this.style.height = "-webkit-fit-content", this.style.height = "-moz-fit-content", this.style.height = "fit-content";
792
+ else {
781
793
  this.style.height = "auto";
782
- const e = this.querySelectorAll("nys-step"), t = Array.from(e).findIndex(
783
- (r) => r.hasAttribute("selected")
784
- ), s = e.length;
785
- this.counterText = t >= 0 ? `Step ${t + 1} of ${s}` : `Step 1 of ${s}`;
794
+ const t = this.querySelectorAll("nys-step"), s = Array.from(t).findIndex(
795
+ (n) => n.hasAttribute("selected")
796
+ ), r = t.length;
797
+ e = s >= 0 ? `Step ${s + 1} of ${r}` : `Step 1 of ${r}`;
798
+ }
799
+ e !== this.counterText && (this.counterText = e);
786
800
  }
787
- updated() {
801
+ willUpdate() {
788
802
  const e = this.querySelectorAll("nys-step");
789
- this._stepsNumbered || (e.forEach((n, i) => {
790
- n.stepNumber = i + 1;
803
+ this._stepsNumbered || (e.forEach((n, o) => {
804
+ n.stepNumber = o + 1;
791
805
  }), this._stepsNumbered = !0);
792
806
  let t = !1, s = !1, r = !1;
793
- e.forEach((n, i) => {
794
- n.hasAttribute("current") && (r ? n.removeAttribute("current") : r = !0), i === 0 ? n.setAttribute("first", "") : n.removeAttribute("first"), n.hasAttribute("current") ? (t = !0, n.removeAttribute("previous")) : t ? n.removeAttribute("previous") : n.setAttribute("previous", ""), n.hasAttribute("selected") && (t || s ? n.removeAttribute("selected") : s = !0), this.hasAttribute("isCompactExpanded") ? n.setAttribute("isCompactExpanded", "") : n.removeAttribute("isCompactExpanded");
807
+ e.forEach((n, o) => {
808
+ n.hasAttribute("current") && (r ? n.removeAttribute("current") : r = !0), o === 0 ? n.setAttribute("first", "") : n.removeAttribute("first"), n.hasAttribute("current") ? (t = !0, n.removeAttribute("previous")) : t ? n.removeAttribute("previous") : n.setAttribute("previous", ""), n.hasAttribute("selected") && (t || s ? n.removeAttribute("selected") : s = !0), this.isCompactExpanded ? n.setAttribute("isCompactExpanded", "") : n.removeAttribute("isCompactExpanded");
795
809
  }), s || (r ? e.forEach((n) => {
796
810
  n.hasAttribute("current") && !s && (n.setAttribute("selected", ""), s = !0);
797
811
  }) : e.length > 0 && (e[0].setAttribute("current", ""), e[0].setAttribute("selected", ""))), this._updateCounter();
@@ -827,7 +841,7 @@ const w = class w extends A {
827
841
  `;
828
842
  }
829
843
  };
830
- w.styles = O;
844
+ w.styles = z;
831
845
  let c = w;
832
846
  y([
833
847
  l({ type: String })
@@ -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,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({ attribute: false }) 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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ACA,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 min-width: var(--nys-size-300, 24px);\n max-width: var(--nys-size-300, 24px);\n height: var(--nys-size-300, 24px);\n min-height: var(--nys-size-300, 24px);\n max-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 min-height: var(--nys-size-100, 8px);\n max-height: var(--nys-size-100, 8px);\n width: 100%;\n min-width: 100%;\n max-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 min-width: var(--nys-space-300, 24px);\n max-width: var(--nys-space-300, 24px);\n height: var(--nys-space-300, 24px);\n min-height: var(--nys-space-300, 24px);\n max-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({ attribute: false }) 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 let newCounterText: string;\n\n if (this.isCompactExpanded) {\n newCounterText = \"Back to Form\";\n this.style.height = \"-webkit-fit-content\";\n this.style.height = \"-moz-fit-content\";\n this.style.height = \"fit-content\";\n } else {\n this.style.height = \"auto\";\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 newCounterText =\n selectedIndex >= 0\n ? `Step ${selectedIndex + 1} of ${totalSteps}`\n : `Step 1 of ${totalSteps}`;\n }\n\n if (newCounterText !== this.counterText) {\n this.counterText = newCounterText;\n }\n }\n\n willUpdate() {\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.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","newCounterText","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,IAAE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,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAJfqB,EAIiB,WAAA,aAAA;AAE5BtB,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAL/BqB,EAMX,WAAA,mBAAA;AAkQG,eAAe,IAAI,aAAa,KACnC,eAAe,OAAO,eAAeA,CAAU;","x_google_ignoreList":[0,1,2]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nysds/nys-stepper",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
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",
@@ -26,7 +26,7 @@
26
26
  "lit": "^3.2.1",
27
27
  "typescript": "^5.7.2",
28
28
  "vite": "^7.1.2",
29
- "@nysds/nys-button": "^1.11.1"
29
+ "@nysds/nys-button": "^1.11.2"
30
30
  },
31
31
  "keywords": [
32
32
  "new-york-state",