pwa-auth 3.3.8 → 3.3.9
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/README.md +53 -45
- package/base/export/pwa-auth.d.ts +7 -6
- package/base/export/pwa-auth.js +7 -6
- package/base/export/pwa-auth.js.map +1 -1
- package/base/firebase/authentication.d.ts +10 -10
- package/base/firebase/authentication.js +10 -10
- package/base/firebase/authentication.js.map +1 -1
- package/base/firebase/interface.d.ts +5 -4
- package/base/firebase/interface.js +80 -79
- package/base/firebase/interface.js.map +1 -1
- package/base/lazy-loader.d.ts +11 -11
- package/base/lazy-loader.js +22 -22
- package/base/lazy-loader.js.map +1 -1
- package/base/redux/backend.d.ts +122 -113
- package/base/redux/backend.js +43 -43
- package/base/redux/drawer.d.ts +19 -17
- package/base/redux/drawer.js +21 -21
- package/base/redux/drawer.js.map +1 -1
- package/base/redux/frontend.d.ts +198 -185
- package/base/redux/frontend.js +86 -86
- package/base/redux/frontend.js.map +1 -1
- package/base/store.d.ts +62 -62
- package/base/store.js +13 -13
- package/base/webcomponents/css/animation.d.ts +2 -2
- package/base/webcomponents/css/animation.js +2 -2
- package/base/webcomponents/css/svg.d.ts +3 -3
- package/base/webcomponents/css/svg.js +4 -4
- package/base/webcomponents/css/toggle.d.ts +1 -1
- package/base/webcomponents/css/toggle.js +2 -2
- package/base/webcomponents/drawer/css/drawer.d.ts +2 -2
- package/base/webcomponents/drawer/css/drawer.js +18 -13
- package/base/webcomponents/drawer/css/drawer.js.map +1 -1
- package/base/webcomponents/drawer/css/exit.d.ts +2 -2
- package/base/webcomponents/drawer/css/exit.js +2 -2
- package/base/webcomponents/drawer/css/link.d.ts +2 -2
- package/base/webcomponents/drawer/css/link.js +2 -2
- package/base/webcomponents/drawer/css/paragraph.d.ts +2 -2
- package/base/webcomponents/drawer/css/paragraph.js +18 -6
- package/base/webcomponents/drawer/css/paragraph.js.map +1 -1
- package/base/webcomponents/drawer/drawer.d.ts +58 -58
- package/base/webcomponents/drawer/drawer.js +106 -102
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/base/webcomponents/form/css/button.d.ts +2 -2
- package/base/webcomponents/form/css/button.js +2 -2
- package/base/webcomponents/form/css/input.d.ts +2 -2
- package/base/webcomponents/form/css/input.js +2 -2
- package/base/webcomponents/form/css/label.d.ts +2 -2
- package/base/webcomponents/form/css/label.js +2 -2
- package/base/webcomponents/form/css/list.d.ts +2 -2
- package/base/webcomponents/form/css/list.js +2 -2
- package/base/webcomponents/form/css/toggle.d.ts +2 -2
- package/base/webcomponents/form/css/toggle.js +2 -2
- package/base/webcomponents/form/forgot.d.ts +15 -15
- package/base/webcomponents/form/forgot.js +45 -45
- package/base/webcomponents/form/forgot.js.map +1 -1
- package/base/webcomponents/form/login.d.ts +20 -20
- package/base/webcomponents/form/login.js +88 -88
- package/base/webcomponents/form/login.js.map +1 -1
- package/base/webcomponents/form/signup.d.ts +20 -20
- package/base/webcomponents/form/signup.js +95 -95
- package/base/webcomponents/form/signup.js.map +1 -1
- package/base/webcomponents/icon/css/icon.d.ts +1 -1
- package/base/webcomponents/icon/css/icon.js +6 -8
- package/base/webcomponents/icon/css/icon.js.map +1 -1
- package/base/webcomponents/icon/icon.d.ts +54 -54
- package/base/webcomponents/icon/icon.js +59 -59
- package/base/webcomponents/icon/icon.js.map +1 -1
- package/base/webcomponents/login/css/auth.d.ts +2 -2
- package/base/webcomponents/login/css/auth.js +2 -2
- package/base/webcomponents/login/css/link.d.ts +2 -2
- package/base/webcomponents/login/css/link.js +2 -2
- package/base/webcomponents/login/css/paragraph.d.ts +2 -2
- package/base/webcomponents/login/css/paragraph.js +2 -2
- package/base/webcomponents/login/page.d.ts +55 -55
- package/base/webcomponents/login/page.js +72 -72
- package/base/webcomponents/login/page.js.map +1 -1
- package/base/webcomponents/settings/css/navigation.d.ts +1 -1
- package/base/webcomponents/settings/css/navigation.js +2 -2
- package/base/webcomponents/settings/input/delete.d.ts +55 -55
- package/base/webcomponents/settings/input/delete.js +73 -73
- package/base/webcomponents/settings/input/delete.js.map +1 -1
- package/base/webcomponents/settings/input/email.d.ts +55 -55
- package/base/webcomponents/settings/input/email.js +72 -72
- package/base/webcomponents/settings/input/email.js.map +1 -1
- package/base/webcomponents/settings/input/name.d.ts +54 -54
- package/base/webcomponents/settings/input/name.js +67 -67
- package/base/webcomponents/settings/input/name.js.map +1 -1
- package/base/webcomponents/settings/input/password.d.ts +57 -57
- package/base/webcomponents/settings/input/password.js +97 -97
- package/base/webcomponents/settings/input/password.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.d.ts +58 -58
- package/base/webcomponents/settings/input/uploader.js +150 -150
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/base/webcomponents/settings/settings.d.ts +58 -58
- package/base/webcomponents/settings/settings.js +80 -80
- package/base/webcomponents/settings/settings.js.map +1 -1
- package/package.json +30 -36
|
@@ -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;Q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AS,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;AApDC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;2CAA0B;AAGnE;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;uCAAmB;AAE3D;IAAC,KAAK,EAAE;;uCAAuB;AAC/B;IAAC,KAAK,EAAE;;2CAAwB;AATrB,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;;GACd,QAAQ,CAuDpB;SAvDY,QAAQ"}
|
|
@@ -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,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,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,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 {};
|
|
@@ -1,55 +1,55 @@
|
|
|
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 { authStyles } from './css/auth';
|
|
15
|
-
import { linkStyle } from './css/link';
|
|
16
|
-
import { lineStyle } from './css/paragraph';
|
|
17
|
-
import { animation } from '../css/animation';
|
|
18
|
-
import { listStyle } from '../form/css/list';
|
|
19
|
-
import '../form/login';
|
|
20
|
-
import '../form/signup';
|
|
21
|
-
let UserLogin = class UserLogin extends connect(store)(LitElement) {
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
this.subscribe = false;
|
|
25
|
-
this._name = "";
|
|
26
|
-
this._log = false;
|
|
27
|
-
this._sign = false;
|
|
28
|
-
}
|
|
29
|
-
stateChanged(state) {
|
|
30
|
-
this._name = state.backend.name;
|
|
31
|
-
this._log = state.frontend.login;
|
|
32
|
-
this._sign = state.frontend.registerTwo;
|
|
33
|
-
}
|
|
34
|
-
static get styles() {
|
|
35
|
-
return [
|
|
36
|
-
authStyles,
|
|
37
|
-
linkStyle,
|
|
38
|
-
lineStyle,
|
|
39
|
-
listStyle,
|
|
40
|
-
animation
|
|
41
|
-
];
|
|
42
|
-
}
|
|
43
|
-
;
|
|
44
|
-
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 { authStyles } from './css/auth';
|
|
15
|
+
import { linkStyle } from './css/link';
|
|
16
|
+
import { lineStyle } from './css/paragraph';
|
|
17
|
+
import { animation } from '../css/animation';
|
|
18
|
+
import { listStyle } from '../form/css/list';
|
|
19
|
+
import '../form/login';
|
|
20
|
+
import '../form/signup';
|
|
21
|
+
let UserLogin = class UserLogin extends connect(store)(LitElement) {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.subscribe = false;
|
|
25
|
+
this._name = "";
|
|
26
|
+
this._log = false;
|
|
27
|
+
this._sign = false;
|
|
28
|
+
}
|
|
29
|
+
stateChanged(state) {
|
|
30
|
+
this._name = state.backend.name;
|
|
31
|
+
this._log = state.frontend.login;
|
|
32
|
+
this._sign = state.frontend.registerTwo;
|
|
33
|
+
}
|
|
34
|
+
static get styles() {
|
|
35
|
+
return [
|
|
36
|
+
authStyles,
|
|
37
|
+
linkStyle,
|
|
38
|
+
lineStyle,
|
|
39
|
+
listStyle,
|
|
40
|
+
animation
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
;
|
|
44
|
+
render() {
|
|
45
45
|
return html `
|
|
46
46
|
|
|
47
47
|
<section class="service">
|
|
48
48
|
|
|
49
49
|
<header>
|
|
50
|
-
<h3>${this._log ? this._name : this._sign === this.subscribe ?
|
|
51
|
-
'Subscribe'
|
|
52
|
-
:
|
|
50
|
+
<h3>${this._log ? this._name : this._sign === this.subscribe ?
|
|
51
|
+
'Subscribe'
|
|
52
|
+
:
|
|
53
53
|
'Login'} </h3>
|
|
54
54
|
</header>
|
|
55
55
|
|
|
@@ -81,34 +81,34 @@ let UserLogin = class UserLogin extends connect(store)(LitElement) {
|
|
|
81
81
|
class= "spec setLog"
|
|
82
82
|
?on= "${this._log === true}">
|
|
83
83
|
|
|
84
|
-
<slot></slot>
|
|
84
|
+
<slot name="content"></slot>
|
|
85
85
|
|
|
86
86
|
</div>
|
|
87
87
|
|
|
88
88
|
</section>
|
|
89
89
|
|
|
90
|
-
`;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
__decorate([
|
|
94
|
-
property({ type: Boolean, attribute: true, reflect: true }),
|
|
95
|
-
__metadata("design:type", Object)
|
|
96
|
-
], UserLogin.prototype, "subscribe", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
state(),
|
|
99
|
-
__metadata("design:type", Object)
|
|
100
|
-
], UserLogin.prototype, "_name", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
state(),
|
|
103
|
-
__metadata("design:type", Object)
|
|
104
|
-
], UserLogin.prototype, "_log", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
state(),
|
|
107
|
-
__metadata("design:type", Object)
|
|
108
|
-
], UserLogin.prototype, "_sign", void 0);
|
|
109
|
-
UserLogin = __decorate([
|
|
110
|
-
customElement('user-login'),
|
|
111
|
-
__metadata("design:paramtypes", [])
|
|
112
|
-
], UserLogin);
|
|
113
|
-
export { UserLogin };
|
|
90
|
+
`;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
__decorate([
|
|
94
|
+
property({ type: Boolean, attribute: true, reflect: true }),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], UserLogin.prototype, "subscribe", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
state(),
|
|
99
|
+
__metadata("design:type", Object)
|
|
100
|
+
], UserLogin.prototype, "_name", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
state(),
|
|
103
|
+
__metadata("design:type", Object)
|
|
104
|
+
], UserLogin.prototype, "_log", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
state(),
|
|
107
|
+
__metadata("design:type", Object)
|
|
108
|
+
], UserLogin.prototype, "_sign", void 0);
|
|
109
|
+
UserLogin = __decorate([
|
|
110
|
+
customElement('user-login'),
|
|
111
|
+
__metadata("design:paramtypes", [])
|
|
112
|
+
], UserLogin);
|
|
113
|
+
export { UserLogin };
|
|
114
114
|
//# sourceMappingURL=page.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../typescript/webcomponents/login/page.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;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAQ,YAAY,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAS,YAAY,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAS,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAS,kBAAkB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAS,kBAAkB,CAAC;AAEhD,OAAO,eAAe,CAAC;AACvB,OAAO,gBAAgB,CAAC;AAGjB,IAAM,SAAS,GAAf,MAAM,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AI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5D,WAAW;YACX,CAAC;gBACD,OACA;;;;;;2BAMkB,IAAI,CAAC,IAAI,KAAK,KAAM;;;;;;;;uCAQR,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAS;;;;;uCAK1C,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAS;;;;;;;;;;2BAUvD,IAAI,CAAC,IAAI,KAAK,IAAK;;;;;;;;KAQ1C,CAAC;IACJ,CAAC;CAEF,CAAA;AA1EC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;4CAA0B;AAEnF;IAAC,KAAK,EAAE;;wCAA2B;AACnC;IAAC,KAAK,EAAE;;uCAA8B;AACtC;IAAC,KAAK,EAAE;;wCAA8B;AAP3B,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;;GACf,SAAS,CA6ErB;SA7EY,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const navigation: import("lit").CSSResult;
|
|
1
|
+
export declare const navigation: import("lit").CSSResult;
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { CSSResultArray, LitElement } from "lit";
|
|
2
|
-
import { AppState } from "../../../store";
|
|
3
|
-
declare const DeleteUser_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 DeleteUser extends DeleteUser_base {
|
|
39
|
-
private login;
|
|
40
|
-
private email;
|
|
41
|
-
constructor();
|
|
42
|
-
protected firstUpdated(): void;
|
|
43
|
-
stateChanged(state: AppState): void;
|
|
44
|
-
static get styles(): CSSResultArray;
|
|
45
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
46
|
-
private alertDelete;
|
|
47
|
-
private deleteUser;
|
|
48
|
-
private officialDelete;
|
|
49
|
-
}
|
|
50
|
-
declare global {
|
|
51
|
-
interface HTMLElementTagNameMap {
|
|
52
|
-
'delete-user': DeleteUser;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export {};
|
|
1
|
+
import { CSSResultArray, LitElement } from "lit";
|
|
2
|
+
import { AppState } from "../../../store";
|
|
3
|
+
declare const DeleteUser_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 DeleteUser extends DeleteUser_base {
|
|
39
|
+
private login;
|
|
40
|
+
private email;
|
|
41
|
+
constructor();
|
|
42
|
+
protected firstUpdated(): void;
|
|
43
|
+
stateChanged(state: AppState): void;
|
|
44
|
+
static get styles(): CSSResultArray;
|
|
45
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
46
|
+
private alertDelete;
|
|
47
|
+
private deleteUser;
|
|
48
|
+
private officialDelete;
|
|
49
|
+
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface HTMLElementTagNameMap {
|
|
52
|
+
'delete-user': DeleteUser;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export {};
|