@progressive-development/pd-wizard 0.1.61 → 0.1.63
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/package.json +1 -1
- package/src/PdWizard.js +31 -56
package/package.json
CHANGED
package/src/PdWizard.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { LitElement, html, css } from 'lit';
|
|
8
8
|
import { msg, updateWhenLocaleChanges } from '@lit/localize';
|
|
9
9
|
|
|
10
|
-
import { ICON_CLOSE as CLOSEICON,
|
|
10
|
+
import { ICON_CLOSE as CLOSEICON, ICON_XCLOSE } from '@progressive-development/pd-icon/src/PdIcon.js';
|
|
11
11
|
|
|
12
12
|
import '@progressive-development/pd-icon/pd-icon.js';
|
|
13
13
|
import '@progressive-development/pd-forms/pd-button.js';
|
|
@@ -156,13 +156,8 @@ export class PdWizard extends LitElement {
|
|
|
156
156
|
font-family: var(--pd-default-font-title-family);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
.
|
|
160
|
-
|
|
161
|
-
align-items: center;
|
|
162
|
-
gap: 0.2em;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.header-icons pd-icon {
|
|
159
|
+
.panel-close-icon {
|
|
160
|
+
--pd-icon-size: 3em;
|
|
166
161
|
--pd-icon-stroke-col-active: var(--pd-default-col);
|
|
167
162
|
--pd-icon-col-active: var(--pd-default-light-col);
|
|
168
163
|
--pd-icon-stroke-col: var(--pd-default-col);
|
|
@@ -170,11 +165,6 @@ export class PdWizard extends LitElement {
|
|
|
170
165
|
cursor: pointer;
|
|
171
166
|
}
|
|
172
167
|
|
|
173
|
-
.panel-close-icon {
|
|
174
|
-
--pd-icon-size: 3em;
|
|
175
|
-
padding-left: 1.8em;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
168
|
|
|
179
169
|
/* Size Elements for small width */
|
|
180
170
|
@media (max-width: 700px) {
|
|
@@ -217,21 +207,8 @@ export class PdWizard extends LitElement {
|
|
|
217
207
|
<h1>${this.currentNumber >= 1 && this.wizardSteps
|
|
218
208
|
? this.wizardSteps[this.currentNumber - 1].title
|
|
219
209
|
: 'No-Title'}</h1>
|
|
220
|
-
<
|
|
221
|
-
|
|
222
|
-
title="Previous Step" activeIcon @click="${this._previousStep}"></pd-icon>
|
|
223
|
-
|
|
224
|
-
${this.currentNumber !== this.wizardSteps.length ? html`
|
|
225
|
-
<pd-icon style="transform: rotate(180deg);" icon="${ICON_ARROW_BACK}" ?disabled="${this.wizardSteps[this.currentNumber - 1].next === false}"
|
|
226
|
-
title="Next Step" activeIcon @click="${this._nextStep}"></pd-icon>
|
|
227
|
-
` : html`
|
|
228
|
-
<pd-icon icon="${ICON_CAMERA}"
|
|
229
|
-
title="Submit" activeIcon @click="${this._submit}"></pd-icon>
|
|
230
|
-
`}
|
|
231
|
-
|
|
232
|
-
<pd-icon class="panel-close-icon"
|
|
233
|
-
title="Close" activeIcon icon="${ICON_XCLOSE}" @click="${this._closeWizard}"></pd-icon>
|
|
234
|
-
</div>
|
|
210
|
+
<pd-icon class="panel-close-icon"
|
|
211
|
+
title="Close" activeIcon icon="${ICON_XCLOSE}" @click="${this._closeWizard}"></pd-icon>
|
|
235
212
|
</div>
|
|
236
213
|
` : html`
|
|
237
214
|
<div class="wiz-title">
|
|
@@ -275,36 +252,34 @@ export class PdWizard extends LitElement {
|
|
|
275
252
|
</div>
|
|
276
253
|
|
|
277
254
|
</div>
|
|
278
|
-
|
|
279
|
-
${!this.panelWizard ? html`
|
|
255
|
+
|
|
280
256
|
<div class="wiz-buttons">
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
257
|
+
${this.currentNumber >= 1 && this.wizardSteps
|
|
258
|
+
? html`
|
|
259
|
+
<pd-button
|
|
260
|
+
@button-clicked="${this._previousStep}"
|
|
261
|
+
text="${msg('Zurück', {desc: '#pd.wizard.back#'})}"
|
|
262
|
+
style="visibility: ${this.currentNumber === 1
|
|
263
|
+
? 'hidden'
|
|
264
|
+
: 'visible'};"
|
|
265
|
+
></pd-button>
|
|
266
|
+
${this.currentNumber !== this.wizardSteps.length &&
|
|
267
|
+
this.wizardSteps[this.currentNumber - 1].next !== false
|
|
268
|
+
? html`<pd-button
|
|
269
|
+
@button-clicked="${this._nextStep}"
|
|
270
|
+
text="${msg('Weiter', {desc: '#pd.wizard.next#'})}"
|
|
271
|
+
></pd-button>`
|
|
272
|
+
: ''}
|
|
273
|
+
${this.currentNumber === this.wizardSteps.length
|
|
274
|
+
? html`<pd-button
|
|
275
|
+
primary
|
|
276
|
+
@button-clicked="${this._submit}"
|
|
277
|
+
text="${msg('Absenden', {desc: '#pd.wizard.submit#'})}"
|
|
278
|
+
></pd-button>`
|
|
279
|
+
: ''}
|
|
280
|
+
`
|
|
281
|
+
: ''}
|
|
306
282
|
</div>
|
|
307
|
-
` : ''}
|
|
308
283
|
`;
|
|
309
284
|
}
|
|
310
285
|
return '';
|