pwa-auth 3.1.5 → 3.2.1

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 (212) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +5 -3
  3. package/{transpiled/src-typescript → base}/css/form/button.d.ts +0 -1
  4. package/{transpiled/src-typescript → base}/css/form/button.js +1 -0
  5. package/base/css/form/button.js.map +1 -0
  6. package/{transpiled/src-typescript → base}/css/form/input.d.ts +0 -1
  7. package/{transpiled/src-typescript → base}/css/form/input.js +1 -0
  8. package/base/css/form/input.js.map +1 -0
  9. package/{transpiled/src-typescript → base}/css/form/label.d.ts +0 -1
  10. package/{transpiled/src-typescript → base}/css/form/label.js +1 -0
  11. package/base/css/form/label.js.map +1 -0
  12. package/{transpiled/src-typescript → base}/css/form/list.d.ts +0 -1
  13. package/{transpiled/src-typescript → base}/css/form/list.js +1 -0
  14. package/base/css/form/list.js.map +1 -0
  15. package/{transpiled/src-typescript → base}/css/svg.d.ts +0 -1
  16. package/{transpiled/src-typescript → base}/css/svg.js +1 -0
  17. package/base/css/svg.js.map +1 -0
  18. package/{transpiled/src-typescript → base}/css/toggle.d.ts +0 -1
  19. package/{transpiled/src-typescript → base}/css/toggle.js +1 -0
  20. package/base/css/toggle.js.map +1 -0
  21. package/{src/pwa-helpers.js → base/export/auth-helpers.d.ts} +1 -1
  22. package/base/export/auth-helpers.js +2 -0
  23. package/base/export/auth-helpers.js.map +1 -0
  24. package/base/export/pwa-auth.d.ts +4 -0
  25. package/base/export/pwa-auth.js +5 -0
  26. package/base/export/pwa-auth.js.map +1 -0
  27. package/{transpiled/src-typescript → base}/firebase/authentication.d.ts +1 -2
  28. package/{transpiled/src-typescript → base}/firebase/authentication.js +1 -0
  29. package/base/firebase/authentication.js.map +1 -0
  30. package/{transpiled/src-typescript → base}/firebase/interface.d.ts +0 -1
  31. package/{transpiled/src-typescript → base}/firebase/interface.js +1 -0
  32. package/base/firebase/interface.js.map +1 -0
  33. package/{transpiled/src-typescript → base}/redux/backend.d.ts +0 -1
  34. package/{transpiled/src-typescript → base}/redux/backend.js +1 -0
  35. package/base/redux/backend.js.map +1 -0
  36. package/{transpiled/src-typescript → base}/redux/drawer.d.ts +0 -1
  37. package/{transpiled/src-typescript → base}/redux/drawer.js +1 -0
  38. package/base/redux/drawer.js.map +1 -0
  39. package/{transpiled/src-typescript → base}/redux/frontend.d.ts +0 -1
  40. package/{transpiled/src-typescript → base}/redux/frontend.js +1 -0
  41. package/base/redux/frontend.js.map +1 -0
  42. package/{transpiled/src-typescript → base}/redux/object.d.ts +0 -1
  43. package/base/redux/object.js +2 -0
  44. package/base/redux/object.js.map +1 -0
  45. package/{transpiled/src-typescript → base}/store.d.ts +0 -1
  46. package/{transpiled/src-typescript → base}/store.js +1 -0
  47. package/base/store.js.map +1 -0
  48. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/drawer.d.ts +0 -1
  49. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/drawer.js +1 -0
  50. package/base/webcomponents/drawer/css/drawer.js.map +1 -0
  51. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/exit.d.ts +0 -1
  52. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/exit.js +1 -0
  53. package/base/webcomponents/drawer/css/exit.js.map +1 -0
  54. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/link.d.ts +0 -1
  55. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/link.js +1 -0
  56. package/base/webcomponents/drawer/css/link.js.map +1 -0
  57. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/paragraph.d.ts +0 -1
  58. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/paragraph.js +1 -0
  59. package/base/webcomponents/drawer/css/paragraph.js.map +1 -0
  60. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/toggle.d.ts +0 -1
  61. package/{transpiled/src-typescript → base}/webcomponents/drawer/css/toggle.js +1 -0
  62. package/base/webcomponents/drawer/css/toggle.js.map +1 -0
  63. package/{transpiled/src-typescript → base}/webcomponents/drawer/drawer.d.ts +1 -2
  64. package/{transpiled/src-typescript → base}/webcomponents/drawer/drawer.js +4 -3
  65. package/base/webcomponents/drawer/drawer.js.map +1 -0
  66. package/{transpiled/src-typescript → base}/webcomponents/drawer/input/login.d.ts +0 -1
  67. package/{transpiled/src-typescript → base}/webcomponents/drawer/input/login.js +1 -0
  68. package/base/webcomponents/drawer/input/login.js.map +1 -0
  69. package/{transpiled/src-typescript → base}/webcomponents/drawer/input/sign-up.d.ts +0 -1
  70. package/{transpiled/src-typescript → base}/webcomponents/drawer/input/sign-up.js +1 -0
  71. package/base/webcomponents/drawer/input/sign-up.js.map +1 -0
  72. package/{transpiled/src-typescript → base}/webcomponents/icon/css/icon.d.ts +0 -1
  73. package/{transpiled/src-typescript → base}/webcomponents/icon/css/icon.js +1 -0
  74. package/base/webcomponents/icon/css/icon.js.map +1 -0
  75. package/{transpiled/src-typescript → base}/webcomponents/icon/icon.d.ts +1 -2
  76. package/{transpiled/src-typescript → base}/webcomponents/icon/icon.js +4 -3
  77. package/base/webcomponents/icon/icon.js.map +1 -0
  78. package/{transpiled/src-typescript → base}/webcomponents/settings/css/navigation.d.ts +0 -1
  79. package/{transpiled/src-typescript → base}/webcomponents/settings/css/navigation.js +1 -0
  80. package/base/webcomponents/settings/css/navigation.js.map +1 -0
  81. package/{transpiled/src-typescript → base}/webcomponents/settings/input/delete.d.ts +0 -1
  82. package/{transpiled/src-typescript → base}/webcomponents/settings/input/delete.js +1 -0
  83. package/base/webcomponents/settings/input/delete.js.map +1 -0
  84. package/{transpiled/src-typescript → base}/webcomponents/settings/input/email.d.ts +0 -1
  85. package/{transpiled/src-typescript → base}/webcomponents/settings/input/email.js +1 -0
  86. package/base/webcomponents/settings/input/email.js.map +1 -0
  87. package/{transpiled/src-typescript → base}/webcomponents/settings/input/name.d.ts +0 -1
  88. package/{transpiled/src-typescript → base}/webcomponents/settings/input/name.js +1 -0
  89. package/base/webcomponents/settings/input/name.js.map +1 -0
  90. package/{transpiled/src-typescript → base}/webcomponents/settings/input/password.d.ts +0 -1
  91. package/{transpiled/src-typescript → base}/webcomponents/settings/input/password.js +1 -0
  92. package/base/webcomponents/settings/input/password.js.map +1 -0
  93. package/{transpiled/src-typescript → base}/webcomponents/settings/input/uploader.d.ts +0 -1
  94. package/{transpiled/src-typescript → base}/webcomponents/settings/input/uploader.js +1 -0
  95. package/base/webcomponents/settings/input/uploader.js.map +1 -0
  96. package/{transpiled/src-typescript → base}/webcomponents/settings/settings.d.ts +1 -2
  97. package/{transpiled/src-typescript → base}/webcomponents/settings/settings.js +4 -3
  98. package/base/webcomponents/settings/settings.js.map +1 -0
  99. package/demonstration/index.html +52 -5
  100. package/{src-export/pwa-helpers.ts → export/auth-helpers.ts} +1 -1
  101. package/{src-export/tsconfig.production.json → export/export/tsconfigs.production.md} +3 -3
  102. package/export/pwa-auth.ts +4 -0
  103. package/package.json +21 -15
  104. package/demonstration/compiled/pwa-auth.js +0 -881
  105. package/demonstration/compiled/pwa-auth.js.map +0 -1
  106. package/demonstration/compiled/pwa-helpers-BN4uXXdl.js +0 -8
  107. package/demonstration/compiled/pwa-helpers-BN4uXXdl.js.map +0 -1
  108. package/demonstration/compiled/pwa-helpers.js +0 -8
  109. package/demonstration/compiled/pwa-helpers.js.map +0 -1
  110. package/demonstration/css/styles.css +0 -69
  111. package/images/empty.jpg +0 -0
  112. package/src/compiled/pwa-auth.js +0 -881
  113. package/src/compiled/pwa-auth.js.map +0 -1
  114. package/src/compiled/pwa-helpers-BN4uXXdl.js +0 -8
  115. package/src/compiled/pwa-helpers-BN4uXXdl.js.map +0 -1
  116. package/src/compiled/pwa-helpers.js +0 -8
  117. package/src/compiled/pwa-helpers.js.map +0 -1
  118. package/src/empty.jpg +0 -0
  119. package/src/pwa-auth.js +0 -3
  120. package/src-classes/pwa-auth.js +0 -3
  121. package/src-compiled/pwa-auth.js +0 -881
  122. package/src-compiled/pwa-auth.js.map +0 -1
  123. package/src-compiled/pwa-helpers-BN4uXXdl.js +0 -8
  124. package/src-compiled/pwa-helpers-BN4uXXdl.js.map +0 -1
  125. package/src-compiled/pwa-helpers.js +0 -8
  126. package/src-compiled/pwa-helpers.js.map +0 -1
  127. package/src-export/pwa-auth.ts +0 -3
  128. package/src-functions/pwa-helpers.js +0 -1
  129. package/src-typescript/css/default.ts +0 -111
  130. package/src-typescript/css/font.ts +0 -17
  131. package/src-typescript/css/form/button.ts +0 -55
  132. package/src-typescript/css/form/input.ts +0 -25
  133. package/src-typescript/css/form/label.ts +0 -23
  134. package/src-typescript/css/form/list.ts +0 -23
  135. package/src-typescript/css/svg.ts +0 -5
  136. package/src-typescript/css/toggle.ts +0 -9
  137. package/src-typescript/development/helpers-array.ts +0 -0
  138. package/src-typescript/development/junk/firebase-object.ts +0 -49
  139. package/src-typescript/development/junk/notes.md +0 -96
  140. package/src-typescript/development/junk/phone.ts +0 -146
  141. package/src-typescript/development/junk/photo.ts +0 -440
  142. package/src-typescript/development/junk/telephone.ts +0 -282
  143. package/src-typescript/development/login.ts +0 -246
  144. package/src-typescript/development/utilities-object.ts +0 -214
  145. package/src-typescript/firebase/authentication.ts +0 -11
  146. package/src-typescript/firebase/interface.ts +0 -187
  147. package/src-typescript/lazy-loader.ts +0 -20
  148. package/src-typescript/redux/backend.ts +0 -94
  149. package/src-typescript/redux/drawer.ts +0 -37
  150. package/src-typescript/redux/frontend.ts +0 -134
  151. package/src-typescript/redux/object.ts +0 -31
  152. package/src-typescript/store.ts +0 -19
  153. package/src-typescript/webcomponents/drawer/css/drawer.ts +0 -64
  154. package/src-typescript/webcomponents/drawer/css/exit.ts +0 -49
  155. package/src-typescript/webcomponents/drawer/css/link.ts +0 -15
  156. package/src-typescript/webcomponents/drawer/css/paragraph.ts +0 -11
  157. package/src-typescript/webcomponents/drawer/css/toggle.ts +0 -19
  158. package/src-typescript/webcomponents/drawer/drawer.ts +0 -120
  159. package/src-typescript/webcomponents/drawer/input/forgot.ts +0 -121
  160. package/src-typescript/webcomponents/drawer/input/login.ts +0 -135
  161. package/src-typescript/webcomponents/drawer/input/sign-up.ts +0 -159
  162. package/src-typescript/webcomponents/icon/css/icon.ts +0 -60
  163. package/src-typescript/webcomponents/icon/icon.ts +0 -71
  164. package/src-typescript/webcomponents/settings/css/navigation.ts +0 -92
  165. package/src-typescript/webcomponents/settings/input/delete.ts +0 -83
  166. package/src-typescript/webcomponents/settings/input/email.ts +0 -135
  167. package/src-typescript/webcomponents/settings/input/images.ts +0 -57
  168. package/src-typescript/webcomponents/settings/input/name.ts +0 -99
  169. package/src-typescript/webcomponents/settings/input/password.ts +0 -156
  170. package/src-typescript/webcomponents/settings/input/uploader.ts +0 -330
  171. package/src-typescript/webcomponents/settings/settings.ts +0 -205
  172. package/transpiled/src-export/pwa-auth.d.ts +0 -4
  173. package/transpiled/src-export/pwa-auth.d.ts.map +0 -1
  174. package/transpiled/src-export/pwa-auth.js +0 -3
  175. package/transpiled/src-export/pwa-helpers.d.ts +0 -2
  176. package/transpiled/src-export/pwa-helpers.d.ts.map +0 -1
  177. package/transpiled/src-export/pwa-helpers.js +0 -1
  178. package/transpiled/src-typescript/css/form/button.d.ts.map +0 -1
  179. package/transpiled/src-typescript/css/form/input.d.ts.map +0 -1
  180. package/transpiled/src-typescript/css/form/label.d.ts.map +0 -1
  181. package/transpiled/src-typescript/css/form/list.d.ts.map +0 -1
  182. package/transpiled/src-typescript/css/svg.d.ts.map +0 -1
  183. package/transpiled/src-typescript/css/toggle.d.ts.map +0 -1
  184. package/transpiled/src-typescript/firebase/authentication.d.ts.map +0 -1
  185. package/transpiled/src-typescript/firebase/interface.d.ts.map +0 -1
  186. package/transpiled/src-typescript/redux/backend.d.ts.map +0 -1
  187. package/transpiled/src-typescript/redux/drawer.d.ts.map +0 -1
  188. package/transpiled/src-typescript/redux/frontend.d.ts.map +0 -1
  189. package/transpiled/src-typescript/redux/object.d.ts.map +0 -1
  190. package/transpiled/src-typescript/redux/object.js +0 -1
  191. package/transpiled/src-typescript/store.d.ts.map +0 -1
  192. package/transpiled/src-typescript/webcomponents/drawer/css/drawer.d.ts.map +0 -1
  193. package/transpiled/src-typescript/webcomponents/drawer/css/exit.d.ts.map +0 -1
  194. package/transpiled/src-typescript/webcomponents/drawer/css/link.d.ts.map +0 -1
  195. package/transpiled/src-typescript/webcomponents/drawer/css/paragraph.d.ts.map +0 -1
  196. package/transpiled/src-typescript/webcomponents/drawer/css/toggle.d.ts.map +0 -1
  197. package/transpiled/src-typescript/webcomponents/drawer/drawer.d.ts.map +0 -1
  198. package/transpiled/src-typescript/webcomponents/drawer/input/login.d.ts.map +0 -1
  199. package/transpiled/src-typescript/webcomponents/drawer/input/sign-up.d.ts.map +0 -1
  200. package/transpiled/src-typescript/webcomponents/icon/css/icon.d.ts.map +0 -1
  201. package/transpiled/src-typescript/webcomponents/icon/icon.d.ts.map +0 -1
  202. package/transpiled/src-typescript/webcomponents/settings/css/navigation.d.ts.map +0 -1
  203. package/transpiled/src-typescript/webcomponents/settings/input/delete.d.ts.map +0 -1
  204. package/transpiled/src-typescript/webcomponents/settings/input/email.d.ts.map +0 -1
  205. package/transpiled/src-typescript/webcomponents/settings/input/name.d.ts.map +0 -1
  206. package/transpiled/src-typescript/webcomponents/settings/input/password.d.ts.map +0 -1
  207. package/transpiled/src-typescript/webcomponents/settings/input/uploader.d.ts.map +0 -1
  208. package/transpiled/src-typescript/webcomponents/settings/settings.d.ts.map +0 -1
  209. /package/demonstration/{css/pwa-styles.css → pwa-styles.css} +0 -0
  210. /package/{src → source}/THIRD_PARTY_LICENSES.txt +0 -0
  211. /package/{demonstration/images → source}/empty.jpg +0 -0
  212. /package/{src → source}/pwa-styles.css +0 -0
