comand-component-library 4.3.26 → 4.3.28

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 (50) hide show
  1. package/dist/comand-component-library.css +1 -1
  2. package/dist/comand-component-library.js +8574 -8438
  3. package/dist/styles/demopage-only.css +48 -0
  4. package/package.json +2 -2
  5. package/src/ComponentLibrary.vue +1923 -1881
  6. package/src/assets/data/text-image-block.json +3 -1
  7. package/src/assets/data/thumbnail-scroller-images.json +1 -1
  8. package/src/components/CmdAccordion.vue +1 -1
  9. package/src/components/CmdAddressData.vue +60 -72
  10. package/src/components/CmdBankAccountData.vue +55 -33
  11. package/src/components/CmdBasicForm.vue +19 -7
  12. package/src/components/CmdBox.vue +8 -0
  13. package/src/components/CmdBoxWrapper.vue +14 -0
  14. package/src/components/CmdBreadcrumbs.vue +10 -27
  15. package/src/components/CmdCompanyLogo.vue +3 -0
  16. package/src/components/CmdContainer.vue +21 -2
  17. package/src/components/CmdCookieDisclaimer.vue +5 -5
  18. package/src/components/CmdFakeSelect.vue +27 -17
  19. package/src/components/CmdFancyBox.vue +73 -85
  20. package/src/components/CmdFootnote.vue +2 -1
  21. package/src/components/CmdForm.vue +118 -160
  22. package/src/components/CmdFormFilters.vue +1 -0
  23. package/src/components/CmdGoogleMaps.vue +9 -2
  24. package/src/components/CmdHeadline.vue +10 -9
  25. package/src/components/CmdImage.vue +44 -21
  26. package/src/components/CmdImageGallery.vue +13 -8
  27. package/src/components/CmdLink.vue +20 -5
  28. package/src/components/CmdList.vue +7 -2
  29. package/src/components/CmdLoginForm.vue +156 -255
  30. package/src/components/CmdMailToolEntry.vue +2 -1
  31. package/src/components/CmdMultistepFormProgressBar.vue +2 -2
  32. package/src/components/CmdMultistepFormWrapper.vue +2 -6
  33. package/src/components/CmdOpeningHours.vue +14 -2
  34. package/src/components/CmdSidebar.vue +2 -2
  35. package/src/components/CmdSiteWrapper.vue +66 -58
  36. package/src/components/CmdSlideshow.vue +5 -0
  37. package/src/components/CmdSocialNetworks.vue +27 -17
  38. package/src/components/CmdSwitchLanguage.vue +16 -19
  39. package/src/components/CmdSystemMessage.vue +71 -66
  40. package/src/components/CmdTable.vue +42 -24
  41. package/src/components/CmdTabs.vue +15 -7
  42. package/src/components/CmdTag.vue +28 -23
  43. package/src/components/CmdTextImageBlock.vue +62 -53
  44. package/src/components/CmdThumbnailScroller.vue +18 -6
  45. package/src/components/CmdToast.vue +60 -17
  46. package/src/components/CmdToggleDarkMode.vue +31 -32
  47. package/src/components/CmdTooltip.vue +33 -20
  48. package/src/components/CmdUploadForm.vue +212 -183
  49. package/src/components/CmdWidthLimitationWrapper.vue +19 -3
  50. package/dist/styles/templates/casual.css +0 -3
@@ -1,32 +1,32 @@
1
1
  <template>
2
2
  <!-- begin CmdLoginForm ---------------------------------------------------------------------------------------- -->
3
3
  <fieldset v-if="!sendLogin" class="cmd-login-form flex-container">
4
- <legend :class="{hidden : !legendLoginForm.show, 'align-left': legendLoginForm.align === 'left'}">
4
+ <legend :class="{ hidden: !legendLoginForm.show, 'align-left': legendLoginForm.align === 'left' }">
5
5
  {{ legendLoginForm.text }}
6
6
  </legend>
7
7
 
8
- <!-- begin CmdHeadline -->
9
- <CmdHeadline
10
- v-if="cmdHeadlineLoginForm"
11
- v-bind="cmdHeadlineLoginForm"
12
- />
13
- <!-- end CmdHeadline -->
14
-
8
+ <CmdHeadline v-if="cmdHeadlineLoginFormProperties.show && cmdHeadlineLoginFormProperties.headlineText" v-bind="cmdHeadlineLoginFormProperties" />
9
+
15
10
  <!-- begin Google-Login-Button -->
