@angular/core 16.2.0 → 17.0.0-next.0

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.
Files changed (40) hide show
  1. package/esm2022/src/application_ref.mjs +2 -3
  2. package/esm2022/src/application_tokens.mjs +1 -1
  3. package/esm2022/src/core_render3_private_export.mjs +2 -2
  4. package/esm2022/src/di/injector_compatibility.mjs +2 -2
  5. package/esm2022/src/errors.mjs +1 -1
  6. package/esm2022/src/hydration/api.mjs +11 -7
  7. package/esm2022/src/metadata/di.mjs +1 -1
  8. package/esm2022/src/metadata/directives.mjs +1 -1
  9. package/esm2022/src/r3_symbols.mjs +2 -2
  10. package/esm2022/src/render3/deps_tracker/api.mjs +1 -1
  11. package/esm2022/src/render3/deps_tracker/deps_tracker.mjs +10 -3
  12. package/esm2022/src/render3/index.mjs +4 -3
  13. package/esm2022/src/render3/instructions/all.mjs +12 -11
  14. package/esm2022/src/render3/instructions/control_flow.mjs +61 -0
  15. package/esm2022/src/render3/instructions/defer.mjs +87 -5
  16. package/esm2022/src/render3/interfaces/definition.mjs +1 -1
  17. package/esm2022/src/render3/jit/directive.mjs +79 -83
  18. package/esm2022/src/render3/jit/environment.mjs +16 -1
  19. package/esm2022/src/render3/jit/module.mjs +13 -2
  20. package/esm2022/src/render3/jit/util.mjs +38 -1
  21. package/esm2022/src/render3/local_compilation.mjs +12 -0
  22. package/esm2022/src/render3/metadata.mjs +35 -1
  23. package/esm2022/src/version.mjs +1 -1
  24. package/esm2022/testing/src/logger.mjs +3 -3
  25. package/esm2022/testing/src/test_bed.mjs +6 -1
  26. package/esm2022/testing/src/test_bed_compiler.mjs +47 -6
  27. package/fesm2022/core.mjs +14152 -13683
  28. package/fesm2022/core.mjs.map +1 -1
  29. package/fesm2022/rxjs-interop.mjs +1 -1
  30. package/fesm2022/rxjs-interop.mjs.map +1 -1
  31. package/fesm2022/testing.mjs +18113 -17599
  32. package/fesm2022/testing.mjs.map +1 -1
  33. package/index.d.ts +179 -18
  34. package/package.json +1 -1
  35. package/rxjs-interop/index.d.ts +1 -1
  36. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
  37. package/schematics/migrations/remove-module-id/bundle.js +14 -14
  38. package/schematics/ng-generate/standalone-migration/bundle.js +6508 -5827
  39. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  40. package/testing/index.d.ts +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0
2
+ * @license Angular v17.0.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -270,7 +270,7 @@ export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "B
270
270
  *
271
271
  * @publicApi
272
272
  */
273
- export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
273
+ export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<readonly ((compRef: ComponentRef<any>) => void)[]>;
274
274
 
