source: trip-planner-front/node_modules/@angular/cdk/schematics/ng-update/upgrade-data.mjs@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 5.5 KB
Line 
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.getVersionUpgradeData = exports.cdkUpgradeData = void 0;
11const version_changes_1 = require("../update-tool/version-changes");
12const data_1 = require("./data");
13/** Upgrade data for the Angular CDK. */
14exports.cdkUpgradeData = {
15 attributeSelectors: data_1.attributeSelectors,
16 classNames: data_1.classNames,
17 constructorChecks: data_1.constructorChecks,
18 cssSelectors: data_1.cssSelectors,
19 elementSelectors: data_1.elementSelectors,
20 inputNames: data_1.inputNames,
21 methodCallChecks: data_1.methodCallChecks,
22 outputNames: data_1.outputNames,
23 propertyNames: data_1.propertyNames,
24};
25/**
26 * Gets the reduced upgrade data for the specified data key. The function reads out the
27 * target version and upgrade data object from the migration and resolves the specified
28 * data portion that is specifically tied to the target version.
29 */
30function getVersionUpgradeData(migration, dataName) {
31 // Note that below we need to cast to `unknown` first TS doesn't infer the type of T correctly.
32 return version_changes_1.getChangesForTarget(migration.targetVersion, migration.upgradeData[dataName]);
33}
34exports.getVersionUpgradeData = getVersionUpgradeData;
35//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBncmFkZS1kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2Nkay9zY2hlbWF0aWNzL25nLXVwZGF0ZS91cGdyYWRlLWRhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBR0gsb0VBQW1HO0FBQ25HLGlDQW1C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