@angular/material 21.0.0-next.9 → 21.0.0-rc.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/core/tokens/_classes.scss +1 -1
- package/core/tokens/m2/_md-sys-color.scss +17 -17
- package/fesm2022/_animation-chunk.mjs +10 -16
- package/fesm2022/_animation-chunk.mjs.map +1 -1
- package/fesm2022/_date-formats-chunk.mjs +68 -164
- package/fesm2022/_date-formats-chunk.mjs.map +1 -1
- package/fesm2022/_date-range-input-harness-chunk.mjs +284 -463
- package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_error-options-chunk.mjs +56 -19
- package/fesm2022/_error-options-chunk.mjs.map +1 -1
- package/fesm2022/_error-state-chunk.mjs +24 -31
- package/fesm2022/_error-state-chunk.mjs.map +1 -1
- package/fesm2022/_form-field-chunk.mjs +1224 -1017
- package/fesm2022/_form-field-chunk.mjs.map +1 -1
- package/fesm2022/_icon-button-chunk.mjs +243 -187
- package/fesm2022/_icon-button-chunk.mjs.map +1 -1
- package/fesm2022/_icon-registry-chunk.mjs +350 -575
- package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
- package/fesm2022/_input-harness-chunk.mjs +56 -107
- package/fesm2022/_input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_input-value-accessor-chunk.mjs +0 -6
- package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -1
- package/fesm2022/_internal-form-field-chunk.mjs +59 -19
- package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
- package/fesm2022/_line-chunk.mjs +83 -43
- package/fesm2022/_line-chunk.mjs.map +1 -1
- package/fesm2022/_option-chunk.mjs +348 -311
- package/fesm2022/_option-chunk.mjs.map +1 -1
- package/fesm2022/_option-harness-chunk.mjs +23 -39
- package/fesm2022/_option-harness-chunk.mjs.map +1 -1
- package/fesm2022/_option-module-chunk.mjs +36 -10
- package/fesm2022/_option-module-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-chunk.mjs +79 -44
- package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs +36 -10
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
- package/fesm2022/_public-api-chunk.mjs +71 -134
- package/fesm2022/_public-api-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-chunk.mjs +504 -600
- package/fesm2022/_ripple-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-loader-chunk.mjs +120 -138
- package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-module-chunk.mjs +36 -10
- package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
- package/fesm2022/_structural-styles-chunk.mjs +37 -10
- package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
- package/fesm2022/_tooltip-chunk.mjs +810 -888
- package/fesm2022/_tooltip-chunk.mjs.map +1 -1
- package/fesm2022/autocomplete-testing.mjs +62 -86
- package/fesm2022/autocomplete-testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +965 -1126
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge-testing.mjs +38 -54
- package/fesm2022/badge-testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +321 -272
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet-testing.mjs +10 -24
- package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +349 -344
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-testing.mjs +60 -94
- package/fesm2022/button-testing.mjs.map +1 -1
- package/fesm2022/button-toggle-testing.mjs +76 -125
- package/fesm2022/button-toggle-testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +752 -662
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +263 -158
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card-testing.mjs +19 -33
- package/fesm2022/card-testing.mjs.map +1 -1
- package/fesm2022/card.mjs +576 -272
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox-testing.mjs +71 -123
- package/fesm2022/checkbox-testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +515 -477
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips-testing.mjs +201 -344
- package/fesm2022/chips-testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +2552 -2289
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core-testing.mjs +14 -28
- package/fesm2022/core-testing.mjs.map +1 -1
- package/fesm2022/core.mjs +357 -328
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker-testing.mjs +15 -25
- package/fesm2022/datepicker-testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +4826 -4563
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog-testing.mjs +93 -129
- package/fesm2022/dialog-testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +810 -829
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider-testing.mjs +10 -11
- package/fesm2022/divider-testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +119 -43
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion-testing.mjs +74 -130
- package/fesm2022/expansion-testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +703 -515
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field-testing-control.mjs +16 -33
- package/fesm2022/form-field-testing-control.mjs.map +1 -1
- package/fesm2022/form-field-testing.mjs +118 -179
- package/fesm2022/form-field-testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +36 -10
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list-testing.mjs +65 -113
- package/fesm2022/grid-list-testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +559 -494
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon-testing.mjs +148 -127
- package/fesm2022/icon-testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +325 -351
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input-testing.mjs +59 -99
- package/fesm2022/input-testing.mjs.map +1 -1
- package/fesm2022/input.mjs +457 -520
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list-testing.mjs +251 -434
- package/fesm2022/list-testing.mjs.map +1 -1
- package/fesm2022/list.mjs +1522 -1204
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs +0 -5
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu-testing.mjs +159 -228
- package/fesm2022/menu-testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +1338 -1343
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator-testing.mjs +55 -79
- package/fesm2022/paginator-testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +381 -309
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar-testing.mjs +12 -21
- package/fesm2022/progress-bar-testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +224 -169
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner-testing.mjs +13 -23
- package/fesm2022/progress-spinner-testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +235 -160
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio-testing.mjs +133 -208
- package/fesm2022/radio-testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +712 -679
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select-testing.mjs +83 -117
- package/fesm2022/select-testing.mjs.map +1 -1
- package/fesm2022/select.mjs +1116 -1246
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav-testing.mjs +54 -120
- package/fesm2022/sidenav-testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +1078 -995
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle-testing.mjs +57 -92
- package/fesm2022/slide-toggle-testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +369 -279
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider-testing.mjs +90 -138
- package/fesm2022/slider-testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +1651 -1716
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar-testing.mjs +40 -87
- package/fesm2022/snack-bar-testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +763 -714
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort-testing.mjs +45 -66
- package/fesm2022/sort-testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +419 -344
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper-testing.mjs +78 -154
- package/fesm2022/stepper-testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +790 -498
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table-testing.mjs +120 -213
- package/fesm2022/table-testing.mjs.map +1 -1
- package/fesm2022/table.mjs +1026 -684
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs-testing.mjs +125 -197
- package/fesm2022/tabs-testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +2351 -2028
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker-testing.mjs +113 -172
- package/fesm2022/timepicker-testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +1019 -826
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar-testing.mjs +16 -27
- package/fesm2022/toolbar-testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +163 -78
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip-testing.mjs +41 -52
- package/fesm2022/tooltip-testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +36 -10
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree-testing.mjs +86 -162
- package/fesm2022/tree-testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +638 -466
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/types/expansion.d.ts +4 -2
- package/types/menu-testing.d.ts +2 -0
- package/types/select.d.ts +1 -1
- package/types/timepicker.d.ts +1 -0
|
@@ -12,916 +12,838 @@ import { ComponentPortal } from '@angular/cdk/portal';
|
|
|
12
12
|
import { Subject } from 'rxjs';
|
|
13
13
|
import { _animationsDisabled } from './_animation-chunk.mjs';
|
|
14
14
|
|
|
15
|
-
/** Time in ms to throttle repositioning after scroll events. */
|
|
16
15
|
const SCROLL_THROTTLE_MS = 20;
|
|
17
|
-
/**
|
|
18
|
-
* Creates an error to be thrown if the user supplied an invalid tooltip position.
|
|
19
|
-
* @docs-private
|
|
20
|
-
*/
|
|
21
16
|
function getMatTooltipInvalidPositionError(position) {
|
|
22
|
-
|
|
17
|
+
return Error(`Tooltip position "${position}" is invalid.`);
|
|
23
18
|
}
|
|
24
|
-
/** Injection token that determines the scroll handling while a tooltip is visible. */
|
|
25
19
|
const MAT_TOOLTIP_SCROLL_STRATEGY = new InjectionToken('mat-tooltip-scroll-strategy', {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
providedIn: 'root',
|
|
21
|
+
factory: () => {
|
|
22
|
+
const injector = inject(Injector);
|
|
23
|
+
return () => createRepositionScrollStrategy(injector, {
|
|
24
|
+
scrollThrottle: SCROLL_THROTTLE_MS
|
|
25
|
+
});
|
|
26
|
+
}
|
|
31
27
|
});
|
|
32
|
-
/** Injection token to be used to override the default options for `matTooltip`. */
|
|
33
28
|
const MAT_TOOLTIP_DEFAULT_OPTIONS = new InjectionToken('mat-tooltip-default-options', {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
providedIn: 'root',
|
|
30
|
+
factory: () => ({
|
|
31
|
+
showDelay: 0,
|
|
32
|
+
hideDelay: 0,
|
|
33
|
+
touchendHideDelay: 1500
|
|
34
|
+
})
|
|
40
35
|
});
|
|
41
|
-
/**
|
|
42
|
-
* CSS class that will be attached to the overlay panel.
|
|
43
|
-
* @deprecated
|
|
44
|
-
* @breaking-change 13.0.0 remove this variable
|
|
45
|
-
*/
|
|
46
36
|
const TOOLTIP_PANEL_CLASS = 'mat-mdc-tooltip-panel';
|
|
47
37
|
const PANEL_CLASS = 'tooltip-panel';
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
// because they have some top-level references to `window` which break during SSR.
|
|
38
|
+
const passiveListenerOptions = normalizePassiveListenerOptions({
|
|
39
|
+
passive: true
|
|
40
|
+
});
|
|
52
41
|
const MIN_VIEWPORT_TOOLTIP_THRESHOLD = 8;
|
|
53
42
|
const UNBOUNDED_ANCHOR_GAP = 8;
|
|
54
43
|
const MIN_HEIGHT = 24;
|
|
55
44
|
const MAX_WIDTH = 200;
|
|
56
|
-
/**
|
|
57
|
-
* Directive that attaches a material design tooltip to the host element. Animates the showing and
|
|
58
|
-
* hiding of a tooltip provided position (defaults to below the element).
|
|
59
|
-
*
|
|
60
|
-
* https://material.io/design/components/tooltips.html
|
|
61
|
-
*/
|
|
62
45
|
class MatTooltip {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const isDisabled = coerceBooleanProperty(value);
|
|
123
|
-
if (this._disabled !== isDisabled) {
|
|
124
|
-
this._disabled = isDisabled;
|
|
125
|
-
// If tooltip is disabled, hide immediately.
|
|
126
|
-
if (isDisabled) {
|
|
127
|
-
this.hide(0);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
this._setupPointerEnterEventsIfNeeded();
|
|
131
|
-
}
|
|
132
|
-
this._syncAriaDescription(this.message);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
/** The default delay in ms before showing the tooltip after show is called */
|
|
136
|
-
get showDelay() {
|
|
137
|
-
return this._showDelay;
|
|
138
|
-
}
|
|
139
|
-
set showDelay(value) {
|
|
140
|
-
this._showDelay = coerceNumberProperty(value);
|
|
141
|
-
}
|
|
142
|
-
_showDelay;
|
|
143
|
-
/** The default delay in ms before hiding the tooltip after hide is called */
|
|
144
|
-
get hideDelay() {
|
|
145
|
-
return this._hideDelay;
|
|
146
|
-
}
|
|
147
|
-
set hideDelay(value) {
|
|
148
|
-
this._hideDelay = coerceNumberProperty(value);
|
|
149
|
-
if (this._tooltipInstance) {
|
|
150
|
-
this._tooltipInstance._mouseLeaveHideDelay = this._hideDelay;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
_hideDelay;
|
|
154
|
-
/**
|
|
155
|
-
* How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
|
|
156
|
-
* uses a long press gesture to show and hide, however it can conflict with the native browser
|
|
157
|
-
* gestures. To work around the conflict, Angular Material disables native gestures on the
|
|
158
|
-
* trigger, but that might not be desirable on particular elements (e.g. inputs and draggable
|
|
159
|
-
* elements). The different values for this option configure the touch event handling as follows:
|
|
160
|
-
* - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native
|
|
161
|
-
* browser gestures on particular elements. In particular, it allows text selection on inputs
|
|
162
|
-
* and textareas, and preserves the native browser dragging on elements marked as `draggable`.
|
|
163
|
-
* - `on` - Enables touch gestures for all elements and disables native
|
|
164
|
-
* browser gestures with no exceptions.
|
|
165
|
-
* - `off` - Disables touch gestures. Note that this will prevent the tooltip from
|
|
166
|
-
* showing on touch devices.
|
|
167
|
-
*/
|
|
168
|
-
touchGestures = 'auto';
|
|
169
|
-
/** The message to be displayed in the tooltip */
|
|
170
|
-
get message() {
|
|
171
|
-
return this._message;
|
|
172
|
-
}
|
|
173
|
-
set message(value) {
|
|
174
|
-
const oldMessage = this._message;
|
|
175
|
-
// If the message is not a string (e.g. number), convert it to a string and trim it.
|
|
176
|
-
// Must convert with `String(value)`, not `${value}`, otherwise Closure Compiler optimises
|
|
177
|
-
// away the string-conversion: https://github.com/angular/components/issues/20684
|
|
178
|
-
this._message = value != null ? String(value).trim() : '';
|
|
179
|
-
if (!this._message && this._isTooltipVisible()) {
|
|
180
|
-
this.hide(0);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
this._setupPointerEnterEventsIfNeeded();
|
|
184
|
-
this._updateTooltipMessage();
|
|
185
|
-
}
|
|
186
|
-
this._syncAriaDescription(oldMessage);
|
|
187
|
-
}
|
|
188
|
-
_message = '';
|
|
189
|
-
/** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
|
|
190
|
-
get tooltipClass() {
|
|
191
|
-
return this._tooltipClass;
|
|
192
|
-
}
|
|
193
|
-
set tooltipClass(value) {
|
|
194
|
-
this._tooltipClass = value;
|
|
195
|
-
if (this._tooltipInstance) {
|
|
196
|
-
this._setTooltipClass(this._tooltipClass);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
/** Manually-bound passive event listeners. */
|
|
200
|
-
_passiveListeners = [];
|
|
201
|
-
/** Timer started at the last `touchstart` event. */
|
|
202
|
-
_touchstartTimeout = null;
|
|
203
|
-
/** Emits when the component is destroyed. */
|
|
204
|
-
_destroyed = new Subject();
|
|
205
|
-
/** Whether ngOnDestroyed has been called. */
|
|
206
|
-
_isDestroyed = false;
|
|
207
|
-
constructor() {
|
|
208
|
-
const defaultOptions = this._defaultOptions;
|
|
209
|
-
if (defaultOptions) {
|
|
210
|
-
this._showDelay = defaultOptions.showDelay;
|
|
211
|
-
this._hideDelay = defaultOptions.hideDelay;
|
|
212
|
-
if (defaultOptions.position) {
|
|
213
|
-
this.position = defaultOptions.position;
|
|
214
|
-
}
|
|
215
|
-
if (defaultOptions.positionAtOrigin) {
|
|
216
|
-
this.positionAtOrigin = defaultOptions.positionAtOrigin;
|
|
217
|
-
}
|
|
218
|
-
if (defaultOptions.touchGestures) {
|
|
219
|
-
this.touchGestures = defaultOptions.touchGestures;
|
|
220
|
-
}
|
|
221
|
-
if (defaultOptions.tooltipClass) {
|
|
222
|
-
this.tooltipClass = defaultOptions.tooltipClass;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
this._viewportMargin = MIN_VIEWPORT_TOOLTIP_THRESHOLD;
|
|
226
|
-
}
|
|
227
|
-
ngAfterViewInit() {
|
|
228
|
-
// This needs to happen after view init so the initial values for all inputs have been set.
|
|
229
|
-
this._viewInitialized = true;
|
|
46
|
+
_elementRef = inject(ElementRef);
|
|
47
|
+
_ngZone = inject(NgZone);
|
|
48
|
+
_platform = inject(Platform);
|
|
49
|
+
_ariaDescriber = inject(AriaDescriber);
|
|
50
|
+
_focusMonitor = inject(FocusMonitor);
|
|
51
|
+
_dir = inject(Directionality);
|
|
52
|
+
_injector = inject(Injector);
|
|
53
|
+
_viewContainerRef = inject(ViewContainerRef);
|
|
54
|
+
_animationsDisabled = _animationsDisabled();
|
|
55
|
+
_defaultOptions = inject(MAT_TOOLTIP_DEFAULT_OPTIONS, {
|
|
56
|
+
optional: true
|
|
57
|
+
});
|
|
58
|
+
_overlayRef;
|
|
59
|
+
_tooltipInstance;
|
|
60
|
+
_overlayPanelClass;
|
|
61
|
+
_portal;
|
|
62
|
+
_position = 'below';
|
|
63
|
+
_positionAtOrigin = false;
|
|
64
|
+
_disabled = false;
|
|
65
|
+
_tooltipClass;
|
|
66
|
+
_viewInitialized = false;
|
|
67
|
+
_pointerExitEventsInitialized = false;
|
|
68
|
+
_tooltipComponent = TooltipComponent;
|
|
69
|
+
_viewportMargin = 8;
|
|
70
|
+
_currentPosition;
|
|
71
|
+
_cssClassPrefix = 'mat-mdc';
|
|
72
|
+
_ariaDescriptionPending;
|
|
73
|
+
_dirSubscribed = false;
|
|
74
|
+
get position() {
|
|
75
|
+
return this._position;
|
|
76
|
+
}
|
|
77
|
+
set position(value) {
|
|
78
|
+
if (value !== this._position) {
|
|
79
|
+
this._position = value;
|
|
80
|
+
if (this._overlayRef) {
|
|
81
|
+
this._updatePosition(this._overlayRef);
|
|
82
|
+
this._tooltipInstance?.show(0);
|
|
83
|
+
this._overlayRef.updatePosition();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
get positionAtOrigin() {
|
|
88
|
+
return this._positionAtOrigin;
|
|
89
|
+
}
|
|
90
|
+
set positionAtOrigin(value) {
|
|
91
|
+
this._positionAtOrigin = coerceBooleanProperty(value);
|
|
92
|
+
this._detach();
|
|
93
|
+
this._overlayRef = null;
|
|
94
|
+
}
|
|
95
|
+
get disabled() {
|
|
96
|
+
return this._disabled;
|
|
97
|
+
}
|
|
98
|
+
set disabled(value) {
|
|
99
|
+
const isDisabled = coerceBooleanProperty(value);
|
|
100
|
+
if (this._disabled !== isDisabled) {
|
|
101
|
+
this._disabled = isDisabled;
|
|
102
|
+
if (isDisabled) {
|
|
103
|
+
this.hide(0);
|
|
104
|
+
} else {
|
|
230
105
|
this._setupPointerEnterEventsIfNeeded();
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
106
|
+
}
|
|
107
|
+
this._syncAriaDescription(this.message);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
get showDelay() {
|
|
111
|
+
return this._showDelay;
|
|
112
|
+
}
|
|
113
|
+
set showDelay(value) {
|
|
114
|
+
this._showDelay = coerceNumberProperty(value);
|
|
115
|
+
}
|
|
116
|
+
_showDelay;
|
|
117
|
+
get hideDelay() {
|
|
118
|
+
return this._hideDelay;
|
|
119
|
+
}
|
|
120
|
+
set hideDelay(value) {
|
|
121
|
+
this._hideDelay = coerceNumberProperty(value);
|
|
122
|
+
if (this._tooltipInstance) {
|
|
123
|
+
this._tooltipInstance._mouseLeaveHideDelay = this._hideDelay;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
_hideDelay;
|
|
127
|
+
touchGestures = 'auto';
|
|
128
|
+
get message() {
|
|
129
|
+
return this._message;
|
|
130
|
+
}
|
|
131
|
+
set message(value) {
|
|
132
|
+
const oldMessage = this._message;
|
|
133
|
+
this._message = value != null ? String(value).trim() : '';
|
|
134
|
+
if (!this._message && this._isTooltipVisible()) {
|
|
135
|
+
this.hide(0);
|
|
136
|
+
} else {
|
|
137
|
+
this._setupPointerEnterEventsIfNeeded();
|
|
138
|
+
this._updateTooltipMessage();
|
|
139
|
+
}
|
|
140
|
+
this._syncAriaDescription(oldMessage);
|
|
141
|
+
}
|
|
142
|
+
_message = '';
|
|
143
|
+
get tooltipClass() {
|
|
144
|
+
return this._tooltipClass;
|
|
145
|
+
}
|
|
146
|
+
set tooltipClass(value) {
|
|
147
|
+
this._tooltipClass = value;
|
|
148
|
+
if (this._tooltipInstance) {
|
|
149
|
+
this._setTooltipClass(this._tooltipClass);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
_passiveListeners = [];
|
|
153
|
+
_touchstartTimeout = null;
|
|
154
|
+
_destroyed = new Subject();
|
|
155
|
+
_isDestroyed = false;
|
|
156
|
+
constructor() {
|
|
157
|
+
const defaultOptions = this._defaultOptions;
|
|
158
|
+
if (defaultOptions) {
|
|
159
|
+
this._showDelay = defaultOptions.showDelay;
|
|
160
|
+
this._hideDelay = defaultOptions.hideDelay;
|
|
161
|
+
if (defaultOptions.position) {
|
|
162
|
+
this.position = defaultOptions.position;
|
|
163
|
+
}
|
|
164
|
+
if (defaultOptions.positionAtOrigin) {
|
|
165
|
+
this.positionAtOrigin = defaultOptions.positionAtOrigin;
|
|
166
|
+
}
|
|
167
|
+
if (defaultOptions.touchGestures) {
|
|
168
|
+
this.touchGestures = defaultOptions.touchGestures;
|
|
169
|
+
}
|
|
170
|
+
if (defaultOptions.tooltipClass) {
|
|
171
|
+
this.tooltipClass = defaultOptions.tooltipClass;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
this._viewportMargin = MIN_VIEWPORT_TOOLTIP_THRESHOLD;
|
|
175
|
+
}
|
|
176
|
+
ngAfterViewInit() {
|
|
177
|
+
this._viewInitialized = true;
|
|
178
|
+
this._setupPointerEnterEventsIfNeeded();
|
|
179
|
+
this._focusMonitor.monitor(this._elementRef).pipe(takeUntil(this._destroyed)).subscribe(origin => {
|
|
180
|
+
if (!origin) {
|
|
181
|
+
this._ngZone.run(() => this.hide(0));
|
|
182
|
+
} else if (origin === 'keyboard') {
|
|
183
|
+
this._ngZone.run(() => this.show());
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
ngOnDestroy() {
|
|
188
|
+
const nativeElement = this._elementRef.nativeElement;
|
|
189
|
+
if (this._touchstartTimeout) {
|
|
190
|
+
clearTimeout(this._touchstartTimeout);
|
|
191
|
+
}
|
|
192
|
+
if (this._overlayRef) {
|
|
193
|
+
this._overlayRef.dispose();
|
|
194
|
+
this._tooltipInstance = null;
|
|
195
|
+
}
|
|
196
|
+
this._passiveListeners.forEach(([event, listener]) => {
|
|
197
|
+
nativeElement.removeEventListener(event, listener, passiveListenerOptions);
|
|
198
|
+
});
|
|
199
|
+
this._passiveListeners.length = 0;
|
|
200
|
+
this._destroyed.next();
|
|
201
|
+
this._destroyed.complete();
|
|
202
|
+
this._isDestroyed = true;
|
|
203
|
+
this._ariaDescriber.removeDescription(nativeElement, this.message, 'tooltip');
|
|
204
|
+
this._focusMonitor.stopMonitoring(nativeElement);
|
|
205
|
+
}
|
|
206
|
+
show(delay = this.showDelay, origin) {
|
|
207
|
+
if (this.disabled || !this.message || this._isTooltipVisible()) {
|
|
208
|
+
this._tooltipInstance?._cancelPendingAnimations();
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
const overlayRef = this._createOverlay(origin);
|
|
212
|
+
this._detach();
|
|
213
|
+
this._portal = this._portal || new ComponentPortal(this._tooltipComponent, this._viewContainerRef);
|
|
214
|
+
const instance = this._tooltipInstance = overlayRef.attach(this._portal).instance;
|
|
215
|
+
instance._triggerElement = this._elementRef.nativeElement;
|
|
216
|
+
instance._mouseLeaveHideDelay = this._hideDelay;
|
|
217
|
+
instance.afterHidden().pipe(takeUntil(this._destroyed)).subscribe(() => this._detach());
|
|
218
|
+
this._setTooltipClass(this._tooltipClass);
|
|
219
|
+
this._updateTooltipMessage();
|
|
220
|
+
instance.show(delay);
|
|
221
|
+
}
|
|
222
|
+
hide(delay = this.hideDelay) {
|
|
223
|
+
const instance = this._tooltipInstance;
|
|
224
|
+
if (instance) {
|
|
225
|
+
if (instance.isVisible()) {
|
|
226
|
+
instance.hide(delay);
|
|
227
|
+
} else {
|
|
228
|
+
instance._cancelPendingAnimations();
|
|
275
229
|
this._detach();
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
/** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
|
|
290
|
-
hide(delay = this.hideDelay) {
|
|
291
|
-
const instance = this._tooltipInstance;
|
|
292
|
-
if (instance) {
|
|
293
|
-
if (instance.isVisible()) {
|
|
294
|
-
instance.hide(delay);
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
instance._cancelPendingAnimations();
|
|
298
|
-
this._detach();
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
/** Shows/hides the tooltip */
|
|
303
|
-
toggle(origin) {
|
|
304
|
-
this._isTooltipVisible() ? this.hide() : this.show(undefined, origin);
|
|
305
|
-
}
|
|
306
|
-
/** Returns true if the tooltip is currently visible to the user */
|
|
307
|
-
_isTooltipVisible() {
|
|
308
|
-
return !!this._tooltipInstance && this._tooltipInstance.isVisible();
|
|
309
|
-
}
|
|
310
|
-
/** Create the overlay config and position strategy */
|
|
311
|
-
_createOverlay(origin) {
|
|
312
|
-
if (this._overlayRef) {
|
|
313
|
-
const existingStrategy = this._overlayRef.getConfig()
|
|
314
|
-
.positionStrategy;
|
|
315
|
-
if ((!this.positionAtOrigin || !origin) && existingStrategy._origin instanceof ElementRef) {
|
|
316
|
-
return this._overlayRef;
|
|
317
|
-
}
|
|
318
|
-
this._detach();
|
|
319
|
-
}
|
|
320
|
-
const scrollableAncestors = this._injector
|
|
321
|
-
.get(ScrollDispatcher)
|
|
322
|
-
.getAncestorScrollContainers(this._elementRef);
|
|
323
|
-
const panelClass = `${this._cssClassPrefix}-${PANEL_CLASS}`;
|
|
324
|
-
// Create connected position strategy that listens for scroll events to reposition.
|
|
325
|
-
const strategy = createFlexibleConnectedPositionStrategy(this._injector, this.positionAtOrigin ? origin || this._elementRef : this._elementRef)
|
|
326
|
-
.withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`)
|
|
327
|
-
.withFlexibleDimensions(false)
|
|
328
|
-
.withViewportMargin(this._viewportMargin)
|
|
329
|
-
.withScrollableContainers(scrollableAncestors);
|
|
330
|
-
strategy.positionChanges.pipe(takeUntil(this._destroyed)).subscribe(change => {
|
|
331
|
-
this._updateCurrentPositionClass(change.connectionPair);
|
|
332
|
-
if (this._tooltipInstance) {
|
|
333
|
-
if (change.scrollableViewProperties.isOverlayClipped && this._tooltipInstance.isVisible()) {
|
|
334
|
-
// After position changes occur and the overlay is clipped by
|
|
335
|
-
// a parent scrollable then close the tooltip.
|
|
336
|
-
this._ngZone.run(() => this.hide(0));
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
this._overlayRef = createOverlayRef(this._injector, {
|
|
341
|
-
direction: this._dir,
|
|
342
|
-
positionStrategy: strategy,
|
|
343
|
-
panelClass: this._overlayPanelClass ? [...this._overlayPanelClass, panelClass] : panelClass,
|
|
344
|
-
scrollStrategy: this._injector.get(MAT_TOOLTIP_SCROLL_STRATEGY)(),
|
|
345
|
-
disableAnimations: this._animationsDisabled,
|
|
346
|
-
});
|
|
347
|
-
this._updatePosition(this._overlayRef);
|
|
348
|
-
this._overlayRef
|
|
349
|
-
.detachments()
|
|
350
|
-
.pipe(takeUntil(this._destroyed))
|
|
351
|
-
.subscribe(() => this._detach());
|
|
352
|
-
this._overlayRef
|
|
353
|
-
.outsidePointerEvents()
|
|
354
|
-
.pipe(takeUntil(this._destroyed))
|
|
355
|
-
.subscribe(() => this._tooltipInstance?._handleBodyInteraction());
|
|
356
|
-
this._overlayRef
|
|
357
|
-
.keydownEvents()
|
|
358
|
-
.pipe(takeUntil(this._destroyed))
|
|
359
|
-
.subscribe(event => {
|
|
360
|
-
if (this._isTooltipVisible() && event.keyCode === ESCAPE && !hasModifierKey(event)) {
|
|
361
|
-
event.preventDefault();
|
|
362
|
-
event.stopPropagation();
|
|
363
|
-
this._ngZone.run(() => this.hide(0));
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
if (this._defaultOptions?.disableTooltipInteractivity) {
|
|
367
|
-
this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`);
|
|
368
|
-
}
|
|
369
|
-
if (!this._dirSubscribed) {
|
|
370
|
-
this._dirSubscribed = true;
|
|
371
|
-
this._dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
372
|
-
if (this._overlayRef) {
|
|
373
|
-
this._updatePosition(this._overlayRef);
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
toggle(origin) {
|
|
234
|
+
this._isTooltipVisible() ? this.hide() : this.show(undefined, origin);
|
|
235
|
+
}
|
|
236
|
+
_isTooltipVisible() {
|
|
237
|
+
return !!this._tooltipInstance && this._tooltipInstance.isVisible();
|
|
238
|
+
}
|
|
239
|
+
_createOverlay(origin) {
|
|
240
|
+
if (this._overlayRef) {
|
|
241
|
+
const existingStrategy = this._overlayRef.getConfig().positionStrategy;
|
|
242
|
+
if ((!this.positionAtOrigin || !origin) && existingStrategy._origin instanceof ElementRef) {
|
|
377
243
|
return this._overlayRef;
|
|
244
|
+
}
|
|
245
|
+
this._detach();
|
|
246
|
+
}
|
|
247
|
+
const scrollableAncestors = this._injector.get(ScrollDispatcher).getAncestorScrollContainers(this._elementRef);
|
|
248
|
+
const panelClass = `${this._cssClassPrefix}-${PANEL_CLASS}`;
|
|
249
|
+
const strategy = createFlexibleConnectedPositionStrategy(this._injector, this.positionAtOrigin ? origin || this._elementRef : this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(false).withViewportMargin(this._viewportMargin).withScrollableContainers(scrollableAncestors);
|
|
250
|
+
strategy.positionChanges.pipe(takeUntil(this._destroyed)).subscribe(change => {
|
|
251
|
+
this._updateCurrentPositionClass(change.connectionPair);
|
|
252
|
+
if (this._tooltipInstance) {
|
|
253
|
+
if (change.scrollableViewProperties.isOverlayClipped && this._tooltipInstance.isVisible()) {
|
|
254
|
+
this._ngZone.run(() => this.hide(0));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
this._overlayRef = createOverlayRef(this._injector, {
|
|
259
|
+
direction: this._dir,
|
|
260
|
+
positionStrategy: strategy,
|
|
261
|
+
panelClass: this._overlayPanelClass ? [...this._overlayPanelClass, panelClass] : panelClass,
|
|
262
|
+
scrollStrategy: this._injector.get(MAT_TOOLTIP_SCROLL_STRATEGY)(),
|
|
263
|
+
disableAnimations: this._animationsDisabled
|
|
264
|
+
});
|
|
265
|
+
this._updatePosition(this._overlayRef);
|
|
266
|
+
this._overlayRef.detachments().pipe(takeUntil(this._destroyed)).subscribe(() => this._detach());
|
|
267
|
+
this._overlayRef.outsidePointerEvents().pipe(takeUntil(this._destroyed)).subscribe(() => this._tooltipInstance?._handleBodyInteraction());
|
|
268
|
+
this._overlayRef.keydownEvents().pipe(takeUntil(this._destroyed)).subscribe(event => {
|
|
269
|
+
if (this._isTooltipVisible() && event.keyCode === ESCAPE && !hasModifierKey(event)) {
|
|
270
|
+
event.preventDefault();
|
|
271
|
+
event.stopPropagation();
|
|
272
|
+
this._ngZone.run(() => this.hide(0));
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
if (this._defaultOptions?.disableTooltipInteractivity) {
|
|
276
|
+
this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`);
|
|
378
277
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
278
|
+
if (!this._dirSubscribed) {
|
|
279
|
+
this._dirSubscribed = true;
|
|
280
|
+
this._dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
281
|
+
if (this._overlayRef) {
|
|
282
|
+
this._updatePosition(this._overlayRef);
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
return this._overlayRef;
|
|
287
|
+
}
|
|
288
|
+
_detach() {
|
|
289
|
+
if (this._overlayRef && this._overlayRef.hasAttached()) {
|
|
290
|
+
this._overlayRef.detach();
|
|
291
|
+
}
|
|
292
|
+
this._tooltipInstance = null;
|
|
293
|
+
}
|
|
294
|
+
_updatePosition(overlayRef) {
|
|
295
|
+
const position = overlayRef.getConfig().positionStrategy;
|
|
296
|
+
const origin = this._getOrigin();
|
|
297
|
+
const overlay = this._getOverlayPosition();
|
|
298
|
+
position.withPositions([this._addOffset({
|
|
299
|
+
...origin.main,
|
|
300
|
+
...overlay.main
|
|
301
|
+
}), this._addOffset({
|
|
302
|
+
...origin.fallback,
|
|
303
|
+
...overlay.fallback
|
|
304
|
+
})]);
|
|
305
|
+
}
|
|
306
|
+
_addOffset(position) {
|
|
307
|
+
const offset = UNBOUNDED_ANCHOR_GAP;
|
|
308
|
+
const isLtr = !this._dir || this._dir.value == 'ltr';
|
|
309
|
+
if (position.originY === 'top') {
|
|
310
|
+
position.offsetY = -offset;
|
|
311
|
+
} else if (position.originY === 'bottom') {
|
|
312
|
+
position.offsetY = offset;
|
|
313
|
+
} else if (position.originX === 'start') {
|
|
314
|
+
position.offsetX = isLtr ? -offset : offset;
|
|
315
|
+
} else if (position.originX === 'end') {
|
|
316
|
+
position.offsetX = isLtr ? offset : -offset;
|
|
317
|
+
}
|
|
318
|
+
return position;
|
|
319
|
+
}
|
|
320
|
+
_getOrigin() {
|
|
321
|
+
const isLtr = !this._dir || this._dir.value == 'ltr';
|
|
322
|
+
const position = this.position;
|
|
323
|
+
let originPosition;
|
|
324
|
+
if (position == 'above' || position == 'below') {
|
|
325
|
+
originPosition = {
|
|
326
|
+
originX: 'center',
|
|
327
|
+
originY: position == 'above' ? 'top' : 'bottom'
|
|
328
|
+
};
|
|
329
|
+
} else if (position == 'before' || position == 'left' && isLtr || position == 'right' && !isLtr) {
|
|
330
|
+
originPosition = {
|
|
331
|
+
originX: 'start',
|
|
332
|
+
originY: 'center'
|
|
333
|
+
};
|
|
334
|
+
} else if (position == 'after' || position == 'right' && isLtr || position == 'left' && !isLtr) {
|
|
335
|
+
originPosition = {
|
|
336
|
+
originX: 'end',
|
|
337
|
+
originY: 'center'
|
|
338
|
+
};
|
|
339
|
+
} else if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
340
|
+
throw getMatTooltipInvalidPositionError(position);
|
|
341
|
+
}
|
|
342
|
+
const {
|
|
343
|
+
x,
|
|
344
|
+
y
|
|
345
|
+
} = this._invertPosition(originPosition.originX, originPosition.originY);
|
|
346
|
+
return {
|
|
347
|
+
main: originPosition,
|
|
348
|
+
fallback: {
|
|
349
|
+
originX: x,
|
|
350
|
+
originY: y
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
_getOverlayPosition() {
|
|
355
|
+
const isLtr = !this._dir || this._dir.value == 'ltr';
|
|
356
|
+
const position = this.position;
|
|
357
|
+
let overlayPosition;
|
|
358
|
+
if (position == 'above') {
|
|
359
|
+
overlayPosition = {
|
|
360
|
+
overlayX: 'center',
|
|
361
|
+
overlayY: 'bottom'
|
|
362
|
+
};
|
|
363
|
+
} else if (position == 'below') {
|
|
364
|
+
overlayPosition = {
|
|
365
|
+
overlayX: 'center',
|
|
366
|
+
overlayY: 'top'
|
|
367
|
+
};
|
|
368
|
+
} else if (position == 'before' || position == 'left' && isLtr || position == 'right' && !isLtr) {
|
|
369
|
+
overlayPosition = {
|
|
370
|
+
overlayX: 'end',
|
|
371
|
+
overlayY: 'center'
|
|
372
|
+
};
|
|
373
|
+
} else if (position == 'after' || position == 'right' && isLtr || position == 'left' && !isLtr) {
|
|
374
|
+
overlayPosition = {
|
|
375
|
+
overlayX: 'start',
|
|
376
|
+
overlayY: 'center'
|
|
377
|
+
};
|
|
378
|
+
} else if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
379
|
+
throw getMatTooltipInvalidPositionError(position);
|
|
380
|
+
}
|
|
381
|
+
const {
|
|
382
|
+
x,
|
|
383
|
+
y
|
|
384
|
+
} = this._invertPosition(overlayPosition.overlayX, overlayPosition.overlayY);
|
|
385
|
+
return {
|
|
386
|
+
main: overlayPosition,
|
|
387
|
+
fallback: {
|
|
388
|
+
overlayX: x,
|
|
389
|
+
overlayY: y
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
_updateTooltipMessage() {
|
|
394
|
+
if (this._tooltipInstance) {
|
|
395
|
+
this._tooltipInstance.message = this.message;
|
|
396
|
+
this._tooltipInstance._markForCheck();
|
|
397
|
+
afterNextRender(() => {
|
|
492
398
|
if (this._tooltipInstance) {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatTooltip, isStandalone: true, selector: "[matTooltip]", inputs: { position: ["matTooltipPosition", "position"], positionAtOrigin: ["matTooltipPositionAtOrigin", "positionAtOrigin"], disabled: ["matTooltipDisabled", "disabled"], showDelay: ["matTooltipShowDelay", "showDelay"], hideDelay: ["matTooltipHideDelay", "hideDelay"], touchGestures: ["matTooltipTouchGestures", "touchGestures"], message: ["matTooltip", "message"], tooltipClass: ["matTooltipClass", "tooltipClass"] }, host: { properties: { "class.mat-mdc-tooltip-disabled": "disabled" }, classAttribute: "mat-mdc-tooltip-trigger" }, exportAs: ["matTooltip"], ngImport: i0 });
|
|
399
|
+
this._overlayRef.updatePosition();
|
|
400
|
+
}
|
|
401
|
+
}, {
|
|
402
|
+
injector: this._injector
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
_setTooltipClass(tooltipClass) {
|
|
407
|
+
if (this._tooltipInstance) {
|
|
408
|
+
this._tooltipInstance.tooltipClass = tooltipClass;
|
|
409
|
+
this._tooltipInstance._markForCheck();
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
_invertPosition(x, y) {
|
|
413
|
+
if (this.position === 'above' || this.position === 'below') {
|
|
414
|
+
if (y === 'top') {
|
|
415
|
+
y = 'bottom';
|
|
416
|
+
} else if (y === 'bottom') {
|
|
417
|
+
y = 'top';
|
|
418
|
+
}
|
|
419
|
+
} else {
|
|
420
|
+
if (x === 'end') {
|
|
421
|
+
x = 'start';
|
|
422
|
+
} else if (x === 'start') {
|
|
423
|
+
x = 'end';
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return {
|
|
427
|
+
x,
|
|
428
|
+
y
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
_updateCurrentPositionClass(connectionPair) {
|
|
432
|
+
const {
|
|
433
|
+
overlayY,
|
|
434
|
+
originX,
|
|
435
|
+
originY
|
|
436
|
+
} = connectionPair;
|
|
437
|
+
let newPosition;
|
|
438
|
+
if (overlayY === 'center') {
|
|
439
|
+
if (this._dir && this._dir.value === 'rtl') {
|
|
440
|
+
newPosition = originX === 'end' ? 'left' : 'right';
|
|
441
|
+
} else {
|
|
442
|
+
newPosition = originX === 'start' ? 'left' : 'right';
|
|
443
|
+
}
|
|
444
|
+
} else {
|
|
445
|
+
newPosition = overlayY === 'bottom' && originY === 'top' ? 'above' : 'below';
|
|
446
|
+
}
|
|
447
|
+
if (newPosition !== this._currentPosition) {
|
|
448
|
+
const overlayRef = this._overlayRef;
|
|
449
|
+
if (overlayRef) {
|
|
450
|
+
const classPrefix = `${this._cssClassPrefix}-${PANEL_CLASS}-`;
|
|
451
|
+
overlayRef.removePanelClass(classPrefix + this._currentPosition);
|
|
452
|
+
overlayRef.addPanelClass(classPrefix + newPosition);
|
|
453
|
+
}
|
|
454
|
+
this._currentPosition = newPosition;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
_setupPointerEnterEventsIfNeeded() {
|
|
458
|
+
if (this._disabled || !this.message || !this._viewInitialized || this._passiveListeners.length) {
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
if (this._platformSupportsMouseEvents()) {
|
|
462
|
+
this._passiveListeners.push(['mouseenter', event => {
|
|
463
|
+
this._setupPointerExitEventsIfNeeded();
|
|
464
|
+
let point = undefined;
|
|
465
|
+
if (event.x !== undefined && event.y !== undefined) {
|
|
466
|
+
point = event;
|
|
467
|
+
}
|
|
468
|
+
this.show(undefined, point);
|
|
469
|
+
}]);
|
|
470
|
+
} else if (this.touchGestures !== 'off') {
|
|
471
|
+
this._disableNativeGesturesIfNecessary();
|
|
472
|
+
this._passiveListeners.push(['touchstart', event => {
|
|
473
|
+
const touch = event.targetTouches?.[0];
|
|
474
|
+
const origin = touch ? {
|
|
475
|
+
x: touch.clientX,
|
|
476
|
+
y: touch.clientY
|
|
477
|
+
} : undefined;
|
|
478
|
+
this._setupPointerExitEventsIfNeeded();
|
|
479
|
+
if (this._touchstartTimeout) {
|
|
480
|
+
clearTimeout(this._touchstartTimeout);
|
|
481
|
+
}
|
|
482
|
+
const DEFAULT_LONGPRESS_DELAY = 500;
|
|
483
|
+
this._touchstartTimeout = setTimeout(() => {
|
|
484
|
+
this._touchstartTimeout = null;
|
|
485
|
+
this.show(undefined, origin);
|
|
486
|
+
}, this._defaultOptions?.touchLongPressShowDelay ?? DEFAULT_LONGPRESS_DELAY);
|
|
487
|
+
}]);
|
|
488
|
+
}
|
|
489
|
+
this._addListeners(this._passiveListeners);
|
|
490
|
+
}
|
|
491
|
+
_setupPointerExitEventsIfNeeded() {
|
|
492
|
+
if (this._pointerExitEventsInitialized) {
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
this._pointerExitEventsInitialized = true;
|
|
496
|
+
const exitListeners = [];
|
|
497
|
+
if (this._platformSupportsMouseEvents()) {
|
|
498
|
+
exitListeners.push(['mouseleave', event => {
|
|
499
|
+
const newTarget = event.relatedTarget;
|
|
500
|
+
if (!newTarget || !this._overlayRef?.overlayElement.contains(newTarget)) {
|
|
501
|
+
this.hide();
|
|
502
|
+
}
|
|
503
|
+
}], ['wheel', event => this._wheelListener(event)]);
|
|
504
|
+
} else if (this.touchGestures !== 'off') {
|
|
505
|
+
this._disableNativeGesturesIfNecessary();
|
|
506
|
+
const touchendListener = () => {
|
|
507
|
+
if (this._touchstartTimeout) {
|
|
508
|
+
clearTimeout(this._touchstartTimeout);
|
|
509
|
+
}
|
|
510
|
+
this.hide(this._defaultOptions?.touchendHideDelay);
|
|
511
|
+
};
|
|
512
|
+
exitListeners.push(['touchend', touchendListener], ['touchcancel', touchendListener]);
|
|
513
|
+
}
|
|
514
|
+
this._addListeners(exitListeners);
|
|
515
|
+
this._passiveListeners.push(...exitListeners);
|
|
516
|
+
}
|
|
517
|
+
_addListeners(listeners) {
|
|
518
|
+
listeners.forEach(([event, listener]) => {
|
|
519
|
+
this._elementRef.nativeElement.addEventListener(event, listener, passiveListenerOptions);
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
_platformSupportsMouseEvents() {
|
|
523
|
+
return !this._platform.IOS && !this._platform.ANDROID;
|
|
524
|
+
}
|
|
525
|
+
_wheelListener(event) {
|
|
526
|
+
if (this._isTooltipVisible()) {
|
|
527
|
+
const elementUnderPointer = this._injector.get(DOCUMENT).elementFromPoint(event.clientX, event.clientY);
|
|
528
|
+
const element = this._elementRef.nativeElement;
|
|
529
|
+
if (elementUnderPointer !== element && !element.contains(elementUnderPointer)) {
|
|
530
|
+
this.hide();
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
_disableNativeGesturesIfNecessary() {
|
|
535
|
+
const gestures = this.touchGestures;
|
|
536
|
+
if (gestures !== 'off') {
|
|
537
|
+
const element = this._elementRef.nativeElement;
|
|
538
|
+
const style = element.style;
|
|
539
|
+
if (gestures === 'on' || element.nodeName !== 'INPUT' && element.nodeName !== 'TEXTAREA') {
|
|
540
|
+
style.userSelect = style.msUserSelect = style.webkitUserSelect = style.MozUserSelect = 'none';
|
|
541
|
+
}
|
|
542
|
+
if (gestures === 'on' || !element.draggable) {
|
|
543
|
+
style.webkitUserDrag = 'none';
|
|
544
|
+
}
|
|
545
|
+
style.touchAction = 'none';
|
|
546
|
+
style.webkitTapHighlightColor = 'transparent';
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
_syncAriaDescription(oldMessage) {
|
|
550
|
+
if (this._ariaDescriptionPending) {
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
this._ariaDescriptionPending = true;
|
|
554
|
+
this._ariaDescriber.removeDescription(this._elementRef.nativeElement, oldMessage, 'tooltip');
|
|
555
|
+
if (!this._isDestroyed) {
|
|
556
|
+
afterNextRender({
|
|
557
|
+
write: () => {
|
|
558
|
+
this._ariaDescriptionPending = false;
|
|
559
|
+
if (this.message && !this.disabled) {
|
|
560
|
+
this._ariaDescriber.describe(this._elementRef.nativeElement, this.message, 'tooltip');
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}, {
|
|
564
|
+
injector: this._injector
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
569
|
+
minVersion: "12.0.0",
|
|
570
|
+
version: "20.2.0-next.2",
|
|
571
|
+
ngImport: i0,
|
|
572
|
+
type: MatTooltip,
|
|
573
|
+
deps: [],
|
|
574
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
575
|
+
});
|
|
576
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
577
|
+
minVersion: "14.0.0",
|
|
578
|
+
version: "20.2.0-next.2",
|
|
579
|
+
type: MatTooltip,
|
|
580
|
+
isStandalone: true,
|
|
581
|
+
selector: "[matTooltip]",
|
|
582
|
+
inputs: {
|
|
583
|
+
position: ["matTooltipPosition", "position"],
|
|
584
|
+
positionAtOrigin: ["matTooltipPositionAtOrigin", "positionAtOrigin"],
|
|
585
|
+
disabled: ["matTooltipDisabled", "disabled"],
|
|
586
|
+
showDelay: ["matTooltipShowDelay", "showDelay"],
|
|
587
|
+
hideDelay: ["matTooltipHideDelay", "hideDelay"],
|
|
588
|
+
touchGestures: ["matTooltipTouchGestures", "touchGestures"],
|
|
589
|
+
message: ["matTooltip", "message"],
|
|
590
|
+
tooltipClass: ["matTooltipClass", "tooltipClass"]
|
|
591
|
+
},
|
|
592
|
+
host: {
|
|
593
|
+
properties: {
|
|
594
|
+
"class.mat-mdc-tooltip-disabled": "disabled"
|
|
595
|
+
},
|
|
596
|
+
classAttribute: "mat-mdc-tooltip-trigger"
|
|
597
|
+
},
|
|
598
|
+
exportAs: ["matTooltip"],
|
|
599
|
+
ngImport: i0
|
|
600
|
+
});
|
|
696
601
|
}
|
|
697
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
602
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
603
|
+
minVersion: "12.0.0",
|
|
604
|
+
version: "20.2.0-next.2",
|
|
605
|
+
ngImport: i0,
|
|
606
|
+
type: MatTooltip,
|
|
607
|
+
decorators: [{
|
|
608
|
+
type: Directive,
|
|
609
|
+
args: [{
|
|
610
|
+
selector: '[matTooltip]',
|
|
611
|
+
exportAs: 'matTooltip',
|
|
612
|
+
host: {
|
|
613
|
+
'class': 'mat-mdc-tooltip-trigger',
|
|
614
|
+
'[class.mat-mdc-tooltip-disabled]': 'disabled'
|
|
615
|
+
}
|
|
616
|
+
}]
|
|
617
|
+
}],
|
|
618
|
+
ctorParameters: () => [],
|
|
619
|
+
propDecorators: {
|
|
620
|
+
position: [{
|
|
621
|
+
type: Input,
|
|
622
|
+
args: ['matTooltipPosition']
|
|
623
|
+
}],
|
|
624
|
+
positionAtOrigin: [{
|
|
625
|
+
type: Input,
|
|
626
|
+
args: ['matTooltipPositionAtOrigin']
|
|
627
|
+
}],
|
|
628
|
+
disabled: [{
|
|
629
|
+
type: Input,
|
|
630
|
+
args: ['matTooltipDisabled']
|
|
631
|
+
}],
|
|
632
|
+
showDelay: [{
|
|
633
|
+
type: Input,
|
|
634
|
+
args: ['matTooltipShowDelay']
|
|
635
|
+
}],
|
|
636
|
+
hideDelay: [{
|
|
637
|
+
type: Input,
|
|
638
|
+
args: ['matTooltipHideDelay']
|
|
639
|
+
}],
|
|
640
|
+
touchGestures: [{
|
|
641
|
+
type: Input,
|
|
642
|
+
args: ['matTooltipTouchGestures']
|
|
643
|
+
}],
|
|
644
|
+
message: [{
|
|
645
|
+
type: Input,
|
|
646
|
+
args: ['matTooltip']
|
|
647
|
+
}],
|
|
648
|
+
tooltipClass: [{
|
|
649
|
+
type: Input,
|
|
650
|
+
args: ['matTooltipClass']
|
|
651
|
+
}]
|
|
652
|
+
}
|
|
653
|
+
});
|
|
736
654
|
class TooltipComponent {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
if (isVisible) {
|
|
901
|
-
this._onShow();
|
|
902
|
-
}
|
|
903
|
-
if (this._animationsDisabled) {
|
|
904
|
-
tooltip.classList.add('_mat-animation-noopable');
|
|
905
|
-
this._finalizeAnimation(isVisible);
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
909
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0-next.2", type: TooltipComponent, isStandalone: true, selector: "mat-tooltip-component", host: { attributes: { "aria-hidden": "true" }, listeners: { "mouseleave": "_handleMouseLeave($event)" } }, viewQueries: [{ propertyName: "_tooltip", first: true, predicate: ["tooltip"], descendants: true, static: true }], ngImport: i0, template: "<div\n #tooltip\n class=\"mdc-tooltip mat-mdc-tooltip\"\n [ngClass]=\"tooltipClass\"\n (animationend)=\"_handleAnimationEnd($event)\"\n [class.mdc-tooltip--multiline]=\"_isMultiline\">\n <div class=\"mat-mdc-tooltip-surface mdc-tooltip__surface\">{{message}}</div>\n</div>\n", styles: [".mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:\"\";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
655
|
+
_changeDetectorRef = inject(ChangeDetectorRef);
|
|
656
|
+
_elementRef = inject(ElementRef);
|
|
657
|
+
_isMultiline = false;
|
|
658
|
+
message;
|
|
659
|
+
tooltipClass;
|
|
660
|
+
_showTimeoutId;
|
|
661
|
+
_hideTimeoutId;
|
|
662
|
+
_triggerElement;
|
|
663
|
+
_mouseLeaveHideDelay;
|
|
664
|
+
_animationsDisabled = _animationsDisabled();
|
|
665
|
+
_tooltip;
|
|
666
|
+
_closeOnInteraction = false;
|
|
667
|
+
_isVisible = false;
|
|
668
|
+
_onHide = new Subject();
|
|
669
|
+
_showAnimation = 'mat-mdc-tooltip-show';
|
|
670
|
+
_hideAnimation = 'mat-mdc-tooltip-hide';
|
|
671
|
+
constructor() {}
|
|
672
|
+
show(delay) {
|
|
673
|
+
if (this._hideTimeoutId != null) {
|
|
674
|
+
clearTimeout(this._hideTimeoutId);
|
|
675
|
+
}
|
|
676
|
+
this._showTimeoutId = setTimeout(() => {
|
|
677
|
+
this._toggleVisibility(true);
|
|
678
|
+
this._showTimeoutId = undefined;
|
|
679
|
+
}, delay);
|
|
680
|
+
}
|
|
681
|
+
hide(delay) {
|
|
682
|
+
if (this._showTimeoutId != null) {
|
|
683
|
+
clearTimeout(this._showTimeoutId);
|
|
684
|
+
}
|
|
685
|
+
this._hideTimeoutId = setTimeout(() => {
|
|
686
|
+
this._toggleVisibility(false);
|
|
687
|
+
this._hideTimeoutId = undefined;
|
|
688
|
+
}, delay);
|
|
689
|
+
}
|
|
690
|
+
afterHidden() {
|
|
691
|
+
return this._onHide;
|
|
692
|
+
}
|
|
693
|
+
isVisible() {
|
|
694
|
+
return this._isVisible;
|
|
695
|
+
}
|
|
696
|
+
ngOnDestroy() {
|
|
697
|
+
this._cancelPendingAnimations();
|
|
698
|
+
this._onHide.complete();
|
|
699
|
+
this._triggerElement = null;
|
|
700
|
+
}
|
|
701
|
+
_handleBodyInteraction() {
|
|
702
|
+
if (this._closeOnInteraction) {
|
|
703
|
+
this.hide(0);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
_markForCheck() {
|
|
707
|
+
this._changeDetectorRef.markForCheck();
|
|
708
|
+
}
|
|
709
|
+
_handleMouseLeave({
|
|
710
|
+
relatedTarget
|
|
711
|
+
}) {
|
|
712
|
+
if (!relatedTarget || !this._triggerElement.contains(relatedTarget)) {
|
|
713
|
+
if (this.isVisible()) {
|
|
714
|
+
this.hide(this._mouseLeaveHideDelay);
|
|
715
|
+
} else {
|
|
716
|
+
this._finalizeAnimation(false);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
_onShow() {
|
|
721
|
+
this._isMultiline = this._isTooltipMultiline();
|
|
722
|
+
this._markForCheck();
|
|
723
|
+
}
|
|
724
|
+
_isTooltipMultiline() {
|
|
725
|
+
const rect = this._elementRef.nativeElement.getBoundingClientRect();
|
|
726
|
+
return rect.height > MIN_HEIGHT && rect.width >= MAX_WIDTH;
|
|
727
|
+
}
|
|
728
|
+
_handleAnimationEnd({
|
|
729
|
+
animationName
|
|
730
|
+
}) {
|
|
731
|
+
if (animationName === this._showAnimation || animationName === this._hideAnimation) {
|
|
732
|
+
this._finalizeAnimation(animationName === this._showAnimation);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
_cancelPendingAnimations() {
|
|
736
|
+
if (this._showTimeoutId != null) {
|
|
737
|
+
clearTimeout(this._showTimeoutId);
|
|
738
|
+
}
|
|
739
|
+
if (this._hideTimeoutId != null) {
|
|
740
|
+
clearTimeout(this._hideTimeoutId);
|
|
741
|
+
}
|
|
742
|
+
this._showTimeoutId = this._hideTimeoutId = undefined;
|
|
743
|
+
}
|
|
744
|
+
_finalizeAnimation(toVisible) {
|
|
745
|
+
if (toVisible) {
|
|
746
|
+
this._closeOnInteraction = true;
|
|
747
|
+
} else if (!this.isVisible()) {
|
|
748
|
+
this._onHide.next();
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
_toggleVisibility(isVisible) {
|
|
752
|
+
const tooltip = this._tooltip.nativeElement;
|
|
753
|
+
const showClass = this._showAnimation;
|
|
754
|
+
const hideClass = this._hideAnimation;
|
|
755
|
+
tooltip.classList.remove(isVisible ? hideClass : showClass);
|
|
756
|
+
tooltip.classList.add(isVisible ? showClass : hideClass);
|
|
757
|
+
if (this._isVisible !== isVisible) {
|
|
758
|
+
this._isVisible = isVisible;
|
|
759
|
+
this._changeDetectorRef.markForCheck();
|
|
760
|
+
}
|
|
761
|
+
if (isVisible && !this._animationsDisabled && typeof getComputedStyle === 'function') {
|
|
762
|
+
const styles = getComputedStyle(tooltip);
|
|
763
|
+
if (styles.getPropertyValue('animation-duration') === '0s' || styles.getPropertyValue('animation-name') === 'none') {
|
|
764
|
+
this._animationsDisabled = true;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
if (isVisible) {
|
|
768
|
+
this._onShow();
|
|
769
|
+
}
|
|
770
|
+
if (this._animationsDisabled) {
|
|
771
|
+
tooltip.classList.add('_mat-animation-noopable');
|
|
772
|
+
this._finalizeAnimation(isVisible);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
776
|
+
minVersion: "12.0.0",
|
|
777
|
+
version: "20.2.0-next.2",
|
|
778
|
+
ngImport: i0,
|
|
779
|
+
type: TooltipComponent,
|
|
780
|
+
deps: [],
|
|
781
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
782
|
+
});
|
|
783
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
784
|
+
minVersion: "14.0.0",
|
|
785
|
+
version: "20.2.0-next.2",
|
|
786
|
+
type: TooltipComponent,
|
|
787
|
+
isStandalone: true,
|
|
788
|
+
selector: "mat-tooltip-component",
|
|
789
|
+
host: {
|
|
790
|
+
attributes: {
|
|
791
|
+
"aria-hidden": "true"
|
|
792
|
+
},
|
|
793
|
+
listeners: {
|
|
794
|
+
"mouseleave": "_handleMouseLeave($event)"
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
viewQueries: [{
|
|
798
|
+
propertyName: "_tooltip",
|
|
799
|
+
first: true,
|
|
800
|
+
predicate: ["tooltip"],
|
|
801
|
+
descendants: true,
|
|
802
|
+
static: true
|
|
803
|
+
}],
|
|
804
|
+
ngImport: i0,
|
|
805
|
+
template: "<div\n #tooltip\n class=\"mdc-tooltip mat-mdc-tooltip\"\n [ngClass]=\"tooltipClass\"\n (animationend)=\"_handleAnimationEnd($event)\"\n [class.mdc-tooltip--multiline]=\"_isMultiline\">\n <div class=\"mat-mdc-tooltip-surface mdc-tooltip__surface\">{{message}}</div>\n</div>\n",
|
|
806
|
+
styles: [".mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:\"\";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}\n"],
|
|
807
|
+
dependencies: [{
|
|
808
|
+
kind: "directive",
|
|
809
|
+
type: NgClass,
|
|
810
|
+
selector: "[ngClass]",
|
|
811
|
+
inputs: ["class", "ngClass"]
|
|
812
|
+
}],
|
|
813
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
814
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
815
|
+
});
|
|
910
816
|
}
|
|
911
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
817
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
818
|
+
minVersion: "12.0.0",
|
|
819
|
+
version: "20.2.0-next.2",
|
|
820
|
+
ngImport: i0,
|
|
821
|
+
type: TooltipComponent,
|
|
822
|
+
decorators: [{
|
|
823
|
+
type: Component,
|
|
824
|
+
args: [{
|
|
825
|
+
selector: 'mat-tooltip-component',
|
|
826
|
+
encapsulation: ViewEncapsulation.None,
|
|
827
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
828
|
+
host: {
|
|
829
|
+
'(mouseleave)': '_handleMouseLeave($event)',
|
|
830
|
+
'aria-hidden': 'true'
|
|
831
|
+
},
|
|
832
|
+
imports: [NgClass],
|
|
833
|
+
template: "<div\n #tooltip\n class=\"mdc-tooltip mat-mdc-tooltip\"\n [ngClass]=\"tooltipClass\"\n (animationend)=\"_handleAnimationEnd($event)\"\n [class.mdc-tooltip--multiline]=\"_isMultiline\">\n <div class=\"mat-mdc-tooltip-surface mdc-tooltip__surface\">{{message}}</div>\n</div>\n",
|
|
834
|
+
styles: [".mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:\"\";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}\n"]
|
|
835
|
+
}]
|
|
836
|
+
}],
|
|
837
|
+
ctorParameters: () => [],
|
|
838
|
+
propDecorators: {
|
|
839
|
+
_tooltip: [{
|
|
840
|
+
type: ViewChild,
|
|
841
|
+
args: ['tooltip', {
|
|
842
|
+
static: true
|
|
843
|
+
}]
|
|
844
|
+
}]
|
|
845
|
+
}
|
|
846
|
+
});
|
|
925
847
|
|
|
926
848
|
export { MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_SCROLL_STRATEGY, MatTooltip, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, getMatTooltipInvalidPositionError };
|
|
927
849
|
//# sourceMappingURL=_tooltip-chunk.mjs.map
|