Skip to content

Commit 1b06a8e

Browse files
authored
fix(material/core): remove deprecated APIs for v21 (#31924)
Deletes APIs that were marked for removal in v21. BREAKING CHANGE: * `AnimationCurves` has been removed. * `AnimationDurations` has been removed. * `NativeDateAdapter.useUtcForDisplay` has been removed.
1 parent f9e7eff commit 1b06a8e

File tree

3 files changed

+0
-53
lines changed

3 files changed

+0
-53
lines changed

goldens/material/core/index.api.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,6 @@ import { Signal } from '@angular/core';
2929
import { Subject } from 'rxjs';
3030
import { Version } from '@angular/core';
3131

32-
// @public @deprecated (undocumented)
33-
export class AnimationCurves {
34-
// (undocumented)
35-
static ACCELERATION_CURVE: string;
36-
// (undocumented)
37-
static DECELERATION_CURVE: string;
38-
// (undocumented)
39-
static SHARP_CURVE: string;
40-
// (undocumented)
41-
static STANDARD_CURVE: string;
42-
}
43-
44-
// @public @deprecated (undocumented)
45-
export class AnimationDurations {
46-
// (undocumented)
47-
static COMPLEX: string;
48-
// (undocumented)
49-
static ENTERING: string;
50-
// (undocumented)
51-
static EXITING: string;
52-
}
53-
5432
// @public
5533
export interface AnimationsConfig {
5634
animationsDisabled?: boolean;
@@ -446,8 +424,6 @@ export class NativeDateAdapter extends DateAdapter<Date> {
446424
today(): Date;
447425
// (undocumented)
448426
toIso8601(date: Date): string;
449-
// @deprecated (undocumented)
450-
useUtcForDisplay: boolean;
451427
// (undocumented)
452428
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDateAdapter, never>;
453429
// (undocumented)

src/material/core/animation/animation.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,6 @@ export interface AnimationsConfig {
1818
/** Injection token used to configure the animations in Angular Material. */
1919
export const MATERIAL_ANIMATIONS = new InjectionToken<AnimationsConfig>('MATERIAL_ANIMATIONS');
2020

21-
/**
22-
* @deprecated No longer used, will be removed.
23-
* @breaking-change 21.0.0
24-
* @docs-private
25-
*/
26-
export class AnimationCurves {
27-
static STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';
28-
static DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';
29-
static ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';
30-
static SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';
31-
}
32-
33-
/**
34-
* @deprecated No longer used, will be removed.
35-
* @breaking-change 21.0.0
36-
* @docs-private
37-
*/
38-
export class AnimationDurations {
39-
static COMPLEX = '375ms';
40-
static ENTERING = '225ms';
41-
static EXITING = '195ms';
42-
}
43-
4421
let reducedMotion: boolean | null = null;
4522

4623
/**

src/material/core/datetime/native-date-adapter.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ function range<T>(length: number, valueFunction: (index: number) => T): T[] {
4242
/** Adapts the native JS Date for use with cdk-based components that work with dates. */
4343
@Injectable()
4444
export class NativeDateAdapter extends DateAdapter<Date> {
45-
/**
46-
* @deprecated No longer being used. To be removed.
47-
* @breaking-change 14.0.0
48-
*/
49-
useUtcForDisplay: boolean = false;
50-
5145
/** The injected locale. */
5246
private readonly _matDateLocale = inject(MAT_DATE_LOCALE, {optional: true});
5347

0 commit comments

Comments
 (0)