comand-component-library 4.0.94 → 4.0.96
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +2266 -2246
- package/dist/comand-component-library.umd.cjs +21 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/ComponentLibrary.vue +21 -0
- package/src/components/CmdHeadline.vue +22 -10
- package/src/components/CmdImage.vue +2 -2
- package/src/components/CmdInnerLink.vue +2 -2
- package/src/components/CmdLink.vue +30 -3
- package/src/components/CmdOpeningHours.vue +8 -1
- package/src/documentation/generated/CmdWidthLimitationWrapperPropertyDescriptions.json +12 -5
@@ -1,7 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<!-- begin CmdLink -->
|
3
3
|
<!-- begin href -->
|
4
|
-
<a v-if="linkType === 'href'" :href="path" :target="target" :class="['cmd-link', {'button': styleAsButton, 'primary': primaryButton, 'fancybox': fancybox}]" @click="emitClick($event, 'href')">
|
4
|
+
<a v-if="linkType === 'href'" :href="path" :target="target" :class="['cmd-link', {'button': styleAsButton, 'primary': primaryButton, 'box': styleAsBox, 'fancybox': fancybox}]" @click="emitClick($event, 'href')" :title="icon?.tooltip">
|
5
5
|
<CmdInnerLink :text="text" :icon="icon">
|
6
6
|
<slot></slot>
|
7
7
|
</CmdInnerLink>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<!-- end href -->
|
10
10
|
|
11
11
|
<!-- begin router -->
|
12
|
-
<router-link v-else-if="linkType === 'router'" :to="path" :class="['cmd-link', {'button': styleAsButton, 'primary': primaryButton, 'fancybox': fancybox}]" @click="emitClick($event, 'router')">
|
12
|
+
<router-link v-else-if="linkType === 'router'" :to="path" :class="['cmd-link', {'button': styleAsButton, 'primary': primaryButton, 'box': styleAsBox, 'fancybox': fancybox}]" @click="emitClick($event, 'router')" :title="icon?.tooltip">
|
13
13
|
<CmdInnerLink :text="text" :icon="icon">
|
14
14
|
<slot></slot>
|
15
15
|
</CmdInnerLink>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<!-- end router -->
|
18
18
|
|
19
19
|
<!-- begin button -->
|
20
|
-
<button v-else-if="linkType === 'button'" :class="['cmd-link button', {'primary': primaryButton, 'fancybox': fancybox}]" type="submit" @click="emitClick($event, 'button')">
|
20
|
+
<button v-else-if="linkType === 'button'" :class="['cmd-link button', {'primary': primaryButton, 'box': styleAsBox, 'fancybox': fancybox}]" type="submit" @click="emitClick($event, 'button')" :title="icon?.tooltip">
|
21
21
|
<CmdInnerLink :text="text" :icon="icon">
|
22
22
|
<slot></slot>
|
23
23
|
</CmdInnerLink>
|
@@ -86,6 +86,13 @@ export default {
|
|
86
86
|
type: Boolean,
|
87
87
|
default: false
|
88
88
|
},
|
89
|
+
/**
|
90
|
+
* toggle if link should be styled as box
|
91
|
+
*/
|
92
|
+
styleAsBox: {
|
93
|
+
type: Boolean,
|
94
|
+
default: false
|
95
|
+
},
|
89
96
|
/**
|
90
97
|
* activate if button should be styled as primary-button
|
91
98
|
*
|
@@ -112,5 +119,25 @@ export default {
|
|
112
119
|
</script>
|
113
120
|
|
114
121
|
<style>
|
122
|
+
/* begin cmd-link -------------------------------------------------------------------------------------------- */
|
123
|
+
.cmd-link {
|
124
|
+
&.box {
|
125
|
+
display: inline-flex;
|
126
|
+
flex-direction: column;
|
127
|
+
gap: calc(var(--default-gap) / 2);
|
128
|
+
align-items: center;
|
129
|
+
border-color: var(--hyperlink-color);
|
130
|
+
text-decoration: none;
|
131
|
+
border-radius: var(--box-border-radius);
|
115
132
|
|
133
|
+
span[class*="icon"] {
|
134
|
+
font-size: 4rem;
|
135
|
+
}
|
136
|
+
|
137
|
+
&:hover, &:active, &:focus {
|
138
|
+
border-color: var(--hyperlink-color-highlighted)M
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
/* end cmd-link -------------------------------------------------------------------------------------------- */
|
116
143
|
</style>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<!-- end cmd-headline -->
|
9
9
|
|
10
10
|
<!-- begin opening-status with link to detail-page -->
|
11
|
-
<template v-if="!editing">
|
11
|
+
<template v-if="!editing && showOpenStatus">
|
12
12
|
<template v-if="cmdLink?.path">
|
13
13
|
<CmdLink :linkType="cmdLink.type || 'href'" v-bind="cmdLink" :class="{closed: isClosed}">{{ textOpenClosed }}</CmdLink>
|
14
14
|
</template>
|
@@ -250,6 +250,13 @@ export default {
|
|
250
250
|
type: Number,
|
251
251
|
default: 5000
|
252
252
|
},
|
253
|
+
/**
|
254
|
+
* toggle display of open-closed-status text above opening hours
|
255
|
+
*/
|
256
|
+
showOpenStatus: {
|
257
|
+
type: Boolean,
|
258
|
+
default: true
|
259
|
+
},
|
253
260
|
/**
|
254
261
|
* properties for CmdLink-component
|
255
262
|
*/
|
@@ -13,8 +13,7 @@
|
|
13
13
|
"comments": [
|
14
14
|
"activate if the inner content should be wrapped in inner component tag (recommended)",
|
15
15
|
"",
|
16
|
-
"(if deactivated, content will be directly placed inside cmd-width-limitation-wrapper)"
|
17
|
-
""
|
16
|
+
"(if deactivated, content will be directly placed inside cmd-width-limitation-wrapper)"
|
18
17
|
]
|
19
18
|
},
|
20
19
|
"sticky": {
|
@@ -58,11 +57,19 @@
|
|
58
57
|
"set id for (invisible) anchor to enable shortcuts"
|
59
58
|
]
|
60
59
|
},
|
60
|
+
"useFullDeviceWidth": {
|
61
|
+
"comments": [
|
62
|
+
"toggle if wrapper should be stretched to full devices width"
|
63
|
+
]
|
64
|
+
},
|
65
|
+
"useInnerSection": {
|
66
|
+
"comments": [
|
67
|
+
"toggle if a section-tag should be used as inner wrapper (else a div-tag is used)"
|
68
|
+
]
|
69
|
+
},
|
61
70
|
"cmdHeadline": {
|
62
71
|
"comments": [
|
63
|
-
"properties for CmdHeadline-component"
|
64
|
-
"",
|
65
|
-
"@requiredForAccessibilty"
|
72
|
+
"properties for CmdHeadline-component"
|
66
73
|
]
|
67
74
|
}
|
68
75
|
}
|