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
package/src/App.vue CHANGED
@@ -16,11 +16,13 @@
16
16
  <ul>
17
17
  <li><a href="#section-accordion">Accordion</a></li>
18
18
  <li><a href="#section-advanced-form-elements">Advanced Form Elements</a></li>
19
+ <li><a href="#section-bank-account-data">Bank Account Data</a></li>
19
20
  <li><a href="#section-boxes">Boxes</a></li>
20
21
  <li><a href="#section-breadcrumbs">Breadcrumbs</a></li>
21
22
  <li><a href="#section-cookie-disclaimer">Cookie-Disclaimer</a></li>
22
23
  </ul>
23
24
  <ul>
25
+ <li><a href="#section-custom-headline">Custom Headline</a></li>
24
26
  <li><a href="#section-fancybox">Fancybox</a></li>
25
27
  <li><a href="#section-google-maps-integration">Google-Maps&trade;-Integration</a></li>
26
28
  <li><a href="#section-image-gallery">Image Gallery</a></li>
@@ -33,9 +35,9 @@
33
35
  <li><a href="#section-pager">Pager</a></li>
34
36
  <li><a href="#section-share-buttons">Share Buttons</a></li>
35
37
  <li><a href="#section-slideshow">Slideshow</a></li>
38
+ <li><a href="#section-system-message">System-Message</a></li>
36
39
  </ul>
37
40
  <ul>
38
- <li><a href="#section-system-message">System-Message</a></li>
39
41
  <li><a href="#section-tables">Tables</a></li>
40
42
  <li><a href="#section-tabs">Tabs</a></li>
41
43
  <li><a href="#section-thumbnail-scroller">Thumbnail-Scroller</a></li>
@@ -107,23 +109,24 @@
107
109
  <ul class="list-status">
108
110
  <li><a href="#" @click.prevent="formElementStatus = ''" :class="{'active' : formElementStatus === ''}"
109
111
  id="status-default">Default</a></li>
110
- <li><a href="#" @click.prevent="formElementStatus = 'error'"
112
+ <li class="error"><a href="#" @click.prevent="formElementStatus = 'error'"
111
113
  :class="{'active' : formElementStatus === 'error'}" id="status-error">Error</a></li>
114
+ <li><a href="#" @click.prevent="formElementStatus = 'warning'"
115
+ :class="{'active' : formElementStatus === 'warning'}" id="status-warning">Warning</a></li>
116
+ <li><a href="#" @click.prevent="formElementStatus = 'success'"
117
+ :class="{'active' : formElementStatus === 'success'}" id="status-success">Success</a></li>
118
+ <li><a href="#" @click.prevent="formElementStatus = 'info'"
119
+ :class="{'active' : formElementStatus === 'info'}" id="status-info">Info</a></li>
112
120
  <li><a href="#" @click.prevent="formElementStatus = 'disabled'"
113
121
  :class="{'active' : formElementStatus === 'disabled'}" id="status-disabled">Disabled</a></li>
114
122
  </ul>
115
123
  </div>
116
124
 
117
- <!-- begin formfilters -->
118
- <CmdFormFilters v-model:selectedOptions="selectedOptions"
119
- :selectedOptionsName="getOptionName"
120
- labelDeleteAllFilters="Delete all filters"
121
- iconClassDeleteAllFilters="icon-delete"
122
- iconClassDeleteFilter="icon-cancel"
123
- />
124
- <!-- end formfilters -->
125
+ <!-- begin cmd-form-filters -->
126
+ <CmdFormFilters v-model:selectedOptions="fakeSelectFilters" :selectedOptionsName="getOptionName" />
127
+ <!-- end cmd-form-filters -->
125
128
 
126
- <form method="get" novalidate="novalidate" id="advanced-form-elements">
129
+ <CmdForm :use-fieldset="false" id="advanced-form-elements" novalidate="novalidate">
127
130
  <fieldset class="grid-container-create-columns">
128
131
  <legend>Legend</legend>
129
132
  <h2>Form Element-Component</h2>
@@ -134,9 +137,11 @@
134
137
  :status="formElementStatus"
135
138
  placeholder="Type in text"
136
139
  tooltipText="This is a tooltip"
140
+ v-bind="{useCustomTooltip: false}"
137
141
  />
138
142
  <CmdFormElement labelText="Input for selectbox:"
139
143
  element="select"
144
+ required="required"
140
145
  :status="formElementStatus"
141
146
  v-model:value="selectedOption"
142
147
  :selectOptions="selectOptionsData"
@@ -157,6 +162,7 @@
157
162
  :status="formElementStatus"
158
163
  :selectData="fakeSelectOptionsData"
159
164
  v-model:value="fakeSelectDefault"
165
+ required
160
166
  defaultOptionName="Select an option:"
161
167
  />
162
168
  <CmdFakeSelect labelText="Default selectbox with icons:"
@@ -170,8 +176,20 @@
170
176
  :status="formElementStatus"
171
177
  :selectData="fakeSelectOptionsData"
172
178
  v-model:value="fakeSelectCheckbox"
179
+ defaultOptionName="Options:"
180
+ :required="true"
181
+ id="selectbox-with-checkboxes"
182
+ type="checkboxOptions"
183
+ :useCustomTooltip="true"
184
+ />
185
+ <CmdFakeSelect labelText="Selectbox with filters:"
186
+ :status="formElementStatus"
187
+ :selectData="fakeSelectFilterOptionsData"
188
+ v-model:value="fakeSelectFilters"
173
189
  defaultOptionName="Filters:"
190
+ id="selectbox-with-filters"
174
191
  type="checkboxOptions"
192
+ :useCustomTooltip="true"
175
193
  />
176
194
  <CmdFakeSelect labelText="Selectbox with slot-content:"
177
195
  :status="formElementStatus"
