@angular/core 19.0.0-next.10 → 19.0.0-next.11
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/fesm2022/core.mjs +13205 -11798
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +8 -6
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +72 -4
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +4 -4
- package/index.d.ts +527 -51
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +3 -1
- package/rxjs-interop/index.d.ts +32 -1
- package/schematics/bundles/{checker-77660732.js → checker-51c08a1b.js} +112 -97
- package/schematics/bundles/{compiler_host-81f430d9.js → compiler_host-d7f120f0.js} +2 -2
- package/schematics/bundles/control-flow-migration.js +3 -3
- package/schematics/bundles/explicit-standalone-flag.js +6 -4
- package/schematics/bundles/imports-4ac08251.js +1 -1
- package/schematics/bundles/{group_replacements-1f48eff7.js → index-f7b283e6.js} +247 -1649
- package/schematics/bundles/inject-migration.js +7 -6
- package/schematics/bundles/leading_space-d190b83b.js +1 -1
- package/schematics/bundles/migrate_ts_type_references-b2b55f62.js +1448 -0
- package/schematics/bundles/{nodes-0e7d45ca.js → ng_decorators-4579dec6.js} +1 -14
- package/schematics/bundles/nodes-a535b2be.js +27 -0
- package/schematics/bundles/output-migration.js +7295 -0
- package/schematics/bundles/pending-tasks.js +3 -3
- package/schematics/bundles/{program-1413936a.js → program-6e6520d8.js} +40 -18
- package/schematics/bundles/project_tsconfig_paths-e9ccccbf.js +1 -1
- package/schematics/bundles/provide-initializer.js +190 -0
- package/schematics/bundles/route-lazy-loading.js +3 -3
- package/schematics/bundles/signal-input-migration.js +73 -60
- package/schematics/bundles/signal-queries-migration.js +119 -90
- package/schematics/bundles/signals.js +54 -0
- package/schematics/bundles/standalone-migration.js +12 -11
- package/schematics/collection.json +11 -0
- package/schematics/migrations.json +7 -1
- package/schematics/ng-generate/output-migration/schema.json +19 -0
- package/schematics/ng-generate/signals/schema.json +65 -0
- package/testing/index.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.0-next.
|
|
2
|
+
* @license Angular v19.0.0-next.11
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -96,6 +96,8 @@ export declare function producerAccessed(node: ReactiveNode): void;
|
|
|
96
96
|
*/
|
|
97
97
|
export declare function producerIncrementEpoch(): void;
|
|
98
98
|
|
|
99
|
+
export declare function producerMarkClean(node: ReactiveNode): void;
|
|
100
|
+
|
|
99
101
|
/**
|
|
100
102
|
* Propagate a dirty notification to live consumers of this producer.
|
|
101
103
|
*/
|
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.0-next.
|
|
2
|
+
* @license Angular v19.0.0-next.11
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -11,6 +11,9 @@ import { MonoTypeOperatorFunction } from 'rxjs';
|
|
|
11
11
|
import { Observable } from 'rxjs';
|
|
12
12
|
import { OutputOptions } from '@angular/core';
|
|
13
13
|
import { OutputRef } from '@angular/core';
|
|
14
|
+
import { ResourceLoaderParams } from '@angular/core';
|
|
15
|
+
import { ResourceOptions } from '@angular/core';
|
|
16
|
+
import { ResourceRef } from '@angular/core';
|
|
14
17
|
import { Signal } from '@angular/core';
|
|
15
18
|
import { Subscribable } from 'rxjs';
|
|
16
19
|
import { ValueEqualityFn } from '@angular/core/primitives/signals';
|
|
@@ -51,6 +54,34 @@ export declare function outputFromObservable<T>(observable: Observable<T>, opts?
|
|
|
51
54
|
*/
|
|
52
55
|
export declare function outputToObservable<T>(ref: OutputRef<T>): Observable<T>;
|
|
53
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Operator which makes the application unstable until the observable emits, complets, errors, or is unsubscribed.
|
|
59
|
+
*
|
|
60
|
+
* Use this operator in observables whose subscriptions are important for rendering and should be included in SSR serialization.
|
|
61
|
+
*
|
|
62
|
+
* @param injector The `Injector` to use during creation. If this is not provided, the current injection context will be used instead (via `inject`).
|
|
63
|
+
*
|
|
64
|
+
* @experimental
|
|
65
|
+
*/
|
|
66
|
+
export declare function pendingUntilEvent<T>(injector?: Injector): MonoTypeOperatorFunction<T>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Like `resource` but uses an RxJS based `loader` which maps the request to an `Observable` of the
|
|
70
|
+
* resource's value. Like `firstValueFrom`, only the first emission of the Observable is considered.
|
|
71
|
+
*
|
|
72
|
+
* @experimental
|
|
73
|
+
*/
|
|
74
|
+
export declare function rxResource<T, R>(opts: RxResourceOptions<T, R>): ResourceRef<T>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Like `ResourceOptions` but uses an RxJS-based `loader`.
|
|
78
|
+
*
|
|
79
|
+
* @experimental
|
|
80
|
+
*/
|
|
81
|
+
export declare interface RxResourceOptions<T, R> extends Omit<ResourceOptions<T, R>, 'loader'> {
|
|
82
|
+
loader: (params: ResourceLoaderParams<R>) => Observable<T>;
|
|
83
|
+
}
|
|
84
|
+
|
|
54
85
|
/**
|
|
55
86
|
* Operator which completes the Observable when the calling context (component, directive, service,
|
|
56
87
|
* etc) is destroyed.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.0.0-next.
|
|
3
|
+
* @license Angular v19.0.0-next.11
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -890,12 +890,12 @@ const STRING_TYPE = new BuiltinType(BuiltinTypeName.String);
|
|
|
890
890
|
new BuiltinType(BuiltinTypeName.Function);
|
|
891
891
|
const NONE_TYPE = new BuiltinType(BuiltinTypeName.None);
|
|
892
892
|
///// Expressions
|
|
893
|
-
|
|
893
|
+
exports.UnaryOperator = void 0;
|
|
894
894
|
(function (UnaryOperator) {
|
|
895
895
|
UnaryOperator[UnaryOperator["Minus"] = 0] = "Minus";
|
|
896
896
|
UnaryOperator[UnaryOperator["Plus"] = 1] = "Plus";
|
|
897
|
-
})(UnaryOperator || (UnaryOperator = {}));
|
|
898
|
-
|
|
897
|
+
})(exports.UnaryOperator || (exports.UnaryOperator = {}));
|
|
898
|
+
exports.BinaryOperator = void 0;
|
|
899
899
|
(function (BinaryOperator) {
|
|
900
900
|
BinaryOperator[BinaryOperator["Equals"] = 0] = "Equals";
|
|
901
901
|
BinaryOperator[BinaryOperator["NotEquals"] = 1] = "NotEquals";
|
|
@@ -915,7 +915,7 @@ var BinaryOperator;
|
|
|
915
915
|
BinaryOperator[BinaryOperator["Bigger"] = 15] = "Bigger";
|
|
916
916
|
BinaryOperator[BinaryOperator["BiggerEquals"] = 16] = "BiggerEquals";
|
|
917
917
|
BinaryOperator[BinaryOperator["NullishCoalesce"] = 17] = "NullishCoalesce";
|
|
918
|
-
})(BinaryOperator || (BinaryOperator = {}));
|
|
918
|
+
})(exports.BinaryOperator || (exports.BinaryOperator = {}));
|
|
919
919
|
function nullSafeIsEquivalent(base, other) {
|
|
920
920
|
if (base == null || other == null) {
|
|
921
921
|
return base == other;
|
|
@@ -958,55 +958,55 @@ class Expression {
|
|
|
958
958
|
return new ConditionalExpr(this, trueCase, falseCase, null, sourceSpan);
|
|
959
959
|
}
|
|
960
960
|
equals(rhs, sourceSpan) {
|
|
961
|
-
return new BinaryOperatorExpr(BinaryOperator.Equals, this, rhs, null, sourceSpan);
|
|
961
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Equals, this, rhs, null, sourceSpan);
|
|
962
962
|
}
|
|
963
963
|
notEquals(rhs, sourceSpan) {
|
|
964
|
-
return new BinaryOperatorExpr(BinaryOperator.NotEquals, this, rhs, null, sourceSpan);
|
|
964
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.NotEquals, this, rhs, null, sourceSpan);
|
|
965
965
|
}
|
|
966
966
|
identical(rhs, sourceSpan) {
|
|
967
|
-
return new BinaryOperatorExpr(BinaryOperator.Identical, this, rhs, null, sourceSpan);
|
|
967
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Identical, this, rhs, null, sourceSpan);
|
|
968
968
|
}
|
|
969
969
|
notIdentical(rhs, sourceSpan) {
|
|
970
|
-
return new BinaryOperatorExpr(BinaryOperator.NotIdentical, this, rhs, null, sourceSpan);
|
|
970
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.NotIdentical, this, rhs, null, sourceSpan);
|
|
971
971
|
}
|
|
972
972
|
minus(rhs, sourceSpan) {
|
|
973
|
-
return new BinaryOperatorExpr(BinaryOperator.Minus, this, rhs, null, sourceSpan);
|
|
973
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Minus, this, rhs, null, sourceSpan);
|
|
974
974
|
}
|
|
975
975
|
plus(rhs, sourceSpan) {
|
|
976
|
-
return new BinaryOperatorExpr(BinaryOperator.Plus, this, rhs, null, sourceSpan);
|
|
976
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Plus, this, rhs, null, sourceSpan);
|
|
977
977
|
}
|
|
978
978
|
divide(rhs, sourceSpan) {
|
|
979
|
-
return new BinaryOperatorExpr(BinaryOperator.Divide, this, rhs, null, sourceSpan);
|
|
979
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Divide, this, rhs, null, sourceSpan);
|
|
980
980
|
}
|
|
981
981
|
multiply(rhs, sourceSpan) {
|
|
982
|
-
return new BinaryOperatorExpr(BinaryOperator.Multiply, this, rhs, null, sourceSpan);
|
|
982
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Multiply, this, rhs, null, sourceSpan);
|
|
983
983
|
}
|
|
984
984
|
modulo(rhs, sourceSpan) {
|
|
985
|
-
return new BinaryOperatorExpr(BinaryOperator.Modulo, this, rhs, null, sourceSpan);
|
|
985
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Modulo, this, rhs, null, sourceSpan);
|
|
986
986
|
}
|
|
987
987
|
and(rhs, sourceSpan) {
|
|
988
|
-
return new BinaryOperatorExpr(BinaryOperator.And, this, rhs, null, sourceSpan);
|
|
988
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.And, this, rhs, null, sourceSpan);
|
|
989
989
|
}
|
|
990
990
|
bitwiseOr(rhs, sourceSpan, parens = true) {
|
|
991
|
-
return new BinaryOperatorExpr(BinaryOperator.BitwiseOr, this, rhs, null, sourceSpan, parens);
|
|
991
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.BitwiseOr, this, rhs, null, sourceSpan, parens);
|
|
992
992
|
}
|
|
993
993
|
bitwiseAnd(rhs, sourceSpan, parens = true) {
|
|
994
|
-
return new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, this, rhs, null, sourceSpan, parens);
|
|
994
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.BitwiseAnd, this, rhs, null, sourceSpan, parens);
|
|
995
995
|
}
|
|
996
996
|
or(rhs, sourceSpan) {
|
|
997
|
-
return new BinaryOperatorExpr(BinaryOperator.Or, this, rhs, null, sourceSpan);
|
|
997
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Or, this, rhs, null, sourceSpan);
|
|
998
998
|
}
|
|
999
999
|
lower(rhs, sourceSpan) {
|
|
1000
|
-
return new BinaryOperatorExpr(BinaryOperator.Lower, this, rhs, null, sourceSpan);
|
|
1000
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Lower, this, rhs, null, sourceSpan);
|
|
1001
1001
|
}
|
|
1002
1002
|
lowerEquals(rhs, sourceSpan) {
|
|
1003
|
-
return new BinaryOperatorExpr(BinaryOperator.LowerEquals, this, rhs, null, sourceSpan);
|
|
1003
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.LowerEquals, this, rhs, null, sourceSpan);
|
|
1004
1004
|
}
|
|
1005
1005
|
bigger(rhs, sourceSpan) {
|
|
1006
|
-
return new BinaryOperatorExpr(BinaryOperator.Bigger, this, rhs, null, sourceSpan);
|
|
1006
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.Bigger, this, rhs, null, sourceSpan);
|
|
1007
1007
|
}
|
|
1008
1008
|
biggerEquals(rhs, sourceSpan) {
|
|
1009
|
-
return new BinaryOperatorExpr(BinaryOperator.BiggerEquals, this, rhs, null, sourceSpan);
|
|
1009
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.BiggerEquals, this, rhs, null, sourceSpan);
|
|
1010
1010
|
}
|
|
1011
1011
|
isBlank(sourceSpan) {
|
|
1012
1012
|
// Note: We use equals by purpose here to compare to null and undefined in JS.
|
|
@@ -1014,7 +1014,7 @@ class Expression {
|
|
|
1014
1014
|
return this.equals(TYPED_NULL_EXPR, sourceSpan);
|
|
1015
1015
|
}
|
|
1016
1016
|
nullishCoalesce(rhs, sourceSpan) {
|
|
1017
|
-
return new BinaryOperatorExpr(BinaryOperator.NullishCoalesce, this, rhs, null, sourceSpan);
|
|
1017
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.NullishCoalesce, this, rhs, null, sourceSpan);
|
|
1018
1018
|
}
|
|
1019
1019
|
toStmt() {
|
|
1020
1020
|
return new ExpressionStatement(this, null);
|
|
@@ -3431,10 +3431,10 @@ class AbstractEmitterVisitor {
|
|
|
3431
3431
|
visitUnaryOperatorExpr(ast, ctx) {
|
|
3432
3432
|
let opStr;
|
|
3433
3433
|
switch (ast.operator) {
|
|
3434
|
-
case UnaryOperator.Plus:
|
|
3434
|
+
case exports.UnaryOperator.Plus:
|
|
3435
3435
|
opStr = '+';
|
|
3436
3436
|
break;
|
|
3437
|
-
case UnaryOperator.Minus:
|
|
3437
|
+
case exports.UnaryOperator.Minus:
|
|
3438
3438
|
opStr = '-';
|
|
3439
3439
|
break;
|
|
3440
3440
|
default:
|
|
@@ -3451,58 +3451,58 @@ class AbstractEmitterVisitor {
|
|
|
3451
3451
|
visitBinaryOperatorExpr(ast, ctx) {
|
|
3452
3452
|
let opStr;
|
|
3453
3453
|
switch (ast.operator) {
|
|
3454
|
-
case BinaryOperator.Equals:
|
|
3454
|
+
case exports.BinaryOperator.Equals:
|
|
3455
3455
|
opStr = '==';
|
|
3456
3456
|
break;
|
|
3457
|
-
case BinaryOperator.Identical:
|
|
3457
|
+
case exports.BinaryOperator.Identical:
|
|
3458
3458
|
opStr = '===';
|
|
3459
3459
|
break;
|
|
3460
|
-
case BinaryOperator.NotEquals:
|
|
3460
|
+
case exports.BinaryOperator.NotEquals:
|
|
3461
3461
|
opStr = '!=';
|
|
3462
3462
|
break;
|
|
3463
|
-
case BinaryOperator.NotIdentical:
|
|
3463
|
+
case exports.BinaryOperator.NotIdentical:
|
|
3464
3464
|
opStr = '!==';
|
|
3465
3465
|
break;
|
|
3466
|
-
case BinaryOperator.And:
|
|
3466
|
+
case exports.BinaryOperator.And:
|
|
3467
3467
|
opStr = '&&';
|
|
3468
3468
|
break;
|
|
3469
|
-
case BinaryOperator.BitwiseOr:
|
|
3469
|
+
case exports.BinaryOperator.BitwiseOr:
|
|
3470
3470
|
opStr = '|';
|
|
3471
3471
|
break;
|
|
3472
|
-
case BinaryOperator.BitwiseAnd:
|
|
3472
|
+
case exports.BinaryOperator.BitwiseAnd:
|
|
3473
3473
|
opStr = '&';
|
|
3474
3474
|
break;
|
|
3475
|
-
case BinaryOperator.Or:
|
|
3475
|
+
case exports.BinaryOperator.Or:
|
|
3476
3476
|
opStr = '||';
|
|
3477
3477
|
break;
|
|
3478
|
-
case BinaryOperator.Plus:
|
|
3478
|
+
case exports.BinaryOperator.Plus:
|
|
3479
3479
|
opStr = '+';
|
|
3480
3480
|
break;
|
|
3481
|
-
case BinaryOperator.Minus:
|
|
3481
|
+
case exports.BinaryOperator.Minus:
|
|
3482
3482
|
opStr = '-';
|
|
3483
3483
|
break;
|
|
3484
|
-
case BinaryOperator.Divide:
|
|
3484
|
+
case exports.BinaryOperator.Divide:
|
|
3485
3485
|
opStr = '/';
|
|
3486
3486
|
break;
|
|
3487
|
-
case BinaryOperator.Multiply:
|
|
3487
|
+
case exports.BinaryOperator.Multiply:
|
|
3488
3488
|
opStr = '*';
|
|
3489
3489
|
break;
|
|
3490
|
-
case BinaryOperator.Modulo:
|
|
3490
|
+
case exports.BinaryOperator.Modulo:
|
|
3491
3491
|
opStr = '%';
|
|
3492
3492
|
break;
|
|
3493
|
-
case BinaryOperator.Lower:
|
|
3493
|
+
case exports.BinaryOperator.Lower:
|
|
3494
3494
|
opStr = '<';
|
|
3495
3495
|
break;
|
|
3496
|
-
case BinaryOperator.LowerEquals:
|
|
3496
|
+
case exports.BinaryOperator.LowerEquals:
|
|
3497
3497
|
opStr = '<=';
|
|
3498
3498
|
break;
|
|
3499
|
-
case BinaryOperator.Bigger:
|
|
3499
|
+
case exports.BinaryOperator.Bigger:
|
|
3500
3500
|
opStr = '>';
|
|
3501
3501
|
break;
|
|
3502
|
-
case BinaryOperator.BiggerEquals:
|
|
3502
|
+
case exports.BinaryOperator.BiggerEquals:
|
|
3503
3503
|
opStr = '>=';
|
|
3504
3504
|
break;
|
|
3505
|
-
case BinaryOperator.NullishCoalesce:
|
|
3505
|
+
case exports.BinaryOperator.NullishCoalesce:
|
|
3506
3506
|
opStr = '??';
|
|
3507
3507
|
break;
|
|
3508
3508
|
default:
|
|
@@ -3634,11 +3634,11 @@ function devOnlyGuardedExpression(expr) {
|
|
|
3634
3634
|
}
|
|
3635
3635
|
function guardedExpression(guard, expr) {
|
|
3636
3636
|
const guardExpr = new ExternalExpr({ name: guard, moduleName: null });
|
|
3637
|
-
const guardNotDefined = new BinaryOperatorExpr(BinaryOperator.Identical, new TypeofExpr(guardExpr), literal$1('undefined'));
|
|
3638
|
-
const guardUndefinedOrTrue = new BinaryOperatorExpr(BinaryOperator.Or, guardNotDefined, guardExpr,
|
|
3637
|
+
const guardNotDefined = new BinaryOperatorExpr(exports.BinaryOperator.Identical, new TypeofExpr(guardExpr), literal$1('undefined'));
|
|
3638
|
+
const guardUndefinedOrTrue = new BinaryOperatorExpr(exports.BinaryOperator.Or, guardNotDefined, guardExpr,
|
|
3639
3639
|
/* type */ undefined,
|
|
3640
3640
|
/* sourceSpan */ undefined, true);
|
|
3641
|
-
return new BinaryOperatorExpr(BinaryOperator.And, guardUndefinedOrTrue, expr);
|
|
3641
|
+
return new BinaryOperatorExpr(exports.BinaryOperator.And, guardUndefinedOrTrue, expr);
|
|
3642
3642
|
}
|
|
3643
3643
|
function wrapReference(value) {
|
|
3644
3644
|
const wrapped = new WrappedNodeExpr(value);
|
|
@@ -3707,7 +3707,7 @@ function compileFactoryFunction(meta) {
|
|
|
3707
3707
|
// delegated factory (which is used to create the current type) then this is only the type-to-
|
|
3708
3708
|
// create parameter (t).
|
|
3709
3709
|
const typeForCtor = !isDelegatedFactoryMetadata(meta)
|
|
3710
|
-
? new BinaryOperatorExpr(BinaryOperator.Or, t, meta.type.value)
|
|
3710
|
+
? new BinaryOperatorExpr(exports.BinaryOperator.Or, t, meta.type.value)
|
|
3711
3711
|
: t;
|
|
3712
3712
|
let ctorExpr = null;
|
|
3713
3713
|
if (meta.deps !== null) {
|
|
@@ -3755,7 +3755,7 @@ function compileFactoryFunction(meta) {
|
|
|
3755
3755
|
// This factory uses a base factory, so call `ɵɵgetInheritedFactory()` to compute it.
|
|
3756
3756
|
const getInheritedFactoryCall = importExpr(Identifiers.getInheritedFactory).callFn([meta.type.value]);
|
|
3757
3757
|
// Memoize the base factoryFn: `baseFactory || (baseFactory = ɵɵgetInheritedFactory(...))`
|
|
3758
|
-
const baseFactory = new BinaryOperatorExpr(BinaryOperator.Or, baseFactoryVar, baseFactoryVar.set(getInheritedFactoryCall));
|
|
3758
|
+
const baseFactory = new BinaryOperatorExpr(exports.BinaryOperator.Or, baseFactoryVar, baseFactoryVar.set(getInheritedFactoryCall));
|
|
3759
3759
|
body.push(new ReturnStatement(baseFactory.callFn([typeForCtor])));
|
|
3760
3760
|
}
|
|
3761
3761
|
else {
|
|
@@ -11055,7 +11055,7 @@ function generateConditionalExpressions(job) {
|
|
|
11055
11055
|
}
|
|
11056
11056
|
if (tmp !== null) {
|
|
11057
11057
|
const useTmp = i === 0 ? tmp : new ReadTemporaryExpr(tmp.xref);
|
|
11058
|
-
conditionalCase.expr = new BinaryOperatorExpr(BinaryOperator.Identical, useTmp, conditionalCase.expr);
|
|
11058
|
+
conditionalCase.expr = new BinaryOperatorExpr(exports.BinaryOperator.Identical, useTmp, conditionalCase.expr);
|
|
11059
11059
|
}
|
|
11060
11060
|
else if (conditionalCase.alias !== null) {
|
|
11061
11061
|
const caseExpressionTemporaryXref = job.allocateXrefId();
|
|
@@ -11074,24 +11074,24 @@ function generateConditionalExpressions(job) {
|
|
|
11074
11074
|
}
|
|
11075
11075
|
|
|
11076
11076
|
const BINARY_OPERATORS$3 = new Map([
|
|
11077
|
-
['&&', BinaryOperator.And],
|
|
11078
|
-
['>', BinaryOperator.Bigger],
|
|
11079
|
-
['>=', BinaryOperator.BiggerEquals],
|
|
11080
|
-
['|', BinaryOperator.BitwiseOr],
|
|
11081
|
-
['&', BinaryOperator.BitwiseAnd],
|
|
11082
|
-
['/', BinaryOperator.Divide],
|
|
11083
|
-
['==', BinaryOperator.Equals],
|
|
11084
|
-
['===', BinaryOperator.Identical],
|
|
11085
|
-
['<', BinaryOperator.Lower],
|
|
11086
|
-
['<=', BinaryOperator.LowerEquals],
|
|
11087
|
-
['-', BinaryOperator.Minus],
|
|
11088
|
-
['%', BinaryOperator.Modulo],
|
|
11089
|
-
['*', BinaryOperator.Multiply],
|
|
11090
|
-
['!=', BinaryOperator.NotEquals],
|
|
11091
|
-
['!==', BinaryOperator.NotIdentical],
|
|
11092
|
-
['??', BinaryOperator.NullishCoalesce],
|
|
11093
|
-
['||', BinaryOperator.Or],
|
|
11094
|
-
['+', BinaryOperator.Plus],
|
|
11077
|
+
['&&', exports.BinaryOperator.And],
|
|
11078
|
+
['>', exports.BinaryOperator.Bigger],
|
|
11079
|
+
['>=', exports.BinaryOperator.BiggerEquals],
|
|
11080
|
+
['|', exports.BinaryOperator.BitwiseOr],
|
|
11081
|
+
['&', exports.BinaryOperator.BitwiseAnd],
|
|
11082
|
+
['/', exports.BinaryOperator.Divide],
|
|
11083
|
+
['==', exports.BinaryOperator.Equals],
|
|
11084
|
+
['===', exports.BinaryOperator.Identical],
|
|
11085
|
+
['<', exports.BinaryOperator.Lower],
|
|
11086
|
+
['<=', exports.BinaryOperator.LowerEquals],
|
|
11087
|
+
['-', exports.BinaryOperator.Minus],
|
|
11088
|
+
['%', exports.BinaryOperator.Modulo],
|
|
11089
|
+
['*', exports.BinaryOperator.Multiply],
|
|
11090
|
+
['!=', exports.BinaryOperator.NotEquals],
|
|
11091
|
+
['!==', exports.BinaryOperator.NotIdentical],
|
|
11092
|
+
['??', exports.BinaryOperator.NullishCoalesce],
|
|
11093
|
+
['||', exports.BinaryOperator.Or],
|
|
11094
|
+
['+', exports.BinaryOperator.Plus],
|
|
11095
11095
|
]);
|
|
11096
11096
|
function namespaceForKey(namespacePrefixKey) {
|
|
11097
11097
|
const NAMESPACES = new Map([
|
|
@@ -11868,7 +11868,7 @@ function ternaryTransform(e) {
|
|
|
11868
11868
|
if (!(e instanceof SafeTernaryExpr)) {
|
|
11869
11869
|
return e;
|
|
11870
11870
|
}
|
|
11871
|
-
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
11871
|
+
return new ConditionalExpr(new BinaryOperatorExpr(exports.BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
11872
11872
|
}
|
|
11873
11873
|
|
|
11874
11874
|
/**
|
|
@@ -20957,14 +20957,14 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
20957
20957
|
for (const op of unit.ops()) {
|
|
20958
20958
|
transformExpressionsInOp(op, (expr) => {
|
|
20959
20959
|
if (!(expr instanceof BinaryOperatorExpr) ||
|
|
20960
|
-
expr.operator !== BinaryOperator.NullishCoalesce) {
|
|
20960
|
+
expr.operator !== exports.BinaryOperator.NullishCoalesce) {
|
|
20961
20961
|
return expr;
|
|
20962
20962
|
}
|
|
20963
20963
|
const assignment = new AssignTemporaryExpr(expr.lhs.clone(), job.allocateXrefId());
|
|
20964
20964
|
const read = new ReadTemporaryExpr(assignment.xref);
|
|
20965
20965
|
// TODO: When not in compatibility mode for TemplateDefinitionBuilder, we can just emit
|
|
20966
20966
|
// `t != null` instead of including an undefined check as well.
|
|
20967
|
-
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.And, new BinaryOperatorExpr(BinaryOperator.NotIdentical, assignment, NULL_EXPR), new BinaryOperatorExpr(BinaryOperator.NotIdentical, read, new LiteralExpr(undefined))), read.clone(), expr.rhs);
|
|
20967
|
+
return new ConditionalExpr(new BinaryOperatorExpr(exports.BinaryOperator.And, new BinaryOperatorExpr(exports.BinaryOperator.NotIdentical, assignment, NULL_EXPR), new BinaryOperatorExpr(exports.BinaryOperator.NotIdentical, read, new LiteralExpr(undefined))), read.clone(), expr.rhs);
|
|
20968
20968
|
}, VisitorContextFlag.None);
|
|
20969
20969
|
}
|
|
20970
20970
|
}
|
|
@@ -24294,7 +24294,7 @@ function maybeGenerateRfBlock(flag, statements) {
|
|
|
24294
24294
|
return [];
|
|
24295
24295
|
}
|
|
24296
24296
|
return [
|
|
24297
|
-
ifStmt(new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, variable('rf'), literal$1(flag)), statements),
|
|
24297
|
+
ifStmt(new BinaryOperatorExpr(exports.BinaryOperator.BitwiseAnd, variable('rf'), literal$1(flag)), statements),
|
|
24298
24298
|
];
|
|
24299
24299
|
}
|
|
24300
24300
|
function emitHostBindingFunction(job) {
|
|
@@ -24915,9 +24915,9 @@ function convertAst(ast, job, baseSourceSpan) {
|
|
|
24915
24915
|
else if (ast instanceof Unary) {
|
|
24916
24916
|
switch (ast.operator) {
|
|
24917
24917
|
case '+':
|
|
24918
|
-
return new UnaryOperatorExpr(UnaryOperator.Plus, convertAst(ast.expr, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));
|
|
24918
|
+
return new UnaryOperatorExpr(exports.UnaryOperator.Plus, convertAst(ast.expr, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));
|
|
24919
24919
|
case '-':
|
|
24920
|
-
return new UnaryOperatorExpr(UnaryOperator.Minus, convertAst(ast.expr, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));
|
|
24920
|
+
return new UnaryOperatorExpr(exports.UnaryOperator.Minus, convertAst(ast.expr, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));
|
|
24921
24921
|
default:
|
|
24922
24922
|
throw new Error(`AssertionError: unknown unary operator ${ast.operator}`);
|
|
24923
24923
|
}
|
|
@@ -29654,7 +29654,7 @@ function publishFacade(global) {
|
|
|
29654
29654
|
* @description
|
|
29655
29655
|
* Entry point for all public APIs of the compiler package.
|
|
29656
29656
|
*/
|
|
29657
|
-
new Version('19.0.0-next.
|
|
29657
|
+
new Version('19.0.0-next.11');
|
|
29658
29658
|
|
|
29659
29659
|
const _I18N_ATTR = 'i18n';
|
|
29660
29660
|
const _I18N_ATTR_PREFIX = 'i18n-';
|
|
@@ -31046,7 +31046,7 @@ class NodeJSPathManipulation {
|
|
|
31046
31046
|
// G3-ESM-MARKER: G3 uses CommonJS, but externally everything in ESM.
|
|
31047
31047
|
// CommonJS/ESM interop for determining the current file name and containing dir.
|
|
31048
31048
|
const isCommonJS = typeof __filename !== 'undefined';
|
|
31049
|
-
const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('checker-
|
|
31049
|
+
const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('checker-51c08a1b.js', document.baseURI).href));
|
|
31050
31050
|
const currentFileName = isCommonJS ? __filename : url.fileURLToPath(currentFileUrl);
|
|
31051
31051
|
/**
|
|
31052
31052
|
* A wrapper around the Node.js file-system that supports readonly operations and path manipulation.
|
|
@@ -35411,28 +35411,28 @@ function createImportReference(asTypeReference, ref) {
|
|
|
35411
35411
|
}
|
|
35412
35412
|
|
|
35413
35413
|
const UNARY_OPERATORS$1 = new Map([
|
|
35414
|
-
[UnaryOperator.Minus, '-'],
|
|
35415
|
-
[UnaryOperator.Plus, '+'],
|
|
35414
|
+
[exports.UnaryOperator.Minus, '-'],
|
|
35415
|
+
[exports.UnaryOperator.Plus, '+'],
|
|
35416
35416
|
]);
|
|
35417
35417
|
const BINARY_OPERATORS$1 = new Map([
|
|
35418
|
-
[BinaryOperator.And, '&&'],
|
|
35419
|
-
[BinaryOperator.Bigger, '>'],
|
|
35420
|
-
[BinaryOperator.BiggerEquals, '>='],
|
|
35421
|
-
[BinaryOperator.BitwiseAnd, '&'],
|
|
35422
|
-
[BinaryOperator.BitwiseOr, '|'],
|
|
35423
|
-
[BinaryOperator.Divide, '/'],
|
|
35424
|
-
[BinaryOperator.Equals, '=='],
|
|
35425
|
-
[BinaryOperator.Identical, '==='],
|
|
35426
|
-
[BinaryOperator.Lower, '<'],
|
|
35427
|
-
[BinaryOperator.LowerEquals, '<='],
|
|
35428
|
-
[BinaryOperator.Minus, '-'],
|
|
35429
|
-
[BinaryOperator.Modulo, '%'],
|
|
35430
|
-
[BinaryOperator.Multiply, '*'],
|
|
35431
|
-
[BinaryOperator.NotEquals, '!='],
|
|
35432
|
-
[BinaryOperator.NotIdentical, '!=='],
|
|
35433
|
-
[BinaryOperator.Or, '||'],
|
|
35434
|
-
[BinaryOperator.Plus, '+'],
|
|
35435
|
-
[BinaryOperator.NullishCoalesce, '??'],
|
|
35418
|
+
[exports.BinaryOperator.And, '&&'],
|
|
35419
|
+
[exports.BinaryOperator.Bigger, '>'],
|
|
35420
|
+
[exports.BinaryOperator.BiggerEquals, '>='],
|
|
35421
|
+
[exports.BinaryOperator.BitwiseAnd, '&'],
|
|
35422
|
+
[exports.BinaryOperator.BitwiseOr, '|'],
|
|
35423
|
+
[exports.BinaryOperator.Divide, '/'],
|
|
35424
|
+
[exports.BinaryOperator.Equals, '=='],
|
|
35425
|
+
[exports.BinaryOperator.Identical, '==='],
|
|
35426
|
+
[exports.BinaryOperator.Lower, '<'],
|
|
35427
|
+
[exports.BinaryOperator.LowerEquals, '<='],
|
|
35428
|
+
[exports.BinaryOperator.Minus, '-'],
|
|
35429
|
+
[exports.BinaryOperator.Modulo, '%'],
|
|
35430
|
+
[exports.BinaryOperator.Multiply, '*'],
|
|
35431
|
+
[exports.BinaryOperator.NotEquals, '!='],
|
|
35432
|
+
[exports.BinaryOperator.NotIdentical, '!=='],
|
|
35433
|
+
[exports.BinaryOperator.Or, '||'],
|
|
35434
|
+
[exports.BinaryOperator.Plus, '+'],
|
|
35435
|
+
[exports.BinaryOperator.NullishCoalesce, '??'],
|
|
35436
35436
|
]);
|
|
35437
35437
|
class ExpressionTranslatorVisitor {
|
|
35438
35438
|
constructor(factory, imports, contextFile, options) {
|
|
@@ -35639,7 +35639,7 @@ class ExpressionTranslatorVisitor {
|
|
|
35639
35639
|
}
|
|
35640
35640
|
visitBinaryOperatorExpr(ast, context) {
|
|
35641
35641
|
if (!BINARY_OPERATORS$1.has(ast.operator)) {
|
|
35642
|
-
throw new Error(`Unknown binary operator: ${BinaryOperator[ast.operator]}`);
|
|
35642
|
+
throw new Error(`Unknown binary operator: ${exports.BinaryOperator[ast.operator]}`);
|
|
35643
35643
|
}
|
|
35644
35644
|
return this.factory.createBinaryExpression(ast.lhs.visitExpression(this, context), BINARY_OPERATORS$1.get(ast.operator), ast.rhs.visitExpression(this, context));
|
|
35645
35645
|
}
|
|
@@ -35674,7 +35674,7 @@ class ExpressionTranslatorVisitor {
|
|
|
35674
35674
|
}
|
|
35675
35675
|
visitUnaryOperatorExpr(ast, context) {
|
|
35676
35676
|
if (!UNARY_OPERATORS$1.has(ast.operator)) {
|
|
35677
|
-
throw new Error(`Unknown unary operator: ${UnaryOperator[ast.operator]}`);
|
|
35677
|
+
throw new Error(`Unknown unary operator: ${exports.UnaryOperator[ast.operator]}`);
|
|
35678
35678
|
}
|
|
35679
35679
|
return this.factory.createUnaryExpression(UNARY_OPERATORS$1.get(ast.operator), ast.expr.visitExpression(this, context));
|
|
35680
35680
|
}
|
|
@@ -44861,13 +44861,16 @@ class SingleShimTypeCheckingHost extends SingleFileTypeCheckingHost {
|
|
|
44861
44861
|
exports.AST = AST;
|
|
44862
44862
|
exports.ASTWithSource = ASTWithSource;
|
|
44863
44863
|
exports.AbsoluteModuleStrategy = AbsoluteModuleStrategy;
|
|
44864
|
+
exports.AbsoluteSourceSpan = AbsoluteSourceSpan;
|
|
44864
44865
|
exports.AmbientImport = AmbientImport;
|
|
44865
44866
|
exports.ArrowFunctionExpr = ArrowFunctionExpr;
|
|
44866
44867
|
exports.Binary = Binary;
|
|
44868
|
+
exports.BindingPipe = BindingPipe;
|
|
44867
44869
|
exports.BlockPlaceholder = BlockPlaceholder;
|
|
44868
44870
|
exports.BoundAttribute = BoundAttribute;
|
|
44869
44871
|
exports.BoundDeferredTrigger = BoundDeferredTrigger;
|
|
44870
44872
|
exports.BoundEvent = BoundEvent;
|
|
44873
|
+
exports.BoundText = BoundText;
|
|
44871
44874
|
exports.COMPILER_ERRORS_WITH_GUIDES = COMPILER_ERRORS_WITH_GUIDES;
|
|
44872
44875
|
exports.CR = CR;
|
|
44873
44876
|
exports.CUSTOM_ELEMENTS_SCHEMA = CUSTOM_ELEMENTS_SCHEMA;
|
|
@@ -44878,29 +44881,36 @@ exports.CompoundMetadataReader = CompoundMetadataReader;
|
|
|
44878
44881
|
exports.Conditional = Conditional;
|
|
44879
44882
|
exports.ConstantPool = ConstantPool;
|
|
44880
44883
|
exports.Container = Container;
|
|
44884
|
+
exports.Content = Content;
|
|
44881
44885
|
exports.CssSelector = CssSelector;
|
|
44882
44886
|
exports.DEFAULT_INTERPOLATION_CONFIG = DEFAULT_INTERPOLATION_CONFIG;
|
|
44883
44887
|
exports.DYNAMIC_TYPE = DYNAMIC_TYPE;
|
|
44884
44888
|
exports.Declaration = Declaration;
|
|
44885
44889
|
exports.DeclareFunctionStmt = DeclareFunctionStmt;
|
|
44886
44890
|
exports.DefaultImportTracker = DefaultImportTracker;
|
|
44891
|
+
exports.DeferredBlock = DeferredBlock;
|
|
44887
44892
|
exports.DefinitionMap = DefinitionMap;
|
|
44888
44893
|
exports.DomElementSchemaRegistry = DomElementSchemaRegistry;
|
|
44889
44894
|
exports.DynamicImportExpr = DynamicImportExpr;
|
|
44890
44895
|
exports.DynamicValue = DynamicValue;
|
|
44891
44896
|
exports.Element = Element;
|
|
44892
44897
|
exports.Element$1 = Element$1;
|
|
44898
|
+
exports.EmptyExpr = EmptyExpr$1;
|
|
44893
44899
|
exports.EnumValue = EnumValue;
|
|
44894
44900
|
exports.ExternalExpr = ExternalExpr;
|
|
44895
44901
|
exports.FatalDiagnosticError = FatalDiagnosticError;
|
|
44896
44902
|
exports.FnParam = FnParam;
|
|
44903
|
+
exports.ForLoopBlock = ForLoopBlock;
|
|
44897
44904
|
exports.FunctionExpr = FunctionExpr;
|
|
44898
44905
|
exports.HtmlParser = HtmlParser;
|
|
44899
44906
|
exports.I18nError = I18nError;
|
|
44900
44907
|
exports.INPUT_INITIALIZER_FN = INPUT_INITIALIZER_FN;
|
|
44901
44908
|
exports.Icu = Icu;
|
|
44909
|
+
exports.Icu$1 = Icu$1;
|
|
44902
44910
|
exports.IcuPlaceholder = IcuPlaceholder;
|
|
44903
44911
|
exports.Identifiers = Identifiers;
|
|
44912
|
+
exports.IfBlock = IfBlock;
|
|
44913
|
+
exports.IfBlockBranch = IfBlockBranch;
|
|
44904
44914
|
exports.ImplicitReceiver = ImplicitReceiver;
|
|
44905
44915
|
exports.ImportManager = ImportManager;
|
|
44906
44916
|
exports.Interpolation = Interpolation$1;
|
|
@@ -44945,6 +44955,7 @@ exports.SafePropertyRead = SafePropertyRead;
|
|
|
44945
44955
|
exports.SelectorMatcher = SelectorMatcher;
|
|
44946
44956
|
exports.Serializer = Serializer;
|
|
44947
44957
|
exports.StaticInterpreter = StaticInterpreter;
|
|
44958
|
+
exports.SwitchBlock = SwitchBlock;
|
|
44948
44959
|
exports.SyntheticValue = SyntheticValue;
|
|
44949
44960
|
exports.Tag = Tag;
|
|
44950
44961
|
exports.TagPlaceholder = TagPlaceholder;
|
|
@@ -44953,8 +44964,11 @@ exports.TemplateTypeCheckerImpl = TemplateTypeCheckerImpl;
|
|
|
44953
44964
|
exports.Text = Text;
|
|
44954
44965
|
exports.Text$1 = Text$1;
|
|
44955
44966
|
exports.Text$2 = Text$2;
|
|
44967
|
+
exports.Text$3 = Text$3;
|
|
44956
44968
|
exports.TextAttribute = TextAttribute;
|
|
44969
|
+
exports.ThisReceiver = ThisReceiver;
|
|
44957
44970
|
exports.Trait = Trait;
|
|
44971
|
+
exports.TransplantedType = TransplantedType;
|
|
44958
44972
|
exports.TypeCheckShimGenerator = TypeCheckShimGenerator;
|
|
44959
44973
|
exports.TypeScriptReflectionHost = TypeScriptReflectionHost;
|
|
44960
44974
|
exports.UNSAFE_OBJECT_KEY_NAME_REGEXP = UNSAFE_OBJECT_KEY_NAME_REGEXP;
|
|
@@ -44983,6 +44997,7 @@ exports.conditionallyCreateDirectiveBindingLiteral = conditionallyCreateDirectiv
|
|
|
44983
44997
|
exports.convertFromMaybeForwardRefExpression = convertFromMaybeForwardRefExpression;
|
|
44984
44998
|
exports.copyFileShimData = copyFileShimData;
|
|
44985
44999
|
exports.createComponentType = createComponentType;
|
|
45000
|
+
exports.createCssSelectorFromNode = createCssSelectorFromNode;
|
|
44986
45001
|
exports.createDirectiveType = createDirectiveType;
|
|
44987
45002
|
exports.createFactoryType = createFactoryType;
|
|
44988
45003
|
exports.createHostDirectivesMappingArray = createHostDirectivesMappingArray;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.0.0-next.
|
|
3
|
+
* @license Angular v19.0.0-next.11
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
|
-
var checker = require('./checker-
|
|
10
|
+
var checker = require('./checker-51c08a1b.js');
|
|
11
11
|
require('os');
|
|
12
12
|
var p = require('path');
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.0.0-next.
|
|
3
|
+
* @license Angular v19.0.0-next.11
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,8 +10,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var p = require('path');
|
|
13
|
-
var compiler_host = require('./compiler_host-
|
|
14
|
-
var checker = require('./checker-
|
|
13
|
+
var compiler_host = require('./compiler_host-d7f120f0.js');
|
|
14
|
+
var checker = require('./checker-51c08a1b.js');
|
|
15
15
|
var ts = require('typescript');
|
|
16
16
|
require('os');
|
|
17
17
|
require('fs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.0.0-next.
|
|
3
|
+
* @license Angular v19.0.0-next.11
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -11,11 +11,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var p = require('path');
|
|
13
13
|
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
|
|
14
|
-
var compiler_host = require('./compiler_host-
|
|
14
|
+
var compiler_host = require('./compiler_host-d7f120f0.js');
|
|
15
15
|
var ts = require('typescript');
|
|
16
16
|
var imports = require('./imports-4ac08251.js');
|
|
17
17
|
require('@angular-devkit/core');
|
|
18
|
-
require('./checker-
|
|
18
|
+
require('./checker-51c08a1b.js');
|
|
19
19
|
require('os');
|
|
20
20
|
require('fs');
|
|
21
21
|
require('module');
|
|
@@ -86,7 +86,9 @@ function migrateFile(sourceFile, rewriteFn) {
|
|
|
86
86
|
const standaloneFalseProperty = ts__default["default"].factory.createPropertyAssignment('standalone', ts__default["default"].factory.createFalse());
|
|
87
87
|
newProperties = [...properties, standaloneFalseProperty];
|
|
88
88
|
}
|
|
89
|
-
else if (standaloneProp.value === ts__default["default"].SyntaxKind.TrueKeyword)
|
|
89
|
+
else if (standaloneProp.value === ts__default["default"].SyntaxKind.TrueKeyword) {
|
|
90
|
+
newProperties = properties.filter((p) => p !== standaloneProp.property);
|
|
91
|
+
}
|
|
90
92
|
if (newProperties) {
|
|
91
93
|
// At this point we know that we need to add standalone: false or
|
|
92
94
|
// remove an existing standalone: true property.
|