@ng-matero/extensions 18.4.1 → 19.0.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/_index.scss +3 -1
- package/alert/_alert-theme.scss +19 -8
- package/alert/alert.d.ts +1 -2
- package/button/button-loading.d.ts +1 -2
- package/checkbox-group/checkbox-group.d.ts +12 -4
- package/colorpicker/_colorpicker-theme.scss +19 -8
- package/colorpicker/colorpicker-input.d.ts +1 -3
- package/colorpicker/colorpicker-toggle.d.ts +3 -3
- package/colorpicker/colorpicker.d.ts +4 -7
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +2 -1
- package/column-resize/column-resize-directives/column-resize.d.ts +2 -1
- package/column-resize/column-resize-notifier.d.ts +0 -1
- package/column-resize/column-resize.d.ts +1 -1
- package/column-resize/event-dispatcher.d.ts +0 -9
- package/column-resize/overlay-handle.d.ts +1 -1
- package/column-resize/resizable.d.ts +1 -1
- package/column-resize/resize-strategy.d.ts +4 -4
- package/core/datetime/datetime-adapter.d.ts +1 -2
- package/core/datetime/native-datetime-adapter.d.ts +3 -3
- package/core/style/_button-common.scss +18 -0
- package/core/theming/_config-validation.scss +4 -4
- package/core/theming/_definition.scss +12 -2
- package/core/theming/prebuilt/azure-blue.scss +10 -22
- package/core/theming/prebuilt/cyan-orange.scss +10 -22
- package/core/theming/prebuilt/magenta-violet.scss +10 -22
- package/core/theming/prebuilt/rose-red.scss +10 -22
- package/core/tokens/_m3-system.scss +273 -0
- package/core/tokens/_m3-tokens.scss +8 -151
- package/core/tokens/_token-utils.scss +102 -43
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m3/definitions/_index.scss +1 -0
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +51 -0
- package/core/tokens/m3/index.scss +2 -0
- package/core/tokens/m3/mdc/_plain-tooltip.scss +15 -0
- package/core/tokens/m3/mtx/_alert.scss +14 -14
- package/core/tokens/m3/mtx/_colorpicker.scss +2 -2
- package/core/tokens/m3/mtx/_datetimepicker.scss +2 -2
- package/core/tokens/m3/mtx/_drawer.scss +2 -2
- package/core/tokens/m3/mtx/_grid.scss +2 -2
- package/core/tokens/m3/mtx/_loader.scss +2 -2
- package/core/tokens/m3/mtx/_popover.scss +2 -2
- package/core/tokens/m3/mtx/_progress.scss +2 -2
- package/core/tokens/m3/mtx/_select.scss +2 -2
- package/core/tokens/m3/mtx/_split.scss +2 -2
- package/datetimepicker/_datetimepicker-theme.scss +23 -10
- package/datetimepicker/calendar-body.d.ts +26 -4
- package/datetimepicker/calendar-body.scss +58 -9
- package/datetimepicker/calendar.d.ts +31 -31
- package/datetimepicker/clock.d.ts +11 -5
- package/datetimepicker/datetimepicker-actions.d.ts +9 -5
- package/datetimepicker/datetimepicker-content.scss +15 -0
- package/datetimepicker/datetimepicker-input.d.ts +4 -5
- package/datetimepicker/datetimepicker-module.d.ts +2 -2
- package/datetimepicker/datetimepicker-toggle.d.ts +4 -3
- package/datetimepicker/datetimepicker.d.ts +12 -8
- package/datetimepicker/month-view.d.ts +22 -7
- package/datetimepicker/multi-year-view.d.ts +20 -20
- package/datetimepicker/public-api.d.ts +2 -2
- package/datetimepicker/{time.d.ts → time-view.d.ts} +21 -9
- package/datetimepicker/{time.scss → time-view.scss} +1 -1
- package/datetimepicker/year-view.d.ts +21 -11
- package/dialog/dialog-container.d.ts +1 -2
- package/dialog/dialog.d.ts +0 -1
- package/drawer/_drawer-theme.scss +19 -8
- package/drawer/drawer-container.d.ts +2 -5
- package/drawer/drawer.d.ts +3 -5
- package/fesm2022/mtxAlert.mjs +15 -15
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +13 -14
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +51 -31
- package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +91 -109
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +79 -96
- package/fesm2022/mtxColumnResize.mjs.map +1 -1
- package/fesm2022/mtxCore.mjs +31 -36
- package/fesm2022/mtxCore.mjs.map +1 -1
- package/fesm2022/mtxDatetimepicker.mjs +1179 -1092
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +30 -41
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +36 -52
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +168 -204
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +12 -12
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPhotoviewer.mjs +11 -12
- package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +106 -119
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +8 -8
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +157 -169
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +39 -40
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +105 -91
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +23 -10
- package/grid/cell.d.ts +1 -4
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -1
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -1
- package/grid/column-resize/overlay-handle.d.ts +1 -2
- package/grid/column-resize/resizable-directives/resizable.d.ts +2 -3
- package/grid/column-resize/resize-strategy.d.ts +2 -4
- package/grid/grid-pipes.d.ts +0 -2
- package/grid/grid.d.ts +5 -5
- package/loader/_loader-theme.scss +19 -8
- package/loader/loader.d.ts +0 -2
- package/package.json +11 -47
- package/photoviewer/photoviewer.d.ts +1 -2
- package/popover/_popover-theme.scss +19 -8
- package/popover/popover-content.d.ts +1 -1
- package/popover/popover-target.d.ts +1 -2
- package/popover/popover-trigger.d.ts +5 -6
- package/popover/popover.d.ts +1 -2
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress/_progress-theme.scss +23 -10
- package/select/_select-theme.scss +23 -10
- package/select/option.d.ts +0 -1
- package/select/select-intl.d.ts +2 -4
- package/select/select.d.ts +8 -7
- package/select/select.scss +3 -3
- package/select/templates.d.ts +0 -12
- package/split/_split-theme.scss +19 -8
- package/split/split-pane.d.ts +3 -4
- package/split/split.d.ts +4 -4
- package/split/split.scss +1 -1
- package/tooltip/_tooltip-theme.scss +11 -4
- package/tooltip/tooltip.d.ts +17 -9
- package/tooltip/tooltip.scss +8 -3
- package/esm2022/alert/alert-module.mjs +0 -17
- package/esm2022/alert/alert.mjs +0 -46
- package/esm2022/alert/mtxAlert.mjs +0 -5
- package/esm2022/alert/public-api.mjs +0 -3
- package/esm2022/button/button-loading.mjs +0 -66
- package/esm2022/button/button-module.mjs +0 -19
- package/esm2022/button/mtxButton.mjs +0 -5
- package/esm2022/button/public-api.mjs +0 -3
- package/esm2022/checkbox-group/checkbox-group-module.mjs +0 -20
- package/esm2022/checkbox-group/checkbox-group.mjs +0 -222
- package/esm2022/checkbox-group/interfaces.mjs +0 -2
- package/esm2022/checkbox-group/mtxCheckboxGroup.mjs +0 -5
- package/esm2022/checkbox-group/public-api.mjs +0 -4
- package/esm2022/colorpicker/colorpicker-animations.mjs +0 -16
- package/esm2022/colorpicker/colorpicker-input.mjs +0 -228
- package/esm2022/colorpicker/colorpicker-module.mjs +0 -64
- package/esm2022/colorpicker/colorpicker-toggle.mjs +0 -102
- package/esm2022/colorpicker/colorpicker.mjs +0 -363
- package/esm2022/colorpicker/mtxColorpicker.mjs +0 -5
- package/esm2022/colorpicker/public-api.mjs +0 -6
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +0 -40
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +0 -40
- package/esm2022/column-resize/column-resize-directives/constants.mjs +0 -21
- package/esm2022/column-resize/column-resize-module.mjs +0 -28
- package/esm2022/column-resize/column-resize-notifier.mjs +0 -52
- package/esm2022/column-resize/column-resize.mjs +0 -82
- package/esm2022/column-resize/column-size-store.mjs +0 -20
- package/esm2022/column-resize/event-dispatcher.mjs +0 -70
- package/esm2022/column-resize/mtxColumnResize.mjs +0 -5
- package/esm2022/column-resize/overlay-handle.mjs +0 -146
- package/esm2022/column-resize/polyfill.mjs +0 -19
- package/esm2022/column-resize/public-api.mjs +0 -13
- package/esm2022/column-resize/resizable.mjs +0 -199
- package/esm2022/column-resize/resize-ref.mjs +0 -17
- package/esm2022/column-resize/resize-strategy.mjs +0 -238
- package/esm2022/column-resize/selectors.mjs +0 -13
- package/esm2022/core/datetime/datetime-adapter.mjs +0 -132
- package/esm2022/core/datetime/datetime-formats.mjs +0 -3
- package/esm2022/core/datetime/datetime.module.mjs +0 -38
- package/esm2022/core/datetime/index.mjs +0 -6
- package/esm2022/core/datetime/native-datetime-adapter.mjs +0 -138
- package/esm2022/core/datetime/native-datetime-formats.mjs +0 -20
- package/esm2022/core/mtxCore.mjs +0 -5
- package/esm2022/core/pipes/index.mjs +0 -4
- package/esm2022/core/pipes/is-template-ref.pipe.mjs +0 -14
- package/esm2022/core/pipes/pipes.module.mjs +0 -18
- package/esm2022/core/pipes/to-observable.pipe.mjs +0 -15
- package/esm2022/core/public-api.mjs +0 -3
- package/esm2022/datetimepicker/calendar-body.mjs +0 -77
- package/esm2022/datetimepicker/calendar.mjs +0 -661
- package/esm2022/datetimepicker/clock.mjs +0 -362
- package/esm2022/datetimepicker/datetimepicker-actions.mjs +0 -88
- package/esm2022/datetimepicker/datetimepicker-animations.mjs +0 -44
- package/esm2022/datetimepicker/datetimepicker-errors.mjs +0 -8
- package/esm2022/datetimepicker/datetimepicker-filtertype.mjs +0 -7
- package/esm2022/datetimepicker/datetimepicker-input.mjs +0 -349
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +0 -63
- package/esm2022/datetimepicker/datetimepicker-module.mjs +0 -116
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +0 -105
- package/esm2022/datetimepicker/datetimepicker-types.mjs +0 -2
- package/esm2022/datetimepicker/datetimepicker.mjs +0 -580
- package/esm2022/datetimepicker/month-view.mjs +0 -148
- package/esm2022/datetimepicker/mtxDatetimepicker.mjs +0 -5
- package/esm2022/datetimepicker/multi-year-view.mjs +0 -215
- package/esm2022/datetimepicker/public-api.mjs +0 -17
- package/esm2022/datetimepicker/time.mjs +0 -470
- package/esm2022/datetimepicker/year-view.mjs +0 -139
- package/esm2022/dialog/dialog-config.mjs +0 -2
- package/esm2022/dialog/dialog-container.mjs +0 -43
- package/esm2022/dialog/dialog-module.mjs +0 -40
- package/esm2022/dialog/dialog.mjs +0 -75
- package/esm2022/dialog/mtxDialog.mjs +0 -5
- package/esm2022/dialog/public-api.mjs +0 -5
- package/esm2022/drawer/drawer-animations.mjs +0 -18
- package/esm2022/drawer/drawer-config.mjs +0 -35
- package/esm2022/drawer/drawer-container.mjs +0 -88
- package/esm2022/drawer/drawer-module.mjs +0 -21
- package/esm2022/drawer/drawer-ref.mjs +0 -99
- package/esm2022/drawer/drawer.mjs +0 -144
- package/esm2022/drawer/mtxDrawer.mjs +0 -5
- package/esm2022/drawer/public-api.mjs +0 -7
- package/esm2022/grid/cell.mjs +0 -132
- package/esm2022/grid/column-menu.mjs +0 -133
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +0 -38
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +0 -38
- package/esm2022/grid/column-resize/column-resize-directives/common.mjs +0 -27
- package/esm2022/grid/column-resize/column-resize-module.mjs +0 -42
- package/esm2022/grid/column-resize/index.mjs +0 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +0 -66
- package/esm2022/grid/column-resize/resizable-directives/common.mjs +0 -29
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +0 -64
- package/esm2022/grid/column-resize/resize-strategy.mjs +0 -47
- package/esm2022/grid/expansion-toggle.mjs +0 -65
- package/esm2022/grid/grid-module.mjs +0 -151
- package/esm2022/grid/grid-pipes.mjs +0 -129
- package/esm2022/grid/grid-utils.mjs +0 -56
- package/esm2022/grid/grid.mjs +0 -644
- package/esm2022/grid/interfaces.mjs +0 -2
- package/esm2022/grid/mtxGrid.mjs +0 -5
- package/esm2022/grid/public-api.mjs +0 -18
- package/esm2022/grid/selectable-cell.mjs +0 -53
- package/esm2022/loader/loader-module.mjs +0 -19
- package/esm2022/loader/loader.mjs +0 -57
- package/esm2022/loader/mtxLoader.mjs +0 -5
- package/esm2022/loader/public-api.mjs +0 -3
- package/esm2022/ng-matero-extensions.mjs +0 -5
- package/esm2022/photoviewer/mtxPhotoviewer.mjs +0 -5
- package/esm2022/photoviewer/photoviewer-module.mjs +0 -16
- package/esm2022/photoviewer/photoviewer.mjs +0 -64
- package/esm2022/photoviewer/public-api.mjs +0 -3
- package/esm2022/popover/mtxPopover.mjs +0 -5
- package/esm2022/popover/popover-animations.mjs +0 -25
- package/esm2022/popover/popover-content.mjs +0 -91
- package/esm2022/popover/popover-errors.mjs +0 -27
- package/esm2022/popover/popover-interfaces.mjs +0 -2
- package/esm2022/popover/popover-module.mjs +0 -39
- package/esm2022/popover/popover-target.mjs +0 -18
- package/esm2022/popover/popover-trigger.mjs +0 -480
- package/esm2022/popover/popover-types.mjs +0 -2
- package/esm2022/popover/popover.mjs +0 -325
- package/esm2022/popover/public-api.mjs +0 -9
- package/esm2022/progress/mtxProgress.mjs +0 -5
- package/esm2022/progress/progress-module.mjs +0 -17
- package/esm2022/progress/progress.mjs +0 -43
- package/esm2022/progress/public-api.mjs +0 -3
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/select/mtxSelect.mjs +0 -5
- package/esm2022/select/option.mjs +0 -52
- package/esm2022/select/public-api.mjs +0 -6
- package/esm2022/select/select-intl.mjs +0 -32
- package/esm2022/select/select-module.mjs +0 -89
- package/esm2022/select/select.mjs +0 -611
- package/esm2022/select/templates.mjs +0 -135
- package/esm2022/split/interfaces.mjs +0 -2
- package/esm2022/split/mtxSplit.mjs +0 -5
- package/esm2022/split/public-api.mjs +0 -6
- package/esm2022/split/split-module.mjs +0 -18
- package/esm2022/split/split-pane.mjs +0 -161
- package/esm2022/split/split.mjs +0 -634
- package/esm2022/split/utils.mjs +0 -219
- package/esm2022/tooltip/mtxTooltip.mjs +0 -5
- package/esm2022/tooltip/public-api.mjs +0 -4
- package/esm2022/tooltip/tooltip-animations.mjs +0 -17
- package/esm2022/tooltip/tooltip-module.mjs +0 -41
- package/esm2022/tooltip/tooltip.mjs +0 -915
package/fesm2022/mtxTooltip.mjs
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, TemplateRef,
|
|
2
|
+
import { InjectionToken, inject, TemplateRef, ElementRef, ViewContainerRef, NgZone, Injector, afterNextRender, Directive, Input, ChangeDetectorRef, ANIMATION_MODULE_TYPE, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import { DOCUMENT, NgClass, NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import * as i1 from '@angular/cdk/overlay';
|
|
7
|
-
import { Overlay, OverlayModule } from '@angular/cdk/overlay';
|
|
4
|
+
import { AriaDescriber, FocusMonitor, A11yModule } from '@angular/cdk/a11y';
|
|
5
|
+
import { Overlay, ScrollDispatcher, OverlayModule } from '@angular/cdk/overlay';
|
|
8
6
|
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
9
7
|
import { MatCommonModule } from '@angular/material/core';
|
|
10
8
|
import { MtxIsTemplateRefPipe, MtxPipesModule } from '@ng-matero/extensions/core';
|
|
9
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
11
10
|
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
12
11
|
import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
13
|
-
import
|
|
14
|
-
import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
|
|
12
|
+
import { normalizePassiveListenerOptions, Platform } from '@angular/cdk/platform';
|
|
15
13
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
16
14
|
import { Subject } from 'rxjs';
|
|
17
15
|
import { takeUntil } from 'rxjs/operators';
|
|
18
|
-
import * as i4 from '@angular/cdk/bidi';
|
|
19
16
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
20
17
|
|
|
21
18
|
/** Time in ms to throttle repositioning after scroll events. */
|
|
@@ -111,13 +108,17 @@ class MtxTooltip {
|
|
|
111
108
|
return this._disabled;
|
|
112
109
|
}
|
|
113
110
|
set disabled(value) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
111
|
+
const isDisabled = coerceBooleanProperty(value);
|
|
112
|
+
if (this._disabled !== isDisabled) {
|
|
113
|
+
this._disabled = isDisabled;
|
|
114
|
+
// If tooltip is disabled, hide immediately.
|
|
115
|
+
if (isDisabled) {
|
|
116
|
+
this.hide(0);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
this._setupPointerEnterEventsIfNeeded();
|
|
120
|
+
}
|
|
121
|
+
this._syncAriaDescription(this.message);
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
/** The default delay in ms before showing the tooltip after show is called */
|
|
@@ -142,7 +143,7 @@ class MtxTooltip {
|
|
|
142
143
|
return this._message;
|
|
143
144
|
}
|
|
144
145
|
set message(value) {
|
|
145
|
-
|
|
146
|
+
const oldMessage = this._message;
|
|
146
147
|
// TODO: If the message is a TemplateRef, it's hard to support a11y.
|
|
147
148
|
// If the message is not a string (e.g. number), convert it to a string and trim it.
|
|
148
149
|
// Must convert with `String(value)`, not `${value}`, otherwise Closure Compiler optimises
|
|
@@ -154,16 +155,8 @@ class MtxTooltip {
|
|
|
154
155
|
else {
|
|
155
156
|
this._setupPointerEnterEventsIfNeeded();
|
|
156
157
|
this._updateTooltipMessage();
|
|
157
|
-
this._ngZone.runOutsideAngular(() => {
|
|
158
|
-
// The `AriaDescriber` has some functionality that avoids adding a description if it's the
|
|
159
|
-
// same as the `aria-label` of an element, however we can't know whether the tooltip trigger
|
|
160
|
-
// has a data-bound `aria-label` or when it'll be set for the first time. We can avoid the
|
|
161
|
-
// issue by deferring the description by a tick so Angular has time to set the `aria-label`.
|
|
162
|
-
Promise.resolve().then(() => {
|
|
163
|
-
this._ariaDescriber.describe(this._elementRef.nativeElement, this.message, 'tooltip');
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
158
|
}
|
|
159
|
+
this._syncAriaDescription(oldMessage);
|
|
167
160
|
}
|
|
168
161
|
/** Context to be passed to the tooltip. */
|
|
169
162
|
get tooltipContext() {
|
|
@@ -183,27 +176,32 @@ class MtxTooltip {
|
|
|
183
176
|
this._setTooltipClass(this._tooltipClass);
|
|
184
177
|
}
|
|
185
178
|
}
|
|
186
|
-
constructor(
|
|
187
|
-
this._overlay =
|
|
188
|
-
this._elementRef =
|
|
189
|
-
this._scrollDispatcher =
|
|
190
|
-
this._viewContainerRef =
|
|
191
|
-
this._ngZone =
|
|
192
|
-
this._platform =
|
|
193
|
-
this._ariaDescriber =
|
|
194
|
-
this._focusMonitor =
|
|
195
|
-
this._dir =
|
|
196
|
-
this.
|
|
179
|
+
constructor() {
|
|
180
|
+
this._overlay = inject(Overlay);
|
|
181
|
+
this._elementRef = inject(ElementRef);
|
|
182
|
+
this._scrollDispatcher = inject(ScrollDispatcher);
|
|
183
|
+
this._viewContainerRef = inject(ViewContainerRef);
|
|
184
|
+
this._ngZone = inject(NgZone);
|
|
185
|
+
this._platform = inject(Platform);
|
|
186
|
+
this._ariaDescriber = inject(AriaDescriber);
|
|
187
|
+
this._focusMonitor = inject(FocusMonitor);
|
|
188
|
+
this._dir = inject(Directionality);
|
|
189
|
+
this._injector = inject(Injector);
|
|
190
|
+
this._defaultOptions = inject(MTX_TOOLTIP_DEFAULT_OPTIONS, {
|
|
191
|
+
optional: true,
|
|
192
|
+
});
|
|
197
193
|
this._overlayRef = null;
|
|
198
194
|
this._tooltipInstance = null;
|
|
199
195
|
this._position = 'below';
|
|
200
196
|
this._positionAtOrigin = false;
|
|
201
197
|
this._disabled = false;
|
|
198
|
+
this._scrollStrategy = inject(MTX_TOOLTIP_SCROLL_STRATEGY);
|
|
202
199
|
this._viewInitialized = false;
|
|
203
200
|
this._pointerExitEventsInitialized = false;
|
|
204
201
|
this._tooltipComponent = TooltipComponent;
|
|
205
202
|
this._viewportMargin = 8;
|
|
206
203
|
this._cssClassPrefix = 'mtx-mdc';
|
|
204
|
+
this._ariaDescriptionPending = false;
|
|
207
205
|
/**
|
|
208
206
|
* How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
|
|
209
207
|
* uses a long press gesture to show and hide, however it can conflict with the native browser
|
|
@@ -222,25 +220,30 @@ class MtxTooltip {
|
|
|
222
220
|
this._message = '';
|
|
223
221
|
/** Manually-bound passive event listeners. */
|
|
224
222
|
this._passiveListeners = [];
|
|
223
|
+
/** Reference to the current document. */
|
|
224
|
+
this._document = inject(DOCUMENT);
|
|
225
|
+
/** Timer started at the last `touchstart` event. */
|
|
226
|
+
this._touchstartTimeout = null;
|
|
225
227
|
/** Emits when the component is destroyed. */
|
|
226
228
|
this._destroyed = new Subject();
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
229
|
+
const defaultOptions = this._defaultOptions;
|
|
230
|
+
if (defaultOptions) {
|
|
231
|
+
this._showDelay = defaultOptions.showDelay;
|
|
232
|
+
this._hideDelay = defaultOptions.hideDelay;
|
|
233
|
+
if (defaultOptions.position) {
|
|
234
|
+
this.position = defaultOptions.position;
|
|
235
|
+
}
|
|
236
|
+
if (defaultOptions.positionAtOrigin) {
|
|
237
|
+
this.positionAtOrigin = defaultOptions.positionAtOrigin;
|
|
235
238
|
}
|
|
236
|
-
if (
|
|
237
|
-
this.
|
|
239
|
+
if (defaultOptions.touchGestures) {
|
|
240
|
+
this.touchGestures = defaultOptions.touchGestures;
|
|
238
241
|
}
|
|
239
|
-
if (
|
|
240
|
-
this.
|
|
242
|
+
if (defaultOptions.tooltipClass) {
|
|
243
|
+
this.tooltipClass = defaultOptions.tooltipClass;
|
|
241
244
|
}
|
|
242
245
|
}
|
|
243
|
-
_dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
246
|
+
this._dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
244
247
|
if (this._overlayRef) {
|
|
245
248
|
this._updatePosition(this._overlayRef);
|
|
246
249
|
}
|
|
@@ -269,7 +272,10 @@ class MtxTooltip {
|
|
|
269
272
|
*/
|
|
270
273
|
ngOnDestroy() {
|
|
271
274
|
const nativeElement = this._elementRef.nativeElement;
|
|
272
|
-
clearTimeout
|
|
275
|
+
// Optimization: Do not call clearTimeout unless there is an active timer.
|
|
276
|
+
if (this._touchstartTimeout) {
|
|
277
|
+
clearTimeout(this._touchstartTimeout);
|
|
278
|
+
}
|
|
273
279
|
if (this._overlayRef) {
|
|
274
280
|
this._overlayRef.dispose();
|
|
275
281
|
this._tooltipInstance = null;
|
|
@@ -281,7 +287,7 @@ class MtxTooltip {
|
|
|
281
287
|
this._passiveListeners.length = 0;
|
|
282
288
|
this._destroyed.next();
|
|
283
289
|
this._destroyed.complete();
|
|
284
|
-
this._ariaDescriber.removeDescription(nativeElement, this.message, 'tooltip');
|
|
290
|
+
this._ariaDescriber.removeDescription(nativeElement, this.message.toString(), 'tooltip');
|
|
285
291
|
this._focusMonitor.stopMonitoring(nativeElement);
|
|
286
292
|
}
|
|
287
293
|
/** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
|
|
@@ -595,9 +601,14 @@ class MtxTooltip {
|
|
|
595
601
|
// Note that it's important that we don't `preventDefault` here,
|
|
596
602
|
// because it can prevent click events from firing on the element.
|
|
597
603
|
this._setupPointerExitEventsIfNeeded();
|
|
598
|
-
|
|
604
|
+
if (this._touchstartTimeout) {
|
|
605
|
+
clearTimeout(this._touchstartTimeout);
|
|
606
|
+
}
|
|
599
607
|
const DEFAULT_LONGPRESS_DELAY = 500;
|
|
600
|
-
this._touchstartTimeout = setTimeout(() =>
|
|
608
|
+
this._touchstartTimeout = setTimeout(() => {
|
|
609
|
+
this._touchstartTimeout = null;
|
|
610
|
+
this.show(undefined, origin);
|
|
611
|
+
}, this._defaultOptions?.touchLongPressShowDelay ?? DEFAULT_LONGPRESS_DELAY);
|
|
601
612
|
},
|
|
602
613
|
]);
|
|
603
614
|
}
|
|
@@ -623,8 +634,10 @@ class MtxTooltip {
|
|
|
623
634
|
else if (this.touchGestures !== 'off') {
|
|
624
635
|
this._disableNativeGesturesIfNecessary();
|
|
625
636
|
const touchendListener = () => {
|
|
626
|
-
|
|
627
|
-
|
|
637
|
+
if (this._touchstartTimeout) {
|
|
638
|
+
clearTimeout(this._touchstartTimeout);
|
|
639
|
+
}
|
|
640
|
+
this.hide(this._defaultOptions?.touchendHideDelay);
|
|
628
641
|
};
|
|
629
642
|
exitListeners.push(['touchend', touchendListener], ['touchcancel', touchendListener]);
|
|
630
643
|
}
|
|
@@ -677,10 +690,30 @@ class MtxTooltip {
|
|
|
677
690
|
style.webkitTapHighlightColor = 'transparent';
|
|
678
691
|
}
|
|
679
692
|
}
|
|
680
|
-
/**
|
|
681
|
-
|
|
693
|
+
/** Updates the tooltip's ARIA description based on it current state. */
|
|
694
|
+
_syncAriaDescription(oldMessage) {
|
|
695
|
+
if (this._ariaDescriptionPending) {
|
|
696
|
+
return;
|
|
697
|
+
}
|
|
698
|
+
this._ariaDescriptionPending = true;
|
|
699
|
+
this._ariaDescriber.removeDescription(this._elementRef.nativeElement, oldMessage.toString(), 'tooltip');
|
|
700
|
+
this._ngZone.runOutsideAngular(() => {
|
|
701
|
+
// The `AriaDescriber` has some functionality that avoids adding a description if it's the
|
|
702
|
+
// same as the `aria-label` of an element, however we can't know whether the tooltip trigger
|
|
703
|
+
// has a data-bound `aria-label` or when it'll be set for the first time. We can avoid the
|
|
704
|
+
// issue by deferring the description by a tick so Angular has time to set the `aria-label`.
|
|
705
|
+
Promise.resolve().then(() => {
|
|
706
|
+
this._ariaDescriptionPending = false;
|
|
707
|
+
if (this.message && !this.disabled) {
|
|
708
|
+
this._ariaDescriber.describe(this._elementRef.nativeElement, this.message.toString(), 'tooltip');
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
714
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.4", type: MtxTooltip, isStandalone: true, selector: "[mtxTooltip]", inputs: { position: ["mtxTooltipPosition", "position"], positionAtOrigin: ["mtxTooltipPositionAtOrigin", "positionAtOrigin"], disabled: ["mtxTooltipDisabled", "disabled"], showDelay: ["mtxTooltipShowDelay", "showDelay"], hideDelay: ["mtxTooltipHideDelay", "hideDelay"], touchGestures: ["mtxTooltipTouchGestures", "touchGestures"], message: ["mtxTooltip", "message"], tooltipContext: ["mtxTooltipContext", "tooltipContext"], tooltipClass: ["mtxTooltipClass", "tooltipClass"] }, host: { properties: { "class.mtx-mdc-tooltip-disabled": "disabled" }, classAttribute: "mtx-mdc-tooltip-trigger" }, exportAs: ["mtxTooltip"], ngImport: i0 }); }
|
|
682
715
|
}
|
|
683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxTooltip, decorators: [{
|
|
684
717
|
type: Directive,
|
|
685
718
|
args: [{
|
|
686
719
|
selector: '[mtxTooltip]',
|
|
@@ -689,20 +722,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
689
722
|
'class': 'mtx-mdc-tooltip-trigger',
|
|
690
723
|
'[class.mtx-mdc-tooltip-disabled]': 'disabled',
|
|
691
724
|
},
|
|
692
|
-
standalone: true,
|
|
693
725
|
}]
|
|
694
|
-
}], ctorParameters: () => [
|
|
695
|
-
type: Inject,
|
|
696
|
-
args: [MTX_TOOLTIP_SCROLL_STRATEGY]
|
|
697
|
-
}] }, { type: i4.Directionality }, { type: undefined, decorators: [{
|
|
698
|
-
type: Optional
|
|
699
|
-
}, {
|
|
700
|
-
type: Inject,
|
|
701
|
-
args: [MTX_TOOLTIP_DEFAULT_OPTIONS]
|
|
702
|
-
}] }, { type: undefined, decorators: [{
|
|
703
|
-
type: Inject,
|
|
704
|
-
args: [DOCUMENT]
|
|
705
|
-
}] }], propDecorators: { position: [{
|
|
726
|
+
}], ctorParameters: () => [], propDecorators: { position: [{
|
|
706
727
|
type: Input,
|
|
707
728
|
args: ['mtxTooltipPosition']
|
|
708
729
|
}], positionAtOrigin: [{
|
|
@@ -735,9 +756,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
735
756
|
* @docs-private
|
|
736
757
|
*/
|
|
737
758
|
class TooltipComponent {
|
|
738
|
-
constructor(
|
|
739
|
-
this._changeDetectorRef =
|
|
740
|
-
this._elementRef =
|
|
759
|
+
constructor() {
|
|
760
|
+
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
761
|
+
this._elementRef = inject(ElementRef);
|
|
741
762
|
/* Whether the tooltip text overflows to multiple lines */
|
|
742
763
|
this._isMultiline = false;
|
|
743
764
|
/** Whether interactions on the page should close the tooltip */
|
|
@@ -750,6 +771,7 @@ class TooltipComponent {
|
|
|
750
771
|
this._showAnimation = 'mtx-mdc-tooltip-show';
|
|
751
772
|
/** Name of the hide animation and the class that toggles it. */
|
|
752
773
|
this._hideAnimation = 'mtx-mdc-tooltip-hide';
|
|
774
|
+
const animationMode = inject(ANIMATION_MODULE_TYPE, { optional: true });
|
|
753
775
|
this._animationsDisabled = animationMode === 'NoopAnimations';
|
|
754
776
|
}
|
|
755
777
|
/**
|
|
@@ -892,24 +914,16 @@ class TooltipComponent {
|
|
|
892
914
|
this._finalizeAnimation(isVisible);
|
|
893
915
|
}
|
|
894
916
|
}
|
|
895
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
896
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
917
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
918
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.4", type: TooltipComponent, isStandalone: true, selector: "mtx-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 mtx-mdc-tooltip\"\n [ngClass]=\"tooltipClass\"\n (animationend)=\"_handleAnimationEnd($event)\"\n [class.mdc-tooltip--multiline]=\"_isMultiline\"\n>\n <div class=\"mtx-mdc-tooltip-surface mdc-tooltip__surface\">\n @if (message | isTemplateRef) {\n <ng-template\n [ngTemplateOutlet]=\"$any(message)\"\n [ngTemplateOutletContext]=\"{ $implicit: tooltipContext }\"\n ></ng-template>\n } @else {\n {{ message }}\n }\n </div>\n</div>\n", styles: [".mtx-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mtx-mdc-tooltip:before{content:\"\";inset:0;z-index:-1;position:absolute}.mtx-mdc-tooltip-panel-below .mtx-mdc-tooltip:before{top:-8px}.mtx-mdc-tooltip-panel-above .mtx-mdc-tooltip:before{bottom:-8px}.mtx-mdc-tooltip-panel-right .mtx-mdc-tooltip:before{left:-8px}.mtx-mdc-tooltip-panel-left .mtx-mdc-tooltip:before{right:-8px}.mtx-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mtx-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(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mtx-mdc-tooltip-surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:\"\";pointer-events:none}.mdc-tooltip--multiline .mtx-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mtx-mdc-tooltip-surface{text-align:right}.mtx-mdc-tooltip-panel{line-height:normal}.mtx-mdc-tooltip-panel.mtx-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mtx-mdc-tooltip-show{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes mtx-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.mtx-mdc-tooltip-show{animation:mtx-mdc-tooltip-show .15s cubic-bezier(0,0,.2,1) forwards}.mtx-mdc-tooltip-hide{animation:mtx-mdc-tooltip-hide 75ms cubic-bezier(.4,0,1,1) forwards}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: MtxIsTemplateRefPipe, name: "isTemplateRef" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
897
919
|
}
|
|
898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
899
921
|
type: Component,
|
|
900
922
|
args: [{ selector: 'mtx-tooltip-component', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
901
|
-
// Forces the element to have a layout in IE and Edge. This fixes issues where the element
|
|
902
|
-
// won't be rendered if the animations are disabled or there is no web animations polyfill.
|
|
903
|
-
'[style.zoom]': 'isVisible() ? 1 : null',
|
|
904
923
|
'(mouseleave)': '_handleMouseLeave($event)',
|
|
905
924
|
'aria-hidden': 'true',
|
|
906
|
-
},
|
|
907
|
-
}], ctorParameters: () => [
|
|
908
|
-
type: Optional
|
|
909
|
-
}, {
|
|
910
|
-
type: Inject,
|
|
911
|
-
args: [ANIMATION_MODULE_TYPE]
|
|
912
|
-
}] }], propDecorators: { _tooltip: [{
|
|
925
|
+
}, imports: [NgClass, NgTemplateOutlet, MtxIsTemplateRefPipe], template: "<div\n #tooltip\n class=\"mdc-tooltip mtx-mdc-tooltip\"\n [ngClass]=\"tooltipClass\"\n (animationend)=\"_handleAnimationEnd($event)\"\n [class.mdc-tooltip--multiline]=\"_isMultiline\"\n>\n <div class=\"mtx-mdc-tooltip-surface mdc-tooltip__surface\">\n @if (message | isTemplateRef) {\n <ng-template\n [ngTemplateOutlet]=\"$any(message)\"\n [ngTemplateOutletContext]=\"{ $implicit: tooltipContext }\"\n ></ng-template>\n } @else {\n {{ message }}\n }\n </div>\n</div>\n", styles: [".mtx-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mtx-mdc-tooltip:before{content:\"\";inset:0;z-index:-1;position:absolute}.mtx-mdc-tooltip-panel-below .mtx-mdc-tooltip:before{top:-8px}.mtx-mdc-tooltip-panel-above .mtx-mdc-tooltip:before{bottom:-8px}.mtx-mdc-tooltip-panel-right .mtx-mdc-tooltip:before{left:-8px}.mtx-mdc-tooltip-panel-left .mtx-mdc-tooltip:before{right:-8px}.mtx-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mtx-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(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mtx-mdc-tooltip-surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:\"\";pointer-events:none}.mdc-tooltip--multiline .mtx-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mtx-mdc-tooltip-surface{text-align:right}.mtx-mdc-tooltip-panel{line-height:normal}.mtx-mdc-tooltip-panel.mtx-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mtx-mdc-tooltip-show{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes mtx-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.mtx-mdc-tooltip-show{animation:mtx-mdc-tooltip-show .15s cubic-bezier(0,0,.2,1) forwards}.mtx-mdc-tooltip-hide{animation:mtx-mdc-tooltip-hide 75ms cubic-bezier(.4,0,1,1) forwards}\n"] }]
|
|
926
|
+
}], ctorParameters: () => [], propDecorators: { _tooltip: [{
|
|
913
927
|
type: ViewChild,
|
|
914
928
|
args: ['tooltip', {
|
|
915
929
|
// Use a static query here since we interact directly with
|
|
@@ -919,21 +933,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
919
933
|
}] } });
|
|
920
934
|
|
|
921
935
|
class MtxTooltipModule {
|
|
922
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
923
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
936
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
937
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.4", ngImport: i0, type: MtxTooltipModule, imports: [A11yModule,
|
|
924
938
|
CommonModule,
|
|
925
939
|
OverlayModule,
|
|
926
940
|
MatCommonModule,
|
|
927
941
|
MtxPipesModule,
|
|
928
942
|
MtxTooltip,
|
|
929
943
|
TooltipComponent], exports: [MtxTooltip, TooltipComponent, MatCommonModule, CdkScrollableModule] }); }
|
|
930
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
944
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxTooltipModule, providers: [MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [A11yModule,
|
|
931
945
|
CommonModule,
|
|
932
946
|
OverlayModule,
|
|
933
947
|
MatCommonModule,
|
|
934
948
|
MtxPipesModule, MatCommonModule, CdkScrollableModule] }); }
|
|
935
949
|
}
|
|
936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
950
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxTooltipModule, decorators: [{
|
|
937
951
|
type: NgModule,
|
|
938
952
|
args: [{
|
|
939
953
|
imports: [
|