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,481 +1,481 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<transition :name="transition">
|
|
3
|
-
<!-- begin CmdCookieDisclaimer ---------------------------------------------------------------------------------------- -->
|
|
4
|
-
<div class="cmd-cookie-disclaimer flex-container flex-direction-column">
|
|
5
|
-
<!-- begin slot -->
|
|
6
|
-
<template v-if="useSlot">
|
|
7
|
-
<slot></slot>
|
|
8
|
-
</template>
|
|
9
|
-
<!-- end slot -->
|
|
10
|
-
|
|
11
|
-
<div v-else>
|
|
12
|
-
<!-- begin CmdHeadline -->
|
|
13
|
-
<CmdHeadline
|
|
14
|
-
v-if="cmdHeadlineCookieDisclaimer?.show && cmdHeadlineCookieDisclaimer?.headlineText && cmdHeadlineCookieDisclaimer?.headlineLevel"
|
|
15
|
-
:headlineText="cmdHeadlineCookieDisclaimer.headlineText"
|
|
16
|
-
:headlineLevel="cmdHeadlineCookieDisclaimer.headlineLevel"
|
|
17
|
-
/>
|
|
18
|
-
<!-- end CmdHeadline -->
|
|
19
|
-
|
|
20
|
-
<!-- begin slot for cookie-options -->
|
|
21
|
-
<slot name="cookie-options">
|
|
22
|
-
<!-- begin required cookies -->
|
|
23
|
-
<div v-if="cookieOptions?.required" class="flex-container flex-direction-column">
|
|
24
|
-
<!-- begin CmdHeadline -->
|
|
25
|
-
<CmdHeadline
|
|
26
|
-
v-if="defaultCmdBoxRequiredCookies().showHeadline && defaultCmdBoxRequiredCookies().headlineText"
|
|
27
|
-
:headlineText="defaultCmdBoxRequiredCookies().headlineText"
|
|
28
|
-
:headlineLevel="defaultCmdBoxRequiredCookies().headlineLevel "
|
|
29
|
-
/>
|
|
30
|
-
<!-- end CmdHeadline -->
|
|
31
|
-
|
|
32
|
-
<div v-for="(cookie, index) in cookieOptions.required.cookies || []"
|
|
33
|
-
:key="index" class="collapsible-box">
|
|
34
|
-
<header :class="{open : boxIsOpen(cookie.id)}">
|
|
35
|
-
<!-- begin CmdFormElement -->
|
|
36
|
-
<CmdFormElement
|
|
37
|
-
element="input"
|
|
38
|
-
type="checkbox"
|
|
39
|
-
v-model="acceptedCookies"
|
|
40
|
-
:inputValue="cookie.value"
|
|
41
|
-
:labelText="cookie.labelText"
|
|
42
|
-
:disabled="cookie.disabled"
|
|
43
|
-
:id="cookie.id"
|
|
44
|
-
:toggleSwitch="true"
|
|
45
|
-
:title="getMessage('cookie_disclaimer.tooltip.cookie_cannot_be_disabled')"
|
|
46
|
-
/>
|
|
47
|
-
<!-- end CmdFormElement -->
|
|
48
|
-
|
|
49
|
-
<!-- begin icon to toggle box-body -->
|
|
50
|
-
<a href="#" @click.prevent="toggleBoxBody(cookie.id)" :title="getMessage('cookie_disclaimer.tooltip.toggle_box_content')">
|
|
51
|
-
<span :class="boxIsOpen(cookie.id) ? iconClassBoxExpanded : iconClassBoxCollapsed"></span>
|
|
52
|
-
</a>
|
|
53
|
-
<!-- end icon to toggle box-body -->
|
|
54
|
-
</header>
|
|
55
|
-
<div v-show="boxIsOpen(cookie.id)" class="collapsible-box-body">
|
|
56
|
-
<CmdParagraph v-if="cookie.description" :content="cookie.description"/>
|
|
57
|
-
<p v-if="cookie.linkDataPrivacy">
|
|
58
|
-
{{ cookie.linkDataPrivacy.label }}
|
|
59
|
-
<a @click="openDataPrivacy"
|
|
60
|
-
:href="cookie.linkDataPrivacy.link"
|
|
61
|
-
:target="cookie.linkDataPrivacy.target">
|
|
62
|
-
{{ cookie.linkDataPrivacy.linkText }}
|
|
63
|
-
</a>
|
|
64
|
-
</p>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
<!-- end CmdBox -->
|
|
68
|
-
</div>
|
|
69
|
-
<!-- end required cookies -->
|
|
70
|
-
|
|
71
|
-
<hr/>
|
|
72
|
-
|
|
73
|
-
<!-- begin optional cookies -->
|
|
74
|
-
<div v-if="cookieOptions?.optional" class="flex-container flex-direction-column">
|
|
75
|
-
<!-- begin CmdHeadline -->
|
|
76
|
-
<CmdHeadline
|
|
77
|
-
v-if="defaultCmdBoxOptionalCookies().showHeadline && defaultCmdBoxOptionalCookies().headlineText"
|
|
78
|
-
:headlineText="defaultCmdBoxOptionalCookies().headlineText"
|
|
79
|
-
:headlineLevel="defaultCmdBoxOptionalCookies().headlineLevel"
|
|
80
|
-
/>
|
|
81
|
-
<!-- end CmdHeadline -->
|
|
82
|
-
|
|
83
|
-
<div v-for="(cookie, index) in cookieOptions.optional.cookies || []"
|
|
84
|
-
:key="index" class="collapsible-box">
|
|
85
|
-
<header :class="{open : boxIsOpen(cookie.id)}">
|
|
86
|
-
<!-- begin CmdFormElement -->
|
|
87
|
-
<CmdFormElement
|
|
88
|
-
element="input"
|
|
89
|
-
type="checkbox"
|
|
90
|
-
v-model="acceptedCookies"
|
|
91
|
-
:inputValue="cookie.value"
|
|
92
|
-
:labelText="cookie.labelText"
|
|
93
|
-
:disabled="cookie.disabled"
|
|
94
|
-
:id="cookie.id"
|
|
95
|
-
:toggleSwitch="true"
|
|
96
|
-
:title="getMessage('cookie_disclaimer.tooltip.toggle_to_accept_cookie')"
|
|
97
|
-
/>
|
|
98
|
-
<!-- end CmdFormElement -->
|
|
99
|
-
|
|
100
|
-
<!-- begin icon to toggle box-body -->
|
|
101
|
-
<a href="#" @click.prevent="toggleBoxBody(cookie.id)" :title="getMessage('cookie_disclaimer.tooltip.toggle_box_content')">
|
|
102
|
-
<span :class="boxIsOpen(cookie.id) ? iconClassBoxExpanded : iconClassBoxCollapsed"></span>
|
|
103
|
-
</a>
|
|
104
|
-
<!-- end icon to toggle box-body -->
|
|
105
|
-
</header>
|
|
106
|
-
<div v-show="boxIsOpen(cookie.id)" class="collapsible-box-body">
|
|
107
|
-
<CmdParagraph v-if="cookie.description" :content="cookie.description "/>
|
|
108
|
-
<p v-if="cookie.linkDataPrivacy">
|
|
109
|
-
{{ cookie.linkDataPrivacy.label }}
|
|
110
|
-
<a @click="openDataPrivacy"
|
|
111
|
-
:href="cookie.linkDataPrivacy.link"
|
|
112
|
-
:target="cookie.linkDataPrivacy.target">
|
|
113
|
-
{{ cookie.linkDataPrivacy.linkText }}
|
|
114
|
-
</a>
|
|
115
|
-
</p>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
</div>
|
|
119
|
-
<!-- end optional cookies -->
|
|
120
|
-
</slot>
|
|
121
|
-
<!-- end slot for cookie-options -->
|
|
122
|
-
|
|
123
|
-
<!-- begin privacy-text -->
|
|
124
|
-
<div v-if="showPrivacyText" class="privacy-text" v-html="getMessage('cookie_disclaimer.text.data_privacy')"></div>
|
|
125
|
-
<!-- end privacy-text-->
|
|
126
|
-
|
|
127
|
-
<!-- begin button-wrapper for 'accept'-buttons -->
|
|
128
|
-
<div class="button-wrapper align-center">
|
|
129
|
-
<CmdLink
|
|
130
|
-
v-bind="cmdLinkAcceptRequiredCookiesProperties"
|
|
131
|
-
@click="acceptRequiredCookies"
|
|
132
|
-
/>
|
|
133
|
-
<CmdLink
|
|
134
|
-
v-bind="cmdLinkAcceptAllCookiesProperties"
|
|
135
|
-
@click="acceptAllCookies"
|
|
136
|
-
/>
|
|
137
|
-
</div>
|
|
138
|
-
<!-- end button-wrapper for 'accept'-buttons -->
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
<!-- end CmdCookieDisclaimer ---------------------------------------------------------------------------------------- -->
|
|
142
|
-
</transition>
|
|
143
|
-
</template>
|
|
144
|
-
|
|
145
|
-
<script>
|
|
146
|
-
// import mixins
|
|
147
|
-
import I18n from "../mixins/I18n"
|
|
148
|
-
import DefaultMessageProperties from "../mixins/CmdCookieDisclaimer/DefaultMessageProperties"
|
|
149
|
-
import CmdLink from "./CmdLink.vue";
|
|
150
|
-
|
|
151
|
-
export default {
|
|
152
|
-
name: "CmdCookieDisclaimer",
|
|
153
|
-
mixins: [I18n, DefaultMessageProperties],
|
|
154
|
-
data() {
|
|
155
|
-
return {
|
|
156
|
-
showCookieDisclaimer: true,
|
|
157
|
-
openBoxes: []
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
props: {
|
|
161
|
-
/**
|
|
162
|
-
* define the transition when cookie disclaimer disappears
|
|
163
|
-
*
|
|
164
|
-
* @allowedValues: "none", "fade", "scroll"
|
|
165
|
-
*/
|
|
166
|
-
transition: {
|
|
167
|
-
type: String,
|
|
168
|
-
default: "fade"
|
|
169
|
-
},
|
|
170
|
-
/**
|
|
171
|
-
* define icon-class for collapsed box
|
|
172
|
-
*/
|
|
173
|
-
iconClassBoxCollapsed: {
|
|
174
|
-
type: String,
|
|
175
|
-
default: "icon-chevron-one-stripe-down"
|
|
176
|
-
},
|
|
177
|
-
/**
|
|
178
|
-
* define icon-class for expanded box
|
|
179
|
-
*/
|
|
180
|
-
iconClassBoxExpanded: {
|
|
181
|
-
type: String,
|
|
182
|
-
default: "icon-chevron-one-stripe-up"
|
|
183
|
-
},
|
|
184
|
-
/**
|
|
185
|
-
* activate if you want to use slot instead for given structure
|
|
186
|
-
*/
|
|
187
|
-
useSlot: {
|
|
188
|
-
type: Boolean,
|
|
189
|
-
default: false
|
|
190
|
-
},
|
|
191
|
-
/**
|
|
192
|
-
* set default v-model (must be named modelValue in Vue3)
|
|
193
|
-
*/
|
|
194
|
-
modelValue: {
|
|
195
|
-
type: Array,
|
|
196
|
-
required: false
|
|
197
|
-
},
|
|
198
|
-
/**
|
|
199
|
-
* properties for CmdHeadline-component at top of cookie disclaimer
|
|
200
|
-
*/
|
|
201
|
-
cmdHeadlineCookieDisclaimer: {
|
|
202
|
-
type: Object,
|
|
203
|
-
default() {
|
|
204
|
-
return {
|
|
205
|
-
show: true,
|
|
206
|
-
headlineText: "Cookie Disclaimer",
|
|
207
|
-
headlineLevel: 2
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
/**
|
|
212
|
-
* list of cookie-options
|
|
213
|
-
*/
|
|
214
|
-
cookieOptions: {
|
|
215
|
-
type: Object,
|
|
216
|
-
required: false
|
|
217
|
-
},
|
|
218
|
-
/**
|
|
219
|
-
* toggle visibility of privacy-text
|
|
220
|
-
*/
|
|
221
|
-
showPrivacyText: {
|
|
222
|
-
type: Boolean,
|
|
223
|
-
default: true
|
|
224
|
-
},
|
|
225
|
-
/**
|
|
226
|
-
* properties for CmdLink-compnent for "accept required cookies"-button
|
|
227
|
-
*/
|
|
228
|
-
cmdLinkAcceptRequiredCookies: {
|
|
229
|
-
type: Object,
|
|
230
|
-
required: false
|
|
231
|
-
},
|
|
232
|
-
/**
|
|
233
|
-
* properties for CmdLink-compnent for "accept all cookies"-button
|
|
234
|
-
*/
|
|
235
|
-
cmdLinkAcceptAllCookies: {
|
|
236
|
-
type: Object,
|
|
237
|
-
required: false
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
computed: {
|
|
241
|
-
cmdLinkAcceptRequiredCookiesProperties() {
|
|
242
|
-
return {
|
|
243
|
-
linkType: "button",
|
|
244
|
-
highlightLevel: null,
|
|
245
|
-
text: this.getMessage("cookie_disclaimer.button.accept_required_cookies"),
|
|
246
|
-
...this.cmdLinkAcceptRequiredCookies
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
cmdLinkAcceptAllCookiesProperties() {
|
|
250
|
-
return {
|
|
251
|
-
linkType: "button",
|
|
252
|
-
highlightLevel: "primary",
|
|
253
|
-
text: this.getMessage("cookie_disclaimer.button.accept_all_cookies"),
|
|
254
|
-
...this.cmdLinkAcceptAllCookies
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
acceptedCookies: {
|
|
258
|
-
get() {
|
|
259
|
-
const cookies = this.modelValue ? [...this.modelValue] : []
|
|
260
|
-
const requiredCookies = this.cookieOptions?.required?.cookies || []
|
|
261
|
-
for (let i = 0; i < requiredCookies.length; i++) {
|
|
262
|
-
if (!cookies.includes(requiredCookies[i].value)) {
|
|
263
|
-
cookies.push(requiredCookies[i].value)
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
return cookies
|
|
267
|
-
},
|
|
268
|
-
set(value) {
|
|
269
|
-
this.$emit("update:modelValue", value)
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
methods: {
|
|
274
|
-
boxIsOpen(cookieId) {
|
|
275
|
-
return this.openBoxes.includes(cookieId)
|
|
276
|
-
},
|
|
277
|
-
defaultCmdBoxRequiredCookies() {
|
|
278
|
-
return {
|
|
279
|
-
collapsible: true,
|
|
280
|
-
showHeadline: true,
|
|
281
|
-
headlineLevel: 3,
|
|
282
|
-
headlineText: this.getMessage("cookie_disclaimer.headline.required_cookies"),
|
|
283
|
-
...this.cookieOptions?.required.cmdHeadline
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
defaultCmdBoxOptionalCookies() {
|
|
287
|
-
return {
|
|
288
|
-
collapsible: true,
|
|
289
|
-
showHeadline: true,
|
|
290
|
-
headlineText: this.getMessage("cookie_disclaimer.headline.optional_cookies"),
|
|
291
|
-
headlineLevel: 3,
|
|
292
|
-
...this.cookieOptions?.optional.cmdHeadline
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
toggleBoxBody(cookieId) {
|
|
296
|
-
const index = this.openBoxes.indexOf(cookieId);
|
|
297
|
-
|
|
298
|
-
if (index === -1) {
|
|
299
|
-
// cookieId does not exist in the array, so add it
|
|
300
|
-
this.openBoxes.push(cookieId);
|
|
301
|
-
} else {
|
|
302
|
-
// cookieId already exists in the array, so remove it
|
|
303
|
-
this.openBoxes.splice(index, 1);
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
acceptRequiredCookies() {
|
|
307
|
-
this.$emit("close-cookie-disclaimer", this.acceptedCookies)
|
|
308
|
-
},
|
|
309
|
-
acceptAllCookies() {
|
|
310
|
-
const allCookies = []
|
|
311
|
-
|
|
312
|
-
// push all required cookies to array
|
|
313
|
-
const requiredCookies = this.cookieOptions?.required?.cookies
|
|
314
|
-
|
|
315
|
-
if (requiredCookies) {
|
|
316
|
-
for (let i = 0; i < requiredCookies.length; i++) {
|
|
317
|
-
allCookies.push(requiredCookies[i].value)
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
// push all optional cookies to array
|
|
322
|
-
const optionalCookies = this.cookieOptions?.optional?.cookies
|
|
323
|
-
|
|
324
|
-
if (optionalCookies) {
|
|
325
|
-
for (let i = 0; i < optionalCookies.length; i++) {
|
|
326
|
-
allCookies.push(optionalCookies[i].value)
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
this.$emit("close-cookie-disclaimer", allCookies)
|
|
331
|
-
},
|
|
332
|
-
openDataPrivacy(event) {
|
|
333
|
-
/* first 'target' = clicked-element, second 'target' = target-attribute */
|
|
334
|
-
if (!event.target.target) {
|
|
335
|
-
event.preventDefault()
|
|
336
|
-
fetch(event.target.href).then((response) =>
|
|
337
|
-
response.text()
|
|
338
|
-
).then((content) => { /* use arrow function to get access to dataPrivacy by 'this' = vue-instance (otherwise 'this' wouldn't be vue-instance in this fetch-method) */
|
|
339
|
-
this.dataPrivacyContent = content
|
|
340
|
-
})
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
</script>
|
|
346
|
-
|
|
347
|
-
<style>
|
|
348
|
-
/* begin cmd-cookie-disclaimer ---------------------------------------------------------------------------------------- */
|
|
349
|
-
.cmd-cookie-disclaimer {
|
|
350
|
-
width: 100%;
|
|
351
|
-
padding: var(--default-padding);
|
|
352
|
-
padding-right: calc(var(--default-padding) * 2);
|
|
353
|
-
z-index: 100; /* bring layer above logo */
|
|
354
|
-
bottom: 0;
|
|
355
|
-
top: auto;
|
|
356
|
-
|
|
357
|
-
.collapsible-box {
|
|
358
|
-
border-radius: var(--default-border-radius);
|
|
359
|
-
|
|
360
|
-
header {
|
|
361
|
-
display: flex;
|
|
362
|
-
align-items: center;
|
|
363
|
-
border: var(--primary-border);
|
|
364
|
-
justify-content: unset; /* overwrite setting for collapsible boxes */
|
|
365
|
-
background: var(--primary-color);
|
|
366
|
-
border-radius: inherit;
|
|
367
|
-
|
|
368
|
-
&.open {
|
|
369
|
-
border-bottom-left-radius: 0;
|
|
370
|
-
border-bottom-right-radius: 0;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
&:has(input:checked) {
|
|
374
|
-
background: var(--color-
|
|
375
|
-
|
|
376
|
-
span[class*="icon-"] {
|
|
377
|
-
color: var(--hyperlink-color);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
label {
|
|
381
|
-
.label-text span {
|
|
382
|
-
color: var(--hyperlink-color); /* required to set label-text in header to white */
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
&:has(input:disabled) {
|
|
388
|
-
background: var(--disabled-background);
|
|
389
|
-
|
|
390
|
-
span[class*="icon-"] {
|
|
391
|
-
color: var(--hyperlink-color);
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
label {
|
|
395
|
-
.label-text span {
|
|
396
|
-
color: var(--disabled-color) !important; /* required to set label-text in header to white */
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
&:has(a:is(:hover, :active, :focus)) {
|
|
402
|
-
background: var(--primary-color);
|
|
403
|
-
|
|
404
|
-
label .label-text span, span[class*="icon-"] {
|
|
405
|
-
color: var(--color-white) !important;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
span[class*="icon-"] {
|
|
410
|
-
color: var(--color-white);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
label {
|
|
414
|
-
padding: calc(var(--default-padding) / 2) var(--default-padding);
|
|
415
|
-
|
|
416
|
-
.label-text span {
|
|
417
|
-
color: var(--color-white); /* required to set label-text in header to white */
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
&.disabled {
|
|
421
|
-
.label-text span {
|
|
422
|
-
color: var(--color-white) !important; /* required to set label-text in header to white */
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
&:hover, &:active, &:focus {
|
|
427
|
-
cursor: pointer;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
input {
|
|
431
|
-
&:hover, &:active, &:focus {
|
|
432
|
-
cursor: pointer;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
a {
|
|
438
|
-
text-decoration: none;
|
|
439
|
-
flex: 1;
|
|
440
|
-
display: flex;
|
|
441
|
-
justify-content: flex-end;
|
|
442
|
-
padding: var(--default-padding);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.collapsible-box-body {
|
|
447
|
-
padding: var(--default-padding);
|
|
448
|
-
border: var(--default-border);
|
|
449
|
-
border-top: 0;
|
|
450
|
-
background: var(--box-background);
|
|
451
|
-
border-bottom-left-radius: inherit;
|
|
452
|
-
border-bottom-right-radius: inherit;
|
|
453
|
-
|
|
454
|
-
p:last-child {
|
|
455
|
-
margin: 0;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
> p {
|
|
461
|
-
text-align: center;
|
|
462
|
-
color: var(--color-scheme-text-color); /* must be assigned again, because content is placed by slot */
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
p {
|
|
466
|
-
a {
|
|
467
|
-
text-decoration: underline;
|
|
468
|
-
|
|
469
|
-
&:hover, &:active, &:focus {
|
|
470
|
-
text-decoration: none;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
.privacy-text, .button-wrapper {
|
|
476
|
-
margin-top: var(--default-gap);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
/* end cmd-cookie-disclaimer ------------------------------------------------------------------------------------------ */
|
|
1
|
+
<template>
|
|
2
|
+
<transition :name="transition">
|
|
3
|
+
<!-- begin CmdCookieDisclaimer ---------------------------------------------------------------------------------------- -->
|
|
4
|
+
<div class="cmd-cookie-disclaimer flex-container flex-direction-column">
|
|
5
|
+
<!-- begin slot -->
|
|
6
|
+
<template v-if="useSlot">
|
|
7
|
+
<slot></slot>
|
|
8
|
+
</template>
|
|
9
|
+
<!-- end slot -->
|
|
10
|
+
|
|
11
|
+
<div v-else>
|
|
12
|
+
<!-- begin CmdHeadline -->
|
|
13
|
+
<CmdHeadline
|
|
14
|
+
v-if="cmdHeadlineCookieDisclaimer?.show && cmdHeadlineCookieDisclaimer?.headlineText && cmdHeadlineCookieDisclaimer?.headlineLevel"
|
|
15
|
+
:headlineText="cmdHeadlineCookieDisclaimer.headlineText"
|
|
16
|
+
:headlineLevel="cmdHeadlineCookieDisclaimer.headlineLevel"
|
|
17
|
+
/>
|
|
18
|
+
<!-- end CmdHeadline -->
|
|
19
|
+
|
|
20
|
+
<!-- begin slot for cookie-options -->
|
|
21
|
+
<slot name="cookie-options">
|
|
22
|
+
<!-- begin required cookies -->
|
|
23
|
+
<div v-if="cookieOptions?.required" class="flex-container flex-direction-column">
|
|
24
|
+
<!-- begin CmdHeadline -->
|
|
25
|
+
<CmdHeadline
|
|
26
|
+
v-if="defaultCmdBoxRequiredCookies().showHeadline && defaultCmdBoxRequiredCookies().headlineText"
|
|
27
|
+
:headlineText="defaultCmdBoxRequiredCookies().headlineText"
|
|
28
|
+
:headlineLevel="defaultCmdBoxRequiredCookies().headlineLevel "
|
|
29
|
+
/>
|
|
30
|
+
<!-- end CmdHeadline -->
|
|
31
|
+
|
|
32
|
+
<div v-for="(cookie, index) in cookieOptions.required.cookies || []"
|
|
33
|
+
:key="index" class="collapsible-box">
|
|
34
|
+
<header :class="{open : boxIsOpen(cookie.id)}">
|
|
35
|
+
<!-- begin CmdFormElement -->
|
|
36
|
+
<CmdFormElement
|
|
37
|
+
element="input"
|
|
38
|
+
type="checkbox"
|
|
39
|
+
v-model="acceptedCookies"
|
|
40
|
+
:inputValue="cookie.value"
|
|
41
|
+
:labelText="cookie.labelText"
|
|
42
|
+
:disabled="cookie.disabled"
|
|
43
|
+
:id="cookie.id"
|
|
44
|
+
:toggleSwitch="true"
|
|
45
|
+
:title="getMessage('cookie_disclaimer.tooltip.cookie_cannot_be_disabled')"
|
|
46
|
+
/>
|
|
47
|
+
<!-- end CmdFormElement -->
|
|
48
|
+
|
|
49
|
+
<!-- begin icon to toggle box-body -->
|
|
50
|
+
<a href="#" @click.prevent="toggleBoxBody(cookie.id)" :title="getMessage('cookie_disclaimer.tooltip.toggle_box_content')">
|
|
51
|
+
<span :class="boxIsOpen(cookie.id) ? iconClassBoxExpanded : iconClassBoxCollapsed"></span>
|
|
52
|
+
</a>
|
|
53
|
+
<!-- end icon to toggle box-body -->
|
|
54
|
+
</header>
|
|
55
|
+
<div v-show="boxIsOpen(cookie.id)" class="collapsible-box-body">
|
|
56
|
+
<CmdParagraph v-if="cookie.description" :content="cookie.description"/>
|
|
57
|
+
<p v-if="cookie.linkDataPrivacy">
|
|
58
|
+
{{ cookie.linkDataPrivacy.label }}
|
|
59
|
+
<a @click="openDataPrivacy"
|
|
60
|
+
:href="cookie.linkDataPrivacy.link"
|
|
61
|
+
:target="cookie.linkDataPrivacy.target">
|
|
62
|
+
{{ cookie.linkDataPrivacy.linkText }}
|
|
63
|
+
</a>
|
|
64
|
+
</p>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<!-- end CmdBox -->
|
|
68
|
+
</div>
|
|
69
|
+
<!-- end required cookies -->
|
|
70
|
+
|
|
71
|
+
<hr/>
|
|
72
|
+
|
|
73
|
+
<!-- begin optional cookies -->
|
|
74
|
+
<div v-if="cookieOptions?.optional" class="flex-container flex-direction-column">
|
|
75
|
+
<!-- begin CmdHeadline -->
|
|
76
|
+
<CmdHeadline
|
|
77
|
+
v-if="defaultCmdBoxOptionalCookies().showHeadline && defaultCmdBoxOptionalCookies().headlineText"
|
|
78
|
+
:headlineText="defaultCmdBoxOptionalCookies().headlineText"
|
|
79
|
+
:headlineLevel="defaultCmdBoxOptionalCookies().headlineLevel"
|
|
80
|
+
/>
|
|
81
|
+
<!-- end CmdHeadline -->
|
|
82
|
+
|
|
83
|
+
<div v-for="(cookie, index) in cookieOptions.optional.cookies || []"
|
|
84
|
+
:key="index" class="collapsible-box">
|
|
85
|
+
<header :class="{open : boxIsOpen(cookie.id)}">
|
|
86
|
+
<!-- begin CmdFormElement -->
|
|
87
|
+
<CmdFormElement
|
|
88
|
+
element="input"
|
|
89
|
+
type="checkbox"
|
|
90
|
+
v-model="acceptedCookies"
|
|
91
|
+
:inputValue="cookie.value"
|
|
92
|
+
:labelText="cookie.labelText"
|
|
93
|
+
:disabled="cookie.disabled"
|
|
94
|
+
:id="cookie.id"
|
|
95
|
+
:toggleSwitch="true"
|
|
96
|
+
:title="getMessage('cookie_disclaimer.tooltip.toggle_to_accept_cookie')"
|
|
97
|
+
/>
|
|
98
|
+
<!-- end CmdFormElement -->
|
|
99
|
+
|
|
100
|
+
<!-- begin icon to toggle box-body -->
|
|
101
|
+
<a href="#" @click.prevent="toggleBoxBody(cookie.id)" :title="getMessage('cookie_disclaimer.tooltip.toggle_box_content')">
|
|
102
|
+
<span :class="boxIsOpen(cookie.id) ? iconClassBoxExpanded : iconClassBoxCollapsed"></span>
|
|
103
|
+
</a>
|
|
104
|
+
<!-- end icon to toggle box-body -->
|
|
105
|
+
</header>
|
|
106
|
+
<div v-show="boxIsOpen(cookie.id)" class="collapsible-box-body">
|
|
107
|
+
<CmdParagraph v-if="cookie.description" :content="cookie.description "/>
|
|
108
|
+
<p v-if="cookie.linkDataPrivacy">
|
|
109
|
+
{{ cookie.linkDataPrivacy.label }}
|
|
110
|
+
<a @click="openDataPrivacy"
|
|
111
|
+
:href="cookie.linkDataPrivacy.link"
|
|
112
|
+
:target="cookie.linkDataPrivacy.target">
|
|
113
|
+
{{ cookie.linkDataPrivacy.linkText }}
|
|
114
|
+
</a>
|
|
115
|
+
</p>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
<!-- end optional cookies -->
|
|
120
|
+
</slot>
|
|
121
|
+
<!-- end slot for cookie-options -->
|
|
122
|
+
|
|
123
|
+
<!-- begin privacy-text -->
|
|
124
|
+
<div v-if="showPrivacyText" class="privacy-text" v-html="getMessage('cookie_disclaimer.text.data_privacy')"></div>
|
|
125
|
+
<!-- end privacy-text-->
|
|
126
|
+
|
|
127
|
+
<!-- begin button-wrapper for 'accept'-buttons -->
|
|
128
|
+
<div class="button-wrapper align-center">
|
|
129
|
+
<CmdLink
|
|
130
|
+
v-bind="cmdLinkAcceptRequiredCookiesProperties"
|
|
131
|
+
@click="acceptRequiredCookies"
|
|
132
|
+
/>
|
|
133
|
+
<CmdLink
|
|
134
|
+
v-bind="cmdLinkAcceptAllCookiesProperties"
|
|
135
|
+
@click="acceptAllCookies"
|
|
136
|
+
/>
|
|
137
|
+
</div>
|
|
138
|
+
<!-- end button-wrapper for 'accept'-buttons -->
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<!-- end CmdCookieDisclaimer ---------------------------------------------------------------------------------------- -->
|
|
142
|
+
</transition>
|
|
143
|
+
</template>
|
|
144
|
+
|
|
145
|
+
<script>
|
|
146
|
+
// import mixins
|
|
147
|
+
import I18n from "../mixins/I18n"
|
|
148
|
+
import DefaultMessageProperties from "../mixins/CmdCookieDisclaimer/DefaultMessageProperties"
|
|
149
|
+
import CmdLink from "./CmdLink.vue";
|
|
150
|
+
|
|
151
|
+
export default {
|
|
152
|
+
name: "CmdCookieDisclaimer",
|
|
153
|
+
mixins: [I18n, DefaultMessageProperties],
|
|
154
|
+
data() {
|
|
155
|
+
return {
|
|
156
|
+
showCookieDisclaimer: true,
|
|
157
|
+
openBoxes: []
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
props: {
|
|
161
|
+
/**
|
|
162
|
+
* define the transition when cookie disclaimer disappears
|
|
163
|
+
*
|
|
164
|
+
* @allowedValues: "none", "fade", "scroll"
|
|
165
|
+
*/
|
|
166
|
+
transition: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: "fade"
|
|
169
|
+
},
|
|
170
|
+
/**
|
|
171
|
+
* define icon-class for collapsed box
|
|
172
|
+
*/
|
|
173
|
+
iconClassBoxCollapsed: {
|
|
174
|
+
type: String,
|
|
175
|
+
default: "icon-chevron-one-stripe-down"
|
|
176
|
+
},
|
|
177
|
+
/**
|
|
178
|
+
* define icon-class for expanded box
|
|
179
|
+
*/
|
|
180
|
+
iconClassBoxExpanded: {
|
|
181
|
+
type: String,
|
|
182
|
+
default: "icon-chevron-one-stripe-up"
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
* activate if you want to use slot instead for given structure
|
|
186
|
+
*/
|
|
187
|
+
useSlot: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
default: false
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
* set default v-model (must be named modelValue in Vue3)
|
|
193
|
+
*/
|
|
194
|
+
modelValue: {
|
|
195
|
+
type: Array,
|
|
196
|
+
required: false
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
* properties for CmdHeadline-component at top of cookie disclaimer
|
|
200
|
+
*/
|
|
201
|
+
cmdHeadlineCookieDisclaimer: {
|
|
202
|
+
type: Object,
|
|
203
|
+
default() {
|
|
204
|
+
return {
|
|
205
|
+
show: true,
|
|
206
|
+
headlineText: "Cookie Disclaimer",
|
|
207
|
+
headlineLevel: 2
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
/**
|
|
212
|
+
* list of cookie-options
|
|
213
|
+
*/
|
|
214
|
+
cookieOptions: {
|
|
215
|
+
type: Object,
|
|
216
|
+
required: false
|
|
217
|
+
},
|
|
218
|
+
/**
|
|
219
|
+
* toggle visibility of privacy-text
|
|
220
|
+
*/
|
|
221
|
+
showPrivacyText: {
|
|
222
|
+
type: Boolean,
|
|
223
|
+
default: true
|
|
224
|
+
},
|
|
225
|
+
/**
|
|
226
|
+
* properties for CmdLink-compnent for "accept required cookies"-button
|
|
227
|
+
*/
|
|
228
|
+
cmdLinkAcceptRequiredCookies: {
|
|
229
|
+
type: Object,
|
|
230
|
+
required: false
|
|
231
|
+
},
|
|
232
|
+
/**
|
|
233
|
+
* properties for CmdLink-compnent for "accept all cookies"-button
|
|
234
|
+
*/
|
|
235
|
+
cmdLinkAcceptAllCookies: {
|
|
236
|
+
type: Object,
|
|
237
|
+
required: false
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
computed: {
|
|
241
|
+
cmdLinkAcceptRequiredCookiesProperties() {
|
|
242
|
+
return {
|
|
243
|
+
linkType: "button",
|
|
244
|
+
highlightLevel: null,
|
|
245
|
+
text: this.getMessage("cookie_disclaimer.button.accept_required_cookies"),
|
|
246
|
+
...this.cmdLinkAcceptRequiredCookies
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
cmdLinkAcceptAllCookiesProperties() {
|
|
250
|
+
return {
|
|
251
|
+
linkType: "button",
|
|
252
|
+
highlightLevel: "primary",
|
|
253
|
+
text: this.getMessage("cookie_disclaimer.button.accept_all_cookies"),
|
|
254
|
+
...this.cmdLinkAcceptAllCookies
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
acceptedCookies: {
|
|
258
|
+
get() {
|
|
259
|
+
const cookies = this.modelValue ? [...this.modelValue] : []
|
|
260
|
+
const requiredCookies = this.cookieOptions?.required?.cookies || []
|
|
261
|
+
for (let i = 0; i < requiredCookies.length; i++) {
|
|
262
|
+
if (!cookies.includes(requiredCookies[i].value)) {
|
|
263
|
+
cookies.push(requiredCookies[i].value)
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return cookies
|
|
267
|
+
},
|
|
268
|
+
set(value) {
|
|
269
|
+
this.$emit("update:modelValue", value)
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
methods: {
|
|
274
|
+
boxIsOpen(cookieId) {
|
|
275
|
+
return this.openBoxes.includes(cookieId)
|
|
276
|
+
},
|
|
277
|
+
defaultCmdBoxRequiredCookies() {
|
|
278
|
+
return {
|
|
279
|
+
collapsible: true,
|
|
280
|
+
showHeadline: true,
|
|
281
|
+
headlineLevel: 3,
|
|
282
|
+
headlineText: this.getMessage("cookie_disclaimer.headline.required_cookies"),
|
|
283
|
+
...this.cookieOptions?.required.cmdHeadline
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
defaultCmdBoxOptionalCookies() {
|
|
287
|
+
return {
|
|
288
|
+
collapsible: true,
|
|
289
|
+
showHeadline: true,
|
|
290
|
+
headlineText: this.getMessage("cookie_disclaimer.headline.optional_cookies"),
|
|
291
|
+
headlineLevel: 3,
|
|
292
|
+
...this.cookieOptions?.optional.cmdHeadline
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
toggleBoxBody(cookieId) {
|
|
296
|
+
const index = this.openBoxes.indexOf(cookieId);
|
|
297
|
+
|
|
298
|
+
if (index === -1) {
|
|
299
|
+
// cookieId does not exist in the array, so add it
|
|
300
|
+
this.openBoxes.push(cookieId);
|
|
301
|
+
} else {
|
|
302
|
+
// cookieId already exists in the array, so remove it
|
|
303
|
+
this.openBoxes.splice(index, 1);
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
acceptRequiredCookies() {
|
|
307
|
+
this.$emit("close-cookie-disclaimer", this.acceptedCookies)
|
|
308
|
+
},
|
|
309
|
+
acceptAllCookies() {
|
|
310
|
+
const allCookies = []
|
|
311
|
+
|
|
312
|
+
// push all required cookies to array
|
|
313
|
+
const requiredCookies = this.cookieOptions?.required?.cookies
|
|
314
|
+
|
|
315
|
+
if (requiredCookies) {
|
|
316
|
+
for (let i = 0; i < requiredCookies.length; i++) {
|
|
317
|
+
allCookies.push(requiredCookies[i].value)
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// push all optional cookies to array
|
|
322
|
+
const optionalCookies = this.cookieOptions?.optional?.cookies
|
|
323
|
+
|
|
324
|
+
if (optionalCookies) {
|
|
325
|
+
for (let i = 0; i < optionalCookies.length; i++) {
|
|
326
|
+
allCookies.push(optionalCookies[i].value)
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
this.$emit("close-cookie-disclaimer", allCookies)
|
|
331
|
+
},
|
|
332
|
+
openDataPrivacy(event) {
|
|
333
|
+
/* first 'target' = clicked-element, second 'target' = target-attribute */
|
|
334
|
+
if (!event.target.target) {
|
|
335
|
+
event.preventDefault()
|
|
336
|
+
fetch(event.target.href).then((response) =>
|
|
337
|
+
response.text()
|
|
338
|
+
).then((content) => { /* use arrow function to get access to dataPrivacy by 'this' = vue-instance (otherwise 'this' wouldn't be vue-instance in this fetch-method) */
|
|
339
|
+
this.dataPrivacyContent = content
|
|
340
|
+
})
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
</script>
|
|
346
|
+
|
|
347
|
+
<style>
|
|
348
|
+
/* begin cmd-cookie-disclaimer ---------------------------------------------------------------------------------------- */
|
|
349
|
+
.cmd-cookie-disclaimer {
|
|
350
|
+
width: 100%;
|
|
351
|
+
padding: var(--default-padding);
|
|
352
|
+
padding-right: calc(var(--default-padding) * 2);
|
|
353
|
+
z-index: 100; /* bring layer above logo */
|
|
354
|
+
bottom: 0;
|
|
355
|
+
top: auto;
|
|
356
|
+
|
|
357
|
+
.collapsible-box {
|
|
358
|
+
border-radius: var(--default-border-radius);
|
|
359
|
+
|
|
360
|
+
header {
|
|
361
|
+
display: flex;
|
|
362
|
+
align-items: center;
|
|
363
|
+
border: var(--primary-border);
|
|
364
|
+
justify-content: unset; /* overwrite setting for collapsible boxes */
|
|
365
|
+
background: var(--primary-color);
|
|
366
|
+
border-radius: inherit;
|
|
367
|
+
|
|
368
|
+
&.open {
|
|
369
|
+
border-bottom-left-radius: 0;
|
|
370
|
+
border-bottom-right-radius: 0;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
&:has(input:checked) {
|
|
374
|
+
background: var(--color-scheme-background);
|
|
375
|
+
|
|
376
|
+
span[class*="icon-"] {
|
|
377
|
+
color: var(--hyperlink-color);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
label {
|
|
381
|
+
.label-text span {
|
|
382
|
+
color: var(--hyperlink-color); /* required to set label-text in header to white */
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
&:has(input:disabled) {
|
|
388
|
+
background: var(--disabled-background);
|
|
389
|
+
|
|
390
|
+
span[class*="icon-"] {
|
|
391
|
+
color: var(--hyperlink-color);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
label {
|
|
395
|
+
.label-text span {
|
|
396
|
+
color: var(--disabled-color) !important; /* required to set label-text in header to white */
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
&:has(a:is(:hover, :active, :focus)) {
|
|
402
|
+
background: var(--primary-color);
|
|
403
|
+
|
|
404
|
+
label .label-text span, span[class*="icon-"] {
|
|
405
|
+
color: var(--color-white) !important;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
span[class*="icon-"] {
|
|
410
|
+
color: var(--color-white);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
label {
|
|
414
|
+
padding: calc(var(--default-padding) / 2) var(--default-padding);
|
|
415
|
+
|
|
416
|
+
.label-text span {
|
|
417
|
+
color: var(--color-white); /* required to set label-text in header to white */
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
&.disabled {
|
|
421
|
+
.label-text span {
|
|
422
|
+
color: var(--color-white) !important; /* required to set label-text in header to white */
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
&:hover, &:active, &:focus {
|
|
427
|
+
cursor: pointer;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
input {
|
|
431
|
+
&:hover, &:active, &:focus {
|
|
432
|
+
cursor: pointer;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
a {
|
|
438
|
+
text-decoration: none;
|
|
439
|
+
flex: 1;
|
|
440
|
+
display: flex;
|
|
441
|
+
justify-content: flex-end;
|
|
442
|
+
padding: var(--default-padding);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.collapsible-box-body {
|
|
447
|
+
padding: var(--default-padding);
|
|
448
|
+
border: var(--default-border);
|
|
449
|
+
border-top: 0;
|
|
450
|
+
background: var(--box-background);
|
|
451
|
+
border-bottom-left-radius: inherit;
|
|
452
|
+
border-bottom-right-radius: inherit;
|
|
453
|
+
|
|
454
|
+
p:last-child {
|
|
455
|
+
margin: 0;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
> p {
|
|
461
|
+
text-align: center;
|
|
462
|
+
color: var(--color-scheme-text-color); /* must be assigned again, because content is placed by slot */
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
p {
|
|
466
|
+
a {
|
|
467
|
+
text-decoration: underline;
|
|
468
|
+
|
|
469
|
+
&:hover, &:active, &:focus {
|
|
470
|
+
text-decoration: none;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.privacy-text, .button-wrapper {
|
|
476
|
+
margin-top: var(--default-gap);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/* end cmd-cookie-disclaimer ------------------------------------------------------------------------------------------ */
|
|
481
481
|
</style>
|