@angular/core 16.1.0-next.1 → 16.1.0-next.3

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 +7 -2
  2. package/esm2022/src/compiler/compiler_facade_interface.mjs +1 -1
  3. package/esm2022/src/core.mjs +2 -1
  4. package/esm2022/src/core_private_export.mjs +2 -2
  5. package/esm2022/src/core_render3_private_export.mjs +2 -2
  6. package/esm2022/src/di/forward_ref.mjs +29 -2
  7. package/esm2022/src/hydration/api.mjs +4 -7
  8. package/esm2022/src/initial_render_pending_tasks.mjs +12 -37
  9. package/esm2022/src/interface/lifecycle_hooks.mjs +1 -1
  10. package/esm2022/src/metadata/directives.mjs +1 -1
  11. package/esm2022/src/render3/definition.mjs +3 -1
  12. package/esm2022/src/render3/di.mjs +5 -2
  13. package/esm2022/src/render3/errors.mjs +20 -2
  14. package/esm2022/src/render3/features/host_directives_feature.mjs +2 -2
  15. package/esm2022/src/render3/features/inherit_definition_feature.mjs +8 -1
  16. package/esm2022/src/render3/features/input_transforms_feature.mjs +32 -0
  17. package/esm2022/src/render3/index.mjs +3 -2
  18. package/esm2022/src/render3/instructions/shared.mjs +5 -1
  19. package/esm2022/src/render3/interfaces/definition.mjs +1 -1
  20. package/esm2022/src/render3/jit/environment.mjs +2 -1
  21. package/esm2022/src/render3/jit/module.mjs +11 -11
  22. package/esm2022/src/signals/src/graph.mjs +1 -1
  23. package/esm2022/src/util/coercion.mjs +24 -3
  24. package/esm2022/src/util/property.mjs +1 -1
  25. package/esm2022/src/version.mjs +1 -1
  26. package/esm2022/testing/src/logger.mjs +3 -3
  27. package/fesm2022/core.mjs +174 -90
  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 +103 -16
  32. package/fesm2022/testing.mjs.map +1 -1
  33. package/index.d.ts +111 -19
  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 +710 -400
  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,10 +1,11 @@
1
1
  /**
2
- * @license Angular v16.1.0-next.1
2
+ * @license Angular v16.1.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
 
8
+ import { BehaviorSubject } from 'rxjs';
8
9
  import { Observable } from 'rxjs';
9
10
  import { Subject } from 'rxjs';
10
11
  import { Subscribable } from 'rxjs';
@@ -25,7 +26,8 @@ export declare interface AbstractType<T> extends Function {
25
26
  /**
26
27
  * @description
27
28
  * A lifecycle hook that is called after the default change detector has
28
- * completed checking all content of a directive.
29
+ * completed checking all content of a directive. It will run after the content
30
+ * has been checked and most of the time it's during a change detection cycle.
29
31
  *
30
32
  * @see `AfterViewChecked`
31
33
  * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
@@ -50,7 +52,7 @@ export declare interface AfterContentChecked {
50
52
  /**
51
53
  * @description
52
54
  * A lifecycle hook that is called after Angular has fully initialized
53
- * all content of a directive.
55
+ * all content of a directive. It will run only once when the projected content is initialized.
54
56
  * Define an `ngAfterContentInit()` method to handle any additional initialization tasks.
55
57
  *
56
58
  * @see `OnInit`
@@ -391,6 +393,7 @@ export declare class ApplicationRef {
391
393
  private _destroyed;
392
394
  private _destroyListeners;
393
395
  private readonly internalErrorHandler;
396
+ private readonly zoneIsStable;
394
397
  /**
395
398
  * Indicates whether this instance was destroyed.
396
399
  */
@@ -609,6 +612,16 @@ export declare interface AttributeDecorator {
609
612
  new (name: string): Attribute;
610
613
  }
611
614
 
