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,52 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdTabs from "../../../components/CmdTabs"
8
+ import CmdCustomHeadline from "../../../components/CmdCustomHeadline"
9
+ import ComponentProperties from "../../components/ComponentProperties"
10
+ import ViewCodeData from "../../components/ViewCodeData"
11
+
12
+ // import example-data
13
+ import CmdCode from "../../data/CmdTabsHelp"
14
+ import tabs from "../../../assets/data/tabs.json"
15
+ import propertyDescriptions from "../../generated/CmdTabsPropertyDescriptions.json"
16
+
17
+ const propertyStructures = {
18
+ tabs: [
19
+ {
20
+ "name": "<string>",
21
+ "headline": "<string>",
22
+ "htmlContent": "<string>"
23
+ }
24
+ ]
25
+ }
26
+ </script>
27
+
28
+ <template>
29
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
30
+ <template v-slot:tab-content-0>
31
+ <h2>Component</h2>
32
+ <CmdCustomHeadline headlineText="Tabs (not stretched)" :headlineLevel="3" preHeadlineText="Example #1" />
33
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="tabs">
34
+ <CmdTabs
35
+ :stretchTabs="false"
36
+ :tabs="tabs"
37
+ />
38
+ </ViewCodeData>
39
+ <hr />
40
+ <CmdCustomHeadline headlineText="Tabs (stretched)" :headlineLevel="3" preHeadlineText="Example #2" />
41
+ <ViewCodeData :code="CmdCode[1]" :data="tabs">
42
+ <CmdTabs
43
+ :stretchTabs="true"
44
+ :tabs="tabs"
45
+ />
46
+ </ViewCodeData>
47
+ </template>
48
+ <template v-slot:tab-content-1>
49
+ <ComponentProperties :properties="CmdTabs.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
50
+ </template>
51
+ </CmdTabs>
52
+ </template>
@@ -0,0 +1,50 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdThumbnailScroller from "../../../components/CmdThumbnailScroller"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import ViewCodeData from "../../components/ViewCodeData"
10
+ import CmdTabs from "../../../components/CmdTabs"
11
+ import CmdCode from "../../data/CmdThumbnailScrollerHelp"
12
+
13
+ // import example-data
14
+ import thumbnailScroller from "../../../assets/data/thumbnail-scroller.json"
15
+ import propertyDescriptions from "../../generated/CmdThumbnailScrollerPropertyDescriptions.json"
16
+
17
+ const propertyStructures = {
18
+ thumbnailScrollerItems: [
19
+ {
20
+ "imgId": "<number>",
21
+ "srcImageSmall": "<string>",
22
+ "srcImageLarge": "<string>",
23
+ "alt": "<string>",
24
+ "figcaption": "<string>"
25
+ }
26
+ ],
27
+ figcaption: {
28
+ show: "<boolean>",
29
+ position: "<string>"
30
+ }
31
+ }
32
+ </script>
33
+
34
+ <template>
35
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
36
+ <template v-slot:tab-content-0>
37
+ <h2>Component</h2>
38
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="thumbnailScroller">
39
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
40
+ <CmdThumbnailScroller
41
+ :thumbnail-scroller-items="thumbnailScroller"
42
+ />
43
+ </teleport>
44
+ </ViewCodeData>
45
+ </template>
46
+ <template v-slot:tab-content-1>
47
+ <ComponentProperties :properties="CmdThumbnailScroller.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
48
+ </template>
49
+ </CmdTabs>
50
+ </template>
@@ -0,0 +1,59 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdTooltip from "../../../components/CmdTooltip"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import ViewCodeData from "../../components/ViewCodeData"
10
+ import CmdTabs from "../../../components/CmdTabs"
11
+ import CmdCustomHeadline from "../../../components/CmdCustomHeadline"
12
+
13
+ // import example-data
14
+ import CmdCode from "../../data/CmdTooltipHelp"
15
+ import propertyDescriptions from "../../generated/CmdTooltipPropertyDescriptions.json"
16
+
17
+ const propertyStructures = {
18
+ iconClose: {
19
+ show: "<boolean>",
20
+ iconClass: "<string>",
21
+ tooltip: "<string>"
22
+ }
23
+ }
24
+ </script>
25
+
26
+ <template>
27
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
28
+ <template v-slot:tab-content-0>
29
+ <h2>Component</h2>
30
+ <CmdCustomHeadline headlineText="Tooltip opened by hover" :headlineLevel="3" preHeadlineText="Example #1" />
31
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
32
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
33
+ <p>
34
+ <a href="#" @click.prevent id="hoverme">Hover me!</a><br/>
35
+ </p>
36
+ <CmdTooltip
37
+ related-id="hoverme">
38
+ Tooltip for hover
39
+ </CmdTooltip>
40
+ </teleport>
41
+ </ViewCodeData>
42
+ <hr />
43
+ <CmdCustomHeadline headlineText="Tooltip opened (and closed) by click" :headlineLevel="3" preHeadlineText="Example #2" />
44
+ <ViewCodeData :code="CmdCode[1]">
45
+ <p>
46
+ <a href="#" @click.prevent id="clickme" title="Native tooltip">Click me!</a>
47
+ </p>
48
+ <CmdTooltip
49
+ related-id="clickme"
50
+ :toggle-visibility-by-click="true">
51
+ Tooltip for click
52
+ </CmdTooltip>
53
+ </ViewCodeData>
54
+ </template>
55
+ <template v-slot:tab-content-1>
56
+ <ComponentProperties :properties="CmdTooltip.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
57
+ </template>
58
+ </CmdTabs>
59
+ </template>
@@ -0,0 +1,59 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdUploadForm from "../../../components/CmdUploadForm"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import ViewCodeData from "../../components/ViewCodeData"
10
+ import CmdTabs from "../../../components/CmdTabs"
11
+ import CmdCustomHeadline from "../../../components/CmdCustomHeadline"
12
+
13
+ // import example-data
14
+ import CmdCode from "../../data/CmdUploadFormHelp"
15
+ import propertyDescriptions from "../../generated/CmdUploadFormPropertyDescriptions.json"
16
+
17
+ const propertyStructures = {
18
+ uploadOptions: {
19
+ url: "<string>",
20
+ filesParam: "<string>",
21
+ additionalParams: "<object>",
22
+ }
23
+ }
24
+ </script>
25
+
26
+ <template>
27
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
28
+ <template v-slot:tab-content-0>
29
+ <h2>Component</h2>
30
+ <CmdCustomHeadline headlineText="Advanced mode" :headlineLevel="3" preHeadlineText="Example #1" />
31
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
32
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
33
+ <CmdUploadForm
34
+ :cmdCustomHeadline="{headlineText: 'Select files to upload', headlineLevel: 5}"
35
+ :enableDragAndDrop="true"
36
+ :allowedFileExtensions="['gif','png','jpg']"
37
+ :allowMultipleFileUploads="true"
38
+ :uploadOptions="{url: 'some url'}"
39
+ />
40
+ </teleport>
41
+ </ViewCodeData>
42
+ <hr />
43
+ <CmdCustomHeadline headlineText="Simple mode" :headlineLevel="3" preHeadlineText="Example #2" />
44
+ <ViewCodeData :code="CmdCode[1]">
45
+ <CmdUploadForm
46
+ :advancedMode="false"
47
+ :maxFileUploadSize="5242880"
48
+ :enableDragAndDrop="true"
49
+ :allowedFileExtensions="['pdf']"
50
+ :allowMultipleFileUploads="false"
51
+ :uploadOptions="{url: 'some url'}"
52
+ />
53
+ </ViewCodeData>
54
+ </template>
55
+ <template v-slot:tab-content-1>
56
+ <ComponentProperties :properties="CmdUploadForm.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
57
+ </template>
58
+ </CmdTabs>
59
+ </template>
@@ -0,0 +1,46 @@
1
+ <script setup>
2
+ // import functions
3
+ import {tabProps, tabHandlers} from "../../tabs"
4
+ import {isFrameMode} from "../../../utils/common"
5
+
6
+ // import components
7
+ import CmdWidthLimitationWrapper from "../../../components/CmdWidthLimitationWrapper"
8
+ import ComponentProperties from "../../components/ComponentProperties"
9
+ import ViewCodeData from "../../components/ViewCodeData"
10
+ import CmdTabs from "../../../components/CmdTabs"
11
+
12
+ // import example-data
13
+ import CmdCode from "../../data/CmdWidthLimitationWrapperHelp"
14
+ import propertyDescriptions from "../../generated/CmdWidthLimitationWrapperPropertyDescriptions.json"
15
+ </script>
16
+
17
+ <template>
18
+ <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
19
+ <template v-slot:tab-content-0>
20
+ <h2>Component</h2>
21
+ <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
22
+ <teleport to="#frame-component-target" :disabled="!isFrameMode()">
23
+ <CmdWidthLimitationWrapper>
24
+ <!-- begin slot-content -->
25
+ Content
26
+ <!-- end slot-content -->
27
+ </CmdWidthLimitationWrapper>
28
+ </teleport>
29
+ </ViewCodeData>
30
+ </template>
31
+ <template v-slot:tab-content-1>
32
+ <ComponentProperties :properties="CmdWidthLimitationWrapper.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
33
+ </template>
34
+ </CmdTabs>
35
+ </template>
36
+
37
+ <style lang="scss">
38
+ .cmd-width-limitation-wrapper {
39
+ border: var(--default-border);
40
+ border-style: dotted;
41
+
42
+ > section {
43
+ border: inherit;
44
+ }
45
+ }
46
+ </style>
package/src/index.js CHANGED
@@ -4,19 +4,21 @@ export { default as CmdAccordion } from '@/components/CmdAccordion'
4
4
  export { default as CmdAddressData } from '@/components/CmdAddressData'
