UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

51 lines 5.13 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Directive, Host, Optional, Self } from '@angular/core'; import * as i0 from "@angular/core"; import * as i1 from "@angular/router"; /** * Fix https://github.com/angular/angular/issues/8563 */ export class NzTabLinkTemplateDirective { constructor(templateRef) { this.templateRef = templateRef; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: NzTabLinkTemplateDirective, deps: [{ token: i0.TemplateRef, host: true }], target: i0.ɵɵFactoryTarget.Directive }); } static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.4", type: NzTabLinkTemplateDirective, isStandalone: true, selector: "ng-template[nzTabLink]", exportAs: ["nzTabLinkTemplate"], ngImport: i0 }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: NzTabLinkTemplateDirective, decorators: [{ type: Directive, args: [{ selector: 'ng-template[nzTabLink]', exportAs: 'nzTabLinkTemplate', standalone: true }] }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{ type: Host }] }] }); /** * This component is for catching `routerLink` directive. */ export class NzTabLinkDirective { constructor(elementRef, routerLink) { this.elementRef = elementRef; this.routerLink = routerLink; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: NzTabLinkDirective, deps: [{ token: i0.ElementRef }, { token: i1.RouterLink, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); } static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.4", type: NzTabLinkDirective, isStandalone: true, selector: "a[nz-tab-link]", exportAs: ["nzTabLink"], ngImport: i0 }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: NzTabLinkDirective, decorators: [{ type: Directive, args: [{ selector: 'a[nz-tab-link]', exportAs: 'nzTabLink', standalone: true }] }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.RouterLink, decorators: [{ type: Optional }, { type: Self }] }] }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLWxpbmsuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy90YWJzL3RhYi1saW5rLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFFSCxPQUFPLEVBQUUsU0FBUyxFQUFjLElBQUksRUFBRSxRQUFRLEVBQUUsSUFBSSxFQUFlLE1BQU0sZUFBZSxDQUFDOzs7QUFLekY7O0dBRUc7QUFNSCxNQUFNLE9BQU8sMEJBQTBCO0lBQ3JDLFlBQTJCLFdBQTRDO1FBQTVDLGdCQUFXLEdBQVgsV0FBVyxDQUFpQztJQUFHLENBQUM7OEdBRGhFLDBCQUEwQjtrR0FBMUIsMEJBQTBCOzsyRkFBMUIsMEJBQTBCO2tCQUx0QyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSx3QkFBd0I7b0JBQ2xDLFFBQVEsRUFBRSxtQkFBbUI7b0JBQzdCLFVBQVUsRUFBRSxJQUFJO2lCQUNqQjs7MEJBRWMsSUFBSTs7QUFHbkI7O0dBRUc7QUFNSCxNQUFNLE9BQU8sa0JBQWtCO0lBQzdCLFlBQ1MsVUFBeUMsRUFDckIsVUFBdUI7UUFEM0MsZUFBVSxHQUFWLFVBQVUsQ0FBK0I7UUFDckIsZUFBVSxHQUFWLFVBQVUsQ0FBYTtJQUNqRCxDQUFDOzhHQUpPLGtCQUFrQjtrR0FBbEIsa0JBQWtCOzsyRkFBbEIsa0JBQWtCO2tCQUw5QixTQUFTO21CQUFDO29CQUNULFFB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