275
275
  /**
276
276
  * A [DI token](guide/glossary#di-token "DI token definition") representing a string ID, used
@@ -1738,8 +1738,6 @@ export declare interface ContentChildDecorator {
1738
1738
  * If the content DOM changes, and a new child matches the selector,
1739
1739
  * the property will be updated.
1740
1740
  *
1741
- * Content queries are set before the `ngAfterContentInit` callback is called.
1742
- *
1743
1741
  * Does not retrieve elements or directives that are in other components' templates,
1744
1742
  * since a component's template is always a black box to its ancestors.
1745
1743
  *
@@ -1770,6 +1768,17 @@ export declare interface ContentChildDecorator {
1770
1768
  * * Any provider defined through a string token (e.g. `{provide: 'token', useValue: 'val'}`)
1771
1769
  * * `TemplateRef`, `ElementRef`, and `ViewContainerRef`
1772
1770
  *
1771
+ * Difference between dynamic and static queries:
1772
+ *
1773
+ * | Queries | Details |
1774
+ * |:--- |:--- |
1775
+ * | Dynamic queries \(`static: false`\) | The query resolves before the `ngAfterContentInit()`
1776
+ * callback is called. The result will be updated for changes to your view, such as changes to
1777
+ * `ngIf` and `ngFor` blocks. | | Static queries \(`static: true`\) | The query resolves once
1778
+ * the view has been created, but before change detection runs (before the `ngOnInit()` callback
1779
+ * is called). The result, though, will never be updated to reflect changes to your view, such as
1780
+ * changes to `ngIf` and `ngFor` blocks. |
1781
+ *
1773
1782
  * @usageNotes
1774
1783
  *
1775
1784
  * {@example core/di/ts/contentChild/content_child_howto.ts region='HowTo'}
@@ -3748,6 +3757,10 @@ export declare const Host: HostDecorator;
3748
3757
  export declare interface HostBinding {
3749
3758
  /**
3750
3759
  * The DOM property that is bound to a data property.
3760
+ * This field also accepts:
3761
+ * * classes, prefixed by `class.`
3762
+ * * styles, prefixed by `style.`
3763
+ * * attributes, prefixed by `attr.`
3751
3764
  */
3752
3765
  hostPropertyName?: string;
3753
3766
  }
@@ -3765,23 +3778,35 @@ export declare const HostBinding: HostBindingDecorator;
3765
3778
  */
