@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.
- package/autocomplete/index.d.ts +1 -23
- package/bottom-sheet/index.d.ts +1 -10
- package/button/index.d.ts +1 -7
- package/button-toggle/index.d.ts +1 -1
- package/button-toggle.d.d.ts +1 -7
- package/checkbox/index.d.ts +1 -7
- package/core/index.d.ts +1 -1
- package/core/tokens/_classes.scss +20 -16
- package/date-adapter.d.d.ts +1 -7
- package/datepicker/index.d.ts +2 -55
- package/dialog/index.d.ts +1 -23
- package/expansion/index.d.ts +1 -36
- package/fesm2022/autocomplete.mjs +5 -33
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +1 -82
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +5 -13
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +6 -14
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +10 -19
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/core.mjs +1 -2
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats.mjs +2 -10
- package/fesm2022/date-formats.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +26 -178
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +5 -5
- package/fesm2022/dialog.mjs +882 -114
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/expansion.mjs +1 -103
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +37 -49
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/icon-registry.mjs +2 -29
- package/fesm2022/icon-registry.mjs.map +1 -1
- package/fesm2022/icon.mjs +11 -17
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +1 -1
- package/fesm2022/menu.mjs +5 -152
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +7 -27
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +13 -16
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +2 -10
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +4 -12
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple.mjs +2 -2
- package/fesm2022/ripple.mjs.map +1 -1
- package/fesm2022/select.mjs +1293 -90
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +2 -88
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +2 -80
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +3 -329
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +4 -171
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/tabs.mjs +8 -153
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +21 -53
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tooltip2.mjs +6 -33
- package/fesm2022/tooltip2.mjs.map +1 -1
- package/form-field/index.d.ts +1 -11
- package/icon/index.d.ts +2 -2
- package/icon-module.d.d.ts +1 -7
- package/icon-registry.d.d.ts +2 -18
- package/menu/index.d.ts +1 -42
- package/package.json +2 -2
- package/paginator/index.d.ts +3 -3
- package/paginator.d.d.ts +2 -18
- package/progress-bar/index.d.ts +1 -7
- package/progress-spinner/index.d.ts +1 -1
- package/progress-spinner.d.d.ts +3 -9
- package/radio/index.d.ts +1 -7
- package/ripple.d.d.ts +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/select/index.d.ts +439 -27
- package/sidenav/index.d.ts +1 -17
- package/snack-bar/index.d.ts +1 -17
- package/sort/index.d.ts +2 -33
- package/stepper/index.d.ts +2 -29
- package/tabs/index.d.ts +1 -18
- package/tooltip/index.d.ts +302 -16
- package/fesm2022/dialog-module.mjs +0 -891
- package/fesm2022/dialog-module.mjs.map +0 -1
- package/fesm2022/form-field-module.mjs +0 -39
- package/fesm2022/form-field-module.mjs.map +0 -1
- package/fesm2022/select-module.mjs +0 -1318
- package/fesm2022/select-module.mjs.map +0 -1
- package/fesm2022/tooltip-module.mjs +0 -24
- package/fesm2022/tooltip-module.mjs.map +0 -1
- package/select-module.d.d.ts +0 -456
- package/tooltip-module.d.d.ts +0 -329
package/autocomplete/index.d.ts
CHANGED
|
@@ -57,12 +57,6 @@ interface MatAutocompleteDefaultOptions {
|
|
|
57
57
|
}
|
|
58
58
|
/** Injection token to be used to override the default options for `mat-autocomplete`. */
|
|
59
59
|
declare const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS: InjectionToken<MatAutocompleteDefaultOptions>;
|
|
60
|
-
/**
|
|
61
|
-
* @docs-private
|
|
62
|
-
* @deprecated No longer used, will be removed.
|
|
63
|
-
* @breaking-change 21.0.0
|
|
64
|
-
*/
|
|
65
|
-
declare function MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY(): MatAutocompleteDefaultOptions;
|
|
66
60
|
/** Autocomplete component. */
|
|
67
61
|
declare class MatAutocomplete implements AfterContentInit, OnDestroy {
|
|
68
62
|
private _changeDetectorRef;
|
|
@@ -194,22 +188,6 @@ declare const MAT_AUTOCOMPLETE_VALUE_ACCESSOR: any;
|
|
|
194
188
|
declare function getMatAutocompleteMissingPanelError(): Error;
|
|
195
189
|
/** Injection token that determines the scroll handling while the autocomplete panel is open. */
|
|
196
190
|
declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
197
|
-
/**
|
|
198
|
-
* @docs-private
|
|
199
|
-
* @deprecated No longer used, will be removed.
|
|
200
|
-
* @breaking-change 21.0.0
|
|
201
|
-
*/
|
|
202
|
-
declare function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(_overlay: unknown): () => ScrollStrategy;
|
|
203
|
-
/**
|
|
204
|
-
* @docs-private
|
|
205
|
-
* @deprecated No longer used, will be removed.
|
|
206
|
-
* @breaking-change 21.0.0
|
|
207
|
-
*/
|
|
208
|
-
declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
209
|
-
provide: InjectionToken<() => ScrollStrategy>;
|
|
210
|
-
deps: any[];
|
|
211
|
-
useFactory: typeof MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY;
|
|
212
|
-
};
|
|
213
191
|
/** Base class with all of the `MatAutocompleteTrigger` functionality. */
|
|
214
192
|
declare class MatAutocompleteTrigger implements ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy {
|
|
215
193
|
private _environmentInjector;
|
|
@@ -439,5 +417,5 @@ declare class MatAutocompleteModule {
|
|
|
439
417
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatAutocompleteModule>;
|
|
440
418
|
}
|
|
441
419
|
|
|
442
|
-
export { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,
|
|
420
|
+
export { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MAT_AUTOCOMPLETE_SCROLL_STRATEGY, MAT_AUTOCOMPLETE_VALUE_ACCESSOR, MatAutocomplete, MatAutocompleteModule, MatAutocompleteOrigin, MatAutocompleteSelectedEvent, MatAutocompleteTrigger, MatOptgroup, MatOption, getMatAutocompleteMissingPanelError };
|
|
443
421
|
export type { MatAutocompleteActivatedEvent, MatAutocompleteDefaultOptions };
|
package/bottom-sheet/index.d.ts
CHANGED
|
@@ -186,14 +186,5 @@ declare class MatBottomSheet implements OnDestroy {
|
|
|
186
186
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatBottomSheet>;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
|
|
190
|
-
* Animations used by the Material bottom sheet.
|
|
191
|
-
* @deprecated No longer used. Will be removed.
|
|
192
|
-
* @breaking-change 21.0.0
|
|
193
|
-
*/
|
|
194
|
-
declare const matBottomSheetAnimations: {
|
|
195
|
-
readonly bottomSheetState: any;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
export { MAT_BOTTOM_SHEET_DATA, MAT_BOTTOM_SHEET_DEFAULT_OPTIONS, MatBottomSheet, MatBottomSheetConfig, MatBottomSheetContainer, MatBottomSheetModule, MatBottomSheetRef, matBottomSheetAnimations };
|
|
189
|
+
export { MAT_BOTTOM_SHEET_DATA, MAT_BOTTOM_SHEET_DEFAULT_OPTIONS, MatBottomSheet, MatBottomSheetConfig, MatBottomSheetContainer, MatBottomSheetModule, MatBottomSheetRef };
|
|
199
190
|
export type { AutoFocusTarget };
|
package/button/index.d.ts
CHANGED
|
@@ -138,12 +138,6 @@ interface MatFabDefaultOptions {
|
|
|
138
138
|
}
|
|
139
139
|
/** Injection token to be used to override the default options for FAB. */
|
|
140
140
|
declare const MAT_FAB_DEFAULT_OPTIONS: InjectionToken<MatFabDefaultOptions>;
|
|
141
|
-
/**
|
|
142
|
-
* @docs-private
|
|
143
|
-
* @deprecated No longer used, will be removed.
|
|
144
|
-
* @breaking-change 21.0.0
|
|
145
|
-
*/
|
|
146
|
-
declare function MAT_FAB_DEFAULT_OPTIONS_FACTORY(): MatFabDefaultOptions;
|
|
147
141
|
/**
|
|
148
142
|
* Material Design floating action button (FAB) component. These buttons represent the primary
|
|
149
143
|
* or most common action for users to interact with.
|
|
@@ -213,5 +207,5 @@ declare class MatButtonModule {
|
|
|
213
207
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatButtonModule>;
|
|
214
208
|
}
|
|
215
209
|
|
|
216
|
-
export { MAT_BUTTON_CONFIG, MAT_FAB_DEFAULT_OPTIONS,
|
|
210
|
+
export { MAT_BUTTON_CONFIG, MAT_FAB_DEFAULT_OPTIONS, MatAnchor, MatButton, MatButtonModule, MatFabAnchor, MatFabButton, MatIconAnchor, MatIconButton, MatMiniFabAnchor, MatMiniFabButton };
|
|
217
211
|
export type { MatButtonAppearance, MatButtonConfig, MatFabDefaultOptions };
|
package/button-toggle/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MatButtonToggleGroup, MatButtonToggle } from '../button-toggle.d.js';
|
|
2
|
-
export { MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS, MAT_BUTTON_TOGGLE_GROUP,
|
|
2
|
+
export { MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS, MAT_BUTTON_TOGGLE_GROUP, MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, MatButtonToggleAppearance, MatButtonToggleChange, MatButtonToggleDefaultOptions, ToggleType } from '../button-toggle.d.js';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { MatCommonModule } from '../common-module.d.js';
|
|
5
5
|
import { MatRippleModule } from '../ripple-module.d.js';
|
package/button-toggle.d.d.ts
CHANGED
|
@@ -32,12 +32,6 @@ interface MatButtonToggleDefaultOptions {
|
|
|
32
32
|
* default options for all button toggles within an app.
|
|
33
33
|
*/
|
|
34
34
|
declare const MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS: InjectionToken<MatButtonToggleDefaultOptions>;
|
|
35
|
-
/**
|
|
36
|
-
* @docs-private
|
|
37
|
-
* @deprecated No longer used, will be removed.
|
|
38
|
-
* @breaking-change 21.0.0
|
|
39
|
-
*/
|
|
40
|
-
declare function MAT_BUTTON_TOGGLE_GROUP_DEFAULT_OPTIONS_FACTORY(): MatButtonToggleDefaultOptions;
|
|
41
35
|
/**
|
|
42
36
|
* Injection token that can be used to reference instances of `MatButtonToggleGroup`.
|
|
43
37
|
* It serves as alternative token to the actual `MatButtonToggleGroup` class which
|
|
@@ -254,5 +248,5 @@ declare class MatButtonToggle implements OnInit, AfterViewInit, OnDestroy {
|
|
|
254
248
|
static ngAcceptInputType_disabledInteractive: unknown;
|
|
255
249
|
}
|
|
256
250
|
|
|
257
|
-
export { MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS, MAT_BUTTON_TOGGLE_GROUP,
|
|
251
|
+
export { MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS, MAT_BUTTON_TOGGLE_GROUP, MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, MatButtonToggle, MatButtonToggleChange, MatButtonToggleGroup };
|
|
258
252
|
export type { MatButtonToggleAppearance, MatButtonToggleDefaultOptions, ToggleType };
|
package/checkbox/index.d.ts
CHANGED
|
@@ -198,12 +198,6 @@ interface MatCheckboxDefaultOptions {
|
|
|
198
198
|
}
|
|
199
199
|
/** Injection token to be used to override the default options for `mat-checkbox`. */
|
|
200
200
|
declare const MAT_CHECKBOX_DEFAULT_OPTIONS: InjectionToken<MatCheckboxDefaultOptions>;
|
|
201
|
-
/**
|
|
202
|
-
* @docs-private
|
|
203
|
-
* @deprecated No longer used, will be removed.
|
|
204
|
-
* @breaking-change 21.0.0
|
|
205
|
-
*/
|
|
206
|
-
declare function MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY(): MatCheckboxDefaultOptions;
|
|
207
201
|
/**
|
|
208
202
|
* Checkbox click action when user click on input element.
|
|
209
203
|
* noop: Do not toggle checked or indeterminate.
|
|
@@ -219,5 +213,5 @@ declare class MatCheckboxModule {
|
|
|
219
213
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatCheckboxModule>;
|
|
220
214
|
}
|
|
221
215
|
|
|
222
|
-
export { MAT_CHECKBOX_DEFAULT_OPTIONS,
|
|
216
|
+
export { MAT_CHECKBOX_DEFAULT_OPTIONS, MatCheckbox, MatCheckboxChange, MatCheckboxModule, TransitionCheckState };
|
|
223
217
|
export type { MatCheckboxClickAction, MatCheckboxDefaultOptions };
|
package/core/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { MAT_RIPPLE_GLOBAL_OPTIONS, MatRipple, RippleAnimationConfig, RippleConf
|
|
|
15
15
|
export { MatRippleModule } from '../ripple-module.d.js';
|
|
16
16
|
export { MatPseudoCheckbox, MatPseudoCheckboxModule, MatPseudoCheckboxState } from '../pseudo-checkbox-module.d.js';
|
|
17
17
|
import { DateAdapter } from '../date-adapter.d.js';
|
|
18
|
-
export { MAT_DATE_LOCALE
|
|
18
|
+
export { MAT_DATE_LOCALE } from '../date-adapter.d.js';
|
|
19
19
|
import '@angular/cdk/bidi';
|
|
20
20
|
import '@angular/cdk/a11y';
|
|
21
21
|
import '@angular/cdk/platform';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// Utility classes that can be used to style elements with the most commonly used system tokens in
|
|
2
|
-
// Material Design. Includes color, typography, elevation, and shape.
|
|
2
|
+
// Material Design. Includes color, typography, elevation, state, and shape.
|
|
3
3
|
@mixin system-classes() {
|
|
4
4
|
|
|
5
5
|
// ***********************************************************************************************
|
|
6
|
-
// Background
|
|
6
|
+
// Background - Apply background color and a contrastful corresponding text color
|
|
7
|
+
// See https://m3.material.io/styles/color/roles for guidance.
|
|
7
8
|
// ***********************************************************************************************
|
|
8
9
|
|
|
9
10
|
// Styles an element with a primary color background and applies an accessible contrasting
|
|
@@ -135,7 +136,7 @@
|
|
|
135
136
|
|
|
136
137
|
|
|
137
138
|
// ***********************************************************************************************
|
|
138
|
-
// Text
|
|
139
|
+
// Text - Apply colors to text
|
|
139
140
|
// ***********************************************************************************************
|
|
140
141
|
|
|
141
142
|
// Styles the text of an element with the primary color. Use for text that needs to stand out.
|
|
@@ -164,7 +165,8 @@
|
|
|
164
165
|
|
|
165
166
|
|
|
166
167
|
// ***********************************************************************************************
|
|
167
|
-
// Font
|
|
168
|
+
// Font - Apply typography styles
|
|
169
|
+
// See https://m3.material.io/styles/typography/applying-type for guidance.
|
|
168
170
|
// ***********************************************************************************************
|
|
169
171
|
|
|
170
172
|
// Sets the font to the body small typeface. Use for small body text, such as captions. In Angular
|
|
@@ -255,50 +257,51 @@
|
|
|
255
257
|
|
|
256
258
|
|
|
257
259
|
// ***********************************************************************************************
|
|
258
|
-
// Corner
|
|
260
|
+
// Corner - Apply varying amounts of a border radius
|
|
261
|
+
// See https://m3.material.io/styles/shape/corner-radius-scale for guidance.
|
|
259
262
|
// ***********************************************************************************************
|
|
260
263
|
|
|
261
264
|
// Sets the border radius to extra small. Use for components that need a small amount of rounding,
|
|
262
265
|
// such as a chip. In Angular Material, this is used for the shape of a snackbar and a tooltip.
|
|
263
|
-
.mat-
|
|
266
|
+
.mat-corner-extra-sm {
|
|
264
267
|
border-radius: var(--mat-sys-corner-extra-small);
|
|
265
268
|
}
|
|
266
269
|
|
|
267
270
|
// Sets the border radius to small. Use for components that need a small amount of rounding, such
|
|
268
271
|
// as a text field.
|
|
269
|
-
.mat-
|
|
272
|
+
.mat-corner-sm {
|
|
270
273
|
border-radius: var(--mat-sys-corner-small);
|
|
271
274
|
}
|
|
272
275
|
|
|
273
276
|
// Sets the border radius to medium. Use for components that need a medium amount of rounding,
|
|
274
277
|
// such as a button. In Angular Material, this is used for the shape of a card.
|
|
275
|
-
.mat-
|
|
278
|
+
.mat-corner-md {
|
|
276
279
|
border-radius: var(--mat-sys-corner-medium);
|
|
277
280
|
}
|
|
278
281
|
|
|
279
282
|
// Sets the border radius to large. Use for components that need a large amount of rounding, such
|
|
280
283
|
// as a card. In Angular Material, this is used for the shape of a floating action button and a
|
|
281
284
|
// datepicker.
|
|
282
|
-
.mat-
|
|
285
|
+
.mat-corner-lg {
|
|
283
286
|
border-radius: var(--mat-sys-corner-large);
|
|
284
287
|
}
|
|
285
288
|
|
|
286
289
|
// Sets the border radius to extra large. Use for components that need a large amount of
|
|
287
290
|
// rounding. In Angular Material, this is used for the shape of a button toggle and the shape of
|
|
288
291
|
// a dialog.
|
|
289
|
-
.mat-
|
|
292
|
+
.mat-corner-xl {
|
|
290
293
|
border-radius: var(--mat-sys-corner-extra-large);
|
|
291
294
|
}
|
|
292
295
|
|
|
293
296
|
// Sets the border radius to full. Use for components that are circular, such as a user avatar.
|
|
294
297
|
// In Angular Material, this is used for the shape of a badge and the shape of a button.
|
|
295
|
-
.mat-
|
|
298
|
+
.mat-corner-full {
|
|
296
299
|
border-radius: var(--mat-sys-corner-full);
|
|
297
300
|
}
|
|
298
301
|
|
|
299
302
|
|
|
300
303
|
// ***********************************************************************************************
|
|
301
|
-
// Border
|
|
304
|
+
// Border - Applies a 1px solid border
|
|
302
305
|
// ***********************************************************************************************
|
|
303
306
|
|
|
304
307
|
// Adds an outline to an element. Use for components that need a visible boundary. In Angular
|
|
@@ -316,12 +319,12 @@
|
|
|
316
319
|
|
|
317
320
|
|
|
318
321
|
// ***********************************************************************************************
|
|
319
|
-
//
|
|
322
|
+
// Interactive - Adds interaction colors for hover, active, and focus
|
|
320
323
|
// ***********************************************************************************************
|
|
321
324
|
|
|
322
325
|
// Adds hover, focus, and active states to an element by applying varying shades of the surface
|
|
323
326
|
// color. Use for interactive components that are not based on a primary color.
|
|
324
|
-
.mat-
|
|
327
|
+
.mat-interactive {
|
|
325
328
|
&:hover {
|
|
326
329
|
background: color-mix(
|
|
327
330
|
in srgb,
|
|
@@ -349,7 +352,7 @@
|
|
|
349
352
|
|
|
350
353
|
// Adds hover, focus, and active states to an element by applying varying shades of the primary
|
|
351
354
|
// color. Use for interactive components that are not based on a primary color.
|
|
352
|
-
.mat-
|
|
355
|
+
.mat-interactive-primary {
|
|
353
356
|
&:hover {
|
|
354
357
|
background: color-mix(
|
|
355
358
|
in srgb,
|
|
@@ -377,7 +380,8 @@
|
|
|
377
380
|
|
|
378
381
|
|
|
379
382
|
// ***********************************************************************************************
|
|
380
|
-
//
|
|
383
|
+
// Shadow - Applies elevation levels through box-shadow
|
|
384
|
+
// See https://m3.material.io/styles/elevation/applying-elevation for guidance.
|
|
381
385
|
// ***********************************************************************************************
|
|
382
386
|
|
|
383
387
|
// Use to slightly raise the appearance of a surface. In Angular Material, this is used for the
|
package/date-adapter.d.d.ts
CHANGED
|
@@ -3,12 +3,6 @@ import { Subject, Observable } from 'rxjs';
|
|
|
3
3
|
|
|
4
4
|
/** InjectionToken for datepicker that can be used to override default locale code. */
|
|
5
5
|
declare const MAT_DATE_LOCALE: InjectionToken<{}>;
|
|
6
|
-
/**
|
|
7
|
-
* @docs-private
|
|
8
|
-
* @deprecated No longer used, will be removed.
|
|
9
|
-
* @breaking-change 21.0.0
|
|
10
|
-
*/
|
|
11
|
-
declare function MAT_DATE_LOCALE_FACTORY(): {};
|
|
12
6
|
/** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */
|
|
13
7
|
declare abstract class DateAdapter<D, L = any> {
|
|
14
8
|
/** The locale to use for all dates. */
|
|
@@ -264,4 +258,4 @@ declare abstract class DateAdapter<D, L = any> {
|
|
|
264
258
|
clampDate(date: D, min?: D | null, max?: D | null): D;
|
|
265
259
|
}
|
|
266
260
|
|
|
267
|
-
export { DateAdapter, MAT_DATE_LOCALE
|
|
261
|
+
export { DateAdapter, MAT_DATE_LOCALE };
|
package/datepicker/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnDestroy, AfterViewChecked, EventEmitter, SimpleChanges,
|
|
2
|
+
import { OnChanges, OnDestroy, AfterViewChecked, EventEmitter, SimpleChanges, AfterContentInit, ChangeDetectorRef, AfterViewInit, ElementRef, InjectionToken, OnInit, DoCheck, TemplateRef } from '@angular/core';
|
|
3
3
|
import { MatButton, MatButtonModule } from '../button/index.js';
|
|
4
4
|
import * as i2 from '@angular/cdk/overlay';
|
|
5
5
|
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
@@ -344,32 +344,6 @@ declare class MatRangeDateSelectionModel<D> extends MatDateSelectionModel<DateRa
|
|
|
344
344
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatRangeDateSelectionModel<any>, never>;
|
|
345
345
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatRangeDateSelectionModel<any>>;
|
|
346
346
|
}
|
|
347
|
-
/**
|
|
348
|
-
* @docs-private
|
|
349
|
-
* @deprecated No longer used, will be removed.
|
|
350
|
-
* @breaking-change 21.0.0
|
|
351
|
-
*/
|
|
352
|
-
declare function MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY(parent: MatSingleDateSelectionModel<unknown>, adapter: DateAdapter<unknown>): MatSingleDateSelectionModel<unknown>;
|
|
353
|
-
/**
|
|
354
|
-
* Used to provide a single selection model to a component.
|
|
355
|
-
* @docs-private
|
|
356
|
-
* @deprecated No longer used, will be removed.
|
|
357
|
-
* @breaking-change 21.0.0
|
|
358
|
-
*/
|
|
359
|
-
declare const MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER: FactoryProvider;
|
|
360
|
-
/**
|
|
361
|
-
* @docs-private
|
|
362
|
-
* @deprecated No longer used, will be removed.
|
|
363
|
-
* @breaking-change 21.0.0
|
|
364
|
-
*/
|
|
365
|
-
declare function MAT_RANGE_DATE_SELECTION_MODEL_FACTORY(parent: MatSingleDateSelectionModel<unknown>, adapter: DateAdapter<unknown>): MatSingleDateSelectionModel<unknown>;
|
|
366
|
-
/**
|
|
367
|
-
* Used to provide a range selection model to a component.
|
|
368
|
-
* @docs-private
|
|
369
|
-
* @deprecated No longer used, will be removed.
|
|
370
|
-
* @breaking-change 21.0.0
|
|
371
|
-
*/
|
|
372
|
-
declare const MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER: FactoryProvider;
|
|
373
347
|
|
|
374
348
|
/**
|
|
375
349
|
* An internal component used to display a single month in the datepicker.
|
|
@@ -1021,26 +995,10 @@ declare abstract class MatDatepickerInputBase<S, D = ExtractDateTypeFromSelectio
|
|
|
1021
995
|
|
|
1022
996
|
/** Injection token that determines the scroll handling while the calendar is open. */
|
|
1023
997
|
declare const MAT_DATEPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
1024
|
-
/**
|
|
1025
|
-
* @docs-private
|
|
1026
|
-
* @deprecated No longer used, will be removed.
|
|
1027
|
-
* @breaking-change 21.0.0
|
|
1028
|
-
*/
|
|
1029
|
-
declare function MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(_overlay: unknown): () => ScrollStrategy;
|
|
1030
998
|
/** Possible positions for the datepicker dropdown along the X axis. */
|
|
1031
999
|
type DatepickerDropdownPositionX = 'start' | 'end';
|
|
1032
1000
|
/** Possible positions for the datepicker dropdown along the Y axis. */
|
|
1033
1001
|
type DatepickerDropdownPositionY = 'above' | 'below';
|
|
1034
|
-
/**
|
|
1035
|
-
* @docs-private
|
|
1036
|
-
* @deprecated No longer used, will be removed.
|
|
1037
|
-
* @breaking-change 21.0.0
|
|
1038
|
-
*/
|
|
1039
|
-
declare const MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
1040
|
-
provide: InjectionToken<() => ScrollStrategy>;
|
|
1041
|
-
deps: any[];
|
|
1042
|
-
useFactory: typeof MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY;
|
|
1043
|
-
};
|
|
1044
1002
|
/**
|
|
1045
1003
|
* Component used as the content for the datepicker overlay. We use this instead of using
|
|
1046
1004
|
* MatCalendar directly as the content so we can control the initial focus. This also gives us a
|
|
@@ -1782,16 +1740,5 @@ declare class DefaultMatCalendarRangeStrategy<D> implements MatDateRangeSelectio
|
|
|
1782
1740
|
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultMatCalendarRangeStrategy<any>>;
|
|
1783
1741
|
}
|
|
1784
1742
|
|
|
1785
|
-
|
|
1786
|
-
* Animations used by the Material datepicker.
|
|
1787
|
-
* @docs-private
|
|
1788
|
-
* @deprecated No longer used, will be removed.
|
|
1789
|
-
* @breaking-change 21.0.0
|
|
1790
|
-
*/
|
|
1791
|
-
declare const matDatepickerAnimations: {
|
|
1792
|
-
readonly transformPanel: any;
|
|
1793
|
-
readonly fadeInCalendar: any;
|
|
1794
|
-
};
|
|
1795
|
-
|
|
1796
|
-
export { DateRange, DefaultMatCalendarRangeStrategy, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_DATEPICKER_VALIDATORS, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATE_RANGE_SELECTION_STRATEGY, MAT_RANGE_DATE_SELECTION_MODEL_FACTORY, MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER, MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY, MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER, MatCalendar, MatCalendarBody, MatCalendarCell, MatCalendarHeader, MatDateRangeInput, MatDateRangePicker, MatDateSelectionModel, MatDatepicker, MatDatepickerActions, MatDatepickerApply, MatDatepickerCancel, MatDatepickerContent, MatDatepickerInput, MatDatepickerInputEvent, MatDatepickerIntl, MatDatepickerModule, MatDatepickerToggle, MatDatepickerToggleIcon, MatEndDate, MatMonthView, MatMultiYearView, MatRangeDateSelectionModel, MatSingleDateSelectionModel, MatStartDate, MatYearView, matDatepickerAnimations, yearsPerPage, yearsPerRow };
|
|
1743
|
+
export { DateRange, DefaultMatCalendarRangeStrategy, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_VALIDATORS, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATE_RANGE_SELECTION_STRATEGY, MatCalendar, MatCalendarBody, MatCalendarCell, MatCalendarHeader, MatDateRangeInput, MatDateRangePicker, MatDateSelectionModel, MatDatepicker, MatDatepickerActions, MatDatepickerApply, MatDatepickerCancel, MatDatepickerContent, MatDatepickerInput, MatDatepickerInputEvent, MatDatepickerIntl, MatDatepickerModule, MatDatepickerToggle, MatDatepickerToggleIcon, MatEndDate, MatMonthView, MatMultiYearView, MatRangeDateSelectionModel, MatSingleDateSelectionModel, MatStartDate, MatYearView, yearsPerPage, yearsPerRow };
|
|
1797
1744
|
export type { DateFilterFn, DateSelectionModelChange, DatepickerDropdownPositionX, DatepickerDropdownPositionY, ExtractDateTypeFromSelection, MatCalendarCellClassFunction, MatCalendarCellCssClasses, MatCalendarUserEvent, MatCalendarView, MatDateRangeSelectionStrategy, MatDatepickerControl, MatDatepickerPanel };
|
package/dialog/index.d.ts
CHANGED
|
@@ -82,26 +82,4 @@ declare class MatDialogModule {
|
|
|
82
82
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatDialogModule>;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
* Default parameters for the animation for backwards compatibility.
|
|
87
|
-
* @docs-private
|
|
88
|
-
* @deprecated Will stop being exported.
|
|
89
|
-
* @breaking-change 21.0.0
|
|
90
|
-
*/
|
|
91
|
-
declare const _defaultParams: {
|
|
92
|
-
params: {
|
|
93
|
-
enterAnimationDuration: string;
|
|
94
|
-
exitAnimationDuration: string;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Animations used by MatDialog.
|
|
99
|
-
* @docs-private
|
|
100
|
-
* @deprecated No longer used, will be removed.
|
|
101
|
-
* @breaking-change 21.0.0
|
|
102
|
-
*/
|
|
103
|
-
declare const matDialogAnimations: {
|
|
104
|
-
readonly dialogContainer: any;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export { MatDialogActions, MatDialogClose, MatDialogContainer, MatDialogContent, MatDialogModule, MatDialogRef, MatDialogTitle, _defaultParams, matDialogAnimations };
|
|
85
|
+
export { MatDialogActions, MatDialogClose, MatDialogContainer, MatDialogContent, MatDialogModule, MatDialogRef, MatDialogTitle };
|
package/expansion/index.d.ts
CHANGED
|
@@ -253,40 +253,5 @@ declare class MatExpansionModule {
|
|
|
253
253
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatExpansionModule>;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
|
|
257
|
-
* Time and timing curve for expansion panel animations.
|
|
258
|
-
* @deprecated No longer used. Will be removed.
|
|
259
|
-
* @breaking-change 21.0.0
|
|
260
|
-
*/
|
|
261
|
-
declare const EXPANSION_PANEL_ANIMATION_TIMING = "225ms cubic-bezier(0.4,0.0,0.2,1)";
|
|
262
|
-
/**
|
|
263
|
-
* Animations used by the Material expansion panel.
|
|
264
|
-
*
|
|
265
|
-
* A bug in angular animation's `state` when ViewContainers are moved using ViewContainerRef.move()
|
|
266
|
-
* causes the animation state of moved components to become `void` upon exit, and not update again
|
|
267
|
-
* upon reentry into the DOM. This can lead a to situation for the expansion panel where the state
|
|
268
|
-
* of the panel is `expanded` or `collapsed` but the animation state is `void`.
|
|
269
|
-
*
|
|
270
|
-
* To correctly handle animating to the next state, we animate between `void` and `collapsed` which
|
|
271
|
-
* are defined to have the same styles. Since angular animates from the current styles to the
|
|
272
|
-
* destination state's style definition, in situations where we are moving from `void`'s styles to
|
|
273
|
-
* `collapsed` this acts a noop since no style values change.
|
|
274
|
-
*
|
|
275
|
-
* In the case where angular's animation state is out of sync with the expansion panel's state, the
|
|
276
|
-
* expansion panel being `expanded` and angular animations being `void`, the animation from the
|
|
277
|
-
* `expanded`'s effective styles (though in a `void` animation state) to the collapsed state will
|
|
278
|
-
* occur as expected.
|
|
279
|
-
*
|
|
280
|
-
* Angular Bug: https://github.com/angular/angular/issues/18847
|
|
281
|
-
*
|
|
282
|
-
* @docs-private
|
|
283
|
-
* @deprecated No longer being used, to be removed.
|
|
284
|
-
* @breaking-change 21.0.0
|
|
285
|
-
*/
|
|
286
|
-
declare const matExpansionAnimations: {
|
|
287
|
-
readonly indicatorRotate: any;
|
|
288
|
-
readonly bodyExpansion: any;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
export { EXPANSION_PANEL_ANIMATION_TIMING, MAT_ACCORDION, MAT_EXPANSION_PANEL, MAT_EXPANSION_PANEL_DEFAULT_OPTIONS, MatAccordion, MatExpansionModule, MatExpansionPanel, MatExpansionPanelActionRow, MatExpansionPanelContent, MatExpansionPanelDescription, MatExpansionPanelHeader, MatExpansionPanelTitle, matExpansionAnimations };
|
|
256
|
+
export { MAT_ACCORDION, MAT_EXPANSION_PANEL, MAT_EXPANSION_PANEL_DEFAULT_OPTIONS, MatAccordion, MatExpansionModule, MatExpansionPanel, MatExpansionPanelActionRow, MatExpansionPanelContent, MatExpansionPanelDescription, MatExpansionPanelHeader, MatExpansionPanelTitle };
|
|
292
257
|
export type { MatAccordionBase, MatAccordionDisplayMode, MatAccordionTogglePosition, MatExpansionPanelDefaultOptions, MatExpansionPanelState };
|
|
@@ -43,22 +43,14 @@ class MatAutocompleteSelectedEvent {
|
|
|
43
43
|
/** Injection token to be used to override the default options for `mat-autocomplete`. */
|
|
44
44
|
const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS = new InjectionToken('mat-autocomplete-default-options', {
|
|
45
45
|
providedIn: 'root',
|
|
46
|
-
factory:
|
|
47
|
-
});
|
|
48
|
-
/**
|
|
49
|
-
* @docs-private
|
|
50
|
-
* @deprecated No longer used, will be removed.
|
|
51
|
-
* @breaking-change 21.0.0
|
|
52
|
-
*/
|
|
53
|
-
function MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY() {
|
|
54
|
-
return {
|
|
46
|
+
factory: () => ({
|
|
55
47
|
autoActiveFirstOption: false,
|
|
56
48
|
autoSelectActiveOption: false,
|
|
57
49
|
hideSingleSelectionIndicator: false,
|
|
58
50
|
requireSelection: false,
|
|
59
51
|
hasBackdrop: false,
|
|
60
|
-
}
|
|
61
|
-
}
|
|
52
|
+
}),
|
|
53
|
+
});
|
|
62
54
|
/** Autocomplete component. */
|
|
63
55
|
class MatAutocomplete {
|
|
64
56
|
_changeDetectorRef = inject(ChangeDetectorRef);
|
|
@@ -341,25 +333,6 @@ const MAT_AUTOCOMPLETE_SCROLL_STRATEGY = new InjectionToken('mat-autocomplete-sc
|
|
|
341
333
|
return () => createRepositionScrollStrategy(injector);
|
|
342
334
|
},
|
|
343
335
|
});
|
|
344
|
-
/**
|
|
345
|
-
* @docs-private
|
|
346
|
-
* @deprecated No longer used, will be removed.
|
|
347
|
-
* @breaking-change 21.0.0
|
|
348
|
-
*/
|
|
349
|
-
function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(_overlay) {
|
|
350
|
-
const injector = inject(Injector);
|
|
351
|
-
return () => createRepositionScrollStrategy(injector);
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* @docs-private
|
|
355
|
-
* @deprecated No longer used, will be removed.
|
|
356
|
-
* @breaking-change 21.0.0
|
|
357
|
-
*/
|
|
358
|
-
const MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
359
|
-
provide: MAT_AUTOCOMPLETE_SCROLL_STRATEGY,
|
|
360
|
-
deps: [],
|
|
361
|
-
useFactory: MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY,
|
|
362
|
-
};
|
|
363
336
|
/** Base class with all of the `MatAutocompleteTrigger` functionality. */
|
|
364
337
|
class MatAutocompleteTrigger {
|
|
365
338
|
_environmentInjector = inject(EnvironmentInjector);
|
|
@@ -1224,7 +1197,7 @@ class MatAutocompleteModule {
|
|
|
1224
1197
|
MatCommonModule,
|
|
1225
1198
|
MatAutocompleteTrigger,
|
|
1226
1199
|
MatAutocompleteOrigin] });
|
|
1227
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatAutocompleteModule,
|
|
1200
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatAutocompleteModule, imports: [OverlayModule,
|
|
1228
1201
|
MatOptionModule,
|
|
1229
1202
|
MatCommonModule, CdkScrollableModule,
|
|
1230
1203
|
MatOptionModule,
|
|
@@ -1249,9 +1222,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2",
|
|
|
1249
1222
|
MatAutocompleteTrigger,
|
|
1250
1223
|
MatAutocompleteOrigin,
|
|
1251
1224
|
],
|
|
1252
|
-
providers: [MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER],
|
|
1253
1225
|
}]
|
|
1254
1226
|
}] });
|
|
1255
1227
|
|
|
1256
|
-
export { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,
|
|
1228
|
+
export { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MAT_AUTOCOMPLETE_SCROLL_STRATEGY, MAT_AUTOCOMPLETE_VALUE_ACCESSOR, MatAutocomplete, MatAutocompleteModule, MatAutocompleteOrigin, MatAutocompleteSelectedEvent, MatAutocompleteTrigger, MatOption, getMatAutocompleteMissingPanelError };
|
|
1257
1229
|
//# sourceMappingURL=autocomplete.mjs.map
|