16
- <button v-if="enableLoginWithGoogle" class="gsi-material-button stretch-on-small-devices" @click="loginWithGoogle">
11
+ <button v-if="enableLoginWithGoogle" class="gsi-material-button stretch-on-small-devices"
12
+ @click="loginWithGoogle">
17
13
  <div class="gsi-material-button-state"></div>
18
14
  <div class="gsi-material-button-content-wrapper">
19
15
  <div class="gsi-material-button-icon">
20
16
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"
21
- xmlns:xlink="http://www.w3.org/1999/xlink" style="display: block;">
17
+ xmlns:xlink="http://www.w3.org/1999/xlink" style="display: block;">
22
18
  <path fill="#EA4335"
23
- d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path>
19
+ d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z">
20
+ </path>
24
21
  <path fill="#4285F4"
25
- d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path>
22
+ d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z">
23
+ </path>
26
24
  <path fill="#FBBC05"
27
- d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path>
25
+ d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z">
26
+ </path>
28
27
  <path fill="#34A853"
29
- d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path>
28
+ d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z">
29
+ </path>
30
30
  <path fill="none" d="M0 0h48v48H0z"></path>
31
31
  </svg>
32
32
  </div>
@@ -37,57 +37,22 @@
37
37
  <!-- end Google-Login-Button -->
38
38
 
39
39
  <!-- begin Facebook-Login-Button -->
40
- <div v-if="enableLoginWithFacebook"
41
- class="fb-login-button stretch-on-small-devices"
42
- data-width="200"
43
- data-size=""
44
- data-button-type=""
45
- data-layout=""
46
- data-auto-logout-link="false"
47
- data-use-continue-as="false">
40
+ <div v-if="enableLoginWithFacebook" class="fb-login-button stretch-on-small-devices" data-width="200"
41
+ data-size="" data-button-type="" data-layout="" data-auto-logout-link="false" data-use-continue-as="false">
48
42
  </div>
49
43
  <!-- end Facebook-Login-Button -->
50
44
 
51
- <!-- begin default-login-button -->
52
- <button v-if="!showLogin"
53
- type="button"
54
- class="button stretch-on-small-devices"
55
- v-bind="buttonLoginWithYourDataDefaultOptions"
56
- @click="showLogin = true">
57
- <!-- begin CmdIcon -->
58
- <CmdIcon
59
- v-if="buttonLoginWithYourDataDefaultOptions.icon?.iconClass"
60
- :iconClass="buttonLoginWithYourDataDefaultOptions.icon.iconClass"
61
- :type="buttonLoginWithYourDataDefaultOptions.icon.iconType"
62
- :title="buttonLoginWithYourDataDefaultOptions.icon.tooltip"
63
- />
64
- <!-- end CmdIcon -->
65
- <span v-if="buttonLoginWithYourDataDefaultOptions.text">{{ buttonLoginWithYourDataDefaultOptions.text }}</span>
66
- </button>
67
- <!-- end default-login-button -->
45
+ <!-- send "login with your data"-button -->
46
+ <CmdLink v-if="!showLogin" v-bind="cmdLinkLoginWithYourDataProperties" @click="showLogin = true" />
47
+ <!-- end "login with your data"-button -->
68
48
 
69
49
  <!-- begin form elements -->
70
- <div v-if="showLogin" :class="['login-fields flex-container', {'vertical': orientation === 'vertical'}]">
71
- <!-- begin CmdFormElement -->
72
- <CmdFormElement
73
- element="input"
74
- type="text"
75
- ref="username"
76
- v-model="username"
77
- v-bind="cmdFormElementUsernameOptions"
78
- @validationStatusChange="checkValidationStatus($event, 'username')"
79
- />
80
- <!-- end CmdFormElement -->
81
-
82
- <!-- begin CmdFormElement -->
83
- <CmdFormElement
84
- element="input"
85
- type="password"
86
- v-model="password"
87
- v-bind="cmdFormElementPasswordOptions"
88
- @validationStatusChange="checkValidationStatus($event, 'password')"
89
- />
90
- <!-- end CmdFormElement -->
50
+ <div v-if="showLogin" :class="['login-fields flex-container', { 'vertical': orientation === 'vertical' }]">
51
+ <CmdFormElement element="input" type="text" ref="username" v-model="username"
52
+ v-bind="cmdFormElementUsernameProperties"
53
+ @validationStatusChange="checkValidationStatus($event, 'username')" />
54
+ <CmdFormElement element="input" type="password" v-model="password" v-bind="cmdFormElementPasswordProperties"
55
+ @validationStatusChange="checkValidationStatus($event, 'password')" />
91
56
  </div>
