comand-component-library 3.1.59 → 3.1.62
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.css +1 -1
- package/dist/comand-component-library.umd.min.js +1 -1
- package/package.json +2 -2
- package/src/App.vue +13 -2
- package/src/assets/data/table-small.json +1 -1
- package/src/components/CmdFakeSelect.vue +1 -1
- package/src/components/CmdFormElement.vue +92 -22
- package/src/components/CmdGoogleMaps.vue +9 -1
- package/src/components/CmdLoginForm.vue +1 -7
- package/src/components/CmdMainNavigation.vue +1 -0
- package/src/components/CmdTable.vue +74 -33
- package/src/components/CmdTabs.vue +2 -3
- package/src/components/CmdUploadForm.vue +79 -23
- package/src/mixins/CmdFakeSelect/DefaultMessageProperties.js +5 -1
- package/src/mixins/CmdFormElement/DefaultMessageProperties.js +5 -1
- package/src/mixins/FieldValidation.js +81 -18
@@ -1,11 +1,11 @@
|
|
1
1
|
<template>
|
2
2
|
<!-- begin advanced mode -->
|
3
3
|
<fieldset v-if="advancedMode" :class="['cmd-upload-form flex-container', { 'upload-initiated': uploadInitiated }]">
|
4
|
-
<!-- begin
|
5
|
-
<CmdCustomHeadline v-if="
|
6
|
-
v-bind="
|
4
|
+
<!-- begin CmdCustomHeadlineFieldset -->
|
5
|
+
<CmdCustomHeadline v-if="cmdCustomHeadlineFieldset"
|
6
|
+
v-bind="cmdCustomHeadlineFieldset"
|
7
7
|
/>
|
8
|
-
<!-- end
|
8
|
+
<!-- end CmdCustomHeadlineFieldset -->
|
9
9
|
|
10
10
|
<!-- begin CmdSystemMessage -->
|
11
11
|
<CmdSystemMessage
|
@@ -24,12 +24,12 @@
|
|
24
24
|
|
25
25
|
<div :class="['box drop-area', { 'allow-drop': allowDrop }]" v-on="dragAndDropHandler">
|
26
26
|
<template v-if="!listOfFiles.length">
|
27
|
-
<
|
27
|
+
<CmdCustomHeadline v-if="allowMultipleFileUploads" v-bind="cmdCustomHeadline">
|
28
28
|
{{ getMessage("cmduploadform.no_files_to_upload") }}
|
29
|
-
</
|
30
|
-
<
|
29
|
+
</CmdCustomHeadline>
|
30
|
+
<CmdCustomHeadline v-else v-bind="cmdCustomHeadline">
|
31
31
|
{{ getMessage("cmduploadform.no_file_to_upload") }}
|
32
|
-
</
|
32
|
+
</CmdCustomHeadline>
|
33
33
|
</template>
|
34
34
|
|
35
35
|
<!-- begin total-upload information -->
|
@@ -150,7 +150,7 @@
|
|
150
150
|
</dt>
|
151
151
|
<dd>
|
152
152
|
<a
|
153
|
-
:class="showListOfFileExtensions ? '
|
153
|
+
:class="showListOfFileExtensions ? 'invisibleIconClass' : 'visibleIconClass'"
|
154
154
|
href="#"
|
155
155
|
@click.prevent="showListOfFileExtensions = !showListOfFileExtensions"
|
156
156
|
:title="getMessage('cmduploadform.tooltip.toggle_list_of_allowed_file_types')"
|
@@ -175,7 +175,7 @@
|
|
175
175
|
:disabled="uploadInitiated"
|
176
176
|
@click="selectFiles()"
|
177
177
|
>
|
178
|
-
<span class="
|
178
|
+
<span :class="fileUploadIconClass"></span>
|
179
179
|
<span v-if="allowMultipleFileUploads">{{
|
180
180
|
getMessage("cmduploadform.labeltext.select_files")
|
181
181
|
}}</span>
|
@@ -226,14 +226,14 @@
|
|
226
226
|
"
|
227
227
|
@click="uploadFiles"
|
228
228
|
>
|
229
|
-
<span class="
|
229
|
+
<span :class="uploadIconClass"></span>
|
230
230
|
<span v-if="listOfFiles.length === 1 || !allowMultipleFileUploads">
|
231
231
|
{{ getMessage("cmduploadform.buttontext.upload_file") }}
|
232
232
|
</span>
|
233
233
|
<span v-else>{{ getMessage("cmduploadform.buttontext.upload_files") }}</span>
|
234
234
|
</button>
|
235
235
|
<button :class="['button', { disabled: listOfFiles.length === 0 }]" @click="cancel">
|
236
|
-
<span class="
|
236
|
+
<span :class="cancelIconClass"></span>
|
237
237
|
<span>{{ getMessage("cmduploadform.buttontext.cancel") }}</span>
|
238
238
|
</button>
|
239
239
|
</div>
|
@@ -256,16 +256,16 @@
|
|
256
256
|
<template v-if="enableDragAndDrop">
|
257
257
|
<template v-if="fileTypeImage">
|
258
258
|
<span>{{ getMessage("cmduploadform.select_image") }}</span>
|
259
|
-
<span class="
|
259
|
+
<span :class="imageIconClass"></span>
|
260
260
|
</template>
|
261
261
|
<template v-else>
|
262
262
|
<span>{{ getMessage("cmduploadform.select_file") }}</span>
|
263
|
-
<span class="
|
263
|
+
<span :class="fileUploadIconClass"></span>
|
264
264
|
</template>
|
265
265
|
</template>
|
266
266
|
<template v-else>
|
267
267
|
<span>{{ getMessage("cmduploadform.drag_and_drop_file_here") }}</span>
|
268
|
-
<span class="
|
268
|
+
<span :class="dragAndDropIconClass"></span>
|
269
269
|
</template>
|
270
270
|
<small>{{ getMessage("cmduploadform.max_upload_size") }} {{ formatSize(maxFileUploadSize) }}</small>
|
271
271
|
<small>{{ getMessage("cmduploadform.allowed_file_types") }} {{ allowedFileExtensions }}</small>
|
@@ -331,13 +331,6 @@ export default {
|
|
331
331
|
this.resetForm.systemMessageStatus = this.systemMessageStatus
|
332
332
|
},
|
333
333
|
props: {
|
334
|
-
/**
|
335
|
-
* set icon class for delete-icons
|
336
|
-
*/
|
337
|
-
deleteIconClass: {
|
338
|
-
type: String,
|
339
|
-
default: "icon-delete"
|
340
|
-
},
|
341
334
|
/**
|
342
335
|
* toggle visibility of total upload (number of files, total size, total progress
|
343
336
|
*/
|
@@ -380,7 +373,7 @@ export default {
|
|
380
373
|
/**
|
381
374
|
* properties for CmdCustomHeadline-component
|
382
375
|
*/
|
383
|
-
|
376
|
+
cmdCustomHeadlineFieldset: {
|
384
377
|
type: Object,
|
385
378
|
required: false
|
386
379
|
},
|
@@ -445,6 +438,69 @@ export default {
|
|
445
438
|
advancedMode: {
|
446
439
|
type: Boolean,
|
447
440
|
default: true
|
441
|
+
},
|
442
|
+
/**
|
443
|
+
* set icon class for delete-icons
|
444
|
+
*/
|
445
|
+
deleteIconClass: {
|
446
|
+
type: String,
|
447
|
+
default: "icon-delete"
|
448
|
+
},
|
449
|
+
/**
|
450
|
+
* set icon class for file-upload-icon
|
451
|
+
*/
|
452
|
+
fileUploadIconClass: {
|
453
|
+
type: String,
|
454
|
+
default: "icon-file-upload"
|
455
|
+
},
|
456
|
+
/**
|
457
|
+
* set icon class for file-icon
|
458
|
+
*/
|
459
|
+
fileIconClass: {
|
460
|
+
type: String,
|
461
|
+
default: "icon-file"
|
462
|
+
},
|
463
|
+
/**
|
464
|
+
* set icon class for invisible-icon
|
465
|
+
*/
|
466
|
+
invisibleIconClass: {
|
467
|
+
type: String,
|
468
|
+
default: "icon-not-visible"
|
469
|
+
},
|
470
|
+
/**
|
471
|
+
* set icon class for visible-icon
|
472
|
+
*/
|
473
|
+
visibleIconClass: {
|
474
|
+
type: String,
|
475
|
+
default: "icon-visible"
|
476
|
+
},
|
477
|
+
/**
|
478
|
+
* set icon class for image-icon
|
479
|
+
*/
|
480
|
+
imageIconClass: {
|
481
|
+
type: String,
|
482
|
+
default: "icon-image"
|
483
|
+
},
|
484
|
+
/**
|
485
|
+
* set icon class for upload-icon
|
486
|
+
*/
|
487
|
+
uploadIconClass: {
|
488
|
+
type: String,
|
489
|
+
default: "icon-upload"
|
490
|
+
},
|
491
|
+
/**
|
492
|
+
* set icon class for drag-and-drop-icon
|
493
|
+
*/
|
494
|
+
dragAndDropIconClass: {
|
495
|
+
type: String,
|
496
|
+
default: "icon-drag-and-drop"
|
497
|
+
},
|
498
|
+
/**
|
499
|
+
* set icon class for cancel-icon
|
500
|
+
*/
|
501
|
+
cancelIconClass: {
|
502
|
+
type: String,
|
503
|
+
default: "icon-cancel"
|
448
504
|
}
|
449
505
|
},
|
450
506
|
computed: {
|
@@ -2,7 +2,11 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"cmdfakeselect.headline.requirement_for_input": "Requirement for input"
|
5
|
+
"cmdfakeselect.headline.requirement_for_input": "Requirement for input",
|
6
|
+
"cmdfakeselect.linktext.deselect_all_options": "Deselect all options",
|
7
|
+
"cmdfakeselect.linktext.select_all_options": "Select all options",
|
8
|
+
"cmdfakeselect.headline.": "An option is selected",
|
9
|
+
|
6
10
|
}
|
7
11
|
}
|
8
12
|
}
|
@@ -2,7 +2,11 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"cmdformelement.headline.requirement_for_input": "Requirement for input"
|
5
|
+
"cmdformelement.headline.requirement_for_input": "Requirement for input",
|
6
|
+
"cmdformelement.validationTooltip.an_error_occurred": "An error occurred!",
|
7
|
+
"cmdformelement.validationTooltip.information_is_filled_correctly": "This information is filled correctly!",
|
8
|
+
"cmdformelement.validationTooltip.caps_lock_is_activated": "Attention: Caps lock is activated!",
|
9
|
+
"cmdformelement.validationTooltip.open_field_requirements": "Open field requirements!"
|
6
10
|
}
|
7
11
|
}
|
8
12
|
}
|
@@ -32,7 +32,6 @@ export default {
|
|
32
32
|
url: "helpurl",
|
33
33
|
target: "help",
|
34
34
|
text: "Open help",
|
35
|
-
// text: this.getMessage("cmdfieldvalidation.open_detailed_help"),
|
36
35
|
icon: {
|
37
36
|
iconClass: "icon-questionmark-circle",
|
38
37
|
tooltip: "Open help in new tab"
|
@@ -56,29 +55,93 @@ export default {
|
|
56
55
|
type: Boolean,
|
57
56
|
default: true
|
58
57
|
},
|
59
|
-
|
58
|
+
/**
|
59
|
+
* icon to show that the validation-status of a field is 'error'
|
60
|
+
* icon will be displayed inside the field on the left (in front of the input)
|
61
|
+
* icon is also used in 'list-of-requirements' (showRequirements-property must be set to true)
|
62
|
+
*/
|
63
|
+
iconHasStateError: {
|
60
64
|
type: String,
|
61
|
-
default
|
65
|
+
default() {
|
66
|
+
return {
|
67
|
+
iconClass: "icon-error-circle",
|
68
|
+
tooltip: "Error"
|
69
|
+
}
|
70
|
+
}
|
62
71
|
} ,
|
63
|
-
|
72
|
+
/**
|
73
|
+
* icon to show that the validation-status of a field is 'warning'
|
74
|
+
* icon will be displayed inside the field on the left (in front of the input)
|
75
|
+
*/
|
76
|
+
iconHasStateWarning: {
|
64
77
|
type: String,
|
65
|
-
default
|
78
|
+
default() {
|
79
|
+
return {
|
80
|
+
iconClass: "icon-exclamation-circle",
|
81
|
+
tooltip: "Warning"
|
82
|
+
}
|
83
|
+
}
|
66
84
|
},
|
67
|
-
|
85
|
+
/**
|
86
|
+
* icon to show that the validation-status of a field is 'success'
|
87
|
+
* icon will be displayed inside the field on the left (in front of the input)
|
88
|
+
* icon is also used in 'list-of-requirements' (showRequirements-property must be set to true)
|
89
|
+
*/
|
90
|
+
iconHasStateSuccess: {
|
68
91
|
type: String,
|
69
|
-
default
|
92
|
+
default() {
|
93
|
+
return {
|
94
|
+
iconClass: "icon-check-circle",
|
95
|
+
tooltip: "Success"
|
96
|
+
}
|
97
|
+
}
|
70
98
|
},
|
71
|
-
|
99
|
+
/**
|
100
|
+
* icon to show that the validation-status of a field is 'info'
|
101
|
+
* icon will be displayed inside the field on the left (in front of the input)
|
102
|
+
*/
|
103
|
+
iconHasStateInfo: {
|
72
104
|
type: String,
|
73
|
-
default
|
105
|
+
default() {
|
106
|
+
return {
|
107
|
+
iconClass: "icon-info-circle",
|
108
|
+
tooltip: "Info"
|
109
|
+
}
|
110
|
+
}
|
74
111
|
},
|
112
|
+
/**
|
113
|
+
* icon to show that caps-lock is activated
|
114
|
+
*/
|
75
115
|
iconCapsLock: {
|
76
116
|
type: String,
|
77
|
-
default
|
117
|
+
default() {
|
118
|
+
return {
|
119
|
+
iconClass: "icon-home"
|
120
|
+
}
|
121
|
+
}
|
122
|
+
},
|
123
|
+
/**
|
124
|
+
* icon displayed if password-field is clicked to show password
|
125
|
+
*/
|
126
|
+
iconPasswordVisible: {
|
127
|
+
type: String,
|
128
|
+
default() {
|
129
|
+
return {
|
130
|
+
iconClass: "icon-visible",
|
131
|
+
tooltip: "Show password"
|
132
|
+
}
|
133
|
+
}
|
78
134
|
},
|
79
|
-
|
135
|
+
/**
|
136
|
+
* icon displayed to show password of a password-field
|
137
|
+
*/
|
138
|
+
iconPasswordInvisible: {
|
80
139
|
type: String,
|
81
|
-
default
|
140
|
+
default() {
|
141
|
+
return {
|
142
|
+
iconClass: "icon-not-visible"
|
143
|
+
}
|
144
|
+
}
|
82
145
|
}
|
83
146
|
},
|
84
147
|
computed: {
|
@@ -100,18 +163,18 @@ export default {
|
|
100
163
|
if (this.validationStatus !== "") {
|
101
164
|
if (!this.capsLockActivated) {
|
102
165
|
if (this.validationStatus === "error") {
|
103
|
-
return this.
|
166
|
+
return this.iconHasStateError.iconClass
|
104
167
|
} else if (this.validationStatus === "warning") {
|
105
|
-
return this.
|
168
|
+
return this.iconHasStateWarning.iconClass
|
106
169
|
} else if (this.validationStatus === "success") {
|
107
|
-
return this.
|
170
|
+
return this.iconHasStateSuccess.iconClass
|
108
171
|
}
|
109
|
-
return this.
|
172
|
+
return this.iconHasStateInfo.iconClass
|
110
173
|
} else {
|
111
|
-
return this.iconCapsLock
|
174
|
+
return this.iconCapsLock.iconClass
|
112
175
|
}
|
113
176
|
}
|
114
|
-
return this.
|
177
|
+
return this.helplink.icon.iconClass
|
115
178
|
},
|
116
179
|
inputRequirements() {
|
117
180
|
const standardRequirements = []
|