UNPKG

ng-zorro-antd

Version:

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

30 lines 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TabsOutputRule = void 0; const schematics_1 = require("@angular/cdk/schematics"); class TabsOutputRule extends schematics_1.Migration { constructor() { super(...arguments); this.enabled = this.targetVersion === schematics_1.TargetVersion.V11; } visitTemplate(template) { schematics_1.findOutputsOnElementWithTag(template.content, 'nzOnNextClick', ['nz-tabset']) .forEach(offset => { this.failures.push({ filePath: template.filePath, position: template.getCharacterAndLineOfPosition(offset), message: `Found deprecated output '(nzOnNextClick)'. Please manually remove this output.` }); }); schematics_1.findOutputsOnElementWithTag(template.content, 'nzOnPrevClick', ['nz-tabset']) .forEach(offset => { this.failures.push({ filePath: template.filePath, position: template.getCharacterAndLineOfPosition(offset), message: `Found deprecated output '(nzOnPrevClick)'. Please manually remove this output.` }); }); } } exports.TabsOutputRule = TabsOutputRule; //# sourceMappingURL=tabs-output-rule.js.map