123456789101112131415161718192021222324252627 |
- "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.IconTemplateRule = void 0;
- const schematics_1 = require("@angular/cdk/schematics");
- const elements_1 = require("../../../utils/ng-update/elements");
- class IconTemplateRule extends schematics_1.Migration {
- constructor() {
- super(...arguments);
- this.enabled = false;
- }
- visitTemplate(template) {
- (0, elements_1.findElementWithClassName)(template.content, 'anticon', 'i')
- .forEach(offset => {
- this.failures.push({
- filePath: template.filePath,
- position: template.getCharacterAndLineOfPosition(offset),
- message: `Found deprecated css selector "i.anticon" component. Use "<nz-icon>" to instead please.`
- });
- });
- }
- }
- exports.IconTemplateRule = IconTemplateRule;
- //# sourceMappingURL=icon-template-rule.js.map
|