@angular/material 17.0.0-rc.1 → 17.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/_button-base.scss +37 -18
- package/button/_button-theme.scss +86 -142
- package/button/_fab-theme.scss +21 -49
- package/button/_icon-button-theme.scss +26 -25
- package/core/theming/_theming.scss +0 -14
- package/core/tokens/m2/mat/_fab.scss +87 -0
- package/core/tokens/m2/mat/_filled-button.scss +76 -0
- package/core/tokens/m2/mat/_icon-button.scss +73 -0
- package/core/tokens/m2/mat/_outlined-button.scss +73 -0
- package/core/tokens/m2/mat/_protected-button.scss +76 -0
- package/core/tokens/m2/mat/_text-button.scss +73 -0
- package/core/tokens/m2/mdc/_extended-fab.scss +3 -0
- package/core/tokens/m2/mdc/_fab.scss +17 -3
- package/core/tokens/m2/mdc/_filled-button.scss +24 -18
- package/core/tokens/m2/mdc/_icon-button.scss +0 -3
- package/core/tokens/m2/mdc/_outlined-button.scss +120 -0
- package/core/tokens/m2/mdc/_protected-button.scss +24 -19
- package/dialog/index.d.ts +2 -1
- package/esm2022/button/button.mjs +4 -4
- package/esm2022/button/fab.mjs +8 -8
- package/esm2022/button/icon-button.mjs +4 -4
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/dialog/dialog.mjs +1 -1
- package/esm2022/snack-bar/snack-bar-container.mjs +3 -3
- package/fesm2022/button.mjs +16 -16
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +2 -2
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/package.json +2 -2
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/schematics/migration.json +1 -1
- package/schematics/ng-add/fonts/material-fonts.js +1 -3
- package/schematics/ng-add/fonts/material-fonts.mjs +1 -3
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/mdc-migration/index_bundled.js +44 -44
- package/schematics/ng-update/index_bundled.js +123 -30
- package/schematics/ng-update/index_bundled.js.map +4 -4
- package/button/_button-theme-private.scss +0 -67
- package/core/density/private/_compatibility.scss +0 -74
|
@@ -24,6 +24,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
mod
|
|
25
25
|
));
|
|
26
26
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var __async = (__this, __arguments, generator) => {
|
|
28
|
+
return new Promise((resolve, reject) => {
|
|
29
|
+
var fulfilled = (value) => {
|
|
30
|
+
try {
|
|
31
|
+
step(generator.next(value));
|
|
32
|
+
} catch (e) {
|
|
33
|
+
reject(e);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var rejected = (value) => {
|
|
37
|
+
try {
|
|
38
|
+
step(generator.throw(value));
|
|
39
|
+
} catch (e) {
|
|
40
|
+
reject(e);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
44
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
27
47
|
|
|
28
48
|
// node_modules/tslib/tslib.js
|
|
29
49
|
var require_tslib = __commonJS({
|
|
@@ -454,9 +474,78 @@ var require_tslib = __commonJS({
|
|
|
454
474
|
}
|
|
455
475
|
});
|
|
456
476
|
|
|
457
|
-
// bazel-out/
|
|
477
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/legacy-imports-error.js
|
|
478
|
+
var require_legacy_imports_error = __commonJS({
|
|
479
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/legacy-imports-error.js"(exports) {
|
|
480
|
+
"use strict";
|
|
481
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
482
|
+
exports.legacyImportsError = void 0;
|
|
483
|
+
var tslib_1 = require_tslib();
|
|
484
|
+
var tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
485
|
+
var ts = tslib_1.__importStar(require("typescript"));
|
|
486
|
+
var LEGACY_IMPORTS_START = "@angular/material/legacy-";
|
|
487
|
+
var MAX_FILES_TO_PRINT = 50;
|
|
488
|
+
function legacyImportsError2(onSuccess) {
|
|
489
|
+
return (tree, context) => __async(this, null, function* () {
|
|
490
|
+
const filesUsingLegacyImports = /* @__PURE__ */ new Set();
|
|
491
|
+
tree.visit((path) => {
|
|
492
|
+
if (!path.endsWith(".ts")) {
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
const content = tree.readText(path);
|
|
496
|
+
const sourceFile = ts.createSourceFile(path, content, ts.ScriptTarget.Latest);
|
|
497
|
+
sourceFile.forEachChild(function walk(node) {
|
|
498
|
+
const isImportOrExport = ts.isImportDeclaration(node) || ts.isExportDeclaration(node);
|
|
499
|
+
if (isImportOrExport && node.moduleSpecifier && ts.isStringLiteralLike(node.moduleSpecifier) && node.moduleSpecifier.text.startsWith(LEGACY_IMPORTS_START)) {
|
|
500
|
+
filesUsingLegacyImports.add(path);
|
|
501
|
+
}
|
|
502
|
+
node.forEachChild(walk);
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
if (filesUsingLegacyImports.size === 0) {
|
|
506
|
+
return onSuccess;
|
|
507
|
+
}
|
|
508
|
+
if (tree.exists("package.json")) {
|
|
509
|
+
let packageJson = null;
|
|
510
|
+
try {
|
|
511
|
+
packageJson = JSON.parse(tree.readText("package.json"));
|
|
512
|
+
} catch (e) {
|
|
513
|
+
}
|
|
514
|
+
if (packageJson !== null && packageJson["dependencies"]) {
|
|
515
|
+
packageJson["dependencies"]["@angular/material"] = "^16.2.0";
|
|
516
|
+
tree.overwrite("package.json", JSON.stringify(packageJson, null, 2));
|
|
517
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
context.logger.fatal(formatErrorMessage(filesUsingLegacyImports));
|
|
521
|
+
return;
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
exports.legacyImportsError = legacyImportsError2;
|
|
525
|
+
function formatErrorMessage(filesUsingLegacyImports) {
|
|
526
|
+
const files = Array.from(filesUsingLegacyImports, (path) => " - " + path);
|
|
527
|
+
const filesMessage = files.length > MAX_FILES_TO_PRINT ? [
|
|
528
|
+
...files.slice(0, MAX_FILES_TO_PRINT),
|
|
529
|
+
`${files.length - MAX_FILES_TO_PRINT} more...`,
|
|
530
|
+
`Search your project for "${LEGACY_IMPORTS_START}" to view all usages.`
|
|
531
|
+
].join("\n") : files.join("\n");
|
|
532
|
+
return `Cannot update to Angular Material v17 because the project is using the legacy Material components
|
|
533
|
+
that have been deleted. While Angular Material v16 is compatible with Angular v17, it is recommended
|
|
534
|
+
to switch away from the legacy components as soon as possible because they no longer receive bug fixes,
|
|
535
|
+
accessibility improvements and new features.
|
|
536
|
+
|
|
537
|
+
Read more about migrating away from legacy components: https://material.angular.io/guide/mdc-migration
|
|
538
|
+
|
|
539
|
+
Files in the project using legacy Material components:
|
|
540
|
+
${filesMessage}
|
|
541
|
+
`;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
|
|
458
547
|
var require_attribute_selectors = __commonJS({
|
|
459
|
-
"bazel-out/
|
|
548
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
|
|
460
549
|
"use strict";
|
|
461
550
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
462
551
|
exports.attributeSelectors = void 0;
|
|
@@ -464,9 +553,9 @@ var require_attribute_selectors = __commonJS({
|
|
|
464
553
|
}
|
|
465
554
|
});
|
|
466
555
|
|
|
467
|
-
// bazel-out/
|
|
556
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
|
|
468
557
|
var require_class_names = __commonJS({
|
|
469
|
-
"bazel-out/
|
|
558
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
|
|
470
559
|
"use strict";
|
|
471
560
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
472
561
|
exports.classNames = void 0;
|
|
@@ -474,9 +563,9 @@ var require_class_names = __commonJS({
|
|
|
474
563
|
}
|
|
475
564
|
});
|
|
476
565
|
|
|
477
|
-
// bazel-out/
|
|
566
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
|
|
478
567
|
var require_constructor_checks = __commonJS({
|
|
479
|
-
"bazel-out/
|
|
568
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
|
|
480
569
|
"use strict";
|
|
481
570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
482
571
|
exports.constructorChecks = void 0;
|
|
@@ -484,9 +573,9 @@ var require_constructor_checks = __commonJS({
|
|
|
484
573
|
}
|
|
485
574
|
});
|
|
486
575
|
|
|
487
|
-
// bazel-out/
|
|
576
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
|
|
488
577
|
var require_css_selectors = __commonJS({
|
|
489
|
-
"bazel-out/
|
|
578
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
|
|
490
579
|
"use strict";
|
|
491
580
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
492
581
|
exports.cssSelectors = void 0;
|
|
@@ -494,9 +583,9 @@ var require_css_selectors = __commonJS({
|
|
|
494
583
|
}
|
|
495
584
|
});
|
|
496
585
|
|
|
497
|
-
// bazel-out/
|
|
586
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
|
|
498
587
|
var require_element_selectors = __commonJS({
|
|
499
|
-
"bazel-out/
|
|
588
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
|
|
500
589
|
"use strict";
|
|
501
590
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
502
591
|
exports.elementSelectors = void 0;
|
|
@@ -504,9 +593,9 @@ var require_element_selectors = __commonJS({
|
|
|
504
593
|
}
|
|
505
594
|
});
|
|
506
595
|
|
|
507
|
-
// bazel-out/
|
|
596
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
|
|
508
597
|
var require_input_names = __commonJS({
|
|
509
|
-
"bazel-out/
|
|
598
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
|
|
510
599
|
"use strict";
|
|
511
600
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
512
601
|
exports.inputNames = void 0;
|
|
@@ -514,9 +603,9 @@ var require_input_names = __commonJS({
|
|
|
514
603
|
}
|
|
515
604
|
});
|
|
516
605
|
|
|
517
|
-
// bazel-out/
|
|
606
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
|
|
518
607
|
var require_method_call_checks = __commonJS({
|
|
519
|
-
"bazel-out/
|
|
608
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
|
|
520
609
|
"use strict";
|
|
521
610
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
522
611
|
exports.methodCallChecks = void 0;
|
|
@@ -524,9 +613,9 @@ var require_method_call_checks = __commonJS({
|
|
|
524
613
|
}
|
|
525
614
|
});
|
|
526
615
|
|
|
527
|
-
// bazel-out/
|
|
616
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
|
|
528
617
|
var require_output_names = __commonJS({
|
|
529
|
-
"bazel-out/
|
|
618
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
|
|
530
619
|
"use strict";
|
|
531
620
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
532
621
|
exports.outputNames = void 0;
|
|
@@ -534,9 +623,9 @@ var require_output_names = __commonJS({
|
|
|
534
623
|
}
|
|
535
624
|
});
|
|
536
625
|
|
|
537
|
-
// bazel-out/
|
|
626
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
|
|
538
627
|
var require_property_names = __commonJS({
|
|
539
|
-
"bazel-out/
|
|
628
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
|
|
540
629
|
"use strict";
|
|
541
630
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
542
631
|
exports.propertyNames = void 0;
|
|
@@ -544,9 +633,9 @@ var require_property_names = __commonJS({
|
|
|
544
633
|
}
|
|
545
634
|
});
|
|
546
635
|
|
|
547
|
-
// bazel-out/
|
|
636
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
|
|
548
637
|
var require_symbol_removal = __commonJS({
|
|
549
|
-
"bazel-out/
|
|
638
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
|
|
550
639
|
"use strict";
|
|
551
640
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
552
641
|
exports.symbolRemoval = void 0;
|
|
@@ -554,9 +643,9 @@ var require_symbol_removal = __commonJS({
|
|
|
554
643
|
}
|
|
555
644
|
});
|
|
556
645
|
|
|
557
|
-
// bazel-out/
|
|
646
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/index.js
|
|
558
647
|
var require_data = __commonJS({
|
|
559
|
-
"bazel-out/
|
|
648
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
|
|
560
649
|
"use strict";
|
|
561
650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
562
651
|
var tslib_1 = require_tslib();
|
|
@@ -573,9 +662,9 @@ var require_data = __commonJS({
|
|
|
573
662
|
}
|
|
574
663
|
});
|
|
575
664
|
|
|
576
|
-
// bazel-out/
|
|
665
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
|
|
577
666
|
var require_upgrade_data = __commonJS({
|
|
578
|
-
"bazel-out/
|
|
667
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
|
|
579
668
|
"use strict";
|
|
580
669
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
581
670
|
exports.materialUpgradeData = void 0;
|
|
@@ -595,9 +684,9 @@ var require_upgrade_data = __commonJS({
|
|
|
595
684
|
}
|
|
596
685
|
});
|
|
597
686
|
|
|
598
|
-
// bazel-out/
|
|
687
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js
|
|
599
688
|
var require_migration = __commonJS({
|
|
600
|
-
"bazel-out/
|
|
689
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js"(exports) {
|
|
601
690
|
"use strict";
|
|
602
691
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
603
692
|
exports.addThemeBaseMixins = exports.checkThemeBaseMixins = void 0;
|
|
@@ -611,6 +700,9 @@ var require_migration = __commonJS({
|
|
|
611
700
|
// Please note: you do not need to include the 'base' mixins, if you include the corresponding
|
|
612
701
|
// 'theme' mixin elsewhere in your Sass. The full 'theme' mixins already include the base styles.
|
|
613
702
|
//
|
|
703
|
+
// To learn more about "base" theme styles visit our theming guide:
|
|
704
|
+
// https://material.angular.io/guide/theming#theming-dimensions
|
|
705
|
+
//
|
|
614
706
|
// TODO(v17): Please move these @include statements to the preferred place in your Sass, and pass
|
|
615
707
|
// your theme to them. This will ensure the correct values for your app are included.`.split("\n");
|
|
616
708
|
var THEME_MIXIN_SETS = [
|
|
@@ -811,9 +903,9 @@ var require_migration = __commonJS({
|
|
|
811
903
|
}
|
|
812
904
|
});
|
|
813
905
|
|
|
814
|
-
// bazel-out/
|
|
906
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js
|
|
815
907
|
var require_theme_base_v17 = __commonJS({
|
|
816
|
-
"bazel-out/
|
|
908
|
+
"bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js"(exports) {
|
|
817
909
|
"use strict";
|
|
818
910
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
819
911
|
exports.ThemeBaseMigration = void 0;
|
|
@@ -896,18 +988,19 @@ ${mixinsText}`
|
|
|
896
988
|
}
|
|
897
989
|
});
|
|
898
990
|
|
|
899
|
-
// bazel-out/
|
|
991
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/index.mjs
|
|
900
992
|
var ng_update_exports = {};
|
|
901
993
|
__export(ng_update_exports, {
|
|
902
994
|
updateToV17: () => updateToV17
|
|
903
995
|
});
|
|
904
996
|
module.exports = __toCommonJS(ng_update_exports);
|
|
905
997
|
var import_schematics = require("@angular/cdk/schematics");
|
|
998
|
+
var import_legacy_imports_error = __toESM(require_legacy_imports_error(), 1);
|
|
906
999
|
var import_upgrade_data = __toESM(require_upgrade_data(), 1);
|
|
907
1000
|
var import_theme_base_v17 = __toESM(require_theme_base_v17(), 1);
|
|
908
1001
|
var materialMigrations = [import_theme_base_v17.ThemeBaseMigration];
|
|
909
1002
|
function updateToV17() {
|
|
910
|
-
return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V17, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
|
|
1003
|
+
return (0, import_legacy_imports_error.legacyImportsError)((0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V17, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete));
|
|
911
1004
|
}
|
|
912
1005
|
function onMigrationComplete(context, targetVersion, hasFailures) {
|
|
913
1006
|
context.logger.info("");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../../node_modules/tslib/tslib.js", "../../../../../../../src/material/schematics/ng-update/data/attribute-selectors.ts", "../../../../../../../src/material/schematics/ng-update/data/class-names.ts", "../../../../../../../src/material/schematics/ng-update/data/constructor-checks.ts", "../../../../../../../src/material/schematics/ng-update/data/css-selectors.ts", "../../../../../../../src/material/schematics/ng-update/data/element-selectors.ts", "../../../../../../../src/material/schematics/ng-update/data/input-names.ts", "../../../../../../../src/material/schematics/ng-update/data/method-call-checks.ts", "../../../../../../../src/material/schematics/ng-update/data/output-names.ts", "../../../../../../../src/material/schematics/ng-update/data/property-names.ts", "../../../../../../../src/material/schematics/ng-update/data/symbol-removal.ts", "../../../../../../../src/material/schematics/ng-update/data/index.ts", "../../../../../../../src/material/schematics/ng-update/upgrade-data.ts", "../../../../../../../src/material/schematics/ng-update/migrations/theme-base-v17/migration.ts", "../../../../../../../src/material/schematics/ng-update/migrations/theme-base-v17/index.ts", "../../../../../../../src/material/schematics/ng-update/index.ts"],
|
|
4
|
-
"sourcesContent": ["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global global, define, System, Reflect, Promise */\r\nvar __extends;\r\nvar __assign;\r\nvar __rest;\r\nvar __decorate;\r\nvar __param;\r\nvar __metadata;\r\nvar __awaiter;\r\nvar __generator;\r\nvar __exportStar;\r\nvar __values;\r\nvar __read;\r\nvar __spread;\r\nvar __spreadArrays;\r\nvar __spreadArray;\r\nvar __await;\r\nvar __asyncGenerator;\r\nvar __asyncDelegator;\r\nvar __asyncValues;\r\nvar __makeTemplateObject;\r\nvar __importStar;\r\nvar __importDefault;\r\nvar __classPrivateFieldGet;\r\nvar __classPrivateFieldSet;\r\nvar __createBinding;\r\n(function (factory) {\r\n var root = typeof global === \"object\" ? global : typeof self === \"object\" ? self : typeof this === \"object\" ? this : {};\r\n if (typeof define === \"function\" && define.amd) {\r\n define(\"tslib\", [\"exports\"], function (exports) { factory(createExporter(root, createExporter(exports))); });\r\n }\r\n else if (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n factory(createExporter(root, createExporter(module.exports)));\r\n }\r\n else {\r\n factory(createExporter(root));\r\n }\r\n function createExporter(exports, previous) {\r\n if (exports !== root) {\r\n if (typeof Object.create === \"function\") {\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n }\r\n else {\r\n exports.__esModule = true;\r\n }\r\n }\r\n return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };\r\n }\r\n})\r\n(function (exporter) {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n\r\n __extends = function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n\r\n __assign = Object.assign || function (t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n\r\n __rest = function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n };\r\n\r\n __decorate = function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n };\r\n\r\n __param = function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n };\r\n\r\n __metadata = function (metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n };\r\n\r\n __awaiter = function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n };\r\n\r\n __generator = function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n };\r\n\r\n __exportStar = function(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n };\r\n\r\n __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n }) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n });\r\n\r\n __values = function (o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n };\r\n\r\n __read = function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n };\r\n\r\n /** @deprecated */\r\n __spread = function () {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n };\r\n\r\n /** @deprecated */\r\n __spreadArrays = function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n __spreadArray = function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n };\r\n\r\n __await = function (v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n };\r\n\r\n __asyncGenerator = function (thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n };\r\n\r\n __asyncDelegator = function (o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n };\r\n\r\n __asyncValues = function (o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n };\r\n\r\n __makeTemplateObject = function (cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n var __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n }) : function(o, v) {\r\n o[\"default\"] = v;\r\n };\r\n\r\n __importStar = function (mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n };\r\n\r\n __importDefault = function (mod) {\r\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\r\n };\r\n\r\n __classPrivateFieldGet = function (receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n };\r\n\r\n __classPrivateFieldSet = function (receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n };\r\n\r\n exporter(\"__extends\", __extends);\r\n exporter(\"__assign\", __assign);\r\n exporter(\"__rest\", __rest);\r\n exporter(\"__decorate\", __decorate);\r\n exporter(\"__param\", __param);\r\n exporter(\"__metadata\", __metadata);\r\n exporter(\"__awaiter\", __awaiter);\r\n exporter(\"__generator\", __generator);\r\n exporter(\"__exportStar\", __exportStar);\r\n exporter(\"__createBinding\", __createBinding);\r\n exporter(\"__values\", __values);\r\n exporter(\"__read\", __read);\r\n exporter(\"__spread\", __spread);\r\n exporter(\"__spreadArrays\", __spreadArrays);\r\n exporter(\"__spreadArray\", __spreadArray);\r\n exporter(\"__await\", __await);\r\n exporter(\"__asyncGenerator\", __asyncGenerator);\r\n exporter(\"__asyncDelegator\", __asyncDelegator);\r\n exporter(\"__asyncValues\", __asyncValues);\r\n exporter(\"__makeTemplateObject\", __makeTemplateObject);\r\n exporter(\"__importStar\", __importStar);\r\n exporter(\"__importDefault\", __importDefault);\r\n exporter(\"__classPrivateFieldGet\", __classPrivateFieldGet);\r\n exporter(\"__classPrivateFieldSet\", __classPrivateFieldSet);\r\n});\r\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {AttributeSelectorUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const attributeSelectors: VersionChanges<AttributeSelectorUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ClassNameUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const classNames: VersionChanges<ClassNameUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ConstructorChecksUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\n/**\n * List of class names for which the constructor signature has been changed. The new constructor\n * signature types don't need to be stored here because the signature will be determined\n * automatically through type checking.\n */\nexport const constructorChecks: VersionChanges<ConstructorChecksUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {VersionChanges} from '@angular/cdk/schematics';\n\nexport interface MaterialCssSelectorData {\n /** The CSS selector to replace. */\n replace: string;\n /** The new CSS selector. */\n replaceWith: string;\n /**\n * Controls which file types in which this replacement is made. If omitted, it is made in all\n * files.\n */\n replaceIn?: {\n /** Replace this name in stylesheet files. */\n stylesheet?: boolean;\n /** Replace this name in HTML files. */\n html?: boolean;\n /** Replace this name in TypeScript strings. */\n tsStringLiterals?: boolean;\n };\n}\n\nexport const cssSelectors: VersionChanges<MaterialCssSelectorData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ElementSelectorUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const elementSelectors: VersionChanges<ElementSelectorUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {InputNameUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const inputNames: VersionChanges<InputNameUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {MethodCallUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const methodCallChecks: VersionChanges<MethodCallUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {OutputNameUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const outputNames: VersionChanges<OutputNameUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {PropertyNameUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const propertyNames: VersionChanges<PropertyNameUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SymbolRemovalUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const symbolRemoval: VersionChanges<SymbolRemovalUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './attribute-selectors';\nexport * from './class-names';\nexport * from './constructor-checks';\nexport * from './css-selectors';\nexport * from './element-selectors';\nexport * from './input-names';\nexport * from './method-call-checks';\nexport * from './output-names';\nexport * from './property-names';\nexport * from './symbol-removal';\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {UpgradeData} from '@angular/cdk/schematics';\nimport {\n attributeSelectors,\n classNames,\n constructorChecks,\n cssSelectors,\n elementSelectors,\n inputNames,\n methodCallChecks,\n outputNames,\n propertyNames,\n symbolRemoval,\n} from './data';\n\n/** Upgrade data that will be used for the Angular Material ng-update schematic. */\nexport const materialUpgradeData: UpgradeData = {\n attributeSelectors,\n classNames,\n constructorChecks,\n cssSelectors,\n elementSelectors,\n inputNames,\n methodCallChecks,\n outputNames,\n propertyNames,\n symbolRemoval,\n};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/** Preamble to insert before the missing mixins. */\nconst MISSING_MIXIN_PREAMBLE_LINES = `\n// The following mixins include base theme styles that are only needed once per application. These\n// theme styles do not depend on the color, typography, or density settings in your theme. However,\n// these styles may differ depending on the theme's design system. Currently all themes use the\n// Material 2 design system, but in the future it may be possible to create theme based on other\n// design systems, such as Material 3.\n//\n// Please note: you do not need to include the 'base' mixins, if you include the corresponding\n// 'theme' mixin elsewhere in your Sass. The full 'theme' mixins already include the base styles.\n//\n// TODO(v17): Please move these @include statements to the preferred place in your Sass, and pass\n// your theme to them. This will ensure the correct values for your app are included.\\\n`.split('\\n');\n\n/** The sets of theme mixins to check for. */\nconst THEME_MIXIN_SETS: {\n theme: string;\n color: string;\n typography: string;\n density: string;\n base: string;\n}[] = [\n {\n theme: 'all-component-themes',\n color: 'all-component-colors',\n typography: 'all-component-typographies',\n density: 'all-component-densities',\n base: 'all-component-bases',\n },\n ...[\n 'core',\n 'card',\n 'progress-bar',\n 'tooltip',\n 'form-field',\n 'input',\n 'select',\n 'autocomplete',\n 'dialog',\n 'chips',\n 'slide-toggle',\n 'radio',\n 'slider',\n 'menu',\n 'list',\n 'paginator',\n 'tabs',\n 'checkbox',\n 'button',\n 'icon-button',\n 'fab',\n 'snack-bar',\n 'table',\n 'progress-spinner',\n 'badge',\n 'bottom-sheet',\n 'button-toggle',\n 'datepicker',\n 'divider',\n 'expansion',\n 'grid-list',\n 'icon',\n 'sidenav',\n 'stepper',\n 'sort',\n 'toolbar',\n 'tree',\n ].map(comp => ({\n theme: `${comp}-theme`,\n color: `${comp}-color`,\n typography: `${comp}-typography`,\n density: `${comp}-density`,\n base: `${comp}-base`,\n })),\n];\n\n/** Possible pairs of comment characters in a Sass file. */\nconst COMMENT_PAIRS = new Map<string, string>([\n ['/*', '*/'],\n ['//', '\\n'],\n]);\n\n/** Prefix for the placeholder that will be used to escape comments. */\nconst COMMENT_PLACEHOLDER_START = '__<<ngThemingMigrationEscapedComment';\n\n/** Suffix for the comment escape placeholder. */\nconst COMMENT_PLACEHOLDER_END = '>>__';\n\n/**\n * Replaces all the comments in a Sass file with placeholders and\n * returns the list of placeholders, so they can be restored later.\n */\nfunction escapeComments(content: string): {content: string; placeholders: Record<string, string>} {\n const placeholders: Record<string, string> = {};\n let commentCounter = 0;\n let [openIndex, closeIndex] = findComment(content);\n\n while (openIndex > -1 && closeIndex > -1) {\n const placeholder = COMMENT_PLACEHOLDER_START + commentCounter++ + COMMENT_PLACEHOLDER_END;\n placeholders[placeholder] = content.slice(openIndex, closeIndex);\n content = content.slice(0, openIndex) + placeholder + content.slice(closeIndex);\n [openIndex, closeIndex] = findComment(content);\n }\n\n return {content, placeholders};\n}\n\n/** Finds the start and end index of a comment in a file. */\nfunction findComment(content: string): [openIndex: number, closeIndex: number] {\n // Add an extra new line at the end so that we can correctly capture single-line comments\n // at the end of the file. It doesn't really matter that the end index will be out of bounds,\n // because `String.prototype.slice` will clamp it to the string length.\n content += '\\n';\n\n for (const [open, close] of COMMENT_PAIRS.entries()) {\n const openIndex = content.indexOf(open);\n\n if (openIndex > -1) {\n const closeIndex = content.indexOf(close, openIndex + 1);\n return closeIndex > -1 ? [openIndex, closeIndex + close.length] : [-1, -1];\n }\n }\n\n return [-1, -1];\n}\n\n/** Restores the comments that have been escaped by `escapeComments`. */\nfunction restoreComments(content: string, placeholders: Record<string, string>): string {\n Object.keys(placeholders).forEach(key => (content = content.replace(key, placeholders[key])));\n return content;\n}\n\n/** Escapes special regex characters in a string. */\nfunction escapeRegExp(str: string): string {\n return str.replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, '\\\\$1');\n}\n\n/** Parses out the namespace from a Sass `@use` statement. */\nfunction extractNamespaceFromUseStatement(fullImport: string): string {\n const closeQuoteIndex = Math.max(fullImport.lastIndexOf(`\"`), fullImport.lastIndexOf(`'`));\n\n if (closeQuoteIndex > -1) {\n const asExpression = 'as ';\n const asIndex = fullImport.indexOf(asExpression, closeQuoteIndex);\n\n // If we found an ` as ` expression, we consider the rest of the text as the namespace.\n if (asIndex > -1) {\n return fullImport\n .slice(asIndex + asExpression.length)\n .split(';')[0]\n .trim();\n }\n\n // Otherwise the namespace is the name of the file that is being imported.\n const lastSlashIndex = fullImport.lastIndexOf('/', closeQuoteIndex);\n\n if (lastSlashIndex > -1) {\n const fileName = fullImport\n .slice(lastSlashIndex + 1, closeQuoteIndex)\n // Sass allows for leading underscores to be omitted and it technically supports .scss.\n .replace(/^_|(\\.import)?\\.scss$|\\.import$/g, '');\n\n // Sass ignores `/index` and infers the namespace as the next segment in the path.\n if (fileName === 'index') {\n const nextSlashIndex = fullImport.lastIndexOf('/', lastSlashIndex - 1);\n\n if (nextSlashIndex > -1) {\n return fullImport.slice(nextSlashIndex + 1, lastSlashIndex);\n }\n } else {\n return fileName;\n }\n }\n }\n\n throw Error(`Could not extract namespace from import \"${fullImport}\".`);\n}\n\n/** Gets the set of namespaces that the given import path is aliased to by @use. */\nfunction getAtUseNamespaces(content: string, path: string) {\n const namespaces = new Set<string>();\n const pattern = new RegExp(`@use +['\"]~?${escapeRegExp(path)}['\"].*;?\\n`, 'g');\n let match: RegExpExecArray | null = null;\n\n while ((match = pattern.exec(content))) {\n namespaces.add(extractNamespaceFromUseStatement(match[0]));\n }\n\n return namespaces;\n}\n\n/** Gets a list of matches representing where the given mixin is included with `@include`. */\nfunction getAtIncludes(content: string, namespace: string, mixin: string): RegExpMatchArray[] {\n // The ending checks what comes after the mixin name. We need to check that we don't see a word\n // character or `-` immediately following the mixin name, as that would change the name. Beyond\n // that character we can match anything, to the end of the line.\n const ending = '([^\\\\n\\\\w-][^\\\\n]*)?($|\\\\n)';\n const pattern = new RegExp(\n `@include\\\\s+${escapeRegExp(namespace)}\\\\.${escapeRegExp(mixin)}${ending}`,\n 'g',\n );\n return [...content.matchAll(pattern)];\n}\n\n/** Checks whether the given mixin is included with `@include`. */\nfunction isMixinAtIncluded(content: string, namespace: string, mixin: string) {\n return !!getAtIncludes(content, namespace, mixin).length;\n}\n\n/** Inserts the given lines after the match point. */\nfunction insertLinesAfterMatch(content: string, match: RegExpMatchArray, lines: string[]): string {\n const insertionPoint = match.index! + match[0].length;\n return (\n content.substring(0, insertionPoint) +\n lines.join('\\n') +\n '\\n' +\n content.substring(insertionPoint)\n );\n}\n\n/** Gets the indentation at the given line in the content. */\nfunction getIndentation(content: string, index: number) {\n let indentationStart = 0;\n let indentationEnd = index;\n for (let i = index; i >= 0; i--) {\n if (content[i] === '\\n') {\n indentationStart = i + 1;\n break;\n }\n if (!/\\s/.exec(content[i])) {\n indentationEnd = i;\n }\n }\n return content.slice(indentationStart, indentationEnd);\n}\n\n/** Gets the lines to insert to address the missing mixins. */\nfunction getMissingMixinLines(namespace: string, mixins: Set<string>, indentation: string) {\n return [\n ...MISSING_MIXIN_PREAMBLE_LINES,\n ...[...mixins]\n .sort()\n .map(mixin => `@include ${namespace}.${mixin}(/* TODO(v17): pass $your-theme here */);`),\n '',\n ].map(line => (indentation + line).trimRight());\n}\n\n/**\n * Checks which theme bases are found in the file via the existing included mixins,\n * and which ones may be missing.\n */\nexport function checkThemeBaseMixins(fileContent: string): {\n found: Set<string>;\n missing: Set<string>;\n} {\n const found = new Set<string>();\n const missing = new Set<string>();\n\n // Strip out comments, so they don't confuse our migration.\n const {content} = escapeComments(fileContent);\n const materialNamespaces = getAtUseNamespaces(content, '@angular/material');\n\n // Check over all namespaces for mixins of interest.\n for (const namespace of materialNamespaces) {\n for (const mixins of THEME_MIXIN_SETS) {\n // If they include the theme mixin, that accounts for the base theme styles.\n if (isMixinAtIncluded(content, namespace, mixins.theme)) {\n found.add(mixins.base);\n missing.delete(mixins.base);\n continue;\n }\n // If they haven't called the theme mixin, but do call one of the partials,\n // we assume they're missing the base styles.\n if (!found.has(mixins.base)) {\n if (\n isMixinAtIncluded(content, namespace, mixins.color) ||\n isMixinAtIncluded(content, namespace, mixins.typography) ||\n isMixinAtIncluded(content, namespace, mixins.density)\n ) {\n missing.add(mixins.base);\n }\n }\n }\n }\n\n return {found, missing};\n}\n\n/** Adds the given theme base mixins, after the call to `mat.core()`. */\nexport function addThemeBaseMixins(fileContent: string, mixins: Set<string>): string {\n // Strip out comments, so they don't confuse our migration.\n let {content, placeholders} = escapeComments(fileContent);\n const materialNamespaces = getAtUseNamespaces(content, '@angular/material');\n\n for (const namespace of materialNamespaces) {\n // Update the @includes in reverse order, so our changes don't mess up the indices we found.\n const coreIncludes = getAtIncludes(content, namespace, 'core').reverse();\n for (const coreInclude of coreIncludes) {\n if (coreInclude.index === undefined) {\n throw Error(`Cannot find location of mat.core() match: ${coreInclude}`);\n }\n const indentation = getIndentation(content, coreInclude.index);\n const lines = getMissingMixinLines(namespace, mixins, indentation);\n content = insertLinesAfterMatch(content, coreInclude, lines);\n }\n }\n\n return restoreComments(content, placeholders);\n}\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {extname} from '@angular-devkit/core';\nimport {SchematicContext} from '@angular-devkit/schematics';\nimport {DevkitMigration, ResolvedResource, TargetVersion} from '@angular/cdk/schematics';\nimport {addThemeBaseMixins, checkThemeBaseMixins} from './migration';\n\n/** Adds an @include for theme base mixins that aren't already included by the app. */\nexport class ThemeBaseMigration extends DevkitMigration<null> {\n /** Number of files that have been migrated. */\n static migratedFileCount = 0;\n\n /** All base mixins that we have found an existing @include for. */\n static foundBaseMixins = new Set<string>();\n\n /** All base mixins that appear to be missing an @include. */\n static missingBaseMixins = new Set<string>();\n\n /** Whether to run this migration. */\n enabled = this.targetVersion === TargetVersion.V17;\n\n /**\n * All Sass stylesheets visited. (We save a record, so we can go back through them in the\n * `postAnalysis` phase).\n */\n visitedSassStylesheets: ResolvedResource[] = [];\n\n /**\n * Visit each stylesheet, noting which base mixins are accounted for (because the user is calling\n * `mat.<component>-theme()`), and which ones are missing (because the user is calling one of the\n * theme-partial mixins: `mat.<component-color>()`, `mat.<component>-typography()`,\n * or `mat.<component>-density()`.\n *\n * We don't make any modifications at this point. Instead, the results of visiting each stylesheet\n * are aggregated into a static variable which is used to determine which mixins to add in\n * `postAnalysis` phase.\n */\n override visitStylesheet(stylesheet: ResolvedResource): void {\n if (extname(stylesheet.filePath) === '.scss') {\n this.visitedSassStylesheets.push(stylesheet);\n\n const content = stylesheet.content;\n const {found, missing} = checkThemeBaseMixins(content);\n for (const mixin of found) {\n ThemeBaseMigration.foundBaseMixins.add(mixin);\n ThemeBaseMigration.missingBaseMixins.delete(mixin);\n }\n for (const mixin of missing) {\n if (!ThemeBaseMigration.foundBaseMixins.has(mixin)) {\n ThemeBaseMigration.missingBaseMixins.add(mixin);\n }\n }\n }\n }\n\n /**\n * Perform the necessary updates detected while visiting the stylesheets. The\n * `mat.<component>-base()` mixins behave similarly to `mat.core()`, in that they needed to be\n * included once globally. So we locate calls to `mat.core()` and add the missing mixins\n * identified by earlier at these locations.\n */\n override postAnalysis() {\n // If we're not missing any mixins, there's nothing to migrate.\n if (ThemeBaseMigration.missingBaseMixins.size === 0) {\n return;\n }\n // If we have all-component-bases, we don't need any others and there is nothing to migrate.\n if (ThemeBaseMigration.foundBaseMixins.has('all-component-bases')) {\n return;\n }\n // If we're missing all-component-bases, we just need to add it, not the individual mixins.\n if (ThemeBaseMigration.missingBaseMixins.has('all-component-bases')) {\n ThemeBaseMigration.missingBaseMixins = new Set(['all-component-bases']);\n }\n for (const stylesheet of this.visitedSassStylesheets) {\n const content = stylesheet.content;\n const migratedContent = content\n ? addThemeBaseMixins(content, ThemeBaseMigration.missingBaseMixins)\n : content;\n\n if (migratedContent && migratedContent !== content) {\n this.fileSystem\n .edit(stylesheet.filePath)\n .remove(0, stylesheet.content.length)\n .insertLeft(0, migratedContent);\n ThemeBaseMigration.migratedFileCount++;\n }\n }\n if (ThemeBaseMigration.migratedFileCount === 0) {\n const mixinsText = [...ThemeBaseMigration.missingBaseMixins]\n .sort()\n .map(m => `mat.${m}($theme)`)\n .join('\\n');\n this.failures.push({\n filePath: this.context.tree.root.path,\n message:\n `The following mixins could not be automatically added, please add them manually` +\n ` if needed:\\n${mixinsText}`,\n });\n }\n }\n\n /** Logs out the number of migrated files at the end of the migration. */\n static override globalPostMigration(\n _tree: unknown,\n _targetVersion: TargetVersion,\n context: SchematicContext,\n ): void {\n const fileCount = ThemeBaseMigration.migratedFileCount;\n const mixinCount = ThemeBaseMigration.missingBaseMixins.size;\n\n if (fileCount > 0 && mixinCount > 0) {\n const fileCountText = fileCount === 1 ? '1 file' : `${fileCount} files`;\n const mixinCountText =\n mixinCount === 1 ? '1 theme base mixin' : `${mixinCount} theme base mixins`;\n context.logger.info(\n `Added ${mixinCountText} to ${fileCountText}.` +\n ' Please search for, and address, any \"TODO(v17)\" comments.',\n );\n }\n\n // Reset to avoid leaking between tests.\n ThemeBaseMigration.migratedFileCount = 0;\n ThemeBaseMigration.missingBaseMixins = new Set();\n ThemeBaseMigration.foundBaseMixins = new Set();\n }\n}\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Rule, SchematicContext} from '@angular-devkit/schematics';\nimport {\n createMigrationSchematicRule,\n NullableDevkitMigration,\n TargetVersion,\n} from '@angular/cdk/schematics';\n\nimport {materialUpgradeData} from './upgrade-data';\nimport {ThemeBaseMigration} from './migrations/theme-base-v17';\n\nconst materialMigrations: NullableDevkitMigration[] = [ThemeBaseMigration];\n\n/** Entry point for the migration schematics with target of Angular Material v17 */\nexport function updateToV17(): Rule {\n return createMigrationSchematicRule(\n TargetVersion.V17,\n materialMigrations,\n materialUpgradeData,\n onMigrationComplete,\n );\n}\n\n/** Function that will be called when the migration completed. */\nfunction onMigrationComplete(\n context: SchematicContext,\n targetVersion: TargetVersion,\n hasFailures: boolean,\n) {\n context.logger.info('');\n context.logger.info(` ✓ Updated Angular Material to ${targetVersion}`);\n context.logger.info('');\n\n if (hasFailures) {\n context.logger.warn(\n ' ⚠ Some issues were detected but could not be fixed automatically. Please check the ' +\n 'output above and fix these issues manually.',\n );\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,yCAAAA,SAAA;AAeA,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,Q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B;WACnB;;MAEL;MAGA,OAAgB,oBACd,OACA,gBACA,SAAyB;AAEzB,cAAM,YAAY,oBAAmB;AACrC,cAAM,aAAa,oBAAmB,kBAAkB;AAExD,YAAI,YAAY,KAAK,aAAa,GAAG;AACnC,gBAAM,gBAAgB,cAAc,IAAI,WAAW,GAAG;AACtD,gBAAM,iBACJ,eAAe,IAAI,uBAAuB,GAAG;AAC/C,kBAAQ,OAAO,KACb,SAAS,qBAAqB,0EACgC;;AAKlE,4BAAmB,oBAAoB;AACvC,4BAAmB,oBAAoB,oBAAI,IAAG;AAC9C,4BAAmB,kBAAkB,oBAAI,IAAG;MAC9C;;AArHF,QAAaC,sBAAb;;AAES,0BAAA,oBAAoB;IAAE;;AAGtB,0BAAA,kBAAkB,oBAAI,IAAG;IAAW;;AAGpC,0BAAA,oBAAoB,oBAAI,IAAG;IAAW;AAR/C,YAAA,qBAAAA;;;;;ACdA;;;;;AASA,wBAIO;AAEP,0BAAkC;AAClC,4BAAiC;AAEjC,IAAM,qBAAgD,CAAC,wCAAkB;AAGnE,SAAU,cAAW;AACzB,aAAO,gDACL,gCAAc,KACd,oBACA,yCACA,mBAAmB;AAEvB;AAGA,SAAS,oBACP,SACA,eACA,aAAoB;AAEpB,UAAQ,OAAO,KAAK,EAAE;AACtB,UAAQ,OAAO,KAAK,yCAAoC,eAAe;AACvE,UAAQ,OAAO,KAAK,EAAE;AAEtB,MAAI,aAAa;AACf,YAAQ,OAAO,KACb,wIAC+C;;AAGrD;",
|
|
6
|
-
"names": ["module", "exports", "v", "ThemeBaseMigration"]
|
|
3
|
+
"sources": ["../../../../../../../node_modules/tslib/tslib.js", "../../../../../../../src/material/schematics/ng-update/migrations/legacy-imports-error.ts", "../../../../../../../src/material/schematics/ng-update/data/attribute-selectors.ts", "../../../../../../../src/material/schematics/ng-update/data/class-names.ts", "../../../../../../../src/material/schematics/ng-update/data/constructor-checks.ts", "../../../../../../../src/material/schematics/ng-update/data/css-selectors.ts", "../../../../../../../src/material/schematics/ng-update/data/element-selectors.ts", "../../../../../../../src/material/schematics/ng-update/data/input-names.ts", "../../../../../../../src/material/schematics/ng-update/data/method-call-checks.ts", "../../../../../../../src/material/schematics/ng-update/data/output-names.ts", "../../../../../../../src/material/schematics/ng-update/data/property-names.ts", "../../../../../../../src/material/schematics/ng-update/data/symbol-removal.ts", "../../../../../../../src/material/schematics/ng-update/data/index.ts", "../../../../../../../src/material/schematics/ng-update/upgrade-data.ts", "../../../../../../../src/material/schematics/ng-update/migrations/theme-base-v17/migration.ts", "../../../../../../../src/material/schematics/ng-update/migrations/theme-base-v17/index.ts", "../../../../../../../src/material/schematics/ng-update/index.ts"],
|
|
4
|
+
"sourcesContent": ["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global global, define, System, Reflect, Promise */\r\nvar __extends;\r\nvar __assign;\r\nvar __rest;\r\nvar __decorate;\r\nvar __param;\r\nvar __metadata;\r\nvar __awaiter;\r\nvar __generator;\r\nvar __exportStar;\r\nvar __values;\r\nvar __read;\r\nvar __spread;\r\nvar __spreadArrays;\r\nvar __spreadArray;\r\nvar __await;\r\nvar __asyncGenerator;\r\nvar __asyncDelegator;\r\nvar __asyncValues;\r\nvar __makeTemplateObject;\r\nvar __importStar;\r\nvar __importDefault;\r\nvar __classPrivateFieldGet;\r\nvar __classPrivateFieldSet;\r\nvar __createBinding;\r\n(function (factory) {\r\n var root = typeof global === \"object\" ? global : typeof self === \"object\" ? self : typeof this === \"object\" ? this : {};\r\n if (typeof define === \"function\" && define.amd) {\r\n define(\"tslib\", [\"exports\"], function (exports) { factory(createExporter(root, createExporter(exports))); });\r\n }\r\n else if (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n factory(createExporter(root, createExporter(module.exports)));\r\n }\r\n else {\r\n factory(createExporter(root));\r\n }\r\n function createExporter(exports, previous) {\r\n if (exports !== root) {\r\n if (typeof Object.create === \"function\") {\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n }\r\n else {\r\n exports.__esModule = true;\r\n }\r\n }\r\n return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };\r\n }\r\n})\r\n(function (exporter) {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n\r\n __extends = function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n\r\n __assign = Object.assign || function (t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n\r\n __rest = function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n };\r\n\r\n __decorate = function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n };\r\n\r\n __param = function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n };\r\n\r\n __metadata = function (metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n };\r\n\r\n __awaiter = function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n };\r\n\r\n __generator = function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n };\r\n\r\n __exportStar = function(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n };\r\n\r\n __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n }) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n });\r\n\r\n __values = function (o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n };\r\n\r\n __read = function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n };\r\n\r\n /** @deprecated */\r\n __spread = function () {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n };\r\n\r\n /** @deprecated */\r\n __spreadArrays = function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n __spreadArray = function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n };\r\n\r\n __await = function (v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n };\r\n\r\n __asyncGenerator = function (thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n };\r\n\r\n __asyncDelegator = function (o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n };\r\n\r\n __asyncValues = function (o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n };\r\n\r\n __makeTemplateObject = function (cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n var __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n }) : function(o, v) {\r\n o[\"default\"] = v;\r\n };\r\n\r\n __importStar = function (mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n };\r\n\r\n __importDefault = function (mod) {\r\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\r\n };\r\n\r\n __classPrivateFieldGet = function (receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n };\r\n\r\n __classPrivateFieldSet = function (receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n };\r\n\r\n exporter(\"__extends\", __extends);\r\n exporter(\"__assign\", __assign);\r\n exporter(\"__rest\", __rest);\r\n exporter(\"__decorate\", __decorate);\r\n exporter(\"__param\", __param);\r\n exporter(\"__metadata\", __metadata);\r\n exporter(\"__awaiter\", __awaiter);\r\n exporter(\"__generator\", __generator);\r\n exporter(\"__exportStar\", __exportStar);\r\n exporter(\"__createBinding\", __createBinding);\r\n exporter(\"__values\", __values);\r\n exporter(\"__read\", __read);\r\n exporter(\"__spread\", __spread);\r\n exporter(\"__spreadArrays\", __spreadArrays);\r\n exporter(\"__spreadArray\", __spreadArray);\r\n exporter(\"__await\", __await);\r\n exporter(\"__asyncGenerator\", __asyncGenerator);\r\n exporter(\"__asyncDelegator\", __asyncDelegator);\r\n exporter(\"__asyncValues\", __asyncValues);\r\n exporter(\"__makeTemplateObject\", __makeTemplateObject);\r\n exporter(\"__importStar\", __importStar);\r\n exporter(\"__importDefault\", __importDefault);\r\n exporter(\"__classPrivateFieldGet\", __classPrivateFieldGet);\r\n exporter(\"__classPrivateFieldSet\", __classPrivateFieldSet);\r\n});\r\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Rule, SchematicContext, Tree} from '@angular-devkit/schematics';\nimport {NodePackageInstallTask} from '@angular-devkit/schematics/tasks';\nimport * as ts from 'typescript';\n\n/** String with which legacy imports start. */\nconst LEGACY_IMPORTS_START = '@angular/material/legacy-';\n\n/** Maximum files to print in the error message. */\nconst MAX_FILES_TO_PRINT = 50;\n\n/**\n * \"Migration\" that logs an error and prevents further migrations\n * from running if the project is using legacy components.\n * @param onSuccess Rule to run if there are no legacy imports.\n */\nexport function legacyImportsError(onSuccess: Rule): Rule {\n return async (tree: Tree, context: SchematicContext) => {\n const filesUsingLegacyImports = new Set<string>();\n\n tree.visit(path => {\n if (!path.endsWith('.ts')) {\n return;\n }\n\n const content = tree.readText(path);\n const sourceFile = ts.createSourceFile(path, content, ts.ScriptTarget.Latest);\n\n sourceFile.forEachChild(function walk(node) {\n const isImportOrExport = ts.isImportDeclaration(node) || ts.isExportDeclaration(node);\n\n if (\n isImportOrExport &&\n node.moduleSpecifier &&\n ts.isStringLiteralLike(node.moduleSpecifier) &&\n node.moduleSpecifier.text.startsWith(LEGACY_IMPORTS_START)\n ) {\n filesUsingLegacyImports.add(path);\n }\n\n node.forEachChild(walk);\n });\n });\n\n // If there are no legacy imports left, we can continue with the migrations.\n if (filesUsingLegacyImports.size === 0) {\n return onSuccess;\n }\n\n // At this point the project is already at v17 so we need to downgrade it back\n // to v16 and run `npm install` again. Ideally we would also throw an error here\n // to interrupt the update process, but that would interrupt `npm install` as well.\n if (tree.exists('package.json')) {\n let packageJson: Record<string, any> | null = null;\n\n try {\n packageJson = JSON.parse(tree.readText('package.json')) as Record<string, any>;\n } catch {}\n\n if (packageJson !== null && packageJson['dependencies']) {\n packageJson['dependencies']['@angular/material'] = '^16.2.0';\n tree.overwrite('package.json', JSON.stringify(packageJson, null, 2));\n context.addTask(new NodePackageInstallTask());\n }\n }\n\n context.logger.fatal(formatErrorMessage(filesUsingLegacyImports));\n return;\n };\n}\n\nfunction formatErrorMessage(filesUsingLegacyImports: Set<string>): string {\n const files = Array.from(filesUsingLegacyImports, path => ' - ' + path);\n const filesMessage =\n files.length > MAX_FILES_TO_PRINT\n ? [\n ...files.slice(0, MAX_FILES_TO_PRINT),\n `${files.length - MAX_FILES_TO_PRINT} more...`,\n `Search your project for \"${LEGACY_IMPORTS_START}\" to view all usages.`,\n ].join('\\n')\n : files.join('\\n');\n\n return (\n `Cannot update to Angular Material v17 because the project is using the legacy ` +\n `Material components\\nthat have been deleted. While Angular Material v16 is compatible with ` +\n `Angular v17, it is recommended\\nto switch away from the legacy components as soon as possible ` +\n `because they no longer receive bug fixes,\\naccessibility improvements and new features.\\n\\n` +\n `Read more about migrating away from legacy components: https://material.angular.io/guide/mdc-migration\\n\\n` +\n `Files in the project using legacy Material components:\\n${filesMessage}\\n`\n );\n}\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {AttributeSelectorUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const attributeSelectors: VersionChanges<AttributeSelectorUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ClassNameUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const classNames: VersionChanges<ClassNameUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ConstructorChecksUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\n/**\n * List of class names for which the constructor signature has been changed. The new constructor\n * signature types don't need to be stored here because the signature will be determined\n * automatically through type checking.\n */\nexport const constructorChecks: VersionChanges<ConstructorChecksUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {VersionChanges} from '@angular/cdk/schematics';\n\nexport interface MaterialCssSelectorData {\n /** The CSS selector to replace. */\n replace: string;\n /** The new CSS selector. */\n replaceWith: string;\n /**\n * Controls which file types in which this replacement is made. If omitted, it is made in all\n * files.\n */\n replaceIn?: {\n /** Replace this name in stylesheet files. */\n stylesheet?: boolean;\n /** Replace this name in HTML files. */\n html?: boolean;\n /** Replace this name in TypeScript strings. */\n tsStringLiterals?: boolean;\n };\n}\n\nexport const cssSelectors: VersionChanges<MaterialCssSelectorData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ElementSelectorUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const elementSelectors: VersionChanges<ElementSelectorUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {InputNameUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const inputNames: VersionChanges<InputNameUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {MethodCallUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const methodCallChecks: VersionChanges<MethodCallUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {OutputNameUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const outputNames: VersionChanges<OutputNameUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {PropertyNameUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const propertyNames: VersionChanges<PropertyNameUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SymbolRemovalUpgradeData, VersionChanges} from '@angular/cdk/schematics';\n\nexport const symbolRemoval: VersionChanges<SymbolRemovalUpgradeData> = {};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './attribute-selectors';\nexport * from './class-names';\nexport * from './constructor-checks';\nexport * from './css-selectors';\nexport * from './element-selectors';\nexport * from './input-names';\nexport * from './method-call-checks';\nexport * from './output-names';\nexport * from './property-names';\nexport * from './symbol-removal';\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {UpgradeData} from '@angular/cdk/schematics';\nimport {\n attributeSelectors,\n classNames,\n constructorChecks,\n cssSelectors,\n elementSelectors,\n inputNames,\n methodCallChecks,\n outputNames,\n propertyNames,\n symbolRemoval,\n} from './data';\n\n/** Upgrade data that will be used for the Angular Material ng-update schematic. */\nexport const materialUpgradeData: UpgradeData = {\n attributeSelectors,\n classNames,\n constructorChecks,\n cssSelectors,\n elementSelectors,\n inputNames,\n methodCallChecks,\n outputNames,\n propertyNames,\n symbolRemoval,\n};\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/** Preamble to insert before the missing mixins. */\nconst MISSING_MIXIN_PREAMBLE_LINES = `\n// The following mixins include base theme styles that are only needed once per application. These\n// theme styles do not depend on the color, typography, or density settings in your theme. However,\n// these styles may differ depending on the theme's design system. Currently all themes use the\n// Material 2 design system, but in the future it may be possible to create theme based on other\n// design systems, such as Material 3.\n//\n// Please note: you do not need to include the 'base' mixins, if you include the corresponding\n// 'theme' mixin elsewhere in your Sass. The full 'theme' mixins already include the base styles.\n//\n// To learn more about \"base\" theme styles visit our theming guide:\n// https://material.angular.io/guide/theming#theming-dimensions\n//\n// TODO(v17): Please move these @include statements to the preferred place in your Sass, and pass\n// your theme to them. This will ensure the correct values for your app are included.\\\n`.split('\\n');\n\n/** The sets of theme mixins to check for. */\nconst THEME_MIXIN_SETS: {\n theme: string;\n color: string;\n typography: string;\n density: string;\n base: string;\n}[] = [\n {\n theme: 'all-component-themes',\n color: 'all-component-colors',\n typography: 'all-component-typographies',\n density: 'all-component-densities',\n base: 'all-component-bases',\n },\n ...[\n 'core',\n 'card',\n 'progress-bar',\n 'tooltip',\n 'form-field',\n 'input',\n 'select',\n 'autocomplete',\n 'dialog',\n 'chips',\n 'slide-toggle',\n 'radio',\n 'slider',\n 'menu',\n 'list',\n 'paginator',\n 'tabs',\n 'checkbox',\n 'button',\n 'icon-button',\n 'fab',\n 'snack-bar',\n 'table',\n 'progress-spinner',\n 'badge',\n 'bottom-sheet',\n 'button-toggle',\n 'datepicker',\n 'divider',\n 'expansion',\n 'grid-list',\n 'icon',\n 'sidenav',\n 'stepper',\n 'sort',\n 'toolbar',\n 'tree',\n ].map(comp => ({\n theme: `${comp}-theme`,\n color: `${comp}-color`,\n typography: `${comp}-typography`,\n density: `${comp}-density`,\n base: `${comp}-base`,\n })),\n];\n\n/** Possible pairs of comment characters in a Sass file. */\nconst COMMENT_PAIRS = new Map<string, string>([\n ['/*', '*/'],\n ['//', '\\n'],\n]);\n\n/** Prefix for the placeholder that will be used to escape comments. */\nconst COMMENT_PLACEHOLDER_START = '__<<ngThemingMigrationEscapedComment';\n\n/** Suffix for the comment escape placeholder. */\nconst COMMENT_PLACEHOLDER_END = '>>__';\n\n/**\n * Replaces all the comments in a Sass file with placeholders and\n * returns the list of placeholders, so they can be restored later.\n */\nfunction escapeComments(content: string): {content: string; placeholders: Record<string, string>} {\n const placeholders: Record<string, string> = {};\n let commentCounter = 0;\n let [openIndex, closeIndex] = findComment(content);\n\n while (openIndex > -1 && closeIndex > -1) {\n const placeholder = COMMENT_PLACEHOLDER_START + commentCounter++ + COMMENT_PLACEHOLDER_END;\n placeholders[placeholder] = content.slice(openIndex, closeIndex);\n content = content.slice(0, openIndex) + placeholder + content.slice(closeIndex);\n [openIndex, closeIndex] = findComment(content);\n }\n\n return {content, placeholders};\n}\n\n/** Finds the start and end index of a comment in a file. */\nfunction findComment(content: string): [openIndex: number, closeIndex: number] {\n // Add an extra new line at the end so that we can correctly capture single-line comments\n // at the end of the file. It doesn't really matter that the end index will be out of bounds,\n // because `String.prototype.slice` will clamp it to the string length.\n content += '\\n';\n\n for (const [open, close] of COMMENT_PAIRS.entries()) {\n const openIndex = content.indexOf(open);\n\n if (openIndex > -1) {\n const closeIndex = content.indexOf(close, openIndex + 1);\n return closeIndex > -1 ? [openIndex, closeIndex + close.length] : [-1, -1];\n }\n }\n\n return [-1, -1];\n}\n\n/** Restores the comments that have been escaped by `escapeComments`. */\nfunction restoreComments(content: string, placeholders: Record<string, string>): string {\n Object.keys(placeholders).forEach(key => (content = content.replace(key, placeholders[key])));\n return content;\n}\n\n/** Escapes special regex characters in a string. */\nfunction escapeRegExp(str: string): string {\n return str.replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, '\\\\$1');\n}\n\n/** Parses out the namespace from a Sass `@use` statement. */\nfunction extractNamespaceFromUseStatement(fullImport: string): string {\n const closeQuoteIndex = Math.max(fullImport.lastIndexOf(`\"`), fullImport.lastIndexOf(`'`));\n\n if (closeQuoteIndex > -1) {\n const asExpression = 'as ';\n const asIndex = fullImport.indexOf(asExpression, closeQuoteIndex);\n\n // If we found an ` as ` expression, we consider the rest of the text as the namespace.\n if (asIndex > -1) {\n return fullImport\n .slice(asIndex + asExpression.length)\n .split(';')[0]\n .trim();\n }\n\n // Otherwise the namespace is the name of the file that is being imported.\n const lastSlashIndex = fullImport.lastIndexOf('/', closeQuoteIndex);\n\n if (lastSlashIndex > -1) {\n const fileName = fullImport\n .slice(lastSlashIndex + 1, closeQuoteIndex)\n // Sass allows for leading underscores to be omitted and it technically supports .scss.\n .replace(/^_|(\\.import)?\\.scss$|\\.import$/g, '');\n\n // Sass ignores `/index` and infers the namespace as the next segment in the path.\n if (fileName === 'index') {\n const nextSlashIndex = fullImport.lastIndexOf('/', lastSlashIndex - 1);\n\n if (nextSlashIndex > -1) {\n return fullImport.slice(nextSlashIndex + 1, lastSlashIndex);\n }\n } else {\n return fileName;\n }\n }\n }\n\n throw Error(`Could not extract namespace from import \"${fullImport}\".`);\n}\n\n/** Gets the set of namespaces that the given import path is aliased to by @use. */\nfunction getAtUseNamespaces(content: string, path: string) {\n const namespaces = new Set<string>();\n const pattern = new RegExp(`@use +['\"]~?${escapeRegExp(path)}['\"].*;?\\n`, 'g');\n let match: RegExpExecArray | null = null;\n\n while ((match = pattern.exec(content))) {\n namespaces.add(extractNamespaceFromUseStatement(match[0]));\n }\n\n return namespaces;\n}\n\n/** Gets a list of matches representing where the given mixin is included with `@include`. */\nfunction getAtIncludes(content: string, namespace: string, mixin: string): RegExpMatchArray[] {\n // The ending checks what comes after the mixin name. We need to check that we don't see a word\n // character or `-` immediately following the mixin name, as that would change the name. Beyond\n // that character we can match anything, to the end of the line.\n const ending = '([^\\\\n\\\\w-][^\\\\n]*)?($|\\\\n)';\n const pattern = new RegExp(\n `@include\\\\s+${escapeRegExp(namespace)}\\\\.${escapeRegExp(mixin)}${ending}`,\n 'g',\n );\n return [...content.matchAll(pattern)];\n}\n\n/** Checks whether the given mixin is included with `@include`. */\nfunction isMixinAtIncluded(content: string, namespace: string, mixin: string) {\n return !!getAtIncludes(content, namespace, mixin).length;\n}\n\n/** Inserts the given lines after the match point. */\nfunction insertLinesAfterMatch(content: string, match: RegExpMatchArray, lines: string[]): string {\n const insertionPoint = match.index! + match[0].length;\n return (\n content.substring(0, insertionPoint) +\n lines.join('\\n') +\n '\\n' +\n content.substring(insertionPoint)\n );\n}\n\n/** Gets the indentation at the given line in the content. */\nfunction getIndentation(content: string, index: number) {\n let indentationStart = 0;\n let indentationEnd = index;\n for (let i = index; i >= 0; i--) {\n if (content[i] === '\\n') {\n indentationStart = i + 1;\n break;\n }\n if (!/\\s/.exec(content[i])) {\n indentationEnd = i;\n }\n }\n return content.slice(indentationStart, indentationEnd);\n}\n\n/** Gets the lines to insert to address the missing mixins. */\nfunction getMissingMixinLines(namespace: string, mixins: Set<string>, indentation: string) {\n return [\n ...MISSING_MIXIN_PREAMBLE_LINES,\n ...[...mixins]\n .sort()\n .map(mixin => `@include ${namespace}.${mixin}(/* TODO(v17): pass $your-theme here */);`),\n '',\n ].map(line => (indentation + line).trimRight());\n}\n\n/**\n * Checks which theme bases are found in the file via the existing included mixins,\n * and which ones may be missing.\n */\nexport function checkThemeBaseMixins(fileContent: string): {\n found: Set<string>;\n missing: Set<string>;\n} {\n const found = new Set<string>();\n const missing = new Set<string>();\n\n // Strip out comments, so they don't confuse our migration.\n const {content} = escapeComments(fileContent);\n const materialNamespaces = getAtUseNamespaces(content, '@angular/material');\n\n // Check over all namespaces for mixins of interest.\n for (const namespace of materialNamespaces) {\n for (const mixins of THEME_MIXIN_SETS) {\n // If they include the theme mixin, that accounts for the base theme styles.\n if (isMixinAtIncluded(content, namespace, mixins.theme)) {\n found.add(mixins.base);\n missing.delete(mixins.base);\n continue;\n }\n // If they haven't called the theme mixin, but do call one of the partials,\n // we assume they're missing the base styles.\n if (!found.has(mixins.base)) {\n if (\n isMixinAtIncluded(content, namespace, mixins.color) ||\n isMixinAtIncluded(content, namespace, mixins.typography) ||\n isMixinAtIncluded(content, namespace, mixins.density)\n ) {\n missing.add(mixins.base);\n }\n }\n }\n }\n\n return {found, missing};\n}\n\n/** Adds the given theme base mixins, after the call to `mat.core()`. */\nexport function addThemeBaseMixins(fileContent: string, mixins: Set<string>): string {\n // Strip out comments, so they don't confuse our migration.\n let {content, placeholders} = escapeComments(fileContent);\n const materialNamespaces = getAtUseNamespaces(content, '@angular/material');\n\n for (const namespace of materialNamespaces) {\n // Update the @includes in reverse order, so our changes don't mess up the indices we found.\n const coreIncludes = getAtIncludes(content, namespace, 'core').reverse();\n for (const coreInclude of coreIncludes) {\n if (coreInclude.index === undefined) {\n throw Error(`Cannot find location of mat.core() match: ${coreInclude}`);\n }\n const indentation = getIndentation(content, coreInclude.index);\n const lines = getMissingMixinLines(namespace, mixins, indentation);\n content = insertLinesAfterMatch(content, coreInclude, lines);\n }\n }\n\n return restoreComments(content, placeholders);\n}\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {extname} from '@angular-devkit/core';\nimport {SchematicContext} from '@angular-devkit/schematics';\nimport {DevkitMigration, ResolvedResource, TargetVersion} from '@angular/cdk/schematics';\nimport {addThemeBaseMixins, checkThemeBaseMixins} from './migration';\n\n/** Adds an @include for theme base mixins that aren't already included by the app. */\nexport class ThemeBaseMigration extends DevkitMigration<null> {\n /** Number of files that have been migrated. */\n static migratedFileCount = 0;\n\n /** All base mixins that we have found an existing @include for. */\n static foundBaseMixins = new Set<string>();\n\n /** All base mixins that appear to be missing an @include. */\n static missingBaseMixins = new Set<string>();\n\n /** Whether to run this migration. */\n enabled = this.targetVersion === TargetVersion.V17;\n\n /**\n * All Sass stylesheets visited. (We save a record, so we can go back through them in the\n * `postAnalysis` phase).\n */\n visitedSassStylesheets: ResolvedResource[] = [];\n\n /**\n * Visit each stylesheet, noting which base mixins are accounted for (because the user is calling\n * `mat.<component>-theme()`), and which ones are missing (because the user is calling one of the\n * theme-partial mixins: `mat.<component-color>()`, `mat.<component>-typography()`,\n * or `mat.<component>-density()`.\n *\n * We don't make any modifications at this point. Instead, the results of visiting each stylesheet\n * are aggregated into a static variable which is used to determine which mixins to add in\n * `postAnalysis` phase.\n */\n override visitStylesheet(stylesheet: ResolvedResource): void {\n if (extname(stylesheet.filePath) === '.scss') {\n this.visitedSassStylesheets.push(stylesheet);\n\n const content = stylesheet.content;\n const {found, missing} = checkThemeBaseMixins(content);\n for (const mixin of found) {\n ThemeBaseMigration.foundBaseMixins.add(mixin);\n ThemeBaseMigration.missingBaseMixins.delete(mixin);\n }\n for (const mixin of missing) {\n if (!ThemeBaseMigration.foundBaseMixins.has(mixin)) {\n ThemeBaseMigration.missingBaseMixins.add(mixin);\n }\n }\n }\n }\n\n /**\n * Perform the necessary updates detected while visiting the stylesheets. The\n * `mat.<component>-base()` mixins behave similarly to `mat.core()`, in that they needed to be\n * included once globally. So we locate calls to `mat.core()` and add the missing mixins\n * identified by earlier at these locations.\n */\n override postAnalysis() {\n // If we're not missing any mixins, there's nothing to migrate.\n if (ThemeBaseMigration.missingBaseMixins.size === 0) {\n return;\n }\n // If we have all-component-bases, we don't need any others and there is nothing to migrate.\n if (ThemeBaseMigration.foundBaseMixins.has('all-component-bases')) {\n return;\n }\n // If we're missing all-component-bases, we just need to add it, not the individual mixins.\n if (ThemeBaseMigration.missingBaseMixins.has('all-component-bases')) {\n ThemeBaseMigration.missingBaseMixins = new Set(['all-component-bases']);\n }\n for (const stylesheet of this.visitedSassStylesheets) {\n const content = stylesheet.content;\n const migratedContent = content\n ? addThemeBaseMixins(content, ThemeBaseMigration.missingBaseMixins)\n : content;\n\n if (migratedContent && migratedContent !== content) {\n this.fileSystem\n .edit(stylesheet.filePath)\n .remove(0, stylesheet.content.length)\n .insertLeft(0, migratedContent);\n ThemeBaseMigration.migratedFileCount++;\n }\n }\n if (ThemeBaseMigration.migratedFileCount === 0) {\n const mixinsText = [...ThemeBaseMigration.missingBaseMixins]\n .sort()\n .map(m => `mat.${m}($theme)`)\n .join('\\n');\n this.failures.push({\n filePath: this.context.tree.root.path,\n message:\n `The following mixins could not be automatically added, please add them manually` +\n ` if needed:\\n${mixinsText}`,\n });\n }\n }\n\n /** Logs out the number of migrated files at the end of the migration. */\n static override globalPostMigration(\n _tree: unknown,\n _targetVersion: TargetVersion,\n context: SchematicContext,\n ): void {\n const fileCount = ThemeBaseMigration.migratedFileCount;\n const mixinCount = ThemeBaseMigration.missingBaseMixins.size;\n\n if (fileCount > 0 && mixinCount > 0) {\n const fileCountText = fileCount === 1 ? '1 file' : `${fileCount} files`;\n const mixinCountText =\n mixinCount === 1 ? '1 theme base mixin' : `${mixinCount} theme base mixins`;\n context.logger.info(\n `Added ${mixinCountText} to ${fileCountText}.` +\n ' Please search for, and address, any \"TODO(v17)\" comments.',\n );\n }\n\n // Reset to avoid leaking between tests.\n ThemeBaseMigration.migratedFileCount = 0;\n ThemeBaseMigration.missingBaseMixins = new Set();\n ThemeBaseMigration.foundBaseMixins = new Set();\n }\n}\n", "/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Rule, SchematicContext} from '@angular-devkit/schematics';\nimport {\n createMigrationSchematicRule,\n NullableDevkitMigration,\n TargetVersion,\n} from '@angular/cdk/schematics';\n\nimport {legacyImportsError} from './migrations/legacy-imports-error';\nimport {materialUpgradeData} from './upgrade-data';\nimport {ThemeBaseMigration} from './migrations/theme-base-v17';\n\nconst materialMigrations: NullableDevkitMigration[] = [ThemeBaseMigration];\n\n/** Entry point for the migration schematics with target of Angular Material v17 */\nexport function updateToV17(): Rule {\n // We pass the v17 migration rule as a callback, instead of using `chain()`, because the\n // legacy imports error only logs an error message, it doesn't actually interrupt the migration\n // process and we don't want to execute migrations if there are leftover legacy imports.\n return legacyImportsError(\n createMigrationSchematicRule(\n TargetVersion.V17,\n materialMigrations,\n materialUpgradeData,\n onMigrationComplete,\n ),\n );\n}\n\n/** Function that will be called when the migration completed. */\nfunction onMigrationComplete(\n context: SchematicContext,\n targetVersion: TargetVersion,\n hasFailures: boolean,\n) {\n context.logger.info('');\n context.logger.info(` ✓ Updated Angular Material to ${targetVersion}`);\n context.logger.info('');\n\n if (hasFailures) {\n context.logger.warn(\n ' ⚠ Some issues were detected but could not be fixed automatically. Please check the ' +\n 'output above and fix these issues manually.',\n );\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,yCAAAA,SAAA;AAeA,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,QAAI;AACJ,KAAC,SAAU,SAAS;AAChB,UAAI,OAAO,OAAO,WAAW,WAAW,SAAS,OAAO,SAAS,WAAW,OAAO,OAAO,SAAS,WAAW,OAAO,CAAC;AACtH,UAAI,OAAO,WAAW,cAAc,OAAO,KAAK;AAC5C,eAAO,SAAS,CAAC,SAAS,GAAG,SAAUC,UAAS;AAAE,kBAAQ,eAAe,MAAM,eAAeA,QAAO,CAAC,CAAC;AAAA,QAAG,CAAC;AAAA,MAC/G,WACS,OAAOD,YAAW,YAAY,OAAOA,QAAO,YAAY,UAAU;AACvE,gBAAQ,eAAe,MAAM,eAAeA,QAAO,OAAO,CAAC,CAAC;AAAA,MAChE,OACK;AACD,gBAAQ,eAAe,IAAI,CAAC;AAAA,MAChC;AACA,eAAS,eAAeC,UAAS,UAAU;AACvC,YAAIA,aAAY,MAAM;AAClB,cAAI,OAAO,OAAO,WAAW,YAAY;AACrC,mBAAO,eAAeA,UAAS,cAAc,EAAE,OAAO,KAAK,CAA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