comand-component-library 3.1.43 → 3.1.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) 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 -40
  4. package/src/App.vue +379 -136
  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-countries.json +12 -12
  16. package/src/assets/data/fake-select-filter-options.json +14 -0
  17. package/src/assets/data/fake-select-options-with-icons.json +6 -12
  18. package/src/assets/data/fake-select-options.json +3 -3
  19. package/src/assets/data/list-of-links-section-anchors.json +23 -0
  20. package/src/assets/data/list-of-links-top-header-navigation.json +20 -0
  21. package/src/assets/data/list-of-links.json +42 -0
  22. package/src/assets/data/main-navigation.json +48 -0
  23. package/src/assets/data/multistep-form-progress-bar.json +33 -0
  24. package/src/assets/data/select-options.json +4 -0
  25. package/src/assets/data/{share-buttons.json → share-buttons-page-by-json.json} +8 -8
  26. package/src/assets/data/share-buttons-page-by-property.json +30 -0
  27. package/src/assets/data/switch-language.json +20 -0
  28. package/src/assets/data/table-large.json +1 -1
  29. package/src/assets/data/table-small.json +1 -1
  30. package/src/assets/styles/global-styles.scss +43 -14
  31. package/src/assets/styles/transitions.scss +21 -1
  32. package/src/components/CmdAccordion.vue +43 -42
  33. package/src/components/CmdAddressData.vue +124 -56
  34. package/src/components/CmdBackToTopButton.vue +3 -3
  35. package/src/components/CmdBankAccountData.vue +104 -0
  36. package/src/components/CmdBox.vue +253 -56
  37. package/src/components/CmdBoxSiteSearch.vue +138 -39
  38. package/src/components/CmdBoxWrapper.vue +206 -0
  39. package/src/components/CmdBreadcrumbs.vue +29 -13
  40. package/src/components/CmdCompanyLogo.vue +6 -4
  41. package/src/components/CmdCookieDisclaimer.vue +99 -75
  42. package/src/components/CmdCopyrightInformation.vue +1 -1
  43. package/src/components/CmdCustomHeadline.vue +93 -0
  44. package/src/components/CmdFakeSelect.vue +330 -66
  45. package/src/components/CmdFancyBox.vue +47 -33
  46. package/src/components/CmdForm.vue +107 -0
  47. package/src/components/CmdFormElement.vue +528 -83
  48. package/src/components/CmdFormFilters.vue +25 -11
  49. package/src/components/CmdGoogleMaps.vue +9 -3
  50. package/src/components/CmdImageGallery.vue +28 -5
  51. package/src/components/CmdImageZoom.vue +9 -1
  52. package/src/components/CmdListOfLinks.vue +169 -0
  53. package/src/components/CmdLoginForm.vue +146 -66
  54. package/src/components/CmdMainNavigation.vue +140 -42
  55. package/src/components/CmdMultipleSwitch.vue +33 -2
  56. package/src/components/CmdMultistepFormProgressBar.vue +60 -10
  57. package/src/components/CmdOpeningHours.vue +36 -10
  58. package/src/components/CmdPager.vue +7 -5
  59. package/src/components/CmdProgressBar.vue +21 -4
  60. package/src/components/CmdShareButtons.vue +64 -9
  61. package/src/components/CmdSiteHeader.vue +25 -12
  62. package/src/components/CmdSlideButton.vue +5 -2
  63. package/src/components/CmdSlideshow.vue +23 -7
  64. package/src/components/CmdSwitchButton.vue +15 -6
  65. package/src/components/CmdSwitchLanguage.vue +18 -10
  66. package/src/components/CmdSystemMessage.vue +30 -17
  67. package/src/components/CmdTable.vue +15 -7
  68. package/src/components/CmdTabs.vue +43 -3
  69. package/src/components/CmdThumbnailScroller.vue +22 -6
  70. package/src/components/CmdTooltip.vue +184 -11
  71. package/src/components/CmdUploadForm.vue +830 -176
  72. package/src/components/CmdWidthLimitationWrapper.vue +9 -6
  73. package/src/composables/event.js +8 -0
  74. package/src/composables/scrollspy.js +52 -0
  75. package/src/directives/focus.js +19 -0
  76. package/src/directives/telephone.js +1 -1
  77. package/src/documentation/commonProps.js +6 -0
  78. package/src/documentation/components/ComponentCode.vue +50 -0
  79. package/src/documentation/components/ComponentProperties.vue +237 -0
  80. package/src/documentation/components/ExampleSectionWrapper.vue +46 -0
  81. package/src/documentation/components/ViewCodeData.vue +113 -0
  82. package/src/documentation/data/CmdAccordionHelp.js +22 -0
  83. package/src/documentation/data/CmdAddressDataHelp.js +17 -0
  84. package/src/documentation/data/CmdBackToTopButtonHelp.js +3 -0
  85. package/src/documentation/data/CmdBankAccountDataHelp.js +8 -0
  86. package/src/documentation/data/CmdBoxHelp.js +45 -0
  87. package/src/documentation/data/CmdBoxSiteSearchHelp.js +11 -0
  88. package/src/documentation/data/CmdBreadcrumbsHelp.js +6 -0
  89. package/src/documentation/data/CmdCompanyLogoHelp.js +8 -0
  90. package/src/documentation/data/CmdCookieDisclaimerHelp.js +9 -0
  91. package/src/documentation/data/CmdCopyrightInformation.js +2 -0
  92. package/src/documentation/data/CmdCustomHeadlineHelp.js +8 -0
  93. package/src/documentation/data/CmdFakeSelectHelp.js +60 -0
  94. package/src/documentation/data/CmdFancyBoxHelp.js +7 -0
  95. package/src/documentation/data/CmdFooterNavigationHelp.js +5 -0
  96. package/src/documentation/data/CmdFormElementHelp.js +189 -0
  97. package/src/documentation/data/CmdFormFiltersHelp.js +6 -0
  98. package/src/documentation/data/CmdFormHelp.js +10 -0
  99. package/src/documentation/data/CmdGoogleMapsHelp.js +5 -0
  100. package/src/documentation/data/CmdImageGalleryHelp.js +5 -0
  101. package/src/documentation/data/CmdImageZoomHelp.js +6 -0
  102. package/src/documentation/data/CmdListOfLinksHelp.js +24 -0
  103. package/src/documentation/data/CmdLoginFormHelp.js +6 -0
  104. package/src/documentation/data/CmdMainNavigationHelp.js +7 -0
  105. package/src/documentation/data/CmdMultistepFormProgressBarHelp.js +6 -0
  106. package/src/documentation/data/CmdOpeningHoursHelp.js +10 -0
  107. package/src/documentation/data/CmdPagerHelp.js +7 -0
  108. package/src/documentation/data/CmdProgressBarHelp.js +13 -0
  109. package/src/documentation/data/CmdShareButtonsHelp.js +13 -0
  110. package/src/documentation/data/CmdSiteHeaderHelp.js +21 -0
  111. package/src/documentation/data/CmdSlideButtonHelp.js +10 -0
  112. package/src/documentation/data/CmdSlideshowHelp.js +7 -0
  113. package/src/documentation/data/CmdSwitchLanguageHelp.js +6 -0
  114. package/src/documentation/data/CmdSystemMessageHelp.js +32 -0
  115. package/src/documentation/data/CmdTableHelp.js +14 -0
  116. package/src/documentation/data/CmdTabsHelp.js +10 -0
  117. package/src/documentation/data/CmdThumbnailScrollerHelp.js +5 -0
  118. package/src/documentation/data/CmdTooltipHelp.js +13 -0
  119. package/src/documentation/data/CmdUploadFormHelp.js +17 -0
  120. package/src/documentation/data/CmdWidthLimitationWrapperHelp.js +7 -0
  121. package/src/documentation/data/componentsDescription.json +158 -0
  122. package/src/documentation/generated/CmdAccordionPropertyDescriptions.json +57 -0
  123. package/src/documentation/generated/CmdAddressDataPropertyDescriptions.json +32 -0
  124. package/src/documentation/generated/CmdBackToTopButtonPropertyDescriptions.json +12 -0
  125. package/src/documentation/generated/CmdBankAccountDataPropertyDescriptions.json +34 -0
  126. package/src/documentation/generated/CmdBoxPropertyDescriptions.json +91 -0
  127. package/src/documentation/generated/CmdBoxSiteSearchPropertyDescriptions.json +41 -0
  128. package/src/documentation/generated/CmdBoxWrapperPropertyDescriptions.json +47 -0
  129. package/src/documentation/generated/CmdBreadcrumbsPropertyDescriptions.json +17 -0
  130. package/src/documentation/generated/CmdCompanyLogoPropertyDescriptions.json +27 -0
  131. package/src/documentation/generated/CmdCookieDisclaimerPropertyDescriptions.json +22 -0
  132. package/src/documentation/generated/CmdCustomHeadlinePropertyDescriptions.json +22 -0
  133. package/src/documentation/generated/CmdFakeSelectPropertyDescriptions.json +79 -0
  134. package/src/documentation/generated/CmdFancyBoxPropertyDescriptions.json +62 -0
  135. package/src/documentation/generated/CmdFooterNavigationPropertyDescriptions.json +17 -0
  136. package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +178 -0
  137. package/src/documentation/generated/CmdFormFiltersPropertyDescriptions.json +32 -0
  138. package/src/documentation/generated/CmdFormPropertyDescriptions.json +40 -0
  139. package/src/documentation/generated/CmdGoogleMapsPropertyDescriptions.json +7 -0
  140. package/src/documentation/generated/CmdImageGalleryPropertyDescriptions.json +22 -0
  141. package/src/documentation/generated/CmdImageZoomPropertyDescriptions.json +12 -0
  142. package/src/documentation/generated/CmdListOfLinksPropertyDescriptions.json +60 -0
  143. package/src/documentation/generated/CmdLoginFormPropertyDescriptions.json +90 -0
  144. package/src/documentation/generated/CmdMainNavigationPropertyDescriptions.json +62 -0
  145. package/src/documentation/generated/CmdMultipleSwitchPropertyDescriptions.json +52 -0
  146. package/src/documentation/generated/CmdMultistepFormProgressBarPropertyDescriptions.json +17 -0
  147. package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +42 -0
  148. package/src/documentation/generated/CmdPagerPropertyDescriptions.json +37 -0
  149. package/src/documentation/generated/CmdProgressBarPropertyDescriptions.json +32 -0
  150. package/src/documentation/generated/CmdShareButtonsPropertyDescriptions.json +34 -0
  151. package/src/documentation/generated/CmdSiteHeaderPropertyDescriptions.json +27 -0
  152. package/src/documentation/generated/CmdSlideButtonPropertyDescriptions.json +25 -0
  153. package/src/documentation/generated/CmdSlideshowPropertyDescriptions.json +42 -0
  154. package/src/documentation/generated/CmdSwitchButtonPropertyDescriptions.json +79 -0
  155. package/src/documentation/generated/CmdSwitchLanguagePropertyDescriptions.json +7 -0
  156. package/src/documentation/generated/CmdSystemMessagePropertyDescriptions.json +40 -0
  157. package/src/documentation/generated/CmdTablePropertyDescriptions.json +62 -0
  158. package/src/documentation/generated/CmdTabsPropertyDescriptions.json +27 -0
  159. package/src/documentation/generated/CmdThumbnailScrollerPropertyDescriptions.json +32 -0
  160. package/src/documentation/generated/CmdTooltipPropertyDescriptions.json +17 -0
  161. package/src/documentation/generated/CmdUploadFormPropertyDescriptions.json +90 -0
  162. package/src/documentation/generated/CmdWidthLimitationWrapperPropertyDescriptions.json +41 -0
  163. package/src/documentation/generated/frameworkIcons.json +730 -0
  164. package/src/documentation/generated/logosIcons.json +110 -0
  165. package/src/documentation/tabs.js +46 -0
  166. package/src/documentation/views/ContainerPage.vue +237 -0
  167. package/src/documentation/views/HelpHome.vue +13 -0
  168. package/src/documentation/views/IconFont.vue +80 -0
  169. package/src/documentation/views/components/CmdAccordionHelp.vue +78 -0
  170. package/src/documentation/views/components/CmdAddressDataHelp.vue +65 -0
  171. package/src/documentation/views/components/CmdBackToTopButtonHelp.vue +62 -0
  172. package/src/documentation/views/components/CmdBankAccountDataHelp.vue +88 -0
  173. package/src/documentation/views/components/CmdBoxHelp.vue +137 -0
  174. package/src/documentation/views/components/CmdBoxSiteSearchHelp.vue +60 -0
  175. package/src/documentation/views/components/CmdBoxWrapperHelp.vue +111 -0
  176. package/src/documentation/views/components/CmdBreadcrumbsHelp.vue +51 -0
  177. package/src/documentation/views/components/CmdCompanyLogoHelp.vue +48 -0
  178. package/src/documentation/views/components/CmdCookieDisclaimerHelp.vue +105 -0
  179. package/src/documentation/views/components/CmdCustomHeadlineHelp.vue +53 -0
  180. package/src/documentation/views/components/CmdFakeSelectHelp.vue +175 -0
  181. package/src/documentation/views/components/CmdFancyBoxHelp.vue +79 -0
  182. package/src/documentation/views/components/CmdFormElementHelp.vue +412 -0
  183. package/src/documentation/views/components/CmdFormFiltersHelp.vue +69 -0
  184. package/src/documentation/views/components/CmdFormHelp.vue +41 -0
  185. package/src/documentation/views/components/CmdGoogleMapsHelp.vue +55 -0
  186. package/src/documentation/views/components/CmdImageGalleryHelp.vue +46 -0
  187. package/src/documentation/views/components/CmdImageZoomHelp.vue +34 -0
  188. package/src/documentation/views/components/CmdListOfLinksHelp.vue +64 -0
  189. package/src/documentation/views/components/CmdLoginFormHelp.vue +117 -0
  190. package/src/documentation/views/components/CmdMainNavigationHelp.vue +94 -0
  191. package/src/documentation/views/components/CmdMultistepFormProgressBarHelp.vue +49 -0
  192. package/src/documentation/views/components/CmdOpeningHoursHelp.vue +49 -0
  193. package/src/documentation/views/components/CmdPagerHelp.vue +57 -0
  194. package/src/documentation/views/components/CmdProgressBarHelp.vue +47 -0
  195. package/src/documentation/views/components/CmdShareButtonsHelp.vue +65 -0
  196. package/src/documentation/views/components/CmdSiteHeaderHelp.vue +72 -0
  197. package/src/documentation/views/components/CmdSlideButtonHelp.vue +90 -0
  198. package/src/documentation/views/components/CmdSlideshowHelp.vue +60 -0
  199. package/src/documentation/views/components/CmdSwitchLanguageHelp.vue +64 -0
  200. package/src/documentation/views/components/CmdSystemMessageHelp.vue +86 -0
  201. package/src/documentation/views/components/CmdTableHelp.vue +84 -0
  202. package/src/documentation/views/components/CmdTabsHelp.vue +52 -0
  203. package/src/documentation/views/components/CmdThumbnailScrollerHelp.vue +50 -0
  204. package/src/documentation/views/components/CmdTooltipHelp.vue +59 -0
  205. package/src/documentation/views/components/CmdUploadFormHelp.vue +59 -0
  206. package/src/documentation/views/components/CmdWidthLimitationWrapperHelp.vue +46 -0
  207. package/src/index.js +6 -3
  208. package/src/main.js +25 -15
  209. package/src/mixins/CmdAddressData/DefaultMessageProperties.js +17 -0
  210. package/src/mixins/CmdBox/DefaultMessageProperties.js +10 -0
  211. package/src/mixins/CmdFakeSelect/DefaultMessageProperties.js +9 -0
  212. package/src/mixins/CmdFormElement/DefaultMessageProperties.js +9 -0
  213. package/src/mixins/CmdImageGallery/DefaultMessageProperties.js +9 -0
  214. package/src/mixins/CmdSiteSearch/DefaultMessageProperties.js +14 -0
  215. package/src/mixins/CmdUploadForm/DefaultMessageProperties.js +53 -0
  216. package/src/mixins/FieldValidation.js +220 -0
  217. package/src/mixins/GlobalDefaultMessageProperties.js +15 -0
  218. package/src/mixins/I18n.js +56 -0
  219. package/src/mixins/Tooltip.js +26 -0
  220. package/src/router/index.js +67 -0
  221. package/src/utilities.js +3 -6
  222. package/src/utils/GetFileExtension.js +15 -0
  223. package/src/utils/common.js +6 -0
  224. package/src/utils/dom.js +8 -0
  225. package/src/utils/globalSequence.js +13 -0
  226. package/src/utils/string.js +8 -0
  227. package/src/assets/data/address.json +0 -13
  228. package/src/assets/data/footer-navigation.json +0 -38
  229. package/src/assets/data/languages.json +0 -31
  230. package/src/assets/data/multisteps.json +0 -27
  231. package/src/assets/data/navigation.json +0 -47
  232. package/src/assets/data/pager.json +0 -11
  233. package/src/assets/data/top-header-navigation.json +0 -27
  234. package/src/components/CmdFooterNavigation.vue +0 -71
  235. package/src/components/CmdMainHeadline.vue +0 -75
  236. package/src/components/CmdTopHeaderNavigation.vue +0 -88
