comand-component-library 4.3.27 → 5.0.0
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 +7568 -7448
- package/dist/styles/demopage-only.css +35 -1
- package/package.json +47 -46
- package/src/ComponentLibrary.vue +2697 -2688
- package/src/assets/data/component-structure.json +1 -1
- package/src/assets/data/form-elements.json +224 -224
- package/src/assets/data/social-networks-page-by-json.json +43 -43
- package/src/assets/styles/component-library-global-styles.scss +296 -295
- package/src/componentSettingsDataAndControls.vue +1 -18
- package/src/components/CmdAccordion.vue +1 -1
- package/src/components/CmdAddressData.vue +6 -1
- package/src/components/CmdAddressDataItem.vue +6 -1
- package/src/components/CmdBasicForm.vue +2 -2
- package/src/components/CmdBox.vue +1103 -1086
- package/src/components/CmdBoxWrapper.vue +11 -1
- package/src/components/CmdBreadcrumbs.vue +2 -2
- package/src/components/CmdCodeOutput.vue +1 -1
- package/src/components/CmdContainer.vue +13 -1
- package/src/components/CmdCookieDisclaimer.vue +480 -480
- package/src/components/CmdFakeSelect.vue +930 -917
- package/src/components/CmdFlexibleScrollContainer.vue +42 -42
- package/src/components/CmdForm.vue +481 -481
- package/src/components/CmdFormElement.vue +1110 -1091
- package/src/components/CmdFormFilters.vue +146 -146
- package/src/components/CmdGoogleMaps.vue +1 -1
- package/src/components/CmdHeadline.vue +21 -4
- package/src/components/CmdIcon.vue +8 -2
- package/src/components/CmdImage.vue +27 -21
- package/src/components/CmdImageZoom.vue +9 -8
- package/src/components/CmdInputGroup.vue +436 -435
- package/src/components/CmdLink.vue +1 -1
- package/src/components/CmdList.vue +3 -3
- package/src/components/CmdListOfRequirements.vue +192 -192
- package/src/components/CmdLoginForm.vue +618 -618
- package/src/components/CmdMailToolFilter.vue +217 -217
- package/src/components/CmdMainNavigation.vue +581 -572
- package/src/components/CmdMultistepFormProgressBar.vue +9 -9
- package/src/components/CmdNewsletterSubscription.vue +199 -199
- package/src/components/CmdPagination.vue +4 -2
- package/src/components/CmdParagraph.vue +10 -4
- package/src/components/CmdProgressBar.vue +72 -72
- package/src/components/CmdSiteHeader.vue +382 -389
- package/src/components/CmdSiteSearch.vue +420 -420
- package/src/components/CmdSiteWrapper.vue +12 -5
- package/src/components/CmdSlideshow.vue +519 -519
- package/src/components/CmdSmartSearch.vue +291 -291
- package/src/components/CmdSystemMessage.vue +3 -2
- package/src/components/CmdTable.vue +401 -401
- package/src/components/CmdTabs.vue +262 -262
- package/src/components/CmdTag.vue +2 -2
- package/src/components/CmdTextImageBlock.vue +8 -2
- package/src/components/CmdThumbnailScroller.vue +0 -7
- package/src/components/CmdToast.vue +1 -1
- package/src/components/CmdToggleDarkMode.vue +13 -11
- package/src/components/CmdTooltip.vue +305 -301
- package/src/components/CmdUploadForm.vue +1299 -1305
- package/src/components/CmdWidthLimitationWrapper.vue +1 -1
- package/src/components/EditComponentWrapper.vue +5 -5
- package/src/index.js +5 -0
- package/src/main.js +4 -3
- package/src/utils/template.js +57 -0
- package/dist/styles/templates/casual.css +0 -3
- package/src/assets/styles/template.css +0 -1
|
@@ -150,7 +150,7 @@ export default {
|
|
|
150
150
|
methods: {
|
|
151
151
|
activeLinkClass(index) {
|
|
152
152
|
if(this.activeLink === index) {
|
|
153
|
-
return "active"
|
|
153
|
+
return "step-active"
|
|
154
154
|
}
|
|
155
155
|
return null
|
|
156
156
|
},
|
|
@@ -211,7 +211,7 @@ export default {
|
|
|
211
211
|
gap: calc(var(--default-gap) / 2);
|
|
212
212
|
|
|
213
213
|
li {
|
|
214
|
-
a:not(.button), a.active:not(.button) {
|
|
214
|
+
a:not(.button), a.step-active:not(.button) {
|
|
215
215
|
border: 0;
|
|
216
216
|
border-radius: inherit;
|
|
217
217
|
|
|
@@ -238,7 +238,7 @@ export default {
|
|
|
238
238
|
justify-content: center;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
&:has(.active, .router-link-exact-active) {
|
|
241
|
+
&:has(.step-active, .router-link-exact-active) {
|
|
242
242
|
.separator {
|
|
243
243
|
color: var(--color-scheme-text-color); /* overwrite icon-color inside active links */
|
|
244
244
|
}
|
|
@@ -334,18 +334,18 @@ export default {
|
|
|
334
334
|
|
|
335
335
|
&.error {
|
|
336
336
|
.number {
|
|
337
|
-
border-color: var(--error-color);
|
|
338
|
-
color: var(--error-color);
|
|
337
|
+
border-color: var(--error-color-text);
|
|
338
|
+
color: var(--error-color-text);
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
.active {
|
|
341
|
+
.step-active {
|
|
342
342
|
.number {
|
|
343
343
|
background: var(--error-color) !important;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
:is(.active, .router-link-exact-active):not(.disabled) {
|
|
348
|
+
:is(.step-active, .router-link-exact-active):not(.disabled) {
|
|
349
349
|
a {
|
|
350
350
|
background: var(--button-primary-background-highlighted);
|
|
351
351
|
}
|
|
@@ -353,7 +353,7 @@ export default {
|
|
|
353
353
|
.number {
|
|
354
354
|
background: var(--primary-color);
|
|
355
355
|
border-color: var(--color-white);
|
|
356
|
-
color: var(--color-
|
|
356
|
+
color: var(--primary-color-contrast-text) !important;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
& ~ li {
|
|
@@ -367,7 +367,7 @@ export default {
|
|
|
367
367
|
|
|
368
368
|
.number {
|
|
369
369
|
background: none;
|
|
370
|
-
border-color: var(--border-color);
|
|
370
|
+
border-color: var(--default-border-color);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
}
|
|
@@ -1,200 +1,200 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- begin CmdNewsletterSubscription ---------------------------------------------------------------------------------------- -->
|
|
3
|
-
<fieldset class="cmd-newsletter-subscription flex-container">
|
|
4
|
-
<!-- begin legend -->
|
|
5
|
-
<legend :class="{hidden : !legend.show, 'align-left': legend.align === 'left'}">{{ legend.text }}</legend>
|
|
6
|
-
<!-- end legend -->
|
|
7
|
-
|
|
8
|
-
<!-- begin cmd-input-group -->
|
|
9
|
-
<CmdInputGroup
|
|
10
|
-
inputTypes="radio"
|
|
11
|
-
:labelText="cmdInputGroup.labelText"
|
|
12
|
-
:showLabel="cmdInputGroup.showLabel"
|
|
13
|
-
:inputElements="cmdInputGroup.inputElements"
|
|
14
|
-
v-model="subscription"
|
|
15
|
-
/>
|
|
16
|
-
<!-- end cmd-input-group -->
|
|
17
|
-
|
|
18
|
-
<!-- begin cmd-form-element -->
|
|
19
|
-
<CmdFormElement
|
|
20
|
-
element="input"
|
|
21
|
-
type="email"
|
|
22
|
-
:placeholder="cmdFormElementEmail.placeholder"
|
|
23
|
-
:labelText="cmdFormElementEmail.labelText"
|
|
24
|
-
id="cmd-email-newsletter-subscription"
|
|
25
|
-
:required="cmdFormElementEmail.required"
|
|
26
|
-
:useCustomTooltip="cmdFormElementEmail.useCustomTooltip"
|
|
27
|
-
v-model="email"
|
|
28
|
-
@validation-status-change="checkValidationStatus"
|
|
29
|
-
/>
|
|
30
|
-
<!-- end cmd-form-element -->
|
|
31
|
-
|
|
32
|
-
<div class="button-wrapper">
|
|
33
|
-
<!-- begin cmd-form-element -->
|
|
34
|
-
<CmdFormElement
|
|
35
|
-
element="button"
|
|
36
|
-
:type="buttonType"
|
|
37
|
-
:disabled="buttonDisabled"
|
|
38
|
-
:nativeButton="cmdFormElementSubmitDynamicLabel"
|
|
39
|
-
class="stretch-on-small-devices"
|
|
40
|
-
@click="sendData"
|
|
41
|
-
/>
|
|
42
|
-
<!-- end cmd-form-element -->
|
|
43
|
-
</div>
|
|
44
|
-
</fieldset>
|
|
45
|
-
<!-- end CmdNewsletterSubscription ---------------------------------------------------------------------------------------- -->
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
export default {
|
|
50
|
-
name: "CmdNewsletterSubscription",
|
|
51
|
-
emits: ["button-click"],
|
|
52
|
-
data() {
|
|
53
|
-
return {
|
|
54
|
-
buttonDisabled: true
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
props: {
|
|
58
|
-
/**
|
|
59
|
-
* set value for v-model (must be named modelValue in vue3 if default v-model should be used)
|
|
60
|
-
*/
|
|
61
|
-
modelValue: {
|
|
62
|
-
type: Object,
|
|
63
|
-
default() {
|
|
64
|
-
return {
|
|
65
|
-
subscription: "subscribe",
|
|
66
|
-
email: ""
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
/**
|
|
71
|
-
* set type for button
|
|
72
|
-
*
|
|
73
|
-
* @allowedValues: "submit", "button"
|
|
74
|
-
*/
|
|
75
|
-
buttonType: {
|
|
76
|
-
type: String,
|
|
77
|
-
default: "button",
|
|
78
|
-
validator(value) {
|
|
79
|
-
return value === "submit" || value === "button"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
/**
|
|
83
|
-
* legend for form
|
|
84
|
-
*
|
|
85
|
-
* useFieldset-property must be activated
|
|
86
|
-
*
|
|
87
|
-
* @requiredForAccessiblity: true
|
|
88
|
-
*/
|
|
89
|
-
legend: {
|
|
90
|
-
type: Object,
|
|
91
|
-
default() {
|
|
92
|
-
return {
|
|
93
|
-
show: true,
|
|
94
|
-
align: "left",
|
|
95
|
-
text: "Legend"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
/**
|
|
100
|
-
* properties for CmdInputGroup-component
|
|
101
|
-
*/
|
|
102
|
-
cmdInputGroup: {
|
|
103
|
-
type: Object,
|
|
104
|
-
default: function () {
|
|
105
|
-
return {
|
|
106
|
-
labelText: "Choose option",
|
|
107
|
-
showLabel: false,
|
|
108
|
-
inputElements: [
|
|
109
|
-
{
|
|
110
|
-
labelText: "Subscribe",
|
|
111
|
-
id: "radio-subscribe",
|
|
112
|
-
name: "cmd-subscribe-group",
|
|
113
|
-
value: "subscribe"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
labelText: "Unsubscribe",
|
|
117
|
-
id: "radio-unsubscribe",
|
|
118
|
-
name: "cmd-subscribe-group",
|
|
119
|
-
value: "unsubscribe"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
/**
|
|
126
|
-
* properties for CmdFormElement-component for email-field
|
|
127
|
-
*/
|
|
128
|
-
cmdFormElementEmail: {
|
|
129
|
-
type: Object,
|
|
130
|
-
default: function () {
|
|
131
|
-
return {
|
|
132
|
-
labelText: "Email-Address:",
|
|
133
|
-
placeholder: "Enter your email-address",
|
|
134
|
-
required: true
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
/**
|
|
139
|
-
* properties for CmdFormElement-component for submit-button
|
|
140
|
-
*/
|
|
141
|
-
cmdFormElementSubmit: {
|
|
142
|
-
type: Object,
|
|
143
|
-
default: function () {
|
|
144
|
-
return {
|
|
145
|
-
text: "Submit",
|
|
146
|
-
icon: {
|
|
147
|
-
show: true,
|
|
148
|
-
iconClass: "icon-message-send",
|
|
149
|
-
position: "before",
|
|
150
|
-
tooltip: ""
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
computed: {
|
|
157
|
-
cmdFormElementSubmitDynamicLabel() {
|
|
158
|
-
return this.updateButtonLabelText
|
|
159
|
-
},
|
|
160
|
-
updateButtonLabelText() {
|
|
161
|
-
const button = {...this.cmdFormElementSubmit}
|
|
162
|
-
button.text = this.subscription === "subscribe" ? "Subscribe now" : "Unsubscribe from list"
|
|
163
|
-
return button
|
|
164
|
-
},
|
|
165
|
-
subscription: {
|
|
166
|
-
get() {
|
|
167
|
-
return this.modelValue.subscription || "subscribe"
|
|
168
|
-
},
|
|
169
|
-
set(value) {
|
|
170
|
-
this.$emit("update:modelValue", {subscription: value, email: this.email})
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
email: {
|
|
174
|
-
get() {
|
|
175
|
-
return this.modelValue.email
|
|
176
|
-
},
|
|
177
|
-
set(value) {
|
|
178
|
-
this.$emit("update:modelValue", {subscription: this.subscription, email: value})
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
methods: {
|
|
183
|
-
sendData(event) {
|
|
184
|
-
this.$emit("button-click", {subscription: this.subscription, email: this.email, originalEvent: event})
|
|
185
|
-
},
|
|
186
|
-
checkValidationStatus(event) {
|
|
187
|
-
this.buttonDisabled = event !== "success"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
watch: {
|
|
191
|
-
modelValue: {
|
|
192
|
-
handler() {
|
|
193
|
-
return this.updateButtonLabelText
|
|
194
|
-
},
|
|
195
|
-
deep: true,
|
|
196
|
-
immediate: true
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<!-- begin CmdNewsletterSubscription ---------------------------------------------------------------------------------------- -->
|
|
3
|
+
<fieldset class="cmd-newsletter-subscription flex-container">
|
|
4
|
+
<!-- begin legend -->
|
|
5
|
+
<legend :class="{'visually-hidden' : !legend.show, 'align-left': legend.align === 'left'}">{{ legend.text }}</legend>
|
|
6
|
+
<!-- end legend -->
|
|
7
|
+
|
|
8
|
+
<!-- begin cmd-input-group -->
|
|
9
|
+
<CmdInputGroup
|
|
10
|
+
inputTypes="radio"
|
|
11
|
+
:labelText="cmdInputGroup.labelText"
|
|
12
|
+
:showLabel="cmdInputGroup.showLabel"
|
|
13
|
+
:inputElements="cmdInputGroup.inputElements"
|
|
14
|
+
v-model="subscription"
|
|
15
|
+
/>
|
|
16
|
+
<!-- end cmd-input-group -->
|
|
17
|
+
|
|
18
|
+
<!-- begin cmd-form-element -->
|
|
19
|
+
<CmdFormElement
|
|
20
|
+
element="input"
|
|
21
|
+
type="email"
|
|
22
|
+
:placeholder="cmdFormElementEmail.placeholder"
|
|
23
|
+
:labelText="cmdFormElementEmail.labelText"
|
|
24
|
+
id="cmd-email-newsletter-subscription"
|
|
25
|
+
:required="cmdFormElementEmail.required"
|
|
26
|
+
:useCustomTooltip="cmdFormElementEmail.useCustomTooltip"
|
|
27
|
+
v-model="email"
|
|
28
|
+
@validation-status-change="checkValidationStatus"
|
|
29
|
+
/>
|
|
30
|
+
<!-- end cmd-form-element -->
|
|
31
|
+
|
|
32
|
+
<div class="button-wrapper">
|
|
33
|
+
<!-- begin cmd-form-element -->
|
|
34
|
+
<CmdFormElement
|
|
35
|
+
element="button"
|
|
36
|
+
:type="buttonType"
|
|
37
|
+
:disabled="buttonDisabled"
|
|
38
|
+
:nativeButton="cmdFormElementSubmitDynamicLabel"
|
|
39
|
+
class="stretch-on-small-devices"
|
|
40
|
+
@click="sendData"
|
|
41
|
+
/>
|
|
42
|
+
<!-- end cmd-form-element -->
|
|
43
|
+
</div>
|
|
44
|
+
</fieldset>
|
|
45
|
+
<!-- end CmdNewsletterSubscription ---------------------------------------------------------------------------------------- -->
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<script>
|
|
49
|
+
export default {
|
|
50
|
+
name: "CmdNewsletterSubscription",
|
|
51
|
+
emits: ["button-click"],
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
buttonDisabled: true
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
props: {
|
|
58
|
+
/**
|
|
59
|
+
* set value for v-model (must be named modelValue in vue3 if default v-model should be used)
|
|
60
|
+
*/
|
|
61
|
+
modelValue: {
|
|
62
|
+
type: Object,
|
|
63
|
+
default() {
|
|
64
|
+
return {
|
|
65
|
+
subscription: "subscribe",
|
|
66
|
+
email: ""
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* set type for button
|
|
72
|
+
*
|
|
73
|
+
* @allowedValues: "submit", "button"
|
|
74
|
+
*/
|
|
75
|
+
buttonType: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: "button",
|
|
78
|
+
validator(value) {
|
|
79
|
+
return value === "submit" || value === "button"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* legend for form
|
|
84
|
+
*
|
|
85
|
+
* useFieldset-property must be activated
|
|
86
|
+
*
|
|
87
|
+
* @requiredForAccessiblity: true
|
|
88
|
+
*/
|
|
89
|
+
legend: {
|
|
90
|
+
type: Object,
|
|
91
|
+
default() {
|
|
92
|
+
return {
|
|
93
|
+
show: true,
|
|
94
|
+
align: "left",
|
|
95
|
+
text: "Legend"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
/**
|
|
100
|
+
* properties for CmdInputGroup-component
|
|
101
|
+
*/
|
|
102
|
+
cmdInputGroup: {
|
|
103
|
+
type: Object,
|
|
104
|
+
default: function () {
|
|
105
|
+
return {
|
|
106
|
+
labelText: "Choose option",
|
|
107
|
+
showLabel: false,
|
|
108
|
+
inputElements: [
|
|
109
|
+
{
|
|
110
|
+
labelText: "Subscribe",
|
|
111
|
+
id: "radio-subscribe",
|
|
112
|
+
name: "cmd-subscribe-group",
|
|
113
|
+
value: "subscribe"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
labelText: "Unsubscribe",
|
|
117
|
+
id: "radio-unsubscribe",
|
|
118
|
+
name: "cmd-subscribe-group",
|
|
119
|
+
value: "unsubscribe"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* properties for CmdFormElement-component for email-field
|
|
127
|
+
*/
|
|
128
|
+
cmdFormElementEmail: {
|
|
129
|
+
type: Object,
|
|
130
|
+
default: function () {
|
|
131
|
+
return {
|
|
132
|
+
labelText: "Email-Address:",
|
|
133
|
+
placeholder: "Enter your email-address",
|
|
134
|
+
required: true
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* properties for CmdFormElement-component for submit-button
|
|
140
|
+
*/
|
|
141
|
+
cmdFormElementSubmit: {
|
|
142
|
+
type: Object,
|
|
143
|
+
default: function () {
|
|
144
|
+
return {
|
|
145
|
+
text: "Submit",
|
|
146
|
+
icon: {
|
|
147
|
+
show: true,
|
|
148
|
+
iconClass: "icon-message-send",
|
|
149
|
+
position: "before",
|
|
150
|
+
tooltip: ""
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
computed: {
|
|
157
|
+
cmdFormElementSubmitDynamicLabel() {
|
|
158
|
+
return this.updateButtonLabelText
|
|
159
|
+
},
|
|
160
|
+
updateButtonLabelText() {
|
|
161
|
+
const button = {...this.cmdFormElementSubmit}
|
|
162
|
+
button.text = this.subscription === "subscribe" ? "Subscribe now" : "Unsubscribe from list"
|
|
163
|
+
return button
|
|
164
|
+
},
|
|
165
|
+
subscription: {
|
|
166
|
+
get() {
|
|
167
|
+
return this.modelValue.subscription || "subscribe"
|
|
168
|
+
},
|
|
169
|
+
set(value) {
|
|
170
|
+
this.$emit("update:modelValue", {subscription: value, email: this.email})
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
email: {
|
|
174
|
+
get() {
|
|
175
|
+
return this.modelValue.email
|
|
176
|
+
},
|
|
177
|
+
set(value) {
|
|
178
|
+
this.$emit("update:modelValue", {subscription: this.subscription, email: value})
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
methods: {
|
|
183
|
+
sendData(event) {
|
|
184
|
+
this.$emit("button-click", {subscription: this.subscription, email: this.email, originalEvent: event})
|
|
185
|
+
},
|
|
186
|
+
checkValidationStatus(event) {
|
|
187
|
+
this.buttonDisabled = event !== "success"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
watch: {
|
|
191
|
+
modelValue: {
|
|
192
|
+
handler() {
|
|
193
|
+
return this.updateButtonLabelText
|
|
194
|
+
},
|
|
195
|
+
deep: true,
|
|
196
|
+
immediate: true
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
200
|
</script>
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
:href="getPreviousHref"
|
|
8
8
|
:class="['page-change', {'disabled': currentPage === 1, 'button': linkType === 'button'}]"
|
|
9
9
|
@click.stop.prevent="previousPage"
|
|
10
|
-
:title="!prevLink.showText ? prevLink.text : null"
|
|
10
|
+
:title="!prevLink.showText ? prevLink.text : null"
|
|
11
|
+
:aria-label="getPreviousHref ? (prevLink.text || 'Previous page') : null"
|
|
11
12
|
>
|
|
12
13
|
<!-- begin CmdIcon -->
|
|
13
14
|
<CmdIcon :iconClass="prevLink.iconClass" :type="prevLink.iconType"/>
|
|
@@ -35,7 +36,8 @@
|
|
|
35
36
|
<a :href="getNextHref"
|
|
36
37
|
:class="['page-change', {'disabled': currentPage === numberOfPages, 'button': linkType === 'button'}]"
|
|
37
38
|
@click.stop.prevent="nextPage"
|
|
38
|
-
:title="!nextLink.showText ? nextLink.text : null"
|
|
39
|
+
:title="!nextLink.showText ? nextLink.text : null"
|
|
40
|
+
:aria-label="getNextHref ? (nextLink.text || 'Next page') : null"
|
|
39
41
|
>
|
|
40
42
|
<span v-if="nextLink.showText">{{ nextLink.text }}</span>
|
|
41
43
|
<!-- begin CmdIcon -->
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- begin CmdParagraph ---------------------------------------------------------------------------------------- -->
|
|
3
|
-
<
|
|
4
|
-
:
|
|
3
|
+
<component
|
|
4
|
+
:is="containsBlockElements ? 'div' : 'p'"
|
|
5
|
+
:class="['cmd-paragraph', 'text-align-' + textAlign, 'column-count-' + numberOfColumns]"
|
|
5
6
|
v-html="content"
|
|
6
|
-
|
|
7
|
-
</p>
|
|
7
|
+
/>
|
|
8
8
|
<!-- end CmdParagraph ---------------------------------------------------------------------------------------- -->
|
|
9
9
|
</template>
|
|
10
10
|
|
|
@@ -45,6 +45,12 @@ export default {
|
|
|
45
45
|
value === "justify"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
+
},
|
|
49
|
+
computed: {
|
|
50
|
+
containsBlockElements() {
|
|
51
|
+
// block elements (i.e. <p>) are not allowed inside <p> => render a <div> instead
|
|
52
|
+
return /<(p|div|ul|ol|dl|h[1-6]|table|blockquote|pre|figure|section)[\s>]/i.test(this.content || "")
|
|
53
|
+
}
|
|
48
54
|
}
|
|
49
55
|
}
|
|
50
56
|
</script>
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<label class="cmd-progressbar" :for="id">
|
|
3
|
-
<span :class="['label-text', {hidden: !showLabel}]">{{ labelText }}</span>
|
|
4
|
-
<span class="progressbar">
|
|
5
|
-
<span v-if="showLoadingStatus">{{ loadingStatus }} %</span><!-- do not place inside progress-tag (will not be displayed then) -->
|
|
6
|
-
<progress v-bind="$attrs" :id="id" :value="loadingStatus"></progress>
|
|
7
|
-
</span>
|
|
8
|
-
</label>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script>
|
|
12
|
-
export default {
|
|
13
|
-
name: "CmdProgressBar",
|
|
14
|
-
inheritAttrs: false,
|
|
15
|
-
data() {
|
|
16
|
-
return {
|
|
17
|
-
loadingStatus: 30
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
/**
|
|
22
|
-
* label-text for progress-bar
|
|
23
|
-
*
|
|
24
|
-
* @requiredForAccessibility: true
|
|
25
|
-
*/
|
|
26
|
-
labelText: {
|
|
27
|
-
type: String,
|
|
28
|
-
required: false
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* toggle visibility for label-text
|
|
32
|
-
*/
|
|
33
|
-
showLabel: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: true
|
|
36
|
-
},
|
|
37
|
-
/**
|
|
38
|
-
* toggle visibility for loading-status
|
|
39
|
-
*/
|
|
40
|
-
showLoadingStatus: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: true
|
|
43
|
-
},
|
|
44
|
-
/**
|
|
45
|
-
* id for progress-bar
|
|
46
|
-
*
|
|
47
|
-
* @requiredForAccessibility: true
|
|
48
|
-
*/
|
|
49
|
-
id: {
|
|
50
|
-
type: String,
|
|
51
|
-
required: true
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
</script>
|
|
56
|
-
|
|
57
|
-
<style>
|
|
58
|
-
/* begin cmd-progressbar ---------------------------------------------------------------------------------------- */
|
|
59
|
-
.cmd-progressbar {
|
|
60
|
-
.progressbar {
|
|
61
|
-
display: table;
|
|
62
|
-
|
|
63
|
-
& > span {
|
|
64
|
-
position: absolute;
|
|
65
|
-
left: 50%;
|
|
66
|
-
transform: translateX(-50%);
|
|
67
|
-
z-index: 1;
|
|
68
|
-
line-height: 1.2;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
/* end cmd-progressbar ------------------------------------------------------------------------------------------ */
|
|
1
|
+
<template>
|
|
2
|
+
<label class="cmd-progressbar" :for="id">
|
|
3
|
+
<span :class="['label-text', {'visually-hidden': !showLabel}]">{{ labelText }}</span>
|
|
4
|
+
<span class="progressbar">
|
|
5
|
+
<span v-if="showLoadingStatus">{{ loadingStatus }} %</span><!-- do not place inside progress-tag (will not be displayed then) -->
|
|
6
|
+
<progress v-bind="$attrs" :id="id" :value="loadingStatus"></progress>
|
|
7
|
+
</span>
|
|
8
|
+
</label>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
export default {
|
|
13
|
+
name: "CmdProgressBar",
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
loadingStatus: 30
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
/**
|
|
22
|
+
* label-text for progress-bar
|
|
23
|
+
*
|
|
24
|
+
* @requiredForAccessibility: true
|
|
25
|
+
*/
|
|
26
|
+
labelText: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: false
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* toggle visibility for label-text
|
|
32
|
+
*/
|
|
33
|
+
showLabel: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* toggle visibility for loading-status
|
|
39
|
+
*/
|
|
40
|
+
showLoadingStatus: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: true
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* id for progress-bar
|
|
46
|
+
*
|
|
47
|
+
* @requiredForAccessibility: true
|
|
48
|
+
*/
|
|
49
|
+
id: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: true
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<style>
|
|
58
|
+
/* begin cmd-progressbar ---------------------------------------------------------------------------------------- */
|
|
59
|
+
.cmd-progressbar {
|
|
60
|
+
.progressbar {
|
|
61
|
+
display: table;
|
|
62
|
+
|
|
63
|
+
& > span {
|
|
64
|
+
position: absolute;
|
|
65
|
+
left: 50%;
|
|
66
|
+
transform: translateX(-50%);
|
|
67
|
+
z-index: 1;
|
|
68
|
+
line-height: 1.2;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/* end cmd-progressbar ------------------------------------------------------------------------------------------ */
|
|
73
73
|
</style>
|