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.
- package/dist/comand-component-library.css +1 -1
- package/dist/comand-component-library.js +8574 -8438
- package/dist/styles/demopage-only.css +48 -0
- package/package.json +2 -2
- package/src/ComponentLibrary.vue +1923 -1881
- package/src/assets/data/text-image-block.json +3 -1
- package/src/assets/data/thumbnail-scroller-images.json +1 -1
- package/src/components/CmdAccordion.vue +1 -1
- package/src/components/CmdAddressData.vue +60 -72
- package/src/components/CmdBankAccountData.vue +55 -33
- package/src/components/CmdBasicForm.vue +19 -7
- package/src/components/CmdBox.vue +8 -0
- package/src/components/CmdBoxWrapper.vue +14 -0
- package/src/components/CmdBreadcrumbs.vue +10 -27
- package/src/components/CmdCompanyLogo.vue +3 -0
- package/src/components/CmdContainer.vue +21 -2
- package/src/components/CmdCookieDisclaimer.vue +5 -5
- package/src/components/CmdFakeSelect.vue +27 -17
- package/src/components/CmdFancyBox.vue +73 -85
- package/src/components/CmdFootnote.vue +2 -1
- package/src/components/CmdForm.vue +118 -160
- package/src/components/CmdFormFilters.vue +1 -0
- package/src/components/CmdGoogleMaps.vue +9 -2
- package/src/components/CmdHeadline.vue +10 -9
- package/src/components/CmdImage.vue +44 -21
- package/src/components/CmdImageGallery.vue +13 -8
- package/src/components/CmdLink.vue +20 -5
- package/src/components/CmdList.vue +7 -2
- package/src/components/CmdLoginForm.vue +156 -255
- package/src/components/CmdMailToolEntry.vue +2 -1
- package/src/components/CmdMultistepFormProgressBar.vue +2 -2
- package/src/components/CmdMultistepFormWrapper.vue +2 -6
- package/src/components/CmdOpeningHours.vue +14 -2
- package/src/components/CmdSidebar.vue +2 -2
- package/src/components/CmdSiteWrapper.vue +66 -58
- package/src/components/CmdSlideshow.vue +5 -0
- package/src/components/CmdSocialNetworks.vue +27 -17
- package/src/components/CmdSwitchLanguage.vue +16 -19
- package/src/components/CmdSystemMessage.vue +71 -66
- package/src/components/CmdTable.vue +42 -24
- package/src/components/CmdTabs.vue +15 -7
- package/src/components/CmdTag.vue +28 -23
- package/src/components/CmdTextImageBlock.vue +62 -53
- package/src/components/CmdThumbnailScroller.vue +18 -6
- package/src/components/CmdToast.vue +60 -17
- package/src/components/CmdToggleDarkMode.vue +31 -32
- package/src/components/CmdTooltip.vue +33 -20
- package/src/components/CmdUploadForm.vue +212 -183
- package/src/components/CmdWidthLimitationWrapper.vue +19 -3
- package/dist/styles/templates/casual.css +0 -3
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- begin CmdUploadForm ---------------------------------------------------------------------------------------- -->
|
|
3
3
|
<!-- begin advanced mode -->
|
|
4
|
-
<fieldset v-if="advancedMode" :class="['cmd-upload-form flex-container
|
|
4
|
+
<fieldset v-if="advancedMode" :class="['cmd-upload-form flex-container flex-direction-column', { 'upload-initiated': uploadInitiated }]">
|
|
5
5
|
<legend :class="{hidden : !legend.show, 'align-left': legend.align === 'left'}">{{ legend.text }}</legend>
|
|
6
|
-
<!-- begin CmdHeadlineFieldset -->
|
|
7
6
|
<CmdHeadline
|
|
8
|
-
v-if="
|
|
9
|
-
v-bind="
|
|
7
|
+
v-if="(cmdHeadlineForFieldsetProperties?.show && cmdHeadlineForFieldsetProperties?.headlineText) || editModeContext"
|
|
8
|
+
v-bind="cmdHeadlineForFieldsetProperties"
|
|
10
9
|
/>
|
|
11
|
-
<!-- end CmdHeadlineFieldset -->
|
|
12
10
|
|
|
13
11
|
<!-- begin CmdSystemMessage -->
|
|
14
12
|
<CmdSystemMessage
|
|
@@ -25,37 +23,22 @@
|
|
|
25
23
|
</CmdSystemMessage>
|
|
26
24
|
<!-- end CmdSystemMessage -->
|
|
27
25
|
|
|
28
|
-
<div :class="['box flex-container
|
|
26
|
+
<div :class="['box flex-container flex-direction-column', { 'drop-area': enableDragAndDrop, 'allow-drop': allowDrop }]"
|
|
29
27
|
v-on="dragAndDropHandler">
|
|
30
|
-
<
|
|
31
|
-
<!-- begin CmdHeadline -->
|
|
32
|
-
<CmdHeadline v-if="allowMultipleFileUploads" v-bind="cmdHeadlineNoFilesToUpload" headlineLevel="4">
|
|
33
|
-
{{ headlineTextNoFilesToUpload }}
|
|
34
|
-
</CmdHeadline>
|
|
35
|
-
<!-- end CmdHeadline -->
|
|
36
|
-
</template>
|
|
28
|
+
<CmdHeadline v-if="!listOfFiles.length && allowMultipleFileUploads" v-bind="cmdHeadlineNoFilesToUploadProperties" />
|
|
37
29
|
|
|
38
30
|
<!-- begin total-upload information -->
|
|
39
|
-
<div v-else class="flex-container
|
|
40
|
-
<div v-if="showTotalUpload && listOfFiles.length
|
|
41
|
-
class="flex-container
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</CmdHeadline>
|
|
46
|
-
<!-- end CmdHeadline -->
|
|
47
|
-
|
|
48
|
-
<ul v-if="showTotalUpload && listOfFiles.length !== 1" class="list-of-files total-files">
|
|
31
|
+
<div v-else class="flex-container flex-direction-column">
|
|
32
|
+
<div v-if="showTotalUpload && listOfFiles.length > 1"
|
|
33
|
+
class="flex-container flex-direction-column list-files-wrapper">
|
|
34
|
+
<CmdHeadline v-bind="cmdHeadlineSummaryOfAllFilesProperties" />
|
|
35
|
+
|
|
36
|
+
<ul class="list-of-files total-files">
|
|
49
37
|
<li class="flex-container flex-items-flex-none">
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
>
|
|
55
|
-
<!-- begin CmdIcon -->
|
|
56
|
-
<CmdIcon v-bind="iconDelete" />
|
|
57
|
-
<!-- end CmdIcon -->
|
|
58
|
-
</a>
|
|
38
|
+
<CmdLink
|
|
39
|
+
v-bind="cmdLinkCancelUploadProperties"
|
|
40
|
+
@click="cancelUpload"
|
|
41
|
+
/>
|
|
59
42
|
<span>
|
|
60
43
|
{{ listOfFiles.length }}
|
|
61
44
|
<template v-if="!allowMultipleFileUploads">
|
|
@@ -86,29 +69,21 @@
|
|
|
86
69
|
</div>
|
|
87
70
|
<!-- end total-upload information -->
|
|
88
71
|
|
|
89
|
-
<div class="flex-container
|
|
72
|
+
<div v-if="listOfFiles.length" class="flex-container flex-direction-column list-files-wrapper">
|
|
73
|
+
<CmdHeadline v-bind="cmdHeadlineListOfSelectedFilesProperties" />
|
|
90
74
|
<!-- begin list of selected files -->
|
|
91
|
-
<!-- begin CmdHeadline -->
|
|
92
|
-
<CmdHeadline v-bind="cmdHeadlineListOfSelectedFiles" headlineLevel="4">
|
|
93
|
-
{{ getMessage("upload_form.headline.list_of_selected_files") }}
|
|
94
|
-
</CmdHeadline>
|
|
95
|
-
<!-- end CmdHeadline -->
|
|
96
|
-
|
|
97
75
|
<ul class="list-of-files">
|
|
98
76
|
<li
|
|
99
77
|
v-for="(uploadFile, index) in listOfFiles"
|
|
100
78
|
:key="index"
|
|
101
79
|
class="flex-container flex-items-flex-none"
|
|
102
80
|
>
|
|
103
|
-
<
|
|
104
|
-
|
|
81
|
+
<CmdLink
|
|
82
|
+
v-bind="cmdLinkRemoveFilesFromListProperties"
|
|
105
83
|
:title="getMessage('upload_form.labeltext.remove_file_from_list', uploadFile.file.name)"
|
|
106
|
-
@click
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<CmdIcon v-bind="iconDelete" />
|
|
110
|
-
<!-- end CmdIcon -->
|
|
111
|
-
</a>
|
|
84
|
+
@click="removeFile(index)"
|
|
85
|
+
/>
|
|
86
|
+
|
|
112
87
|
<span
|
|
113
88
|
:class="[
|
|
114
89
|
'text-align-right',
|
|
@@ -133,13 +108,11 @@
|
|
|
133
108
|
<!-- end progressbar -->
|
|
134
109
|
</li>
|
|
135
110
|
</ul>
|
|
136
|
-
<
|
|
111
|
+
<CmdLink
|
|
137
112
|
v-if="failedUpload"
|
|
138
|
-
|
|
139
|
-
@click
|
|
140
|
-
|
|
141
|
-
{{ getMessage("upload_form.reset_upload") }}
|
|
142
|
-
</a>
|
|
113
|
+
v-bind="cmdLinkResetUploadProperties"
|
|
114
|
+
@click="cancel"
|
|
115
|
+
/>
|
|
143
116
|
<hr/>
|
|
144
117
|
</div>
|
|
145
118
|
</div>
|
|
@@ -147,19 +120,10 @@
|
|
|
147
120
|
|
|
148
121
|
<!-- begin upload conditions -->
|
|
149
122
|
<div class="upload-conditions">
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
</CmdHeadline>
|
|
155
|
-
<!-- end CmdHeadline -->
|
|
156
|
-
|
|
157
|
-
<!-- begin CmdHeadline -->
|
|
158
|
-
<CmdHeadline v-if="!allowMultipleFileUploads && listOfFiles.length" v-bind="cmdHeadlineSelectNewFile"
|
|
159
|
-
headlineLevel="4">
|
|
160
|
-
{{ getMessage("upload_form.headline.select_new_file") }}
|
|
161
|
-
</CmdHeadline>
|
|
162
|
-
<!-- end CmdHeadline -->
|
|
123
|
+
<CmdHeadline
|
|
124
|
+
v-if="listOfFiles.length"
|
|
125
|
+
v-bind="cmdHeadlineSelectFilesProperties"
|
|
126
|
+
/>
|
|
163
127
|
|
|
164
128
|
<dl class="small">
|
|
165
129
|
<template v-if="maxTotalUploadSize > 0">
|
|
@@ -180,17 +144,11 @@
|
|
|
180
144
|
{{ getMessage("upload_form.allowed_file_types") }}
|
|
181
145
|
</dt>
|
|
182
146
|
<dd>
|
|
183
|
-
<
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
<CmdIcon
|
|
189
|
-
:iconClass="showListOfFileExtensions ? iconInvisible.iconClass : iconVisible.iconClass"
|
|
190
|
-
:type="showListOfFileExtensions ? iconInvisible.iconType : iconVisible.iconType"
|
|
191
|
-
/>
|
|
192
|
-
<!-- end CmdIcon -->
|
|
193
|
-
</a>
|
|
147
|
+
<CmdLink
|
|
148
|
+
@click="showListOfFileExtensions = !showListOfFileExtensions"
|
|
149
|
+
v-bind="cmdLinkToggleListOfFileExtensionsProperties"
|
|
150
|
+
/>
|
|
151
|
+
|
|
194
152
|
<!-- begin list of file extensions -->
|
|
195
153
|
<transition :name="transitionListOfFileExtensions">
|
|
196
154
|
<ul v-if="showListOfFileExtensions" class="list-of-file-extensions">
|
|
@@ -210,21 +168,13 @@
|
|
|
210
168
|
<!-- end upload conditions -->
|
|
211
169
|
|
|
212
170
|
<!-- begin upload-button and drag-and-drop-text -->
|
|
213
|
-
<div class="flex-container
|
|
214
|
-
<
|
|
215
|
-
|
|
216
|
-
:class="['button upload primary', { disabled: uploadInitiated }]"
|
|
171
|
+
<div class="flex-container flex-direction-column no-gap">
|
|
172
|
+
<CmdLink
|
|
173
|
+
:class="['upload', { disabled: uploadInitiated }]"
|
|
217
174
|
:disabled="uploadInitiated"
|
|
218
175
|
@click="selectFiles()"
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
<CmdIcon :iconClass="iconFileUpload.iconClass" :type="iconFileUpload.iconType"/>
|
|
222
|
-
<!-- end CmdIcon -->
|
|
223
|
-
<span v-if="allowMultipleFileUploads">{{
|
|
224
|
-
getMessage("upload_form.labeltext.select_files")
|
|
225
|
-
}}</span>
|
|
226
|
-
<span v-else>{{ getMessage("upload_form.labeltext.select_file") }}</span>
|
|
227
|
-
</button>
|
|
176
|
+
v-bind="cmdLinkSelectFilesProperties"
|
|
177
|
+
/>
|
|
228
178
|
<p v-if="enableDragAndDrop" :class="['text-drag-and-drop', { disabled: uploadInitiated }]">
|
|
229
179
|
<span>{{ getMessage("upload_form.or") }}</span>
|
|
230
180
|
<strong>
|
|
@@ -257,37 +207,26 @@
|
|
|
257
207
|
|
|
258
208
|
<!-- begin button-wrapper -->
|
|
259
209
|
<div class="button-wrapper stretch-on-small-devices">
|
|
260
|
-
<
|
|
261
|
-
:class="
|
|
262
|
-
'button primary',
|
|
263
|
-
{
|
|
210
|
+
<CmdLink
|
|
211
|
+
:class="{
|
|
264
212
|
disabled:
|
|
265
213
|
listOfFiles.length === 0 ||
|
|
266
214
|
(maxTotalUploadSize > 0 && totalSize > maxTotalUploadSize) ||
|
|
267
215
|
uploadInitiated
|
|
268
|
-
}
|
|
269
|
-
]"
|
|
216
|
+
}"
|
|
270
217
|
:disabled="
|
|
271
218
|
listOfFiles.length === 0 ||
|
|
272
219
|
(maxTotalUploadSize > 0 && totalSize > maxTotalUploadSize) ||
|
|
273
|
-
uploadInitiated
|
|
274
|
-
"
|
|
220
|
+
uploadInitiated"
|
|
221
|
+
v-bind="cmdLinkUploadFilesProperties"
|
|
275
222
|
@click="uploadFiles"
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
<span v-else>{{ getMessage("upload_form.buttontext.upload_files") }}</span>
|
|
284
|
-
</button>
|
|
285
|
-
<button :class="['button', { disabled: listOfFiles.length === 0 }]" @click="cancel">
|
|
286
|
-
<!-- begin CmdIcon -->
|
|
287
|
-
<CmdIcon v-bind="iconCancel" />
|
|
288
|
-
<!-- end CmdIcon -->
|
|
289
|
-
<span>{{ getMessage("upload_form.buttontext.cancel") }}</span>
|
|
290
|
-
</button>
|
|
223
|
+
/>
|
|
224
|
+
|
|
225
|
+
<CmdLink
|
|
226
|
+
@click="cancel"
|
|
227
|
+
v-bind="cmdLinkCancelIconProperties"
|
|
228
|
+
:class="{ disabled: listOfFiles.length === 0 }"
|
|
229
|
+
/>
|
|
291
230
|
</div>
|
|
292
231
|
<!-- end button-wrapper -->
|
|
293
232
|
</fieldset>
|
|
@@ -298,7 +237,7 @@
|
|
|
298
237
|
:class="['cmd-upload-form box', { 'drop-area': enableDragAndDrop, 'allow-drop': allowDrop }]"
|
|
299
238
|
v-on="dragAndDropHandler">
|
|
300
239
|
<!-- begin progressbar -->
|
|
301
|
-
<span
|
|
240
|
+
<span v-if="uploadInitiated" class="progressbar">
|
|
302
241
|
<span>{{ getPercentage(totalUploadProgress) }}</span>
|
|
303
242
|
<progress
|
|
304
243
|
max="100"
|
|
@@ -314,20 +253,20 @@
|
|
|
314
253
|
<template v-if="fileTypeImage">
|
|
315
254
|
<span>{{ getMessage("upload_form.select_image") }}</span>
|
|
316
255
|
<!-- begin CmdIcon -->
|
|
317
|
-
<CmdIcon
|
|
256
|
+
<CmdIcon v-bind="cmdIconImage" />
|
|
318
257
|
<!-- end CmdIcon -->
|
|
319
258
|
</template>
|
|
320
259
|
<template v-else>
|
|
321
260
|
<span>{{ getMessage("upload_form.select_file") }}</span>
|
|
322
261
|
<!-- begin CmdIcon -->
|
|
323
|
-
<CmdIcon
|
|
262
|
+
<CmdIcon v-bind="cmdIconFileUpload" />
|
|
324
263
|
<!-- end CmdIcon -->
|
|
325
264
|
</template>
|
|
326
265
|
</template>
|
|
327
266
|
<template v-else>
|
|
328
267
|
<span>{{ getMessage("upload_form.drag_and_drop_file_here") }}</span>
|
|
329
268
|
<!-- begin CmdIcon -->
|
|
330
|
-
<CmdIcon
|
|
269
|
+
<CmdIcon v-bind="cmdIconDragAndDrop" />
|
|
331
270
|
<!-- end CmdIcon -->
|
|
332
271
|
</template>
|
|
333
272
|
<small>{{ getMessage("upload_form.max_upload_size") }} {{ formatSize(maxFileUploadSize) }}</small>
|
|
@@ -363,6 +302,11 @@ export default {
|
|
|
363
302
|
name: "CmdUploadForm",
|
|
364
303
|
emits: ["click", "error", "upload-complete", "upload-file-success"],
|
|
365
304
|
mixins: [I18n, DefaultMessageProperties],
|
|
305
|
+
inject: {
|
|
306
|
+
editModeContext: {
|
|
307
|
+
default: null
|
|
308
|
+
}
|
|
309
|
+
},
|
|
366
310
|
data() {
|
|
367
311
|
return {
|
|
368
312
|
comment: "",
|
|
@@ -520,117 +464,109 @@ export default {
|
|
|
520
464
|
}
|
|
521
465
|
},
|
|
522
466
|
/**
|
|
523
|
-
* set icon for
|
|
467
|
+
* set icon for invisible-icon
|
|
524
468
|
*/
|
|
525
|
-
|
|
469
|
+
iconInvisible: {
|
|
526
470
|
type: Object,
|
|
527
471
|
default() {
|
|
528
472
|
return {
|
|
529
|
-
iconClass: "icon-
|
|
530
|
-
iconType: "auto"
|
|
473
|
+
iconClass: "icon-not-visible"
|
|
531
474
|
}
|
|
532
475
|
}
|
|
533
476
|
},
|
|
534
477
|
/**
|
|
535
|
-
* set icon for
|
|
478
|
+
* set icon class for visible-icon
|
|
536
479
|
*/
|
|
537
|
-
|
|
480
|
+
iconVisible: {
|
|
538
481
|
type: Object,
|
|
539
482
|
default() {
|
|
540
483
|
return {
|
|
541
|
-
iconClass: "icon-
|
|
542
|
-
iconType: "auto"
|
|
484
|
+
iconClass: "icon-visible"
|
|
543
485
|
}
|
|
544
486
|
}
|
|
545
487
|
},
|
|
546
488
|
/**
|
|
547
|
-
*
|
|
489
|
+
* properties for CmdIcon for "drag-and-drop"-icon
|
|
548
490
|
*/
|
|
549
|
-
|
|
491
|
+
cmdIconDragAndDrop: {
|
|
550
492
|
type: Object,
|
|
551
493
|
default() {
|
|
552
494
|
return {
|
|
553
|
-
iconClass: "icon-
|
|
554
|
-
iconType: "auto"
|
|
495
|
+
iconClass: "icon-not-visible"
|
|
555
496
|
}
|
|
556
497
|
}
|
|
557
498
|
},
|
|
558
|
-
|
|
559
|
-
*
|
|
499
|
+
/**
|
|
500
|
+
* properties for CmdIcon for "image"-icon
|
|
560
501
|
*/
|
|
561
|
-
|
|
502
|
+
cmdIconFileUpload: {
|
|
562
503
|
type: Object,
|
|
563
504
|
default() {
|
|
564
505
|
return {
|
|
565
|
-
iconClass: "icon-
|
|
566
|
-
iconType: "auto"
|
|
506
|
+
iconClass: "icon-file"
|
|
567
507
|
}
|
|
568
508
|
}
|
|
569
509
|
},
|
|
570
510
|
/**
|
|
571
|
-
*
|
|
511
|
+
* properties for CmdIcon for "image"-icon
|
|
572
512
|
*/
|
|
573
|
-
|
|
513
|
+
cmdIconImage: {
|
|
574
514
|
type: Object,
|
|
575
515
|
default() {
|
|
576
516
|
return {
|
|
577
|
-
iconClass: "icon-
|
|
578
|
-
iconType: "auto"
|
|
517
|
+
iconClass: "icon-image"
|
|
579
518
|
}
|
|
580
519
|
}
|
|
581
520
|
},
|
|
582
521
|
/**
|
|
583
|
-
*
|
|
522
|
+
* properties for CmdLink-component for removing (before added) files from list
|
|
523
|
+
*
|
|
584
524
|
*/
|
|
585
|
-
|
|
525
|
+
cmdLinkRemoveFilesFromList: {
|
|
586
526
|
type: Object,
|
|
587
|
-
|
|
588
|
-
return {
|
|
589
|
-
iconClass: "icon-image",
|
|
590
|
-
iconType: "auto"
|
|
591
|
-
}
|
|
592
|
-
}
|
|
527
|
+
required: false
|
|
593
528
|
},
|
|
594
529
|
/**
|
|
595
|
-
*
|
|
530
|
+
* properties for CmdLink-component for selecting file(s)
|
|
596
531
|
*/
|
|
597
|
-
|
|
532
|
+
cmdLinkSelectFiles: {
|
|
598
533
|
type: Object,
|
|
599
|
-
|
|
600
|
-
return {
|
|
601
|
-
iconClass: "icon-upload",
|
|
602
|
-
iconType: "auto"
|
|
603
|
-
}
|
|
604
|
-
}
|
|
534
|
+
required: false
|
|
605
535
|
},
|
|
606
536
|
/**
|
|
607
|
-
*
|
|
537
|
+
* properties for CmdLink-component for uploading file(s)
|
|
608
538
|
*/
|
|
609
|
-
|
|
539
|
+
cmdLinkUploadFiles: {
|
|
610
540
|
type: Object,
|
|
611
|
-
|
|
612
|
-
return {
|
|
613
|
-
iconClass: "icon-drag-and-drop",
|
|
614
|
-
iconType: "auto"
|
|
615
|
-
}
|
|
616
|
-
}
|
|
541
|
+
required: false
|
|
617
542
|
},
|
|
618
543
|
/**
|
|
619
|
-
*
|
|
544
|
+
* properties for CmdLink-component for cancel-icon
|
|
620
545
|
*/
|
|
621
|
-
|
|
546
|
+
cmdLinkCancelIcon: {
|
|
622
547
|
type: Object,
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
548
|
+
required: false
|
|
549
|
+
},
|
|
550
|
+
/**
|
|
551
|
+
* properties for CmdLink-component to toggle the list of file extensions
|
|
552
|
+
*
|
|
553
|
+
* icon is set by iconVisible- and iconInvisible-properties
|
|
554
|
+
*/
|
|
555
|
+
cmdLinkToggleListOfFileExtensions: {
|
|
556
|
+
type: Object,
|
|
557
|
+
required: false
|
|
558
|
+
},
|
|
559
|
+
/**
|
|
560
|
+
* properties for CmdLink-component to reset upload (if upload failed before)
|
|
561
|
+
*/
|
|
562
|
+
cmdLinkResetUpload: {
|
|
563
|
+
type: Object,
|
|
564
|
+
required: false
|
|
629
565
|
},
|
|
630
566
|
/**
|
|
631
|
-
* properties for CmdHeadline-component at of the fieldset
|
|
567
|
+
* properties for CmdHeadline-component at top of the fieldset
|
|
632
568
|
*/
|
|
633
|
-
|
|
569
|
+
cmdHeadlineForFieldset: {
|
|
634
570
|
type: Object,
|
|
635
571
|
required: false
|
|
636
572
|
},
|
|
@@ -663,23 +599,116 @@ export default {
|
|
|
663
599
|
required: false
|
|
664
600
|
},
|
|
665
601
|
/**
|
|
666
|
-
* properties for CmdHeadline-component for 'select additional
|
|
602
|
+
* properties for CmdHeadline-component for 'select additional/new file(s)'
|
|
667
603
|
*/
|
|
668
|
-
|
|
604
|
+
cmdHeadlineSelectFiles: {
|
|
669
605
|
type: Object,
|
|
670
606
|
required: false
|
|
671
607
|
},
|
|
672
|
-
/**
|
|
673
|
-
* properties for CmdHeadline-component for 'select new file'
|
|
674
|
-
*/
|
|
675
|
-
cmdHeadlineSelectNewFile: {
|
|
676
|
-
type: Object,
|
|
677
|
-
required: false
|
|
678
|
-
}
|
|
679
608
|
},
|
|
680
609
|
computed: {
|
|
681
|
-
|
|
682
|
-
return
|
|
610
|
+
cmdHeadlineForFieldsetProperties() {
|
|
611
|
+
return {
|
|
612
|
+
show: true,
|
|
613
|
+
headlineLevel: 3,
|
|
614
|
+
...this.cmdHeadlineForFieldset
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
cmdHeadlineNoFilesToUploadProperties() {
|
|
618
|
+
return {
|
|
619
|
+
headlineLevel: 4,
|
|
620
|
+
...this.cmdHeadlineNoFilesToUpload,
|
|
621
|
+
headlineText: this.allowMultipleFileUploads ? this.getMessage("upload_form.no_files_to_upload") : this.getMessage("upload_form.no_file_to_upload")
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
cmdHeadlineListOfSelectedFilesProperties() {
|
|
625
|
+
return {
|
|
626
|
+
headlineLeveL: 4,
|
|
627
|
+
headlineText: this.getMessage("upload_form.headline.list_of_selected_files"),
|
|
628
|
+
...this.cmdHeadlineListOfSelectedFiles
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
cmdHeadlineSummaryOfAllFilesProperties() {
|
|
632
|
+
return {
|
|
633
|
+
headlineLevel: 4,
|
|
634
|
+
headlineText: this.getMessage("upload_form.headline.summary_of_all_files"),
|
|
635
|
+
...this.cmdHeadlineSummaryOfAllFiles
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
cmdHeadlineSelectFilesProperties() {
|
|
639
|
+
return {
|
|
640
|
+
headlineLevel: 4,
|
|
641
|
+
headlineText: this.allowMultipleFileUploads ? this.getMessage("upload_form.headline.select_additional_files") : this.getMessage("upload_form.headline.select_new_file"),
|
|
642
|
+
...this.cmdHeadlineSelectFiles
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
cmdLinkCancelIconProperties() {
|
|
646
|
+
return {
|
|
647
|
+
linkType: "button",
|
|
648
|
+
highlightLevel: null,
|
|
649
|
+
icon: {
|
|
650
|
+
iconClass: "icon-cancel-circle"
|
|
651
|
+
},
|
|
652
|
+
text: this.getMessage("upload_form.buttontext.cancel"),
|
|
653
|
+
...this.cmdLinkCancelIcon
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
cmdLinkSelectFilesProperties() {
|
|
657
|
+
return {
|
|
658
|
+
linkType: "button",
|
|
659
|
+
icon: {
|
|
660
|
+
iconClass: "icon-file-upload"
|
|
661
|
+
},
|
|
662
|
+
text: this.allowMultipleFileUploads ? this.getMessage("upload_form.labeltext.select_files") : this.getMessage("upload_form.labeltext.select_file") ,
|
|
663
|
+
...this.cmdLinkSelectFiles
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
cmdLinkToggleListOfFileExtensionsProperties() {
|
|
667
|
+
return {
|
|
668
|
+
icon: {
|
|
669
|
+
iconClass: this.showListOfFileExtensions ? this.iconInvisible?.iconClass : this.iconVisible?.iconClass,
|
|
670
|
+
type: this.showListOfFileExtensions ? this.iconInvisible?.iconType : this.iconVisible?.iconType,
|
|
671
|
+
tooltip: this.getMessage('upload_form.tooltip.toggle_list_of_allowed_file_types')
|
|
672
|
+
},
|
|
673
|
+
...this.cmdLinkToggleListOfFileExtensions
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
cmdLinkUploadFilesProperties() {
|
|
677
|
+
return {
|
|
678
|
+
linkType: "button",
|
|
679
|
+
icon: {
|
|
680
|
+
iconClass: "icon-upload"
|
|
681
|
+
},
|
|
682
|
+
text: this.listOfFiles.length === 1 || !this.allowMultipleFileUploads ? this.getMessage("upload_form.buttontext.upload_file") : this.getMessage("upload_form.buttontext.upload_files"),
|
|
683
|
+
...this.cmdLinkUploadFiles
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
cmdLinkCancelUploadProperties() {
|
|
687
|
+
return {
|
|
688
|
+
icon: {
|
|
689
|
+
iconClass: "icon-delete",
|
|
690
|
+
tooltip: this.getMessage('upload_form.labeltext.remove_all_files_from_list')
|
|
691
|
+
},
|
|
692
|
+
...this.cmdLinkCancelUpload
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
cmdLinkRemoveFilesFromListProperties() {
|
|
696
|
+
return {
|
|
697
|
+
icon: {
|
|
698
|
+
iconClass: "icon-delete"
|
|
699
|
+
},
|
|
700
|
+
...this.cmdLinkRemoveFilesFromList
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
cmdLinkResetUploadProperties() {
|
|
704
|
+
return {
|
|
705
|
+
icon: {
|
|
706
|
+
iconClass: "icon-loop-left",
|
|
707
|
+
tooltip: this.getMessage('upload_form.all_files_will_be_removed')
|
|
708
|
+
},
|
|
709
|
+
text: this.getMessage("upload_form.reset_upload"),
|
|
710
|
+
...this.cmdLinkResetUpload
|
|
711
|
+
}
|
|
683
712
|
},
|
|
684
713
|
fileTypeImage() {
|
|
685
714
|
return this.allowedFileExtensions.some(extension => extension.includes('jpg'));
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
<div class="cmd-width-limitation-wrapper" :class="{'sticky': sticky}" ref="width-limitation-wrapper">
|
|
4
4
|
<!-- begin slot-content in section -->
|
|
5
5
|
<section v-if="useInnerSection" :class="sectionClasses" :id="anchorId">
|
|
6
|
-
<!-- begin cmd-headline -->
|
|
7
6
|
<CmdHeadline
|
|
8
|
-
v-if="
|
|
7
|
+
v-if="(cmdHeadlineProperties?.show && cmdHeadlineProperties?.headlineText) || editModeContext"
|
|
9
8
|
v-bind="cmdHeadlineProperties"
|
|
10
9
|
/>
|
|
11
|
-
<!-- end cmd-headline -->
|
|
12
10
|
|
|
13
11
|
<!-- begin slot-content (one column/slot-item only) -->
|
|
14
12
|
<slot v-if="oneSlotItem()"></slot>
|
|
@@ -39,6 +37,11 @@
|
|
|
39
37
|
<script>
|
|
40
38
|
export default {
|
|
41
39
|
name: "CmdWidthLimitationWrapper",
|
|
40
|
+
inject: {
|
|
41
|
+
editModeContext: {
|
|
42
|
+
default: null
|
|
43
|
+
}
|
|
44
|
+
},
|
|
42
45
|
props: {
|
|
43
46
|
/**
|
|
44
47
|
* define container-type
|
|
@@ -122,6 +125,7 @@ export default {
|
|
|
122
125
|
computed: {
|
|
123
126
|
cmdHeadlineProperties() {
|
|
124
127
|
return {
|
|
128
|
+
show: true,
|
|
125
129
|
headlineLevel: 2,
|
|
126
130
|
...this.cmdHeadline
|
|
127
131
|
}
|
|
@@ -177,6 +181,18 @@ export default {
|
|
|
177
181
|
right: 0;
|
|
178
182
|
top: 0;
|
|
179
183
|
}
|
|
184
|
+
|
|
185
|
+
> section {
|
|
186
|
+
/* handle nested wrappers */
|
|
187
|
+
.cmd-width-limitation-wrapper {
|
|
188
|
+
max-width: none;
|
|
189
|
+
|
|
190
|
+
> section {
|
|
191
|
+
padding-left: 0; /* will be overwritten if aside-columns in site-wrapper exist */
|
|
192
|
+
padding-right: 0; /* will be overwritten if aside-columns in site-wrapper exist */
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
180
196
|
}
|
|
181
197
|
/* end cmd-width-limitation-wrapper ------------------------------------------------------------------------------------------ */
|
|
182
198
|
</style>
|