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.
Files changed (233) hide show
  1. package/dist/comand-component-library.css +1 -1
  2. package/dist/comand-component-library.umd.min.js +1 -1
  3. package/package.json +47 -41
  4. package/src/App.vue +373 -135
  5. package/src/ComponentDocumentation.vue +156 -0
  6. package/src/ComponentLibraryHelp.vue +20 -0
  7. package/src/assets/data/accordion.json +21 -24
  8. package/src/assets/data/address-data.json +34 -0
  9. package/src/assets/data/bank-account-data.json +22 -0
  10. package/src/assets/data/box-product.json +14 -4
  11. package/src/assets/data/box-user.json +48 -22
  12. package/src/assets/data/breadcrumbs.json +11 -3
  13. package/src/assets/data/cookie-disclaimer.json +4 -4
  14. package/src/assets/data/fake-select-colors.json +4 -0
  15. package/src/assets/data/fake-select-filter-options.json +14 -0
  16. package/src/assets/data/fake-select-options-with-icons.json +6 -12
  17. package/src/assets/data/fake-select-options.json +3 -3
  18. package/src/assets/data/list-of-links-section-anchors.json +23 -0
  19. package/src/assets/data/list-of-links-top-header-navigation.json +20 -0
  20. package/src/assets/data/list-of-links.json +42 -0
  21. package/src/assets/data/main-navigation.json +48 -0
  22. package/src/assets/data/multistep-form-progress-bar.json +33 -0
  23. package/src/assets/data/select-options.json +4 -0
  24. package/src/assets/data/{share-buttons.json → share-buttons-page-by-json.json} +8 -8
  25. package/src/assets/data/share-buttons-page-by-property.json +30 -0
  26. package/src/assets/data/switch-language.json +20 -0
  27. package/src/assets/data/table-large.json +1 -1
  28. package/src/assets/data/table-small.json +1 -1
  29. package/src/assets/styles/global-styles.scss +43 -13
  30. package/src/assets/styles/transitions.scss +21 -1
  31. package/src/components/CmdAccordion.vue +43 -42
  32. package/src/components/CmdAddressData.vue +124 -56
  33. package/src/components/CmdBackToTopButton.vue +3 -3
  34. package/src/components/CmdBankAccountData.vue +104 -0
  35. package/src/components/CmdBox.vue +253 -56
  36. package/src/components/CmdBoxSiteSearch.vue +138 -39
  37. package/src/components/CmdBoxWrapper.vue +206 -0
  38. package/src/components/CmdBreadcrumbs.vue +29 -13
  39. package/src/components/CmdCompanyLogo.vue +6 -4
  40. package/src/components/CmdCookieDisclaimer.vue +99 -75
  41. package/src/components/CmdCopyrightInformation.vue +1 -1
  42. package/src/components/CmdCustomHeadline.vue +93 -0
  43. package/src/components/CmdFakeSelect.vue +285 -60
  44. package/src/components/CmdFancyBox.vue +47 -33
  45. package/src/components/CmdForm.vue +107 -0
  46. package/src/components/CmdFormElement.vue +515 -81
  47. package/src/components/CmdFormFilters.vue +25 -11
  48. package/src/components/CmdGoogleMaps.vue +9 -3
  49. package/src/components/CmdImageGallery.vue +28 -5
  50. package/src/components/CmdImageZoom.vue +9 -1
  51. package/src/components/CmdListOfLinks.vue +169 -0
  52. package/src/components/CmdLoginForm.vue +143 -63
  53. package/src/components/CmdMainNavigation.vue +140 -42
  54. package/src/components/CmdMultipleSwitch.vue +33 -2
  55. package/src/components/CmdMultistepFormProgressBar.vue +60 -10
  56. package/src/components/CmdOpeningHours.vue +36 -10
  57. package/src/components/CmdPager.vue +7 -5
  58. package/src/components/CmdProgressBar.vue +20 -3
  59. package/src/components/CmdShareButtons.vue +64 -9
  60. package/src/components/CmdSiteHeader.vue +27 -14
  61. package/src/components/CmdSlideButton.vue +5 -2
  62. package/src/components/CmdSlideshow.vue +23 -7
  63. package/src/components/CmdSwitchButton.vue +10 -3
  64. package/src/components/CmdSwitchLanguage.vue +18 -10
  65. package/src/components/CmdSystemMessage.vue +30 -17
  66. package/src/components/CmdTable.vue +15 -7
  67. package/src/components/CmdTabs.vue +43 -3
  68. package/src/components/CmdThumbnailScroller.vue +22 -6
  69. package/src/components/CmdTooltip.vue +184 -11
  70. package/src/components/CmdUploadForm.vue +198 -92
  71. package/src/components/CmdWidthLimitationWrapper.vue +9 -6
  72. package/src/composables/event.js +8 -0
  73. package/src/composables/scrollspy.js +52 -0
  74. package/src/directives/focus.js +19 -0
  75. package/src/directives/telephone.js +1 -1
  76. package/src/documentation/commonProps.js +6 -0
  77. package/src/documentation/components/ComponentCode.vue +50 -0
  78. package/src/documentation/components/ComponentProperties.vue +237 -0
  79. package/src/documentation/components/ExampleSectionWrapper.vue +46 -0
  80. package/src/documentation/components/ViewCodeData.vue +113 -0
  81. package/src/documentation/data/CmdAccordionHelp.js +22 -0
  82. package/src/documentation/data/CmdAddressDataHelp.js +17 -0
  83. package/src/documentation/data/CmdBackToTopButtonHelp.js +3 -0
  84. package/src/documentation/data/CmdBankAccountDataHelp.js +8 -0
  85. package/src/documentation/data/CmdBoxHelp.js +45 -0
  86. package/src/documentation/data/CmdBoxSiteSearchHelp.js +11 -0
  87. package/src/documentation/data/CmdBreadcrumbsHelp.js +6 -0
  88. package/src/documentation/data/CmdCompanyLogoHelp.js +8 -0
  89. package/src/documentation/data/CmdCookieDisclaimerHelp.js +9 -0
  90. package/src/documentation/data/CmdCopyrightInformation.js +2 -0
  91. package/src/documentation/data/CmdCustomHeadlineHelp.js +8 -0
  92. package/src/documentation/data/CmdFakeSelectHelp.js +60 -0
  93. package/src/documentation/data/CmdFancyBoxHelp.js +7 -0
  94. package/src/documentation/data/CmdFooterNavigationHelp.js +5 -0
  95. package/src/documentation/data/CmdFormElementHelp.js +189 -0
  96. package/src/documentation/data/CmdFormFiltersHelp.js +6 -0
  97. package/src/documentation/data/CmdFormHelp.js +10 -0
  98. package/src/documentation/data/CmdGoogleMapsHelp.js +5 -0
  99. package/src/documentation/data/CmdImageGalleryHelp.js +5 -0
  100. package/src/documentation/data/CmdImageZoomHelp.js +6 -0
  101. package/src/documentation/data/CmdListOfLinksHelp.js +24 -0
  102. package/src/documentation/data/CmdLoginFormHelp.js +6 -0
  103. package/src/documentation/data/CmdMainNavigationHelp.js +7 -0
  104. package/src/documentation/data/CmdMultistepFormProgressBarHelp.js +6 -0
  105. package/src/documentation/data/CmdOpeningHoursHelp.js +10 -0
  106. package/src/documentation/data/CmdPagerHelp.js +7 -0
  107. package/src/documentation/data/CmdProgressBarHelp.js +13 -0
  108. package/src/documentation/data/CmdShareButtonsHelp.js +13 -0
  109. package/src/documentation/data/CmdSiteHeaderHelp.js +21 -0
  110. package/src/documentation/data/CmdSlideButtonHelp.js +10 -0
  111. package/src/documentation/data/CmdSlideshowHelp.js +7 -0
  112. package/src/documentation/data/CmdSwitchLanguageHelp.js +6 -0
  113. package/src/documentation/data/CmdSystemMessageHelp.js +32 -0
  114. package/src/documentation/data/CmdTableHelp.js +14 -0
  115. package/src/documentation/data/CmdTabsHelp.js +10 -0
  116. package/src/documentation/data/CmdThumbnailScrollerHelp.js +5 -0
  117. package/src/documentation/data/CmdTooltipHelp.js +13 -0
  118. package/src/documentation/data/CmdUploadFormHelp.js +17 -0
  119. package/src/documentation/data/CmdWidthLimitationWrapperHelp.js +7 -0
  120. package/src/documentation/data/componentsDescription.json +158 -0
  121. package/src/documentation/generated/CmdAccordionPropertyDescriptions.json +57 -0
  122. package/src/documentation/generated/CmdAddressDataPropertyDescriptions.json +32 -0
  123. package/src/documentation/generated/CmdBackToTopButtonPropertyDescriptions.json +12 -0
  124. package/src/documentation/generated/CmdBankAccountDataPropertyDescriptions.json +34 -0
  125. package/src/documentation/generated/CmdBoxPropertyDescriptions.json +91 -0
  126. package/src/documentation/generated/CmdBoxSiteSearchPropertyDescriptions.json +41 -0
  127. package/src/documentation/generated/CmdBoxWrapperPropertyDescriptions.json +47 -0
  128. package/src/documentation/generated/CmdBreadcrumbsPropertyDescriptions.json +17 -0
  129. package/src/documentation/generated/CmdCompanyLogoPropertyDescriptions.json +27 -0
  130. package/src/documentation/generated/CmdCookieDisclaimerPropertyDescriptions.json +22 -0
  131. package/src/documentation/generated/CmdCustomHeadlinePropertyDescriptions.json +22 -0
  132. package/src/documentation/generated/CmdFakeSelectPropertyDescriptions.json +79 -0
  133. package/src/documentation/generated/CmdFancyBoxPropertyDescriptions.json +62 -0
  134. package/src/documentation/generated/CmdFooterNavigationPropertyDescriptions.json +17 -0
  135. package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +178 -0
  136. package/src/documentation/generated/CmdFormFiltersPropertyDescriptions.json +32 -0
  137. package/src/documentation/generated/CmdFormPropertyDescriptions.json +40 -0
  138. package/src/documentation/generated/CmdGoogleMapsPropertyDescriptions.json +7 -0
  139. package/src/documentation/generated/CmdImageGalleryPropertyDescriptions.json +22 -0
  140. package/src/documentation/generated/CmdImageZoomPropertyDescriptions.json +12 -0
  141. package/src/documentation/generated/CmdListOfLinksPropertyDescriptions.json +60 -0
  142. package/src/documentation/generated/CmdLoginFormPropertyDescriptions.json +90 -0
  143. package/src/documentation/generated/CmdMainNavigationPropertyDescriptions.json +62 -0
  144. package/src/documentation/generated/CmdMultipleSwitchPropertyDescriptions.json +52 -0
  145. package/src/documentation/generated/CmdMultistepFormProgressBarPropertyDescriptions.json +17 -0
  146. package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +42 -0
  147. package/src/documentation/generated/CmdPagerPropertyDescriptions.json +37 -0
  148. package/src/documentation/generated/CmdProgressBarPropertyDescriptions.json +32 -0
  149. package/src/documentation/generated/CmdShareButtonsPropertyDescriptions.json +34 -0
  150. package/src/documentation/generated/CmdSiteHeaderPropertyDescriptions.json +27 -0
  151. package/src/documentation/generated/CmdSlideButtonPropertyDescriptions.json +25 -0
  152. package/src/documentation/generated/CmdSlideshowPropertyDescriptions.json +42 -0
  153. package/src/documentation/generated/CmdSwitchButtonPropertyDescriptions.json +79 -0
  154. package/src/documentation/generated/CmdSwitchLanguagePropertyDescriptions.json +7 -0
  155. package/src/documentation/generated/CmdSystemMessagePropertyDescriptions.json +40 -0
  156. package/src/documentation/generated/CmdTablePropertyDescriptions.json +62 -0
  157. package/src/documentation/generated/CmdTabsPropertyDescriptions.json +27 -0
  158. package/src/documentation/generated/CmdThumbnailScrollerPropertyDescriptions.json +32 -0
  159. package/src/documentation/generated/CmdTooltipPropertyDescriptions.json +17 -0
  160. package/src/documentation/generated/CmdUploadFormPropertyDescriptions.json +90 -0
  161. package/src/documentation/generated/CmdWidthLimitationWrapperPropertyDescriptions.json +41 -0
  162. package/src/documentation/generated/frameworkIcons.json +730 -0
  163. package/src/documentation/generated/logosIcons.json +110 -0
  164. package/src/documentation/tabs.js +46 -0
  165. package/src/documentation/views/ContainerPage.vue +237 -0
  166. package/src/documentation/views/HelpHome.vue +13 -0
  167. package/src/documentation/views/IconFont.vue +80 -0
  168. package/src/documentation/views/components/CmdAccordionHelp.vue +78 -0
  169. package/src/documentation/views/components/CmdAddressDataHelp.vue +65 -0
  170. package/src/documentation/views/components/CmdBackToTopButtonHelp.vue +62 -0
  171. package/src/documentation/views/components/CmdBankAccountDataHelp.vue +88 -0
  172. package/src/documentation/views/components/CmdBoxHelp.vue +137 -0
  173. package/src/documentation/views/components/CmdBoxSiteSearchHelp.vue +60 -0
  174. package/src/documentation/views/components/CmdBoxWrapperHelp.vue +111 -0
  175. package/src/documentation/views/components/CmdBreadcrumbsHelp.vue +51 -0
  176. package/src/documentation/views/components/CmdCompanyLogoHelp.vue +48 -0
  177. package/src/documentation/views/components/CmdCookieDisclaimerHelp.vue +105 -0
  178. package/src/documentation/views/components/CmdCustomHeadlineHelp.vue +53 -0
  179. package/src/documentation/views/components/CmdFakeSelectHelp.vue +175 -0
  180. package/src/documentation/views/components/CmdFancyBoxHelp.vue +79 -0
  181. package/src/documentation/views/components/CmdFormElementHelp.vue +412 -0
  182. package/src/documentation/views/components/CmdFormFiltersHelp.vue +69 -0
  183. package/src/documentation/views/components/CmdFormHelp.vue +41 -0
  184. package/src/documentation/views/components/CmdGoogleMapsHelp.vue +55 -0
  185. package/src/documentation/views/components/CmdImageGalleryHelp.vue +46 -0
  186. package/src/documentation/views/components/CmdImageZoomHelp.vue +34 -0
  187. package/src/documentation/views/components/CmdListOfLinksHelp.vue +64 -0
  188. package/src/documentation/views/components/CmdLoginFormHelp.vue +117 -0
  189. package/src/documentation/views/components/CmdMainNavigationHelp.vue +94 -0
  190. package/src/documentation/views/components/CmdMultistepFormProgressBarHelp.vue +49 -0
  191. package/src/documentation/views/components/CmdOpeningHoursHelp.vue +49 -0
  192. package/src/documentation/views/components/CmdPagerHelp.vue +57 -0
  193. package/src/documentation/views/components/CmdProgressBarHelp.vue +47 -0
  194. package/src/documentation/views/components/CmdShareButtonsHelp.vue +65 -0
  195. package/src/documentation/views/components/CmdSiteHeaderHelp.vue +72 -0
  196. package/src/documentation/views/components/CmdSlideButtonHelp.vue +90 -0
  197. package/src/documentation/views/components/CmdSlideshowHelp.vue +60 -0
  198. package/src/documentation/views/components/CmdSwitchLanguageHelp.vue +64 -0
  199. package/src/documentation/views/components/CmdSystemMessageHelp.vue +86 -0
  200. package/src/documentation/views/components/CmdTableHelp.vue +84 -0
  201. package/src/documentation/views/components/CmdTabsHelp.vue +52 -0
  202. package/src/documentation/views/components/CmdThumbnailScrollerHelp.vue +50 -0
  203. package/src/documentation/views/components/CmdTooltipHelp.vue +59 -0
  204. package/src/documentation/views/components/CmdUploadFormHelp.vue +59 -0
  205. package/src/documentation/views/components/CmdWidthLimitationWrapperHelp.vue +46 -0
  206. package/src/index.js +7 -3
  207. package/src/main.js +25 -15
  208. package/src/mixins/CmdAddressData/DefaultMessageProperties.js +17 -0
  209. package/src/mixins/CmdBox/DefaultMessageProperties.js +10 -0
  210. package/src/mixins/CmdFakeSelect/DefaultMessageProperties.js +9 -0
  211. package/src/mixins/CmdFormElement/DefaultMessageProperties.js +9 -0
  212. package/src/mixins/CmdImageGallery/DefaultMessageProperties.js +9 -0
  213. package/src/mixins/CmdSiteSearch/DefaultMessageProperties.js +14 -0
  214. package/src/mixins/CmdUploadForm/DefaultMessageProperties.js +5 -1
  215. package/src/mixins/FieldValidation.js +220 -0
  216. package/src/mixins/GlobalDefaultMessageProperties.js +15 -0
  217. package/src/mixins/Tooltip.js +26 -0
  218. package/src/router/index.js +67 -0
  219. package/src/utilities.js +3 -6
  220. package/src/utils/common.js +6 -0
  221. package/src/utils/dom.js +8 -0
  222. package/src/utils/globalSequence.js +13 -0
  223. package/src/utils/string.js +8 -0
  224. package/src/assets/data/address.json +0 -13
  225. package/src/assets/data/footer-navigation.json +0 -38
  226. package/src/assets/data/languages.json +0 -31
  227. package/src/assets/data/multisteps.json +0 -27
  228. package/src/assets/data/navigation.json +0 -47
  229. package/src/assets/data/pager.json +0 -11
  230. package/src/assets/data/top-header-navigation.json +0 -27
  231. package/src/components/CmdFooterNavigation.vue +0 -71
  232. package/src/components/CmdMainHeadline.vue +0 -75
  233. 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
