@progressive-development/pd-wizard 0.0.10 → 0.0.12

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/PdWizard.js +9 -14
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "order",
15
15
  "steps"
16
16
  ],
17
- "version": "0.0.10",
17
+ "version": "0.0.12",
18
18
  "main": "index.js",
19
19
  "module": "index.js",
20
20
  "scripts": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "lit": "^2.0.2",
32
- "@progressive-development/pd-forms": "0.0.14"
32
+ "@progressive-development/pd-forms": "0.0.15"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@custom-elements-manifest/analyzer": "^0.4.17",
package/src/PdWizard.js CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { LitElement, html, css } from 'lit';
7
7
 
8
- import '@progressive-development/pd-forms/PdButton.js';
8
+ import '@progressive-development/pd-forms/pd-button.js';
9
9
  import './PdSteps.js';
10
10
 
11
11
  // TODO: dont get it running with attribute???
@@ -180,13 +180,14 @@ export class PdWizard extends LitElement {
180
180
  color: var(--my-header-text-color);
181
181
  }
182
182
 
183
+ /* in Umstellung, Logo als Slot übergeben... */
183
184
  .logo {
184
185
  max-width: 8rem;
185
186
  width: 8rem; /* wird sonst im Chrome nicht angezeigt*/
186
187
  position: absolute;
187
188
  left: 20px;
188
189
  top: 10px;
189
- }
190
+ }
190
191
 
191
192
  /* The Close Button */
192
193
  .close {
@@ -220,11 +221,6 @@ export class PdWizard extends LitElement {
220
221
  font-size: 1.5em;
221
222
  }
222
223
 
223
- .logo {
224
- max-width: 6rem;
225
- width: 6rem; /* wird sonst im Chrome nicht angezeigt*/
226
- }
227
-
228
224
  .close {
229
225
  font-size: 1.5em;
230
226
  right: 5px;
@@ -257,7 +253,6 @@ export class PdWizard extends LitElement {
257
253
  super();
258
254
  this.currentNumber = -99;
259
255
  this.wizardSteps = [];
260
- this.logo = {};
261
256
  }
262
257
 
263
258
  render() {
@@ -306,26 +301,26 @@ export class PdWizard extends LitElement {
306
301
  <div class="wiz-buttons">
307
302
  ${this.currentNumber >= 1 && this.wizardSteps
308
303
  ? html`
309
- <squi-button
304
+ <pd-button
310
305
  @click="${this._previousStep}"
311
306
  text="Terug"
312
307
  style="visibility: ${this.currentNumber === 1
313
308
  ? 'hidden'
314
309
  : 'visible'};"
315
- ></squi-button>
310
+ ></pd-button>
316
311
  ${this.currentNumber !== this.wizardSteps.length &&
317
312
  this.wizardSteps[this.currentNumber - 1].next !== false
318
- ? html`<squi-button
313
+ ? html`<pd-button
319
314
  @click="${this._nextStep}"
320
315
  text="Volgende"
321
- ></squi-button>`
316
+ ></pd-button>`
322
317
  : ''}
323
318
  ${this.currentNumber === this.wizardSteps.length
324
- ? html`<squi-button
319
+ ? html`<pd-button
325
320
  primary
326
321
  @click="${this._submit}"
327
322
  text="Order"
328
- ></squi-button>`
323
+ ></pd-button>`
329
324
  : ''}
330
325
  `
331
326
  : ''}