@angular/material
Version:
Angular Material
103 lines (97 loc) • 2.45 kB
text/typescript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {OutputNameUpgradeData, TargetVersion, VersionChanges} from '@angular/cdk/schematics';
export const outputNames: VersionChanges<OutputNameUpgradeData> = {
[TargetVersion.V6]: [
{
pr: 'https://github.com/angular/material2/pull/10163',
changes: [
{
replace: 'change',
replaceWith: 'selectionChange',
whitelist: {
elements: ['mat-select'],
},
},
{
replace: 'onClose',
replaceWith: 'closed',
whitelist: {
elements: ['mat-select'],
},
},
{
replace: 'onOpen',
replaceWith: 'opened',
whitelist: {
elements: ['mat-select'],
},
},
],
},
{
pr: 'https://github.com/angular/material2/pull/10279',
changes: [
{
replace: 'align-changed',
replaceWith: 'positionChanged',
whitelist: {
elements: ['mat-drawer', 'mat-sidenav'],
},
},
{
replace: 'close',
replaceWith: 'closed',
whitelist: {
elements: ['mat-drawer', 'mat-sidenav'],
},
},
{
replace: 'open',
replaceWith: 'opened',
whitelist: {
elements: ['mat-drawer', 'mat-sidenav'],
},
},
],
},
{
pr: 'https://github.com/angular/material2/pull/10309',
changes: [
{
replace: 'selectChange',
replaceWith: 'selectedTabChange',
whitelist: {
elements: ['mat-tab-group'],
},
},
],
},
{
pr: 'https://github.com/angular/material2/pull/10311',
changes: [
{
replace: 'remove',
replaceWith: 'removed',
whitelist: {
attributes: ['mat-chip', 'mat-basic-chip'],
elements: ['mat-chip', 'mat-basic-chip'],
},
},
{
replace: 'destroy',
replaceWith: 'destroyed',
whitelist: {
attributes: ['mat-chip', 'mat-basic-chip'],
elements: ['mat-chip', 'mat-basic-chip'],
},
},
],
},
],
};