pwa-auth 3.2.1 → 3.2.3

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.
Files changed (83) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +6 -5
  3. package/base/css/form/button.d.ts +2 -2
  4. package/base/css/form/button.js +2 -2
  5. package/base/css/form/input.d.ts +2 -2
  6. package/base/css/form/input.js +2 -2
  7. package/base/css/form/label.d.ts +2 -2
  8. package/base/css/form/label.js +2 -2
  9. package/base/css/form/list.d.ts +2 -2
  10. package/base/css/form/list.js +2 -2
  11. package/base/css/svg.d.ts +3 -3
  12. package/base/css/svg.js +4 -4
  13. package/base/css/toggle.d.ts +1 -1
  14. package/base/css/toggle.js +2 -2
  15. package/base/export/pwa-auth.d.ts +4 -4
  16. package/base/export/pwa-auth.js +4 -4
  17. package/base/firebase/authentication.d.ts +10 -10
  18. package/base/firebase/authentication.js +10 -10
  19. package/base/firebase/interface.d.ts +4 -4
  20. package/base/firebase/interface.js +79 -79
  21. package/base/firebase/interface.js.map +1 -1
  22. package/base/redux/backend.d.ts +113 -15
  23. package/base/redux/backend.js +43 -43
  24. package/base/redux/backend.js.map +1 -1
  25. package/base/redux/drawer.d.ts +17 -19
  26. package/base/redux/drawer.js +21 -21
  27. package/base/redux/drawer.js.map +1 -1
  28. package/base/redux/frontend.d.ts +159 -16
  29. package/base/redux/frontend.js +67 -67
  30. package/base/redux/frontend.js.map +1 -1
  31. package/base/redux/object.d.ts +23 -23
  32. package/base/redux/object.js +1 -1
  33. package/base/store.d.ts +60 -18
  34. package/base/store.js +13 -13
  35. package/base/webcomponents/drawer/css/drawer.d.ts +2 -2
  36. package/base/webcomponents/drawer/css/drawer.js +2 -2
  37. package/base/webcomponents/drawer/css/exit.d.ts +2 -2
  38. package/base/webcomponents/drawer/css/exit.js +2 -2
  39. package/base/webcomponents/drawer/css/link.d.ts +2 -2
  40. package/base/webcomponents/drawer/css/link.js +2 -2
  41. package/base/webcomponents/drawer/css/paragraph.d.ts +2 -2
  42. package/base/webcomponents/drawer/css/paragraph.js +2 -2
  43. package/base/webcomponents/drawer/css/toggle.d.ts +2 -2
  44. package/base/webcomponents/drawer/css/toggle.js +2 -2
  45. package/base/webcomponents/drawer/drawer.d.ts +57 -36
  46. package/base/webcomponents/drawer/drawer.js +95 -95
  47. package/base/webcomponents/drawer/drawer.js.map +1 -1
  48. package/base/webcomponents/drawer/input/login.d.ts +19 -19
  49. package/base/webcomponents/drawer/input/login.js +83 -83
  50. package/base/webcomponents/drawer/input/login.js.map +1 -1
  51. package/base/webcomponents/drawer/input/sign-up.d.ts +19 -19
  52. package/base/webcomponents/drawer/input/sign-up.js +90 -90
  53. package/base/webcomponents/drawer/input/sign-up.js.map +1 -1
  54. package/base/webcomponents/icon/css/icon.d.ts +1 -1
  55. package/base/webcomponents/icon/css/icon.js +2 -2
  56. package/base/webcomponents/icon/icon.d.ts +53 -32
  57. package/base/webcomponents/icon/icon.js +59 -59
  58. package/base/webcomponents/icon/icon.js.map +1 -1
  59. package/base/webcomponents/settings/css/navigation.d.ts +1 -1
  60. package/base/webcomponents/settings/css/navigation.js +2 -2
  61. package/base/webcomponents/settings/input/delete.d.ts +54 -33
  62. package/base/webcomponents/settings/input/delete.js +73 -73
  63. package/base/webcomponents/settings/input/delete.js.map +1 -1
  64. package/base/webcomponents/settings/input/email.d.ts +54 -33
  65. package/base/webcomponents/settings/input/email.js +72 -72
  66. package/base/webcomponents/settings/input/email.js.map +1 -1
  67. package/base/webcomponents/settings/input/name.d.ts +53 -32
  68. package/base/webcomponents/settings/input/name.js +67 -67
  69. package/base/webcomponents/settings/input/name.js.map +1 -1
  70. package/base/webcomponents/settings/input/password.d.ts +56 -35
  71. package/base/webcomponents/settings/input/password.js +97 -97
  72. package/base/webcomponents/settings/input/password.js.map +1 -1
  73. package/base/webcomponents/settings/input/uploader.d.ts +57 -36
  74. package/base/webcomponents/settings/input/uploader.js +150 -150
  75. package/base/webcomponents/settings/input/uploader.js.map +1 -1
  76. package/base/webcomponents/settings/settings.d.ts +57 -36
  77. package/base/webcomponents/settings/settings.js +78 -78
  78. package/base/webcomponents/settings/settings.js.map +1 -1
  79. package/package.json +6 -8
  80. package/source/esm/pwa-auth.js +881 -0
  81. package/source/esm/pwa-auth.js.map +1 -0
  82. package/export/auth-helpers.ts +0 -1
  83. package/export/export/tsconfigs.production.md +0 -53