@@ -198,7 +216,7 @@
198
216
  :status="formElementStatus"
199
217
  :selectData="fakeSelectColorsData"
200
218
  v-model:value="selectedColor"
201
- defaultOptionName="Select color:"
219
+ required="required"
202
220
  type="color"
203
221
  />
204
222
  </div>
@@ -213,17 +231,17 @@
213
231
  <label for="range-slider" :class="formElementStatus">
214
232
  <span>Single-Slider (with in- and output):</span>
215
233
  <span class="flex-container no-flex">
216
- <input type="number" :class="formElementStatus" v-model="rangeValue"
217
- :disabled="formElementStatus === 'disabled'" min="0" max="100"/>
218
- <input type="range"
219
- class="range-slider"
220
- :class="{'disabled': formElementStatus === 'disabled'}"
221
- id="range-slider"
222
- v-model="rangeValue"
223
- :disabled="formElementStatus === 'disabled'"
224
- min="0"
225
- max="100"/>
226
- </span>
234
+ <input type="number" :class="formElementStatus" v-model="rangeValue"
235
+ :disabled="formElementStatus === 'disabled'" min="0" max="100"/>
236
+ <input type="range"
237
+ class="range-slider"
238
+ :class="{'disabled': formElementStatus === 'disabled'}"
239
+ id="range-slider"
240
+ v-model="rangeValue"
241
+ :disabled="formElementStatus === 'disabled'"
242
+ min="0"
243
+ max="100"/>
244
+ </span>
227
245
  </label>
228
246
  <!-- end slider -->
229
247
 
@@ -234,34 +252,34 @@
234
252
  <div class="label inline">
235
253
  <span>Label for Toggle-Switch-Checkbox with Switch-Label:</span>
236
254
  <span class="flex-container no-flex">
237
- <CmdSwitchButton
238
- type="checkbox"
239
- id="checkbox1"
240
- name="checkbox1"
241
- onLabel="Label on"
242
- offLabel="Label off"
243
- inputValue="checkbox1"
244
- :disabled="formElementStatus === 'disabled'"
245
- v-model:value="switchButtonCheckbox"/>
246
- <CmdSwitchButton
247
- type="checkbox"
248
- id="checkbox2"
249
- name="checkbox2"
250
- onLabel="Label on"
251
- offLabel="Label off"
252
- labelText="Labeltext"
253
- inputValue="checkbox2"
254
- :disabled="formElementStatus === 'disabled'"
255
- v-model:value="switchButtonCheckbox"/>
256
- <CmdSwitchButton
257
- type="checkbox"
258
- id="checkbox3"
259
- name="checkbox3"
260
- inputValue="checkbox3"
261
- labelText="Labeltext"
262
- :disabled="formElementStatus === 'disabled'"
263
- v-model:value="switchButtonCheckbox"/>
264
- </span>
255
+ <CmdSwitchButton
256
+ type="checkbox"
257
+ id="checkbox1"
258
+ name="checkbox1"
259
+ onLabel="Label on"
260
+ offLabel="Label off"
261
+ inputValue="checkbox1"
262
+ :disabled="formElementStatus === 'disabled'"
263
+ v-model:value="switchButtonCheckbox"/>
264
+ <CmdSwitchButton
265
+ type="checkbox"
266
+ id="checkbox2"
267
+ name="checkbox2"
268
+ onLabel="Label on"
269
+ offLabel="Label off"
270
+ labelText="Labeltext"
271
+ inputValue="checkbox2"
272
+ :disabled="formElementStatus === 'disabled'"
273
+ v-model:value="switchButtonCheckbox"/>
274
+ <CmdSwitchButton
275
+ type="checkbox"
276
+ id="checkbox3"
277
+ name="checkbox3"
278
+ inputValue="checkbox3"
279
+ labelText="Labeltext"
280
+ :disabled="formElementStatus === 'disabled'"
281
+ v-model:value="switchButtonCheckbox"/>
282
+ </span>
265
283
  <span>Current value: {{ switchButtonCheckbox }}</span>
266
284
  </div>
267
285
  <!-- end toggle-switch-radio with switch-label -->
@@ -269,17 +287,17 @@
269
287
  <div class="label inline">
270
288
  <span>Label for Toggle-Switch-Checkbox with Switch-Label (colored):</span>
271
289
  <span class="flex-container no-flex">
272
- <CmdSwitchButton
273
- type="checkbox"
274
- id="checkbox4"
275
- name="checkbox4"
276
- onLabel="Label on"
277
- offLabel="Label off"
278
- :colored="true"
279
- inputValue="checkbox3"
280
- :disabled="formElementStatus === 'disabled'"
281
- v-model:value="switchButtonCheckboxColored"/>
282
- </span>
290
+ <CmdSwitchButton
291
+ type="checkbox"
292
+ id="checkbox4"
293
+ name="checkbox4"
294
+ onLabel="Label on"
295
+ offLabel="Label off"
296
+ :colored="true"
297
+ inputValue="checkbox3"
298
+ :disabled="formElementStatus === 'disabled'"
299
+ v-model:value="switchButtonCheckboxColored"/>
300
+ </span>
283
301
  <span>Current value: {{ switchButtonCheckboxColored }}</span>
284
302
  </div>
285
303
  <!-- end toggle-switch-radio with switch-label -->
@@ -310,36 +328,123 @@
310
328
  v-model:value="switchButtonRadio"/>
311
329
  </span>
312
330
  </div>
