33 * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
44 */
55
6- /** get some code from https://github.com/angular/material2 */
7-
86import { A11yModule } from '@angular/cdk/a11y' ;
97import { Direction , Directionality } from '@angular/cdk/bidi' ;
108import { coerceNumberProperty } from '@angular/cdk/coercion' ;
@@ -21,7 +19,6 @@ import {
2119 DestroyRef ,
2220 EventEmitter ,
2321 forwardRef ,
24- HOST_TAG_NAME ,
2522 inject ,
2623 Input ,
2724 NgZone ,
@@ -38,7 +35,7 @@ import { merge, Observable, of, Subscription } from 'rxjs';
3835import { delay , filter , first , startWith } from 'rxjs/operators' ;
3936
4037import { NzConfigKey , NzConfigService , WithConfig } from 'ng-zorro-antd/core/config' ;
41- import { PREFIX , warn } from 'ng-zorro-antd/core/logger' ;
38+ import { PREFIX } from 'ng-zorro-antd/core/logger' ;
4239import { NzOutletModule } from 'ng-zorro-antd/core/outlet' ;
4340import { NzSafeAny , NzSizeLDSType } from 'ng-zorro-antd/core/types' ;
4441import { wrapIntoObservable } from 'ng-zorro-antd/core/util' ;
@@ -65,7 +62,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'tabs';
6562let nextId = 0 ;
6663
6764@Component ( {
68- selector : 'nz-tabs,nz-tabset ' ,
65+ selector : 'nz-tabs' ,
6966 exportAs : 'nzTabs' ,
7067 encapsulation : ViewEncapsulation . None ,
7168 changeDetection : ChangeDetectionStrategy . Default ,
@@ -282,11 +279,6 @@ export class NzTabsComponent implements OnInit, AfterContentChecked, AfterConten
282279 constructor ( ) {
283280 this . tabSetId = nextId ++ ;
284281
285- // TODO: Remove this warning in 21.0.0
286- if ( inject ( HOST_TAG_NAME ) === 'nz-tabset' ) {
287- warn ( `${ PREFIX } <nz-tabset> is deprecated, please use <nz-tabs> instead.` ) ;
288- }
289-
290282 this . destroyRef . onDestroy ( ( ) => {
291283 this . tabs . destroy ( ) ;
292284 this . tabLabelSubscription . unsubscribe ( ) ;
@@ -526,8 +518,3 @@ export class NzTabsComponent implements OnInit, AfterContentChecked, AfterConten
526518 : false ;
527519 }
528520}
529-
530- /**
531- * @deprecated Use `NzTabsComponent` instead. This will be removed in 21.0.0.
532- */
533- export const NzTabSetComponent = NzTabsComponent ;
0 commit comments