@molecule/app-ui-angular 1.4.2 → 1.5.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/README.md +987 -1015
- package/dist/components/alert.component.d.ts +11 -16
- package/dist/components/alert.component.d.ts.map +1 -1
- package/dist/components/alert.component.js +22 -51
- package/dist/components/alert.component.js.map +1 -1
- package/dist/components/auth-guard.component.d.ts +36 -28
- package/dist/components/auth-guard.component.d.ts.map +1 -1
- package/dist/components/auth-guard.component.js +59 -67
- package/dist/components/auth-guard.component.js.map +1 -1
- package/dist/components/avatar.component.d.ts +13 -10
- package/dist/components/avatar.component.d.ts.map +1 -1
- package/dist/components/avatar.component.js +27 -25
- package/dist/components/avatar.component.js.map +1 -1
- package/dist/components/button.component.d.ts +26 -30
- package/dist/components/button.component.d.ts.map +1 -1
- package/dist/components/button.component.js +41 -75
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/checkbox.component.d.ts +5 -4
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +14 -9
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-button.component.d.ts +11 -28
- package/dist/components/confirm-button.component.d.ts.map +1 -1
- package/dist/components/confirm-button.component.js +31 -63
- package/dist/components/confirm-button.component.js.map +1 -1
- package/dist/components/confirm-dialog.component.d.ts +28 -17
- package/dist/components/confirm-dialog.component.d.ts.map +1 -1
- package/dist/components/confirm-dialog.component.js +98 -69
- package/dist/components/confirm-dialog.component.js.map +1 -1
- package/dist/components/dropdown.component.d.ts +29 -16
- package/dist/components/dropdown.component.d.ts.map +1 -1
- package/dist/components/dropdown.component.js +143 -105
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/empty-state.component.d.ts +10 -15
- package/dist/components/empty-state.component.d.ts.map +1 -1
- package/dist/components/empty-state.component.js +23 -27
- package/dist/components/empty-state.component.js.map +1 -1
- package/dist/components/form-field.component.d.ts +26 -11
- package/dist/components/form-field.component.d.ts.map +1 -1
- package/dist/components/form-field.component.js +86 -25
- package/dist/components/form-field.component.js.map +1 -1
- package/dist/components/input.component.d.ts +20 -23
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +45 -54
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/language-picker.component.d.ts +15 -18
- package/dist/components/language-picker.component.d.ts.map +1 -1
- package/dist/components/language-picker.component.js +25 -35
- package/dist/components/language-picker.component.js.map +1 -1
- package/dist/components/load-error-banner.component.d.ts +14 -26
- package/dist/components/load-error-banner.component.d.ts.map +1 -1
- package/dist/components/load-error-banner.component.js +28 -62
- package/dist/components/load-error-banner.component.js.map +1 -1
- package/dist/components/modal.component.d.ts +38 -21
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +55 -78
- package/dist/components/modal.component.js.map +1 -1
- package/dist/components/molecule/button.component.d.ts +13 -2
- package/dist/components/molecule/button.component.d.ts.map +1 -1
- package/dist/components/molecule/button.component.js +45 -15
- package/dist/components/molecule/button.component.js.map +1 -1
- package/dist/components/molecule/toast.component.d.ts +2 -1
- package/dist/components/molecule/toast.component.d.ts.map +1 -1
- package/dist/components/molecule/toast.component.js +9 -7
- package/dist/components/molecule/toast.component.js.map +1 -1
- package/dist/components/molecule/tooltip.component.d.ts +4 -2
- package/dist/components/molecule/tooltip.component.d.ts.map +1 -1
- package/dist/components/molecule/tooltip.component.js +19 -14
- package/dist/components/molecule/tooltip.component.js.map +1 -1
- package/dist/components/optimistic-toggle-button.component.d.ts +13 -25
- package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -1
- package/dist/components/optimistic-toggle-button.component.js +33 -63
- package/dist/components/optimistic-toggle-button.component.js.map +1 -1
- package/dist/components/page-header.component.d.ts +8 -13
- package/dist/components/page-header.component.d.ts.map +1 -1
- package/dist/components/page-header.component.js +16 -24
- package/dist/components/page-header.component.js.map +1 -1
- package/dist/components/page-shell.component.d.ts +8 -14
- package/dist/components/page-shell.component.d.ts.map +1 -1
- package/dist/components/page-shell.component.js +18 -28
- package/dist/components/page-shell.component.js.map +1 -1
- package/dist/components/panel-close.component.d.ts +14 -8
- package/dist/components/panel-close.component.d.ts.map +1 -1
- package/dist/components/panel-close.component.js +28 -17
- package/dist/components/panel-close.component.js.map +1 -1
- package/dist/components/prompt-dialog.component.d.ts +32 -10
- package/dist/components/prompt-dialog.component.d.ts.map +1 -1
- package/dist/components/prompt-dialog.component.js +110 -73
- package/dist/components/prompt-dialog.component.js.map +1 -1
- package/dist/components/responsive-app-shell.component.d.ts +46 -41
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
- package/dist/components/responsive-app-shell.component.js +138 -147
- package/dist/components/responsive-app-shell.component.js.map +1 -1
- package/dist/components/sidebar-user-card.component.d.ts +8 -12
- package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
- package/dist/components/sidebar-user-card.component.js +19 -35
- package/dist/components/sidebar-user-card.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +13 -8
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +29 -20
- package/dist/components/switch.component.js.map +1 -1
- package/dist/components/table.component.d.ts +22 -14
- package/dist/components/table.component.d.ts.map +1 -1
- package/dist/components/table.component.js +34 -32
- package/dist/components/table.component.js.map +1 -1
- package/dist/components/toast.component.d.ts +34 -30
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +74 -84
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +27 -11
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +62 -47
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +18 -12
- package/dist/components/user-menu-popover.component.d.ts.map +1 -1
- package/dist/components/user-menu-popover.component.js +52 -77
- package/dist/components/user-menu-popover.component.js.map +1 -1
- package/dist/components/user-menu.component.d.ts +8 -11
- package/dist/components/user-menu.component.d.ts.map +1 -1
- package/dist/components/user-menu.component.js +19 -27
- package/dist/components/user-menu.component.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/utilities/dom-context.d.ts +62 -15
- package/dist/utilities/dom-context.d.ts.map +1 -1
- package/dist/utilities/dom-context.js +79 -34
- package/dist/utilities/dom-context.js.map +1 -1
- package/dist/utilities/form-field-context.d.ts +2 -0
- package/dist/utilities/form-field-context.d.ts.map +1 -1
- package/dist/utilities/form-field-context.js +4 -2
- package/dist/utilities/form-field-context.js.map +1 -1
- package/dist/utilities/node-value.d.ts +8 -0
- package/dist/utilities/node-value.d.ts.map +1 -1
- package/dist/utilities/node-value.js +10 -0
- package/dist/utilities/node-value.js.map +1 -1
- package/dist/utilities/rest-attrs.d.ts +2 -2
- package/dist/utilities/rest-attrs.js +1 -1
- package/package.json +3 -3
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
7
|
import { afterEveryRender, ChangeDetectorRef, Component, ElementRef, inject, signal, ViewChild, } from '@angular/core';
|
|
8
|
+
import { MolPlacement, placeContent, placeElement, placeElementBefore, setElementPresent, setHostRoot, slotElement, usePlacement, } from '@molecule/app-angular';
|
|
8
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
10
|
import { nextInstanceId } from '../utilities/ids.js';
|
|
10
11
|
import { adoptHostDataMolId } from '../utilities/rest-attrs.js';
|
|
11
12
|
import { styleText } from '../utilities/style.js';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "@molecule/app-angular";
|
|
13
15
|
const _c0 = ["triggerWrap"];
|
|
14
16
|
const _c1 = ["childrenCapture"];
|
|
15
17
|
const _c2 = ["portalWrap"];
|
|
@@ -124,12 +126,25 @@ function calculatePosition(triggerRect, tooltipRect, placement) {
|
|
|
124
126
|
* Tooltip component.
|
|
125
127
|
*
|
|
126
128
|
* React's root is a FRAGMENT (a trigger wrapper `<div>` plus a portal), so
|
|
127
|
-
* the
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
129
|
+
* the trigger wrapper renders in front of the host (`placeElementBefore`),
|
|
130
|
+
* the host itself leaves the DOM, and the portal element renders in
|
|
131
|
+
* `document.body` while visible: the rendered tree and focus paths are
|
|
132
|
+
* React's. A single-element trigger receives `aria-describedby` while the
|
|
131
133
|
* tooltip shows; show/hide are coordinated across instances exactly like
|
|
132
134
|
* React's module-level `activeTooltips` map.
|
|
135
|
+
*
|
|
136
|
+
* Projected content is created with the consumer's view, so a tooltip's `[slot=content]` exists
|
|
137
|
+
* while hidden: its components, effects and fetches run. React mounts it only while shown, and
|
|
138
|
+
* again each time it shows. Write content with state as `*molLazy` (`MolLazy` from
|
|
139
|
+
* `@molecule/app-angular`): it is created when it shows and destroyed when it hides, as React's is.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```html
|
|
143
|
+
* <mol-tooltip>
|
|
144
|
+
* <button mol-button>Usage</button>
|
|
145
|
+
* <div slot="content" *molLazy><usage-summary /></div>
|
|
146
|
+
* </mol-tooltip>
|
|
147
|
+
* ```
|
|
133
148
|
*/
|
|
134
149
|
export class Tooltip {
|
|
135
150
|
/** The tooltip content (node-valued prop). */
|
|
@@ -154,7 +169,11 @@ export class Tooltip {
|
|
|
154
169
|
id;
|
|
155
170
|
/** The visible box's `title` attribute (React's rest spread). */
|
|
156
171
|
title;
|
|
157
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* A caller's double-click handler on the visible box (React spreads it there).
|
|
174
|
+
*
|
|
175
|
+
* @deprecated Bind `(dblclick)` on the tag: what a caller binds there lands on the box.
|
|
176
|
+
*/
|
|
158
177
|
onDoubleClick;
|
|
159
178
|
/** The generated tooltip id (the normalizer renumbers it). */
|
|
160
179
|
tooltipId = nextInstanceId();
|
|
@@ -201,14 +220,12 @@ export class Tooltip {
|
|
|
201
220
|
this.hide();
|
|
202
221
|
};
|
|
203
222
|
escapeBound = false;
|
|
204
|
-
attached = false;
|
|
205
223
|
lastVisible = false;
|
|
206
224
|
/** The rendered content the current position was measured for. */
|
|
207
225
|
lastContentText = null;
|
|
208
226
|
/** The placement the current position was measured for. */
|
|
209
227
|
lastPlacement = null;
|
|
210
228
|
associateEl = null;
|
|
211
|
-
hostParent = null;
|
|
212
229
|
/** The `data-mol-id` a caller bound on the host (React spreads it onto the tooltip box). */
|
|
213
230
|
externalMolId;
|
|
214
231
|
/**
|
|
@@ -220,6 +237,33 @@ export class Tooltip {
|
|
|
220
237
|
*/
|
|
221
238
|
constructor() {
|
|
222
239
|
afterEveryRender(() => this.repositionForContentChange());
|
|
240
|
+
// React's root is a fragment: the trigger wrapper renders in front of the host, the
|
|
241
|
+
// children inside it. A lone element child is the one `aria-describedby` goes on.
|
|
242
|
+
usePlacement((hasContent) => {
|
|
243
|
+
const wrap = this.triggerWrap?.nativeElement;
|
|
244
|
+
const capture = this.childrenCapture?.nativeElement;
|
|
245
|
+
if (!wrap || !capture)
|
|
246
|
+
return;
|
|
247
|
+
placeElementBefore(wrap, this.host.nativeElement);
|
|
248
|
+
setElementPresent(this.host.nativeElement, false);
|
|
249
|
+
// React spreads the rest props on the tooltip box, not on the trigger wrapper.
|
|
250
|
+
setHostRoot(this.host.nativeElement, this.contentEl?.nativeElement, {
|
|
251
|
+
except: ['data-mol-id'],
|
|
252
|
+
});
|
|
253
|
+
placeContent(capture, wrap);
|
|
254
|
+
setElementPresent(capture, false);
|
|
255
|
+
const children = hasContent.nodes(capture);
|
|
256
|
+
// A `*molLazy` child is found once it is stamped (its stamp runs this again).
|
|
257
|
+
// Any element, an SVG icon included (React's `isValidElement`).
|
|
258
|
+
const only = children.length === 1 ? slotElement(children[0]) : null;
|
|
259
|
+
if (only === this.associateEl)
|
|
260
|
+
return;
|
|
261
|
+
if (this.visible()) {
|
|
262
|
+
this.associateEl?.removeAttribute('aria-describedby');
|
|
263
|
+
only?.setAttribute('aria-describedby', this.boxId());
|
|
264
|
+
}
|
|
265
|
+
this.associateEl = only;
|
|
266
|
+
});
|
|
223
267
|
}
|
|
224
268
|
/**
|
|
225
269
|
* Re-measures a visible tooltip whose rendered content or placement changed.
|
|
@@ -342,29 +386,12 @@ export class Tooltip {
|
|
|
342
386
|
this.hide();
|
|
343
387
|
}
|
|
344
388
|
/**
|
|
345
|
-
*
|
|
346
|
-
*
|
|
389
|
+
* Starts hidden (the trigger wrapper and its children are placed by the
|
|
390
|
+
* placement function in the constructor).
|
|
347
391
|
*/
|
|
348
392
|
ngAfterViewInit() {
|
|
349
|
-
const wrap = this.triggerWrap?.nativeElement;
|
|
350
|
-
const host = this.host.nativeElement;
|
|
351
|
-
const capture = this.childrenCapture?.nativeElement;
|
|
352
|
-
this.hostParent = host.parentNode;
|
|
353
|
-
if (wrap) {
|
|
354
|
-
this.hostParent?.insertBefore(wrap, host);
|
|
355
|
-
}
|
|
356
|
-
if (capture && wrap) {
|
|
357
|
-
const children = Array.from(capture.childNodes);
|
|
358
|
-
for (const node of children)
|
|
359
|
-
wrap.appendChild(node);
|
|
360
|
-
const elements = children.filter((node) => node.nodeType === 1);
|
|
361
|
-
const hasText = children.some((node) => node.nodeType === 3 && (node.textContent ?? '').trim());
|
|
362
|
-
this.associateEl = elements.length === 1 && !hasText ? elements[0] : null;
|
|
363
|
-
capture.remove();
|
|
364
|
-
}
|
|
365
393
|
// React renders nothing while hidden.
|
|
366
|
-
this.portalWrap?.nativeElement
|
|
367
|
-
this.attached = false;
|
|
394
|
+
setElementPresent(this.portalWrap?.nativeElement, false);
|
|
368
395
|
this.lastVisible = false;
|
|
369
396
|
}
|
|
370
397
|
/**
|
|
@@ -394,7 +421,7 @@ export class Tooltip {
|
|
|
394
421
|
else
|
|
395
422
|
this.detachPortal();
|
|
396
423
|
}
|
|
397
|
-
/** Removes listeners/timers and
|
|
424
|
+
/** Removes listeners/timers and drops the trigger association (unmount). */
|
|
398
425
|
ngOnDestroy() {
|
|
399
426
|
clearTimeout(this.showTimer);
|
|
400
427
|
clearTimeout(this.hideTimer);
|
|
@@ -403,15 +430,6 @@ export class Tooltip {
|
|
|
403
430
|
}
|
|
404
431
|
if (this.escapeBound)
|
|
405
432
|
document.removeEventListener('keydown', this.escapeListener);
|
|
406
|
-
const host = this.host.nativeElement;
|
|
407
|
-
const wrap = this.triggerWrap?.nativeElement;
|
|
408
|
-
// The adopted nodes must be children of the host again for Angular's own
|
|
409
|
-
// removal to succeed.
|
|
410
|
-
if (wrap && wrap.parentElement !== host)
|
|
411
|
-
host.appendChild(wrap);
|
|
412
|
-
const portal = this.portalWrap?.nativeElement;
|
|
413
|
-
if (portal && portal.parentElement !== host)
|
|
414
|
-
host.appendChild(portal);
|
|
415
433
|
this.associateEl = null;
|
|
416
434
|
}
|
|
417
435
|
/** Attaches the portal to `document.body`, positions it and associates it. */
|
|
@@ -419,9 +437,8 @@ export class Tooltip {
|
|
|
419
437
|
const portal = this.portalWrap?.nativeElement;
|
|
420
438
|
if (!portal)
|
|
421
439
|
return;
|
|
422
|
-
document.body
|
|
440
|
+
placeElement(portal, document.body);
|
|
423
441
|
this.inner.set(this.contentEl?.nativeElement ?? null);
|
|
424
|
-
this.attached = true;
|
|
425
442
|
this.updatePosition();
|
|
426
443
|
this.associateEl?.setAttribute('aria-describedby', this.boxId());
|
|
427
444
|
if (!this.escapeBound) {
|
|
@@ -431,9 +448,10 @@ export class Tooltip {
|
|
|
431
448
|
}
|
|
432
449
|
/** Detaches the portal and removes the trigger association. */
|
|
433
450
|
detachPortal() {
|
|
434
|
-
this.portalWrap?.nativeElement
|
|
451
|
+
const portal = this.portalWrap?.nativeElement;
|
|
452
|
+
placeElement(portal, null);
|
|
453
|
+
setElementPresent(portal, false);
|
|
435
454
|
this.inner.set(null);
|
|
436
|
-
this.attached = false;
|
|
437
455
|
this.associateEl?.removeAttribute('aria-describedby');
|
|
438
456
|
if (this.escapeBound) {
|
|
439
457
|
document.removeEventListener('keydown', this.escapeListener);
|
|
@@ -459,7 +477,7 @@ export class Tooltip {
|
|
|
459
477
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childrenCapture = _t.first);
|
|
460
478
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.portalWrap = _t.first);
|
|
461
479
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentEl = _t.first);
|
|
462
|
-
} },
|
|
480
|
+
} }, inputs: { content: "content", placement: "placement", delay: "delay", hasArrow: "hasArrow", className: "className", style: "style", testId: "testId", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], id: "id", title: "title", onDoubleClick: "onDoubleClick" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c5, decls: 11, vars: 13, consts: [["triggerWrap", ""], ["childrenCapture", ""], ["portalWrap", ""], ["contentEl", ""], ["role", "presentation", 3, "mouseover", "mouseout", "focusin", "focusout", "keydown", "click"], ["role", "tooltip", 3, "dblclick", "mouseover", "mouseout", "id"], ["aria-hidden", "true", 3, "style"], ["aria-hidden", "true"]], template: function Tooltip_Template(rf, ctx) { if (rf & 1) {
|
|
463
481
|
i0.ɵɵprojectionDef(_c4);
|
|
464
482
|
i0.ɵɵdomElementStart(0, "div", 4, 0);
|
|
465
483
|
i0.ɵɵdomListener("mouseover", function Tooltip_Template_div_mouseover_0_listener() { return ctx.show(); })("mouseout", function Tooltip_Template_div_mouseout_0_listener() { return ctx.scheduleHide(); })("focusin", function Tooltip_Template_div_focusin_0_listener($event) { return ctx.handleFocus($event); })("focusout", function Tooltip_Template_div_focusout_0_listener() { return ctx.hide(); })("keydown", function Tooltip_Template_div_keydown_0_listener($event) { return ctx.handleKeyDown($event); })("click", function Tooltip_Template_div_click_0_listener() { return ctx.hide(); });
|
|
@@ -490,6 +508,7 @@ export class Tooltip {
|
|
|
490
508
|
args: [{
|
|
491
509
|
selector: 'mol-tooltip',
|
|
492
510
|
standalone: true,
|
|
511
|
+
hostDirectives: [MolPlacement],
|
|
493
512
|
inputs: [
|
|
494
513
|
'content',
|
|
495
514
|
'placement',
|
|
@@ -504,10 +523,6 @@ export class Tooltip {
|
|
|
504
523
|
'title',
|
|
505
524
|
'onDoubleClick',
|
|
506
525
|
],
|
|
507
|
-
host: {
|
|
508
|
-
'data-parity-unwrap': '',
|
|
509
|
-
style: 'display: contents',
|
|
510
|
-
},
|
|
511
526
|
template: `<div
|
|
512
527
|
#triggerWrap
|
|
513
528
|
[class]="cm().tooltipTrigger"
|
|
@@ -555,5 +570,5 @@ export class Tooltip {
|
|
|
555
570
|
type: ViewChild,
|
|
556
571
|
args: ['contentEl']
|
|
557
572
|
}] }); })();
|
|
558
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Tooltip, { className: "Tooltip", filePath: "components/tooltip.component.ts", lineNumber:
|
|
573
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Tooltip, { className: "Tooltip", filePath: "components/tooltip.component.ts", lineNumber: 231 }); })();
|
|
559
574
|
//# sourceMappingURL=tooltip.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.component.js","sourceRoot":"","sources":["../../src/components/tooltip.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,gBAAgB,EAGhB,iBAAiB,EACjB,SAAS,EAET,UAAU,EACV,MAAM,EAEN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;;;;;;;IAmLzC,6BAA2D;;;IAAlC,sCAA0B;;AAjL3D,mFAAmF;AACnF,MAAM,UAAU,GAAG,CAAC,CAAA;AAEpB,iFAAiF;AACjF,MAAM,cAAc,G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AAA;IACH,CAAC;iGArVU,OAAO;6DAAP,OAAO;;;;;;;;;;YAlCP,oCAUR;YADC,AADA,AADA,AADA,AADA,AADA,4FAAa,UAAM,IAAC,0EACR,kBAAc,IAAC,8EAChB,uBAAmB,IAAC,0EACnB,UAAM,IAAC,8EACR,yBAAqB,IAAC,oEACxB,UAAM,IAAC;YAEhB,wCAAuB;YAAA,kBAAyB;YAClD,AADkD,oBAAO,EACnD;YAEJ,AADF,uCAA6C,gBAa1C;YADC,AADA,AADA,gGAAY,2BAAuB,IAAC,4EACvB,iBAAa,IAAC,0EACf,kBAAc,IAAC;YAE3B,qBAAiD;YACnD,oBAAM;YACN,4EAAgB;YAGlB,oBAAM;;YA9BJ,sCAA6B;YAWd,eAA2B;YAA3B,oCAA2B;YAMxC,eAA4B;YAA5B,qCAA4B;YAD5B,mCAA0B;YAD1B,mCAAc;;YAYhB,eAEC;YAFD,wCAEC;;;iFAGM,OAAO;cAvDnB,SAAS;eAAC;gBACT,QAAQ,EAAE,aAAa;gBACvB,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE;oBACN,SAAS;oBACT,WAAW;oBACX,OAAO;oBACP,UAAU;oBACV,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,cAAc;oBACd,wBAAwB;oBACxB,IAAI;oBACJ,OAAO;oBACP,eAAe;iBAChB;gBACD,IAAI,EAAE;oBACJ,oBAAoB,EAAE,EAAE;oBACxB,KAAK,EAAE,mBAAmB;iBAC3B;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgCD;aACV;;kBAqDE,SAAS;mBAAC,aAAa;;kBAEvB,SAAS;mBAAC,iBAAiB;;kBAE3B,SAAS;mBAAC,YAAY;;kBAEtB,SAAS;mBAAC,WAAW;;kFA1DX,OAAO"}
|
|
1
|
+
{"version":3,"file":"tooltip.component.js","sourceRoot":"","sources":["../../src/components/tooltip.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAC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kBAEvB,SAAS;mBAAC,iBAAiB;;kBAE3B,SAAS;mBAAC,YAAY;;kBAEtB,SAAS;mBAAC,WAAW;;kFA9DX,OAAO"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
8
|
-
import { type AfterViewInit, type DoCheck,
|
|
8
|
+
import { type AfterViewInit, type DoCheck, type OnDestroy } from '@angular/core';
|
|
9
9
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/** The auth user shape this family reads. */
|
|
@@ -216,9 +216,23 @@ export declare class UserMenuPopoverTrigger {
|
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
218
|
* The popover panel: an absolutely-positioned card with an identity header
|
|
219
|
-
* and a `<nav>` wrapping the caller's items.
|
|
219
|
+
* and a `<nav>` wrapping the caller's items. The host element is the card
|
|
220
|
+
* (React's one `<div>`), and it is out of the DOM while the popover is closed
|
|
221
|
+
* (React renders `null`).
|
|
222
|
+
*
|
|
223
|
+
* Projected content is created with the consumer's view, so a closed popover's items exist while
|
|
224
|
+
* hidden: their components, effects and fetches run. React mounts them only while shown, and again
|
|
225
|
+
* each time they show. Write content with state as `*molLazy` (`MolLazy` from
|
|
226
|
+
* `@molecule/app-angular`): it is created when it shows and destroyed when it hides, as React's is.
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* ```html
|
|
230
|
+
* <div mol-user-menu-popover-panel>
|
|
231
|
+
* <account-links *molLazy />
|
|
232
|
+
* </div>
|
|
233
|
+
* ```
|
|
220
234
|
*/
|
|
221
|
-
export declare class UserMenuPopoverPanel
|
|
235
|
+
export declare class UserMenuPopoverPanel {
|
|
222
236
|
/** i18n key for the panel's aria-label (default `userMenu.panelLabel`). */
|
|
223
237
|
ariaLabelKey?: UserMenuPopoverPanelProps['ariaLabelKey'];
|
|
224
238
|
/** Fallback aria-label (default `Account menu`). */
|
|
@@ -227,8 +241,6 @@ export declare class UserMenuPopoverPanel implements AfterViewInit, DoCheck {
|
|
|
227
241
|
dataMolId?: UserMenuPopoverPanelProps['dataMolId'];
|
|
228
242
|
/** Extra classes for the panel. */
|
|
229
243
|
className?: UserMenuPopoverPanelProps['className'];
|
|
230
|
-
/** The panel element (removed from the DOM while closed). */
|
|
231
|
-
panel?: ElementRef<HTMLDivElement>;
|
|
232
244
|
private readonly host;
|
|
233
245
|
/**
|
|
234
246
|
* Reactive translation, read in the injection context. Its `t` reads the
|
|
@@ -236,9 +248,7 @@ export declare class UserMenuPopoverPanel implements AfterViewInit, DoCheck {
|
|
|
236
248
|
* does not).
|
|
237
249
|
*/
|
|
238
250
|
private readonly i18n;
|
|
239
|
-
|
|
240
|
-
private panelAnchor;
|
|
241
|
-
private lastOpen;
|
|
251
|
+
constructor();
|
|
242
252
|
/**
|
|
243
253
|
* The current class map.
|
|
244
254
|
* @returns The UIClassMap.
|
|
@@ -270,10 +280,6 @@ export declare class UserMenuPopoverPanel implements AfterViewInit, DoCheck {
|
|
|
270
280
|
* @returns The class string.
|
|
271
281
|
*/
|
|
272
282
|
classes(): string;
|
|
273
|
-
/** Records where the panel lives and applies the initial open state. */
|
|
274
|
-
ngAfterViewInit(): void;
|
|
275
|
-
/** Attaches or detaches the panel to match the open state (React renders null). */
|
|
276
|
-
ngDoCheck(): void;
|
|
277
283
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserMenuPopoverPanel, never>;
|
|
278
284
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserMenuPopoverPanel, "div[mol-user-menu-popover-panel]", never, { "ariaLabelKey": { "alias": "ariaLabelKey"; "required": false; }; "ariaLabelDefault": { "alias": "ariaLabelDefault"; "required": false; }; "dataMolId": { "alias": "dataMolId"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
279
285
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-menu-popover.component.d.ts","sourceRoot":"","sources":["../../src/components/user-menu-popover.component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"user-menu-popover.component.d.ts","sourceRoot":"","sources":["../../src/components/user-menu-popover.component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,OAAO,EAIZ,KAAK,SAAS,EAEf,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAQlD,6CAA6C;AAC7C,UAAU,WAAW;IACnB,oBAAoB;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,mCAAmC;IACnC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB;;;OAGG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAChC,iCAAiC;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,kCAAkC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,M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AA2C;IAC3C,YAAY,CAAC,EAAE,2BAA2B,CAAC,cAAc,CAAC,CAAA;IAC1D,mEAAmE;IACnE,SAAS,CAAC,EAAE,2BAA2B,CAAC,WAAW,CAAC,CAAuB;IAC3E,oCAAoC;IACpC,SAAS,CAAC,EAAE,2BAA2B,CAAC,WAAW,CAAC,CAAA;IAEpD,sCAAsC;IACtC,QAAQ,CAAC,IAAI,+EAAY;IAEzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8C;IAEnE;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,sBAAsB,GAAG,IAAI;IAIxC;;;OAGG;IACH,KAAK,IAAI,MAAM;IAUf;;;OAGG;IACH,OAAO,IAAI,MAAM;IAcjB,gEAAgE;IAC1D,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;yCAvEnB,sBAAsB;2CAAtB,sBAAsB;CAgFlC;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,IAAI,CAOpD"}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
8
|
-
import { ChangeDetectorRef, Component, effect, ElementRef, inject, signal,
|
|
9
|
-
import { useAuth, useRouter, useTranslation } from '@molecule/app-angular';
|
|
8
|
+
import { ChangeDetectorRef, Component, effect, ElementRef, inject, signal, } from '@angular/core';
|
|
9
|
+
import { useAuth, useHostPresence, useRouter, useTranslation } from '@molecule/app-angular';
|
|
10
10
|
import { getClassMap } from '@molecule/app-ui';
|
|
11
|
-
import {
|
|
11
|
+
import { createDomContext } from '../utilities/dom-context.js';
|
|
12
12
|
import { nextInstanceId } from '../utilities/ids.js';
|
|
13
13
|
import { getInitials } from '../utilities/initials.js';
|
|
14
14
|
import { styleText } from '../utilities/style.js';
|
|
@@ -24,8 +24,7 @@ function UserMenuPopoverTrigger_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
24
24
|
i0.ɵɵadvance();
|
|
25
25
|
i0.ɵɵtextInterpolate(ctx);
|
|
26
26
|
} }
|
|
27
|
-
|
|
28
|
-
function UserMenuPopoverPanel_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
+
function UserMenuPopoverPanel_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
29
28
|
i0.ɵɵdomElementStart(0, "p");
|
|
30
29
|
i0.ɵɵtext(1);
|
|
31
30
|
i0.ɵɵdomElementEnd();
|
|
@@ -81,7 +80,7 @@ export class UserMenuPopover {
|
|
|
81
80
|
...(ngDevMode ? [{ debugName: "routeEffect" }] : /* istanbul ignore next */ []));
|
|
82
81
|
/** Registers the context on the host before any projected child resolves it. */
|
|
83
82
|
constructor() {
|
|
84
|
-
|
|
83
|
+
PopoverDomContext.provide(this.host.nativeElement, new UserMenuPopoverContextValue(this));
|
|
85
84
|
}
|
|
86
85
|
/**
|
|
87
86
|
* The current class map.
|
|
@@ -132,7 +131,7 @@ export class UserMenuPopover {
|
|
|
132
131
|
/** Removes listeners and the context registration (unmount). */
|
|
133
132
|
ngOnDestroy() {
|
|
134
133
|
this.removeDocumentListeners();
|
|
135
|
-
|
|
134
|
+
PopoverDomContext.remove(this.host.nativeElement);
|
|
136
135
|
}
|
|
137
136
|
/** Adds the outside-click and Escape dismiss listeners while open. */
|
|
138
137
|
addDocumentListeners() {
|
|
@@ -183,7 +182,7 @@ export class UserMenuPopover {
|
|
|
183
182
|
template: `<ng-content></ng-content>`,
|
|
184
183
|
}]
|
|
185
184
|
}], () => [], null); })();
|
|
186
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenuPopover, { className: "UserMenuPopover", filePath: "components/user-menu-popover.component.ts", lineNumber:
|
|
185
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenuPopover, { className: "UserMenuPopover", filePath: "components/user-menu-popover.component.ts", lineNumber: 126 }); })();
|
|
187
186
|
/** The popover context a `UserMenuPopover` root registers. */
|
|
188
187
|
class UserMenuPopoverContextValue {
|
|
189
188
|
root;
|
|
@@ -252,7 +251,7 @@ export class UserMenuPopoverTrigger {
|
|
|
252
251
|
* @returns The context, or null outside a popover.
|
|
253
252
|
*/
|
|
254
253
|
context() {
|
|
255
|
-
return
|
|
254
|
+
return PopoverDomContext.find(this.host.nativeElement) ?? null;
|
|
256
255
|
}
|
|
257
256
|
/**
|
|
258
257
|
* Whether the popover is open.
|
|
@@ -372,10 +371,24 @@ export class UserMenuPopoverTrigger {
|
|
|
372
371
|
</span>`,
|
|
373
372
|
}]
|
|
374
373
|
}], null, null); })();
|
|
375
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenuPopoverTrigger, { className: "UserMenuPopoverTrigger", filePath: "components/user-menu-popover.component.ts", lineNumber:
|
|
374
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenuPopoverTrigger, { className: "UserMenuPopoverTrigger", filePath: "components/user-menu-popover.component.ts", lineNumber: 329 }); })();
|
|
376
375
|
/**
|
|
377
376
|
* The popover panel: an absolutely-positioned card with an identity header
|
|
378
|
-
* and a `<nav>` wrapping the caller's items.
|
|
377
|
+
* and a `<nav>` wrapping the caller's items. The host element is the card
|
|
378
|
+
* (React's one `<div>`), and it is out of the DOM while the popover is closed
|
|
379
|
+
* (React renders `null`).
|
|
380
|
+
*
|
|
381
|
+
* Projected content is created with the consumer's view, so a closed popover's items exist while
|
|
382
|
+
* hidden: their components, effects and fetches run. React mounts them only while shown, and again
|
|
383
|
+
* each time they show. Write content with state as `*molLazy` (`MolLazy` from
|
|
384
|
+
* `@molecule/app-angular`): it is created when it shows and destroyed when it hides, as React's is.
|
|
385
|
+
*
|
|
386
|
+
* @example
|
|
387
|
+
* ```html
|
|
388
|
+
* <div mol-user-menu-popover-panel>
|
|
389
|
+
* <account-links *molLazy />
|
|
390
|
+
* </div>
|
|
391
|
+
* ```
|
|
379
392
|
*/
|
|
380
393
|
export class UserMenuPopoverPanel {
|
|
381
394
|
/** i18n key for the panel's aria-label (default `userMenu.panelLabel`). */
|
|
@@ -386,8 +399,6 @@ export class UserMenuPopoverPanel {
|
|
|
386
399
|
dataMolId = 'user-menu-panel';
|
|
387
400
|
/** Extra classes for the panel. */
|
|
388
401
|
className;
|
|
389
|
-
/** The panel element (removed from the DOM while closed). */
|
|
390
|
-
panel;
|
|
391
402
|
host = inject(ElementRef);
|
|
392
403
|
/**
|
|
393
404
|
* Reactive translation, read in the injection context. Its `t` reads the
|
|
@@ -395,9 +406,9 @@ export class UserMenuPopoverPanel {
|
|
|
395
406
|
* does not).
|
|
396
407
|
*/
|
|
397
408
|
i18n = useTranslation();
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
409
|
+
constructor() {
|
|
410
|
+
useHostPresence(() => this.open());
|
|
411
|
+
}
|
|
401
412
|
/**
|
|
402
413
|
* The current class map.
|
|
403
414
|
* @returns The UIClassMap.
|
|
@@ -410,7 +421,7 @@ export class UserMenuPopoverPanel {
|
|
|
410
421
|
* @returns The context, or null outside a popover.
|
|
411
422
|
*/
|
|
412
423
|
context() {
|
|
413
|
-
return
|
|
424
|
+
return PopoverDomContext.find(this.host.nativeElement) ?? null;
|
|
414
425
|
}
|
|
415
426
|
/**
|
|
416
427
|
* Whether the popover is open.
|
|
@@ -447,62 +458,29 @@ export class UserMenuPopoverPanel {
|
|
|
447
458
|
classes() {
|
|
448
459
|
return this.cm().cn(this.cm().userMenuPopoverPanel, this.className);
|
|
449
460
|
}
|
|
450
|
-
/** Records where the panel lives and applies the initial open state. */
|
|
451
|
-
ngAfterViewInit() {
|
|
452
|
-
const panel = this.panel?.nativeElement;
|
|
453
|
-
if (!panel)
|
|
454
|
-
return;
|
|
455
|
-
this.panelParent = panel.parentNode;
|
|
456
|
-
this.panelAnchor = panel.nextSibling;
|
|
457
|
-
this.lastOpen = this.open();
|
|
458
|
-
if (!this.lastOpen)
|
|
459
|
-
panel.remove();
|
|
460
|
-
}
|
|
461
|
-
/** Attaches or detaches the panel to match the open state (React renders null). */
|
|
462
|
-
ngDoCheck() {
|
|
463
|
-
const open = this.open();
|
|
464
|
-
if (open === this.lastOpen)
|
|
465
|
-
return;
|
|
466
|
-
this.lastOpen = open;
|
|
467
|
-
const panel = this.panel?.nativeElement;
|
|
468
|
-
if (!panel || !this.panelParent)
|
|
469
|
-
return;
|
|
470
|
-
if (open)
|
|
471
|
-
this.panelParent.insertBefore(panel, this.panelAnchor);
|
|
472
|
-
else
|
|
473
|
-
panel.remove();
|
|
474
|
-
}
|
|
475
461
|
static ɵfac = function UserMenuPopoverPanel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UserMenuPopoverPanel)(); };
|
|
476
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserMenuPopoverPanel, selectors: [["div", "mol-user-menu-popover-panel", ""]],
|
|
477
|
-
i0.ɵɵ
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panel = _t.first);
|
|
481
|
-
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], hostVars: 1, hostBindings: function UserMenuPopoverPanel_HostBindings(rf, ctx) { if (rf & 2) {
|
|
482
|
-
i0.ɵɵattribute("data-open", ctx.open() ? "true" : null);
|
|
483
|
-
} }, inputs: { ariaLabelKey: "ariaLabelKey", ariaLabelDefault: "ariaLabelDefault", dataMolId: "dataMolId", className: "className" }, ngContentSelectors: _c0, decls: 8, vars: 13, consts: [["panel", ""], [3, "id"], [3, "class"]], template: function UserMenuPopoverPanel_Template(rf, ctx) { if (rf & 1) {
|
|
462
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserMenuPopoverPanel, selectors: [["div", "mol-user-menu-popover-panel", ""]], hostVars: 4, hostBindings: function UserMenuPopoverPanel_HostBindings(rf, ctx) { if (rf & 2) {
|
|
463
|
+
i0.ɵɵattribute("id", ctx.panelId())("data-mol-id", ctx.dataMolId);
|
|
464
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
465
|
+
} }, inputs: { ariaLabelKey: "ariaLabelKey", ariaLabelDefault: "ariaLabelDefault", dataMolId: "dataMolId", className: "className" }, ngContentSelectors: _c0, decls: 6, vars: 9, consts: [[3, "class"]], template: function UserMenuPopoverPanel_Template(rf, ctx) { if (rf & 1) {
|
|
484
466
|
i0.ɵɵprojectionDef();
|
|
485
|
-
i0.ɵɵdomElementStart(0, "
|
|
486
|
-
i0.ɵɵtext(
|
|
467
|
+
i0.ɵɵdomElementStart(0, "header")(1, "p");
|
|
468
|
+
i0.ɵɵtext(2);
|
|
469
|
+
i0.ɵɵdomElementEnd();
|
|
470
|
+
i0.ɵɵconditionalCreate(3, UserMenuPopoverPanel_Conditional_3_Template, 2, 3, "p", 0);
|
|
487
471
|
i0.ɵɵdomElementEnd();
|
|
488
|
-
i0.ɵɵ
|
|
472
|
+
i0.ɵɵdomElementStart(4, "nav");
|
|
473
|
+
i0.ɵɵprojection(5);
|
|
489
474
|
i0.ɵɵdomElementEnd();
|
|
490
|
-
i0.ɵɵdomElementStart(6, "nav");
|
|
491
|
-
i0.ɵɵprojection(7);
|
|
492
|
-
i0.ɵɵdomElementEnd()();
|
|
493
475
|
} if (rf & 2) {
|
|
494
|
-
let
|
|
495
|
-
i0.ɵɵclassMap(ctx.classes());
|
|
496
|
-
i0.ɵɵdomProperty("id", ctx.panelId());
|
|
497
|
-
i0.ɵɵattribute("data-mol-id", ctx.dataMolId);
|
|
498
|
-
i0.ɵɵadvance(2);
|
|
476
|
+
let tmp_3_0;
|
|
499
477
|
i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().sp("pb", 4), ctx.cm().userMenuPopoverHeader));
|
|
500
478
|
i0.ɵɵadvance();
|
|
501
479
|
i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().textSize("sm"), ctx.cm().fontWeight("semibold")));
|
|
502
480
|
i0.ɵɵadvance();
|
|
503
481
|
i0.ɵɵtextInterpolate(ctx.displayName());
|
|
504
482
|
i0.ɵɵadvance();
|
|
505
|
-
i0.ɵɵconditional((
|
|
483
|
+
i0.ɵɵconditional((tmp_3_0 = ctx.email()) ? 3 : -1, tmp_3_0);
|
|
506
484
|
i0.ɵɵadvance();
|
|
507
485
|
i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().sp("mt", 4), ctx.cm().stack(1)));
|
|
508
486
|
i0.ɵɵattribute("aria-label", ctx.navLabel());
|
|
@@ -515,12 +493,11 @@ export class UserMenuPopoverPanel {
|
|
|
515
493
|
standalone: true,
|
|
516
494
|
inputs: ['ariaLabelKey', 'ariaLabelDefault', 'dataMolId', 'className'],
|
|
517
495
|
host: {
|
|
518
|
-
'
|
|
519
|
-
'[attr.data-
|
|
520
|
-
|
|
496
|
+
'[attr.id]': 'panelId()',
|
|
497
|
+
'[attr.data-mol-id]': 'dataMolId',
|
|
498
|
+
'[class]': 'classes()',
|
|
521
499
|
},
|
|
522
|
-
template: `<
|
|
523
|
-
<header [class]="cm().cn(cm().sp('pb', 4), cm().userMenuPopoverHeader)">
|
|
500
|
+
template: `<header [class]="cm().cn(cm().sp('pb', 4), cm().userMenuPopoverHeader)">
|
|
524
501
|
<p [class]="cm().cn(cm().textSize('sm'), cm().fontWeight('semibold'))">{{ displayName() }}</p>
|
|
525
502
|
@if (email(); as accountEmail) {
|
|
526
503
|
<p [class]="cm().cn(cm().textSize('xs'), cm().textMuted)">{{ accountEmail }}</p>
|
|
@@ -528,14 +505,10 @@ export class UserMenuPopoverPanel {
|
|
|
528
505
|
</header>
|
|
529
506
|
<nav [class]="cm().cn(cm().sp('mt', 4), cm().stack(1))" [attr.aria-label]="navLabel()">
|
|
530
507
|
<ng-content></ng-content>
|
|
531
|
-
</nav
|
|
532
|
-
</div>`,
|
|
508
|
+
</nav>`,
|
|
533
509
|
}]
|
|
534
|
-
}],
|
|
535
|
-
|
|
536
|
-
args: ['panel']
|
|
537
|
-
}] }); })();
|
|
538
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenuPopoverPanel, { className: "UserMenuPopoverPanel", filePath: "components/user-menu-popover.component.ts", lineNumber: 491 }); })();
|
|
510
|
+
}], () => [], null); })();
|
|
511
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenuPopoverPanel, { className: "UserMenuPopoverPanel", filePath: "components/user-menu-popover.component.ts", lineNumber: 502 }); })();
|
|
539
512
|
/**
|
|
540
513
|
* The sign-out nav item: closes the popover and signs out.
|
|
541
514
|
*/
|
|
@@ -569,7 +542,7 @@ export class UserMenuPopoverSignOut {
|
|
|
569
542
|
* @returns The context, or null outside a popover.
|
|
570
543
|
*/
|
|
571
544
|
context() {
|
|
572
|
-
return
|
|
545
|
+
return PopoverDomContext.find(this.host.nativeElement) ?? null;
|
|
573
546
|
}
|
|
574
547
|
/**
|
|
575
548
|
* The button label.
|
|
@@ -625,7 +598,7 @@ export class UserMenuPopoverSignOut {
|
|
|
625
598
|
template: `{{ label() }}`,
|
|
626
599
|
}]
|
|
627
600
|
}], null, null); })();
|
|
628
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenuPopoverSignOut, { className: "UserMenuPopoverSignOut", filePath: "components/user-menu-popover.component.ts", lineNumber:
|
|
601
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserMenuPopoverSignOut, { className: "UserMenuPopoverSignOut", filePath: "components/user-menu-popover.component.ts", lineNumber: 602 }); })();
|
|
629
602
|
/**
|
|
630
603
|
* Returns a callback that closes the enclosing `UserMenuPopover` (a no-op
|
|
631
604
|
* outside one).
|
|
@@ -640,7 +613,9 @@ export function useUserMenuPopoverClose() {
|
|
|
640
613
|
// Resolved at call time: a probe resolves its context in its constructor,
|
|
641
614
|
// before Angular has inserted its host into the DOM.
|
|
642
615
|
return () => {
|
|
643
|
-
|
|
616
|
+
PopoverDomContext.find(el?.nativeElement ?? null)?.setOpen(false);
|
|
644
617
|
};
|
|
645
618
|
}
|
|
619
|
+
/** The context a provider registers and its consumers find. */
|
|
620
|
+
const PopoverDomContext = createDomContext('PopoverDomContext');
|
|
646
621
|
//# sourceMappingURL=user-menu-popover.component.js.map
|