331
+ <hr />
332
+ <h3>Toggle Switches with CmdFormElement</h3>
333
+ <CmdFormElement element="input"
334
+ type="checkbox"
335
+ id="toggle-switch-checkbox"
336
+ v-model:value="switchButtonCheckbox"
337
+ :displayLabelInline="true"
338
+ labelText="Labeltext for Single-SwitchButton (Checkbox)"
339
+ :toggleSwitch="true"
340
+ :status="formElementStatus"
341
+ />
342
+ <CmdFormElement element="input"
343
+ type="checkbox"
344
+ id="toggle-switch-checkbox"
345
+ v-model:value="switchButtonCheckbox"
346
+ :displayLabelInline="true"
347
+ labelText="Labeltext for SwitchButton (Checkbox)"
348
+ onLabel="Label on"
349
+ offLabel="Label off"
350
+ :toggleSwitch="true"
351
+ :status="formElementStatus"
352
+ />
353
+ <CmdFormElement element="input"
354
+ type="checkbox"
355
+ id="toggle-switch-checkbox-colored"
356
+ v-model:value="switchButtonCheckbox"
357
+ labelText="Labeltext for SwitchButton (Checkbox, colored)"
358
+ onLabel="Label on"
359
+ offLabel="Label off"
360
+ :colored="true"
361
+ :toggleSwitch="true"
362
+ :status="formElementStatus"
363
+ />
364
+ <CmdFormElement element="input"
365
+ type="radio"
366
+ name="radiogroup"
367
+ id="toggle-switch-radio1"
368
+ v-model:value="switchButtonCheckbox"
369
+ onLabel="Label on"
370
+ offLabel="Label off"
371
+ :colored="true"
372
+ :toggleSwitch="true"
373
+ :status="formElementStatus"
374
+ inputValue="radio1"
375
+ />
376
+ <CmdFormElement element="input"
377
+ type="radio"
378
+ name="radiogroup"
379
+ id="toggle-switch-radio2"
380
+ v-model:value="switchButtonCheckbox"
381
+ onLabel="Label on"
382
+ offLabel="Label off"
383
+ :colored="true"
384
+ :toggleSwitch="true"
385
+ :status="formElementStatus"
386
+ inputValue="radio2"
387
+ />
313
388
  <!-- end toggle-switch-radio with switch-label (colored) -->
314
389
 
315
390
  <h2>Inputfields in Columns</h2>
316
- <CmdFormElement element="input"
317
- required="required"
318
- labelText="Label for inputfield (with tooltip):"
319
- type="text"
320
- id="inputfield1"
321
- placeholder="This is placeholder text"
322
- v-model:value="inputField1"
323
- tooltipText="This is a tooltip!"
324
- :status="formElementStatus"/>
325
-
391
+ <div class="flex-container">
392
+ <CmdFormElement element="input"
393
+ labelText="Label for inputfield (with tooltip):"
394
+ type="text"
395
+ minlength="5"
396
+ id="inputfield1"
397
+ placeholder="This is placeholder text"
398
+ v-model:value="inputField1"
399
+ tooltipText="This is a tooltip!"
400
+ :status="formElementStatus"
401
+ />
402
+ <CmdFormElement element="input"
403
+ labelText="Label for inputfield (required):"
404
+ type="text"
405
+ required="required"
406
+ minlength="5"
407
+ id="inputfield-required"
408
+ placeholder="This is placeholder text"
409
+ v-model:value="inputFieldRequired"
410
+ tooltipText="This is a tooltip!"
411
+ :status="formElementStatus"
412
+ />
413
+ <CmdFormElement element="input"
414
+ labelText="Label for inputfield (with pattern):"
415
+ type="text"
416
+ id="inputfield-pattern"
417
+ placeholder="This is placeholder text"
418
+ pattern="/\d/"
419
+ v-model:value="inputFieldPattern"
420
+ tooltipText="This is a tooltip!"
421
+ :status="formElementStatus"
422
+ />
423
+ </div>
326
424
  <!-- begin inputfield in two columns -->
327
425
  <div class="flex-container">
328
426
  <CmdFormElement labelText="Label for inputfield (with icon):"
329
427
  element="input"
330
428
  type="text"
331
- id="inputfield2"
332
- innerIconClass="icon-user-profile"
429
+ id="inputfield-username"
430
+ fieldIconClass="icon-user-profile"
333
431
  placeholder="Type in username"
334
432
  tooltipText="This is a tooltip!"
335
- :status="formElementStatus"/>
433
+ maxlength="100"
434
+ v-model:value="inputUsername"
435
+ :status="formElementStatus"
436
+ />
336
437
  <CmdFormElement element="input"
337
- labelText="Label for inputfield (with icon):"
438
+ labelText="Label for passwordfield:"
338
439
  type="password"
339
- id="inputfield3"
340
- innerIconClass="icon-security-settings"
440
+ minlength="8"
441
+ maxlength="255"
442
+ id="inputfield-password"
443
+ fieldIconClass="icon-security-settings"
341
444
  placeholder="Type in password"
342
445
  tooltipText="This is a tooltip!"
446
+ :customRequirements="customRequirements"
447
+ v-model:value="inputPassword"
343
448
  :status="formElementStatus"/>
344
449
  </div>
345
450
  <!-- end inputfield in two columns -->
@@ -348,20 +453,35 @@
348
453
  labelText="Label (inline) for inputfield (number):"
349
454
  :displayLabelInline="true"
350
455
  type="number"
351
- id="inputfield4"
456
+ id="inputfield-number"
457
+ required="required"
458
+ min="0"
459
+ max="9"
460
+ v-model:value="inputNumber"
461
+ :customRequirements="[customRequirements[2]]"
352
462
  :status="formElementStatus"/>
353
463
  <CmdFormElement element="input"
354
464
  labelText="Label (inline) for inputfield (date):"
355
465
  :displayLabelInline="true"
356
466
  type="date"
357
- id="inputfield5"
467
+ id="inputfield-date"
468
+ v-model:value="inputDate"
358
469
  :status="formElementStatus"/>
359
470
  <CmdFormElement element="input"
360
471
  labelText="Label (inline) for inputfield (search):"
