pwa-auth 3.2.5 → 3.3.2
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/{THIRD_PARTY_LICENSES.txt → LICENSES.txt} +57 -57
- package/README.md +91 -66
- package/base/export/pwa-auth.d.ts +2 -0
- package/base/export/pwa-auth.js +2 -0
- package/base/export/pwa-auth.js.map +1 -1
- package/base/lazy-loader.d.ts +11 -0
- package/base/lazy-loader.js +23 -0
- package/base/lazy-loader.js.map +1 -0
- package/base/redux/frontend.d.ts +41 -14
- package/base/redux/frontend.js +25 -6
- package/base/redux/frontend.js.map +1 -1
- package/base/store.d.ts +4 -2
- package/base/webcomponents/css/animation.d.ts +2 -0
- package/base/webcomponents/css/animation.js +68 -0
- package/base/webcomponents/css/animation.js.map +1 -0
- package/base/webcomponents/css/svg.js.map +1 -0
- package/base/{css → webcomponents/css}/toggle.js +0 -1
- package/base/webcomponents/css/toggle.js.map +1 -0
- package/base/webcomponents/drawer/css/drawer.js +7 -10
- package/base/webcomponents/drawer/css/drawer.js.map +1 -1
- package/base/webcomponents/drawer/drawer.d.ts +7 -6
- package/base/webcomponents/drawer/drawer.js +46 -31
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/base/{css/form → webcomponents/form/css}/button.js +1 -2
- package/base/webcomponents/form/css/button.js.map +1 -0
- package/base/{css/form → webcomponents/form/css}/input.js +0 -1
- package/base/webcomponents/form/css/input.js.map +1 -0
- package/base/webcomponents/form/css/label.js.map +1 -0
- package/base/{css/form → webcomponents/form/css}/list.js +1 -2
- package/base/webcomponents/form/css/list.js.map +1 -0
- package/base/webcomponents/{drawer → form}/css/toggle.js +0 -1
- package/base/webcomponents/form/css/toggle.js.map +1 -0
- package/base/webcomponents/form/forgot.d.ts +15 -0
- package/base/webcomponents/form/forgot.js +66 -0
- package/base/webcomponents/form/forgot.js.map +1 -0
- package/base/webcomponents/{drawer/input → form}/login.d.ts +3 -2
- package/base/webcomponents/form/login.js +158 -0
- package/base/webcomponents/form/login.js.map +1 -0
- package/base/webcomponents/{drawer/input/sign-up.d.ts → form/signup.d.ts} +3 -2
- package/base/webcomponents/{drawer/input/sign-up.js → form/signup.js} +75 -49
- package/base/webcomponents/form/signup.js.map +1 -0
- package/base/webcomponents/icon/css/icon.js +0 -5
- package/base/webcomponents/icon/css/icon.js.map +1 -1
- package/base/webcomponents/icon/icon.d.ts +2 -1
- package/base/webcomponents/icon/icon.js +7 -5
- package/base/webcomponents/icon/icon.js.map +1 -1
- package/base/webcomponents/login/css/auth.d.ts +2 -0
- package/base/webcomponents/login/css/auth.js +37 -0
- package/base/webcomponents/login/css/auth.js.map +1 -0
- package/base/webcomponents/login/css/link.d.ts +2 -0
- package/base/webcomponents/login/css/link.js +13 -0
- package/base/webcomponents/login/css/link.js.map +1 -0
- package/base/webcomponents/login/css/paragraph.d.ts +2 -0
- package/base/webcomponents/login/css/paragraph.js +11 -0
- package/base/webcomponents/login/css/paragraph.js.map +1 -0
- package/base/webcomponents/login/page.d.ts +55 -0
- package/base/webcomponents/login/page.js +114 -0
- package/base/webcomponents/login/page.js.map +1 -0
- package/base/webcomponents/settings/css/navigation.js +6 -7
- package/base/webcomponents/settings/css/navigation.js.map +1 -1
- package/base/webcomponents/settings/input/delete.d.ts +2 -1
- package/base/webcomponents/settings/input/delete.js +15 -13
- package/base/webcomponents/settings/input/delete.js.map +1 -1
- package/base/webcomponents/settings/input/email.d.ts +2 -1
- package/base/webcomponents/settings/input/email.js +37 -35
- package/base/webcomponents/settings/input/email.js.map +1 -1
- package/base/webcomponents/settings/input/name.d.ts +2 -1
- package/base/webcomponents/settings/input/name.js +24 -20
- package/base/webcomponents/settings/input/name.js.map +1 -1
- package/base/webcomponents/settings/input/password.d.ts +2 -1
- package/base/webcomponents/settings/input/password.js +53 -39
- package/base/webcomponents/settings/input/password.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.d.ts +2 -1
- package/base/webcomponents/settings/input/uploader.js +14 -14
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/base/webcomponents/settings/settings.d.ts +2 -1
- package/base/webcomponents/settings/settings.js +53 -44
- package/base/webcomponents/settings/settings.js.map +1 -1
- package/demonstration/index.html +53 -77
- package/demonstration/styles.css +76 -0
- package/export/pwa-auth.ts +0 -1
- package/package.json +32 -23
- package/source/dev bundle/pwa-auth.js +1110 -0
- package/source/dev bundle/pwa-auth.js.map +1 -0
- package/source/production/pwa-auth.js +1109 -0
- package/source/pwa-styles.css +2 -0
- package/CHANGELOG.md +0 -231
- package/base/css/form/button.js.map +0 -1
- package/base/css/form/input.js.map +0 -1
- package/base/css/form/label.js.map +0 -1
- package/base/css/form/list.js.map +0 -1
- package/base/css/svg.js.map +0 -1
- package/base/css/toggle.js.map +0 -1
- package/base/webcomponents/drawer/css/toggle.js.map +0 -1
- package/base/webcomponents/drawer/input/login.js +0 -133
- package/base/webcomponents/drawer/input/login.js.map +0 -1
- package/base/webcomponents/drawer/input/sign-up.js.map +0 -1
- package/source/esm/pwa-auth.js +0 -881
- package/source/esm/pwa-auth.js.map +0 -1
- /package/base/{css → webcomponents/css}/svg.d.ts +0 -0
- /package/base/{css → webcomponents/css}/svg.js +0 -0
- /package/base/{css → webcomponents/css}/toggle.d.ts +0 -0
- /package/base/{css/form → webcomponents/form/css}/button.d.ts +0 -0
- /package/base/{css/form → webcomponents/form/css}/input.d.ts +0 -0
- /package/base/{css/form → webcomponents/form/css}/label.d.ts +0 -0
- /package/base/{css/form → webcomponents/form/css}/label.js +0 -0
- /package/base/{css/form → webcomponents/form/css}/list.d.ts +0 -0
- /package/base/webcomponents/{drawer → form}/css/toggle.d.ts +0 -0
package/base/store.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
3
3
|
settings: string;
|
|
4
4
|
login: boolean;
|
|
5
5
|
drawer: boolean;
|
|
6
|
-
|
|
6
|
+
registerOne: boolean;
|
|
7
|
+
registerTwo: boolean;
|
|
7
8
|
userId: string;
|
|
8
9
|
customer: string;
|
|
9
10
|
profileChoice: string;
|
|
@@ -31,7 +32,8 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
31
32
|
settings: string;
|
|
32
33
|
login: boolean;
|
|
33
34
|
drawer: boolean;
|
|
34
|
-
|
|
35
|
+
registerOne: boolean;
|
|
36
|
+
registerTwo: boolean;
|
|
35
37
|
userId: string;
|
|
36
38
|
customer: string;
|
|
37
39
|
profileChoice: string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const animation = css `
|
|
3
|
+
|
|
4
|
+
.wrapper {
|
|
5
|
+
display: grid;
|
|
6
|
+
margin: 16px;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
border: 2px solid #0a2840;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.inner {
|
|
13
|
+
display: grid;
|
|
14
|
+
grid-template-areas: 'pages';
|
|
15
|
+
overflow-y: auto;
|
|
16
|
+
border-bottom: 6px solid #0a2840;
|
|
17
|
+
border-radius: 6px;
|
|
18
|
+
scrollbar-width: thin;
|
|
19
|
+
z-index: 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.content {
|
|
23
|
+
display: grid;
|
|
24
|
+
grid-area: pages;
|
|
25
|
+
|
|
26
|
+
border-bottom: 2px solid grey;
|
|
27
|
+
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
-webkit-box-sizing: border-box;
|
|
30
|
+
|
|
31
|
+
will-change: transform;
|
|
32
|
+
|
|
33
|
+
transition-property: transform, transition;
|
|
34
|
+
-webkit-transition-property: transform, transition;
|
|
35
|
+
|
|
36
|
+
backface-visibility: hidden;
|
|
37
|
+
|
|
38
|
+
transition-timing-function: ease-in-out;
|
|
39
|
+
-webkit-transition-timing-function: ease-in-out;
|
|
40
|
+
|
|
41
|
+
transition-duration: 2s;
|
|
42
|
+
-webkit-transition-duration: 2s;
|
|
43
|
+
|
|
44
|
+
position:relative;
|
|
45
|
+
z-index: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes slide-out {
|
|
49
|
+
from { max-height: 100%; }
|
|
50
|
+
to { max-height: 100dvh; }
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.opened {
|
|
54
|
+
transform: translate3d(0, 0, 0);/*rotateY(0deg);*/
|
|
55
|
+
position:relative;
|
|
56
|
+
z-index: 3;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.closed {
|
|
60
|
+
transform: translate3d(0, -102%, 0);/*rotateY(-180deg);*/
|
|
61
|
+
animation: slide-out 2s ease-out forwards;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
position:relative;
|
|
64
|
+
z-index: 2;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
`;
|
|
68
|
+
//# sourceMappingURL=animation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiEvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,MAAM,CAAC,MAAM,QAAQ,GAAK,IAAI,CAAA,0eAA0e,CAAC;AACzgB,MAAM,CAAC,MAAM,QAAQ,GAAK,IAAI,CAAA,mtBAAmtB,CAAC;AAClvB,MAAM,CAAC,MAAM,KAAK,GAAQ,IAAI,CAAA,wJAAwJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/toggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAA;;;;;CAKtB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
export const drawerStyle = css `
|
|
3
3
|
|
|
4
|
-
/* <user-drawer> : parent container */
|
|
5
4
|
:host {
|
|
6
5
|
position: absolute;
|
|
7
6
|
max-height: 0px;
|
|
@@ -18,34 +17,32 @@ export const drawerStyle = css `
|
|
|
18
17
|
transition: max-height 1.4s ease-out;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
/* wrapper : child container*/
|
|
22
20
|
.userDrawer {
|
|
23
21
|
position: fixed;
|
|
24
22
|
top: 0;
|
|
25
23
|
left: 0;
|
|
26
24
|
right: 0;
|
|
27
25
|
transition-duration: 1.4s;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
height: auto;
|
|
29
|
+
transition-property: visibility, max-height;
|
|
30
|
+
|
|
28
31
|
border: var(--pwa_drawer_border, 3px #303030 solid);
|
|
29
32
|
z-index: var(--pwa_drawer_z-index, 2);
|
|
30
|
-
overflow: hidden;
|
|
31
33
|
background-color: var(--pwa_drawer_background_color, #fff);
|
|
32
34
|
color: var(--pwa_drawer_text_color, #303030);
|
|
33
|
-
box-sizing: border-box;
|
|
34
35
|
border-radius: var(--pwa_drawer_border-radius, 20px);
|
|
35
|
-
height: auto;
|
|
36
|
-
transition-property: visibility, max-height;
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
.closed {
|
|
38
|
+
.out {
|
|
41
39
|
max-height: 0px;
|
|
42
40
|
transition: max-height 1.4s ease-out;
|
|
43
41
|
visibility: hidden;
|
|
44
42
|
transition-property: visibility, max-height;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
.opened {
|
|
45
|
+
.in {
|
|
49
46
|
max-height: 100%;
|
|
50
47
|
transition: max-height 1.4s ease-out;
|
|
51
48
|
visibility: visible;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDxC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSResultArray, LitElement } from 'lit';
|
|
2
2
|
import { AppState } from '../../store';
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
3
|
+
import '../form/login';
|
|
4
|
+
import '../form/signup';
|
|
5
5
|
declare const UserDrawer_base: (new (...args: any[]) => {
|
|
6
6
|
_storeUnsubscribe: import("redux").Unsubscribe;
|
|
7
7
|
connectedCallback(): void;
|
|
@@ -11,7 +11,8 @@ declare const UserDrawer_base: (new (...args: any[]) => {
|
|
|
11
11
|
settings: string;
|
|
12
12
|
login: boolean;
|
|
13
13
|
drawer: boolean;
|
|
14
|
-
|
|
14
|
+
registerOne: boolean;
|
|
15
|
+
registerTwo: boolean;
|
|
15
16
|
userId: string;
|
|
16
17
|
customer: string;
|
|
17
18
|
profileChoice: string;
|
|
@@ -40,9 +41,9 @@ export declare class UserDrawer extends UserDrawer_base {
|
|
|
40
41
|
private url;
|
|
41
42
|
drawer: boolean;
|
|
42
43
|
subscribe: boolean;
|
|
43
|
-
private
|
|
44
|
-
private
|
|
45
|
-
private
|
|
44
|
+
private name;
|
|
45
|
+
private user;
|
|
46
|
+
private signup;
|
|
46
47
|
constructor();
|
|
47
48
|
stateChanged(state: AppState): void;
|
|
48
49
|
protected firstUpdated(): void;
|
|
@@ -11,37 +11,40 @@ import { html, LitElement } from 'lit';
|
|
|
11
11
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
12
12
|
import { connect } from 'pwa-helpers/connect-mixin';
|
|
13
13
|
import { store } from '../../store';
|
|
14
|
-
import { close } from '
|
|
15
|
-
import { show } from '
|
|
14
|
+
import { close } from '../css/svg';
|
|
15
|
+
import { show } from '../css/toggle';
|
|
16
|
+
import { listStyle } from '../form/css/list';
|
|
16
17
|
import { drawerStyle } from './css/drawer';
|
|
17
18
|
import { exitStyle } from './css/exit';
|
|
18
19
|
import { linkStyle } from './css/link';
|
|
19
20
|
import { lineStyle } from './css/paragraph';
|
|
20
|
-
import { listStyle } from '../../css/form/list';
|
|
21
21
|
import { toggleSign } from '../../redux/frontend';
|
|
22
22
|
import { logOut } from '../../firebase/interface';
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
23
|
+
import '../form/login';
|
|
24
|
+
import '../form/signup';
|
|
25
|
+
import { animation } from '../css/animation';
|
|
25
26
|
let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.url = '';
|
|
30
|
+
this.drawer = false;
|
|
31
|
+
this.subscribe = false;
|
|
32
|
+
this.name = "";
|
|
33
|
+
this.user = false;
|
|
34
|
+
this.signup = false;
|
|
35
|
+
}
|
|
33
36
|
stateChanged(state) {
|
|
34
|
-
this.
|
|
37
|
+
this.name = state.backend.name;
|
|
35
38
|
this.drawer = state.frontend.drawer;
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
39
|
+
this.user = state.frontend.login;
|
|
40
|
+
this.signup = state.frontend.registerOne;
|
|
38
41
|
}
|
|
39
42
|
firstUpdated() {
|
|
40
43
|
this.shadowRoot.querySelector('.close').addEventListener('click', () => {
|
|
41
44
|
store.dispatch(toggleSign());
|
|
42
45
|
});
|
|
43
46
|
this.shadowRoot.querySelector('.leave').addEventListener('click', () => {
|
|
44
|
-
if (this.
|
|
47
|
+
if (this.user) {
|
|
45
48
|
logOut();
|
|
46
49
|
}
|
|
47
50
|
store.dispatch(toggleSign());
|
|
@@ -50,6 +53,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
50
53
|
static get styles() {
|
|
51
54
|
return [
|
|
52
55
|
show,
|
|
56
|
+
animation,
|
|
53
57
|
drawerStyle,
|
|
54
58
|
exitStyle,
|
|
55
59
|
linkStyle,
|
|
@@ -63,36 +67,47 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
63
67
|
|
|
64
68
|
<!-- Drawer Wrapper -->
|
|
65
69
|
<section
|
|
66
|
-
class="userDrawer ${this.drawer ? '
|
|
70
|
+
class="userDrawer ${this.drawer ? 'in' : 'out'}">
|
|
67
71
|
|
|
68
72
|
<!-- Exit Button -->
|
|
69
73
|
<header class="exit">
|
|
70
74
|
<div></div>
|
|
71
|
-
<h3>${this.
|
|
75
|
+
<h3>${this.user === false ? this.signup === this.subscribe ? `Login` : `Subscribe` : this.name}</h3>
|
|
72
76
|
<button class="close">${close}</button>
|
|
73
77
|
</header>
|
|
74
78
|
|
|
75
79
|
<!-- Logged-out State -->
|
|
76
80
|
<div
|
|
77
81
|
class="spec"
|
|
78
|
-
?on="${this.
|
|
82
|
+
?on="${this.user === false}">
|
|
83
|
+
|
|
84
|
+
<div class= "wrapper">
|
|
85
|
+
<div class= "inner">
|
|
86
|
+
|
|
87
|
+
<!-- Log-in State -->
|
|
88
|
+
<form-login
|
|
89
|
+
source="drawer"
|
|
90
|
+
class="content ${this.signup ===
|
|
91
|
+
this.subscribe ?
|
|
92
|
+
'opened' :
|
|
93
|
+
'closed'} ">
|
|
94
|
+
</form-login>
|
|
79
95
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
96
|
+
<!-- Sign-up State -->
|
|
97
|
+
<form-signup
|
|
98
|
+
source="drawer"
|
|
99
|
+
class="content ${!this.signup === this.subscribe ? 'opened' : 'closed'} ">
|
|
100
|
+
</form-signup>
|
|
84
101
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
class="spec"
|
|
88
|
-
?on="${false === this._sign ? !this.subscribe : this.subscribe}"></user-sign-up>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
89
104
|
|
|
90
105
|
</div>
|
|
91
106
|
|
|
92
107
|
<!-- Logged-in State -->
|
|
93
108
|
<div
|
|
94
109
|
class="spec setLog"
|
|
95
|
-
?on="${this.
|
|
110
|
+
?on="${this.user === true}">
|
|
96
111
|
|
|
97
112
|
<p><a href="${this.url}">Settings</a></p>
|
|
98
113
|
|
|
@@ -120,15 +135,15 @@ __decorate([
|
|
|
120
135
|
__decorate([
|
|
121
136
|
state(),
|
|
122
137
|
__metadata("design:type", Object)
|
|
123
|
-
], UserDrawer.prototype, "
|
|
138
|
+
], UserDrawer.prototype, "name", void 0);
|
|
124
139
|
__decorate([
|
|
125
140
|
state(),
|
|
126
141
|
__metadata("design:type", Object)
|
|
127
|
-
], UserDrawer.prototype, "
|
|
142
|
+
], UserDrawer.prototype, "user", void 0);
|
|
128
143
|
__decorate([
|
|
129
144
|
state(),
|
|
130
145
|
__metadata("design:type", Object)
|
|
131
|
-
], UserDrawer.prototype, "
|
|
146
|
+
], UserDrawer.prototype, "signup", void 0);
|
|
132
147
|
UserDrawer = __decorate([
|
|
133
148
|
customElement('user-drawer'),
|
|
134
149
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../typescript/webcomponents/drawer/drawer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAkB,IAAI,EAAE,UAAU,EAAE,MAAQ,KAAK,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAU,mBAAmB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAiC,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../typescript/webcomponents/drawer/drawer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAkB,IAAI,EAAE,UAAU,EAAE,MAAQ,KAAK,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAU,mBAAmB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAiC,2BAA2B,CAAC;AAE/E,OAAO,EAAE,KAAK,EAAY,MAAO,aAAa,CAAC;AAE/C,OAAO,EAAE,KAAK,EAAE,MAAiB,YAAY,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAkB,eAAe,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAa,kBAAkB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAW,cAAc,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAa,YAAY,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAa,YAAY,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAa,iBAAiB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAY,sBAAsB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAgB,0BAA0B,CAAC;AAE5D,OAAO,eAAe,CAAC;AACvB,OAAO,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGtC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,OAAO,CAA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
|
|
29
|
-
transition: background-color 0.3s;
|
|
29
|
+
transition: background-color 0.3s;
|
|
30
30
|
background-color: #D6EBD3;
|
|
31
31
|
border: 0.5px solid black;
|
|
32
32
|
border-radius: 4px;
|
|
@@ -36,7 +36,6 @@ export const buttonStyle = css `
|
|
|
36
36
|
box-shadow: 1px 1px 1px grey;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
/* */
|
|
40
39
|
.submit:hover { background-color: #45a049; }
|
|
41
40
|
|
|
42
41
|
.submit {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/form/css/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAA;AAEpC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/form/css/input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,UAAU,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqBxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/form/css/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,UAAU,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/form/css/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;CAmBtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/form/css/toggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;CAexC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { LazyLoader } from '../../lazy-loader';
|
|
3
|
+
export declare class EmailReset extends LazyLoader {
|
|
4
|
+
private userEmail;
|
|
5
|
+
constructor();
|
|
6
|
+
protected firstUpdated(): void;
|
|
7
|
+
private handleEmail;
|
|
8
|
+
protected render(): TemplateResult;
|
|
9
|
+
private restPassword;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'email-reset': EmailReset;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { html, } from 'lit';
|
|
11
|
+
import { customElement, state } from "lit/decorators.js";
|
|
12
|
+
import { LazyLoader } from '../../lazy-loader';
|
|
13
|
+
import { auth } from '../../firebase/authentication';
|
|
14
|
+
import { sendPasswordResetEmail } from 'firebase/auth';
|
|
15
|
+
let EmailReset = class EmailReset extends LazyLoader {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.userEmail = '';
|
|
19
|
+
this.restPassword = async () => {
|
|
20
|
+
await sendPasswordResetEmail(auth, this.userEmail)
|
|
21
|
+
.catch((error) => { console.log(error); });
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
firstUpdated() {
|
|
25
|
+
this.shadowRoot.querySelector(".reset").addEventListener("click", () => {
|
|
26
|
+
this.restPassword();
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
handleEmail(event) {
|
|
30
|
+
const input = event.target;
|
|
31
|
+
this.userEmail = input.value;
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return html `
|
|
35
|
+
|
|
36
|
+
<form class="resetPass">
|
|
37
|
+
|
|
38
|
+
<input
|
|
39
|
+
class ="email"
|
|
40
|
+
type ="text"
|
|
41
|
+
placeholder ="email"
|
|
42
|
+
@change ="${this.handleEmail}">
|
|
43
|
+
|
|
44
|
+
<button
|
|
45
|
+
type ="submit"
|
|
46
|
+
class ="reset">Forgot Password</button>
|
|
47
|
+
|
|
48
|
+
</form>
|
|
49
|
+
|
|
50
|
+
<input
|
|
51
|
+
class ="phoneVerify"
|
|
52
|
+
type ="text" />
|
|
53
|
+
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
__decorate([
|
|
58
|
+
state(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], EmailReset.prototype, "userEmail", void 0);
|
|
61
|
+
EmailReset = __decorate([
|
|
62
|
+
customElement('email-reset'),
|
|
63
|
+
__metadata("design:paramtypes", [])
|
|
64
|
+
], EmailReset);
|
|
65
|
+
export { EmailReset };
|
|
66
|
+
//# sourceMappingURL=forgot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgot.js","sourceRoot":"","sources":["../../../typescript/webcomponents/form/forgot.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,EAAE,IAAI,GAAoB,MAAU,KAAK,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAY,mBAAmB,CAAA;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAsB,mBAAmB,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAA4B,+BAA+B,CAAC;AAE3E,OAAO,EAAE,sBAAsB,EAA+B,MAAU,eAAe,CAAC;AAGjF,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAKxC;QAAgB,KAAK,EAAE,CAAC;QAHP,cAAS,GAAW,EAAE,CAAC;QA6ChC,iBAAY,GAAG,KAAK,IAAI,EAAE;YAEhC,MAAM,sBAAsB,CAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAE;iBACnD,KAAK,CAAE,CAAC,KAAS,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC;QAEnD,CAAC,CAAA;IA/CwB,CAAC;IAEhB,YAAY;QAEpB,IAAI,CAAC,UAAW,CAAC,aAAa,CAAC,QAAQ,CAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YACvE,IAAI,CAAC,YAAY,EAAE,CAAC;QACtB,CAAC,CAAE,CAAC;IAEN,CAAC;IAGO,WAAW,CAAC,KAAY;QAC9B,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC;IAC/B,CAAC;IAEW,MAAM;QACd,OAAO,IAAI,CAAA;;;;;;;;4BAQW,IAAI,CAAC,WAAW;;;;;;;;;;;;KAYvC,CAAA;IACH,CAAC;CAkBF,CAAA;AA3DC;IAAC,KAAK,EAAE;;6CAAgC;AAF7B,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;;GAChB,UAAU,CA6DtB;SA7DY,UAAU"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class FormLogin extends LitElement {
|
|
3
|
+
source: string;
|
|
3
4
|
private email;
|
|
4
5
|
private password;
|
|
5
6
|
constructor();
|
|
@@ -14,6 +15,6 @@ export declare class UserLogIn extends LitElement {
|
|
|
14
15
|
}
|
|
15
16
|
declare global {
|
|
16
17
|
interface HTMLElementTagNameMap {
|
|
17
|
-
'
|
|
18
|
+
'form-login': FormLogin;
|
|
18
19
|
}
|
|
19
20
|
}
|