"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ Object.defineProperty(exports, "__esModule", { value: true }); exports.updateToV16 = void 0; const target_version_1 = require("../update-tool/target-version"); const upgrade_data_1 = require("./upgrade-data"); const devkit_migration_rule_1 = require("./devkit-migration-rule"); const cdkMigrations = []; /** Entry point for the migration schematics with target of Angular CDK 16.0.0 */ function updateToV16() { return (0, devkit_migration_rule_1.createMigrationSchematicRule)(target_version_1.TargetVersion.V16, cdkMigrations, upgrade_data_1.cdkUpgradeData, onMigrationComplete); } exports.updateToV16 = updateToV16; /** Function that will be called when the migration completed. */ function onMigrationComplete(context, targetVersion, hasFailures) { context.logger.info(''); context.logger.info(` ✓ Updated Angular CDK to ${targetVersion}`); context.logger.info(''); if (hasFailures) { context.logger.warn(' ⚠ Some issues were detected but could not be fixed automatically. Please check the ' + 'output above and fix these issues manually.'); } } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL3NjaGVtYXRpY3MvbmctdXBkYXRlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7O0dBTUc7OztBQUdILGtFQUE0RDtBQUM1RCxpREFBOEM7QUFDOUMsbUVBQThGO0FBRTlGLE1BQU0sYUFBYSxHQUE4QixFQUFFLENBQUM7QUFFcEQsaUZBQWlGO0FBQ2pGLFNBQWdCLFdBQVc7SUFDekIsT0FBTyxJQUFBLG9EQUE0QixFQUNqQyw4QkFBYSxDQUFDLEdBQUcsRUFDakIsYUFBYSxFQUNiLDZCQUFjLEVBQ2QsbUJBQW1CLENBQ3BCLENBQUM7QUFDSixDQUFDO0FBUEQsa0NBT0M7QUFFRCxpRUFBaUU7QUFDakUsU0FBUyxtQkFBbUI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