comand-component-library 4.1.7 → 4.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +4771 -4715
- package/dist/comand-component-library.umd.cjs +36 -26
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/ComponentLibrary.vue +17 -20
- package/src/assets/data/listOfComponents.json +1 -0
- package/src/assets/styles/component-library-global-styles.scss +9 -0
- package/src/componentSettingsDataAndControls.vue +17 -1
- package/src/components/CmdAddressData.vue +1 -3
- package/src/components/CmdBox.vue +3 -3
- package/src/components/CmdCookieDisclaimer.vue +154 -59
- package/src/components/CmdFakeSelect.vue +4 -4
- package/src/components/CmdFancyBox.vue +113 -72
- package/src/components/CmdFormElement.vue +5 -5
- package/src/components/CmdGoogleMaps.vue +2 -2
- package/src/components/CmdImageGallery.vue +1 -1
- package/src/components/CmdListOfRequirements.vue +2 -2
- package/src/components/CmdMultistepFormProgressBar.vue +7 -7
- package/src/components/CmdPageFooter.vue +11 -2
- package/src/components/CmdPagination.vue +1 -1
- package/src/components/CmdSiteSearch.vue +2 -2
- package/src/components/CmdThumbnailScroller.vue +3 -3
- package/src/components/CmdUploadForm.vue +44 -44
- package/src/mixins/CmdBox/DefaultMessageProperties.js +4 -4
- package/src/mixins/CmdCookieDisclaimer/DefaultMessageProperties.js +3 -2
- package/src/mixins/CmdFakeSelect/DefaultMessageProperties.js +5 -5
- package/src/mixins/CmdFormElement/DefaultMessageProperties.js +5 -5
- package/src/mixins/CmdGoogleMaps/DefaultMessageProperties.js +2 -2
- package/src/mixins/CmdImageGallery/DefaultMessageProperties.js +1 -1
- package/src/mixins/CmdListOfRequirements/DefaultMessageProperties.js +2 -2
- package/src/mixins/CmdPagination/DefaultMessageProperties.js +2 -2
- package/src/mixins/CmdSiteSearch/DefaultMessageProperties.js +2 -6
- package/src/mixins/CmdThumbnailScroller/DefaultMessageProperties.js +3 -3
- package/src/mixins/CmdUploadForm/DefaultMessageProperties.js +45 -45
- package/src/mixins/FieldValidation.js +5 -5
- package/src/mixins/GlobalDefaultMessageProperties.js +7 -7
- package/src/pages/PageWrapper.vue +1 -1
- package/src/mixins/CmdAddressData/DefaultMessageProperties.js +0 -20
@@ -725,13 +725,13 @@ export default {
|
|
725
725
|
|
726
726
|
// set default-tooltip if customTooltip is not set
|
727
727
|
if (this.validationStatus === 'error') {
|
728
|
-
return this.getMessage("
|
728
|
+
return this.getMessage("form_element.validation_tooltip.an_error_occurred")
|
729
729
|
} else if (this.validationStatus === 'success') {
|
730
|
-
return this.getMessage("
|
730
|
+
return this.getMessage("form_element.validation_tooltip.information_is_filled_correctly")
|
731
731
|
} else if (this.capsLockActivated) {
|
732
|
-
return this.getMessage("
|
732
|
+
return this.getMessage("form_element.validation_tooltip.caps_lock_is_activated")
|
733
733
|
}
|
734
|
-
return this.getMessage("
|
734
|
+
return this.getMessage("form_element.validation_tooltip.open_field_requirements")
|
735
735
|
},
|
736
736
|
autocomplete() {
|
737
737
|
if (this.$attrs.type !== 'file') {
|
@@ -759,7 +759,7 @@ export default {
|
|
759
759
|
// check if field is type "email"
|
760
760
|
if (this.$attrs.type === "email") {
|
761
761
|
requirements.push({
|
762
|
-
message: this.getMessage("
|
762
|
+
message: this.getMessage("form_element.validation_tooltip.is_valid_email"),
|
763
763
|
valid: () => this.$refs.input.checkValidity()
|
764
764
|
})
|
765
765
|
}
|
@@ -3,9 +3,9 @@
|
|
3
3
|
<!-- begin CmdSystemMessage -->
|
4
4
|
<CmdSystemMessage v-if="!cookiesAccepted" validationStatus="warning">
|
5
5
|
<p>
|
6
|
-
{{getMessage("
|
6
|
+
{{getMessage("google_maps.system_message.accept_terms")}}
|
7
7
|
</p>
|
8
|
-
<a href="#" @click.prevent="acceptCookies">{{getMessage("
|
8
|
+
<a href="#" @click.prevent="acceptCookies">{{getMessage("google_maps.button_text.accept_required_cookies")}}</a>
|
9
9
|
</CmdSystemMessage>
|
10
10
|
<!-- end CmdSystemMessage -->
|
11
11
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
:key="index"
|
15
15
|
href="#"
|
16
16
|
@click.prevent="showFancyBox(index)"
|
17
|
-
:title="getMessage('
|
17
|
+
:title="getMessage('image_gallery.tooltip.open_large_image')">
|
18
18
|
<CmdImage :image="image.image" :figcaption="figcaption(image)"/>
|
19
19
|
</a>
|
20
20
|
<!-- end images linked to fancybox -->
|
@@ -142,9 +142,9 @@ export default {
|
|
142
142
|
computed: {
|
143
143
|
headlineRequirements() {
|
144
144
|
if (this.inputRequirements.length > 1) {
|
145
|
-
return this.getMessage("
|
145
|
+
return this.getMessage("list_of_requirements.headline.requirements_for_input")
|
146
146
|
}
|
147
|
-
return this.getMessage("
|
147
|
+
return this.getMessage("list_of_requirements.headline.requirement_for_input")
|
148
148
|
}
|
149
149
|
}
|
150
150
|
}
|
@@ -104,7 +104,7 @@ export default {
|
|
104
104
|
|
105
105
|
a {
|
106
106
|
:is(span, [class*="icon-"]) + [class*="icon-"]:last-child {
|
107
|
-
color: var(--
|
107
|
+
color: var(--color-scheme-text-color) !important;
|
108
108
|
}
|
109
109
|
}
|
110
110
|
|
@@ -152,7 +152,7 @@ export default {
|
|
152
152
|
border: var(--default-border);
|
153
153
|
border-radius: var(--full-circle);
|
154
154
|
background: var(--pure-white);
|
155
|
-
color: var(--
|
155
|
+
color: var(--color-scheme-text-color);
|
156
156
|
margin: 0;
|
157
157
|
position: absolute;
|
158
158
|
right: 0;
|
@@ -177,7 +177,7 @@ export default {
|
|
177
177
|
}
|
178
178
|
|
179
179
|
.number {
|
180
|
-
color: var(--
|
180
|
+
color: var(--hyperlink-color);
|
181
181
|
}
|
182
182
|
}
|
183
183
|
|
@@ -221,7 +221,7 @@ export default {
|
|
221
221
|
|
222
222
|
& + [class*="icon-"] {
|
223
223
|
&:last-child {
|
224
|
-
color: var(--
|
224
|
+
color: var(--color-scheme-text-color);
|
225
225
|
}
|
226
226
|
}
|
227
227
|
}
|
@@ -231,7 +231,7 @@ export default {
|
|
231
231
|
.number {
|
232
232
|
background: var(--pure-white);
|
233
233
|
border-color: var(--pure-white);
|
234
|
-
color: var(--
|
234
|
+
color: var(--hyperlink-color) !important;
|
235
235
|
}
|
236
236
|
|
237
237
|
& ~ li {
|
@@ -257,12 +257,12 @@ export default {
|
|
257
257
|
&:hover, &:active, &:focus {
|
258
258
|
span, [class*="icon-"] {
|
259
259
|
&:not(:last-child) {
|
260
|
-
color: var(--
|
260
|
+
color: var(--hyperlink-color);
|
261
261
|
}
|
262
262
|
}
|
263
263
|
|
264
264
|
.number {
|
265
|
-
border-color: var(--
|
265
|
+
border-color: var(--hyperlink-color);
|
266
266
|
}
|
267
267
|
}
|
268
268
|
}
|
@@ -59,6 +59,13 @@ export default {
|
|
59
59
|
type: Boolean,
|
60
60
|
default: true
|
61
61
|
},
|
62
|
+
/**
|
63
|
+
* define container/selector to show in print-preview
|
64
|
+
*/
|
65
|
+
containerToPrint: {
|
66
|
+
type: String,
|
67
|
+
default: "main"
|
68
|
+
},
|
62
69
|
/**
|
63
70
|
* properties for CmdSocialNetworks-component
|
64
71
|
*/
|
@@ -101,17 +108,19 @@ export default {
|
|
101
108
|
if(typeof this.cmdFancyBox.elements === "function") {
|
102
109
|
elements = this.cmdFancyBox.elements()
|
103
110
|
} else {
|
104
|
-
elements = [document.querySelector(
|
111
|
+
elements = [document.querySelector(this.containerToPrint)]
|
105
112
|
}
|
106
113
|
|
107
114
|
openFancyBox({
|
108
115
|
elements: elements,
|
116
|
+
fancyBoxOptions: this.cmdFancyBox.fancyBoxOptions,
|
109
117
|
showPrintButtons: this.cmdFancyBox.showPrintButtons,
|
110
118
|
defaultAriaLabelText: this.cmdFancyBox.defaultAriaLabelText,
|
111
119
|
cmdHeadline: this.cmdFancyBox.cmdHeadline,
|
112
120
|
showOverlay: this.cmdFancyBox.showOverlay,
|
113
121
|
showSubmitButtons: this.cmdFancyBox.showSubmitButtons,
|
114
|
-
allowEscapeKey: this.cmdFancyBox.allowEscapeKey
|
122
|
+
allowEscapeKey: this.cmdFancyBox.allowEscapeKey,
|
123
|
+
id: this.cmdFancyBox.id || "print-preview"
|
115
124
|
})
|
116
125
|
}
|
117
126
|
}
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<div class="flex-container">
|
20
20
|
<a :href="getHref(page)"
|
21
21
|
:class="{'disabled': currentPage === index + 1, 'button': linkType === 'button', 'hidden': !showPageNumbers}"
|
22
|
-
:title="currentPage !== index + 1 ? getMessage('
|
22
|
+
:title="currentPage !== index + 1 ? getMessage('pagination.tooltip.go_to_page', index + 1) : getMessage('pagination.tooltip.not_possible')"
|
23
23
|
v-for="(page, index) in pages"
|
24
24
|
:key="index"
|
25
25
|
@click.stop.prevent="showPage(page)" aria-live="polite">
|
@@ -74,8 +74,8 @@
|
|
74
74
|
:type="showFilters ? cmdIcon?.showFilters?.iconType : cmdIcon?.hideFilters?.iconType"
|
75
75
|
/>
|
76
76
|
<!-- end CmdIcon -->
|
77
|
-
<span v-if="showFilters">{{ getMessage("
|
78
|
-
<span v-else>{{ getMessage("
|
77
|
+
<span v-if="showFilters">{{ getMessage("site_search.hide_filter_options") }}</span>
|
78
|
+
<span v-else>{{ getMessage("site_search.show_filter_options") }}</span>
|
79
79
|
</a>
|
80
80
|
<transition name="fade">
|
81
81
|
<div v-if="showFilters && cmdFakeSelect?.selectData.length" class="flex-container no-flex" role="listbox" aria-expanded="true">
|
@@ -256,12 +256,12 @@ export default {
|
|
256
256
|
computed: {
|
257
257
|
tooltip() {
|
258
258
|
if (this.contentType === "image") {
|
259
|
-
return this.getMessage("
|
259
|
+
return this.getMessage("thumbnail_scroller.tooltip.open_large_image")
|
260
260
|
}
|
261
261
|
if (this.executeOnClick === "url") {
|
262
|
-
return this.getMessage("
|
262
|
+
return this.getMessage("thumbnail_scroller.tooltip.open_url")
|
263
263
|
}
|
264
|
-
return this.getMessage("
|
264
|
+
return this.getMessage("thumbnail_scroller.tooltip.open")
|
265
265
|
},
|
266
266
|
fullWidthClass() {
|
267
267
|
if (this.orientation === "horizontal") {
|
@@ -14,7 +14,7 @@
|
|
14
14
|
v-if="systemMessageStatus && allSystemMessages.length"
|
15
15
|
:iconClose="{ show: false }"
|
16
16
|
:validationStatus="systemMessageStatus"
|
17
|
-
:systemMessage="allSystemMessages.length === 1 ? allSystemMessages[0] : getMessage('
|
17
|
+
:systemMessage="allSystemMessages.length === 1 ? allSystemMessages[0] : getMessage('upload_form.system_message.the_following_errors_occurred')"
|
18
18
|
>
|
19
19
|
<ul v-if="allSystemMessages.length > 1">
|
20
20
|
<li v-for="(systemMessage, index) in allSystemMessages" :key="index">
|
@@ -40,7 +40,7 @@
|
|
40
40
|
class="flex-container vertical list-files-wrapper">
|
41
41
|
<!-- begin CmdHeadline -->
|
42
42
|
<CmdHeadline v-bind="cmdHeadlineSummaryOfAllFiles" headlineLevel="4">
|
43
|
-
{{ getMessage("
|
43
|
+
{{ getMessage("upload_form.headline.summary_of_all_files") }}
|
44
44
|
</CmdHeadline>
|
45
45
|
<!-- end CmdHeadline -->
|
46
46
|
|
@@ -48,7 +48,7 @@
|
|
48
48
|
<li class="flex-container no-flex">
|
49
49
|
<a
|
50
50
|
href="#"
|
51
|
-
:title="getMessage('
|
51
|
+
:title="getMessage('upload_form.labeltext.remove_all_files_from_list')"
|
52
52
|
@click.prevent="cancelUpload"
|
53
53
|
>
|
54
54
|
<!-- begin CmdIcon -->
|
@@ -58,10 +58,10 @@
|
|
58
58
|
<span>
|
59
59
|
{{ listOfFiles.length }}
|
60
60
|
<template v-if="!allowMultipleFileUploads">
|
61
|
-
{{ getMessage("
|
61
|
+
{{ getMessage("upload_form.labeltext.file_uploading") }}
|
62
62
|
</template>
|
63
63
|
<template v-else>
|
64
|
-
{{ getMessage("
|
64
|
+
{{ getMessage("upload_form.labeltext.files_uploading") }}
|
65
65
|
</template>
|
66
66
|
</span>
|
67
67
|
<small
|
@@ -89,7 +89,7 @@
|
|
89
89
|
<!-- begin list of selected files -->
|
90
90
|
<!-- begin CmdHeadline -->
|
91
91
|
<CmdHeadline v-bind="cmdHeadlineListOfSelectedFiles" headlineLevel="4">
|
92
|
-
{{ getMessage("
|
92
|
+
{{ getMessage("upload_form.headline.list_of_selected_files") }}
|
93
93
|
</CmdHeadline>
|
94
94
|
<!-- end CmdHeadline -->
|
95
95
|
|
@@ -101,7 +101,7 @@
|
|
101
101
|
>
|
102
102
|
<a
|
103
103
|
href="#"
|
104
|
-
:title="getMessage('
|
104
|
+
:title="getMessage('upload_form.labeltext.remove_file_from_list', uploadFile.file.name)"
|
105
105
|
@click.prevent="removeFile(index)"
|
106
106
|
>
|
107
107
|
<!-- begin CmdIcon -->
|
@@ -136,8 +136,8 @@
|
|
136
136
|
v-if="failedUpload"
|
137
137
|
href="#"
|
138
138
|
@click.prevent="cancel"
|
139
|
-
:title="getMessage('
|
140
|
-
{{ getMessage("
|
139
|
+
:title="getMessage('upload_form.all_files_will_be_removed')">
|
140
|
+
{{ getMessage("upload_form.reset_upload") }}
|
141
141
|
</a>
|
142
142
|
<hr/>
|
143
143
|
</div>
|
@@ -149,40 +149,40 @@
|
|
149
149
|
<!-- begin CmdHeadline -->
|
150
150
|
<CmdHeadline v-if="allowMultipleFileUploads && listOfFiles.length"
|
151
151
|
v-bind="cmdHeadlineSelectAdditionalFiles" headlineLevel="4">
|
152
|
-
{{ getMessage("
|
152
|
+
{{ getMessage("upload_form.headline.select_additional_files") }}
|
153
153
|
</CmdHeadline>
|
154
154
|
<!-- end CmdHeadline -->
|
155
155
|
|
156
156
|
<!-- begin CmdHeadline -->
|
157
157
|
<CmdHeadline v-if="!allowMultipleFileUploads && listOfFiles.length" v-bind="cmdHeadlineSelectNewFile"
|
158
158
|
headlineLevel="4">
|
159
|
-
{{ getMessage("
|
159
|
+
{{ getMessage("upload_form.headline.select_new_file") }}
|
160
160
|
</CmdHeadline>
|
161
161
|
<!-- end CmdHeadline -->
|
162
162
|
|
163
163
|
<dl class="small">
|
164
164
|
<template v-if="maxTotalUploadSize > 0">
|
165
165
|
<dt :class="{ error: totalSize > maxTotalUploadSize }">
|
166
|
-
{{ getMessage("
|
166
|
+
{{ getMessage("upload_form.max_total_upload_size") }}
|
167
167
|
</dt>
|
168
168
|
<dd :class="['text-align-right', { error: totalSize > maxTotalUploadSize }]">
|
169
169
|
{{ formatSize(maxTotalUploadSize) }}
|
170
170
|
</dd>
|
171
171
|
</template>
|
172
172
|
<dt :class="{ error: errors.fileSize }">
|
173
|
-
{{ getMessage("
|
173
|
+
{{ getMessage("upload_form.max_file_upload_size") }}
|
174
174
|
</dt>
|
175
175
|
<dd :class="['text-align-right', { error: errors.fileSize }]">
|
176
176
|
{{ formatSize(maxFileUploadSize) }}
|
177
177
|
</dd>
|
178
178
|
<dt :class="{ error: errors.fileType }">
|
179
|
-
{{ getMessage("
|
179
|
+
{{ getMessage("upload_form.allowed_file_types") }}
|
180
180
|
</dt>
|
181
181
|
<dd>
|
182
182
|
<a
|
183
183
|
href="#"
|
184
184
|
@click.prevent="showListOfFileExtensions = !showListOfFileExtensions"
|
185
|
-
:title="getMessage('
|
185
|
+
:title="getMessage('upload_form.tooltip.toggle_list_of_allowed_file_types')">
|
186
186
|
<!-- begin CmdIcon -->
|
187
187
|
<CmdIcon
|
188
188
|
:iconClass="showListOfFileExtensions ? iconInvisible.iconClass : iconVisible.iconClass"
|
@@ -218,21 +218,21 @@
|
|
218
218
|
<CmdIcon :iconClass="iconFileUpload.iconClass" :type="iconFileUpload.iconType"/>
|
219
219
|
<!-- end CmdIcon -->
|
220
220
|
<span v-if="allowMultipleFileUploads">{{
|
221
|
-
getMessage("
|
221
|
+
getMessage("upload_form.labeltext.select_files")
|
222
222
|
}}</span>
|
223
|
-
<span v-else>{{ getMessage("
|
223
|
+
<span v-else>{{ getMessage("upload_form.labeltext.select_file") }}</span>
|
224
224
|
</button>
|
225
225
|
<p v-if="enableDragAndDrop" :class="['text-drag-and-drop', { disabled: uploadInitiated }]">
|
226
|
-
<span>{{ getMessage("
|
226
|
+
<span>{{ getMessage("upload_form.or") }}</span>
|
227
227
|
<strong>
|
228
|
-
{{ getMessage("
|
228
|
+
{{ getMessage("upload_form.drag_and_drop") }}
|
229
229
|
<template v-if="allowMultipleFileUploads && listOfFiles.length">
|
230
|
-
{{ getMessage("
|
230
|
+
{{ getMessage("upload_form.additional") }}
|
231
231
|
</template>
|
232
232
|
<template v-if="!allowMultipleFileUploads && listOfFiles.length">
|
233
|
-
{{ getMessage("
|
233
|
+
{{ getMessage("upload_form.new") }}
|
234
234
|
</template>
|
235
|
-
{{ getMessage("
|
235
|
+
{{ getMessage("upload_form.files_to_this_area") }}
|
236
236
|
</strong>
|
237
237
|
</p>
|
238
238
|
</div>
|
@@ -243,11 +243,11 @@
|
|
243
243
|
<CmdFormElement
|
244
244
|
v-if="enableComment"
|
245
245
|
element="textarea"
|
246
|
-
:labelText="getMessage('
|
246
|
+
:labelText="getMessage('upload_form.labeltext.comment')"
|
247
247
|
v-model="comment"
|
248
248
|
:required="commentRequired"
|
249
249
|
:validationMessage="commentStatusMessage"
|
250
|
-
:placeholder="getMessage('
|
250
|
+
:placeholder="getMessage('upload_form.placeholder.comment')"
|
251
251
|
:status="commentStatusMessage ? 'error' : ''"
|
252
252
|
/>
|
253
253
|
<!-- end CmdFormElement -->
|
@@ -274,15 +274,15 @@
|
|
274
274
|
<CmdIcon v-bind="iconUpload" />
|
275
275
|
<!-- end CmdIcon -->
|
276
276
|
<span v-if="listOfFiles.length === 1 || !allowMultipleFileUploads">
|
277
|
-
{{ getMessage("
|
277
|
+
{{ getMessage("upload_form.buttontext.upload_file") }}
|
278
278
|
</span>
|
279
|
-
<span v-else>{{ getMessage("
|
279
|
+
<span v-else>{{ getMessage("upload_form.buttontext.upload_files") }}</span>
|
280
280
|
</button>
|
281
281
|
<button :class="['button', { disabled: listOfFiles.length === 0 }]" @click="cancel">
|
282
282
|
<!-- begin CmdIcon -->
|
283
283
|
<CmdIcon v-bind="iconCancel" />
|
284
284
|
<!-- end CmdIcon -->
|
285
|
-
<span>{{ getMessage("
|
285
|
+
<span>{{ getMessage("upload_form.buttontext.cancel") }}</span>
|
286
286
|
</button>
|
287
287
|
</div>
|
288
288
|
</fieldset>
|
@@ -307,26 +307,26 @@
|
|
307
307
|
<slot>
|
308
308
|
<template v-if="!enableDragAndDrop">
|
309
309
|
<template v-if="fileTypeImage">
|
310
|
-
<span>{{ getMessage("
|
310
|
+
<span>{{ getMessage("upload_form.select_image") }}</span>
|
311
311
|
<!-- begin CmdIcon -->
|
312
312
|
<CmdIcon :iconClass="iconImage.iconClass" :type="iconImage.iconType"/>
|
313
313
|
<!-- end CmdIcon -->
|
314
314
|
</template>
|
315
315
|
<template v-else>
|
316
|
-
<span>{{ getMessage("
|
316
|
+
<span>{{ getMessage("upload_form.select_file") }}</span>
|
317
317
|
<!-- begin CmdIcon -->
|
318
318
|
<CmdIcon :iconClass="iconFileUpload.iconClass" :type="iconFileUpload.iconType"/>
|
319
319
|
<!-- end CmdIcon -->
|
320
320
|
</template>
|
321
321
|
</template>
|
322
322
|
<template v-else>
|
323
|
-
<span>{{ getMessage("
|
323
|
+
<span>{{ getMessage("upload_form.drag_and_drop_file_here") }}</span>
|
324
324
|
<!-- begin CmdIcon -->
|
325
325
|
<CmdIcon :iconClass="iconDragAndDrop.iconClass" :type="iconDragAndDrop.iconType"/>
|
326
326
|
<!-- end CmdIcon -->
|
327
327
|
</template>
|
328
|
-
<small>{{ getMessage("
|
329
|
-
<small>{{ getMessage("
|
328
|
+
<small>{{ getMessage("upload_form.max_upload_size") }} {{ formatSize(maxFileUploadSize) }}</small>
|
329
|
+
<small>{{ getMessage("upload_form.allowed_file_types") }} {{ allowedFileExtensions }}</small>
|
330
330
|
</slot>
|
331
331
|
<!-- end slot-content -->
|
332
332
|
</a>
|
@@ -336,7 +336,7 @@
|
|
336
336
|
<CmdFormElement
|
337
337
|
element="input"
|
338
338
|
type="file"
|
339
|
-
:labelText="getMessage('
|
339
|
+
:labelText="getMessage('upload_form.labeltext.select_files')"
|
340
340
|
:disabled="uploadInitiated"
|
341
341
|
:multiple="allowMultipleFileUploads"
|
342
342
|
@change="filesSelected"
|
@@ -664,7 +664,7 @@ export default {
|
|
664
664
|
},
|
665
665
|
computed: {
|
666
666
|
headlineTextNoFilesToUpload() {
|
667
|
-
return this.allowMultipleFileUploads ? this.getMessage("
|
667
|
+
return this.allowMultipleFileUploads ? this.getMessage("upload_form.no_files_to_upload") : this.this.getMessage("upload_form.no_file_to_upload")
|
668
668
|
},
|
669
669
|
fileTypeImage() {
|
670
670
|
return this.allowedFileExtensions.some(extension => extension.includes('jpg'));
|
@@ -691,7 +691,7 @@ export default {
|
|
691
691
|
allSystemMessages() {
|
692
692
|
if (this.maxTotalUploadSize > 0 && this.totalSize > this.maxTotalUploadSize) {
|
693
693
|
return [
|
694
|
-
this.getMessage("
|
694
|
+
this.getMessage("upload_form.system_message_total_size_of_files_too_large"),
|
695
695
|
...this.systemMessages
|
696
696
|
]
|
697
697
|
}
|
@@ -830,7 +830,7 @@ export default {
|
|
830
830
|
this.errors.fileSize = true
|
831
831
|
this.systemMessages.push(
|
832
832
|
this.getMessage(
|
833
|
-
"
|
833
|
+
"upload_form.system_message.file_size_too_large",
|
834
834
|
files[i].name,
|
835
835
|
files[i].size
|
836
836
|
)
|
@@ -844,7 +844,7 @@ export default {
|
|
844
844
|
this.errors.fileType = true
|
845
845
|
this.systemMessages.push(
|
846
846
|
this.getMessage(
|
847
|
-
"
|
847
|
+
"upload_form.system_message.not_allowed_file_type",
|
848
848
|
files[i].name,
|
849
849
|
getFileExtension(files[i].name)
|
850
850
|
)
|
@@ -861,7 +861,7 @@ export default {
|
|
861
861
|
) {
|
862
862
|
this.systemMessages.push(
|
863
863
|
this.getMessage(
|
864
|
-
"
|
864
|
+
"upload_form.system_message.duplicate_file",
|
865
865
|
files[i].name,
|
866
866
|
getFileExtension(files[i].name)
|
867
867
|
)
|
@@ -875,7 +875,7 @@ export default {
|
|
875
875
|
} else {
|
876
876
|
if (files.length > 1) {
|
877
877
|
this.systemMessages.push(
|
878
|
-
this.getMessage("
|
878
|
+
this.getMessage("upload_form.system_message.only_one_file_allowed")
|
879
879
|
)
|
880
880
|
}
|
881
881
|
// assign uploadFile-object (which contains current (and valid) file to listOfFiles-array
|
@@ -936,7 +936,7 @@ export default {
|
|
936
936
|
this.commentStatusMessage
|
937
937
|
) {
|
938
938
|
this.defaultSystemMessageStatus = "error"
|
939
|
-
this.systemMessages.push(this.getMessage("
|
939
|
+
this.systemMessages.push(this.getMessage("upload_form.system_message.fill_required"))
|
940
940
|
} else {
|
941
941
|
this.uploadInitiated = true
|
942
942
|
|
@@ -977,13 +977,13 @@ export default {
|
|
977
977
|
this.defaultSystemMessageStatus = "error"
|
978
978
|
this.systemMessages.push(
|
979
979
|
this.getMessage(
|
980
|
-
"
|
980
|
+
"upload_form.system_message.some_files_are_not_uploaded_successfully"
|
981
981
|
)
|
982
982
|
)
|
983
983
|
} else {
|
984
984
|
this.defaultSystemMessageStatus = "success"
|
985
985
|
this.systemMessages.push(
|
986
|
-
this.getMessage("
|
986
|
+
this.getMessage("upload_form.system_message.all_files_are_uploaded_successfully")
|
987
987
|
)
|
988
988
|
}
|
989
989
|
|
@@ -1049,10 +1049,10 @@ export default {
|
|
1049
1049
|
showMessage(result) {
|
1050
1050
|
if (result === true) {
|
1051
1051
|
this.defaultSystemMessageStatus = "success"
|
1052
|
-
this.systemMessages.push(this.getMessage("
|
1052
|
+
this.systemMessages.push(this.getMessage("upload_form.system_message.upload_success"))
|
1053
1053
|
} else if (result === false) {
|
1054
1054
|
this.defaultSystemMessageStatus = "error"
|
1055
|
-
this.systemMessages.push(this.getMessage("
|
1055
|
+
this.systemMessages.push(this.getMessage("upload_form.system_message.upload_failed"))
|
1056
1056
|
}
|
1057
1057
|
},
|
1058
1058
|
resetFields() {
|
@@ -2,10 +2,10 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
5
|
+
"box.productbox.new": "New",
|
6
|
+
"box.productbox.article_no": "Article No:",
|
7
|
+
"box.contentbox.collapse_text": "Collapse text",
|
8
|
+
"box.contentbox.expand_text": "Expand text"
|
9
9
|
}
|
10
10
|
}
|
11
11
|
}
|
@@ -2,8 +2,9 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"
|
6
|
-
"
|
5
|
+
"cookie_disclaimer.title.cookie_cannot_be_disabled": "This cookie cannot be disabled, because it is required for functionality!",
|
6
|
+
"cookie_disclaimer.title.toggle_to_accept_cookie": "Toggle to accept or reject this cookie!",
|
7
|
+
"cookie_disclaimer.title.toggle_box_content": "Toggle description visibility"
|
7
8
|
}
|
8
9
|
}
|
9
10
|
}
|
@@ -3,11 +3,11 @@ export default {
|
|
3
3
|
data() {
|
4
4
|
return {
|
5
5
|
defaultMessageProperties: {
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
6
|
+
"fake_select.headline.requirements_for_input": "Requirements for input",
|
7
|
+
"fake_select.linktext.deselect_all_options": "Deselect all options",
|
8
|
+
"fake_select.linktext.select_all_options": "Select all options",
|
9
|
+
"fake_select.headline.an_option_is_selected": "An option is selected",
|
10
|
+
"fake_select.option.options_selected": "{0} options selected",
|
11
11
|
...FormElementMessageProperties.data().defaultMessageProperties
|
12
12
|
}
|
13
13
|
}
|
@@ -2,11 +2,11 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
9
|
-
"
|
5
|
+
"form_element.validation_tooltip.an_error_occurred": "An error occurred!",
|
6
|
+
"form_element.validation_tooltip.information_is_filled_correctly": "This information is filled correctly!",
|
7
|
+
"form_element.validation_tooltip.caps_lock_is_activated": "Attention: Caps lock is activated!",
|
8
|
+
"form_element.validation_tooltip.open_field_requirements": "Open field requirements!",
|
9
|
+
"form_element.validation_tooltip.is_valid_email": "Is valid e-mail-address"
|
10
10
|
}
|
11
11
|
}
|
12
12
|
}
|
@@ -2,8 +2,8 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"
|
6
|
-
"
|
5
|
+
"google_maps.system_message.accept_terms": "You must accept cookies to view the map.",
|
6
|
+
"google_maps.button_text.accept_required_cookies": "Accept required cookies"
|
7
7
|
}
|
8
8
|
}
|
9
9
|
}
|
@@ -2,8 +2,8 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"
|
6
|
-
"
|
5
|
+
"list_of_requirements.headline.requirement_for_input": "Requirement for input",
|
6
|
+
"list_of_requirements.headline.requirements_for_input": "Requirements for input",
|
7
7
|
}
|
8
8
|
}
|
9
9
|
}
|
@@ -2,8 +2,8 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"
|
6
|
-
"
|
5
|
+
"pagination.tooltip.go_to_page": "Go to page {0}",
|
6
|
+
"pagination.tooltip.not_possible": "Not possible (current page is shown already)"
|
7
7
|
}
|
8
8
|
}
|
9
9
|
}
|
@@ -2,12 +2,8 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"cmdsitesearch.labeltext.where_to_search": "Where do you want to search?",
|
8
|
-
"cmdsitesearch.placeholder.where_to_search": "Zip or city",
|
9
|
-
"cmdsitesearch.show_filter_options": "Show filter options",
|
10
|
-
"cmdsitesearch.hide_filter_options": "Hide filter options",
|
5
|
+
"site_search.show_filter_options": "Show filter options",
|
6
|
+
"site_search.hide_filter_options": "Hide filter options",
|
11
7
|
}
|
12
8
|
}
|
13
9
|
}
|