@progressive-development/pd-contact 0.1.42 → 0.1.43

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 +1 -1
  2. package/src/PdContact.js +9 -0
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Progressive Development Contact component",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.1.42",
6
+ "version": "0.1.43",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdContact.js CHANGED
@@ -148,6 +148,7 @@
148
148
  class="quarter2"
149
149
  label="Voornaam"
150
150
  valueName="firstName"
151
+ value="${this.contact ? this.contact.firstName : ""}"
151
152
  autoCompleteName="given-name"
152
153
  required
153
154
  ></pd-input>
@@ -156,6 +157,7 @@
156
157
  class="quarter2"
157
158
  label="Naam"
158
159
  valueName="lastName"
160
+ value="${this.contact ? this.contact.lastName : ""}"
159
161
  autoCompleteName="family-name"
160
162
  required
161
163
  ></pd-input>
@@ -167,6 +169,7 @@
167
169
  class="quarter3"
168
170
  label="Straat"
169
171
  valueName="street"
172
+ value="${this.contact ? this.contact.street : ""}"
170
173
  autoCompleteName="street-address"
171
174
  required
172
175
  ></pd-input>
@@ -175,6 +178,7 @@
175
178
  class="quarter1"
176
179
  label="Nr"
177
180
  valueName="streetNr"
181
+ value="${this.contact ? this.contact.streetNr : ""}"
178
182
  required
179
183
  ></pd-input>
180
184
  </pd-form-row>
@@ -183,6 +187,7 @@
183
187
  class="quarter4"
184
188
  id="additionalHintId"
185
189
  label="Extra informatie"
190
+ value="${this.contact ? this.contact.additionalHint : ""}"
186
191
  ></pd-input>
187
192
  </pd-form-row>
188
193
  <pd-form-row class="contact-form">
@@ -205,6 +210,7 @@
205
210
  label="Postcode"
206
211
  field-type="number"
207
212
  valueName="zip"
213
+ value="${this.contact ? this.contact.zip : ""}"
208
214
  autoCompleteName="postal-code"
209
215
  required
210
216
  ></pd-input>
@@ -214,6 +220,7 @@
214
220
  class="quarter2"
215
221
  label="Plaats"
216
222
  valueName="city"
223
+ value="${this.contact ? this.contact.city : ""}"
217
224
  autoCompleteName="locality"
218
225
  required
219
226
  ></pd-input>
@@ -225,6 +232,7 @@
225
232
  label="Telefoon"
226
233
  name="phone"
227
234
  valueName="phone1"
235
+ value="${this.contact ? this.contact.phone1 : ""}"
228
236
  field-type="phone"
229
237
  autoCompleteName="tel"
230
238
  required
@@ -235,6 +243,7 @@
235
243
  label="E-mail"
236
244
  field-type="mail"
237
245
  valueName="email"
246
+ value="${this.contact ? this.contact.email : ""}"
238
247
  autoCompleteName="email"
239
248
  required
240
249
  ></pd-input>