@angular/material 21.0.0-next.1 → 21.0.0-next.2

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.
Files changed (99) hide show
  1. package/autocomplete/index.d.ts +1 -23
  2. package/bottom-sheet/index.d.ts +1 -10
  3. package/button/index.d.ts +1 -7
  4. package/button-toggle/index.d.ts +1 -1
  5. package/button-toggle.d.d.ts +1 -7
  6. package/checkbox/index.d.ts +1 -7
  7. package/core/index.d.ts +1 -1
  8. package/core/tokens/_classes.scss +20 -16
  9. package/date-adapter.d.d.ts +1 -7
  10. package/datepicker/index.d.ts +2 -55
  11. package/dialog/index.d.ts +1 -23
  12. package/expansion/index.d.ts +1 -36
  13. package/fesm2022/autocomplete.mjs +5 -33
  14. package/fesm2022/autocomplete.mjs.map +1 -1
  15. package/fesm2022/bottom-sheet.mjs +1 -82
  16. package/fesm2022/bottom-sheet.mjs.map +1 -1
  17. package/fesm2022/button-toggle.mjs +5 -13
  18. package/fesm2022/button-toggle.mjs.map +1 -1
  19. package/fesm2022/button.mjs +6 -14
  20. package/fesm2022/button.mjs.map +1 -1
  21. package/fesm2022/checkbox.mjs +10 -19
  22. package/fesm2022/checkbox.mjs.map +1 -1
  23. package/fesm2022/core.mjs +1 -2
  24. package/fesm2022/core.mjs.map +1 -1
  25. package/fesm2022/date-formats.mjs +2 -10
  26. package/fesm2022/date-formats.mjs.map +1 -1
  27. package/fesm2022/datepicker.mjs +26 -178
  28. package/fesm2022/datepicker.mjs.map +1 -1
  29. package/fesm2022/dialog/testing.mjs +5 -5
  30. package/fesm2022/dialog.mjs +882 -114
  31. package/fesm2022/dialog.mjs.map +1 -1
  32. package/fesm2022/expansion.mjs +1 -103
  33. package/fesm2022/expansion.mjs.map +1 -1
  34. package/fesm2022/form-field.mjs +37 -49
  35. package/fesm2022/form-field.mjs.map +1 -1
  36. package/fesm2022/icon-registry.mjs +2 -29
  37. package/fesm2022/icon-registry.mjs.map +1 -1
  38. package/fesm2022/icon.mjs +11 -17
  39. package/fesm2022/icon.mjs.map +1 -1
  40. package/fesm2022/input.mjs +1 -1
  41. package/fesm2022/menu.mjs +5 -152
  42. package/fesm2022/menu.mjs.map +1 -1
  43. package/fesm2022/paginator.mjs +7 -27
  44. package/fesm2022/paginator.mjs.map +1 -1
  45. package/fesm2022/progress-bar.mjs +13 -16
  46. package/fesm2022/progress-bar.mjs.map +1 -1
  47. package/fesm2022/progress-spinner.mjs +2 -10
  48. package/fesm2022/progress-spinner.mjs.map +1 -1
  49. package/fesm2022/radio.mjs +4 -12
  50. package/fesm2022/radio.mjs.map +1 -1
  51. package/fesm2022/ripple.mjs +2 -2
  52. package/fesm2022/ripple.mjs.map +1 -1
  53. package/fesm2022/select.mjs +1293 -90
  54. package/fesm2022/select.mjs.map +1 -1
  55. package/fesm2022/sidenav.mjs +2 -88
  56. package/fesm2022/sidenav.mjs.map +1 -1
  57. package/fesm2022/snack-bar.mjs +2 -80
  58. package/fesm2022/snack-bar.mjs.map +1 -1
  59. package/fesm2022/sort.mjs +3 -329
  60. package/fesm2022/sort.mjs.map +1 -1
  61. package/fesm2022/stepper.mjs +4 -171
  62. package/fesm2022/stepper.mjs.map +1 -1
  63. package/fesm2022/tabs.mjs +8 -153
  64. package/fesm2022/tabs.mjs.map +1 -1
  65. package/fesm2022/tooltip.mjs +21 -53
  66. package/fesm2022/tooltip.mjs.map +1 -1
  67. package/fesm2022/tooltip2.mjs +6 -33
  68. package/fesm2022/tooltip2.mjs.map +1 -1
  69. package/form-field/index.d.ts +1 -11
  70. package/icon/index.d.ts +2 -2
  71. package/icon-module.d.d.ts +1 -7
  72. package/icon-registry.d.d.ts +2 -18
  73. package/menu/index.d.ts +1 -42
  74. package/package.json +2 -2
  75. package/paginator/index.d.ts +3 -3
  76. package/paginator.d.d.ts +2 -18
  77. package/progress-bar/index.d.ts +1 -7
  78. package/progress-spinner/index.d.ts +1 -1
  79. package/progress-spinner.d.d.ts +3 -9
  80. package/radio/index.d.ts +1 -7
  81. package/ripple.d.d.ts +3 -3
  82. package/schematics/ng-add/index.js +1 -1
  83. package/select/index.d.ts +439 -27
  84. package/sidenav/index.d.ts +1 -17
  85. package/snack-bar/index.d.ts +1 -17
  86. package/sort/index.d.ts +2 -33
  87. package/stepper/index.d.ts +2 -29
  88. package/tabs/index.d.ts +1 -18
  89. package/tooltip/index.d.ts +302 -16
  90. package/fesm2022/dialog-module.mjs +0 -891
  91. package/fesm2022/dialog-module.mjs.map +0 -1
  92. package/fesm2022/form-field-module.mjs +0 -39
  93. package/fesm2022/form-field-module.mjs.map +0 -1
  94. package/fesm2022/select-module.mjs +0 -1318
  95. package/fesm2022/select-module.mjs.map +0 -1
  96. package/fesm2022/tooltip-module.mjs +0 -24
  97. package/fesm2022/tooltip-module.mjs.map +0 -1
  98. package/select-module.d.d.ts +0 -456
  99. package/tooltip-module.d.d.ts +0 -329
