@progressive-development/pd-wizard 0.6.19 → 0.9.1

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { PdWizard } from './pd-wizard.js';
1
+ export { PdWizard } from './pd-wizard/pd-wizard.js';
2
2
  export type { PdWizardStep } from './types.js';
3
3
  export { templates as beTemplates } from './generated/locales/be.js';
4
4
  export { templates as deTemplates } from './generated/locales/de.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
package/dist/index.js CHANGED
@@ -1,10 +1,5 @@
1
- import { PdWizard } from "./pd-wizard.js";
2
- import { templates } from "./locales/be.js";
3
- import { templates as templates2 } from "./locales/de.js";
4
- import { templates as templates3 } from "./locales/en.js";
5
- export {
6
- PdWizard,
7
- templates as beTemplates,
8
- templates2 as deTemplates,
9
- templates3 as enTemplates
10
- };
1
+ import './pd-wizard.js';
2
+ export { templates as beTemplates } from './locales/be.js';
3
+ export { templates as deTemplates } from './locales/de.js';
4
+ export { templates as enTemplates } from './locales/en.js';
5
+ export { PdWizard } from './pd-wizard/PdWizard.js';
@@ -3,6 +3,5 @@ const templates = {
3
3
  "pd.wizard.button.next": `Volgende`,
4
4
  "pd.wizard.button.send": `Verzenden`
5
5
  };
6
- export {
7
- templates
8
- };
6
+
7
+ export { templates };
@@ -3,6 +3,5 @@ const templates = {
3
3
  "pd.wizard.button.next": `Weiter`,
4
4
  "pd.wizard.button.send": `Absenden`
5
5
  };
6
- export {
7
- templates
8
- };
6
+
7
+ export { templates };
@@ -3,6 +3,5 @@ const templates = {
3
3
  "pd.wizard.button.next": `Next`,
4
4
  "pd.wizard.button.send": `Submit`
5
5
  };