5
5
  export { default as CmdBackToTopButton } from '@/components/CmdBackToTopButton'
6
6
  export { default as CmdBox } from '@/components/CmdBox'
7
+ export { default as CmdBoxWrapper } from '@/components/CmdBoxWrapper'
7
8
  export { default as CmdBreadcrumbs } from '@/components/CmdBreadcrumbs'
8
9
  export { default as CmdCompanyLogo } from '@/components/CmdCompanyLogo'
9
10
  export { default as CmdCookieDisclaimer } from '@/components/CmdCookieDisclaimer'
10
11
  export { default as CmdCopyrightInformation } from '@/components/CmdCopyrightInformation'
12
+ export { default as CmdCustomHeadline } from '@/components/CmdCustomHeadline'
11
13
  export { default as CmdFakeSelect } from '@/components/CmdFakeSelect'
12
14
  export { openFancyBox, default as CmdFancyBox } from '@/components/CmdFancyBox'
13
15
  export { default as CmdFormElement } from '@/components/CmdFormElement'
14
16
  export { default as CmdFormFilters } from '@/components/CmdFormFilters'
15
- export { default as CmdFooterNavigation } from '@/components/CmdFooterNavigation'
17
+ export { default as CmdGoogleMaps } from '@/components/CmdGoogleMaps'
16
18
  export { default as CmdImageGallery } from '@/components/CmdImageGallery'