package/base/store.js CHANGED
@@ -1,14 +1,14 @@
1
- import { configureStore } from '@reduxjs/toolkit';
2
- import { userSlice } from './redux/frontend';
3
- import { drawerSlice } from './redux/drawer';
4
- import { accountSlice } from './redux/backend';
5
- export const store = configureStore({
6
- reducer: {
7
- frontend: userSlice.reducer,
8
- drawer: drawerSlice.reducer,
9
- backend: accountSlice.reducer,
10
- },
11
- devTools: true
12
- });
13
- export default store;
1
+ import { configureStore } from '@reduxjs/toolkit';
2
+ import { userSlice } from './redux/frontend';
3
+ import { drawerSlice } from './redux/drawer';
4
+ import { accountSlice } from './redux/backend';
5
+ export const store = configureStore({
6
+ reducer: {
7
+ frontend: userSlice.reducer,
8
+ drawer: drawerSlice.reducer,
9
+ backend: accountSlice.reducer,
10
+ },
11
+ devTools: true
12
+ });
13
+ export default store;
14
14
  //# sourceMappingURL=store.js.map
@@ -1,2 +1,2 @@
1
- import { CSSResult } from "lit";
2
- export declare const drawerStyle: CSSResult;
1
+ import { CSSResult } from "lit";
2
+ export declare const drawerStyle: CSSResult;
@@ -1,4 +1,4 @@
1
- import { css } from "lit";
1
+ import { css } from "lit";
2
2
  export const drawerStyle = css `
3
3
 
4
4
  /* <user-drawer> : parent container */
@@ -52,5 +52,5 @@ export const drawerStyle = css `
52
52
  transition-property: visibility, max-height;
53
53
  }
54
54
 
55
- `;
55
+ `;
56
56
  //# sourceMappingURL=drawer.js.map
@@ -1,2 +1,2 @@
1
- import { CSSResult } from "lit";
2
- export declare const exitStyle: CSSResult;
1
+ import { CSSResult } from "lit";
2
+ export declare const exitStyle: CSSResult;
@@ -1,4 +1,4 @@
1
- import { css } from "lit";
1
+ import { css } from "lit";
2
2
  export const exitStyle = css `
3
3
 
4
4
  .exit {
@@ -45,5 +45,5 @@ export const exitStyle = css `
45
45
  opacity: .8;
46
46
  }
47
47
 
48
- `;
48
+ `;
49
49
  //# sourceMappingURL=exit.js.map
