@angular/material 19.2.2 → 20.0.0-next.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/button/index.d.ts CHANGED
@@ -7,7 +7,6 @@ import { InjectionToken } from '@angular/core';
7
7
  import { MatRippleLoader } from '@angular/material/core';
8
8
  import { NgZone } from '@angular/core';
9
9
  import { OnDestroy } from '@angular/core';
10
- import { OnInit } from '@angular/core';
11
10
  import { ThemePalette } from '@angular/material/core';
12
11
 
13
12
  declare namespace i2 {
@@ -18,13 +17,6 @@ declare namespace i2 {
18
17
  }
19
18
 
20
19
  declare namespace i3 {
21
- export {
22
- MatIconButton,
23
- MatIconAnchor
24
- }
25
- }
26
-
27
- declare namespace i4 {
28
20
  export {
29
21
  MAT_FAB_DEFAULT_OPTIONS_FACTORY,
30
22
  MatFabDefaultOptions,
@@ -36,6 +28,13 @@ declare namespace i4 {
36
28
  }
37
29
  }
38
30
 
31
+ declare namespace i4 {
32
+ export {
33
+ MatIconButton,
34
+ MatIconAnchor
35
+ }
36
+ }
37
+
39
38
  /** Injection token that can be used to provide the default options the button component. */
40
39
  export declare const MAT_BUTTON_CONFIG: InjectionToken<MatButtonConfig>;
41
40
 
@@ -55,26 +54,9 @@ export declare function MAT_FAB_DEFAULT_OPTIONS_FACTORY(): MatFabDefaultOptions;
55
54
  * specification. `MatAnchor` additionally captures an additional "flat" appearance, which matches
56
55
  * "contained" but without elevation.
57
56
  */
58
- export declare class MatAnchor extends MatAnchorBase {
59
- static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchor, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
61
- }
57
+ export declare const MatAnchor: typeof MatButton;
62
58
 
63
- /**
64
- * Anchor button base.
65
- */
66
- declare class MatAnchorBase extends MatButtonBase implements OnInit, OnDestroy {
67
- private _renderer;
68
- private _cleanupClick;
69
- tabIndex: number;
70
- ngOnInit(): void;
71
- ngOnDestroy(): void;
72
- _haltDisabledEvents: (event: Event) => void;
73
- protected _getAriaDisabled(): boolean | null;
74
- static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchorBase, never>;
75
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatAnchorBase, never, never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, true, never>;
76
- static ngAcceptInputType_tabIndex: unknown;
77
- }
59
+ export declare type MatAnchor = MatButton;
78
60
 
79
61
  /**
80
62
  * Material Design button component. Users interact with a button to perform an action.
@@ -87,7 +69,7 @@ declare class MatAnchorBase extends MatButtonBase implements OnInit, OnDestroy {
87
69
  */
88
70
  export declare class MatButton extends MatButtonBase {
89
71
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, never>;
90
- static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
91
73
  }
92
74
 
93
75
  /** Base class for all buttons. */
@@ -96,11 +78,15 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
96
78
  _ngZone: NgZone;
97
79
  _animationMode: "NoopAnimations" | "BrowserAnimations" | null;
98
80
  private readonly _focusMonitor;
81
+ private _cleanupClick;
82
+ private _renderer;
99
83
  /**
100
84
  * Handles the lazy creation of the MatButton ripple.
101
85
  * Used to improve initial load time of large applications.
102
86
  */
103
87
  protected _rippleLoader: MatRippleLoader;
88
+ /** Whether the button is set on an anchor node. */
89
+ protected _isAnchor: boolean;
104
90
  /** Whether this button is a FAB. Used to apply the correct class on the ripple. */
105
91
  protected _isFab: boolean;
106
92
  /**
@@ -133,6 +119,13 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
133
119
  * meant to be tabbable and you have to prevent the button action (e.g. form submissions).
134
120
  */
135
121
  disabledInteractive: boolean;
122
+ /** Tab index for the button. */
123
+ tabIndex: number;
124
+ /**
125
+ * Backwards-compatibility input that handles pre-existing `[tabindex]` bindings.
126
+ * @docs-private
127
+ */
128
+ set _tabindex(value: number);
136
129
  constructor(...args: unknown[]);
137
130
  ngAfterViewInit(): void;
138
131
  ngOnDestroy(): void;
@@ -141,12 +134,16 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
141
134
  protected _getAriaDisabled(): boolean | null;
142
135
  protected _getDisabledAttribute(): true | null;
143
136
  private _updateRippleDisabled;
137
+ protected _getTabIndex(): number;
138
+ private _setupAsAnchor;
144
139
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonBase, never>;
145
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; }, {}, never, never, true, never>;
140
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "_tabindex": { "alias": "tabindex"; "required": false; }; }, {}, never, never, true, never>;
146
141
  static ngAcceptInputType_disableRipple: unknown;
147
142
  static ngAcceptInputType_disabled: unknown;
148
143
  static ngAcceptInputType_ariaDisabled: unknown;
149
144
  static ngAcceptInputType_disabledInteractive: unknown;
145
+ static ngAcceptInputType_tabIndex: unknown;
146
+ static ngAcceptInputType__tabindex: unknown;
150
147
  }
151
148
 
152
149
  /** Object that can be used to configure the default options for the button component. */
