diff --git a/src/cdk/a11y/aria-describer/aria-describer.ts b/src/cdk/a11y/aria-describer/aria-describer.ts index 40664b1929db..ae866c1e074d 100644 --- a/src/cdk/a11y/aria-describer/aria-describer.ts +++ b/src/cdk/a11y/aria-describer/aria-describer.ts @@ -225,12 +225,12 @@ export class AriaDescriber implements OnDestroy { } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export function ARIA_DESCRIBER_PROVIDER_FACTORY(parentDispatcher: AriaDescriber, _document: any) { return parentDispatcher || new AriaDescriber(_document); } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export const ARIA_DESCRIBER_PROVIDER = { // If there is already an AriaDescriber available, use that. Otherwise, provide a new one. provide: AriaDescriber, diff --git a/src/cdk/a11y/focus-monitor/focus-monitor.ts b/src/cdk/a11y/focus-monitor/focus-monitor.ts index 938184eb767e..2dedfebed415 100644 --- a/src/cdk/a11y/focus-monitor/focus-monitor.ts +++ b/src/cdk/a11y/focus-monitor/focus-monitor.ts @@ -445,13 +445,13 @@ export class CdkMonitorFocus implements OnDestroy { } } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export function FOCUS_MONITOR_PROVIDER_FACTORY( parentDispatcher: FocusMonitor, ngZone: NgZone, platform: Platform) { return parentDispatcher || new FocusMonitor(ngZone, platform); } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export const FOCUS_MONITOR_PROVIDER = { // If there is already a FocusMonitor available, use that. Otherwise, provide a new one. provide: FocusMonitor, diff --git a/src/cdk/a11y/focus-trap/focus-trap.ts b/src/cdk/a11y/focus-trap/focus-trap.ts index 1ecadce016d7..08d068928e5b 100644 --- a/src/cdk/a11y/focus-trap/focus-trap.ts +++ b/src/cdk/a11y/focus-trap/focus-trap.ts @@ -153,15 +153,15 @@ export class FocusTrap { `[cdk-focus-${bound}]`) as NodeListOf; for (let i = 0; i < markers.length; i++) { - // @breaking-change 7.0.0 + // @breaking-change 8.0.0 if (markers[i].hasAttribute(`cdk-focus-${bound}`)) { console.warn(`Found use of deprecated attribute 'cdk-focus-${bound}', ` + `use 'cdkFocusRegion${bound}' instead. The deprecated ` + - `attribute will be removed in 7.0.0.`, markers[i]); + `attribute will be removed in 8.0.0.`, markers[i]); } else if (markers[i].hasAttribute(`cdk-focus-region-${bound}`)) { console.warn(`Found use of deprecated attribute 'cdk-focus-region-${bound}', ` + `use 'cdkFocusRegion${bound}' instead. The deprecated attribute ` + - `will be removed in 7.0.0.`, markers[i]); + `will be removed in 8.0.0.`, markers[i]); } } @@ -182,11 +182,11 @@ export class FocusTrap { `[cdkFocusInitial]`) as HTMLElement; if (redirectToElement) { - // @breaking-change 7.0.0 + // @breaking-change 8.0.0 if (redirectToElement.hasAttribute(`cdk-focus-initial`)) { console.warn(`Found use of deprecated attribute 'cdk-focus-initial', ` + `use 'cdkFocusInitial' instead. The deprecated attribute ` + - `will be removed in 7.0.0`, redirectToElement); + `will be removed in 8.0.0`, redirectToElement); } redirectToElement.focus(); diff --git a/src/cdk/a11y/key-manager/list-key-manager.ts b/src/cdk/a11y/key-manager/list-key-manager.ts index c3478ad82355..3e3e1e8f76e6 100644 --- a/src/cdk/a11y/key-manager/list-key-manager.ts +++ b/src/cdk/a11y/key-manager/list-key-manager.ts @@ -305,7 +305,7 @@ export class ListKeyManager { * Allows setting of the activeItemIndex without any other effects. * @param index The new activeItemIndex. * @deprecated Use `updateActiveItem` instead. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ updateActiveItemIndex(index: number): void { this.updateActiveItem(index); diff --git a/src/cdk/a11y/live-announcer/live-announcer.ts b/src/cdk/a11y/live-announcer/live-announcer.ts index f0887b8cea9a..0d5a8d7dfa15 100644 --- a/src/cdk/a11y/live-announcer/live-announcer.ts +++ b/src/cdk/a11y/live-announcer/live-announcer.ts @@ -147,14 +147,14 @@ export class CdkAriaLive implements OnDestroy { } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export function LIVE_ANNOUNCER_PROVIDER_FACTORY( parentDispatcher: LiveAnnouncer, liveElement: any, _document: any, ngZone: NgZone) { return parentDispatcher || new LiveAnnouncer(liveElement, _document, ngZone); } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export const LIVE_ANNOUNCER_PROVIDER: Provider = { // If there is already a LiveAnnouncer available, use that. Otherwise, provide a new one. provide: LiveAnnouncer, diff --git a/src/cdk/overlay/keyboard/overlay-keyboard-dispatcher.ts b/src/cdk/overlay/keyboard/overlay-keyboard-dispatcher.ts index 48b5ad78440e..9a6783b73cf4 100644 --- a/src/cdk/overlay/keyboard/overlay-keyboard-dispatcher.ts +++ b/src/cdk/overlay/keyboard/overlay-keyboard-dispatcher.ts @@ -96,13 +96,13 @@ export class OverlayKeyboardDispatcher implements OnDestroy { } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export function OVERLAY_KEYBOARD_DISPATCHER_PROVIDER_FACTORY( dispatcher: OverlayKeyboardDispatcher, _document: any) { return dispatcher || new OverlayKeyboardDispatcher(_document); } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export const OVERLAY_KEYBOARD_DISPATCHER_PROVIDER = { // If there is already an OverlayKeyboardDispatcher available, use that. // Otherwise, provide a new one. diff --git a/src/cdk/overlay/overlay-container.ts b/src/cdk/overlay/overlay-container.ts index 0b043bc80050..f034691e478c 100644 --- a/src/cdk/overlay/overlay-container.ts +++ b/src/cdk/overlay/overlay-container.ts @@ -55,13 +55,13 @@ export class OverlayContainer implements OnDestroy { } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export function OVERLAY_CONTAINER_PROVIDER_FACTORY(parentContainer: OverlayContainer, _document: any) { return parentContainer || new OverlayContainer(_document); } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export const OVERLAY_CONTAINER_PROVIDER = { // If there is already an OverlayContainer available, use that. Otherwise, provide a new one. provide: OverlayContainer, diff --git a/src/cdk/overlay/overlay-directives.ts b/src/cdk/overlay/overlay-directives.ts index ef51ee15c6e7..8545bdb34638 100644 --- a/src/cdk/overlay/overlay-directives.ts +++ b/src/cdk/overlay/overlay-directives.ts @@ -73,7 +73,7 @@ const defaultPositionList: ConnectedPosition[] = [ export const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = new InjectionToken<() => ScrollStrategy>('cdk-connected-overlay-scroll-strategy'); -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export function CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy { return (config?: RepositionScrollStrategyConfig) => overlay.scrollStrategies.reposition(config); diff --git a/src/cdk/overlay/overlay-module.ts b/src/cdk/overlay/overlay-module.ts index af098014f465..afbabedad183 100644 --- a/src/cdk/overlay/overlay-module.ts +++ b/src/cdk/overlay/overlay-module.ts @@ -35,7 +35,7 @@ export class OverlayModule {} /** * @deprecated Use `OverlayModule` instead. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 * @docs-private */ export const OVERLAY_PROVIDERS: Provider[] = [ diff --git a/src/cdk/overlay/position/connected-position-strategy.ts b/src/cdk/overlay/position/connected-position-strategy.ts index 8f95424c32fd..f8f147fd6598 100644 --- a/src/cdk/overlay/position/connected-position-strategy.ts +++ b/src/cdk/overlay/position/connected-position-strategy.ts @@ -28,7 +28,7 @@ import {OverlayReference} from '../overlay-reference'; * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner * of the overlay. * @deprecated Use `FlexibleConnectedPositionStrategy` instead. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ export class ConnectedPositionStrategy implements PositionStrategy { /** @@ -61,7 +61,7 @@ export class ConnectedPositionStrategy implements PositionStrategy { connectedTo: ElementRef, viewportRuler: ViewportRuler, document: Document, - // @breaking-change 7.0.0 `platform` parameter to be made required. + // @breaking-change 8.0.0 `platform` parameter to be made required. platform?: Platform) { // Since the `ConnectedPositionStrategy` is deprecated and we don't want to maintain diff --git a/src/cdk/overlay/position/flexible-connected-position-strategy.ts b/src/cdk/overlay/position/flexible-connected-position-strategy.ts index 2e9fd387cba2..fb22a2f5ab1a 100644 --- a/src/cdk/overlay/position/flexible-connected-position-strategy.ts +++ b/src/cdk/overlay/position/flexible-connected-position-strategy.ts @@ -142,7 +142,7 @@ export class FlexibleConnectedPositionStrategy implements PositionStrategy { connectedTo: ElementRef | HTMLElement, private _viewportRuler: ViewportRuler, private _document: Document, - // @breaking-change 7.0.0 `_platform` and `_overlayContainer` parameters to be made required. + // @breaking-change 8.0.0 `_platform` and `_overlayContainer` parameters to be made required. private _platform?: Platform, private _overlayContainer?: OverlayContainer) { this.setOrigin(connectedTo); @@ -190,7 +190,7 @@ export class FlexibleConnectedPositionStrategy implements PositionStrategy { */ apply(): void { // We shouldn't do anything if the strategy was disposed or we're on the server. - // @breaking-change 7.0.0 Remove `_platform` null check once it's guaranteed to be defined. + // @breaking-change 8.0.0 Remove `_platform` null check once it's guaranteed to be defined. if (this._isDisposed || (this._platform && !this._platform.isBrowser)) { return; } @@ -918,7 +918,7 @@ export class FlexibleConnectedPositionStrategy implements PositionStrategy { overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition); } - // @breaking-change 7.0.0 Currently the `_overlayContainer` is optional in order to avoid a + // @breaking-change 8.0.0 Currently the `_overlayContainer` is optional in order to avoid a // breaking change. The null check here can be removed once the `_overlayContainer` becomes // a required parameter. let virtualKeyboardOffset = this._overlayContainer ? diff --git a/src/cdk/overlay/position/global-position-strategy.ts b/src/cdk/overlay/position/global-position-strategy.ts index 074c7c2fcccf..610515960c82 100644 --- a/src/cdk/overlay/position/global-position-strategy.ts +++ b/src/cdk/overlay/position/global-position-strategy.ts @@ -97,7 +97,7 @@ export class GlobalPositionStrategy implements PositionStrategy { * Sets the overlay width and clears any previously set width. * @param value New width for the overlay * @deprecated Pass the `width` through the `OverlayConfig`. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ width(value: string = ''): this { if (this._overlayRef) { @@ -113,7 +113,7 @@ export class GlobalPositionStrategy implements PositionStrategy { * Sets the overlay height and clears any previously set height. * @param value New height for the overlay * @deprecated Pass the `height` through the `OverlayConfig`. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ height(value: string = ''): this { if (this._overlayRef) { diff --git a/src/cdk/overlay/position/overlay-position-builder.ts b/src/cdk/overlay/position/overlay-position-builder.ts index 864c30a3b037..fa8ef74b46f0 100644 --- a/src/cdk/overlay/position/overlay-position-builder.ts +++ b/src/cdk/overlay/position/overlay-position-builder.ts @@ -23,7 +23,7 @@ export class OverlayPositionBuilder { constructor( private _viewportRuler: ViewportRuler, @Inject(DOCUMENT) private _document: any, - // @breaking-change 7.0.0 `_platform` and `_overlayContainer` parameters to be made required. + // @breaking-change 8.0.0 `_platform` and `_overlayContainer` parameters to be made required. @Optional() private _platform?: Platform, @Optional() private _overlayContainer?: OverlayContainer) { } @@ -40,7 +40,7 @@ export class OverlayPositionBuilder { * @param originPos * @param overlayPos * @deprecated Use `flexibleConnectedTo` instead. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ connectedTo( elementRef: ElementRef, diff --git a/src/cdk/platform/platform.ts b/src/cdk/platform/platform.ts index 6596c718a1a2..7dba55ec97b5 100755 --- a/src/cdk/platform/platform.ts +++ b/src/cdk/platform/platform.ts @@ -68,7 +68,7 @@ export class Platform { SAFARI: boolean = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT; /** - * @breaking-change v7.0.0 remove optional decorator + * @breaking-change 8.0.0 remove optional decorator */ constructor(@Optional() @Inject(PLATFORM_ID) private _platformId?: Object) { } diff --git a/src/cdk/scrolling/scroll-dispatcher.ts b/src/cdk/scrolling/scroll-dispatcher.ts index 99ab18927d51..bf96307d2dda 100644 --- a/src/cdk/scrolling/scroll-dispatcher.ts +++ b/src/cdk/scrolling/scroll-dispatcher.ts @@ -174,13 +174,13 @@ export class ScrollDispatcher implements OnDestroy { } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export function SCROLL_DISPATCHER_PROVIDER_FACTORY( parentDispatcher: ScrollDispatcher, ngZone: NgZone, platform: Platform) { return parentDispatcher || new ScrollDispatcher(ngZone, platform); } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export const SCROLL_DISPATCHER_PROVIDER = { // If there is already a ScrollDispatcher available, use that. Otherwise, provide a new one. provide: ScrollDispatcher, diff --git a/src/cdk/scrolling/viewport-ruler.ts b/src/cdk/scrolling/viewport-ruler.ts index a94822d531f7..134dd75f98ac 100644 --- a/src/cdk/scrolling/viewport-ruler.ts +++ b/src/cdk/scrolling/viewport-ruler.ts @@ -134,14 +134,14 @@ export class ViewportRuler implements OnDestroy { } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export function VIEWPORT_RULER_PROVIDER_FACTORY(parentRuler: ViewportRuler, platform: Platform, ngZone: NgZone) { return parentRuler || new ViewportRuler(platform, ngZone); } -/** @docs-private @deprecated @breaking-change 7.0.0 */ +/** @docs-private @deprecated @breaking-change 8.0.0 */ export const VIEWPORT_RULER_PROVIDER = { // If there is already a ViewportRuler available, use that. Otherwise, provide a new one. provide: ViewportRuler, diff --git a/src/cdk/stepper/stepper.ts b/src/cdk/stepper/stepper.ts index c8ad3c16140b..d2af09b354eb 100644 --- a/src/cdk/stepper/stepper.ts +++ b/src/cdk/stepper/stepper.ts @@ -275,7 +275,7 @@ export class CdkStepper implements AfterViewInit, OnDestroy { /** The step that is selected. */ @Input() get selected(): CdkStep { - // @breaking-change 7.0.0 Change return type to `CdkStep | undefined`. + // @breaking-change 8.0.0 Change return type to `CdkStep | undefined`. return this._steps ? this._steps.toArray()[this.selectedIndex] : undefined!; } set selected(step: CdkStep) { diff --git a/src/lib/autocomplete/autocomplete-trigger.ts b/src/lib/autocomplete/autocomplete-trigger.ts index 0e9f3bcfa2f4..1157615f381c 100644 --- a/src/lib/autocomplete/autocomplete-trigger.ts +++ b/src/lib/autocomplete/autocomplete-trigger.ts @@ -198,7 +198,7 @@ export class MatAutocompleteTrigger implements ControlValueAccessor, OnDestroy { @Optional() private _dir: Directionality, @Optional() @Host() private _formField: MatFormField, @Optional() @Inject(DOCUMENT) private _document: any, - // @breaking-change 7.0.0 Make `_viewportRuler` required. + // @breaking-change 8.0.0 Make `_viewportRuler` required. private _viewportRuler?: ViewportRuler) { if (typeof window !== 'undefined') { diff --git a/src/lib/button-toggle/button-toggle.ts b/src/lib/button-toggle/button-toggle.ts index e4788b4a8a76..e827ab303196 100644 --- a/src/lib/button-toggle/button-toggle.ts +++ b/src/lib/button-toggle/button-toggle.ts @@ -75,7 +75,7 @@ export const MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR: any = { /** * @deprecated Use `MatButtonToggleGroup` instead. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ export class MatButtonToggleGroupMultiple {} diff --git a/src/lib/button/button.ts b/src/lib/button/button.ts index 20343e0db528..000527117994 100644 --- a/src/lib/button/button.ts +++ b/src/lib/button/button.ts @@ -94,12 +94,12 @@ export class MatButton extends _MatButtonMixinBase constructor(elementRef: ElementRef, /** * @deprecated Platform checks for SSR are no longer needed - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ // tslint:disable-next-line:no-unused-variable private _platform: Platform, private _focusMonitor: FocusMonitor, - // @breaking-change 7.0.0 `_animationMode` parameter to be made required. + // @breaking-change 8.0.0 `_animationMode` parameter to be made required. @Optional() @Inject(ANIMATION_MODULE_TYPE) public _animationMode?: string) { super(elementRef); @@ -173,7 +173,7 @@ export class MatAnchor extends MatButton { platform: Platform, focusMonitor: FocusMonitor, elementRef: ElementRef, - // @breaking-change 7.0.0 `animationMode` parameter to be made required. + // @breaking-change 8.0.0 `animationMode` parameter to be made required. @Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string) { super(elementRef, platform, focusMonitor, animationMode); } diff --git a/src/lib/core/datetime/date-adapter.ts b/src/lib/core/datetime/date-adapter.ts index 6b290d1a3384..baf26d0e2e38 100644 --- a/src/lib/core/datetime/date-adapter.ts +++ b/src/lib/core/datetime/date-adapter.ts @@ -24,7 +24,7 @@ export function MAT_DATE_LOCALE_FACTORY(): string { * No longer needed since MAT_DATE_LOCALE has been changed to a scoped injectable. * If you are importing and providing this in your code you can simply remove it. * @deprecated - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ export const MAT_DATE_LOCALE_PROVIDER = {provide: MAT_DATE_LOCALE, useExisting: LOCALE_ID}; diff --git a/src/lib/core/gestures/gesture-config.ts b/src/lib/core/gestures/gesture-config.ts index 39baa616551b..148b87931b38 100644 --- a/src/lib/core/gestures/gesture-config.ts +++ b/src/lib/core/gestures/gesture-config.ts @@ -80,7 +80,7 @@ export class GestureConfig extends HammerGestureConfig { // `this.events` to the set we support, instead of conditionally setting it to `[]` if // `HAMMER_LOADER` is present (and then throwing an Error here if `window.Hammer` is // undefined). - // @breaking-change 7.0.0 + // @breaking-change 8.0.0 return noopHammerInstance; } diff --git a/src/lib/core/theming/_palette.scss b/src/lib/core/theming/_palette.scss index c6dda4f1fd07..dd6ccfc5d643 100644 --- a/src/lib/core/theming/_palette.scss +++ b/src/lib/core/theming/_palette.scss @@ -7,22 +7,22 @@ // @deprecated renamed to $dark-primary-text. -// @breaking-change 7.0.0 +// @breaking-change 8.0.0 $black-87-opacity: rgba(black, 0.87); // @deprecated renamed to $light-primary-text. -// @breaking-change 7.0.0 +// @breaking-change 8.0.0 $white-87-opacity: rgba(white, 0.87); // @deprecated use $dark-[secondary-text,disabled-text,dividers,focused] instead. -// @breaking-change 7.0.0 +// @breaking-change 8.0.0 $black-12-opacity: rgba(black, 0.12); // @deprecated use $light-[secondary-text,disabled-text,dividers,focused] instead. -// @breaking-change 7.0.0 +// @breaking-change 8.0.0 $white-12-opacity: rgba(white, 0.12); // @deprecated use $dark-[secondary-text,disabled-text,dividers,focused] instead. -// @breaking-change 7.0.0 +// @breaking-change 8.0.0 $black-6-opacity: rgba(black, 0.06); // @deprecated use $light-[secondary-text,disabled-text,dividers,focused] instead. -// @breaking-change 7.0.0 +// @breaking-change 8.0.0 $white-6-opacity: rgba(white, 0.06); $dark-primary-text: rgba(black, 0.87); diff --git a/src/lib/datepicker/datepicker-input.ts b/src/lib/datepicker/datepicker-input.ts index c15d745ef07f..6d48626d713a 100644 --- a/src/lib/datepicker/datepicker-input.ts +++ b/src/lib/datepicker/datepicker-input.ts @@ -276,7 +276,7 @@ export class MatDatepickerInput implements ControlValueAccessor, OnDestroy, V /** * @deprecated - * @breaking-change 7.0.0 Use `getConnectedOverlayOrigin` instead + * @breaking-change 8.0.0 Use `getConnectedOverlayOrigin` instead */ getPopupConnectionElementRef(): ElementRef { return this.getConnectedOverlayOrigin(); diff --git a/src/lib/form-field/_form-field-legacy-theme.scss b/src/lib/form-field/_form-field-legacy-theme.scss index 4e718bc23d13..1203d33eaa8d 100644 --- a/src/lib/form-field/_form-field-legacy-theme.scss +++ b/src/lib/form-field/_form-field-legacy-theme.scss @@ -107,7 +107,7 @@ $mat-form-field-legacy-dedupe: 0; $subscript-font-scale, $infix-padding, $infix-margin-top); } - // @breaking-change 7.0.0 will rely on AutofillMonitor instead. + // @breaking-change 8.0.0 will rely on AutofillMonitor instead. .mat-form-field-autofill-control:-webkit-autofill + .mat-form-field-label-wrapper .mat-form-field-label { @include _mat-form-field-legacy-label-floating( @@ -153,7 +153,7 @@ $mat-form-field-legacy-dedupe: 0; $subscript-font-scale, $infix-padding, $infix-margin-top); } - // @breaking-change 7.0.0 will rely on AutofillMonitor instead. + // @breaking-change 8.0.0 will rely on AutofillMonitor instead. .mat-form-field-autofill-control:-webkit-autofill + .mat-form-field-label-wrapper .mat-form-field-label { @include _mat-form-field-legacy-label-floating-print( diff --git a/src/lib/form-field/form-field.scss b/src/lib/form-field/form-field.scss index be43e14afffd..24f079973978 100644 --- a/src/lib/form-field/form-field.scss +++ b/src/lib/form-field/form-field.scss @@ -116,7 +116,7 @@ $mat-form-field-default-infix-width: 180px !default; // This is necessary because these browsers do not actually fire any events when a form auto-fill is // occurring. Once the autofill is committed, a change event happen and the regular mat-form-field // classes take over to fulfill this behaviour. -// @breaking-change 7.0.0 will rely on AutofillMonitor instead. +// @breaking-change 8.0.0 will rely on AutofillMonitor instead. .mat-form-field-autofill-control:-webkit-autofill + .mat-form-field-label-wrapper .mat-form-field-label { // The form field will be considered empty if it is autofilled, and therefore the label will diff --git a/src/lib/form-field/form-field.ts b/src/lib/form-field/form-field.ts index a4e88d549f80..1081f697037f 100644 --- a/src/lib/form-field/form-field.ts +++ b/src/lib/form-field/form-field.ts @@ -221,7 +221,7 @@ export class MatFormField extends _MatFormFieldMixinBase /** * @deprecated - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ @ViewChild('underline') underlineRef: ElementRef; @@ -243,7 +243,7 @@ export class MatFormField extends _MatFormFieldMixinBase @Optional() private _dir: Directionality, @Optional() @Inject(MAT_FORM_FIELD_DEFAULT_OPTIONS) private _defaults: MatFormFieldDefaultOptions, - // @breaking-change 7.0.0 _platform, _ngZone and _animationMode to be made required. + // @breaking-change 8.0.0 _platform, _ngZone and _animationMode to be made required. private _platform?: Platform, private _ngZone?: NgZone, @Optional() @Inject(ANIMATION_MODULE_TYPE) _animationMode?: string) { @@ -508,7 +508,7 @@ export class MatFormField extends _MatFormFieldMixinBase /** Updates the outline gap the new time the zone stabilizes. */ private _updateOutlineGapOnStable() { - // @breaking-change 7.0.0 Remove this check and else block once _ngZone is required. + // @breaking-change 8.0.0 Remove this check and else block once _ngZone is required. if (this._ngZone) { this._ngZone.onStable.pipe(take(1)).subscribe(() => this.updateOutlineGap()); } else { diff --git a/src/lib/input/autosize.ts b/src/lib/input/autosize.ts index e7381abe0ba8..b12ad6cb97a0 100644 --- a/src/lib/input/autosize.ts +++ b/src/lib/input/autosize.ts @@ -15,7 +15,7 @@ export const _CdkTextareaAutosize = CdkTextareaAutosize; /** * Directive to automatically resize a textarea to fit its content. * @deprecated Use `cdkTextareaAutosize` from `@angular/cdk/text-field` instead. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ @Directive({ selector: 'textarea[mat-autosize], textarea[matTextareaAutosize]', diff --git a/src/lib/input/input.ts b/src/lib/input/input.ts index df26d845cc75..e383ac5a0762 100644 --- a/src/lib/input/input.ts +++ b/src/lib/input/input.ts @@ -69,7 +69,7 @@ export const _MatInputMixinBase: CanUpdateErrorStateCtor & typeof MatInputBase = exportAs: 'matInput', host: { /** - * @breaking-change 7.0.0 remove .mat-form-field-autofill-control in favor of AutofillMonitor. + * @breaking-change 8.0.0 remove .mat-form-field-autofill-control in favor of AutofillMonitor. */ 'class': 'mat-input-element mat-form-field-autofill-control', '[class.mat-input-server]': '_isServer', diff --git a/src/lib/list/list.ts b/src/lib/list/list.ts index 81e9b408e9ba..9dcaab8089b3 100644 --- a/src/lib/list/list.ts +++ b/src/lib/list/list.ts @@ -104,7 +104,7 @@ export class MatListSubheaderCssMatStyler {} exportAs: 'matListItem', host: { 'class': 'mat-list-item', - // @breaking-change 7.0.0 Remove `mat-list-item-avatar` in favor of `mat-list-item-with-avatar`. + // @breaking-change 8.0.0 Remove `mat-list-item-avatar` in favor of `mat-list-item-with-avatar`. '[class.mat-list-item-avatar]': '_avatar || _icon', '[class.mat-list-item-with-avatar]': '_avatar || _icon', }, diff --git a/src/lib/menu/menu-animations.ts b/src/lib/menu/menu-animations.ts index ef5780bd07ae..79dd1b194fc1 100644 --- a/src/lib/menu/menu-animations.ts +++ b/src/lib/menu/menu-animations.ts @@ -65,14 +65,14 @@ export const matMenuAnimations: { /** * @deprecated - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 * @docs-private */ export const fadeInItems = matMenuAnimations.fadeInItems; /** * @deprecated - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 * @docs-private */ export const transformMenu = matMenuAnimations.transformMenu; diff --git a/src/lib/menu/menu-directive.ts b/src/lib/menu/menu-directive.ts index 008ce1056c6d..f7147cdc7d28 100644 --- a/src/lib/menu/menu-directive.ts +++ b/src/lib/menu/menu-directive.ts @@ -162,7 +162,7 @@ export class MatMenu implements AfterContentInit, MatMenuPanel, OnI /** * List of the items inside of a menu. * @deprecated - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ @ContentChildren(MatMenuItem) items: QueryList; @@ -211,7 +211,7 @@ export class MatMenu implements AfterContentInit, MatMenuPanel, OnI * menu template that displays in the overlay container. Otherwise, it's difficult * to style the containing menu from outside the component. * @deprecated Use `panelClass` instead. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ @Input() get classList(): string { return this.panelClass; } @@ -224,7 +224,7 @@ export class MatMenu implements AfterContentInit, MatMenuPanel, OnI /** * Event emitted when the menu is closed. * @deprecated Switch to `closed` instead - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ @Output() close = this.closed; @@ -371,13 +371,13 @@ export class MatMenu implements AfterContentInit, MatMenuPanel, OnI /** Starts the enter animation. */ _startAnimation() { - // @breaking-change 7.0.0 Combine with _resetAnimation. + // @breaking-change 8.0.0 Combine with _resetAnimation. this._panelAnimationState = 'enter'; } /** Resets the panel animation to its initial state. */ _resetAnimation() { - // @breaking-change 7.0.0 Combine with _startAnimation. + // @breaking-change 8.0.0 Combine with _startAnimation. this._panelAnimationState = 'void'; } diff --git a/src/lib/menu/menu-item.ts b/src/lib/menu/menu-item.ts index 2457e16eded5..c19a40b01848 100644 --- a/src/lib/menu/menu-item.ts +++ b/src/lib/menu/menu-item.ts @@ -76,7 +76,7 @@ export class MatMenuItem extends _MatMenuItemMixinBase private _focusMonitor?: FocusMonitor, @Inject(MAT_MENU_PANEL) @Optional() private _parentMenu?: MatMenuPanel) { - // @breaking-change 7.0.0 make `_focusMonitor` and `document` required params. + // @breaking-change 8.0.0 make `_focusMonitor` and `document` required params. super(); if (_focusMonitor) { diff --git a/src/lib/menu/menu-trigger.ts b/src/lib/menu/menu-trigger.ts index 0f6ddb9749de..190d8ff0cf8b 100644 --- a/src/lib/menu/menu-trigger.ts +++ b/src/lib/menu/menu-trigger.ts @@ -91,7 +91,7 @@ export class MatMenuTrigger implements AfterContentInit, OnDestroy { /** * @deprecated - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ @Input('mat-menu-trigger-for') get _deprecatedMatMenuTriggerFor(): MatMenuPanel { @@ -114,7 +114,7 @@ export class MatMenuTrigger implements AfterContentInit, OnDestroy { /** * Event emitted when the associated menu is opened. * @deprecated Switch to `menuOpened` instead - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ // tslint:disable-next-line:no-output-on-prefix @Output() readonly onMenuOpen: EventEmitter = this.menuOpened; @@ -125,7 +125,7 @@ export class MatMenuTrigger implements AfterContentInit, OnDestroy { /** * Event emitted when the associated menu is closed. * @deprecated Switch to `menuClosed` instead - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ // tslint:disable-next-line:no-output-on-prefix @Output() readonly onMenuClose: EventEmitter = this.menuClosed; @@ -138,7 +138,7 @@ export class MatMenuTrigger implements AfterContentInit, OnDestroy { @Optional() @Self() private _menuItemInstance: MatMenuItem, @Optional() private _dir: Directionality, // TODO(crisbeto): make the _focusMonitor required when doing breaking changes. - // @breaking-change 7.0.0 + // @breaking-change 8.0.0 private _focusMonitor?: FocusMonitor) { if (_menuItemInstance) { diff --git a/src/lib/paginator/paginator.ts b/src/lib/paginator/paginator.ts index 4c71f6e7b45d..f6eefab4bcea 100644 --- a/src/lib/paginator/paginator.ts +++ b/src/lib/paginator/paginator.ts @@ -40,7 +40,7 @@ export class PageEvent { /** * Index of the page that was selected previously. - * @breaking-change 7.0.0 To be made into a required property. + * @breaking-change 8.0.0 To be made into a required property. */ previousPageIndex?: number; diff --git a/src/lib/progress-spinner/progress-spinner.ts b/src/lib/progress-spinner/progress-spinner.ts index 13c29e76c399..ce207dcb2e11 100644 --- a/src/lib/progress-spinner/progress-spinner.ts +++ b/src/lib/progress-spinner/progress-spinner.ts @@ -178,7 +178,7 @@ export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements constructor(public _elementRef: ElementRef, platform: Platform, @Optional() @Inject(DOCUMENT) private _document: any, - // @breaking-change 7.0.0 animationMode and defaults parameters to be made required. + // @breaking-change 8.0.0 animationMode and defaults parameters to be made required. @Optional() @Inject(ANIMATION_MODULE_TYPE) private animationMode?: string, @Inject(MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS) private defaults?: MatProgressSpinnerDefaultOptions) { @@ -293,7 +293,7 @@ export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements export class MatSpinner extends MatProgressSpinner { constructor(elementRef: ElementRef, platform: Platform, @Optional() @Inject(DOCUMENT) document: any, - // @breaking-changes 7.0.0 animationMode and defaults parameters to be made required. + // @breaking-change 8.0.0 animationMode and defaults parameters to be made required. @Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string, @Inject(MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS) defaults?: MatProgressSpinnerDefaultOptions) { diff --git a/src/lib/select/select-animations.ts b/src/lib/select/select-animations.ts index e11f2d9c22df..4327e62e05a3 100644 --- a/src/lib/select/select-animations.ts +++ b/src/lib/select/select-animations.ts @@ -74,14 +74,14 @@ export const matSelectAnimations: { /** * @deprecated - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 * @docs-private */ export const transformPanel = matSelectAnimations.transformPanel; /** * @deprecated - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 * @docs-private */ export const fadeInContent = matSelectAnimations.fadeInContent; diff --git a/src/lib/slide-toggle/slide-toggle.ts b/src/lib/slide-toggle/slide-toggle.ts index 121622696dcf..6c48b2f5dada 100644 --- a/src/lib/slide-toggle/slide-toggle.ts +++ b/src/lib/slide-toggle/slide-toggle.ts @@ -183,7 +183,7 @@ export class MatSlideToggle extends _MatSlideToggleMixinBase implements OnDestro constructor(elementRef: ElementRef, /** * @deprecated The `_platform` parameter to be removed. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ _platform: Platform, private _focusMonitor: FocusMonitor, diff --git a/src/lib/slider/slider.ts b/src/lib/slider/slider.ts index cd2381c2df0d..f029b51a71ce 100644 --- a/src/lib/slider/slider.ts +++ b/src/lib/slider/slider.ts @@ -464,7 +464,7 @@ export class MatSlider extends _MatSliderMixinBase private _changeDetectorRef: ChangeDetectorRef, @Optional() private _dir: Directionality, @Attribute('tabindex') tabIndex: string, - // @breaking-change 7.0.0 `_animationMode` parameter to be made required. + // @breaking-change 8.0.0 `_animationMode` parameter to be made required. @Optional() @Inject(ANIMATION_MODULE_TYPE) public _animationMode?: string) { super(elementRef); diff --git a/src/lib/snack-bar/snack-bar-ref.ts b/src/lib/snack-bar/snack-bar-ref.ts index 60822dd149e9..e8f8d800c4f7 100644 --- a/src/lib/snack-bar/snack-bar-ref.ts +++ b/src/lib/snack-bar/snack-bar-ref.ts @@ -77,7 +77,7 @@ export class MatSnackBarRef { /** * Marks the snackbar action clicked. * @deprecated Use `dismissWithAction` instead. - * @breaking-change 7.0.0 + * @breaking-change 8.0.0 */ closeWithAction(): void { this.dismissWithAction(); diff --git a/src/lib/tabs/tab-body.ts b/src/lib/tabs/tab-body.ts index 2440d2d3c08c..9d487787e7ae 100644 --- a/src/lib/tabs/tab-body.ts +++ b/src/lib/tabs/tab-body.ts @@ -156,7 +156,7 @@ export class MatTabBody implements OnInit, OnDestroy { constructor(private _elementRef: ElementRef, @Optional() private _dir: Directionality, /** - * @breaking-change 7.0.0 changeDetectorRef to be made required. + * @breaking-change 8.0.0 changeDetectorRef to be made required. */ changeDetectorRef?: ChangeDetectorRef) { diff --git a/src/lib/tabs/tab-nav-bar/tab-nav-bar.ts b/src/lib/tabs/tab-nav-bar/tab-nav-bar.ts index 0ac5ca0f462d..2a6eeb2452de 100644 --- a/src/lib/tabs/tab-nav-bar/tab-nav-bar.ts +++ b/src/lib/tabs/tab-nav-bar/tab-nav-bar.ts @@ -113,11 +113,11 @@ export class MatTabNav extends _MatTabNavMixinBase /** * Notifies the component that the active link has been changed. - * @breaking-change 7.0.0 `element` parameter to be removed. + * @breaking-change 8.0.0 `element` parameter to be removed. */ updateActiveLink(element: ElementRef) { // Note: keeping the `element` for backwards-compat, but isn't being used for anything. - // @breaking-change 7.0.0 + // @breaking-change 8.0.0 this._activeLinkChanged = !!element; this._changeDetectorRef.markForCheck(); } @@ -227,7 +227,7 @@ export class MatTabLink extends _MatTabLinkMixinBase @Attribute('tabindex') tabIndex: string, /** * @deprecated - * @breaking-change 7.0.0 `_focusMonitor` parameter to be made required. + * @breaking-change 8.0.0 `_focusMonitor` parameter to be made required. */ private _focusMonitor?: FocusMonitor) { super();