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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<a v-if="linkType === 'href'"
|
|
5
5
|
ref="cmd-link"
|
|
6
6
|
:href="!disabled ? path : null"
|
|
7
|
-
:target="target"
|
|
7
|
+
:target="target || null"
|
|
8
8
|
:class="['cmd-link', highlightLevel, {'button': styleAsButton, 'disabled': disabled, 'box': styleAsBox, 'fancybox': fancybox}]"
|
|
9
9
|
@click.prevent="emitClick($event, 'href')"
|
|
10
10
|
:title="icon?.tooltip"
|
|
@@ -397,7 +397,7 @@ export default {
|
|
|
397
397
|
.cmd-list {
|
|
398
398
|
> ul {
|
|
399
399
|
flex-direction: column;
|
|
400
|
-
gap: var(
|
|
400
|
+
gap: var(--gap-small);
|
|
401
401
|
margin: 0;
|
|
402
402
|
|
|
403
403
|
li {
|
|
@@ -407,11 +407,11 @@ export default {
|
|
|
407
407
|
|
|
408
408
|
&:has(.tag) {
|
|
409
409
|
.tag {
|
|
410
|
-
gap: var(
|
|
410
|
+
gap: var(--gap-small);
|
|
411
411
|
|
|
412
412
|
&.primary, &.secondary, &.tertiary {
|
|
413
413
|
[class*="icon-"] {
|
|
414
|
-
color: var(--color
|
|
414
|
+
color: var(--tag-text-color);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -1,193 +1,193 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- begin CmdListOfRequirements ---------------------------------------------------------------------------------------- -->
|
|
3
|
-
<div class="cmd-list-of-requirements">
|
|
4
|
-
<!-- begin CmdHeadline -->
|
|
5
|
-
<CmdHeadline v-if="showHeadline" :headline-level="cmdHeadline.headlineLevel">
|
|
6
|
-
{{ headlineRequirements }}<template v-if="labelText"><br/>"{{ labelText }}"</template>
|
|
7
|
-
</CmdHeadline>
|
|
8
|
-
<!-- end CmdHeadline -->
|
|
9
|
-
|
|
10
|
-
<!-- begin list of requirements -->
|
|
11
|
-
<dl>
|
|
12
|
-
<template v-for="(requirement, index) in inputRequirements" :key="index">
|
|
13
|
-
<dt aria-live="assertive" :class="requirement.valid(inputModelValue, inputAttributes) ? 'success' : 'error'">{{ requirement.message }}:</dt>
|
|
14
|
-
<dd :class="requirement.valid(inputModelValue, inputAttributes) ? 'success' : 'error'">
|
|
15
|
-
<!-- begin CmdIcon -->
|
|
16
|
-
<CmdIcon
|
|
17
|
-
aria-live="assertive"
|
|
18
|
-
:iconClass="requirement.valid(inputModelValue, inputAttributes) ? iconSuccess.iconClass : iconError.iconClass"
|
|
19
|
-
:type="requirement.valid(inputModelValue, inputAttributes) ? iconSuccess.iconType : iconError.iconType"
|
|
20
|
-
:title="requirement.valid(inputModelValue, inputAttributes) ? iconSuccess.tooltip : iconError.tooltip"
|
|
21
|
-
/>
|
|
22
|
-
<!-- end CmdIcon -->
|
|
23
|
-
</dd>
|
|
24
|
-
</template>
|
|
25
|
-
</dl>
|
|
26
|
-
<!-- end list of requirements -->
|
|
27
|
-
|
|
28
|
-
<!-- begin helplink -->
|
|
29
|
-
<template v-if="helplink && helplink.show">
|
|
30
|
-
<hr />
|
|
31
|
-
<a
|
|
32
|
-
v-if="helplink.url"
|
|
33
|
-
:href="helplink.url"
|
|
34
|
-
:target="helplink.target"
|
|
35
|
-
@click.prevent
|
|
36
|
-
>
|
|
37
|
-
<!-- begin CmdIcon -->
|
|
38
|
-
<CmdIcon
|
|
39
|
-
v-if="helplink.icon?.iconClass"
|
|
40
|
-
:class="helplink.icon?.iconClass"
|
|
41
|
-
:title="helplink.icon?.tooltip"
|
|
42
|
-
/>
|
|
43
|
-
<!-- end CmdIcon -->
|
|
44
|
-
<span v-if="helplink.text">
|
|
45
|
-
{{ helplink.text }}
|
|
46
|
-
</span>
|
|
47
|
-
</a>
|
|
48
|
-
</template>
|
|
49
|
-
<!-- end helplink -->
|
|
50
|
-
</div>
|
|
51
|
-
<!-- end CmdListOfRequirements ---------------------------------------------------------------------------------------- -->
|
|
52
|
-
</template>
|
|
53
|
-
|
|
54
|
-
<script>
|
|
55
|
-
// import mixins
|
|
56
|
-
import I18n from "../mixins/I18n"
|
|
57
|
-
import DefaultMessageProperties from "../mixins/CmdListOfRequirements/DefaultMessageProperties"
|
|
58
|
-
|
|
59
|
-
export default {
|
|
60
|
-
name: "CmdListOfRequirements",
|
|
61
|
-
mixins: [
|
|
62
|
-
I18n,
|
|
63
|
-
DefaultMessageProperties
|
|
64
|
-
],
|
|
65
|
-
props: {
|
|
66
|
-
/**
|
|
67
|
-
* property to check validity of given modelValue
|
|
68
|
-
*/
|
|
69
|
-
inputModelValue: {
|
|
70
|
-
type: [String, Boolean, Array, Number],
|
|
71
|
-
default: ""
|
|
72
|
-
},
|
|
73
|
-
/**
|
|
74
|
-
* property to check validity of given attributes
|
|
75
|
-
*/
|
|
76
|
-
inputAttributes: {
|
|
77
|
-
type: Object,
|
|
78
|
-
required: true
|
|
79
|
-
},
|
|
80
|
-
/**
|
|
81
|
-
* text for label (used in headline)
|
|
82
|
-
*/
|
|
83
|
-
labelText: {
|
|
84
|
-
type: String,
|
|
85
|
-
required: false
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
* list of all requirements
|
|
89
|
-
*/
|
|
90
|
-
inputRequirements: {
|
|
91
|
-
type: Array,
|
|
92
|
-
required: true
|
|
93
|
-
},
|
|
94
|
-
/**
|
|
95
|
-
* set a helplink to a different page for further support
|
|
96
|
-
*/
|
|
97
|
-
helplink: {
|
|
98
|
-
type: Object,
|
|
99
|
-
required: false
|
|
100
|
-
},
|
|
101
|
-
/**
|
|
102
|
-
* icon to show success-status
|
|
103
|
-
*/
|
|
104
|
-
iconSuccess: {
|
|
105
|
-
type: Object,
|
|
106
|
-
default() {
|
|
107
|
-
return {
|
|
108
|
-
iconClass: "icon-check-circle",
|
|
109
|
-
tooltip: "success"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
/**
|
|
114
|
-
* icon to show error-status
|
|
115
|
-
*/
|
|
116
|
-
iconError: {
|
|
117
|
-
type: Object,
|
|
118
|
-
default() {
|
|
119
|
-
return {
|
|
120
|
-
iconClass: "icon-error-circle",
|
|
121
|
-
tooltip: "error"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
/**
|
|
126
|
-
* toggle headline-visibility
|
|
127
|
-
*/
|
|
128
|
-
showHeadline: {
|
|
129
|
-
type: Boolean,
|
|
130
|
-
default: true
|
|
131
|
-
},
|
|
132
|
-
/**
|
|
133
|
-
* properties of CmdHeadline-component
|
|
134
|
-
*/
|
|
135
|
-
cmdHeadline: {
|
|
136
|
-
type: Object,
|
|
137
|
-
default() {
|
|
138
|
-
return {
|
|
139
|
-
headlineLevel: 6
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
computed: {
|
|
145
|
-
headlineRequirements() {
|
|
146
|
-
if (this.inputRequirements.length > 1) {
|
|
147
|
-
return this.getMessage("list_of_requirements.headline.requirements_for_input")
|
|
148
|
-
}
|
|
149
|
-
return this.getMessage("list_of_requirements.headline.requirement_for_input")
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
</script>
|
|
154
|
-
|
|
155
|
-
<style>
|
|
156
|
-
/* begin cmd-list-of-requirements ------------------------------------------------------------------------------------------ */
|
|
157
|
-
.cmd-list-of-requirements {
|
|
158
|
-
dl {
|
|
159
|
-
span[class*="icon-"] {
|
|
160
|
-
color: var(--status-color);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.error, .error span {
|
|
164
|
-
--status-color: var(--error-color) !important; /* assure status-color is not overwritten by form-element-status */
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.warning, .warning span {
|
|
168
|
-
--status-color: var(--warning-color) !important; /* assure status-color is not overwritten by form-element-status */
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.success, .success span {
|
|
172
|
-
--status-color: var(--success-color) !important; /* assure status-color is not overwritten by form-element-status */
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.info, .info span {
|
|
176
|
-
--status-color: var(--info-color) !important; /* assure status-color is not overwritten by form-element-status */
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
dt, dt span[class*="icon-"] {
|
|
180
|
-
color: var(--status-color);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
& ~ a {
|
|
184
|
-
display: flex;
|
|
185
|
-
align-items: center;
|
|
186
|
-
justify-content: center;
|
|
187
|
-
text-align: center;
|
|
188
|
-
text-decoration: none;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
/* end cmd-list-of-requirements ------------------------------------------------------------------------------------------ */
|
|
1
|
+
<template>
|
|
2
|
+
<!-- begin CmdListOfRequirements ---------------------------------------------------------------------------------------- -->
|
|
3
|
+
<div class="cmd-list-of-requirements">
|
|
4
|
+
<!-- begin CmdHeadline -->
|
|
5
|
+
<CmdHeadline v-if="showHeadline" :headline-level="cmdHeadline.headlineLevel">
|
|
6
|
+
{{ headlineRequirements }}<template v-if="labelText"><br/>"{{ labelText }}"</template>
|
|
7
|
+
</CmdHeadline>
|
|
8
|
+
<!-- end CmdHeadline -->
|
|
9
|
+
|
|
10
|
+
<!-- begin list of requirements -->
|
|
11
|
+
<dl>
|
|
12
|
+
<template v-for="(requirement, index) in inputRequirements" :key="index">
|
|
13
|
+
<dt aria-live="assertive" :class="requirement.valid(inputModelValue, inputAttributes) ? 'success' : 'error'">{{ requirement.message }}:</dt>
|
|
14
|
+
<dd :class="requirement.valid(inputModelValue, inputAttributes) ? 'success' : 'error'">
|
|
15
|
+
<!-- begin CmdIcon -->
|
|
16
|
+
<CmdIcon
|
|
17
|
+
aria-live="assertive"
|
|
18
|
+
:iconClass="requirement.valid(inputModelValue, inputAttributes) ? iconSuccess.iconClass : iconError.iconClass"
|
|
19
|
+
:type="requirement.valid(inputModelValue, inputAttributes) ? iconSuccess.iconType : iconError.iconType"
|
|
20
|
+
:title="requirement.valid(inputModelValue, inputAttributes) ? iconSuccess.tooltip : iconError.tooltip"
|
|
21
|
+
/>
|
|
22
|
+
<!-- end CmdIcon -->
|
|
23
|
+
</dd>
|
|
24
|
+
</template>
|
|
25
|
+
</dl>
|
|
26
|
+
<!-- end list of requirements -->
|
|
27
|
+
|
|
28
|
+
<!-- begin helplink -->
|
|
29
|
+
<template v-if="helplink && helplink.show">
|
|
30
|
+
<hr />
|
|
31
|
+
<a
|
|
32
|
+
v-if="helplink.url"
|
|
33
|
+
:href="helplink.url"
|
|
34
|
+
:target="helplink.target"
|
|
35
|
+
@click.prevent
|
|
36
|
+
>
|
|
37
|
+
<!-- begin CmdIcon -->
|
|
38
|
+
<CmdIcon
|
|
39
|
+
v-if="helplink.icon?.iconClass"
|
|
40
|
+
:class="helplink.icon?.iconClass"
|
|
41
|
+
:title="helplink.icon?.tooltip"
|
|
42
|
+
/>
|
|
43
|
+
<!-- end CmdIcon -->
|
|
44
|
+
<span v-if="helplink.text">
|
|
45
|
+
{{ helplink.text }}
|
|
46
|
+
</span>
|
|
47
|
+
</a>
|
|
48
|
+
</template>
|
|
49
|
+
<!-- end helplink -->
|
|
50
|
+
</div>
|
|
51
|
+
<!-- end CmdListOfRequirements ---------------------------------------------------------------------------------------- -->
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<script>
|
|
55
|
+
// import mixins
|
|
56
|
+
import I18n from "../mixins/I18n"
|
|
57
|
+
import DefaultMessageProperties from "../mixins/CmdListOfRequirements/DefaultMessageProperties"
|
|
58
|
+
|
|
59
|
+
export default {
|
|
60
|
+
name: "CmdListOfRequirements",
|
|
61
|
+
mixins: [
|
|
62
|
+
I18n,
|
|
63
|
+
DefaultMessageProperties
|
|
64
|
+
],
|
|
65
|
+
props: {
|
|
66
|
+
/**
|
|
67
|
+
* property to check validity of given modelValue
|
|
68
|
+
*/
|
|
69
|
+
inputModelValue: {
|
|
70
|
+
type: [String, Boolean, Array, Number],
|
|
71
|
+
default: ""
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* property to check validity of given attributes
|
|
75
|
+
*/
|
|
76
|
+
inputAttributes: {
|
|
77
|
+
type: Object,
|
|
78
|
+
required: true
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* text for label (used in headline)
|
|
82
|
+
*/
|
|
83
|
+
labelText: {
|
|
84
|
+
type: String,
|
|
85
|
+
required: false
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* list of all requirements
|
|
89
|
+
*/
|
|
90
|
+
inputRequirements: {
|
|
91
|
+
type: Array,
|
|
92
|
+
required: true
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* set a helplink to a different page for further support
|
|
96
|
+
*/
|
|
97
|
+
helplink: {
|
|
98
|
+
type: Object,
|
|
99
|
+
required: false
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
* icon to show success-status
|
|
103
|
+
*/
|
|
104
|
+
iconSuccess: {
|
|
105
|
+
type: Object,
|
|
106
|
+
default() {
|
|
107
|
+
return {
|
|
108
|
+
iconClass: "icon-check-circle",
|
|
109
|
+
tooltip: "success"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
* icon to show error-status
|
|
115
|
+
*/
|
|
116
|
+
iconError: {
|
|
117
|
+
type: Object,
|
|
118
|
+
default() {
|
|
119
|
+
return {
|
|
120
|
+
iconClass: "icon-error-circle",
|
|
121
|
+
tooltip: "error"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* toggle headline-visibility
|
|
127
|
+
*/
|
|
128
|
+
showHeadline: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
default: true
|
|
131
|
+
},
|
|
132
|
+
/**
|
|
133
|
+
* properties of CmdHeadline-component
|
|
134
|
+
*/
|
|
135
|
+
cmdHeadline: {
|
|
136
|
+
type: Object,
|
|
137
|
+
default() {
|
|
138
|
+
return {
|
|
139
|
+
headlineLevel: 6
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
computed: {
|
|
145
|
+
headlineRequirements() {
|
|
146
|
+
if (this.inputRequirements.length > 1) {
|
|
147
|
+
return this.getMessage("list_of_requirements.headline.requirements_for_input")
|
|
148
|
+
}
|
|
149
|
+
return this.getMessage("list_of_requirements.headline.requirement_for_input")
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
</script>
|
|
154
|
+
|
|
155
|
+
<style>
|
|
156
|
+
/* begin cmd-list-of-requirements ------------------------------------------------------------------------------------------ */
|
|
157
|
+
.cmd-list-of-requirements {
|
|
158
|
+
dl {
|
|
159
|
+
span[class*="icon-"] {
|
|
160
|
+
color: var(--status-color);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.error, .error span {
|
|
164
|
+
--status-color: var(--error-color-text) !important; /* assure status-color is not overwritten by form-element-status */
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.warning, .warning span {
|
|
168
|
+
--status-color: var(--warning-color-text) !important; /* assure status-color is not overwritten by form-element-status */
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.success, .success span {
|
|
172
|
+
--status-color: var(--success-color-text) !important; /* assure status-color is not overwritten by form-element-status */
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.info, .info span {
|
|
176
|
+
--status-color: var(--info-color-text) !important; /* assure status-color is not overwritten by form-element-status */
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
dt, dt span[class*="icon-"] {
|
|
180
|
+
color: var(--status-color);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
& ~ a {
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
justify-content: center;
|
|
187
|
+
text-align: center;
|
|
188
|
+
text-decoration: none;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/* end cmd-list-of-requirements ------------------------------------------------------------------------------------------ */
|
|
193
193
|
</style>
|