@progressive-development/pd-wizard 0.1.61 → 0.1.62
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 +14 -11
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, ICON_ARROW_BACK, ICON_CAMERA, ICON_NEXT, ICON_PREVIOUS, ICON_XCLOSE } from '@progressive-development/pd-icon/src/PdIcon.js';
|
|
10
|
+
import { ICON_CLOSE as CLOSEICON, ICON_ARROW_BACK, ICON_CAMERA, ICON_CHECKBOX, ICON_NEXT, ICON_PREVIOUS, 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';
|
|
@@ -170,9 +170,14 @@ export class PdWizard extends LitElement {
|
|
|
170
170
|
cursor: pointer;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
.next-arrow {
|
|
174
|
+
transform: rotate(180deg);
|
|
175
|
+
margin-right: 1.8em;
|
|
176
|
+
padding-right: 0.5em;
|
|
177
|
+
}
|
|
178
|
+
|
|
173
179
|
.panel-close-icon {
|
|
174
180
|
--pd-icon-size: 3em;
|
|
175
|
-
padding-left: 1.8em;
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
|
|
@@ -218,19 +223,17 @@ export class PdWizard extends LitElement {
|
|
|
218
223
|
? this.wizardSteps[this.currentNumber - 1].title
|
|
219
224
|
: 'No-Title'}</h1>
|
|
220
225
|
<div class="header-icons">
|
|
226
|
+
|
|
221
227
|
<pd-icon icon="${ICON_ARROW_BACK}" ?disabled="${this.currentNumber === 1}"
|
|
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}"
|
|
228
|
+
title="Previous Step" activeIcon @click="${this._previousStep}"></pd-icon>
|
|
229
|
+
<pd-icon class="next-arrow" icon="${ICON_ARROW_BACK}" ?disabled="${this.wizardSteps[this.currentNumber - 1].next === false || this.currentNumber === this.wizardSteps.length}"
|
|
226
230
|
title="Next Step" activeIcon @click="${this._nextStep}"></pd-icon>
|
|
227
|
-
|
|
228
|
-
<pd-icon icon="${
|
|
229
|
-
title="Submit" activeIcon @click="${this._submit}"></pd-icon>
|
|
230
|
-
`}
|
|
231
|
-
|
|
231
|
+
|
|
232
|
+
<pd-icon class="panel-close-icon" ?disabled="${this.currentNumber !== this.wizardSteps.length}"
|
|
233
|
+
title="Submit" activeIcon icon="${ICON_CHECKBOX}" @click="${this._submit}"></pd-icon>
|
|
232
234
|
<pd-icon class="panel-close-icon"
|
|
233
235
|
title="Close" activeIcon icon="${ICON_XCLOSE}" @click="${this._closeWizard}"></pd-icon>
|
|
236
|
+
|
|
234
237
|
</div>
|
|
235
238
|
</div>
|
|
236
239
|
` : html`
|