@@ -1,2 +1,2 @@
1
- import { CSSResult } from 'lit';
2
- export declare const linkStyle: CSSResult;
1
+ import { CSSResult } from 'lit';
2
+ export declare const linkStyle: CSSResult;
@@ -1,4 +1,4 @@
1
- import { css } from 'lit';
1
+ import { css } from 'lit';
2
2
  export const linkStyle = css `
3
3
 
4
4
  a {
@@ -9,5 +9,5 @@ export const linkStyle = css `
9
9
  text-decoration: none;
10
10
  }
11
11
 
12
- `;
12
+ `;
13
13
  //# sourceMappingURL=link.js.map
@@ -1,2 +1,2 @@
1
- import { CSSResult } from "lit";
2
- export declare const lineStyle: CSSResult;
1
+ import { CSSResult } from "lit";
2
+ export declare const lineStyle: CSSResult;
@@ -1,4 +1,4 @@
1
- import { css } from "lit";
1
+ import { css } from "lit";
2
2
  export const lineStyle = css `
3
3
 
4
4
  .setLog > p {
@@ -7,5 +7,5 @@ export const lineStyle = css `
7
7
  text-align: center;
8
8
  }
9
9
 
10
- `;
10
+ `;
11
11
  //# sourceMappingURL=paragraph.js.map
@@ -1,2 +1,2 @@
1
- import { CSSResult } from "lit";
2
- export declare const toggleStyle: CSSResult;
1
+ import { CSSResult } from "lit";
2
+ export declare const toggleStyle: CSSResult;
@@ -1,4 +1,4 @@
1
- import { css } from "lit";
1
+ import { css } from "lit";
2
2
  export const toggleStyle = css `
3
3
 
4
4
  /* Switch Login / Sign-up Button */
@@ -15,5 +15,5 @@ export const toggleStyle = css `
15
15
  line-height: 42px;
16
16
  }
17
17
 
18
- `;
18
+ `;
19
19
  //# sourceMappingURL=toggle.js.map
