UNPKG

ng-zorro-antd

Version:

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

27 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DropdownClassRule = void 0; const schematics_1 = require("@angular/cdk/schematics"); const ts = require("typescript"); class DropdownClassRule extends schematics_1.Migration { constructor() { super(...arguments); this.enabled = this.targetVersion === schematics_1.TargetVersion.V9; } visitNode(node) { if (ts.isIdentifier(node)) { this._visitIdentifier(node); } } // tslint:disable-next-line:typedef _visitIdentifier(identifier) { if (identifier.getText() === 'NzDropdownContextComponent') { this.createFailureAtNode(identifier, `Found "NzDropdownContextComponent" which has been removed. Your code need to be updated.`); } if (identifier.getText() === 'NzDropdownService') { this.createFailureAtNode(identifier, `Found usage of "NzDropdownService" which has been removed. Please use "NzContextMenuService" instead.`); } } } exports.DropdownClassRule = DropdownClassRule; //# sourceMappingURL=dropdown-class-rule.js.map