@angular/material 22.0.0-next.2 → 22.0.0-next.4

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 (206) hide show
  1. package/core/tokens/_system.scss +14 -8
  2. package/fesm2022/_animation-chunk.mjs.map +1 -1
  3. package/fesm2022/_date-formats-chunk.mjs.map +1 -1
  4. package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
  5. package/fesm2022/_error-options-chunk.mjs +6 -6
  6. package/fesm2022/_error-options-chunk.mjs.map +1 -1
  7. package/fesm2022/_error-state-chunk.mjs.map +1 -1
  8. package/fesm2022/_form-field-chunk.mjs +33 -37
  9. package/fesm2022/_form-field-chunk.mjs.map +1 -1
  10. package/fesm2022/_icon-button-chunk.mjs +9 -9
  11. package/fesm2022/_icon-button-chunk.mjs.map +1 -1
  12. package/fesm2022/_icon-registry-chunk.mjs +4 -4
  13. package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
  14. package/fesm2022/_input-harness-chunk.mjs.map +1 -1
  15. package/fesm2022/_internal-form-field-chunk.mjs +6 -6
  16. package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
  17. package/fesm2022/_line-chunk.mjs +7 -7
  18. package/fesm2022/_line-chunk.mjs.map +1 -1
  19. package/fesm2022/_option-chunk.mjs +11 -11
  20. package/fesm2022/_option-chunk.mjs.map +1 -1
  21. package/fesm2022/_option-harness-chunk.mjs.map +1 -1
  22. package/fesm2022/_option-module-chunk.mjs +4 -4
  23. package/fesm2022/_option-module-chunk.mjs.map +1 -1
  24. package/fesm2022/_pseudo-checkbox-chunk.mjs +6 -8
  25. package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
  26. package/fesm2022/_pseudo-checkbox-module-chunk.mjs +4 -4
  27. package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
  28. package/fesm2022/_public-api-chunk.mjs.map +1 -1
  29. package/fesm2022/_ripple-chunk.mjs +10 -10
  30. package/fesm2022/_ripple-chunk.mjs.map +1 -1
  31. package/fesm2022/_ripple-loader-chunk.mjs +3 -3
  32. package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
  33. package/fesm2022/_ripple-module-chunk.mjs +4 -4
  34. package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
  35. package/fesm2022/_structural-styles-chunk.mjs +6 -6
  36. package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
  37. package/fesm2022/_tooltip-chunk.mjs +18 -16
  38. package/fesm2022/_tooltip-chunk.mjs.map +1 -1
  39. package/fesm2022/autocomplete-testing.mjs.map +1 -1
  40. package/fesm2022/autocomplete.mjs +22 -26
  41. package/fesm2022/autocomplete.mjs.map +1 -1
  42. package/fesm2022/badge-testing.mjs.map +1 -1
  43. package/fesm2022/badge.mjs +13 -13
  44. package/fesm2022/badge.mjs.map +1 -1
  45. package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
  46. package/fesm2022/bottom-sheet.mjs +18 -20
  47. package/fesm2022/bottom-sheet.mjs.map +1 -1
  48. package/fesm2022/button-testing.mjs.map +1 -1
  49. package/fesm2022/button-toggle-testing.mjs.map +1 -1
  50. package/fesm2022/button-toggle.mjs +14 -14
  51. package/fesm2022/button-toggle.mjs.map +1 -1
  52. package/fesm2022/button.mjs +20 -20
  53. package/fesm2022/button.mjs.map +1 -1
  54. package/fesm2022/card-testing.mjs.map +1 -1
  55. package/fesm2022/card.mjs +49 -49
  56. package/fesm2022/card.mjs.map +1 -1
  57. package/fesm2022/checkbox-testing.mjs.map +1 -1
  58. package/fesm2022/checkbox.mjs +10 -10
  59. package/fesm2022/checkbox.mjs.map +1 -1
  60. package/fesm2022/chips-testing.mjs.map +1 -1
  61. package/fesm2022/chips.mjs +66 -70
  62. package/fesm2022/chips.mjs.map +1 -1
  63. package/fesm2022/core-testing.mjs +1 -1
  64. package/fesm2022/core-testing.mjs.map +1 -1
  65. package/fesm2022/core.mjs +25 -25
  66. package/fesm2022/core.mjs.map +1 -1
  67. package/fesm2022/datepicker-testing.mjs.map +1 -1
  68. package/fesm2022/datepicker.mjs +99 -105
  69. package/fesm2022/datepicker.mjs.map +1 -1
  70. package/fesm2022/dialog-testing.mjs +3 -3
  71. package/fesm2022/dialog-testing.mjs.map +1 -1
  72. package/fesm2022/dialog.mjs +33 -37
  73. package/fesm2022/dialog.mjs.map +1 -1
  74. package/fesm2022/divider-testing.mjs.map +1 -1
  75. package/fesm2022/divider.mjs +10 -10
  76. package/fesm2022/divider.mjs.map +1 -1
  77. package/fesm2022/expansion-testing.mjs.map +1 -1
  78. package/fesm2022/expansion.mjs +35 -37
  79. package/fesm2022/expansion.mjs.map +1 -1
  80. package/fesm2022/form-field-testing-control.mjs.map +1 -1
  81. package/fesm2022/form-field-testing.mjs +1 -1
  82. package/fesm2022/form-field-testing.mjs.map +1 -1
  83. package/fesm2022/form-field.mjs +5 -5
  84. package/fesm2022/form-field.mjs.map +1 -1
  85. package/fesm2022/grid-list-testing.mjs.map +1 -1
  86. package/fesm2022/grid-list.mjs +29 -35
  87. package/fesm2022/grid-list.mjs.map +1 -1
  88. package/fesm2022/icon-testing.mjs +8 -8
  89. package/fesm2022/icon-testing.mjs.map +1 -1
  90. package/fesm2022/icon.mjs +11 -11
  91. package/fesm2022/icon.mjs.map +1 -1
  92. package/fesm2022/input-testing.mjs.map +1 -1
  93. package/fesm2022/input.mjs +8 -8
  94. package/fesm2022/input.mjs.map +1 -1
  95. package/fesm2022/list-testing.mjs.map +1 -1
  96. package/fesm2022/list.mjs +67 -73
  97. package/fesm2022/list.mjs.map +1 -1
  98. package/fesm2022/menu-testing.mjs.map +1 -1
  99. package/fesm2022/menu.mjs +28 -30
  100. package/fesm2022/menu.mjs.map +1 -1
  101. package/fesm2022/paginator-testing.mjs.map +1 -1
  102. package/fesm2022/paginator.mjs +17 -17
  103. package/fesm2022/paginator.mjs.map +1 -1
  104. package/fesm2022/progress-bar-testing.mjs.map +1 -1
  105. package/fesm2022/progress-bar.mjs +10 -10
  106. package/fesm2022/progress-bar.mjs.map +1 -1
  107. package/fesm2022/progress-spinner-testing.mjs.map +1 -1
  108. package/fesm2022/progress-spinner.mjs +10 -10
  109. package/fesm2022/progress-spinner.mjs.map +1 -1
  110. package/fesm2022/radio-testing.mjs.map +1 -1
  111. package/fesm2022/radio.mjs +15 -17
  112. package/fesm2022/radio.mjs.map +1 -1
  113. package/fesm2022/select-testing.mjs.map +1 -1
  114. package/fesm2022/select.mjs +26 -26
  115. package/fesm2022/select.mjs.map +1 -1
  116. package/fesm2022/sidenav-testing.mjs.map +1 -1
  117. package/fesm2022/sidenav.mjs +35 -45
  118. package/fesm2022/sidenav.mjs.map +1 -1
  119. package/fesm2022/slide-toggle-testing.mjs.map +1 -1
  120. package/fesm2022/slide-toggle.mjs +11 -11
  121. package/fesm2022/slide-toggle.mjs.map +1 -1
  122. package/fesm2022/slider-testing.mjs.map +1 -1
  123. package/fesm2022/slider.mjs +41 -43
  124. package/fesm2022/slider.mjs.map +1 -1
  125. package/fesm2022/snack-bar-testing.mjs.map +1 -1
  126. package/fesm2022/snack-bar.mjs +32 -36
  127. package/fesm2022/snack-bar.mjs.map +1 -1
  128. package/fesm2022/sort-testing.mjs.map +1 -1
  129. package/fesm2022/sort.mjs +18 -18
  130. package/fesm2022/sort.mjs.map +1 -1
  131. package/fesm2022/stepper-testing.mjs.map +1 -1
  132. package/fesm2022/stepper.mjs +43 -47
  133. package/fesm2022/stepper.mjs.map +1 -1
  134. package/fesm2022/table-testing.mjs.map +1 -1
  135. package/fesm2022/table.mjs +60 -60
  136. package/fesm2022/table.mjs.map +1 -1
  137. package/fesm2022/tabs-testing.mjs.map +1 -1
  138. package/fesm2022/tabs.mjs +62 -68
  139. package/fesm2022/tabs.mjs.map +1 -1
  140. package/fesm2022/timepicker-testing.mjs.map +1 -1
  141. package/fesm2022/timepicker.mjs +17 -17
  142. package/fesm2022/timepicker.mjs.map +1 -1
  143. package/fesm2022/toolbar-testing.mjs.map +1 -1
  144. package/fesm2022/toolbar.mjs +15 -17
  145. package/fesm2022/toolbar.mjs.map +1 -1
  146. package/fesm2022/tooltip-testing.mjs.map +1 -1
  147. package/fesm2022/tooltip.mjs +4 -4
  148. package/fesm2022/tooltip.mjs.map +1 -1
  149. package/fesm2022/tree-testing.mjs.map +1 -1
  150. package/fesm2022/tree.mjs +31 -31
  151. package/fesm2022/tree.mjs.map +1 -1
  152. package/package.json +2 -2
  153. package/prebuilt-themes/azure-blue.css +167 -1
  154. package/prebuilt-themes/cyan-orange.css +167 -1
  155. package/prebuilt-themes/deeppurple-amber.css +2301 -1
  156. package/prebuilt-themes/indigo-pink.css +2301 -1
  157. package/prebuilt-themes/magenta-violet.css +167 -1
  158. package/prebuilt-themes/pink-bluegrey.css +2301 -1
  159. package/prebuilt-themes/purple-green.css +2301 -1
  160. package/prebuilt-themes/rose-red.css +167 -1
  161. package/schematics/ng-add/index.js +1 -1
  162. package/types/_badge-chunk.d.ts +1 -1
  163. package/types/_button-toggle-chunk.d.ts +3 -3
  164. package/types/_dialog-chunk.d.ts +1 -1
  165. package/types/_form-field-chunk.d.ts +2 -4
  166. package/types/_icon-module-chunk.d.ts +1 -1
  167. package/types/_icon-registry-chunk.d.ts +1 -1
  168. package/types/_option-chunk.d.ts +2 -2
  169. package/types/_option-parent-chunk.d.ts +1 -1
  170. package/types/_paginator-chunk.d.ts +1 -1
  171. package/types/_progress-spinner-chunk.d.ts +1 -1
  172. package/types/_pseudo-checkbox-module-chunk.d.ts +0 -1
  173. package/types/_ripple-chunk.d.ts +2 -2
  174. package/types/autocomplete.d.ts +1 -3
  175. package/types/bottom-sheet.d.ts +1 -2
  176. package/types/button.d.ts +5 -5
  177. package/types/card.d.ts +1 -1
  178. package/types/checkbox.d.ts +1 -1
  179. package/types/chips.d.ts +7 -9
  180. package/types/core.d.ts +1 -1
  181. package/types/datepicker.d.ts +13 -16
  182. package/types/dialog-testing.d.ts +1 -1
  183. package/types/dialog.d.ts +1 -3
  184. package/types/expansion.d.ts +2 -3
  185. package/types/grid-list.d.ts +1 -4
  186. package/types/input.d.ts +1 -1
  187. package/types/list.d.ts +2 -5
  188. package/types/menu.d.ts +3 -4
  189. package/types/paginator.d.ts +0 -1
  190. package/types/progress-bar.d.ts +1 -1
  191. package/types/radio.d.ts +2 -3
  192. package/types/select.d.ts +3 -3
  193. package/types/sidenav-testing.d.ts +1 -1
  194. package/types/sidenav.d.ts +3 -4
  195. package/types/slide-toggle.d.ts +1 -1
  196. package/types/slider.d.ts +8 -13
  197. package/types/snack-bar.d.ts +1 -3
  198. package/types/sort.d.ts +1 -1
  199. package/types/stepper.d.ts +2 -4
  200. package/types/table.d.ts +2 -4
  201. package/types/tabs.d.ts +7 -9
  202. package/types/timepicker.d.ts +1 -1
  203. package/types/toolbar.d.ts +0 -1
  204. package/types/tooltip.d.ts +317 -7
  205. package/types/tree.d.ts +3 -3
  206. package/types/_tooltip-chunk.d.ts +0 -315
