pwa-auth 3.3.4 → 3.3.6

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 (97) hide show
  1. package/LICENSES.txt +5 -5
  2. package/README.md +37 -23
  3. package/base/export/pwa-auth.d.ts +6 -6
  4. package/base/export/pwa-auth.js +6 -6
  5. package/base/firebase/authentication.d.ts +10 -10
  6. package/base/firebase/authentication.js +10 -10
  7. package/base/firebase/interface.d.ts +4 -4
  8. package/base/firebase/interface.js +79 -79
  9. package/base/firebase/interface.js.map +1 -1
  10. package/base/lazy-loader.d.ts +11 -11
  11. package/base/lazy-loader.js +22 -22
  12. package/base/lazy-loader.js.map +1 -1
  13. package/base/redux/backend.d.ts +113 -122
  14. package/base/redux/backend.js +43 -43
  15. package/base/redux/drawer.d.ts +17 -19
  16. package/base/redux/drawer.js +21 -21
  17. package/base/redux/drawer.js.map +1 -1
  18. package/base/redux/frontend.d.ts +185 -198
  19. package/base/redux/frontend.js +86 -86
  20. package/base/redux/frontend.js.map +1 -1
  21. package/base/store.d.ts +62 -62
  22. package/base/store.js +13 -13
  23. package/base/webcomponents/css/animation.d.ts +2 -2
  24. package/base/webcomponents/css/animation.js +2 -2
  25. package/base/webcomponents/css/svg.d.ts +3 -3
  26. package/base/webcomponents/css/svg.js +4 -4
  27. package/base/webcomponents/css/toggle.d.ts +1 -1
  28. package/base/webcomponents/css/toggle.js +2 -2
  29. package/base/webcomponents/drawer/css/drawer.d.ts +2 -2
  30. package/base/webcomponents/drawer/css/drawer.js +2 -2
  31. package/base/webcomponents/drawer/css/exit.d.ts +2 -2
  32. package/base/webcomponents/drawer/css/exit.js +2 -2
  33. package/base/webcomponents/drawer/css/link.d.ts +2 -2
  34. package/base/webcomponents/drawer/css/link.js +2 -2
  35. package/base/webcomponents/drawer/css/paragraph.d.ts +2 -2
  36. package/base/webcomponents/drawer/css/paragraph.js +2 -2
  37. package/base/webcomponents/drawer/drawer.d.ts +58 -58
  38. package/base/webcomponents/drawer/drawer.js +100 -100
  39. package/base/webcomponents/drawer/drawer.js.map +1 -1
  40. package/base/webcomponents/form/css/button.d.ts +2 -2
  41. package/base/webcomponents/form/css/button.js +2 -2
  42. package/base/webcomponents/form/css/input.d.ts +2 -2
  43. package/base/webcomponents/form/css/input.js +2 -2
  44. package/base/webcomponents/form/css/label.d.ts +2 -2
  45. package/base/webcomponents/form/css/label.js +2 -2
  46. package/base/webcomponents/form/css/list.d.ts +2 -2
  47. package/base/webcomponents/form/css/list.js +2 -2
  48. package/base/webcomponents/form/css/toggle.d.ts +2 -2
  49. package/base/webcomponents/form/css/toggle.js +2 -2
  50. package/base/webcomponents/form/forgot.d.ts +15 -15
  51. package/base/webcomponents/form/forgot.js +45 -45
  52. package/base/webcomponents/form/forgot.js.map +1 -1
  53. package/base/webcomponents/form/login.d.ts +20 -20
  54. package/base/webcomponents/form/login.js +88 -88
  55. package/base/webcomponents/form/login.js.map +1 -1
  56. package/base/webcomponents/form/signup.d.ts +20 -20
  57. package/base/webcomponents/form/signup.js +95 -95
  58. package/base/webcomponents/form/signup.js.map +1 -1
  59. package/base/webcomponents/icon/css/icon.d.ts +1 -1
  60. package/base/webcomponents/icon/css/icon.js +2 -2
  61. package/base/webcomponents/icon/icon.d.ts +54 -54
  62. package/base/webcomponents/icon/icon.js +59 -59
  63. package/base/webcomponents/icon/icon.js.map +1 -1
  64. package/base/webcomponents/login/css/auth.d.ts +2 -2
  65. package/base/webcomponents/login/css/auth.js +2 -2
  66. package/base/webcomponents/login/css/link.d.ts +2 -2
  67. package/base/webcomponents/login/css/link.js +2 -2
  68. package/base/webcomponents/login/css/paragraph.d.ts +2 -2
  69. package/base/webcomponents/login/css/paragraph.js +2 -2
  70. package/base/webcomponents/login/page.d.ts +55 -55
  71. package/base/webcomponents/login/page.js +71 -71
  72. package/base/webcomponents/login/page.js.map +1 -1
  73. package/base/webcomponents/settings/css/navigation.d.ts +1 -1
  74. package/base/webcomponents/settings/css/navigation.js +2 -2
  75. package/base/webcomponents/settings/input/delete.d.ts +55 -55
  76. package/base/webcomponents/settings/input/delete.js +73 -73
  77. package/base/webcomponents/settings/input/delete.js.map +1 -1
  78. package/base/webcomponents/settings/input/email.d.ts +55 -55
  79. package/base/webcomponents/settings/input/email.js +72 -72
  80. package/base/webcomponents/settings/input/email.js.map +1 -1
  81. package/base/webcomponents/settings/input/name.d.ts +54 -54
  82. package/base/webcomponents/settings/input/name.js +67 -67
  83. package/base/webcomponents/settings/input/name.js.map +1 -1
  84. package/base/webcomponents/settings/input/password.d.ts +57 -57
  85. package/base/webcomponents/settings/input/password.js +97 -97
  86. package/base/webcomponents/settings/input/password.js.map +1 -1
  87. package/base/webcomponents/settings/input/uploader.d.ts +58 -58
  88. package/base/webcomponents/settings/input/uploader.js +150 -150
  89. package/base/webcomponents/settings/input/uploader.js.map +1 -1
  90. package/base/webcomponents/settings/settings.d.ts +58 -58
  91. package/base/webcomponents/settings/settings.js +80 -80
  92. package/base/webcomponents/settings/settings.js.map +1 -1
  93. package/package.json +33 -37
  94. package/source/{development/pwa-auth.js → pwa-auth.js} +30 -31
  95. package/export/pwa-auth.ts +0 -4
  96. package/source/development/pwa-auth.js.map +0 -1
  97. package/source/esm/pwa-auth.js +0 -1109