17
19
  export { default as CmdImageZoom } from '@/components/CmdImageZoom'
20
+ export { default as CmdListOfLinks } from '@/components/CmdListOfLinks'
18
21
  export { default as CmdLoginForm } from '@/components/CmdLoginForm'
19
- export { default as CmdMainHeadline } from '@/components/CmdMainHeadline'
20
22
  export { default as CmdMainNavigation } from '@/components/CmdMainNavigation'
21
23
  export { default as CmdMultipleSwitch } from '@/components/CmdMultipleSwitch'
22
24
  export { default as CmdMultistepFormProgressBar } from '@/components/CmdMultistepFormProgressBar'
@@ -34,7 +36,8 @@ export { default as CmdTable } from '@/components/CmdTable'
34
36
  export { default as CmdTabs } from '@/components/CmdTabs'
35
37
  export { default as CmdThumbnailScroller } from '@/components/CmdThumbnailScroller'
36
38
  export { default as CmdTooltip } from '@/components/CmdTooltip'
37
- export { default as CmdTopHeaderNavigation } from '@/components/CmdTopHeaderNavigation'
39
+ export { default as CmdUploadForm } from '@/components/CmdUploadForm'
38
40
  export { default as CmdWidthLimitationWrapper } from '@/components/CmdWidthLimitationWrapper'
39
41
 
42
+ export { default as DirFocus } from '@/directives/focus'
40
43
  export { default as DirTelephone } from '@/directives/telephone'