92
57
  <!-- end form elements -->
93
58
 
@@ -96,124 +61,57 @@
96
61
  <!-- end named slot for login-form -->
97
62
 
98
63
  <div class="option-wrapper flex-container">
99
- <div class="flex-container reset-flex no-wrap-on-small-devices justify-content-space-around" v-if="linkForgotPassword || linkCreateAccount">
64
+ <div v-if="cmdLinkForgotPasswordProperties.show || cmdLinkCreateAccountProperties.show"
65
+ class="flex-container reset-flex no-wrap-on-small-devices justify-content-space-around">
100
66
  <!-- begin link for 'forgot password' -->
101
- <a v-if="linkForgotPassword" href="#" @click.prevent="toggleSendLoginView">
102
- <!-- begin CmdIcon -->
103
- <CmdIcon
104
- v-if="linkForgotPassword.icon?.show && linkForgotPassword.icon?.iconClass"
105
- :iconClass="linkForgotPassword.icon.iconClass"
106
- :type="linkForgotPassword.icon.iconType"
107
- :title="linkForgotPassword.icon.tooltip"
108
- />
109
- <!-- end CmdIcon -->
110
- <span v-if="linkForgotPassword.text">{{ linkForgotPassword.text }}</span>
111
- </a>
67
+ <CmdLink @click="toggleSendLoginView"
68
+ v-bind="cmdLinkForgotPasswordProperties"
69
+ />
112
70
  <!-- end link for 'forgot password' -->
113
71
 
114
72
  <!-- begin link for 'create account' -->
115
- <template v-if="linkCreateAccount">
116
- <!-- begin CmdLink -->
117
- <CmdLink
118
- :linkType="linkCreateAccount.linkType"
119
- :path="linkCreateAccount.path"
120
- :text="linkCreateAccount.text"
121
- :icon="{
122
- iconClass: linkCreateAccount.icon?.iconClass,
123
- tooltip: linkCreateAccount.icon?.tooltip,
124
- position: linkCreateAccount.icon?.position
125
- }"
126
- />
127
- <!-- end CmdLink -->
73
+ <template v-if="cmdLinkCreateAccountProperties.show">
74
+ <CmdLink v-bind="cmdLinkCreateAccountProperties" />
128
75
  </template>
129
76
  <!-- end link for 'create account' -->
130
77
  </div>
131
78
 
132
- <!-- begin link-type 'button' -->
133
- <button
134
- v-if="buttonLoginDefaultOptions.linkType === 'button'"
135
- :type="buttonLoginDefaultOptions.type === 'submit' ? 'submit' : 'button'"
136
- v-bind="buttonLoginOptions"
137
- :class="['button stretch-on-small-devices', { primary: buttonLoginDefaultOptions.primary }]"
138
- @click="onClick"
139
- :disabled="buttonLoginDisabled"
140
- >
141
- <!-- begin CmdIcon -->
142
- <CmdIcon
143
- v-if="buttonLoginDefaultOptions.icon.iconClass"
144
- :iconClass="buttonLoginDefaultOptions.icon.iconClass"
145
- :type="buttonLoginDefaultOptions.icon.iconType"
146
- :title="buttonLoginDefaultOptions.icon.tooltip"
147
- />
148
- <!-- end CmdIcon -->
149
- <span v-if="buttonLoginDefaultOptions.text">{{ buttonLoginDefaultOptions.text }}</span>
150
- </button>
151
- <!-- begin link-type 'button' -->
79
+ <CmdLink
80
+ v-bind="cmdLinkLoginProperties"
81
+ :disabled="buttonLoginDisabled"
82
+ />
152
83
  </div>
153
84
  </fieldset>
