@molecule/app-ui-angular 1.4.1 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +989 -1103
- 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 +134 -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 +25 -21
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +42 -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 +38 -57
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
- package/dist/components/responsive-app-shell.component.js +138 -213
- 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 -37
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +76 -112
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +14 -11
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +47 -47
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +6 -12
- package/dist/components/user-menu-popover.component.d.ts.map +1 -1
- package/dist/components/user-menu-popover.component.js +40 -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
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { Component, ElementRef, EventEmitter, inject, Output,
|
|
8
|
-
import { useTranslation } from '@molecule/app-angular';
|
|
7
|
+
import { Component, ElementRef, EventEmitter, inject, Output, signal, TemplateRef, ViewChild, } from '@angular/core';
|
|
8
|
+
import { MolPlacement, placeContent, placeContentBefore, placeElement, setElementPresent, useHostPresence, usePlacement, useTranslation, } from '@molecule/app-angular';
|
|
9
9
|
import { I18nError } from '@molecule/app-i18n';
|
|
10
10
|
import { getClassMap } from '@molecule/app-ui';
|
|
11
|
-
import {
|
|
11
|
+
import { createDomContext } from '../utilities/dom-context.js';
|
|
12
12
|
import { hostElement } from '../utilities/element.js';
|
|
13
13
|
import { MolIconSvg, resolveIcon } from '../utilities/render-icon.js';
|
|
14
14
|
import { styleText } from '../utilities/style.js';
|
|
15
|
-
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
16
15
|
import { MolTemplateOutlet } from './template-outlet.directive.js';
|
|
17
16
|
import * as i0 from "@angular/core";
|
|
17
|
+
import * as i1 from "@molecule/app-angular";
|
|
18
18
|
const _c0 = ["descriptionSlot"];
|
|
19
19
|
const _c1 = ["childrenSlot"];
|
|
20
20
|
const _c2 = ["*"];
|
|
@@ -143,21 +143,17 @@ export class Toast {
|
|
|
143
143
|
* does not).
|
|
144
144
|
*/
|
|
145
145
|
i18n = useTranslation();
|
|
146
|
-
renderer = inject(Renderer2);
|
|
147
146
|
host = this.el.nativeElement;
|
|
148
|
-
sync = new SlotWrapper(this.el, this.renderer);
|
|
149
147
|
remaining;
|
|
150
148
|
startedAt = null;
|
|
151
149
|
timer;
|
|
152
150
|
lastDuration;
|
|
153
|
-
descriptionParent = null;
|
|
154
|
-
childrenParent = null;
|
|
155
151
|
hasChildren = false;
|
|
156
|
-
adoptedChildren = [];
|
|
157
|
-
detachedParent = null;
|
|
158
|
-
detachedAnchor = null;
|
|
159
152
|
/** Prepares the countdown state (the timer starts at view init). */
|
|
160
153
|
constructor() {
|
|
154
|
+
usePlacement((hasContent) => this.reconcile(hasContent));
|
|
155
|
+
// Leaves no element in the page while the toast is hidden (React renders null).
|
|
156
|
+
useHostPresence(() => this.visible());
|
|
161
157
|
this.remaining = this.duration;
|
|
162
158
|
this.lastDuration = this.duration;
|
|
163
159
|
}
|
|
@@ -262,33 +258,21 @@ export class Toast {
|
|
|
262
258
|
* countdown (React's mount effect, with `[duration]` deps).
|
|
263
259
|
*/
|
|
264
260
|
ngAfterViewInit() {
|
|
265
|
-
this.descriptionParent = this.descriptionSlot?.nativeElement.parentElement ?? null;
|
|
266
|
-
this.childrenParent = this.childrenSlot?.nativeElement.parentElement ?? null;
|
|
267
|
-
this.hasChildren = hasNodes(this.childrenSlot?.nativeElement);
|
|
268
|
-
this.adoptChildren();
|
|
269
261
|
this.restart();
|
|
270
262
|
}
|
|
271
263
|
/**
|
|
272
|
-
*
|
|
264
|
+
* Restarts the countdown when the `duration` input changes (React's
|
|
265
|
+
* `[duration]` effect).
|
|
273
266
|
*/
|
|
274
267
|
ngDoCheck() {
|
|
275
268
|
if (this.duration !== this.lastDuration) {
|
|
276
269
|
this.lastDuration = this.duration;
|
|
277
270
|
this.restart();
|
|
278
271
|
}
|
|
279
|
-
this.syncDescription();
|
|
280
|
-
this.syncHostVisibility();
|
|
281
272
|
}
|
|
282
273
|
/** Stops the countdown (React's unmount cleanup). */
|
|
283
274
|
ngOnDestroy() {
|
|
284
275
|
this.clearTimer();
|
|
285
|
-
this.adoptedChildren = [];
|
|
286
|
-
// The host must be inside its parent for Angular's own removal to succeed.
|
|
287
|
-
if (!this.host.isConnected && this.detachedParent) {
|
|
288
|
-
this.detachedParent.insertBefore(this.host, this.detachedAnchor);
|
|
289
|
-
this.detachedParent = null;
|
|
290
|
-
this.detachedAnchor = null;
|
|
291
|
-
}
|
|
292
276
|
}
|
|
293
277
|
/** React's effect body: reset the remaining time and start counting. */
|
|
294
278
|
restart() {
|
|
@@ -317,6 +301,17 @@ export class Toast {
|
|
|
317
301
|
this.dismiss.emit();
|
|
318
302
|
}, ms);
|
|
319
303
|
}
|
|
304
|
+
/**
|
|
305
|
+
* Reads the children slot and moves the projected children into the
|
|
306
|
+
* description wrapper (React renders them there) unless the description
|
|
307
|
+
* prop wins.
|
|
308
|
+
*
|
|
309
|
+
* @param hasContent - Reads whether a slot has content.
|
|
310
|
+
*/
|
|
311
|
+
reconcile(hasContent) {
|
|
312
|
+
this.hasChildren = hasContent(this.childrenSlot?.nativeElement);
|
|
313
|
+
this.adoptChildren();
|
|
314
|
+
}
|
|
320
315
|
/**
|
|
321
316
|
* Moves the projected children into the description wrapper (React renders
|
|
322
317
|
* them there) unless the description prop wins.
|
|
@@ -327,40 +322,20 @@ export class Toast {
|
|
|
327
322
|
return;
|
|
328
323
|
const wrapper = this.descriptionSlot?.nativeElement;
|
|
329
324
|
const descWins = this.descriptionText() !== null || this.descriptionTemplate() !== null;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
this.sync.sync(span, false, this.childrenParent ?? undefined);
|
|
325
|
+
setElementPresent(span, false);
|
|
326
|
+
if (wrapper && !descWins && this.hasChildren)
|
|
327
|
+
placeContent(span, wrapper);
|
|
328
|
+
else
|
|
329
|
+
placeContent(span, null);
|
|
336
330
|
this.syncDescription();
|
|
337
331
|
}
|
|
338
|
-
/**
|
|
339
|
-
* Removes the host element from the DOM when React renders null (the toast
|
|
340
|
-
* dismissed itself), and restores it before Angular removes it on destroy.
|
|
341
|
-
*/
|
|
342
|
-
syncHostVisibility() {
|
|
343
|
-
const host = this.host;
|
|
344
|
-
if (!this.visible()) {
|
|
345
|
-
if (host.isConnected) {
|
|
346
|
-
this.detachedParent = host.parentNode;
|
|
347
|
-
this.detachedAnchor = host.nextSibling;
|
|
348
|
-
host.parentNode?.removeChild(host);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
else if (this.detachedParent && !host.isConnected) {
|
|
352
|
-
this.detachedParent.insertBefore(host, this.detachedAnchor);
|
|
353
|
-
this.detachedParent = null;
|
|
354
|
-
this.detachedAnchor = null;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
332
|
/** Applies React's `{!!(description || children) && <div>…</div>}`. */
|
|
358
333
|
syncDescription() {
|
|
359
334
|
const wrapper = this.descriptionSlot?.nativeElement;
|
|
360
335
|
if (!wrapper)
|
|
361
336
|
return;
|
|
362
337
|
const hasDescription = this.descriptionText() !== null || this.descriptionTemplate() !== null;
|
|
363
|
-
|
|
338
|
+
setElementPresent(wrapper, hasDescription || this.hasChildren);
|
|
364
339
|
}
|
|
365
340
|
static ɵfac = function Toast_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Toast)(); };
|
|
366
341
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Toast, selectors: [["div", "mol-toast", ""]], viewQuery: function Toast_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -375,7 +350,7 @@ export class Toast {
|
|
|
375
350
|
i0.ɵɵattribute("title", null)("data-testid", ctx.testId)("data-mol-id", ctx.molId())("id", ctx.id)("role", ctx.role())("data-state", ctx.visible() ? "open" : null);
|
|
376
351
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
377
352
|
i0.ɵɵclassMap(ctx.classes());
|
|
378
|
-
} }, inputs: { title: "title", description: "description", status: "status", duration: "duration", dismissible: "dismissible", closeLabel: "closeLabel", className: "className", style: "style", testId: "testId", position: "position", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], id: "id" }, outputs: { dismiss: "dismiss" }, ngContentSelectors: _c2, decls: 11, vars: 9, consts: [["descriptionSlot", ""], ["childrenSlot", ""], [3, "class"], [3, "molTemplateOutlet"], ["type", "button", 3, "class"], ["mol-icon", "", 3, "data"], ["type", "button", 3, "click"]], template: function Toast_Template(rf, ctx) { if (rf & 1) {
|
|
353
|
+
} }, inputs: { title: "title", description: "description", status: "status", duration: "duration", dismissible: "dismissible", closeLabel: "closeLabel", className: "className", style: "style", testId: "testId", position: "position", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], id: "id" }, outputs: { dismiss: "dismiss" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c2, decls: 11, vars: 9, consts: [["descriptionSlot", ""], ["childrenSlot", ""], [3, "class"], [3, "molTemplateOutlet"], ["type", "button", 3, "class"], ["mol-icon", "", 3, "data"], ["type", "button", 3, "click"]], template: function Toast_Template(rf, ctx) { if (rf & 1) {
|
|
379
354
|
i0.ɵɵprojectionDef();
|
|
380
355
|
i0.ɵɵconditionalCreate(0, Toast_Conditional_0_Template, 2, 3, "span", 2);
|
|
381
356
|
i0.ɵɵelementStart(1, "div");
|
|
@@ -410,6 +385,7 @@ export class Toast {
|
|
|
410
385
|
args: [{
|
|
411
386
|
selector: 'div[mol-toast]',
|
|
412
387
|
standalone: true,
|
|
388
|
+
hostDirectives: [MolPlacement],
|
|
413
389
|
imports: [MolIconSvg, MolTemplateOutlet],
|
|
414
390
|
inputs: [
|
|
415
391
|
'title',
|
|
@@ -478,13 +454,13 @@ export class Toast {
|
|
|
478
454
|
type: ViewChild,
|
|
479
455
|
args: ['childrenSlot']
|
|
480
456
|
}] }); })();
|
|
481
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Toast, { className: "Toast", filePath: "components/toast.component.ts", lineNumber:
|
|
457
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Toast, { className: "Toast", filePath: "components/toast.component.ts", lineNumber: 157 }); })();
|
|
482
458
|
/**
|
|
483
459
|
* Toast container: positions toasts on screen via a body portal.
|
|
484
460
|
*
|
|
485
|
-
* React's root is a portal
|
|
486
|
-
*
|
|
487
|
-
*
|
|
461
|
+
* React's root is a portal: the container `<div>` is moved into
|
|
462
|
+
* `document.body` and the host element leaves the page, so nothing is left at
|
|
463
|
+
* the component's place.
|
|
488
464
|
*/
|
|
489
465
|
export class ToastContainer {
|
|
490
466
|
/** The container position (default `bottom-right`). */
|
|
@@ -503,6 +479,14 @@ export class ToastContainer {
|
|
|
503
479
|
/** The element a caller's ref receives: the positioned container `<div>`. */
|
|
504
480
|
element = this.inner.asReadonly();
|
|
505
481
|
host = inject(ElementRef);
|
|
482
|
+
/** Renders the container in `document.body` (React's portal) and takes the host out of the page. */
|
|
483
|
+
constructor() {
|
|
484
|
+
usePlacement(() => {
|
|
485
|
+
if (typeof document !== 'undefined')
|
|
486
|
+
placeElement(this.container?.nativeElement, document.body);
|
|
487
|
+
setElementPresent(this.host.nativeElement, false);
|
|
488
|
+
});
|
|
489
|
+
}
|
|
506
490
|
/**
|
|
507
491
|
* The current class map.
|
|
508
492
|
* @returns The UIClassMap.
|
|
@@ -517,25 +501,13 @@ export class ToastContainer {
|
|
|
517
501
|
classes() {
|
|
518
502
|
return this.cm().cn(this.cm().toastContainer({ position: this.position }), this.className);
|
|
519
503
|
}
|
|
520
|
-
/** Moves the container to `document.body` (React's portal). */
|
|
521
|
-
ngAfterViewInit() {
|
|
522
|
-
const el = this.container?.nativeElement;
|
|
523
|
-
if (el && typeof document !== 'undefined')
|
|
524
|
-
document.body.appendChild(el);
|
|
525
|
-
}
|
|
526
|
-
/** Moves the container back under the host so Angular can remove it. */
|
|
527
|
-
ngOnDestroy() {
|
|
528
|
-
const el = this.container?.nativeElement;
|
|
529
|
-
if (el && this.host.nativeElement.parentNode)
|
|
530
|
-
this.host.nativeElement.appendChild(el);
|
|
531
|
-
}
|
|
532
504
|
static ɵfac = function ToastContainer_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToastContainer)(); };
|
|
533
505
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToastContainer, selectors: [["mol-toast-container"]], viewQuery: function ToastContainer_Query(rf, ctx) { if (rf & 1) {
|
|
534
506
|
i0.ɵɵviewQuery(_c3, 5);
|
|
535
507
|
} if (rf & 2) {
|
|
536
508
|
let _t;
|
|
537
509
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerQuery = _t.first);
|
|
538
|
-
} },
|
|
510
|
+
} }, inputs: { position: "position", className: "className" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c2, decls: 3, vars: 2, consts: [["container", ""]], template: function ToastContainer_Template(rf, ctx) { if (rf & 1) {
|
|
539
511
|
i0.ɵɵprojectionDef();
|
|
540
512
|
i0.ɵɵdomElementStart(0, "div", null, 0);
|
|
541
513
|
i0.ɵɵprojection(2);
|
|
@@ -549,25 +521,26 @@ export class ToastContainer {
|
|
|
549
521
|
args: [{
|
|
550
522
|
selector: 'mol-toast-container',
|
|
551
523
|
standalone: true,
|
|
524
|
+
hostDirectives: [MolPlacement],
|
|
552
525
|
inputs: ['position', 'className'],
|
|
553
|
-
host: {
|
|
554
|
-
'data-parity-unwrap': '',
|
|
555
|
-
style: 'display: contents',
|
|
556
|
-
},
|
|
557
526
|
template: `<div #container [class]="classes()"><ng-content></ng-content></div>`,
|
|
558
527
|
}]
|
|
559
|
-
}],
|
|
528
|
+
}], () => [], { containerQuery: [{
|
|
560
529
|
type: ViewChild,
|
|
561
530
|
args: ['container']
|
|
562
531
|
}] }); })();
|
|
563
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastContainer, { className: "ToastContainer", filePath: "components/toast.component.ts", lineNumber:
|
|
532
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastContainer, { className: "ToastContainer", filePath: "components/toast.component.ts", lineNumber: 435 }); })();
|
|
564
533
|
/**
|
|
565
534
|
* ToastProvider: manages global toast state and renders children plus a
|
|
566
535
|
* positioned toast container (React's context provider + portal).
|
|
567
536
|
*
|
|
568
|
-
* The context value is registered on
|
|
537
|
+
* The context value is registered on a DOM element (React context flows
|
|
569
538
|
* through the rendered tree, which Angular DI cannot reach for projected
|
|
570
|
-
* content); `useToast()` reads it through the DOM ancestors.
|
|
539
|
+
* content); `useToast()` reads it through the DOM ancestors. React's provider
|
|
540
|
+
* renders its children and the container's portal, no element of its own, so
|
|
541
|
+
* the children render in front of the host and the host leaves the page; the
|
|
542
|
+
* context is registered on the parent element, the one whose child list the
|
|
543
|
+
* children now belong to.
|
|
571
544
|
*/
|
|
572
545
|
export class ToastProvider {
|
|
573
546
|
/** The default position for toasts (default `bottom-right`). */
|
|
@@ -580,12 +553,25 @@ export class ToastProvider {
|
|
|
580
553
|
toasts = signal([], /* @ts-ignore */
|
|
581
554
|
...(ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []));
|
|
582
555
|
host = inject(ElementRef);
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
556
|
+
/** The value consumers read; its closures keep the live toast state. */
|
|
557
|
+
value = new ToastContextImplementation(this);
|
|
558
|
+
/**
|
|
559
|
+
* Renders the children in front of the host (which leaves the page),
|
|
560
|
+
* registers the context where they render, and portals the container.
|
|
561
|
+
*/
|
|
587
562
|
constructor() {
|
|
588
|
-
|
|
563
|
+
ToastDomContext.provide(this.host.nativeElement, this.value);
|
|
564
|
+
usePlacement(() => {
|
|
565
|
+
const capture = this.childrenCapture?.nativeElement;
|
|
566
|
+
const host = this.host.nativeElement;
|
|
567
|
+
if (capture) {
|
|
568
|
+
placeContentBefore(capture, host);
|
|
569
|
+
setElementPresent(capture, false);
|
|
570
|
+
}
|
|
571
|
+
setElementPresent(host, false);
|
|
572
|
+
if (typeof document !== 'undefined')
|
|
573
|
+
placeElement(this.container?.nativeElement, document.body);
|
|
574
|
+
});
|
|
589
575
|
}
|
|
590
576
|
/**
|
|
591
577
|
* The current class map.
|
|
@@ -619,30 +605,9 @@ export class ToastProvider {
|
|
|
619
605
|
removeToast(id) {
|
|
620
606
|
this.toasts.update((prev) => prev.filter((toast) => toast.id !== id));
|
|
621
607
|
}
|
|
622
|
-
/**
|
|
623
|
-
* Adopts the children bare into the host and moves the container to
|
|
624
|
-
* `document.body` (React's portal).
|
|
625
|
-
*/
|
|
626
|
-
ngAfterViewInit() {
|
|
627
|
-
const capture = this.childrenCapture?.nativeElement;
|
|
628
|
-
const host = this.host.nativeElement;
|
|
629
|
-
if (capture) {
|
|
630
|
-
this.adopted = Array.from(capture.childNodes);
|
|
631
|
-
for (const node of this.adopted)
|
|
632
|
-
host.appendChild(node);
|
|
633
|
-
this.sync.sync(capture, false, host);
|
|
634
|
-
}
|
|
635
|
-
const container = this.container?.nativeElement;
|
|
636
|
-
if (container && typeof document !== 'undefined')
|
|
637
|
-
document.body.appendChild(container);
|
|
638
|
-
}
|
|
639
|
-
/** Removes the context registration and restores the container (unmount). */
|
|
608
|
+
/** Removes the context registration (unmount). */
|
|
640
609
|
ngOnDestroy() {
|
|
641
|
-
|
|
642
|
-
const container = this.container?.nativeElement;
|
|
643
|
-
if (container && this.host.nativeElement.parentNode)
|
|
644
|
-
this.host.nativeElement.appendChild(container);
|
|
645
|
-
this.adopted = [];
|
|
610
|
+
ToastDomContext.remove(this.host.nativeElement);
|
|
646
611
|
}
|
|
647
612
|
static ɵfac = function ToastProvider_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToastProvider)(); };
|
|
648
613
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToastProvider, selectors: [["mol-toast-provider"]], viewQuery: function ToastProvider_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -651,7 +616,7 @@ export class ToastProvider {
|
|
|
651
616
|
let _t;
|
|
652
617
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childrenCapture = _t.first);
|
|
653
618
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
654
|
-
} },
|
|
619
|
+
} }, inputs: { position: "position" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c2, decls: 7, vars: 2, consts: [["childrenCapture", ""], ["container", ""], ["mol-toast", "", 3, "title", "description", "status", "duration", "dismissible", "closeLabel", "className", "style", "testId", "automationId", "id"], ["mol-toast", "", 3, "dismiss", "title", "description", "status", "duration", "dismissible", "closeLabel", "className", "testId", "automationId", "id"]], template: function ToastProvider_Template(rf, ctx) { if (rf & 1) {
|
|
655
620
|
i0.ɵɵprojectionDef();
|
|
656
621
|
i0.ɵɵelementStart(0, "span", null, 0);
|
|
657
622
|
i0.ɵɵprojection(2);
|
|
@@ -671,12 +636,9 @@ export class ToastProvider {
|
|
|
671
636
|
args: [{
|
|
672
637
|
selector: 'mol-toast-provider',
|
|
673
638
|
standalone: true,
|
|
639
|
+
hostDirectives: [MolPlacement],
|
|
674
640
|
imports: [Toast],
|
|
675
641
|
inputs: ['position'],
|
|
676
|
-
host: {
|
|
677
|
-
'data-parity-unwrap': '',
|
|
678
|
-
style: 'display: contents',
|
|
679
|
-
},
|
|
680
642
|
template: `<span #childrenCapture><ng-content></ng-content></span>
|
|
681
643
|
<div #container [class]="containerClasses()">
|
|
682
644
|
@for (toast of toasts(); track toast.id) {
|
|
@@ -705,7 +667,7 @@ export class ToastProvider {
|
|
|
705
667
|
type: ViewChild,
|
|
706
668
|
args: ['container']
|
|
707
669
|
}] }); })();
|
|
708
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastProvider, { className: "ToastProvider", filePath: "components/toast.component.ts", lineNumber:
|
|
670
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastProvider, { className: "ToastProvider", filePath: "components/toast.component.ts", lineNumber: 521 }); })();
|
|
709
671
|
/** The toast context a `ToastProvider` registers. */
|
|
710
672
|
class ToastContextImplementation {
|
|
711
673
|
provider;
|
|
@@ -749,7 +711,7 @@ class ToastContextImplementation {
|
|
|
749
711
|
export function useToast() {
|
|
750
712
|
const el = inject(ElementRef, { optional: true });
|
|
751
713
|
const resolve = () => {
|
|
752
|
-
const found =
|
|
714
|
+
const found = ToastDomContext.find(el?.nativeElement ?? null);
|
|
753
715
|
if (!found) {
|
|
754
716
|
// Thrown outside rendering (a hook used outside its provider), so the
|
|
755
717
|
// English fallback travels with the error instead of the static `t`.
|
|
@@ -767,4 +729,6 @@ export function useToast() {
|
|
|
767
729
|
removeToast: (id) => resolve().removeToast(id),
|
|
768
730
|
};
|
|
769
731
|
}
|
|
732
|
+
/** The context a provider registers and its consumers find. */
|
|
733
|
+
const ToastDomContext = createDomContext('ToastDomContext');
|
|
770
734
|
//# sourceMappingURL=toast.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.component.js","sourceRoot":"","sources":["../../src/components/toast.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,YAAY,EACZ,MAAM,EAEN,MAAM,EACN,SAAS,EACT,MAAM,EACN,WAAW,EACX,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAA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file":"toast.component.js","sourceRoot":"","sources":["../../src/components/toast.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,YAAY,EACZ,MAAM,EAEN,MAAM,EACN,MAAM,EACN,WAAW,EACX,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EAEjB,eAAe,EACf,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAG9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEtE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;;;;;;;IAyF5D,4BAAsC;;IAAA,yBAA8B;IAAA,iBAAO;;;IAArE,2CAA+B;IAAe,cAAa;IAAb,0BAAa;;;IAI/D,2BAA+B;IAAA,YAAW;IAAA,iBAAM;;;IAA3C,qCAAyB;IAAC,cAAW;IAAX,kCAAW;;;IAIxC,YACF;;IADE,oCACF;;;;IAMF,iCAKC;IADC,0KAAS,sBAAe,KAAC;;IAEzB,yBAAqC;IACvC,iBAAS;;;IALP,qCAAyB;;IAIX,cAAoB;IAApB,yCAAoB;;;;;;;IA8VlC,8BAcC;IADC,qMAAW,+BAAqB,KAAC;IAClC,iBAAM;;;IALL,6BAAqB;IAGrB,AADA,AADA,AAFA,AADA,AADA,AADA,AADA,AADA,AADA,sCAAqB,qCACY,qCACA,uCACE,6CACM,mCACV,iCACF,2BAEN,uCACY,mB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,aAAa,IAAI,IAAI,CAAC,CAAA;QAC7D,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,sEAAsE;YACtE,qEAAqE;YACrE,MAAM,IAAI,SAAS,CACjB,qCAAqC,EACrC,SAAS,EACT,8CAA8C,CAC/C,CAAA;QACH,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC,CAAA;IACD,0EAA0E;IAC1E,sDAAsD;IACtD,OAAO;QACL,IAAI,MAAM;YACR,OAAO,OAAO,EAAE,CAAC,MAAM,CAAA;QACzB,CAAC;QACD,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC9C,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;KAC/C,CAAA;AACH,CAAC;AAED,+DAA+D;AAC/D,MAAM,eAAe,GAAG,gBAAgB,CAAoB,iBAAiB,CAAC,CAAA"}
|
|
@@ -8,14 +8,15 @@ import { type AfterViewChecked, type AfterViewInit, type DoCheck, ElementRef, ty
|
|
|
8
8
|
import type { MouseEventHandler, TooltipPlacement, UIClassMap } from '@molecule/app-ui';
|
|
9
9
|
import type { HasElement } from '../utilities/element.js';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@molecule/app-angular";
|
|
11
12
|
/**
|
|
12
13
|
* Tooltip component.
|
|
13
14
|
*
|
|
14
15
|
* React's root is a FRAGMENT (a trigger wrapper `<div>` plus a portal), so
|
|
15
|
-
* the
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* the trigger wrapper renders in front of the host (`placeElementBefore`),
|
|
17
|
+
* the host itself leaves the DOM, and the portal element renders in
|
|
18
|
+
* `document.body` while visible: the rendered tree and focus paths are
|
|
19
|
+
* React's. A single-element trigger receives `aria-describedby` while the
|
|
19
20
|
* tooltip shows; show/hide are coordinated across instances exactly like
|
|
20
21
|
* React's module-level `activeTooltips` map.
|
|
21
22
|
*/
|
|
@@ -42,7 +43,11 @@ export declare class Tooltip implements AfterViewInit, AfterViewChecked, DoCheck
|
|
|
42
43
|
id?: string;
|
|
43
44
|
/** The visible box's `title` attribute (React's rest spread). */
|
|
44
45
|
title?: string;
|
|
45
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* A caller's double-click handler on the visible box (React spreads it there).
|
|
48
|
+
*
|
|
49
|
+
* @deprecated Bind `(dblclick)` on the tag: what a caller binds there lands on the box.
|
|
50
|
+
*/
|
|
46
51
|
onDoubleClick?: MouseEventHandler;
|
|
47
52
|
/** The generated tooltip id (the normalizer renumbers it). */
|
|
48
53
|
readonly tooltipId: string;
|
|
@@ -79,14 +84,12 @@ export declare class Tooltip implements AfterViewInit, AfterViewChecked, DoCheck
|
|
|
79
84
|
private readonly hideListener;
|
|
80
85
|
private readonly escapeListener;
|
|
81
86
|
private escapeBound;
|
|
82
|
-
private attached;
|
|
83
87
|
private lastVisible;
|
|
84
88
|
/** The rendered content the current position was measured for. */
|
|
85
89
|
private lastContentText;
|
|
86
90
|
/** The placement the current position was measured for. */
|
|
87
91
|
private lastPlacement;
|
|
88
92
|
private associateEl;
|
|
89
|
-
private hostParent;
|
|
90
93
|
/** The `data-mol-id` a caller bound on the host (React spreads it onto the tooltip box). */
|
|
91
94
|
private externalMolId;
|
|
92
95
|
/**
|
|
@@ -150,8 +153,8 @@ export declare class Tooltip implements AfterViewInit, AfterViewChecked, DoCheck
|
|
|
150
153
|
*/
|
|
151
154
|
handleKeyDown(event: KeyboardEvent): void;
|
|
152
155
|
/**
|
|
153
|
-
*
|
|
154
|
-
*
|
|
156
|
+
* Starts hidden (the trigger wrapper and its children are placed by the
|
|
157
|
+
* placement function in the constructor).
|
|
155
158
|
*/
|
|
156
159
|
ngAfterViewInit(): void;
|
|
157
160
|
/**
|
|
@@ -165,7 +168,7 @@ export declare class Tooltip implements AfterViewInit, AfterViewChecked, DoCheck
|
|
|
165
168
|
* (`repositionForContentChange`), matching React's layout effect.
|
|
166
169
|
*/
|
|
167
170
|
ngDoCheck(): void;
|
|
168
|
-
/** Removes listeners/timers and
|
|
171
|
+
/** Removes listeners/timers and drops the trigger association (unmount). */
|
|
169
172
|
ngOnDestroy(): void;
|
|
170
173
|
/** Attaches the portal to `document.body`, positions it and associates it. */
|
|
171
174
|
private attachPortal;
|
|
@@ -174,6 +177,6 @@ export declare class Tooltip implements AfterViewInit, AfterViewChecked, DoCheck
|
|
|
174
177
|
/** Measures the trigger and tooltip and updates the clamped position. */
|
|
175
178
|
private updatePosition;
|
|
176
179
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tooltip, never>;
|
|
177
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tooltip, "mol-tooltip", never, { "content": { "alias": "content"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "hasArrow": { "alias": "hasArrow"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; "id": { "alias": "id"; "required": false; }; "title": { "alias": "title"; "required": false; }; "onDoubleClick": { "alias": "onDoubleClick"; "required": false; }; }, {}, never, ["*", "[slot=content]"], true,
|
|
180
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tooltip, "mol-tooltip", never, { "content": { "alias": "content"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "hasArrow": { "alias": "hasArrow"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; "id": { "alias": "id"; "required": false; }; "title": { "alias": "title"; "required": false; }; "onDoubleClick": { "alias": "onDoubleClick"; "required": false; }; }, {}, never, ["*", "[slot=content]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
178
181
|
}
|
|
179
182
|
//# sourceMappingURL=tooltip.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAGlB,KAAK,OAAO,EACZ,UAAU,EAEV,KAAK,SAAS,EAGf,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAGlB,KAAK,OAAO,EACZ,UAAU,EAEV,KAAK,SAAS,EAGf,MAAM,eAAe,CAAA;AAWtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;;;AAwHzD;;;;;;;;;;GAUG;AACH,qBAoDa,OACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC;IAE1F,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6CAA6C;IAC7C,SAAS,EAAE,gBAAgB,CAAQ;IACnC,mCAAmC;IACnC,KAAK,SAAI;IACT,yCAAyC;IACzC,QAAQ,UAAQ;IAChB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4DAA4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