@m3e/stepper 1.0.6 → 1.1.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/index.min.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2025 matraic
4
4
  * See LICENSE file in the project root for full license text.
5
5
  */
6
- import{LitElement as t,html as e,css as s,nothing as i}from"lit";import{Role as o,Selected as r,KeyboardClick as n,Focusable as l,HtmlFor as a,Disabled as c,AttachInternals as d,DesignToken as h}from"@m3e/core";import{addAriaReferencedId as p,removeAriaReferencedId as m,selectionManager as u,SelectionManager as v}from"@m3e/core/a11y";import{M3eBreakpointObserver as f,Breakpoint as b}from"@m3e/core/layout";function $(t,e,s,i){var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n}function y(t,e,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(t):i?i.value:e.get(t)}function g(t,e,s,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,s):o?o.value=s:e.set(t,s),s}"function"==typeof SuppressedError&&SuppressedError;
6
+ import{LitElement as t,html as e,css as s,nothing as i}from"lit";import{Role as o,Selected as r,KeyboardClick as n,Focusable as l,HtmlFor as a,Disabled as c,AttachInternals as d,DesignToken as h}from"@m3e/core";import{addAriaReferencedId as p,removeAriaReferencedId as m,selectionManager as u,SelectionManager as v}from"@m3e/core/a11y";import{M3eBreakpointObserver as f,Breakpoint as b}from"@m3e/core/layout";function g(t,e,s,i){var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n}function y(t,e,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(t):i?i.value:e.get(t)}function $(t,e,s,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,s):o?o.value=s:e.set(t,s),s}"function"==typeof SuppressedError&&SuppressedError;
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
@@ -14,7 +14,7 @@ const _=t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)})
14
14
  * @license