package/src/main.js CHANGED
@@ -4,12 +4,16 @@ import 'comand-frontend-framework/src/assets/css/framework.css'
4
4
  import 'comand-frontend-framework/src/assets/css/framework-iconfont.css'
5
5
 
6
6
  import { createApp } from 'vue'
7
- import App from './App.vue'
8
- import { createRouter, createWebHistory } from 'vue-router'
7
+ // import App from './App.vue'
8
+ import ComponentLibraryHelp from './ComponentLibraryHelp'
9
+ //import { createRouter, createWebHistory } from 'vue-router'
9
10
  import "clickout-event"
10
11
 
11
- /* import directive to format telephone- and fax-number */
12
+ /* import directives */
13
+ // directive to format telephone- and fax-number
12
14
  import directiveTelephone from "./directives/telephone"
15
+ // directive to set focus on specific form-elements
16
+ import directiveFocus from "./directives/focus"
13
17
 
14
18
  /* import additional iconfont containing company-logos */
15
19
  import '@/assets/styles/logos-iconfont.css'
@@ -23,18 +27,24 @@ import '@/assets/styles/transitions.scss'
23
27
  /* import css for your custom styles */
24
28
  import '@/assets/styles/template.css'
25
29
 
30
+ /* import css for prism-library (for styling syntax) */
31
+ import "prismjs/themes/prism.css"
32
+
26
33
  /* import css for demopage only */
27
34
  import 'comand-frontend-framework/public/demopage-only.css'
28
35
 