615
+
616
+ /**
617
+ * Transforms a value (typically a string) to a boolean.
618
+ * Intended to be used as a transform function of an input.
619
+ * @param value Value to be transformed.
620
+ *
621
+ * @publicApi
622
+ */
623
+ export declare function booleanAttribute(value: unknown): boolean;
624
+
612
625
  /**
613
626
  * Provides additional options to the bootstrapping process.
614
627
  *
@@ -2443,6 +2456,7 @@ export declare interface Directive {
2443
2456
  name: string;
2444
2457
  alias?: string;
2445
2458
  required?: boolean;
2459
+ transform?: (value: any) => any;
2446
2460
  } | string)[];
2447
2461
  /**
2448
2462
  * Enumerates the set of event-bound output properties.
@@ -2730,7 +2744,7 @@ declare interface DirectiveDefinition<T> {
2730
2744
  /**
2731
2745
  * A map of input names.
2732
2746
  *
2733
- * The format is in: `{[actualPropertyName: string]:(string|[string, string])}`.
2747
+ * The format is in: `{[actualPropertyName: string]:(string|[string, string, Function])}`.
2734
2748
  *
2735
2749
  * Given:
2736
2750
  * ```
@@ -2740,6 +2754,9 @@ declare interface DirectiveDefinition<T> {
2740
2754
  *
2741
2755
  * @Input('publicInput2')
2742
2756
  * declaredInput2: string;
2757
+ *
2758
+ * @Input({transform: (value: boolean) => value ? 1 : 0})
2759
+ * transformedInput3: number;
2743
2760
  * }
2744
2761
  * ```
2745
2762
  *
@@ -2748,6 +2765,11 @@ declare interface DirectiveDefinition<T> {
2748
2765
  * {
2749
2766
  * publicInput1: 'publicInput1',
2750
2767
  * declaredInput2: ['declaredInput2', 'publicInput2'],
2768
+ * transformedInput3: [
2769
+ * 'transformedInput3',
2770
+ * 'transformedInput3',
2771
+ * (value: boolean) => value ? 1 : 0
2772
+ * ]
2751
2773
  * }
2752
2774
  * ```
2753
2775
  *
@@ -2756,6 +2778,11 @@ declare interface DirectiveDefinition<T> {
2756
2778
  * {
2757
2779
  * minifiedPublicInput1: 'publicInput1',
2758
2780
  * minifiedDeclaredInput2: [ 'publicInput2', 'declaredInput2'],
2781
+ * minifiedTransformedInput3: [
2782
+ * 'transformedInput3',
2783
+ * 'transformedInput3',
2784
+ * (value: boolean) => value ? 1 : 0
2785
+ * ]
2759
2786
  * }
2760
2787
  * ```
2761
2788
  *
@@ -2771,7 +2798,7 @@ declare interface DirectiveDefinition<T> {
2771
2798
  * API will be simplified to be consistent with `output`.
2772
2799
  */
2773
2800
  inputs?: {
2774
- [P in keyof T]?: string | [string, string];
2801
+ [P in keyof T]?: string | [string, string, InputTransformFunction?];
2775
2802
  };
2776
2803
  /**
2777
2804
  * A map of output names.
@@ -3428,9 +3455,36 @@ declare const FLAGS = 2;
3428
3455
  * DI is declared, but not yet defined. It is also used when the `token` which we use when creating
3429
3456
  * a query is not yet defined.
3430
3457
  *
3458
+ * `forwardRef` is also used to break circularities in standalone components imports.
3459
+ *
3431
3460
  * @usageNotes
3432
- * ### Example
3461
+ * ### Circular dependency example
3433
3462
  * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
3463
+ *
3464
+ * ### Circular standalone reference import example
3465
+ * ```ts
3466
+ * @Component({
3467
+ * standalone: true,
3468
+ * imports: [ChildComponent],
3469
+ * selector: 'app-parent',
3470
+ * template: `<app-child [hideParent]="hideParent"></app-child>`,
3471
+ * })
3472
+ * export class ParentComponent {
3473
+ * @Input() hideParent: boolean;
3474
+ * }
3475
+ *
3476
+ *
3477
+ * @Component({
3478
+ * standalone: true,
3479
+ * imports: [CommonModule, forwardRef(() => ParentComponent)],
3480
+ * selector: 'app-child',
3481
+ * template: `<app-parent *ngIf="!hideParent"></app-parent>`,
3482
+ * })
3483
+ * export class ChildComponent {
3484
+ * @Input() hideParent: boolean;
3485
+ * }
3486
+ * ```
3487
+ *
3434
3488
  * @publicApi
3435
3489
  */
3436
3490
  export declare function forwardRef(forwardRefFn: ForwardRefFn): Type<any>;
@@ -4601,6 +4655,10 @@ export declare interface Input {
4601
4655
  * Whether the input is required for the directive to function.
4602
4656
  */
4603
4657
  required?: boolean;
4658
+ /**
4659
+ * Function with which to transform the input value before assigning it to the directive instance.
4660
+ */
4661
+ transform?: (value: any) => any;
4604
4662
  }
4605
4663
 
4606
4664
  /**
@@ -4662,6 +4720,11 @@ export declare interface InputDecorator {
4662
4720
  new (arg?: string | Input): any;
4663
4721
  }
4664
4722
 
4723
+ /** Function that can be used to transform incoming input values. */
4724
+ declare type InputTransformFunction = (value: any) => any;
4725
+
4726
+ declare type InputTransformFunction_2 = any;
4727
+
4665
4728
  /**
4666
4729
  * See `TNode.insertBeforeIndex`
4667
4730
  */
@@ -6070,6 +6133,16 @@ declare const NODES = "n";
6070
6133
 
6071
6134
  declare const NUM_ROOT_NODES = "r";
6072
6135
 
6136
+ /**
6137
+ * Transforms a value (typically a string) to a number.
6138
+ * Intended to be used as a transform function of an input.
6139
+ * @param value Value to be transformed.
6140
+ * @param fallbackValue Value to use if the provided value can't be parsed as a number.
6141
+ *
6142
+ * @publicApi
6143
+ */
6144
+ export declare function numberAttribute(value: unknown, fallbackValue?: number): number;
6145
+
6073
6146
  declare const ON_DESTROY_HOOKS = 21;
