@molecule/app-ui-angular 1.2.1 → 1.3.0
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 +2744 -912
- package/dist/components/accordion.component.d.ts +17 -2
- package/dist/components/accordion.component.d.ts.map +1 -1
- package/dist/components/accordion.component.js +31 -7
- package/dist/components/accordion.component.js.map +1 -1
- package/dist/components/alert.component.d.ts +15 -2
- package/dist/components/alert.component.d.ts.map +1 -1
- package/dist/components/alert.component.js +25 -4
- package/dist/components/alert.component.js.map +1 -1
- package/dist/components/auth-guard.component.d.ts +41 -9
- package/dist/components/auth-guard.component.d.ts.map +1 -1
- package/dist/components/auth-guard.component.js +58 -23
- package/dist/components/auth-guard.component.js.map +1 -1
- package/dist/components/avatar.component.d.ts +15 -2
- package/dist/components/avatar.component.d.ts.map +1 -1
- package/dist/components/avatar.component.js +35 -5
- package/dist/components/avatar.component.js.map +1 -1
- package/dist/components/badge.component.d.ts +15 -2
- package/dist/components/badge.component.d.ts.map +1 -1
- package/dist/components/badge.component.js +35 -6
- package/dist/components/badge.component.js.map +1 -1
- package/dist/components/button.component.d.ts +20 -2
- package/dist/components/button.component.d.ts.map +1 -1
- package/dist/components/button.component.js +30 -4
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/card.component.d.ts +67 -9
- package/dist/components/card.component.d.ts.map +1 -1
- package/dist/components/card.component.js +99 -17
- package/dist/components/card.component.js.map +1 -1
- package/dist/components/checkbox.component.d.ts +35 -5
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +59 -9
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-button.component.d.ts +85 -17
- package/dist/components/confirm-button.component.d.ts.map +1 -1
- package/dist/components/confirm-button.component.js +112 -25
- package/dist/components/confirm-button.component.js.map +1 -1
- package/dist/components/confirm-dialog.component.d.ts +50 -13
- package/dist/components/confirm-dialog.component.d.ts.map +1 -1
- package/dist/components/confirm-dialog.component.js +118 -31
- package/dist/components/confirm-dialog.component.js.map +1 -1
- package/dist/components/dropdown.component.d.ts +30 -4
- package/dist/components/dropdown.component.d.ts.map +1 -1
- package/dist/components/dropdown.component.js +80 -13
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/empty-state.component.d.ts +5 -1
- package/dist/components/empty-state.component.d.ts.map +1 -1
- package/dist/components/empty-state.component.js +5 -1
- package/dist/components/empty-state.component.js.map +1 -1
- package/dist/components/floating-input.component.d.ts +18 -4
- package/dist/components/floating-input.component.d.ts.map +1 -1
- package/dist/components/floating-input.component.js +38 -8
- package/dist/components/floating-input.component.js.map +1 -1
- package/dist/components/form-field.component.d.ts +14 -2
- package/dist/components/form-field.component.d.ts.map +1 -1
- package/dist/components/form-field.component.js +34 -5
- package/dist/components/form-field.component.js.map +1 -1
- package/dist/components/form.component.d.ts +61 -15
- package/dist/components/form.component.d.ts.map +1 -1
- package/dist/components/form.component.js +65 -14
- package/dist/components/form.component.js.map +1 -1
- package/dist/components/icon.component.d.ts +22 -4
- package/dist/components/icon.component.d.ts.map +1 -1
- package/dist/components/icon.component.js +1 -1
- package/dist/components/icon.component.js.map +1 -1
- package/dist/components/input.component.d.ts +34 -4
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +66 -11
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/label.component.d.ts +5 -1
- package/dist/components/label.component.d.ts.map +1 -1
- package/dist/components/label.component.js +6 -2
- package/dist/components/label.component.js.map +1 -1
- package/dist/components/language-picker.component.d.ts +44 -8
- package/dist/components/language-picker.component.d.ts.map +1 -1
- package/dist/components/language-picker.component.js +29 -17
- package/dist/components/language-picker.component.js.map +1 -1
- package/dist/components/layout.component.d.ts +57 -8
- package/dist/components/layout.component.d.ts.map +1 -1
- package/dist/components/layout.component.js +134 -21
- package/dist/components/layout.component.js.map +1 -1
- package/dist/components/load-error-banner.component.d.ts +39 -7
- package/dist/components/load-error-banner.component.d.ts.map +1 -1
- package/dist/components/load-error-banner.component.js +68 -21
- package/dist/components/load-error-banner.component.js.map +1 -1
- package/dist/components/modal.component.d.ts +20 -3
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +40 -6
- package/dist/components/modal.component.js.map +1 -1
- package/dist/components/optimistic-toggle-button.component.d.ts +80 -19
- package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -1
- package/dist/components/optimistic-toggle-button.component.js +86 -25
- package/dist/components/optimistic-toggle-button.component.js.map +1 -1
- package/dist/components/page-header.component.d.ts +5 -1
- package/dist/components/page-header.component.d.ts.map +1 -1
- package/dist/components/page-header.component.js +5 -1
- package/dist/components/page-header.component.js.map +1 -1
- package/dist/components/page-shell.component.d.ts +5 -1
- package/dist/components/page-shell.component.d.ts.map +1 -1
- package/dist/components/page-shell.component.js +5 -1
- package/dist/components/page-shell.component.js.map +1 -1
- package/dist/components/pagination.component.d.ts +15 -2
- package/dist/components/pagination.component.d.ts.map +1 -1
- package/dist/components/pagination.component.js +26 -5
- package/dist/components/pagination.component.js.map +1 -1
- package/dist/components/panel-close.component.d.ts +10 -1
- package/dist/components/panel-close.component.d.ts.map +1 -1
- package/dist/components/panel-close.component.js +1 -1
- package/dist/components/panel-close.component.js.map +1 -1
- package/dist/components/progress.component.d.ts +51 -8
- package/dist/components/progress.component.d.ts.map +1 -1
- package/dist/components/progress.component.js +26 -5
- package/dist/components/progress.component.js.map +1 -1
- package/dist/components/prompt-dialog.component.d.ts +59 -16
- package/dist/components/prompt-dialog.component.d.ts.map +1 -1
- package/dist/components/prompt-dialog.component.js +129 -41
- package/dist/components/prompt-dialog.component.js.map +1 -1
- package/dist/components/radio-group.component.d.ts +16 -2
- package/dist/components/radio-group.component.d.ts.map +1 -1
- package/dist/components/radio-group.component.js +28 -5
- package/dist/components/radio-group.component.js.map +1 -1
- package/dist/components/responsive-app-shell.component.d.ts +155 -31
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
- package/dist/components/responsive-app-shell.component.js +163 -54
- package/dist/components/responsive-app-shell.component.js.map +1 -1
- package/dist/components/select.component.d.ts +29 -4
- package/dist/components/select.component.d.ts.map +1 -1
- package/dist/components/select.component.js +55 -9
- package/dist/components/select.component.js.map +1 -1
- package/dist/components/separator.component.d.ts +37 -7
- package/dist/components/separator.component.d.ts.map +1 -1
- package/dist/components/separator.component.js +33 -6
- package/dist/components/separator.component.js.map +1 -1
- package/dist/components/sidebar-user-card.component.d.ts +28 -7
- package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
- package/dist/components/sidebar-user-card.component.js +1 -1
- package/dist/components/sidebar-user-card.component.js.map +1 -1
- package/dist/components/skeleton.component.d.ts +23 -4
- package/dist/components/skeleton.component.d.ts.map +1 -1
- package/dist/components/skeleton.component.js +34 -7
- package/dist/components/skeleton.component.js.map +1 -1
- package/dist/components/spinner.component.d.ts +15 -2
- package/dist/components/spinner.component.d.ts.map +1 -1
- package/dist/components/spinner.component.js +34 -6
- package/dist/components/spinner.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +30 -7
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +56 -11
- package/dist/components/switch.component.js.map +1 -1
- package/dist/components/table.component.d.ts +29 -3
- package/dist/components/table.component.d.ts.map +1 -1
- package/dist/components/table.component.js +63 -8
- package/dist/components/table.component.js.map +1 -1
- package/dist/components/tabs.component.d.ts +18 -3
- package/dist/components/tabs.component.d.ts.map +1 -1
- package/dist/components/tabs.component.js +74 -39
- package/dist/components/tabs.component.js.map +1 -1
- package/dist/components/textarea.component.d.ts +29 -4
- package/dist/components/textarea.component.d.ts.map +1 -1
- package/dist/components/textarea.component.js +55 -9
- package/dist/components/textarea.component.js.map +1 -1
- package/dist/components/theme-toggle.component.d.ts +25 -6
- package/dist/components/theme-toggle.component.d.ts.map +1 -1
- package/dist/components/theme-toggle.component.js +1 -1
- package/dist/components/theme-toggle.component.js.map +1 -1
- package/dist/components/toast.component.d.ts +27 -6
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +48 -14
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +57 -5
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +103 -11
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +68 -14
- package/dist/components/user-menu-popover.component.d.ts.map +1 -1
- package/dist/components/user-menu-popover.component.js +4 -4
- package/dist/components/user-menu-popover.component.js.map +1 -1
- package/dist/components/user-menu.component.d.ts +33 -9
- package/dist/components/user-menu.component.d.ts.map +1 -1
- package/dist/components/user-menu.component.js +1 -1
- package/dist/components/user-menu.component.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utilities/element-props.d.ts +78 -0
- package/dist/utilities/element-props.d.ts.map +1 -0
- package/dist/utilities/element-props.js +166 -0
- package/dist/utilities/element-props.js.map +1 -0
- package/dist/utilities/element.d.ts +34 -0
- package/dist/utilities/element.d.ts.map +1 -0
- package/dist/utilities/element.js +24 -0
- package/dist/utilities/element.js.map +1 -0
- package/dist/utilities/index.d.ts +2 -0
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +2 -0
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/node-value.d.ts +1 -1
- package/dist/utilities/node-value.d.ts.map +1 -1
- package/dist/utilities/node-value.js +6 -2
- package/dist/utilities/node-value.js.map +1 -1
- package/dist/utilities/render-icon.d.ts +3 -2
- package/dist/utilities/render-icon.d.ts.map +1 -1
- package/dist/utilities/render-icon.js +6 -3
- package/dist/utilities/render-icon.js.map +1 -1
- package/dist/utilities/rest-attrs.d.ts +26 -2
- package/dist/utilities/rest-attrs.d.ts.map +1 -1
- package/dist/utilities/rest-attrs.js +37 -0
- package/dist/utilities/rest-attrs.js.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-toggle.component.js","sourceRoot":"","sources":["../../src/components/theme-toggle.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGhE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;;;;
|
|
1
|
+
{"version":3,"file":"theme-toggle.component.js","sourceRoot":"","sources":["../../src/components/theme-toggle.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGhE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;;;;IAgDpC,yBAA2E;;;IAA5B,AAA5B,gDAA2B,6BAAsB;;;;IAEpE,yBAA2E;;;IAA5B,AAA5B,gDAA2B,6BAAsB;;AA5B1E;;;;;;;;;;GAUG;AAqBH,MAAM,OAAO,WAAW;IACtB,8DAA8D;IAC9D,YAAY,CAAmC;IAC/C,wDAAwD;IACxD,gBAAgB,CAAuC;IACvD,wDAAwD;IACxD,QAAQ,CAA+B;IACvC,wDAAwD;IACxD,SAAS,CAAgC;IACzC,qDAAqD;IACrD,QAAQ,CAA+B;IACvC,oDAAoD;IACpD,SAAS,CAAgC;IAEzC,0EAA0E;IACjE,KAAK,GAAG,QAAQ,EAAE,CAAA;IAE3B;;;;OAIG;IACc,IAAI,GAAG,cAAc,EAAE,CAAA;IAExC;;;OAGG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;I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Init, type DoCheck, ElementRef, EventEmitter, type OnDestroy, TemplateRef } from '@angular/core';
|
|
8
8
|
import type { ColorVariant, ToastProps, UIClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { type HasElement } from '../utilities/element.js';
|
|
9
10
|
import type { ResolvedIcon } from '../utilities/render-icon.js';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/** The toast context value (React's `ToastContextValue`). */
|
|
@@ -17,7 +18,7 @@ export interface ToastContextValue {
|
|
|
17
18
|
/**
|
|
18
19
|
* Adds a toast.
|
|
19
20
|
* @param toast - The toast to add.
|
|
20
|
-
* @returns Its
|
|
21
|
+
* @returns Its id (the caller's when given).
|
|
21
22
|
*/
|
|
22
23
|
addToast: (toast: Omit<ToastProps, 'onDismiss'>) => string;
|
|
23
24
|
/**
|
|
@@ -36,7 +37,7 @@ type ToastPosition = ToastProps['position'];
|
|
|
36
37
|
* with the remaining time; the announced role follows `status`
|
|
37
38
|
* (`warning`/`error` assertive, everything else polite).
|
|
38
39
|
*/
|
|
39
|
-
export declare class Toast implements AfterViewInit, DoCheck, OnDestroy {
|
|
40
|
+
export declare class Toast implements AfterViewInit, DoCheck, OnDestroy, HasElement<HTMLDivElement> {
|
|
40
41
|
/** The toast title. */
|
|
41
42
|
title?: string;
|
|
42
43
|
/** The toast description (a string or a node value rendered as a template). */
|
|
@@ -57,6 +58,12 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
57
58
|
testId?: string;
|
|
58
59
|
/** Accepted for prop parity; positioning is the container's job. */
|
|
59
60
|
position?: ToastPosition;
|
|
61
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
62
|
+
automationId?: string;
|
|
63
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
64
|
+
dataMolId?: string;
|
|
65
|
+
/** The toast's DOM `id` (React spreads the toast record, id included, onto `<Toast>`). */
|
|
66
|
+
id?: string;
|
|
60
67
|
/** Fires when the toast dismisses itself or its close button is pressed. */
|
|
61
68
|
readonly dismiss: EventEmitter<void>;
|
|
62
69
|
/** The description wrapper (always in the template; detached when empty). */
|
|
@@ -66,6 +73,9 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
66
73
|
/** Whether the toast is still rendered (React's `isVisible`). */
|
|
67
74
|
readonly visible: import("@angular/core").WritableSignal<boolean>;
|
|
68
75
|
private readonly el;
|
|
76
|
+
private readonly hostRef;
|
|
77
|
+
/** The element a caller's ref receives: the host `<div>`. */
|
|
78
|
+
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
69
79
|
/**
|
|
70
80
|
* Reactive translation, read in the injection context. Its `t` reads the
|
|
71
81
|
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
@@ -107,6 +117,11 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
107
117
|
* @returns The style attribute text.
|
|
108
118
|
*/
|
|
109
119
|
hostStyle(): string | null;
|
|
120
|
+
/**
|
|
121
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
122
|
+
* @returns The attribute value.
|
|
123
|
+
*/
|
|
124
|
+
molId(): string | undefined;
|
|
110
125
|
/**
|
|
111
126
|
* The announced role: assertive for warnings/errors, polite otherwise.
|
|
112
127
|
* @returns The role attribute value.
|
|
@@ -176,7 +191,7 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
176
191
|
/** Applies React's `{!!(description || children) && <div>…</div>}`. */
|
|
177
192
|
private syncDescription;
|
|
178
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>;
|
|
179
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "div[mol-toast]", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "status": { "alias": "status"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "dismiss": "dismiss"; }, never, ["*"], true, never>;
|
|
194
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "div[mol-toast]", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "status": { "alias": "status"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "position": { "alias": "position"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "dismiss": "dismiss"; }, never, ["*"], true, never>;
|
|
180
195
|
}
|
|
181
196
|
/**
|
|
182
197
|
* Toast container: positions toasts on screen via a body portal.
|
|
@@ -185,13 +200,18 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
185
200
|
* (`data-parity-unwrap`, `display: contents`) and the container `<div>` is
|
|
186
201
|
* moved into `document.body`.
|
|
187
202
|
*/
|
|
188
|
-
export declare class ToastContainer implements AfterViewInit, OnDestroy {
|
|
203
|
+
export declare class ToastContainer implements AfterViewInit, OnDestroy, HasElement<HTMLDivElement> {
|
|
189
204
|
/** The container position (default `bottom-right`). */
|
|
190
205
|
position: ToastPosition;
|
|
191
206
|
/** Extra classes. */
|
|
192
207
|
className?: string;
|
|
193
208
|
/** The container element (moved to `document.body`). */
|
|
194
|
-
container
|
|
209
|
+
private container?;
|
|
210
|
+
/** The container view query; also feeds the caller's ref element. */
|
|
211
|
+
set containerQuery(ref: ElementRef<HTMLDivElement> | undefined);
|
|
212
|
+
private readonly inner;
|
|
213
|
+
/** The element a caller's ref receives: the positioned container `<div>`. */
|
|
214
|
+
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
195
215
|
private readonly host;
|
|
196
216
|
/**
|
|
197
217
|
* The current class map.
|
|
@@ -246,7 +266,8 @@ export declare class ToastProvider implements AfterViewInit, OnDestroy {
|
|
|
246
266
|
*/
|
|
247
267
|
containerClasses(): string;
|
|
248
268
|
/**
|
|
249
|
-
* Adds a toast and returns its
|
|
269
|
+
* Adds a toast and returns its handle (React's `addToast`). A caller's `id`
|
|
270
|
+
* is the handle and the toast element's id; otherwise one is generated.
|
|
250
271
|
* @param toast - The toast to add.
|
|
251
272
|
* @returns The id.
|
|
252
273
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.component.d.ts","sourceRoot":"","sources":["../../src/components/toast.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,EACV,YAAY,EAEZ,KAAK,SAAS,EAId,WAAW,EAEZ,MAAM,eAAe,CAAA;AAKtB,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAI5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;;AA2B/D,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,MAAM,EAAE,CAAC,UAAU,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;IACvC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,KAAK,MAAM,CAAA;IAC1D;;;OAGG;IACH,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,wDAAwD;AACxD,KAAK,aAAa,GAAG,UAAU,CAAC,UAAU,CAAC,CAAA;AAE3C;;;;;;;GAOG;AACH,
|
|
1
|
+
{"version":3,"file":"toast.component.d.ts","sourceRoot":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OAGG;IACH,eAAe,IAAI,IAAI;IAYvB,6EAA6E;IAC7E,WAAW,IAAI,IAAI;yCA3ER,aAAa;2CAAb,aAAa;CAkFzB;AAkCD;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,iBAAiB,CAwB5C"}
|
|
@@ -9,6 +9,7 @@ import { useTranslation } from '@molecule/app-angular';
|
|
|
9
9
|
import { I18nError } from '@molecule/app-i18n';
|
|
10
10
|
import { getClassMap } from '@molecule/app-ui';
|
|
11
11
|
import { findDomContext, provideDomContext, removeDomContext } from '../utilities/dom-context.js';
|
|
12
|
+
import { hostElement } from '../utilities/element.js';
|
|
12
13
|
import { MolIconSvg, resolveIcon } from '../utilities/render-icon.js';
|
|
13
14
|
import { styleText } from '../utilities/style.js';
|
|
14
15
|
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
@@ -68,7 +69,7 @@ function ToastProvider_For_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
68
69
|
} if (rf & 2) {
|
|
69
70
|
const toast_r2 = ctx.$implicit;
|
|
70
71
|
i0.ɵɵstyleMap(toast_r2.style);
|
|
71
|
-
i0.ɵɵproperty("title", toast_r2.title)("description", toast_r2.description)("status", toast_r2.status ?? "info")("duration", toast_r2.duration ?? 5000)("dismissible", toast_r2.dismissible ?? true)("closeLabel", toast_r2.closeLabel)("className", toast_r2.className)("testId", toast_r2.testId);
|
|
72
|
+
i0.ɵɵproperty("title", toast_r2.title)("description", toast_r2.description)("status", toast_r2.status ?? "info")("duration", toast_r2.duration ?? 5000)("dismissible", toast_r2.dismissible ?? true)("closeLabel", toast_r2.closeLabel)("className", toast_r2.className)("testId", toast_r2.testId)("automationId", toast_r2.automationId)("id", toast_r2.id);
|
|
72
73
|
} }
|
|
73
74
|
/** Toast status → class-map variant. */
|
|
74
75
|
const STATUS_VARIANT = {
|
|
@@ -117,6 +118,12 @@ export class Toast {
|
|
|
117
118
|
testId;
|
|
118
119
|
/** Accepted for prop parity; positioning is the container's job. */
|
|
119
120
|
position;
|
|
121
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
122
|
+
automationId;
|
|
123
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
124
|
+
dataMolId;
|
|
125
|
+
/** The toast's DOM `id` (React spreads the toast record, id included, onto `<Toast>`). */
|
|
126
|
+
id;
|
|
120
127
|
/** Fires when the toast dismisses itself or its close button is pressed. */
|
|
121
128
|
dismiss = new EventEmitter();
|
|
122
129
|
/** The description wrapper (always in the template; detached when empty). */
|
|
@@ -127,6 +134,9 @@ export class Toast {
|
|
|
127
134
|
visible = signal(true, /* @ts-ignore */
|
|
128
135
|
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
129
136
|
el = inject(ElementRef);
|
|
137
|
+
hostRef = inject(ElementRef);
|
|
138
|
+
/** The element a caller's ref receives: the host `<div>`. */
|
|
139
|
+
element = hostElement(this.hostRef);
|
|
130
140
|
/**
|
|
131
141
|
* Reactive translation, read in the injection context. Its `t` reads the
|
|
132
142
|
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
@@ -179,6 +189,13 @@ export class Toast {
|
|
|
179
189
|
hostStyle() {
|
|
180
190
|
return styleText(this.style);
|
|
181
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
194
|
+
* @returns The attribute value.
|
|
195
|
+
*/
|
|
196
|
+
molId() {
|
|
197
|
+
return this.automationId ?? this.dataMolId ?? this.host.getAttribute('data-mol-id') ?? undefined;
|
|
198
|
+
}
|
|
182
199
|
/**
|
|
183
200
|
* The announced role: assertive for warnings/errors, polite otherwise.
|
|
184
201
|
* @returns The role attribute value.
|
|
@@ -352,13 +369,13 @@ export class Toast {
|
|
|
352
369
|
let _t;
|
|
353
370
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.descriptionSlot = _t.first);
|
|
354
371
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childrenSlot = _t.first);
|
|
355
|
-
} }, hostVars:
|
|
372
|
+
} }, hostVars: 9, hostBindings: function Toast_HostBindings(rf, ctx) { if (rf & 1) {
|
|
356
373
|
i0.ɵɵlistener("mouseenter", function Toast_mouseenter_HostBindingHandler() { return ctx.pauseTimer(); })("mouseleave", function Toast_mouseleave_HostBindingHandler() { return ctx.resumeTimer(); })("focusin", function Toast_focusin_HostBindingHandler() { return ctx.pauseTimer(); })("focusout", function Toast_focusout_HostBindingHandler() { return ctx.resumeTimer(); });
|
|
357
374
|
} if (rf & 2) {
|
|
358
|
-
i0.ɵɵattribute("data-testid", ctx.testId)("role", ctx.role())("data-state", ctx.visible() ? "open" : null);
|
|
375
|
+
i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.molId())("id", ctx.id)("role", ctx.role())("data-state", ctx.visible() ? "open" : null);
|
|
359
376
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
360
377
|
i0.ɵɵclassMap(ctx.classes());
|
|
361
|
-
} }, inputs: { title: "title", description: "description", status: "status", duration: "duration", dismissible: "dismissible", closeLabel: "closeLabel", className: "className", style: "style", testId: "testId", position: "position" }, 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) {
|
|
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) {
|
|
362
379
|
i0.ɵɵprojectionDef();
|
|
363
380
|
i0.ɵɵconditionalCreate(0, Toast_Conditional_0_Template, 2, 3, "span", 2);
|
|
364
381
|
i0.ɵɵelementStart(1, "div");
|
|
@@ -405,12 +422,17 @@ export class Toast {
|
|
|
405
422
|
'style',
|
|
406
423
|
'testId',
|
|
407
424
|
'position',
|
|
425
|
+
'automationId',
|
|
426
|
+
'dataMolId: data-mol-id',
|
|
427
|
+
'id',
|
|
408
428
|
],
|
|
409
429
|
outputs: ['dismiss'],
|
|
410
430
|
host: {
|
|
411
431
|
'[class]': 'classes()',
|
|
412
432
|
'[style]': 'hostStyle()',
|
|
413
433
|
'[attr.data-testid]': 'testId',
|
|
434
|
+
'[attr.data-mol-id]': 'molId()',
|
|
435
|
+
'[attr.id]': 'id',
|
|
414
436
|
'[attr.role]': 'role()',
|
|
415
437
|
'[attr.data-state]': 'visible() ? "open" : null',
|
|
416
438
|
'(mouseenter)': 'pauseTimer()',
|
|
@@ -453,7 +475,7 @@ export class Toast {
|
|
|
453
475
|
type: ViewChild,
|
|
454
476
|
args: ['childrenSlot']
|
|
455
477
|
}] }); })();
|
|
456
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Toast, { className: "Toast", filePath: "components/toast.component.ts", lineNumber:
|
|
478
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Toast, { className: "Toast", filePath: "components/toast.component.ts", lineNumber: 145 }); })();
|
|
457
479
|
/**
|
|
458
480
|
* Toast container: positions toasts on screen via a body portal.
|
|
459
481
|
*
|
|
@@ -468,6 +490,15 @@ export class ToastContainer {
|
|
|
468
490
|
className;
|
|
469
491
|
/** The container element (moved to `document.body`). */
|
|
470
492
|
container;
|
|
493
|
+
/** The container view query; also feeds the caller's ref element. */
|
|
494
|
+
set containerQuery(ref) {
|
|
495
|
+
this.container = ref;
|
|
496
|
+
this.inner.set(ref?.nativeElement ?? null);
|
|
497
|
+
}
|
|
498
|
+
inner = signal(null, /* @ts-ignore */
|
|
499
|
+
...(ngDevMode ? [{ debugName: "inner" }] : /* istanbul ignore next */ []));
|
|
500
|
+
/** The element a caller's ref receives: the positioned container `<div>`. */
|
|
501
|
+
element = this.inner.asReadonly();
|
|
471
502
|
host = inject(ElementRef);
|
|
472
503
|
/**
|
|
473
504
|
* The current class map.
|
|
@@ -500,7 +531,7 @@ export class ToastContainer {
|
|
|
500
531
|
i0.ɵɵviewQuery(_c3, 5);
|
|
501
532
|
} if (rf & 2) {
|
|
502
533
|
let _t;
|
|
503
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
|
534
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerQuery = _t.first);
|
|
504
535
|
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { position: "position", className: "className" }, ngContentSelectors: _c2, decls: 3, vars: 2, consts: [["container", ""]], template: function ToastContainer_Template(rf, ctx) { if (rf & 1) {
|
|
505
536
|
i0.ɵɵprojectionDef();
|
|
506
537
|
i0.ɵɵdomElementStart(0, "div", null, 0);
|
|
@@ -522,11 +553,11 @@ export class ToastContainer {
|
|
|
522
553
|
},
|
|
523
554
|
template: `<div #container [class]="classes()"><ng-content></ng-content></div>`,
|
|
524
555
|
}]
|
|
525
|
-
}], null, {
|
|
556
|
+
}], null, { containerQuery: [{
|
|
526
557
|
type: ViewChild,
|
|
527
558
|
args: ['container']
|
|
528
559
|
}] }); })();
|
|
529
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastContainer, { className: "ToastContainer", filePath: "components/toast.component.ts", lineNumber:
|
|
560
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastContainer, { className: "ToastContainer", filePath: "components/toast.component.ts", lineNumber: 451 }); })();
|
|
530
561
|
/**
|
|
531
562
|
* ToastProvider: manages global toast state and renders children plus a
|
|
532
563
|
* positioned toast container (React's context provider + portal).
|
|
@@ -568,12 +599,13 @@ export class ToastProvider {
|
|
|
568
599
|
return this.cm().toastContainer({ position: this.position });
|
|
569
600
|
}
|
|
570
601
|
/**
|
|
571
|
-
* Adds a toast and returns its
|
|
602
|
+
* Adds a toast and returns its handle (React's `addToast`). A caller's `id`
|
|
603
|
+
* is the handle and the toast element's id; otherwise one is generated.
|
|
572
604
|
* @param toast - The toast to add.
|
|
573
605
|
* @returns The id.
|
|
574
606
|
*/
|
|
575
607
|
addToast(toast) {
|
|
576
|
-
const id = `toast-${++toastCounter}`;
|
|
608
|
+
const id = toast.id ?? `toast-${++toastCounter}`;
|
|
577
609
|
this.toasts.update((prev) => [...prev, { ...toast, id }]);
|
|
578
610
|
return id;
|
|
579
611
|
}
|
|
@@ -616,13 +648,13 @@ export class ToastProvider {
|
|
|
616
648
|
let _t;
|
|
617
649
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childrenCapture = _t.first);
|
|
618
650
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
619
|
-
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { position: "position" }, ngContentSelectors: _c2, decls: 7, vars: 2, consts: [["childrenCapture", ""], ["container", ""], ["mol-toast", "", 3, "title", "description", "status", "duration", "dismissible", "closeLabel", "className", "style", "testId"], ["mol-toast", "", 3, "dismiss", "title", "description", "status", "duration", "dismissible", "closeLabel", "className", "testId"]], template: function ToastProvider_Template(rf, ctx) { if (rf & 1) {
|
|
651
|
+
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { position: "position" }, 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) {
|
|
620
652
|
i0.ɵɵprojectionDef();
|
|
621
653
|
i0.ɵɵelementStart(0, "span", null, 0);
|
|
622
654
|
i0.ɵɵprojection(2);
|
|
623
655
|
i0.ɵɵelementEnd();
|
|
624
656
|
i0.ɵɵelementStart(3, "div", null, 1);
|
|
625
|
-
i0.ɵɵrepeaterCreate(5, ToastProvider_For_6_Template, 1,
|
|
657
|
+
i0.ɵɵrepeaterCreate(5, ToastProvider_For_6_Template, 1, 12, "div", 2, _forTrack0);
|
|
626
658
|
i0.ɵɵelementEnd();
|
|
627
659
|
} if (rf & 2) {
|
|
628
660
|
i0.ɵɵadvance(3);
|
|
@@ -656,6 +688,8 @@ export class ToastProvider {
|
|
|
656
688
|
[className]="toast.className"
|
|
657
689
|
[style]="toast.style"
|
|
658
690
|
[testId]="toast.testId"
|
|
691
|
+
[automationId]="toast.automationId"
|
|
692
|
+
[id]="toast.id"
|
|
659
693
|
(dismiss)="removeToast(toast.id)"
|
|
660
694
|
></div>
|
|
661
695
|
}
|
|
@@ -668,7 +702,7 @@ export class ToastProvider {
|
|
|
668
702
|
type: ViewChild,
|
|
669
703
|
args: ['container']
|
|
670
704
|
}] }); })();
|
|
671
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastProvider, { className: "ToastProvider", filePath: "components/toast.component.ts", lineNumber:
|
|
705
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastProvider, { className: "ToastProvider", filePath: "components/toast.component.ts", lineNumber: 539 }); })();
|
|
672
706
|
/** The toast context a `ToastProvider` registers. */
|
|
673
707
|
class ToastContextImplementation {
|
|
674
708
|
provider;
|
|
@@ -687,7 +721,7 @@ class ToastContextImplementation {
|
|
|
687
721
|
/**
|
|
688
722
|
* Adds a toast.
|
|
689
723
|
* @param toast - The toast to add.
|
|
690
|
-
* @returns
|
|
724
|
+
* @returns Its id (the caller's when given).
|
|
691
725
|
*/
|
|
692
726
|
addToast(toast) {
|
|
693
727
|
return this.provider.addToast(toast);
|
|
@@ -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,oBAAoB,CAAA;AAG9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEjG,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;;;;;;IAgF5D,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;;;;;;;IAiWlC,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ACH,MAAM,UAAU,QAAQ;IACtB,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAmC,CAAA;IACnF,MAAM,OAAO,GAAG,GAAsB,EAAE;QACtC,MAAM,KAAK,GAAG,cAAc,CAAoB,EAAE,EAAE,aAAa,IAAI,IAAI,CAAC,CAAA;QAC1E,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"}
|
|
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,oBAAoB,CAAA;AAG9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACjG,OAAO,EAAmB,W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CAAC,KAAoC;QAC3C,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IACtC,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,EAAU;QACpB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,CAAA;IAC/B,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ;IACtB,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAmC,CAAA;IACnF,MAAM,OAAO,GAAG,GAAsB,EAAE;QACtC,MAAM,KAAK,GAAG,cAAc,CAAoB,EAAE,EAAE,aAAa,IAAI,IAAI,CAAC,CAAA;QAC1E,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"}
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { type AfterViewInit, type DoCheck, ElementRef, type OnDestroy } from '@angular/core';
|
|
8
|
-
import type { TooltipPlacement, UIClassMap } from '@molecule/app-ui';
|
|
7
|
+
import { type AfterViewChecked, type AfterViewInit, type DoCheck, ElementRef, type OnDestroy } from '@angular/core';
|
|
8
|
+
import type { MouseEventHandler, TooltipPlacement, UIClassMap } from '@molecule/app-ui';
|
|
9
|
+
import type { HasElement } from '../utilities/element.js';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* Tooltip component.
|
|
@@ -18,7 +19,7 @@ import * as i0 from "@angular/core";
|
|
|
18
19
|
* tooltip shows; show/hide are coordinated across instances exactly like
|
|
19
20
|
* React's module-level `activeTooltips` map.
|
|
20
21
|
*/
|
|
21
|
-
export declare class Tooltip implements AfterViewInit, DoCheck, OnDestroy {
|
|
22
|
+
export declare class Tooltip implements AfterViewInit, AfterViewChecked, DoCheck, OnDestroy, HasElement<HTMLDivElement> {
|
|
22
23
|
/** The tooltip content (node-valued prop). */
|
|
23
24
|
content?: unknown;
|
|
24
25
|
/** The tooltip placement (default `top`). */
|
|
@@ -33,8 +34,29 @@ export declare class Tooltip implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
33
34
|
style?: Record<string, unknown>;
|
|
34
35
|
/** `data-testid` for the visible tooltip box. */
|
|
35
36
|
testId?: string;
|
|
37
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
38
|
+
automationId?: string;
|
|
39
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
40
|
+
dataMolId?: string;
|
|
41
|
+
/** The visible box's `id` (React spreads a caller's `id`; it is the `aria-describedby` target). */
|
|
42
|
+
id?: string;
|
|
43
|
+
/** The visible box's `title` attribute (React's rest spread). */
|
|
44
|
+
title?: string;
|
|
45
|
+
/** A caller's double-click handler on the visible box (React spreads it there). */
|
|
46
|
+
onDoubleClick?: MouseEventHandler;
|
|
36
47
|
/** The generated tooltip id (the normalizer renumbers it). */
|
|
37
48
|
readonly tooltipId: string;
|
|
49
|
+
/**
|
|
50
|
+
* The visible box's id: a caller's `id`, else the generated one (React's
|
|
51
|
+
* `rest.id ?? generatedId`). The trigger's `aria-describedby` names it.
|
|
52
|
+
* @returns The id.
|
|
53
|
+
*/
|
|
54
|
+
boxId(): string;
|
|
55
|
+
/**
|
|
56
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
57
|
+
* @returns The attribute value.
|
|
58
|
+
*/
|
|
59
|
+
molId(): string | undefined;
|
|
38
60
|
/** Whether the tooltip is visible. */
|
|
39
61
|
readonly visible: import("@angular/core").WritableSignal<boolean>;
|
|
40
62
|
/** The current position (React's `{0,0}` initial state). */
|
|
@@ -48,6 +70,9 @@ export declare class Tooltip implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
48
70
|
/** The visible tooltip box (measured for positioning). */
|
|
49
71
|
contentEl?: ElementRef<HTMLDivElement>;
|
|
50
72
|
private readonly host;
|
|
73
|
+
private readonly inner;
|
|
74
|
+
/** The element a caller's ref receives: the tooltip box, or `null` while hidden. */
|
|
75
|
+
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
51
76
|
private readonly cdr;
|
|
52
77
|
private showTimer;
|
|
53
78
|
private hideTimer;
|
|
@@ -56,8 +81,26 @@ export declare class Tooltip implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
56
81
|
private escapeBound;
|
|
57
82
|
private attached;
|
|
58
83
|
private lastVisible;
|
|
84
|
+
/** The rendered content the current position was measured for. */
|
|
85
|
+
private lastContentText;
|
|
86
|
+
/** The placement the current position was measured for. */
|
|
87
|
+
private lastPlacement;
|
|
59
88
|
private associateEl;
|
|
60
89
|
private hostParent;
|
|
90
|
+
/** The `data-mol-id` a caller bound on the host (React spreads it onto the tooltip box). */
|
|
91
|
+
private externalMolId;
|
|
92
|
+
/**
|
|
93
|
+
* React re-measures in a layout effect whose dependencies include `content`
|
|
94
|
+
* (`[isVisible, updatePosition, content]`), so asynchronously expanded
|
|
95
|
+
* content stays anchored above its trigger. This port renders its content by
|
|
96
|
+
* projection, which no component input can observe, so the rendered text is
|
|
97
|
+
* compared after every render — the same moment React's layout effect runs.
|
|
98
|
+
*/
|
|
99
|
+
constructor();
|
|
100
|
+
/**
|
|
101
|
+
* Re-measures a visible tooltip whose rendered content or placement changed.
|
|
102
|
+
*/
|
|
103
|
+
private repositionForContentChange;
|
|
61
104
|
/**
|
|
62
105
|
* The current class map.
|
|
63
106
|
* @returns The UIClassMap.
|
|
@@ -111,7 +154,16 @@ export declare class Tooltip implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
111
154
|
* into it and records the single-element trigger for `aria-describedby`.
|
|
112
155
|
*/
|
|
113
156
|
ngAfterViewInit(): void;
|
|
114
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* Puts a `data-mol-id` bound on the host onto the tooltip in the pass that bound it (the host
|
|
159
|
+
* attribute is written after this component's `ngDoCheck`).
|
|
160
|
+
*/
|
|
161
|
+
ngAfterViewChecked(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Reconciles visibility (and its portal/focus side effects) each pass. A
|
|
164
|
+
* content or placement change while visible is handled after the render
|
|
165
|
+
* (`repositionForContentChange`), matching React's layout effect.
|
|
166
|
+
*/
|
|
115
167
|
ngDoCheck(): void;
|
|
116
168
|
/** Removes listeners/timers and restores the adopted nodes (unmount). */
|
|
117
169
|
ngOnDestroy(): void;
|
|
@@ -122,6 +174,6 @@ export declare class Tooltip implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
122
174
|
/** Measures the trigger and tooltip and updates the clamped position. */
|
|
123
175
|
private updatePosition;
|
|
124
176
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tooltip, never>;
|
|
125
|
-
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; }; }, {}, never, ["*", "[slot=content]"], true, 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, never>;
|
|
126
178
|
}
|
|
127
179
|
//# 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,
|
|
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;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;;AAwHzD;;;;;;;;;;GAUG;AACH,qBAuDa,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;IACh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