361
472
  :displayLabelInline="true"
362
473
  type="search"
363
- id="inputfield6"
474
+ id="inputfield-search"
364
475
  placeholder="Keyword(s)"
476
+ v-model:value="inputSearch"
477
+ :status="formElementStatus"/>
478
+ <CmdFormElement element="textarea"
479
+ labelText="Label for textarea:"
480
+ id="textarea"
481
+ minlength="1"
482
+ maxlength="100"
483
+ placeholder="Type in your message"
484
+ v-model:value="textarea"
365
485
  :status="formElementStatus"/>
366
486
  <div class="label inline">
367
487
  <span>Label for native checkboxes:</span>
@@ -369,18 +489,37 @@
369
489
  <CmdFormElement element="input"
370
490
  labelText="Label for checkbox with boolean"
371
491
  type="checkbox"
372
- id="inputfield7"
373
- v-model:value="checkboxStatus"
492
+ id="checkbox-with-boolean"
493
+ v-model:value="checkboxValue"
374
494
  :status="formElementStatus"/>
375
495
  <CmdFormElement element="input"
376
496
  labelText="Label for checkbox with value"
377
497
  v-model:value="checkboxValues"
378
- inputValue="checkboxValue"
498
+ inputValue="checkboxValue1"
379
499
  type="checkbox"
380
- id="inputfield8"
500
+ id="checkbox-with-value-1"
501
+ :status="formElementStatus"/>
502
+ <CmdFormElement element="input"
503
+ labelText="Label for checkbox with value"
504
+ v-model:value="checkboxValues"
505
+ inputValue="checkboxValue2"
506
+ type="checkbox"
507
+ id="checkbox-with-value-2"
381
508
  :status="formElementStatus"/>
382
509
  </div>
383
510
  </div>
511
+ <CmdFormElement element="input"
512
+ labelText="Label for (required) checkbox with boolean"
513
+ type="checkbox"
514
+ required="required"
515
+ id="checkbox-required-with-boolean"
516
+ v-model:value="checkboxRequiredValue"
517
+ :status="formElementStatus"/>
518
+ <p>
519
+ checkbox (required) with boolean: {{checkboxRequiredValue}}<br />
520
+ checkbox with boolean: {{checkboxValue}}<br />
521
+ checkboxes with values: {{checkboxValues}}
522
+ </p>
384
523
  <div class="label inline">
385
524
  <span>Label for Replaced Input-Type-Checkbox:</span>
386
525
  <div class="flex-container no-flex">
@@ -389,12 +528,13 @@
389
528
  type="checkbox"
390
529
  class="replace-input-type"
391
530
  id="inputfield9"
392
- v-model:value="replacedCheckboxStatus1"
531
+ v-model:value="replacedCheckboxValue"
532
+ inputValue="checkboxValue1"
393
533
  :status="formElementStatus"/>
394
534
  <CmdFormElement element="input"
395
535
  labelText="Label for replaced checkbox"
396
- v-model:value="replacedCheckboxStatus2"
397
- inputValue="checkboxValue"
536
+ v-model:value="replacedCheckboxValue"
537
+ inputValue="checkboxValue2"
398
538
  type="checkbox"
399
539
  class="replace-input-type"
400
540
  id="inputfield10"
@@ -410,7 +550,7 @@
410
550
  id="inputfield11"
411
551
  name="radiogroup"
412
552
  inputValue="radiobuttonValue1"
413
- v-model:value="radiobuttonStatus"
553
+ v-model:value="radiobuttonValue"
414
554
  :status="formElementStatus"/>
415
555
  <CmdFormElement element="input"
416
556
  labelText="Label for native radiobutton"
@@ -418,11 +558,13 @@
418
558
  id="inputfield12"
419
559
  name="radiogroup"
420
560
  inputValue="radiobuttonValue2"
421
- v-model:value="radiobuttonStatus"
422
- checked="checked"
561
+ v-model:value="radiobuttonValue"
423
562
  :status="formElementStatus"/>
424
563
  </div>
425
564
  </div>
565
+ <p>
566
+ Radiobuttons with values: {{radiobuttonValue}}
567
+ </p>
426
568
  <div class="label inline">
427
569
  <span>Label for Replaced Input-Type-Radio:</span>
428
570
  <div class="flex-container no-flex">
@@ -433,7 +575,7 @@
433
575
  id="inputfield13"
434
576
  name="replaced-radiogroup"
435
577
  inputValue="radiobuttonValue1"
436
- v-model:value="replacedRadiobuttonStatus"
578
+ v-model:value="replacedRadiobuttonValue"
437
579
  :status="formElementStatus"/>
438
580
  <CmdFormElement element="input"
439
581
  labelText="Label for replaced radiobutton"
@@ -442,8 +584,7 @@
442
584
  id="inputfield14"
443
585
  name="replaced-radiogroup"
444
586
  inputValue="radiobuttonValue2"
445
- v-model:value="replacedRadiobuttonStatus"
446
- checked="checked"
587
+ v-model:value="replacedRadiobuttonValue"
447
588
  :status="formElementStatus"/>
448
589
  </div>
449
590
  </div>
@@ -462,7 +603,7 @@
462
603
  <CmdMultipleSwitch labelText="Label for multiple-switch with radiobuttons:"
463
604
  :multipleSwitches="multipleSwitchRadioData"
464
605
  switchTypes="radio"
465
- switchNames="radiogroup"
606
+ switchNames="swtich-names"
466
607
  :status="formElementStatus"
467
608
  v-model:value="multipleSwitchRadio"/>
468
609
  <dl>
@@ -475,20 +616,33 @@
475
616
  <div class="button-wrapper">
476
617
  <small><sup>*</sup>values will not be submitted with the form!</small>
477
618
  <CmdFormElement element="button"