3766
3779
  export declare interface HostBindingDecorator {
3767
3780
  /**
3768
- * Decorator that marks a DOM property as a host-binding property and supplies configuration
3769
- * metadata.
3770
- * Angular automatically checks host property bindings during change detection, and
3771
- * if a binding changes it updates the host element of the directive.
3781
+ * Decorator that marks a DOM property or an element class, style or attribute as a host-binding
3782
+ * property and supplies configuration metadata. Angular automatically checks host bindings during
3783
+ * change detection, and if a binding changes it updates the host element of the directive.
3772
3784
  *
3773
3785
  * @usageNotes
3774
3786
  *
3775
3787
  * The following example creates a directive that sets the `valid` and `invalid`
3776
- * properties on the DOM element that has an `ngModel` directive on it.
3788
+ * class, a style color, and an id on the DOM element that has an `ngModel` directive on it.
3777
3789
  *
3778
3790
  * ```typescript
3779
3791
  * @Directive({selector: '[ngModel]'})
3780
3792
  * class NgModelStatus {
3781
3793
  * constructor(public control: NgModel) {}
3794
+ * // class bindings
3782
3795
  * @HostBinding('class.valid') get valid() { return this.control.valid; }
3783
3796
  * @HostBinding('class.invalid') get invalid() { return this.control.invalid; }
3784
- * }
3797
+ *
3798
+ * // style binding
3799
+ * @HostBinding('style.color') get color() { return this.control.valid ? 'green': 'red'; }
3800
+ *
3801
+ * // style binding also supports a style unit extension
3802
+ * @HostBinding('style.width.px') @Input() width: number = 500;
3803
+ *
3804
+ * // attribute binding
3805
+ * @HostBinding('attr.aria-required')
3806
+ * @Input() required: boolean = false;
3807
+ *
3808
+ * // property binding
3809
+ * @HostBinding('id') get id() { return this.control.value?.length ? 'odd': 'even'; }
3785
3810
  *
3786
3811
  * @Component({
3787
3812
  * selector: 'app',
@@ -4037,6 +4062,7 @@ declare namespace i0 {
4037
4062
  ɵɵInjectorDeclaration,
4038
4063
  ɵɵNgModuleDeclaration,
4039
4064
  ɵsetClassMetadata as setClassMetadata,
4065
+ ɵsetClassMetadataAsync as setClassMetadataAsync,
4040
4066
  ɵNgModuleFactory as NgModuleFactory,
4041
4067
  ɵnoSideEffects,
4042
4068
  ITS_JUST_ANGULAR
@@ -6624,7 +6650,7 @@ export declare const PLATFORM_ID: InjectionToken<Object>;
6624
6650
  * A function that is executed when a platform is initialized.
6625
6651
  * @publicApi
6626
6652
  */
6627
- export declare const PLATFORM_INITIALIZER: InjectionToken<(() => void)[]>;
6653
+ export declare const PLATFORM_INITIALIZER: InjectionToken<readonly (() => void)[]>;
6628
6654
 
6629
6655
  /**
6630
6656
  * This platform has to be included in any other platform
@@ -7186,6 +7212,8 @@ declare class R3Injector extends EnvironmentInjector {
7186
7212
  private removeOnDestroy;
7187
7213
  }
7188
7214
 
7215
+ declare type RawScopeInfoFromDecorator = Type<any> | ModuleWithProviders<any> | (() => Type<any>) | (() => ModuleWithProviders<any>);
7216
+
7189
7217
  declare interface RComment extends RNode {
7190
7218
  textContent: string | null;
7191
7219
  }
@@ -7810,7 +7838,7 @@ declare const enum RuntimeErrorCode {
7810
7838
  INVALID_SKIP_HYDRATION_HOST = -504,
7811
7839
  MISSING_HYDRATION_ANNOTATIONS = -505,
7812
7840
  HYDRATION_STABLE_TIMEDOUT = -506,
7813
- MISSING_SSR_CONTENT_INTEGRITY_MARKER = 507,
7841
+ MISSING_SSR_CONTENT_INTEGRITY_MARKER = -507,
7814
7842
  SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600,
7815
7843
  REQUIRE_SYNC_WITHOUT_SYNC_EMIT = 601,
7816
7844
  INVALID_I18N_STRUCTURE = 700,
@@ -9949,14 +9977,12 @@ export declare interface ViewChildDecorator {
9949
9977
  * in the view DOM. If the view DOM changes, and a new child matches the selector,
9950
9978
  * the property is updated.
9951
9979
  *
9952
- * View queries are set before the `ngAfterViewInit` callback is called.
9953
- *
9954
9980
  * **Metadata Properties**:
9955
9981
  *
9956
9982
  * * **selector** - The directive type or the name used for querying.
9957
9983
  * * **read** - Used to read a different token from the queried elements.
9958
- * * **static** - True to resolve query results before change detection runs,
9959
- * false to resolve after change detection. Defaults to false.
9984
+ * * **static** - `true` to resolve query results before change detection runs,
9985
+ * `false` to resolve after change detection. Defaults to `false`.
9960
9986
  *
9961
9987
  *
9962
9988
  * The following selectors are supported.
@@ -9977,6 +10003,17 @@ export declare interface ViewChildDecorator {
9977
10003
  * * Any provider defined through a string token (e.g. `{provide: 'token', useValue: 'val'}`)
9978
10004
  * * `TemplateRef`, `ElementRef`, and `ViewContainerRef`
9979
10005
  *
10006
+ * Difference between dynamic and static queries**:
10007
+ *
10008
+ * | Queries | Details |
10009
+ * |:--- |:--- |
10010
+ * | Dynamic queries \(`static: false`\) | The query resolves before the `ngAfterViewInit()`
10011
+ * callback is called. The result will be updated for changes to your view, such as changes to
10012
+ * `ngIf` and `ngFor` blocks. | | Static queries \(`static: true`\) | The query resolves once
10013
+ * the view has been created, but before change detection runs (before the `ngOnInit()` callback
10014
+ * is called). The result, though, will never be updated to reflect changes to your view, such as
10015
+ * changes to `ngIf` and `ngFor` blocks. |
10016
+ *
9980
10017
  * @usageNotes
9981
10018
  *
9982
10019
  * {@example core/di/ts/viewChild/view_child_example.ts region='Component'}
@@ -11812,6 +11849,16 @@ export declare function ɵsetClassMetadata(type: Type<any>, decorators: any[] |
11812
11849
  [field: string]: any;
11813
11850
  } | null): void;
11814
11851
 
11852
+ /**
11853
+ * Handles the process of applying metadata info to a component class in case
11854
+ * component template had `{#defer}` blocks (thus some dependencies became deferrable).
11855
+ *
11856
+ * @param type Component class where metadata should be added
11857
+ * @param dependencyLoaderFn Function that loads dependencies
11858
+ * @param metadataSetterFn Function that forms a scope in which the `setClassMetadata` is invoked
11859
+ */
11860
+ export declare function ɵsetClassMetadataAsync(type: Type<any>, dependencyLoaderFn: () => Array<Promise<Type<unknown>>>, metadataSetterFn: (...types: Type<unknown>[]) => void): Promise<Array<Type<unknown>>>;
11861
+
11815
11862
  export declare function ɵsetCurrentInjector(injector: Injector | null | undefined): Injector | undefined | null;
11816
11863
 
11817
11864
 
@@ -12783,6 +12830,20 @@ export declare type ɵɵComponentDeclaration<T, Selector extends String, ExportA
12783
12830
  [key: string]: string;
12784
12831
  }, QueryFields extends string[], NgContentSelectors extends string[], IsStandalone extends boolean = false, HostDirectives = never, IsSignal extends boolean = false> = unknown;
