@designcrowd/fe-shared-lib 1.0.8-ml-82-26 → 1.0.8-ml-82-1a
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
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
<Button
|
|
6
6
|
variant="secondary"
|
|
7
7
|
size="small"
|
|
8
|
-
label="
|
|
8
|
+
:label="resendPasswordEmailLabel"
|
|
9
9
|
class="tw-hidden sm:tw-inline tw-absolute tw-right-2 md:tw-right-6 tw-top-1/2 tw-transform tw--translate-y-1/2"
|
|
10
10
|
@on-click="submitForgotPasswordForm"
|
|
11
11
|
/>
|
|
12
12
|
<Button
|
|
13
13
|
variant="secondary"
|
|
14
14
|
size="medium"
|
|
15
|
-
label="
|
|
15
|
+
:label="resendPasswordEmailLabel"
|
|
16
16
|
:full-width="true"
|
|
17
17
|
class="sm:tw-hidden tw-mt-2"
|
|
18
18
|
@on-click="submitForgotPasswordForm"
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
<p class="tw-mb-8 tw-text-grayscale-600">{{ description }}</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">
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<SubmissionButton
|
|
54
54
|
variant="primary"
|
|
55
55
|
size="medium"
|
|
56
|
-
label="
|
|
56
|
+
:label="resetPasswordLabel"
|
|
57
57
|
label-size="larger"
|
|
58
58
|
:is-loading="isLoading"
|
|
59
59
|
:disabled="isLoading"
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
<p
|
|
65
65
|
class="tw-w-full tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-text-center tw-pt-6 tw-pb-8 tw-text-grayscale-600"
|
|
66
66
|
>
|
|
67
|
-
|
|
68
|
-
<button class="tw-text-info-500 tw-cursor-pointer" @click="goBackToLoginClick()">
|
|
67
|
+
{{ rememberedPasswordLabel }}
|
|
68
|
+
<button class="tw-text-info-500 tw-cursor-pointer" @click="goBackToLoginClick()">{{ goBackToLoginLabel }}</button>
|
|
69
69
|
</p>
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
@@ -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,12 +114,25 @@ export default {
|
|
|
124
114
|
required: false,
|
|
125
115
|
default: undefined,
|
|
126
116
|
},
|
|
117
|
+
forgotPasswordContent: {
|
|
118
|
+
type: Object,
|
|
119
|
+
required: false,
|
|
120
|
+
default: () => {},
|
|
121
|
+
},
|
|
127
122
|
},
|
|
128
123
|
data() {
|
|
129
124
|
return {
|
|
130
125
|
isLoading: false,
|
|
131
126
|
aEmail: this.email,
|
|
132
127
|
emailError: undefined,
|
|
128
|
+
resendPasswordEmailLabel: this.forgotPasswordContent?.resendPasswordEmailLabel ?? 'RESEND EMAIL',
|
|
129
|
+
resetPasswordLabel: this.forgotPasswordContent?.resetPasswordLabel ?? 'RESET PASSWORD',
|
|
130
|
+
rememberedPasswordLabel: this.forgotPasswordContent?.rememberedPasswordLabel ?? 'It\'s ok, I remembered my password',
|
|
131
|
+
goBackToLoginLabel: this.forgotPasswordContent?.goBackToLoginLabel ?? 'Go back to login',
|
|
132
|
+
emailAddressPlaceholderLabel: this.forgotPasswordContent?.emailAddressPlaceholderLabel ?? 'Email address',
|
|
133
|
+
emailLabel: this.forgotPasswordContent?.emailLabel ?? 'Email',
|
|
134
|
+
description: this.forgotPasswordContent?.description ?? 'Enter your email below. We will then send a reset-password link to your email address.',
|
|
135
|
+
title: this.forgotPasswordContent?.title ?? 'Forgot your password?',
|
|
133
136
|
};
|
|
134
137
|
},
|
|
135
138
|
computed: {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
:form-background-class="formBackgroundClass"
|
|
11
11
|
:anti-forgery-token="antiForgeryToken"
|
|
12
12
|
:hello-bar="helloBar"
|
|
13
|
+
:forgot-password-content="forgotPasswordContent"
|
|
13
14
|
/>
|
|
14
15
|
</template>
|
|
15
16
|
</AuthModal>
|
|
@@ -57,6 +58,11 @@ export default {
|
|
|
57
58
|
required: false,
|
|
58
59
|
default: undefined,
|
|
59
60
|
},
|
|
61
|
+
forgotPasswordContent: {
|
|
62
|
+
type: Object,
|
|
63
|
+
required: false,
|
|
64
|
+
default: () => {},
|
|
65
|
+
},
|
|
60
66
|
},
|
|
61
67
|
};
|
|
62
68
|
</script>
|