@@ -1,36 +1,57 @@
1
- import { CSSResultArray, LitElement } from 'lit';
2
- import { AppState } from '../../store';
3
- import './input/login';
4
- import './input/sign-up';
5
- declare const UserDrawer_base: (new (...args: any[]) => {
6
- _storeUnsubscribe: import("redux").Unsubscribe;
7
- connectedCallback(): void;
8
- disconnectedCallback(): void;
9
- stateChanged(_state: {
10
- frontend: import("../../redux/object").frontendAuth;
11
- drawer: {
12
- drawer: boolean;
13
- };
14
- backend: import("../../redux/object").backendAuth;
15
- }): void;
16
- readonly isConnected: boolean;
17
- }) & typeof LitElement;
18
- export declare class UserDrawer extends UserDrawer_base {
19
- private url;
20
- drawer: boolean;
21
- subscribe: boolean;
22
- private _name;
23
- private _log;
24
- private _sign;
25
- constructor();
26
- stateChanged(state: AppState): void;
27
- protected firstUpdated(): void;
28
- static get styles(): CSSResultArray;
29
- protected render(): import("lit-html").TemplateResult<1>;
30
- }
31
- declare global {
32
- interface HTMLElementTagNameMap {
33
- 'user-drawer': UserDrawer;
34
- }
35
- }
36
- export {};
1
+ import { CSSResultArray, LitElement } from 'lit';
2
+ import { AppState } from '../../store';
3
+ import './input/login';
4
+ import './input/sign-up';
5
+ declare const UserDrawer_base: (new (...args: any[]) => {
6
+ _storeUnsubscribe: import("redux").Unsubscribe;
7
+ connectedCallback(): void;
8
+ disconnectedCallback(): void;
9
+ stateChanged(_state: {
10
+ frontend: {
11
+ settings: string;
12
+ login: boolean;
13
+ drawer: boolean;
14
+ register: boolean;
15
+ userId: string;
16
+ customer: string;
17
+ profileChoice: string;
18
+ name: string;
19
+ photoURL: string;
20
+ phone: string;
21
+ email: string;
22
+ };
23
+ drawer: {
24
+ drawer: boolean;
25
+ };
26
+ backend: {
27
+ verified: boolean;
28
+ anon: boolean;
29
+ userId: string;
30
+ name: string;
31
+ email: string;
32
+ photoURL: string;
33
+ phone: string;
34
+ msgToken: string;
35
+ };
36
+ }): void;
37
+ readonly isConnected: boolean;
38
+ }) & typeof LitElement;
39
+ export declare class UserDrawer extends UserDrawer_base {
40
+ private url;
41
+ drawer: boolean;
42
+ subscribe: boolean;
43
+ private _name;
44
+ private _log;
45
+ private _sign;
46
+ constructor();
47
+ stateChanged(state: AppState): void;
48
+ protected firstUpdated(): void;
49
+ static get styles(): CSSResultArray;
50
+ protected render(): import("lit-html").TemplateResult<1>;
51
+ }
52
+ declare global {
53
+ interface HTMLElementTagNameMap {
54
+ 'user-drawer': UserDrawer;
55
+ }
56
+ }
57
+ export {};
@@ -1,66 +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, LitElement } from 'lit';
11
- import { customElement, property, state } from 'lit/decorators.js';
12
- import { connect } from 'pwa-helpers/connect-mixin';
13
- import { store } from '../../store';
14
- import { close } from '../../css/svg';
15
- import { show } from '../../css/toggle';
16
- import { drawerStyle } from './css/drawer';
17
- import { exitStyle } from './css/exit';
18
- import { linkStyle } from './css/link';
19
- import { lineStyle } from './css/paragraph';
20
- import { listStyle } from '../../css/form/list';
21
- import { toggleSign } from '../../redux/frontend';
22
- import { logOut } from '../../firebase/interface';
23
- import './input/login';
24
- import './input/sign-up';
25
- let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
26
- constructor() {
27
- super();
28
- this.url = '';
29
- this.drawer = false;
30
- this.subscribe = false;
31
- this._name = "";
32
- this._log = false;
33
- this._sign = false;
34
- }
35
- stateChanged(state) {
36
- this._name = state.backend.name;
37
- this.drawer = state.frontend.drawer;
38
- this._log = state.frontend.login;
39
- this._sign = state.frontend.register;
40
- }
41
- firstUpdated() {
42
- this.shadowRoot.querySelector('.close').addEventListener('click', () => {
43
- store.dispatch(toggleSign());
44
- });
45
- this.shadowRoot.querySelector('.leave').addEventListener('click', () => {
46
- if (this._log) {
47
- logOut();
48
- }
49
- store.dispatch(toggleSign());
50
- });
51
- }
52
- static get styles() {
53
- return [
54
- show,
55
- drawerStyle,
56
- exitStyle,
57
- linkStyle,
58
- lineStyle,
59
- listStyle
60
- ];
61
- }
62
- ;
63
- render() {
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, LitElement } from 'lit';
11
+ import { customElement, property, state } from 'lit/decorators.js';
12
+ import { connect } from 'pwa-helpers/connect-mixin';
13
+ import { store } from '../../store';
14
+ import { close } from '../../css/svg';
15
+ import { show } from '../../css/toggle';
16
+ import { drawerStyle } from './css/drawer';
17
+ import { exitStyle } from './css/exit';
18
+ import { linkStyle } from './css/link';
19
+ import { lineStyle } from './css/paragraph';
20
+ import { listStyle } from '../../css/form/list';
21
+ import { toggleSign } from '../../redux/frontend';
22
+ import { logOut } from '../../firebase/interface';
23
+ import './input/login';
24
+ import './input/sign-up';
25
+ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
26
+ constructor() {
27
+ super();
28
+ this.url = '';
29
+ this.drawer = false;
30
+ this.subscribe = false;
31
+ this._name = "";
32
+ this._log = false;
33
+ this._sign = false;
34
+ }
35
+ stateChanged(state) {
36
+ this._name = state.backend.name;
37
+ this.drawer = state.frontend.drawer;
38
+ this._log = state.frontend.login;
39
+ this._sign = state.frontend.register;
40
+ }
41
+ firstUpdated() {
42
+ this.shadowRoot.querySelector('.close').addEventListener('click', () => {
43
+ store.dispatch(toggleSign());
44
+ });
45
+ this.shadowRoot.querySelector('.leave').addEventListener('click', () => {
46
+ if (this._log) {
47
+ logOut();
48
+ }
49
+ store.dispatch(toggleSign());
50
+ });
51
+ }
52
+ static get styles() {
53
+ return [
54
+ show,
55
+ drawerStyle,
56
+ exitStyle,
57
+ linkStyle,
58
+ lineStyle,
59
+ listStyle
60
+ ];
61
+ }
62
+ ;
63
+ render() {
64
64
  return html `
65
65
 
66
66
  <!-- Drawer Wrapper -->
@@ -104,36 +104,36 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
104
104
 
105
105
  </section>
106
106
 
107
- `;
108
- }
109
- };
110
- __decorate([
111
- property({ type: String, reflect: true }),
112
- __metadata("design:type", Object)
113
- ], UserDrawer.prototype, "url", void 0);
114
- __decorate([
115
- property({ type: Boolean, attribute: true, reflect: true }),
116
- __metadata("design:type", Object)
117
- ], UserDrawer.prototype, "drawer", void 0);
118
- __decorate([
119
- property({ type: Boolean, attribute: true, reflect: true }),
120
- __metadata("design:type", Object)
121
- ], UserDrawer.prototype, "subscribe", void 0);
122
- __decorate([
123
- state(),
124
- __metadata("design:type", Object)
125
- ], UserDrawer.prototype, "_name", void 0);
126
- __decorate([
127
- state(),
128
- __metadata("design:type", Object)
129
- ], UserDrawer.prototype, "_log", void 0);
130
- __decorate([
131
- state(),
132
- __metadata("design:type", Object)
133
- ], UserDrawer.prototype, "_sign", void 0);
134
- UserDrawer = __decorate([
135
- customElement('user-drawer'),
136
- __metadata("design:paramtypes", [])
137
- ], UserDrawer);
138
- export { UserDrawer };
107
+ `;
108
+ }
109
+ };
110
+ __decorate([
111
+ property({ type: String, reflect: true }),
112
+ __metadata("design:type", Object)
113
+ ], UserDrawer.prototype, "url", void 0);
114
+ __decorate([
115
+ property({ type: Boolean, attribute: true, reflect: true }),
116
+ __metadata("design:type", Object)
117
+ ], UserDrawer.prototype, "drawer", void 0);
118
+ __decorate([
119
+ property({ type: Boolean, attribute: true, reflect: true }),
120
+ __metadata("design:type", Object)
121
+ ], UserDrawer.prototype, "subscribe", void 0);
122
+ __decorate([
123
+ state(),
124
+ __metadata("design:type", Object)
125
+ ], UserDrawer.prototype, "_name", void 0);
126
+ __decorate([
127
+ state(),
128
+ __metadata("design:type", Object)
129
+ ], UserDrawer.prototype, "_log", void 0);
130
+ __decorate([
131
+ state(),
132
+ __metadata("design:type", Object)
133
+ ], UserDrawer.prototype, "_sign", void 0);
134
+ UserDrawer = __decorate([
135
+ customElement('user-drawer'),
136
+ __metadata("design:paramtypes", [])
137
+ ], UserDrawer);
138
+ export { UserDrawer };
139
139
  //# sourceMappingURL=drawer.js.map
@@ -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;AAC/E,OAAO,EAAE,KAAK,EAAY,MAAyB,aAAa,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAmC,eAAe,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAoC,kBAAkB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAO,cAAc,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAS,YAAY,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAS,YAAY,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAS,iBAAiB,CAAC;AAC/C,OAAO,EAAE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SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAQ;gCAC7D,KAAK;;;;;;eAMrB,IAAI,CAAC,IAAI,KAAK,KAAM;;;;;iBAKlB,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAU;;;;;iBAKvD,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAU;;;;;;;eAO1D,IAAI,CAAC,IAAI,KAAK,IAAK;;wBAEX,IAAI,CAAC,GAAG;;;;;;;;KAQ3B,CAAC;IACJ,CAAC;CAEF,CAAA;AA1FkD;IAAhD,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;uCAAkB;AAGO;IAAhE,QAAQ,CAAC,EAAC,IAAI,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;0CAAuB;AAGf;IAAhE,QAAQ,CAAC,EAAC,IAAI,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;6CAA0B;AAElE;IAAhB,KAAK,EAAE;;yCAA2B;AAClB;IAAhB,KAAK,EAAE;;wCAA8B;AACrB;IAAhB,KAAK,EAAE;;yCAA8B;AAb3B,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;;GAChB,UAAU,CA6FtB"}
@@ -1,19 +1,19 @@
1
- import { LitElement } from 'lit';
2
- export declare class UserLogIn extends LitElement {
3
- private email;
4
- private password;
5
- constructor();
6
- static get styles(): import("lit").CSSResult[];
7
- protected render(): import("lit-html").TemplateResult<1>;
8
- private change;
9
- private handleEmail;
10
- private handlePassword;
11
- private _handleSubmit;
12
- private login;
13
- private signIn;
14
- }
15
- declare global {
16
- interface HTMLElementTagNameMap {
17
- 'user-log-in': UserLogIn;
18
- }
19
- }
1
+ import { LitElement } from 'lit';
2
+ export declare class UserLogIn extends LitElement {
3
+ private email;
4
+ private password;
5
+ constructor();
6
+ static get styles(): import("lit").CSSResult[];
7
+ protected render(): import("lit-html").TemplateResult<1>;
8
+ private change;
9
+ private handleEmail;
10
+ private handlePassword;
11
+ private _handleSubmit;
12
+ private login;
13
+ private signIn;
14
+ }
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ 'user-log-in': UserLogIn;
18
+ }
19
+ }
@@ -1,40 +1,40 @@
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, LitElement, css } from 'lit';
11
- import { customElement, state } from 'lit/decorators.js';
12
- import { EmailAuthProvider, signInWithCredential } from 'firebase/auth';
13
- import { auth } from '../../../firebase/authentication';
14
- import { buttonStyle } from '../../../css/form/button';
15
- import { labelStyle } from '../../../css/form/label';
16
- import { inputStyle } from '../../../css/form/input';
17
- import { listStyle } from '../../../css/form/list';
18
- import { toggleStyle } from '../css/toggle';
19
- import store from '../../../store';
20
- import { signUpAction } from '../../../redux/frontend';
21
- let UserLogIn = class UserLogIn extends LitElement {
22
- constructor() {
23
- super();
24
- this.email = '';
25
- this.password = '';
26
- this.signIn = async (email, password) => {
27
- const authCredential = EmailAuthProvider.credential(email, password);
28
- await signInWithCredential(auth, authCredential).catch((error) => { console.log(error); });
29
- };
30
- }
31
- static get styles() {
32
- return [
33
- listStyle,
34
- labelStyle,
35
- inputStyle,
36
- buttonStyle,
37
- toggleStyle,
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, LitElement, css } from 'lit';
11
+ import { customElement, state } from 'lit/decorators.js';
12
+ import { EmailAuthProvider, signInWithCredential } from 'firebase/auth';
13
+ import { auth } from '../../../firebase/authentication';
14
+ import { buttonStyle } from '../../../css/form/button';
15
+ import { labelStyle } from '../../../css/form/label';
16
+ import { inputStyle } from '../../../css/form/input';
17
+ import { listStyle } from '../../../css/form/list';
18
+ import { toggleStyle } from '../css/toggle';
19
+ import store from '../../../store';
20
+ import { signUpAction } from '../../../redux/frontend';
21
+ let UserLogIn = class UserLogIn extends LitElement {
22
+ constructor() {
23
+ super();
24
+ this.email = '';
25
+ this.password = '';
26
+ this.signIn = async (email, password) => {
27
+ const authCredential = EmailAuthProvider.credential(email, password);
28
+ await signInWithCredential(auth, authCredential).catch((error) => { console.log(error); });
29
+ };
30
+ }
31
+ static get styles() {
32
+ return [
33
+ listStyle,
34
+ labelStyle,
35
+ inputStyle,
36
+ buttonStyle,
37
+ toggleStyle,
38
38
  css `
