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.
- package/dist/comand-component-library.css +1 -1
- package/dist/comand-component-library.umd.min.js +1 -1
- package/package.json +47 -40
- package/src/App.vue +379 -136
- package/src/ComponentDocumentation.vue +156 -0
- package/src/ComponentLibraryHelp.vue +20 -0
- package/src/assets/data/accordion.json +21 -24
- package/src/assets/data/address-data.json +34 -0
- package/src/assets/data/bank-account-data.json +22 -0
- package/src/assets/data/box-product.json +14 -4
- package/src/assets/data/box-user.json +48 -22
- package/src/assets/data/breadcrumbs.json +11 -3
- package/src/assets/data/cookie-disclaimer.json +4 -4
- package/src/assets/data/fake-select-colors.json +4 -0
- package/src/assets/data/fake-select-countries.json +12 -12
- package/src/assets/data/fake-select-filter-options.json +14 -0
- package/src/assets/data/fake-select-options-with-icons.json +6 -12
- package/src/assets/data/fake-select-options.json +3 -3
- package/src/assets/data/list-of-links-section-anchors.json +23 -0
- package/src/assets/data/list-of-links-top-header-navigation.json +20 -0
- package/src/assets/data/list-of-links.json +42 -0
- package/src/assets/data/main-navigation.json +48 -0
- package/src/assets/data/multistep-form-progress-bar.json +33 -0
- package/src/assets/data/select-options.json +4 -0
- package/src/assets/data/{share-buttons.json → share-buttons-page-by-json.json} +8 -8
- package/src/assets/data/share-buttons-page-by-property.json +30 -0
- package/src/assets/data/switch-language.json +20 -0
- package/src/assets/data/table-large.json +1 -1
- package/src/assets/data/table-small.json +1 -1
- package/src/assets/styles/global-styles.scss +43 -14
- package/src/assets/styles/transitions.scss +21 -1
- package/src/components/CmdAccordion.vue +43 -42
- package/src/components/CmdAddressData.vue +124 -56
- package/src/components/CmdBackToTopButton.vue +3 -3
- package/src/components/CmdBankAccountData.vue +104 -0
- package/src/components/CmdBox.vue +253 -56
- package/src/components/CmdBoxSiteSearch.vue +138 -39
- package/src/components/CmdBoxWrapper.vue +206 -0
- package/src/components/CmdBreadcrumbs.vue +29 -13
- package/src/components/CmdCompanyLogo.vue +6 -4
- package/src/components/CmdCookieDisclaimer.vue +99 -75
- package/src/components/CmdCopyrightInformation.vue +1 -1
- package/src/components/CmdCustomHeadline.vue +93 -0
- package/src/components/CmdFakeSelect.vue +330 -66
- package/src/components/CmdFancyBox.vue +47 -33
- package/src/components/CmdForm.vue +107 -0
- package/src/components/CmdFormElement.vue +528 -83
- package/src/components/CmdFormFilters.vue +25 -11
- package/src/components/CmdGoogleMaps.vue +9 -3
- package/src/components/CmdImageGallery.vue +28 -5
- package/src/components/CmdImageZoom.vue +9 -1
- package/src/components/CmdListOfLinks.vue +169 -0
- package/src/components/CmdLoginForm.vue +146 -66
- package/src/components/CmdMainNavigation.vue +140 -42
- package/src/components/CmdMultipleSwitch.vue +33 -2
- package/src/components/CmdMultistepFormProgressBar.vue +60 -10
- package/src/components/CmdOpeningHours.vue +36 -10
- package/src/components/CmdPager.vue +7 -5
- package/src/components/CmdProgressBar.vue +21 -4
- package/src/components/CmdShareButtons.vue +64 -9
- package/src/components/CmdSiteHeader.vue +25 -12
- package/src/components/CmdSlideButton.vue +5 -2
- package/src/components/CmdSlideshow.vue +23 -7
- package/src/components/CmdSwitchButton.vue +15 -6
- package/src/components/CmdSwitchLanguage.vue +18 -10
- package/src/components/CmdSystemMessage.vue +30 -17
- package/src/components/CmdTable.vue +15 -7
- package/src/components/CmdTabs.vue +43 -3
- package/src/components/CmdThumbnailScroller.vue +22 -6
- package/src/components/CmdTooltip.vue +184 -11
- package/src/components/CmdUploadForm.vue +830 -176
- package/src/components/CmdWidthLimitationWrapper.vue +9 -6
- package/src/composables/event.js +8 -0
- package/src/composables/scrollspy.js +52 -0
- package/src/directives/focus.js +19 -0
- package/src/directives/telephone.js +1 -1
- package/src/documentation/commonProps.js +6 -0
- package/src/documentation/components/ComponentCode.vue +50 -0
- package/src/documentation/components/ComponentProperties.vue +237 -0
- package/src/documentation/components/ExampleSectionWrapper.vue +46 -0
- package/src/documentation/components/ViewCodeData.vue +113 -0
- package/src/documentation/data/CmdAccordionHelp.js +22 -0
- package/src/documentation/data/CmdAddressDataHelp.js +17 -0
- package/src/documentation/data/CmdBackToTopButtonHelp.js +3 -0
- package/src/documentation/data/CmdBankAccountDataHelp.js +8 -0
- package/src/documentation/data/CmdBoxHelp.js +45 -0
- package/src/documentation/data/CmdBoxSiteSearchHelp.js +11 -0
- package/src/documentation/data/CmdBreadcrumbsHelp.js +6 -0
- package/src/documentation/data/CmdCompanyLogoHelp.js +8 -0
- package/src/documentation/data/CmdCookieDisclaimerHelp.js +9 -0
- package/src/documentation/data/CmdCopyrightInformation.js +2 -0
- package/src/documentation/data/CmdCustomHeadlineHelp.js +8 -0
- package/src/documentation/data/CmdFakeSelectHelp.js +60 -0
- package/src/documentation/data/CmdFancyBoxHelp.js +7 -0
- package/src/documentation/data/CmdFooterNavigationHelp.js +5 -0
- package/src/documentation/data/CmdFormElementHelp.js +189 -0
- package/src/documentation/data/CmdFormFiltersHelp.js +6 -0
- package/src/documentation/data/CmdFormHelp.js +10 -0
- package/src/documentation/data/CmdGoogleMapsHelp.js +5 -0
- package/src/documentation/data/CmdImageGalleryHelp.js +5 -0
- package/src/documentation/data/CmdImageZoomHelp.js +6 -0
- package/src/documentation/data/CmdListOfLinksHelp.js +24 -0
- package/src/documentation/data/CmdLoginFormHelp.js +6 -0
- package/src/documentation/data/CmdMainNavigationHelp.js +7 -0
- package/src/documentation/data/CmdMultistepFormProgressBarHelp.js +6 -0
- package/src/documentation/data/CmdOpeningHoursHelp.js +10 -0
- package/src/documentation/data/CmdPagerHelp.js +7 -0
- package/src/documentation/data/CmdProgressBarHelp.js +13 -0
- package/src/documentation/data/CmdShareButtonsHelp.js +13 -0
- package/src/documentation/data/CmdSiteHeaderHelp.js +21 -0
- package/src/documentation/data/CmdSlideButtonHelp.js +10 -0
- package/src/documentation/data/CmdSlideshowHelp.js +7 -0
- package/src/documentation/data/CmdSwitchLanguageHelp.js +6 -0
- package/src/documentation/data/CmdSystemMessageHelp.js +32 -0
- package/src/documentation/data/CmdTableHelp.js +14 -0
- package/src/documentation/data/CmdTabsHelp.js +10 -0
- package/src/documentation/data/CmdThumbnailScrollerHelp.js +5 -0
- package/src/documentation/data/CmdTooltipHelp.js +13 -0
- package/src/documentation/data/CmdUploadFormHelp.js +17 -0
- package/src/documentation/data/CmdWidthLimitationWrapperHelp.js +7 -0
- package/src/documentation/data/componentsDescription.json +158 -0
- package/src/documentation/generated/CmdAccordionPropertyDescriptions.json +57 -0
- package/src/documentation/generated/CmdAddressDataPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdBackToTopButtonPropertyDescriptions.json +12 -0
- package/src/documentation/generated/CmdBankAccountDataPropertyDescriptions.json +34 -0
- package/src/documentation/generated/CmdBoxPropertyDescriptions.json +91 -0
- package/src/documentation/generated/CmdBoxSiteSearchPropertyDescriptions.json +41 -0
- package/src/documentation/generated/CmdBoxWrapperPropertyDescriptions.json +47 -0
- package/src/documentation/generated/CmdBreadcrumbsPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdCompanyLogoPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdCookieDisclaimerPropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdCustomHeadlinePropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdFakeSelectPropertyDescriptions.json +79 -0
- package/src/documentation/generated/CmdFancyBoxPropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdFooterNavigationPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +178 -0
- package/src/documentation/generated/CmdFormFiltersPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdFormPropertyDescriptions.json +40 -0
- package/src/documentation/generated/CmdGoogleMapsPropertyDescriptions.json +7 -0
- package/src/documentation/generated/CmdImageGalleryPropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdImageZoomPropertyDescriptions.json +12 -0
- package/src/documentation/generated/CmdListOfLinksPropertyDescriptions.json +60 -0
- package/src/documentation/generated/CmdLoginFormPropertyDescriptions.json +90 -0
- package/src/documentation/generated/CmdMainNavigationPropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdMultipleSwitchPropertyDescriptions.json +52 -0
- package/src/documentation/generated/CmdMultistepFormProgressBarPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +42 -0
- package/src/documentation/generated/CmdPagerPropertyDescriptions.json +37 -0
- package/src/documentation/generated/CmdProgressBarPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdShareButtonsPropertyDescriptions.json +34 -0
- package/src/documentation/generated/CmdSiteHeaderPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdSlideButtonPropertyDescriptions.json +25 -0
- package/src/documentation/generated/CmdSlideshowPropertyDescriptions.json +42 -0
- package/src/documentation/generated/CmdSwitchButtonPropertyDescriptions.json +79 -0
- package/src/documentation/generated/CmdSwitchLanguagePropertyDescriptions.json +7 -0
- package/src/documentation/generated/CmdSystemMessagePropertyDescriptions.json +40 -0
- package/src/documentation/generated/CmdTablePropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdTabsPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdThumbnailScrollerPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdTooltipPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdUploadFormPropertyDescriptions.json +90 -0
- package/src/documentation/generated/CmdWidthLimitationWrapperPropertyDescriptions.json +41 -0
- package/src/documentation/generated/frameworkIcons.json +730 -0
- package/src/documentation/generated/logosIcons.json +110 -0
- package/src/documentation/tabs.js +46 -0
- package/src/documentation/views/ContainerPage.vue +237 -0
- package/src/documentation/views/HelpHome.vue +13 -0
- package/src/documentation/views/IconFont.vue +80 -0
- package/src/documentation/views/components/CmdAccordionHelp.vue +78 -0
- package/src/documentation/views/components/CmdAddressDataHelp.vue +65 -0
- package/src/documentation/views/components/CmdBackToTopButtonHelp.vue +62 -0
- package/src/documentation/views/components/CmdBankAccountDataHelp.vue +88 -0
- package/src/documentation/views/components/CmdBoxHelp.vue +137 -0
- package/src/documentation/views/components/CmdBoxSiteSearchHelp.vue +60 -0
- package/src/documentation/views/components/CmdBoxWrapperHelp.vue +111 -0
- package/src/documentation/views/components/CmdBreadcrumbsHelp.vue +51 -0
- package/src/documentation/views/components/CmdCompanyLogoHelp.vue +48 -0
- package/src/documentation/views/components/CmdCookieDisclaimerHelp.vue +105 -0
- package/src/documentation/views/components/CmdCustomHeadlineHelp.vue +53 -0
- package/src/documentation/views/components/CmdFakeSelectHelp.vue +175 -0
- package/src/documentation/views/components/CmdFancyBoxHelp.vue +79 -0
- package/src/documentation/views/components/CmdFormElementHelp.vue +412 -0
- package/src/documentation/views/components/CmdFormFiltersHelp.vue +69 -0
- package/src/documentation/views/components/CmdFormHelp.vue +41 -0
- package/src/documentation/views/components/CmdGoogleMapsHelp.vue +55 -0
- package/src/documentation/views/components/CmdImageGalleryHelp.vue +46 -0
- package/src/documentation/views/components/CmdImageZoomHelp.vue +34 -0
- package/src/documentation/views/components/CmdListOfLinksHelp.vue +64 -0
- package/src/documentation/views/components/CmdLoginFormHelp.vue +117 -0
- package/src/documentation/views/components/CmdMainNavigationHelp.vue +94 -0
- package/src/documentation/views/components/CmdMultistepFormProgressBarHelp.vue +49 -0
- package/src/documentation/views/components/CmdOpeningHoursHelp.vue +49 -0
- package/src/documentation/views/components/CmdPagerHelp.vue +57 -0
- package/src/documentation/views/components/CmdProgressBarHelp.vue +47 -0
- package/src/documentation/views/components/CmdShareButtonsHelp.vue +65 -0
- package/src/documentation/views/components/CmdSiteHeaderHelp.vue +72 -0
- package/src/documentation/views/components/CmdSlideButtonHelp.vue +90 -0
- package/src/documentation/views/components/CmdSlideshowHelp.vue +60 -0
- package/src/documentation/views/components/CmdSwitchLanguageHelp.vue +64 -0
- package/src/documentation/views/components/CmdSystemMessageHelp.vue +86 -0
- package/src/documentation/views/components/CmdTableHelp.vue +84 -0
- package/src/documentation/views/components/CmdTabsHelp.vue +52 -0
- package/src/documentation/views/components/CmdThumbnailScrollerHelp.vue +50 -0
- package/src/documentation/views/components/CmdTooltipHelp.vue +59 -0
- package/src/documentation/views/components/CmdUploadFormHelp.vue +59 -0
- package/src/documentation/views/components/CmdWidthLimitationWrapperHelp.vue +46 -0
- package/src/index.js +6 -3
- package/src/main.js +25 -15
- package/src/mixins/CmdAddressData/DefaultMessageProperties.js +17 -0
- package/src/mixins/CmdBox/DefaultMessageProperties.js +10 -0
- package/src/mixins/CmdFakeSelect/DefaultMessageProperties.js +9 -0
- package/src/mixins/CmdFormElement/DefaultMessageProperties.js +9 -0
- package/src/mixins/CmdImageGallery/DefaultMessageProperties.js +9 -0
- package/src/mixins/CmdSiteSearch/DefaultMessageProperties.js +14 -0
- package/src/mixins/CmdUploadForm/DefaultMessageProperties.js +53 -0
- package/src/mixins/FieldValidation.js +220 -0
- package/src/mixins/GlobalDefaultMessageProperties.js +15 -0
- package/src/mixins/I18n.js +56 -0
- package/src/mixins/Tooltip.js +26 -0
- package/src/router/index.js +67 -0
- package/src/utilities.js +3 -6
- package/src/utils/GetFileExtension.js +15 -0
- package/src/utils/common.js +6 -0
- package/src/utils/dom.js +8 -0
- package/src/utils/globalSequence.js +13 -0
- package/src/utils/string.js +8 -0
- package/src/assets/data/address.json +0 -13
- package/src/assets/data/footer-navigation.json +0 -38
- package/src/assets/data/languages.json +0 -31
- package/src/assets/data/multisteps.json +0 -27
- package/src/assets/data/navigation.json +0 -47
- package/src/assets/data/pager.json +0 -11
- package/src/assets/data/top-header-navigation.json +0 -27
- package/src/components/CmdFooterNavigation.vue +0 -71
- package/src/components/CmdMainHeadline.vue +0 -75
- package/src/components/CmdTopHeaderNavigation.vue +0 -88
@@ -1,8 +1,15 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin login-form -->
|
2
3
|
<fieldset v-if="!sendLogin" class="flex-container">
|
3
|
-
<legend :class="{
|
4
|
-
|
4
|
+
<legend :class="{hidden : !showLegend}">{{ textLegend }}</legend>
|
5
|
+
<!-- begin CmdCustomHeadline -->
|
6
|
+
<CmdCustomHeadline v-if="cmdCustomHeadlineLoginForm"
|
7
|
+
v-bind="cmdCustomHeadlineLoginForm"/>
|
8
|
+
<!-- end CmdCustomHeadline -->
|
9
|
+
|
10
|
+
<!-- being form elements -->
|
5
11
|
<div class="flex-container">
|
12
|
+
<!-- begin CmdFormElement -->
|
6
13
|
<CmdFormElement
|
7
14
|
element="input"
|
8
15
|
type="text"
|
@@ -13,6 +20,9 @@
|
|
13
20
|
:labelText="cmdFormElementUsername.labelText"
|
14
21
|
:placeholder="cmdFormElementUsername.placeholder"
|
15
22
|
/>
|
23
|
+
<!-- end CmdFormElement -->
|
24
|
+
|
25
|
+
<!-- begin CmdFormElement -->
|
16
26
|
<CmdFormElement
|
17
27
|
element="input"
|
18
28
|
type="password"
|
@@ -23,8 +33,11 @@
|
|
23
33
|
:labelText="cmdFormElementPassword.labelText"
|
24
34
|
:placeholder="cmdFormElementPassword.placeholder"
|
25
35
|
/>
|
36
|
+
<!-- end CmdFormElement -->
|
26
37
|
</div>
|
27
|
-
|
38
|
+
<!-- end form elements -->
|
39
|
+
|
40
|
+
<div class="option-wrapper flex-container" v-focus>
|
28
41
|
<template v-if="options.forgotPassword || options.createAccount">
|
29
42
|
<a v-if="options.forgotPassword" href="#" @click.prevent="sendLogin = true">
|
30
43
|
<span v-if="options.forgotPassword.icon && options.forgotPassword.icon.show && options.forgotPassword.icon.iconClass"
|
@@ -33,6 +46,7 @@
|
|
33
46
|
</span>
|
34
47
|
<span v-if="options.forgotPassword.text">{{ options.forgotPassword.text }}</span>
|
35
48
|
</a>
|
49
|
+
<!-- begin link-type 'href' -->
|
36
50
|
<a v-if="options.createAccount && options.createAccount.linkType === 'href'" :href="options.createAccount.path">
|
37
51
|
<span v-if="options.createAccount.icon && options.createAccount.icon.show && options.createAccount.icon.iconClass"
|
38
52
|
:class="options.createAccount.icon.iconClass"
|
@@ -40,6 +54,9 @@
|
|
40
54
|
</span>
|
41
55
|
<span v-if="options.createAccount.text">{{ options.createAccount.text }}</span>
|
42
56
|
</a>
|
57
|
+
<!-- end link-type 'href' -->
|
58
|
+
|
59
|
+
<!-- begin link-type 'router' -->
|
43
60
|
<router-link v-else-if="options.createAccount && options.createAccount.linkType === 'router'" :to="options.createAccount.path">
|
44
61
|
<span v-if="options.createAccount.icon && options.createAccount.icon.show && options.createAccount.icon.iconClass"
|
45
62
|
:class="options.createAccount.icon.iconClass"
|
@@ -47,7 +64,10 @@
|
|
47
64
|
</span>
|
48
65
|
<span v-if="options.createAccount.text">{{ options.createAccount.text }}</span>
|
49
66
|
</router-link>
|
67
|
+
<!-- end link-type 'router -->
|
50
68
|
</template>
|
69
|
+
|
70
|
+
<!-- begin link-type 'href' -->
|
51
71
|
<a
|
52
72
|
v-if="buttons.login.linkType === 'href'"
|
53
73
|
:class="['button', { primary: buttons.login.primary }]"
|
@@ -61,6 +81,9 @@
|
|
61
81
|
></span>
|
62
82
|
<span v-if="buttons.login.text">{{ buttons.login.text }}</span>
|
63
83
|
</a>
|
84
|
+
<!-- begin link-type 'href' -->
|
85
|
+
|
86
|
+
<!-- begin link-type 'router' -->
|
64
87
|
<router-link
|
65
88
|
v-if="buttons.login.linkType === 'router'"
|
66
89
|
:class="['button', { primary: buttons.login.primary }]"
|
@@ -74,6 +97,9 @@
|
|
74
97
|
></span>
|
75
98
|
<span v-if="buttons.login.text">{{ buttons.login.text }}</span>
|
76
99
|
</router-link>
|
100
|
+
<!-- begin link-type 'router' -->
|
101
|
+
|
102
|
+
<!-- begin link-type 'button' -->
|
77
103
|
<button
|
78
104
|
v-if="buttons.login.linkType === 'button'"
|
79
105
|
:type="buttons.login.type === 'submit' ? 'submit' : 'button'"
|
@@ -87,19 +113,35 @@
|
|
87
113
|
></span>
|
88
114
|
<span v-if="buttons.login.text">{{ buttons.login.text }}</span>
|
89
115
|
</button>
|
116
|
+
<!-- begin link-type 'button' -->
|
90
117
|
</div>
|
91
118
|
</fieldset>
|
119
|
+
<!-- end login-form -->
|
120
|
+
|
121
|
+
<!-- begin send-login-form -->
|
92
122
|
<fieldset v-else class="flex-container">
|
93
123
|
<legend :class="{'hidden' : !legendSendLoginForm.show}">{{ legendSendLoginForm.text }}</legend>
|
94
|
-
|
95
|
-
<
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
124
|
+
<!-- begin CmdCustomHeadline -->
|
125
|
+
<CmdCustomHeadline v-if="cmdCustomHeadlineSendLoginForm"
|
126
|
+
:iconClass="cmdCustomHeadlineSendLoginForm.iconClass"
|
127
|
+
:preHeadline="cmdCustomHeadlineSendLoginForm.preHeadline"
|
128
|
+
:headlineLevel="cmdCustomHeadlineSendLoginForm.preHeadline"
|
129
|
+
:headlineText="cmdCustomHeadlineSendLoginForm.headlineText"/>
|
130
|
+
<!-- end CmdCustomHeadline -->
|
131
|
+
|
132
|
+
<!-- begin CmdFormElement -->
|
133
|
+
<CmdFormElement
|
134
|
+
element="input"
|
135
|
+
type="email"
|
136
|
+
:inner-icon-class="cmdFormElementSendLogin.innerIconClass"
|
137
|
+
:labelText="cmdFormElementSendLogin.labelText"
|
138
|
+
:placeholder="cmdFormElementSendLogin.placeholder"
|
139
|
+
:name="cmdFormElementSendLogin.name"
|
140
|
+
:id="cmdFormElementSendLogin.id"
|
141
|
+
v-model:value="sendLoginMail"
|
142
|
+
/>
|
143
|
+
<!-- end CmdFormElement -->
|
144
|
+
|
103
145
|
<div class="option-wrapper flex-container">
|
104
146
|
<a href="#" @click.prevent="sendLogin = false">
|
105
147
|
<span v-if="options.backToLoginForm && options.backToLoginForm.icon && options.backToLoginForm.icon.show && options.backToLoginForm.icon.iconClass"
|
@@ -110,6 +152,8 @@
|
|
110
152
|
{{ options.backToLoginForm.text }}
|
111
153
|
</span>
|
112
154
|
</a>
|
155
|
+
|
156
|
+
<!-- begin link-type 'href' -->
|
113
157
|
<a
|
114
158
|
v-if="buttons.sendLogin.linkType === 'href'"
|
115
159
|
:class="['button', { primary: buttons.sendLogin.primary }]"
|
@@ -123,6 +167,9 @@
|
|
123
167
|
></span>
|
124
168
|
<span v-if="buttons.sendLogin.text">{{ buttons.sendLogin.text }}</span>
|
125
169
|
</a>
|
170
|
+
<!-- end link-type 'href' -->
|
171
|
+
|
172
|
+
<!-- begin link-type 'router' -->
|
126
173
|
<router-link
|
127
174
|
v-if="buttons.sendLogin.linkType === 'router'"
|
128
175
|
:class="['button', { primary: buttons.sendLogin.primary }]"
|
@@ -136,20 +183,25 @@
|
|
136
183
|
></span>
|
137
184
|
<span v-if="buttons.sendLogin.text">{{ buttons.sendLogin.text }}</span>
|
138
185
|
</router-link>
|
186
|
+
<!-- end link-type 'router' -->
|
187
|
+
|
188
|
+
<!-- begin link-type 'button' -->
|
139
189
|
<button
|
140
190
|
v-if="buttons.sendLogin.linkType === 'button'"
|
141
191
|
:type="buttons.sendLogin.type === 'submit' ? 'submit' : 'button'"
|
142
192
|
:class="['button', { primary: buttons.sendLogin.primary }]"
|
143
193
|
>
|
144
194
|
<span
|
145
|
-
v-if="buttons.sendLogin.icon
|
146
|
-
:class="buttons.sendLogin.icon
|
147
|
-
:title="buttons.sendLogin.icon
|
195
|
+
v-if="buttons.sendLogin.icon?.iconClass"
|
196
|
+
:class="buttons.sendLogin.icon?.iconClass"
|
197
|
+
:title="buttons.sendLogin.icon?.tooltip"
|
148
198
|
></span>
|
149
199
|
<span v-if="buttons.sendLogin.text">{{ buttons.sendLogin.text }}</span>
|
150
200
|
</button>
|
201
|
+
<!-- end link-type 'button' -->
|
151
202
|
</div>
|
152
203
|
</fieldset>
|
204
|
+
<!-- end send-login-form -->
|
153
205
|
</template>
|
154
206
|
|
155
207
|
<script>
|
@@ -157,6 +209,7 @@
|
|
157
209
|
import {getRoute} from "../utilities.js"
|
158
210
|
|
159
211
|
// import components
|
212
|
+
import CmdCustomHeadline from "./CmdCustomHeadline"
|
160
213
|
import CmdFormElement from "./CmdFormElement"
|
161
214
|
|
162
215
|
export default {
|
@@ -170,6 +223,7 @@ export default {
|
|
170
223
|
}
|
171
224
|
},
|
172
225
|
components: {
|
226
|
+
CmdCustomHeadline,
|
173
227
|
CmdFormElement
|
174
228
|
},
|
175
229
|
props: {
|
@@ -186,19 +240,25 @@ export default {
|
|
186
240
|
}
|
187
241
|
},
|
188
242
|
/**
|
189
|
-
* legend for login-fieldset
|
243
|
+
* text used as legend for login-fieldset
|
244
|
+
*
|
245
|
+
* @requiredForAccessibility: true
|
190
246
|
*/
|
191
|
-
|
192
|
-
type:
|
193
|
-
default
|
194
|
-
return {
|
195
|
-
show: false,
|
196
|
-
text: "Login form"
|
197
|
-
}
|
198
|
-
}
|
247
|
+
textLegend: {
|
248
|
+
type: String,
|
249
|
+
default: "Login form"
|
199
250
|
},
|
200
251
|
/**
|
201
|
-
* legend
|
252
|
+
* toggle legend visibility
|
253
|
+
*/
|
254
|
+
showLegend: {
|
255
|
+
type: Boolean,
|
256
|
+
default: true
|
257
|
+
},
|
258
|
+
/**
|
259
|
+
* legend for send-login-fieldset
|
260
|
+
*
|
261
|
+
* @requiredForAccessibility: true
|
202
262
|
*/
|
203
263
|
legendSendLoginForm: {
|
204
264
|
type: Object,
|
@@ -210,21 +270,35 @@ export default {
|
|
210
270
|
}
|
211
271
|
},
|
212
272
|
/**
|
213
|
-
*
|
273
|
+
* properties for CmdCustomHeadline-component for login-form
|
214
274
|
*/
|
215
|
-
|
216
|
-
type:
|
217
|
-
default
|
275
|
+
cmdCustomHeadlineLoginForm: {
|
276
|
+
type: Object,
|
277
|
+
default() {
|
278
|
+
return {
|
279
|
+
show: true,
|
280
|
+
text: "Login",
|
281
|
+
level: 2
|
282
|
+
}
|
283
|
+
}
|
218
284
|
},
|
219
285
|
/**
|
220
|
-
*
|
286
|
+
* properties for CmdCustomHeadline-component for send-login-form
|
221
287
|
*/
|
222
|
-
|
223
|
-
type:
|
224
|
-
default
|
288
|
+
cmdCustomHeadlineSendLoginForm: {
|
289
|
+
type: Object,
|
290
|
+
default() {
|
291
|
+
return {
|
292
|
+
show: true,
|
293
|
+
text: "Send Login",
|
294
|
+
level: 2
|
295
|
+
}
|
296
|
+
}
|
225
297
|
},
|
226
298
|
/**
|
227
299
|
* properties for CmdFormElement-component for username-field
|
300
|
+
*
|
301
|
+
* @requiredForAccessibility: partial
|
228
302
|
*/
|
229
303
|
cmdFormElementUsername: {
|
230
304
|
type: Object,
|
@@ -239,7 +313,9 @@ export default {
|
|
239
313
|
}
|
240
314
|
},
|
241
315
|
/**
|
242
|
-
* properties for
|
316
|
+
* properties for CmdFormElement-component for password-field
|
317
|
+
*
|
318
|
+
* @requiredForAccessibility: partial
|
243
319
|
*/
|
244
320
|
cmdFormElementPassword: {
|
245
321
|
type: Object,
|
@@ -254,7 +330,9 @@ export default {
|
|
254
330
|
}
|
255
331
|
},
|
256
332
|
/**
|
257
|
-
* properties for
|
333
|
+
* properties for CmdFormElement-component for email-address-field (to send login-data)
|
334
|
+
*
|
335
|
+
* @requiredForAccessibility: partial
|
258
336
|
*/
|
259
337
|
cmdFormElementSendLogin: {
|
260
338
|
type: Object,
|
@@ -275,40 +353,42 @@ export default {
|
|
275
353
|
* createAccount: creates a link (href/router) which could lead to a register-form
|
276
354
|
*/
|
277
355
|
options: {
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
356
|
+
type: Object,
|
357
|
+
default() {
|
358
|
+
return {
|
359
|
+
forgotPassword: {
|
360
|
+
icon: {
|
361
|
+
show: true,
|
362
|
+
iconClass: "icon-help",
|
363
|
+
tooltip: ""
|
364
|
+
},
|
365
|
+
text: "Forgot password?"
|
366
|
+
},
|
367
|
+
createAccount: {
|
368
|
+
linkType: "href",
|
369
|
+
path: "#",
|
370
|
+
icon: {
|
371
|
+
show: true,
|
372
|
+
iconClass: "icon-register",
|
373
|
+
tooltip: ""
|
374
|
+
},
|
375
|
+
text: "Create new account!"
|
376
|
+
},
|
377
|
+
backToLoginForm: {
|
378
|
+
icon: {
|
379
|
+
show: true,
|
380
|
+
iconClass: "icon-single-arrow-left",
|
381
|
+
tooltip: ""
|
382
|
+
},
|
383
|
+
text: "Back to login form"
|
384
|
+
}
|
385
|
+
}
|
386
|
+
}
|
309
387
|
},
|
310
388
|
/**
|
311
389
|
* button to login
|
390
|
+
*
|
391
|
+
* @requiredForAccessibility: partial
|
312
392
|
*/
|
313
393
|
buttons: {
|
314
394
|
type: Object,
|