package/base/store.d.ts CHANGED
@@ -1,62 +1,62 @@
1
- export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
2
- frontend: {
3
- settings: string;
4
- login: boolean;
5
- drawer: boolean;
6
- registerOne: boolean;
7
- registerTwo: boolean;
8
- userId: string;
9
- customer: string;
10
- profileChoice: string;
11
- name: string;
12
- photoURL: string;
13
- phone: string;
14
- email: string;
15
- };
16
- drawer: {
17
- drawer: boolean;
18
- };
19
- backend: {
20
- verified: boolean;
21
- anon: boolean;
22
- userId: string;
23
- name: string;
24
- email: string;
25
- photoURL: string;
26
- phone: string;
27
- msgToken: string;
28
- };
29
- }, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
30
- dispatch: import("redux-thunk").ThunkDispatch<{
31
- frontend: {
32
- settings: string;
33
- login: boolean;
34
- drawer: boolean;
35
- registerOne: boolean;
36
- registerTwo: boolean;
37
- userId: string;
38
- customer: string;
39
- profileChoice: string;
40
- name: string;
41
- photoURL: string;
42
- phone: string;
43
- email: string;
44
- };
45
- drawer: {
46
- drawer: boolean;
47
- };
48
- backend: {
49
- verified: boolean;
50
- anon: boolean;
51
- userId: string;
52
- name: string;
53
- email: string;
54
- photoURL: string;
55
- phone: string;
56
- msgToken: string;
57
- };
58
- }, undefined, import("redux").UnknownAction>;
59
- }, {}>, import("redux").StoreEnhancer<{}, {}>]>>;
60
- export type AppState = ReturnType<typeof store.getState>;
61
- export type AppDispatch = typeof store.dispatch;
62
- export default store;
1
+ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
2
+ frontend: {
3
+ settings: string;
4
+ login: boolean;
5
+ drawer: boolean;
6
+ registerOne: boolean;
7
+ registerTwo: boolean;
8
+ userId: string;
9
+ customer: string;
10
+ profileChoice: string;
11
+ name: string;
12
+ photoURL: string;
13
+ phone: string;
14
+ email: string;
15
+ };
16
+ drawer: {
17
+ drawer: boolean;
18
+ };
19
+ backend: {
20
+ verified: boolean;
21
+ anon: boolean;
22
+ userId: string;
23
+ name: string;
24
+ email: string;
25
+ photoURL: string;
26
+ phone: string;
27
+ msgToken: string;
28
+ };
29
+ }, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
30
+ dispatch: import("redux-thunk").ThunkDispatch<{
31
+ frontend: {
32
+ settings: string;
33
+ login: boolean;
34
+ drawer: boolean;
35
+ registerOne: boolean;
36
+ registerTwo: boolean;
37
+ userId: string;
38
+ customer: string;
39
+ profileChoice: string;
40
+ name: string;
41
+ photoURL: string;
42
+ phone: string;
43
+ email: string;
44
+ };
45
+ drawer: {
46
+ drawer: boolean;
47
+ };
48
+ backend: {
49
+ verified: boolean;
50
+ anon: boolean;
51
+ userId: string;
52
+ name: string;
53
+ email: string;
54
+ photoURL: string;
55
+ phone: string;
56
+ msgToken: string;
57
+ };
58
+ }, undefined, import("redux").UnknownAction>;
59
+ }>, import("redux").StoreEnhancer]>>;
60
+ export type AppState = ReturnType<typeof store.getState>;
61
+ export type AppDispatch = typeof store.dispatch;
62
+ export default store;
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 animation: CSSResult;
1
+ import { CSSResult } from "lit";
2
+ export declare const animation: CSSResult;
@@ -1,4 +1,4 @@
1
- import { css } from "lit";
1
+ import { css } from "lit";
2
2
  export const animation = css `
3
3
 
4
4
  .wrapper {
@@ -64,5 +64,5 @@ export const animation = css `
64
64
  z-index: 2;