154
85
  <!-- end login-form -->
155
86
 
156
87
  <!-- begin send-login-form -->
157
88
  <fieldset v-if="sendLogin" class="cmd-login-form flex-container">
158
- <legend :class="{hidden : !legendForgotLoginForm.show, 'align-left': legendForgotLoginForm.align === 'left'}">
89
+ <legend :class="{ hidden: !legendForgotLoginForm.show, 'align-left': legendForgotLoginForm.align === 'left' }">
159
90
  {{ legendForgotLoginForm.text }}
160
91
  </legend>
161
- <!-- begin CmdHeadline -->
162
- <CmdHeadline
163
- v-if="cmdHeadlineSendLoginForm"
164
- v-bind="cmdHeadlineSendLoginForm"
165
- />
166
- <!-- end CmdHeadline -->
167
92
 
168
- <!-- begin CmdFormElement -->
169
- <CmdFormElement
170
- ref="sendPassword"
171
- element="input"
93
+ <CmdHeadline v-if="cmdHeadlineSendLoginFormProperties.show && cmdHeadlineSendLoginFormProperties.headlineText" v-bind="cmdHeadlineSendLoginFormProperties" />
94
+
95
+ <CmdFormElement
96
+ ref="sendPassword"
97
+ element="input"
172
98
  type="email"
173
- @validationStatusChange="checkValidationStatus($event, 'email')"
99
+ @validationStatusChange="checkValidationStatus($event, 'email')"
174
100
  v-model="sendLoginMail"
175
- v-bind="cmdFormElementSendLoginOptions"
101
+ v-bind="cmdFormElementSendLoginProperties"
176
102
  />
177
- <!-- end CmdFormElement -->
178
103
 
179
104
  <!-- begin slot for send-login-form -->
180
105
  <slot name="send-login"></slot>
181
106
  <!-- end slot for send-login-form -->
182
107
 
183
108
  <div class="option-wrapper flex-container">
184
- <a href="#" @click.prevent="toggleSendLoginView">
185
- <!-- begin CmdIcon -->
186
- <CmdIcon
187
- v-if="linkBackToLogin.icon && linkBackToLogin.icon.show && linkBackToLogin.icon.iconClass"
188
- :iconClass="linkBackToLogin.icon.iconClass"
189
- :type="linkBackToLogin.icon.iconType"
190
- :title="linkBackToLogin.icon.tooltip"
191
- />
192
- <!-- end CmdIcon -->
193
-
194
- <span>
195
- {{ linkBackToLogin.text }}
196
- </span>
197
- </a>
198
-
199
- <!-- begin link-type 'button' -->
200
- <button
201
- v-if="buttonSendLoginOptions.linkType === 'button'"
202
- v-bind="buttonSendLoginOptions"
203
- :type="buttonSendLoginOptions.type === 'submit' ? 'submit' : 'button'"
204
- :class="['button stretch-on-small-devices', { primary: buttonSendLoginOptions.primary }]"
205
- :disabled="buttonSendLoginDisabled"
206
- >
207
- <!-- begin CmdIcon -->
208
- <CmdIcon
209
- v-if="buttonSendLoginOptions.icon?.iconClass"
210
- :iconClass="buttonSendLoginOptions.icon?.iconClass"
211
- :title="buttonSendLoginOptions.icon?.tooltip"
212
- />
213
- <!-- end CmdIcon -->
214
- <span v-if="buttonSendLoginOptions.text">{{ buttonSendLoginOptions.text }}</span>
215
- </button>
216
- <!-- end link-type 'button' -->
109
+ <CmdLink v-bind="cmdLinkBackToLoginProperties" @click="toggleSendLoginView" />
110
+
111
+ <CmdLink
112
+ v-bind="cmdLinkSendLoginProperties"
113
+ :disabled="buttonSendLoginDisabled"
114
+ />
217
115
  </div>
218
116
  </fieldset>
219
117
  <!-- end CmdLoginForm ---------------------------------------------------------------------------------------- -->
@@ -221,7 +119,7 @@
221
119
 
222
120
  <script>
223
121
  // import utilities
224
- import {getRoute} from "../utilities.js"
122
+ import { getRoute } from "../utilities.js"
225
123
 
