pwa-auth 3.4.9 → 3.5.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/LICENSES.txt +18 -23
- package/README.md +547 -326
- package/base/api/drawer.d.ts +4 -0
- package/base/api/drawer.d.ts.map +1 -0
- package/base/api/drawer.js +12 -0
- package/base/api/drawer.js.map +1 -0
- package/base/api/user.d.ts +4 -0
- package/base/api/user.d.ts.map +1 -0
- package/base/api/user.js +25 -0
- package/base/api/user.js.map +1 -0
- package/base/api/verify.d.ts +4 -0
- package/base/api/verify.d.ts.map +1 -0
- package/base/api/verify.js +113 -0
- package/base/api/verify.js.map +1 -0
- package/base/deprecated/email-changed.d.ts +5 -0
- package/base/deprecated/email-changed.d.ts.map +1 -0
- package/base/deprecated/email-changed.js +9 -0
- package/base/deprecated/email-changed.js.map +1 -0
- package/base/events/emit.d.ts +12 -0
- package/base/events/emit.d.ts.map +1 -0
- package/base/events/emit.js +30 -0
- package/base/events/emit.js.map +1 -0
- package/base/events/names.d.ts +31 -0
- package/base/events/names.d.ts.map +1 -0
- package/base/events/names.js +31 -0
- package/base/events/names.js.map +1 -0
- package/base/events/types.d.ts +71 -0
- package/base/events/types.d.ts.map +1 -0
- package/base/events/types.js +2 -0
- package/base/events/types.js.map +1 -0
- package/base/export/pwa-auth.d.ts +17 -7
- package/base/export/pwa-auth.d.ts.map +1 -0
- package/base/export/pwa-auth.js +13 -7
- package/base/export/pwa-auth.js.map +1 -1
- package/base/firebase/attribute.d.ts +2 -0
- package/base/firebase/attribute.d.ts.map +1 -0
- package/base/firebase/attribute.js +17 -0
- package/base/firebase/attribute.js.map +1 -0
- package/base/firebase/authentication.d.ts +21 -10
- package/base/firebase/authentication.d.ts.map +1 -0
- package/base/firebase/authentication.js +65 -8
- package/base/firebase/authentication.js.map +1 -1
- package/base/firebase/interface.d.ts +7 -1
- package/base/firebase/interface.d.ts.map +1 -0
- package/base/firebase/interface.js +99 -68
- package/base/firebase/interface.js.map +1 -1
- package/base/firebase/message.d.ts +2 -0
- package/base/firebase/message.d.ts.map +1 -0
- package/base/firebase/message.js +34 -0
- package/base/firebase/message.js.map +1 -0
- package/base/firebase/password.d.ts +11 -0
- package/base/firebase/password.d.ts.map +1 -0
- package/base/firebase/password.js +16 -0
- package/base/firebase/password.js.map +1 -0
- package/base/lazyLoader.d.ts +1 -0
- package/base/lazyLoader.d.ts.map +1 -0
- package/base/redux/backend.d.ts +1 -0
- package/base/redux/backend.d.ts.map +1 -0
- package/base/redux/backend.js +1 -1
- package/base/redux/backend.js.map +1 -1
- package/base/redux/frontend.d.ts +16 -1
- package/base/redux/frontend.d.ts.map +1 -0
- package/base/redux/frontend.js +6 -3
- package/base/redux/frontend.js.map +1 -1
- package/base/store.d.ts +1 -6
- package/base/store.d.ts.map +1 -0
- package/base/store.js +2 -4
- package/base/store.js.map +1 -1
- package/base/webcomponents/css/animation.d.ts +1 -0
- package/base/webcomponents/css/animation.d.ts.map +1 -0
- package/base/webcomponents/css/animation.js +79 -67
- package/base/webcomponents/css/animation.js.map +1 -1
- package/base/webcomponents/css/svg.d.ts +1 -2
- package/base/webcomponents/css/svg.d.ts.map +1 -0
- package/base/webcomponents/css/svg.js +2 -4
- package/base/webcomponents/css/svg.js.map +1 -1
- package/base/webcomponents/css/tap.d.ts +3 -0
- package/base/webcomponents/css/tap.d.ts.map +1 -0
- package/base/webcomponents/css/tap.js +9 -0
- package/base/webcomponents/css/tap.js.map +1 -0
- package/base/webcomponents/css/toggle.d.ts +1 -0
- package/base/webcomponents/css/toggle.d.ts.map +1 -0
- package/base/webcomponents/css/toggle.js +5 -5
- package/base/webcomponents/drawer/css/drawer.d.ts +1 -0
- package/base/webcomponents/drawer/css/drawer.d.ts.map +1 -0
- package/base/webcomponents/drawer/css/drawer.js +101 -74
- package/base/webcomponents/drawer/css/drawer.js.map +1 -1
- package/base/webcomponents/drawer/css/exit.d.ts +1 -0
- package/base/webcomponents/drawer/css/exit.d.ts.map +1 -0
- package/base/webcomponents/drawer/css/exit.js +58 -52
- package/base/webcomponents/drawer/css/exit.js.map +1 -1
- package/base/webcomponents/drawer/css/link.d.ts +1 -0
- package/base/webcomponents/drawer/css/link.d.ts.map +1 -0
- package/base/webcomponents/drawer/css/link.js +9 -10
- package/base/webcomponents/drawer/css/link.js.map +1 -1
- package/base/webcomponents/drawer/css/paragraph.d.ts +1 -0
- package/base/webcomponents/drawer/css/paragraph.d.ts.map +1 -0
- package/base/webcomponents/drawer/css/paragraph.js +37 -20
- package/base/webcomponents/drawer/css/paragraph.js.map +1 -1
- package/base/webcomponents/drawer/drawer.d.ts +21 -7
- package/base/webcomponents/drawer/drawer.d.ts.map +1 -0
- package/base/webcomponents/drawer/drawer.js +292 -90
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/base/webcomponents/drawer/keys.d.ts +4 -0
- package/base/webcomponents/drawer/keys.d.ts.map +1 -0
- package/base/webcomponents/drawer/keys.js +57 -0
- package/base/webcomponents/drawer/keys.js.map +1 -0
- package/base/webcomponents/form/css/button.d.ts +1 -0
- package/base/webcomponents/form/css/button.d.ts.map +1 -0
- package/base/webcomponents/form/css/button.js +69 -51
- package/base/webcomponents/form/css/button.js.map +1 -1
- package/base/webcomponents/form/css/input.d.ts +1 -0
- package/base/webcomponents/form/css/input.d.ts.map +1 -0
- package/base/webcomponents/form/css/input.js +22 -21
- package/base/webcomponents/form/css/input.js.map +1 -1
- package/base/webcomponents/form/css/label.d.ts +1 -0
- package/base/webcomponents/form/css/label.d.ts.map +1 -0
- package/base/webcomponents/form/css/label.js +22 -21
- package/base/webcomponents/form/css/label.js.map +1 -1
- package/base/webcomponents/form/css/list.d.ts +1 -0
- package/base/webcomponents/form/css/list.d.ts.map +1 -0
- package/base/webcomponents/form/css/list.js +19 -19
- package/base/webcomponents/form/css/notice.d.ts +3 -0
- package/base/webcomponents/form/css/notice.d.ts.map +1 -0
- package/base/webcomponents/form/css/notice.js +20 -0
- package/base/webcomponents/form/css/notice.js.map +1 -0
- package/base/webcomponents/form/css/status.d.ts +4 -0
- package/base/webcomponents/form/css/status.d.ts.map +1 -0
- package/base/webcomponents/form/css/status.js +44 -0
- package/base/webcomponents/form/css/status.js.map +1 -0
- package/base/webcomponents/form/css/toggle.d.ts +1 -0
- package/base/webcomponents/form/css/toggle.d.ts.map +1 -0
- package/base/webcomponents/form/css/toggle.js +43 -17
- package/base/webcomponents/form/css/toggle.js.map +1 -1
- package/base/webcomponents/form/draft.d.ts +5 -0
- package/base/webcomponents/form/draft.d.ts.map +1 -0
- package/base/webcomponents/form/draft.js +22 -0
- package/base/webcomponents/form/draft.js.map +1 -0
- package/base/webcomponents/form/forgot.d.ts +26 -3
- package/base/webcomponents/form/forgot.d.ts.map +1 -0
- package/base/webcomponents/form/forgot.js +297 -30
- package/base/webcomponents/form/forgot.js.map +1 -1
- package/base/webcomponents/form/letters.d.ts +3 -0
- package/base/webcomponents/form/letters.d.ts.map +1 -0
- package/base/webcomponents/form/letters.js +21 -0
- package/base/webcomponents/form/letters.js.map +1 -0
- package/base/webcomponents/form/login.d.ts +10 -0
- package/base/webcomponents/form/login.d.ts.map +1 -0
- package/base/webcomponents/form/login.js +221 -89
- package/base/webcomponents/form/login.js.map +1 -1
- package/base/webcomponents/form/notice.d.ts +4 -0
- package/base/webcomponents/form/notice.d.ts.map +1 -0
- package/base/webcomponents/form/notice.js +14 -0
- package/base/webcomponents/form/notice.js.map +1 -0
- package/base/webcomponents/form/reveal.d.ts +3 -0
- package/base/webcomponents/form/reveal.d.ts.map +1 -0
- package/base/webcomponents/form/reveal.js +14 -0
- package/base/webcomponents/form/reveal.js.map +1 -0
- package/base/webcomponents/form/signup.d.ts +8 -0
- package/base/webcomponents/form/signup.d.ts.map +1 -0
- package/base/webcomponents/form/signup.js +201 -100
- package/base/webcomponents/form/signup.js.map +1 -1
- package/base/webcomponents/form/verified.d.ts +3 -0
- package/base/webcomponents/form/verified.d.ts.map +1 -0
- package/base/webcomponents/form/verified.js +45 -0
- package/base/webcomponents/form/verified.js.map +1 -0
- package/base/webcomponents/icon/css/icon.d.ts +1 -0
- package/base/webcomponents/icon/css/icon.d.ts.map +1 -0
- package/base/webcomponents/icon/css/icon.js +63 -49
- package/base/webcomponents/icon/css/icon.js.map +1 -1
- package/base/webcomponents/icon/icon.d.ts +6 -4
- package/base/webcomponents/icon/icon.d.ts.map +1 -0
- package/base/webcomponents/icon/icon.js +48 -27
- package/base/webcomponents/icon/icon.js.map +1 -1
- package/base/webcomponents/login/css/auth.d.ts +1 -0
- package/base/webcomponents/login/css/auth.d.ts.map +1 -0
- package/base/webcomponents/login/css/auth.js +37 -36
- package/base/webcomponents/login/css/auth.js.map +1 -1
- package/base/webcomponents/login/css/link.d.ts +1 -0
- package/base/webcomponents/login/css/link.d.ts.map +1 -0
- package/base/webcomponents/login/css/link.js +9 -10
- package/base/webcomponents/login/css/link.js.map +1 -1
- package/base/webcomponents/login/css/paragraph.d.ts +1 -0
- package/base/webcomponents/login/css/paragraph.d.ts.map +1 -0
- package/base/webcomponents/login/css/paragraph.js +8 -8
- package/base/webcomponents/login/page.d.ts +10 -6
- package/base/webcomponents/login/page.d.ts.map +1 -0
- package/base/webcomponents/login/page.js +96 -55
- package/base/webcomponents/login/page.js.map +1 -1
- package/base/webcomponents/settings/css/navigation.d.ts +1 -0
- package/base/webcomponents/settings/css/navigation.d.ts.map +1 -0
- package/base/webcomponents/settings/css/navigation.js +78 -68
- package/base/webcomponents/settings/css/navigation.js.map +1 -1
- package/base/webcomponents/settings/input/delete.d.ts +7 -6
- package/base/webcomponents/settings/input/delete.d.ts.map +1 -0
- package/base/webcomponents/settings/input/delete.js +135 -48
- package/base/webcomponents/settings/input/delete.js.map +1 -1
- package/base/webcomponents/settings/input/email.d.ts +7 -5
- package/base/webcomponents/settings/input/email.d.ts.map +1 -0
- package/base/webcomponents/settings/input/email.js +155 -50
- package/base/webcomponents/settings/input/email.js.map +1 -1
- package/base/webcomponents/settings/input/name.d.ts +8 -5
- package/base/webcomponents/settings/input/name.d.ts.map +1 -0
- package/base/webcomponents/settings/input/name.js +116 -53
- package/base/webcomponents/settings/input/name.js.map +1 -1
- package/base/webcomponents/settings/input/password.d.ts +8 -5
- package/base/webcomponents/settings/input/password.d.ts.map +1 -0
- package/base/webcomponents/settings/input/password.js +200 -103
- package/base/webcomponents/settings/input/password.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.d.ts +8 -6
- package/base/webcomponents/settings/input/uploader.d.ts.map +1 -0
- package/base/webcomponents/settings/input/uploader.js +209 -170
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/base/webcomponents/settings/input/verify.d.ts +64 -0
- package/base/webcomponents/settings/input/verify.d.ts.map +1 -0
- package/base/webcomponents/settings/input/verify.js +272 -0
- package/base/webcomponents/settings/input/verify.js.map +1 -0
- package/base/webcomponents/settings/settings.d.ts +15 -10
- package/base/webcomponents/settings/settings.d.ts.map +1 -0
- package/base/webcomponents/settings/settings.js +226 -147
- package/base/webcomponents/settings/settings.js.map +1 -1
- package/firebase.md +107 -0
- package/intro.md +19 -0
- package/license +21 -21
- package/package.json +116 -71
- package/source/pwa-auth.js +1098 -407
- package/source/pwa-styles.css +50 -68
- package/base/redux/drawer.d.ts +0 -17
- package/base/redux/drawer.js +0 -22
- package/base/redux/drawer.js.map +0 -1
- package/demonstration/index.html +0 -99
- package/demonstration/pwa-styles.css +0 -77
- package/demonstration/styles.css +0 -77
- package/notes.md +0 -11
- package/source/THIRD_PARTY_LICENSES.txt +0 -303
|
@@ -9,24 +9,80 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { html, LitElement, css } from 'lit';
|
|
11
11
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
12
|
-
import {
|
|
13
|
-
import { auth } from '../../firebase/authentication';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
12
|
+
import { sendPasswordResetEmail, signInWithEmailAndPassword } from 'firebase/auth';
|
|
13
|
+
import { auth } from '../../firebase/authentication.js';
|
|
14
|
+
import { pwaAuthError, pwaLogin, pwaResetSent } from '../../events/names.js';
|
|
15
|
+
import { emitWindow, toAuthError, toPwaUser } from '../../events/emit.js';
|
|
16
|
+
import { userMessage } from '../../firebase/message.js';
|
|
17
|
+
import { buttonStyle } from './css/button.js';
|
|
18
|
+
import { labelStyle } from './css/label.js';
|
|
19
|
+
import { inputStyle } from './css/input.js';
|
|
20
|
+
import { listStyle } from './css/list.js';
|
|
21
|
+
import { toggleStyle } from './css/toggle.js';
|
|
22
|
+
import { statusStyle, liveStatus } from './css/status.js';
|
|
23
|
+
import { tapStyle } from '../css/tap.js';
|
|
24
|
+
import { revealControl } from './reveal.js';
|
|
25
|
+
import store from '../../store.js';
|
|
26
|
+
import { universalToggle } from '../../redux/frontend.js';
|
|
27
|
+
import { rememberEmail } from './draft.js';
|
|
28
|
+
const sentMessage = 'If an account uses that email, a reset link is on its way.';
|
|
21
29
|
let FormLogin = class FormLogin extends LitElement {
|
|
22
30
|
constructor() {
|
|
23
31
|
super();
|
|
24
32
|
this.source = '';
|
|
25
33
|
this.email = '';
|
|
26
34
|
this.password = '';
|
|
35
|
+
this.status = '';
|
|
36
|
+
this.tone = '';
|
|
37
|
+
this.busy = false;
|
|
38
|
+
this.resetBusy = false;
|
|
39
|
+
this.showPassword = false;
|
|
27
40
|
this.signIn = async (email, password) => {
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
this.busy = true;
|
|
42
|
+
this.tone = '';
|
|
43
|
+
this.status = '';
|
|
44
|
+
try {
|
|
45
|
+
const signed = await signInWithEmailAndPassword(auth, email, password);
|
|
46
|
+
const person = toPwaUser(signed.user);
|
|
47
|
+
if (person)
|
|
48
|
+
emitWindow(pwaLogin, { user: person });
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
this.show(toAuthError(error));
|
|
52
|
+
}
|
|
53
|
+
finally {
|
|
54
|
+
this.busy = false;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
this.forgot = async () => {
|
|
58
|
+
if (this.busy || this.resetBusy)
|
|
59
|
+
return;
|
|
60
|
+
this.readFields();
|
|
61
|
+
const email = this.email.trim();
|
|
62
|
+
if (email.length < 4) {
|
|
63
|
+
this.show({ code: 'pwa/missing-email', message: 'Enter an email address.' });
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
|
|
67
|
+
this.show({ code: 'pwa/invalid-email', message: 'Enter a valid email address.' });
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
this.resetBusy = true;
|
|
71
|
+
this.tone = '';
|
|
72
|
+
this.status = '';
|
|
73
|
+
try {
|
|
74
|
+
await sendPasswordResetEmail(auth, email);
|
|
75
|
+
this.sent(email);
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
if (toAuthError(error).code === 'auth/user-not-found')
|
|
79
|
+
this.sent(email);
|
|
80
|
+
else
|
|
81
|
+
this.show(toAuthError(error));
|
|
82
|
+
}
|
|
83
|
+
finally {
|
|
84
|
+
this.resetBusy = false;
|
|
85
|
+
}
|
|
30
86
|
};
|
|
31
87
|
}
|
|
32
88
|
static get styles() {
|
|
@@ -36,110 +92,166 @@ let FormLogin = class FormLogin extends LitElement {
|
|
|
36
92
|
inputStyle,
|
|
37
93
|
buttonStyle,
|
|
38
94
|
toggleStyle,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
95
|
+
statusStyle,
|
|
96
|
+
tapStyle,
|
|
97
|
+
css `
|
|
98
|
+
|
|
99
|
+
:host {
|
|
100
|
+
background-color: var(--section_background_color, #fffdf8);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.double {
|
|
104
|
+
display: grid;
|
|
105
|
+
grid-template-columns: 1fr auto;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
form { display: grid; }
|
|
109
|
+
|
|
52
110
|
`
|
|
53
111
|
];
|
|
54
112
|
}
|
|
55
113
|
;
|
|
56
114
|
render() {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
@
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
const emailId = `${this.source}-login-email`;
|
|
116
|
+
const passId = `${this.source}-login-pass`;
|
|
117
|
+
const statusId = `${this.source || 'page'}-login-status`;
|
|
118
|
+
return html `
|
|
119
|
+
|
|
120
|
+
<!-- Log-in State -->
|
|
121
|
+
<form
|
|
122
|
+
@submit= ${this._handleSubmit}
|
|
123
|
+
autocomplete= "on"
|
|
124
|
+
aria-busy= "${this.busy || this.resetBusy ? 'true' : 'false'}"
|
|
125
|
+
novalidate>
|
|
126
|
+
|
|
127
|
+
<ul>
|
|
128
|
+
|
|
129
|
+
<li>
|
|
130
|
+
|
|
131
|
+
<label for="${emailId}">Email
|
|
132
|
+
|
|
133
|
+
<input
|
|
134
|
+
id= "${emailId}"
|
|
135
|
+
name= "email"
|
|
136
|
+
part= "email"
|
|
137
|
+
type= "email"
|
|
138
|
+
autocomplete= "username"
|
|
139
|
+
inputmode= "email"
|
|
140
|
+
autocapitalize= "off"
|
|
141
|
+
spellcheck= "false"
|
|
142
|
+
aria-invalid= "${this.tone === 'error' ? 'true' : 'false'}"
|
|
143
|
+
aria-describedby="${statusId}"
|
|
144
|
+
@input= "${this.handleEmail}"
|
|
145
|
+
@change= "${this.handleEmail}">
|
|
146
|
+
|
|
147
|
+
</label>
|
|
148
|
+
|
|
149
|
+
</li>
|
|
150
|
+
|
|
151
|
+
<li>
|
|
152
|
+
|
|
153
|
+
<label for="${passId}">Password
|
|
154
|
+
|
|
155
|
+
<span class="pair">
|
|
156
|
+
|
|
157
|
+
<input
|
|
158
|
+
id= "${passId}"
|
|
159
|
+
name= "password"
|
|
160
|
+
part= "password"
|
|
161
|
+
type= "${this.showPassword ? 'text' : 'password'}"
|
|
162
|
+
autocomplete= "current-password"
|
|
163
|
+
aria-invalid= "${this.tone === 'error' ? 'true' : 'false'}"
|
|
164
|
+
aria-describedby="${statusId}"
|
|
165
|
+
@input= "${this.handlePassword}"
|
|
166
|
+
@change= "${this.handlePassword}">
|
|
167
|
+
|
|
168
|
+
${revealControl(this.showPassword, () => { this.showPassword = !this.showPassword; })}
|
|
169
|
+
|
|
170
|
+
</span>
|
|
171
|
+
|
|
172
|
+
</label>
|
|
173
|
+
|
|
174
|
+
</li>
|
|
175
|
+
|
|
176
|
+
<li>
|
|
177
|
+
|
|
178
|
+
${liveStatus(statusId, this.status, this.tone)}
|
|
179
|
+
|
|
180
|
+
<button
|
|
181
|
+
type= "submit"
|
|
182
|
+
part= "submit"
|
|
183
|
+
class= "login action-button"
|
|
184
|
+
aria-busy= "${this.busy ? 'true' : 'false'}"
|
|
185
|
+
?disabled= "${this.busy || this.resetBusy}">${this.busy ? 'Signing in…' : 'Sign in'}</button>
|
|
186
|
+
|
|
187
|
+
</li>
|
|
188
|
+
|
|
189
|
+
</ul>
|
|
190
|
+
|
|
191
|
+
<button
|
|
192
|
+
type="button"
|
|
193
|
+
part="forgot"
|
|
194
|
+
class="new"
|
|
195
|
+
?disabled="${this.busy || this.resetBusy}"
|
|
196
|
+
@click="${this.forgot}">${this.resetBusy ? 'Sending…' : 'Forgot password?'}</button>
|
|
197
|
+
|
|
198
|
+
<button
|
|
199
|
+
type="button"
|
|
200
|
+
part="switch"
|
|
201
|
+
class="new"
|
|
202
|
+
@click="${this.change}">create a new account</button>
|
|
203
|
+
|
|
204
|
+
</form>
|
|
205
|
+
|
|
117
206
|
`;
|
|
118
207
|
}
|
|
119
208
|
change() {
|
|
120
209
|
store.dispatch(universalToggle(this.source));
|
|
121
210
|
}
|
|
211
|
+
show(detail, error = true) {
|
|
212
|
+
this.tone = error ? 'error' : '';
|
|
213
|
+
this.status = userMessage(detail);
|
|
214
|
+
if (error)
|
|
215
|
+
emitWindow(pwaAuthError, detail);
|
|
216
|
+
}
|
|
122
217
|
handleEmail(event) {
|
|
123
218
|
const input = event.target;
|
|
124
219
|
this.email = input.value;
|
|
220
|
+
rememberEmail(this.email);
|
|
125
221
|
}
|
|
126
222
|
handlePassword(event) {
|
|
127
223
|
const input = event.target;
|
|
128
224
|
this.password = input.value;
|
|
129
225
|
}
|
|
226
|
+
readFields() {
|
|
227
|
+
const email = this.renderRoot.querySelector('input[type="email"]');
|
|
228
|
+
const password = this.renderRoot.querySelector('input[name="password"]');
|
|
229
|
+
this.email = email?.value ?? '';
|
|
230
|
+
this.password = password?.value ?? '';
|
|
231
|
+
rememberEmail(this.email);
|
|
232
|
+
}
|
|
130
233
|
_handleSubmit(event) {
|
|
131
234
|
event.preventDefault();
|
|
235
|
+
void this.login();
|
|
132
236
|
}
|
|
133
|
-
login() {
|
|
237
|
+
async login() {
|
|
238
|
+
if (this.busy)
|
|
239
|
+
return;
|
|
240
|
+
this.readFields();
|
|
134
241
|
if (this.email.length < 4) {
|
|
135
|
-
|
|
242
|
+
this.show({ code: 'pwa/missing-email', message: 'Enter an email address.' });
|
|
136
243
|
return;
|
|
137
244
|
}
|
|
138
|
-
if (this.password
|
|
139
|
-
|
|
245
|
+
if (!this.password) {
|
|
246
|
+
this.show({ code: 'pwa/missing-password', message: 'Enter a password.' });
|
|
140
247
|
return;
|
|
141
248
|
}
|
|
142
|
-
this.signIn(this.email, this.password);
|
|
249
|
+
await this.signIn(this.email, this.password);
|
|
250
|
+
}
|
|
251
|
+
sent(email) {
|
|
252
|
+
this.tone = '';
|
|
253
|
+
this.status = sentMessage;
|
|
254
|
+
emitWindow(pwaResetSent, { email });
|
|
143
255
|
}
|
|
144
256
|
};
|
|
145
257
|
__decorate([
|
|
@@ -154,6 +266,26 @@ __decorate([
|
|
|
154
266
|
state(),
|
|
155
267
|
__metadata("design:type", Object)
|
|
156
268
|
], FormLogin.prototype, "password", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
state(),
|
|
271
|
+
__metadata("design:type", Object)
|
|
272
|
+
], FormLogin.prototype, "status", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
state(),
|
|
275
|
+
__metadata("design:type", Object)
|
|
276
|
+
], FormLogin.prototype, "tone", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
state(),
|
|
279
|
+
__metadata("design:type", Object)
|
|
280
|
+
], FormLogin.prototype, "busy", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
state(),
|
|
283
|
+
__metadata("design:type", Object)
|
|
284
|
+
], FormLogin.prototype, "resetBusy", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
state(),
|
|
287
|
+
__metadata("design:type", Object)
|
|
288
|
+
], FormLogin.prototype, "showPassword", void 0);
|
|
157
289
|
FormLogin = __decorate([
|
|
158
290
|
customElement('form-login'),
|
|
159
291
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../../typescript/webcomponents/form/login.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,IAAI,EACJ,UAAU,EACV,GAAG,EACJ,MAA8B,KAAK,CAAC;AAErC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,KAAK,EACN,MAA8B,mBAAmB,CAAC;AAEnD,OAAO,
|
|
1
|
+
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../../typescript/webcomponents/form/login.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,IAAI,EACJ,UAAU,EACV,GAAG,EACJ,MAA8B,KAAK,CAAC;AAErC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,KAAK,EACN,MAA8B,mBAAmB,CAAC;AAEnD,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAEnF,OAAO,EAAE,IAAI,EAAE,MAAgB,kCAAkC,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAS,iBAAiB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAU,gBAAgB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAU,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAW,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAS,iBAAiB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE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;IAAhB,KAAK,EAAE;;2CAA2B;AAClB;IAAhB,KAAK,EAAE;;yCAA2B;AAClB;IAAhB,KAAK,EAAE;;uCAA2B;AAClB;IAAhB,KAAK,EAAE;;uCAA8B;AACrB;IAAhB,KAAK,EAAE;;4CAA8B;AACrB;IAAhB,KAAK,EAAE;;+CAA8B;AAT3B,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;;GACf,SAAS,CAqPrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notice.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/form/notice.ts"],"names":[],"mappings":"AAKA,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAG1D;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAG/D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
let sentEmail = '';
|
|
2
|
+
const listeners = new Set();
|
|
3
|
+
export function markVerificationNotice(email) {
|
|
4
|
+
sentEmail = email;
|
|
5
|
+
listeners.forEach((fn) => fn());
|
|
6
|
+
}
|
|
7
|
+
export function verificationNotice() {
|
|
8
|
+
return sentEmail;
|
|
9
|
+
}
|
|
10
|
+
export function onVerificationNotice(fn) {
|
|
11
|
+
listeners.add(fn);
|
|
12
|
+
return () => { listeners.delete(fn); };
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=notice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notice.js","sourceRoot":"","sources":["../../../typescript/webcomponents/form/notice.ts"],"names":[],"mappings":"AACA,IAAI,SAAS,GAAG,EAAE,CAAC;AAEnB,MAAM,SAAS,GAAG,IAAI,GAAG,EAAc,CAAC;AAExC,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAClD,SAAS,GAAG,KAAK,CAAC;IAClB,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,EAAc;IACjD,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,OAAO,GAAG,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/form/reveal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAG3C,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,cAAc,CAc/F"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
export function revealControl(showing, onClick) {
|
|
3
|
+
const label = showing ? 'Hide password' : 'Show password';
|
|
4
|
+
return html `
|
|
5
|
+
<button
|
|
6
|
+
type="button"
|
|
7
|
+
class="reveal"
|
|
8
|
+
part="reveal"
|
|
9
|
+
aria-pressed="${showing ? 'true' : 'false'}"
|
|
10
|
+
aria-label="${label}"
|
|
11
|
+
@click="${onClick}">${showing ? 'Hide' : 'Show'}</button>
|
|
12
|
+
`;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=reveal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal.js","sourceRoot":"","sources":["../../../typescript/webcomponents/form/reveal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAG3C,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,OAA+B;IAE7E,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC;IAE1D,OAAO,IAAI,CAAA;;;;;sBAKS,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;oBAC5B,KAAK;gBACT,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;GAClD,CAAC;AAEJ,CAAC"}
|
|
@@ -3,10 +3,17 @@ export declare class FormSignup extends LitElement {
|
|
|
3
3
|
source: string;
|
|
4
4
|
private email;
|
|
5
5
|
private password;
|
|
6
|
+
private status;
|
|
7
|
+
private tone;
|
|
8
|
+
private busy;
|
|
9
|
+
private showPassword;
|
|
10
|
+
private notice;
|
|
6
11
|
constructor();
|
|
7
12
|
static get styles(): import("lit").CSSResult[];
|
|
8
13
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
9
14
|
private change;
|
|
15
|
+
private show;
|
|
16
|
+
private readFields;
|
|
10
17
|
private _handleSubmit;
|
|
11
18
|
private handleEmail;
|
|
12
19
|
private handlePassword;
|
|
@@ -18,3 +25,4 @@ declare global {
|
|
|
18
25
|
'form-signup': FormSignup;
|
|
19
26
|
}
|
|
20
27
|
}
|
|
28
|
+
//# sourceMappingURL=signup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/form/signup.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAA8B,KAAK,CAAC;AAsCrC,qBACa,UAAW,SAAQ,UAAU;IAGP,MAAM,SAAa;IAC3C,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,IAAI,CAAc;IAC1B,OAAO,CAAC,IAAI,CAAiB;IAC7B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,MAAM,CAAY;;IAInC,MAAM,KAAK,MAAM,8BAuBd;IAEH,SAAS,CAAC,MAAM;IAiGhB,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,IAAI;IAOZ,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,cAAc;YAMR,MAAM;IAgBpB,OAAO,CAAC,UAAU,CAgCjB;CAEF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAC;KAC7B;CACF"}
|