@@ -0,0 +1,88 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import component
7
+ import CmdBankAccountData from "../../../components/CmdBankAccountData"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import CmdTabs from "../../../components/CmdTabs"
10
+ import ViewCodeData from "../../components/ViewCodeData"
11
+ import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
12
+
13
+ import * as componentPropertiesFunctions from "../../components/ComponentProperties"
14
+
15
+ // import example-data
16
+ import CmdCode from "../../data/CmdBankAccountDataHelp"
17
+ import bankAccountData from "../../../assets/data/bank-account-data.json"
18
+ import propertyDescriptions from "../../generated/CmdBankAccountDataPropertyDescriptions.json"
19
+
20
+ const propertyStructures = {
21
+ accountData: [
22
+ {
23
+ "text": "<string>",
24
+ "value": "<string>",
25
+ "allowCopy": "<boolean>"
26
+ }
27
+ ],
28
+ cmdCustomHeadline: "Description for cmdCustomHeadline",
29
+ iconCopy: {
30
+ "iconClass": "<string>",
31
+ "tooltip": "<string>"
32
+ }
33
+ }
34
+ </script>
35
+
36
+ <template>
37
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
38
+ <template v-slot:tab-content-0>
39
+ <h2>Component</h2>
40
+ <ExampleSectionWrapper componentName="CmdBankAccountData" headlineText="Band Account Data">
41
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="bankAccountData[0]">
42
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
43
+ <CmdBankAccountData
44
+ :account-data="bankAccountData"
45
+ :allow-copy-by-click="true"
46
+ :cmd-custom-headline="{ headlineText: 'Bank Account', headlineLevel: 5}"
47
+ />
48
+ </teleport>
49
+ </ViewCodeData>
50
+ </ExampleSectionWrapper>
51
+ </template>
52
+ <template v-slot:tab-content-1>
53
+ <ComponentProperties :properties="CmdBankAccountData.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
54
+ <a id="accountData"></a>
55
+ <h4>accountData</h4>
56
+ <dl>
57
+ <dt>Type:</dt>
58
+ <dd>{{ componentPropertiesFunctions.getPropertyTypeName(CmdBankAccountData.props.accountData.type) }}</dd>
59
+ <dt>Default:</dt>
60
+ <dd v-if="componentPropertiesFunctions.getPropertyDefault(CmdBankAccountData.props.accountData.default)">
61
+ {{ componentPropertiesFunctions.getPropertyDefault(CmdBankAccountData.props.accountData.default) }}
62
+ </dd>
63
+ <dd v-else><em>(none)</em></dd>
64
+ <dt>Required:</dt>
65
+ <dd>
66
+ <span :class="componentPropertiesFunctions.getIcon(CmdBankAccountData.props.accountData.required)"
67
+ :title="componentPropertiesFunctions.getTooltip(CmdBankAccountData.props.accountData.required)">
68
+ </span>
69
+ </dd>
70
+ <dt>Structure:</dt>
71
+ <dd>
72
+ <pre>{{ componentPropertiesFunctions.getPropertyStructure(propertyStructures, "accountData") }}</pre>
73
+ </dd>
74
+ <dt>Description:</dt>
75
+ <dd>{{ componentPropertiesFunctions.getPropertyDescription(propertyDescriptions, "accountData") }}</dd>
76
+ </dl>
77
+ <h5>Description for structure</h5>
78
+ <dl>
79
+ <dt>text:</dt>
80
+ <dd>Description for text</dd>
81
+ <dt>value:</dt>
82
+ <dd>Description for value</dd>
83
+ <dt>allowCopy:</dt>
84
+ <dd>Description for allowCopy</dd>
85
+ </dl>
86
+ </template>
87
+ </CmdTabs>
88
+ </template>
@@ -0,0 +1,137 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdBox from "../../../components/CmdBox"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import ViewCodeData from "../../components/ViewCodeData"
10
+ import CmdTabs from "../../../components/CmdTabs"
11
+ import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
12
+
13
+ // import example-data
14
+ import CmdCode from "../../data/CmdBoxHelp"
15
+ import boxesProduct from "../../../assets/data/box-product.json"
16
+ import boxesUser from "../../../assets/data/box-user.json"
17
+ import propertyDescriptions from "../../generated/CmdBoxPropertyDescriptions.json"
18
+
19
+ const propertyStructures = {
20
+ product: {
21
+ "name": "<string>",
22
+ "img": {
23
+ "src": "<string>",
24
+ "alt": "<string>"
25
+ },
26
+ "articleNumber": "<string>",
27
+ "price": "<number>",
28
+ "description": "<string>",
29
+ "new": "<boolean>",
30
+ "discount": "<number>"
31
+ },
32
+ user: {
33
+ "name": "<string>",
34
+ "img": {
35
+ "src": "<string>",
36
+ "alt": "<string>"
37
+ },
38
+ "profession": "<string>",
39
+ "position": "<string>",
40
+ "description": "<string>",
41
+ "links": [
42
+ {
43
+ "href": "<string>",
44
+ "target": "<string>",
45
+ "iconClass": "<string>",
46
+ "title": "<string>"
47
+ }
48
+ ]
49
+ }
50
+ }
51
+
52
+ function clickedOnProduct(event) {
53
+ console.log("event", event)
54
+ }
55
+ </script>
56
+
57
+ <template>
58
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
59
+ <template v-slot:tab-content-0>
60
+ <h2>Component</h2>
61
+ <ExampleSectionWrapper componentName="CmdBox" headlineText="Box 'content' (content given by property)">
62
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
63
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
64
+ <CmdBox
65
+ :cmdCustomHeadline="{
66
+ headlineText: 'Headline given by property',
67
+ headlineLevel: 5
68
+ }"
69
+ textBody="Content given by property"
70
+ />
71
+ </teleport>
72
+ </ViewCodeData>
73
+ </ExampleSectionWrapper>
74
+ <hr/>
75
+ <ExampleSectionWrapper componentName="CmdBox" headlineText="Box 'content' (collapsible)">
76
+ <ViewCodeData :code="CmdCode[1]">
77
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
78
+ <CmdBox
79
+ :cmdCustomHeadline="{
80
+ headlineText: 'Headline given by property',
81
+ headlineLevel: 5
82
+ }"
83
+ textBody="Content given by property"
84
+ :collapsible="true"
85
+ />
86
+ </teleport>
87
+ </ViewCodeData>
88
+ </ExampleSectionWrapper>
89
+ <hr/>
90
+ <ExampleSectionWrapper componentName="CmdBox" headlineText="Box 'content' (content given by slot)">
91
+ <ViewCodeData :code="CmdCode[2]">
92
+ <CmdBox :useSlots="['header', 'body', 'footer']">
93
+ <template v-slot:header>
94
+ <h5>
95
+ Headline given by slot
96
+ </h5>
97
+ </template>
98
+ <template v-slot:body>
99
+ <p class="padding">
100
+ Content given by slot
101
+ </p>
102
+ </template>
103
+ <template v-slot:footer>
104
+ <p>
105
+ Footer given by slot
106
+ </p>
107
+ </template>
108
+ </CmdBox>
109
+ </ViewCodeData>
110
+ </ExampleSectionWrapper>
111
+ <hr/>
112
+ <ExampleSectionWrapper componentName="CmdBox" headlineText="Box 'product'">
113
+ <ViewCodeData :code="CmdCode[3]" :data="boxesProduct[0]">
114
+ <CmdBox
115
+ boxType="product"
116
+ :product="boxesProduct[0]"
117
+ :cmdCustomHeadline="{ headlineLevel: 5}"
118
+ @click="clickedOnProduct"
119
+ />
120
+ </ViewCodeData>
121
+ </ExampleSectionWrapper>
122
+ <hr/>
123
+ <ExampleSectionWrapper componentName="CmdBox" headlineText="Box 'user'">
124
+ <ViewCodeData :code="CmdCode[4]" :data="boxesUser[2]">
125
+ <CmdBox
126
+ boxType="user"
127
+ :user="boxesUser[2]"
128
+ :cmdCustomHeadline="{ headlineLevel: 5}"
129
+ />
130
+ </ViewCodeData>
131
+ </ExampleSectionWrapper>
132
+ </template>
133
+ <template v-slot:tab-content-1>
134
+ <ComponentProperties :properties="CmdBox.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
135
+ </template>
136
+ </CmdTabs>
137
+ </template>
@@ -0,0 +1,60 @@
1
+ <script setup>
2
+ // import function
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdBoxSiteSearch from "../../../components/CmdBoxSiteSearch"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import ViewCodeData from "../../components/ViewCodeData"
10
+ import CmdTabs from "../../../components/CmdTabs"
11
+ import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
12
+
13
+ // import example-data
14
+ import CmdCode from "../../data/CmdBoxSiteSearchHelp"
15
+ import listOfFilters from '../../../assets/data/fake-select-filter-options.json'
16
+ import propertyDescriptions from "../../generated/CmdBoxSiteSearchPropertyDescriptions.json"
17
+
18
+ const propertyStructures = {
19
+ cmdCustomHeadline: {
20
+ "address": {
21
+ "streetNo": "<string>",
22
+ "zip": "<number>",
23
+ "city": "<string>"
24
+ },
25
+ "telephone": "<string>",
26
+ "mobilephone": "<string>",
27
+ "fax": "<string>",
28
+ "email": "<string>"
29
+ },
30
+ results: "-",
31
+ showLegend: "-",
32
+ textLegend: "-"
33
+ }
34
+ </script>
35
+
36
+ <template>
37
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
38
+ <template v-slot:tab-content-0>
39
+ <h2>Component</h2>
40
+ <ExampleSectionWrapper componentName="CmdBoxSiteSearch" headlineText="Box Site Search">
41
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
42
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
43
+ <CmdBoxSiteSearch
44
+ text-legend="Legend"
45
+ :results="420"
46
+ :listOfFilters="listOfFilters"
47
+ :cmdCustomHeadline="{
48
+ headlineText: 'Search site',
49
+ headlineLevel: 5
50
+ }"
51
+ />
52
+ </teleport>
53
+ </ViewCodeData>
54
+ </ExampleSectionWrapper>
55
+ </template>
56
+ <template v-slot:tab-content-1>
57
+ <ComponentProperties :properties="CmdBoxSiteSearch.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures" />
58
+ </template>
59
+ </CmdTabs>
60
+ </template>
@@ -0,0 +1,111 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdBox from "../../../components/CmdBox"
8
+ import CmdBoxWrapper from "../../../components/CmdBoxWrapper"
9
+ import CmdTabs from "../../../components/CmdTabs"
10
+ import ComponentProperties from "../../components/ComponentProperties"
11
+ import ViewCodeData from "../../components/ViewCodeData"
12
+ import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
13
+
14
+ // import example-data
15
+ import CmdCode from "../../data/CmdAddressDataHelp"
16
+ import boxProduct from '../../../assets/data/box-product.json'
17
+ import boxUser from '../../../assets/data/box-user.json'
18
+ import propertyDescriptions from "../../generated/CmdAddressDataPropertyDescriptions.json"
19
+
20
+ const propertyStructures = {
21
+ addressData: {
22
+ "company": "<string>",
23
+ "address": {
24
+ "streetNo": "<string>",
25
+ "zip": "<number>",
26
+ "city": "<string>"
27
+ },
28
+ "telephone": "<string>",
29
+ "mobilephone": "<string>",
30
+ "fax": "<string>",
31
+ "email": "<string>"
32
+ }
33
+ }
34
+ </script>
35
+
36
+ <template>
37
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
38
+ <template v-slot:tab-content-0>
39
+ <h2>Component</h2>
40
+ <ExampleSectionWrapper componentName="CmdBoxWrapper" headlineText="Box Wrapper with Box 'content' using Flexbox">
41
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
42
+ <CmdBoxWrapper :useFlexbox="true">
43
+ <CmdBox v-for="index in 14" :key="index" textBody="Content" :cmd-custom-headline="{headlineText: 'Headline ' + index, headlineLevel: 3}" />
44
+ </CmdBoxWrapper>
45
+ </ViewCodeData>
46
+ </ExampleSectionWrapper>
47
+ <hr />
48
+ <ExampleSectionWrapper componentName="CmdBoxWrapper" headlineText="Box Wrapper with Box 'content (collapsible)' using the default grid">
49
+ <ViewCodeData :code="CmdCode[0]">
50
+ <CmdBoxWrapper :allowTogglingCollapsingBoxes="true" v-slot="slotprops">
51
+ <CmdBox v-for="index in 7"
52
+ :key="index"
53
+ textBody="Content"
54
+ :collapsible="true"
55
+ :collapsingBoxesOpen="slotprops.collapsingBoxesOpen"
56
+ :cmd-custom-headline="{
57
+ headlineText: 'Headline ' + index,
58
+ headlineLevel: 3
59
+ }"
60
+ />
61
+ </CmdBoxWrapper>
62
+ </ViewCodeData>
63
+ </ExampleSectionWrapper>
64
+ <hr />
65
+ <ExampleSectionWrapper componentName="CmdBoxWrapper" headlineText="Box Wrapper with single box open at once using the default grid">
66
+ <ViewCodeData :code="CmdCode[0]">
67
+ <CmdBoxWrapper v-slot="slotprops">
68
+ <CmdBox v-for="index in 7"
69
+ :key="index"
70
+ textBody="Content"
71
+ :collapsible="true"
72
+ :collapsingBoxesOpen="slotprops.currentOpenBox === index || (slotprops.currentOpenBox === 0 && index === 1)"
73
+ :cmd-custom-headline="{
74
+ headlineText: 'Headline ' + index,
75
+ headlineLevel: 3
76
+ }"
77
+ @toggle-collapse="slotprops.boxToggled(index, $event)"
78
+ />
79
+ </CmdBoxWrapper>
80
+ </ViewCodeData>
81
+ </ExampleSectionWrapper>
82
+ <hr />
83
+ <ExampleSectionWrapper componentName="CmdBoxWrapper" headlineText="Box Wrapper with Box 'content' using a custom grid">
84
+ <ViewCodeData :code="CmdCode[0]">
85
+ <CmdBoxWrapper :boxesPerRow="[5, 2, 1]">
86
+ <CmdBox v-for="index in 7" :key="index" textBody="Content" :cmd-custom-headline="{headlineText: 'Headline ' + index, headlineLevel: 3}" />
87
+ </CmdBoxWrapper>
88
+ </ViewCodeData>
89
+ </ExampleSectionWrapper>
90
+ <hr />
91
+ <ExampleSectionWrapper componentName="CmdBoxWrapper" headlineText="Box Wrapper with Box 'product' using a custom grid">
92
+ <ViewCodeData :code="CmdCode[0]" :data="boxProduct">
93
+ <CmdBoxWrapper :boxesPerRow="[5, 2, 1]">
94
+ <CmdBox v-for="index in boxProduct.length" :key="index" boxType="product" :product="boxProduct[index - 1]" :cmdCustomHeadline="{headlineLevel: 5}" />
95
+ </CmdBoxWrapper>
96
+ </ViewCodeData>
97
+ </ExampleSectionWrapper>
98
+ <hr />
99
+ <ExampleSectionWrapper componentName="CmdBoxWrapper" headlineText="Box Wrapper with Box 'user' using a custom grid">
100
+ <ViewCodeData :code="CmdCode[0]" :data="boxUser">
101
+ <CmdBoxWrapper :boxesPerRow="[5, 2, 1]">
102
+ <CmdBox v-for="index in boxUser.length" :key="index" boxType="user" :user="boxUser[index - 1]" :cmdCustomHeadline="{headlineLevel: 5}" />
103
+ </CmdBoxWrapper>
104
+ </ViewCodeData>
105
+ </ExampleSectionWrapper>
106
+ </template>
107
+ <template v-slot:tab-content-1>
108
+ <ComponentProperties :properties="CmdBoxWrapper.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures" />
109
+ </template>
110
+ </CmdTabs>
111
+ </template>
@@ -0,0 +1,51 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdBreadcrumbs from "../../../components/CmdBreadcrumbs"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import ViewCodeData from "../../components/ViewCodeData"
10
+ import CmdTabs from "../../../components/CmdTabs"
11
+ import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
12
+
13
+ // import example-data
14
+ import breadcrumbs from '../../../assets/data/breadcrumbs.json'
15
+ import CmdCode from "../../data/CmdBreadcrumbsHelp"
16
+ import propertyDescriptions from "../../generated/CmdBreadcrumbsPropertyDescriptions.json"
17
+
18
+ const propertyStructures = {
19
+ breadcrumbLinks: {
20
+ "text": "<string>",
21
+ "type": "<string>",
22
+ "path": "<string>",
23
+ "route": {
24
+ "params": {
25
+ "lang": "<string>"
26
+ }
27
+ }
28
+ }
29
+ }
30
+ </script>
31
+
32
+ <template>
33
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
34
+ <template v-slot:tab-content-0>
35
+ <h2>Component</h2>
36
+ <ExampleSectionWrapper componentName="CmdBreadcrumbs" headlineText="Breadcrumbs">
37
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="breadcrumbs">
38
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
39
+ <CmdBreadcrumbs
40
+ :breadcrumbLinks="breadcrumbs"
41
+ breadcrumbLabel="You are here:"
42
+ />
43
+ </teleport>
44
+ </ViewCodeData>
45
+ </ExampleSectionWrapper>
46
+ </template>
47
+ <template v-slot:tab-content-1>
48
+ <ComponentProperties :properties="CmdBreadcrumbs.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
49
+ </template>
50
+ </CmdTabs>
51
+ </template>
@@ -0,0 +1,48 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdCompanyLogo from "../../../components/CmdCompanyLogo"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import CmdTabs from "../../../components/CmdTabs"
10
+ import ViewCodeData from "../../components/ViewCodeData"
11
+ import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
12
+
13
+ // import example-data
14
+ import companyLogo from '../../../assets/data/company-logo.json'
15
+ import CmdCode from "../../data/CmdCompanyLogoHelp"
16
+ import propertyDescriptions from "../../generated/CmdCompanyLogoPropertyDescriptions.json"
17
+
18
+ const propertyStructures = {
19
+ link: {
20
+ "type": "<string>",
21
+ "path": "<string>",
22
+ "tooltip": "<string>"
23
+ }
24
+ }
25
+ </script>
26
+
27
+ <template>
28
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
29
+ <template v-slot:tab-content-0>
30
+ <h2>Component</h2>
31
+ <ExampleSectionWrapper componentName="CmdCompanyLogo" headlineText="Company Logo">
32
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="companyLogo">
33
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
34
+ <CmdCompanyLogo
35
+ :link="companyLogo.link"
36
+ altText="CoManD Logo"
37
+ :pathDefaultLogo="require('@/assets/images/logo.svg')"
38
+ :pathDarkmodeLogo="require('@/assets/images/logo-darkmode.svg')"
39
+ />
40
+ </teleport>
41
+ </ViewCodeData>
42
+ </ExampleSectionWrapper>
43
+ </template>
44
+ <template v-slot:tab-content-1>
45
+ <ComponentProperties :properties="CmdCompanyLogo.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
46
+ </template>
47
+ </CmdTabs>
48
+ </template>
@@ -0,0 +1,105 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdCookieDisclaimer from "../../../components/CmdCookieDisclaimer"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import ViewCodeData from "../../components/ViewCodeData"
10
+ import CmdTabs from "../../../components/CmdTabs"
11
+ import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
12
+
13
+ // import example-data
14
+ import cookieDisclaimer from '../../../assets/data/cookie-disclaimer.json'
15
+ import CmdCode from "../../data/CmdCookieDisclaimerHelp"
16
+ import propertyDescriptions from "../../generated/CmdCookieDisclaimerPropertyDescriptions.json"
17
+
18
+ const propertyStructures = {
19
+ cookieOptions: {
20
+ "required": {
21
+ "headline": "<string>",
22
+ "cookies": [
23
+ {
24
+ "id": "<string>",
25
+ "description": "<string>",
26
+ "labelText": "<string>",
27
+ "checked": "<boolean>",
28
+ "status": "<string>",
29
+ "linkDataPrivacy": {
30
+ "label": "<string>",
31
+ "link": "<string>",
32
+ "linkText": "<string>"
33
+ }
34
+ },
35
+ {
36
+ "id": "<string>",
37
+ "description": "<string>",
38
+ "labelText": "<string>",
39
+ "checked": "<boolean>",
40
+ "status": "<string>",
41
+ "linkDataPrivacy": {
42
+ "label": "<string>",
43
+ "link": "<string>",
44
+ "target": "<string>",
45
+ "linkText": "<string>"
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ "optional": {
51
+ "headline": "Optional cookies",
52
+ "cookies": [
53
+ {
54
+ "id": "<string>",
55
+ "description": "<string>",
56
+ "labelText": "<string>",
57
+ "checked": "<boolean>",
58
+ "linkDataPrivacy": {
59
+ "label": "<string>",
60
+ "link": "<string>",
61
+ "target": "<string>",
62
+ "linkText": "<string>"
63
+ }
64
+ },
65
+ {
66
+ "id": "<string>",
67
+ "description": "<string>",
68
+ "labelText": "<string>",
69
+ "checked": "<boolean>",
70
+ "linkDataPrivacy": {
71
+ "label": "<string>",
72
+ "link": "<string>",
73
+ "target": "<string>",
74
+ "linkText": "<string>"
75
+ }
76
+ }
77
+ ]
78
+ }
79
+ }
80
+ }
81
+ </script>
82
+
83
+ <template>
84
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
85
+ <template v-slot:tab-content-0>
86
+ <h2>Component</h2>
87
+ <ExampleSectionWrapper componentName="CmdCookieDisclaimer" headlineText="Cookie Disclaimer">
88
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="cookieDisclaimer">
89
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
90
+ <CmdCookieDisclaimer
91
+ :cmdCustomHeadline="{headlineText: 'Usage of cookies on this web site', headlineLevel: 3}"
92
+ :cookieOptions="cookieDisclaimer"
93
+ buttonLabelAcceptAllCookies="Accept all cookies"
94
+ buttonLabelAcceptCurrentSettings="Accept current settings"
95
+ @closeCookieDisclaimer="fancyBoxCookieDisclaimer = false"
96
+ />
97
+ </teleport>
98
+ </ViewCodeData>
99
+ </ExampleSectionWrapper>
100
+ </template>
101
+ <template v-slot:tab-content-1>
102
+ <ComponentProperties :properties="CmdCookieDisclaimer.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
103
+ </template>
104
+ </CmdTabs>
105
+ </template>
@@ -0,0 +1,53 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdCustomHeadline from "../../../components/CmdCustomHeadline"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import ViewCodeData from "../../components/ViewCodeData"
10
+ import CmdTabs from "../../../components/CmdTabs"
11
+ import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
12
+
13
+ // import example-data
14
+ import CmdCode from "../../data/CmdCustomHeadlineHelp"
15
+ import propertyDescriptions from "../../generated/CmdCustomHeadlinePropertyDescriptions.json"
16
+ </script>
17
+
18
+ <template>
19
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
20
+ <template v-slot:tab-content-0>
21
+ <h2>Component</h2>
22
+ <ExampleSectionWrapper componentName="CmdCustomHeadline" headlineText="Headline level 1 (with icon and pre-headline)">
23
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
24
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
25
+ <CmdCustomHeadline headlineText="Headline level 1" :headlineLevel="1" preHeadlineText="Pre-headline text" iconClass="icon-user-profile"/>
26
+ <CmdCustomHeadline headlineText="Headline level 1" :headlineLevel="1"/>
27
+ <CmdCustomHeadline headlineText="Headline level 2" :headlineLevel="2"/>
28
+ <CmdCustomHeadline headlineText="Headline level 3" :headlineLevel="3"/>
29
+ <CmdCustomHeadline headlineText="Headline level 4" :headlineLevel="4"/>
30
+ <CmdCustomHeadline headlineText="Headline level 5" :headlineLevel="5"/>
31
+ <CmdCustomHeadline headlineText="Headline level 6" :headlineLevel="6"/>
32
+ </teleport>
33
+ </ViewCodeData>
34
+ </ExampleSectionWrapper>
35
+ <hr />
36
+ <ExampleSectionWrapper componentName="CmdCustomHeadline" headlineText="Headline level 1-6 (without icons and pre-headline">
37
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
38
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
39
+ <CmdCustomHeadline headlineText="Headline level 1" :headlineLevel="1"/>
40
+ <CmdCustomHeadline headlineText="Headline level 2" :headlineLevel="2"/>
41
+ <CmdCustomHeadline headlineText="Headline level 3" :headlineLevel="3"/>
42
+ <CmdCustomHeadline headlineText="Headline level 4" :headlineLevel="4"/>
43
+ <CmdCustomHeadline headlineText="Headline level 5" :headlineLevel="5"/>
44
+ <CmdCustomHeadline headlineText="Headline level 6" :headlineLevel="6"/>
45
+ </teleport>
46
+ </ViewCodeData>
47
+ </ExampleSectionWrapper>
48
+ </template>
49
+ <template v-slot:tab-content-1>
50
+ <ComponentProperties :properties="CmdCustomHeadline.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
51
+ </template>
52
+ </CmdTabs>
53
+ </template>