@@ -21,12 +21,6 @@ type MatDrawerToggleResult = 'open' | 'close';
21
21
  type MatDrawerMode = 'over' | 'push' | 'side';
22
22
  /** Configures whether drawers should use auto sizing by default. */
23
23
  declare const MAT_DRAWER_DEFAULT_AUTOSIZE: InjectionToken<boolean>;
24
- /**
25
- * @docs-private
26
- * @deprecated No longer used, will be removed.
27
- * @breaking-change 21.0.0
28
- */
29
- declare function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY(): boolean;
30
24
  declare class MatDrawerContent extends CdkScrollable implements AfterContentInit {
31
25
  private _platform;
32
26
  private _changeDetectorRef;
@@ -338,15 +332,5 @@ declare class MatSidenavModule {
338
332
  static ɵinj: i0.ɵɵInjectorDeclaration<MatSidenavModule>;
339
333
  }
340
334
 
341
- /**
342
- * Animations used by the Material drawers.
343
- * @docs-private
344
- * @deprecated No longer used, will be removed.
345
- * @breaking-change 21.0.0
346
- */
347
- declare const matDrawerAnimations: {
348
- readonly transformDrawer: any;
349
- };
350
-
351
- export { MAT_DRAWER_DEFAULT_AUTOSIZE, MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY, MatDrawer, MatDrawerContainer, MatDrawerContent, MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule, matDrawerAnimations, throwMatDuplicatedDrawerError };
335
+ export { MAT_DRAWER_DEFAULT_AUTOSIZE, MatDrawer, MatDrawerContainer, MatDrawerContent, MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule, throwMatDuplicatedDrawerError };
352
336
  export type { MatDrawerMode, MatDrawerToggleResult };
@@ -237,12 +237,6 @@ declare class MatSnackBarAction {
237
237
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarAction, "[matSnackBarAction]", never, {}, {}, never, never, true, never>;
238
238
  }
239
239
 
240
- /**
241
- * @docs-private
242
- * @deprecated No longer used, will be removed.
243
- * @breaking-change 21.0.0
244
- */
245
- declare function MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY(): MatSnackBarConfig;
246
240
  /** Injection token that can be used to specify default snack bar. */
247
241
  declare const MAT_SNACK_BAR_DEFAULT_OPTIONS: InjectionToken<MatSnackBarConfig<any>>;
248
242
  /**
@@ -330,15 +324,5 @@ declare class MatSnackBarModule {
330
324
  static ɵinj: i0.ɵɵInjectorDeclaration<MatSnackBarModule>;
331
325
  }
332
326
 
333
- /**
334
- * Animations used by the Material snack bar.
335
- * @docs-private
336
- * @deprecated No longer used, will be removed.
337
- * @breaking-change 21.0.0
338
- */
339
- declare const matSnackBarAnimations: {
340
- readonly snackBarState: any;
341
- };
342
-
343
- export { MAT_SNACK_BAR_DATA, MAT_SNACK_BAR_DEFAULT_OPTIONS, MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY, MatSnackBar, MatSnackBarAction, MatSnackBarActions, MatSnackBarConfig, MatSnackBarContainer, MatSnackBarLabel, MatSnackBarModule, MatSnackBarRef, SimpleSnackBar, matSnackBarAnimations };
327
+ export { MAT_SNACK_BAR_DATA, MAT_SNACK_BAR_DEFAULT_OPTIONS, MatSnackBar, MatSnackBarAction, MatSnackBarActions, MatSnackBarConfig, MatSnackBarContainer, MatSnackBarLabel, MatSnackBarModule, MatSnackBarRef, SimpleSnackBar };
344
328
  export type { MatSnackBarDismiss, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition, TextOnlySnackBar };
package/sort/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Optional, OnDestroy, OnInit, AfterViewInit } from '@angular/core';
2
+ import { OnDestroy, OnInit, AfterViewInit } from '@angular/core';
3
3
  import { MatCommonModule } from '../common-module.d.js';