12785
12832
 
12833
+
12834
+ /**
12835
+ * The conditional instruction represents the basic building block on the runtime side to support
12836
+ * built-in "if" and "switch". On the high level this instruction is responsible for adding and
12837
+ * removing views selected by a conditional expression.
12838
+ *
12839
+ * @param containerIndex index of a container in a host view (indexed from HEADER_OFFSET) where
12840
+ * conditional views should be inserted.
12841
+ * @param matchingTemplateIndex index of a template TNode representing a conditional view to be
12842
+ * inserted; -1 represents a special case when there is no view to insert.
12843
+ * @codeGenApi
12844
+ */
12845
+ export declare function ɵɵconditional<T>(containerIndex: number, matchingTemplateIndex: number, value?: T): void;
12846
+
12786
12847
  /**
12787
12848
  * Registers a QueryList, associated with a content query, for later refresh (part of a view
12788
12849
  * refresh).
@@ -12818,12 +12879,110 @@ export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef<any
12818
12879
  /**
12819
12880
  * Creates runtime data structures for `{#defer}` blocks.
12820
12881
  *
12821
- * @param index The index of the defer block in the data array
12882
+ * @param deferIndex Index of the underlying deferred block data structure.
12883
+ * @param primaryTemplateIndex Index of the template function with the block's content.
12822
12884
  * @param deferredDepsFn Function that contains dependencies for this defer block
12885
+ * @param loadingIndex Index of the template with the `{:loading}` block content.
12886
+ * @param placeholderIndex Index of the template with the `{:placeholder}` block content.
12887
+ * @param error Index of the template with the `{:error}` block content.
12888
+ * @param loadingConfigIndex Index in the constants array of the configuration of the `{:loading}`
12889
+ * block.
12890
+ * @param placeholderConfigIndexIndex in the constants array of the configuration of the
12891
+ * `{:placeholder}` block.
12823
12892
  *
12824
12893
  * @codeGenApi
12825
12894
  */