65
65
  }
66
66
 
67
- `;
67
+ `;
68
68
  //# sourceMappingURL=animation.js.map
@@ -1,3 +1,3 @@
1
- export declare const faceIcon: import("lit-html").TemplateResult<1>;
2
- export declare const settings: import("lit-html").TemplateResult<1>;
3
- export declare const close: import("lit-html").TemplateResult<1>;
1
+ export declare const faceIcon: import("lit-html").TemplateResult<1>;
2
+ export declare const settings: import("lit-html").TemplateResult<1>;
3
+ export declare const close: import("lit-html").TemplateResult<1>;
@@ -1,5 +1,5 @@
1
- import { html } from "lit";
2
- export const faceIcon = html `<svg viewBox="0 0 24 24" height="34px" width="34px"><path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"></path></svg>`;
3
- export const settings = html `<svg viewBox="0 0 24 24"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></svg>`;
4
- export const close = html `<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>`;
1
+ import { html } from "lit";
2
+ export const faceIcon = html `<svg viewBox="0 0 24 24" height="34px" width="34px"><path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"></path></svg>`;
3
+ export const settings = html `<svg viewBox="0 0 24 24"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></svg>`;
4
+ export const close = html `<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>`;
5
5
  //# sourceMappingURL=svg.js.map
@@ -1 +1 @@
1
- export declare const show: import("lit").CSSResult;
1
+ export declare const show: import("lit").CSSResult;
@@ -1,8 +1,8 @@
1
- import { css } from "lit";
1
+ import { css } from "lit";
2
2
  export const show = css `
3
3
 
4
4
  .spec[on] { display: grid; }
5
5
  .spec { display: none; }
6
6
 
7
- `;
7
+ `;
8
8
  //# sourceMappingURL=toggle.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
  :host {
@@ -49,5 +49,5 @@ export const drawerStyle = css `
49
49
  transition-property: visibility, max-height;
50
50
  }
51
51
 
52
- `;
52
+ `;
53
53
  //# 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,58 +1,58 @@
