UNPKG

ng-zorro-antd

Version:

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

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