6074
6147
 
6075
6148
  /**
@@ -6796,7 +6869,11 @@ declare interface R3DeclareDirectiveFacade {
6796
6869
  selector?: string;
6797
6870
  type: Type_2;
6798
6871
  inputs?: {
6799
- [classPropertyName: string]: string | [string, string];
6872
+ [classPropertyName: string]: string | [
6873
+ bindingPropertyName: string,
6874
+ classPropertyName: string,
6875
+ transformFunction?: InputTransformFunction_2
6876
+ ];
6800
6877
  };
6801
6878
  outputs?: {
6802
6879
  [classPropertyName: string]: string;
@@ -10338,10 +10415,6 @@ export declare const enum ɵBypassType {
10338
10415
 
10339
10416
  export declare function ɵclearResolutionOfComponentResourcesQueue(): Map<Type<any>, Component>;
10340
10417
 
10341
-
10342
- /** Coerces a value (typically a string) to a boolean. */
10343
- export declare function ɵcoerceToBoolean(value: unknown): boolean;
10344
-
10345
10418
  /**
10346
10419
  * Compile an Angular component according to its decorator metadata, and patch the resulting
10347
10420
  * component def (ɵcmp) onto the component type.
@@ -10579,6 +10652,21 @@ export declare interface ɵDirectiveDef<T> {
10579
10652
  readonly inputs: {
10580
10653
  [P in keyof T]: string;
10581
10654
  };
10655
+ /**
10656
+ * A dictionary mapping the private names of inputs to their transformation functions.
10657
+ * Note: the private names are used for the keys, rather than the public ones, because public
10658
+ * names can be re-aliased in host directives which would invalidate the lookup.
10659
+ */
10660
+ readonly inputTransforms: {
10661
+ [classPropertyName: string]: InputTransformFunction;
10662
+ } | null;
10663
+ /**
10664
+ * Contains the raw input information produced by the compiler. Can be
10665
+ * used to do further processing after the `inputs` have been inverted.
10666
+ */
10667
+ readonly inputConfig: {
10668
+ [classPropertyName: string]: string | [string, string, InputTransformFunction?];
10669
+ };
10582
10670
  /**
10583
10671
  * @deprecated This is only here because `NgOnChanges` incorrectly uses declared name instead of
10584
10672
  * public or minified name.
@@ -10853,17 +10941,11 @@ export declare const ɵglobal: any;
10853
10941
  */
10854
10942
  export declare class ɵInitialRenderPendingTasks implements OnDestroy {
10855
10943
  private taskId;
10856
- private collection;
10857
- private ngZone;
10858
- private resolve;
10859
- private promise;
10860
- get whenAllTasksComplete(): Promise<void>;
10861
- completed: boolean;
10862
- constructor();
10944
+ private pendingTasks;
10945
+ hasPendingTasks: BehaviorSubject<boolean>;
10863
10946
  add(): number;
10864
10947
  remove(taskId: number): void;
10865
10948
  ngOnDestroy(): void;
10866
- private complete;
10867
10949
  static ɵfac: i0.ɵɵFactoryDeclaration<ɵInitialRenderPendingTasks, never>;
10868
10950
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵInitialRenderPendingTasks>;
10869
10951
  }
@@ -13075,6 +13157,16 @@ export declare interface ɵɵInjectorDef<T> {
13075
13157
  imports: (InjectorType<any> | InjectorTypeWithProviders<any>)[];
13076
13158
  }
13077
13159
 
13160
+ /**
13161
+ * Decorates the directive definition with support for input transform functions.
13162
+ *
13163
+ * If the directive uses inheritance, the feature should be included before the
13164
+ * `InheritDefinitionFeature` to ensure that the `inputTransforms` field is populated.
13165
+ *
13166
+ * @codeGenApi
13167
+ */
13168
+ export declare function ɵɵInputTransformsFeature(definition: ɵDirectiveDef<unknown>): void;
13169
+
13078
13170
  /**
13079
13171
  * Throws an error indicating that a factory function could not be generated by the compiler for a
13080
13172
  * particular class.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.1.0-next.1",
3
+ "version": "16.1.0-next.3",
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.1.0-next.1
2
+ * @license Angular v16.1.0-next.3
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/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
63
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
72
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
152
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
156
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
173
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
206
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
209
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
210
210
  var import_typescript4 = __toESM(require("typescript"), 1);
211
211
 
212
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
212
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
396
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
452
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
524
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
537
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
650
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
59
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
69
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
70
70
  var import_typescript4 = __toESM(require("typescript"), 1);
71
71
 
72
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
72
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
73
73
  var import_typescript2 = __toESM(require("typescript"), 1);
74
74
 
75
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
75
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
97
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
106
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
116
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
126
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
153
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
233
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
237
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
254
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
287
+ // bazel-out/darwin-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/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
296
+ // bazel-out/darwin-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);