478
- buttonText="Submit form"
479
- type="button"
619
+ :nativeButton="{text: 'Submit-button from component'}"
620
+ type="submit"
480
621
  id="submitbutton"
481
622
  name="submitbutton"
482
623
  :status="formElementStatus"/>
483
- <button type="submit" :disabled="formElementStatus === 'disabled'"><span class="icon-check"></span><span>Submit form</span>
624
+ <button type="submit" :disabled="formElementStatus === 'disabled'">
625
+ <span class="icon-check"></span>
626
+ <span>Native submit-button</span>
484
627
  </button>
485
628
  </div>
486
- </form>
629
+ </CmdForm>
487
630
  </CmdWidthLimitationWrapper>
488
631
  <!-- end advanced form elements ----------------------------------------------------------------------------------------------------------------------------------------------------->
489
632
 
633
+ <!-- begin back to top button ----------------------------------------------------------------------------------------------------------------------------------------------------->
490
634
  <CmdBackToTopButton/>
635
+ <!-- end back to top button ----------------------------------------------------------------------------------------------------------------------------------------------------->
491
636
 
637
+ <!-- begin bank account data ----------------------------------------------------------------------------------------------------------------------------------------------------->
638
+ <a id="section-bank-account-data"></a>
639
+ <CmdWidthLimitationWrapper>
640
+ <h2 class="headline-demopage">Bank Account Data</h2>
641
+ <CmdBankAccountData :account-data="bankAccountData" :cmd-custom-headline="{ text: 'Bank Account', level: 3}" :allow-copy-by-click="true" />
642
+ </CmdWidthLimitationWrapper>
643
+ <!-- end bank account data ------------------------------------------------------------------------------------------------------------------------------------------------------->
644
+
645
+ <!-- begin boxes ------------------------------------------------------------------------------------------------------------------------------------------------------->
492
646
  <a id="section-boxes"></a>
493
647
  <CmdWidthLimitationWrapper>
494
648
  <h2 class="headline-demopage">Boxes</h2>
@@ -498,17 +652,17 @@
498
652
  <CmdBox>
499
653
  <template v-slot:header>
500
654
  <h3>
501
- Box with text
655
+ Headline for box
502
656
  </h3>
503
657
  </template>
504
658
  <template v-slot:body>
505
659
  <p class="padding">
506
- box body with paragraph
660
+ Box body with paragraph
507
661
  </p>
508
662
  </template>
509
663
  <template v-slot:footer>
510
664
  <p>
511
- footer content
665
+ Footer content
512
666
  </p>
513
667
  </template>
514
668
  </CmdBox>
@@ -563,12 +717,12 @@
563
717
  <img src="media/images/content-images/logo-business-edition-landscape.jpg" alt="Alternative text"/>
564
718
  <div class="default-padding">
565
719
  <h4>Headline</h4>
566
- <p>This some text i.e a short-text for news.</p>
720
+ <p>This is some text information i.e a short-text for a news teaser.</p>
567
721
  </div>
568
722
  </template>
569
723
  <template v-slot:footer>
570
724
  <p>
571
- <a href="#">Mehr erfahren&hellip;</a>
725
+ <a href="#">Read more&hellip;</a>
572
726
  </p>
573
727
  </template>
574
728
  </CmdBox>
@@ -589,13 +743,17 @@
589
743
  <h3>Box Site Search</h3>
590
744
  <CmdBoxSiteSearch :results="executeSearch()" @click="executeSearch($event)"/>
591
745
  </CmdWidthLimitationWrapper>
746
+ <!-- end boxes ------------------------------------------------------------------------------------------------------------------------------------------------------->
592
747
 
748
+ <!-- begin breadcrumbs ------------------------------------------------------------------------------------------------------------------------------------------------------->
593
749
  <a id="section-breadcrumbs"></a>
594
750
  <CmdWidthLimitationWrapper inner-component="div">
595
751
  <h2 class="headline-demopage">Breadcrumbs</h2>
596
752
  <CmdBreadcrumbs :breadcrumbLinks="breadcrumbData" breadcrumbLabel="You are here:"/>
597
753
  </CmdWidthLimitationWrapper>
754
+ <!-- end breadcrumbs ------------------------------------------------------------------------------------------------------------------------------------------------------->
598
755
 
756
+ <!-- begin cookie-disclaimer ------------------------------------------------------------------------------------------------------------------------------------------------------->
599
757
  <a id="section-cookie-disclaimer"></a>
600
758
  <CmdWidthLimitationWrapper>
601
759
  <h2 class="headline-demopage">Cookie Disclaimer</h2>
@@ -603,17 +761,33 @@
603
761
  <span>Open Cookie Disclaimer</span>
604
762
  </a>
605
763
  </CmdWidthLimitationWrapper>
764
+ <!-- end cookie-disclaimer ------------------------------------------------------------------------------------------------------------------------------------------------------->
765
+
766
+ <!-- begin custom-headline ------------------------------------------------------------------------------------------------------------------------------------------------------->
767
+ <a id="section-custom-headline"></a>
768
+ <CmdWidthLimitationWrapper>
769
+ <h2 class="headline-demopage">Custom Headline</h2>
770
+ <CmdCustomHeadline icon-class="icon-home" pre-headline="Pre-headline" :headline="{ text: 'Headline level 1', level: '1'}"/>
771
+ <CmdCustomHeadline :headline="{ text: 'Headline level 2', level: '2'}"/>
772
+ <CmdCustomHeadline :headline="{ text: 'Headline level 3', level: '3'}"/>
773
+ <CmdCustomHeadline :headline="{ text: 'Headline level 4', level: '4'}"/>
774
+ <CmdCustomHeadline :headline="{ text: 'Headline level 5', level: '5'}"/>
775
+ <CmdCustomHeadline :headline="{ text: 'Headline level 6', level: '6'}"/>
776
+ </CmdWidthLimitationWrapper>
777
+ <!-- end custom-headline ------------------------------------------------------------------------------------------------------------------------------------------------------->
606
778
 