4
4
  import { MatSortable, MatSort, SortHeaderArrowPosition } from '../sort.d.js';
5
5
  export { MAT_SORT_DEFAULT_OPTIONS, MatSortDefaultOptions, Sort } from '../sort.d.js';
@@ -20,22 +20,6 @@ declare class MatSortHeaderIntl {
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSortHeaderIntl, never>;
21
21
  static ɵprov: i0.ɵɵInjectableDeclaration<MatSortHeaderIntl>;
22
22
  }
23
- /**
24
- * @docs-private
25
- * @deprecated No longer used, will be removed.
26
- * @breaking-change 21.0.0
27
- */
28
- declare function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl: MatSortHeaderIntl): MatSortHeaderIntl;
29
- /**
30
- * @docs-private
31
- * @deprecated No longer used, will be removed.
32
- * @breaking-change 21.0.0
33
- */
34
- declare const MAT_SORT_HEADER_INTL_PROVIDER: {
35
- provide: typeof MatSortHeaderIntl;
36
- deps: Optional[][];
37
- useFactory: typeof MAT_SORT_HEADER_INTL_PROVIDER_FACTORY;
38
- };
39
23
 
40
24
  /**
41
25
  * Valid positions for the arrow to be in for its opacity and translation. If the state is a
@@ -144,20 +128,5 @@ declare class MatSortModule {
144
128
  static ɵinj: i0.ɵɵInjectorDeclaration<MatSortModule>;
145
129
  }
146
130
 
147
- /**
148
- * Animations used by MatSort.
149
- * @docs-private
150
- * @deprecated No longer being used, to be removed.
151
- * @breaking-change 21.0.0
152
- */
153
- declare const matSortAnimations: {
154
- readonly indicator: any;
155
- readonly leftPointer: any;
156
- readonly rightPointer: any;
157
- readonly arrowOpacity: any;
158
- readonly arrowPosition: any;
159
- readonly allowChildren: any;
160
- };
161
-
162
- export { MAT_SORT_HEADER_INTL_PROVIDER, MAT_SORT_HEADER_INTL_PROVIDER_FACTORY, MatSort, MatSortHeader, MatSortHeaderIntl, MatSortModule, MatSortable, SortDirection, SortHeaderArrowPosition, matSortAnimations };
131
+ export { MatSort, MatSortHeader, MatSortHeaderIntl, MatSortModule, MatSortable, SortDirection, SortHeaderArrowPosition };
163
132
  export type { ArrowViewState, ArrowViewStateTransition };
@@ -2,7 +2,7 @@ import * as i3$1 from '@angular/cdk/stepper';
2
2
  import { CdkStepLabel, StepState, CdkStepHeader, CdkStep, CdkStepper, CdkStepperNext, CdkStepperPrevious } from '@angular/cdk/stepper';
3
3
  export { StepState, StepperOrientation } from '@angular/cdk/stepper';
4
4
  import * as i0 from '@angular/core';