+ ]
@@ -1,4 +1,8 @@
1
1
  [
2
+ {
3
+ "text": "Please select",
4
+ "value": ""
5
+ },
2
6
  {
3
7
  "text": "Optionname 1",
4
8
  "value": "1"
@@ -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": "Diese Seite auf Facebook teilen",
5
+ "tooltip": "Share this page on facebook",
6
6
  "iconClass": "icon-facebook",
7
- "linkName": "Teilen"
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": "Diese Seite auf Twitter teilen",
12
+ "tooltip": "Share this page on twitter",
13
13
  "iconClass": "icon-twitter",
14
- "linkName": "Teilen"
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": "Diese Seite auf Xing teilen",
19
+ "tooltip": "Share this page on xing",
20
20
  "iconClass": "icon-xing",
21
- "linkName": "Teilen"
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": "Diese Seite auf linkedin in teilen",
26
+ "tooltip": "Share this page on linkedin",
27
27
  "iconClass": "icon-linkedin",
28
- "linkName": "Teilen"
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
+ ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "caption": {
3
- "hide": false,
3
+ "show": false,
4
4
  "text": "This is a caption for a large table"
5
5
  },
6
6
  "rowIndexHighlighted": 3,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "caption": {
3
- "hide": false,
3
+ "show": false,
4
4
  "text": "This is a caption for a small table"
5
5
  },
6
6
  "thead": [
@@ -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
- .slide-move {
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.icon.tooltip : iconClosed.icon.tooltip" @click.prevent="toggleContentVisibility(accordionContent)">
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
- <component :is="accordionHeadlineLevel">
7
- <span v-if="accordionContent.icon && accordionContent.icon.iconClass" :class="accordionContent.icon.iconClass" :title="accordionContent.icon.tooltip"></span>
8
- <span v-if="accordionContent.headline">{{ accordionContent.headline }}</span>
9
- </component>
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
- <span class="toggle-icon" :class="[accordionContent.status ? iconOpen.icon.iconClass : iconClosed.icon.iconClass]"></span>
12
- </a>
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
- * values: single, multiple
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 is shown between multiple accordions
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
- icon: {
100
- iconClass: "icon-single-arrow-up",
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
- icon: {
114
- iconClass: "icon-single-arrow-down",
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
- return this.useTransition && 'fade'
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;