779
+ <!-- begin fancybox ------------------------------------------------------------------------------------------------------------------------------------------------------->
607
780
  <a id="section-fancybox"></a>
608
781
  <CmdWidthLimitationWrapper>
609
782
  <h2 class="headline-demopage">Fancybox</h2>
610
783
  <a href="#" @click.prevent="showFancyBox('text','Some text')">Open FancyBox with text</a>
611
784
  <a href="#"
612
- @click.prevent="showFancyBox('image', 'media/images/content-images/logo-business-edition-landscape.jpg')"
785
+ @click.prevent="showFancyBox('image', 'media/images/content-images/logo-business-edition-landscape.jpg', 'Alternative text')"
613
786
  title="Open FancyBox with large image">
614
787
  <img src="media/images/content-images/logo-business-edition-landscape.jpg" alt="Alternative text"/>
615
788
  </a>
616
789
  </CmdWidthLimitationWrapper>
790
+ <!-- end fancybox ------------------------------------------------------------------------------------------------------------------------------------------------------->
617
791
 
618
792
  <a id="section-google-maps-integration"></a>
619
793
  <CmdWidthLimitationWrapper>
@@ -637,16 +811,10 @@
637
811
  <a id="section-login-form"></a>
638
812
  <CmdWidthLimitationWrapper>
639
813
  <h2 class="headline-demopage">Login Form</h2>
640
- <CmdLoginForm v-model="loginData" />
814
+ <CmdLoginForm v-model="loginData" v-focus />
641
815
  <p>LoginData: {{loginData}}</p>
642
816
  </CmdWidthLimitationWrapper>
643
817
 
644
- <a id="section-main-headline"></a>
645
- <CmdWidthLimitationWrapper>
646
- <h2 class="headline-demopage">Main Headline</h2>
647
- <CmdMainHeadline icon-class="icon-home" pre-headline="Pre-headline" main-headline="Main headline"/>
648
- </CmdWidthLimitationWrapper>
649
-
650
818
  <a id="section-main-navigation"></a>
651
819
  <CmdWidthLimitationWrapper>
652
820
  <h2 class="headline-demopage">Main Navigation</h2>
@@ -694,8 +862,10 @@
694
862
  <a id="section-system-message"></a>
695
863
  <CmdWidthLimitationWrapper>
696
864
  <h2 class="headline-demopage">System Message</h2>
697
- <CmdSystemMessage status="error" :fullWidth="true" message="This is an error message!"
698
- iconClass="icon-cancel">
865
+ <CmdSystemMessage status="error"
866
+ :fullWidth="true"
867
+ message="This is an error message!"
868
+ :iconMessage="{iconClass: 'icon-error-circle'}">
699
869
  <ul>
700
870
  <li>Error #1</li>
701
871
  <li>Error #2</li>
@@ -706,11 +876,11 @@
706
876
  <p>This is additional text!</p>
707
877
  </CmdSystemMessage>
708
878
  <CmdSystemMessage status="success" :fullWidth="true" message="This is a success message!"
709
- iconClass="icon-check">
879
+ :iconMessage="{iconClass: 'icon-check-circle'}">
710
880
  <p>This is additional text!</p>
711
881
  </CmdSystemMessage>
712
882
  <CmdSystemMessage status="info" :fullWidth="true" message="This is an info message!"
713
- iconClass="icon-info">
883
+ :iconMessage="{iconClass: 'icon-info-circle'}">
714
884
  <p>This is additional text!</p>
715
885
  </CmdSystemMessage>
716
886
  </CmdWidthLimitationWrapper>
@@ -752,12 +922,37 @@
752
922
  <a id="section-thumbnail-scroller"></a>
753
923
  <CmdWidthLimitationWrapper>
754
924
  <h2 class="headline-demopage">Thumbnail-Scroller</h2>
755
- <CmdThumbnailScroller :thumbnail-scroller-items="thumbnailScrollerData"/>
925
+ <CmdThumbnailScroller :thumbnail-scroller-items="thumbnailScrollerData" />
926
+ </CmdWidthLimitationWrapper>
927
+
928
+ <a id="section-tooltip"></a>
929
+ <CmdWidthLimitationWrapper>
930
+ <h2 class="headline-demopage">Tooltip</h2>
931
+ <p>
932
+ <a href="#" @click.prevent id="hoverme">Hover me!</a><br />
933
+ <a href="#" @click.prevent id="clickme" title="Native tooltip">Click me!</a>
934
+ </p>
935
+ <CmdTooltip related-id="hoverme">
936
+ Tooltip for hover
937
+ </CmdTooltip>
938
+ <CmdTooltip related-id="clickme" :toggle-visibility-by-click="true">
939
+ Tooltip for click
940
+ </CmdTooltip>
756
941
  </CmdWidthLimitationWrapper>
757
942
 
758
943
  <a id="section-upload-form"></a>
759
944
  <CmdWidthLimitationWrapper>
760
945
  <h2 class="headline-demopage">Upload-Form</h2>
946
+ <h3>Simple mode</h3>
947
+ <CmdUploadForm headline="Select files to upload"
948
+ :enableDragAndDrop="true"
949
+ :allowedFileExtensions="['jpg']"
950
+ :allowMultipleFileUploads="true"
951
+ :advancedMode="false"
952
+ @error="showError"
953
+ :uploadOptions="{url: 'http://localhost:8888'}"
954
+ />
955
+ <h3>Advanced mode</h3>
761
956
  <CmdUploadForm headline="Select files to upload"
762
957
  :enableDragAndDrop="true"
763
958
  :allowedFileExtensions="['jpg']"
@@ -800,6 +995,7 @@
800
995
  // import used example data
