comand-component-library 4.0.35 → 4.0.37

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.
@@ -8,6 +8,7 @@
8
8
  {
9
9
  disabled: $attrs.disabled,
10
10
  inline : displayLabelInline,
11
+ 'stretch-field' : stretchField,
11
12
  'toggle-switch': toggleSwitch,
12
13
  colored: colored,
13
14
  'has-state': validationStatus
@@ -445,6 +446,15 @@ export default {
445
446
  type: Boolean,
446
447
  required: false
447
448
  },
449
+ /**
450
+ * activate if field should be stretch over remaining (horizontal) space if inline
451
+ *
452
+ * displayLabelInline-property must be activated
453
+ */
454
+ stretchField: {
455
+ type: Boolean,
456
+ default: false
457
+ },
448
458
  /**
449
459
  * set status for label and form-element
450
460
  *
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <!-- begin login-form -->
3
3
  <fieldset v-show="!sendLogin" class="cmd-login-form flex-container">
4
- <legend :class="{hidden : !showLegend}">{{ textLegendLoginForm }}</legend>
4
+ <legend :class="{hidden : !legendLoginForm.show, 'align-left': legendLoginForm.align === 'left'}">{{ legendLoginForm.text }}</legend>
5
5
  <!-- begin CmdHeadline -->
6
6
  <CmdHeadline
7
7
  v-if="cmdHeadlineLoginForm"
@@ -10,7 +10,7 @@
10
10
  <!-- end CmdHeadline -->
11
11
 
12
12
  <!-- begin form elements -->
13
- <div :class="['login-fields, flex-container', {'vertical': orientation === 'vertical'}]">
13
+ <div :class="['login-fields flex-container', {'vertical': orientation === 'vertical'}]">
14
14
  <!-- begin CmdFormElement -->
15
15
  <CmdFormElement
16
16
  element="input"
@@ -65,6 +65,7 @@
65
65
 
66
66
  <!-- begin link for 'create account' -->
67
67
  <template v-if="options.createAccount">
68
+ <!-- begin CmdLink -->
68
69
  <CmdLink
69
70
  :linkType="options.createAccount.linkType"
70
71
  :path="options.createAccount.path"
@@ -75,6 +76,7 @@
75
76
  position: options.createAccount.icon?.position
76
77
  }"
77
78
  />
79
+ <!-- end CmdLink -->
78
80
  </template>
79
81
  <!-- end link for 'create account' -->
80
82
  </template>
@@ -104,7 +106,7 @@
104
106
 
105
107
  <!-- begin send-login-form -->
106
108
  <fieldset v-show="sendLogin" class="cmd-login-form flex-container">
107
- <legend :class="{'hidden' : !showLegend}">{{ textLegendForgotLoginForm }}</legend>
109
+ <legend :class="{hidden : !legendForgotLoginForm.show, 'align-left': legendForgotLoginForm.align === 'left'}">{{ legendForgotLoginForm .text }}</legend>
108
110
  <!-- begin CmdHeadline -->
109
111
  <CmdHeadline
110
112
  v-if="cmdHeadlineSendLoginForm"
@@ -210,13 +212,19 @@ export default {
210
212
  }
211
213
  },
212
214
  /**
213
- * text used as legend for login-fieldset
215
+ * options for legend for login-fieldset
214
216
  *
215
217
  * @requiredForAccessibility: true
216
218
  */
217
- textLegendLoginForm: {
218
- type: String,
219
- default: "Login form"
219
+ legendLoginForm: {
220
+ type: Object,
221
+ default() {
222
+ return {
223
+ show: true,
224
+ align: "right",
225
+ text: "Login form"
226
+ }
227
+ }
220
228
  },
221
229
  /**
222
230
  * toggle legend visibility
@@ -230,9 +238,15 @@ export default {
230
238
  *
231
239
  * @requiredForAccessibility: true
232
240
  */
233
- textLegendForgotLoginForm: {
234
- type: String,
235
- default: "Forgot login form"
241
+ legendForgotLoginForm: {
242
+ type: Object,
243
+ default() {
244
+ return {
245
+ show: true,
246
+ align: 'right"',
247
+ text: 'Forgot login form'
248
+ }
249
+ }
236
250
  },
237
251
  /**
238
252
  * properties for CmdHeadline-component for login-form
@@ -451,6 +465,16 @@ export default {
451
465
  <style>
452
466
  /* begin cmd-login-form ---------------------------------------------------------------------------------------- */
453
467
  .cmd-login-form {
468
+ .cmd-headline {
469
+ flex: none;
470
+ margin: 0;
471
+ }
472
+
473
+ legend.align-left {
474
+ left: 0;
475
+ right: auto;
476
+ }
477
+
454
478
  .login-fields {
455
479
  &.vertical {
456
480
  .cmd-form-element {
@@ -460,6 +484,7 @@ export default {
460
484
  }
461
485
 
462
486
  .option-wrapper {
487
+ flex: none;
463
488
  align-items: center;
464
489
 
465
490
  > a:not(.button) {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <fieldset class="cmd-box-site-search flex-container">
3
3
  <!-- begin legend -->
4
- <legend :class="{'hidden' : !showLegend}">{{ textLegend }}</legend>
4
+ <legend :class="{hidden : !legend.show, 'align-left': legend.align === 'left'}">{{ legend.text }}</legend>
5
5
  <!-- end legend -->
6
6
 
7
7
  <!-- begin CmdHeadline -->
@@ -160,22 +160,20 @@ export default {
160
160
  default: true
161
161
  },
162
162
  /**
163
- * toggle legend visibility
163
+ * legend for form
164
164
  *
165
- * textLegend must be set
166
- */
167
- showLegend: {
168
- type: Boolean,
169
- default: true
170
- },
171
- /**
172
- * text for legend
165
+ * useFieldset-property must be activated
173
166
  *
174
- * @requiredForAccessibility: true
167
+ * @requiredForAccessiblity: true
175
168
  */
176
- textLegend: {
177
- type: String,
178
- required: false
169
+ legend: {
170
+ default() {
171
+ return {
172
+ show: true,
173
+ align: "left",
174
+ text: "Legend"
175
+ }
176
+ }
179
177
  },
180
178
  /**
181
179
  * send search result from outside to display inside this component