@@ -1,8 +0,0 @@
1
- /**
2
- * pwa-auth
3
- * Copyright (c) 2025 Jacek Markiewicz
4
- * Licensed under MIT
5
- */
6
-
7
- export{l as application,n as auth,I as db,H as firebaseConfig,x as storage,B as user}from"./pwa-helpers-BN4uXXdl.js";
8
- //# sourceMappingURL=pwa-helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pwa-helpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,3 +0,0 @@
1
- export { UserDrawer } from '../src-typescript/webcomponents/drawer/drawer';
2
- export { UserSettings } from '../src-typescript/webcomponents/settings/settings';
3
- export { UserIcon } from '../src-typescript/webcomponents/icon/icon';
@@ -1 +0,0 @@
1
- export { firebaseConfig, application, db, storage, auth, user } from '../src-javascript/firebase/authentication.js';
@@ -1,111 +0,0 @@
1
- import { css } from "lit";
2
-
3
- export const iconRoot = css`
4
-
5
- /* CSS: Custom Variables: <head> tag */
6
-
7
- :root {
8
-
9
- /* WebComponent 1 : User Icon
10
- <user-icon>
11
- <button> */
12
- --pwa_icon_hover: lightgrey; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
13
- --pwa_icon_background: #6cc04a; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
14
- --pwa_icon_border: 2px solid black; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
15
-
16
- /* WebComponent 1: logged-out
17
- <user-icon>
18
- <button class="login"> */
19
- --pwa_icon_height: 32px; /* sync to --pwa_icon_diameter */ /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
20
- --pwa_icon_padding: 0px 16px; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
21
- --pwa_icon_radius: 6px; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
22
- --pwa_icon_font: 'Arial', sans-serif; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
23
-
24
- /* WebComponent 1: logged-in
25
- <user-icon>
26
- <button class="icon"> */
27
- --pwa_icon_diameter: 32px; /* sync to --pwa_icon_height */ /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
28
-
29
- }
30
-
31
- `;
32
-
33
- export const drawerRoot = css`
34
-
35
- /* CSS: Custom Variables: <head> tag */
36
-
37
- :root {
38
-
39
- /* WebComponent 2: Drop-down Drawer
40
- <user-drawer>
41
- <section>
42
- <header></header>
43
- <div class="spec"> */
44
- --pwa_drawer_border: 3px #303030 solid; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
45
- --pwa_drawer_z-index: 2; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
46
- --pwa_drawer_border-radius: 20px; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
47
-
48
- /* WebComponent 2: Drop-down Drawer - logged-out
49
- <div class="spec"> */
50
- --pwa_drawer_text_color: #303030; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
51
- --pwa_drawer_background_color: #fff; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
52
-
53
- /* WebComponent 2: Drop-down Drawer - logged-in
54
- <div class="spec" on> */
55
-
56
- }
57
-
58
- `;
59
-
60
- export const settingsRoot = css`
61
-
62
- /* CSS: Custom Variables: <head> tag */
63
-
64
- :root {
65
-
66
- /* WebComponent 3: Settings Page
67
- <user-settings>
68
- <nav></nav>
69
- <section></section> */
70
- --pwa_settings_background: white; /* custom-elements Folder > settings Folder > settings.ts */
71
- --pwa_divider: black; /* custom-elements Folder > settings Folder > settings.ts */
72
-
73
- /* Navigation */
74
- --pwa_nav_button: grey; /* custom-elements Folder > settings Folder > CSS Folder > navigation.ts */
75
- --pwa_nav_select: black; /* custom-elements Folder > settings Folder > CSS Folder > navigation.ts */
76
-
77
- /* Section Header */
78
- --pwa_section_header: black; /* custom-elements Folder > settings Folder > settings.ts */
79
-
80
- /* Label */
81
- --pwa_label_text_color: black; /* Form Folder > label.ts */
82
-
83
- /* Input */
84
- --pwa_input_background: #E1E5EB; /* Form Folder > input.ts */
85
-
86
- /* Button */
87
- --pwa_action_text_color: #fff; /* Form Folder > button.ts */
88
- --pwa_action_background_color: #6cc04a; /* Form Folder > button.ts */
89
- --pwa_action_border_color: #60b23e; /* Form Folder > button.ts */
90
-
91
- }
92
-
93
- `;
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- export const themeRoot = css`
104
-
105
- /* Dark Theme */
106
- @media (prefers-color-scheme: dark) { }
107
-
108
- /* Light Theme */
109
- @media (prefers-color-scheme: light) { }
110
-
111
- `;
@@ -1,17 +0,0 @@
1
- import { css } from "lit";
2
-
3
- export const fontStyles = css`
4
-
5
- /* */
6
- .x-font {
7
- font-family: Roboto, Arial, sans-serif; /* 'Montserrat' */
8
- line-height: 1.1;
9
- letter-spacing: .007em;
10
- font-size: 14px;
11
- font-weight: 500;
12
- text-align: center;
13
- text-decoration-style: solid;
14
- text-transform: uppercase;
15
- }
16
-
17
- `;
@@ -1,55 +0,0 @@
1
- import { css, CSSResult } from "lit"
2
-
3
- export const buttonStyle: CSSResult = css`
4
-
5
- .action-button:focus { outline:0; }
6
-
7
- .action-button {
8
- display: inline-block;
9
- box-sizing: border-box;
10
- white-space: nowrap;
11
- margin: 16px 16px 16px auto;
12
- font-weight: 400;
13
- text-align: center;
14
- vertical-align: middle;
15
- touch-action: manipulation;
16
- -webkit-appearance: button;
17
- cursor: pointer;
18
- font-size: 16px;
19
- height: 38px;
20
- line-height: 16px;
21
- padding: 10px 16px;
22
- border-radius: 6px;
23
- color: var(--pwa_action_text_color, #fff);
24
- background-color: var(--pwa_action_background_color, #6cc04a);
25
- border-color: var(--pwa_action_border_color, #60b23e);
26
- box-shadow: 1px 1px 1px grey;
27
- }
28
-
29
- .saving{
30
- transition: background-color 0.3s; /* Smooth transition for hover effect */
31
- background-color: #D6EBD3;
32
- border: 0.5px solid black;
33
- border-radius: 4px;
34
- height: 50px;
35
- width: 100%;
36
- margin: auto;
37
- box-shadow: 1px 1px 1px grey;
38
- }
39
-
40
- /* */
41
- .submit:hover { background-color: #45a049; }
42
-
43
- .submit {
44
- box-sizing: border-box;
45
- width: 100%;
46
- background-color: #4CAF50;
47
- color: white;
48
- padding: 14px 20px;
49
- margin: 8px 0;
50
- border: none;
51
- border-radius: 4px;
52
- cursor: pointer;
53
- }
54
-
55
- `;
@@ -1,25 +0,0 @@
1
- import { css, CSSResult } from "lit";
2
-
3
- export const inputStyle : CSSResult = css`
4
-
5
- input[type=text],
6
- input[type=email],
7
- input[type=password],
8
- select {
9
- box-sizing: border-box;
10
- -webkit-box-sizing: border-box;
11
- height: 50px;
12
- text-align: left;
13
- margin: 0 16px 0 16px;
14
- padding: 8px 16px;
15
- background-color: var(--pwa_input_background, #E1E5EB);
16
- border: 0;
17
- border-radius: 4px;
18
- -webkit-border-radius: 4px;
19
- font-size: smaller;
20
- box-shadow: 1px 1px 1px grey;
21
- }
22
-
23
- input.invalid { background-color: #ffdddd; }
24
-
25
- `;
@@ -1,23 +0,0 @@
1
- import { css, CSSResult } from "lit";
2
-
3
- export const labelStyle : CSSResult = css`
4
-
5
- label { font-size: .9em; }
6
- label {
7
- display: grid;
8
- color: var(--pwa_label_text_color, black);
9
- box-sizing: border-box;
10
- font-size: smaller;
11
- margin-bottom: 0;
12
- font-weight: bold;
13
- line-height: 36px;
14
- padding: 0 16px;
15
- }
16
-
17
- @media (max-width: 460px) {
18
-
19
- label { font-size: .8em; }
20
-
21
- }
22
-
23
- `;
@@ -1,23 +0,0 @@
1
- import { css, CSSResult } from "lit";
2
-
3
- export const listStyle: CSSResult = css`
4
-
5
- ul {
6
- list-style-type: none;
7
- padding: 0;
8
- margin: 0;
9
- }
10
-
11
- li {
12
- display: grid;
13
- }
14
-
15
- .divider {
16
- border-top: 2px dotted black;
17
- border-bottom: 2px dotted black;
18
- text-align: center;
19
- width: 80%;
20
- margin: auto;
21
- }
22
-
23
- `;
@@ -1,5 +0,0 @@
1
- import { html } from "lit";
2
-
3
- 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>`;
4
- 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>`;
5
- 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,9 +0,0 @@
1
- import { css } from "lit";
2
-
3
- export const show = css`
4
-
5
- /* Detailed Project Feature Service */
6
- .spec[on] { display: grid; }
7
- .spec { display: none; }
8
-
9
- `;
File without changes
@@ -1,49 +0,0 @@
1
- /*
2
-
3
- // Sign in-out
4
- isSignInWithEmailLink(auth, emailLink) // Checks if an incoming link is a sign-in with email link suitable for signInWithEmailLink().
5
- sendSignInLinkToEmail(auth, email, actionCodeSettings) // Sends a sign-in email link to the user with the specified email.
6
- setPersistence(auth, persistence) // Changes the type of persistence on the Auth instance for the currently saved Auth session and applies this type of persistence for future sign-in requests, including sign-in with redirect requests.
7
- signInAnonymously(auth) Asynchronously // signs in as an anonymous user.
8
- signInWithCredential(auth, credential) // Asynchronously signs in with the given credentials.
9
- signInWithCustomToken(auth, customToken) // Asynchronously signs in using a custom token.
10
- signInWithEmailAndPassword(auth, email, password) // Asynchronously signs in using an email and password.
11
- signInWithEmailLink(auth, email, emailLink) // Asynchronously signs in using an email and sign-in email link.
12
- signInWithPhoneNumber(auth, phoneNumber, appVerifier) // Asynchronously signs in using a phone number.
13
- signInWithPopup(auth, provider, resolver) // Authenticates a Firebase client using a popup-based OAuth authentication flow.
14
- signInWithRedirect(auth, provider, resolver) // Authenticates a Firebase client using a full-page redirect flow.
15
- signOut(auth) // Signs out the current user.
16
-
17
- // Verify
18
- updateCurrentUser(auth, user) // Asynchronously sets the provided user as Auth.currentUser on the Auth instance.
19
- useDeviceLanguage(auth) // Sets the current language to the default device/browser preference.
20
- validatePassword(auth, password) // Validates the password against the password policy configured for the project or tenant.
21
- verifyPasswordResetCode(auth, code) // Checks a password reset code sent to the user by email or other out-of-band mechanism.
22
-
23
- */
24
-
25
-
26
-
27
- interface base3 {
28
- }
29
-
30
- interface base2 {
31
- // isSignInWithEmailLink : any,
32
- sendSignInLinkToEmail : any,
33
- setPersistence : any,
34
- signInAnonymously : any,
35
- signInWithCredential : any,
36
- signInWithCustomToken : any,
37
- signInWithEmailAndPassword : any,
38
- signInWithEmailLink : any,
39
- signInWithPhoneNumber : any,
40
- signInWithPopup : any,
41
- signInWithRedirect : any,
42
- signOut : any,
43
- updateCurrentUser : any,
44
- useDeviceLanguage : any,
45
- validatePassword : any,
46
- verifyPasswordResetCode : any,
47
- handleRecoverEmail:any,
48
- sendEmailVerification: any
49
- }
@@ -1,96 +0,0 @@
1
-
2
- ## firebase-messaging-sw.js Setup
3
- ```javascript
4
- // Initialize Firebase
5
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-app.js");
6
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-auth.js");
7
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-storage.js");
8
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-firestore.js");
9
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-analytics.js");
10
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-messaging.js");
11
-
12
- let connect = {
13
- apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
14
- authDomain: "xxxxxxx.xxxxxxx.xxx",
15
- databaseURL: "https://xxxxxxx.xxxxxxx.xxx",
16
- projectId: "xxxxxxx",
17
- storageBucket: "xxxxxxx.xxxxxxx.xxx",
18
- messagingSenderId: "xxxxxxxxxxx",
19
- appId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
20
- measurementId: "xxxxxxxxxxx"
21
- };
22
-
23
- // REFERENCE TO SERVICES
24
- firebase.initializeApp(admin);
25
-
26
- // REFERENCE TO SERVICES
27
- firebase.initializeApp(admin);
28
- // firebase.messaging();
29
- // const messaging = getMessaging(admin);
30
-
31
- // Add the public key generated from the console.
32
- firebase.messaging().usePublicVapidKey("xxxxxxxxx");
33
- ```
34
-
35
- ```javascript
36
- // CORS
37
- [
38
- {
39
- "origin": ["https://inmostfire.firestoreapp.com", "http://localhost:8000"],
40
- "method": ["GET", "PUT", "POST", "DELETE"],
41
- "responseHeader": [
42
- "Content-Type",
43
- "Authorization",
44
- "x-goog-meta-*",
45
- "x-goog-acl",
46
- "x-goog-date",
47
- "x-goog-content-sha256",
48
- "x-goog-class"
49
- ],
50
- "maxAgeSeconds": 3600
51
- }
52
- ]
53
- ```
54
-
55
- ```javascript
56
-
57
- // firebase-messaging-sw.js
58
-
59
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-app.js");
60
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-auth.js");
61
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-storage.js");
62
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-firestore.js");
63
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-analytics.js");
64
- importScripts("https://www.gstatic.com/firebasejs/9.6.0/firebase-messaging.js");
65
-
66
- // Dynamically import Firebase from CDN
67
- // const firebaseApp = await import('https://www.gstatic.com/firebasejs/10.14.1/firebase-app.js');
68
- // const firebaseAuth = await import('https://www.gstatic.com/firebasejs/10.14.1/firebase-auth.js');
69
-
70
- const admin = {
71
- apiKey: "AIzaSyC1ZNYC9RAjSAE3syUBNi47AiqbAqkx99w",
72
- authDomain: "pwa-authentic.firebaseapp.com",
73
- projectId: "pwa-authentic",
74
- storageBucket: "pwa-authentic.firebasestorage.app",
75
- messagingSenderId: "749233996232",
76
- appId: "1:749233996232:web:bbc410d53b7d39bdfb80fd",
77
- measurementId: "G-G1GYM1HBJ4"
78
- } ;
79
-
80
- // const messaging = getMessaging(admin);
81
-
82
- // REFERENCE TO SERVICES
83
- firebase.initializeApp(admin);
84
- // firebase.messaging();
85
-
86
- // Add the public key generated from the console.
87
- // firebase.messaging().usePublicVapidKey("BAz2eUmJrgElexalB5GmQOXLxZ7yJC2Jp69fsUfnYM73hfGIhWkRxPi5PgRXr5oEWJ0yvJlQ7GVFGYP3AiIigl4");
88
-
89
- // export const messaging = () => [] firebase.messaging();
90
-
91
-
92
-
93
-
94
-
95
-
96
- ```
@@ -1,146 +0,0 @@
1
- /*
2
- import { LitElement, html, CSSResultArray, css } from 'lit';
3
- import { property, state } from 'lit/decorators.js';
4
- import { inputStyles, labelStyles } from '../src/custom-elements/change/css/styles';
5
- import { connect } from 'pwa-helpers';
6
- import { store, AppState } from '../store';
7
-
8
- export class PhoneFormat extends connect(store)(LitElement) {
9
-
10
- /** @attr value *
11
- @property({ type: String }) public value: string = '';
12
- @state() private phone: string = '';
13
-
14
- constructor() { super(); }
15
-
16
- stateChanged(state: AppState) {
17
- this.phone = state.backend!.phone ;
18
- }
19
-
20
- connectedCallback() {
21
- super.connectedCallback();
22
- this.addFormResetListener();
23
- }
24
-
25
- static get styles() : CSSResultArray { return [ inputStyles, labelStyles,
26
- css`
27
-
28
- :host {
29
- display: grid;
30
- }
31
-
32
- `
33
- ]};
34
-
35
- render() {
36
- return html`
37
- <label>Telephone:
38
- <input
39
- name="telephone"
40
- type="text"
41
- value="${this.value}"
42
- @input="${this.onInput}"
43
- @keydown="${this.onKeyDown}"
44
- placeholder="${this.formatPhoneNumber(this.phone) || '(XXX) XXX-XXXX'}"
45
- inputmode="numeric"
46
- pattern="[0-9]*"
47
- data-label="Phone Number"
48
- />
49
- </label>
50
- `;
51
- }
52
-
53
- private onKeyDown(event: KeyboardEvent) {
54
-
55
- // Allow backspace, delete, tab, escape, enter, and arrow keys
56
- const allowedKeys = ['Backspace', 'Delete', 'Tab', 'Escape', 'Enter', 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'];
57
-
58
- if (allowedKeys.includes(event.key) || (event.key >= '0' && event.key <= '9') || (event.key >= 'Numpad0' && event.key <= 'Numpad9')) {
59
- // Allow normal operation
60
- } else {
61
- // Prevent the default action (e.g., character input)
62
- event.preventDefault();
63
- }
64
-
65
- }
66
-
67
- private onInput(event: Event) {
68
-
69
- const inputElement = event.target as HTMLInputElement;
70
- const unformattedValue = this.unformatPhoneNumber(inputElement.value);
71
-
72
- // Check the length of the unformatted phone number
73
- if (unformattedValue.length <= 10) {
74
- this.value = unformattedValue;
75
- } else {
76
- // If the length exceeds 10, reset the input value to the previously stored value
77
- inputElement.value = this.formatPhoneNumber(this.value);
78
- }
79
- }
80
-
81
- private formatPhoneNumber(phoneNumber: string): string {
82
- const cleaned = ('' + phoneNumber).replace(/\D/g, '');
83
- let formatted = '';
84
-
85
- if (cleaned.length > 0) {
86
- formatted = `(${cleaned.slice(0, 3)}`;
87
- }
88
- if (cleaned.length >= 3) {
89
- formatted += `) ${cleaned.slice(3, 6)}`;
90
- }
91
- if (cleaned.length > 6) {
92
- formatted += `-${cleaned.slice(6, 10)}`;
93
- }
94
-
95
- return formatted;
96
- }
97
-
98
- private unformatPhoneNumber(formattedPhoneNumber: string): string {
99
- return formattedPhoneNumber.replace(/\D/g, '');
100
- }
101
-
102
- private addFormResetListener() {
103
- const form = this.closest('form');
104
- if (form) {
105
- form.addEventListener('reset', () => this.resetInput());
106
- }
107
- }
108
-
109
- private resetInput() {
110
- this.value = '';
111
- }
112
-
113
- }
114
-
115
-
116
-
117
- customElements.define('phone-format', PhoneFormat);
118
-
119
- // Declare the global tag name
120
- declare global {
121
- interface HTMLElementTagNameMap {
122
- 'phone-format': PhoneFormat;
123
- }
124
- }
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
- /*
133
- private formatPhoneNumber(phoneNumber: string): string {
134
- const cleaned = ('' + phoneNumber).replace(/\D/g, '');
135
- const match = cleaned.match(/^(\d{3})(\d{3})(\d{4})$/);
136
- if (match) {
137
- return `${match[1]}-${match[2]}-${match[3]}`;
138
- }
139
- return phoneNumber;
140
- }
141
-
142
- private unformatPhoneNumber(formattedPhoneNumber: string): string {
143
- return formattedPhoneNumber.replace(/\D/g, '');
144
- }
145
- }
146
- */