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
|
@@ -1,218 +1,218 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- begin CmdMailToolFilter ---------------------------------------------------------------------------------------- -->
|
|
3
|
-
<div class="cmd-mail-tool-filter">
|
|
4
|
-
<!-- begin CmdHeadline -->
|
|
5
|
-
<CmdHeadline v-if="headlineText" :headlineText="headlineText" :headlineLevel="headlineLevel"/>
|
|
6
|
-
<!-- end CmdHeadline -->
|
|
7
|
-
|
|
8
|
-
<div class="flex-container align-items-center">
|
|
9
|
-
<!-- begin CmdFormElement -->
|
|
10
|
-
<CmdFormElement
|
|
11
|
-
element="input"
|
|
12
|
-
type="search"
|
|
13
|
-
:placeholder="'Search ' + boxType"
|
|
14
|
-
:showSearchButton="false"
|
|
15
|
-
:id="'search-' + boxType"
|
|
16
|
-
:labelText="'Search ' + boxType"
|
|
17
|
-
:showLabel="false"
|
|
18
|
-
v-model="searchFilterText"
|
|
19
|
-
/>
|
|
20
|
-
<!-- end CmdFormElement -->
|
|
21
|
-
|
|
22
|
-
<div class="flex-container reset-flex">
|
|
23
|
-
<!-- begin CmdFormElement -->
|
|
24
|
-
<CmdFormElement
|
|
25
|
-
element="input"
|
|
26
|
-
type="checkbox"
|
|
27
|
-
name="search-filters"
|
|
28
|
-
id="search-subject"
|
|
29
|
-
labelText="Search subjects"
|
|
30
|
-
v-model="searchFilterOptions"
|
|
31
|
-
inputValue="subjects"
|
|
32
|
-
/>
|
|
33
|
-
<!-- end CmdFormElement -->
|
|
34
|
-
|
|
35
|
-
<!-- begin CmdFormElement -->
|
|
36
|
-
<CmdFormElement
|
|
37
|
-
element="input"
|
|
38
|
-
type="checkbox"
|
|
39
|
-
name="search-filters"
|
|
40
|
-
:id="'search-' + senderReceiver"
|
|
41
|
-
:labelText="'Search ' + senderReceiver"
|
|
42
|
-
v-model="searchFilterOptions"
|
|
43
|
-
:inputValue="senderReceiver"
|
|
44
|
-
/>
|
|
45
|
-
<!-- end CmdFormElement -->
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="flex-container sort-wrapper">
|
|
49
|
-
<!-- begin link sort ascending -->
|
|
50
|
-
<a v-if="sortOrderAsc" href="#" @click.prevent="sortByDate('asc')" :title="linkSortAscending.title">
|
|
51
|
-
<span v-if="linkSortAscending.text">{{ linkSortAscending.text }}</span>
|
|
52
|
-
<span v-if="linkSortAscending.iconClass" :class="linkSortAscending.iconClass"></span>
|
|
53
|
-
</a>
|
|
54
|
-
<!-- end link sort ascending -->
|
|
55
|
-
|
|
56
|
-
<!-- begin link sort descending -->
|
|
57
|
-
<a v-else href="#" @click.prevent="sortByDate('desc')" :title="linkSortDescending.title">
|
|
58
|
-
<span v-if="linkSortDescending.text">{{ linkSortDescending.text }}</span>
|
|
59
|
-
<span v-if="linkSortDescending.iconClass" :class="linkSortDescending.iconClass"></span>
|
|
60
|
-
</a>
|
|
61
|
-
<!-- end link sort descending -->
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
<!-- end CmdMailToolFilter ---------------------------------------------------------------------------------------- -->
|
|
65
|
-
</template>
|
|
66
|
-
|
|
67
|
-
<script>
|
|
68
|
-
export default {
|
|
69
|
-
name: "CmdMailToolFilter",
|
|
70
|
-
data() {
|
|
71
|
-
return {
|
|
72
|
-
searchFilterText: "",
|
|
73
|
-
searchFilterOptions: [],
|
|
74
|
-
sortOrderAsc: Boolean
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
props: {
|
|
78
|
-
modelValue: {
|
|
79
|
-
type: Object,
|
|
80
|
-
},
|
|
81
|
-
/**
|
|
82
|
-
* define boxType
|
|
83
|
-
*
|
|
84
|
-
* @allowedValues: "inbox", "outbox"
|
|
85
|
-
*/
|
|
86
|
-
boxType: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: "inbox"
|
|
89
|
-
},
|
|
90
|
-
/**
|
|
91
|
-
* define link for sorting mails ascending
|
|
92
|
-
*/
|
|
93
|
-
linkSortAscending: {
|
|
94
|
-
type: Object,
|
|
95
|
-
default() {
|
|
96
|
-
return {
|
|
97
|
-
iconClass: "icon-sort-asc-arrows",
|
|
98
|
-
text: "asc (0-9)",
|
|
99
|
-
title: "Sort mails by date/time ascending"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
/**
|
|
104
|
-
* define link for sorting mails descending
|
|
105
|
-
*/
|
|
106
|
-
linkSortDescending: {
|
|
107
|
-
type: Object,
|
|
108
|
-
default() {
|
|
109
|
-
return {
|
|
110
|
-
iconClass: "icon-sort-desc-arrows",
|
|
111
|
-
text: "desc (9-0)",
|
|
112
|
-
title: "Sort mails by date/time descending"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
/**
|
|
117
|
-
* define properties for CmdHeadline-component for inbox
|
|
118
|
-
*/
|
|
119
|
-
cmdHeadlineInbox: {
|
|
120
|
-
type: Object,
|
|
121
|
-
default() {
|
|
122
|
-
return {
|
|
123
|
-
headlineText: "Inbox",
|
|
124
|
-
headlineLevel: 3
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
/**
|
|
129
|
-
* define properties for CmdHeadline-component for outbox
|
|
130
|
-
*/
|
|
131
|
-
cmdHeadlineOutbox: {
|
|
132
|
-
type: Object,
|
|
133
|
-
default() {
|
|
134
|
-
return {
|
|
135
|
-
headlineText: "Outbox",
|
|
136
|
-
headlineLevel: 3
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
computed: {
|
|
142
|
-
headlineText() {
|
|
143
|
-
return this.boxType === "inbox" ? this.cmdHeadlineInbox?.headlineText : this.cmdHeadlineOutbox?.headlineText
|
|
144
|
-
},
|
|
145
|
-
headlineLevel() {
|
|
146
|
-
return this.boxType === "inbox" ? this.cmdHeadlineInbox?.headlineLevel : this.cmdHeadlineOutbox?.headlineLevel
|
|
147
|
-
},
|
|
148
|
-
senderReceiver() {
|
|
149
|
-
return this.boxType === "inbox" ? "senders" : "receivers"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
methods: {
|
|
153
|
-
sortByDate(sortOrder) {
|
|
154
|
-
this.sortOrderAsc = !this.sortOrderAsc
|
|
155
|
-
// todo build watcher
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
watch: {
|
|
159
|
-
modelValue: {
|
|
160
|
-
handler() {
|
|
161
|
-
this.searchFilterText = this.modelValue?.searchFilterText || ""
|
|
162
|
-
this.searchFilterOptions = this.modelValue?.searchFilterOptions || ["subjects", "senders"]
|
|
163
|
-
},
|
|
164
|
-
deep: true,
|
|
165
|
-
immediate: true
|
|
166
|
-
},
|
|
167
|
-
searchFilterText: {
|
|
168
|
-
handler() {
|
|
169
|
-
this.$emit("update:modelValue", {
|
|
170
|
-
searchFilterOptions: this.searchFilterOptions,
|
|
171
|
-
searchFilterText: this.searchFilterText
|
|
172
|
-
})
|
|
173
|
-
},
|
|
174
|
-
immediate: true
|
|
175
|
-
},
|
|
176
|
-
searchFilterOptions: {
|
|
177
|
-
handler() {
|
|
178
|
-
this.$emit("update:modelValue", {
|
|
179
|
-
searchFilterText: this.searchFilterText,
|
|
180
|
-
searchFilterOptions: this.searchFilterOptions
|
|
181
|
-
})
|
|
182
|
-
},
|
|
183
|
-
immediate: true
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
</script>
|
|
188
|
-
|
|
189
|
-
<style>
|
|
190
|
-
/* begin cmd-mail-tool-filter-------------------------------------------------------------------------------------------- */
|
|
191
|
-
.cmd-mail-tool-filter {
|
|
192
|
-
display: flex;
|
|
193
|
-
padding: var(--default-padding);
|
|
194
|
-
background: var(--color-
|
|
195
|
-
align-items: center;
|
|
196
|
-
justify-content: space-between;
|
|
197
|
-
|
|
198
|
-
.cmd-headline {
|
|
199
|
-
margin: 0;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.label-text {
|
|
203
|
-
white-space: nowrap;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.sort-wrapper {
|
|
209
|
-
text-align: right;
|
|
210
|
-
|
|
211
|
-
a {
|
|
212
|
-
text-decoration: none;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/* end cmd-mail-tool-filter-------------------------------------------------------------------------------------------- */
|
|
1
|
+
<template>
|
|
2
|
+
<!-- begin CmdMailToolFilter ---------------------------------------------------------------------------------------- -->
|
|
3
|
+
<div class="cmd-mail-tool-filter">
|
|
4
|
+
<!-- begin CmdHeadline -->
|
|
5
|
+
<CmdHeadline v-if="headlineText" :headlineText="headlineText" :headlineLevel="headlineLevel"/>
|
|
6
|
+
<!-- end CmdHeadline -->
|
|
7
|
+
|
|
8
|
+
<div class="flex-container align-items-center">
|
|
9
|
+
<!-- begin CmdFormElement -->
|
|
10
|
+
<CmdFormElement
|
|
11
|
+
element="input"
|
|
12
|
+
type="search"
|
|
13
|
+
:placeholder="'Search ' + boxType"
|
|
14
|
+
:showSearchButton="false"
|
|
15
|
+
:id="'search-' + boxType"
|
|
16
|
+
:labelText="'Search ' + boxType"
|
|
17
|
+
:showLabel="false"
|
|
18
|
+
v-model="searchFilterText"
|
|
19
|
+
/>
|
|
20
|
+
<!-- end CmdFormElement -->
|
|
21
|
+
|
|
22
|
+
<div class="flex-container reset-flex">
|
|
23
|
+
<!-- begin CmdFormElement -->
|
|
24
|
+
<CmdFormElement
|
|
25
|
+
element="input"
|
|
26
|
+
type="checkbox"
|
|
27
|
+
name="search-filters"
|
|
28
|
+
:id="'search-subject-' + boxType"
|
|
29
|
+
labelText="Search subjects"
|
|
30
|
+
v-model="searchFilterOptions"
|
|
31
|
+
inputValue="subjects"
|
|
32
|
+
/>
|
|
33
|
+
<!-- end CmdFormElement -->
|
|
34
|
+
|
|
35
|
+
<!-- begin CmdFormElement -->
|
|
36
|
+
<CmdFormElement
|
|
37
|
+
element="input"
|
|
38
|
+
type="checkbox"
|
|
39
|
+
name="search-filters"
|
|
40
|
+
:id="'search-' + senderReceiver"
|
|
41
|
+
:labelText="'Search ' + senderReceiver"
|
|
42
|
+
v-model="searchFilterOptions"
|
|
43
|
+
:inputValue="senderReceiver"
|
|
44
|
+
/>
|
|
45
|
+
<!-- end CmdFormElement -->
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="flex-container sort-wrapper">
|
|
49
|
+
<!-- begin link sort ascending -->
|
|
50
|
+
<a v-if="sortOrderAsc" href="#" @click.prevent="sortByDate('asc')" :title="linkSortAscending.title">
|
|
51
|
+
<span v-if="linkSortAscending.text">{{ linkSortAscending.text }}</span>
|
|
52
|
+
<span v-if="linkSortAscending.iconClass" :class="linkSortAscending.iconClass"></span>
|
|
53
|
+
</a>
|
|
54
|
+
<!-- end link sort ascending -->
|
|
55
|
+
|
|
56
|
+
<!-- begin link sort descending -->
|
|
57
|
+
<a v-else href="#" @click.prevent="sortByDate('desc')" :title="linkSortDescending.title">
|
|
58
|
+
<span v-if="linkSortDescending.text">{{ linkSortDescending.text }}</span>
|
|
59
|
+
<span v-if="linkSortDescending.iconClass" :class="linkSortDescending.iconClass"></span>
|
|
60
|
+
</a>
|
|
61
|
+
<!-- end link sort descending -->
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<!-- end CmdMailToolFilter ---------------------------------------------------------------------------------------- -->
|
|
65
|
+
</template>
|
|
66
|
+
|
|
67
|
+
<script>
|
|
68
|
+
export default {
|
|
69
|
+
name: "CmdMailToolFilter",
|
|
70
|
+
data() {
|
|
71
|
+
return {
|
|
72
|
+
searchFilterText: "",
|
|
73
|
+
searchFilterOptions: [],
|
|
74
|
+
sortOrderAsc: Boolean
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
props: {
|
|
78
|
+
modelValue: {
|
|
79
|
+
type: Object,
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* define boxType
|
|
83
|
+
*
|
|
84
|
+
* @allowedValues: "inbox", "outbox"
|
|
85
|
+
*/
|
|
86
|
+
boxType: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: "inbox"
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* define link for sorting mails ascending
|
|
92
|
+
*/
|
|
93
|
+
linkSortAscending: {
|
|
94
|
+
type: Object,
|
|
95
|
+
default() {
|
|
96
|
+
return {
|
|
97
|
+
iconClass: "icon-sort-asc-arrows",
|
|
98
|
+
text: "asc (0-9)",
|
|
99
|
+
title: "Sort mails by date/time ascending"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* define link for sorting mails descending
|
|
105
|
+
*/
|
|
106
|
+
linkSortDescending: {
|
|
107
|
+
type: Object,
|
|
108
|
+
default() {
|
|
109
|
+
return {
|
|
110
|
+
iconClass: "icon-sort-desc-arrows",
|
|
111
|
+
text: "desc (9-0)",
|
|
112
|
+
title: "Sort mails by date/time descending"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* define properties for CmdHeadline-component for inbox
|
|
118
|
+
*/
|
|
119
|
+
cmdHeadlineInbox: {
|
|
120
|
+
type: Object,
|
|
121
|
+
default() {
|
|
122
|
+
return {
|
|
123
|
+
headlineText: "Inbox",
|
|
124
|
+
headlineLevel: 3
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
/**
|
|
129
|
+
* define properties for CmdHeadline-component for outbox
|
|
130
|
+
*/
|
|
131
|
+
cmdHeadlineOutbox: {
|
|
132
|
+
type: Object,
|
|
133
|
+
default() {
|
|
134
|
+
return {
|
|
135
|
+
headlineText: "Outbox",
|
|
136
|
+
headlineLevel: 3
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
computed: {
|
|
142
|
+
headlineText() {
|
|
143
|
+
return this.boxType === "inbox" ? this.cmdHeadlineInbox?.headlineText : this.cmdHeadlineOutbox?.headlineText
|
|
144
|
+
},
|
|
145
|
+
headlineLevel() {
|
|
146
|
+
return this.boxType === "inbox" ? this.cmdHeadlineInbox?.headlineLevel : this.cmdHeadlineOutbox?.headlineLevel
|
|
147
|
+
},
|
|
148
|
+
senderReceiver() {
|
|
149
|
+
return this.boxType === "inbox" ? "senders" : "receivers"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
methods: {
|
|
153
|
+
sortByDate(sortOrder) {
|
|
154
|
+
this.sortOrderAsc = !this.sortOrderAsc
|
|
155
|
+
// todo build watcher
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
watch: {
|
|
159
|
+
modelValue: {
|
|
160
|
+
handler() {
|
|
161
|
+
this.searchFilterText = this.modelValue?.searchFilterText || ""
|
|
162
|
+
this.searchFilterOptions = this.modelValue?.searchFilterOptions || ["subjects", "senders"]
|
|
163
|
+
},
|
|
164
|
+
deep: true,
|
|
165
|
+
immediate: true
|
|
166
|
+
},
|
|
167
|
+
searchFilterText: {
|
|
168
|
+
handler() {
|
|
169
|
+
this.$emit("update:modelValue", {
|
|
170
|
+
searchFilterOptions: this.searchFilterOptions,
|
|
171
|
+
searchFilterText: this.searchFilterText
|
|
172
|
+
})
|
|
173
|
+
},
|
|
174
|
+
immediate: true
|
|
175
|
+
},
|
|
176
|
+
searchFilterOptions: {
|
|
177
|
+
handler() {
|
|
178
|
+
this.$emit("update:modelValue", {
|
|
179
|
+
searchFilterText: this.searchFilterText,
|
|
180
|
+
searchFilterOptions: this.searchFilterOptions
|
|
181
|
+
})
|
|
182
|
+
},
|
|
183
|
+
immediate: true
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
</script>
|
|
188
|
+
|
|
189
|
+
<style>
|
|
190
|
+
/* begin cmd-mail-tool-filter-------------------------------------------------------------------------------------------- */
|
|
191
|
+
.cmd-mail-tool-filter {
|
|
192
|
+
display: flex;
|
|
193
|
+
padding: var(--default-padding);
|
|
194
|
+
background: light-dark(var(--color-gray-10), var(--color-gray-90));
|
|
195
|
+
align-items: center;
|
|
196
|
+
justify-content: space-between;
|
|
197
|
+
|
|
198
|
+
.cmd-headline {
|
|
199
|
+
margin: 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.label-text {
|
|
203
|
+
white-space: nowrap;
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.sort-wrapper {
|
|
209
|
+
text-align: right;
|
|
210
|
+
|
|
211
|
+
a {
|
|
212
|
+
text-decoration: none;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* end cmd-mail-tool-filter-------------------------------------------------------------------------------------------- */
|
|
218
218
|
</style>
|