pwa-auth 3.7.3 → 3.7.4
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 +1 -1
- package/base/firebase/message.d.ts.map +1 -1
- package/base/firebase/message.js +3 -0
- package/base/firebase/message.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.d.ts +6 -1
- package/base/webcomponents/settings/input/uploader.d.ts.map +1 -1
- package/base/webcomponents/settings/input/uploader.js +301 -84
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/package.json +1 -1
- package/source/pwa-auth.js +150 -82
package/README.md
CHANGED
|
@@ -178,7 +178,7 @@ The drawer unrolls downward and its buttons ride the bottom edge. Nothing animat
|
|
|
178
178
|
|
|
179
179
|
## Firebase
|
|
180
180
|
|
|
181
|
-
Turn on Email/Password. Turn on Google if that button stays.
|
|
181
|
+
Turn on Email/Password. Turn on Google if that button stays. A profile photo is one Storage object, `pwa-auth/{uid}/photo`, replaced on each upload. Only an image file, up to 5 MB, is accepted. The element then keeps the EXIF orientation, scales the long side to at most 1024px, and uploads a JPEG at 0.8 quality. Remove photo clears it. Let the signed-in person read and write that folder. The elements do not write Firestore. The upload control stays disabled until Firebase has a signed-in user.
|
|
182
182
|
|
|
183
183
|
1. `initialize()` is the one to use.
|
|
184
184
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../typescript/firebase/message.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../typescript/firebase/message.ts"],"names":[],"mappings":"AAqCA,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAGlD"}
|
package/base/firebase/message.js
CHANGED
|
@@ -25,6 +25,9 @@ const known = {
|
|
|
25
25
|
'pwa/weak-password': passwordShort,
|
|
26
26
|
'pwa/signed-out': 'Sign in first.',
|
|
27
27
|
'pwa/missing-file': 'Choose a photo first.',
|
|
28
|
+
'pwa/not-image': 'Choose an image file.',
|
|
29
|
+
'pwa/photo-too-large': 'Choose an image under 5 MB.',
|
|
30
|
+
'pwa/photo-unreadable': 'That image could not be prepared. Try another.',
|
|
28
31
|
'pwa/not-ready': 'Sign-in is not ready yet.',
|
|
29
32
|
'pwa/unknown': 'Something went wrong. Try again.'
|
|
30
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../typescript/firebase/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9E,MAAM,KAAK,GAA2B;IACpC,oBAAoB,EAAY,8BAA8B;IAC9D,qBAAqB,EAAW,6BAA6B;IAC7D,qBAAqB,EAAW,yBAAyB;IACzD,yBAAyB,EAAO,kCAAkC;IAClE,gCAAgC,EAAE,kCAAkC;IACpE,yBAAyB,EAAO,sCAAsC;IACtE,yBAAyB,EAAO,sCAAsC;IACtE,oBAAoB,EAAY,2BAA2B;IAC3D,2BAA2B,EAAK,qCAAqC;IACrE,+CAA+C,EAAE,qEAAqE;IACtH,oBAAoB,EAAY,aAAa;IAC7C,wBAAwB,EAAQ,qCAAqC;IACrE,6BAA6B,EAAG,6BAA6B;IAC7D,4BAA4B,EAAI,4BAA4B;IAC5D,mBAAmB,EAAa,yBAAyB;IACzD,mBAAmB,EAAa,8BAA8B;IAC9D,sBAAsB,EAAU,mBAAmB;IACnD,oBAAoB,EAAY,aAAa;IAC7C,mBAAmB,EAAa,YAAY;IAC5C,sBAAsB,EAAU,8BAA8B;IAC9D,uBAAuB,EAAS,gBAAgB;IAChD,mBAAmB,EAAa,aAAa;IAC7C,gBAAgB,EAAgB,gBAAgB;IAChD,kBAAkB,EAAc,uBAAuB;IACvD,eAAe,EAAiB,2BAA2B;IAC3D,aAAa,EAAmB,kCAAk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C3D,aAAa,EAAmB,kCAAkC;CACnE,CAAC;AAGF,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,MAAM,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IAClC,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,kCAAkC,CAAC;AAClE,CAAC"}
|
|
@@ -35,7 +35,7 @@ declare const ContactPhoto_base: (new (...args: any[]) => {
|
|
|
35
35
|
export declare class ContactPhoto extends ContactPhoto_base {
|
|
36
36
|
photo: string | void | any;
|
|
37
37
|
emptyArtwork: string;
|
|
38
|
-
private
|
|
38
|
+
private signed;
|
|
39
39
|
private person;
|
|
40
40
|
private mail;
|
|
41
41
|
private progress;
|
|
@@ -43,13 +43,18 @@ export declare class ContactPhoto extends ContactPhoto_base {
|
|
|
43
43
|
private status;
|
|
44
44
|
private tone;
|
|
45
45
|
private busy;
|
|
46
|
+
private stopAuth;
|
|
46
47
|
constructor();
|
|
48
|
+
connectedCallback(): void;
|
|
49
|
+
disconnectedCallback(): void;
|
|
47
50
|
stateChanged(state: AppState): void;
|
|
48
51
|
static get styles(): CSSResultArray;
|
|
49
52
|
private letters;
|
|
53
|
+
private resetPicker;
|
|
50
54
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
51
55
|
private fail;
|
|
52
56
|
private saveImage;
|
|
57
|
+
private clearPhoto;
|
|
53
58
|
}
|
|
54
59
|
declare global {
|
|
55
60
|
interface HTMLElementTagNameMap {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/settings/input/uploader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAQ,KAAK,CAAC;AAE9D,OAAO,EAAS,QAAQ,EAAE,MAAe,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"uploader.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/settings/input/uploader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAQ,KAAK,CAAC;AAE9D,OAAO,EAAS,QAAQ,EAAE,MAAe,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsF7D,qBAAa,YAAa,SAAQ,iBAA0B;IAGvC,KAAK,EAAG,MAAM,GAAG,IAAI,GAAG,GAAG,CAAM;IAGJ,YAAY,SAAM;IAEzD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,IAAI,CAAM;IAElB,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,IAAI,CAAc;IAC1B,OAAO,CAAC,IAAI,CAAS;IAE9B,OAAO,CAAC,QAAQ,CAA6B;;IAMpC,iBAAiB,IAAI,IAAI;IAiBzB,oBAAoB,IAAI,IAAI;IAMrC,YAAY,CAAC,KAAK,EAAE,QAAQ;IAM5B,MAAM,KAAK,MAAM,IAAG,cAAc,CAqIjC;IAED,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,WAAW;IAKnB,SAAS,CAAC,MAAM;IAsDhB,OAAO,CAAC,IAAI;IASZ,OAAO,CAAC,SAAS,CA6GhB;IAED,OAAO,CAAC,UAAU,CA4BjB;CAEF;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAC;KACjC;CACF"}
|
|
@@ -11,23 +11,83 @@ import { html, css, LitElement } from 'lit';
|
|
|
11
11
|
import { property, state } from 'lit/decorators.js';
|
|
12
12
|
import { store } from '../../../store.js';
|
|
13
13
|
import { connect } from 'pwa-helpers';
|
|
14
|
-
import { auth, storage } from '../../../firebase/authentication.js';
|
|
15
|
-
import { updateProfile } from 'firebase/auth';
|
|
14
|
+
import { auth, onReady, storage } from '../../../firebase/authentication.js';
|
|
15
|
+
import { onAuthStateChanged, updateProfile } from 'firebase/auth';
|
|
16
16
|
import { accImage } from '../../../redux/backend.js';
|
|
17
|
-
import {
|
|
18
|
-
import { ref, getDownloadURL, uploadBytesResumable } from "firebase/storage";
|
|
17
|
+
import { deleteObject, getDownloadURL, ref, uploadBytesResumable } from 'firebase/storage';
|
|
19
18
|
import { labelStyle } from '../../form/css/label.js';
|
|
20
19
|
import { statusStyle, liveStatus } from '../../form/css/status.js';
|
|
21
20
|
import { lettersFor } from '../../form/letters.js';
|
|
22
21
|
import { pwaAuthError, pwaProfileUpdated } from '../../../events/names.js';
|
|
23
22
|
import { emitWindow, toAuthError } from '../../../events/emit.js';
|
|
24
23
|
import { userMessage } from '../../../firebase/message.js';
|
|
24
|
+
const maxPhotoBytes = 5 * 1024 * 1024;
|
|
25
|
+
const maxPhotoEdge = 1024;
|
|
26
|
+
const photoQuality = 0.8;
|
|
27
|
+
function photoPath(uid) {
|
|
28
|
+
return 'pwa-auth/' + uid + '/photo';
|
|
29
|
+
}
|
|
30
|
+
function photoProblem(file) {
|
|
31
|
+
if (!file.type.startsWith('image/')) {
|
|
32
|
+
return { code: 'pwa/not-image', message: 'Choose an image file.' };
|
|
33
|
+
}
|
|
34
|
+
if (file.size > maxPhotoBytes) {
|
|
35
|
+
return { code: 'pwa/photo-too-large', message: 'Choose an image under 5 MB.' };
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
function fittedSize(width, height) {
|
|
40
|
+
const longest = Math.max(width, height);
|
|
41
|
+
if (!(longest > maxPhotoEdge)) {
|
|
42
|
+
return {
|
|
43
|
+
width: Math.max(1, Math.round(width)),
|
|
44
|
+
height: Math.max(1, Math.round(height))
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const scale = maxPhotoEdge / longest;
|
|
48
|
+
return {
|
|
49
|
+
width: Math.max(1, Math.round(width * scale)),
|
|
50
|
+
height: Math.max(1, Math.round(height * scale))
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
async function openBitmap(file) {
|
|
54
|
+
try {
|
|
55
|
+
return await createImageBitmap(file, { imageOrientation: 'from-image' });
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
return await createImageBitmap(file);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
async function shrinkPhoto(file) {
|
|
62
|
+
const bitmap = await openBitmap(file);
|
|
63
|
+
try {
|
|
64
|
+
if (bitmap.width < 1 || bitmap.height < 1)
|
|
65
|
+
throw new Error('empty image');
|
|
66
|
+
const size = fittedSize(bitmap.width, bitmap.height);
|
|
67
|
+
const canvas = document.createElement('canvas');
|
|
68
|
+
canvas.width = size.width;
|
|
69
|
+
canvas.height = size.height;
|
|
70
|
+
const context = canvas.getContext('2d');
|
|
71
|
+
if (!context)
|
|
72
|
+
throw new Error('no canvas');
|
|
73
|
+
context.drawImage(bitmap, 0, 0, size.width, size.height);
|
|
74
|
+
const blob = await new Promise((resolve) => {
|
|
75
|
+
canvas.toBlob((result) => resolve(result), 'image/jpeg', photoQuality);
|
|
76
|
+
});
|
|
77
|
+
if (!blob)
|
|
78
|
+
throw new Error('no jpeg');
|
|
79
|
+
return blob;
|
|
80
|
+
}
|
|
81
|
+
finally {
|
|
82
|
+
bitmap.close();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
25
85
|
export class ContactPhoto extends connect(store)(LitElement) {
|
|
26
86
|
constructor() {
|
|
27
87
|
super();
|
|
28
88
|
this.photo = '';
|
|
29
89
|
this.emptyArtwork = '';
|
|
30
|
-
this.
|
|
90
|
+
this.signed = false;
|
|
31
91
|
this.person = '';
|
|
32
92
|
this.mail = '';
|
|
33
93
|
this.progress = 0;
|
|
@@ -35,51 +95,84 @@ export class ContactPhoto extends connect(store)(LitElement) {
|
|
|
35
95
|
this.status = '';
|
|
36
96
|
this.tone = '';
|
|
37
97
|
this.busy = false;
|
|
38
|
-
this.
|
|
98
|
+
this.stopAuth = null;
|
|
99
|
+
this.saveImage = async (event) => {
|
|
39
100
|
const picked = event.target;
|
|
40
101
|
const file = picked?.files?.[0];
|
|
41
102
|
const current = auth.currentUser;
|
|
42
103
|
this.error = '';
|
|
43
104
|
this.tone = '';
|
|
44
105
|
if (!current) {
|
|
106
|
+
this.resetPicker();
|
|
45
107
|
this.fail({ code: 'pwa/signed-out', message: 'Sign in first.' });
|
|
46
108
|
return;
|
|
47
109
|
}
|
|
48
110
|
if (!file) {
|
|
111
|
+
this.resetPicker();
|
|
49
112
|
this.fail({ code: 'pwa/missing-file', message: 'Choose a photo first.' });
|
|
50
113
|
return;
|
|
51
114
|
}
|
|
115
|
+
const problem = photoProblem(file);
|
|
116
|
+
if (problem) {
|
|
117
|
+
this.resetPicker();
|
|
118
|
+
this.fail(problem);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
52
121
|
this.busy = true;
|
|
53
122
|
this.progress = 0;
|
|
123
|
+
this.status = 'Preparing…';
|
|
124
|
+
let prepared;
|
|
125
|
+
try {
|
|
126
|
+
prepared = await shrinkPhoto(file);
|
|
127
|
+
}
|
|
128
|
+
catch {
|
|
129
|
+
this.busy = false;
|
|
130
|
+
this.progress = 0;
|
|
131
|
+
this.resetPicker();
|
|
132
|
+
this.fail({ code: 'pwa/photo-unreadable', message: 'That image could not be prepared. Try another.' });
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const signed = auth.currentUser;
|
|
136
|
+
if (!signed) {
|
|
137
|
+
this.busy = false;
|
|
138
|
+
this.progress = 0;
|
|
139
|
+
this.resetPicker();
|
|
140
|
+
this.fail({ code: 'pwa/signed-out', message: 'Sign in first.' });
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
54
143
|
this.status = 'Uploading…';
|
|
55
|
-
const location = ref(storage,
|
|
144
|
+
const location = ref(storage, photoPath(signed.uid));
|
|
56
145
|
const metadata = {
|
|
57
146
|
cacheControl: 'public,max-age=300',
|
|
58
|
-
contentType:
|
|
147
|
+
contentType: prepared.type || 'image/jpeg'
|
|
59
148
|
};
|
|
60
|
-
const uploadTask = uploadBytesResumable(location,
|
|
149
|
+
const uploadTask = uploadBytesResumable(location, prepared, metadata);
|
|
61
150
|
uploadTask.on('state_changed', (snapshot) => {
|
|
62
151
|
const ratio = snapshot.totalBytes > 0 ? (snapshot.bytesTransferred / snapshot.totalBytes) * 100 : 0;
|
|
63
152
|
this.progress = isFinite(ratio) ? ratio : 0;
|
|
64
|
-
|
|
65
|
-
this.status = 'Upload is paused';
|
|
66
|
-
else
|
|
67
|
-
this.status = `Uploading… ${Math.round(this.progress)}%`;
|
|
153
|
+
this.status = `Uploading… ${Math.round(this.progress)}%`;
|
|
68
154
|
}, (error) => {
|
|
69
155
|
this.busy = false;
|
|
70
156
|
this.progress = 0;
|
|
157
|
+
this.resetPicker();
|
|
71
158
|
this.fail(error);
|
|
72
159
|
}, async () => {
|
|
73
160
|
try {
|
|
74
161
|
const url = await getDownloadURL(uploadTask.snapshot.ref);
|
|
75
162
|
const signed = auth.currentUser;
|
|
76
163
|
if (!signed) {
|
|
164
|
+
await deleteObject(location).catch(() => undefined);
|
|
77
165
|
this.fail({ code: 'pwa/signed-out', message: 'Sign in first.' });
|
|
78
166
|
return;
|
|
79
167
|
}
|
|
80
|
-
|
|
168
|
+
try {
|
|
169
|
+
await updateProfile(signed, { photoURL: url });
|
|
170
|
+
}
|
|
171
|
+
catch (error) {
|
|
172
|
+
await deleteObject(location).catch(() => undefined);
|
|
173
|
+
throw error;
|
|
174
|
+
}
|
|
81
175
|
store.dispatch(accImage(url));
|
|
82
|
-
store.dispatch(iconAuth(url));
|
|
83
176
|
this.photo = url;
|
|
84
177
|
this.progress = 100;
|
|
85
178
|
this.tone = '';
|
|
@@ -96,12 +189,62 @@ export class ContactPhoto extends connect(store)(LitElement) {
|
|
|
96
189
|
}
|
|
97
190
|
finally {
|
|
98
191
|
this.busy = false;
|
|
192
|
+
this.resetPicker();
|
|
99
193
|
}
|
|
100
194
|
});
|
|
101
195
|
};
|
|
196
|
+
this.clearPhoto = async () => {
|
|
197
|
+
const signed = auth.currentUser;
|
|
198
|
+
if (!signed || this.busy)
|
|
199
|
+
return;
|
|
200
|
+
this.busy = true;
|
|
201
|
+
this.error = '';
|
|
202
|
+
this.tone = '';
|
|
203
|
+
this.status = '';
|
|
204
|
+
try {
|
|
205
|
+
await updateProfile(signed, { photoURL: null });
|
|
206
|
+
store.dispatch(accImage(''));
|
|
207
|
+
this.photo = '';
|
|
208
|
+
await deleteObject(ref(storage, photoPath(signed.uid))).catch(() => undefined);
|
|
209
|
+
this.status = 'Photo removed.';
|
|
210
|
+
emitWindow(pwaProfileUpdated, {
|
|
211
|
+
uid: signed.uid,
|
|
212
|
+
displayName: signed.displayName,
|
|
213
|
+
photoURL: null
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
catch (error) {
|
|
217
|
+
this.fail(error);
|
|
218
|
+
}
|
|
219
|
+
finally {
|
|
220
|
+
this.busy = false;
|
|
221
|
+
this.resetPicker();
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
connectedCallback() {
|
|
226
|
+
super.connectedCallback();
|
|
227
|
+
onReady(() => {
|
|
228
|
+
this.stopAuth?.();
|
|
229
|
+
this.stopAuth = onAuthStateChanged(auth, (user) => {
|
|
230
|
+
this.signed = !!user;
|
|
231
|
+
if (!user) {
|
|
232
|
+
this.tone = '';
|
|
233
|
+
this.error = '';
|
|
234
|
+
this.status = 'Sign in to upload a photo.';
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (this.status === 'Sign in to upload a photo.')
|
|
238
|
+
this.status = '';
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
disconnectedCallback() {
|
|
243
|
+
this.stopAuth?.();
|
|
244
|
+
this.stopAuth = null;
|
|
245
|
+
super.disconnectedCallback();
|
|
102
246
|
}
|
|
103
247
|
stateChanged(state) {
|
|
104
|
-
this.login = state.frontend.login;
|
|
105
248
|
this.photo = state.backend.photoURL;
|
|
106
249
|
this.person = state.backend.name;
|
|
107
250
|
this.mail = state.backend.email;
|
|
@@ -113,12 +256,12 @@ export class ContactPhoto extends connect(store)(LitElement) {
|
|
|
113
256
|
css `
|
|
114
257
|
|
|
115
258
|
:host {
|
|
259
|
+
position: relative;
|
|
116
260
|
box-sizing: border-box;
|
|
117
261
|
-webkit-box-sizing: border-box;
|
|
118
262
|
display: grid;
|
|
119
|
-
|
|
120
|
-
grid-
|
|
121
|
-
grid-template-columns: 1fr;
|
|
263
|
+
justify-items: center;
|
|
264
|
+
grid-gap: 12px;
|
|
122
265
|
width: 100%;
|
|
123
266
|
max-width: min(100%, var(--pwa_max_width, 400px));
|
|
124
267
|
min-width: 0;
|
|
@@ -127,35 +270,114 @@ export class ContactPhoto extends connect(store)(LitElement) {
|
|
|
127
270
|
align-content: start;
|
|
128
271
|
}
|
|
129
272
|
|
|
130
|
-
|
|
273
|
+
/* Required - the file box matches this control. iOS anchors the picker menu to the input, so a clipped input against the page opens in the upper-left. */
|
|
274
|
+
.chooser {
|
|
275
|
+
position: relative;
|
|
276
|
+
display: grid;
|
|
277
|
+
justify-items: center;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.file {
|
|
281
|
+
position: absolute;
|
|
282
|
+
top: 0;
|
|
283
|
+
right: 0;
|
|
284
|
+
bottom: 0;
|
|
285
|
+
left: 0;
|
|
286
|
+
z-index: 1;
|
|
287
|
+
width: auto;
|
|
288
|
+
height: auto;
|
|
289
|
+
margin: 0;
|
|
290
|
+
padding: 0;
|
|
291
|
+
opacity: 0;
|
|
292
|
+
overflow: hidden;
|
|
293
|
+
border: 0;
|
|
294
|
+
cursor: pointer;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.file:focus-visible + .pick {
|
|
298
|
+
outline: 2px solid var(--pwa_focus, #1c2430);
|
|
299
|
+
outline-offset: 4px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.pick {
|
|
303
|
+
display: grid;
|
|
304
|
+
justify-items: center;
|
|
305
|
+
gap: 8px;
|
|
306
|
+
margin: 0;
|
|
307
|
+
padding: 0;
|
|
308
|
+
cursor: pointer;
|
|
309
|
+
color: var(--pwa_label_text_color, #1c2430);
|
|
310
|
+
font-size: 0.85rem;
|
|
311
|
+
font-weight: 600;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.file:disabled {
|
|
315
|
+
cursor: default;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.file:disabled + .pick {
|
|
319
|
+
cursor: default;
|
|
320
|
+
opacity: 0.72;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.frame {
|
|
324
|
+
width: 96px;
|
|
325
|
+
height: 96px;
|
|
131
326
|
border-radius: 50%;
|
|
132
327
|
overflow: hidden;
|
|
133
|
-
|
|
134
|
-
border: 2px solid #303030;
|
|
135
|
-
box-shadow: 1px 1px 2px black, 0 0 25px grey, 0 0 5px #fff;
|
|
328
|
+
background: var(--pwa_nav_on_background, #f2f2f2);
|
|
136
329
|
}
|
|
137
330
|
|
|
138
|
-
img
|
|
331
|
+
.frame img,
|
|
139
332
|
.mark {
|
|
140
|
-
margin: auto;
|
|
141
|
-
height: 200px;
|
|
142
333
|
width: 100%;
|
|
143
|
-
|
|
334
|
+
height: 100%;
|
|
144
335
|
display: block;
|
|
336
|
+
box-sizing: border-box;
|
|
145
337
|
}
|
|
146
338
|
|
|
147
|
-
|
|
148
|
-
object-fit:
|
|
339
|
+
.frame img {
|
|
340
|
+
object-fit: cover;
|
|
149
341
|
}
|
|
150
342
|
|
|
151
343
|
.mark {
|
|
152
344
|
display: grid;
|
|
153
345
|
place-items: center;
|
|
154
|
-
font-size:
|
|
346
|
+
font-size: 2rem;
|
|
155
347
|
font-weight: 600;
|
|
156
348
|
letter-spacing: 0.04em;
|
|
157
349
|
color: var(--pwa_action_background_color, #2a6b45);
|
|
158
|
-
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.meter {
|
|
353
|
+
width: 100%;
|
|
354
|
+
height: 8px;
|
|
355
|
+
margin: 0;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.clear {
|
|
359
|
+
appearance: none;
|
|
360
|
+
border: 0;
|
|
361
|
+
background: transparent;
|
|
362
|
+
color: var(--pwa_close_color, #9a3b32);
|
|
363
|
+
cursor: pointer;
|
|
364
|
+
font: inherit;
|
|
365
|
+
font-size: 0.85rem;
|
|
366
|
+
font-weight: 600;
|
|
367
|
+
text-decoration: underline;
|
|
368
|
+
text-underline-offset: 3px;
|
|
369
|
+
min-height: var(--pwa_tap, 44px);
|
|
370
|
+
padding: 0 8px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.clear:focus-visible {
|
|
374
|
+
outline: 2px solid var(--pwa_focus, #1c2430);
|
|
375
|
+
outline-offset: 2px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.clear:disabled {
|
|
379
|
+
cursor: default;
|
|
380
|
+
opacity: 0.72;
|
|
159
381
|
}
|
|
160
382
|
|
|
161
383
|
`
|
|
@@ -164,65 +386,60 @@ export class ContactPhoto extends connect(store)(LitElement) {
|
|
|
164
386
|
letters() {
|
|
165
387
|
return lettersFor(this.person, this.mail);
|
|
166
388
|
}
|
|
389
|
+
resetPicker() {
|
|
390
|
+
const input = this.renderRoot.querySelector('input[type=file]');
|
|
391
|
+
if (input)
|
|
392
|
+
input.value = '';
|
|
393
|
+
}
|
|
167
394
|
render() {
|
|
168
395
|
const letters = this.letters();
|
|
169
396
|
const photo = typeof this.photo === 'string' ? this.photo : '';
|
|
397
|
+
const locked = !this.signed || this.busy;
|
|
170
398
|
return html `
|
|
171
|
-
<label
|
|
172
|
-
style="
|
|
173
|
-
display: grid;
|
|
174
|
-
grid-template-columns: auto 1fr;
|
|
175
|
-
grid-gap: 16px;
|
|
176
|
-
padding: 0;
|
|
177
|
-
">Upload
|
|
178
|
-
<progress
|
|
179
|
-
id="pwa-uploader"
|
|
180
|
-
class="uploader"
|
|
181
|
-
part="progress"
|
|
182
|
-
value="${this.progress}"
|
|
183
|
-
max="100"
|
|
184
|
-
aria-label="Upload progress"
|
|
185
|
-
style="
|
|
186
|
-
height: 24px;
|
|
187
|
-
width: 100%;
|
|
188
|
-
margin: auto;
|
|
189
|
-
"></progress>
|
|
190
|
-
</label>
|
|
191
399
|
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
400
|
+
<div class="chooser">
|
|
401
|
+
<input
|
|
402
|
+
id="pwa-photo-file"
|
|
403
|
+
type="file"
|
|
404
|
+
name="photo"
|
|
405
|
+
part="file"
|
|
406
|
+
class="file"
|
|
407
|
+
accept="image/*"
|
|
408
|
+
aria-describedby="pwa-photo-status"
|
|
409
|
+
@change="${this.saveImage}"
|
|
410
|
+
?disabled="${locked}">
|
|
203
411
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
412
|
+
<label class="pick" for="pwa-photo-file" part="preview">
|
|
413
|
+
<span class="frame">
|
|
414
|
+
${photo ? html `
|
|
415
|
+
<img alt="Profile photo" src="${photo}">
|
|
416
|
+
` : letters ? html `
|
|
417
|
+
<span class="mark" part="initials" aria-hidden="true">${letters}</span>
|
|
418
|
+
` : this.emptyArtwork ? html `
|
|
419
|
+
<img alt="" src="${this.emptyArtwork}">
|
|
420
|
+
` : html `
|
|
421
|
+
<span class="mark" part="initials" aria-hidden="true">?</span>
|
|
422
|
+
`}
|
|
423
|
+
</span>
|
|
424
|
+
<span>Choose a photo</span>
|
|
425
|
+
</label>
|
|
426
|
+
</div>
|
|
214
427
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
<span class="mark" part="initials" aria-hidden="true">?</span>
|
|
223
|
-
`}
|
|
428
|
+
<progress
|
|
429
|
+
class="meter"
|
|
430
|
+
part="progress"
|
|
431
|
+
value="${this.progress}"
|
|
432
|
+
max="100"
|
|
433
|
+
aria-label="Upload progress"
|
|
434
|
+
?hidden="${!this.busy}"></progress>
|
|
224
435
|
|
|
225
|
-
|
|
436
|
+
${photo ? html `
|
|
437
|
+
<button
|
|
438
|
+
type="button"
|
|
439
|
+
class="clear"
|
|
440
|
+
?disabled="${locked}"
|
|
441
|
+
@click="${this.clearPhoto}">Remove photo</button>
|
|
442
|
+
` : ''}
|
|
226
443
|
|
|
227
444
|
${liveStatus('pwa-photo-status', this.error || this.status, this.tone)}
|
|
228
445
|
`;
|
|
@@ -246,8 +463,8 @@ __decorate([
|
|
|
246
463
|
], ContactPhoto.prototype, "emptyArtwork", void 0);
|
|
247
464
|
__decorate([
|
|
248
465
|
state(),
|
|
249
|
-
__metadata("design:type",
|
|
250
|
-
], ContactPhoto.prototype, "
|
|
466
|
+
__metadata("design:type", Object)
|
|
467
|
+
], ContactPhoto.prototype, "signed", void 0);
|
|
251
468
|
__decorate([
|
|
252
469
|
state(),
|
|
253
470
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/settings/input/uploader.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAkB,MAAQ,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAe,mBAAmB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAY,MAAe,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAuB,aAAa,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAkB,qCAAqC,CAAC;AAChF,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GAAG,OAAO,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,UAAU,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;CA+IF;AA9YoB;IAAlB,QAAQ,EAAE;;2CAAyC;AAGJ;IAA/C,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;kDAA0B;AAEjD;IAAhB,KAAK,EAAE;;4CAAwB;AACf;IAAhB,KAAK,EAAE;;4CAAqB;AACZ;IAAhB,KAAK,EAAE;;0CAAmB;AAEV;IAAhB,KAAK,EAAE;;8CAA8B;AACrB;IAAhB,KAAK,EAAE;;2CAA4B;AACnB;IAAhB,KAAK,EAAE;;4CAA6B;AACpB;IAAhB,KAAK,EAAE;;0CAA2B;AAClB;IAAhB,KAAK,EAAE;;0CAAsB;AAmYhC,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://www.jackspublishing.com",
|
|
7
7
|
"email": "jack.solutionbox@gmail.com"
|
|
8
8
|
},
|
|
9
|
-
"version": "3.7.
|
|
9
|
+
"version": "3.7.4",
|
|
10
10
|
"description": "Five elements: user-icon, user-drawer, user-login, user-settings, and email-reset. pwa- events, a small API, and --pwa_ theme variables.",
|
|
11
11
|
"homepage": "https://pwa-authentic.firebaseapp.com",
|
|
12
12
|
"repository": {
|