This commit is contained in:
CHEVALLIER Abel
2025-11-13 16:23:22 +01:00
parent de9c515a47
commit cb235644dc
34924 changed files with 3811102 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
"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.deprecatedComponent = void 0;
const elements_1 = require("../../../utils/ng-update/elements");
const deprecatedComponent = (template, deprecated, instead) => {
return (0, elements_1.findElementWithTag)(template.content, deprecated)
.map(offset => ({
filePath: template.filePath,
position: template.getCharacterAndLineOfPosition(offset),
message: `Found deprecated '<${deprecated}>' component. Please use '${instead}' instead.`
}));
};
exports.deprecatedComponent = deprecatedComponent;
//# sourceMappingURL=deprecated-component.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"deprecated-component.js","sourceRoot":"","sources":["../../../../../schematics/ng-update/upgrade-rules/utils/deprecated-component.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,gEAAuE;AAEhE,MAAM,mBAAmB,GAAG,CAAC,QAA0B,EAAE,UAAkB,EAAE,OAAe,EAAsB,EAAE;IACzH,OAAO,IAAA,6BAAkB,EAAC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;SACpD,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,QAAQ,EAAE,QAAQ,CAAC,6BAA6B,CAAC,MAAM,CAAC;QACxD,OAAO,EAAE,sBAAsB,UAAU,6BAA6B,OAAO,YAAY;KAC1F,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AAPW,QAAA,mBAAmB,uBAO9B"}