comand-component-library 3.1.45 → 3.1.48
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 +47 -41
- package/src/App.vue +373 -135
- package/src/ComponentDocumentation.vue +156 -0
- package/src/ComponentLibraryHelp.vue +20 -0
- package/src/assets/data/accordion.json +21 -24
- package/src/assets/data/address-data.json +34 -0
- package/src/assets/data/bank-account-data.json +22 -0
- package/src/assets/data/box-product.json +14 -4
- package/src/assets/data/box-user.json +48 -22
- package/src/assets/data/breadcrumbs.json +11 -3
- package/src/assets/data/cookie-disclaimer.json +4 -4
- package/src/assets/data/fake-select-colors.json +4 -0
- package/src/assets/data/fake-select-filter-options.json +14 -0
- package/src/assets/data/fake-select-options-with-icons.json +6 -12
- package/src/assets/data/fake-select-options.json +3 -3
- package/src/assets/data/list-of-links-section-anchors.json +23 -0
- package/src/assets/data/list-of-links-top-header-navigation.json +20 -0
- package/src/assets/data/list-of-links.json +42 -0
- package/src/assets/data/main-navigation.json +48 -0
- package/src/assets/data/multistep-form-progress-bar.json +33 -0
- package/src/assets/data/select-options.json +4 -0
- package/src/assets/data/{share-buttons.json → share-buttons-page-by-json.json} +8 -8
- package/src/assets/data/share-buttons-page-by-property.json +30 -0
- package/src/assets/data/switch-language.json +20 -0
- package/src/assets/data/table-large.json +1 -1
- package/src/assets/data/table-small.json +1 -1
- package/src/assets/styles/global-styles.scss +43 -13
- package/src/assets/styles/transitions.scss +21 -1
- package/src/components/CmdAccordion.vue +43 -42
- package/src/components/CmdAddressData.vue +124 -56
- package/src/components/CmdBackToTopButton.vue +3 -3
- package/src/components/CmdBankAccountData.vue +104 -0
- package/src/components/CmdBox.vue +253 -56
- package/src/components/CmdBoxSiteSearch.vue +138 -39
- package/src/components/CmdBoxWrapper.vue +206 -0
- package/src/components/CmdBreadcrumbs.vue +29 -13
- package/src/components/CmdCompanyLogo.vue +6 -4
- package/src/components/CmdCookieDisclaimer.vue +99 -75
- package/src/components/CmdCopyrightInformation.vue +1 -1
- package/src/components/CmdCustomHeadline.vue +93 -0
- package/src/components/CmdFakeSelect.vue +285 -60
- package/src/components/CmdFancyBox.vue +47 -33
- package/src/components/CmdForm.vue +107 -0
- package/src/components/CmdFormElement.vue +515 -81
- package/src/components/CmdFormFilters.vue +25 -11
- package/src/components/CmdGoogleMaps.vue +9 -3
- package/src/components/CmdImageGallery.vue +28 -5
- package/src/components/CmdImageZoom.vue +9 -1
- package/src/components/CmdListOfLinks.vue +169 -0
- package/src/components/CmdLoginForm.vue +143 -63
- package/src/components/CmdMainNavigation.vue +140 -42
- package/src/components/CmdMultipleSwitch.vue +33 -2
- package/src/components/CmdMultistepFormProgressBar.vue +60 -10
- package/src/components/CmdOpeningHours.vue +36 -10
- package/src/components/CmdPager.vue +7 -5
- package/src/components/CmdProgressBar.vue +20 -3
- package/src/components/CmdShareButtons.vue +64 -9
- package/src/components/CmdSiteHeader.vue +27 -14
- package/src/components/CmdSlideButton.vue +5 -2
- package/src/components/CmdSlideshow.vue +23 -7
- package/src/components/CmdSwitchButton.vue +10 -3
- package/src/components/CmdSwitchLanguage.vue +18 -10
- package/src/components/CmdSystemMessage.vue +30 -17
- package/src/components/CmdTable.vue +15 -7
- package/src/components/CmdTabs.vue +43 -3
- package/src/components/CmdThumbnailScroller.vue +22 -6
- package/src/components/CmdTooltip.vue +184 -11
- package/src/components/CmdUploadForm.vue +198 -92
- package/src/components/CmdWidthLimitationWrapper.vue +9 -6
- package/src/composables/event.js +8 -0
- package/src/composables/scrollspy.js +52 -0
- package/src/directives/focus.js +19 -0
- package/src/directives/telephone.js +1 -1
- package/src/documentation/commonProps.js +6 -0
- package/src/documentation/components/ComponentCode.vue +50 -0
- package/src/documentation/components/ComponentProperties.vue +237 -0
- package/src/documentation/components/ExampleSectionWrapper.vue +46 -0
- package/src/documentation/components/ViewCodeData.vue +113 -0
- package/src/documentation/data/CmdAccordionHelp.js +22 -0
- package/src/documentation/data/CmdAddressDataHelp.js +17 -0
- package/src/documentation/data/CmdBackToTopButtonHelp.js +3 -0
- package/src/documentation/data/CmdBankAccountDataHelp.js +8 -0
- package/src/documentation/data/CmdBoxHelp.js +45 -0
- package/src/documentation/data/CmdBoxSiteSearchHelp.js +11 -0
- package/src/documentation/data/CmdBreadcrumbsHelp.js +6 -0
- package/src/documentation/data/CmdCompanyLogoHelp.js +8 -0
- package/src/documentation/data/CmdCookieDisclaimerHelp.js +9 -0
- package/src/documentation/data/CmdCopyrightInformation.js +2 -0
- package/src/documentation/data/CmdCustomHeadlineHelp.js +8 -0
- package/src/documentation/data/CmdFakeSelectHelp.js +60 -0
- package/src/documentation/data/CmdFancyBoxHelp.js +7 -0
- package/src/documentation/data/CmdFooterNavigationHelp.js +5 -0
- package/src/documentation/data/CmdFormElementHelp.js +189 -0
- package/src/documentation/data/CmdFormFiltersHelp.js +6 -0
- package/src/documentation/data/CmdFormHelp.js +10 -0
- package/src/documentation/data/CmdGoogleMapsHelp.js +5 -0
- package/src/documentation/data/CmdImageGalleryHelp.js +5 -0
- package/src/documentation/data/CmdImageZoomHelp.js +6 -0
- package/src/documentation/data/CmdListOfLinksHelp.js +24 -0
- package/src/documentation/data/CmdLoginFormHelp.js +6 -0
- package/src/documentation/data/CmdMainNavigationHelp.js +7 -0
- package/src/documentation/data/CmdMultistepFormProgressBarHelp.js +6 -0
- package/src/documentation/data/CmdOpeningHoursHelp.js +10 -0
- package/src/documentation/data/CmdPagerHelp.js +7 -0
- package/src/documentation/data/CmdProgressBarHelp.js +13 -0
- package/src/documentation/data/CmdShareButtonsHelp.js +13 -0
- package/src/documentation/data/CmdSiteHeaderHelp.js +21 -0
- package/src/documentation/data/CmdSlideButtonHelp.js +10 -0
- package/src/documentation/data/CmdSlideshowHelp.js +7 -0
- package/src/documentation/data/CmdSwitchLanguageHelp.js +6 -0
- package/src/documentation/data/CmdSystemMessageHelp.js +32 -0
- package/src/documentation/data/CmdTableHelp.js +14 -0
- package/src/documentation/data/CmdTabsHelp.js +10 -0
- package/src/documentation/data/CmdThumbnailScrollerHelp.js +5 -0
- package/src/documentation/data/CmdTooltipHelp.js +13 -0
- package/src/documentation/data/CmdUploadFormHelp.js +17 -0
- package/src/documentation/data/CmdWidthLimitationWrapperHelp.js +7 -0
- package/src/documentation/data/componentsDescription.json +158 -0
- package/src/documentation/generated/CmdAccordionPropertyDescriptions.json +57 -0
- 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 +91 -0
- package/src/documentation/generated/CmdBoxSiteSearchPropertyDescriptions.json +41 -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 +22 -0
- package/src/documentation/generated/CmdCustomHeadlinePropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdFakeSelectPropertyDescriptions.json +79 -0
- package/src/documentation/generated/CmdFancyBoxPropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdFooterNavigationPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +178 -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/CmdImageGalleryPropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdImageZoomPropertyDescriptions.json +12 -0
- package/src/documentation/generated/CmdListOfLinksPropertyDescriptions.json +60 -0
- package/src/documentation/generated/CmdLoginFormPropertyDescriptions.json +90 -0
- package/src/documentation/generated/CmdMainNavigationPropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdMultipleSwitchPropertyDescriptions.json +52 -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/CmdSiteHeaderPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdSlideButtonPropertyDescriptions.json +25 -0
- package/src/documentation/generated/CmdSlideshowPropertyDescriptions.json +42 -0
- package/src/documentation/generated/CmdSwitchButtonPropertyDescriptions.json +79 -0
- package/src/documentation/generated/CmdSwitchLanguagePropertyDescriptions.json +7 -0
- package/src/documentation/generated/CmdSystemMessagePropertyDescriptions.json +40 -0
- package/src/documentation/generated/CmdTablePropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdTabsPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdThumbnailScrollerPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdTooltipPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdUploadFormPropertyDescriptions.json +90 -0
- package/src/documentation/generated/CmdWidthLimitationWrapperPropertyDescriptions.json +41 -0
- package/src/documentation/generated/frameworkIcons.json +730 -0
- package/src/documentation/generated/logosIcons.json +110 -0
- package/src/documentation/tabs.js +46 -0
- package/src/documentation/views/ContainerPage.vue +237 -0
- package/src/documentation/views/HelpHome.vue +13 -0
- package/src/documentation/views/IconFont.vue +80 -0
- package/src/documentation/views/components/CmdAccordionHelp.vue +78 -0
- package/src/documentation/views/components/CmdAddressDataHelp.vue +65 -0
- package/src/documentation/views/components/CmdBackToTopButtonHelp.vue +62 -0
- package/src/documentation/views/components/CmdBankAccountDataHelp.vue +88 -0
- package/src/documentation/views/components/CmdBoxHelp.vue +137 -0
- package/src/documentation/views/components/CmdBoxSiteSearchHelp.vue +60 -0
- package/src/documentation/views/components/CmdBoxWrapperHelp.vue +111 -0
- package/src/documentation/views/components/CmdBreadcrumbsHelp.vue +51 -0
- package/src/documentation/views/components/CmdCompanyLogoHelp.vue +48 -0
- package/src/documentation/views/components/CmdCookieDisclaimerHelp.vue +105 -0
- package/src/documentation/views/components/CmdCustomHeadlineHelp.vue +53 -0
- package/src/documentation/views/components/CmdFakeSelectHelp.vue +175 -0
- package/src/documentation/views/components/CmdFancyBoxHelp.vue +79 -0
- package/src/documentation/views/components/CmdFormElementHelp.vue +412 -0
- package/src/documentation/views/components/CmdFormFiltersHelp.vue +69 -0
- package/src/documentation/views/components/CmdFormHelp.vue +41 -0
- package/src/documentation/views/components/CmdGoogleMapsHelp.vue +55 -0
- package/src/documentation/views/components/CmdImageGalleryHelp.vue +46 -0
- package/src/documentation/views/components/CmdImageZoomHelp.vue +34 -0
- package/src/documentation/views/components/CmdListOfLinksHelp.vue +64 -0
- package/src/documentation/views/components/CmdLoginFormHelp.vue +117 -0
- package/src/documentation/views/components/CmdMainNavigationHelp.vue +94 -0
- package/src/documentation/views/components/CmdMultistepFormProgressBarHelp.vue +49 -0
- package/src/documentation/views/components/CmdOpeningHoursHelp.vue +49 -0
- package/src/documentation/views/components/CmdPagerHelp.vue +57 -0
- package/src/documentation/views/components/CmdProgressBarHelp.vue +47 -0
- package/src/documentation/views/components/CmdShareButtonsHelp.vue +65 -0
- package/src/documentation/views/components/CmdSiteHeaderHelp.vue +72 -0
- package/src/documentation/views/components/CmdSlideButtonHelp.vue +90 -0
- package/src/documentation/views/components/CmdSlideshowHelp.vue +60 -0
- package/src/documentation/views/components/CmdSwitchLanguageHelp.vue +64 -0
- package/src/documentation/views/components/CmdSystemMessageHelp.vue +86 -0
- package/src/documentation/views/components/CmdTableHelp.vue +84 -0
- package/src/documentation/views/components/CmdTabsHelp.vue +52 -0
- package/src/documentation/views/components/CmdThumbnailScrollerHelp.vue +50 -0
- package/src/documentation/views/components/CmdTooltipHelp.vue +59 -0
- package/src/documentation/views/components/CmdUploadFormHelp.vue +59 -0
- package/src/documentation/views/components/CmdWidthLimitationWrapperHelp.vue +46 -0
- package/src/index.js +7 -3
- package/src/main.js +25 -15
- package/src/mixins/CmdAddressData/DefaultMessageProperties.js +17 -0
- package/src/mixins/CmdBox/DefaultMessageProperties.js +10 -0
- package/src/mixins/CmdFakeSelect/DefaultMessageProperties.js +9 -0
- package/src/mixins/CmdFormElement/DefaultMessageProperties.js +9 -0
- package/src/mixins/CmdImageGallery/DefaultMessageProperties.js +9 -0
- package/src/mixins/CmdSiteSearch/DefaultMessageProperties.js +14 -0
- package/src/mixins/CmdUploadForm/DefaultMessageProperties.js +5 -1
- package/src/mixins/FieldValidation.js +220 -0
- package/src/mixins/GlobalDefaultMessageProperties.js +15 -0
- package/src/mixins/Tooltip.js +26 -0
- package/src/router/index.js +67 -0
- package/src/utilities.js +3 -6
- package/src/utils/common.js +6 -0
- package/src/utils/dom.js +8 -0
- package/src/utils/globalSequence.js +13 -0
- package/src/utils/string.js +8 -0
- package/src/assets/data/address.json +0 -13
- package/src/assets/data/footer-navigation.json +0 -38
- package/src/assets/data/languages.json +0 -31
- package/src/assets/data/multisteps.json +0 -27
- package/src/assets/data/navigation.json +0 -47
- package/src/assets/data/pager.json +0 -11
- package/src/assets/data/top-header-navigation.json +0 -27
- package/src/components/CmdFooterNavigation.vue +0 -71
- package/src/components/CmdMainHeadline.vue +0 -75
- package/src/components/CmdTopHeaderNavigation.vue +0 -88
@@ -7,9 +7,9 @@
|
|
7
7
|
</a>
|
8
8
|
</li>
|
9
9
|
<li v-for="(option, index) in options" :key="index">
|
10
|
-
<a href="#" @click.prevent="deleteClickedFilter(index)">
|
11
|
-
<span :class="deleteFilter.iconClass"></span>
|
10
|
+
<a href="#" @click.prevent="deleteClickedFilter(index)" :title="deleteFilter.icon.tooltip">
|
12
11
|
<span>{{ selectedOptionsName(option) }}</span>
|
12
|
+
<span :class="deleteFilter.icon.iconClass"></span>
|
13
13
|
</a>
|
14
14
|
</li>
|
15
15
|
</ul>
|
@@ -27,12 +27,14 @@ export default {
|
|
27
27
|
/**
|
28
28
|
* list of all selected options
|
29
29
|
*/
|
30
|
-
|
30
|
+
modelValue: {
|
31
31
|
type: Array,
|
32
32
|
required: true
|
33
33
|
},
|
34
34
|
/**
|
35
35
|
* delete-all-filters-link
|
36
|
+
*
|
37
|
+
* @requiredForAccessibility: partial
|
36
38
|
*/
|
37
39
|
linkDeleteAllFilters: {
|
38
40
|
type: Object,
|
@@ -41,21 +43,23 @@ export default {
|
|
41
43
|
text: "Delete all filters",
|
42
44
|
icon: {
|
43
45
|
show: true,
|
44
|
-
iconClass: "icon-
|
46
|
+
iconClass: "icon-error-circle",
|
45
47
|
tooltip: ""
|
46
48
|
}
|
47
49
|
}
|
48
50
|
}
|
49
51
|
},
|
50
52
|
/**
|
51
|
-
* icon for
|
53
|
+
* icon for deleting (a single) filter
|
54
|
+
*
|
55
|
+
* @requiredForAccessibility: partial
|
52
56
|
*/
|
53
57
|
deleteFilter: {
|
54
58
|
type: Object,
|
55
59
|
default() {
|
56
60
|
return {
|
57
61
|
icon: {
|
58
|
-
iconClass: "icon-
|
62
|
+
iconClass: "icon-error-circle",
|
59
63
|
tooltip: "Delete this filter"
|
60
64
|
}
|
61
65
|
}
|
@@ -79,13 +83,13 @@ export default {
|
|
79
83
|
this.updateSelectedOptions()
|
80
84
|
},
|
81
85
|
updateSelectedOptions() {
|
82
|
-
this.$emit("update:
|
86
|
+
this.$emit("update:modelValue", this.options)
|
83
87
|
}
|
84
88
|
},
|
85
89
|
watch: {
|
86
|
-
|
90
|
+
modelValue: {
|
87
91
|
handler() {
|
88
|
-
this.options = JSON.parse(JSON.stringify(this.
|
92
|
+
this.options = JSON.parse(JSON.stringify(this.modelValue))
|
89
93
|
},
|
90
94
|
immediate: true,
|
91
95
|
deep: true
|
@@ -101,13 +105,23 @@ export default {
|
|
101
105
|
|
102
106
|
li {
|
103
107
|
list-style-type: none;
|
104
|
-
padding: 0 .5rem;
|
105
108
|
margin-left: 0;
|
106
109
|
margin-right: var(--default-margin);
|
107
|
-
border:
|
110
|
+
border: var(--default-border);
|
108
111
|
background: var(--pure-white);
|
109
112
|
font-size: 1.1rem;
|
110
113
|
|
114
|
+
&:hover, &:active, &:focus {
|
115
|
+
border-color: var(--primary-color);
|
116
|
+
}
|
117
|
+
|
118
|
+
a {
|
119
|
+
padding: 0 calc(var(--default-padding) / 2);
|
120
|
+
display: flex;
|
121
|
+
align-items: center;
|
122
|
+
text-decoration: none;
|
123
|
+
}
|
124
|
+
|
111
125
|
&:last-of-type {
|
112
126
|
margin-right: 0;
|
113
127
|
}
|
@@ -9,16 +9,22 @@ export default {
|
|
9
9
|
name: "CmdGoogleMaps",
|
10
10
|
props: {
|
11
11
|
/**
|
12
|
-
* address to show
|
12
|
+
* address to show on Google Maps™
|
13
13
|
*/
|
14
|
-
|
14
|
+
address: {
|
15
15
|
type: Object,
|
16
16
|
required: true
|
17
17
|
}
|
18
18
|
},
|
19
19
|
computed: {
|
20
20
|
locateAddress() {
|
21
|
-
|
21
|
+
if(this.address) {
|
22
|
+
const url = new URL("https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed")
|
23
|
+
url.searchParams.set("hl", "de")
|
24
|
+
url.searchParams.set("q", [this.address.streetNo, this.address.zip, this.address.city, this.address.latitude, this.address.longitude, this.location].join(" ").trim())
|
25
|
+
return url.href
|
26
|
+
}
|
27
|
+
return "https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed"
|
22
28
|
}
|
23
29
|
}
|
24
30
|
}
|
@@ -1,10 +1,14 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="grid-container-create-columns cmd-image-gallery">
|
3
|
-
<a
|
4
|
-
|
3
|
+
<a v-for="(image, index) in images"
|
4
|
+
:key="index"
|
5
|
+
@click.prevent="showFancyBox(index)"
|
6
|
+
href="#"
|
7
|
+
:title="getMessage('cmdsitesearch.labeltext.open_large_image')">
|
5
8
|
<figure>
|
6
|
-
<
|
7
|
-
<
|
9
|
+
<figcaption v-if="image.figcaption && figcaptionPosition === 'top'">{{ image.figcaption }}</figcaption>
|
10
|
+
<img :src="image.srcImageSmall" :alt="image.alt" />
|
11
|
+
<figcaption v-if="image.figcaption && figcaptionPosition === 'bottom'">{{ image.figcaption }}</figcaption>
|
8
12
|
</figure>
|
9
13
|
</a>
|
10
14
|
</div>
|
@@ -13,13 +17,32 @@
|
|
13
17
|
<script>
|
14
18
|
import {openFancyBox} from "./CmdFancyBox"
|
15
19
|
|
20
|
+
// import mixins
|
21
|
+
import I18n from "../mixins/I18n"
|
22
|
+
import DefaultMessageProperties from "../mixins/CmdSiteSearch/DefaultMessageProperties"
|
23
|
+
|
16
24
|
export default {
|
17
25
|
name: "CmdImageGallery",
|
26
|
+
mixins: [I18n, DefaultMessageProperties],
|
18
27
|
props: {
|
19
28
|
/**
|
20
29
|
* list of images (incl. captions)
|
30
|
+
*
|
31
|
+
* @requiredForAccessibility: partial
|
32
|
+
*/
|
33
|
+
images: {
|
34
|
+
type: Array,
|
35
|
+
required: true
|
36
|
+
},
|
37
|
+
/**
|
38
|
+
* position of figcaption
|
39
|
+
*
|
40
|
+
* @allowedValues: top, bottom
|
21
41
|
*/
|
22
|
-
|
42
|
+
figcaptionPosition: {
|
43
|
+
type: String,
|
44
|
+
default: "bottom"
|
45
|
+
}
|
23
46
|
},
|
24
47
|
methods: {
|
25
48
|
showFancyBox(index) {
|
@@ -1,15 +1,23 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="grid-container-create-columns cmd-imagezoom">
|
3
3
|
<div class="grid-small-item">
|
4
|
+
<!-- begin small image -->
|
4
5
|
<a href="#" class="thumbnails-imagezoom">
|
5
|
-
<img :src="smallImageUrl"
|
6
|
+
<img :src="smallImageUrl"
|
7
|
+
alt="Small Image"
|
8
|
+
@mouseover="onMouseOver"
|
9
|
+
@mousemove="onMouseMove"
|
6
10
|
@mouseout="onMouseOut"/>
|
7
11
|
</a>
|
12
|
+
<!-- end small image -->
|
8
13
|
</div>
|
14
|
+
|
15
|
+
<!-- begin large image -->
|
9
16
|
<div v-if="showLargeImage" class="zoom-container grid-large-item">
|
10
17
|
<img :src="largeImageUrl" alt="Large Image"/>
|
11
18
|
</div>
|
12
19
|
<div v-if="showLargeImage" class="zoom-overlay"></div>
|
20
|
+
<!-- end large image -->
|
13
21
|
</div>
|
14
22
|
</template>
|
15
23
|
|
@@ -0,0 +1,169 @@
|
|
1
|
+
<template>
|
2
|
+
<div :class="['cmd-list-of-links', 'align-' + align, {box: styleAsBox, horizontal: orientation === 'horizontal', 'section-anchors': sectionAnchors}]">
|
3
|
+
<!-- begin CmdCustomHeadline -->
|
4
|
+
<CmdCustomHeadline v-if="cmdCustomHeadline"
|
5
|
+
v-bind="cmdCustomHeadline" />
|
6
|
+
<!-- end CmdCustomHeadline -->
|
7
|
+
|
8
|
+
<!-- begin list of links -->
|
9
|
+
<ul :class="['flex-container', {'no-gap': !useGap}]">
|
10
|
+
<li v-for="(link, index) in links" :key="index" :class="{'active': sectionAnchors && activeSection === index}">
|
11
|
+
<!-- begin use href -->
|
12
|
+
<a v-if="link.type === 'href' || link.type === undefined"
|
13
|
+
:href="link.path"
|
14
|
+
:target="link.target"
|
15
|
+
@click="executeLink(link, $event)"
|
16
|
+
:title="link.tooltip && link.tooltip !== undefined ? link.tooltip : undefined">
|
17
|
+
<span v-if="link.iconClass" :class="link.iconClass"></span>
|
18
|
+
<span v-if="link.text">{{ link.text }}</span>
|
19
|
+
</a>
|
20
|
+
<!-- end use href --->
|
21
|
+
|
22
|
+
<!-- begin use router-link -->
|
23
|
+
<router-link v-else-if="link.type === 'router'"
|
24
|
+
:to="getRoute(link)"
|
25
|
+
:title="link.tooltip">
|
26
|
+
<span v-if="link.iconClass" :class="link.iconClass"></span>
|
27
|
+
<span v-if="link.text">{{ link.text }}</span>
|
28
|
+
</router-link>
|
29
|
+
<!-- end use router-link -->
|
30
|
+
</li>
|
31
|
+
</ul>
|
32
|
+
<!-- end list of links -->
|
33
|
+
</div>
|
34
|
+
</template>
|
35
|
+
|
36
|
+
<script>
|
37
|
+
// import functions
|
38
|
+
import {getRoute} from "../utilities.js"
|
39
|
+
import {openFancyBox} from "./CmdFancyBox.vue"
|
40
|
+
|
41
|
+
// import components
|
42
|
+
import CmdCustomHeadline from "./CmdCustomHeadline"
|
43
|
+
|
44
|
+
export default {
|
45
|
+
name: "CmdListOfLinks",
|
46
|
+
components: {
|
47
|
+
CmdCustomHeadline
|
48
|
+
},
|
49
|
+
props: {
|
50
|
+
/**
|
51
|
+
* activate if component should contain a list of anchors for the section within th page
|
52
|
+
*/
|
53
|
+
sectionAnchors: {
|
54
|
+
type: Boolean,
|
55
|
+
default: false
|
56
|
+
},
|
57
|
+
/**
|
58
|
+
* given active section from outside to set class for styling
|
59
|
+
*
|
60
|
+
* sectionAnchors-property must be activated
|
61
|
+
*/
|
62
|
+
activeSection: {
|
63
|
+
type: Number,
|
64
|
+
default: 0
|
65
|
+
},
|
66
|
+
/**
|
67
|
+
* set horizontal alignment
|
68
|
+
*
|
69
|
+
* orientation-property must be set to 'horizontal'
|
70
|
+
*
|
71
|
+
* @allowedValues: left, center, right
|
72
|
+
*/
|
73
|
+
align: {
|
74
|
+
type: String,
|
75
|
+
default: "left"
|
76
|
+
},
|
77
|
+
/**
|
78
|
+
* properties for cmdCustomHeadline-component
|
79
|
+
*/
|
80
|
+
cmdCustomHeadline: {
|
81
|
+
type: Object,
|
82
|
+
required: false
|
83
|
+
},
|
84
|
+
/**
|
85
|
+
* list of displayed links
|
86
|
+
*/
|
87
|
+
links: {
|
88
|
+
type: Array,
|
89
|
+
required: false
|
90
|
+
},
|
91
|
+
/**
|
92
|
+
* toggle orientation of list
|
93
|
+
*
|
94
|
+
* @allowedValues: horizontal, vertical
|
95
|
+
*/
|
96
|
+
orientation: {
|
97
|
+
type: String,
|
98
|
+
default: "vertical"
|
99
|
+
},
|
100
|
+
/**
|
101
|
+
* toggle gab between links
|
102
|
+
*/
|
103
|
+
useGap: {
|
104
|
+
type: Boolean,
|
105
|
+
default: true
|
106
|
+
},
|
107
|
+
/**
|
108
|
+
* style component like a box
|
109
|
+
*
|
110
|
+
* @affectsStyling: true
|
111
|
+
*/
|
112
|
+
styleAsBox: {
|
113
|
+
type: Boolean,
|
114
|
+
default: false
|
115
|
+
}
|
116
|
+
},
|
117
|
+
methods: {
|
118
|
+
getRoute(link) {
|
119
|
+
return getRoute(link)
|
120
|
+
},
|
121
|
+
executeLink(link, event) {
|
122
|
+
if (link.fancybox) {
|
123
|
+
event.preventDefault()
|
124
|
+
openFancyBox({url: link.path})
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
</script>
|
130
|
+
|
131
|
+
<style lang="scss">
|
132
|
+
/* begin cmd-list-of-links ---------------------------------------------------------------------------------------- */
|
133
|
+
.cmd-list-of-links {
|
134
|
+
display: flex;
|
135
|
+
flex-direction: column;
|
136
|
+
|
137
|
+
ul {
|
138
|
+
flex-direction: column;
|
139
|
+
gap: calc(var(--default-gap) / 2);
|
140
|
+
|
141
|
+
li {
|
142
|
+
list-style: none;
|
143
|
+
margin-left: 0;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
&.horizontal {
|
148
|
+
ul {
|
149
|
+
flex-direction: row;
|
150
|
+
gap: var(--default-gap);
|
151
|
+
|
152
|
+
> li {
|
153
|
+
flex: none;
|
154
|
+
display: flex;
|
155
|
+
align-items: center;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
&.align-center {
|
160
|
+
align-items: center;
|
161
|
+
}
|
162
|
+
|
163
|
+
&.align-right {
|
164
|
+
align-items: flex-end;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
/* end cmd-list-of-links------------------------------------------------------------------------------------------ */
|
169
|
+
</style>
|