801
996
  import accordionData from '@/assets/data/accordion.json'
802
997
  import addressData from '@/assets/data/address.json'
998
+ import bankAccountData from '@/assets/data/bank-account-data.json'
803
999
  import boxUserData from '@/assets/data/box-user.json'
804
1000
  import boxProductData from '@/assets/data/box-product.json'
805
1001
  import breadcrumbData from '@/assets/data/breadcrumbs.json'
@@ -807,15 +1003,16 @@ import companyLogoData from '@/assets/data/company-logo.json'
807
1003
  import cookieDisclaimerData from '@/assets/data/cookie-disclaimer.json'
808
1004
  import fakeSelectColorsData from '@/assets/data/fake-select-colors.json'
809
1005
  import fakeSelectCountriesData from '@/assets/data/fake-select-countries.json'
1006
+ import fakeSelectFilterOptionsData from '@/assets/data/fake-select-filter-options.json'
810
1007
  import fakeSelectOptionsData from '@/assets/data/fake-select-options.json'
811
1008
  import fakeSelectOptionsWithIconsData from '@/assets/data/fake-select-options-with-icons.json'
812
1009
  import footerNavigationData from '@/assets/data/footer-navigation.json'
813
1010
  import imageGalleryData from '@/assets/data/image-gallery.json'
814
- import languagesData from '@/assets/data/languages.json'
815
- import multistepsData from '@/assets/data/multisteps.json'
1011
+ import languagesData from '@/assets/data/switch-language.json'
1012
+ import multistepsData from '@/assets/data/multistep-form-progress-bar.json'
816
1013
  import multipleSwitchCheckboxData from '@/assets/data/multipleswitch-checkbox.json'
817
1014
  import multipleSwitchRadioData from '@/assets/data/multipleswitch-radio.json'
818
- import navigationData from '@/assets/data/navigation.json'
1015
+ import navigationData from '@/assets/data/main-navigation.json'
819
1016
  import openingHoursData from '@/assets/data/opening-hours.json'
820
1017
  import pagerData from '@/assets/data/pager.json'
821
1018
  import selectOptionsData from '@/assets/data/select-options.json'
@@ -831,22 +1028,24 @@ import topHeaderNavigationData from '@/assets/data/top-header-navigation.json'
831
1028
  import CmdAccordion from "@/components/CmdAccordion.vue"
832
1029
  import CmdAddressData from "@/components/CmdAddressData"
833
1030
  import CmdBackToTopButton from "@/components/CmdBackToTopButton.vue"
1031
+ import CmdBankAccountData from "./components/CmdBankAccountData"
834
1032
  import CmdBox from "@/components/CmdBox.vue"
835
1033
  import CmdBoxSiteSearch from "@/components/CmdBoxSiteSearch.vue"
836
1034
  import CmdBreadcrumbs from "@/components/CmdBreadcrumbs.vue"
837
1035
  import CmdCompanyLogo from "@/components/CmdCompanyLogo.vue"
838
1036
  import CmdCopyrightInformation from "@/components/CmdCopyrightInformation.vue"
839
1037
  import CmdCookieDisclaimer from "@/components/CmdCookieDisclaimer.vue"
1038
+ import CmdCustomHeadline from "@/components/CmdCustomHeadline.vue"
840
1039
  import CmdFakeSelect from "@/components/CmdFakeSelect.vue"
841
1040
  import CmdFancyBox from "@/components/CmdFancyBox.vue"
842
1041
  import CmdFooterNavigation from "@/components/CmdFooterNavigation.vue"
1042
+ import CmdForm from "@/components/CmdForm.vue"
843
1043
  import CmdFormElement from "@/components/CmdFormElement.vue"
844
1044
  import CmdFormFilters from "@/components/CmdFormFilters.vue"
845
1045
  import CmdGoogleMaps from "./components/CmdGoogleMaps"
846
1046
  import CmdImageGallery from "@/components/CmdImageGallery.vue"
847
1047
  import CmdImageZoom from "@/components/CmdImageZoom.vue"
848
1048
  import CmdLoginForm from "@/components/CmdLoginForm.vue"
849
- import CmdMainHeadline from "@/components/CmdMainHeadline.vue"
850
1049
  import CmdMainNavigation from "@/components/CmdMainNavigation.vue"
851
1050
  import CmdMultipleSwitch from "@/components/CmdMultipleSwitch.vue"
852
1051
  import CmdMultistepFormProgressBar from "@/components/CmdMultistepFormProgressBar.vue"
@@ -862,33 +1061,39 @@ import CmdSystemMessage from "@/components/CmdSystemMessage.vue"
862
1061
  import CmdTabs from "@/components/CmdTabs.vue"
863
1062
  import CmdTable from "@/components/CmdTable.vue"
864
1063
  import CmdThumbnailScroller from "@/components/CmdThumbnailScroller.vue"
1064
+ import CmdTooltip from "@/components/CmdTooltip.vue"
865
1065
  import CmdTopHeaderNavigation from "@/components/CmdTopHeaderNavigation.vue"
866
1066
  import CmdUploadForm from "@/components/CmdUploadForm.vue"
867
1067
  import CmdWidthLimitationWrapper from "@/components/CmdWidthLimitationWrapper"
868
1068
  import {openFancyBox} from "@/components/CmdFancyBox"
869
1069
 
