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
@@ -1,48 +1,48 @@
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 { css, html, LitElement } from 'lit';
11
- import { customElement, property, state } from 'lit/decorators.js';
12
- import { createUserWithEmailAndPassword, sendEmailVerification } from 'firebase/auth';
13
- import { auth } from '../../firebase/authentication';
14
- import { logAccount } from '../../firebase/interface';
15
- import { buttonStyle } from './css/button';
16
- import { labelStyle } from './css/label';
17
- import { inputStyle } from './css/input';
18
- import { listStyle } from './css/list';
19
- import { toggleStyle } from './css/toggle';
20
- import store from '../../store';
21
- import { universalToggle } from '../../redux/frontend';
22
- let FormSignup = class FormSignup extends LitElement {
23
- constructor() {
24
- super();
25
- this.source = '';
26
- this.email = '';
27
- this.password = '';
28
- this.newAccount = async (email, password) => {
29
- await createUserWithEmailAndPassword(auth, email, password)
30
- .then((userCredential) => {
31
- const user = userCredential.user;
32
- sendEmailVerification(user)
33
- .then(() => {
34
- console.log("Verification email sent.");
35
- });
36
- }).then(() => { logAccount(); });
37
- };
38
- }
39
- static get styles() {
40
- return [
41
- listStyle,
42
- labelStyle,
43
- inputStyle,
44
- buttonStyle,
45
- 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 { css, html, LitElement } from 'lit';
11
+ import { customElement, property, state } from 'lit/decorators.js';
12
+ import { createUserWithEmailAndPassword, sendEmailVerification } from 'firebase/auth';
13
+ import { auth } from '../../firebase/authentication';
14
+ import { logAccount } from '../../firebase/interface';
15
+ import { buttonStyle } from './css/button';
16
+ import { labelStyle } from './css/label';
17
+ import { inputStyle } from './css/input';
18
+ import { listStyle } from './css/list';
19
+ import { toggleStyle } from './css/toggle';
20
+ import store from '../../store';
21
+ import { universalToggle } from '../../redux/frontend';
22
+ let FormSignup = class FormSignup extends LitElement {
23
+ constructor() {
24
+ super();
25
+ this.source = '';
26
+ this.email = '';
27
+ this.password = '';
28
+ this.newAccount = async (email, password) => {
29
+ await createUserWithEmailAndPassword(auth, email, password)
30
+ .then((userCredential) => {
31
+ const user = userCredential.user;
32
+ sendEmailVerification(user)
33
+ .then(() => {
34
+ console.log("Verification email sent.");
35
+ });
36
+ }).then(() => { logAccount(); });
37
+ };
38
+ }
39
+ static get styles() {
40
+ return [
41
+ listStyle,
42
+ labelStyle,
43
+ inputStyle,
44
+ buttonStyle,
45
+ toggleStyle,
46
46
  css `
47
47
 
48
48
  :host {
@@ -54,11 +54,11 @@ let FormSignup = class FormSignup extends LitElement {
54
54
  grid-template-columns: 1fr auto;
55
55
  }
56
56
 
57
- `
58
- ];
59
- }
60
- ;
61
- render() {
57
+ `
58
+ ];
59
+ }
60
+ ;
61
+ render() {
62
62
  return html `
63
63
 
64
64
  <!-- Sign Up State-->
@@ -121,49 +121,49 @@ let FormSignup = class FormSignup extends LitElement {
121
121
 
122
122
  </form>
123
123
 
124
- `;
125
- }
126
- change() {
127
- store.dispatch(universalToggle(this.source));
128
- }
129
- _handleSubmit(event) {
130
- event.preventDefault();
131
- }
132
- handleEmail(event) {
133
- const input = event.target;
134
- this.email = input.value;
135
- }
136
- handlePassword(event) {
137
- const input = event.target;
138
- this.password = input.value;
139
- }
140
- signUp() {
141
- if (this.email.length < 4) {
142
- alert('Please enter an email address.');
143
- return;
144
- }
145
- if (this.password.length < 4) {
146
- alert('Please enter a password.');
147
- return;
148
- }
149
- this.newAccount(this.email, this.password);
150
- }
151
- };
152
- __decorate([
153
- property({ type: String }),
154
- __metadata("design:type", Object)
155
- ], FormSignup.prototype, "source", void 0);
156
- __decorate([
157
- state(),
158
- __metadata("design:type", Object)
159
- ], FormSignup.prototype, "email", void 0);
160
- __decorate([
161
- state(),
162
- __metadata("design:type", Object)
163
- ], FormSignup.prototype, "password", void 0);
164
- FormSignup = __decorate([
165
- customElement('form-signup'),
166
- __metadata("design:paramtypes", [])
167
- ], FormSignup);
168
- export { FormSignup };
124
+ `;
125
+ }
126
+ change() {
127
+ store.dispatch(universalToggle(this.source));
128
+ }
129
+ _handleSubmit(event) {
130
+ event.preventDefault();
131
+ }
132
+ handleEmail(event) {
133
+ const input = event.target;
134
+ this.email = input.value;
135
+ }
136
+ handlePassword(event) {
137
+ const input = event.target;
138
+ this.password = input.value;
139
+ }
140
+ signUp() {
141
+ if (this.email.length < 4) {
142
+ alert('Please enter an email address.');
143
+ return;
144
+ }
145
+ if (this.password.length < 4) {
146
+ alert('Please enter a password.');
147
+ return;
148
+ }
149
+ this.newAccount(this.email, this.password);
150
+ }
151
+ };
152
+ __decorate([
153
+ property({ type: String }),
154
+ __metadata("design:type", Object)
155
+ ], FormSignup.prototype, "source", void 0);
156
+ __decorate([
157
+ state(),
158
+ __metadata("design:type", Object)
159
+ ], FormSignup.prototype, "email", void 0);
160
+ __decorate([
161
+ state(),
162
+ __metadata("design:type", Object)
163
+ ], FormSignup.prototype, "password", void 0);
164
+ FormSignup = __decorate([
165
+ customElement('form-signup'),
166
+ __metadata("design:paramtypes", [])
167
+ ], FormSignup);
168
+ export { FormSignup };
169
169
  //# sourceMappingURL=signup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"signup.js","sourceRoot":"","sources":["../../../typescript/webcomponents/form/signup.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,GAAG,EACH,IAAI,EACJ,UAAU,EACX,MAA8B,KAAK,CAAC;AAErC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,KAAK,EACN,MAA8B,mBAAmB,CAAC;AAEnD,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACtB,MAA8B,eAAe,CAAC;A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KAAK,CAAC;IAChC,CAAC;IAGO,MAAM;QACZ,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;YAAC,OAAO;QAAC,CAAC;QAC/E,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAG,CAAC;YAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YAAC,OAAO;QAAC,CAAC;QAC7E,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC;CAmCA,CAAA;AAzJkC;IAAhC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;0CAA2B;AACnC;IAAhB,KAAK,EAAE;;yCAA2B;AAClB;IAAhB,KAAK,EAAE;;4CAA2B;AALxB,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;;GAChB,UAAU,CA4JtB"}
@@ -1 +1 @@
1
- export declare const iconStyles: import("lit").CSSResult;
1
+ export declare const iconStyles: import("lit").CSSResult;
@@ -1,4 +1,4 @@
1
- import { css } from 'lit';
1
+ import { css } from 'lit';
2
2
  export const iconStyles = css `
3
3
 
4
4
  :host {
@@ -51,5 +51,5 @@ export const iconStyles = css `
51
51
  margin: auto;
52
52
  }
53
53
 
54
- `;
54
+ `;
55
55
  //# sourceMappingURL=icon.js.map
@@ -1,54 +1,54 @@
1
- import { CSSResultArray, LitElement } from 'lit';
2
- import { AppState } from '../../store';
3
- declare const UserIcon_base: (new (...args: any[]) => {
4
- _storeUnsubscribe: import("redux").Unsubscribe;
5
- connectedCallback(): void;
6
- disconnectedCallback(): void;
7
- stateChanged(_state: {
8
- frontend: {
9
- settings: string;
10
- login: boolean;
11
- drawer: boolean;
12
- registerOne: boolean;
13
- registerTwo: boolean;
14
- userId: string;
15
- customer: string;
16
- profileChoice: string;
17
- name: string;
18
- photoURL: string;
19
- phone: string;
20
- email: string;
21
- };
22
- drawer: {
23
- drawer: boolean;
24
- };
25
- backend: {
26
- verified: boolean;
27
- anon: boolean;
28
- userId: string;
29
- name: string;
30
- email: string;
31
- photoURL: string;
32
- phone: string;
33
- msgToken: string;
34
- };
35
- }): void;
36
- readonly isConnected: boolean;
37
- }) & typeof LitElement;
38
- export declare class UserIcon extends UserIcon_base {
39
- subscribe: boolean;
40
- empty: string;
41
- private _user;
42
- private _photoURL;
43
- constructor();
44
- protected firstUpdated(): void;
45
- stateChanged(state: AppState): void;
46
- static get styles(): CSSResultArray;
47
- protected render(): import("lit-html").TemplateResult<1>;
48
- }
49
- declare global {
50
- interface HTMLElementTagNameMap {
51
- 'user-icon': UserIcon;
52
- }
53
- }
54
- export {};
1
+ import { CSSResultArray, LitElement } from 'lit';
2
+ import { AppState } from '../../store';
3
+ declare const UserIcon_base: (new (...args: any[]) => {
4
+ _storeUnsubscribe: import("redux").Unsubscribe;
5
+ connectedCallback(): void;
6
+ disconnectedCallback(): void;
7
+ stateChanged(_state: {
8
+ frontend: {
9
+ settings: string;
10
+ login: boolean;
11
+ drawer: boolean;
12
+ registerOne: boolean;
13
+ registerTwo: boolean;
14
+ userId: string;
15
+ customer: string;
16
+ profileChoice: string;
17
+ name: string;
18
+ photoURL: string;
19
+ phone: string;
20
+ email: string;
21
+ };
22
+ drawer: {
23
+ drawer: boolean;
24
+ };
25
+ backend: {
26
+ verified: boolean;
27
+ anon: boolean;
28
+ userId: string;
29
+ name: string;
30
+ email: string;
31
+ photoURL: string;
32
+ phone: string;
33
+ msgToken: string;
34
+ };
35
+ }): void;
36
+ readonly isConnected: boolean;
37
+ }) & typeof LitElement;
38
+ export declare class UserIcon extends UserIcon_base {
39
+ subscribe: boolean;
40
+ empty: string;
41
+ private _user;
42
+ private _photoURL;
43
+ constructor();
44
+ protected firstUpdated(): void;
45
+ stateChanged(state: AppState): void;
46
+ static get styles(): CSSResultArray;
47
+ protected render(): import("lit-html").TemplateResult<1>;
48
+ }
49
+ declare global {
50
+ interface HTMLElementTagNameMap {
51
+ 'user-icon': UserIcon;
52
+ }
53
+ }
54
+ export {};
@@ -1,38 +1,38 @@
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.js';
13
- import { store } from '../../store';
14
- import { iconStyles } from './css/icon';
15
- import { toggleSign } from '../../redux/frontend';
16
- let UserIcon = class UserIcon extends connect(store)(LitElement) {
17
- constructor() {
18
- super();
19
- this.subscribe = false;
20
- this.empty = '';
21
- this._user = false;
22
- this._photoURL = '';
23
- }
24
- firstUpdated() {
25
- this.shadowRoot.querySelector('.toggles').addEventListener('click', () => {
26
- store.dispatch(toggleSign());
27
- console.log('here');
28
- });
29
- }
30
- stateChanged(state) {
31
- this._user = state.frontend.login;
32
- this._photoURL = state.backend.photoURL;
33
- }
34
- static get styles() { return [iconStyles]; }
35
- 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.js';
13
+ import { store } from '../../store';
14
+ import { iconStyles } from './css/icon';
15
+ import { toggleSign } from '../../redux/frontend';
16
+ let UserIcon = class UserIcon extends connect(store)(LitElement) {
17
+ constructor() {
18
+ super();
19
+ this.subscribe = false;
20
+ this.empty = '';
21
+ this._user = false;
22
+ this._photoURL = '';
23
+ }
24
+ firstUpdated() {
25
+ this.shadowRoot.querySelector('.toggles').addEventListener('click', () => {
26
+ store.dispatch(toggleSign());
27
+ console.log('here');
28
+ });
29
+ }
30
+ stateChanged(state) {
31
+ this._user = state.frontend.login;
32
+ this._photoURL = state.backend.photoURL;
33
+ }
34
+ static get styles() { return [iconStyles]; }
35
+ render() {
36
36
  return html `
37
37
 
38
38
  <!-- two classes: icon / login -->
@@ -55,28 +55,28 @@ let UserIcon = class UserIcon extends connect(store)(LitElement) {
55
55
 
56
56
  </button>
57
57
 
58
- `;
59
- }
60
- };
61
- __decorate([
62
- property({ type: Boolean, reflect: true }),
63
- __metadata("design:type", Object)
64
- ], UserIcon.prototype, "subscribe", void 0);
65
- __decorate([
66
- property({ type: String, reflect: true }),
67
- __metadata("design:type", Object)
68
- ], UserIcon.prototype, "empty", void 0);
69
- __decorate([
70
- state(),
71
- __metadata("design:type", Object)
72
- ], UserIcon.prototype, "_user", void 0);
73
- __decorate([
74
- state(),
75
- __metadata("design:type", Object)
76
- ], UserIcon.prototype, "_photoURL", void 0);
77
- UserIcon = __decorate([
78
- customElement('user-icon'),
79
- __metadata("design:paramtypes", [])
80
- ], UserIcon);
81
- export { UserIcon };
58
+ `;
59
+ }
60
+ };
61
+ __decorate([
62
+ property({ type: Boolean, reflect: true }),
63
+ __metadata("design:type", Object)
64
+ ], UserIcon.prototype, "subscribe", void 0);
65
+ __decorate([
66
+ property({ type: String, reflect: true }),
67
+ __metadata("design:type", Object)
68
+ ], UserIcon.prototype, "empty", void 0);
69
+ __decorate([
70
+ state(),
71
+ __metadata("design:type", Object)
72
+ ], UserIcon.prototype, "_user", void 0);
73
+ __decorate([
74
+ state(),
75
+ __metadata("design:type", Object)
76
+ ], UserIcon.prototype, "_photoURL", void 0);
77
+ UserIcon = __decorate([
78
+ customElement('user-icon'),
79
+ __metadata("design:paramtypes", [])
80
+ ], UserIcon);
81
+ export { UserIcon };
82
82
  //# sourceMappingURL=icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../typescript/webcomponents/icon/icon.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,8BAA8B,CAAC;AAClF,OAAO,EAAE,KAAK,EAAY,MAAyB,aAAa,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAA8B,YAAY,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAA8B,sBAAsB,CAAC;AAInE,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC;IAYtD;QAAgB,KAAK,EAAE,CAAC;QATyB,cAAS,GAAG,KAAK,CAAC;QAGnB,UAAK,GAAG,EAAE,CAAC;QAE1C,UAAK,GAAG,KAAK,CAAC;QACd,cAAS,GAAG,EAAE,CAAC;IAGP,CAAC;IAEhB,YAAY;QACpB,IAAI,CAAC,UAAW,CAAC,aAAa,CAAC,UAAU,CAAE,CAAC,gBAAgB,CAAC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,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;;;;;2BASD,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK;;WAE5D,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAQ;;;;KAIhD,CAAC;IACJ,CAAC;CACF,CAAA;AApDkD;IAAhD,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;2CAA0B;AAGnB;IAA/C,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;uCAAmB;AAE1C;IAAhB,KAAK,EAAE;;uCAAuB;AACd;IAAhB,KAAK,EAAE;;2CAAwB;AATrB,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;;GACd,QAAQ,CAuDpB"}
@@ -1,2 +1,2 @@
1
- import { CSSResult } from "lit";
2
- export declare const authStyles: CSSResult;
1
+ import { CSSResult } from "lit";
2
+ export declare const authStyles: CSSResult;
@@ -1,4 +1,4 @@
1
- import { css } from "lit";
1
+ import { css } from "lit";
2
2
  export const authStyles = css `
3
3
 
4
4
  :host {
@@ -33,5 +33,5 @@ export const authStyles = css `
33
33
  border-bottom: 2px solid black;
34
34
  }
35
35
 
36
- `;
36
+ `;
37
37
  //# sourceMappingURL=auth.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,55 +1,55 @@
1
- import { CSSResultArray, LitElement } from 'lit';
2
- import { AppState } from '../../store';
3
- import '../form/login';
4
- import '../form/signup';
5
- declare const UserLogin_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 UserLogin extends UserLogin_base {
41
- subscribe: boolean;
42
- private _name;
43
- private _log;
44
- private _sign;
45
- constructor();
46
- stateChanged(state: AppState): void;
47
- static get styles(): CSSResultArray;
48
- protected render(): import("lit-html").TemplateResult<1>;
49
- }
50
- declare global {
51
- interface HTMLElementTagNameMap {
52
- 'user-login': UserLogin;
53
- }
54
- }
55
- export {};
1
+ import { CSSResultArray, LitElement } from 'lit';
2
+ import { AppState } from '../../store';
3
+ import '../form/login';
4
+ import '../form/signup';
5
+ declare const UserLogin_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 UserLogin extends UserLogin_base {
41
+ subscribe: boolean;
42
+ private _name;
43
+ private _log;
44
+ private _sign;
45
+ constructor();
46
+ stateChanged(state: AppState): void;
47
+ static get styles(): CSSResultArray;
48
+ protected render(): import("lit-html").TemplateResult<1>;
49
+ }
50
+ declare global {
51
+ interface HTMLElementTagNameMap {
52
+ 'user-login': UserLogin;
53
+ }
54
+ }
55
+ export {};