26 lines
1.0 KiB
JavaScript
26 lines
1.0 KiB
JavaScript
"use strict";
|
|
/**
|
|
* 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
|
|
*/
|
|
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 = false;
|
|
}
|
|
visitTemplate(template) {
|
|
(0, 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
|