@coolon/angular-ui-powerups 16.1.0-alpha.255 → 16.1.0-alpha.256
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/esm2022/lib/directives/aup-tooltip.directive.mjs +84 -0
- package/esm2022/lib/directives/directives.module.mjs +14 -5
- package/esm2022/lib/directives/exports.mjs +2 -1
- package/fesm2022/coolon-angular-ui-powerups.mjs +95 -7
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/directives/aup-tooltip.directive.d.ts +53 -0
- package/lib/directives/directives.module.d.ts +15 -13
- package/lib/directives/exports.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Directive, Input, ViewContainerRef, inject } from '@angular/core';
|
|
2
|
+
import { MatTooltip } from '@angular/material/tooltip';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* `matTooltip` that also renders inside a detached change-detection subtree — i.e. inside an
|
|
6
|
+
* `aup-table` body with `AUP_TABLE_OPTIMIZED_CHANGE_DETECTION`.
|
|
7
|
+
*
|
|
8
|
+
* MatTooltip creates its overlay component with `new ComponentPortal(component, this._viewContainerRef)`,
|
|
9
|
+
* so the CDK takes the `portal.viewContainerRef` branch of `attachComponentPortal` and skips
|
|
10
|
+
* `ApplicationRef.attachView`: only the DOM node is relocated to the overlay container, while the
|
|
11
|
+
* component itself stays a change-detection child of the view that hosts the trigger. MatTooltip then
|
|
12
|
+
* merely calls `markForCheck()` on it, twice:
|
|
13
|
+
*
|
|
14
|
+
* - in `_updateTooltipMessage()`, right after attaching — the message;
|
|
15
|
+
* - in `TooltipComponent._onShow()`, `showDelay` later — `_isMultiline`, which drives
|
|
16
|
+
* `mdc-tooltip--multiline` and therefore `text-align: left`.
|
|
17
|
+
*
|
|
18
|
+
* Neither reaches a detached subtree, so the tooltip opens EMPTY and, once text does appear, is
|
|
19
|
+
* centred until some unrelated check runs — a visible layout shift, or no text at all if the pointer
|
|
20
|
+
* is held still. Both were measured in a device table before this existed.
|
|
21
|
+
*
|
|
22
|
+
* `_viewContainerRef` and `_portal` are private in `_MatTooltipBase`, so the cause cannot be fixed
|
|
23
|
+
* from a subclass; the honest fix belongs upstream. What a subclass CAN do is force the checks that
|
|
24
|
+
* MatTooltip only requests. Hooking `show()` — rather than a hover event — is what makes this
|
|
25
|
+
* reliable: `super.show()` has attached the overlay and set the message by the time it returns, so
|
|
26
|
+
* there is no ordering to race. (A listener on an ancestor element loses that race unpredictably: the
|
|
27
|
+
* trigger's own `mouseenter` is a separate event dispatch.)
|
|
28
|
+
*
|
|
29
|
+
* Inherited options keep their Material names, e.g.
|
|
30
|
+
* `<span [aupTooltip]="text" matTooltipPosition="above">`.
|
|
31
|
+
*/
|
|
32
|
+
export class AupTooltipDirective extends MatTooltip {
|
|
33
|
+
/**
|
|
34
|
+
* The very container MatTooltip inserts its overlay component into, so the inserted ViewRefs ARE the
|
|
35
|
+
* tooltip's views. Measured in a browser: after `super.show()` this holds exactly 1 view, and
|
|
36
|
+
* checking it turns the overlay's text from "" into the message. Preferred over the injected
|
|
37
|
+
* `ChangeDetectorRef` (which also works) because it targets the tooltip's own view rather than
|
|
38
|
+
* whichever enclosing view the node injector happens to resolve to.
|
|
39
|
+
*/
|
|
40
|
+
container = inject(ViewContainerRef);
|
|
41
|
+
set text(value) {
|
|
42
|
+
this.message = value;
|
|
43
|
+
}
|
|
44
|
+
get text() {
|
|
45
|
+
return this.message;
|
|
46
|
+
}
|
|
47
|
+
show(delay = this.showDelay, origin) {
|
|
48
|
+
super.show(delay, origin);
|
|
49
|
+
// The message is already set on the instance, so this paints it immediately.
|
|
50
|
+
this.check();
|
|
51
|
+
// `_onShow()` cannot know the text wrapped until the box is on screen, so it measures and sets
|
|
52
|
+
// `_isMultiline` only after the delay. Check just past that point, which reproduces the
|
|
53
|
+
// single-frame reflow an attached view gets for free.
|
|
54
|
+
setTimeout(() => this.check(), delay + AupTooltipDirective.LAYOUT_CHECK_GRACE_MS);
|
|
55
|
+
}
|
|
56
|
+
check() {
|
|
57
|
+
for (let i = 0; i < this.container.length; i++) {
|
|
58
|
+
const view = this.container.get(i);
|
|
59
|
+
// Cells are recycled aggressively by a virtual-scroll table, and detectChanges() on a destroyed
|
|
60
|
+
// view throws.
|
|
61
|
+
if (view && !view.destroyed) {
|
|
62
|
+
view.detectChanges();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AupTooltipDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
67
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: { text: ["aupTooltip", "text"] }, exportAs: ["aupTooltip"], usesInheritance: true, ngImport: i0 });
|
|
68
|
+
}
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AupTooltipDirective, decorators: [{
|
|
70
|
+
type: Directive,
|
|
71
|
+
args: [{
|
|
72
|
+
// eslint-disable-next-line @angular-eslint/directive-selector -- mirrors matTooltip's attribute form
|
|
73
|
+
selector: '[aupTooltip]',
|
|
74
|
+
exportAs: 'aupTooltip'
|
|
75
|
+
}]
|
|
76
|
+
}], propDecorators: { text: [{
|
|
77
|
+
type: Input,
|
|
78
|
+
args: ['aupTooltip']
|
|
79
|
+
}] } });
|
|
80
|
+
(function (AupTooltipDirective) {
|
|
81
|
+
/** Enough to land after `_onShow()` has set `_isMultiline`, small enough to be imperceptible. */
|
|
82
|
+
AupTooltipDirective.LAYOUT_CHECK_GRACE_MS = 20;
|
|
83
|
+
})(AupTooltipDirective || (AupTooltipDirective = {}));
|
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXVwLX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ZXcgZ2V0cyBmb3IgZnJlZS5cbiAgICBzZXRUaW1lb3V0KCgpID0+IHRoaXMuY2hlY2soKSwgZGVsYXkgKyBBdXBUb29sdGlwRGlyZWN0aXZlLkxBWU9VVF9DSEVDS19HUkFDRV9NUyk7XG4gIH1cblxuICBwcml2YXRlIGNoZWNrKCkge1xuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgdGhpcy5jb250YWluZXIubGVuZ3RoOyBpKyspIHtcbiAgICAgIGNvbnN0IHZpZXcgPSB0aGlzLmNvbnRhaW5lci5nZXQoaSk7XG4gICAgICAvLyBDZWxscyBhcmUgcmVjeWNsZWQgYWdncmVzc2l2ZWx5IGJ5IGEgdmlydHVhbC1zY3JvbGwgdGFibGUsIGFuZCBkZXRlY3RDaGFuZ2VzKCkgb24gYSBkZXN0cm95ZWRcbiAgICAgIC8vIHZpZXcgdGhyb3dzLlxuICAgICAgaWYgKHZpZXcgJiYgIXZpZXcuZGVzdHJveWVkKSB7XG4gICAgICAgIHZpZXcuZGV0ZWN0Q2hhbmdlcygpO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuXG5leHBvcnQgbmFtZXNwYWNlIEF1cFRvb2x0aXBEaXJlY3RpdmUge1xuICAvKiogRW5vdWdoIHRvIGxhbmQgYWZ0ZXIgYF9vblNob3coKWAgaGFzIHNldCBgX2lzTXVsdGlsaW5lYCwgc21hbGwgZW5vdWdoIHRvIGJlIGltcGVyY2VwdGlibGUuICovXG4gIGV4cG9ydCBjb25zdCBMQVlPVVRfQ0hFQ0tfR1JBQ0VfTVMgPSAyMDtcbn1cbiJdfQ==
|
|
@@ -5,7 +5,9 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
5
5
|
import { MatInputModule } from '@angular/material/input';
|
|
6
6
|
import { MatSelectModule } from '@angular/material/select';
|
|
7
7
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
8
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
8
9
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
10
|
+
import { AupTooltipDirective } from './aup-tooltip.directive';
|
|
9
11
|
import { CommandDirective } from './command.directive';
|
|
10
12
|
import { FocusBindingDirective } from './focus-binding.directive';
|
|
11
13
|
import { GarbageCollectorDirective } from './garbage-collector.directive';
|
|
@@ -14,7 +16,8 @@ import { HighlightPipe } from './highlight.pipe';
|
|
|
14
16
|
import * as i0 from "@angular/core";
|
|
15
17
|
export class DirectivesModule {
|
|
16
18
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
17
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: DirectivesModule, declarations: [
|
|
19
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: DirectivesModule, declarations: [AupTooltipDirective,
|
|
20
|
+
CommandDirective,
|
|
18
21
|
FocusBindingDirective,
|
|
19
22
|
HighlightPipe,
|
|
20
23
|
HighlightTextModelDirective,
|
|
@@ -24,7 +27,9 @@ export class DirectivesModule {
|
|
|
24
27
|
MatInputModule,
|
|
25
28
|
MatFormFieldModule,
|
|
26
29
|
MatSelectModule,
|
|
27
|
-
MatTabsModule
|
|
30
|
+
MatTabsModule,
|
|
31
|
+
MatTooltipModule], exports: [AupTooltipDirective,
|
|
32
|
+
CommandDirective,
|
|
28
33
|
FocusBindingDirective,
|
|
29
34
|
HighlightPipe,
|
|
30
35
|
HighlightTextModelDirective,
|
|
@@ -35,12 +40,14 @@ export class DirectivesModule {
|
|
|
35
40
|
MatInputModule,
|
|
36
41
|
MatFormFieldModule,
|
|
37
42
|
MatSelectModule,
|
|
38
|
-
MatTabsModule
|
|
43
|
+
MatTabsModule,
|
|
44
|
+
MatTooltipModule] });
|
|
39
45
|
}
|
|
40
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DirectivesModule, decorators: [{
|
|
41
47
|
type: NgModule,
|
|
42
48
|
args: [{
|
|
43
49
|
declarations: [
|
|
50
|
+
AupTooltipDirective,
|
|
44
51
|
CommandDirective,
|
|
45
52
|
FocusBindingDirective,
|
|
46
53
|
HighlightPipe,
|
|
@@ -54,9 +61,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
54
61
|
MatInputModule,
|
|
55
62
|
MatFormFieldModule,
|
|
56
63
|
MatSelectModule,
|
|
57
|
-
MatTabsModule
|
|
64
|
+
MatTabsModule,
|
|
65
|
+
MatTooltipModule
|
|
58
66
|
],
|
|
59
67
|
exports: [
|
|
68
|
+
AupTooltipDirective,
|
|
60
69
|
CommandDirective,
|
|
61
70
|
FocusBindingDirective,
|
|
62
71
|
HighlightPipe,
|
|
@@ -65,4 +74,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
65
74
|
]
|
|
66
75
|
}]
|
|
67
76
|
}] });
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlcy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9kaXJlY3RpdmVzL2RpcmVjdGl2ZXMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUF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2xhcmF0aW9uczogW1xuICAgIEF1cFRvb2x0aXBEaXJlY3RpdmUsXG4gICAgQ29tbWFuZERpcmVjdGl2ZSxcbiAgICBGb2N1c0JpbmRpbmdEaXJlY3RpdmUsXG4gICAgSGlnaGxpZ2h0UGlwZSxcbiAgICBIaWdobGlnaHRUZXh0TW9kZWxEaXJlY3RpdmUsXG4gICAgR2FyYmFnZUNvbGxlY3RvckRpcmVjdGl2ZVxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEJyb3dzZXJBbmltYXRpb25zTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuICAgIE1hdElucHV0TW9kdWxlLFxuICAgIE1hdEZvcm1GaWVsZE1vZHVsZSxcbiAgICBNYXRTZWxlY3RNb2R1bGUsXG4gICAgTWF0VGFic01vZHVsZSxcbiAgICBNYXRUb29sdGlwTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBBdXBUb29sdGlwRGlyZWN0aXZlLFxuICAgIENvbW1hbmREaXJlY3RpdmUsXG4gICAgRm9jdXNCaW5kaW5nRGlyZWN0aXZlLFxuICAgIEhpZ2hsaWdodFBpcGUsXG4gICAgSGlnaGxpZ2h0VGV4dE1vZGVsRGlyZWN0aXZlLFxuICAgIEdhcmJhZ2VDb2xsZWN0b3JEaXJlY3RpdmVcbiAgXVxuXG59KVxuZXhwb3J0IGNsYXNzIERpcmVjdGl2ZXNNb2R1bGUge1xufVxuIl19
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Automatically generated by barrelsby.
|
|
3
3
|
*/
|
|
4
|
+
export * from "./aup-tooltip.directive";
|
|
4
5
|
export * from "./command.directive";
|
|
5
6
|
export * from "./directives.module";
|
|
6
7
|
export * from "./focus-binding-factory";
|
|
@@ -10,4 +11,4 @@ export * from "./garbage-collector.directive";
|
|
|
10
11
|
export * from "./highlight-text-model.directive";
|
|
11
12
|
export * from "./highlight.pipe";
|
|
12
13
|
export * from "./resize-observer.directive";
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwb3J0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2RpcmVjdGl2ZXMvZXhwb3J0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBmaWxlIEF1dG9tYXRpY2FsbHkgZ2VuZXJhdGVkIGJ5IGJhcnJlbHNieS5cbiAqL1xuXG5leHBvcnQgKiBmcm9tIFwiLi9hdXAtdG9vbHRpcC5kaXJlY3RpdmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbW1hbmQuZGlyZWN0aXZlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kaXJlY3RpdmVzLm1vZHVsZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZm9jdXMtYmluZGluZy1mYWN0b3J5XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9mb2N1cy1iaW5kaW5nLmRpcmVjdGl2ZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZm9jdXMtYmluZGluZ1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vZ2FyYmFnZS1jb2xsZWN0b3IuZGlyZWN0aXZlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9oaWdobGlnaHQtdGV4dC1tb2RlbC5kaXJlY3RpdmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2hpZ2hsaWdodC5waXBlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9yZXNpemUtb2JzZXJ2ZXIuZGlyZWN0aXZlXCI7XG4iXX0=
|
|
@@ -2,7 +2,7 @@ import { ObserversModule } from '@angular/cdk/observers';
|
|
|
2
2
|
import * as i1$1 from '@angular/common';
|
|
3
3
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import {
|
|
5
|
+
import { inject, ViewContainerRef, Directive, Input, ElementRef, Inject, Host, Optional, HostListener, InjectionToken, ChangeDetectorRef, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, HostBinding, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, ViewChildren, EventEmitter, Output, Self, ContentChildren, ComponentRef, Injector, PLATFORM_ID, SkipSelf } from '@angular/core';
|
|
6
6
|
import * as i2$5 from '@angular/forms';
|
|
7
7
|
import { FormsModule } from '@angular/forms';
|
|
8
8
|
import * as i4 from '@angular/material/form-field';
|
|
@@ -37,7 +37,7 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
|
37
37
|
import * as i2$7 from '@angular/material/table';
|
|
38
38
|
import { MatTableModule } from '@angular/material/table';
|
|
39
39
|
import * as i3 from '@angular/material/tooltip';
|
|
40
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
40
|
+
import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
|
|
41
41
|
import * as i4$2 from 'ng-table-virtual-scroll';
|
|
42
42
|
import { TableVirtualScrollDataSource, TableVirtualScrollModule } from 'ng-table-virtual-scroll';
|
|
43
43
|
import * as i1$3 from '@coolon/pectin';
|
|
@@ -66,6 +66,87 @@ import { MatCardModule } from '@angular/material/card';
|
|
|
66
66
|
import * as i3$4 from '@angular/material/list';
|
|
67
67
|
import { MatListModule } from '@angular/material/list';
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* `matTooltip` that also renders inside a detached change-detection subtree — i.e. inside an
|
|
71
|
+
* `aup-table` body with `AUP_TABLE_OPTIMIZED_CHANGE_DETECTION`.
|
|
72
|
+
*
|
|
73
|
+
* MatTooltip creates its overlay component with `new ComponentPortal(component, this._viewContainerRef)`,
|
|
74
|
+
* so the CDK takes the `portal.viewContainerRef` branch of `attachComponentPortal` and skips
|
|
75
|
+
* `ApplicationRef.attachView`: only the DOM node is relocated to the overlay container, while the
|
|
76
|
+
* component itself stays a change-detection child of the view that hosts the trigger. MatTooltip then
|
|
77
|
+
* merely calls `markForCheck()` on it, twice:
|
|
78
|
+
*
|
|
79
|
+
* - in `_updateTooltipMessage()`, right after attaching — the message;
|
|
80
|
+
* - in `TooltipComponent._onShow()`, `showDelay` later — `_isMultiline`, which drives
|
|
81
|
+
* `mdc-tooltip--multiline` and therefore `text-align: left`.
|
|
82
|
+
*
|
|
83
|
+
* Neither reaches a detached subtree, so the tooltip opens EMPTY and, once text does appear, is
|
|
84
|
+
* centred until some unrelated check runs — a visible layout shift, or no text at all if the pointer
|
|
85
|
+
* is held still. Both were measured in a device table before this existed.
|
|
86
|
+
*
|
|
87
|
+
* `_viewContainerRef` and `_portal` are private in `_MatTooltipBase`, so the cause cannot be fixed
|
|
88
|
+
* from a subclass; the honest fix belongs upstream. What a subclass CAN do is force the checks that
|
|
89
|
+
* MatTooltip only requests. Hooking `show()` — rather than a hover event — is what makes this
|
|
90
|
+
* reliable: `super.show()` has attached the overlay and set the message by the time it returns, so
|
|
91
|
+
* there is no ordering to race. (A listener on an ancestor element loses that race unpredictably: the
|
|
92
|
+
* trigger's own `mouseenter` is a separate event dispatch.)
|
|
93
|
+
*
|
|
94
|
+
* Inherited options keep their Material names, e.g.
|
|
95
|
+
* `<span [aupTooltip]="text" matTooltipPosition="above">`.
|
|
96
|
+
*/
|
|
97
|
+
class AupTooltipDirective extends MatTooltip {
|
|
98
|
+
/**
|
|
99
|
+
* The very container MatTooltip inserts its overlay component into, so the inserted ViewRefs ARE the
|
|
100
|
+
* tooltip's views. Measured in a browser: after `super.show()` this holds exactly 1 view, and
|
|
101
|
+
* checking it turns the overlay's text from "" into the message. Preferred over the injected
|
|
102
|
+
* `ChangeDetectorRef` (which also works) because it targets the tooltip's own view rather than
|
|
103
|
+
* whichever enclosing view the node injector happens to resolve to.
|
|
104
|
+
*/
|
|
105
|
+
container = inject(ViewContainerRef);
|
|
106
|
+
set text(value) {
|
|
107
|
+
this.message = value;
|
|
108
|
+
}
|
|
109
|
+
get text() {
|
|
110
|
+
return this.message;
|
|
111
|
+
}
|
|
112
|
+
show(delay = this.showDelay, origin) {
|
|
113
|
+
super.show(delay, origin);
|
|
114
|
+
// The message is already set on the instance, so this paints it immediately.
|
|
115
|
+
this.check();
|
|
116
|
+
// `_onShow()` cannot know the text wrapped until the box is on screen, so it measures and sets
|
|
117
|
+
// `_isMultiline` only after the delay. Check just past that point, which reproduces the
|
|
118
|
+
// single-frame reflow an attached view gets for free.
|
|
119
|
+
setTimeout(() => this.check(), delay + AupTooltipDirective.LAYOUT_CHECK_GRACE_MS);
|
|
120
|
+
}
|
|
121
|
+
check() {
|
|
122
|
+
for (let i = 0; i < this.container.length; i++) {
|
|
123
|
+
const view = this.container.get(i);
|
|
124
|
+
// Cells are recycled aggressively by a virtual-scroll table, and detectChanges() on a destroyed
|
|
125
|
+
// view throws.
|
|
126
|
+
if (view && !view.destroyed) {
|
|
127
|
+
view.detectChanges();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AupTooltipDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
132
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: { text: ["aupTooltip", "text"] }, exportAs: ["aupTooltip"], usesInheritance: true, ngImport: i0 });
|
|
133
|
+
}
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AupTooltipDirective, decorators: [{
|
|
135
|
+
type: Directive,
|
|
136
|
+
args: [{
|
|
137
|
+
// eslint-disable-next-line @angular-eslint/directive-selector -- mirrors matTooltip's attribute form
|
|
138
|
+
selector: '[aupTooltip]',
|
|
139
|
+
exportAs: 'aupTooltip'
|
|
140
|
+
}]
|
|
141
|
+
}], propDecorators: { text: [{
|
|
142
|
+
type: Input,
|
|
143
|
+
args: ['aupTooltip']
|
|
144
|
+
}] } });
|
|
145
|
+
(function (AupTooltipDirective) {
|
|
146
|
+
/** Enough to land after `_onShow()` has set `_isMultiline`, small enough to be imperceptible. */
|
|
147
|
+
AupTooltipDirective.LAYOUT_CHECK_GRACE_MS = 20;
|
|
148
|
+
})(AupTooltipDirective || (AupTooltipDirective = {}));
|
|
149
|
+
|
|
69
150
|
/* eslint-disable @typescript-eslint/no-explicit-any -- command directive accepts arbitrary command shapes */
|
|
70
151
|
class CommandDirective extends GarbageCollector {
|
|
71
152
|
elementRef;
|
|
@@ -607,7 +688,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
607
688
|
|
|
608
689
|
class DirectivesModule {
|
|
609
690
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
610
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: DirectivesModule, declarations: [
|
|
691
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: DirectivesModule, declarations: [AupTooltipDirective,
|
|
692
|
+
CommandDirective,
|
|
611
693
|
FocusBindingDirective,
|
|
612
694
|
HighlightPipe,
|
|
613
695
|
HighlightTextModelDirective,
|
|
@@ -617,7 +699,9 @@ class DirectivesModule {
|
|
|
617
699
|
MatInputModule,
|
|
618
700
|
MatFormFieldModule,
|
|
619
701
|
MatSelectModule,
|
|
620
|
-
MatTabsModule
|
|
702
|
+
MatTabsModule,
|
|
703
|
+
MatTooltipModule], exports: [AupTooltipDirective,
|
|
704
|
+
CommandDirective,
|
|
621
705
|
FocusBindingDirective,
|
|
622
706
|
HighlightPipe,
|
|
623
707
|
HighlightTextModelDirective,
|
|
@@ -628,12 +712,14 @@ class DirectivesModule {
|
|
|
628
712
|
MatInputModule,
|
|
629
713
|
MatFormFieldModule,
|
|
630
714
|
MatSelectModule,
|
|
631
|
-
MatTabsModule
|
|
715
|
+
MatTabsModule,
|
|
716
|
+
MatTooltipModule] });
|
|
632
717
|
}
|
|
633
718
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DirectivesModule, decorators: [{
|
|
634
719
|
type: NgModule,
|
|
635
720
|
args: [{
|
|
636
721
|
declarations: [
|
|
722
|
+
AupTooltipDirective,
|
|
637
723
|
CommandDirective,
|
|
638
724
|
FocusBindingDirective,
|
|
639
725
|
HighlightPipe,
|
|
@@ -647,9 +733,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
647
733
|
MatInputModule,
|
|
648
734
|
MatFormFieldModule,
|
|
649
735
|
MatSelectModule,
|
|
650
|
-
MatTabsModule
|
|
736
|
+
MatTabsModule,
|
|
737
|
+
MatTooltipModule
|
|
651
738
|
],
|
|
652
739
|
exports: [
|
|
740
|
+
AupTooltipDirective,
|
|
653
741
|
CommandDirective,
|
|
654
742
|
FocusBindingDirective,
|
|
655
743
|
HighlightPipe,
|
|
@@ -13707,5 +13795,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
13707
13795
|
* Generated bundle index. Do not edit.
|
|
13708
13796
|
*/
|
|
13709
13797
|
|
|
13710
|
-
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, TextSearchContext, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
13798
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, TextSearchContext, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
13711
13799
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|