6
- export {
7
- templates
8
- };
6
+
7
+ export { templates };
@@ -0,0 +1,44 @@
1
+ import { LitElement, CSSResultGroup } from 'lit';
2
+ import { PdWizardStep } from '../types.js';
3
+ /**
4
+ * A multi-step wizard UI component.
5
+ *
6
+ * @fires next-step - Fired when the "Weiter" button is clicked
7
+ * @fires previous-step - Fired when the "Zurück" button is clicked
8
+ * @fires submit-wizard - Fired when the wizard is submitted; can modify the `submited` flag in the detail object
9
+ * @fires close-wizard - Fired when the wizard is closed
10
+ *
11
+ * @slot slotLogo - The slot for the logo in the title area
12
+ * @slot step-1 - Content for step 1
13
+ * @slot step-2 - Content for step 2
14
+ * @slot step-3 - Content for step 3
15
+ * @slot step-4 - Content for step 4
16
+ * @slot step-5 - Content for step 5
17
+ * @slot step-6 - Content for step 6
18
+ * @tagname pd-wizard
19
+ */
20
+ export declare class PdWizard extends LitElement {
21
+ /**
22
+ * Current step number (1-based index)
23
+ */
24
+ currentNumber: number;
25
+ /**
26
+ * List of wizard step definitions
27
+ */
28
+ wizardSteps: PdWizardStep[];
29
+ /**
30
+ * If true, renders the wizard in panel style (reduced header)
31
+ */
32
+ panelWizard: boolean;
33
+ /**
34
+ * Internal state to disable submit button after submission
35
+ */
36
+ private _submited;
37
+ static styles: CSSResultGroup;
38
+ protected render(): import('lit').TemplateResult<1>;
39
+ private _previousStep;
40
+ private _nextStep;
41
+ private _submit;
42
+ private _closeWizard;
43
+ }
44
+ //# sourceMappingURL=PdWizard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdWizard.d.ts","sourceRoot":"","sources":["../../src/pd-wizard/PdWizard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAK5D,OAAO,0CAA0C,CAAC;AAClD,OAAO,mDAAmD,CAAC;AAO3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,wBAAwB,CAAC;AAEhC;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,QAAS,SAAQ,UAAU;IACtC;;OAEG;IAEH,aAAa,SAAO;IAEpB;;OAEG;IAEH,WAAW,EAAE,YAAY,EAAE,CAAM;IAEjC;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAgB,MAAM,EAAE,cAAc,CAqJpC;IAEF,SAAS,CAAC,MAAM;IAiGhB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,YAAY;CAGrB"}
@@ -0,0 +1,292 @@
1
+ import { css, LitElement, html } from 'lit';
2
+ import { property, state } from 'lit/decorators.js';
3
+ import { localized, msg } from '@lit/localize';
4
+ import { pdIcons } from '@progressive-development/pd-icon';
5
+ import '@progressive-development/pd-icon/pd-icon';
6
+ import '@progressive-development/pd-forms/pd-panel-button';
7
+ import { PdColorStyles, PdFontStyles } from '@progressive-development/pd-shared-styles';
8
+ import './pd-steps/pd-steps.js';
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __decorateClass = (decorators, target, key, kind) => {
13
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
14
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
+ if (decorator = decorators[i])
16
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
17
+ if (kind && result) __defProp(target, key, result);
18
+ return result;
19
+ };
20
+ let PdWizard = class extends LitElement {
21
+ constructor() {
22
+ super(...arguments);
23
+ this.currentNumber = -99;
24
+ this.wizardSteps = [];
25
+ this.panelWizard = false;
26
+ this._submited = false;
27
+ }
28
+ render() {
29
+ if (!this.wizardSteps.length) return html``;
30
+ const currentStep = this.wizardSteps[this.currentNumber - 1];
31
+ return html`
32
+ <div class="wiz-header">
33
+ ${this.panelWizard ? html`
34
+ <div class="wiz-panel-h">
35
+ <h1>${currentStep?.title ?? "No-Title"}</h1>
36
+ <pd-icon
37
+ class="panel-close-icon"
38
+ title="Close"
39
+ activeIcon
40
+ icon="${pdIcons.ICON_XCLOSE}"
41
+ @click="${this._closeWizard}"
42
+ ></pd-icon>
43
+ </div>
44
+ ` : html`
45
+ <div class="wiz-title">
46
+ <slot name="slotLogo"></slot>
47
+ <span class="title">${currentStep?.title ?? "No-Title"}</span>
48
+ <pd-icon
49
+ class="close"
50
+ icon="${pdIcons.ICON_CLOSE}"
51
+ @click="${this._closeWizard}"
52
+ ></pd-icon>
53
+ </div>
54
+ `}
55
+
56
+ <div class="wiz-breadcrumbs">
57
+ <pd-steps
58
+ .steps="${this.wizardSteps}"
59
+ .currentStepNr="${this.currentNumber}"
60
+ ></pd-steps>
61
+ </div>
62
+ </div>
63
+
64
+ <div class="wiz-content">
65
+ <div class="wiz-content-inner">
66
+ ${this.wizardSteps.map(
67
+ (step, i) => html`
68
+ <div
69
+ style="${this.currentNumber === i + 1 ? "" : "display:none"}"
70
+ >
71
+ <slot name="step-${i + 1}"></slot>
72
+ </div>
73
+ `
74
+ )}
75
+ </div>
76
+ </div>
77
+
78
+ <div class="wiz-buttons">
79
+ ${this.currentNumber >= 1 && this.wizardSteps.length ? html`
80
+ <pd-panel-button
81
+ @button-clicked="${this._previousStep}"
82
+ pdButtonIcon="${pdIcons.ICON_ARROW_BACK}"
83
+ buttonText="${msg("Zurück", { id: "pd.wizard.button.back" })}"
84
+ style="visibility: ${this.currentNumber === 1 ? "hidden" : "visible"}"
85
+ ></pd-panel-button>
86
+
87
+ ${this.currentNumber !== this.wizardSteps.length && currentStep?.next !== false ? html`
88
+ <pd-panel-button
89
+ @button-clicked="${this._nextStep}"
90
+ pdButtonIcon="${pdIcons.ICON_ARROW_NEXT}"
91
+ buttonText="${msg("Weiter", {
92
+ id: "pd.wizard.button.next"
93
+ })}"
94
+ ></pd-panel-button>
95
+ ` : ""}
96
+ ${this.currentNumber === this.wizardSteps.length ? html`
97
+ <pd-panel-button
98
+ pdButtonIcon="${pdIcons.ICON_SYNC}"
99
+ primary
100
+ ?disabled="${this._submited}"
101
+ @button-clicked="${this._submit}"
102
+ buttonText="${msg("Absenden", {
103
+ id: "pd.wizard.button.send"
104
+ })}"
105
+ ></pd-panel-button>
106
+ ` : ""}
107
+ ` : ""}
108
+ </div>
109
+ `;
110
+ }
111
+ _previousStep() {
112
+ this.dispatchEvent(new CustomEvent("previous-step"));
113
+ }
114
+ _nextStep() {
115
+ this.dispatchEvent(new CustomEvent("next-step"));
116
+ }
117
+ _submit() {
118
+ const detail = { submited: false };
119
+ this.dispatchEvent(new CustomEvent("submit-wizard", { detail }));
120
+ this._submited = detail.submited;
121
+ }
122
+ _closeWizard() {
123
+ this.dispatchEvent(new CustomEvent("close-wizard"));
124
+ }
125
+ };
126
+ PdWizard.styles = [
127
+ PdColorStyles,
128
+ PdFontStyles,
129
+ css`
130
+ :host {
131
+ /* These values are used more than onnce and dfined here for short access */
132
+ --my-height: var(--pd-wizard-title-height, 110px);
133
+ --my-header-font-color: var(
134
+ --pd-wizard-header-font-col,
135
+ var(--pd-default-bg-col)
136
+ );
137
+ --my-header-bg-col: var(
138
+ --pd-wizard-header-bg-col,
139
+ var(--pd-default-col)
140
+ );
141
+
142
+ display: flex;
143
+ flex-direction: column;
144
+ height: 100%;
145
+ }
146
+
147
+ .wiz-header {
148
+ flex-grow: 0;
149
+ }
150
+
151
+ .wiz-title {
152
+ position: relative;
153
+ text-align: center;
154
+ background-color: var(--my-header-bg-col);
155
+ height: var(---my-height);
156
+ padding-left: var(--pd-wizard-title-padding-left, 0);
157
+ color: var(--my-header-font-color);
158
+ }
159
+
160
+ :host(.top-rounded) .wiz-title {
161
+ border-top-left-radius: var(--pd-wizard-top-borderradius, 5px);
162
+ border-top-right-radius: var(--pd-wizard-top-borderradius, 5px);
163
+ }
164
+
165
+ .title {
166
+ font-family: var(--pd-default-font-title-family);
167
+ font-size: var(--pd-wizard-header-font-size, 2em);
168
+ font-weight: bolder;
169
+ line-height: var(--my-height);
170
+ }
171
+
172
+ /* The Close Icon */
173
+ .close {
174
+ position: absolute;
175
+ top: 6px;
176
+ right: 6px;
177
+
178
+ cursor: pointer;
179
+
180
+ --pd-icon-size: 2em;
181
+ --pd-icon-col-active: white;
182
+ }
183
+
184
+ .close:hover,
185
+ .close:focus {
186
+ color: var(--pd-default-hover-col);
187
+ }
188
+
189
+ .wiz-content {
190
+ display: flex;
191
+ justify-content: var(--pd-wizard-justify-content, center);
192
+ flex-grow: 1;
193
+
194
+ background-color: var(
195
+ --pd-wizard-content-bg-col,
196
+ var(--pd-default-bg-col)
197
+ );
198
+ padding: var(--pd-wizard-content-padding, 1em);
199
+ overflow-y: var(--pd-wizard-content-scroll, auto);
200
+ }
201
+
202
+ .wiz-content-inner {
203
+ background-color: var(
204
+ --pd-wizard-content-inner-bg-col,
205
+ var(--pd-default-bg-col)
206
+ );
207
+ max-width: var(--pd-wizard-content-max-width, 1024px);
208
+ width: var(--pd-wizard-content-width, 75%);
209
+ }
210
+
211
+ .wiz-buttons {
212
+ display: flex;
213
+ justify-content: var(--pd-wizard-justify-buttons, space-around);
214
+ flex-grow: 0;
215
+ padding: 1em;
216
+
217
+ background: linear-gradient(
218
+ to top,
219
+ var(--pd-wizard-buttons-bg-col1, var(--pd-default-light-col)) 0%,
220
+ var(--pd-wizard-buttons-bg-col2, var(--pd-default-disabled-light-col))
221
+ 100%
222
+ );
223
+ }
224
+
225
+ :host(.bottom-rounded) .wiz-buttons {
226
+ border-bottom-left-radius: var(--pd-wizard-bottom-borderradius, 5px);
227
+ border-bottom-right-radius: var(--pd-wizard-bottom-borderradius, 5px);
228
+ }
229
+
230
+ /*
231
+ * CSS for panel wizard
232
+ */
233
+ .wiz-panel-h {
234
+ padding: var(--pd-wizard-header-panel-padding, 0);
235
+ display: flex;
236
+ align-items: center;
237
+ justify-content: center;
238
+ background-color: var(
239
+ --pd-wizard-header-panel-bg-col,
240
+ var(--pd-default-col)
241
+ );
242
+ position: relative;
243
+ }
244
+
245
+ .wiz-panel-h h1 {
246
+ color: var(--pd-wizard-header-panel-title-col, white);
247
+ padding: 0;
248
+ margin: 0.8em 0 0.5em 0;
249
+ font-size: var(--pd-wizard-header-font-size, 1.2em);
250
+ font-family: var(--pd-default-font-title-family);
251
+ }
252
+
253
+ .panel-close-icon {
254
+ --pd-icon-size: 2em;
255
+ --pd-icon-col-active: white;
256
+ cursor: pointer;
257
+ position: absolute;
258
+ right: 0px;
259
+ top: 0px;
260
+ }
261
+
262
+ /* Size Elements for small width */
263
+ @media (max-width: 700px) {
264
+ .close {
265
+ font-size: 0.7rem;
266
+ --pd-icon-size: 1.2rem;
267
+ top: 3px;
268
+ right: 3px;
269
+ }
270
+ .title {
271
+ margin-left: 50px;
272
+ }
273
+ }
274
+ `
275
+ ];
276
+ __decorateClass([
277
+ property({ type: Number })
278
+ ], PdWizard.prototype, "currentNumber", 2);
279
+ __decorateClass([
280
+ property({ type: Array })
281
+ ], PdWizard.prototype, "wizardSteps", 2);
282
+ __decorateClass([
283
+ property({ type: Boolean })
284
+ ], PdWizard.prototype, "panelWizard", 2);
285
+ __decorateClass([
286
+ state()
287
+ ], PdWizard.prototype, "_submited", 2);
288
+ PdWizard = __decorateClass([
289
+ localized()
290
+ ], PdWizard);
291
+
292
+ export { PdWizard };
@@ -1,10 +1,11 @@
1
1
  import { LitElement, CSSResultGroup } from 'lit';
