@verdocs/web-sdk 2.0.28 → 2.1.1
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +194 -31
- package/dist/cjs/verdocs-floating-menu.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-floating-menu/verdocs-floating-menu.css +2 -2
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.css +1 -1
- package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.css +2 -2
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +10 -2
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +135 -32
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.css +1 -1
- package/dist/components/verdocs-auth.js +197 -33
- package/dist/components/verdocs-floating-menu.js +1 -1
- package/dist/components/verdocs-organization-card.js +1 -1
- package/dist/components/verdocs-pagination2.js +1 -1
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/custom-elements.json +1947 -0
- package/dist/docs.json +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +194 -31
- package/dist/esm/verdocs-floating-menu.entry.js +1 -1
- package/dist/esm/verdocs-organization-card.entry.js +1 -1
- package/dist/esm/verdocs-pagination_3.entry.js +1 -1
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-floating-menu.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +12 -4
- package/dist/verdocs-web-sdk/p-450d6648.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-52a69b07.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-57e5b1b4.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-63e6717e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
- package/dist/verdocs-web-sdk/p-704515f0.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-dbfa7aea.entry.js → p-7f0208c6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-70a1cb8d.entry.js → p-91a46b70.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9964cc5e.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-511d7177.entry.js → p-a99ffad6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-bacfc080.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +5 -5
- package/dist/verdocs-web-sdk/p-670a2414.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-68487ce7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-afd6285f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b4ac7a21.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c7c021fe.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cfdd1d5b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d7e29ce9.system.entry.js +0 -1
@@ -27,7 +27,7 @@ verdocs-floating-menu {
|
|
27
27
|
position: absolute;
|
28
28
|
width: 56px;
|
29
29
|
height: 56px;
|
30
|
-
background: #
|
30
|
+
background: #s;
|
31
31
|
bottom: 0;
|
32
32
|
border-radius: 50%;
|
33
33
|
left: 0;
|
@@ -51,7 +51,7 @@ verdocs-floating-menu {
|
|
51
51
|
display: none;
|
52
52
|
}
|
53
53
|
#verdocs-floating-menu .option {
|
54
|
-
background: #
|
54
|
+
background: #s;
|
55
55
|
display: flex;
|
56
56
|
align-items: center;
|
57
57
|
justify-content: center;
|
@@ -15,7 +15,7 @@ verdocs-pagination .page-button {
|
|
15
15
|
align-items: center;
|
16
16
|
justify-content: center;
|
17
17
|
color: #33364b;
|
18
|
-
border: 1px solid #
|
18
|
+
border: 1px solid #s;
|
19
19
|
}
|
20
20
|
verdocs-pagination .page-button svg {
|
21
21
|
width: 18px;
|
@@ -24,7 +24,7 @@ verdocs-pagination .page-button svg {
|
|
24
24
|
verdocs-pagination .page-button.selected {
|
25
25
|
cursor: default;
|
26
26
|
color: #ffffff;
|
27
|
-
background: #
|
27
|
+
background: #s;
|
28
28
|
}
|
29
29
|
verdocs-pagination .ellipsis {
|
30
30
|
width: 38px;
|
@@ -5,8 +5,7 @@ verdocs-auth {
|
|
5
5
|
align-items: center;
|
6
6
|
justify-content: center;
|
7
7
|
}
|
8
|
-
verdocs-auth .
|
9
|
-
verdocs-auth .signup-form {
|
8
|
+
verdocs-auth .form {
|
10
9
|
background: #ffffff;
|
11
10
|
align-items: center;
|
12
11
|
justify-content: center;
|
@@ -38,6 +37,12 @@ verdocs-auth h4 {
|
|
38
37
|
verdocs-auth h4 verdocs-button button.normal .button-label {
|
39
38
|
padding: 0;
|
40
39
|
}
|
40
|
+
verdocs-auth .buttons {
|
41
|
+
gap: 20px;
|
42
|
+
display: flex;
|
43
|
+
flex-direction: row;
|
44
|
+
justify-content: center;
|
45
|
+
}
|
41
46
|
verdocs-auth .status-result {
|
42
47
|
display: none;
|
43
48
|
}
|
@@ -61,4 +66,7 @@ verdocs-auth .account-option {
|
|
61
66
|
margin: 20px 0 8px 0;
|
62
67
|
display: flex;
|
63
68
|
flex-direction: row;
|
69
|
+
}
|
70
|
+
verdocs-auth p + p {
|
71
|
+
margin-top: 0;
|
64
72
|
}
|
@@ -1,9 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { Token } from '@verdocs/js-sdk/Utils';
|
2
2
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
3
|
+
import { Auth, Profiles } from '@verdocs/js-sdk/Users';
|
3
4
|
import { Organizations } from '@verdocs/js-sdk/Organizations';
|
4
5
|
import { h } from '@stencil/core';
|
5
6
|
import { VerdocsToast } from '../../../utils/Toast';
|
6
7
|
import { SDKError } from '../../../utils/errors';
|
8
|
+
const RECHECK_INTERVAL = 5000;
|
7
9
|
const Industries = [
|
8
10
|
{ value: '', label: '' },
|
9
11
|
{ value: 'Accounting & Tax', label: 'Accounting & Tax' },
|
@@ -75,6 +77,9 @@ const CompanySizes = [
|
|
75
77
|
*/
|
76
78
|
export class VerdocsAuth {
|
77
79
|
constructor() {
|
80
|
+
this.recheckTimer = null;
|
81
|
+
this.resendDisabledTimer = null;
|
82
|
+
this.accessTokenForVerification = null;
|
78
83
|
this.endpoint = VerdocsEndpoint.getDefault();
|
79
84
|
this.visible = true;
|
80
85
|
this.logo = 'https://app.verdocs.com/assets/blue-logo.svg';
|
@@ -87,14 +92,15 @@ export class VerdocsAuth {
|
|
87
92
|
this.username = '';
|
88
93
|
this.phone = '';
|
89
94
|
this.password = '';
|
90
|
-
this.
|
95
|
+
this.submitting = false;
|
91
96
|
this.activeSession = null;
|
92
97
|
this.accountType = 'org';
|
93
98
|
this.howHear = '';
|
94
99
|
this.industry = '';
|
95
100
|
this.companySize = '';
|
96
101
|
this.reason = '';
|
97
|
-
this.
|
102
|
+
this.signupStep = 1;
|
103
|
+
this.resendDisabled = false;
|
98
104
|
}
|
99
105
|
componentWillLoad() {
|
100
106
|
var _a, _b;
|
@@ -110,42 +116,94 @@ export class VerdocsAuth {
|
|
110
116
|
(_b = this.authenticated) === null || _b === void 0 ? void 0 : _b.emit({ authenticated: false, session: null });
|
111
117
|
}
|
112
118
|
}
|
119
|
+
disconnectedCallback() {
|
120
|
+
this.cancelRecheckTimer();
|
121
|
+
}
|
122
|
+
cancelRecheckTimer() {
|
123
|
+
if (this.recheckTimer) {
|
124
|
+
try {
|
125
|
+
clearTimeout(this.recheckTimer);
|
126
|
+
}
|
127
|
+
catch (e) {
|
128
|
+
// NOP
|
129
|
+
}
|
130
|
+
this.recheckTimer = null;
|
131
|
+
}
|
132
|
+
if (this.resendDisabledTimer) {
|
133
|
+
try {
|
134
|
+
clearTimeout(this.resendDisabledTimer);
|
135
|
+
}
|
136
|
+
catch (e) {
|
137
|
+
// NOP
|
138
|
+
}
|
139
|
+
this.resendDisabledTimer = null;
|
140
|
+
}
|
141
|
+
}
|
113
142
|
handleSignup() {
|
114
|
-
this.
|
115
|
-
|
143
|
+
this.submitting = true;
|
144
|
+
this.accessTokenForVerification = null;
|
145
|
+
Profiles.createBusinessAccount(this.endpoint, {
|
146
|
+
email: this.username,
|
147
|
+
password: this.password,
|
148
|
+
firstName: this.first,
|
149
|
+
lastName: this.last,
|
150
|
+
orgName: this.orgname,
|
151
|
+
industry: this.industry,
|
152
|
+
size: this.companySize,
|
153
|
+
// source?: string;
|
154
|
+
// referral?: string;
|
155
|
+
// coupon?: string;
|
156
|
+
reason: this.reason,
|
157
|
+
hearabout: this.howHear,
|
158
|
+
})
|
116
159
|
.then(r => {
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
this.
|
121
|
-
this.isAuthenticated = true;
|
122
|
-
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: true, session: this.endpoint.session });
|
160
|
+
console.log('Result', r);
|
161
|
+
console.log('[AUTH] Created profile', r.profile);
|
162
|
+
console.log('[AUTH] Created organization', r.organization);
|
163
|
+
this.loginAndCheckVerification();
|
123
164
|
})
|
124
165
|
.catch(e => {
|
125
|
-
var _a, _b, _c, _d;
|
126
|
-
console.log('[AUTH]
|
127
|
-
this.
|
166
|
+
var _a, _b, _c, _d, _e;
|
167
|
+
console.log('[AUTH] Signup error', e.response, JSON.stringify(e));
|
168
|
+
this.submitting = false;
|
128
169
|
this.activeSession = null;
|
129
170
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
|
130
171
|
(_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
|
131
|
-
VerdocsToast('
|
172
|
+
VerdocsToast('Signup failed: ' + ((_e = e.response) === null || _e === void 0 ? void 0 : _e.data), { style: 'error' });
|
132
173
|
});
|
133
174
|
}
|
134
|
-
|
135
|
-
this.
|
175
|
+
loginAndCheckVerification() {
|
176
|
+
this.submitting = true;
|
177
|
+
this.accessTokenForVerification = null;
|
136
178
|
Auth.authenticateUser(this.endpoint, { username: this.username, password: this.password })
|
137
179
|
.then(r => {
|
138
180
|
var _a;
|
139
|
-
this.
|
140
|
-
this.
|
141
|
-
|
142
|
-
|
143
|
-
(
|
181
|
+
this.cancelRecheckTimer();
|
182
|
+
this.submitting = false;
|
183
|
+
const body = Token.decodeAccessTokenBody(r.accessToken);
|
184
|
+
console.log('[AUTH] Got access token body', body);
|
185
|
+
if (body === null || body === void 0 ? void 0 : body.email_verified) {
|
186
|
+
console.log('[AUTH] Email address is verified, completing login');
|
187
|
+
this.displayMode = 'login'; // After signing out, this will be the next mode
|
188
|
+
this.accessTokenForVerification = null;
|
189
|
+
this.endpoint.setToken(r.accessToken);
|
190
|
+
this.activeSession = this.endpoint.session;
|
191
|
+
this.isAuthenticated = true;
|
192
|
+
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: true, session: this.endpoint.session });
|
193
|
+
}
|
194
|
+
else {
|
195
|
+
console.log('[AUTH] Logged in, pending email address verification');
|
196
|
+
this.displayMode = 'verify';
|
197
|
+
this.accessTokenForVerification = r.accessToken;
|
198
|
+
this.recheckTimer = setTimeout(() => this.loginAndCheckVerification(), RECHECK_INTERVAL);
|
199
|
+
}
|
144
200
|
})
|
145
201
|
.catch(e => {
|
146
202
|
var _a, _b, _c, _d;
|
203
|
+
this.cancelRecheckTimer();
|
147
204
|
console.log('[AUTH] Authentication error', e.response, JSON.stringify(e));
|
148
|
-
this.
|
205
|
+
this.displayMode = 'login';
|
206
|
+
this.submitting = false;
|
149
207
|
this.activeSession = null;
|
150
208
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
|
151
209
|
(_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
|
@@ -156,8 +214,40 @@ export class VerdocsAuth {
|
|
156
214
|
var _a;
|
157
215
|
this.endpoint.clearSession();
|
158
216
|
this.isAuthenticated = false;
|
217
|
+
this.accessTokenForVerification = null;
|
159
218
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
|
160
219
|
}
|
220
|
+
handleResend() {
|
221
|
+
// Avoid the user just click-spamming this pathway. The server rate-limits this anyway so it's not a
|
222
|
+
// security issue but it's a poor user experience to allow it.
|
223
|
+
this.resendDisabled = true;
|
224
|
+
this.resendDisabledTimer = setTimeout(() => {
|
225
|
+
this.resendDisabled = false;
|
226
|
+
this.resendDisabledTimer = null;
|
227
|
+
}, 30000);
|
228
|
+
Auth.resendVerification(this.endpoint, this.accessTokenForVerification)
|
229
|
+
.then(r => {
|
230
|
+
console.log('[AUTH] Verification request resent', r);
|
231
|
+
VerdocsToast('Please check your email for a message with verification instructions.', { style: 'info' });
|
232
|
+
})
|
233
|
+
.catch((e) => {
|
234
|
+
console.log('[AUTH] Unable to resend verification', e);
|
235
|
+
});
|
236
|
+
}
|
237
|
+
handleReset() {
|
238
|
+
this.submitting = true;
|
239
|
+
Auth.resetPassword(this.endpoint, { email: this.username })
|
240
|
+
.then(r => {
|
241
|
+
console.log('[AUTH] Reset sent', r);
|
242
|
+
this.submitting = false;
|
243
|
+
this.displayMode = 'login';
|
244
|
+
VerdocsToast('If your email address is registered, you will receive instructions on resetting your password shortly.', { style: 'info' });
|
245
|
+
})
|
246
|
+
.catch((e) => {
|
247
|
+
console.log('[AUTH] Unable to reset password', e);
|
248
|
+
this.submitting = false;
|
249
|
+
});
|
250
|
+
}
|
161
251
|
async checkAvailability(name) {
|
162
252
|
this.orgname = name;
|
163
253
|
this.orgAvailable = '';
|
@@ -171,18 +261,30 @@ export class VerdocsAuth {
|
|
171
261
|
return h("div", { style: { display: 'none' } }, "Authenticated");
|
172
262
|
}
|
173
263
|
if (this.isAuthenticated) {
|
174
|
-
return (h("verdocs-button", { label: "Sign Out", disabled: this.
|
264
|
+
return (h("verdocs-button", { label: "Sign Out", disabled: this.submitting, onClick: () => this.handleLogout(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }));
|
175
265
|
}
|
176
266
|
if (this.displayMode === 'signup') {
|
177
|
-
const
|
178
|
-
|
179
|
-
|
267
|
+
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname || this.orgAvailable !== 'OK';
|
268
|
+
console.log({ step1Invalid }, this.orgAvailable);
|
269
|
+
return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.orgname, onInput: (e) => this.checkAvailability(e.target.value), disabled: this.submitting }), this.orgAvailable === 'TAKEN' && h("p", { style: { color: 'red' } }, "This organization name is already taken."), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
|
270
|
+
this.signupStep = 2;
|
180
271
|
}, style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }), h("verdocs-button", { label: "Go to Dashboard", disabled: true, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))))));
|
181
272
|
}
|
182
|
-
|
273
|
+
if (this.displayMode === 'forgot') {
|
274
|
+
return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Forgot your password?"), h("p", null, "Enter your e-mail address below, and reset instructions will be sent to your Inbox."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", disabled: this.submitting, onClick: () => (this.displayMode = 'login') }), h("verdocs-button", { label: "Reset", disabled: this.submitting, onClick: () => this.handleReset() })))));
|
275
|
+
}
|
276
|
+
if (this.displayMode === 'verify') {
|
277
|
+
return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Please Verify your Email Address"), h("p", null, "Check your e-mail inbox for a verification email, and follow the instructions provided."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("div", { class: "buttons" }, h("verdocs-button", { label: "Sign Out", variant: "outline", disabled: this.submitting, onClick: () => {
|
278
|
+
this.username = '';
|
279
|
+
this.password = '';
|
280
|
+
this.cancelRecheckTimer();
|
281
|
+
this.displayMode = 'login';
|
282
|
+
} }), h("verdocs-button", { label: "Resend Email", disabled: this.resendDisabled, onClick: () => this.handleResend() }))));
|
283
|
+
}
|
284
|
+
return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => {
|
183
285
|
this.displayMode = 'signup';
|
184
|
-
this.
|
185
|
-
}, disabled: this.
|
286
|
+
this.signupStep = 1;
|
287
|
+
}, disabled: this.submitting })), h("form", { onSubmit: () => this.loginAndCheckVerification() }, h("verdocs-text-input", { label: "Email", autocomplete: "username", value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-button", { label: "Forgot Your Password?", variant: "text", onClick: () => (this.displayMode = 'forgot'), disabled: this.submitting, style: { display: 'flex', justifyContent: 'center', margin: '10px auto 20px' } }), h("verdocs-button", { label: "Login", disabled: this.submitting, onClick: () => this.loginAndCheckVerification(), style: { display: 'flex', justifyContent: 'center', margin: '10px auto 0' } }))));
|
186
288
|
}
|
187
289
|
static get is() { return "verdocs-auth"; }
|
188
290
|
static get originalStyleUrls() {
|
@@ -267,14 +369,15 @@ export class VerdocsAuth {
|
|
267
369
|
"username": {},
|
268
370
|
"phone": {},
|
269
371
|
"password": {},
|
270
|
-
"
|
372
|
+
"submitting": {},
|
271
373
|
"activeSession": {},
|
272
374
|
"accountType": {},
|
273
375
|
"howHear": {},
|
274
376
|
"industry": {},
|
275
377
|
"companySize": {},
|
276
378
|
"reason": {},
|
277
|
-
"
|
379
|
+
"signupStep": {},
|
380
|
+
"resendDisabled": {}
|
278
381
|
};
|
279
382
|
}
|
280
383
|
static get events() {
|