15
15
  * Copyright 2019 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */let S=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==E)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(w&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=x.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&x.set(e,t))}return t}toString(){return this.cssText}};const P=w?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new S("string"==typeof t?t:t+"",void 0,E))(e)})(t):t,{is:C,defineProperty:k,getOwnPropertyDescriptor:T,getOwnPropertyNames:O,getOwnPropertySymbols:U,getPrototypeOf:M}=Object,H=globalThis,N=H.trustedTypes,z=N?N.emptyScript:"",R=H.reactiveElementPolyfillSupport,I=(t,e)=>t,j={toAttribute(t,e){switch(e){case Boolean:t=t?z:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},L=(t,e)=>!C(t,e),q={attribute:!0,type:String,converter:j,reflect:!1,useDefault:!1,hasChanged:L};
17
+ */let S=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==E)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(w&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=x.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&x.set(e,t))}return t}toString(){return this.cssText}};const P=w?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new S("string"==typeof t?t:t+"",void 0,E))(e)})(t):t,{is:C,defineProperty:k,getOwnPropertyDescriptor:T,getOwnPropertyNames:O,getOwnPropertySymbols:U,getPrototypeOf:M}=Object,H=globalThis,z=H.trustedTypes,N=z?z.emptyScript:"",R=H.reactiveElementPolyfillSupport,I=(t,e)=>t,j={toAttribute(t,e){switch(e){case Boolean:t=t?N:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},L=(t,e)=>!C(t,e),q={attribute:!0,type:String,converter:j,reflect:!1,useDefault:!1,hasChanged:L};
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -41,295 +41,16 @@ const B={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:L},D=(t=B,e,
41
41
  * Copyright 2017 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
43
  */
44
- function K(t,e){return(e,s,i)=>((t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s))(e,s,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let F=class extends(o(t,"tabpanel")){constructor(){super(...arguments),this.active=!1}connectedCallback(){this.slot="panel",super.connectedCallback()}render(){return e`<m3e-collapsible ?open=${this.active}>
45
- <div class="content">
46
- <div><slot></slot></div>
47
- <slot name="actions"></slot>
48
- </div>
49
- </m3e-collapsible>`}};var J,X,G,Q,Y;F.styles=s`
50
- :host {
51
- display: block;
52
- }
53
- .content {
54
- display: flex;
55
- flex-direction: column;
56
- padding: var(--m3e-step-panel-padding, 1rem 1.5rem 1.5rem 1.5rem);
57
- row-gap: var(--m3e-step-panel-spacing, 0.5rem);
58
- }
59
- ::slotted([slot="actions"]) {
60
- flex: none;
61
- display: flex;
62
- align-items: center;
63
- min-height: var(--m3e-step-panel-actions-height, 3rem);
64
- }
65
- ::slotted([slot="actions"][end]) {
66
- justify-content: flex-end;
67
- }
68
- `,$([V()],F.prototype,"active",void 0),F=$([_("m3e-step-panel")],F);let tt=Y=class extends(r(n(l(a(c(d(o(t,"tab")))))))){constructor(){super(...arguments),J.add(this),X.set(this,t=>y(this,J,"m",Q).call(this,t)),this.optional=!1,this.editable=!1,this.completed=!1,this.invalid=!1,this.index=-1}get panel(){return this.control instanceof F?this.control:null}get stepper(){return this.closest("m3e-stepper")}reset(){this.invalid=!1,this.completed=!1,this.panel?.querySelector("form")?.reset()}attach(t){t instanceof F&&(t.id=t.id||"m3e-step-panel-"+Y.__nextId++,p(this,"aria-controls",t.id)),super.attach(t)}detach(){this.control?.id&&m(this,"aria-controls",this.control.id),super.detach()}connectedCallback(){this.slot="step",super.connectedCallback(),this.addEventListener("click",y(this,X,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",y(this,X,"f"))}update(t){super.update(t),t.has("selected")&&this.closest("m3e-stepper")?.[u].notifySelectionChange(this)}firstUpdated(t){super.firstUpdated(t),[this._focusRing,this._stateLayer,this._ripple].forEach(t=>t?.attach(this))}render(){const t=e`<slot name="hint">${this.optional?e`<span class="hint">(Optional)</span>`:i}</slot>`,s=e`<slot name="error">${t}</slot>`;return e` <m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer>
69
- <m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring>
70
- <m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple>
71
- <div class="wrapper">
72
- <div class="icon" aria-hidden="true">${y(this,J,"m",G).call(this)}</div>
73
- <div class="label">
74
- <slot></slot>
75
- ${this.invalid?s:t}
76
- </div>
77
- </div>`}};var et,st,it,ot;X=new WeakMap,J=new WeakSet,G=function(){if(!this.selected){if(this.invalid)return e`<slot name="error-icon">
78
- <svg viewBox="0 -960 960 960" fill="currentColor">
79
- <path
80
- d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"
81
- />
82
- </svg>
83
- </slot>`;if(this.completed)return this.editable?e`<slot name="edit-icon">
84
- <svg viewBox="0 -960 960 960" fill="currentColor">
85
- <path
86
- d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"
87
- />
88
- </svg>
89
- </slot>`:e`<slot name="done-icon">
90
- <svg viewBox="0 -960 960 960" fill="currentColor">
91
- <path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" />
92
- </svg>
93
- </slot>`}return e`<slot name="icon">${this.index+1}</slot>`},Q=function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation()),t.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))&&this.closest("m3e-stepper")?.moveTo(this.index)?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!1)},tt.styles=s`
94
- :host {
95
- display: block;
96
- position: relative;
97
- outline: none;
98
- min-width: 0px;
99
- border-radius: var(--m3e-step-shape, ${h.shape.corner.medium});
100
- padding: var(--m3e-step-padding, 1.5rem);
101
- user-select: none;
102
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
103
- }
104
- :host(:not([aria-disabled="true"])) {
105
- cursor: pointer;
106
- }
107
- .icon {
108
- flex: none;
109
- display: flex;
110
- align-items: center;
111
- justify-content: center;
112
- border-radius: var(--m3e-step-icon-shape, 50%);
113
- width: var(--m3e-step-icon-size, 1.5rem);
114
- height: var(--m3e-step-icon-size, 1.5rem);
115
- }
116
- .icon svg,
117
- ::slotted([slot="icon"]),
118
- ::slotted([slot="edit-icon"]),
119
- ::slotted([slot="done-icon"]),
120
- ::slotted([slot="error-icon"]) {
121
- width: 1em;
122
- font-size: var(--m3e-step-icon-size, 1.5rem) !important;
123
- }
124
- :host(:not([aria-disabled="true"])[selected]) .icon {
125
- background-color: var(--m3e-step-selected-icon-container-color, ${h.color.primary});
126
- color: var(--m3e-step-selected-icon-color, ${h.color.onPrimary});
127
- }
128
- :host(:not([aria-disabled="true"])[completed]:not([invalid])) .icon {
129
- background-color: var(--m3e-step-completed-icon-container-color, ${h.color.primary});
130
- color: var(--m3e-step-completed-icon-color, ${h.color.onPrimary});
131
- }
132
- :host(:not([aria-disabled="true"]):not([selected]):not([completed]):not([invalid])) .icon {
133
- background-color: var(--m3e-step-unselected-icon-container-color, ${h.color.inverseSurface});
134
- color: var(--m3e-step-unselected-icon-color, ${h.color.inverseOnSurface});
135
- }
136
- :host(:not([aria-disabled="true"]):not([selected])[invalid]) .icon {
137
- color: var(--m3e-step-icon-error-color, ${h.color.error});
138
- }
139
- :host([aria-disabled="true"]) .icon {
140
- background-color: color-mix(
141
- in srgb,
142
- var(--m3e-step-disabled-icon-container-color, ${h.color.onSurface}) 10%,
143
- transparent
144
- );
145
- color: color-mix(in srgb, var(--m3e-step-disabled-icon-color, ${h.color.onSurface}) 38%, transparent);
146
- }
147
-
148
- :host(:not([aria-disabled="true"])) .label {
149
- color: var(--m3e-step-label-color, ${h.color.onSurface});
150
- }
151
- :host(:not([aria-disabled="true"]):not([selected])[invalid]) .label {
152
- color: var(--m3e-step-label-error-color, ${h.color.error});
153
- }
154
- :host([aria-disabled="true"]) .label {
155
- color: color-mix(in srgb, var(--m3e-step-disabled-label-color, ${h.color.onSurface}) 38%, transparent);
156
- }
157
- .wrapper {
158
- display: flex;
159
- align-items: center;
160
- height: 100%;
161
- border-radius: inherit;
162
- font-size: var(--m3e-step-font-size, ${h.typescale.standard.title.small.fontSize});
163
- font-weight: var(--m3e-step-font-weight, ${h.typescale.standard.title.small.fontWeight});
164
- line-height: var(--m3e-step-line-height, ${h.typescale.standard.title.small.lineHeight});
165
- letter-spacing: var(--m3e-step-tracking, ${h.typescale.standard.title.small.tracking});
166
- flex-direction: var(--_step-direction, row);
167
- gap: var(--m3e-step-icon-label-space, 0.5rem);
168
- justify-content: flex-start;
169
- }
170
- .label {
171
- display: flex;
172
- flex-direction: column;
173
- align-items: var(--_step-label-align-items, flex-start);
174
- }
175
- ::slotted([slot="hint"]),
176
- .hint,
177
- ::slotted([slot="error"]) {
178
- font-size: var(--m3e-step-hint-font-size, ${h.typescale.standard.body.small.fontSize});
179
- font-weight: var(--m3e-step-hint-font-weight, ${h.typescale.standard.body.small.fontWeight});
180
- line-height: var(--m3e-step-hint-line-height, ${h.typescale.standard.body.small.lineHeight});
181
- letter-spacing: var(--m3e-step-hint-tracking, ${h.typescale.standard.body.small.tracking});
182
- }
183
- :host(:not([aria-disabled="true"]):not([invalid])) ::slotted([slot="hint"]),
184
- :host(:not([aria-disabled="true"]):not([invalid])) .hint {
185
- color: var(--m3e-step-hint-color, ${h.color.onSurfaceVariant});
186
- }
187
- :host([aria-disabled="true"]) ::slotted([slot="hint"]),
188
- :host([aria-disabled="true"]) .hint {
189
- color: color-mix(in srgb, var(--m3e-step-disabled-hint-color, ${h.color.onSurface}) 38%, transparent);
190
- }
191
- `,tt.__nextId=0,$([K(".focus-ring")],tt.prototype,"_focusRing",void 0),$([K(".state-layer")],tt.prototype,"_stateLayer",void 0),$([K(".ripple")],tt.prototype,"_ripple",void 0),$([Z({type:Boolean,reflect:!0})],tt.prototype,"optional",void 0),$([Z({type:Boolean,reflect:!0})],tt.prototype,"editable",void 0),$([Z({type:Boolean,reflect:!0})],tt.prototype,"completed",void 0),$([Z({type:Boolean,reflect:!0})],tt.prototype,"invalid",void 0),$([V()],tt.prototype,"index",void 0),tt=Y=$([_("m3e-step")],tt);class rt extends(d(t)){constructor(t){super(),et.add(this),st.set(this,t=>y(this,et,"m",ot).call(this,t)),it.set(this,void 0),g(this,it,t,"f")}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",y(this,st,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",y(this,st,"f"))}render(){return e`<slot></slot>`}}st=new WeakMap,it=new WeakMap,et=new WeakSet,ot=function(t){if(!t.defaultPrevented)switch(y(this,it,"f")){case"next":this.closest("m3e-stepper")?.moveNext();break;case"previous":this.closest("m3e-stepper")?.movePrevious();break;case"reset":this.closest("m3e-stepper")?.reset()}},rt.styles=s`
192
- :host {
193
- display: contents;
194
- }
195
- ::slotted(.material-icons) {
196
- font-size: inherit !important;
197
- }
198
- `
44
+ function K(t,e){return(e,s,i)=>((t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s))(e,s,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let F=class extends(o(t,"tabpanel")){constructor(){super(...arguments),this.active=!1}connectedCallback(){this.slot="panel",super.connectedCallback()}render(){return e`<m3e-collapsible ?open="${this.active}"><div class="content"><div><slot></slot></div><slot name="actions"></slot></div></m3e-collapsible>`}};var J,X,G,Q,Y;F.styles=s`:host { display: block; } .content { display: flex; flex-direction: column; padding: var(--m3e-step-panel-padding, 1rem 1.5rem 1.5rem 1.5rem); row-gap: var(--m3e-step-panel-spacing, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: var(--m3e-step-panel-actions-height, 3rem); } ::slotted([slot="actions"][end]) { justify-content: flex-end; }`,g([V()],F.prototype,"active",void 0),F=g([_("m3e-step-panel")],F);let tt=Y=class extends(r(n(l(a(c(d(o(t,"tab")))))))){constructor(){super(...arguments),J.add(this),X.set(this,t=>y(this,J,"m",Q).call(this,t)),this.optional=!1,this.editable=!1,this.completed=!1,this.invalid=!1,this.index=-1}get panel(){return this.control instanceof F?this.control:null}get stepper(){return this.closest("m3e-stepper")}reset(){this.invalid=!1,this.completed=!1,this.panel?.querySelector("form")?.reset()}attach(t){t instanceof F&&(t.id=t.id||"m3e-step-panel-"+Y.__nextId++,p(this,"aria-controls",t.id)),super.attach(t)}detach(){this.control?.id&&m(this,"aria-controls",this.control.id),super.detach()}connectedCallback(){this.slot="step",super.connectedCallback(),this.addEventListener("click",y(this,X,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",y(this,X,"f"))}update(t){super.update(t),t.has("selected")&&this.closest("m3e-stepper")?.[u].notifySelectionChange(this)}firstUpdated(t){super.firstUpdated(t),[this._focusRing,this._stateLayer,this._ripple].forEach(t=>t?.attach(this))}render(){const t=e`<slot name="hint">${this.optional?e`<span class="hint">(Optional)</span>`:i}</slot>`,s=e`<slot name="error">${t}</slot>`;return e`<m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="wrapper"><div class="icon" aria-hidden="true">${y(this,J,"m",G).call(this)}</div><div class="label"><slot></slot>${this.invalid?s:t}</div></div>`}};var et,st,it,ot;X=new WeakMap,J=new WeakSet,G=function(){if(!this.selected){if(this.invalid)return e`<slot name="error-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg></slot>`;if(this.completed)return this.editable?e`<slot name="edit-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg></slot>`:e`<slot name="done-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></slot>`}return e`<slot name="icon">${this.index+1}</slot>`},Q=function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation()),t.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))&&this.closest("m3e-stepper")?.moveTo(this.index)?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!1)},tt.styles=s`:host { display: block; position: relative; outline: none; min-width: 0px; border-radius: var(--m3e-step-shape, ${h.shape.corner.medium}); padding: var(--m3e-step-padding, 1.5rem); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .icon { flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--m3e-step-icon-shape, 50%); width: var(--m3e-step-icon-size, 1.5rem); height: var(--m3e-step-icon-size, 1.5rem); } .icon svg, ::slotted([slot="icon"]), ::slotted([slot="edit-icon"]), ::slotted([slot="done-icon"]), ::slotted([slot="error-icon"]) { width: 1em; font-size: var(--m3e-step-icon-size, 1.5rem) !important; } :host(:not([aria-disabled="true"])[selected]) .icon { background-color: var(--m3e-step-selected-icon-container-color, ${h.color.primary}); color: var(--m3e-step-selected-icon-color, ${h.color.onPrimary}); } :host(:not([aria-disabled="true"])[completed]:not([invalid])) .icon { background-color: var(--m3e-step-completed-icon-container-color, ${h.color.primary}); color: var(--m3e-step-completed-icon-color, ${h.color.onPrimary}); } :host(:not([aria-disabled="true"]):not([selected]):not([completed]):not([invalid])) .icon { background-color: var(--m3e-step-unselected-icon-container-color, ${h.color.inverseSurface}); color: var(--m3e-step-unselected-icon-color, ${h.color.inverseOnSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .icon { color: var(--m3e-step-icon-error-color, ${h.color.error}); } :host([aria-disabled="true"]) .icon { background-color: color-mix( in srgb, var(--m3e-step-disabled-icon-container-color, ${h.color.onSurface}) 10%, transparent ); color: color-mix(in srgb, var(--m3e-step-disabled-icon-color, ${h.color.onSurface}) 38%, transparent); } :host(:not([aria-disabled="true"])) .label { color: var(--m3e-step-label-color, ${h.color.onSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .label { color: var(--m3e-step-label-error-color, ${h.color.error}); } :host([aria-disabled="true"]) .label { color: color-mix(in srgb, var(--m3e-step-disabled-label-color, ${h.color.onSurface}) 38%, transparent); } .wrapper { display: flex; align-items: center; height: 100%; border-radius: inherit; font-size: var(--m3e-step-font-size, ${h.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-step-font-weight, ${h.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-step-line-height, ${h.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-step-tracking, ${h.typescale.standard.title.small.tracking}); flex-direction: var(--_step-direction, row); gap: var(--m3e-step-icon-label-space, 0.5rem); justify-content: flex-start; } .label { display: flex; flex-direction: column; align-items: var(--_step-label-align-items, flex-start); } ::slotted([slot="hint"]), .hint, ::slotted([slot="error"]) { font-size: var(--m3e-step-hint-font-size, ${h.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-step-hint-font-weight, ${h.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-step-hint-line-height, ${h.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-step-hint-tracking, ${h.typescale.standard.body.small.tracking}); } :host(:not([aria-disabled="true"]):not([invalid])) ::slotted([slot="hint"]), :host(:not([aria-disabled="true"]):not([invalid])) .hint { color: var(--m3e-step-hint-color, ${h.color.onSurfaceVariant}); } :host([aria-disabled="true"]) ::slotted([slot="hint"]), :host([aria-disabled="true"]) .hint { color: color-mix(in srgb, var(--m3e-step-disabled-hint-color, ${h.color.onSurface}) 38%, transparent); }`,tt.__nextId=0,g([K(".focus-ring")],tt.prototype,"_focusRing",void 0),g([K(".state-layer")],tt.prototype,"_stateLayer",void 0),g([K(".ripple")],tt.prototype,"_ripple",void 0),g([Z({type:Boolean,reflect:!0})],tt.prototype,"optional",void 0),g([Z({type:Boolean,reflect:!0})],tt.prototype,"editable",void 0),g([Z({type:Boolean,reflect:!0})],tt.prototype,"completed",void 0),g([Z({type:Boolean,reflect:!0})],tt.prototype,"invalid",void 0),g([V()],tt.prototype,"index",void 0),tt=Y=g([_("m3e-step")],tt);class rt extends(d(t)){constructor(t){super(),et.add(this),st.set(this,t=>y(this,et,"m",ot).call(this,t)),it.set(this,void 0),$(this,it,t,"f")}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",y(this,st,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",y(this,st,"f"))}render(){return e`<slot></slot>`}}st=new WeakMap,it=new WeakMap,et=new WeakSet,ot=function(t){if(!t.defaultPrevented)switch(y(this,it,"f")){case"next":this.closest("m3e-stepper")?.moveNext();break;case"previous":this.closest("m3e-stepper")?.movePrevious();break;case"reset":this.closest("m3e-stepper")?.reset()}},rt.styles=s`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`
199
45
  /**
200
46
  * @license
201
47
  * Copyright 2017 Google LLC
202
48
  * SPDX-License-Identifier: BSD-3-Clause
203
- */;const nt=globalThis,lt=nt.trustedTypes,at=lt?lt.createPolicy("lit-html",{createHTML:t=>t}):void 0,ct="$lit$",dt=`lit$${Math.random().toFixed(9).slice(2)}$`,ht="?"+dt,pt=`<${ht}>`,mt=document,ut=()=>mt.createComment(""),vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ft=Array.isArray,bt="[ \t\n\f\r]",$t=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yt=/-->/g,gt=/>/g,_t=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),At=/'/g,wt=/"/g,Et=/^(?:script|style|textarea|title)$/i,xt=Symbol.for("lit-noChange"),St=Symbol.for("lit-nothing"),Pt=new WeakMap,Ct=mt.createTreeWalker(mt,129);function kt(t,e){if(!ft(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==at?at.createHTML(e):e}const Tt=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=$t;for(let e=0;e<s;e++){const s=t[e];let l,a,c=-1,d=0;for(;d<s.length&&(n.lastIndex=d,a=n.exec(s),null!==a);)d=n.lastIndex,n===$t?"!--"===a[1]?n=yt:void 0!==a[1]?n=gt:void 0!==a[2]?(Et.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=_t):void 0!==a[3]&&(n=_t):n===_t?">"===a[0]?(n=o??$t,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?_t:'"'===a[3]?wt:At):n===wt||n===At?n=_t:n===yt||n===gt?n=$t:(n=_t,o=void 0);const h=n===_t&&t[e+1].startsWith("/>")?" ":"";r+=n===$t?s+pt:c>=0?(i.push(l),s.slice(0,c)+ct+s.slice(c)+dt+h):s+dt+(-2===c?e:h)}return[kt(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class Ot{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,c]=Tt(t,e);if(this.el=Ot.createElement(a,s),Ct.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Ct.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(ct)){const e=c[r++],s=i.getAttribute(t).split(dt),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?zt:"?"===n[1]?Rt:"@"===n[1]?It:Nt}),i.removeAttribute(t)}else t.startsWith(dt)&&(l.push({type:6,index:o}),i.removeAttribute(t));if(Et.test(i.tagName)){const t=i.textContent.split(dt),e=t.length-1;if(e>0){i.textContent=lt?lt.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],ut()),Ct.nextNode(),l.push({type:2,index:++o});i.append(t[e],ut())}}}else if(8===i.nodeType)if(i.data===ht)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(dt,t+1));)l.push({type:7,index:o}),t+=dt.length-1}o++}}static createElement(t,e){const s=mt.createElement("template");return s.innerHTML=t,s}}function Ut(t,e,s=t,i){if(e===xt)return e;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const r=vt(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(e=Ut(t,o._$AS(t,e.values),o,i)),e}class Mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??mt).importNode(e,!0);Ct.currentNode=i;let o=Ct.nextNode(),r=0,n=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Ht(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new jt(o,this,t)),this._$AV.push(e),l=s[++n]}r!==l?.index&&(o=Ct.nextNode(),r++)}return Ct.currentNode=mt,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class Ht{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=St,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ut(this,t,e),vt(t)?t===St||null==t||""===t?(this._$AH!==St&&this._$AR(),this._$AH=St):t!==this._$AH&&t!==xt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>ft(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==St&&vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(mt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=Ot.createElement(kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new Mt(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=Pt.get(t.strings);return void 0===e&&Pt.set(t.strings,e=new Ot(t)),e}k(t){ft(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new Ht(this.O(ut()),this.O(ut()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Nt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=St,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=St}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=Ut(this,t,e,0),r=!vt(t)||t!==this._$AH&&t!==xt,r&&(this._$AH=t);else{const i=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Ut(this,i[s+n],e,n),l===xt&&(l=this._$AH[n]),r||=!vt(l)||l!==this._$AH[n],l===St?t=St:t!==St&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}r&&!i&&this.j(t)}j(t){t===St?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class zt extends Nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===St?void 0:t}}class Rt extends Nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==St)}}class It extends Nt{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=Ut(this,t,e,0)??St)===xt)return;const s=this._$AH,i=t===St&&s!==St||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==St&&(s===St||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class jt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Ut(this,t)}}const Lt=nt.litHtmlPolyfillSupport;Lt?.(Ot,Ht),(nt.litHtmlVersions??=[]).push("3.3.1");var qt,Wt,Bt,Dt,Zt,Vt,Kt,Ft,Jt,Xt;let Gt=class extends(d(t)){constructor(){super(...arguments),qt.add(this),Wt.set(this,void 0),this._selectedIndex=null,this[Xt]=(new v).withHomeAndEnd().withWrap().onSelectedItemsChange(()=>y(this,qt,"m",Kt).call(this)),this.headerPosition="above",this.labelPosition="end",this.linear=!1,this.orientation="horizontal"}get steps(){return this[u]?.items??[]}get selectedStep(){return null!==this._selectedIndex?this.steps[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}movePrevious(){return this.moveTo((this._selectedIndex??1)-1)}moveNext(){return this.moveTo((this._selectedIndex??-1)+1)}moveTo(t){const e=this.selectedStep;if(e&&e.index===t)return!0;if(this.steps[t]?.disabled)return!1;if(t>=0&&t<this.steps.length){if(e){const s=y(this,qt,"m",Ft).call(this);if(this.linear)if(t<e.index){const e=this[u].items[t];if(!e||e.completed&&!e.editable)return!1}else if(t>e.index+1){const e=this[u].items[t];if(!e||!e.completed)return!1}else if(!s&&!e.optional)return!1;e.completed=!0}return this._selectedIndex=t,this[u].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})),!0}return e&&(this[u].deselect(e),this.dispatchEvent(new Event("change",{bubbles:!0}))),!1}reset(){this.steps.forEach(t=>t.reset());const t=this.steps.find(t=>!t.disabled);t?this.moveTo(this.steps.indexOf(t)):this.moveTo(-1)}connectedCallback(){super.connectedCallback(),this.classList.toggle("-no-animate",!0)}disconnectedCallback(){super.disconnectedCallback(),this._orientation=void 0,y(this,Wt,"f")?.call(this)}update(t){super.update(t),t.has("orientation")&&(y(this,Wt,"f")?.call(this),"auto"===this.orientation?g(this,Wt,f.observe([b.XSmall],t=>{this._orientation=t.get(b.XSmall)?"vertical":"horizontal",y(this,qt,"m",Jt).call(this)}),"f"):y(this,qt,"m",Jt).call(this)),t.has("_orientation")&&y(this,qt,"m",Jt).call(this)}render(){let t=null;return this.selectedStep?.panel&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedStep.panel),-1===t&&(t=null)),this[u].vertical?e`${y(this,qt,"m",Bt).call(this)} <slot name="panel"></slot>`:e`${"above"===this.headerPosition?y(this,qt,"m",Bt).call(this):i}
204
- <m3e-slide class="steps" .selectedIndex="${t}">
205
- <slot name="panel"></slot>
206
- </m3e-slide>
207
- ${"below"===this.headerPosition?y(this,qt,"m",Bt).call(this):i}`}};Wt=new WeakMap,qt=new WeakSet,Xt=u,Bt=function(){return e`<div
208
- class="header"
209
- role="tablist"
210
- aria-orientation="${(t=>t??St)(this[u].vertical?"vertical":void 0)}"
211
- @change="${y(this,qt,"m",Dt)}"
212
- >
213
- <slot name="step" @slotchange="${y(this,qt,"m",Zt)}" @keydown="${y(this,qt,"m",Vt)}"></slot>
214
- </div>`},Dt=function(t){t.stopPropagation()},Zt=function(){const{added:t,removed:e}=this[u].setItems([...this.querySelectorAll("m3e-step")]);if(t.length>0||e.length>0){this.querySelectorAll(".-m3e-step-divider").forEach(t=>t.remove());for(let t=0;t<this[u].items.length;t++){const e=this[u].items[t];if(e.index=t,t>0){const t=document.createElement("div");t.ariaHidden="true",t.classList.add("-m3e-step-divider"),t.slot="step",e.insertAdjacentElement("beforebegin",t)}}y(this,qt,"m",Jt).call(this),0==this[u].selectedItems.length&&this[u].select(this[u].items.find(t=>!t.disabled))}},Vt=function(t){this[u].onKeyDown(t)},Kt=function(){const t=this[u].selectedItems[0];let e=t?this.steps.indexOf(t):null;-1===e&&(e=null),this._selectedIndex=e;for(const t of this[u].items)t.panel&&(t.panel.active=t.index===e);t&&this.matches(":focus-within")&&!t.matches(":focus")&&t.focus(),this.classList.contains("-no-animate")&&requestAnimationFrame(()=>this.classList.toggle("-no-animate",!1))},Ft=function(){let t=!1;return this.selectedStep&&(t=this.selectedStep.panel?.querySelector("form")?.checkValidity()??!0,this.selectedStep.optional&&(t=!0),this.selectedStep.invalid=!t),t},Jt=function(){this[u].vertical="vertical"===(this._orientation??this.orientation),this.classList.toggle("-vertical",this[u].vertical),this[u].vertical?this.steps.forEach((t,e)=>{t.style.order=`${e}`,t.panel&&(t.panel.style.order=`${e}`)}):this.steps.forEach(t=>{t.style.order="",t.panel&&(t.panel.style.order="")})},Gt.styles=s`
215
- :host {
216
- display: flex;
217
- flex-direction: column;
218
- position: relative;
219
- }
220
- :host(:not(.-vertical)) .header {
221
- display: flex;
222
- align-items: flex-start;
223
- flex-wrap: nowrap;
224
- }
225
- :host(:not(.-vertical)) ::slotted(.-m3e-step-divider) {
226
- flex: 1 1 auto;
227
- position: relative;
228
- min-width: 2rem;
229
- }
230
- :host(:not(.-vertical)) ::slotted(.-m3e-step-divider)::before {
231
- content: "";
232
- position: absolute;
233
- left: 0;
234
- right: 0;
235
- border-bottom-width: var(--m3e-step-divider-thickness, 1px);
236
- border-bottom-style: solid;
237
- border-bottom-color: var(--m3e-step-divider-color, ${h.color.outline});
238
- }
239
- :host(:not(.-vertical):not([label-position="below"])) ::slotted(.-m3e-step-divider)::before {
240
- top: 50%;
241
- }
242
- :host(:not(.-vertical)) ::slotted([slot="step"]) {
243
- align-self: stretch;
244
- }
245
- :host(:not(.-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before,
246
- :host(:not(.-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after {
247
- content: "";
248
- display: block;
249
- position: absolute;
250
- top: 0;
251
- border-bottom-width: var(--m3e-step-divider-thickness, 1px);
252
- border-bottom-style: solid;
253
- border-bottom-color: var(--m3e-step-divider-color, ${h.color.outline});
254
- }
255
- :host(:not(.-vertical)[label-position="end"]) ::slotted(.-m3e-step-divider) {
256
- margin-block: auto;
257
- }
258
- :host(:not(.-vertical)[label-position="end"])
259
- ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before,
260
- :host(:not(.-vertical)[label-position="end"])
261
- ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after {
262
- top: 50%;
263
- }
264
- :host(:not(.-vertical)[label-position="end"])
265
- ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before {
266
- left: 0;
267
- right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem));
268
- }
269
- :host(:not(.-vertical)[label-position="end"])
270
- ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after {
271
- left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem));
272
- right: 0;
273
- }
274
- :host(:not(.-vertical)[label-position="below"]) ::slotted(.-m3e-step-divider)::before,
275
- :host(:not(.-vertical)[label-position="below"])
276
- ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before,
277
- :host(:not(.-vertical)[label-position="below"])
278
- ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after {
279
- margin-block-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2));
280
- }
281
- :host(:not(.-vertical)[label-position="below"])
282
- ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before {
283
- left: 0;
284
- right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem));
285
- }
286
- :host(:not(.-vertical)[label-position="below"])
287
- ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after {
288
- left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem));
289
- right: 0;
290
- }
291
- :host(:not(.-vertical)[label-position="below"]) {
292
- --_step-direction: column;
293
- --_step-label-align-items: center;
294
- }
295
- :host(.-vertical) .header {
296
- display: contents;
297
- }
298
- :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider)) {
299
- flex: none;
300
- }
301
- :host(.-vertical) ::slotted([slot="panel"]) {
302
- margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2));
303
- }
304
- :host(.-vertical) ::slotted([slot="panel"]:not(:last-of-type)) {
305
- border-inline-start-width: var(--m3e-step-divider-thickness, 1px);
306
- border-inline-start-style: solid;
307
- border-inline-start-color: var(--m3e-step-divider-color, ${h.color.outline});
308
- }
309
- :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before,
310
- :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after {
311
- content: "";
312
- display: block;
313
- position: absolute;
314
- left: 0;
315
- margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2));
316
- border-inline-start-width: var(--m3e-step-divider-thickness, 1px);
317
- border-inline-start-style: solid;
318
- border-inline-start-color: var(--m3e-step-divider-color, ${h.color.outline});
319
- }
320
- :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before {
321
- top: 0;
322
- bottom: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem));
323
- }
324
- :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after {
325
- top: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem));
326
- bottom: 0;
327
- }
328
- :host(:not(.-vertical)) {
329
- --m3e-collapsible-animation-duration: 0ms;
330
- }
331
- :host(.-no-animate) {
332
- --m3e-collapsible-animation-duration: 0ms;
333
- }
334
- `,$([V()],Gt.prototype,"_orientation",void 0),$([V()],Gt.prototype,"_selectedIndex",void 0),$([Z({attribute:"header-position",reflect:!0})],Gt.prototype,"headerPosition",void 0),$([Z({attribute:"label-position",reflect:!0})],Gt.prototype,"labelPosition",void 0),$([Z({type:Boolean,reflect:!0})],Gt.prototype,"linear",void 0),$([Z({reflect:!0})],Gt.prototype,"orientation",void 0),Gt=$([_("m3e-stepper")],Gt);let Qt=class extends rt{constructor(){super("next")}};Qt=$([_("m3e-stepper-next")],Qt);let Yt=class extends rt{constructor(){super("previous")}};Yt=$([_("m3e-stepper-previous")],Yt);let te=class extends rt{constructor(){super("reset")}};te=$([_("m3e-stepper-reset")],te);export{tt as M3eStepElement,F as M3eStepPanelElement,Gt as M3eStepperElement,Qt as M3eStepperNextElement,Yt as M3eStepperPreviousElement,te as M3eStepperResetElement,rt as StepperButtonElementBase};
49
+ */;const nt=globalThis,lt=nt.trustedTypes,at=lt?lt.createPolicy("lit-html",{createHTML:t=>t}):void 0,ct="$lit$",dt=`lit$${Math.random().toFixed(9).slice(2)}$`,ht="?"+dt,pt=`<${ht}>`,mt=document,ut=()=>mt.createComment(""),vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ft=Array.isArray,bt="[ \t\n\f\r]",gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yt=/-->/g,$t=/>/g,_t=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),At=/'/g,wt=/"/g,Et=/^(?:script|style|textarea|title)$/i,xt=Symbol.for("lit-noChange"),St=Symbol.for("lit-nothing"),Pt=new WeakMap,Ct=mt.createTreeWalker(mt,129);function kt(t,e){if(!ft(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==at?at.createHTML(e):e}const Tt=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=gt;for(let e=0;e<s;e++){const s=t[e];let l,a,c=-1,d=0;for(;d<s.length&&(n.lastIndex=d,a=n.exec(s),null!==a);)d=n.lastIndex,n===gt?"!--"===a[1]?n=yt:void 0!==a[1]?n=$t:void 0!==a[2]?(Et.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=_t):void 0!==a[3]&&(n=_t):n===_t?">"===a[0]?(n=o??gt,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?_t:'"'===a[3]?wt:At):n===wt||n===At?n=_t:n===yt||n===$t?n=gt:(n=_t,o=void 0);const h=n===_t&&t[e+1].startsWith("/>")?" ":"";r+=n===gt?s+pt:c>=0?(i.push(l),s.slice(0,c)+ct+s.slice(c)+dt+h):s+dt+(-2===c?e:h)}return[kt(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class Ot{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,c]=Tt(t,e);if(this.el=Ot.createElement(a,s),Ct.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Ct.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(ct)){const e=c[r++],s=i.getAttribute(t).split(dt),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?Nt:"?"===n[1]?Rt:"@"===n[1]?It:zt}),i.removeAttribute(t)}else t.startsWith(dt)&&(l.push({type:6,index:o}),i.removeAttribute(t));if(Et.test(i.tagName)){const t=i.textContent.split(dt),e=t.length-1;if(e>0){i.textContent=lt?lt.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],ut()),Ct.nextNode(),l.push({type:2,index:++o});i.append(t[e],ut())}}}else if(8===i.nodeType)if(i.data===ht)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(dt,t+1));)l.push({type:7,index:o}),t+=dt.length-1}o++}}static createElement(t,e){const s=mt.createElement("template");return s.innerHTML=t,s}}function Ut(t,e,s=t,i){if(e===xt)return e;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const r=vt(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(e=Ut(t,o._$AS(t,e.values),o,i)),e}class Mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??mt).importNode(e,!0);Ct.currentNode=i;let o=Ct.nextNode(),r=0,n=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Ht(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new jt(o,this,t)),this._$AV.push(e),l=s[++n]}r!==l?.index&&(o=Ct.nextNode(),r++)}return Ct.currentNode=mt,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class Ht{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=St,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ut(this,t,e),vt(t)?t===St||null==t||""===t?(this._$AH!==St&&this._$AR(),this._$AH=St):t!==this._$AH&&t!==xt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>ft(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==St&&vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(mt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=Ot.createElement(kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new Mt(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=Pt.get(t.strings);return void 0===e&&Pt.set(t.strings,e=new Ot(t)),e}k(t){ft(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new Ht(this.O(ut()),this.O(ut()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class zt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=St,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=St}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=Ut(this,t,e,0),r=!vt(t)||t!==this._$AH&&t!==xt,r&&(this._$AH=t);else{const i=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Ut(this,i[s+n],e,n),l===xt&&(l=this._$AH[n]),r||=!vt(l)||l!==this._$AH[n],l===St?t=St:t!==St&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}r&&!i&&this.j(t)}j(t){t===St?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Nt extends zt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===St?void 0:t}}class Rt extends zt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==St)}}class It extends zt{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=Ut(this,t,e,0)??St)===xt)return;const s=this._$AH,i=t===St&&s!==St||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==St&&(s===St||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class jt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Ut(this,t)}}const Lt=nt.litHtmlPolyfillSupport;Lt?.(Ot,Ht),(nt.litHtmlVersions??=[]).push("3.3.1");
50
+ /**
51
+ * @license
52
+ * Copyright 2018 Google LLC
53
+ * SPDX-License-Identifier: BSD-3-Clause
54
+ */
55
+ const qt=t=>t??St;var Wt,Bt,Dt,Zt,Vt,Kt,Ft,Jt,Xt,Gt;let Qt=class extends(d(t)){constructor(){super(...arguments),Wt.add(this),Bt.set(this,void 0),this._selectedIndex=null,this[Gt]=(new v).withHomeAndEnd().withWrap().onSelectedItemsChange(()=>y(this,Wt,"m",Ft).call(this)),this.headerPosition="above",this.labelPosition="end",this.linear=!1,this.orientation="horizontal"}get steps(){return this[u]?.items??[]}get selectedStep(){return null!==this._selectedIndex?this.steps[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}movePrevious(){return this.moveTo((this._selectedIndex??1)-1)}moveNext(){return this.moveTo((this._selectedIndex??-1)+1)}moveTo(t){const e=this.selectedStep;if(e&&e.index===t)return!0;if(this.steps[t]?.disabled)return!1;if(t>=0&&t<this.steps.length){if(e){const s=y(this,Wt,"m",Jt).call(this);if(this.linear)if(t<e.index){const e=this[u].items[t];if(!e||e.completed&&!e.editable)return!1}else if(t>e.index+1){const e=this[u].items[t];if(!e||!e.completed)return!1}else if(!s&&!e.optional)return!1;e.completed=!0}return this._selectedIndex=t,this[u].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})),!0}return e&&(this[u].deselect(e),this.dispatchEvent(new Event("change",{bubbles:!0}))),!1}reset(){this.steps.forEach(t=>t.reset());const t=this.steps.find(t=>!t.disabled);t?this.moveTo(this.steps.indexOf(t)):this.moveTo(-1)}connectedCallback(){super.connectedCallback(),this.classList.toggle("-no-animate",!0)}disconnectedCallback(){super.disconnectedCallback(),this._orientation=void 0,y(this,Bt,"f")?.call(this)}update(t){super.update(t),t.has("orientation")&&(y(this,Bt,"f")?.call(this),"auto"===this.orientation?$(this,Bt,f.observe([b.XSmall],t=>{this._orientation=t.get(b.XSmall)?"vertical":"horizontal",y(this,Wt,"m",Xt).call(this)}),"f"):y(this,Wt,"m",Xt).call(this)),t.has("_orientation")&&y(this,Wt,"m",Xt).call(this)}render(){let t;return this.selectedStep?.panel&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedStep.panel),-1===t&&(t=void 0)),this[u].vertical?e`${y(this,Wt,"m",Dt).call(this)}<slot name="panel"></slot>`:e`${"above"===this.headerPosition?y(this,Wt,"m",Dt).call(this):i}<m3e-slide class="steps" selected-index="${qt(t)}"><slot name="panel"></slot></m3e-slide>${"below"===this.headerPosition?y(this,Wt,"m",Dt).call(this):i}`}};Bt=new WeakMap,Wt=new WeakSet,Gt=u,Dt=function(){return e`<div class="header" role="tablist" aria-orientation="${qt(this[u].vertical?"vertical":void 0)}" @change="${y(this,Wt,"m",Zt)}"><slot name="step" @slotchange="${y(this,Wt,"m",Vt)}" @keydown="${y(this,Wt,"m",Kt)}"></slot></div>`},Zt=function(t){t.stopPropagation()},Vt=function(){const{added:t,removed:e}=this[u].setItems([...this.querySelectorAll("m3e-step")]);if(t.length>0||e.length>0){this.querySelectorAll(".-m3e-step-divider").forEach(t=>t.remove());for(let t=0;t<this[u].items.length;t++){const e=this[u].items[t];if(e.index=t,t>0){const t=document.createElement("div");t.ariaHidden="true",t.classList.add("-m3e-step-divider"),t.slot="step",e.insertAdjacentElement("beforebegin",t)}}y(this,Wt,"m",Xt).call(this),0==this[u].selectedItems.length&&this[u].select(this[u].items.find(t=>!t.disabled))}},Kt=function(t){this[u].onKeyDown(t)},Ft=function(){const t=this[u].selectedItems[0];let e=t?this.steps.indexOf(t):null;-1===e&&(e=null),this._selectedIndex=e;for(const t of this[u].items)t.panel&&(t.panel.active=t.index===e);t&&this.matches(":focus-within")&&!t.matches(":focus")&&t.focus(),this.classList.contains("-no-animate")&&requestAnimationFrame(()=>this.classList.toggle("-no-animate",!1))},Jt=function(){let t=!1;return this.selectedStep&&(t=this.selectedStep.panel?.querySelector("form")?.checkValidity()??!0,this.selectedStep.optional&&(t=!0),this.selectedStep.invalid=!t),t},Xt=function(){this[u].vertical="vertical"===(this._orientation??this.orientation),this.classList.toggle("-vertical",this[u].vertical),this[u].vertical?this.steps.forEach((t,e)=>{t.style.order=`${e}`,t.panel&&(t.panel.style.order=`${e}`)}):this.steps.forEach(t=>{t.style.order="",t.panel&&(t.panel.style.order="")})},Qt.styles=s`:host { display: flex; flex-direction: column; position: relative; } :host(:not(.-vertical)) .header { display: flex; align-items: flex-start; flex-wrap: nowrap; } :host(:not(.-vertical)) ::slotted(.-m3e-step-divider) { flex: 1 1 auto; position: relative; min-width: 2rem; } :host(:not(.-vertical)) ::slotted(.-m3e-step-divider)::before { content: ""; position: absolute; left: 0; right: 0; border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${h.color.outline}); } :host(:not(.-vertical):not([label-position="below"])) ::slotted(.-m3e-step-divider)::before { top: 50%; } :host(:not(.-vertical)) ::slotted([slot="step"]) { align-self: stretch; } :host(:not(.-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(.-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; top: 0; border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${h.color.outline}); } :host(:not(.-vertical)[label-position="end"]) ::slotted(.-m3e-step-divider) { margin-block: auto; } :host(:not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: 50%; } :host(:not(:dir(rtl)):not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(.-vertical)[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(.-vertical)[label-position="below"]) ::slotted(.-m3e-step-divider)::before, :host(:not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { margin-block-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } :host(:not(:dir(rtl)):not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(.-vertical)[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(.-vertical)[label-position="below"]) { --_step-direction: column; --_step-label-align-items: center; } :host(.-vertical) .header { display: contents; } :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider)) { flex: none; } :host(.-vertical) ::slotted([slot="panel"]) { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } :host(.-vertical) ::slotted([slot="panel"]:not(:last-of-type)) { border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${h.color.outline}); } :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; left: 0; margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${h.color.outline}); } :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { top: 0; bottom: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(.-vertical) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); bottom: 0; } :host(:not(.-vertical)) { --m3e-collapsible-animation-duration: 0ms; } :host(.-no-animate) { --m3e-collapsible-animation-duration: 0ms; }`,g([V()],Qt.prototype,"_orientation",void 0),g([V()],Qt.prototype,"_selectedIndex",void 0),g([Z({attribute:"header-position",reflect:!0})],Qt.prototype,"headerPosition",void 0),g([Z({attribute:"label-position",reflect:!0})],Qt.prototype,"labelPosition",void 0),g([Z({type:Boolean,reflect:!0})],Qt.prototype,"linear",void 0),g([Z({reflect:!0})],Qt.prototype,"orientation",void 0),Qt=g([_("m3e-stepper")],Qt);let Yt=class extends rt{constructor(){super("next")}};Yt=g([_("m3e-stepper-next")],Yt);let te=class extends rt{constructor(){super("previous")}};te=g([_("m3e-stepper-previous")],te);let ee=class extends rt{constructor(){super("reset")}};ee=g([_("m3e-stepper-reset")],ee);export{tt as M3eStepElement,F as M3eStepPanelElement,Qt as M3eStepperElement,Yt as M3eStepperNextElement,te as M3eStepperPreviousElement,ee as M3eStepperResetElement,rt as StepperButtonElementBase};
335
56
  //# sourceMappingURL=index.min.js.map