comand-component-library 4.0.35 → 4.0.36
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +219 -203
- package/dist/comand-component-library.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/ComponentLibrary.vue +12 -0
- package/src/componentSettingsDataAndControls.vue +10 -4
- package/src/components/CmdBasicForm.vue +11 -1
- package/src/components/CmdForm.vue +23 -22
- package/src/components/CmdLoginForm.vue +33 -10
- package/src/components/CmdSiteSearch.vue +12 -14
@@ -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 : !
|
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
|
13
|
+
<div :class="['login-fields flex-container', {'vertical': orientation === 'vertical'}]">
|
14
14
|
<!-- begin CmdFormElement -->
|
15
15
|
<CmdFormElement
|
16
16
|
element="input"
|
@@ -104,7 +104,7 @@
|
|
104
104
|
|
105
105
|
<!-- begin send-login-form -->
|
106
106
|
<fieldset v-show="sendLogin" class="cmd-login-form flex-container">
|
107
|
-
<legend :class="{
|
107
|
+
<legend :class="{hidden : !legendForgotLoginForm.show, 'align-left': legendForgotLoginForm.align === 'left'}">{{ legendForgotLoginForm .text }}</legend>
|
108
108
|
<!-- begin CmdHeadline -->
|
109
109
|
<CmdHeadline
|
110
110
|
v-if="cmdHeadlineSendLoginForm"
|
@@ -210,13 +210,19 @@ export default {
|
|
210
210
|
}
|
211
211
|
},
|
212
212
|
/**
|
213
|
-
*
|
213
|
+
* options for legend for login-fieldset
|
214
214
|
*
|
215
215
|
* @requiredForAccessibility: true
|
216
216
|
*/
|
217
|
-
|
218
|
-
type:
|
219
|
-
default
|
217
|
+
legendLoginForm: {
|
218
|
+
type: Object,
|
219
|
+
default() {
|
220
|
+
return {
|
221
|
+
show: true,
|
222
|
+
align: "right",
|
223
|
+
text: "Login form"
|
224
|
+
}
|
225
|
+
}
|
220
226
|
},
|
221
227
|
/**
|
222
228
|
* toggle legend visibility
|
@@ -230,9 +236,15 @@ export default {
|
|
230
236
|
*
|
231
237
|
* @requiredForAccessibility: true
|
232
238
|
*/
|
233
|
-
|
234
|
-
type:
|
235
|
-
default
|
239
|
+
legendForgotLoginForm: {
|
240
|
+
type: Object,
|
241
|
+
default() {
|
242
|
+
return {
|
243
|
+
show: true,
|
244
|
+
align: 'right"',
|
245
|
+
text: 'Forgot login form'
|
246
|
+
}
|
247
|
+
}
|
236
248
|
},
|
237
249
|
/**
|
238
250
|
* properties for CmdHeadline-component for login-form
|
@@ -451,6 +463,16 @@ export default {
|
|
451
463
|
<style>
|
452
464
|
/* begin cmd-login-form ---------------------------------------------------------------------------------------- */
|
453
465
|
.cmd-login-form {
|
466
|
+
.cmd-headline {
|
467
|
+
flex: none;
|
468
|
+
margin: 0;
|
469
|
+
}
|
470
|
+
|
471
|
+
legend.align-left {
|
472
|
+
left: 0;
|
473
|
+
right: auto;
|
474
|
+
}
|
475
|
+
|
454
476
|
.login-fields {
|
455
477
|
&.vertical {
|
456
478
|
.cmd-form-element {
|
@@ -460,6 +482,7 @@ export default {
|
|
460
482
|
}
|
461
483
|
|
462
484
|
.option-wrapper {
|
485
|
+
flex: none;
|
463
486
|
align-items: center;
|
464
487
|
|
465
488
|
> 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="{
|
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
|
-
*
|
163
|
+
* legend for form
|
164
164
|
*
|
165
|
-
*
|
166
|
-
*/
|
167
|
-
showLegend: {
|
168
|
-
type: Boolean,
|
169
|
-
default: true
|
170
|
-
},
|
171
|
-
/**
|
172
|
-
* text for legend
|
165
|
+
* useFieldset-property must be activated
|
173
166
|
*
|
174
|
-
* @
|
167
|
+
* @requiredForAccessiblity: true
|
175
168
|
*/
|
176
|
-
|
177
|
-
|
178
|
-
|
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
|