package/types/tabs.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { InjectionToken, TemplateRef, OnInit, OnChanges, OnDestroy, SimpleChanges, QueryList, ElementRef, AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
3
3
  import { CdkPortal, TemplatePortal, CdkPortalOutlet } from '@angular/cdk/portal';
4
4
  import { Subject, BehaviorSubject } from 'rxjs';
5
- import { FocusKeyManager, FocusableOption, FocusOrigin } from '@angular/cdk/a11y';
5
+ import { FocusableOption, FocusKeyManager, FocusOrigin } from '@angular/cdk/a11y';
6
6
  import * as i2 from '@angular/cdk/bidi';
7
7
  import { Direction } from '@angular/cdk/bidi';
8
8
  import { ThemePalette } from './_palette-chunk.js';
@@ -18,7 +18,6 @@ declare const MAT_TAB_CONTENT: InjectionToken<MatTabContent>;
18
18
  /** Decorates the `ng-template` tags and reads out the template from it. */
19
19
  declare class MatTabContent {
20
20
  template: TemplateRef<any>;
21
- constructor(...args: unknown[]);
22
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MatTabContent, never>;
23
22
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabContent, "[matTabContent]", never, {}, {}, never, never, true, never>;
24
23
  }
@@ -99,7 +98,7 @@ declare class MatTab implements OnInit, OnChanges, OnDestroy {
99
98
  * Whether the tab is currently active.
100
99
  */
101
100
  isActive: boolean;
102
- constructor(...args: unknown[]);
101
+ constructor();
103
102
  ngOnChanges(changes: SimpleChanges<this>): void;
104
103
  ngOnDestroy(): void;
105
104
  ngOnInit(): void;
@@ -270,7 +269,7 @@ declare abstract class MatPaginatedTabHeader implements AfterContentChecked, Aft
270
269
  readonly selectFocusedIndex: EventEmitter<number>;
271
270
  /** Event emitted when a label is focused. */
272
271
  readonly indexFocused: EventEmitter<number>;
273
- constructor(...args: unknown[]);
272
+ constructor();
274
273
  /** Called when the user has selected an item via the keyboard. */
275
274
  protected abstract _itemSelected(event: KeyboardEvent): void;
276
275
  ngAfterViewInit(): void;
@@ -423,7 +422,6 @@ declare class MatTabBodyPortal extends CdkPortalOutlet implements OnInit, OnDest
423
422
  private _centeringSub;
424
423
  /** Subscription to events for when the tab body finishes leaving from center position. */
425
424
  private _leavingSub;
426
- constructor(...args: unknown[]);
427
425
  /** Set initial visibility or set up subscription for changing visibility. */
428
426
  ngOnInit(): void;
429
427
  /** Clean up centering subscription. */
@@ -497,7 +495,7 @@ declare class MatTabBody implements OnInit, OnDestroy {
497
495
  preserveContent: boolean;
498
496
  /** The shifted index position of the tab body, where zero represents the active center tab. */
499
497
  set position(position: number);
500
- constructor(...args: unknown[]);
498
+ constructor();
501
499
  ngOnInit(): void;
502
500
  ngOnDestroy(): void;
503
501
  /** Sets up the transition events. */
@@ -644,7 +642,7 @@ declare class MatTabGroup implements AfterViewInit, AfterContentInit, AfterConte
644
642
  private _groupId;
645
643
  /** Whether the tab group is rendered on the server. */
646
644
  protected _isServer: boolean;
647
- constructor(...args: unknown[]);
645
+ constructor();
648
646
  /**
649
647
  * After the content is checked, this component knows what tabs have been defined
650
648
  * and what the selected index should be. This is where we can know exactly what position
@@ -776,7 +774,7 @@ declare class MatTabNav extends MatPaginatedTabHeader implements AfterContentIni
776
774
  _nextPaginator: ElementRef<HTMLElement>;
777
775
  _previousPaginator: ElementRef<HTMLElement>;
778
776
  _inkBar: MatInkBar;
779
- constructor(...args: unknown[]);
777
+ constructor();
780
778
  protected _itemSelected(): void;
781
779
  ngAfterContentInit(): void;
782
780
  ngAfterViewInit(): void;
@@ -825,7 +823,7 @@ declare class MatTabLink extends InkBarItem implements AfterViewInit, OnDestroy,
825
823
  get rippleDisabled(): boolean;
826
824
  /** Unique id for the tab. */
827
825
  id: string;
828
- constructor(...args: unknown[]);
826
+ constructor();
829
827
  /** Focuses the tab link. */
830
828
  focus(): void;
831
829
  ngAfterViewInit(): void;
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Signal, ElementRef, OnDestroy, TemplateRef, InputSignalWithTransform, InputSignal, OutputEmitterRef, ModelSignal } from '@angular/core';
2
+ import { InjectionToken, OnDestroy, Signal, TemplateRef, InputSignalWithTransform, InputSignal, OutputEmitterRef, ElementRef, ModelSignal } from '@angular/core';
3
3
  import { MatOption } from './_option-chunk.js';
4
4
  import { MatOptionParentComponent } from './_option-parent-chunk.js';
5
5
  import { ScrollStrategy } from '@angular/cdk/overlay';
@@ -20,7 +20,6 @@ declare class MatToolbar implements AfterViewInit {
20
20
  color?: string | null;
21
21
  /** Reference to all toolbar row elements that have been projected. */
22
22
  _toolbarRows: QueryList<MatToolbarRow>;
23
- constructor(...args: unknown[]);
24
23
  ngAfterViewInit(): void;
25
24
  /**
26
25
  * Throws an exception when developers are attempting to combine the different toolbar row modes.
@@ -1,12 +1,321 @@
1
- import { MatTooltip, TooltipComponent } from './_tooltip-chunk.js';
2
- export { MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_SCROLL_STRATEGY, MatTooltipDefaultOptions, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipPosition, TooltipTouchGestures, TooltipVisibility, getMatTooltipInvalidPositionError } from './_tooltip-chunk.js';
1
+ import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
3
2
  import * as i0 from '@angular/core';
4
- import * as i1 from '@angular/cdk/a11y';
5
- import * as i2 from '@angular/cdk/overlay';
3
+ import { OnDestroy, AfterViewInit, ElementRef, InjectionToken } from '@angular/core';
6
4
  import * as i2$1 from '@angular/cdk/bidi';
5
+ import { Directionality } from '@angular/cdk/bidi';
6
+ import * as i2 from '@angular/cdk/overlay';
7
+ import { OverlayRef, ConnectedPosition, OriginConnectionPosition, OverlayConnectionPosition, ScrollStrategy } from '@angular/cdk/overlay';
8
+ import { Observable } from 'rxjs';
9
+ import * as i1 from '@angular/cdk/a11y';
7
10
  import * as i1$1 from '@angular/cdk/scrolling';
8
- import '@angular/cdk/coercion';
9
- import 'rxjs';
11
+
12
+ /** Possible positions for a tooltip. */
13
+ type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
14
+ /**
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
+ * By default the tooltip attempts to detect whether the user's device is able to hover by
60
+ * consulting the `Platform` provider that was created a long time ago and is based on
61
+ * some data points that may not be entirely accurate anymore (e.g. user agent string and
62
+ * Android/iOS-specific APIs), however changing them will break existing users. You can use this
63
+ * config property to opt into a more modern detection mechanism.
64
+ *
65
+ * The supported values include:
66
+ *
67
+ * - `false` - Default value. Detection is based on the `Platform` provider.
68
+ * - `true` - The tooltip will use the `any-hover` media query for more accurate detection.
69
+ * Note that this may break existing unit tests running in a headless browser.
70
+ * - `() => boolean` - If the automatic detection doesn't work properly in your case (e.g. the
71
+ * `any-hover` media query isn't supported) and you're able to detect more accurately, you can
72
+ * pass in a function that will be used for detection instead. It should return `true` if the
73
+ * device **has the ability to hover**, or `false` if it cannot.
74
+ */
75
+ detectHoverCapability?: boolean | (() => boolean);
76
+ }
77
+ /**
78
+ * CSS class that will be attached to the overlay panel.
79
+ * @deprecated
80
+ * @breaking-change 13.0.0 remove this variable
81
+ */
82
+ declare const TOOLTIP_PANEL_CLASS = "mat-mdc-tooltip-panel";
83
+ /**
84
+ * Directive that attaches a material design tooltip to the host element. Animates the showing and
85
+ * hiding of a tooltip provided position (defaults to below the element).
86
+ *
87
+ * https://material.io/design/components/tooltips.html
88
+ */
89
+ declare class MatTooltip implements OnDestroy, AfterViewInit {
90
+ private _elementRef;
91
+ private _ngZone;
92
+ private _platform;
93
+ private _ariaDescriber;
94
+ private _focusMonitor;
95
+ protected _dir: Directionality;
96
+ private _injector;
97
+ private _viewContainerRef;
98
+ private _mediaMatcher;
99
+ private _document;
100
+ private _renderer;
101
+ private _animationsDisabled;
102
+ private _defaultOptions;
103
+ _overlayRef: OverlayRef | null;
104
+ _tooltipInstance: TooltipComponent | null;
105
+ _overlayPanelClass: string[] | undefined;
106
+ private _portal;
107
+ private _position;
108
+ private _positionAtOrigin;
109
+ private _disabled;
110
+ private _tooltipClass;
111
+ private _viewInitialized;
112
+ private _pointerExitEventsInitialized;
113
+ private readonly _tooltipComponent;
114
+ private _viewportMargin;
115
+ private _currentPosition;
116
+ private readonly _cssClassPrefix;
117
+ private _ariaDescriptionPending;
118
+ private _dirSubscribed;
119
+ /** Allows the user to define the position of the tooltip relative to the parent element */
120
+ get position(): TooltipPosition;
121
+ set position(value: TooltipPosition);
122
+ /**
123
+ * Whether tooltip should be relative to the click or touch origin
124
+ * instead of outside the element bounding box.
125
+ */
126
+ get positionAtOrigin(): boolean;
127
+ set positionAtOrigin(value: BooleanInput);
128
+ /** Disables the display of the tooltip. */
129
+ get disabled(): boolean;
130
+ set disabled(value: BooleanInput);
131
+ /** The default delay in ms before showing the tooltip after show is called */
132
+ get showDelay(): number;
133
+ set showDelay(value: NumberInput);
134
+ private _showDelay;
135
+ /** The default delay in ms before hiding the tooltip after hide is called */
136
+ get hideDelay(): number;
137
+ set hideDelay(value: NumberInput);
138
+ private _hideDelay;
139
+ /**
140
+ * How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
141
+ * uses a long press gesture to show and hide, however it can conflict with the native browser
142
+ * gestures. To work around the conflict, Angular Material disables native gestures on the
143
+ * trigger, but that might not be desirable on particular elements (e.g. inputs and draggable
144
+ * elements). The different values for this option configure the touch event handling as follows:
145
+ * - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native
146
+ * browser gestures on particular elements. In particular, it allows text selection on inputs
147
+ * and textareas, and preserves the native browser dragging on elements marked as `draggable`.
148
+ * - `on` - Enables touch gestures for all elements and disables native
149
+ * browser gestures with no exceptions.
150
+ * - `off` - Disables touch gestures. Note that this will prevent the tooltip from
151
+ * showing on touch devices.
152
+ */
153
+ touchGestures: TooltipTouchGestures;
154
+ /** The message to be displayed in the tooltip */
155
+ get message(): string;
156
+ set message(value: string | number | null | undefined);
157
+ private _message;
158
+ /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
159
+ get tooltipClass(): string | string[] | Set<string> | {
160
+ [key: string]: unknown;
161
+ };
162
+ set tooltipClass(value: string | string[] | Set<string> | {
163
+ [key: string]: unknown;
164
+ });
165
+ /** Manually-bound passive event listeners. */
166
+ private readonly _eventCleanups;
167
+ /** Timer started at the last `touchstart` event. */
168
+ private _touchstartTimeout;
169
+ /** Emits when the component is destroyed. */
170
+ private readonly _destroyed;
171
+ /** Whether ngOnDestroyed has been called. */
172
+ private _isDestroyed;
173
+ constructor();
174
+ ngAfterViewInit(): void;
175
+ /**
176
+ * Dispose the tooltip when destroyed.
177
+ */
178
+ ngOnDestroy(): void;
179
+ /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
180
+ show(delay?: number, origin?: {
181
+ x: number;
182
+ y: number;
183
+ }): void;
184
+ /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
185
+ hide(delay?: number): void;
186
+ /** Shows/hides the tooltip */
187
+ toggle(origin?: {
188
+ x: number;
189
+ y: number;
190
+ }): void;
191
+ /** Returns true if the tooltip is currently visible to the user */
192
+ _isTooltipVisible(): boolean;
193
+ /** Create the overlay config and position strategy */
194
+ private _createOverlay;
195
+ /** Detaches the currently-attached tooltip. */
196
+ private _detach;
197
+ /** Updates the position of the current tooltip. */
198
+ private _updatePosition;
199
+ /** Adds the configured offset to a position. Used as a hook for child classes. */
200
+ protected _addOffset(position: ConnectedPosition): ConnectedPosition;
201
+ /**
202
+ * Returns the origin position and a fallback position based on the user's position preference.
203
+ * The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).
204
+ */
205
+ _getOrigin(): {
206
+ main: OriginConnectionPosition;
207
+ fallback: OriginConnectionPosition;
208
+ };
209
+ /** Returns the overlay position and a fallback position based on the user's preference */
210
+ _getOverlayPosition(): {
211
+ main: OverlayConnectionPosition;
212
+ fallback: OverlayConnectionPosition;
213
+ };
214
+ /** Updates the tooltip message and repositions the overlay according to the new message length */
215
+ private _updateTooltipMessage;
216
+ /** Updates the tooltip class */
217
+ private _setTooltipClass;
218
+ /** Inverts an overlay position. */
219
+ private _invertPosition;
220
+ /** Updates the class on the overlay panel based on the current position of the tooltip. */
221
+ private _updateCurrentPositionClass;
222
+ /** Binds the pointer events to the tooltip trigger. */
223
+ private _setupPointerEnterEventsIfNeeded;
224
+ private _setupPointerExitEventsIfNeeded;
225
+ private _addListener;
226
+ private _isTouchPlatform;
227
+ /** Disables the native browser gestures, based on how the tooltip has been configured. */
228
+ private _disableNativeGesturesIfNecessary;
229
+ /** Updates the tooltip's ARIA description based on it current state. */
230
+ private _syncAriaDescription;
231
+ /** Determines which events should be routed to the tooltip overlay. */
232
+ private _overlayEventPredicate;
233
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatTooltip, never>;
234
+ 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>;
235
+ }
236
+ /**
237
+ * Internal component that wraps the tooltip's content.
238
+ * @docs-private
239
+ */
240
+ declare class TooltipComponent implements OnDestroy {
241
+ private _changeDetectorRef;
242
+ protected _elementRef: ElementRef<HTMLElement>;
243
+ _isMultiline: boolean;
244
+ /** Message to display in the tooltip */
245
+ message: string;
246
+ /** Classes to be added to the tooltip. */
247
+ tooltipClass: string | string[] | {
248
+ [key: string]: unknown;
249
+ };
250
+ /** The timeout ID of any current timer set to show the tooltip */
251
+ private _showTimeoutId;
252
+ /** The timeout ID of any current timer set to hide the tooltip */
253
+ private _hideTimeoutId;
254
+ /** Element that caused the tooltip to open. */
255
+ _triggerElement: HTMLElement;
256
+ /** Amount of milliseconds to delay the closing sequence. */
257
+ _mouseLeaveHideDelay: number;
258
+ /** Whether animations are currently disabled. */
259
+ private _animationsDisabled;
260
+ /** Reference to the internal tooltip element. */
261
+ _tooltip: ElementRef<HTMLElement>;
262
+ /** Whether interactions on the page should close the tooltip */
263
+ private _closeOnInteraction;
264
+ /** Whether the tooltip is currently visible. */
265
+ private _isVisible;
266
+ /** Subject for notifying that the tooltip has been hidden from the view */
267
+ private readonly _onHide;
268
+ /** Name of the show animation and the class that toggles it. */
269
+ private readonly _showAnimation;
270
+ /** Name of the hide animation and the class that toggles it. */
271
+ private readonly _hideAnimation;
272
+ /**
273
+ * Shows the tooltip with an animation originating from the provided origin
274
+ * @param delay Amount of milliseconds to the delay showing the tooltip.
275
+ */
276
+ show(delay: number): void;
277
+ /**
278
+ * Begins the animation to hide the tooltip after the provided delay in ms.
279
+ * @param delay Amount of milliseconds to delay showing the tooltip.
280
+ */
281
+ hide(delay: number): void;
282
+ /** Returns an observable that notifies when the tooltip has been hidden from view. */
283
+ afterHidden(): Observable<void>;
284
+ /** Whether the tooltip is being displayed. */
285
+ isVisible(): boolean;
286
+ ngOnDestroy(): void;
287
+ /**
288
+ * Interactions on the HTML body should close the tooltip immediately as defined in the
289
+ * material design spec.
290
+ * https://material.io/design/components/tooltips.html#behavior
291
+ */
292
+ _handleBodyInteraction(): void;
293
+ /**
294
+ * Marks that the tooltip needs to be checked in the next change detection run.
295
+ * Mainly used for rendering the initial text before positioning a tooltip, which
296
+ * can be problematic in components with OnPush change detection.
297
+ */
298
+ _markForCheck(): void;
299
+ _handleMouseLeave({ relatedTarget }: MouseEvent): void;
300
+ /**
301
+ * Callback for when the timeout in this.show() gets completed.
302
+ * This method is only needed by the mdc-tooltip, and so it is only implemented
303
+ * in the mdc-tooltip, not here.
304
+ */
305
+ protected _onShow(): void;
306
+ /** Whether the tooltip text has overflown to the next line */
307
+ private _isTooltipMultiline;
308
+ /** Event listener dispatched when an animation on the tooltip finishes. */
309
+ _handleAnimationEnd({ animationName }: AnimationEvent): void;
310
+ /** Cancels any pending animation sequences. */
311
+ _cancelPendingAnimations(): void;
312
+ /** Handles the cleanup after an animation has finished. */
313
+ private _finalizeAnimation;
314
+ /** Toggles the visibility of the tooltip element. */
315
+ private _toggleVisibility;
316
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
317
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "mat-tooltip-component", never, {}, {}, never, never, true, never>;
318
+ }
10
319
 
11
320
  declare class MatTooltipModule {
12
321
  static ɵfac: i0.ɵɵFactoryDeclaration<MatTooltipModule, never>;
@@ -14,4 +323,5 @@ declare class MatTooltipModule {
14
323
  static ɵinj: i0.ɵɵInjectorDeclaration<MatTooltipModule>;
15
324
  }
16
325
 
17
- export { MatTooltip, MatTooltipModule, TooltipComponent };
326
+ export { MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_SCROLL_STRATEGY, MatTooltip, MatTooltipModule, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, getMatTooltipInvalidPositionError };
327
+ export type { MatTooltipDefaultOptions, TooltipPosition, TooltipTouchGestures, TooltipVisibility };
package/types/tree.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as i1 from '@angular/cdk/tree';
2
- import { CdkTreeNode, CdkTreeNodeDef, CdkNestedTreeNode, CdkTreeNodePadding, CdkTreeNodeOutlet, CdkTree, CdkTreeNodeToggle, TreeControl, FlatTreeControl } from '@angular/cdk/tree';
2
+ import { CdkNestedTreeNode, CdkTreeNodeDef, CdkTreeNode, CdkTreeNodePadding, CdkTreeNodeOutlet, CdkTree, CdkTreeNodeToggle, FlatTreeControl, TreeControl } from '@angular/cdk/tree';
3
3
  import * as i0 from '@angular/core';
4
- import { OnInit, OnDestroy, AfterContentInit, ViewContainerRef } from '@angular/core';
4
+ import { AfterContentInit, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
5
5
  import * as i2 from '@angular/cdk/bidi';
6
6
  import { DataSource, CollectionViewer } from '@angular/cdk/collections';
7
7
  import { Observable } from 'rxjs';
@@ -39,7 +39,7 @@ declare class MatTreeNode<T, K = T> extends CdkTreeNode<T, K> implements OnInit,
39
39
  */
40
40
  get disabled(): boolean;
41
41
  set disabled(value: boolean);
42
- constructor(...args: unknown[]);
42
+ constructor();
43
43
  ngOnInit(): void;
44
44
  ngOnDestroy(): void;
45
45
  static ɵfac: i0.ɵɵFactoryDeclaration<MatTreeNode<any, any>, never>;