comand-component-library 3.1.72 → 3.1.75
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.css +1 -1
- package/dist/comand-component-library.umd.min.js +1 -1
- package/package.json +3 -3
- package/src/App.vue +112 -79
- package/src/assets/data/cookie-disclaimer.json +7 -6
- package/src/assets/data/input-group-radiobuttons.json +23 -0
- package/src/assets/data/input-group-replaced-radiobuttons.json +23 -0
- package/src/assets/data/input-group-toggle-switch-radiobuttons.json +23 -0
- package/src/assets/styles/global-styles.scss +20 -59
- package/src/components/CmdAddressData.vue +7 -7
- package/src/components/CmdBankAccountData.vue +7 -7
- package/src/components/CmdBox.vue +25 -31
- package/src/components/CmdBoxSiteSearch.vue +9 -9
- package/src/components/CmdCookieDisclaimer.vue +93 -25
- package/src/components/CmdFakeSelect.vue +36 -52
- package/src/components/CmdFormElement.vue +36 -57
- package/src/components/{CmdCustomHeadline.vue → CmdHeadline.vue} +1 -1
- package/src/components/CmdInputGroup.vue +156 -24
- package/src/components/CmdListOfLinks.vue +8 -8
- package/src/components/CmdListOfRequirements.vue +150 -0
- package/src/components/CmdLoginForm.vue +17 -17
- package/src/components/CmdMainNavigation.vue +2 -2
- package/src/components/CmdOpeningHours.vue +5 -5
- package/src/components/CmdSiteFooter.vue +76 -0
- package/src/components/CmdSiteHeader.vue +2 -1
- package/src/components/CmdSystemMessage.vue +28 -11
- package/src/components/CmdTabs.vue +8 -8
- package/src/components/CmdToggleDarkMode.vue +42 -5
- package/src/components/CmdTooltip.vue +13 -13
- package/src/components/CmdTooltipForInputElements.vue +122 -0
- package/src/components/CmdUploadForm.vue +32 -32
- package/src/components/CmdWidthLimitationWrapper.vue +0 -17
- package/src/documentation/generated/CmdAddressDataPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdBackToTopButtonPropertyDescriptions.json +12 -0
- package/src/documentation/generated/CmdBankAccountDataPropertyDescriptions.json +34 -0
- package/src/documentation/generated/CmdBoxPropertyDescriptions.json +96 -0
- package/src/documentation/generated/CmdBoxSiteSearchPropertyDescriptions.json +79 -0
- package/src/documentation/generated/CmdBoxWrapperPropertyDescriptions.json +47 -0
- package/src/documentation/generated/CmdBreadcrumbsPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdCompanyLogoPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdCookieDisclaimerPropertyDescriptions.json +37 -0
- package/src/documentation/generated/CmdCustomHeadlinePropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdFakeSelectPropertyDescriptions.json +84 -0
- package/src/documentation/generated/CmdFancyBoxPropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +258 -0
- package/src/documentation/generated/CmdFormFiltersPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdFormPropertyDescriptions.json +40 -0
- package/src/documentation/generated/CmdGoogleMapsPropertyDescriptions.json +7 -0
- package/src/documentation/generated/CmdHeadlinePropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdImageGalleryPropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdImageZoomPropertyDescriptions.json +12 -0
- package/src/documentation/generated/CmdInputGroupPropertyDescriptions.json +117 -0
- package/src/documentation/generated/CmdListOfLinksPropertyDescriptions.json +60 -0
- package/src/documentation/generated/CmdListOfRequirementsPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdLoginFormPropertyDescriptions.json +90 -0
- package/src/documentation/generated/CmdMainNavigationPropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdMultistepFormProgressBarPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +42 -0
- package/src/documentation/generated/CmdPagerPropertyDescriptions.json +37 -0
- package/src/documentation/generated/CmdProgressBarPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdShareButtonsPropertyDescriptions.json +34 -0
- package/src/documentation/generated/CmdSiteFooterPropertyDescriptions.json +12 -0
- package/src/documentation/generated/CmdSiteHeaderPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdSlideButtonPropertyDescriptions.json +25 -0
- package/src/documentation/generated/CmdSlideshowPropertyDescriptions.json +42 -0
- package/src/documentation/generated/CmdSwitchLanguagePropertyDescriptions.json +7 -0
- package/src/documentation/generated/CmdSystemMessagePropertyDescriptions.json +45 -0
- package/src/documentation/generated/CmdTablePropertyDescriptions.json +72 -0
- package/src/documentation/generated/CmdTabsPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdThumbnailScrollerPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdTooltipForInputElementsPropertyDescriptions.json +42 -0
- package/src/documentation/generated/CmdTooltipPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdUploadFormPropertyDescriptions.json +175 -0
- package/src/documentation/generated/CmdWidthLimitationWrapperPropertyDescriptions.json +41 -0
- package/src/index.js +2 -1
- package/src/mixins/CmdCookieDisclaimer/DefaultMessageProperties.js +10 -0
- package/src/mixins/FieldValidation.js +16 -6
- package/src/mixins/Tooltip.js +1 -1
@@ -0,0 +1,150 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="cmd-list-of-requirements">
|
3
|
+
<!-- begin cmd-custom-headline -->
|
4
|
+
<CmdHeadline :headline-level="CmdHeadline.headlineLevel">
|
5
|
+
<!-- {{ getMessage("cmdfakeselect.headline.requirements_for_input") }}<br/>"{{ labelText }}" -->
|
6
|
+
</CmdHeadline>
|
7
|
+
<!-- end cmd-custom-headline -->
|
8
|
+
|
9
|
+
<!-- begin list of requirements -->
|
10
|
+
<dl>
|
11
|
+
<template v-for="(requirement, index) in inputRequirements" :key="index">
|
12
|
+
<dt aria-live="assertive" :class="requirement.valid(inputModelValue, inputAttributes) ? 'success' : 'error'">{{ requirement.message }}:</dt>
|
13
|
+
<dd :class="requirement.valid(inputModelValue, inputAttributes) ? 'success' : 'error'">
|
14
|
+
<span
|
15
|
+
aria-live="assertive"
|
16
|
+
:class="requirement.valid(inputModelValue, inputAttributes) ? 'icon-check-circle' : 'icon-error-circle'"
|
17
|
+
:title="requirement.valid(inputModelValue, inputAttributes) ? 'success' : 'error'"
|
18
|
+
>
|
19
|
+
</span>
|
20
|
+
</dd>
|
21
|
+
</template>
|
22
|
+
</dl>
|
23
|
+
<!-- end list of requirements -->
|
24
|
+
|
25
|
+
<!-- begin helplink -->
|
26
|
+
<template v-if="helplink && helplink.show">
|
27
|
+
<hr />
|
28
|
+
<a
|
29
|
+
v-if="helplink.url"
|
30
|
+
:href="helplink.url"
|
31
|
+
:target="helplink.target"
|
32
|
+
@click.prevent
|
33
|
+
>
|
34
|
+
<span v-if="helplink.icon?.iconClass"
|
35
|
+
:class="helplink.icon?.iconClass"
|
36
|
+
:title="helplink.icon?.tooltip">
|
37
|
+
</span>
|
38
|
+
<span v-if="helplink.text">
|
39
|
+
{{ helplink.text }}
|
40
|
+
</span>
|
41
|
+
</a>
|
42
|
+
</template>
|
43
|
+
<!-- end helplink -->
|
44
|
+
</div>
|
45
|
+
</template>
|
46
|
+
|
47
|
+
<script>
|
48
|
+
// import components
|
49
|
+
import CmdHeadline from "./CmdHeadline"
|
50
|
+
|
51
|
+
export default {
|
52
|
+
name: "CmdListOfRequirements",
|
53
|
+
components: {
|
54
|
+
CmdHeadline
|
55
|
+
},
|
56
|
+
props: {
|
57
|
+
/**
|
58
|
+
* property to check validity of given modelValue
|
59
|
+
*/
|
60
|
+
inputModelValue: {
|
61
|
+
type: [String, Boolean, Array, Number],
|
62
|
+
default: ""
|
63
|
+
},
|
64
|
+
/**
|
65
|
+
* property to check validity of given attributes
|
66
|
+
*/
|
67
|
+
inputAttributes: {
|
68
|
+
type: Object,
|
69
|
+
required: true
|
70
|
+
},
|
71
|
+
/**
|
72
|
+
* text for label
|
73
|
+
*/
|
74
|
+
labelText: {
|
75
|
+
type: String,
|
76
|
+
required: false
|
77
|
+
},
|
78
|
+
/**
|
79
|
+
* list of all requirements
|
80
|
+
*/
|
81
|
+
inputRequirements: {
|
82
|
+
type: Array,
|
83
|
+
required: true
|
84
|
+
},
|
85
|
+
/**
|
86
|
+
* set a helplink to a different page for further support
|
87
|
+
*/
|
88
|
+
helplink: {
|
89
|
+
type: String,
|
90
|
+
required: false
|
91
|
+
},
|
92
|
+
/**
|
93
|
+
* properties of CmdHeadline-component
|
94
|
+
*/
|
95
|
+
CmdHeadline: {
|
96
|
+
type: Object,
|
97
|
+
default() {
|
98
|
+
return {
|
99
|
+
headlineLevel: 4
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
</script>
|
106
|
+
|
107
|
+
<style lang="scss">
|
108
|
+
/* begin cmd-list-of-requirements ------------------------------------------------------------------------------------------ */
|
109
|
+
.cmd-list-of-requirements {
|
110
|
+
dl {
|
111
|
+
.error {
|
112
|
+
--status-color: var(--error-color);
|
113
|
+
}
|
114
|
+
|
115
|
+
.warning {
|
116
|
+
--status-color: var(--warning-color);
|
117
|
+
}
|
118
|
+
|
119
|
+
.success {
|
120
|
+
--status-color: var(--success-color);
|
121
|
+
}
|
122
|
+
|
123
|
+
.info {
|
124
|
+
--status-color: var(--info-color);
|
125
|
+
}
|
126
|
+
|
127
|
+
dt {
|
128
|
+
color: var(--status-color);
|
129
|
+
}
|
130
|
+
|
131
|
+
span[class*="icon"] {
|
132
|
+
font-size: 1.2rem;
|
133
|
+
color: var(--status-color);
|
134
|
+
}
|
135
|
+
|
136
|
+
& ~ a {
|
137
|
+
display: flex;
|
138
|
+
align-items: center;
|
139
|
+
justify-content: center;
|
140
|
+
text-align: center;
|
141
|
+
text-decoration: none;
|
142
|
+
|
143
|
+
span[class*="icon"] {
|
144
|
+
font-size: 1.2rem;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
/* end cmd-list-of-requirements ------------------------------------------------------------------------------------------ */
|
150
|
+
</style>
|
@@ -2,10 +2,10 @@
|
|
2
2
|
<!-- begin login-form -->
|
3
3
|
<fieldset v-if="!sendLogin" class="cmd-login-form flex-container">
|
4
4
|
<legend :class="{hidden : !showLegend}">{{ textLegend }}</legend>
|
5
|
-
<!-- begin
|
6
|
-
<
|
7
|
-
v-bind="
|
8
|
-
<!-- end
|
5
|
+
<!-- begin CmdHeadline -->
|
6
|
+
<CmdHeadline v-if="CmdHeadlineLoginForm"
|
7
|
+
v-bind="CmdHeadlineLoginForm"/>
|
8
|
+
<!-- end CmdHeadline -->
|
9
9
|
|
10
10
|
<!-- being form elements -->
|
11
11
|
<div class="flex-container">
|
@@ -121,13 +121,13 @@
|
|
121
121
|
<!-- begin send-login-form -->
|
122
122
|
<fieldset v-else class="cmd-login-form flex-container">
|
123
123
|
<legend :class="{'hidden' : !legendSendLoginForm.show}">{{ legendSendLoginForm.text }}</legend>
|
124
|
-
<!-- begin
|
125
|
-
<
|
126
|
-
:iconClass="
|
127
|
-
:preHeadline="
|
128
|
-
:headlineLevel="
|
129
|
-
:headlineText="
|
130
|
-
<!-- end
|
124
|
+
<!-- begin CmdHeadline -->
|
125
|
+
<CmdHeadline v-if="CmdHeadlineSendLoginForm"
|
126
|
+
:iconClass="CmdHeadlineSendLoginForm.iconClass"
|
127
|
+
:preHeadline="CmdHeadlineSendLoginForm.preHeadline"
|
128
|
+
:headlineLevel="CmdHeadlineSendLoginForm.preHeadline"
|
129
|
+
:headlineText="CmdHeadlineSendLoginForm.headlineText"/>
|
130
|
+
<!-- end CmdHeadline -->
|
131
131
|
|
132
132
|
<!-- begin CmdFormElement -->
|
133
133
|
<CmdFormElement
|
@@ -209,7 +209,7 @@
|
|
209
209
|
import {getRoute} from "../utilities.js"
|
210
210
|
|
211
211
|
// import components
|
212
|
-
import
|
212
|
+
import CmdHeadline from "./CmdHeadline"
|
213
213
|
import CmdFormElement from "./CmdFormElement"
|
214
214
|
|
215
215
|
export default {
|
@@ -223,7 +223,7 @@ export default {
|
|
223
223
|
}
|
224
224
|
},
|
225
225
|
components: {
|
226
|
-
|
226
|
+
CmdHeadline,
|
227
227
|
CmdFormElement
|
228
228
|
},
|
229
229
|
props: {
|
@@ -270,16 +270,16 @@ export default {
|
|
270
270
|
}
|
271
271
|
},
|
272
272
|
/**
|
273
|
-
* properties for
|
273
|
+
* properties for CmdHeadline-component for login-form
|
274
274
|
*/
|
275
|
-
|
275
|
+
CmdHeadlineLoginForm: {
|
276
276
|
type: Object,
|
277
277
|
required: false
|
278
278
|
},
|
279
279
|
/**
|
280
|
-
* properties for
|
280
|
+
* properties for CmdHeadline-component for send-login-form
|
281
281
|
*/
|
282
|
-
|
282
|
+
CmdHeadlineSendLoginForm: {
|
283
283
|
type: Object,
|
284
284
|
default() {
|
285
285
|
return {
|
@@ -305,7 +305,7 @@ export default {
|
|
305
305
|
|
306
306
|
/* begin offcanvas-navigation */
|
307
307
|
&:not(.persist-on-mobile) {
|
308
|
-
transition: (--nav-transition);
|
308
|
+
transition: var(--nav-transition);
|
309
309
|
|
310
310
|
#toggle-offcanvas {
|
311
311
|
display: flex;
|
@@ -433,7 +433,7 @@ export default {
|
|
433
433
|
height: auto;
|
434
434
|
display: block;
|
435
435
|
opacity: 1;
|
436
|
-
transition: (--nav-transition);
|
436
|
+
transition: var(--nav-transition);
|
437
437
|
|
438
438
|
> li {
|
439
439
|
> a {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="cmd-opening-hours">
|
3
3
|
<!-- begin cmd-custom-headline -->
|
4
|
-
<
|
4
|
+
<CmdHeadline v-if="CmdHeadline" v-bind="CmdHeadline" />
|
5
5
|
<!-- end cmd-custom-headline -->
|
6
6
|
|
7
7
|
<!-- begin opening-status with link to detail-page -->
|
@@ -38,16 +38,16 @@
|
|
38
38
|
|
39
39
|
<script>
|
40
40
|
// import components
|
41
|
-
import
|
41
|
+
import CmdHeadline from "./CmdHeadline"
|
42
42
|
|
43
43
|
export default {
|
44
44
|
name: "CmdOpeningHours",
|
45
|
-
components: {
|
45
|
+
components: {CmdHeadline},
|
46
46
|
props: {
|
47
47
|
/**
|
48
|
-
* properties for
|
48
|
+
* properties for CmdHeadline-component
|
49
49
|
*/
|
50
|
-
|
50
|
+
CmdHeadline: {
|
51
51
|
type: Object,
|
52
52
|
required: false
|
53
53
|
},
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="cmd-site-footer">
|
3
|
+
<footer :class="['flex-container', {vertical: orientation === 'vertical'}]">
|
4
|
+
<slot></slot>
|
5
|
+
</footer>
|
6
|
+
</div>
|
7
|
+
</template>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
export default {
|
11
|
+
name: "CmdSiteFooter",
|
12
|
+
props: {
|
13
|
+
/**
|
14
|
+
* set to vertical if items inside should be arranged vertically
|
15
|
+
*
|
16
|
+
* @allowedValues: horizontal, vertical
|
17
|
+
*/
|
18
|
+
orientation: {
|
19
|
+
type: String,
|
20
|
+
default: 'horizontal'
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
</script>
|
25
|
+
|
26
|
+
<style lang="scss">
|
27
|
+
/* begin cmd-site-footer ---------------------------------------------------------------------------------------- */
|
28
|
+
@import '../assets/styles/variables';
|
29
|
+
|
30
|
+
.cmd-site-footer {
|
31
|
+
padding: var(--grid-gap) 0;
|
32
|
+
border-top: var(--default-border);
|
33
|
+
background: var(--default-background-color);
|
34
|
+
|
35
|
+
footer {
|
36
|
+
max-width: var(--max-width);
|
37
|
+
width: 100%; /* stretch flex-item */
|
38
|
+
margin: 0 auto;
|
39
|
+
padding: 0 var(--default-padding);
|
40
|
+
}
|
41
|
+
|
42
|
+
&.sticky {
|
43
|
+
top: auto;
|
44
|
+
bottom: 0;
|
45
|
+
}
|
46
|
+
|
47
|
+
.cmd-switch-language {
|
48
|
+
width: 100%;
|
49
|
+
flex: none;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
@media only screen and (max-width: $medium-max-width) {
|
54
|
+
.cmd-site-footer {
|
55
|
+
footer {
|
56
|
+
li {
|
57
|
+
margin-bottom: calc(var(--default-margin) * 2);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
@media only screen and (max-width: $small-max-width) {
|
64
|
+
.cmd-site-footer {
|
65
|
+
a {
|
66
|
+
text-decoration: underline;
|
67
|
+
|
68
|
+
&:active {
|
69
|
+
text-decoration: none;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
/* end cmd-site-footer ---------------------------------------------------------------------------------------- */
|
76
|
+
</style>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
:class="['cmd-system-message', 'system-message', 'flex-container', 'vertical', { 'full-width': fullWidth }, validationStatus]"
|
6
6
|
:role="validationStatus === 'error' ? 'alert' : 'dialog'"
|
7
7
|
>
|
8
|
+
<!-- begin close-icon -->
|
8
9
|
<a
|
9
10
|
v-if="iconClose.show && iconClose.iconClass"
|
10
11
|
:class="iconClose.iconClass"
|
@@ -12,10 +13,17 @@
|
|
12
13
|
@click.prevent="showSystemMessage = false"
|
13
14
|
:title="iconClose.tooltip"
|
14
15
|
></a>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
<!-- end close-icon -->
|
17
|
+
|
18
|
+
<!-- begin cmd-headline -->
|
19
|
+
<CmdHeadline
|
20
|
+
class="message-headline"
|
21
|
+
:iconClass="iconMessage.iconClass"
|
22
|
+
:headlineText="systemMessage"
|
23
|
+
:headlineLevel="messageHeadlineLevel"
|
24
|
+
/>
|
25
|
+
<!-- end cmd-headline -->
|
26
|
+
|
19
27
|
<!-- begin slot-content -->
|
20
28
|
<slot></slot>
|
21
29
|
<!-- end slot-content -->
|
@@ -24,8 +32,14 @@
|
|
24
32
|
</template>
|
25
33
|
|
26
34
|
<script>
|
35
|
+
// import components
|
36
|
+
import CmdHeadline from "./CmdHeadline"
|
37
|
+
|
27
38
|
export default {
|
28
39
|
name: "CmdSystemMessage",
|
40
|
+
components: {
|
41
|
+
CmdHeadline
|
42
|
+
},
|
29
43
|
data() {
|
30
44
|
return {
|
31
45
|
showSystemMessage: true
|
@@ -68,6 +82,15 @@ export default {
|
|
68
82
|
type: String,
|
69
83
|
required: false
|
70
84
|
},
|
85
|
+
/**
|
86
|
+
* set headline-level for system-message (given to CmdHeadline-component)
|
87
|
+
*/
|
88
|
+
messageHeadlineLevel: {
|
89
|
+
type: [Number, String],
|
90
|
+
default() {
|
91
|
+
return 6
|
92
|
+
}
|
93
|
+
},
|
71
94
|
/**
|
72
95
|
* icon to close system-message
|
73
96
|
*
|
@@ -75,7 +98,7 @@ export default {
|
|
75
98
|
*/
|
76
99
|
iconClose: {
|
77
100
|
type: Object,
|
78
|
-
default
|
101
|
+
default() {
|
79
102
|
return {
|
80
103
|
show: true,
|
81
104
|
iconClass: "icon-cancel",
|
@@ -98,12 +121,6 @@ export default {
|
|
98
121
|
margin: var(--default-margin) 0;
|
99
122
|
align-items: center;
|
100
123
|
|
101
|
-
h6 {
|
102
|
-
strong {
|
103
|
-
margin-left: calc(var(--default-margin) / 2);
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
124
|
> :last-child {
|
108
125
|
margin-bottom: 0;
|
109
126
|
}
|
@@ -16,13 +16,13 @@
|
|
16
16
|
</div>
|
17
17
|
</template>
|
18
18
|
<div v-else aria-live="assertive">
|
19
|
-
<!-- begin
|
20
|
-
<
|
21
|
-
v-bind="
|
19
|
+
<!-- begin CmdHeadline -->
|
20
|
+
<CmdHeadline
|
21
|
+
v-bind="CmdHeadline"
|
22
22
|
:headlineText="tabs[showTab].headlineText"
|
23
23
|
:headlineLevel="tabs[showTab].headlineLevel"
|
24
24
|
/>
|
25
|
-
<!-- end
|
25
|
+
<!-- end CmdHeadline -->
|
26
26
|
<div v-html="tabs[showTab].htmlContent"></div>
|
27
27
|
</div>
|
28
28
|
</div>
|
@@ -30,12 +30,12 @@
|
|
30
30
|
|
31
31
|
<script>
|
32
32
|
// import components
|
33
|
-
import
|
33
|
+
import CmdHeadline from "./CmdHeadline"
|
34
34
|
|
35
35
|
export default {
|
36
36
|
name: "CmdTabs",
|
37
37
|
components: {
|
38
|
-
|
38
|
+
CmdHeadline
|
39
39
|
},
|
40
40
|
data() {
|
41
41
|
return {
|
@@ -45,9 +45,9 @@ export default {
|
|
45
45
|
emits: ["active-tab"],
|
46
46
|
props: {
|
47
47
|
/**
|
48
|
-
* properties for
|
48
|
+
* properties for CmdHeadline-component
|
49
49
|
*/
|
50
|
-
|
50
|
+
CmdHeadline: {
|
51
51
|
type: Object,
|
52
52
|
required: false
|
53
53
|
},
|
@@ -7,9 +7,6 @@
|
|
7
7
|
:showLabel="showLabel"
|
8
8
|
v-model="darkMode"
|
9
9
|
:toggle-switch="true"
|
10
|
-
:useIconsForToggleSwitch="true"
|
11
|
-
toggle-switch-checked-icon-class="icon-home"
|
12
|
-
toggle-switch-unchecked-icon-class="icon-globe"
|
13
10
|
/>
|
14
11
|
</div>
|
15
12
|
</template>
|
@@ -73,13 +70,53 @@ export default {
|
|
73
70
|
.cmd-toggle-dark-mode {
|
74
71
|
.cmd-form-element {
|
75
72
|
input {
|
76
|
-
|
73
|
+
--dark-blue: hsl(195, 96%, 45%);
|
74
|
+
--medium-blue: hsl(194, 97%, 39%);
|
75
|
+
--light-blue: hsl(195, 97%, 76%);
|
76
|
+
background: linear-gradient(to bottom, var(--dark-blue) 0%,var(--light-blue) 67%);
|
77
|
+
border-color: var(--medium-blue);
|
78
|
+
|
79
|
+
&:after {
|
80
|
+
--yellow-hue: 60;
|
81
|
+
--yellow-saturation: 100%;
|
82
|
+
--yellow-lightness: 76.7%;
|
83
|
+
background: radial-gradient(ellipse at center, var(--pure-white) 20%, hsl(var(--yellow-hue), var(--yellow-saturation), var(--yellow-lightness)) 30%, hsla(var(--yellow-hue), var(--yellow-saturation), var(--yellow-lightness),0) 100%);
|
84
|
+
border-color: transparent;
|
85
|
+
box-shadow: 0 0 1rem hsl(var(--yellow-hue), var(--yellow-saturation), var(--yellow-lightness));
|
86
|
+
}
|
77
87
|
}
|
78
88
|
}
|
79
89
|
|
80
90
|
&.dark-mode {
|
81
91
|
input {
|
82
|
-
background:
|
92
|
+
background: var(--color-scheme-background-color);
|
93
|
+
border-color: var(--color-scheme-text-color);
|
94
|
+
|
95
|
+
&:before {
|
96
|
+
--size: 1.2rem;
|
97
|
+
content: "";
|
98
|
+
width: var(--size);
|
99
|
+
aspect-ratio: 1/1;
|
100
|
+
background: var(--color-scheme-background-color);
|
101
|
+
border-radius: var(--full-circle);
|
102
|
+
position: absolute;
|
103
|
+
top: 0;
|
104
|
+
right: calc(var(--size) / 2);
|
105
|
+
transform: translateY(calc(50% - 35%));
|
106
|
+
z-index: 100;
|
107
|
+
}
|
108
|
+
|
109
|
+
&:after {
|
110
|
+
background: radial-gradient(ellipse at center, var(--pure-white) 50%,var(--medium-gray) 100%);
|
111
|
+
border-color: transparent;
|
112
|
+
box-shadow: .2rem .1rem .2rem hsla(var(--pure-white-hue), var(--pure-white-saturation), var(--pure-white-lightness), .3);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.label-text {
|
117
|
+
span {
|
118
|
+
color: var(--color-scheme-text-color);
|
119
|
+
}
|
83
120
|
}
|
84
121
|
}
|
85
122
|
}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
<template>
|
2
2
|
<div v-if="tooltipVisibility" :class="['cmd-tooltip', status]" ref="tooltip" aria-role="tooltip">
|
3
|
-
<div v-if="
|
4
|
-
<!-- begin
|
5
|
-
<
|
6
|
-
:iconClass="
|
7
|
-
:preHeadline="
|
8
|
-
:headlineLevel="
|
9
|
-
:headlineText="
|
10
|
-
<!-- end
|
3
|
+
<div v-if="CmdHeadline || iconClose.show" class="headline-wrapper">
|
4
|
+
<!-- begin CmdHeadline -->
|
5
|
+
<CmdHeadline v-if="CmdHeadline"
|
6
|
+
:iconClass="CmdHeadline.iconClass"
|
7
|
+
:preHeadline="CmdHeadline.preHeadline"
|
8
|
+
:headlineLevel="CmdHeadline.headlineLevel"
|
9
|
+
:headlineText="CmdHeadline.headlineText"/>
|
10
|
+
<!-- end CmdHeadline -->
|
11
11
|
|
12
12
|
<!-- begin icon to close tooltip -->
|
13
|
-
<a v-if="iconClose.show && toggleVisibilityByClick" href="#" @click.prevent="
|
13
|
+
<a v-if="iconClose.show && toggleVisibilityByClick" href="#" @click.prevent="hideTooltip" :title="iconClose.tooltip">
|
14
14
|
<span :class="iconClose.iconClass"></span>
|
15
15
|
</a>
|
16
16
|
<!-- end icon to close tooltip -->
|
@@ -25,12 +25,12 @@
|
|
25
25
|
|
26
26
|
<script>
|
27
27
|
// import components
|
28
|
-
import
|
28
|
+
import CmdHeadline from "./CmdHeadline"
|
29
29
|
|
30
30
|
export default {
|
31
31
|
name: "CmdTooltip",
|
32
32
|
components: {
|
33
|
-
|
33
|
+
CmdHeadline
|
34
34
|
},
|
35
35
|
data() {
|
36
36
|
return {
|
@@ -41,9 +41,9 @@ export default {
|
|
41
41
|
},
|
42
42
|
props: {
|
43
43
|
/**
|
44
|
-
* properties for
|
44
|
+
* properties for CmdHeadline-component
|
45
45
|
*/
|
46
|
-
|
46
|
+
CmdHeadline: {
|
47
47
|
type: Object,
|
48
48
|
default() {}
|
49
49
|
},
|