pwa-auth 3.8.1 → 3.8.3
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/base/webcomponents/css/animation.d.ts.map +1 -1
- package/base/webcomponents/css/animation.js +9 -3
- package/base/webcomponents/css/animation.js.map +1 -1
- package/base/webcomponents/drawer/css/drawer.d.ts.map +1 -1
- package/base/webcomponents/drawer/css/drawer.js +3 -2
- package/base/webcomponents/drawer/css/drawer.js.map +1 -1
- package/base/webcomponents/drawer/drawer.d.ts +16 -2
- package/base/webcomponents/drawer/drawer.d.ts.map +1 -1
- package/base/webcomponents/drawer/drawer.js +206 -50
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/docs/drawer-slide.md +29 -23
- package/docs/sliders.md +7 -7
- package/package.json +1 -1
- package/source/pwa-auth.js +31 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAQrC,eAAO,MAAM,SAAS,EAAG,
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAQrC,eAAO,MAAM,SAAS,EAAG,SAoGxB,CAAC;AAMF,eAAO,MAAM,WAAW,EAAG,SAe1B,CAAC;AAGF,eAAO,MAAM,YAAY,EAAG,SAM3B,CAAC"}
|
|
@@ -29,6 +29,12 @@ export const animation = css `
|
|
|
29
29
|
z-index: 1;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/* The drawer's paper edge is the border. The login card keeps the line above. */
|
|
33
|
+
:host(user-drawer) .inner {
|
|
34
|
+
border-bottom: 0;
|
|
35
|
+
border-radius: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
.content {
|
|
33
39
|
display: grid;
|
|
34
40
|
grid-gap: 20px;
|
|
@@ -100,9 +106,9 @@ export const animation = css `
|
|
|
100
106
|
|
|
101
107
|
`;
|
|
102
108
|
/* Drawer shell. Imported by user-drawer only.
|
|
103
|
-
No height or transform transition here. The
|
|
104
|
-
and only after a user change. max-height: 0 with no transition is
|
|
105
|
-
closed backstop, so the first paint cannot ease shut. */
|
|
109
|
+
No height or transform transition here. The sheet transform is the only
|
|
110
|
+
roll, and only after a user change. max-height: 0 with no transition is
|
|
111
|
+
the closed backstop, so the first paint cannot ease shut. */
|
|
106
112
|
export const drawerShell = css `
|
|
107
113
|
|
|
108
114
|
:host {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC;;;;yDAIyD;AAEzD,MAAM,CAAC,MAAM,SAAS,GAAe,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC;;;;yDAIyD;AAEzD,MAAM,CAAC,MAAM,SAAS,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGvC,CAAC;AAEF;;;+DAG+D;AAC/D,MAAM,CAAC,MAAM,WAAW,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;CAezC,CAAC;AAEF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,YAAY,GAAe,GAAG,CAAA;;;;;;CAM1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,SAoDzB,CAAC"}
|
|
@@ -21,12 +21,12 @@ export const drawerStyle = css `
|
|
|
21
21
|
z-index: 5;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.
|
|
24
|
+
.drawer-face > .spec > .wrapper {
|
|
25
25
|
margin: 20px 0 12px; /* Required - space under the header. Side gap is --pwa_inset on the form. */
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.userDrawer,
|
|
29
|
-
.
|
|
29
|
+
.drawer-face > .spec,
|
|
30
30
|
.wrapper,
|
|
31
31
|
.inner {
|
|
32
32
|
min-width: 0; /* Required - fit 320px */
|
|
@@ -41,6 +41,7 @@ export const drawerStyle = css `
|
|
|
41
41
|
right: 0; */
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
box-sizing: border-box;
|
|
44
|
+
align-content: start; /* Required - extra min-height stays below the face, not inside it */
|
|
44
45
|
height: auto;
|
|
45
46
|
border-bottom: var(--pwa_drawer_border, 0);
|
|
46
47
|
z-index: var(--pwa_drawer_z-index, 3);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDxC,CAAC"}
|
|
@@ -48,12 +48,20 @@ export declare class UserDrawer extends UserDrawer_base {
|
|
|
48
48
|
private sliding;
|
|
49
49
|
/** Arms the form-swap transition. False on the first paint. */
|
|
50
50
|
private motion;
|
|
51
|
-
/** Clip height. 0px is shut. auto is the resting open size. */
|
|
51
|
+
/** Clip height. 0px is shut. auto is the resting open size. It does not ease. */
|
|
52
52
|
private clipHeight;
|
|
53
|
+
/** Spare padding under an open sheet at rest, for the shadow. 0 while shut or rolling. */
|
|
54
|
+
private clipPad;
|
|
53
55
|
/** Sheet translate. -100% parks the sheet above the clip. */
|
|
54
56
|
private sheetShift;
|
|
55
|
-
/** True only while this drawer's clip and sheet are easing. */
|
|
57
|
+
/** True only while this drawer's clip and sheet are easing open or shut. */
|
|
56
58
|
private rollMotion;
|
|
59
|
+
/** True while an open sheet's bottom edge eases to a new height. The header stays put. */
|
|
60
|
+
private resizeMotion;
|
|
61
|
+
/** Face translate. The opposite of the sheet translate during a resize, so the header stays pinned. */
|
|
62
|
+
private faceShift;
|
|
63
|
+
/** A form switch that started while open/close was already rolling. */
|
|
64
|
+
private switchMidRoll;
|
|
57
65
|
private booted;
|
|
58
66
|
private wasOpen;
|
|
59
67
|
private sawOpen;
|
|
@@ -72,16 +80,22 @@ export declare class UserDrawer extends UserDrawer_base {
|
|
|
72
80
|
protected updated(changed: PropertyValues): void;
|
|
73
81
|
private clip;
|
|
74
82
|
private sheet;
|
|
83
|
+
private face;
|
|
75
84
|
private toggleButton;
|
|
76
85
|
private reduced;
|
|
77
86
|
private restShut;
|
|
78
87
|
private restOpen;
|
|
79
88
|
private clipStyle;
|
|
80
89
|
private sheetStyle;
|
|
90
|
+
private faceStyle;
|
|
91
|
+
private liveShift;
|
|
92
|
+
private shownPx;
|
|
81
93
|
private unroll;
|
|
82
94
|
private rollUp;
|
|
95
|
+
private contentPx;
|
|
83
96
|
private sheetPx;
|
|
84
97
|
private rollBetween;
|
|
98
|
+
private resizeBetween;
|
|
85
99
|
private onClipEnd;
|
|
86
100
|
private onKey;
|
|
87
101
|
private onLightClick;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAQ,KAAK,CAAC;AAM9E,OAAO,EAAS,QAAQ,EAAE,MAAO,gBAAgB,CAAC;AAwBlD,OAAO,6BAA6B,CAAC;AAErC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAQ,KAAK,CAAC;AAM9E,OAAO,EAAS,QAAQ,EAAE,MAAO,gBAAgB,CAAC;AAwBlD,OAAO,6BAA6B,CAAC;AAErC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;AAO3B,qBACa,UAAW,SAAQ,eAA0B;IAExD,gBAAgB;IACgC,GAAG,SAAM;IAEzD,mBAAmB;IAC8C,MAAM,UAAS;IAEjF,sBAAsB;IAC4C,SAAS,UAAS;IAEnF,wBAAwB;IACmD,UAAU,UAAS;IAErF,OAAO,CAAC,IAAI,CAAc;IAC1B,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,IAAI,CAAiB;IACtC,uFAAuF;I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O,CAAC,YAAY;IAMpB,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,QAAQ;IAchB,OAAO,CAAC,QAAQ;IAchB,OAAO,CAAC,SAAS;IAUjB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,SAAS;IAmBjB,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,MAAM;IAWd,OAAO,CAAC,MAAM;IAiBd,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,OAAO;IAmBf,OAAO,CAAC,WAAW;IAqCnB,OAAO,CAAC,aAAa;IAsCrB,OAAO,CAAC,SAAS,CAcf;IAGF,OAAO,CAAC,KAAK,CAyBX;IAGF,OAAO,CAAC,YAAY,CASlB;IAEF,SAAS,CAAC,YAAY;IA0BtB,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,cAAc;IAYtB,MAAM,KAAK,MAAM,IAAI,cAAc,CAgGhC;IAEH,SAAS,CAAC,MAAM;IA0GhB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,UAAU,CAiBhB;CAEH;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAC;KAC7B;CACF"}
|
|
@@ -36,6 +36,8 @@ import '../form/login.js';
|
|
|
36
36
|
import '../form/signup.js';
|
|
37
37
|
import { animation, drawerShell } from '../css/animation.js';
|
|
38
38
|
import { tapStyle } from '../css/tap.js';
|
|
39
|
+
/** Room under the sheet so its shadow is not clipped. The clip does not ease. */
|
|
40
|
+
const shadowRoom = 60;
|
|
39
41
|
let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
40
42
|
constructor() {
|
|
41
43
|
super();
|
|
@@ -64,12 +66,20 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
64
66
|
this.sliding = false;
|
|
65
67
|
/** Arms the form-swap transition. False on the first paint. */
|
|
66
68
|
this.motion = false;
|
|
67
|
-
/** Clip height. 0px is shut. auto is the resting open size. */
|
|
69
|
+
/** Clip height. 0px is shut. auto is the resting open size. It does not ease. */
|
|
68
70
|
this.clipHeight = '0px';
|
|
71
|
+
/** Spare padding under an open sheet at rest, for the shadow. 0 while shut or rolling. */
|
|
72
|
+
this.clipPad = '0px';
|
|
69
73
|
/** Sheet translate. -100% parks the sheet above the clip. */
|
|
70
74
|
this.sheetShift = 'translate3d(0, -100%, 0)';
|
|
71
|
-
/** True only while this drawer's clip and sheet are easing. */
|
|
75
|
+
/** True only while this drawer's clip and sheet are easing open or shut. */
|
|
72
76
|
this.rollMotion = false;
|
|
77
|
+
/** True while an open sheet's bottom edge eases to a new height. The header stays put. */
|
|
78
|
+
this.resizeMotion = false;
|
|
79
|
+
/** Face translate. The opposite of the sheet translate during a resize, so the header stays pinned. */
|
|
80
|
+
this.faceShift = 'none';
|
|
81
|
+
/** A form switch that started while open/close was already rolling. */
|
|
82
|
+
this.switchMidRoll = false;
|
|
73
83
|
this.booted = false;
|
|
74
84
|
this.wasOpen = false;
|
|
75
85
|
this.sawOpen = false;
|
|
@@ -78,23 +88,23 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
78
88
|
this.heldHeight = null;
|
|
79
89
|
this.columnWidth = 0;
|
|
80
90
|
this.columnObserver = null;
|
|
81
|
-
// Required - visibility
|
|
82
|
-
//
|
|
91
|
+
// Required - visibility drops when the sheet's transform finishes at 0.
|
|
92
|
+
// A form transition inside the sheet does not count.
|
|
83
93
|
this.onClipEnd = (event) => {
|
|
84
94
|
if (!(event instanceof TransitionEvent))
|
|
85
95
|
return;
|
|
86
96
|
if (event.target !== event.currentTarget)
|
|
87
97
|
return;
|
|
88
|
-
if (event.propertyName !== '
|
|
98
|
+
if (event.propertyName !== 'transform')
|
|
89
99
|
return;
|
|
90
|
-
const
|
|
91
|
-
if (!(
|
|
100
|
+
const sheet = event.currentTarget;
|
|
101
|
+
if (!(sheet instanceof HTMLElement))
|
|
92
102
|
return;
|
|
93
103
|
if (this.drawer) {
|
|
94
104
|
this.restOpen();
|
|
95
105
|
return;
|
|
96
106
|
}
|
|
97
|
-
if (
|
|
107
|
+
if (this.shownPx(sheet) > 1)
|
|
98
108
|
return;
|
|
99
109
|
this.sliding = false;
|
|
100
110
|
this.restShut();
|
|
@@ -221,7 +231,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
221
231
|
}
|
|
222
232
|
if (wasSigned && wasOpen) {
|
|
223
233
|
const sheet = this.sheet();
|
|
224
|
-
const measured = sheet ?
|
|
234
|
+
const measured = sheet ? sheet.getBoundingClientRect().height : 0;
|
|
225
235
|
if (measured > 1)
|
|
226
236
|
this.openSheetPx = measured;
|
|
227
237
|
this.holdSheet = true;
|
|
@@ -254,12 +264,16 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
254
264
|
this.motion = true;
|
|
255
265
|
if (changed.has('drawer') || !changed.has('signup') || !this.drawer)
|
|
256
266
|
return;
|
|
257
|
-
const
|
|
258
|
-
if (!
|
|
267
|
+
const sheet = this.sheet();
|
|
268
|
+
if (!sheet)
|
|
269
|
+
return;
|
|
270
|
+
this.switchMidRoll = this.rollMotion;
|
|
271
|
+
this.heldHeight = this.shownPx(sheet);
|
|
272
|
+
if (!this.switchMidRoll)
|
|
259
273
|
return;
|
|
260
|
-
this.heldHeight = Math.ceil(clip.getBoundingClientRect().height);
|
|
261
274
|
this.rollMotion = false;
|
|
262
|
-
this.
|
|
275
|
+
this.clipPad = '0px';
|
|
276
|
+
this.clipHeight = `${this.heldHeight + shadowRoom}px`;
|
|
263
277
|
this.sheetShift = 'translate3d(0, 0, 0)';
|
|
264
278
|
}
|
|
265
279
|
updated(changed) {
|
|
@@ -274,15 +288,19 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
274
288
|
}
|
|
275
289
|
else if (!boot && this.heldHeight != null && this.drawer) {
|
|
276
290
|
const from = this.heldHeight;
|
|
291
|
+
const midRoll = this.switchMidRoll;
|
|
277
292
|
this.heldHeight = null;
|
|
293
|
+
this.switchMidRoll = false;
|
|
278
294
|
const clip = this.clip();
|
|
279
295
|
const sheet = this.sheet();
|
|
280
296
|
if (clip && sheet) {
|
|
281
|
-
const to =
|
|
282
|
-
if (Math.abs(to - from)
|
|
297
|
+
const to = this.contentPx(sheet);
|
|
298
|
+
if (Math.abs(to - from) <= 1)
|
|
299
|
+
this.restOpen();
|
|
300
|
+
else if (midRoll)
|
|
283
301
|
this.rollBetween(clip, sheet, from, to, to);
|
|
284
302
|
else
|
|
285
|
-
this.
|
|
303
|
+
this.resizeBetween(clip, sheet, from, to);
|
|
286
304
|
}
|
|
287
305
|
}
|
|
288
306
|
if (boot)
|
|
@@ -306,6 +324,9 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
306
324
|
sheet() {
|
|
307
325
|
return this.shadowRoot?.querySelector('.userDrawer') ?? null;
|
|
308
326
|
}
|
|
327
|
+
face() {
|
|
328
|
+
return this.shadowRoot?.querySelector('.drawer-face') ?? null;
|
|
329
|
+
}
|
|
309
330
|
// Required - the account button, when nothing else had focus at open.
|
|
310
331
|
toggleButton() {
|
|
311
332
|
const icon = document.querySelector('user-icon');
|
|
@@ -315,39 +336,89 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
315
336
|
reduced() {
|
|
316
337
|
return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
317
338
|
}
|
|
318
|
-
// Required - closed, no transition. The
|
|
339
|
+
// Required - closed, no transition. The clip collapses so nothing below can be hit.
|
|
319
340
|
restShut() {
|
|
320
341
|
this.rollMotion = false;
|
|
342
|
+
this.resizeMotion = false;
|
|
321
343
|
this.clipHeight = '0px';
|
|
344
|
+
this.clipPad = '0px';
|
|
322
345
|
this.sheetShift = 'translate3d(0, -100%, 0)';
|
|
346
|
+
this.faceShift = 'none';
|
|
323
347
|
const sheet = this.sheet();
|
|
324
348
|
if (sheet)
|
|
325
349
|
sheet.style.minHeight = '';
|
|
350
|
+
const face = this.face();
|
|
351
|
+
if (face)
|
|
352
|
+
face.style.transform = '';
|
|
326
353
|
}
|
|
327
|
-
// Required - open at content size.
|
|
354
|
+
// Required - open at content size. Padding keeps the shadow. No transition.
|
|
328
355
|
restOpen() {
|
|
329
356
|
this.rollMotion = false;
|
|
357
|
+
this.resizeMotion = false;
|
|
330
358
|
this.clipHeight = 'auto';
|
|
359
|
+
this.clipPad = `${shadowRoom}px`;
|
|
331
360
|
this.sheetShift = 'none';
|
|
361
|
+
this.faceShift = 'none';
|
|
362
|
+
const sheet = this.sheet();
|
|
363
|
+
if (sheet)
|
|
364
|
+
sheet.style.minHeight = '';
|
|
365
|
+
const face = this.face();
|
|
366
|
+
if (face)
|
|
367
|
+
face.style.transform = '';
|
|
332
368
|
}
|
|
369
|
+
// The clip jumps. It never eases height or max-height. Only the sheet transforms.
|
|
333
370
|
clipStyle() {
|
|
334
|
-
const
|
|
371
|
+
const height = this.clipHeight;
|
|
335
372
|
return {
|
|
336
|
-
height
|
|
337
|
-
maxHeight:
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
: 'none',
|
|
373
|
+
height,
|
|
374
|
+
maxHeight: height === 'auto' ? 'none' : height,
|
|
375
|
+
paddingBottom: this.clipPad,
|
|
376
|
+
transition: 'none',
|
|
341
377
|
};
|
|
342
378
|
}
|
|
343
379
|
sheetStyle() {
|
|
344
|
-
const travel = this.rollMotion && !this.reduced();
|
|
380
|
+
const travel = (this.rollMotion || this.resizeMotion) && !this.reduced();
|
|
345
381
|
return {
|
|
346
382
|
transform: this.sheetShift,
|
|
347
383
|
transition: travel ? 'transform var(--pwa_slide, 2s) ease-in-out' : 'none',
|
|
348
384
|
};
|
|
349
385
|
}
|
|
350
|
-
|
|
386
|
+
faceStyle() {
|
|
387
|
+
const travel = this.resizeMotion && !this.reduced();
|
|
388
|
+
return {
|
|
389
|
+
transform: this.faceShift,
|
|
390
|
+
transition: travel ? 'transform var(--pwa_slide, 2s) ease-in-out' : 'none',
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
// How far the sheet is shifted right now. none is 0. A percent is of the sheet's own height.
|
|
394
|
+
liveShift(sheet) {
|
|
395
|
+
const raw = getComputedStyle(sheet).transform;
|
|
396
|
+
if (!raw || raw === 'none')
|
|
397
|
+
return 0;
|
|
398
|
+
const percent = raw.match(/translate3d\(\s*[^,]+,\s*(-?[\d.]+)%/);
|
|
399
|
+
if (percent)
|
|
400
|
+
return sheet.getBoundingClientRect().height * (parseFloat(percent[1]) / 100);
|
|
401
|
+
const px = raw.match(/translate3d\(\s*[^,]+,\s*(-?[\d.]+)px/);
|
|
402
|
+
if (px)
|
|
403
|
+
return parseFloat(px[1]);
|
|
404
|
+
if (!raw.includes('%')) {
|
|
405
|
+
try {
|
|
406
|
+
if (typeof DOMMatrixReadOnly === 'function')
|
|
407
|
+
return new DOMMatrixReadOnly(raw).m42;
|
|
408
|
+
}
|
|
409
|
+
catch { /* happy-dom rejects some transform strings */ }
|
|
410
|
+
}
|
|
411
|
+
const match = raw.match(/matrix(?:3d)?\(([^)]+)\)/);
|
|
412
|
+
if (!match)
|
|
413
|
+
return 0;
|
|
414
|
+
const parts = match[1].split(',').map((part) => parseFloat(part));
|
|
415
|
+
return raw.startsWith('matrix3d') ? parts[13] : parts[5];
|
|
416
|
+
}
|
|
417
|
+
// Visible window: sheet height plus its translate. Exact px, not rounded.
|
|
418
|
+
shownPx(sheet) {
|
|
419
|
+
return Math.max(0, sheet.getBoundingClientRect().height + this.liveShift(sheet));
|
|
420
|
+
}
|
|
421
|
+
// Required - the sheet is the only mover. Open from 0 is translate -H → 0.
|
|
351
422
|
unroll() {
|
|
352
423
|
const clip = this.clip();
|
|
353
424
|
const sheet = this.sheet();
|
|
@@ -356,7 +427,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
356
427
|
this.scrollTop = 0;
|
|
357
428
|
this.placeAnchor();
|
|
358
429
|
const target = this.sheetPx(clip, sheet);
|
|
359
|
-
const from =
|
|
430
|
+
const from = this.shownPx(sheet);
|
|
360
431
|
this.rollBetween(clip, sheet, from, target, target);
|
|
361
432
|
}
|
|
362
433
|
rollUp() {
|
|
@@ -365,8 +436,8 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
365
436
|
if (!clip || !sheet)
|
|
366
437
|
return;
|
|
367
438
|
this.placeAnchor();
|
|
368
|
-
let current =
|
|
369
|
-
let from =
|
|
439
|
+
let current = sheet.getBoundingClientRect().height;
|
|
440
|
+
let from = this.shownPx(sheet);
|
|
370
441
|
if (this.holdSheet && this.openSheetPx > 1) {
|
|
371
442
|
from = this.openSheetPx;
|
|
372
443
|
current = this.openSheetPx;
|
|
@@ -376,21 +447,33 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
376
447
|
if (this.reduced())
|
|
377
448
|
this.sliding = false;
|
|
378
449
|
}
|
|
450
|
+
// Content height. A resize min-height would report the taller box, so it is lifted for the read.
|
|
451
|
+
contentPx(sheet) {
|
|
452
|
+
const minHeight = sheet.style.minHeight;
|
|
453
|
+
sheet.style.minHeight = '';
|
|
454
|
+
const px = sheet.getBoundingClientRect().height;
|
|
455
|
+
sheet.style.minHeight = minHeight;
|
|
456
|
+
return px;
|
|
457
|
+
}
|
|
379
458
|
// Sheet height in px. The clip cap is released for the read and put back. No paint.
|
|
380
459
|
sheetPx(clip, sheet) {
|
|
381
460
|
const transition = clip.style.transition;
|
|
382
461
|
const maxHeight = clip.style.maxHeight;
|
|
383
462
|
const height = clip.style.height;
|
|
463
|
+
const pad = clip.style.paddingBottom;
|
|
384
464
|
clip.style.transition = 'none';
|
|
385
465
|
clip.style.maxHeight = 'none';
|
|
386
466
|
clip.style.height = 'auto';
|
|
387
|
-
|
|
467
|
+
clip.style.paddingBottom = '0px';
|
|
468
|
+
const px = this.contentPx(sheet);
|
|
388
469
|
clip.style.height = height;
|
|
389
470
|
clip.style.maxHeight = maxHeight;
|
|
471
|
+
clip.style.paddingBottom = pad;
|
|
390
472
|
clip.style.transition = transition;
|
|
391
473
|
return px;
|
|
392
474
|
}
|
|
393
|
-
//
|
|
475
|
+
// Set the clip to the taller end, plus shadow room, with no transition.
|
|
476
|
+
// Ease only the sheet. translateY = window − sheetHeight, so the bottom stays glued.
|
|
394
477
|
rollBetween(clip, sheet, from, to, sheetHeight) {
|
|
395
478
|
const start = from - sheetHeight;
|
|
396
479
|
const end = to - sheetHeight;
|
|
@@ -404,22 +487,65 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
404
487
|
this.restOpen();
|
|
405
488
|
return;
|
|
406
489
|
}
|
|
407
|
-
const
|
|
490
|
+
const room = Math.max(from, to) + shadowRoom;
|
|
408
491
|
const move = 'transform var(--pwa_slide, 2s) ease-in-out';
|
|
409
492
|
clip.style.transition = 'none';
|
|
410
493
|
sheet.style.transition = 'none';
|
|
411
|
-
clip.style.height = `${
|
|
412
|
-
clip.style.maxHeight = `${
|
|
494
|
+
clip.style.height = `${room}px`;
|
|
495
|
+
clip.style.maxHeight = `${room}px`;
|
|
496
|
+
clip.style.paddingBottom = '0px';
|
|
413
497
|
sheet.style.transform = shift(start);
|
|
414
|
-
void
|
|
415
|
-
clip.style.transition = travel;
|
|
498
|
+
void sheet.offsetHeight;
|
|
416
499
|
sheet.style.transition = move;
|
|
417
|
-
clip.style.height = `${Math.max(0, to)}px`;
|
|
418
|
-
clip.style.maxHeight = `${Math.max(0, to)}px`;
|
|
419
500
|
sheet.style.transform = shift(end);
|
|
420
501
|
this.rollMotion = true;
|
|
421
|
-
this.
|
|
502
|
+
this.resizeMotion = false;
|
|
503
|
+
this.clipHeight = `${room}px`;
|
|
504
|
+
this.clipPad = '0px';
|
|
422
505
|
this.sheetShift = shift(end);
|
|
506
|
+
this.faceShift = 'none';
|
|
507
|
+
const face = this.face();
|
|
508
|
+
if (face) {
|
|
509
|
+
face.style.transition = 'none';
|
|
510
|
+
face.style.transform = 'none';
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
// Top stays pinned. The sheet's bottom edge travels old → new. The face moves
|
|
514
|
+
// the other way by the same amount, on the same clock, so the header does not jump.
|
|
515
|
+
resizeBetween(clip, sheet, from, to) {
|
|
516
|
+
const face = this.face();
|
|
517
|
+
if (!face) {
|
|
518
|
+
this.rollBetween(clip, sheet, from, to, to);
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
const top = Math.max(from, to);
|
|
522
|
+
const shift = (px) => `translate3d(0, ${px}px, 0)`;
|
|
523
|
+
if (this.reduced() || Math.abs(to - from) <= 1) {
|
|
524
|
+
this.restOpen();
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
const room = top + shadowRoom;
|
|
528
|
+
const move = 'transform var(--pwa_slide, 2s) ease-in-out';
|
|
529
|
+
clip.style.transition = 'none';
|
|
530
|
+
sheet.style.transition = 'none';
|
|
531
|
+
face.style.transition = 'none';
|
|
532
|
+
clip.style.height = `${room}px`;
|
|
533
|
+
clip.style.maxHeight = `${room}px`;
|
|
534
|
+
clip.style.paddingBottom = '0px';
|
|
535
|
+
sheet.style.minHeight = `${top}px`;
|
|
536
|
+
sheet.style.transform = shift(from - top);
|
|
537
|
+
face.style.transform = shift(top - from);
|
|
538
|
+
void sheet.offsetHeight;
|
|
539
|
+
sheet.style.transition = move;
|
|
540
|
+
face.style.transition = move;
|
|
541
|
+
sheet.style.transform = shift(to - top);
|
|
542
|
+
face.style.transform = shift(top - to);
|
|
543
|
+
this.rollMotion = false;
|
|
544
|
+
this.resizeMotion = true;
|
|
545
|
+
this.clipHeight = `${room}px`;
|
|
546
|
+
this.clipPad = '0px';
|
|
547
|
+
this.sheetShift = shift(to - top);
|
|
548
|
+
this.faceShift = shift(top - to);
|
|
423
549
|
}
|
|
424
550
|
firstUpdated() {
|
|
425
551
|
this.shadowRoot.querySelector('.close').addEventListener('click', () => {
|
|
@@ -484,17 +610,21 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
484
610
|
this.columnObserver.observe(prev);
|
|
485
611
|
this.placeAnchor();
|
|
486
612
|
}
|
|
487
|
-
// Required -
|
|
613
|
+
// Required - a reflow while open eases the bottom edge. A reflow mid open/close keeps that roll.
|
|
488
614
|
onColumnResize() {
|
|
489
|
-
if (!this.rollMotion)
|
|
490
|
-
return;
|
|
491
615
|
const clip = this.clip();
|
|
492
616
|
const sheet = this.sheet();
|
|
493
617
|
if (!clip || !sheet)
|
|
494
618
|
return;
|
|
495
|
-
|
|
619
|
+
if (!this.drawer && !this.rollMotion)
|
|
620
|
+
return;
|
|
621
|
+
const from = this.shownPx(sheet);
|
|
496
622
|
const sheetH = this.sheetPx(clip, sheet);
|
|
497
|
-
|
|
623
|
+
const to = this.drawer ? sheetH : 0;
|
|
624
|
+
if (this.rollMotion || !this.drawer)
|
|
625
|
+
this.rollBetween(clip, sheet, from, to, sheetH);
|
|
626
|
+
else if (Math.abs(to - from) > 1)
|
|
627
|
+
this.resizeBetween(clip, sheet, from, to);
|
|
498
628
|
}
|
|
499
629
|
static get styles() {
|
|
500
630
|
return [
|
|
@@ -519,14 +649,24 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
519
649
|
right: 0;
|
|
520
650
|
overflow: hidden;
|
|
521
651
|
min-height: 0;
|
|
652
|
+
box-sizing: border-box;
|
|
522
653
|
z-index: var(--pwa_drawer_z-index, 5);
|
|
523
|
-
|
|
524
|
-
box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16);
|
|
654
|
+
pointer-events: none; /* Required - the shadow room must not catch clicks */
|
|
525
655
|
}
|
|
526
656
|
|
|
527
657
|
.drawer-clip > .userDrawer {
|
|
528
658
|
height: auto;
|
|
529
659
|
align-self: start;
|
|
660
|
+
pointer-events: auto;
|
|
661
|
+
border-radius: var(--pwa_drawer_border-radius, 0 0 18px 18px);
|
|
662
|
+
box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.drawer-face {
|
|
666
|
+
display: block;
|
|
667
|
+
width: 100%;
|
|
668
|
+
min-width: 0;
|
|
669
|
+
max-width: 100%;
|
|
530
670
|
}
|
|
531
671
|
|
|
532
672
|
.exit > h2 {
|
|
@@ -594,10 +734,9 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
594
734
|
<!-- Clip. The first render binds shut, with no transition. -->
|
|
595
735
|
<div
|
|
596
736
|
class="drawer-clip"
|
|
597
|
-
style=${styleMap(this.clipStyle())}
|
|
598
|
-
@transitionend=${this.onClipEnd}>
|
|
737
|
+
style=${styleMap(this.clipStyle())}>
|
|
599
738
|
|
|
600
|
-
<!-- Drawer Wrapper. Its translate is
|
|
739
|
+
<!-- Drawer Wrapper. Its translate is the only roll. -->
|
|
601
740
|
<section
|
|
602
741
|
part="panel"
|
|
603
742
|
role="dialog"
|
|
@@ -606,7 +745,10 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
606
745
|
aria-hidden="${this.drawer ? 'false' : 'true'}"
|
|
607
746
|
?inert="${!this.drawer}"
|
|
608
747
|
class="userDrawer"
|
|
609
|
-
style=${styleMap(this.sheetStyle())}
|
|
748
|
+
style=${styleMap(this.sheetStyle())}
|
|
749
|
+
@transitionend=${this.onClipEnd}>
|
|
750
|
+
|
|
751
|
+
<div class="drawer-face" style=${styleMap(this.faceStyle())}>
|
|
610
752
|
|
|
611
753
|
<!-- Exit Button -->
|
|
612
754
|
<div class="exit" part="header">
|
|
@@ -681,6 +823,8 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
681
823
|
|
|
682
824
|
</div>
|
|
683
825
|
|
|
826
|
+
</div>
|
|
827
|
+
|
|
684
828
|
</section>
|
|
685
829
|
</div>
|
|
686
830
|
|
|
@@ -754,6 +898,10 @@ __decorate([
|
|
|
754
898
|
state(),
|
|
755
899
|
__metadata("design:type", Object)
|
|
756
900
|
], UserDrawer.prototype, "clipHeight", void 0);
|
|
901
|
+
__decorate([
|
|
902
|
+
state(),
|
|
903
|
+
__metadata("design:type", Object)
|
|
904
|
+
], UserDrawer.prototype, "clipPad", void 0);
|
|
757
905
|
__decorate([
|
|
758
906
|
state(),
|
|
759
907
|
__metadata("design:type", Object)
|
|
@@ -762,6 +910,14 @@ __decorate([
|
|
|
762
910
|
state(),
|
|
763
911
|
__metadata("design:type", Object)
|
|
764
912
|
], UserDrawer.prototype, "rollMotion", void 0);
|
|
913
|
+
__decorate([
|
|
914
|
+
state(),
|
|
915
|
+
__metadata("design:type", Object)
|
|
916
|
+
], UserDrawer.prototype, "resizeMotion", void 0);
|
|
917
|
+
__decorate([
|
|
918
|
+
state(),
|
|
919
|
+
__metadata("design:type", Object)
|
|
920
|
+
], UserDrawer.prototype, "faceShift", void 0);
|
|
765
921
|
UserDrawer = __decorate([
|
|
766
922
|
customElement('user-drawer'),
|
|
767
923
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../typescript/webcomponents/drawer/drawer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAkB,IAAI,EAAE,UAAU,EAAkB,MAAQ,KAAK,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAU,mBAAmB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAgC,6BAA6B,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAgC,6BAA6B,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAiC,8BAA8B,CAAC;AAElF,OAAO,EAAE,KAAK,EAAY,MAAO,gBAAgB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAiB,eAAe,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAkB,kBAAkB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAa,q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gBE"}
|
package/docs/drawer-slide.md
CHANGED
|
@@ -4,7 +4,7 @@ The drawer unrolls downward from wherever the tag sits, and its buttons ride the
|
|
|
4
4
|
|
|
5
5
|
The controls sit on the host edge. `--pwa_inset` defaults to `0`. `--pwa_max_width` defaults to `400px`: the form column fills a narrow host, then centers at that cap. Signed-in drawer links use that same column. The drawer header stays full width. The host is `display: block`, `width: 100%`, `min-width: 0`, so it follows a flex or grid track. A page sets either variable on `user-drawer`, `user-login`, `user-settings`, and `email-reset`. Do not set `--pwa_max_width` on `:host` inside the component; that would beat the page.
|
|
6
6
|
|
|
7
|
-
The form swap is a transform inside `.inner`. The drawer rolls
|
|
7
|
+
The form swap is a transform inside `.inner`. The drawer rolls on one mover: `.drawer-clip` is set, with no transition, to the taller of the two window heights plus 60px for the shadow, and only `section.userDrawer` eases `transform` on `--pwa_slide` (`2s`, `ease-in-out`). The page login and the settings tabs still ease their own clip height and sheet transform, each inside its own file. There is no shared roll module.
|
|
8
8
|
|
|
9
9
|
## How the form swap works
|
|
10
10
|
|
|
@@ -48,13 +48,15 @@ These do not run the form swap:
|
|
|
48
48
|
|
|
49
49
|
What you see: the drawer's bottom edge moves down on open and up on close. The last control stays on that edge, like the roller of a scroll. The title and the top of the form come into view from above the clip, and leave the same way. The page heading does not move.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
The drawer has one clock. The clip is a window. The sheet is what moves.
|
|
52
52
|
|
|
53
53
|
```
|
|
54
|
-
clip .drawer-clip overflow hidden, height
|
|
55
|
-
sheet section.userDrawer translateY eases, holds header
|
|
54
|
+
clip .drawer-clip overflow hidden, height set with no transition
|
|
55
|
+
sheet section.userDrawer translateY eases, holds header, forms, shadow, and radius
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
Easing `height` on the main thread and `transform` on the compositor with the same duration still drifts. On a slow CPU the gap under `.inner`'s border moves. The clip no longer transitions `height` or `max-height`. `rollBetween` writes the clip height immediately: `max(from, to) + 60px`. That 60px is room for `box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16)`. The clip is `pointer-events: none`, and the sheet is `pointer-events: auto`, so the spare area does not catch clicks under the drawer. The shadow and the `18px` bottom radius sit on `section.userDrawer`, so the edge you see is the sheet. The sheet's height is the measured float. It is not rounded up.
|
|
59
|
+
|
|
58
60
|
`.wrapper` starts under the header. Rolling only `.inner` would leave the title stuck while the form rode the edge. The sheet is the whole `section.userDrawer`.
|
|
59
61
|
|
|
60
62
|
The same picture, with different elements, lives in the other two components. Nothing is shared.
|
|
@@ -69,7 +71,7 @@ The same picture, with different elements, lives in the other two components. No
|
|
|
69
71
|
|
|
70
72
|
### No shared roll
|
|
71
73
|
|
|
72
|
-
`typescript/webcomponents/css/roll.ts` is gone. Each component keeps its own `rollBetween`, its own clip and sheet class names, and its own `transitionend` listener.
|
|
74
|
+
`typescript/webcomponents/css/roll.ts` is gone. Each component keeps its own `rollBetween`, its own clip and sheet class names, and its own `transitionend` listener. On the drawer the listener is on `section.userDrawer` and it waits for `transform`. It ignores any event whose target is not that sheet, so a form transform inside it cannot finish the roll early. Login and settings still listen on their own clips.
|
|
73
75
|
|
|
74
76
|
A shared `.roll` class, a shared `:host { transition: height, max-height }`, or one helper that wrote those inline styles was enough to ease a component that had not been asked to move. The drawer shell no longer transitions `height`, `max-height`, or `transform`. `drawerShell` only holds the closed backstop: `max-height: 0`, `visibility: hidden`, `pointer-events: none`, with no transition. `sliding` lifts that backstop. The motion itself is the style binding below.
|
|
75
77
|
|
|
@@ -87,31 +89,35 @@ That paint is static. `motion` is reflected only after it, and the roll's `trans
|
|
|
87
89
|
|
|
88
90
|
`rollBetween` then eases. It locks the start px with `transition: none`, reads `offsetHeight` so the next change has a from-value, and writes the end px with `transition` set to `var(--pwa_slide, 2s) ease-in-out`. `height` and `max-height` are the same px, because `max-height` only caps and cannot hold a shorter sheet open.
|
|
89
91
|
|
|
90
|
-
###
|
|
92
|
+
### One mover at progress p
|
|
91
93
|
|
|
92
|
-
`p` runs 0 → 1 with `ease-in-out`. `H` is the sheet's height in px.
|
|
94
|
+
`p` runs 0 → 1 with `ease-in-out`. `H` is the sheet's exact height in px. The clip does not take `p`. For an open from 0 it is set to `H + 60` before the first animated frame. The sheet then eases:
|
|
93
95
|
|
|
94
|
-
- clip height = `p * H`
|
|
95
96
|
- sheet `translateY` = `(p - 1) * H` (start `-H`, which is `-100%`, end `0`)
|
|
96
|
-
-
|
|
97
|
+
- the visible bottom is the sheet's bottom, shadow included
|
|
98
|
+
- `.inner`'s border stays 12px above that edge, because both live on the sheet
|
|
97
99
|
|
|
98
|
-
Close swaps the ends: translateY runs `0` → `-H
|
|
100
|
+
Close swaps the ends: the clip stays at `H + 60` while translateY runs `0` → `-H`. When that transform ends, the clip drops to `0` and the padding drops to `0`, so the shut drawer takes no clicks and shows nothing.
|
|
99
101
|
|
|
100
|
-
A height change that does not start at 0 (a taller
|
|
102
|
+
A height change that does not start at 0 (a taller or shorter form) uses the sheet's real height `S` and window ends `A` → `B`:
|
|
101
103
|
|
|
102
|
-
- clip = `A +
|
|
103
|
-
- translateY =
|
|
104
|
+
- clip height = `max(A, B) + 60`, set at the start, no transition
|
|
105
|
+
- translateY = window − S
|
|
104
106
|
- start `A - S`, end `B - S`
|
|
105
107
|
|
|
106
|
-
When the new sheet is the thing on screen, `S = B`, so it finishes at `translateY: 0` and starts at `A - B`.
|
|
108
|
+
When the new sheet is the thing on screen, `S = B`, so it finishes at `translateY: 0` and starts at `A - B`. Open from 0 is the `-100%` case of the same formula. The resting closed sheet stays at `-100%` so boot does not have to measure. After the transform ends, an open drawer returns to `height: auto` and `padding-bottom: 60px` so a later reflow is not stuck and the shadow still has room.
|
|
109
|
+
|
|
110
|
+
A login ↔ sign-up switch while the drawer is already open does not use that bottom-anchored roll. `resizeBetween` holds the sheet's `min-height` at `max(old, new)` and translates the sheet from `old - max` to `new - max`, so the rounded shadowed edge travels and the sheet's top stays above the clip. `.drawer-face`, the one wrapper around the header and the forms, translates by the exact opposite (`max - old` to `max - new`) on the same `--pwa_slide` and the same frame. The two offsets cancel, so the header stays pinned under the page header and only the bottom edge moves. The clip is `max + 60px` for the shadow. When that sheet `transform` ends, both translates and the min-height clear. That resting state matches the end of the ease, so it does not jump. A switch during an open or close still uses `rollBetween`. A column reflow uses the same choice. `prefers-reduced-motion` snaps. The drawer's `.inner` has no bottom border; the paper edge is the border. The login card keeps its line.
|
|
111
|
+
|
|
112
|
+
Login and settings still ease clip height and the sheet together. Their `p` still moves both. The drawer does not.
|
|
107
113
|
|
|
108
114
|
### Why the px value has to be measured
|
|
109
115
|
|
|
110
|
-
`max-height` only eases between two lengths, and it only caps. It cannot hold a box open taller than its content, so a shrink would drop the bottom immediately.
|
|
116
|
+
`max-height` only eases between two lengths, and it only caps. It cannot hold a box open taller than its content, so a shrink would drop the bottom immediately. Login and settings still set `height` and `max-height` to the same px value. The drawer does not ease either one. `none` and `auto` have no midpoint, so they snap. A cap of `100dvh` or `9999px` does ease, but the timing function is spread across that whole range. A 480px drawer inside a 1000px range is fully open at 48% of the time, and the named ease is not what you see. The open path reads the sheet once with the clip cap released (no paint) and keeps that exact float. Rounding it up leaves a seam under the sheet. After the sheet's `transform` `transitionend`, the drawer binding goes back to `height: auto` and `max-height: none`, with padding for the shadow. The next close, or the next height change, measures again.
|
|
111
117
|
|
|
112
118
|
### Visibility, inert, reduced motion
|
|
113
119
|
|
|
114
|
-
`sliding` turns on in the same turn as the open. `visibility` and `pointer-events` come on with it, and `inert` comes off. It turns off only when
|
|
120
|
+
`sliding` turns on in the same turn as the open. `visibility` and `pointer-events` come on with it, and `inert` comes off. It turns off only when `section.userDrawer` fires `transform` `transitionend` and the sheet is parked (`height + translateY` is under 2px). A bubbled transform from a form does not qualify (`event.target` must be the sheet). That is the close, not a second timer. `prefers-reduced-motion: reduce` sets `--pwa_slide` to `0s` on that host, and `rollBetween` snaps to the end state with `transition: none` and does not wait for `transitionend`.
|
|
115
121
|
|
|
116
122
|
Signing out while the drawer is open does not swap in the login form until that clip has reached 0. The close measures the account menu, so `translateY` starts at 0 and the menu rolls up. The login form is what the next open shows. The same end step runs when reduced motion snaps the clip shut. Returning focus uses `preventScroll`, so the page does not jump. `placeAnchor()` runs again before the close. The host is `position: relative` and the clip is `absolute` at the top of the host. A page grid should give `user-drawer` the row between the header and the content, so that anchor does not have to pull the tag up with a large `top`.
|
|
117
123
|
|
|
@@ -131,8 +137,8 @@ Copy the roll into that component. Do not import a shared helper, and do not reu
|
|
|
131
137
|
|
|
132
138
|
1. Put `--pwa_slide: 2s` on that component's `:host`, and `0s` inside `prefers-reduced-motion`. Give the clip a class that exists only in this file. `display: block`, `overflow: hidden`.
|
|
133
139
|
2. Bind the clip and the sheet with `styleMap`. The first render is the resting state and `transition: none`.
|
|
134
|
-
3. On a user change after that first update, remember the
|
|
135
|
-
4. On
|
|
140
|
+
3. On a user change after that first update, remember the window, render the new sheet, measure its height, and run this component's own from/to ease. `translateY` is window minus sheet height. The drawer sets the clip height up front and eases only the transform. Login and settings still ease `height` and `max-height` to that same px.
|
|
141
|
+
4. On the drawer's sheet `transform` `transitionend`, and only when `event.target` is the sheet, set the open binding back to `auto` with shadow padding, or collapse a closed clip to `0`. Login and settings still do this from their clip's `max-height` `transitionend`.
|
|
136
142
|
5. Do not put a height transition on `:host` in a stylesheet other components import. Do not translate a sheet that leaves out an element that should ride the edge.
|
|
137
143
|
|
|
138
144
|
### Files
|
|
@@ -177,7 +183,7 @@ On the way open, the panel appears to finish early, and the named ease is not th
|
|
|
177
183
|
|
|
178
184
|
### What the drawer open and close uses
|
|
179
185
|
|
|
180
|
-
The drawer
|
|
186
|
+
The drawer's clip binding always sets `transition: none`. It never eases `height` or `max-height`. The sheet's `transform` eases with `var(--pwa_slide, 2s) ease-in-out` only while that roll is running. At rest the sheet transition is `none`. `drawerShell` does not ease `:host`. After the open (and after a form-swap glide) the clip binding becomes `height: auto`, `max-height: none`, and `padding-bottom: 60px`. A closed rest is `height: 0` and `padding-bottom: 0`. The timings table in [Slides](sliders.md) lists the one duration. Login and settings still ease their clip height on that same duration.
|
|
181
187
|
|
|
182
188
|
## Pitfalls
|
|
183
189
|
|
|
@@ -187,11 +193,11 @@ The drawer clip's bound `height` and `max-height`, and the sheet's bound `transf
|
|
|
187
193
|
- Do not fake the form swap with a large `max-height`. The visible motion will be shorter than the duration, and the ease will look wrong.
|
|
188
194
|
- The visibility delay on `.content` must be `var(--pwa_slide)`, not a different literal. Shorter, and the leaving form vanishes mid-slide. Longer, and it stays painted after it is off screen. The visibility duration stays `0s`. It snaps. It does not fade.
|
|
189
195
|
- `.opened` must set its own transition with a `0s` visibility delay. If it inherits the close delay, the arriving form is invisible for the whole slide.
|
|
190
|
-
- Do not give `.spec`, `.inner`, or `.wrapper` their own height or transform duration. The drawer's clip is `.drawer-clip`. The roller is `.userDrawer`. A second clock drifts. The header is outside `.wrapper`, so rolling only `.inner` leaves the header behind.
|
|
191
|
-
- Do not animate `max-height
|
|
196
|
+
- Do not give `.spec`, `.inner`, or `.wrapper` their own height or transform duration. The drawer's clip is `.drawer-clip`. The roller is `.userDrawer`. A second clock drifts. The header is outside `.wrapper`, so rolling only `.inner` leaves the header behind. Do not ease the clip's `height` next to the sheet's `transform`. That pair is the drift.
|
|
197
|
+
- Do not animate the drawer's `max-height`. Measure the sheet in exact px, set the clip to the taller window plus the shadow room, and ease only the transform. Set `auto` only after the sheet's own `transform` `transitionend`.
|
|
192
198
|
- Do not share the roll. A `:host` height transition, or a class name used by more than one component, eases something that should have stayed still. One component's `transitionend` must not call another component's release.
|
|
193
199
|
- The first render binds the resting state with `transition: none`. Turning the transition on in that same first paint, or writing the closed px after an open first frame, is the open-then-shut flicker.
|
|
194
|
-
- `sliding` has to stay up until the close
|
|
200
|
+
- `sliding` has to stay up until the close transform parks the sheet. Clearing it when `drawer` flips hides the roll-up. The host backstop is `max-height: 0` with no transition, so it cannot play that flicker by itself. The clip itself must still be set back to `0` at the end.
|
|
195
201
|
- Focusing a control inside the unrolling box scrolls it. `.focus({ preventScroll: true })` keeps the header at the top edge. Reset `scrollTop` when the open starts.
|
|
196
202
|
- Reduced motion has to set `--pwa_slide: 0s`. Zeroing only `transition-duration` leaves a delay that still uses the variable.
|
|
197
203
|
- A more specific `.userDrawer .content.closed` rule is how `f607737` broke the drawer while the shared rule still looked right.
|
|
@@ -201,7 +207,7 @@ The drawer clip's bound `height` and `max-height`, and the sheet's bound `transf
|
|
|
201
207
|
|
|
202
208
|
## Changing the duration
|
|
203
209
|
|
|
204
|
-
Change `--pwa_slide` on the component you are timing. The drawer's and the page login's variable is on `:host` in `animation.ts`. Settings sets its own on `:host` in `settings.ts`. That component's roll, its form-swap height glide, its form transform, and its form visibility delay read that variable. `sliding` ends on the
|
|
210
|
+
Change `--pwa_slide` on the component you are timing. The drawer's and the page login's variable is on `:host` in `animation.ts`. Settings sets its own on `:host` in `settings.ts`. That component's roll, its form-swap height glide, its form transform, and its form visibility delay read that variable. On the drawer, `sliding` ends on the sheet's `transform` `transitionend`, so it follows whatever that time is. Leave the visibility duration at `0s`, and leave `.motion .opened` at `visibility 0s linear 0s`. Do not hardcode a second duration in `rollBetween`.
|
|
205
211
|
|
|
206
212
|
Update the `2s` figures in `docs/sliders.md` and in this file. Rebuild so `base/webcomponents/` matches `typescript/`, then `source/pwa-auth.js` and `website/javascript/pwa-auth.js`.
|
|
207
213
|
|
package/docs/sliders.md
CHANGED
|
@@ -6,11 +6,11 @@ Three components slide, and each one owns its roll. `user-drawer` (`typescript/w
|
|
|
6
6
|
|
|
7
7
|
`animation.ts` is the form swap only: `--pwa_slide`, `.opened` / `.closed`, and the drawer shell's closed backstop. Settings does not import it. The full roll write-up is [The roll](drawer-slide.md#the-roll).
|
|
8
8
|
|
|
9
|
-
The fields are flush with the element. Spacing belongs to the page: `--pwa_inset` defaults to `0`. The form column fills a narrow host and, once the host is wider than `--pwa_max_width` (`400px`), stays that wide and centers. The page login column centers under the full-width heading. Signed-in drawer links use that same column. Set either variable on `user-drawer`, `user-login`, `user-settings`, or `email-reset`. The drawer header and the settings tabs stay full width. Each host is `display: block` with `width: 100%` and `min-width: 0` (`user-icon` is `width: fit-content`, `max-width: 100%`). A resize while a roll is in motion remeasures that component and eases from the current
|
|
9
|
+
The fields are flush with the element. Spacing belongs to the page: `--pwa_inset` defaults to `0`. The form column fills a narrow host and, once the host is wider than `--pwa_max_width` (`400px`), stays that wide and centers. The page login column centers under the full-width heading. Signed-in drawer links use that same column. Set either variable on `user-drawer`, `user-login`, `user-settings`, or `email-reset`. The drawer header and the settings tabs stay full width. Each host is `display: block` with `width: 100%` and `min-width: 0` (`user-icon` is `width: fit-content`, `max-width: 100%`). A resize while a roll is in motion remeasures that component and eases from the current window with the sheet bottom still on that edge. The drawer eases only the sheet transform. Login and settings still ease their clip height too.
|
|
10
10
|
|
|
11
11
|
Two motions, one duration, per component.
|
|
12
12
|
|
|
13
|
-
- The drawer rolls. `.drawer-clip`
|
|
13
|
+
- The drawer rolls. `.drawer-clip` is set, with no transition, to the measured window plus room for the shadow. `section.userDrawer` is the only thing that eases, so its border and its shadowed edge stay a fixed gap apart.
|
|
14
14
|
- Closed forms share one grid cell. Class `closed` is `position: absolute` and translates `translate3d(0, -100%, 0)`. Once `.inner` has class `motion`, `visibility` waits out `--pwa_slide`, then hides. Settings panels do not use these classes.
|
|
15
15
|
|
|
16
16
|
## How it works
|
|
@@ -39,8 +39,8 @@ On the drawer, inside `.userDrawer`:
|
|
|
39
39
|
|
|
40
40
|
| Piece | Element | What moves |
|
|
41
41
|
|---|---|---|
|
|
42
|
-
| Drawer clip | `.drawer-clip` |
|
|
43
|
-
| Drawer sheet | `section.userDrawer` |
|
|
42
|
+
| Drawer clip | `.drawer-clip` | set to the window plus shadow room, no transition |
|
|
43
|
+
| Drawer sheet | `section.userDrawer` | `translateY` on this host's `--pwa_slide` |
|
|
44
44
|
| Drawer and page forms | `.content` with `opened` / `closed` | `transform` `--pwa_slide` after `motion`, then `visibility` |
|
|
45
45
|
| Settings panels | `.settings-clip` / `.settings-sheet` | that component's own roll |
|
|
46
46
|
| Page login card | `.login-clip` / `section.service` | that component's own roll, on `registerTwo` |
|
|
@@ -49,7 +49,7 @@ Page login uses `spec` / `wrapper` / `inner` / `content` for the form swap, and
|
|
|
49
49
|
|
|
50
50
|
## Triggers
|
|
51
51
|
|
|
52
|
-
- Attribute `drawer` on `user-drawer`, after the first update, rolls `.
|
|
52
|
+
- Attribute `drawer` on `user-drawer`, after the first update, rolls `section.userDrawer`. Attribute `sliding` holds `visibility`, `pointer-events`, and `inert` until that sheet's `transform` `transitionend`. The `[drawer]` attribute does not set a transform. The clip height is not eased.
|
|
53
53
|
- Class `motion` on `.inner` arms `.content` transitions. It is absent on the first paint. The drawer and the page login each set their own.
|
|
54
54
|
- Classes `opened` and `closed` on `.content`, bound with `classMap`. Drawer forms follow `registerOne`. Page forms follow `registerTwo`. Settings panels follow the tab by rolling `.settings-clip`, not by those classes.
|
|
55
55
|
- Attribute `on` on `.spec` is `display`. It is not a slide.
|
|
@@ -60,9 +60,9 @@ Page login uses `spec` / `wrapper` / `inner` / `content` for the form swap, and
|
|
|
60
60
|
|
|
61
61
|
| Piece | Duration | Easing |
|
|
62
62
|
|---|---|---|
|
|
63
|
-
|
|
|
63
|
+
| Drawer sheet transform. Login and settings clip `height` / `max-height` and sheet transform | `--pwa_slide` (`2s`) | `ease-in-out` |
|
|
64
64
|
| Form-swap height glide | `--pwa_slide` (`2s`) | `ease-in-out` |
|
|
65
|
-
| `sliding` drop (`visibility`, `pointer-events`, `inert`) | on the
|
|
65
|
+
| `sliding` drop (`visibility`, `pointer-events`, `inert`) | on the drawer's sheet `transform` `transitionend` | n/a |
|
|
66
66
|
| `.content` transform, after `motion` | `--pwa_slide` (`2s`) | `ease-in-out` |
|
|
67
67
|
| `.content` visibility delay when closing | `--pwa_slide` (`2s`) | `linear` |
|
|
68
68
|
|
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.8.
|
|
9
|
+
"version": "3.8.3",
|
|
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": {
|
package/source/pwa-auth.js
CHANGED
|
@@ -29,6 +29,12 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
29
29
|
z-index: 1;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/* The drawer's paper edge is the border. The login card keeps the line above. */
|
|
33
|
+
:host(user-drawer) .inner {
|
|
34
|
+
border-bottom: 0;
|
|
35
|
+
border-radius: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
.content {
|
|
33
39
|
display: grid;
|
|
34
40
|
grid-gap: 20px;
|
|
@@ -846,12 +852,12 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
846
852
|
z-index: 5;
|
|
847
853
|
}
|
|
848
854
|
|
|
849
|
-
.
|
|
855
|
+
.drawer-face > .spec > .wrapper {
|
|
850
856
|
margin: 20px 0 12px; /* Required - space under the header. Side gap is --pwa_inset on the form. */
|
|
851
857
|
}
|
|
852
858
|
|
|
853
859
|
.userDrawer,
|
|
854
|
-
.
|
|
860
|
+
.drawer-face > .spec,
|
|
855
861
|
.wrapper,
|
|
856
862
|
.inner {
|
|
857
863
|
min-width: 0; /* Required - fit 320px */
|
|
@@ -866,6 +872,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
866
872
|
right: 0; */
|
|
867
873
|
overflow: hidden;
|
|
868
874
|
box-sizing: border-box;
|
|
875
|
+
align-content: start; /* Required - extra min-height stays below the face, not inside it */
|
|
869
876
|
height: auto;
|
|
870
877
|
border-bottom: var(--pwa_drawer_border, 0);
|
|
871
878
|
z-index: var(--pwa_drawer_z-index, 3);
|
|
@@ -1178,7 +1185,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1178
1185
|
</form>
|
|
1179
1186
|
|
|
1180
1187
|
</div>
|
|
1181
|
-
`}showSent(){this.tone="",this.status="Check your inbox for the verification email.",this.cooldown=45,this.armCooldown(),this.updateComplete.then(()=>{this.focusStatus()})}showFirebase(t){this.tone="error",this.status=HE(t),this.updateComplete.then(()=>{this.focusStatus()})}focusStatus(){const t=this.renderRoot.querySelector("#pwa-verify-status");t?.focus()}clearWait(){window.clearInterval(this.timer),this.timer=0,this.cooldown=0}armCooldown(){window.clearInterval(this.timer),this.timer=window.setInterval(()=>{if(this.cooldown<=1)return this.cooldown=0,window.clearInterval(this.timer),void(this.timer=0);this.cooldown-=1},1e3)}}ob([ut(),ab("design:type",Object)],Bb.prototype,"login",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"verified",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"email",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"status",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"tone",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"busy",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"cooldown",void 0),customElements.define("email-verify",Bb);var cb=function(t,e,n,s){var r,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i<3?r(o):i>3?r(e,n,o):r(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o},lb=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ub=class extends(wt(Cn)(it)){constructor(){super(),this.url="",this.drawer=!1,this.subscribe=!1,this.hideGoogle=!1,this.name="",this.email="",this.verified=!1,this.notice="",this.user=!1,this.sheetSigned=!1,this.holdSheet=!1,this.openSheetPx=0,this.liveName="",this.liveEmail="",this.liveVerified=!1,this.signup=!1,this.sliding=!1,this.motion=!1,this.clipHeight="0px",this.sheetShift="translate3d(0, -100%, 0)",this.rollMotion=!1,this.booted=!1,this.wasOpen=!1,this.sawOpen=!1,this.returnFocus=null,this.stopNotice=null,this.heldHeight=null,this.columnWidth=0,this.columnObserver=null,this.onClipEnd=t=>{if(!(t instanceof TransitionEvent))return;if(t.target!==t.currentTarget)return;if("max-height"!==t.propertyName)return;const e=t.currentTarget;e instanceof HTMLElement&&(this.drawer?this.restOpen():e.getBoundingClientRect().height>1||(this.sliding=!1,this.restShut(),this.releaseSheet()))},this.onKey=t=>{if(!this.drawer)return;if("Escape"===t.key)return t.preventDefault(),void Cn.dispatch(ln());if("Tab"!==t.key)return;const e=nb(this);if(!e.length)return;const n=e[0],s=e[e.length-1],r=sb(),i=!!r&&e.includes(r);t.shiftKey?i&&r!==n||(t.preventDefault(),s.focus({preventScroll:!0})):i&&r!==s||(t.preventDefault(),n.focus({preventScroll:!0}))},this.onLightClick=t=>{if(t.defaultPrevented)return;const e=t.target;if(!(e instanceof Element))return;const n=e.closest("a, button");n instanceof HTMLElement&&this.contains(n)&&(this.shadowRoot?.contains(n)||Cn.dispatch(ln()))},this.onSettings=t=>{const e=this.destination();if(!this.dispatchEvent(new CustomEvent(OE,{bubbles:!0,composed:!0,cancelable:!0,detail:{url:e}})))return void t.preventDefault();if(Cn.dispatch(ln()),e)return;t.preventDefault();const n=document.querySelector("user-settings");n instanceof HTMLElement&&n.scrollIntoView({block:"nearest"})}}connectedCallback(){$D(this),this.id||(this.id="pwa-user-drawer"),super.connectedCallback(),this.addEventListener("keydown",this.onKey),this.addEventListener("click",this.onLightClick),this.notice=GD(),this.stopNotice=HD(()=>{this.notice=GD()})}disconnectedCallback(){this.removeEventListener("keydown",this.onKey),this.removeEventListener("click",this.onLightClick),this.stopNotice?.(),this.stopNotice=null,this.columnObserver?.disconnect(),this.columnObserver=null,super.disconnectedCallback()}stateChanged(t){const e=t.session.drawer,n=this.drawer,s=!0===this.user;this.liveName=t.session.name,this.liveEmail=t.session.email,this.liveVerified=Boolean(t.session.verified),e?this.sliding=!0:this.reduced()&&(this.sliding=!1),this.drawer=e,this.user=t.session.login,this.signup=t.session.registerOne,this.paintAccount(s,n);(this.sawOpen?e!==this.wasOpen:e)&&function(t,e,n){t.dispatchEvent(new CustomEvent(e,{...aE,detail:n}))}(this,TE,{open:e}),this.wasOpen=e,this.sawOpen=!0}paintAccount(t,e){if(!0===this.user)return this.holdSheet=!1,this.name=this.liveName,this.email=this.liveEmail,this.verified=this.liveVerified,void(this.sheetSigned=!0);if(t&&e){const t=this.sheet(),e=t?Math.ceil(t.getBoundingClientRect().height):0;return e>1&&(this.openSheetPx=e),this.holdSheet=!0,void(this.sheetSigned=!0)}this.holdSheet||(this.name=this.liveName,this.email=this.liveEmail,this.verified=this.liveVerified,this.sheetSigned=!1)}releaseSheet(){this.holdSheet&&(this.holdSheet=!1,this.name=this.liveName,this.email=this.liveEmail,this.verified=this.liveVerified,this.sheetSigned=!0===this.user)}willUpdate(t){if(!this.booted)return void(this.drawer&&this.restOpen());if(t.has("signup")&&(this.motion=!0),t.has("drawer")||!t.has("signup")||!this.drawer)return;const e=this.clip();e&&(this.heldHeight=Math.ceil(e.getBoundingClientRect().height),this.rollMotion=!1,this.clipHeight=`${this.heldHeight}px`,this.sheetShift="translate3d(0, 0, 0)")}updated(t){const e=!this.booted;if(this.booted=!0,!e&&t.has("drawer"))this.heldHeight=null,this.drawer?this.unroll():this.rollUp();else if(!e&&null!=this.heldHeight&&this.drawer){const t=this.heldHeight;this.heldHeight=null;const e=this.clip(),n=this.sheet();if(e&&n){const s=Math.ceil(n.getBoundingClientRect().height);Math.abs(s-t)>1?this.rollBetween(e,n,t,s,s):this.restOpen()}}if(e&&requestAnimationFrame(()=>{this.motion=!0}),!t.has("drawer"))return;if(this.drawer){const t=sb();return this.returnFocus=t&&!this.contains(t)?t:this.returnFocus,this.shadowRoot?.querySelector(".close")?.focus({preventScroll:!0}),void SD(!1)}const n=this.returnFocus??this.toggleButton();n?.focus({preventScroll:!0}),this.returnFocus=null}clip(){return this.shadowRoot?.querySelector(".drawer-clip")??null}sheet(){return this.shadowRoot?.querySelector(".userDrawer")??null}toggleButton(){const t=document.querySelector("user-icon"),e=t?.shadowRoot?.querySelector("button");return e instanceof HTMLElement?e:null}reduced(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}restShut(){this.rollMotion=!1,this.clipHeight="0px",this.sheetShift="translate3d(0, -100%, 0)";const t=this.sheet();t&&(t.style.minHeight="")}restOpen(){this.rollMotion=!1,this.clipHeight="auto",this.sheetShift="none"}clipStyle(){const t=this.rollMotion&&!this.reduced();return{height:this.clipHeight,maxHeight:"auto"===this.clipHeight?"none":this.clipHeight,transition:t?"height var(--pwa_slide, 2s) ease-in-out, max-height var(--pwa_slide, 2s) ease-in-out":"none"}}sheetStyle(){const t=this.rollMotion&&!this.reduced();return{transform:this.sheetShift,transition:t?"transform var(--pwa_slide, 2s) ease-in-out":"none"}}unroll(){const t=this.clip(),e=this.sheet();if(!t||!e)return;this.scrollTop=0,this.placeAnchor();const n=this.sheetPx(t,e),s=Math.ceil(t.getBoundingClientRect().height);this.rollBetween(t,e,s,n,n)}rollUp(){const t=this.clip(),e=this.sheet();if(!t||!e)return;this.placeAnchor();let n=Math.ceil(e.getBoundingClientRect().height),s=Math.ceil(t.getBoundingClientRect().height);this.holdSheet&&this.openSheetPx>1&&(s=this.openSheetPx,n=this.openSheetPx,e.style.minHeight=`${this.openSheetPx}px`),this.rollBetween(t,e,s,0,n),this.reduced()&&(this.sliding=!1)}sheetPx(t,e){const n=t.style.transition,s=t.style.maxHeight,r=t.style.height;t.style.transition="none",t.style.maxHeight="none",t.style.height="auto";const i=Math.ceil(e.getBoundingClientRect().height);return t.style.height=r,t.style.maxHeight=s,t.style.transition=n,i}rollBetween(t,e,n,s,r){const i=n-r,o=s-r,a=t=>`translate3d(0, ${t}px, 0)`;if(this.reduced()||Math.abs(s-n)<=1)return void(0===s?(this.restShut(),this.releaseSheet()):this.restOpen());t.style.transition="none",e.style.transition="none",t.style.height=`${Math.max(0,n)}px`,t.style.maxHeight=`${Math.max(0,n)}px`,e.style.transform=a(i),t.offsetHeight,t.style.transition="height var(--pwa_slide, 2s) ease-in-out, max-height var(--pwa_slide, 2s) ease-in-out",e.style.transition="transform var(--pwa_slide, 2s) ease-in-out",t.style.height=`${Math.max(0,s)}px`,t.style.maxHeight=`${Math.max(0,s)}px`,e.style.transform=a(o),this.rollMotion=!0,this.clipHeight=`${Math.max(0,s)}px`,this.sheetShift=a(o)}firstUpdated(){this.shadowRoot.querySelector(".close").addEventListener("click",()=>{Cn.dispatch(ln())}),this.shadowRoot.querySelector(".leave").addEventListener("click",async()=>{if(this.user)try{await ED()}catch{return}Cn.dispatch(ln())});this.shadowRoot.querySelectorAll("a").forEach(t=>{t.addEventListener("click",()=>{Cn.dispatch(ln())})}),this.watchColumn()}placeAnchor(){const t=getComputedStyle(this).position;if("fixed"===t||"absolute"===t)return void(this.style.top&&(this.style.top=""));const e=this.parentElement;if(!e)return;const n=this.previousElementSibling,s=n?n.getBoundingClientRect().bottom:e.getBoundingClientRect().top+(parseFloat(getComputedStyle(e).paddingTop)||0),r=parseFloat(this.style.top)||0,i=s-(this.getBoundingClientRect().top-r);Math.abs(i-r)<=.5||(this.style.top=Math.abs(i)<=.5?"":`${i}px`)}watchColumn(){if("undefined"==typeof ResizeObserver)return;this.columnObserver=new ResizeObserver(()=>{this.placeAnchor();const t=Math.round(this.getBoundingClientRect().width);t&&t!==this.columnWidth&&(this.columnWidth=t,this.onColumnResize())}),this.columnObserver.observe(this);const t=this.previousElementSibling;t&&this.columnObserver.observe(t),this.placeAnchor()}onColumnResize(){if(!this.rollMotion)return;const t=this.clip(),e=this.sheet();if(!t||!e)return;const n=Math.ceil(t.getBoundingClientRect().height),s=this.sheetPx(t,e);this.rollBetween(t,e,n,this.drawer?s:0,s)}static get styles(){return[YD,gn,mn,XD,ZD,tb,eb,_n,zE,FD,ib,i`
|
|
1188
|
+
`}showSent(){this.tone="",this.status="Check your inbox for the verification email.",this.cooldown=45,this.armCooldown(),this.updateComplete.then(()=>{this.focusStatus()})}showFirebase(t){this.tone="error",this.status=HE(t),this.updateComplete.then(()=>{this.focusStatus()})}focusStatus(){const t=this.renderRoot.querySelector("#pwa-verify-status");t?.focus()}clearWait(){window.clearInterval(this.timer),this.timer=0,this.cooldown=0}armCooldown(){window.clearInterval(this.timer),this.timer=window.setInterval(()=>{if(this.cooldown<=1)return this.cooldown=0,window.clearInterval(this.timer),void(this.timer=0);this.cooldown-=1},1e3)}}ob([ut(),ab("design:type",Object)],Bb.prototype,"login",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"verified",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"email",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"status",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"tone",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"busy",void 0),ob([ut(),ab("design:type",Object)],Bb.prototype,"cooldown",void 0),customElements.define("email-verify",Bb);var cb=function(t,e,n,s){var r,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i<3?r(o):i>3?r(e,n,o):r(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o},lb=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ub=class extends(wt(Cn)(it)){constructor(){super(),this.url="",this.drawer=!1,this.subscribe=!1,this.hideGoogle=!1,this.name="",this.email="",this.verified=!1,this.notice="",this.user=!1,this.sheetSigned=!1,this.holdSheet=!1,this.openSheetPx=0,this.liveName="",this.liveEmail="",this.liveVerified=!1,this.signup=!1,this.sliding=!1,this.motion=!1,this.clipHeight="0px",this.clipPad="0px",this.sheetShift="translate3d(0, -100%, 0)",this.rollMotion=!1,this.resizeMotion=!1,this.faceShift="none",this.switchMidRoll=!1,this.booted=!1,this.wasOpen=!1,this.sawOpen=!1,this.returnFocus=null,this.stopNotice=null,this.heldHeight=null,this.columnWidth=0,this.columnObserver=null,this.onClipEnd=t=>{if(!(t instanceof TransitionEvent))return;if(t.target!==t.currentTarget)return;if("transform"!==t.propertyName)return;const e=t.currentTarget;e instanceof HTMLElement&&(this.drawer?this.restOpen():this.shownPx(e)>1||(this.sliding=!1,this.restShut(),this.releaseSheet()))},this.onKey=t=>{if(!this.drawer)return;if("Escape"===t.key)return t.preventDefault(),void Cn.dispatch(ln());if("Tab"!==t.key)return;const e=nb(this);if(!e.length)return;const n=e[0],s=e[e.length-1],r=sb(),i=!!r&&e.includes(r);t.shiftKey?i&&r!==n||(t.preventDefault(),s.focus({preventScroll:!0})):i&&r!==s||(t.preventDefault(),n.focus({preventScroll:!0}))},this.onLightClick=t=>{if(t.defaultPrevented)return;const e=t.target;if(!(e instanceof Element))return;const n=e.closest("a, button");n instanceof HTMLElement&&this.contains(n)&&(this.shadowRoot?.contains(n)||Cn.dispatch(ln()))},this.onSettings=t=>{const e=this.destination();if(!this.dispatchEvent(new CustomEvent(OE,{bubbles:!0,composed:!0,cancelable:!0,detail:{url:e}})))return void t.preventDefault();if(Cn.dispatch(ln()),e)return;t.preventDefault();const n=document.querySelector("user-settings");n instanceof HTMLElement&&n.scrollIntoView({block:"nearest"})}}connectedCallback(){$D(this),this.id||(this.id="pwa-user-drawer"),super.connectedCallback(),this.addEventListener("keydown",this.onKey),this.addEventListener("click",this.onLightClick),this.notice=GD(),this.stopNotice=HD(()=>{this.notice=GD()})}disconnectedCallback(){this.removeEventListener("keydown",this.onKey),this.removeEventListener("click",this.onLightClick),this.stopNotice?.(),this.stopNotice=null,this.columnObserver?.disconnect(),this.columnObserver=null,super.disconnectedCallback()}stateChanged(t){const e=t.session.drawer,n=this.drawer,s=!0===this.user;this.liveName=t.session.name,this.liveEmail=t.session.email,this.liveVerified=Boolean(t.session.verified),e?this.sliding=!0:this.reduced()&&(this.sliding=!1),this.drawer=e,this.user=t.session.login,this.signup=t.session.registerOne,this.paintAccount(s,n);(this.sawOpen?e!==this.wasOpen:e)&&function(t,e,n){t.dispatchEvent(new CustomEvent(e,{...aE,detail:n}))}(this,TE,{open:e}),this.wasOpen=e,this.sawOpen=!0}paintAccount(t,e){if(!0===this.user)return this.holdSheet=!1,this.name=this.liveName,this.email=this.liveEmail,this.verified=this.liveVerified,void(this.sheetSigned=!0);if(t&&e){const t=this.sheet(),e=t?t.getBoundingClientRect().height:0;return e>1&&(this.openSheetPx=e),this.holdSheet=!0,void(this.sheetSigned=!0)}this.holdSheet||(this.name=this.liveName,this.email=this.liveEmail,this.verified=this.liveVerified,this.sheetSigned=!1)}releaseSheet(){this.holdSheet&&(this.holdSheet=!1,this.name=this.liveName,this.email=this.liveEmail,this.verified=this.liveVerified,this.sheetSigned=!0===this.user)}willUpdate(t){if(!this.booted)return void(this.drawer&&this.restOpen());if(t.has("signup")&&(this.motion=!0),t.has("drawer")||!t.has("signup")||!this.drawer)return;const e=this.sheet();e&&(this.switchMidRoll=this.rollMotion,this.heldHeight=this.shownPx(e),this.switchMidRoll&&(this.rollMotion=!1,this.clipPad="0px",this.clipHeight=`${this.heldHeight+60}px`,this.sheetShift="translate3d(0, 0, 0)"))}updated(t){const e=!this.booted;if(this.booted=!0,!e&&t.has("drawer"))this.heldHeight=null,this.drawer?this.unroll():this.rollUp();else if(!e&&null!=this.heldHeight&&this.drawer){const t=this.heldHeight,e=this.switchMidRoll;this.heldHeight=null,this.switchMidRoll=!1;const n=this.clip(),s=this.sheet();if(n&&s){const r=this.contentPx(s);Math.abs(r-t)<=1?this.restOpen():e?this.rollBetween(n,s,t,r,r):this.resizeBetween(n,s,t,r)}}if(e&&requestAnimationFrame(()=>{this.motion=!0}),!t.has("drawer"))return;if(this.drawer){const t=sb();return this.returnFocus=t&&!this.contains(t)?t:this.returnFocus,this.shadowRoot?.querySelector(".close")?.focus({preventScroll:!0}),void SD(!1)}const n=this.returnFocus??this.toggleButton();n?.focus({preventScroll:!0}),this.returnFocus=null}clip(){return this.shadowRoot?.querySelector(".drawer-clip")??null}sheet(){return this.shadowRoot?.querySelector(".userDrawer")??null}face(){return this.shadowRoot?.querySelector(".drawer-face")??null}toggleButton(){const t=document.querySelector("user-icon"),e=t?.shadowRoot?.querySelector("button");return e instanceof HTMLElement?e:null}reduced(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}restShut(){this.rollMotion=!1,this.resizeMotion=!1,this.clipHeight="0px",this.clipPad="0px",this.sheetShift="translate3d(0, -100%, 0)",this.faceShift="none";const t=this.sheet();t&&(t.style.minHeight="");const e=this.face();e&&(e.style.transform="")}restOpen(){this.rollMotion=!1,this.resizeMotion=!1,this.clipHeight="auto",this.clipPad="60px",this.sheetShift="none",this.faceShift="none";const t=this.sheet();t&&(t.style.minHeight="");const e=this.face();e&&(e.style.transform="")}clipStyle(){const t=this.clipHeight;return{height:t,maxHeight:"auto"===t?"none":t,paddingBottom:this.clipPad,transition:"none"}}sheetStyle(){const t=(this.rollMotion||this.resizeMotion)&&!this.reduced();return{transform:this.sheetShift,transition:t?"transform var(--pwa_slide, 2s) ease-in-out":"none"}}faceStyle(){const t=this.resizeMotion&&!this.reduced();return{transform:this.faceShift,transition:t?"transform var(--pwa_slide, 2s) ease-in-out":"none"}}liveShift(t){const e=getComputedStyle(t).transform;if(!e||"none"===e)return 0;const n=e.match(/translate3d\(\s*[^,]+,\s*(-?[\d.]+)%/);if(n)return t.getBoundingClientRect().height*(parseFloat(n[1])/100);const s=e.match(/translate3d\(\s*[^,]+,\s*(-?[\d.]+)px/);if(s)return parseFloat(s[1]);if(!e.includes("%"))try{if("function"==typeof DOMMatrixReadOnly)return new DOMMatrixReadOnly(e).m42}catch{}const r=e.match(/matrix(?:3d)?\(([^)]+)\)/);if(!r)return 0;const i=r[1].split(",").map(t=>parseFloat(t));return e.startsWith("matrix3d")?i[13]:i[5]}shownPx(t){return Math.max(0,t.getBoundingClientRect().height+this.liveShift(t))}unroll(){const t=this.clip(),e=this.sheet();if(!t||!e)return;this.scrollTop=0,this.placeAnchor();const n=this.sheetPx(t,e),s=this.shownPx(e);this.rollBetween(t,e,s,n,n)}rollUp(){const t=this.clip(),e=this.sheet();if(!t||!e)return;this.placeAnchor();let n=e.getBoundingClientRect().height,s=this.shownPx(e);this.holdSheet&&this.openSheetPx>1&&(s=this.openSheetPx,n=this.openSheetPx,e.style.minHeight=`${this.openSheetPx}px`),this.rollBetween(t,e,s,0,n),this.reduced()&&(this.sliding=!1)}contentPx(t){const e=t.style.minHeight;t.style.minHeight="";const n=t.getBoundingClientRect().height;return t.style.minHeight=e,n}sheetPx(t,e){const n=t.style.transition,s=t.style.maxHeight,r=t.style.height,i=t.style.paddingBottom;t.style.transition="none",t.style.maxHeight="none",t.style.height="auto",t.style.paddingBottom="0px";const o=this.contentPx(e);return t.style.height=r,t.style.maxHeight=s,t.style.paddingBottom=i,t.style.transition=n,o}rollBetween(t,e,n,s,r){const i=n-r,o=s-r,a=t=>`translate3d(0, ${t}px, 0)`;if(this.reduced()||Math.abs(s-n)<=1)return void(0===s?(this.restShut(),this.releaseSheet()):this.restOpen());const B=Math.max(n,s)+60;t.style.transition="none",e.style.transition="none",t.style.height=`${B}px`,t.style.maxHeight=`${B}px`,t.style.paddingBottom="0px",e.style.transform=a(i),e.offsetHeight,e.style.transition="transform var(--pwa_slide, 2s) ease-in-out",e.style.transform=a(o),this.rollMotion=!0,this.resizeMotion=!1,this.clipHeight=`${B}px`,this.clipPad="0px",this.sheetShift=a(o),this.faceShift="none";const c=this.face();c&&(c.style.transition="none",c.style.transform="none")}resizeBetween(t,e,n,s){const r=this.face();if(!r)return void this.rollBetween(t,e,n,s,s);const i=Math.max(n,s),o=t=>`translate3d(0, ${t}px, 0)`;if(this.reduced()||Math.abs(s-n)<=1)return void this.restOpen();const a=i+60,B="transform var(--pwa_slide, 2s) ease-in-out";t.style.transition="none",e.style.transition="none",r.style.transition="none",t.style.height=`${a}px`,t.style.maxHeight=`${a}px`,t.style.paddingBottom="0px",e.style.minHeight=`${i}px`,e.style.transform=o(n-i),r.style.transform=o(i-n),e.offsetHeight,e.style.transition=B,r.style.transition=B,e.style.transform=o(s-i),r.style.transform=o(i-s),this.rollMotion=!1,this.resizeMotion=!0,this.clipHeight=`${a}px`,this.clipPad="0px",this.sheetShift=o(s-i),this.faceShift=o(i-s)}firstUpdated(){this.shadowRoot.querySelector(".close").addEventListener("click",()=>{Cn.dispatch(ln())}),this.shadowRoot.querySelector(".leave").addEventListener("click",async()=>{if(this.user)try{await ED()}catch{return}Cn.dispatch(ln())});this.shadowRoot.querySelectorAll("a").forEach(t=>{t.addEventListener("click",()=>{Cn.dispatch(ln())})}),this.watchColumn()}placeAnchor(){const t=getComputedStyle(this).position;if("fixed"===t||"absolute"===t)return void(this.style.top&&(this.style.top=""));const e=this.parentElement;if(!e)return;const n=this.previousElementSibling,s=n?n.getBoundingClientRect().bottom:e.getBoundingClientRect().top+(parseFloat(getComputedStyle(e).paddingTop)||0),r=parseFloat(this.style.top)||0,i=s-(this.getBoundingClientRect().top-r);Math.abs(i-r)<=.5||(this.style.top=Math.abs(i)<=.5?"":`${i}px`)}watchColumn(){if("undefined"==typeof ResizeObserver)return;this.columnObserver=new ResizeObserver(()=>{this.placeAnchor();const t=Math.round(this.getBoundingClientRect().width);t&&t!==this.columnWidth&&(this.columnWidth=t,this.onColumnResize())}),this.columnObserver.observe(this);const t=this.previousElementSibling;t&&this.columnObserver.observe(t),this.placeAnchor()}onColumnResize(){const t=this.clip(),e=this.sheet();if(!t||!e)return;if(!this.drawer&&!this.rollMotion)return;const n=this.shownPx(e),s=this.sheetPx(t,e),r=this.drawer?s:0;this.rollMotion||!this.drawer?this.rollBetween(t,e,n,r,s):Math.abs(r-n)>1&&this.resizeBetween(t,e,n,r)}static get styles(){return[YD,gn,mn,XD,ZD,tb,eb,_n,zE,FD,ib,i`
|
|
1182
1189
|
/* Required - this drawer's roll only. The clip hangs from the tag and grows down. */
|
|
1183
1190
|
.drawer-clip {
|
|
1184
1191
|
display: block;
|
|
@@ -1188,14 +1195,24 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1188
1195
|
right: 0;
|
|
1189
1196
|
overflow: hidden;
|
|
1190
1197
|
min-height: 0;
|
|
1198
|
+
box-sizing: border-box;
|
|
1191
1199
|
z-index: var(--pwa_drawer_z-index, 5);
|
|
1192
|
-
|
|
1193
|
-
box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16);
|
|
1200
|
+
pointer-events: none; /* Required - the shadow room must not catch clicks */
|
|
1194
1201
|
}
|
|
1195
1202
|
|
|
1196
1203
|
.drawer-clip > .userDrawer {
|
|
1197
1204
|
height: auto;
|
|
1198
1205
|
align-self: start;
|
|
1206
|
+
pointer-events: auto;
|
|
1207
|
+
border-radius: var(--pwa_drawer_border-radius, 0 0 18px 18px);
|
|
1208
|
+
box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16);
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.drawer-face {
|
|
1212
|
+
display: block;
|
|
1213
|
+
width: 100%;
|
|
1214
|
+
min-width: 0;
|
|
1215
|
+
max-width: 100%;
|
|
1199
1216
|
}
|
|
1200
1217
|
|
|
1201
1218
|
.exit > h2 {
|
|
@@ -1256,10 +1273,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1256
1273
|
<!-- Clip. The first render binds shut, with no transition. -->
|
|
1257
1274
|
<div
|
|
1258
1275
|
class="drawer-clip"
|
|
1259
|
-
style=${mt(this.clipStyle())}
|
|
1260
|
-
@transitionend=${this.onClipEnd}>
|
|
1276
|
+
style=${mt(this.clipStyle())}>
|
|
1261
1277
|
|
|
1262
|
-
<!-- Drawer Wrapper. Its translate is
|
|
1278
|
+
<!-- Drawer Wrapper. Its translate is the only roll. -->
|
|
1263
1279
|
<section
|
|
1264
1280
|
part="panel"
|
|
1265
1281
|
role="dialog"
|
|
@@ -1268,7 +1284,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1268
1284
|
aria-hidden="${this.drawer?"false":"true"}"
|
|
1269
1285
|
?inert="${!this.drawer}"
|
|
1270
1286
|
class="userDrawer"
|
|
1271
|
-
style=${mt(this.sheetStyle())}
|
|
1287
|
+
style=${mt(this.sheetStyle())}
|
|
1288
|
+
@transitionend=${this.onClipEnd}>
|
|
1289
|
+
|
|
1290
|
+
<div class="drawer-face" style=${mt(this.faceStyle())}>
|
|
1272
1291
|
|
|
1273
1292
|
<!-- Exit Button -->
|
|
1274
1293
|
<div class="exit" part="header">
|
|
@@ -1335,10 +1354,12 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1335
1354
|
|
|
1336
1355
|
</div>
|
|
1337
1356
|
|
|
1357
|
+
</div>
|
|
1358
|
+
|
|
1338
1359
|
</section>
|
|
1339
1360
|
</div>
|
|
1340
1361
|
|
|
1341
|
-
`}destination(){return(this.url||"").trim()}settingsControl(){const t=this.destination();return t?U`<a href="${t}" part="settings" @click="${this.onSettings}">Settings</a>`:U`<button type="button" class="settings" part="settings" @click="${this.onSettings}">Settings</button>`}};cb([lt({type:String,reflect:!0}),lb("design:type",Object)],ub.prototype,"url",void 0),cb([lt({type:Boolean,attribute:!0,reflect:!0}),lb("design:type",Object)],ub.prototype,"drawer",void 0),cb([lt({type:Boolean,attribute:!0,reflect:!0}),lb("design:type",Object)],ub.prototype,"subscribe",void 0),cb([lt({type:Boolean,attribute:"hide-google",reflect:!0}),lb("design:type",Object)],ub.prototype,"hideGoogle",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"name",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"email",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"verified",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"notice",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"user",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"sheetSigned",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"signup",void 0),cb([lt({type:Boolean,reflect:!0}),lb("design:type",Object)],ub.prototype,"sliding",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"motion",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"clipHeight",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"sheetShift",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"rollMotion",void 0),ub=cb([at("user-drawer"),lb("design:paramtypes",[])],ub);const hb=i`
|
|
1362
|
+
`}destination(){return(this.url||"").trim()}settingsControl(){const t=this.destination();return t?U`<a href="${t}" part="settings" @click="${this.onSettings}">Settings</a>`:U`<button type="button" class="settings" part="settings" @click="${this.onSettings}">Settings</button>`}};cb([lt({type:String,reflect:!0}),lb("design:type",Object)],ub.prototype,"url",void 0),cb([lt({type:Boolean,attribute:!0,reflect:!0}),lb("design:type",Object)],ub.prototype,"drawer",void 0),cb([lt({type:Boolean,attribute:!0,reflect:!0}),lb("design:type",Object)],ub.prototype,"subscribe",void 0),cb([lt({type:Boolean,attribute:"hide-google",reflect:!0}),lb("design:type",Object)],ub.prototype,"hideGoogle",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"name",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"email",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"verified",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"notice",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"user",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"sheetSigned",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"signup",void 0),cb([lt({type:Boolean,reflect:!0}),lb("design:type",Object)],ub.prototype,"sliding",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"motion",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"clipHeight",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"clipPad",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"sheetShift",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"rollMotion",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"resizeMotion",void 0),cb([ut(),lb("design:type",Object)],ub.prototype,"faceShift",void 0),ub=cb([at("user-drawer"),lb("design:paramtypes",[])],ub);const hb=i`
|
|
1342
1363
|
|
|
1343
1364
|
nav {
|
|
1344
1365
|
overflow: hidden;
|