2
- import { PdWizardStep } from './types';
2
+ import { PdWizardStep } from '../../types';
3
3
  /**
4
4
  * @tag pd-steps
5
5
  * @summary Fortschrittsanzeige in Kreis- oder Tab-Optik
6
6
  *
7
7
  * @fires go-to - wenn ein abgeschlossener Schritt erneut geklickt wird
8
+ * @tagname pd-steps
8
9
  */
9
10
  export declare class PdSteps extends LitElement {
10
11
  /**
@@ -20,8 +21,8 @@ export declare class PdSteps extends LitElement {
20
21
  */
21
22
  styleTyp: "circle" | "tab";
22
23
  static styles: CSSResultGroup;
23
- render(): import('lit-html').TemplateResult<1>;
24
+ render(): import('lit').TemplateResult<1>;
24
25
  private _renderCircle;
25
26
  private _stepClicked;
26
27
  }
27
- //# sourceMappingURL=pd-steps.d.ts.map
28
+ //# sourceMappingURL=PdSteps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdSteps.d.ts","sourceRoot":"","sources":["../../../src/pd-wizard/pd-steps/PdSteps.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAO5D,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;GAMG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACrC;;OAEG;IAEH,KAAK,EAAE,YAAY,EAAE,CAAM;IAE3B;;OAEG;IAEH,aAAa,SAAO;IAEpB;;OAEG;IAEH,QAAQ,EAAE,QAAQ,GAAG,KAAK,CAAY;IAEtC,OAAgB,MAAM,EAAE,cAAc,CA2GpC;IAEO,MAAM;IAIf,OAAO,CAAC,aAAa;IAyCrB,OAAO,CAAC,YAAY;CAcrB"}
@@ -1,81 +1,28 @@
1
- import { css, LitElement, html } from "lit";
2
- import { property, customElement } from "lit/decorators.js";
3
- import { PdColorStyles, PdFontStyles } from "@progressive-development/pd-shared-styles";
1
+ import { LitElement, css, html } from 'lit';
2
+ import { property } from 'lit/decorators.js';
3
+ import { PdColorStyles, PdFontStyles } from '@progressive-development/pd-shared-styles';
4
+
4
5
  var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __decorateClass = (decorators, target, key, kind) => {
7
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
7
+ var result = void 0 ;
8
8
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
9
9
  if (decorator = decorators[i])
10
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11
- if (kind && result) __defProp(target, key, result);
10
+ result = (decorator(target, key, result) ) || result;
11
+ if (result) __defProp(target, key, result);
12
12
  return result;
13
13
  };