5
- import { Optional, TemplateRef, AfterViewInit, OnDestroy, AfterContentInit, QueryList, ElementRef, EventEmitter } from '@angular/core';
5
+ import { TemplateRef, AfterViewInit, OnDestroy, AfterContentInit, QueryList, ElementRef, EventEmitter } from '@angular/core';
6
6
  import { MatCommonModule } from '../common-module.d.js';
7
7
  import * as i3 from '@angular/cdk/portal';
8
8
  import { TemplatePortal } from '@angular/cdk/portal';
@@ -38,22 +38,6 @@ declare class MatStepperIntl {
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperIntl, never>;
39
39
  static ɵprov: i0.ɵɵInjectableDeclaration<MatStepperIntl>;
40
40
  }
41
- /**
42
- * @docs-private
43
- * @deprecated No longer used, will be removed.
44
- * @breaking-change 21.0.0
45
- */
46
- declare function MAT_STEPPER_INTL_PROVIDER_FACTORY(parentIntl: MatStepperIntl): MatStepperIntl;
47
- /**
48
- * @docs-private
49
- * @deprecated No longer used, will be removed.
50
- * @breaking-change 21.0.0
51
- */
52
- declare const MAT_STEPPER_INTL_PROVIDER: {
53
- provide: typeof MatStepperIntl;
54
- deps: Optional[][];
55
- useFactory: typeof MAT_STEPPER_INTL_PROVIDER_FACTORY;
56
- };
57
41
 
58
42
  /** Template context available to an attached `matStepperIcon`. */
59
43
  interface MatStepperIconContext {
@@ -236,16 +220,5 @@ declare class MatStepperModule {
236
220
  static ɵinj: i0.ɵɵInjectorDeclaration<MatStepperModule>;
237
221
  }
238
222
 
239
- /**
240
- * Animations used by the Material steppers.
241
- * @docs-private
242
- * @deprecated No longer used, will be removed.
243
- * @breaking-change 21.0.0
244
- */
245
- declare const matStepperAnimations: {
246
- readonly horizontalStepTransition: any;
247
- readonly verticalStepTransition: any;
248
- };
249
-
250
- export { MAT_STEPPER_INTL_PROVIDER, MAT_STEPPER_INTL_PROVIDER_FACTORY, MatStep, MatStepContent, MatStepHeader, MatStepLabel, MatStepper, MatStepperIcon, MatStepperIntl, MatStepperModule, MatStepperNext, MatStepperPrevious, matStepperAnimations };
223
+ export { MatStep, MatStepContent, MatStepHeader, MatStepLabel, MatStepper, MatStepperIcon, MatStepperIntl, MatStepperModule, MatStepperNext, MatStepperPrevious };
251
224
  export type { MatStepperIconContext };
package/tabs/index.d.ts CHANGED
@@ -176,13 +176,6 @@ interface _MatInkBarPositioner {
176
176
  width: string;
177
177
  };
178
178
  }
179
- /**
180
- * The default positioner function for the MatInkBar.
181
- * @docs-private
182
- * @deprecated No longer used, will be removed.
183
- * @breaking-change 21.0.0
184
- */
185
- declare function _MAT_INK_BAR_POSITIONER_FACTORY(): _MatInkBarPositioner;
186
179
  /** Injection token for the MatInkBar's Positioner. */
187
180
  declare const _MAT_INK_BAR_POSITIONER: InjectionToken<_MatInkBarPositioner>;
188
181
 