12826
- export declare function ɵɵdefer(index: number, deferredDepsFn: DeferredDepsFn | null): void;
12895
+ export declare function ɵɵdefer(deferIndex: number, primaryTemplateIndex: number, deferredDepsFn?: DeferredDepsFn | null, loadingIndex?: number | null, placeholderIndex?: number | null, errorIndex?: number | null, loadingConfigIndex?: number | null, placeholderConfigIndex?: number | null): void;
12896
+
12897
+ /**
12898
+ * Creates runtime data structures for the `on hover` deferred trigger.
12899
+ * @codeGenApi
12900
+ */
12901
+ export declare function ɵɵdeferOnHover(): void;
12902
+
12903
+ /**
12904
+ * Creates runtime data structures for the `on idle` deferred trigger.
12905
+ * @codeGenApi
12906
+ */
12907
+ export declare function ɵɵdeferOnIdle(): void;
12908
+
12909
+ /**
12910
+ * Creates runtime data structures for the `on immediate` deferred trigger.
12911
+ * @codeGenApi
12912
+ */
12913
+ export declare function ɵɵdeferOnImmediate(): void;
12914
+
12915
+ /**
12916
+ * Creates runtime data structures for the `on interaction` deferred trigger.
12917
+ * @param target Optional element on which to listen for hover events.
12918
+ * @codeGenApi
12919
+ */
12920
+ export declare function ɵɵdeferOnInteraction(target?: unknown): void;
12921
+
12922
+ /**
12923
+ * Creates runtime data structures for the `on timer` deferred trigger.
12924
+ * @param delay Amount of time to wait before loading the content.
12925
+ * @codeGenApi
12926
+ */
12927
+ export declare function ɵɵdeferOnTimer(delay: number): void;
12928
+
12929
+ /**
12930
+ * Creates runtime data structures for the `on viewport` deferred trigger.
12931
+ * @param target Optional element on which to listen for hover events.
12932
+ * @codeGenApi
12933
+ */
12934
+ export declare function ɵɵdeferOnViewport(target?: unknown): void;
12935
+
12936
+ /**
12937
+ * Creates runtime data structures for the `prefetech on hover` deferred trigger.
12938
+ * @codeGenApi
12939
+ */
12940
+ export declare function ɵɵdeferPrefetchOnHover(): void;
12941
+
12942
+ /**
12943
+ * Creates runtime data structures for the `prefetech on idle` deferred trigger.
12944
+ * @codeGenApi
12945
+ */
12946
+ export declare function ɵɵdeferPrefetchOnIdle(): void;
12947
+
12948
+ /**
12949
+ * Creates runtime data structures for the `prefetech on immediate` deferred trigger.
12950
+ * @codeGenApi
12951
+ */
12952
+ export declare function ɵɵdeferPrefetchOnImmediate(): void;
12953
+
12954
+ /**
12955
+ * Creates runtime data structures for the `prefetch on interaction` deferred trigger.
12956
+ * @param target Optional element on which to listen for hover events.
12957
+ * @codeGenApi
12958
+ */
12959
+ export declare function ɵɵdeferPrefetchOnInteraction(target?: unknown): void;
12960
+
12961
+ /**
12962
+ * Creates runtime data structures for the `prefetch on timer` deferred trigger.
12963
+ * @param delay Amount of time to wait before prefetching the content.
12964
+ * @codeGenApi
12965
+ */
12966
+ export declare function ɵɵdeferPrefetchOnTimer(delay: number): void;
12967
+
12968
+ /**
12969
+ * Creates runtime data structures for the `prefetch on viewport` deferred trigger.
12970
+ * @param target Optional element on which to listen for hover events.
12971
+ * @codeGenApi
12972
+ */
12973
+ export declare function ɵɵdeferPrefetchOnViewport(target?: unknown): void;
12974
+
12975
+ /**
12976
+ * Prefetches the deferred content when a value becomes truthy.
12977
+ * @codeGenApi
12978
+ */
12979
+ export declare function ɵɵdeferPrefetchWhen(value: unknown): void;
12980
+
12981
+ /**
12982
+ * Loads the deferred content when a value becomes truthy.
12983
+ * @codeGenApi
12984
+ */
12985
+ export declare function ɵɵdeferWhen(value: unknown): void;
12827
12986
 