226
124
  export default {
227
125
  name: "CmdLoginForm",
@@ -239,11 +137,10 @@ export default {
239
137
  /**
240
138
  * activate if login with google should be enabled
241
139
  */
242
- enableLoginWithGoogle:
243
- {
244
- type: Boolean,
245
- default: false
246
- },
140
+ enableLoginWithGoogle: {
141
+ type: Boolean,
142
+ default: false
143
+ },
247
144
  /**
248
145
  * activate if login with facebook should be enabled
249
146
  */
@@ -286,8 +183,7 @@ export default {
286
183
  */
287
184
  legendLoginForm: {
288
185
  type: Object,
289
- default
290
- () {
186
+ default() {
291
187
  return {
292
188
  show: true,
293
189
  align: "right",
@@ -303,142 +199,107 @@ export default {
303
199
  */
304
200
  legendForgotLoginForm: {
305
201
  type: Object,
306
- default
307
- () {
202
+ default() {
308
203
  return {
309
204
  show: true,
310
205
  align: "right",
311
206
  text: "Forgot login form"
312
207
  }
313
208
  }
314
- }
315
- ,
209
+ },
316
210
  /**
317
- * properties for CmdHeadline-component for login-form
211
+ * properties for CmdLink-component for "forgot password"-link
318
212
  */
319
- cmdHeadlineLoginForm: {
213
+ cmdLinkForgotPassword: {
320
214
  type: Object,
321
215
  required: false
322
216
  },
323
217
  /**
324
- * properties for CmdHeadline-component for send-login-form
218
+ * define link to create an account (that is linked to a register-form i.e.)
325
219
  */
326
- cmdHeadlineSendLoginForm: {
220
+ cmdLinkCreateAccount: {
327
221
  type: Object,
328
222
  required: false
329
223
  },
330
224
  /**
331
- * properties for CmdFormElement-component for username-field
332
- *
333
- * @requiredForAccessibility: partial
225
+ * properties for CmdLink-component that lead back to the "login"-view (from "send login"-view)
334
226
  */
335
- cmdFormElementUsername: {
227
+ cmdLinkBackToLogin: {
336
228
  type: Object,
337
229
  required: false
338
230
  },
339
231
  /**
340
- * properties for CmdFormElement-component for password-field
341
- *
342
- * @requiredForAccessibility: partial
232
+ * properties for CmdLink-component for "login with your data"-button
343
233
  */
344
- cmdFormElementPassword: {
234
+ cmdLinkLoginWithYourData: {
345
235
  type: Object,
346
236
  required: false
347
237
  },
348
238
  /**
349
- * properties for CmdFormElement-component for email-address-field (to send login-data)
350
- *
351
- * @requiredForAccessibility: partial
239
+ * properties for CmdLink-component for "login"-button
352
240
  */
353
- cmdFormElementSendLogin: {
241
+ cmdLinkLogin: {
354
242
  type: Object,
355
243
  required: false
356
244
  },
357
245
  /**
358
- * options to display
359
- *
360
- * forgotPassword: toggles form to send password by email
361
- * createAccount: creates a link (href/router) which could lead to a register-form
246
+ * properties for CmdLink-component for "send login"-button
362
247
  */
363
- linkForgotPassword: {
248
+ cmdLinkSendLogin: {
364
249
  type: Object,
365
- default
366
- () {
367
- return {
368
- icon: {
369
- show: true,
370
- iconClass: "icon-questionmark-circle",
371
- tooltip: ""
372
- },
373
- text: "Forgot password"
374
- }
375
- }
250
+ required: false
376
251
  },
377
252
  /**
378
- * define link to create an account (that is linked to a register-form i.e.)
253
+ * properties for CmdHeadline-component for login-form
379
254
  */
380
- linkCreateAccount: {
255
+ cmdHeadlineLoginForm: {
381
256
  type: Object,
382
- default() {
383
- return {
384
- linkType: "href",
385
- path: "#",
386
- icon: {
387
- show: true,
388
- iconClass: "icon-register",
389
- tooltip: ""
390
- },
391
- text: "Create account"
392
- }
393
- }
257
+ required: false
394
258
  },
395
259
  /**
396
- * define link from "forgot-login-form"-view back to the default login-form
260
+ * properties for CmdHeadline-component for send-login-form
397
261
  */
398
- linkBackToLogin: {
262
+ cmdHeadlineSendLoginForm: {
399
263
  type: Object,
400
- default
401
- () {
402
- return {
403
- icon: {
404
- show: true,
405
- iconClass: "icon-chevron-one-stripe-left",
406
- tooltip: ""
407
- },
408
- text: "Back to login"
409
- }
410
- }
264
+ required: false
411
265
  },
412
266
  /**
413
- * button to show login if multiple login possibilities (i.e. google, facebook) are enabled
267
+ * properties for CmdFormElement-component for username-field
414
268
  *
415
269
  * @requiredForAccessibility: partial
416
270
  */
417
- buttonLoginWithYourData: {
271
+ cmdFormElementUsername: {
418
272
  type: Object,
419
273
  required: false
420
274
  },
421
275
  /**
422
- * button to login
276
+ * properties for CmdFormElement-component for password-field
423
277
  *
424
278
  * @requiredForAccessibility: partial
425
279
  */
426
- buttonLogin: {
280
+ cmdFormElementPassword: {
427
281
  type: Object,
428
282
  required: false
429
283
  },
430
284
  /**
431
- * button to send-login-data
285
+ * properties for CmdFormElement-component for email-address-field (to send login-data)
432
286
  *
433
287
  * @requiredForAccessibility: partial
434
288
  */
435
- buttonSendLogin: {
289
+ cmdFormElementSendLogin: {
436
290
  type: Object,
437
291
  required: false
438
292
  }
439
293
  },
440
294
  computed: {
441
- cmdFormElementUsernameOptions() {
295
+ cmdHeadlineLoginFormProperties() {
296
+ return {
297
+ show: true,
298
+ headlineLevel: 3,
299
+ ...this.cmdHeadlineLoginForm
300
+ }
301
+ },
302
+ cmdFormElementUsernameProperties() {
442
303
  return {
443
304
  labelText: "Username:",
444
305
  placeholder: "Type in username",
@@ -449,7 +310,7 @@ export default {
449
310
  ...this.cmdFormElementUsername
450
311
  }
451
312
  },
452
- cmdFormElementPasswordOptions() {
313
+ cmdFormElementPasswordProperties() {
453
314
  return {
454
315
  labelText: "Password:",
455
316
  placeholder: "Type in password",
@@ -460,7 +321,14 @@ export default {
460
321
  ...this.cmdFormElementPassword
461
322
  }
462
323
  },
463
- cmdFormElementSendLoginOptions() {
324
+ cmdHeadlineSendLoginFormProperties() {
325
+ return {
326
+ show: true,
327
+ headlineLevel: 3,
328
+ ...this.cmdHeadlineSendLoginForm
329
+ }
330
+ },
331
+ cmdFormElementSendLoginProperties() {
464
332
  return {
465
333
  labelText: "Email-address:",
466
334
  placeholder: "Type in email-address you are registered with",
@@ -471,38 +339,43 @@ export default {
471
339
  ...this.cmdFormElementSendLogin
472
340
  }
473
341
  },
474
- buttonLoginWithYourDataDefaultOptions() {
342
+ cmdLinkForgotPasswordProperties() {
343
+ return {
344
+ show: true,
345
+ text: "Forgot password",
346
+ highlightLevel: "primary",
347
+ icon: {
348
+ show: true,
349
+ iconClass: "icon-questionmark-circle"
350
+ },
351
+ ...this.cmdLinkForgotPassword
352
+ }
353
+ },
354
+ cmdLinkLoginWithYourDataProperties() {
475
355
  return {
476
356
  linkType: "button", /* href, router, button */
477
357
  type: "button", /* submit, button */
478
358
  path: "",
479
359
  text: "Login with your data",
480
- primary: false,
481
- ...this.buttonLoginWithYourData
360
+ ...this.cmdLinkLoginWithYourData
482
361
  }
483
362
  },
484
- buttonLoginDefaultOptions() {
363
+ cmdLinkLoginProperties() {
485
364
  return {
486
365
  linkType: "button", /* href, router, button */
487
366
  type: "submit", /* submit, button */
488
367
  path: "",
489
368
  text: "Login",
490
- primary: true,
369
+ highlightLevel: "primary",
491
370
  icon: {
492
371
  show: true,
493
372
  iconClass: "icon-logon",
494
373
  tooltip: ""
495
374
  },
496
- ...this.buttonLogin
497
- }
498
- },
499
- buttonLoginOptions() {
500
- return {
501
- type: "submit",
502
- ...this.buttonLogin
375
+ ...this.cmdLinkLogin
503
376
  }
504
377
  },
505
- buttonSendLoginOptions() {
378
+ cmdLinkSendLoginProperties() {
506
379
  return {
507
380
  linkType: "button", /* href, router, button */
508
381
  type: "submit", /* submit, button */
@@ -514,7 +387,33 @@ export default {
514
387
  iconClass: "icon-mail",
515
388
  tooltip: ""
516
389
  },
517
- ...this.buttonSendLogin
390
+ highlightLevel: "primary",
391
+ ...this.cmdLinkSendLogin
392
+ }
393
+ },
394
+ cmdLinkCreateAccountProperties() {
395
+ return {
396
+ show: true,
397
+ linkType: "href",
398
+ path: "#",
399
+ icon: {
400
+ show: true,
401
+ iconClass: "icon-register",
402
+ tooltip: ""
403
+ },
404
+ text: "Create account",
405
+ ...this.cmdLinkCreateAccount
406
+ }
407
+ },
408
+ cmdLinkBackToLoginProperties() {
409
+ return {
410
+ icon: {
411
+ show: true,
412
+ iconClass: "icon-chevron-one-stripe-left",
413
+ tooltip: ""
414
+ },
415
+ text: "Back to login",
416
+ ...this.cmdLinkBackToLogin
518
417
  }
519
418
  },
520
419
  buttonLoginDisabled() {
@@ -528,7 +427,7 @@ export default {
528
427
  return this.modelValue.username
529
428
  },
530
429
  set(value) {
531
- this.$emit("update:modelValue", {username: value, password: this.password})
430
+ this.$emit("update:modelValue", { username: value, password: this.password })
532
431
  }
533
432
  },
534
433
  password: {
@@ -536,7 +435,7 @@ export default {
536
435
  return this.modelValue.password
537
436
  },
538
437
  set(value) {
539
- this.$emit("update:modelValue", {username: this.username, password: value})
438
+ this.$emit("update:modelValue", { username: this.username, password: value })
540
439
  }
541
440
  }
542
441
  },
@@ -546,17 +445,17 @@ export default {
546
445
  },
547
446
  toggleSendLoginView() {
548
447
  this.sendLogin = !this.sendLogin
549
-
448
+ /*
550
449
  this.$nextTick(() => {
551
450
  if (this.sendLogin) {
552
451
  this.$refs.sendPassword.setFocus()
553
452
  } else {
554
453
  this.$refs.username.setFocus()
555
454
  }
556
- })
455
+ })*/
557
456
  },
558
457
  modelChange() {
559
- this.$emit("update:modelValue", {"username": this.username, "password": this.password})
458
+ this.$emit("update:modelValue", { "username": this.username, "password": this.password })
560
459
  },
561
460
  onClick(event) {
562
461
  this.$emit("click", event)
@@ -626,12 +525,12 @@ export default {
626
525
  flex: none;
627
526
  align-items: center;
628
527
 
629
- > a:not(.button) {
528
+ >a:not(.button) {
630
529
  display: flex;
631
530
  text-decoration: none;
632
531
  }
633
532
 
634
- > .button {
533
+ >.button {
635
534
  margin-left: auto;
636
535
  }
637
536
  }
@@ -646,7 +545,8 @@ export default {
646
545
  transition: background-color .218s, border-color .218s, box-shadow .218s;
647
546
  white-space: nowrap;
648
547
 
649
- border-radius: var(--button-border-radius);;
548
+ border-radius: var(--button-border-radius);
549
+ ;
650
550
  background-color: var(--color-white);
651
551
  height: var(--input-height);
652
552
  padding: var(--button-padding);
@@ -690,7 +590,8 @@ export default {
690
590
  background-color: #ffffff61;
691
591
  border-color: #1f1f1f1f;
692
592
 
693
- .gsi-material-button-contents, .gsi-material-button-icon {
593
+ .gsi-material-button-contents,
594
+ .gsi-material-button-icon {
694
595
  opacity: 38%;
695
596
  }
696
597