pwa-auth 1.1.4 → 1.1.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.
- package/CHANGELOG.md +5 -0
- package/README.md +17 -9
- package/demo/index.html +4 -2
- package/demo/styles.css +8 -3
- package/deploy/css/font.d.ts +2 -0
- package/deploy/css/font.d.ts.map +1 -0
- package/deploy/css/font.js +16 -0
- package/deploy/css/form/button.d.ts +3 -0
- package/deploy/css/form/button.d.ts.map +1 -0
- package/deploy/css/form/button.js +68 -0
- package/deploy/css/form/input.d.ts +3 -0
- package/deploy/css/form/input.d.ts.map +1 -0
- package/deploy/css/form/input.js +24 -0
- package/deploy/css/form/label.d.ts +3 -0
- package/deploy/css/form/label.d.ts.map +1 -0
- package/deploy/css/form/label.js +23 -0
- package/deploy/css/form/list.d.ts +3 -0
- package/deploy/css/form/list.d.ts.map +1 -0
- package/deploy/css/form/list.js +12 -0
- package/deploy/css/svg.d.ts +4 -0
- package/deploy/css/svg.d.ts.map +1 -0
- package/deploy/css/svg.js +4 -0
- package/deploy/css/toggle.d.ts +2 -0
- package/deploy/css/toggle.d.ts.map +1 -0
- package/deploy/css/toggle.js +8 -0
- package/deploy/custom-elements/drawer/css/drawer.d.ts +3 -0
- package/deploy/custom-elements/drawer/css/drawer.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/css/drawer.js +16 -0
- package/deploy/custom-elements/drawer/css/exit.d.ts +3 -0
- package/deploy/custom-elements/drawer/css/exit.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/css/exit.js +46 -0
- package/deploy/custom-elements/drawer/css/link.d.ts +3 -0
- package/deploy/custom-elements/drawer/css/link.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/css/link.js +12 -0
- package/deploy/custom-elements/drawer/css/paragraph.d.ts +3 -0
- package/deploy/custom-elements/drawer/css/paragraph.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/css/paragraph.js +11 -0
- package/deploy/custom-elements/drawer/css/visibility.d.ts +3 -0
- package/deploy/custom-elements/drawer/css/visibility.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/css/visibility.js +22 -0
- package/deploy/custom-elements/drawer/drawer.d.ts +36 -0
- package/deploy/custom-elements/drawer/drawer.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/drawer.js +149 -0
- package/deploy/custom-elements/drawer/input/forgot.d.ts +16 -0
- package/deploy/custom-elements/drawer/input/forgot.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/input/forgot.js +60 -0
- package/deploy/custom-elements/drawer/input/login.d.ts +20 -0
- package/deploy/custom-elements/drawer/input/login.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/input/login.js +124 -0
- package/deploy/custom-elements/drawer/input/sign-up.d.ts +20 -0
- package/deploy/custom-elements/drawer/input/sign-up.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/input/sign-up.js +135 -0
- package/deploy/custom-elements/icon/css/icon.d.ts +2 -0
- package/deploy/custom-elements/icon/css/icon.d.ts.map +1 -0
- package/deploy/custom-elements/icon/css/icon.js +62 -0
- package/deploy/custom-elements/icon/icon.d.ts +32 -0
- package/deploy/custom-elements/icon/icon.d.ts.map +1 -0
- package/deploy/custom-elements/icon/icon.js +77 -0
- package/deploy/custom-elements/settings/css/navigation.d.ts +2 -0
- package/deploy/custom-elements/settings/css/navigation.d.ts.map +1 -0
- package/deploy/custom-elements/settings/css/navigation.js +61 -0
- package/deploy/custom-elements/settings/css/uploader.d.ts +2 -0
- package/deploy/custom-elements/settings/css/uploader.d.ts.map +1 -0
- package/deploy/custom-elements/settings/css/uploader.js +40 -0
- package/deploy/custom-elements/settings/input/delete.d.ts +33 -0
- package/deploy/custom-elements/settings/input/delete.d.ts.map +1 -0
- package/deploy/custom-elements/settings/input/delete.js +78 -0
- package/deploy/custom-elements/settings/input/email.d.ts +34 -0
- package/deploy/custom-elements/settings/input/email.d.ts.map +1 -0
- package/deploy/custom-elements/settings/input/email.js +98 -0
- package/deploy/custom-elements/settings/input/images.d.ts +2 -0
- package/deploy/custom-elements/settings/input/images.d.ts.map +1 -0
- package/deploy/custom-elements/settings/input/images.js +22 -0
- package/deploy/custom-elements/settings/input/name.d.ts +33 -0
- package/deploy/custom-elements/settings/input/name.d.ts.map +1 -0
- package/deploy/custom-elements/settings/input/name.js +90 -0
- package/deploy/custom-elements/settings/input/password.d.ts +36 -0
- package/deploy/custom-elements/settings/input/password.d.ts.map +1 -0
- package/deploy/custom-elements/settings/input/password.js +145 -0
- package/deploy/custom-elements/settings/input/uploader.d.ts +34 -0
- package/deploy/custom-elements/settings/input/uploader.d.ts.map +1 -0
- package/deploy/custom-elements/settings/input/uploader.js +191 -0
- package/deploy/custom-elements/settings/settings.d.ts +36 -0
- package/deploy/custom-elements/settings/settings.d.ts.map +1 -0
- package/deploy/custom-elements/settings/settings.js +186 -0
- package/deploy/lazy-loader.d.ts +11 -0
- package/deploy/lazy-loader.d.ts.map +1 -0
- package/deploy/lazy-loader.js +20 -0
- package/deploy/redux/backend.d.ts +16 -0
- package/deploy/redux/backend.d.ts.map +1 -0
- package/deploy/redux/backend.js +43 -0
- package/deploy/redux/drawer.d.ts +18 -0
- package/deploy/redux/drawer.d.ts.map +1 -0
- package/deploy/redux/drawer.js +21 -0
- package/deploy/redux/frontend.d.ts +17 -0
- package/deploy/redux/frontend.d.ts.map +1 -0
- package/deploy/redux/frontend.js +67 -0
- package/deploy/redux/object.d.ts +24 -0
- package/deploy/redux/object.d.ts.map +1 -0
- package/deploy/redux/object.js +1 -0
- package/deploy/start.d.ts +14 -0
- package/deploy/start.d.ts.map +1 -0
- package/deploy/start.js +86 -0
- package/deploy/store.d.ts +19 -0
- package/deploy/store.d.ts.map +1 -0
- package/deploy/store.js +13 -0
- package/package.json +3 -3
- package/pwa-auth.js +3 -0
- package/npm/pwa-auth.js +0 -306
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,11 @@ Removed - for now removed features.
|
|
|
12
12
|
Fixed - for any bug fixes.
|
|
13
13
|
Security - in case of vulnerabilities.
|
|
14
14
|
|
|
15
|
+
# [1.1.6] - 2025-08-25
|
|
16
|
+
|
|
17
|
+
## Changed
|
|
18
|
+
- Drawer - should be the custome element itself, not internal wrapper
|
|
19
|
+
|
|
15
20
|
# [1.0.8] - 2025-08-23
|
|
16
21
|
|
|
17
22
|
## Changed
|
package/README.md
CHANGED
|
@@ -2,15 +2,16 @@ Progressive Website Application Authentication
|
|
|
2
2
|
======================
|
|
3
3
|
|
|
4
4
|
# The library [Demo](https://pwa-authentic.firebaseapp.com)
|
|
5
|
+
This library provides Identity Access Managementy to securely store user's data.
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
3 HTML Custom Elements with Firebase Authentication:
|
|
9
|
-
- user-icon
|
|
10
|
-
- user-drawer
|
|
11
|
-
- user-settings
|
|
7
|
+
## Standard JavaScript
|
|
8
|
+
- copy the bundle: node_modules/pwa-auth/npm/pwa-auth.js
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
## Module JavaScript
|
|
11
|
+
```javascript
|
|
12
|
+
/* To do: Bare Module Specifiers - Currently: Absolute / Relative */
|
|
13
|
+
import 'pwa-auth';
|
|
14
|
+
```
|
|
14
15
|
|
|
15
16
|
## Technological Stack
|
|
16
17
|
- Development Environment: [Node JavaScript](https://nodejs.org)
|
|
@@ -20,6 +21,9 @@ This library provides Identity Access Managementy to securely store user's data.
|
|
|
20
21
|
|
|
21
22
|
## Boilerplate
|
|
22
23
|
- 3 Tag Placements (Custom HTML Elements)
|
|
24
|
+
- user-icon
|
|
25
|
+
- user-drawer
|
|
26
|
+
- user-settings
|
|
23
27
|
- Cascading Style Sheets (CSS)
|
|
24
28
|
- ECMA Script (JavaScript)
|
|
25
29
|
|
|
@@ -54,10 +58,13 @@ This library provides Identity Access Managementy to securely store user's data.
|
|
|
54
58
|
# Website Setup:
|
|
55
59
|
```html
|
|
56
60
|
<header>
|
|
57
|
-
|
|
61
|
+
<!-- Indicate the 'register' boolean for 'subscribe state' -->
|
|
62
|
+
<!-- else 'login state' -->
|
|
63
|
+
<user-icon register></user-icon>
|
|
58
64
|
</header>
|
|
59
65
|
|
|
60
|
-
<
|
|
66
|
+
<!-- Indicate where the <pwa-settings> Tag will be Paged-->
|
|
67
|
+
<user-drawer url="/settings"></user-drawer>
|
|
61
68
|
|
|
62
69
|
<main>
|
|
63
70
|
<user-settings></user-settings>
|
|
@@ -96,6 +103,7 @@ if (lolalhost) { connect = { /* etc. */ } }
|
|
|
96
103
|
## CSS Default Custom Properties
|
|
97
104
|
| CSS Custom Property | Description | Default | Custom Element |
|
|
98
105
|
| :--- | ---: | :---: | :--- |
|
|
106
|
+
| --pwa_settings_background | Navigation | grey; | Settings |
|
|
99
107
|
| --pwa_nav_button | Navigation | grey; | Settings |
|
|
100
108
|
| --pwa_nav_select | Navigation | black; | Settings |
|
|
101
109
|
| --pwa_input_background | Input | #E1E5EB; | Settings |
|
package/demo/index.html
CHANGED
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
<body>
|
|
43
43
|
|
|
44
44
|
<!-- Button -->
|
|
45
|
-
<header><user-icon
|
|
45
|
+
<header><user-icon register></user-icon></header>
|
|
46
46
|
|
|
47
47
|
<!-- Drawer -->
|
|
48
|
-
<user-drawer></user-drawer>
|
|
48
|
+
<user-drawer url="/demo/settings"></user-drawer>
|
|
49
49
|
|
|
50
50
|
<!-- Settings -->
|
|
51
51
|
<main><user-settings></user-settings></main>
|
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
|
|
56
56
|
:root {
|
|
57
57
|
|
|
58
|
+
--pwa_settings_background: white;
|
|
59
|
+
|
|
58
60
|
/* Top Border Color */
|
|
59
61
|
--pwa_divider: grey;
|
|
60
62
|
|
package/demo/styles.css
CHANGED
|
@@ -19,17 +19,22 @@ body {
|
|
|
19
19
|
|
|
20
20
|
body {
|
|
21
21
|
display: grid;
|
|
22
|
+
grid-gap: 16px;
|
|
22
23
|
grid-template-areas:
|
|
23
24
|
"head"
|
|
24
|
-
"drawer"
|
|
25
25
|
"main";
|
|
26
|
-
grid-template-rows: auto
|
|
26
|
+
grid-template-rows: auto 1fr;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
header { grid-area: head; }
|
|
30
|
-
user-drawer { grid-area: drawer; }
|
|
31
30
|
main { grid-area: main; }
|
|
32
31
|
|
|
32
|
+
main {
|
|
33
|
+
border: 2px solid black;
|
|
34
|
+
border-radius: 6px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
33
38
|
body {
|
|
34
39
|
background: linear-gradient(124deg, #e8891d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
|
|
35
40
|
background-size: 1800%;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/css/font.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBActB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const fontStyles = css `
|
|
3
|
+
|
|
4
|
+
/* */
|
|
5
|
+
.x-font {
|
|
6
|
+
font-family: Roboto, Arial, sans-serif; /* 'Montserrat' */
|
|
7
|
+
line-height: 1.1;
|
|
8
|
+
letter-spacing: .007em;
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
text-align: center;
|
|
12
|
+
text-decoration-style: solid;
|
|
13
|
+
text-transform: uppercase;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/css/form/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,eAAO,MAAM,WAAW,EAAE,SAkEzB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const buttonStyle = css `
|
|
3
|
+
|
|
4
|
+
.action-button:focus { outline:0; }
|
|
5
|
+
|
|
6
|
+
.action-button {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
margin: 10px 3px 10px auto;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
text-align: center;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
touch-action: manipulation;
|
|
15
|
+
-webkit-appearance: button;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
height: 38px;
|
|
19
|
+
line-height: 16px;
|
|
20
|
+
padding: 10px 16px;
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
color: var(--pwa_action_text_color);
|
|
23
|
+
background-color: var(--pwa_action_background_color);
|
|
24
|
+
border-color: var(--pwa_action_border_color);
|
|
25
|
+
box-shadow: 1px 1px 1px grey;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.saving{
|
|
29
|
+
transition: background-color 0.3s; /* Smooth transition for hover effect */
|
|
30
|
+
background-color: #D6EBD3;
|
|
31
|
+
border: 0.5px solid black;
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
height: 50px;
|
|
34
|
+
width: 100%;
|
|
35
|
+
margin: auto;
|
|
36
|
+
box-shadow: 1px 1px 1px grey;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* */
|
|
40
|
+
.submit:hover { background-color: #45a049; }
|
|
41
|
+
|
|
42
|
+
.submit {
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
width: 100%;
|
|
45
|
+
background-color: #4CAF50;
|
|
46
|
+
color: white;
|
|
47
|
+
padding: 14px 20px;
|
|
48
|
+
margin: 8px 0;
|
|
49
|
+
border: none;
|
|
50
|
+
border-radius: 4px;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Switch Login / Sign-up Button */
|
|
55
|
+
.new {
|
|
56
|
+
padding: 12px;
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
appearance: none;
|
|
59
|
+
background-color: transparent;
|
|
60
|
+
border: 0px;
|
|
61
|
+
color: inherit;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
font-size: small;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/css/form/input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAG,SAsBzB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const inputStyle = css `
|
|
3
|
+
|
|
4
|
+
input[type=text],
|
|
5
|
+
input[type=email],
|
|
6
|
+
input[type=password],
|
|
7
|
+
select {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
-webkit-box-sizing: border-box;
|
|
10
|
+
height: 50px;
|
|
11
|
+
text-align: left;
|
|
12
|
+
margin: 0 3px 0 3px;
|
|
13
|
+
padding: 8px 16px;
|
|
14
|
+
background-color: var(--pwa_input_background);
|
|
15
|
+
border: 0;
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
-webkit-border-radius: 4px;
|
|
18
|
+
font-size: smaller;
|
|
19
|
+
box-shadow: 1px 1px 1px grey;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input.invalid { background-color: #ffdddd; }
|
|
23
|
+
|
|
24
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/css/form/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAG,SAqBzB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const labelStyle = css `
|
|
3
|
+
|
|
4
|
+
label { font-size: .9em; }
|
|
5
|
+
label {
|
|
6
|
+
display: grid;
|
|
7
|
+
color: var(--pwa_label_text_color);
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
width: 100%;
|
|
10
|
+
font-size: smaller;
|
|
11
|
+
margin: auto;
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
line-height: 36px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (max-width: 460px) {
|
|
18
|
+
|
|
19
|
+
label { font-size: .8em; }
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/css/form/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SAUvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../src/css/svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,sCAAmf,CAAC;AACzgB,eAAO,MAAM,QAAQ,sCAA4tB,CAAC;AAClvB,eAAO,MAAM,KAAK,sCAAoK,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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>`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/css/toggle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,yBAMhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,SAczB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const drawerStyle = css `
|
|
3
|
+
|
|
4
|
+
.userDrawer {
|
|
5
|
+
z-index: 1;
|
|
6
|
+
max-width: 600px;
|
|
7
|
+
margin: 16px auto auto auto;
|
|
8
|
+
background-color: var(--pwa_drawer_background_color);
|
|
9
|
+
color: var(--pwa_drawer_text_color);
|
|
10
|
+
padding: 8px 18px;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
border: 3px #303030 solid;
|
|
13
|
+
border-radius: 20px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SA4CvB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const exitStyle = css `
|
|
3
|
+
|
|
4
|
+
.exit {
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-columns: 80px 1fr 80px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.exit > h3 {
|
|
10
|
+
font-weight: 800;
|
|
11
|
+
font-size: .9em;
|
|
12
|
+
margin: 0px auto;
|
|
13
|
+
opacity: .8;
|
|
14
|
+
line-height: 36px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.exit > .remove {
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
border: 0px;
|
|
20
|
+
color: red;
|
|
21
|
+
font-weight: 800;
|
|
22
|
+
font-size: .7em;
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
opacity: .6;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.exit > .refresh {
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
border: 0px;
|
|
30
|
+
fill: blue;
|
|
31
|
+
height: 36px;
|
|
32
|
+
width: 36px;
|
|
33
|
+
padding: 0px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.close {
|
|
37
|
+
height: 36px;
|
|
38
|
+
width: 36px;
|
|
39
|
+
margin: auto;
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
border: 0px;
|
|
42
|
+
fill: red;
|
|
43
|
+
opacity: .8;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SAUvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SASvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/visibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAE,SAoBxB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const visibility = css `
|
|
3
|
+
|
|
4
|
+
.visibility[on] {
|
|
5
|
+
visibility: visible;
|
|
6
|
+
transform: translate3d(0, 0, 0);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.visibility {
|
|
10
|
+
position: fixed;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
visibility: hidden;
|
|
15
|
+
will-change: transform;
|
|
16
|
+
transform: translate3d(0, -150%, 0);
|
|
17
|
+
transition-property: visibility, transform;
|
|
18
|
+
transition-duration: 1.4s;
|
|
19
|
+
display: block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
`;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
private _name;
|
|
22
|
+
private _log;
|
|
23
|
+
private _sign;
|
|
24
|
+
constructor();
|
|
25
|
+
protected firstUpdated(): void;
|
|
26
|
+
stateChanged(state: AppState): void;
|
|
27
|
+
static get styles(): CSSResultArray;
|
|
28
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
}
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
'user-drawer': UserDrawer;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAoB,KAAK,CAAC;AAG1E,OAAO,EAAS,QAAQ,EAAE,MAAqB,aAAa,CAAC;AAc7D,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;;;;;;;;;;;;;;AAEzB,qBACa,UAAW,SAAQ,eAA0B;IAGf,OAAO,CAAC,GAAG,CAAM;IAGO,MAAM,UAAS;IAEvE,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,IAAI,CAAiB;IAC7B,OAAO,CAAC,KAAK,CAAgB;;IAItC,SAAS,CAAC,YAAY;IAatB,YAAY,CAAC,KAAK,EAAE,QAAQ;IAO5B,MAAM,KAAK,MAAM,IAAI,cAAc,CA+BhC;IAEH,SAAS,CAAC,MAAM;CAgDjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAC;KAC7B;CACF"}
|