@molecule/app-ui-angular 1.5.2 → 1.10.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 +757 -358
- package/dist/components/checkbox.component.d.ts +5 -1
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +14 -3
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-button.component.d.ts +1 -5
- package/dist/components/confirm-button.component.d.ts.map +1 -1
- package/dist/components/confirm-button.component.js +15 -11
- package/dist/components/confirm-button.component.js.map +1 -1
- package/dist/components/confirm-dialog.component.d.ts +1 -5
- package/dist/components/confirm-dialog.component.d.ts.map +1 -1
- package/dist/components/confirm-dialog.component.js +5 -3
- package/dist/components/confirm-dialog.component.js.map +1 -1
- package/dist/components/dropdown.component.d.ts +3 -11
- package/dist/components/dropdown.component.d.ts.map +1 -1
- package/dist/components/dropdown.component.js +45 -97
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/file-field.component.d.ts +42 -0
- package/dist/components/file-field.component.d.ts.map +1 -0
- package/dist/components/file-field.component.js +121 -0
- package/dist/components/file-field.component.js.map +1 -0
- package/dist/components/floating-input.component.d.ts +21 -3
- package/dist/components/floating-input.component.d.ts.map +1 -1
- package/dist/components/floating-input.component.js +34 -4
- package/dist/components/floating-input.component.js.map +1 -1
- package/dist/components/form.component.d.ts.map +1 -1
- package/dist/components/form.component.js +11 -6
- package/dist/components/form.component.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input.component.d.ts +18 -2
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +37 -11
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/language-picker.component.d.ts +9 -1
- package/dist/components/language-picker.component.d.ts.map +1 -1
- package/dist/components/language-picker.component.js +15 -8
- package/dist/components/language-picker.component.js.map +1 -1
- package/dist/components/load-error-banner.component.d.ts +21 -3
- package/dist/components/load-error-banner.component.d.ts.map +1 -1
- package/dist/components/load-error-banner.component.js +33 -5
- package/dist/components/load-error-banner.component.js.map +1 -1
- package/dist/components/modal.component.d.ts +14 -48
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +72 -184
- package/dist/components/modal.component.js.map +1 -1
- package/dist/components/molecule/input.component.d.ts +7 -0
- package/dist/components/molecule/input.component.d.ts.map +1 -1
- package/dist/components/molecule/input.component.js +13 -5
- package/dist/components/molecule/input.component.js.map +1 -1
- package/dist/components/molecule/select.component.d.ts +7 -0
- package/dist/components/molecule/select.component.d.ts.map +1 -1
- package/dist/components/molecule/select.component.js +13 -5
- package/dist/components/molecule/select.component.js.map +1 -1
- package/dist/components/page-header.component.d.ts.map +1 -1
- package/dist/components/page-header.component.js +22 -21
- package/dist/components/page-header.component.js.map +1 -1
- package/dist/components/prompt-dialog.component.d.ts +6 -30
- package/dist/components/prompt-dialog.component.d.ts.map +1 -1
- package/dist/components/prompt-dialog.component.js +25 -56
- package/dist/components/prompt-dialog.component.js.map +1 -1
- package/dist/components/responsive-app-shell.component.d.ts +4 -34
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
- package/dist/components/responsive-app-shell.component.js +46 -141
- package/dist/components/responsive-app-shell.component.js.map +1 -1
- package/dist/components/select.component.d.ts +9 -1
- package/dist/components/select.component.d.ts.map +1 -1
- package/dist/components/select.component.js +16 -7
- package/dist/components/select.component.js.map +1 -1
- package/dist/components/sidebar-user-card.component.d.ts +5 -1
- package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
- package/dist/components/sidebar-user-card.component.js +11 -7
- package/dist/components/sidebar-user-card.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +3 -1
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +9 -2
- package/dist/components/switch.component.js.map +1 -1
- package/dist/components/textarea.component.d.ts +15 -9
- package/dist/components/textarea.component.d.ts.map +1 -1
- package/dist/components/textarea.component.js +33 -19
- package/dist/components/textarea.component.js.map +1 -1
- package/dist/components/theme-toggle.component.d.ts +14 -1
- package/dist/components/theme-toggle.component.d.ts.map +1 -1
- package/dist/components/theme-toggle.component.js +27 -6
- package/dist/components/theme-toggle.component.js.map +1 -1
- package/dist/components/toast.component.d.ts +13 -18
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +47 -63
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +4 -2
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +35 -90
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +4 -8
- package/dist/components/user-menu-popover.component.d.ts.map +1 -1
- package/dist/components/user-menu-popover.component.js +28 -48
- package/dist/components/user-menu-popover.component.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/utilities/element-props.d.ts +1 -1
- package/dist/utilities/element-props.d.ts.map +1 -1
- package/dist/utilities/element-props.js +3 -13
- package/dist/utilities/element-props.js.map +1 -1
- package/dist/utilities/element.d.ts +10 -0
- package/dist/utilities/element.d.ts.map +1 -1
- package/dist/utilities/element.js +13 -0
- package/dist/utilities/element.js.map +1 -1
- package/dist/utilities/style.d.ts +6 -16
- package/dist/utilities/style.d.ts.map +1 -1
- package/dist/utilities/style.js +38 -117
- package/dist/utilities/style.js.map +1 -1
- package/dist/web-drag.directive.d.ts +25 -0
- package/dist/web-drag.directive.d.ts.map +1 -0
- package/dist/web-drag.directive.js +43 -0
- package/dist/web-drag.directive.js.map +1 -0
- package/dist/web-hover.directive.d.ts +24 -0
- package/dist/web-hover.directive.d.ts.map +1 -0
- package/dist/web-hover.directive.js +42 -0
- package/dist/web-hover.directive.js.map +1 -0
- package/dist/web-wheel-zoom.directive.d.ts +18 -0
- package/dist/web-wheel-zoom.directive.d.ts.map +1 -0
- package/dist/web-wheel-zoom.directive.js +28 -0
- package/dist/web-wheel-zoom.directive.js.map +1 -0
- package/package.json +13 -5
|
@@ -65,6 +65,10 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy, HasElem
|
|
|
65
65
|
dataMolId?: string;
|
|
66
66
|
/** The toast's DOM `id` (React spreads the toast record, id included, onto `<Toast>`). */
|
|
67
67
|
id?: string;
|
|
68
|
+
/** Overrides the status-derived role. */
|
|
69
|
+
roleOverride?: ToastProps['role'];
|
|
70
|
+
/** Overrides the live-region priority, including `off`. */
|
|
71
|
+
live?: ToastProps['aria-live'];
|
|
68
72
|
/** Fires when the toast dismisses itself or its close button is pressed. */
|
|
69
73
|
readonly dismiss: EventEmitter<void>;
|
|
70
74
|
/** The description wrapper (always in the template; detached when empty). */
|
|
@@ -84,9 +88,7 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy, HasElem
|
|
|
84
88
|
*/
|
|
85
89
|
private readonly i18n;
|
|
86
90
|
private readonly host;
|
|
87
|
-
private
|
|
88
|
-
private startedAt;
|
|
89
|
-
private timer;
|
|
91
|
+
private readonly countdown;
|
|
90
92
|
private lastDuration;
|
|
91
93
|
private hasChildren;
|
|
92
94
|
/** Prepares the countdown state (the timer starts at view init). */
|
|
@@ -120,7 +122,7 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy, HasElem
|
|
|
120
122
|
* The announced role: assertive for warnings/errors, polite otherwise.
|
|
121
123
|
* @returns The role attribute value.
|
|
122
124
|
*/
|
|
123
|
-
role():
|
|
125
|
+
role(): string;
|
|
124
126
|
/**
|
|
125
127
|
* The status glyph, when the variant has one.
|
|
126
128
|
* @returns The resolved icon, or null.
|
|
@@ -148,10 +150,12 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy, HasElem
|
|
|
148
150
|
closeText(): string;
|
|
149
151
|
/** Dismisses the toast and calls the callback (React's `handleDismiss`). */
|
|
150
152
|
handleDismiss(): void;
|
|
151
|
-
/**
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
|
|
153
|
+
/** Tracks the pointer's presence on the notification. */
|
|
154
|
+
setHovered(hovered: boolean): void;
|
|
155
|
+
/** Tracks focus anywhere inside the notification. */
|
|
156
|
+
setFocused(focused: boolean): void;
|
|
157
|
+
/** Keeps the countdown paused when focus moves to another toast control. */
|
|
158
|
+
leaveFocus(event: FocusEvent): void;
|
|
155
159
|
/**
|
|
156
160
|
* Detects the first view and the `duration` input changes, and starts the
|
|
157
161
|
* countdown (React's mount effect, with `[duration]` deps).
|
|
@@ -164,15 +168,6 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy, HasElem
|
|
|
164
168
|
ngDoCheck(): void;
|
|
165
169
|
/** Stops the countdown (React's unmount cleanup). */
|
|
166
170
|
ngOnDestroy(): void;
|
|
167
|
-
/** React's effect body: reset the remaining time and start counting. */
|
|
168
|
-
private restart;
|
|
169
|
-
/** Clears the running timer (React's `clearTimer`). */
|
|
170
|
-
private clearTimer;
|
|
171
|
-
/**
|
|
172
|
-
* Starts the countdown (React's `startTimer`).
|
|
173
|
-
* @param ms - Milliseconds until dismissal.
|
|
174
|
-
*/
|
|
175
|
-
private startTimer;
|
|
176
171
|
/**
|
|
177
172
|
* Reads the children slot and moves the projected children into the
|
|
178
173
|
* description wrapper (React renders them there) unless the description
|
|
@@ -189,7 +184,7 @@ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy, HasElem
|
|
|
189
184
|
/** Applies React's `{!!(description || children) && <div>…</div>}`. */
|
|
190
185
|
private syncDescription;
|
|
191
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>;
|
|
192
|
-
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, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
187
|
+
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; }; "roleOverride": { "alias": "role"; "required": false; }; "live": { "alias": "aria-live"; "required": false; }; }, { "dismiss": "dismiss"; }, never, ["*"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
193
188
|
}
|
|
194
189
|
/**
|
|
195
190
|
* Toast container: positions toasts on screen via a body portal.
|
|
@@ -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,EAGd,WAAW,EAEZ,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"toast.component.d.ts","sourceRoot":"","sources":["../../src/components/toast.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH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,CAAC,QAAQ,CAAC,IAAI,CAA8C;IAEnE,oGAAoG;;IASpG;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;yCA1CN,cAAc;2CAAd,cAAc;CA6C1B;AAED;;;;;;;;;;;GAWG;AACH,qBA6Ba,aAAc,YAAW,SAAS;IAC7C,gEAAgE;IAChE,QAAQ,EAAE,aAAa,CAAiB;IAExC,sEAAsE;IACxC,eAAe,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,CAAA;IAC3E,sDAAsD;IAC9B,SAAS,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IAE9D,0BAA0B;IAC1B,QAAQ,CAAC,MAAM;YAA8B,MAAM;UAAU;IAE7D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8C;IACnE,wEAAwE;IACxE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuC;IAE7D;;;OAGG;;IAgBH;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,gBAAgB,IAAI,MAAM;IAI1B;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG,MAAM;IAMtD;;;OAGG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAI7B,kDAAkD;IAClD,WAAW,IAAI,IAAI;yCAxER,aAAa;2CAAb,aAAa;CA2EzB;AAkCD;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,iBAAiB,CAwB5C"}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
import { Component, ElementRef, EventEmitter, inject, Output, signal, TemplateRef, ViewChild, } from '@angular/core';
|
|
8
8
|
import { MolPlacement, placeContent, placeContentBefore, placeElement, setElementPresent, useHostPresence, usePlacement, useTranslation, } from '@molecule/app-angular';
|
|
9
9
|
import { I18nError } from '@molecule/app-i18n';
|
|
10
|
-
import {
|
|
10
|
+
import { focusStaysWithin } from '@molecule/app-overlay-dom';
|
|
11
|
+
import { getClassMap, ToastCountdown } from '@molecule/app-ui';
|
|
11
12
|
import { createDomContext } from '../utilities/dom-context.js';
|
|
12
13
|
import { hostElement } from '../utilities/element.js';
|
|
13
14
|
import { MolIconSvg, resolveIcon } from '../utilities/render-icon.js';
|
|
@@ -69,7 +70,8 @@ function ToastProvider_For_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
69
70
|
} if (rf & 2) {
|
|
70
71
|
const toast_r2 = ctx.$implicit;
|
|
71
72
|
i0.ɵɵstyleMap(toast_r2.style);
|
|
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);
|
|
73
|
+
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)("role", toast_r2.role);
|
|
74
|
+
i0.ɵɵariaProperty("aria-live", toast_r2["aria-live"]);
|
|
73
75
|
} }
|
|
74
76
|
/** Toast status → class-map variant. */
|
|
75
77
|
const STATUS_VARIANT = {
|
|
@@ -124,6 +126,10 @@ export class Toast {
|
|
|
124
126
|
dataMolId;
|
|
125
127
|
/** The toast's DOM `id` (React spreads the toast record, id included, onto `<Toast>`). */
|
|
126
128
|
id;
|
|
129
|
+
/** Overrides the status-derived role. */
|
|
130
|
+
roleOverride;
|
|
131
|
+
/** Overrides the live-region priority, including `off`. */
|
|
132
|
+
live;
|
|
127
133
|
/** Fires when the toast dismisses itself or its close button is pressed. */
|
|
128
134
|
dismiss = new EventEmitter();
|
|
129
135
|
/** The description wrapper (always in the template; detached when empty). */
|
|
@@ -144,9 +150,10 @@ export class Toast {
|
|
|
144
150
|
*/
|
|
145
151
|
i18n = useTranslation();
|
|
146
152
|
host = this.el.nativeElement;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
153
|
+
countdown = new ToastCountdown(() => {
|
|
154
|
+
this.visible.set(false);
|
|
155
|
+
this.dismiss.emit();
|
|
156
|
+
});
|
|
150
157
|
lastDuration;
|
|
151
158
|
hasChildren = false;
|
|
152
159
|
/** Prepares the countdown state (the timer starts at view init). */
|
|
@@ -154,7 +161,6 @@ export class Toast {
|
|
|
154
161
|
usePlacement((hasContent) => this.reconcile(hasContent));
|
|
155
162
|
// Leaves no element in the page while the toast is hidden (React renders null).
|
|
156
163
|
useHostPresence(() => this.visible());
|
|
157
|
-
this.remaining = this.duration;
|
|
158
164
|
this.lastDuration = this.duration;
|
|
159
165
|
}
|
|
160
166
|
/**
|
|
@@ -197,7 +203,8 @@ export class Toast {
|
|
|
197
203
|
* @returns The role attribute value.
|
|
198
204
|
*/
|
|
199
205
|
role() {
|
|
200
|
-
return
|
|
206
|
+
return (this.roleOverride ??
|
|
207
|
+
(this.variant() === 'warning' || this.variant() === 'error' ? 'alert' : 'status'));
|
|
201
208
|
}
|
|
202
209
|
/**
|
|
203
210
|
* The status glyph, when the variant has one.
|
|
@@ -237,28 +244,27 @@ export class Toast {
|
|
|
237
244
|
}
|
|
238
245
|
/** Dismisses the toast and calls the callback (React's `handleDismiss`). */
|
|
239
246
|
handleDismiss() {
|
|
240
|
-
this.
|
|
241
|
-
this.dismiss.emit();
|
|
247
|
+
this.countdown.dismiss();
|
|
242
248
|
}
|
|
243
|
-
/**
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
this.
|
|
249
|
+
/** Tracks the pointer's presence on the notification. */
|
|
250
|
+
setHovered(hovered) {
|
|
251
|
+
this.countdown.setPaused('hover', hovered);
|
|
252
|
+
}
|
|
253
|
+
/** Tracks focus anywhere inside the notification. */
|
|
254
|
+
setFocused(focused) {
|
|
255
|
+
this.countdown.setPaused('focus', focused);
|
|
250
256
|
}
|
|
251
|
-
/**
|
|
252
|
-
|
|
253
|
-
if (
|
|
254
|
-
this.
|
|
257
|
+
/** Keeps the countdown paused when focus moves to another toast control. */
|
|
258
|
+
leaveFocus(event) {
|
|
259
|
+
if (!focusStaysWithin(event))
|
|
260
|
+
this.setFocused(false);
|
|
255
261
|
}
|
|
256
262
|
/**
|
|
257
263
|
* Detects the first view and the `duration` input changes, and starts the
|
|
258
264
|
* countdown (React's mount effect, with `[duration]` deps).
|
|
259
265
|
*/
|
|
260
266
|
ngAfterViewInit() {
|
|
261
|
-
this.
|
|
267
|
+
this.countdown.start(this.duration);
|
|
262
268
|
}
|
|
263
269
|
/**
|
|
264
270
|
* Restarts the countdown when the `duration` input changes (React's
|
|
@@ -267,39 +273,12 @@ export class Toast {
|
|
|
267
273
|
ngDoCheck() {
|
|
268
274
|
if (this.duration !== this.lastDuration) {
|
|
269
275
|
this.lastDuration = this.duration;
|
|
270
|
-
this.
|
|
276
|
+
this.countdown.start(this.duration);
|
|
271
277
|
}
|
|
272
278
|
}
|
|
273
279
|
/** Stops the countdown (React's unmount cleanup). */
|
|
274
280
|
ngOnDestroy() {
|
|
275
|
-
this.
|
|
276
|
-
}
|
|
277
|
-
/** React's effect body: reset the remaining time and start counting. */
|
|
278
|
-
restart() {
|
|
279
|
-
this.remaining = this.duration;
|
|
280
|
-
this.startTimer(this.duration);
|
|
281
|
-
}
|
|
282
|
-
/** Clears the running timer (React's `clearTimer`). */
|
|
283
|
-
clearTimer() {
|
|
284
|
-
if (this.timer) {
|
|
285
|
-
clearTimeout(this.timer);
|
|
286
|
-
this.timer = undefined;
|
|
287
|
-
}
|
|
288
|
-
this.startedAt = null;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Starts the countdown (React's `startTimer`).
|
|
292
|
-
* @param ms - Milliseconds until dismissal.
|
|
293
|
-
*/
|
|
294
|
-
startTimer(ms) {
|
|
295
|
-
this.clearTimer();
|
|
296
|
-
if (ms <= 0)
|
|
297
|
-
return;
|
|
298
|
-
this.startedAt = Date.now();
|
|
299
|
-
this.timer = setTimeout(() => {
|
|
300
|
-
this.visible.set(false);
|
|
301
|
-
this.dismiss.emit();
|
|
302
|
-
}, ms);
|
|
281
|
+
this.countdown.stop();
|
|
303
282
|
}
|
|
304
283
|
/**
|
|
305
284
|
* Reads the children slot and moves the projected children into the
|
|
@@ -344,13 +323,13 @@ export class Toast {
|
|
|
344
323
|
let _t;
|
|
345
324
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.descriptionSlot = _t.first);
|
|
346
325
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childrenSlot = _t.first);
|
|
347
|
-
} }, hostVars:
|
|
348
|
-
i0.ɵɵlistener("mouseenter", function Toast_mouseenter_HostBindingHandler() { return ctx.
|
|
326
|
+
} }, hostVars: 11, hostBindings: function Toast_HostBindings(rf, ctx) { if (rf & 1) {
|
|
327
|
+
i0.ɵɵlistener("mouseenter", function Toast_mouseenter_HostBindingHandler() { return ctx.setHovered(true); })("mouseleave", function Toast_mouseleave_HostBindingHandler() { return ctx.setHovered(false); })("focusin", function Toast_focusin_HostBindingHandler() { return ctx.setFocused(true); })("focusout", function Toast_focusout_HostBindingHandler($event) { return ctx.leaveFocus($event); });
|
|
349
328
|
} if (rf & 2) {
|
|
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);
|
|
329
|
+
i0.ɵɵattribute("title", null)("data-testid", ctx.testId)("data-mol-id", ctx.molId())("id", ctx.id)("role", ctx.role())("aria-live", ctx.live)("data-state", ctx.visible() ? "open" : null);
|
|
351
330
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
352
331
|
i0.ɵɵclassMap(ctx.classes());
|
|
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) {
|
|
332
|
+
} }, 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", roleOverride: [0, "role", "roleOverride"], live: [0, "aria-live", "live"] }, 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) {
|
|
354
333
|
i0.ɵɵprojectionDef();
|
|
355
334
|
i0.ɵɵconditionalCreate(0, Toast_Conditional_0_Template, 2, 3, "span", 2);
|
|
356
335
|
i0.ɵɵelementStart(1, "div");
|
|
@@ -401,6 +380,8 @@ export class Toast {
|
|
|
401
380
|
'automationId',
|
|
402
381
|
'dataMolId: data-mol-id',
|
|
403
382
|
'id',
|
|
383
|
+
'roleOverride: role',
|
|
384
|
+
'live: aria-live',
|
|
404
385
|
],
|
|
405
386
|
outputs: ['dismiss'],
|
|
406
387
|
host: {
|
|
@@ -413,11 +394,12 @@ export class Toast {
|
|
|
413
394
|
'[attr.data-mol-id]': 'molId()',
|
|
414
395
|
'[attr.id]': 'id',
|
|
415
396
|
'[attr.role]': 'role()',
|
|
397
|
+
'[attr.aria-live]': 'live',
|
|
416
398
|
'[attr.data-state]': 'visible() ? "open" : null',
|
|
417
|
-
'(mouseenter)': '
|
|
418
|
-
'(mouseleave)': '
|
|
419
|
-
'(focusin)': '
|
|
420
|
-
'(focusout)': '
|
|
399
|
+
'(mouseenter)': 'setHovered(true)',
|
|
400
|
+
'(mouseleave)': 'setHovered(false)',
|
|
401
|
+
'(focusin)': 'setFocused(true)',
|
|
402
|
+
'(focusout)': 'leaveFocus($event)',
|
|
421
403
|
},
|
|
422
404
|
template: `@if (statusIcon(); as icon) {
|
|
423
405
|
<span [class]="cm().toastIconWrapper"><svg mol-icon [data]="icon" /></span>
|
|
@@ -454,7 +436,7 @@ export class Toast {
|
|
|
454
436
|
type: ViewChild,
|
|
455
437
|
args: ['childrenSlot']
|
|
456
438
|
}] }); })();
|
|
457
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Toast, { className: "Toast", filePath: "components/toast.component.ts", lineNumber:
|
|
439
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Toast, { className: "Toast", filePath: "components/toast.component.ts", lineNumber: 161 }); })();
|
|
458
440
|
/**
|
|
459
441
|
* Toast container: positions toasts on screen via a body portal.
|
|
460
442
|
*
|
|
@@ -529,7 +511,7 @@ export class ToastContainer {
|
|
|
529
511
|
type: ViewChild,
|
|
530
512
|
args: ['container']
|
|
531
513
|
}] }); })();
|
|
532
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastContainer, { className: "ToastContainer", filePath: "components/toast.component.ts", lineNumber:
|
|
514
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastContainer, { className: "ToastContainer", filePath: "components/toast.component.ts", lineNumber: 418 }); })();
|
|
533
515
|
/**
|
|
534
516
|
* ToastProvider: manages global toast state and renders children plus a
|
|
535
517
|
* positioned toast container (React's context provider + portal).
|
|
@@ -616,13 +598,13 @@ export class ToastProvider {
|
|
|
616
598
|
let _t;
|
|
617
599
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childrenCapture = _t.first);
|
|
618
600
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
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) {
|
|
601
|
+
} }, 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", "role", "aria-live"], ["mol-toast", "", 3, "dismiss", "title", "description", "status", "duration", "dismissible", "closeLabel", "className", "testId", "automationId", "id", "role", "aria-live"]], template: function ToastProvider_Template(rf, ctx) { if (rf & 1) {
|
|
620
602
|
i0.ɵɵprojectionDef();
|
|
621
603
|
i0.ɵɵelementStart(0, "span", null, 0);
|
|
622
604
|
i0.ɵɵprojection(2);
|
|
623
605
|
i0.ɵɵelementEnd();
|
|
624
606
|
i0.ɵɵelementStart(3, "div", null, 1);
|
|
625
|
-
i0.ɵɵrepeaterCreate(5, ToastProvider_For_6_Template, 1,
|
|
607
|
+
i0.ɵɵrepeaterCreate(5, ToastProvider_For_6_Template, 1, 14, "div", 2, _forTrack0);
|
|
626
608
|
i0.ɵɵelementEnd();
|
|
627
609
|
} if (rf & 2) {
|
|
628
610
|
i0.ɵɵadvance(3);
|
|
@@ -655,6 +637,8 @@ export class ToastProvider {
|
|
|
655
637
|
[testId]="toast.testId"
|
|
656
638
|
[automationId]="toast.automationId"
|
|
657
639
|
[id]="toast.id"
|
|
640
|
+
[role]="toast.role"
|
|
641
|
+
[aria-live]="toast['aria-live']"
|
|
658
642
|
(dismiss)="removeToast(toast.id)"
|
|
659
643
|
></div>
|
|
660
644
|
}
|
|
@@ -667,7 +651,7 @@ export class ToastProvider {
|
|
|
667
651
|
type: ViewChild,
|
|
668
652
|
args: ['container']
|
|
669
653
|
}] }); })();
|
|
670
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastProvider, { className: "ToastProvider", filePath: "components/toast.component.ts", lineNumber:
|
|
654
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastProvider, { className: "ToastProvider", filePath: "components/toast.component.ts", lineNumber: 506 }); })();
|
|
671
655
|
/** The toast context a `ToastProvider` registers. */
|
|
672
656
|
class ToastContextImplementation {
|
|
673
657
|
provider;
|
|
@@ -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,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;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;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"}
|
|
@@ -95,8 +95,8 @@ export declare class Tooltip implements AfterViewInit, AfterViewChecked, DoCheck
|
|
|
95
95
|
private showTimer;
|
|
96
96
|
private hideTimer;
|
|
97
97
|
private readonly hideListener;
|
|
98
|
-
private readonly
|
|
99
|
-
private
|
|
98
|
+
private readonly layer;
|
|
99
|
+
private owner?;
|
|
100
100
|
private lastVisible;
|
|
101
101
|
/** The rendered content the current position was measured for. */
|
|
102
102
|
private lastContentText;
|
|
@@ -183,6 +183,8 @@ export declare class Tooltip implements AfterViewInit, AfterViewChecked, DoCheck
|
|
|
183
183
|
ngDoCheck(): void;
|
|
184
184
|
/** Removes listeners/timers and drops the trigger association (unmount). */
|
|
185
185
|
ngOnDestroy(): void;
|
|
186
|
+
/** Releases tooltip ownership even after the declaring view is detached. */
|
|
187
|
+
private releaseOwner;
|
|
186
188
|
/** Attaches the portal to `document.body`, positions it and associates it. */
|
|
187
189
|
private attachPortal;
|
|
188
190
|
/** Detaches the portal and removes the trigger association. */
|
|
@@ -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,MAA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I,MAAM,GAAG,IAAI;IAShC;;;OAGG;IACH,cAAc,IAAI,MAAM,GAAG,IAAI;IAI/B;;;OAGG;IACH,IAAI,IAAI,IAAI;IAsBZ,sDAAsD;IACtD,IAAI,IAAI,IAAI;IAQZ,2EAA2E;IAC3E,YAAY,IAAI,IAAI;IAMpB,oEAAoE;IACpE,WAAW,IAAI,IAAI;IAInB;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IASpC;;;;OAIG;IACH,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAIzC;;;OAGG;IACH,eAAe,IAAI,IAAI;IAMvB;;;OAGG;IACH,kBAAkB,IAAI,IAAI;IAW1B;;;;OAIG;IACH,SAAS,IAAI,IAAI;IAgBjB,4EAA4E;IAC5E,WAAW,IAAI,IAAI;IAQnB,4EAA4E;IAC5E,OAAO,CAAC,YAAY;IAMpB,8EAA8E;IAC9E,OAAO,CAAC,YAAY;IAmBpB,+DAA+D;IAC/D,OAAO,CAAC,YAAY;IASpB,yEAAyE;IACzE,OAAO,CAAC,cAAc;yCAlVX,OAAO;2CAAP,OAAO;CAwVnB"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { afterEveryRender, ChangeDetectorRef, Component, ElementRef, inject, signal, ViewChild, } from '@angular/core';
|
|
8
8
|
import { MolPlacement, placeContent, placeElement, placeElementBefore, setElementPresent, setHostRoot, slotElement, usePlacement, } from '@molecule/app-angular';
|
|
9
|
+
import { measureTooltipPosition, OverlayLayer } from '@molecule/app-overlay-dom';
|
|
9
10
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
11
|
import { nextInstanceId } from '../utilities/ids.js';
|
|
11
12
|
import { adoptHostDataMolId } from '../utilities/rest-attrs.js';
|
|
@@ -64,64 +65,6 @@ function arrowStyle(placement) {
|
|
|
64
65
|
return base;
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Calculates the tooltip position and clamps it into the viewport (React's
|
|
69
|
-
* `calculatePosition` + clamp, a faithful port).
|
|
70
|
-
*
|
|
71
|
-
* @param triggerRect - The trigger's bounding rectangle.
|
|
72
|
-
* @param tooltipRect - The tooltip's bounding rectangle.
|
|
73
|
-
* @param placement - The tooltip placement.
|
|
74
|
-
* @returns The clamped position.
|
|
75
|
-
*/
|
|
76
|
-
function calculatePosition(triggerRect, tooltipRect, placement) {
|
|
77
|
-
const { top, left, width, height } = triggerRect;
|
|
78
|
-
const tooltipWidth = tooltipRect.width;
|
|
79
|
-
const tooltipHeight = tooltipRect.height;
|
|
80
|
-
const offset = 8;
|
|
81
|
-
const positions = {
|
|
82
|
-
top: {
|
|
83
|
-
top: top + window.scrollY - tooltipHeight - offset,
|
|
84
|
-
left: left + window.scrollX + width / 2 - tooltipWidth / 2,
|
|
85
|
-
},
|
|
86
|
-
bottom: {
|
|
87
|
-
top: top + window.scrollY + height + offset,
|
|
88
|
-
left: left + window.scrollX + width / 2 - tooltipWidth / 2,
|
|
89
|
-
},
|
|
90
|
-
left: {
|
|
91
|
-
top: top + window.scrollY + height / 2 - tooltipHeight / 2,
|
|
92
|
-
left: left + window.scrollX - tooltipWidth - offset,
|
|
93
|
-
},
|
|
94
|
-
right: {
|
|
95
|
-
top: top + window.scrollY + height / 2 - tooltipHeight / 2,
|
|
96
|
-
left: left + window.scrollX + width + offset,
|
|
97
|
-
},
|
|
98
|
-
'top-start': {
|
|
99
|
-
top: top + window.scrollY - tooltipHeight - offset,
|
|
100
|
-
left: left + window.scrollX,
|
|
101
|
-
},
|
|
102
|
-
'top-end': {
|
|
103
|
-
top: top + window.scrollY - tooltipHeight - offset,
|
|
104
|
-
left: left + window.scrollX + width - tooltipWidth,
|
|
105
|
-
},
|
|
106
|
-
'bottom-start': {
|
|
107
|
-
top: top + window.scrollY + height + offset,
|
|
108
|
-
left: left + window.scrollX,
|
|
109
|
-
},
|
|
110
|
-
'bottom-end': {
|
|
111
|
-
top: top + window.scrollY + height + offset,
|
|
112
|
-
left: left + window.scrollX + width - tooltipWidth,
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
const position = { ...positions[placement] };
|
|
116
|
-
const margin = 8;
|
|
117
|
-
const minLeft = window.scrollX + margin;
|
|
118
|
-
const maxLeft = window.scrollX + document.documentElement.clientWidth - tooltipRect.width - margin;
|
|
119
|
-
const minTop = window.scrollY + margin;
|
|
120
|
-
const maxTop = window.scrollY + document.documentElement.clientHeight - tooltipRect.height - margin;
|
|
121
|
-
position.left = Math.min(Math.max(position.left, minLeft), Math.max(minLeft, maxLeft));
|
|
122
|
-
position.top = Math.min(Math.max(position.top, minTop), Math.max(minTop, maxTop));
|
|
123
|
-
return position;
|
|
124
|
-
}
|
|
125
68
|
/**
|
|
126
69
|
* Tooltip component.
|
|
127
70
|
*
|
|
@@ -215,11 +158,8 @@ export class Tooltip {
|
|
|
215
158
|
showTimer;
|
|
216
159
|
hideTimer;
|
|
217
160
|
hideListener = () => this.hide();
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
this.hide();
|
|
221
|
-
};
|
|
222
|
-
escapeBound = false;
|
|
161
|
+
layer = new OverlayLayer();
|
|
162
|
+
owner;
|
|
223
163
|
lastVisible = false;
|
|
224
164
|
/** The rendered content the current position was measured for. */
|
|
225
165
|
lastContentText = null;
|
|
@@ -322,11 +262,14 @@ export class Tooltip {
|
|
|
322
262
|
* previous tooltip, and honours the delay.
|
|
323
263
|
*/
|
|
324
264
|
show() {
|
|
325
|
-
|
|
326
|
-
|
|
265
|
+
const doc = this.triggerWrap?.nativeElement.ownerDocument;
|
|
266
|
+
if (doc) {
|
|
267
|
+
this.releaseOwner();
|
|
268
|
+
this.owner = doc;
|
|
269
|
+
const previous = activeTooltips.get(doc);
|
|
327
270
|
if (previous !== this.hideListener)
|
|
328
271
|
previous?.();
|
|
329
|
-
activeTooltips.set(
|
|
272
|
+
activeTooltips.set(doc, this.hideListener);
|
|
330
273
|
}
|
|
331
274
|
clearTimeout(this.hideTimer);
|
|
332
275
|
clearTimeout(this.showTimer);
|
|
@@ -345,9 +288,7 @@ export class Tooltip {
|
|
|
345
288
|
hide() {
|
|
346
289
|
clearTimeout(this.showTimer);
|
|
347
290
|
clearTimeout(this.hideTimer);
|
|
348
|
-
|
|
349
|
-
activeTooltips.delete(document);
|
|
350
|
-
}
|
|
291
|
+
this.releaseOwner();
|
|
351
292
|
this.visible.set(false);
|
|
352
293
|
this.cdr.markForCheck();
|
|
353
294
|
}
|
|
@@ -382,7 +323,7 @@ export class Tooltip {
|
|
|
382
323
|
* @param event - The key event.
|
|
383
324
|
*/
|
|
384
325
|
handleKeyDown(event) {
|
|
385
|
-
if (event.key === 'Escape')
|
|
326
|
+
if (!this.visible() && event.key === 'Escape')
|
|
386
327
|
this.hide();
|
|
387
328
|
}
|
|
388
329
|
/**
|
|
@@ -425,26 +366,35 @@ export class Tooltip {
|
|
|
425
366
|
ngOnDestroy() {
|
|
426
367
|
clearTimeout(this.showTimer);
|
|
427
368
|
clearTimeout(this.hideTimer);
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
if (this.escapeBound)
|
|
432
|
-
document.removeEventListener('keydown', this.escapeListener);
|
|
369
|
+
this.releaseOwner();
|
|
370
|
+
this.layer.release();
|
|
433
371
|
this.associateEl = null;
|
|
434
372
|
}
|
|
373
|
+
/** Releases tooltip ownership even after the declaring view is detached. */
|
|
374
|
+
releaseOwner() {
|
|
375
|
+
if (this.owner && activeTooltips.get(this.owner) === this.hideListener)
|
|
376
|
+
activeTooltips.delete(this.owner);
|
|
377
|
+
this.owner = undefined;
|
|
378
|
+
}
|
|
435
379
|
/** Attaches the portal to `document.body`, positions it and associates it. */
|
|
436
380
|
attachPortal() {
|
|
437
381
|
const portal = this.portalWrap?.nativeElement;
|
|
438
|
-
|
|
382
|
+
const trigger = this.triggerWrap?.nativeElement;
|
|
383
|
+
if (!portal || !trigger)
|
|
439
384
|
return;
|
|
440
|
-
placeElement(portal,
|
|
441
|
-
this.
|
|
385
|
+
placeElement(portal, trigger.ownerDocument.body);
|
|
386
|
+
const surface = this.contentEl?.nativeElement ?? null;
|
|
387
|
+
this.inner.set(surface);
|
|
442
388
|
this.updatePosition();
|
|
443
389
|
this.associateEl?.setAttribute('aria-describedby', this.boxId());
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
390
|
+
this.layer.sync({
|
|
391
|
+
open: true,
|
|
392
|
+
kind: 'tooltip',
|
|
393
|
+
surface: { current: surface },
|
|
394
|
+
anchor: { current: trigger },
|
|
395
|
+
dismissKey: true,
|
|
396
|
+
onDismiss: this.hideListener,
|
|
397
|
+
});
|
|
448
398
|
}
|
|
449
399
|
/** Detaches the portal and removes the trigger association. */
|
|
450
400
|
detachPortal() {
|
|
@@ -453,20 +403,15 @@ export class Tooltip {
|
|
|
453
403
|
setElementPresent(portal, false);
|
|
454
404
|
this.inner.set(null);
|
|
455
405
|
this.associateEl?.removeAttribute('aria-describedby');
|
|
456
|
-
|
|
457
|
-
document.removeEventListener('keydown', this.escapeListener);
|
|
458
|
-
this.escapeBound = false;
|
|
459
|
-
}
|
|
406
|
+
this.layer.release();
|
|
460
407
|
}
|
|
461
408
|
/** Measures the trigger and tooltip and updates the clamped position. */
|
|
462
409
|
updatePosition() {
|
|
463
|
-
if (typeof window === 'undefined' || typeof document === 'undefined')
|
|
464
|
-
return;
|
|
465
410
|
const trigger = this.triggerWrap?.nativeElement;
|
|
466
411
|
const tooltip = this.contentEl?.nativeElement;
|
|
467
412
|
if (!trigger || !tooltip)
|
|
468
413
|
return;
|
|
469
|
-
this.position.set(
|
|
414
|
+
this.position.set(measureTooltipPosition(trigger, tooltip, this.placement));
|
|
470
415
|
}
|
|
471
416
|
static ɵfac = function Tooltip_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Tooltip)(); };
|
|
472
417
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Tooltip, selectors: [["mol-tooltip"]], viewQuery: function Tooltip_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -570,5 +515,5 @@ export class Tooltip {
|
|
|
570
515
|
type: ViewChild,
|
|
571
516
|
args: ['contentEl']
|
|
572
517
|
}] }); })();
|
|
573
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Tooltip, { className: "Tooltip", filePath: "components/tooltip.component.ts", lineNumber:
|
|
518
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Tooltip, { className: "Tooltip", filePath: "components/tooltip.component.ts", lineNumber: 168 }); })();
|
|
574
519
|
//# sourceMappingURL=tooltip.component.js.map
|