12828
12987
  /**
12829
12988
  * Create a component definition object.
@@ -13132,6 +13291,8 @@ export declare enum ɵɵFactoryTarget {
13132
13291
  NgModule = 4
13133
13292
  }
13134
13293
 
13294
+ export declare function ɵɵgetComponentDepsFactory(type: Type<any>, rawImports?: RawScopeInfoFromDecorator): () => DependencyTypeList;
13295
+
13135
13296
  /**
13136
13297
  * Returns the current OpaqueViewState instance.
13137
13298
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.2.0",
3
+ "version": "17.0.0-next.0",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0
2
+ * @license Angular v17.0.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
60
60
  });
61
61
  };
62
62
 
63
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
63
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
64
64
  var guard_and_resolve_interfaces_exports = {};
65
65
  __export(guard_and_resolve_interfaces_exports, {
66
66
  default: () => guard_and_resolve_interfaces_default
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(guard_and_resolve_interfaces_exports);
69
69
  var import_schematics = require("@angular-devkit/schematics");
70
70
  var import_path3 = require("path");
71
71
 
72
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
72
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
73
73
  var import_core = require("@angular-devkit/core");
74
74
  function getProjectTsConfigPaths(tree) {
75
75
  return __async(this, null, function* () {
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
149
149
  });
150
150
  }
151
151
 
152
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
152
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
153
153
  var import_path = require("path");
154
154
  var import_typescript2 = __toESM(require("typescript"), 1);
155
155
 
156
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
156
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
157
157
  var path = __toESM(require("path"), 1);
158
158
  var import_typescript = __toESM(require("typescript"), 1);
159
159
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
170
170
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
171
171
  }
172
172
 
173
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
173
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
174
174
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
175
175
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
176
176
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
203
203
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
204
204
  }
205
205
 
206
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
206
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
207
207
  var import_typescript7 = __toESM(require("typescript"), 1);
208
208
 
209
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
209
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
210
210
  var import_typescript4 = __toESM(require("typescript"), 1);
211
211
 
212
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
212
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
213
213
  var import_path2 = require("path");
214
214
  var import_typescript3 = __toESM(require("typescript"), 1);
215
215
  var ImportManager = class {
@@ -393,7 +393,7 @@ ${text}`;
393
393
  }
394
394
  };
395
395
 
396
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
396
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
397
397
  var ChangeTracker = class {
398
398
  constructor(_printer, _importRemapper) {
399
399
  __publicField(this, "_printer");
@@ -449,7 +449,7 @@ function normalizePath(path2) {
449
449
  return path2.replace(/\\/g, "/");
450
450
  }
451
451
 
452
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
452
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
453
453
  var import_typescript5 = __toESM(require("typescript"), 1);
454
454
  function getImportOfIdentifier(typeChecker, node) {
455
455
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -521,7 +521,7 @@ function findImportSpecifier(nodes, specifierName) {
521
521
  });
522
522
  }
523
523
 
524
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
524
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
525
525
  var import_typescript6 = __toESM(require("typescript"), 1);
526
526
  function closestNode(node, predicate) {
527
527
  let current = node.parent;
@@ -534,7 +534,7 @@ function closestNode(node, predicate) {
534
534
  return null;
535
535
  }
536
536
 
537
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
537
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
538
538
  var deprecatedInterfaces = /* @__PURE__ */ new Set(["CanLoad", "CanMatch", "CanActivate", "CanDeactivate", "CanActivateChild", "Resolve"]);
539
539
  var routerModule = "@angular/router";