@@ -892,15 +885,5 @@ interface MatTabsConfig {
892
885
  /** Injection token that can be used to provide the default options the tabs module. */
893
886
  declare const MAT_TABS_CONFIG: InjectionToken<MatTabsConfig>;
894
887
 
895
- /**
896
- * Animations used by the Material tabs.
897
- * @docs-private
898
- * @deprecated No longer used, will be removed.
899
- * @breaking-change 21.0.0.
900
- */
901
- declare const matTabsAnimations: {
902
- readonly translateTab: any;
903
- };
904
-
905
- export { MAT_TAB, MAT_TABS_CONFIG, MAT_TAB_CONTENT, MAT_TAB_GROUP, MAT_TAB_LABEL, MatInkBar, MatPaginatedTabHeader, MatTab, MatTabBody, MatTabBodyPortal, MatTabChangeEvent, MatTabContent, MatTabGroup, MatTabHeader, MatTabLabel, MatTabLabelWrapper, MatTabLink, MatTabNav, MatTabNavPanel, MatTabsModule, _MAT_INK_BAR_POSITIONER, _MAT_INK_BAR_POSITIONER_FACTORY, matTabsAnimations };
888
+ export { MAT_TAB, MAT_TABS_CONFIG, MAT_TAB_CONTENT, MAT_TAB_GROUP, MAT_TAB_LABEL, MatInkBar, MatPaginatedTabHeader, MatTab, MatTabBody, MatTabBodyPortal, MatTabChangeEvent, MatTabContent, MatTabGroup, MatTabHeader, MatTabLabel, MatTabLabelWrapper, MatTabLink, MatTabNav, MatTabNavPanel, MatTabsModule, _MAT_INK_BAR_POSITIONER };
906
889
  export type { MatTabBodyOriginState, MatTabBodyPositionState, MatTabGroupBaseHeader, MatTabHeaderPosition, MatTabsConfig, ScrollDirection, _MatInkBarPositioner };
@@ -1,21 +1,307 @@
1
- export { MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY, MAT_TOOLTIP_SCROLL_STRATEGY, MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY, MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER, MatTooltip, MatTooltipDefaultOptions, MatTooltipModule, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, TooltipPosition, TooltipTouchGestures, TooltipVisibility, getMatTooltipInvalidPositionError } from '../tooltip-module.d.js';
2
- import '@angular/core';
3
- import '@angular/cdk/a11y';
4
- import '@angular/cdk/overlay';
5
- import '../common-module.d.js';
6
- import '@angular/cdk/bidi';
7
- import '@angular/cdk/coercion';
8
- import 'rxjs';
9
- import '@angular/cdk/scrolling';
1
+ import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
2
+ import * as i0 from '@angular/core';
3
+ import { InjectionToken, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
4
+ import { Directionality } from '@angular/cdk/bidi';
5
+ import * as i2 from '@angular/cdk/overlay';
6
+ import { ScrollStrategy, OverlayRef, ConnectedPosition, OriginConnectionPosition, OverlayConnectionPosition } from '@angular/cdk/overlay';
7
+ import { Observable } from 'rxjs';
8
+ import * as i1 from '@angular/cdk/a11y';
9
+ import { MatCommonModule } from '../common-module.d.js';
10
+ import * as i5 from '@angular/cdk/scrolling';
10
11
 
12
+ /** Possible positions for a tooltip. */
13
+ type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
11
14
  /**
12
- * Animations used by MatTooltip.
15
+ * Options for how the tooltip trigger should handle touch gestures.
16
+ * See `MatTooltip.touchGestures` for more information.
17
+ */
18
+ type TooltipTouchGestures = 'auto' | 'on' | 'off';
19
+ /** Possible visibility states of a tooltip. */
20
+ type TooltipVisibility = 'initial' | 'visible' | 'hidden';
21
+ /** Time in ms to throttle repositioning after scroll events. */
22
+ declare const SCROLL_THROTTLE_MS = 20;
23
+ /**
24
+ * Creates an error to be thrown if the user supplied an invalid tooltip position.
25
+ * @docs-private
26
+ */
27
+ declare function getMatTooltipInvalidPositionError(position: string): Error;
28
+ /** Injection token that determines the scroll handling while a tooltip is visible. */
29
+ declare const MAT_TOOLTIP_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
30
+ /** Injection token to be used to override the default options for `matTooltip`. */
31
+ declare const MAT_TOOLTIP_DEFAULT_OPTIONS: InjectionToken<MatTooltipDefaultOptions>;
32
+ /** Default `matTooltip` options that can be overridden. */
33
+ interface MatTooltipDefaultOptions {
34
+ /** Default delay when the tooltip is shown. */
35
+ showDelay: number;
36
+ /** Default delay when the tooltip is hidden. */
37
+ hideDelay: number;
38
+ /** Default delay when hiding the tooltip on a touch device. */
39
+ touchendHideDelay: number;
40
+ /** Time between the user putting the pointer on a tooltip trigger and the long press event being fired on a touch device. */
41
+ touchLongPressShowDelay?: number;
42
+ /** Default touch gesture handling for tooltips. */
43
+ touchGestures?: TooltipTouchGestures;
44
+ /** Default position for tooltips. */
45
+ position?: TooltipPosition;
46
+ /**
47
+ * Default value for whether tooltips should be positioned near the click or touch origin
48
+ * instead of outside the element bounding box.
49
+ */
50
+ positionAtOrigin?: boolean;
51
+ /** Disables the ability for the user to interact with the tooltip element. */
52
+ disableTooltipInteractivity?: boolean;
53
+ /**
54
+ * Default classes to be applied to the tooltip. These default classes will not be applied if
55
+ * `tooltipClass` is defined directly on the tooltip element, as it will override the default.
56
+ */
57
+ tooltipClass?: string | string[];
58
+ }
59
+ /**
60
+ * CSS class that will be attached to the overlay panel.
61
+ * @deprecated
62
+ * @breaking-change 13.0.0 remove this variable
63
+ */
64
+ declare const TOOLTIP_PANEL_CLASS = "mat-mdc-tooltip-panel";
65
+ /**
66
+ * Directive that attaches a material design tooltip to the host element. Animates the showing and
67
+ * hiding of a tooltip provided position (defaults to below the element).
68
+ *
69
+ * https://material.io/design/components/tooltips.html
70
+ */
71
+ declare class MatTooltip implements OnDestroy, AfterViewInit {
72
+ private _elementRef;
73
+ private _ngZone;
74
+ private _platform;
75
+ private _ariaDescriber;
76
+ private _focusMonitor;
77
+ protected _dir: Directionality;
78
+ private _injector;
79
+ private _viewContainerRef;
80
+ private _animationsDisabled;
81
+ private _defaultOptions;
82
+ _overlayRef: OverlayRef | null;
83
+ _tooltipInstance: TooltipComponent | null;
84
+ _overlayPanelClass: string[] | undefined;
85
+ private _portal;
86
+ private _position;
87
+ private _positionAtOrigin;
88
+ private _disabled;
89
+ private _tooltipClass;
90
+ private _viewInitialized;
91
+ private _pointerExitEventsInitialized;
92
+ private readonly _tooltipComponent;
93
+ private _viewportMargin;
94
+ private _currentPosition;
95
+ private readonly _cssClassPrefix;
96
+ private _ariaDescriptionPending;
97
+ private _dirSubscribed;
98
+ /** Allows the user to define the position of the tooltip relative to the parent element */
99
+ get position(): TooltipPosition;
100
+ set position(value: TooltipPosition);
101
+ /**
102
+ * Whether tooltip should be relative to the click or touch origin
103
+ * instead of outside the element bounding box.
104
+ */
105
+ get positionAtOrigin(): boolean;
106
+ set positionAtOrigin(value: BooleanInput);
107
+ /** Disables the display of the tooltip. */
108
+ get disabled(): boolean;
109
+ set disabled(value: BooleanInput);
110
+ /** The default delay in ms before showing the tooltip after show is called */
111
+ get showDelay(): number;
112
+ set showDelay(value: NumberInput);
113
+ private _showDelay;
114
+ /** The default delay in ms before hiding the tooltip after hide is called */
115
+ get hideDelay(): number;
116
+ set hideDelay(value: NumberInput);
117
+ private _hideDelay;
118
+ /**
119
+ * How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
120
+ * uses a long press gesture to show and hide, however it can conflict with the native browser
121
+ * gestures. To work around the conflict, Angular Material disables native gestures on the
122
+ * trigger, but that might not be desirable on particular elements (e.g. inputs and draggable
123
+ * elements). The different values for this option configure the touch event handling as follows:
124
+ * - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native
125
+ * browser gestures on particular elements. In particular, it allows text selection on inputs
126
+ * and textareas, and preserves the native browser dragging on elements marked as `draggable`.
127
+ * - `on` - Enables touch gestures for all elements and disables native
128
+ * browser gestures with no exceptions.
129
+ * - `off` - Disables touch gestures. Note that this will prevent the tooltip from
130
+ * showing on touch devices.
131
+ */
132
+ touchGestures: TooltipTouchGestures;
133
+ /** The message to be displayed in the tooltip */
134
+ get message(): string;
135
+ set message(value: string | null | undefined);
136
+ private _message;
137
+ /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
138
+ get tooltipClass(): string | string[] | Set<string> | {
139
+ [key: string]: any;
140
+ };
141
+ set tooltipClass(value: string | string[] | Set<string> | {
142
+ [key: string]: any;
143
+ });
144
+ /** Manually-bound passive event listeners. */
145
+ private readonly _passiveListeners;
146
+ /** Timer started at the last `touchstart` event. */
147
+ private _touchstartTimeout;
148
+ /** Emits when the component is destroyed. */
149
+ private readonly _destroyed;
150
+ /** Whether ngOnDestroyed has been called. */
151
+ private _isDestroyed;
152
+ constructor(...args: unknown[]);
153
+ ngAfterViewInit(): void;
154
+ /**
155
+ * Dispose the tooltip when destroyed.
156
+ */
157
+ ngOnDestroy(): void;
158
+ /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
159
+ show(delay?: number, origin?: {
160
+ x: number;
161
+ y: number;
162
+ }): void;
163
+ /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
164
+ hide(delay?: number): void;
165
+ /** Shows/hides the tooltip */
166
+ toggle(origin?: {
167
+ x: number;
168
+ y: number;
169
+ }): void;
170
+ /** Returns true if the tooltip is currently visible to the user */
171
+ _isTooltipVisible(): boolean;
172
+ /** Create the overlay config and position strategy */
173
+ private _createOverlay;
174
+ /** Detaches the currently-attached tooltip. */
175
+ private _detach;
176
+ /** Updates the position of the current tooltip. */
177
+ private _updatePosition;
178
+ /** Adds the configured offset to a position. Used as a hook for child classes. */
179
+ protected _addOffset(position: ConnectedPosition): ConnectedPosition;
180
+ /**
181
+ * Returns the origin position and a fallback position based on the user's position preference.
182
+ * The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).
183
+ */
184
+ _getOrigin(): {
185
+ main: OriginConnectionPosition;
186
+ fallback: OriginConnectionPosition;
187
+ };
188
+ /** Returns the overlay position and a fallback position based on the user's preference */
189
+ _getOverlayPosition(): {
190
+ main: OverlayConnectionPosition;
191
+ fallback: OverlayConnectionPosition;
192
+ };
193
+ /** Updates the tooltip message and repositions the overlay according to the new message length */
194
+ private _updateTooltipMessage;
195
+ /** Updates the tooltip class */
196
+ private _setTooltipClass;
197
+ /** Inverts an overlay position. */
198
+ private _invertPosition;
199
+ /** Updates the class on the overlay panel based on the current position of the tooltip. */
200
+ private _updateCurrentPositionClass;
201
+ /** Binds the pointer events to the tooltip trigger. */
202
+ private _setupPointerEnterEventsIfNeeded;
203
+ private _setupPointerExitEventsIfNeeded;
204
+ private _addListeners;
205
+ private _platformSupportsMouseEvents;
206
+ /** Listener for the `wheel` event on the element. */
207
+ private _wheelListener;
208
+ /** Disables the native browser gestures, based on how the tooltip has been configured. */
209
+ private _disableNativeGesturesIfNecessary;
210
+ /** Updates the tooltip's ARIA description based on it current state. */
211
+ private _syncAriaDescription;
212
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatTooltip, never>;
213
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatTooltip, "[matTooltip]", ["matTooltip"], { "position": { "alias": "matTooltipPosition"; "required": false; }; "positionAtOrigin": { "alias": "matTooltipPositionAtOrigin"; "required": false; }; "disabled": { "alias": "matTooltipDisabled"; "required": false; }; "showDelay": { "alias": "matTooltipShowDelay"; "required": false; }; "hideDelay": { "alias": "matTooltipHideDelay"; "required": false; }; "touchGestures": { "alias": "matTooltipTouchGestures"; "required": false; }; "message": { "alias": "matTooltip"; "required": false; }; "tooltipClass": { "alias": "matTooltipClass"; "required": false; }; }, {}, never, never, true, never>;
214
+ }
215
+ /**
216
+ * Internal component that wraps the tooltip's content.
13
217
  * @docs-private
14
- * @deprecated No longer being used, to be removed.
15
- * @breaking-change 21.0.0
16
218
  */
17
- declare const matTooltipAnimations: {
18
- readonly tooltipState: any;
19
- };
219
+ declare class TooltipComponent implements OnDestroy {
220
+ private _changeDetectorRef;
221
+ protected _elementRef: ElementRef<HTMLElement>;
222
+ _isMultiline: boolean;
223
+ /** Message to display in the tooltip */
224
+ message: string;
225
+ /** Classes to be added to the tooltip. Supports the same syntax as `ngClass`. */
226
+ tooltipClass: string | string[] | Set<string> | {
227
+ [key: string]: any;
228
+ };
229
+ /** The timeout ID of any current timer set to show the tooltip */
230
+ private _showTimeoutId;
231
+ /** The timeout ID of any current timer set to hide the tooltip */
232
+ private _hideTimeoutId;
233
+ /** Element that caused the tooltip to open. */
234
+ _triggerElement: HTMLElement;
235
+ /** Amount of milliseconds to delay the closing sequence. */
236
+ _mouseLeaveHideDelay: number;
237
+ /** Whether animations are currently disabled. */
238
+ private _animationsDisabled;
239
+ /** Reference to the internal tooltip element. */
240
+ _tooltip: ElementRef<HTMLElement>;
241
+ /** Whether interactions on the page should close the tooltip */
242
+ private _closeOnInteraction;
243
+ /** Whether the tooltip is currently visible. */
244
+ private _isVisible;
245
+ /** Subject for notifying that the tooltip has been hidden from the view */
246
+ private readonly _onHide;
247
+ /** Name of the show animation and the class that toggles it. */
248
+ private readonly _showAnimation;
249
+ /** Name of the hide animation and the class that toggles it. */
250
+ private readonly _hideAnimation;
251
+ constructor(...args: unknown[]);
252
+ /**
253
+ * Shows the tooltip with an animation originating from the provided origin
254
+ * @param delay Amount of milliseconds to the delay showing the tooltip.
255
+ */
256
+ show(delay: number): void;
257
+ /**
258
+ * Begins the animation to hide the tooltip after the provided delay in ms.
259
+ * @param delay Amount of milliseconds to delay showing the tooltip.
260
+ */
261
+ hide(delay: number): void;
262
+ /** Returns an observable that notifies when the tooltip has been hidden from view. */
263
+ afterHidden(): Observable<void>;
264
+ /** Whether the tooltip is being displayed. */
265
+ isVisible(): boolean;
266
+ ngOnDestroy(): void;
267
+ /**
268
+ * Interactions on the HTML body should close the tooltip immediately as defined in the
269
+ * material design spec.
270
+ * https://material.io/design/components/tooltips.html#behavior
271
+ */
272
+ _handleBodyInteraction(): void;
273
+ /**
274
+ * Marks that the tooltip needs to be checked in the next change detection run.
275
+ * Mainly used for rendering the initial text before positioning a tooltip, which
276
+ * can be problematic in components with OnPush change detection.
277
+ */
278
+ _markForCheck(): void;
279
+ _handleMouseLeave({ relatedTarget }: MouseEvent): void;
280
+ /**
281
+ * Callback for when the timeout in this.show() gets completed.
282
+ * This method is only needed by the mdc-tooltip, and so it is only implemented
283
+ * in the mdc-tooltip, not here.
284
+ */
285
+ protected _onShow(): void;
286
+ /** Whether the tooltip text has overflown to the next line */
287
+ private _isTooltipMultiline;
288
+ /** Event listener dispatched when an animation on the tooltip finishes. */
289
+ _handleAnimationEnd({ animationName }: AnimationEvent): void;
290
+ /** Cancels any pending animation sequences. */
291
+ _cancelPendingAnimations(): void;
292
+ /** Handles the cleanup after an animation has finished. */
293
+ private _finalizeAnimation;
294
+ /** Toggles the visibility of the tooltip element. */
295
+ private _toggleVisibility;
296
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
297
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "mat-tooltip-component", never, {}, {}, never, never, true, never>;
298
+ }
299
+
300
+ declare class MatTooltipModule {
301
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatTooltipModule, never>;
302
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatTooltipModule, never, [typeof i1.A11yModule, typeof i2.OverlayModule, typeof MatCommonModule, typeof MatTooltip, typeof TooltipComponent], [typeof MatTooltip, typeof TooltipComponent, typeof MatCommonModule, typeof i5.CdkScrollableModule]>;
303
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatTooltipModule>;
304
+ }
20
305
 
21
- export { matTooltipAnimations };
306
+ export { MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_SCROLL_STRATEGY, MatTooltip, MatTooltipModule, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, getMatTooltipInvalidPositionError };
307
+ export type { MatTooltipDefaultOptions, TooltipPosition, TooltipTouchGestures, TooltipVisibility };