14
- let PdSteps = class extends LitElement {
14
+ class PdSteps extends LitElement {
15
15
  constructor() {
16
16
  super(...arguments);
17
17
  this.steps = [];
18
18
  this.currentStepNr = -99;
19
19
  this.styleTyp = "circle";
20
20
  }
21
- render() {
22
- return this._renderCircle();
23
- }
24
- _renderCircle() {
25
- return html`
26
- <div class="parent ${this.styleTyp}">
27
- ${this.styleTyp === "circle" ? html`<hr />` : ""}
28
- ${this.steps.map((st, index) => {
29
- const stepNr = index + 1;
30
- const isCurrent = this.currentStepNr === stepNr;
31
- const isPassed = this.currentStepNr > stepNr;
32
- const classNames = [
33
- "step",
34
- this.styleTyp,
35
- isCurrent ? "current" : isPassed ? "passed" : ""
36
- ].join(" ");
37
- const nrClassNames = [
38
- "step-nr",
39
- isCurrent ? "current" : isPassed ? "passed" : ""
40
- ].join(" ");
41
- const nameClassNames = [
42
- "step-name",
43
- isCurrent ? "current" : isPassed ? "passed" : ""
44
- ].join(" ");
45
- return html`
46
- <div class="step-container">
47
- <div
48
- class="${classNames}"
49
- data-step="${stepNr}"
50
- @click=${this._stepClicked}
51
- >
52
- <span class="${nrClassNames}">${stepNr}</span>
53
- </div>
54
- <span class="${nameClassNames}">${st.name}</span>
55
- </div>
56
- `;
57
- })}
58
- </div>
59
- `;
60
- }
61
- _stepClicked(e) {
62
- const stepStr = e.currentTarget.dataset.step;
63
- const step = Number(stepStr);
64
- if (!isNaN(step) && step < this.currentStepNr) {
65
- this.dispatchEvent(
66
- new CustomEvent("go-to", {
67
- detail: { step },
68
- bubbles: true,
69
- composed: true
70
- })
71
- );
72
- }
73
- }
74
- };
75
- PdSteps.styles = [
76
- PdColorStyles,
77
- PdFontStyles,
78
- css`
21
+ static {
22
+ this.styles = [
23
+ PdColorStyles,
24
+ PdFontStyles,
25
+ css`
79
26
  :host {
80
27
  --circle-size: var(--pd-step-circle-size, 40px);
81
28
  display: block;
@@ -179,19 +126,70 @@ PdSteps.styles = [
179
126
  }
180
127
  }
181
128
  `
182
- ];
129
+ ];
130
+ }
131
+ render() {
132
+ return this._renderCircle();
133
+ }
134
+ _renderCircle() {
135
+ return html`
136
+ <div class="parent ${this.styleTyp}">
137
+ ${this.styleTyp === "circle" ? html`<hr />` : ""}
138
+ ${this.steps.map((st, index) => {
139
+ const stepNr = index + 1;
140
+ const isCurrent = this.currentStepNr === stepNr;
141
+ const isPassed = this.currentStepNr > stepNr;
142
+ const classNames = [
143
+ "step",
144
+ this.styleTyp,
145
+ isCurrent ? "current" : isPassed ? "passed" : ""
146
+ ].join(" ");
147
+ const nrClassNames = [
148
+ "step-nr",
149
+ isCurrent ? "current" : isPassed ? "passed" : ""
150
+ ].join(" ");
151
+ const nameClassNames = [
152
+ "step-name",
153
+ isCurrent ? "current" : isPassed ? "passed" : ""
154
+ ].join(" ");
155
+ return html`
156
+ <div class="step-container">
157
+ <div
158
+ class="${classNames}"
159
+ data-step="${stepNr}"
160
+ @click=${this._stepClicked}
161
+ >
162
+ <span class="${nrClassNames}">${stepNr}</span>
163
+ </div>
164
+ <span class="${nameClassNames}">${st.name}</span>
165
+ </div>
166
+ `;
167
+ })}
168
+ </div>
169
+ `;
170
+ }
171
+ _stepClicked(e) {
172
+ const stepStr = e.currentTarget.dataset.step;
173
+ const step = Number(stepStr);
174
+ if (!isNaN(step) && step < this.currentStepNr) {
175
+ this.dispatchEvent(
176
+ new CustomEvent("go-to", {
177
+ detail: { step },
178
+ bubbles: true,
179
+ composed: true
180
+ })
181
+ );
182
+ }
183
+ }
184
+ }
183
185
  __decorateClass([
184
186
  property({ type: Array })
185
- ], PdSteps.prototype, "steps", 2);
187
+ ], PdSteps.prototype, "steps");
186
188
  __decorateClass([
187
189
  property({ type: Number })
188
- ], PdSteps.prototype, "currentStepNr", 2);
190
+ ], PdSteps.prototype, "currentStepNr");
189
191
  __decorateClass([
190
192
  property({ type: String })
191
- ], PdSteps.prototype, "styleTyp", 2);
192
- PdSteps = __decorateClass([
193
- customElement("pd-steps")
194
- ], PdSteps);
195
- export {
196
- PdSteps
197
- };
193
+ ], PdSteps.prototype, "styleTyp");
194
+
195
+ export { PdSteps };
@@ -0,0 +1,3 @@
1
+ import { PdSteps } from './PdSteps.js';
2
+ export { PdSteps };
3
+ //# sourceMappingURL=pd-steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pd-steps.d.ts","sourceRoot":"","sources":["../../../src/pd-wizard/pd-steps/pd-steps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAOvC,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { PdSteps } from './PdSteps.js';
2
+
3
+ const tag = "pd-steps";
4
+ if (!customElements.get(tag)) {
5
+ customElements.define(tag, PdSteps);
6
+ }
7
+
8
+ export { PdSteps };
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  component: string;
5
5
  tags: string[];
6
- render: ({ steps, currentStepNr, styleTyp }: import('@storybook/web-components').Args) => import('lit-html').TemplateResult<1>;
6
+ render: ({ steps, currentStepNr, styleTyp }: import('@storybook/web-components').Args) => import('lit').TemplateResult<1>;
7
7
  argTypes: {
8
8
  steps: {
9
9
  control: "object";
@@ -39,4 +39,4 @@ export declare const FirstStepActive: Story;
39
39
  * Zeigt alle Schritte als "abgeschlossen"
40
40
  */
41
41
  export declare const AllStepsPassed: Story;
42
- //# sourceMappingURL=steps.stories.d.ts.map
42
+ //# sourceMappingURL=pd-steps.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pd-steps.stories.d.ts","sourceRoot":"","sources":["../../../src/pd-wizard/pd-steps/pd-steps.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,eAAe,CAAC;AAEvB,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;CAuBM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAU7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PdWizard } from './PdWizard.js';
2
+ export { PdWizard };
3
+ //# sourceMappingURL=pd-wizard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pd-wizard.d.ts","sourceRoot":"","sources":["../../src/pd-wizard/pd-wizard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAOzC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -9,4 +9,4 @@ export default meta;
9
9
  type Story = StoryObj<WizardArgs>;
10
10
  export declare const Wizard: Story;
11
11
  export declare const WizardPanel: Story;
12
- //# sourceMappingURL=wizard.stories.d.ts.map
12
+ //# sourceMappingURL=pd-wizard.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pd-wizard.stories.d.ts","sourceRoot":"","sources":["../../src/pd-wizard/pd-wizard.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,gBAAgB,CAAC;AAExB,KAAK,UAAU,GAAG;IAChB,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CA2B1B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAElC,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAkEzB,CAAC"}
@@ -1,43 +1,2 @@
1
- import { LitElement, CSSResultGroup } from 'lit';
2
- import { PdWizardStep } from './types.js';
3
- /**
4
- * A multi-step wizard UI component.
5
- *
6
- * @fires next-step - Fired when the "Weiter" button is clicked
7
- * @fires previous-step - Fired when the "Zurück" button is clicked
8
- * @fires submit-wizard - Fired when the wizard is submitted; can modify the `submited` flag in the detail object
9
- * @fires close-wizard - Fired when the wizard is closed
10
- *
11
- * @slot slotLogo - The slot for the logo in the title area
12
- * @slot step-1 - Content for step 1
13
- * @slot step-2 - Content for step 2
14
- * @slot step-3 - Content for step 3
15
- * @slot step-4 - Content for step 4
16
- * @slot step-5 - Content for step 5
17
- * @slot step-6 - Content for step 6
18
- */
19
- export declare class PdWizard extends LitElement {
20
- /**
21
- * Current step number (1-based index)
22
- */
23
- currentNumber: number;
24
- /**
25
- * List of wizard step definitions
26
- */
27
- wizardSteps: PdWizardStep[];
28
- /**
29
- * If true, renders the wizard in panel style (reduced header)
30
- */
31
- panelWizard: boolean;
32
- /**
33
- * Internal state to disable submit button after submission
34
- */
35
- private _submited;
36
- static styles: CSSResultGroup;
37
- protected render(): import('lit-html').TemplateResult<1>;
38
- private _previousStep;
39
- private _nextStep;
40
- private _submit;
41
- private _closeWizard;
42
- }
43
- //# sourceMappingURL=pd-wizard.d.ts.map
1
+ export * from './pd-wizard/pd-wizard'
2
+ export {}
package/dist/pd-wizard.js CHANGED
@@ -1,293 +1,8 @@
1
- import { css, LitElement, html } from "lit";
2
- import { property, state, customElement } from "lit/decorators.js";
3
- import { localized, msg } from "@lit/localize";
4
- import { pdIcons } from "@progressive-development/pd-icon";
5
- import "@progressive-development/pd-icon/pd-icon";
6
- import "@progressive-development/pd-forms/pd-icon-panel-button";
7
- import { PdColorStyles, PdFontStyles } from "@progressive-development/pd-shared-styles";
8
- import "./pd-steps.js";
9
- var __defProp = Object.defineProperty;
10
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
- var __decorateClass = (decorators, target, key, kind) => {
12
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
13
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
- if (decorator = decorators[i])
15
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
16
- if (kind && result) __defProp(target, key, result);
17
- return result;
18
- };
19
- let PdWizard = class extends LitElement {
20
- constructor() {
21
- super(...arguments);
22
- this.currentNumber = -99;
23
- this.wizardSteps = [];
24
- this.panelWizard = false;
25
- this._submited = false;
26
- }
27
- render() {
28
- if (!this.wizardSteps.length) return html``;
29
- const currentStep = this.wizardSteps[this.currentNumber - 1];
30
- return html`
31
- <div class="wiz-header">
32
- ${this.panelWizard ? html`
33
- <div class="wiz-panel-h">
34
- <h1>${(currentStep == null ? void 0 : currentStep.title) ?? "No-Title"}</h1>
35
- <pd-icon
36
- class="panel-close-icon"
37
- title="Close"
38
- activeIcon
39
- icon="${pdIcons.ICON_XCLOSE}"
40
- @click="${this._closeWizard}"
41
- ></pd-icon>
42
- </div>
43
- ` : html`
44
- <div class="wiz-title">
45
- <slot name="slotLogo"></slot>
46
- <span class="title">${(currentStep == null ? void 0 : currentStep.title) ?? "No-Title"}</span>
47
- <pd-icon
48
- class="close"
49
- icon="${pdIcons.ICON_CLOSE}"
50
- @click="${this._closeWizard}"
51
- ></pd-icon>
52
- </div>
53
- `}
1
+ import { PdWizard } from './pd-wizard/PdWizard.js';
54
2
 
55
- <div class="wiz-breadcrumbs">
56
- <pd-steps
57
- .steps="${this.wizardSteps}"
58
- .currentStepNr="${this.currentNumber}"
59
- ></pd-steps>
60
- </div>
61
- </div>
3
+ const tag = "pd-wizard";
4
+ if (!customElements.get(tag)) {
5
+ customElements.define(tag, PdWizard);
6
+ }
62
7
 
63
- <div class="wiz-content">
64
- <div class="wiz-content-inner">
65
- ${this.wizardSteps.map(
66
- (step, i) => html`
67
- <div
68
- style="${this.currentNumber === i + 1 ? "" : "display:none"}"
69
- >
70
- <slot name="step-${i + 1}"></slot>
71
- </div>
72
- `
73
- )}
74
- </div>
75
- </div>
76
-
77
- <div class="wiz-buttons">
78
- ${this.currentNumber >= 1 && this.wizardSteps.length ? html`
79
- <pd-icon-panel-button
80
- @button-clicked="${this._previousStep}"
81
- pdButtonIcon="${pdIcons.ICON_ARROW_BACK}"
82
- buttonText="${msg("Zurück", { id: "pd.wizard.button.back" })}"
83
- style="visibility: ${this.currentNumber === 1 ? "hidden" : "visible"}"
84
- ></pd-icon-panel-button>
85
-
86
- ${this.currentNumber !== this.wizardSteps.length && (currentStep == null ? void 0 : currentStep.next) !== false ? html`
87
- <pd-icon-panel-button
88
- @button-clicked="${this._nextStep}"
89
- pdButtonIcon="${pdIcons.ICON_ARROW_NEXT}"
90
- buttonText="${msg("Weiter", {
91
- id: "pd.wizard.button.next"
92
- })}"
93
- ></pd-icon-panel-button>
94
- ` : ""}
95
- ${this.currentNumber === this.wizardSteps.length ? html`
96
- <pd-icon-panel-button
97
- pdButtonIcon="${pdIcons.ICON_SYNC}"
98
- primary
99
- ?disabled="${this._submited}"
100
- @button-clicked="${this._submit}"
101
- buttonText="${msg("Absenden", {
102
- id: "pd.wizard.button.send"
103
- })}"
104
- ></pd-icon-panel-button>
105
- ` : ""}
106
- ` : ""}
107
- </div>
108
- `;
109
- }
110
- _previousStep() {
111
- this.dispatchEvent(new CustomEvent("previous-step"));
112
- }
113
- _nextStep() {
114
- this.dispatchEvent(new CustomEvent("next-step"));
115
- }
116
- _submit() {
117
- const detail = { submited: false };
118
- this.dispatchEvent(new CustomEvent("submit-wizard", { detail }));
119
- this._submited = detail.submited;
120
- }
121
- _closeWizard() {
122
- this.dispatchEvent(new CustomEvent("close-wizard"));
123
- }
124
- };
125
- PdWizard.styles = [
126
- PdColorStyles,
127
- PdFontStyles,
128
- css`
129
- :host {
130
- /* These values are used more than onnce and dfined here for short access */
131
- --my-height: var(--pd-wizard-title-height, 110px);
132
- --my-header-font-color: var(
133
- --pd-wizard-header-font-col,
134
- var(--pd-default-bg-col)
135
- );
136
- --my-header-bg-col: var(
137
- --pd-wizard-header-bg-col,
138
- var(--pd-default-col)
139
- );
140
-
141
- display: flex;
142
- flex-direction: column;
143
- height: 100%;
144
- }
145
-
146
- .wiz-header {
147
- flex-grow: 0;
148
- }
149
-
150
- .wiz-title {
151
- position: relative;
152
- text-align: center;
153
- background-color: var(--my-header-bg-col);
154
- height: var(---my-height);
155
- padding-left: var(--pd-wizard-title-padding-left, 0);
156
- color: var(--my-header-font-color);
157
- }
158
-
159
- :host(.top-rounded) .wiz-title {
160
- border-top-left-radius: var(--pd-wizard-top-borderradius, 5px);
161
- border-top-right-radius: var(--pd-wizard-top-borderradius, 5px);
162
- }
163
-
164
- .title {
165
- font-family: var(--pd-default-font-title-family);
166
- font-size: var(--pd-wizard-header-font-size, 2em);
167
- font-weight: bolder;
168
- line-height: var(--my-height);
169
- }
170
-
171
- /* The Close Icon */
172
- .close {
173
- position: absolute;
174
- top: 6px;
175
- right: 6px;
176
-
177
- cursor: pointer;
178
-
179
- --pd-icon-size: 2em;
180
- --pd-icon-col-active: white;
181
- }
182
-
183
- .close:hover,
184
- .close:focus {
185
- color: var(--pd-default-hover-col);
186
- }
187
-
188
- .wiz-content {
189
- display: flex;
190
- justify-content: var(--pd-wizard-justify-content, center);
191
- flex-grow: 1;
192
-
193
- background-color: var(
194
- --pd-wizard-content-bg-col,
195
- var(--pd-default-bg-col)
196
- );
197
- padding: var(--pd-wizard-content-padding, 1em);
198
- overflow-y: var(--pd-wizard-content-scroll, auto);
199
- }
200
-
201
- .wiz-content-inner {
202
- background-color: var(
203
- --pd-wizard-content-inner-bg-col,
204
- var(--pd-default-bg-col)
205
- );
206
- max-width: var(--pd-wizard-content-max-width, 1024px);
207
- width: var(--pd-wizard-content-width, 75%);
208
- }
209
-
210
- .wiz-buttons {
211
- display: flex;
212
- justify-content: var(--pd-wizard-justify-buttons, space-around);
213
- flex-grow: 0;
214
- padding: 1em;
215
-
216
- background: linear-gradient(
217
- to top,
218
- var(--pd-wizard-buttons-bg-col1, var(--pd-default-light-col)) 0%,
219
- var(--pd-wizard-buttons-bg-col2, var(--pd-default-disabled-light-col))
220
- 100%
221
- );
222
- }
223
-
224
- :host(.bottom-rounded) .wiz-buttons {
225
- border-bottom-left-radius: var(--pd-wizard-bottom-borderradius, 5px);
226
- border-bottom-right-radius: var(--pd-wizard-bottom-borderradius, 5px);
227
- }
228
-
229
- /*
230
- * CSS for panel wizard
231
- */
232
- .wiz-panel-h {
233
- padding: var(--pd-wizard-header-panel-padding, 0);
234
- display: flex;
235
- align-items: center;
236
- justify-content: center;
237
- background-color: var(
238
- --pd-wizard-header-panel-bg-col,
239
- var(--pd-default-col)
240
- );
241
- position: relative;
242
- }
243
-
244
- .wiz-panel-h h1 {
245
- color: var(--pd-wizard-header-panel-title-col, white);
246
- padding: 0;
247
- margin: 0.8em 0 0.5em 0;
248
- font-size: var(--pd-wizard-header-font-size, 1.2em);
249
- font-family: var(--pd-default-font-title-family);
250
- }
251
-
252
- .panel-close-icon {
253
- --pd-icon-size: 2em;
254
- --pd-icon-col-active: white;
255
- cursor: pointer;
256
- position: absolute;
257
- right: 0px;
258
- top: 0px;
259
- }
260
-
261
- /* Size Elements for small width */
262
- @media (max-width: 700px) {
263
- .close {
264
- font-size: 0.7rem;
265
- --pd-icon-size: 1.2rem;
266
- top: 3px;
267
- right: 3px;
268
- }
269
- .title {
270
- margin-left: 50px;
271
- }
272
- }
273
- `
274
- ];
275
- __decorateClass([
276
- property({ type: Number })
277
- ], PdWizard.prototype, "currentNumber", 2);
278
- __decorateClass([
279
- property({ type: Array })
280
- ], PdWizard.prototype, "wizardSteps", 2);
281
- __decorateClass([
282
- property({ type: Boolean })
283
- ], PdWizard.prototype, "panelWizard", 2);
284
- __decorateClass([
285
- state()
286
- ], PdWizard.prototype, "_submited", 2);
287
- PdWizard = __decorateClass([
288
- customElement("pd-wizard"),
289
- localized()
290
- ], PdWizard);
291
- export {
292
- PdWizard
293
- };
8
+ export { PdWizard };
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@progressive-development/pd-wizard",
3
- "version": "0.6.19",
3
+ "version": "0.9.1",
4
4
  "description": "Webcomponent pd-wizard following open-wc recommendations",
5
5
  "author": "PD Progressive Development",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.js",
9
+ "type": "module",
9
10
  "types": "./dist/index.d.ts",
10
11
  "exports": {
11
12
  ".": "./dist/index.js",
@@ -20,60 +21,39 @@
20
21
  "README.md",
21
22
  "LICENSE"
22
23
  ],
24
+ "dependencies": {
25
+ "lit": "^3.3.1",
26
+ "@lit/localize": "^0.12.2",
27
+ "tslib": "^2.8.1",
28
+ "@progressive-development/pd-icon": "0.9.1",
29
+ "@progressive-development/pd-shared-styles": "0.3.0",
30
+ "@progressive-development/pd-forms": "0.9.1"
31
+ },
32
+ "customElements": "custom-elements.json",
33
+ "keywords": [
34
+ "pd",
35
+ "progressive",
36
+ "development",
37
+ "wizard",
38
+ "order",
39
+ "steps"
40
+ ],
23
41
  "scripts": {
24
42
  "analyze": "cem analyze --litelement --exclude dist,demo",
25
43
  "start": "vite",
26
44
  "build": "vite build",
27
45
  "preview": "vite preview",
28
46
  "clean": "rm -rf dist",
29
- "lint": "eslint --ext .ts,.html src --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
30
- "format": "eslint --ext .ts,.html src --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
47
+ "clean:all": "rm -rf dist node_modules pnpm-lock.yaml",
48
+ "lint": "eslint --ext .ts,.html src --ignore-path ../../../.eslintignore && prettier \"**/*.ts\" --check --ignore-path ../../../.eslintignore",
49
+ "lint:lit": "lit-analyzer",
50
+ "format": "eslint --ext .ts,.html src --fix --ignore-path ../../../.eslintignore && prettier \"**/*.ts\" --write --ignore-path ../../../.eslintignore",
31
51
  "test": "vitest run --coverage",
32
52
  "test:watch": "vitest --watch",
33
- "check": "npm run lint && npm run build",
34
- "prepublishOnly": "npm run clean && npm run check",
53
+ "check": "pnpm run lint && pnpm run lint:lit && pnpm run build",
35
54
  "localizeExtract": "lit-localize extract",
36
55
  "localizeBuild": "lit-localize build",
37
56
  "storybook": "storybook dev -p 6006",
38
57
  "build-storybook": "storybook build"
39
- },
40
- "dependencies": {
41
- "@lit/localize": "^0.12.2",
42
- "@progressive-development/pd-forms": "^0.8.6",
43
- "@progressive-development/pd-icon": "^0.7.6",
44
- "@progressive-development/pd-shared-styles": "^0.2.5",
45
- "lit": "^3.3.0"
46
- },
47
- "devDependencies": {
48
- "@chromatic-com/storybook": "^1.9.0",
49
- "@custom-elements-manifest/analyzer": "^0.4.17",
50
- "@lit/localize-tools": "^0.6.10",
51
- "@storybook/addon-essentials": "^8.6.14",
52
- "@storybook/addon-links": "^8.6.14",
53
- "@storybook/blocks": "^8.0.10",
54
- "@storybook/test": "^8.6.14",
55
- "@storybook/web-components": "^8.0.10",
56
- "@storybook/web-components-vite": "^8.6.14",
57
- "@typescript-eslint/eslint-plugin": "^8.32.1",
58
- "@typescript-eslint/parser": "^8.32.1",
59
- "eslint": "^8.57.1",
60
- "eslint-config-prettier": "^9.1.0",
61
- "eslint-plugin-storybook": "^0.8.0",
62
- "prettier": "^3.5.3",
63
- "rollup-plugin-visualizer": "^5.14.0",
64
- "storybook": "^8.6.14",
65
- "typescript": "^5.8.3",
66
- "vite": "^5.4.19",
67
- "vite-plugin-dts": "^4.5.4",
68
- "vitest": "^2.1.9"
69
- },
70
- "customElements": "custom-elements.json",
71
- "keywords": [
72
- "pd",
73
- "progressive",
74
- "development",
75
- "wizard",
76
- "order",
77
- "steps"
78
- ]
79
- }
58
+ }
59
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-steps.d.ts","sourceRoot":"","sources":["../src/pd-steps.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAO5D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;GAKG;AACH,qBACa,OAAQ,SAAQ,UAAU;IACrC;;OAEG;IAEH,KAAK,EAAE,YAAY,EAAE,CAAM;IAE3B;;OAEG;IAEH,aAAa,SAAO;IAEpB;;OAEG;IAEH,QAAQ,EAAE,QAAQ,GAAG,KAAK,CAAY;IAEtC,OAAgB,MAAM,EAAE,cAAc,CA2GpC;IAEO,MAAM;IAIf,OAAO,CAAC,aAAa;IAyCrB,OAAO,CAAC,YAAY;CAcrB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-wizard.d.ts","sourceRoot":"","sources":["../src/pd-wizard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAK5D,OAAO,0CAA0C,CAAC;AAClD,OAAO,wDAAwD,CAAC;AAOhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;GAeG;AACH,qBAEa,QAAS,SAAQ,UAAU;IACtC;;OAEG;IAEH,aAAa,SAAO;IAEpB;;OAEG;IAEH,WAAW,EAAE,YAAY,EAAE,CAAM;IAEjC;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAgB,MAAM,EAAE,cAAc,CAqJpC;IAEF,SAAS,CAAC,MAAM;IAiGhB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,YAAY;CAGrB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"steps.stories.d.ts","sourceRoot":"","sources":["../../src/stories/steps.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,gBAAgB,CAAC;AAExB,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;CAuBM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAU7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"wizard.stories.d.ts","sourceRoot":"","sources":["../../src/stories/wizard.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,iBAAiB,CAAC;AAEzB,KAAK,UAAU,GAAG;IAChB,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CA2B1B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAElC,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAkEzB,CAAC"}