1070
+ // import external functions
1071
+ import * as functions from "@/mixins/FieldValidation.js"
1072
+
870
1073
  export default {
871
1074
  name: "App",
872
1075
  components: {
873
1076
  CmdAccordion, // short form of 'CmdAccordion': CmdAccordion
874
1077
  CmdAddressData,
875
1078
  CmdBackToTopButton,
1079
+ CmdBankAccountData,
876
1080
  CmdBox,
877
1081
  CmdBoxSiteSearch,
878
1082
  CmdBreadcrumbs,
879
1083
  CmdCompanyLogo,
880
1084
  CmdCopyrightInformation,
881
1085
  CmdCookieDisclaimer,
1086
+ CmdCustomHeadline,
882
1087
  CmdFakeSelect,
883
1088
  CmdFancyBox,
884
1089
  CmdFooterNavigation,
1090
+ CmdForm,
885
1091
  CmdFormFilters,
886
1092
  CmdFormElement,
887
1093
  CmdGoogleMaps,
888
1094
  CmdImageGallery,
889
1095
  CmdImageZoom,
890
1096
  CmdLoginForm,
891
- CmdMainHeadline,
892
1097
  CmdMainNavigation,
893
1098
  CmdMultistepFormProgressBar,
894
1099
  CmdMultipleSwitch,
@@ -904,6 +1109,7 @@ export default {
904
1109
  CmdTabs,
905
1110
  CmdTable,
906
1111
  CmdThumbnailScroller,
1112
+ CmdTooltip,
907
1113
  CmdTopHeaderNavigation,
908
1114
  CmdUploadForm,
909
1115
  CmdWidthLimitationWrapper
@@ -911,6 +1117,12 @@ export default {
911
1117
 
912
1118
  data() {
913
1119
  return {
1120
+ showTooltip: false,
1121
+ inputFieldPattern: "",
1122
+ inputSearch: "",
1123
+ textarea: "",
1124
+ inputNumber: "",
1125
+ inputDate: "",
914
1126
  accordionGroupOpen: false,
915
1127
  showPageMultistep: 1,
916
1128
  showPagePager: 1,
@@ -924,19 +1136,23 @@ export default {
924
1136
  switchButtonRadio: "radio1",
925
1137
  switchButtonCheckbox: ["checkbox1"],
926
1138
  switchButtonCheckboxColored: false,
1139
+ inputUsername: "",
1140
+ inputPassword: "",
927
1141
  inputField1: "",
928
- checkboxStatus: true,
929
- replacedCheckboxStatus1: false,
930
- replacedCheckboxStatus2: false,
931
- checkboxValues: [],
932
- radiobuttonStatus: "radiobuttonValue1",
933
- replacedRadiobuttonStatus: "radiobuttonValue1",
1142
+ inputFieldRequired: "",
1143
+ checkboxValue: true,
1144
+ checkboxRequiredValue: false,
1145
+ checkboxValues: ["checkboxValue1"],
1146
+ replacedCheckboxValue: "checkboxValue1",
1147
+ radiobuttonValue: "radiobuttonValue1",
1148
+ replacedRadiobuttonValue: "radiobuttonValue1",
934
1149
  multipleSwitchCheckbox: ['b'],
935
1150
  multipleSwitchRadio: 'c',
936
1151
  fancyBoxCookieDisclaimer: false,
937
1152
  fakeSelectDefault: "2",
938
1153
  fakeSelectDefaultWithIcons: "1",
939
- fakeSelectCheckbox: ["2"],
1154
+ fakeSelectCheckbox: [],
1155
+ fakeSelectFilters: [],
940
1156
  datalist: {
941
1157
  id: "datalist-id",
942
1158
  options: [
@@ -945,10 +1161,18 @@ export default {
945
1161
  "Option 3"
946
1162
  ]
947
1163
  },
1164
+ customRequirements: [
1165
+ functions.validateCharacters(),
1166
+ functions.validateNumbers(),
1167
+ functions.validateNumbersOnly(),
1168
+ functions.validateSpecialCharacters(),
1169
+ functions.validateCapitalLetters()
1170
+ ],
948
1171
 
949
1172
  // assign data from json files to data-properties
950
1173
  accordionData,
951
1174
  addressData,
1175
+ bankAccountData,
952
1176
  boxProductData,
953
1177
  boxUserData,
954
1178
  breadcrumbData,
@@ -956,6 +1180,7 @@ export default {
956
1180
  cookieDisclaimerData,
957
1181
  fakeSelectColorsData,
958
1182
  fakeSelectCountriesData,
1183
+ fakeSelectFilterOptionsData,
959
1184
  fakeSelectOptionsData,
960
1185
  fakeSelectOptionsWithIconsData,
961
1186
  footerNavigationData,
@@ -978,17 +1203,21 @@ export default {
978
1203
  }
979
1204
  },
980
1205
  methods: {
981
- showFancyBox(type, content) {
1206
+ showError(event) {
1207
+ console.log("EventMessages", event.messages)
1208
+ alert("Error")
1209
+ },
1210
+ showFancyBox(type, content, altText) {
982
1211
  if (type === 'text') {
983
1212
  openFancyBox({content: content})
984
1213
  } else if (type === 'image') {
985
- openFancyBox({url: content})
1214
+ openFancyBox({url: content, altText: altText})
986
1215
  }
987
1216
  },
988
1217
  getOptionName(option) {
989
- for (let i = 0; i < this.fakeSelectOptionsData.length; i++) {
990
- if (option === this.fakeSelectOptionsData[i].value) {
991
- return this.fakeSelectOptionsData[i].text
1218
+ for (let i = 0; i < this.fakeSelectFilterOptionsData.length; i++) {
1219
+ if (option === this.fakeSelectFilterOptionsData[i].value) {
1220
+ return this.fakeSelectFilterOptionsData[i].text
992
1221
  }
993
1222
  }
994
1223
  return null
@@ -1013,4 +1242,13 @@ export default {
1013
1242
  }
1014
1243
  }
1015
1244
  }
1016
- </script>
1245
+ </script>
1246
+
1247
+ <style lang="scss">
1248
+ .list-status {
1249
+ .active {
1250
+ color: var(--default-color);
1251
+ text-decoration: none;
1252
+ }
1253
+ }
1254
+ </style>