@designcrowd/fe-shared-lib 1.0.8-ml-82-27 → 1.0.8-ml-82-1b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
}"
|
|
33
33
|
>
|
|
34
34
|
<div class="tw-w-full tw-p-4 md:tw-p-8">
|
|
35
|
-
<h2 v-if="
|
|
35
|
+
<h2 v-if="showTitle" class="tw-text-center tw-text-4xl tw-font-bold tw-mb-10">
|
|
36
36
|
{{ title }}
|
|
37
37
|
</h2>
|
|
38
|
-
<p class="tw-mb-8 tw-text-grayscale-600">{{
|
|
38
|
+
<p class="tw-mb-8 tw-text-grayscale-600">{{ modalDescription }}</p>
|
|
39
39
|
<form id="forgotPassword" ref="forgotPasswordForm" method="post" @submit="validate">
|
|
40
40
|
<input type="hidden" name="__RequestVerificationToken" :value="antiForgeryToken" />
|
|
41
|
-
<label for="email" class="tw-sr-only">
|
|
41
|
+
<label for="email" class="tw-sr-only"> {{ emailLabel }} </label>
|
|
42
42
|
<input
|
|
43
43
|
v-model="aEmail"
|
|
44
44
|
name="email"
|
|
45
45
|
:class="{ 'tw-border-error-500': !!emailError }"
|
|
46
46
|
type="email"
|
|
47
|
-
placeholder="
|
|
47
|
+
:placeholder="emailAddressPlaceholderLabel"
|
|
48
48
|
class="email-input tw-mb-3 tw-h-12 tw-bg-no-repeat tw-w-full tw-rounded tw-shadow-inner tw-outline-none tw-py-4 tw-pl-10-important tw-pr-2 tw-text-grayscale-600 tw-border tw-border-grayscale-500 focus:tw-border-grayscale-700"
|
|
49
49
|
/>
|
|
50
50
|
<p v-if="!!emailError" class="tw-text-error-500 tw-text-sm tw-text-left">
|
|
@@ -81,16 +81,6 @@ export default {
|
|
|
81
81
|
SubmissionButton,
|
|
82
82
|
},
|
|
83
83
|
props: {
|
|
84
|
-
title: {
|
|
85
|
-
type: String,
|
|
86
|
-
required: false,
|
|
87
|
-
default: undefined,
|
|
88
|
-
},
|
|
89
|
-
description: {
|
|
90
|
-
type: String,
|
|
91
|
-
required: false,
|
|
92
|
-
default: 'Enter your email below. We will then send a reset-password link to your email address.',
|
|
93
|
-
},
|
|
94
84
|
email: {
|
|
95
85
|
type: String,
|
|
96
86
|
required: false,
|
|
@@ -124,6 +114,11 @@ export default {
|
|
|
124
114
|
required: false,
|
|
125
115
|
default: undefined,
|
|
126
116
|
},
|
|
117
|
+
hideTitle: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
required: false,
|
|
120
|
+
default: false,
|
|
121
|
+
},
|
|
127
122
|
forgotPasswordContent: {
|
|
128
123
|
type: Object,
|
|
129
124
|
required: false,
|
|
@@ -135,10 +130,14 @@ export default {
|
|
|
135
130
|
isLoading: false,
|
|
136
131
|
aEmail: this.email,
|
|
137
132
|
emailError: undefined,
|
|
138
|
-
resendPasswordEmailLabel: this.forgotPasswordContent
|
|
139
|
-
resetPasswordLabel: this.forgotPasswordContent
|
|
140
|
-
rememberedPasswordLabel: this.forgotPasswordContent
|
|
141
|
-
goBackToLoginLabel: this.forgotPasswordContent
|
|
133
|
+
resendPasswordEmailLabel: this.forgotPasswordContent?.resendPasswordEmailLabel ?? 'RESEND EMAIL',
|
|
134
|
+
resetPasswordLabel: this.forgotPasswordContent?.resetPasswordLabel ?? 'RESET PASSWORD',
|
|
135
|
+
rememberedPasswordLabel: this.forgotPasswordContent?.rememberedPasswordLabel ?? 'It\'s ok, I remembered my password',
|
|
136
|
+
goBackToLoginLabel: this.forgotPasswordContent?.goBackToLoginLabel ?? 'Go back to login',
|
|
137
|
+
emailAddressPlaceholderLabel: this.forgotPasswordContent?.emailAddressPlaceholderLabel ?? 'Email address',
|
|
138
|
+
emailLabel: this.forgotPasswordContent?.emailLabel ?? 'Email',
|
|
139
|
+
modalDescription: this.forgotPasswordContent?.description ?? 'Enter your email below. We will then send a reset-password link to your email address.',
|
|
140
|
+
title: this.forgotPasswordContent?.title ?? 'Forgot your password?',
|
|
142
141
|
};
|
|
143
142
|
},
|
|
144
143
|
computed: {
|
|
@@ -152,6 +151,10 @@ export default {
|
|
|
152
151
|
isModalMode() {
|
|
153
152
|
return this.onGoBackToSignIn !== undefined;
|
|
154
153
|
},
|
|
154
|
+
showTitle()
|
|
155
|
+
{
|
|
156
|
+
return this.title && !this.hideTitle;
|
|
157
|
+
},
|
|
155
158
|
},
|
|
156
159
|
watch: {
|
|
157
160
|
email(newValue) {
|