540
540
  function migrateFile(sourceFile, typeChecker, rewriteFn) {
@@ -647,7 +647,7 @@ function visitTypeReference(typeReference, typeChecker, changeTracker, sourceFil
647
647
  import_typescript7.default.forEachChild(typeReference, visitTypeReferenceChildren);
648
648
  }
649
649
 
650
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
650
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
651
651
  function guard_and_resolve_interfaces_default() {
652
652
  return (tree) => __async(this, null, function* () {
653
653
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
56
56
  });
57
57
  };
58
58
 
59
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
59
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
60
60
  var remove_module_id_exports = {};
61
61
  __export(remove_module_id_exports, {
62
62
  default: () => remove_module_id_default
@@ -66,13 +66,13 @@ var import_schematics = require("@angular-devkit/schematics");
66
66
  var import_path2 = require("path");
67
67
  var import_typescript8 = __toESM(require("typescript"), 1);
68
68
 
69
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
69
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
70
70
  var import_typescript4 = __toESM(require("typescript"), 1);
71
71
 
72
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
72
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
73
73
  var import_typescript2 = __toESM(require("typescript"), 1);
74
74
 
75
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
75
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
76
76
  var import_typescript = __toESM(require("typescript"), 1);
77
77
  function getImportOfIdentifier(typeChecker, node) {
78
78
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -94,7 +94,7 @@ function getImportOfIdentifier(typeChecker, node) {
94
94
  };
95
95
  }
96
96
 
97
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
97
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
98
98
  function getCallDecoratorImport(typeChecker, decorator) {
99
99
  if (!import_typescript2.default.isCallExpression(decorator.expression) || !import_typescript2.default.isIdentifier(decorator.expression.expression)) {
100
100
  return null;
@@ -103,7 +103,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
103
103
  return getImportOfIdentifier(typeChecker, identifier);
104
104
  }
105
105
 
106
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
106
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
107
107
  function getAngularDecorators(typeChecker, decorators) {
108
108
  return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
109
109
  node,
@@ -113,7 +113,7 @@ function getAngularDecorators(typeChecker, decorators) {
113
113
  }));
114
114
  }
115
115
 
116
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
116
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
117
117
  var import_typescript3 = __toESM(require("typescript"), 1);
118
118
  function unwrapExpression(node) {
119
119
  if (import_typescript3.default.isParenthesizedExpression(node) || import_typescript3.default.isAsExpression(node)) {
@@ -123,7 +123,7 @@ function unwrapExpression(node) {
123
123
  }
124
124
  }
125
125
 
126
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
126
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
127
127
  function extractAngularClassMetadata(typeChecker, node) {
128
128
  const decorators = import_typescript4.default.getDecorators(node);
129
129
  if (!decorators || !decorators.length) {
@@ -150,7 +150,7 @@ function extractAngularClassMetadata(typeChecker, node) {
150
150
  };
151
151
  }
152
152
 
153
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
153
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
154
154
  var import_core = require("@angular-devkit/core");
155
155
  function getProjectTsConfigPaths(tree) {
156
156
  return __async(this, null, function* () {
@@ -230,11 +230,11 @@ function getWorkspace(tree) {
230
230
  });
231
231
  }
232
232
 
233
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
233
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
234
234
  var import_path = require("path");
235
235
  var import_typescript6 = __toESM(require("typescript"), 1);
236
236
 
237
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
237
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
238
238
  var path = __toESM(require("path"), 1);
239
239
  var import_typescript5 = __toESM(require("typescript"), 1);
240
240
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -251,7 +251,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
251
251
  return import_typescript5.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
252
252
  }
253
253
 
254
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
254
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
255
255
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
256
256
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
257
257
  return import_typescript6.default.createProgram(rootNames, options, host);
@@ -284,7 +284,7 @@ function canMigrateFile(basePath, sourceFile, program) {
284
284
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
285
285
  }
286
286
 
287
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
287
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
288
288
  var import_typescript7 = __toESM(require("typescript"), 1);
289
289
  function getPropertyNameText(node) {
290
290
  if (import_typescript7.default.isIdentifier(node) || import_typescript7.default.isStringLiteralLike(node)) {
@@ -293,7 +293,7 @@ function getPropertyNameText(node) {
293
293
  return null;
294
294
  }
295
295
 
296
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
296
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
297
297
  function remove_module_id_default() {
298
298
  return (tree) => __async(this, null, function* () {
299
299
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);