1
- import { CSSResultArray, LitElement } from 'lit';
2
- import { AppState } from '../../store';
3
- import '../form/login';
4
- import '../form/signup';
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
- registerOne: boolean;
15
- registerTwo: boolean;
16
- userId: string;
17
- customer: string;
18
- profileChoice: string;
19
- name: string;
20
- photoURL: string;
21
- phone: string;
22
- email: string;
23
- };
24
- drawer: {
25
- drawer: boolean;
26
- };
27
- backend: {
28
- verified: boolean;
29
- anon: boolean;
30
- userId: string;
31
- name: string;
32
- email: string;
33
- photoURL: string;
34
- phone: string;
35
- msgToken: string;
36
- };
37
- }): void;
38
- readonly isConnected: boolean;
39
- }) & typeof LitElement;
40
- export declare class UserDrawer extends UserDrawer_base {
41
- private url;
42
- drawer: boolean;
43
- subscribe: boolean;
44
- private name;
45
- private user;
46
- private signup;
47
- constructor();
48
- stateChanged(state: AppState): void;
49
- protected firstUpdated(): void;
50
- static get styles(): CSSResultArray;
51
- protected render(): import("lit-html").TemplateResult<1>;
52
- }
53
- declare global {
54
- interface HTMLElementTagNameMap {
55
- 'user-drawer': UserDrawer;
56
- }
57
- }
58
- export {};
1
+ import { CSSResultArray, LitElement } from 'lit';
2
+ import { AppState } from '../../store';
3
+ import '../form/login';
4
+ import '../form/signup';
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
+ registerOne: boolean;
15
+ registerTwo: boolean;
16
+ userId: string;
17
+ customer: string;
18
+ profileChoice: string;
19
+ name: string;
20
+ photoURL: string;
21
+ phone: string;
22
+ email: string;
23
+ };
24
+ drawer: {
25
+ drawer: boolean;
26
+ };
27
+ backend: {
28
+ verified: boolean;
29
+ anon: boolean;
30
+ userId: string;
31
+ name: string;
32
+ email: string;
33
+ photoURL: string;
34
+ phone: string;
35
+ msgToken: string;
36
+ };
37
+ }): void;
38
+ readonly isConnected: boolean;
39
+ }) & typeof LitElement;
40
+ export declare class UserDrawer extends UserDrawer_base {
41
+ private url;
42
+ drawer: boolean;
43
+ subscribe: boolean;
44
+ private name;
45
+ private user;
46
+ private signup;
47
+ constructor();
48
+ stateChanged(state: AppState): void;
49
+ protected firstUpdated(): void;
50
+ static get styles(): CSSResultArray;
51
+ protected render(): import("lit-html").TemplateResult<1>;
52
+ }
53
+ declare global {
54
+ interface HTMLElementTagNameMap {
55
+ 'user-drawer': UserDrawer;
56
+ }
57
+ }
58
+ export {};
@@ -1,68 +1,68 @@
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 { listStyle } from '../form/css/list';
17
- import { drawerStyle } from './css/drawer';
18
- import { exitStyle } from './css/exit';
19
- import { linkStyle } from './css/link';
20
- import { lineStyle } from './css/paragraph';
21
- import { toggleSign } from '../../redux/frontend';
22
- import { logOut } from '../../firebase/interface';
23
- import '../form/login';
24
- import '../form/signup';
25
- import { animation } from '../css/animation';
26
- let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
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
- }
36
- stateChanged(state) {
37
- this.name = state.backend.name;
38
- this.drawer = state.frontend.drawer;
39
- this.user = state.frontend.login;
40
- this.signup = state.frontend.registerOne;
41
- }
42
- firstUpdated() {
43
- this.shadowRoot.querySelector('.close').addEventListener('click', () => {
44
- store.dispatch(toggleSign());
45
- });
46
- this.shadowRoot.querySelector('.leave').addEventListener('click', () => {
47
- if (this.user) {
48
- logOut();
49
- }
50
- store.dispatch(toggleSign());
51
- });
52
- }
53
- static get styles() {
54
- return [
55
- show,
56
- animation,
57
- drawerStyle,
58
- exitStyle,
59
- linkStyle,
60
- lineStyle,
61
- listStyle
62
- ];
63
- }
64
- ;
65
- 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 { listStyle } from '../form/css/list';
17
+ import { drawerStyle } from './css/drawer';
18
+ import { exitStyle } from './css/exit';
19
+ import { linkStyle } from './css/link';
20
+ import { lineStyle } from './css/paragraph';
21
+ import { toggleSign } from '../../redux/frontend';
22
+ import { logOut } from '../../firebase/interface';
23
+ import '../form/login';
24
+ import '../form/signup';
25
+ import { animation } from '../css/animation';
26
+ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
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
+ }
36
+ stateChanged(state) {
37
+ this.name = state.backend.name;
38
+ this.drawer = state.frontend.drawer;
39
+ this.user = state.frontend.login;
40
+ this.signup = state.frontend.registerOne;
41
+ }
42
+ firstUpdated() {
43
+ this.shadowRoot.querySelector('.close').addEventListener('click', () => {
44
+ store.dispatch(toggleSign());
45
+ });
46
+ this.shadowRoot.querySelector('.leave').addEventListener('click', () => {
47
+ if (this.user) {
48
+ logOut();
49
+ }
50
+ store.dispatch(toggleSign());
51
+ });
52
+ }
53
+ static get styles() {
54
+ return [
55
+ show,
56
+ animation,
57
+ drawerStyle,
58
+ exitStyle,
59
+ linkStyle,
60
+ lineStyle,
61
+ listStyle
62
+ ];
63
+ }
64
+ ;
65
+ render() {
66
66
  return html `
67
67
 
68
68
  <!-- Drawer Wrapper -->
@@ -87,9 +87,9 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
87
87
  <!-- Log-in State -->
88
88
  <form-login
89
89
  source="drawer"
90
- class="content ${this.signup ===
91
- this.subscribe ?
92
- 'opened' :
90
+ class="content ${this.signup ===
91
+ this.subscribe ?
92
+ 'opened' :
93
93
  'closed'} ">
94
94
  </form-login>
95
95
 
@@ -117,36 +117,36 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
117
117
 
118
118
  </section>
119
119
 
120
- `;
121
- }
122
- };
123
- __decorate([
124
- property({ type: String, reflect: true }),
125
- __metadata("design:type", Object)
126
- ], UserDrawer.prototype, "url", void 0);
127
- __decorate([
128
- property({ type: Boolean, attribute: true, reflect: true }),
129
- __metadata("design:type", Object)
130
- ], UserDrawer.prototype, "drawer", void 0);
131
- __decorate([
132
- property({ type: Boolean, attribute: true, reflect: true }),
133
- __metadata("design:type", Object)
134
- ], UserDrawer.prototype, "subscribe", void 0);
135
- __decorate([
136
- state(),
137
- __metadata("design:type", Object)
138
- ], UserDrawer.prototype, "name", void 0);
139
- __decorate([
140
- state(),
141
- __metadata("design:type", Object)
142
- ], UserDrawer.prototype, "user", void 0);
143
- __decorate([
144
- state(),
145
- __metadata("design:type", Object)
146
- ], UserDrawer.prototype, "signup", void 0);
147
- UserDrawer = __decorate([
148
- customElement('user-drawer'),
149
- __metadata("design:paramtypes", [])
150
- ], UserDrawer);
151
- export { UserDrawer };
120
+ `;
121
+ }
122
+ };
123
+ __decorate([
124
+ property({ type: String, reflect: true }),
125
+ __metadata("design:type", Object)
126
+ ], UserDrawer.prototype, "url", void 0);
127
+ __decorate([
128
+ property({ type: Boolean, attribute: true, reflect: true }),
129
+ __metadata("design:type", Object)
130
+ ], UserDrawer.prototype, "drawer", void 0);
131
+ __decorate([
132
+ property({ type: Boolean, attribute: true, reflect: true }),
133
+ __metadata("design:type", Object)
134
+ ], UserDrawer.prototype, "subscribe", void 0);
135
+ __decorate([
136
+ state(),
137
+ __metadata("design:type", Object)
138
+ ], UserDrawer.prototype, "name", void 0);
139
+ __decorate([
140
+ state(),
141
+ __metadata("design:type", Object)
142
+ ], UserDrawer.prototype, "user", void 0);
143
+ __decorate([
144
+ state(),
145
+ __metadata("design:type", Object)
146
+ ], UserDrawer.prototype, "signup", void 0);
147
+ UserDrawer = __decorate([
148
+ customElement('user-drawer'),
149
+ __metadata("design:paramtypes", [])
150
+ ], UserDrawer);
151
+ export { UserDrawer };
152
152
  //# 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;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,OA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