@@ -159,7 +156,7 @@ export declare interface MatButtonConfig {
159
156
 
160
157
  export declare class MatButtonModule {
161
158
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonModule, never>;
162
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonModule, never, [typeof i1.MatCommonModule, typeof i1.MatRippleModule, typeof i2.MatAnchor, typeof i2.MatButton, typeof i3.MatIconAnchor, typeof i4.MatMiniFabAnchor, typeof i4.MatMiniFabButton, typeof i3.MatIconButton, typeof i4.MatFabAnchor, typeof i4.MatFabButton], [typeof i2.MatAnchor, typeof i2.MatButton, typeof i3.MatIconAnchor, typeof i3.MatIconButton, typeof i4.MatMiniFabAnchor, typeof i4.MatMiniFabButton, typeof i4.MatFabAnchor, typeof i4.MatFabButton, typeof i1.MatCommonModule]>;
159
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonModule, never, [typeof i1.MatCommonModule, typeof i1.MatRippleModule, typeof i2.MatButton, typeof i3.MatMiniFabButton, typeof i4.MatIconButton, typeof i3.MatFabButton], [typeof i1.MatCommonModule, typeof i2.MatButton, typeof i3.MatMiniFabButton, typeof i4.MatIconButton, typeof i3.MatFabButton]>;
163
160
  static ɵinj: i0.ɵɵInjectorDeclaration<MatButtonModule>;
164
161
  }
165
162
 
@@ -170,15 +167,9 @@ export declare class MatButtonModule {
170
167
  *
171
168
  * The `MatFabAnchor` class has two appearances: normal and extended.
172
169
  */
173
- export declare class MatFabAnchor extends MatAnchor {
174
- private _options;
175
- _isFab: boolean;
176
- extended: boolean;
177
- constructor(...args: unknown[]);
178
- static ɵfac: i0.ɵɵFactoryDeclaration<MatFabAnchor, never>;
179
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
180
- static ngAcceptInputType_extended: unknown;
181
- }
170
+ export declare const MatFabAnchor: typeof MatFabButton;
171
+
172
+ export declare type MatFabAnchor = MatFabButton;
182
173
 
183
174
  /**
184
175
  * Material Design floating action button (FAB) component. These buttons represent the primary
@@ -193,7 +184,7 @@ export declare class MatFabButton extends MatButtonBase {
193
184
  extended: boolean;
194
185
  constructor(...args: unknown[]);
195
186
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFabButton, never>;
196
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
187
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab], a[mat-fab]", ["matButton", "matAnchor"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
197
188
  static ngAcceptInputType_extended: unknown;
198
189
  }
199
190
 
@@ -214,10 +205,9 @@ export declare interface MatFabDefaultOptions {
214
205
  * interaction icon that allows users to navigate across different routes or pages.
215
206
  * See https://material.io/develop/web/components/buttons/icon-buttons/
216
207
  */
217
- export declare class MatIconAnchor extends MatAnchorBase {
218
- static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, never>;
219
- static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, ["*"], true, never>;
220
- }
208
+ export declare const MatIconAnchor: typeof MatIconButton;
209
+
210
+ export declare type MatIconAnchor = MatIconButton;
221
211
 
222
212
  /**
223
213
  * Material Design icon button component. This type of button displays a single interactive icon for
@@ -227,7 +217,7 @@ export declare class MatIconAnchor extends MatAnchorBase {
227
217
  export declare class MatIconButton extends MatButtonBase {
228
218
  constructor(...args: unknown[]);
229
219
  static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, never>;
230
- static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], {}, {}, never, ["*"], true, never>;
220
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button], a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, ["*"], true, never>;
231
221
  }
232
222
 
233
223
  /**
@@ -235,13 +225,9 @@ export declare class MatIconButton extends MatButtonBase {
235
225
  * are used to provide links for the user to navigate across different routes or pages.
236
226
  * See https://material.io/components/buttons-floating-action-button/
237
227
  */
238
- export declare class MatMiniFabAnchor extends MatAnchor {
239
- private _options;
240
- _isFab: boolean;
241
- constructor(...args: unknown[]);
242
- static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabAnchor, never>;
243
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
244
- }
228
+ export declare const MatMiniFabAnchor: typeof MatMiniFabButton;
229
+
230
+ export declare type MatMiniFabAnchor = MatMiniFabButton;
245
231
 
246
232
  /**
247
233
  * Material Design mini floating action button (FAB) component. These buttons represent the primary
@@ -253,7 +239,7 @@ export declare class MatMiniFabButton extends MatButtonBase {
253
239
  _isFab: boolean;
254
240
  constructor(...args: unknown[]);
255
241
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabButton, never>;
256
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
242
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab], a[mat-mini-fab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
257
243
  }
258
244
 
259
245
  export { }
package/dialog/index.d.ts CHANGED
@@ -302,12 +302,6 @@ export declare class MatDialogConfig<D = any> {
302
302
  * the `HashLocationStrategy`).
303
303
  */
304
304
  closeOnNavigation?: boolean;
305
- /**
306
- * Alternate `ComponentFactoryResolver` to use when resolving the associated component.
307
- * @deprecated No longer used. Will be removed.
308
- * @breaking-change 20.0.0
309
- */
310
- componentFactoryResolver?: unknown;
311
305
  /**
312
306
  * Duration of the enter animation in ms.
313
307
  * Should be a number, string type is deprecated.