@progressive-development/pd-wizard 0.0.21 → 0.0.23

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 CHANGED
@@ -14,7 +14,7 @@
14
14
  "order",
15
15
  "steps"
16
16
  ],
17
- "version": "0.0.21",
17
+ "version": "0.0.23",
18
18
  "main": "index.js",
19
19
  "module": "index.js",
20
20
  "scripts": {
package/src/PdSteps.js CHANGED
@@ -45,7 +45,10 @@ class PdSteps extends LitElement {
45
45
  --my-hr-bg-color: var(--squi-hr-bg-color, #fefefe);
46
46
 
47
47
  display: block;
48
- background-color: var(--my-bg-color);
48
+ background-color: var(--my-bg-color);
49
+
50
+ border-bottom-left-radius: var(--pd-step-borderradius, 0);
51
+ border-bottom-right-radius: var(--pd-step-borderradius, 0);
49
52
 
50
53
  /* Hack => Wegen HR Linie wird das elemt 10 nach oben geschoben, sonst immer Abstand <hr> block display etc. => wie zu lösen? */
51
54
  margin-top: -10px;
package/src/PdWizard.js CHANGED
@@ -8,7 +8,7 @@ import { LitElement, html, css } from 'lit';
8
8
  import '@progressive-development/pd-forms/pd-button.js';
9
9
  import './PdSteps.js';
10
10
 
11
- // TODO: dont get it running with attribute???
11
+ // TODO: dont get it running with attribute??? Nachtrag: Use slot here now
12
12
  export const ticomiLogo = html`
13
13
  <svg
14
14
  xmlns="http://www.w3.org/2000/svg"
@@ -112,8 +112,8 @@ export class PdWizard extends LitElement {
112
112
  :host {
113
113
  --my-font: var(--app-font, Oswald);
114
114
 
115
- --my-header-background-color: var(--squi-test, #084c61);
116
- --my-header-text-color: var(--squi-test, white);
115
+ --my-header-background-color: var(--pd-wizard-header-bg-color, #084c61);
116
+ --my-header-text-color: var(--pd-wizard-header-txt-color, white);
117
117
 
118
118
  --my-footer-background-color: var(--squi-test, #fefefe);
119
119
 
@@ -122,6 +122,13 @@ export class PdWizard extends LitElement {
122
122
  height: 100%;
123
123
  }
124
124
 
125
+ :host([roundedFullContent]) .layout-container {
126
+ grid-template-areas:
127
+ 'header header header'
128
+ 'content content content'
129
+ 'footer footer footer';
130
+ }
131
+
125
132
  /* Layout Grid for the Wizard Component
126
133
  Wird hier für die "Text-Bildschirmgröße" verwendet, umstellen/gleichziehen => verschiedene Implementierungen, die Flex Variante (ticomi-web) scheint am schlankesten...
127
134
  */
@@ -143,7 +150,7 @@ export class PdWizard extends LitElement {
143
150
 
144
151
  /* Grid Area positions for layout container above */
145
152
  .wiz-header {
146
- grid-area: header;
153
+ grid-area: header;
147
154
  }
148
155
  .wiz-content {
149
156
  grid-area: content;
@@ -162,13 +169,14 @@ export class PdWizard extends LitElement {
162
169
  background-color: var(--my-footer-background-color);
163
170
  }
164
171
 
165
- .wiz-breadcrumbs {
172
+ .wiz-breadcrumbs {
166
173
  }
167
174
 
168
175
  .wiz-title {
176
+ position: relative;
169
177
  text-align: center;
170
178
  background-color: var(--my-header-background-color);
171
- height: 80px;
179
+ height: var(--pd-wizard-title-height, 80px);
172
180
  line-height: 80px;
173
181
  padding-left: 80px;
174
182
  }
@@ -178,21 +186,12 @@ export class PdWizard extends LitElement {
178
186
  font-size: 1.8em;
179
187
  font-weight: bolder;
180
188
  color: var(--my-header-text-color);
181
- }
182
-
183
- /* in Umstellung, Logo als Slot übergeben... */
184
- .logo {
185
- max-width: 8rem;
186
- width: 8rem; /* wird sonst im Chrome nicht angezeigt*/
187
- position: absolute;
188
- left: 20px;
189
- top: 10px;
190
- }
189
+ }
191
190
 
192
191
  /* The Close Button */
193
192
  .close {
194
193
  position: absolute;
195
- color: #fefefe;
194
+ color: var(--my-header-text-color, white);
196
195
  font-size: 2.5em;
197
196
  font-weight: bold;
198
197
  line-height: 1em;
@@ -246,6 +245,7 @@ export class PdWizard extends LitElement {
246
245
  currentNumber: { type: Number },
247
246
  wizardSteps: { Array },
248
247
  logo: { type: Object },
248
+ roundedFullContent: { type: Boolean, reflect: true },
249
249
  };
250
250
  }
251
251
 
@@ -253,6 +253,7 @@ export class PdWizard extends LitElement {
253
253
  super();
254
254
  this.currentNumber = -99;
255
255
  this.wizardSteps = [];
256
+ this.roundedFullContent = false;
256
257
  }
257
258
 
258
259
  render() {
@@ -261,8 +262,7 @@ export class PdWizard extends LitElement {
261
262
  <div class="layout-container">
262
263
  <div class="wiz-header">
263
264
  <div class="wiz-title">
264
- ${ticomiLogo}
265
-
265
+ <slot name="slotLogo"></slot>
266
266
  <span class="title"
267
267
  >${this.currentNumber >= 1 && this.wizardSteps
268
268
  ? this.wizardSteps[this.currentNumber - 1].title