pwa-auth 3.8.1 → 3.8.2
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.js +3 -3
- package/base/webcomponents/css/animation.js.map +1 -1
- package/base/webcomponents/drawer/drawer.d.ts +5 -1
- package/base/webcomponents/drawer/drawer.d.ts.map +1 -1
- package/base/webcomponents/drawer/drawer.js +90 -42
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/docs/drawer-slide.md +27 -23
- package/docs/sliders.md +7 -7
- package/package.json +1 -1
- package/source/pwa-auth.js +11 -8
|
@@ -100,9 +100,9 @@ export const animation = css `
|
|
|
100
100
|
|
|
101
101
|
`;
|
|
102
102
|
/* 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. */
|
|
103
|
+
No height or transform transition here. The sheet transform is the only
|
|
104
|
+
roll, and only after a user change. max-height: 0 with no transition is
|
|
105
|
+
the closed backstop, so the first paint cannot ease shut. */
|
|
106
106
|
export const drawerShell = css `
|
|
107
107
|
|
|
108
108
|
: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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FvC,CAAC;AAEF
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FvC,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"}
|
|
@@ -48,8 +48,10 @@ 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
57
|
/** True only while this drawer's clip and sheet are easing. */
|
|
@@ -78,6 +80,8 @@ export declare class UserDrawer extends UserDrawer_base {
|
|
|
78
80
|
private restOpen;
|
|
79
81
|
private clipStyle;
|
|
80
82
|
private sheetStyle;
|
|
83
|
+
private liveShift;
|
|
84
|
+
private shownPx;
|
|
81
85
|
private unroll;
|
|
82
86
|
private rollUp;
|
|
83
87
|
private sheetPx;
|
|
@@ -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,QA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InB,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,8 +66,10 @@ 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
75
|
/** True only while this drawer's clip and sheet are easing. */
|
|
@@ -78,23 +82,23 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
78
82
|
this.heldHeight = null;
|
|
79
83
|
this.columnWidth = 0;
|
|
80
84
|
this.columnObserver = null;
|
|
81
|
-
// Required - visibility
|
|
82
|
-
//
|
|
85
|
+
// Required - visibility drops when the sheet's transform finishes at 0.
|
|
86
|
+
// A form transition inside the sheet does not count.
|
|
83
87
|
this.onClipEnd = (event) => {
|
|
84
88
|
if (!(event instanceof TransitionEvent))
|
|
85
89
|
return;
|
|
86
90
|
if (event.target !== event.currentTarget)
|
|
87
91
|
return;
|
|
88
|
-
if (event.propertyName !== '
|
|
92
|
+
if (event.propertyName !== 'transform')
|
|
89
93
|
return;
|
|
90
|
-
const
|
|
91
|
-
if (!(
|
|
94
|
+
const sheet = event.currentTarget;
|
|
95
|
+
if (!(sheet instanceof HTMLElement))
|
|
92
96
|
return;
|
|
93
97
|
if (this.drawer) {
|
|
94
98
|
this.restOpen();
|
|
95
99
|
return;
|
|
96
100
|
}
|
|
97
|
-
if (
|
|
101
|
+
if (this.shownPx(sheet) > 1)
|
|
98
102
|
return;
|
|
99
103
|
this.sliding = false;
|
|
100
104
|
this.restShut();
|
|
@@ -221,7 +225,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
221
225
|
}
|
|
222
226
|
if (wasSigned && wasOpen) {
|
|
223
227
|
const sheet = this.sheet();
|
|
224
|
-
const measured = sheet ?
|
|
228
|
+
const measured = sheet ? sheet.getBoundingClientRect().height : 0;
|
|
225
229
|
if (measured > 1)
|
|
226
230
|
this.openSheetPx = measured;
|
|
227
231
|
this.holdSheet = true;
|
|
@@ -254,12 +258,13 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
254
258
|
this.motion = true;
|
|
255
259
|
if (changed.has('drawer') || !changed.has('signup') || !this.drawer)
|
|
256
260
|
return;
|
|
257
|
-
const
|
|
258
|
-
if (!
|
|
261
|
+
const sheet = this.sheet();
|
|
262
|
+
if (!sheet)
|
|
259
263
|
return;
|
|
260
|
-
this.heldHeight =
|
|
264
|
+
this.heldHeight = this.shownPx(sheet);
|
|
261
265
|
this.rollMotion = false;
|
|
262
|
-
this.
|
|
266
|
+
this.clipPad = '0px';
|
|
267
|
+
this.clipHeight = `${this.heldHeight + shadowRoom}px`;
|
|
263
268
|
this.sheetShift = 'translate3d(0, 0, 0)';
|
|
264
269
|
}
|
|
265
270
|
updated(changed) {
|
|
@@ -278,7 +283,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
278
283
|
const clip = this.clip();
|
|
279
284
|
const sheet = this.sheet();
|
|
280
285
|
if (clip && sheet) {
|
|
281
|
-
const to =
|
|
286
|
+
const to = sheet.getBoundingClientRect().height;
|
|
282
287
|
if (Math.abs(to - from) > 1)
|
|
283
288
|
this.rollBetween(clip, sheet, from, to, to);
|
|
284
289
|
else
|
|
@@ -315,29 +320,34 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
315
320
|
reduced() {
|
|
316
321
|
return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
317
322
|
}
|
|
318
|
-
// Required - closed, no transition. The
|
|
323
|
+
// Required - closed, no transition. The clip collapses so nothing below can be hit.
|
|
319
324
|
restShut() {
|
|
320
325
|
this.rollMotion = false;
|
|
321
326
|
this.clipHeight = '0px';
|
|
327
|
+
this.clipPad = '0px';
|
|
322
328
|
this.sheetShift = 'translate3d(0, -100%, 0)';
|
|
323
329
|
const sheet = this.sheet();
|
|
324
330
|
if (sheet)
|
|
325
331
|
sheet.style.minHeight = '';
|
|
326
332
|
}
|
|
327
|
-
// Required - open at content size.
|
|
333
|
+
// Required - open at content size. Padding keeps the shadow. No transition.
|
|
328
334
|
restOpen() {
|
|
329
335
|
this.rollMotion = false;
|
|
330
336
|
this.clipHeight = 'auto';
|
|
337
|
+
this.clipPad = `${shadowRoom}px`;
|
|
331
338
|
this.sheetShift = 'none';
|
|
339
|
+
const sheet = this.sheet();
|
|
340
|
+
if (sheet)
|
|
341
|
+
sheet.style.minHeight = '';
|
|
332
342
|
}
|
|
343
|
+
// The clip jumps. It never eases height or max-height. Only the sheet transforms.
|
|
333
344
|
clipStyle() {
|
|
334
|
-
const
|
|
345
|
+
const height = this.clipHeight;
|
|
335
346
|
return {
|
|
336
|
-
height
|
|
337
|
-
maxHeight:
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
: 'none',
|
|
347
|
+
height,
|
|
348
|
+
maxHeight: height === 'auto' ? 'none' : height,
|
|
349
|
+
paddingBottom: this.clipPad,
|
|
350
|
+
transition: 'none',
|
|
341
351
|
};
|
|
342
352
|
}
|
|
343
353
|
sheetStyle() {
|
|
@@ -347,7 +357,35 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
347
357
|
transition: travel ? 'transform var(--pwa_slide, 2s) ease-in-out' : 'none',
|
|
348
358
|
};
|
|
349
359
|
}
|
|
350
|
-
//
|
|
360
|
+
// How far the sheet is shifted right now. none is 0. A percent is of the sheet's own height.
|
|
361
|
+
liveShift(sheet) {
|
|
362
|
+
const raw = getComputedStyle(sheet).transform;
|
|
363
|
+
if (!raw || raw === 'none')
|
|
364
|
+
return 0;
|
|
365
|
+
const percent = raw.match(/translate3d\(\s*[^,]+,\s*(-?[\d.]+)%/);
|
|
366
|
+
if (percent)
|
|
367
|
+
return sheet.getBoundingClientRect().height * (parseFloat(percent[1]) / 100);
|
|
368
|
+
const px = raw.match(/translate3d\(\s*[^,]+,\s*(-?[\d.]+)px/);
|
|
369
|
+
if (px)
|
|
370
|
+
return parseFloat(px[1]);
|
|
371
|
+
if (!raw.includes('%')) {
|
|
372
|
+
try {
|
|
373
|
+
if (typeof DOMMatrixReadOnly === 'function')
|
|
374
|
+
return new DOMMatrixReadOnly(raw).m42;
|
|
375
|
+
}
|
|
376
|
+
catch { /* happy-dom rejects some transform strings */ }
|
|
377
|
+
}
|
|
378
|
+
const match = raw.match(/matrix(?:3d)?\(([^)]+)\)/);
|
|
379
|
+
if (!match)
|
|
380
|
+
return 0;
|
|
381
|
+
const parts = match[1].split(',').map((part) => parseFloat(part));
|
|
382
|
+
return raw.startsWith('matrix3d') ? parts[13] : parts[5];
|
|
383
|
+
}
|
|
384
|
+
// Visible window: sheet height plus its translate. Exact px, not rounded.
|
|
385
|
+
shownPx(sheet) {
|
|
386
|
+
return Math.max(0, sheet.getBoundingClientRect().height + this.liveShift(sheet));
|
|
387
|
+
}
|
|
388
|
+
// Required - the sheet is the only mover. Open from 0 is translate -H → 0.
|
|
351
389
|
unroll() {
|
|
352
390
|
const clip = this.clip();
|
|
353
391
|
const sheet = this.sheet();
|
|
@@ -356,7 +394,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
356
394
|
this.scrollTop = 0;
|
|
357
395
|
this.placeAnchor();
|
|
358
396
|
const target = this.sheetPx(clip, sheet);
|
|
359
|
-
const from =
|
|
397
|
+
const from = this.shownPx(sheet);
|
|
360
398
|
this.rollBetween(clip, sheet, from, target, target);
|
|
361
399
|
}
|
|
362
400
|
rollUp() {
|
|
@@ -365,8 +403,8 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
365
403
|
if (!clip || !sheet)
|
|
366
404
|
return;
|
|
367
405
|
this.placeAnchor();
|
|
368
|
-
let current =
|
|
369
|
-
let from =
|
|
406
|
+
let current = sheet.getBoundingClientRect().height;
|
|
407
|
+
let from = this.shownPx(sheet);
|
|
370
408
|
if (this.holdSheet && this.openSheetPx > 1) {
|
|
371
409
|
from = this.openSheetPx;
|
|
372
410
|
current = this.openSheetPx;
|
|
@@ -381,16 +419,20 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
381
419
|
const transition = clip.style.transition;
|
|
382
420
|
const maxHeight = clip.style.maxHeight;
|
|
383
421
|
const height = clip.style.height;
|
|
422
|
+
const pad = clip.style.paddingBottom;
|
|
384
423
|
clip.style.transition = 'none';
|
|
385
424
|
clip.style.maxHeight = 'none';
|
|
386
425
|
clip.style.height = 'auto';
|
|
387
|
-
|
|
426
|
+
clip.style.paddingBottom = '0px';
|
|
427
|
+
const px = sheet.getBoundingClientRect().height;
|
|
388
428
|
clip.style.height = height;
|
|
389
429
|
clip.style.maxHeight = maxHeight;
|
|
430
|
+
clip.style.paddingBottom = pad;
|
|
390
431
|
clip.style.transition = transition;
|
|
391
432
|
return px;
|
|
392
433
|
}
|
|
393
|
-
//
|
|
434
|
+
// Set the clip to the taller end, plus shadow room, with no transition.
|
|
435
|
+
// Ease only the sheet. translateY = window − sheetHeight, so the bottom stays glued.
|
|
394
436
|
rollBetween(clip, sheet, from, to, sheetHeight) {
|
|
395
437
|
const start = from - sheetHeight;
|
|
396
438
|
const end = to - sheetHeight;
|
|
@@ -404,21 +446,20 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
404
446
|
this.restOpen();
|
|
405
447
|
return;
|
|
406
448
|
}
|
|
407
|
-
const
|
|
449
|
+
const room = Math.max(from, to) + shadowRoom;
|
|
408
450
|
const move = 'transform var(--pwa_slide, 2s) ease-in-out';
|
|
409
451
|
clip.style.transition = 'none';
|
|
410
452
|
sheet.style.transition = 'none';
|
|
411
|
-
clip.style.height = `${
|
|
412
|
-
clip.style.maxHeight = `${
|
|
453
|
+
clip.style.height = `${room}px`;
|
|
454
|
+
clip.style.maxHeight = `${room}px`;
|
|
455
|
+
clip.style.paddingBottom = '0px';
|
|
413
456
|
sheet.style.transform = shift(start);
|
|
414
|
-
void
|
|
415
|
-
clip.style.transition = travel;
|
|
457
|
+
void sheet.offsetHeight;
|
|
416
458
|
sheet.style.transition = move;
|
|
417
|
-
clip.style.height = `${Math.max(0, to)}px`;
|
|
418
|
-
clip.style.maxHeight = `${Math.max(0, to)}px`;
|
|
419
459
|
sheet.style.transform = shift(end);
|
|
420
460
|
this.rollMotion = true;
|
|
421
|
-
this.clipHeight = `${
|
|
461
|
+
this.clipHeight = `${room}px`;
|
|
462
|
+
this.clipPad = '0px';
|
|
422
463
|
this.sheetShift = shift(end);
|
|
423
464
|
}
|
|
424
465
|
firstUpdated() {
|
|
@@ -492,7 +533,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
492
533
|
const sheet = this.sheet();
|
|
493
534
|
if (!clip || !sheet)
|
|
494
535
|
return;
|
|
495
|
-
const from =
|
|
536
|
+
const from = this.shownPx(sheet);
|
|
496
537
|
const sheetH = this.sheetPx(clip, sheet);
|
|
497
538
|
this.rollBetween(clip, sheet, from, this.drawer ? sheetH : 0, sheetH);
|
|
498
539
|
}
|
|
@@ -519,14 +560,17 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
519
560
|
right: 0;
|
|
520
561
|
overflow: hidden;
|
|
521
562
|
min-height: 0;
|
|
563
|
+
box-sizing: border-box;
|
|
522
564
|
z-index: var(--pwa_drawer_z-index, 5);
|
|
523
|
-
|
|
524
|
-
box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16);
|
|
565
|
+
pointer-events: none; /* Required - the shadow room must not catch clicks */
|
|
525
566
|
}
|
|
526
567
|
|
|
527
568
|
.drawer-clip > .userDrawer {
|
|
528
569
|
height: auto;
|
|
529
570
|
align-self: start;
|
|
571
|
+
pointer-events: auto;
|
|
572
|
+
border-radius: var(--pwa_drawer_border-radius, 0 0 18px 18px);
|
|
573
|
+
box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16);
|
|
530
574
|
}
|
|
531
575
|
|
|
532
576
|
.exit > h2 {
|
|
@@ -594,10 +638,9 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
594
638
|
<!-- Clip. The first render binds shut, with no transition. -->
|
|
595
639
|
<div
|
|
596
640
|
class="drawer-clip"
|
|
597
|
-
style=${styleMap(this.clipStyle())}
|
|
598
|
-
@transitionend=${this.onClipEnd}>
|
|
641
|
+
style=${styleMap(this.clipStyle())}>
|
|
599
642
|
|
|
600
|
-
<!-- Drawer Wrapper. Its translate is
|
|
643
|
+
<!-- Drawer Wrapper. Its translate is the only roll. -->
|
|
601
644
|
<section
|
|
602
645
|
part="panel"
|
|
603
646
|
role="dialog"
|
|
@@ -606,7 +649,8 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
606
649
|
aria-hidden="${this.drawer ? 'false' : 'true'}"
|
|
607
650
|
?inert="${!this.drawer}"
|
|
608
651
|
class="userDrawer"
|
|
609
|
-
style=${styleMap(this.sheetStyle())}
|
|
652
|
+
style=${styleMap(this.sheetStyle())}
|
|
653
|
+
@transitionend=${this.onClipEnd}>
|
|
610
654
|
|
|
611
655
|
<!-- Exit Button -->
|
|
612
656
|
<div class="exit" part="header">
|
|
@@ -754,6 +798,10 @@ __decorate([
|
|
|
754
798
|
state(),
|
|
755
799
|
__metadata("design:type", Object)
|
|
756
800
|
], UserDrawer.prototype, "clipHeight", void 0);
|
|
801
|
+
__decorate([
|
|
802
|
+
state(),
|
|
803
|
+
__metadata("design:type", Object)
|
|
804
|
+
], UserDrawer.prototype, "clipPad", void 0);
|
|
757
805
|
__decorate([
|
|
758
806
|
state(),
|
|
759
807
|
__metadata("design:type", Object)
|
|
@@ -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,qBAAqB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAW,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAa,eAAe,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAa,eAAe,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAa,oBAAoB,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AAK,EAAE;;0CAA2B;AAClB;IAAhB,KAAK,EAAE;;wCAA8B;AAErB;IAAhB,KAAK,EAAE;;+CAA8B;AAMrB;IAAhB,KAAK,EAAE;;0CAA8B;AAGc;IAAnD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CAAyB;AAGnD;IAAhB,KAAK,EAAE;;0CAAwB;AAGf;IAAhB,KAAK,EAAE;;8CAA4B;AAGnB;IAAhB,KAAK,EAAE;;2CAAyB;AAGhB;IAAhB,KAAK,EAAE;;8CAAiD;AAGxC;IAAhB,KAAK,EAAE;;8CAA4B;AA5CzB,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;;GAChB,UAAU,CAqrBtB;;AAQD;;;;;;;;;;;;;;;;EAgBE"}
|
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,33 @@ 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
|
+
Login and settings still ease clip height and the sheet together. Their `p` still moves both. The drawer does not.
|
|
107
111
|
|
|
108
112
|
### Why the px value has to be measured
|
|
109
113
|
|
|
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.
|
|
114
|
+
`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
115
|
|
|
112
116
|
### Visibility, inert, reduced motion
|
|
113
117
|
|
|
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
|
|
118
|
+
`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
119
|
|
|
116
120
|
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
121
|
|
|
@@ -131,8 +135,8 @@ Copy the roll into that component. Do not import a shared helper, and do not reu
|
|
|
131
135
|
|
|
132
136
|
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
137
|
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
|
|
138
|
+
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.
|
|
139
|
+
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
140
|
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
141
|
|
|
138
142
|
### Files
|
|
@@ -177,7 +181,7 @@ On the way open, the panel appears to finish early, and the named ease is not th
|
|
|
177
181
|
|
|
178
182
|
### What the drawer open and close uses
|
|
179
183
|
|
|
180
|
-
The drawer
|
|
184
|
+
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
185
|
|
|
182
186
|
## Pitfalls
|
|
183
187
|
|
|
@@ -187,11 +191,11 @@ The drawer clip's bound `height` and `max-height`, and the sheet's bound `transf
|
|
|
187
191
|
- 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
192
|
- 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
193
|
- `.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
|
|
194
|
+
- 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.
|
|
195
|
+
- 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
196
|
- 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
197
|
- 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
|
|
198
|
+
- `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
199
|
- 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
200
|
- Reduced motion has to set `--pwa_slide: 0s`. Zeroing only `transition-duration` leaves a delay that still uses the variable.
|
|
197
201
|
- A more specific `.userDrawer .content.closed` rule is how `f607737` broke the drawer while the shared rule still looked right.
|
|
@@ -201,7 +205,7 @@ The drawer clip's bound `height` and `max-height`, and the sheet's bound `transf
|
|
|
201
205
|
|
|
202
206
|
## Changing the duration
|
|
203
207
|
|
|
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
|
|
208
|
+
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
209
|
|
|
206
210
|
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
211
|
|
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.2",
|
|
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
|
@@ -1178,7 +1178,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1178
1178
|
</form>
|
|
1179
1179
|
|
|
1180
1180
|
</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`
|
|
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.clipPad="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("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.heldHeight=this.shownPx(e),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;this.heldHeight=null;const e=this.clip(),n=this.sheet();if(e&&n){const s=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.clipPad="0px",this.sheetShift="translate3d(0, -100%, 0)";const t=this.sheet();t&&(t.style.minHeight="")}restOpen(){this.rollMotion=!1,this.clipHeight="auto",this.clipPad="60px",this.sheetShift="none";const t=this.sheet();t&&(t.style.minHeight="")}clipStyle(){const t=this.clipHeight;return{height:t,maxHeight:"auto"===t?"none":t,paddingBottom:this.clipPad,transition:"none"}}sheetStyle(){const t=this.rollMotion&&!this.reduced();return{transform:this.sheetShift,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)}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=e.getBoundingClientRect().height;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.clipHeight=`${B}px`,this.clipPad="0px",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=this.shownPx(e),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`
|
|
1182
1182
|
/* Required - this drawer's roll only. The clip hangs from the tag and grows down. */
|
|
1183
1183
|
.drawer-clip {
|
|
1184
1184
|
display: block;
|
|
@@ -1188,14 +1188,17 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1188
1188
|
right: 0;
|
|
1189
1189
|
overflow: hidden;
|
|
1190
1190
|
min-height: 0;
|
|
1191
|
+
box-sizing: border-box;
|
|
1191
1192
|
z-index: var(--pwa_drawer_z-index, 5);
|
|
1192
|
-
|
|
1193
|
-
box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16);
|
|
1193
|
+
pointer-events: none; /* Required - the shadow room must not catch clicks */
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
1196
|
.drawer-clip > .userDrawer {
|
|
1197
1197
|
height: auto;
|
|
1198
1198
|
align-self: start;
|
|
1199
|
+
pointer-events: auto;
|
|
1200
|
+
border-radius: var(--pwa_drawer_border-radius, 0 0 18px 18px);
|
|
1201
|
+
box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16);
|
|
1199
1202
|
}
|
|
1200
1203
|
|
|
1201
1204
|
.exit > h2 {
|
|
@@ -1256,10 +1259,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1256
1259
|
<!-- Clip. The first render binds shut, with no transition. -->
|
|
1257
1260
|
<div
|
|
1258
1261
|
class="drawer-clip"
|
|
1259
|
-
style=${mt(this.clipStyle())}
|
|
1260
|
-
@transitionend=${this.onClipEnd}>
|
|
1262
|
+
style=${mt(this.clipStyle())}>
|
|
1261
1263
|
|
|
1262
|
-
<!-- Drawer Wrapper. Its translate is
|
|
1264
|
+
<!-- Drawer Wrapper. Its translate is the only roll. -->
|
|
1263
1265
|
<section
|
|
1264
1266
|
part="panel"
|
|
1265
1267
|
role="dialog"
|
|
@@ -1268,7 +1270,8 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1268
1270
|
aria-hidden="${this.drawer?"false":"true"}"
|
|
1269
1271
|
?inert="${!this.drawer}"
|
|
1270
1272
|
class="userDrawer"
|
|
1271
|
-
style=${mt(this.sheetStyle())}
|
|
1273
|
+
style=${mt(this.sheetStyle())}
|
|
1274
|
+
@transitionend=${this.onClipEnd}>
|
|
1272
1275
|
|
|
1273
1276
|
<!-- Exit Button -->
|
|
1274
1277
|
<div class="exit" part="header">
|
|
@@ -1338,7 +1341,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1338
1341
|
</section>
|
|
1339
1342
|
</div>
|
|
1340
1343
|
|
|
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`
|
|
1344
|
+
`}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),ub=cb([at("user-drawer"),lb("design:paramtypes",[])],ub);const hb=i`
|
|
1342
1345
|
|
|
1343
1346
|
nav {
|
|
1344
1347
|
overflow: hidden;
|