comand-component-library 3.1.45 → 3.1.46
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 +25 -12
- 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 +6 -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
@@ -0,0 +1,42 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"iconClass": "icon-user-profile",
|
4
|
+
"type": "href",
|
5
|
+
"text": "",
|
6
|
+
"path": "#",
|
7
|
+
"target": "",
|
8
|
+
"tooltip": "Link without text, but tooltip"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"type": "href",
|
12
|
+
"text": "Internal link",
|
13
|
+
"path": "/content/fancybox-content.html",
|
14
|
+
"tooltip": "Open local file in fancybox",
|
15
|
+
"fancybox": true
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"iconClass": "icon-export",
|
19
|
+
"type": "href",
|
20
|
+
"text": "External link",
|
21
|
+
"path": "http://www.comand-cms.com",
|
22
|
+
"target": "_blank",
|
23
|
+
"tooltip": "Open CoManD-Website in new tab"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"type":"router",
|
27
|
+
"text": "Router-link with path",
|
28
|
+
"path": "/"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"type":"router",
|
32
|
+
"text": "Router-link with name",
|
33
|
+
"tooltip": "Go to homepage",
|
34
|
+
"route": {
|
35
|
+
"name": "home",
|
36
|
+
"params": {
|
37
|
+
"param1": "value",
|
38
|
+
"param2": "value"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
]
|
@@ -0,0 +1,48 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"type": "href",
|
4
|
+
"text": "Entry 1",
|
5
|
+
"path": "#",
|
6
|
+
"subentries": []
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"type": "href",
|
10
|
+
"text": "Entry 2",
|
11
|
+
"path": "",
|
12
|
+
"subentries": [
|
13
|
+
{
|
14
|
+
"type": "href",
|
15
|
+
"text": "Entry 2.1",
|
16
|
+
"path": "",
|
17
|
+
"subentries": [
|
18
|
+
{
|
19
|
+
"type": "href",
|
20
|
+
"text": "Entry 2.1.1",
|
21
|
+
"path": "#"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"type": "href",
|
25
|
+
"text": "Entry 2.1.2",
|
26
|
+
"path": "#"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"type": "href",
|
30
|
+
"text": "Entry 2.1.3",
|
31
|
+
"path": "#"
|
32
|
+
}
|
33
|
+
]
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"type": "href",
|
37
|
+
"text": "Entry 2.2",
|
38
|
+
"path": "#"
|
39
|
+
}
|
40
|
+
]
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"type": "href",
|
44
|
+
"text": "CoManD-CMS",
|
45
|
+
"path": "http://www.comand-cms.com",
|
46
|
+
"target": "comand-website"
|
47
|
+
}
|
48
|
+
]
|
@@ -0,0 +1,33 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"type": "href",
|
4
|
+
"path": "",
|
5
|
+
"text": "Contact",
|
6
|
+
"tooltip": "This is a tooltip for step 1",
|
7
|
+
"iconClass": "icon-address"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"type": "href",
|
11
|
+
"path": "",
|
12
|
+
"text": "Settings",
|
13
|
+
"iconClass": "icon-configuration"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"type": "href",
|
17
|
+
"path": "",
|
18
|
+
"text": "Attachments",
|
19
|
+
"iconClass": "icon-attachment"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"type": "href",
|
23
|
+
"path": "",
|
24
|
+
"text": "Terms and Conditions",
|
25
|
+
"iconClass": "icon-section-sign"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"type": "href",
|
29
|
+
"path": "",
|
30
|
+
"text": "Summary",
|
31
|
+
"iconClass": "icon-rows"
|
32
|
+
}
|
33
|
+
]
|
@@ -2,29 +2,29 @@
|
|
2
2
|
{
|
3
3
|
"id": "share-link-facebook",
|
4
4
|
"path": "https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdevelopment.comand-cms.com%2Fmodule%2Fteam.html",
|
5
|
-
"tooltip": "
|
5
|
+
"tooltip": "Share this page on facebook",
|
6
6
|
"iconClass": "icon-facebook",
|
7
|
-
"
|
7
|
+
"linkText": "Share"
|
8
8
|
},
|
9
9
|
{
|
10
10
|
"id": "share-link-twitter",
|
11
11
|
"path": "https://twitter.com/home?status=http%3A%2F%2Fdevelopment.comand-cms.com%2Fmodule%2Fteam.html",
|
12
|
-
"tooltip": "
|
12
|
+
"tooltip": "Share this page on twitter",
|
13
13
|
"iconClass": "icon-twitter",
|
14
|
-
"
|
14
|
+
"linkText": "Share"
|
15
15
|
},
|
16
16
|
{
|
17
17
|
"id": "share-link-xing",
|
18
18
|
"path": "https://www.xing.com/spi/shares/new?sc_p=b7910_cb&url=http%3A%2F%2Fdevelopment.comand-cms.com%2Fmodule%2Fteam.html",
|
19
|
-
"tooltip": "
|
19
|
+
"tooltip": "Share this page on xing",
|
20
20
|
"iconClass": "icon-xing",
|
21
|
-
"
|
21
|
+
"linkText": "Share"
|
22
22
|
},
|
23
23
|
{
|
24
24
|
"id": "share-link-linkedin",
|
25
25
|
"path": "https://www.linkedin.com/cws/share?url=http%3A%2F%2Fdevelopment.comand-cms.com%2Fmodule%2Fteam.html",
|
26
|
-
"tooltip": "
|
26
|
+
"tooltip": "Share this page on linkedin",
|
27
27
|
"iconClass": "icon-linkedin",
|
28
|
-
"
|
28
|
+
"linkText": "Share"
|
29
29
|
}
|
30
30
|
]
|
@@ -0,0 +1,30 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "share-link-facebook",
|
4
|
+
"path": "https://www.facebook.com/sharer/sharer.php?u=",
|
5
|
+
"tooltip": "Share this page on facebook",
|
6
|
+
"iconClass": "icon-facebook",
|
7
|
+
"linkText": "Share"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"id": "share-link-twitter",
|
11
|
+
"path": "https://twitter.com/home?status=",
|
12
|
+
"tooltip": "Share this page on twitter",
|
13
|
+
"iconClass": "icon-twitter",
|
14
|
+
"linkText": "Share"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"id": "share-link-xing",
|
18
|
+
"path": "https://www.xing.com/spi/shares/new?sc_p=b7910_cb&url=",
|
19
|
+
"tooltip": "Share this page on xing",
|
20
|
+
"iconClass": "icon-xing",
|
21
|
+
"linkText": "Share"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"id": "share-link-linkedin",
|
25
|
+
"path": "https://www.linkedin.com/cws/share?url=",
|
26
|
+
"tooltip": "Share this page on linkedin",
|
27
|
+
"iconClass": "icon-linkedin",
|
28
|
+
"linkText": "Share"
|
29
|
+
}
|
30
|
+
]
|
@@ -0,0 +1,20 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"iso2": "de",
|
4
|
+
"name": "Deutsch",
|
5
|
+
"tooltip": "Sprache zu deutsch wechseln",
|
6
|
+
"link": {
|
7
|
+
"type": "href",
|
8
|
+
"path": "/"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"iso2": "en",
|
13
|
+
"name": "English",
|
14
|
+
"tooltip": "Switch language to English",
|
15
|
+
"link": {
|
16
|
+
"type": "href",
|
17
|
+
"path": "/"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
]
|
@@ -36,19 +36,6 @@ body.avoid-scrolling {
|
|
36
36
|
}
|
37
37
|
/* end .avoid-scrolling --------------------------------------------------------------------------------------------------------------------------------------------------- */
|
38
38
|
|
39
|
-
/* begin error-styles for form-elements --------------------------------------------------------------------------------------------------------------------------------------------------- */
|
40
|
-
label, .label {
|
41
|
-
&.error {
|
42
|
-
color: var(--error-color);
|
43
|
-
|
44
|
-
& + .cmd-tooltip {
|
45
|
-
border-color: var(--error-color);
|
46
|
-
color: var(--error-color);
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
/* end error-styles for form-elements --------------------------------------------------------------------------------------------------------------------------------------------------- */
|
51
|
-
|
52
39
|
/* begin flags --------------------------------------------------------------------------------------------------------------------------------------------------- */
|
53
40
|
.flag {
|
54
41
|
width: 3rem;
|
@@ -179,6 +166,49 @@ label, .label {
|
|
179
166
|
}
|
180
167
|
}
|
181
168
|
/* end product-listing --------------------------------------------------------------------------------------------------------------------------------------------------- */
|
169
|
+
.cmd-form-element, .cmd-fake-select {
|
170
|
+
& + .cmd-tooltip {
|
171
|
+
border-color: var(--status-color);
|
172
|
+
|
173
|
+
h6:last-of-type {
|
174
|
+
margin-top: 0;
|
175
|
+
}
|
176
|
+
|
177
|
+
.list-of-requirements {
|
178
|
+
.error {
|
179
|
+
color: var(--error-color);
|
180
|
+
}
|
181
|
+
|
182
|
+
.warning {
|
183
|
+
color: var(--warning-color);
|
184
|
+
}
|
185
|
+
|
186
|
+
.success {
|
187
|
+
color: var(--success-color);
|
188
|
+
}
|
189
|
+
|
190
|
+
.info {
|
191
|
+
color: var(--info-color);
|
192
|
+
}
|
193
|
+
|
194
|
+
span[class*="icon"] {
|
195
|
+
font-size: 1.2rem;
|
196
|
+
}
|
197
|
+
|
198
|
+
& ~ a {
|
199
|
+
display: flex;
|
200
|
+
align-items: center;
|
201
|
+
justify-content: center;
|
202
|
+
text-align: center;
|
203
|
+
text-decoration: none;
|
204
|
+
|
205
|
+
span[class*="icon"] {
|
206
|
+
font-size: 1.2rem;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
182
212
|
/* ---------------------------------------------- END COMPONENTS AND GLOBAL STYLES -------------------------------------------------- */
|
183
213
|
|
184
214
|
/* ---------------------------------------------- BEGIN MEDIA QUERIES AND BROWSER SPECIFIC STYLES -------------------------------------------------- */
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* begin fade-transition */
|
1
2
|
.fade-enter-active, .fade-leave-active {
|
2
3
|
transition: var(--default-transition);
|
3
4
|
}
|
@@ -9,6 +10,7 @@
|
|
9
10
|
.fade-enter-to, .fade-leave-from {
|
10
11
|
opacity: 1;
|
11
12
|
}
|
13
|
+
/* end fade-transition */
|
12
14
|
|
13
15
|
.cmd-slideshow {
|
14
16
|
.fade-enter-from, .fade-leave-to {
|
@@ -16,6 +18,24 @@
|
|
16
18
|
}
|
17
19
|
}
|
18
20
|
|
19
|
-
|
21
|
+
/* begin slide-transition */
|
22
|
+
[class^="slide-"][class$="-enter-active"], [class^="slide-"][class$="-enter-active"] {
|
20
23
|
transition: transform 1s ease-in-out;
|
21
24
|
}
|
25
|
+
|
26
|
+
.slide-left-enter-from, .slide-left-leave-to {
|
27
|
+
left: -100%;
|
28
|
+
}
|
29
|
+
|
30
|
+
.slide-left-enter-to, .slide-left-leave-from {
|
31
|
+
left: 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
.slide-right-enter-from, .slide-right-leave-to {
|
35
|
+
right: -100%;
|
36
|
+
}
|
37
|
+
|
38
|
+
.slide-right-enter-to, .slide-right-leave-from {
|
39
|
+
right: 0;
|
40
|
+
}
|
41
|
+
/* end slide-transition */
|
@@ -1,19 +1,22 @@
|
|
1
1
|
<template>
|
2
2
|
<div :class="['cmd-accordion flex-container vertical', {'no-gap' : !gapBetween, 'active' : active}]">
|
3
3
|
<div v-for="(accordionContent, index) in accordion" :key="index">
|
4
|
-
<a v-if="!useCustomHeader" href="#" :title="accordionContent.status ? iconOpen.
|
4
|
+
<a v-if="!useCustomHeader" href="#" :title="accordionContent.status ? iconOpen.tooltip : iconClosed.tooltip" @click.prevent="toggleContentVisibility(accordionContent)">
|
5
|
+
<!-- begin slot for headline -->
|
5
6
|
<slot :name="'accordionHeadline' + index">
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
<!-- begin CmdCustomHeadline -->
|
8
|
+
<CmdCustomHeadline
|
9
|
+
v-if="accordionContent.headlineText && accordionContent.headlineLevel"
|
10
|
+
:headlineText="accordionContent.headlineText"
|
11
|
+
:headlineLevel="accordionContent.headlineLevel"
|
12
|
+
:iconClass="accordionContent.iconClass"
|
13
|
+
/>
|
14
|
+
<!-- end CmdCustomHeadline -->
|
10
15
|
</slot>
|
11
|
-
|
12
|
-
|
13
|
-
<a v-else href="#" :title="tooltip" @click.prevent="toggleContentVisibility(accordionContent)">
|
14
|
-
<slot :name="'customHeadline' + index"><p>{{ accordionContent.headline }}</p></slot>
|
15
|
-
<span class="toggle-icon" :class="[accordionContent.status ? iconOpen.icon.iconClass : iconClosed.icon.iconClass]"></span>
|
16
|
+
<!-- end slot for headline -->
|
17
|
+
<span class="toggle-icon" :class="[accordionContent.status ? iconOpen.iconClass : iconClosed.iconClass]"></span>
|
16
18
|
</a>
|
19
|
+
<!-- begin accordion-content -->
|
17
20
|
<transition :name="toggleTransition">
|
18
21
|
<div class="accordion-content" v-if="accordionContent.status" aria-expanded="true">
|
19
22
|
<slot :name="'accordionContent' + index">
|
@@ -21,13 +24,20 @@
|
|
21
24
|
</slot>
|
22
25
|
</div>
|
23
26
|
</transition>
|
27
|
+
<!-- end accordion-content -->
|
24
28
|
</div>
|
25
29
|
</div>
|
26
30
|
</template>
|
27
31
|
|
28
32
|
<script>
|
33
|
+
// import components
|
34
|
+
import CmdCustomHeadline from "./CmdCustomHeadline"
|
35
|
+
|
29
36
|
export default {
|
30
37
|
name: "CmdAccordion",
|
38
|
+
components: {
|
39
|
+
CmdCustomHeadline
|
40
|
+
},
|
31
41
|
data() {
|
32
42
|
return {
|
33
43
|
accordion: [],
|
@@ -35,6 +45,13 @@ export default {
|
|
35
45
|
}
|
36
46
|
},
|
37
47
|
props: {
|
48
|
+
/**
|
49
|
+
* properties for CmdCustomHeadline-component
|
50
|
+
*/
|
51
|
+
cmdCustomHeadline: {
|
52
|
+
type: Object,
|
53
|
+
required: false
|
54
|
+
},
|
38
55
|
/**
|
39
56
|
* use transition to expand accordion-content
|
40
57
|
*/
|
@@ -45,7 +62,7 @@ export default {
|
|
45
62
|
/**
|
46
63
|
* toggle if mode if only one accordion can be opened (or multiple ones)
|
47
64
|
*
|
48
|
-
*
|
65
|
+
* @allowedValues: single, multiple
|
49
66
|
*/
|
50
67
|
toggleMode: {
|
51
68
|
type: String,
|
@@ -59,29 +76,12 @@ export default {
|
|
59
76
|
default: false
|
60
77
|
},
|
61
78
|
/**
|
62
|
-
* set if a gap
|
79
|
+
* set if a gap should be shown between multiple accordions
|
63
80
|
*/
|
64
81
|
gapBetween: {
|
65
82
|
type: Boolean,
|
66
83
|
default: true
|
67
84
|
},
|
68
|
-
/**
|
69
|
-
* headline for accordion-box that is also visible is accordion is collapsed
|
70
|
-
*/
|
71
|
-
accordionHeadlineLevel: {
|
72
|
-
type: String,
|
73
|
-
default: "h3",
|
74
|
-
validator(value) {
|
75
|
-
const allowedTags = ["h2", "h3", "h4", "h5", "h6"]
|
76
|
-
|
77
|
-
// check if allowedTags includes given value for this property (if not output warning in console)
|
78
|
-
if (!allowedTags.includes(value)) {
|
79
|
-
console.warn("Not allowed tag (" + value + ") used for accordionHeadline-property! Allowed tags are: " + allowedTags)
|
80
|
-
return false
|
81
|
-
}
|
82
|
-
return true
|
83
|
-
}
|
84
|
-
},
|
85
85
|
/**
|
86
86
|
* all information about the contents in all shown accordions
|
87
87
|
*/
|
@@ -91,36 +91,39 @@ export default {
|
|
91
91
|
},
|
92
92
|
/**
|
93
93
|
* icon to expand an accordion
|
94
|
+
*
|
95
|
+
* @requiredForAccessibility: partial
|
94
96
|
*/
|
95
97
|
iconOpen: {
|
96
98
|
type: Object,
|
97
99
|
default: function() {
|
98
100
|
return {
|
99
|
-
|
100
|
-
|
101
|
-
tooltip: "Close content"
|
102
|
-
}
|
101
|
+
iconClass: "icon-single-arrow-up",
|
102
|
+
tooltip: "Close content"
|
103
103
|
}
|
104
104
|
},
|
105
105
|
},
|
106
106
|
/**
|
107
107
|
* icon to collapse an accordion
|
108
|
+
*
|
109
|
+
* @requiredForAccessibility: partial
|
108
110
|
*/
|
109
111
|
iconClosed: {
|
110
112
|
type: Object,
|
111
113
|
default: function() {
|
112
114
|
return {
|
113
|
-
|
114
|
-
|
115
|
-
tooltip: "Show content"
|
116
|
-
}
|
115
|
+
iconClass: "icon-single-arrow-down",
|
116
|
+
tooltip: "Show content"
|
117
117
|
}
|
118
118
|
}
|
119
119
|
}
|
120
120
|
},
|
121
121
|
computed: {
|
122
122
|
toggleTransition() {
|
123
|
-
|
123
|
+
if(this.useTransition) {
|
124
|
+
return "fade"
|
125
|
+
}
|
126
|
+
return ""
|
124
127
|
}
|
125
128
|
},
|
126
129
|
methods: {
|
@@ -175,8 +178,6 @@ export default {
|
|
175
178
|
<style lang="scss">
|
176
179
|
/* begin cmd-accordion ---------------------------------------------------------------------------------------- */
|
177
180
|
.cmd-accordion {
|
178
|
-
margin-bottom: var(--default-margin);
|
179
|
-
|
180
181
|
> div {
|
181
182
|
> a, > div:first-child {
|
182
183
|
display: flex;
|
@@ -196,7 +197,7 @@ export default {
|
|
196
197
|
border-color: var(--primary-color);
|
197
198
|
}
|
198
199
|
|
199
|
-
|
200
|
+
* {
|
200
201
|
color: var(--pure-white);
|
201
202
|
}
|
202
203
|
}
|
@@ -205,7 +206,7 @@ export default {
|
|
205
206
|
margin: 0;
|
206
207
|
}
|
207
208
|
|
208
|
-
> h2, > h3, > h4, > h5, > h6 {
|
209
|
+
> h2, > h3, > h4, > h5, > h6, .cmd-custom-headline {
|
209
210
|
margin-bottom: 0;
|
210
211
|
display: flex;
|
211
212
|
align-items: center;
|