29
- const router = createRouter({
30
- history: createWebHistory(process.env.BASE_URL),
31
- routes: [
32
- {
33
- path: '/:pathMatch(.*)*',
34
- name: 'somename',
35
- component: App
36
- }
37
- ]
38
- })
39
-
40
- createApp(App).use(router).directive('telephone', directiveTelephone).mount('#app')
36
+ import router from "./router"
37
+
38
+ // const router = createRouter({
39
+ // history: createWebHistory(process.env.BASE_URL),
40
+ // routes: [
41
+ // {
42
+ // path: '/:pathMatch(.*)*',
43
+ // name: 'somename',
44
+ // component: App
45
+ // }
46
+ // ]
47
+ // })
48
+
49
+ // createApp(App).use(router).directive('telephone', directiveTelephone).directive('focus', directiveFocus).mount('#app')
50
+ createApp(ComponentLibraryHelp).use(router).directive('telephone', directiveTelephone).directive('focus', directiveFocus).mount('#app')
@@ -0,0 +1,17 @@
1
+ export default {
2
+ data() {
3
+ return {
4
+ defaultMessageProperties: {
5
+ "cmdaddressdata.labeltext.company": "Company:",
6
+ "cmdaddressdata.labeltext.address": "Address:",
7
+ "cmdaddressdata.labeltext.telephone": "Telephone:",
8
+ "cmdaddressdata.labeltext.mobile_phone": "Mobile phone:",
9
+ "cmdaddressdata.labeltext.fax": "Fax:",
10
+ "cmdaddressdata.labeltext.email": "Email:",
11
+ "cmdaddressdata.title.open_address_on_google_maps:": "Open address on GoogleMaps™ in new tab",
12
+ "cmdaddressdata.title.call_number": "Call number",
13
+ "cmdaddressdata.title.send_email": "Send email"
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,10 @@
1
+ export default {
2
+ data() {
3
+ return {
4
+ defaultMessageProperties: {
5
+ "cmdbox.productbox.new": "New",
6
+ "cmdbox.productbox.article_no": "Article No:"
7
+ }
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ data() {
3
+ return {
4
+ defaultMessageProperties: {
5
+ "cmdfakeselect.headline.requirement_for_input": "Requirement for input"
6
+ }
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ data() {
3
+ return {
4
+ defaultMessageProperties: {
5
+ "cmdformelement.headline.requirement_for_input": "Requirement for input"
6
+ }
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ data() {
3
+ return {
4
+ defaultMessageProperties: {
5
+ "cmdimagegallery.tooltip.open_large_image": "Open large image"
6
+ }
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,14 @@
1
+ export default {
2
+ data() {
3
+ return {
4
+ defaultMessageProperties: {
5
+ "cmdsitesearch.labeltext.what_to_search": "What do you like to search for?",
6
+ "cmdsitesearch.placeholder.what_to_search": "Search",
7
+ "cmdsitesearch.labeltext.where_to_search": "Where do you want to search?",
8
+ "cmdsitesearch.placeholder.where_to_search": "Zip or city",
9
+ "cmdsitesearch.show_filter_options": "Show filter options",
10
+ "cmdsitesearch.hide_filter_options": "Hide filter options",
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,53 @@
1
+ export default {
2
+ data() {
3
+ return {
4
+ defaultMessageProperties: {
5
+ "cmduploadform.no_file_to_upload": "No file selected to upload",
6
+ "cmduploadform.no_files_to_upload": "No files selected to upload",
7
+ "cmduploadform.labeltext.select_file": "Select file to upload",
8
+ "cmduploadform.labeltext.select_files": "Select files to upload",
9
+ "cmduploadform.labeltext.remove_file_from_list": "Remove file from list",
10
+ "cmduploadform.labeltext.remove_all_files_from_list": "Remove all files from list",
11
+ "cmduploadform.labeltext.file_uploading": "file to upload",
12
+ "cmduploadform.labeltext.files_uploading": "files to upload",
13
+ "cmduploadform.labeltext.comment": "Comment:",
14
+ "cmduploadform.buttontext.upload_file": "Upload file",
15
+ "cmduploadform.buttontext.upload_files": "Upload files",
16
+ "cmduploadform.buttontext.cancel": "Cancel",
17
+ "cmduploadform.placeholder.comment": "Please type in a specific comment",
18
+ "cmduploadform.system_message.found_duplicate_file": "Found duplicate file (not added again)",
19
+ "cmduploadform.system_message.upload_success": "Upload successful",
20
+ "cmduploadform.system_message.upload_failed": "Upload failed",
21
+ "cmduploadform.system_message.fill_required": "Fill all required fields",
22
+ "cmduploadform.system_message.the_following_errors_occurred": "The following errors occurred!",
23
+ "cmduploadform.system_message.an_unknown_error_occurred": "An unknown error occurred!",
24
+ "cmduploadform.system_message.only_one_file_allowed": "Only one file allowed!",
25
+ "cmduploadform.system_message_total_size_of_files_too_large": "Total size of files too large!",
26
+ "cmduploadform.system_message.duplicate_file": 'Duplicate file "{0}" found (not added to list again)',
27
+ "cmduploadform.system_message.not_allowed_file_type": 'File "{0}" has not allowed file type ({1})',
28
+ "cmduploadform.system_message.all_files_are_uploaded_successfully": "All files are uploaded successfully",
29
+ "cmduploadform.system_message.some_files_are_not_uploaded_successfully": "Some files are not uploaded successfully",
30
+ "cmduploadform.system_message.file_size_too_large": 'File size of "{0}" too large ({1})',
31
+ "cmduploadform.headline.summary_of_all_files": "Summary of all files",
32
+ "cmduploadform.headline.list_of_selected_files": "List of selected files",
33
+ "cmduploadform.headline.select_additional_files": "Select additional files",
34
+ "cmduploadform.headline.select_new_file": "Chosen the wrong file? Select a new one",
35
+ "cmduploadform.allowed_file_types": "Allowed file types:",
36
+ "cmduploadform.max_total_upload_size": "Max. total upload size:",
37
+ "cmduploadform.max_file_upload_size": "Max. file upload size:",
38
+ "cmduploadform.or": "or",
39
+ "cmduploadform.drag_and_drop": "drag (and drop)",
40
+ "cmduploadform.additional": "additional",
41
+ "cmduploadform.new": "new",
42
+ "cmduploadform.files_to_this_area": "files to this area",
43
+ "cmduploadform.tooltip.toggle_list_of_allowed_file_types": "Toggle list of allowed file types",
44
+ "cmduploadform.reset_upload": "Reset upload",
45
+ "cmduploadform.tooltip.all_files_will_be_removed": "All files will be remove from upload-list!",
46
+ "cmduploadform.select_image": "Select image",
47
+ "cmduploadform.select_file": "Select file",
48
+ "cmduploadform.drag_and_drop_file_here": "Drag and drop file here",
49
+ "cmduploadform.max_upload_size": "Max. upload size:"
50
+ }
51
+ }
52
+ }
53
+ }