39
39
 
40
40
  .double {
@@ -42,11 +42,11 @@ let UserLogIn = class UserLogIn extends LitElement {
42
42
  grid-template-columns: 1fr auto;
43
43
  }
44
44
 
45
- `
46
- ];
47
- }
48
- ;
49
- render() {
45
+ `
46
+ ];
47
+ }
48
+ ;
49
+ render() {
50
50
  return html `
51
51
 
52
52
  <!-- Log-in State -->
@@ -91,45 +91,45 @@ let UserLogIn = class UserLogIn extends LitElement {
91
91
 
92
92
  </form>
93
93
 
94
- `;
95
- }
96
- change() {
97
- store.dispatch(signUpAction());
98
- }
99
- handleEmail(event) {
100
- const input = event.target;
101
- this.email = input.value;
102
- }
103
- handlePassword(event) {
104
- const input = event.target;
105
- this.password = input.value;
106
- }
107
- _handleSubmit(event) {
108
- event.preventDefault();
109
- }
110
- login() {
111
- if (this.email.length < 4) {
112
- alert('Please enter an email address.');
113
- return;
114
- }
115
- if (this.password.length < 4) {
116
- alert('Please enter a password.');
117
- return;
118
- }
119
- this.signIn(this.email, this.password);
120
- }
121
- };
122
- __decorate([
123
- state(),
124
- __metadata("design:type", Object)
125
- ], UserLogIn.prototype, "email", void 0);
126
- __decorate([
127
- state(),
128
- __metadata("design:type", Object)
129
- ], UserLogIn.prototype, "password", void 0);
130
- UserLogIn = __decorate([
131
- customElement('user-log-in'),
132
- __metadata("design:paramtypes", [])
133
- ], UserLogIn);
134
- export { UserLogIn };
94
+ `;
95
+ }
96
+ change() {
97
+ store.dispatch(signUpAction());
98
+ }
99
+ handleEmail(event) {
100
+ const input = event.target;
101
+ this.email = input.value;
102
+ }
103
+ handlePassword(event) {
104
+ const input = event.target;
105
+ this.password = input.value;
106
+ }
107
+ _handleSubmit(event) {
108
+ event.preventDefault();
109
+ }
110
+ login() {
111
+ if (this.email.length < 4) {
112
+ alert('Please enter an email address.');
113
+ return;
114
+ }
115
+ if (this.password.length < 4) {
116
+ alert('Please enter a password.');
117
+ return;
118
+ }
119
+ this.signIn(this.email, this.password);
120
+ }
121
+ };
122
+ __decorate([
123
+ state(),
124
+ __metadata("design:type", Object)
125
+ ], UserLogIn.prototype, "email", void 0);
126
+ __decorate([
127
+ state(),
128
+ __metadata("design:type", Object)
129
+ ], UserLogIn.prototype, "password", void 0);
130
+ UserLogIn = __decorate([
131
+ customElement('user-log-in'),
132
+ __metadata("design:paramtypes", [])
133
+ ], UserLogIn);
134
+ export { UserLogIn };
135
135
  //# sourceMappingURL=login.js.map